(()=>{vart={223:t=>{conste=typeofperformance==="object"&&performance&&typeofperformance.now==="function"?performance:Date;consti=typeofAbortController==="function";consts=i?AbortController:classAbortController{constructor(){this.signal=newr}abort(t=newError("This operation was aborted")){this.signal.reason=this.signal.reason||t;this.signal.aborted=true;this.signal.dispatchEvent({type:"abort",target:this.signal})}};constn=typeofAbortSignal==="function";consth=typeofs.AbortSignal==="function";constr=n?AbortSignal:h?s.AbortController:classAbortSignal{constructor(){this.reason=undefined;this.aborted=false;this._listeners=[]}dispatchEvent(t){if(t.type==="abort"){this.aborted=true;this.onabort(t);this._listeners.forEach((e=>e(t)),this)}}onabort(){}addEventListener(t,e){if(t==="abort"){this._listeners.push(e)}}removeEventListener(t,e){if(t==="abort"){this._listeners=this._listeners.filter((t=>t!==e))}}};consto=newSet;constdeprecatedOption=(t,e)=>{consti=`LRU_CACHE_OPTION_${t}`;if(shouldWarn(i)){warn(i,`${t} option`,`options.${e}`,LRUCache)}};constdeprecatedMethod=(t,e)=>{consti=`LRU_CACHE_METHOD_${t}`;if(shouldWarn(i)){const{prototype:s}=LRUCache;const{get:n}=Object.getOwnPropertyDescriptor(s,t);warn(i,`${t} method`,`cache.${e}()`,n)}};constdeprecatedProperty=(t,e)=>{consti=`LRU_CACHE_PROPERTY_${t}`;if(shouldWarn(i)){const{prototype:s}=LRUCache;const{get:n}=Object.getOwnPropertyDescriptor(s,t);warn(i,`${t} property`,`cache.${e}`,n)}};constemitWarning=(...t)=>{typeofprocess==="object"&&process&&typeofprocess.emitWarning==="function"?process.emitWarning(...t):console.error(...t)};constshouldWarn=t=>!o.has(t);constwarn=(t,e,i,s)=>{o.add(t);constn=`The ${e} is deprecated. Please use ${i} instead.`;emitWarning(n,"DeprecationWarning",t,s)};constisPosInt=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t);constgetUintArray=t=>!isPosInt(t)?null:t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?ZeroArray:null;classZeroArrayextendsArray{constructor(t){super(t);this.fill(0)}}classStack{constructor(t){if(t===0){return[]}conste=getUintArray(t);this.heap=newe(t);this.length=0}push(t){this.heap[this.length++]=t}pop(){returnthis.heap[--this.length]}}classLRUCache{constructor(t={}){const{max:e=0,ttl:i,ttlResolution:s=1,ttlAutopurge:n,updateAgeOnGet:h,updateAgeOnHas:r,allowStale:a,dispose:l,disposeAfter:c,noDisposeOnSet:f,noUpdateTTL:u,maxSize:d=0,maxEntrySize:p=0,sizeCalculation:g,fetchMethod:S,fetchContext:y,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:_,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:z,ignoreFetchAbort:L}=t;const{length:v,maxAge:x,stale:b}=tinstanceofLRUCache?{}:t;if(e!==0&&!isPosInt(e)){thrownewTypeError("max option must be a nonnegative integer")}constA=e?getUintArray(e):Array;if(!A){thrownewError("invalid max value: "+e)}this.max=e;this.maxSize=d;this.maxEntrySize=p||this.maxSize;this.sizeCalculation=g||v;if(this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize){thrownewTypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize")}if(typeofthis.sizeCalculation!=="function"){thrownewTypeError("sizeCalculation set to non-function")}}this.fetchMethod=S||null;if(this.fetchMethod&&typeofthis.fetchMethod!=="function"){thrownewTypeError("fetchMethod must be a function if specified")}this.fetchContext=y;if(!this.fetchMethod&&y!==undefined){thrownewTypeError("cannot set fetchContext without fetchMethod")}this.keyMap=newMap;this.keyList=newArray(e).fill(null);this.valList=newArray(e).fill(null);this.next=newA(e);this.prev=newA(e);this.head=0;this.tail=0;this.free=newStack(e);this.initialFill=1;this.size=0;if(typeofl==="function"){this.dispose=l}if(typeofc==="function"){this.disposeAfter=c;this.disposed=[]}else{this.disposeAfter=null;this.disposed=null}this.noDisposeOnSet=!!f;this.noUpdateTTL=!!u;this.noDeleteOnFetchRejection=!!w;this.allowStaleOnFetchRejection=!!m;this.allowStaleOnFetchAbort=!!z;this.ignoreFetchAbort=!!L;if(this.maxEntrySize!==0){if(this.maxSize!==0){if(!isPosInt(this.maxSize)){thrownewTypeError("maxSize must be a positive integer if specified")}}if(!isPosInt(this.maxEntrySize)){thrownewTypeError("maxEntrySize must be a positive integer if specified")}this.initializeSizeTracking()}this.allowStale=!!a||!!b;this.noDeleteOnStaleGet=!!_;this.updateAgeOnGet=!!h;this.updateAgeOnHas=!!r;this.ttlResolution=isPosInt(s)||s===0?s:1;this.ttlAutopurge=!!n;this.ttl=i||x||0;if(this.ttl){if(!isPosInt(this.ttl)){thrownewTypeError("ttl must be a positive integer if specified")}this.initializeTTLTracking()}if(this.max===0&&this.ttl===0&&this.maxSize===0){thrownewTypeError("At least one of max, maxSize, or ttl is required")}if(!this.ttlAutopurge&&!this.max&&!this.maxSize){constt="LRU_CACHE_UNBOUNDED";if(shouldWarn(t)){o.add(t);conste="TTL caching without ttlAutopurge, max, or maxSize can "+"result in unbounded memory consumption.";emitWarning(e,"UnboundedCacheWarning",t,LRUCache)}}if(b){deprecatedOption("stale","allowStale")}if(x){deprecatedOption("maxAge","ttl")}if(v){deprecatedOption("length","sizeCalculation")}}getRemainingTTL(t){returnthis.has(t,{updateAgeOnHas:false})?Infinity:0}initializeTTLTracking(){this.ttls=newZeroArray(this.max);this.starts=newZeroArray(this.max);this.setItemTTL=(t,i,s=e.now())=>{this.starts[t]=i!==0?s:0;this.ttls[t]=i;if(i!==0&&this.ttlAutopurge){conste=setTimeout((()=>{if(this.isStale(t)){this.delete(this.keyList[t])}}),i+1);if(e.unref){e.unref()}}};this.updateItemAge=t=>{this.starts[t]=this.ttls[t]!==0?e.now():0};this.statusTTL=(e,i)=>{if(e){e.ttl=this.ttls[i];e.start=this.starts[i];e.now=t||getNow();e.remainingTTL=e.now+e.ttl-e.start}};lett=0;constgetNow=()=>{consti=e.now();if(this.ttlResolution>0){t=i;conste=setTimeout((()=>t=0),this.ttlResolution);if(e.unref){e.unref()}}returni};this.getRemainingTTL=e=>{consti=this.keyMap.get(e);if(i===undefined){return0}returnthis.ttls[i]===0||this.starts[i]===0?Infinity:this.starts[i]+this.ttls[i]-(t||getNow())};this.isStale=e=>this.ttls[e]!==0&&this.starts[e]!==0&&(t||getNow())-this.starts[e]>this.ttls[e]}updateItemAge(t){}statusTTL(t,e){}setItemTTL(t,e,i){}isStale(t){returnfalse}initializeSizeTracking(){this.calculatedSize=0;this.sizes=newZeroArray(this.max);this.removeItemSize=t=>{this.calculatedSize-=this.sizes[t];this.sizes[t]=0};this.requireSize=(t,e,i,s)=>{if(this.isBackgroundFetch(e)){return0}if(!isPosInt(i)){if(s){if(typeofs!=="function"){thrownewTypeError("sizeCalculation must be a function")}i=s(e,t);if(!isPosInt(i)){thrownewTypeError("sizeCalculation return invalid (expect positive integer)")}}else{thrownewTypeError("invalid size value (must be positive integer). "+"When maxSize or maxEntrySize is used, sizeCalculation or size "+"must be set.")}}returni};this.addItemSize=(t,e,i)=>{this.sizes[t]=e;if(this.maxSize){conste=this.maxSize-this.sizes[t];while(this.calculatedSize>e){this.evict(true)}}this.calculatedSize+=this.sizes[t];if(i){i.entrySize=e;i.totalCalculatedSize=this.calculatedSize}}}removeItemSize(t){}addItemSize(t,e){}requireSize(t,e,i,s){if(i||s){thrownewTypeError("cannot set size without setting maxSize or maxEntrySize on cache")}}*indexes({allowStale:t=this.allowStale}={}){if(this.size){for(lete=this.tail;true;){if(!this.isValidIndex(e)){break}if(t||!this.isStale(e)){yielde}if(e===this.head){break}else{e=this.prev[e]}}}}*rindexes({allowStale:t=this.allowStale}={}){if(this.size){for(lete=this.head;true;){if(!this.isValidIndex(e)){break}if(t||!this.isStale(e)){yielde}if(e===this.tail){break}else{e=this.next[e]}}}}isValidIndex(t){returnt!==undefined&&this.keyMap.get(this.keyList[t])===t}*entries(){for(consttofthis.indexes()){if(this.valList[t]!==undefined&&this.keyList[t]!==undefined&&!this.isBackgroundFetch(this.valList[t])){yield[this.keyList[t],this.valList[t]]}}}*rentries(){for(consttofthis.rindexes()){if(this.valList[t]!==undefined&&this.keyList[t]!==undefined&&!this.isBackgroundFetch(this.valList[t])){yield[this.keyList[t],this.valList[t]]}}}*keys(){for(consttofthis.indexes()){if(this.keyList[t]!==undefined&&!this.isBackgroundFetch(this.valList[t])){yieldthis.keyList[t]}}}*rkeys(){for(consttofthis.rindexes()){if(this.keyList[t]!==undefined&&!this.isBackgroundFetch(this.valList[t])){yieldthis.keyList[t]}}}*values(){for(consttofthis.indexes()){if(this.valList[t]!==undefined&&!this.isBackgroundFetch(this.valList[t])){yieldthis.valList[t]}}}*rvalues(){for(consttofthis.rindexes()){if(this.valList[t]!==undefined&&!this.isBackgroundFetch(this.valList[t])){yieldthis.valList[t]}}}[Symbol.iterator](){returnthis.entries()}find(t,e){for(constiofthis.indexes()){consts=this.valList[i];constn=this.isBackgroundFetch(s)?s.__staleWhileFetching:s;if(n===undefined)continue;if(t(n,this.keyList[i],this)){returnthis.get(this.keyList[i],e)}}}forEach(t,e=this){for(constiofthis.indexes()){consts=this.valList[i];constn=this.isBackgroundFetch(s)?s.__staleWhileFetching:s;if(n===undefined)continue;t.call(e,n,this.keyList[i],this)}}rforEach(t,e=this){for(constiofthis.rindexes()){consts=this.valList[i];constn=this.isBackgroundFetch(s)?s.__staleWhileFetching:s;if(n===undefined)continue;t.call(e,n,this.keyList[i],this)}}getprune(){deprecatedMethod("prune","purgeStale");returnthis.purgeStale}purgeStale(){lett=false;for(consteofthis.rindexes({allowStale:true})){if(this.isStale(e)){this.delete(this.keyList[e]);t=true}}returnt}dump(){constt=[];for(constiofthis.indexes({allowStale:true})){consts=this.keyList[i];constn=this.valList[i];consth=this.isBackgroundFetch(n)?n.__staleWhileFetching:n;if(h===undefined)continue;constr={value:h};if(this.ttls){r.ttl=this.ttls[i];constt=e.now()-this.starts[i];r.start=Math.floor(Date.now()-t)}if(this.sizes){r.size=this.sizes[i]}t.unshift([s,r])}returnt}load(t){this.clear();for(const[i,s]oft){if(s.start){constt=Date.now()-s.start;s.start=e.now()-t}this.set(i,s.value,s)}}dispose(t,e,i){}set(t,e,{ttl:i=this.ttl,start:s,noDisposeOnSet:n=this.noDisposeOnSet,size:h=0,sizeCalculation:r=this.sizeCalculation,noUpdateTTL:o=this.noUpdateTTL,status:a}={}){h=this.requireSize(t,e,h,r);if(this.maxEntrySize&&h>this.maxEntrySize){if(a){a.set="miss";a.maxEntrySizeExceeded=true}this.delete(t);returnthis}letl=this.size===0?undefined:this.keyMap.get(t);if(l===undefined){l=this.newIndex();this.keyList[l]=t;this.valList[l]=e;this.keyMap.set(t,l);this.next[this.tail]=l;this.prev[l]=this.tail;this.tail=l;this.size++;this.addItemSize(l,h,a);if(a){a.set="add"}o=false}else{this.moveToTail(l);consti=this.valList[l];if(e!==i){if(this.isBackgroundFetch(i)){i.__abortController.abort(newError("replaced"))}else{if(!n){this.dispose(i,t,"set");if(this.disposeAfter){this.disposed.push([i,t,"set"])}}}this.removeItemSize(l);this.valList[l]=e;this.addItemSize(l,h,a);if(a){a.set="replace";constt=i&&this.isBackgroundFetch(i)?i.__staleWhileFetching:i;if(t!==undefined)a.oldValue=t}}elseif(a){a.set="update"}}if(i!==0&&this.ttl===0&&!this.ttls){this.initializeTTLTracking()}if(!o){this.setItemTTL(l,i,s)}this.statusTTL(a,l);if(this.disposeAfter){while(this.disposed.length){this.disposeAfter(...this.disposed.shift())}}returnthis}newIndex(){if(this.size===0){returnthis.tail}if(this.size===this.max&&this.max!==0){returnthis.evict(false)}if(this.free.length!==0){returnthis.free.pop()}returnthis.initialFill++}pop(){if(this.size){constt=this.valList[this.head];this.evict(true);returnt}}evict(t){conste=this.head;consti=this.keyList[e];consts=this.valList[e];if(this.isBackgroundFetch(s)){s.__abortController.abort(newError("evicted"))}else{this.dispose(s,i,"evict");if(this.disposeAfter){this.disposed.push([s,i,"evict"])}}this.removeItemSize(e);if(t){this.keyList[e]=null;this.valList[e]=null;this.free.push(e)}this.head=this.next[e];this.keyMap.delete(i);this.size--;returne}has(t,{updateAgeOnHas:e=this.updateAgeOnHas,status:i}={}){consts=this.keyMap.get(t);if(s!==undefined){if(!this.isStale(s)){if(e){this.updateItemAge(s)}if(i)i.has="hit";this.statusTTL(i,s);returntrue}elseif(i){i.has="stale";this.statusTTL(i,s)}}elseif(i){i.has="miss"}returnfalse}peek(t,{allowStale:e=this.allowStale}={}){consti=this.keyMap.get(t);if(i!==undefined&&(e||!this.isStale(i))){constt=this.valList[i];returnthis.isBackgroundFetch(t)?t.__staleWhileFetching:t}}backgroundFetch(t,e,i,n){consth=e===undefined?undefined:this.valList[e];if(this.isBackgroundFetch(h)){returnh}constr=news;if(i.signal){i.signal.addEventListener("abort",(()=>r.abort(i.signal.reason)))}consto={signal:r.signal,options:i,context:n};constcb=(s,n=false)=>{const{aborted:h}=r.signal;constl=i.ignoreFetchAbort&&s!==undefined;if(i.status){if(h&&!n){i.status.fetchAborted=true;i.status.fetchError=r.signal.reason;if(l)i.status.fetchAbortIgnored=true}else{i.status.fetchResolved=true}}if(h&&!l&&!n){returnfetchFail(r.signal.reason)}if(this.valList[e]===a){if(s===undefined){if(a.__staleWhileFetching){this.valList[e]=a.__staleWhileFetching}else{this.delete(t)}}else{if(i.status)i.status.fetchUpdated=true;this.set(t,s,o.options)}}returns};consteb=t=>{if(i.status){i.status.fetchRejected=true;i.status.fetchError=t}returnfetchFail(t)};constfetchFail=s=>{const{aborted:n}=r.signal;consth=n&&i.allowStaleOnFetchAbort;consto=h||i.allowStaleOnFetchRejection;constl=o||i.noDeleteOnFetchRejection;if(this.valList[e]===a){consti=!l||a.__staleWhileFetching===undefined;if(i){this.delete(t)}elseif(!h){this.valList[e]=a.__staleWhileFetching}}if(o){if(i.status&&a.__staleWhileFetching!==undefined){i.status.returnedStale=true}returna.__staleWhileFetching}elseif(a.__returned===a){throws}};constpcall=(e,s)=>{this.fetchMethod(t,h,o).then((t=>e(t)),s);r.signal.addEventListener("abort",(()=>{if(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort){e();if(i.allowStaleOnFetchAbort){e=t=>cb(t,true)}}}))};if(i.status)i.status.fetchDispatched=true;consta=newPromise(pcall).then(cb,eb);a.__abortController=r;a.__staleWhileFetching=h;a.__returned=null;if(e===undefined){this.set(t,a,{...o.options,status:undefined});e=this.keyMap.get(t)}else{this.valList[e]=a}returna}isBackgroundFetch(t){returnt&&typeoft==="object"&&typeoft.then==="function"&&Object.prototype.hasOwnProperty.call(t,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(t,"__returned")&&(t.__returned===t||t.__returned===null)}asyncfetch(t,{allowStale:e=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:n=this.ttl,noDisposeOnSet:h=this.noDisposeOnSet,size:r=0,sizeCalculation:o=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL,noDeleteOnFetchRejection:l=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:c=this.allowStaleOnFetchRejection,ignoreFetchAbort:f=this.ignoreFetchAbort,allowStaleOnFetchAbort:u=this.allowStaleOnFetchAbort,fetchContext:d=this.fetchContext,forceRefresh:p=false,status:g,signal:S}={}){if(!this.fetchMethod){if(g)g.fetch="get";returnthis.get(t,{allowStale:e,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:g})}consty={allowStale:e,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:n,noDisposeOnSet:h,size:r,sizeCalculation:o,noUpdateTTL:a,noDeleteOnFetchRejection:l,allowStaleOnFetchRejection:c,allowStaleOnFetchAbort:u,ignoreFetchAbort:f,status:g,signal:S};letw=this.keyMap.get(t);if(w===undefined){if(g)g.fetch="miss";conste=this.backgroundFetch(t,w,y,d);returne.__returned=e}else{consts=this.valList[w];if(this.isBackgroundFetch(s)){constt=e&&s.__staleWhileFetching!==undefined;if(g){g.fetch="inflight";if(t)g.returnedStale=true}returnt?s.__staleWhileFetching:s.__returned=s}constn=this.isStale(w);if(!p&&!n){if(g)g.fetch="hit";this.moveToTail(w);if(i){this.updateItemAge(w)}this.statusTTL(g,w);returns}consth=this.backgroundFetch(t,w,y,d);constr=h.__staleWhileFetching!==undefined;consto=r&&e;if(g){g.fetch=r&&n?"stale":"refresh";if(o&&n)g.returnedStale=true}returno?h.__staleWhileFetching:h.__returned=h}}get(t,{allowStale:e=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:n}={}){consth=this.keyMap.get(t);if(h!==undefined){constr=this.valList[h];consto=this.isBackgroundFetch(r);this.statusTTL(n,h);if(this.isStale(h)){if(n)n.get="stale";if(!o){if(!s){this.delete(t)}if(n)n.returnedStale=e;returne?r:undefined}else{if(n){n.returnedStale=e&&r.__staleWhileFetching!==undefined}returne?r.__staleWhileFetching:undefined}}else{if(n)n.get="hit";if(o){returnr.__staleWhileFetching}this.moveToTail(h);if(i){this.updateItemAge(h)}returnr}}elseif(n){n.get="miss"}}connect(t,e){this.prev[e]=t;this.next[t]=e}moveToTail(t){if(t!==this.tail){if(t===this.head){this.head=this.next[t]}else{this.connect(this.prev[t],this.next[t])}this.connect(this.tail,t);this.tail=t}}getdel(){deprecatedMethod("del","delete");returnthis.delete}delete(t){lete=false;if(this.size!==0){consti=this.keyMap.get(t);if(i!==undefined){e=true;if(this.size===1){this.clear()}else{this.removeItemSize(i);conste=this.valList[i];if(this.isBackgroundFetch(e)){e.__abortController.abort(newError("deleted"))}else{this.dispose(e,t,"delete");if(this.disposeAfter){this.disposed.push([e,t,"delete"])}}this.keyMap.delete(t);this.keyList[i]=null;this.valList[i]=null;if(i===this.tail){this.tail=this.prev[i]}elseif(i===this.head){this.head=this.next[i]}else{this.next[this.prev[i]]=this.next[i];this.prev[this.next[i]]=this.prev[i]}this.size--;this.free.push(i)}}}if(this.disposed){while(this.disposed.length){this.disposeAfter(...this.disposed.shift())}}returne}clear(){for(consttofthis.rindexes({allowStale:true})){conste=this.valList[t];if(this.isBackgroundFetch(e)){e.__abortController.abort(newError("deleted"))}else{consti=this.keyList[t];this.dispose(e,i,"delete");if(this.disposeAfter){this.disposed.push([e,i,"delete"])}}}this.keyMap.clear();this.valList.fill(null);this.keyList.fill(null);if(this.ttls){this.ttls.fill(0);this.starts.fill(0)}if(this.sizes){this.sizes.fill(0)}this.head=0;this.tail=0;this.initialFill=1;this.free.length=0;this.calculatedSize=0;this.size=0;if(this.disposed){while(this.disposed.length){this.disposeAfter(...this.disposed.shift())}}}getreset(){deprecatedMethod("reset","clear");returnthis.clear}getlength(){deprecatedProperty("length","size");returnthis.size}staticgetAbortController(){returns}staticgetAbortSignal(){returnr}}t.exports=LRUCache}};vare={};function__nccwpck_require__(i){vars=e[i];if(s!==undefined){returns.exports}varn=e[i]={exports:{}};varh=true;try{t[i](n,n.exports,__nccwpck_require__);h=false}finally{if(h)deletee[i]}returnn.exports}if(typeof__nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";vari=__nccwpck_require__(223);module.exports=i})();
(()=>{vart={939:(t,e,i)=>{"use strict";t.exports=LRUCache;varr=i(570);varn=i(23);vara=i(80);vars=typeofSymbol==="function"&&process.env._nodeLRUCacheForceNoSymbol!=="1";varl;if(s){l=function(t){returnSymbol(t)}}else{l=function(t){return"_"+t}}varh=l("max");varo=l("length");varu=l("lengthCalculator");varf=l("allowStale");varp=l("maxAge");varc=l("dispose");varv=l("noDisposeOnSet");vard=l("lruList");vary=l("cache");functionnaiveLength(){return1}functionLRUCache(t){if(!(thisinstanceofLRUCache)){returnnewLRUCache(t)}if(typeoft==="number"){t={max:t}}if(!t){t={}}vare=this[h]=t.max;if(!e||!(typeofe==="number")||e<=0){this[h]=Infinity}vari=t.length||naiveLength;if(typeofi!=="function"){i=naiveLength}this[u]=i;this[f]=t.stale||false;this[p]=t.maxAge||0;this[c]=t.dispose;this[v]=t.noDisposeOnSet||false;this.reset()}Object.defineProperty(LRUCache.prototype,"max",{set:function(t){if(!t||!(typeoft==="number")||t<=0){t=Infinity}this[h]=t;trim(this)},get:function(){returnthis[h]},enumerable:true});Object.defineProperty(LRUCache.prototype,"allowStale",{set:function(t){this[f]=!!t},get:function(){returnthis[f]},enumerable:true});Object.defineProperty(LRUCache.prototype,"maxAge",{set:function(t){if(!t||!(typeoft==="number")||t<0){t=0}this[p]=t;trim(this)},get:function(){returnthis[p]},enumerable:true});Object.defineProperty(LRUCache.prototype,"lengthCalculator",{set:function(t){if(typeoft!=="function"){t=naiveLength}if(t!==this[u]){this[u]=t;this[o]=0;this[d].forEach((function(t){t.length=this[u](t.value,t.key);this[o]+=t.length}),this)}trim(this)},get:function(){returnthis[u]},enumerable:true});Object.defineProperty(LRUCache.prototype,"length",{get:function(){returnthis[o]},enumerable:true});Object.defineProperty(LRUCache.prototype,"itemCount",{get:function(){returnthis[d].length},enumerable:true});LRUCache.prototype.rforEach=function(t,e){e=e||this;for(vari=this[d].tail;i!==null;){varr=i.prev;forEachStep(this,t,i,e);i=r}};functionforEachStep(t,e,i,r){varn=i.value;if(isStale(t,n)){del(t,i);if(!t[f]){n=undefined}}if(n){e.call(r,n.value,n.key,t)}}LRUCache.prototype.forEach=function(t,e){e=e||this;for(vari=this[d].head;i!==null;){varr=i.next;forEachStep(this,t,i,e);i=r}};LRUCache.prototype.keys=function(){returnthis[d].toArray().map((function(t){returnt.key}),this)};LRUCache.prototype.values=function(){returnthis[d].toArray().map((function(t){returnt.value}),this)};LRUCache.prototype.reset=function(){if(this[c]&&this[d]&&this[d].length){this[d].forEach((function(t){this[c](t.key,t.value)}),this)}this[y]=newr;this[d]=newa;this[o]=0};LRUCache.prototype.dump=function(){returnthis[d].map((function(t){if(!isStale(this,t)){return{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}}}),this).toArray().filter((function(t){returnt}))};LRUCache.prototype.dumpLru=function(){returnthis[d]};LRUCache.prototype.inspect=function(t,e){vari="LRUCache {";varr=false;vara=this[f];if(a){i+="\n allowStale: true";r=true}vars=this[h];if(s&&s!==Infinity){if(r){i+=","}i+="\n max: "+n.inspect(s,e);r=true}varl=this[p];if(l){if(r){i+=","}i+="\n maxAge: "+n.inspect(l,e);r=true}varc=this[u];if(c&&c!==naiveLength){if(r){i+=","}i+="\n length: "+n.inspect(this[o],e);r=true}varv=false;this[d].forEach((function(t){if(v){i+=",\n "}else{if(r){i+=",\n"}v=true;i+="\n "}vara=n.inspect(t.key).split("\n").join("\n ");vars={value:t.value};if(t.maxAge!==l){s.maxAge=t.maxAge}if(c!==naiveLength){s.length=t.length}if(isStale(this,t)){s.stale=true}s=n.inspect(s,e).split("\n").join("\n ");i+=a+" => "+s}));if(v||r){i+="\n"}i+="}";returni};LRUCache.prototype.set=function(t,e,i){i=i||this[p];varr=i?Date.now():0;varn=this[u](e,t);if(this[y].has(t)){if(n>this[h]){del(this,this[y].get(t));returnfalse}vara=this[y].get(t);vars=a.value;if(this[c]){if(!this[v]){this[c](t,s.value)}}s.now=r;s.maxAge=i;s.value=e;this[o]+=n-s.length;s.length=n;this.get(t);trim(this);returntrue}varl=newEntry(t,e,n,r,i);if(l.length>this[h]){if(this[c]){this[c](t,e)}returnfalse}this[o]+=l.length;this[d].unshift(l);this[y].set(t,this[d].head);trim(this);returntrue};LRUCache.prototype.has=function(t){if(!this[y].has(t))returnfalse;vare=this[y].get(t).value;if(isStale(this,e)){returnfalse}returntrue};LRUCache.prototype.get=function(t){returnget(this,t,true)};LRUCache.prototype.peek=function(t){returnget(this,t,false)};LRUCache.prototype.pop=function(){vart=this[d].tail;if(!t)returnnull;del(this,t);returnt.value};LRUCache.prototype.del=function(t){del(this,this[y].get(t))};LRUCache.prototype.load=function(t){this.reset();vare=Date.now();for(vari=t.length-1;i>=0;i--){varr=t[i];varn=r.e||0;if(n===0){this.set(r.k,r.v)}else{vara=n-e;if(a>0){this.set(r.k,r.v,a)}}}};LRUCache.prototype.prune=function(){vart=this;this[y].forEach((function(e,i){get(t,i,false)}))};functionget(t,e,i){varr=t[y].get(e);if(r){varn=r.value;if(isStale(t,n)){del(t,r);if(!t[f])n=undefined}else{if(i){t[d].unshiftNode(r)}}if(n)n=n.value}returnn}functionisStale(t,e){if(!e||!e.maxAge&&!t[p]){returnfalse}vari=false;varr=Date.now()-e.now;if(e.maxAge){i=r>e.maxAge}else{i=t[p]&&r>t[p]}returni}functiontrim(t){if(t[o]>t[h]){for(vare=t[d].tail;t[o]>t[h]&&e!==null;){vari=e.prev;del(t,e);e=i}}}functiondel(t,e){if(e){vari=e.value;if(t[c]){t[c](i.key,i.value)}t[o]-=i.length;t[y].delete(i.key);t[d].removeNode(e)}}functionEntry(t,e,i,r,n){this.key=t;this.value=e;this.length=i;this.now=r;this.maxAge=n||0}},570:(t,e,i)=>{if(process.env.npm_package_name==="pseudomap"&&process.env.npm_lifecycle_script==="test")process.env.TEST_PSEUDOMAP="true";if(typeofMap==="function"&&!process.env.TEST_PSEUDOMAP){t.exports=Map}else{t.exports=i(196)}},196:t=>{vare=Object.prototype.hasOwnProperty;t.exports=PseudoMap;functionPseudoMap(t){if(!(thisinstanceofPseudoMap))thrownewTypeError("Constructor PseudoMap requires 'new'");this.clear();if(t){if(tinstanceofPseudoMap||typeofMap==="function"&&tinstanceofMap)t.forEach((function(t,e){this.set(e,t)}),this);elseif(Array.isArray(t))t.forEach((function(t){this.set(t[0],t[1])}),this);elsethrownewTypeError("invalid argument")}}PseudoMap.prototype.forEach=function(t,e){e=e||this;Object.keys(this._data).forEach((function(i){if(i!=="size")t.call(e,this._data[i].value,this._data[i].key)}),this)};PseudoMap.prototype.has=function(t){return!!find(this._data,t)};PseudoMap.prototype.get=function(t){vare=find(this._data,t);returne&&e.value};PseudoMap.prototype.set=function(t,e){set(this._data,t,e)};PseudoMap.prototype.delete=function(t){vare=find(this._data,t);if(e){deletethis._data[e._index];this._data.size--}};PseudoMap.prototype.clear=function(){vart=Object.create(null);t.size=0;Object.defineProperty(this,"_data",{value:t,enumerable:false,configurable:true,writable:false})};Object.defineProperty(PseudoMap.prototype,"size",{get:function(){returnthis._data.size},set:function(t){},enumerable:true,configurable:true});PseudoMap.prototype.values=PseudoMap.prototype.keys=PseudoMap.prototype.entries=function(){thrownewError("iterators are not implemented in this version")};functionsame(t,e){returnt===e||t!==t&&e!==e}functionEntry(t,e,i){this.key=t;this.value=e;this._index=i}functionfind(t,i){for(varr=0,n="_"+i,a=n;e.call(t,a);a=n+r++){if(same(t[a].key,i))returnt[a]}}functionset(t,i,r){for(varn=0,a="_"+i,s=a;e.call(t,s);s=a+n++){if(same(t[s].key,i)){t[s].value=r;return}}t.size++;t[s]=newEntry(i,r,s)}},80:t=>{t.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;functionYallist(t){vare=this;if(!(einstanceofYallist)){e=newYallist}e.tail=null;e.head=null;e.length=0;if(t&&typeoft.forEach==="function"){t.forEach((function(t){e.push(t)}))}elseif(arguments.length>0){for(vari=0,r=arguments.length;i<r;i++){e.push(arguments[i])}}returne}Yallist.prototype.removeNode=function(t){if(t.list!==this){thrownewError("removing node which does not belong to this list")}vare=t.next;vari=t.prev;if(e){e.prev=i}if(i){i.next=e}if(t===this.head){this.head=e}if(t===this.tail){this.tail=i}t.list.length--;t.next=null;t.prev=null;t.list=null};Yallist.prototype.unshiftNode=function(t){if(t===this.head){return}if(t.list){t.list.removeNode(t)}vare=this.head;t.list=this;t.next=e;if(e){e.prev=t}this.head=t;if(!this.tail){this.tail=t}this.length++};Yallist.prototype.pushNode=function(t){if(t===this.tail){return}if(t.list){t.list.removeNode(t)}vare=this.tail;t.list=this;t.prev=e;if(e){e.next=t}this.tail=t;if(!this.head){this.head=t}this.length++};Yallist.prototype.push=function(){for(vart=0,e=arguments.length;t<e;t++){push(this,arguments[t])}returnthis.length};Yallist.prototype.unshift=function(){for(vart=0,e=arguments.length;t<e;t++){unshift(this,arguments[t])}returnthis.length};Yallist.prototype.pop=function(){if(!this.tail){returnundefined}vart=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;returnt};Yallist.prototype.shift=function(){if(!this.head){returnundefined}vart=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;returnt};Yallist.prototype.forEach=function(t,e){e=e||this;for(vari=this.head,r=0;i!==null;r++){t.call(e,i.value,r,this);i=i.next}};Yallist.prototype.forEachReverse=function(t,e){e=e||this;for(vari=this.tail,r=this.length-1;i!==null;r--){t.call(e,i.value,r,this);i=i.prev}};Yallist.prototype.get=function(t){for(vare=0,i=this.head;i!==null&&e<t;e++){i=i.next}if(e===t&&i!==null){returni.value}};Yallist.prototype.getReverse=function(t){for(vare=0,i=this.tail;i!==null&&e<t;e++){i=i.prev}if(e===t&&i!==null){returni.value}};Yallist.prototype.map=function(t,e){e=e||this;vari=newYallist;for(varr=this.head;r!==null;){i.push(t.call(e,r.value,this));r=r.next}returni};Yallist.prototype.mapReverse=function(t,e){e=e||this;vari=newYallist;for(varr=this.tail;r!==null;){i.push(t.call(e,r.value,this));r=r.prev}returni};Yallist.prototype.reduce=function(t,e){vari;varr=this.head;if(arguments.length>1){i=e}elseif(this.head){r=this.head.next;i=this.head.value}else{thrownewTypeError("Reduce of empty list with no initial value")}for(varn=0;r!==null;n++){i=t(i,r.value,n);r=r.next}returni};Yallist.prototype.reduceReverse=function(t,e){vari;varr=this.tail;if(arguments.length>1){i=e}elseif(this.tail){r=this.tail.prev;i=this.tail.value}else{thrownewTypeError("Reduce of empty list with no initial value")}for(varn=this.length-1;r!==null;n--){i=t(i,r.value,n);r=r.prev}returni};Yallist.prototype.toArray=function(){vart=newArray(this.length);for(vare=0,i=this.head;i!==null;e++){t[e]=i.value;i=i.next}returnt};Yallist.prototype.toArrayReverse=function(){vart=newArray(this.length);for(vare=0,i=this.tail;i!==null;e++){t[e]=i.value;i=i.prev}returnt};Yallist.prototype.slice=function(t,e){e=e||this.length;if(e<0){e+=this.length}t=t||0;if(t<0){t+=this.length}vari=newYallist;if(e<t||e<0){returni}if(t<0){t=0}if(e>this.length){e=this.length}for(varr=0,n=this.head;n!==null&&r<t;r++){n=n.next}for(;n!==null&&r<e;r++,n=n.next){i.push(n.value)}returni};Yallist.prototype.sliceReverse=function(t,e){e=e||this.length;if(e<0){e+=this.length}t=t||0;if(t<0){t+=this.length}vari=newYallist;if(e<t||e<0){returni}if(t<0){t=0}if(e>this.length){e=this.length}for(varr=this.length,n=this.tail;n!==null&&r>e;r--){n=n.prev}for(;n!==null&&r>t;r--,n=n.prev){i.push(n.value)}returni};Yallist.prototype.reverse=function(){vart=this.head;vare=this.tail;for(vari=t;i!==null;i=i.prev){varr=i.prev;i.prev=i.next;i.next=r}this.head=e;this.tail=t;returnthis};functionpush(t,e){t.tail=newNode(e,t.tail,null,t);if(!t.head){t.head=t.tail}t.length++}functionunshift(t,e){t.head=newNode(e,null,t.head,t);if(!t.tail){t.tail=t.head}t.length++}functionNode(t,e,i,r){if(!(thisinstanceofNode)){returnnewNode(t,e,i,r)}this.list=r;this.value=t;if(e){e.next=this;this.prev=e}else{this.prev=null}if(i){i.prev=this;this.next=i}else{this.next=null}}},23:t=>{"use strict";t.exports=require("util")}};vare={};function__nccwpck_require__(i){varr=e[i];if(r!==undefined){returnr.exports}varn=e[i]={exports:{}};vara=true;try{t[i](n,n.exports,__nccwpck_require__);a=false}finally{if(a)deletee[i]}returnn.exports}if(typeof__nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";vari=__nccwpck_require__(939);module.exports=i})();