index-D_EGaVbS.js 402 KB

12345678910111213141516171819202122
  1. const __vite__fileDeps=["./prism-C4r0NVHH.js","./_commonjsHelpers-Cpj98o6Y.js","./passcodeLockScreen-CFQfu4yX.js","./actions-BE1af_U3.js","./chatBackground-j-mSAtH4.js","./chatBackground-DT3l-EOo.css","./passcodeLockScreen-Bd_62FBh.css","./pageSignIn-Cd3WOySy.js","./putPreloader-NOkcnuw_.js","./page-C6VUMrJP.js","./pageSignQR-Bu_Eys3X.js","./textToSvgURL-Cnw_Q8Rw.js","./countryInputField-yId9tpyt.js","./pageAuthCode-Ld4jym4N.js","./codeInputField-4XE97kZh.js","./pagePassword-B2NWP3Bp.js","./loginPage-CrEyE4-n.js","./htmlToSpan-DhAls8qz.js","./pageSignUp-DHf0D8ej.js","./avatar-C4f7PAeP.js","./pageSignImport-Cm8VYZAZ.js","./pageIm-CNuREQoB.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
  2. var Yc=Object.defineProperty;var Kc=(s,e,t)=>e in s?Yc(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var wn=(s,e,t)=>(Kc(s,typeof e!="symbol"?e+"":e,t),t);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))f(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&f(r)}).observe(document,{childList:!0,subtree:!0});function t(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function f(n){if(n.ep)return;n.ep=!0;const i=t(n);fetch(n.href,i)}})();const Jc="modulepreload",Qc=function(s,e){return new URL(s,e).href},Dr={},se=function(e,t,f){let n=Promise.resolve();if(t&&t.length>0){const i=document.getElementsByTagName("link"),r=document.querySelector("meta[property=csp-nonce]"),a=r?.nonce||r?.getAttribute("nonce");n=Promise.all(t.map(o=>{if(o=Qc(o,f),o in Dr)return;Dr[o]=!0;const c=o.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(!!f)for(let m=i.length-1;m>=0;m--){const h=i[m];if(h.href===o&&(!c||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${d}`))return;const u=document.createElement("link");if(u.rel=c?"stylesheet":Jc,c||(u.as="script",u.crossOrigin=""),u.href=o,a&&u.setAttribute("nonce",a),document.head.appendChild(u),c)return new Promise((m,h)=>{u.addEventListener("load",m),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${o}`)))})}))}return n.then(()=>e()).catch(i=>{const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=i,window.dispatchEvent(r),!r.defaultPrevented)throw i})},wr=["web.telegram.org","webk.telegram.org"],U2="pattern",Sr=Math.min(4,navigator.hardwareConcurrency??4),fe={id:1025907,hash:"452b0359b988148995f22ff0f4229750",version:"2.2",versionFull:"2.2 (567)",build:567,langPackVersion:"6.3.3",langPack:"webk",langPackCode:"en",domains:wr,baseDcId:2,isMainDomain:wr.includes(location.hostname),suffix:"K",threads:Sr,cryptoWorkers:Sr};fe.isMainDomain&&(fe.id=2496,fe.hash="8da85b0d5bfe62527e5b244c209159c3");function _i(){return document.activeElement?.blur?(document.activeElement.blur(),!0):!1}const ke="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,Ti=typeof window<"u"?window:self,ks=navigator?navigator.userAgent:null,Et=navigator.userAgent.search(/OS X|iPhone|iPad|iOS/i)!==-1,fn=navigator.userAgent.toLowerCase().indexOf("android")!==-1,Li=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor),Ta=(()=>{try{return+navigator.userAgent.match(/Chrom(?:e|ium)\/(.+?)(?:\s|\.)/)[1]}catch{}})(),At=(/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Ti.MSStream,le="safari"in Ti||!!(ks&&(/\b(iPad|iPhone|iPod)\b/.test(ks)||ks.match("Safari")&&!ks.match("Chrome"))),vt=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,Ut=le&&At,xe=(navigator.maxTouchPoints===void 0||navigator.maxTouchPoints>0)&&navigator.userAgent.search(/iOS|iPhone OS|Android|BlackBerry|BB10|Series ?[64]0|J2ME|MIDP|opera mini|opera mobi|mobi.+Gecko|Windows Phone/i)!=-1,Xc=Object.freeze(Object.defineProperty({__proto__:null,CHROMIUM_VERSION:Ta,IS_ANDROID:fn,IS_APPLE:Et,IS_APPLE_MOBILE:At,IS_CHROMIUM:Li,IS_FIREFOX:vt,IS_MOBILE:xe,IS_MOBILE_SAFARI:Ut,IS_SAFARI:le,USER_AGENT:ks},Symbol.toStringTag,{value:"Module"}));function Vs(s,e){return s.closest("."+e)}let ws;function Me(s){ws?ws.push(s):(ws=[s],requestAnimationFrame(()=>{const e=ws;ws=void 0,e.forEach(t=>t())}))}let $t,Sn=!1;function j2(s){$t?Sn?s():$t.push(s):($t=[s],requestAnimationFrame(()=>{Sn=!0;for(let e=0;e<$t.length;++e)$t[e]();$t=void 0,Sn=!1}))}let Yt;function Zc(){return Yt||(Yt=new Promise(s=>Me(()=>s())),Yt.then(()=>{Yt=void 0}),Yt)}function Lf(){return new Promise(s=>{Me(()=>{Me(s)})})}function Ar(s){s.style.transform="translateY(-99999px)",s.focus(),Lf().then(()=>{s.style.transform=""})}const If=le&&xe&&ke&&!1;if(If){const s="clientY";let e=0;const t={capture:!0,passive:!1},f=i=>{const r=i.touches[0],a=Vs(r.target,"scrollable-y");if(a){const o=r[s],c=e-o,d=a.scrollTop,l=a.scrollHeight,u=a.clientHeight,m=d?Math.round(d+a.clientHeight+c):d+c;(l===u||m>=l||m<=0)&&i.preventDefault()}else i.preventDefault()};let n=0;document.addEventListener("focusin",i=>{!i.target.classList.contains("is-sticky-input-bugged")||i.timeStamp-n<50||(Ar(i.target),document.addEventListener("touchmove",f,t),document.addEventListener("touchstart",r=>{if(r.touches.length>1)return;e=r.touches[0][s]}))},{passive:!0}),document.addEventListener("focusout",i=>{document.removeEventListener("touchmove",f,t),n=i.timeStamp},{passive:!0}),document.addEventListener("visibilitychange",()=>{document.activeElement&&document.activeElement.classList.contains("is-sticky-input-bugged")&&document.activeElement.blur&&Ar(document.activeElement)},{passive:!0})}function W2(s){If&&s.classList.add("is-sticky-input-bugged")}const La="Roboto",Ia=La+', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif',e1="16px",t1="400",V2=`${t1} ${e1} ${Ia}`;function ye(){}function ge(s){return new Promise(e=>{setTimeout(e,s)})}const Ii="tgico";function H2(s){return Ii+"-"+s}const An=["b","б"],Cn={},s1={text:La,icons:Ii,monospace:"Roboto Mono"};function f1(s={text:An,icons:void 0,monospace:An}){if(!("fonts"in document))return Promise.resolve();const e=[];for(const t in s){let f=s[t];f==="all"&&(f=An);const n=s1[t],i=t==="icons"?[500]:[400,500];for(const r of i){const a=(f||[void 0]).map(o=>{var l,u;const c=[r,"1rem",n].join(" ");return(l=Cn[c]??(Cn[c]={}))[u=o||""]??(l[u]=document.fonts.load(c,o))});e.push(...a)}}return Promise.race([Promise.all(e).catch(ye),ge(1e3)])}const nn=navigator.userAgent.search(/OS X|iPhone|iPad|iOS/i)!==-1,cs="account",n1=3,xa=4,Cr=xa;function Ma(s){return s instanceof URL||(s=new URL(s+"",location.href)),location.search&&s.protocol!=="blob:"&&new URLSearchParams(location.search).forEach((t,f)=>{f!==cs&&s.searchParams.set(f,t)}),s.searchParams.delete("swfix"),s}function i1(){const s={construct(e,t){return t[0]=Ma(t[0]),new e(...t)}};[Worker,typeof SharedWorker<"u"&&SharedWorker].filter(Boolean).forEach(e=>{window[e.name]=new Proxy(e,s)})}i1();function r1(){Element.prototype.toggleAttribute||(Element.prototype.toggleAttribute=function(s,e){return e!==void 0&&(e=!!e),this.hasAttribute(s)?e?!0:(this.removeAttribute(s),!1):e===!1?!1:(this.setAttribute(s,""),!0)})}const xi=0,z2=1271266957,G2=777,q2=2666e3,$2=777e3,Y2=2147483647,K2="",J2=20*1024*1024,Vn="",Q2=[7322096,16766590,13338331,9367192,16749490,16478047],X2="default_static",xf=4294967296,Z2=xf+1,em=!1,a1=new Set(["web","k","z","a"]),tm=2147483646,sm=new Set(["image/jpeg","image/png","image/bmp","image/gif"]),fm="XTR",nm=5e3,im=-1,o1=0,c1=1,d1=new Set([o1,c1]);Math.max(...Array.from(d1))+1;const rm=!1;class Be{constructor(e){this._constructor(e)}_constructor(e){this.reuseResults=e,this.listeners={},this.listenerResults={}}addEventListener(e,t,f){var i;const n={callback:t,options:f};if(((i=this.listeners)[e]??(i[e]=new Set)).add(n),this.listenerResults.hasOwnProperty(e)&&(t(...this.listenerResults[e]),f?.once)){this.listeners[e].delete(n);return}}addMultipleEventsListeners(e){for(const t in e)this.addEventListener(t,e[t])}removeEventListener(e,t,f){if(this.listeners[e]){for(const n of this.listeners[e])if(n.callback===t){this.listeners[e].delete(n);break}}}invokeListenerCallback(e,t,...f){let n,i;try{n=t.callback(...f)}catch(r){i=r}if(t.options?.once&&this.removeEventListener(e,t.callback),i)throw i;return n}_dispatchEvent(e,t,...f){this.reuseResults&&(this.listenerResults[e]=f);const n=t&&[],i=this.listeners[e];if(i)for(const r of i){const a=this.invokeListenerCallback(e,r,...f);n&&n.push(a)}return n}dispatchResultableEvent(e,...t){return this._dispatchEvent(e,!0,...t)}dispatchEvent(e,...t){this._dispatchEvent(e,!1,...t)}cleanup(){this.listeners={},this.listenerResults={}}}const ve={test:location.search.indexOf("test=1")>0,debug:location.search.indexOf("debug=1")>0,http:!1,ssl:!0,asServiceWorker:!1,transport:"websocket",noSharedWorker:location.search.indexOf("noSharedWorker=1")>0,multipleTransports:!0};(ve.http=location.search.indexOf("http=1")>0)&&(ve.multipleTransports=!1);ve.multipleTransports&&(ve.http=!0);ve.http&&(ve.transport="https");const l1=!1,pe=ve.debug,u1=typeof window<"u"?window:self,L=u1,Mf=Date.now()%Math.random()*1e8|0;function ze(s,e){const t=s.indexOf(e);return(t===-1?void 0:s.splice(t,1))?.[0]}const tf=typeof ServiceWorkerGlobalScope<"u"&&self instanceof ServiceWorkerGlobalScope,rn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&!tf,nt=rn||tf,h1=()=>self.clients.matchAll({includeUncontrolled:!1,type:"window"}),Ra=(s,...e)=>{try{s.postMessage(...e)}catch(t){console.error("[worker] postMessage error:",t,e)}},Oa=(s,...e)=>{h1().then(t=>{t.length&&t.slice(s?0:-1).forEach(f=>{Ra(f,...e)})})},Na=(...s)=>{Ra(self,...s)},Ba=()=>{};tf&&Oa.bind(null,!1);tf&&Oa.bind(null,!0);function Ee(s,e){const t=new Error,f={type:s,stack:t.stack};return e&&(f.message=e),f}const m1=Date.now();function Rf(){return"["+((Date.now()-m1)/1e3).toFixed(3)+"]"}var sf=(s=>(s[s.None=0]="None",s[s.Error=1]="Error",s[s.Warn=2]="Warn",s[s.Log=4]="Log",s[s.Debug=8]="Debug",s))(sf||{});const g1=[0,1,2,4,8],p1=le||vt,kr=!p1,kn={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",underscore:"\x1B[4m",blink:"\x1B[5m",reverse:"\x1B[7m",hidden:"\x1B[8m",fg:{black:"\x1B[30m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m",white:"\x1B[37m"},bg:{black:"\x1B[40m",red:"\x1B[41m",green:"\x1B[42m",yellow:"\x1B[43m",blue:"\x1B[44m",magenta:"\x1B[45m",cyan:"\x1B[46m",white:"\x1B[47m"}},b1=[["debug",8],["info",4],["warn",2],["error",1],["assert",1],["trace",4],["group",4],["groupCollapsed",4],["groupEnd",4]];function X(s,e=7,t=!1,f=""){let n;!pe&&!t&&(e=1),kr?f||(tf?f=kn.fg.yellow:rn&&(f=kn.fg.cyan)):f="";const i=f;f?f=`%s ${f}%s`:f="%s";const r=function(...o){return e&4&&console.log(f,Rf(),s,...o)};b1.forEach(([o,c])=>{r[o]=function(...d){return e&c&&console[o](f,Rf(),s,...d)}}),r.setPrefix=function(o){n=o,s="["+o+"]"},r.setPrefix(s),r.setLevel=function(o){e=g1.slice(0,o+1).reduce((c,d)=>c|d,0)};const a={};return r.bindPrefix=function(o,c=e){return a[o]??(a[o]=X(`${n}] ${kr&&i?kn.reset:""}[${o}`,c,t,i))},r}const y1=!0;class Hs extends Be{constructor(e){super(!1),this.logSuffix=e,this.onMessage=t=>{const f=t.data,n=t.source||t.currentTarget;this.processTaskMap[f.type](f,n,t)},this.processResultTask=t=>{const{taskId:f,result:n,error:i}=t.payload,r=this.awaiting[f];r&&(this.debug&&this.log.debug("done",r.taskType,n,i),"error"in t.payload?r.reject(i):r.resolve(n),delete this.awaiting[f])},this.processAckTask=t=>{const f=t.payload,n=this.awaiting[f.taskId];if(!n)return;const i=n.resolve,r={cached:f.cached,result:f.cached?"result"in f?Promise.resolve(f.result):Promise.reject(f.error):new Promise((a,o)=>{n.resolve=a,n.reject=o})};i(r),f.cached&&delete this.awaiting[f.taskId]},this.processPingTask=(t,f,n)=>{this.pushTask(this.createTask("pong",void 0),n.source)},this.processPongTask=(t,f,n)=>{const i=this.pingResolves.get(f);i&&(this.pingResolves.delete(f),i())},this.processCloseTask=(t,f,n)=>{this.detachPort(f)},this.processBatchTask=(t,f,n)=>{const i={data:n.data,source:n.source,currentTarget:n.currentTarget};t.payload.forEach(r=>{i.data=r,this.onMessage(i)})},this.processLockTask=(t,f,n)=>{const i=t.payload;this.requestedLocks.has(i)||(this.requestedLocks.set(i,f),navigator.locks.request(i,()=>{this.processCloseTask(void 0,f,void 0),this.requestedLocks.delete(i)}))},this.processInvokeTask=async(t,f,n)=>{const i=t.id,r=t.payload;let a,o,c;r.void||(a={taskId:i},o=this.createTask("result",a)),r.withAck&&(c=this.createTask("ack",{taskId:i,cached:!0}));let d;try{const l=this.listeners[r.type];if(!l?.size)throw new Error("no listener");const u=l.values().next().value;let m=this.invokeListenerCallback(r.type,u,r.payload,f,n);if(r.void)return;if(d=m instanceof Promise,c){const h=!d;if(c.payload.cached=h,h&&(c.payload.result=m),this.pushTask(c,f),h)return}d&&(m=await m),m instanceof Hs.TransferableResult&&(o.transfer=m.transferables,m=m.value),a.result=m}catch(l){if(this.log.error("worker task error:",l,t),r.void)return;if(c&&c.payload.cached){c.payload.error=l,this.pushTask(c,f);return}a.error=l}this.pushTask(o,f)},this.listenPorts=[],this.sendPorts=[],this.pingResolves=new Map,this.taskId=Math.random(),this.awaiting={},this.pending=new Map,this.log=X("MP"+(e?"-"+e:"")),this.debug=pe,this.heldLocks=new Map,this.requestedLocks=new Map,this.processTaskMap={result:this.processResultTask,ack:this.processAckTask,invoke:this.processInvokeTask,ping:this.processPingTask,pong:this.processPongTask,close:this.processCloseTask,lock:this.processLockTask,batch:this.processBatchTask}}setOnPortDisconnect(e){this.onPortDisconnect=e}attachPort(e){this.attachListenPort(e),this.attachSendPort(e)}attachListenPort(e){this.listenPorts.push(e),e.addEventListener("message",this.onMessage)}attachSendPort(e){if(this.log.warn("attaching send port"),e.start?.(),this.sendPorts.push(e),typeof window<"u"&&y1)if("locks"in navigator){const t=["lock",Mf,this.logSuffix||"",Math.random()*2147483647|0].join("-");this.log.warn("created lock",t);const f=new Promise(n=>this.heldLocks.set(e,{resolve:n,id:t})).then(()=>this.heldLocks.delete(e));navigator.locks.request(t,()=>(this.resendLockTask(e),f))}else window.addEventListener("beforeunload",()=>{const t=this.createTask("close",void 0);this.postMessage(void 0,t)});this.releasePending()}resendLockTask(e){const t=this.heldLocks.get(e);t&&this.pushTask(this.createTask("lock",t.id),e)}detachPort(e){this.log.warn("disconnecting port"),ze(this.listenPorts,e),ze(this.sendPorts,e),e.removeEventListener?.("message",this.onMessage),e.close?.(),this.onPortDisconnect?.(e),this.heldLocks.get(e)?.resolve();const f=Ee("PORT_DISCONNECTED");for(const n in this.awaiting){const i=this.awaiting[n];i.port===e&&(i.reject(f),delete this.awaiting[n])}}postMessage(e,t){(Array.isArray(e)?e:e?[e]:this.sendPorts).forEach(n=>{n.postMessage(t,t.transfer)})}async releasePending(){this.releasingPending||(this.releasingPending=!0,await Promise.resolve(),this.debug&&this.log.debug("releasing tasks, length:",this.pending.size),this.pending.forEach((e,t)=>{let f=e;{let i;f=[],e.forEach(r=>{r.transfer?(i=void 0,f.push(r)):(i||(i=this.createTask("batch",[]),f.push(i)),i.payload.push(r))})}const n=t?[t]:this.sendPorts;n.length&&(f.forEach(i=>{try{this.postMessage(n,i)}catch(r){this.log.error("postMessage error:",r,i,n)}}),this.pending.delete(t))}),this.debug&&this.log.debug("released tasks"),this.releasingPending=!1)}createTask(e,t,f){return{type:e,payload:t,id:this.taskId++,transfer:f}}createInvokeTask(e,t,f,n,i){return this.createTask("invoke",{type:e,payload:t,withAck:f,void:n},i)}pushTask(e,t){let f=this.pending.get(t);f||this.pending.set(t,f=[]),f.push(e),this.releasePending()}invokeVoid(e,t,f,n){const i=this.createInvokeTask(e,t,void 0,!0,n);this.pushTask(i,f)}invoke(e,t,f,n,i){this.debug&&this.log.debug("start",e,t);let r;const a=new Promise((o,c)=>{r=this.createInvokeTask(e,t,f,void 0,i),this.awaiting[r.id]={resolve:o,reject:c,taskType:e,port:n},this.pushTask(r,n)});if(nt){a.finally(()=>{clearInterval(o)});const o=Ti.setInterval(()=>{this.log.error("task still has no result",r,n)},6e4)}return a}invokeExceptSource(e,t,f){const n=this.sendPorts.slice();ze(n,f),n.forEach(i=>{this.invokeVoid(e,t,i)})}async invokeExceptSourceAsync(e,t,f){const n=this.sendPorts.slice();ze(n,f),await Promise.all(n.map(i=>this.invoke(e,t,void 0,i)))}}(s=>{class e{constructor(f,n){this.value=f,this.transferables=n}}s.TransferableResult=e})(Hs||(Hs={}));const Mi=Hs;class Mt extends Mi{constructor(){super("MTPROTO"),Mt.INSTANCE=this,L&&(L.mtprotoMessagePort=this)}static getInstance(){return this.INSTANCE}}class E1 extends Be{constructor(){super(),this.myId=xi,this.connectionStatus={},this.premium=!1,this.addEventListener("user_auth",({id:e})=>{this.myId=e.toPeerId()}),this.addEventListener("premium_toggle_private",({isNew:e,isPremium:t})=>{this.premium=t,e||this.dispatchEventSingle("premium_toggle",t)}),this.addEventListener("connection_status_change",e=>{this.connectionStatus[e.name]=e}),this.dispatchEvent=(e,...t)=>{super.dispatchEvent(e,...t),(async()=>{const f=this.managers?await this.managers.apiManager.getAccountNumber():void 0;Mt.getInstance().invokeVoid("event",{name:e,args:t,accountNumber:f})})()}}getConnectionStatus(){return this.connectionStatus}getPremium(){return this.premium}getMyId(){return this.myId}dispatchEventSingle(e,...t){super.dispatchEvent(e,...t)}}const C=new E1;L.rootScope=C;function Of(s,e,t){const f=t&&new Set(t),n=o=>Object.keys(o).filter(c=>o[c]!==void 0),i=t?o=>n(o).filter(c=>!f.has(c)):n,r=typeof s;return s&&e&&r==="object"&&r===typeof e?i(s).length===i(e).length&&i(s).every(o=>Of(s[o],e[o],t)):s===e}function Hn(s,e){if(e)for(const t in e)e[t]!==void 0&&(s[t]=e[t]);return s}function an(s){return s.charAt(0).toUpperCase()+s.slice(1)}const v1=new Set(["javascript:"]);function Ua(s){if(!s)return null;try{const e=new URL(s).protocol;return v1.has(e)?null:e}catch{return null}}const ja="((?:👨🏻‍❤️?‍💋‍👨\uD83C[\uDFFB-\uDFFF]|👨🏼‍❤️?‍💋‍👨\uD83C[\uDFFB-\uDFFF]|👨🏽‍❤️?‍💋‍👨\uD83C[\uDFFB-\uDFFF]|👨🏾‍❤️?‍💋‍👨\uD83C[\uDFFB-\uDFFF]|👨🏿‍❤️?‍💋‍👨\uD83C[\uDFFB-\uDFFF]|👩🏻‍❤️?‍💋‍👨\uD83C[\uDFFB-\uDFFF]|👩🏻‍❤️?‍💋‍👩\uD83C[\uDFFB-\uDFFF]|👩🏼‍❤️?‍💋‍👨\uD83C[\uDFFB-\uDFFF]|👩🏼‍❤️?‍💋‍👩\uD83C[\uDFFB-\uDFFF]|👩🏽‍❤️?‍💋‍👨\uD83C[\uDFFB-\uDFFF]|👩🏽‍❤️?‍💋‍👩\uD83C[\uDFFB-\uDFFF]|👩🏾‍❤️?‍💋‍👨\uD83C[\uDFFB-\uDFFF]|👩🏾‍❤️?‍💋‍👩\uD83C[\uDFFB-\uDFFF]|👩🏿‍❤️?‍💋‍👨\uD83C[\uDFFB-\uDFFF]|👩🏿‍❤️?‍💋‍👩\uD83C[\uDFFB-\uDFFF]|🧑🏻‍❤️?‍💋‍🧑\uD83C[\uDFFC-\uDFFF]|🧑🏼‍❤️?‍💋‍🧑\uD83C[\uDFFB\uDFFD-\uDFFF]|🧑🏽‍❤️?‍💋‍🧑\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|🧑🏾‍❤️?‍💋‍🧑\uD83C[\uDFFB-\uDFFD\uDFFF]|🧑🏿‍❤️?‍💋‍🧑\uD83C[\uDFFB-\uDFFE]|👨🏻‍❤️?‍👨\uD83C[\uDFFB-\uDFFF]|👨🏻‍🤝‍👨\uD83C[\uDFFC-\uDFFF]|👨🏼‍❤️?‍👨\uD83C[\uDFFB-\uDFFF]|👨🏼‍🤝‍👨\uD83C[\uDFFB\uDFFD-\uDFFF]|👨🏽‍❤️?‍👨\uD83C[\uDFFB-\uDFFF]|👨🏽‍🤝‍👨\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|👨🏾‍❤️?‍👨\uD83C[\uDFFB-\uDFFF]|👨🏾‍🤝‍👨\uD83C[\uDFFB-\uDFFD\uDFFF]|👨🏿‍❤️?‍👨\uD83C[\uDFFB-\uDFFF]|👨🏿‍🤝‍👨\uD83C[\uDFFB-\uDFFE]|👩🏻‍❤️?‍👨\uD83C[\uDFFB-\uDFFF]|👩🏻‍❤️?‍👩\uD83C[\uDFFB-\uDFFF]|👩🏻‍🤝‍👨\uD83C[\uDFFC-\uDFFF]|👩🏻‍🤝‍👩\uD83C[\uDFFC-\uDFFF]|👩🏼‍❤️?‍👨\uD83C[\uDFFB-\uDFFF]|👩🏼‍❤️?‍👩\uD83C[\uDFFB-\uDFFF]|👩🏼‍🤝‍👨\uD83C[\uDFFB\uDFFD-\uDFFF]|👩🏼‍🤝‍👩\uD83C[\uDFFB\uDFFD-\uDFFF]|👩🏽‍❤️?‍👨\uD83C[\uDFFB-\uDFFF]|👩🏽‍❤️?‍👩\uD83C[\uDFFB-\uDFFF]|👩🏽‍🤝‍👨\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|👩🏽‍🤝‍👩\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|👩🏾‍❤️?‍👨\uD83C[\uDFFB-\uDFFF]|👩🏾‍❤️?‍👩\uD83C[\uDFFB-\uDFFF]|👩🏾‍🤝‍👨\uD83C[\uDFFB-\uDFFD\uDFFF]|👩🏾‍🤝‍👩\uD83C[\uDFFB-\uDFFD\uDFFF]|👩🏿‍❤️?‍👨\uD83C[\uDFFB-\uDFFF]|👩🏿‍❤️?‍👩\uD83C[\uDFFB-\uDFFF]|👩🏿‍🤝‍👨\uD83C[\uDFFB-\uDFFE]|👩🏿‍🤝‍👩\uD83C[\uDFFB-\uDFFE]|🧑🏻‍❤️?‍🧑\uD83C[\uDFFC-\uDFFF]|🧑🏻‍🤝‍🧑\uD83C[\uDFFB-\uDFFF]|🧑🏼‍❤️?‍🧑\uD83C[\uDFFB\uDFFD-\uDFFF]|🧑🏼‍🤝‍🧑\uD83C[\uDFFB-\uDFFF]|🧑🏽‍❤️?‍🧑\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|🧑🏽‍🤝‍🧑\uD83C[\uDFFB-\uDFFF]|🧑🏾‍❤️?‍🧑\uD83C[\uDFFB-\uDFFD\uDFFF]|🧑🏾‍🤝‍🧑\uD83C[\uDFFB-\uDFFF]|🧑🏿‍❤️?‍🧑\uD83C[\uDFFB-\uDFFE]|🧑🏿‍🤝‍🧑\uD83C[\uDFFB-\uDFFF]|👨‍❤️?‍💋‍👨|👩‍❤️?‍💋‍\uD83D[\uDC68\uDC69]|🫱🏻‍🫲\uD83C[\uDFFC-\uDFFF]|🫱🏼‍🫲\uD83C[\uDFFB\uDFFD-\uDFFF]|🫱🏽‍🫲\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|🫱🏾‍🫲\uD83C[\uDFFB-\uDFFD\uDFFF]|🫱🏿‍🫲\uD83C[\uDFFB-\uDFFE]|👨‍❤️?‍👨|👩‍❤️?‍\uD83D[\uDC68\uDC69]|🧑‍🤝‍🧑|👫\uD83C[\uDFFB-\uDFFF]|👬\uD83C[\uDFFB-\uDFFF]|👭\uD83C[\uDFFB-\uDFFF]|💏\uD83C[\uDFFB-\uDFFF]|💑\uD83C[\uDFFB-\uDFFF]|🤝\uD83C[\uDFFB-\uDFFF]|\uD83D[\uDC6B-\uDC6D\uDC8F\uDC91]|🤝)|(?:\uD83D[\uDC68\uDC69]|🧑)(?:\uD83C[\uDFFB-\uDFFF])?‍(?:⚕️?|⚖️?|✈️?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C[\uDFCB\uDFCC]|\uD83D[\uDD74\uDD75]|⛹)(?:(?:\uD83C[\uDFFB-\uDFFF]|️?)‍[♀♂]️?)|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?‍[♀♂]️?|(?:👨‍👨‍👦‍👦|👨‍👨‍👧‍\uD83D[\uDC66\uDC67]|👨‍👩‍👦‍👦|👨‍👩‍👧‍\uD83D[\uDC66\uDC67]|👩‍👩‍👦‍👦|👩‍👩‍👧‍\uD83D[\uDC66\uDC67]|👨‍👦‍👦|👨‍👧‍\uD83D[\uDC66\uDC67]|👨‍👨‍\uD83D[\uDC66\uDC67]|👨‍👩‍\uD83D[\uDC66\uDC67]|👩‍👦‍👦|👩‍👧‍\uD83D[\uDC66\uDC67]|👩‍👩‍\uD83D[\uDC66\uDC67]|🏳️?‍⚧️?|🏳️?‍🌈|😶‍🌫️?|❤️?‍🔥|❤️?‍🩹|🏴‍☠️?|🐕‍🦺|🐻‍❄️?|👁‍🗨|👨‍\uD83D[\uDC66\uDC67]|👩‍\uD83D[\uDC66\uDC67]|👯‍♀️?|👯‍♂️?|😮‍💨|😵‍💫|🤼‍♀️?|🤼‍♂️?|🧞‍♀️?|🧞‍♂️?|🧟‍♀️?|🧟‍♂️?|🐈‍⬛)|[#*0-9]️??⃣|(?:[©®™♟]️?)|(?:\uD83C[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE1A\uDE2F\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF3\uDFF5\uDFF7]|\uD83D[\uDC3F\uDC41\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]|[‼⁉ℹ↔-↙↩↪⌚⌛⌨⏏⏭-⏯⏱⏲⏸-⏺Ⓜ▪▫▶◀◻-◾☀-☄☎☑☔☕☘☠☢☣☦☪☮☯☸-☺♀♂♈-♓♠♣♥♦♨♻♿⚒-⚗⚙⚛⚜⚠⚡⚧⚪⚫⚰⚱⚽⚾⛄⛅⛈⛏⛑⛓⛔⛩⛪⛰-⛵⛸⛺⛽✂✈✉✏✒✔✖✝✡✳✴❄❇❗❣❤➡⤴⤵⬅-⬇⬛⬜⭐⭕〰〽㊗㊙])(?:️?|(?!︎))|(?:(?:\uD83C[\uDFCB\uDFCC]|\uD83D[\uDD74\uDD75\uDD90]|[☝⛷⛹✌✍])(?:️?|(?!︎))|(?:\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD7A\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD\uDEC3-\uDEC5\uDEF0-\uDEF6]|[✊✋]))(?:\uD83C[\uDFFB-\uDFFF])?|(?:🏴󠁧󠁢󠁥󠁮󠁧󠁿|🏴󠁧󠁢󠁳󠁣󠁴󠁿|🏴󠁧󠁢󠁷󠁬󠁳󠁿|🇦\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|🇧\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|🇨\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|🇩\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|🇪\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|🇫\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|🇬\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|🇭\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|🇮\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|🇯\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|🇰\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|🇱\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|🇲\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|🇳\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|🇴🇲|🇵\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|🇶🇦|🇷\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|🇸\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|🇹\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|🇺\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|🇻\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|🇼\uD83C[\uDDEB\uDDF8]|🇽🇰|🇾\uD83C[\uDDEA\uDDF9]|🇿\uD83C[\uDDE6\uDDF2\uDDFC]|\uD83C[\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC6F\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDD-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3C\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDDE-\uDDFF\uDE70-\uDE74\uDE78-\uDE7C\uDE80-\uDE86\uDE90-\uDEAC\uDEB0-\uDEBA\uDEC0-\uDEC2\uDED0-\uDED9\uDEE0-\uDEE7]|[⏩-⏬⏰⏳♾⛎✅✨❌❎❓-❕➕-➗➰➿])|️)",xs="a-z\\u00c0-\\u00d6\\u00d8-\\u00f6\\u00f8-\\u00ff\\u0100-\\u024f\\u0253\\u0254\\u0256\\u0257\\u0259\\u025b\\u0263\\u0268\\u026f\\u0272\\u0289\\u028b\\u02bb\\u0300-\\u036f\\u1e00-\\u1eff\\u0400-\\u04ff\\u0500-\\u0527\\u2de0-\\u2dff\\ua640-\\ua69f\\u0591-\\u05bf\\u05c1-\\u05c2\\u05c4-\\u05c5\\u05c7\\u05d0-\\u05ea\\u05f0-\\u05f4\\ufb1d-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40-\\ufb41\\ufb43-\\ufb44\\ufb46-\\ufb4f\\u0610-\\u061a\\u0620-\\u065f\\u066e-\\u06d3\\u06d5-\\u06dc\\u06de-\\u06e8\\u06ea-\\u06ef\\u06fa-\\u06fc\\u06ff\\u0750-\\u077f\\u08a0\\u08a2-\\u08ac\\u08e4-\\u08fe\\ufb50-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\u200c\\u0e01-\\u0e3a\\u0e40-\\u0e4e\\u1100-\\u11ff\\u3130-\\u3185\\uA960-\\uA97F\\uAC00-\\uD7AF\\uD7B0-\\uD7FF\\u3003\\u3005\\u303b\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uff9f\\uffa1-\\uffdc",D1="0-9_"+xs,Fr="·",df="["+xs+"0-9]",w1="((?:https?|ftp)://|mailto:)?",S1=w1+"(?:"+df+"{1,64}(?::"+df+"{0,64})?@)?(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])){3}|"+df+"["+xs+Fr+"0-9-]{0,64}(?:\\."+df+"["+xs+Fr+"0-9-]{0,64}){0,10}(?:\\.(xn--[0-9a-z]{2,16}|["+xs+`]{2,24})))(?::\\d{2,5})?(?:/(?:\\S{0,255}[^\\s.;,(\\[\\]{}<>"'])?)?`,Wa="[a-zA-Z\\d_]{5,32}",A1="(?:\\s|^)((?:(\\d{1,2}):(?:[0-5]?[0-9])|(?:\\d{1,2}|\\d{3,})):(?:[0-5][0-9]))(?:\\s|$)",C1="\\/([a-zA-Z\\d_]{1,32})(?:@("+Wa+"))?(\\b|$)",Pr=new RegExp("(^| )(@)("+Wa+")|("+S1+")|(\\n)|("+ja+")|(^|[\\s\\(\\]])(#["+D1+"]{2,64})|(^|\\s)"+C1+"|"+A1,"i"),k1=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,am=/(^|\s|\n)(````?)([\s\S]+?)(````?)([\s\n\.,:?!;]|$)|(^|\s|\x01)(`|~~|\*\*|__|_-_|\|\|)([^\n]+?)\7([\x01\s\.,:?!;]|$)|@(\d+)\s*\((.+?)\)|(\[(.+?)\]\((.+?)\))/m,F1={Telegram:"tg://search_hashtag?hashtag={1}",Twitter:"https://twitter.com/hashtag/{1}",Instagram:"https://instagram.com/explore/tags/{1}/","Google Plus":"https://plus.google.com/explore/{1}"},zn={"`":"messageEntityCode","``":"messageEntityPre","**":"messageEntityBold",__:"messageEntityItalic","~~":"messageEntityStrike","_-_":"messageEntityUnderline","||":"messageEntitySpoiler"};new Set(Object.values(zn));const Nf=new Set(["messageEntityEmoji","messageEntityLinebreak","messageEntityCaret"]),P1=new Set(Nf);for(const s in zn)Nf.add(zn[s]);const _1=/^\+\d+$/;function on(s,e){Ua(s)||(s="https://"+s);const t={url:s};let f,n,i;if(f=s.match(/^(?:https?:\/\/)?(?:(.+?)\.)?(?:(?:web|k|z|a)\.)?t(?:elegram)?\.me(?:\/(.+))?/)){const r=new URL(s);let a=f[1];a&&a1.has(f[1])&&(a=void 0),a&&(r.pathname=a+(r.pathname==="/"?"":r.pathname));const o=r.pathname.slice(1),c=o.split("/");if(c[0]&&c[0][0]==="$"&&c[0].length>1)i="invoice";else if(/^\+/.test(o)&&!_1.test(o))i="joinchat";else if(c[0])switch(c[0]){case"m":case"addlist":case"joinchat":case"addstickers":case"addemoji":case"voicechat":case"invoice":case"boost":case"giftcode":case"share":case"nft":if(c.length!==1&&!a){i=c[0];break}default:if(c.length<=2||c[1]?.match(/^\d+(?:\?(?:comment|thread)=\d+)?$/)||c[1]==="s"){i="im";break}break}}else s.match(/^(?:https?:\/\/)?telesco\.pe\/([^/?]+)\/(\d+)/)?i="im":(n=s.match(/tg:(?:\/\/)?(.+?)(?:\?|$)/))&&(i="tg_"+n[1]);return window[i]||(i=void 0),t.onclick=i,t}L&&(L.wrapUrl=on);function T1(s,e){cn(s),e===void 0?s.replaceChildren():typeof e=="string"?e?s.textContent=e:s.replaceChildren():s.replaceChildren(e)}function cn(s){s.setAttribute("dir","auto")}function om(){return"auto"}function Df(s){return s.target="_blank",s.rel="noopener noreferrer",s}const L1={context:void 0,registry:void 0},Va=(s,e)=>s===e,re=Symbol("solid-proxy"),zs=Symbol("solid-track"),Bf={equals:Va};let Ha=Ja;const Re=1,Uf=2,za={owned:null,cleanups:null,context:null,owner:null},Fn={};var j=null;let Pn=null,I1=null,H=null,ae=null,qe=null,dn=0;function _t(s,e){const t=H,f=j,n=s.length===0,i=e===void 0?f:e,r=n?za:{owned:null,cleanups:null,context:i?i.context:null,owner:i},a=n?s:()=>s(()=>ue(()=>ln(r)));j=r,H=null;try{return Je(a,!0)}finally{H=t,j=f}}function Ge(s,e){e=e?Object.assign({},Bf,e):Bf;const t={value:s,observers:null,observerSlots:null,comparator:e.equals||void 0},f=n=>(typeof n=="function"&&(n=n(t.value)),Ka(t,n));return[Ya.bind(t),f]}function _r(s,e,t){const f=bs(s,e,!0,Re);Ct(f)}function Tt(s,e,t){const f=bs(s,e,!1,Re);Ct(f)}function Ms(s,e,t){Ha=W1;const f=bs(s,e,!1,Re);(!t||!t.render)&&(f.user=!0),qe?qe.push(f):Ct(f)}function cm(s,e){let t;const f=bs(()=>{t?t():ue(s),t=void 0},void 0,!1,0);return f.user=!0,n=>{t=n,Ct(f)}}function Oe(s,e,t){t=t?Object.assign({},Bf,t):Bf;const f=bs(s,e,!0,0);return f.observers=null,f.observerSlots=null,f.comparator=t.equals||void 0,Ct(f),Ya.bind(f)}function x1(s){return s&&typeof s=="object"&&"then"in s}function dm(s,e,t){let f,n,i;arguments.length===2&&typeof e=="object"||arguments.length===1?(f=!0,n=s,i=e||{}):(f=s,n=e,i={});let r=null,a=Fn,o=!1,c="initialValue"in i,d=typeof f=="function"&&Oe(f);const l=new Set,[u,m]=(i.storage||Ge)(i.initialValue),[h,p]=Ge(void 0),[v,A]=Ge(void 0,{equals:!1}),[D,w]=Ge(c?"ready":"unresolved");function F(k,T,g,y){return r===k&&(r=null,y!==void 0&&(c=!0),(k===a||T===a)&&i.onHydrated&&queueMicrotask(()=>i.onHydrated(y,{value:T})),a=Fn,P(T,g)),T}function P(k,T){Je(()=>{T===void 0&&m(()=>k),w(T!==void 0?"errored":c?"ready":"unresolved"),p(T);for(const g of l.keys())g.decrement();l.clear()},!1)}function b(){const k=B1,T=u(),g=h();if(g!==void 0&&!r)throw g;return H&&!H.user&&k&&_r(()=>{v(),r&&(k.resolved||l.has(k)||(k.increment(),l.add(k)))}),T}function x(k=!0){if(k!==!1&&o)return;o=!1;const T=d?d():f;if(T==null||T===!1){F(r,ue(u));return}const g=a!==Fn?a:ue(()=>n(T,{value:u(),refetching:k}));return x1(g)?(r=g,"value"in g?(g.status==="success"?F(r,g.value,void 0,T):F(r,void 0,void 0,T),g):(o=!0,queueMicrotask(()=>o=!1),Je(()=>{w(c?"refreshing":"pending"),A()},!1),g.then(y=>F(g,y,void 0,T),y=>F(g,void 0,Xa(y),T)))):(F(r,g,void 0,T),g)}return Object.defineProperties(b,{state:{get:()=>D()},error:{get:()=>h()},loading:{get(){const k=D();return k==="pending"||k==="refreshing"}},latest:{get(){if(!c)return b();const k=h();if(k&&!r)throw k;return u()}}}),d?_r(()=>x(!1)):x(!1),[b,{refetch:x,mutate:m}]}function lm(s,e=Va,t){const f=new Map,n=bs(i=>{const r=s();for(const[a,o]of f.entries())if(e(a,r)!==e(a,i))for(const c of o.values())c.state=Re,c.pure?ae.push(c):qe.push(c);return r},void 0,!0,Re);return Ct(n),i=>{const r=H;if(r){let a;(a=f.get(i))?a.add(r):f.set(i,a=new Set([r])),jf(()=>{a.delete(r),!a.size&&f.delete(i)})}return e(i,n.value)}}function Rs(s){return Je(s,!1)}function ue(s){if(H===null)return s();const e=H;H=null;try{return s()}finally{H=e}}function _n(s,e,t){const f=Array.isArray(s);let n,i=t&&t.defer;return r=>{let a;if(f){a=Array(s.length);for(let c=0;c<s.length;c++)a[c]=s[c]()}else a=s();if(i)return i=!1,r;const o=ue(()=>e(a,n,r));return n=a,o}}function M1(s){Ms(()=>ue(s))}function jf(s){return j===null||(j.cleanups===null?j.cleanups=[s]:j.cleanups.push(s)),s}function Gs(){return H}function Ga(){return j}function qa(s,e){const t=j,f=H;j=s,H=null;try{return Je(e,!0)}catch(n){Ri(n)}finally{j=t,H=f}}function R1(s){const e=H,t=j;return Promise.resolve().then(()=>{H=e,j=t;let f;return Je(s,!1),H=j=null,f?f.done:void 0})}const[O1,um]=Ge(!1);function hm(){return[O1,R1]}function $a(s,e){const t=Symbol("context");return{id:t,Provider:V1(t),defaultValue:s}}function Gn(s){return j&&j.context&&j.context[s.id]!==void 0?j.context[s.id]:s.defaultValue}function N1(s){const e=Oe(s),t=Oe(()=>qn(e()));return t.toArray=()=>{const f=t();return Array.isArray(f)?f:f!=null?[f]:[]},t}let B1;function Ya(){if(this.sources&&this.state)if(this.state===Re)Ct(this);else{const s=ae;ae=null,Je(()=>Vf(this),!1),ae=s}if(H){const s=this.observers?this.observers.length:0;H.sources?(H.sources.push(this),H.sourceSlots.push(s)):(H.sources=[this],H.sourceSlots=[s]),this.observers?(this.observers.push(H),this.observerSlots.push(H.sources.length-1)):(this.observers=[H],this.observerSlots=[H.sources.length-1])}return this.value}function Ka(s,e,t){let f=s.value;return(!s.comparator||!s.comparator(f,e))&&(s.value=e,s.observers&&s.observers.length&&Je(()=>{for(let n=0;n<s.observers.length;n+=1){const i=s.observers[n],r=Pn&&Pn.running;r&&Pn.disposed.has(i),(r?!i.tState:!i.state)&&(i.pure?ae.push(i):qe.push(i),i.observers&&Qa(i)),r||(i.state=Re)}if(ae.length>1e6)throw ae=[],new Error},!1)),e}function Ct(s){if(!s.fn)return;ln(s);const e=dn;U1(s,s.value,e)}function U1(s,e,t){let f;const n=j,i=H;H=j=s;try{f=s.fn(e)}catch(r){return s.pure&&(s.state=Re,s.owned&&s.owned.forEach(ln),s.owned=null),s.updatedAt=t+1,Ri(r)}finally{H=i,j=n}(!s.updatedAt||s.updatedAt<=t)&&(s.updatedAt!=null&&"observers"in s?Ka(s,f):s.value=f,s.updatedAt=t)}function bs(s,e,t,f=Re,n){const i={fn:s,state:f,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:e,owner:j,context:j?j.context:null,pure:t};return j===null||j!==za&&(j.owned?j.owned.push(i):j.owned=[i]),i}function Wf(s){if(s.state===0)return;if(s.state===Uf)return Vf(s);if(s.suspense&&ue(s.suspense.inFallback))return s.suspense.effects.push(s);const e=[s];for(;(s=s.owner)&&(!s.updatedAt||s.updatedAt<dn);)s.state&&e.push(s);for(let t=e.length-1;t>=0;t--)if(s=e[t],s.state===Re)Ct(s);else if(s.state===Uf){const f=ae;ae=null,Je(()=>Vf(s,e[0]),!1),ae=f}}function Je(s,e){if(ae)return s();let t=!1;e||(ae=[]),qe?t=!0:qe=[],dn++;try{const f=s();return j1(t),f}catch(f){t||(qe=null),ae=null,Ri(f)}}function j1(s){if(ae&&(Ja(ae),ae=null),s)return;const e=qe;qe=null,e.length&&Je(()=>Ha(e),!1)}function Ja(s){for(let e=0;e<s.length;e++)Wf(s[e])}function W1(s){let e,t=0;for(e=0;e<s.length;e++){const f=s[e];f.user?s[t++]=f:Wf(f)}for(e=0;e<t;e++)Wf(s[e])}function Vf(s,e){s.state=0;for(let t=0;t<s.sources.length;t+=1){const f=s.sources[t];if(f.sources){const n=f.state;n===Re?f!==e&&(!f.updatedAt||f.updatedAt<dn)&&Wf(f):n===Uf&&Vf(f,e)}}}function Qa(s){for(let e=0;e<s.observers.length;e+=1){const t=s.observers[e];t.state||(t.state=Uf,t.pure?ae.push(t):qe.push(t),t.observers&&Qa(t))}}function ln(s){let e;if(s.sources)for(;s.sources.length;){const t=s.sources.pop(),f=s.sourceSlots.pop(),n=t.observers;if(n&&n.length){const i=n.pop(),r=t.observerSlots.pop();f<n.length&&(i.sourceSlots[r]=f,n[f]=i,t.observerSlots[f]=r)}}if(s.owned){for(e=s.owned.length-1;e>=0;e--)ln(s.owned[e]);s.owned=null}if(s.cleanups){for(e=s.cleanups.length-1;e>=0;e--)s.cleanups[e]();s.cleanups=null}s.state=0}function Xa(s){return s instanceof Error?s:new Error(typeof s=="string"?s:"Unknown error",{cause:s})}function Ri(s,e=j){const t=Xa(s);{console.error("solid error",t);return}}function qn(s){if(typeof s=="function"&&!s.length)return qn(s());if(Array.isArray(s)){const e=[];for(let t=0;t<s.length;t++){const f=qn(s[t]);Array.isArray(f)?e.push.apply(e,f):e.push(f)}return e}return s}function V1(s,e){return function(f){let n;return Tt(()=>n=ue(()=>(j.context={...j.context,[s]:f.value},N1(()=>f.children))),void 0),n}}const H1=Symbol("fallback");function Tr(s){for(let e=0;e<s.length;e++)s[e]()}function z1(s,e,t={}){let f=[],n=[],i=[],r=0,a=e.length>1?[]:null;return jf(()=>Tr(i)),()=>{let o=s()||[],c,d;return o[zs],ue(()=>{let u=o.length,m,h,p,v,A,D,w,F,P;if(u===0)r!==0&&(Tr(i),i=[],f=[],n=[],r=0,a&&(a=[])),t.fallback&&(f=[H1],n[0]=_t(b=>(i[0]=b,t.fallback())),r=1);else if(r===0){for(n=new Array(u),d=0;d<u;d++)f[d]=o[d],n[d]=_t(l);r=u}else{for(p=new Array(u),v=new Array(u),a&&(A=new Array(u)),D=0,w=Math.min(r,u);D<w&&f[D]===o[D];D++);for(w=r-1,F=u-1;w>=D&&F>=D&&f[w]===o[F];w--,F--)p[F]=n[w],v[F]=i[w],a&&(A[F]=a[w]);for(m=new Map,h=new Array(F+1),d=F;d>=D;d--)P=o[d],c=m.get(P),h[d]=c===void 0?-1:c,m.set(P,d);for(c=D;c<=w;c++)P=f[c],d=m.get(P),d!==void 0&&d!==-1?(p[d]=n[c],v[d]=i[c],a&&(A[d]=a[c]),d=h[d],m.set(P,d)):i[c]();for(d=D;d<u;d++)d in p?(n[d]=p[d],i[d]=v[d],a&&(a[d]=A[d],a[d](d))):n[d]=_t(l);n=n.slice(0,r=u),f=o.slice(0)}return n});function l(u){if(i[d]=u,a){const[m,h]=Ge(d);return a[d]=h,e(o[d],m)}return e(o[d])}}}function $n(s,e){return ue(()=>s(e||{}))}function lf(){return!0}const Yn={get(s,e,t){return e===re?t:s.get(e)},has(s,e){return e===re?!0:s.has(e)},set:lf,deleteProperty:lf,getOwnPropertyDescriptor(s,e){return{configurable:!0,enumerable:!0,get(){return s.get(e)},set:lf,deleteProperty:lf}},ownKeys(s){return s.keys()}};function Tn(s){return(s=typeof s=="function"?s():s)?s:{}}function G1(){for(let s=0,e=this.length;s<e;++s){const t=this[s]();if(t!==void 0)return t}}function q1(...s){let e=!1;for(let r=0;r<s.length;r++){const a=s[r];e=e||!!a&&re in a,s[r]=typeof a=="function"?(e=!0,Oe(a)):a}if(e)return new Proxy({get(r){for(let a=s.length-1;a>=0;a--){const o=Tn(s[a])[r];if(o!==void 0)return o}},has(r){for(let a=s.length-1;a>=0;a--)if(r in Tn(s[a]))return!0;return!1},keys(){const r=[];for(let a=0;a<s.length;a++)r.push(...Object.keys(Tn(s[a])));return[...new Set(r)]}},Yn);const t={},f=Object.create(null);for(let r=s.length-1;r>=0;r--){const a=s[r];if(!a)continue;const o=Object.getOwnPropertyNames(a);for(let c=o.length-1;c>=0;c--){const d=o[c];if(d==="__proto__"||d==="constructor")continue;const l=Object.getOwnPropertyDescriptor(a,d);if(!f[d])f[d]=l.get?{enumerable:!0,configurable:!0,get:G1.bind(t[d]=[l.get.bind(a)])}:l.value!==void 0?l:void 0;else{const u=t[d];u&&(l.get?u.push(l.get.bind(a)):l.value!==void 0&&u.push(()=>l.value))}}}const n={},i=Object.keys(f);for(let r=i.length-1;r>=0;r--){const a=i[r],o=f[a];o&&o.get?Object.defineProperty(n,a,o):n[a]=o?o.value:void 0}return n}function Za(s,...e){if(re in s){const n=new Set(e.length>1?e.flat():e[0]),i=e.map(r=>new Proxy({get(a){return r.includes(a)?s[a]:void 0},has(a){return r.includes(a)&&a in s},keys(){return r.filter(a=>a in s)}},Yn));return i.push(new Proxy({get(r){return n.has(r)?void 0:s[r]},has(r){return n.has(r)?!1:r in s},keys(){return Object.keys(s).filter(r=>!n.has(r))}},Yn)),i}const t={},f=e.map(()=>({}));for(const n of Object.getOwnPropertyNames(s)){const i=Object.getOwnPropertyDescriptor(s,n),r=!i.get&&!i.set&&i.enumerable&&i.writable&&i.configurable;let a=!1,o=0;for(const c of e)c.includes(n)&&(a=!0,r?f[o][n]=i.value:Object.defineProperty(f[o],n,i)),++o;a||(r?t[n]=i.value:Object.defineProperty(t,n,i))}return[...f,t]}const $1=s=>`Stale read from <${s}>.`;function mm(s){const e="fallback"in s&&{fallback:()=>s.fallback};return Oe(z1(()=>s.each,s.children,e||void 0))}function gm(s){const e=s.keyed,t=Oe(()=>s.when,void 0,{equals:(f,n)=>e?f===n:!f==!n});return Oe(()=>{const f=t();if(f){const n=s.children;return typeof n=="function"&&n.length>0?ue(()=>n(e?f:()=>{if(!ue(t))throw $1("Show");return s.when})):n}return s.fallback},void 0,void 0)}const Oi=()=>({name:"tweb",version:7,stores:[{name:"session"},{name:"stickerSets"},{name:"users"},{name:"chats"},{name:"dialogs"},{name:"messages"}]}),eo=()=>({name:"tweb-common",version:8,stores:[{name:"session"},{name:"localStorage",encryptedName:"localStorage__encrypted"}]}),Ni=s=>({name:`tweb-account-${s}`,version:8,stores:[{name:"session",encryptedName:"session__encrypted"},{name:"stickerSets",encryptedName:"stickerSets__encrypted"},{name:"users",encryptedName:"users__encrypted"},{name:"chats",encryptedName:"chats__encrypted"},{name:"dialogs",encryptedName:"dialogs__encrypted"},{name:"messages",encryptedName:"messages__encrypted"}]});L.getDatabaseState=Ni;const Y1={isFulfilled:!1,isRejected:!1,notify:()=>{},notifyAll:function(...s){this.lastNotify=s,this.listeners?.forEach(e=>e(...s))},addNotifyListener:function(s){this.lastNotify&&s(...this.lastNotify),(this.listeners??(this.listeners=[])).push(s)},resolve:function(s){this.isFulfilled||this.isRejected||(this.isFulfilled=!0,this._resolve(s),this.onFinish())},reject:function(...s){this.isRejected||this.isFulfilled||(this.isRejected=!0,this._reject(...s),this.onFinish())},onFinish:function(){this.notify=this.notifyAll=this.lastNotify=null,this.listeners&&(this.listeners.length=0),this.cancel&&(this.cancel=ye)}};function G(){let s,e;const t=new Promise((f,n)=>{s=f,e=n});return Object.assign(t,Y1),t._resolve=s,t._reject=e,t}function pm(s,e){s.then(e.resolve.bind(e),e.reject.bind(e))}self.deferredPromise=G;function wf(s,e,t=!1){let f,n,i;const r=(...a)=>{if(f=!0,i=a,n)return;t&&(f=!1,e(...i));const o=n=Math.random();s(()=>{n===o&&(r.clear(),f&&(f=!1,e(...i)))})};return r.clear=()=>{n=void 0},r}const Ws=class Ws{constructor(e){Hn(this,e),ve.test&&(this.name+="_test"),this.storageIsAvailable=!0,this.log=X(["IDB",e.name].join("-")),this.log("constructor"),this.openDatabase(!0),Ws.INSTANCES.push(this)}isAvailable(){return this.storageIsAvailable}openDatabase(e=!1){if(this.openDbPromise&&!e)return this.openDbPromise;const t=(r,a)=>{const o=Array.from(r.indexNames);for(const c of o)r.deleteIndex(c);if(a.indexes?.length)for(const c of a.indexes)r.indexNames.contains(c.indexName)||r.createIndex(c.indexName,c.keyPath,c.objectParameters)},f=(r,a)=>{const o=r.createObjectStore(a.name);t(o,a)};try{var n=indexedDB.open(this.name,this.version);if(!n)return Promise.reject()}catch(r){return this.log.error("error opening db",r.message),this.storageIsAvailable=!1,Promise.reject(r)}let i=!1;return setTimeout(()=>{i||n.onerror(Ee("IDB_CREATE_TIMEOUT"))},3e3),this.openDbPromise=new Promise((r,a)=>{n.onsuccess=o=>{i=!0;const c=n.result;let d=!1;this.log("Opened"),c.onerror=l=>{this.storageIsAvailable=!1,this.log.error("Error creating/accessing IndexedDB database",l),a(l)},c.onclose=l=>{this.log.error("closed:",l),!d&&this.openDatabase()},c.onabort=l=>{this.log.error("abort:",l);const u=l.target;this.openDatabase(d=!0),u.onerror&&u.onerror(l),c.close()},c.onversionchange=l=>{this.log.error("onversionchange, lol?")},r(this.db=c)},n.onerror=o=>{i=!0,this.storageIsAvailable=!1,this.log.error("Error creating/accessing IndexedDB database",o),a(o)},n.onupgradeneeded=o=>{i=!0,this.log.warn("performing idb upgrade from",o.oldVersion,"to",o.newVersion);const c=o.target,d=c.result;this.stores.forEach(l=>{if(!d.objectStoreNames.contains(l.name))f(d,l);else{const m=c.transaction.objectStore(l.name);t(m,l)}l.encryptedName&&!d.objectStoreNames.contains(l.encryptedName)&&d.createObjectStore(l.encryptedName)})}}).then(r=>this.openDbPromise=r)}async closeDatabase(){this.db&&(this.db.onclose=()=>{},this.db.close())}static create(e){return this.INSTANCES.find(t=>t.name===e.name)??new Ws(e)}static closeDatabases(e){this.INSTANCES.forEach(t=>{e&&e===t||t.closeDatabase()})}static deleteDatabaseByName(e){return new Promise((t,f)=>{this.INSTANCES.forEach(i=>{if(i.name===e)return i.closeDatabase()});const n=indexedDB.deleteDatabase(e);n.onerror=()=>f(),n.onsuccess=()=>t()})}};Ws.INSTANCES=[];let Hf=Ws;class Sf{constructor(e,t){this.storeName=t,this.log=X(["IDB",e.name,t].join("-")),this.idb=Hf.create(e)}close(){return this.idb.closeDatabase()}delete(e,t){const f=Array.isArray(e);return f||(e=[].concat(e)),this.getObjectStore("readwrite",n=>{const i=e.map(r=>n.delete(r));return f?i:i[0]},"",t)}clear(e){return this.getObjectStore("readwrite",t=>t.clear(),"",e)}save(e,t,f){const n=Array.isArray(e);return n||(e=[].concat(e),t=[].concat(t)),this.getObjectStore("readwrite",i=>{const r=e.map((a,o)=>i.put(t[o],a));return n?r:r[0]},"",f)}get(e,t){const f=Array.isArray(e);if(f){if(!e.length)return Promise.resolve([])}else{if(!e)return;e=[].concat(e)}return this.getObjectStore("readonly",n=>{const i=e.map(r=>n.get(r));return f?i:i[0]},"",t)}async getObjectStore(e,t,f,n=this.storeName){let i;f&&(i=performance.now(),this.log(f+": start"));const r=setTimeout(()=>{this.log.error("transaction not finished",u,f)},1e4),a=this.idb.openDatabase(),o=a instanceof Promise?await a:a;let c,d;const l=new Promise((b,x)=>[c,d]=[b,x]),u=o.transaction([n],e,{durability:"relaxed"}),m=()=>{clearTimeout(r),d(u.error)},h=()=>{clearTimeout(r),f&&this.log(f+": end",performance.now()-i);const b=D.map(x=>x.result);c(A?b:b[0]),f&&this.log(f+": resolved",A?b:b[0])};u.onerror=m;const p=e==="readwrite";p&&(u.oncomplete=()=>h());const v=t(u.objectStore(n),h,m),A=Array.isArray(v),D=A?v:[].concat(v);if(p)return l;const w=D.length;let F=w;const P=()=>{u.error||--F||h()};for(let b=0;b<w;++b){const x=D[b];x.onerror=m,x.onsuccess=P}return l}getAll(e){return this.getObjectStore("readonly",t=>t.getAll(),"",e)}getAllEntries(e){const t=[];return new Promise((f,n)=>{this.getObjectStore("readonly",(i,r,a)=>{const o=i.openCursor();return o.onsuccess=c=>{const d=c.target.result;d?(t.push([d.key,d.value]),d.continue()):(r(),f(t))},o.onerror=a,[]},"",e).catch(n)})}}class un{constructor(){throw new Error("Cannot instantiate a static utility class")}}const yr=class yr extends un{static resolveDeferred(e){this.value=e,this.deferred?.resolve(),this.deferred=void 0}static async isUsingPasscode(){if(this.deferred&&await this.deferred,typeof this.value!="boolean")throw new Error("Is using passcode is not boolean WTF?");return this.value}static resetDeferred(){this.value=void 0,this.deferred=G()}};yr.deferred=G();let Le=yr;function Lt(s){return Array.isArray(s)?s:[s]}function to(s){return s instanceof Uint8Array?s:typeof s=="string"?new TextEncoder().encode(s):new Uint8Array(s)}function K1(s,e="auto"){if(s===0)return"0 B";const t=e==="auto",f=1024,n=Math.floor(Math.log(s)/Math.log(f)),i=e==="auto"?Math.max(0,n-1):e,r=Math.max(0,i),a=["B","KB","MB","GB"],o=(s/Math.pow(f,n)).toFixed(r);return[a[n],t?o:parseFloat(o)].reverse().join(" ")}function J1(s,e){let t,f,n=!1;function i(){f=self.setTimeout(()=>{n=!1,s(...t)?.then(()=>{f=void 0,n&&i()})},e)}const r=(...a)=>{t=a,n=!0,!f&&i()};return r.clear=()=>{self.clearTimeout(f),t=void 0,f=void 0,n=!1},r}class Q1 extends Mi{constructor(){super("CRYPTO"),this.lastIndex=-1}invokeCryptoNew({method:e,args:t,transfer:f}){const n={method:e,args:t},i=this.listeners.invoke;if(i?.size){let a=i.values().next().value.callback(n);return!nt&&!(a instanceof Promise)&&(a=Promise.resolve(a)),a}const r=e==="aes-encrypt"||e==="aes-decrypt"?this.lastIndex=(this.lastIndex+1)%this.sendPorts.length:0;return this.invoke("invoke",n,void 0,this.sendPorts[r],f)}invokeCrypto(e,...t){return this.invokeCryptoNew({method:e,args:t})}sendToOnePort(e){this.invokeVoid("port",void 0,this.sendPorts[0],[e])}}const it=new Q1;L&&(L.cryptoMessagePort=it);const tn=class tn extends un{static async get(){return this.deferred&&await this.deferred,this.key}static async getAsBase64(){const e=await this.get();if(!e)return null;const t=await crypto.subtle.exportKey("raw",e);return btoa(String.fromCharCode(...new Uint8Array(t)))}static save(e){this.key=e,this.deferred?.resolve(),this.deferred=void 0}static resetDeferred(){this.key=null,this.deferred=G()}};tn.key=null,tn.deferred=G();let ct=tn;const _e=class _e{constructor(e,t){this.db=e,this.encryptedStoreName=t,this.saveToIDB=async()=>{await this.waitToLoad();const f=performance.now(),n=await _e.encrypt(this.data),i=n.length,r=performance.now();await this.storage.save(_e.STORAGE_KEY,n);const a=performance.now();if(pe&&nt){const o=d=>d.toFixed(2);Mt.getInstance().invokeVoid("log",`[${this.db.name}-${this.encryptedStoreName}] Encrypted and saved ${i} bytes (${K1(i,2)}) of data in ${o(a-f)}ms -- (encrypted in ${o(r-f)}ms, saved in ${o(a-r)}ms)`)}},this.saveToIDBThrottled=J1(()=>this.saveToIDB(),_e.STORAGE_THROTTLE_TIME_MS),this.storage=new Sf(e,t),this.log=X(`encrypted-storage-${t}`)}static getInstance(e,t){const f=this.getStorageKey(e.name,t);if(this.instances.has(f))return this.instances.get(f);const n=new _e(e,t);return this.instances.set(f,n),n}static getStorageKey(e,t){return`${e}**${t}`}static async encrypt(e){if(!Object.keys(e).length)return null;const t=await ct.get(),f=to(JSON.stringify(e));return await it.invokeCryptoNew({method:"aes-local-encrypt",args:[{key:t,data:f}],transfer:[f.buffer]})}static async decrypt(e){const t=await ct.get(),f=await it.invokeCryptoNew({method:"aes-local-decrypt",args:[{key:t,encryptedData:e}],transfer:[e.buffer]}),n=new TextDecoder().decode(f);return JSON.parse(n)}loadEncrypted(){(async()=>(this.loadingDataPromise=this.loadFromIDB(),await this.loadingDataPromise,this.loadingDataPromise=void 0))()}async loadDecrypted(e){this.log("loading decrypted",e),this.data=e,await this.saveToIDB()}waitToLoad(){if(this.loadingDataPromise)return this.loadingDataPromise}async loadFromIDB(){try{const e=await this.storage.get(_e.STORAGE_KEY);if(e===null)throw null;if(!(e instanceof Uint8Array))throw new Error("Stored data in encrypted store is not a Uint8Array");const t=await _e.decrypt(e);this.data=t}catch(e){e&&this.log(e),this.data={}}return this.data}async reEncrypt(){await this.saveToIDB()}async save(e,t){await this.waitToLoad();const f=Lt(e),n=Lt(t);f.forEach((i,r)=>{this.data[i]=n[r]}),this.saveToIDBThrottled()}async get(e){return await this.waitToLoad(),e.map(t=>this.data[t])}async getAllEntries(){return await this.waitToLoad(),Object.entries(this.data)}async getAll(){return await this.waitToLoad(),Object.values(this.data)}async delete(e){await this.waitToLoad(),Lt(e).forEach(f=>{delete this.data[f]}),this.saveToIDBThrottled()}async clear(){this.data={},await this.storage.clear()}};_e.STORAGE_KEY="data",_e.STORAGE_THROTTLE_TIME_MS=0,_e.instances=new Map;let Te=_e;function X1(){}const is=class is{constructor(e,t){this.db=e,this.storeName=t,this._save=async()=>{const n=this.saveDeferred;this.saveDeferred=G();const i=this.keysToSet;if(i.size){const r=Array.from(i.values());i.clear();const a=r.map(o=>this.cache[o]);try{(await this.getStorage()).save(r,a)}catch(o){this.log.error("set error",o,r,a)}}n.resolve(),i.size&&this.saveThrottled()},this._delete=async()=>{const n=this.deleteDeferred;this.deleteDeferred=G();const i=this.keysToDelete;if(i.size){const r=Array.from(i.values());i.clear();try{(await this.getStorage()).delete(r)}catch(a){this.log.error("delete error",a,r)}}n.resolve(),i.size&&this.deleteThrottled()},this._get=async()=>{const n=Array.from(this.getPromises.keys());(await this.getStorage()).get(n).then(r=>{for(let a=0,o=n.length;a<o;++a){const c=n[a],d=this.getPromises.get(c);d&&(d.resolve(this.cache[c]=r[a]),this.getPromises.delete(c))}},r=>{new Set(["NO_ENTRY_FOUND","STORAGE_OFFLINE"]).has(r.type)||(this.useStorage=!1,this.log.error("get error",r,n,this.storeName));for(let o=0,c=n.length;o<c;++o){const d=n[o],l=this.getPromises.get(d);l&&(l.resolve(void 0),this.getPromises.delete(d))}}).finally(()=>{this.getPromises.size&&this.getThrottled()})},this.log=X(`AS-${e.name}-${t}`),this.cache={},this.getPromises=new Map,this.keysToSet=new Set,this.saveDeferred=G(),this.keysToDelete=new Set,this.deleteDeferred=G();const f=e.stores.find(n=>n.name===t);this.isEncryptable=!!f?.encryptedName,this.encryptedStoreName=f?.encryptedName,is.STORAGES.length?this.useStorage=is.STORAGES[0].useStorage:this.useStorage=!0,this.savingFreezed=!1,is.STORAGES.push(this),this.saveThrottled=wf(queueMicrotask,this._save,!1),this.deleteThrottled=wf(queueMicrotask,this._delete,!1),this.getThrottled=wf(queueMicrotask,this._get,!1)}async getStorage(){if(this.storage)return this.storage;const e=this.isEncryptable?await Le.isUsingPasscode():!1,t=this.storage=e?Te.getInstance(this.db,this.encryptedStoreName):new Sf(this.db,this.storeName);return t instanceof Te&&t.loadEncrypted(),t}isAvailable(){return this.useStorage}getCache(){return this.cache}getFromCache(e){return this.cache[e]}setToCache(e,t){return this.cache[e]=t}async get(e,t=!0){if(this.cache.hasOwnProperty(e)&&t)return this.getFromCache(e);if(this.useStorage){const f=this.getPromises.get(e);if(f)return f;const n=G();return this.getPromises.set(e,n),this.getThrottled(),n}}async getAll(){return(await this.getStorage()).getAll().catch(()=>[])}async getAllEntries(){return(await this.getStorage()).getAllEntries().catch(()=>[])}warnAboutSaving(){}set(e,t=!1){const f=this.useStorage&&!t&&!this.savingFreezed;this.warnAboutSaving();let n=!1;for(const i in e)if(e.hasOwnProperty(i)){const r=e[i];this.setToCache(i,r),f&&(this.keysToSet.add(i),this.keysToDelete.delete(i),this.saveThrottled()),n=!0}return f&&n?this.saveDeferred:Promise.resolve()}delete(e,t=!1){return this.warnAboutSaving(),e=""+e,t||delete this.cache[e],this.useStorage&&(this.keysToSet.delete(e),this.keysToDelete.add(e),this.deleteThrottled()),this.useStorage?this.deleteDeferred:Promise.resolve()}async clear(e=!1){if(!e)for(const t in this.cache)delete this.cache[t];try{const t=await this.getStorage();await t.clear(),t instanceof Te?await new Sf(this.db,this.storeName).clear():this.isEncryptable&&await Te.getInstance(this.db,this.encryptedStoreName).clear()}catch{}}async unfreezeAsync(e){const t=this.savingFreezed;this.savingFreezed=!1;try{await e()}catch(f){console.error("unfreezeAsync callback error:",f)}this.savingFreezed=t}static toggleStorage(e,t){return Promise.all(this.STORAGES.map(f=>{if(f.useStorage=e,!(!nt||!t))if(!e)f.keysToSet.clear(),f.keysToDelete.clear(),f.getPromises.forEach(n=>n.resolve(void 0)),f.getPromises.clear();else return f.set(f.cache)})).catch(X1)}static freezeSaving(e,t){this.STORAGES.forEach(f=>f.savingFreezed=!0);try{e()}catch(f){console.error("freezeSaving callback error:",f)}this.STORAGES.forEach(f=>f.savingFreezed=!1)}static async freezeSavingAsync(e){this.STORAGES.forEach(t=>t.savingFreezed=!0);try{await e()}catch(t){console.error("freezeSavingAsync callback error:",t)}this.STORAGES.forEach(t=>t.savingFreezed=!1)}async toggleEncrypted(e){if(!this.isEncryptable)return;const t=this.storage instanceof Te;if(e===t)return;const f=await this.getAllEntries();if(await this.storage.clear(),e){const n=this.storage=Te.getInstance(this.db,this.encryptedStoreName),i=Object.fromEntries(f);await n.loadDecrypted(i)}else{const n=this.storage=new Sf(this.db,this.storeName),i=f.map(a=>a[0]),r=f.map(a=>a[1]);await n.save(i,r)}}async reEncrypt(){this.storage instanceof Te&&await this.storage.reEncrypt()}static async toggleEncryptedForAll(e){this.freezeSavingAsync(async()=>{await Promise.all(this.STORAGES.map(t=>t.toggleEncrypted(e)))})}static async reEncryptEncrypted(){this.freezeSavingAsync(async()=>{await Promise.all(this.STORAGES.map(e=>e.reEncrypt()))})}};is.STORAGES=[];let Rt=is;L&&(L.AppStorage=Rt);class Z1 extends Rt{constructor(){super(eo(),"session")}}const Ot=new Z1;Ot.get("settings",!1).then(s=>{Le.resolveDeferred(s?.passcode?.enabled||!1)});L.commonStateStorage=Ot;const bm={messageActionChatCreate:"ActionCreateGroup",messageActionChatCreateYou:"ActionYouCreateGroup",messageActionChatEditTitle:"ActionChangedTitle",messageActionChatEditPhoto:"ActionChangedPhoto",messageActionChatEditVideo:"ActionChangedVideo",messageActionChatDeletePhoto:"ActionRemovedPhoto",messageActionChatReturn:"ActionAddUserSelf",messageActionChatReturnYou:"ActionAddUserSelfYou",messageActionChatJoined:"ActionAddUserSelfMega",messageActionChatJoinedYou:"ChannelMegaJoined",messageActionChatAddUser:"ActionAddUser",messageActionChatAddUsers:"ActionAddUser",messageActionChatLeave:"ActionLeftUser",messageActionChatLeaveYou:"YouLeft",messageActionChatDeleteUser:"ActionKickUser",messageActionChatJoinedByLink:"ActionInviteUser",messageActionPinMessage:"Chat.Service.Group.UpdatedPinnedMessage",messageActionContactSignUp:"Chat.Service.PeerJoinedTelegram",messageActionChannelCreate:"ActionCreateChannel",messageActionChannelEditTitle:"Chat.Service.Channel.UpdatedTitle",messageActionChannelEditPhoto:"Chat.Service.Channel.UpdatedPhoto",messageActionChannelEditVideo:"Chat.Service.Channel.UpdatedVideo",messageActionChannelDeletePhoto:"Chat.Service.Channel.RemovedPhoto",messageActionHistoryClear:"HistoryCleared",messageActionDiscussionStarted:"DiscussionStarted",messageActionChannelJoined:"ChannelJoined",messageActionChannelMigrateFrom:"ActionMigrateFromGroup","messageActionPhoneCall.video_in_ok":"ChatList.Service.VideoCall.incoming","messageActionPhoneCall.video_out_ok":"ChatList.Service.VideoCall.outgoing","messageActionPhoneCall.video_missed":"ChatList.Service.VideoCall.Missed","messageActionPhoneCall.video_cancelled":"ChatList.Service.VideoCall.Cancelled","messageActionPhoneCall.in_ok":"ChatList.Service.Call.incoming","messageActionPhoneCall.out_ok":"ChatList.Service.Call.outgoing","messageActionPhoneCall.missed":"ChatList.Service.Call.Missed","messageActionPhoneCall.cancelled":"ChatList.Service.Call.Cancelled","messageActionGroupCall.started":"Chat.Service.VoiceChatStarted.Channel","messageActionGroupCall.started_by":"Chat.Service.VoiceChatStarted","messageActionGroupCall.started_byYou":"Chat.Service.VoiceChatStartedYou","messageActionGroupCall.ended":"Chat.Service.VoiceChatFinished.Channel","messageActionGroupCall.ended_by":"Chat.Service.VoiceChatFinished","messageActionGroupCall.ended_byYou":"Chat.Service.VoiceChatFinishedYou",messageActionBotAllowed:"Chat.Service.BotPermissionAllowed"},ym=xe?"Message.Unsupported.Mobile":"Message.Unsupported.Desktop";var Dt;(s=>{s.strings=new Map,s.countriesList=[];let e,t;s.requestedServerLanguage=!1,s.isRTL=!1,[s.langCodeNormalized,s.setLangCodeNormalized]=Ge();function f(g){s.isRTL=g}s.setRTL=f;function n(g){s.lastRequestedLangCode=g,s.lastRequestedNormalizedLangCode=g.split("-")[0],(0,s.setLangCodeNormalized)(s.lastRequestedNormalizedLangCode.split("-")[0])}function i(){return t||(t=Promise.all([Ot.get("langPack"),s.polyfillPromise]).then(([g])=>g?(s.lastRequestedLangCode||n(g.lang_code),h(g),g):o()).finally(()=>{t=void 0}))}s.getCacheLangPack=i;function r(){if(s.timeFormat==="h12")try{const g=P({hour:"numeric",minute:"numeric",hour12:!0}),y=new Date;y.setHours(0);const E=g.format(y);s.amPmCache.am=E.split(/\s/)[1],y.setHours(12);const S=g.format(y);s.amPmCache.pm=S.split(/\s/)[1]}catch(g){console.error("cannot get am/pm",g),s.amPmCache={am:"AM",pm:"PM"}}}function a(g,y=!!s.timeFormat&&s.timeFormat!==g){s.timeFormat=g,r(),y&&(F.clear(),Array.from(document.querySelectorAll(".i18n")).forEach(S=>{const _=s.weakMap.get(S);_ instanceof b&&_.update()}))}s.setTimeFormat=a;function o(){const g=fe.langPackCode;return n(g),Promise.all([se(()=>import("./lang-Bg1kXhNt.js"),[],import.meta.url),se(()=>import("./langSign-BaS5hfvh.js"),[],import.meta.url),se(()=>import("./countries-CzeCvYH8.js"),[],import.meta.url)]).then(([y,E,S])=>{const _=[];l(y.default,_),l(E.default,_);const I={_:"langPackDifference",from_version:0,lang_code:g,strings:_,version:0,local:!0,countries:S.default};return m(I)})}s.loadLocalLangPack=o;function c(g,y){y=!0,s.requestedServerLanguage=!0;const E=C.managers;return Promise.all([E.apiManager.invokeApiCacheable("langpack.getLangPack",{lang_code:g,lang_pack:y?"web":fe.langPack}),!y&&E.apiManager.invokeApiCacheable("langpack.getLangPack",{lang_code:g,lang_pack:"android"}),se(()=>import("./lang-Bg1kXhNt.js"),[],import.meta.url),se(()=>import("./langSign-BaS5hfvh.js"),[],import.meta.url),E.apiManager.invokeApiCacheable("help.getCountriesList",{lang_code:g,hash:0}),s.polyfillPromise])}s.loadLangPack=c;function d(g,y){return C.managers.apiManager.invokeApi("langpack.getStrings",{lang_pack:fe.langPack,lang_code:g,keys:y})}s.getStrings=d;function l(g,y=[]){for(const E in g){const S=g[E];typeof S=="string"?y.push({_:"langPackString",key:E,value:S}):y.push({_:"langPackStringPluralized",key:E,...S})}return y}s.formatLocalStrings=l;function u(g,y){return n(g),c(g,y).then(([E,S,_,I,N,B])=>{let Y=[];return[_,I].forEach(O=>{l(O.default,Y)}),Y=Y.concat(...[E.strings,S.strings].filter(Boolean)),E.strings=Y,E.countries=N,m(E)})}s.getLangPack=u;function m(g){return g.appVersion=fe.langPackVersion,Ot.set({langPack:g}).then(()=>(h(g),g))}s.saveLangPack=m,s.polyfillPromise=function(){return typeof Intl<"u"&&typeof Intl.PluralRules<"u"?Promise.resolve():se(()=>import("./pluralPolyfill-B0qpVVRH.js"),[],import.meta.url).then(y=>{window.Intl=Object.assign(typeof Intl<"u"?Intl:{},y.default)})}();function h(g){const y=s.lastRequestedLangCode;if(g.lang_code!==y)return;try{e=new Intl.PluralRules(s.lastRequestedNormalizedLangCode)}catch(S){console.error("pluralRules error",S),e=new Intl.PluralRules(s.lastRequestedNormalizedLangCode.split("-",1)[0])}try{e=new Intl.PluralRules(g.lang_code)}catch(S){console.error("pluralRules error",S),e=new Intl.PluralRules(g.lang_code.split("-",1)[0])}s.strings.clear();for(const S of g.strings)s.strings.set(S.key,S);g.countries&&(s.countriesList.length=0,s.countriesList.push(...g.countries.countries),g.countries.countries.forEach(S=>{if(S.name){const _=S.default_name;s.strings.set(_,{_:"langPackString",key:_,value:S.name})}})),s.lastAppliedLangCode!==y&&(s.lastAppliedLangCode&&C.myId&&(C.managers.appReactionsManager.resetAvailableReactions(),C.managers.appUsersManager.indexMyself(),C.managers.dialogsStorage.indexMyDialog()),s.lastAppliedLangCode=y,F.clear(),r(),C.dispatchEvent("language_change",y)),Array.from(document.querySelectorAll(".i18n")).forEach(S=>{const _=s.weakMap.get(S);_&&_.update()})}s.applyLangPack=h;function p(g,y,E,S){const _=y[S===void 0?E.i++:S];Array.isArray(_)?g.push(..._):g.push(_)}function v(g,y,E){if(!E){E={i:0};const N=g.match(/(%|un)\d+/g);N?.length&&(E.i=Math.max(...N.map(B=>+B.replace(/\D/g,""))))}const S=[],_=/(\*\*|__)(.+?)\1|(\n)|(\[.+?\]\(.*?\))|un\d|%\d\$.|%\S/g;let I=0;return g.replace(_,(N,B,Y,O,ne,ce,lt)=>{if(ce>I&&S.push(lt.slice(I,ce)),B){let de;switch(B){case"**":{de=document.createElement("b");break}case"__":{de=document.createElement("i");break}}de.append(...v(Y,y,E)),S.push(de)}else if(O)S.push(document.createElement("br"));else if(ne){const de=ne.lastIndexOf("]"),Es=ne.slice(1,de),jt=ne.slice(de+2,ne.length-1);let K;if(jt&&Ua(jt)){K=document.createElement("a");const Ue=on(jt);K.href=Ue.url,Ue.onclick&&K.setAttribute("onclick",Ue.onclick+"(this)"),Df(K)}else K=y[E.i++],K instanceof DocumentFragment&&(K=K.firstChild),typeof K!="string"&&(K.textContent="");const vs=v(Es,y,E);typeof K=="string"?S.push(...vs):(K.append(...vs),S.push(K))}else if(y){const de=N.replace(/\D/g,"");p(S,y,E,!de||Number.isNaN(+de)?void 0:Math.min(y.length-1,+de-1))}return I=ce+N.length,""}),I!==g.length&&S.push(g.slice(I)),S}s.superFormatter=v;function A(g,y=!1,E){const S=s.strings.get(g);let _;if(S)if(S._==="langPackStringPluralized"&&E?.length){let N=E[0];typeof N=="string"&&(N=+N.replace(/\D/g,""));const B=e.select(N);_=S[B+"_value"]||S.other_value}else S._==="langPackString"?_=S.value:_=g;else _=g;const I=v(_,E);return y?I.map(N=>N instanceof Node?N.textContent:N).join(""):I}s.format=A,s.weakMap=new WeakMap;class D{constructor(y){this.element=y?.element||document.createElement("span"),this.element.classList.add("i18n"),this.property=y?.property,s.weakMap.set(this.element,this)}}class w extends D{constructor(y={}){super({...y,property:y.property??"innerHTML"}),y?.key&&this.update(y)}update(y){if(Hn(this,y),!this.key){this.element.replaceChildren();return}if(this.property==="innerHTML")this.element.replaceChildren(...A(this.key,!1,this.args)),this.args?.length&&this.element.normalize();else{const E=this.element[this.property],S=A(this.key,!0,this.args);E===void 0?this.element.dataset[this.property]=S:this.element[this.property]=S}}compareAndUpdateBool(y){return this.key===y.key&&Of(this.args,y.args)?!1:(this.update(y),!0)}compareAndUpdate(y){if(!(this.key===y.key&&Of(this.args,y.args)))return this.update(y)}}s.IntlElement=w;const F=new Map;function P(g={}){const y=JSON.stringify(g);let E=F.get(y);return E||(E=new Intl.DateTimeFormat(s.lastRequestedNormalizedLangCode+"-u-hc-"+s.timeFormat,g),F.set(y,E)),E}s.getDateTimeFormat=P,s.amPmCache={am:"AM",pm:"PM"};class b extends D{constructor(y){super({...y,property:y.property??"textContent"}),cn(this.element),y?.date&&this.update(y)}update(y){Hn(this,y);let E;if(this.options.hour&&this.options.minute&&Object.keys(this.options).length===2){const S=this.date.getHours();E=("0"+(s.timeFormat==="h12"?S%12||12:S)).slice(-2)+":"+("0"+this.date.getMinutes()).slice(-2),s.timeFormat==="h12"&&(E+=" "+(S<12?s.amPmCache.am:s.amPmCache.pm))}else{const S=P(this.options);E=an(S.format(this.date))}this.element[this.property]=E}}s.IntlDateElement=b;function x(g,y){return new w({key:g,args:y}).element}s.i18n=x;function k(g){return new w(g).element}s.i18n_=k;function T(g,y,E,S){return new w({element:g,key:y,args:E,property:S}).element}s._i18n=T})(Dt||(Dt={}));const Q=Dt,De=Dt.i18n,Em=Dt.i18n_,so=Dt._i18n;function ed(s,e){const t=s.slice(0,1);for(let f=1;f<s.length;++f){const n=s.length-1===f;t.push(typeof e=="function"?e(n):e),t.push(s[f])}return t}function vm(s,e=!0,t){const f=ed(s,n=>{const i=n&&e?"AutoDownloadSettings.LastDelimeter":"AutoDownloadSettings.Delimeter";return t?Dt.format(i,!0):De(i)});return t?f.join(""):f}L&&(L.I18n=Dt);function td(s){return+s<0}function sd(s){return+s>=0}String.prototype.toUserId=function(){return(+this).toUserId()};String.prototype.toChatId=function(){return(+this).toChatId()};String.prototype.toPeerId=function(s){return(+this).toPeerId(s)};String.prototype.isPeerId=function(){return/^[\d-]/.test(this.toString())};Number.prototype.toUserId=function(){return+this};Number.prototype.toChatId=function(){return Math.abs(this)};Number.prototype.toPeerId=function(s){return s===void 0?+this:s?-Math.abs(this):+this};Number.prototype.isPeerId=function(){return!0};[["isUser",sd],["isAnyChat",td]].forEach(s=>{const e=Array.isArray(s)?s[0]:s,t=Array.isArray(s)?s[1]:s;String.prototype[e]=function(){return t.call(null,this.toString())},Number.prototype[e]=function(){return t.call(null,+this)}});function fd(...s){const e=s.reduce((n,i)=>n+(i.byteLength||i.length),0),t=new Uint8Array(e);let f=0;return s.forEach(n=>{t.set(n instanceof ArrayBuffer?new Uint8Array(n):n,f),f+=n.byteLength||n.length}),t}Uint8Array.prototype.concat=function(...s){return fd(this,...s)};Uint8Array.prototype.toJSON=function(){return[...this]};Promise.prototype.finally=Promise.prototype.finally||function(s){const e=t=>Promise.resolve(s()).then(t);return this.then(t=>e(()=>t),t=>e(()=>Promise.reject(t)))};class nd{constructor(){this.convertPromises={}}init(){this.worker=new Worker(new URL(""+new URL("webp.worker-CJXTr_cK.js",import.meta.url).href,import.meta.url),{type:"module"}),this.worker.addEventListener("message",e=>{const f=e.data.payload,n=this.convertPromises[f.fileName];n&&(f.bytes?n.resolve(f.bytes):n.reject(),delete this.convertPromises[f.fileName])})}postMessage(e){this.init&&(this.init(),this.init=null),this.worker.postMessage(e)}convert(e,t){if(this.convertPromises.hasOwnProperty(e))return this.convertPromises[e];const f=G();return this.postMessage({type:"convertWebp",payload:{fileName:e,bytes:t}}),this.convertPromises[e]=f}}const Bi=new nd;L.webpWorkerController=Bi;class id{constructor(){this.prefix="",this.cache={},this.useStorage=!0,ve.test&&(this.prefix="t_")}get(e,t=!0){if(this.cache.hasOwnProperty(e)&&t)return this.cache[e];if(this.useStorage){let f;try{f=localStorage.getItem(this.prefix+e)}catch{throw this.useStorage=!1,Ee("STORAGE_OFFLINE")}if(f!==null)try{f=JSON.parse(f)}catch{}else f=void 0;return f}else throw Ee("STORAGE_OFFLINE")}set(e,t=!1){let f;for(const n in e)if(e.hasOwnProperty(n)){const i=e[n];if(this.cache[n]=i,!t)try{if(!this.useStorage)throw Ee("STORAGE_OFFLINE");const r=JSON.stringify(i);localStorage.setItem(this.prefix+n,r)}catch(r){this.useStorage=!1,f=r}}if(f)throw f}delete(e,t=!1){e=""+e,t||delete this.cache[e];try{localStorage.removeItem(this.prefix+e)}catch{}}clear(e=[]){try{const t={};e?.length&&e.forEach(f=>{const n=this.get(f);n!==void 0&&(t[f]=n)}),localStorage.clear(),e?.length&&this.set(t)}catch{}}toggleStorage(e,t){if(this.useStorage=e,!!t&&e)return this.set(this.cache)}}const We=class We{constructor(e=[]){this.log=X("[local-storage-controller]"),We.STORAGES.push(this),this.encryptableKeys=new Set(e),nt||(this.storage=new id)}async getEncryptedStorage(){return this.encryptedStorage?this.encryptedStorage:(this.encryptedStorage=Te.getInstance(We.ENCRYPTION_DB,We.ENCRYPTION_DB_STORE_NAME),this.encryptedStorage.loadEncrypted(),this.encryptedStorage)}async shouldUseEncryptableStorage(e){return this.encryptableKeys.has(e)===!1?!1:Le.isUsingPasscode()}async localStorageProxy(e,...t){return nt?Mt.getInstance().invoke("localStorageProxy",{type:e,args:t}):(t=Array.prototype.slice.call(t),this.storage[e].apply(this.storage,t))}async encryptedStorageProxy(e,...t){return nt?(await this.getEncryptedStorage())[e](...t):Mt.getInstance().invoke("localStorageEncryptedProxy",{type:e,args:t})}async waitEncryptionToFinish(){this.encryptionDeferred&&await this.encryptionDeferred}async get(e,t){return await this.waitEncryptionToFinish(),await this.shouldUseEncryptableStorage(e)?(await this.encryptedStorageProxy("get",[e]))[0]:this.localStorageProxy("get",e,t)}async set(e){await this.waitEncryptionToFinish(),e={...e};const t=Object.keys(e).filter(f=>this.encryptableKeys.has(f));if(t.length&&await this.shouldUseEncryptableStorage(t[0])){const f=t.map(n=>e[n]);await this.encryptedStorageProxy("save",t,f),t.forEach(n=>{delete e[n]})}if(Object.keys(e).length)return this.localStorageProxy("set",e)}async delete(e){return await this.waitEncryptionToFinish(),await this.shouldUseEncryptableStorage(e)?this.encryptedStorageProxy("delete",e):this.localStorageProxy("delete",e)}toggleStorage(e,t){return this.localStorageProxy("toggleStorage",e,t)}warnAboutEncrypting(e){return nt?!1:(this.log.warn(`${e} should not be called in a window client, call it only in the MTProto worker`),!0)}async encryptEncryptable(){if(this.warnAboutEncrypting("encryptEncryptable"))return;this.encryptionDeferred=G();const e=Array.from(this.encryptableKeys.values()),t=await Promise.all(e.map(i=>this.localStorageProxy("get",i))),f=e.map((i,r)=>[i,t[r]]).filter(i=>i[1]),n=Object.fromEntries(f);this.encryptedStorage=Te.getInstance(We.ENCRYPTION_DB,We.ENCRYPTION_DB_STORE_NAME),await this.encryptedStorage.loadDecrypted(n),await Promise.all(f.map(([i])=>this.localStorageProxy("set",i,!0))),await Promise.all(f.map(([i])=>this.localStorageProxy("delete",i))),this.encryptionDeferred?.resolve(),this.encryptionDeferred=void 0}async reEncryptEncryptable(){if(this.warnAboutEncrypting("reEncryptEncryptable"))return;this.encryptionDeferred=G(),await(await this.getEncryptedStorage()).reEncrypt(),this.encryptionDeferred?.resolve(),this.encryptionDeferred=void 0}async decryptEncryptable(){if(this.warnAboutEncrypting("decryptEncryptable"))return;this.encryptionDeferred=G();const e=await this.getEncryptedStorage(),f=(await e.getAllEntries()).filter(i=>this.encryptableKeys.has(i[0])),n=Object.fromEntries(f);await this.localStorageProxy("set",n),await e.clear(),this.encryptionDeferred?.resolve(),this.encryptionDeferred=void 0}};We.STORAGES=[],We.ENCRYPTION_DB=eo(),We.ENCRYPTION_DB_STORE_NAME="localStorage__encrypted";let Kn=We;const R=new Kn(["account1","account2","account3","account4","auth_key_fingerprint","user_auth","dc"]);L.appStorage=R;function $e(s){if(s||(s=window.event),s){s=s.originalEvent||s;try{s.stopPropagation&&s.stopPropagation(),s.preventDefault&&s.preventDefault(),s.returnValue=!1,s.cancelBubble=!0}catch{}}return!1}function rd(s){return Ut&&s instanceof TouchEvent&&s.touches[0].clientX<30}class ad{constructor(){if(this.onPopState=e=>{const t=window.location.hash,f=e.state;if(this.debug&&this.log("popstate",e,this.isPossibleSwipe,t),t!==this.currentHash)if(this.debug&&this.log.warn(`hash changed, new=${t}, current=${this.currentHash}, overridden=${this.overriddenHash}`),f===this.id&&this.overriddenHash&&this.overriddenHash!==t)this.overrideHash(this.overriddenHash);else if(f&&!this.overriddenHash&&t)this.overrideHash();else{this.currentHash=t,this.onHashChange&&this.onHashChange();return}if(f!==this.id&&(this.pushState(),!this.navigations.length))return;const n=this.navigations.pop();if(!n){this.pushState();return}this.manual=!this.isPossibleSwipe,this.handleItem(n,this.navigations.length)},this.onKeyDown=e=>{const t=this.navigations[this.navigations.length-1];t&&e.key==="Escape"&&(!t.onEscape||t.onEscape())&&($e(e),this.back(t.type))},this.onTouchStart=e=>{e.touches.length>1||(this.debug&&this.log("touchstart"),rd(e)&&(this.isPossibleSwipe=!0,window.addEventListener("touchend",()=>{setTimeout(()=>{this.isPossibleSwipe=!1},100)},{passive:!0,once:!0})))},this.navigations=[],this.id=Date.now(),this.manual=!1,this.log=X("NC"),this.debug=!0,this.currentHash=window.location.hash,this.overriddenHash="",this.isPossibleSwipe=!1,window.addEventListener("popstate",this.onPopState),window.addEventListener("keydown",this.onKeyDown,{capture:!0,passive:!1}),Ut){const e={passive:!0};window.addEventListener("touchstart",this.onTouchStart,e)}history.scrollRestoration="manual",this.pushState()}overrideHash(e=""){e&&e[0]!=="#"?e="#"+e:e==="#"&&(e=""),this.currentHash!==e&&(this.overriddenHash=this.currentHash=e,this.replaceState(),this.pushState())}handleItem(e,t=this.navigations.indexOf(e)){const f=e.onPop(this.manual?void 0:!1);this.debug&&this.log("popstate, navigation:",e,this.navigations),f===!1?this.spliceItems(Math.min(this.navigations.length,t),0,e):e.noBlurOnPop||_i(),this.manual=!1}findItemByType(e){for(let t=this.navigations.length-1;t>=0;--t){const f=this.navigations[t];if(f.type===e)return{item:f,index:t}}}back(e){if(e){const t=this.findItemByType(e);if(t){this.backByItem(t.item,t.index);return}}history.back()}backByItem(e,t=this.navigations.indexOf(e)){t!==-1&&(this.manual=!0,this.navigations.splice(t,1),this.handleItem(e,t))}onItemAdded(e){this.debug&&this.log("onItemAdded",e,this.navigations),e.noHistory||this.pushState()}pushItem(e){this.navigations.push(e),this.onItemAdded(e)}unshiftItem(e){this.navigations.unshift(e),this.onItemAdded(e)}spliceItems(e,t,...f){this.navigations.splice(e,t,...f),f.forEach(n=>{this.onItemAdded(n)})}pushState(){this.debug&&this.log("push"),this.manual=!1,history.pushState(this.id,"")}replaceState(){this.debug&&this.log.warn("replace");const e=location.origin+location.pathname+location.search+this.overriddenHash;history.replaceState(this.id,"",e)}removeItem(e){e&&ze(this.navigations,e)}removeByType(e,t=!1){for(let f=this.navigations.length-1;f>=0&&!(this.navigations[f].type===e&&(this.navigations.splice(f,1),t));--f);}}const rt=new ad;L.appNavigationController=rt;class od{reload(e=!0){try{rt.spliceItems(0,1/0),e&&rt.overrideHash(),location.reload()}catch{}}close(){try{window.close()}catch{}}focus(){window.focus()}}const Ui=new od;function Ie(s){if(s===null||typeof s!="object")return s;if(s instanceof Date)return new Date(s.getTime());if(Array.isArray(s))return s.map(n=>Ie(n));if(ArrayBuffer.isView(s))return s.slice();const e=new s.constructor;for(var t in s)s.hasOwnProperty(t)&&(e[t]=Ie(s[t]));return e}const zf=typeof SharedWorker<"u"&&!ve.noSharedWorker,cd=ke?"touchstart":"mousemove";class dd extends Be{constructor(){super(),this._isIdle=!0,this.focusPromise=Promise.resolve(),this.focusResolve=()=>{},window.addEventListener("blur",()=>{this.isIdle=!0,window.addEventListener("focus",()=>{this.isIdle=!1},{once:!0})}),window.addEventListener(cd,()=>{this.isIdle=!1},{once:!0,passive:!0}),this.addEventListener("change",e=>{e?this.focusPromise=new Promise(t=>{this.focusResolve=t}):this.focusResolve()})}getFocusPromise(){return this.focusPromise}get isIdle(){return this._isIdle}set isIdle(e){this._isIdle!==e&&(this._isIdle=e,this.dispatchEvent("change",e))}}const ds=new dd,ld=5e3,ud=3e4,hd=2e4,md=zf;class gd extends Be{constructor(){super(!1),this.log=X("INSTANCE"),this.clearInstance=()=>{this.masterInstance&&!this.deactivated&&(this.log.warn("clear master instance"),R.delete("xt_instance"))},this.checkInstance=async(e=ds.isIdle)=>{if(this.deactivated)return;const t=Date.now(),f={id:this.instanceId,idle:e,time:t},[n,i=fe.build]=await Promise.all([R.get("xt_instance",!1),R.get("k_build",!1)]);if(i>fe.build){this.masterInstance=!1,C.managers.networkerFactory.stopAll(),this.deactivateInstance("version"),$.toggleStorages(!1,!1);return}else if(md){R.set({xt_instance:f});return}!e||!n||n.id===this.instanceId||n.time<t-hd?(R.set({xt_instance:f}),this.masterInstance||(this.masterInstance=!0,C.managers.networkerFactory.startAll(),this.log.warn("now master instance",f)),this.clearDeactivateTimeout()):this.masterInstance&&(this.masterInstance=!1,C.managers.networkerFactory.stopAll(),this.log.warn("now idle instance",f),this.deactivateTimeout||(this.deactivateTimeout=window.setTimeout(()=>this.deactivateInstance("tabs"),ud)))},this.log=X("INSTANCE"),this.instanceId=Mf}get deactivatedReason(){return this.deactivated}start(){if(this.reset(),!this.started){this.started=!0,ds.addEventListener("change",this.checkInstance),$.setInterval(this.checkInstance,ld);try{document.documentElement.addEventListener("beforeunload",this.clearInstance)}catch{}return this.checkInstance()}}reset(){this.masterInstance=!1,this.clearDeactivateTimeout(),this.deactivated=void 0}activateInstance(){this.deactivated&&(this.reset(),this.checkInstance(!1),this.dispatchEvent("activated"))}deactivateInstance(e){this.masterInstance||this.deactivated||(this.log.warn("deactivate",e),this.clearDeactivateTimeout(),this.deactivated=e,this.dispatchEvent("deactivated",e))}clearDeactivateTimeout(){this.deactivateTimeout&&(clearTimeout(this.deactivateTimeout),this.deactivateTimeout=0)}}const st=new gd;L&&(L.singleInstance=st);function pd(s,e){if(s!==void 0)return s=+s.toFixed(0),e?s<xf?s:s%xf:s}function bd(s){return pd(s,!0)}const yd=1e4;class fo extends Be{constructor(){super(!1),this.isAvailable=!0,this.isPushEnabled=!1,this.localNotificationsAvailable=!0,this.started=!1,this.settings={},this.isFirefox=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,this.userVisibleOnly=!this.isFirefox,this.log=X("PUSH-API"),this.subscribe=()=>{this.isAvailable&&navigator.serviceWorker.ready.then(e=>{e.pushManager.subscribe({userVisibleOnly:this.userVisibleOnly}).then(t=>{this.isPushEnabled=!0,this.pushSubscriptionNotify("subscribe",t)}).catch(t=>{Notification.permission==="denied"?this.log("Permission for Notifications was denied"):(this.log("Unable to subscribe to push.",t),this.userVisibleOnly||(this.userVisibleOnly=!0,setTimeout(this.subscribe,0)))})})},this.isAliveNotify=()=>{if(!this.isAvailable||st.deactivatedReason)return;this.settings.baseUrl=(location.href||"").replace(/#.*$/,"");const e={},t={push_action_mute1d:xe?"PushNotification.Action.Mute1d.Mobile":"PushNotification.Action.Mute1d",push_action_settings:xe?"PushNotification.Action.Settings.Mobile":"PushNotification.Action.Settings",push_message_nopreview:"PushNotification.Message.NoPreview"};for(const f in t)e[f]=Q.format(t[f],!0);this.serviceMessagePort.invokeVoid("pushPing",{localNotifications:this.localNotificationsAvailable,lang:e,settings:this.settings}),this.isAliveTO=setTimeout(this.isAliveNotify,yd)},(!("PushManager"in window)||!("Notification"in window)||!("serviceWorker"in navigator))&&(this.log.warn("Push messaging is not supported."),this.isAvailable=!1,this.localNotificationsAvailable=!1),this.isAvailable&&Notification.permission==="denied"&&this.log.warn("The user has blocked notifications.")}start(){this.started||(this.started=!0,this.getSubscription(),this.setUpServiceWorkerChannel())}setLocalNotificationsDisabled(){this.localNotificationsAvailable=!1}getSubscription(){this.isAvailable&&navigator.serviceWorker.ready.then(e=>{e.pushManager.getSubscription().then(t=>{this.isPushEnabled=!!t,this.pushSubscriptionNotify("init",t)}).catch(t=>{this.log.error("Error during getSubscription()",t)})})}unsubscribe(){this.isAvailable&&navigator.serviceWorker.ready.then(e=>{e.pushManager.getSubscription().then(t=>{this.isPushEnabled=!1,t&&(this.pushSubscriptionNotify("unsubscribe",t),setTimeout(()=>{t.unsubscribe().then(f=>{this.isPushEnabled=!1}).catch(f=>{this.log.error("Unsubscription error: ",f)})},3e3))}).catch(t=>{this.log.error("Error thrown while unsubscribing from push messaging.",t)})})}forceUnsubscribe(){this.isAvailable&&navigator.serviceWorker.ready.then(e=>{e.pushManager.getSubscription().then(t=>{this.log.warn("force unsubscribe",t),t&&t.unsubscribe().then(f=>{this.log.warn("force unsubscribe successful",f),this.isPushEnabled=!1}).catch(f=>{this.log.error("Unsubscription error: ",f)})}).catch(t=>{this.log.error("Error thrown while unsubscribing from push messaging.",t)})})}setSettings(e){this.settings=Ie(e),clearTimeout(this.isAliveTO),this.isAliveNotify()}hidePushNotifications(){this.isAvailable&&this.serviceMessagePort.invokeVoid("notificationsClear",void 0)}setUpServiceWorkerChannel(){this.isAvailable&&(this.serviceMessagePort.addEventListener("pushClick",e=>{if(st.deactivatedReason){Ui.reload();return}this.dispatchEvent("push_notification_click",e)}),navigator.serviceWorker.ready.then(this.isAliveNotify))}pushSubscriptionNotify(e,t){if(t){const f=t.toJSON();if(!f||!f.endpoint||!f.keys||!f.keys.p256dh||!f.keys.auth){this.log.warn("Invalid push subscription",f),this.unsubscribe(),this.isAvailable=!1,this.pushSubscriptionNotify(e);return}this.log.warn("Push",e,f),this.dispatchEvent("push_"+e,{tokenType:10,tokenValue:JSON.stringify(f)})}else this.log.warn("Push",e,!1),this.dispatchEvent("push_"+e,!1)}ignorePushByMid(e,t){this.isAvailable&&this.serviceMessagePort.invokeVoid("shownNotification",e+"_"+bd(t))}}const Gf=new fo;L&&(L.webPushApiManager=Gf);const Ed=Object.freeze(Object.defineProperty({__proto__:null,WebPushApiManager:fo,default:Gf},Symbol.toStringTag,{value:"Module"}));function vd(s){const e=document.createElement("script"),t=new Promise(f=>{e.onload=e.onerror=()=>{f(e)}});return e.src=s,document.body.appendChild(e),t}function no(s){const e=Date.now();return s?e/1e3|0:e}class io{constructor(){this.disabled=ve.test||!fe.domains.includes(location.hostname)}setAuthorized(e){if(!this.disabled)return R.get("tgme_sync").then(t=>{const f=no(!0);if(e&&t?.canRedirect===e&&t.ts+86400>f)return;R.set({tgme_sync:{canRedirect:e,ts:f}});const n=`_websync_?authed=${e?"1":"0"}&version=${encodeURIComponent(fe.version+" "+fe.suffix)}`,r=["//telegram.me/"+n,"//t.me/"+n].map(a=>vd(a).then(o=>{o.remove()}));return Promise.all(r)})}}const ji=new io;L&&(L.telegramMeWebManager=ji);const Dd=Object.freeze(Object.defineProperty({__proto__:null,TelegramMeWebManager:io,default:ji},Symbol.toStringTag,{value:"Module"})),Wi=typeof RTCPeerConnection<"u"&&!vt,wd=Wi;let Af;if(!le)Af=!0;else try{Af=+navigator.userAgent.match(/Version\/(.+?) /)[1]>=14}catch{Af=!1}const Vi=Af,Hi="filter"in(document.createElement("canvas").getContext("2d")||{}),Sd=!!navigator?.geolocation?.getCurrentPosition&&!1,Ad=Wi,zi=document.createElement("canvas").toDataURL("image/webp").startsWith("data:image/webp"),qs=new Set(["image/jpeg","image/png","image/bmp"]);zi&&qs.add("image/webp");const Cd=[["image/jxl","data:image/jxl;base64,/woIAAAMABKIAgC4AF3lEgAAFSqjjBu8nOv58kOHxbSN6wxttW1hSaLIODZJJ3BIEkkaoCUzGM6qJAE="],["image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A="]],kd=Cd.map(([s,e])=>{const t=new Image,f=new Promise(n=>{t.onload=t.onerror=()=>{const i=t.height===2;n(i?s:void 0)}});return t.src=e,f}),ro=Promise.all(kd).then(s=>s.filter(Boolean)),Gi=document.createElement("video"),qi=!!Gi.canPlayType("video/webm")&&!le&&!At,ao=!!Gi.canPlayType("video/quicktime")||le||At,Fd=!!Gi.canPlayType('video/mp4; codecs="hev1"'),Pd=!le,_d=Object.freeze(Object.defineProperty({__proto__:null,IS_AV1_SUPPORTED:Pd,IS_H265_SUPPORTED:Fd,IS_MOV_SUPPORTED:ao,IS_WEBM_SUPPORTED:qi},Symbol.toStringTag,{value:"Module"})),$i=new Set(["image/gif","video/mp4","video/webm"]);ao&&$i.add("video/quicktime");const Td=[...qs].concat([...$i]),oo=new Set(Td),Ld=!vt&&!1,Id="getDisplayMedia"in(navigator?.mediaDevices||{}),co=!!navigator?.vibrate,Lr=document.createElement("audio"),lo=!!(Lr.canPlayType&&Lr.canPlayType("audio/ogg;").replace(/no/,""));let uo=!1;try{const s=document.createElement("canvas").getContext("webgl"),e=s.getExtension("WEBGL_debug_renderer_info"),t=e&&s.getParameter(e.UNMASKED_RENDERER_WEBGL)||"";(t.match(/Apple/)&&!t.match(/Apple GPU/)||s.getSupportedExtensions().indexOf("WEBGL_compressed_texture_s3tc_srgb")===-1)&&(uo=!0)}catch{}const ho=uo,xd="serviceWorker"in navigator,uf={CAN_USE_TRANSFERABLES:Vi,IS_APPLE_MX:ho,IS_CALL_SUPPORTED:wd,IS_CANVAS_FILTER_SUPPORTED:Hi,IS_EMOJI_SUPPORTED:nn,IS_GEOLOCATION_SUPPORTED:Sd,IS_GROUP_CALL_SUPPORTED:Ad,IS_PARALLAX_SUPPORTED:Ld,IS_SCREEN_SHARING_SUPPORTED:Id,IS_TOUCH_SUPPORTED:ke,..._d,IS_VIBRATE_SUPPORTED:co,IS_OPUS_SUPPORTED:lo,IS_SHARED_WORKER_SUPPORTED:zf,IS_WEBP_SUPPORTED:zi,IS_WEBRTC_SUPPORTED:Wi,IS_LIVE_STREAM_SUPPORTED:xd,IMAGE_MIME_TYPES_SUPPORTED:qs,MEDIA_MIME_TYPES_SUPPORTED:oo,VIDEO_MIME_TYPES_SUPPORTED:$i,...Xc};function Md(){const s=document.createElement("input");s.type="time",s.value="15:00",s.style.visibility="hidden",document.body.append(s);const e=s.offsetWidth;return s.remove(),e>110?"h12":"h23"}const Rd=fe.version,Od=fe.build,Ir={_:"theme",access_hash:"",id:"",settings:[{_:"themeSettings",pFlags:{},base_theme:{_:"baseThemeClassic"},accent_color:3379436,message_colors:[6072403],wallpaper:{_:"wallPaper",pFlags:{default:!0,pattern:!0},access_hash:"",document:void 0,id:"",slug:"pattern",settings:{_:"wallPaperSettings",pFlags:{},intensity:50,background_color:14409147,second_background_color:7054727,third_background_color:14014605,fourth_background_color:8960132}}},{_:"themeSettings",pFlags:{},base_theme:{_:"baseThemeNight"},accent_color:8877281,message_colors:[8877281],wallpaper:{_:"wallPaper",pFlags:{default:!0,pattern:!0,dark:!0},access_hash:"",document:void 0,id:"",slug:"pattern",settings:{_:"wallPaperSettings",pFlags:{},intensity:-50,background_color:16696470,second_background_color:14511289,third_background_color:9842623,fourth_background_color:5200853}}}],slug:"",title:"",emoticon:"🏠",pFlags:{default:!0}},xr=(s,e,t)=>({...Ir,name:s,settings:{...Ir.settings.find(f=>f.base_theme._===e),highlightingColor:t}}),Nd={messagesTextSize:16,distanceUnit:"kilometers",sendShortcut:"enter",autoDownload:{photo:{contacts:!0,private:!0,groups:!0,channels:!0},video:{contacts:!0,private:!0,groups:!0,channels:!0},file:{contacts:!0,private:!0,groups:!0,channels:!0}},autoDownloadNew:{_:"autoDownloadSettings",file_size_max:3145728,pFlags:{video_preload_large:!0,audio_preload_next:!0},photo_size_max:1048576,video_size_max:15728640,video_upload_maxbitrate:100,small_queue_active_operations_max:0,large_queue_active_operations_max:0},stickers:{suggest:"all",dynamicPackOrder:!0,loop:!0},emoji:{suggest:!0,big:!0},themes:[xr("day","baseThemeClassic","hsla(86.4, 43.846153%, 45.117647%, .4)"),xr("night","baseThemeNight","hsla(299.142857, 44.166666%, 37.470588%, .4)")],theme:"system",notifications:{sound:!1},timeFormat:Md(),liteMode:{all:!1,animations:!1,chat:!1,chat_background:!1,chat_spoilers:!1,effects:!1,effects_premiumstickers:!1,effects_reactions:!1,effects_emoji:!1,emoji:!1,emoji_messages:!1,emoji_panel:!1,gif:!1,stickers:!1,stickers_chat:!1,stickers_panel:!1,video:!1},savedAsForum:!1,notifyAllAccounts:!0,tabsInSidebar:!1,playbackParams:{volume:1,muted:!1,playbackRate:1,playbackRates:{voice:1,video:1,audio:1},loop:!1,round:!1},chatContextMenuHintWasShown:!1,seenTooltips:{storySound:!1},translations:{peers:{},enabledPeers:{},enabled:!0,showInMenu:!0,doNotTranslate:[]},passcode:{enabled:!1,autoLockTimeoutMins:0,lockShortcutEnabled:!1,lockShortcut:["Alt"],canAttemptAgainOn:null}},Ye={allDialogsLoaded:{},pinnedOrders:{},contactsListCachedTime:0,updates:{},filtersArr:[],maxSeenMsgId:0,stateCreatedTime:Date.now(),recentEmoji:[],recentCustomEmoji:[],topPeersCache:{},recentSearch:[],version:Rd,build:Od,authState:{_:xe?"authStateSignIn":"authStateSignQr"},hiddenPinnedMessages:{},hideChatJoinRequests:{},notifySettings:{},confirmedWebViews:[],hiddenSimilarChannels:[],appConfig:{},accountThemes:{},dontShowPaidMessageWarningFor:[]},hn={settings:Nd};function Bd(s,e){s=s.split(" ",1)[0],e=e.split(" ",1)[0];const t=s.split("."),f=e.split(".");for(let n=0;n<t.length;++n){const i=+t[n],r=+f[n];if(i>r)return 1;if(i<r)return-1}return 0}function mo(s){return typeof s=="object"&&s!==null}function go(s,e,t,f,n,i){for(const r in s){const a=i?`${i}.${r}`:r;n?.has(a)||(typeof e[r]!=typeof s[r]?(e[r]=Ie(s[r]),t?.(f||r)):mo(s[r])&&go(s[r],e[r],t,f||r,n,a))}}function Ud(s,e,t){const f=performance.now();return(t||console).warn(Rf(),"start",e),s.then(()=>{(t||console).warn(Rf(),"end",e,performance.now()-f)}),s}function jd(s){return(...e)=>Ud(...e,s)}class po extends Rt{constructor(e){const t=e==="old"?Oi():Ni(e);super(t,"session")}}class Nt extends un{static async getTotalAccounts(){const e=[1,2,3,4].map(f=>R.get(`account${f}`));return(await Promise.all(e)).filter(f=>!!f?.userId).length}static async getUnencryptedTotalAccounts(){return R.get("number_of_accounts")}static async getUserIds(){const e=[1,2,3,4].map(f=>R.get(`account${f}`));return(await Promise.all(e)).map(f=>f?.userId).filter(Boolean)}static async get(e){const t=await R.get(`account${e}`);return this.fillFingerprint(t),t}static fillFingerprint(e){if(e&&!e.auth_key_fingerprint){const t=`dc${fe.baseDcId}_auth_key`,f=e[t];e.auth_key_fingerprint=f?e[t].slice(0,8):void 0}}static async update(e,t,f=!1){const n=await this.get(e);this.fillFingerprint(t);const i={...f?{}:n,...t};return await R.set({[`account${e}`]:i}),e===1&&await this.updateStorageForLegacy(i),(async()=>R.set({number_of_accounts:await this.getTotalAccounts()}))(),i}static async shiftAccounts(e){for(let t=e;t<=Cr;t++)if(await R.delete(`account${t}`),t<Cr){const f=await this.get(t+1);f?.userId&&await this.update(t,f,!0)}}static async updateStorageForLegacy(e){if(e!==null&&await Le.isUsingPasscode())return;e===null&&(e={});const t={},f=[],n=(i,r)=>{r?t[i]=r:f.push(i)};for(let i=1;i<=5;i++){const r=`dc${i}_auth_key`,a=`dc${i}_server_salt`;n(r,e[r]),n(a,e[a])}e.auth_key_fingerprint&&n("auth_key_fingerprint",e.auth_key_fingerprint),n("user_auth",e.userId&&{date:no(!0),id:e.userId,dcID:e.dcId||0}),n("dc",e.dcId),await Promise.all([R.set(t),Promise.all(f.map(i=>R.delete(i)))])}}L.AccountController=Nt;function Mr(s){const e=["users","chats","dialogs"],t={};for(const f of e)t[f]=new Rt(s===void 0?Oi():Ni(s),f);return t}const Wd=!1,Vd=24*60*60*1e3,hf=Ye.version,Os=Ye.build,qf=Object.keys(Ye),rs=Object.keys(hn),Hd=["contactsListCachedTime","stateCreatedTime","maxSeenMsgId","filtersArr"];function bo(s,e,t){const f=new Set,n=(o,c)=>{r[o]=c,f.add(o)},i=o=>{f.clear(),r=o,Object.keys(r).forEach(c=>f.add(c))};let r={};return{push:n,replace:i,readFromArray:o=>{for(let c=0,d=e.length;c<d;++c){const l=e[c],u=o[c];u!==void 0?r[l]=u:n(l,Ie(t[l]))}},get state(){return r},set state(o){r=o},pushedKeys:f,log:s}}function yo(s){const e=bo(s,qf,Ye),t=new Map;return{...e,get state(){return e.state},set state(n){e.state=n},resetStorages:t,reset:({preserveKeys:n=[]}={})=>{n.push("authState");const i=new Map(n.map(a=>[a,e.state[a]]));e.state=Ie(Ye),i.forEach((a,o)=>{e.state[o]=a});const r=["chats","dialogs","users"];for(const a of r)t.set(a,[]);e.replace(e.state)}}}function Eo(s){return bo(s,rs,hn)}const Ve={REFRESH:s=>{const e=Date.now();s.state.stateCreatedTime+Vd<e&&(pe&&s.log("will refresh state",s.state.stateCreatedTime,e),Hd.forEach(t=>{s.push(t,Ie(Ye[t]))}))},VALIDATE:(s,e)=>{const t=new Set(["settings.themes"]);go(e,s.state,f=>{s.push(f,s.state[f])},void 0,t)},VERSION:s=>{let e,t;return(s.state.version!==hf||s.state.build!==Os)&&(s.state.build<526?s.reset():s.state.build<562&&s.push("filtersArr",Ie(Ye.filtersArr)),Bd(s.state.version,hf)!==0&&(e=hf,t=s.state.version),s.push("appConfig",Ie(Ye.appConfig)),s.push("version",hf),s.push("build",Os)),{newVersion:e,oldVersion:t}},CHANGED_AUTH:async s=>{const[e,t]=await Promise.all([R.get("auth_key_fingerprint"),R.get(`dc${fe.baseDcId}_auth_key`)]);if(!t)return;const f=t.slice(0,8);e?e!==f&&s.reset():s.reset(),e!==f&&await R.set({auth_key_fingerprint:f})}};async function mf(s){const e=X(`STATE-LOADER-ACCOUNT-${s}`),t=new po(s),[f,...n]=await Promise.all([Nt.get(s),...rs.map(c=>Ot.get(c)),...qf.map(c=>t.get(c))]),i=Eo(e);i.readFromArray(n.splice(0,rs.length));const r=yo(e);r.readFromArray(n),f?.userId&&(r.state.authState={_:"authStateSignedIn"}),s===1&&await Ve.CHANGED_AUTH(r),Ve.REFRESH(r),Ve.VALIDATE(r,Ye),Ve.VALIDATE(i,hn);const{newVersion:a,oldVersion:o}=Ve.VERSION(r);return{state:r.state,pushedKeys:r.pushedKeys,newVersion:a,oldVersion:o,resetStorages:r.resetStorages,common:i.state,userId:f?.userId}}async function zd(){const s=X("STATE-LOADER"),e=new po("old"),t=performance.now(),f=jd(s),n=["playbackParams","chatContextMenuHintWasShown","seenTooltips","translations"],i=n.concat(rs),r=await Promise.all([...i.map(p=>e.get(p)),...qf.map(p=>f(e.get(p),"state "+p)),e.get("langPack"),f(R.get("user_auth"),"auth")]);s.warn("promises",performance.now()-t);const a=Eo(s),o=r.splice(0,n.length),c=rs.indexOf("settings");mo(r[c])&&o.forEach((p,v)=>{r[c][n[v]]=p}),a.readFromArray(r.splice(0,rs.length));const d=yo(s);d.readFromArray(r.splice(0,qf.length));const l=r.shift(),u=r.shift();u&&(d.state.authState={_:"authStateSignedIn"}),await Ve.CHANGED_AUTH(d),Ve.REFRESH(d),Ve.VALIDATE(d,Ye),Ve.VALIDATE(a,hn);const{newVersion:m,oldVersion:h}=Ve.VERSION(d);pe&&s("state res",d.state,Ie(d.state)),s.warn("total",performance.now()-t);for(const p in d.state)d.push(p,d.state[p]);return l&&await Ot.set({langPack:l}),{state:d.state,pushedKeys:d.pushedKeys,newVersion:m,oldVersion:h,resetStorages:d.resetStorages,common:a.state,userId:typeof u=="number"?u:u?.id?+u.id:void 0}}async function Gd(){const s={},e=(async()=>{const i=[];for(let r=1;r<=5;r++){const a=`dc${r}_auth_key`,o=`dc${r}_server_salt`;[s[a],s[o]]=await Promise.all([R.get(a),R.get(o)]),i.push(()=>Promise.all([R.delete(a),R.delete(o)]))}return()=>Promise.all(i.map(r=>r()))})(),[t,f,n]=await Promise.all([R.get("user_auth"),R.get("auth_key_fingerprint"),e]);s.auth_key_fingerprint=f,s.userId=typeof t=="string"||typeof t=="number"?+t:t?.id?+t.id:void 0,await Nt.update(1,s,!0)}async function qd(){const s=Mr(void 0),e=Mr(1),[t,f,n]=await Promise.all([s.users.getAll(),s.chats.getAll(),s.dialogs.getAll()]),i=(r,a)=>r.reduce((o,c)=>(o[c[a]]=c,o),{});await Promise.all([e.users.set(i(t,"id")),e.chats.set(i(f,"id")),e.dialogs.set(i(n,"peerId"))])}async function $d(){return!!await Nt.get(1)}function Yd(){return Hf.deleteDatabaseByName(Oi().name)}async function Kd(){const s=await R.get("k_build");s!==Os&&(!s||s<Os)&&await R.set({k_build:Os})}async function Jd(){const s=performance.now(),e=await $d()&&!Wd;let t;const f=Promise.all([mf(2),mf(3),mf(4)]);e?t=await mf(1):(t=await zd(),await Promise.all([Gd(),qd()]),t.refetchStorages=!0,Yd()),Kd();const[...n]=await f;return pe&&console.log("loadStateForAllAccounts time",performance.now()-s),{1:t,2:n[0],3:n[1],4:n[2]}}let Qd;function Xd(){return Qd??(Qd=Jd())}class Zd{constructor(){this.sampleRate=48e3,this.tasks=[],this.keepAlive=!1,this.log=X("OPUS",sf.Error)}isPlaySupported(){return lo}loadWavWorker(){this.wavWorker||(this.wavWorker=new Worker("waveWorker.min.js"),this.wavWorker.addEventListener("message",e=>{const t=e.data;if(this.log("[WAV] got message:",t),t&&t.page){const f=t.page;this.onTaskEnd(this.tasks.shift(),f)}}))}loadWorker(){this.worker||(this.worker=new Worker("decoderWorker.min.js"),this.worker.addEventListener("message",e=>{const t=e.data;this.log("[DECODER] got message",t),t.type==="done"?(this.wavWorker.postMessage({command:"done"}),t.waveform&&(this.tasks[0].waveform=t.waveform)):this.wavWorker.postMessage({command:"encode",buffers:e.data},le?void 0:t.map(f=>f.buffer))}))}setKeepAlive(e){this.keepAlive=e,this.keepAlive?(this.loadWorker(),this.loadWavWorker()):this.tasks.length||this.terminateWorkers()}onTaskEnd(e,t){t?(clearTimeout(e.timeout),e.callback.resolve({bytes:t,waveform:e.waveform})):e.callback.reject("timeout"),this.tasks.length&&this.executeNewTask(this.tasks[0]),this.terminateWorkers()}terminateWorkers(e=!1){(this.keepAlive||this.tasks.length)&&!e||(this.worker&&(this.worker.terminate(),this.worker=null),this.wavWorker&&(this.wavWorker.terminate(),this.wavWorker=null))}executeNewTask(e){this.worker.postMessage({command:"init",decoderSampleRate:this.sampleRate,outputBufferSampleRate:this.sampleRate}),this.wavWorker.postMessage({command:"init",wavBitDepth:16,wavSampleRate:this.sampleRate}),this.log("[DECODER] send decode"),this.worker.postMessage({command:"decode",pages:e.pages,waveform:e.withWaveform},le?void 0:[e.pages.buffer]),e.timeout=window.setTimeout(()=>{this.log.error("decode timeout"),this.terminateWorkers(!0),this.tasks.length&&(this.loadWorker(),this.loadWavWorker()),this.onTaskEnd(this.tasks.shift())},1e4)}pushDecodeTask(e,t){return new Promise((f,n)=>{const i={pages:e,withWaveform:t,callback:{resolve:f,reject:n},timeout:0};this.loadWorker(),this.loadWavWorker(),this.tasks.push(i)===1&&this.executeNewTask(i)})}async decode(e,t=!1){return this.pushDecodeTask(e,t).then(async f=>{const n=new Blob([f.bytes],{type:"audio/wav"});return{url:await $.invoke("createObjectURL",n),waveform:f.waveform}})}}const vo=new Zd;L.opusDecodeController=vo;function el(s){return["image/jpeg","image/png","image/gif","image/svg+xml","image/webp","image/bmp","image/avif","image/jxl","video/mp4","video/webm","video/quicktime","audio/ogg","audio/mpeg","audio/mp4","audio/wav","application/json","application/pdf"].indexOf(s)===-1?"application/octet-stream":s}function Yi(s,e=""){s=Lt(s);const t=el(e);return new Blob(s,{type:t})}function tl(s,e){return new Promise(t=>{const f=new FileReader;f.addEventListener("loadend",n=>{t(n.target.result)}),f[e](s)})}function sl(s){return tl(s,"readAsArrayBuffer")}function Rr(s){return sl(s).then(e=>new Uint8Array(e))}class fl{constructor(e,t,f){this.mimeType=e,this.size=t,this.saveFileCallback=f,this.bytes=new Uint8Array(t)}async write(e,t){const f=t+e.byteLength;if(f>this.bytes.byteLength){const n=new Uint8Array(f);n.set(this.bytes,0),this.bytes=n}this.bytes.set(e,t)}truncate(){this.bytes=new Uint8Array}trim(e){this.bytes=this.bytes.slice(0,e)}finalize(e=!0){const t=Yi(this.bytes,this.mimeType);return e&&this.saveFileCallback&&this.saveFileCallback(t),t}getParts(){return this.bytes}replaceParts(e){this.bytes=e}}const Ln={cachedAssets:{encryptable:!1},cachedBackgrounds:{encryptable:!1},cachedFiles:{encryptable:!0},cachedStreamChunks:{encryptable:!0},cachedHlsQualityFiles:{encryptable:!0},cachedHlsStreamChunks:{encryptable:!0}},Se=class Se{constructor(e){this.dbName=e,this.useStorage=!0,ve.test&&(this.dbName+="_test"),Se.STORAGES.length&&(this.useStorage=Se.STORAGES[0].useStorage),this.config=Object.entries(Ln).find(([t])=>t===e)?.[1],this.openDatabase(),Se.STORAGES.push(this)}static async encrypt(e){const t=await ct.get(),f=await Rr(e),n=e.type;console.log("[my-debug] encryption started");const i=await it.invokeCryptoNew({method:"aes-local-encrypt",args:[{key:t,data:f}],transfer:[f.buffer]});return console.log("[my-debug] encryption ended"),new Blob([i],{type:n})}static async decrypt(e){const t=await ct.get(),f=await Rr(e),n=e.type;console.log("[my-debug] decryption started");const i=await it.invokeCryptoNew({method:"aes-local-decrypt",args:[{key:t,encryptedData:f}],transfer:[f.buffer]});return console.log("[my-debug] decryption ended"),new Blob([i],{type:n})}async waitToEnable(){Se.disabledPromise&&await Se.disabledPromise}openDatabase(){return this.openDbPromise??(this.openDbPromise=caches.open(this.dbName))}delete(e){return this.timeoutOperation(t=>t.delete("/"+e))}deleteAll(){return caches.delete(this.dbName)}async has(e){return!!await this.timeoutOperation(f=>f.match("/"+e))}async get(e){await this.waitToEnable();const t=await this.timeoutOperation(f=>f.match("/"+e));if(t)return this.config?.encryptable&&await Le.isUsingPasscode()?new Response(await Se.decrypt(await t.blob()),{headers:t.headers,status:t.status,statusText:t.statusText}):t}async save(e,t){await this.waitToEnable();let f=t;return this.config?.encryptable&&await Le.isUsingPasscode()&&(f=new Response(await Se.encrypt(await t.blob()),{headers:t.headers,status:t.status,statusText:t.statusText})),this.timeoutOperation(n=>n.put("/"+e,f))}getFile(e,t="blob"){return this.get(e).then(f=>{if(!f)throw Ee("NO_ENTRY_FOUND");return f[t]()})}saveFile(e,t){t instanceof Blob||(t=Yi(t));const f=new Response(t,{headers:{"Content-Length":""+t.size}});return this.save(e,f).then(()=>t)}timeoutOperation(e){return this.useStorage?new Promise(async(t,f)=>{let n=!1;const i=setTimeout(()=>{f(),n=!0},15e3);try{const r=await this.openDatabase();if(!r)throw this.useStorage=!1,this.openDbPromise=void 0,"no cache?";const a=await e(r);if(n)return;t(a)}catch(r){f(r)}clearTimeout(i)}):Promise.reject(Ee("STORAGE_OFFLINE"))}prepareWriting(e,t,f){return{deferred:G(),getWriter:()=>new fl(f,t,i=>this.saveFile(e,i).catch(()=>i))}}static toggleStorage(e,t){return this.STORAGES.forEach(f=>{f.useStorage=e}),Promise.resolve()}static async deleteAllStorages(){const e=Object.keys(Ln);await Promise.all(e.map(async t=>{await new Se(t).deleteAll()}))}static temporarilyToggle(e){e?(this.disabledPromise?.resolve(),this.disabledPromise=void 0):this.disabledPromise=G()}static async clearEncryptableStorages(){const e=Object.entries(Ln).filter(([,{encryptable:t}])=>t).map(([t])=>t);await Promise.all(e.map(async t=>{await new Se(t).timeoutOperation(async n=>{const i=await n.keys();await Promise.all(i.map(r=>n.delete(r)))})}))}};Se.STORAGES=[];let $f=Se;function Or(s,e){return Promise.all([Rt.toggleStorage(s,e),$f.toggleStorage(s,e),R.toggleStorage(s,e)]).then(ye,ye)}class nl extends Mi{constructor(){super("SERVICE"),L&&(L.serviceMessagePort=this)}}const il=""+new URL("sw-OPgcUoz0.js",import.meta.url).href,Ki="";function Yf(...s){return s.join(Ki)}function rl(s){return s.split(Ki)}function al(s,e,t,f){const n=e.split(Ki),i=n.length;let r=s;for(let o=0;o<i-1;++o){const c=n[o];r=r[c]??(r[c]={})}const a=n[i-1];t===void 0&&f?delete r[a]:r[a]=t}const kt="_";function Ji(s,e){const t="",f=t[t.length-1]||"";let n;switch(s._){case"inputPhotoFileLocation":{n=["photo",t[0],s.id,s.thumb_size].filter(Boolean).join(kt);break}case"inputDocumentFileLocation":{n=["document",t[0],s.id,s.thumb_size].filter(Boolean).join(kt);break}case"inputPeerPhotoFileLocation":n=["peerPhoto",s.photo_id,s.pFlags.big?"big":"small"].join(kt);break;case"inputStickerSetThumb":{n=["stickerSetThumb",s.stickerset.id||s.stickerset.short_name||s.stickerset.emoticon||s.stickerset._,s.thumb_version].join(kt);break}case"inputFileLocation":{n=[s.volume_id,s.local_id].join(kt);break}case"inputWebFileLocation":{n=["webFile",s.url].join(kt);break}case"inputWebFileGeoPointLocation":{const i=s.geo_point;n=["geoPoint",i.lat,i.long,s.w,s.h,s.zoom,s.scale].join(kt);break}default:{console.error("Unrecognized location:",s),n="";break}}return n+(e?.downloadId?"_download":"")+(f&&"."+f)}function Dm(s,e){const t=encodeURIComponent(JSON.stringify(e));return s+"/"+t}function Do(s){return s?._.includes("inputWebFile")}function ol(s){return Do(s)?Ji(s):s._+(s.id??s.url)}function cl(s){return{downloaded:0,url:"",type:s}}function Qi(s,e){return s+(e!==void 0?"-"+e:"")}function at(s,e){return s instanceof Promise?s.then(e):e(s)}function Nr(s){return typeof s=="number"&&s<xf}const $s=Symbol("store-raw"),Ke=Symbol("store-node"),Ce=Symbol("store-has"),wo=Symbol("store-self");function So(s){let e=s[re];if(!e&&(Object.defineProperty(s,re,{value:e=new Proxy(s,ll)}),!Array.isArray(s))){const t=Object.keys(s),f=Object.getOwnPropertyDescriptors(s);for(let n=0,i=t.length;n<i;n++){const r=t[n];f[r].get&&Object.defineProperty(s,r,{enumerable:f[r].enumerable,get:f[r].get.bind(e)})}}return e}function dt(s){let e;return s!=null&&typeof s=="object"&&(s[re]||!(e=Object.getPrototypeOf(s))||e===Object.prototype||Array.isArray(s))}function Ne(s,e=new Set){let t,f,n,i;if(t=s!=null&&s[$s])return t;if(!dt(s)||e.has(s))return s;if(Array.isArray(s)){Object.isFrozen(s)?s=s.slice(0):e.add(s);for(let r=0,a=s.length;r<a;r++)n=s[r],(f=Ne(n,e))!==n&&(s[r]=f)}else{Object.isFrozen(s)?s=Object.assign({},s):e.add(s);const r=Object.keys(s),a=Object.getOwnPropertyDescriptors(s);for(let o=0,c=r.length;o<c;o++)i=r[o],!a[i].get&&(n=s[i],(f=Ne(n,e))!==n&&(s[i]=f))}return s}function ls(s,e){let t=s[e];return t||Object.defineProperty(s,e,{value:t=Object.create(null)}),t}function Bt(s,e,t){if(s[e])return s[e];const[f,n]=Ge(t,{equals:!1,internal:!0});return f.$=n,s[e]=f}function dl(s,e){const t=Reflect.getOwnPropertyDescriptor(s,e);return!t||t.get||!t.configurable||e===re||e===Ke||(delete t.value,delete t.writable,t.get=()=>s[re][e]),t}function Xi(s){Gs()&&Bt(ls(s,Ke),wo)()}function Ao(s){return Xi(s),Reflect.ownKeys(s)}const ll={get(s,e,t){if(e===$s)return s;if(e===re)return t;if(e===zs)return Xi(s),t;const f=ls(s,Ke),n=f[e];let i=n?n():s[e];if(e===Ke||e===Ce||e==="__proto__")return i;if(!n){const r=Object.getOwnPropertyDescriptor(s,e);Gs()&&(typeof i!="function"||s.hasOwnProperty(e))&&!(r&&r.get)&&(i=Bt(f,e,i)())}return dt(i)?So(i):i},has(s,e){return e===$s||e===re||e===zs||e===Ke||e===Ce||e==="__proto__"?!0:(Gs()&&Bt(ls(s,Ce),e)(),e in s)},set(){return!0},deleteProperty(){return!0},ownKeys:Ao,getOwnPropertyDescriptor:dl};function me(s,e,t,f=!1){if(!f&&s[e]===t)return;const n=s[e],i=s.length;t===void 0?(delete s[e],s[Ce]&&s[Ce][e]&&n!==void 0&&s[Ce][e].$()):(s[e]=t,s[Ce]&&s[Ce][e]&&n===void 0&&s[Ce][e].$());let r=ls(s,Ke),a;if((a=Bt(r,e,n))&&a.$(()=>t),Array.isArray(s)&&s.length!==i){for(let o=s.length;o<i;o++)(a=r[o])&&a.$();(a=Bt(r,"length",i))&&a.$(s.length)}(a=r[wo])&&a.$()}function Co(s,e){const t=Object.keys(e);for(let f=0;f<t.length;f+=1){const n=t[f];me(s,n,e[n])}}function ul(s,e){if(typeof e=="function"&&(e=e(s)),e=Ne(e),Array.isArray(e)){if(s===e)return;let t=0,f=e.length;for(;t<f;t++){const n=e[t];s[t]!==n&&me(s,t,n)}me(s,"length",f)}else Co(s,e)}function Fs(s,e,t=[]){let f,n=s;if(e.length>1){f=e.shift();const r=typeof f,a=Array.isArray(s);if(Array.isArray(f)){for(let o=0;o<f.length;o++)Fs(s,[f[o]].concat(e),t);return}else if(a&&r==="function"){for(let o=0;o<s.length;o++)f(s[o],o)&&Fs(s,[o].concat(e),t);return}else if(a&&r==="object"){const{from:o=0,to:c=s.length-1,by:d=1}=f;for(let l=o;l<=c;l+=d)Fs(s,[l].concat(e),t);return}else if(e.length>1){Fs(s[f],e,[f].concat(t));return}n=s[f],t=[f].concat(t)}let i=e[0];typeof i=="function"&&(i=i(n,t),i===n)||f===void 0&&i==null||(i=Ne(i),f===void 0||dt(n)&&dt(i)&&!Array.isArray(i)?Co(n,i):me(s,f,i))}function Zi(...[s,e]){const t=Ne(s||{}),f=Array.isArray(t),n=So(t);function i(...r){Rs(()=>{f&&r.length===1?ul(t,r[0]):Fs(t,r)})}return[n,i]}function hl(s,e){const t=Reflect.getOwnPropertyDescriptor(s,e);return!t||t.get||t.set||!t.configurable||e===re||e===Ke||(delete t.value,delete t.writable,t.get=()=>s[re][e],t.set=f=>s[re][e]=f),t}const ml={get(s,e,t){if(e===$s)return s;if(e===re)return t;if(e===zs)return Xi(s),t;const f=ls(s,Ke),n=f[e];let i=n?n():s[e];if(e===Ke||e===Ce||e==="__proto__")return i;if(!n){const r=Object.getOwnPropertyDescriptor(s,e),a=typeof i=="function";if(Gs()&&(!a||s.hasOwnProperty(e))&&!(r&&r.get))i=Bt(f,e,i)();else if(i!=null&&a&&i===Array.prototype[e])return(...o)=>Rs(()=>Array.prototype[e].apply(t,o))}return dt(i)?ko(i):i},has(s,e){return e===$s||e===re||e===zs||e===Ke||e===Ce||e==="__proto__"?!0:(Gs()&&Bt(ls(s,Ce),e)(),e in s)},set(s,e,t){return Rs(()=>me(s,e,Ne(t))),!0},deleteProperty(s,e){return Rs(()=>me(s,e,void 0,!0)),!0},ownKeys:Ao,getOwnPropertyDescriptor:hl};function ko(s){let e=s[re];if(!e){Object.defineProperty(s,re,{value:e=new Proxy(s,ml)});const t=Object.keys(s),f=Object.getOwnPropertyDescriptors(s),n=Object.getPrototypeOf(s),i=s!==null&&typeof s=="object"&&!Array.isArray(s)&&n!==Object.prototype;if(i){const r=Object.getOwnPropertyDescriptors(n);t.push(...Object.keys(r)),Object.assign(f,r)}for(let r=0,a=t.length;r<a;r++){const o=t[r];if(!(i&&o==="constructor")){if(f[o].get){const c=f[o].get.bind(e);Object.defineProperty(s,o,{get:c,configurable:!0})}if(f[o].set){const c=f[o].set;Object.defineProperty(s,o,{set:l=>Rs(()=>c.call(e,l)),configurable:!0})}}}}return e}function wm(s,e){const t=Ne(s||{});return ko(t)}const Jn=Symbol("store-root");function Zt(s,e,t,f,n){const i=e[t];if(s===i)return;const r=Array.isArray(s);if(t!==Jn&&(!dt(s)||!dt(i)||r!==Array.isArray(i)||n&&s[n]!==i[n])){me(e,t,s);return}if(r){if(s.length&&i.length&&(!f||n&&s[0]&&s[0][n]!=null)){let c,d,l,u,m,h,p,v;for(l=0,u=Math.min(i.length,s.length);l<u&&(i[l]===s[l]||n&&i[l]&&s[l]&&i[l][n]===s[l][n]);l++)Zt(s[l],i,l,f,n);const A=new Array(s.length),D=new Map;for(u=i.length-1,m=s.length-1;u>=l&&m>=l&&(i[u]===s[m]||n&&i[l]&&s[l]&&i[u][n]===s[m][n]);u--,m--)A[m]=i[u];if(l>m||l>u){for(d=l;d<=m;d++)me(i,d,s[d]);for(;d<s.length;d++)me(i,d,A[d]),Zt(s[d],i,d,f,n);i.length>s.length&&me(i,"length",s.length);return}for(p=new Array(m+1),d=m;d>=l;d--)h=s[d],v=n&&h?h[n]:h,c=D.get(v),p[d]=c===void 0?-1:c,D.set(v,d);for(c=l;c<=u;c++)h=i[c],v=n&&h?h[n]:h,d=D.get(v),d!==void 0&&d!==-1&&(A[d]=i[c],d=p[d],D.set(v,d));for(d=l;d<s.length;d++)d in A?(me(i,d,A[d]),Zt(s[d],i,d,f,n)):me(i,d,s[d])}else for(let c=0,d=s.length;c<d;c++)Zt(s[c],i,c,f,n);i.length>s.length&&me(i,"length",s.length);return}const a=Object.keys(s);for(let c=0,d=a.length;c<d;c++)Zt(s[a[c]],i,a[c],f,n);const o=Object.keys(i);for(let c=0,d=o.length;c<d;c++)s[o[c]]===void 0&&me(i,o[c],void 0)}function er(s,e={}){const{merge:t,key:f="id"}=e,n=Ne(s);return i=>{if(!dt(i)||!dt(n))return n;const r=Zt(n,{[Jn]:i},Jn,t,f);return r===void 0?i:r}}const[Fo,Qn]=_t(()=>Zi({})),gl=(...s)=>{const e=s[0];Qn(...s),C.managers.appStateManager.setByKey(e,Ne(Fo[e]))},Br=(s,e)=>{if(typeof s=="object"){Qn(s);return}Qn(s,er(e))},Sm=()=>[Fo,gl];function pl(s,e="asc"){if(!s)return[];const t=s instanceof Map?[...s.keys()]:Object.keys(s).map(f=>+f);return e==="asc"?t.sort((f,n)=>f-n):t.sort((f,n)=>n-f)}const[tr,Po]=Zi({});function sr(s,e){return typeof s=="function"?Oe(()=>e(s())):e(s)}function Am(s){return sr(s,e=>tr[e])}function Cm(s){return sr(s,e=>tr[e?.toPeerId(!0)])}function km(s){return sr(s,e=>tr[e?.toPeerId(!1)])}function bl(s,e){Po(s,er(e))}function yl(s){Po(s)}function El(s){return s=parseInt((s||"1")+""),s<=4&&s>=1?s:1}function vl(s){const e=new URL(s).searchParams;return El(e.get(cs)||"")}const Ae=(()=>{let s;return()=>s??(s=vl(window.location.href))})(),Dl={};function wl(s,e,t){return new Proxy({},{get:(n,i,r)=>(...a)=>{const o=$.invoke("manager",{name:s,method:i,args:a,accountNumber:e},t);return pe&&Dl[s]?.has(i)&&console.warn("manager request",s,i,a,t),o}})}function Xn(s,e,t){return new Proxy(s,{get:(f,n,i)=>f[n]??(f[n]=wl(n,e,t))})}function Ps(s){return Xn({},s)}L.createProxiedManagersForAccount=Ps;let Ss;function Sl(){return Ss||(Ss=Xn({},Ae(),!1),Ss.acknowledged=Xn({},Ae(),!0),Ss)}function Al(s,e,t=e+10){return s=s.trim(),s.length>t&&(s=s.slice(0,e)+"..."),s}function Cl(s){if(!s)return[];const e=s.usernames;return e?e.filter(t=>t.pFlags.active).map(t=>t.username):s.username?[s.username]:[]}const kl=["abogado","ac","academy","accountants","active","actor","ad","adult","ae","aero","af","ag","agency","ai","airforce","al","allfinanz","alsace","am","amsterdam","an","android","ao","apartments","aq","aquarelle","ar","archi","army","arpa","as","asia","associates","at","attorney","au","auction","audio","autos","aw","ax","axa","az","ba","band","bank","bar","barclaycard","barclays","bargains","bayern","bb","bd","be","beer","berlin","best","bf","bg","bh","bi","bid","bike","bingo","bio","biz","bj","black","blackfriday","bloomberg","blue","bm","bmw","bn","bnpparibas","bo","boo","boutique","br","brussels","bs","bt","budapest","build","builders","business","buzz","bv","bw","by","bz","bzh","ca","cab","cal","camera","camp","cancerresearch","canon","capetown","capital","caravan","cards","care","career","careers","cartier","casa","cash","cat","catering","cc","cd","center","ceo","cern","cf","cg","ch","channel","chat","cheap","christmas","chrome","church","ci","citic","city","ck","cl","claims","cleaning","click","clinic","clothing","club","cm","cn","co","coach","codes","coffee","college","cologne","com","community","company","computer","condos","construction","consulting","contractors","cooking","cool","coop","country","cr","credit","creditcard","cricket","crs","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cz","dabur","dad","dance","dating","day","dclk","de","deals","degree","delivery","democrat","dental","dentist","desi","design","dev","diamonds","diet","digital","direct","directory","discount","dj","dk","dm","dnp","do","docs","domains","doosan","durban","dvag","dz","eat","ec","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","equipment","er","es","esq","estate","et","eu","eurovision","eus","events","everbank","exchange","expert","exposed","fail","farm","fashion","feedback","fi","finance","financial","firmdale","fish","fishing","fit","fitness","fj","fk","flights","florist","flowers","flsmidth","fly","fm","fo","foo","forsale","foundation","fr","frl","frogans","fund","furniture","futbol","ga","gal","gallery","garden","gb","gbiz","gd","ge","gent","gf","gg","ggee","gh","gi","gift","gifts","gives","gl","glass","gle","global","globo","gm","gmail","gmo","gmx","gn","goog","google","gop","gov","gp","gq","gr","graphics","gratis","green","gripe","gs","gt","gu","guide","guitars","guru","gw","gy","hamburg","hangout","haus","healthcare","help","here","hermes","hiphop","hiv","hk","hm","hn","holdings","holiday","homes","horse","host","hosting","house","how","hr","ht","hu","ibm","id","ie","ifm","il","im","immo","immobilien","in","industries","info","ing","ink","institute","insure","int","international","investments","io","iq","ir","irish","is","it","iwc","jcb","je","jetzt","jm","jo","jobs","joburg","jp","juegos","kaufen","kddi","ke","kg","kh","ki","kim","kitchen","kiwi","km","kn","koeln","kp","kr","krd","kred","kw","ky","kyoto","kz","la","lacaixa","land","lat","latrobe","lawyer","lb","lc","lds","lease","legal","lgbt","li","lidl","life","lighting","limited","limo","link","lk","loans","london","lotte","lotto","lr","ls","lt","ltda","lu","luxe","luxury","lv","ly","ma","madrid","maison","management","mango","market","marketing","marriott","mc","md","me","media","meet","melbourne","meme","memorial","menu","mg","mh","miami","mil","mini","mk","ml","mm","mn","mo","mobi","moda","moe","monash","money","mormon","mortgage","moscow","motorcycles","mov","mp","mq","mr","ms","mt","mu","museum","mv","mw","mx","my","mz","na","nagoya","name","navy","nc","ne","net","network","neustar","new","nexus","nf","ng","ngo","nhk","ni","nico","ninja","nl","no","np","nr","nra","nrw","ntt","nu","nyc","nz","okinawa","om","one","ong","onl","ooo","org","organic","osaka","otsuka","ovh","pa","paris","partners","parts","party","pe","pf","pg","ph","pharmacy","photo","photography","photos","physio","pics","pictures","pink","pizza","pk","pl","place","plumbing","pm","pn","pohl","poker","porn","post","pr","praxi","press","pro","prod","productions","prof","properties","property","ps","pt","pub","pw","py","qa","qpon","quebec","re","realtor","recipes","red","rehab","reise","reisen","reit","ren","rentals","repair","report","republican","rest","restaurant","reviews","rich","rio","rip","ro","rocks","rodeo","rs","rsvp","ru","ruhr","rw","ryukyu","sa","saarland","sale","samsung","sarl","saxo","sb","sc","sca","scb","schmidt","schule","schwarz","science","scot","sd","se","services","sew","sexy","sg","sh","shiksha","shoes","shriram","si","singles","sj","sk","sky","sl","sm","sn","so","social","software","sohu","solar","solutions","soy","space","spiegel","sr","st","style","su","supplies","supply","support","surf","surgery","suzuki","sv","sx","sy","sydney","systems","sz","taipei","tatar","tattoo","tax","tc","td","technology","tel","temasek","tennis","tf","tg","th","tienda","tips","tires","tirol","tj","tk","tl","tm","tn","to","today","tokyo","tools","top","toshiba","town","toys","tp","tr","trade","training","travel","trust","tt","tui","tv","tw","tz","ua","ug","uk","university","uno","uol","us","uy","uz","va","vacations","vc","ve","vegas","ventures","versicherung","vet","vg","vi","viajes","video","villas","vision","vlaanderen","vn","vodka","vote","voting","voto","voyage","vu","wales","wang","watch","webcam","website","wed","wedding","wf","whoswho","wien","wiki","williamhill","wme","work","works","world","ws","wtc","wtf","佛山","集团","在线","한국","ভারত","八卦","موقع","公益","公司","移动","我爱你","москва","қаз","онлайн","сайт","срб","淡马锡","орг","삼성","சிங்கப்பூர்","商标","商店","商城","дети","мкд","中文网","中信","中国","中國","谷歌","భారత్","ලංකා","ભારત","भारत","网店","संगठन","网络","укр","香港","台湾","台灣","手机","мон","الجزائر","عمان","ایران","امارات","بازار","الاردن","بھارت","المغرب","السعودية","مليسيا","شبكة","გე","机构","组织机构","ไทย","سورية","рус","рф","تونس","みんな","グーグル","世界","ਭਾਰਤ","网址","游戏","vermögensberater","vermögensberatung","企业","مصر","قطر","广东","இலங்கை","இந்தியா","新加坡","فلسطين","政务","xxx","xyz","yachts","yandex","ye","yoga","yokohama","youtube","yt","za","zip","zm","zone","zuerich","zw"];function Fl(s){for(var e=s.length,t=s.split("(").length-1,f=s.split(")").length-1;f>t&&s.charAt(e-1)===")";)s=s.substr(0,e-1),f--,e--;return t>f&&(s=s.replace(/\)+$/,"")),s}const Ys={14:{"1f6dd":4867,"1f6de":4916,"1f6df":4923,"1f7f0":62832,"1f979":183,"1f9cc":1557,"1fa7b":61332,"1fa7c":61330,"1faa9":51093,"1faaa":61364,"1faab":61189,"1faac":51085,"1fab7":2651,"1fab8":2631,"1fab9":2672,"1faba":2673,"1fac3":1520,"1fac4":1521,"1fac5":1505,"1fad7":3793,"1fad8":3707,"1fad9":3804,"1fae0":111,"1fae1":136,"1fae2":132,"1fae3":133,"1fae4":174,"1fae5":142,"1fae6":1385,"1fae7":61353,"1faf0":1341,"1faf1":1332,"1faf2":1333,"1faf3":1334,"1faf4":1335,"1faf5":1351,"1faf6":1360,"1faf1-1f3fb-200d-1faf2-1f3fc":0,"1faf1-1f3fb-200d-1faf2-1f3fd":0,"1faf1-1f3fb-200d-1faf2-1f3fe":0,"1faf1-1f3fb-200d-1faf2-1f3ff":0,"1faf1-1f3fc-200d-1faf2-1f3fb":0,"1faf1-1f3fc-200d-1faf2-1f3fd":0,"1faf1-1f3fc-200d-1faf2-1f3fe":0,"1faf1-1f3fc-200d-1faf2-1f3ff":0,"1faf1-1f3fd-200d-1faf2-1f3fb":0,"1faf1-1f3fd-200d-1faf2-1f3fc":0,"1faf1-1f3fd-200d-1faf2-1f3fe":0,"1faf1-1f3fd-200d-1faf2-1f3ff":0,"1faf1-1f3fe-200d-1faf2-1f3fb":0,"1faf1-1f3fe-200d-1faf2-1f3fc":0,"1faf1-1f3fe-200d-1faf2-1f3fd":0,"1faf1-1f3fe-200d-1faf2-1f3ff":0,"1faf1-1f3ff-200d-1faf2-1f3fb":0,"1faf1-1f3ff-200d-1faf2-1f3fc":0,"1faf1-1f3ff-200d-1faf2-1f3fd":0,"1faf1-1f3ff-200d-1faf2-1f3fe":0,"1fac3-1f3fb":0,"1fac3-1f3fc":0,"1fac3-1f3fd":0,"1fac3-1f3fe":0,"1fac3-1f3ff":0,"1fac4-1f3fb":0,"1fac4-1f3fc":0,"1fac4-1f3fd":0,"1fac4-1f3fe":0,"1fac4-1f3ff":0,"1fac5-1f3fb":0,"1fac5-1f3fc":0,"1fac5-1f3fd":0,"1fac5-1f3fe":0,"1fac5-1f3ff":0,"1faf0-1f3fb":0,"1faf0-1f3fc":0,"1faf0-1f3fd":0,"1faf0-1f3fe":0,"1faf0-1f3ff":0,"1faf1-1f3fb":0,"1faf1-1f3fc":0,"1faf1-1f3fd":0,"1faf1-1f3fe":0,"1faf1-1f3ff":0,"1faf2-1f3fb":0,"1faf2-1f3fc":0,"1faf2-1f3fd":0,"1faf2-1f3fe":0,"1faf2-1f3ff":0,"1faf3-1f3fb":0,"1faf3-1f3fc":0,"1faf3-1f3fd":0,"1faf3-1f3fe":0,"1faf3-1f3ff":0,"1faf4-1f3fb":0,"1faf4-1f3fc":0,"1faf4-1f3fd":0,"1faf4-1f3fe":0,"1faf4-1f3ff":0,"1faf5-1f3fb":0,"1faf5-1f3fc":0,"1faf5-1f3fd":0,"1faf5-1f3fe":0,"1faf5-1f3ff":0,"1faf6-1f3fb":0,"1faf6-1f3fc":0,"1faf6-1f3fd":0,"1faf6-1f3fe":0,"1faf6-1f3ff":0},"":{2049:62835,2122:62863,2139:62888,2194:62764,2195:62763,2196:62762,2197:62756,2198:62758,2199:62760,2328:61194,2600:4990,2601:4998,2602:41013,2603:41018,2604:41020,2611:62851,2614:41014,2615:3781,2618:2667,2620:1106,2622:62753,2623:62754,2626:62783,2638:62780,2639:177,2648:62788,2649:62789,2650:62796,2651:62797,2652:62798,2653:62799,2660:51095,2663:51098,2665:51096,2666:51097,2668:4865,2692:61297,2693:4922,2694:61300,2696:61311,2697:61319,2699:61309,2702:61284,2705:62850,2708:4931,2709:61245,2712:61259,2714:62852,2716:62828,2721:62779,2728:51029,2733:62858,2734:62859,2744:41017,2747:62860,2753:62836,2754:62837,2755:62838,2757:62839,2763:1137,2764:1141,2795:62829,2796:62830,2797:62831,2934:62767,2935:62768,3030:62840,3297:62912,3299:62913,"0023-20e3":62864,"002a-20e3":62865,"0030-20e3":62866,"0031-20e3":62867,"0032-20e3":62868,"0033-20e3":62869,"0034-20e3":62870,"0035-20e3":62871,"0036-20e3":62872,"0037-20e3":62873,"0038-20e3":62874,"0039-20e3":62875,"00a9":62861,"00ae":62862,"1f004":51101,"1f0cf":51100,"1f170":62882,"1f171":62884,"1f17e":62893,"1f17f":62895,"1f18e":62883,"1f191":62885,"1f192":62886,"1f193":62887,"1f194":62889,"1f195":62891,"1f196":62892,"1f197":62894,"1f198":62896,"1f199":62897,"1f19a":62898,"1f1e6-1f1e8":71594,"1f1e6-1f1e9":71595,"1f1e6-1f1ea":71596,"1f1e6-1f1eb":71597,"1f1e6-1f1ec":71598,"1f1e6-1f1ee":71599,"1f1e6-1f1f1":71600,"1f1e6-1f1f2":71601,"1f1e6-1f1f4":71602,"1f1e6-1f1f6":71603,"1f1e6-1f1f7":71604,"1f1e6-1f1f8":71605,"1f1e6-1f1f9":71606,"1f1e6-1f1fa":71607,"1f1e6-1f1fc":71608,"1f1e6-1f1fd":71609,"1f1e6-1f1ff":71610,"1f1e7-1f1e6":71611,"1f1e7-1f1e7":71612,"1f1e7-1f1e9":71613,"1f1e7-1f1ea":71614,"1f1e7-1f1eb":71615,"1f1e7-1f1ec":71616,"1f1e7-1f1ed":71617,"1f1e7-1f1ee":71618,"1f1e7-1f1ef":71619,"1f1e7-1f1f1":71620,"1f1e7-1f1f2":71621,"1f1e7-1f1f3":71622,"1f1e7-1f1f4":71623,"1f1e7-1f1f6":71624,"1f1e7-1f1f7":71625,"1f1e7-1f1f8":71626,"1f1e7-1f1f9":71627,"1f1e7-1f1fb":71628,"1f1e7-1f1fc":71629,"1f1e7-1f1fe":71630,"1f1e7-1f1ff":71631,"1f1e8-1f1e6":71632,"1f1e8-1f1e8":71633,"1f1e8-1f1e9":71634,"1f1e8-1f1eb":71635,"1f1e8-1f1ec":71636,"1f1e8-1f1ed":71637,"1f1e8-1f1ee":71638,"1f1e8-1f1f0":71639,"1f1e8-1f1f1":71640,"1f1e8-1f1f2":71641,"1f1e8-1f1f3":71642,"1f1e8-1f1f4":71643,"1f1e8-1f1f5":71644,"1f1e8-1f1f7":71645,"1f1e8-1f1fa":71646,"1f1e8-1f1fb":71647,"1f1e8-1f1fc":71648,"1f1e8-1f1fd":71649,"1f1e8-1f1fe":71650,"1f1e8-1f1ff":71651,"1f1e9-1f1ea":71652,"1f1e9-1f1ec":71653,"1f1e9-1f1ef":71654,"1f1e9-1f1f0":71655,"1f1e9-1f1f2":71656,"1f1e9-1f1f4":71657,"1f1e9-1f1ff":71658,"1f1ea-1f1e6":71659,"1f1ea-1f1e8":71660,"1f1ea-1f1ea":71661,"1f1ea-1f1ec":71662,"1f1ea-1f1ed":71663,"1f1ea-1f1f7":71664,"1f1ea-1f1f8":71665,"1f1ea-1f1f9":71666,"1f1ea-1f1fa":71667,"1f1eb-1f1ee":71668,"1f1eb-1f1ef":71669,"1f1eb-1f1f0":71670,"1f1eb-1f1f2":71671,"1f1eb-1f1f4":71672,"1f1eb-1f1f7":71673,"1f1ec-1f1e6":71674,"1f1ec-1f1e7":71675,"1f1ec-1f1e9":71676,"1f1ec-1f1ea":71677,"1f1ec-1f1eb":71678,"1f1ec-1f1ec":71679,"1f1ec-1f1ed":71680,"1f1ec-1f1ee":71681,"1f1ec-1f1f1":71682,"1f1ec-1f1f2":71683,"1f1ec-1f1f3":71684,"1f1ec-1f1f5":71685,"1f1ec-1f1f6":71686,"1f1ec-1f1f7":71687,"1f1ec-1f1f8":71688,"1f1ec-1f1f9":71689,"1f1ec-1f1fa":71690,"1f1ec-1f1fc":71691,"1f1ec-1f1fe":71692,"1f1ed-1f1f0":71693,"1f1ed-1f1f2":71694,"1f1ed-1f1f3":71695,"1f1ed-1f1f7":71696,"1f1ed-1f1f9":71697,"1f1ed-1f1fa":71698,"1f1ee-1f1e8":71699,"1f1ee-1f1e9":71700,"1f1ee-1f1ea":71701,"1f1ee-1f1f1":71702,"1f1ee-1f1f2":71703,"1f1ee-1f1f3":71704,"1f1ee-1f1f4":71705,"1f1ee-1f1f6":71706,"1f1ee-1f1f7":71707,"1f1ee-1f1f8":71708,"1f1ee-1f1f9":71709,"1f1ef-1f1ea":71710,"1f1ef-1f1f2":71711,"1f1ef-1f1f4":71712,"1f1ef-1f1f5":71713,"1f1f0-1f1ea":71714,"1f1f0-1f1ec":71715,"1f1f0-1f1ed":71716,"1f1f0-1f1ee":71717,"1f1f0-1f1f2":71718,"1f1f0-1f1f3":71719,"1f1f0-1f1f5":71720,"1f1f0-1f1f7":71721,"1f1f0-1f1fc":71722,"1f1f0-1f1fe":71723,"1f1f0-1f1ff":71724,"1f1f1-1f1e6":71725,"1f1f1-1f1e7":71726,"1f1f1-1f1e8":71727,"1f1f1-1f1ee":71728,"1f1f1-1f1f0":71729,"1f1f1-1f1f7":71730,"1f1f1-1f1f8":71731,"1f1f1-1f1f9":71732,"1f1f1-1f1fa":71733,"1f1f1-1f1fb":71734,"1f1f1-1f1fe":71735,"1f1f2-1f1e6":71736,"1f1f2-1f1e8":71737,"1f1f2-1f1e9":71738,"1f1f2-1f1ea":71739,"1f1f2-1f1eb":71740,"1f1f2-1f1ec":71741,"1f1f2-1f1ed":71742,"1f1f2-1f1f0":71743,"1f1f2-1f1f1":71744,"1f1f2-1f1f2":71745,"1f1f2-1f1f3":71746,"1f1f2-1f1f4":71747,"1f1f2-1f1f5":71748,"1f1f2-1f1f6":71749,"1f1f2-1f1f7":71750,"1f1f2-1f1f8":71751,"1f1f2-1f1f9":71752,"1f1f2-1f1fa":71753,"1f1f2-1f1fb":71754,"1f1f2-1f1fc":71755,"1f1f2-1f1fd":71756,"1f1f2-1f1fe":71757,"1f1f2-1f1ff":71758,"1f1f3-1f1e6":71759,"1f1f3-1f1e8":71760,"1f1f3-1f1ea":71761,"1f1f3-1f1eb":71762,"1f1f3-1f1ec":71763,"1f1f3-1f1ee":71764,"1f1f3-1f1f1":71765,"1f1f3-1f1f4":71766,"1f1f3-1f1f5":71767,"1f1f3-1f1f7":71768,"1f1f3-1f1fa":71769,"1f1f3-1f1ff":71770,"1f1f4-1f1f2":71771,"1f1f5-1f1e6":71772,"1f1f5-1f1ea":71773,"1f1f5-1f1eb":71774,"1f1f5-1f1ec":71775,"1f1f5-1f1ed":71776,"1f1f5-1f1f0":71777,"1f1f5-1f1f1":71778,"1f1f5-1f1f2":71779,"1f1f5-1f1f3":71780,"1f1f5-1f1f7":71781,"1f1f5-1f1f8":71782,"1f1f5-1f1f9":71783,"1f1f5-1f1fc":71784,"1f1f5-1f1fe":71785,"1f1f6-1f1e6":71786,"1f1f7-1f1ea":71787,"1f1f7-1f1f4":71788,"1f1f7-1f1f8":71789,"1f1f7-1f1fa":71790,"1f1f7-1f1fc":71791,"1f1f8-1f1e6":71792,"1f1f8-1f1e7":71793,"1f1f8-1f1e8":71794,"1f1f8-1f1e9":71795,"1f1f8-1f1ea":71796,"1f1f8-1f1ec":71797,"1f1f8-1f1ed":71798,"1f1f8-1f1ee":71799,"1f1f8-1f1ef":71800,"1f1f8-1f1f0":71801,"1f1f8-1f1f1":71802,"1f1f8-1f1f2":71803,"1f1f8-1f1f3":71804,"1f1f8-1f1f4":71805,"1f1f8-1f1f7":71806,"1f1f8-1f1f8":71807,"1f1f8-1f1f9":71808,"1f1f8-1f1fb":71809,"1f1f8-1f1fd":71810,"1f1f8-1f1fe":71811,"1f1f8-1f1ff":71812,"1f1f9-1f1e6":71813,"1f1f9-1f1e8":71814,"1f1f9-1f1e9":71815,"1f1f9-1f1eb":71816,"1f1f9-1f1ec":71817,"1f1f9-1f1ed":71818,"1f1f9-1f1ef":71819,"1f1f9-1f1f0":71820,"1f1f9-1f1f1":71821,"1f1f9-1f1f2":71822,"1f1f9-1f1f3":71823,"1f1f9-1f1f4":71824,"1f1f9-1f1f7":71825,"1f1f9-1f1f9":71826,"1f1f9-1f1fb":71827,"1f1f9-1f1fc":71828,"1f1f9-1f1ff":71829,"1f1fa-1f1e6":71830,"1f1fa-1f1ec":71831,"1f1fa-1f1f2":71832,"1f1fa-1f1f3":71833,"1f1fa-1f1f8":71834,"1f1fa-1f1fe":71835,"1f1fa-1f1ff":71836,"1f1fb-1f1e6":71837,"1f1fb-1f1e8":71838,"1f1fb-1f1ea":71839,"1f1fb-1f1ec":71840,"1f1fb-1f1ee":71841,"1f1fb-1f1f3":71842,"1f1fb-1f1fa":71843,"1f1fc-1f1eb":71844,"1f1fc-1f1f8":71845,"1f1fd-1f1f0":71846,"1f1fe-1f1ea":71847,"1f1fe-1f1f9":71848,"1f1ff-1f1e6":71849,"1f1ff-1f1f2":71850,"1f1ff-1f1fc":71851,"1f201":62899,"1f202":62900,"1f21a":62906,"1f22f":62903,"1f232":62907,"1f233":62911,"1f234":62910,"1f235":62915,"1f236":62902,"1f237":62901,"1f238":62909,"1f239":62905,"1f23a":62914,"1f250":62904,"1f251":62908,"1f300":41010,"1f301":4857,"1f302":41012,"1f303":4858,"1f304":4860,"1f305":4861,"1f306":4862,"1f307":4863,"1f308":41011,"1f309":4864,"1f30a":41023,"1f30b":4815,"1f30c":4997,"1f30d":4806,"1f30e":4807,"1f30f":4808,"1f310":4809,"1f311":4977,"1f312":4978,"1f313":4979,"1f314":4980,"1f315":4981,"1f316":4982,"1f317":4983,"1f318":4984,"1f319":4985,"1f31a":4986,"1f31b":4987,"1f31c":4988,"1f31d":4991,"1f31e":4992,"1f31f":4995,"1f320":4996,"1f321":4989,"1f324":41001,"1f325":41002,"1f326":41003,"1f327":41004,"1f328":41005,"1f329":41006,"1f32a":41007,"1f32b":41008,"1f32c":41009,"1f32d":3725,"1f32e":3727,"1f32f":3728,"1f330":3708,"1f331":2659,"1f332":2661,"1f333":2662,"1f334":2663,"1f335":2664,"1f336":3698,"1f337":2658,"1f338":2649,"1f339":2653,"1f33a":2655,"1f33b":2656,"1f33c":2657,"1f33d":3697,"1f33e":2665,"1f33f":2666,"1f340":2668,"1f341":2669,"1f342":2670,"1f343":2671,"1f344":3705,"1f345":3690,"1f346":3694,"1f347":3674,"1f348":3675,"1f349":3676,"1f34a":3677,"1f34b":3678,"1f34c":3679,"1f34d":3680,"1f34e":3682,"1f34f":3683,"1f350":3684,"1f351":3685,"1f352":3686,"1f353":3687,"1f354":3722,"1f355":3724,"1f356":3718,"1f357":3719,"1f358":3744,"1f359":3745,"1f35a":3746,"1f35b":3747,"1f35c":3748,"1f35d":3749,"1f35e":3709,"1f35f":3723,"1f360":3750,"1f361":3756,"1f362":3751,"1f363":3752,"1f364":3753,"1f365":3754,"1f366":3765,"1f367":3766,"1f368":3767,"1f369":3768,"1f36a":3769,"1f36b":3774,"1f36c":3775,"1f36d":3776,"1f36e":3777,"1f36f":3778,"1f370":3771,"1f371":3743,"1f372":3735,"1f373":3733,"1f374":3801,"1f375":3783,"1f376":3784,"1f377":3786,"1f378":3787,"1f379":3788,"1f37a":3789,"1f37b":3790,"1f37c":3779,"1f37d":3800,"1f37e":3785,"1f37f":3739,"1f380":51040,"1f381":51041,"1f382":3770,"1f383":51024,"1f384":51025,"1f385":1527,"1f386":51026,"1f387":51027,"1f388":51030,"1f389":51031,"1f38a":51032,"1f38b":51033,"1f38c":71588,"1f38d":51034,"1f38e":51035,"1f38f":51036,"1f390":51037,"1f391":51038,"1f392":61134,"1f393":61147,"1f396":51045,"1f397":51042,"1f399":61167,"1f39a":61168,"1f39b":61169,"1f39e":61203,"1f39f":51043,"1f3a0":4866,"1f3a1":4868,"1f3a2":4869,"1f3a3":51072,"1f3a4":61170,"1f3a5":61202,"1f3a6":62819,"1f3a7":61171,"1f3a8":51105,"1f3a9":61146,"1f3aa":4871,"1f3ab":51044,"1f3ac":61205,"1f3ad":51103,"1f3ae":51086,"1f3af":51078,"1f3b0":51088,"1f3b1":51081,"1f3b2":51089,"1f3b3":51060,"1f3b4":51102,"1f3b5":61165,"1f3b6":61166,"1f3b7":61173,"1f3b8":61175,"1f3b9":61176,"1f3ba":61177,"1f3bb":61178,"1f3bc":61164,"1f3bd":51074,"1f3be":51058,"1f3bf":51075,"1f3c0":51054,"1f3c1":71586,"1f3c2":1600,"1f3c3-200d-2640":1584,"1f3c3-200d-2642":1583,"1f3c3":1582,"1f3c4-200d-2640":1606,"1f3c4-200d-2642":1605,"1f3c4":1604,"1f3c5":51047,"1f3c6":51046,"1f3c7":1598,"1f3c8":51056,"1f3c9":51057,"1f3ca-200d-2640":1612,"1f3ca-200d-2642":1611,"1f3ca":1610,"1f3cb-200d-2640":1618,"1f3cb-200d-2642":1617,"1f3cb":1616,"1f3cc-200d-2640":1603,"1f3cc-200d-2642":1602,"1f3cc":1601,"1f3cd":4902,"1f3ce":4901,"1f3cf":51061,"1f3d0":51055,"1f3d1":51062,"1f3d2":51063,"1f3d3":51065,"1f3d4":4813,"1f3d5":4817,"1f3d6":4818,"1f3d7":4824,"1f3d8":4829,"1f3d9":4859,"1f3da":4830,"1f3db":4823,"1f3dc":4819,"1f3dd":4820,"1f3de":4821,"1f3df":4822,"1f3e0":4831,"1f3e1":4832,"1f3e2":4833,"1f3e3":4834,"1f3e4":4835,"1f3e5":4836,"1f3e6":4837,"1f3e7":62729,"1f3e8":4838,"1f3e9":4839,"1f3ea":4840,"1f3eb":4841,"1f3ec":4842,"1f3ed":4843,"1f3ee":61216,"1f3ef":4844,"1f3f0":4845,"1f3f3-200d-1f308":71591,"1f3f3-200d-26a7":71592,"1f3f3":71590,"1f3f4-200d-2620":71593,"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f":71852,"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f":71853,"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f":71854,"1f3f4":71589,"1f3f5":2652,"1f3f7":61234,"1f3f8":51066,"1f3f9":61303,"1f3fa":3805,"1f3fb":9525,"1f3fc":9526,"1f3fd":9527,"1f3fe":9528,"1f3ff":9529,"1f400":2576,"1f401":2575,"1f402":2556,"1f403":2557,"1f404":2558,"1f405":2547,"1f406":2548,"1f407":2579,"1f408-200d-2b1b":2544,"1f408":2543,"1f409":2618,"1f40a":2613,"1f40b":2622,"1f40c":2632,"1f40d":2616,"1f40e":2550,"1f40f":2563,"1f410":2565,"1f411":2564,"1f412":2531,"1f413":2596,"1f414":2595,"1f415-200d-1f9ba":2537,"1f415":2535,"1f416":2560,"1f417":2561,"1f418":2570,"1f419":2629,"1f41a":2630,"1f41b":2634,"1f41c":2635,"1f41d":2636,"1f41e":2638,"1f41f":2625,"1f420":2626,"1f421":2627,"1f422":2614,"1f423":2597,"1f424":2598,"1f425":2599,"1f426":2600,"1f427":2601,"1f428":2586,"1f429":2538,"1f42a":2566,"1f42b":2567,"1f42c":2623,"1f42d":2574,"1f42e":2555,"1f42f":2546,"1f430":2578,"1f431":2542,"1f432":2617,"1f433":2621,"1f434":2549,"1f435":2530,"1f436":2534,"1f437":2559,"1f438":2612,"1f439":2577,"1f43a":2539,"1f43b-200d-2744":2585,"1f43b":2584,"1f43c":2587,"1f43d":2562,"1f43e":2593,"1f43f":2580,"1f440":1381,"1f441-200d-1f5e8":1159,"1f441":1382,"1f442":1373,"1f443":1375,"1f444":1384,"1f445":1383,"1f446":1347,"1f447":1349,"1f448":1345,"1f449":1346,"1f44a":1355,"1f44b":1327,"1f44c":1336,"1f44d":1352,"1f44e":1353,"1f44f":1358,"1f450":1361,"1f451":61144,"1f452":61145,"1f453":61110,"1f454":61115,"1f455":61116,"1f456":61117,"1f457":61122,"1f458":61123,"1f459":61128,"1f45a":61129,"1f45b":61130,"1f45c":61131,"1f45d":61132,"1f45e":61136,"1f45f":61137,"1f460":61140,"1f461":61141,"1f462":61143,"1f463":1687,"1f464":1684,"1f465":1685,"1f466":1388,"1f467":1389,"1f468-200d-1f33e":1457,"1f468-200d-1f373":1460,"1f468-200d-1f37c":1524,"1f468-200d-1f393":1448,"1f468-200d-1f3a4":1478,"1f468-200d-1f3a8":1481,"1f468-200d-1f3eb":1451,"1f468-200d-1f3ed":1466,"1f468-200d-1f466-200d-1f466":1674,"1f468-200d-1f466":1673,"1f468-200d-1f467-200d-1f466":1676,"1f468-200d-1f467-200d-1f467":1677,"1f468-200d-1f467":1675,"1f468-200d-1f468-200d-1f466":1663,"1f468-200d-1f468-200d-1f466-200d-1f466":1666,"1f468-200d-1f468-200d-1f467":1664,"1f468-200d-1f468-200d-1f467-200d-1f466":1665,"1f468-200d-1f468-200d-1f467-200d-1f467":1667,"1f468-200d-1f469-200d-1f466":1658,"1f468-200d-1f469-200d-1f466-200d-1f466":1661,"1f468-200d-1f469-200d-1f467":1659,"1f468-200d-1f469-200d-1f467-200d-1f466":1660,"1f468-200d-1f469-200d-1f467-200d-1f467":1662,"1f468-200d-1f4bb":1475,"1f468-200d-1f4bc":1469,"1f468-200d-1f527":1463,"1f468-200d-1f52c":1472,"1f468-200d-1f680":1487,"1f468-200d-1f692":1490,"1f468-200d-1f9af":1574,"1f468-200d-1f9b0":1396,"1f468-200d-1f9b1":1397,"1f468-200d-1f9b2":1399,"1f468-200d-1f9b3":1398,"1f468-200d-1f9bc":1577,"1f468-200d-1f9bd":1580,"1f468-200d-2695":1445,"1f468-200d-2696":1454,"1f468-200d-2708":1484,"1f468-200d-2764-200d-1f468":1655,"1f468-200d-2764-200d-1f48b-200d-1f468":1651,"1f468":1392,"1f469-200d-1f33e":1458,"1f469-200d-1f373":1461,"1f469-200d-1f37c":1523,"1f469-200d-1f393":1449,"1f469-200d-1f3a4":1479,"1f469-200d-1f3a8":1482,"1f469-200d-1f3eb":1452,"1f469-200d-1f3ed":1467,"1f469-200d-1f466-200d-1f466":1679,"1f469-200d-1f466":1678,"1f469-200d-1f467-200d-1f466":1681,"1f469-200d-1f467-200d-1f467":1682,"1f469-200d-1f467":1680,"1f469-200d-1f469-200d-1f466":1668,"1f469-200d-1f469-200d-1f466-200d-1f466":1671,"1f469-200d-1f469-200d-1f467":1669,"1f469-200d-1f469-200d-1f467-200d-1f466":1670,"1f469-200d-1f469-200d-1f467-200d-1f467":1672,"1f469-200d-1f4bb":1476,"1f469-200d-1f4bc":1470,"1f469-200d-1f527":1464,"1f469-200d-1f52c":1473,"1f469-200d-1f680":1488,"1f469-200d-1f692":1491,"1f469-200d-1f9af":1575,"1f469-200d-1f9b0":1401,"1f469-200d-1f9b1":1403,"1f469-200d-1f9b2":1407,"1f469-200d-1f9b3":1405,"1f469-200d-1f9bc":1578,"1f469-200d-1f9bd":1581,"1f469-200d-2695":1446,"1f469-200d-2696":1455,"1f469-200d-2708":1485,"1f469-200d-2764-200d-1f468":1654,"1f469-200d-2764-200d-1f469":1656,"1f469-200d-2764-200d-1f48b-200d-1f468":1650,"1f469-200d-2764-200d-1f48b-200d-1f469":1652,"1f469":1400,"1f46a":1657,"1f46b":1647,"1f46c":1648,"1f46d":1646,"1f46e-200d-2640":1494,"1f46e-200d-2642":1493,"1f46e":1492,"1f46f-200d-2640":1590,"1f46f-200d-2642":1589,"1f46f":1588,"1f470-200d-2640":1518,"1f470-200d-2642":1517,"1f470":1516,"1f471-200d-2640":1409,"1f471-200d-2642":1410,"1f471":1391,"1f472":1511,"1f473-200d-2640":1510,"1f473-200d-2642":1509,"1f473":1508,"1f474":1412,"1f475":1413,"1f476":1386,"1f477-200d-2640":1504,"1f477-200d-2642":1503,"1f477":1502,"1f478":1507,"1f479":1109,"1f47a":1110,"1f47b":1111,"1f47c":1526,"1f47d":1112,"1f47e":1113,"1f47f":1104,"1f480":1105,"1f481-200d-2640":1428,"1f481-200d-2642":1427,"1f481":1426,"1f482-200d-2640":1500,"1f482-200d-2642":1499,"1f482":1498,"1f483":1585,"1f484":61152,"1f485":1366,"1f486-200d-2640":1560,"1f486-200d-2642":1559,"1f486":1558,"1f487-200d-2640":1563,"1f487-200d-2642":1562,"1f487":1561,"1f488":4870,"1f489":61326,"1f48a":61328,"1f48b":1127,"1f48c":1128,"1f48d":61153,"1f48e":61154,"1f48f":1649,"1f490":2648,"1f491":1653,"1f492":4846,"1f493":1133,"1f494":1138,"1f495":1135,"1f496":1131,"1f497":1132,"1f498":1129,"1f499":1145,"1f49a":1144,"1f49b":1143,"1f49c":1146,"1f49d":1130,"1f49e":1134,"1f49f":1136,"1f4a0":62946,"1f4a1":61214,"1f4a2":1151,"1f4a3":1157,"1f4a4":1163,"1f4a5":1152,"1f4a6":1154,"1f4a7":41022,"1f4a8":1155,"1f4a9":1107,"1f4aa":1368,"1f4ab":1153,"1f4ac":1158,"1f4ad":1162,"1f4ae":2650,"1f4af":1150,"1f4b0":61235,"1f4b1":62841,"1f4b2":62842,"1f4b3":61242,"1f4b4":61237,"1f4b5":61238,"1f4b6":61239,"1f4b7":61240,"1f4b8":61241,"1f4b9":61244,"1f4ba":4936,"1f4bb":61191,"1f4bc":61265,"1f4bd":61197,"1f4be":61198,"1f4bf":61199,"1f4c0":61200,"1f4c1":61266,"1f4c2":61267,"1f4c3":61227,"1f4c4":61229,"1f4c5":61269,"1f4c6":61270,"1f4c7":61273,"1f4c8":61274,"1f4c9":61275,"1f4ca":61276,"1f4cb":61277,"1f4cc":61278,"1f4cd":61279,"1f4ce":61280,"1f4cf":61282,"1f4d0":61283,"1f4d1":61232,"1f4d2":61226,"1f4d3":61225,"1f4d4":61218,"1f4d5":61219,"1f4d6":61220,"1f4d7":61221,"1f4d8":61222,"1f4d9":61223,"1f4da":61224,"1f4db":62847,"1f4dc":61228,"1f4dd":61264,"1f4de":61185,"1f4df":61186,"1f4e0":61187,"1f4e1":61325,"1f4e2":61159,"1f4e3":61160,"1f4e4":61249,"1f4e5":61250,"1f4e6":61251,"1f4e7":61246,"1f4e8":61247,"1f4e9":61248,"1f4ea":61253,"1f4eb":61252,"1f4ec":61254,"1f4ed":61255,"1f4ee":61256,"1f4ef":61161,"1f4f0":61230,"1f4f1":61182,"1f4f2":61183,"1f4f3":62823,"1f4f4":62824,"1f4f5":62751,"1f4f6":62822,"1f4f7":61207,"1f4f8":61208,"1f4f9":61209,"1f4fa":61206,"1f4fb":61172,"1f4fc":61210,"1f4fd":61204,"1f4ff":61151,"1f500":62801,"1f501":62802,"1f502":62803,"1f503":62769,"1f504":62770,"1f505":62820,"1f506":62821,"1f507":61155,"1f508":61156,"1f509":61157,"1f50a":61158,"1f50b":61188,"1f50c":61190,"1f50d":61211,"1f50e":61212,"1f50f":61290,"1f510":61291,"1f511":61292,"1f512":61288,"1f513":61289,"1f514":61162,"1f515":61163,"1f516":61233,"1f517":61313,"1f518":62947,"1f519":62771,"1f51a":62772,"1f51b":62773,"1f51c":62774,"1f51d":62775,"1f51e":62752,"1f51f":62876,"1f520":62877,"1f521":62878,"1f522":62879,"1f523":62880,"1f524":62881,"1f525":41021,"1f526":61215,"1f527":61306,"1f528":61294,"1f529":61308,"1f52a":3803,"1f52b":61301,"1f52c":61323,"1f52d":61324,"1f52e":51082,"1f52f":62787,"1f530":62848,"1f531":62846,"1f532":62949,"1f533":62948,"1f534":62916,"1f535":62920,"1f536":62940,"1f537":62941,"1f538":62942,"1f539":62943,"1f53a":62944,"1f53b":62945,"1f53c":62811,"1f53d":62813,"1f549":62778,"1f54a":2602,"1f54b":4854,"1f54c":4850,"1f54d":4852,"1f54e":62786,"1f550":4955,"1f551":4957,"1f552":4959,"1f553":4961,"1f554":4963,"1f555":4965,"1f556":4967,"1f557":4969,"1f558":4971,"1f559":4973,"1f55a":4975,"1f55b":4953,"1f55c":4956,"1f55d":4958,"1f55e":4960,"1f55f":4962,"1f560":4964,"1f561":4966,"1f562":4968,"1f563":4970,"1f564":4972,"1f565":4974,"1f566":4976,"1f567":4954,"1f56f":61213,"1f570":4952,"1f573":1156,"1f574":1587,"1f575-200d-2640":1497,"1f575-200d-2642":1496,"1f575":1495,"1f576":61111,"1f577":2641,"1f578":2642,"1f579":51087,"1f57a":1586,"1f587":61281,"1f58a":61261,"1f58b":61260,"1f58c":61262,"1f58d":61263,"1f590":1329,"1f595":1348,"1f596":1331,"1f5a4":1148,"1f5a5":61192,"1f5a8":61193,"1f5b1":61195,"1f5b2":61196,"1f5bc":51104,"1f5c2":61268,"1f5c3":61285,"1f5c4":61286,"1f5d1":61287,"1f5d2":61271,"1f5d3":61272,"1f5dc":61310,"1f5dd":61293,"1f5de":61231,"1f5e1":61299,"1f5e3":1683,"1f5e8":1160,"1f5ef":1161,"1f5f3":61257,"1f5fa":4810,"1f5fb":4816,"1f5fc":4847,"1f5fd":4848,"1f5fe":4811,"1f5ff":61362,"1f600":11,"1f601":14,"1f602":18,"1f603":12,"1f604":13,"1f605":16,"1f606":15,"1f607":114,"1f608":1103,"1f609":112,"1f60a":113,"1f60b":124,"1f60c":150,"1f60d":116,"1f60e":170,"1f60f":144,"1f610":139,"1f611":140,"1f612":145,"1f613":195,"1f614":151,"1f615":173,"1f616":192,"1f617":119,"1f618":118,"1f619":122,"1f61a":121,"1f61b":125,"1f61c":126,"1f61d":128,"1f61e":194,"1f61f":175,"1f620":1101,"1f621":1100,"1f622":189,"1f623":193,"1f624":199,"1f625":188,"1f626":184,"1f627":185,"1f628":186,"1f629":196,"1f62a":152,"1f62b":197,"1f62c":147,"1f62d":190,"1f62e-200d-1f4a8":148,"1f62e":178,"1f62f":179,"1f630":187,"1f631":191,"1f632":180,"1f633":181,"1f634":154,"1f635-200d-1f4ab":165,"1f635":164,"1f636-200d-1f32b":143,"1f636":141,"1f637":155,"1f638":1116,"1f639":1117,"1f63a":1115,"1f63b":1118,"1f63c":1119,"1f63d":1120,"1f63e":1123,"1f63f":1122,"1f640":1121,"1f641":176,"1f642":19,"1f643":110,"1f644":146,"1f645-200d-2640":1422,"1f645-200d-2642":1421,"1f645":1420,"1f646-200d-2640":1425,"1f646-200d-2642":1424,"1f646":1423,"1f647-200d-2640":1437,"1f647-200d-2642":1436,"1f647":1435,"1f648":1124,"1f649":1125,"1f64a":1126,"1f64b-200d-2640":1431,"1f64b-200d-2642":1430,"1f64b":1429,"1f64c":1359,"1f64d-200d-2640":1416,"1f64d-200d-2642":1415,"1f64d":1414,"1f64e-200d-2640":1419,"1f64e-200d-2642":1418,"1f64e":1417,"1f64f":1364,"1f680":4942,"1f681":4937,"1f682":4872,"1f683":4873,"1f684":4874,"1f685":4875,"1f686":4876,"1f687":4877,"1f688":4878,"1f689":4879,"1f68a":4880,"1f68b":4883,"1f68c":4884,"1f68d":4885,"1f68e":4886,"1f68f":4911,"1f690":4887,"1f691":4888,"1f692":4889,"1f693":4890,"1f694":4891,"1f695":4892,"1f696":4893,"1f697":4894,"1f698":4895,"1f699":4896,"1f69a":4898,"1f69b":4899,"1f69c":4900,"1f69d":4881,"1f69e":4882,"1f69f":4938,"1f6a0":4939,"1f6a1":4940,"1f6a2":4930,"1f6a3-200d-2640":1609,"1f6a3-200d-2642":1608,"1f6a3":1607,"1f6a4":4926,"1f6a5":4918,"1f6a6":4919,"1f6a7":4921,"1f6a8":4917,"1f6a9":71587,"1f6aa":61333,"1f6ab":62745,"1f6ac":61358,"1f6ad":62747,"1f6ae":62730,"1f6af":62748,"1f6b0":62731,"1f6b1":62749,"1f6b2":4907,"1f6b3":62746,"1f6b4-200d-2640":1621,"1f6b4-200d-2642":1620,"1f6b4":1619,"1f6b5-200d-2640":1624,"1f6b5-200d-2642":1623,"1f6b5":1622,"1f6b6-200d-2640":1566,"1f6b6-200d-2642":1565,"1f6b6":1564,"1f6b7":62750,"1f6b8":62743,"1f6b9":62733,"1f6ba":62734,"1f6bb":62735,"1f6bc":62736,"1f6bd":61340,"1f6be":62737,"1f6bf":61342,"1f6c0":1643,"1f6c1":61343,"1f6c2":62738,"1f6c3":62739,"1f6c4":62740,"1f6c5":62741,"1f6cb":61338,"1f6cc":1644,"1f6cd":61133,"1f6ce":4944,"1f6cf":61337,"1f6d0":62776,"1f6d1":4920,"1f6d2":61357,"1f6d5":4851,"1f6d6":4828,"1f6d7":61334,"1f6e0":61298,"1f6e1":61304,"1f6e2":4914,"1f6e3":4912,"1f6e4":4913,"1f6e5":4929,"1f6e9":4932,"1f6eb":4933,"1f6ec":4934,"1f6f0":4941,"1f6f3":4927,"1f6f4":4908,"1f6f5":4903,"1f6f6":4925,"1f6f7":51076,"1f6f8":4943,"1f6f9":4909,"1f6fa":4906,"1f6fb":4897,"1f6fc":4910,"1f7e0":62917,"1f7e1":62918,"1f7e2":62919,"1f7e3":62921,"1f7e4":62922,"1f7e5":62925,"1f7e6":62929,"1f7e7":62926,"1f7e8":62927,"1f7e9":62928,"1f7ea":62930,"1f7eb":62931,"1f90c":1337,"1f90d":1149,"1f90e":1147,"1f90f":1338,"1f910":137,"1f911":129,"1f912":156,"1f913":171,"1f914":135,"1f915":157,"1f916":1114,"1f917":130,"1f918":1343,"1f919":1344,"1f91a":1328,"1f91b":1356,"1f91c":1357,"1f91d":1363,"1f91e":1340,"1f91f":1342,"1f920":167,"1f921":1108,"1f922":158,"1f923":17,"1f924":153,"1f925":149,"1f926-200d-2640":1440,"1f926-200d-2642":1439,"1f926":1438,"1f927":160,"1f928":138,"1f929":117,"1f92a":127,"1f92b":134,"1f92c":1102,"1f92d":131,"1f92e":159,"1f92f":166,"1f930":1519,"1f931":1522,"1f932":1362,"1f933":1367,"1f934":1506,"1f935-200d-2640":1515,"1f935-200d-2642":1514,"1f935":1513,"1f936":1528,"1f937-200d-2640":1443,"1f937-200d-2642":1442,"1f937":1441,"1f938-200d-2640":1627,"1f938-200d-2642":1626,"1f938":1625,"1f939-200d-2640":1639,"1f939-200d-2642":1638,"1f939":1637,"1f93a":1597,"1f93c-200d-2640":1630,"1f93c-200d-2642":1629,"1f93c":1628,"1f93d-200d-2640":1633,"1f93d-200d-2642":1632,"1f93d":1631,"1f93e-200d-2640":1636,"1f93e-200d-2642":1635,"1f93e":1634,"1f93f":51073,"1f940":2654,"1f941":61180,"1f942":3791,"1f943":3792,"1f944":3802,"1f945":51069,"1f947":51048,"1f948":51049,"1f949":51050,"1f94a":51067,"1f94b":51068,"1f94c":51077,"1f94d":51064,"1f94e":51053,"1f94f":51059,"1f950":3710,"1f951":3693,"1f952":3700,"1f953":3721,"1f954":3695,"1f955":3696,"1f956":3711,"1f957":3738,"1f958":3734,"1f959":3730,"1f95a":3732,"1f95b":3780,"1f95c":3706,"1f95d":3689,"1f95e":3715,"1f95f":3757,"1f960":3758,"1f961":3759,"1f962":3799,"1f963":3737,"1f964":3794,"1f965":3692,"1f966":3702,"1f967":3773,"1f968":3713,"1f969":3720,"1f96a":3726,"1f96b":3742,"1f96c":3701,"1f96d":3681,"1f96e":3755,"1f96f":3714,"1f970":115,"1f971":198,"1f972":123,"1f973":168,"1f974":163,"1f975":161,"1f976":162,"1f977":1501,"1f978":169,"1f97a":182,"1f97b":61124,"1f97c":61113,"1f97d":61112,"1f97e":61138,"1f97f":61139,"1f980":3760,"1f981":2545,"1f982":2643,"1f983":2594,"1f984":2551,"1f985":2603,"1f986":2604,"1f987":2583,"1f988":2628,"1f989":2606,"1f98a":2540,"1f98b":2633,"1f98c":2553,"1f98d":2532,"1f98e":2615,"1f98f":2572,"1f990":3762,"1f991":3763,"1f992":2569,"1f993":2552,"1f994":2582,"1f995":2619,"1f996":2620,"1f997":2639,"1f998":2591,"1f999":2568,"1f99a":2610,"1f99b":2573,"1f99c":2611,"1f99d":2541,"1f99e":3761,"1f99f":2644,"1f9a0":2647,"1f9a1":2592,"1f9a2":2605,"1f9a3":2571,"1f9a4":2607,"1f9a5":2588,"1f9a6":2589,"1f9a7":2533,"1f9a8":2590,"1f9a9":2609,"1f9aa":3764,"1f9ab":2581,"1f9ac":2554,"1f9ad":2624,"1f9ae":2536,"1f9af":61312,"1f9b4":1380,"1f9b5":1371,"1f9b6":1372,"1f9b7":1379,"1f9b8-200d-2640":1532,"1f9b8-200d-2642":1531,"1f9b8":1530,"1f9b9-200d-2640":1535,"1f9b9-200d-2642":1534,"1f9b9":1533,"1f9ba":61114,"1f9bb":1374,"1f9bc":4905,"1f9bd":4904,"1f9be":1369,"1f9bf":1370,"1f9c0":3717,"1f9c1":3772,"1f9c2":3741,"1f9c3":3796,"1f9c4":3703,"1f9c5":3704,"1f9c6":3731,"1f9c7":3716,"1f9c8":3740,"1f9c9":3797,"1f9ca":3798,"1f9cb":3795,"1f9cd-200d-2640":1569,"1f9cd-200d-2642":1568,"1f9cd":1567,"1f9ce-200d-2640":1572,"1f9ce-200d-2642":1571,"1f9ce":1570,"1f9cf-200d-2640":1434,"1f9cf-200d-2642":1433,"1f9cf":1432,"1f9d0":172,"1f9d1-200d-1f33e":1456,"1f9d1-200d-1f373":1459,"1f9d1-200d-1f37c":1525,"1f9d1-200d-1f384":1529,"1f9d1-200d-1f393":1447,"1f9d1-200d-1f3a4":1477,"1f9d1-200d-1f3a8":1480,"1f9d1-200d-1f3eb":1450,"1f9d1-200d-1f3ed":1465,"1f9d1-200d-1f4bb":1474,"1f9d1-200d-1f4bc":1468,"1f9d1-200d-1f527":1462,"1f9d1-200d-1f52c":1471,"1f9d1-200d-1f680":1486,"1f9d1-200d-1f692":1489,"1f9d1-200d-1f91d-200d-1f9d1":1645,"1f9d1-200d-1f9af":1573,"1f9d1-200d-1f9b0":1402,"1f9d1-200d-1f9b1":1404,"1f9d1-200d-1f9b2":1408,"1f9d1-200d-1f9b3":1406,"1f9d1-200d-1f9bc":1576,"1f9d1-200d-1f9bd":1579,"1f9d1-200d-2695":1444,"1f9d1-200d-2696":1453,"1f9d1-200d-2708":1483,"1f9d1":1390,"1f9d2":1387,"1f9d3":1411,"1f9d4-200d-2640":1395,"1f9d4-200d-2642":1394,"1f9d4":1393,"1f9d5":1512,"1f9d6-200d-2640":1593,"1f9d6-200d-2642":1592,"1f9d6":1591,"1f9d7-200d-2640":1596,"1f9d7-200d-2642":1595,"1f9d7":1594,"1f9d8-200d-2640":1642,"1f9d8-200d-2642":1641,"1f9d8":1640,"1f9d9-200d-2640":1538,"1f9d9-200d-2642":1537,"1f9d9":1536,"1f9da-200d-2640":1541,"1f9da-200d-2642":1540,"1f9da":1539,"1f9db-200d-2640":1544,"1f9db-200d-2642":1543,"1f9db":1542,"1f9dc-200d-2640":1547,"1f9dc-200d-2642":1546,"1f9dc":1545,"1f9dd-200d-2640":1550,"1f9dd-200d-2642":1549,"1f9dd":1548,"1f9de-200d-2640":1553,"1f9de-200d-2642":1552,"1f9de":1551,"1f9df-200d-2640":1556,"1f9df-200d-2642":1555,"1f9df":1554,"1f9e0":1376,"1f9e1":1142,"1f9e2":61148,"1f9e3":61118,"1f9e4":61119,"1f9e5":61120,"1f9e6":61121,"1f9e7":51039,"1f9e8":51028,"1f9e9":51090,"1f9ea":61320,"1f9eb":61321,"1f9ec":61322,"1f9ed":4812,"1f9ee":61201,"1f9ef":61356,"1f9f0":61316,"1f9f1":4825,"1f9f2":61317,"1f9f3":4945,"1f9f4":61346,"1f9f5":51106,"1f9f6":51108,"1f9f7":61347,"1f9f8":51091,"1f9f9":61348,"1f9fa":61349,"1f9fb":61350,"1f9fc":61352,"1f9fd":61355,"1f9fe":61243,"1f9ff":51084,"1fa70":61142,"1fa71":61125,"1fa72":61126,"1fa73":61127,"1fa74":61135,"1fa78":61327,"1fa79":61329,"1fa7a":61331,"1fa80":51079,"1fa81":51080,"1fa82":4935,"1fa83":61302,"1fa84":51083,"1fa85":51092,"1fa86":51094,"1fa90":4993,"1fa91":61339,"1fa92":61345,"1fa93":61295,"1fa94":61217,"1fa95":61179,"1fa96":61149,"1fa97":61174,"1fa98":61181,"1fa99":61236,"1fa9a":61305,"1fa9b":61307,"1fa9c":61318,"1fa9d":61315,"1fa9e":61335,"1fa9f":61336,"1faa0":61341,"1faa1":51107,"1faa2":51109,"1faa3":61351,"1faa4":61344,"1faa5":61354,"1faa6":61360,"1faa7":61363,"1faa8":4826,"1fab0":2645,"1fab1":2646,"1fab2":2637,"1fab3":2640,"1fab4":2660,"1fab5":4827,"1fab6":2608,"1fac0":1377,"1fac1":1378,"1fac2":1686,"1fad0":3688,"1fad1":3699,"1fad2":3691,"1fad3":3712,"1fad4":3729,"1fad5":3736,"1fad6":3782,"203c":62834,"21a9":62765,"21aa":62766,"231a":4948,"231b":4946,"23cf":62818,"23e9":62805,"23ea":62809,"23eb":62812,"23ec":62814,"23ed":62806,"23ee":62810,"23ef":62807,"23f0":4949,"23f1":4950,"23f2":4951,"23f3":4947,"23f8":62815,"23f9":62816,"23fa":62817,"24c2":62890,"25aa":62938,"25ab":62939,"25b6":62804,"25c0":62808,"25fb":62935,"25fc":62934,"25fd":62937,"25fe":62936,"260e":61184,"261d":1350,"262a":62784,"262e":62785,"262f":62781,"263a":120,"264a":62790,"264b":62791,"264c":62792,"264d":62793,"264e":62794,"264f":62795,"265f":51099,"267b":62844,"267e":62833,"267f":62732,"269b":62777,"269c":62845,"26a0":62742,"26a1":41016,"26a7":62827,"26aa":62924,"26ab":62923,"26b0":61359,"26b1":61361,"26bd":51051,"26be":51052,"26c4":41019,"26c5":4999,"26c8":41e3,"26ce":62800,"26cf":61296,"26d1":61150,"26d3":61314,"26d4":62744,"26e9":4853,"26ea":4849,"26f0":4814,"26f1":41015,"26f2":4855,"26f3":51070,"26f4":4928,"26f5":4924,"26f7":1599,"26f8":51071,"26f9-200d-2640":1615,"26f9-200d-2642":1614,"26f9":1613,"26fa":4856,"26fd":4915,"270a":1354,"270b":1330,"270c":1339,"270d":1365,"270f":61258,"271d":62782,"274c":62853,"274e":62854,"2764-200d-1f525":1139,"2764-200d-1fa79":1140,"27a1":62757,"27b0":62855,"27bf":62856,"2b05":62761,"2b06":62755,"2b07":62759,"2b1b":62932,"2b1c":62933,"2b50":4994,"2b55":62849,"303d":62857,"1f385-1f3fb":0,"1f385-1f3fc":0,"1f385-1f3fd":0,"1f385-1f3fe":0,"1f385-1f3ff":0,"1f3c2-1f3fb":0,"1f3c2-1f3fc":0,"1f3c2-1f3fd":0,"1f3c2-1f3fe":0,"1f3c2-1f3ff":0,"1f3c3-1f3fb-200d-2640":0,"1f3c3-1f3fc-200d-2640":0,"1f3c3-1f3fd-200d-2640":0,"1f3c3-1f3fe-200d-2640":0,"1f3c3-1f3ff-200d-2640":0,"1f3c3-1f3fb-200d-2642":0,"1f3c3-1f3fc-200d-2642":0,"1f3c3-1f3fd-200d-2642":0,"1f3c3-1f3fe-200d-2642":0,"1f3c3-1f3ff-200d-2642":0,"1f3c3-1f3fb":0,"1f3c3-1f3fc":0,"1f3c3-1f3fd":0,"1f3c3-1f3fe":0,"1f3c3-1f3ff":0,"1f3c4-1f3fb-200d-2640":0,"1f3c4-1f3fc-200d-2640":0,"1f3c4-1f3fd-200d-2640":0,"1f3c4-1f3fe-200d-2640":0,"1f3c4-1f3ff-200d-2640":0,"1f3c4-1f3fb-200d-2642":0,"1f3c4-1f3fc-200d-2642":0,"1f3c4-1f3fd-200d-2642":0,"1f3c4-1f3fe-200d-2642":0,"1f3c4-1f3ff-200d-2642":0,"1f3c4-1f3fb":0,"1f3c4-1f3fc":0,"1f3c4-1f3fd":0,"1f3c4-1f3fe":0,"1f3c4-1f3ff":0,"1f3c7-1f3fb":0,"1f3c7-1f3fc":0,"1f3c7-1f3fd":0,"1f3c7-1f3fe":0,"1f3c7-1f3ff":0,"1f3ca-1f3fb-200d-2640":0,"1f3ca-1f3fc-200d-2640":0,"1f3ca-1f3fd-200d-2640":0,"1f3ca-1f3fe-200d-2640":0,"1f3ca-1f3ff-200d-2640":0,"1f3ca-1f3fb-200d-2642":0,"1f3ca-1f3fc-200d-2642":0,"1f3ca-1f3fd-200d-2642":0,"1f3ca-1f3fe-200d-2642":0,"1f3ca-1f3ff-200d-2642":0,"1f3ca-1f3fb":0,"1f3ca-1f3fc":0,"1f3ca-1f3fd":0,"1f3ca-1f3fe":0,"1f3ca-1f3ff":0,"1f3cb-1f3fb-200d-2640":0,"1f3cb-1f3fc-200d-2640":0,"1f3cb-1f3fd-200d-2640":0,"1f3cb-1f3fe-200d-2640":0,"1f3cb-1f3ff-200d-2640":0,"1f3cb-1f3fb-200d-2642":0,"1f3cb-1f3fc-200d-2642":0,"1f3cb-1f3fd-200d-2642":0,"1f3cb-1f3fe-200d-2642":0,"1f3cb-1f3ff-200d-2642":0,"1f3cb-1f3fb":0,"1f3cb-1f3fc":0,"1f3cb-1f3fd":0,"1f3cb-1f3fe":0,"1f3cb-1f3ff":0,"1f3cc-1f3fb-200d-2640":0,"1f3cc-1f3fc-200d-2640":0,"1f3cc-1f3fd-200d-2640":0,"1f3cc-1f3fe-200d-2640":0,"1f3cc-1f3ff-200d-2640":0,"1f3cc-1f3fb-200d-2642":0,"1f3cc-1f3fc-200d-2642":0,"1f3cc-1f3fd-200d-2642":0,"1f3cc-1f3fe-200d-2642":0,"1f3cc-1f3ff-200d-2642":0,"1f3cc-1f3fb":0,"1f3cc-1f3fc":0,"1f3cc-1f3fd":0,"1f3cc-1f3fe":0,"1f3cc-1f3ff":0,"1f442-1f3fb":0,"1f442-1f3fc":0,"1f442-1f3fd":0,"1f442-1f3fe":0,"1f442-1f3ff":0,"1f443-1f3fb":0,"1f443-1f3fc":0,"1f443-1f3fd":0,"1f443-1f3fe":0,"1f443-1f3ff":0,"1f446-1f3fb":0,"1f446-1f3fc":0,"1f446-1f3fd":0,"1f446-1f3fe":0,"1f446-1f3ff":0,"1f447-1f3fb":0,"1f447-1f3fc":0,"1f447-1f3fd":0,"1f447-1f3fe":0,"1f447-1f3ff":0,"1f448-1f3fb":0,"1f448-1f3fc":0,"1f448-1f3fd":0,"1f448-1f3fe":0,"1f448-1f3ff":0,"1f449-1f3fb":0,"1f449-1f3fc":0,"1f449-1f3fd":0,"1f449-1f3fe":0,"1f449-1f3ff":0,"1f44a-1f3fb":0,"1f44a-1f3fc":0,"1f44a-1f3fd":0,"1f44a-1f3fe":0,"1f44a-1f3ff":0,"1f44b-1f3fb":0,"1f44b-1f3fc":0,"1f44b-1f3fd":0,"1f44b-1f3fe":0,"1f44b-1f3ff":0,"1f44c-1f3fb":0,"1f44c-1f3fc":0,"1f44c-1f3fd":0,"1f44c-1f3fe":0,"1f44c-1f3ff":0,"1f44d-1f3fb":0,"1f44d-1f3fc":0,"1f44d-1f3fd":0,"1f44d-1f3fe":0,"1f44d-1f3ff":0,"1f44e-1f3fb":0,"1f44e-1f3fc":0,"1f44e-1f3fd":0,"1f44e-1f3fe":0,"1f44e-1f3ff":0,"1f44f-1f3fb":0,"1f44f-1f3fc":0,"1f44f-1f3fd":0,"1f44f-1f3fe":0,"1f44f-1f3ff":0,"1f450-1f3fb":0,"1f450-1f3fc":0,"1f450-1f3fd":0,"1f450-1f3fe":0,"1f450-1f3ff":0,"1f466-1f3fb":0,"1f466-1f3fc":0,"1f466-1f3fd":0,"1f466-1f3fe":0,"1f466-1f3ff":0,"1f467-1f3fb":0,"1f467-1f3fc":0,"1f467-1f3fd":0,"1f467-1f3fe":0,"1f467-1f3ff":0,"1f468-1f3fb-200d-1f33e":0,"1f468-1f3fc-200d-1f33e":0,"1f468-1f3fd-200d-1f33e":0,"1f468-1f3fe-200d-1f33e":0,"1f468-1f3ff-200d-1f33e":0,"1f468-1f3fb-200d-1f373":0,"1f468-1f3fc-200d-1f373":0,"1f468-1f3fd-200d-1f373":0,"1f468-1f3fe-200d-1f373":0,"1f468-1f3ff-200d-1f373":0,"1f468-1f3fb-200d-1f37c":0,"1f468-1f3fc-200d-1f37c":0,"1f468-1f3fd-200d-1f37c":0,"1f468-1f3fe-200d-1f37c":0,"1f468-1f3ff-200d-1f37c":0,"1f468-1f3fb-200d-1f393":0,"1f468-1f3fc-200d-1f393":0,"1f468-1f3fd-200d-1f393":0,"1f468-1f3fe-200d-1f393":0,"1f468-1f3ff-200d-1f393":0,"1f468-1f3fb-200d-1f3a4":0,"1f468-1f3fc-200d-1f3a4":0,"1f468-1f3fd-200d-1f3a4":0,"1f468-1f3fe-200d-1f3a4":0,"1f468-1f3ff-200d-1f3a4":0,"1f468-1f3fb-200d-1f3a8":0,"1f468-1f3fc-200d-1f3a8":0,"1f468-1f3fd-200d-1f3a8":0,"1f468-1f3fe-200d-1f3a8":0,"1f468-1f3ff-200d-1f3a8":0,"1f468-1f3fb-200d-1f3eb":0,"1f468-1f3fc-200d-1f3eb":0,"1f468-1f3fd-200d-1f3eb":0,"1f468-1f3fe-200d-1f3eb":0,"1f468-1f3ff-200d-1f3eb":0,"1f468-1f3fb-200d-1f3ed":0,"1f468-1f3fc-200d-1f3ed":0,"1f468-1f3fd-200d-1f3ed":0,"1f468-1f3fe-200d-1f3ed":0,"1f468-1f3ff-200d-1f3ed":0,"1f468-1f3fb-200d-1f4bb":0,"1f468-1f3fc-200d-1f4bb":0,"1f468-1f3fd-200d-1f4bb":0,"1f468-1f3fe-200d-1f4bb":0,"1f468-1f3ff-200d-1f4bb":0,"1f468-1f3fb-200d-1f4bc":0,"1f468-1f3fc-200d-1f4bc":0,"1f468-1f3fd-200d-1f4bc":0,"1f468-1f3fe-200d-1f4bc":0,"1f468-1f3ff-200d-1f4bc":0,"1f468-1f3fb-200d-1f527":0,"1f468-1f3fc-200d-1f527":0,"1f468-1f3fd-200d-1f527":0,"1f468-1f3fe-200d-1f527":0,"1f468-1f3ff-200d-1f527":0,"1f468-1f3fb-200d-1f52c":0,"1f468-1f3fc-200d-1f52c":0,"1f468-1f3fd-200d-1f52c":0,"1f468-1f3fe-200d-1f52c":0,"1f468-1f3ff-200d-1f52c":0,"1f468-1f3fb-200d-1f680":0,"1f468-1f3fc-200d-1f680":0,"1f468-1f3fd-200d-1f680":0,"1f468-1f3fe-200d-1f680":0,"1f468-1f3ff-200d-1f680":0,"1f468-1f3fb-200d-1f692":0,"1f468-1f3fc-200d-1f692":0,"1f468-1f3fd-200d-1f692":0,"1f468-1f3fe-200d-1f692":0,"1f468-1f3ff-200d-1f692":0,"1f468-1f3fb-200d-1f9af":0,"1f468-1f3fc-200d-1f9af":0,"1f468-1f3fd-200d-1f9af":0,"1f468-1f3fe-200d-1f9af":0,"1f468-1f3ff-200d-1f9af":0,"1f468-1f3fb-200d-1f9b0":0,"1f468-1f3fc-200d-1f9b0":0,"1f468-1f3fd-200d-1f9b0":0,"1f468-1f3fe-200d-1f9b0":0,"1f468-1f3ff-200d-1f9b0":0,"1f468-1f3fb-200d-1f9b1":0,"1f468-1f3fc-200d-1f9b1":0,"1f468-1f3fd-200d-1f9b1":0,"1f468-1f3fe-200d-1f9b1":0,"1f468-1f3ff-200d-1f9b1":0,"1f468-1f3fb-200d-1f9b2":0,"1f468-1f3fc-200d-1f9b2":0,"1f468-1f3fd-200d-1f9b2":0,"1f468-1f3fe-200d-1f9b2":0,"1f468-1f3ff-200d-1f9b2":0,"1f468-1f3fb-200d-1f9b3":0,"1f468-1f3fc-200d-1f9b3":0,"1f468-1f3fd-200d-1f9b3":0,"1f468-1f3fe-200d-1f9b3":0,"1f468-1f3ff-200d-1f9b3":0,"1f468-1f3fb-200d-1f9bc":0,"1f468-1f3fc-200d-1f9bc":0,"1f468-1f3fd-200d-1f9bc":0,"1f468-1f3fe-200d-1f9bc":0,"1f468-1f3ff-200d-1f9bc":0,"1f468-1f3fb-200d-1f9bd":0,"1f468-1f3fc-200d-1f9bd":0,"1f468-1f3fd-200d-1f9bd":0,"1f468-1f3fe-200d-1f9bd":0,"1f468-1f3ff-200d-1f9bd":0,"1f468-1f3fb-200d-2695":0,"1f468-1f3fc-200d-2695":0,"1f468-1f3fd-200d-2695":0,"1f468-1f3fe-200d-2695":0,"1f468-1f3ff-200d-2695":0,"1f468-1f3fb-200d-2696":0,"1f468-1f3fc-200d-2696":0,"1f468-1f3fd-200d-2696":0,"1f468-1f3fe-200d-2696":0,"1f468-1f3ff-200d-2696":0,"1f468-1f3fb-200d-2708":0,"1f468-1f3fc-200d-2708":0,"1f468-1f3fd-200d-2708":0,"1f468-1f3fe-200d-2708":0,"1f468-1f3ff-200d-2708":0,"1f468-1f3fb-200d-2764-200d-1f468-1f3fb":0,"1f468-1f3fb-200d-2764-200d-1f468-1f3fc":0,"1f468-1f3fb-200d-2764-200d-1f468-1f3fd":0,"1f468-1f3fb-200d-2764-200d-1f468-1f3fe":0,"1f468-1f3fb-200d-2764-200d-1f468-1f3ff":0,"1f468-1f3fc-200d-2764-200d-1f468-1f3fb":0,"1f468-1f3fc-200d-2764-200d-1f468-1f3fc":0,"1f468-1f3fc-200d-2764-200d-1f468-1f3fd":0,"1f468-1f3fc-200d-2764-200d-1f468-1f3fe":0,"1f468-1f3fc-200d-2764-200d-1f468-1f3ff":0,"1f468-1f3fd-200d-2764-200d-1f468-1f3fb":0,"1f468-1f3fd-200d-2764-200d-1f468-1f3fc":0,"1f468-1f3fd-200d-2764-200d-1f468-1f3fd":0,"1f468-1f3fd-200d-2764-200d-1f468-1f3fe":0,"1f468-1f3fd-200d-2764-200d-1f468-1f3ff":0,"1f468-1f3fe-200d-2764-200d-1f468-1f3fb":0,"1f468-1f3fe-200d-2764-200d-1f468-1f3fc":0,"1f468-1f3fe-200d-2764-200d-1f468-1f3fd":0,"1f468-1f3fe-200d-2764-200d-1f468-1f3fe":0,"1f468-1f3fe-200d-2764-200d-1f468-1f3ff":0,"1f468-1f3ff-200d-2764-200d-1f468-1f3fb":0,"1f468-1f3ff-200d-2764-200d-1f468-1f3fc":0,"1f468-1f3ff-200d-2764-200d-1f468-1f3fd":0,"1f468-1f3ff-200d-2764-200d-1f468-1f3fe":0,"1f468-1f3ff-200d-2764-200d-1f468-1f3ff":0,"1f468-1f3fb-200d-2764-200d-1f48b-200d-1f468-1f3fb":0,"1f468-1f3fb-200d-2764-200d-1f48b-200d-1f468-1f3fc":0,"1f468-1f3fb-200d-2764-200d-1f48b-200d-1f468-1f3fd":0,"1f468-1f3fb-200d-2764-200d-1f48b-200d-1f468-1f3fe":0,"1f468-1f3fb-200d-2764-200d-1f48b-200d-1f468-1f3ff":0,"1f468-1f3fc-200d-2764-200d-1f48b-200d-1f468-1f3fb":0,"1f468-1f3fc-200d-2764-200d-1f48b-200d-1f468-1f3fc":0,"1f468-1f3fc-200d-2764-200d-1f48b-200d-1f468-1f3fd":0,"1f468-1f3fc-200d-2764-200d-1f48b-200d-1f468-1f3fe":0,"1f468-1f3fc-200d-2764-200d-1f48b-200d-1f468-1f3ff":0,"1f468-1f3fd-200d-2764-200d-1f48b-200d-1f468-1f3fb":0,"1f468-1f3fd-200d-2764-200d-1f48b-200d-1f468-1f3fc":0,"1f468-1f3fd-200d-2764-200d-1f48b-200d-1f468-1f3fd":0,"1f468-1f3fd-200d-2764-200d-1f48b-200d-1f468-1f3fe":0,"1f468-1f3fd-200d-2764-200d-1f48b-200d-1f468-1f3ff":0,"1f468-1f3fe-200d-2764-200d-1f48b-200d-1f468-1f3fb":0,"1f468-1f3fe-200d-2764-200d-1f48b-200d-1f468-1f3fc":0,"1f468-1f3fe-200d-2764-200d-1f48b-200d-1f468-1f3fd":0,"1f468-1f3fe-200d-2764-200d-1f48b-200d-1f468-1f3fe":0,"1f468-1f3fe-200d-2764-200d-1f48b-200d-1f468-1f3ff":0,"1f468-1f3ff-200d-2764-200d-1f48b-200d-1f468-1f3fb":0,"1f468-1f3ff-200d-2764-200d-1f48b-200d-1f468-1f3fc":0,"1f468-1f3ff-200d-2764-200d-1f48b-200d-1f468-1f3fd":0,"1f468-1f3ff-200d-2764-200d-1f48b-200d-1f468-1f3fe":0,"1f468-1f3ff-200d-2764-200d-1f48b-200d-1f468-1f3ff":0,"1f468-1f3fb":0,"1f468-1f3fc":0,"1f468-1f3fd":0,"1f468-1f3fe":0,"1f468-1f3ff":0,"1f469-1f3fb-200d-1f33e":0,"1f469-1f3fc-200d-1f33e":0,"1f469-1f3fd-200d-1f33e":0,"1f469-1f3fe-200d-1f33e":0,"1f469-1f3ff-200d-1f33e":0,"1f469-1f3fb-200d-1f373":0,"1f469-1f3fc-200d-1f373":0,"1f469-1f3fd-200d-1f373":0,"1f469-1f3fe-200d-1f373":0,"1f469-1f3ff-200d-1f373":0,"1f469-1f3fb-200d-1f37c":0,"1f469-1f3fc-200d-1f37c":0,"1f469-1f3fd-200d-1f37c":0,"1f469-1f3fe-200d-1f37c":0,"1f469-1f3ff-200d-1f37c":0,"1f469-1f3fb-200d-1f393":0,"1f469-1f3fc-200d-1f393":0,"1f469-1f3fd-200d-1f393":0,"1f469-1f3fe-200d-1f393":0,"1f469-1f3ff-200d-1f393":0,"1f469-1f3fb-200d-1f3a4":0,"1f469-1f3fc-200d-1f3a4":0,"1f469-1f3fd-200d-1f3a4":0,"1f469-1f3fe-200d-1f3a4":0,"1f469-1f3ff-200d-1f3a4":0,"1f469-1f3fb-200d-1f3a8":0,"1f469-1f3fc-200d-1f3a8":0,"1f469-1f3fd-200d-1f3a8":0,"1f469-1f3fe-200d-1f3a8":0,"1f469-1f3ff-200d-1f3a8":0,"1f469-1f3fb-200d-1f3eb":0,"1f469-1f3fc-200d-1f3eb":0,"1f469-1f3fd-200d-1f3eb":0,"1f469-1f3fe-200d-1f3eb":0,"1f469-1f3ff-200d-1f3eb":0,"1f469-1f3fb-200d-1f3ed":0,"1f469-1f3fc-200d-1f3ed":0,"1f469-1f3fd-200d-1f3ed":0,"1f469-1f3fe-200d-1f3ed":0,"1f469-1f3ff-200d-1f3ed":0,"1f469-1f3fb-200d-1f4bb":0,"1f469-1f3fc-200d-1f4bb":0,"1f469-1f3fd-200d-1f4bb":0,"1f469-1f3fe-200d-1f4bb":0,"1f469-1f3ff-200d-1f4bb":0,"1f469-1f3fb-200d-1f4bc":0,"1f469-1f3fc-200d-1f4bc":0,"1f469-1f3fd-200d-1f4bc":0,"1f469-1f3fe-200d-1f4bc":0,"1f469-1f3ff-200d-1f4bc":0,"1f469-1f3fb-200d-1f527":0,"1f469-1f3fc-200d-1f527":0,"1f469-1f3fd-200d-1f527":0,"1f469-1f3fe-200d-1f527":0,"1f469-1f3ff-200d-1f527":0,"1f469-1f3fb-200d-1f52c":0,"1f469-1f3fc-200d-1f52c":0,"1f469-1f3fd-200d-1f52c":0,"1f469-1f3fe-200d-1f52c":0,"1f469-1f3ff-200d-1f52c":0,"1f469-1f3fb-200d-1f680":0,"1f469-1f3fc-200d-1f680":0,"1f469-1f3fd-200d-1f680":0,"1f469-1f3fe-200d-1f680":0,"1f469-1f3ff-200d-1f680":0,"1f469-1f3fb-200d-1f692":0,"1f469-1f3fc-200d-1f692":0,"1f469-1f3fd-200d-1f692":0,"1f469-1f3fe-200d-1f692":0,"1f469-1f3ff-200d-1f692":0,"1f469-1f3fb-200d-1f9af":0,"1f469-1f3fc-200d-1f9af":0,"1f469-1f3fd-200d-1f9af":0,"1f469-1f3fe-200d-1f9af":0,"1f469-1f3ff-200d-1f9af":0,"1f469-1f3fb-200d-1f9b0":0,"1f469-1f3fc-200d-1f9b0":0,"1f469-1f3fd-200d-1f9b0":0,"1f469-1f3fe-200d-1f9b0":0,"1f469-1f3ff-200d-1f9b0":0,"1f469-1f3fb-200d-1f9b1":0,"1f469-1f3fc-200d-1f9b1":0,"1f469-1f3fd-200d-1f9b1":0,"1f469-1f3fe-200d-1f9b1":0,"1f469-1f3ff-200d-1f9b1":0,"1f469-1f3fb-200d-1f9b2":0,"1f469-1f3fc-200d-1f9b2":0,"1f469-1f3fd-200d-1f9b2":0,"1f469-1f3fe-200d-1f9b2":0,"1f469-1f3ff-200d-1f9b2":0,"1f469-1f3fb-200d-1f9b3":0,"1f469-1f3fc-200d-1f9b3":0,"1f469-1f3fd-200d-1f9b3":0,"1f469-1f3fe-200d-1f9b3":0,"1f469-1f3ff-200d-1f9b3":0,"1f469-1f3fb-200d-1f9bc":0,"1f469-1f3fc-200d-1f9bc":0,"1f469-1f3fd-200d-1f9bc":0,"1f469-1f3fe-200d-1f9bc":0,"1f469-1f3ff-200d-1f9bc":0,"1f469-1f3fb-200d-1f9bd":0,"1f469-1f3fc-200d-1f9bd":0,"1f469-1f3fd-200d-1f9bd":0,"1f469-1f3fe-200d-1f9bd":0,"1f469-1f3ff-200d-1f9bd":0,"1f469-1f3fb-200d-2695":0,"1f469-1f3fc-200d-2695":0,"1f469-1f3fd-200d-2695":0,"1f469-1f3fe-200d-2695":0,"1f469-1f3ff-200d-2695":0,"1f469-1f3fb-200d-2696":0,"1f469-1f3fc-200d-2696":0,"1f469-1f3fd-200d-2696":0,"1f469-1f3fe-200d-2696":0,"1f469-1f3ff-200d-2696":0,"1f469-1f3fb-200d-2708":0,"1f469-1f3fc-200d-2708":0,"1f469-1f3fd-200d-2708":0,"1f469-1f3fe-200d-2708":0,"1f469-1f3ff-200d-2708":0,"1f469-1f3fb-200d-2764-200d-1f468-1f3fb":0,"1f469-1f3fb-200d-2764-200d-1f468-1f3fc":0,"1f469-1f3fb-200d-2764-200d-1f468-1f3fd":0,"1f469-1f3fb-200d-2764-200d-1f468-1f3fe":0,"1f469-1f3fb-200d-2764-200d-1f468-1f3ff":0,"1f469-1f3fc-200d-2764-200d-1f468-1f3fb":0,"1f469-1f3fc-200d-2764-200d-1f468-1f3fc":0,"1f469-1f3fc-200d-2764-200d-1f468-1f3fd":0,"1f469-1f3fc-200d-2764-200d-1f468-1f3fe":0,"1f469-1f3fc-200d-2764-200d-1f468-1f3ff":0,"1f469-1f3fd-200d-2764-200d-1f468-1f3fb":0,"1f469-1f3fd-200d-2764-200d-1f468-1f3fc":0,"1f469-1f3fd-200d-2764-200d-1f468-1f3fd":0,"1f469-1f3fd-200d-2764-200d-1f468-1f3fe":0,"1f469-1f3fd-200d-2764-200d-1f468-1f3ff":0,"1f469-1f3fe-200d-2764-200d-1f468-1f3fb":0,"1f469-1f3fe-200d-2764-200d-1f468-1f3fc":0,"1f469-1f3fe-200d-2764-200d-1f468-1f3fd":0,"1f469-1f3fe-200d-2764-200d-1f468-1f3fe":0,"1f469-1f3fe-200d-2764-200d-1f468-1f3ff":0,"1f469-1f3ff-200d-2764-200d-1f468-1f3fb":0,"1f469-1f3ff-200d-2764-200d-1f468-1f3fc":0,"1f469-1f3ff-200d-2764-200d-1f468-1f3fd":0,"1f469-1f3ff-200d-2764-200d-1f468-1f3fe":0,"1f469-1f3ff-200d-2764-200d-1f468-1f3ff":0,"1f469-1f3fb-200d-2764-200d-1f469-1f3fb":0,"1f469-1f3fb-200d-2764-200d-1f469-1f3fc":0,"1f469-1f3fb-200d-2764-200d-1f469-1f3fd":0,"1f469-1f3fb-200d-2764-200d-1f469-1f3fe":0,"1f469-1f3fb-200d-2764-200d-1f469-1f3ff":0,"1f469-1f3fc-200d-2764-200d-1f469-1f3fb":0,"1f469-1f3fc-200d-2764-200d-1f469-1f3fc":0,"1f469-1f3fc-200d-2764-200d-1f469-1f3fd":0,"1f469-1f3fc-200d-2764-200d-1f469-1f3fe":0,"1f469-1f3fc-200d-2764-200d-1f469-1f3ff":0,"1f469-1f3fd-200d-2764-200d-1f469-1f3fb":0,"1f469-1f3fd-200d-2764-200d-1f469-1f3fc":0,"1f469-1f3fd-200d-2764-200d-1f469-1f3fd":0,"1f469-1f3fd-200d-2764-200d-1f469-1f3fe":0,"1f469-1f3fd-200d-2764-200d-1f469-1f3ff":0,"1f469-1f3fe-200d-2764-200d-1f469-1f3fb":0,"1f469-1f3fe-200d-2764-200d-1f469-1f3fc":0,"1f469-1f3fe-200d-2764-200d-1f469-1f3fd":0,"1f469-1f3fe-200d-2764-200d-1f469-1f3fe":0,"1f469-1f3fe-200d-2764-200d-1f469-1f3ff":0,"1f469-1f3ff-200d-2764-200d-1f469-1f3fb":0,"1f469-1f3ff-200d-2764-200d-1f469-1f3fc":0,"1f469-1f3ff-200d-2764-200d-1f469-1f3fd":0,"1f469-1f3ff-200d-2764-200d-1f469-1f3fe":0,"1f469-1f3ff-200d-2764-200d-1f469-1f3ff":0,"1f469-1f3fb-200d-2764-200d-1f48b-200d-1f468-1f3fb":0,"1f469-1f3fb-200d-2764-200d-1f48b-200d-1f468-1f3fc":0,"1f469-1f3fb-200d-2764-200d-1f48b-200d-1f468-1f3fd":0,"1f469-1f3fb-200d-2764-200d-1f48b-200d-1f468-1f3fe":0,"1f469-1f3fb-200d-2764-200d-1f48b-200d-1f468-1f3ff":0,"1f469-1f3fc-200d-2764-200d-1f48b-200d-1f468-1f3fb":0,"1f469-1f3fc-200d-2764-200d-1f48b-200d-1f468-1f3fc":0,"1f469-1f3fc-200d-2764-200d-1f48b-200d-1f468-1f3fd":0,"1f469-1f3fc-200d-2764-200d-1f48b-200d-1f468-1f3fe":0,"1f469-1f3fc-200d-2764-200d-1f48b-200d-1f468-1f3ff":0,"1f469-1f3fd-200d-2764-200d-1f48b-200d-1f468-1f3fb":0,"1f469-1f3fd-200d-2764-200d-1f48b-200d-1f468-1f3fc":0,"1f469-1f3fd-200d-2764-200d-1f48b-200d-1f468-1f3fd":0,"1f469-1f3fd-200d-2764-200d-1f48b-200d-1f468-1f3fe":0,"1f469-1f3fd-200d-2764-200d-1f48b-200d-1f468-1f3ff":0,"1f469-1f3fe-200d-2764-200d-1f48b-200d-1f468-1f3fb":0,"1f469-1f3fe-200d-2764-200d-1f48b-200d-1f468-1f3fc":0,"1f469-1f3fe-200d-2764-200d-1f48b-200d-1f468-1f3fd":0,"1f469-1f3fe-200d-2764-200d-1f48b-200d-1f468-1f3fe":0,"1f469-1f3fe-200d-2764-200d-1f48b-200d-1f468-1f3ff":0,"1f469-1f3ff-200d-2764-200d-1f48b-200d-1f468-1f3fb":0,"1f469-1f3ff-200d-2764-200d-1f48b-200d-1f468-1f3fc":0,"1f469-1f3ff-200d-2764-200d-1f48b-200d-1f468-1f3fd":0,"1f469-1f3ff-200d-2764-200d-1f48b-200d-1f468-1f3fe":0,"1f469-1f3ff-200d-2764-200d-1f48b-200d-1f468-1f3ff":0,"1f469-1f3fb-200d-2764-200d-1f48b-200d-1f469-1f3fb":0,"1f469-1f3fb-200d-2764-200d-1f48b-200d-1f469-1f3fc":0,"1f469-1f3fb-200d-2764-200d-1f48b-200d-1f469-1f3fd":0,"1f469-1f3fb-200d-2764-200d-1f48b-200d-1f469-1f3fe":0,"1f469-1f3fb-200d-2764-200d-1f48b-200d-1f469-1f3ff":0,"1f469-1f3fc-200d-2764-200d-1f48b-200d-1f469-1f3fb":0,"1f469-1f3fc-200d-2764-200d-1f48b-200d-1f469-1f3fc":0,"1f469-1f3fc-200d-2764-200d-1f48b-200d-1f469-1f3fd":0,"1f469-1f3fc-200d-2764-200d-1f48b-200d-1f469-1f3fe":0,"1f469-1f3fc-200d-2764-200d-1f48b-200d-1f469-1f3ff":0,"1f469-1f3fd-200d-2764-200d-1f48b-200d-1f469-1f3fb":0,"1f469-1f3fd-200d-2764-200d-1f48b-200d-1f469-1f3fc":0,"1f469-1f3fd-200d-2764-200d-1f48b-200d-1f469-1f3fd":0,"1f469-1f3fd-200d-2764-200d-1f48b-200d-1f469-1f3fe":0,"1f469-1f3fd-200d-2764-200d-1f48b-200d-1f469-1f3ff":0,"1f469-1f3fe-200d-2764-200d-1f48b-200d-1f469-1f3fb":0,"1f469-1f3fe-200d-2764-200d-1f48b-200d-1f469-1f3fc":0,"1f469-1f3fe-200d-2764-200d-1f48b-200d-1f469-1f3fd":0,"1f469-1f3fe-200d-2764-200d-1f48b-200d-1f469-1f3fe":0,"1f469-1f3fe-200d-2764-200d-1f48b-200d-1f469-1f3ff":0,"1f469-1f3ff-200d-2764-200d-1f48b-200d-1f469-1f3fb":0,"1f469-1f3ff-200d-2764-200d-1f48b-200d-1f469-1f3fc":0,"1f469-1f3ff-200d-2764-200d-1f48b-200d-1f469-1f3fd":0,"1f469-1f3ff-200d-2764-200d-1f48b-200d-1f469-1f3fe":0,"1f469-1f3ff-200d-2764-200d-1f48b-200d-1f469-1f3ff":0,"1f469-1f3fb":0,"1f469-1f3fc":0,"1f469-1f3fd":0,"1f469-1f3fe":0,"1f469-1f3ff":0,"1f46b-1f3fb":0,"1f46b-1f3fc":0,"1f46b-1f3fd":0,"1f46b-1f3fe":0,"1f46b-1f3ff":0,"1f469-1f3fb-200d-1f91d-200d-1f468-1f3fc":0,"1f469-1f3fb-200d-1f91d-200d-1f468-1f3fd":0,"1f469-1f3fb-200d-1f91d-200d-1f468-1f3fe":0,"1f469-1f3fb-200d-1f91d-200d-1f468-1f3ff":0,"1f469-1f3fc-200d-1f91d-200d-1f468-1f3fb":0,"1f469-1f3fc-200d-1f91d-200d-1f468-1f3fd":0,"1f469-1f3fc-200d-1f91d-200d-1f468-1f3fe":0,"1f469-1f3fc-200d-1f91d-200d-1f468-1f3ff":0,"1f469-1f3fd-200d-1f91d-200d-1f468-1f3fb":0,"1f469-1f3fd-200d-1f91d-200d-1f468-1f3fc":0,"1f469-1f3fd-200d-1f91d-200d-1f468-1f3fe":0,"1f469-1f3fd-200d-1f91d-200d-1f468-1f3ff":0,"1f469-1f3fe-200d-1f91d-200d-1f468-1f3fb":0,"1f469-1f3fe-200d-1f91d-200d-1f468-1f3fc":0,"1f469-1f3fe-200d-1f91d-200d-1f468-1f3fd":0,"1f469-1f3fe-200d-1f91d-200d-1f468-1f3ff":0,"1f469-1f3ff-200d-1f91d-200d-1f468-1f3fb":0,"1f469-1f3ff-200d-1f91d-200d-1f468-1f3fc":0,"1f469-1f3ff-200d-1f91d-200d-1f468-1f3fd":0,"1f469-1f3ff-200d-1f91d-200d-1f468-1f3fe":0,"1f46c-1f3fb":0,"1f46c-1f3fc":0,"1f46c-1f3fd":0,"1f46c-1f3fe":0,"1f46c-1f3ff":0,"1f468-1f3fb-200d-1f91d-200d-1f468-1f3fc":0,"1f468-1f3fb-200d-1f91d-200d-1f468-1f3fd":0,"1f468-1f3fb-200d-1f91d-200d-1f468-1f3fe":0,"1f468-1f3fb-200d-1f91d-200d-1f468-1f3ff":0,"1f468-1f3fc-200d-1f91d-200d-1f468-1f3fb":0,"1f468-1f3fc-200d-1f91d-200d-1f468-1f3fd":0,"1f468-1f3fc-200d-1f91d-200d-1f468-1f3fe":0,"1f468-1f3fc-200d-1f91d-200d-1f468-1f3ff":0,"1f468-1f3fd-200d-1f91d-200d-1f468-1f3fb":0,"1f468-1f3fd-200d-1f91d-200d-1f468-1f3fc":0,"1f468-1f3fd-200d-1f91d-200d-1f468-1f3fe":0,"1f468-1f3fd-200d-1f91d-200d-1f468-1f3ff":0,"1f468-1f3fe-200d-1f91d-200d-1f468-1f3fb":0,"1f468-1f3fe-200d-1f91d-200d-1f468-1f3fc":0,"1f468-1f3fe-200d-1f91d-200d-1f468-1f3fd":0,"1f468-1f3fe-200d-1f91d-200d-1f468-1f3ff":0,"1f468-1f3ff-200d-1f91d-200d-1f468-1f3fb":0,"1f468-1f3ff-200d-1f91d-200d-1f468-1f3fc":0,"1f468-1f3ff-200d-1f91d-200d-1f468-1f3fd":0,"1f468-1f3ff-200d-1f91d-200d-1f468-1f3fe":0,"1f46d-1f3fb":0,"1f46d-1f3fc":0,"1f46d-1f3fd":0,"1f46d-1f3fe":0,"1f46d-1f3ff":0,"1f469-1f3fb-200d-1f91d-200d-1f469-1f3fc":0,"1f469-1f3fb-200d-1f91d-200d-1f469-1f3fd":0,"1f469-1f3fb-200d-1f91d-200d-1f469-1f3fe":0,"1f469-1f3fb-200d-1f91d-200d-1f469-1f3ff":0,"1f469-1f3fc-200d-1f91d-200d-1f469-1f3fb":0,"1f469-1f3fc-200d-1f91d-200d-1f469-1f3fd":0,"1f469-1f3fc-200d-1f91d-200d-1f469-1f3fe":0,"1f469-1f3fc-200d-1f91d-200d-1f469-1f3ff":0,"1f469-1f3fd-200d-1f91d-200d-1f469-1f3fb":0,"1f469-1f3fd-200d-1f91d-200d-1f469-1f3fc":0,"1f469-1f3fd-200d-1f91d-200d-1f469-1f3fe":0,"1f469-1f3fd-200d-1f91d-200d-1f469-1f3ff":0,"1f469-1f3fe-200d-1f91d-200d-1f469-1f3fb":0,"1f469-1f3fe-200d-1f91d-200d-1f469-1f3fc":0,"1f469-1f3fe-200d-1f91d-200d-1f469-1f3fd":0,"1f469-1f3fe-200d-1f91d-200d-1f469-1f3ff":0,"1f469-1f3ff-200d-1f91d-200d-1f469-1f3fb":0,"1f469-1f3ff-200d-1f91d-200d-1f469-1f3fc":0,"1f469-1f3ff-200d-1f91d-200d-1f469-1f3fd":0,"1f469-1f3ff-200d-1f91d-200d-1f469-1f3fe":0,"1f46e-1f3fb-200d-2640":0,"1f46e-1f3fc-200d-2640":0,"1f46e-1f3fd-200d-2640":0,"1f46e-1f3fe-200d-2640":0,"1f46e-1f3ff-200d-2640":0,"1f46e-1f3fb-200d-2642":0,"1f46e-1f3fc-200d-2642":0,"1f46e-1f3fd-200d-2642":0,"1f46e-1f3fe-200d-2642":0,"1f46e-1f3ff-200d-2642":0,"1f46e-1f3fb":0,"1f46e-1f3fc":0,"1f46e-1f3fd":0,"1f46e-1f3fe":0,"1f46e-1f3ff":0,"1f470-1f3fb-200d-2640":0,"1f470-1f3fc-200d-2640":0,"1f470-1f3fd-200d-2640":0,"1f470-1f3fe-200d-2640":0,"1f470-1f3ff-200d-2640":0,"1f470-1f3fb-200d-2642":0,"1f470-1f3fc-200d-2642":0,"1f470-1f3fd-200d-2642":0,"1f470-1f3fe-200d-2642":0,"1f470-1f3ff-200d-2642":0,"1f470-1f3fb":0,"1f470-1f3fc":0,"1f470-1f3fd":0,"1f470-1f3fe":0,"1f470-1f3ff":0,"1f471-1f3fb-200d-2640":0,"1f471-1f3fc-200d-2640":0,"1f471-1f3fd-200d-2640":0,"1f471-1f3fe-200d-2640":0,"1f471-1f3ff-200d-2640":0,"1f471-1f3fb-200d-2642":0,"1f471-1f3fc-200d-2642":0,"1f471-1f3fd-200d-2642":0,"1f471-1f3fe-200d-2642":0,"1f471-1f3ff-200d-2642":0,"1f471-1f3fb":0,"1f471-1f3fc":0,"1f471-1f3fd":0,"1f471-1f3fe":0,"1f471-1f3ff":0,"1f472-1f3fb":0,"1f472-1f3fc":0,"1f472-1f3fd":0,"1f472-1f3fe":0,"1f472-1f3ff":0,"1f473-1f3fb-200d-2640":0,"1f473-1f3fc-200d-2640":0,"1f473-1f3fd-200d-2640":0,"1f473-1f3fe-200d-2640":0,"1f473-1f3ff-200d-2640":0,"1f473-1f3fb-200d-2642":0,"1f473-1f3fc-200d-2642":0,"1f473-1f3fd-200d-2642":0,"1f473-1f3fe-200d-2642":0,"1f473-1f3ff-200d-2642":0,"1f473-1f3fb":0,"1f473-1f3fc":0,"1f473-1f3fd":0,"1f473-1f3fe":0,"1f473-1f3ff":0,"1f474-1f3fb":0,"1f474-1f3fc":0,"1f474-1f3fd":0,"1f474-1f3fe":0,"1f474-1f3ff":0,"1f475-1f3fb":0,"1f475-1f3fc":0,"1f475-1f3fd":0,"1f475-1f3fe":0,"1f475-1f3ff":0,"1f476-1f3fb":0,"1f476-1f3fc":0,"1f476-1f3fd":0,"1f476-1f3fe":0,"1f476-1f3ff":0,"1f477-1f3fb-200d-2640":0,"1f477-1f3fc-200d-2640":0,"1f477-1f3fd-200d-2640":0,"1f477-1f3fe-200d-2640":0,"1f477-1f3ff-200d-2640":0,"1f477-1f3fb-200d-2642":0,"1f477-1f3fc-200d-2642":0,"1f477-1f3fd-200d-2642":0,"1f477-1f3fe-200d-2642":0,"1f477-1f3ff-200d-2642":0,"1f477-1f3fb":0,"1f477-1f3fc":0,"1f477-1f3fd":0,"1f477-1f3fe":0,"1f477-1f3ff":0,"1f478-1f3fb":0,"1f478-1f3fc":0,"1f478-1f3fd":0,"1f478-1f3fe":0,"1f478-1f3ff":0,"1f47c-1f3fb":0,"1f47c-1f3fc":0,"1f47c-1f3fd":0,"1f47c-1f3fe":0,"1f47c-1f3ff":0,"1f481-1f3fb-200d-2640":0,"1f481-1f3fc-200d-2640":0,"1f481-1f3fd-200d-2640":0,"1f481-1f3fe-200d-2640":0,"1f481-1f3ff-200d-2640":0,"1f481-1f3fb-200d-2642":0,"1f481-1f3fc-200d-2642":0,"1f481-1f3fd-200d-2642":0,"1f481-1f3fe-200d-2642":0,"1f481-1f3ff-200d-2642":0,"1f481-1f3fb":0,"1f481-1f3fc":0,"1f481-1f3fd":0,"1f481-1f3fe":0,"1f481-1f3ff":0,"1f482-1f3fb-200d-2640":0,"1f482-1f3fc-200d-2640":0,"1f482-1f3fd-200d-2640":0,"1f482-1f3fe-200d-2640":0,"1f482-1f3ff-200d-2640":0,"1f482-1f3fb-200d-2642":0,"1f482-1f3fc-200d-2642":0,"1f482-1f3fd-200d-2642":0,"1f482-1f3fe-200d-2642":0,"1f482-1f3ff-200d-2642":0,"1f482-1f3fb":0,"1f482-1f3fc":0,"1f482-1f3fd":0,"1f482-1f3fe":0,"1f482-1f3ff":0,"1f483-1f3fb":0,"1f483-1f3fc":0,"1f483-1f3fd":0,"1f483-1f3fe":0,"1f483-1f3ff":0,"1f485-1f3fb":0,"1f485-1f3fc":0,"1f485-1f3fd":0,"1f485-1f3fe":0,"1f485-1f3ff":0,"1f486-1f3fb-200d-2640":0,"1f486-1f3fc-200d-2640":0,"1f486-1f3fd-200d-2640":0,"1f486-1f3fe-200d-2640":0,"1f486-1f3ff-200d-2640":0,"1f486-1f3fb-200d-2642":0,"1f486-1f3fc-200d-2642":0,"1f486-1f3fd-200d-2642":0,"1f486-1f3fe-200d-2642":0,"1f486-1f3ff-200d-2642":0,"1f486-1f3fb":0,"1f486-1f3fc":0,"1f486-1f3fd":0,"1f486-1f3fe":0,"1f486-1f3ff":0,"1f487-1f3fb-200d-2640":0,"1f487-1f3fc-200d-2640":0,"1f487-1f3fd-200d-2640":0,"1f487-1f3fe-200d-2640":0,"1f487-1f3ff-200d-2640":0,"1f487-1f3fb-200d-2642":0,"1f487-1f3fc-200d-2642":0,"1f487-1f3fd-200d-2642":0,"1f487-1f3fe-200d-2642":0,"1f487-1f3ff-200d-2642":0,"1f487-1f3fb":0,"1f487-1f3fc":0,"1f487-1f3fd":0,"1f487-1f3fe":0,"1f487-1f3ff":0,"1f48f-1f3fb":0,"1f48f-1f3fc":0,"1f48f-1f3fd":0,"1f48f-1f3fe":0,"1f48f-1f3ff":0,"1f9d1-1f3fb-200d-2764-200d-1f48b-200d-1f9d1-1f3fc":0,"1f9d1-1f3fb-200d-2764-200d-1f48b-200d-1f9d1-1f3fd":0,"1f9d1-1f3fb-200d-2764-200d-1f48b-200d-1f9d1-1f3fe":0,"1f9d1-1f3fb-200d-2764-200d-1f48b-200d-1f9d1-1f3ff":0,"1f9d1-1f3fc-200d-2764-200d-1f48b-200d-1f9d1-1f3fb":0,"1f9d1-1f3fc-200d-2764-200d-1f48b-200d-1f9d1-1f3fd":0,"1f9d1-1f3fc-200d-2764-200d-1f48b-200d-1f9d1-1f3fe":0,"1f9d1-1f3fc-200d-2764-200d-1f48b-200d-1f9d1-1f3ff":0,"1f9d1-1f3fd-200d-2764-200d-1f48b-200d-1f9d1-1f3fb":0,"1f9d1-1f3fd-200d-2764-200d-1f48b-200d-1f9d1-1f3fc":0,"1f9d1-1f3fd-200d-2764-200d-1f48b-200d-1f9d1-1f3fe":0,"1f9d1-1f3fd-200d-2764-200d-1f48b-200d-1f9d1-1f3ff":0,"1f9d1-1f3fe-200d-2764-200d-1f48b-200d-1f9d1-1f3fb":0,"1f9d1-1f3fe-200d-2764-200d-1f48b-200d-1f9d1-1f3fc":0,"1f9d1-1f3fe-200d-2764-200d-1f48b-200d-1f9d1-1f3fd":0,"1f9d1-1f3fe-200d-2764-200d-1f48b-200d-1f9d1-1f3ff":0,"1f9d1-1f3ff-200d-2764-200d-1f48b-200d-1f9d1-1f3fb":0,"1f9d1-1f3ff-200d-2764-200d-1f48b-200d-1f9d1-1f3fc":0,"1f9d1-1f3ff-200d-2764-200d-1f48b-200d-1f9d1-1f3fd":0,"1f9d1-1f3ff-200d-2764-200d-1f48b-200d-1f9d1-1f3fe":0,"1f491-1f3fb":0,"1f491-1f3fc":0,"1f491-1f3fd":0,"1f491-1f3fe":0,"1f491-1f3ff":0,"1f9d1-1f3fb-200d-2764-200d-1f9d1-1f3fc":0,"1f9d1-1f3fb-200d-2764-200d-1f9d1-1f3fd":0,"1f9d1-1f3fb-200d-2764-200d-1f9d1-1f3fe":0,"1f9d1-1f3fb-200d-2764-200d-1f9d1-1f3ff":0,"1f9d1-1f3fc-200d-2764-200d-1f9d1-1f3fb":0,"1f9d1-1f3fc-200d-2764-200d-1f9d1-1f3fd":0,"1f9d1-1f3fc-200d-2764-200d-1f9d1-1f3fe":0,"1f9d1-1f3fc-200d-2764-200d-1f9d1-1f3ff":0,"1f9d1-1f3fd-200d-2764-200d-1f9d1-1f3fb":0,"1f9d1-1f3fd-200d-2764-200d-1f9d1-1f3fc":0,"1f9d1-1f3fd-200d-2764-200d-1f9d1-1f3fe":0,"1f9d1-1f3fd-200d-2764-200d-1f9d1-1f3ff":0,"1f9d1-1f3fe-200d-2764-200d-1f9d1-1f3fb":0,"1f9d1-1f3fe-200d-2764-200d-1f9d1-1f3fc":0,"1f9d1-1f3fe-200d-2764-200d-1f9d1-1f3fd":0,"1f9d1-1f3fe-200d-2764-200d-1f9d1-1f3ff":0,"1f9d1-1f3ff-200d-2764-200d-1f9d1-1f3fb":0,"1f9d1-1f3ff-200d-2764-200d-1f9d1-1f3fc":0,"1f9d1-1f3ff-200d-2764-200d-1f9d1-1f3fd":0,"1f9d1-1f3ff-200d-2764-200d-1f9d1-1f3fe":0,"1f4aa-1f3fb":0,"1f4aa-1f3fc":0,"1f4aa-1f3fd":0,"1f4aa-1f3fe":0,"1f4aa-1f3ff":0,"1f574-1f3fb":0,"1f574-1f3fc":0,"1f574-1f3fd":0,"1f574-1f3fe":0,"1f574-1f3ff":0,"1f575-1f3fb-200d-2640":0,"1f575-1f3fc-200d-2640":0,"1f575-1f3fd-200d-2640":0,"1f575-1f3fe-200d-2640":0,"1f575-1f3ff-200d-2640":0,"1f575-1f3fb-200d-2642":0,"1f575-1f3fc-200d-2642":0,"1f575-1f3fd-200d-2642":0,"1f575-1f3fe-200d-2642":0,"1f575-1f3ff-200d-2642":0,"1f575-1f3fb":0,"1f575-1f3fc":0,"1f575-1f3fd":0,"1f575-1f3fe":0,"1f575-1f3ff":0,"1f57a-1f3fb":0,"1f57a-1f3fc":0,"1f57a-1f3fd":0,"1f57a-1f3fe":0,"1f57a-1f3ff":0,"1f590-1f3fb":0,"1f590-1f3fc":0,"1f590-1f3fd":0,"1f590-1f3fe":0,"1f590-1f3ff":0,"1f595-1f3fb":0,"1f595-1f3fc":0,"1f595-1f3fd":0,"1f595-1f3fe":0,"1f595-1f3ff":0,"1f596-1f3fb":0,"1f596-1f3fc":0,"1f596-1f3fd":0,"1f596-1f3fe":0,"1f596-1f3ff":0,"1f645-1f3fb-200d-2640":0,"1f645-1f3fc-200d-2640":0,"1f645-1f3fd-200d-2640":0,"1f645-1f3fe-200d-2640":0,"1f645-1f3ff-200d-2640":0,"1f645-1f3fb-200d-2642":0,"1f645-1f3fc-200d-2642":0,"1f645-1f3fd-200d-2642":0,"1f645-1f3fe-200d-2642":0,"1f645-1f3ff-200d-2642":0,"1f645-1f3fb":0,"1f645-1f3fc":0,"1f645-1f3fd":0,"1f645-1f3fe":0,"1f645-1f3ff":0,"1f646-1f3fb-200d-2640":0,"1f646-1f3fc-200d-2640":0,"1f646-1f3fd-200d-2640":0,"1f646-1f3fe-200d-2640":0,"1f646-1f3ff-200d-2640":0,"1f646-1f3fb-200d-2642":0,"1f646-1f3fc-200d-2642":0,"1f646-1f3fd-200d-2642":0,"1f646-1f3fe-200d-2642":0,"1f646-1f3ff-200d-2642":0,"1f646-1f3fb":0,"1f646-1f3fc":0,"1f646-1f3fd":0,"1f646-1f3fe":0,"1f646-1f3ff":0,"1f647-1f3fb-200d-2640":0,"1f647-1f3fc-200d-2640":0,"1f647-1f3fd-200d-2640":0,"1f647-1f3fe-200d-2640":0,"1f647-1f3ff-200d-2640":0,"1f647-1f3fb-200d-2642":0,"1f647-1f3fc-200d-2642":0,"1f647-1f3fd-200d-2642":0,"1f647-1f3fe-200d-2642":0,"1f647-1f3ff-200d-2642":0,"1f647-1f3fb":0,"1f647-1f3fc":0,"1f647-1f3fd":0,"1f647-1f3fe":0,"1f647-1f3ff":0,"1f64b-1f3fb-200d-2640":0,"1f64b-1f3fc-200d-2640":0,"1f64b-1f3fd-200d-2640":0,"1f64b-1f3fe-200d-2640":0,"1f64b-1f3ff-200d-2640":0,"1f64b-1f3fb-200d-2642":0,"1f64b-1f3fc-200d-2642":0,"1f64b-1f3fd-200d-2642":0,"1f64b-1f3fe-200d-2642":0,"1f64b-1f3ff-200d-2642":0,"1f64b-1f3fb":0,"1f64b-1f3fc":0,"1f64b-1f3fd":0,"1f64b-1f3fe":0,"1f64b-1f3ff":0,"1f64c-1f3fb":0,"1f64c-1f3fc":0,"1f64c-1f3fd":0,"1f64c-1f3fe":0,"1f64c-1f3ff":0,"1f64d-1f3fb-200d-2640":0,"1f64d-1f3fc-200d-2640":0,"1f64d-1f3fd-200d-2640":0,"1f64d-1f3fe-200d-2640":0,"1f64d-1f3ff-200d-2640":0,"1f64d-1f3fb-200d-2642":0,"1f64d-1f3fc-200d-2642":0,"1f64d-1f3fd-200d-2642":0,"1f64d-1f3fe-200d-2642":0,"1f64d-1f3ff-200d-2642":0,"1f64d-1f3fb":0,"1f64d-1f3fc":0,"1f64d-1f3fd":0,"1f64d-1f3fe":0,"1f64d-1f3ff":0,"1f64e-1f3fb-200d-2640":0,"1f64e-1f3fc-200d-2640":0,"1f64e-1f3fd-200d-2640":0,"1f64e-1f3fe-200d-2640":0,"1f64e-1f3ff-200d-2640":0,"1f64e-1f3fb-200d-2642":0,"1f64e-1f3fc-200d-2642":0,"1f64e-1f3fd-200d-2642":0,"1f64e-1f3fe-200d-2642":0,"1f64e-1f3ff-200d-2642":0,"1f64e-1f3fb":0,"1f64e-1f3fc":0,"1f64e-1f3fd":0,"1f64e-1f3fe":0,"1f64e-1f3ff":0,"1f64f-1f3fb":0,"1f64f-1f3fc":0,"1f64f-1f3fd":0,"1f64f-1f3fe":0,"1f64f-1f3ff":0,"1f6a3-1f3fb-200d-2640":0,"1f6a3-1f3fc-200d-2640":0,"1f6a3-1f3fd-200d-2640":0,"1f6a3-1f3fe-200d-2640":0,"1f6a3-1f3ff-200d-2640":0,"1f6a3-1f3fb-200d-2642":0,"1f6a3-1f3fc-200d-2642":0,"1f6a3-1f3fd-200d-2642":0,"1f6a3-1f3fe-200d-2642":0,"1f6a3-1f3ff-200d-2642":0,"1f6a3-1f3fb":0,"1f6a3-1f3fc":0,"1f6a3-1f3fd":0,"1f6a3-1f3fe":0,"1f6a3-1f3ff":0,"1f6b4-1f3fb-200d-2640":0,"1f6b4-1f3fc-200d-2640":0,"1f6b4-1f3fd-200d-2640":0,"1f6b4-1f3fe-200d-2640":0,"1f6b4-1f3ff-200d-2640":0,"1f6b4-1f3fb-200d-2642":0,"1f6b4-1f3fc-200d-2642":0,"1f6b4-1f3fd-200d-2642":0,"1f6b4-1f3fe-200d-2642":0,"1f6b4-1f3ff-200d-2642":0,"1f6b4-1f3fb":0,"1f6b4-1f3fc":0,"1f6b4-1f3fd":0,"1f6b4-1f3fe":0,"1f6b4-1f3ff":0,"1f6b5-1f3fb-200d-2640":0,"1f6b5-1f3fc-200d-2640":0,"1f6b5-1f3fd-200d-2640":0,"1f6b5-1f3fe-200d-2640":0,"1f6b5-1f3ff-200d-2640":0,"1f6b5-1f3fb-200d-2642":0,"1f6b5-1f3fc-200d-2642":0,"1f6b5-1f3fd-200d-2642":0,"1f6b5-1f3fe-200d-2642":0,"1f6b5-1f3ff-200d-2642":0,"1f6b5-1f3fb":0,"1f6b5-1f3fc":0,"1f6b5-1f3fd":0,"1f6b5-1f3fe":0,"1f6b5-1f3ff":0,"1f6b6-1f3fb-200d-2640":0,"1f6b6-1f3fc-200d-2640":0,"1f6b6-1f3fd-200d-2640":0,"1f6b6-1f3fe-200d-2640":0,"1f6b6-1f3ff-200d-2640":0,"1f6b6-1f3fb-200d-2642":0,"1f6b6-1f3fc-200d-2642":0,"1f6b6-1f3fd-200d-2642":0,"1f6b6-1f3fe-200d-2642":0,"1f6b6-1f3ff-200d-2642":0,"1f6b6-1f3fb":0,"1f6b6-1f3fc":0,"1f6b6-1f3fd":0,"1f6b6-1f3fe":0,"1f6b6-1f3ff":0,"1f6c0-1f3fb":0,"1f6c0-1f3fc":0,"1f6c0-1f3fd":0,"1f6c0-1f3fe":0,"1f6c0-1f3ff":0,"1f6cc-1f3fb":0,"1f6cc-1f3fc":0,"1f6cc-1f3fd":0,"1f6cc-1f3fe":0,"1f6cc-1f3ff":0,"1f90c-1f3fb":0,"1f90c-1f3fc":0,"1f90c-1f3fd":0,"1f90c-1f3fe":0,"1f90c-1f3ff":0,"1f90f-1f3fb":0,"1f90f-1f3fc":0,"1f90f-1f3fd":0,"1f90f-1f3fe":0,"1f90f-1f3ff":0,"1f918-1f3fb":0,"1f918-1f3fc":0,"1f918-1f3fd":0,"1f918-1f3fe":0,"1f918-1f3ff":0,"1f919-1f3fb":0,"1f919-1f3fc":0,"1f919-1f3fd":0,"1f919-1f3fe":0,"1f919-1f3ff":0,"1f91a-1f3fb":0,"1f91a-1f3fc":0,"1f91a-1f3fd":0,"1f91a-1f3fe":0,"1f91a-1f3ff":0,"1f91b-1f3fb":0,"1f91b-1f3fc":0,"1f91b-1f3fd":0,"1f91b-1f3fe":0,"1f91b-1f3ff":0,"1f91c-1f3fb":0,"1f91c-1f3fc":0,"1f91c-1f3fd":0,"1f91c-1f3fe":0,"1f91c-1f3ff":0,"1f91d-1f3fb":0,"1f91d-1f3fc":0,"1f91d-1f3fd":0,"1f91d-1f3fe":0,"1f91d-1f3ff":0,"1f91e-1f3fb":0,"1f91e-1f3fc":0,"1f91e-1f3fd":0,"1f91e-1f3fe":0,"1f91e-1f3ff":0,"1f91f-1f3fb":0,"1f91f-1f3fc":0,"1f91f-1f3fd":0,"1f91f-1f3fe":0,"1f91f-1f3ff":0,"1f926-1f3fb-200d-2640":0,"1f926-1f3fc-200d-2640":0,"1f926-1f3fd-200d-2640":0,"1f926-1f3fe-200d-2640":0,"1f926-1f3ff-200d-2640":0,"1f926-1f3fb-200d-2642":0,"1f926-1f3fc-200d-2642":0,"1f926-1f3fd-200d-2642":0,"1f926-1f3fe-200d-2642":0,"1f926-1f3ff-200d-2642":0,"1f926-1f3fb":0,"1f926-1f3fc":0,"1f926-1f3fd":0,"1f926-1f3fe":0,"1f926-1f3ff":0,"1f930-1f3fb":0,"1f930-1f3fc":0,"1f930-1f3fd":0,"1f930-1f3fe":0,"1f930-1f3ff":0,"1f931-1f3fb":0,"1f931-1f3fc":0,"1f931-1f3fd":0,"1f931-1f3fe":0,"1f931-1f3ff":0,"1f932-1f3fb":0,"1f932-1f3fc":0,"1f932-1f3fd":0,"1f932-1f3fe":0,"1f932-1f3ff":0,"1f933-1f3fb":0,"1f933-1f3fc":0,"1f933-1f3fd":0,"1f933-1f3fe":0,"1f933-1f3ff":0,"1f934-1f3fb":0,"1f934-1f3fc":0,"1f934-1f3fd":0,"1f934-1f3fe":0,"1f934-1f3ff":0,"1f935-1f3fb-200d-2640":0,"1f935-1f3fc-200d-2640":0,"1f935-1f3fd-200d-2640":0,"1f935-1f3fe-200d-2640":0,"1f935-1f3ff-200d-2640":0,"1f935-1f3fb-200d-2642":0,"1f935-1f3fc-200d-2642":0,"1f935-1f3fd-200d-2642":0,"1f935-1f3fe-200d-2642":0,"1f935-1f3ff-200d-2642":0,"1f935-1f3fb":0,"1f935-1f3fc":0,"1f935-1f3fd":0,"1f935-1f3fe":0,"1f935-1f3ff":0,"1f936-1f3fb":0,"1f936-1f3fc":0,"1f936-1f3fd":0,"1f936-1f3fe":0,"1f936-1f3ff":0,"1f937-1f3fb-200d-2640":0,"1f937-1f3fc-200d-2640":0,"1f937-1f3fd-200d-2640":0,"1f937-1f3fe-200d-2640":0,"1f937-1f3ff-200d-2640":0,"1f937-1f3fb-200d-2642":0,"1f937-1f3fc-200d-2642":0,"1f937-1f3fd-200d-2642":0,"1f937-1f3fe-200d-2642":0,"1f937-1f3ff-200d-2642":0,"1f937-1f3fb":0,"1f937-1f3fc":0,"1f937-1f3fd":0,"1f937-1f3fe":0,"1f937-1f3ff":0,"1f938-1f3fb-200d-2640":0,"1f938-1f3fc-200d-2640":0,"1f938-1f3fd-200d-2640":0,"1f938-1f3fe-200d-2640":0,"1f938-1f3ff-200d-2640":0,"1f938-1f3fb-200d-2642":0,"1f938-1f3fc-200d-2642":0,"1f938-1f3fd-200d-2642":0,"1f938-1f3fe-200d-2642":0,"1f938-1f3ff-200d-2642":0,"1f938-1f3fb":0,"1f938-1f3fc":0,"1f938-1f3fd":0,"1f938-1f3fe":0,"1f938-1f3ff":0,"1f939-1f3fb-200d-2640":0,"1f939-1f3fc-200d-2640":0,"1f939-1f3fd-200d-2640":0,"1f939-1f3fe-200d-2640":0,"1f939-1f3ff-200d-2640":0,"1f939-1f3fb-200d-2642":0,"1f939-1f3fc-200d-2642":0,"1f939-1f3fd-200d-2642":0,"1f939-1f3fe-200d-2642":0,"1f939-1f3ff-200d-2642":0,"1f939-1f3fb":0,"1f939-1f3fc":0,"1f939-1f3fd":0,"1f939-1f3fe":0,"1f939-1f3ff":0,"1f93d-1f3fb-200d-2640":0,"1f93d-1f3fc-200d-2640":0,"1f93d-1f3fd-200d-2640":0,"1f93d-1f3fe-200d-2640":0,"1f93d-1f3ff-200d-2640":0,"1f93d-1f3fb-200d-2642":0,"1f93d-1f3fc-200d-2642":0,"1f93d-1f3fd-200d-2642":0,"1f93d-1f3fe-200d-2642":0,"1f93d-1f3ff-200d-2642":0,"1f93d-1f3fb":0,"1f93d-1f3fc":0,"1f93d-1f3fd":0,"1f93d-1f3fe":0,"1f93d-1f3ff":0,"1f93e-1f3fb-200d-2640":0,"1f93e-1f3fc-200d-2640":0,"1f93e-1f3fd-200d-2640":0,"1f93e-1f3fe-200d-2640":0,"1f93e-1f3ff-200d-2640":0,"1f93e-1f3fb-200d-2642":0,"1f93e-1f3fc-200d-2642":0,"1f93e-1f3fd-200d-2642":0,"1f93e-1f3fe-200d-2642":0,"1f93e-1f3ff-200d-2642":0,"1f93e-1f3fb":0,"1f93e-1f3fc":0,"1f93e-1f3fd":0,"1f93e-1f3fe":0,"1f93e-1f3ff":0,"1f977-1f3fb":0,"1f977-1f3fc":0,"1f977-1f3fd":0,"1f977-1f3fe":0,"1f977-1f3ff":0,"1f9b5-1f3fb":0,"1f9b5-1f3fc":0,"1f9b5-1f3fd":0,"1f9b5-1f3fe":0,"1f9b5-1f3ff":0,"1f9b6-1f3fb":0,"1f9b6-1f3fc":0,"1f9b6-1f3fd":0,"1f9b6-1f3fe":0,"1f9b6-1f3ff":0,"1f9b8-1f3fb-200d-2640":0,"1f9b8-1f3fc-200d-2640":0,"1f9b8-1f3fd-200d-2640":0,"1f9b8-1f3fe-200d-2640":0,"1f9b8-1f3ff-200d-2640":0,"1f9b8-1f3fb-200d-2642":0,"1f9b8-1f3fc-200d-2642":0,"1f9b8-1f3fd-200d-2642":0,"1f9b8-1f3fe-200d-2642":0,"1f9b8-1f3ff-200d-2642":0,"1f9b8-1f3fb":0,"1f9b8-1f3fc":0,"1f9b8-1f3fd":0,"1f9b8-1f3fe":0,"1f9b8-1f3ff":0,"1f9b9-1f3fb-200d-2640":0,"1f9b9-1f3fc-200d-2640":0,"1f9b9-1f3fd-200d-2640":0,"1f9b9-1f3fe-200d-2640":0,"1f9b9-1f3ff-200d-2640":0,"1f9b9-1f3fb-200d-2642":0,"1f9b9-1f3fc-200d-2642":0,"1f9b9-1f3fd-200d-2642":0,"1f9b9-1f3fe-200d-2642":0,"1f9b9-1f3ff-200d-2642":0,"1f9b9-1f3fb":0,"1f9b9-1f3fc":0,"1f9b9-1f3fd":0,"1f9b9-1f3fe":0,"1f9b9-1f3ff":0,"1f9bb-1f3fb":0,"1f9bb-1f3fc":0,"1f9bb-1f3fd":0,"1f9bb-1f3fe":0,"1f9bb-1f3ff":0,"1f9cd-1f3fb-200d-2640":0,"1f9cd-1f3fc-200d-2640":0,"1f9cd-1f3fd-200d-2640":0,"1f9cd-1f3fe-200d-2640":0,"1f9cd-1f3ff-200d-2640":0,"1f9cd-1f3fb-200d-2642":0,"1f9cd-1f3fc-200d-2642":0,"1f9cd-1f3fd-200d-2642":0,"1f9cd-1f3fe-200d-2642":0,"1f9cd-1f3ff-200d-2642":0,"1f9cd-1f3fb":0,"1f9cd-1f3fc":0,"1f9cd-1f3fd":0,"1f9cd-1f3fe":0,"1f9cd-1f3ff":0,"1f9ce-1f3fb-200d-2640":0,"1f9ce-1f3fc-200d-2640":0,"1f9ce-1f3fd-200d-2640":0,"1f9ce-1f3fe-200d-2640":0,"1f9ce-1f3ff-200d-2640":0,"1f9ce-1f3fb-200d-2642":0,"1f9ce-1f3fc-200d-2642":0,"1f9ce-1f3fd-200d-2642":0,"1f9ce-1f3fe-200d-2642":0,"1f9ce-1f3ff-200d-2642":0,"1f9ce-1f3fb":0,"1f9ce-1f3fc":0,"1f9ce-1f3fd":0,"1f9ce-1f3fe":0,"1f9ce-1f3ff":0,"1f9cf-1f3fb-200d-2640":0,"1f9cf-1f3fc-200d-2640":0,"1f9cf-1f3fd-200d-2640":0,"1f9cf-1f3fe-200d-2640":0,"1f9cf-1f3ff-200d-2640":0,"1f9cf-1f3fb-200d-2642":0,"1f9cf-1f3fc-200d-2642":0,"1f9cf-1f3fd-200d-2642":0,"1f9cf-1f3fe-200d-2642":0,"1f9cf-1f3ff-200d-2642":0,"1f9cf-1f3fb":0,"1f9cf-1f3fc":0,"1f9cf-1f3fd":0,"1f9cf-1f3fe":0,"1f9cf-1f3ff":0,"1f9d1-1f3fb-200d-1f33e":0,"1f9d1-1f3fc-200d-1f33e":0,"1f9d1-1f3fd-200d-1f33e":0,"1f9d1-1f3fe-200d-1f33e":0,"1f9d1-1f3ff-200d-1f33e":0,"1f9d1-1f3fb-200d-1f373":0,"1f9d1-1f3fc-200d-1f373":0,"1f9d1-1f3fd-200d-1f373":0,"1f9d1-1f3fe-200d-1f373":0,"1f9d1-1f3ff-200d-1f373":0,"1f9d1-1f3fb-200d-1f37c":0,"1f9d1-1f3fc-200d-1f37c":0,"1f9d1-1f3fd-200d-1f37c":0,"1f9d1-1f3fe-200d-1f37c":0,"1f9d1-1f3ff-200d-1f37c":0,"1f9d1-1f3fb-200d-1f384":0,"1f9d1-1f3fc-200d-1f384":0,"1f9d1-1f3fd-200d-1f384":0,"1f9d1-1f3fe-200d-1f384":0,"1f9d1-1f3ff-200d-1f384":0,"1f9d1-1f3fb-200d-1f393":0,"1f9d1-1f3fc-200d-1f393":0,"1f9d1-1f3fd-200d-1f393":0,"1f9d1-1f3fe-200d-1f393":0,"1f9d1-1f3ff-200d-1f393":0,"1f9d1-1f3fb-200d-1f3a4":0,"1f9d1-1f3fc-200d-1f3a4":0,"1f9d1-1f3fd-200d-1f3a4":0,"1f9d1-1f3fe-200d-1f3a4":0,"1f9d1-1f3ff-200d-1f3a4":0,"1f9d1-1f3fb-200d-1f3a8":0,"1f9d1-1f3fc-200d-1f3a8":0,"1f9d1-1f3fd-200d-1f3a8":0,"1f9d1-1f3fe-200d-1f3a8":0,"1f9d1-1f3ff-200d-1f3a8":0,"1f9d1-1f3fb-200d-1f3eb":0,"1f9d1-1f3fc-200d-1f3eb":0,"1f9d1-1f3fd-200d-1f3eb":0,"1f9d1-1f3fe-200d-1f3eb":0,"1f9d1-1f3ff-200d-1f3eb":0,"1f9d1-1f3fb-200d-1f3ed":0,"1f9d1-1f3fc-200d-1f3ed":0,"1f9d1-1f3fd-200d-1f3ed":0,"1f9d1-1f3fe-200d-1f3ed":0,"1f9d1-1f3ff-200d-1f3ed":0,"1f9d1-1f3fb-200d-1f4bb":0,"1f9d1-1f3fc-200d-1f4bb":0,"1f9d1-1f3fd-200d-1f4bb":0,"1f9d1-1f3fe-200d-1f4bb":0,"1f9d1-1f3ff-200d-1f4bb":0,"1f9d1-1f3fb-200d-1f4bc":0,"1f9d1-1f3fc-200d-1f4bc":0,"1f9d1-1f3fd-200d-1f4bc":0,"1f9d1-1f3fe-200d-1f4bc":0,"1f9d1-1f3ff-200d-1f4bc":0,"1f9d1-1f3fb-200d-1f527":0,"1f9d1-1f3fc-200d-1f527":0,"1f9d1-1f3fd-200d-1f527":0,"1f9d1-1f3fe-200d-1f527":0,"1f9d1-1f3ff-200d-1f527":0,"1f9d1-1f3fb-200d-1f52c":0,"1f9d1-1f3fc-200d-1f52c":0,"1f9d1-1f3fd-200d-1f52c":0,"1f9d1-1f3fe-200d-1f52c":0,"1f9d1-1f3ff-200d-1f52c":0,"1f9d1-1f3fb-200d-1f680":0,"1f9d1-1f3fc-200d-1f680":0,"1f9d1-1f3fd-200d-1f680":0,"1f9d1-1f3fe-200d-1f680":0,"1f9d1-1f3ff-200d-1f680":0,"1f9d1-1f3fb-200d-1f692":0,"1f9d1-1f3fc-200d-1f692":0,"1f9d1-1f3fd-200d-1f692":0,"1f9d1-1f3fe-200d-1f692":0,"1f9d1-1f3ff-200d-1f692":0,"1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fb":0,"1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fc":0,"1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fd":0,"1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fe":0,"1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3ff":0,"1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fb":0,"1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fc":0,"1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fd":0,"1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fe":0,"1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3ff":0,"1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fb":0,"1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fc":0,"1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fd":0,"1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fe":0,"1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3ff":0,"1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fb":0,"1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fc":0,"1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fd":0,"1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fe":0,"1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3ff":0,"1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fb":0,"1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fc":0,"1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fd":0,"1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fe":0,"1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3ff":0,"1f9d1-1f3fb-200d-1f9af":0,"1f9d1-1f3fc-200d-1f9af":0,"1f9d1-1f3fd-200d-1f9af":0,"1f9d1-1f3fe-200d-1f9af":0,"1f9d1-1f3ff-200d-1f9af":0,"1f9d1-1f3fb-200d-1f9b0":0,"1f9d1-1f3fc-200d-1f9b0":0,"1f9d1-1f3fd-200d-1f9b0":0,"1f9d1-1f3fe-200d-1f9b0":0,"1f9d1-1f3ff-200d-1f9b0":0,"1f9d1-1f3fb-200d-1f9b1":0,"1f9d1-1f3fc-200d-1f9b1":0,"1f9d1-1f3fd-200d-1f9b1":0,"1f9d1-1f3fe-200d-1f9b1":0,"1f9d1-1f3ff-200d-1f9b1":0,"1f9d1-1f3fb-200d-1f9b2":0,"1f9d1-1f3fc-200d-1f9b2":0,"1f9d1-1f3fd-200d-1f9b2":0,"1f9d1-1f3fe-200d-1f9b2":0,"1f9d1-1f3ff-200d-1f9b2":0,"1f9d1-1f3fb-200d-1f9b3":0,"1f9d1-1f3fc-200d-1f9b3":0,"1f9d1-1f3fd-200d-1f9b3":0,"1f9d1-1f3fe-200d-1f9b3":0,"1f9d1-1f3ff-200d-1f9b3":0,"1f9d1-1f3fb-200d-1f9bc":0,"1f9d1-1f3fc-200d-1f9bc":0,"1f9d1-1f3fd-200d-1f9bc":0,"1f9d1-1f3fe-200d-1f9bc":0,"1f9d1-1f3ff-200d-1f9bc":0,"1f9d1-1f3fb-200d-1f9bd":0,"1f9d1-1f3fc-200d-1f9bd":0,"1f9d1-1f3fd-200d-1f9bd":0,"1f9d1-1f3fe-200d-1f9bd":0,"1f9d1-1f3ff-200d-1f9bd":0,"1f9d1-1f3fb-200d-2695":0,"1f9d1-1f3fc-200d-2695":0,"1f9d1-1f3fd-200d-2695":0,"1f9d1-1f3fe-200d-2695":0,"1f9d1-1f3ff-200d-2695":0,"1f9d1-1f3fb-200d-2696":0,"1f9d1-1f3fc-200d-2696":0,"1f9d1-1f3fd-200d-2696":0,"1f9d1-1f3fe-200d-2696":0,"1f9d1-1f3ff-200d-2696":0,"1f9d1-1f3fb-200d-2708":0,"1f9d1-1f3fc-200d-2708":0,"1f9d1-1f3fd-200d-2708":0,"1f9d1-1f3fe-200d-2708":0,"1f9d1-1f3ff-200d-2708":0,"1f9d1-1f3fb":0,"1f9d1-1f3fc":0,"1f9d1-1f3fd":0,"1f9d1-1f3fe":0,"1f9d1-1f3ff":0,"1f9d2-1f3fb":0,"1f9d2-1f3fc":0,"1f9d2-1f3fd":0,"1f9d2-1f3fe":0,"1f9d2-1f3ff":0,"1f9d3-1f3fb":0,"1f9d3-1f3fc":0,"1f9d3-1f3fd":0,"1f9d3-1f3fe":0,"1f9d3-1f3ff":0,"1f9d4-1f3fb-200d-2640":0,"1f9d4-1f3fc-200d-2640":0,"1f9d4-1f3fd-200d-2640":0,"1f9d4-1f3fe-200d-2640":0,"1f9d4-1f3ff-200d-2640":0,"1f9d4-1f3fb-200d-2642":0,"1f9d4-1f3fc-200d-2642":0,"1f9d4-1f3fd-200d-2642":0,"1f9d4-1f3fe-200d-2642":0,"1f9d4-1f3ff-200d-2642":0,"1f9d4-1f3fb":0,"1f9d4-1f3fc":0,"1f9d4-1f3fd":0,"1f9d4-1f3fe":0,"1f9d4-1f3ff":0,"1f9d5-1f3fb":0,"1f9d5-1f3fc":0,"1f9d5-1f3fd":0,"1f9d5-1f3fe":0,"1f9d5-1f3ff":0,"1f9d6-1f3fb-200d-2640":0,"1f9d6-1f3fc-200d-2640":0,"1f9d6-1f3fd-200d-2640":0,"1f9d6-1f3fe-200d-2640":0,"1f9d6-1f3ff-200d-2640":0,"1f9d6-1f3fb-200d-2642":0,"1f9d6-1f3fc-200d-2642":0,"1f9d6-1f3fd-200d-2642":0,"1f9d6-1f3fe-200d-2642":0,"1f9d6-1f3ff-200d-2642":0,"1f9d6-1f3fb":0,"1f9d6-1f3fc":0,"1f9d6-1f3fd":0,"1f9d6-1f3fe":0,"1f9d6-1f3ff":0,"1f9d7-1f3fb-200d-2640":0,"1f9d7-1f3fc-200d-2640":0,"1f9d7-1f3fd-200d-2640":0,"1f9d7-1f3fe-200d-2640":0,"1f9d7-1f3ff-200d-2640":0,"1f9d7-1f3fb-200d-2642":0,"1f9d7-1f3fc-200d-2642":0,"1f9d7-1f3fd-200d-2642":0,"1f9d7-1f3fe-200d-2642":0,"1f9d7-1f3ff-200d-2642":0,"1f9d7-1f3fb":0,"1f9d7-1f3fc":0,"1f9d7-1f3fd":0,"1f9d7-1f3fe":0,"1f9d7-1f3ff":0,"1f9d8-1f3fb-200d-2640":0,"1f9d8-1f3fc-200d-2640":0,"1f9d8-1f3fd-200d-2640":0,"1f9d8-1f3fe-200d-2640":0,"1f9d8-1f3ff-200d-2640":0,"1f9d8-1f3fb-200d-2642":0,"1f9d8-1f3fc-200d-2642":0,"1f9d8-1f3fd-200d-2642":0,"1f9d8-1f3fe-200d-2642":0,"1f9d8-1f3ff-200d-2642":0,"1f9d8-1f3fb":0,"1f9d8-1f3fc":0,"1f9d8-1f3fd":0,"1f9d8-1f3fe":0,"1f9d8-1f3ff":0,"1f9d9-1f3fb-200d-2640":0,"1f9d9-1f3fc-200d-2640":0,"1f9d9-1f3fd-200d-2640":0,"1f9d9-1f3fe-200d-2640":0,"1f9d9-1f3ff-200d-2640":0,"1f9d9-1f3fb-200d-2642":0,"1f9d9-1f3fc-200d-2642":0,"1f9d9-1f3fd-200d-2642":0,"1f9d9-1f3fe-200d-2642":0,"1f9d9-1f3ff-200d-2642":0,"1f9d9-1f3fb":0,"1f9d9-1f3fc":0,"1f9d9-1f3fd":0,"1f9d9-1f3fe":0,"1f9d9-1f3ff":0,"1f9da-1f3fb-200d-2640":0,"1f9da-1f3fc-200d-2640":0,"1f9da-1f3fd-200d-2640":0,"1f9da-1f3fe-200d-2640":0,"1f9da-1f3ff-200d-2640":0,"1f9da-1f3fb-200d-2642":0,"1f9da-1f3fc-200d-2642":0,"1f9da-1f3fd-200d-2642":0,"1f9da-1f3fe-200d-2642":0,"1f9da-1f3ff-200d-2642":0,"1f9da-1f3fb":0,"1f9da-1f3fc":0,"1f9da-1f3fd":0,"1f9da-1f3fe":0,"1f9da-1f3ff":0,"1f9db-1f3fb-200d-2640":0,"1f9db-1f3fc-200d-2640":0,"1f9db-1f3fd-200d-2640":0,"1f9db-1f3fe-200d-2640":0,"1f9db-1f3ff-200d-2640":0,"1f9db-1f3fb-200d-2642":0,"1f9db-1f3fc-200d-2642":0,"1f9db-1f3fd-200d-2642":0,"1f9db-1f3fe-200d-2642":0,"1f9db-1f3ff-200d-2642":0,"1f9db-1f3fb":0,"1f9db-1f3fc":0,"1f9db-1f3fd":0,"1f9db-1f3fe":0,"1f9db-1f3ff":0,"1f9dc-1f3fb-200d-2640":0,"1f9dc-1f3fc-200d-2640":0,"1f9dc-1f3fd-200d-2640":0,"1f9dc-1f3fe-200d-2640":0,"1f9dc-1f3ff-200d-2640":0,"1f9dc-1f3fb-200d-2642":0,"1f9dc-1f3fc-200d-2642":0,"1f9dc-1f3fd-200d-2642":0,"1f9dc-1f3fe-200d-2642":0,"1f9dc-1f3ff-200d-2642":0,"1f9dc-1f3fb":0,"1f9dc-1f3fc":0,"1f9dc-1f3fd":0,"1f9dc-1f3fe":0,"1f9dc-1f3ff":0,"1f9dd-1f3fb-200d-2640":0,"1f9dd-1f3fc-200d-2640":0,"1f9dd-1f3fd-200d-2640":0,"1f9dd-1f3fe-200d-2640":0,"1f9dd-1f3ff-200d-2640":0,"1f9dd-1f3fb-200d-2642":0,"1f9dd-1f3fc-200d-2642":0,"1f9dd-1f3fd-200d-2642":0,"1f9dd-1f3fe-200d-2642":0,"1f9dd-1f3ff-200d-2642":0,"1f9dd-1f3fb":0,"1f9dd-1f3fc":0,"1f9dd-1f3fd":0,"1f9dd-1f3fe":0,"1f9dd-1f3ff":0,"261d-1f3fb":0,"261d-1f3fc":0,"261d-1f3fd":0,"261d-1f3fe":0,"261d-1f3ff":0,"26f9-1f3fb-200d-2640":0,"26f9-1f3fc-200d-2640":0,"26f9-1f3fd-200d-2640":0,"26f9-1f3fe-200d-2640":0,"26f9-1f3ff-200d-2640":0,"26f9-1f3fb-200d-2642":0,"26f9-1f3fc-200d-2642":0,"26f9-1f3fd-200d-2642":0,"26f9-1f3fe-200d-2642":0,"26f9-1f3ff-200d-2642":0,"26f9-1f3fb":0,"26f9-1f3fc":0,"26f9-1f3fd":0,"26f9-1f3fe":0,"26f9-1f3ff":0,"270a-1f3fb":0,"270a-1f3fc":0,"270a-1f3fd":0,"270a-1f3fe":0,"270a-1f3ff":0,"270b-1f3fb":0,"270b-1f3fc":0,"270b-1f3fd":0,"270b-1f3fe":0,"270b-1f3ff":0,"270c-1f3fb":0,"270c-1f3fc":0,"270c-1f3fd":0,"270c-1f3fe":0,"270c-1f3ff":0,"270d-1f3fb":0,"270d-1f3fc":0,"270d-1f3fd":0,"270d-1f3fe":0,"270d-1f3ff":0}},_o=Ys[""];for(const s in Ys)s&&Object.assign(_o,Ys[s]);function Pl(s){return To(Ll(s)).join("-")}const _l=/\uFE0F/g,Tl="‍",Ll=s=>s.indexOf(Tl)<0?s.replace(_l,""):s;function To(s){const e=[];let t=0,f=0,n=0;for(;n<s.length;)t=s.charCodeAt(n++),f?(e.push((65536+(f-55296<<10)+(t-56320)).toString(16)),f=0):t>55296&&t<=56319?f=t:e.push(t.toString(16));return e.length&&e[0].length===2&&(e[0]="00"+e[0]),e}function Il(s){const e=s.match(/[\uDFFB-\uDFFF]/);return e?5-(57343-e[0].charCodeAt(0)):0}const xl=new Map([["FT","🏴‍☠"]]);function Fm(s){return xl.get(s)??String.fromCharCode(55356,56741+s.charCodeAt(0),55356,56741+s.charCodeAt(1))}function Pm(s){return s.split("-").reduce((e,t)=>e+String.fromCodePoint(parseInt(t,16)),"")}function Ml(s){const e=Pl(s).replace(/-?fe0f/g,"");if(_o.hasOwnProperty(e))return e}function Kf(s){let e,t=s;const f=[];let n,i=0;for(Pr.lastIndex=0;e=t.match(Pr);){if(n=i+e.index,e[3])f.push({_:"messageEntityMention",offset:n+e[1].length,length:e[2].length+e[3].length});else if(e[4])if(k1.test(e[4]))f.push({_:"messageEntityEmail",offset:n,length:e[4].length});else{let r,a=e[5];const o=e[6];if(o){if(!a&&(o.substr(0,4)==="xn--"||kl.indexOf(o.toLowerCase())!==-1)&&(a="http://"),a){const c=Fl(e[4]);c.length!==e[4].length&&(e[4]=c),r=(e[5]?"":a)+e[4]}}else r=(e[5]?"":"http://")+e[4];r&&f.push({_:"messageEntityUrl",offset:n,length:e[4].length})}else if(e[7])f.push({_:"messageEntityLinebreak",offset:n,length:1});else if(e[8]){const r=Ml(e[8]);r&&f.push({_:"messageEntityEmoji",offset:n,length:e[8].length,unicode:r})}else if(e[11])f.push({_:"messageEntityHashtag",offset:n+(e[10]?e[10].length:0),length:e[11].length});else if(e[13])f.push({_:"messageEntityBotCommand",offset:n+(e[11]?e[11].length:0)+(e[12]?e[12].length:0),length:1+e[13].length+(e[14]?1+e[14].length:0),unsafe:!0});else if(e[16]){const r=e[16],a=r.split(":"),o=a.length,c=o===3?+a[0]:0,d=+a[o===3?1:0],l=+a[o-1];f.push({_:"messageEntityTimestamp",offset:n+(/\D/.test(e[0][0])?1:0),length:r.length,raw:r,time:c*3600+d*60+l})}t=t.substr(e.index+e[0].length),i+=e.index+e[0].length}return f}function Rl(s){return"#"+encodeURIComponent(s)}function Zn(s){return s.replace(/&/g,"&amp;").replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,e=>{const t=e.charCodeAt(0),f=e.charCodeAt(1);return"&#"+((t-55296)*1024+(f-56320)+65536)+";"}).replace(/([^\#-~| |!])/g,e=>"&#"+e.charCodeAt(0)+";").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ol(s){const e="⠁⠂⠄⠈⠐⠠⡀⢀⠃⠅⠆⠉⠊⠌⠑⠒⠔⠘⠡⠢⠤⠨⠰⡁⡂⡄⡈⡐⡠⢁⢂⢄⢈⢐⢠⣀⠇⠋⠍⠎⠓⠕⠖⠙⠚⠜⠣⠥⠦⠩⠪⠬⠱⠲⠴⠸⡃⡅⡆⡉⡊⡌⡑⡒⡔⡘⡡⡢⡤⡨⡰⢃⢅⢆⢉⢊⢌⢑⢒⢔⢘⢡⢢⢤⢨⢰⣁⣂⣄⣈⣐⣠⠏⠗⠛⠝⠞⠧⠫⠭⠮⠳⠵⠶⠹⠺⠼⡇⡋⡍⡎⡓⡕⡖⡙⡚⡜⡣⡥⡦⡩⡪⡬⡱⡲⡴⡸⢇⢋⢍⢎⢓⢕⢖⢙⢚⢜⢣⢥⢦⢩⢪⢬⢱⢲⢴⢸⣃⣅⣆⣉⣊⣌⣑⣒⣔⣘⣡⣢⣤⣨⣰⠟⠯⠷⠻⠽⠾⡏⡗⡛⡝⡞⡧⡫⡭⡮⡳⡵⡶⡹⡺⡼⢏⢗⢛⢝⢞⢧⢫⢭⢮⢳⢵⢶⢹⢺⢼⣇⣋⣍⣎⣓⣕⣖⣙⣚⣜⣣⣥⣦⣩⣪⣬⣱⣲⣴⣸⠿⡟⡯⡷⡻⡽⡾⢟⢯⢷⢻⢽⢾⣏⣗⣛⣝⣞⣧⣫⣭⣮⣳⣵⣶⣹⣺⣼⡿⢿⣟⣯⣷⣻⣽⣾⣿",t=e.length,f=[];for(let n=0;n<s.length;++n)f.push(e[(Math.random()*1e3|0)%t]);return f.join("")}function Nl(s,e){const t=s.slice(0,e.offset),f=s.slice(e.offset,e.offset+e.length),n=Ol(f),i=s.slice(e.offset+e.length);return s=t+n+i,{text:s,entityText:n}}const ei={};function Bl(s){const t=document.createElement("span");t.classList.add("emoji"),document.body.appendChild(t),t.innerText=s;const f=t.offsetWidth;t.innerText="❤️";const n=t.offsetWidth;return document.body.removeChild(t),Math.abs(f-n)<5}nn&&(ei[""]=!0,[["14","🫱🏻"]].forEach(([e,t])=>{ei[e]=Bl(t)}));function fr(s,e){const t=new Event(e,{bubbles:!0,cancelable:!0});s.dispatchEvent(t)}let ti;document.addEventListener("mousedown",s=>{ti=s.target,ti?.closest("[cancel-mouse-down]")&&s.preventDefault()});function Ul(s){if(s.isTrusted&&s.type==="click"&&s.target!==ti)return!0}const Ns=ke?"mousedown":"click";function Cf(s,e,t={}){const f=t.listenerSetter?t.listenerSetter.add(s):s.addEventListener.bind(s),n=t.listenerSetter?t.listenerSetter.removeManual.bind(t.listenerSetter,s):s.removeEventListener.bind(s);if(t.touchMouseDown=!0,t.cancelMouseDown&&s.setAttribute("cancel-mouse-down",""),Ns==="click"&&!t.ignoreMove){const i=e;e=r=>{Ul(r)||i(r)}}return f(Ns,e,t),()=>n(Ns,e,t)}function jl(s){fr(s,Ns)}const V="\uFEFF";function Wl(s){const{url:e,onclick:t}=on(s),f=document.createElement("a");return f.href=e,t&&f.setAttribute("onclick",`${t}(this)`),f}function Ks(s){return!!s?.isConnected}function Vl(s,e){for(let t=s.length,f=t-1;f>=0;--f)e(s[f],f,s)}function nr(s){try{const e=s.play();e instanceof Promise&&e.catch(ye)}catch(e){console.error(e)}}class Hl{constructor(){this.observer=new IntersectionObserver(e=>{for(const t of e){const f=t.target;for(const n in this.byGroups){if(this.intersectionLockedGroups[n])continue;const i=this.byGroups[n].find(r=>r.el===f);if(i){if(t.isIntersecting)this.visible.add(i),this.checkAnimation(i,!1);else{this.visible.delete(i),this.checkAnimation(i,!0);const r=i.animation;i.type==="lottie"&&r.clearCache()}break}}}}),this.visible=new Set,this.overrideIdleGroups=new Set,this.byGroups={},this.byPlayer=new Map,this.lockedGroups={},this.onlyOnePlayableGroup="",this.intersectionLockedGroups={},this.videosLocked=!1,ds.addEventListener("change",e=>{this.checkAnimations2(e)})}toggleMediaPause(e){e?this.videosLocked&&(this.videosLocked=!1,this.checkAnimations2()):(this.videosLocked=!0,this.checkAnimations2())}setOverrideIdleGroup(e,t){t?this.overrideIdleGroups.add(e):this.overrideIdleGroups.delete(e)}getAnimations(e){const t=[];for(const f in this.byGroups)for(const n of this.byGroups[f])n.el===e&&t.push(n);return t}removeAnimation(e){const{el:t,animation:f}=e;e.controlled!==!0&&e.type!=="video"&&f.remove();const n=this.byGroups[e.group];n&&(ze(n,e),n.length||delete this.byGroups[e.group]),this.observer.unobserve(t),this.visible.delete(e),this.byPlayer.delete(f)}removeAnimationByPlayer(e){const t=this.byPlayer.get(e);t&&this.removeAnimation(t)}addAnimation(e){var d;const{animation:t,group:f="",observeElement:n,controlled:i,liteModeKey:r,type:a,locked:o}=e;if(f==="none"||this.byPlayer.has(t))return;const c={el:n,animation:t,group:f,controlled:i,liteModeKey:r,type:a,locked:o};i&&typeof i!="boolean"&&i.onClean(()=>{this.removeAnimationByPlayer(t)}),c.type==="lottie"&&!C.settings.stickers.loop&&t.loop&&(t.loop=C.settings.stickers.loop),((d=this.byGroups)[f]??(d[f]=[])).push(c),this.observer.observe(c.el),this.byPlayer.set(t,c)}checkAnimations(e,t,f,n){if(t!==void 0&&!this.byGroups[t])return;const i=t!==void 0?[t]:Object.keys(this.byGroups);for(const r of i){if(n&&this.intersectionLockedGroups[r])continue;const a=this.byGroups[r];Vl(a,o=>{this.checkAnimation(o,e,f)})}}checkAnimations2(e){this.checkAnimations(e,void 0,void 0,!0)}checkAnimation(e,t,f){const{el:n,animation:i,group:r,locked:a}=e;if(!a){if(f||!this.lockedGroups[r]&&!Ks(n)){(!e.controlled||f)&&this.removeAnimation(e);return}t||this.onlyOnePlayableGroup&&this.onlyOnePlayableGroup!==r||e.type==="video"&&this.videosLocked?i.paused||i.pause():i.paused&&this.visible.has(e)&&i.autoplay&&(!this.onlyOnePlayableGroup||this.onlyOnePlayableGroup===r)&&(!ds.isIdle||this.overrideIdleGroups.has(e.group))&&nr(i)}}getOnlyOnePlayableGroup(){return this.onlyOnePlayableGroup}setOnlyOnePlayableGroup(e=""){this.onlyOnePlayableGroup=e}lockGroup(e){this.lockedGroups[e]=!0}unlockGroup(e){delete this.lockedGroups[e],this.checkAnimations(void 0,e)}refreshGroup(e){const t=this.byGroups[e];t?.length&&(t.forEach(f=>{this.observer.unobserve(f.el)}),Me(()=>{t.forEach(f=>{this.observer.observe(f.el)})}))}lockIntersectionGroup(e){this.intersectionLockedGroups[e]=!0}unlockIntersectionGroup(e){delete this.intersectionLockedGroups[e],this.refreshGroup(e)}toggleIntersectionGroup(e,t){t?this.lockIntersectionGroup(e):this.unlockIntersectionGroup(e)}setAutoplay(e,t){let f=!1;return this.byPlayer.forEach((n,i)=>{n.liteModeKey===t&&(f=!0,i.autoplay=e?i._autoplay:!1,i.loop=e?C.settings.stickers.loop&&i._loop:!1)}),f}setLoop(e){let t=!1;return this.byPlayer.forEach((f,n)=>{n._loop&&n.loop!==e&&(f.type==="lottie"||f.type==="video")&&(t=!0,n.loop=e,n.autoplay=n._autoplay)}),t}toggleItemLock(e,t){e.locked=t}}const be=new Hl;L&&(L.animationIntersector=be);class zl{constructor(e,t){this.items=new Map,this.locked=!1,this.observer=new IntersectionObserver(f=>{if(this.locked)return;const n=[];f.forEach((i,r)=>{const a=i.target;if(this.items.get(a)===i.isIntersecting)return;this.items.set(a,i.isIntersecting);const o={target:a,visible:i.isIntersecting,entry:i,index:r};n.push(o)}),n.forEach(i=>{e(i)})},t)}getVisible(){const e=[];return this.items.forEach((t,f)=>{t&&e.push(f)}),e}clearVisible(){const e=this.getVisible();for(const t of e)this.items.set(t,!1)}isVisible(e){return!!this.items.get(e)}disconnect(){this.observer.disconnect(),this.items.clear()}refresh(){this.observer.disconnect();const e=[...this.items.keys()];for(const t of e)this.observer.observe(t)}refreshVisible(){const e=this.getVisible();for(const t of e)this.observer.unobserve(t);for(const t of e)this.observer.observe(t)}observe(e){this.items.set(e,!1),this.observer.observe(e)}unobserve(e){this.observer.unobserve(e),this.items.delete(e)}unlock(){this.locked=!1}unlockAndRefresh(){this.unlock(),this.refresh()}lock(){this.locked=!0}}function Lo(s,e){const t=[];let f=-1;for(;(f=s.findIndex(e))!==-1;)t.push(s.splice(f,1)[0]);return t}function Gl(s,e){const t=s.findIndex(e);return t!==-1?s.splice(t,1)[0]:void 0}function ql(s,e,t=!0){let f=null,n,i;const r=()=>{clearInterval(f),f=null},a=(...o)=>{n=!0,i=o,f||(t&&(n=!1,s(...i)),f=setInterval(()=>{if(!n){r();return}n=!1,s(...i)},e))};return a.clear=r,a}const $l=8,Yl=new Set(["NO_ENTRY_FOUND","STORAGE_OFFLINE","MIDDLEWARE","NO_AUTO_DOWNLOAD"]);class Kl{constructor(e=$l){this.parallelLimit=e,this.queueId=0,this.queue=[],this.inProcess=new Set,this.lockPromise=null,this.unlockResolve=null,this.log=X("LL",sf.Error),this.processQueue=ql(()=>this._processQueue(),8,!1)}clear(){this.inProcess.clear(),this.queue.length=0}lock(){this.lockPromise||(this.lockPromise=new Promise((e,t)=>{this.unlockResolve=e}))}unlock(){this.unlockResolve&&(this.unlockResolve(),this.unlockResolve=this.lockPromise=null,this.processQueue())}async processItem(e){if(!this.lockPromise){this.inProcess.add(e);try{await this.loadItem(e)}catch(t){Yl.has(t?.type)||this.log.error("loadMediaQueue error:",t)}this.inProcess.delete(e),this.processQueue()}}loadItem(e){return e.load()}getItem(){return this.queue.shift()}addElement(e,t){this.queue[e](t),this.processQueue()}_processQueue(e){if(!(!this.queue.length||this.lockPromise||this.parallelLimit>0&&this.inProcess.size>=this.parallelLimit))do{if(e?ze(this.queue,e):e=this.getItem(),e)this.processItem(e);else break;e=null}while(this.inProcess.size<this.parallelLimit&&this.queue.length)}push(e){this.addElement("push",e)}unshift(e){this.addElement("unshift",e)}}class Jl extends Kl{constructor(e){super(e),this.queue=[],this.inProcess=new Set}lock(){super.lock(),this.intersector.lock()}unlock(){super.unlock(),this.intersector.unlock()}unlockAndRefresh(){super.unlock(),this.intersector.unlockAndRefresh()}clear(){super.clear(),this.intersector.disconnect()}refresh(){this.intersector.refresh()}loadItem(e){return e.load(e.div)}addElement(e,t){if(this.queue.find(n=>n.div===t.div&&n.load===t.load))return!1;for(const n of this.inProcess)if(n.div===t.div&&n.load===t.load)return!1;return this.queue[e](t),!0}setProcessQueueTimeout(){this.intersectorTimeout??(this.intersectorTimeout=window.setTimeout(()=>{this.intersectorTimeout=void 0,this.processQueue()},0))}push(e){super.push(e)}unshift(e){super.unshift(e)}delete(e){Lo(this.queue,t=>t.div===e.div),this.unobserve(e)}observe(e){this.intersector.observe(e.div)}unobserve(e){this.intersector.unobserve(e.div)}}const ht=new Be,si="start",fi="end";let Jf=!1,ft=G(),es=0;ft.resolve();const kf=console.log.bind(console.log,"[HEAVY-ANIMATION]:");function Io(s,e){Jf||(ft=G(),ht.dispatchEvent(si),Jf=!0,pe&&kf("start")),++es,pe&&kf("attach promise, length:",es,e);const t=[e!==void 0?ge(e):void 0,s.finally(()=>{})].filter(Boolean),f=performance.now(),n=ft;return Promise.race(t).then(()=>{ft!==n||ft.isFulfilled||(--es,pe&&kf("promise end, length:",es,performance.now()-f),es<=0&&xo())}),ft}window.dispatchHeavyAnimationEvent=Io;function xo(){ft.isFulfilled||(Jf=!1,es=0,ht.dispatchEvent(fi),ft.resolve(),pe&&kf("end"))}function _m(){xo()}function Mo(){return ft}function Ro(s,e,t){Jf&&s();const f=t?t.add(ht):ht.addEventListener.bind(ht),n=t?t.removeManual.bind(t,ht):ht.removeEventListener.bind(ht);return f(si,s),f(fi,e),()=>{n(fi,e),n(si,s)}}class Ql extends Jl{constructor(e,t){super(e),this.onVisibilityChange=({target:f,visible:n})=>{Lo(this.queue,i=>i.div===f).forEach(i=>{n&&(i.wasSeen=!0),i.visible=n;const r=this.queue.findIndex(a=>!a.visible);this.queue.splice(Math.max(0,r),0,i)}),this.setProcessQueueTimeout()},this.intersector=new zl(this.onVisibilityChange),!t&&Ro(()=>{this.lock()},()=>{this.unlockAndRefresh()})}getItem(){return Gl(this.queue,e=>e.wasSeen)}async processItem(e){await super.processItem(e),this.intersector.unobserve(e.div)}addElement(e,t){return super.addElement(e,t)?(this.observe(t),t.wasSeen??(t.wasSeen=!1),!0):!1}setAllSeen(){this.queue.forEach(e=>{e.wasSeen=!0}),this.setProcessQueueTimeout()}}function Xl(s){const e="AACAAAAHAAALMAAAQASTAVAAAZaacaaaahaaalmaaaqastava.az0123456789-,";let t="M";for(let f=0,n=s.length;f<n;++f){const i=s[f];i>=192?t+=e[i-128-64]:(i>=128?t+=",":i>=64&&(t+="-"),t+=""+(i&63))}return t+="z",t}let Kt,As;function Zl(s){Kt||(Kt=document.createElement("canvas"),As=Kt.getContext("2d"));const e=s.getContext("2d"),t=20*(s.dpr??1),f=t,n=t,i=(s.width-f)/2,a=s.height-n-0,o=e.getImageData(i,a,f,n).data;let c=0,d=0,l=0,u=0;for(let p=0;p<o.length;p+=4)c+=o[p],d+=o[p+1],l+=o[p+2],u+=o[p+3];Kt.width=Kt.height=t;const m=new Uint8ClampedArray([c*255/u,d*255/u,l*255/u,255]),h=`rgba(${m[0]}, ${m[1]}, ${m[2]}, ${m[3]})`;return As.fillStyle=h,As.fillRect(0,0,t,t),As.fillStyle="rgba(112, 117, 121, 0.3)",As.fillRect(0,0,t,t),Kt.toDataURL("image/jpeg")}const e0="application/x-mpegurl",Ur=X("HLS");X("SW-HLS");function Tm(s){return s?.mime_type===e0}const t0=new WeakMap;async function s0({video:s,src:e,middleware:t}){const{default:f}=await se(()=>import("./hls-I6_10gPe.js"),[],import.meta.url);Ur("initing video hls",e);const n=new f({debug:pe,startLevel:0,testBandwidth:!1,backBufferLength:30,maxBufferLength:60,maxMaxBufferLength:60,maxFragLookUpTolerance:.001,maxBufferHole:1,nudgeMaxRetry:1e4});t0.set(s,n),n.loadSource(e),n.attachMedia(s),t?.onDestroy(()=>{Ur("destroying Hls instance for video",e),n.destroy()})}function jr(s,e){s.includes("stream/")&&$.serviceMessagePort.invokeVoid("toggleStreamInUse",{url:s,inUse:e,accountNumber:Ae()})}function f0({pip:s,middleware:e}){const t=document.createElement("video");s||(t.disablePictureInPicture=!0),t.setAttribute("playsinline","true"),e?.onDestroy(async()=>{await Mo(),t.src="",t.load()});let f=t.src;return Object.defineProperty(t,"src",{get:()=>f,set:n=>{jr(f,!1),jr(n,!0),f=n,n.startsWith("hls/")?s0({video:t,src:n,middleware:e}):t.setAttribute("src",n)}}),t}const n0="DECODER_ERROR_NOT_SUPPORTED: Audio configuration specified 2 channels, but FFmpeg thinks the file contains 1 channels";function i0(s){return s.code===4&&s.message===n0}function r0(s){try{const e=s.target,t=e.error;if(!t||t.message.includes("URL safety check"))return console.warn("will ignore video error",s),!0;const f=i0(t);if(f&&!e.triedFixingChromeBug){let n;const i=e.src;return i.includes("stream/")?n=i+"?_crbug1250841":n=C.managers.appDocsManager.fixChromiumMp4(i),at(n,r=>{e.triedFixingChromeBug=!0,e.src!==r&&(e.src=r,e.load())}),!0}else f&&console.error("chrome video error",s)}catch{}return!1}function Oo(s,e=s.HAVE_METADATA,t){return new Promise((f,n)=>{if(s.readyState>=e){f();return}const i=At&&!t?"loadeddata":"canplay",r="error",a=()=>{s.removeEventListener(r,o),f()},o=c=>{r0(c)||(s.removeEventListener(i,a),s.removeEventListener(r,o),n(s.error))};s.addEventListener(i,a,{once:!0}),s.addEventListener(r,o)})}const Wr={},Vr=(s,e)=>{s instanceof HTMLImageElement||s instanceof HTMLVideoElement?s.src=e:s instanceof SVGImageElement?s.setAttributeNS(null,"href",e):s.style.backgroundImage="url("+e+")"};function Ff(s,e,t,f,n){if(n&&(f=!1),f??(f=n===void 0),!e){console.error("renderImageFromUrl: no url?",s,e),t?.();return}const i=s instanceof HTMLVideoElement;if(Wr[e]&&f||i){if(s&&Vr(s,e),t){if(i)return Oo(s).then(t);t?.()}}else{const r=s instanceof HTMLImageElement,a=r?s:new Image,o=()=>{!r&&s&&Vr(s,e),Wr[e]=!0,n?.(a),t?.()},c=d=>{d.message.includes("cannot be decoded")||console.error("Render image from url failed:",d,e,a,d.message,a.naturalWidth),t?.()};return a.decoding="async",a.src=e,a.decode().then(o,c)}}function No(s,e,t,f){return new Promise(n=>{Ff(s,e,n,t,f)})}function Bo(s){const e=s.length,t=new Uint8Array(Math.ceil(e/2));let f=0;e%2&&(t[f++]=parseInt(s.charAt(0),16));for(let n=f;n<e;n+=2)t[f++]=parseInt(s.substr(n,2),16);return t}function a0(s,e="image/jpeg"){return`data:${e};base64,${btoa(String.fromCharCode(...s))}`}const o0="ffd8ffe000104a46494600010100000100010000ffdb004300281c1e231e19282321232d2b28303c64413c37373c7b585d4964918099968f808c8aa0b4e6c3a0aadaad8a8cc8ffcbdaeef5ffffff9bc1fffffffaffe6fdfff8ffdb0043012b2d2d3c353c76414176f8a58ca5f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8ffc00011080000000003012200021101031101ffc4001f0000010501010101010100000000000000000102030405060708090a0bffc400b5100002010303020403050504040000017d01020300041105122131410613516107227114328191a1082342b1c11552d1f02433627282090a161718191a25262728292a3435363738393a434445464748494a535455565758595a636465666768696a737475767778797a838485868788898a92939495969798999aa2a3a4a5a6a7a8a9aab2b3b4b5b6b7b8b9bac2c3c4c5c6c7c8c9cad2d3d4d5d6d7d8d9dae1e2e3e4e5e6e7e8e9eaf1f2f3f4f5f6f7f8f9faffc4001f0100030101010101010101010000000000000102030405060708090a0bffc400b51100020102040403040705040400010277000102031104052131061241510761711322328108144291a1b1c109233352f0156272d10a162434e125f11718191a262728292a35363738393a434445464748494a535455565758595a636465666768696a737475767778797a82838485868788898a92939495969798999aa2a3a4a5a6a7a8a9aab2b3b4b5b6b7b8b9bac2c3c4c5c6c7c8c9cad2d3d4d5d6d7d8d9dae2e3e4e5e6e7e8e9eaf2f3f4f5f6f7f8f9faffda000c03010002110311003f00",c0=Bo(o0),d0=Bo("ffd9");function Lm(s){const e="base64,",t=s.slice(s.indexOf(e)+e.length),f=[...atob(t)].map(n=>n.charCodeAt(0));return new Uint8Array(f)}function l0(s,e=!1){let t;!e&&s[0]===1?(t=new Uint8Array(c0.concat(Array.from(s.slice(3)),d0)),t[164]=s[1],t[166]=s[2]):t=to(s);let f;return e?f=le?"image/png":"image/webp":f="image/jpeg",a0(t,f)}function Uo(s,e,t=!1){return l0(e.bytes,t)}const ni=[];let Hr=!1;function u0(s,e="push"){if(!s.items.length)return Promise.resolve([]);const t=s.promise=G();return ni[e](s),jo(),t}function jo(){if(!Hr){const s=ni.shift();h0(s).finally(()=>{Hr=!1,ni.length&&jo()})}}function h0(s){if(!s.items.length)return s.promise.resolve([]),Promise.resolve([]);const e=s.items.slice(),t=[];return new Promise((f,n)=>{const i=async()=>{const r=performance.now();do{await Mo();const a=s.process.apply(s.context,e.shift());let o;if(a instanceof Promise)try{o=await a}catch(c){n(c);return}else o=a;t.push(o)}while(e.length>0&&performance.now()-r<6);e.length>0?Me(i):f(t)};Me(i)}).then(s.promise.resolve.bind(s.promise),s.promise.reject.bind(s.promise))}const m0=2,g0=2;let ii,Wo;Hi?ii=Promise.resolve():ii=se(()=>import("./fastBlur-Co-79rP4.js"),[],import.meta.url).then(s=>{Wo=s.default});function p0(s,e,t,f=document.createElement("canvas")){f.width=s.width,f.height=s.height;const n=f.getContext("2d",{alpha:!1});return Hi?(n.filter=`blur(${e}px)`,n.drawImage(s,-e*2,-e*2,f.width+e*4,f.height+e*4)):(n.drawImage(s,0,0),Wo(n,0,0,f.width,f.height,e,t)),f}const gf=new Map,b0=150;function y0(s,e=m0,t=g0){if(!s)throw"no dataUri for blur: "+s;gf.size>b0&&gf.clear();const f=document.createElement("canvas");f.className="canvas-thumbnail";let n=gf.get(s);if(n)f.width=n.canvas.width,f.height=n.canvas.height,n.promise.then(()=>{f.getContext("2d").drawImage(n.canvas,0,0,f.width,f.height)});else{const i=new Promise(r=>{ii.then(()=>{const a=new Image;a.onload=()=>{u0({items:[[a,e,t,f]],context:null,process:p0},"unshift").then(()=>{r()})},a.src=s})});gf.set(s,n={canvas:f,promise:i})}return{...n,canvas:f}}function E0(s,e,t,f=Uo(s,e,!1)){let n,i;if(!t)n=new Image,i=No(n,f);else{const r=y0(f,typeof t=="number"?t:void 0);n=r.canvas,i=r.promise}return n.classList.add("thumbnail"),{image:n,loadPromise:i}}function ir(s,e,t,f,n=!0){if(s<t&&e<f&&n)return U(s,e);let i=t,r=f;return s/e>t/f?r=e*t/s|0:(i=s*f/e|0,i>t&&(r=r*t/i|0,i=t)),n&&i>=s&&r>=e&&(i=s,r=e),U(i,r)}L.calcImageInBox=ir;class v0{constructor(e=0,t=e){this.width=e,this.height=t}aspect(e,t){return ir(this.width,this.height,e.width,e.height,t)}aspectFitted(e){return this.aspect(e,!0)}aspectCovered(e){return this.aspect(e,!1)}}function U(s,e){return new v0(s,e)}var D0=(s=>(s[s.mobile=0]="mobile",s[s.medium=1]="medium",s[s.large=2]="large",s))(D0||{});const w0=600,S0=925,A0=1275,C0=1680,zr=U(20,20),Gr=U(36,36),qr=U(18,18);class k0 extends Be{constructor(){super(),this.screenSizes=[{key:0,value:w0},{key:1,value:A0},{key:2,value:C0}],this.sizes={handhelds:{regular:U(340,340),webpage:U(340,200),album:U(340,0),esgSticker:U(68,68),animatedSticker:U(180,180),staticSticker:U(180,180),emojiSticker:U(112,112),poll:U(240,0),round:U(240,240),documentName:U(200,0),invoice:U(340,340),extendedInvoice:U(340,340),customEmoji:zr,esgCustomEmoji:Gr,emojiStatus:qr,popupSticker:U(68,68)},desktop:{regular:U(420,400),webpage:U(420,380),album:U(420,0),esgSticker:U(72,72),animatedSticker:U(200,200),staticSticker:U(200,200),emojiSticker:U(112,112),poll:U(330,0),round:U(280,280),documentName:U(240,0),invoice:U(320,320),extendedInvoice:U(420,400),customEmoji:zr,esgCustomEmoji:Gr,emojiStatus:qr,popupSticker:U(80,80)}},this.isMobile=!1,this.isFloatingLeftSidebar=!1,this.isLessThanFloatingLeftSidebar=!1,this.handleResize=()=>{const e=window.innerWidth;let t=this.screenSizes[0].key;for(let n=this.screenSizes.length-1;n>=0;--n)if(this.screenSizes[n].value<e){t=(this.screenSizes[n+1]||this.screenSizes[n]).key;break}const f=this.activeScreen;this.activeScreen=t,this.isMobile=this.activeScreen===0,this.isLessThanFloatingLeftSidebar=e<=S0,this.isFloatingLeftSidebar=this.activeScreen===1&&this.isLessThanFloatingLeftSidebar,this.active=this.isMobile?this.sizes.handhelds:this.sizes.desktop,f!==t&&f!==void 0&&this.dispatchEvent("changeScreen",f,t),f!==void 0&&this.dispatchEvent("resize")},window.addEventListener("resize",()=>{this.rAF&&window.cancelAnimationFrame(this.rAF),this.rAF=window.requestAnimationFrame(()=>{this.handleResize(),this.rAF=0})}),this.handleResize()}}const ff=new k0;L.mediaSizes=ff;function ys(s,e,t){return Math.min(t,Math.max(e,s))}const $r=typeof ImageBitmap<"u";class mn{constructor(){this.cache=new Map}static createCache(){const e={frames:new Map,framesNew:new Map,framesURLs:new Map,clearCache:()=>{e.framesNew.forEach(t=>{t.close?.()}),e.frames.clear(),e.framesNew.clear(),e.framesURLs.clear()},counter:0};return e}getCache(e){let t=this.cache.get(e);return t||this.cache.set(e,t=mn.createCache()),++t.counter,t}releaseCache(e){const t=this.cache.get(e);t&&!--t.counter&&this.cache.delete(e)}getCacheCounter(e){return this.cache.get(e)?.counter}generateName(e,t,f,n,i){return[e,t,f,i||""].filter(Boolean).join("-")}}const rr=new mn;class F0{constructor(){this.resetCache=()=>{this.computedStyle=void 0;const e=this.cache;this.cache={};for(const t in e)this.getProperty(t)},this.cache={},this.nightElement=document.createElement("div"),this.nightElement.className="night",this.nightElement.style.display="none",document.body.append(this.nightElement),C.addEventListener("theme_changed",this.resetCache),ff.addEventListener("resize",this.resetCache)}getProperty(e,t){const f=this.cache[e],n=t?1:0;if(f?.[n])return f[n];this.computedStyle??(this.computedStyle=window.getComputedStyle(document.documentElement)),this.nightComputedStyle??(this.nightComputedStyle=window.getComputedStyle(this.nightElement));const i=(t?this.nightComputedStyle:this.computedStyle).getPropertyValue("--"+e).trim();return this.setPropertyCache(e,i,t)}getPropertyAsColor(e){const t=this.getProperty(e);return t[0]==="#"?t:`rgb(${t})`}getPropertyAsSize(e){const t=this.getProperty(e);let f;return t[t.length-1]==="%"||(t.indexOf("rem")?f=+t.replace("rem","")*16:f=+t.replace("px","")),f}setPropertyCache(e,t,f){var n;return((n=this.cache)[e]??(n[e]=[]))[f?1:0]=t}}const wt=new F0;L&&(L.customProperties=wt);function Vo(s,e,t){let f=ys(window.devicePixelRatio,1,2);return f>1&&!t&&(s>90&&e>90?!Et&&ff.isMobile&&(f=1):(s>60&&e>60||fn)&&(f=Math.max(1.5,f-1.5))),f}function gn(s,e,t,f,n,i){s.globalCompositeOperation="source-atop",s.fillStyle=typeof e=="string"?e:`rgb(${e[0]}, ${e[1]}, ${e[2]})`,s.fillRect(t,f,n,i),s.globalCompositeOperation="source-over"}const gt=class gt extends Be{constructor({el:e,worker:t,options:f}){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.cachingDelta=0,this.playedTimes=0,this.reqId=++gt.reqId,this.el=e,this.worker=t;for(const r in f)this.hasOwnProperty(r)&&(this[r]=f[r]);this._loop=this.loop,this._autoplay=this.autoplay,this.initFrame=f.initFrame,this.color=f.color,this.textColor=f.textColor,this.name=f.name,this.skipFirstFrameRendering=f.skipFirstFrameRendering,this.toneIndex=f.toneIndex,this.raw=!1,this.liteModeKey=f.liteModeKey,this.name&&(this.cacheName=gt.CACHE.generateName(this.name,this.width,this.height,this.color,this.toneIndex));let n;f.skipRatio!==void 0?n=f.skipRatio:(fn||At||Et&&!le&&!ho)&&this.width<100&&this.height<100&&!f.needUpscale&&(n=.5),this.skipDelta=n!==void 0?1/n|0:1;const i=Vo(this.width,this.height,f.needUpscale);this.width=Math.round(this.width*i),this.height=Math.round(this.height*i),f.noCache||(Et&&this.width>100&&this.height>100?this.cachingDelta=2:this.width<100&&this.height<100?this.cachingDelta=1/0:this.cachingDelta=4),this.canvas||(this.canvas=this.el.map(()=>{const r=document.createElement("canvas");return r.classList.add("rlottie"),r.width=this.width,r.height=this.height,r.dpr=i,r})),this.contexts=this.canvas.map(r=>r.getContext("2d")),(!$r||this.raw)&&(this.imageData=new ImageData(this.width,this.height),Vi&&(this.clamped=new Uint8ClampedArray(this.width*this.height*4))),this.name?this.cache=gt.CACHE.getCache(this.cacheName):this.cache=mn.createCache()}setSize(e,t){this.width=e,this.height=t,this.canvas.forEach(f=>{f.width=e,f.height=t})}clearCache(){this.cachingDelta!==1/0&&(this.cacheName&&this.cache.counter>1||this.cache.clearCache())}sendQuery(e,t){this.worker.sendQuery([e.shift(),this.reqId,...e],t)}loadFromData(e){this.sendQuery(["loadFromData",e,this.width,this.height,this.toneIndex,this.raw])}play(){this.paused&&(this.paused=!1,this.setMainLoop())}pause(e=!0){this.paused||(this.paused=!0,e&&(clearTimeout(this.rafId),this.rafId=void 0))}resetCurrentFrame(){return this.curFrame=this.initFrame??(this.direction===1?this.minFrame:this.maxFrame)}stop(e=!0){this.pause();const t=this.resetCurrentFrame();e&&this.requestFrame(t)}restart(){this.stop(!1),this.play()}playOrRestart(){this.paused&&(this.curFrame===this.maxFrame?this.restart():this.play())}setSpeed(e){this.speed!==e&&(this.speed=e,this.paused||this.setMainLoop())}setDirection(e){this.direction!==e&&(this.direction=e,this.paused||this.setMainLoop())}remove(){this.pause(),this.sendQuery(["destroy"]),this.cacheName&&gt.CACHE.releaseCache(this.cacheName),this.dispatchEvent("destroy"),this.cleanup()}applyColor(e){gn(e,this.color||wt.getPropertyAsColor(this.textColor),0,0,this.width,this.height)}applyColorForAllContexts(){!this.color&&!this.textColor||this.contexts.forEach(e=>{this.applyColor(e)})}renderFrame2(e,t){try{e instanceof Uint8ClampedArray&&this.imageData.data.set(e),this.contexts.forEach((f,n)=>{let i=this.cache.framesNew.get(t);if(e instanceof Uint8ClampedArray?n>0&&(i=this.canvas[0]):i=e,!i){const r=document.createElement("canvas");r.width=f.canvas.width,r.height=f.canvas.height,r.getContext("2d").putImageData(this.imageData,0,0),this.cache.framesNew.set(t,r),i=r}this.overrideRender&&this.renderedFirstFrame?this.overrideRender(i||this.imageData):i?(f.clearRect(0,0,i.width,i.height),f.drawImage(i,0,0)):f.putImageData(this.imageData,0,0),(this.color||this.textColor)&&this.applyColor(f),this.renderedFirstFrame||(this.renderedFirstFrame=!0)}),this.dispatchEvent("enterFrame",t)}catch(f){console.error("RLottiePlayer renderFrame error:",f,this.width,this.height),this.autoplay=!1,this.pause()}}renderFrame(e,t){if(this.cachingDelta&&(t%this.cachingDelta||!t)&&(e instanceof Uint8ClampedArray&&!this.cache.frames.has(t)?this.cache.frames.set(t,new Uint8ClampedArray(e)):$r&&e instanceof ImageBitmap&&!this.cache.framesNew.has(t)&&this.cache.framesNew.set(t,e)),this.frInterval){const n=Date.now(),i=n-this.frThen;if(i<0){const r=this.frInterval>-i?-i%this.frInterval:this.frInterval;this.rafId&&clearTimeout(this.rafId),this.rafId=window.setTimeout(()=>{this.renderFrame2(e,t)},r);return}}this.renderFrame2(e,t)}requestFrame(e){const t=this.cache.frames.get(e),f=this.cache.framesNew.get(e);f?this.renderFrame(f,e):t?this.renderFrame(t,e):(this.clamped&&!this.clamped.length&&(this.clamped=new Uint8ClampedArray(this.width*this.height*4)),this.sendQuery(["renderFrame",e],this.clamped?[this.clamped.buffer]:void 0))}onLap(){return++this.playedTimes,typeof this.loop=="number"&&this.playedTimes>=this.loop&&(this.loop=this.autoplay=this._loop=this._autoplay=!1),this.loop?!0:(this.clearCache(),this.pause(!1),!1)}mainLoopForwards(){const{skipDelta:e,maxFrame:t}=this,f=this.curFrame+e>t?this.curFrame=this.loop?this.minFrame:this.maxFrame:this.curFrame+=e;return this.requestFrame(f),f+e>t?this.onLap():!0}mainLoopBackwards(){const{skipDelta:e,minFrame:t}=this,f=this.curFrame-e<t?this.curFrame=this.loop?this.maxFrame:this.minFrame:this.curFrame-=e;return this.requestFrame(f),f-e<t?this.onLap():!0}setMainLoop(){clearTimeout(this.rafId),this.rafId=void 0,this.frInterval=1e3/this.fps/this.speed*this.skipDelta,this.frThen=Date.now()-this.frInterval;const e=(this.direction===1?this.mainLoopForwards:this.mainLoopBackwards).bind(this);this.currentMethod=e,this.frameListener&&this.listenerResults.enterFrame!==void 0&&this.frameListener(this.curFrame)}playPart(e){this.pause();const{from:t,to:f,callback:n}=e;return this.curFrame=t-1,this.playToFrame({frame:f,direction:f>t?1:-1,callback:n})}playToFrame(e){this.pause();const{frame:t,speed:f,callback:n,direction:i}=e;this.setDirection(i===void 0?this.curFrame>t?-1:1:i),f!==void 0&&this.setSpeed(f);const r=[this.curFrame,t];this.direction===-1&&r.reverse(),this.loop=!1,this.setMinMax(r[0],r[1]),this.playToFrameOnFrameCallback&&this.removeEventListener("enterFrame",this.playToFrameOnFrameCallback),n&&(this.playToFrameOnFrameCallback=a=>{a===t&&(this.removeEventListener("enterFrame",this.playToFrameOnFrameCallback),n())},this.addEventListener("enterFrame",this.playToFrameOnFrameCallback)),this.play()}setColor(e,t){typeof e=="string"?this.textColor=e:this.color=e,t&&this.paused&&this.applyColorForAllContexts()}setMinMax(e=0,t=this.frameCount-1){this.minFrame=e,this.maxFrame=t}async onLoad(e,t){this.frameCount=e,this.fps=t,this.setMinMax(),this.initFrame!==void 0&&(this.initFrame=ys(this.initFrame,this.minFrame,this.maxFrame));const f=this.resetCurrentFrame();if(this.fps<60&&this.skipDelta!==1){const n=60/t;this.skipDelta=this.skipDelta/n|0}this.frInterval=1e3/this.fps/this.speed*this.skipDelta,this.frThen=Date.now()-this.frInterval,!this.skipFirstFrameRendering&&this.requestFrame(f),this.dispatchEvent("ready"),this.addEventListener("enterFrame",()=>{this.dispatchEvent("firstFrame"),!this.canvas[0].parentNode&&this.el?.[0]&&!this.overrideRender&&this.el.forEach((n,i)=>n.append(this.canvas[i])),this.frameListener=()=>{if(this.paused||!this.currentMethod)return;const n=Date.now();this.frThen=n+this.frInterval,!this.currentMethod()&&!this.loop&&this.autoplay&&(this.autoplay=!1)},this.addEventListener("enterFrame",this.frameListener),this.group==="none"&&this.autoplay&&this.play()},{once:!0})}};gt.CACHE=rr,gt.reqId=0;let It=gt;const as={};function Ho(s,e,t,f){const n=Qi(s.id,e),i=as[n];return i&&i.width>=t&&i.height>=f}let ss,ri;const P0=()=>{C.addEventListener("theme_changed",()=>{C.managers.thumbsStorage.clearColoredStickerThumbs();for(const s in as){const[,e]=s.split("-");e&&isNaN(+e)&&delete as[s]}}),ss=document.createElement("canvas"),ri=ss.getContext("2d")};async function Yr(s,e,t){const f=Qi(s.id,t),{width:n,height:i}=e;if(Ho(s,t,n,i))return;const r=as[f]={width:n,height:i},a=await C.managers.thumbsStorage.getStickerCachedThumb(s.id,t);if(as[f]!==r||a&&a.w>=n&&a.h>=i)return;typeof t=="string"&&(ss||P0(),ss.width=n,ss.height=i,ri.drawImage(e,0,0,n,i),gn(ri,wt.getProperty(t),0,0,n,i),e=ss);const c=await new Promise(d=>{e.toBlob(l=>d(l))});if(as[f]===r){if(!c){console.error("trying to save sticker preview with no blob",arguments);debugger;return}C.managers.thumbsStorage.saveStickerPreview(s.id,c,n,i,t)}}class _0{constructor(){this.promises={},this.raf=Me.bind(null),this.scheduled=!1}do(e,t){let f=this.promises[e];return f||(this.scheduleFlush(),f=this.promises[e]=G()),t!==void 0&&f.then(()=>t()),f}measure(e){return this.do("read",e)}mutate(e){return this.do("write",e)}mutateElement(e,t){const f=Ks(e),n=f?this.mutate():Promise.resolve();return t!==void 0&&(f?n.then(()=>t()):t()),n}scheduleFlush(){this.scheduled||(this.scheduled=!0,this.raf(()=>{this.promises.read&&this.promises.read.resolve(),this.promises.write&&this.promises.write.resolve(),this.scheduled=!1,this.promises={}}))}}const mt=new _0;L&&(L.sequentialDom=mt);let Kr=0;function T0(s){let e;const t=s?.type;if(t){const f=`${Mf}_${Kr++}.${t.split("/")[1]}`;["image/jpeg","image/png","image/bmp"].indexOf(t)>=0?e="photo"+f:t.indexOf("audio/")===0||["video/ogg"].indexOf(t)>=0?e="audio"+f:t.indexOf("video/")===0?e="video"+f:e="document"+f}else e=`upload-${Mf}_${Kr++}`;return e}function L0(s,e){return{_:"inputDocumentFileLocation",id:s.id,access_hash:s.access_hash,file_reference:s.file_reference,thumb_size:e}}function zo(s,{thumb:e,queueId:t,onlyCache:f}={}){const n=L0(s,e?.type);let i;return e?._==="photoSize"?i=s.sticker?"image/webp":s.mime_type.startsWith("image/")?s.mime_type:"image/jpeg":i=s.mime_type||"application/octet-stream",{dcId:s.dc_id,location:n,size:e?e.size:s.size,mimeType:i,fileName:s.file_name,queueId:t,onlyCache:f}}function Go(s,e,t,f){const n=s._==="document";if(!e||e._==="photoSizeEmpty")throw new Error("photoSizeEmpty!");const i=!!((e._==="photoSize"||e._==="photoSizeProgressive")&&s.access_hash&&s.file_reference),r={_:n?"inputDocumentFileLocation":"inputPhotoFileLocation",id:s.id,access_hash:s.access_hash,file_reference:s.file_reference,thumb_size:e.type};return{dcId:s.dc_id,location:r,size:i?e.size:void 0,mimeType:"image/jpeg",queueId:t,onlyCache:f}}function qo(s){return{dcId:0,location:s,size:0,mimeType:"image/jpeg"}}function I0(s){const e=qo({_:"inputWebFileLocation",access_hash:s.access_hash,url:s.url});return e.size=s.size,e.mimeType=s.mime_type,e}function x0(s){return!!(s&&(s._==="webDocument"||s._==="webDocumentNoProxy"))}function $o(s){return Ji(s.location,s)}function M0(s){const{media:e,thumb:t,queueId:f,onlyCache:n}=s;let i;return e._==="document"?i=zo(e,{thumb:t,queueId:f,onlyCache:n}):e._==="photo"?i=Go(e,t,f,n):x0(e)?i=I0(e):Do(e)&&(i=qo(e)),i.downloadId=s.downloadId,{fileName:$o(i),downloadOptions:i}}function R0(s,e,t){const f=document.createElement("a");f.href=s,f.download=e,f.target="_blank",f.style.position="absolute",f.style.top="1px",f.style.left="1px",document.body.append(f);try{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),f.dispatchEvent(n)}catch(n){console.error("Download click error",n);try{f.click()}catch{window.open(s,"_blank")}}setTimeout(()=>{f.remove(),t&&t()},100)}class O0{constructor(){this.downloads={},this.progress={}}construct(e){this.managers=e,C.addEventListener("download_progress",t=>{const f=this.downloads[t.fileName];f?.main?.notifyAll&&(this.progress[t.fileName]=t,f.main.notifyAll(t))})}getNewDeferred(e,t){const f=G();let n=this.downloads[e];if(!n)n=this.downloads[e]={main:f},f.cancel=()=>{const r=Ee("DOWNLOAD_CANCELED");this.managers.apiFileManager.cancelDownload(e),f.reject(r),f.cancel=ye},f.catch(()=>{this.clearDownload(e,t)}).finally(()=>{delete this.progress[e]});else{const r=n.main;["cancel","addNotifyListener","notify","notifyAll"].forEach(a=>{r[a]&&(f[a]=r[a].bind(r))})}return t==="disc"&&f.catch(ye).finally(()=>{this.clearDownload(e,t)}),n[t]=f}getNewDeferredForUpload(e,t){const f=this.getNewDeferred(e);return t.then(f.resolve.bind(f),f.reject.bind(f)),f.finally(()=>{this.clearDownload(e)}),f}clearDownload(e,t){const f=this.downloads[e];if(!f)return;delete f[t];const n=Object.keys(f).length;(!n||f.main&&n===1)&&delete this.downloads[e]}getUpload(e){let t=this.getDownload(e);return t||(t=this.getNewDeferred(e),this.managers.appMessagesManager.getUploadPromise(e).then(t.resolve.bind(t),t.reject.bind(t)),t)}d(e,t,f){let n=this.getDownload(e,f);return n||(n=this.getNewDeferred(e,f),t().then(n.resolve.bind(n),n.reject.bind(n)),n)}download(e){const t=$o(e);return this.d(t,()=>this.managers.apiFileManager.download(e),"blob")}downloadMedia(e,t="blob",f){const{downloadOptions:n,fileName:i}=M0(e);return this.d(i,()=>{let r;return t==="url"?r=this.managers.apiFileManager.downloadMediaURL:t==="void"?r=this.managers.apiFileManager.downloadMediaVoid:r=this.managers.apiFileManager.downloadMedia,f?f.then(()=>r(e),()=>(delete e.downloadId,r(e))):r(e)},t)}downloadMediaURL(e){return this.downloadMedia(e,"url")}downloadMediaVoid(e){return this.downloadMedia(e,"void")}upload(e,t,f){return t||(t=T0(e)),f||(f=this.managers.apiFileManager.upload({file:e,fileName:t})),this.getNewDeferredForUpload(t,f)}getDownload(e,t){const f=this.downloads[e];return f&&f[t]}downloadToDisc(e,t){const f=e.media,n=f._==="document";!n&&!e.thumb&&(e.thumb=f.sizes.slice().pop());const i=!Ut&&!!$.serviceMessagePort,r=()=>{const h=n?zo(f):Go(f,e.thumb);return e.media.file_name||Ji(h.location)};let a,o,c;if(i){const h=""+(Math.random()*2147483647|0);if(a=`d/${h}`,e.downloadId=h,o=$.pingServiceWorkerWithIframe(),!t){const{iframe:p,onSuccess:v,onError:A}=this.createDownloadIframe(a);c=p,o=o.then(()=>{const D=G(),w=b=>{clearTimeout(P),$.serviceMessagePort.removeEventListener("downloadRequestReceived",F),b?D.resolve():D.reject()},F=b=>{b===h&&w(!0)};$.serviceMessagePort.addEventListener("downloadRequestReceived",F);const P=window.setTimeout(()=>{w(!1)},1500);return v(),D},D=>{throw A(),D})}}const d=this.downloadMedia(e,"disc",o);if(t)return d;let l,u=!1;const m=()=>{u||(u=!0,l=c,ze(d.listeners,m))};return d.addNotifyListener(m),d.then(h=>{if(!h)return;const p=URL.createObjectURL(h);R0(p,r(),()=>{URL.revokeObjectURL(p)})}).catch(ye).finally(()=>{u||m(),setTimeout(()=>{l?.remove()},1e3)}),d}createDownloadIframe(e){const t=document.createElement("iframe");return t.hidden=!0,{iframe:t,onSuccess:()=>{t.src=e,document.body.append(t)},onError:()=>{console.error("falling back to normal download")}}}}const _s=new O0;L&&(L.appDownloadManager=_s);function Jr(s,e=0,t=0,f=!1,n=!1){window.devicePixelRatio>1&&(e*=2,t*=2);let i=s.sizes||s.thumbs,r={_:"photoSizeEmpty",type:Vn};if(n&&i&&s._!=="photo"&&(i=i.concat({_:"photoSize",w:s.w,h:s.h,size:s.size,type:Vn})),i?.length){for(let a=0,o=i.length;a<o;++a){const c=i[a];if(!("w"in c)&&!("h"in c))continue;r=c;const d=ir(c.w,c.h,e,t);if(d.width>=e||d.height>=t)break}f&&r._==="photoSizeEmpty"&&i[0]._==="photoStrippedSize"&&(r=i[0])}return r}function Yo(s){return s.video_thumbs?.[0]}class N0 extends Be{constructor(e){super(),this.worker=e,this.worker.onerror=t=>{try{this.dispatchEvent("workerError",t),this.cleanup(),this.terminate()}catch{}},this.worker.onmessage=t=>{this.dispatchEvent(t.data.queryMethodListener,...t.data.queryMethodArguments)}}postMessage(e){this.worker.postMessage(e)}terminate(){this.worker.terminate()}sendQuery(e,t){this.worker.postMessage({queryMethod:e.shift(),queryMethodArguments:e},Vi?t:void 0)}}const pf=typeof WebAssembly<"u";class B0{constructor(){this.loadPromise=pf?void 0:Promise.reject(Ee("NO_WASM")),this.loaded=!1,this.workersLimit=fe.threads,this.players={},this.playersByCacheName={},this.workers=[],this.curWorkerNum=0,this.log=X("LOTTIE",sf.Error),this.onPlayerLoaded=(e,t,f)=>{const n=this.players[e];if(!n){this.log.warn("onPlayerLoaded on destroyed player:",e,t);return}this.log.debug("onPlayerLoaded"),n.onLoad(t,f)},this.onFrame=(e,t,f)=>{const n=this.players[e];if(!n){this.log.warn("onFrame on destroyed player:",e,t);return}n.clamped!==void 0&&f instanceof Uint8ClampedArray&&(n.clamped=f),n.renderFrame(f,t)},this.onPlayerError=(e,t)=>{const f=this.players[e];if(!f)return;be.getAnimations(f.el[0]).forEach(i=>{be.removeAnimation(i)})},C.addEventListener("theme_changed",()=>{for(const e in this.players)this.players[e].applyColorForAllContexts()})}getAnimation(e){for(const t in this.players)if(this.players[t].el.includes(e))return this.players[t];return null}loadLottieWorkers(){return this.loadPromise?this.loadPromise:this.loadPromise=new Promise((e,t)=>{let f=this.workersLimit;for(let n=0;n<this.workersLimit;++n){const i=new Worker(new URL(""+new URL("rlottie.worker--aUfWGB2.js",import.meta.url).href,import.meta.url),{type:"module"}),r=this.workers[n]=new N0(i);r.addEventListener("ready",()=>{this.log("worker #"+n+" ready"),r.addEventListener("frame",this.onFrame),r.addEventListener("loaded",this.onPlayerLoaded),r.addEventListener("error",this.onPlayerError),--f,f||(this.log("workers ready"),e(),this.loaded=!0)},{once:!0}),r.addEventListener("workerError",a=>{t("rlottie load error: "+a.message),this.loaded=!1},{once:!0})}})}makeAssetUrl(e){return"assets/tgs/"+e+".json"}loadAnimationAsAsset(e,t){return this.loadAnimationFromURL(e,this.makeAssetUrl(t))}loadAnimationDataFromURL(e,t="blob"){return pf?(this.loadLottieWorkers(),fetch(e).then(f=>!f.headers||f.headers.get("content-type")==="application/octet-stream"?f.arrayBuffer().then(n=>$.invokeCrypto("gzipUncompress",n)).then(n=>Yi(n,"")):f[t]())):this.loadPromise}loadAnimationFromURLManually(e){const t=this.makeAssetUrl(e);return this.loadAnimationDataFromURL(t).then(f=>n=>this.loadAnimationFromURLNext(f,n,t))}loadAnimationFromURL(e,t){return this.loadAnimationDataFromURL(t).then(f=>this.loadAnimationFromURLNext(f,e,t))}loadAnimationFromURLNext(e,t,f){const n=Object.assign(t,{animationData:e,needUpscale:!0});return n.name||(n.name=f),this.loadAnimationWorker(n)}waitForFirstFrame(e){return Promise.race([new Promise(t=>{e.addEventListener("firstFrame",t,{once:!0})}),ge(2500)]).then(()=>e)}async loadAnimationWorker(e){if(!pf)return this.loadPromise;this.loaded||await this.loadLottieWorkers();const{middleware:t,group:f=""}=e;if(t&&!t())throw Ee("MIDDLEWARE");if(e.sync){const r=It.CACHE.generateName(e.name,e.width,e.height,e.color,e.toneIndex),a=this.playersByCacheName[r];if(a?.size)return Promise.resolve(a.entries().next().value[0])}const n=Lt(e.container);if((!e.width||!e.height)&&(e.width=parseInt(n[0].style.width),e.height=parseInt(n[0].style.height)),!e.width||!e.height)throw new Error("No size for sticker!");e.group=f;const i=this.initPlayer(n,e);return be.addAnimation({animation:i,group:f,observeElement:i.el[0],controlled:t,liteModeKey:e.liteModeKey,type:"lottie"}),e.sync||t?.onClean(()=>{i.remove()}),i}onDestroy(e){delete this.players[e]}destroyWorkers(){pf&&(this.workers.forEach((e,t)=>{e.terminate(),this.log("worker #"+t+" terminated")}),this.log("workers destroyed"),this.workers.length=0,this.curWorkerNum=0,this.loaded=!1,this.loadPromise=void 0)}initPlayer(e,t){var a;const f=new It({el:e,worker:this.workers[this.curWorkerNum++],options:t}),{reqId:n,cacheName:i}=f;this.players[n]=f;const r=i?(a=this.playersByCacheName)[i]??(a[i]=new Set):void 0;return i&&r.add(f),this.curWorkerNum>=this.workers.length&&(this.curWorkerNum=0),f.addEventListener("destroy",()=>{this.onDestroy(n),r.delete(f)&&!r.size&&delete this.playersByCacheName[i]}),f.loadFromData(t.animationData),f}}const us=new B0;L.lottieLoader=us;const Qr=()=>({cleaned:!1,inner:[],onCleanCallbacks:[]}),U0=Ee("MIDDLEWARE");class j0{constructor(){this.details=Qr(),this.onDestroyCallbacks=[],this.onDestroy=e=>{if(this.destroyed)return e();this.onDestroyCallbacks.push(e)}}clean(){const e=this.details;e.cleaned=!0,e.inner.splice(0,e.inner.length).forEach(t=>t.destroy()),e.onCleanCallbacks.splice(0,e.onCleanCallbacks.length).forEach(t=>t()),e.middleware=void 0,this.details=Qr()}destroy(){this.destroyed=!0,this.clean(),this.onDestroyCallbacks.splice(0,this.onDestroyCallbacks.length).forEach(e=>e()),this.parent&&(ze(this.parent.details.inner,this),this.parent=void 0)}createMiddlewareForDetails(e,t){const f=()=>!e.cleaned&&(!t||t());return f.create=()=>{if(!f())throw U0;const n=pn();return n.parent=this,e.inner.push(n),n},f.onClean=n=>{if(!f())return n();e.onCleanCallbacks.push(n)},f.onDestroy=this.onDestroy,f}get(e){const t=this.details;return t.cleaned?this.createMiddlewareForDetails(t):e?this.createMiddlewareForDetails(t,e):t.middleware??(t.middleware=this.createMiddlewareForDetails(t))}}function pn(){return new j0}function W0(s){return wf(Me,s)}function Xr(...s){const[e,t]=Ge(...s);return(...f)=>f.length===0?e():t(...f)}class V0{constructor(){if(nt)return;this._width=Xr(),this._height=Xr(),this.viewport=window;const e=()=>{this.setDimensions()};this.viewport.addEventListener("resize",e),e()}setDimensions(){const e=this.viewport;this._width(e.width||e.innerWidth),this._height(e.height||e.innerHeight)}get width(){return this._width()}get height(){return this._height()}}const hs=new V0;L&&(L.windowSize=hs);const Ko=document.createElement("div");Ko.classList.add("emoji-animation-container");function H0({size:s,stickerSize:e,doc:t,middleware:f,target:n,side:i,skipRatio:r,play:a,managers:o,fullThumb:c,withRandomOffset:d,relativeEffect:l,loopEffect:u,onUnmount:m,scrollable:h,textColor:p,addOffsetX:v=0,addOffsetY:A=0}){const D=document.createElement("div");D.classList.add("emoji-animation"),D.style.width=s+"px",D.style.height=s+"px";let w;const F=()=>{P.destroy();const E=w;w=void 0,E?.remove(),D.remove(),y&&h.container.removeEventListener("scroll",y),E&&m?.()},P=f?.create()??pn();f=P.get();const b=bn({div:D,doc:t,middleware:f,withThumb:!1,needFadeIn:!1,loop:!!u,width:e||s,height:e||s,play:a,group:"none",skipRatio:r,managers:o,fullThumb:c,isEffect:!0,textColor:p}).then(({render:E})=>E).then(E=>{if(!f())throw E.remove(),Ee("MIDDLEWARE");return w=E,w.addEventListener("enterFrame",S=>{(!u&&S===w.maxFrame||!Ks(n))&&F()}),w.addEventListener("destroy",F),co&&w.addEventListener("firstFrame",()=>{navigator.vibrate(100)},{once:!0}),w.addEventListener("firstFrame",()=>{g()},{once:!0}),w}),x=E=>{const S=Math.random()*E*2;return S>E?-S%E:S},k=d?x(16):0,T=d?x(4):0,g=()=>{if(!Ks(n)){F();return}const E=n.getBoundingClientRect(),S=E.width/200,_=i==="center"?0:16*(i==="right"?1:-1)*S,I=i==="center"?0:0*S,N=i==="right"?E.right:E.left,B=E.top,Y=(i==="center"?(E.width-s)/2:i==="right"?-s:0)+_+k+v*(i==="right"?1:-1),O=(E.height-s)/2+I+T+A,ne=N+Y,ce=B+O;if(ce<=-s||ce>=hs.height){F();return}l?(i!=="center"?D.style[i]=Math.abs(_)*-1+"px":D.style.left=Y+"px",D.style.top=O+"px"):(D.style.top=ce+"px",D.style.left=ne+"px")};let y;return h&&(y=W0(g),h.container.addEventListener("scroll",y)),l?(D.classList.add("is-relative"),n.parentElement.append(D)):Ko.append(D),{animationDiv:D,stickerPromise:b}}class z0{isEnabled(){return!!(C.settings&&C.settings.liteMode.all)}isAvailable(e){return!!(C.settings&&!C.settings.liteMode.all&&!C.settings.liteMode[e])}}const ot=new z0;L&&(L.liteMode=ot);const G0={check:"e900",checks:"e901",activesessions:"e902",add:"e903",add_reaction:"e904",addboost:"e905",addmember_filled:"e906",adduser:"e907",admin:"e908",ads:"e909",align_center:"e90a",align_left:"e90b",align_right:"e90c",animals:"e90d",animations:"e90e",app_expand:"e90f",app_shrink:"e910",archive:"e911",arrow_down:"e912",arrow_next:"e913",arrow_prev:"e914",arrowcircle:"e915",arrowhead:"e916",attach:"e917",audio_repeat:"e918",audio_repeat_single:"e919",author_hidden:"e91a",avatarnext:"e91b",avatarprevious:"e91c",aversion:"e91d",back:"e91e",binfilled:"e91f",bold:"e920",bomb:"e921",boost:"e922",boostcircle:"e923",bot_filled:"e924",botcom:"e925",bots:"e926",brightness:"e927",brush:"e928",bubblereply:"e929",bug:"e92a",calendar:"e92b",calendarfilter:"e92c",camera:"e92d",cameraadd:"e92e",captiondown:"e92f",captionup:"e930",car:"e931",card:"e932",card_outline:"e933",cash_circle:"e934",channel:"e935",channel_filled:"e936",channelviews:"e937",chatspinned:"e938",chatsplaceholder:"e939",check1:"e93a",checkbox:"e93b",checkboxblock:"e93c",checkboxempty:"e93d",checkboxon:"e93e",checkretract:"e93f",checkround:"e940",checkround_filled:"e941",clock:"e942",close:"e943",clouddownload:"e944",collapse:"e945",colorize:"e946",comments:"e947",commentssticker:"e948",contrast:"e949",copy:"e94a",crop:"e94b",cross:"e94c",crossgif:"e94d",crossround:"e94e",crossstar:"e94f",crown:"e950",darkmode:"e951",data:"e952",delete:"e953",delete_filled:"e954",deletedaccount:"e955",deleteleft:"e956",deleteuser:"e957",devices:"e958",document:"e959",down:"e95a",download:"e95b",dragfiles:"e95c",dragmedia:"e95d",eats:"e95e",edit:"e95f",email:"e960",endcall_filled:"e961",enhance:"e962",enter:"e963",equalizer:"e964",expand:"e965",eye:"e966",eye1:"e967",eye2:"e968",eyecross_outline:"e969",factcheck:"e96a",fade:"e96b",fast_forward:"e96c",fast_rewind:"e96d",favourites:"e96e",flag:"e96f",flip:"e970",flip_image_horizontal:"e971",folder:"e972",fontframe:"e973",fontframe_bg:"e974",fontframe_outline:"e975",fontsize:"e976",forward:"e977",forward_filled:"e978",free_transform:"e979",fullscreen:"e97a",gc_microphone:"e97b",gc_microphoneoff:"e97c",gem:"e97d",gem_exchange:"e97e",gem_transfer:"e97f",geometric_digit_0:"e980",geometric_digit_1:"e981",geometric_digit_2:"e982",geometric_digit_3:"e983",geometric_digit_4:"e984",geometric_digit_5:"e985",geometric_digit_6:"e986",geometric_digit_7:"e987",geometric_digit_8:"e988",geometric_digit_9:"e989",geometric_dot:"e98a",geometric_letter_x:"e98b",gifs:"e98c",gift:"e98d",gift_premium:"e98e",grain:"e98f",group:"e990",group_filled:"e991",groupmedia:"e992",groupmediaoff:"e993",hand:"e994",help:"e995",hide:"e996",highlights:"e997",image:"e998",image_original:"e999",info:"e99a",info2:"e99b",italic:"e99c",key:"e99d",keyboard:"e99e",lamp:"e99f",language:"e9a0",largepause:"e9a1",largeplay:"e9a2",left:"e9a3",limit_chat:"e9a4",limit_chats:"e9a5",limit_file:"e9a6",limit_folders:"e9a7",limit_link:"e9a8",limit_pin:"e9a9",link:"e9aa",link_paid:"e9ab",list:"e9ac",listscreenshare:"e9ad",livelocation:"e9ae",location:"e9af",lock:"e9b0",lockoff:"e9b1",loginlogodesktop:"e9b2",loginlogomobile:"e9b3",logout:"e9b4",mac_command_key:"e9b5",mediaspeed_empty:"e9b6",mediaspoiler:"e9b7",mediaspoileroff:"e9b8",mention:"e9b9",menu:"e9ba",message:"e9bb",message_jump:"e9bc",message_quote:"e9bd",messageunread:"e9be",microphone:"e9bf",microphone_crossed:"e9c0",microphone_crossed_filled:"e9c1",microphone_filled:"e9c2",minus:"e9c3",monospace:"e9c4",more:"e9c5",multistories:"e9c6",mute:"e9c7",muted:"e9c8",mynotes:"e9c9",newchannel:"e9ca",newchannel_filled:"e9cb",newchat_filled:"e9cc",newgroup:"e9cd",newgroup_filled:"e9ce",newprivate:"e9cf",newprivate_filled:"e9d0",newtab:"e9d1",next:"e9d2",nochannel:"e9d3",noncontacts:"e9d4",nosound:"e9d5",online:"e9d6",passwordoff:"e9d7",pause:"e9d8",permissions:"e9d9",person:"e9da",phone:"e9db",phone_filled:"e9dc",pin:"e9dd",pin2:"e9de",pinlist:"e9df",pinned_filled:"e9e0",pinnedchat:"e9e1",pip:"e9e2",play:"e9e3",playback_05:"e9e4",playback_15:"e9e5",playback_1x:"e9e6",playback_2x:"e9e7",plus:"e9e8",plusround:"e9e9",poll:"e9ea",premium_addone:"e9eb",premium_avatars:"e9ec",premium_badge:"e9ed",premium_colors:"e9ee",premium_double:"e9ef",premium_emoji:"e9f0",premium_filesize:"e9f1",premium_lastseen:"e9f2",premium_limits:"e9f3",premium_lock:"e9f4",premium_management:"e9f5",premium_noads:"e9f6",premium_privacy:"e9f7",premium_reactions:"e9f8",premium_restrict:"e9f9",premium_speed:"e9fa",premium_status:"e9fb",premium_stickers:"e9fc",premium_tags:"e9fd",premium_transcription:"e9fe",premium_translate:"e9ff",premium_unlock:"ea00",premium_wallpaper:"ea01",previous:"ea02",promote:"ea03",quote:"ea04",quote_outline:"ea05",radiooff:"ea06",radioon:"ea07",reactions:"ea08",reactions_filled:"ea09",readchats:"ea0a",recent:"ea0b",redo:"ea0c",replace:"ea0d",reply:"ea0e",reply_filled:"ea0f",restrict:"ea10",revenue:"ea11",rightpanel:"ea12",rotate:"ea13",rotate_left:"ea14",rotate_right:"ea15",round_chats_filled:"ea16",saturation:"ea17",saved:"ea18",savedmessages:"ea19",schedule:"ea1a",scheduled:"ea1b",search:"ea1c",select:"ea1d",send:"ea1e",send2:"ea1f",sending:"ea20",sendingerror:"ea21",settings:"ea22",settings_clipped_corner:"ea23",settings_filled:"ea24",shadows:"ea25",sharescreen_filled:"ea26",sharpen:"ea27",shipping:"ea28",shuffle:"ea29",smallscreen:"ea2a",smile:"ea2b",speaker:"ea2c",speakerfilled:"ea2d",speakeroff:"ea2e",speakerofffilled:"ea2f",spoiler:"ea30",sport:"ea31",star:"ea32",star_filled:"ea33",statistics:"ea34",stickers:"ea35",stickers_face:"ea36",stop:"ea37",stories:"ea38",storyreply:"ea39",storyrepost:"ea3a",strikethrough:"ea3b",tag:"ea3c",tag_add:"ea3d",tag_alt:"ea3e",tag_crossed:"ea3f",tag_filter:"ea40",tag_name:"ea41",text:"ea42",textedit:"ea43",timer:"ea44",tip:"ea45",tools:"ea46",topics:"ea47",trade:"ea48",transcribe:"ea49",unarchive:"ea4a",unclaimed:"ea4b",underline:"ea4c",undo:"ea4d",unmute:"ea4e",unpack:"ea4f",unpin:"ea50",unread:"ea51",up:"ea52",user:"ea53",username:"ea54",videocamera:"ea55",videocamera_crossed_filled:"ea56",videocamera_filled:"ea57",videochat:"ea58",vignette:"ea59",volume_down:"ea5a",volume_mute:"ea5b",volume_off:"ea5c",volume_up:"ea5d",warmth:"ea5e",webview:"ea5f",win_key:"ea60",zoomin:"ea61",zoomout:"ea62"},q0=new Set(["avatarnext","avatarprevious","arrow_next","channel","chatspinned","fast_forward","fast_rewind","forward","forward_filled","group","group_filled","left","listscreenshare","logout","muted","newchannel_filled","newchannel","newgroup","newgroup_filled","next","nosound","previous","send","send2","reply","reply_filled","sharescreen_filled","transcribe","storyreply","premium_noads","topics","pinlist","deleteleft"]);function $0(s){return String.fromCharCode(parseInt(G0[s],16))}function St(s,...e){const t=document.createElement("span");return Q.isRTL&&q0.has(s)&&e.push("icon-reflect"),t.classList.add(Ii,...e),t.textContent=$0(s),t}function Y0(s,e){s.isSeeking=!0,s.currentTime=e}const ar=Li,K0=ar;async function or(s){const e=s.firstElementChild;if(!e)throw s.src="",s.load(),new Error("leak");const t=s.paused;if(e.remove(),s.load(),!s.childElementCount&&!s.src)throw new Error("leak");return t?Y0(s,1e-4):nr(s),Q0(s,Oo(s))}async function J0(s,e=!s.getVideoPlaybackQuality().totalVideoFrames){if(e)return or(s)}async function Q0(s,e){if(!ar)return e;const t=i=>{i.then(n.resolve.bind(n),n.reject.bind(n))},f=()=>t(J0(s)),n=G();try{await e}catch{f();return}if(s.getVideoPlaybackQuality().totalVideoFrames||s.readyState>s.HAVE_METADATA){n.resolve();return}return s.addEventListener("timeupdate",f,{once:!0}),n}const Bs=["seeked","canplay","canplaythrough","seeking"],X0=Bs.length,Zr=new WeakMap,ai=new WeakMap;function ea(s){const{type:e,target:t}=s;if(!(t instanceof HTMLVideoElement)||t.readyState>t.HAVE_METADATA||t.isSeeking||t.ignoreLeak)return;let f=Zr.get(t);if(f||Zr.set(t,f={events:new Set}),!f.events.has(e)&&(f.events.add(e),f.events.size===X0)){const n=Array.from(f.events),i=Bs.indexOf(n[0]),r=Bs.slice(i).concat(Bs.slice(0,i));if(!Of(n,r))return;const a=ai.get(t);a?(a(),ai.delete(t)):or(t).catch(ye)}}function Z0(s,e){return s.addEventListener(e,ea,!0),()=>s.removeEventListener(e,ea,!0)}function Jo(s){if(!ar)return;const e=Bs.map(t=>Z0(s,t));return()=>{e.forEach(t=>t())}}Jo(document);const eu=1+.245*2,bf={},Pf={},ta=(s,e,t)=>{const f=()=>{s.removeEventListener("animationend",f),e(),clearTimeout(n)};s.addEventListener("animationend",f);const n=setTimeout(f,t)},Jt=s=>{const e=s.childElementCount;return e?s.firstElementChild.classList.contains("premium-sticker-lock")&&e===1:!0},sa=s=>{let e=s.firstElementChild;return e&&e.classList.contains("premium-sticker-lock")&&(e=e.nextElementSibling),e};async function bn({doc:s,div:e,middleware:t,loadStickerMiddleware:f,lazyLoadQueue:n,exportLoad:i,group:r,play:a,onlyThumb:o,emoji:c,width:d,height:l,withThumb:u,loop:m,loadPromises:h,needFadeIn:p,needUpscale:v,skipRatio:A,static:D,managers:w=C.managers,fullThumb:F,isOut:P,noPremium:b,withLock:x,relativeEffect:k,loopEffect:T,isCustomEmoji:g,syncedVideo:y,liteModeKey:E,isEffect:S,textColor:_,scrollable:I,showPremiumInfo:N,useCache:B}){const Y=arguments[0];e=Lt(e),E??(E="stickers_panel"),g&&(c=s.stickerEmojiRaw);const O=s.sticker;if((O===1||O===3&&!qi)&&(D=!0),!d&&!l){const M=ff.active,Z=c?M.emojiSticker:s.animated?M.animatedSticker:M.staticSticker,J=U(s.w,s.h).aspectFitted(Z);d=J.width,l=J.height}O===2&&us.loadLottieWorkers(),m=!!(!c||g)&&m,e.forEach(M=>{M.dataset.docId=""+s.id,c&&(M.dataset.stickerEmoji=c),M.classList.add("media-sticker-wrapper")}),a&&E&&!ot.isAvailable(E)&&!g&&!S&&(a=!1,m=!1);let ne;const ce=(M=ne?.type)=>ne=$.getCacheContext(s,M),lt=!D&&(O===2||O===3),de=Yo(s);P!==void 0&&de&&!P&&e.forEach(M=>M.classList.add("reflect-x"));const Es=de&&x;if(Es){const M=bf[s.id];e.forEach(Z=>{Z.classList.add("is-premium-sticker"),Z.append(St("premium_lock","premium-sticker-lock")),M&&Z.style.setProperty("--lock-url",`url(${M})`)})}if(D&&O!==1){const M=Jr(s,d,l,!1);ce(M.type)}else ce(F?.type);const jt=s.attributes.find(M=>M._==="documentAttributeCustomEmoji");!jt||!jt.pFlags.text_color?_=void 0:_||(_="primary-text-color");const K=c&&!g?Il(c):-1,vs=K===-1?_??K:K,Ue=ne.downloaded&&!p,qc=lt,Er=O===2||O===3?$.getStickerCachedThumb(s.id,vs):void 0,Wt={render:void 0,load:void 0,width:d,height:l,downloaded:Ue};let Fe=G(),Vt=!1;if((s.thumbs?.length||Er)&&Jt(e[0])&&(!Ue||qc||o)&&u!==!1){let M=Er||s.thumbs[0];const Z=(J,te)=>{Jt(J)?mt.mutateElement(J,()=>{Jt(J)&&(te.classList.add("media-sticker","thumbnail"),J.append(te)),Fe.resolve()}):Fe.resolve()};if("url"in M)Vt=!0,e.forEach(J=>{const te=new Image;Ff(te,M.url,()=>Z(J,te))});else if("bytes"in M){if(M._==="photoPathSize"){M.bytes.length||(M=s.thumbs.find(z=>z.bytes?.length)||M);const J=Xl(M.bytes),te="http://www.w3.org/2000/svg",q=document.createElementNS(te,"svg");q.classList.add("rlottie-vector","media-sticker","thumbnail"),q.setAttributeNS(null,"viewBox",`0 0 ${s.w||512} ${s.h||512}`);const W=document.createElementNS(te,"path");W.setAttributeNS(null,"d",J),q.append(W),e.forEach((z,oe)=>z.append(oe>0?q.cloneNode(!0):q)),Vt=!0,Fe.resolve()}else if(K<=0){const J=()=>{e.forEach(te=>{const q=new Image,W=Uo(s,M,!0);Ff(q,W,()=>Z(te,q),B)})};zi||s.pFlags.stickerThumbConverted||ne.url?(Vt=!0,J()):(Vt=!0,Bi.convert("main-"+s.id,M.bytes).then(te=>{if(w.appDocsManager.saveWebPConvertedStrippedThumb(s.id,te),M.bytes=te,s.pFlags.stickerThumbConverted=!0,t&&!t()||!Jt(e[0])){Fe.resolve();return}J()}).catch(()=>Fe.resolve()))}}else if((O===2&&K<=0||O===3)&&(u||o)){const J=async()=>{if(!Jt(e[0])||t&&!t()){Fe.resolve();return}const te=(q,W,z)=>{if(!Jt(q)||t&&!t()){Fe.resolve();return}z?Ff(W,z,()=>Z(q,W),B):Z(q,W)};ce(),e.forEach(q=>{if(ne.url)te(q,new Image,ne.url);else if("bytes"in M){const W=E0(s,M,!0);W.loadPromise.then(()=>te(q,W.image,""))}else _s.downloadMediaURL({media:s,thumb:M}).then(async W=>te(q,new Image,W))})};if(n&&o)return n.push({div:e[0],load:J}),Fe.resolve(),Wt;J(),M.url&&(Vt=!0)}}if(h&&Vt&&h.push(Fe),o)return Wt;const nf=Ee("MIDDLEWARE"),vn=async()=>{if(t&&!t())throw nf;if(O===2&&!D){const M=await _s.downloadMedia({media:s,queueId:n?.queueId,thumb:F});if(t&&!t())throw nf;const Z=await us.loadAnimationWorker({container:e[0],loop:m,autoplay:a,animationData:M,width:d,height:l,name:"doc"+s.id,needUpscale:v,skipRatio:A,toneIndex:K,sync:g,middleware:f??t,group:r,liteModeKey:E||void 0,textColor:g?void 0:_}),J=Es?()=>{var W;const q=bf[W=s.id]??(bf[W]=Zl(Z.canvas[0]));e.forEach(z=>z.style.setProperty("--lock-url",`url(${q})`))}:void 0,te=(q,W)=>{let z=sa(q);z=z!==W&&z,p!==!1&&(p=(p||!z||z.tagName==="svg")&&ot.isAvailable("animations"));const oe=()=>{z&&z!==W&&z.tagName!=="DIV"&&z.remove()};p?mt.mutate(()=>{W&&W.classList.add("fade-in"),z&&z.classList.add("fade-out"),ta(W||z,()=>{mt.mutate(()=>{W&&W.classList.remove("fade-in"),oe()})},400)}):z&&mt.mutate(oe)};return Z.addEventListener("firstFrame",()=>{const q=Z.canvas[0];(u!==!1||g)&&Yr(s,q,vs),Es&&J(),g||e.forEach((W,z)=>{te(W,Z.canvas[z])})},{once:!0}),c&&w.appStickersManager.preloadAnimatedEmojiStickerAnimation(c),Z}else if(D||O===3){const M=lt&&y,Z=M?rr.generateName(""+s.id,0,0,void 0,void 0):void 0,J=Pf[Z];if(J)return J;const q=(M?e.slice(0,1):e).map(()=>{let oe;if(D)oe=new Image;else{const he=oe=f0({middleware:t});if(he.muted=!0,a&&(he.autoplay=!0),m&&(he.loop=!0),he._autoplay=a||!1,he._loop=m||!1,m&&typeof m=="number"){let Qe=function(){ut>this.currentTime&&++Ht===m&&(this.autoplay=!1,this.loop=!1,this.pause(),he.removeEventListener("timeupdate",Qe)),this.timeUpdatedTimes=(this.timeUpdatedTimes||0)+1,ut=this.currentTime},ut=0,Ht=0;he.addEventListener("timeupdate",Qe),t.onClean(()=>{he.removeEventListener("timeupdate",Qe)})}}return oe.classList.add("media-sticker"),oe}),W=e.map((oe,he)=>{const Qe=sa(oe);return Qe!==q[he]&&Qe});p!==!1&&(p=(p||!Ue||(D?W[0]:!W[0]||W[0].tagName==="svg"))&&ot.isAvailable("animations")),p&&q.forEach(oe=>oe.classList.add("fade-in"));const z=new Promise(async(oe,he)=>{const Qe=async()=>{if(t&&!t()){he(nf);return}const ut=q.length,Ht=[],$c=(zt,ee,we)=>{mt.mutateElement(zt,()=>{if(t&&!t()){he(nf);return}if(!ee){(!M||!lt)&&we?.remove();return}const rf=ee instanceof HTMLVideoElement;if(rf){const{videoWidth:Gt,videoHeight:af}=ee,Ds=Gt/af;let of=d*window.devicePixelRatio,cf=l*window.devicePixelRatio;if(Ds<1?of=cf*Ds:cf=of/Ds,!Ho(s,K,of,cf)){const qt=document.createElement("canvas");qt.width=of,qt.height=cf,qt.getContext("2d").drawImage(ee,0,0,qt.width,qt.height),Yr(s,qt,K)}}if(M){oe(ee);return}if(rf&&K0&&(ai.set(ee,()=>{const Gt=()=>{or(ee).catch(ye)};if(!we||!(we instanceof HTMLImageElement)){const af=document.createElement("div");bn({...Y,div:af,static:!0,exportLoad:void 0,needFadeIn:!1,lazyLoadQueue:void 0}).then(({render:Ds})=>Ds).finally(()=>{mt.mutateElement(ee,()=>{t()&&zt.append(...Array.from(af.children)),ee.remove(),Gt()})})}else ee.replaceWith(we),Gt()}),ee.duration<1||ee.getVideoPlaybackQuality().totalVideoFrames<10)){const Gt=Jo(ee);t?.onClean(Gt)}zt.append(ee),p?(we&&we.classList.add("fade-out"),ta(ee,()=>{ee.classList.remove("fade-in"),we?.remove()},400)):we?.remove(),lt&&be.addAnimation({animation:ee,observeElement:zt,group:r,controlled:t,liteModeKey:E||void 0,type:"video"}),Ht.push(ee)===ut&&oe(Ht)})};ce();let vr;e.forEach((zt,ee)=>{const we=q[ee],rf=()=>$c(zt,we,W[ee]);we&&(vr=No(we,ne.url,B)),vr.then(rf)})};if(ce(),ne.url)Qe();else{let ut;if(O!==1&&D){const Ht=Jr(s,d,l,!1);ut=_s.downloadMediaURL({media:s,thumb:Ht,queueId:n?.queueId})}else ut=_s.downloadMediaURL({media:s,queueId:n?.queueId});ut.then(Qe,he)}});return Z&&(Pf[Z]=z,f&&z.finally(()=>{f()||delete Pf[Z]})),z}};if(i&&(i===1&&(!Ue||lt)||i===2))return Wt.load=vn,Wt;const Dn=n&&(!Ue||lt)?(n.push({div:e[0],load:vn}),Promise.resolve()):vn();return Ue&&D&&(Fe=Dn,h?.push(Fe)),O===2&&de&&P!==void 0&&!b&&su({container:e[0],doc:s,managers:w,middleware:t,isOut:P,width:d,loadPromise:Dn,relativeEffect:k,loopEffect:T,scrollable:I,showPremiumInfo:N}),Wt.render=Dn,Wt}async function tu({e:s,container:e,doc:t,managers:f,middleware:n,isOut:i,width:r,loadPromise:a,relativeEffect:o,loopEffect:c,scrollable:d,showPremiumInfo:l}){const u=ot.isAvailable("effects_premiumstickers")||o;if($e(s),!s.isTrusted&&!u)return;if(e.dataset.playing||!u){l?.();return}e.dataset.playing="1",await a;const{animationDiv:m,stickerPromise:h}=H0({doc:t,middleware:n,side:i?"right":"left",size:r*eu,target:e,play:!0,fullThumb:Yo(t),relativeEffect:o,loopEffect:c,scrollable:d});i!==void 0&&!i&&m.classList.add("reflect-x"),h.then(p=>{p.addEventListener("destroy",()=>{delete e.dataset.playing})})}function su(s){s.managers.appStickersManager.preloadSticker(s.doc.id,!0);const e=Cf(s.container,t=>{tu({...s,e:t})});s.middleware.onDestroy(e)}function Im(s){const e=document.createElement("div");return e.classList.add(s.class),M1(()=>{bn({...s.extraOptions,width:s.width,height:s.height,div:e,doc:s.sticker}).then(t=>{t.render.then(f=>{f&&s.onRender?.(f)})})}),e}function Qo(s,e,t,f=s.getBoundingClientRect(),n=e.getBoundingClientRect()){let{top:i,right:r,bottom:a,left:o}=n;if(t){const u=e.querySelector(".sticky");u&&(i=u.getBoundingClientRect().bottom)}if(f.top>=a||f.bottom<=i||f.right<=o||f.left>=r)return null;const c={top:!1,right:!1,bottom:!1,left:!1,vertical:0,horizontal:0},d=hs.width,l=hs.height;return{rect:{top:f.top<i&&i!==0?(c.top=!0,++c.vertical,i):f.top,right:f.right>r&&r!==d?(c.right=!0,++c.horizontal,r):f.right,bottom:f.bottom>a&&a!==l?(c.bottom=!0,++c.vertical,a):f.bottom,left:f.left<o&&o!==0?(c.left=!0,++c.horizontal,o):f.left},overflow:c}}window.getVisibleRect=Qo;function fu({overflowElement:s,overflowRect:e,selector:t,extraSize:f,extraMinLength:n,elements:i}){e??(e=s.getBoundingClientRect()),i??(i=Array.from(s.querySelectorAll(t))),f&&(e={top:e.top-f,right:e.right+f,bottom:e.bottom+f,left:e.left-f});const r=[],a=[],o=[];let c=!1;for(const d of i){const l=d.getBoundingClientRect(),u=Qo(d,s,!1,l,e),m=!!u;let h;m?(c=!0,h=a):c?h=o:h=r,h.push({element:d,rect:l,visibleRect:u})}return n&&(a.unshift(...r.splice(Math.max(0,r.length-n),n)),a.push(...o.splice(0,n))),{invisibleTop:r,visible:a,invisibleBottom:o}}function Xo(s,e){if(typeof e=="string"){s.textContent=e;return}const t=s.firstChild;t?s.lastChild===t?t.replaceWith(e):(s.textContent="",s.append(e)):s.append(e)}const cr=new WeakMap,Zo=new ResizeObserver(s=>{for(const e of s)cr.get(e.target)(e)});function ec(s,e){return cr.set(s,e),Zo.observe(s),()=>{tc(s)}}function tc(s){cr.delete(s),Zo.unobserve(s)}const nu="__PAID_REACTION_EMOJI__",yf=new Ql,sn=class sn extends HTMLElement{constructor(){super(),this.onResizeEntry=e=>{this.setDimensionsFromRect(e.contentRect)},this.onElementCleanup=(e,t,f)=>{if(e.clear(),t.middlewares.delete(f),!t.middlewares.size){if(t.player){const n=Qt.get(t.player);if(n&&(n.close?.(),Qt.delete(t.player)),Qt.delete(t.player),t.player instanceof It)t.player.overrideRender=ye,t.player.remove();else if(t.player instanceof HTMLVideoElement){const i=rr.generateName(""+e.docId,0,0,void 0,void 0);delete Pf[i]}t.player=void 0}ts.get(t.key)===t&&ts.delete(t.key)&&!ts.size&&ou()}},this.classList.add("custom-emoji-renderer"),this.canvas=document.createElement("canvas"),this.canvas.classList.add("custom-emoji-canvas"),this.context=this.canvas.getContext("2d"),this.append(this.canvas),this.playersSynced=new Map,this.textColored=new Set,this.clearedElements=new WeakSet,this.customEmojis=new Map,this.animationGroup="EMOJI",this.isCanvasClean=!1}connectedCallback(){if(js.has(this))return;const e=this.observeResizeElement??this.canvas;e&&ec(e,this.onResizeEntry),js.add(this),this.connectedCallback=void 0}disconnectedCallback(){this.isConnected||!this.auto||(this.destroy?.(),this.disconnectedCallback=void 0)}destroy(){const e=this.observeResizeElement??this.canvas;e&&tc(e),this.customEmojis.forEach(t=>{t.forEach(f=>{f.clear()})}),js.delete(this),this.playersSynced.clear(),this.middlewareHelper?.clean(),this.customEmojis.clear(),this.textColored.clear(),this.destroy=this.lastPausedVideo=void 0}getOffsets(e=new Map){if(!this.playersSynced.size)return e;const t=Vs(this,"scrollable")||this.offsetParent;if(!t)return e;const f=t.getBoundingClientRect(),n=this.getBoundingClientRect();for(const i of this.playersSynced.keys()){const r=Array.from(i),a=this.isSelectable?r.map(d=>d.placeholder):r,{visible:o}=fu({overflowElement:t,overflowRect:f,elements:a,extraSize:this.size.height*2.5}),c=o.map(({rect:d})=>{const l=d.top-n.top,u=d.left-n.left;return{top:l,left:u,width:d.width}});c.length&&e.set(i,c)}return e}clearCanvas(){if(this.isCanvasClean)return;const{context:e,canvas:t}=this;e.clearRect(0,0,t.width,t.height),this.isCanvasClean=!0}render(e){const{context:t,canvas:f,isDimensionsSet:n}=this;n||this.setDimensionsFromRect(void 0,!1),this.isCanvasClean=!1;const{width:i,height:r,dpr:a}=f;for(const[o,c]of e){const d=this.playersSynced.get(o),l=Qt.get(d)||(d instanceof HTMLVideoElement?d:void 0);if(!l)continue;const u=l instanceof ImageData;let m,h;d instanceof HTMLVideoElement?(m=this.size.width*a,h=this.size.height*a):(m=l.width,h=l.height);const p=Math.round(c[0].width*a);p!==m&&(m=p,h=p);const v=i-m,A=this.textColored.has(o)?wt.getProperty(this.textColor):void 0;!this.clearedElements.has(o)&&!this.isSelectable&&(this.isSelectable?o.forEach(D=>{D.lastChildWas??(D.lastChildWas=D.lastChild),Xo(D,D.firstChild)}):o.forEach(D=>{D.replaceChildren()}),this.clearedElements.add(o)),c.forEach(({top:D,left:w})=>{D=Math.round(D*a),w=Math.round(w*a),!(w<0||w>v)&&(u?t.putImageData(l,w,D):t.drawImage(l,w,D,m,h),A&&gn(t,A,w,D,m,h))})}}checkForAnyFrame(){for(const e of this.playersSynced.values())if(Qt.has(e)||e instanceof HTMLVideoElement)return!0;return!1}remove(){super.remove()}setDimensionsFromRect(e=this.lastRect,t=!0){const{canvas:f}=this,{dpr:n}=f;if(this.lastRect!==e&&(this.lastRect=e),!e||!n||this.ignoreSettingDimensions)return;const{width:i,height:r}=e,a=Math.floor(Math.round(i*n)),o=Math.floor(Math.round(r*n));f.width===a&&f.height===o||(f.width=a,f.height=o,this.isDimensionsSet=!0,this.isCanvasClean=!0,(this.observeResizeElement||this.observeResizeElement===!1)&&(this.canvas.style.setProperty("width",i+"px","important"),this.canvas.style.setProperty("height",r+"px","important")),(this.forceRenderAfterSize||this.isSelectable&&t)&&(this.forceRenderAfterSize=void 0,this.forceRender()))}forceRender(){this.isDimensionsSet&&(oi(new Set([this]))||this.clearCanvas())}async wrapPaidReactionEmoji(e){const t=this.size,f=await us.loadAnimationAsAsset({container:e,width:t.width,height:t.height,loop:!0,autoplay:fa,sync:!0},"StarReaction");return{width:t.width,height:t.height,downloaded:!0,load:()=>Promise.resolve(f),render:void 0}}wrap({doc:e,isPaidReactionEmoji:t,addCustomEmojis:f,usingOwnQueue:n,lazyLoadQueue:i,onlyThumb:r,withThumb:a,loadPromises:o}){const c=this,d=this.size,l=C.managers,u=this.middlewareHelper.get(),m=e.id,h=f.get(m),p=c.customEmojis.get(m),v=Array.from(h),A=e.sticker===2,D=v[0].static||e.mime_type==="video/webm"&&!qi,w=(A||e.sticker===3&&this.isSelectable)&&!r&&!D,F=e.attributes.find(E=>E._==="documentAttributeCustomEmoji");F&&F.pFlags.text_color&&c.textColored.add(p);const P=w?u.create().get(()=>!!g.middlewares.size):void 0,b=[],x=t?this.wrapPaidReactionEmoji(v[0]):bn({div:v,doc:e,width:d.width,height:d.height,loop:!0,play:fa,managers:l,isCustomEmoji:!0,group:"none",loadPromises:b,middleware:u,exportLoad:n||i===!1?2:1,needFadeIn:!1,loadStickerMiddleware:P,static:D,onlyThumb:r,withThumb:a??(c.clearedElements.has(p)?!1:void 0),syncedVideo:this.isSelectable,textColor:c.textColor});o&&x.then(()=>o.push(...b));const k={elements:h},T=v[0].readyPromise;if(T&&x.then(({render:E})=>{if(!E){T.resolve();return}E.then(()=>T.resolve(),T.reject.bind(T))}),e.sticker===1||r||D)return this.isSelectable&&(k.onRender=()=>Promise.all(b).then(()=>{u()&&v.forEach(E=>{const{placeholder:S}=E;S.src=E.firstElementChild.src})})),x.then(E=>({...E,...k}));k.onRender=E=>Promise.all(b).then(()=>{if(!u()||!e.animated)return;const S=Array.isArray(E)?E:[E],_=Array.isArray(S)?S[0]:S;if(v.forEach((I,N)=>{const B=S[N]||S[0];I.player=B,g&&(I.syncedPlayer=g,I.paused?I.syncedPlayer.pausedElements.add(I):B.paused&&B.play()),(I.isConnected||u())&&be.addAnimation({animation:I,group:I.renderer.animationGroup,observeElement:I.placeholder??I,controlled:!0,type:"emoji"})}),(_ instanceof It||_ instanceof HTMLVideoElement&&this.isSelectable)&&(g.player=_,c.playersSynced.set(p,_)),_ instanceof It&&(_.group=c.animationGroup,_.overrideRender??(_.overrideRender=I=>{Qt.set(_,I)})),w){const I=Vo(this.size.width,this.size.height);c.canvas.dpr=I,au()}});let g;const y=[m,d.width,d.height].join("-");if(w){g=ts.get(y),g||(g={player:void 0,middlewares:new Set,pausedElements:new Set,key:y},ts.set(y,g));for(const E of h){const S=E.middlewareHelper.get();g.middlewares.add(S),S.onClean(this.onElementCleanup.bind(this,E,g,S))}}return x.then(E=>({...E,...k}))}add({addCustomEmojis:e,lazyLoadQueue:t,onlyThumb:f,withThumb:n}){const i=this,r=this.middlewareHelper.get();if(e.forEach((l,u)=>{let m=this.customEmojis.get(u);m?this.clearedElements.delete(m):this.customEmojis.set(u,m=new Set);for(const h of l)m.has(h)?l.delete(h):(h.clean=!1,h.renderer=i,h.elements=m,h.middlewareHelper=r.create(),m.add(h),h.lastChildWas&&!h.lastChildWas.parentNode&&h.append(h.lastChildWas));l.size||e.delete(u)}),!e.size)return;const a=!!(!t&&t!==!1&&yf),o=Array.from(e.keys()),c=C.managers;return c.appEmojiManager.getCachedCustomEmojiDocuments(o).then(l=>{if(!r())return;const u={addCustomEmojis:e,usingOwnQueue:a,lazyLoadQueue:t,onlyThumb:f,withThumb:n},m=[],h=[],p=l.map((w,F)=>{if(!w){const P=o[F];if(P===nu)return this.wrap({...u,doc:{_:"document",id:P,attributes:[]},isPaidReactionEmoji:!0,loadPromises:m});h.push(P);return}return this.wrap({...u,doc:w,loadPromises:m})}).filter(Boolean),v=h.length?c.appEmojiManager.getCustomEmojiDocuments(h).then(w=>r()?w.filter(Boolean).map(F=>this.wrap({...u,doc:F})):[]):Promise.resolve([]),A=async w=>{const P=(await Promise.all(w)).map(({load:b,onRender:x,elements:k})=>{if(!b)return;const T=()=>b().then(x);if(!a)return T();k.forEach(g=>{yf.push({div:g,load:()=>(k.forEach(y=>{yf.delete({div:y})}),T())})})});return Promise.all(P.filter(Boolean))},D=()=>{if(!r())return;const w=A(p),F=v.then(P=>A(P));return Promise.all([w,F])};return t?t.push({div:i.canvas,load:D}):D(),Promise.all(p).then(()=>Promise.all(m)).then(()=>{})})}setTextColor(e){this.textColor=e}static create(e){const t=new sn;t.animationGroup=e.animationGroup,t.size=e.customEmojiSize||ff.active.customEmoji,t.isSelectable=e.isSelectable,t.textColor=e.textColor,t.observeResizeElement=e.observeResizeElement,e.wrappingDraft&&(t.contentEditable="false",t.style.height="inherit");const f=e.middleware;return f?(t.middlewareHelper=f.create(),t.middlewareHelper.get().onDestroy(()=>{t.destroy?.()})):(t.auto=!0,t.middlewareHelper=pn()),t}};sn.globalLazyLoadQueue=yf;let ms=sn;const fa=!0;let Us;const js=new Set,ts=new Map,Qt=new Map,oi=(s=js)=>{const t=Array.from(s).filter(n=>n.isConnected&&n.checkForAnyFrame()&&!n.ignoreSettingDimensions);if(!t.length)return!1;const f=t.map(n=>{const i=[...n.playersSynced.values()].reduce((a,o)=>a+ +!!o.paused,0);if(n.playersSynced.size===i)return;const r=n.getOffsets();if(r.size)return[n,r]}).filter(Boolean);for(const[n]of f)n.clearCanvas();for(const[n,i]of f)n.render(i);return!0},iu=60,ru=1e3/iu,au=()=>{Us||(Us=window.setInterval(oi,ru),oi())},ou=()=>{Us&&(clearInterval(Us),Us=void 0)};window.syncedPlayers=ts;window.emojiRenderers=js;customElements.define("custom-emoji-renderer-element",ms);class yn extends HTMLElement{constructor(){super(),this.paused=!0,this.classList.add("custom-emoji")}get docId(){return this.dataset.docId}set docId(e){this.dataset.docId=""+e}static create(e){const t=new yn;return e&&(t.docId=e),t}get isConnected(){return this.placeholder?.isConnected??super.isConnected}connectedCallback(){this.player&&be.addAnimation({animation:this,group:this.renderer.animationGroup,observeElement:this.placeholder??this,controlled:!0,type:"emoji"})}disconnectedCallback(){this.isConnected||!this.renderer?.isSelectable||this.clear()}destroy(){this.clear()}clear(e=!0){if(this.clean)return;this.clean=!0,this.pause();const{syncedPlayer:t}=this;if(t&&t.pausedElements.delete(this),this.middlewareHelper?.clean(),this.readyPromise?.reject(),this.renderer){const f=this.renderer.customEmojis.get(this.docId);f?.delete(this)&&!f.size&&(this.renderer.customEmojis.delete(this.docId),this.renderer.textColored.delete(f),this.renderer.playersSynced.delete(f)),e&&(this.renderer.isSelectable?this.replaceChildren(En(!0)):this.replaceChildren())}this.player&&be.removeAnimationByPlayer(this),ms.globalLazyLoadQueue?.delete({div:this}),this.elements=this.renderer=this.player=this.syncedPlayer=void 0}pause(){this.paused||(this.paused=!0,this.player instanceof HTMLVideoElement&&!this.syncedPlayer&&(this.renderer.lastPausedVideo=this.player,this.player.pause()),this.syncedPlayer&&!this.syncedPlayer.pausedElements.has(this)&&(this.syncedPlayer.pausedElements.add(this),this.syncedPlayer.player&&this.syncedPlayer.pausedElements.size===this.syncedPlayer.middlewares.size&&this.syncedPlayer.player.pause()))}play(){this.paused&&(this.paused=!1,this.player instanceof HTMLVideoElement&&(this.player.currentTime=this.renderer.lastPausedVideo?.currentTime??this.player.currentTime,nr(this.player)),this.syncedPlayer&&this.syncedPlayer.pausedElements.has(this)&&(this.syncedPlayer.pausedElements.delete(this),this.syncedPlayer.pausedElements.size!==this.syncedPlayer.middlewares.size&&this.player.play()))}remove(){super.remove(),this.clear()}get autoplay(){return!0}get loop(){return!0}}customElements.define("custom-emoji-element",yn);const ci={Markup:["markup","html","xml","svg","mathml","ssml","atom","rss"],CSS:["css"],"C-like":["clike"],Regex:["regex"],JavaScript:["javascript","js"],ABAP:["abap"],ABNF:["abnf"],ActionScript:["actionscript"],Ada:["ada"],Agda:["agda"],AL:["al"],ANTLR4:["antlr4","g4"],"Apache Configuration":["apacheconf"],SQL:["sql"],Apex:["apex"],APL:["apl"],AppleScript:["applescript"],AQL:["aql"],C:["c"],"C++":["cpp"],Arduino:["arduino","ino"],ARFF:["arff"],"ARM Assembly":["armasm","arm-asm"],Bash:["bash","sh","shell"],YAML:["yaml","yml"],Markdown:["markdown","md"],Arturo:["arturo","art"],AsciiDoc:["asciidoc","adoc"],"C#":["csharp","cs","dotnet"],"ASP.NET (C#)":["aspnet"],"6502 Assembly":["asm6502"],"Atmel AVR Assembly":["asmatmel"],AutoHotkey:["autohotkey"],AutoIt:["autoit"],AviSynth:["avisynth","avs"],"Avro IDL":["avro-idl","avdl"],AWK:["awk","gawk"],BASIC:["basic"],Batch:["batch"],BBcode:["bbcode","shortcode"],BBj:["bbj"],Bicep:["bicep"],Birb:["birb"],Bison:["bison"],BNF:["bnf","rbnf"],BQN:["bqn"],Brainfuck:["brainfuck"],BrightScript:["brightscript"],Bro:["bro"],CFScript:["cfscript","cfc"],ChaiScript:["chaiscript"],CIL:["cil"],"Cilk/C":["cilkc","cilk-c"],"Cilk/C++":["cilkcpp","cilk-cpp","cilk"],Clojure:["clojure"],CMake:["cmake"],COBOL:["cobol"],CoffeeScript:["coffeescript","coffee"],Concurnas:["concurnas","conc"],"Content-Security-Policy":["csp"],Cooklang:["cooklang"],Ruby:["ruby","rb"],Crystal:["crystal"],CSV:["csv"],CUE:["cue"],Cypher:["cypher"],D:["d"],Dart:["dart"],DataWeave:["dataweave"],DAX:["dax"],Dhall:["dhall"],Diff:["diff"],"Markup templating":["markup-templating"],"Django/Jinja2":["django","jinja2"],"DNS zone file":["dns-zone-file","dns-zone"],Docker:["docker","dockerfile"],"DOT (Graphviz)":["dot","gv"],EBNF:["ebnf"],EditorConfig:["editorconfig"],Eiffel:["eiffel"],EJS:["ejs","eta"],Elixir:["elixir"],Elm:["elm"],Lua:["lua"],"Embedded Lua templating":["etlua"],ERB:["erb"],Erlang:["erlang"],"Excel Formula":["excel-formula","xlsx","xls"],"F#":["fsharp"],Factor:["factor"],False:["false"],"Firestore security rules":["firestore-security-rules"],Flow:["flow"],Fortran:["fortran"],"FreeMarker Template Language":["ftl"],"GameMaker Language":["gml","gamemakerlanguage"],"GAP (CAS)":["gap"],"G-code":["gcode"],GDScript:["gdscript"],GEDCOM:["gedcom"],gettext:["gettext","po"],Git:["git"],GLSL:["glsl"],GN:["gn","gni"],"GNU Linker Script":["linker-script","ld"],Go:["go"],"Go module":["go-module","go-mod"],Gradle:["gradle"],GraphQL:["graphql"],Groovy:["groovy"],Less:["less"],"Sass (SCSS)":["scss"],Textile:["textile"],Haml:["haml"],Handlebars:["handlebars","hbs","mustache"],Haskell:["haskell","hs"],Haxe:["haxe"],HCL:["hcl"],HLSL:["hlsl"],Hoon:["hoon"],"HTTP Public-Key-Pins":["hpkp"],"HTTP Strict-Transport-Security":["hsts"],JSON:["json","webmanifest"],URI:["uri","url"],HTTP:["http"],IchigoJam:["ichigojam"],Icon:["icon"],"ICU Message Format":["icu-message-format"],Idris:["idris","idr"],".ignore":["ignore","gitignore","hgignore","npmignore"],"Inform 7":["inform7"],Ini:["ini"],Io:["io"],J:["j"],Java:["java"],Scala:["scala"],PHP:["php"],"JavaDoc-like":["javadoclike"],JavaDoc:["javadoc"],"Java stack trace":["javastacktrace"],Jolie:["jolie"],JQ:["jq"],TypeScript:["typescript","ts"],JSDoc:["jsdoc"],N4JS:["n4js","n4jsd"],JSON5:["json5"],JSONP:["jsonp"],"JS stack trace":["jsstacktrace"],Julia:["julia"],"Keepalived Configure":["keepalived"],Keyman:["keyman"],Kotlin:["kotlin","kt","kts"],Kusto:["kusto"],LaTeX:["latex","tex","context"],Latte:["latte"],Scheme:["scheme"],LilyPond:["lilypond","ly"],Liquid:["liquid"],Lisp:["lisp","emacs","elisp","emacs-lisp"],LiveScript:["livescript"],"LLVM IR":["llvm"],"Log file":["log"],LOLCODE:["lolcode"],"Magma (CAS)":["magma"],Makefile:["makefile"],Mata:["mata"],MATLAB:["matlab"],MAXScript:["maxscript"],MEL:["mel"],Mermaid:["mermaid"],METAFONT:["metafont"],Mizar:["mizar"],MongoDB:["mongodb"],Monkey:["monkey"],MoonScript:["moonscript","moon"],N1QL:["n1ql"],"Nand To Tetris HDL":["nand2tetris-hdl"],"Naninovel Script":["naniscript","nani"],NASM:["nasm"],NEON:["neon"],Nevod:["nevod"],nginx:["nginx"],Nim:["nim"],Nix:["nix"],NSIS:["nsis"],"Objective-C":["objectivec","objc"],OCaml:["ocaml"],Odin:["odin"],OpenCL:["opencl"],OpenQasm:["openqasm","qasm"],Oz:["oz"],"PARI/GP":["parigp"],Parser:["parser"],Pascal:["pascal","objectpascal"],Pascaligo:["pascaligo"],"PATROL Scripting Language":["psl"],"PC-Axis":["pcaxis","px"],PeopleCode:["peoplecode","pcode"],Perl:["perl"],PHPDoc:["phpdoc"],PlantUML:["plant-uml","plantuml"],"PL/SQL":["plsql"],PowerQuery:["powerquery","pq","mscript"],PowerShell:["powershell"],Processing:["processing"],Prolog:["prolog"],PromQL:["promql"],".properties":["properties"],"Protocol Buffers":["protobuf"],Stylus:["stylus"],Twig:["twig"],Pug:["pug"],Puppet:["puppet"],PureBasic:["purebasic","pbfasm"],Python:["python","py"],"Q#":["qsharp","qs"],"Q (kdb+ database)":["q"],QML:["qml"],Qore:["qore"],R:["r"],Racket:["racket","rkt"],"Razor C#":["cshtml","razor"],"React JSX":["jsx"],"React TSX":["tsx"],Reason:["reason"],Rego:["rego"],"Ren'py":["renpy","rpy"],ReScript:["rescript","res"],"reST (reStructuredText)":["rest"],Rip:["rip"],Roboconf:["roboconf"],"Robot Framework":["robotframework","robot"],Rust:["rust"],SAS:["sas"],"Sass (Sass)":["sass"],"Shell session":["shell-session","sh-session","shellsession"],Smali:["smali"],Smalltalk:["smalltalk"],Smarty:["smarty"],SML:["sml","smlnj"],"Solidity (Ethereum)":["solidity","sol"],"Solution file":["solution-file","sln"],"Soy (Closure Template)":["soy"],"Splunk SPL":["splunk-spl"],"SQF: Status Quo Function (Arma 3)":["sqf"],Squirrel:["squirrel"],Stan:["stan"],"Stata Ado":["stata"],"Structured Text (IEC 61131-3)":["iecst"],SuperCollider:["supercollider","sclang"],Swift:["swift"],"Systemd configuration file":["systemd"],"T4 templating":["t4-templating"],"T4 Text Templates (C#)":["t4-cs","t4"],"VB.Net":["vbnet"],"T4 Text Templates (VB)":["t4-vb"],TAP:["tap"],Tcl:["tcl"],"Template Toolkit 2":["tt2"],TOML:["toml"],Tremor:["tremor","trickle","troy"],TypoScript:["typoscript","tsconfig"],UnrealScript:["unrealscript","uscript","uc"],"UO Razor Script":["uorazor"],V:["v"],Vala:["vala"],Velocity:["velocity"],Verilog:["verilog"],VHDL:["vhdl"],vim:["vim"],"Visual Basic":["visual-basic","vb","vba"],WarpScript:["warpscript"],WebAssembly:["wasm"],"Web IDL":["web-idl","webidl"],WGSL:["wgsl"],"Wiki markup":["wiki"],"Wolfram language":["wolfram","mathematica","nb","wl"],Wren:["wren"],Xeora:["xeora","xeoracube"],"Xojo (REALbasic)":["xojo"],XQuery:["xquery"],YANG:["yang"],Zig:["zig"]},dr={};for(const s in ci){const e=ci[s];e.unshift(s.toLowerCase());for(let t=0,f=e.length;t<f;++t)dr[e[t]]=s}function na(s){const e=s.toLowerCase(),t=ci[dr[e]]||[];for(const f of t)if(fs.languages[f])return{language:f,prism:fs};console.error("No prism language "+e)}let fs;function cu(s){if(fs)return at(fs,()=>na(s));const e=!!window.Prism;return e||(window.Prism=window.Prism||{},window.Prism.manual=!0),fs=se(()=>import("./prism-C4r0NVHH.js"),__vite__mapDeps([0,1]),import.meta.url).then(t=>{const f=t.default;return e||f.hooks.add("wrap",n=>{n.classes.forEach((i,r,a)=>{a[r]="prism-"+i})}),fs=f,na(s)})}function du(s,e){return at(cu(e),t=>{if(!t){console.error(`Language "${e}" is not supported`,s);return}const{prism:f,language:n}=t;return f.highlight(s,f.languages[n],n)})}function lu(s,e,t=0){for(let f=s.length;t<f;++t)if(e(s[t],t,s))return t;return-1}function uu(s){const e=document.createElement("div");return e.innerHTML=s.trim(),e.firstElementChild}const di=new Map;function hu(s){_f(s);const e={isCancelled:!1,deferred:G()};return di.set(s,e),e.deferred.then(()=>{sc(s)===e&&di.delete(s)}),e}function sc(s){return di.get(s)}function _f(s){const e=sc(s);e&&(e.isCancelled=!0,e.deferred.resolve())}function fc(s,e,t){return t||(t=hu(e)),Me(()=>{t.isCancelled||(s()?fc(s,e,t):t.deferred.resolve())}),t.deferred}function nc(s){Me(()=>{s()&&nc(s)})}function mu(s,e){return s.some(t=>t instanceof Promise)?Promise.all(s).then(e):e(s)}function ia(s,e){return s=Math.ceil(s),e=Math.floor(e),Math.floor(Math.random()*(e-s+1))+s}const et=class et{static getStyleSheet(){return this.style?this.style:(this.log("Creating style element"),this.style=document.createElement("style"),document.head.appendChild(this.style),this.style)}static draw(e){if(this.lastDrawTime+this.DRAW_INTERVAL>performance.now())return;this.lastDrawTime=performance.now();const t=this.getStyleSheet(),f=e.toDataURL();t.textContent=`
  3. .bluff-spoiler {
  4. mask-image: url(${f});
  5. opacity: 1;
  6. }
  7. `}static observeReconnection(e,t){const f=new WeakRef(e);this.allWeakRefs.find(n=>n.deref()===e)||this.allWeakRefs.push(f),this.reconnectCallbacks.set(e,t),this.initReconnectionInterval()}static initReconnectionInterval(){this.reconnectIntervalId||(this.log("Initializing reconnection interval"),this.reconnectIntervalId=window.setInterval(()=>{this.allWeakRefs=this.allWeakRefs.filter(e=>{const t=e.deref();if(!t)return!1;const f=be.getAnimations(t),n=this.reconnectCallbacks.get(t);return!f?.length&&t.isConnected&&(n(t),this.log("Reconnected element")),!0}),this.allWeakRefs.length||(window.clearInterval(this.reconnectIntervalId),this.reconnectIntervalId=void 0,this.log("Removing reconnection interval"))},this.RECONNECT_INTERVAL))}static destroy(){this.style?.remove(),this.style=void 0,this.log("Destroying style element")}};et.log=X("bluff-spoiler"),et.lastDrawTime=0,et.DRAW_INTERVAL=4*(1e3/60),et.allWeakRefs=[],et.reconnectCallbacks=new WeakMap,et.RECONNECT_INTERVAL=250,et.instancesCount=0;let bt=et;L.BluffSpoilerController=bt;var gu=4,pu=.001,bu=1e-7,yu=10,Ts=11,Ef=1/(Ts-1),Eu=typeof Float32Array=="function";function ic(s,e){return 1-3*e+3*s}function rc(s,e){return 3*e-6*s}function ac(s){return 3*s}function Qf(s,e,t){return((ic(e,t)*s+rc(e,t))*s+ac(e))*s}function oc(s,e,t){return 3*ic(e,t)*s*s+2*rc(e,t)*s+ac(e)}function vu(s,e,t,f,n){var i,r,a=0;do r=e+(t-e)/2,i=Qf(r,f,n)-s,i>0?t=r:e=r;while(Math.abs(i)>bu&&++a<yu);return r}function Du(s,e,t,f){for(var n=0;n<gu;++n){var i=oc(e,t,f);if(i===0)return e;var r=Qf(e,t,f)-s;e-=r/i}return e}function wu(s){return s}function cc(s,e,t,f){if(!(0<=s&&s<=1&&0<=t&&t<=1))throw new Error("bezier x values must be in [0, 1] range");if(s===e&&t===f)return wu;for(var n=Eu?new Float32Array(Ts):new Array(Ts),i=0;i<Ts;++i)n[i]=Qf(i*Ef,s,t);function r(a){for(var o=0,c=1,d=Ts-1;c!==d&&n[c]<=a;++c)o+=Ef;--c;var l=(a-n[c])/(n[c+1]-n[c]),u=o+l*Ef,m=oc(u,s,t);return m>=pu?Du(a,u,s,t):m===0?u:vu(a,o,o+Ef,s,t)}return function(o){return o===0||o===1?o:Qf(r(o),e,f)}}function yt(s,e,t){s/=255,e/=255,t/=255;const f=Math.max(s,e,t),n=f-Math.min(s,e,t),i=n&&(f===s?(e-t)/n:f==e?2+(t-s)/n:4+(s-e)/n);return[60*(i<0?i+6:i),f&&n/f,f]}function lr(s,e,t){const f=(n,i=(n+s/60)%6)=>Math.round((t-t*e*Math.max(Math.min(i,4-i,1),0))*255);return[f(5),f(3),f(1)]}function li(s,e,t,f=1){s/=255,e/=255,t/=255;const n=Math.max(s,e,t),i=Math.min(s,e,t);let r,a;const o=(n+i)/2;if(n===i)r=a=0;else{const c=n-i;switch(a=o>.5?c/(2-n-i):c/(n+i),n){case s:r=(e-t)/c+(e<t?6:0);break;case e:r=(t-s)/c+2;break;case t:r=(s-e)/c+4;break}r/=6}return{h:r*360,s:a*100,l:o*100,a:f}}function xm(s){return`hsla(${s.h}, ${s.s}%, ${s.l}%, ${s.a})`}function dc(s,e,t,f){s/=360,e/=100,t/=100;let n,i,r;if(e===0)n=i=r=t;else{const a=function(l,u,m){return m<0&&(m+=1),m>1&&(m-=1),m<.16666666666666666?l+(u-l)*6*m:m<.5?u:m<.6666666666666666?l+(u-l)*(.6666666666666666-m)*6:l},o=t<.5?t*(1+e):t+e-t*e,c=2*t-o;n=a(c,o,s+1/3),i=a(c,o,s),r=a(c,o,s-1/3)}return[n,i,r,f].map(a=>Math.round(a*255))}function lc(s){const e=s.slice(5,-1).split(", "),t=+e.pop(),f=e.map(n=>n.endsWith("%")?+n.slice(0,-1):+n);return dc(f[0],f[1],f[2],t)}function uc(s){const e=[],t=s[0]==="#"?1:0;if(s.length===5+t&&(s=(t?"#":"")+"0"+s.slice(t)),s.length===3+t)for(let f=t;f<s.length;++f)e.push(parseInt(s[f]+s[f],16));else if(s.length===4+t){for(let f=t;f<s.length-1;++f)e.push(parseInt(s[f]+s[f],16));e.push(parseInt(s[s.length-1],16))}else for(let f=t;f<s.length;f+=2)e.push(parseInt(s.slice(f,f+2),16));return e}function Ze(s){return uc(s.slice(0,7))}function Mm(s,e){let t=`#${s.toString(16).padStart(6,"0")}`;return e!==void 0&&(t+=`${Math.floor(e*255).toString(16).padStart(2,"0")}`),t}function hc(s){const e=uc(s);return li(e[0],e[1],e[2],e[3])}function Ls(s){return"#"+s.map(e=>("0"+e.toString(16)).slice(-2)).join("")}function Su(s){return Ls(lc(s))}function Au(s){return Su(s).slice(0,-2)}function In(s,e,t){const f=new Array(3);for(let n=0;n<3;++n){const i=s[n],r=e[n];f[n]=Math.floor(r+(i-r)*t)}return f}function ra(s){return(s[0]*.2126+s[1]*.7152+s[2]*.0722)/255}function Cu(s,e){return s.map((t,f)=>Math.round((t+e[f])/2))}function ku(s,e,t){const f=yt(...e),n=yt(...t),i=Math.min(1.5*f[1]/s[1],1);return f[0]=Math.min(360,n[0]-f[0]+s[0]),f[1]=Math.min(1,n[1]*s[1]/f[1]),f[2]=Math.min(1,(n[2]/f[2]+i-1)*s[2]/i),f[2]<.3?t:lr(...f)}function Fu(s,e,t,f){const n=yt(...t);if(Math.min(Math.abs(n[0]-s[0]),Math.abs(n[0]-s[0]-360))>30)return t;const r=s[1]?Math.min(1.5*n[1]/s[1],1):0;n[0]=Math.min(360,n[0]+e[0]-s[0]),n[1]=s[1]?Math.min(1,n[1]*e[1]/s[1]):0,n[2]=s[2]?Math.min(1,n[2]*(1-r+r*e[2]/s[2])):0;let a=lr(...n);const o=ra(t),c=ra(a);if(f?o>c:o<c){const u=.4*o/c+.6;a=Pu(a,u)}return a}function Pu(s,e){return s.map(t=>ys(Math.round(t*e),0,255))}function ur(s){const e=(s<0?16777215+s:s).toString(16);return"#"+(e.length>=6?e:"0".repeat(6-e.length)+e)}function vf(s){return Ze(ur(s))}function Rm(s){return s.settings?[s.settings.background_color,s.settings.second_background_color,s.settings.third_background_color,s.settings.fourth_background_color].filter(Boolean).map(ur).join(","):""}function Om(s,e){const t=s[3];return s.slice(0,3).map((f,n)=>ys(Math.round((t*(f/255)+t*(e[n]/255))*255),0,255))}function Nm(s){const[e,t,f]=s;return .2126*e/255+.7152*t/255+.0722*f/255}function Bm(s){return s>.5?[0,0,0]:[255,255,255]}function Um(s,e){const t=s>.5?0:1,f=(s-t+e)/e;return+Math.max(.5,Math.min(.64,f)).toFixed(2)}const jm=s=>new Promise(e=>setTimeout(e,s)),Wm=X("Media editor");function Vm(s){const e=Ga();return(...t)=>qa(e,()=>s(...t))}function Hm(s,e){return Math.hypot(s[0]-e[0],s[1]-e[1])}function aa(s,e,t){return e/s>t?e=t*s:t=e/s,[e,t]}function zm(s,e,t,f,n){return[e,t]=aa(s,e,t),[f,n]=aa(s,f,n),Math.max(e/f,t/n)}function Gm(s){return hc(s).l<80?"#ffffff":"#000000"}function oa(s,e,t){return s+(e-s)*t}function qm(s,e,t){return s.map((f,n)=>f+(e[n]-f)*t)}const _u=cc(.42,0,.58,1),Tu=cc(.25,.1,.25,1);function Lu(s,e,t,f,{easing:n=_u,onEnd:i=()=>{}}={}){let r,a=!1;function o(c){if(a)return;r||(r=c);const d=c-r,l=Math.min(d/t,1),u=n(l);if(s instanceof Array&&e instanceof Array){const m=s.map((h,p)=>oa(h,e[p],u));f(m)}else f(oa(s,e,u));l<1?requestAnimationFrame(o):i()}return requestAnimationFrame(o),()=>{a=!0}}const $m={roboto:{fontFamily:"'Roboto'",fontWeight:500,baseline:.75},suez:{fontFamily:"'Suez One'",fontWeight:400,baseline:.75},bubbles:{fontFamily:"'Rubik Bubbles'",fontWeight:400,baseline:.75},playwrite:{fontFamily:"'Playwrite BE VLG'",fontWeight:400,baseline:.85},chewy:{fontFamily:"'Chewy'",fontWeight:400,baseline:.75},courier:{fontFamily:"'Courier Prime'",fontWeight:700,baseline:.65},fugaz:{fontFamily:"'Fugaz One'",fontWeight:400,baseline:.75},sedan:{fontFamily:"'Sedan'",fontWeight:400,baseline:.75}};class xn{constructor(e){this.options=e,this.autoplay=!0,this.loop=!0,this.paused=!0}remove(){this.pause(),this.options.onDestroy?.()}play(){this.paused&&(this.paused=!1,this.options.onPlay())}pause(){this.paused||(this.paused=!0,this.options.onPause())}}function ca(s,e){return ys(s*e/(500*500)*1e3*(xe?5:10),500,1e4)}const tt=class tt{constructor(){this.drawCallbacks=new Map,this.targetCanvasesCount=0,this.reset=!0,this.loop=!0;const e=this.canvas=document.createElement("canvas");this.dpr=window.devicePixelRatio,e.classList.add("canvas-thumbnail","canvas-dots"),this.paused=!0,this.autoplay=!0,this.tempId=0,this.time=0,this.bufferIndex=0,this.context=e.getContext("webgl2")}resize(e,t,f,n={}){this.width=e,this.height=t,this.multiply=f,this.canvas.width=e*this.dpr,this.canvas.height=t*this.dpr,this.config={particlesCount:ca(e,t),radius:this.dpr*1.6,seed:Math.random()*10,noiseScale:6,noiseSpeed:.6,forceMult:.6,velocityMult:1,dampingMult:.9999,maxVelocity:6,longevity:1.4,noiseMovement:4,timeScale:.65,color:16777215,...n},this.inited&&this.draw()}genBuffer(){this.buffer&&(this.context.deleteBuffer(this.buffer[0]),this.context.deleteBuffer(this.buffer[1])),this.buffer=[];for(let e=0;e<2;++e)this.buffer[e]=this.context.createBuffer(),this.context.bindBuffer(this.context.ARRAY_BUFFER,this.buffer[e]),this.context.bufferData(this.context.ARRAY_BUFFER,(this.bufferParticlesCount=Math.ceil(this.config.particlesCount))*6*4,this.context.DYNAMIC_DRAW)}compileShader(e,t){var i;const f=this.context.createShader(e),n=(i=tt.shaderTexts)[t]??(i[t]=fetch(t).then(r=>r.text()).then(r=>tt.shaderTexts[t]=r+`
  8. //`+Math.random()));return at(n,r=>{if(this.context.shaderSource(f,r),this.context.compileShader(f),!this.context.getShaderParameter(f,this.context.COMPILE_STATUS))throw`compile shader error:
  9. `+this.context.getShaderInfoLog(f);return f})}compileShaders(){return mu([this.compileShader(this.context.VERTEX_SHADER,"assets/img/spoiler_vertex.glsl"),this.compileShader(this.context.FRAGMENT_SHADER,"assets/img/spoiler_fragment.glsl")],e=>e)}draw(){if(!this.inited)return;const e=this.context,t=this.config,f=Date.now(),n=Math.min((f-this.lastDrawTime)/1e3,1)*t.timeScale;this.lastDrawTime=f,this.time+=n,this.bufferParticlesCount<t.particlesCount&&(this.genBuffer(),this.reset=!0),e.viewport(0,0,this.canvas.width,this.canvas.height),e.clear(e.COLOR_BUFFER_BIT),e.useProgram(this.program),e.uniform1f(this.resetHandle,this.reset?1:0),this.reset&&(this.time=0,this.reset=!1),e.uniform1f(this.timeHandle,this.time),e.uniform1f(this.deltaTimeHandle,n),e.uniform2f(this.sizeHandle,this.canvas.width,this.canvas.height),e.uniform1f(this.seedHandle,t.seed),e.uniform1f(this.radiusHandle,t.radius),e.uniform1f(this.noiseScaleHandle,t.noiseScale),e.uniform1f(this.noiseSpeedHandle,t.noiseSpeed),e.uniform1f(this.dampingMultHandle,t.dampingMult),e.uniform1f(this.velocityMultHandle,t.velocityMult),e.uniform1f(this.forceMultHandle,t.forceMult),e.uniform1f(this.longevityHandle,t.longevity),e.uniform1f(this.maxVelocityHandle,t.maxVelocity),e.uniform1f(this.noiseMovementHandle,t.noiseMovement),e.uniform3f(this.colorHandle,(t.color>>16&255)/255,(t.color>>8&255)/255,(t.color&255)/255),e.bindBuffer(e.ARRAY_BUFFER,this.buffer[this.bufferIndex]),e.vertexAttribPointer(0,2,e.FLOAT,!1,24,0),e.enableVertexAttribArray(0),e.vertexAttribPointer(1,2,e.FLOAT,!1,24,8),e.enableVertexAttribArray(1),e.vertexAttribPointer(2,1,e.FLOAT,!1,24,16),e.enableVertexAttribArray(2),e.vertexAttribPointer(3,1,e.FLOAT,!1,24,20),e.enableVertexAttribArray(3),e.bindBufferBase(e.TRANSFORM_FEEDBACK_BUFFER,0,this.buffer[1-this.bufferIndex]),e.vertexAttribPointer(0,2,e.FLOAT,!1,24,0),e.enableVertexAttribArray(0),e.vertexAttribPointer(1,2,e.FLOAT,!1,24,8),e.enableVertexAttribArray(1),e.vertexAttribPointer(2,1,e.FLOAT,!1,24,16),e.enableVertexAttribArray(2),e.vertexAttribPointer(3,1,e.FLOAT,!1,24,20),e.enableVertexAttribArray(3),e.beginTransformFeedback(e.POINTS),e.drawArrays(e.POINTS,0,t.particlesCount),e.endTransformFeedback(),e.bindBuffer(e.ARRAY_BUFFER,null),e.bindBufferBase(e.TRANSFORM_FEEDBACK_BUFFER,0,null),this.bufferIndex=1-this.bufferIndex,this.drawCallbacks.forEach(i=>i())}remove(){this.pause(),this.destroy()}pause(){this.paused||(this.paused=!0,++this.tempId)}play(){if(!this.paused)return;this.paused=!1;const e=++this.tempId;this.lastDrawTime=Date.now(),nc(()=>this.tempId!==e||this.paused?!1:(this.draw(),!0))}_init(e,t){this.genBuffer();const f=this.context,n=this.program=f.createProgram();if(f.attachShader(n,e),f.attachShader(n,t),f.transformFeedbackVaryings(n,["outPosition","outVelocity","outTime","outDuration"],f.INTERLEAVED_ATTRIBS),f.linkProgram(n),!f.getProgramParameter(n,f.LINK_STATUS))throw`program link error:
  10. `+f.getProgramInfoLog(n);f.deleteShader(e),f.deleteShader(t),this.timeHandle=f.getUniformLocation(n,"time"),this.deltaTimeHandle=f.getUniformLocation(n,"deltaTime"),this.sizeHandle=f.getUniformLocation(n,"size"),this.resetHandle=f.getUniformLocation(n,"reset"),this.radiusHandle=f.getUniformLocation(n,"r"),this.seedHandle=f.getUniformLocation(n,"seed"),this.noiseScaleHandle=f.getUniformLocation(n,"noiseScale"),this.noiseSpeedHandle=f.getUniformLocation(n,"noiseSpeed"),this.dampingMultHandle=f.getUniformLocation(n,"dampingMult"),this.velocityMultHandle=f.getUniformLocation(n,"velocityMult"),this.forceMultHandle=f.getUniformLocation(n,"forceMult"),this.longevityHandle=f.getUniformLocation(n,"longevity"),this.maxVelocityHandle=f.getUniformLocation(n,"maxVelocity"),this.noiseMovementHandle=f.getUniformLocation(n,"noiseMovement"),this.colorHandle=f.getUniformLocation(n,"color"),f.clearColor(0,0,0,0),f.viewport(0,0,this.canvas.width,this.canvas.height),f.enable(f.BLEND),f.blendFunc(f.SRC_ALPHA,f.ONE_MINUS_SRC_ALPHA),this.inited=!0,this.lastDrawTime=Date.now()}init(){return this.initPromise??(this.initPromise=at(this.compileShaders(),e=>(this._init(...e),this.draw(),!0)))}destroy(){this.buffer&&(this.context.deleteBuffer(this.buffer[0]),this.context.deleteBuffer(this.buffer[1])),this.buffer=null,this.context.deleteProgram(this.program),this.program=null}static create({width:e,height:t,middleware:f,animationGroup:n,multiply:i,config:r}){const a=++this.createdIndex;let{imageSpoilerInstance:o}=this;o||(o=this.imageSpoilerInstance=new tt,o.resize(480,480),window.dotRenderer=o);const c=document.createElement("canvas");c.classList.add("canvas-thumbnail","canvas-dots");const d=window.devicePixelRatio;e&&(c.width=e*d,c.height=t*d);const l=c.getContext("2d"),u=a%4===1,m=a%4===2,h=a%4===3,p=[u&&"rotate(180deg)",m&&"scaleX(-1)",h&&"scaleY(-1)"].filter(Boolean);p.length&&(c.style.transform=p.join(" "));let v;const A=ia(0,o.canvas.width-c.width),D=ia(0,o.canvas.height-c.height);function w(k,T,g,y){k.save(),k.globalCompositeOperation="destination-out",k.fillStyle="white",k.shadowBlur=y/3.5*o.dpr*T,k.shadowColor="white",k.beginPath(),k.arc(g.x,g.y,y*T,0,2*Math.PI),k.fill(),k.globalCompositeOperation="source-over",k.restore()}const F=()=>{const{width:k,height:T}=c;if(!(v?.progress>=1)){if(l.clearRect(0,0,k,T),!v)l.drawImage(o.canvas,A,D,k,T,0,0,k,T);else{const{progress:y,transformedCoords:E,underLyingCtx:S,maxDist:_,maxDistUnderlyingCanvas:I,underlyingCanvasClickCoords:N}=v,B=y**2*.5;l.drawImage(o.canvas,A+E.x*B,D+E.y*B,k*(1-B),T*(1-B),0,0,k,T),w(l,y,E,_),w(S,y,N,I)}r?.color&&gn(l,"#"+r.color.toString(16),0,0,k,T)}};++o.targetCanvasesCount;const P=new xn({onPlay:()=>{o.drawCallbacks.set(c,F),o.play()},onPause:()=>{o.drawCallbacks.delete(c),o.drawCallbacks.size||o.pause()},onDestroy:()=>{--o.targetCanvasesCount||(o.remove(),this.imageSpoilerInstance=void 0)}});be.addAnimation({animation:P,group:n,observeElement:c,controlled:f,type:"dots"});function b(k,T){if(!("clientX"in k&&"clientY"in k))return!1;const g=c.getBoundingClientRect(),y=k.clientX-g.left,E=k.clientY-g.top;let S=y,_=E;Number(u)+Number(m)===1&&(S=g.width-y),Number(u)+Number(h)===1&&(_=g.height-E);const I=Math.max(Math.hypot(y,E),Math.hypot(g.width-y,E),Math.hypot(y,g.height-E),Math.hypot(g.width-y,g.height-E)),N=I*o.dpr+50;v={underlyingCanvasClickCoords:{x:y*T.width/g.width,y:E*T.height/g.height},transformedCoords:{x:S*o.dpr,y:_*o.dpr},maxDist:N,maxDistUnderlyingCanvas:N/c.width*T.width,underLyingCtx:T.getContext("2d"),progress:0};const B=G();return Lu(0,1,800+(400-I),Y=>void(v.progress=Y),{onEnd:()=>void B.resolve(),easing:Tu}),B}const x={canvas:c,readyResult:e&&o.init(),revealWithAnimation:b};return this.createdImageSpoilers.set(c,x),x}static getImageSpoilerByElement(e){return this.createdImageSpoilers.get(e)}static getTextSpoilerInstance(){if(this.textSpoilerInstance)return this.textSpoilerInstance;const e=240,t=120,f=this.textSpoilerInstance=new tt;return f.dpr=Math.min(2,window.devicePixelRatio),f.resize(e,t,void 0,{particlesCount:4*ca(e,t),noiseSpeed:5,maxVelocity:10,timeScale:1.2,radius:1.8*f.dpr,forceMult:.2,velocityMult:.4,dampingMult:2.2,longevity:5}),L.textSpoilerRenderer=f,f}static attachTextSpoilerTarget({middleware:e,animationGroup:t,canvas:f,draw:n}){const i=this.getTextSpoilerInstance();++i.targetCanvasesCount;const r=new xn({onPlay:()=>{i.drawCallbacks.set(f,n),i.play()},onPause:()=>{i.drawCallbacks.delete(f),i.drawCallbacks.size||i.pause()},onDestroy:()=>{--i.targetCanvasesCount||(i.remove(),this.textSpoilerInstance=void 0)}});return be.addAnimation({animation:r,group:t,observeElement:f,controlled:e,type:"dots"}),{animation:r,sourceCanvas:i.canvas,dpr:i.dpr,readyResult:i.init()}}static attachBluffTextSpoilerTarget(e){const t=this.getTextSpoilerInstance();bt.observeReconnection(e,n=>this.attachBluffTextSpoilerTarget(n)),++t.targetCanvasesCount,++bt.instancesCount;const f=new xn({onPlay:()=>{t.drawCallbacks.set(e,()=>bt.draw(t.canvas)),t.play()},onPause:()=>{t.drawCallbacks.delete(e),t.drawCallbacks.size||t.pause()},onDestroy:()=>{--t.targetCanvasesCount||(t.remove(),this.textSpoilerInstance=void 0),--bt.instancesCount||bt.destroy()}});be.addAnimation({animation:f,group:"BLUFF-SPOILER",observeElement:e,type:"dots"}),t.init()}};tt.shaderTexts={},tt.createdIndex=-1,tt.createdImageSpoilers=new WeakMap;let ui=tt;const Iu={decode:s=>{const e=[];let t=0;const f=s.length;let n,i;for(;t<f;){if(n=s.charCodeAt(t++),(n&63488)===55296){if(i=s.charCodeAt(t++),(n&64512)!==55296||(i&64512)!==56320)throw new RangeError("UTF-16(decode): Illegal UTF-16 sequence");n=((n&1023)<<10)+(i&1023)+65536}e.push(n)}return e},encode:s=>{const e=[];let t=0;const f=s.length;let n;for(;t<f;){if(n=s[t++],(n&63488)===55296)throw new RangeError("UTF-16(encode): Illegal UTF-16 value");n>65535&&(n-=65536,e.push(String.fromCharCode(n>>>10&1023|55296)),n=56320|n&1023),e.push(String.fromCharCode(n))}return e.join("")}},xu=128,Mu=72,Ru="-",He=36,Ou=700,Tf=1,hi=26,Nu=38,Mn=2147483647;function Bu(s){return s-48<10?s-22:s-65<26?s-65:s-97<26?s-97:He}function Uu(s,e,t){let f;for(s=t?Math.floor(s/Ou):s>>1,s+=Math.floor(s/e),f=0;s>(He-Tf)*hi>>1;f+=He)s=Math.floor(s/(He-Tf));return Math.floor(f+(He-Tf+1)*s/(s+Nu))}function ju(s,e){const t=[],f=s.length;let n,i,r,a,o,c,d,l,u,m,h,p;for(n=xu,r=0,a=Mu,o=s.lastIndexOf(Ru),o<0&&(o=0),c=0;c<o;++c){if(s.charCodeAt(c)>=128)throw new RangeError("Illegal input >= 0x80");t.push(s.charCodeAt(c))}for(d=o>0?o+1:0;d<f;){for(l=r,u=1,m=He;;m+=He){if(d>=f)throw RangeError("punycode_bad_input(1)");if(h=Bu(s.charCodeAt(d++)),h>=He)throw RangeError("punycode_bad_input(2)");if(h>Math.floor((Mn-r)/u))throw RangeError("punycode_overflow(1)");if(r+=h*u,p=m<=a?Tf:m>=a+hi?hi:m-a,h<p)break;if(u>Math.floor(Mn/(He-p)))throw RangeError("punycode_overflow(2)");u*=He-p}if(i=t.length+1,a=Uu(r-l,i,l===0),Math.floor(r/i)>Mn-n)throw RangeError("punycode_overflow(3)");n+=Math.floor(r/i),r%=i,t.splice(r,0,n),r++}return Iu.encode(t)}function Wu(s){const e=s.split("."),t=[];for(let f=0;f<e.length;++f){const n=e[f];t.push(n.match(/^xn--/)?ju(n.slice(4)):n)}return t.join(".")}function Vu(s){let e;try{e=Wu(new URL(s).hostname)}catch{return!0}let t=!1,f=!1;for(const n of Array.from(e))if(/\p{L}/u.test(n)&&(/\p{Script=Latin}/u.test(n)?t=!0:f=!0,t&&f))return!0;return!1}function Ft(s){const e=document.createElement("span");return e.style.fontFamily="markup-"+s,e.classList.add("is-markup"),e.dataset.markup=s,e}function Hu(s){const e=s.target;if(e.ignoreQuoteResize){if(Date.now()<e.ignoreQuoteResize)return;delete e.ignoreQuoteResize}const t=e.scrollHeight;if(!t)return;const f=s.contentRect.bottom-s.contentRect.height+s.contentRect.top,r=t-f-0-Math.floor(s.contentRect.height)<=1;e.style.setProperty("--quote-max-height",t+"px"),e.classList.toggle("is-truncated",!r)}function zu(s){s.classList.add("quote-like-collapsable");const e=document.createElement("span");return e.classList.add("quote-like-icon","quote-like-collapse"),s.append(e),ec(s,Hu)}function gs(s,e={}){const t=document.createDocumentFragment();if(!s)return t;const f=e.nasty??(e.nasty={i:0,usedLength:0,text:s}),n=(h,p)=>{const v=document.createElement("span");return e.wrappingDraft&&(v.contentEditable="false"),v.classList.add("input-something"),v.append(h),(m||t).append(v),h.classList.add("input-selectable"),!p&&h.append(En(!0)),r.add(v),v};e.isSelectable||(e.isSelectable=e.wrappingDraft);const i=e.customEmojis??(e.customEmojis=new Map),r=e.customWraps??(e.customWraps=new Set),a=e.entities??(e.entities=Kf(f.text)),o=e.passEntities??(e.passEntities={}),c=e.contextSite??(e.contextSite="Telegram"),d=c!=="Telegram",l=f.text.length,u=a.length;let m;for(;f.i<u;++f.i){let h=a[f.i];if(h.offset>=l){if(h._!=="messageEntityCaret")continue}else h.offset+h.length>l&&(h=Ie(h),h.length=l-h.offset);h.length&&(f.lastEntity=h);let p=a[f.i+1];const v=h.offset,A=v+h.length,D=Math.min(A,p?.offset??65535),w=f.text.slice(v,A);let P=f.text.slice(v,D);f.usedLength<v&&(m||t).append(f.text.slice(f.usedLength,v)),m&&(m=t),f.usedLength=D;let b,x,k=!1,T=!1;switch(h._){case"messageEntityBold":{e.noTextFormat||(e.wrappingDraft?b=Ft("bold"):b=document.createElement("strong"));break}case"messageEntityItalic":{e.noTextFormat||(e.wrappingDraft?b=Ft("italic"):b=document.createElement("em"));break}case"messageEntityStrike":{e.wrappingDraft?b=Ft("strikethrough"):b=document.createElement("del");break}case"messageEntityUnderline":{e.wrappingDraft?b=Ft("underline"):e.noTextFormat||(b=document.createElement("u"));break}case"messageEntityPre":case"messageEntityCode":{const g=h.language;if(e.wrappingDraft)b=Ft("monospace"),g&&(b.dataset.language=g);else if(h._==="messageEntityPre"&&!e.noTextFormat){const y=document.createElement("pre"),E=document.createElement("div");E.classList.add("code-content"),b=document.createElement("code"),b.classList.add("code-code"),t.append(y),E.append(b),y.classList.add("quote-like","quote-like-border","code");const S=dr[g.toLowerCase()],_=document.createElement("div");_.classList.add("code-header");const I=document.createElement("span");I.classList.add("code-header-name"),I.append(S||De("CopyCode"));const N=St("menu","code-header-button","code-header-toggle-wrap");_.append(I,N,St("copy","code-header-button","code-header-copy")),y.append(_,E);const B=S&&du(w,S);B&&at(B,O=>{O&&(b.innerHTML=O)}),k=!0,(!B||B instanceof Promise)&&(b.textContent=w);let Y=lu(a,O=>O.offset>=A,f.i+1);Y===-1?Y=a.length-1:Y-=1,f.i=Y,f.usedLength=A,f.lastEntity=a[Y],p=void 0,T=!0}else e.noTextFormat||(b=document.createElement("code"),b.classList.add("monospace-text"));break}case"messageEntityHighlight":{b=document.createElement("i"),b.className="text-highlight";break}case"messageEntityBotCommand":{if(!e.noLinks&&o[h._]){let g=w.slice(1),y,E;(E=g.indexOf("@"))!==-1?(y=g.slice(E+1),g=g.slice(0,E)):y=e.fromBot,b=document.createElement("a"),b.href=Zn("tg://bot_command?command="+encodeURIComponent(g)+(y?"&bot="+encodeURIComponent(y):"")),d||b.setAttribute("onclick","execBotCommand(this)")}break}case"messageEntityCustomEmoji":{for(;p?._==="messageEntityEmoji"&&p.offset<A;)++f.i,f.lastEntity=p,f.usedLength+=p.length,p=a[f.i+1];const g=b=yn.create(h.document_id),{docId:y}=g;let E=i.get(y);if(E||i.set(y,E=new Set),E.add(g),g.dataset.stickerEmoji=w,e.wrappingDraft){b=document.createElement("img"),b.alt=w;for(const S in g.dataset)b.dataset[S]=g.dataset[S];b.customEmojiElement=g,g.placeholder=b,b.classList.add("custom-emoji-placeholder"),b.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAAtJREFUGFdjYAACAAAFAAGq1chRAAAAAElFTkSuQmCC",x="alt";break}e.isSelectable&&(b=n(b,!!e.customEmojiRenderer)),x="alt";break}case"messageEntityEmoji":{let g=nn;if(g){for(const y in Ys)if(y&&Ys[y].hasOwnProperty(h.unicode)&&!ei[y]){g=!1;break}}g?e.wrappingDraft||(b=document.createElement("span"),b.className="emoji emoji-native"):(b=document.createElement("img"),b.src=`assets/img/emoji/${h.unicode}.png`,x="alt",b.className="emoji emoji-image");break}case"messageEntityCaret":{b=document.createElement("span"),b.className="composer-sel";break}case"messageEntityLinebreak":{e.ignoreNextIndex===f.i||e.wrappingDraft&&p?._==="messageEntityBlockquote"&&p.offset===A?k=!0:e.wrappingDraft&&vt&&(b=document.createElement("br"),k=!0),e.doubleLinebreak===f.i&&(e.doubleLinebreak=void 0,(b||t).append(`
  11. `),k=!0);break}case"messageEntityUrl":case"messageEntityTextUrl":{if(!(e.noLinks&&!o[h._])){let g=h.url||w,y=!1,E;const S=on(g);if(g=S.url,E=S.onclick,e.whitelistedDomains)try{const N=new URL(g).hostname;if(!e.whitelistedDomains.includes(N))break}catch{break}h._==="messageEntityTextUrl"?(p?._==="messageEntityUrl"&&p.length===h.length&&p.offset===h.offset&&(f.lastEntity=p,++f.i),g!==w&&(y=!0)):y=Vu(g);const _=!!E;!E&&y&&!_&&!e.passMaskedLinks&&(E="showMaskedAlert"),e.wrappingDraft&&(E=void 0);const I=_||typeof electronHelpers>"u"?g:`javascript:electronHelpers.openExternal('${g}');`;b=document.createElement("a"),b.className="anchor-url",b.href=I,_||typeof electronHelpers<"u"||Df(b),E&&b.setAttribute("onclick",E+"(this)")}break}case"messageEntityEmail":{e.noLinks||(b=document.createElement("a"),b.href=Zn("mailto:"+w),Df(b));break}case"messageEntityHashtag":{const g=!e.noLinks&&F1[c];if(g){const y=w.slice(1);b=document.createElement("a"),b.className="anchor-hashtag",b.href=g.replace("{1}",encodeURIComponent(y)),d?Df(b):b.setAttribute("onclick","searchByHashtag(this)")}break}case"messageEntityMentionName":{e.noLinks&&!o[h._]||(b=document.createElement("a"),b.href=Rl(""+h.user_id),b.className="follow",b.dataset.follow=""+h.user_id);break}case"messageEntityMention":{if(!e.noLinks){const g=w.slice(1);b=Wl("t.me/"+g),b.className="mention"}break}case"messageEntitySpoiler":{if(e.noTextFormat){const g=Nl(f.text,h);f.text=g.text,P=g.entityText,D!==A&&(f.usedLength+=A-D);let y;for(;y=a[f.i+1],y&&y.offset<A;)++f.i,f.lastEntity=y,p=a[f.i+1];vt||(b=document.createElement("span"),b.append(...P.split("").map((E,S)=>uu(`<span class="bluff-spoiler" style="--index:${S}">${E}</span>`))),t.append(b),ui.attachBluffTextSpoilerTarget(b),k=!0)}else if(e.wrappingDraft)b=Ft("spoiler");else{const g=document.createElement("span");g.className="spoiler",b=document.createElement("span"),b.className="spoiler-text",b.textContent=P,k=!0,g.append(b),t.append(g),g[`on${Ns}`]=window.onSpoilerClick}break}case"messageEntityTimestamp":{if(!e.maxMediaTimestamp||h.time>e.maxMediaTimestamp)break;b=document.createElement("a"),b.classList.add("timestamp"),b.dataset.timestamp=""+h.time,b.href="#",b.setAttribute("onclick","setMediaTimestamp(this)"),e.maxMediaTimestamp===1/0&&b.classList.add("is-disabled");break}case"messageEntityBlockquote":{if(e.noTextFormat)break;if(e.wrappingDraft)b=Ft("quote"),h.pFlags?.collapsed&&(b.dataset.collapsed="1");else if(b=document.createElement("blockquote"),b.classList.add("quote"),h.pFlags?.collapsed){const g=zu(b);e.middleware.onClean(g)}b.classList.add("quote-like","quote-like-border","quote-like-icon"),cn(b),T=!0;break}}if(T){let g=-1;for(let y=f.i;y<u;++y){const E=a[y];if(E._==="messageEntityLinebreak"&&E.offset>=A){g=y;break}}if(g!==-1&&f.text.slice(A,a[g].offset).trim()&&(g=-1),!e.wrappingDraft&&A<f.text.length){if(!b.parentElement){const y=document.createElement("div");y.append(b),t.append(y)}if(f.text[A-1]===`
  12. `){let y=-1;for(let E=f.i;E<u;++E){const S=a[E];if(S.offset>=A)break;S._==="messageEntityLinebreak"&&(y=E)}y!==-1&&(e.ignoreNextIndex=y)}else g!==-1&&(e.ignoreNextIndex=g)}e.wrappingDraft&&g!==-1&&(e.ignoreNextIndex=g)}for(!k&&P&&(b?x?b[x]=P:b.append(P):(b||t).append(P)),b&&!b.parentNode&&(m||t).append(b);p&&p.offset<A;)++f.i,(b||t).append(gs(f.text,{...e,voodoo:!0})),p=a[f.i+1];if(f.usedLength<=A?(f.usedLength<A&&((b||t).append(f.text.slice(f.usedLength,A)),f.usedLength=A),m=t,f.lastEntity=void 0):h.length>P.length&&b?m=b:m=t,e.voodoo)return t}if(f.lastEntity&&(f.usedLength=f.lastEntity.offset+f.lastEntity.length),f.usedLength<l&&(m||t).append(f.text.slice(f.usedLength)),(!e.wrappingDraft||e.customEmojiRenderer)&&i.size){let h=e.customEmojiRenderer;h||(h=ms.create(e),t.prepend(h));const p=h.add({addCustomEmojis:i,lazyLoadQueue:e.lazyLoadQueue,onlyThumb:e.wrappingDraft});e.loadPromises?.push(p)}return r.size&&gc(r),t.normalize(),t}const En=s=>{const e=document.createElement("span");return e.classList.add(s?"input-filler2":"input-filler"),e.textContent=V,e};function mc(s){if(s?.textContent!==V||s?.getAttribute?.("contenteditable")==="false"){if(!s||s.textContent!==V||s.firstElementChild)return 2;if(s.nodeType===s.ELEMENT_NODE)return 1}return 0}function gc(s){const e=(t,f,n)=>{const i=mc(f);i===2?t[n](En()):i===1&&f.appendChild(document.createTextNode(V))};for(const t of s){const{previousSibling:f,nextSibling:n}=t;e(t,f,"before"),e(t,n,"after")}}window.wrapRichText=gs;function Gu(s,e=!1,t){return s?(t??(t=Kf(s).filter(f=>f._==="messageEntityEmoji")),gs(s,{entities:t,wrappingDraft:e})):gs("")}async function qu(s){const{peerId:e=C.myId,plainText:t,onlyFirstName:f,limitSymbols:n,managers:i=C.managers,useManagers:r,threadId:a}=s;let o="";if(e.isUser()){const c=r?await i.appUsersManager.getUser(e.toUserId()):$.getUser(e.toUserId());c&&(c.first_name&&(o+=c.first_name),c.last_name&&(!f||!o)&&(o+=" "+c.last_name)),o?o=o.trim():o=!c||c.pFlags.deleted?Q.format(f?"Deleted":"HiddenName",!0):Cl(c)[0]||""}else a&&(o=(await i.dialogsStorage.getForumTopic(e,a))?.title||""),o||(o=(r?await i.appChatsManager.getChat(e.toChatId()):$.getChat(e.toChatId()))?.title||""),f&&(o=o.split(" ")[0]);return n!==void 0&&(o=Al(o,n,n)),t?o:Gu(o)}const Ym="assets/img/logo_filled_rounded.png",$u="assets/img/logo_plain.svg";function Rn(s,e,t=!1){const f=new URL(location.href),n=Object.entries(e||{}).filter(r=>r[1]),i=Object.fromEntries(n);if(n.length){const r=new URLSearchParams;for(const a in i)r.set(a,i[a]);f.hash=`#/im?${r.toString()}`}else t||(f.hash="");return s===1?f.searchParams.delete(cs):f.searchParams.set(cs,s+""),f}const[hr,mi]=_t(()=>Zi({})),Yu=(...s)=>{const e=s[0];mi(...s),C.managers.appStateManager.setByKey(Yf("settings",e),Ne(hr[e]))},da=(s,e)=>{if(typeof s=="object"){mi(s);return}mi(s,er(e))},Km=()=>[hr,Yu],la={"primary-color":{rgb:!0,light:!0,lightFilled:!0,dark:!0,darkRgb:!0},"message-out-primary-color":{lightFilled:!0,rgb:!0},"surface-color":{rgb:!0},"danger-color":{rgb:!0,light:!0,dark:!0},"primary-text-color":{rgb:!0},"secondary-text-color":{light:!0,lightFilled:!0,rgb:!0},"message-background-color":{light:!0,lightFilled:!0,dark:!0,darkFilled:!0},"message-out-background-color":{light:!0,lightFilled:!0,dark:!0,darkFilled:!0,rgb:!0},"saved-color":{lightFilled:!0},"green-color":{}},On={day:{"primary-color":"#3390ec","message-out-primary-color":"#5CA853","message-background-color":"#ffffff","surface-color":"#ffffff","danger-color":"#df3f40","primary-text-color":"#000000","secondary-text-color":"#707579","saved-color":"#359AD4","green-color":"#70b768"},night:{"primary-color":"#8774E1","message-out-primary-color":"#8774E1","message-background-color":"#212121","surface-color":"#212121","danger-color":"#ff595a","primary-text-color":"#ffffff","secondary-text-color":"#aaaaaa","saved-color":"#8774E1","green-color":"#5CC85E"}};class Ku{constructor(){C.addEventListener("theme_change",e=>{this.setTheme(typeof e=="object"?e:void 0)}),C.addEventListener("theme_changed",()=>{this.setWorkerThemeParams()})}setWorkerThemeParams(){C.managers.apiManager.setThemeParams({_:"dataJSON",data:JSON.stringify(this.getThemeParamsForWebView())})}get themeColorElem(){return this._themeColorElem!==void 0?this._themeColorElem:this._themeColorElem=document.head.querySelector('[name="theme-color"]')||null}setThemeColor(e=this.themeColor){e||(e=this.isNight()?"#212121":"#ffffff");const t=this.themeColorElem;t&&t.setAttribute("content",e)}setThemeListener(){try{const e=window.matchMedia("(prefers-color-scheme: dark)"),t=()=>{this.systemTheme=e.matches?"night":"day",C.myId?C.dispatchEvent("theme_change"):this.setTheme()};"addEventListener"in e?e.addEventListener("change",t):"addListener"in e&&e.addListener(t),t()}catch{}}applyHighlightingColor({hsla:e,element:t=document.documentElement}={}){if(!e){e="hsla(85.5319, 36.9171%, 40.402%, .4)";const n=this.getTheme();n.settings?.highlightingColor&&(e=n.settings.highlightingColor)}const f=lc(e);t.style.setProperty("--message-highlighting-color",e),t.style.setProperty("--message-highlighting-color-rgb",f.slice(0,3).join(",")),t.style.setProperty("--message-highlighting-alpha",""+f[3]/255),!ke&&e&&(this.themeColor=Au(e))}_setTheme(e){const t=this.isNight();document.head.querySelector('[name="color-scheme"]')?.setAttribute("content",t?"dark":"light"),document.documentElement.classList.toggle("night",t),this.setThemeColor();const n=this.getTheme();this.applyTheme(n);let i=this.styleElement;i||(i=this.styleElement=document.createElement("style"),document.head.append(i));const r=document.createElement("div");this.applyTheme(C.settings.themes.find(a=>a.name==="night"),r,!0),i.textContent=`.night {${r.style.cssText}}`,this.applyHighlightingColor(),!e&&C.dispatchEventSingle("theme_changed")}setTheme(e){if(!("startViewTransition"in document)||!this.applied){const a=!this.applied,o=this.applied;this.applied=!0,this._setTheme(a),o||this.setWorkerThemeParams();return}ot.isAvailable("animations")||(e=void 0);const t=!this.isNight();e&&(document.documentElement.classList.add("no-view-transition"),document.documentElement.classList.toggle("reverse",t),document.documentElement.offsetLeft);const f=document.startViewTransition(()=>{this._setTheme()});if(!e)return;const{x:n,y:i}=e,r=Math.hypot(Math.max(n,hs.width-n),Math.max(i,hs.height-i));f.ready.then(()=>{document.documentElement.animate({clipPath:[`circle(0 at ${n}px ${i}px)`,`circle(${r}px at ${n}px ${i}px)`]},{duration:500,easing:"ease-in-out",pseudoElement:`::view-transition-${t?"old":"new"}(root)`,direction:t?"reverse":"normal"})}),f.finished.finally(()=>{document.documentElement.classList.remove("no-view-transition","reverse")})}async switchTheme(e,t){await C.managers.appStateManager.setByKey(Yf("settings","theme"),e),C.dispatchEvent("theme_change",t)}isNight(){return this.getTheme().name==="night"}getTheme(e=C.settings.theme==="system"?this.systemTheme:C.settings.theme){return C.settings.themes.find(t=>t.name===e)}bindColorApplier(e){const t=new Set;return{applyAppColor:f=>(t.add(f.name),this.applyAppColor({...f,...e})),finalize:()=>{const f=e.isNight;for(const n in la)t.has(n)||this.applyAppColor({name:n,hex:On[f?"night":"day"][n],...e})}}}applyAppColor({name:e,hex:t,element:f,lightenAlpha:n=.08,darkenAlpha:i=n,mixColor:r,isNight:a=this.isNight(),saveToCache:o}){const c=la[e],d=Ze(t),l=li(...d);r??(r=Ze(On[a?"night":"day"]["surface-color"]));const u=In(d,r,n),m={...l,l:l.l-i*100},h=[[e,t],c.rgb&&[e+"-rgb",d.join(",")],c.light&&["light-"+e,`rgba(${d[0]}, ${d[1]}, ${d[2]}, ${n})`],c.lightFilled&&["light-filled-"+e,Ls(u)],c.dark&&["dark-"+e,`hsl(${m.h}, ${m.s}%, ${m.l}%)`]];o??(o=f===document.documentElement),h.filter(Boolean).forEach(([p,v])=>{f.style.setProperty("--"+p,v),o&&wt.setPropertyCache(p,v,a)})}async applyNewTheme(e){const t=this.isNightTheme(e),f=this.getTheme(),n=C.settings.themes,i=e.settings.find(a=>a.base_theme._===(t?"baseThemeNight":"baseThemeClassic")),r={...e,name:f.name,settings:{...i,highlightingColor:""}};await this.AppBackgroundTab.setBackgroundDocument(i.wallpaper,r.settings),n[n.indexOf(f)]=r,await C.managers.appStateManager.setByKey(Yf("settings","themes"),C.settings.themes),C.dispatchEvent("theme_change")}isNightTheme(e){return e.name==="night"||this.isNight()}getThemeSettings(e,t){return t??(t=this.isNightTheme(e)),Array.isArray(e.settings)?e.settings.find(n=>n.base_theme._===(t?"baseThemeNight":"baseThemeClassic")):e.settings}applyTheme(e,t=document.documentElement,f){const n=this.isNightTheme(e),i=this.getThemeSettings(e,n),r=On[n?"night":"day"];let a=yt(...Ze(r["primary-color"])),o=yt(...vf(i.accent_color));const c=Fu(a,o,Ze(r["primary-color"]),!n),d=Ls(c),{applyAppColor:l,finalize:u}=this.bindColorApplier({element:t,isNight:n,saveToCache:f});if(l({name:"primary-color",hex:d,darkenAlpha:.04}),l({name:"saved-color",hex:d,lightenAlpha:.64,mixColor:[255,255,255]}),!i.message_colors?.length)return;const m=n?1:.12,h=Ze(r["message-out-primary-color"]);a=yt(...h);const p=In(h,Ze(r["surface-color"]),m);let A=vf(i.message_colors[0]);i.message_colors.length>1&&(i.message_colors.slice(1).forEach(P=>{A=Cu(A,vf(P))}),A=ku(a,p,A)),o=yt(...A);const w=i.outbox_accent_color!==void 0&&yt(...vf(i.outbox_accent_color));let F=In(A,Ze(r["surface-color"]),m);if(!n){const P=li(...F);P.s=Math.min(P.s+(n?8:63),100),F=dc(P.h,P.s,P.l,P.a).slice(0,3)}l({name:"message-out-background-color",hex:Ls(F),lightenAlpha:m}),l({name:"message-out-primary-color",hex:n?"#ffffff":Ls(w?lr(...w):A),mixColor:F}),u()}getThemeParamsForWebView(){const e={bg_color:"surface-color",button_color:"primary-color",button_text_color:"#ffffff",hint_color:"secondary-text-color",link_color:"link-color",secondary_bg_color:"background-color-true",text_color:"primary-text-color",header_bg_color:"surface-color",accent_text_color:"primary-color",section_bg_color:"surface-color",section_header_text_color:"primary-color",subtitle_text_color:"secondary-text-color",destructive_text_color:"danger-color"},t={};for(const f in e){const n=e[f];t[f]=n[0]==="#"?n:wt.getProperty(n)}return t}}const Js=new Ku;L&&(L.themeController=Js);const Qs=[["#CC5049"],["#D67722"],["#955CDB"],["#40A920"],["#309EBA"],["#368AD1"],["#C7508B"]],Nn=["red","orange","violet","green","cyan","blue","pink"],Ju=Qs;function pc(s){return Math.abs(+s)%7}function Qu(s){let e=bc(s);if(e===-1)return;let t=Nn[e];if(!t){const f=Qs[e];if(!f)return Nn[pc(s.id)];const i=hc(f[0]).h;i>=345||i<29?e=0:i<67?e=1:i<140?e=3:i<199?e=4:i<234?e=5:i<301?e=2:e=6,t=Nn[e]}return t}function bc(s){return s?s.color?.color??pc(s.id):-1}function Xu(s){const e=bc(s);return Qs[e]??[]}function ua(s,e,t){for(const f of e){const i=(t?f.dark_colors:f.colors)?.colors;if(!i?.length)continue;const r=i.map(a=>ur(a));s[f.color_id]=r}return s}function ha(s,e){const t=s.length;return e||(e=5),t!==3&&(s=s.slice().reverse()),`repeating-linear-gradient(-45deg, ${s.map((n,i,r)=>{const a=i*e+"px",o=(i+1)*e+"px";return[`${n} ${a}`,`${n} ${o}`].join(", ")}).join(", ")})`}function Jm(s,e){let t=ua(Ju.slice(),s);Js.isNight()&&(t=ua(t,s,!0)),Qs.splice(0,Qs.length,...t),t.forEach((i,r)=>{const a=`--peer-${r}`,o=`${a}-border-background`,c=`${a}-color-rgb`;if(document.documentElement.style.setProperty(c,Ze(i[0]).join(",")),i.length>1){const d=ha(i);document.documentElement.style.setProperty(o,d)}else document.documentElement.style.removeProperty(o)});const f=Xu(e);[["--peer-border-background","--primary-color",f.length],["--message-out-peer-border-background","--message-out-primary-color",f.length],["--message-out-peer-1-border-background","--message-out-primary-color",1],["--message-out-peer-2-border-background","--message-out-primary-color",2],["--message-out-peer-3-border-background","--message-out-primary-color",3],["--message-empty-peer-1-border-background","--message-empty-primary-color",1],["--message-empty-peer-2-border-background","--message-empty-primary-color",2],["--message-empty-peer-3-border-background","--message-empty-primary-color",3]].forEach(([i,r,a])=>{let o;if(a>1){const c=[`rgba(var(${r}-rgb), .4)`,`rgba(var(${r}-rgb), .2)`,`var(${r})`];a===2&&c.shift(),o=ha(c)}else o=`var(${r})`;document.documentElement.style.setProperty(i,o)})}function ma(s){return{_:"messageEntityEmoji",offset:0,length:s.length,unicode:To(s).join("-").replace(/-?fe0f/g,"")}}const ga=new RegExp(`(^${ja})`);function Zu(s,e=!1){const t=(s||"").trim().split(" ");if(!t[0])return{text:"",entities:[]};const f=[],n=t[0].match(ga),i=n?.[0]||t[0][0];n&&f.push(ma(i));const r=t.length;if(e||r===1)return{text:i,entities:f};const a=t[r-1].match(ga),o=a?.[0]||t[r-1][0];return a&&f.push({...ma(o),offset:i.length}),{text:i+o,entities:f}}function yc(s,e,t,f,n,i){const r=s.canvas.dpr;r&&(e*=r,t*=r,f*=r),s.beginPath(),s.arc(e,t,f,0,2*Math.PI,!1),s.closePath(),n&&s.fill()}function Qm(s,e,t,f,n,i){return yc(s,e+f,t+f,f,n)}let ie,Pe,Bn;async function eh(s,e,t){const f=await s.appPeersManager.getPeerPhoto(e);if(f)return await s.appAvatarsManager.loadAvatar(e,f,"photo_small");if(ie)Pe.clearRect(0,0,ie.width,ie.height);else{ie=document.createElement("canvas"),Pe=ie.getContext("2d");const c=54,d=1;ie.dpr=d,ie.width=ie.height=c*d,Bn={}}const n=await s.appPeersManager.getPeer(e),i=Qu(n);let r=Bn[i];if(!r){r=Bn[i]=Pe.createLinearGradient(ie.width/2,0,ie.width/2,ie.height);const c=wt.getProperty(`peer-avatar-${i}-top`),d=wt.getProperty(`peer-avatar-${i}-bottom`);r.addColorStop(0,c),r.addColorStop(1,d)}Pe.fillStyle=r,yc(Pe,ie.width/2,ie.height/2,ie.width/2),Pe.fill();const a=20*ie.dpr,o=Zu(t);return Pe.font=`700 ${a}px ${Ia}`,Pe.textBaseline="middle",Pe.textAlign="center",Pe.fillStyle="white",Pe.fillText(o.text,ie.width/2,ie.height*(window.devicePixelRatio>1,.5625)),ie.toDataURL()}const th=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],sh=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...th]),fh=new Set(["innerHTML","textContent","innerText","children"]),nh=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),ih=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});function rh(s,e){const t=ih[s];return typeof t=="object"?t[e]?t.$:void 0:t}const ah=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),oh=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),ch={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function dh(s,e,t){let f=t.length,n=e.length,i=f,r=0,a=0,o=e[n-1].nextSibling,c=null;for(;r<n||a<i;){if(e[r]===t[a]){r++,a++;continue}for(;e[n-1]===t[i-1];)n--,i--;if(n===r){const d=i<f?a?t[a-1].nextSibling:t[i-a]:o;for(;a<i;)s.insertBefore(t[a++],d)}else if(i===a)for(;r<n;)(!c||!c.has(e[r]))&&e[r].remove(),r++;else if(e[r]===t[i-1]&&t[a]===e[n-1]){const d=e[--n].nextSibling;s.insertBefore(t[a++],e[r++].nextSibling),s.insertBefore(t[--i],d),e[n]=t[i]}else{if(!c){c=new Map;let l=a;for(;l<i;)c.set(t[l],l++)}const d=c.get(e[r]);if(d!=null)if(a<d&&d<i){let l=r,u=1,m;for(;++l<n&&l<i&&!((m=c.get(e[l]))==null||m!==d+u);)u++;if(u>d-a){const h=e[r];for(;a<d;)s.insertBefore(t[a++],h)}else s.replaceChild(t[a++],e[r++])}else r++;else e[r++].remove()}}}const pa="_$DX_DELEGATE";function Ec(s,e,t,f={}){let n;return _t(i=>{n=i,e===document?s():pi(e,s(),e.firstChild?null:void 0,t)},f.owner),()=>{n(),e.textContent=""}}function Xm(s,e,t){let f;const n=()=>{const r=document.createElement("template");return r.innerHTML=s,t?r.content.firstChild.firstChild:r.content.firstChild},i=e?()=>ue(()=>document.importNode(f||(f=n()),!0)):()=>(f||(f=n())).cloneNode(!0);return i.cloneNode=i,i}function lh(s,e=window.document){const t=e[pa]||(e[pa]=new Set);for(let f=0,n=s.length;f<n;f++){const i=s[f];t.has(i)||(t.add(i),e.addEventListener(i,vh))}}function gi(s,e,t){t==null?s.removeAttribute(e):s.setAttribute(e,t)}function uh(s,e,t,f){f==null?s.removeAttributeNS(e,t):s.setAttributeNS(e,t,f)}function hh(s,e){e==null?s.removeAttribute("class"):s.className=e}function mh(s,e,t,f){if(f)Array.isArray(t)?(s[`$$${e}`]=t[0],s[`$$${e}Data`]=t[1]):s[`$$${e}`]=t;else if(Array.isArray(t)){const n=t[0];s.addEventListener(e,t[0]=i=>n.call(s,t[1],i))}else s.addEventListener(e,t)}function gh(s,e,t={}){const f=Object.keys(e||{}),n=Object.keys(t);let i,r;for(i=0,r=n.length;i<r;i++){const a=n[i];!a||a==="undefined"||e[a]||(ba(s,a,!1),delete t[a])}for(i=0,r=f.length;i<r;i++){const a=f[i],o=!!e[a];!a||a==="undefined"||t[a]===o||!o||(ba(s,a,!0),t[a]=o)}return t}function ph(s,e,t){if(!e)return t?gi(s,"style"):e;const f=s.style;if(typeof e=="string")return f.cssText=e;typeof t=="string"&&(f.cssText=t=void 0),t||(t={}),e||(e={});let n,i;for(i in t)e[i]==null&&f.removeProperty(i),delete t[i];for(i in e)n=e[i],n!==t[i]&&(f.setProperty(i,n),t[i]=n);return t}function bh(s,e={},t,f){const n={};return f||Tt(()=>n.children=Xs(s,e.children,n.children)),Tt(()=>e.ref&&e.ref(s)),Tt(()=>yh(s,e,t,!0,n,!0)),n}function Zm(s,e,t){return ue(()=>s(e,t))}function pi(s,e,t,f){if(t!==void 0&&!f&&(f=[]),typeof e!="function")return Xs(s,e,f,t);Tt(n=>Xs(s,e(),n,t),f)}function yh(s,e,t,f,n={},i=!1){e||(e={});for(const r in n)if(!(r in e)){if(r==="children")continue;n[r]=ya(s,r,null,n[r],t,i)}for(const r in e){if(r==="children")continue;const a=e[r];n[r]=ya(s,r,a,n[r],t,i)}}function Eh(s){return s.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function ba(s,e,t){const f=e.trim().split(/\s+/);for(let n=0,i=f.length;n<i;n++)s.classList.toggle(f[n],t)}function ya(s,e,t,f,n,i){let r,a,o,c,d;if(e==="style")return ph(s,t,f);if(e==="classList")return gh(s,t,f);if(t===f)return f;if(e==="ref")i||t(s);else if(e.slice(0,3)==="on:"){const l=e.slice(3);f&&s.removeEventListener(l,f),t&&s.addEventListener(l,t)}else if(e.slice(0,10)==="oncapture:"){const l=e.slice(10);f&&s.removeEventListener(l,f,!0),t&&s.addEventListener(l,t,!0)}else if(e.slice(0,2)==="on"){const l=e.slice(2).toLowerCase(),u=ah.has(l);if(!u&&f){const m=Array.isArray(f)?f[0]:f;s.removeEventListener(l,m)}(u||t)&&(mh(s,l,t,u),u&&lh([l]))}else if(e.slice(0,5)==="attr:")gi(s,e.slice(5),t);else if((d=e.slice(0,5)==="prop:")||(o=fh.has(e))||!n&&((c=rh(e,s.tagName))||(a=sh.has(e)))||(r=s.nodeName.includes("-")))d&&(e=e.slice(5),a=!0),e==="class"||e==="className"?hh(s,t):r&&!a&&!o?s[Eh(e)]=t:s[c||e]=t;else{const l=n&&e.indexOf(":")>-1&&ch[e.split(":")[0]];l?uh(s,l,e,t):gi(s,nh[e]||e,t)}return t}function vh(s){const e=`$$${s.type}`;let t=s.composedPath&&s.composedPath()[0]||s.target;for(s.target!==t&&Object.defineProperty(s,"target",{configurable:!0,value:t}),Object.defineProperty(s,"currentTarget",{configurable:!0,get(){return t||document}});t;){const f=t[e];if(f&&!t.disabled){const n=t[`${e}Data`];if(n!==void 0?f.call(t,n,s):f.call(t,s),s.cancelBubble)return}t=t._$host||t.parentNode||t.host}}function Xs(s,e,t,f,n){for(;typeof t=="function";)t=t();if(e===t)return t;const i=typeof e,r=f!==void 0;if(s=r&&t[0]&&t[0].parentNode||s,i==="string"||i==="number")if(i==="number"&&(e=e.toString()),r){let a=t[0];a&&a.nodeType===3?a.data=e:a=document.createTextNode(e),t=Xt(s,t,f,a)}else t!==""&&typeof t=="string"?t=s.firstChild.data=e:t=s.textContent=e;else if(e==null||i==="boolean")t=Xt(s,t,f);else{if(i==="function")return Tt(()=>{let a=e();for(;typeof a=="function";)a=a();t=Xs(s,a,t,f)}),()=>t;if(Array.isArray(e)){const a=[],o=t&&Array.isArray(t);if(bi(a,e,t,n))return Tt(()=>t=Xs(s,a,t,f,!0)),()=>t;if(a.length===0){if(t=Xt(s,t,f),r)return t}else o?t.length===0?Ea(s,a,f):dh(s,t,a):(t&&Xt(s),Ea(s,a));t=a}else if(e.nodeType){if(Array.isArray(t)){if(r)return t=Xt(s,t,f,e);Xt(s,t,null,e)}else t==null||t===""||!s.firstChild?s.appendChild(e):s.replaceChild(e,s.firstChild);t=e}}return t}function bi(s,e,t,f){let n=!1;for(let i=0,r=e.length;i<r;i++){let a=e[i],o=t&&t[i],c;if(!(a==null||a===!0||a===!1))if((c=typeof a)=="object"&&a.nodeType)s.push(a);else if(Array.isArray(a))n=bi(s,a,o)||n;else if(c==="function")if(f){for(;typeof a=="function";)a=a();n=bi(s,Array.isArray(a)?a:[a],Array.isArray(o)?o:[o])||n}else s.push(a),n=!0;else{const d=String(a);o&&o.nodeType===3&&o.data===d?s.push(o):s.push(document.createTextNode(d))}}return n}function Ea(s,e,t=null){for(let f=0,n=e.length;f<n;f++)s.insertBefore(e[f],t)}function Xt(s,e,t,f){if(t===void 0)return s.textContent="";const n=f||document.createTextNode("");if(e.length){let i=!1;for(let r=e.length-1;r>=0;r--){const a=e[r];if(n!==a){const o=a.parentNode===s;!i&&!r?o?s.replaceChild(n,a):s.insertBefore(n,t):o&&a.remove()}else i=!0}}else s.insertBefore(n,t);return[n]}const Dh="http://www.w3.org/2000/svg";function vc(s,e=!1){return e?document.createElementNS(Dh,s):document.createElement(s)}function e3(s){const{useShadow:e}=s,t=document.createTextNode(""),f=()=>s.mount||document.body,n=Ga();let i,r=!!L1.context;return Ms(()=>{i||(i=qa(n,()=>Oe(()=>s.children)));const a=f();if(a instanceof HTMLHeadElement){const[o,c]=Ge(!1),d=()=>c(!0);_t(l=>pi(a,()=>o()?l():i(),null)),jf(d)}else{const o=vc(s.isSVG?"g":"div",s.isSVG),c=e&&o.attachShadow?o.attachShadow({mode:"open"}):o;Object.defineProperty(o,"_$host",{get(){return t.parentNode},configurable:!0}),pi(c,i),a.appendChild(o),s.ref&&s.ref(o),jf(()=>a.removeChild(o))}},void 0,{render:!r}),t}function t3(s){const[e,t]=Za(s,["component"]),f=Oe(()=>e.component);return Oe(()=>{const n=f();switch(typeof n){case"function":return ue(()=>n(t));case"string":const i=oh.has(n),r=vc(n,i);return bh(r,t,i),r}})}function wh(s){return Array.from(s.childNodes).map(e=>e.nodeType===e.TEXT_NODE?Zn(e.textContent):e.outerHTML).join("")}function Sh(s,e){return s.closest(`[${e}]`)}function Ah(s,e){return s.closest(e)}function Xf(s,e){if(!s)return null;if(s.parentElement===e)return s;for(;s.parentElement;)if(s=s.parentElement,s.parentElement===e)return s;return null}function Dc(s,e){const t=document.getSelection(),f=t.focusNode,n=t.focusOffset;return!Xf(f,s)&&f!==s?{selection:t}:{...Ch(s,f,n),selection:t}}function Ch(s,e,t){if(e===s){const f=s.childNodes,n=f.length;n&&t>=n?(e=f[n-1],t=(e.textContent||e.alt||"").length):(e=f[t],t=0)}return{node:e,offset:t}}const kh=new Set(["messageEntityBold","messageEntityItalic","messageEntityCode","messageEntityPre","messageEntityUnderline","messageEntityStrike","messageEntityBlockquote","messageEntitySpoiler"]);function Fh(s){for(let e=0;e<s.length;++e){const t=s[e];let f=-1;do if(f=s.findIndex((n,i)=>kh.has(n._)&&i!==e&&n._===t._&&n.offset-t.length===t.offset),f!==-1){const n=s[f];t.length+=n.length,s.splice(f,1)}while(f!==-1)}}function wc(s){s.sort((e,t)=>e.offset-t.offset||t.length-e.length)}const yi={bold:{match:'[style*="bold"], [style*="font-weight: 700"], [style*="font-weight: 600"], [style*="font-weight:700"], [style*="font-weight:600"], b, strong',entityName:"messageEntityBold"},underline:{match:'[style*="underline"], u, ins',entityName:"messageEntityUnderline"},italic:{match:'[style*="italic"], i, em',entityName:"messageEntityItalic"},monospace:{match:'[style*="monospace"], [face*="monospace"], pre',entityName:"messageEntityCode"},strikethrough:{match:'[style*="line-through"], [style*="strikethrough"], strike, del, s',entityName:"messageEntityStrike"},link:{match:"A:not(.follow)",entityName:"messageEntityTextUrl"},mentionName:{match:"A.follow",entityName:"messageEntityMentionName"},spoiler:{match:'[style*="spoiler"]',entityName:"messageEntitySpoiler"},quote:{match:'[style*="quote"], .quote',entityName:"messageEntityBlockquote"}},Ph='[style*="table-cell"], th, td',_h=new Set(["DIV","P","BR","LI","SECTION","H6","H5","H4","H3","H2","H1","TR","OL","UL","BLOCKQUOTE"]),Th=new RegExp(V,"g"),Pt="";function va(s,e,t,f){const n=s.parentElement;for(const i in yi){const r=yi[i],a=n.closest(r.match+', [contenteditable="true"]');if(a?.getAttribute("contenteditable")!==null)continue;let o;r.entityName==="messageEntityCode"&&(o=n.closest("[data-language]"))?t.push({_:"messageEntityPre",language:o.dataset.language||"",offset:f.offset,length:e.length}):r.entityName==="messageEntityTextUrl"?t.push({_:r.entityName,url:a.href,offset:f.offset,length:e.length}):r.entityName==="messageEntityMentionName"?t.push({_:r.entityName,offset:f.offset,length:e.length,user_id:a.dataset.follow.toUserId()}):r.entityName==="messageEntityBlockquote"?t.push({_:r.entityName,pFlags:{collapsed:!!a.dataset.collapsed||void 0},offset:f.offset,length:e.length}):t.push({_:r.entityName,offset:f.offset,length:e.length})}}function Da(s){const{length:e}=s;return!e||s[e-1]===Pt&&e===Pt.length}function Ei(s,e,t,f,n,i,r={offset:0}){if(s.nodeType===s.TEXT_NODE){let p=s.nodeValue;p=p.replace(Th,""),p?f===s?t.push(p.substr(0,n)+Pt+p.substr(n)):t.push(p):f===s&&t.push(Pt),i&&p.length&&s.parentNode&&va(s,p,i,r),r.offset+=p.length;return}if(s.nodeType!==s.ELEMENT_NODE)return;const a=()=>{e.push(t.join("")),t.length=0,++r.offset},o=f===s,c=s.matches(yi.quote.match),d=_h.has(s.tagName)||c;if(d&&(t.length&&t[t.length-1].slice(-1)!==`
  13. `||s.tagName==="BR"))a();else{const p=s.dataset.stickerEmoji||s.alt,v=s.dataset.stickerEmoji;p&&i&&va(s,p,i,r),v&&i&&i.push({_:"messageEntityCustomEmoji",document_id:s.dataset.docId,offset:r.offset,length:p.length}),p&&(t.push(p),r.offset+=p.length)}o&&!n&&t.push(Pt);const l=s.matches(Ph),u=i?.length;let m=!0;c&&(r.isInQuote=!0);let h=s.firstChild;for(;h;)Ei(h,e,t,f,n,i,r),h=h.nextSibling,Da(t)||(m=!1);if(c){const p=t[t.length-1];p?.endsWith(`
  14. `)&&(t[t.length-1]=p.slice(0,-1),r.offset-=1),r.isInQuote=!1}if(m&&s.textContent?.replace(/[\r\n]/g,"")&&(m=!1),o&&n&&t.push(Pt),l&&s.nextSibling&&!Da(t)&&(t.push(" "),++r.offset,u!==void 0))for(let p=u,v=i.length;p<v;++p)++i[p].length;d&&!m&&a(),!m&&s.tagName==="P"&&s.nextSibling&&(e.push(""),++r.offset)}function Sc(s){const e=window.getSelection();let t,f;if(e?.rangeCount){const n=e.getRangeAt(0),i=n.startOffset;if(n.startContainer&&n.startContainer==n.endContainer&&i==n.endOffset){const r=i-1,a=s.childNodes;if(n.startContainer===s&&a[r]){t=a[r],f=0;for(let o=0;o<n.endOffset;++o){const c=a[o],d=c.nodeValue||c.alt;d&&(f+=d.length)}}else t=n.startContainer,f=i}}return{node:t,offset:f}}function Zf(s,e=!0,t=!0){const f=[],n=[],{node:i,offset:r}=!(s instanceof DocumentFragment)&&t&&Sc(s),a=e?[]:void 0,o={offset:0};if(s instanceof DocumentFragment){let l=s.firstChild;for(;l;)Ei(l,f,n,i,r,a,o),l=l.nextSibling}else Ei(s,f,n,i,r,a,o);n.length&&f.push(n.join(""));let c=f.join(`
  15. `);const d=c.indexOf(Pt);return d!==-1&&(c=c.substr(0,d)+c.substr(d+1)),c=c.replace(/\u00A0/g," "),a?.length&&(Fh(a),wc(a)),{value:c,entities:a,caretPos:d}}L.getCaretPos=Sc;L.getRichValueWithCaret=Zf;function Lh(s,e){let t;if(s.isContentEditable||s.tagName!=="INPUT"){if(s.querySelector(".emoji, .custom-emoji, .custom-emoji-placeholder"))return!1;t=s.textContent}else t=s.value;return e?!t:!t.trim()}class Ac{constructor(){this.listeners=new Set}add(e){return(t,f,n)=>{const i={element:e,event:t,callback:f,options:n};return this.addManual(i),i}}addManual(e){e.element.addEventListener(e.event,e.callback,e.options),e.options?.once&&(e.onceCallback=()=>{this.remove(e),e.onceFired=!0},e.element.addEventListener(e.event,e.onceCallback,e.options)),this.listeners.add(e)}remove(e){e.onceFired||(e.element.removeEventListener(e.event,e.callback,e.options),e.onceCallback&&e.element.removeEventListener(e.event,e.onceCallback,e.options)),this.listeners.delete(e)}removeManual(e,t,f,n){let i;for(const r of this.listeners)if(r.element===e&&r.event===t&&r.callback===f&&r.options===n){i=r;break}i&&this.remove(i)}removeAll(){this.listeners.forEach(e=>{this.remove(e)})}}function ns(s,e){if(!s?.parentNode)return-1;if(e)return Array.from(s.parentNode.childNodes).indexOf(s);let t=0;for(;(s=s.previousElementSibling)!==null;)++t;return t}function vi(s,e,t,f){let n;if(s===t)n=e-f;else if(s.parentElement===t.parentElement)n=ns(s,!0)-ns(t,!0);else{const i=[];let r=s.parentElement;do i.push(r);while(r=r.parentElement);r=t.parentElement;do if(i.includes(r))break;while(r=r.parentElement);const a=r;s=Xf(s,a),t=Xf(t,a),n=ns(s,!0)-ns(t,!0)}return ys(n,-1,1)}window.compareNodes=vi;function Cc(s,e=!1,t=!0){if(!(ke&&(!e||document.activeElement.tagName!=="INPUT"&&!document.activeElement.isContentEditable)))if(t&&s.focus(),s instanceof HTMLInputElement){const f=s.value.length;s.selectionStart=f,s.selectionEnd=f}else{const f=document.createRange();f.selectNodeContents(s),f.collapse(!1);const n=window.getSelection();n.removeAllRanges(),n.addRange(f)}}window.placeCaretAtEnd=Cc;const wa=new RegExp(`[^${V}]`);class mr{constructor(){this.saveSelectionOnChange=e=>{const t=document.activeElement;this.saveRangeForElement(t)},this.onFocusOut=e=>{this.lastNode=this.lastOffset=void 0},this.onSelectionChange=e=>{const{input:t}=this;if(!t){this.setSelectionClassName(document.getSelection());return}let f=this.getCaretPosN();do{const{node:n,offset:i,selection:r,move:a}=f;if(n?.nodeValue!==V||!this.lastNode)break;const c=vi(n,i,this.lastNode,this.lastOffset)<0;c!==void 0&&(r.isCollapsed?this.superMove(t,f,c,!0):r.modify(r.isCollapsed?"move":"extend",c?"backward":"forward","character")),this.log("selectionchange",n,i,this.lastNode,this.lastOffset,n===this.lastNode,ns(this.getFiller(n)),ns(this.getFiller(this.lastNode)),c,r,document.getSelection(),document.getSelection().getRangeAt(0),n?.parentNode,this.lastNode?.parentNode),f=this.getCaretPosN(),this.lastNode=n,this.lastOffset=i;break}while(!0);this.lastNode=this.lastOffset=void 0,this.setSelectionClassName(f.selection,t)},this.onBeforeInput=e=>{const{input:t,log:f}=this;if(!t)return;const n=this.addInputCallback.bind(this,t),i=this.getCaretPosN();let{node:r,offset:a,selection:o,move:c}=i;if(f("beforeinput",e,r,a,o,i),this.lastNode=this.lastOffset=void 0,e.inputType.startsWith("delete")){if(n(()=>{this.processEmptiedFillers(t),this.removeExtraBOMs(t),this.fixInsertedLineBreaks(t)}),r?.nodeValue===V&&o.isCollapsed&&e.inputType.includes("deleteContent")){const d=e.inputType.includes("Backward"),l=a===V.length&&d||!a&&!d;this.superMove(t,i,d,l)}}else if(e.inputType.startsWith("insert")){if(r?.classList?.contains("input-something")){r=r.previousSibling.firstChild;const d=o.getRangeAt(0);d.setStart(r,0),d.setEnd(r,0),d.collapse(!0);const l=this.getCaretPosN();r=l.node,o=l.selection,a=l.offset}if(r&&r.textContent===V&&a===V.length){o.modify("move","backward","character");const d=this.getCaretPosN();r=d.node,o=d.selection,a=d.offset}e.inputType;{r&&r.nodeType===r.ELEMENT_NODE&&(r=r.firstChild,f.warn("fixing focus on span"));const d=r?.nodeValue===V;if(f("inserting line break",d,r,`"${r?.nodeValue}"`,r?.parentElement?Array.from(r.parentElement.childNodes).slice():[]),d){const l=r.parentElement;l.classList.replace("input-filler","input-filler-text"),l.childNodes.length,n(()=>{l.childNodes.length>1?(f("inserting line break, remove"),r=Array.from(l.childNodes).find(m=>m.nodeValue===V),l.t=r):r.nodeValue!==V&&(f("inserting line break, deleteData"),r.deleteData(r.nodeValue.indexOf(V),V.length)),this.fixInsertedLineBreaks(t)})}else e.inputType==="insertLineBreak"&&n(()=>{this.fixInsertedLineBreaks(t)})}return}else e.inputType==="historyUndo"?n(()=>{this.processFilledFillers(t),this.processEmptiedFillers(t),this.removeExtraBOMs(t),this.removeEmptyTextNodes(t),this.fixBuggedCaret()}):e.inputType==="historyRedo"&&n(()=>{this.processFilledFillers(t),this.processEmptiedFillers(t),t.querySelectorAll(".input-something:not([contenteditable])").forEach(d=>{d.contentEditable="false"}),this.removeExtraBOMs(t),this.fixBuggedCaret()})},this.onKeyDown=e=>{const t=e.key;if(t==="ArrowDown"||t==="ArrowUp")this.lastNode=this.lastOffset=void 0;else{const{node:f,offset:n}=this.getCaretPosN();this.lastNode=f,this.lastOffset=n,this.lastNode===this.input&&(this.lastNode=this.lastOffset=void 0)}this.log("keydown",this.lastNode,this.lastNode?.parentNode,this.lastOffset,this.getCaretPosN(),e)},this.log=X("RICH-INPUT"),this.listenerSetter=new Ac,this.savedRanges=new WeakMap,this.listenerSetter.add(document)("selectionchange",this.saveSelectionOnChange)}get input(){const e=document.getSelection(),{anchorNode:t}=e;if(t)return(t.closest?t:t.parentElement).closest('[contenteditable="true"]')}saveRangeForElement(e){e&&(e.isContentEditable||e.tagName==="INPUT")&&document.getSelection().rangeCount&&this.savedRanges.set(e,document.getSelection().getRangeAt(0))}findPreviousSmthIndex(e,t,f){const n=Array.from(f??e.querySelectorAll(".input-something")),i=n.findIndex(r=>vi(r,0,t,0)>=0);return i===-1?n.length-1:Math.max(0,i-1)}superMove(e,t,f,n){const{node:i,offset:r,move:a}=t,o=e.querySelectorAll(".input-something"),c=this.findPreviousSmthIndex(e,i,o),d=document.createRange();d[f?"setEnd":"setStart"](i,r),n&&a(f);const l=this.getCaretPosN();if(l.node?.nodeValue===V&&(!n||i===this.lastNode)){const u=this.findPreviousSmthIndex(e,l.node,o);let m=!n;do{const h=this.getCaretPosN(),p=this.findPreviousSmthIndex(e,h.node,o);d[f?"setStart":"setEnd"](h.node,h.offset);const v=d.toString(),A=!wa.test(v);if(this.log("test cursor",v,A,u,p),A&&h.node?.nodeValue===V&&p===u&&(p||h.offset)&&(p<o.length-1||h.offset<V.length))a(f),m=!0;else if(m){(!this.getFiller(i).classList.contains("input-filler-text")&&u!==c||h.offset===V.length)&&a(!f);break}else break}while(!0)}}restoreSavedRange(e){const t=this.getSavedRange(e);if(!t)return!1;const f=window.getSelection();return f.removeAllRanges(),f.addRange(t),!0}getSavedRange(e){return this.savedRanges.get(e)}makeFocused(e){document.activeElement!==e&&!this.restoreSavedRange(e)&&Cc(e,!1,!1)}fixInsertedLineBreaks(e){e.querySelectorAll("br").forEach(t=>{t.classList.add("br-not-br")})}fixBuggedCaret(){const e=document.getSelection(),t=e.getRangeAt(0);e.removeAllRanges(),e.addRange(t)}addInputCallback(e,t,f=!0){const n=()=>{this.log("input modify callback"),t()};f&&vt?this.inputCaptureCallbacks.push(n):this.listenerSetter.add(e)("input",n,{once:!0,capture:f})}removeExtraBOMs(e){const t=f=>f?.classList?.contains("input-something");e.querySelectorAll(".input-filler").forEach(f=>{const{previousSibling:n,nextSibling:i}=f;let r=!1;!i?.classList?.contains("input-filler")&&mc(i)&&(r=t(n)||t(i)),r||(this.log.warn("removing empty bom node",f),f.remove())})}getFiller(e){return e&&e.nodeType===e.TEXT_NODE&&e.parentElement!==this.input?e.parentElement:e}getCaretPosN(){const e=Dc(this.input);return{...e,move:this.move.bind(this,e.selection)}}removeEmptyTextNodes(e){const{log:t}=this,f=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:i=>i.parentElement===e&&!i.nodeValue?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT});let n;for(;n=f.nextNode();)t.warn("removing empty text node",n),n.remove()}removePossibleBOMSiblings(e,t){[e,t].forEach(f=>{f?.classList?.contains("input-filler")&&f.remove()})}removePossibleBOMSiblingsByNode(e){const{previousSibling:t,nextSibling:f}=e;this.removePossibleBOMSiblings(t,f)}processEmptiedFillers(e){e.querySelectorAll(".input-filler-text").forEach(t=>{this.removeExtraBOMs(t);let f=!0;if(t.textContent)!wa.test(t.textContent)&&!t.querySelector(".input-something")?t.classList.replace("input-filler-text","input-filler"):f=!1;else{t.classList.replace("input-filler-text","input-filler");const n=Array.from(t.childNodes).find(i=>i.nodeType===i.TEXT_NODE);n?n.insertData(0,V):t.t?.nodeValue?t.append(t.t):t.append(document.createTextNode(V))}f&&this.removePossibleBOMSiblingsByNode(t)})}processFilledFillers(e){e.querySelectorAll(".input-filler").forEach(t=>{if(t.textContent!==V){t.classList.replace("input-filler","input-filler-text");const f=t.t,n=Array.from(t.childNodes).find(i=>i.nodeType===i.TEXT_NODE&&i.nodeValue.includes(V));if(n&&!f?.nodeValue){const i=n.nodeValue.indexOf(V);i!==-1&&n.deleteData(i,V.length)}}})}setSelectionClassName(e,t){if(e.rangeCount){const f=e.getRangeAt(0);t?Array.from(t.querySelectorAll(".input-selectable")).forEach(n=>{n.classList.toggle("selection",!f.collapsed&&f.intersectsNode(n))}):Array.from(document.querySelectorAll(".input-selectable.selection")).forEach(n=>n.classList.remove("selection"))}}move(e,t){const{focusNode:f,focusOffset:n}=e;e.modify("extend",t?"backward":"forward","character"),t?e.collapseToStart():e.collapseToEnd();const{focusNode:i,focusOffset:r}=e;this.log("moving cursor",t,f,f.nodeType===f.ELEMENT_NODE?f:f.parentElement,n,i,i.nodeType===i.ELEMENT_NODE?i:i.parentElement,r)}prepareApplyingMarkdown(){const{input:e}=this,t=e.querySelectorAll(".input-filler"),f=e.querySelectorAll(".input-something");return f.forEach(n=>{n.contentEditable="inherit"}),()=>{t.forEach(n=>{n.contentEditable="inherit"}),f.forEach(n=>{n.contentEditable="false"}),this.removeExtraBOMs(e)}}static getInstance(){return this.INSTANCE??(this.INSTANCE=new mr)}}function Ih(s){const e=document.createRange();e.selectNodeContents(s);const t=window.getSelection();t.removeAllRanges(),t.addRange(e)}const xh=new Set(["messageEntityPre","messageEntityCode"]);function Mh(s,e){let t=-1,f=-1;return s.find(n=>{const{offset:i,length:r}=n;return xh.has(n._)&&(t=i,f=t+r),t!==-1&&e.offset>=t&&e.offset<f&&!P1.has(e._)?!0:e._===n._||!Nf.has(e._)&&!Nf.has(n._)?e.offset>=i&&e.length+e.offset<=r+i:!1})}function Rh(s,e){s=s.slice();const t=e.filter(f=>!Mh(s,f));s.push(...t),wc(s);for(let f=0;f<s.length;++f){let n=s[f];if(n._==="messageEntityEmoji"){const i=s[f+1];i&&i.offset<n.offset+n.length&&(n=s[f]={...n},n.length=i.offset-n.offset)}}return s}function kc(s,e={}){if(!s)return gs("");let t=e.entities;return t&&!C.premium&&e.wrappingForPeerId!==C.myId&&(t=t.filter(n=>n._!=="messageEntityCustomEmoji")),gs(s,{...e,entities:t,noLinks:!0,wrappingDraft:!0,passEntities:{messageEntityTextUrl:!0,messageEntityMentionName:!0}})}async function Oh(s,e,t,f){const n=[],r=t?.some(u=>u._==="messageEntityCustomEmoji")?Pc():void 0,a=kc(e,{entities:t,wrappingForPeerId:f,loadPromises:n,customEmojiRenderer:r});a.querySelectorAll('[contenteditable="false"]').forEach(u=>{u.contentEditable="inherit",u.classList.add("pc")}),n.length&&await Promise.all(n),a.querySelectorAll(".input-selectable").forEach(u=>{u.prepend(En(!0))});const c=Array.from(a.querySelectorAll(".custom-emoji-placeholder")).map(u=>(u.dataset.ces="1",u.customEmojiElement)),d=wh(a);r?.destroy();const l=Dc(s);if(!l.node){const u=document.createRange();let m=s.lastChild;m||s.append(m=document.createTextNode("")),u.setStartAfter(m),u.collapse(!0),l.selection.removeAllRanges(),l.selection.addRange(u)}s.addEventListener("input",$e,{capture:!0,once:!0,passive:!1}),window.document.execCommand("insertHTML",!1,d),Array.from(s.querySelectorAll("[data-ces]")).forEach((u,m)=>{delete u.dataset.ces;const h=c[m];u.customEmojiElement=h,h.placeholder=u}),s.querySelectorAll(".pc").forEach(u=>{u.contentEditable="false"}),fr(s,"input")}let Di=()=>{document.addEventListener("paste",s=>{const e=Sh(s.target,'contenteditable="true"');if(!e)return;const t=!!e.dataset.noLinebreaks;s.preventDefault();let f,n,i=(s.originalEvent||s).clipboardData.getData("text/plain").replace(/\r/g,""),r=!0,a=(s.originalEvent||s).clipboardData.getData("text/html")||i;const o=d=>d._==="messageEntityEmoji"||d._==="messageEntityLinebreak"&&!t;if(t){const d=/[\r\n]/g;i=i.replace(d,""),a=a.replace(d,"")}const c=(e.dataset.peerId||xi).toPeerId();if(a.trim()){a=a.replace(/<style([\s\S]*)<\/style>/,""),a=a.replace(/<!--([\s\S]*?)-->/g,""),a=a.replace('<br class="Apple-interchange-newline">',""),a=a.replace(/\r/g,"");const d=a.match(/<body>([\s\S]*)<\/body>/);d&&(a=d[1].trim());const m=new DOMParser().parseFromString(a,"text/html").body||document.createElement("body");let h=m.firstChild;for(;h;){const w=h.nextSibling;h.nodeType===h.TEXT_NODE&&(h.nodeValue.trim()||h.remove()),h=w}const p=Zf(m,!0,!1);!!c||(p.entities=p.entities.filter(w=>w._!=="messageEntityCustomEmoji"));{const w=p.value.split(`
  16. `);let F=0;for(let b=0;b<w.length;++b){const x=w[b];F+=x.length;const k=F;if(i[k]!==`
  17. `&&b!==w.length-1){const T=w.splice(b+1,1)[0];w[b]=x+T,p.entities.forEach(g=>{g.offset>=k&&(g.offset-=1)}),F+=T.length}F+=1}const P=w.join(`
  18. `);p.value=P}const A=p.value.replace(/\s/g,"").length,D=i.replace(/\s/g,"").length;if(A===D||p.entities.find(w=>w._==="messageEntityCustomEmoji")){f=p.value,n=p.entities,r=!1;let w=Kf(f);w=w.filter(o),n=Rh(n,w)}}r&&(f=i,n=Kf(f),n=n.filter(o)),Oh(e,f,n,c)}),Di=null};var Fc=(s=>(s[s.Neutral=0]="Neutral",s[s.Valid=1]="Valid",s[s.Error=2]="Error",s))(Fc||{});function Pc(s,e){return ms.create({wrappingDraft:!0,isSelectable:!0,textColor:s||"primary-text-color",animationGroup:e})}function Sa(s){const e=Array.from(s.querySelectorAll(".custom-emoji, .custom-emoji-placeholder"));let t=s.querySelector(".custom-emoji-renderer");if(!t&&e.length)t=Pc(s.dataset.textColor,s.dataset.animationGroup),s.prepend(t);else if(t&&!e.length){t.remove();return}if(!t)return;const f=new Map;e.forEach(n=>{const i=n.loop!==void 0?n:n.customEmojiElement,{docId:r}=i;let a=f.get(r);a||f.set(r,a=new Set),a.add(i)});for(const[n,i]of f){let r=t.customEmojis.get(n);if(r)for(const a of r)i.has(a)||a.destroy();else r=new Set;for(const a of i)r.has(a)||a.connectedCallback()}t.add({addCustomEmojis:f,lazyLoadQueue:!1}),t.forceRender()}class _c{constructor(e={}){this.options=e,this.setEmpty=(v=this.isEmpty())=>{[this.input,this.placeholder].filter(Boolean).forEach(A=>{A.classList.toggle("is-empty",v)})},this.container=document.createElement("div"),this.container.classList.add("input-field"),this.required=e.required,this.validate=e.validate,e.maxLength!==void 0&&e.showLengthOn===void 0&&(e.showLengthOn=Math.min(40,Math.round(e.maxLength/3)));const{placeholder:t,maxLength:f,showLengthOn:n,name:i,plainText:r,canBeEdited:a=!0,autocomplete:o,withBorder:c,allowStartingSpace:d,canHaveFormatting:l}=e,u=e.label||e.labelText;this.allowStartingSpace=d;const m=[];let h;if(r?(this.container.innerHTML=`
  19. <input type="text" ${i?`name="${i}"`:""} autocomplete="${o??"off"}" ${u?'required=""':""} class="input-field-input">
  20. `,h=this.container.firstElementChild,m.push(()=>{const v=this.isEmpty();v&&(h.value=""),this.setEmpty(v)})):(Di&&Di(),this.container.innerHTML='<div class="input-field-input"></div>',h=this.container.firstElementChild,h.contentEditable=""+!!a,mr.getInstance(),h.addEventListener("mousedown",v=>{const A=document.getSelection();if(!A.isCollapsed)return;const D=Ah(v.target,"IMG");if(!D)return;const w=D.getBoundingClientRect(),F=w.left+w.width/2,P=v.clientX>=F,b=document.createRange();b.setStartAfter(P?D:D.previousSibling??D),A.removeAllRanges(),A.addRange(b)}),l&&h.setAttribute("can-format",l.join(",")),m.push(()=>{const v=this.isEmpty();v&&h.replaceChildren(),this.setEmpty(v),gc(Array.from(h.querySelectorAll(".input-something"))),Sa(h)})),cn(h),e.inputMode&&(h.inputMode=e.inputMode),t&&(this.placeholder=document.createElement("span"),this.placeholder.classList.add("input-field-placeholder"),this.container.append(this.placeholder),so(this.placeholder,t,void 0)),c!==!1&&c||u||t){const v=document.createElement("div");v.classList.add("input-field-border"),this.container.append(v)}if(u&&(this.label=document.createElement("label"),this.setLabel(),this.container.append(this.label)),f){const v=this.container.lastElementChild;let A=!1;const D=()=>{const w=h.classList.contains("error"),F=r?h.value.length:[...Zf(h,!1,!1).value].length,P=f-F,b=P<0;h.classList.toggle("error",b),b||P<=n?(this.setLabel(),v.append(` (${f-F})`),A||(A=!0)):(w&&!b||A)&&(this.setLabel(),A=!1)};m.push(D)}!e.withLinebreaks&&!r&&(h.dataset.noLinebreaks="1",h.addEventListener("keypress",v=>{if(v.key==="Enter")return v.preventDefault(),!1})),e.onRawInput&&m.push(()=>{e.onRawInput(this.value)}),m.length&&h.addEventListener("input",()=>{m.forEach(v=>v())}),this.input=h,this.setEmpty(!0)}select(){this.value&&(this.options.plainText?this.input.select():Ih(this.input))}setLabel(){this.label.textContent="",this.options.labelText?T1(this.label,this.options.labelText):this.label.append(De(this.options.label,this.options.labelOptions))}get value(){return this.options.plainText?this.input.value:Zf(this.input,!1,!1).value}set value(e){this.setValueSilently(e,!0),this.simulateInputEvent()}simulateInputEvent(){fr(this.input,"input")}setValueSilently(e,t){this.options.plainText?this.input.value=e:(Xo(this.input,e),Sa(this.input)),this.setEmpty()}isEmpty(){return Lh(this.input,this.allowStartingSpace)}isChanged(){return this.value!==this.originalValue}isValid(){return!this.input.classList.contains("error")&&(!this.validate||this.validate())&&(!this.required||!this.isEmpty())}isValidToChange(){return this.isValid()&&this.isChanged()}setDraftValue(e="",t){let f=e;this.options.plainText||(f=kc(e)),t?this.setValueSilently(f,!1):this.value=f}setOriginalValue(e="",t){this.originalValue=e,this.setDraftValue(e,t)}setState(e,t){t?(this.label.textContent="",this.label.append(De(t,this.options.labelOptions))):this.setLabel(),this.input.classList.toggle("error",!!(e&2)),this.input.classList.toggle("valid",!!(e&1))}setError(e){this.setState(2,e)}toggleForceFocus(e){this.input.classList.toggle("force-focus",e)}}class Nh{constructor(e,t){this.container=e,this.input=t,this.passwordVisible=!1,this.onVisibilityClick=i=>{$e(i),this.passwordVisible=!this.passwordVisible,this.toggleVisible.replaceChildren(St(this.passwordVisible?"eye2":"eye1")),this.input.type=this.passwordVisible?"text":"password",this.onVisibilityClickAdditional?.()},t.type="password",t.setAttribute("required",""),t.name="notsearch_password",t.autocomplete="off";const f=document.createElement("input");f.classList.add("stealthy"),f.tabIndex=-1,f.type="password",t.parentElement.prepend(f),t.parentElement.insertBefore(f.cloneNode(),t.nextSibling);const n=this.toggleVisible=document.createElement("span");n.classList.add("toggle-visible"),n.append(St("eye1")),e.classList.add("input-field-password"),e.append(n),n.addEventListener("click",this.onVisibilityClick),n.addEventListener("touchend",this.onVisibilityClick)}}class Bh extends _c{constructor(e={}){super({plainText:!0,allowStartingSpace:!0,...e}),this.helpers=new Nh(this.container,this.input)}}class Uh{constructor(e,t){this.passwordInputField=e,this.size=t,this.needFrame=0,this.container=document.createElement("div"),this.container.classList.add("media-sticker-wrapper")}load(){return this.loadPromise?this.loadPromise:this.loadPromise=us.loadAnimationAsAsset({container:this.container,loop:!1,autoplay:!1,width:this.size,height:this.size,noCache:!0},"TwoFactorSetupMonkeyPeek").then(e=>(this.animation=e,this.animation.addEventListener("enterFrame",t=>{(this.animation.direction===1&&t>=this.needFrame||this.animation.direction===-1&&t<=this.needFrame)&&(this.animation.setSpeed(1),this.animation.pause())}),this.passwordInputField.helpers.onVisibilityClickAdditional=()=>{this.passwordInputField.helpers.passwordVisible?(this.animation.setDirection(1),this.animation.curFrame=0,this.needFrame=16,this.animation.play()):(this.animation.setDirection(-1),this.animation.curFrame=16,this.needFrame=0,this.animation.play())},us.waitForFirstFrame(e)))}remove(){this.animation&&this.animation.remove()}}const jh=s=>{const e=q1({InputFieldClass:_c},s),[,t]=Za(e,["class","value","InputFieldClass","errorLabel"]),f=new e.InputFieldClass(t);return e.instanceRef?.(f),Ms(_n(()=>e.class,(n,i)=>{f.container.classList.remove(i),f.container.classList.add(n)})),Ms(_n(()=>e.errorLabel,(n,i)=>{!n&&!i||(n?f.setError(n):f.setState(Fc.Neutral))})),Ms(_n(()=>e.value,n=>{n!==f.value&&n!==void 0&&(f.value=n)})),f.container},Tc=$a(null),Lc=$a(null);function s3(){const s=Gn(Tc);if(!s)throw new Error("useHotReloadGuard should not be used outside a <SolidJSHotReloadGuardProvider />");return s}function f3(){const s=Gn(Lc)||Gn(Tc);if(!s)throw new Error("useLockScreenHotReloadGuard should not be used outside a <LockScreenHotReloadGuardProvider />");return s}function Wh(s){return $n(Lc.Provider,{value:{rootScope:C,themeController:Js,apiManagerProxy:$,InputFieldTsx:jh,PasswordInputField:Bh,PasswordMonkey:Uh},get children(){return s.children}})}class ps extends un{static getIsLocked(){return this.isLocked}static async tryGetStoredEncryptionHash(){const e=await R.get("encryption_key");if(e){if(R.delete("encryption_key"),!(typeof e=="string"))return!1;const f=new Uint8Array(atob(e).split("").map(i=>i.charCodeAt(0))),n=await crypto.subtle.importKey("raw",f,{name:"AES-GCM"},!0,["encrypt","decrypt"]);return await $.invoke("saveEncryptionKey",n),ct.save(n),!0}return!1}static async checkLockState(e){const f=await this.tryGetStoredEncryptionHash()?!1:await $.invoke("isLocked",void 0);this.isLocked=f,f?(await e(),await this.lock()):(this.appStartupDeferred.resolve(),this.appStartupDeferred=void 0)}static async waitForUnlock(e){this.checkLockState(e),await this.appStartupDeferred,this.isLocked=!1}static async lockOtherTabs(){await $.invoke("toggleLockOthers",!0)}static async lock(e,t){if(this.mountedElement)return;this.isLocked=!0,this.appStartupDeferred&&(this.savedHash=window.location.hash,window.location.hash="");const f=!!e,n=()=>se(()=>import("./passcodeLockScreen-CFQfu4yX.js"),__vite__mapDeps([2,3,4,5,6]),import.meta.url);await Promise.race([ge(100),n()]),this.mountedElement=document.createElement("div"),this.mountedElement.classList.add("passcode-lock-screen");const i=e instanceof HTMLElement?this.cloneLockIcon(e):void 0;i&&this.mountedElement.append(i),f&&this.mountedElement.classList.add("passcode-lock-screen--hidden"),document.body.append(this.mountedElement);const{default:r}=await n();this.dispose=Ec(()=>{const a=this;return $n(Wh,{get children(){return $n(r,{onUnlock:()=>a.unlock(),fromLockIcon:i,onAnimationEnd:t})}})},this.mountedElement),f&&Lf().then(async()=>{this.mountedElement.classList.remove("passcode-lock-screen--hidden"),i||ge(200).then(()=>{t()})})}static cloneLockIcon(e){const t=e.cloneNode(!0);t.classList.add("passcode-lock-screen__animated-lock-icon");const f=e.getBoundingClientRect();return t.style.setProperty("--x",f.left+f.width/2+"px"),t.style.setProperty("--y",f.top+f.height/2+"px"),t}static unlock(){const e=this.mountedElement;this.mountedElement=void 0,this.isLocked=!1,this.savedHash&&(rt.overrideHash(this.savedHash),rt.replaceState()),e&&(async()=>{e.style.setProperty("transition-time",".12s"),await ge(120);const t=async()=>{await ge(250),e.classList.add("passcode-lock-screen--hidden"),await ge(120),this.dispose?.(),e?.remove()};document.startViewTransition?document.startViewTransition(t):t()})(),this.appStartupDeferred?.resolve(),this.appStartupDeferred=void 0}}wn(ps,"appStartupDeferred",G()),wn(ps,"savedHash","");L.PasscodeLockScreenControler=ps;class Vh extends Mt{constructor(){super(),this.closeMTProtoWorker=ye,this.onMirrorTask=t=>{var c;const{name:f,key:n,value:i,accountNumber:r}=t;if(!(f==="state"&&n==="settings")&&r!==Ae())return;if(this.processMirrorTaskMap[f]?.(t),!t.hasOwnProperty("key")){this.mirrors[f]=i;return}const o=(c=this.mirrors)[f]??(c[f]={});al(o,n,i,!0)},this.mirrors={state:void 0,thumbs:{},stickerThumbs:{},availableReactions:void 0,messages:{},groupedMessages:{},peers:{},avatars:{}},this.processMirrorTaskMap={messages:t=>{var a;if(!t.key){for(const o in t.value)for(const c in t.value[o])this.processMirrorTaskMap.messages({name:t.name,accountNumber:t.accountNumber,key:Yf(o,c),value:t.value[o][c]});return}const f=t.value;let n,i;if(f)n=f.mid,i=f.grouped_id;else{const[o,c]=rl(t.key);n=+c;const d=this.mirrors.messages[o]?.[n];if(!d)return;i=d.grouped_id}if(!i)return;const r=(a=this.mirrors.groupedMessages)[i]??(a[i]=new Map);f?r.set(n,f):(r.delete(n),r.size||delete this.mirrors.groupedMessages[i])},state:t=>{t.key?Br(t.key,t.value):console.error(t)},peers:t=>{t.key?bl(t.key.toPeerId(),t.value):yl(t.value)}},this.tabState={accountNumber:Ae(),chatPeerIds:[],idleStartTime:0},this.intervals=new Map,this.log("constructor"),this.registerWorker(),this.registerServiceWorker(),this.registerCryptoWorker();const e=new Set(["language_change","settings_updated","theme_changed","theme_change","background_change","logging_out","notification_count_update","account_logged_in","notification_cancel","toggle_using_passcode","toggle_locked"]);this.addMultipleEventsListeners({convertWebp:({fileName:t,bytes:f})=>Bi.convert(t,f),convertOpus:({fileName:t,bytes:f})=>vo.pushDecodeTask(f,!1).then(n=>n.bytes),event:({name:t,args:f,accountNumber:n})=>{const i=n&&n!==Ae();!e.has(t)&&i||C.dispatchEventSingle(t,...f)},localStorageProxy:t=>R.localStorageProxy(t.type,...t.args),mirror:this.onMirrorTask,receivedServiceMessagePort:()=>{this.log.warn("mtproto worker received service message port")},tabsUpdated:t=>{this.allTabStates=t,C.dispatchEvent("notification_count_update")},callNotification:async t=>{const{accountNumber:f}=t,n=Ps(f),i=t.callerId.toPeerId(),r=await n.appPeersManager.getPeer(i),a=await qu({peerId:i,managers:n,plainText:!0,limitSymbols:20,useManagers:!0}),o=new Notification(a,{body:Q.format("Call.StatusCalling",!0),icon:await eh(n,i,a),badge:$u});o.onclick=()=>{const c=r.id,d=Rn(f,{p:""+c.toPeerId(),call:""+t.callId});window.open(d,"_blank"),o.close()},setTimeout(()=>{o.close()},5e3)},log:t=>{console.log("[SharedWorker]",t)},intervalCallback:t=>{const f=this.intervals.get(t);f&&f()},saveEncryptionKey:t=>{ct.save(t)},toggleLock:t=>{t?ps.lock():ps.unlock()},toggleCacheStorage:t=>{$f.temporarilyToggle(t)},toggleUsingPasscode:t=>{Le.resolveDeferred(t.isUsingPasscode),ct.save(t.isUsingPasscode?t.encryptionKey:null)}}),C.addEventListener("language_change",t=>{C.managers.networkerFactory.setLanguage(t),C.managers.appAttachMenuBotsManager.onLanguageChange()}),window.addEventListener("online",()=>{C.managers.networkerFactory.forceReconnectTimeout()}),C.addEventListener("logging_out",({accountNumber:t,migrateTo:f})=>{Promise.all([Or(!1,!0),Promise.race([ji.setAuthorized(!1),ge(3e3)]),Gf.forceUnsubscribe(),this.invokeVoid("terminate",void 0),this.serviceWorkerRegistration?.unregister().catch(ye)]).finally(()=>{let n=new URL(location.href);const i=Ae();if(!t)n.hash="",n.search="";else if(i>t){const r=i-1;n=Rn(r,void 0,!0)}else i===t&&(f?n=Rn(f):(n.hash="",n.search=""));history.replaceState(null,"",n),this.closeMTProtoWorker(),Ui.reload()})}),C.addEventListener("settings_updated",({key:t,settings:f})=>{da(f)}),C.addEventListener("toggle_using_passcode",t=>{Le.resolveDeferred(t)}),ds.addEventListener("change",t=>{this.updateTabStateIdle(t)}),this.updateTabStateIdle(ds.isIdle)}sendEnvironment(){this.log("Passing environment:",uf),this.invoke("environment",uf)}pingServiceWorkerWithIframe(){if(this.pingServiceWorkerPromise)return this.pingServiceWorkerPromise;const e=this.pingServiceWorkerPromise=G(),t=document.createElement("iframe");t.hidden=!0;const f=()=>{clearTimeout(r),setTimeout(()=>{this.pingServiceWorkerPromise=void 0},1e4),t.removeEventListener("load",n),t.removeEventListener("error",i),t.remove()},n=()=>{f(),e.resolve()},i=()=>{f(),e.reject()};t.addEventListener("load",n),t.addEventListener("error",i),t.src="ping/"+(Math.random()*4294967295|0)+".nocache",document.body.append(t);const r=window.setTimeout(i,1500);return e}attachServiceWorker(e){if(this.lastServiceWorker===e){this.log.warn("trying to attach same service worker");return}this.lastServiceWorker&&this.serviceMessagePort.detachPort(this.lastServiceWorker),this.serviceMessagePort.attachSendPort(this.lastServiceWorker=e),this.serviceMessagePort.invokeVoid("hello",void 0),this.serviceMessagePort.invokeVoid("environment",uf),Le.isUsingPasscode().then(t=>{t||this.serviceMessagePort.invokeVoid("toggleUsingPasscode",{isUsingPasscode:!1})})}_registerServiceWorker(){navigator.serviceWorker.register(il,{type:"module",scope:"./"}).then(e=>{this.log("SW registered",e),this.serviceWorkerRegistration=e;const t=new URL(window.location.href),f="swfix",n=+t.searchParams.get(f)||0;if(e.active&&!navigator.serviceWorker.controller){if(n>=3)throw new Error("no controller");return e.unregister().then(()=>{t.searchParams.set(f,""+(n+1)),window.location.href=t.toString()})}n&&(t.searchParams.delete(f),history.pushState(void 0,"",t)),(e.installing||e.waiting||e.active).addEventListener("statechange",a=>{this.log("SW statechange",a)});const r=navigator.serviceWorker.controller||e.installing||e.waiting||e.active;this.attachServiceWorker(r)}).catch(e=>{this.log.error("SW registration failed!",e),this.invokeVoid("serviceWorkerOnline",!1)})}registerServiceWorker(){if(!("serviceWorker"in navigator))return;this.serviceMessagePort=Gf.serviceMessagePort=new nl;const e=navigator.serviceWorker;this._registerServiceWorker(),e.addEventListener("controllerchange",()=>{this.log.warn("controllerchange");const t=e.controller;this.attachServiceWorker(t),t.addEventListener("error",f=>{this.log.error("controller error:",f)})}),this.serviceMessagePort.attachListenPort(e),this.serviceMessagePort.addMultipleEventsListeners({port:(t,f,n)=>{this.log.warn("got service worker port"),this.invokeVoid("serviceWorkerPort",void 0,void 0,[n.ports[0]])},serviceCryptoPort:(t,f,n)=>{it.sendToOnePort(n.ports[0])},hello:(t,f)=>{this.log("got hello from service worker"),this.serviceMessagePort.resendLockTask(f),this.serviceMessagePort.invokeVoid("environment",uf)},share:t=>{this.log("will try to share something"),this.share=t}}),e.addEventListener("messageerror",t=>{this.log.error("SW messageerror:",t)})}async registerCryptoWorker(){const e=m=>fetch(m).then(h=>h.text()).then(h=>{const p=location.pathname.split("/");p[p.length-1]="";const v=location.origin+p.join("/");return h=h.replace(/(import (?:.+? from )?['"])\//g,"$1"+v),new Blob([h],{type:"application/javascript"})}),t={construct(m,h){return{url:Ma(h[0]).toString()}}},f=[Worker,typeof SharedWorker<"u"&&SharedWorker].filter(Boolean);f.forEach(m=>window[m.name]=new Proxy(m,t));const n=new Worker(new URL(""+new URL("crypto.worker-Ykv3zCSJ.js",import.meta.url).href,import.meta.url),{type:"module"});f.forEach(m=>window[m.name]=m);const i=n.url,r=m=>new o(m,{type:"module"}),a=m=>this.attachWorkerToPort(m,it,"crypto"),o=zf?SharedWorker:Worker;it.addEventListener("port",(m,h,p)=>{this.invokeVoid("cryptoPort",void 0,void 0,[p.ports[0]])});const c=r(i);a(c);const d=await e(i);(await this.invoke("createProxyWorkerURLs",{originalUrl:i,blob:d})).slice(1).map(r).forEach(a)}registerWorker(){let e;zf?(e=new SharedWorker(new URL(""+new URL("mtproto.worker-CA0ZHRcC.js",import.meta.url).href,import.meta.url),{type:"module"}),this.closeMTProtoWorker=()=>e.port.close()):(e=new Worker(new URL(""+new URL("mtproto.worker-CA0ZHRcC.js",import.meta.url).href,import.meta.url),{type:"module"}),this.closeMTProtoWorker=()=>e.terminate()),this.onWorkerFirstMessage(e)}attachWorkerToPort(e,t,f){const n=e.port||e;t.attachPort(n),e.addEventListener("error",i=>{this.log.error(f,"worker error",i)})}onWorkerFirstMessage(e){this.log("set webWorker"),this.attachWorkerToPort(e,this,"mtproto")}async loadAllStates(){const e=await Xd();this.dispatchUserAuth();const t=e[Ae()];return C.settings=t.common.settings,this.newVersion=t.newVersion,this.oldVersion=t.oldVersion,this.mirrors.state=t.state,Br(t.state),da(t.common.settings),Object.defineProperty(C,"settings",{get:()=>Ne(hr)}),e}async dispatchUserAuth(){const e=await Nt.get(Ae());e?.userId&&C.dispatchEvent("user_auth",{dcID:e.dcId||0,date:e.date||Date.now()/1e3|0,id:e.userId.toPeerId(!1)})}hasTabOpenFor(e){return!!this.allTabStates.find(t=>t.accountNumber===e)}getOpenTabsCount(){return this.allTabStates.length}sendAllStates(e){const t=[];for(let f=1;f<=4;f++){const n=e[f],i=this.invoke("state",{...n,accountNumber:f});t.push(i)}return Promise.all(t)}invokeCrypto(e,...t){return it.invokeCrypto(e,...t)}async toggleStorages(e,t){await Or(e,t),this.invoke("toggleStorages",{enabled:e,clearWrite:t}),this.serviceMessagePort?.invokeVoid("toggleStorages",{enabled:e,clearWrite:t})}async getMirror(e){return this.mirrors[e]}getState(){return this.getMirror("state")}getAllTabStates(){return[...this.allTabStates]}getCacheContext(e,t=Vn,f=ol(e)){return this.mirrors.thumbs[f]?.[t]||cl(t)}getStickerCachedThumb(e,t){const f=Qi(e,t);return this.mirrors.stickerThumbs[f]}getAvailableReactions(){var e;return(e=this.mirrors).availableReactions||(e.availableReactions=C.managers.appReactionsManager.getAvailableReactions())}getReaction(e){return at(this.getAvailableReactions(),t=>t.find(f=>f.reaction===e))}getMessageFromStorage(e,t){return e.endsWith("history")&&Nr(t)&&(e=this.getGlobalHistoryMessagesStorage()),this.mirrors.messages[e]?.[t]}getGroupsFirstMessage(e){if(!e?.grouped_id)return e;const t=this.mirrors.groupedMessages[e.grouped_id];let f=Number.MAX_SAFE_INTEGER;for(const[n,i]of t)i.mid<f&&(f=i.mid);return t.get(f)}getMidsByGroupedId(e,t="asc"){return pl(this.mirrors.groupedMessages[e],t)}getMessagesByGroupedId(e){const t=this.getMidsByGroupedId(e,"asc"),f=this.mirrors.groupedMessages[e];return t.map(n=>f.get(n))}getHistoryMessagesStorage(e){return`${e}_history`}getGlobalHistoryMessagesStorage(){return this.getHistoryMessagesStorage(xi)}getMessageById(e){if(Nr(e))return this.getMessageFromStorage(this.getGlobalHistoryMessagesStorage(),e)}getMessageByPeer(e,t){return e?this.getMessageFromStorage(this.getHistoryMessagesStorage(e),t):this.getMessageById(t)}getPeerForAccount(e,t){return Ps(t).appPeersManager.getPeer(e)}getPeer(e){return this.mirrors.peers[e]}getUser(e){return this.mirrors.peers[e.toPeerId(!1)]}getChat(e){return this.mirrors.peers[e.toPeerId(!0)]}isForum(e){return!!this.getPeer(e)?.pFlags?.forum}isAvatarCached(e,t){const f=this.mirrors.avatars[e];return t===void 0?!!f:!!(f&&f[t]&&!(f[t]instanceof Promise))}loadAvatar(e,t,f,n){var r;if(n&&n!==Ae())return Ps(n).appAvatarsManager.loadAvatar(e,t,f);const i=(r=this.mirrors.avatars)[e]??(r[e]={});return i[f]??(i[f]=C.managers.appAvatarsManager.loadAvatar(e,t,f))}getAppConfig(e){if(e&&(this.appConfig=void 0),!this.appConfig){const t=C.managers.apiManager.getAppConfig().then(f=>(this.appConfig===t&&(this.appConfig=f),f));return this.appConfig=t}return this.appConfig}isPremiumFeaturesHidden(){return at(this.isPremiumPurchaseBlocked(),e=>e&&!C.premium)}isPremiumPurchaseBlocked(){return at(this.getAppConfig(),e=>!!e.premium_purchase_blocked)}async hasSomeonePremium(){const e=await Nt.getTotalAccounts();let t=!1;for(let f=1;f<=e;f++){const i=Ps(f);if(t||(t=await i.rootScope.getPremium()),t)break}return t}updateTabState(e,t){this.tabState[e]=t,this.invokeVoid("tabState",this.tabState)}updateTabStateIdle(e){this.updateTabState("idleStartTime",e?Date.now():0)}async setInterval(e,t){const f=await this.invoke("setInterval",t);return this.intervals.set(f,e),f}async clearInterval(e){this.intervals.delete(e),await this.invoke("clearInterval",e)}}const Ic=new Vh;L.apiManagerProxy=Ic;const $=Ic;class Hh extends Be{constructor(){super(...arguments),this.overlaysActive=0,this.hasDarkOverlays=0}get isOverlayActive(){return this.overlaysActive>0}set isOverlayActive(e){this.overlaysActive+=e?1:-1,this.dispatchEvent("change",this.isOverlayActive)}get isDarkOverlayActive(){return this.hasDarkOverlays>0}set isDarkOverlayActive(e){this.hasDarkOverlays+=e?1:-1,this.isOverlayActive=e}}const xt=new Hh;L&&(L.overlayCounter=xt);function n3(s,e=s.split("?")){try{const t=new URL(s),f={};for(const[n,i]of t.searchParams.entries())f[n]=i;return f}catch{return xc(e?.[1])}}function xc(s){const e={};return s&&s.split("&").forEach(t=>{const[f,n=""]=t.split("=");e[f]=decodeURIComponent(n)}),e}const zh="onbeforeinstallprompt"in window;let wi;function Gh(){window.addEventListener("beforeinstallprompt",s=>{wi=async()=>{s.prompt();const{outcome:e}=await s.userChoice;e==="accepted"&&(wi=void 0)}})}function i3(){return wi}const Mc=["January","February","March","April","May","June","July","August","September","October","November","December"],qh=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Zs=Mc.slice(),Si=qh.slice(),os=86400,r3=1440,a3=10080;function $h(){const s=Q.getDateTimeFormat({weekday:"long"}),e=new Date(Date.UTC(2017,0,2)),t=[];for(let f=0;f<7;++f)t.push(an(s.format(e))),e.setDate(e.getDate()+1);return t}function Yh(){const s=Q.getDateTimeFormat({month:"long"}),e=new Date(Date.UTC(2017,0,1)),t=[];for(let f=0;f<12;++f)t.push(an(s.format(e))),e.setMonth(e.getMonth()+1);return t}function Aa(){Zs.splice(0,Zs.length,...Yh()),Si.splice(0,Si.length,...$h())}const Ca=s=>{const e=new Date(Date.UTC(s.getFullYear(),s.getMonth(),s.getDate())),t=e.getUTCDay()||7;e.setUTCDate(e.getUTCDate()+4-t);const f=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e.getTime()-f.getTime())/os+1)/7)};function o3(s,e){e||(e=new Date,e.setHours(0,0,0,0));const t={day:"numeric",month:"long"};return s.getFullYear()!==e.getFullYear()&&(t.year="numeric"),new Q.IntlDateElement({date:s,options:t}).element}function Kh(s){const e=new Date,t=e.getTime()/1e3|0,f=s.getTime()/1e3|0,n={};return t-f<os&&e.getDate()===s.getDate()?n.hour=n.minute="2-digit":e.getFullYear()!==s.getFullYear()?(n.year=n.day="numeric",n.month="2-digit"):t-f<os*7&&Ca(e)===Ca(s)?n.weekday="short":(n.month="short",n.day="numeric"),new Q.IntlDateElement({date:s,options:n}).element}const Ai={hour:"2-digit",minute:"2-digit"};function Jh(s,e={}){e.combined&&(e.noToday=!0);const t=new Date,f=new Date(s*1e3),i=(t.getTime()/1e3|0)-s,r=e.combined?void 0:Qh(f);let a;return!e.noToday&&i<os&&t.getDate()===f.getDate()?a=De(e.capitalize?"Date.Today":"Peer.Status.Today"):!e.noToday&&i>0&&i<os*2&&new Date(t.getTime()-os*1e3).getDate()===f.getDate()?(a=De(e.capitalize?"Yesterday":"Peer.Status.Yesterday"),e.capitalize&&(a.style.textTransform="capitalize")):t.getFullYear()!==f.getFullYear()?a=new Q.IntlDateElement({date:f,options:{month:"short",day:"numeric",year:"numeric",...e.combined?Ai:{}}}).element:a=new Q.IntlDateElement({date:f,options:{month:"short",day:"numeric",...e.combined?Ai:{}}}).element,{dateEl:a,timeEl:r}}function c3(s,e=!0,t=!1){const{dateEl:f,timeEl:n}=Jh(s,{capitalize:e,noToday:t}),i=document.createDocumentFragment();return i.append(f," ",De("ScheduleController.at")," ",n),i}function Qh(s){return new Q.IntlDateElement({date:s,options:Ai}).element}L&&(L.formatDateAccordingToTodayNew=Kh);function d3(s,e){const t=s>=12&&!(s%12);return De(e?t?"BoldYears":"BoldMonths":t?"Years":"Months",[t?s/12:s])}const je=2013,Xh=new RegExp("20[0-9]{1,2}"),gr="\\p{L}",Zh=new RegExp(`(${gr}{3,})`,"iu"),e2=new RegExp(`(${gr}{3,}) ([0-9]{0,4})`,"iu"),t2=new RegExp(`([0-9]{0,4}) (${gr}{2,})`,"iu"),s2=new RegExp("^([0-9]{1,4})(\\.| |/|\\-)([0-9]{1,4})$","i"),f2=new RegExp("^([0-9]{1,2})(\\.| |/|\\-)([0-9]{1,2})(\\.| |/|\\-)([0-9]{1,4})$","i"),n2=[31,29,31,30,31,30,31,31,30,31,30,31];function i2(s,e){const t=s.trim().toLowerCase();if(t.length<3)return;if(["today",Q.format("Peer.Status.Today",!0)].some(i=>i.indexOf(t)===0)){const i=new Date,r=i.getFullYear(),a=i.getMonth(),o=i.getDate();i.setFullYear(r,a,o),i.setHours(0,0,0);const c=i.getTime();i.setFullYear(r,a,o+1),i.setHours(0,0,0);const d=i.getTime()-1;e.push({title:Q.format("Date.Today",!0),minDate:c,maxDate:d});return}if(["yesterday",Q.format("Peer.Status.Yesterday",!0)].some(i=>i.indexOf(t)===0)){const i=new Date,r=i.getFullYear(),a=i.getMonth(),o=i.getDate();i.setFullYear(r,a,o),i.setHours(0,0,0);const c=i.getTime()-864e5;i.setFullYear(r,a,o+1),i.setHours(0,0,0);const d=i.getTime()-86400001;e.push({title:an(Q.format("Yesterday",!0)),minDate:c,maxDate:d});return}const f=c2(t);if(f>=0){const i=new Date,r=i.getTime(),a=i.getDay(),o=f-a;i.setDate(i.getDate()+o),i.getTime()>r&&i.setTime(i.getTime()-6048e5);const c=i.getFullYear(),d=i.getMonth(),l=i.getDate();i.setFullYear(c,d,l),i.setHours(0,0,0);const u=i.getTime();i.setFullYear(c,d,l+1),i.setHours(0,0,0);const m=i.getTime()-1;e.push({title:Oc(u),minDate:u,maxDate:m});return}let n;if((n=s2.exec(t))!==null){const i=n[1],r=n[3],a=parseInt(i),o=parseInt(r);if(a>0&&a<=31){if(o>=je&&a<=12){const c=o,d=a-1;Cs(e,d,c);return}else if(o<=12){const c=a-1,d=o-1;Un(e,c,d)}}else if(a>=je&&o<=12){const c=a,d=o-1;Cs(e,d,c)}return}if((n=f2.exec(t))!==null){const i=n[1],r=n[3],a=n[5];if(!n[2]===n[4])return;const o=parseInt(i),c=parseInt(r)-1;let d=parseInt(a);d>=10&&d<=99&&(d+=2e3);const l=new Date().getFullYear();if(Nc(o-1,c)&&d>=je&&d<=l){const u=new Date;u.setFullYear(d,c,o),u.setHours(0,0,0);const m=u.getTime();u.setFullYear(d,c,o+1),u.setHours(0,0,0);const h=u.getTime()-1;e.push({title:Rc(m),minDate:m,maxDate:h});return}return}if((n=e2.exec(t))!==null){const i=n[1],r=n[2],a=jn(i);if(a>=0){const o=+r||new Date().getUTCFullYear();if(o>0&&o<=31){const c=o-1;Un(e,c,a);return}else if(o>=je){Cs(e,a,o);return}}}if((n=t2.exec(t))!==null){const i=n[1],r=n[2],a=jn(r);if(a>=0){const o=+i;if(o>0&&o<=31){const c=o-1;Un(e,c,a);return}else o>=je&&Cs(e,a,o)}}if((n=Zh.exec(t))!==null){const i=n[1],r=jn(i);if(r>=0){const a=new Date().getFullYear();for(let o=a;o>=je;--o)Cs(e,r,o)}}if((n=Xh.exec(t))!==null){let i=+n[0];const r=new Date().getFullYear();if(i<je){i=je;for(let a=r;a>=i;a--){const o=new Date;o.setFullYear(a,0,1),o.setHours(0,0,0);const c=o.getTime();o.setFullYear(a+1,0,1),o.setHours(0,0,0);const d=o.getTime()-1;e.push({title:""+a,minDate:c,maxDate:d})}}else if(i<=r){const a=new Date;a.setFullYear(i,0,1),a.setHours(0,0,0);const o=a.getTime();a.setFullYear(i+1,0,1),a.setHours(0,0,0);const c=a.getTime()-1;e.push({title:""+i,minDate:o,maxDate:c})}return}}function Cs(s,e,t){const f=new Date().getFullYear(),n=Date.now();if(t>=je&&t<=f){const i=new Date;i.setFullYear(t,e,1),i.setHours(0,0,0);const r=i.getTime();if(r>n)return;i.setMonth(i.getMonth()+1);const a=i.getTime()-1;s.push({title:r2(r),minDate:r,maxDate:a})}}function Un(s,e,t){if(Nc(e,t)){const f=new Date().getFullYear(),n=Date.now();for(let i=f;i>=je;i--){if(t===1&&e===28&&!o2(i))continue;const r=new Date;r.setFullYear(i,t,e+1),r.setHours(0,0,0);const a=r.getTime();if(a>n)continue;r.setFullYear(i,t,e+2),r.setHours(0,0,0);const o=r.getTime()-1;i===f?s.push({title:a2(a),minDate:a,maxDate:o}):s.push({title:Rc(a),minDate:a,maxDate:o})}}}function r2(s){const e=new Date(s);return Zs[e.getMonth()]+" "+e.getFullYear()}function a2(s){const e=new Date(s);return Zs[e.getMonth()]+" "+e.getDate()}function Rc(s){const e=new Date(s);return("0"+e.getDate()).slice(-2)+"."+("0"+(e.getMonth()+1)).slice(-2)+"."+e.getFullYear()}function Oc(s){const e=new Date(s);return Si[e.getDay()]}function Nc(s,e){return e>=0&&e<12&&s>=0&&s<n2[e]}function o2(s){return s%4===0&&s%100!==0||s%400===0}function jn(s){s=s.toLowerCase();for(let e=0;e<12;e++)if([Mc[e],Zs[e]].some(t=>t.toLowerCase().indexOf(s)===0))return e;return-1}function c2(s){const e=new Date;if(s.length<=3)return-1;for(let t=0;t<7;t++)if(e.setDate(e.getDate()+1),Oc(e.getTime()).toLowerCase().indexOf(s)===0)return e.getDay();return-1}L.fillTipDates=i2;const d2={8:new Uint8Array(1),16:new Uint16Array(1),32:new Uint32Array(1)};function Ci(s){const e=d2[s];return crypto.getRandomValues(e),e[0]}function l3(){return""+Ci(32)+Ci(32)%16777215}const Bc=xe,pr=xe||!Li&&(!le||Ut)||Ta<113,l2=!Bc&&!pr;function u2(s,e=!1){const t=new URL(location.href);s===1?t.searchParams.delete(cs):t.searchParams.set(cs,s+"");const f=t.search?t.pathname+t.search:t.pathname;e?window.open(f,"_blank"):(rt.overrideHash(),history.replaceState(null,"",f),location.reload())}function h2(){Node.prototype.replaceChildren===void 0&&(Node.prototype.replaceChildren=function(...s){this.textContent="",s&&this.append(...s)})}function m2(){const s=document.querySelector(".chat.active");if(!s)return;const e=s.cloneNode(!0);e.querySelectorAll(".chat-input, .chat-background").forEach(r=>r.remove());const t=e.querySelector(".bubbles"),f=t.querySelector(".bubbles-inner");t.replaceChildren(f),t.querySelectorAll("video").forEach(r=>r.muted=!0);const i=document.createElement("div");i.setAttribute("id","printable"),i.append(e),document.body.append(i)}function g2(){document.getElementById("printable")?.remove()}function p2(){window.addEventListener("beforeprint",m2),window.addEventListener("afterprint",g2)}function b2(){document.addEventListener("dragstart",s=>{if(s.target?.tagName==="IMG")return s.preventDefault(),!1}),document.addEventListener("contextmenu",s=>{s.target.tagName==="IMG"&&!window.appMediaViewer&&$e(s)})}let y2=0;function Uc(s,e=()=>Promise.resolve(),t=null,f=!1,n=s){if(s.querySelector(".c-ripple"))return;s.classList.add("rp");const i=document.createElement("div");i.classList.add("c-ripple"),s.classList.contains("rp-square")&&i.classList.add("is-square"),s[f?"prepend":"append"](i);let a;const o=(l,u)=>{const m=Date.now(),h=document.createElement("div"),p=y2++,v=+window.getComputedStyle(i).getPropertyValue("--ripple-duration").replace("s","")*1e3,A=a=()=>{const D=Date.now()-m,w=()=>{mt.mutate(()=>{h.remove()}),t?.(p)};if(D<v){const F=Math.max(v-D,v/2);setTimeout(()=>h.classList.add("hiding"),Math.max(F-v/2,0)),setTimeout(w,F)}else h.classList.add("hiding"),setTimeout(w,v/2);ke||(window.removeEventListener("contextmenu",a),window.removeEventListener("mousemove",a)),a=null,d=!1};e?.(p),Me(()=>{if(A!==a)return;const D=i.getBoundingClientRect();h.classList.add("c-ripple__circle");const w=l-D.left,F=u-D.top,b=Math.sqrt((Math.abs(F-D.height/2)+D.height/2)**2+(Math.abs(w-D.width/2)+D.width/2)**2),x=w-b/2,k=F-b/2;h.style.width=h.style.height=b+"px",h.style.left=x+"px",h.style.top=k+"px",h.style.opacity="0",i.append(h),h.offsetWidth,h.style.opacity=""})},c=l=>l.target!==s&&(["BUTTON","A"].includes(l.target.tagName)||Vs(l.target,"c-ripple")!==i)&&(n===s||!Xf(l.target,n))&&!Vs(l.target,"checkbox-field");let d=!1;if(ke){const l=()=>{a?.()},u=m=>{if(!ot.isAvailable("animations")||m.touches.length>1||d||c(m))return;d=!0;const{clientX:h,clientY:p}=m.touches[0];o(h,p),n.addEventListener("touchend",l,{once:!0}),window.addEventListener("touchmove",v=>{v.cancelBubble=!0,v.stopPropagation(),l(),n.removeEventListener("touchend",l)},{once:!0})};return n.addEventListener("touchstart",u,{passive:!0}),{dispose:()=>n.removeEventListener("touchstart",u),element:i}}else{const l=u=>{if(![0,2].includes(u.button)||!ot.isAvailable("animations")||n.dataset.ripple==="0"||c(u))return;if(d){d=!1;return}const{clientX:m,clientY:h}=u;o(m,h),window.addEventListener("mouseup",a,{once:!0,passive:!0}),window.addEventListener("contextmenu",a,{once:!0,passive:!0})};return n.addEventListener("mousedown",l,{passive:!0}),{dispose:()=>n.removeEventListener("mousedown",l),element:i}}}function E2(s){if(s.key==="Enter"&&!xe&&!s.isComposing){if(C.settings.sendShortcut==="enter")return s.shiftKey||s.ctrlKey||s.metaKey?void 0:!0;{const e=Et?s.metaKey:s.ctrlKey;if(s.shiftKey||(Et?s.ctrlKey:s.metaKey))return;if(e)return!0}}return!1}function u3(s){s.requestFullscreen?s.requestFullscreen():s.mozRequestFullScreen?s.mozRequestFullScreen():s.webkitRequestFullscreen?s.webkitRequestFullscreen():s.msRequestFullscreen&&s.msRequestFullscreen()}function h3(){document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()}function v2(s,e,t){const f=t?t.add(s):s.addEventListener.bind(s);"webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange".split(" ").forEach(n=>{f(n,e,!1)})}function jc(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement}function m3(){return!!jc()}const ka=250,D2=600,Wc=1500,w2=500;var S2=(s=>(s[s.Up=0]="Up",s[s.Down=1]="Down",s[s.Static=2]="Static",s))(S2||{});function g3(s,e){return Vc({container:s,element:s,getElementPosition:()=>-s.scrollLeft,position:"start",axis:"x"})}function Vc(s){if(s.margin??(s.margin=0),s.maxDistance??(s.maxDistance=Wc),s.axis??(s.axis="y"),(!ot.isAvailable("animations")||s.forceDuration===0)&&(s.forceDirection=2),s.forceDirection===2)return s.forceDuration=0,ki(s);const e=Zc().then(()=>ki(s));return s.axis==="y"?Io(e):e}function ki(s){const{element:e,container:t,getNormalSize:f,getElementPosition:n,transitionFunction:i,axis:r,margin:a,position:o,forceDirection:c,maxDistance:d,forceDuration:l}=s;if(!Ks(e))return _f(t),Promise.resolve();const u=r==="y"?"top":"left",m=r==="y"?"bottom":"right",h=r==="y"?"height":"width",p=r==="y"?"scrollHeight":"scrollWidth",v=r==="y"?"scrollHeight":"offsetWidth",A=r==="y"?"scrollTop":"scrollLeft",D=e.getBoundingClientRect(),w=t.getBoundingClientRect?t.getBoundingClientRect():document.body.getBoundingClientRect(),F=D[u]-w[u],P=n?n({elementRect:D,containerRect:w,elementPosition:F}):F,b=e[v],x=f?f({rect:w}):w[h];let k=t[A];const T=t[p];let g;switch(o){case"start":g=P-a;break;case"end":g=D[m]-w[m]+a;break;case"nearest":case"center":if(b<x)g=P+b/2-x/2;else{if(s.fallbackToElementStartWhenCentering&&s.fallbackToElementStartWhenCentering!==e)return s.element=s.fallbackToElementStartWhenCentering,s.position="start",ki(s);g=P-a}break}if(Math.abs(g-(a||0))<1)return _f(t),Promise.resolve();let y;if(r==="y"&&c===void 0&&(g>d?(y=k+=g-d,g=d):g<-d&&(y=k+=g+d,g=-d)),g<0){const O=-k;g=Math.max(g,O)}else if(g>0){const O=T-(k+x);g=Math.min(g,O)}const E=k+g,S=Math.abs(g),_=l??ka+S/Wc*(D2-ka),I=Date.now(),N=i??(S<w2?C2:A2),B=()=>_?Math.min((Date.now()-I)/_,1):1,Y=()=>{y!==void 0&&(t[A]=y,y=void 0);const O=B(),ne=N(O),ce=g*(1-ne);return t[A]=Math.round(E-ce),O<1};if(!_||!g)return _f(t),Y(),Promise.resolve();if(s.startCallback){const O=T-Math.round(E+t[r==="y"?"offsetHeight":"offsetWidth"]);s.startCallback({scrollSize:T,scrollPosition:k,distanceToEnd:O,path:g,duration:_,containerRect:w,elementRect:D,getProgress:B})}return fc(Y,t)}function A2(s){return 1-(1-s)**5}function C2(s){return 1-(1-s)**3.5}const k2=24,en=!pr;let Fi,Pi;en?(Fi=s=>requestAnimationFrame(s),Pi=s=>cancelAnimationFrame(s)):(Fi=s=>window.setTimeout(s,k2),Pi=s=>window.clearTimeout(s));class Hc{constructor(e,t="",f=document.createElement("div")){this.el=e,this.container=f,this.onScrollMeasure=0,this.lastScrollPosition=0,this.lastScrollDirection=0,this.isHeavyAnimationInProgress=!1,this.needCheckAfterAnimation=!1,this.onScroll=()=>{if(this.isHeavyAnimationInProgress){this.cancelMeasure(),this.needCheckAfterAnimation=!0;return}!this.onScrolledTop&&!this.onScrolledBottom&&!this.splitUp&&!this.onAdditionalScroll||this.onScrollMeasure||(this.onScrollMeasure=Fi(()=>{this.onScrollMeasure=0;const n=this.scrollPosition;this.lastScrollDirection=this.lastScrollPosition===n?0:this.lastScrollPosition<n?1:-1,this.lastScrollPosition=n,this.updateThumb(n),this.onAdditionalScroll&&this.onAdditionalScroll(),this.checkForTriggers&&this.checkForTriggers()}))},this.onMouseMove=n=>{$e(n);const i=this.scrollSize,r=this.clientSize,a=this.thumb.offsetHeight,o=i-r,c=r-a,l=(n[this.clientAxis]-this.startMousePosition)/c*o,u=this.startScrollPosition+l;this.scrollPosition=u},this.onMouseDown=n=>{$e(n),this.startMousePosition=n[this.clientAxis],this.startScrollPosition=this.scrollPosition,this.thumb.classList.add("is-focused"),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp,{once:!0})},this.onMouseUp=n=>{window.removeEventListener("mousemove",this.onMouseMove),this.thumb.classList.remove("is-focused")},this.container.classList.add("scrollable"),this.log=X("SCROLL"+(t?"-"+t:""),sf.Error),e&&(Array.from(e.children).forEach(n=>this.container.append(n)),e.append(this.container))}addScrollListener(){this.addedScrollListener||(this.addedScrollListener=!0,this.container.addEventListener("scroll",this.onScroll,{passive:!0,capture:!0}))}removeScrollListener(){this.addedScrollListener&&(this.addedScrollListener=!1,this.container.removeEventListener("scroll",this.onScroll,{capture:!0}))}setListeners(){this.removeHeavyAnimationListener||(window.addEventListener("resize",this.onScroll,{passive:!0}),this.addScrollListener(),this.removeHeavyAnimationListener=Ro(()=>{this.isHeavyAnimationInProgress=!0,this.onScrollMeasure&&(this.cancelMeasure(),this.needCheckAfterAnimation=!0)},()=>{this.isHeavyAnimationInProgress=!1,this.needCheckAfterAnimation&&(this.onScroll(),this.needCheckAfterAnimation=!1)}))}removeListeners(){this.removeHeavyAnimationListener&&(window.removeEventListener("resize",this.onScroll),this.thumb&&(this.thumb.removeEventListener("mousedown",this.onMouseMove),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp)),this.removeScrollListener(),this.removeHeavyAnimationListener(),this.removeHeavyAnimationListener=void 0)}destroy(){this.removeListeners(),this.onAdditionalScroll=void 0,this.onScrolledTop=void 0,this.onScrolledBottom=void 0}prepend(...e){const t=this.splitUp||this.padding||this.container;this.thumb&&e.unshift(this.thumbContainer),t.prepend(...e),this.onSizeChange()}append(...e){(this.splitUp||this.padding||this.container).append(...e),this.onSizeChange()}scrollIntoViewNew(e){return Vc({...e,container:this.container})}updateThumb(e=this.scrollPosition){if(!en||!this.thumb)return;const t=this.container[this.scrollSizeProperty],f=this.container[this.clientSizeProperty],n=t/f/.75,i=Math.max(20,f/n),r=e/(t-f)*f,a=e/(t-f),o=f-i;f<t?(this.thumb.style.height=i+"px",this.thumb.style.transform=`translateY(${Math.min(o,r-i*a)}px)`):this.thumb.style.height="0px"}cancelMeasure(){this.onScrollMeasure&&(Pi(this.onScrollMeasure),this.onScrollMeasure=0)}onSizeChange(){en&&this.thumb&&this.onScroll()}getDistanceToEnd(){return this.scrollSize-Math.round(this.scrollPosition+this.offsetSize)}get isScrolledToEnd(){return this.getDistanceToEnd()<=1}get scrollPosition(){return this.container[this.scrollPositionProperty]}set scrollPosition(e){this.container[this.scrollPositionProperty]=e}get scrollSize(){return this.container[this.scrollSizeProperty]}get clientSize(){return this.container[this.clientSizeProperty]}get offsetSize(){return this.container[this.offsetSizeProperty]}get firstElementChild(){return this.thumb?this.thumbContainer.nextElementSibling:this.container.firstElementChild}setScrollPositionSilently(e){this.lastScrollPosition=e,this.ignoreNextScrollEvent(),this.scrollPosition=e}ignoreNextScrollEvent(){this.removeHeavyAnimationListener&&(this.removeScrollListener(),this.container.addEventListener("scroll",e=>{$e(e),this.addScrollListener()},{capture:!0,passive:!1,once:!0}))}replaceChildren(...e){this.thumb&&e.unshift(this.thumbContainer),this.container.replaceChildren(...e)}}class F2 extends Hc{constructor(e,t="",f=300,n,i){super(e,t,i),this.onScrollOffset=f,this.loadedAll={top:!0,bottom:!1},this.checkForTriggers=()=>{if(!this.onScrolledTop&&!this.onScrolledBottom)return;if(this.isHeavyAnimationInProgress){this.onScroll();return}const{scrollSize:r,scrollPosition:a,clientSize:o}=this;if(!r)return;const c=r-o;this.onScrolledTop&&a<=this.onScrollOffset&&this.lastScrollDirection<=0&&this.onScrolledTop(),this.onScrolledBottom&&c-a<=this.onScrollOffset&&this.lastScrollDirection>=0&&this.onScrolledBottom()},this.scrollPositionProperty="scrollTop",this.scrollSizeProperty="scrollHeight",this.clientSizeProperty="clientHeight",this.offsetSizeProperty="offsetHeight",this.clientAxis="clientY",en&&(this.thumbContainer=document.createElement("div"),this.thumbContainer.classList.add("scrollable-thumb-container"),this.thumb=document.createElement("div"),this.thumb.classList.add("scrollable-thumb"),this.thumbContainer.append(this.thumb),this.container.prepend(this.thumbContainer),this.thumb.addEventListener("mousedown",this.onMouseDown)),this.container.classList.add("scrollable-y"),le&&!Ut&&this.container.classList.add("no-scrollbar"),this.setListeners()}attachBorderListeners(e=this.container){const t=this.onAdditionalScroll;this.onAdditionalScroll=()=>{t?.(),e.classList.toggle("scrolled-start",!this.scrollPosition),e.classList.toggle("scrolled-end",this.isScrolledToEnd)},e.classList.add("scrolled-start","scrolled-end","scrollable-y-bordered")}setVirtualContainer(e){this.splitUp=e,this.log("setVirtualContainer:",e,this)}}class p3 extends Hc{constructor(e,t="",f=300,n=15,i=document.createElement("div")){if(super(e,t,i),this.onScrollOffset=f,this.splitCount=n,this.container=i,this.container.classList.add("scrollable-x"),!ke){const r=a=>{a.stopPropagation(),!a.deltaX&&this.container.scrollWidth>this.container.clientWidth&&(this.container.scrollLeft+=a.deltaY/4,$e(a))};this.container.addEventListener("wheel",r,{passive:!1})}this.scrollPositionProperty="scrollLeft",this.scrollSizeProperty="scrollWidth",this.clientSizeProperty="clientWidth",this.offsetSizeProperty="offsetWidth"}}function P2(s,e={}){const t=document.createElement(e.asLink?"a":e.asDiv?"div":"button");return t.className=s,e.noRipple||(e.rippleSquare&&t.classList.add("rp-square"),Uc(t)),e.icon&&_2(t,e.icon,!1),e.onlyMobile&&t.classList.add("only-handhelds"),e.disabled&&t.setAttribute("disabled","true"),e.text&&t.append(De(e.text,e.textArgs)),t}function _2(s,e,t=s.querySelector(".button-icon")){const f=St(e,"button-icon");return t?t.replaceWith(f):s.append(f),f}const T2=(s,e={})=>{const t=s?.split(" ");return P2("btn-icon"+(t?.length>1?" "+t.slice(1).join(" "):""),{icon:t?.[0]||void 0,...e})};function zc(s,e){return s=Lt(s),e?s.forEach(t=>t.setAttribute("disabled","true")):s.forEach(t=>t.removeAttribute("disabled")),()=>zc(s,!e)}const br=document.body;let Is=br;const Gc=()=>{Is=jc()||br,ef.reAppend()};v2(br,Gc);const pt=class pt extends Be{constructor(e,t={}){if(super(!1),this.element=document.createElement("div"),this.container=document.createElement("div"),this.header=document.createElement("div"),this.title=document.createElement("div"),this.hideWithCallback=f=>{this.addEventListener("closeAfterTimeout",f),this.hide()},this.element.classList.add("popup"),this.element.className="popup"+(e?" "+e:""),this.container.classList.add("popup-container","z-depth-1"),xt.isDarkOverlayActive&&(this.night=!0,this.element.classList.add("night")),this.header.classList.add("popup-header"),t.title&&(this.title.classList.add("popup-title"),typeof t.title=="string"?so(this.title,t.title):typeof t.title!="boolean"&&this.title.append(t.title),this.header.append(this.title)),this.isConfirmationNeededOnClose=t.isConfirmationNeededOnClose,this.middlewareHelper=pn(),this.listenerSetter=new Ac,this.managers=pt.MANAGERS,this.confirmShortcutIsSendShortcut=t.confirmShortcutIsSendShortcut,t.closable&&(this.btnClose=T2("",{noRipple:!0}),this.btnClose.classList.add("popup-close"),this.header.prepend(this.btnClose),t.onBackClick?(this.btnCloseAnimatedIcon=document.createElement("div"),this.btnCloseAnimatedIcon.classList.add("animated-close-icon"),this.btnClose.append(this.btnCloseAnimatedIcon)):this.btnClose.append(St("close")),Cf(this.btnClose,()=>{t.onBackClick&&this.btnCloseAnimatedIcon.classList.contains("state-back")?t.onBackClick()!==!1&&this.btnCloseAnimatedIcon.classList.remove("state-back"):this.hide()},{listenerSetter:this.listenerSetter})),this.withoutOverlay=t.withoutOverlay,this.withoutOverlay&&this.element.classList.add("no-overlay"),t.overlayClosable&&Cf(this.element,f=>{Vs(f.target,"popup-container")||!f.target.isConnected||this.hide()},{listenerSetter:this.listenerSetter}),t.withConfirm&&(this.btnConfirm=document.createElement("button"),this.btnConfirm.classList.add("btn-primary","btn-color-primary"),t.withConfirm!==!0&&this.btnConfirm.append(De(t.withConfirm)),this.header.append(this.btnConfirm)),this.container.append(this.header),t.body&&(this.body=document.createElement("div"),this.body.classList.add("popup-body"),this.container.append(this.body)),t.scrollable){const f=this.scrollable=new F2(this.body);if(this.attachScrollableListeners(),t.floatingHeader){this.attachScrollableListeners(this.header);const n=document.createElement("div");n.classList.add("popup-header-background"),this.header.prepend(n),this.header.classList.add("is-floating")}this.body||this.header.after(f.container)}t.footer&&(this.footer=document.createElement("div"),this.footer.classList.add("popup-footer"),(this.body||this.container).append(this.footer),t.withFooterConfirm&&this.footer.append(this.btnConfirm)),this.btnConfirmOnEnter=this.btnConfirm,this.setButtons(t.buttons),this.element.append(this.container),pt.POPUPS.push(this)}setButtons(e){if(this.buttons=e,this.buttonsEl&&(this.buttonsEl.remove(),this.buttonsEl=void 0),!e?.length)return;const t=this.buttonsEl=document.createElement("div");t.classList.add("popup-buttons");const f=e.map(n=>{const i=document.createElement("button");if(i.className="popup-button btn"+(n.isDanger?" danger":" primary"),n.noRipple||Uc(i),n.text?i.append(n.text):n.langKey&&i.append(De(n.langKey,n.langArgs)),n.iconLeft||n.iconRight){const r=St(n.iconLeft||n.iconRight,"popup-button-icon",n.iconLeft?"left":"right");i.classList.add("with-icon"),n.iconLeft?i.prepend(r):i.append(r)}return Cf(i,async r=>{let a=n.callback?.(r);if(a!==void 0&&a instanceof Promise){const o=zc([n.element],!0);try{a=await a}catch{a=!1}a===!1&&o()}a!==!1&&this.hide()},{listenerSetter:this.listenerSetter}),n.element=i});if(!this.btnConfirmOnEnter&&e.length===2){const n=e.find(i=>!i.isCancel);n&&(this.btnConfirmOnEnter=n.element)}e.length>=3&&t.classList.add("is-vertical-layout"),t.append(...f),this.container.append(t)}attachScrollableListeners(e){return this.scrollable.attachBorderListeners(e)}onContentUpdate(){this.scrollable?.onAdditionalScroll?.()}show(){this.shown||this.destroyed||(this.shown=!0,this.navigationItem={type:"popup",onPop:()=>{if(this.isConfirmationNeededOnClose){const e=this.isConfirmationNeededOnClose();if(e)return Promise.resolve(e).then(()=>{this.destroy()}),!1}return this.destroy()}},rt.pushItem(this.navigationItem),_i(),Is.append(this.element),this.element.offsetWidth,this.element.classList.add("active"),this.onContentUpdate(),this.withoutOverlay||(xt.isOverlayActive=!0,be.checkAnimations2(!0)),setTimeout(()=>{this.element.classList.contains("active")&&this.listenerSetter.add(document.body)("keydown",e=>{!this.btnConfirmOnEnter||this.btnConfirmOnEnter.disabled||pt.POPUPS[pt.POPUPS.length-1]!==this||(this.confirmShortcutIsSendShortcut?E2(e):e.key==="Enter")&&(jl(this.btnConfirmOnEnter),$e(e))})},0))}hide(){if(!this.destroyed){if(!this.navigationItem){this.destroy();return}rt.backByItem(this.navigationItem)}}forceHide(){return this.destroy()}destroy(){this.destroyed||(this.destroyed=!0,this.dispatchEvent("close"),this.element.classList.add("hiding"),this.element.classList.remove("active"),this.listenerSetter.removeAll(),this.middlewareHelper.destroy(),this.withoutOverlay||(xt.isOverlayActive=!1),rt.removeItem(this.navigationItem),this.navigationItem=void 0,ze(pt.POPUPS,this),Gc(),setTimeout(()=>{this.element.remove(),this.dispatchEvent("closeAfterTimeout"),this.cleanup(),this.scrollable?.destroy(),this.withoutOverlay||be.checkAnimations2(!1)},250))}appendSolid(e){const t=document.createElement("div");(this.scrollable||this.body).prepend(t);const f=Ec(e,t);this.addEventListener("closeAfterTimeout",f)}static reAppend(){this.POPUPS.forEach(e=>{const{element:t,container:f}=e,n=t.parentElement;n&&n!==Is&&Is!==f&&Is.append(t)})}static getPopups(e){return this.POPUPS.filter(t=>t instanceof e)}static createPopup(e,...t){return new e(...t)}};pt.POPUPS=[];let ef=pt;const b3=s=>(s.find(t=>t.isCancel)||s.push({langKey:"Cancel",isCancel:!0}),s),Wn=308,Fa=420,L2=.65;ro.then(s=>{s.forEach(e=>{qs.add(e),oo.add(e)}),console.log("Supported image mime types",qs),$.sendEnvironment()});function I2(){try{fe.isMainDomain&&document.referrer&&/(^|\.)(google|bing|duckduckgo|ya|yandex)\./i.test(new URL(document.referrer).host)&&(localStorage.getItem("kz_version")==="Z"||Ci(8)>127?(localStorage.setItem("kz_version","Z"),location.href="https://web.telegram.org/a/"):localStorage.setItem("kz_version","K"))}catch{}}function x2(){const s=document.getElementById("manifest");s&&(s.href=`site${Et&&!At?"_apple":""}.webmanifest?v=jw3mK7G9Aq`)}function M2(){const s=window.visualViewport||window;let e=!1,t;const f=()=>{let n=(e&&!xt.isOverlayActive?s.height||s.innerHeight:window.innerHeight)*.01;n=+n.toFixed(2),t!==n&&(ke&&t<n&&n-t>1&&_i(),t=n,document.documentElement.style.setProperty("--vh",`${n}px`))};if(window.addEventListener("resize",f),f(),If){const n=()=>{e=i===1&&If&&!xt.isOverlayActive,f(),s!==window&&(e?(window.removeEventListener("resize",f),s.addEventListener("resize",f)):(s.removeEventListener("resize",f),window.addEventListener("resize",f)))};let i;window.onImTabChange=r=>{const a=i!==void 0;i=r,(a||i===1)&&n()},xt.addEventListener("change",()=>{n()})}}function R2(){const s=document.getElementById("column-left"),e=localStorage.getItem("sidebar-left-width");let t=parseInt(e);t=isNaN(t)?void 0:t,t>Fa?t=Fa:t<Wn*L2?t=0:t<Wn&&(t=Wn),typeof t=="number"&&String(t)!==e&&localStorage.setItem("sidebar-left-width",t+""),t===0?s.classList.add("is-collapsed"):t&&document.documentElement.style.setProperty("--current-sidebar-left-width",t+"px")}function O2(){const s=[];nn&&s.push("native-emoji"),Bc?s.push("native-scroll"):pr?s.push("overlay-scroll"):l2&&s.push("custom-scroll"),vt&&s.push("is-firefox","no-backdrop"),xe&&s.push("is-mobile"),Et?(le&&s.push("is-safari"),At?s.push("is-ios"):s.push("is-mac")):fn&&s.push("is-android"),ke?s.push("is-touch"):s.push("no-touch"),document.documentElement.classList.add(...s)}function Pa(s){const e=s==="version",t=ef.createPopup(ef,"popup-instance-deactivated",{overlayClosable:!0}),f=document.createElement("div");f.classList.add("instance-deactivated-container"),t.container.replaceWith(f);const n=document.createElement("div");n.classList.add("header"),n.append(De(e?"Deactivated.Version.Title":"Deactivated.Title"));const i=document.createElement("div");i.classList.add("subtitle"),i.append(De(e?"Deactivated.Version.Subtitle":"Deactivated.Subtitle")),f.append(n,i),document.body.classList.add("deactivated");const r=e?()=>{Ui.reload()}:()=>{document.body.classList.add("deactivated-backwards"),st.activateInstance(),setTimeout(()=>{document.body.classList.remove("deactivated","deactivated-backwards")},333)};t.addEventListener("close",r),t.show()}const Xe="Elapsed time since unlocked";function _a(s){s.lang_code==="ar"||s.lang_code==="fa"&&l1&&!1?(document.documentElement.classList.add("is-rtl"),document.documentElement.dir="rtl",document.documentElement.lang=s.lang_code,Q.setRTL(!0)):document.documentElement.dir="ltr"}document.addEventListener("DOMContentLoaded",async()=>{const s=performance.now();I2(),R2(),r1(),h2(),C.managers=Sl(),x2(),M2(),p2(),b2(),O2(),zh&&Gh(),await ps.waitForUnlock(async()=>{C.settings=await Ot.get("settings"),Js.setThemeListener();const l=await Q.getCacheLangPack();_a(l)}),console.time(Xe);const e=await $.loadAllStates(),t=e[Ae()];console.timeLog(Xe,"allStates loaded"),st.addEventListener("deactivated",Pa),await st.start(),console.timeLog(Xe,"singleInstance started");const f=st.deactivatedReason!=="version"&&$.sendAllStates(e);st.deactivatedReason&&Pa(st.deactivatedReason),await f,console.timeLog(Xe,"sent all states (1)");const n=await Q.getCacheLangPack();if(console.timeLog(Xe,"await I18n.getCacheLangPack()"),Q.setTimeFormat(C.settings.timeFormat),!f)return;await $.sendAllStates(e),console.timeLog(Xe,"sent all states (2)"),document.body.classList.toggle("has-folders-sidebar",C.settings.tabsInSidebar),C.managers.rootScope.getPremium().then(l=>{C.premium=l}),Js.setThemeListener();const i=()=>{const l=Q.format("UnreadMessages",!0);document.documentElement.style.setProperty("--unread-messages-text",`"${l}"`)};i(),n.appVersion!==fe.langPackVersion?Q.getLangPack(n.lang_code).finally(i):Aa(),C.addEventListener("language_change",l=>{Q.getLangPack(l),Aa(),i()});function r(l,u){l.style.opacity="0",u.then(()=>{window.requestAnimationFrame(()=>{l.style.opacity=""})})}console.log("got state, time:",performance.now()-s),await ro,console.timeLog(Xe,"IMAGE_MIME_TYPES_SUPPORTED_PROMISE"),_a(n);let a=t.state.authState;const c=location.hash.split("?"),d=xc(c[1]??c[0].slice(1));if(d.tgWebAuthToken&&a._!=="authStateSignedIn"){const l={token:d.tgWebAuthToken,dcId:+d.tgWebAuthDcId,userId:d.tgWebAuthUserId.toUserId(),isTest:d.tgWebAuthTest!==void 0&&!!+d.tgWebAuthTest,tgAddr:d.tgaddr};if(l.isTest!==ve.test){const u=new URLSearchParams(location.search);+d.tgWebAuthTest?u.set("test","1"):u.delete("test"),location.search=u.toString();return}C.managers.appStateManager.pushToState("authState",a={_:"authStateSignImport",data:l})}if(a._!=="authStateSignedIn"){console.log("Will mount auth page:",a._,Date.now()/1e3),(async()=>{const v=await Nt.getTotalAccounts(),D=await $.hasSomeonePremium()?xa:n1;Ae()>Math.min(D,v+1)&&u2(1)})();const l=document.getElementById("auth-pages");let u,m=!1;const h=async()=>{m||(m=!0,await Lf(),l.classList.add("auth-pages-entering"),await ge(1e3),l.classList.remove("auth-pages-enter","auth-pages-entering"))};if(l){await R.get("should_animate_auth")&&(await R.delete("should_animate_auth"),l.classList.add("auth-pages-enter"),ge(1e3).then(()=>h())),u=l.querySelector(".scrollable"),(!ke||Ut)&&u.classList.add("no-scrollbar"),u.style.opacity="0";const v=document.createElement("div");v.classList.add("auth-placeholder"),u.prepend(v),u.append(v.cloneNode())}try{await Promise.all([se(()=>Promise.resolve().then(()=>Dd),void 0,import.meta.url),se(()=>Promise.resolve().then(()=>Ed),void 0,import.meta.url)]).then(([v,A])=>{v.default.setAuthorized(!1),A.default.forceUnsubscribe()})}catch{}let p;switch(a._){case"authStateSignIn":p=(await se(()=>import("./pageSignIn-Cd3WOySy.js"),__vite__mapDeps([7,8,9,10,11,12]),import.meta.url)).default.mount();break;case"authStateSignQr":p=(await se(()=>import("./pageSignQR-Bu_Eys3X.js").then(v=>v.a),__vite__mapDeps([10,9,8,11]),import.meta.url)).default.mount();break;case"authStateAuthCode":p=(await se(()=>import("./pageAuthCode-Ld4jym4N.js"),__vite__mapDeps([13,9,7,8,10,11,12,14]),import.meta.url)).default.mount(a.sentCode);break;case"authStatePassword":p=(await se(()=>import("./pagePassword-B2NWP3Bp.js"),__vite__mapDeps([15,8,9,16,17]),import.meta.url)).default.mount();break;case"authStateSignUp":p=(await se(()=>import("./pageSignUp-DHf0D8ej.js"),__vite__mapDeps([18,16,9,19,8]),import.meta.url)).default.mount(a.authCode);break;case"authStateSignImport":p=(await se(()=>import("./pageSignImport-Cm8VYZAZ.js"),__vite__mapDeps([20,8,9]),import.meta.url)).default.mount(a.data);break}if(u){p&&await p;const v="fonts"in document?Promise.race([ge(1e3),document.fonts.ready]):Promise.resolve();v.then(async()=>{await ge(20),h()}),r(u,v)}}else{console.log("Will mount IM page:",Date.now()/1e3);const l=f1();r(document.getElementById("main-columns"),l);const[u,m]=await Promise.all([se(()=>import("./pageIm-CNuREQoB.js"),__vite__mapDeps([21,9]),import.meta.url).then(h=>h.default),R.get("should_animate_main")]);m?(await R.delete("should_animate_main"),u.pageEl.classList.add("main-screen-enter"),console.log("[my-debug] mounting page"),await u.mount(),console.timeLog(Xe,"await page.mount()"),await l,console.timeLog(Xe,"await fontsPromise"),await Lf(),u.pageEl.classList.add("main-screen-entering"),await ge(200),u.pageEl.classList.remove("main-screen-enter","main-screen-entering")):await u.mount()}});export{hh as $,fe as A,P2 as B,R as C,El as D,Lf as E,u2 as F,ns as G,ot as H,Q as I,G as J,Io as K,S2 as L,Me as M,Xf as N,L as O,Bh as P,Vc as Q,q1 as R,Ye as S,f3 as T,Ge as U,Tt as V,jf as W,Zm as X,pi as Y,$n as Z,se as _,l3 as a,G2 as a$,gm as a0,gh as a1,Xm as a2,lh as a3,M1 as a4,Oe as a5,mh as a6,e3 as a7,D0 as a8,wm as a9,Km as aA,pn as aB,o3 as aC,Al as aD,wc as aE,$2 as aF,ym as aG,T1 as aH,bm as aI,os as aJ,Qh as aK,ze as aL,cn as aM,Z2 as aN,qu as aO,Hn as aP,q2 as aQ,rl as aR,fr as aS,No as aT,mt as aU,Ks as aV,Vn as aW,E0 as aX,x0 as aY,Jr as aZ,U as a_,dm as aa,ql as ab,Ms as ac,Lu as ad,_n as ae,Mm as af,bn as ag,qi as ah,$ as ai,vm as aj,fm as ak,mo as al,xi as am,Nl as an,Zu as ao,Q2 as ap,hc as aq,gs as ar,on as as,Kf as at,Rh as au,Zi as av,er as aw,ue as ax,Rs as ay,_t as az,_i as b,Oo as b$,Do as b0,f0 as b1,_s as b2,ye as b3,y0 as b4,Js as b5,gi as b6,Vs as b7,bh as b8,hr as b9,Em as bA,ed as bB,Ee as bC,sf as bD,Mo as bE,Ti as bF,Fc as bG,rd as bH,hs as bI,Cl as bJ,Ie as bK,nc as bL,Qm as bM,jl as bN,Sh as bO,Gl as bP,Of as bQ,d1 as bR,kc as bS,o1 as bT,Yf as bU,c1 as bV,ma as bW,Lt as bX,le as bY,Y0 as bZ,be as b_,Qu as ba,z2 as bb,wt as bc,l0 as bd,at as be,Ff as bf,b3 as bg,Be as bh,Ul as bi,Ns as bj,Ut as bk,rt as bl,xt as bm,xe as bn,Et as bo,Ac as bp,Y2 as bq,no as br,ys as bs,fc as bt,Vl as bu,F2 as bv,pe as bw,st as bx,X as by,Jh as bz,Xo as c,oo as c$,t1 as c0,e1 as c1,Ia as c2,nr as c3,ec as c4,uu as c5,Kh as c6,H2 as c7,c3 as c8,W0 as c9,H0 as cA,ph as cB,fn as cC,Nh as cD,k1 as cE,mm as cF,Cm as cG,Wl as cH,bd as cI,V2 as cJ,cm as cK,Ne as cL,Ze as cM,In as cN,tm as cO,N1 as cP,d3 as cQ,Fm as cR,nm as cS,ui as cT,ia as cU,mu as cV,cc as cW,ms as cX,Fo as cY,J2 as cZ,M0 as c_,_2 as ca,Ec as cb,t0 as cc,Za as cd,$0 as ce,v2 as cf,jc as cg,At as ch,m3 as ci,u3 as cj,h3 as ck,Fd as cl,r0 as cm,Q0 as cn,Yo as co,Qo as cp,It as cq,yn as cr,eu as cs,Ql as ct,zs as cu,hm as cv,t3 as cw,Mc as cx,gn as cy,Xu as cz,St as d,wh as d$,a1 as d0,n3 as d1,Jl as d2,zl as d3,Im as d4,Ro as d5,pr as d6,jh as d7,Zf as d8,Sm as d9,p3 as dA,Lm as dB,sm as dC,ir as dD,qs as dE,$i as dF,wd as dG,Ah as dH,Zc as dI,ds as dJ,pd as dK,pl as dL,_f as dM,_m as dN,K2 as dO,bc as dP,fu as dQ,xm as dR,Ci as dS,xd as dT,Rm as dU,Xr as dV,pm as dW,nu as dX,Il as dY,Yr as dZ,im as d_,Ad as da,_1 as db,Am as dc,Zl as dd,om as de,Tu as df,oa as dg,s3 as dh,$r as di,$a as dj,Gn as dk,aa as dl,qm as dm,Vm as dn,$m as dp,Gm as dq,Wm as dr,uc as ds,Hm as dt,zm as du,jm as dv,vt as dw,li as dx,dc as dy,Ls as dz,Cf as e,fd as e$,Lh as e0,Lo as e1,am as e2,zn as e3,Fh as e4,Mh as e5,X2 as e6,S1 as e7,yi as e8,Ua as e9,ur as eA,Nd as eB,Ir as eC,Sd as eD,n1 as eE,xa as eF,co as eG,Gf as eH,Ps as eI,ps as eJ,Rn as eK,eh as eL,Ym as eM,$u as eN,Ui as eO,lm as eP,Wn as eQ,L2 as eR,Cr as eS,Le as eT,rm as eU,ct as eV,i2 as eW,Fa as eX,i3 as eY,Id as eZ,to as e_,mr as ea,La as eb,vo as ec,J1 as ed,If as ee,W2 as ef,E2 as eg,Oh as eh,Ar as ei,Pm as ej,qa as ek,Ga as el,g3 as em,nn as en,_o as eo,Ch as ep,Tc as eq,r3 as er,a3 as es,$h as et,Tm as eu,Dm as ev,zo as ew,Kl as ex,v0 as ey,Ld as ez,us as f,Um as f0,Om as f1,Bm as f2,Nm as f3,km as f4,$f as f5,Bd as f6,Ko as f7,Li as f8,gl as f9,ji as fa,Jm as fb,zf as fc,j2 as fd,Sl as fe,em as ff,tl as fg,_r as fh,un as fi,U2 as fj,so as g,ke as h,De as i,Ae as j,Uc as k,f1 as l,ff as m,$e as n,Ot as o,Cc as p,Nt as q,C as r,Df as s,zc as t,ge as u,Uh as v,Gu as w,ef as x,_c as y,T2 as z};
  21. //# sourceMappingURL=index-D_EGaVbS.js.map