var __defProp=Object.defineProperty,__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>(__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),n);!function(){"use strict";function e(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var t,n,r,o,i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n} /*! ***************************************************************************** Copyright (C) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */n=t||(t={}),function(e){var t="object"==typeof i?i:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=o(n);function o(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===t.Reflect?t.Reflect=n:r=o(t.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",i="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!i&&!s,l={create:i?function(){return re(Object.create(null))}:s?function(){return re({__proto__:null})}:function(){return re({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),u="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=u||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?ee():Map,p=u||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?te():Set,h=new(u||"function"!=typeof WeakMap?ne():WeakMap);function f(e,t,n,r){if(j(n)){if(!V(e))throw new TypeError;if(!G(t))throw new TypeError;return E(e,t)}if(!V(e))throw new TypeError;if(!U(t))throw new TypeError;if(!U(r)&&!j(r)&&!z(r))throw new TypeError;return z(r)&&(r=void 0),S(e,t,n=H(n),r)}function m(e,t){function n(n,r){if(!U(n))throw new TypeError;if(!j(r)&&!Q(r))throw new TypeError;R(e,t,n,r)}return n}function g(e,t,n,r){if(!U(n))throw new TypeError;return j(r)||(r=H(r)),R(e,t,n,r)}function y(e,t,n){if(!U(t))throw new TypeError;return j(n)||(n=H(n)),T(e,t,n)}function b(e,t,n){if(!U(t))throw new TypeError;return j(n)||(n=H(n)),k(e,t,n)}function C(e,t,n){if(!U(t))throw new TypeError;return j(n)||(n=H(n)),M(e,t,n)}function x(e,t,n){if(!U(t))throw new TypeError;return j(n)||(n=H(n)),L(e,t,n)}function v(e,t){if(!U(e))throw new TypeError;return j(t)||(t=H(t)),N(e,t)}function w(e,t){if(!U(e))throw new TypeError;return j(t)||(t=H(t)),D(e,t)}function A(e,t,n){if(!U(t))throw new TypeError;j(n)||(n=H(n));var r=O(t,n,!1);if(j(r))return!1;if(!r.delete(e))return!1;if(r.size>0)return!0;var o=h.get(t);return o.delete(n),o.size>0||h.delete(t),!0}function E(e,t){for(var n=e.length-1;n>=0;--n){var r=(0,e[n])(t);if(!j(r)&&!z(r)){if(!G(r))throw new TypeError;t=r}}return t}function S(e,t,n,r){for(var o=e.length-1;o>=0;--o){var i=(0,e[o])(t,n,r);if(!j(i)&&!z(i)){if(!U(i))throw new TypeError;r=i}}return r}function O(e,t,n){var r=h.get(e);if(j(r)){if(!n)return;r=new d,h.set(e,r)}var o=r.get(t);if(j(o)){if(!n)return;o=new d,r.set(t,o)}return o}function T(e,t,n){if(k(e,t,n))return!0;var r=$(t);return!z(r)&&T(e,r,n)}function k(e,t,n){var r=O(t,n,!1);return!j(r)&&Z(r.has(e))}function M(e,t,n){if(k(e,t,n))return L(e,t,n);var r=$(t);return z(r)?void 0:M(e,r,n)}function L(e,t,n){var r=O(t,n,!1);if(!j(r))return r.get(e)}function R(e,t,n,r){O(n,r,!0).set(e,t)}function N(e,t){var n=D(e,t),r=$(e);if(null===r)return n;var o=N(r,t);if(o.length<=0)return n;if(n.length<=0)return o;for(var i=new p,s=[],a=0,l=n;a=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,o=n+1;o0&&(s=s.filter((function(e){return!d.includes(e)}))),void 0!==this.options.version&&(s=s.filter((function(t){var n=c.findExposeMetadata(e,t);return!n||!n.options||o.checkVersion(n.options.since,n.options.until)}))),s=this.options.groups&&this.options.groups.length?s.filter((function(t){var n=c.findExposeMetadata(e,t);return!n||!n.options||o.checkGroups(n.options.groups)})):s.filter((function(t){var n=c.findExposeMetadata(e,t);return!(n&&n.options&&n.options.groups&&n.options.groups.length)}))}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(s=s.filter((function(e){return o.options.excludePrefixes.every((function(t){return e.substr(0,t.length)!==t}))}))),s=s.filter((function(e,t,n){return n.indexOf(e)===t}))},e.prototype.checkVersion=function(e,t){var n=!0;return n&&e&&(n=this.options.version>=e),n&&t&&(n=this.options.version{for(var o,i=void 0,s=e.length-1;s>=0;s--)(o=e[s])&&(i=o(t,n,i)||i);return i&&b(t,n,i),i};class x{constructor(){__publicField(this,"id"),__publicField(this,"creatorUser"),__publicField(this,"customPromptInstructions"),__publicField(this,"displayAvatarUrl"),__publicField(this,"displayName"),__publicField(this,"description"),__publicField(this,"type"),__publicField(this,"companyWebsite"),__publicField(this,"createdAt",Date.now().toString()),__publicField(this,"updatedAt",Date.now().toString()),__publicField(this,"workspaceId"),__publicField(this,"knowledgeFiles")}}C([f()],x.prototype,"id"),C([f()],x.prototype,"creatorUser"),C([f()],x.prototype,"customPromptInstructions"),C([f()],x.prototype,"displayAvatarUrl"),C([f()],x.prototype,"displayName"),C([f()],x.prototype,"description"),C([f()],x.prototype,"type"),C([f()],x.prototype,"companyWebsite"),C([f()],x.prototype,"createdAt"),C([f()],x.prototype,"updatedAt"),C([f()],x.prototype,"workspaceId");const v=e=>y(x,e,{excludeExtraneousValues:!1,exposeDefaultValues:!0});var w=(e=>(e.autocorrect="autocorrect",e.autocorrectOnAllWebsites="autocorrectOnAllWebsites",e.concernedByMarketingCampaign="concernedByMarketingCampaign",e.documentExportWatermark="documentExportWatermark",e.invitesRestriction="invitesRestriction",e.linguisticRules="linguisticRules",e.macosNativeAdapter="macosNativeAdapter",e.merciappAi="merciappAi",e.multilanguage="multilanguage",e.offersEligible="offersEligible",e.oneClickDefinitionsAndSynonyms="oneClickDefinitionsAndSynonyms",e.personalDictionary="personalDictionary",e.personalDictionaryDeactivation="personalDictionaryDeactivation",e.premiumErrors="premiumErrors",e.premiumErrorsExplanation="premiumErrorsExplanation",e.proWebsiteIntegrations="proWebsiteIntegrations",e.rewrite="rewrite",e.singleSignOn="singleSignOn",e.style="style",e.teams="teams",e.typoAutocorrect="typoAutocorrect",e.webappSdk="webappSdk",e.workspaceDictionary="workspaceDictionary",e.workspaceDictionaryAdministration="workspaceDictionaryAdministration",e.workspaceDictionaryContribution="workspaceDictionaryContribution",e.workspaceMemberList="workspaceMemberList",e.workspaceStatistics="workspaceStatistics",e))(w||{}),A=(e=>(e.Ok="ok",e.ExpiresIn31days="near_expiration",e.Expired="expired",e))(A||{}),E=(e=>(e.MONTHLY="monthly",e.YEARLY="yearly",e))(E||{}),S=(e=>(e.Assist="assist",e.Correct="correct",e.Enterprise="entreprise",e.Free="free",e))(S||{}),O=(e=>(e.Trial="trial",e))(O||{}),T=Object.defineProperty,k=(e,t,n,r)=>{for(var o,i=void 0,s=e.length-1;s>=0;s--)(o=e[s])&&(i=o(t,n,i)||i);return i&&T(t,n,i),i};class M{constructor(){__publicField(this,"debitCard",A.Ok),__publicField(this,"subscription",A.Ok)}checkIsDebitCardExpiringInLessThan31Days(){return this.debitCard===A.ExpiresIn31days}checkIsDebitCardExpired(){return this.debitCard===A.Expired}checkIsSubscriptionExpiringInMoreThan31Days(){return this.subscription===A.Ok}}k([f()],M.prototype,"debitCard"),k([f()],M.prototype,"subscription");function L(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')} //! moment.js //! version : 2.29.4 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com var R,N;function D(){return R.apply(null,arguments)}function I(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function j(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function z(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function P(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(z(e,t))return!1;return!0}function U(e){return void 0===e}function q(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function B(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function Z(e,t){var n,r=[],o=e.length;for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var ae=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,le=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ce={},ue={};function de(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(ue[e]=o),t&&(ue[t[0]]=function(){return se(o.apply(this,arguments),t[1],t[2])}),n&&(ue[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function pe(e,t){return e.isValid()?(t=he(t,e.localeData()),ce[t]=ce[t]||function(e){var t,n,r,o=e.match(ae);for(t=0,n=o.length;t=0&&le.test(e);)e=e.replace(le,r),le.lastIndex=0,n-=1;return e}var fe={};function me(e,t){var n=e.toLowerCase();fe[n]=fe[n+"s"]=fe[t]=e}function ge(e){return"string"==typeof e?fe[e]||fe[e.toLowerCase()]:void 0}function ye(e){var t,n,r={};for(n in e)z(e,n)&&(t=ge(n))&&(r[t]=e[n]);return r}var be={};function Ce(e,t){be[e]=t}function xe(e){return e%4==0&&e%100!=0||e%400==0}function ve(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function we(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ve(t)),n}function Ae(e,t){return function(n){return null!=n?(Se(this,e,n),D.updateOffset(this,t),this):Ee(this,e)}}function Ee(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Se(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&xe(e.year())&&1===e.month()&&29===e.date()?(n=we(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),st(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Oe,Te=/\d/,ke=/\d\d/,Me=/\d{3}/,Le=/\d{4}/,Re=/[+-]?\d{6}/,Ne=/\d\d?/,De=/\d\d\d\d?/,Ie=/\d\d\d\d\d\d?/,je=/\d{1,3}/,ze=/\d{1,4}/,Pe=/[+-]?\d{1,6}/,Ue=/\d+/,qe=/[+-]?\d+/,Be=/Z|[+-]\d\d:?\d\d/gi,Ze=/Z|[+-]\d\d(?::?\d\d)?/gi,Fe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function He(e,t,n){Oe[e]=re(t)?t:function(e,r){return e&&n?n:t}}function Ve(e,t){return z(Oe,e)?Oe[e](t._strict,t._locale):new RegExp(We(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o}))))}function We(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Oe={};var Ge={};function Qe(e,t){var n,r,o=t;for("string"==typeof e&&(e=[e]),q(t)&&(o=function(e,n){n[t]=we(e)}),r=e.length,n=0;n68?1900:2e3)};var yt=Ae("FullYear",!0);function bt(e,t,n,r,o,i,s){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,r,o,i,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,o,i,s),a}function Ct(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function xt(e,t,n){var r=7+t-n;return-((7+Ct(e,0,r).getUTCDay()-t)%7)+r-1}function vt(e,t,n,r,o){var i,s,a=1+7*(t-1)+(7+n-r)%7+xt(e,r,o);return a<=0?s=gt(i=e-1)+a:a>gt(e)?(i=e+1,s=a-gt(e)):(i=e,s=a),{year:i,dayOfYear:s}}function wt(e,t,n){var r,o,i=xt(e.year(),t,n),s=Math.floor((e.dayOfYear()-i-1)/7)+1;return s<1?r=s+At(o=e.year()-1,t,n):s>At(e.year(),t,n)?(r=s-At(e.year(),t,n),o=e.year()+1):(o=e.year(),r=s),{week:r,year:o}}function At(e,t,n){var r=xt(e,t,n),o=xt(e+1,t,n);return(gt(e)-r+o)/7}de("w",["ww",2],"wo","week"),de("W",["WW",2],"Wo","isoWeek"),me("week","w"),me("isoWeek","W"),Ce("week",5),Ce("isoWeek",5),He("w",Ne),He("ww",Ne,ke),He("W",Ne),He("WW",Ne,ke),Ke(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=we(e)}));function Et(e,t){return e.slice(t,7).concat(e.slice(0,t))}de("d",0,"do","day"),de("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),de("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),de("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),de("e",0,0,"weekday"),de("E",0,0,"isoWeekday"),me("day","d"),me("weekday","e"),me("isoWeekday","E"),Ce("day",11),Ce("weekday",11),Ce("isoWeekday",11),He("d",Ne),He("e",Ne),He("E",Ne),He("dd",(function(e,t){return t.weekdaysMinRegex(e)})),He("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),He("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ke(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:V(n).invalidWeekday=e})),Ke(["d","e","E"],(function(e,t,n,r){t[r]=we(e)}));var St="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ot="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Tt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),kt=Fe,Mt=Fe,Lt=Fe;function Rt(e,t,n){var r,o,i,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=H([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=Je.call(this._weekdaysParse,s))?o:null:"ddd"===t?-1!==(o=Je.call(this._shortWeekdaysParse,s))?o:null:-1!==(o=Je.call(this._minWeekdaysParse,s))?o:null:"dddd"===t?-1!==(o=Je.call(this._weekdaysParse,s))||-1!==(o=Je.call(this._shortWeekdaysParse,s))||-1!==(o=Je.call(this._minWeekdaysParse,s))?o:null:"ddd"===t?-1!==(o=Je.call(this._shortWeekdaysParse,s))||-1!==(o=Je.call(this._weekdaysParse,s))||-1!==(o=Je.call(this._minWeekdaysParse,s))?o:null:-1!==(o=Je.call(this._minWeekdaysParse,s))||-1!==(o=Je.call(this._weekdaysParse,s))||-1!==(o=Je.call(this._shortWeekdaysParse,s))?o:null}function Nt(){function e(e,t){return t.length-e.length}var t,n,r,o,i,s=[],a=[],l=[],c=[];for(t=0;t<7;t++)n=H([2e3,1]).day(t),r=We(this.weekdaysMin(n,"")),o=We(this.weekdaysShort(n,"")),i=We(this.weekdays(n,"")),s.push(r),a.push(o),l.push(i),c.push(r),c.push(o),c.push(i);s.sort(e),a.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Dt(){return this.hours()%12||12}function It(e,t){de(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function jt(e,t){return t._meridiemParse}de("H",["HH",2],0,"hour"),de("h",["hh",2],0,Dt),de("k",["kk",2],0,(function(){return this.hours()||24})),de("hmm",0,0,(function(){return""+Dt.apply(this)+se(this.minutes(),2)})),de("hmmss",0,0,(function(){return""+Dt.apply(this)+se(this.minutes(),2)+se(this.seconds(),2)})),de("Hmm",0,0,(function(){return""+this.hours()+se(this.minutes(),2)})),de("Hmmss",0,0,(function(){return""+this.hours()+se(this.minutes(),2)+se(this.seconds(),2)})),It("a",!0),It("A",!1),me("hour","h"),Ce("hour",13),He("a",jt),He("A",jt),He("H",Ne),He("h",Ne),He("k",Ne),He("HH",Ne,ke),He("hh",Ne,ke),He("kk",Ne,ke),He("hmm",De),He("hmmss",Ie),He("Hmm",De),He("Hmmss",Ie),Qe(["H","HH"],et),Qe(["k","kk"],(function(e,t,n){var r=we(e);t[et]=24===r?0:r})),Qe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Qe(["h","hh"],(function(e,t,n){t[et]=we(e),V(n).bigHour=!0})),Qe("hmm",(function(e,t,n){var r=e.length-2;t[et]=we(e.substr(0,r)),t[tt]=we(e.substr(r)),V(n).bigHour=!0})),Qe("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[et]=we(e.substr(0,r)),t[tt]=we(e.substr(r,2)),t[nt]=we(e.substr(o)),V(n).bigHour=!0})),Qe("Hmm",(function(e,t,n){var r=e.length-2;t[et]=we(e.substr(0,r)),t[tt]=we(e.substr(r))})),Qe("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[et]=we(e.substr(0,r)),t[tt]=we(e.substr(r,2)),t[nt]=we(e.substr(o))}));var zt=Ae("Hours",!0);var Pt,Ut={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:at,monthsShort:lt,week:{dow:0,doy:6},weekdays:St,weekdaysMin:Tt,weekdaysShort:Ot,meridiemParse:/[ap]\.?m?\.?/i},qt={},Bt={};function Zt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=Ht(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&Zt(o,n)>=t-1)break;t--}i++}return Pt}(e)}function Qt(e){var t,n=e._a;return n&&-2===V(e).overflow&&(t=n[_e]<0||n[_e]>11?_e:n[$e]<1||n[$e]>st(n[Xe],n[_e])?$e:n[et]<0||n[et]>24||24===n[et]&&(0!==n[tt]||0!==n[nt]||0!==n[rt])?et:n[tt]<0||n[tt]>59?tt:n[nt]<0||n[nt]>59?nt:n[rt]<0||n[rt]>999?rt:-1,V(e)._overflowDayOfYear&&(t$e)&&(t=$e),V(e)._overflowWeeks&&-1===t&&(t=ot),V(e)._overflowWeekday&&-1===t&&(t=it),V(e).overflow=t),e}var Kt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Jt=/Z|[+-]\d\d(?::?\d\d)?/,Xt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_t=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],$t=/^\/?Date\((-?\d+)/i,en=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,tn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function nn(e){var t,n,r,o,i,s,a=e._i,l=Kt.exec(a)||Yt.exec(a),c=Xt.length,u=_t.length;if(l){for(V(e).iso=!0,t=0,n=c;t7)&&(l=!0)):(i=e._locale._week.dow,s=e._locale._week.doy,c=wt(dn(),i,s),n=sn(t.gg,e._a[Xe],c.year),r=sn(t.w,c.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i);r<1||r>At(n,i,s)?V(e)._overflowWeeks=!0:null!=l?V(e)._overflowWeekday=!0:(a=vt(n,r,o,i,s),e._a[Xe]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(i=sn(e._a[Xe],r[Xe]),(e._dayOfYear>gt(i)||0===e._dayOfYear)&&(V(e)._overflowDayOfYear=!0),n=Ct(i,0,e._dayOfYear),e._a[_e]=n.getUTCMonth(),e._a[$e]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[et]&&0===e._a[tt]&&0===e._a[nt]&&0===e._a[rt]&&(e._nextDay=!0,e._a[et]=0),e._d=(e._useUTC?Ct:bt).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[et]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(V(e).weekdayMismatch=!0)}}function ln(e){if(e._f!==D.ISO_8601)if(e._f!==D.RFC_2822){e._a=[],V(e).empty=!0;var t,n,r,o,i,s,a,l=""+e._i,c=l.length,u=0;for(a=(r=he(e._f,e._locale).match(ae)||[]).length,t=0;t0&&V(e).unusedInput.push(i),l=l.slice(l.indexOf(n)+n.length),u+=n.length),ue[o]?(n?V(e).empty=!1:V(e).unusedTokens.push(o),Ye(o,n,e)):e._strict&&!n&&V(e).unusedTokens.push(o);V(e).charsLeftOver=c-u,l.length>0&&V(e).unusedInput.push(l),e._a[et]<=12&&!0===V(e).bigHour&&e._a[et]>0&&(V(e).bigHour=void 0),V(e).parsedDateParts=e._a.slice(0),V(e).meridiem=e._meridiem,e._a[et]=function(e,t,n){var r;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[et],e._meridiem),null!==(s=V(e).era)&&(e._a[Xe]=e._locale.erasConvertYear(s,e._a[Xe])),an(e),Qt(e)}else on(e);else nn(e)}function cn(e){var t=e._i,n=e._f;return e._locale=e._locale||Gt(e._l),null===t||void 0===n&&""===t?G({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),X(t)?new J(Qt(t)):(B(t)?e._d=t:I(n)?function(e){var t,n,r,o,i,s,a=!1,l=e._f.length;if(0===l)return V(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:G()}));function fn(e,t){var n,r;if(1===t.length&&I(t[0])&&(t=t[0]),!t.length)return dn();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-Hn:new Date(e,t,n).valueOf()}function Gn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Hn:Date.UTC(e,t,n)}function Qn(e,t){return t.erasAbbrRegex(e)}function Kn(){var e,t,n=[],r=[],o=[],i=[],s=this.eras();for(e=0,t=s.length;e(i=At(e,r,o))&&(t=i),Xn.call(this,e,t,n,r,o))}function Xn(e,t,n,r,o){var i=vt(e,t,n,r,o),s=Ct(i.year,0,i.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}de("N",0,0,"eraAbbr"),de("NN",0,0,"eraAbbr"),de("NNN",0,0,"eraAbbr"),de("NNNN",0,0,"eraName"),de("NNNNN",0,0,"eraNarrow"),de("y",["y",1],"yo","eraYear"),de("y",["yy",2],0,"eraYear"),de("y",["yyy",3],0,"eraYear"),de("y",["yyyy",4],0,"eraYear"),He("N",Qn),He("NN",Qn),He("NNN",Qn),He("NNNN",(function(e,t){return t.erasNameRegex(e)})),He("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),Qe(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?V(n).era=o:V(n).invalidEra=e})),He("y",Ue),He("yy",Ue),He("yyy",Ue),He("yyyy",Ue),He("yo",(function(e,t){return t._eraYearOrdinalRegex||Ue})),Qe(["y","yy","yyy","yyyy"],Xe),Qe(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Xe]=n._locale.eraYearOrdinalParse(e,o):t[Xe]=parseInt(e,10)})),de(0,["gg",2],0,(function(){return this.weekYear()%100})),de(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Yn("gggg","weekYear"),Yn("ggggg","weekYear"),Yn("GGGG","isoWeekYear"),Yn("GGGGG","isoWeekYear"),me("weekYear","gg"),me("isoWeekYear","GG"),Ce("weekYear",1),Ce("isoWeekYear",1),He("G",qe),He("g",qe),He("GG",Ne,ke),He("gg",Ne,ke),He("GGGG",ze,Le),He("gggg",ze,Le),He("GGGGG",Pe,Re),He("ggggg",Pe,Re),Ke(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=we(e)})),Ke(["gg","GG"],(function(e,t,n,r){t[r]=D.parseTwoDigitYear(e)})),de("Q",0,"Qo","quarter"),me("quarter","Q"),Ce("quarter",7),He("Q",Te),Qe("Q",(function(e,t){t[_e]=3*(we(e)-1)})),de("D",["DD",2],"Do","date"),me("date","D"),Ce("date",9),He("D",Ne),He("DD",Ne,ke),He("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Qe(["D","DD"],$e),Qe("Do",(function(e,t){t[$e]=we(e.match(Ne)[0])}));var _n=Ae("Date",!0);de("DDD",["DDDD",3],"DDDo","dayOfYear"),me("dayOfYear","DDD"),Ce("dayOfYear",4),He("DDD",je),He("DDDD",Me),Qe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=we(e)})),de("m",["mm",2],0,"minute"),me("minute","m"),Ce("minute",14),He("m",Ne),He("mm",Ne,ke),Qe(["m","mm"],tt);var $n=Ae("Minutes",!1);de("s",["ss",2],0,"second"),me("second","s"),Ce("second",15),He("s",Ne),He("ss",Ne,ke),Qe(["s","ss"],nt);var er,tr,nr=Ae("Seconds",!1);for(de("S",0,0,(function(){return~~(this.millisecond()/100)})),de(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),de(0,["SSS",3],0,"millisecond"),de(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),de(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),de(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),de(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),de(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),de(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),me("millisecond","ms"),Ce("millisecond",16),He("S",je,Te),He("SS",je,ke),He("SSS",je,Me),er="SSSS";er.length<=9;er+="S")He(er,Ue);function rr(e,t){t[rt]=we(1e3*("0."+e))}for(er="S";er.length<=9;er+="S")Qe(er,rr);tr=Ae("Milliseconds",!1),de("z",0,0,"zoneAbbr"),de("zz",0,0,"zoneName");var or=J.prototype;function ir(e){return e}or.add=Nn,or.calendar=function(e,t){1===arguments.length&&(arguments[0]?jn(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=j(e)&&!P(e),r=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;tn.valueOf():n.valueOf()9999?pe(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):re(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",pe(n,"Z")):pe(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},or.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY","-MM-DD[T]HH:mm:ss.SSS",n=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(or[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),or.toJSON=function(){return this.isValid()?this.toISOString():null},or.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},or.unix=function(){return Math.floor(this.valueOf()/1e3)},or.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},or.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},or.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},or.isLocal=function(){return!!this.isValid()&&!this._isUTC},or.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},or.isUtc=En,or.isUTC=En,or.zoneAbbr=function(){return this._isUTC?"UTC":""},or.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},or.dates=$("dates accessor is deprecated. Use date instead.",_n),or.months=$("months accessor is deprecated. Use month instead",ft),or.years=$("years accessor is deprecated. Use year instead",yt),or.zone=$("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),or.isDSTShifted=$("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!U(this._isDSTShifted))return this._isDSTShifted;var e,t={};return Y(t,this),(t=cn(t))._a?(e=t._isUTC?H(t._a):dn(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),s=0;for(r=0;r0):this._isDSTShifted=!1,this._isDSTShifted}));var sr=ie.prototype;function ar(e,t,n,r){var o=Gt(),i=H().set(r,t);return o[n](i,e)}function lr(e,t,n){if(q(e)&&(t=e,e=void 0),e=e||"",null!=t)return ar(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=ar(e,r,n,"month");return o}function cr(e,t,n,r){"boolean"==typeof e?(q(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,q(t)&&(n=t,t=void 0),t=t||"");var o,i=Gt(),s=e?i._week.dow:0,a=[];if(null!=n)return ar(t,(n+s)%7,r,"day");for(o=0;o<7;o++)a[o]=ar(t,(o+s)%7,r,"day");return a}sr.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return re(r)?r.call(t,n):r},sr.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ae).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},sr.invalidDate=function(){return this._invalidDate},sr.ordinal=function(e){return this._ordinal.replace("%d",e)},sr.preparse=ir,sr.postformat=ir,sr.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return re(o)?o(e,t,n,r):o.replace(/%d/i,e)},sr.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return re(n)?n(t):n.replace(/%s/i,t)},sr.set=function(e){var t,n;for(n in e)z(e,n)&&(re(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},sr.eras=function(e,t){var n,r,o,i=this._eras||Gt("en")._eras;for(n=0,r=i.length;n=0)return l[r]},sr.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?D(e.since).year():D(e.since).year()+(t-e.offset)*n},sr.erasAbbrRegex=function(e){return z(this,"_erasAbbrRegex")||Kn.call(this),e?this._erasAbbrRegex:this._erasRegex},sr.erasNameRegex=function(e){return z(this,"_erasNameRegex")||Kn.call(this),e?this._erasNameRegex:this._erasRegex},sr.erasNarrowRegex=function(e){return z(this,"_erasNarrowRegex")||Kn.call(this),e?this._erasNarrowRegex:this._erasRegex},sr.months=function(e,t){return e?I(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ct).test(t)?"format":"standalone"][e.month()]:I(this._months)?this._months:this._months.standalone},sr.monthsShort=function(e,t){return e?I(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ct.test(t)?"format":"standalone"][e.month()]:I(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},sr.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return pt.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=H([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},sr.monthsRegex=function(e){return this._monthsParseExact?(z(this,"_monthsRegex")||mt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(z(this,"_monthsRegex")||(this._monthsRegex=dt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},sr.monthsShortRegex=function(e){return this._monthsParseExact?(z(this,"_monthsRegex")||mt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(z(this,"_monthsShortRegex")||(this._monthsShortRegex=ut),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},sr.week=function(e){return wt(e,this._week.dow,this._week.doy).week},sr.firstDayOfYear=function(){return this._week.doy},sr.firstDayOfWeek=function(){return this._week.dow},sr.weekdays=function(e,t){var n=I(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Et(n,this._week.dow):e?n[e.day()]:n},sr.weekdaysMin=function(e){return!0===e?Et(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},sr.weekdaysShort=function(e){return!0===e?Et(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},sr.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return Rt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=H([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},sr.weekdaysRegex=function(e){return this._weekdaysParseExact?(z(this,"_weekdaysRegex")||Nt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(z(this,"_weekdaysRegex")||(this._weekdaysRegex=kt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},sr.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(z(this,"_weekdaysRegex")||Nt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(z(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Mt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},sr.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(z(this,"_weekdaysRegex")||Nt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(z(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},sr.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},sr.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},Vt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===we(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),D.lang=$("moment.lang is deprecated. Use moment.locale instead.",Vt),D.langData=$("moment.langData is deprecated. Use moment.localeData instead.",Gt);var ur=Math.abs;function dr(e,t,n,r){var o=Tn(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function pr(e){return e<0?Math.floor(e):Math.ceil(e)}function hr(e){return 4800*e/146097}function fr(e){return 146097*e/4800}function mr(e){return function(){return this.as(e)}}var gr=mr("ms"),yr=mr("s"),br=mr("m"),Cr=mr("h"),xr=mr("d"),vr=mr("w"),wr=mr("M"),Ar=mr("Q"),Er=mr("y");function Sr(e){return function(){return this.isValid()?this._data[e]:NaN}}var Or=Sr("milliseconds"),Tr=Sr("seconds"),kr=Sr("minutes"),Mr=Sr("hours"),Lr=Sr("days"),Rr=Sr("months"),Nr=Sr("years");var Dr=Math.round,Ir={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function jr(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var zr=Math.abs;function Pr(e){return(e>0)-(e<0)||+e}function Ur(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,s,a,l=zr(this._milliseconds)/1e3,c=zr(this._days),u=zr(this._months),d=this.asSeconds();return d?(e=ve(l/60),t=ve(e/60),l%=60,e%=60,n=ve(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=d<0?"-":"",i=Pr(this._months)!==Pr(d)?"-":"",s=Pr(this._days)!==Pr(d)?"-":"",a=Pr(this._milliseconds)!==Pr(d)?"-":"",o+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(c?s+c+"D":"")+(t||e||l?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(l?a+r+"S":"")):"P0D"}var qr=gn.prototype;qr.isValid=function(){return this._isValid},qr.abs=function(){var e=this._data;return this._milliseconds=ur(this._milliseconds),this._days=ur(this._days),this._months=ur(this._months),e.milliseconds=ur(e.milliseconds),e.seconds=ur(e.seconds),e.minutes=ur(e.minutes),e.hours=ur(e.hours),e.months=ur(e.months),e.years=ur(e.years),this},qr.add=function(e,t){return dr(this,e,t,1)},qr.subtract=function(e,t){return dr(this,e,t,-1)},qr.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=ge(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+hr(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(fr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},qr.asMilliseconds=gr,qr.asSeconds=yr,qr.asMinutes=br,qr.asHours=Cr,qr.asDays=xr,qr.asWeeks=vr,qr.asMonths=wr,qr.asQuarters=Ar,qr.asYears=Er,qr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*we(this._months/12):NaN},qr._bubble=function(){var e,t,n,r,o,i=this._milliseconds,s=this._days,a=this._months,l=this._data;return i>=0&&s>=0&&a>=0||i<=0&&s<=0&&a<=0||(i+=864e5*pr(fr(a)+s),s=0,a=0),l.milliseconds=i%1e3,e=ve(i/1e3),l.seconds=e%60,t=ve(e/60),l.minutes=t%60,n=ve(t/60),l.hours=n%24,s+=ve(n/24),a+=o=ve(hr(s)),s-=pr(fr(o)),r=ve(a/12),a%=12,l.days=s,l.months=a,l.years=r,this},qr.clone=function(){return Tn(this)},qr.get=function(e){return e=ge(e),this.isValid()?this[e+"s"]():NaN},qr.milliseconds=Or,qr.seconds=Tr,qr.minutes=kr,qr.hours=Mr,qr.days=Lr,qr.weeks=function(){return ve(this.days()/7)},qr.months=Rr,qr.years=Nr,qr.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,i=Ir;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(i=Object.assign({},Ir,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),r=function(e,t,n,r){var o=Tn(e).abs(),i=Dr(o.as("s")),s=Dr(o.as("m")),a=Dr(o.as("h")),l=Dr(o.as("d")),c=Dr(o.as("M")),u=Dr(o.as("w")),d=Dr(o.as("y")),p=i<=n.ss&&["s",i]||i0,p[4]=r,jr.apply(null,p)}(this,!o,i,n=this.localeData()),o&&(r=n.pastFuture(+this,r)),n.postformat(r)},qr.toISOString=Ur,qr.toString=Ur,qr.toJSON=Ur,qr.locale=Pn,qr.localeData=qn,qr.toIsoString=$("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ur),qr.lang=Un,de("X",0,0,"unix"),de("x",0,0,"valueOf"),He("x",qe),He("X",/[+-]?\d+(\.\d{1,3})?/),Qe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Qe("x",(function(e,t,n){n._d=new Date(we(e))})), //! moment.js D.version="2.29.4",R=dn,D.fn=or,D.min=function(){return fn("isBefore",[].slice.call(arguments,0))},D.max=function(){return fn("isAfter",[].slice.call(arguments,0))},D.now=function(){return Date.now?Date.now():+new Date},D.utc=H,D.unix=function(e){return dn(1e3*e)},D.months=function(e,t){return lr(e,t,"months")},D.isDate=B,D.locale=Vt,D.invalid=G,D.duration=Tn,D.isMoment=X,D.weekdays=function(e,t,n){return cr(e,t,n,"weekdays")},D.parseZone=function(){return dn.apply(null,arguments).parseZone()},D.localeData=Gt,D.isDuration=yn,D.monthsShort=function(e,t){return lr(e,t,"monthsShort")},D.weekdaysMin=function(e,t,n){return cr(e,t,n,"weekdaysMin")},D.defineLocale=Wt,D.updateLocale=function(e,t){if(null!=t){var n,r,o=Ut;null!=qt[e]&&null!=qt[e].parentLocale?qt[e].set(oe(qt[e]._config,t)):(null!=(r=Ht(e))&&(o=r._config),t=oe(o,t),null==r&&(t.abbr=e),(n=new ie(t)).parentLocale=qt[e],qt[e]=n),Vt(e)}else null!=qt[e]&&(null!=qt[e].parentLocale?(qt[e]=qt[e].parentLocale,e===Vt()&&Vt(e)):null!=qt[e]&&delete qt[e]);return qt[e]},D.locales=function(){return ee(qt)},D.weekdaysShort=function(e,t,n){return cr(e,t,n,"weekdaysShort")},D.normalizeUnits=ge,D.relativeTimeRounding=function(e){return void 0===e?Dr:"function"==typeof e&&(Dr=e,!0)},D.relativeTimeThreshold=function(e,t){return void 0!==Ir[e]&&(void 0===t?Ir[e]:(Ir[e]=t,"s"===e&&(Ir.ss=t-1),!0))},D.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},D.prototype=or,D.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var Br=Object.defineProperty,Zr=(e,t,n,r)=>{for(var o,i=void 0,s=e.length-1;s>=0;s--)(o=e[s])&&(i=o(t,n,i)||i);return i&&Br(t,n,i),i};class Fr{constructor(){__publicField(this,"amount"),__publicField(this,"defaultVatRate"),__publicField(this,"includedFeatures"),__publicField(this,"id"),__publicField(this,"interval"),__publicField(this,"nickname"),__publicField(this,"offerRank"),__publicField(this,"vatRateIncluded")}checkIsFeatureIncluded(e){return this.includedFeatures.includes(e)}checkIsAssistPlan(){return"assist"===this.getPlanType()}checkIsCorrectPlan(){return"correct"===this.getPlanType()}checkIsEnterprisePlan(){return"enterprise"===this.getPlanType()}checkIsFreePlan(){return"free"===this.getPlanType()}getReadableName({omitPrefix:e}={omitPrefix:!1}){const t=e?"":"MerciApp ";return{assist:`${t}Assist`,correct:`${t}Correct`,enterprise:`${t}Entreprise`,free:`${t}Gratuit`}[this.getPlanType()]}getPlanType(){const e=this.nickname.toLocaleLowerCase();return e.startsWith("assist")?"assist":e.startsWith("correct")||e.startsWith("pro")?"correct":e.startsWith("enterprise")?"enterprise":"free"}}Zr([f()],Fr.prototype,"amount"),Zr([f()],Fr.prototype,"defaultVatRate"),Zr([f()],Fr.prototype,"includedFeatures"),Zr([f()],Fr.prototype,"id"),Zr([f()],Fr.prototype,"interval"),Zr([f()],Fr.prototype,"nickname"),Zr([f()],Fr.prototype,"offerRank"),Zr([f()],Fr.prototype,"vatRateIncluded");var Hr=Object.defineProperty;class Vr{constructor(){__publicField(this,"availablePlans",[])}getMinimumPlanRequiredForFeature(e){return this.availablePlans.sort(((e,t)=>e.offerRank-t.offerRank)).find((t=>t.checkIsFeatureIncluded(e)))}}((e,t,n,r)=>{for(var o,i=void 0,s=e.length-1;s>=0;s--)(o=e[s])&&(i=o(t,n,i)||i);i&&Hr(t,n,i)})([f({name:"availablePlans"}),m((()=>Fr))],Vr.prototype,"availablePlans");const Wr=e=>y(Vr,{availablePlans:e},{excludeExtraneousValues:!1,exposeDefaultValues:!0});var Gr=Object.defineProperty;class Qr{constructor(){__publicField(this,"name","user")}checkIsAdminOrOwner(){return["admin","owner"].includes(this.name)}}((e,t,n,r)=>{for(var o,i=void 0,s=e.length-1;s>=0;s--)(o=e[s])&&(i=o(t,n,i)||i);i&&Gr(t,n,i)})([f()],Qr.prototype,"name");var Kr=Object.defineProperty,Yr=(e,t,n,r)=>{for(var o,i=void 0,s=e.length-1;s>=0;s--)(o=e[s])&&(i=o(t,n,i)||i);return i&&Kr(t,n,i),i};class Jr{constructor(){__publicField(this,"isAllowed",!1),__publicField(this,"isUserEnabled",!1),__publicField(this,"pendingApprovalCount",0),__publicField(this,"userCanUseWorkspaceDictionary",!1)}}Yr([f()],Jr.prototype,"isAllowed"),Yr([f()],Jr.prototype,"isUserEnabled"),Yr([f()],Jr.prototype,"pendingApprovalCount"),Yr([f()],Jr.prototype,"userCanUseWorkspaceDictionary");var Xr=Object.defineProperty,_r=(e,t,n,r)=>{for(var o,i=void 0,s=e.length-1;s>=0;s--)(o=e[s])&&(i=o(t,n,i)||i);return i&&Xr(t,n,i),i};class $r{constructor(){__publicField(this,"documents"),__publicField(this,"documentsLimit")}}_r([f()],$r.prototype,"documents"),_r([f()],$r.prototype,"documentsLimit");var eo=Object.defineProperty,to=(e,t,n,r)=>{for(var o,i=void 0,s=e.length-1;s>=0;s--)(o=e[s])&&(i=o(t,n,i)||i);return i&&eo(t,n,i),i};class no{constructor(){__publicField(this,"pictureUrl"),__publicField(this,"isDeleted",!1),__publicField(this,"stripeCardExpMonth"),__publicField(this,"stripeCardExpYear"),__publicField(this,"usage"),__publicField(this,"id",0),__publicField(this,"name","Default"),__publicField(this,"isPersonal",!1),__publicField(this,"isAdminOnlyInvites"),__publicField(this,"isMemberListRestricted",!1),__publicField(this,"isPersonalDictionaryEnabled",!0),__publicField(this,"planNickname","Pro-Monthly-VatNotIncluded"),__publicField(this,"isPlanTrial",!1),__publicField(this,"stripeCurrentPeriodEnd"),__publicField(this,"usersCount"),__publicField(this,"dictionary",new Jr),__publicField(this,"userRole",new Qr),__publicField(this,"plans"),__publicField(this,"currentPlan")}checkIsFreePlan(){return this.getUserSubscriptionName()===S.Free}checkIsCorrectPlan(){return this.getUserSubscriptionName()===S.Correct}checkIsAssistPlan(){return this.getUserSubscriptionName()===S.Assist}checkIsEnterprisePlan(){return this.getUserSubscriptionName()===S.Enterprise}checkIsPaidPlan(){return[S.Assist,S.Correct,S.Enterprise].includes(this.getUserSubscriptionName())}getPlanReadableName(){return this.checkIsFreePlan()?"MerciApp Gratuit":this.checkIsCorrectPlan()?"MerciApp Correct":this.checkIsAssistPlan()?"MerciApp Assist":this.checkIsEnterprisePlan()?"MerciApp Entreprise":"MerciApp"}checkIsProPlan(){return this.planNickname.toLowerCase().includes("pro-")}getUserSubscriptionName(){const e={"assist-":S.Assist,"correct-":S.Correct,"enterprise-":S.Enterprise,"free-":S.Free,"pro-":S.Correct},t=this.planNickname.toLowerCase();for(const[n,r]of Object.entries(e))if(t.startsWith(n))return r;return null}checkIsEmpty(){return void 0===this.id}checkIsWorkspaceAdminOrOwner(){return this.userRole.checkIsAdminOrOwner()}getRemainingDaysTillSubscriptionExpiration(){return D(this.stripeCurrentPeriodEnd).diff(D(),"days")}getPlanRenewalFrequency(){return this.planNickname.toLowerCase().includes("monthly")?E.MONTHLY:E.YEARLY}getTrialRemainingDaysCount(){if(this.isPlanTrial){const e=D(this.stripeCurrentPeriodEnd).diff(D(),"days")+1;return e>0?e:0}}fillPlanFromPlans(e){this.plans=e,this.currentPlan=e.availablePlans.find((e=>e.nickname===this.planNickname))}}to([f()],no.prototype,"pictureUrl"),to([f()],no.prototype,"isDeleted"),to([f()],no.prototype,"stripeCardExpMonth"),to([f()],no.prototype,"stripeCardExpYear"),to([f(),m((()=>$r))],no.prototype,"usage"),to([f()],no.prototype,"id"),to([f()],no.prototype,"name"),to([f()],no.prototype,"isPersonal"),to([f()],no.prototype,"isAdminOnlyInvites"),to([f()],no.prototype,"isMemberListRestricted"),to([f()],no.prototype,"isPersonalDictionaryEnabled"),to([f()],no.prototype,"planNickname"),to([f()],no.prototype,"isPlanTrial"),to([f()],no.prototype,"stripeCurrentPeriodEnd"),to([f()],no.prototype,"usersCount"),to([f(),m((()=>Jr))],no.prototype,"dictionary"),to([f(),m((()=>Qr))],no.prototype,"userRole"),to([m((()=>Vr))],no.prototype,"plans"),to([m((()=>Fr))],no.prototype,"currentPlan");var ro=(e=>(e.PROFESSIONAL="pro",e.PERSONAL="perso",e))(ro||{}),oo=Object.defineProperty,io=(e,t,n,r)=>{for(var o,i=void 0,s=e.length-1;s>=0;s--)(o=e[s])&&(i=o(t,n,i)||i);return i&&oo(t,n,i),i};class so{constructor(){var e;__publicField(this,"address"),__publicField(this,"companyIndustryId"),__publicField(this,"companyName","Default"),__publicField(this,"companySize","1-1"),__publicField(this,"companySizeId"),__publicField(this,"companyWebsite"),__publicField(this,"createdAt",(new Date).toISOString()),__publicField(this,"documentsCount",0),__publicField(this,"frequency"),__publicField(this,"goalId"),__publicField(this,"hasSlackAccessToken"),__publicField(this,"isEmailValidated"),__publicField(this,"isPlatformAdmin"),__publicField(this,"isAmbassadorProgramEligible"),__publicField(this,"jobId"),__publicField(this,"language"),__publicField(this,"pendingEmail"),__publicField(this,"phoneNumber"),__publicField(this,"referralCode"),__publicField(this,"roleId"),__publicField(this,"segmentId"),__publicField(this,"socialNetworkConnectionType"),__publicField(this,"target"),__publicField(this,"targetId"),__publicField(this,"teamId"),__publicField(this,"webextFeatures",{isAutocorrectActivated:!1,isDSDRActivated:!1,isDSDRActivatedOnEditableAreas:!1,isMultilanguageActivated:!1,isRewriteActivated:!0}),__publicField(this,"workspaceId",0),__publicField(this,"firstName",""),__publicField(this,"id",0),__publicField(this,"lastName",""),__publicField(this,"emailAddress"),__publicField(this,"profilePictureUrl"),__publicField(this,"type",ro.PERSONAL),__publicField(this,"workspace",y(no,e,{excludeExtraneousValues:!1,exposeDefaultValues:!0}))}getFullName(){return`${this.firstName} ${this.lastName}`}getUserSubscriptionName(){return this.workspace.getUserSubscriptionName()}checkIsFreePlan(){return this.workspace.checkIsFreePlan()}checkIsCorrectPlan(){return this.workspace.checkIsCorrectPlan()}checkIsAssistPlan(){return this.workspace.checkIsAssistPlan()}checkIsEnterprisePlan(){return this.workspace.checkIsEnterprisePlan()}checkIsProPlan(){return this.workspace.checkIsProPlan()}checkIsEmpty(){return void 0===this.id}checkIsProfessional(){return this.type===ro.PROFESSIONAL}checkIsWorkspaceAdminOrOwner(){return this.workspace.checkIsWorkspaceAdminOrOwner()}checkIsDSDREnabled(){return this.webextFeatures.isDSDRActivated}checkIsDSDREnabledOnEditableAreas(){return this.webextFeatures.isDSDRActivatedOnEditableAreas}checkIsAutoCorrectEnabled(){return this.webextFeatures.isAutocorrectActivated}checkIsMultilanguageEnabled(){return this.webextFeatures.isMultilanguageActivated}checkIsWebExtRewriteEnabled(){return this.webextFeatures.isRewriteActivated}getLanguageAmongSupportedOnes(){var e;return(null==(e=this.language)?void 0:e.toLocaleLowerCase().includes("fr"))?"fr":"en"}}io([f()],so.prototype,"address"),io([f()],so.prototype,"companyIndustryId"),io([f()],so.prototype,"companyName"),io([f()],so.prototype,"companySize"),io([f()],so.prototype,"companySizeId"),io([f()],so.prototype,"companyWebsite"),io([f()],so.prototype,"createdAt"),io([f()],so.prototype,"documentsCount"),io([f()],so.prototype,"frequency"),io([f()],so.prototype,"goalId"),io([f()],so.prototype,"hasSlackAccessToken"),io([f()],so.prototype,"isEmailValidated"),io([f()],so.prototype,"isPlatformAdmin"),io([f()],so.prototype,"isAmbassadorProgramEligible"),io([f()],so.prototype,"jobId"),io([f()],so.prototype,"language"),io([f()],so.prototype,"pendingEmail"),io([f()],so.prototype,"phoneNumber"),io([f()],so.prototype,"referralCode"),io([f()],so.prototype,"roleId"),io([f()],so.prototype,"segmentId"),io([f()],so.prototype,"socialNetworkConnectionType"),io([f()],so.prototype,"target"),io([f()],so.prototype,"targetId"),io([f()],so.prototype,"teamId"),io([f()],so.prototype,"webextFeatures"),io([f()],so.prototype,"workspaceId"),io([f()],so.prototype,"firstName"),io([f()],so.prototype,"id"),io([f()],so.prototype,"lastName"),io([f()],so.prototype,"emailAddress"),io([f()],so.prototype,"profilePictureUrl"),io([f()],so.prototype,"type"),io([f(),m((()=>no))],so.prototype,"workspace");const ao=e=>y(so,e,{excludeExtraneousValues:!1,exposeDefaultValues:!0});var lo=Object.defineProperty,co=(e,t,n,r)=>{for(var o,i=void 0,s=e.length-1;s>=0;s--)(o=e[s])&&(i=o(t,n,i)||i);return i&&lo(t,n,i),i};class uo{constructor(){var e;__publicField(this,"user",new so),__publicField(this,"subscriptionStatus",y(M,e,{excludeExtraneousValues:!1})),__publicField(this,"featuresAllowed",{[w.autocorrect]:{isEnabled:!1},[w.autocorrectOnAllWebsites]:{isEnabled:!1},[w.concernedByMarketingCampaign]:{isEnabled:!1},[w.documentExportWatermark]:{isEnabled:!1},[w.invitesRestriction]:{isEnabled:!1},[w.linguisticRules]:{isEnabled:!1},[w.macosNativeAdapter]:{isEnabled:!1},[w.merciappAi]:{isEnabled:!1},[w.multilanguage]:{isEnabled:!1},[w.offersEligible]:{isEnabled:!1},[w.oneClickDefinitionsAndSynonyms]:{isEnabled:!1},[w.personalDictionary]:{isEnabled:!1},[w.personalDictionaryDeactivation]:{isEnabled:!1},[w.premiumErrors]:{isEnabled:!1},[w.premiumErrorsExplanation]:{isEnabled:!1},[w.proWebsiteIntegrations]:{isEnabled:!1},[w.rewrite]:{isEnabled:!1},[w.singleSignOn]:{isEnabled:!1},[w.style]:{isEnabled:!1},[w.teams]:{isEnabled:!1},[w.typoAutocorrect]:{isEnabled:!1},[w.webappSdk]:{isEnabled:!1},[w.workspaceDictionary]:{isEnabled:!1},[w.workspaceDictionaryAdministration]:{isEnabled:!1},[w.workspaceDictionaryContribution]:{isEnabled:!1},[w.workspaceMemberList]:{isEnabled:!1},[w.workspaceStatistics]:{isEnabled:!1}}),__publicField(this,"isEmailEditable",!1),__publicField(this,"isPasswordEditable"),__publicField(this,"isProfileComplete"),__publicField(this,"isPublicEmail"),__publicField(this,"isReferralProgramEligible"),__publicField(this,"isWindowsExtendedLogsActivated")}checkIsEmpty(){var e;return null==(e=this.user)?void 0:e.checkIsEmpty()}checkIsProfessional(){return this.user.checkIsProfessional()}checkIsWorkspaceAdminOrOwner(){return this.user.checkIsWorkspaceAdminOrOwner()}getWorkspace(){return this.user.workspace}checkIsDSDREnabled(){return this.user.checkIsDSDREnabled()}checkIsDSDREnabledOnEditableAreas(){return this.user.checkIsDSDREnabledOnEditableAreas()}checkIsMultilanguageEnabled(){return this.user.checkIsMultilanguageEnabled()}checkIsWebExtRewriteEnabled(){return this.user.checkIsWebExtRewriteEnabled()}checkIsAutoCorrectEnabled(){return this.user.checkIsAutoCorrectEnabled()}checkIsFeatureAllowed(e){var t;return(null==(t=this.featuresAllowed[e])?void 0:t.isEnabled)||!1}checkWhyFeatureIsNotAllowed(e){return this.featuresAllowed[e].disabledReasons}}co([f(),m((()=>so))],uo.prototype,"user"),co([f(),m((()=>M))],uo.prototype,"subscriptionStatus"),co([f()],uo.prototype,"featuresAllowed"),co([f()],uo.prototype,"isEmailEditable"),co([f()],uo.prototype,"isPasswordEditable"),co([f()],uo.prototype,"isProfileComplete"),co([f()],uo.prototype,"isPublicEmail"),co([f()],uo.prototype,"isReferralProgramEligible"),co([f()],uo.prototype,"isWindowsExtendedLogsActivated");const po=e=>y(uo,e,{excludeExtraneousValues:!1,exposeDefaultValues:!0});var ho=(e=>(e.iframe="iframe",e.news="news",e.promotional="promotional",e.survey="survey",e.notification="notification",e.trialNotification="trialNotification",e.churnNotification="churnNotification",e.paymentNotification="paymentNotification",e))(ho||{}),fo=(e=>(e.TrialPeriodEndingSoon="TrialPeriodEndingSoon",e.TrialPeriodEnded="TrialPeriodEnded",e.Churn="Churn",e.CardExpirationSoon="CardExpirationSoon",e.CardExpired="CardExpired",e.CardExpiredRenewalWarning="CardExpiredRenewalWarning",e.PaymentFailed="PaymentFailed",e.PaymentFailedLastWarning="PaymentFailedLastWarning",e.PaymentFailedSuspended="PaymentFailedSuspended",e))(fo||{}),mo=(e=>(e[e.IndividualSpelling=1]="IndividualSpelling",e[e.IndividualProductivity=2]="IndividualProductivity",e[e.IndividualCommunication=3]="IndividualCommunication",e[e.BusinessProductivity=4]="BusinessProductivity",e[e.BusinessCredibility=5]="BusinessCredibility",e[e.BusinessCustomerSatisfaction=6]="BusinessCustomerSatisfaction",e[e.BusinessEmployeeWellbeing=7]="BusinessEmployeeWellbeing",e[e.BusinessEmployeeProgression=8]="BusinessEmployeeProgression",e[e.BusinessInternalCommunication=9]="BusinessInternalCommunication",e[e.BusinessConsistency=10]="BusinessConsistency",e[e.BusinessSocialResponsibility=11]="BusinessSocialResponsibility",e[e.Productivity=12]="Productivity",e[e.Learning=13]="Learning",e[e.Proofread=14]="Proofread",e[e.Deployment=15]="Deployment",e[e.Neutral=16]="Neutral",e))(mo||{}),go=(e=>(e.IndividualSpelling="Ne plus faire de fautes d’orthographe",e.IndividualProductivity="Écrire plus vite au quotidien",e.IndividualCommunication="Améliorer ma communication",e.BusinessProductivity="Améliorer la productivité de mon équipe",e.BusinessCredibility="Garantir la crédibilité de mon entreprise à l’écrit",e.BusinessCustomerSatisfaction="Optimiser la satisfaction et la fidélisation de mes clients",e.BusinessEmployeeWellbeing="Améliorer la qualité de vie et bien être au travail de mes salariés",e.BusinessEmployeeProgression="Permettre l’apprentissage et le développement professionnel de mes salariés",e.BusinessInternalCommunication="Améliorer la communication interne de mes salariés (clarté et compréhension)",e.BusinessConsistency="Uniformiser les contenus et communications externes de mon entreprise",e.BusinessSocialResponsibility="Renforcer mes actions RSE et favoriser l’insertion professionnelle",e.Productivity="Productivité",e.Learning="Apprentissage",e.Proofread="Relecture",e.Deployment="Déploiement",e.Neutral="Neutre",e))(go||{}),yo=(e=>(e[e.Director=1]="Director",e[e.Manager=2]="Manager",e[e.Collaborator=3]="Collaborator",e[e.Intern=4]="Intern",e[e.Student=5]="Student",e[e.Freelance=6]="Freelance",e[e.JobSeeker=7]="JobSeeker",e[e.Other=8]="Other",e))(yo||{}),bo=(e=>(e[e.Product=1]="Product",e[e.Support=2]="Support",e[e.Sales=3]="Sales",e[e.Marketing=4]="Marketing",e[e.Editorial=5]="Editorial",e[e.Administration=6]="Administration",e[e.Leadership=7]="Leadership",e[e.FinanceManagementAccounting=8]="FinanceManagementAccounting",e[e.Legal=9]="Legal",e[e.HumanResources=10]="HumanResources",e[e.Production=11]="Production",e[e.IT=12]="IT",e[e.Operations=13]="Operations",e[e.Purchasing=14]="Purchasing",e[e.Logistics=15]="Logistics",e[e.DataAnalytics=16]="DataAnalytics",e[e.Consulting=17]="Consulting",e[e.UxDesign=18]="UxDesign",e[e.QualitySafetyEnvironment=19]="QualitySafetyEnvironment",e[e.ResearchStudies=20]="ResearchStudies",e[e.Secretarial=21]="Secretarial",e[e.Maintenance=22]="Maintenance",e[e.GeneralServices=23]="GeneralServices",e[e.Other=24]="Other",e))(bo||{});mo.IndividualSpelling,go.IndividualSpelling,mo.IndividualProductivity,go.IndividualProductivity,mo.IndividualCommunication,go.IndividualCommunication,mo.BusinessProductivity,go.BusinessProductivity,mo.BusinessCredibility,go.BusinessCredibility,mo.BusinessCustomerSatisfaction,go.BusinessCustomerSatisfaction,mo.BusinessEmployeeWellbeing,go.BusinessEmployeeWellbeing,mo.BusinessEmployeeProgression,go.BusinessEmployeeProgression,mo.BusinessInternalCommunication,go.BusinessInternalCommunication,mo.BusinessConsistency,go.BusinessConsistency,mo.BusinessSocialResponsibility,go.BusinessSocialResponsibility,mo.Productivity,go.Productivity,mo.Learning,go.Learning,mo.Proofread,go.Proofread,mo.Deployment,go.Deployment,mo.Neutral,go.Neutral,yo.Director,yo.Manager,yo.Collaborator,yo.Intern,yo.Student,yo.Freelance,yo.JobSeeker,yo.Other;var Co=(e=>(e[e.Me=1]="Me",e[e.Team=2]="Team",e[e.Company=3]="Company",e[e.Other=4]="Other",e))(Co||{});Co.Me,mo.IndividualSpelling,mo.IndividualProductivity,mo.IndividualCommunication,Co.Team,mo.BusinessProductivity,mo.BusinessCredibility,mo.BusinessCustomerSatisfaction,mo.BusinessEmployeeWellbeing,mo.BusinessEmployeeProgression,mo.BusinessInternalCommunication,mo.BusinessConsistency,mo.BusinessSocialResponsibility,Co.Company,mo.BusinessProductivity,mo.BusinessCredibility,mo.BusinessCustomerSatisfaction,mo.BusinessEmployeeWellbeing,mo.BusinessEmployeeProgression,mo.BusinessInternalCommunication,mo.BusinessConsistency,mo.BusinessSocialResponsibility,Co.Other,bo.Product,bo.Support,bo.Sales,bo.Marketing,bo.HumanResources,bo.Editorial,bo.Administration,bo.Leadership,bo.FinanceManagementAccounting,bo.Legal,bo.Production,bo.IT,bo.Operations,bo.Purchasing,bo.Logistics,bo.DataAnalytics,bo.Consulting,bo.UxDesign,bo.QualitySafetyEnvironment,bo.ResearchStudies,bo.Secretarial,bo.Maintenance,bo.GeneralServices,bo.Other;class xo extends Array{constructor(e,t=[]){super(...t),this.size=e}static createFrom(e,t){const n=void 0!==t?[...e.slice(0,t)]:e;return new xo(t,n)}add(e){const t=this.indexOf(e);t>-1&&this.splice(t,1),this.length===this.size&&this.pop(),this.unshift(e)}}var vo=Object.defineProperty,wo=(e,t,n,r)=>{for(var o,i=void 0,s=e.length-1;s>=0;s--)(o=e[s])&&(i=o(t,n,i)||i);return i&&vo(t,n,i),i};class Ao{constructor(){__publicField(this,"color"),__publicField(this,"id"),__publicField(this,"name"),__publicField(this,"size",0)}}function Eo(e,t){return function(){return e.apply(t,arguments)}}wo([f()],Ao.prototype,"color"),wo([f()],Ao.prototype,"id"),wo([f()],Ao.prototype,"name"),wo([f()],Ao.prototype,"size");const{toString:So}=Object.prototype,{getPrototypeOf:Oo}=Object,To=(e=>t=>{const n=So.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ko=e=>(e=e.toLowerCase(),t=>To(t)===e),Mo=e=>t=>typeof t===e,{isArray:Lo}=Array,Ro=Mo("undefined");const No=ko("ArrayBuffer");const Do=Mo("string"),Io=Mo("function"),jo=Mo("number"),zo=e=>null!==e&&"object"==typeof e,Po=e=>{if("object"!==To(e))return!1;const t=Oo(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Uo=ko("Date"),qo=ko("File"),Bo=ko("Blob"),Zo=ko("FileList"),Fo=ko("URLSearchParams"),[Ho,Vo,Wo,Go]=["ReadableStream","Request","Response","Headers"].map(ko);function Qo(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Lo(e))for(r=0,o=e.length;r0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Yo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Jo=e=>!Ro(e)&&e!==Yo;const Xo=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Oo(Uint8Array)),_o=ko("HTMLFormElement"),$o=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ei=ko("RegExp"),ti=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Qo(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},ni="abcdefghijklmnopqrstuvwxyz",ri="0123456789",oi={DIGIT:ri,ALPHA:ni,ALPHA_DIGIT:ni+ni.toUpperCase()+ri};const ii=ko("AsyncFunction"),si={isArray:Lo,isArrayBuffer:No,isBuffer:function(e){return null!==e&&!Ro(e)&&null!==e.constructor&&!Ro(e.constructor)&&Io(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Io(e.append)&&("formdata"===(t=To(e))||"object"===t&&Io(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&No(e.buffer),t},isString:Do,isNumber:jo,isBoolean:e=>!0===e||!1===e,isObject:zo,isPlainObject:Po,isReadableStream:Ho,isRequest:Vo,isResponse:Wo,isHeaders:Go,isUndefined:Ro,isDate:Uo,isFile:qo,isBlob:Bo,isRegExp:ei,isFunction:Io,isStream:e=>zo(e)&&Io(e.pipe),isURLSearchParams:Fo,isTypedArray:Xo,isFileList:Zo,forEach:Qo,merge:function e(){const{caseless:t}=Jo(this)&&this||{},n={},r=(r,o)=>{const i=t&&Ko(n,o)||o;Po(n[i])&&Po(r)?n[i]=e(n[i],r):Po(r)?n[i]=e({},r):Lo(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o(Qo(t,((t,r)=>{n&&Io(t)?e[r]=Eo(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],r&&!r(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&Oo(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:To,kindOfTest:ko,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Lo(e))return e;let t=e.length;if(!jo(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:_o,hasOwnProperty:$o,hasOwnProp:$o,reduceDescriptors:ti,freezeMethods:e=>{ti(e,((t,n)=>{if(Io(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Io(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return Lo(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Ko,global:Yo,isContextDefined:Jo,ALPHABET:oi,generateString:(e=16,t=oi.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&Io(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(zo(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=Lo(e)?[]:{};return Qo(e,((e,t)=>{const i=n(e,r+1);!Ro(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:ii,isThenable:e=>e&&(zo(e)||Io(e))&&Io(e.then)&&Io(e.catch)};function ai(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}si.inherits(ai,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:si.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const li=ai.prototype,ci={};["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((e=>{ci[e]={value:e}})),Object.defineProperties(ai,ci),Object.defineProperty(li,"isAxiosError",{value:!0}),ai.from=(e,t,n,r,o,i)=>{const s=Object.create(li);return si.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),ai.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};function ui(e){return si.isPlainObject(e)||si.isArray(e)}function di(e){return si.endsWith(e,"[]")?e.slice(0,-2):e}function pi(e,t,n){return e?e.concat(t).map((function(e,t){return e=di(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const hi=si.toFlatObject(si,{},null,(function(e){return/^is[A-Z]/.test(e)}));function fi(e,t,n){if(!si.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=si.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!si.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&si.isSpecCompliantForm(t);if(!si.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(si.isDate(e))return e.toISOString();if(!a&&si.isBlob(e))throw new ai("Blob is not supported. Use a Buffer instead.");return si.isArrayBuffer(e)||si.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(si.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(si.isArray(e)&&function(e){return si.isArray(e)&&!e.some(ui)}(e)||(si.isFileList(e)||si.endsWith(n,"[]"))&&(a=si.toArray(e)))return n=di(n),a.forEach((function(e,r){!si.isUndefined(e)&&null!==e&&t.append(!0===s?pi([n],r,i):null===s?n:n+"[]",l(e))})),!1;return!!ui(e)||(t.append(pi(o,n,i),l(e)),!1)}const u=[],d=Object.assign(hi,{defaultVisitor:c,convertValue:l,isVisitable:ui});if(!si.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!si.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),si.forEach(n,(function(n,i){!0===(!(si.isUndefined(n)||null===n)&&o.call(t,n,si.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function mi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function gi(e,t){this._pairs=[],e&&fi(e,this,t)}const yi=gi.prototype;function bi(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ci(e,t,n){if(!t)return e;const r=n&&n.encode||bi,o=n&&n.serialize;let i;if(i=o?o(t,n):si.isURLSearchParams(t)?t.toString():new gi(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}yi.append=function(e,t){this._pairs.push([e,t])},yi.toString=function(e){const t=e?function(t){return e.call(this,t,mi)}:mi;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class xi{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){si.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const vi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wi={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:gi,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Ai="undefined"!=typeof window&&"undefined"!=typeof document,Ei=(Si="undefined"!=typeof navigator&&navigator.product,Ai&&["ReactNative","NativeScript","NS"].indexOf(Si)<0);var Si;const Oi="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ti=Ai&&window.location.href||"http://localhost",ki={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ai,hasStandardBrowserEnv:Ei,hasStandardBrowserWebWorkerEnv:Oi,origin:Ti},Symbol.toStringTag,{value:"Module"})),...wi};function Mi(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&si.isArray(r)?r.length:i,a)return si.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s;r[i]&&si.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&si.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r{t(function(e){return si.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const Li={transitional:vi,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=si.isObject(e);o&&si.isHTMLForm(e)&&(e=new FormData(e));if(si.isFormData(e))return r?JSON.stringify(Mi(e)):e;if(si.isArrayBuffer(e)||si.isBuffer(e)||si.isStream(e)||si.isFile(e)||si.isBlob(e)||si.isReadableStream(e))return e;if(si.isArrayBufferView(e))return e.buffer;if(si.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return fi(e,new ki.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ki.isNode&&si.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=si.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return fi(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(si.isString(e))try{return(t||JSON.parse)(e),si.trim(e)}catch(dd){if("SyntaxError"!==dd.name)throw dd}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Li.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(si.isResponse(e)||si.isReadableStream(e))return e;if(e&&si.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(dd){if(n){if("SyntaxError"===dd.name)throw ai.from(dd,ai.ERR_BAD_RESPONSE,this,null,this.response);throw dd}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ki.classes.FormData,Blob:ki.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};si.forEach(["delete","get","head","post","put","patch"],(e=>{Li.headers[e]={}}));const Ri=si.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ni=Symbol("internals");function Di(e){return e&&String(e).trim().toLowerCase()}function Ii(e){return!1===e||null==e?e:si.isArray(e)?e.map(Ii):String(e)}function ji(e,t,n,r,o){return si.isFunction(r)?r.call(this,t,n):(o&&(t=n),si.isString(t)?si.isString(r)?-1!==t.indexOf(r):si.isRegExp(r)?r.test(t):void 0:void 0)}class zi{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Di(t);if(!o)throw new Error("header name must be a non-empty string");const i=si.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Ii(e))}const i=(e,t)=>si.forEach(e,((e,n)=>o(e,n,t)));if(si.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(si.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Ri[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(si.isHeaders(e))for(const[s,a]of e.entries())o(a,s,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Di(e)){const n=si.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(si.isFunction(t))return t.call(this,e,n);if(si.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Di(e)){const n=si.findKey(this,e);return!(!n||void 0===this[n]||t&&!ji(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Di(e)){const o=si.findKey(n,e);!o||t&&!ji(0,n[o],o,t)||(delete n[o],r=!0)}}return si.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!ji(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return si.forEach(this,((r,o)=>{const i=si.findKey(n,o);if(i)return t[i]=Ii(r),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete t[o],t[s]=Ii(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return si.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&si.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Ni]=this[Ni]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Di(e);t[r]||(!function(e,t){const n=si.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return si.isArray(e)?e.forEach(r):r(e),this}}function Pi(e,t){const n=this||Li,r=t||n,o=zi.from(r.headers);let i=r.data;return si.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Ui(e){return!(!e||!e.__CANCEL__)}function qi(e,t,n){ai.call(this,null==e?"canceled":e,ai.ERR_CANCELED,t,n),this.name="CanceledError"}function Bi(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ai("Request failed with status code "+n.status,[ai.ERR_BAD_REQUEST,ai.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}zi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),si.reduceDescriptors(zi.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),si.freezeMethods(zi),si.inherits(qi,ai,{__CANCEL__:!0});const Zi=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=r[s];o||(o=l),n[i]=a,r[i]=l;let u=s,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),l-or)return o&&(clearTimeout(o),o=null),n=i,e.apply(null,arguments);o||(o=setTimeout((()=>(o=null,n=Date.now(),e.apply(null,arguments))),r-(i-n)))}}((n=>{const i=n.loaded,s=n.lengthComputable?n.total:void 0,a=i-r,l=o(a);r=i;const c={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&i<=s?(s-i)/l:void 0,event:n,lengthComputable:null!=s};c[t?"download":"upload"]=!0,e(c)}),n)},Fi=ki.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=si.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),Hi=ki.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];si.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),si.isString(r)&&s.push("path="+r),si.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Vi(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Wi=e=>e instanceof zi?{...e}:e;function Gi(e,t){t=t||{};const n={};function r(e,t,n){return si.isPlainObject(e)&&si.isPlainObject(t)?si.merge.call({caseless:n},e,t):si.isPlainObject(t)?si.merge({},t):si.isArray(t)?t.slice():t}function o(e,t,n){return si.isUndefined(t)?si.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!si.isUndefined(t))return r(void 0,t)}function s(e,t){return si.isUndefined(t)?si.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>o(Wi(e),Wi(t),!0)};return si.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,s=i(e[r],t[r],r);si.isUndefined(s)&&i!==a||(n[r]=s)})),n}const Qi=e=>{const t=Gi({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:l}=t;if(t.headers=a=zi.from(a),t.url=Ci(Vi(t.baseURL,t.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),si.isFormData(r))if(ki.hasStandardBrowserEnv||ki.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(ki.hasStandardBrowserEnv&&(o&&si.isFunction(o)&&(o=o(t)),o||!1!==o&&Fi(t.url))){const e=i&&s&&Hi.read(s);e&&a.set(i,e)}return t},Ki="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Qi(e);let o=r.data;const i=zi.from(r.headers).normalize();let s,{responseType:a}=r;function l(){r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let c=new XMLHttpRequest;function u(){if(!c)return;const r=zi.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());Bi((function(e){t(e),l()}),(function(e){n(e),l()}),{data:a&&"text"!==a&&"json"!==a?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:e,request:c}),c=null}c.open(r.method.toUpperCase(),r.url,!0),c.timeout=r.timeout,"onloadend"in c?c.onloadend=u:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(u)},c.onabort=function(){c&&(n(new ai("Request aborted",ai.ECONNABORTED,r,c)),c=null)},c.onerror=function(){n(new ai("Network Error",ai.ERR_NETWORK,r,c)),c=null},c.ontimeout=function(){let e=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const t=r.transitional||vi;r.timeoutErrorMessage&&(e=r.timeoutErrorMessage),n(new ai(e,t.clarifyTimeoutError?ai.ETIMEDOUT:ai.ECONNABORTED,r,c)),c=null},void 0===o&&i.setContentType(null),"setRequestHeader"in c&&si.forEach(i.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),si.isUndefined(r.withCredentials)||(c.withCredentials=!!r.withCredentials),a&&"json"!==a&&(c.responseType=r.responseType),"function"==typeof r.onDownloadProgress&&c.addEventListener("progress",Zi(r.onDownloadProgress,!0)),"function"==typeof r.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",Zi(r.onUploadProgress)),(r.cancelToken||r.signal)&&(s=t=>{c&&(n(!t||t.type?new qi(null,e,c):t),c.abort(),c=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const d=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);d&&-1===ki.protocols.indexOf(d)?n(new ai("Unsupported protocol "+d+":",ai.ERR_BAD_REQUEST,e)):c.send(o||null)}))},Yi=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ai?t:new qi(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new ai(`timeout ${t} of ms exceeded`,ai.ETIMEDOUT))}),t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:a}=r;return a.unsubscribe=s,[a,()=>{i&&clearTimeout(i),i=null}]},Ji=function*(e,t){let n=e.byteLength;if(!t||n{const i=async function*(e,t,n){for await(const r of e)yield*Ji(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let s=0;return new ReadableStream({type:"bytes",async pull(e){const{done:t,value:o}=await i.next();if(t)return e.close(),void r();let a=o.byteLength;n&&n(s+=a),e.enqueue(new Uint8Array(o))},cancel:e=>(r(e),i.return())},{highWaterMark:2})},_i=(e,t)=>{const n=null!=e;return r=>setTimeout((()=>t({lengthComputable:n,total:e,loaded:r})))},$i="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,es=$i&&"function"==typeof ReadableStream,ts=$i&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ns=es&&(()=>{let e=!1;const t=new Request(ki.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),rs=es&&!!(()=>{try{return si.isReadableStream(new Response("").body)}catch(e){}})(),is={stream:rs&&(e=>e.body)};var ss;$i&&(ss=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!is[e]&&(is[e]=si.isFunction(ss[e])?t=>t[e]():(t,n)=>{throw new ai(`Response type '${e}' is not supported`,ai.ERR_NOT_SUPPORT,n)})})));const as=async(e,t)=>{const n=si.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:si.isBlob(e)?e.size:si.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:si.isArrayBufferView(e)?e.byteLength:(si.isURLSearchParams(e)&&(e+=""),si.isString(e)?(await ts(e)).byteLength:void 0))(t):n},ls={http:null,xhr:Ki,fetch:$i&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=Qi(e);c=c?(c+"").toLowerCase():"text";let h,f,[m,g]=o||i||s?Yi([o,i],s):[];const y=()=>{!h&&setTimeout((()=>{m&&m.unsubscribe()})),h=!0};let b;try{if(l&&ns&&"get"!==n&&"head"!==n&&0!==(b=await as(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});si.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body&&(r=Xi(n.body,65536,_i(b,Zi(l)),null,ts))}si.isString(d)||(d=d?"cors":"omit"),f=new Request(t,{...p,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",withCredentials:d});let o=await fetch(f);const i=rs&&("stream"===c||"response"===c);if(rs&&(a||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=si.toFiniteNumber(o.headers.get("content-length"));o=new Response(Xi(o.body,65536,a&&_i(t,Zi(a,!0)),i&&y,ts),e)}c=c||"text";let s=await is[si.findKey(is,c)||"text"](o,e);return!i&&y(),g&&g(),await new Promise(((t,n)=>{Bi(t,n,{data:s,headers:zi.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:f})}))}catch(C){if(y(),C&&"TypeError"===C.name&&/fetch/i.test(C.message))throw Object.assign(new ai("Network Error",ai.ERR_NETWORK,e,f),{cause:C.cause||C});throw ai.from(C,C&&C.code,e,f)}})};si.forEach(ls,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(dd){}Object.defineProperty(e,"adapterName",{value:t})}}));const cs=e=>`- ${e}`,us=e=>si.isFunction(e)||null===e||!1===e,ds={getAdapter:e=>{e=si.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new ai("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(cs).join("\n"):" "+cs(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r},adapters:ls};function ps(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qi(null,e)}function hs(e){ps(e),e.headers=zi.from(e.headers),e.data=Pi.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ds.getAdapter(e.adapter||Li.adapter)(e).then((function(t){return ps(e),t.data=Pi.call(e,e.transformResponse,t),t.headers=zi.from(t.headers),t}),(function(t){return Ui(t)||(ps(e),t&&t.response&&(t.response.data=Pi.call(e,e.transformResponse,t.response),t.response.headers=zi.from(t.response.headers))),Promise.reject(t)}))}const fs="1.7.2",ms={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ms[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const gs={};ms.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.2] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new ai(r(o," has been removed"+(t?" in "+t:"")),ai.ERR_DEPRECATED);return t&&!gs[o]&&(gs[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const ys={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ai("options must be an object",ai.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new ai("option "+i+" must be "+n,ai.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ai("Unknown option "+i,ai.ERR_BAD_OPTION)}},validators:ms},bs=ys.validators;class Cs{constructor(e){this.defaults=e,this.interceptors={request:new xi,response:new xi}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(dd){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Gi(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&ys.assertOptions(n,{silentJSONParsing:bs.transitional(bs.boolean),forcedJSONParsing:bs.transitional(bs.boolean),clarifyTimeoutError:bs.transitional(bs.boolean)},!1),null!=r&&(si.isFunction(r)?t.paramsSerializer={serialize:r}:ys.assertOptions(r,{encode:bs.function,serialize:bs.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&si.merge(o.common,o[t.method]);o&&si.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=zi.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!a){const e=[hs.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new qi(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new xs((function(t){e=t})),cancel:e}}}const vs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vs).forEach((([e,t])=>{vs[t]=e}));const ws=function e(t){const n=new Cs(t),r=Eo(Cs.prototype.request,n);return si.extend(r,Cs.prototype,n,{allOwnKeys:!0}),si.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Gi(t,n))},r}(Li);ws.Axios=Cs,ws.CanceledError=qi,ws.CancelToken=xs,ws.isCancel=Ui,ws.VERSION=fs,ws.toFormData=fi,ws.AxiosError=ai,ws.Cancel=ws.CanceledError,ws.all=function(e){return Promise.all(e)},ws.spread=function(e){return function(t){return e.apply(null,t)}},ws.isAxiosError=function(e){return si.isObject(e)&&!0===e.isAxiosError},ws.mergeConfig=Gi,ws.AxiosHeaders=zi,ws.formToJSON=e=>Mi(si.isHTMLForm(e)?new FormData(e):e),ws.getAdapter=ds.getAdapter,ws.HttpStatusCode=vs,ws.default=ws;var As=(e=>(e.french="fr",e.english="en",e.german="de",e.italian="it",e.spanish="es",e.portuguese="pt",e.unknown="xx",e.default="",e))(As||{});class Es{constructor(e,t,n){this.token=e,this.options=t,this.instanceIdentifier=n}static initConfig(e,t,n){Es.config=new Es(e,t,n)}}class Ss{getAnalyticsSendSegmentUserEventUri(){return"/analytics/segment/send-user-event"}getAnalyticsSendWarehouseUserEventUri(){return"/analytics/warehouse"}getAnalyzeAutocorrectionsUri(){return"/ws/analyzer/get-bert-autocorrections"}getAnalyzeCheckLanguageUri(){return"/ws/analyzer/detect-languages"}getAnalyzeGetDictionaryUri(){return"/ws/analyzer/get-dictionary"}getAnalyzeGetExplanationUri(){return"/ws/analyzer/get-explanation"}getAnalyzeNewUri(){return"/ws/analyzer/new"}getDictionaryAddWordUri(){return"/words"}getDictionaryRemoveWordUri({wordId:e}){return`/words/${e}`}getExclusionUrlAddUri(){return"/exclusion-url"}getExclusionUrlCheckUri({scriptId:e,url:t}){return`/exclusion-url/is-excluded?search=${encodeURIComponent(t)}&scriptId=${e}`}getExclusionUrlRemoveUri({exclusionUrlId:e}){return`/exclusion-url/${e}`}getPopupCurrentUri(){return"/popup/current"}getPopupMarkCurrentAsViewedUri(){return"/popup/viewed"}getPopupOptOutUri(){return"/popup/opt-out"}getRewriteUri(){return"/rewrite/new"}getSubscriptionFetchAllPlansUri(){return"/ws/billing/plans"}getSubscriptionFetchCurrentSubscriptionUri(){return"/ws/billing"}getUsersGetProfileUri(){return"/users/me"}getUsersLoginUri(){return"/users/login"}getUsersOfferUri(){return"/offers/current"}getUsersQuotaUri(){return"/users/usage"}getUsersAnalyzedWordsQuotaUri(){return"/users/usage/analyzed-words"}getUsersUpdateUri(){return"/users"}getAssistantsUri(){return"/ws/assistants"}}class Os extends Ss{getAnalyzeAutocorrectionsUri(){return"/sdk/get-bert-autocorrections"}getAnalyzeCheckLanguageUri(){return"/sdk/detect-languages"}getAnalyzeGetExplanationUri(){return"/sdk/get-explanation"}getAnalyzeNewUri(){return"/sdk/new-analysis"}getRewriteUri(){return"/sdk/new-rewrite"}}class Ts{constructor(e){this.cache=new Map,this.DEFAULT_TTL=6e4,this.ttl=e??this.DEFAULT_TTL}get(e){const t=this.cache.get(e);if(t)return t.value}set(e,t){this.cache.has(e)&&this.delete(e);const n={expire:Date.now()+this.ttl,timeout:setTimeout((()=>{this.delete(e)}),this.ttl),value:t};this.cache.set(e,n)}delete(e){if(!this.cache.has(e))return;const{timeout:t}=this.cache.get(e);clearTimeout(t),this.cache.delete(e)}clear(){this.cache.forEach(((e,t)=>{this.delete(t)}))}}class ks{constructor(e){var t,n;this.apiRoutesService=Es.config.options.shouldCheckCookie?new Ss:new Os,this.cacheService=new Ts;const{appVersion:r,baseURL:o,authenticationToken:i}=e;this.appVersion=r,this.baseURL=o,this.authenticationToken=i,this.productOrigin=(null==(n=null==(t=null==Es?void 0:Es.config)?void 0:t.options)?void 0:n.shouldCheckCookie)?"WebApp":"WebExtension"}async sendRequest(e){const{auth:t,body:n,endpoint:r,jwt:o,method:i,responseType:s,signal:a,timeoutInMs:l}=e,c=this.getHeaders(i,n,t,o);try{const e=await this.doSendRequest(n,i,r,c,l,a,s);return this.handleOnFulfilled(i,r,n,e),e}catch(u){throw this.handleOnRejected(u),u}}handleOnRejected(e){throw e&&e.response?e.response:e}handleOnFulfilled(e,t,n,r){console.log(`➡️ [${e.toUpperCase()}] ${t}\n️➡️ Body: ${JSON.stringify(n)}\n${200===r.status?"☀️":"⚡️"} ${r.status}\n✉️ Data: ${r.data?`${JSON.stringify(r.data).substring(0,50)}…`:"null"}`)}async doSendRequest(e,t,n,r,o,i,s="json"){return ws({adapter:"fetch",baseURL:this.baseURL,data:e||null,headers:r,method:t,responseType:s,signal:i,timeout:o||1e4,url:n,withCredentials:!0})}getHeaders(e,t,n,r){const o={Accept:"application/json","X-Merci-Origin":this.productOrigin,"X-Merci-Version":this.appVersion};if("put"!==e&&"post"!==e||!t||(o["Content-Type"]="application/json"),n){if(!r)throw new Error("Not connected user");o[this.authenticationToken]=`Bearer ${r}`}return o}}class Ms extends ks{sendSegmentUserEvent(e){const{name:t,properties:n,jwt:r}=e;return this.sendRequest({auth:!0,body:{name:t,properties:n},endpoint:this.apiRoutesService.getAnalyticsSendSegmentUserEventUri(),jwt:r,method:"post"})}sendWarehouseUserEvent(e){const{fieldId:t,name:n,origin:r,scriptId:o,valueNumber:i,valueText:s,jwt:a}=e;return this.sendRequest({auth:!0,body:{fieldId:t,name:n,origin:r,scriptId:o,valueNumber:i,valueText:s},endpoint:this.apiRoutesService.getAnalyticsSendWarehouseUserEventUri(),jwt:a,method:"post"})}}class Ls extends ks{new(e){var t,n,r,o;const{containsNewlines:i,cursorIndex:s,diffIndex:a,fieldId:l,jwt:c,language:u,onlyPrimaryErrors:d,origin:p,rewriteEnabled:h,scriptId:f,tableRanges:m,text:g}=e,y={containsNewlines:i,cursorIndex:s,diffIndex:a,fieldId:l,lang:u,onlyPrimaryErrors:d,origin:p,rewriteEnabled:h,scriptId:f,tableRanges:m,text:g};return y.allowSophisticatedTypoChart=null==(n=null==(t=Es.config)?void 0:t.options)?void 0:n.allowSophisticatedTypoChart,y.rewriteEnabled=!!(null==(o=null==(r=Es.config)?void 0:r.options)?void 0:o.enableRewriting),this.sendRequest({auth:!0,body:y,endpoint:this.apiRoutesService.getAnalyzeNewUri(),jwt:c,method:"post"})}checkLanguage(e){const{jwt:t,scriptId:n,fieldId:r,origin:o,allowedLanguage:i,text:s}=e;return this.sendRequest({auth:!0,body:{allowedLanguage:i,fieldId:r,origin:o,scriptId:n,text:s},endpoint:this.apiRoutesService.getAnalyzeCheckLanguageUri(),jwt:t,method:"post"})}getExplanation(e){var t,n;const{jwt:r,scriptId:o,fieldId:i,origin:s,text:a,index:l,type:c,code:u}=e,d={allowSophisticatedTypoChart:void 0,code:u,fieldId:i,index:l,origin:s,scriptId:o,text:a,type:c};return d.allowSophisticatedTypoChart=null==(n=null==(t=Es.config)?void 0:t.options)?void 0:n.allowSophisticatedTypoChart,this.sendRequest({auth:!0,body:d,endpoint:this.apiRoutesService.getAnalyzeGetExplanationUri(),jwt:r,method:"post"})}getDictionary(e){const{jwt:t,text:n,index:r,types:o}=e;return this.sendRequest({auth:!0,body:{index:r,text:n,types:o},endpoint:this.apiRoutesService.getAnalyzeGetDictionaryUri(),jwt:t,method:"post"})}getAutocorrection(e){const{scriptId:t,fieldId:n,origin:r,text:o,suggestions:i,flags:s,index:a,length:l,type:c,code:u,jwt:d}=e;return this.sendRequest({auth:!0,body:{code:u,fieldId:n,flags:s,index:a,length:l,origin:r,scriptId:t,suggestions:i,text:o,type:c},endpoint:this.apiRoutesService.getAnalyzeAutocorrectionsUri(),jwt:d,method:"post"})}}class Rs extends ks{createAssitant(e){const{jwt:t,...n}=e;return this.sendRequest({auth:!0,body:{...n},endpoint:this.apiRoutesService.getAssistantsUri(),jwt:t,method:"post"})}fetchAssistants(e){return this.sendRequest({auth:!0,endpoint:this.apiRoutesService.getAssistantsUri(),jwt:e,method:"GET"})}fetchAssistant(e,t){return this.sendRequest({auth:!0,endpoint:`${this.apiRoutesService.getAssistantsUri()}/${t}`,jwt:e,method:"GET"})}askAssistant(e){const{assistantId:t,context:n,jwt:r,signal:o,userPrompt:i}=e;return this.sendRequest({auth:!0,body:{context:n,enableStream:!0,userPrompt:i},endpoint:"number"==typeof t?`${this.apiRoutesService.getAssistantsUri()}/${t}/ask`:`${this.apiRoutesService.getAssistantsUri()}/ask`,jwt:r,method:"POST",responseType:"stream",signal:o,timeoutInMs:6e4})}}class Ns extends ks{add(e){const{jwt:t,url:n}=e;return this.cacheService.clear(),this.sendRequest({auth:!0,body:{url:n},endpoint:this.apiRoutesService.getExclusionUrlAddUri(),jwt:t,method:"post"})}disable(e){const{jwt:t,exclusionUrlId:n}=e;return this.cacheService.clear(),this.sendRequest({auth:!0,endpoint:this.apiRoutesService.getExclusionUrlRemoveUri({exclusionUrlId:n}),jwt:t,method:"delete"})}async isExcluded(e){const{jwt:t,isAuthenticated:n,url:r,scriptId:o}=e,i=this.cacheService.get(r);if(i)return i;const s=await this.sendRequest({auth:n,endpoint:this.apiRoutesService.getExclusionUrlCheckUri({scriptId:o,url:r}),jwt:t,method:"get"});return this.cacheService.set(r,s),s}}class Ds extends ks{getCurrent(e){const{jwt:t}=e;return this.sendRequest({auth:!0,endpoint:this.apiRoutesService.getUsersOfferUri(),jwt:t,method:"get"})}}class Is extends ks{getCurrent(e){const{jwt:t}=e;return this.sendRequest({auth:!0,endpoint:this.apiRoutesService.getPopupCurrentUri(),jwt:t,method:"get"})}markAsViewed(e){const{jwt:t}=e;return this.sendRequest({auth:!0,endpoint:this.apiRoutesService.getPopupMarkCurrentAsViewedUri(),jwt:t,method:"post"})}optOut(e){const{type:t,jwt:n}=e;return this.sendRequest({auth:!0,body:{type:t},endpoint:this.apiRoutesService.getPopupOptOutUri(),jwt:n,method:"post"})}}class js extends ks{new(e){const{customInstructions:t,isAdditionalRewrite:n,jwt:r,rewriteId:o,style:i,text:s}=e;return this.sendRequest({auth:!0,body:{customInstructions:t,isAdditionalRewrite:n,rewriteId:o,style:i,text:s},endpoint:this.apiRoutesService.getRewriteUri(),jwt:r,method:"post",timeoutInMs:3e4})}}class zs extends ks{getAllPlans(e){const{jwt:t}=e;return this.sendRequest({auth:!0,endpoint:this.apiRoutesService.getSubscriptionFetchAllPlansUri(),jwt:t,method:"get"})}getSubscription(e){const{jwt:t}=e;return this.sendRequest({auth:!0,endpoint:this.apiRoutesService.getSubscriptionFetchCurrentSubscriptionUri(),jwt:t,method:"get"})}}class Ps extends ks{login(e){const{emailAddress:t,password:n}=e;return this.sendRequest({auth:!1,body:{emailAddress:t,password:n},endpoint:this.apiRoutesService.getUsersLoginUri(),method:"post"})}update({isDSDRActivated:e,isDSDRActivatedOnEditableAreas:t,isAutocorrectActivated:n,isMultilanguageActivated:r,isRewriteActivated:o,jwt:i}){return this.sendRequest({auth:!0,body:{webextFeatures:{isAutocorrectActivated:n,isDSDRActivated:e,isDSDRActivatedOnEditableAreas:t,isMultilanguageActivated:r,isRewriteActivated:o}},endpoint:this.apiRoutesService.getUsersUpdateUri(),jwt:i,method:"put"})}me(e){const{jwt:t}=e;return this.sendRequest({auth:!0,endpoint:this.apiRoutesService.getUsersGetProfileUri(),jwt:t,method:"get"})}getCurrentOffers(e){const{jwt:t}=e;return this.sendRequest({auth:!0,endpoint:this.apiRoutesService.getUsersOfferUri(),jwt:t,method:"get"})}getQuota(e){const{jwt:t}=e;return this.sendRequest({auth:!0,endpoint:this.apiRoutesService.getUsersQuotaUri(),jwt:t,method:"get"})}getAnalyzedWordsQuota(e){const{jwt:t}=e;return this.sendRequest({auth:!0,endpoint:this.apiRoutesService.getUsersAnalyzedWordsQuotaUri(),jwt:t,method:"get"})}}class Us extends ks{add(e){const{jwt:t,lang:n,word:r}=e;return this.sendRequest({auth:!0,body:{lang:n,word:r},endpoint:this.apiRoutesService.getDictionaryAddWordUri(),jwt:t,method:"post"})}remove(e){const{jwt:t,wordId:n}=e;return this.sendRequest({auth:!0,endpoint:this.apiRoutesService.getDictionaryRemoveWordUri({wordId:n}),jwt:t,method:"delete"})}}const qs=class e{constructor(){this.analytics=new Ms(e.initParams),this.analyze=new Ls(e.initParams),this.exclusionUrl=new Ns(e.initParams),this.offers=new Ds(e.initParams),this.popup=new Is(e.initParams),this.rewrite=new js(e.initParams),this.subscription=new zs(e.initParams),this.users=new Ps(e.initParams),this.words=new Us(e.initParams),this.assistants=new Rs(e.initParams)}};qs.initParams={appVersion:"3.60.0",authenticationToken:"Authorization",baseURL:"https://web.merci-app.com/api"};let Bs=qs;const Zs=e=>e instanceof HTMLInputElement&&("text"===e.type||"search"===e.type),Fs=e=>e instanceof HTMLTextAreaElement,Hs=e=>Zs(e)||Fs(e),Vs=e=>e.readOnly,Ws=()=>"undefined"!=typeof window&&null!==window.mozInnerScreenX&&void 0!==window.mozInnerScreenX,Gs=e=>e.classList.contains("cke_editable"),Qs=e=>e instanceof HTMLElement&&Boolean(e.isContentEditable),Ks=()=>{try{return window.self!==window.top}catch(e){return!0}},Ys=e=>"BODY"===e.nodeName&&e.isContentEditable&&"tinymce"===e.id,Js=e=>{const t=getComputedStyle(e)["overflow-y"];return"auto"===t||"scroll"===t},Xs=e=>new Promise((t=>setTimeout(t,e))),_s=()=>/https:\/\/docs\.google\.com\/document\/d\//.test(window.location.href)&&window.document.getElementsByClassName("kix-appview-editor-container").length>0,$s=()=>document.body.classList.contains("docs-body-pageless"),ea=()=>/https:\/\/docs\.google\.com\/presentation\/d\//.test(window.location.href)&&!!window.document.getElementById("canvas-container"),ta=()=>{var e,t;return null==(t=null==(e=document.getElementById("docs-editor"))?void 0:e.classList)?void 0:t.contains("punch-fullscreen-present")},na=e=>{const t=/https:\/\/.*\.hubspotpreview.*\.com/.test(e)&&"contentEditor-inpage"===window.self.name;return/https:\/\/.*\.hubspot\.com/.test(e)||t},ra=e=>{if(!e)return{x:1,y:1};const t={x:1,y:1},n=e.getBoundingClientRect(),{offsetWidth:r,offsetHeight:o}=e;return Math.abs(n.width-r)>1&&(t.x=n.width/r),Math.abs(n.height-o)>1&&(t.y=n.height/o),t},oa=class e{constructor(){this.registeredCallbacks=[]}static get browser(){return e._browser||(this._browser=new e),e._browser}static initTestBrowser(e){throw new Error("Tests should use MciBrowserStandalone.ts")}async getTabs(e){}getTab(e){return null}addOnTabActivatedListener(e){}async getAllCommands(){return[]}addCommandListener(){}addOnTabUpdatedListener(e){}addOnAlarmListener(t){e.ALARMS.forEach((e=>{document.addEventListener(e.name,t)}))}addOnInstalledListener(e){e()}addOnMessageListener(e){return this.registeredCallbacks.find((t=>t===e))||this.registeredCallbacks.push(e),e}addOnTabMessageListener(t){const n=e=>{t({additional:e.detail.additional,properties:e.detail.properties,type:e.detail.type},e.detail.sender)};return document.addEventListener(e.ON_TAB_MESSAGE_EVT,n),n}removeOnMessageListener(t){this.registeredCallbacks=this.registeredCallbacks.filter((e=>e!==t)),document.removeEventListener(e.ON_TAB_MESSAGE_EVT,t)}async clearAlarm(t){clearInterval(e.ALARMS.find((e=>e.name===t)).timer),e.ALARMS=e.ALARMS.filter((e=>e.name!==t))}createAlarm(t,n){const{when:r,delayInMinutes:o,periodInMinutes:i}=n;if(r&&o)throw new Error("Options when and delayInMinutes cannot both be set.");const s=(new Date).getTime();let a=r?s-r:0;a||(a=i?60*i*1e3:0),setTimeout((()=>{i?document.dispatchEvent(new CustomEvent(t)):e.ALARMS.push({name:t,timer:setInterval((()=>{document.dispatchEvent(new CustomEvent(t))}),60*i*1e3)})}),a)}async getCookie(e,t){return new Promise(((e,n)=>{try{const n=`; ${document.cookie}`.split(`; ${t}=`);e({value:2===n.length?n.pop().split(";").shift():void 0})}catch(r){n(`getCookie: ${r.message}`)}}))}async removeCookie(e,t){return!1}async uninstallExtension(){}sendMessage(t,n){return new Promise((n=>{const r=JSON.parse(t);this.registeredCallbacks.forEach((t=>{t({additional:r.additional,properties:r.properties,type:r.type},{tab:{active:!0,highlighted:!0,id:e.SDK_TAB_ID,incognito:!1,index:0,pinned:!1,url:window.location.href}},this.getOnSendResponseCallback(n))}))}))}sendTabMessage({message:t}){const n=JSON.parse(t);return document.dispatchEvent(new CustomEvent(e.ON_TAB_MESSAGE_EVT,{detail:{properties:n.properties,sender:{tab:{id:1,url:window.location.href}},type:n.type}})),Promise.resolve(null)}getAllTabs(){return Promise.resolve([{active:!0,highlighted:!1,id:1,incognito:!1,index:0,pinned:!1,url:window.location.href}])}async createTab(e){window.open(e,"_blank").focus()}async executeScriptInTab(e,t){return[]}getManifest(){return{content_scripts:[]}}async getAllWindows(e){return await Promise.resolve([{tabs:[{url:window.location.href}]}])}async setUninstallURL(e){}getExtensionUrl(e){}getFromStorage(e){return Promise.resolve(window.localStorage.getItem(e))}setInStorage(t,n){return window.localStorage.setItem(t,n),window.localStorage.getItem(n)===n?(document.dispatchEvent(new CustomEvent(e.ON_STORAGE_CHANGE_EVT,{detail:{changes:n}})),Promise.resolve(!0)):Promise.resolve(!1)}addOnStorageChangeListener(t){document.addEventListener(e.ON_STORAGE_CHANGE_EVT,(e=>{const{changes:n}=e.detail,r={};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(r[t]=n[t]);t(r)}))}async setBadgeBackgroundColor(e){}async setBadgeText(e){}async setIcon(e){}async sendBackgroundMessage({tabId:e,message:t}){}async sendContentScriptMessage(e){}setCookie(e,t,n,r){return Promise.resolve(void 0)}async getManagedStorageKey(){}getOnSendResponseCallback(e){return t=>{e(t)}}};oa.SDK_TAB_ID=-1,oa.ALARMS=[],oa.ON_TAB_MESSAGE_EVT="ON_TAB_MESSAGE",oa.ON_STORAGE_CHANGE_EVT="ON_STORAGE_CHANGE";let ia=oa;class sa{static create(){return ia.browser}}class aa{constructor(){this.alarms={},this.setupListener()}create(e,t,n){this.alarms.hasOwnProperty(e)?console.error(`Alarm named ${e} already exists`):(sa.create().createAlarm(e,n),this.alarms[e]=t)}clear(e){sa.create().clearAlarm(e),delete this.alarms[e]}setupListener(){sa.create().addOnAlarmListener((e=>{var t,n;null==(n=(t=this.alarms)[e.name])||n.call(t)}))}}class la{setIcon(e){sa.create().setIcon({path:e})}setBadgeText(e){sa.create().setBadgeText(e)}setBadgeBackgroundColor(e){sa.create().setBadgeBackgroundColor(e)}}class ca{async getCredentials(e){const t=await sa.create().getCookie(e,"prod-jwt");return void 0!==(null==t?void 0:t.value)?decodeURIComponent(t.value):null}async getHasAcceptedOptionalDataCollectionForFirefox(e){const t=await sa.create().getCookie(e,"hasAcceptedOptionalDataCollection");return this.checkIsCookieSameValue(t,"true")}async getHasAcceptedGcuForFirefox(e){const t=await sa.create().getCookie(e,"hasAcceptedGCU");return this.checkIsCookieSameValue(t,"true")}async removeCredentials(e){return await sa.create().removeCookie(e,"prod-jwt")}async setAcceptedGcu(){const e=new Date;e.setFullYear(e.getFullYear()+100);const t=Math.ceil(e.getTime()/1e3);await sa.create().setCookie(t,"https://merci-app.com","hasAcceptedGCU","true")}async setAcceptedOptionalDataCollection(){const e=new Date;e.setFullYear(e.getFullYear()+100);const t=Math.ceil(e.getTime()/1e3);await sa.create().setCookie(t,"https://merci-app.com","hasAcceptedOptionalDataCollection","true")}checkIsCookieSameValue(e,t){return"string"==typeof(null==e?void 0:e.value)&&decodeURIComponent(e.value)===t}}class ua extends Error{}class da extends ua{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class pa extends ua{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class ha extends ua{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class fa extends ua{}class ma extends ua{constructor(e){super(`Invalid unit ${e}`)}}class ga extends ua{}class ya extends ua{constructor(){super("Zone is an abstract class")}}const ba="numeric",Ca="short",xa="long",va={year:ba,month:ba,day:ba},wa={year:ba,month:Ca,day:ba},Aa={year:ba,month:Ca,day:ba,weekday:Ca},Ea={year:ba,month:xa,day:ba},Sa={year:ba,month:xa,day:ba,weekday:xa},Oa={hour:ba,minute:ba},Ta={hour:ba,minute:ba,second:ba},ka={hour:ba,minute:ba,second:ba,timeZoneName:Ca},Ma={hour:ba,minute:ba,second:ba,timeZoneName:xa},La={hour:ba,minute:ba,hourCycle:"h23"},Ra={hour:ba,minute:ba,second:ba,hourCycle:"h23"},Na={hour:ba,minute:ba,second:ba,hourCycle:"h23",timeZoneName:Ca},Da={hour:ba,minute:ba,second:ba,hourCycle:"h23",timeZoneName:xa},Ia={year:ba,month:ba,day:ba,hour:ba,minute:ba},ja={year:ba,month:ba,day:ba,hour:ba,minute:ba,second:ba},za={year:ba,month:Ca,day:ba,hour:ba,minute:ba},Pa={year:ba,month:Ca,day:ba,hour:ba,minute:ba,second:ba},Ua={year:ba,month:Ca,day:ba,weekday:Ca,hour:ba,minute:ba},qa={year:ba,month:xa,day:ba,hour:ba,minute:ba,timeZoneName:Ca},Ba={year:ba,month:xa,day:ba,hour:ba,minute:ba,second:ba,timeZoneName:Ca},Za={year:ba,month:xa,day:ba,weekday:xa,hour:ba,minute:ba,timeZoneName:xa},Fa={year:ba,month:xa,day:ba,weekday:xa,hour:ba,minute:ba,second:ba,timeZoneName:xa};function Ha(e){return void 0===e}function Va(e){return"number"==typeof e}function Wa(e){return"number"==typeof e&&e%1==0}function Ga(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(dd){return!1}}function Qa(e,t,n){if(0!==e.length)return e.reduce(((e,r)=>{const o=[t(r),r];return e&&n(e[0],o[0])===e[0]?e:o}),null)[1]}function Ka(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ya(e,t,n){return Wa(e)&&e>=t&&e<=n}function Ja(e,t=2){const n=e<0?"-":"",r=n?-1*e:e;let o;return o=r.toString().length=0&&(t=new Date(t),t.setUTCFullYear(t.getUTCFullYear()-1900)),+t}function ol(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===t||3===r?53:52}function il(e){return e>99?e:e>60?1900+e:2e3+e}function sl(e,t,n,r=null){const o=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const s={timeZoneName:t,...i},a=new Intl.DateTimeFormat(n,s).formatToParts(o).find((e=>"timezonename"===e.type.toLowerCase()));return a?a.value:null}function al(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function ll(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new ga(`Invalid unit value ${e}`);return t}function cl(e,t){const n={};for(const r in e)if(Ka(e,r)){const o=e[r];if(null==o)continue;n[t(r)]=ll(o)}return n}function ul(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),o=e>=0?"+":"-";switch(t){case"short":return`${o}${Ja(n,2)}:${Ja(r,2)}`;case"narrow":return`${o}${n}${r>0?`:${r}`:""}`;case"techie":return`${o}${Ja(n,2)}${Ja(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function dl(e){return function(e,t){return t.reduce(((t,n)=>(t[n]=e[n],t)),{})}(e,["hour","minute","second","millisecond"])}const pl=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/,hl=["January","February","March","April","May","June","July","August","September","October","November","December"],fl=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ml=["J","F","M","A","M","J","J","A","S","O","N","D"];function gl(e){switch(e){case"narrow":return[...ml];case"short":return[...fl];case"long":return[...hl];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const yl=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],bl=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Cl=["M","T","W","T","F","S","S"];function xl(e){switch(e){case"narrow":return[...Cl];case"short":return[...bl];case"long":return[...yl];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const vl=["AM","PM"],wl=["Before Christ","Anno Domini"],Al=["BC","AD"],El=["B","A"];function Sl(e){switch(e){case"narrow":return[...El];case"short":return[...Al];case"long":return[...wl];default:return null}}function Ol(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const Tl={D:va,DD:wa,DDD:Ea,DDDD:Sa,t:Oa,tt:Ta,ttt:ka,tttt:Ma,T:La,TT:Ra,TTT:Na,TTTT:Da,f:Ia,ff:za,fff:qa,ffff:Za,F:ja,FF:Pa,FFF:Ba,FFFF:Fa};let kl=class e{static create(t,n={}){return new e(t,n)}static parseFormat(e){let t=null,n="",r=!1;const o=[];for(let i=0;i0&&o.push({literal:r,val:n}),t=null,n="",r=!r):r||s===t?n+=s:(n.length>0&&o.push({literal:!1,val:n}),n=s,t=s)}return n.length>0&&o.push({literal:r,val:n}),o}static macroTokenToFormatOpts(e){return Tl[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTime(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTimeParts(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).formatToParts()}resolvedOptions(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return Ja(e,t);const n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(t,n){const r="en"===this.loc.listingMode(),o=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,i=(e,n)=>this.loc.extract(t,e,n),s=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",a=()=>r?function(e){return vl[e.hour<12?0:1]}(t):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(e,n)=>r?function(e,t){return gl(t)[e.month-1]}(t,e):i(n?{month:e}:{month:e,day:"numeric"},"month"),c=(e,n)=>r?function(e,t){return xl(t)[e.weekday-1]}(t,e):i(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),u=n=>{const r=e.macroTokenToFormatOpts(n);return r?this.formatWithSystemDefault(t,r):n},d=e=>r?function(e,t){return Sl(t)[e.year<0?0:1]}(t,e):i({era:e},"era");return Ol(e.parseFormat(n),(e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return a();case"d":return o?i({day:"numeric"},"day"):this.num(t.day);case"dd":return o?i({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return o?i({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return o?i({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return o?i({month:"numeric"},"month"):this.num(t.month);case"MM":return o?i({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return o?i({year:"numeric"},"year"):this.num(t.year);case"yy":return o?i({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return o?i({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return o?i({year:"numeric"},"year"):this.num(t.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(e)}}))}formatDurationFromString(t,n){const r=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},o=e.parseFormat(n),i=o.reduce(((e,{literal:t,val:n})=>t?e:e.concat(n)),[]);return Ol(o,(e=>t=>{const n=r(t);return n?this.num(e.get(n),t.length):t})(t.shiftTo(...i.map(r).filter((e=>e)))))}};class Ml{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class Ll{get type(){throw new ya}get name(){throw new ya}get isUniversal(){throw new ya}offsetName(e,t){throw new ya}formatOffset(e,t){throw new ya}offset(e){throw new ya}equals(e){throw new ya}get isValid(){throw new ya}}let Rl=null;class Nl extends Ll{static get instance(){return null===Rl&&(Rl=new Nl),Rl}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return sl(e,t,n)}formatOffset(e,t){return ul(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}const Dl=RegExp(`^${pl.source}$`);let Il={};const jl={year:0,month:1,day:2,hour:3,minute:4,second:5};let zl={};class Pl extends Ll{static create(e){return zl[e]||(zl[e]=new Pl(e)),zl[e]}static resetCache(){zl={},Il={}}static isValidSpecifier(e){return!(!e||!e.match(Dl))}static isValidZone(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(dd){return!1}}static parseGMTOffset(e){if(e){const t=e.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(t)return-60*parseInt(t[1])}return null}constructor(e){super(),this.zoneName=e,this.valid=Pl.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return sl(e,t,n,this.name)}formatOffset(e,t){return ul(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const n=(c=this.name,Il[c]||(Il[c]=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:c,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Il[c]),[r,o,i,s,a,l]=n.formatToParts?function(e,t){const n=e.formatToParts(t),r=[];for(let o=0;o=0?d:1e3+d,(rl({year:r,month:o,day:i,hour:s,minute:a,second:l,millisecond:0})-u)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let Ul=null;class ql extends Ll{static get utcInstance(){return null===Ul&&(Ul=new ql(0)),Ul}static instance(e){return 0===e?ql.utcInstance:new ql(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new ql(al(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${ul(this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return ul(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class Bl extends Ll{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Zl(e,t){let n;if(Ha(e)||null===e)return t;if(e instanceof Ll)return e;if("string"==typeof e){const r=e.toLowerCase();return"local"===r||"system"===r?t:"utc"===r||"gmt"===r?ql.utcInstance:null!=(n=Pl.parseGMTOffset(e))?ql.instance(n):Pl.isValidSpecifier(r)?Pl.create(e):ql.parseSpecifier(r)||new Bl(e)}return Va(e)?ql.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new Bl(e)}let Fl,Hl=()=>Date.now(),Vl="system",Wl=null,Gl=null,Ql=null;class Kl{static get now(){return Hl}static set now(e){Hl=e}static set defaultZone(e){Vl=e}static get defaultZone(){return Zl(Vl,Nl.instance)}static get defaultLocale(){return Wl}static set defaultLocale(e){Wl=e}static get defaultNumberingSystem(){return Gl}static set defaultNumberingSystem(e){Gl=e}static get defaultOutputCalendar(){return Ql}static set defaultOutputCalendar(e){Ql=e}static get throwOnInvalid(){return Fl}static set throwOnInvalid(e){Fl=e}static resetCaches(){oc.resetCache(),Pl.resetCache()}}let Yl={};function Jl(e,t={}){const n=JSON.stringify([e,t]);let r=Yl[n];return r||(r=new Intl.DateTimeFormat(e,t),Yl[n]=r),r}let Xl={};let _l={};let $l=null;function ec(e,t,n,r,o){const i=e.listingMode(n);return"error"===i?null:"en"===i?r(t):o(t)}class tc{constructor(e,t,n){if(this.padTo=n.padTo||0,this.floor=n.floor||!1,!t){const t={useGrouping:!1};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){const n=JSON.stringify([e,t]);let r=Xl[n];return r||(r=new Intl.NumberFormat(e,t),Xl[n]=r),r}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return Ja(this.floor?Math.floor(e):$a(e,3),this.padTo)}}class nc{constructor(e,t,n){let r;if(this.opts=n,e.zone.isUniversal){const t=e.offset/60*-1,o=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`,i=Pl.isValidZone(o);0!==e.offset&&i?(r=o,this.dt=e):(r="UTC",n.timeZoneName?this.dt=e:this.dt=0===e.offset?e:sd.fromMillis(e.ts+60*e.offset*1e3))}else"system"===e.zone.type?this.dt=e:(this.dt=e,r=e.zone.name);const o={...this.opts};r&&(o.timeZone=r),this.dtf=Jl(t,o)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class rc{constructor(e,t,n){this.opts={style:"long",...n},!t&&Ga()&&(this.rtf=function(e,t={}){const{base:n,...r}=t,o=JSON.stringify([e,r]);let i=_l[o];return i||(i=new Intl.RelativeTimeFormat(e,t),_l[o]=i),i}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n="always",r=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&i){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${o[e][0]}`;case-1:return n?"yesterday":`last ${o[e][0]}`;case 0:return n?"today":`this ${o[e][0]}`}}const s=Object.is(t,-0)||t<0,a=Math.abs(t),l=1===a,c=o[e],u=r?l?c[1]:c[2]||c[1]:l?o[e][0]:e;return s?`${a} ${u} ago`:`in ${a} ${u}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}class oc{static fromOpts(e){return oc.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,t,n,r=!1){const o=e||Kl.defaultLocale,i=o||(r?"en-US":$l||($l=(new Intl.DateTimeFormat).resolvedOptions().locale,$l)),s=t||Kl.defaultNumberingSystem,a=n||Kl.defaultOutputCalendar;return new oc(i,s,a,o)}static resetCache(){$l=null,Yl={},Xl={},_l={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n}={}){return oc.create(e,t,n)}constructor(e,t,n,r){const[o,i,s]=function(e){const t=e.indexOf("-u-");if(-1===t)return[e];{let n;const r=e.substring(0,t);try{n=Jl(e).resolvedOptions()}catch(dd){n=Jl(r).resolvedOptions()}const{numberingSystem:o,calendar:i}=n;return[r,o,i]}}(e);this.locale=o,this.numberingSystem=t||i||null,this.outputCalendar=n||s||null,this.intl=function(e,t,n){return n||t?(e+="-u",n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(e=!0){const t=this.isEnglish(),n=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t&&n?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?oc.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1,n=!0){return ec(this,e,n,gl,(()=>{const n=t?{month:e,day:"numeric"}:{month:e},r=t?"format":"standalone";return this.monthsCache[r][e]||(this.monthsCache[r][e]=function(e){const t=[];for(let n=1;n<=12;n++){const r=sd.utc(2016,n,1);t.push(e(r))}return t}((e=>this.extract(e,n,"month")))),this.monthsCache[r][e]}))}weekdays(e,t=!1,n=!0){return ec(this,e,n,xl,(()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=function(e){const t=[];for(let n=1;n<=7;n++){const r=sd.utc(2016,11,13+n);t.push(e(r))}return t}((e=>this.extract(e,n,"weekday")))),this.weekdaysCache[r][e]}))}meridiems(e=!0){return ec(this,void 0,e,(()=>vl),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[sd.utc(2016,11,13,9),sd.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e,t=!0){return ec(this,e,t,Sl,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[sd.utc(-40,1,1),sd.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,n){const r=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===n));return r?r.value:null}numberFormatter(e={}){return new tc(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new nc(e,this.intl,t)}relFormatter(e={}){return new rc(this.intl,this.isEnglish(),e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}function ic(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function sc(...e){return t=>e.reduce((([e,n,r],o)=>{const[i,s,a]=o(t,r);return[{...e,...i},n||s,a]}),[{},null,1]).slice(0,2)}function ac(e,...t){if(null==e)return[null,null];for(const[n,r]of t){const t=n.exec(e);if(t)return r(t)}return[null,null]}function lc(...e){return(t,n)=>{const r={};let o;for(o=0;ovoid 0!==e&&(t||e&&u)?-e:e;return[{years:p(Xa(n)),months:p(Xa(r)),weeks:p(Xa(o)),days:p(Xa(i)),hours:p(Xa(s)),minutes:p(Xa(a)),seconds:p(Xa(l),"-0"===l),milliseconds:p(_a(c),d)}]}const Sc={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Oc(e,t,n,r,o,i,s){const a={year:2===t.length?il(Xa(t)):Xa(t),month:fl.indexOf(n)+1,day:Xa(r),hour:Xa(o),minute:Xa(i)};return s&&(a.second=Xa(s)),e&&(a.weekday=e.length>3?yl.indexOf(e)+1:bl.indexOf(e)+1),a}const Tc=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function kc(e){const[,t,n,r,o,i,s,a,l,c,u,d]=e,p=Oc(t,o,r,n,i,s,a);let h;return h=l?Sc[l]:c?0:al(u,d),[p,new ql(h)]}const Mc=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Lc=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Rc=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Nc(e){const[,t,n,r,o,i,s,a]=e;return[Oc(t,o,r,n,i,s,a),ql.utcInstance]}function Dc(e){const[,t,n,r,o,i,s,a]=e;return[Oc(t,a,n,r,o,i,s),ql.utcInstance]}const Ic=ic(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,pc),jc=ic(/(\d{4})-?W(\d\d)(?:-?(\d))?/,pc),zc=ic(/(\d{4})-?(\d{3})/,pc),Pc=ic(dc),Uc=sc(bc,Cc,xc),qc=sc(hc,Cc,xc),Bc=sc(fc,Cc,xc),Zc=sc(Cc,xc);const Fc=sc(Cc);const Hc=ic(/(\d{4})-(\d\d)-(\d\d)/,gc),Vc=ic(mc),Wc=sc(bc,Cc,xc,vc),Gc=sc(Cc,xc,vc);const Qc={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Kc={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...Qc},Yc=365.2425,Jc=30.436875,Xc={years:{quarters:4,months:12,weeks:52.1775,days:Yc,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:Jc,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Qc},_c=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],$c=_c.slice(0).reverse();function eu(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new nu(r)}function tu(e,t,n,r,o){const i=e[o][n],s=t[n]/i,a=!(Math.sign(s)===Math.sign(r[o]))&&0!==r[o]&&Math.abs(s)<=1?(l=s)<0?Math.floor(l):Math.ceil(l):Math.trunc(s);var l;r[o]+=a,t[n]-=a*i}class nu{constructor(e){const t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||oc.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?Xc:Kc,this.isLuxonDuration=!0}static fromMillis(e,t){return nu.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new ga("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new nu({values:cl(e,nu.normalizeUnit),loc:oc.fromObject(t),conversionAccuracy:t.conversionAccuracy})}static fromISO(e,t){const[n]=ac(e,[Ac,Ec]);return n?nu.fromObject(n,t):nu.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=ac(e,[wc,Fc]);return n?nu.fromObject(n,t):nu.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new ga("need to specify a reason the Duration is invalid");const n=e instanceof Ml?e:new Ml(e,t);if(Kl.throwOnInvalid)throw new ha(n);return new nu({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new ma(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?kl.create(this.loc,n).formatDurationFromString(this,e):"Invalid Duration"}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=$a(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const n=this.shiftTo("hours","minutes","seconds","milliseconds");let r="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===n.seconds&&0===n.milliseconds||(r+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===n.milliseconds||(r+=".SSS"));let o=n.toFormat(r);return e.includePrefix&&(o="T"+o),o}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=ru(e),n={};for(const r of _c)(Ka(t.values,r)||Ka(this.values,r))&&(n[r]=t.get(r)+this.get(r));return eu(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=ru(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=ll(e(this.values[n],n));return eu(this,{values:t},!0)}get(e){return this[nu.normalizeUnit(e)]}set(e){if(!this.isValid)return this;return eu(this,{values:{...this.values,...cl(e,nu.normalizeUnit)}})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n}={}){const r={loc:this.loc.clone({locale:e,numberingSystem:t})};return n&&(r.conversionAccuracy=n),eu(this,r)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return function(e,t){$c.reduce(((n,r)=>Ha(t[r])?n:(n&&tu(e,t,n,t,r),r)),null)}(this.matrix,e),eu(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>nu.normalizeUnit(e)));const t={},n={},r=this.toObject();let o;for(const i of _c)if(e.indexOf(i)>=0){o=i;let e=0;for(const t in n)e+=this.matrix[t][i]*n[t],n[t]=0;Va(r[i])&&(e+=r[i]);const s=Math.trunc(e);t[i]=s,n[i]=e-s;for(const n in r)_c.indexOf(n)>_c.indexOf(i)&&tu(this.matrix,r,n,t,i)}else Va(r[i])&&(n[i]=r[i]);for(const i in n)0!==n[i]&&(t[o]+=i===o?n[i]:n[i]/this.matrix[o][i]);return eu(this,{values:t},!0).normalize()}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=-this.values[t];return eu(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const r of _c)if(t=this.values[r],n=e.values[r],!(void 0===t||0===t?void 0===n||0===n:t===n))return!1;var t,n;return!0}}function ru(e){if(Va(e))return nu.fromMillis(e);if(nu.isDuration(e))return e;if("object"==typeof e)return nu.fromObject(e);throw new ga(`Unknown duration argument ${e} of type ${typeof e}`)}const ou="Invalid Interval";class iu{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new ga("need to specify a reason the Interval is invalid");const n=e instanceof Ml?e:new Ml(e,t);if(Kl.throwOnInvalid)throw new pa(n);return new iu({invalid:n})}static fromDateTimes(e,t){const n=ad(e),r=ad(t),o=function(e,t){return e&&e.isValid?t&&t.isValid?te}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&(this.s<=e&&this.e>e)}set({start:e,end:t}={}){return this.isValid?iu.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(ad).filter((e=>this.contains(e))).sort(),n=[];let{s:r}=this,o=0;for(;r+this.e?this.e:e;n.push(iu.fromDateTimes(r,i)),r=i,o+=1}return n}splitBy(e){const t=ru(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let n,{s:r}=this,o=1;const i=[];for(;re*o)));n=+e>+this.e?this.e:e,i.push(iu.fromDateTimes(r,n)),r=n,o+=1}return i}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e)}equals(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e=n?null:iu.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return iu.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n]),[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const r=[],o=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),i=Array.prototype.concat(...o).sort(((e,t)=>e.time-t.time));for(const s of i)n+="s"===s.type?1:-1,1===n?t=s.time:(t&&+t!=+s.time&&r.push(iu.fromDateTimes(t,s.time)),t=null);return iu.merge(r)}difference(...e){return iu.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:ou}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:ou}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ou}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:ou}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:ou}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):nu.invalid(this.invalidReason)}mapEndpoints(e){return iu.fromDateTimes(e(this.s),e(this.e))}}let su=class{static hasDST(e=Kl.defaultZone){const t=sd.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Pl.isValidSpecifier(e)&&Pl.isValidZone(e)}static normalizeZone(e){return Zl(e,Kl.defaultZone)}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:o="gregory"}={}){return(r||oc.create(t,n,o)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:o="gregory"}={}){return(r||oc.create(t,n,o)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||oc.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||oc.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return oc.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return oc.create(t,null,"gregory").eras(e)}static features(){return{relative:Ga()}}};function au(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(nu.fromMillis(r).as("days"))}function lu(e,t,n,r){let[o,i,s,a]=function(e,t,n){const r=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=au(e,t);return(n-n%7)/7}],["days",au]],o={};let i,s;for(const[a,l]of r)if(n.indexOf(a)>=0){i=a;let n=l(e,t);s=e.plus({[a]:n}),s>t?(e=e.plus({[a]:n-1}),n-=1):e=s,o[a]=n}return[e,o,s,i]}(e,t,n);const l=t-o,c=n.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===c.length&&(s0?nu.fromMillis(l,r).shiftTo(...c).plus(u):u}const cu={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},uu={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},du=cu.hanidec.replace(/[\[|\]]/g,"").split("");function pu({numberingSystem:e},t=""){return new RegExp(`${cu[e||"latn"]}${t}`)}const hu="missing Intl.DateTimeFormat.formatToParts support";function fu(e,t=(e=>e)){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n=n&&r<=o&&(t+=r-n)}}return parseInt(t,10)}return t}(e))}}const mu=`( |${String.fromCharCode(160)})`,gu=new RegExp(mu,"g");function yu(e){return e.replace(/\./g,"\\.?").replace(gu,mu)}function bu(e){return e.replace(/\./g,"").replace(gu," ").toLowerCase()}function Cu(e,t){return null===e?null:{regex:RegExp(e.map(yu).join("|")),deser:([n])=>e.findIndex((e=>bu(n)===bu(e)))+t}}function xu(e,t){return{regex:e,deser:([,e,t])=>al(e,t),groups:t}}function vu(e){return{regex:e,deser:([e])=>e}}const wu={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};let Au=null;function Eu(e,t){if(e.literal)return e;const n=kl.macroTokenToFormatOpts(e.val);if(!n)return e;const r=kl.create(t,n).formatDateTimeParts((Au||(Au=sd.fromMillis(1555555555555)),Au)).map((e=>function(e,t,n){const{type:r,value:o}=e;if("literal"===r)return{literal:!0,val:o};const i=n[r];let s=wu[r];return"object"==typeof s&&(s=s[i]),s?{literal:!1,val:s}:void 0}(e,0,n)));return r.includes(void 0)?e:r}function Su(e,t,n){const r=function(e,t){return Array.prototype.concat(...e.map((e=>Eu(e,t))))}(kl.parseFormat(n),e),o=r.map((t=>function(e,t){const n=pu(t),r=pu(t,"{2}"),o=pu(t,"{3}"),i=pu(t,"{4}"),s=pu(t,"{6}"),a=pu(t,"{1,2}"),l=pu(t,"{1,3}"),c=pu(t,"{1,6}"),u=pu(t,"{1,9}"),d=pu(t,"{2,4}"),p=pu(t,"{4,6}"),h=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},f=(f=>{if(e.literal)return h(f);switch(f.val){case"G":return Cu(t.eras("short",!1),0);case"GG":return Cu(t.eras("long",!1),0);case"y":return fu(c);case"yy":case"kk":return fu(d,il);case"yyyy":case"kkkk":return fu(i);case"yyyyy":return fu(p);case"yyyyyy":return fu(s);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return fu(a);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return fu(r);case"MMM":return Cu(t.months("short",!0,!1),1);case"MMMM":return Cu(t.months("long",!0,!1),1);case"LLL":return Cu(t.months("short",!1,!1),1);case"LLLL":return Cu(t.months("long",!1,!1),1);case"o":case"S":return fu(l);case"ooo":case"SSS":return fu(o);case"u":return vu(u);case"a":return Cu(t.meridiems(),0);case"E":case"c":return fu(n);case"EEE":return Cu(t.weekdays("short",!1,!1),1);case"EEEE":return Cu(t.weekdays("long",!1,!1),1);case"ccc":return Cu(t.weekdays("short",!0,!1),1);case"cccc":return Cu(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return xu(new RegExp(`([+-]${a.source})(?::(${r.source}))?`),2);case"ZZZ":return xu(new RegExp(`([+-]${a.source})(${r.source})?`),2);case"z":return vu(/[a-z_+-/]{1,256}?/i);default:return h(f)}})(e)||{invalidReason:hu};return f.token=e,f}(t,e))),i=o.find((e=>e.invalidReason));if(i)return{input:t,tokens:r,invalidReason:i.invalidReason};{const[e,n]=function(e){return[`^${e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"")}$`,e]}(o),i=RegExp(e,"i"),[s,a]=function(e,t,n){const r=e.match(t);if(r){const e={};let t=1;for(const o in n)if(Ka(n,o)){const i=n[o],s=i.groups?i.groups+1:1;!i.literal&&i.token&&(e[i.token.val[0]]=i.deser(r.slice(t,t+s))),t+=s}return[r,e]}return[r,{}]}(t,i,n),[l,c]=a?function(e){let t;return t=Ha(e.Z)?Ha(e.z)?null:Pl.create(e.z):new ql(e.Z),Ha(e.q)||(e.M=3*(e.q-1)+1),Ha(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),Ha(e.u)||(e.S=_a(e.u)),[Object.keys(e).reduce(((t,n)=>{const r=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return r&&(t[r]=e[n]),t}),{}),t]}(a):[null,null];if(Ka(a,"a")&&Ka(a,"H"))throw new fa("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:i,rawMatches:s,matches:a,result:l,zone:c}}}const Ou=[0,31,59,90,120,151,181,212,243,273,304,334],Tu=[0,31,60,91,121,152,182,213,244,274,305,335];function ku(e,t){return new Ml("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Mu(e,t,n){const r=new Date(Date.UTC(e,t-1,n)).getUTCDay();return 0===r?7:r}function Lu(e,t,n){return n+(el(e)?Tu:Ou)[t-1]}function Ru(e,t){const n=el(e)?Tu:Ou,r=n.findIndex((e=>eol(t)?(s=t+1,a=1):s=t,{weekYear:s,weekNumber:a,weekday:i,...dl(e)}}function Du(e){const{weekYear:t,weekNumber:n,weekday:r}=e,o=Mu(t,1,4),i=tl(t);let s,a=7*n+r-o-3;a<1?(s=t-1,a+=tl(s)):a>i?(s=t+1,a-=tl(t)):s=t;const{month:l,day:c}=Ru(s,a);return{year:s,month:l,day:c,...dl(e)}}function Iu(e){const{year:t,month:n,day:r}=e;return{year:t,ordinal:Lu(t,n,r),...dl(e)}}function ju(e){const{year:t,ordinal:n}=e,{month:r,day:o}=Ru(t,n);return{year:t,month:r,day:o,...dl(e)}}function zu(e){const t=Wa(e.year),n=Ya(e.month,1,12),r=Ya(e.day,1,nl(e.year,e.month));return t?n?!r&&ku("day",e.day):ku("month",e.month):ku("year",e.year)}function Pu(e){const{hour:t,minute:n,second:r,millisecond:o}=e,i=Ya(t,0,23)||24===t&&0===n&&0===r&&0===o,s=Ya(n,0,59),a=Ya(r,0,59),l=Ya(o,0,999);return i?s?a?!l&&ku("millisecond",o):ku("second",r):ku("minute",n):ku("hour",t)}const Uu="Invalid DateTime",qu=864e13;function Bu(e){return new Ml("unsupported zone",`the zone "${e.name}" is not supported`)}function Zu(e){return null===e.weekData&&(e.weekData=Nu(e.c)),e.weekData}function Fu(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new sd({...n,...t,old:n})}function Hu(e,t,n){let r=e-60*t*1e3;const o=n.offset(r);if(t===o)return[r,t];r-=60*(o-t)*1e3;const i=n.offset(r);return o===i?[r,o]:[e-60*Math.min(o,i)*1e3,Math.max(o,i)]}function Vu(e,t){const n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Wu(e,t,n){return Hu(rl(e),t,n)}function Gu(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),o=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),i={...e.c,year:r,month:o,day:Math.min(e.c.day,nl(r,o))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},s=nu.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=rl(i);let[l,c]=Hu(a,n,e.zone);return 0!==s&&(l+=s,c=e.zone.offset(l)),{ts:l,o:c}}function Qu(e,t,n,r,o){const{setZone:i,zone:s}=n;if(e&&0!==Object.keys(e).length){const r=t||s,o=sd.fromObject(e,{...n,zone:r});return i?o:o.setZone(s)}return sd.invalid(new Ml("unparsable",`the input "${o}" can't be parsed as ${r}`))}function Ku(e,t,n=!0){return e.isValid?kl.create(oc.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Yu(e,{suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r,includePrefix:o=!1,includeZone:i=!1,spaceZone:s=!1,format:a="extended"}){let l="basic"===a?"HHmm":"HH:mm";t&&0===e.second&&0===e.millisecond||(l+="basic"===a?"ss":":ss",n&&0===e.millisecond||(l+=".SSS")),(i||r)&&s&&(l+=" "),i?l+="z":r&&(l+="basic"===a?"ZZZ":"ZZ");let c=Ku(e,l);return o&&(c="T"+c),c}const Ju={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Xu={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},_u={ordinal:1,hour:0,minute:0,second:0,millisecond:0},$u=["year","month","day","hour","minute","second","millisecond"],ed=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],td=["year","ordinal","hour","minute","second","millisecond"];function nd(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new ma(e);return t}function rd(e,t){const n=Zl(t.zone,Kl.defaultZone),r=oc.fromObject(t),o=Kl.now();let i,s;if(Ha(e.year))i=o;else{for(const n of $u)Ha(e[n])&&(e[n]=Ju[n]);const t=zu(e)||Pu(e);if(t)return sd.invalid(t);const r=n.offset(o);[i,s]=Wu(e,r,n)}return new sd({ts:i,zone:n,loc:r,o:s})}function od(e,t,n){const r=!!Ha(n.round)||n.round,o=(e,o)=>{e=$a(e,r||n.calendary?0:2,!0);return t.loc.clone(n).relFormatter(n).format(e,o)},i=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return o(i(n.unit),n.unit);for(const s of n.units){const e=i(s);if(Math.abs(e)>=1)return o(e,s)}return o(e>t?-0:0,n.units[n.units.length-1])}function id(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}class sd{constructor(e){const t=e.zone||Kl.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Ml("invalid input"):null)||(t.isValid?null:Bu(t));this.ts=Ha(e.ts)?Kl.now():e.ts;let r=null,o=null;if(!n){if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,o]=[e.old.c,e.old.o];else{const e=t.offset(this.ts);r=Vu(this.ts,e),n=Number.isNaN(r.year)?new Ml("invalid input"):null,r=n?null:r,o=n?null:e}}this._zone=t,this.loc=e.loc||oc.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=o,this.isLuxonDateTime=!0}static now(){return new sd({})}static local(){const[e,t]=id(arguments),[n,r,o,i,s,a,l]=t;return rd({year:n,month:r,day:o,hour:i,minute:s,second:a,millisecond:l},e)}static utc(){const[e,t]=id(arguments),[n,r,o,i,s,a,l]=t;return e.zone=ql.utcInstance,rd({year:n,month:r,day:o,hour:i,minute:s,second:a,millisecond:l},e)}static fromJSDate(e,t={}){const n=(r=e,"[object Date]"===Object.prototype.toString.call(r)?e.valueOf():NaN);var r;if(Number.isNaN(n))return sd.invalid("invalid input");const o=Zl(t.zone,Kl.defaultZone);return o.isValid?new sd({ts:n,zone:o,loc:oc.fromObject(t)}):sd.invalid(Bu(o))}static fromMillis(e,t={}){if(Va(e))return e<-qu||e>qu?sd.invalid("Timestamp out of range"):new sd({ts:e,zone:Zl(t.zone,Kl.defaultZone),loc:oc.fromObject(t)});throw new ga(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(Va(e))return new sd({ts:1e3*e,zone:Zl(t.zone,Kl.defaultZone),loc:oc.fromObject(t)});throw new ga("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=Zl(t.zone,Kl.defaultZone);if(!n.isValid)return sd.invalid(Bu(n));const r=Kl.now(),o=n.offset(r),i=cl(e,nd),s=!Ha(i.ordinal),a=!Ha(i.year),l=!Ha(i.month)||!Ha(i.day),c=a||l,u=i.weekYear||i.weekNumber,d=oc.fromObject(t);if((c||s)&&u)throw new fa("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new fa("Can't mix ordinal dates with month/day");const p=u||i.weekday&&!c;let h,f,m=Vu(r,o);p?(h=ed,f=Xu,m=Nu(m)):s?(h=td,f=_u,m=Iu(m)):(h=$u,f=Ju);let g=!1;for(const A of h){Ha(i[A])?i[A]=g?f[A]:m[A]:g=!0}const y=p?function(e){const t=Wa(e.weekYear),n=Ya(e.weekNumber,1,ol(e.weekYear)),r=Ya(e.weekday,1,7);return t?n?!r&&ku("weekday",e.weekday):ku("week",e.week):ku("weekYear",e.weekYear)}(i):s?function(e){const t=Wa(e.year),n=Ya(e.ordinal,1,tl(e.year));return t?!n&&ku("ordinal",e.ordinal):ku("year",e.year)}(i):zu(i),b=y||Pu(i);if(b)return sd.invalid(b);const C=p?Du(i):s?ju(i):i,[x,v]=Wu(C,o,n),w=new sd({ts:x,zone:n,o:v,loc:d});return i.weekday&&c&&e.weekday!==w.weekday?sd.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${w.toISO()}`):w}static fromISO(e,t={}){const[n,r]=ac(e,[Ic,Uc],[jc,qc],[zc,Bc],[Pc,Zc]);return Qu(n,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,r]=ac(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[Tc,kc]);return Qu(n,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,r]=ac(e,[Mc,Nc],[Lc,Nc],[Rc,Dc]);return Qu(n,r,t,"HTTP",t)}static fromFormat(e,t,n={}){if(Ha(e)||Ha(t))throw new ga("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:o=null}=n,i=oc.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0}),[s,a,l]=function(e,t,n){const{result:r,zone:o,invalidReason:i}=Su(e,t,n);return[r,o,i]}(i,e,t);return l?sd.invalid(l):Qu(s,a,n,`format ${t}`,e)}static fromString(e,t,n={}){return sd.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,r]=ac(e,[Hc,Wc],[Vc,Gc]);return Qu(n,r,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new ga("need to specify a reason the DateTime is invalid");const n=e instanceof Ml?e:new Ml(e,t);if(Kl.throwOnInvalid)throw new da(n);return new sd({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Zu(this).weekYear:NaN}get weekNumber(){return this.isValid?Zu(this).weekNumber:NaN}get weekday(){return this.isValid?Zu(this).weekday:NaN}get ordinal(){return this.isValid?Iu(this.c).ordinal:NaN}get monthShort(){return this.isValid?su.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?su.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?su.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?su.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}get isInLeapYear(){return el(this.year)}get daysInMonth(){return nl(this.year,this.month)}get daysInYear(){return this.isValid?tl(this.year):NaN}get weeksInWeekYear(){return this.isValid?ol(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:r}=kl.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(ql.instance(e),t)}toLocal(){return this.setZone(Kl.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=Zl(e,Kl.defaultZone)).equals(this.zone))return this;if(e.isValid){let r=this.ts;if(t||n){const t=e.offset(this.ts),n=this.toObject();[r]=Wu(n,t,e)}return Fu(this,{ts:r,zone:e})}return sd.invalid(Bu(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return Fu(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=cl(e,nd),n=!Ha(t.weekYear)||!Ha(t.weekNumber)||!Ha(t.weekday),r=!Ha(t.ordinal),o=!Ha(t.year),i=!Ha(t.month)||!Ha(t.day),s=o||i,a=t.weekYear||t.weekNumber;if((s||r)&&a)throw new fa("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(i&&r)throw new fa("Can't mix ordinal dates with month/day");let l;n?l=Du({...Nu(this.c),...t}):Ha(t.ordinal)?(l={...this.toObject(),...t},Ha(t.day)&&(l.day=Math.min(nl(l.year,l.month),l.day))):l=ju({...Iu(this.c),...t});const[c,u]=Wu(l,this.o,this.zone);return Fu(this,{ts:c,o:u})}plus(e){if(!this.isValid)return this;return Fu(this,Gu(this,ru(e)))}minus(e){if(!this.isValid)return this;return Fu(this,Gu(this,ru(e).negate()))}startOf(e){if(!this.isValid)return this;const t={},n=nu.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===n&&(t.weekday=1),"quarters"===n){const e=Math.ceil(this.month/3);t.month=3*(e-1)+1}return this.set(t)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,t={}){return this.isValid?kl.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Uu}toLocaleString(e=va,t={}){return this.isValid?kl.create(this.loc.clone(t),e).formatDateTime(this):Uu}toLocaleParts(e={}){return this.isValid?kl.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO(e={}){return this.isValid?`${this.toISODate(e)}T${this.toISOTime(e)}`:null}toISODate({format:e="extended"}={}){let t="basic"===e?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(t="+"+t),Ku(this,t)}toISOWeekDate(){return Ku(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,format:o="extended"}={}){return Yu(this,{suppressSeconds:t,suppressMilliseconds:e,includeOffset:n,includePrefix:r,format:o})}toRFC2822(){return Ku(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ku(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return Ku(this,"yyyy-MM-dd")}toSQLTime({includeOffset:e=!0,includeZone:t=!1}={}){return Yu(this,{includeOffset:e,includeZone:t,spaceZone:!0})}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Uu}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return nu.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=(a=t,Array.isArray(a)?a:[a]).map(nu.normalizeUnit),i=e.valueOf()>this.valueOf(),s=lu(i?this:e,i?e:this,o,r);var a;return i?s.negate():s}diffNow(e="milliseconds",t={}){return this.diff(sd.now(),e,t)}until(e){return this.isValid?iu.fromDateTimes(this,e):this}hasSame(e,t){if(!this.isValid)return!1;const n=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t)<=n&&n<=r.endOf(t)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||sd.fromObject({},{zone:this.zone}),n=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(sd.isDateTime))throw new ga("max requires all arguments be DateTimes");return Qa(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:r=null,numberingSystem:o=null}=n;return Su(oc.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return sd.fromFormatExplain(e,t,n)}static get DATE_SHORT(){return va}static get DATE_MED(){return wa}static get DATE_MED_WITH_WEEKDAY(){return Aa}static get DATE_FULL(){return Ea}static get DATE_HUGE(){return Sa}static get TIME_SIMPLE(){return Oa}static get TIME_WITH_SECONDS(){return Ta}static get TIME_WITH_SHORT_OFFSET(){return ka}static get TIME_WITH_LONG_OFFSET(){return Ma}static get TIME_24_SIMPLE(){return La}static get TIME_24_WITH_SECONDS(){return Ra}static get TIME_24_WITH_SHORT_OFFSET(){return Na}static get TIME_24_WITH_LONG_OFFSET(){return Da}static get DATETIME_SHORT(){return Ia}static get DATETIME_SHORT_WITH_SECONDS(){return ja}static get DATETIME_MED(){return za}static get DATETIME_MED_WITH_SECONDS(){return Pa}static get DATETIME_MED_WITH_WEEKDAY(){return Ua}static get DATETIME_FULL(){return qa}static get DATETIME_FULL_WITH_SECONDS(){return Ba}static get DATETIME_HUGE(){return Za}static get DATETIME_HUGE_WITH_SECONDS(){return Fa}}function ad(e){if(sd.isDateTime(e))return e;if(e&&e.valueOf&&Va(e.valueOf()))return sd.fromJSDate(e);if(e&&"object"==typeof e)return sd.fromObject(e);throw new ga(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const ld="true",cd=class e{async getInstallStatus(){return await sa.create().getFromStorage(e.K_LOCAL_STORAGE_PRIVATE_KEYS.isInstalled)===ld}setInstallStatus(){return sa.create().setInStorage(e.K_LOCAL_STORAGE_PRIVATE_KEYS.isInstalled,ld)}getSdkCredentialsFromWebApp(){return sa.create().getFromStorage(e.K_LOCAL_STORAGE_PRIVATE_KEYS.sdkJwt)}getCredentials(){return sa.create().getFromStorage(e.K_LOCAL_STORAGE_PRIVATE_KEYS.jwt)}setCredentials(t){return sa.create().setInStorage(e.K_LOCAL_STORAGE_PRIVATE_KEYS.jwt,t)}async getAvailablePlans(){let t;try{t=Wr(JSON.parse(await sa.create().getFromStorage(e.K_LOCAL_STORAGE_PRIVATE_KEYS.availablePlans)))}catch(n){return null}return t}async setAvailablePlans(t){return sa.create().setInStorage(e.K_LOCAL_STORAGE_PRIVATE_KEYS.availablePlans,JSON.stringify(t))}async getUserProfile(){let t;try{t=po(JSON.parse(await sa.create().getFromStorage(e.K_LOCAL_STORAGE_PRIVATE_KEYS.user)));const n=await this.getAvailablePlans();n&&t.getWorkspace().fillPlanFromPlans(n)}catch(n){return null}return t}setUserProfile(t){return sa.create().setInStorage(e.K_LOCAL_STORAGE_PRIVATE_KEYS.userLastFetchedAt,sd.now().toISO()),sa.create().setInStorage(e.K_LOCAL_STORAGE_PRIVATE_KEYS.user,JSON.stringify(t))}async getUserProfileLastFetchedAt(){const t=await sa.create().getFromStorage(e.K_LOCAL_STORAGE_PRIVATE_KEYS.userLastFetchedAt);return t?sd.fromISO(t):sd.now().minus({years:5})}getUserEnabledWebExtension(){return sa.create().getFromStorage(e.K_LOCAL_STORAGE_PRIVATE_KEYS.trackingUserEnabledWebExtension)}async shouldNotifyUserEnabledWebExtension(e){return await this.getUserEnabledWebExtension()!==`${e}-${D().format("DD-MM-YYYY")}`}setUserEnabledWebExtension(t){return sa.create().setInStorage(e.K_LOCAL_STORAGE_PRIVATE_KEYS.trackingUserEnabledWebExtension,`${t}-${D().format("DD-MM-YYYY")}`)}setUserDisabledWebExtension(){return sa.create().setInStorage(e.K_LOCAL_STORAGE_PRIVATE_KEYS.trackingUserEnabledWebExtension,null)}onChange(e){sa.create().addOnStorageChangeListener((t=>{const n={};for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))try{n[e]=JSON.parse(t[e])}catch(r){n[e]=t[e]}e(n)}))}async getAssistantsWidgetDisplayState(){return sa.create().getFromStorage(e.K_LOCAL_STORAGE_KEYS.assistantsWidgetDisplayState)}async setAssistantsWidgetDisplayState(t){return sa.create().setInStorage(e.K_LOCAL_STORAGE_KEYS.assistantsWidgetDisplayState,t)}};cd.K_LOCAL_STORAGE_KEYS={assistantsWidgetDisplayState:"assistantsWidgetDisplayState",firstInstalledVersion:"firstInstalledVersion",latestCookieCredentials:"latestCookieCredentials",notifierSubscriptionEndedShownDateTime:"notifierSubscriptionEndedShownDateTime0",popupHasViewedOnboardingSteps:"popupHasViewedOnboardingSteps",spinnerOptInShowAutomatically:"spinnerOptInShowAutomatically",spinnerTooltipFirstTime:"spinnerTooltipFirstTime",spinnerTooltipNotLogged:"spinnerTooltipNotLogged",spinnerTooltipOfferPrompted:"spinnerTooltipOfferPrompted"},cd.K_LOCAL_STORAGE_PRIVATE_KEYS={availablePlans:"availablePlans",isInstalled:"isInstalled",jwt:"jwt",sdkJwt:"3e784265cda74cb0afbb2a7c238437f8",trackingUserEnabledWebExtension:"trackingUserEnabledWebExtension",user:"user",userLastFetchedAt:"userLastFetchedAt"};let ud=cd;var dd,pd,hd={exports:{}};self,hd.exports=(dd={1238:e=>{e.exports={version:"17.4.2"}},7629:(e,t,n)=>{const r=n(375),o=n(8571),i=n(9474),s=n(1687),a=n(8652),l=n(8160),c=n(3292),u=n(6354),d=n(8901),p=n(9708),h=n(6914),f=n(2294),m=n(6133),g=n(1152),y=n(8863),b=n(2036),C={Base:class{constructor(e){this.type=e,this.$_root=null,this._definition={},this._reset()}_reset(){this._ids=new f.Ids,this._preferences=null,this._refs=new m.Manager,this._cache=null,this._valids=null,this._invalids=null,this._flags={},this._rules=[],this._singleRules=new Map,this.$_terms={},this.$_temp={ruleset:null,whens:{}}}describe(){return r("function"==typeof p.describe,"Manifest functionality disabled"),p.describe(this)}allow(...e){return l.verifyFlat(e,"allow"),this._values(e,"_valids")}alter(e){r(e&&"object"==typeof e&&!Array.isArray(e),"Invalid targets argument"),r(!this._inRuleset(),"Cannot set alterations inside a ruleset");const t=this.clone();t.$_terms.alterations=t.$_terms.alterations||[];for(const n in e){const o=e[n];r("function"==typeof o,"Alteration adjuster for",n,"must be a function"),t.$_terms.alterations.push({target:n,adjuster:o})}return t.$_temp.ruleset=!1,t}artifact(e){return r(void 0!==e,"Artifact cannot be undefined"),r(!this._cache,"Cannot set an artifact with a rule cache"),this.$_setFlag("artifact",e)}cast(e){return r(!1===e||"string"==typeof e,"Invalid to value"),r(!1===e||this._definition.cast[e],"Type",this.type,"does not support casting to",e),this.$_setFlag("cast",!1===e?void 0:e)}default(e,t){return this._default("default",e,t)}description(e){return r(e&&"string"==typeof e,"Description must be a non-empty string"),this.$_setFlag("description",e)}empty(e){const t=this.clone();return void 0!==e&&(e=t.$_compile(e,{override:!1})),t.$_setFlag("empty",e,{clone:!1})}error(e){return r(e,"Missing error"),r(e instanceof Error||"function"==typeof e,"Must provide a valid Error object or a function"),this.$_setFlag("error",e)}example(e,t={}){return r(void 0!==e,"Missing example"),l.assertOptions(t,["override"]),this._inner("examples",e,{single:!0,override:t.override})}external(e,t){return"object"==typeof e&&(r(!t,"Cannot combine options with description"),t=e.description,e=e.method),r("function"==typeof e,"Method must be a function"),r(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this._inner("externals",{method:e,description:t},{single:!0})}failover(e,t){return this._default("failover",e,t)}forbidden(){return this.presence("forbidden")}id(e){return e?(r("string"==typeof e,"id must be a non-empty string"),r(/^[^\.]+$/.test(e),"id cannot contain period character"),this.$_setFlag("id",e)):this.$_setFlag("id",void 0)}invalid(...e){return this._values(e,"_invalids")}label(e){return r(e&&"string"==typeof e,"Label name must be a non-empty string"),this.$_setFlag("label",e)}meta(e){return r(void 0!==e,"Meta cannot be undefined"),this._inner("metas",e,{single:!0})}note(...e){r(e.length,"Missing notes");for(const t of e)r(t&&"string"==typeof t,"Notes must be non-empty strings");return this._inner("notes",e)}only(e=!0){return r("boolean"==typeof e,"Invalid mode:",e),this.$_setFlag("only",e)}optional(){return this.presence("optional")}prefs(e){r(e,"Missing preferences"),r(void 0===e.context,"Cannot override context"),r(void 0===e.externals,"Cannot override externals"),r(void 0===e.warnings,"Cannot override warnings"),r(void 0===e.debug,"Cannot override debug"),l.checkPreferences(e);const t=this.clone();return t._preferences=l.preferences(t._preferences,e),t}presence(e){return r(["optional","required","forbidden"].includes(e),"Unknown presence mode",e),this.$_setFlag("presence",e)}raw(e=!0){return this.$_setFlag("result",e?"raw":void 0)}result(e){return r(["raw","strip"].includes(e),"Unknown result mode",e),this.$_setFlag("result",e)}required(){return this.presence("required")}strict(e){const t=this.clone(),n=void 0!==e&&!e;return t._preferences=l.preferences(t._preferences,{convert:n}),t}strip(e=!0){return this.$_setFlag("result",e?"strip":void 0)}tag(...e){r(e.length,"Missing tags");for(const t of e)r(t&&"string"==typeof t,"Tags must be non-empty strings");return this._inner("tags",e)}unit(e){return r(e&&"string"==typeof e,"Unit name must be a non-empty string"),this.$_setFlag("unit",e)}valid(...e){l.verifyFlat(e,"valid");const t=this.allow(...e);return t.$_setFlag("only",!!t._valids,{clone:!1}),t}when(e,t){const n=this.clone();n.$_terms.whens||(n.$_terms.whens=[]);const o=c.when(n,e,t);if(!["any","link"].includes(n.type)){const e=o.is?[o]:o.switch;for(const t of e)r(!t.then||"any"===t.then.type||t.then.type===n.type,"Cannot combine",n.type,"with",t.then&&t.then.type),r(!t.otherwise||"any"===t.otherwise.type||t.otherwise.type===n.type,"Cannot combine",n.type,"with",t.otherwise&&t.otherwise.type)}return n.$_terms.whens.push(o),n.$_mutateRebuild()}cache(e){r(!this._inRuleset(),"Cannot set caching inside a ruleset"),r(!this._cache,"Cannot override schema cache"),r(void 0===this._flags.artifact,"Cannot cache a rule with an artifact");const t=this.clone();return t._cache=e||a.provider.provision(),t.$_temp.ruleset=!1,t}clone(){const e=Object.create(Object.getPrototypeOf(this));return this._assign(e)}concat(e){r(l.isSchema(e),"Invalid schema object"),r("any"===this.type||"any"===e.type||e.type===this.type,"Cannot merge type",this.type,"with another type:",e.type),r(!this._inRuleset(),"Cannot concatenate onto a schema with open ruleset"),r(!e._inRuleset(),"Cannot concatenate a schema with open ruleset");let t=this.clone();if("any"===this.type&&"any"!==e.type){const n=e.clone();for(const e of Object.keys(t))"type"!==e&&(n[e]=t[e]);t=n}t._ids.concat(e._ids),t._refs.register(e,m.toSibling),t._preferences=t._preferences?l.preferences(t._preferences,e._preferences):e._preferences,t._valids=b.merge(t._valids,e._valids,e._invalids),t._invalids=b.merge(t._invalids,e._invalids,e._valids);for(const n of e._singleRules.keys())t._singleRules.has(n)&&(t._rules=t._rules.filter((e=>e.keep||e.name!==n)),t._singleRules.delete(n));for(const n of e._rules)e._definition.rules[n.method].multi||t._singleRules.set(n.name,n),t._rules.push(n);if(t._flags.empty&&e._flags.empty){t._flags.empty=t._flags.empty.concat(e._flags.empty);const n=Object.assign({},e._flags);delete n.empty,s(t._flags,n)}else if(e._flags.empty){t._flags.empty=e._flags.empty;const n=Object.assign({},e._flags);delete n.empty,s(t._flags,n)}else s(t._flags,e._flags);for(const n in e.$_terms){const r=e.$_terms[n];r?t.$_terms[n]?t.$_terms[n]=t.$_terms[n].concat(r):t.$_terms[n]=r.slice():t.$_terms[n]||(t.$_terms[n]=r)}return this.$_root._tracer&&this.$_root._tracer._combine(t,[this,e]),t.$_mutateRebuild()}extend(e){return r(!e.base,"Cannot extend type with another base"),d.type(this,e)}extract(e){return e=Array.isArray(e)?e:e.split("."),this._ids.reach(e)}fork(e,t){r(!this._inRuleset(),"Cannot fork inside a ruleset");let n=this;for(let r of[].concat(e))r=Array.isArray(r)?r:r.split("."),n=n._ids.fork(r,t,n);return n.$_temp.ruleset=!1,n}rule(e){const t=this._definition;l.assertOptions(e,Object.keys(t.modifiers)),r(!1!==this.$_temp.ruleset,"Cannot apply rules to empty ruleset or the last rule added does not support rule properties");const n=null===this.$_temp.ruleset?this._rules.length-1:this.$_temp.ruleset;r(n>=0&&nt.tailor(e),ref:!1}),t.$_temp.ruleset=!1,t.$_mutateRebuild()}tracer(){return g.location?g.location(this):this}validate(e,t){return y.entry(e,this,t)}validateAsync(e,t){return y.entryAsync(e,this,t)}$_addRule(e){"string"==typeof e&&(e={name:e}),r(e&&"object"==typeof e,"Invalid options"),r(e.name&&"string"==typeof e.name,"Invalid rule name");for(const s in e)r("_"!==s[0],"Cannot set private rule properties");const t=Object.assign({},e);t._resolve=[],t.method=t.method||t.name;const n=this._definition.rules[t.method],o=t.args;r(n,"Unknown rule",t.method);const i=this.clone();if(o){r(1===Object.keys(o).length||Object.keys(o).length===this._definition.rules[t.name].args.length,"Invalid rule definition for",this.type,t.name);for(const e in o){let s=o[e];if(void 0!==s){if(n.argsByName){const a=n.argsByName.get(e);if(a.ref&&l.isResolvable(s))t._resolve.push(e),i.$_mutateRegister(s);else if(a.normalize&&(s=a.normalize(s),o[e]=s),a.assert){const t=l.validateArg(s,e,a);r(!t,t,"or reference")}}o[e]=s}else delete o[e]}}return n.multi||(i._ruleRemove(t.name,{clone:!1}),i._singleRules.set(t.name,t)),!1===i.$_temp.ruleset&&(i.$_temp.ruleset=null),n.priority?i._rules.unshift(t):i._rules.push(t),i}$_compile(e,t){return c.schema(this.$_root,e,t)}$_createError(e,t,n,r,o,i={}){const s=!1!==i.flags?this._flags:{},a=i.messages?h.merge(this._definition.messages,i.messages):this._definition.messages;return new u.Report(e,t,n,s,a,r,o)}$_getFlag(e){return this._flags[e]}$_getRule(e){return this._singleRules.get(e)}$_mapLabels(e){return e=Array.isArray(e)?e:e.split("."),this._ids.labels(e)}$_match(e,t,n,r){(n=Object.assign({},n)).abortEarly=!0,n._externals=!1,t.snapshot();const o=!y.validate(e,this,t,n,r).errors;return t.restore(),o}$_modify(e){return l.assertOptions(e,["each","once","ref","schema"]),f.schema(this,e)||this}$_mutateRebuild(){return r(!this._inRuleset(),"Cannot add this rule inside a ruleset"),this._refs.reset(),this._ids.reset(),this.$_modify({each:(e,{source:t,name:n,path:r,key:o})=>{const i=this._definition[t][n]&&this._definition[t][n].register;!1!==i&&this.$_mutateRegister(e,{family:i,key:o})}}),this._definition.rebuild&&this._definition.rebuild(this),this.$_temp.ruleset=!1,this}$_mutateRegister(e,{family:t,key:n}={}){this._refs.register(e,t),this._ids.register(e,{key:n})}$_property(e){return this._definition.properties[e]}$_reach(e){return this._ids.reach(e)}$_rootReferences(){return this._refs.roots()}$_setFlag(e,t,n={}){r("_"===e[0]||!this._inRuleset(),"Cannot set flag inside a ruleset");const o=this._definition.flags[e]||{};if(i(t,o.default)&&(t=void 0),i(t,this._flags[e]))return this;const s=!1!==n.clone?this.clone():this;return void 0!==t?(s._flags[e]=t,s.$_mutateRegister(t)):delete s._flags[e],"_"!==e[0]&&(s.$_temp.ruleset=!1),s}$_parent(e,...t){return this[e][l.symbols.parent].call(this,...t)}$_validate(e,t,n){return y.validate(e,this,t,n)}_assign(e){e.type=this.type,e.$_root=this.$_root,e.$_temp=Object.assign({},this.$_temp),e.$_temp.whens={},e._ids=this._ids.clone(),e._preferences=this._preferences,e._valids=this._valids&&this._valids.clone(),e._invalids=this._invalids&&this._invalids.clone(),e._rules=this._rules.slice(),e._singleRules=o(this._singleRules,{shallow:!0}),e._refs=this._refs.clone(),e._flags=Object.assign({},this._flags),e._cache=null,e.$_terms={};for(const t in this.$_terms)e.$_terms[t]=this.$_terms[t]?this.$_terms[t].slice():null;e.$_super={};for(const t in this.$_super)e.$_super[t]=this._super[t].bind(e);return e}_bare(){const e=this.clone();e._reset();const t=e._definition.terms;for(const n in t){const r=t[n];e.$_terms[n]=r.init}return e.$_mutateRebuild()}_default(e,t,n={}){return l.assertOptions(n,"literal"),r(void 0!==t,"Missing",e,"value"),r("function"==typeof t||!n.literal,"Only function value supports literal option"),"function"==typeof t&&n.literal&&(t={[l.symbols.literal]:!0,literal:t}),this.$_setFlag(e,t)}_generate(e,t,n){if(!this.$_terms.whens)return{schema:this};const r=[],o=[];for(let a=0;ac)break}const i=o.join(", ");if(t.mainstay.tracer.debug(t,"rule","when",i),!i)return{schema:this};if(!t.mainstay.tracer.active&&this.$_temp.whens[i])return{schema:this.$_temp.whens[i],id:i};let s=this;this._definition.generate&&(s=this._definition.generate(this,e,t,n));for(const a of r)s=s.concat(a);return this.$_root._tracer&&this.$_root._tracer._combine(s,[this,...r]),this.$_temp.whens[i]=s,{schema:s,id:i}}_inner(e,t,n={}){r(!this._inRuleset(),"Cannot set ".concat(e," inside a ruleset"));const o=this.clone();return o.$_terms[e]&&!n.override||(o.$_terms[e]=[]),n.single?o.$_terms[e].push(t):o.$_terms[e].push(...t),o.$_temp.ruleset=!1,o}_inRuleset(){return null!==this.$_temp.ruleset&&!1!==this.$_temp.ruleset}_ruleRemove(e,t={}){if(!this._singleRules.has(e))return this;const n=!1!==t.clone?this.clone():this;n._singleRules.delete(e);const r=[];for(let o=0;o{const r=n(375),o=n(8571),i=n(8160),s={max:1e3,supported:new Set(["undefined","boolean","number","string"])};t.provider={provision:e=>new s.Cache(e)},s.Cache=class{constructor(e={}){i.assertOptions(e,["max"]),r(void 0===e.max||e.max&&e.max>0&&isFinite(e.max),"Invalid max cache size"),this._max=e.max||s.max,this._map=new Map,this._list=new s.List}get length(){return this._map.size}set(e,t){if(null!==e&&!s.supported.has(typeof e))return;let n=this._map.get(e);if(n)return n.value=t,void this._list.first(n);n=this._list.unshift({key:e,value:t}),this._map.set(e,n),this._compact()}get(e){const t=this._map.get(e);if(t)return this._list.first(t),o(t.value)}_compact(){if(this._map.size>this._max){const e=this._list.pop();this._map.delete(e.key)}}},s.List=class{constructor(){this.tail=null,this.head=null}unshift(e){return e.next=null,e.prev=this.head,this.head&&(this.head.next=e),this.head=e,this.tail||(this.tail=e),e}first(e){e!==this.head&&(this._remove(e),this.unshift(e))}pop(){return this._remove(this.tail)}_remove(e){const{next:t,prev:n}=e;return t.prev=n,n&&(n.next=t),e===this.tail&&(this.tail=t),e.prev=null,e.next=null,e}}},8160:(e,t,n)=>{const r=n(375),o=n(7916),i=n(1238);let s,a;const l={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};t.version=i.version,t.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:"iso",errors:{escapeHtml:!1,label:"path",language:null,render:!0,stack:!1,wrap:{label:'"',array:"[]"}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:"optional",skipFunctions:!1,stripUnknown:!1,warnings:!1},t.symbols={any:Symbol.for("@hapi/joi/schema"),arraySingle:Symbol("arraySingle"),deepDefault:Symbol("deepDefault"),errors:Symbol("errors"),literal:Symbol("literal"),override:Symbol("override"),parent:Symbol("parent"),prefs:Symbol("prefs"),ref:Symbol("ref"),template:Symbol("template"),values:Symbol("values")},t.assertOptions=function(e,t,n="Options"){r(e&&"object"==typeof e&&!Array.isArray(e),"Options must be of type object");const o=Object.keys(e).filter((e=>!t.includes(e)));r(0===o.length,"".concat(n," contain unknown keys: ").concat(o))},t.checkPreferences=function(e){a=a||n(3378);const t=a.preferences.validate(e);if(t.error)throw new o([t.error.details[0].message])},t.compare=function(e,t,n){switch(n){case"=":return e===t;case">":return e>t;case"<":return e=":return e>=t;case"<=":return e<=t}},t.default=function(e,t){return void 0===e?t:e},t.isIsoDate=function(e){return l.isoDate.test(e)},t.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},t.isResolvable=function(e){return!!e&&(e[t.symbols.ref]||e[t.symbols.template])},t.isSchema=function(e,n={}){const o=e&&e[t.symbols.any];return!!o&&(r(n.legacy||o.version===t.version,"Cannot mix different versions of joi schemas"),!0)},t.isValues=function(e){return e[t.symbols.values]},t.limit=function(e){return Number.isSafeInteger(e)&&e>=0},t.preferences=function(e,r){s=s||n(6914),e=e||{},r=r||{};const o=Object.assign({},e,r);return r.errors&&e.errors&&(o.errors=Object.assign({},e.errors,r.errors),o.errors.wrap=Object.assign({},e.errors.wrap,r.errors.wrap)),r.messages&&(o.messages=s.compile(r.messages,e.messages)),delete o[t.symbols.prefs],o},t.tryWithPath=function(e,t,n={}){try{return e()}catch(r){throw void 0!==r.path?r.path=t+"."+r.path:r.path=t,n.append&&(r.message="".concat(r.message," (").concat(r.path,")")),r}},t.validateArg=function(e,n,{assert:r,message:o}){if(t.isSchema(r)){const t=r.validate(e);if(!t.error)return;return t.error.message}if(!r(e))return n?"".concat(n," ").concat(o):o},t.verifyFlat=function(e,t){for(const n of e)r(!Array.isArray(n),"Method no longer accepts array arguments:",t)}},3292:(e,t,n)=>{const r=n(375),o=n(8160),i=n(6133),s={};t.schema=function(e,t,n={}){o.assertOptions(n,["appendPath","override"]);try{return s.schema(e,t,n)}catch(r){throw n.appendPath&&void 0!==r.path&&(r.message="".concat(r.message," (").concat(r.path,")")),r}},s.schema=function(e,t,n){r(void 0!==t,"Invalid undefined schema"),Array.isArray(t)&&(r(t.length,"Invalid empty array schema"),1===t.length&&(t=t[0]));const i=(t,...r)=>!1!==n.override?t.valid(e.override,...r):t.valid(...r);if(s.simple(t))return i(e,t);if("function"==typeof t)return e.custom(t);if(r("object"==typeof t,"Invalid schema content:",typeof t),o.isResolvable(t))return i(e,t);if(o.isSchema(t))return t;if(Array.isArray(t)){for(const n of t)if(!s.simple(n))return e.alternatives().try(...t);return i(e,...t)}return t instanceof RegExp?e.string().regex(t):t instanceof Date?i(e.date(),t):(r(Object.getPrototypeOf(t)===Object.getPrototypeOf({}),"Schema can only contain plain objects"),e.object().keys(t))},t.ref=function(e,t){return i.isRef(e)?e:i.create(e,t)},t.compile=function(e,n,i={}){o.assertOptions(i,["legacy"]);const a=n&&n[o.symbols.any];if(a)return r(i.legacy||a.version===o.version,"Cannot mix different versions of joi schemas:",a.version,o.version),n;if("object"!=typeof n||!i.legacy)return t.schema(e,n,{appendPath:!0});const l=s.walk(n);return l?l.compile(l.root,n):t.schema(e,n,{appendPath:!0})},s.walk=function(e){if("object"!=typeof e)return null;if(Array.isArray(e)){for(const t of e){const e=s.walk(t);if(e)return e}return null}const t=e[o.symbols.any];if(t)return{root:e[t.root],compile:t.compile};r(Object.getPrototypeOf(e)===Object.getPrototypeOf({}),"Schema can only contain plain objects");for(const n in e){const t=s.walk(e[n]);if(t)return t}return null},s.simple=function(e){return null===e||["boolean","string","number"].includes(typeof e)},t.when=function(e,n,a){if(void 0===a&&(r(n&&"object"==typeof n,"Missing options"),a=n,n=i.create(".")),Array.isArray(a)&&(a={switch:a}),o.assertOptions(a,["is","not","then","otherwise","switch","break"]),o.isSchema(n))return r(void 0===a.is,'"is" can not be used with a schema condition'),r(void 0===a.not,'"not" can not be used with a schema condition'),r(void 0===a.switch,'"switch" can not be used with a schema condition'),s.condition(e,{is:n,then:a.then,otherwise:a.otherwise,break:a.break});if(r(i.isRef(n)||"string"==typeof n,"Invalid condition:",n),r(void 0===a.not||void 0===a.is,'Cannot combine "is" with "not"'),void 0===a.switch){let l=a;void 0!==a.not&&(l={is:a.not,then:a.otherwise,otherwise:a.then,break:a.break});let c=void 0!==l.is?e.$_compile(l.is):e.$_root.invalid(null,!1,0,"").required();return r(void 0!==l.then||void 0!==l.otherwise,'options must have at least one of "then", "otherwise", or "switch"'),r(void 0===l.break||void 0===l.then||void 0===l.otherwise,"Cannot specify then, otherwise, and break all together"),void 0===a.is||i.isRef(a.is)||o.isSchema(a.is)||(c=c.required()),s.condition(e,{ref:t.ref(n),is:c,then:l.then,otherwise:l.otherwise,break:l.break})}r(Array.isArray(a.switch),'"switch" must be an array'),r(void 0===a.is,'Cannot combine "switch" with "is"'),r(void 0===a.not,'Cannot combine "switch" with "not"'),r(void 0===a.then,'Cannot combine "switch" with "then"');const l={ref:t.ref(n),switch:[],break:a.break};for(let t=0;t{const r=n(5688),o=n(8160),i=n(3328);t.Report=class{constructor(e,n,r,o,i,s,a){if(this.code=e,this.flags=o,this.messages=i,this.path=s.path,this.prefs=a,this.state=s,this.value=n,this.message=null,this.template=null,this.local=r||{},this.local.label=t.label(this.flags,this.state,this.prefs,this.messages),void 0===this.value||this.local.hasOwnProperty("value")||(this.local.value=this.value),this.path.length){const e=this.path[this.path.length-1];"object"!=typeof e&&(this.local.key=e)}}_setTemplate(e){if(this.template=e,!this.flags.label&&0===this.path.length){const e=this._template(this.template,"root");e&&(this.local.label=e)}}toString(){if(this.message)return this.message;const e=this.code;if(!this.prefs.errors.render)return this.code;const t=this._template(this.template)||this._template(this.prefs.messages)||this._template(this.messages);return void 0===t?'Error code "'.concat(e,'" is not defined, your custom type is missing the correct messages definition'):(this.message=t.render(this.value,this.state,this.prefs,this.local,{errors:this.prefs.errors,messages:[this.prefs.messages,this.messages]}),this.prefs.errors.label||(this.message=this.message.replace(/^"" /,"").trim()),this.message)}_template(e,n){return t.template(this.value,e,n||this.code,this.state,this.prefs)}},t.path=function(e){let t="";for(const n of e)"object"!=typeof n&&("string"==typeof n?(t&&(t+="."),t+=n):t+="[".concat(n,"]"));return t},t.template=function(e,t,n,r,s){if(!t)return;if(i.isTemplate(t))return"root"!==n?t:null;let a=s.errors.language;return o.isResolvable(a)&&(a=a.resolve(e,r,s)),a&&t[a]&&void 0!==t[a][n]?t[a][n]:t[n]},t.label=function(e,n,r,o){if(e.label)return e.label;if(!r.errors.label)return"";let i=n.path;return"key"===r.errors.label&&n.path.length>1&&(i=n.path.slice(-1)),t.path(i)||t.template(null,r.messages,"root",n,r)||o&&t.template(null,o,"root",n,r)||"value"},t.process=function(e,n,r){if(!e)return null;const{override:o,message:i,details:s}=t.details(e);if(o)return o;if(r.errors.stack)return new t.ValidationError(i,s,n);const a=Error.stackTraceLimit;Error.stackTraceLimit=0;const l=new t.ValidationError(i,s,n);return Error.stackTraceLimit=a,l},t.details=function(e,t={}){let n=[];const r=[];for(const o of e){if(o instanceof Error){if(!1!==t.override)return{override:o};const e=o.toString();n.push(e),r.push({message:e,type:"override",context:{error:o}});continue}const e=o.toString();n.push(e),r.push({message:e,path:o.path.filter((e=>"object"!=typeof e)),type:o.code,context:o.local})}return n.length>1&&(n=[...new Set(n)]),{message:n.join(". "),details:r}},t.ValidationError=class extends Error{constructor(e,t,n){super(e),this._original=n,this.details=t}static isError(e){return e instanceof t.ValidationError}},t.ValidationError.prototype.isJoi=!0,t.ValidationError.prototype.name="ValidationError",t.ValidationError.prototype.annotate=r.error},8901:(e,t,n)=>{const r=n(375),o=n(8571),i=n(8160),s=n(6914),a={};t.type=function(e,t){const n=Object.getPrototypeOf(e),l=o(n),c=e._assign(Object.create(l)),u=Object.assign({},t);delete u.base,l._definition=u;const d=n._definition||{};u.messages=s.merge(d.messages,u.messages),u.properties=Object.assign({},d.properties,u.properties),c.type=u.type,u.flags=Object.assign({},d.flags,u.flags);const p=Object.assign({},d.terms);if(u.terms)for(const o in u.terms){const e=u.terms[o];r(void 0===c.$_terms[o],"Invalid term override for",u.type,o),c.$_terms[o]=e.init,p[o]=e}u.terms=p,u.args||(u.args=d.args),u.prepare=a.prepare(u.prepare,d.prepare),u.coerce&&("function"==typeof u.coerce&&(u.coerce={method:u.coerce}),u.coerce.from&&!Array.isArray(u.coerce.from)&&(u.coerce={method:u.coerce.method,from:[].concat(u.coerce.from)})),u.coerce=a.coerce(u.coerce,d.coerce),u.validate=a.validate(u.validate,d.validate);const h=Object.assign({},d.rules);if(u.rules)for(const o in u.rules){const e=u.rules[o];r("object"==typeof e,"Invalid rule definition for",u.type,o);let t=e.method;if(void 0===t&&(t=function(){return this.$_addRule(o)}),t&&(r(!l[o],"Rule conflict in",u.type,o),l[o]=t),r(!h[o],"Rule conflict in",u.type,o),h[o]=e,e.alias){const t=[].concat(e.alias);for(const n of t)l[n]=e.method}e.args&&(e.argsByName=new Map,e.args=e.args.map((t=>("string"==typeof t&&(t={name:t}),r(!e.argsByName.has(t.name),"Duplicated argument name",t.name),i.isSchema(t.assert)&&(t.assert=t.assert.strict().label(t.name)),e.argsByName.set(t.name,t),t))))}u.rules=h;const f=Object.assign({},d.modifiers);if(u.modifiers)for(const o in u.modifiers){r(!l[o],"Rule conflict in",u.type,o);const e=u.modifiers[o];r("function"==typeof e,"Invalid modifier definition for",u.type,o);const t=function(e){return this.rule({[o]:e})};l[o]=t,f[o]=e}if(u.modifiers=f,u.overrides){l._super=n,c.$_super={};for(const e in u.overrides)r(n[e],"Cannot override missing",e),u.overrides[e][i.symbols.parent]=n[e],c.$_super[e]=n[e].bind(c);Object.assign(l,u.overrides)}u.cast=Object.assign({},d.cast,u.cast);const m=Object.assign({},d.manifest,u.manifest);return m.build=a.build(u.manifest&&u.manifest.build,d.manifest&&d.manifest.build),u.manifest=m,u.rebuild=a.rebuild(u.rebuild,d.rebuild),c},a.build=function(e,t){return e&&t?function(n,r){return t(e(n,r),r)}:e||t},a.coerce=function(e,t){return e&&t?{from:e.from&&t.from?[...new Set([...e.from,...t.from])]:null,method(n,r){let o;if((!t.from||t.from.includes(typeof n))&&(o=t.method(n,r),o)){if(o.errors||void 0===o.value)return o;n=o.value}if(!e.from||e.from.includes(typeof n)){const t=e.method(n,r);if(t)return t}return o}}:e||t},a.prepare=function(e,t){return e&&t?function(n,r){const o=e(n,r);if(o){if(o.errors||void 0===o.value)return o;n=o.value}return t(n,r)||o}:e||t},a.rebuild=function(e,t){return e&&t?function(n){t(n),e(n)}:e||t},a.validate=function(e,t){return e&&t?function(n,r){const o=t(n,r);if(o){if(o.errors&&(!Array.isArray(o.errors)||o.errors.length))return o;n=o.value}return e(n,r)||o}:e||t}},5107:(e,t,n)=>{const r=n(375),o=n(8571),i=n(8652),s=n(8160),a=n(3292),l=n(6354),c=n(8901),u=n(9708),d=n(6133),p=n(3328),h=n(1152);let f;const m={types:{alternatives:n(4946),any:n(8068),array:n(546),boolean:n(4937),date:n(7500),function:n(390),link:n(8785),number:n(3832),object:n(8966),string:n(7417),symbol:n(8826)},aliases:{alt:"alternatives",bool:"boolean",func:"function"},root:function(){const e={_types:new Set(Object.keys(m.types))};for(const t of e._types)e[t]=function(...e){return r(!e.length||["alternatives","link","object"].includes(t),"The",t,"type does not allow arguments"),m.generate(this,m.types[t],e)};for(const t of["allow","custom","disallow","equal","exist","forbidden","invalid","not","only","optional","options","prefs","preferences","required","strip","valid","when"])e[t]=function(...e){return this.any()[t](...e)};Object.assign(e,m.methods);for(const t in m.aliases){const n=m.aliases[t];e[t]=e[n]}return e.x=e.expression,h.setup&&h.setup(e),e}};m.methods={ValidationError:l.ValidationError,version:s.version,cache:i.provider,assert(e,t,...n){m.assert(e,t,!0,n)},attempt:(e,t,...n)=>m.assert(e,t,!1,n),build(e){return r("function"==typeof u.build,"Manifest functionality disabled"),u.build(this,e)},checkPreferences(e){s.checkPreferences(e)},compile(e,t){return a.compile(this,e,t)},defaults(e){r("function"==typeof e,"modifier must be a function");const t=Object.assign({},this);for(const n of t._types){const o=e(t[n]());r(s.isSchema(o),"modifier must return a valid schema object"),t[n]=function(...e){return m.generate(this,o,e)}}return t},expression:(...e)=>new p(...e),extend(...e){s.verifyFlat(e,"extend"),f=f||n(3378),r(e.length,"You need to provide at least one extension"),this.assert(e,f.extensions);const t=Object.assign({},this);t._types=new Set(t._types);for(let n of e){"function"==typeof n&&(n=n(t)),this.assert(n,f.extension);const e=m.expandExtension(n,t);for(const n of e){r(void 0===t[n.type]||t._types.has(n.type),"Cannot override name",n.type);const e=n.base||this.any(),o=c.type(e,n);t._types.add(n.type),t[n.type]=function(...e){return m.generate(this,o,e)}}}return t},isError:l.ValidationError.isError,isExpression:p.isTemplate,isRef:d.isRef,isSchema:s.isSchema,in:(...e)=>d.in(...e),override:s.symbols.override,ref:(...e)=>d.create(...e),types(){const e={};for(const t of this._types)e[t]=this[t]();for(const t in m.aliases)e[t]=this[t]();return e}},m.assert=function(e,t,n,r){const i=r[0]instanceof Error||"string"==typeof r[0]?r[0]:null,a=i?r[1]:r[0],c=t.validate(e,s.preferences({errors:{stack:!0}},a||{}));let u=c.error;if(!u)return c.value;if(i instanceof Error)throw i;const d=n&&"function"==typeof u.annotate?u.annotate():u.message;throw u instanceof l.ValidationError==0&&(u=o(u)),u.message=i?"".concat(i," ").concat(d):d,u},m.generate=function(e,t,n){return r(e,"Must be invoked on a Joi instance."),t.$_root=e,t._definition.args&&n.length?t._definition.args(t,...n):t},m.expandExtension=function(e,t){if("string"==typeof e.type)return[e];const n=[];for(const r of t._types)if(e.type.test(r)){const o=Object.assign({},e);o.type=r,o.base=t[r](),n.push(o)}return n},e.exports=m.root()},6914:(e,t,n)=>{const r=n(375),o=n(8571),i=n(3328);t.compile=function(e,t){if("string"==typeof e)return r(!t,"Cannot set single message string"),new i(e);if(i.isTemplate(e))return r(!t,"Cannot set single message template"),e;r("object"==typeof e&&!Array.isArray(e),"Invalid message options"),t=t?o(t):{};for(let n in e){const o=e[n];if("root"===n||i.isTemplate(o)){t[n]=o;continue}if("string"==typeof o){t[n]=new i(o);continue}r("object"==typeof o&&!Array.isArray(o),"Invalid message for",n);const s=n;for(n in t[s]=t[s]||{},o){const e=o[n];"root"===n||i.isTemplate(e)?t[s][n]=e:(r("string"==typeof e,"Invalid message for",n,"in",s),t[s][n]=new i(e))}}return t},t.decompile=function(e){const t={};for(let n in e){const r=e[n];if("root"===n){t[n]=r;continue}if(i.isTemplate(r)){t[n]=r.describe({compact:!0});continue}const o=n;for(n in t[o]={},r){const e=r[n];t[o][n]="root"!==n?e.describe({compact:!0}):e}}return t},t.merge=function(e,n){if(!e)return t.compile(n);if(!n)return e;if("string"==typeof n)return new i(n);if(i.isTemplate(n))return n;const s=o(e);for(let t in n){const e=n[t];if("root"===t||i.isTemplate(e)){s[t]=e;continue}if("string"==typeof e){s[t]=new i(e);continue}r("object"==typeof e&&!Array.isArray(e),"Invalid message for",t);const o=t;for(t in s[o]=s[o]||{},e){const n=e[t];"root"===t||i.isTemplate(n)?s[o][t]=n:(r("string"==typeof n,"Invalid message for",t,"in",o),s[o][t]=new i(n))}}return s}},2294:(e,t,n)=>{function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t{if(n===(e._flags.id||t))return r},ref:!1});return o?o.$_mutateRebuild():e},t.schema=function(e,t){let n;for(const r in e._flags){if("_"===r[0])continue;const o=c.scan(e._flags[r],{source:"flags",name:r},t);void 0!==o&&(n=n||e.clone(),n._flags[r]=o)}for(let r=0;r{function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0&&this.refs.push({ancestor:t.ancestor-r,root:t.root});else t.isRef(e)&&"value"===e.type&&e.ancestor-r>=0&&this.refs.push({ancestor:e.ancestor-r,root:e.root}),u=u||n(3328),u.isTemplate(e)&&this.register(e.refs(),r)}get length(){return this.refs.length}clone(){const e=new t.Manager;return e.refs=a(this.refs),e}reset(){this.refs=[]}roots(){return this.refs.filter((e=>!e.ancestor)).map((e=>e.root))}}},3378:(e,t,n)=>{const r=n(5107),o={};o.wrap=r.string().min(1).max(2).allow(!1),t.preferences=r.object({allowUnknown:r.boolean(),abortEarly:r.boolean(),artifacts:r.boolean(),cache:r.boolean(),context:r.object(),convert:r.boolean(),dateFormat:r.valid("date","iso","string","time","utc"),debug:r.boolean(),errors:{escapeHtml:r.boolean(),label:r.valid("path","key",!1),language:[r.string(),r.object().ref()],render:r.boolean(),stack:r.boolean(),wrap:{label:o.wrap,array:o.wrap}},externals:r.boolean(),messages:r.object(),noDefaults:r.boolean(),nonEnumerables:r.boolean(),presence:r.valid("required","optional","forbidden"),skipFunctions:r.boolean(),stripUnknown:r.object({arrays:r.boolean(),objects:r.boolean()}).or("arrays","objects").allow(!0,!1),warnings:r.boolean()}).strict(),o.nameRx=/^[a-zA-Z0-9]\w*$/,o.rule=r.object({alias:r.array().items(r.string().pattern(o.nameRx)).single(),args:r.array().items(r.string(),r.object({name:r.string().pattern(o.nameRx).required(),ref:r.boolean(),assert:r.alternatives([r.function(),r.object().schema()]).conditional("ref",{is:!0,then:r.required()}),normalize:r.function(),message:r.string().when("assert",{is:r.function(),then:r.required()})})),convert:r.boolean(),manifest:r.boolean(),method:r.function().allow(!1),multi:r.boolean(),validate:r.function()}),t.extension=r.object({type:r.alternatives([r.string(),r.object().regex()]).required(),args:r.function(),cast:r.object().pattern(o.nameRx,r.object({from:r.function().maxArity(1).required(),to:r.function().minArity(1).maxArity(2).required()})),base:r.object().schema().when("type",{is:r.object().regex(),then:r.forbidden()}),coerce:[r.function().maxArity(3),r.object({method:r.function().maxArity(3).required(),from:r.array().items(r.string()).single()})],flags:r.object().pattern(o.nameRx,r.object({setter:r.string(),default:r.any()})),manifest:{build:r.function().arity(2)},messages:[r.object(),r.string()],modifiers:r.object().pattern(o.nameRx,r.function().minArity(1).maxArity(2)),overrides:r.object().pattern(o.nameRx,r.function()),prepare:r.function().maxArity(3),rebuild:r.function().arity(1),rules:r.object().pattern(o.nameRx,o.rule),terms:r.object().pattern(o.nameRx,r.object({init:r.array().allow(null).required(),manifest:r.object().pattern(/.+/,[r.valid("schema","single"),r.object({mapped:r.object({from:r.string().required(),to:r.string().required()}).required()})])})),validate:r.function().maxArity(3)}).strict(),t.extensions=r.array().items(r.object(),r.function().arity(1)).strict(),o.desc={buffer:r.object({buffer:r.string()}),func:r.object({function:r.function().required(),options:{literal:!0}}),override:r.object({override:!0}),ref:r.object({ref:r.object({type:r.valid("value","global","local"),path:r.array().required(),separator:r.string().length(1).allow(!1),ancestor:r.number().min(0).integer().allow("root"),map:r.array().items(r.array().length(2)).min(1),adjust:r.function(),iterables:r.boolean(),in:r.boolean(),render:r.boolean()}).required()}),regex:r.object({regex:r.string().min(3)}),special:r.object({special:r.valid("deep").required()}),template:r.object({template:r.string().required(),options:r.object()}),value:r.object({value:r.alternatives([r.object(),r.array()]).required()})},o.desc.entity=r.alternatives([r.array().items(r.link("...")),r.boolean(),r.function(),r.number(),r.string(),o.desc.buffer,o.desc.func,o.desc.ref,o.desc.regex,o.desc.special,o.desc.template,o.desc.value,r.link("/")]),o.desc.values=r.array().items(null,r.boolean(),r.function(),r.number().allow(1/0,-1/0),r.string().allow(""),r.symbol(),o.desc.buffer,o.desc.func,o.desc.override,o.desc.ref,o.desc.regex,o.desc.template,o.desc.value),o.desc.messages=r.object().pattern(/.+/,[r.string(),o.desc.template,r.object().pattern(/.+/,[r.string(),o.desc.template])]),t.description=r.object({type:r.string().required(),flags:r.object({cast:r.string(),default:r.any(),description:r.string(),empty:r.link("/"),failover:o.desc.entity,id:r.string(),label:r.string(),only:!0,presence:["optional","required","forbidden"],result:["raw","strip"],strip:r.boolean(),unit:r.string()}).unknown(),preferences:{allowUnknown:r.boolean(),abortEarly:r.boolean(),artifacts:r.boolean(),cache:r.boolean(),convert:r.boolean(),dateFormat:["date","iso","string","time","utc"],errors:{escapeHtml:r.boolean(),label:["path","key"],language:[r.string(),o.desc.ref],wrap:{label:o.wrap,array:o.wrap}},externals:r.boolean(),messages:o.desc.messages,noDefaults:r.boolean(),nonEnumerables:r.boolean(),presence:["required","optional","forbidden"],skipFunctions:r.boolean(),stripUnknown:r.object({arrays:r.boolean(),objects:r.boolean()}).or("arrays","objects").allow(!0,!1),warnings:r.boolean()},allow:o.desc.values,invalid:o.desc.values,rules:r.array().min(1).items({name:r.string().required(),args:r.object().min(1),keep:r.boolean(),message:[r.string(),o.desc.messages],warn:r.boolean()}),keys:r.object().pattern(/.*/,r.link("/")),link:o.desc.ref}).pattern(/^[a-z]\w*$/,r.any())},493:(e,t,n)=>{const r=n(8571),o=n(9621),i=n(8160),s={value:Symbol("value")};e.exports=s.State=class{constructor(e,t,n){this.path=e,this.ancestors=t,this.mainstay=n.mainstay,this.schemas=n.schemas,this.debug=null}localize(e,t=null,n=null){const r=new s.State(e,t,this);return n&&r.schemas&&(r.schemas=[s.schemas(n),...r.schemas]),r}nest(e,t){const n=new s.State(this.path,this.ancestors,this);return n.schemas=n.schemas&&[s.schemas(e),...n.schemas],n.debug=t,n}shadow(e,t){this.mainstay.shadow=this.mainstay.shadow||new s.Shadow,this.mainstay.shadow.set(this.path,e,t)}snapshot(){this.mainstay.shadow&&(this._snapshot=r(this.mainstay.shadow.node(this.path)))}restore(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0)}},s.schemas=function(e){return i.isSchema(e)?{schema:e}:e},s.Shadow=class{constructor(){this._values=null}set(e,t,n){if(!e.length)return;if("strip"===n&&"number"==typeof e[e.length-1])return;this._values=this._values||new Map;let r=this._values;for(let o=0;o{function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const i=n(375),s=n(8571),a=n(5277),l=n(1447),c=n(8160),u=n(6354),d=n(6133),p={symbol:Symbol("template"),opens:new Array(1e3).join("\0"),closes:new Array(1e3).join(""),dateFormat:{date:Date.prototype.toDateString,iso:Date.prototype.toISOString,string:Date.prototype.toString,time:Date.prototype.toTimeString,utc:Date.prototype.toUTCString}};e.exports=p.Template=class{constructor(e,t){i("string"==typeof e,"Template source must be a string"),i(!e.includes("\0")&&!e.includes(""),"Template source cannot contain reserved control characters"),this.source=e,this.rendered=e,this._template=null,this._settings=s(t),this._parse()}_parse(){if(!this.source.includes("{"))return;const e=p.encode(this.source),t=p.split(e);let n=!1;const r=[],o=t.shift();o&&r.push(o);for(const i of t){const e="{"!==i[0],t=e?"}":"}}",o=i.indexOf(t);if(-1===o||"{"===i[1]){r.push("{".concat(p.decode(i)));continue}let s=i.slice(e?0:1,o);const a=":"===s[0];a&&(s=s.slice(1));const l=this._ref(p.decode(s),{raw:e,wrapped:a});r.push(l),"string"!=typeof l&&(n=!0);const c=i.slice(o+t.length);c&&r.push(p.decode(c))}n?this._template=r:this.rendered=r.join("")}static date(e,t){return p.dateFormat[t.dateFormat].call(e)}describe(e={}){if(!this._settings&&e.compact)return this.source;const t={template:this.source};return this._settings&&(t.options=this._settings),t}static build(e){return new p.Template(e.template,e.options)}isDynamic(){return!!this._template}static isTemplate(e){return!!e&&!!e[c.symbols.template]}refs(){if(!this._template)return;const e=[];for(const t of this._template)"string"!=typeof t&&e.push(...t.refs);return e}resolve(e,t,n,r){return this._template&&1===this._template.length?this._part(this._template[0],e,t,n,r,{}):this.render(e,t,n,r)}_part(e,...t){return e.ref?e.ref.resolve(...t):e.formula.evaluate(t)}render(e,t,n,r,o={}){if(!this.isDynamic())return this.rendered;const i=[];for(const s of this._template)if("string"==typeof s)i.push(s);else{const l=this._part(s,e,t,n,r,o),c=p.stringify(l,e,t,n,r,o);if(void 0!==c){const e=s.raw||!1===(o.errors&&o.errors.escapeHtml)?c:a(c);i.push(p.wrap(e,s.wrapped&&n.errors.wrap.label))}}return i.join("")}_ref(e,{raw:t,wrapped:n}){const r=[],o=e=>{const t=d.create(e,this._settings);return r.push(t),e=>t.resolve(...e)};try{var i=new l.Parser(e,{reference:o,functions:p.functions,constants:p.constants})}catch(s){throw s.message='Invalid template variable "'.concat(e,'" fails due to: ').concat(s.message),s}if(i.single){if("reference"===i.single.type){const e=r[0];return{ref:e,raw:t,refs:r,wrapped:n||"local"===e.type&&"label"===e.key}}return p.stringify(i.single.value)}return{formula:i,raw:t,refs:r}}toString(){return this.source}},p.Template.prototype[c.symbols.template]=!0,p.Template.prototype.isImmutable=!0,p.encode=function(e){return e.replace(/\\(\{+)/g,((e,t)=>p.opens.slice(0,t.length))).replace(/\\(\}+)/g,((e,t)=>p.closes.slice(0,t.length)))},p.decode=function(e){return e.replace(/\u0000/g,"{").replace(/\u0001/g,"}")},p.split=function(e){const t=[];let n="";for(let r=0;r ").concat(r.toString()));e=t}if(!Array.isArray(e))return e.toString();let u="";for(const r of e)u=u+(u.length?", ":"")+p.stringify(r,t,n,i,s,a);return c?u:p.wrap(u,i.errors.wrap.array)},p.constants={true:!0,false:!1,null:null,second:1e3,minute:6e4,hour:36e5,day:864e5},p.functions={if:(e,t,n)=>e?t:n,msg(e){const[t,n,r,o,i]=this,s=i.messages;if(!s)return"";const a=u.template(t,s[0],e,n,r)||u.template(t,s[1],e,n,r);return a?a.render(t,n,r,o,i):""},number:e=>"number"==typeof e?e:"string"==typeof e?parseFloat(e):"boolean"==typeof e?e?1:0:e instanceof Date?e.getTime():null}},4946:(e,t,n)=>{const r=n(375),o=n(1687),i=n(8068),s=n(8160),a=n(3292),l=n(6354),c=n(6133),u={};e.exports=i.extend({type:"alternatives",flags:{match:{default:"any"}},terms:{matches:{init:[],register:c.toSibling}},args:(e,...t)=>1===t.length&&Array.isArray(t[0])?e.try(...t[0]):e.try(...t),validate(e,t){const{schema:n,error:r,state:i,prefs:s}=t;if(n._flags.match){const t=[];for(let r=0;re&&"object"===t.schema.type),!0)?{value:t.reduce(((e,t)=>o(e,t,{mergeArrays:!1})))}:{value:t[t.length-1]}}const a=[];for(let o=0;o"is"!==n.path[0]?t.label(e):void 0,ref:!1})}},rebuild(e){e.$_modify({each:t=>{s.isSchema(t)&&"array"===t.type&&e.$_setFlag("_arrayItems",!0,{clone:!1})}})},manifest:{build(e,t){if(t.matches)for(const n of t.matches){const{schema:t,ref:r,is:o,not:i,then:s,otherwise:a}=n;e=t?e.try(t):r?e.conditional(r,{is:o,then:s,not:i,otherwise:a,switch:n.switch}):e.conditional(o,{then:s,otherwise:a})}return e}},messages:{"alternatives.all":"{{#label}} does not match all of the required types","alternatives.any":"{{#label}} does not match any of the allowed types","alternatives.match":"{{#label}} does not match any of the allowed types","alternatives.one":"{{#label}} matches more than one allowed type","alternatives.types":"{{#label}} must be one of {{#types}}"}}),u.errors=function(e,{error:t,state:n}){if(!e.length)return{errors:t("alternatives.any")};if(1===e.length)return{errors:e[0].reports};const r=new Set,o=[];for(const{reports:i,schema:s}of e){if(i.length>1)return u.unmatched(e,t);const a=i[0];if(a instanceof l.Report==0)return u.unmatched(e,t);if(a.state.path.length!==n.path.length){o.push({type:s.type,report:a});continue}if("any.only"===a.code){for(const e of a.local.valids)r.add(e);continue}const[c,d]=a.code.split(".");"base"===d?r.add(c):o.push({type:s.type,report:a})}return o.length?1===o.length?{errors:o[0].report}:u.unmatched(e,t):{errors:t("alternatives.types",{types:[...r]})}},u.unmatched=function(e,t){const n=[];for(const r of e)n.push(...r.reports);return{errors:t("alternatives.match",l.details(n,{override:!1}))}}},8068:(e,t,n)=>{const r=n(375),o=n(7629),i=n(8160),s=n(6914);e.exports=o.extend({type:"any",flags:{only:{default:!1}},terms:{alterations:{init:null},examples:{init:null},externals:{init:null},metas:{init:[]},notes:{init:[]},shared:{init:null},tags:{init:[]},whens:{init:null}},rules:{custom:{method(e,t){return r("function"==typeof e,"Method must be a function"),r(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this.$_addRule({name:"custom",args:{method:e,description:t}})},validate(e,t,{method:n}){try{return n(e,t)}catch(r){return t.error("any.custom",{error:r})}},args:["method","description"],multi:!0},messages:{method(e){return this.prefs({messages:e})}},shared:{method(e){r(i.isSchema(e)&&e._flags.id,"Schema must be a schema with an id");const t=this.clone();return t.$_terms.shared=t.$_terms.shared||[],t.$_terms.shared.push(e),t.$_mutateRegister(e),t}},warning:{method(e,t){return r(e&&"string"==typeof e,"Invalid warning code"),this.$_addRule({name:"warning",args:{code:e,local:t},warn:!0})},validate:(e,t,{code:n,local:r})=>t.error(n,r),args:["code","local"],multi:!0}},modifiers:{keep(e,t=!0){e.keep=t},message(e,t){e.message=s.compile(t)},warn(e,t=!0){e.warn=t}},manifest:{build(e,t){for(const n in t){const r=t[n];if(["examples","externals","metas","notes","tags"].includes(n))for(const t of r)e=e[n.slice(0,-1)](t);else if("alterations"!==n)if("whens"!==n){if("shared"===n)for(const t of r)e=e.shared(t)}else for(const t of r){const{ref:n,is:r,not:o,then:i,otherwise:s,concat:a}=t;e=a?e.concat(a):n?e.when(n,{is:r,not:o,then:i,otherwise:s,switch:t.switch,break:t.break}):e.when(r,{then:i,otherwise:s,break:t.break})}else{const t={};for(const{target:e,adjuster:n}of r)t[e]=n;e=e.alter(t)}}return e}},messages:{"any.custom":"{{#label}} failed custom validation because {{#error.message}}","any.default":"{{#label}} threw an error when running default method","any.failover":"{{#label}} threw an error when running failover method","any.invalid":"{{#label}} contains an invalid value","any.only":'{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}',"any.ref":"{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}","any.required":"{{#label}} is required","any.unknown":"{{#label}} is not allowed"}})},546:(e,t,n)=>{const r=n(375),o=n(9474),i=n(9621),s=n(8068),a=n(8160),l=n(3292),c={};e.exports=s.extend({type:"array",flags:{single:{default:!1},sparse:{default:!1}},terms:{items:{init:[],manifest:"schema"},ordered:{init:[],manifest:"schema"},_exclusions:{init:[]},_inclusions:{init:[]},_requireds:{init:[]}},coerce:{from:"object",method(e,{schema:t,state:n,prefs:r}){if(!Array.isArray(e))return;const o=t.$_getRule("sort");return o?c.sort(t,e,o.args.options,n,r):void 0}},validate(e,{schema:t,error:n}){if(!Array.isArray(e)){if(t._flags.single){const t=[e];return t[a.symbols.arraySingle]=!0,{value:t}}return{errors:n("array.base")}}if(t.$_getRule("items")||t.$_terms.externals)return{value:e.slice()}},rules:{has:{method(e){e=this.$_compile(e,{appendPath:!0});const t=this.$_addRule({name:"has",args:{schema:e}});return t.$_mutateRegister(e),t},validate(e,{state:t,prefs:n,error:r},{schema:o}){const i=[e,...t.ancestors];for(let a=0;athis.$_compile(e[n])),n,{append:!0});t.$_terms.items.push(r)}return t.$_mutateRebuild()},validate(e,{schema:t,error:n,state:r,prefs:o,errorsArray:i}){const s=t.$_terms._requireds.slice(),l=t.$_terms.ordered.slice(),u=[...t.$_terms._inclusions,...s],d=!e[a.symbols.arraySingle];delete e[a.symbols.arraySingle];const p=i();let h=e.length;for(let a=0;a="})}},ordered:{method(...e){a.verifyFlat(e,"ordered");const t=this.$_addRule("items");for(let n=0;nthis.$_compile(e[n])),n,{append:!0});c.validateSingle(r,t),t.$_mutateRegister(r),t.$_terms.ordered.push(r)}return t.$_mutateRebuild()}},single:{method(e){const t=void 0===e||!!e;return r(!t||!this._flags._arrayItems,"Cannot specify single rule when array has array items"),this.$_setFlag("single",t)}},sort:{method(e={}){a.assertOptions(e,["by","order"]);const t={order:e.order||"ascending"};return e.by&&(t.by=l.ref(e.by,{ancestor:0}),r(!t.by.ancestor,"Cannot sort by ancestor")),this.$_addRule({name:"sort",args:{options:t}})},validate(e,{error:t,state:n,prefs:r,schema:o},{options:i}){const{value:s,errors:a}=c.sort(o,e,i,n,r);if(a)return a;for(let l=0;lnew Set(e)}},rebuild(e){e.$_terms._inclusions=[],e.$_terms._exclusions=[],e.$_terms._requireds=[];for(const t of e.$_terms.items)c.validateSingle(t,e),"required"===t._flags.presence?e.$_terms._requireds.push(t):"forbidden"===t._flags.presence?e.$_terms._exclusions.push(t):e.$_terms._inclusions.push(t);for(const t of e.$_terms.ordered)c.validateSingle(t,e)},manifest:{build:(e,t)=>(t.items&&(e=e.items(...t.items)),t.ordered&&(e=e.ordered(...t.ordered)),e)},messages:{"array.base":"{{#label}} must be an array","array.excludes":"{{#label}} contains an excluded value","array.hasKnown":"{{#label}} does not contain at least one required match for type {:#patternLabel}","array.hasUnknown":"{{#label}} does not contain at least one required match","array.includes":"{{#label}} does not match any of the allowed types","array.includesRequiredBoth":"{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)","array.includesRequiredKnowns":"{{#label}} does not contain {{#knownMisses}}","array.includesRequiredUnknowns":"{{#label}} does not contain {{#unknownMisses}} required value(s)","array.length":"{{#label}} must contain {{#limit}} items","array.max":"{{#label}} must contain less than or equal to {{#limit}} items","array.min":"{{#label}} must contain at least {{#limit}} items","array.orderedLength":"{{#label}} must contain at most {{#limit}} items","array.sort":"{{#label}} must be sorted in {#order} order by {{#by}}","array.sort.mismatching":"{{#label}} cannot be sorted due to mismatching types","array.sort.unsupported":"{{#label}} cannot be sorted due to unsupported type {#type}","array.sparse":"{{#label}} must not be a sparse array item","array.unique":"{{#label}} contains a duplicate value"}}),c.fillMissedErrors=function(e,t,n,r,o,i){const s=[];let a=0;for(const l of n){const e=l._flags.label;e?s.push(e):++a}s.length?a?t.push(e.$_createError("array.includesRequiredBoth",r,{knownMisses:s,unknownMisses:a},o,i)):t.push(e.$_createError("array.includesRequiredKnowns",r,{knownMisses:s},o,i)):t.push(e.$_createError("array.includesRequiredUnknowns",r,{unknownMisses:a},o,i))},c.fillOrderedErrors=function(e,t,n,r,o,i){const s=[];for(const a of n)"required"===a._flags.presence&&s.push(a);s.length&&c.fillMissedErrors(e,t,s,r,o,i)},c.fillDefault=function(e,t,n,r){const o=[];let i=!0;for(let s=e.length-1;s>=0;--s){const a=e[s],l=[t,...n.ancestors],c=a.$_validate(void 0,n.localize(n.path,l,a),r).value;if(i){if(void 0===c)continue;i=!1}o.unshift(c)}o.length&&t.push(...o)},c.fastSplice=function(e,t){let n=t;for(;n{let d=c.compare(l,u,s,a);if(null!==d)return d;if(n.by&&(l=n.by.resolve(l,r,o),u=n.by.resolve(u,r,o)),d=c.compare(l,u,s,a),null!==d)return d;const p=typeof l;if(p!==typeof u)throw e.$_createError("array.sort.mismatching",t,null,r,o);if("number"!==p&&"string"!==p)throw e.$_createError("array.sort.unsupported",t,{type:p},r,o);return"number"===p?(l-u)*i:l{const r=n(375),o=n(8068),i=n(8160),s=n(2036),a={isBool:function(e){return"boolean"==typeof e}};e.exports=o.extend({type:"boolean",flags:{sensitive:{default:!1}},terms:{falsy:{init:null,manifest:"values"},truthy:{init:null,manifest:"values"}},coerce(e,{schema:t}){if("boolean"!=typeof e){if("string"==typeof e){const n=t._flags.sensitive?e:e.toLowerCase();e="true"===n||"false"!==n&&e}return"boolean"!=typeof e&&(e=t.$_terms.truthy&&t.$_terms.truthy.has(e,null,null,!t._flags.sensitive)||(!t.$_terms.falsy||!t.$_terms.falsy.has(e,null,null,!t._flags.sensitive))&&e),{value:e}}},validate(e,{error:t}){if("boolean"!=typeof e)return{value:e,errors:t("boolean.base")}},rules:{truthy:{method(...e){i.verifyFlat(e,"truthy");const t=this.clone();t.$_terms.truthy=t.$_terms.truthy||new s;for(let n=0;ne?1:0},string:{from:a.isBool,to:(e,t)=>e?"true":"false"}},manifest:{build:(e,t)=>(t.truthy&&(e=e.truthy(...t.truthy)),t.falsy&&(e=e.falsy(...t.falsy)),e)},messages:{"boolean.base":"{{#label}} must be a boolean"}})},7500:(e,t,n)=>{const r=n(375),o=n(8068),i=n(8160),s=n(3328),a={isDate:function(e){return e instanceof Date}};e.exports=o.extend({type:"date",coerce:{from:["number","string"],method:(e,{schema:t})=>({value:a.parse(e,t._flags.format)||e})},validate(e,{schema:t,error:n,prefs:r}){if(e instanceof Date&&!isNaN(e.getTime()))return;const o=t._flags.format;return r.convert&&o&&"string"==typeof e?{value:e,errors:n("date.format",{format:o})}:{value:e,errors:n("date.base")}},rules:{compare:{method:!1,validate(e,t,{date:n},{name:r,operator:o,args:s}){const a="now"===n?Date.now():n.getTime();return i.compare(e.getTime(),a,o)?e:t.error("date."+r,{limit:s.date,value:e})},args:[{name:"date",ref:!0,normalize:e=>"now"===e?e:a.parse(e),assert:e=>null!==e,message:"must have a valid date format"}]},format:{method(e){return r(["iso","javascript","unix"].includes(e),"Unknown date format",e),this.$_setFlag("format",e)}},greater:{method(e){return this.$_addRule({name:"greater",method:"compare",args:{date:e},operator:">"})}},iso:{method(){return this.format("iso")}},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{date:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{date:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{date:e},operator:">="})}},timestamp:{method(e="javascript"){return r(["javascript","unix"].includes(e),'"type" must be one of "javascript, unix"'),this.format(e)}}},cast:{number:{from:a.isDate,to:(e,t)=>e.getTime()},string:{from:a.isDate,to:(e,{prefs:t})=>s.date(e,t)}},messages:{"date.base":"{{#label}} must be a valid date","date.format":'{{#label}} must be in {msg("date.format." + #format) || #format} format',"date.greater":"{{#label}} must be greater than {{:#limit}}","date.less":"{{#label}} must be less than {{:#limit}}","date.max":"{{#label}} must be less than or equal to {{:#limit}}","date.min":"{{#label}} must be greater than or equal to {{:#limit}}","date.format.iso":"ISO 8601 date","date.format.javascript":"timestamp or number of milliseconds","date.format.unix":"timestamp or number of seconds"}}),a.parse=function(e,t){if(e instanceof Date)return e;if("string"!=typeof e&&(isNaN(e)||!isFinite(e)))return null;if(/^\s*$/.test(e))return null;if("iso"===t)return i.isIsoDate(e)?a.date(e.toString()):null;const n=e;if("string"==typeof e&&/^[+-]?\d+(\.\d+)?$/.test(e)&&(e=parseFloat(e)),t){if("javascript"===t)return a.date(1*e);if("unix"===t)return a.date(1e3*e);if("string"==typeof n)return null}return a.date(e)},a.date=function(e){const t=new Date(e);return isNaN(t.getTime())?null:t}},390:(e,t,n)=>{const r=n(375),o=n(7824);e.exports=o.extend({type:"function",properties:{typeof:"function"},rules:{arity:{method(e){return r(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"arity",args:{n:e}})},validate:(e,t,{n:n})=>e.length===n?e:t.error("function.arity",{n:n})},class:{method(){return this.$_addRule("class")},validate:(e,t)=>/^\s*class\s/.test(e.toString())?e:t.error("function.class",{value:e})},minArity:{method(e){return r(Number.isSafeInteger(e)&&e>0,"n must be a strict positive integer"),this.$_addRule({name:"minArity",args:{n:e}})},validate:(e,t,{n:n})=>e.length>=n?e:t.error("function.minArity",{n:n})},maxArity:{method(e){return r(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"maxArity",args:{n:e}})},validate:(e,t,{n:n})=>e.length<=n?e:t.error("function.maxArity",{n:n})}},messages:{"function.arity":"{{#label}} must have an arity of {{#n}}","function.class":"{{#label}} must be a class","function.maxArity":"{{#label}} must have an arity lesser or equal to {{#n}}","function.minArity":"{{#label}} must have an arity greater or equal to {{#n}}"}})},7824:(e,t,n)=>{const r=n(978),o=n(375),i=n(8571),s=n(3652),a=n(8068),l=n(8160),c=n(3292),u=n(6354),d=n(6133),p=n(3328),h={renameDefaults:{alias:!1,multiple:!1,override:!1}};e.exports=a.extend({type:"_keys",properties:{typeof:"object"},flags:{unknown:{default:!1}},terms:{dependencies:{init:null},keys:{init:null,manifest:{mapped:{from:"schema",to:"key"}}},patterns:{init:null},renames:{init:null}},args:(e,t)=>e.keys(t),validate(e,{schema:t,error:n,state:r,prefs:o}){if(!e||typeof e!==t.$_property("typeof")||Array.isArray(e))return{value:e,errors:n("object.base",{type:t.$_property("typeof")})};if(!(t.$_terms.renames||t.$_terms.dependencies||t.$_terms.keys||t.$_terms.patterns||t.$_terms.externals))return;e=h.clone(e,o);const i=[];if(t.$_terms.renames&&!h.rename(t,e,r,o,i))return{value:e,errors:i};if(!t.$_terms.keys&&!t.$_terms.patterns&&!t.$_terms.dependencies)return{value:e,errors:i};const s=new Set(Object.keys(e));if(t.$_terms.keys){const n=[e,...r.ancestors];for(const a of t.$_terms.keys){const t=a.key,l=e[t];s.delete(t);const c=r.localize([...r.path,t],n,a),u=a.schema.$_validate(l,c,o);if(u.errors){if(o.abortEarly)return{value:e,errors:u.errors};void 0!==u.value&&(e[t]=u.value),i.push(...u.errors)}else"strip"===a.schema._flags.result||void 0===u.value&&void 0!==l?delete e[t]:void 0!==u.value&&(e[t]=u.value)}}if(s.size||t._flags._hasPatternMatch){const n=h.unknown(t,e,s,i,r,o);if(n)return n}if(t.$_terms.dependencies)for(const a of t.$_terms.dependencies){if(a.key&&void 0===a.key.resolve(e,r,o,null,{shadow:!1}))continue;const n=h.dependencies[a.rel](t,a,e,r,o);if(n){const s=t.$_createError(n.code,e,n.context,r,o);if(o.abortEarly)return{value:e,errors:s};i.push(s)}}return{value:e,errors:i}},rules:{and:{method(...e){return l.verifyFlat(e,"and"),h.dependency(this,"and",null,e)}},append:{method(e){return null==e||0===Object.keys(e).length?this:this.keys(e)}},assert:{method(e,t,n){p.isTemplate(e)||(e=c.ref(e)),o(void 0===n||"string"==typeof n,"Message must be a string"),t=this.$_compile(t,{appendPath:!0});const r=this.$_addRule({name:"assert",args:{subject:e,schema:t,message:n}});return r.$_mutateRegister(e),r.$_mutateRegister(t),r},validate(e,{error:t,prefs:n,state:r},{subject:o,schema:i,message:s}){const a=o.resolve(e,r,n),l=d.isRef(o)?o.absolute(r):[];return i.$_match(a,r.localize(l,[e,...r.ancestors],i),n)?e:t("object.assert",{subject:o,message:s})},args:["subject","schema","message"],multi:!0},instance:{method(e,t){return o("function"==typeof e,"constructor must be a function"),t=t||e.name,this.$_addRule({name:"instance",args:{constructor:e,name:t}})},validate:(e,t,{constructor:n,name:r})=>e instanceof n?e:t.error("object.instance",{type:r,value:e}),args:["constructor","name"]},keys:{method(e){o(void 0===e||"object"==typeof e,"Object schema must be a valid object"),o(!l.isSchema(e),"Object schema cannot be a joi schema");const t=this.clone();if(e)if(Object.keys(e).length){t.$_terms.keys=t.$_terms.keys?t.$_terms.keys.filter((t=>!e.hasOwnProperty(t.key))):new h.Keys;for(const n in e)l.tryWithPath((()=>t.$_terms.keys.push({key:n,schema:this.$_compile(e[n])})),n)}else t.$_terms.keys=new h.Keys;else t.$_terms.keys=null;return t.$_mutateRebuild()}},length:{method(e){return this.$_addRule({name:"length",args:{limit:e},operator:"="})},validate:(e,t,{limit:n},{name:r,operator:o,args:i})=>l.compare(Object.keys(e).length,n,o)?e:t.error("object."+r,{limit:i.limit,value:e}),args:[{name:"limit",ref:!0,assert:l.limit,message:"must be a positive integer"}]},max:{method(e){return this.$_addRule({name:"max",method:"length",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"length",args:{limit:e},operator:">="})}},nand:{method(...e){return l.verifyFlat(e,"nand"),h.dependency(this,"nand",null,e)}},or:{method(...e){return l.verifyFlat(e,"or"),h.dependency(this,"or",null,e)}},oxor:{method(...e){return h.dependency(this,"oxor",null,e)}},pattern:{method(e,t,n={}){const r=e instanceof RegExp;r||(e=this.$_compile(e,{appendPath:!0})),o(void 0!==t,"Invalid rule"),l.assertOptions(n,["fallthrough","matches"]),r&&o(!e.flags.includes("g")&&!e.flags.includes("y"),"pattern should not use global or sticky mode"),t=this.$_compile(t,{appendPath:!0});const i=this.clone();i.$_terms.patterns=i.$_terms.patterns||[];const s={[r?"regex":"schema"]:e,rule:t};return n.matches&&(s.matches=this.$_compile(n.matches),"array"!==s.matches.type&&(s.matches=s.matches.$_root.array().items(s.matches)),i.$_mutateRegister(s.matches),i.$_setFlag("_hasPatternMatch",!0,{clone:!1})),n.fallthrough&&(s.fallthrough=!0),i.$_terms.patterns.push(s),i.$_mutateRegister(t),i}},ref:{method(){return this.$_addRule("ref")},validate:(e,t)=>d.isRef(e)?e:t.error("object.refType",{value:e})},regex:{method(){return this.$_addRule("regex")},validate:(e,t)=>e instanceof RegExp?e:t.error("object.regex",{value:e})},rename:{method(e,t,n={}){o("string"==typeof e||e instanceof RegExp,"Rename missing the from argument"),o("string"==typeof t||t instanceof p,"Invalid rename to argument"),o(t!==e,"Cannot rename key to same name:",e),l.assertOptions(n,["alias","ignoreUndefined","override","multiple"]);const i=this.clone();i.$_terms.renames=i.$_terms.renames||[];for(const r of i.$_terms.renames)o(r.from!==e,"Cannot rename the same key multiple times");return t instanceof p&&i.$_mutateRegister(t),i.$_terms.renames.push({from:e,to:t,options:r(h.renameDefaults,n)}),i}},schema:{method(e="any"){return this.$_addRule({name:"schema",args:{type:e}})},validate:(e,t,{type:n})=>!l.isSchema(e)||"any"!==n&&e.type!==n?t.error("object.schema",{type:n}):e},unknown:{method(e){return this.$_setFlag("unknown",!1!==e)}},with:{method(e,t,n={}){return h.dependency(this,"with",e,t,n)}},without:{method(e,t,n={}){return h.dependency(this,"without",e,t,n)}},xor:{method(...e){return l.verifyFlat(e,"xor"),h.dependency(this,"xor",null,e)}}},overrides:{default(e,t){return void 0===e&&(e=l.symbols.deepDefault),this.$_parent("default",e,t)}},rebuild(e){if(e.$_terms.keys){const t=new s.Sorter;for(const n of e.$_terms.keys)l.tryWithPath((()=>t.add(n,{after:n.schema.$_rootReferences(),group:n.key})),n.key);e.$_terms.keys=new h.Keys(...t.nodes)}},manifest:{build(e,t){if(t.keys&&(e=e.keys(t.keys)),t.dependencies)for(const{rel:n,key:r=null,peers:o,options:i}of t.dependencies)e=h.dependency(e,n,r,o,i);if(t.patterns)for(const{regex:n,schema:r,rule:o,fallthrough:i,matches:s}of t.patterns)e=e.pattern(n||r,o,{fallthrough:i,matches:s});if(t.renames)for(const{from:n,to:r,options:o}of t.renames)e=e.rename(n,r,o);return e}},messages:{"object.and":"{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}","object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":"{{#label}} must be of type {{#type}}","object.instance":"{{#label}} must be an instance of {{:#type}}","object.length":'{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}',"object.max":'{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}',"object.min":'{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}',"object.missing":"{{#label}} must contain at least one of {{#peersWithLabels}}","object.nand":"{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}","object.oxor":"{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}","object.pattern.match":"{{#label}} keys failed to match pattern requirements","object.refType":"{{#label}} must be a Joi reference","object.regex":"{{#label}} must be a RegExp object","object.rename.multiple":"{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}","object.rename.override":"{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists","object.schema":"{{#label}} must be a Joi schema of {{#type}} type","object.unknown":"{{#label}} is not allowed","object.with":"{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}","object.without":"{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}","object.xor":"{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}"}}),h.clone=function(e,t){if("object"==typeof e){if(t.nonEnumerables)return i(e,{shallow:!0});const n=Object.create(Object.getPrototypeOf(e));return Object.assign(n,e),n}const n=function(...t){return e.apply(this,t)};return n.prototype=i(e.prototype),Object.defineProperty(n,"name",{value:e.name,writable:!1}),Object.defineProperty(n,"length",{value:e.length,writable:!1}),Object.assign(n,e),n},h.dependency=function(e,t,n,r,i){o(null===n||"string"==typeof n,t,"key must be a strings"),i||(i=r.length>1&&"object"==typeof r[r.length-1]?r.pop():{}),l.assertOptions(i,["separator"]),r=[].concat(r);const s=l.default(i.separator,"."),a=[];for(const l of r)o("string"==typeof l,t,"peers must be strings"),a.push(c.ref(l,{separator:s,ancestor:0,prefix:!1}));null!==n&&(n=c.ref(n,{separator:s,ancestor:0,prefix:!1}));const u=e.clone();return u.$_terms.dependencies=u.$_terms.dependencies||[],u.$_terms.dependencies.push(new h.Dependency(t,n,a,r)),u},h.dependencies={and(e,t,n,r,o){const i=[],s=[],a=t.peers.length;for(const l of t.peers)void 0===l.resolve(n,r,o,null,{shadow:!1})?i.push(l.key):s.push(l.key);if(i.length!==a&&s.length!==a)return{code:"object.and",context:{present:s,presentWithLabels:h.keysToLabels(e,s),missing:i,missingWithLabels:h.keysToLabels(e,i)}}},nand(e,t,n,r,o){const i=[];for(const l of t.peers)void 0!==l.resolve(n,r,o,null,{shadow:!1})&&i.push(l.key);if(i.length!==t.peers.length)return;const s=t.paths[0],a=t.paths.slice(1);return{code:"object.nand",context:{main:s,mainWithLabel:h.keysToLabels(e,s),peers:a,peersWithLabels:h.keysToLabels(e,a)}}},or(e,t,n,r,o){for(const i of t.peers)if(void 0!==i.resolve(n,r,o,null,{shadow:!1}))return;return{code:"object.missing",context:{peers:t.paths,peersWithLabels:h.keysToLabels(e,t.paths)}}},oxor(e,t,n,r,o){const i=[];for(const a of t.peers)void 0!==a.resolve(n,r,o,null,{shadow:!1})&&i.push(a.key);if(!i.length||1===i.length)return;const s={peers:t.paths,peersWithLabels:h.keysToLabels(e,t.paths)};return s.present=i,s.presentWithLabels=h.keysToLabels(e,i),{code:"object.oxor",context:s}},with(e,t,n,r,o){for(const i of t.peers)if(void 0===i.resolve(n,r,o,null,{shadow:!1}))return{code:"object.with",context:{main:t.key.key,mainWithLabel:h.keysToLabels(e,t.key.key),peer:i.key,peerWithLabel:h.keysToLabels(e,i.key)}}},without(e,t,n,r,o){for(const i of t.peers)if(void 0!==i.resolve(n,r,o,null,{shadow:!1}))return{code:"object.without",context:{main:t.key.key,mainWithLabel:h.keysToLabels(e,t.key.key),peer:i.key,peerWithLabel:h.keysToLabels(e,i.key)}}},xor(e,t,n,r,o){const i=[];for(const a of t.peers)void 0!==a.resolve(n,r,o,null,{shadow:!1})&&i.push(a.key);if(1===i.length)return;const s={peers:t.paths,peersWithLabels:h.keysToLabels(e,t.paths)};return 0===i.length?{code:"object.missing",context:s}:(s.present=i,s.presentWithLabels=h.keysToLabels(e,i),{code:"object.xor",context:s})}},h.keysToLabels=function(e,t){return Array.isArray(t)?t.map((t=>e.$_mapLabels(t))):e.$_mapLabels(t)},h.rename=function(e,t,n,r,o){const i={};for(const s of e.$_terms.renames){const a=[],l="string"!=typeof s.from;if(l)for(const e in t){if(void 0===t[e]&&s.options.ignoreUndefined)continue;if(e===s.to)continue;const n=s.from.exec(e);n&&a.push({from:e,to:s.to,match:n})}else!Object.prototype.hasOwnProperty.call(t,s.from)||void 0===t[s.from]&&s.options.ignoreUndefined||a.push(s);for(const c of a){const a=c.from;let u=c.to;if(u instanceof p&&(u=u.render(t,n,r,c.match)),a!==u){if(!s.options.multiple&&i[u]&&(o.push(e.$_createError("object.rename.multiple",t,{from:a,to:u,pattern:l},n,r)),r.abortEarly))return!1;if(Object.prototype.hasOwnProperty.call(t,u)&&!s.options.override&&!i[u]&&(o.push(e.$_createError("object.rename.override",t,{from:a,to:u,pattern:l},n,r)),r.abortEarly))return!1;void 0===t[a]?delete t[u]:t[u]=t[a],i[u]=!0,s.options.alias||delete t[a]}}}return!0},h.unknown=function(e,t,n,r,o,i){if(e.$_terms.patterns){let s=!1;const a=e.$_terms.patterns.map((e=>{if(e.matches)return s=!0,[]})),l=[t,...o.ancestors];for(const c of n){const s=t[c],u=[...o.path,c];for(let d=0;d{const r=n(375),o=n(8068),i=n(8160),s=n(3292),a=n(6354),l={};e.exports=o.extend({type:"link",properties:{schemaChain:!0},terms:{link:{init:null,manifest:"single",register:!1}},args:(e,t)=>e.ref(t),validate(e,{schema:t,state:n,prefs:o}){r(t.$_terms.link,"Uninitialized link schema");const i=l.generate(t,e,n,o),s=t.$_terms.link[0].ref;return i.$_validate(e,n.nest(i,"link:".concat(s.display,":").concat(i.type)),o)},generate:(e,t,n,r)=>l.generate(e,t,n,r),rules:{ref:{method(e){r(!this.$_terms.link,"Cannot reinitialize schema"),e=s.ref(e),r("value"===e.type||"local"===e.type,"Invalid reference type:",e.type),r("local"===e.type||"root"===e.ancestor||e.ancestor>0,"Link cannot reference itself");const t=this.clone();return t.$_terms.link=[{ref:e}],t}},relative:{method(e=!0){return this.$_setFlag("relative",e)}}},overrides:{concat(e){r(this.$_terms.link,"Uninitialized link schema"),r(i.isSchema(e),"Invalid schema object"),r("link"!==e.type,"Cannot merge type link with another link");const t=this.clone();return t.$_terms.whens||(t.$_terms.whens=[]),t.$_terms.whens.push({concat:e}),t.$_mutateRebuild()}},manifest:{build:(e,t)=>(r(t.link,"Invalid link description missing link"),e.ref(t.link))}}),l.generate=function(e,t,n,r){let o=n.mainstay.links.get(e);if(o)return o._generate(t,n,r).schema;const i=e.$_terms.link[0].ref,{perspective:s,path:a}=l.perspective(i,n);l.assert(s,"which is outside of schema boundaries",i,e,n,r);try{o=a.length?s.$_reach(a):s}catch(c){l.assert(!1,"to non-existing schema",i,e,n,r)}return l.assert("link"!==o.type,"which is another link",i,e,n,r),e._flags.relative||n.mainstay.links.set(e,o),o._generate(t,n,r).schema},l.perspective=function(e,t){if("local"===e.type){for(const{schema:n,key:r}of t.schemas){if((n._flags.id||r)===e.path[0])return{perspective:n,path:e.path.slice(1)};if(n.$_terms.shared)for(const t of n.$_terms.shared)if(t._flags.id===e.path[0])return{perspective:t,path:e.path.slice(1)}}return{perspective:null,path:null}}return"root"===e.ancestor?{perspective:t.schemas[t.schemas.length-1].schema,path:e.path}:{perspective:t.schemas[e.ancestor]&&t.schemas[e.ancestor].schema,path:e.path}},l.assert=function(e,t,n,o,i,s){e||r(!1,'"'.concat(a.label(o._flags,i,s),'" contains link reference "').concat(n.display,'" ').concat(t))}},3832:(e,t,n)=>{const r=n(375),o=n(8068),i=n(8160),s={numberRx:/^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/};e.exports=o.extend({type:"number",flags:{unsafe:{default:!1}},coerce:{from:"string",method(e,{schema:t,error:n}){const r=e.match(s.numberRx);if(!r)return;e=e.trim();const o={value:parseFloat(e)};if(0===o.value&&(o.value=0),!t._flags.unsafe)if(e.match(/e/i)){if(s.normalizeExponent("".concat(o.value/Math.pow(10,r[1]),"e").concat(r[1]))!==s.normalizeExponent(e))return o.errors=n("number.unsafe"),o}else{const t=o.value.toString();if(t.match(/e/i))return o;if(t!==s.normalizeDecimal(e))return o.errors=n("number.unsafe"),o}return o}},validate(e,{schema:t,error:n,prefs:r}){if(e===1/0||e===-1/0)return{value:e,errors:n("number.infinity")};if(!i.isNumber(e))return{value:e,errors:n("number.base")};const o={value:e};if(r.convert){const e=t.$_getRule("precision");if(e){const t=Math.pow(10,e.args.limit);o.value=Math.round(o.value*t)/t}}return 0===o.value&&(o.value=0),!t._flags.unsafe&&(e>Number.MAX_SAFE_INTEGER||ei.compare(e,n,o)?e:t.error("number."+r,{limit:s.limit,value:e}),args:[{name:"limit",ref:!0,assert:i.isNumber,message:"must be a number"}]},greater:{method(e){return this.$_addRule({name:"greater",method:"compare",args:{limit:e},operator:">"})}},integer:{method(){return this.$_addRule("integer")},validate:(e,t)=>Math.trunc(e)-e==0?e:t.error("number.integer")},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{limit:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{limit:e},operator:">="})}},multiple:{method(e){return this.$_addRule({name:"multiple",args:{base:e}})},validate:(e,t,{base:n},r)=>e%n==0?e:t.error("number.multiple",{multiple:r.args.base,value:e}),args:[{name:"base",ref:!0,assert:e=>"number"==typeof e&&isFinite(e)&&e>0,message:"must be a positive number"}],multi:!0},negative:{method(){return this.sign("negative")}},port:{method(){return this.$_addRule("port")},validate:(e,t)=>Number.isSafeInteger(e)&&e>=0&&e<=65535?e:t.error("number.port")},positive:{method(){return this.sign("positive")}},precision:{method(e){return r(Number.isSafeInteger(e),"limit must be an integer"),this.$_addRule({name:"precision",args:{limit:e}})},validate(e,t,{limit:n}){const r=e.toString().match(s.precisionRx);return Math.max((r[1]?r[1].length:0)-(r[2]?parseInt(r[2],10):0),0)<=n?e:t.error("number.precision",{limit:n,value:e})},convert:!0},sign:{method(e){return r(["negative","positive"].includes(e),"Invalid sign",e),this.$_addRule({name:"sign",args:{sign:e}})},validate:(e,t,{sign:n})=>"negative"===n&&e<0||"positive"===n&&e>0?e:t.error("number.".concat(n))},unsafe:{method(e=!0){return r("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("unsafe",e)}}},cast:{string:{from:e=>"number"==typeof e,to:(e,t)=>e.toString()}},messages:{"number.base":"{{#label}} must be a number","number.greater":"{{#label}} must be greater than {{#limit}}","number.infinity":"{{#label}} cannot be infinity","number.integer":"{{#label}} must be an integer","number.less":"{{#label}} must be less than {{#limit}}","number.max":"{{#label}} must be less than or equal to {{#limit}}","number.min":"{{#label}} must be greater than or equal to {{#limit}}","number.multiple":"{{#label}} must be a multiple of {{#multiple}}","number.negative":"{{#label}} must be a negative number","number.port":"{{#label}} must be a valid port","number.positive":"{{#label}} must be a positive number","number.precision":"{{#label}} must have no more than {{#limit}} decimal places","number.unsafe":"{{#label}} must be a safe number"}}),s.normalizeExponent=function(e){return e.replace(/E/,"e").replace(/\.(\d*[1-9])?0+e/,".$1e").replace(/\.e/,"e").replace(/e\+/,"e").replace(/^\+/,"").replace(/^(-?)0+([1-9])/,"$1$2")},s.normalizeDecimal=function(e){return(e=e.replace(/^\+/,"").replace(/\.0*$/,"").replace(/^(-?)\.([^\.]*)$/,"$10.$2").replace(/^(-?)0+([0-9])/,"$1$2")).includes(".")&&e.endsWith("0")&&(e=e.replace(/0+$/,"")),"-0"===e?"0":e}},8966:(e,t,n)=>{const r=n(7824);e.exports=r.extend({type:"object",cast:{map:{from:e=>e&&"object"==typeof e,to:(e,t)=>new Map(Object.entries(e))}}})},7417:(e,t,n)=>{function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t"string"!=typeof e?{value:e,errors:t("string.base")}:""===e?{value:e,errors:t("string.empty")}:void 0,rules:{alphanum:{method(){return this.$_addRule("alphanum")},validate:(e,t)=>/^[a-zA-Z0-9]+$/.test(e)?e:t.error("string.alphanum")},base64:{method(e={}){return f.assertOptions(e,["paddingRequired","urlSafe"]),e=o({urlSafe:!1,paddingRequired:!0},e),s("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),s("boolean"==typeof e.urlSafe,"urlSafe must be boolean"),this.$_addRule({name:"base64",args:{options:e}})},validate:(e,t,{options:n})=>m.base64Regex[n.paddingRequired][n.urlSafe].test(e)?e:t.error("string.base64")},case:{method(e){return s(["lower","upper"].includes(e),"Invalid case:",e),this.$_addRule({name:"case",args:{direction:e}})},validate:(e,t,{direction:n})=>"lower"===n&&e===e.toLocaleLowerCase()||"upper"===n&&e===e.toLocaleUpperCase()?e:t.error("string.".concat(n,"case")),convert:!0},creditCard:{method(){return this.$_addRule("creditCard")},validate(e,t){let n=e.length,r=0,o=1;for(;n--;){const t=e.charAt(n)*o;r+=t-9*(t>9),o^=3}return r>0&&r%10==0?e:t.error("string.creditCard")}},dataUri:{method(e={}){return f.assertOptions(e,["paddingRequired"]),e=o({paddingRequired:!0},e),s("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),this.$_addRule({name:"dataUri",args:{options:e}})},validate(e,t,{options:n}){const r=e.match(m.dataUriRegex);if(r){if(!r[2])return e;if("base64"!==r[2])return e;if(m.base64Regex[n.paddingRequired].false.test(r[3]))return e}return t.error("string.dataUri")}},domain:{method(e){e&&f.assertOptions(e,["allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const t=m.addressOptions(e);return this.$_addRule({name:"domain",args:{options:e},address:t})},validate:(e,t,n,{address:r})=>a.isValid(e,r)?e:t.error("string.domain")},email:{method(e={}){f.assertOptions(e,["allowUnicode","ignoreLength","maxDomainSegments","minDomainSegments","multiple","separator","tlds"]),s(void 0===e.multiple||"boolean"==typeof e.multiple,"multiple option must be an boolean");const t=m.addressOptions(e),n=new RegExp("\\s*[".concat(e.separator?u(e.separator):",","]\\s*"));return this.$_addRule({name:"email",args:{options:e},regex:n,address:t})},validate(e,t,{options:n},{regex:r,address:o}){const i=n.multiple?e.split(r):[e],s=[];for(const a of i)l.isValid(a,o)||s.push(a);return s.length?t.error("string.email",{value:e,invalids:s}):e}},guid:{alias:"uuid",method(e={}){f.assertOptions(e,["version","separator"]);let t="";if(e.version){const n=[].concat(e.version);s(n.length>=1,"version must have at least 1 valid version specified");const r=new Set;for(let e=0;em.hexRegex.test(e)?n.byteAligned&&e.length%2!=0?t.error("string.hexAlign"):e:t.error("string.hex")},hostname:{method(){return this.$_addRule("hostname")},validate:(e,t)=>a.isValid(e,{minDomainSegments:1})||m.ipRegex.test(e)?e:t.error("string.hostname")},insensitive:{method(){return this.$_setFlag("insensitive",!0)}},ip:{method(e={}){f.assertOptions(e,["cidr","version"]);const{cidr:t,versions:n,regex:r}=c.regex(e),o=e.version?n:void 0;return this.$_addRule({name:"ip",args:{options:{cidr:t,version:o}},regex:r})},validate:(e,t,{options:n},{regex:r})=>r.test(e)?e:n.version?t.error("string.ipVersion",{value:e,cidr:n.cidr,version:n.version}):t.error("string.ip",{value:e,cidr:n.cidr})},isoDate:{method(){return this.$_addRule("isoDate")},validate:(e,{error:t})=>m.isoDate(e)?e:t("string.isoDate")},isoDuration:{method(){return this.$_addRule("isoDuration")},validate:(e,t)=>m.isoDurationRegex.test(e)?e:t.error("string.isoDuration")},length:{method(e,t){return m.length(this,"length",e,"=",t)},validate(e,t,{limit:n,encoding:r},{name:o,operator:i,args:s}){const a=!r&&e.length;return f.compare(a,n,i)?e:t.error("string."+o,{limit:s.limit,value:e,encoding:r})},args:[{name:"limit",ref:!0,assert:f.limit,message:"must be a positive integer"},"encoding"]},lowercase:{method(){return this.case("lower")}},max:{method(e,t){return m.length(this,"max",e,"<=",t)},args:["limit","encoding"]},min:{method(e,t){return m.length(this,"min",e,">=",t)},args:["limit","encoding"]},normalize:{method(e="NFC"){return s(m.normalizationForms.includes(e),"normalization form must be one of "+m.normalizationForms.join(", ")),this.$_addRule({name:"normalize",args:{form:e}})},validate:(e,{error:t},{form:n})=>e===e.normalize(n)?e:t("string.normalize",{value:e,form:n}),convert:!0},pattern:{alias:"regex",method(e,t={}){s(e instanceof RegExp,"regex must be a RegExp"),s(!e.flags.includes("g")&&!e.flags.includes("y"),"regex should not use global or sticky mode"),"string"==typeof t&&(t={name:t}),f.assertOptions(t,["invert","name"]);const n=["string.pattern",t.invert?".invert":"",t.name?".name":".base"].join("");return this.$_addRule({name:"pattern",args:{regex:e,options:t},errorCode:n})},validate:(e,t,{regex:n,options:r},{errorCode:o})=>n.test(e)^r.invert?e:t.error(o,{name:r.name,regex:n,value:e}),args:["regex","options"],multi:!0},replace:{method(e,t){"string"==typeof e&&(e=new RegExp(u(e),"g")),s(e instanceof RegExp,"pattern must be a RegExp"),s("string"==typeof t,"replacement must be a String");const n=this.clone();return n.$_terms.replacements||(n.$_terms.replacements=[]),n.$_terms.replacements.push({pattern:e,replacement:t}),n}},token:{method(){return this.$_addRule("token")},validate:(e,t)=>/^\w+$/.test(e)?e:t.error("string.token")},trim:{method(e=!0){return s("boolean"==typeof e,"enabled must be a boolean"),this.$_addRule({name:"trim",args:{enabled:e}})},validate:(e,t,{enabled:n})=>n&&e!==e.trim()?t.error("string.trim"):e,convert:!0},truncate:{method(e=!0){return s("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("truncate",e)}},uppercase:{method(){return this.case("upper")}},uri:{method(e={}){f.assertOptions(e,["allowRelative","allowQuerySquareBrackets","domain","relativeOnly","scheme"]),e.domain&&f.assertOptions(e.domain,["allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const{regex:t,scheme:n}=p.regex(e),r=e.domain?m.addressOptions(e.domain):null;return this.$_addRule({name:"uri",args:{options:e},regex:t,domain:r,scheme:n})},validate(e,t,{options:n},{regex:r,domain:o,scheme:i}){if(["http:/","https:/"].includes(e))return t.error("string.uri");const s=r.exec(e);if(s){const r=s[1]||s[2];return!o||n.allowRelative&&!r||a.isValid(r,o)?e:t.error("string.domain",{value:r})}return n.relativeOnly?t.error("string.uriRelativeOnly"):n.scheme?t.error("string.uriCustomScheme",{scheme:i,value:e}):t.error("string.uri")}}},manifest:{build(e,t){if(t.replacements)for(const{pattern:n,replacement:r}of t.replacements)e=e.replace(n,r);return e}},messages:{"string.alphanum":"{{#label}} must only contain alpha-numeric characters","string.base":"{{#label}} must be a string","string.base64":"{{#label}} must be a valid base64 string","string.creditCard":"{{#label}} must be a credit card","string.dataUri":"{{#label}} must be a valid dataUri string","string.domain":"{{#label}} must contain a valid domain name","string.email":"{{#label}} must be a valid email","string.empty":"{{#label}} is not allowed to be empty","string.guid":"{{#label}} must be a valid GUID","string.hex":"{{#label}} must only contain hexadecimal characters","string.hexAlign":"{{#label}} hex decoded representation must be byte aligned","string.hostname":"{{#label}} must be a valid hostname","string.ip":"{{#label}} must be a valid ip address with a {{#cidr}} CIDR","string.ipVersion":"{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR","string.isoDate":"{{#label}} must be in iso format","string.isoDuration":"{{#label}} must be a valid ISO 8601 duration","string.length":"{{#label}} length must be {{#limit}} characters long","string.lowercase":"{{#label}} must only contain lowercase characters","string.max":"{{#label}} length must be less than or equal to {{#limit}} characters long","string.min":"{{#label}} length must be at least {{#limit}} characters long","string.normalize":"{{#label}} must be unicode normalized in the {{#form}} form","string.token":"{{#label}} must only contain alpha-numeric and underscore characters","string.pattern.base":"{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}","string.pattern.name":"{{#label}} with value {:[.]} fails to match the {{#name}} pattern","string.pattern.invert.base":"{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}","string.pattern.invert.name":"{{#label}} with value {:[.]} matches the inverted {{#name}} pattern","string.trim":"{{#label}} must not have leading or trailing whitespace","string.uri":"{{#label}} must be a valid uri","string.uriCustomScheme":"{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern","string.uriRelativeOnly":"{{#label}} must be a valid relative uri","string.uppercase":"{{#label}} must only contain uppercase characters"}}),m.addressOptions=function(e){if(!e)return e;if(s(void 0===e.minDomainSegments||Number.isSafeInteger(e.minDomainSegments)&&e.minDomainSegments>0,"minDomainSegments must be a positive integer"),s(void 0===e.maxDomainSegments||Number.isSafeInteger(e.maxDomainSegments)&&e.maxDomainSegments>0,"maxDomainSegments must be a positive integer"),!1===e.tlds)return e;if(!0===e.tlds||void 0===e.tlds)return s(m.tlds,"Built-in TLD list disabled"),Object.assign({},e,m.tlds);s("object"==typeof e.tlds,"tlds must be true, false, or an object");const t=e.tlds.deny;if(t)return Array.isArray(t)&&(e=Object.assign({},e,{tlds:{deny:new Set(t)}})),s(e.tlds.deny instanceof Set,"tlds.deny must be an array, Set, or boolean"),s(!e.tlds.allow,"Cannot specify both tlds.allow and tlds.deny lists"),m.validateTlds(e.tlds.deny,"tlds.deny"),e;const n=e.tlds.allow;return n?!0===n?(s(m.tlds,"Built-in TLD list disabled"),Object.assign({},e,m.tlds)):(Array.isArray(n)&&(e=Object.assign({},e,{tlds:{allow:new Set(n)}})),s(e.tlds.allow instanceof Set,"tlds.allow must be an array, Set, or boolean"),m.validateTlds(e.tlds.allow,"tlds.allow"),e):e},m.validateTlds=function(e,t){for(const n of e)s(a.isValid(n,{minDomainSegments:1,maxDomainSegments:1}),"".concat(t," must contain valid top level domain names"))},m.isoDate=function(e){if(!f.isIsoDate(e))return null;/.*T.*[+-]\d\d$/.test(e)&&(e+="00");const t=new Date(e);return isNaN(t.getTime())?null:t.toISOString()},m.length=function(e,t,n,r,o){return s(!o||!1,"Invalid encoding:",o),e.$_addRule({name:t,method:"length",args:{limit:n,encoding:o},operator:r})}},8826:(e,t,n)=>{const r=n(375),o=n(8068),i={};i.Map=class extends Map{slice(){return new i.Map(this)}},e.exports=o.extend({type:"symbol",terms:{map:{init:new i.Map}},coerce:{method(e,{schema:t,error:n}){const r=t.$_terms.map.get(e);return r&&(e=r),t._flags.only&&"symbol"!=typeof e?{value:e,errors:n("symbol.map",{map:t.$_terms.map})}:{value:e}}},validate(e,{error:t}){if("symbol"!=typeof e)return{value:e,errors:t("symbol.base")}},rules:{map:{method(e){e&&!e[Symbol.iterator]&&"object"==typeof e&&(e=Object.entries(e)),r(e&&e[Symbol.iterator],"Iterable must be an iterable or object");const t=this.clone(),n=[];for(const o of e){r(o&&o[Symbol.iterator],"Entry must be an iterable");const[e,i]=o;r("object"!=typeof e&&"function"!=typeof e&&"symbol"!=typeof e,"Key must not be of type object, function, or Symbol"),r("symbol"==typeof i,"Value must be a Symbol"),t.$_terms.map.set(e,i),n.push(i)}return t.valid(...n)}}},manifest:{build:(e,t)=>(t.map&&(e=e.map(t.map)),e)},messages:{"symbol.base":"{{#label}} must be a symbol","symbol.map":"{{#label}} must be one of {{#map}}"}})},8863:(e,t,n)=>{const r=n(375),o=n(8571),i=n(738),s=n(9621),a=n(8160),l=n(6354),c=n(493),u={result:Symbol("result")};t.entry=function(e,t,n){let o=a.defaults;n&&(r(void 0===n.warnings,"Cannot override warnings preference in synchronous validation"),r(void 0===n.artifacts,"Cannot override artifacts preference in synchronous validation"),o=a.preferences(a.defaults,n));const i=u.entry(e,t,o);r(!i.mainstay.externals.length,"Schema with external rules must use validateAsync()");const s={value:i.value};return i.error&&(s.error=i.error),i.mainstay.warnings.length&&(s.warning=l.details(i.mainstay.warnings)),i.mainstay.debug&&(s.debug=i.mainstay.debug),i.mainstay.artifacts&&(s.artifacts=i.mainstay.artifacts),s},t.entryAsync=async function(e,t,n){let r=a.defaults;n&&(r=a.preferences(a.defaults,n));const o=u.entry(e,t,r),i=o.mainstay;if(o.error)throw i.debug&&(o.error.debug=i.debug),o.error;if(i.externals.length){let e=o.value;for(const{method:t,path:r,label:o}of i.externals){let i,a,l=e;r.length&&(i=r[r.length-1],a=s(e,r.slice(0,-1)),l=a[i]);try{const r=await t(l,{prefs:n});if(void 0===r||r===l)continue;a?a[i]=r:e=r}catch(d){throw d.message+=" (".concat(o,")"),d}}o.value=e}if(!r.warnings&&!r.debug&&!r.artifacts)return o.value;const c={value:o.value};return i.warnings.length&&(c.warning=l.details(i.warnings)),i.debug&&(c.debug=i.debug),i.artifacts&&(c.artifacts=i.artifacts),c},u.entry=function(e,n,r){const{tracer:o,cleanup:i}=u.tracer(n,r),s={externals:[],warnings:[],tracer:o,debug:r.debug?[]:null,links:n._ids._schemaChain?new Map:null},a=n._ids._schemaChain?[{schema:n}]:null,d=new c([],[],{mainstay:s,schemas:a}),p=t.validate(e,n,d,r);i&&n.$_root.untrace();const h=l.process(p.errors,e,r);return{value:p.value,error:h,mainstay:s}},u.tracer=function(e,t){return e.$_root._tracer?{tracer:e.$_root._tracer._register(e)}:t.debug?(r(e.$_root.trace,"Debug mode not supported"),{tracer:e.$_root.trace()._register(e),cleanup:!0}):{tracer:u.ignore}},t.validate=function(e,t,n,r,o={}){if(t.$_terms.whens&&(t=t._generate(e,n,r).schema),t._preferences&&(r=u.prefs(t,r)),t._cache&&r.cache){const r=t._cache.get(e);if(n.mainstay.tracer.debug(n,"validate","cached",!!r),r)return r}const i=(o,i,s)=>t.$_createError(o,e,i,s||n,r),s={original:e,prefs:r,schema:t,state:n,error:i,errorsArray:u.errorsArray,warn:(e,t,r)=>n.mainstay.warnings.push(i(e,t,r)),message:(o,i)=>t.$_createError("custom",e,i,n,r,{messages:o})};n.mainstay.tracer.entry(t,n);const l=t._definition;if(l.prepare&&void 0!==e&&r.convert){const t=l.prepare(e,s);if(t){if(n.mainstay.tracer.value(n,"prepare",e,t.value),t.errors)return u.finalize(t.value,[].concat(t.errors),s);e=t.value}}if(l.coerce&&void 0!==e&&r.convert&&(!l.coerce.from||l.coerce.from.includes(typeof e))){const t=l.coerce.method(e,s);if(t){if(n.mainstay.tracer.value(n,"coerced",e,t.value),t.errors)return u.finalize(t.value,[].concat(t.errors),s);e=t.value}}const c=t._flags.empty;c&&c.$_match(u.trim(e,t),n.nest(c),a.defaults)&&(n.mainstay.tracer.value(n,"empty",e,void 0),e=void 0);const d=o.presence||t._flags.presence||(t._flags._endedSwitch?null:r.presence);if(void 0===e){if("forbidden"===d)return u.finalize(e,null,s);if("required"===d)return u.finalize(e,[t.$_createError("any.required",e,null,n,r)],s);if("optional"===d){if(t._flags.default!==a.symbols.deepDefault)return u.finalize(e,null,s);n.mainstay.tracer.value(n,"default",e,{}),e={}}}else if("forbidden"===d)return u.finalize(e,[t.$_createError("any.unknown",e,null,n,r)],s);const p=[];if(t._valids){const o=t._valids.get(e,n,r,t._flags.insensitive);if(o)return r.convert&&(n.mainstay.tracer.value(n,"valids",e,o.value),e=o.value),n.mainstay.tracer.filter(t,n,"valid",o),u.finalize(e,null,s);if(t._flags.only){const o=t.$_createError("any.only",e,{valids:t._valids.values({display:!0})},n,r);if(r.abortEarly)return u.finalize(e,[o],s);p.push(o)}}if(t._invalids){const o=t._invalids.get(e,n,r,t._flags.insensitive);if(o){n.mainstay.tracer.filter(t,n,"invalid",o);const i=t.$_createError("any.invalid",e,{invalids:t._invalids.values({display:!0})},n,r);if(r.abortEarly)return u.finalize(e,[i],s);p.push(i)}}if(l.validate){const t=l.validate(e,s);if(t&&(n.mainstay.tracer.value(n,"base",e,t.value),e=t.value,t.errors)){if(!Array.isArray(t.errors))return p.push(t.errors),u.finalize(e,p,s);if(t.errors.length)return p.push(...t.errors),u.finalize(e,p,s)}}return t._rules.length?u.rules(e,p,s):u.finalize(e,p,s)},u.rules=function(e,t,n){const{schema:r,state:o,prefs:i}=n;for(const s of r._rules){const l=r._definition.rules[s.method];if(l.convert&&i.convert){o.mainstay.tracer.log(r,o,"rule",s.name,"full");continue}let c,d=s.args;if(s._resolve.length){d=Object.assign({},d);for(const t of s._resolve){const n=l.argsByName.get(t),s=d[t].resolve(e,o,i),u=n.normalize?n.normalize(s):s,p=a.validateArg(u,null,n);if(p){c=r.$_createError("any.ref",s,{arg:t,ref:d[t],reason:p},o,i);break}d[t]=u}}c=c||l.validate(e,n,d,s);const p=u.rule(c,s);if(p.errors){if(o.mainstay.tracer.log(r,o,"rule",s.name,"error"),s.warn){o.mainstay.warnings.push(...p.errors);continue}if(i.abortEarly)return u.finalize(e,p.errors,n);t.push(...p.errors)}else o.mainstay.tracer.log(r,o,"rule",s.name,"pass"),o.mainstay.tracer.value(o,"rule",e,p.value,s.name),e=p.value}return u.finalize(e,t,n)},u.rule=function(e,t){return e instanceof l.Report?(u.error(e,t),{errors:[e],value:null}):Array.isArray(e)&&e[a.symbols.errors]?(e.forEach((e=>u.error(e,t))),{errors:e,value:null}):{errors:null,value:e}},u.error=function(e,t){return t.message&&e._setTemplate(t.message),e},u.finalize=function(e,t,n){t=t||[];const{schema:o,state:i,prefs:s}=n;if(t.length){const r=u.default("failover",void 0,t,n);void 0!==r&&(i.mainstay.tracer.value(i,"failover",e,r),e=r,t=[])}if(t.length&&o._flags.error)if("function"==typeof o._flags.error){t=o._flags.error(t),Array.isArray(t)||(t=[t]);for(const e of t)r(e instanceof Error||e instanceof l.Report,"error() must return an Error object")}else t=[o._flags.error];if(void 0===e){const r=u.default("default",e,t,n);i.mainstay.tracer.value(i,"default",e,r),e=r}if(o._flags.cast&&void 0!==e){const t=o._definition.cast[o._flags.cast];if(t.from(e)){const r=t.to(e,n);i.mainstay.tracer.value(i,"cast",e,r,o._flags.cast),e=r}}if(o.$_terms.externals&&s.externals&&!1!==s._externals)for(const{method:r}of o.$_terms.externals)i.mainstay.externals.push({method:r,path:i.path,label:l.label(o._flags,i,s)});const a={value:e,errors:t.length?t:null};return o._flags.result&&(a.value="strip"===o._flags.result?void 0:n.original,i.mainstay.tracer.value(i,o._flags.result,e,a.value),i.shadow(e,o._flags.result)),o._cache&&!1!==s.cache&&!o._refs.length&&o._cache.set(n.original,a),void 0===e||a.errors||void 0===o._flags.artifact||(i.mainstay.artifacts=i.mainstay.artifacts||new Map,i.mainstay.artifacts.has(o._flags.artifact)||i.mainstay.artifacts.set(o._flags.artifact,[]),i.mainstay.artifacts.get(o._flags.artifact).push(i.path)),a},u.prefs=function(e,t){const n=t===a.defaults;return n&&e._preferences[a.symbols.prefs]?e._preferences[a.symbols.prefs]:(t=a.preferences(t,e._preferences),n&&(e._preferences[a.symbols.prefs]=t),t)},u.default=function(e,t,n,r){const{schema:i,state:s,prefs:l}=r,c=i._flags[e];if(l.noDefaults||void 0===c)return t;if(s.mainstay.tracer.log(i,s,"rule",e,"full"),!c)return c;if("function"==typeof c){const t=c.length?[o(s.ancestors[0]),r]:[];try{return c(...t)}catch(u){return void n.push(i.$_createError("any.".concat(e),null,{error:u},s,l))}}return"object"!=typeof c?c:c[a.symbols.literal]?c.literal:a.isResolvable(c)?c.resolve(t,s,l):o(c)},u.trim=function(e,t){if("string"!=typeof e)return e;const n=t.$_getRule("trim");return n&&n.args.enabled?e.trim():e},u.ignore={active:!1,debug:i,entry:i,filter:i,log:i,resolve:i,value:i},u.errorsArray=function(){const e=[];return e[a.symbols.errors]=!0,e}},2036:(e,t,n)=>{const r=n(375),o=n(9474),i=n(8160),s={};e.exports=s.Values=class{constructor(e,t){this._values=new Set(e),this._refs=new Set(t),this._lowercase=s.lowercases(e),this._override=!1}get length(){return this._values.size+this._refs.size}add(e,t){i.isResolvable(e)?this._refs.has(e)||(this._refs.add(e),t&&t.register(e)):this.has(e,null,null,!1)||(this._values.add(e),"string"==typeof e&&this._lowercase.set(e.toLowerCase(),e))}static merge(e,t,n){if(e=e||new s.Values,t){if(t._override)return t.clone();for(const n of[...t._values,...t._refs])e.add(n)}if(n)for(const r of[...n._values,...n._refs])e.remove(r);return e.length?e:null}remove(e){i.isResolvable(e)?this._refs.delete(e):(this._values.delete(e),"string"==typeof e&&this._lowercase.delete(e.toLowerCase()))}has(e,t,n,r){return!!this.get(e,t,n,r)}get(e,t,n,r){if(!this.length)return!1;if(this._values.has(e))return{value:e};if("string"==typeof e&&e&&r){const t=this._lowercase.get(e.toLowerCase());if(t)return{value:t}}if(!this._refs.size&&"object"!=typeof e)return!1;if("object"==typeof e)for(const i of this._values)if(o(i,e))return{value:i};if(t)for(const i of this._refs){const s=i.resolve(e,t,n,null,{in:!0});if(void 0===s)continue;const a=i.in&&"object"==typeof s?Array.isArray(s)?s:Object.keys(s):[s];for(const t of a)if(typeof t==typeof e)if(r&&e&&"string"==typeof e){if(t.toLowerCase()===e.toLowerCase())return{value:t,ref:i}}else if(o(t,e))return{value:t,ref:i}}return!1}override(){this._override=!0}values(e){if(e&&e.display){const e=[];for(const t of[...this._values,...this._refs])void 0!==t&&e.push(t);return e}return Array.from([...this._values,...this._refs])}clone(){const e=new s.Values(this._values,this._refs);return e._override=this._override,e}concat(e){r(!e._override,"Cannot concat override set of values");const t=new s.Values([...this._values,...e._values],[...this._refs,...e._refs]);return t._override=this._override,t}describe(){const e=[];this._override&&e.push({override:!0});for(const t of this._values.values())e.push(t&&"object"==typeof t?{value:t}:t);for(const t of this._refs.values())e.push(t.describe());return e}},s.Values.prototype[i.symbols.values]=!0,s.Values.prototype.slice=s.Values.prototype.clone,s.lowercases=function(e){const t=new Map;if(e)for(const n of e)"string"==typeof n&&t.set(n.toLowerCase(),n);return t}},978:(e,t,n)=>{const r=n(375),o=n(8571),i=n(1687),s=n(9621),a={};e.exports=function(e,t,n={}){if(r(e&&"object"==typeof e,"Invalid defaults value: must be an object"),r(!t||!0===t||"object"==typeof t,"Invalid source value: must be true, falsy or an object"),r("object"==typeof n,"Invalid options: must be an object"),!t)return null;if(n.shallow)return a.applyToDefaultsWithShallow(e,t,n);const s=o(e);if(!0===t)return s;const l=void 0!==n.nullOverride&&n.nullOverride;return i(s,t,{nullOverride:l,mergeArrays:!1})},a.applyToDefaultsWithShallow=function(e,t,n){const l=n.shallow;r(Array.isArray(l),"Invalid keys");const c=new Map,u=!0===t?null:new Set;for(let r of l){r=Array.isArray(r)?r:r.split(".");const n=s(e,r);n&&"object"==typeof n?c.set(n,u&&s(t,r)||n):u&&u.add(r)}const d=o(e,{},c);if(!u)return d;for(const r of u)a.reachCopy(d,t,r);const p=void 0!==n.nullOverride&&n.nullOverride;return i(d,t,{nullOverride:p,mergeArrays:!1})},a.reachCopy=function(e,t,n){for(const i of n){if(!(i in t))return;const e=t[i];if("object"!=typeof e||null===e)return;t=e}const r=t;let o=e;for(let i=0;i{const r=n(7916);e.exports=function(e,...t){if(!e){if(1===t.length&&t[0]instanceof Error)throw t[0];throw new r(t)}}},8571:(e,t,n)=>{const r=n(9621),o=n(4277),i=n(7043),s={needsProtoHack:new Set([o.set,o.map,o.weakSet,o.weakMap])};e.exports=s.clone=function(e,t={},n=null){if("object"!=typeof e||null===e)return e;let r=s.clone,a=n;if(t.shallow){if(!0!==t.shallow)return s.cloneWithShallow(e,t);r=e=>e}else if(a){const t=a.get(e);if(t)return t}else a=new Map;const l=o.getInternalProto(e);if(l===o.buffer)return!1;if(l===o.date)return new Date(e.getTime());if(l===o.regex)return new RegExp(e);const c=s.base(e,l,t);if(c===e)return e;if(a&&a.set(e,c),l===o.set)for(const o of e)c.add(r(o,t,a));else if(l===o.map)for(const[o,i]of e)c.set(o,r(i,t,a));const u=i.keys(e,t);for(const i of u){if("__proto__"===i)continue;if(l===o.array&&"length"===i){c.length=e.length;continue}const n=Object.getOwnPropertyDescriptor(e,i);n?n.get||n.set?Object.defineProperty(c,i,n):n.enumerable?c[i]=r(e[i],t,a):Object.defineProperty(c,i,{enumerable:!1,writable:!0,configurable:!0,value:r(e[i],t,a)}):Object.defineProperty(c,i,{enumerable:!0,writable:!0,configurable:!0,value:r(e[i],t,a)})}return c},s.cloneWithShallow=function(e,t){const n=t.shallow;(t=Object.assign({},t)).shallow=!1;const o=new Map;for(const i of n){const t=r(e,i);"object"!=typeof t&&"function"!=typeof t||o.set(t,t)}return s.clone(e,t,o)},s.base=function(e,t,n){if(!1===n.prototype)return s.needsProtoHack.has(t)?new t.constructor:t===o.array?[]:{};const r=Object.getPrototypeOf(e);if(r&&r.isImmutable)return e;if(t===o.array){const e=[];return r!==t&&Object.setPrototypeOf(e,r),e}if(s.needsProtoHack.has(t)){const e=new r.constructor;return r!==t&&Object.setPrototypeOf(e,r),e}return Object.create(r)}},9474:(e,t,n)=>{const r=n(4277),o={mismatched:null};e.exports=function(e,t,n){return n=Object.assign({prototype:!0},n),!!o.isDeepEqual(e,t,n,[])},o.isDeepEqual=function(e,t,n,i){if(e===t)return 0!==e||1/e==1/t;const s=typeof e;if(s!==typeof t)return!1;if(null===e||null===t)return!1;if("function"===s){if(!n.deepFunction||e.toString()!==t.toString())return!1}else if("object"!==s)return e!=e&&t!=t;const a=o.getSharedType(e,t,!!n.prototype);switch(a){case r.buffer:return!1;case r.promise:return e===t;case r.regex:return e.toString()===t.toString();case o.mismatched:return!1}for(let r=i.length-1;r>=0;--r)if(i[r].isSame(e,t))return!0;i.push(new o.SeenEntry(e,t));try{return!!o.isDeepEqualObj(a,e,t,n,i)}finally{i.pop()}},o.getSharedType=function(e,t,n){if(n)return Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?o.mismatched:r.getInternalProto(e);const i=r.getInternalProto(e);return i!==r.getInternalProto(t)?o.mismatched:i},o.valueOf=function(e){const t=e.valueOf;if(void 0===t)return e;try{return t.call(e)}catch(n){return n}},o.hasOwnEnumerableProperty=function(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)},o.isSetSimpleEqual=function(e,t){for(const n of Set.prototype.values.call(e))if(!Set.prototype.has.call(t,n))return!1;return!0},o.isDeepEqualObj=function(e,t,n,i,s){const{isDeepEqual:a,valueOf:l,hasOwnEnumerableProperty:c}=o,{keys:u,getOwnPropertySymbols:d}=Object;if(e===r.array){if(!i.part){if(t.length!==n.length)return!1;for(let e=0;e{const r=n(8761);e.exports=class extends Error{constructor(e){super(e.filter((e=>""!==e)).map((e=>"string"==typeof e?e:e instanceof Error?e.message:r(e))).join(" ")||"Unknown error"),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t.assert)}}},5277:e=>{const t={};e.exports=function(e){if(!e)return"";let n="";for(let r=0;r=256)return"&#"+e+";";const r=e.toString(16).padStart(2,"0");return"&#x".concat(r,";")},t.isSafe=function(e){return void 0!==t.safeCharCodes[e]},t.namedHtml={38:"&",60:"<",62:">",34:""",160:" ",162:"¢",163:"£",164:"¤",169:"©",174:"®"},t.safeCharCodes=function(){const e={};for(let t=32;t<123;++t)(t>=97||t>=65&&t<=90||t>=48&&t<=57||32===t||46===t||44===t||45===t||58===t||95===t)&&(e[t]=null);return e}()},6064:e=>{e.exports=function(e){return e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}},738:e=>{e.exports=function(){}},1687:(e,t,n)=>{const r=n(375),o=n(8571),i=n(7043),s={};e.exports=s.merge=function(e,t,n){if(r(e&&"object"==typeof e,"Invalid target value: must be an object"),r(null==t||"object"==typeof t,"Invalid source value: must be null, undefined, or an object"),!t)return e;if(n=Object.assign({nullOverride:!0,mergeArrays:!0},n),Array.isArray(t)){r(Array.isArray(e),"Cannot merge array onto an object"),n.mergeArrays||(e.length=0);for(let r=0;r{const r=n(375),o={};e.exports=function(e,t,n){if(!1===t||null==t)return e;"string"==typeof(n=n||{})&&(n={separator:n});const i=Array.isArray(t);r(!i||!n.separator,"Separator option no valid for array-based chain");const s=i?t:t.split(n.separator||".");let a=e;for(let l=0;l{e.exports=function(...e){try{return JSON.stringify.apply(null,e)}catch(t){return"[Cannot display object: "+t.message+"]"}}},4277:(e,t)=>{const n={};t=e.exports={array:Array.prototype,buffer:!1,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},n.typeMap=new Map([["[object Error]",t.error],["[object Map]",t.map],["[object Promise]",t.promise],["[object Set]",t.set],["[object WeakMap]",t.weakMap],["[object WeakSet]",t.weakSet]]),t.getInternalProto=function(e){if(Array.isArray(e))return t.array;if(e instanceof Date)return t.date;if(e instanceof RegExp)return t.regex;if(e instanceof Error)return t.error;const r=Object.prototype.toString.call(e);return n.typeMap.get(r)||t.generic}},7043:(e,t)=>{t.keys=function(e,t={}){return!1!==t.symbols?Reflect.ownKeys(e):Object.getOwnPropertyNames(e)}},3652:(e,t,n)=>{const r=n(375),o={};t.Sorter=class{constructor(){this._items=[],this.nodes=[]}add(e,t){const n=[].concat((t=t||{}).before||[]),o=[].concat(t.after||[]),i=t.group||"?",s=t.sort||0;r(!n.includes(i),"Item cannot come before itself: ".concat(i)),r(!n.includes("?"),"Item cannot come before unassociated items"),r(!o.includes(i),"Item cannot come after itself: ".concat(i)),r(!o.includes("?"),"Item cannot come after unassociated items"),Array.isArray(e)||(e=[e]);for(const r of e){const e={seq:this._items.length,sort:s,before:n,after:o,group:i,node:r};this._items.push(e)}if(!t.manual){const e=this._sort();r(e,"item","?"!==i?"added into group ".concat(i):"","created a dependencies error")}return this.nodes}merge(e){Array.isArray(e)||(e=[e]);for(const n of e)if(n)for(const e of n._items)this._items.push(Object.assign({},e));this._items.sort(o.mergeSort);for(let n=0;ne.sort===t.sort?0:e.sort{const r=n(443),o=n(2178),i={minDomainSegments:2,nonAsciiRx:/[^\x00-\x7f]/,domainControlRx:/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,tldSegmentRx:/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,domainSegmentRx:/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL:r.URL||URL};t.analyze=function(e,t={}){if("string"!=typeof e)throw new Error("Invalid input: domain must be a string");if(!e)return o.code("DOMAIN_NON_EMPTY_STRING");if(e.length>256)return o.code("DOMAIN_TOO_LONG");if(i.nonAsciiRx.test(e)){if(!1===t.allowUnicode)return o.code("DOMAIN_INVALID_UNICODE_CHARS");e=e.normalize("NFC")}if(i.domainControlRx.test(e))return o.code("DOMAIN_INVALID_CHARS");e=i.punycode(e);const n=t.minDomainSegments||i.minDomainSegments,r=e.split(".");if(r.lengtht.maxDomainSegments)return o.code("DOMAIN_SEGMENTS_COUNT_MAX");const s=t.tlds;if(s){const e=r[r.length-1].toLowerCase();if(s.deny&&s.deny.has(e)||s.allow&&!s.allow.has(e))return o.code("DOMAIN_FORBIDDEN_TLDS")}for(let a=0;a63)return o.code("DOMAIN_LONG_SEGMENT");if(a{const r=n(9848),o=n(5380),i=n(2178),s={nonAsciiRx:/[^\x00-\x7f]/,encoder:new(r.TextEncoder||TextEncoder)};t.analyze=function(e,t){return s.email(e,t)},t.isValid=function(e,t){return!s.email(e,t)},s.email=function(e,t={}){if("string"!=typeof e)throw new Error("Invalid input: email must be a string");if(!e)return i.code("EMPTY_STRING");const n=!s.nonAsciiRx.test(e);if(!n){if(!1===t.allowUnicode)return i.code("FORBIDDEN_UNICODE");e=e.normalize("NFC")}const r=e.split("@");if(2!==r.length)return r.length>2?i.code("MULTIPLE_AT_CHAR"):i.code("MISSING_AT_CHAR");const[a,l]=r;if(!a)return i.code("EMPTY_LOCAL");if(!t.ignoreLength){if(e.length>254)return i.code("ADDRESS_TOO_LONG");if(s.encoder.encode(a).length>64)return i.code("LOCAL_TOO_LONG")}return s.local(a,n)||o.analyze(l,t)},s.local=function(e,t){const n=e.split(".");for(const r of n){if(!r.length)return i.code("EMPTY_LOCAL_SEGMENT");if(t){if(!s.atextRx.test(r))return i.code("INVALID_LOCAL_CHARS")}else for(const e of r){if(s.atextRx.test(e))continue;const t=s.binary(e);if(!s.atomRx.test(t))return i.code("INVALID_LOCAL_CHARS")}}},s.binary=function(e){return Array.from(s.encoder.encode(e)).map((e=>String.fromCharCode(e))).join("")},s.atextRx=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,s.atomRx=new RegExp(["(?:[\\xc2-\\xdf][\\x80-\\xbf])","(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})","(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})"].join("|"))},2178:(e,t)=>{t.codes={EMPTY_STRING:"Address must be a non-empty string",FORBIDDEN_UNICODE:"Address contains forbidden Unicode characters",MULTIPLE_AT_CHAR:"Address cannot contain more than one @ character",MISSING_AT_CHAR:"Address must contain one @ character",EMPTY_LOCAL:"Address local part cannot be empty",ADDRESS_TOO_LONG:"Address too long",LOCAL_TOO_LONG:"Address local part too long",EMPTY_LOCAL_SEGMENT:"Address local part contains empty dot-separated segment",INVALID_LOCAL_CHARS:"Address local part contains invalid character",DOMAIN_NON_EMPTY_STRING:"Domain must be a non-empty string",DOMAIN_TOO_LONG:"Domain too long",DOMAIN_INVALID_UNICODE_CHARS:"Domain contains forbidden Unicode characters",DOMAIN_INVALID_CHARS:"Domain contains invalid character",DOMAIN_INVALID_TLDS_CHARS:"Domain contains invalid tld character",DOMAIN_SEGMENTS_COUNT:"Domain lacks the minimum required number of segments",DOMAIN_SEGMENTS_COUNT_MAX:"Domain contains too many segments",DOMAIN_FORBIDDEN_TLDS:"Domain uses forbidden TLD",DOMAIN_EMPTY_SEGMENT:"Domain contains empty dot-separated segment",DOMAIN_LONG_SEGMENT:"Domain contains dot-separated segment that is too long"},t.code=function(e){return{code:e,error:t.codes[e]}}},9959:(e,t,n)=>{const r=n(375),o=n(5752);t.regex=function(e={}){r(void 0===e.cidr||"string"==typeof e.cidr,"options.cidr must be a string");const t=e.cidr?e.cidr.toLowerCase():"optional";r(["required","optional","forbidden"].includes(t),"options.cidr must be one of required, optional, forbidden"),r(void 0===e.version||"string"==typeof e.version||Array.isArray(e.version),"options.version must be a string or an array of string");let n=e.version||["ipv4","ipv6","ipvfuture"];Array.isArray(n)||(n=[n]),r(n.length>=1,"options.version must have at least 1 version specified");for(let o=0;o{if("forbidden"===t)return o.ip[e];const n="\\/".concat("ipv4"===e?o.ip.v4Cidr:o.ip.v6Cidr);return"required"===t?"".concat(o.ip[e]).concat(n):"".concat(o.ip[e],"(?:").concat(n,")?")})),s="(?:".concat(i.join("|"),")"),a=new RegExp("^".concat(s,"$"));return{cidr:t,versions:n,regex:a,raw:s}}},5752:(e,t,n)=>{const r=n(375),o=n(6064),i={generate:function(){const e={},t="!\\$&'\\(\\)\\*\\+,;=",n="\\w-\\.~%\\dA-Fa-f"+t+":@",r="["+n+"]",o="(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";e.ipv4address="(?:"+o+"\\.){3}"+o;const i="[\\dA-Fa-f]{1,4}",s="(?:"+i+":"+i+"|"+e.ipv4address+")",a="(?:"+i+":){6}"+s,l="::(?:"+i+":){5}"+s,c="(?:"+i+")?::(?:"+i+":){4}"+s,u="(?:(?:"+i+":){0,1}"+i+")?::(?:"+i+":){3}"+s,d="(?:(?:"+i+":){0,2}"+i+")?::(?:"+i+":){2}"+s,p="(?:(?:"+i+":){0,3}"+i+")?::"+i+":"+s,h="(?:(?:"+i+":){0,4}"+i+")?::"+s;e.ipv4Cidr="(?:\\d|[1-2]\\d|3[0-2])",e.ipv6Cidr="(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])",e.ipv6address="(?:"+a+"|"+l+"|"+c+"|"+u+"|"+d+"|"+p+"|"+h+"|(?:(?:[\\dA-Fa-f]{1,4}:){0,5}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}|(?:(?:[\\dA-Fa-f]{1,4}:){0,6}[\\dA-Fa-f]{1,4})?::)",e.ipvFuture="v[\\dA-Fa-f]+\\.[\\w-\\.~"+t+":]+",e.scheme="[a-zA-Z][a-zA-Z\\d+-\\.]*",e.schemeRegex=new RegExp(e.scheme);const f="[\\w-\\.~%\\dA-Fa-f"+t+":]*",m="(?:\\[(?:"+e.ipv6address+"|"+e.ipvFuture+")\\]|"+e.ipv4address+"|[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=]{1,255})",g="(?:"+f+"@)?"+m+"(?::\\d*)?",y="(?:"+f+"@)?("+m+")(?::\\d*)?",b=r+"+",C="(?:\\/[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]*)*",x="\\/(?:"+b+C+")?",v=b+C,w="[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=@]+"+C;return e.hierPart="(?:(?:\\/\\/"+g+C+")|"+x+"|"+v+"|(?:\\/\\/\\/[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]*(?:\\/[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]*)*))",e.hierPartCapture="(?:(?:\\/\\/"+y+C+")|"+x+"|"+v+")",e.relativeRef="(?:(?:\\/\\/"+g+C+")|"+x+"|"+w+"|)",e.relativeRefCapture="(?:(?:\\/\\/"+y+C+")|"+x+"|"+w+"|)",e.query="["+n+"\\/\\?]*(?=#|$)",e.queryWithSquareBrackets="["+n+"\\[\\]\\/\\?]*(?=#|$)",e.fragment="["+n+"\\/\\?]*",e}};i.rfc3986=i.generate(),t.ip={v4Cidr:i.rfc3986.ipv4Cidr,v6Cidr:i.rfc3986.ipv6Cidr,ipv4:i.rfc3986.ipv4address,ipv6:i.rfc3986.ipv6address,ipvfuture:i.rfc3986.ipvFuture},i.createRegex=function(e){const t=i.rfc3986,n="(?:\\?"+(e.allowQuerySquareBrackets?t.queryWithSquareBrackets:t.query)+")?(?:#"+t.fragment+")?",s=e.domain?t.relativeRefCapture:t.relativeRef;if(e.relativeOnly)return i.wrap(s+n);let a="";if(e.scheme){r(e.scheme instanceof RegExp||"string"==typeof e.scheme||Array.isArray(e.scheme),"scheme must be a RegExp, String, or Array");const n=[].concat(e.scheme);r(n.length>=1,"scheme must have at least 1 scheme specified");const i=[];for(let e=0;e{const n={operators:["!","^","*","/","%","+","-","<","<=",">",">=","==","!=","&&","||","??"],operatorCharacters:["!","^","*","/","%","+","-","<","=",">","&","|","?"],operatorsOrder:[["^"],["*","/","%"],["+","-"],["<","<=",">",">="],["==","!="],["&&"],["||","??"]],operatorsPrefix:["!","n"],literals:{'"':'"',"`":"`","'":"'","[":"]"},numberRx:/^(?:[0-9]*\.?[0-9]*){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol("formula"),settings:Symbol("settings")};t.Parser=class{constructor(e,t={}){if(!t[n.settings]&&t.constants)for(const n in t.constants){const e=t.constants[n];if(null!==e&&!["boolean","number","string"].includes(typeof e))throw new Error("Formula constant ".concat(n," contains invalid ").concat(typeof e," value type"))}this.settings=t[n.settings]?t:Object.assign({[n.settings]:!0,constants:{},functions:{}},t),this.single=null,this._parts=null,this._parse(e)}_parse(e){let r=[],o="",i=0,s=!1;const a=e=>{if(i)throw new Error("Formula missing closing parenthesis");const a=r.length?r[r.length-1]:null;if(s||o||e){if(a&&"reference"===a.type&&")"===e)return a.type="function",a.value=this._subFormula(o,a.value),void(o="");if(")"===e){const e=new t.Parser(o,this.settings);r.push({type:"segment",value:e})}else if(s){if("]"===s)return r.push({type:"reference",value:o}),void(o="");r.push({type:"literal",value:o})}else if(n.operatorCharacters.includes(o))a&&"operator"===a.type&&n.operators.includes(a.value+o)?a.value+=o:r.push({type:"operator",value:o});else if(o.match(n.numberRx))r.push({type:"constant",value:parseFloat(o)});else if(void 0!==this.settings.constants[o])r.push({type:"constant",value:this.settings.constants[o]});else{if(!o.match(n.tokenRx))throw new Error("Formula contains invalid token: ".concat(o));r.push({type:"reference",value:o})}o=""}};for(const t of e)s?t===s?(a(),s=!1):o+=t:i?"("===t?(o+=t,++i):")"===t?(--i,i?o+=t:a(t)):o+=t:t in n.literals?s=n.literals[t]:"("===t?(a(),++i):n.operatorCharacters.includes(t)?(a(),o=t,a()):" "!==t?o+=t:a();a(),r=r.map(((e,t)=>"operator"!==e.type||"-"!==e.value||t&&"operator"!==r[t-1].type?e:{type:"operator",value:"n"}));let l=!1;for(const t of r){if("operator"===t.type){if(n.operatorsPrefix.includes(t.value))continue;if(!l)throw new Error("Formula contains an operator in invalid position");if(!n.operators.includes(t.value))throw new Error("Formula contains an unknown operator ".concat(t.value))}else if(l)throw new Error("Formula missing expected operator");l=!l}if(!l)throw new Error("Formula contains invalid trailing operator");1===r.length&&["reference","literal","constant"].includes(r[0].type)&&(this.single={type:"reference"===r[0].type?"reference":"value",value:r[0].value}),this._parts=r.map((e=>{if("operator"===e.type)return n.operatorsPrefix.includes(e.value)?e:e.value;if("reference"!==e.type)return e.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(e.value))throw new Error("Formula contains invalid reference ".concat(e.value));return this.settings.reference?this.settings.reference(e.value):n.reference(e.value)}))}_subFormula(e,r){const o=this.settings.functions[r];if("function"!=typeof o)throw new Error("Formula contains unknown function ".concat(r));let i=[];if(e){let t="",o=0,s=!1;const a=()=>{if(!t)throw new Error("Formula contains function ".concat(r," with invalid arguments ").concat(e));i.push(t),t=""};for(let r=0;rnew t.Parser(e,this.settings))),function(e){const t=[];for(const n of i)t.push(n.evaluate(e));return o.call(e,...t)}}evaluate(e){const t=this._parts.slice();for(let r=t.length-2;r>=0;--r){const o=t[r];if(o&&"operator"===o.type){const i=t[r+1];t.splice(r+1,1);const s=n.evaluate(i,e);t[r]=n.single(o.value,s)}}return n.operatorsOrder.forEach((r=>{for(let o=1;o":return t>r;case">=":return t>=r;case"==":return t===r;case"!=":return t!==r;case"&&":return t&&r;case"||":return t||r}return null},n.exists=function(e){return null!=e}},9926:()=>{},5688:()=>{},9708:()=>{},1152:()=>{},443:()=>{},9848:()=>{}},pd={},function e(t){var n=pd[t];if(void 0!==n)return n.exports;var r=pd[t]={exports:{}};return dd[t](r,r.exports,e),r.exports}(5107));const fd=s(hd.exports);var md={exports:{}}; /** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */!function(e,t){(function(){var n,r="Expected a function",o="__lodash_hash_undefined__",s="__lodash_placeholder__",a=16,l=32,c=64,u=128,d=256,p=1/0,h=9007199254740991,f=NaN,m=4294967295,g=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",l],["partialRight",c],["rearg",d]],y="[object Arguments]",b="[object Array]",C="[object Boolean]",x="[object Date]",v="[object Error]",w="[object Function]",A="[object GeneratorFunction]",E="[object Map]",S="[object Number]",O="[object Object]",T="[object Promise]",k="[object RegExp]",M="[object Set]",L="[object String]",R="[object Symbol]",N="[object WeakMap]",D="[object ArrayBuffer]",I="[object DataView]",j="[object Float32Array]",z="[object Float64Array]",P="[object Int8Array]",U="[object Int16Array]",q="[object Int32Array]",B="[object Uint8Array]",Z="[object Uint8ClampedArray]",F="[object Uint16Array]",H="[object Uint32Array]",V=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Q=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,Y=RegExp(Q.source),J=RegExp(K.source),X=/<%-([\s\S]+?)%>/g,_=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(re.source),ie=/^\s+/,se=/\s/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,Ce=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ve=/($^)/,we=/['\n\r\u2028\u2029\\]/g,Ae="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",Oe="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",ke="\\ufe0e\\ufe0f",Me="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Le="['’]",Re="["+Ae+"]",Ne="["+Me+"]",De="["+Ee+"]",Ie="\\d+",je="["+Se+"]",ze="["+Oe+"]",Pe="[^"+Ae+Me+Ie+Se+Oe+Te+"]",Ue="\\ud83c[\\udffb-\\udfff]",qe="[^"+Ae+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Ze="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+Te+"]",He="\\u200d",Ve="(?:"+ze+"|"+Pe+")",We="(?:"+Fe+"|"+Pe+")",Ge="(?:['’](?:d|ll|m|re|s|t|ve))?",Qe="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+De+"|"+Ue+")"+"?",Ye="["+ke+"]?",Je=Ye+Ke+("(?:"+He+"(?:"+[qe,Be,Ze].join("|")+")"+Ye+Ke+")*"),Xe="(?:"+[je,Be,Ze].join("|")+")"+Je,_e="(?:"+[qe+De+"?",De,Be,Ze,Re].join("|")+")",$e=RegExp(Le,"g"),et=RegExp(De,"g"),tt=RegExp(Ue+"(?="+Ue+")|"+_e+Je,"g"),nt=RegExp([Fe+"?"+ze+"+"+Ge+"(?="+[Ne,Fe,"$"].join("|")+")",We+"+"+Qe+"(?="+[Ne,Fe+Ve,"$"].join("|")+")",Fe+"?"+Ve+"+"+Ge,Fe+"+"+Qe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Xe].join("|"),"g"),rt=RegExp("["+He+Ae+Ee+ke+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],st=-1,at={};at[j]=at[z]=at[P]=at[U]=at[q]=at[B]=at[Z]=at[F]=at[H]=!0,at[y]=at[b]=at[D]=at[C]=at[I]=at[x]=at[v]=at[w]=at[E]=at[S]=at[O]=at[k]=at[M]=at[L]=at[N]=!1;var lt={};lt[y]=lt[b]=lt[D]=lt[I]=lt[C]=lt[x]=lt[j]=lt[z]=lt[P]=lt[U]=lt[q]=lt[E]=lt[S]=lt[O]=lt[k]=lt[M]=lt[L]=lt[R]=lt[B]=lt[Z]=lt[F]=lt[H]=!0,lt[v]=lt[w]=lt[N]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ut=parseFloat,dt=parseInt,pt="object"==typeof i&&i&&i.Object===Object&&i,ht="object"==typeof self&&self&&self.Object===Object&&self,ft=pt||ht||Function("return this")(),mt=t&&!t.nodeType&&t,gt=mt&&e&&!e.nodeType&&e,yt=gt&>.exports===mt,bt=yt&&pt.process,Ct=function(){try{var e=gt&>.require&>.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(dd){}}(),xt=Ct&&Ct.isArrayBuffer,vt=Ct&&Ct.isDate,wt=Ct&&Ct.isMap,At=Ct&&Ct.isRegExp,Et=Ct&&Ct.isSet,St=Ct&&Ct.isTypedArray;function Ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Tt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Dt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function nn(e,t){for(var n=e.length;n--&&Ft(t,e[n],0)>-1;);return n}var rn=Qt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),on=Qt({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+ct[e]}function an(e){return rt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var gn=function e(t){var i,se=(t=null==t?ft:gn.defaults(ft.Object(),t,gn.pick(ft,it))).Array,Ae=t.Date,Ee=t.Error,Se=t.Function,Oe=t.Math,Te=t.Object,ke=t.RegExp,Me=t.String,Le=t.TypeError,Re=se.prototype,Ne=Se.prototype,De=Te.prototype,Ie=t["__core-js_shared__"],je=Ne.toString,ze=De.hasOwnProperty,Pe=0,Ue=(i=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",qe=De.toString,Be=je.call(Te),Ze=ft._,Fe=ke("^"+je.call(ze).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=yt?t.Buffer:n,Ve=t.Symbol,We=t.Uint8Array,Ge=He?He.allocUnsafe:n,Qe=cn(Te.getPrototypeOf,Te),Ke=Te.create,Ye=De.propertyIsEnumerable,Je=Re.splice,Xe=Ve?Ve.isConcatSpreadable:n,_e=Ve?Ve.iterator:n,tt=Ve?Ve.toStringTag:n,rt=function(){try{var e=pi(Te,"defineProperty");return e({},"",{}),e}catch(dd){}}(),ct=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,pt=Ae&&Ae.now!==ft.Date.now&&Ae.now,ht=t.setTimeout!==ft.setTimeout&&t.setTimeout,mt=Oe.ceil,gt=Oe.floor,bt=Te.getOwnPropertySymbols,Ct=He?He.isBuffer:n,qt=t.isFinite,Qt=Re.join,yn=cn(Te.keys,Te),bn=Oe.max,Cn=Oe.min,xn=Ae.now,vn=t.parseInt,wn=Oe.random,An=Re.reverse,En=pi(t,"DataView"),Sn=pi(t,"Map"),On=pi(t,"Promise"),Tn=pi(t,"Set"),kn=pi(t,"WeakMap"),Mn=pi(Te,"create"),Ln=kn&&new kn,Rn={},Nn=Zi(En),Dn=Zi(Sn),In=Zi(On),jn=Zi(Tn),zn=Zi(kn),Pn=Ve?Ve.prototype:n,Un=Pn?Pn.valueOf:n,qn=Pn?Pn.toString:n;function Bn(e){if(oa(e)&&!Qs(e)&&!(e instanceof Vn)){if(e instanceof Hn)return e;if(ze.call(e,"__wrapped__"))return Fi(e)}return new Hn(e)}var Zn=function(){function e(){}return function(t){if(!ra(t))return{};if(Ke)return Ke(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Fn(){}function Hn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function lr(e,t,r,o,i,s){var a,l=1&t,c=2&t,u=4&t;if(r&&(a=i?r(e,o,i,s):r(e)),a!==n)return a;if(!ra(e))return e;var d=Qs(e);if(d){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&ze.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Lo(e,a)}else{var p=mi(e),h=p==w||p==A;if(Xs(e))return Eo(e,l);if(p==O||p==y||h&&!i){if(a=c||h?{}:yi(e),!l)return c?function(e,t){return Ro(e,fi(e),t)}(e,function(e,t){return e&&Ro(t,ja(t),e)}(a,e)):function(e,t){return Ro(e,hi(e),t)}(e,or(a,e))}else{if(!lt[p])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case D:return So(e);case C:case x:return new r(+e);case I:return function(e,t){var n=t?So(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case j:case z:case P:case U:case q:case B:case Z:case F:case H:return Oo(e,n);case E:return new r;case S:case L:return new r(e);case k:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case M:return new r;case R:return o=e,Un?Te(Un.call(o)):{}}var o}(e,p,l)}}s||(s=new Yn);var f=s.get(e);if(f)return f;s.set(e,a),ca(e)?e.forEach((function(n){a.add(lr(n,t,r,n,e,s))})):ia(e)&&e.forEach((function(n,o){a.set(o,lr(n,t,r,o,e,s))}));var m=d?n:(u?c?ii:oi:c?ja:Ia)(e);return kt(m||e,(function(n,o){m&&(n=e[o=n]),tr(a,o,lr(n,t,r,o,e,s))})),a}function cr(e,t,r){var o=r.length;if(null==e)return!o;for(e=Te(e);o--;){var i=r[o],s=t[i],a=e[i];if(a===n&&!(i in e)||!s(a))return!1}return!0}function ur(e,t,o){if("function"!=typeof e)throw new Le(r);return Ri((function(){e.apply(n,o)}),t)}function dr(e,t,n,r){var o=-1,i=Nt,s=!0,a=e.length,l=[],c=t.length;if(!a)return l;n&&(t=It(t,_t(n))),r?(i=Dt,s=!1):t.length>=200&&(i=en,s=!1,t=new Kn(t));e:for(;++o-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(Sn||Gn),string:new Wn}},Qn.prototype.delete=function(e){var t=ui(this,e).delete(e);return this.size-=t?1:0,t},Qn.prototype.get=function(e){return ui(this,e).get(e)},Qn.prototype.has=function(e){return ui(this,e).has(e)},Qn.prototype.set=function(e,t){var n=ui(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,o),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!Sn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qn(r)}return n.set(e,t),this.size=n.size,this};var pr=Io(xr),hr=Io(vr,!0);function fr(e,t){var n=!0;return pr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function mr(e,t,r){for(var o=-1,i=e.length;++o0&&n(a)?t>1?yr(a,t-1,n,r,o):jt(o,a):r||(o[o.length]=a)}return o}var br=jo(),Cr=jo(!0);function xr(e,t){return e&&br(e,t,Ia)}function vr(e,t){return e&&Cr(e,t,Ia)}function wr(e,t){return Rt(t,(function(t){return ea(e[t])}))}function Ar(e,t){for(var r=0,o=(t=xo(t,e)).length;null!=e&&rt}function Tr(e,t){return null!=e&&ze.call(e,t)}function kr(e,t){return null!=e&&t in Te(e)}function Mr(e,t,r){for(var o=r?Dt:Nt,i=e[0].length,s=e.length,a=s,l=se(s),c=1/0,u=[];a--;){var d=e[a];a&&t&&(d=It(d,_t(t))),c=Cn(d.length,c),l[a]=!r&&(t||i>=120&&d.length>=120)?new Kn(a&&d):n}d=e[0];var p=-1,h=l[0];e:for(;++p=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Wr(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)a!==e&&Je.call(a,l,1),Je.call(e,l,1);return e}function Qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Ci(o)?Je.call(e,o,1):po(e,o)}}return e}function Kr(e,t){return e+gt(wn()*(t-e+1))}function Yr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Jr(e,t){return Ni(Ti(e,t,sl),e+"")}function Xr(e){return Xn(Ha(e))}function _r(e,t){var n=Ha(e);return ji(n,ar(t,0,n.length))}function $r(e,t,r,o){if(!ra(e))return e;for(var i=-1,s=(t=xo(t,e)).length,a=s-1,l=e;null!=l&&++io?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=se(o);++r>>1,s=e[i];null!==s&&!da(s)&&(n?s<=t:s=200){var c=t?null:Jo(e);if(c)return dn(c);s=!1,o=en,l=new Kn}else l=t?[]:a;e:for(;++r=o?e:ro(e,t,r)}var Ao=ct||function(e){return ft.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=Ge?Ge(n):new e.constructor(n);return e.copy(r),r}function So(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Oo(e,t){var n=t?So(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function To(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,s=da(e),a=t!==n,l=null===t,c=t==t,u=da(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||o&&a&&c||!r&&c||!i)return 1;if(!o&&!s&&!u&&e1?r[i-1]:n,a=i>2?r[2]:n;for(s=e.length>3&&"function"==typeof s?(i--,s):n,a&&xi(r[0],r[1],a)&&(s=i<3?n:s,i=1),t=Te(t);++o-1?i[s?t[a]:a]:n}}function Bo(e){return ri((function(t){var o=t.length,i=o,s=Hn.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new Le(r);if(s&&!l&&"wrapper"==ai(a))var l=new Hn([],!0)}for(i=l?i:o;++i1&&C.reverse(),p&&cl))return!1;var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var p=-1,h=!0,f=2&r?new Kn:n;for(s.set(e,t),s.set(t,e);++p-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ae,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return kt(g,(function(n){var r="_."+n[0];t&n[1]&&!Nt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(ce):[]}(r),n)))}function Ii(e){var t=0,r=0;return function(){var o=xn(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ji(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ls(e,r)}));function ms(e){var t=Bn(e);return t.__chain__=!0,t}function gs(e,t){return t(e)}var ys=ri((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Vn&&Ci(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:gs,args:[i],thisArg:n}),new Hn(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)}));var bs=No((function(e,t,n){ze.call(e,n)?++e[n]:ir(e,n,1)}));var Cs=qo(Gi),xs=qo(Qi);function vs(e,t){return(Qs(e)?kt:pr)(e,ci(t,3))}function ws(e,t){return(Qs(e)?Mt:hr)(e,ci(t,3))}var As=No((function(e,t,n){ze.call(e,n)?e[n].push(t):ir(e,n,[t])}));var Es=Jr((function(e,t,n){var r=-1,o="function"==typeof t,i=Ys(e)?se(e.length):[];return pr(e,(function(e){i[++r]=o?Ot(t,e,n):Lr(e,t,n)})),i})),Ss=No((function(e,t,n){ir(e,n,t)}));function Os(e,t){return(Qs(e)?It:qr)(e,ci(t,3))}var Ts=No((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ks=Jr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xi(e,t[0],t[1])?t=[]:n>2&&xi(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,yr(t,1),[])})),Ms=pt||function(){return ft.Date.now()};function Ls(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,_o(e,u,n,n,n,n,t)}function Rs(e,t){var o;if("function"!=typeof t)throw new Le(r);return e=ya(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var Ns=Jr((function(e,t,n){var r=1;if(n.length){var o=un(n,li(Ns));r|=l}return _o(e,r,t,n,o)})),Ds=Jr((function(e,t,n){var r=3;if(n.length){var o=un(n,li(Ds));r|=l}return _o(t,r,e,n,o)}));function Is(e,t,o){var i,s,a,l,c,u,d=0,p=!1,h=!1,f=!0;if("function"!=typeof e)throw new Le(r);function m(t){var r=i,o=s;return i=s=n,d=t,l=e.apply(o,r)}function g(e){var r=e-u;return u===n||r>=t||r<0||h&&e-d>=a}function y(){var e=Ms();if(g(e))return b(e);c=Ri(y,function(e){var n=t-(e-u);return h?Cn(n,a-(e-d)):n}(e))}function b(e){return c=n,f&&i?m(e):(i=s=n,l)}function C(){var e=Ms(),r=g(e);if(i=arguments,s=this,u=e,r){if(c===n)return function(e){return d=e,c=Ri(y,t),p?m(e):l}(u);if(h)return Ao(c),c=Ri(y,t),m(u)}return c===n&&(c=Ri(y,t)),l}return t=Ca(t)||0,ra(o)&&(p=!!o.leading,a=(h="maxWait"in o)?bn(Ca(o.maxWait)||0,t):a,f="trailing"in o?!!o.trailing:f),C.cancel=function(){c!==n&&Ao(c),d=0,i=u=s=c=n},C.flush=function(){return c===n?l:b(Ms())},C}var js=Jr((function(e,t){return ur(e,1,t)})),zs=Jr((function(e,t,n){return ur(e,Ca(t)||0,n)}));function Ps(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Le(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Ps.Cache||Qn),n}function Us(e){if("function"!=typeof e)throw new Le(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ps.Cache=Qn;var qs=vo((function(e,t){var n=(t=1==t.length&&Qs(t[0])?It(t[0],_t(ci())):It(yr(t,1),_t(ci()))).length;return Jr((function(r){for(var o=-1,i=Cn(r.length,n);++o=t})),Gs=Rr(function(){return arguments}())?Rr:function(e){return oa(e)&&ze.call(e,"callee")&&!Ye.call(e,"callee")},Qs=se.isArray,Ks=xt?_t(xt):function(e){return oa(e)&&Sr(e)==D};function Ys(e){return null!=e&&na(e.length)&&!ea(e)}function Js(e){return oa(e)&&Ys(e)}var Xs=Ct||Cl,_s=vt?_t(vt):function(e){return oa(e)&&Sr(e)==x};function $s(e){if(!oa(e))return!1;var t=Sr(e);return t==v||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!aa(e)}function ea(e){if(!ra(e))return!1;var t=Sr(e);return t==w||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ta(e){return"number"==typeof e&&e==ya(e)}function na(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function ra(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function oa(e){return null!=e&&"object"==typeof e}var ia=wt?_t(wt):function(e){return oa(e)&&mi(e)==E};function sa(e){return"number"==typeof e||oa(e)&&Sr(e)==S}function aa(e){if(!oa(e)||Sr(e)!=O)return!1;var t=Qe(e);if(null===t)return!0;var n=ze.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&je.call(n)==Be}var la=At?_t(At):function(e){return oa(e)&&Sr(e)==k};var ca=Et?_t(Et):function(e){return oa(e)&&mi(e)==M};function ua(e){return"string"==typeof e||!Qs(e)&&oa(e)&&Sr(e)==L}function da(e){return"symbol"==typeof e||oa(e)&&Sr(e)==R}var pa=St?_t(St):function(e){return oa(e)&&na(e.length)&&!!at[Sr(e)]};var ha=Qo(Ur),fa=Qo((function(e,t){return e<=t}));function ma(e){if(!e)return[];if(Ys(e))return ua(e)?hn(e):Lo(e);if(_e&&e[_e])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[_e]());var t=mi(e);return(t==E?ln:t==M?dn:Ha)(e)}function ga(e){return e?(e=Ca(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ya(e){var t=ga(e),n=t%1;return t==t?n?t-n:t:0}function ba(e){return e?ar(ya(e),0,m):0}function Ca(e){if("number"==typeof e)return e;if(da(e))return f;if(ra(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ra(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var n=ge.test(e);return n||be.test(e)?dt(e.slice(2),n?2:8):me.test(e)?f:+e}function xa(e){return Ro(e,ja(e))}function va(e){return null==e?"":co(e)}var wa=Do((function(e,t){if(Ei(t)||Ys(t))Ro(t,Ia(t),e);else for(var n in t)ze.call(t,n)&&tr(e,n,t[n])})),Aa=Do((function(e,t){Ro(t,ja(t),e)})),Ea=Do((function(e,t,n,r){Ro(t,ja(t),e,r)})),Sa=Do((function(e,t,n,r){Ro(t,Ia(t),e,r)})),Oa=ri(sr);var Ta=Jr((function(e,t){e=Te(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&xi(t[0],t[1],i)&&(o=1);++r1),t})),Ro(e,ii(e),n),r&&(n=lr(n,7,ti));for(var o=t.length;o--;)po(n,t[o]);return n}));var qa=ri((function(e,t){return null==e?{}:function(e,t){return Wr(e,t,(function(t,n){return La(e,n)}))}(e,t)}));function Ba(e,t){if(null==e)return{};var n=It(ii(e),(function(e){return[e]}));return t=ci(t),Wr(e,n,(function(e,n){return t(e,n[0])}))}var Za=Xo(Ia),Fa=Xo(ja);function Ha(e){return null==e?[]:$t(e,Ia(e))}var Va=Po((function(e,t,n){return t=t.toLowerCase(),e+(n?Wa(t):t)}));function Wa(e){return $a(va(e).toLowerCase())}function Ga(e){return(e=va(e))&&e.replace(xe,rn).replace(et,"")}var Qa=Po((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ka=Po((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ya=zo("toLowerCase");var Ja=Po((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xa=Po((function(e,t,n){return e+(n?" ":"")+$a(t)}));var _a=Po((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),$a=zo("toUpperCase");function el(e,t,r){return e=va(e),(t=r?n:t)===n?function(e){return ot.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var tl=Jr((function(e,t){try{return Ot(e,n,t)}catch(dd){return $s(dd)?dd:new Ee(dd)}})),nl=ri((function(e,t){return kt(t,(function(t){t=Bi(t),ir(e,t,Ns(e[t],e))})),e}));function rl(e){return function(){return e}}var ol=Bo(),il=Bo(!0);function sl(e){return e}function al(e){return jr("function"==typeof e?e:lr(e,1))}var ll=Jr((function(e,t){return function(n){return Lr(n,e,t)}})),cl=Jr((function(e,t){return function(n){return Lr(e,n,t)}}));function ul(e,t,n){var r=Ia(t),o=wr(t,r);null!=n||ra(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=wr(t,Ia(t)));var i=!(ra(n)&&"chain"in n&&!n.chain),s=ea(e);return kt(o,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Lo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,jt([this.value()],arguments))})})),e}function dl(){}var pl=Vo(It),hl=Vo(Lt),fl=Vo(Ut);function ml(e){return vi(e)?Gt(Bi(e)):function(e){return function(t){return Ar(t,e)}}(e)}var gl=Go(),yl=Go(!0);function bl(){return[]}function Cl(){return!1}var xl=Ho((function(e,t){return e+t}),0),vl=Yo("ceil"),wl=Ho((function(e,t){return e/t}),1),Al=Yo("floor");var El,Sl=Ho((function(e,t){return e*t}),1),Ol=Yo("round"),Tl=Ho((function(e,t){return e-t}),0);return Bn.after=function(e,t){if("function"!=typeof t)throw new Le(r);return e=ya(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=Ls,Bn.assign=wa,Bn.assignIn=Aa,Bn.assignInWith=Ea,Bn.assignWith=Sa,Bn.at=Oa,Bn.before=Rs,Bn.bind=Ns,Bn.bindAll=nl,Bn.bindKey=Ds,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Qs(e)?e:[e]},Bn.chain=ms,Bn.chunk=function(e,t,r){t=(r?xi(e,t,r):t===n)?1:bn(ya(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,s=0,a=se(mt(o/t));ii?0:i+r),(o=o===n||o>i?i:ya(o))<0&&(o+=i),o=r>o?0:ba(o);r>>0)?(e=va(e))&&("string"==typeof t||null!=t&&!la(t))&&!(t=co(t))&&an(e)?wo(hn(e),0,r):e.split(t,r):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new Le(r);return t=null==t?0:bn(ya(t),0),Jr((function(n){var r=n[t],o=wo(n,0,t);return r&&jt(o,r),Ot(e,this,o)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?ro(e,1,t):[]},Bn.take=function(e,t,r){return e&&e.length?ro(e,0,(t=r||t===n?1:ya(t))<0?0:t):[]},Bn.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?ro(e,(t=o-(t=r||t===n?1:ya(t)))<0?0:t,o):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?fo(e,ci(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?fo(e,ci(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new Le(r);return ra(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),Is(e,t,{leading:o,maxWait:t,trailing:i})},Bn.thru=gs,Bn.toArray=ma,Bn.toPairs=Za,Bn.toPairsIn=Fa,Bn.toPath=function(e){return Qs(e)?It(e,Bi):da(e)?[e]:Lo(qi(va(e)))},Bn.toPlainObject=xa,Bn.transform=function(e,t,n){var r=Qs(e),o=r||Xs(e)||pa(e);if(t=ci(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ra(e)&&ea(i)?Zn(Qe(e)):{}}return(o?kt:xr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Bn.unary=function(e){return Ls(e,1)},Bn.union=os,Bn.unionBy=is,Bn.unionWith=ss,Bn.uniq=function(e){return e&&e.length?uo(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?uo(e,ci(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?uo(e,n,t):[]},Bn.unset=function(e,t){return null==e||po(e,t)},Bn.unzip=as,Bn.unzipWith=ls,Bn.update=function(e,t,n){return null==e?e:ho(e,t,Co(n))},Bn.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:ho(e,t,Co(r),o)},Bn.values=Ha,Bn.valuesIn=function(e){return null==e?[]:$t(e,ja(e))},Bn.without=cs,Bn.words=el,Bn.wrap=function(e,t){return Bs(Co(t),e)},Bn.xor=us,Bn.xorBy=ds,Bn.xorWith=ps,Bn.zip=hs,Bn.zipObject=function(e,t){return yo(e||[],t||[],tr)},Bn.zipObjectDeep=function(e,t){return yo(e||[],t||[],$r)},Bn.zipWith=fs,Bn.entries=Za,Bn.entriesIn=Fa,Bn.extend=Aa,Bn.extendWith=Ea,ul(Bn,Bn),Bn.add=xl,Bn.attempt=tl,Bn.camelCase=Va,Bn.capitalize=Wa,Bn.ceil=vl,Bn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=Ca(r))==r?r:0),t!==n&&(t=(t=Ca(t))==t?t:0),ar(Ca(e),t,r)},Bn.clone=function(e){return lr(e,4)},Bn.cloneDeep=function(e){return lr(e,5)},Bn.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:n)},Bn.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:n)},Bn.conformsTo=function(e,t){return null==t||cr(e,t,Ia(t))},Bn.deburr=Ga,Bn.defaultTo=function(e,t){return null==e||e!=e?t:e},Bn.divide=wl,Bn.endsWith=function(e,t,r){e=va(e),t=co(t);var o=e.length,i=r=r===n?o:ar(ya(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},Bn.eq=Hs,Bn.escape=function(e){return(e=va(e))&&J.test(e)?e.replace(K,on):e},Bn.escapeRegExp=function(e){return(e=va(e))&&oe.test(e)?e.replace(re,"\\$&"):e},Bn.every=function(e,t,r){var o=Qs(e)?Lt:fr;return r&&xi(e,t,r)&&(t=n),o(e,ci(t,3))},Bn.find=Cs,Bn.findIndex=Gi,Bn.findKey=function(e,t){return Bt(e,ci(t,3),xr)},Bn.findLast=xs,Bn.findLastIndex=Qi,Bn.findLastKey=function(e,t){return Bt(e,ci(t,3),vr)},Bn.floor=Al,Bn.forEach=vs,Bn.forEachRight=ws,Bn.forIn=function(e,t){return null==e?e:br(e,ci(t,3),ja)},Bn.forInRight=function(e,t){return null==e?e:Cr(e,ci(t,3),ja)},Bn.forOwn=function(e,t){return e&&xr(e,ci(t,3))},Bn.forOwnRight=function(e,t){return e&&vr(e,ci(t,3))},Bn.get=Ma,Bn.gt=Vs,Bn.gte=Ws,Bn.has=function(e,t){return null!=e&&gi(e,t,Tr)},Bn.hasIn=La,Bn.head=Yi,Bn.identity=sl,Bn.includes=function(e,t,n,r){e=Ys(e)?e:Ha(e),n=n&&!r?ya(n):0;var o=e.length;return n<0&&(n=bn(o+n,0)),ua(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ft(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ya(n);return o<0&&(o=bn(r+o,0)),Ft(e,t,o)},Bn.inRange=function(e,t,r){return t=ga(t),r===n?(r=t,t=0):r=ga(r),function(e,t,n){return e>=Cn(t,n)&&e=-9007199254740991&&e<=h},Bn.isSet=ca,Bn.isString=ua,Bn.isSymbol=da,Bn.isTypedArray=pa,Bn.isUndefined=function(e){return e===n},Bn.isWeakMap=function(e){return oa(e)&&mi(e)==N},Bn.isWeakSet=function(e){return oa(e)&&"[object WeakSet]"==Sr(e)},Bn.join=function(e,t){return null==e?"":Qt.call(e,t)},Bn.kebabCase=Qa,Bn.last=$i,Bn.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=ya(r))<0?bn(o+i,0):Cn(i,o-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Zt(e,Vt,i,!0)},Bn.lowerCase=Ka,Bn.lowerFirst=Ya,Bn.lt=ha,Bn.lte=fa,Bn.max=function(e){return e&&e.length?mr(e,sl,Or):n},Bn.maxBy=function(e,t){return e&&e.length?mr(e,ci(t,2),Or):n},Bn.mean=function(e){return Wt(e,sl)},Bn.meanBy=function(e,t){return Wt(e,ci(t,2))},Bn.min=function(e){return e&&e.length?mr(e,sl,Ur):n},Bn.minBy=function(e,t){return e&&e.length?mr(e,ci(t,2),Ur):n},Bn.stubArray=bl,Bn.stubFalse=Cl,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=Sl,Bn.nth=function(e,t){return e&&e.length?Hr(e,ya(t)):n},Bn.noConflict=function(){return ft._===this&&(ft._=Ze),this},Bn.noop=dl,Bn.now=Ms,Bn.pad=function(e,t,n){e=va(e);var r=(t=ya(t))?pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Wo(gt(o),n)+e+Wo(mt(o),n)},Bn.padEnd=function(e,t,n){e=va(e);var r=(t=ya(t))?pn(e):0;return t&&rt){var o=e;e=t,t=o}if(r||e%1||t%1){var i=wn();return Cn(e+i*(t-e+ut("1e-"+((i+"").length-1))),t)}return Kr(e,t)},Bn.reduce=function(e,t,n){var r=Qs(e)?zt:Kt,o=arguments.length<3;return r(e,ci(t,4),n,o,pr)},Bn.reduceRight=function(e,t,n){var r=Qs(e)?Pt:Kt,o=arguments.length<3;return r(e,ci(t,4),n,o,hr)},Bn.repeat=function(e,t,r){return t=(r?xi(e,t,r):t===n)?1:ya(t),Yr(va(e),t)},Bn.replace=function(){var e=arguments,t=va(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,r){var o=-1,i=(t=xo(t,e)).length;for(i||(i=1,e=n);++oh)return[];var n=m,r=Cn(e,m);t=ci(t),e-=m;for(var o=Jt(r,t);++n=s)return e;var l=r-pn(o);if(l<1)return o;var c=a?wo(a,0,l).join(""):e.slice(0,l);if(i===n)return c+o;if(a&&(l+=c.length-l),la(i)){if(e.slice(l).search(i)){var u,d=c;for(i.global||(i=ke(i.source,va(fe.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var p=u.index;c=c.slice(0,p===n?l:p)}}else if(e.indexOf(co(i),l)!=l){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+o},Bn.unescape=function(e){return(e=va(e))&&Y.test(e)?e.replace(Q,mn):e},Bn.uniqueId=function(e){var t=++Pe;return va(e)+t},Bn.upperCase=_a,Bn.upperFirst=$a,Bn.each=vs,Bn.eachRight=ws,Bn.first=Yi,ul(Bn,(El={},xr(Bn,(function(e,t){ze.call(Bn.prototype,t)||(El[t]=e)})),El),{chain:!1}),Bn.VERSION="4.17.21",kt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),kt(["drop","take"],(function(e,t){Vn.prototype[e]=function(r){r=r===n?1:bn(ya(r),0);var o=this.__filtered__&&!t?new Vn(this):this.clone();return o.__filtered__?o.__takeCount__=Cn(r,o.__takeCount__):o.__views__.push({size:Cn(r,m),type:e+(o.__dir__<0?"Right":"")}),o},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),kt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ci(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),kt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),kt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(sl)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Jr((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Lr(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(Us(ci(e)))},Vn.prototype.slice=function(e,t){e=ya(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Vn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=ya(t))<0?r.dropRight(-t):r.take(t-e)),r)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(m)},xr(Vn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=Bn[o?"take"+("last"==t?"Right":""):t],s=o||/^find/.test(t);i&&(Bn.prototype[t]=function(){var t=this.__wrapped__,a=o?[1]:arguments,l=t instanceof Vn,c=a[0],u=l||Qs(t),d=function(e){var t=i.apply(Bn,jt([e],a));return o&&p?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,h=!!this.__actions__.length,f=s&&!p,m=l&&!h;if(!s&&u){t=m?t:new Vn(this);var g=e.apply(t,a);return g.__actions__.push({func:gs,args:[d],thisArg:n}),new Hn(g,p)}return f&&m?e.apply(this,a):(g=this.thru(d),f?o?g.value()[0]:g.value():g)})})),kt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Re[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Qs(o)?o:[],e)}return this[n]((function(n){return t.apply(Qs(n)?n:[],e)}))}})),xr(Vn.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";ze.call(Rn,r)||(Rn[r]=[]),Rn[r].push({name:t,func:n})}})),Rn[Zo(n,2).name]=[{name:"wrapper",func:n}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Lo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Lo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Lo(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Qs(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,r=this;r instanceof Fn;){var o=Fi(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:gs,args:[rs],thisArg:n}),new Hn(t,this.__chain__)}return this.thru(rs)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,_e&&(Bn.prototype[_e]=function(){return this}),Bn}();gt?((gt.exports=gn)._=gn,mt._=gn):ft._=gn}).call(i)}(md,md.exports);const gd=s(md.exports),yd=(e,t,n=!1)=>{let r;return function(...o){const i=this,s=n&&!r;clearTimeout(r),r=setTimeout((()=>{r=void 0,n||e.apply(i,o)}),t),s&&e.apply(i,o)}};function bd(e){e=e||{};this.Timeout=e.timeout||1,this.EditCost=e.editCost||4}var Cd=-1;bd.Diff,bd.prototype.main=function(e,t,n,r){void 0===r&&(r=this.Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Timeout);var o=r;if(null==e||null==t)throw new Error("Null input. (diff_main)");if(e==t)return e?[[0,e]]:[];void 0===n&&(n=!0);var i=n,s=this.commonPrefix(e,t),a=e.substring(0,s);e=e.substring(s),t=t.substring(s),s=this.commonSuffix(e,t);var l=e.substring(e.length-s);e=e.substring(0,e.length-s),t=t.substring(0,t.length-s);var c=this.compute_(e,t,i,o);return a&&c.unshift([0,a]),l&&c.push([0,l]),this.cleanupMerge(c),c},bd.prototype.compute_=function(e,t,n,r){var o;if(!e)return[[1,t]];if(!t)return[[Cd,e]];var i=e.length>t.length?e:t,s=e.length>t.length?t:e,a=i.indexOf(s);if(-1!=a)return o=[[1,i.substring(0,a)],[0,s],[1,i.substring(a+s.length)]],e.length>t.length&&(o[0][0]=o[2][0]=Cd),o;if(1==s.length)return[[Cd,e],[1,t]];var l=this.halfMatch_(e,t);if(l){var c=l[0],u=l[1],d=l[2],p=l[3],h=l[4],f=this.main(c,d,n,r),m=this.main(u,p,n,r);return f.concat([[0,h]],m)}return n&&e.length>100&&t.length>100?this.lineMode_(e,t,r):this.bisect_(e,t,r)},bd.prototype.lineMode_=function(e,t,n){e=(u=this.linesToChars_(e,t)).chars1,t=u.chars2;var r=u.lineArray,o=this.main(e,t,!1,n);this.charsToLines_(o,r),this.cleanupSemantic(o),o.push([0,""]);for(var i=0,s=0,a=0,l="",c="";i=1&&a>=1){o.splice(i-s-a,s+a),i=i-s-a;for(var u,d=(u=this.main(l,c,!1,n)).length-1;d>=0;d--)o.splice(i,0,u[d]);i+=u.length}a=0,s=0,l="",c=""}i++}return o.pop(),o},bd.prototype.bisect_=function(e,t,n){for(var r=e.length,o=t.length,i=Math.ceil((r+o)/2),s=i,a=2*i,l=new Array(a),c=new Array(a),u=0;un);y++){for(var b=-y+h;b<=y-f;b+=2){for(var C=s+b,x=(S=b==-y||b!=y&&l[C-1]r)f+=2;else if(x>o)h+=2;else if(p){if((A=s+d-b)>=0&&A=(w=r-c[A]))return this.bisectSplit_(e,t,S,x,n)}}for(var v=-y+m;v<=y-g;v+=2){for(var w,A=s+v,E=(w=v==-y||v!=y&&c[A-1]r)g+=2;else if(E>o)m+=2;else if(!p){if((C=s+d-v)>=0&&C=(w=r-w))return this.bisectSplit_(e,t,S,x,n)}}}}return[[Cd,e],[1,t]]},bd.prototype.bisectSplit_=function(e,t,n,r,o){var i=e.substring(0,n),s=t.substring(0,r),a=e.substring(n),l=t.substring(r),c=this.main(i,s,!1,o),u=this.main(a,l,!1,o);return c.concat(u)},bd.prototype.linesToChars_=function(e,t){var n=[],r={};function o(e){for(var t="",o=0,i=-1,s=n.length;ir?e=e.substring(n-r):nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,i,s,a,u]:null}var s,a,l,c,u,d=i(n,r,Math.ceil(n.length/4)),p=i(n,r,Math.ceil(n.length/2));return d||p?(s=p?d&&d[4].length>p[4].length?d:p:d,e.length>t.length?(a=s[0],l=s[1],c=s[2],u=s[3]):(c=s[0],u=s[1],a=s[2],l=s[3]),[a,l,c,u,s[4]]):null},bd.prototype.cleanupSemantic=function(e){for(var t=!1,n=[],r=0,o=null,i=0,s=0,a=0,l=0,c=0;i0?n[r-1]:-1,s=0,a=0,l=0,c=0,o=null,t=!0)),i++;for(t&&this.cleanupMerge(e),this.cleanupSemanticLossless(e),i=1;i=h?(p>=u.length/2||p>=d.length/2)&&(e.splice(i,0,[0,d.substring(0,p)]),e[i-1][1]=u.substring(0,u.length-p),e[i+1][1]=d.substring(p),i++):(h>=u.length/2||h>=d.length/2)&&(e.splice(i,0,[0,u.substring(0,h)]),e[i-1][0]=1,e[i-1][1]=d.substring(0,d.length-h),e[i+1][0]=Cd,e[i+1][1]=u.substring(h),i++),i++}i++}},bd.prototype.cleanupSemanticLossless=function(e){function t(e,t){if(!e||!t)return 6;var n=e.charAt(e.length-1),r=t.charAt(0),o=n.match(bd.nonAlphaNumericRegex_),i=r.match(bd.nonAlphaNumericRegex_),s=o&&n.match(bd.whitespaceRegex_),a=i&&r.match(bd.whitespaceRegex_),l=s&&n.match(bd.linebreakRegex_),c=a&&r.match(bd.linebreakRegex_),u=l&&e.match(bd.blanklineEndRegex_),d=c&&t.match(bd.blanklineStartRegex_);return u||d?5:l||c?4:o&&!s&&a?3:s||a?2:o||i?1:0}for(var n=1;n=d&&(d=p,l=r,c=o,u=i)}e[n-1][1]!=l&&(l?e[n-1][1]=l:(e.splice(n-1,1),n--),e[n][1]=c,u?e[n+1][1]=u:(e.splice(n+1,1),n--))}n++}},bd.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,bd.whitespaceRegex_=/\s/,bd.linebreakRegex_=/[\r\n]/,bd.blanklineEndRegex_=/\n\r?\n$/,bd.blanklineStartRegex_=/^\r?\n\r?\n/,bd.prototype.cleanupEfficiency=function(e){for(var t=!1,n=[],r=0,o=null,i=0,s=!1,a=!1,l=!1,c=!1;i0?n[r-1]:-1,l=c=!1),t=!0)),i++;t&&this.cleanupMerge(e)},bd.prototype.cleanupMerge=function(e){e.push([0,""]);for(var t,n=0,r=0,o=0,i="",s="";n1?(0!==r&&0!==o&&(0!==(t=this.commonPrefix(s,i))&&(n-r-o>0&&0==e[n-r-o-1][0]?e[n-r-o-1][1]+=s.substring(0,t):(e.splice(0,0,[0,s.substring(0,t)]),n++),s=s.substring(t),i=i.substring(t)),0!==(t=this.commonSuffix(s,i))&&(e[n][1]=s.substring(s.length-t)+e[n][1],s=s.substring(0,s.length-t),i=i.substring(0,i.length-t))),0===r?e.splice(n-o,r+o,[1,s]):0===o?e.splice(n-r,r+o,[Cd,i]):e.splice(n-r-o,r+o,[Cd,i],[1,s]),n=n-r-o+(r?1:0)+(o?1:0)+1):0!==n&&0==e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,o=0,r=0,i="",s=""}""===e[e.length-1][1]&&e.pop();var a=!1;for(n=1;nt));n++)i=r,s=o;return e.length!=n&&e[n][0]===Cd?s:s+(t-i)},bd.prototype.prettyHtml=function(e){for(var t=[],n=/&/g,r=//g,i=/\n/g,s=0;s");switch(a){case 1:t[s]=""+l+"";break;case Cd:t[s]=""+l+"";break;case 0:t[s]=""+l+""}}return t.join("")},bd.prototype.text1=function(e){for(var t=[],n=0;n>>32-o,n)}function wd(e,t,n,r,o,i,s){return vd(t&n|~t&r,e,t,o,i,s)}function Ad(e,t,n,r,o,i,s){return vd(t&r|n&~r,e,t,o,i,s)}function Ed(e,t,n,r,o,i,s){return vd(t^n^r,e,t,o,i,s)}function Sd(e,t,n,r,o,i,s){return vd(n^(t|~r),e,t,o,i,s)}function Od(e){const t=[];let n;for(n=0;n<64;n+=4)t[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24);return t}new(s(bd))({timeout:.4});const Td="0123456789abcdef".split("");function kd(e){let t="",n=0;for(;n<4;n++)t+=Td[e>>8*n+4&15]+Td[e>>8*n&15];return t}function Md(e,t){let n=e[0],r=e[1],o=e[2],i=e[3];n=wd(n,r,o,i,t[0],7,-680876936),i=wd(i,n,r,o,t[1],12,-389564586),o=wd(o,i,n,r,t[2],17,606105819),r=wd(r,o,i,n,t[3],22,-1044525330),n=wd(n,r,o,i,t[4],7,-176418897),i=wd(i,n,r,o,t[5],12,1200080426),o=wd(o,i,n,r,t[6],17,-1473231341),r=wd(r,o,i,n,t[7],22,-45705983),n=wd(n,r,o,i,t[8],7,1770035416),i=wd(i,n,r,o,t[9],12,-1958414417),o=wd(o,i,n,r,t[10],17,-42063),r=wd(r,o,i,n,t[11],22,-1990404162),n=wd(n,r,o,i,t[12],7,1804603682),i=wd(i,n,r,o,t[13],12,-40341101),o=wd(o,i,n,r,t[14],17,-1502002290),r=wd(r,o,i,n,t[15],22,1236535329),n=Ad(n,r,o,i,t[1],5,-165796510),i=Ad(i,n,r,o,t[6],9,-1069501632),o=Ad(o,i,n,r,t[11],14,643717713),r=Ad(r,o,i,n,t[0],20,-373897302),n=Ad(n,r,o,i,t[5],5,-701558691),i=Ad(i,n,r,o,t[10],9,38016083),o=Ad(o,i,n,r,t[15],14,-660478335),r=Ad(r,o,i,n,t[4],20,-405537848),n=Ad(n,r,o,i,t[9],5,568446438),i=Ad(i,n,r,o,t[14],9,-1019803690),o=Ad(o,i,n,r,t[3],14,-187363961),r=Ad(r,o,i,n,t[8],20,1163531501),n=Ad(n,r,o,i,t[13],5,-1444681467),i=Ad(i,n,r,o,t[2],9,-51403784),o=Ad(o,i,n,r,t[7],14,1735328473),r=Ad(r,o,i,n,t[12],20,-1926607734),n=Ed(n,r,o,i,t[5],4,-378558),i=Ed(i,n,r,o,t[8],11,-2022574463),o=Ed(o,i,n,r,t[11],16,1839030562),r=Ed(r,o,i,n,t[14],23,-35309556),n=Ed(n,r,o,i,t[1],4,-1530992060),i=Ed(i,n,r,o,t[4],11,1272893353),o=Ed(o,i,n,r,t[7],16,-155497632),r=Ed(r,o,i,n,t[10],23,-1094730640),n=Ed(n,r,o,i,t[13],4,681279174),i=Ed(i,n,r,o,t[0],11,-358537222),o=Ed(o,i,n,r,t[3],16,-722521979),r=Ed(r,o,i,n,t[6],23,76029189),n=Ed(n,r,o,i,t[9],4,-640364487),i=Ed(i,n,r,o,t[12],11,-421815835),o=Ed(o,i,n,r,t[15],16,530742520),r=Ed(r,o,i,n,t[2],23,-995338651),n=Sd(n,r,o,i,t[0],6,-198630844),i=Sd(i,n,r,o,t[7],10,1126891415),o=Sd(o,i,n,r,t[14],15,-1416354905),r=Sd(r,o,i,n,t[5],21,-57434055),n=Sd(n,r,o,i,t[12],6,1700485571),i=Sd(i,n,r,o,t[3],10,-1894986606),o=Sd(o,i,n,r,t[10],15,-1051523),r=Sd(r,o,i,n,t[1],21,-2054922799),n=Sd(n,r,o,i,t[8],6,1873313359),i=Sd(i,n,r,o,t[15],10,-30611744),o=Sd(o,i,n,r,t[6],15,-1560198380),r=Sd(r,o,i,n,t[13],21,1309151649),n=Sd(n,r,o,i,t[4],6,-145523070),i=Sd(i,n,r,o,t[11],10,-1120210379),o=Sd(o,i,n,r,t[2],15,718787259),r=Sd(r,o,i,n,t[9],21,-343485551),e[0]=xd(n,e[0]),e[1]=xd(r,e[1]),e[2]=xd(o,e[2]),e[3]=xd(i,e[3])}function Ld(e){return function(e){const t=[];for(let n=0;n>2]|=e.charCodeAt(r)<<(r%4<<3);if(o[r>>2]|=128<<(r%4<<3),r>55)for(Md(n,o),r=0;r<16;r++)o[r]=0;return o[14]=8*t,Md(n,o),n}(e))}var Rd=(e=>(e[e.SPELLING=1]="SPELLING",e[e.GRAMMAR=2]="GRAMMAR",e[e.TYPOGRAPHY=3]="TYPOGRAPHY",e[e.CONTEXT=4]="CONTEXT",e[e.PARTIAL_ANALYSIS=5]="PARTIAL_ANALYSIS",e[e.PRESS=6]="PRESS",e[e.STYLE=8]="STYLE",e))(Rd||{}),Nd=(e=>(e.spell="spell",e.grammar="grammar",e.typo="typo",e.context="context",e.frequency="frequency",e.press="press",e.autocorrection="autocorrection",e.unknown="unknown",e.style="style",e))(Nd||{}),Dd=(e=>(e.SUSTAINED="sustained",e.FLUENT="fluent",e.SYNTHETIC="synthetic",e.USER_DEFINED="user-defined",e))(Dd||{}),Id=(e=>(e.REPHRASE="rephrase",e.SHORTEN="shorten",e.SPLIT="split",e))(Id||{});class jd{constructor(e,t={},n={sdkInstanceIdentifier:(e=>null==(e=Es.config)?void 0:e.instanceIdentifier)()}){this.type=e,this.properties=t,this.additional=n}getAttributes(){return{additional:this.additional,properties:this.properties,type:this.type}}serialize(){return JSON.stringify({additional:this.additional,properties:this.properties,type:this.type})}}var zd=(e=>(e.ANALYZER_ADD_TO_PERSONAL_DICTIONARY="ANALYZER_ADD_TO_PERSONAL_DICTIONARY",e.ANALYZER_ADD_TO_PERSONAL_DICTIONARY_RESULT="ANALYZER_ADD_TO_PERSONAL_DICTIONARY_RESULT",e.ANALYZER_GET_DICTIONARY="ANALYZER_GET_DICTIONARY",e.ANALYZER_GET_DICTIONARY_RESULT="ANALYZER_GET_DICTIONARY_RESULT",e.ANALYZER_GET_EXPLANATION="ANALYZER_GET_EXPLANATION",e.ANALYZER_GET_EXPLANATION_RESULT="ANALYZER_GET_EXPLANATION_RESULT",e.ANALYZER_RUN_LANGUAGE_ANALYSIS="ANALYZER_RUN_LANGUAGE_ANALYSIS",e.ANALYZER_RUN_LANGUAGE_ANALYSIS_RESULT="ANALYZER_RUN_LANGUAGE_ANALYSIS_RESULT",e.ANALYZER_RUN_PARAGRAPH_ANALYSIS="ANALYZER_RUN_PARAGRAPH_ANALYSIS",e.ANALYZER_RUN_PARAGRAPH_ANALYSIS_RESULT="ANALYZER_RUN_PARAGRAPH_ANALYSIS_RESULT",e.ANALYZER_RUN_STANDALONE_AUTOCORRECT="ANALYZER_RUN_STANDALONE_AUTOCORRECT",e.ANALYZER_RUN_STANDALONE_AUTOCORRECT_RESULT="ANALYZER_RUN_STANDALONE_AUTOCORRECT_RESULT",e.ANALYZER_TOGGLE_FEATURE="ANALYZER_TOGGLE_FEATURE",e.ANALYZER_TOGGLE_FEATURE_RESULT="ANALYZER_TOGGLE_FEATURE_RESULT",e.ASSISTANTS_ADD_KNOWLEDGE_FILES_REQUEST="ASSISTANTS_ADD_KNOWLEDGE_FILES_REQUEST",e.ASSISTANTS_ASK_ASSISTANT_REQUEST="ASSISTANTS_ASK_ASSISTANT_REQUEST",e.ASSISTANTS_ASK_ASSISTANT_REQUEST_ABORT="ASSISTANTS_ASK_ASSISTANT_REQUEST_ABORT",e.ASSISTANTS_ASK_ASSISTANT_REQUEST_RESULT_CHUNK="ASSISTANTS_ASK_ASSISTANT_REQUEST_RESULT_CHUNK",e.ASSISTANTS_CREATE_ASSISTANT_REQUEST="ASSISTANTS_CREATE_ASSISTANT_REQUEST",e.ASSISTANTS_DELETE_ASSISTANT_REQUEST="ASSISTANTS_DELETE_ASSISTANT_REQUEST",e.ASSISTANTS_GET_ALL_ASSISTANTS_REQUEST="ASSISTANTS_GET_ALL_ASSISTANTS_REQUEST",e.ASSISTANTS_GET_ASSISTANT_REQUEST="ASSISTANTS_GET_ASSISTANT_REQUEST",e.ASSISTANTS_HOTKEY_PRESSED="ASSISTANTS_HOTKEY_PRESSED",e.ASSISTANTS_INTERVIEWER_HOTKEY_DETAILS_REQUEST="ASSISTANTS_INTERVIEWER_HOTKEY_DETAILS_REQUEST",e.ASSISTANTS_UPDATE_ASSISTANT_REQUEST="ASSISTANTS_UPDATE_ASSISTANT_REQUEST",e.CHECK_ANALYZER_FEATURE_TOGGLED="CHECK_ANALYZER_FEATURE_TOGGLED",e.CHECK_CREDENTIALS="CHECK_CREDENTIALS",e.CHECK_CREDENTIALS_RESULT="CHECK_CREDENTIALS_RESULT",e.CHECK_CURRENT_MARKETING_POPUP="CHECK_CURRENT_MARKETING_POPUP",e.CHECK_CURRENT_MARKETING_POPUP_RESULT="CHECK_CURRENT_MARKETING_POPUP_RESULT",e.CHECK_HAS_ACCEPTED_GCU="CHECK_HAS_ACCEPTED_GCU",e.CHECK_HAS_ACCEPTED_GCU_RESULT="CHECK_HAS_ACCEPTED_GCU_RESULT",e.CHECK_HAS_EXISTING_CONTENT_SCRIPT="CHECK_HAS_EXISTING_CONTENT_SCRIPT",e.DISPATCH_SEGMENT_ANALYTICS_EVENT="DISPATCH_SEGMENT_ANALYTICS_EVENT",e.DOMAIN_EXCLUSION_ADD_DOMAIN="DOMAIN_EXCLUSION_ADD_DOMAIN",e.DOMAIN_EXCLUSION_CHECK="DOMAIN_EXCLUSION_CHECK",e.DOMAIN_EXCLUSION_CHECK_RESULT="DOMAIN_EXCLUSION_CHECK_RESULT",e.DOMAIN_EXCLUSION_REMOVE_DOMAIN="DOMAIN_EXCLUSION_REMOVE_DOMAIN",e.DOMAIN_EXCLUSION_TRIGGER_CHECK="DOMAIN_EXCLUSION_TRIGGER_CHECK",e.FREEMIUM_CHECK_QUOTA="FREEMIUM_CHECK_QUOTA",e.FREEMIUM_CHECK_QUOTA_RESULT="FREEMIUM_CHECK_QUOTA_RESULT",e.FREEMIUM_SHOW_RESTRICTION_POPUP="FREEMIUM_SHOW_RESTRICTION_POPUP",e.FREEMIUM_TOGGLE_STATE="FREEMIUM_TOGGLE_STATE",e.HIDE_MARKETING_POPUP="HIDE_MARKETING_POPUP",e.INTERNAL="INTERNAL",e.MARK_MARKETING_POPUP_VIEWED="MARK_MARKETING_POPUP_VIEWED",e.MARK_MARKETING_POPUP_VIEWED_RESULT="MARK_MARKETING_POPUP_VIEWED_RESULT",e.MARKETING_POPUP_OPT_OUT="MARKETING_POPUP_OPT_OUT",e.MCI_USER_ACCEPTED_GCU="MCI_USER_ACCEPTED_GCU",e.MCI_USER_ACCEPTED_OPTIONAL_DATA_COLLECTION="MCI_USER_ACCEPTED_OPTIONAL_DATA_COLLECTION",e.MCI_USER_DECLINED_OPTIONAL_DATA_COLLECTION="MCI_USER_DECLINED_OPTIONAL_DATA_COLLECTION",e.ASSISTANTS_TOGGLE_WIDGET="ASSISTANTS_TOGGLE_WIDGET",e.OPEN_NEW_TAB="OPEN_NEW_TAB",e.REWRITE="REWRITE",e.REWRITE_RESULT="REWRITE_RESULT",e.REWRITE_RESULT_ERROR="REWRITE_RESULT_ERROR",e.TOGGLE_ASSISTANTS_WIDGET_DISPLAYING="TOGGLE_ASSISTANTS_WIDGET_DISPLAYING",e.USER_LOGGED_IN="USER_LOGGED_IN",e.USER_LOGGED_OUT="USER_LOGGED_OUT",e.USER_PROFILE_UPDATED="USER_PROFILE_UPDATED",e.USER_QUOTA="USER_QUOTA",e.USER_QUOTA_RESULT="USER_QUOTA_RESULT",e.WORKSPACE_GET_SUBSCRIPTION="WORKSPACE_GET_SUBSCRIPTION",e.WORKSPACE_GET_SUBSCRIPTION_RESULT="WORKSPACE_GET_SUBSCRIPTION_RESULT",e))(zd||{});const Pd={ANALYZER_ADD_TO_PERSONAL_DICTIONARY:fd.object({fieldUniqueId:fd.string().required(),lang:fd.string().optional(),scriptUniqueId:fd.string().required(),word:fd.string().required()}),ANALYZER_ADD_TO_PERSONAL_DICTIONARY_RESULT:fd.object({fieldUniqueId:fd.string().required(),success:fd.boolean().required(),wordId:fd.number().integer()}),ANALYZER_GET_EXPLANATION:fd.object({errorCode:fd.number().integer().required(),errorId:fd.string().required(),errorIndex:fd.number().integer().required(),errorType:fd.string().required(),fieldUniqueId:fd.string().required(),scriptUniqueId:fd.string().required(),text:fd.string().required()}),ANALYZER_GET_DICTIONARY:fd.object({index:fd.number().required(),requestID:fd.string().required(),text:fd.string().required(),types:fd.object().keys({definitions:fd.boolean().optional(),synonyms:fd.boolean().optional}).optional()}),ANALYZER_GET_DICTIONARY_RESULT:fd.object({errored:fd.boolean(),requestID:fd.string(),result:fd.array().allow(null).items({definitionsSets:fd.array(),isPrefered:fd.boolean(),synonymsSets:fd.array()})}),ANALYZER_TOGGLE_FEATURE:fd.object({fromPopup:fd.boolean(),isAutocorrectActivated:fd.boolean().optional(),isDSDRActivated:fd.boolean().optional(),isDSDRActivatedOnEditableAreas:fd.boolean().optional(),isMultilanguageActivated:fd.boolean().optional(),isRewriteActivated:fd.boolean().optional()}),ANALYZER_TOGGLE_FEATURE_RESULT:fd.object({fromPopup:fd.boolean(),isAutocorrectActivated:fd.boolean().optional(),isDSDRActivated:fd.boolean().optional(),isDSDRActivatedOnEditableAreas:fd.boolean().optional(),isMultilanguageActivated:fd.boolean().optional(),isRewriteActivated:fd.boolean().optional(),scriptUniqueId:fd.string()}),CHECK_ANALYZER_FEATURE_TOGGLED:fd.object({scriptUniqueId:fd.string()}),ANALYZER_GET_EXPLANATION_RESULT:fd.object({error:fd.object(),errorCode:fd.number().integer().required(),errorId:fd.string().required(),errorIndex:fd.number().integer().required(),errorType:fd.string().required(),explanation:fd.object(),fieldUniqueId:fd.string().required(),scriptUniqueId:fd.string().required()}),ANALYZER_RUN_LANGUAGE_ANALYSIS:fd.object({allowedLanguage:fd.string().valid(...Object.values(As)).optional(),fieldUniqueId:fd.string().required(),offset:fd.number().integer().required(),scriptUniqueId:fd.string().required(),text:fd.string().required()}),ANALYZER_RUN_LANGUAGE_ANALYSIS_RESULT:fd.object({error:fd.object().optional(),fieldUniqueId:fd.string().required(),languages:fd.array().optional(),offset:fd.number().integer().required(),scriptUniqueId:fd.string().required(),text:fd.string().required()}).xor("error","languages"),ANALYZER_RUN_PARAGRAPH_ANALYSIS:fd.object({areaType:fd.string().required(),cursorPosition:fd.object().required(),datetime:fd.number().integer().required(),diffIndex:fd.object({end:fd.number().integer().required(),start:fd.number().integer().required()}).required(),fieldUniqueId:fd.string().required(),paragraph:fd.object().required(),paragraphLanguage:fd.string().required(),rewriteEnabled:fd.boolean().optional(),scriptUniqueId:fd.string().required(),tableRanges:fd.array().items(fd.object().keys({end:fd.number().integer(),start:fd.number().integer()}).xor("start","end")),text:fd.string().required()}),ANALYZER_RUN_PARAGRAPH_ANALYSIS_RESULT:fd.object({cursorPosition:fd.object().required(),fieldUniqueId:fd.string().required(),paragraph:fd.object().required(),paragraphLanguage:fd.string().required(),scriptUniqueId:fd.string().required(),success:fd.boolean().required(),text:fd.string().required()}),ANALYZER_RUN_STANDALONE_AUTOCORRECT:fd.object({code:fd.number().required(),corrections:fd.array().items(fd.string().required()).required(),fieldUniqueId:fd.string().required(),flags:fd.number().required(),index:fd.number().required(),length:fd.number().required(),paragraph:fd.object().required(),scriptUniqueId:fd.string().required(),text:fd.string().required(),type:fd.string().required()}),ANALYZER_RUN_STANDALONE_AUTOCORRECT_RESULT:fd.object({autocorrection:fd.string().allow(null).required(),error:fd.object().keys({code:fd.number().required(),flags:fd.number().required(),index:fd.number().required(),length:fd.number().required(),type:fd.string().required()}),fieldUniqueId:fd.string().required(),paragraph:fd.object().required(),scriptUniqueId:fd.string().required(),success:fd.boolean().required(),text:fd.string().required()}),CHECK_HAS_ACCEPTED_GCU:fd.object({scriptUniqueId:fd.string().optional()}),CHECK_HAS_ACCEPTED_GCU_RESULT:fd.object({hasAcceptedGcu:fd.boolean().required(),scriptUniqueId:fd.string().optional()}),CHECK_CREDENTIALS:fd.object({fromCache:fd.boolean(),scriptUniqueId:fd.string().required()}),CHECK_CREDENTIALS_RESULT:fd.object({isLogged:fd.boolean().required(),scriptUniqueId:fd.string().required(),user:fd.object().allow(null)}),CHECK_CURRENT_MARKETING_POPUP:fd.object({}),CHECK_CURRENT_MARKETING_POPUP_RESULT:fd.object({popup:fd.object().allow(null),success:fd.boolean().required()}),DISPATCH_SEGMENT_ANALYTICS_EVENT:fd.object({isMandatory:fd.boolean().optional(),name:fd.string().min(2).required(),properties:fd.object()}),DOMAIN_EXCLUSION_ADD_DOMAIN:fd.object({hostname:fd.string().required(),url:fd.string().required()}),DOMAIN_EXCLUSION_CHECK:fd.object({hostname:fd.string(),scriptUniqueId:fd.string(),url:fd.string()}).with("hostname","url").or("hostname","scriptUniqueId"),DOMAIN_EXCLUSION_CHECK_RESULT:fd.object({domain:fd.string(),exclusionUrlId:fd.number().integer().allow(null),hostname:fd.string(),isExcluded:fd.boolean(),isLogged:fd.boolean().required(),isPremiumUrl:fd.boolean(),protocolExcluded:fd.boolean(),scriptUniqueId:fd.string(),url:fd.string().required()}),DOMAIN_EXCLUSION_TRIGGER_CHECK:fd.object({exclusionUrlId:fd.number().integer().allow(null).required(),hostname:fd.string(),isExcluded:fd.boolean().required(),scriptUniqueId:fd.string(),url:fd.string().required()}),DOMAIN_EXCLUSION_REMOVE_DOMAIN:fd.object({exclusionUrlId:fd.number().integer().required(),hostname:fd.string().required(),url:fd.string().required()}),HIDE_MARKETING_POPUP:fd.object({}),INTERNAL:fd.object({content:fd.object()}),MARKETING_POPUP_OPT_OUT:fd.object({type:fd.string().valid("news","promotional","survey","notification").required()}),MARK_MARKETING_POPUP_VIEWED:fd.object({}),MARK_MARKETING_POPUP_VIEWED_RESULT:fd.object({success:fd.boolean().required()}),MCI_USER_ACCEPTED_GCU:fd.object().optional(),MCI_USER_ACCEPTED_OPTIONAL_DATA_COLLECTION:fd.object().optional(),MCI_USER_DECLINED_OPTIONAL_DATA_COLLECTION:fd.object().optional(),OPEN_NEW_TAB:fd.object({type:fd.string().valid("landingPage","webApp","subscriptionPage","linguisticSettings","pricingModal","assistant-create").optional(),url:fd.string()}),REWRITE:fd.object({customInstructions:fd.string(),fieldUniqueId:fd.string().required(),isAdditionalRewrite:fd.boolean().optional(),rewriteId:fd.number().when("isAdditionalRewrite",{is:!0,otherwise:fd.optional(),then:fd.required()}),style:fd.string().valid(...Object.values(Dd)).required(),text:fd.string().required()}),REWRITE_RESULT:fd.object({fieldUniqueId:fd.string().required(),isAdditionalRewrite:fd.boolean().optional(),rewriteId:fd.number().when("isAdditionalRewrite",{is:!0,otherwise:fd.required(),then:fd.optional()}),rewrites:fd.array().items(fd.string())}),REWRITE_RESULT_ERROR:fd.object({fieldUniqueId:fd.string().required(),message:fd.string().optional(),status:fd.number()}),TOGGLE_ASSISTANTS_WIDGET_DISPLAYING:fd.object({}),USER_LOGGED_IN:fd.object({}),USER_LOGGED_OUT:fd.object({}),USER_PROFILE_UPDATED:fd.object({userProfile:fd.object().required()}),USER_QUOTA:fd.object({fieldUniqueId:fd.string().required()}),USER_QUOTA_RESULT:fd.object({fieldUniqueId:fd.string().required(),rewrite:fd.object({quota:fd.number().required(),remaining:fd.number().required(),shouldShowRemainingCounter:fd.boolean().required(),used:fd.number().required()})}),WORKSPACE_GET_SUBSCRIPTION:fd.object({}),WORKSPACE_GET_SUBSCRIPTION_RESULT:fd.object({subscription:fd.object().required()}),FREEMIUM_TOGGLE_STATE:fd.object({isActiveTab:fd.boolean().required(),isRestricted:fd.boolean().required()}),FREEMIUM_SHOW_RESTRICTION_POPUP:fd.object({}),FREEMIUM_CHECK_QUOTA:fd.object({scriptUniqueId:fd.string().required()}),FREEMIUM_CHECK_QUOTA_RESULT:fd.object({quota:fd.alternatives(fd.string().valid("unlimited").required(),fd.number().required()),remaining:fd.alternatives(fd.string().valid("unlimited").required(),fd.number().required()),resetDate:fd.string().required(),scriptUniqueId:fd.string().required(),used:fd.number().required().allow(null)}),CHECK_HAS_EXISTING_CONTENT_SCRIPT:fd.object({}),ASSISTANTS_CREATE_ASSISTANT_REQUEST:fd.object({customPromptInstructions:fd.string(),description:fd.string().required(),displayName:fd.string().required()}),ASSISTANTS_ADD_KNOWLEDGE_FILES_REQUEST:fd.object({assistantId:fd.number().required(),files:fd.array().items(fd.object().keys({name:fd.string().required()}))}),ASSISTANTS_GET_ASSISTANT_REQUEST:fd.object({id:fd.number().required()}),ASSISTANTS_UPDATE_ASSISTANT_REQUEST:fd.object({customPromptInstructions:fd.string(),description:fd.string().required(),displayName:fd.string().required(),id:fd.number().required()}),ASSISTANTS_GET_ALL_ASSISTANTS_REQUEST:fd.object({}),ASSISTANTS_DELETE_ASSISTANT_REQUEST:fd.object({id:fd.number().required()}),ASSISTANTS_ASK_ASSISTANT_REQUEST:fd.object({assistantId:fd.number().required().allow(null),context:fd.string(),requestId:fd.string().required(),signal:fd.object(),userPrompt:fd.string().required()}),ASSISTANTS_TOGGLE_WIDGET:fd.object({state:fd.string().valid("HIDDEN","VISIBLE")}),ASSISTANTS_INTERVIEWER_HOTKEY_DETAILS_REQUEST:fd.object({name:fd.string().required()}),ASSISTANTS_HOTKEY_PRESSED:fd.object({name:fd.string().required()}),ASSISTANTS_ASK_ASSISTANT_REQUEST_RESULT_CHUNK:fd.object({chunk:fd.string().required().allow(null),requestId:fd.string().required(),streamHasEnded:fd.boolean().required()}),ASSISTANTS_ASK_ASSISTANT_REQUEST_ABORT:fd.object({requestId:fd.string().required()})};class Ud{static checkIsValid(e,t={}){const n=Pd[e].validate(t);if(n.error||!n.value)throw n.error}}class qd{static fromRawMessage(e){try{const t=JSON.parse(e);if((null==t?void 0:t.type)in zd)return Ud.checkIsValid(null==t?void 0:t.type,null==t?void 0:t.properties),new jd(t.type,t.properties,t.additional)}catch(t){throw t?new Error(`Message format invalid for ${e}\n${t.message}`):new Error("Message format invalid")}}static fromTypeAndProperties(e,t={}){try{return Ud.checkIsValid(e,t),new jd(e,t)}catch(n){throw n?new Error(`Message format invalid for ${JSON.stringify({properties:t,type:e})}\n${n.message}`):new Error("Message format invalid")}}}class Bd{async onMessage(e){await this.unsubscribe(),this.onMessageCallback=(t,n,r)=>{const o="string"!=typeof t?JSON.stringify(t):t;try{const t=qd.fromRawMessage(o);return e(t,n).then((e=>{void 0!==e&&r(e)})).catch((e=>{console.error(e)})),!0}catch(i){console.error({rawMessage:t,sender:n}),console.error(i)}},this.onMessageRegisteredListener=sa.create().addOnMessageListener(this.onMessageCallback)}async unsubscribe(){this.onMessageRegisteredListener&&(sa.create().removeOnMessageListener(this.onMessageRegisteredListener),this.onMessageRegisteredListener=void 0)}}class Zd extends Bd{async sendMessage(e,t){const n=sa.create(),r=e.serialize();if(!t||t.tabId===ia.SDK_TAB_ID)return void(await n.sendMessage(r));const o=await n.getAllTabs(),i=this.filterByOptions(o,t);if(!i.length)throw new Error("TAB_NOT_ELIGIBLE");i.forEach((({id:e})=>n.sendTabMessage({message:r,tabId:e})))}filterByOptions(e,t){const n=e.filter((e=>this.checkIsTabEligibleToReceiveMessage(e)));return t.allTabs?n:t.tabId?n.filter((({id:e})=>e===t.tabId)):t.onlyActiveTab?n.filter((({active:e})=>e)):t.onlyInactiveTabs?n.filter((({active:e})=>!e)):[]}checkIsTabEligibleToReceiveMessage(e){var t;if(e.id&&(null==(t=e.url)?void 0:t.length))try{return new URL(e.url),!0}catch{return!1}return!1}}const Fd=class e{static getEndOfDayDate(){const t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate(),e.HOURS_IN_DAY-1,e.MINUTES_IN_HOUR-1,e.SECONDS_IN_MINUTE-1,e.MILLISECONDS_IN_SECOND)}static getTimezoneOffsetInMilliseconds(t){return t.getTimezoneOffset()*e.MILLISECONDS_IN_SECOND*e.SECONDS_IN_MINUTE}};Fd.HOURS_IN_DAY=24,Fd.MILLISECONDS_IN_SECOND=1e3,Fd.MINUTES_IN_HOUR=60,Fd.SECONDS_IN_MINUTE=60;let Hd=Fd;class Vd{constructor(e,t,n){this.onCountdownEnd=e,this.alarmName=t,this.alarmsService=n}getRemainingTime(){return 0}start(e,t,n){this.alarmsService.create(this.alarmName,this.onCountdownEnd,{periodInMinutes:n/Hd.MILLISECONDS_IN_SECOND/Hd.SECONDS_IN_MINUTE,when:Date.now()+(t-e)})}stopInterval(){this.alarmsService.clear(this.alarmName)}}let Wd=class{constructor(e,t){this.formatter=e,this.onCountdownEnd=t,this.remainingTimeInSeconds=0}start(e,t,n){this.remainingTimeInSeconds=Math.floor((t-e)/Hd.MILLISECONDS_IN_SECOND),this.intervalId=setInterval((()=>{this.remainingTimeInSeconds=Math.max(0,this.remainingTimeInSeconds-n/Hd.MILLISECONDS_IN_SECOND),0===this.remainingTimeInSeconds&&(this.onCountdownEnd(),clearInterval(this.intervalId))}),n)}getRemainingTime(){return this.formatter.format(this.remainingTimeInSeconds)}stopInterval(){clearInterval(this.intervalId)}};var Gd=(e=>(e.STANDARD="STANDARD",e.ALARM="ALARM",e))(Gd||{});function Qd(e,t,n,r){return t===Gd.ALARM?new Vd(e,r,n):new Wd(null,e)}var Kd=(e=>(e.UNLIMITED_NEXT_RESET_DATE="freemium-quota-request-unlimited-next-reset-date",e.LIMITED_NEXT_RESET_DATE="freemium-quota-request-limited-next-reset-date",e.LIMITED_PERIODIC_TIME="freemium-quota-request-limited-periodic-time",e))(Kd||{});class Yd{constructor(e,t){this.fetchAndUpdateQuota=e,this.countdownFactory=t,this.nextResetDateCountdown=null}startQuotaCheckInterval(e){var t;const n=new Date(e.resetDate).getTime();null==(t=this.nextResetDateCountdown)||t.stopInterval(),this.nextResetDateCountdown=this.countdownFactory(this.fetchAndUpdateQuota,Kd.UNLIMITED_NEXT_RESET_DATE),this.nextResetDateCountdown.start(Date.now(),n,Hd.MILLISECONDS_IN_SECOND)}stopInterval(){this.nextResetDateCountdown.stopInterval()}}class Jd{constructor(e,t){this.fetchAndUpdateQuota=e,this.alarmCountdownFactory=t,this.lastCheckCountdown=null,this.nextResetDateCountdown=null}startQuotaCheckInterval(e){var t,n;const r=Date.now(),o=new Date(e.resetDate).getTime();null==(t=this.lastCheckCountdown)||t.stopInterval(),null==(n=this.nextResetDateCountdown)||n.stopInterval(),this.lastCheckCountdown=this.alarmCountdownFactory(this.fetchAndUpdateQuota,Kd.LIMITED_PERIODIC_TIME),this.lastCheckCountdown.start(r,r+Hd.MILLISECONDS_IN_SECOND*Hd.SECONDS_IN_MINUTE,Hd.MILLISECONDS_IN_SECOND),this.nextResetDateCountdown=this.alarmCountdownFactory(this.fetchAndUpdateQuota,Kd.LIMITED_NEXT_RESET_DATE),this.nextResetDateCountdown.start(r,o,Hd.MILLISECONDS_IN_SECOND)}stopInterval(){this.lastCheckCountdown.stopInterval(),this.nextResetDateCountdown.stopInterval()}}const Xd=e=>(t,n)=>Qd(t,Gd.ALARM,e,n);class _d{static checkIsQuotaReached(e){return"unlimited"!==e.remaining&&e.remaining<=0}}class $d{constructor(e,t,n){this.alarmsService=e,this.requestQuota=t,this.toggleFreemiumState=n,this.currentState=void 0}updateQuota(e){var t;this.quota=e,null==(t=this.quotaRequester)||t.stopInterval(),this.quotaRequester=((e,t,n)=>"unlimited"===e.remaining?new Yd(t,Xd(n)):new Jd(t,Xd(n)))(e,(()=>this.fetchAndUpdateQuota()),this.alarmsService),this.quotaRequester.startQuotaCheckInterval(e),this.maybeToggleFreemiumState(e)}getQuota(){return this.quota}async fetchAndUpdateQuota(){try{const e=await this.requestQuota();this.updateQuota(e)}catch(e){this.quotaRequester.stopInterval(),this.quotaRequester.startQuotaCheckInterval(this.quota)}}maybeToggleFreemiumState(e){const t=_d.checkIsQuotaReached(e)?"restricted":"allowed";void 0!==this.currentState&&this.currentState!==t&&this.toggleFreemiumState(t),this.currentState=t}}const ep={quota:"unlimited",remaining:"unlimited",resetDate:sd.now().plus({minutes:1}).toISO(),used:0},tp={1:"spell",2:"grammar",3:"typo",4:"context",5:"frequency",6:"press",8:"style"},np={context:4,frequency:5,grammar:2,press:6,spell:1,style:8,typo:3};class rp{constructor(e,t,n){this.mciBrowser=sa.create(),this.alarmsService=new aa,this.browserAction=new la,this.cookie=new ca,this.cookieDomain="https://merci-app.com",this.storage=new ud,this.freemium=new $d(this.alarmsService,(()=>this.getUserAnalyzedWordsQuota()),(e=>this.toggleFreemiumState(e))),this.onAlarm=async({name:e})=>{e.includes("freemium-quota-request")&&this.freemium.updateQuota(await this.getUserAnalyzedWordsQuota())},this.sendBackMessage=(e,t)=>{var n;(null==(n=t.tab)?void 0:n.id)>=0?this.hostMessengerService.sendMessage(e,{tabId:t.tab.id}):console.error("Unhandled message:",e)},this.onUserLoginStateUpdated=async()=>{let e;try{e=await this.cookie.getCredentials(this.cookieDomain)}catch(t){console.error("Error: Invalid cookie credentials",e)}e?(await this.retrieveUserProfile(e),this.freemium.updateQuota(await this.getUserAnalyzedWordsQuota()),this.notifyWebExtensionEnabledIfNeeded()):e||(await this.notifyWebExtensionLogout(),await this.onUserSignOut()),await this.updateAllTabsIcon({isLoggedOff:!e})},this.notifyAllTabs=e=>{this.hostMessengerService.sendMessage(e,{allTabs:!0})},this.setUninstallURLForUser=e=>{this.mciBrowser.setUninstallURL("https://www.merci-app.com/uninstall/extension"+((null==e?void 0:e.user.id)&&(null==e?void 0:e.user.emailAddress)?`?userId=${e.user.id}&userEmailAddress=${e.user.emailAddress}`:""))},this.sendWarehouseAnalyticsMessage=async(e,t,n)=>{const r=n.tab.url,{fieldId:o,name:i,scriptId:s,valueNumber:a,valueText:l}=t.getAttributes().properties;try{await this.api.analytics.sendWarehouseUserEvent({fieldId:o,jwt:e,name:i,origin:r.substring(0,2047),scriptId:s,valueNumber:a,valueText:l})}catch(c){console.error({error:c,method:"sendWarehouseAnalyticsMessage"})}},this.openNewTabFromMessage=(e,t)=>{var n,r;const{type:o,url:i}=e;let s;const a="user"===(null==(r=null==(n=null==t?void 0:t.workspace)?void 0:n.userRole)?void 0:r.name);if(i)s=i;else if("landingPage"===o)s="https://www.merci-app.com";else if("subscriptionPage"===o){const e=(a?"":"?pricing-modal=true")||"?utm_source=webextension&utm_medium=cta";s=`https://web.merci-app.com/u/${t.workspace.id}/settings/subscription${e}`}else s="linguisticSettings"===o?`https://web.merci-app.com/u/${t.workspace.id}/linguistic/spelling`:"pricingModal"===o?`https://web.merci-app.com/u/${t.workspace.id}/documents/?pricing-modal=true`:"assistant-create"===o?"https://web.merci-app.com/u/assistants/list/create":"https://web.merci-app.com";s&&this.mciBrowser.createTab(s)},this.updateIcon=({tabId:e,isExcluded:t,isPremiumUrl:n=!1,isLoggedOff:r=!1})=>{let o="#069d75",i="";r?(i=" !",o="#c82c55"):n?i="PRO":t&&(i="Zzz"),this.browserAction.setBadgeText({tabId:e,text:i}),this.browserAction.setBadgeBackgroundColor({color:o,tabId:e})},this.formatText=e=>{const t=e=>"\t".repeat(e.length);let n=e;return n=n.replace(/^@[A-zÀ-ÿ0-9]+\s*/g,t),n=n.replace(/\s*@[A-zÀ-ÿ0-9]+\s*$/g,t),n=n.replace(/[\s.,]+@[A-zÀ-ÿ0-9]+[\s.,]+/g,(e=>{const t=e.indexOf("@");return`${e.slice(0,t)}A${e.slice(t+1).toLowerCase()}`})),n},Es.initConfig(e,t,n),this.api=new Bs,this.hostMessengerService=new Zd,this.hostMessengerService.onMessage(this.onMessage()),this.mciBrowser.addOnInstalledListener((()=>this.onInstall())),this.retainInstalledVersion()}logMessage(e,t){console.log("Background script received message",e,t.tab?`from a content script: ${t.tab.url}`:"from the extension")}async onInstall(){const e=await this.storage.getInstallStatus();let t=await this.checkHasAcceptedGcu();e?(await this.cookie.setAcceptedGcu(),t=!0):t||await this.mciBrowser.createTab(this.mciBrowser.getExtensionUrl("static/installation-page-optin/opt-in.html")),await this.storage.setInstallStatus(),await this.executeContentScript()}async notifyWebExtensionEnabledIfNeeded(){const e=await this.storage.getUserProfile();if(!(null==e?void 0:e.checkIsEmpty())){const t=e.user.id;if(await this.storage.shouldNotifyUserEnabledWebExtension(t))try{await this.storage.setUserEnabledWebExtension(t)}catch(dd){console.error(dd)}}}async notifyWebExtensionLogout(){await this.storage.setUserDisabledWebExtension()}async onAddWordDictionary(e,t){if(!e)return null;const{word:n,lang:r}=t.getAttributes().properties;try{const o=await this.api.words.add({jwt:e,lang:r,word:n}),{savedWords:i}=o.data;return{fieldUniqueId:t.getAttributes().properties.fieldUniqueId,success:!0,wordId:i[0].id}}catch(o){return console.error(o),401===(null==o?void 0:o.status)?(this.onUserSignOut(),null):{fieldUniqueId:t.getAttributes().properties.fieldUniqueId,success:!1}}}async onDomainExclusionAdd(e,t,n){const{properties:r}=t.getAttributes(),{url:o}=r;let{hostname:i}=r;if(!i){i=new URL(n.tab.url).host}if(e)try{await this.api.exclusionUrl.add({jwt:e,url:i});const t=await this.api.exclusionUrl.isExcluded({isAuthenticated:!0,jwt:e,url:o}),{isExcluded:n,exclusionUrlId:r=null}=t.data,s=qd.fromTypeAndProperties(zd.DOMAIN_EXCLUSION_CHECK_RESULT,{exclusionUrlId:r,hostname:i,isExcluded:n,isLogged:!0,url:o});this.hostMessengerService.sendMessage(s),this.notifyAllTabs(qd.fromTypeAndProperties(zd.DOMAIN_EXCLUSION_TRIGGER_CHECK,{exclusionUrlId:r,hostname:i,isExcluded:n,url:o}))}catch(s){401===s.status&&await this.onUserSignOut(),console.error(s)}}async onDomainExclusionRemove(e,t,n){const{properties:r}=t.getAttributes();let{hostname:o}=r;if(!o){o=new URL(n.tab.url).host}if(e)try{await this.api.exclusionUrl.disable({exclusionUrlId:t.getAttributes().properties.exclusionUrlId,jwt:e});const n=await this.api.exclusionUrl.isExcluded({isAuthenticated:!0,jwt:e,url:t.getAttributes().properties.url}),{isExcluded:r,exclusionUrlId:o}=n.data,i=qd.fromTypeAndProperties(zd.DOMAIN_EXCLUSION_CHECK_RESULT,{exclusionUrlId:o,hostname:t.getAttributes().properties.hostname,isExcluded:r,isLogged:!0,url:t.getAttributes().properties.url});this.hostMessengerService.sendMessage(i),this.notifyAllTabs(qd.fromTypeAndProperties(zd.DOMAIN_EXCLUSION_TRIGGER_CHECK,{exclusionUrlId:t.getAttributes().properties.exclusionUrlId,hostname:t.getAttributes().properties.hostname,isExcluded:r,url:t.getAttributes().properties.url}))}catch(i){401===i.status&&this.onUserSignOut(),console.error(i)}}async onDomainExclusionCheck(e,t,n){var r;const{hostname:o,scriptUniqueId:i,url:s}=t.getAttributes().properties,a={hostname:o||n.tab.url,scriptUniqueId:i,url:s};await this.fetchDomainExclusionCheckData(e,i,n,s,a);const l=qd.fromTypeAndProperties(zd.DOMAIN_EXCLUSION_CHECK_RESULT,a);(null==(r=n.tab)?void 0:r.id)?this.hostMessengerService.sendMessage(l,{tabId:n.tab.id}):this.hostMessengerService.sendMessage(l)}async onCheckHasAcceptedGcu(e,t){var n;const r=await this.checkHasAcceptedGcu(),o=qd.fromTypeAndProperties(zd.CHECK_HAS_ACCEPTED_GCU_RESULT,{hasAcceptedGcu:r,scriptUniqueId:e.getAttributes().properties.scriptUniqueId});(null==(n=t.tab)?void 0:n.id)?await this.hostMessengerService.sendMessage(o,{tabId:t.tab.id}):await this.hostMessengerService.sendMessage(o)}onIconUpdateRequest(e,t){t.tab.url===e.getAttributes().properties.url&&this.updateIcon({isExcluded:e.getAttributes().properties.isExcluded,tabId:t.tab.id})}async onProfileUpdate(e){const{userProfile:t}=e.getAttributes().properties,n=qd.fromTypeAndProperties(zd.USER_PROFILE_UPDATED,{userProfile:t});await this.storage.setUserProfile(t),this.notifyAllTabs(n)}async onExplanationFetch(e,t,n){var r;if(!e)return null;const{fieldUniqueId:o,scriptUniqueId:i,text:s,errorIndex:a,errorType:l,errorCode:c,errorId:u}=t.getAttributes().properties,d={errorCode:c,errorId:u,errorIndex:a,errorType:l,fieldUniqueId:o,scriptUniqueId:i},p=n.tab.url;try{const t=await this.api.analyze.getExplanation({code:c,fieldId:o,index:a,jwt:e,origin:p.substring(0,2047),scriptId:i,text:s,type:np[l]});d.explanation=t.data}catch(h){console.error(h),d.error={message:h.data.message,stack:h.data.stack,status:h.data.statusCode},401===(null==(r=null==h?void 0:h.data)?void 0:r.statusCode)&&this.onUserSignOut()}return d}onExplanationSend(e,t){var n;try{const r=qd.fromTypeAndProperties(zd.ANALYZER_GET_EXPLANATION_RESULT,e.getAttributes().properties);(null==(n=t.tab)?void 0:n.id)?this.hostMessengerService.sendMessage(r,{tabId:t.tab.id}):this.hostMessengerService.sendMessage(r)}catch(r){console.error(r)}}async onAutocorrection(e,t,n){if(!e)return null;const{fieldUniqueId:r,paragraph:o,scriptUniqueId:i,corrections:s,text:a,type:l,code:c,index:u,length:d,flags:p}=t,h={autocorrection:null,error:{code:c,flags:p,index:u,length:d,type:l},fieldUniqueId:r,paragraph:o,scriptUniqueId:i,success:!1,text:a},f=n.tab.url.split(/[?#]/)[0];if(o){h.paragraph={hash:o.hash,length:o.text.length,offset:o.offset,text:o.text};try{const t=await this.api.analyze.getAutocorrection({code:c,fieldId:r,flags:p,index:u,jwt:e,length:d,origin:f.substring(0,2047),scriptId:i,suggestions:s,text:this.formatText(o.text),type:np[l]});h.autocorrection=t.data.result,h.success=!0}catch(m){console.error(m),m&&401===m.status&&await this.onUserSignOut(),h.success=!1}}return h}async onAnalyzeParagraph(e,t,n,r){const{cursorPosition:o,diffIndex:i,fieldUniqueId:s,paragraphLanguage:a,paragraph:l,rewriteEnabled:c,scriptUniqueId:u,tableRanges:d,text:p}=t.getAttributes().properties;if(!e||!l)return null;const h={cursorPosition:o,fieldUniqueId:s,paragraph:l,paragraphLanguage:a,scriptUniqueId:u,success:!1,text:p},f=n.tab.url.split(/[?#]/)[0],m=this.getSubscriptionStatus(r);h.paragraph={hash:l.hash,length:l.text.length,offset:l.offset};try{let t;d&&(t=d.map((e=>e.start?{start:e.start-l.offset}:e.end?{end:e.end-l.offset}:{})));const n=await this.api.analyze.new({containsNewlines:p.includes("\n"),cursorIndex:o.start-l.offset,diffIndex:i,fieldId:s,jwt:e,language:a,onlyPrimaryErrors:!1,origin:f.substring(0,2047),rewriteEnabled:c,scriptId:u,tableRanges:t,text:this.formatText(l.text)});let{corrections:r}=n.data;r||(r={errors:[]}),r.errors?r.errors=r.errors.map((e=>{var t;const{code:n,label:r,correctionLabel:o,definedRestrictionLevel:i,diagnosis:s,flags:a,id:l,invisibleChars:c,isAutoCorrectEligible:u,isAutoCorrectImmediateEligible:d,isPremium:p,isPremiumRestricted:h,isStyle:f,isStyleRestricted:g,learnableError:y,restrictionLevel:b,rewriteActions:C,source:x,explanationLocationDistance:v=0}=e,w=!e.primary&&void 0!==e.groupId,A=tp[e.type]||"unknown",E=tp[e.markerType||e.type]||"unknown";return{autoCorrectionUndoneHash:e.isAutoCorrectEligible?`${e.type}-${n}-${r}`:null,code:n,correctionLabel:o,corrections:null==(t=e.corrections)?void 0:t.map((e=>({word:e}))),definedRestrictionLevel:i,diagnosis:s,explanationLocationDistance:v,flags:a,id:l,index:e.location.offset,invisibleChars:c,isAutoCorrectEligible:u,isAutoCorrectImmediateEligible:d,isPremium:p,isPremiumRestricted:h,isSecondary:w,isStyle:f,isStyleRestricted:g,label:r,lang:e.lang,learnableError:y,length:e.location.length,markerType:E,order:e.id,restrictionLevel:b,rewriteActions:C,source:x,subscriptionStatus:m,type:A}})).sort(((e,t)=>e.index-t.index)):r.errors=[],h.paragraph.corrections=r,h.success=!0;const g=n.data.usage||ep;this.freemium.updateQuota(g)}catch(g){console.error(g),h.success=!1,h.paragraph.error=g?{message:g.message,stack:g.stack,throttle:!0}:{message:"INTERNAL_SERVER_ERROR",throttle:!0},g&&401===g.status&&await this.onUserSignOut()}return h}async checkCurrentPopup(e,t,n){var r,o;try{const t=await this.api.popup.getCurrent({jwt:e});(null==(r=n.tab)?void 0:r.id)&&this.hostMessengerService.sendMessage(qd.fromTypeAndProperties(zd.CHECK_CURRENT_MARKETING_POPUP_RESULT,{popup:(null==(o=t.data)?void 0:o.popup)||null,success:!0}),{tabId:n.tab.id})}catch(i){console.error("Error while fetching active popup:",i)}}async markPopupAsViewed(e,t,n){var r,o;try{const t=await this.api.popup.markAsViewed({jwt:e});(null==(r=n.tab)?void 0:r.id)&&this.hostMessengerService.sendMessage(qd.fromTypeAndProperties(zd.MARK_MARKETING_POPUP_VIEWED_RESULT,{success:(null==(o=t.data)?void 0:o.success)||!1}),{tabId:n.tab.id})}catch(i){console.error("Error while marking offer as viewed:",i)}}async optOutFromPopups(e,t){try{const n=await this.api.popup.optOut({jwt:e,type:t.getAttributes().properties.type});if(!(null==n?void 0:n.data.success))throw new Error(`Opt-out failed: ${JSON.stringify(n.data)}`)}catch(n){console.error(n)}}async hidePopup(){try{this.notifyAllTabs(qd.fromTypeAndProperties(zd.HIDE_MARKETING_POPUP))}catch(e){console.error(e)}}async onLanguageCheck(e,t,n){if(!e)return null;const{fieldUniqueId:r,offset:o,allowedLanguage:i,scriptUniqueId:s,text:a}=t.getAttributes().properties,l={fieldUniqueId:r,offset:o,scriptUniqueId:s,text:a},c=n.tab.url;try{const t=await this.api.analyze.checkLanguage({allowedLanguage:i,fieldId:r,jwt:e,origin:c.substring(0,2047),scriptId:s,text:this.formatText(a)});l.languages=t.data.languages}catch(u){if(console.error(u),401===(null==u?void 0:u.status))return this.onUserSignOut(),null;l.error={message:u.message,stack:u.stack,throttle:!0}}return l}async retrieveUserProfile(e){try{const t=await this.api.users.me({jwt:e}),n=await this.api.subscription.getAllPlans({jwt:e}),r=po(t.data),o=Wr(n.data.plans);return await this.storage.setAvailablePlans(o.availablePlans),await this.storage.setUserProfile(r),!0}catch(dd){return dd&&401===dd.status&&this.onUserSignOut(),!1}}async onUserSignOut(){await this.storage.setUserProfile(null),await this.cookie.removeCredentials(this.cookieDomain);try{const e=qd.fromTypeAndProperties(zd.USER_LOGGED_OUT,{});this.notifyAllTabs(e)}catch(e){console.error(e)}}async onAnalyzeDictionary(e,t,n){var r,o;try{const{properties:o}=t.getAttributes(),{text:i,index:s,types:a,requestID:l}=o,c={requestID:l,result:(await this.api.analyze.getDictionary({index:s,jwt:e,text:i,types:a})).data.result};this.hostMessengerService.sendMessage(qd.fromTypeAndProperties(zd.ANALYZER_GET_DICTIONARY_RESULT,c),{tabId:null==(r=n.tab)?void 0:r.id})}catch(i){this.hostMessengerService.sendMessage(qd.fromTypeAndProperties(zd.ANALYZER_GET_DICTIONARY_RESULT,{errored:!0,requestID:t.getAttributes().properties.requestID,result:[]}),{tabId:null==(o=n.tab)?void 0:o.id}),console.error(i)}}async onAnalyzeFeatureToggle(e,t){const{properties:n}=t.getAttributes(),{isDSDRActivated:r,isDSDRActivatedOnEditableAreas:o,isAutocorrectActivated:i,isMultilanguageActivated:s,isRewriteActivated:a}=n;try{await this.api.users.update({isAutocorrectActivated:i,isDSDRActivated:r,isDSDRActivatedOnEditableAreas:o,isMultilanguageActivated:s,isRewriteActivated:a,jwt:e}),await this.retrieveUserProfile(e),await this.hostMessengerService.sendMessage(qd.fromTypeAndProperties(zd.ANALYZER_TOGGLE_FEATURE_RESULT,n),{allTabs:!0}),await this.hostMessengerService.sendMessage(qd.fromTypeAndProperties(zd.ANALYZER_TOGGLE_FEATURE_RESULT,n))}catch(l){console.error(l)}}async onCheckAnalyzerFeatureToggled(e,t){var n;try{const{properties:{scriptUniqueId:r}}=e,o=await this.storage.getUserProfile();await this.hostMessengerService.sendMessage(qd.fromTypeAndProperties(zd.ANALYZER_TOGGLE_FEATURE_RESULT,{isDSDRActivated:(null==o?void 0:o.checkIsDSDREnabled())??!1,isDSDRActivatedOnEditableAreas:(null==o?void 0:o.checkIsDSDREnabledOnEditableAreas())??!1,scriptUniqueId:r}),{tabId:null==(n=t.tab)?void 0:n.id})}catch(r){console.error(r)}}async getUserAnalyzedWordsQuota(){try{const{jwt:e}=await this.getCredentials(),{data:t}=await this.api.users.getAnalyzedWordsQuota({jwt:e});return t}catch(e){if(console.error(e),404===e.status)return ep;throw e}}async getUserQuota(e,t,n){var r;try{const o=await this.api.users.getQuota({jwt:e}),i=qd.fromTypeAndProperties(zd.USER_QUOTA_RESULT,{fieldUniqueId:t.fieldUniqueId,...o.data});(null==(r=n.tab)?void 0:r.id)?this.hostMessengerService.sendMessage(i,{tabId:n.tab.id}):this.hostMessengerService.sendMessage(i)}catch(o){console.error(o)}}async getRewrite(e,t,n){var r,o;let i;const{customInstructions:s,fieldUniqueId:a,isAdditionalRewrite:l,rewriteId:c,style:u,text:d}=t;try{const t=await this.api.rewrite.new({customInstructions:s,isAdditionalRewrite:l,jwt:e,rewriteId:c,style:u,text:d});i=qd.fromTypeAndProperties(zd.REWRITE_RESULT,{...t.data,fieldUniqueId:a,isAdditionalRewrite:l})}catch(p){console.error("error",p),i=qd.fromTypeAndProperties(zd.REWRITE_RESULT_ERROR,{fieldUniqueId:a,message:null==(r=null==p?void 0:p.data)?void 0:r.message,status:null==p?void 0:p.status})}(null==(o=n.tab)?void 0:o.id)?this.hostMessengerService.sendMessage(i,{tabId:n.tab.id}):this.hostMessengerService.sendMessage(i)}async updateAllTabsIcon({isLoggedOff:e}){(await this.mciBrowser.getAllTabs()).forEach((({id:t})=>this.updateIcon({isLoggedOff:e,tabId:t})))}}class op extends Error{constructor(){super(...arguments),this.name="SdkAuthenticationError"}}var ip={exports:{}},sp={exports:{}};const ap=a(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var lp;function cp(){return lp||(lp=1,function(e,t){var n;e.exports=(n=n||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==i&&i.crypto&&(n=i.crypto),!n)try{n=ap}catch(g){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},a=s.lib={},l=a.Base=function(){return{extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=a.WordArray=l.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i>>2]>>>24-i%4*8&255;t[r+i>>>2]|=s<<24-(r+i)%4*8}else for(var a=0;a>>2]=n[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},p=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},h=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(dd){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},f=a.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,i=r.sigBytes,s=this.blockSize,a=i/(4*s),l=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,u=e.min(4*l,i);if(l){for(var d=0;d>>2]|=e[o]<<24-o%4*8;t.call(this,r,n)}else t.apply(this,arguments)};r.prototype=e}}(),n.lib.WordArray)}(fp)),fp.exports}var gp,yp={exports:{}};function bp(){return gp||(gp=1,function(e,t){var n;e.exports=(n=cp(),function(){var e=n,t=e.lib.WordArray,r=e.enc;function o(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var n=e.length,r=[],o=0;o>>1]|=e.charCodeAt(o)<<16-o%2*16;return t.create(r,2*n)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>16-i%4*8&65535);r.push(String.fromCharCode(s))}return r.join("")},parse:function(e){for(var n=e.length,r=[],i=0;i>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return t.create(r,2*n)}}}(),n.enc.Utf16)}(yp)),yp.exports}var Cp,xp={exports:{}};function vp(){return Cp||(Cp=1,function(e,t){var n;e.exports=(n=cp(),function(){var e=n,t=e.lib.WordArray;function r(e,n,r){for(var o=[],i=0,s=0;s>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return t.create(o,i)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a>>6*(3-a)&63));var l=r.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return t.create(o,i)}e.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,o=t?this._safe_map:this._map;e.clamp();for(var i=[],s=0;s>>2]>>>24-s%4*8&255)<<16|(n[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|n[s+2>>>2]>>>24-(s+2)%4*8&255,l=0;l<4&&s+.75*l>>6*(3-l)&63));var c=o.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,o=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,s=e[t+0],l=e[t+1],h=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],y=e[t+6],b=e[t+7],C=e[t+8],x=e[t+9],v=e[t+10],w=e[t+11],A=e[t+12],E=e[t+13],S=e[t+14],O=e[t+15],T=i[0],k=i[1],M=i[2],L=i[3];T=c(T,k,M,L,s,7,a[0]),L=c(L,T,k,M,l,12,a[1]),M=c(M,L,T,k,h,17,a[2]),k=c(k,M,L,T,f,22,a[3]),T=c(T,k,M,L,m,7,a[4]),L=c(L,T,k,M,g,12,a[5]),M=c(M,L,T,k,y,17,a[6]),k=c(k,M,L,T,b,22,a[7]),T=c(T,k,M,L,C,7,a[8]),L=c(L,T,k,M,x,12,a[9]),M=c(M,L,T,k,v,17,a[10]),k=c(k,M,L,T,w,22,a[11]),T=c(T,k,M,L,A,7,a[12]),L=c(L,T,k,M,E,12,a[13]),M=c(M,L,T,k,S,17,a[14]),T=u(T,k=c(k,M,L,T,O,22,a[15]),M,L,l,5,a[16]),L=u(L,T,k,M,y,9,a[17]),M=u(M,L,T,k,w,14,a[18]),k=u(k,M,L,T,s,20,a[19]),T=u(T,k,M,L,g,5,a[20]),L=u(L,T,k,M,v,9,a[21]),M=u(M,L,T,k,O,14,a[22]),k=u(k,M,L,T,m,20,a[23]),T=u(T,k,M,L,x,5,a[24]),L=u(L,T,k,M,S,9,a[25]),M=u(M,L,T,k,f,14,a[26]),k=u(k,M,L,T,C,20,a[27]),T=u(T,k,M,L,E,5,a[28]),L=u(L,T,k,M,h,9,a[29]),M=u(M,L,T,k,b,14,a[30]),T=d(T,k=u(k,M,L,T,A,20,a[31]),M,L,g,4,a[32]),L=d(L,T,k,M,C,11,a[33]),M=d(M,L,T,k,w,16,a[34]),k=d(k,M,L,T,S,23,a[35]),T=d(T,k,M,L,l,4,a[36]),L=d(L,T,k,M,m,11,a[37]),M=d(M,L,T,k,b,16,a[38]),k=d(k,M,L,T,v,23,a[39]),T=d(T,k,M,L,E,4,a[40]),L=d(L,T,k,M,s,11,a[41]),M=d(M,L,T,k,f,16,a[42]),k=d(k,M,L,T,y,23,a[43]),T=d(T,k,M,L,x,4,a[44]),L=d(L,T,k,M,A,11,a[45]),M=d(M,L,T,k,O,16,a[46]),T=p(T,k=d(k,M,L,T,h,23,a[47]),M,L,s,6,a[48]),L=p(L,T,k,M,b,10,a[49]),M=p(M,L,T,k,S,15,a[50]),k=p(k,M,L,T,g,21,a[51]),T=p(T,k,M,L,A,6,a[52]),L=p(L,T,k,M,f,10,a[53]),M=p(M,L,T,k,v,15,a[54]),k=p(k,M,L,T,l,21,a[55]),T=p(T,k,M,L,C,6,a[56]),L=p(L,T,k,M,O,10,a[57]),M=p(M,L,T,k,y,15,a[58]),k=p(k,M,L,T,E,21,a[59]),T=p(T,k,M,L,m,6,a[60]),L=p(L,T,k,M,w,10,a[61]),M=p(M,L,T,k,h,15,a[62]),k=p(k,M,L,T,x,21,a[63]),i[0]=i[0]+T|0,i[1]=i[1]+k|0,i[2]=i[2]+M|0,i[3]=i[3]+L|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var i=e.floor(r/4294967296),s=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,l=a.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,o,i,s){var a=e+(t&n|~t&r)+o+s;return(a<>>32-i)+t}function u(e,t,n,r,o,i,s){var a=e+(t&r|n&~r)+o+s;return(a<>>32-i)+t}function d(e,t,n,r,o,i,s){var a=e+(t^n^r)+o+s;return(a<>>32-i)+t}function p(e,t,n,r,o,i,s){var a=e+(n^(t|~r))+o+s;return(a<>>32-i)+t}t.MD5=i._createHelper(l),t.HmacMD5=i._createHmacHelper(l)}(Math),n.MD5)}(Op)),Op.exports}var kp,Mp={exports:{}};function Lp(){return kp||(kp=1,function(e,t){var n,r,o,i,s,a,l,c;e.exports=(c=cp(),r=(n=c).lib,o=r.WordArray,i=r.Hasher,s=n.algo,a=[],l=s.SHA1=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],l=n[4],c=0;c<80;c++){if(c<16)a[c]=0|e[t+c];else{var u=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=u<<1|u>>>31}var d=(r<<5|r>>>27)+l+a[c];d+=c<20?1518500249+(o&i|~o&s):c<40?1859775393+(o^i^s):c<60?(o&i|o&s|i&s)-1894007588:(o^i^s)-899497514,l=s,s=i,i=o<<30|o>>>2,o=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=i._createHelper(l),n.HmacSHA1=i._createHmacHelper(l),c.SHA1)}(Mp)),Mp.exports}var Rp,Np={exports:{}};function Dp(){return Rp||(Rp=1,function(e,t){var n;e.exports=(n=cp(),function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,s=t.algo,a=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)t(r)&&(o<8&&(a[o]=n(e.pow(r,.5))),l[o]=n(e.pow(r,1/3)),o++),r++}();var c=[],u=s.SHA256=i.extend({_doReset:function(){this._hash=new o.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],a=n[4],u=n[5],d=n[6],p=n[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var f=c[h-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[h-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[h]=m+c[h-7]+y+c[h-16]}var b=r&o^r&i^o&i,C=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),x=p+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&d)+l[h]+c[h];p=d,d=u,u=a,a=s+x|0,s=i,i=o,o=r,r=x+(C+b)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+p|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(u),t.HmacSHA256=i._createHmacHelper(u)}(Math),n.SHA256)}(Np)),Np.exports}var Ip,jp={exports:{}};var zp,Pp={exports:{}};function Up(){return zp||(zp=1,function(e,t){var n;e.exports=(n=cp(),pp(),function(){var e=n,t=e.lib.Hasher,r=e.x64,o=r.Word,i=r.WordArray,s=e.algo;function a(){return o.create.apply(o,arguments)}var l=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=a()}();var u=s.SHA512=t.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],a=n[4],u=n[5],d=n[6],p=n[7],h=r.high,f=r.low,m=o.high,g=o.low,y=i.high,b=i.low,C=s.high,x=s.low,v=a.high,w=a.low,A=u.high,E=u.low,S=d.high,O=d.low,T=p.high,k=p.low,M=h,L=f,R=m,N=g,D=y,I=b,j=C,z=x,P=v,U=w,q=A,B=E,Z=S,F=O,H=T,V=k,W=0;W<80;W++){var G,Q,K=c[W];if(W<16)Q=K.high=0|e[t+2*W],G=K.low=0|e[t+2*W+1];else{var Y=c[W-15],J=Y.high,X=Y.low,_=(J>>>1|X<<31)^(J>>>8|X<<24)^J>>>7,$=(X>>>1|J<<31)^(X>>>8|J<<24)^(X>>>7|J<<25),ee=c[W-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=c[W-7],se=ie.high,ae=ie.low,le=c[W-16],ce=le.high,ue=le.low;Q=(Q=(Q=_+se+((G=$+ae)>>>0<$>>>0?1:0))+re+((G+=oe)>>>0>>0?1:0))+ce+((G+=ue)>>>0>>0?1:0),K.high=Q,K.low=G}var de,pe=P&q^~P&Z,he=U&B^~U&F,fe=M&R^M&D^R&D,me=L&N^L&I^N&I,ge=(M>>>28|L<<4)^(M<<30|L>>>2)^(M<<25|L>>>7),ye=(L>>>28|M<<4)^(L<<30|M>>>2)^(L<<25|M>>>7),be=(P>>>14|U<<18)^(P>>>18|U<<14)^(P<<23|U>>>9),Ce=(U>>>14|P<<18)^(U>>>18|P<<14)^(U<<23|P>>>9),xe=l[W],ve=xe.high,we=xe.low,Ae=H+be+((de=V+Ce)>>>0>>0?1:0),Ee=ye+me;H=Z,V=F,Z=q,F=B,q=P,B=U,P=j+(Ae=(Ae=(Ae=Ae+pe+((de+=he)>>>0>>0?1:0))+ve+((de+=we)>>>0>>0?1:0))+Q+((de+=G)>>>0>>0?1:0))+((U=z+de|0)>>>0>>0?1:0)|0,j=D,z=I,D=R,I=N,R=M,N=L,M=Ae+(ge+fe+(Ee>>>0>>0?1:0))+((L=de+Ee|0)>>>0>>0?1:0)|0}f=r.low=f+L,r.high=h+M+(f>>>0>>0?1:0),g=o.low=g+N,o.high=m+R+(g>>>0>>0?1:0),b=i.low=b+I,i.high=y+D+(b>>>0>>0?1:0),x=s.low=x+z,s.high=C+j+(x>>>0>>0?1:0),w=a.low=w+U,a.high=v+P+(w>>>0>>0?1:0),E=u.low=E+B,u.high=A+q+(E>>>0>>0?1:0),O=d.low=O+F,d.high=S+Z+(O>>>0>>0?1:0),k=p.low=k+V,p.high=T+H+(k>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(u),e.HmacSHA512=t._createHmacHelper(u)}(),n.SHA512)}(Pp)),Pp.exports}var qp,Bp={exports:{}};var Zp,Fp={exports:{}};function Hp(){return Zp||(Zp=1,function(e,t){var n;e.exports=(n=cp(),pp(),function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,s=t.x64.Word,a=t.algo,l=[],c=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var a=0,d=0,p=0;p<7;p++){if(1&o){var h=(1<>>24)|4278255360&(i<<24|i>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(k=n[o]).high^=s,k.low^=i}for(var a=0;a<24;a++){for(var p=0;p<5;p++){for(var h=0,f=0,m=0;m<5;m++)h^=(k=n[p+5*m]).high,f^=k.low;var g=d[p];g.high=h,g.low=f}for(p=0;p<5;p++){var y=d[(p+4)%5],b=d[(p+1)%5],C=b.high,x=b.low;for(h=y.high^(C<<1|x>>>31),f=y.low^(x<<1|C>>>31),m=0;m<5;m++)(k=n[p+5*m]).high^=h,k.low^=f}for(var v=1;v<25;v++){var w=(k=n[v]).high,A=k.low,E=l[v];E<32?(h=w<>>32-E,f=A<>>32-E):(h=A<>>64-E,f=w<>>64-E);var S=d[c[v]];S.high=h,S.low=f}var O=d[0],T=n[0];for(O.high=T.high,O.low=T.low,p=0;p<5;p++)for(m=0;m<5;m++){var k=n[v=p+5*m],M=d[v],L=d[(p+1)%5+5*m],R=d[(p+2)%5+5*m];k.high=M.high^~L.high&R.high,k.low=M.low^~L.low&R.low}k=n[0];var N=u[a];k.high^=N.high,k.low^=N.low}},_doFinalize:function(){var t=this._data,n=t.words;this._nDataBytes;var r=8*t.sigBytes,i=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(e.ceil((r+1)/i)*i>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,l=a/8,c=[],u=0;u>>24)|4278255360&(p<<24|p>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),c.push(h),c.push(p)}return new o.init(c,a)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=i._createHelper(p),t.HmacSHA3=i._createHmacHelper(p)}(Math),n.SHA3)}(Fp)),Fp.exports}var Vp,Wp={exports:{}};var Gp,Qp={exports:{}};function Kp(){return Gp||(Gp=1,function(e,t){var n,r,o,i;e.exports=(n=cp(),o=(r=n).lib.Base,i=r.enc.Utf8,void(r.algo.HMAC=o.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),s=this._iKey=t.clone(),a=o.words,l=s.words,c=0;c>>2];e.sigBytes-=t}};r.BlockCipher=u.extend({cfg:u.cfg.extend({mode:h,padding:f}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?i.create([1398893684,1701076831]).concat(n).concat(t):t).toString(l)},parse:function(e){var t,n=l.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=i.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:t})}},y=r.SerializableCipher=o.extend({cfg:o.extend({format:g}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),i=o.finalize(t),s=o.cfg;return m.create({ciphertext:i,key:n,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),b=(t.kdf={}).OpenSSL={execute:function(e,t,n,r,o){if(r||(r=i.random(8)),o)s=c.create({keySize:t+n,hasher:o}).compute(e,r);else var s=c.create({keySize:t+n}).compute(e,r);var a=i.create(s.words.slice(t),4*n);return s.sigBytes=4*t,m.create({key:s,iv:a,salt:r})}},C=r.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:b}),encrypt:function(e,t,n,r){var o=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=o.iv;var i=y.encrypt.call(this,e,t,o.key,r);return i.mixIn(o),i},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=o.iv,y.decrypt.call(this,e,t,o.key,r)}})}()))}(th)),th.exports}var rh,oh={exports:{}};var ih,sh={exports:{}};var ah,lh={exports:{}};function ch(){return ah||(ah=1,function(e,t){var n;e.exports=(n=cp(),nh(), /** @preserve * Counter block mode compatible with Dr Brian Gladman fileenc.c * derived from CryptoJS.mode.CTR * Jan Hruby jhruby.web@gmail.com */ n.mode.CTRGladman=function(){var e=n.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function r(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var o=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,i=this._iv,s=this._counter;i&&(s=this._counter=i.slice(0),this._iv=void 0),r(s);var a=s.slice(0);n.encryptBlock(a,0);for(var l=0;l>>5]>>>31-r%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var c=o[i]=[],u=l[i];for(n=0;n<24;n++)c[n/6|0]|=t[(a[n]-1+u)%28]<<31-n%6,c[4+(n/6|0)]|=t[28+(a[n+24]-1+u)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],p.call(this,4,252645135),p.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),p.call(this,1,1431655765);for(var r=0;r<16;r++){for(var o=n[r],i=this._lBlock,s=this._rBlock,a=0,l=0;l<8;l++)a|=c[l][((s^o[l])&u[l])>>>0];this._lBlock=s,this._rBlock=i^a}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,p.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(r.create(t)),this._des2=d.createEncryptor(r.create(n)),this._des3=d.createEncryptor(r.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=o._createHelper(f)}(),n.TripleDES)}(Mh)),Mh.exports}var Rh,Nh={exports:{}};var Dh,Ih={exports:{}};var jh,zh={exports:{}};var Ph,Uh={exports:{}};function qh(){return Ph||(Ph=1,function(e,t){var n;e.exports=(n=cp(),vp(),Tp(),$p(),nh(),function(){var e=n,t=e.lib.BlockCipher,r=e.algo;const o=16,i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var a={pbox:[],sbox:[]};function l(e,t){let n=t>>24&255,r=t>>16&255,o=t>>8&255,i=255&t,s=e.sbox[0][n]+e.sbox[1][r];return s^=e.sbox[2][o],s+=e.sbox[3][i],s}function c(e,t,n){let r,i=t,s=n;for(let a=0;a1;--a)i^=e.pbox[a],s=l(e,i)^s,r=i,i=s,s=r;return r=i,i=s,s=r,s^=e.pbox[1],i^=e.pbox[0],{left:i,right:s}}function d(e,t,n){for(let o=0;o<4;o++){e.sbox[o]=[];for(let t=0;t<256;t++)e.sbox[o][t]=s[o][t]}let r=0;for(let s=0;s=n&&(r=0);let a=0,l=0,u=0;for(let i=0;i>>24)|4278255360&(o<<24|o>>>8)}var i,s,h,x,v,w,A,E,S,O,T,k=this._hash.words,M=d.words,L=p.words,R=a.words,N=l.words,D=c.words,I=u.words;for(w=i=k[0],A=s=k[1],E=h=k[2],S=x=k[3],O=v=k[4],n=0;n<80;n+=1)T=i+e[t+R[n]]|0,T+=n<16?f(s,h,x)+M[0]:n<32?m(s,h,x)+M[1]:n<48?g(s,h,x)+M[2]:n<64?y(s,h,x)+M[3]:b(s,h,x)+M[4],T=(T=C(T|=0,D[n]))+v|0,i=v,v=x,x=C(h,10),h=s,s=T,T=w+e[t+N[n]]|0,T+=n<16?b(A,E,S)+L[0]:n<32?y(A,E,S)+L[1]:n<48?g(A,E,S)+L[2]:n<64?m(A,E,S)+L[3]:f(A,E,S)+L[4],T=(T=C(T|=0,I[n]))+O|0,w=O,O=S,S=C(E,10),E=A,A=T;T=k[1]+h+S|0,k[1]=k[2]+x+O|0,k[2]=k[3]+v+w|0,k[3]=k[4]+i+A|0,k[4]=k[0]+s+E|0,k[0]=T},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,s=0;s<5;s++){var a=i[s];i[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return o},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function f(e,t,n){return e^t^n}function m(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function y(e,t,n){return e&n|t&~n}function b(e,t,n){return e^(t|~n)}function C(e,t){return e<>>32-t}t.RIPEMD160=i._createHelper(h),t.HmacRIPEMD160=i._createHmacHelper(h)}(),n.RIPEMD160)}(Wp)),Kp(),Yp||(Yp=1,function(e,t){var n,r,o,i,s,a,l,c,u;e.exports=(u=cp(),Dp(),Kp(),o=(r=(n=u).lib).Base,i=r.WordArray,a=(s=n.algo).SHA256,l=s.HMAC,c=s.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:a,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=l.create(n.hasher,e),o=i.create(),s=i.create([1]),a=o.words,c=s.words,u=n.keySize,d=n.iterations;a.length>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Ansix923)}(mh)),gh||(gh=1,function(e,t){var n;e.exports=(n=cp(),nh(),n.pad.Iso10126={pad:function(e,t){var r=4*t,o=r-e.sigBytes%r;e.concat(n.lib.WordArray.random(o-1)).concat(n.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Iso10126)}(yh)),bh||(bh=1,function(e,t){var n;e.exports=(n=cp(),nh(),n.pad.Iso97971={pad:function(e,t){e.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(e,t)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},n.pad.Iso97971)}(Ch)),xh||(xh=1,function(e,t){var n;e.exports=(n=cp(),nh(),n.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},n.pad.ZeroPadding)}(vh)),wh||(wh=1,function(e,t){var n;e.exports=(n=cp(),nh(),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)}(Ah)),Eh||(Eh=1,function(e,t){var n,r,o,i;e.exports=(i=cp(),nh(),r=(n=i).lib.CipherParams,o=n.enc.Hex,n.format.Hex={stringify:function(e){return e.ciphertext.toString(o)},parse:function(e){var t=o.parse(e);return r.create({ciphertext:t})}},i.format.Hex)}(Sh)),Oh||(Oh=1,function(e,t){var n;e.exports=(n=cp(),vp(),Tp(),$p(),nh(),function(){var e=n,t=e.lib.BlockCipher,r=e.algo,o=[],i=[],s=[],a=[],l=[],c=[],u=[],d=[],p=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var f=r^r<<1^r<<2^r<<3^r<<4;f=f>>>8^255&f^99,o[n]=f,i[f]=n;var m=e[n],g=e[m],y=e[g],b=257*e[f]^16843008*f;s[n]=b<<24|b>>>8,a[n]=b<<16|b>>>16,l[n]=b<<8|b>>>24,c[n]=b,b=16843009*y^65537*g^257*m^16843008*n,u[f]=b<<24|b>>>8,d[f]=b<<16|b>>>16,p[f]=b<<8|b>>>24,h[f]=b,n?(n=m^e[e[e[y^m]]],r^=e[e[r]]):n=r=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],s=0;s6&&s%n==4&&(c=o[c>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c]):(c=o[(c=c<<8|c>>>24)>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c],c^=f[s/n|0]<<24),i[s]=i[s-n]^c);for(var a=this._invKeySchedule=[],l=0;l>>24]]^d[o[c>>>16&255]]^p[o[c>>>8&255]]^h[o[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,a,l,c,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,p,h,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,i,s,a){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],p=e[t+3]^n[3],h=4,f=1;f>>24]^o[u>>>16&255]^i[d>>>8&255]^s[255&p]^n[h++],g=r[u>>>24]^o[d>>>16&255]^i[p>>>8&255]^s[255&c]^n[h++],y=r[d>>>24]^o[p>>>16&255]^i[c>>>8&255]^s[255&u]^n[h++],b=r[p>>>24]^o[c>>>16&255]^i[u>>>8&255]^s[255&d]^n[h++];c=m,u=g,d=y,p=b}m=(a[c>>>24]<<24|a[u>>>16&255]<<16|a[d>>>8&255]<<8|a[255&p])^n[h++],g=(a[u>>>24]<<24|a[d>>>16&255]<<16|a[p>>>8&255]<<8|a[255&c])^n[h++],y=(a[d>>>24]<<24|a[p>>>16&255]<<16|a[c>>>8&255]<<8|a[255&u])^n[h++],b=(a[p>>>24]<<24|a[c>>>16&255]<<16|a[u>>>8&255]<<8|a[255&d])^n[h++],e[t]=m,e[t+1]=g,e[t+2]=y,e[t+3]=b},keySize:8});e.AES=t._createHelper(m)}(),n.AES)}(Th)),Lh(),Rh||(Rh=1,function(e,t){var n;e.exports=(n=cp(),vp(),Tp(),$p(),nh(),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,o=r.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],o=0;o<256;o++)r[o]=o;o=0;for(var i=0;o<256;o++){var s=o%n,a=t[s>>>2]>>>24-s%4*8&255;i=(i+r[o]+a)%256;var l=r[o];r[o]=r[i],r[i]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,n=this._j,r=0,o=0;o<4;o++){n=(n+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[n],e[n]=i,r|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,r}e.RC4=t._createHelper(o);var s=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});e.RC4Drop=t._createHelper(s)}(),n.RC4)}(Nh)),Dh||(Dh=1,function(e,t){var n;e.exports=(n=cp(),vp(),Tp(),$p(),nh(),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,o=[],i=[],s=[],a=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)o[n]^=r[n+4&7];if(t){var i=t.words,s=i[0],a=i[1],c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),d=c>>>16|4294901760&u,p=u<<16|65535&c;for(o[0]^=c,o[1]^=d,o[2]^=u,o[3]^=p,o[4]^=c,o[5]^=d,o[6]^=u,o[7]^=p,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,a=r>>>16,l=((o*o>>>17)+o*a>>>15)+a*a,c=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=l^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=t._createHelper(a)}(),n.Rabbit)}(Ih)),jh||(jh=1,function(e,t){var n;e.exports=(n=cp(),vp(),Tp(),$p(),nh(),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,o=[],i=[],s=[],a=r.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)l.call(this);for(o=0;o<8;o++)r[o]^=n[o+4&7];if(t){var i=t.words,s=i[0],a=i[1],c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),d=c>>>16|4294901760&u,p=u<<16|65535&c;for(r[0]^=c,r[1]^=d,r[2]^=u,r[3]^=p,r[4]^=c,r[5]^=d,r[6]^=u,r[7]^=p,o=0;o<4;o++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,a=r>>>16,l=((o*o>>>17)+o*a>>>15)+a*a,c=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=l^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.RabbitLegacy=t._createHelper(a)}(),n.RabbitLegacy)}(zh)),qh(),n)}(ip);const Bh=s(ip.exports);var Zh=(e=>(e.kAnalyzeParagraphRequestResult="MCI_ANALYZE_PARAGRAPH_REQUEST_RESULT",e.kExtensionDisconnect="MCI_EXTENSION_DISCONNECT",e.kSdkDisable="MCI_SDK_DISABLE",e.kProfileUpdated="MCI_PROFILE_UPDATED",e.kSubscriptionUpdated="MCI_SUBSCRIPTION_UPDATED",e.kUserConnect="MCI_USER_CONNECT",e.kUserDisconnect="MCI_USER_DISCONNECT",e))(Zh||{}),Fh=(e=>(e.HIDDEN="HIDDEN",e.VISIBLE="VISIBLE",e))(Fh||{});class Hh extends Bd{async onLegacyMessage(e){await this.unsubscribe(),this.onLegacyMessageCallback=(t,n)=>{const r="string"!=typeof t?JSON.stringify(t):t;try{const t=qd.fromRawMessage(r).getAttributes(),o=t.properties?t.properties.content:{};o&&e(o,n)}catch(o){console.error({rawMessage:t,sender:n}),console.error(o)}},sa.create().addOnTabMessageListener(this.onLegacyMessageCallback)}sendMessage(e){return sa.create().sendMessage(e.serialize())}}const Vh={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Wh{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Vh,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n{this.observers[e]=this.observers[e]||[],this.observers[e].push(t)})),this}off(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((e=>e!==t)):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{e(...n)}))}if(this.observers["*"]){[].concat(this.observers["*"]).forEach((t=>{t.apply(t,[e,...n])}))}}};function Kh(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}function Yh(e){return null==e?"":""+e}function Jh(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}const i="string"!=typeof t?[].concat(t):t.split(".");for(;i.length>1;){if(o())return{};const t=r(i.shift());!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function Xh(e,t,n){const{obj:r,k:o}=Jh(e,t,Object);r[o]=n}function _h(e,t){const{obj:n,k:r}=Jh(e,t);if(n)return n[r]}function $h(e,t,n){for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):$h(e[r],t[r],n):e[r]=t[r]);return e}function ef(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var tf={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function nf(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>tf[e])):e}const rf=[" ",",","?","!",";"];function of(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let i=0;ii+e;)e++,s=r.slice(i,i+e).join(n),a=o[s];if(void 0===a)return;if(null===a)return null;if(t.endsWith(s)){if("string"==typeof a)return a;if(s&&"string"==typeof a[s])return a[s]}const l=r.slice(i+e).join(n);return l?of(a,l,n):void 0}o=o[r[i]]}return o}function sf(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class af extends Qh{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let s=[e,t];n&&"string"!=typeof n&&(s=s.concat(n)),n&&"string"==typeof n&&(s=s.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(s=e.split("."));const a=_h(this.data,s);return a||!i||"string"!=typeof n?a:of(this.data&&this.data[e]&&this.data[e][t],n,o)}addResource(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let s=[e,t];n&&(s=s.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(s=e.split("."),r=t,t=s[1]),this.addNamespaces(t),Xh(this.data,s,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),r=n,n=t,t=s[1]),this.addNamespaces(t);let a=_h(this.data,s)||{};r?$h(a,n,o):a={...a,...n},Xh(this.data,s,a),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var lf={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,o))})),t}};const cf={};class uf extends Qh{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,n){e.forEach((e=>{t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=Gh.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.indexOf(n)>-1,s=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";const r=rf.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const o=new RegExp(`(${r.map((e=>"?"===e?"\\?":e)).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i}(e,n,r));if(i&&!s){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:i,namespaces:s}=this.extractFromKey(e[e.length-1],t),a=s[s.length-1],l=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(c){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${a}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(t)}:`${a}${e}${i}`}return r?{res:i,usedKey:i,exactUsedKey:i,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(t)}:i}const u=this.resolve(e,t);let d=u&&u.res;const p=u&&u.usedKey||i,h=u&&u.exactUsedKey||i,f=Object.prototype.toString.apply(d),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject;if(g&&d&&("string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(f)<0&&("string"!=typeof m||"[object Array]"!==f)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,d,{...t,ns:s}):`key '${i} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u.usedParams=this.getUsedParamsDetails(t),u):e}if(o){const e="[object Array]"===f,n=e?[]:{},r=e?h:p;for(const i in d)if(Object.prototype.hasOwnProperty.call(d,i)){const e=`${r}${o}${i}`;n[i]=this.translate(e,{...t,joinArrays:!1,ns:s}),n[i]===e&&(n[i]=d[i])}d=n}}else if(g&&"string"==typeof m&&"[object Array]"===f)d=d.join(m),d&&(d=this.extendTranslation(d,e,t,n));else{let r=!1,s=!1;const c=void 0!==t.count&&"string"!=typeof t.count,p=uf.hasDefaultValue(t),h=c?this.pluralResolver.getSuffix(l,t.count,t):"",f=t.ordinal&&c?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",m=t[`defaultValue${h}`]||t[`defaultValue${f}`]||t.defaultValue;!this.isValidLookup(d)&&p&&(r=!0,d=m),this.isValidLookup(d)||(s=!0,d=i);const g=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:d,y=p&&m!==d&&this.options.updateMissing;if(s||r||y){if(this.logger.log(y?"updateKey":"missingKey",l,a,i,y?m:d),o){const e=this.resolve(i,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t{const o=p&&r!==d?r:g;this.options.missingKeyHandler?this.options.missingKeyHandler(e,a,n,o,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,a,n,o,y,t),this.emit("missingKey",e,a,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach((e=>{this.pluralResolver.getSuffixes(e,t).forEach((n=>{r([e],i+n,t[`defaultValue${n}`]||m)}))})):r(e,i,m))}d=this.extendTranslation(d,e,t,u,n),s&&d===i&&this.options.appendNamespaceToMissingKey&&(d=`${a}:${i}`),(s||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${i}`:i,r?d:void 0):this.options.parseMissingKeyHandler(d))}return r?(u.res=d,u.usedParams=this.getUsedParamsDetails(t),u):d}extendTranslation(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const s="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(s){const t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),s){const t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),s=0;s1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const a=this.extractFromKey(e,s),l=a.key;n=l;let c=a.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==s.count&&"string"!=typeof s.count,d=u&&!s.ordinal&&0===s.count&&this.pluralResolver.shouldUseIntlApi(),p=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);c.forEach((e=>{this.isValidLookup(t)||(i=e,!cf[`${h[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(cf[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${h.join(", ")}" won't get resolved as namespace "${i}" 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!!!")),h.forEach((n=>{if(this.isValidLookup(t))return;o=n;const i=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(i,l,n,e,s);else{let e;u&&(e=this.pluralResolver.getSuffix(n,s.count,s));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(i.push(l+e),s.ordinal&&0===e.indexOf(r)&&i.push(l+e.replace(r,this.options.pluralSeparator)),d&&i.push(l+t)),p){const n=`${l}${this.options.contextSeparator}${s.context}`;i.push(n),u&&(i.push(n+e),s.ordinal&&0===e.indexOf(r)&&i.push(n+e.replace(r,this.options.pluralSeparator)),d&&i.push(n+t))}}let a;for(;a=i.pop();)this.isValidLookup(t)||(r=a,t=this.getResource(n,e,a,s))})))}))})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&"string"!=typeof e.replace;let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}function df(e){return e.charAt(0).toUpperCase()+e.slice(1)}class pf{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Gh.create("languageUtils")}getScriptPartFromCode(e){if(!(e=sf(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=sf(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=df(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=df(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=df(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:0===e.indexOf(n)?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&o(this.formatLanguageCode(e))})),r}}let hf=[{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}],ff={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};const mf=["v1","v2","v3"],gf=["v4"],yf={zero:0,one:1,two:2,few:3,many:4,other:5};class bf{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Gh.create("pluralResolver"),this.options.compatibilityJSON&&!gf.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const e={};return hf.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:ff[t.fc]}}))})),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(sf(e),{type:t.ordinal?"ordinal":"cardinal"})}catch(n){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>yf[e]-yf[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!mf.includes(this.options.compatibilityJSON)}}function Cf(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=function(e,t,n){const r=_h(e,n);return void 0!==r?r:_h(t,n)}(e,t,n);return!i&&o&&"string"==typeof n&&(i=of(e,n,r),void 0===i&&(i=of(t,n,r))),i}class xf{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Gh.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const t=e.interpolation;this.escape=void 0!==t.escape?t.escape:nf,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?ef(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?ef(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?ef(t.nestingPrefix):t.nestingPrefixEscaped||ef("$t("),this.nestingSuffix=t.nestingSuffix?ef(t.nestingSuffix):t.nestingSuffixEscaped||ef(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(e,"g");const t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(t,"g");const n=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(n,"g")}interpolate(e,t,n,r){let o,i,s;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}const c=e=>{if(e.indexOf(this.formatSeparator)<0){const o=Cf(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),s=o.join(this.formatSeparator).trim();return this.format(Cf(t,a,i,this.options.keySeparator,this.options.ignoreJSONStructure),s,n,{...r,...t,interpolationkey:i})};this.resetRegExp();const u=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>l(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?l(this.escape(e)):l(e)}].forEach((t=>{for(s=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=c(n),void 0===i)if("function"==typeof u){const t=u(e,o,r);i="string"==typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(d){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else"string"==typeof i||this.useRawValueToEscape||(i=Yh(i));const a=t.safeValue(i);if(e=e.replace(o[0],a),d?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,s++,s>=this.maxReplaces)break}})),e}nest(e,t){let n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t){const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let i=`{${r[1]}`;e=r[0],i=this.interpolate(i,o);const s=i.match(/'/g),a=i.match(/"/g);(s&&s.length%2==0&&!a||a.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(dd){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,dd),`${e}${n}${i}`}return delete o.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let a=[];o={...i},o=o.replace&&"string"!=typeof o.replace?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),a=e,l=!0}if(r=t(s.call(this,n[1].trim(),o),o),r&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=Yh(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),l&&(r=a.reduce(((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:n[1].trim()})),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function vf(e){const t={};return function(n,r,o){const i=r+JSON.stringify(o);let s=t[i];return s||(s=e(sf(r),o),t[i]=s),s(n)}}class wf{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Gh.create("formatter"),this.options=e,this.formats={number:vf(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:vf(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:vf(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:vf(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:vf(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=vf(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce(((e,t)=>{const{formatName:o,formatOptions:i}=function(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach((e=>{if(!e)return;const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,"");n[t.trim()]||(n[t.trim()]=o),"false"===o&&(n[t.trim()]=!1),"true"===o&&(n[t.trim()]=!0),isNaN(o)||(n[t.trim()]=parseInt(o,10))}))}return{formatName:t,formatOptions:n}}(t);if(this.formats[o]){let t=e;try{const s=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},a=s.locale||s.lng||r.locale||r.lng||n;t=this.formats[o](e,a,{...i,...r,...s})}catch(s){this.logger.warn(s)}return t}return this.logger.warn(`there was no format function for ${o}`),e}),e)}}class Af extends Qh{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Gh.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const o={},i={},s={},a={};return e.forEach((e=>{let r=!0;t.forEach((t=>{const s=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===i[s]&&(i[s]=!0):(this.state[s]=1,r=!1,void 0===i[s]&&(i[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===a[t]&&(a[t]=!0)))})),r||(s[e]=!0)})),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;const s={};this.queue.forEach((n=>{!function(e,t,n,r){const{obj:o,k:i}=Jh(e,t,Object);o[i]=o[i]||[],o[i].push(n)}(n.loaded,[o],i),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{s[e]||(s[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===s[e][t]&&(s[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}s&&a&&r{this.read.call(this,e,t,n,r+1,2*o,i)}),o):i(s,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(e,t,s);try{const n=a(e,t);n&&"function"==typeof n.then?n.then((e=>s(null,e))).catch(s):s(null,n)}catch(l){s(l)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,((n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)}))}saveMissing(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const l={...i,isUpdate:o},c=this.backend.create.bind(this.backend);if(c.length<6)try{let o;o=5===c.length?c(e,t,n,r,l):c(e,t,n,r),o&&"function"==typeof o.then?o.then((e=>s(null,e))).catch(s):s(null,o)}catch(a){s(a)}else c(e,t,n,r,s,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function Ef(){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:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Sf(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Of(){}class Tf extends Qh{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=Sf(e),this.services={},this.logger=Gh,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=Ef();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options={...r,...this.options,...Sf(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?Gh.init(o(this.modules.logger),this.options):Gh.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=wf);const n=new pf(this.options);this.store=new af(this.options.resources,this.options);const i=this.services;i.logger=Gh,i.resourceStore=this.store,i.languageUtils=n,i.pluralResolver=new bf(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(i.formatter=o(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new xf(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Af(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;o{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=Of),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const i=Kh(),s=()=>{const e=(e,t)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),i}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Of;const n="string"==typeof e?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};if(n)r(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>r(e)))}this.options.preload&&this.options.preload.forEach((e=>r(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const r=Kh();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Of),this.services.backendConnector.reload(e,t,(e=>{r.resolve(),n(e)})),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&lf.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=Kh();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},s=t=>{e||t||!this.services.languageDetector||(t=[]);const n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||o(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{i(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e):s(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const o=function(e,t){let i;if("object"!=typeof t){for(var s=arguments.length,a=new Array(s>2?s-2:0),l=2;l`${i.keyPrefix}${c}${e}`)):i.keyPrefix?`${i.keyPrefix}${c}${e}`:e,r.t(u,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=Kh();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=Kh();"string"==typeof e&&(e=[e]);const r=this.options.preload||[],o=e.filter((e=>r.indexOf(e)<0));return o.length?(this.options.preload=r.concat(o),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new pf(Ef());return["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(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new Tf(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Of;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new Tf(r);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));return["store","services","language"].forEach((e=>{o[e]=this[e]})),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new af(this.store.data,r),o.services.resourceStore=o.store),o.translator=new uf(o.services,r),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function ym(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(mm[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var o=new RegExp(gm),i=null;null!==(i=o.exec(e));)if(i[0].trim())if(i[1]){var s=i[1].trim(),a=[s,""];s.indexOf("=")>-1&&(a=s.split("=")),t.attrs[a[0]]=a[1],o.lastIndex--}else i[2]&&(t.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return t}var bm=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Cm=/^\s*$/,xm=Object.create(null);function vm(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(vm,"")+"";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var wm={parse:function(e,t){t||(t={}),t.components||(t.components=xm);var n,r=[],o=[],i=-1,s=!1;if(0!==e.indexOf("<")){var a=e.indexOf("<");r.push({type:"text",content:-1===a?e:e.substring(0,a)})}return e.replace(bm,(function(a,l){if(s){if(a!=="")return;s=!1}var c,u="/"!==a.charAt(1),d=a.startsWith("\x3c!--"),p=l+a.length,h=e.charAt(p);if(d){var f=ym(a);return i<0?(r.push(f),r):((c=o[i]).children.push(f),r)}if(u&&(i++,"tag"===(n=ym(a)).type&&t.components[n.name]&&(n.type="component",s=!0),n.voidElement||s||!h||"<"===h||n.children.push({type:"text",content:e.slice(p,e.indexOf("<",p))}),0===i&&r.push(n),(c=o[i-1])&&c.children.push(n),o[i]=n),(!u||n.voidElement)&&(i>-1&&(n.voidElement||n.name===a.slice(2,-1))&&(i--,n=-1===i?r:o[i]),!s&&"<"!==h&&h)){c=-1===i?r:o[i].children;var m=e.indexOf("<",p),g=e.slice(p,-1===m?void 0:m);Cm.test(g)&&(g=" "),(m>-1&&i+c.length>=0||" "!==g)&&c.push({type:"text",content:g})}})),r},stringify:function(e){return e.reduce((function(e,t){return e+vm("",t)}),"")}};function Am(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}};function Tm(e,t,n){e.loadNamespaces(t,Om(e,n))}function km(e,t,n,r){"string"==typeof n&&(n=[n]),n.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,Om(e,r))}const Mm=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Lm={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Rm=e=>Lm[e];let Nm,Dm={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(Mm,Rm)};function Im(){return Dm}function jm(){return Nm}function zm(e,t){if(!e)return!1;const n=e.props?e.props.children:e.children;return t?n.length>0:!!n}function Pm(e){if(!e)return[];const t=e.props?e.props.children:e.children;return e.props&&e.props.i18nIsDynamicList?Um(t):t}function Um(e){return Array.isArray(e)?e:[e]}function qm(e,t){if(!e)return"";let n="";const r=Um(e),o=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return r.forEach(((e,r)=>{if("string"==typeof e)n+=`${e}`;else if(dm.isValidElement(e)){const i=Object.keys(e.props).length,s=o.indexOf(e.type)>-1,a=e.props.children;if(!a&&s&&0===i)n+=`<${e.type}/>`;else if(a||s&&0===i)if(e.props.i18nIsDynamicList)n+=`<${r}>`;else if(s&&1===i&&"string"==typeof a)n+=`<${e.type}>${a}`;else{const e=qm(a,t);n+=`<${r}>${e}`}else n+=`<${r}>`}else if(null===e)Am("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"==typeof e){const{format:t,...r}=e,o=Object.keys(r);if(1===o.length){const e=t?`${o[0]}, ${t}`:o[0];n+=`{{${e}}}`}else Am("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else Am("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)})),n}function Bm(e,t,n,r,o,i){if(""===t)return[];const s=r.transKeepBasicHtmlNodesFor||[],a=t&&new RegExp(s.map((e=>`<${e}`)).join("|")).test(t);if(!e&&!a&&!i)return[t];const l={};!function e(t){Um(t).forEach((t=>{"string"!=typeof t&&(zm(t)?e(Pm(t)):"object"!=typeof t||dm.isValidElement(t)||Object.assign(l,t))}))}(e);const c=wm.parse(`<0>${t}`),u={...l,...o};function d(e,t,n){const r=Pm(e),o=h(r,t.children,n);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((e=>dm.isValidElement(e)))}(r)&&0===o.length||e.props&&e.props.i18nIsDynamicList?r:o}function p(e,t,n,r,o){e.dummy?(e.children=t,n.push(dm.cloneElement(e,{key:r},o?void 0:t))):n.push(...dm.Children.map([e],(e=>{const n={...e.props};return delete n.i18nIsDynamicList,pm.createElement(e.type,fm({},n,{key:r,ref:e.ref},o?{}:{children:t}))})))}function h(t,o,l){const c=Um(t);return Um(o).reduce(((t,o,f)=>{const m=o.children&&o.children[0]&&o.children[0].content&&n.services.interpolator.interpolate(o.children[0].content,u,n.language);if("tag"===o.type){let i=c[parseInt(o.name,10)];1!==l.length||i||(i=l[0][o.name]),i||(i={});const g=0!==Object.keys(o.attrs).length?function(e,t){const n={...t};return n.props=Object.assign(e.props,t.props),n}({props:o.attrs},i):i,y=dm.isValidElement(g),b=y&&zm(o,!0)&&!o.voidElement,C=a&&"object"==typeof g&&g.dummy&&!y,x="object"==typeof e&&null!==e&&Object.hasOwnProperty.call(e,o.name);if("string"==typeof g){const e=n.services.interpolator.interpolate(g,u,n.language);t.push(e)}else if(zm(g)||b){p(g,d(g,o,l),t,f)}else if(C){p(g,h(c,o.children,l),t,f)}else if(Number.isNaN(parseFloat(o.name)))if(x){p(g,d(g,o,l),t,f,o.voidElement)}else if(r.transSupportBasicHtmlNodes&&s.indexOf(o.name)>-1)if(o.voidElement)t.push(dm.createElement(o.name,{key:`${o.name}-${f}`}));else{const e=h(c,o.children,l);t.push(dm.createElement(o.name,{key:`${o.name}-${f}`},e))}else if(o.voidElement)t.push(`<${o.name} />`);else{const e=h(c,o.children,l);t.push(`<${o.name}>${e}`)}else if("object"!=typeof g||y)p(g,m,t,f,1!==o.children.length||!m);else{const e=o.children[0]?m:null;e&&t.push(e)}}else if("text"===o.type){const e=r.transWrapTextNodes,s=i?r.unescape(n.services.interpolator.interpolate(o.content,u,n.language)):n.services.interpolator.interpolate(o.content,u,n.language);e?t.push(dm.createElement(e,{key:`${o.name}-${f}`},s)):t.push(s)}return t}),[])}return Pm(h([{dummy:!0,children:e||[]}],c,Um(e||[]))[0])}function Zm(e){let{children:t,count:n,parent:r,i18nKey:o,context:i,tOptions:s={},values:a,defaults:l,components:c,ns:u,i18n:d,t:p,shouldUnescape:h,...f}=e;const m=d||jm();if(!m)return Sm("You will need to pass in an i18next instance by using i18nextReactModule"),t;const g=p||m.t.bind(m)||(e=>e);i&&(s.context=i);const y={...Im(),...m.options&&m.options.react};let b=u||g.ns||m.options&&m.options.defaultNS;b="string"==typeof b?[b]:b||["translation"];const C=qm(t,y),x=l||C||y.transEmptyNodeValue||o,{hashTransKey:v}=y,w=o||(v?v(C||x):C||x);m.options&&m.options.interpolation&&m.options.interpolation.defaultVariables&&(a=a&&Object.keys(a).length>0?{...a,...m.options.interpolation.defaultVariables}:{...m.options.interpolation.defaultVariables});const A=a?s.interpolation:{interpolation:{...s.interpolation,prefix:"#$?",suffix:"?$#"}},E={...s,count:n,...a,...A,defaultValue:x,ns:b},S=w?g(w,E):x;c&&Object.keys(c).forEach((e=>{const t=c[e];"function"==typeof t.type||!t.props||!t.props.children||S.indexOf(`${e}/>`)<0&&S.indexOf(`${e} />`)<0||(c[e]=pm.createElement((function(){return pm.createElement(pm.Fragment,null,t)}),null))}));const O=Bm(c||t,S,m,y,E,h),T=void 0!==r?r:y.defaultTransParent;return T?dm.createElement(T,f,O):O}const Fm={type:"3rdParty",init(e){!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Dm={...Dm,...e}}(e.options.react),function(e){Nm=e}(e)}},Hm=dm.createContext();class Vm{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function Wm(e){let{children:t,count:n,parent:r,i18nKey:o,context:i,tOptions:s={},values:a,defaults:l,components:c,ns:u,i18n:d,t:p,shouldUnescape:h,...f}=e;const{i18n:m,defaultNS:g}=dm.useContext(Hm)||{},y=d||m||jm(),b=p||y&&y.t.bind(y);return Zm({children:t,count:n,parent:r,i18nKey:o,context:i,tOptions:s,values:a,defaults:l,components:c,ns:u||b&&b.ns||g||y&&y.options&&y.options.defaultNS,i18n:y,t:p,shouldUnescape:h,...f})}function Gm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:o}=dm.useContext(Hm)||{},i=n||r||jm();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new Vm),!i){Sm("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>"string"==typeof t?t:t&&"object"==typeof t&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}i.options.react&&void 0!==i.options.react.wait&&Sm("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...Im(),...i.options.react,...t},{useSuspense:a,keyPrefix:l}=s;let c=e||o||i.options&&i.options.defaultNS;c="string"==typeof c?[c]:c||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(c);const u=(i.isInitialized||i.initializedStoreOnce)&&c.every((e=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;const s=(e,n)=>{const r=t.services.backendConnector.state[`${e}|${n}`];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e)||!t.hasResourceBundle(r,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!s(r,e)||o&&!s(i,e)))}(e,t,n):(Sm("i18n.languages were undefined or empty",t.languages),!0)}(e,i,s)));function d(){return i.getFixedT(t.lng||null,"fallback"===s.nsMode?c:c[0],l)}const[p,h]=dm.useState(d);let f=c.join();t.lng&&(f=`${t.lng}${f}`);const m=((e,t)=>{const n=dm.useRef();return dm.useEffect((()=>{n.current=e}),[e,t]),n.current})(f),g=dm.useRef(!0);dm.useEffect((()=>{const{bindI18n:e,bindI18nStore:n}=s;function r(){g.current&&h(d)}return g.current=!0,u||a||(t.lng?km(i,t.lng,c,(()=>{g.current&&h(d)})):Tm(i,c,(()=>{g.current&&h(d)}))),u&&m&&m!==f&&g.current&&h(d),e&&i&&i.on(e,r),n&&i&&i.store.on(n,r),()=>{g.current=!1,e&&i&&e.split(" ").forEach((e=>i.off(e,r))),n&&i&&n.split(" ").forEach((e=>i.store.off(e,r)))}}),[i,f]);const y=dm.useRef(!0);dm.useEffect((()=>{g.current&&!y.current&&h(d),y.current=!1}),[i,l]);const b=[p,i,u];if(b.t=p,b.i18n=i,b.ready=u,u)return b;if(!u&&!a)return b;throw new Promise((e=>{t.lng?km(i,t.lng,c,(()=>e())):Tm(i,c,(()=>e()))}))}const Qm={en:{translation:{"(Moyenne par membre)":"(Average per member)","{{count}} derniers jours_one":"{{count}} last day","{{count}} derniers jours_other":"{{count}} last days","{{count}} jours d'essai restants_one":"{{count}} trial day remaining","{{count}} jours d'essai restants_other":"{{count}} trial days remaining","{{currentQuota}} sur {{maximumQuota}} mots analysés aujourd’hui.":"{{currentQuota}} out of {{maximumQuota}} words analyzed today.","{{currentQuota}} sur {{maxQuota}} mots analysés aujourd’hui.":"{{currentQuota}} out of {{maxQuota}} words analyzed today.","{{maxQuota}} / {{maxQuota}} mots analysés":"{{maxQuota}} / {{maxQuota}} words analyzed","{{threshold}} / {{threshold}} mots analysés":"{{threshold}} / {{threshold}} analyzed words","<1>{{count}} alertes avancées sont encore présentes. Mettez à niveau votre abonnement pour les afficher._one":"<1>{{count}} advanced alert remains. Upgrade your subscription to view it.","<1>{{count}} alertes avancées sont encore présentes. Mettez à niveau votre abonnement pour les afficher._other":"<1>{{count}} advanced alerts remain. Upgrade your subscription to view them.","<1>{{count}} optimisations de style sont recommandées. Mettez à niveau votre abonnement pour les afficher._one":"<1>{{count}} style optimization is recommended. Upgrade your subscription to display it.","<1>{{count}} optimisations de style sont recommandées. Mettez à niveau votre abonnement pour les afficher._other":"<1>{{count}} style optimizations are recommended. Upgrade your subscription to display them.","<1>{{originalWord}} a été corrigé automatiquement":"<1>{{originalWord}} has been automatically corrected","<1>Attention, <2>votre moyen de paiement arrivera à expiration à la fin du mois ({{expirationMonth}}). Mettez-le à jour pour profiter de {{planName}} sans interruption.":"<1>Attention, <2>your payment method will expire at the end of the month ({{expirationMonth}}). Update it to continue enjoying {{planName}} without interruption.","<1>Attention, <2>votre moyen de paiement est expiré. Les fonctionnalités {{planName}} deviendront indisponibles lors du renouvellement de votre abonnement.":"<1>Attention, <2>your payment method has expired. {{planName}} features will become unavailable upon your subscription renewal.","3 chaque jour":"3 per day","3 sur 3":"3 over 3","30 jours d’essai restants":"30 days of trial remaining","600 / 600 mots analysés aujourd’hui":"600 / 600 words analyzed today","Accédez facilement aux réglages pour l'autocorrection, les synonymes et définitions, la reformulation, l’autocorrection et plus encore.":"Easily access settings for autocorrection, synonyms and definitions, rephrasing, autocorrection and more.","Accédez instantanément à une multitude de synonymes et définitions pour enrichir votre texte et améliorer votre maîtrise du vocabulaire. Tout cela, juste avec un double-clic !":"Get instant access to a variety of synonyms and definitions to enrich your text and improve your vocabulary skills. All with just one double-click!","Activer MerciApp sur ce site":"Enable MerciApp on this website","Activez l'analyse de vos textes dès maintenant":"Activate spellchecking now","Activez les suggestions de style et faites passer vos idées avec brio grâce à un style irréprochable.":"Activate the style suggestions and get your ideas across with impeccable style.","Afficher d'autres propositions":"Show more suggestions","Afficher le bouton MerciApp IA":"Display the MerciApp AI widget","Afin de profiter de MerciApp {{currentPlanName}} sans interruption, il est nécessaire que vous mettiez à jour votre moyen de paiement.":"In order to benefit from MerciApp {{currentPlanName}} without interruption, you need to update your payment method.",Aide:"Help","Ajouter au dictionnaire":"Add to dictionary",Alerte:"Alert","Alerte avancée":"Advanced alert",Alertes:"Alerts","Alertes avancées":"Advanced alerts","Amélioration du style":"Style improvement","Améliorer le style":"Improve style","Analyse multilingue":"Multilingual Analysis","Analyses illimitées":"Unlimited analysis",Assist:"Assist","Autocorrection intelligente":"Smart Autocorrection","Avec l’autocorrection, MerciApp fait le travail pour vous.":"With auto-correction, MerciApp does the work for you.","Bienvenue sur l’extension MerciApp !":"Welcome on MerciApp extension!","caractères":"characters","Ce panneau permet de consulter la liste de toutes les suggestions disponibles pour votre texte.":"This panel allows you to consult the list of all the suggestions available for your text.","Chargement…":"Loading...","Cliquez ci‑dessous pour le signaler à l'équipe et recevoir un e‑mail lorsque MerciApp deviendra compatible.":"Click below to notify the team and receive an e-mail when MerciApp becomes compatible.","Cliquez sur le bouton IA pour utiliser la puissance de l’intelligence artificielle quand vous en avez besoin.":"Click on the AI widget to harness the power of artificial intelligence when you need it.","Cliquez sur les mots ou expressions soulignés pour voir les suggestions MerciApp et cliquez sur l’une d’entre elles pour l’appliquer à votre texte.":"Click on the underlined words or sentences to see MerciApp suggestions and click on one of them to apply it to your text.","Cliquez sur les mots soulignés pour les corriger en un clic !":"Click on the underlined words to view suggestions!","Continuer avec la version gratuite":"Continue with the free version",Correct:"Correct","Correction non supportée sur cette page":"Spellchecking not supported on this webpage","Définitions":"Definitions","Définitions et synonymes au double‑clic sur un mot.":"Definitions and synonyms with a double‑click on a word.","Déjà un compte ?":"Already registered?","Désactiver MerciApp sur <1>{{hostname}} ?":"Disable MerciApp on <1>{{hostname}}?","Désactiver MerciApp sur ce site":"Disable MerciApp on this website","Désactiver sur ce site":"Disable on this website","Dictionnaire 2.0":"Dictionary 2.0","Donnez un nouvel éclat à vos idées grâce à la reformulation.":"Give new life to your ideas with reformulation.","Dorénavant, vous pourrez utiliser MerciApp dans la limite de <1>600 mots analysés par jour.":"From now on, you can use MerciApp up to a limit of <1>600 words analysed per day.","Double-cliquez sur un mot pour accéder aux définitions et synonymes":"Double-click on a word to access definitions and synonyms","Écrivez votre texte, les erreurs seront soulignées.":"Write your text. Errors will be underlined.","En cas de nouvel échec, vous perdrez l’accès aux fonctionnalités de MerciApp {{currentPlanName}}":"If you fail again, you will lose access to the MerciApp {{currentPlanName}} features","En cliquant sur le compteur, le panneau d’alertes s’ouvrira.":"By <1>clicking on the counter, the alerts panel will open.","En survolant le compteur, la barre d’actions rapides s’agrandira et vous permettra d’accéder encore plus rapidement à certaines fonctionnalités.":"By <1>hovering over the counter, the quick actions bar will expand and allow you to access certain features even more quickly.","Ensuite, vous basculerez automatiquement sur la version gratuite.":"Then, you will automatically switch to the free version.",Entreprise:"Enterprise","Épinglez MerciApp sur votre navigateur pour un accès rapide aux fonctionnalités essentielles.":"Pin MerciApp to your browser for quick access to essential features.",Essai:"Trial","Évite les répétitions et améliore le style":"Avoid repetitions and improve style","Examinez et acceptez les suggestions en temps réel et au fur et à mesure que vous écrivez.":"Review and accept suggestions in real time and as you write.","Expiration imminente de votre abonnement MerciApp {{currentPlanName}}":"Your MerciApp {{currentPlanName}} subscription is about to expire","Expiré":"Expired","Expire bientôt ({{expirationMonth}})":"Expiring soon ({{expirationMonth}})","Fautes évitées":"Errors avoided",Feedback:"Feedback","Fonctionnalité premium":"Premium feature","Garder la correction active":"Keep spellchecking active",Gratuit:"Free",Heure_one:"hour",Heure_other:"hours",HISTORIQUE:"HISTORY","Historique des dernières instructions":"History of latest instructions",Ignorer:"Ignore","Il ne vous reste que 7 jours pour essayer MerciApp Assist.":"You only have 7 days to try MerciApp Assist.","Il vous reste":"You still have","Il vous reste {{count}} jour pour essayer gratuitement {{planName}}._one":"{{count}} day left to try {{planName}}.","Il vous reste {{count}} jour pour essayer gratuitement {{planName}}._other":"{{count}} days left to try {{planName}}.","Il y a <1>{{count}} caractère en trop dans votre phrase_one":"There is <1>{{count}} exceeded character in your sentence.","Il y a <1>{{count}} caractère en trop dans votre phrase_other":"There are <1>{{count}} exceeded characters in your sentence.","Inclure les champs de saisie":"Include input fields","Interagissez avec le compteur pour accéder aux actions rapides et à la liste des suggestions.":"Interact with the counter to access quick actions and the list of suggestions.","J'ai besoin de MerciApp sur ce site":"I need MerciApp on this website","J'ai compris":"OK","J'ai compris !":"OK!","L’icône <1> apparaîtra et deviendra <3> quand vous ferez une faute (ou plus ":"The icon <1> will appear and will turn to <3> if you have an alert (or more ","La présence du compteur signifie que MerciApp est actif et vérifie votre texte.":"The presence of the counter means that MerciApp is active and checking your text.","La vérification du texte est désactivée sur":"Spellchecking is disabled on","Laissez MerciApp corriger automatiquement vos erreurs. Uniquement disponible sur <2>certains sites":"Let MerciApp correct your mistakes automatically. Available only on <2>some websites","Langue incorrecte":"Incorrect language","Langues étrangères supportées : anglais, allemand, espagnol, portugais.":"Supported foreign languages: English, German, Spanish, Portuguese.","Le mot sera restauré et ajouté au dictionnaire personnel":"The word will be restored and added to the personal dictionary.","Limite quotidienne atteinte. Profitez de 30% de remise jusqu'au 3 mai 23h59.":"Daily limit reached. Take advantage of a 30% discount until May 3, 23:59.","Lorsque MerciApp vous suggère une amélioration, le compteur passe au rouge. Dans le cas contraire, le compteur repasse au vert !":"When MerciApp suggests an improvement, the counter turns red. Otherwise, the counter turns green again!","Masquer le compteur":"Hide the spinner","Me le rappeler dans 48 h":"Remind me in 48 hours","Me le rappeler plus tard":"Remind me later","Mettez à jour votre moyen de paiement pour ne pas perdre l’accès aux fonctionnalités MerciApp {{currentPlanName}} qui améliorent votre communication écrite.":"Update your payment method so that you don't lose access to the MerciApp {{currentPlanName}} features that improve your written communication.","Mettez à niveau votre compte pour vous aider à devenir un meilleur communicant à l’écrit et gagner du temps pour vous consacrer à ce qui compte vraiment.":"Upgrade your account to help you become a better communicator in writing and save time for what really matters.","Mettez votre compte à niveau pour retrouver l'accès aux fonctionnalités avancées.":"Upgrade your account to regain access to advanced features.","Mettre à jour":"Update","Mettre à jour mon moyen de paiement":"Update my payment method","Mettre à niveau":"Upgrade",Minute_one:"minute",Minute_other:"minutes","Modifier les instructions":"Modify instructions","N’attendez pas demain, profitez de reformulations sans limites et de fonctionnalités exclusives.":"Seize the opportunity today by availing yourself of limitless rephrasing options and exclusive functionalities.","Ne jamais me le rappeler":"Never remind me again","Nous allons retenter le paiement dans les prochains jours. Cependant, vous devriez peut-être mettre à jour votre moyen de paiement.":"We will try again in the next few days. However, you may need to update your payment method.","Optimisation de style":"Style optimisation","Optimisation de style recommandée":"Style optimisation recommended","Optimisations de style":"Style optimisations","Optimisations de style recommandées":"Recommended style optimisations","Oui, découvrir MerciApp 😃":"Yes, discover MerciApp 😃","Oups, connectez-vous pour activer les corrections de MerciApp.":"Oops, sign in to enable MerciApp spellchecking.","par MerciApp":"by MerciApp","Partager un retour":"Share feedback","Pas de suggestion":"No suggestion","Pas encore de compte ?":"No account yet?","Passer à Assist":"Switch to Assist","Passer en illimité":"Upgrade to unlimited","Plus convaincant":"More convincing","Plus d'informations":"More information","Plus qu’une simple évolution, l’autocorrection par MerciApp est capable de choisir la suggestion la plus adaptée, selon le contexte de votre phrase.":"More than a simple evolution, the autocorrection by MerciApp is able to choose the most suitable suggestion, depending on the context of your sentence.","Pour ce site uniquement":"For this website only","Précédent":"Back","Préférences linguistiques":"Language preferences","Prenez 1 minute montre en main pour découvrir comment profiter de tout le potentiel de l’extension MerciApp pour {{browserName}}.":"Take an extra minute to learn how to take advantage of the full potential of the MerciApp extension for {{browserName}}.","Procédez à la mise à niveau de votre compte pour continuer à profiter des toutes les fonctionnalités de MerciApp sans aucune limite.":"Upgrade your account to continue enjoying all the features of MerciApp without limit.","Profitez d’une correction intégrale et d’optimisations de votre style avec une version améliorée de MerciApp.":"Benefit from a full correction and optimisation of your style with an improved version of MerciApp.","Prolonger {{planName}}":"Extend {{planName}}","Prolonger Assist":"Extend Assist",Raccourcir:"Shorten","Réactiver la vérification":"Enable spellchecking","Réactiver MerciApp {{currentPlanName}}":"Reactivate MerciApp {{currentPlanName}}","Rechargez toutes les pages déjà ouvertes et cliquez dans n’importe quel champ de saisie.":"Reload any pages already open and click in any input field.","Reconnexion…":"Reconnecting…",Reformulation:"Rewriting","Reformulation à la demande":"On-Demand Rewriting","reformulation aujourd'hui_one":"rewriting today","reformulation aujourd'hui_other":"rewritings today","Reformulation illimitée":"Unlimited reformulation","Reformulation impossible entre 2 paragraphes":"Rewriting not possible between 2 paragraphs","Reformulations aujourd'hui":"Rewriting today",Reformuler:"Rewrite","Reformuler avec les instructions suivantes…":"Rewrite with the following instructions…","Réglages généraux":"General settings","Rejoignez 350 000+ utilisateurs":"Join 350,000+ users","Remplacer dans le texte":"Replace in text","Rendre plus soutenu":"More formal",Restaurer:"Restore","Restaurer et mémoriser":"Restore and memorize","Restriction Notion":"Notion restriction","Restriction WordPress":"WordPress restriction",Retour:"Back","S'inscrire gratuitement":"Sign up for free","Sans engagement, annulez à tout moment.":"No commitment, cancel at any time.","Sans mise à jour, l’abonnement ne sera pas renouvelé et vous perdrez l’accès aux fonctionnalités de MerciApp {{currentPlanName}}":"Without an update, your subscription will not be renewed and you will lose access to the MerciApp {{currentPlanName}} features",Scinder:"Split","Se connecter":"Login",Seconde_one:"second",Seconde_other:"seconds","Sélectionner une phrase et cliquez sur le widget pour déclencher la reformulation. Vous gardez le sens, nous apportons le raffinement.":"Select a sentence and click on the widget to trigger the rephrasing. You keep the meaning, we bring the refinement.","Sélectionnez du texte et cliquez sur le widget pour donner un nouvel éclat à vos idées.":"Select text and click the widget to enhance your ideas.","Sélectionnez une phrase plus longue":"Select a longer sentence","Signaler un problème":"Report an issue","Signaler un problème sur ce site":"Report an issue on this website","Suggestions avancées":"Advanced suggestions",Suivant:"Next",Supprimer:"Delete","Supprimer la sélection":"Delete selection",Synonymes:"Synonyms","Temps économisé":"Time saved","Texte trop court pour être reformulé":"Text too short to rewrite","Texte trop long pour être reformulé":"Text too long to rewrite","Tout MerciApp en illimité.":"All MerciApp unlimited","Veillez à mettre à jour votre moyen de paiement immédiatement afin qu’il n’y ait pas d'interruption de votre abonnement MerciApp {{currentPlanName}}.":"Please update your payment method immediately so that your MerciApp {{currentPlanName}} subscription is not interrupted.","Voir moins":"See less","Votre abonnement MerciApp {{currentPlanName}} a été suspendu":"Your MerciApp {{currentPlanName}} subscription has been suspended","Votre abonnement MerciApp {{currentPlanName}} est sur le point d’être renouvelé, mais la carte bancaire associée à votre abonnement est expirée.":"Your MerciApp {{currentPlanName}} subscription is about to be renewed, but the bank card associated with your subscription has expired.","Votre abonnement MerciApp {{currentPlanName}} est suspendu":"Your MerciApp {{currentPlanName}} subscription is suspended","Votre abonnement MerciApp {{currentPlanName}} ne pourra pas être renouvelé":"Your MerciApp {{currentPlanName}} subscription cannot be renewed","Votre compte a basculé vers la version gratuite de MerciApp.":"Your account has been switched to the free version of MerciApp.","Votre dernier paiement a malheureusement échoué":"Your last payment unfortunately failed","Votre essai gratuit de MerciApp Assist a expiré":"Your free trial of MerciApp Assist has expired","Votre moyen de paiement arrive à expiration":"Your payment method is about to expire","Votre moyen de paiement est expiré":"Your payment method has expired","Votre moyen de paiement est maintenant expiré":"Your payment method has now expired","Votre moyen de paiement n’a pas été mis à jour malgré nos relances précédentes. Étant donné que votre dernière facture n’a pas été réglée, nous avons suspendu votre abonnement.":"Your payment method has not been updated despite our previous reminders. As your last invoice has not been paid, we have suspended your subscription.","Votre moyen de paiement va bientôt expirer":"Your payment method is about to expire","Votre période d'essai est terminée.":"Your trial period has ended.","Votre phrase contient peut-être une erreur, vous pourriez la reformuler.":"There may be a mistake in your sentence, you could rewrite it.","Vous avez atteint votre limite d’analyse quotidienne":"You have reached your daily analysis limit","Vous avez besoin de MerciApp sur {{domain}} ?":"You need MerciApp on {{domain}}?","Vous ne bénéficiez plus des avantages de MerciApp {{currentPlanName}}":"You no longer benefit from the advantages of MerciApp {{currentPlanName}}","Vous ne souhaitez pas attendre ?":"Preferring not to delay?","Vous ne souhaitez pas attendre ? Optez dès à présent pour une version premium":"Don't want to wait? Opt now for a premium version","Vous pouvez désactiver l’autocorrection depuis la pop-up de réglage de MerciApp.":"You can disable smart autocorrection from the MerciApp settings pop-up.","Vous pouvez réactiver la vérification du texte à tout moment depuis l’icône MerciApp de la barre d’outils.":"You can reactivate spellchecking at any time from the MerciApp icon in the toolbar.","Vous utilisez actuellement {{planName}}":"You are currently using {{planName}}","Vous utilisez la formule gratuite":"You are using the free plan"}},fr:{translation:{"(Moyenne par membre)":"(Moyenne par membre)","{{count}} derniers jours_one":"{{count}} dernier jour","{{count}} derniers jours_many":"{{count}} derniers jours","{{count}} derniers jours_other":"{{count}} derniers jours","{{count}} jours d'essai restants_one":"{{count}} jour d'essai restant","{{count}} jours d'essai restants_many":"{{count}} jours d'essai restants","{{count}} jours d'essai restants_other":"{{count}} jours d'essai restants","{{currentQuota}} sur {{maximumQuota}} mots analysés aujourd’hui.":"{{currentQuota}} sur {{maximumQuota}} mots analysés aujourd’hui.","{{currentQuota}} sur {{maxQuota}} mots analysés aujourd’hui.":"{{currentQuota}} sur {{maxQuota}} mots analysés aujourd’hui.","{{maxQuota}} / {{maxQuota}} mots analysés":"{{maxQuota}} / {{maxQuota}} mots analysés","{{threshold}} / {{threshold}} mots analysés":"{{threshold}} / {{threshold}} mots analysés","<1>{{count}} alertes avancées sont encore présentes. Mettez à niveau votre abonnement pour les afficher._one":"<1>{{count}} alerte avancée est encore présente. Mettez à niveau votre abonnement pour l'afficher.","<1>{{count}} alertes avancées sont encore présentes. Mettez à niveau votre abonnement pour les afficher._many":"<1>{{count}} alertes avancées sont encore présentes. Mettez à niveau votre abonnement pour les afficher.","<1>{{count}} alertes avancées sont encore présentes. Mettez à niveau votre abonnement pour les afficher._other":"<1>{{count}} alertes avancées sont encore présentes. Mettez à niveau votre abonnement pour les afficher.","<1>{{count}} optimisations de style sont recommandées. Mettez à niveau votre abonnement pour les afficher._one":"<1>{{count}} optimisation de style est recommandée. Mettez à niveau votre abonnement pour l'afficher.","<1>{{count}} optimisations de style sont recommandées. Mettez à niveau votre abonnement pour les afficher._many":"<1>{{count}} optimisations de style sont recommandées. Mettez à niveau votre abonnement pour les afficher.","<1>{{count}} optimisations de style sont recommandées. Mettez à niveau votre abonnement pour les afficher._other":"<1>{{count}} optimisations de style sont recommandées. Mettez à niveau votre abonnement pour les afficher.","<1>{{originalWord}} a été corrigé automatiquement":"<1>{{originalWord}} a été corrigé automatiquement","<1>Attention, <2>votre moyen de paiement arrivera à expiration à la fin du mois ({{expirationMonth}}). Mettez-le à jour pour profiter de {{planName}} sans interruption.":"<1>Attention, <2>votre moyen de paiement arrivera à expiration à la fin du mois ({{expirationMonth}}). Mettez-le à jour pour profiter de {{planName}} sans interruption.","<1>Attention, <2>votre moyen de paiement est expiré. Les fonctionnalités {{planName}} deviendront indisponibles lors du renouvellement de votre abonnement.":"<1>Attention, <2>votre moyen de paiement est expiré. Les fonctionnalités {{planName}} deviendront indisponibles lors du renouvellement de votre abonnement.","3 chaque jour":"3 chaque jour","3 sur 3":"3 sur 3","30 jours d’essai restants":"30 jours d’essai restants","600 / 600 mots analysés aujourd’hui":"600 / 600 mots analysés aujourd’hui","Accédez facilement aux réglages pour l'autocorrection, les synonymes et définitions, la reformulation, l’autocorrection et plus encore.":"Accédez facilement aux réglages pour l'autocorrection, les synonymes et définitions, la reformulation, l’autocorrection et plus encore.","Accédez instantanément à une multitude de synonymes et définitions pour enrichir votre texte et améliorer votre maîtrise du vocabulaire. Tout cela, juste avec un double-clic !":"Accédez instantanément à une multitude de synonymes et définitions pour enrichir votre texte et améliorer votre maîtrise du vocabulaire. Tout cela, juste avec un double-clic !","Activer MerciApp sur ce site":"Activer MerciApp sur ce site","Activez l'analyse de vos textes dès maintenant":"Activez l'analyse de vos textes dès maintenant","Activez les suggestions de style et faites passer vos idées avec brio grâce à un style irréprochable.":"Activez les suggestions de style et faites passer vos idées avec brio grâce à un style irréprochable.","Afficher d'autres propositions":"Afficher d'autres propositions","Afficher le bouton MerciApp IA":"Afficher le bouton MerciApp IA","Afin de profiter de MerciApp {{currentPlanName}} sans interruption, il est nécessaire que vous mettiez à jour votre moyen de paiement.":"Afin de profiter de MerciApp {{currentPlanName}} sans interruption, il est nécessaire que vous mettiez à jour votre moyen de paiement.",Aide:"Aide","Ajouter au dictionnaire":"Ajouter au dictionnaire",Alerte:"Alerte","Alerte avancée":"Alerte avancée",Alertes:"Alertes","Alertes avancées":"Alertes avancées","Amélioration du style":"Amélioration du style","Améliorer le style":"Améliorer le style","Analyse multilingue":"Analyse multilingue","Analyses illimitées":"Analyses illimitées",Assist:"Assist","Autocorrection intelligente":"Autocorrection intelligente","Avec l’autocorrection, MerciApp fait le travail pour vous.":"Avec l’autocorrection, MerciApp fait le travail pour vous.","Bienvenue sur l’extension MerciApp !":"Bienvenue sur l’extension MerciApp !","caractères":"caractères","Ce panneau permet de consulter la liste de toutes les suggestions disponibles pour votre texte.":"Ce panneau permet de consulter la liste de toutes les suggestions disponibles pour votre texte.","Chargement…":"Chargement…","Cliquez ci‑dessous pour le signaler à l'équipe et recevoir un e‑mail lorsque MerciApp deviendra compatible.":"Cliquez ci‑dessous pour le signaler à l'équipe et recevoir un e‑mail lorsque MerciApp deviendra compatible.","Cliquez sur le bouton IA pour utiliser la puissance de l’intelligence artificielle quand vous en avez besoin.":"Cliquez sur le bouton IA pour utiliser la puissance de l’intelligence artificielle quand vous en avez besoin.","Cliquez sur les mots ou expressions soulignés pour voir les suggestions MerciApp et cliquez sur l’une d’entre elles pour l’appliquer à votre texte.":"Cliquez sur les mots ou expressions soulignés pour voir les suggestions MerciApp et cliquez sur l’une d’entre elles pour l’appliquer à votre texte.","Cliquez sur les mots soulignés pour les corriger en un clic !":"Cliquez sur les mots soulignés pour les corriger en un clic !","Continuer avec la version gratuite":"Continuer avec la version gratuite",Correct:"Correct","Correction non supportée sur cette page":"Correction non supportée sur cette page","Définitions":"Définitions","Définitions et synonymes au double‑clic sur un mot.":"Définitions et synonymes au double‑clic sur un mot.","Déjà un compte ?":"Déjà un compte ?","Désactiver MerciApp sur <1>{{hostname}} ?":"Désactiver MerciApp sur <1>{{hostname}} ?","Désactiver MerciApp sur ce site":"Désactiver MerciApp sur ce site","Désactiver sur ce site":"Désactiver sur ce site","Dictionnaire 2.0":"Dictionnaire 2.0","Donnez un nouvel éclat à vos idées grâce à la reformulation.":"Donnez un nouvel éclat à vos idées grâce à la reformulation.","Dorénavant, vous pourrez utiliser MerciApp dans la limite de <1>600 mots analysés par jour.":"Dorénavant, vous pourrez utiliser MerciApp dans la limite de <1>600 mots analysés par jour.","Double-cliquez sur un mot pour accéder aux définitions et synonymes":"Double-cliquez sur un mot pour accéder aux définitions et synonymes","Écrivez votre texte, les erreurs seront soulignées.":"Écrivez votre texte, les erreurs seront soulignées.","En cas de nouvel échec, vous perdrez l’accès aux fonctionnalités de MerciApp {{currentPlanName}}":"En cas de nouvel échec, vous perdrez l’accès aux fonctionnalités de MerciApp {{currentPlanName}}","En cliquant sur le compteur, le panneau d’alertes s’ouvrira.":"En <1>cliquant sur le compteur, le panneau d’alertes s’ouvrira.","En survolant le compteur, la barre d’actions rapides s’agrandira et vous permettra d’accéder encore plus rapidement à certaines fonctionnalités.":"En <1>survolant le compteur, la barre d’actions rapides s’agrandira et vous permettra d’accéder encore plus rapidement à certaines fonctionnalités.","Ensuite, vous basculerez automatiquement sur la version gratuite.":"Ensuite, vous basculerez automatiquement sur la version gratuite.",Entreprise:"Entreprise","Épinglez MerciApp sur votre navigateur pour un accès rapide aux fonctionnalités essentielles.":"Épinglez MerciApp sur votre navigateur pour un accès rapide aux fonctionnalités essentielles.",Essai:"Essai","Évite les répétitions et améliore le style":"Évite les répétitions et améliore le style","Examinez et acceptez les suggestions en temps réel et au fur et à mesure que vous écrivez.":"Examinez et acceptez les suggestions en temps réel et au fur et à mesure que vous écrivez.","Expiration imminente de votre abonnement MerciApp {{currentPlanName}}":"Expiration imminente de votre abonnement MerciApp {{currentPlanName}}","Expiré":"Expiré","Expire bientôt ({{expirationMonth}})":"Expire bientôt ({{expirationMonth}})","Fautes évitées":"Fautes évitées",Feedback:"Feedback","Fonctionnalité premium":"Fonctionnalité premium","Garder la correction active":"Garder la correction active",Gratuit:"Gratuit",Heure_one:"Heure",Heure_many:"Heures",Heure_other:"Heures",HISTORIQUE:"HISTORIQUE","Historique des dernières instructions":"Historique des dernières instructions",Ignorer:"Ignorer","Il ne vous reste que 7 jours pour essayer MerciApp Assist.":"Il ne vous reste que 7 jours pour essayer MerciApp Assist.","Il vous reste":"Il vous reste","Il vous reste {{count}} jour pour essayer gratuitement {{planName}}._one":"Il vous reste {{count}} jour pour essayer gratuitement {{planName}}.","Il vous reste {{count}} jour pour essayer gratuitement {{planName}}._many":"Il vous reste {{count}} jours pour essayer gratuitement {{planName}}.","Il vous reste {{count}} jour pour essayer gratuitement {{planName}}._other":"Il vous reste {{count}} jours pour essayer gratuitement {{planName}}.","Il y a <1>{{count}} caractère en trop dans votre phrase_one":"Il y a <1>{{count}} caractère en trop dans votre phrase","Il y a <1>{{count}} caractère en trop dans votre phrase_many":"Il y a <1>{{count}} caractères en trop dans votre phrase","Il y a <1>{{count}} caractère en trop dans votre phrase_other":"Il y a <1>{{count}} caractères en trop dans votre phrase","Inclure les champs de saisie":"Inclure les champs de saisie","Interagissez avec le compteur pour accéder aux actions rapides et à la liste des suggestions.":"Interagissez avec le compteur pour accéder aux actions rapides et à la liste des suggestions.","J'ai besoin de MerciApp sur ce site":"J'ai besoin de MerciApp sur ce site","J'ai compris":"J'ai compris","J'ai compris !":"J'ai compris !","L’icône <1> apparaîtra et deviendra <3> quand vous ferez une faute (ou plus ":"L’icône <1> apparaîtra et deviendra <3> quand vous ferez une faute (ou plus ","La présence du compteur signifie que MerciApp est actif et vérifie votre texte.":"La présence du compteur signifie que MerciApp est actif et vérifie votre texte.","La vérification du texte est désactivée sur":"La vérification du texte est désactivée sur","Laissez MerciApp corriger automatiquement vos erreurs. Uniquement disponible sur <2>certains sites":"Laissez MerciApp corriger automatiquement vos erreurs. Uniquement disponible sur <2>certains sites","Langue incorrecte":"Langue incorrecte","Langues étrangères supportées : anglais, allemand, espagnol, portugais.":"Langues étrangères supportées : anglais, allemand, espagnol, portugais.","Le mot sera restauré et ajouté au dictionnaire personnel":"Le mot sera restauré et ajouté au dictionnaire personnel","Limite quotidienne atteinte. Profitez de 30% de remise jusqu'au 3 mai 23h59.":"Limite quotidienne atteinte. Profitez de 30% de remise jusqu'au 3 mai 23h59.","Lorsque MerciApp vous suggère une amélioration, le compteur passe au rouge. Dans le cas contraire, le compteur repasse au vert !":"Lorsque MerciApp vous suggère une amélioration, le compteur passe au rouge. Dans le cas contraire, le compteur repasse au vert !","Masquer le compteur":"Masquer le compteur","Me le rappeler dans 48 h":"Me le rappeler dans 48 h","Me le rappeler plus tard":"Me le rappeler plus tard","Mettez à jour votre moyen de paiement pour ne pas perdre l’accès aux fonctionnalités MerciApp {{currentPlanName}} qui améliorent votre communication écrite.":"Mettez à jour votre moyen de paiement pour ne pas perdre l’accès aux fonctionnalités MerciApp {{currentPlanName}} qui améliorent votre communication écrite.","Mettez à niveau votre compte pour vous aider à devenir un meilleur communicant à l’écrit et gagner du temps pour vous consacrer à ce qui compte vraiment.":"Mettez à niveau votre compte pour vous aider à devenir un meilleur communicant à l’écrit et gagner du temps pour vous consacrer à ce qui compte vraiment.","Mettez votre compte à niveau pour retrouver l'accès aux fonctionnalités avancées.":"Mettez votre compte à niveau pour retrouver l'accès aux fonctionnalités avancées.","Mettre à jour":"Mettre à jour","Mettre à jour mon moyen de paiement":"Mettre à jour mon moyen de paiement","Mettre à niveau":"Mettre à niveau",Minute_one:"Minute",Minute_many:"Minutes",Minute_other:"Minutes","Modifier les instructions":"Modifier les instructions","N’attendez pas demain, profitez de reformulations sans limites et de fonctionnalités exclusives.":"N’attendez pas demain, profitez de reformulations sans limites et de fonctionnalités exclusives.","Ne jamais me le rappeler":"Ne jamais me le rappeler","Nous allons retenter le paiement dans les prochains jours. Cependant, vous devriez peut-être mettre à jour votre moyen de paiement.":"Nous allons retenter le paiement dans les prochains jours. Cependant, vous devriez peut-être mettre à jour votre moyen de paiement.","Optimisation de style":"Optimisation de style","Optimisation de style recommandée":"Optimisation de style recommandée","Optimisations de style":"Optimisations de style","Optimisations de style recommandées":"Optimisations de style recommandées","Oui, découvrir MerciApp 😃":"Oui, découvrir MerciApp 😃","Oups, connectez-vous pour activer les corrections de MerciApp.":"Oups, connectez-vous pour activer les corrections de MerciApp.","par MerciApp":"par MerciApp","Partager un retour":"Partager un retour","Pas de suggestion":"Pas de suggestion","Pas encore de compte ?":"Pas encore de compte ?","Passer à Assist":"Passer à Assist","Passer en illimité":"Passer en illimité","Plus convaincant":"Plus convaincant","Plus d'informations":"Plus d'informations","Plus qu’une simple évolution, l’autocorrection par MerciApp est capable de choisir la suggestion la plus adaptée, selon le contexte de votre phrase.":"Plus qu’une simple évolution, l’autocorrection par MerciApp est capable de choisir la suggestion la plus adaptée, selon le contexte de votre phrase.","Pour ce site uniquement":"Pour ce site uniquement","Précédent":"Précédent","Préférences linguistiques":"Préférences linguistiques","Prenez 1 minute montre en main pour découvrir comment profiter de tout le potentiel de l’extension MerciApp pour {{browserName}}.":"Prenez 1 minute montre en main pour découvrir comment profiter de tout le potentiel de l’extension MerciApp pour {{browserName}}.","Procédez à la mise à niveau de votre compte pour continuer à profiter des toutes les fonctionnalités de MerciApp sans aucune limite.":"Procédez à la mise à niveau de votre compte pour continuer à profiter des toutes les fonctionnalités de MerciApp sans aucune limite.","Profitez d’une correction intégrale et d’optimisations de votre style avec une version améliorée de MerciApp.":"Profitez d’une correction intégrale et d’optimisations de votre style avec une version améliorée de MerciApp.","Prolonger {{planName}}":"Prolonger {{planName}}","Prolonger Assist":"Prolonger Assist",Raccourcir:"Raccourcir","Réactiver la vérification":"Réactiver la vérification","Réactiver MerciApp {{currentPlanName}}":"Réactiver MerciApp {{currentPlanName}}","Rechargez toutes les pages déjà ouvertes et cliquez dans n’importe quel champ de saisie.":"Rechargez toutes les pages déjà ouvertes et cliquez dans n’importe quel champ de saisie.","Reconnexion…":"Reconnexion…",Reformulation:"Reformulation","Reformulation à la demande":"Reformulation à la demande","reformulation aujourd'hui_one":"reformulation aujourd'hui","reformulation aujourd'hui_many":"reformulations aujourd'hui","reformulation aujourd'hui_other":"reformulations aujourd'hui","Reformulation illimitée":"Reformulation illimitée","Reformulation impossible entre 2 paragraphes":"Reformulation impossible entre 2 paragraphes","Reformulations aujourd'hui":"Reformulations aujourd'hui",Reformuler:"Reformuler","Reformuler avec les instructions suivantes…":"Reformuler avec les instructions suivantes…","Réglages généraux":"Réglages généraux","Rejoignez 350 000+ utilisateurs":"Rejoignez 350 000+ utilisateurs","Remplacer dans le texte":"Remplacer dans le texte","Rendre plus soutenu":"Rendre plus soutenu",Restaurer:"Restaurer","Restaurer et mémoriser":"Restaurer et mémoriser","Restriction Notion":"Restriction Notion","Restriction WordPress":"Restriction WordPress",Retour:"Retour","S'inscrire gratuitement":"S'inscrire gratuitement","Sans engagement, annulez à tout moment.":"Sans engagement, annulez à tout moment.","Sans mise à jour, l’abonnement ne sera pas renouvelé et vous perdrez l’accès aux fonctionnalités de MerciApp {{currentPlanName}}":"Sans mise à jour, l’abonnement ne sera pas renouvelé et vous perdrez l’accès aux fonctionnalités de MerciApp {{currentPlanName}}",Scinder:"Scinder","Se connecter":"Se connecter",Seconde_one:"Seconde",Seconde_many:"Secondes",Seconde_other:"Secondes","Sélectionner une phrase et cliquez sur le widget pour déclencher la reformulation. Vous gardez le sens, nous apportons le raffinement.":"Sélectionner une phrase et cliquez sur le widget pour déclencher la reformulation. Vous gardez le sens, nous apportons le raffinement.","Sélectionnez du texte et cliquez sur le widget pour donner un nouvel éclat à vos idées.":"Sélectionnez du texte et cliquez sur le widget pour donner un nouvel éclat à vos idées.","Sélectionnez une phrase plus longue":"Sélectionnez une phrase plus longue","Signaler un problème":"Signaler un problème","Signaler un problème sur ce site":"Signaler un problème sur ce site","Suggestions avancées":"Suggestions avancées",Suivant:"Suivant",Supprimer:"Supprimer","Supprimer la sélection":"Supprimer la sélection",Synonymes:"Synonymes","Temps économisé":"Temps économisé","Texte trop court pour être reformulé":"Texte trop court pour être reformulé","Texte trop long pour être reformulé":"Texte trop long pour être reformulé","Tout MerciApp en illimité.":"Tout MerciApp en illimité.","Veillez à mettre à jour votre moyen de paiement immédiatement afin qu’il n’y ait pas d'interruption de votre abonnement MerciApp {{currentPlanName}}.":"Veillez à mettre à jour votre moyen de paiement immédiatement afin qu’il n’y ait pas d'interruption de votre abonnement MerciApp {{currentPlanName}}.","Voir moins":"Voir moins","Votre abonnement MerciApp {{currentPlanName}} a été suspendu":"Votre abonnement MerciApp {{currentPlanName}} a été suspendu","Votre abonnement MerciApp {{currentPlanName}} est sur le point d’être renouvelé, mais la carte bancaire associée à votre abonnement est expirée.":"Votre abonnement MerciApp {{currentPlanName}} est sur le point d’être renouvelé, mais la carte bancaire associée à votre abonnement est expirée.","Votre abonnement MerciApp {{currentPlanName}} est suspendu":"Votre abonnement MerciApp {{currentPlanName}} est suspendu","Votre abonnement MerciApp {{currentPlanName}} ne pourra pas être renouvelé":"Votre abonnement MerciApp {{currentPlanName}} ne pourra pas être renouvelé","Votre compte a basculé vers la version gratuite de MerciApp.":"Votre compte a basculé vers la version gratuite de MerciApp.","Votre dernier paiement a malheureusement échoué":"Votre dernier paiement a malheureusement échoué","Votre essai gratuit de MerciApp Assist a expiré":"Votre essai gratuit de MerciApp Assist a expiré","Votre moyen de paiement arrive à expiration":"Votre moyen de paiement arrive à expiration","Votre moyen de paiement est expiré":"Votre moyen de paiement est expiré","Votre moyen de paiement est maintenant expiré":"Votre moyen de paiement est maintenant expiré","Votre moyen de paiement n’a pas été mis à jour malgré nos relances précédentes. Étant donné que votre dernière facture n’a pas été réglée, nous avons suspendu votre abonnement.":"Votre moyen de paiement n’a pas été mis à jour malgré nos relances précédentes. Étant donné que votre dernière facture n’a pas été réglée, nous avons suspendu votre abonnement.","Votre moyen de paiement va bientôt expirer":"Votre moyen de paiement va bientôt expirer","Votre période d'essai est terminée.":"Votre période d'essai est terminée.","Votre phrase contient peut-être une erreur, vous pourriez la reformuler.":"Votre phrase contient peut-être une erreur, vous pourriez la reformuler.","Vous avez atteint votre limite d’analyse quotidienne":"Vous avez atteint votre limite d’analyse quotidienne","Vous avez besoin de MerciApp sur {{domain}} ?":"Vous avez besoin de MerciApp sur {{domain}} ?","Vous ne bénéficiez plus des avantages de MerciApp {{currentPlanName}}":"Vous ne bénéficiez plus des avantages de MerciApp {{currentPlanName}}","Vous ne souhaitez pas attendre ?":"Vous ne souhaitez pas attendre ?","Vous ne souhaitez pas attendre ? Optez dès à présent pour une version premium":"Vous ne souhaitez pas attendre ? Optez dès à présent pour une version premium","Vous pouvez désactiver l’autocorrection depuis la pop-up de réglage de MerciApp.":"Vous pouvez désactiver l’autocorrection depuis la pop-up de réglage de MerciApp.","Vous pouvez réactiver la vérification du texte à tout moment depuis l’icône MerciApp de la barre d’outils.":"Vous pouvez réactiver la vérification du texte à tout moment depuis l’icône MerciApp de la barre d’outils.","Vous utilisez actuellement {{planName}}":"Vous utilisez actuellement {{planName}}","Vous utilisez la formule gratuite":"Vous utilisez la formule gratuite"}}};kf.use(Fm).init({fallbackLng:"fr",interpolation:{escapeValue:!1},missingKeyHandler:(e,t,n)=>{throw new Error(`Key not found "${n}". This could also happen if your "count" variable (pluralization) is not a number.`)},resources:Qm,returnEmptyString:!1,saveMissing:!0});var Km={exports:{}},Ym={},Jm=dm,Xm=60103;if(Ym.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var _m=Symbol.for;Xm=_m("react.element"),Ym.Fragment=_m("react.fragment")}var $m=Jm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,eg=Object.prototype.hasOwnProperty,tg={key:!0,ref:!0,__self:!0,__source:!0};function ng(e,t,n){var r,o={},i=null,s=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(s=t.ref),t)eg.call(t,r)&&!tg.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Xm,type:e,key:i,ref:s,props:o,_owner:$m.current}}Ym.jsx=ng,Ym.jsxs=ng,Km.exports=Ym;var rg=Km.exports,og={exports:{}},ig={},sg={exports:{}},ag={}; /** @license React v0.20.2 * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ !function(e){var t,n,r,o;if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,c=null,u=function(){if(null!==l)try{var t=e.unstable_now();l(!0,t),l=null}catch(n){throw setTimeout(u,0),n}};t=function(e){null!==l?setTimeout(t,0,e):(l=e,setTimeout(u,0))},n=function(e,t){c=setTimeout(e,t)},r=function(){clearTimeout(c)},e.unstable_shouldYield=function(){return!1},o=e.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var f=!1,m=null,g=-1,y=5,b=0;e.unstable_shouldYield=function(){return e.unstable_now()>=b},o=function(){},e.unstable_forceFrameRate=function(e){0>e||125>>1,o=e[r];if(!(void 0!==o&&0E(s,n))void 0!==l&&0>E(l,s)?(e[r]=l,e[a]=n,r=a):(e[r]=s,e[i]=n,r=i);else{if(!(void 0!==l&&0>E(l,n)))break e;e[r]=l,e[a]=n,r=a}}}return t}return null}function E(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var S=[],O=[],T=1,k=null,M=3,L=!1,R=!1,N=!1;function D(e){for(var t=w(O);null!==t;){if(null===t.callback)A(O);else{if(!(t.startTime<=e))break;A(O),t.sortIndex=t.expirationTime,v(S,t)}t=w(O)}}function I(e){if(N=!1,D(e),!R)if(null!==w(S))R=!0,t(j);else{var r=w(O);null!==r&&n(I,r.startTime-e)}}function j(t,o){R=!1,N&&(N=!1,r()),L=!0;var i=M;try{for(D(o),k=w(S);null!==k&&(!(k.expirationTime>o)||t&&!e.unstable_shouldYield());){var s=k.callback;if("function"==typeof s){k.callback=null,M=k.priorityLevel;var a=s(k.expirationTime<=o);o=e.unstable_now(),"function"==typeof a?k.callback=a:k===w(S)&&A(S),D(o)}else A(S);k=w(S)}if(null!==k)var l=!0;else{var c=w(O);null!==c&&n(I,c.startTime-o),l=!1}return l}finally{k=null,M=i,L=!1}}var z=o;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){R||L||(R=!0,t(j))},e.unstable_getCurrentPriorityLevel=function(){return M},e.unstable_getFirstCallbackNode=function(){return w(S)},e.unstable_next=function(e){switch(M){case 1:case 2:case 3:var t=3;break;default:t=M}var n=M;M=t;try{return e()}finally{M=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=z,e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=M;M=e;try{return t()}finally{M=n}},e.unstable_scheduleCallback=function(o,i,s){var a=e.unstable_now();switch("object"==typeof s&&null!==s?s="number"==typeof(s=s.delay)&&0a?(o.sortIndex=s,v(O,o),null===w(S)&&o===w(O)&&(N?r():N=!0,n(I,s-a))):(o.sortIndex=l,v(S,o),R||L||(R=!0,t(j))),o},e.unstable_wrapCallback=function(e){var t=M;return function(){var n=M;M=t;try{return e.apply(this,arguments)}finally{M=n}}}}(ag),sg.exports=ag;var lg=sg.exports,cg=dm,ug=If,dg=lg; /** @license React v17.0.2 * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */function pg(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n