tweb/public/2.eb31d7a365d9c3a1b58b.chunk.js
Eduard Kuzmenko fee5ffbfdc Replaced rest of icons
Layout fixes in left sidebar
Added animation to chatlist menu button
Changed chat layer transition
2021-04-15 03:45:29 +04:00

1 line
19 KiB
JavaScript

(this.webpackJsonp=this.webpackJsonp||[]).push([[2],{28:function(t,e,s){"use strict";s.d(e,"a",(function(){return d}));var i=s(7),r=s(37),n=s(76),a=s(10),o=s(53);const h=new class{constructor(){this.pageId=-1,this.pagesDiv=document.getElementById("auth-pages"),this.scrollableDiv=this.pagesDiv.querySelector(".scrollable"),this.selectTab=Object(n.a)(null,this.scrollableDiv.querySelector(".tabs-container"),null,()=>{var t;(null===(t=this.page)||void 0===t?void 0:t.onShown)&&this.page.onShown()})}setPage(t){if(t.isAuthPage){this.pagesDiv.style.display="";let e=Object(i.D)(t.pageEl);if(this.pageId===e)return;this.selectTab(e),-1!==this.pageId&&e>1&&r.b.loadLottieWorkers(),this.pageId=e,this.scrollableDiv&&Object(o.b)(this.scrollableDiv,this.scrollableDiv.firstElementChild,"start")}else this.pagesDiv.style.display="none",t.pageEl.style.display="",this.pageId=-1;this.page=t}};a.a.pagesManager=h;var c=h,l=function(t,e,s,i){return new(s||(s=Promise))((function(r,n){function a(t){try{h(i.next(t))}catch(t){n(t)}}function o(t){try{h(i.throw(t))}catch(t){n(t)}}function h(t){var e;t.done?r(t.value):(e=t.value,e instanceof s?e:new s((function(t){t(e)}))).then(a,o)}h((i=i.apply(t,e||[])).next())}))};class d{constructor(t,e,s,i,r){this.isAuthPage=e,this.onFirstMount=s,this.onMount=i,this.onShown=r,this.installed=!1,this.pageEl=document.body.querySelector("."+t)}mount(...t){return l(this,void 0,void 0,(function*(){if(this.onMount&&this.onMount(...t),!this.installed){if(this.onFirstMount)try{const e=this.onFirstMount(...t);e instanceof Promise&&(yield e)}catch(t){console.error("PAGE MOUNT ERROR:",t)}this.installed=!0}c.setPage(this)}))}}},37:function(t,e,s){"use strict";s.d(e,"a",(function(){return y}));var i=s(99),r=s.n(i),n=s(39),a=s(10),o=s(43),h=s(23),c=s(50),l=s(21),d=s(0),u=s(26),p=s(13),f=function(t,e,s,i){return new(s||(s=Promise))((function(r,n){function a(t){try{h(i.next(t))}catch(t){n(t)}}function o(t){try{h(i.throw(t))}catch(t){n(t)}}function h(t){var e;t.done?r(t.value):(e=t.value,e instanceof s?e:new s((function(t){t(e)}))).then(a,o)}h((i=i.apply(t,e||[])).next())}))};let m=t=>Math.round(255*Math.min(Math.max(t,0),1));class y extends o.a{constructor({el:t,worker:e,options:s}){super(!0),this.reqId=0,this.width=0,this.height=0,this.paused=!0,this.direction=1,this.speed=1,this.autoplay=!0,this.loop=!0,this.group="",this.frames={},this.cachingDelta=0,this.reqId=++y.reqId,this.el=t,this.worker=e;for(let t in s)this.hasOwnProperty(t)&&(this[t]=s[t]);let i;this._loop=this.loop,this._autoplay=this.autoplay,void 0!==s.skipRatio?i=s.skipRatio:(d.isAndroid||d.isAppleMobile||d.isApple&&!d.isSafari)&&this.width<100&&this.height<100&&(i=.5),this.skipDelta=void 0!==i?1/i|0:1;const r=Object(c.a)(window.devicePixelRatio,1,2);r>1&&(s.needUpscale?(this.width=Math.round(this.width*r),this.height=Math.round(this.height*r)):r>1&&(this.width>100&&this.height>100?d.isApple||!h.b.isMobile?(this.width=Math.round(this.width*r),this.height=Math.round(this.height*r)):r>2.5&&(this.width=Math.round(this.width*(r-1.5)),this.height=Math.round(this.height*(r-1.5))):(this.width=Math.round(this.width*Math.max(1.5,r-1.5)),this.height=Math.round(this.height*Math.max(1.5,r-1.5))))),s.noCache||(d.isApple&&this.width>100&&this.height>100?this.cachingDelta=2:this.width<100&&this.height<100?this.cachingDelta=1/0:this.cachingDelta=4),this.canvas=document.createElement("canvas"),this.canvas.classList.add("rlottie"),this.canvas.width=this.width,this.canvas.height=this.height,this.context=this.canvas.getContext("2d"),this.clamped=new Uint8ClampedArray(this.width*this.height*4),this.imageData=new ImageData(this.width,this.height)}clearCache(){this.frames={}}sendQuery(t,...e){this.worker.sendQuery(t,this.reqId,...e)}loadFromData(t){this.sendQuery("loadFromData",t,this.width,this.height)}play(){this.paused&&(this.paused=!1,this.setMainLoop())}pause(t=!0){this.paused||(this.paused=!0,t&&clearTimeout(this.rafId))}stop(t=!0){this.pause(),this.curFrame=1===this.direction?0:this.frameCount,t&&this.requestFrame(this.curFrame)}restart(){this.stop(!1),this.play()}setSpeed(t){this.speed=t,this.paused||this.setMainLoop()}setDirection(t){this.direction=t,this.paused||this.setMainLoop()}remove(){b.onDestroy(this.reqId),this.pause(),this.sendQuery("destroy")}renderFrame2(t,e){try{this.imageData.data.set(t),this.context.putImageData(this.imageData,0,0)}catch(t){return console.error("RLottiePlayer renderFrame error:",t,this.width,this.height),this.autoplay=!1,void this.pause()}this.dispatchEvent("enterFrame",e)}renderFrame(t,e){if(this.cachingDelta&&(e%this.cachingDelta||!e)&&!this.frames[e]&&(this.frames[e]=new Uint8ClampedArray(t)),this.frInterval){const s=Date.now()-this.frThen;if(s<0)return this.rafId&&clearTimeout(this.rafId),this.rafId=window.setTimeout(()=>{this.renderFrame2(t,e)},this.frInterval>-s?-s%this.frInterval:this.frInterval)}this.renderFrame2(t,e)}requestFrame(t){this.frames[t]?this.renderFrame(this.frames[t],t):d.isSafari?this.sendQuery("renderFrame",t):(this.clamped.length||(this.clamped=new Uint8ClampedArray(this.width*this.height*4)),this.sendQuery("renderFrame",t,this.clamped))}mainLoopForwards(){const t=this.curFrame+this.skipDelta>=this.frameCount?this.curFrame=0:this.curFrame+=this.skipDelta;return this.requestFrame(t),!(t+this.skipDelta>=this.frameCount&&!this.loop)||(this.pause(!1),!1)}mainLoopBackwards(){const t=this.curFrame-this.skipDelta<0?this.curFrame=this.frameCount-1:this.curFrame-=this.skipDelta;return this.requestFrame(t),!(t-this.skipDelta<0&&!this.loop)||(this.pause(!1),!1)}setMainLoop(){clearTimeout(this.rafId),this.frInterval=1e3/this.fps/this.speed*this.skipDelta,this.frThen=Date.now()-this.frInterval;const t=(1===this.direction?this.mainLoopForwards:this.mainLoopBackwards).bind(this);this.currentMethod=t,this.frameListener&&this.listenerResults.hasOwnProperty("enterFrame")&&this.frameListener()}onLoad(t,e){return f(this,void 0,void 0,(function*(){if(this.curFrame=1===this.direction?0:t-1,this.frameCount=t,this.fps=e,this.fps<60&&1!==this.skipDelta){const t=60/e;this.skipDelta=this.skipDelta/t|0}this.frInterval=1e3/this.fps/this.speed*this.skipDelta,this.frThen=Date.now()-this.frInterval,this.requestFrame(0),this.dispatchEvent("ready"),this.addEventListener("enterFrame",()=>{this.dispatchEvent("firstFrame"),this.el.appendChild(this.canvas),this.frameListener=()=>{if(this.paused)return;const t=Date.now();this.frThen=t+this.frInterval;this.currentMethod()||this.loop||!this.autoplay||(this.autoplay=!1)},this.addEventListener("enterFrame",this.frameListener)},!0)}))}}y.reqId=0;class v extends o.a{constructor(t,e=(()=>{}),s){super(),this.worker=t,this.defaultListener=e,s&&(this.worker.onerror=s),this.worker.onmessage=t=>{t.data instanceof Object&&t.data.hasOwnProperty("queryMethodListener")&&t.data.hasOwnProperty("queryMethodArguments")?this.dispatchEvent(t.data.queryMethodListener,...t.data.queryMethodArguments):this.defaultListener.call(this,t.data)}}postMessage(t){this.worker.postMessage(t)}terminate(){this.worker.terminate()}sendQuery(t,...e){if(d.isSafari)this.worker.postMessage({queryMethod:t,queryMethodArguments:e});else{const s=[];e.forEach(t=>{t instanceof ArrayBuffer&&s.push(t),t.buffer&&t.buffer instanceof ArrayBuffer&&s.push(t.buffer)}),this.worker.postMessage({queryMethod:t,queryMethodArguments:e},s)}}}class g{constructor(){this.isWebAssemblySupported="undefined"!=typeof WebAssembly,this.loadPromise=this.isWebAssemblySupported?void 0:Promise.reject(),this.loaded=!1,this.workersLimit=4,this.players={},this.workers=[],this.curWorkerNum=0,this.log=Object(u.b)("LOTTIE",u.a.error),this.onPlayerLoaded=(t,e,s)=>{const i=this.players[t];i?(this.log.debug("onPlayerLoaded"),i.onLoad(e,s)):this.log.warn("onPlayerLoaded on destroyed player:",t,e)},this.onFrame=(t,e,s)=>{const i=this.players[t];i?(i.clamped=s,i.renderFrame(s,e)):this.log.warn("onFrame on destroyed player:",t,e)},this.onPlayerError=(t,e)=>{const s=this.players[t];if(s){n.a.getAnimations(s.el).forEach(t=>{n.a.checkAnimation(t,!0,!0)})}}}getAnimation(t){for(const e in this.players)if(this.players[e].el===t)return this.players[e];return null}setLoop(t){for(const e in this.players){const s=this.players[e];s.loop=t,s.autoplay=s._autoplay}}loadLottieWorkers(){return this.loadPromise?this.loadPromise:this.loadPromise=new Promise((t,e)=>{let s=this.workersLimit;for(let e=0;e<this.workersLimit;++e){const i=this.workers[e]=new v(new r.a);i.addEventListener("ready",()=>{this.log("worker #"+e+" ready"),i.addEventListener("frame",this.onFrame),i.addEventListener("loaded",this.onPlayerLoaded),i.addEventListener("error",this.onPlayerError),--s,s||(this.log("workers ready"),t(),this.loaded=!0)})}})}applyReplacements(t,e){const s=g.COLORREPLACEMENTS[Math.max(e-1,0)],i=t=>{switch(t.ty){case"st":case"fl":(t=>{const e=t.c.k,i=m(e[2])|m(e[1])<<8|m(e[0])<<16,r=s.find(t=>t[0]===i);r&&(e[0]=(r[1]>>16&255)/255,e[1]=(r[1]>>8&255)/255,e[2]=(255&r[1])/255)})(t)}t.hasOwnProperty("it")&&r(t.it)},r=t=>{for(const e of t)i(e)};try{for(const e of t.layers)if(e.shapes)for(const t of e.shapes)t.it?r(t.it):i(t)}catch(s){this.log.warn("cant apply replacements",s,t,e)}}loadAnimationFromURL(t,e){return this.isWebAssemblySupported?(this.loaded||this.loadLottieWorkers(),fetch(e).then(t=>t.arrayBuffer()).then(t=>p.a.gzipUncompress(t,!0)).then(e=>this.loadAnimationWorker(Object.assign(t,{animationData:e,needUpscale:!0})))):this.loadPromise}waitForFirstFrame(t){return Promise.race([new Promise(e=>{t.addEventListener("firstFrame",e,!0)}),Object(l.d)(2500)])}loadAnimationWorker(t,e="",s=-1){return f(this,void 0,void 0,(function*(){if(!this.isWebAssemblySupported)return this.loadPromise;if(s>=1&&s<=5){const e=JSON.parse(t.animationData);this.applyReplacements(e,s),t.animationData=JSON.stringify(e)}if(this.loaded||(yield this.loadLottieWorkers()),t.width&&t.height||(t.width=parseInt(t.container.style.width),t.height=parseInt(t.container.style.height)),!t.width||!t.height)throw new Error("No size for sticker!");t.group=e;const i=this.initPlayer(t.container,t);return n.a.addAnimation(i,e),i}))}onDestroy(t){delete this.players[t]}destroyWorkers(){this.workers.forEach((t,e)=>{t.terminate(),this.log("worker #"+e+" terminated")}),this.log("workers destroyed"),this.workers.length=0}initPlayer(t,e){const s=new y({el:t,worker:this.workers[this.curWorkerNum++],options:e});return this.players[s.reqId]=s,this.curWorkerNum>=this.workers.length&&(this.curWorkerNum=0),s.loadFromData(e.animationData),s}}g.COLORREPLACEMENTS=[[[16219713,13335381],[16757049,16168585],[16765248,16764327],[16768889,16768965]],[[16219713,10771e3],[16757049,14653547],[16765248,15577475],[16768889,16040864]],[[16219713,7354903],[16757049,11233085],[16765248,12812110],[16768889,14194279]],[[16219713,4858889],[16757049,8207886],[16765248,9852201],[16768889,11100983]],[[16219713,2101002],[16757049,4270372],[16765248,5848375],[16768889,6505791]]];const b=new g;a.a.lottieLoader=b,e.b=b},39:function(t,e,s){"use strict";var i=s(7),r=s(37),n=s(9),a=s(0),o=s(10);const h=new class{constructor(){this.visible=new Set,this.byGroups={},this.lockedGroups={},this.onlyOnePlayableGroup="",this.intersectionLockedGroups={},this.videosLocked=!1,this.observer=new IntersectionObserver(t=>{if(!n.default.idle.isIDLE)for(const e of t){const t=e.target;for(const s in this.byGroups){if(this.intersectionLockedGroups[s])continue;const i=this.byGroups[s].find(e=>e.el===t);if(i){e.isIntersecting?(this.visible.add(i),this.checkAnimation(i,!1)):(this.visible.delete(i),this.checkAnimation(i,!0),i.animation instanceof r.a&&i.animation.clearCache());break}}}}),n.default.on("audio_play",({doc:t})=>{"round"===t.type&&(this.videosLocked=!0,this.checkAnimations())}),n.default.on("audio_pause",()=>{this.videosLocked&&(this.videosLocked=!1,this.checkAnimations())})}getAnimations(t){const e=[];for(const s in this.byGroups)for(const i of this.byGroups[s])i.el===t&&e.push(i);return e}removeAnimation(t){const{el:e,animation:s}=t;s.remove(),s instanceof HTMLVideoElement&&a.isSafari&&setTimeout(()=>{s.src="",s.load()},1e3);for(const e in this.byGroups)this.byGroups[e].findAndSplice(e=>e===t);this.observer.unobserve(e),this.visible.delete(t)}addAnimation(t,e=""){var s;const i={el:t instanceof r.a?t.el:t,animation:t,group:e};t instanceof r.a&&!n.default.settings.stickers.loop&&t.loop&&(t.loop=n.default.settings.stickers.loop),(null!==(s=this.byGroups[e])&&void 0!==s?s:this.byGroups[e]=[]).push(i),this.observer.observe(i.el)}checkAnimations(t,e,s=!1){if(n.default.idle.isIDLE)return;const i=e?[e]:Object.keys(this.byGroups);if(!e||this.byGroups[e])for(const e of i){this.byGroups[e].forEach(e=>{this.checkAnimation(e,t,s)})}else this.byGroups[e]=[]}checkAnimation(t,e=!1,s=!1){const{el:r,animation:n,group:a}=t;s||!Object(i.t)(r)&&!this.lockedGroups[a]?this.removeAnimation(t):e||this.onlyOnePlayableGroup&&this.onlyOnePlayableGroup!==a||n instanceof HTMLVideoElement&&this.videosLocked?n.paused||n.pause():n.paused&&this.visible.has(t)&&n.autoplay&&(!this.onlyOnePlayableGroup||this.onlyOnePlayableGroup===a)&&n.play()}setOnlyOnePlayableGroup(t){this.onlyOnePlayableGroup=t}lockGroup(t){this.lockedGroups[t]=!0}unlockGroup(t){delete this.lockedGroups[t],this.checkAnimations(void 0,t)}refreshGroup(t){const e=this.byGroups[t];e&&e.length&&(e.forEach(t=>{this.observer.unobserve(t.el)}),window.requestAnimationFrame(()=>{e.forEach(t=>{this.observer.observe(t.el)})}))}lockIntersectionGroup(t){this.intersectionLockedGroups[t]=!0}unlockIntersectionGroup(t){delete this.intersectionLockedGroups[t],this.refreshGroup(t)}};o.a&&(o.a.animationIntersector=h),e.a=h},53:function(t,e,s){"use strict";s.d(e,"a",(function(){return h})),s.d(e,"b",(function(){return c}));var i=s(41),r=s(21),n=s(92),a=s(9),o=s(7);var h;function c(t,e,s,n=0,c=1500,d,u,p="y"){if(a.default.settings.animationsEnabled||(d=h.Static),d===h.Static)return l(t,e,s,n,u=0,p);if("y"===p&&e!==t&&Object(o.t)(e)&&t.getBoundingClientRect){const s=e.getBoundingClientRect(),i=t.getBoundingClientRect(),r=s.top-i.top;void 0===d?r<-c?t.scrollTop+=r+c:r>c&&(t.scrollTop+=r-c):d===h.Up?t.scrollTop=r+t.scrollTop+c:d===h.Down&&(t.scrollTop=Math.max(0,r+t.scrollTop-c))}const f=new Promise(i=>{Object(r.c)(()=>{l(t,e,s,n,u,p).then(i)})});return"y"===p?Object(i.b)(f):f}function l(t,e,s,i=0,r,a="y"){if(!Object(o.t)(e))return Object(n.b)(t),Promise.resolve();const h="y"===a?"top":"left",c="y"===a?"bottom":"right",l="y"===a?"height":"width",d="y"===a?"scrollHeight":"scrollWidth",u="y"===a?"scrollTop":"scrollLeft",p=e.getBoundingClientRect(),f=t.getBoundingClientRect?t.getBoundingClientRect():document.body.getBoundingClientRect(),m=p[h]-f[h],y=e[d],v=f[l],g=t[u],b=t[d];let w;switch(s){case"start":w=m-i;break;case"end":w=p[c]+(y-p[l])-f[c];break;case"nearest":case"center":w=y<v?m+y/2-v/2:m-i}if(w<0){const t=-g;w=Math.max(w,t)}else if(w>0){const t=b-(g+v);w=Math.min(w,t)}const k=t[u]+w,L=null!=r?r:250+Math.abs(w)/1500*350,D=Date.now(),E=()=>{const e=L?Math.min((Date.now()-D)/L,1):1,s=w*(1-function(t){return 1-Math.pow(1-t,3.5)}(e));return t[u]=Math.round(k-s),e<1};return L&&w?Object(n.a)(E,t):(Object(n.b)(t),E(),Promise.resolve())}!function(t){t[t.Up=0]="Up",t[t.Down=1]="Down",t[t.Static=2]="Static"}(h||(h={}))},74:function(t,e,s){"use strict";s.d(e,"a",(function(){return c}));var i=s(7),r=s(9),n=s(31),a=s(41);function o(t,e,s){const i=e.getBoundingClientRect().width,r=[t,e];return s&&r.reverse(),r[0].style.filter="brightness(80%)",r[0].style.transform=`translate3d(${.25*-i}px, 0, 0)`,r[1].style.transform=`translate3d(${i}px, 0, 0)`,t.classList.add("active"),t.offsetWidth,t.style.transform="",t.style.filter="",()=>{e.style.transform=e.style.filter=""}}function h(t,e,s){const i=e.getBoundingClientRect().width,r=[t,e];return s&&r.reverse(),r[0].style.transform=`translate3d(${-i}px, 0, 0)`,r[1].style.transform=`translate3d(${i}px, 0, 0)`,t.classList.add("active"),t.offsetWidth,t.style.transform="",()=>{e.style.transform=""}}const c=(t,e,s,i,r=!0)=>{let n=null;switch(e){case"tabs":n=h;break;case"navigation":n=o}return t.dataset.animation=e,l(t,n,s,i,r)},l=(t,e,s,o,h=!0)=>{const c=new Map;let l,d=0,u=null;function p(f,m=!0){const y=p;f instanceof HTMLElement&&(f=Object(i.D)(f));const v=y.prevId();if(f===v)return!1;const g=u,b=t.children[f];if(r.default.settings.animationsEnabled&&-1!==v||(m=!1),!m)return g&&g.classList.remove("active","to","from"),b&&(b.classList.remove("to","from"),b.classList.add("active")),t.classList.remove("animating","backwards","disable-hover"),u=b,void(o&&o(f));u&&(u.classList.remove("to"),u.classList.add("from")),t.classList.add("animating","disable-hover");const w=v<f;let k;if(t.classList.toggle("backwards",!w),b&&(e?k=e(b,u,w):b.classList.add("active"),b.classList.remove("from"),b.classList.add("to")),b&&c.set(b,()=>{b.classList.remove("to"),c.delete(b)}),g){const t=()=>{g.classList.remove("active","from"),k&&k(),c.delete(g)};if(b)c.set(g,t);else{const e=window.setTimeout(t,s);c.set(g,()=>{clearTimeout(e)})}h&&(l||(l=Object(n.a)(),d=performance.now()),Object(a.b)(l,2*s))}u=b}return t.addEventListener(e?"transitionend":"animationend",e=>{if(e.target.parentElement!==t)return;const s=c.get(e.target);s&&s(),e.target===u&&(!l&&h||(l&&(l.resolve(),l=void 0),o&&o(p.prevId()),t.classList.remove("animating","backwards","disable-hover")))}),p.prevId=()=>u?Object(i.D)(u):-1,p}},76:function(t,e,s){"use strict";s.d(e,"a",(function(){return h}));var i=s(7),r=s(74),n=s(9),a=s(21),o=s(53);function h(t,e,s,h,c=250,l){const d=Object(r.a)(e,t||"tabs"===e.dataset.animation?"tabs":"navigation",c,h);if(t){const r=new Proxy(d,{apply:(e,s,i)=>{const r=+i[0],n=void 0===i[1]||i[1],a=t.querySelector(`[data-tab="${r}"]`)||t.children[r];h(a,r,n)}}),h=(i,r,h=!0)=>{const f=e.children[r];s&&s(r,f),l&&l.scrollIntoViewNew(i.parentElement.children[r],"center",void 0,void 0,h?void 0:o.a.Static,c,"x"),n.default.settings.animationsEnabled||(h=!1);const m=d.prevId();if(i.classList.contains("active")||r===m)return!1;const y=t.querySelector(p.toLowerCase()+".active");Object(a.c)(()=>{y&&y.classList.remove("active")}),u&&-1!==m&&h&&Object(a.c)(()=>{const t=i.querySelector("i"),e=i.parentElement.children[m].querySelector("i");e.classList.remove("animate"),t.classList.remove("animate");const s=e.parentElement.parentElement.offsetLeft-t.parentElement.parentElement.offsetLeft,r=e.clientWidth/t.clientWidth;t.style.transform=`translate3d(${s}px, 0, 0) scale3d(${r}, 1, 1)`,requestAnimationFrame(()=>{t.classList.add("animate"),t.style.transform="none"})}),Object(a.c)(()=>{i.classList.add("active")}),d(r,h)},u=!t.classList.contains("no-stripe"),p=t.firstElementChild.tagName;return t.addEventListener("click",(function(e){let s,r=e.target;if(r=function(t,e){if(t.parentElement===e)return t;for(;t.parentElement;)if((t=t.parentElement).parentElement===e)return t;return null}(r,t),!r)return!1;if(r.dataset.tab){if(s=+r.dataset.tab,-1===s)return!1}else s=Object(i.D)(r);h(r,s)})),r}return d}},92:function(t,e,s){"use strict";s.d(e,"b",(function(){return a})),s.d(e,"a",(function(){return o}));var i=s(21),r=s(31);const n=new Map;function a(t){const e=function(t){return n.get(t)}(t);e&&(e.isCancelled=!0,e.deferred.resolve())}function o(t,e,s){return s||(s=function(t){a(t);const e={isCancelled:!1,deferred:Object(r.a)()};return n.set(t,e),e.deferred.then(()=>{n.delete(t)}),e}(e)),Object(i.c)(()=>{s.isCancelled||(t()?o(t,e,s):s.deferred.resolve())}),s.deferred}},99:function(t,e,s){t.exports=function(){return new Worker(s.p+"aeda10c6461aad01822d.worker.js")}}}]);