(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9263],{56525:function(t,e,i){var s=i(5309).lW,n=function(){"use strict";var t,e,i;function n(t,e){return null!=e&&t instanceof e}try{t=Map}catch(e){t=function(){}}try{e=Set}catch(t){e=function(){}}try{i=Promise}catch(t){i=function(){}}function r(o,a,u,l,c){"object"==typeof a&&(u=a.depth,l=a.prototype,c=a.includeNonEnumerable,a=a.circular);var f=[],p=[],d=void 0!==s;return void 0===a&&(a=!0),void 0===u&&(u=1/0),function o(u,v){if(null===u)return null;if(0===v||"object"!=typeof u)return u;if(n(u,t))y=new t;else if(n(u,e))y=new e;else if(n(u,i))y=new i(function(t,e){u.then(function(e){t(o(e,v-1))},function(t){e(o(t,v-1))})});else if(r.__isArray(u))y=[];else if(r.__isRegExp(u))y=new RegExp(u.source,h(u)),u.lastIndex&&(y.lastIndex=u.lastIndex);else if(r.__isDate(u))y=new Date(u.getTime());else{if(d&&s.isBuffer(u))return y=s.allocUnsafe?s.allocUnsafe(u.length):new s(u.length),u.copy(y),y;n(u,Error)?y=Object.create(u):void 0===l?y=Object.create(g=Object.getPrototypeOf(u)):(y=Object.create(l),g=l)}if(a){var y,g,_,m=f.indexOf(u);if(-1!=m)return p[m];f.push(u),p.push(y)}for(var b in n(u,t)&&u.forEach(function(t,e){var i=o(e,v-1),s=o(t,v-1);y.set(i,s)}),n(u,e)&&u.forEach(function(t){var e=o(t,v-1);y.add(e)}),u)g&&(_=Object.getOwnPropertyDescriptor(g,b)),_&&null==_.set||(y[b]=o(u[b],v-1));if(Object.getOwnPropertySymbols)for(var E=Object.getOwnPropertySymbols(u),b=0;b0&&o.length>n&&!o.warned){o.warned=!0;var n,r,o,u=Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=o.length,console&&console.warn&&console.warn(u)}return t}function l(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(t,e,i){var s={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},n=l.bind(s);return n.listener=i,s.wrapFn=n,n}function f(t,e,i){var s=t._events;if(void 0===s)return[];var n=s[e];return void 0===n?[]:"function"==typeof n?i?[n.listener||n]:[n]:i?function(t){for(var e=Array(t.length),i=0;i0&&(o=e[0]),o instanceof Error)throw o;var o,h=Error("Unhandled error."+(o?" ("+o.message+")":""));throw h.context=o,h}var a=r[t];if(void 0===a)return!1;if("function"==typeof a)s(a,this,e);else for(var u=a.length,l=d(a,u),i=0;i=0;r--)if(i[r]===e||i[r].listener===e){o=i[r].listener,n=r;break}if(n<0)return this;0===n?i.shift():function(t,e){for(;e+1=0;s--)this.removeListener(t,e[s]);return this},r.prototype.listeners=function(t){return f(this,t,!0)},r.prototype.rawListeners=function(t){return f(this,t,!1)},r.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},r.prototype.listenerCount=p,r.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},29263:function(t,e,i){(function(){(t.exports=i(85131)).version="5.1.2"}).call(this)},85131:function(t,e,i){var s=i(5309).lW;(function(){var e,n,r=[].splice,o=function(t,e){if(!(t instanceof e))throw Error("Bound instance method accessed before binding")},h=[].indexOf;n=i(56525),e=i(36560).EventEmitter,t.exports=(function(){class t extends e{constructor(t={}){super(),this.get=this.get.bind(this),this.mget=this.mget.bind(this),this.set=this.set.bind(this),this.mset=this.mset.bind(this),this.del=this.del.bind(this),this.take=this.take.bind(this),this.ttl=this.ttl.bind(this),this.getTtl=this.getTtl.bind(this),this.keys=this.keys.bind(this),this.has=this.has.bind(this),this.getStats=this.getStats.bind(this),this.flushAll=this.flushAll.bind(this),this.flushStats=this.flushStats.bind(this),this.close=this.close.bind(this),this._checkData=this._checkData.bind(this),this._check=this._check.bind(this),this._isInvalidKey=this._isInvalidKey.bind(this),this._wrap=this._wrap.bind(this),this._getValLength=this._getValLength.bind(this),this._error=this._error.bind(this),this._initErrors=this._initErrors.bind(this),this.options=t,this._initErrors(),this.data={},this.options=Object.assign({forceString:!1,objectValueSize:80,promiseValueSize:80,arrayValueSize:40,stdTTL:0,checkperiod:600,useClones:!0,deleteOnExpire:!0,enableLegacyCallbacks:!1,maxKeys:-1},this.options),this.options.enableLegacyCallbacks&&(console.warn("WARNING! node-cache legacy callback support will drop in v6.x"),["get","mget","set","del","ttl","getTtl","keys","has"].forEach(t=>{var e;e=this[t],this[t]=function(...t){var i,s,n;if(s=t,[...t]=s,[i]=r.call(t,-1),"function"!=typeof i)return e(...t,i);try{n=e(...t),i(null,n)}catch(t){i(t)}}})),this.stats={hits:0,misses:0,keys:0,ksize:0,vsize:0},this.validKeyTypes=["string","number"],this._checkData();return}get(e){var i;if(o(this,t),null!=(i=this._isInvalidKey(e)))throw i;if(null!=this.data[e]&&this._check(e,this.data[e]))return this.stats.hits++,this._unwrap(this.data[e]);this.stats.misses++}mget(e){var i,s,n,r,h;if(o(this,t),!Array.isArray(e))throw this._error("EKEYSTYPE");for(s=0,h={},r=e.length;s-1&&this.stats.keys>=this.options.maxKeys)throw this._error("ECACHEFULL");if(this.options.forceString,null==s&&(s=this.options.stdTTL),null!=(n=this._isInvalidKey(e)))throw n;return r=!1,this.data[e]&&(r=!0,this.stats.vsize-=this._getValLength(this._unwrap(this.data[e],!1))),this.data[e]=this._wrap(i,s),this.stats.vsize+=this._getValLength(i),!r&&(this.stats.ksize+=this._getKeyLength(e),this.stats.keys++),this.emit("set",e,i),!0}mset(e){var i,s,n,r,h,a,u,l,c;if(o(this,t),this.options.maxKeys>-1&&this.stats.keys+e.length>=this.options.maxKeys)throw this._error("ECACHEFULL");for(s=0,a=e.length;s=0?this.data[e]=this._wrap(this.data[e].v,i,!1):this.del(e),!0)}getTtl(e){var i;if(o(this,t),e){if(null!=(i=this._isInvalidKey(e)))throw i;return null!=this.data[e]&&this._check(e,this.data[e])?this.data[e].t:void 0}}keys(){return o(this,t),Object.keys(this.data)}has(e){return o(this,t),null!=this.data[e]&&this._check(e,this.data[e])}getStats(){return o(this,t),this.stats}flushAll(e=!0){o(this,t),this.data={},this.stats={hits:0,misses:0,keys:0,ksize:0,vsize:0},this._killCheckPeriod(),this._checkData(e),this.emit("flush")}flushStats(){o(this,t),this.stats={hits:0,misses:0,keys:0,ksize:0,vsize:0},this.emit("flush_stats")}close(){o(this,t),this._killCheckPeriod()}_checkData(e=!0){var i,s,n;for(i in o(this,t),s=this.data)n=s[i],this._check(i,n);e&&this.options.checkperiod>0&&(this.checkTimeout=setTimeout(this._checkData,1e3*this.options.checkperiod,e),null!=this.checkTimeout&&null!=this.checkTimeout.unref&&this.checkTimeout.unref())}_killCheckPeriod(){if(null!=this.checkTimeout)return clearTimeout(this.checkTimeout)}_check(e,i){var s;return o(this,t),s=!0,0!==i.t&&i.th.call(this.validKeyTypes,i))return this._error("EKEYTYPE",{type:typeof e})}_wrap(e,i,s=!0){var r;return o(this,t),this.options.useClones||(s=!1),r=Date.now(),{t:0===i?0:i?r+1e3*i:0===this.options.stdTTL?this.options.stdTTL:r+1e3*this.options.stdTTL,v:s?n(e):e}}_unwrap(t,e=!0){return(this.options.useClones||(e=!1),null!=t.v)?e?n(t.v):t.v:null}_getKeyLength(t){return t.toString().length}_getValLength(e){if(o(this,t),"string"==typeof e)return e.length;if(this.options.forceString)return JSON.stringify(e).length;if(Array.isArray(e))return this.options.arrayValueSize*e.length;if("number"==typeof e)return 8;if("function"==typeof(null!=e?e.then:void 0))return this.options.promiseValueSize;if(null!=s?s.isBuffer(e):void 0)return e.length;if(null!=e&&"object"==typeof e)return this.options.objectValueSize*Object.keys(e).length;else if("boolean"==typeof e)return 8;else return 0}_error(e,i={}){var s;return o(this,t),(s=Error()).name=e,s.errorcode=e,s.message=null!=this.ERRORS[e]?this.ERRORS[e](i):"-",s.data=i,s}_initErrors(){var e,i,s;for(i in o(this,t),this.ERRORS={},s=this._ERRORS)e=s[i],this.ERRORS[i]=this.createErrorMessage(e)}createErrorMessage(t){return function(e){return t.replace("__key",e.type)}}}return t.prototype._ERRORS={ENOTFOUND:"Key `__key` not found",ECACHEFULL:"Cache max keys amount exceeded",EKEYTYPE:"The key argument has to be of type `string` or `number`. Found: `__key`",EKEYSTYPE:"The keys argument has to be an array.",ETTLTYPE:"The ttl argument has to be a number."},t}).call(this)}).call(this)}}]); //# sourceMappingURL=9263-8007f65857f54dfa.js.map