(()=>{"use strict";var e,t,n,o,r,d,a={71226:(e,t,n)=>{n.d(t,{t9:()=>c,u3:()=>l,g8:()=>u});var o=n(83716),r=n(26926),d=n(69118);let a;const s=new Map,i=new Map;function u(e,t){return a||(o.eM&&console.log(">>> START LOAD WORKER"),a=new Worker(new URL(n.p+n.u(8090),n.b)),function(e){a.addEventListener("message",(t=>{let{data:n}=t;if("update"===n.type)e(n.update);else if("methodResponse"===n.type){const e=s.get(n.messageId);e&&(n.error?e.reject(n.error):e.resolve(n.response))}else if("methodCallback"===n.type){var o,r;null===(o=s.get(n.messageId))||void 0===o||null===(r=o.callback)||void 0===r||r.call(o,...n.callbackArgs)}else if("unhandledError"===n.type){var d;throw new Error(null===(d=n.error)||void 0===d?void 0:d.message)}}))}(e),"iOS"===t.platform&&window.addEventListener("focus",(()=>{m(),setTimeout((()=>m()),1e3)}))),f({type:"initApi",args:[t]})}function c(e){if(!a)return void(o.eM&&console.warn("API is not initialized"));for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{try{await d}catch(e){}})(),d}function l(e){e.isCanceled=!0;const{messageId:t}=i.get(e)||{};t&&a.postMessage({type:"cancelProgress",messageId:t})}function f(e){const t=(0,r.Z)(s),n={messageId:t,...e},o={messageId:t},d=new Promise(((e,t)=>{Object.assign(o,{resolve:e,reject:t})}));if("args"in n&&"name"in n&&"function"==typeof n.args[1]){n.withCallback=!0;const e=n.args.pop();o.callback=e,i.set(e,o)}return s.set(t,o),d.catch((()=>{})).finally((()=>{s.delete(t),o.callback&&i.delete(o.callback)})),a.postMessage(n),d}const h=Date.now();async function m(){let e=!1;try{await Promise.race([f({type:"ping"}),(0,d.wO)(150).then((()=>e?void 0:Promise.reject(new Error("HEALTH_CHECK_TIMEOUT"))))])}catch(e){console.error(e),Date.now()-h>=5e3&&window.location.reload()}finally{e=!0}}},6137:(e,t,n)=>{n.d(t,{IU:()=>r.I,Vv:()=>o.Vv,_Q:()=>o._Q,_f:()=>o._f});var o=n(94746),r=n(9077)},9077:(e,t,n)=>{let o;n.d(t,{I:()=>o}),function(e){e[e.BlobUrl=0]="BlobUrl",e[e.Progressive=1]="Progressive",e[e.Stream=2]="Stream",e[e.DownloadUrl=3]="DownloadUrl",e[e.Text=4]="Text"}(o||(o={}))},94746:(e,t,n)=>{let o;n.d(t,{Vv:()=>o,_Q:()=>d,_f:()=>r}),function(e){e.Bold="MessageEntityBold",e.Blockquote="MessageEntityBlockquote",e.BotCommand="MessageEntityBotCommand",e.Cashtag="MessageEntityCashtag",e.Code="MessageEntityCode",e.Email="MessageEntityEmail",e.Hashtag="MessageEntityHashtag",e.Italic="MessageEntityItalic",e.MentionName="MessageEntityMentionName",e.Mention="MessageEntityMention",e.Phone="MessageEntityPhone",e.Pre="MessageEntityPre",e.Strike="MessageEntityStrike",e.TextUrl="MessageEntityTextUrl",e.Url="MessageEntityUrl",e.Underline="MessageEntityUnderline",e.Spoiler="MessageEntitySpoiler",e.CustomEmoji="MessageEntityCustomEmoji",e.Unknown="MessageEntityUnknown"}(o||(o={}));const r=-1,d="MESSAGE_DELETED"},58912:(e,t,n)=>{n.d(t,{Z:()=>l});var o=n(14050),r=n(46752),d=n(70692),a=n(60706),s=n(97799);function i(){return i=Object.assign||function(e){for(var t=1;t{w(),c.add(b),null==p||p()}),[b,w,p]),[E,P]=(0,o.eJ)(String(Math.random())),k=(0,o.I4)((()=>{!0===n&&P(String(Math.random())),null==g||g()}),[g,n]);return o.ZP.createElement(s.Z,i({className:(0,r.Z)(f,C),size:t,play:!0===n?E:n,noLoop:l,onClick:m?void 0:k,onLoad:S},v))}))},97799:(e,t,n)=>{n.d(t,{Z:()=>f});var o=n(14050),r=n(69118),d=n(46752),a=n(80036),s=n(18674),i=n(45332);let u,c;async function l(){return u||(u=n.e(7941).then(n.bind(n,67941)),c=(await u).default),u}setTimeout(l,3e3);const f=(0,o.X$)((e=>{let{ref:t,className:n,style:u,tgsUrl:f,play:h,playSegment:m,speed:p,noLoop:g,size:v,quality:y,isLowPriority:b,color:I,forceOnHeavyAnimation:w,onClick:C,onLoad:S,onEnded:E}=e,P=(0,o.sO)(null);t&&(P=t);const[k,M]=(0,o.eJ)(),A=(0,o.sO)(!1),N=(0,o.sO)(!1),T=(0,o.sO)(!0),L=(0,o.sO)();L.current=h;const R=(0,o.sO)();R.current=m,(0,o.d4)((()=>{if(k||!f)return;const e=()=>{if(!P.current)return;const e=new c(P.current,f,{noLoop:g,size:v,quality:y,isLowPriority:b},S,I,E);p&&e.setSpeed(p),M(e)};c?e():l().then((()=>{(0,r.T2)((()=>{P.current&&e()}))}))}),[I,k,f,b,g,S,y,v,p,E]),(0,o.d4)((()=>{k&&k.setColor(I)}),[I,k]),(0,o.d4)((()=>()=>{k&&k.destroy()}),[k]);const Z=(0,o.I4)((function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];k&&(L.current||R.current)&&(R.current?k.playSegment(R.current):k.play(e))}),[k]),B=(0,o.I4)((()=>{k&&k.pause()}),[k]),F=(0,o.I4)((()=>{N.current=!0,k&&(A.current||(A.current=k.isPlaying()),B())}),[k,B]),D=(0,o.I4)((()=>{A.current&&Z(g),A.current=!1,N.current=!1}),[g,Z]),O=(0,o.I4)((()=>{(0,r.T2)(D)}),[D]);return(0,o.d4)((()=>{k&&(h||m?N.current?A.current=!0:Z(g):N.current?A.current=!1:B())}),[k,h,m,g,Z,B]),(0,o.d4)((()=>{k&&(T.current?T.current=!1:f&&(k.changeData(f),Z()))}),[Z,k,f]),(0,s.ZP)(F,D,w),(0,i.Z)(F,O),o.ZP.createElement("div",{ref:P,className:(0,d.Z)("AnimatedSticker",n),style:(0,a.Z)(void 0!==v&&`width: ${v}px; height: ${v}px;`,C&&"cursor: pointer",u),onClick:C})}))},10088:(e,t,n)=>{n.d(t,{Z:()=>h});var o=n(14050),r=n(33555);const d=36,a=2147483647;function s(e,t,n){let o;for(e=n?Math.floor(e/700):e>>1,e+=Math.floor(e/t),o=0;e>455;o+=d)e=Math.floor(e/35);return Math.floor(o+36*e/(e+38))}function i(e,t){const n=[],o=[],r=e.length;let i,u,c,l,f,h,m,p,g,v,y,b,I;for(i=128,c=0,l=72,f=e.lastIndexOf("-"),f<0&&(f=0),h=0;h=128)throw new RangeError("Illegal input >= 0x80");n.push(e.charCodeAt(h))}for(m=f>0?f+1:0;m=r)throw RangeError("punycode_bad_input(1)");if(y=(w=e.charCodeAt(m++))-48<10?w-22:w-65<26?w-65:w-97<26?w-97:d,y>=d)throw RangeError("punycode_bad_input(2)");if(y>Math.floor((a-c)/g))throw RangeError("punycode_overflow(1)");if(c+=y*g,b=v<=l?1:v>=l+26?26:v-l,yMath.floor(a/(d-b)))throw RangeError("punycode_overflow(2)");g*=d-b}if(u=n.length+1,l=s(c-p,u,0===p),Math.floor(c/u)>a-i)throw RangeError("punycode_overflow(3)");i+=Math.floor(c/u),c%=u,t&&o.splice(c,0,e.charCodeAt(m-1)-65<26),n.splice(c,0,i),c++}var w;if(t)for(c=0,I=n.length;c{const t=[];let n=0;const o=e.length;let r;for(;n65535&&(r-=65536,t.push(String.fromCharCode(r>>>10&1023|55296)),r=56320|1023&r),t.push(String.fromCharCode(r))}return t.join("")})(n)}var u=n(83716),c=n(46752),l=n(81396);function f(e){if(!e)return;const t=(0,l.X)(e);if(t)try{let e=decodeURI(t.replace(/%%/g,"%25"));const n=e.match(/^https?:\/\/([^/:?#]+)(?:[/:?#]|$)/i);if(!n)return;const o=n[1];return e=e.replace(o,function(e){const t=e.split("."),n=[];for(let e=0;e{let{url:t,text:n,className:d,children:a,isRtl:s}=e;const{openUrl:i}=(0,r.Sv)(),u=a||n,h=t===u,m=(0,o.I4)((e=>!t||(e.preventDefault(),i({url:t,shouldSkipModal:h}),!1)),[h,i,t]);if(!t)return;const p=(0,c.Z)(d||"text-entity-link",n.length>50&&"long-word-break-all");return o.ZP.createElement("a",{href:(0,l.X)(t),title:f(t),target:"_blank",rel:"noopener noreferrer",className:p,onClick:m,dir:s?"rtl":"auto"},u)}))},13365:(e,t,n)=>{n.d(t,{l:()=>h});const o=n.p+"TwoFactorSetupMonkeyIdle.dea4a492c144df84ddab.tgs",r=n.p+"TwoFactorSetupMonkeyTracking.eb5a7a6f166fb7589c12.tgs",d=n.p+"TwoFactorSetupMonkeyClose.604c4c833d322b7e6c3e.tgs",a=n.p+"TwoFactorSetupMonkeyPeek.1905436b042520363d7e.tgs",s=n.p+"FoldersAll.3f9f9e243d19f0fbf9aa.tgs",i=n.p+"FoldersNew.9a40d71c0c8be70f5bd1.tgs",u=n.p+"DiscussionGroupsDucks.9ea453d1be9d1b0ee77a.tgs",c=n.p+"Lock.12547a0228d4fa544e53.tgs",l=n.p+"Congratulations.b6623b8efc6fedec9d33.tgs",f=n.p+"Experimental.43d62096368bf5a00ae3.tgs",h={MonkeyIdle:o,MonkeyTracking:r,MonkeyClose:d,MonkeyPeek:a,FoldersAll:s,FoldersNew:i,DiscussionGroups:u,Lock:c,CameraFlip:n.p+"CameraFlip.1a9fe44cf01fcb22347d.tgs",HandFilled:n.p+"HandFilled.f87939d160f1dc288586.tgs",HandOutline:n.p+"HandOutline.f9831751ba60df30c484.tgs",Speaker:n.p+"Speaker.04bb3743412b41ff83c5.tgs",VoiceAllowTalk:n.p+"VoiceAllowTalk.a9cc7c39ec438973ddc9.tgs",VoiceMini:n.p+"VoiceMini.bf00ffdf69625c579569.tgs",VoiceMuted:n.p+"VoiceMuted.a4b4ec6bfd7c6c5fb275.tgs",VoiceOutlined:n.p+"VoiceOutlined.91b394ab3562cdfad6bc.tgs",Peach:n.p+"Peach.a289b2c54c563f11208f.tgs",Eggplant:n.p+"Eggplant.7693d877087b802d04be.tgs",Cumshot:n.p+"Cumshot.7a17984a6b80787dab34.tgs",JoinRequest:n.p+"Requests.af9f19772695a8898810.tgs",Invite:n.p+"Invite.4502ec3aa4249d6e6723.tgs",QrPlane:n.p+"QrPlane.a921709f266564f65b7e.tgs",Congratulations:l,Experimental:f}},15376:(e,t,n)=>{n.d(t,{K2:()=>r,Oh:()=>a,mD:()=>d,v6:()=>s,yW:()=>o});function o(e){return e>536870912?`${(e/1073741824).toFixed(1)} GB`:e>524288?`${(e/1048576).toFixed(1)} MB`:`${(e/1024).toFixed(1)} KB`}function r(e){const{fileName:t,mimeType:n}=e;return d(t,n)}function d(e,t){return e&&-1!==e.indexOf(".")?e.split(".").pop():t.split("/").pop()}function a(e){switch(e){case"apk":case"xls":case"xlsx":return"green";case"zip":case"rar":case"7z":case"tar":case"gz":case"ppt":case"pptx":return"orange";case"pdf":case"xps":return"red";default:return"default"}}function s(e){return Boolean(e.previewBlobUrl||e.thumbnail)}},64784:(e,t,n)=>{n.d(t,{Z:()=>d});var o=n(33681);const r=new RegExp(`^(?:${o.Z.source})+$`,""),d=e=>{if(e.length>24)return!1;if(!Boolean(e.match(r)))return!1;let t=0;for(;o.Z.exec(e);)if(t++,t>3)return o.Z.lastIndex=0,!1;return t}},18005:(e,t,n)=>{n.d(t,{D:()=>y});var o=n(14050),r=n(83158),d=n(48035),a=n(9937),s=n(996),i=n(32340),u=n(46752),c=n(8337),l=n(33555);const f=e=>{let{className:t,sender:n,children:r}=e;const{openChat:d}=(0,l.Sv)(),a=(0,o.I4)((()=>{n&&d({id:n.id})}),[n,d]);return n?o.ZP.createElement(c.Z,{className:(0,u.Z)("UserLink",t),onClick:a},r):r},h=e=>{let{className:t,message:n,children:r}=e;const{focusMessage:d}=(0,l.Sv)(),a=(0,o.I4)((()=>{n&&d({chatId:n.chatId,messageId:n.id})}),[d,n]);return n?o.ZP.createElement(c.Z,{className:(0,u.Z)("MessageLink",t),onClick:a},r):r},m=e=>{let{className:t,chatId:n,children:r}=e;const{openChat:d}=(0,l.Sv)(),a=(0,o.I4)((()=>{n&&d({id:n})}),[n,d]);return n?o.ZP.createElement(c.Z,{className:(0,u.Z)("ChatLink",t),onClick:a},r):r},p=e=>{let{className:t,groupCall:n,children:r}=e;const{joinGroupCall:d}=(0,l.Sv)(),a=(0,o.I4)((()=>{n&&d({id:n.id,accessHash:n.accessHash})}),[n,d]);return n?o.ZP.createElement(c.Z,{className:(0,u.Z)("GroupCallLink",t),onClick:a},r):r},g=32,v=" ";function y(e,t,n,o,r,d,s){let u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};if(!t.content.action)return[];const{text:c,translationValues:l,amount:f,currency:h,call:m,score:p}=t.content.action,g=[],y=u.asPlainText||u.asTextWithSpoilers,k="Chat.Service.Group.UpdatedPinnedMessage1"!==c||d?c:"Message.PinnedGenericMessage";let M,A=e(k,null!=l&&l.length?l:void 0);return k.includes("ScoredInGame")&&(A=A.replace("un1","%action_origin%").replace("un2","%message%")),"ActionGiftOutbound"===k&&(A=A.replace("un2","%gift_payment_amount%").replace(/\*\*/g,"")),"ActionGiftInbound"===k&&(A=A.replace("un1","%action_origin%").replace("un2","%gift_payment_amount%").replace(/\*\*/g,"")),A.includes("%payment_amount%")&&(M=P(A,"%payment_amount%",(0,a.x)(f,h,e.code)),A=M.pop(),g.push(...M)),M=P(A,"%action_origin%",n?C(n,y)||v:o?S(e,o,y)||v:"User"),A=M.pop(),g.push(...M),A.includes("%gift_payment_amount%")&&(M=P(A,"%gift_payment_amount%",(0,a.x)(f,h,e.code)),A=M.pop(),g.push(...M)),A.includes("%score%")&&(M=P(A,"%score%",p.toString()),A=M.pop(),g.push(...M)),M=P(A,"%target_user%",r?r.map((e=>C(e,y))).filter(Boolean):"User"),A=M.pop(),g.push(...M),M=P(A,"%message%",d?I(e,d,u):"a message"),A=M.pop(),g.push(...M),M=P(A,"%product%",d?b(d):"a product"),A=M.pop(),g.push(...M),M=P(A,"%target_chat%",s?E(s,y):"another chat"),M.forEach((e=>{g.push(...(0,i.Z)(e))})),u.asPlainText?g.join("").trim():m?w(m,g):g}function b(e){return e.content&&e.content.invoice?e.content.invoice.title:"a product"}function I(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{asPlainText:d,asTextWithSpoilers:a}=n;if(d)return(0,r.MK)(e,t,void 0,g);const i=(0,s.e)(e,t,void 0,void 0,g);return a?o.ZP.createElement("span",null,i):o.ZP.createElement(h,{className:"action-link",message:t},i)}function w(e,t){return o.ZP.createElement(p,{groupCall:e},t)}function C(e,t){const n=(0,d.Z)((0,r.Js)(e),g);return t?n:o.ZP.createElement(f,{className:"action-link",sender:e},e&&(0,i.Z)(n))}function S(e,t,n){const a=(0,d.Z)((0,r.U)(e,t),g);return n?a:o.ZP.createElement(m,{className:"action-link",chatId:t.id},t&&(0,i.Z)(a))}function E(e,t){const n="another chat";return t?n:o.ZP.createElement(m,{className:"action-link underlined-link",chatId:e},n)}function P(e,t,n){const o=e.indexOf(t);if(o<0||!n)return[e];const r=[];return r.push(e.substring(0,o)),Array.isArray(n)?n.forEach(((e,t)=>{r.push(e),t+1{n.d(t,{X:()=>i,e:()=>u});var o=n(6137),r=n(83158),d=n(32340),a=n(13049),s=n(48035);function i(e,t,n,o,d,i,u){const{text:c,entities:l}=e.content.text||{};if(!c){const t=(0,r.UD)(e);return t?[(0,s.Z)(t,d)]:void 0}return(0,a.H)((0,s.Z)(c,d),l,t,n,void 0,e.id,o,i,u)}function u(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3?arguments[3]:void 0,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:r.lN,c=arguments.length>5?arguments[5]:void 0;const{entities:l}=t.content.text||{},f=null==l?void 0:l.some((e=>e.type===o.Vv.Spoiler)),h=null==l?void 0:l.some((e=>e.type===o.Vv.CustomEmoji));if(!f&&!h){const o=(0,s.Z)((0,r.MK)(e,t,n),u);return a?(0,d.Z)(o,["emoji","highlight"],{highlight:a}):(0,d.Z)(o)}const m=!n&&(0,r.Eb)(t),p=m?`${m} `:"",g=i(t,a,void 0,!0,u,void 0,c),v=(0,r.Kk)(e,t,g);return[...(0,d.Z)(p),...Array.isArray(v)?v:[v]].filter(Boolean)}},32340:(e,t,n)=>{n.d(t,{Z:()=>m,h:()=>C});var o=n(14050),r=n(33681),d=n(83716),a=n(77361),s=n(34284),i=n(46752),u=n(60782),c=n(97373),l=n(10088);const f=/^[\d\wа-яё]$/i,h=/(\*\*|__).+?\1/g;function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["emoji"],n=arguments.length>2?arguments[2]:void 0;return"string"!=typeof e?[e]:(0,u.oA)(t.reduce(((e,t)=>{switch(t){case"escape_html":return p(e);case"hq_emoji":return r.Z.lastIndex=0,g(e,"big","jsx");case"emoji":return r.Z.lastIndex=0,g(e,"small","jsx");case"emoji_html":return r.Z.lastIndex=0,g(e,"small","html");case"br":return v(e,"jsx");case"br_html":return v(e,"html");case"highlight":return y(e,n.highlight);case"links":return I(e);case"simple_markdown":return w(e,"jsx");case"simple_markdown_html":return w(e,"html")}return e}),[e]))}function p(e){const t=document.createElement("div");return e.reduce(((e,n)=>"string"!=typeof n?(e.push(n),e):(t.innerText=n,e.push(t.innerHTML),e)),[])}function g(e,t,n){return a.op?e:e.reduce(((e,d)=>{if("string"!=typeof d)return e.push(d),e;const a=(d=(0,s.g6)(d)).split(r.Z),u=d.match(r.Z)||[];return e.push(a[0]),u.reduce(((e,r,d)=>{const u=(0,s.DW)(r);if(!u)return e;const c=`./img-apple-${"big"===t?"160":"64"}/${u}.png`,l=(0,i.Z)("emoji","small"===t&&"emoji-small");if("jsx"===n){const t=s.Uz.has(c);e.push(o.ZP.createElement("img",{src:c,className:`${l}${t?"":" opacity-transition slow shown"}`,alt:r,"data-path":c,onLoad:t?void 0:s.mE}))}"html"===n&&e.push(`${r}`);const f=2*d+2;return a[f]&&e.push(a[f]),e}),e)}),[])}function v(e,t){return e.reduce(((e,n)=>{if("string"!=typeof n)return e.push(n),e;const r=n.split(/\r\n|\r|\n/g).reduce(((e,n,r,d)=>{const a=n.trimLeft(),s=n.length-a.length;return e.push(String.fromCharCode(160).repeat(s)+a),r!==d.length-1&&e.push("jsx"===t?o.ZP.createElement("br",null):"
"),e}),[]);return[...e,...r]}),[])}function y(e,t){return e.reduce(((e,n)=>{if("string"!=typeof n||!t)return e.push(n),e;const r=n.toLowerCase(),d=r.indexOf(t.toLowerCase()),a=r[d+t.length];if(d<0||a&&a.match(f))return e.push(n),e;const s=[];return s.push(n.substring(0,d)),s.push(o.ZP.createElement("span",{className:"matching-text-highlight"},n.substring(d,d+t.length))),s.push(n.substring(d+t.length)),[...e,...s]}),[])}const b=new RegExp(`${d.FM}|${d.uW}`,"ig");function I(e){return e.reduce(((e,t)=>{if("string"!=typeof t)return e.push(t),e;const n=t.match(b);if(!n||!n.length)return e.push(t),e;const r=[];let d=n.shift(),a=0;for(;d;){const e=t.indexOf(d,a);r.push(t.substring(a,e)),d.startsWith("@")?r.push(o.ZP.createElement(c.Z,{username:d},d)):(d.endsWith("?")&&(d=d.slice(0,d.length-1)),r.push(o.ZP.createElement(l.Z,{text:d,url:d}))),a=e+d.length,d=n.shift()}return r.push(t.substring(a)),[...e,...r]}),[])}function w(e,t){return e.reduce(((e,n)=>{if("string"!=typeof n)return e.push(n),e;const r=n.split(h),d=n.match(h)||[];return e.push(r[0]),d.reduce(((e,n,d)=>{"jsx"===t?e.push(n.startsWith("**")?o.ZP.createElement("b",null,n.replace(/\*\*/g,"")):o.ZP.createElement("i",null,n.replace(/__/g,""))):e.push(n.startsWith("**")?`${n.replace(/\*\*/g,"")}`:`${n.replace(/__/g,"")}`);const a=2*d+2;return r[a]&&e.push(r[a]),e}),e)}),[])}function C(e,t){const n=(e.trim().match(/\n/g)||"").length+1,{lineHeight:o}=getComputedStyle(t),r=parseFloat(o.split("px")[0]);return t.clientHeight>=(n+1)*r}},13049:(e,t,n)=>{n.d(t,{z:()=>x,H:()=>O});var o=n(14050),r=n(33555),d=n(6137),a=n(46752),s=n(32340),i=n(64319),u=n(50711),c=n(97373),l=n(10088),f=n(60706);const h=new Map,m=(0,a.y)("Spoiler"),p=(0,o.X$)((e=>{let{children:t,messageId:n}=e;const r=(0,o.sO)(null),[d,a,s]=(0,f.Z)(),i=(0,o.I4)((e=>{var t;e.preventDefault(),e.stopPropagation(),null===(t=h.get(n))||void 0===t||t.forEach((e=>e.reveal()));const o=r.current.innerText.length,d=1e3*Math.round(o/23),a=Math.max(5e3,Math.min(d,6e4));setTimeout((()=>{var e;null===(e=h.get(n))||void 0===e||e.forEach((e=>e.conceal())),s()}),a)}),[s,n]);return(0,o.d4)((()=>{if(n)return h.has(n)?h.get(n).push({reveal:a,conceal:s}):h.set(n,[{reveal:a,conceal:s}]),()=>{h.delete(n)}}),[s,i,d,n,a]),o.ZP.createElement("span",{className:m("&",!d&&"concealed",!d&&Boolean(n)&&"animated"),onClick:n&&!d?i:void 0},o.ZP.createElement("span",{className:m("content"),ref:r},t))}));var g=n(77361),v=n(74753),y=n(6202),b=n(69118);const I=new Set,w=new Set,C=(0,b.P2)((()=>{(0,r.Sv)().loadCustomEmojis({ids:[...I]}),I.clear()}),200,!1),S=(0,b.P2)((()=>{(0,r.Sv)().updateLastRenderedCustomEmojis({ids:[...w].reverse()}),w.clear()}),200,!1);var E=n(3657),P=n(2903),k=n(65116);const M=new Set;let A;(0,k.ll)((e=>{var t;if(e.customEmojis.byId!==(null===(t=A)||void 0===t?void 0:t.customEmojis.byId)){for(const e of M)e();A=e}}));var N=n(97799);const T=(0,o.X$)((e=>{let{documentId:t,children:n,observeIntersection:d}=e;const a=(0,o.sO)(null),i=function(e){const[t,n]=(0,o.eJ)((0,r.Rd)().customEmojis.byId[e]),d=(0,o.I4)((()=>{n((0,r.Rd)().customEmojis.byId[e])}),[e]);return(0,o.d4)((()=>{e&&d()}),[e,d]),(0,o.d4)((()=>{if(!t)return M.add(d),()=>{M.delete(d)}}),[t,e,d]),t}(t),u=i&&`sticker${i.id}`,c=(0,y.Z)(u),l=(0,P.Z)(i),f=(0,E.Op)(a,d);var h;h=t,w.add(h),S(),(0,r.Rd)().customEmojis.byId[h]||(I.add(h),C()),(0,o.d4)((()=>{var e;if(null==i||!i.isVideo)return;const t=null===(e=a.current)||void 0===e?void 0:e.querySelector("video");t&&f!==!t.paused&&(f?(0,v.Z)(t):t.pause())}),[i,f]);const m=(0,o.Ye)((()=>i&&(l||c)?!c||i.isVideo&&!g.Hh?o.ZP.createElement("img",{src:l,alt:i.emoji}):i.isVideo||i.isLottie?i.isVideo?o.ZP.createElement("video",{playsInline:!0,muted:!0,autoPlay:f,loop:!0,src:c}):o.ZP.createElement(N.Z,{size:24,tgsUrl:c,play:f,isLowPriority:!0}):o.ZP.createElement("img",{src:c,alt:i.emoji}):n&&(0,s.Z)(n,["emoji"])),[n,i,f,c,l]);return o.ZP.createElement("div",{ref:a,className:"text-entity-custom-emoji emoji"},m)}));var L=n(77510),R=n(12255),Z=n(59107);const B=(0,o.X$)((e=>{let{text:t,className:n,noCopy:d,onWordWrapToggle:u}=e;const{showNotification:c}=(0,r.Sv)(),l=(0,o.sO)(null),f=(0,R.Z)(),h=(0,Z.Z)(),[m,p]=(0,o.eJ)(!0),[g,v]=(0,o.eJ)(!1),y=(0,o.I4)((()=>{const e=(0,s.h)(t,l.current.parentElement);v(e)}),[t]);(0,o.d4)((()=>{m&&y()}),[y,m,t,f]);const b=(0,o.I4)((()=>{(0,i.TE)(t),c({message:h("TextCopied")})}),[h,c,t]),I=(0,o.I4)((()=>{p(!m),null==u||u(!m)}),[m,u]),w=(0,a.Z)("d09hp4fxFTuFw1emBUDA",!g&&d&&"We_Wcr7YvkkUM8ICjRAs"),C=(0,a.Z)("SwhO2lEtk47g68_ixpDe",n),S=(0,a.Z)("iEZTJnlmMCct8jJztTx8",m&&"B4kEjXkw8Sse9g0Xv_OO");return o.ZP.createElement("div",{className:C,ref:l},o.ZP.createElement("div",{className:w},g&&o.ZP.createElement("div",{className:S,onClick:I,title:"Word Wrap"},o.ZP.createElement("i",{className:"icon-word-wrap"})),!d&&o.ZP.createElement("div",{className:"deqdY4TS7mStC8qkslV4",onClick:b,title:h("Copy")},o.ZP.createElement("i",{className:"icon-copy"}))))})),F=(0,o.X$)((e=>{let{text:t,noCopy:n}=e;const[r,d]=(0,o.eJ)(!0),s=(0,o.I4)((e=>{d(e)}),[]),i=(0,a.Z)("text-entity-pre",!r&&"no-word-wrap");return o.ZP.createElement("pre",{className:i},o.ZP.createElement("div",{className:"pre-code custom-scroll-x"},t),o.ZP.createElement(B,{text:t,className:"code-overlay",onWordWrapToggle:s,noCopy:n}))})),D=(0,o.X$)((e=>{let{text:t,language:r,noCopy:d}=e;const[s,i]=(0,o.eJ)(!0),{result:u}=(0,L.Z)((()=>r?Promise.all([n.e(3966),n.e(4713)]).then(n.bind(n,94713)).then((e=>e.default(t,r))):Promise.resolve(void 0)),[r,t]),c=(0,o.I4)((e=>{i(e)}),[]);if(!u)return o.ZP.createElement(F,{text:t,noCopy:d});const l=(0,a.Z)("code-block",!s&&"no-word-wrap");return o.ZP.createElement("pre",{className:l},u,o.ZP.createElement(B,{text:t,className:"code-overlay",onWordWrapToggle:c,noCopy:d}))}));function O(e,t,n,r,i,u,f,h,m){if(!t||!t.length)return _(e,n,r,i,f);const g=[];let v=!1;const y=function(e){const t=new Set,n=[];return e.forEach(((o,r)=>{if(t.has(r))return;const d=$(o,r,e,t);d&&(d.organizedIndexes.forEach((e=>{t.add(e)})),n.push(d))})),n}(t);function b(t,g,y,I){const w=[],{entity:C,nestedEntities:S}=y,{offset:E,length:P,type:k}=C;let M=e.substring(t,E);const A=M.length;M&&(v&&M.length>0&&"\n"===M[0]&&(M=M.substr(1),v=!1),M&&w.push(..._(M,n,r,i,f)));const N=t+A,L=N+P;let R=e.substring(E,E+P);const Z=[];if(v&&R.length>0&&"\n"===R[0]&&(R=R.substr(1),v=!1),k===d.Vv.Pre&&(v=!0),S.length){let e=N;S.forEach(((t,n)=>{const{renderResult:o,entityEndIndex:r}=b(e,L,t,n===S.length-1);Z.push(...o),e=r}))}const B=i?function(e,t,n){const o="string"==typeof t?t:void 0,r=e.type===d.Vv.Pre?t.trimEnd():t,a=n.length?n.join(""):(0,s.Z)(r,["escape_html","emoji_html","br_html"]).join("");if(!o)return a;switch(e.type){case d.Vv.Bold:return`${a}`;case d.Vv.Italic:return`${a}`;case d.Vv.Underline:return`${a}`;case d.Vv.Code:return`${a}`;case d.Vv.Pre:return`\`\`\`${e.language||""}
${a}
\`\`\`
`;case d.Vv.Strike:return`${a}`;case d.Vv.MentionName:return`${a}`;case d.Vv.Url:case d.Vv.TextUrl:return`${a}`;case d.Vv.Spoiler:return`${a}`;default:return a}}(C,R,Z):function(e,t,n,r,s,i,u,f){const h="string"==typeof t&&t,m=n.length?n:t;function g(){return _(m,r,void 0,void 0,i)}if(!h)return g();if(i){const t=g();return e.type===d.Vv.Spoiler?o.ZP.createElement(p,null,t):e.type===d.Vv.CustomEmoji?o.ZP.createElement(T,{documentId:e.documentId,observeIntersection:f},g()):t}switch(e.type){case d.Vv.Bold:return o.ZP.createElement("strong",null,g());case d.Vv.Blockquote:return o.ZP.createElement("blockquote",null,g());case d.Vv.BotCommand:return o.ZP.createElement("a",{onClick:j,className:"text-entity-link",dir:"auto"},g());case d.Vv.Hashtag:case d.Vv.Cashtag:return o.ZP.createElement("a",{onClick:V,className:"text-entity-link",dir:"auto"},g());case d.Vv.Code:return o.ZP.createElement("code",{className:(0,a.Z)("text-entity-code",!u&&"clickable"),onClick:u?void 0:W,role:"textbox",tabIndex:0},g());case d.Vv.Email:return o.ZP.createElement("a",{href:`mailto:${h}`,target:"_blank",rel:"noopener noreferrer",className:"text-entity-link",dir:"auto"},g());case d.Vv.Italic:return o.ZP.createElement("em",null,g());case d.Vv.MentionName:return o.ZP.createElement(c.Z,{userId:e.userId},g());case d.Vv.Mention:return o.ZP.createElement(c.Z,{username:h},g());case d.Vv.Phone:return o.ZP.createElement("a",{href:`tel:${h}`,className:"text-entity-link",dir:"auto"},g());case d.Vv.Pre:return o.ZP.createElement(D,{text:h,language:e.language,noCopy:u});case d.Vv.Strike:return o.ZP.createElement("del",null,g());case d.Vv.TextUrl:case d.Vv.Url:return o.ZP.createElement(l.Z,{url:U(h,e),text:h},g());case d.Vv.Underline:return o.ZP.createElement("ins",null,g());case d.Vv.Spoiler:return o.ZP.createElement(p,{messageId:s},g());case d.Vv.CustomEmoji:return o.ZP.createElement(T,{documentId:e.documentId,observeIntersection:f},g());default:return g()}}(C,R,Z,n,u,f,h,m);if(Array.isArray(B)?w.push(...B):w.push(B),I&&L0&&"\n"===t[0]&&(t=t.substring(1)),t&&w.push(..._(t,n,r,i,f))}return{renderResult:w,entityEndIndex:L}}let I=0;return y.forEach(((t,n)=>{const{renderResult:o,entityEndIndex:r}=b(I,e.length,t,n===y.length-1);g.push(...o),I=r})),g}function x(e){const{text:t,entities:n}=e||{};if(!t)return"";const o=O(t,n,void 0,void 0,!0);return Array.isArray(o)?o.join(""):o}function _(e,t,n,o,r){if(Array.isArray(e)){const d=[];return e.forEach((e=>{d.push(..._(e,t,n,o,r))})),d}if(o)return(0,s.Z)(e,["escape_html","emoji_html","br_html"]);const d=[n?"hq_emoji":"emoji"];return r||d.push("br"),t?(0,s.Z)(e,d.concat("highlight"),{highlight:t}):(0,s.Z)(e,d)}function $(e,t,n,o){const{offset:r,length:d}=e,a=new Set([t]);if(o.has(t))return;const s=[];return n.filter(((e,n)=>n>t&&e.offset>=r&&e.offset$(e,n.indexOf(e),n,o))).filter(Boolean).forEach((e=>{let t=!1;e.organizedIndexes.forEach((e=>{t||a.has(e)||(t=!0),a.add(e)})),t&&s.push(e)})),{entity:e,organizedIndexes:a,nestedEntities:s}}function U(e,t){const{type:n}=t;return n===d.Vv.TextUrl&&t.url?t.url:e}function j(e){(0,r.Sv)().sendBotCommand({command:e.currentTarget.innerText})}function V(e){(0,r.Sv)().setLocalTextSearchQuery({query:e.currentTarget.innerText}),(0,r.Sv)().searchTextMessagesLocal()}function W(e){(0,i.TE)(e.currentTarget.innerText),(0,r.Sv)().showNotification({message:(0,u.i0)("TextCopied")})}},30386:(e,t,n)=>{n.d(t,{b:()=>a,q:()=>d});var o=n(83716),r=n(77361);function d(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.cj||!document.activeElement||document.activeElement.id!==o.R2||!t&&e.target!==e.currentTarget||e.preventDefault()}function a(e){d(e,!0)}},97373:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(14050),r=n(33555),d=n(11192);const a=(0,r.c$)(((e,t)=>{let{userId:n}=t;return{userOrChat:n?(0,d.dy)(e,n):void 0}}))((e=>{let{username:t,userOrChat:n,children:d}=e;const{openChat:a,openChatByUsername:s}=(0,r.Sv)();return o.ZP.createElement("a",{onClick:()=>{n?a({id:n.id}):t&&s({username:t.substring(1)})},className:"text-entity-link",dir:"auto"},d)}))},231:(e,t,n)=>{n.d(t,{Z:()=>i});var o=n(14050),r=n(46752),d=n(80036),a=n(49204),s=n(68512);const i=e=>{let{ref:t,type:n="button",id:i,onClick:u,onContextMenu:c,onMouseDown:l,onMouseEnter:f,onMouseLeave:h,onFocus:m,children:p,size:g="default",color:v="primary",backgroundImage:y,className:b,round:I,pill:w,fluid:C,isText:S,isLoading:E,isShiny:P,withPremiumGradient:k,ariaLabel:M,ariaControls:A,hasPopup:N,href:T,download:L,disabled:R,allowDisabledClick:Z,ripple:B,faded:F,tabIndex:D,isRtl:O,noPreventDefault:x,shouldStopPropagation:_,style:$}=e,U=(0,o.sO)(null);t&&(U=t);const[j,V]=(0,o.eJ)(!1),W=(0,r.Z)("Button",b,g,v,I&&"round",w&&"pill",C&&"fluid",R&&"disabled",Z&&"click-allowed",S&&"text",E&&"loading",B&&"has-ripple",F&&"faded",j&&"clicked",y&&"with-image",P&&"shiny",k&&"premium"),H=(0,o.I4)((e=>{!Z&&R||!u||u(e),_&&e.stopPropagation(),V(!0),setTimeout((()=>{V(!1)}),400)}),[Z,R,u,_]),G=(0,o.I4)((e=>{x||e.preventDefault(),!Z&&R||!l||l(e)}),[Z,R,x,l]);return T?o.ZP.createElement("a",{ref:U,id:i,className:W,href:T,title:M,download:L,tabIndex:D,dir:O?"rtl":void 0,"aria-label":M,"aria-controls":A,style:$},p,!R&&B&&o.ZP.createElement(s.Z,null)):o.ZP.createElement("button",{ref:U,id:i,type:n,className:W,onClick:H,onContextMenu:c,onMouseDown:G,onMouseEnter:f&&!R?f:void 0,onMouseLeave:h&&!R?h:void 0,onFocus:m&&!R?m:void 0,"aria-label":M,"aria-controls":A,"aria-haspopup":N,title:M,tabIndex:D,dir:O?"rtl":void 0,style:(0,d.Z)(y&&`background-image: url(${y})`)},E?o.ZP.createElement("div",null,o.ZP.createElement("span",{dir:O?"auto":void 0},"Please wait..."),o.ZP.createElement(a.Z,{color:S?"blue":"white"})):p,!R&&B&&o.ZP.createElement(s.Z,null))}},14605:(e,t,n)=>{n.d(t,{Z:()=>i});var o=n(14050),r=n(46752),d=n(59107),a=n(32340),s=n(49204);const i=(0,o.X$)((e=>{let{id:t,name:n,value:i,label:u,subLabel:c,checked:l,tabIndex:f,disabled:h,round:m,blocking:p,isLoading:g,className:v,onChange:y,onCheck:b}=e;const I=(0,d.Z)(),w=(0,o.I4)((e=>{y&&y(e),b&&b(e.currentTarget.checked)}),[y,b]),C=(0,r.Z)("Checkbox",h&&"disabled",m&&"round",g&&"loading",p&&"blocking",v);return o.ZP.createElement("label",{className:C,dir:I.isRtl?"rtl":void 0},o.ZP.createElement("input",{type:"checkbox",id:t,name:n,value:i,checked:l,disabled:h,tabIndex:f,onChange:w}),o.ZP.createElement("div",{className:"Checkbox-main"},o.ZP.createElement("span",{className:"label",dir:"auto"},"string"==typeof u?(0,a.Z)(u):u),c&&o.ZP.createElement("span",{className:"subLabel",dir:"auto"},(0,a.Z)(c))),g&&o.ZP.createElement(s.Z,null))}))},53106:(e,t,n)=>{n.d(t,{Z:()=>d});var o=n(14050),r=n(52328);const d=e=>{let{trigger:t,className:n,children:d,positionX:a="left",positionY:s="top",footer:i,forceOpen:u,onOpen:c,onClose:l}=e;const f=(0,o.sO)(null),h=(0,o.sO)(null),[m,p]=(0,o.eJ)(!1),g=(0,o.I4)((()=>{p(!1),l&&l()}),[l]);return o.ZP.createElement("div",{ref:h,className:`DropdownMenu ${n||""}`,onKeyDown:e=>{const t=f.current;if(!m||40!==e.keyCode||!t)return;const n=document.activeElement,o=Array.from(t.children);n&&-1!==o.indexOf(n)||o[0].focus()}},t({onTrigger:()=>{p(!m),m?l&&l():c&&c()},isOpen:m}),o.ZP.createElement(r.Z,{ref:f,containerRef:h,isOpen:m||Boolean(u),className:n||"",positionX:a,positionY:s,footer:i,autoClose:!0,onClose:g,shouldSkipTransition:u},d))}},97687:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(14050),r=n(46752),d=n(59107);const a=(0,o.X$)((e=>{let{ref:t,id:n,className:a,value:s,label:i,error:u,success:c,disabled:l,readOnly:f,placeholder:h,autoComplete:m,inputMode:p,maxLength:g,tabIndex:v,teactExperimentControlled:y,onChange:b,onInput:I,onKeyPress:w,onKeyDown:C,onBlur:S,onPaste:E}=e;const P=(0,d.Z)(),k=u||c||i,M=(0,r.Z)("input-group",s&&"touched",u?"error":c&&"success",l&&"disabled",f&&"disabled",k&&"with-label",a);return o.ZP.createElement("div",{className:M,dir:P.isRtl?"rtl":void 0},o.ZP.createElement("input",{ref:t,className:"form-control",type:"text",id:n,dir:"auto",value:s||"",tabIndex:v,placeholder:h,maxLength:g,autoComplete:m,inputMode:p,disabled:l,readOnly:f,onChange:b,onInput:I,onKeyPress:w,onKeyDown:C,onBlur:S,onPaste:E,"aria-label":k,teactExperimentControlled:y}),k&&o.ZP.createElement("label",{htmlFor:n},k))}))},8337:(e,t,n)=>{n.d(t,{Z:()=>d});var o=n(14050),r=n(46752);const d=e=>{let{children:t,isPrimary:n,className:d,isRtl:a,onClick:s}=e;const i=(0,o.I4)((e=>{e.preventDefault(),s(e)}),[s]);return o.ZP.createElement("a",{href:"#",className:(0,r.Z)("h_qmZuKBrM7SWOEcmH68",d,n&&"iZ_WxIDQyqM2SOYqu4Y8"),dir:a?"rtl":"auto",onClick:s?i:void 0},t)}},34288:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(14050),r=n(49204),d=n(46752);const a=(0,o.X$)((e=>{let{color:t="blue",backgroundColor:n,onClick:a}=e;return o.ZP.createElement("div",{className:(0,d.Z)("Loading",a&&"interactive"),onClick:a},o.ZP.createElement(r.Z,{color:t,backgroundColor:n}))}))},52328:(e,t,n)=>{n.d(t,{Z:()=>p});var o=n(14050),r=n(31212),d=n(72313),a=n(58758),s=n(274),i=n(23989),u=n(46752),c=n(80036),l=n(18674),f=n(46590),h=n(30386),m=n(77361);const p=e=>{let{ref:t,containerRef:n,isOpen:p,id:g,className:v,style:y,bubbleStyle:b,ariaLabelledBy:I,children:w,transformOriginX:C,transformOriginY:S,positionX:E="left",positionY:P="top",autoClose:k=!1,footer:M,noCloseOnBackdrop:A=!1,noCompact:N,onCloseAnimationEnd:T,onClose:L,onMouseEnter:R,onMouseLeave:Z,shouldSkipTransition:B}=e,F=(0,o.sO)(null);t&&(F=t);const D=n||F,{transitionClassNames:O}=(0,r.Z)(p,T,B,void 0,B);(0,o.d4)((()=>p?(0,i.Z)(L):void 0),[p,L]),(0,f.Z)({isActive:p,onBack:L,shouldBeReplaced:!0}),(0,s.Z)((e=>{let[t]=e;(p||!p&&!0===t)&&(0,l.YW)(200)}),[p]);const x=(0,d.Z)(F,p,k?L:void 0,void 0,!0);(0,a.Z)(p,D,A?void 0:L);const _=(0,u.Z)("bubble menu-container custom-scroll",P,E,M&&"with-footer",O),$=void 0!==S?`${S}px`:void 0,U=void 0!==C?`${C}px`:void 0;return o.ZP.createElement("div",{id:g,className:(0,u.Z)("Menu no-selection",!N&&m.FW&&"compact",!m.gk&&"no-blur",v),style:y,"aria-labelledby":I,role:I?"menu":void 0,onKeyDown:p?x:void 0,onMouseEnter:R,onMouseLeave:p?Z:void 0},p&&o.ZP.createElement("div",{className:"backdrop",onMouseDown:h.b}),o.ZP.createElement("div",{role:"presentation",ref:F,className:_,style:(0,c.Z)(`transform-origin: ${U||E} ${$||P}`,b),onClick:k?L:void 0},w,M&&o.ZP.createElement("div",{className:"footer"},M)))}},58964:(e,t,n)=>{n.d(t,{Z:()=>i});var o=n(14050),r=n(83716),d=n(46752),a=n(59107),s=n(77361);const i=e=>{const{icon:t,customIcon:n,className:i,children:u,onClick:c,href:l,download:f,disabled:h,destructive:m,ariaLabel:p,withWrap:g,onContextMenu:v}=e,y=(0,a.Z)(),b=(0,o.I4)((e=>{if(h||!c)return e.stopPropagation(),void e.preventDefault();c(e)}),[h,c]),I=(0,o.I4)((e=>{if(13===e.keyCode||32===e.keyCode)return h||!c?(e.stopPropagation(),void e.preventDefault()):void c(e)}),[h,c]),w=(0,d.Z)("MenuItem",i,h&&"disabled",m&&"destructive",s.FW&&"compact",g&&"wrap"),C=o.ZP.createElement(o.ZP.Fragment,null,!n&&t&&o.ZP.createElement("i",{className:`icon-${t}`,"data-char":t.startsWith("char-")?t.replace("char-",""):void 0}),n,u);return l?o.ZP.createElement("a",{tabIndex:0,className:w,href:l,download:f,"aria-label":p,title:p,target:l.startsWith(window.location.origin)||r.Cg?"_self":"_blank",rel:"noopener noreferrer",dir:y.isRtl?"rtl":void 0,onClick:c},C):o.ZP.createElement("div",{role:"menuitem",tabIndex:0,className:w,onClick:b,onKeyDown:I,onContextMenu:v,"aria-label":p,title:p,dir:y.isRtl?"rtl":void 0},C)}},68512:(e,t,n)=>{n.d(t,{Z:()=>d});var o=n(14050),r=n(69118);const d=(0,o.X$)((()=>{const[e,t]=(0,o.eJ)([]),n=(0,o.Ye)((()=>(0,r.Ds)((()=>{t([])}),700,!1)),[]),d=(0,o.I4)((o=>{if(0!==o.button)return;const r=o.currentTarget,d=r.getBoundingClientRect(),a=r.offsetWidth/2;t([...e,{x:o.clientX-d.x-a/2,y:o.clientY-d.y-a/2,size:a}]),requestAnimationFrame((()=>{n()}))}),[e,n]);return o.ZP.createElement("div",{className:"ripple-container",onMouseDown:d},e.map((e=>{let{x:t,y:n,size:r}=e;return o.ZP.createElement("span",{style:`left: ${t}px; top: ${n}px; width: ${r}px; height: ${r}px;`})})))}))},49204:(e,t,n)=>{n.d(t,{Z:()=>d});var o=n(14050),r=n(46752);const d=e=>{let{color:t="blue",backgroundColor:n}=e;return o.ZP.createElement("div",{className:(0,r.Z)("Spinner",t,n&&"with-background",`bg-${n}`)},o.ZP.createElement("div",null))}},2255:(e,t,n)=>{n.d(t,{Z:()=>h});var o=n(14050),r=n(33555),d=n(83716),a=n(46752),s=n(82972),i=n(1279),u=n(65326),c=n(87204),l=n(18674);const f="Transition__slide--active",h=e=>{let{ref:t,activeKey:n,name:h,direction:m="auto",renderCount:p,shouldRestoreHeight:g,shouldCleanup:v,cleanupExceptionKey:y,id:b,className:I,onStart:w,onStop:C,children:S}=e;const{animationLevel:E}=(0,r.Rd)().settings.byKey,P=(0,o.sO)();let k=(0,o.sO)(null);t&&(k=t);const M=(0,o.sO)({}),A=(0,c.Z)(n),N=(0,u.Z)(),T=void 0!==A&&n!==A;!p&&T&&(M.current={[A]:M.current[A]}),M.current[n]=S,(0,o.bt)((()=>{function e(){if(!v)return;const e=void 0!==y?M.current[y]:void 0;M.current=e?{[y]:e}:{},N()}const t=k.current,o=t.children;if(1===o.length&&!T)return h.startsWith("slide-optimized")&&(o[0].style.transition="none",o[0].style.transform="translate3d(0, 0, 0)"),void o[0].classList.add(f);const r=Array.from(t.childNodes);if(!T||!r.length)return;P.current=n;const a=-1===m||"auto"===m&&A>n||"inverse"===m&&A{null==h||h(),g.style.transition="none",g.style.transform="translate3d(0, 0, 0)",p.style.transition="none",p.style.transform=`translate3d(${n?"-":""}100%, 0, 0)`,(0,s.Z)(p),g.style.transition="",g.style.transform=`translate3d(${n?"":"-"}100%, 0, 0)`,p.style.transition="",p.style.transform="translate3d(0, 0, 0)",g.classList.remove(f),p.classList.add(f),(0,i.L)(g,(()=>{r===a.current&&(g.style.transition="none",g.style.transform="",c&&(p.style.height="auto",u.style.height=`${p.clientHeight}px`),null==m||m(),v(),o())}))}))}(E,h,a,e,n,P,t,g,w,C,r[b],r[c]);if(t.classList.remove("animating"),t.classList.toggle("backwards",a),"none"===h||E===d.oB)return r.forEach(((e,t)=>{e instanceof HTMLElement&&(e.classList.remove("from","through","to"),e.classList.toggle(f,t===b))})),void e();r.forEach(((e,t)=>{e instanceof HTMLElement&&(e.classList.remove(f),e.classList.toggle("from",t===c),e.classList.toggle("through",t>c&&tb),e.classList.toggle("to",t===b))}));const I=(0,l.YW)();requestAnimationFrame((()=>{var o;function d(){requestAnimationFrame((()=>{if(n===P.current){if(t.classList.remove("animating","backwards"),r.forEach(((e,t)=>{e instanceof HTMLElement&&(e.classList.remove("from","through","to"),e.classList.toggle(f,t===b))})),g){const e=t.querySelector(`.${f}`);e&&(e.style.height="auto",t.style.height=`${e.clientHeight}px`)}null==C||C(),I(),e()}}))}t.classList.add("animating"),null==w||w();const s="mv-slide"===h?null===(o=r[b])||void 0===o?void 0:o.firstChild:"reveal"===h&&a?r[c]:r[b];s?(0,i.f)(s,d):d()}))}),[n,A,T,m,h,w,C,p,g,v,y,E,N]),(0,o.bt)((()=>{if(g){const e=k.current,t=e.querySelector(`.${f}`)||e.querySelector(".from");t&&(t.style.height="auto",e.style.height=`${t.clientHeight}px`,e.style.flexBasis=`${t.clientHeight}px`)}}),[g,S]);const L=M.current,R=Object.keys(p?new Array(p).fill(void 0):L).map(Number).map((e=>{const t=L[e];if(t)return o.ZP.createElement("div",{key:e,teactOrderKey:e},"function"==typeof t?t(e===n,e===A,n):t)}));return o.ZP.createElement("div",{ref:k,id:b,className:(0,a.Z)("Transition",I,h),teactFastList:!p},R)}},83716:(e,t,n)=>{n.d(t,{$O:()=>vt,$R:()=>Se,AJ:()=>ve,AR:()=>te,BR:()=>He,Bg:()=>yt,CX:()=>X,Cg:()=>c,Cy:()=>k,DC:()=>Le,DU:()=>ht,EG:()=>mt,EN:()=>$,Ed:()=>ae,F9:()=>it,FD:()=>st,FM:()=>tt,FS:()=>rt,FV:()=>ct,Hk:()=>j,It:()=>wt,Iz:()=>De,J0:()=>J,Ji:()=>r,K2:()=>Fe,K7:()=>Ee,MP:()=>ge,Mo:()=>G,Mw:()=>Te,Nf:()=>lt,Ng:()=>Je,Nu:()=>u,Ov:()=>_,PM:()=>$e,Q:()=>Ae,QU:()=>ie,Qx:()=>z,R2:()=>re,Rk:()=>E,Ro:()=>Pt,S:()=>h,SG:()=>A,Ti:()=>m,Tj:()=>l,Uh:()=>w,V$:()=>be,V6:()=>d,VC:()=>et,Vk:()=>V,Vv:()=>St,Vx:()=>y,WS:()=>ft,Y:()=>Ke,Y7:()=>Re,YQ:()=>D,ZT:()=>i,_m:()=>ce,aC:()=>kt,aw:()=>ut,b6:()=>ee,bK:()=>Ie,bM:()=>Oe,b_:()=>v,by:()=>R,ck:()=>we,dI:()=>Qe,dW:()=>We,e7:()=>Xe,eA:()=>g,eM:()=>s,eX:()=>Ne,ee:()=>L,fK:()=>ye,fo:()=>T,g:()=>Ct,g$:()=>ot,gJ:()=>S,gd:()=>Mt,hT:()=>F,iC:()=>o,j7:()=>P,jL:()=>dt,jT:()=>ue,jV:()=>Ue,k:()=>Ve,kU:()=>ze,ks:()=>le,ku:()=>xe,l3:()=>he,lF:()=>N,lH:()=>Be,lO:()=>C,lW:()=>M,lo:()=>B,mU:()=>bt,mo:()=>W,mw:()=>K,nY:()=>de,oB:()=>q,oG:()=>qe,oX:()=>b,o_:()=>oe,ou:()=>p,p3:()=>It,pJ:()=>Et,pR:()=>Ge,pn:()=>U,pr:()=>At,qU:()=>H,qp:()=>Me,rO:()=>pe,rS:()=>O,r_:()=>ne,s2:()=>se,s3:()=>je,sR:()=>gt,sd:()=>I,sg:()=>fe,t4:()=>pt,t_:()=>x,uW:()=>nt,u_:()=>me,ul:()=>f,w7:()=>Pe,wG:()=>Ye,xH:()=>a,xS:()=>Q,xn:()=>Ce,yK:()=>Ze,z7:()=>ke,zH:()=>at,zq:()=>_e,zy:()=>Y});const o="Telegram WebZ",r="1.52.6",d=1664098689861,a="web.telegram.org",s=!1,i=!1,u=!1,c=!1,l=!1,f="https://telegra.ph/WebZ-Beta-04-01",h="Shoot!\nSomething went wrong, please see the error details in Dev Tools Console.",m="Telegram",p=" [Inactive]",g=!1,v="user_auth",y="GramJs:sessionId",b="tt-passcode",I=!1,w="tt-global-state",C=500,S=200,E=30,P=150,k=!1,M="tt-media",A="tt-media-avatars",N="tt-media-progressive",T="tt-custom-bg",L="tt-lang-packs-v13",R=[1,5,10,50,100,500],Z="undefined"!=typeof window&&window.innerHeight>=900,B=1,F=Z?60:40,D=2*F,O=72,x=Z?30:25,_=100,$=42,U=42,j=20,V=30,W=200,H=500,G=20,z=1,K=1,J=1200,q=0,Y=2,X=Y,Q=16,ee=17,te=15,ne=1e4,oe=3e3,re="editable-message-text",de="editable-message-text-modal",ae=`.messages-layout .Transition__slide--active #${re}, .messages-layout .Transition > .to #${re}`,se="data-has-custom-appendix",ie=1440,ue=1150,ce=1275,le=925,fe=1340,he=600,me=950,pe=450,ge=1e11,ve="0",ye=100,be=1500,Ie=250,we=600,Ce=500,Se=(Math.round((Ie+we)/2),new Set(["newMessage","newScheduledMessage","deleteMessages","deleteScheduledMessages","deleteHistory"]),200),Ee=13,Pe=11,ke=160,Me=120,Ae=64,Ne=40,Te=48,Le=32,Re=64,Ze=64,Be=40,Fe=160,De=160,Oe=140,xe=100,_e=100,$e=140,Ue=140,je="recent",Ve="favorite",We="chatStickers",He="premium",Ge="en",ze=200,Ke=450,Je="video/quicktime",qe=new Set(["image/png","image/gif","image/jpeg"]),Ye=new Set(["video/mp4"]),Xe=new Set(["audio/mp3","audio/ogg","audio/wav","audio/mpeg","audio/flac","audio/aac","audio/m4a","audio/mp4","audio/x-m4a"]),Qe=new Set([...qe,...Ye]),et="The message is not supported on this version of Telegram.",tt="((ftp|https?):\\/\\/)?((www\\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\\.[a-zA-Z0-9()]{1,63})\\b([-a-zA-Z0-9()@:%_+.~#?&/=]*)",nt="(@[\\w\\d_-]+)",ot=/^tg:(\/\/)?/,rt=/^(https?:\/\/)?([-a-zA-Z0-9@:%_+~#=]{1,32}\.)?t\.me/,dt=/^(https?:\/\/)?telegram\.org\//,at="https://t.me/",st=new Set(["AU","BD","CA","CO","EG","HN","IE","IN","JO","MX","MY","NI","NZ","PH","PK","SA","SV","US"]),it=["bots","channels","chats","users"],ut="777000",ct="1271266957",lt=0,ft=1,ht=10,mt=5,pt=2147483646,gt="en",vt="android",yt=["android","ios","tdesktop","macos"],bt="https://bugs.telegram.org/?tag_ids=41&sort=time",It="#99BA92",wt="#0F0F0F",Ct="#4A8E3A8C",St="#0A0A0A8C",Et=524288,Pt=100,kt=100*Pt,Mt=!0,At={uploadMaxFileparts:[4e3,8e3],stickersFaved:[5,10],savedGifs:[200,400],dialogFiltersChats:[100,200],dialogFilters:[10,20],dialogFolderPinned:[5,10],captionLength:[1024,2048],channels:[500,1e3],channelsPublic:[10,20],aboutLength:[70,140]}},65456:(e,t,n)=>{var o=n(33555),r=n(71226),d=n(83716),a=n(77361),s=n(28406),i=n(49524),u=n(17358),c=n(3100),l=n(706),f=n(5161),h=n(95281),m=n(5872);(0,o.iw)("initApi",(async(e,t)=>{d.Cg||(await(0,c.Qw)(),(0,c.f3)()),(0,r.g8)(t.apiUpdate,{userAgent:navigator.userAgent,platform:a.Lt,sessionData:(0,c.K8)(),isTest:window.location.search.includes("test"),isMovSupported:a.pA,isWebmSupported:a.Hh,maxBufferSize:a.l0})})),(0,o.iw)("setAuthPhoneNumber",((e,t,n)=>{const{phoneNumber:o}=n;return(0,r.t9)("provideAuthPhoneNumber",o.replace(/[^\d]/g,"")),{...e,authIsLoading:!0,authError:void 0}})),(0,o.iw)("setAuthCode",((e,t,n)=>{const{code:o}=n;return(0,r.t9)("provideAuthCode",o),{...e,authIsLoading:!0,authError:void 0}})),(0,o.iw)("setAuthPassword",((e,t,n)=>{const{password:o}=n;return(0,r.t9)("provideAuthPassword",o),{...e,authIsLoading:!0,authError:void 0}})),(0,o.iw)("uploadProfilePhoto",((e,t,n)=>{const{file:o}=n;(0,r.t9)("uploadProfilePhoto",o)})),(0,o.iw)("signUp",((e,t,n)=>{const{firstName:o,lastName:d}=n;return(0,r.t9)("provideAuthRegistration",{firstName:o,lastName:d}),{...e,authIsLoading:!0,authError:void 0}})),(0,o.iw)("returnToAuthPhoneNumber",(e=>((0,r.t9)("restartAuth"),{...e,authError:void 0}))),(0,o.iw)("goToAuthQrCode",(e=>((0,r.t9)("restartAuthWithQr"),{...e,authIsLoadingQrCode:!0,authError:void 0}))),(0,o.iw)("saveSession",((e,t,n)=>{if(e.passcode.isScreenLocked)return;const{sessionData:o}=n;o?(0,c.wX)(n.sessionData,e.currentUserId):(0,c.jv)()})),(0,o.iw)("signOut",(async(e,t,n)=>{"hangUp"in t&&t.hangUp(),"leaveGroupCall"in t&&t.leaveGroupCall();try{await(0,s.r1)(),await(0,r.t9)("destroy"),await(0,l.IT)(!1)}catch(e){}(0,o.Sv)().reset(),null!=n&&n.forceInitApi&&(0,o.Sv)().initApi()})),(0,o.iw)("reset",(()=>{(0,c.jv)(),(0,h.C8)(),i.clear(d.lW),i.clear(d.SG),i.clear(d.lF),i.clear(d.fo);const e=d.ee.replace(/\d+$/,""),t=(d.ee.match(/\d+$/)||[0])[0];for(let n=0;n{(0,r.t9)("disconnect")})),(0,o.iw)("loadNearestCountry",(async e=>{if("connectionStateReady"!==e.connectionState)return;const t=await(0,r.t9)("fetchNearestCountry");(0,o.R3)({...(0,o.Rd)(),authNearestCountry:t})})),(0,o.iw)("setDeviceToken",((e,t,n)=>({...e,push:{deviceToken:n,subscribedAt:Date.now()}}))),(0,o.iw)("deleteDeviceToken",(e=>({...e,push:void 0}))),(0,o.iw)("lockScreen",(async e=>{const t=JSON.stringify({...(0,c.K8)(),userId:e.currentUserId}),n=(0,m.Uf)(e);await(0,h.H4)(t,n),(0,h.J9)(),(0,c.jv)(),(0,u.w)(0),e=(0,o.Rd)(),(0,o.R3)((0,f.vu)(e,{isScreenLocked:!0,invalidAttemptsCount:0})),setTimeout((()=>{(0,o.R3)((0,f.ZI)((0,o.Rd)()))}),d.$R);try{await(0,s.r1)(),await(0,r.t9)("destroy",!0)}catch(e){}}))},51371:(e,t,n)=>{var o=n(33555),r=n(91713),d=n(83716),a=n(71226),s=n(60782),i=n(28406),u=n(50711),c=n(11192),l=n(5161),f=n(83158);function h(e,t){let{visibility:n,allowedIds:o,deniedIds:r}=t;const{users:{byId:d},chats:{byId:a}}=e,s={visibility:n};let i,u;const c=e=>{if(!(0,f.YC)(e))return;const{id:t,accessHash:n}=d[e]||{};return t?{id:t,accessHash:n}:void 0},l=e=>{if((0,f.YC)(e))return;const t=a[e];return t?{id:t.id}:void 0};return"contacts"!==n&&"nobody"!==n||(i=o.map(c).filter(Boolean),u=o.map(l).filter(Boolean),i.length>0&&(s.allowedUsers=i),u.length>0&&(s.allowedChats=u)),"everybody"!==n&&"contacts"!==n||(i=r.map(c).filter(Boolean),u=r.map(l).filter(Boolean),i.length>0&&(s.blockedUsers=i),u.length>0&&(s.blockedChats=u)),s}(0,o.iw)("updateProfile",(async(e,t,n)=>{const{photo:d,firstName:s,lastName:i,bio:u,username:f}=n,{currentUserId:h}=e;if(h){if((0,o.R3)({...(0,o.Rd)(),profileEdit:{progress:r.rN.InProgress}}),d&&await(0,a.t9)("updateProfilePhoto",d),(s||i||u)&&await(0,a.t9)("updateProfile",{firstName:s,lastName:i,about:u})){e=(0,o.Rd)();const t=h&&(0,c.dy)(e,h);t&&(0,o.R3)((0,l.Nq)(e,t.id,{firstName:s,lastName:i,fullInfo:{...t.fullInfo,bio:u}}))}f&&await(0,a.t9)("updateUsername",f)&&h&&(0,o.R3)((0,l.Nq)((0,o.Rd)(),h,{username:f})),(0,o.R3)({...(0,o.Rd)(),profileEdit:{progress:r.rN.Complete}})}})),(0,o.iw)("checkUsername",(async(e,t,n)=>{const{username:d}=n;if(e.profileEdit&&e.profileEdit.progress===r.rN.InProgress)return;(0,o.R3)({...e,profileEdit:{progress:e.profileEdit?e.profileEdit.progress:r.rN.Idle,isUsernameAvailable:void 0}});const s=await(0,a.t9)("checkUsername",d);e=(0,o.Rd)(),(0,o.R3)({...e,profileEdit:{...e.profileEdit,isUsernameAvailable:s}})})),(0,o.iw)("loadWallpapers",(async()=>{const e=await(0,a.t9)("fetchWallpapers");if(!e)return;const t=(0,o.Rd)();(0,o.R3)({...t,settings:{...t.settings,loadedWallpapers:e.wallpapers}})})),(0,o.iw)("uploadWallpaper",(async(e,t,n)=>{const d=n,s=URL.createObjectURL(d);(0,o.R3)({...e,settings:{...e.settings,loadedWallpapers:[{slug:r.mp,document:{fileName:"",size:d.size,mimeType:d.type,previewBlobUrl:s}},...e.settings.loadedWallpapers||[]]}});const i=await(0,a.t9)("uploadWallpaper",d);if(!i)return;const{wallpaper:u}=i;if(!(e=(0,o.Rd)()).settings.loadedWallpapers)return;const c=e.settings.loadedWallpapers[0];if(!c||c.slug!==r.mp)return;const l={...u,document:{...u.document,previewBlobUrl:s}};(0,o.R3)({...e,settings:{...e.settings,loadedWallpapers:[l,...e.settings.loadedWallpapers.slice(1)]}})})),(0,o.iw)("loadBlockedContacts",(async e=>{var t,n;const r=await(0,a.t9)("fetchBlockedContacts");r&&(e=(0,o.Rd)(),null!==(t=r.users)&&void 0!==t&&t.length&&(e=(0,l.Sh)(e,(0,s.ee)(r.users,"id"))),null!==(n=r.chats)&&void 0!==n&&n.length&&(e=(0,l.GL)(e,(0,s.ee)(r.chats,"id"))),e={...e,blocked:{...e.blocked,ids:[...e.blocked.ids||[],...r.blockedIds],totalCount:r.totalCount}},(0,o.R3)(e))})),(0,o.iw)("blockContact",(async(e,t,n)=>{const{contactId:r,accessHash:d}=n;await(0,a.t9)("blockContact",r,d)&&(0,o.R3)((0,l.O4)((0,o.Rd)(),r))})),(0,o.iw)("unblockContact",(async(e,t,n)=>{const{contactId:r}=n;let d;if((0,f.YC)(r)){const t=(0,c.dy)(e,r);if(!t)return;d=t.accessHash}await(0,a.t9)("unblockContact",r,d)&&(0,o.R3)((0,l.rB)((0,o.Rd)(),r))})),(0,o.iw)("loadNotificationExceptions",(async e=>{const{serverTimeOffset:t}=e,n=await(0,a.t9)("fetchNotificationExceptions",{serverTimeOffset:t});n&&(0,o.R3)((0,l.aJ)((0,o.Rd)(),n))})),(0,o.iw)("loadNotificationSettings",(async e=>{const{serverTimeOffset:t}=e,n=await(0,a.t9)("fetchNotificationSettings",{serverTimeOffset:t});n&&(0,o.R3)((0,l.BI)((0,o.Rd)(),n))})),(0,o.iw)("updateNotificationSettings",(async(e,t,n)=>{const{peerType:r,isSilent:d,shouldShowPreviews:s}=n;await(0,a.t9)("updateNotificationSettings",r,{isSilent:d,shouldShowPreviews:s})&&(0,o.R3)((0,l.HN)((0,o.Rd)(),r,d,s))})),(0,o.iw)("updateWebNotificationSettings",((e,t,n)=>{(0,o.R3)((0,l.BI)(e,n));const{hasPushNotifications:r,hasWebNotifications:d}=e.settings.byKey;d&&r?(0,i.Ld)():(0,i.r1)()})),(0,o.iw)("updateContactSignUpNotification",(async(e,t,n)=>{const{isSilent:r}=n;await(0,a.t9)("updateContactSignUpNotification",r)&&(0,o.R3)((0,l.BI)((0,o.Rd)(),{hasContactJoinedNotifications:!r}))})),(0,o.iw)("loadLanguages",(async()=>{const e=await(0,a.t9)("fetchLanguages");e&&(0,o.R3)((0,l.BI)((0,o.Rd)(),{languages:e}))})),(0,o.iw)("loadPrivacySettings",(async e=>{const[t,n,r,d,s,i,u,c]=await Promise.all([(0,a.t9)("fetchPrivacySettings","phoneNumber"),(0,a.t9)("fetchPrivacySettings","lastSeen"),(0,a.t9)("fetchPrivacySettings","profilePhoto"),(0,a.t9)("fetchPrivacySettings","forwards"),(0,a.t9)("fetchPrivacySettings","chatInvite"),(0,a.t9)("fetchPrivacySettings","phoneCall"),(0,a.t9)("fetchPrivacySettings","phoneP2P"),(0,a.t9)("fetchPrivacySettings","voiceMessages")]);t&&n&&r&&d&&s&&i&&u&&c&&(e=(0,o.Rd)(),(0,o.R3)({...e,settings:{...e.settings,privacy:{...e.settings.privacy,phoneNumber:t,lastSeen:n,profilePhoto:r,forwards:d,chatInvite:s,phoneCall:i,phoneP2P:u,voiceMessages:c}}}))})),(0,o.iw)("setPrivacyVisibility",(async(e,t,n)=>{const{privacyKey:r,visibility:d}=n,{privacy:{[r]:s}}=e.settings;if(!s)return;const i=h(e,{visibility:d,allowedIds:[...s.allowUserIds,...s.allowChatIds],deniedIds:[...s.blockUserIds,...s.blockChatIds]}),u=await(0,a.t9)("setPrivacySettings",r,i);u&&(e=(0,o.Rd)(),(0,o.R3)({...e,settings:{...e.settings,privacy:{...e.settings.privacy,[r]:u}}}))})),(0,o.iw)("setPrivacySettings",(async(e,t,n)=>{const{privacyKey:r,isAllowList:d,contactsIds:s}=n,{privacy:{[r]:i}}=e.settings;if(!i)return;const u=h(e,{visibility:i.visibility,allowedIds:d?s:[...i.allowUserIds,...i.allowChatIds],deniedIds:d?[...i.blockUserIds,...i.blockChatIds]:s}),c=await(0,a.t9)("setPrivacySettings",r,u);c&&(e=(0,o.Rd)(),(0,o.R3)({...e,settings:{...e.settings,privacy:{...e.settings.privacy,[r]:c}}}))})),(0,o.iw)("updateIsOnline",((e,t,n)=>{(0,a.t9)("updateIsOnline",n)})),(0,o.iw)("loadContentSettings",(async()=>{const e=await(0,a.t9)("fetchContentSettings");e&&(0,o.R3)((0,l.BI)((0,o.Rd)(),e))})),(0,o.iw)("updateContentSettings",(async(e,t,n)=>{(0,o.R3)((0,l.BI)((0,o.Rd)(),{isSensitiveEnabled:n})),await(0,a.t9)("updateContentSettings",n)||(0,o.R3)((0,l.BI)((0,o.Rd)(),{isSensitiveEnabled:!n}))})),(0,o.iw)("loadCountryList",(async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{langCode:r}=n;r||(r=e.settings.byKey.language);const d=await(0,a.t9)("fetchCountryList",{langCode:r});d&&(0,o.R3)({...(0,o.Rd)(),countryList:d})})),(0,o.iw)("ensureTimeFormat",(async(e,t)=>{if(e.authNearestCountry){const n=d.FD.has(e.authNearestCountry.toUpperCase())?"12h":"24h";t.setSettingOption({timeFormat:n}),(0,u.qf)(n)}if(e.settings.byKey.wasTimeFormatSetManually)return;const n=await(0,a.t9)("fetchNearestCountry");if(n){const e=d.FD.has(n.toUpperCase())?"12h":"24h";t.setSettingOption({timeFormat:e}),(0,u.qf)(e)}})),(0,o.iw)("loadAppConfig",(async()=>{const e=await(0,a.t9)("fetchAppConfig");e&&(0,o.R3)({...(0,o.Rd)(),appConfig:e})})),(0,o.iw)("loadGlobalPrivacySettings",(async()=>{const e=await(0,a.t9)("fetchGlobalPrivacySettings");e&&(0,o.R3)((0,l.BI)((0,o.Rd)(),{shouldArchiveAndMuteNewNonContact:e.shouldArchiveAndMuteNewNonContact}))})),(0,o.iw)("updateGlobalPrivacySettings",(async(e,t,n)=>{const{shouldArchiveAndMuteNewNonContact:r}=n;(0,o.R3)((0,l.BI)((0,o.Rd)(),{shouldArchiveAndMuteNewNonContact:r}));const d=await(0,a.t9)("updateGlobalPrivacySettings",{shouldArchiveAndMuteNewNonContact:r});(0,o.R3)((0,l.BI)((0,o.Rd)(),{shouldArchiveAndMuteNewNonContact:d?d.shouldArchiveAndMuteNewNonContact:!r}))}))},28304:(e,t,n)=>{var o=n(33555),r=n(83716),d=n(28406),a=n(5161),s=n(50711),i=n(11192),u=n(706),c=n(91947);(0,o.iw)("apiUpdate",((e,t,n)=>{switch(r.eM&&"updateUserStatus"!==n["@type"]&&"updateServerTimeOffset"!==n["@type"]&&console.log("[GramJs] UPDATE",n["@type"],{update:n}),n["@type"]){case"updateApiReady":!function(e){const{hasWebNotifications:t,hasPushNotifications:n}=(0,i.dZ)(e);t&&n&&(0,d.Ld)(),(0,s.m0)(e.settings.byKey.language)}(e);break;case"updateAuthorizationState":!function(e){let t=(0,o.Rd)();const n="authorizationStateReady"===t.authState,r=e.authorizationState;switch((0,o.R3)({...t,authState:r,authIsLoading:!1}),t=(0,o.Rd)(),r){case"authorizationStateLoggingOut":(0,u.IT)(!1),(0,o.R3)({...t,isLoggingOut:!0});break;case"authorizationStateWaitCode":(0,o.R3)({...t,authIsCodeViaApp:e.isCodeViaApp});break;case"authorizationStateWaitPassword":(0,o.R3)({...t,authHint:e.hint});break;case"authorizationStateWaitQrCode":(0,o.R3)({...t,authIsLoadingQrCode:!1,authQrCode:e.qrCode});break;case"authorizationStateReady":if(n)break;(0,u.IT)(!0),(0,o.R3)({...t,isLoggingOut:!1})}}(n);break;case"updateAuthorizationError":!function(e){(0,o.R3)({...(0,o.Rd)(),authError:e.message})}(n);break;case"updateConnectionState":!function(e){const{connectionState:t}=e,n=(0,o.Rd)();if(t!==n.connectionState&&((0,o.R3)({...n,connectionState:t}),"connectionStateBroken"===t)){const e=!n.authState||["authorizationStateWaitPhoneNumber","authorizationStateWaitCode","authorizationStateWaitPassword","authorizationStateWaitRegistration","authorizationStateWaitQrCode"].includes(n.authState);(0,o.Sv)().signOut({forceInitApi:e})}}(n);break;case"updateSession":!function(e){const{sessionData:t}=e,{authRememberMe:n,authState:r}=(0,o.Rd)(),d=!t||!t.mainDcId;n&&"authorizationStateReady"===r&&!d&&(0,o.Sv)().saveSession({sessionData:t})}(n);break;case"updateServerTimeOffset":!function(e){const t=(0,o.Rd)();t.serverTimeOffset!==e.serverTimeOffset&&(0,o.R3)({...t,serverTimeOffset:e.serverTimeOffset})}(n);break;case"updateCurrentUser":!function(e){const{currentUser:t}=e;(0,o.R3)({...(0,a.Nq)((0,o.Rd)(),t.id,t),currentUserId:t.id}),function(e){const t=localStorage.getItem(r.b_);if(!t)return;const n=JSON.parse(t);n.id=e,localStorage.setItem(r.b_,JSON.stringify(n))}(t.id)}(n);break;case"error":{"SESSION_REVOKED"===n.error.message&&t.signOut();const e=(0,c.J_)(n.error);e?t.addPaymentError({error:e}):(0,c.pF)(n.error)?t.closePaymentModal():t.showDialog&&t.showDialog({data:n.error});break}}}))},89005:(e,t,n)=>{var o=n(33555),r=n(83716),d=n(77361),a=n(50711),s=n(27370),i=n(11192),u=n(706);!function(){function e(){const e=document.documentElement.className.match(/theme-(\w+)/),t=e?e[1]:"light",n=(0,o.Rd)(),d=(0,i.Pu)(n),{animationLevel:a}=n.settings.byKey;d!==t&&((0,s.Z)(d,a===r.zy),(0,o.R3)({...n}))}const t=window.matchMedia("(prefers-color-scheme: dark)");"function"==typeof t.addEventListener?t.addEventListener("change",e):"function"==typeof t.addListener&&t.addListener(e)}(),(0,o.iw)("init",(e=>{const{animationLevel:t,messageTextSize:n,language:o}=e.settings.byKey,c=(0,i.Pu)(e);(0,a.m0)(o,void 0,!0),document.documentElement.style.setProperty("--composer-text-size",`${Math.max(n,d.cj?16:15)}px`),document.documentElement.style.setProperty("--message-meta-height",`${Math.floor(1.3125*n)}px`),document.documentElement.style.setProperty("--message-text-size",`${n}px`),document.documentElement.setAttribute("data-message-text-size",n.toString()),document.body.classList.add("initial"),document.body.classList.add(`animation-level-${t}`),document.body.classList.add(d.$b?"is-touch-env":"is-pointer-env"),(0,s.Z)(c,t===r.zy),(0,u.px)(),d.cj?document.body.classList.add("is-ios"):d.wZ?document.body.classList.add("is-android"):d.jm&&document.body.classList.add("is-macos"),d.s$&&document.body.classList.add("is-safari")})),(0,o.iw)("setInstallPrompt",((e,t,n)=>{const{canInstall:o}=n;return{...e,canInstall:o}})),(0,o.iw)("setIsUiReady",((e,t,n)=>{const{uiReadyState:o}=n;return 2===o&&document.body.classList.remove("initial"),{...e,uiReadyState:o}})),(0,o.iw)("setAuthPhoneNumber",((e,t,n)=>{const{phoneNumber:o}=n;return{...e,authPhoneNumber:o}})),(0,o.iw)("setAuthRememberMe",((e,t,n)=>({...e,authRememberMe:Boolean(n)}))),(0,o.iw)("clearAuthError",(e=>({...e,authError:void 0}))),(0,o.iw)("disableHistoryAnimations",(()=>{setTimeout((()=>{(0,o.R3)({...(0,o.Rd)(),shouldSkipHistoryAnimations:!1}),document.body.classList.remove("no-animate")}),450),(0,o.R3)({...(0,o.Rd)(),shouldSkipHistoryAnimations:!0},{forceSyncOnIOs:!0})}))},73456:(e,t,n)=>{var o=n(33555),r=n(5161);(0,o.iw)("setSettingOption",((e,t,n)=>(0,r.BI)(e,n))),(0,o.iw)("setThemeSettings",((e,t,n)=>{const{theme:o,...d}=n;return(0,r.lr)(e,o,d)})),(0,o.iw)("requestNextSettingsScreen",((e,t,n)=>({...e,settings:{...e.settings,nextScreen:n}})))},5872:(e,t,n)=>{n.d(t,{J9:()=>S,QS:()=>C,Uf:()=>N,jA:()=>A,nE:()=>k});var o=n(65116),r=n(33555),d=n(6137),a=n(69118),s=n(83716),i=n(77361),u=n(18674),c=n(60782),l=n(11192),f=n(3100),h=n(35369),m=n(15780),p=n(83158),g=n(16974),v=n(5161),y=n(95281);const b=(0,a.P2)((()=>(0,a.Q8)(M)),5e3,!1);let I,w=!1;function C(){s.sd||((0,r.iw)("saveSession",(()=>{w||E()})),(0,r.iw)("reset",(()=>{localStorage.removeItem(s.Uh),w&&P()})))}function S(e){if(s.sd)return;const t=function(e){s.eM&&console.time("global-state-cache-read");const t=localStorage.getItem(s.Uh),n=t?JSON.parse(t):void 0;s.eM&&console.timeEnd("global-state-cache-read"),n&&k(n,e);const o={...e,...n},r=i.wB?void 0:(0,m.V)();return{...o,messages:{...o.messages,messageLists:r?[r]:[]}}}(e);return t.passcode.hasPasscode||(0,f.ti)(!0)?(E(),t):void P()}function E(){w=!0,I=(0,a.Gq)(M,!0),window.addEventListener("blur",M),(0,o.ll)(b)}function P(){w=!1,(0,o.Iq)(b),window.removeEventListener("blur",M),I&&I()}function k(e,t){var n;if("shouldAutoDownloadMediaFromContacts"in e.settings.byKey){const{shouldAutoDownloadMediaFromContacts:t,shouldAutoDownloadMediaInPrivateChats:n,shouldAutoDownloadMediaInGroups:o,shouldAutoDownloadMediaInChannels:r,shouldAutoPlayVideos:d,shouldAutoPlayGifs:a,...s}=e.settings.byKey;e.settings.byKey={...s,canAutoLoadPhotoFromContacts:t,canAutoLoadVideoFromContacts:t,canAutoLoadPhotoInPrivateChats:n,canAutoLoadVideoInPrivateChats:n,canAutoLoadPhotoInGroups:o,canAutoLoadVideoInGroups:o,canAutoLoadPhotoInChannels:r,canAutoLoadVideoInChannels:r,canAutoPlayVideos:d,canAutoPlayGifs:a}}e.settings.byKey={...t.settings.byKey,...e.settings.byKey},e.settings.themes={...t.settings.themes,...e.settings.themes},e.chatFolders={...t.chatFolders,...e.chatFolders},e.stickers.greeting||(e.stickers.greeting=t.stickers.greeting),e.stickers.premium||(e.stickers.premium=t.stickers.premium),e.activeDownloads||(e.activeDownloads={byChatId:{}}),e.serviceNotifications||(e.serviceNotifications=[]),void 0===e.audioPlayer.volume&&(e.audioPlayer.volume=s.Qx),void 0===e.audioPlayer.playbackRate&&(e.audioPlayer.playbackRate=s.mw),void 0===e.mediaViewer.volume&&(e.mediaViewer.volume=s.Qx),void 0===e.mediaViewer.playbackRate&&(e.mediaViewer.playbackRate=s.mw),e.groupCalls||(e.groupCalls=t.groupCalls),e.users.statusesById||(e.users.statusesById={}),e.messages.sponsoredByChatId||(e.messages.sponsoredByChatId={}),e.activeReactions||(e.activeReactions={}),e.pollModal||(e.pollModal={isOpen:!1}),e.attachMenu||(e.attachMenu={bots:{}}),e.trustedBotIds||(e.trustedBotIds=[]),e.passcode||(e.passcode={}),void 0===(null===(n=e.activeSessions)||void 0===n?void 0:n.byHash)&&(e.activeSessions={byHash:{},orderedHashes:[]}),e.activeWebSessions||(e.activeWebSessions={byHash:{},orderedHashes:[]}),e.transcriptions||(e.transcriptions={}),e.appConfig&&!e.appConfig.limits&&(e.appConfig.limits=s.pr),e.customEmojis||(e.customEmojis={added:{},byId:{},lastRendered:[]}),e.stickers.premiumSet||(e.stickers.premiumSet={stickers:[]});const{light:o}=e.settings.themes;"rgba(90, 110, 70, 0.6)"!==(null==o?void 0:o.patternColor)&&null!=o&&o.patternColor||(e.settings.themes.light={...o,patternColor:s.g}),e.serviceNotifications.forEach((e=>{const{isHidden:t}=e;t&&(e.isDeleted=t)}))}function M(){const e=(0,r.Rd)();!w||e.isLoggingOut||(0,u.zG)()||A()}function A(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=(0,r.Rd)(),{hasPasscode:n,isScreenLocked:o}=t.passcode,d=N(t);if(n){o||e||(0,y.H4)(void 0,d);const n=JSON.stringify((0,v.ZI)(t));localStorage.setItem(s.Uh,n)}else localStorage.setItem(s.Uh,d)}function N(e){const t={...h.Y,...(0,c.ei)(e,["appConfig","authState","authPhoneNumber","authRememberMe","authNearestCountry","currentUserId","contactList","topPeers","topInlineBots","recentEmojis","recentCustomEmojis","push","shouldShowContextMenuHint","leftColumnWidth","serviceNotifications"]),audioPlayer:{volume:e.audioPlayer.volume,playbackRate:e.audioPlayer.playbackRate,isMuted:e.audioPlayer.isMuted},customEmojis:T(e),mediaViewer:{volume:e.mediaViewer.volume,playbackRate:e.mediaViewer.playbackRate,isMuted:e.mediaViewer.isMuted},isChatInfoShown:L(e),users:R(e),chats:Z(e),messages:B(e),globalSearch:{recentlyFoundChatIds:e.globalSearch.recentlyFoundChatIds},settings:F(e),chatFolders:D(e),groupCalls:O(e),availableReactions:x(e),isCallPanelVisible:void 0,trustedBotIds:e.trustedBotIds,passcode:(0,c.ei)(e.passcode,["isScreenLocked","hasPasscode","invalidAttemptsCount"])};return JSON.stringify(t)}function T(e){const{lastRendered:t,byId:n}=e.customEmojis,o=t.slice(0,s.j7);return{byId:(0,c.ei)(n,o),lastRendered:o,added:{}}}function L(e){return window.innerWidth>s._m&&e.isChatInfoShown}function R(e){var t,n,o,r,d;const{users:{byId:a,statusesById:i},currentUserId:u}=e,{chatId:f}=(0,l.Bt)(e)||{},h=null===(t=(0,l.P2)(e))||void 0===t?void 0:t.map((e=>{let{id:t}=e;return t})),m=(0,c.Tw)([...u?[u]:[],...f&&(0,p.YC)(f)?[f]:[],...h||[],...e.topPeers.userIds||[],...(null===(n=(0,g.gO)(s.Nf))||void 0===n?void 0:n.filter(p.YC))||[],...(null===(o=(0,g.gO)(s.WS))||void 0===o?void 0:o.filter(p.YC))||[],...(null===(r=e.contactList)||void 0===r?void 0:r.userIds)||[],...(null===(d=e.globalSearch.recentlyFoundChatIds)||void 0===d?void 0:d.filter(p.YC))||[],...Object.keys(a)]).slice(0,s.lO);return{byId:(0,c.ei)(a,m),statusesById:(0,c.ei)(i,m)}}function Z(e){const{chats:{byId:t},currentUserId:n}=e,o=(0,l.jr)(e),r=(0,c.Tw)([...n?[n]:[],...o?[o.id]:[],...(0,g.gO)(s.Nf)||[],...(0,g.gO)(s.WS)||[],...e.globalSearch.recentlyFoundChatIds||[],...Object.keys(t)]).slice(0,s.gJ);return{...e.chats,isFullyLoaded:{},byId:(0,c.ei)(e.chats.byId,r)}}function B(e){var t;const{currentUserId:n}=e,o={},{chatId:r,threadId:a,type:i}=(0,l.Bt)(e)||{};return[...r?[r]:[],...n?[n]:[],...(null===(t=(0,g.gO)(s.Nf))||void 0===t?void 0:t.slice(0,s.Rk))||[]].forEach((t=>{const n=e.messages.byChatId[t];if(!n)return;const r=n.threadsById[d._f];r&&r.viewportIds&&(o[t]={byId:(0,c.ei)(n.byId,r.viewportIds),threadsById:{[d._f]:r}})})),{byChatId:o,messageLists:r&&a&&i?[{chatId:r,threadId:a,type:i}]:[],sponsoredByChatId:{}}}function F(e){const{byKey:t,themes:n}=e.settings;return{byKey:t,themes:n,privacy:{},notifyExceptions:{}}}function D(e){return{...e.chatFolders,activeChatFolder:0}}function O(e){return{...e.groupCalls,byId:{},activeGroupCallId:void 0}}function x(e){var t;return null===(t=e.availableReactions)||void 0===t?void 0:t.map((e=>(0,c.ei)(e,["reaction","staticIcon","title","isInactive"])))}},22825:(e,t,n)=>{n.d(t,{$l:()=>U,Bf:()=>m,G9:()=>p,GM:()=>S,H5:()=>L,Hd:()=>Z,Hp:()=>k,Mg:()=>N,Nl:()=>M,Qm:()=>T,RT:()=>P,Ru:()=>y,SB:()=>x,Sm:()=>D,U:()=>C,VE:()=>A,YC:()=>h,ZV:()=>g,cc:()=>O,eA:()=>v,hu:()=>E,i4:()=>F,ih:()=>$,l6:()=>I,pE:()=>B,pK:()=>b,q8:()=>R,zF:()=>_,zX:()=>w});var o=n(6137),r=n(83716),d=n(60782),a=n(93311),s=n(790),i=n(85765),u=n(76927);const c=Date.now()/1e3+31622400,l=3e9,f=3e8;function h(e){return"number"==typeof e?e>0:!e.startsWith("-")}function m(e){return p(e)||g(e)}function p(e){return"chatTypeBasicGroup"===e.type}function g(e){return"chatTypeSuperGroup"===e.type}function v(e){return"chatTypeChannel"===e.type}function y(e){return"chatTypePrivate"===e.type||"chatTypeBasicGroup"===e.type}function b(e){return e===r.FV}function I(e){switch(e.type){case"chatTypePrivate":return"PrivateChat";case"chatTypeBasicGroup":case"chatTypeSuperGroup":return"AccDescrGroup";case"chatTypeChannel":return"AccDescrChannel";default:return"Chat"}}function w(e){if("chatTypePrivate"===e.type||"chatTypeSecret"===e.type)return e.id}function C(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return o||n&&t.id===n.id&&n.isSelf?e("SavedMessages"):t.title||e("HiddenName")}function S(e){if(e.fullInfo)return e.fullInfo.about}function E(e){const{username:t}=e;if(t)return`${r.zH}${t}`;const{inviteLink:n}=e.fullInfo||{};return n}function P(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"photo";if(!e.avatarHash)return;const{fullInfo:o}=e;var r;return"video"===n?null!=o&&null!==(r=o.profilePhoto)&&void 0!==r&&r.isVideo?(0,u.D)(o.profilePhoto):void 0:"big"===t?`profile${e.id}?${e.avatarHash}`:`avatar${e.id}?${e.avatarHash}`}function k(e){return!e.lastMessage}function M(e){return Boolean(e.adminRights)}function A(e,t){return!!e.adminRights&&e.adminRights[t]}function N(e,t){var n,o;return Boolean((null===(n=e.currentUserBannedRights)||void 0===n?void 0:n[t])||(null===(o=e.defaultBannedRights)||void 0===o?void 0:o[t]))}function T(e,t){return t!==o._f||!(e.isRestricted||e.isForbidden||e.migratedTo||e.isNotJoined||b(e.id))&&(!!e.isCreator||!!h(e.id)||(v(e)?A(e,"postMessages"):M(e)||!N(e,"sendMessages")))}function L(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return{canAttachMedia:!1,canAttachPolls:!1,canSendStickers:!1,canSendGifs:!1,canAttachEmbedLinks:!1};const n=M(e);return{canAttachMedia:n||!N(e,"sendMedia"),canAttachPolls:(n||!N(e,"sendPolls"))&&(!h(e.id)||t),canSendStickers:n||!N(e,"sendStickers"),canSendGifs:n||!N(e,"sendGifs"),canAttachEmbedLinks:n||!N(e,"embedLinks")}}function R(e,t,n){if(null!=t&&t.sendMessages){const{untilDate:n}=t;return n&&n2&&void 0!==arguments[2]?arguments[2]:{};return n[e.id]&&void 0!==n[e.id].isMuted?n[e.id].isMuted:e.isMuted||h(e.id)&&!t.hasPrivateChatsNotifications||v(e)&&!t.hasBroadcastNotifications||m(e)&&!t.hasGroupNotifications}function D(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{hasPrivateChatsMessagePreview:o=!0,hasBroadcastMessagePreview:r=!0,hasGroupMessagePreview:d=!0}=t;return n[e.id]&&void 0!==n[e.id].shouldShowPreviews?n[e.id].shouldShowPreviews:h(e.id)&&o||v(e)&&r||m(e)&&d}function O(e){return p(e)||(g(e)||v(e))&&e.isCreator}function x(e,t,n){const{id:o,title:r,emoticon:d,description:a,pinnedChatIds:s,excludedChatIds:i,includedChatIds:u,excludeArchived:c,excludeMuted:l,excludeRead:f,...h}=t;return void 0!==n&&(Object.values(h).filter(Boolean).length>1||null!=i&&i.length||null!=u&&u.length)?e("Chats",n):h.bots?e("FilterBots"):h.groups?e("FilterGroups"):h.channels?e("FilterChannels"):h.contacts?e("FilterContacts"):h.nonContacts?e("FilterNonContacts"):void 0}function _(e,t,n){if(n&&!h(t))return n.isSelf?e("FromYou"):(0,a.Vl)(n)}function $(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3?arguments[3]:void 0;return(0,d.Xo)(e,(e=>{const r=t[e];if(!r)return 0;let d=0;return r.lastMessage&&(d+=r.lastMessage.date),n&&r.isVerified&&(d+=l),o&&o.includes(e)&&(d=Date.now()+f+(o.length-o.indexOf(e))),d}),"desc")}function U(e,t,n,o,r){if(!o)return t;const d=(0,i.W)(o);return t.filter((t=>{const o=n[t];return!!o&&d(C(e,o,void 0,t===r))}))}},83158:(e,t,n)=>{n.d(t,{lN:()=>O,JE:()=>T,uw:()=>Ne,k6:()=>le,yL:()=>F,$l:()=>r.$l,kK:()=>o.kK,H5:()=>r.H5,MR:()=>ve,NF:()=>Re,kw:()=>o.kw,cc:()=>r.cc,Qm:()=>r.Qm,RT:()=>r.RT,GM:()=>r.GM,hu:()=>r.hu,N0:()=>Ce,Hd:()=>r.Hd,U:()=>r.U,l6:()=>r.l6,ym:()=>ce,T7:()=>y,SB:()=>r.SB,N:()=>me,Wc:()=>pe,VE:()=>r.VE,XV:()=>Ae,Sc:()=>ke,N5:()=>J,oP:()=>q,nl:()=>ne,qp:()=>W,w6:()=>N,R5:()=>Me,$D:()=>g,aE:()=>Q,ep:()=>be,c0:()=>Ie,d0:()=>l,eO:()=>re,Tp:()=>f,nf:()=>de,kG:()=>ye,Ti:()=>fe,DH:()=>ue,KK:()=>m,O$:()=>G,t9:()=>oe,dT:()=>B,Y5:()=>K,zF:()=>r.zF,q8:()=>r.q8,_O:()=>v,eH:()=>R,bf:()=>X,Kk:()=>U,Eb:()=>$,MK:()=>x,UD:()=>p,EU:()=>_,b7:()=>z,kd:()=>Y,s1:()=>ae,F$:()=>se,Cg:()=>ie,bV:()=>Se,HV:()=>Ee,zX:()=>r.zX,OU:()=>P,RI:()=>k,Ow:()=>Le,Rs:()=>o.Rs,Vl:()=>o.Vl,Js:()=>o.Js,db:()=>o.db,Tq:()=>o.Tq,Dk:()=>Ze.D,jC:()=>Pe,O9:()=>he,BM:()=>we,u8:()=>H,Lo:()=>C,Ul:()=>E,Nl:()=>r.Nl,pE:()=>r.pE,G9:()=>r.G9,eA:()=>r.eA,Bf:()=>r.Bf,Hp:()=>r.Hp,ZV:()=>r.ZV,pK:()=>r.pK,Ru:()=>r.Ru,NB:()=>o.NB,MF:()=>w,$R:()=>L,CD:()=>A,rl:()=>ee,hC:()=>te,CI:()=>M,B4:()=>b,ss:()=>I,jM:()=>S,cS:()=>o.cS,YC:()=>r.YC,kM:()=>o.kM,Mg:()=>r.Mg,Ak:()=>h,i4:()=>r.i4,Sm:()=>r.Sm,ih:()=>r.ih,Z0:()=>o.Z0});var o=n(93311),r=n(22825),d=n(6137),a=n(83716),s=n(77361),i=n(64784),u=n(33555);const c=new RegExp(a.FM,"i");function l(e){return`message${e.toString().replace(".","-")}`}function f(e){const{chatId:t,id:n,previousLocalId:o}=e;return function(e,t){return`msg${e}-${t}`}(t,S(e)&&o||n)}function h(e){const t=e.match(/^msg(-?\d+)-(\d+)/);return{chatId:t[1],messageId:Number(t[2])}}function m(e){return e.previousLocalId||e.id}function p(e){const{text:t,sticker:n,photo:o,video:r,audio:d,voice:s,document:i,poll:u,webPage:c,contact:l,invoice:f,location:h,game:m,action:p}=e.content;return t?t.text:n||o||r||d||s||i||l||u||c||f||h||m||null!=p&&p.phoneCall?void 0:a.VC}function g(e){var t;const{text:n,sticker:o,photo:r,video:d,audio:a,voice:s,document:u,poll:c,webPage:l,contact:f}=e.content;return!!(o||null!=d&&d.isRound)||!(!n||null!==(t=n.entities)&&void 0!==t&&t.length||r||d||a||s||u||c||l||f)&&((0,i.Z)(n.text)||!1)}function v(e){var t;const{text:n}=e.content;if(n&&n.text.length<=6&&(null===(t=n.entities)||void 0===t||!t.length)&&1===g(e))return n.text}function y(e){const{text:t}=e.content;let n;if(null!=t&&t.entities){const e=t.entities.find((e=>e.type===d.Vv.TextUrl));if(e&&(n=e.url.match(c)),!n){const e=t.entities.find((e=>e.type===d.Vv.Url));if(e){const{offset:o,length:r}=e;n=t.text.substring(o,o+r).match(c)}}}if(!n&&t&&(n=t.text.match(c)),n)return{url:n[0],domain:n[3]}}function b(e){return e.isOutgoing}function I(e){return Boolean(e.replyToMessageId)}function w(e){return Boolean(e.forwardInfo)}function C(e){return Boolean(e.content.action)}function S(e){return e.chatId===a.aw&&Math.round(e.id)!==e.id}function E(e){return Boolean(e.senderId)&&!(0,r.YC)(e.senderId)&&b(e)}function P(e,t){return(0,r.YC)(t.id)?(0,o.Js)(t):(0,r.U)(e,t)}function k(e){return e.sendingState?"messageSendingStateFailed"===e.sendingState?"failed":"pending":"succeeded"}function M(e){return e.id>a.MP}function A(e){return e.content.action&&"historyClear"===e.content.action.type}function N(e){const{content:t}=e,n=t.webPage?t.webPage.video:t.video,o=t.webPage?t.webPage.photo:t.photo,r=t.webPage?t.webPage.document:t.document;if(r)return r.fileName;if(n)return n.fileName;if(t.sticker){const e=t.sticker.isLottie?"tgs":t.sticker.isVideo?"webm":(0,s.on)()?"webp":"png";return`${t.sticker.id}.${e}`}if(t.audio)return t.audio.fileName;const d=f(e);return o?`${d}.jpg`:t.voice?s.m5?`${d}.ogg`:`${d}.wav`:d}function T(e){return!e.results.some((e=>e.count>0))}function L(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now()/1e3;const{location:n}=e.content;return"geoLive"===(null==n?void 0:n.type)&&t-(e.date||0)>=n.period}function R(e){var t;return 1===(null===(t=e.inlineButtons)||void 0===t?void 0:t.length)&&1===e.inlineButtons[0].length&&e.inlineButtons[0][0]}var Z=n(48035);function B(e){var t,n;return e.isOutgoing?null===(t=e.reactions)||void 0===t||null===(n=t.recentReactions)||void 0===n?void 0:n[0]:void 0}function F(e,t){var n;const{currentUserId:o}=e;return null==t||null===(n=t.recentReactions)||void 0===n?void 0:n.some((e=>{let{isUnread:t,userId:n}=e;return t&&n!==o}))}const D=["⠺","⠵","⠞","⠟"],O=80;function x(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],d=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const a=!n&&$(t,r),s=a?`${a} `:"",i=(0,Z.Z)(_(t),o),u=U(e,t,i,r,d);return`${s}${u}`}function _(e){const t=function(e){var t;const{transcriptionId:n}=e,o=(0,u.Rd)();return n&&(null===(t=o.transcriptions[n])||void 0===t?void 0:t.text)}(e),n=p(e);if(!n)return t;const{entities:o}=e.content.text||{};if(null==o||!o.length)return t?`${t}\n${n}`:n;const r=o.reduce(((e,t)=>{let{type:n,offset:o,length:r}=t;if(n!==d.Vv.Spoiler)return e;const a=function(e){return new Array(e).fill(void 0).map((()=>D[Math.floor(Math.random()*D.length)])).join("")}(r);return`${e.substr(0,o)}${a}${e.substr(o+r,e.length)}`}),n);return t?`${t}\n${r}`:r}function $(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{photo:n,video:o,audio:r,voice:d,document:a,sticker:s,poll:i}=e.content;if(e.groupedId||n)return"🖼";if(o)return"📹";if(s)return s.emoji;if(r)return"🎧";if(d)return"🎤";if(a)return"📎";if(i)return"📊";const u=!t&&B(e);return u?u.reaction:void 0}function U(e,t,n){let o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const{text:d,photo:s,video:i,audio:u,voice:c,document:l,sticker:f,contact:h,poll:m,invoice:p,location:g,game:v}=t.content;let y;t.groupedId&&(y=n||e("lng_in_dlg_album")),s&&(y=n||e("AttachPhoto")),i&&(y=n||e(i.isGif?"AttachGif":"AttachVideo")),f&&(y=e("AttachSticker").trim()),u&&(y=j(t)||e("AttachMusic")),c&&(y=n||e("AttachAudio")),l&&(y=r?l.fileName:n||l.fileName),h&&(y=e("AttachContact")),m&&(y=m.summary.question),p&&(y=`${e("PaymentInvoice")}: ${p.text}`),d&&(r&&y?y+=`\n${n}`:y=n),"geo"!==(null==g?void 0:g.type)&&"venue"!==(null==g?void 0:g.type)||(y=e("Message.Location")),"geoLive"===(null==g?void 0:g.type)&&(y=e("Message.LiveLocation")),v&&(y=`🎮 ${v.title}`);const b=!o&&B(t);return y&&b&&(y=`to your "${y}"`),y||a.VC}function j(e){const{audio:t,text:n}=e.content;return t&&[t.title,t.performer].filter(Boolean).join(" — ")||(null==n?void 0:n.text)}var V=n(15376);function W(e){return e.content}function H(e){return Boolean(G(e)||z(e)||Q(e)||X(e)||ne(e)||oe(e)||J(e)||q(e)||Y(e))}function G(e){return e.content.photo}function z(e){return e.content.video}function K(e){const{video:t}=e.content;return null!=t&&t.isRound?t:void 0}function J(e){return e.content.action}function q(e){return e.content.audio}function Y(e){return e.content.voice}function X(e){return e.content.sticker}function Q(e){return e.content.document}function ee(e){const t=Q(e);return t?"photo"===t.mediaType:void 0}function te(e){const t=Q(e);return t?"video"===t.mediaType:void 0}function ne(e){return e.content.contact}function oe(e){return e.content.poll}function re(e){return e.content.invoice}function de(e){return e.content.location}function ae(e){return e.content.webPage}function se(e){var t;return null===(t=ae(e))||void 0===t?void 0:t.photo}function ie(e){var t;return null===(t=ae(e))||void 0===t?void 0:t.video}function ue(e){var t;return null===(t=function(e){const t=G(e)||z(e)||Q(e)||X(e)||se(e)||ie(e);if(t)return t.thumbnail}(e))||void 0===t?void 0:t.dataUri}function ce(e){return`document${e.id}`}function le(e,t,n,o,r){const{long:d,lat:a,accessHash:s,accuracyRadius:i}=e;return`staticMap:${s}?lat=${a}&long=${d}&w=${t}&h=${n}&zoom=${o}&scale=${r}&accuracyRadius=${i}`}function fe(e,t){const{photo:n,video:o,sticker:r,audio:d,voice:a,document:s}=e.content,i=se(e),u=ie(e),c=o||u,l=n||i,h=l||c||r||d||a||s;if(!h)return;const m=h.id,p=`${f(e)}${m?`:${m}`:""}`;if(c)switch(t){case"micro":case"pictogram":case"viewerPreview":return`${p}?size=m`;case"inline":return we(e)?void 0:ge(c,p);case"viewerFull":return ge(c,p);case"download":return`${p}?download`}if(l)switch(t){case"micro":case"pictogram":return`${p}?size=m`;case"inline":return we(e)?void 0:`${p}?size=x`;case"viewerPreview":return`${p}?size=x`;case"viewerFull":case"download":return`${p}?size=z`}if(s)switch(t){case"micro":case"pictogram":case"inline":case"viewerPreview":if(!(0,V.v6)(s)||we(e))return;return`${p}?size=m`;case"viewerFull":case"download":return p}if(r)switch(t){case"micro":return;case"pictogram":return`${p}?size=m`;case"inline":return p;case"download":return`${p}?download`}if(d)switch(t){case"micro":case"pictogram":return ve(d)?`${p}?size=m`:void 0;case"inline":return ge(d,p);case"download":return`${p}?download`}if(a)switch(t){case"micro":case"pictogram":return;case"inline":return p;case"download":return`${p}?download`}}function he(e){if(e)return`webDocument:${e.url}`}function me(e){const{photo:t}=e;if(t)return`photo${t.id}?size=x`}function pe(e){const{document:t}=e;if(t)return`document${t.id}`}function ge(e,t){return s.I_&&s.s$?`${t}?fileSize=${e.size}&mimeType=${e.mimeType}`:t}function ve(e){return e.thumbnailSizes&&e.thumbnailSizes.length>0}function ye(e,t){var n;const{video:o,audio:r,voice:a,document:i}=e.content,u=o||ie(e),c=null===(n=o||r||i)||void 0===n?void 0:n.size;return"download"===t?s.I_&&c>s.l0&&!s.rT?d.IU.DownloadUrl:d.IU.BlobUrl:u&&s.I_&&("viewerFull"===t||"inline"===t)?d.IU.Progressive:r||a?a&&!s.m5?d.IU.BlobUrl:d.IU.Progressive:d.IU.BlobUrl}function be(e){const{photo:t,video:n,document:o}=e.content,r=se(e),d=ie(e);if(t||r)return`photo${e.date}.jpeg`;const{fileName:a}=n||d||o||{};return a}function Ie(e){const{video:t,document:n}=e.content,o=ie(e),{size:r}=t||o||n||{};return r}function we(e){const{photo:t,video:n,document:o}=e.content;return(null==t?void 0:t.blobUrl)||(null==n?void 0:n.blobUrl)||(null==o?void 0:o.previewBlobUrl)}function Ce(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Me(e,t,n?"media":"inlineMedia")}function Se(e){return e.sizes.find((e=>"z"===e.type))||e.sizes.find((e=>"y"===e.type))||Ee(e)}function Ee(e){return e.sizes.find((e=>"x"===e.type))||e.sizes.find((e=>"m"===e.type))||e.sizes.find((e=>"s"===e.type))||e.thumbnail}function Pe(e){if(e.width&&e.height)return e}function ke(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=M(e),r=o||n,d=Number(t);return{isUploading:o,isTransferring:r,transferProgress:d}}function Me(e,t,n){let o;switch(n){case"media":o=e=>{const t=z(e);return G(e)||t&&!t.isRound&&!t.isGif};break;case"documents":o=Q;break;case"links":o=e=>ae(e)||function(e){const{text:t}=e.content,n=t&&t.text.match(c);if(n)return{url:n[0],domain:n[3]}}(e);break;case"audio":o=q;break;case"voice":o=e=>{const t=z(e);return Y(e)||t&&t.isRound};break;case"inlineMedia":o=e=>{const t=z(e);return G(e)||t&&!t.isRound&&!t.isGif||ee(e)||te(e)};break;default:return[]}return t.reduce(((t,n)=>(e[n]&&o(e[n])&&t.push(n),t)),[])}function Ae(e){const{audio:t,voice:n,video:o}=W(e),r=t||n||o||ie(e);if(r)return r.duration}function Ne(e,t){return`${e}_${t}`}const Te={missing_payment_information:{field:"cardNumber",message:"Incorrect card number"},invalid_number:{field:"cardNumber",message:"Incorrect card number"},number:{field:"cardNumber",message:"Incorrect card number"},exp_year:{field:"expiry",message:"Incorrect year"},exp_month:{field:"expiry",message:"Incorrect month"},invalid_expiry_year:{field:"expiry",message:"Incorrect year"},invalid_expiry_month:{field:"expiry",message:"Incorrect month"},cvc:{field:"cvv",message:"Incorrect CVV"},invalid_cvc:{field:"cvv",message:"Incorrect CVV"}};function Le(e){const{message:t,code:n,param:o}=e,{field:r,message:d}=o?Te[o]:Te[n];return{field:r,message:d,description:t}}function Re(e){return`photo${e.id}?size=x`}var Ze=n(76927)},76927:(e,t,n)=>{function o(e){return`videoAvatar${e.id}?size=u`}n.d(t,{D:()=>o})},93311:(e,t,n)=>{n.d(t,{Js:()=>l,NB:()=>m,Rs:()=>I,Tq:()=>f,Vl:()=>c,Z0:()=>v,cS:()=>p,db:()=>b,kK:()=>y,kM:()=>h,kw:()=>g});var o=n(83716),r=n(790),d=n(60782),a=n(82267),s=n(85765),i=n(6272);const u=[1,8,5,2,7,4,6];function c(e){if(e)switch(e.type){case"userTypeBot":case"userTypeRegular":return e.firstName||e.lastName;case"userTypeDeleted":case"userTypeUnknown":return"Deleted";default:return}}function l(e){if(e){if(m(e))return"Deleted Account";switch(e.type){case"userTypeBot":case"userTypeRegular":if(e.firstName&&e.lastName)return`${e.firstName} ${e.lastName}`;if(e.firstName)return e.firstName;if(e.lastName)return e.lastName;if(e.phoneNumber)return`+${(0,i.un)(e.phoneNumber)}`}}}function f(e,t,n,d){if(t.id===o.aw)return e("ServiceNotifications").toLowerCase();if(t.type&&"userTypeBot"===t.type)return e("Bot");if(!n)return"";switch(n.type){case"userStatusEmpty":return e("ALongTimeAgo");case"userStatusLastMonth":return e("WithinAMonth");case"userStatusLastWeek":return e("WithinAWeek");case"userStatusOffline":{const{wasOnline:t}=n;if(!t)return e("LastSeen.Offline");const o=new Date((new Date).getTime()+1e3*d),a=new Date(1e3*t);if(a>=o)return e("LastSeen.JustNow");const s=new Date(o.getTime()-a.getTime());if(s.getTime()/1e3<60)return e("LastSeen.JustNow");if(s.getTime()/1e3<3600)return e("LastSeen.MinutesAgo",Math.floor(s.getTime()/1e3/60));const i=new Date;if(i.setHours(0,0,0,0),a>new Date(i.getTime()+1e3*d))return s.getTime()/1e3<21600?e("LastSeen.HoursAgo",Math.floor(s.getTime()/1e3/60/60)):e("LastSeen.TodayAt",(0,r.mr)(e,a));const u=new Date;return u.setDate(o.getDate()-1),u.setHours(0,0,0,0),a>new Date(u.getTime()+1e3*d)?e("LastSeen.YesterdayAt",(0,r.mr)(e,a)):e("LastSeen.AtDate",(0,r.Tu)(e,a))}case"userStatusOnline":return e("Online");case"userStatusRecently":return e("Lately");default:return}}function h(e,t){const{id:n,type:r}=e;return!!t&&n!==o.aw&&"userStatusOnline"===t.type&&"userTypeBot"!==r}function m(e){return("userTypeDeleted"===e.type||"userTypeUnknown"===e.type)&&e.id!==o.aw}function p(e){return"userTypeBot"===e.type}function g(e){return!e.isContact&&!p(e)}function v(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return(0,d.Xo)(e,(e=>{const d=(0,a.b)(r);if(o&&o.includes(e))return d+172800-(o.length-o.indexOf(e));const s=t[e],i=n[e];if(!s||!i)return 0;if("userStatusOnline"===i.type)return i.expires;if("userStatusOffline"===i.type&&i.wasOnline)return i.wasOnline;switch(i.type){case"userStatusRecently":return d-86400;case"userStatusLastWeek":return d-604800;case"userStatusLastMonth":return d-18144e3;default:return 0}}),"desc")}function y(e,t,n,o,r){if(!n)return e;const d=(0,s.W)(n);return e.filter((e=>{const n=t[e];if(!n)return!1;const a=e===o?r:l(n);return a&&d(a)||d(n.username)}))}function b(e){return"number"==typeof e?Math.abs(e):Math.abs(Number(e))}function I(e){const t=e?b(e.id)%7:0;return u[t]}},33555:(e,t,n)=>{n.d(t,{R3:()=>d,Rd:()=>r,Sv:()=>a,c$:()=>i,iw:()=>s});const o=(0,n(65116).gP)(),r=o.getGlobal,d=o.setGlobal,a=o.getActions,s=o.addActionHandler,i=o.withGlobal},35369:(e,t,n)=>{n.d(t,{Y:()=>a});var o=n(91713),r=n(83716),d=n(77361);const a={isLeftColumnShown:!0,isChatInfoShown:!1,newChatMembersProgress:o.WB.Closed,uiReadyState:0,serverTimeOffset:0,isUpdateAvailable:!1,authRememberMe:!0,countryList:{phoneCodes:[],general:[]},blocked:{ids:[],totalCount:0},users:{byId:{},statusesById:{}},chats:{listIds:{},isFullyLoaded:{},orderedPinnedIds:{},totalCount:{},byId:{}},messages:{byChatId:{},messageLists:[],sponsoredByChatId:{}},groupCalls:{byId:{}},scheduledMessages:{byChatId:{}},chatFolders:{byId:{},activeChatFolder:0},fileUploads:{byMessageLocalId:{}},recentEmojis:["grinning","kissing_heart","christmas_tree","brain","trophy","duck","cherries"],recentCustomEmojis:["5377305978079288312"],stickers:{setsById:{},added:{},recent:{stickers:[]},favorite:{stickers:[]},greeting:{stickers:[]},premium:{stickers:[]},premiumSet:{stickers:[]},featured:{setIds:[]},search:{},forEmoji:{}},customEmojis:{lastRendered:[],byId:{},added:{}},emojiKeywords:{},gifs:{saved:{},search:{}},inlineBots:{isLoading:!1,byUsername:{}},globalSearch:{},userSearch:{},localTextSearch:{byChatThreadKey:{}},localMediaSearch:{byChatId:{}},management:{byChatId:{}},topPeers:{},topInlineBots:{},mediaViewer:{volume:r.Qx,playbackRate:r.mw,isMuted:!1},audioPlayer:{volume:r.Qx,playbackRate:r.mw,isMuted:!1},forwardMessages:{},pollResults:{},payment:{},notifications:[],dialogs:[],activeSessions:{byHash:{},orderedHashes:[]},activeWebSessions:{byHash:{},orderedHashes:[]},settings:{byKey:{theme:"light",shouldUseSystemTheme:!0,messageTextSize:d.cj?r.b6:d.jm?r.AR:r.xS,animationLevel:r.CX,messageSendKeyCombo:"enter",canAutoLoadPhotoFromContacts:!0,canAutoLoadPhotoInPrivateChats:!0,canAutoLoadPhotoInGroups:!0,canAutoLoadPhotoInChannels:!0,canAutoLoadVideoFromContacts:!0,canAutoLoadVideoInPrivateChats:!0,canAutoLoadVideoInGroups:!0,canAutoLoadVideoInChannels:!0,canAutoLoadFileFromContacts:!1,canAutoLoadFileInPrivateChats:!1,canAutoLoadFileInGroups:!1,canAutoLoadFileInChannels:!1,autoLoadFileMaxSizeMb:10,hasWebNotifications:!0,hasPushNotifications:!0,notificationSoundVolume:5,canAutoPlayGifs:!0,canAutoPlayVideos:!0,shouldSuggestStickers:!0,shouldLoopStickers:!0,language:"en",timeFormat:"24h",wasTimeFormatSetManually:!1,isConnectionStatusMinimized:!0,shouldArchiveAndMuteNewNonContact:!1},themes:{light:{isBlurred:!0,patternColor:r.g},dark:{isBlurred:!0,patternColor:r.Vv}},privacy:{},notifyExceptions:{}},twoFaSettings:{},passcode:{},activeReactions:{},shouldShowContextMenuHint:!0,activeDownloads:{byChatId:{}},serviceNotifications:[],statistics:{byChatId:{}},pollModal:{isOpen:!1},trustedBotIds:[],attachMenu:{bots:{}},transcriptions:{}}},53475:(e,t,n)=>{n.d(t,{B1:()=>s,Dd:()=>p,GL:()=>c,Mg:()=>a,Pi:()=>h,SL:()=>i,a4:()=>u,fZ:()=>l,iX:()=>g,vv:()=>m});var o=n(83716),r=n(60782),d=n(11192);function a(e,t,n){return{...e,chats:{...e.chats,listIds:{...e.chats.listIds,[t]:n}}}}function s(e,t,n){const{[t]:o}=e.chats.listIds,r=null!=o&&o.length?n.filter((e=>!o.includes(e))):n;return o&&!r.length?e:a(e,t,[...o||[],...r])}function i(e,t){return{...e,chats:{...e.chats,byId:t}}}function u(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const{byId:d}=e.chats,a=f(e,t,n,o,r);return a?i(e,{...d,[t]:a}):e}function c(e,t){const n=Object.keys(t).reduce(((n,o)=>{const r=f(e,o,t[o]);return r&&(n[o]=r),n}),{});return e=i(e,{...e.chats.byId,...n})}function l(e,t){const{byId:n}=e.chats;let o=!1;const r=Object.keys(t).reduce(((r,d)=>{if(!n[d]||n[d].isMin&&!t[d].isMin){const n=f(e,d,t[d]);n&&(r[d]=n,o||(o=!0))}return r}),{});return o?e=i(e,{...n,...r}):e}function f(e,t,n,o){let d=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const{byId:a}=e.chats,s=a[t],i=n.isMin&&s&&!s.isMin;n=d?n:(0,r.CE)(n,["unreadReactionsCount"]);const u={...s,...i?(0,r.CE)(n,["isMin","accessHash"]):n,...o&&{photos:[o,...s.photos||[]]}};if(u.id&&u.type)return u}function h(e,t,n){const r=n===o.WS?"archived":"active";let d=e.chats.listIds;return Object.keys(d).forEach((e=>{const n=d[e]||[];e!==r||n.includes(t)?e!==r&&n.includes(t)&&(d={...d,[e]:n.filter((e=>e!==t))}):d={...d,[e]:[...n,t]}})),u(e={...e,chats:{...e.chats,listIds:d}},t,{folderId:n||void 0})}function m(e,t,n){const o="active"===t?"all":"archived";return{...e,chats:{...e.chats,...n.orderedPinnedIds&&{orderedPinnedIds:{...e.chats.orderedPinnedIds,[t]:n.orderedPinnedIds}},totalCount:{...e.chats.totalCount,[o]:n.totalChatCount},isFullyLoaded:{...e.chats.isFullyLoaded,[t]:!1}}}}function p(e,t){const n=(0,d.Ek)(e,t);if(!n)return e;const{[n]:o}=e.chats.listIds;return o&&(e=a(e,n,o.filter((e=>e!==t)))),u(e,t,{isNotJoined:!0})}function g(e,t,n){var o;const d=null===(o=t.fullInfo)||void 0===o?void 0:o.members,a=new Set(n.map((e=>e.userId))),s=[...(null==d?void 0:d.filter((e=>!a.has(e.userId))))||[],...n],i=(null==d?void 0:d.map((e=>{let{userId:t}=e;return t})))||[],c=s.map((e=>{let{userId:t}=e;return t}));return(0,r.et)(i,c)?e:u(e,t.id,{fullInfo:{...t.fullInfo,members:s}})}},5161:(e,t,n)=>{n.d(t,{O4:()=>K,iX:()=>o.iX,c_:()=>r.c_,fZ:()=>o.fZ,m6:()=>r.m6,aK:()=>G,aJ:()=>H,zn:()=>P,Sh:()=>y,$S:()=>r.$S,ZI:()=>ee,Kn:()=>Q,bp:()=>ce,WY:()=>le,ft:()=>k,K4:()=>r.K4,bV:()=>r.bV,GK:()=>I,M6:()=>r.M6,i9:()=>r.i9,Dd:()=>o.Dd,vy:()=>f,rB:()=>J,g_:()=>c,Mg:()=>o.Mg,SL:()=>o.SL,Pb:()=>F,w3:()=>r.w3,BI:()=>V,lr:()=>W,pf:()=>r.pf,ps:()=>E,s5:()=>m,y9:()=>r.y9,fS:()=>ie,bs:()=>re,_7:()=>se,Q$:()=>oe,Dq:()=>ue,vT:()=>ne,QD:()=>ae,QH:()=>de,Ob:()=>r.Ob,a4:()=>o.a4,B1:()=>o.B1,vv:()=>o.vv,Pi:()=>o.Pi,cY:()=>r.cY,GL:()=>o.GL,Wy:()=>r.Wy,wV:()=>r.wV,cq:()=>r.cq,rq:()=>u,No:()=>A,Og:()=>N,xv:()=>L,px:()=>T,xj:()=>r.xj,c1:()=>_,z5:()=>x,qr:()=>B,dx:()=>D,fw:()=>j,H9:()=>U,kM:()=>he,HN:()=>z,ff:()=>r.ff,vu:()=>X,P4:()=>r.P4,TM:()=>te,Fn:()=>r.Fn,ze:()=>fe,yC:()=>me,Rg:()=>i,z3:()=>s,IM:()=>l,sN:()=>r.sN,Xg:()=>r.Xg,j6:()=>r.j6,lG:()=>r.lG,IE:()=>q,Nq:()=>g,Lm:()=>w,Q3:()=>C,eD:()=>v});var o=n(53475),r=n(4907),d=n(60782),a=n(11192);function s(e,t,n,o,r){const a=o.map((t=>{const n=e.stickers.setsById[t.id];return n?{...n,...t}:t})),s=o.filter((e=>!e.isEmoji)).map((e=>e.id)),i="added"===t?o.filter((e=>e.isEmoji)).map((e=>e.id)):[],u=o.filter((e=>e.isEmoji)).map((e=>e.stickers)).flat().filter(Boolean);return{...e,stickers:{...e.stickers,setsById:{...e.stickers.setsById,...(0,d.ee)(a,"id")},[t]:{...e.stickers[t],hash:n,..."search"===t?{resultIds:r}:{setIds:[...e.stickers[t].setIds||[],...s]}}},customEmojis:{...e.customEmojis,added:{...e.customEmojis.added,hash:n,setIds:[...e.customEmojis.added.setIds||[],...i]},byId:{...e.customEmojis.byId,...(0,d.ee)(u,"id")}}}}function i(e,t,n){const o=e.stickers.setsById[t]||{},r=n.isEmoji||o.isEmoji,a=(r?e.customEmojis.added.setIds:e.stickers.added.setIds)||[];let s=a;n.installedDate&&a&&!a.includes(t)&&(s=[t,...s]),!n.installedDate&&null!=a&&a.includes(t)&&(s=s.filter((e=>e!==t)));const i=r&&o.stickers&&(0,d.ee)(o.stickers,"id");return{...e,stickers:{...e.stickers,added:{...e.stickers.added,...!r&&{setIds:s}},setsById:{...e.stickers.setsById,[t]:{...o,...n}}},customEmojis:{...e.customEmojis,byId:{...e.customEmojis.byId,...i},added:{...e.customEmojis.added,...r&&{setIds:s}}}}}function u(e,t,n,o){const{results:r}=e.gifs.search;let d;if(t||!r)d=n;else{const e=new Set(r.map((e=>e.id)));d=[...r,...n.filter((t=>!e.has(t.id)))]}return{...e,gifs:{...e.gifs,search:{...e.gifs.search,offset:o,results:d}}}}function c(e,t){return{...e,animatedEmojis:t}}function l(e,t,n,o){const r=[...(0,a.Pk)(e,t),...n||[]],s=(0,d.Tw)(r.map((e=>{let{id:t}=e;return t}))),i=(0,d.ee)(r,"id"),u=s.map((e=>i[e]));return{...e,stickers:{...e.stickers,forEmoji:{emoji:t,stickers:u,hash:o}}}}function f(e){if(e.stickers.forEmoji){const{emoji:t,stickers:n,hash:o}=e.stickers.forEmoji;return t?l(e,t,n,o):e}return e}var h=n(70735);function m(e,t){return{...e,users:{...e.users,byId:t}}}function p(e,t){const{userIds:n}=e.contactList||{};if(!n)return e;const o=t.filter((e=>(null==e?void 0:e.isContact)&&!n.includes(e.id))).map((e=>e.id));return 0===o.length?e:{...e,contactList:{userIds:[...o,...n]}}}function g(e,t,n){const{byId:o}=e.users,r=b(e,t,n);return r?m(e=p(e,[r]),{...o,[t]:r}):e}function v(e,t){const n=Object.keys(t).reduce(((n,o)=>{const r=b(e,o,t[o]);return r&&(n[o]=r),n}),{});return e=p(e=m(e,{...e.users.byId,...n}),Object.values(n))}function y(e,t){const{byId:n}=e.users;let o=!1;const r=Object.keys(t).reduce(((r,d)=>{if(!n[d]||n[d].isMin&&!t[d].isMin){const n=b(e,d,t[d]);n&&(r[d]=n,o||(o=!0))}return r}),{});return o?e=p(e=m(e,{...n,...r}),Object.values(r)):e}function b(e,t,n){const{byId:o}=e.users,r=o[t],a=n.isMin&&r&&!r.isMin,s={...r,...a?(0,d.CE)(n,["isMin","accessHash"]):n};if(s.id&&s.type)return s}function I(e,t){const{byId:n}=e.users,{userIds:r}=e.contactList||{};return e=m(e={...e,contactList:{userIds:r?r.filter((e=>e!==t)):h.D}},{...n,[t]:{...n[t],isContact:void 0}}),(0,o.a4)(e,t,{settings:void 0})}function w(e,t){return{...e,userSearch:{...e.userSearch,...t}}}function C(e,t){return w(e,{fetchingStatus:t})}function S(e,t,n){const{byId:o}=e.users,r=o[t];return r&&r.fullInfo?g(e,t,{...r,fullInfo:{...r.fullInfo,isBlocked:n}}):e}function E(e,t){return{...e,users:{...e.users,statusesById:t}}}function P(e,t){const{statusesById:n}=e.users,o=Object.keys(t).filter((e=>!n[e]));return o.length?e=E(e,{...n,...(0,d.ei)(t,o)}):e}function k(e){return{...e,newContact:void 0}}const M=e=>`${e.chatId}_${e.id}`;function A(e,t){return{...e,globalSearch:{...e.globalSearch,...t}}}function N(e,t){return A(e,{currentContent:t})}function T(e,t,n,o,r){var a;const{resultsByType:s}=e.globalSearch||{},i=t.reduce(((e,t)=>(e[M(t)]=t,e)),{}),u=null==s||null===(a=s[o])||void 0===a?void 0:a.foundIds;if(void 0!==u&&Object.keys(i).every((e=>u.includes(M(i[e])))))return L(e,{messages:!1});const c=u||[],l=t.map((e=>M(e))),f=Array.prototype.concat(c,l),h=(0,d.et)(c,f)?c:f;return A(e=L(e,{messages:!1}),{resultsByType:{...(e.globalSearch||{}).resultsByType,[o]:{totalCount:n,nextOffsetId:r,foundIds:h}}})}function L(e,t){return A(e,{fetchingStatus:{...e.globalSearch.fetchingStatus,...t}})}var R=n(83158);function Z(e,t,n){return{...e,localTextSearch:{byChatThreadKey:{...e.localTextSearch.byChatThreadKey,[t]:n}}}}function B(e,t,n,o,r){const d=(0,R.uw)(t,n);return Z(e,d,{...e.localTextSearch.byChatThreadKey[d],isActive:o,query:r})}function F(e,t,n,o,r,d){const a=(0,R.uw)(t,n);return Z(e,a,{...e.localTextSearch.byChatThreadKey[a],results:{foundIds:o,totalCount:r,nextOffsetId:d}})}function D(e,t,n,o,r,a){const s=(0,R.uw)(t,n),{results:i}=e.localTextSearch.byChatThreadKey[s]||{},u=(null==i?void 0:i.foundIds)||[],c=$((0,d.Tw)(Array.prototype.concat(u,o)));return F(e,t,n,(0,d.et)(u,c)?u:c,r,a)}function O(e,t,n){return{...e,localMediaSearch:{byChatId:{...e.localMediaSearch.byChatId,[t]:n}}}}function x(e,t,n){return O(e,t,{...e.localMediaSearch.byChatId[t],currentType:n})}function _(e,t,n,o,r,a){const{resultsByType:s}=e.localMediaSearch.byChatId[t]||{},i=null!=s&&s[n]?s[n].foundIds:[],u=$((0,d.Tw)(Array.prototype.concat(i,o)));return function(e,t,n,o,r,d){return O(e,t,{...e.localMediaSearch.byChatId[t],resultsByType:{...(e.localMediaSearch.byChatId[t]||{}).resultsByType,[n]:{foundIds:o,totalCount:r,nextOffsetId:d}}})}(e,t,n,(0,d.et)(i,u)?i:u,r,a)}function $(e){return e.sort(((e,t)=>t-e))}function U(e,t){return{...e,management:{...e.management,progress:t}}}function j(e,t,n){return{...e,management:{...e.management,byChatId:{...e.management.byChatId,[t]:{...e.management.byChatId[t]||{},...n}}}}}function V(e,t){return{...e,settings:{...e.settings,byKey:{...e.settings.byKey,...t}}}}function W(e,t,n){return{...e,settings:{...e.settings,themes:{...e.settings.themes,[t]:{...e.settings.themes[t]||{},...n}}}}}function H(e,t){return t.forEach((t=>{const{chatId:n,...o}=t;e=G(e,n,o)})),e}function G(e,t,n){return{...e,settings:{...e.settings,notifyExceptions:{...e.settings.notifyExceptions,[t]:n}}}}function z(e,t,n,o){switch(t){case"contact":return V(e,{...void 0!==n&&{hasPrivateChatsNotifications:!n},...void 0!==o&&{hasPrivateChatsMessagePreview:o}});case"group":return V(e,{...void 0!==n&&{hasGroupNotifications:!n},...void 0!==o&&{hasGroupMessagePreview:o}});case"broadcast":return V(e,{...void 0!==n&&{hasBroadcastNotifications:!n},...void 0!==o&&{hasBroadcastMessagePreview:o}})}}function K(e,t){return e=S(e,t,!0),{...e,blocked:{...e.blocked,ids:[t,...e.blocked.ids],totalCount:e.blocked.totalCount+1}}}function J(e,t){return e=S(e,t,!1),{...e,blocked:{...e.blocked,ids:e.blocked.ids.filter((e=>e!==t)),totalCount:e.blocked.totalCount-1}}}function q(e,t){return{...e,twoFaSettings:{...e.twoFaSettings,...t}}}var Y=n(35369);function X(e,t){return{...e,passcode:{...e.passcode,...t}}}function Q(e){return{...e,passcode:{}}}function ee(e){const{theme:t,shouldUseSystemTheme:n,animationLevel:o,language:r}=e.settings.byKey;return{...Y.Y,passcode:e.passcode,settings:{...Y.Y.settings,byKey:{...Y.Y.settings.byKey,theme:t,shouldUseSystemTheme:n,animationLevel:o,language:r}}}}function te(e,t){return{...e,payment:{...e.payment,shippingOptions:t}}}function ne(e,t){return{...e,payment:{...e.payment,requestId:t}}}function oe(e,t){return{...e,payment:{...e.payment,step:t}}}function re(e,t){const{title:n,text:o,amount:r,currency:d,isTest:a,photo:s,isRecurring:i,recurringTermsUrl:u}=t;return{...e,payment:{...e.payment,invoiceContent:{title:n,text:o,photo:s,amount:r,currency:d,isTest:a,isRecurring:i,recurringTermsUrl:u}}}}function de(e,t){return{...e,payment:{...e.payment,stripeCredentials:{...t}}}}function ae(e,t){return{...e,payment:{...e.payment,smartGlocalCredentials:{...t}}}}function se(e,t){return{...e,payment:{...e.payment,...t}}}function ie(e,t){return{...e,payment:{...e.payment,confirmPaymentUrl:t}}}function ue(e,t,n){if(!t||!n)return{...e,payment:{...e.payment,receipt:void 0}};const{invoice:o}=n.content,{photo:r,text:d,title:a}=o||{};return{...e,payment:{...e.payment,receipt:{...t,photo:r,text:d,title:a}}}}function ce(e){return{...e,payment:{}}}function le(e){return{...e,payment:{...e.payment,isPaymentModalOpen:!1}}}function fe(e,t,n){return{...e,statistics:{byChatId:{...e.statistics.byChatId,[t]:n}}}}function he(e,t){return{...e,statistics:{...e.statistics,currentMessage:t}}}function me(e,t,n,o){return{...e,statistics:{...e.statistics,byChatId:{...e.statistics.byChatId,[t]:{...e.statistics.byChatId[t]||{},[n]:o}}}}}},4907:(e,t,n)=>{n.d(t,{$S:()=>w,Fn:()=>M,K4:()=>g,M6:()=>N,Ob:()=>T,P4:()=>p,Wy:()=>s,Xg:()=>S,bV:()=>v,cY:()=>m,c_:()=>h,cq:()=>k,ff:()=>b,i9:()=>L,j6:()=>E,lG:()=>R,m6:()=>f,pf:()=>l,sN:()=>u,w3:()=>P,wV:()=>A,xj:()=>y,y9:()=>C});var o=n(6137),r=n(83716),d=n(11192),a=n(60782);function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o._f,d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"thread",a=arguments.length>4?arguments[4]:void 0;const{messageLists:s}=e.messages;let i=s;if(a||r.Cg&&!r.Nu)i=t?[{chatId:t,threadId:n,type:d}]:[];else if(t){const e=s[s.length-1];e&&e.chatId===t&&e.threadId===n&&e.type===d||(i=e&&e.chatId===r.AJ?[...s.slice(0,-1),{chatId:t,threadId:n,type:d}]:[...s,{chatId:t,threadId:n,type:d}])}else i=s.slice(0,-1);return{...e,messages:{...e.messages,messageLists:i}}}function i(e,t,n){return c(e,t,{byId:n})}function u(e,t,n,o){const r=e.messages.byChatId[t];return c(e,t,{threadsById:{...null==r?void 0:r.threadsById,[n]:{...null==r?void 0:r.threadsById[n],...o}}})}function c(e,t,n){const o=e.messages.byChatId[t]||{byId:{},threadsById:{}};return{...e,messages:{...e.messages,byChatId:{...e.messages.byChatId,[t]:{...o,...n}}}}}function l(e,t,n,o,r){return u(e,t,n,{[o]:r})}function f(e,t){const n=t.reduce(((e,t)=>(e[t.chatId]||(e[t.chatId]={}),e[t.chatId][t.id]=t,e)),{});return Object.keys(n).forEach((t=>{e=h(e,t,n[t])})),e}function h(e,t,n){const o=(0,d.Zw)(e,t);return o&&Object.keys(n).every((e=>Boolean(o[Number(e)])))?e:i(e,t,{...n,...o})}function m(e,t,n,o){const r=(0,d.Zw)(e,t)||{},a={...r[n],...o};return a.id?i(e,t,{...r,[n]:a}):e}function p(e,t,n,o){const r=(0,d.Fn)(e,t)||{},a={...r[n],...o};return a.id?P(e,t,{...r,[n]:a}):e}function g(e,t,n){const o=(0,d.Zw)(e,t);if(!o)return e;const r=(0,a.CE)(o,n),u=Object.values((0,a.q0)(o,n)).filter((e=>{let{forwardInfo:t}=e;return null==t?void 0:t.isLinkedChannelPost}));if(Object.keys(e.messages.byChatId[t].threadsById).map(Number).forEach((o=>{const r=(0,d.tZ)(e,t,o);let a=(0,d.gb)(e,t,o),s=(0,d.qC)(e,t,o),i=(0,d.Cb)(e,t,o),u=(0,d.KB)(e,t),c=null==r?void 0:r.messagesCount;n.forEach((e=>{a&&a.includes(e)&&(a=a.filter((t=>t!==e)),void 0!==c&&(c-=1)),s&&s.includes(e)&&(s=s.filter((t=>t!==e))),i&&i.includes(e)&&(i=i.filter((t=>t!==e))),u&&u.includes(e)&&(u=u.filter((t=>t!==e)))})),e=l(e,t,o,"listedIds",a),e=l(e,t,o,"outlyingIds",s),e=l(e,t,o,"viewportIds",i),e=l(e,t,o,"pinnedIds",u),r&&void 0!==c&&(e=l(e,t,o,"threadInfo",{...r,messagesCount:c}))})),u.length){const n=(0,d.Bt)(e),o=n&&n.chatId===t&&"thread"===n.type,r=null==n?void 0:n.threadId;u.forEach((n=>{const{fromChatId:a,fromMessageId:i}=n.forwardInfo,u=(0,d.hj)(e,a,i);o&&r===i&&(e=s(e,t)),u&&(e=m(e,a,i,{threadInfo:void 0}))}))}return e=i(e,t,r)}function v(e,t,n){const r=(0,d.Fn)(e,t);if(!r)return e;const s=(0,a.CE)(r,n);let i=(0,d.qy)(e,t);return i&&(n.forEach((e=>{i.includes(e)&&(i=i.filter((t=>t!==e)))})),e=l(e,t,o._f,"scheduledIds",i)),P(e,t,s)}function y(e,t,n,o){const r=(0,d.gb)(e,t,n),a=null!=r&&r.length?o.filter((e=>!r.includes(e))):o;return r&&!a.length?e:l(e,t,n,"listedIds",I([...r||[],...a]))}function b(e,t,n,o){const r=(0,d.qC)(e,t,n),a=null!=r&&r.length?o.filter((e=>!r.includes(e))):o;return r&&!a.length?e:l(e,t,n,"outlyingIds",I([...r||[],...a]))}function I(e){return e.sort(((e,t)=>e-t))}function w(e,t,n,o){const a=(0,d.Cb)(e,t,n)||[];return a.includes(o)?e:l(e,t,n,"viewportIds",I([...a.length{e=S(e,t.chatId,t.threadId,t)})),e}function P(e,t,n){return function(e,t,n){const o=e.scheduledMessages.byChatId[t]||{byId:{},hash:0};return{...e,scheduledMessages:{byChatId:{...e.scheduledMessages.byChatId,[t]:{...o,...n}}}}}(e,t,{byId:n})}function k(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{...e,focusedMessage:{...e.focusedMessage,chatId:t,messageId:n,noHighlight:o,isResizingContainer:r}}}function M(e,t,n){return{...e,messages:{...e.messages,sponsoredByChatId:{...e.messages.sponsoredByChatId,[t]:n}}}}function A(e,t){return{...e,focusedMessage:{...e.focusedMessage,direction:t}}}function N(e,t,n){return{...e,selectedMessages:{chatId:t,messageIds:n?Array.prototype.concat([],n):[]}}}function T(e,t,n,o,r,s,i){let u=arguments.length>7&&void 0!==arguments[7]&&arguments[7];const{selectedMessages:c}=e;s&&(i=(0,d.xH)(e,t,s));const l=i||[r];if(!c)return N(e,t,l);const{messageIds:f}=c;let h;const m=l.filter((e=>!f.includes(e)));if(m&&!m.length)h=f.filter((e=>!l.includes(e)));else if(u&&f.length){const s=(0,d.$W)(e,t,n,o),i=s.indexOf(f[f.length-1]),u=s.indexOf(r),c=Math.min(i,u),l=Math.max(i,u),m=s.slice(c,l+1);h=(0,a.Tw)([...f,...m])}else h=[...f,...m];return h.length?{...e,selectedMessages:{...c,messageIds:h}}:L(e)}function L(e){return{...e,selectedMessages:void 0}}function R(e,t,n,o,r){const{channelPostId:a,fromChatId:s}=t.forwardInfo||{};if(a&&s){const t=(0,d.tZ)(e,n,a);t&&(e=l(e,n,a,"threadInfo",{...t,lastMessageId:o,messagesCount:t.messagesCount+(r?-1:1)}))}return e}},14342:(e,t,n)=>{n.d(t,{DI:()=>C,Ek:()=>b,FM:()=>u,IK:()=>h,JR:()=>k,LM:()=>m,Mw:()=>I,N:()=>y,P_:()=>l,QV:()=>P,UW:()=>S,YK:()=>f,Z1:()=>s,_5:()=>E,ep:()=>w,g4:()=>v,pk:()=>g,t:()=>p,xo:()=>c});var o=n(6137),r=n(83158),d=n(86087),a=n(83716);function s(e,t){return e.chats.byId[t]}function i(e,t){const n=(0,r.zX)(t);return!!n&&(0,d.dy)(e,n)}function u(e,t){return t===e.currentUserId}function c(e,t){const n=i(e,t);return n&&(0,r.cS)(n)}function l(e){return Object.values(e.chats.byId).find((e=>{let{isSupport:t}=e;return t}))}function f(e,t){if(!(0,r.YC)(t.id)&&!(0,r.eA)(t)&&t.fullInfo)return t.fullInfo.members&&t.fullInfo.members.length!==a.mo?t.fullInfo.members.reduce(((t,n)=>{let{userId:o}=n;return o!==e.currentUserId&&e.users.byId[o]&&(0,r.kM)(e.users.byId[o],e.users.statusesById[o])?t+1:t}),0):t.fullInfo.onlineCount}function h(e,t){const n=s(e,t),o=n&&(0,r.zX)(n),a=o&&(0,d.dy)(e,o);if(a&&(0,r.cS)(a))return a}function m(e,t){const n=(0,d.dy)(e,t);return n&&(n.isVerified||e.trustedBotIds.includes(t))}function p(e,t){const n=s(e,t);if(n)return(0,d.kB)(e,t)?"bots":i(e,n)?"users":(0,r.eA)(n)?"channels":"chats"}function g(e,t){const n=s(e,t),d=h(e,t);if(!n||!d)return!1;if(n.lastMessage&&(0,r.CD)(n.lastMessage))return!0;const a=e.messages.byChatId[t];if(!a)return!1;const{listedIds:i}=a.threadsById[o._f]||{};return i&&!i.length}function v(e){return Boolean(e.chats.listIds.active)}function y(e,t,n){const{listIds:o}=e.chats;if(n){const e=o[n];return Boolean(e&&e.includes(t))}return Object.values(o).some((e=>e&&e.includes(t)))}function b(e,t){const n=s(e,t);if(n&&y(e,t))return n.folderId===a.WS?"archived":"active"}function I(e,t){return e.chatFolders.byId[t]}function w(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.Nf;const{active:o,archived:r}=e.chats.orderedPinnedIds;if(n===a.Nf)return Boolean(null==o?void 0:o.includes(t));if(n===a.WS)return Boolean(null==r?void 0:r.includes(t));const{byId:d}=e.chatFolders,{pinnedChatIds:s}=d[n]||{};return Boolean(null==s?void 0:s.includes(t))}function C(e,t){const n=t.toLowerCase();return Object.values(e.chats.byId).find((e=>e.username&&e.username.toLowerCase()===n))}function S(e){return Boolean(s(e,a.aw))}function E(e,t){var n;const o=s(e,t);if(!o)return;const r=null==o||null===(n=o.fullInfo)||void 0===n?void 0:n.sendAsId;return r?(0,d.dy)(e,r)||s(e,r):void 0}function P(e,t){var n;if((null===(n=e.requestedDraft)||void 0===n?void 0:n.chatId)===t)return e.requestedDraft.text}function k(e,t,n){return t.filter((t=>{const o=p(e,t);return!!o&&n.includes(o)}))}},11192:(e,t,n)=>{n.d(t,{JR:()=>s.JR,xs:()=>me,_k:()=>ue,zB:()=>v,tH:()=>y,Oh:()=>b,g4:()=>s.g4,bH:()=>Me,__:()=>Ne,xl:()=>ce,Nu:()=>fe,nB:()=>le,Eh:()=>xe,Z1:()=>s.Z1,IK:()=>s.IK,DI:()=>s.DI,Mw:()=>s.Mw,Ek:()=>s.Ek,hj:()=>X,ZB:()=>te,Zw:()=>M,YK:()=>s.YK,t:()=>s.t,X5:()=>be,jr:()=>k,yN:()=>f,JX:()=>qe,pP:()=>He,we:()=>je,$W:()=>R,Bt:()=>P,y5:()=>l,n5:()=>Ue,q6:()=>Fe,Ms:()=>j,s:()=>_,_$:()=>x,kK:()=>ee,hI:()=>U,wU:()=>$,yZ:()=>H,It:()=>ve,G$:()=>ne,y8:()=>Ce,cv:()=>ie,Nm:()=>$e,ku:()=>Ze,pk:()=>s.pk,N:()=>s.N,ep:()=>s.ep,xo:()=>s.xo,FM:()=>s.FM,wV:()=>i.wV,a6:()=>Ee,te:()=>he,Ev:()=>ye,CA:()=>Ie,zQ:()=>Ge,_X:()=>oe,KA:()=>q,EV:()=>Re,vk:()=>we,oe:()=>i.oe,Jf:()=>Ke,UW:()=>s.UW,FW:()=>p,LM:()=>s.LM,s4:()=>i.s4,b9:()=>Y,VF:()=>Le,gb:()=>T,CP:()=>I,cu:()=>w,ji:()=>C,aW:()=>We,q_:()=>_e,xH:()=>Se,FT:()=>ke,tV:()=>V,NJ:()=>dt,dZ:()=>rt,dT:()=>de,qC:()=>L,eh:()=>Xe,kb:()=>Ye,sp:()=>Qe,KB:()=>B,EB:()=>tt,$$:()=>et,rd:()=>ge,Bz:()=>se,p9:()=>G,Yy:()=>O,QV:()=>s.QV,Wq:()=>ze,qy:()=>F,Tm:()=>Q,Fn:()=>A,Vt:()=>D,D7:()=>Pe,_5:()=>s._5,Ur:()=>ae,yB:()=>Te,Aq:()=>Oe,Jg:()=>ot,fS:()=>Be,aT:()=>Ve,Ny:()=>h,Pk:()=>m,i3:()=>nt,P_:()=>s.P_,Pu:()=>Je,Db:()=>J,tZ:()=>W,Cm:()=>z,qS:()=>K,uZ:()=>pe,dy:()=>i.dy,Bk:()=>i.Bk,ss:()=>i.ss,Cb:()=>Z,P2:()=>De});var o=n(91713),r=n(77361),d=n(6137),a=n(83716),s=n(14342),i=n(86087),u=n(83158),c=n(60782);function l(e){return e.stickers.search}function f(e){return e.gifs.search}function h(e,t){return"string"==typeof t?e.stickers.setsById[t]:"id"in t?e.stickers.setsById[t.id]:"isMissing"in t?void 0:Object.values(e.stickers.setsById).find((e=>{let{shortName:n}=e;return n.toLowerCase()===t.shortName.toLowerCase()}))}function m(e,t){const n=e.stickers.added.setIds;let o=[];return e.stickers.favorite.stickers.forEach((e=>{e.emoji===t&&o.push(e)})),null==n||n.forEach((n=>{const r=e.stickers.setsById[n].packs;r&&(o=o.concat(r[t]||[],r[g(t)]||[]))})),o}function p(e){var t;return e.isEmoji&&(null===(t=e.stickers)||void 0===t?void 0:t.some((e=>!e.isFree)))}function g(e){return e.replace("️","")}function v(e,t){const{animatedEmojis:n}=e;if(!n||!n.stickers)return;const o=g(t);return n.stickers.find((e=>e.emoji===t||e.emoji===o))}function y(e,t){const{animatedEmojiEffects:n}=e;if(!n||!n.stickers)return;const o=g(t);return n.stickers.find((e=>e.emoji===t||e.emoji===o))}function b(e,t){var n;return null==e||null===(n=e.appConfig)||void 0===n?void 0:n.emojiSounds[g(t)]}function I(e,t){const n=g(t);return"🍑"===n?"Peach":"🍆"===n?"Eggplant":void 0}function w(e){return"Eggplant"===e?"Cumshot":void 0}function C(e){return"Cumshot"===e?"🍆":void 0}var S=n(82267),E=n(70735);function P(e){const{messageLists:t}=e.messages;if(t.length)return t[t.length-1]}function k(e){const{chatId:t}=P(e)||{};return t?(0,s.Z1)(e,t):void 0}function M(e,t){var n;return null===(n=e.messages.byChatId[t])||void 0===n?void 0:n.byId}function A(e,t){var n;return null===(n=e.scheduledMessages.byChatId[t])||void 0===n?void 0:n.byId}function N(e,t,n,o){const r=e.messages.byChatId[t];if(!r)return;const d=r.threadsById[n];return d?d[o]:void 0}function T(e,t,n){return N(e,t,n,"listedIds")}function L(e,t,n){return N(e,t,n,"outlyingIds")}function R(e,t,n,o){switch(o){case"thread":return Z(e,t,n);case"pinned":return B(e,t);case"scheduled":return F(e,t)}}function Z(e,t,n){return N(e,t,n,"viewportIds")}function B(e,t){return N(e,t,d._f,"pinnedIds")}function F(e,t){return N(e,t,d._f,"scheduledIds")}function D(e,t,n){return N(e,t,n,"scrollOffset")}function O(e,t,n){return N(e,t,n,"replyingToId")}function x(e,t,n){return N(e,t,n,"editingId")}function _(e,t,n){return N(e,t,n,"editingDraft")}function $(e,t){return N(e,t,d._f,"editingScheduledId")}function U(e,t){return N(e,t,d._f,"editingScheduledDraft")}function j(e,t,n){return N(e,t,n,"draft")}function V(e,t,n){return N(e,t,n,"noWebPage")}function W(e,t,n){return N(e,t,n,"threadInfo")}function H(e,t,n){return N(e,t,n,"firstMessageId")}function G(e,t,n){return N(e,t,n,"replyStack")}function z(e,t,n){if(n===d._f)return(0,s.Z1)(e,t);const o=W(e,t,n);return o?(0,s.Z1)(e,o.originChannelId||t):void 0}function K(e,t,n){if(n===d._f)return;const o=W(e,t,n);return o?o.topMessageId:void 0}function J(e,t,n){const o=e.messages.byChatId[t];if(!o)return;const{replyToMessageId:r,replyToTopMessageId:d}=n;return r||d?Object.values(o.threadsById).find((e=>e.threadInfo&&(r&&r===e.threadInfo.topMessageId||d&&d===e.threadInfo.topMessageId))):void 0}function q(e,t,n){const o=P(e);if(!o)return!1;const{threadInfo:r}=J(e,t,n)||{};return t===o.chatId&&(o.threadId===d._f||r&&o.threadId===r.threadId)}function Y(e,t,n){const o=Z(e,t,n);if(!o||!o.length)return!0;let r;if(n===d._f){const n=(0,s.Z1)(e,t);if(!n||!n.lastMessage)return!0;r=n.lastMessage.id}else{const o=W(e,t,n);if(!o||!o.lastMessageId)return;r=o.lastMessageId}return r>a.MP&&!X(e,t,r)||o[o.length-1]>=r}function X(e,t,n){const o=M(e,t);return o?o[n]:void 0}function Q(e,t,n){const o=A(e,t);return o?o[n]:void 0}function ee(e,t,n,o){if("scheduled"===o){const n=$(e,t);return n?Q(e,t,n):void 0}{const o=x(e,t,n);return o?X(e,t,o):void 0}}function te(e,t){let n;for(const o of Object.values(e.messages.byChatId)){const{byId:e}=o;if(n=Object.values(e).find((e=>e.content.poll&&e.content.poll.id===t)),n)break}return n}function ne(e,t){const{chatId:n,messageId:o}=e.focusedMessage||{};return n===t?o:void 0}function oe(e,t){const n=ne(e,t.chatId);return!!n&&(n===t.id||n===t.previousLocalId)}function re(e,t){const{lastReadOutboxMessageId:n}=(0,s.Z1)(e,t.chatId)||{};return(0,u.CI)(t)||!n||n2&&void 0!==arguments[2]&&arguments[2];return re(e,t)||n?(0,u.RI)(t):"read"}function ae(e,t){const{senderId:n}=t;if(n)return(0,u.YC)(n)?(0,i.dy)(e,n):(0,s.Z1)(e,n)}function se(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(n){const{senderUserId:n,hiddenUserName:o}=t.forwardInfo||{};if(n)return(0,u.YC)(n)?(0,i.dy)(e,n):(0,s.Z1)(e,n);if(o)return}const{senderId:o}=t;if(o)return(0,u.YC)(o)?(0,i.dy)(e,o):(0,s.Z1)(e,o)}function ie(e,t){const{forwardInfo:n}=t;if(n)return n.isChannelPost&&n.fromChatId?(0,s.Z1)(e,n.fromChatId):n.senderUserId?(0,i.dy)(e,n.senderUserId)||(0,s.Z1)(e,n.senderUserId):void 0}function ue(e,t,n){var o,r,d,a,i,c;const l=(0,s.Z1)(e,t.chatId);if(!l||l.isRestricted)return{};const f=(0,u.YC)(l.id),h=(0,s.FM)(e,t.chatId),m=(0,u.G9)(l),p=(0,u.ZV)(l),g=(0,u.eA)(l),v=(0,u.CI)(t),y=(0,u.jM)(t),b=(0,u.B4)(t),I=(0,u.Lo)(t),{content:w}=t,C=(h||p&&(0,u.VE)(l,"pinMessages")||g&&(0,u.VE)(l,"editMessages")||(0,S.b)(e.serverTimeOffset)-t.date<172800)&&!(w.sticker||w.contact||w.poll||w.action||w.audio||null!==(o=w.video)&&void 0!==o&&o.isRound||w.location)&&!(0,u.MF)(t)&&!t.viaBotId&&!l.isForbidden,E=!v&&!y&&!l.isForbidden&&(0,u.Qm)(l,n),P=f||l.isCreator||!g&&!(0,u.Mg)(l,"pinMessages")||(0,u.VE)(l,"pinMessages");let k=!v&&!y&&!I&&P,M=!1;const A=B(e,l.id);k&&(M=Boolean(A&&A.includes(t.id)),k=!M);const N=!v&&!y&&(f||b||m||l.isCreator||(0,u.VE)(l,"deleteMessages")),T=!f&&!b,L=N&&!l.isForbidden&&(f&&!h||m&&(b||(0,u.VE)(l,"deleteMessages")||l.isCreator)),R=!v&&!I&&C&&(b||g&&(l.isCreator||(0,u.VE)(l,"editMessages"))),Z=!v&&!I,F=Boolean(t.content.sticker),D=F&&function(e,t){const{stickers:n}=e.stickers.favorite;return n&&n.some((e=>{let{id:n}=e;return n===t.id}))}(e,t.content.sticker),O=!I&&F&&!D,x=!I&&D,_=!I,$=!I&&(g||p),U=!I,j=Boolean((null===(r=w.webPage)||void 0===r?void 0:r.document)||(null===(d=w.webPage)||void 0===d?void 0:d.video)||(null===(a=w.webPage)||void 0===a?void 0:a.photo)||w.audio||w.voice||w.photo||w.video||w.document||w.sticker),V=null===(i=t.content.video)||void 0===i?void 0:i.isGif,W=w.poll,H=!(null!=W&&W.summary.closed)&&!(null!=W&&W.summary.quiz)&&(null==W||null===(c=W.results.results)||void 0===c?void 0:c.some((e=>e.isChosen))),G=b&&W&&!W.summary.closed;return{noOptions:[E,R,k,M,T,N,L,Z,O,x,_,$,U,j,V,H,G].every((e=>!e)),canReply:E,canEdit:R,canPin:k,canUnpin:M,canReport:T,canDelete:N,canDeleteForAll:L,canForward:Z,canFaveSticker:O,canUnfaveSticker:x,canCopy:_,canCopyLink:$,canSelect:U,canDownload:j,canSaveGif:V,canRevote:H,canClosePoll:G}}function ce(e){const{messageIds:t}=e.selectedMessages||{},{chatId:n,threadId:o}=P(e)||{},r=n&&M(e,n);if(!r||!t||!o)return{};const d=t.map((t=>r[t]&&ue(e,r[t],o))).filter(Boolean);return{canDelete:d.every((e=>e.canDelete)),canDeleteForAll:d.every((e=>e.canDeleteForAll))}}function le(e){const{messageIds:t}=e.selectedMessages||{},{chatId:n,threadId:o}=P(e)||{},r=n&&M(e,n);return!!(r&&t&&o)&&t.map((t=>r[t]&&ue(e,r[t],o))).filter(Boolean).every((e=>e.canReport))}function fe(e){const{messageIds:t}=e.selectedMessages||{},{chatId:n,threadId:o}=P(e)||{},r=n&&M(e,n);return!!(r&&t&&o)&&t.map((t=>r[t]&&ue(e,r[t],o))).filter(Boolean).some((e=>e.canDownload))}function he(e,t){const n=e.activeDownloads.byChatId[t.chatId];return!!n&&n.includes(t.id)}function me(e,t){return e.activeDownloads.byChatId[t]||E.D}function pe(e,t){var n;return null===(n=e.fileUploads.byMessageLocalId[(0,u.KK)(t)])||void 0===n?void 0:n.progress}function ge(e,t,n){if(n===d._f){const n=(0,s.Z1)(e,t);if(!n)return;if(!n.lastReadInboxMessageId)return;return n.lastMessage?(0,u.CI)(n.lastMessage)?n.lastMessage.id:Math.min(n.lastMessage.id,n.lastReadInboxMessageId):n.lastReadInboxMessageId}{const o=W(e,t,n);if(!o)return;return o.lastReadInboxMessageId?Math.min(o.lastReadInboxMessageId,o.lastMessageId||1/0):o.topMessageId}}function ve(e,t,n){const o=(0,s.Z1)(e,t);if(n===d._f){if(!o)return}else{const o=W(e,t,n);if(!o||void 0!==o.lastMessageId&&o.lastMessageId===o.lastReadInboxMessageId)return}const r=L(e,t,n),i=T(e,t,n),u=M(e,t);if(!u||!r&&!i)return;const c=ge(e,t,n);if(!c&&o&&o.isNotJoined)return;const l=t===a.aw?e.serviceNotifications.reduce(((e,t)=>!t.isUnread&&t.id>e?t.id:e),-1):-1;function f(e){return e.find((e=>(!c||e>c)&&u[e]&&(!u[e].isOutgoing||u[e].isFromScheduled)&&e>l))}if(r){const e=f(r);if(e)return e}if(i){const e=f(i);if(e)return e}}function ye(e){const{forwardMessages:t}=e;return Boolean(t.isModalShown)}function be(e,t){const n=Object.values(e.chats.byId).find((e=>(0,u.Ru)(e)&&e.lastMessage&&e.lastMessage.id===t));if(n)return n.id;const{byChatId:o}=e.messages;return Object.keys(o).find((n=>{const r=(0,s.Z1)(e,n);return r&&(0,u.Ru)(r)&&o[r.id].byId[t]}))}function Ie(e){const{selectedMessages:t}=e;return Boolean(t)}function we(e,t){const{messageIds:n}=e.selectedMessages||{};return!!n&&n.includes(t)}function Ce(e,t,n){const o=M(e,t);if(o)return Object.values(o).filter((e=>e.groupedId===n&&e.forwardInfo)).map((e=>{let{forwardInfo:t}=e;return t.fromMessageId}))}function Se(e,t,n){const o=M(e,t);if(o)return Object.keys(o).map(Number).filter((e=>o[e].groupedId===n))}function Ee(e,t,n){const{messageIds:o}=e.selectedMessages||{};if(!o)return!1;const r=Se(e,t,n);return r&&r.every((e=>o.includes(e)))}function Pe(e){const{messageIds:t}=e.selectedMessages||{};return t?t.length:0}function ke(e,t){const n=(0,s.Z1)(e,t);if(!n)return;if(!(0,s.xo)(e,n))return;const o=M(e,t),r=Z(e,t,d._f);if(!o||!r)return;const a=(0,c.dF)(r,(e=>!o[e].isOutgoing&&Boolean(o[e].keyboardButtons))),i=(0,c.dF)(r,(e=>Boolean(o[e].shouldHideKeyboardButtons)));return a&&i&&i>a?void 0:a?o[a]:void 0}function Me(e,t){const n=(0,s.Z1)(e,t.chatId);if(!n)return;const o=ae(e,t),r=Boolean((0,u.O$)(t)||(0,u.F$)(t)),d=Boolean((0,u.b7)(t)||(0,u.Cg)(t)),a=Boolean((0,u.oP)(t)||(0,u.kd)(t)||(0,u.aE)(t)),{canAutoLoadPhotoFromContacts:i,canAutoLoadPhotoInPrivateChats:c,canAutoLoadPhotoInGroups:l,canAutoLoadPhotoInChannels:f,canAutoLoadVideoFromContacts:h,canAutoLoadVideoInPrivateChats:m,canAutoLoadVideoInGroups:p,canAutoLoadVideoInChannels:g,canAutoLoadFileFromContacts:v,canAutoLoadFileInPrivateChats:y,canAutoLoadFileInGroups:b,canAutoLoadFileInChannels:I}=e.settings.byKey;return r?Ae({global:e,chat:n,sender:o,canAutoLoadMediaFromContacts:i,canAutoLoadMediaInPrivateChats:c,canAutoLoadMediaInGroups:l,canAutoLoadMediaInChannels:f}):d?Ae({global:e,chat:n,sender:o,canAutoLoadMediaFromContacts:h,canAutoLoadMediaInPrivateChats:m,canAutoLoadMediaInGroups:p,canAutoLoadMediaInChannels:g}):!a||Ae({global:e,chat:n,sender:o,canAutoLoadMediaFromContacts:v,canAutoLoadMediaInPrivateChats:y,canAutoLoadMediaInGroups:b,canAutoLoadMediaInChannels:I})}function Ae(e){let{global:t,chat:n,sender:o,canAutoLoadMediaFromContacts:r,canAutoLoadMediaInPrivateChats:d,canAutoLoadMediaInGroups:a,canAutoLoadMediaInChannels:s}=e;const c=Boolean(o&&(o.id===t.currentUserId||(0,i.nM)(t,o)));return Boolean(c&&r||!c&&d&&(0,u.YC)(n.id)||a&&(0,u.Bf)(n)||s&&(0,u.eA)(n))}function Ne(e,t){const n=(0,u.b7)(t)||(0,u.Cg)(t);if(!n)return;const{canAutoPlayVideos:o,canAutoPlayGifs:r}=e.settings.byKey,d=n.isGif||n.isRound;return o&&!d||r&&d}function Te(e){return e.settings.byKey.shouldLoopStickers}function Le(e){const{serviceNotifications:t}=e,n=Math.max(...t.map((e=>{let{id:t}=e;return t})));return t.find((e=>{let{id:t,isDeleted:o}=e;return!o&&t===n}))}function Re(e,t){var n;return!!t&&(t.isProtected||(null===(n=(0,s.Z1)(e,t.chatId))||void 0===n?void 0:n.isProtected))}function Ze(e,t,n){var o;if(null!==(o=(0,s.Z1)(e,t))&&void 0!==o&&o.isProtected)return!0;if(!n)return!1;const r=M(e,t);return n.some((e=>{var t;return null===(t=r[e])||void 0===t?void 0:t.isProtected}))}function Be(e,t){const n=(0,s.Z1)(e,t),o=n&&(0,u.eA)(n)?e.messages.sponsoredByChatId[t]:void 0;return o&&o.expiresAt>=Math.round(Date.now()/1e3)?o:void 0}function Fe(e,t){var n,o,r;if(t===a.aw)return;const d=(0,u.YC)(t),i=null===(n=e.appConfig)||void 0===n?void 0:n.defaultReaction,{availableReactions:c}=e;if(!i||null==c||!c.some((e=>e.reaction===i&&!e.isInactive)))return;if(d)return i;const l=null===(o=(0,s.Z1)(e,t))||void 0===o||null===(r=o.fullInfo)||void 0===r?void 0:r.enabledReactions;return null!=l&&l.includes(i)?i:void 0}function De(e){const{chatId:t,threadId:n}=P(e)||{};if(!t||!n)return;const o=N(e,t,n,"viewportIds");return o?o.map((n=>{const{senderId:o}=X(e,t,n)||{};return o?(0,i.dy)(e,o):void 0})).filter(Boolean):void 0}function Oe(e){var t;return"scheduled"===(null===(t=P(e))||void 0===t?void 0:t.type)}function xe(e,t){var n;const o=(0,s.FM)(e,t),r=t===a.FV&&(0,s.IK)(e,t);return Boolean(!o&&!r&&(0,u.YC)(t)&&(null===(n=(0,i.ss)(e,t))||void 0===n?void 0:n.wasOnline))}function _e(e,t){const n=function(e){var t;const n=null===(t=e.content.text)||void 0===t?void 0:t.entities;return null==n?void 0:n.filter((e=>e.type===d.Vv.CustomEmoji))}(t);if(!n)return E.D;const o=n.map((t=>e.customEmojis.byId[t.documentId]));return o.every(Boolean)?o.map((e=>e.stickerSetInfo)).reduce(((e,t)=>("shortName"in t&&e.some((e=>"shortName"in e&&e.shortName===t.shortName))||"id"in t&&e.some((e=>"id"in e&&e.id===t.id))||e.push(t),e)),[]):void 0}function $e(e){const{messageIds:t,fromChatId:n}=e.forwardMessages;if(!t)return!1;const o=M(e,n);return t.some((e=>{var t;const n=o[e];return Boolean(n.content.voice)||(null===(t=n.content.video)||void 0===t?void 0:t.isRound)}))}function Ue(e){const{chatId:t,threadId:n}=P(e)||{};if(!t||!n)return;const o=(0,u.uw)(t,n),r=e.localTextSearch.byChatThreadKey[o];return r&&r.isActive?r:void 0}function je(e){const{chatId:t}=P(e)||{};if(t)return e.localMediaSearch.byChatId[t]}function Ve(e,t){return e.statistics.byChatId[t]}function We(e,t){return e.management.byChatId[t]}function He(e){const{chatId:t,threadId:n}=P(e)||{};if(!t||!n)return;if((0,u.YC)(t))return"user";const o=(0,s.Z1)(e,t);return o?(0,u.Bf)(o)?"group":"channel":void 0}function Ge(e){const{mediaViewer:t}=e;return Boolean(t.mediaId||t.avatarOwnerId)}function ze(e){return function(e){const{pollResults:t}=e;return Boolean(t.messageId)}(e)?o.qt.PollResults:!r.wB&&Ue(e)?o.qt.Search:function(e){const{chatId:t,threadId:n}=P(e)||{};if(!t||!n)return;const o=e.management.byChatId[t];return o&&o.isActive?o:void 0}(e)?o.qt.Management:function(e){return!!e.isStatisticsShown&&Boolean(e.statistics.currentMessageId)}(e)?o.qt.MessageStatistics:function(e){var t;if(!e.isStatisticsShown)return!1;const{chatId:n}=P(e)||{},o=n?(0,s.Z1)(e,n):void 0;return null==o||null===(t=o.fullInfo)||void 0===t?void 0:t.canViewStatistics}(e)?o.qt.Statistics:void 0!==l(e).query?o.qt.StickerSearch:void 0!==f(e).query?o.qt.GifSearch:e.newChatMembersProgress!==o.WB.Closed?o.qt.AddingMembers:e.isChatInfoShown&&P(e)?o.qt.ChatInfo:void 0}function Ke(e){return void 0!==ze(e)}function Je(e){const{theme:t,shouldUseSystemTheme:n}=e.settings.byKey;return n?(0,r.vn)():t}function qe(e){return e.globalSearch.query}function Ye(e){return e.payment.inputInvoice}function Xe(e){return e.payment.formId}function Qe(e){return e.payment.requestId}function et(e){var t;return null===(t=e.payment.nativeParams)||void 0===t?void 0:t.publishableKey}function tt(e){var t;return null===(t=e.payment.nativeParams)||void 0===t?void 0:t.publicToken}function nt(e){return e.payment.stripeCredentials}function ot(e){return e.payment.smartGlocalCredentials}function rt(e){return e.settings.byKey}function dt(e){return e.settings.notifyExceptions}},86087:(e,t,n)=>{n.d(t,{Bk:()=>u,dy:()=>r,kB:()=>l,nM:()=>c,oe:()=>i,s4:()=>a,ss:()=>d,wV:()=>s});var o=n(83158);function r(e,t){return e.users.byId[t]}function d(e,t){return e.users.statusesById[t]}function a(e,t){var n;const o=r(e,t);return null==o||null===(n=o.fullInfo)||void 0===n?void 0:n.isBlocked}function s(e){return!!e.currentUserId&&Boolean(e.users.byId[e.currentUserId].isPremium)}function i(e){var t,n;return null===(t=null===(n=e.appConfig)||void 0===n?void 0:n.isPremiumPurchaseBlocked)||void 0===t||t}function u(e,t){const n=t.replace(/[^0-9]/g,"");return Object.values(e.users.byId).find((e=>(null==e?void 0:e.phoneNumber)===n))}function c(e,t){return e.contactList&&e.contactList.userIds.includes(t.id)}function l(e,t){const n=r(e,t);if(n&&(0,o.cS)(n))return n}},77510:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(14050);const r=(e,t,n)=>{const[r,d]=(0,o.eJ)(!1),[a,s]=(0,o.eJ)(),[i,u]=(0,o.eJ)(n);return(0,o.d4)((()=>{d(!0);let t=!1;return e().then((e=>{t||(d(!1),u(e))}),(e=>{t||(d(!1),s(e))})),()=>{t=!0}}),t),{isLoading:r,error:a,result:i}}},45332:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(14050);function r(e,t){(0,o.d4)((()=>(e&&!document.hasFocus()&&e(),e&&window.addEventListener("blur",e),t&&window.addEventListener("focus",t),()=>{t&&window.removeEventListener("focus",t),e&&window.removeEventListener("blur",e)})),[e,t])}},18360:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(87204);function r(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=(0,o.Z)(e,t);return n||null!=e?e:r}},67360:(e,t,n)=>{n.d(t,{Z:()=>d});var o=n(14050),r=n(69118);function d(e,t,n,d,a){const s=(0,o.I4)(e,t);return(0,o.Ye)((()=>(0,r.Ds)(s,n,!d,!a)),[s,n,d,a])}},274:(e,t,n)=>{n.d(t,{Z:()=>d});var o=n(14050),r=n(87204);const d=(e,t,n)=>{const d=(0,r.Z)(t);return(0,o.d4)((()=>e(d||[])),t,n)}},60706:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(14050);const r=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const[t,n]=(0,o.eJ)(e),r=(0,o.I4)((()=>{n(!0)}),[]),d=(0,o.I4)((()=>{n(!1)}),[]);return[t,r,d]}},65326:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(14050);const r=()=>{const[,e]=(0,o.eJ)(!1);return(0,o.I4)((()=>{e((e=>!e))}),[])}},18674:(e,t,n)=>{n.d(t,{YW:()=>u,ZP:()=>c,zG:()=>i});var o=n(14050);const r="tt-event-heavy-animation-start",d="tt-event-heavy-animation-end";let a,s=!1;function i(){return s}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;function t(){a&&(clearTimeout(a),a=void 0),s=!1,document.dispatchEvent(new Event(d))}return s||(s=!0,document.dispatchEvent(new Event(r))),a&&(clearTimeout(a),a=void 0),a=window.setTimeout(t,e),t}const c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,o.d4)((()=>{if(!n)return s&&e(),document.addEventListener(r,e),document.addEventListener(d,t),()=>{document.removeEventListener(d,t),document.removeEventListener(r,e)}}),[n,t,e])}},46590:(e,t,n)=>{n.d(t,{O:()=>u,Z:()=>P});var o=n(29290),r=n(14050),d=n(83716),a=n(69118),s=n(77361),i=n(65116);const u=window.location.hash,c=`${window.location.pathname}${window.location.search}`,l=Number(new Date);let f,h,m=!1,p=[],g=[],v=!1;function y(){v&&setTimeout((()=>{v=!1}),350)}function b(){const e=p.filter((e=>"go"===e.type)),t=p.filter((e=>"go"!==e.type)),n=e.reduce(((e,t)=>e+t.delta),0);p=[],n&&(window.history.go(n),t.length)?g.push(...t):I(t)}function I(e){e.forEach((e=>window.history[e.type](e.data,"",e.hash)))}function w(e){p.length||(0,a.T2)(b),p.push(e)}function C(){h=0,f=[{index:0,onBack:()=>window.history.back()}],window.history.replaceState({index:0,historyUniqueSessionId:l},c)}function S(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e;for(let e=h-1;e>0&&f[e].isClosed;e--)t++;return t&&(m=!0,w({type:"go",delta:-t})),t}function E(){for(let n=f.length-1;n>0;n--){var e,t;f[n].isClosed||(v&&(0,i.Sv)().disableHistoryAnimations(),null===(e=(t=f[n]).onBack)||void 0===e||e.call(t))}C()}function P(e){let{isActive:t,shouldBeReplaced:n,hash:d,onBack:a}=e;const s=(0,r.sO)(),i=(0,r.sO)(!1),u=(0,r.sO)(!0),c=()=>{s.current&&f[s.current]&&!i.current&&(f[s.current].isClosed=!0,i.current=!0,s.current!==h||n||(h-=S()))};(0,r.d4)((()=>(u.current=!1,()=>{t&&!i.current&&c()})),[]),(0,o.Z)((()=>{u.current&&!t||(t?function(){const e=arguments.length>0&&void 0!==arguments[0]&&arguments[0]||f[h].shouldBeReplaced;s.current=e?h:++h,h=s.current;const t=f[s.current];var o;t&&!t.isClosed&&(null===(o=t.markReplaced)||void 0===o||o.call(t)),f[s.current]={index:s.current,onBack:a,shouldBeReplaced:n,markReplaced:()=>{i.current=!0}};for(let e=s.current+1;ef,window.TEST_getHistoryCursor=()=>h),s.cj&&(window.addEventListener("touchstart",(function(e){const t=e.touches[0].pageX;(t<=300||t>=window.innerWidth-300)&&(v=!0)})),window.addEventListener("touchend",y),window.addEventListener("popstate",y)),C(),window.addEventListener("popstate",(e=>{let{state:t}=e;if(m)return m=!1,void(g.length&&(I(g),g=[]));if(!t)return E(),void window.location.hash;const{index:n,historyUniqueSessionId:o}=t;if(o===l){if(n!==h)if(nn-e;t--){var r,d;f[t].isClosed?e++:(v&&(0,i.Sv)().disableHistoryAnimations(),null===(r=(d=f[t]).onBack)||void 0===r||r.call(d))}const t=S(e);h+=n-h-t,h<0&&(h=0)}else n>h&&(m=!0,w({type:"go",delta:-(n-h)}))}else E()}))},3657:(e,t,n)=>{n.d(t,{Op:()=>i,S1:()=>a,_N:()=>s});var o=n(14050),r=n(69118),d=n(18674);function a(e,t){let{rootRef:n,throttleMs:a,debounceMs:s,shouldSkipFirst:i,margin:u,threshold:c,isDisabled:l}=e;const f=(0,o.sO)(),h=(0,o.sO)(),m=(0,o.sO)(0),p=(0,o.sO)();h.current=t;const g=(0,o.I4)((()=>{m.current++}),[]),v=(0,o.I4)((()=>{m.current&&(m.current--,!m.current&&p.current&&(p.current(),p.current=void 0))}),[]);return(0,d.ZP)(g,v),(0,o.d4)((()=>{if(!l)return()=>{f.current&&(f.current.observer.disconnect(),f.current.callbacks.clear(),f.current=void 0)}}),[l]),{observe:(0,o.I4)(((e,t)=>{f.current||function(){const e=new Map,t=new Map,o=()=>{const n=Array.from(t.values());n.forEach((t=>{const o=e.get(t.target);o&&o(t,n)})),h.current&&h.current(n),t.clear()},d=a?r.P2:s?r.Ds:void 0,l=d?d(o,a||s,!i):o,g=new IntersectionObserver((e=>{e.forEach((e=>{t.set(e.target,e)})),m.current?p.current=()=>{l()}:l()}),{root:n.current,rootMargin:u?`${u}px`:void 0,threshold:c});f.current={observer:g,callbacks:e}}();const o=f.current;return o.observer.observe(e),t&&o.callbacks.set(e,t),()=>{t&&o.callbacks.delete(e),o.observer.unobserve(e)}}),[l]),freeze:g,unfreeze:v}}function s(e,t,n){(0,o.d4)((()=>t?t(e.current,n):void 0),[])}function i(e,t,n){const[r,d]=(0,o.eJ)(!t);return s(e,t,(e=>{d(e.isIntersecting),n&&n(e)})),r}},72313:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(14050);const r=(e,t,n,r,d)=>{const[a,s]=(0,o.eJ)(-1);return(0,o.d4)((()=>{s(-1);const n=e.current;t&&n&&!d&&(n.tabIndex=-1,n.focus())}),[e,t,d]),(0,o.I4)((t=>{const o=e.current;if(!o)return;if(13===t.keyCode&&n)return void n(a);if(38!==t.keyCode&&40!==t.keyCode)return;const d=document.activeElement,i=Array.from(r?o.querySelectorAll(r):o.children);let u=d&&i.indexOf(d)||a;if(38===t.keyCode&&u>0)u--;else if(40===t.keyCode&&u{n.d(t,{Z:()=>a});var o=n(50711),r=n(65326),d=n(29290);const a=()=>{const e=(0,r.Z)();return(0,d.Z)((()=>o.ll(e)),[e]),o.i0}},6202:(e,t,n)=>{n.d(t,{Z:()=>s});var o=n(14050),r=n(6137),d=n(40647),a=n(65326);const s=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.IU.BlobUrl,s=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;const u=e?d.UV(e):void 0,c=(0,a.Z)();return(0,o.d4)((()=>{if(!t&&e&&!u){const t=Date.now();d.he(e,n).then((()=>{const e=Date.now()-t;!i||e>=i?c():setTimeout(c,i-e)}))}}),[t,e,u,n,s,c,i]),u}},70692:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(31212);function r(e){const t=Boolean(e),{transitionClassNames:n}=(0,o.Z)(t,void 0,t,"slow");return n}},48778:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(14050),r=n(99203),d=n(65326);const a=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const s=(0,r.o5)(e,t),i=(0,d.Z)();return(0,o.d4)((()=>{if(a)return(0,r.Qt)(i)}),[a,i]),(0,o.d4)((()=>{n||s||(0,r.$y)(e,t).then(i)}),[e,i,s,t,n]),s}},29290:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(87204);const r=(e,t)=>{const n=(0,o.Z)(t);n&&!t.some(((e,t)=>e!==n[t]))||e(n||[])}},87204:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(14050);const r=function(e,t){const n=(0,o.sO)(),{current:r}=n;return t&&void 0===e||(n.current=e),r}},31212:(e,t,n)=>{n.d(t,{Z:()=>d});var o=n(14050),r=n(46752);const d=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"fast",a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const[s,i]=(0,o.eJ)(!e),u=(0,o.sO)(),[c,l]=(0,o.eJ)(e&&n);if(e)i(!1),l(!0),u.current&&(window.clearTimeout(u.current),u.current=void 0);else if(l(!1),!s&&!u.current){const e=()=>{i(!0),t&&t(),u.current=void 0};a?e():u.current=window.setTimeout(e,350)}const f=c&&!(a&&!e),h=Boolean(u.current),m=e||h,p=(0,r.Z)(d&&"opacity-transition",d,f&&"open",m&&"shown",h&&"closing");return{shouldRender:m,transitionClassNames:p,hasShownClass:m,hasOpenClass:f}}},2903:(e,t,n)=>{n.d(t,{Z:()=>c});var o=n(14050),r=n(83716),d=n(77361),a=n(10862),s=n(83158),i=n(11192),u=n(33555);function c(e){var t,n;const c=e&&"content"in e,l=c?(0,s.DH)(e):null==e||null===(t=e.thumbnail)||void 0===t?void 0:t.dataUri,f=c?null===(n=e.content)||void 0===n?void 0:n.sticker:e,h=l&&f&&!(0,d.on)()&&l.includes("image/webp"),[m,p]=(0,o.eJ)(a.Hu),g=null==e?void 0:e.id;(0,o.bt)((()=>{h&&(0,a.p6)(`b64-${g}`,l).then(p).catch((e=>{r.eM&&console.error(e)}))}),[g,h,l]);const v=(0,i.Pu)((0,u.Rd)());return(0,o.Ye)((()=>{const e=h?m:l;return e&&"dark"===v?e.replace("{n.d(t,{Z:()=>r});var o=n(14050);function r(e,t,n){(0,o.d4)((()=>{const o=e=>{const o=t.current,r=e.target;o&&r&&(o.contains(e.target)&&!r.classList.contains("backdrop")||(e.preventDefault(),e.stopPropagation(),n&&n()))};return e&&n&&document.addEventListener("mousedown",o),()=>{document.removeEventListener("mousedown",o)}}),[e,t,n])}},12255:(e,t,n)=>{n.d(t,{Z:()=>s});var o=n(14050),r=n(69118),d=n(43858),a=n(67360);const s=()=>{const[e,t]=(0,o.eJ)(d.Z.get()),[n,s]=(0,o.eJ)(!1),i=(0,a.Z)(s,[],250,!0);return(0,o.d4)((()=>{const e=(0,r.P2)((()=>{s(!0)}),250,!0),n=(0,r.P2)((()=>{t(d.Z.get()),i(!1)}),250,!1),o=()=>{e(),n()};return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}}),[i]),{...e,isResizing:n}}},31664:(e,t,n)=>{n.d(t,{Z:()=>D});var o=n(14050),r=n(26926),d=n(83716);const a=new Set(["scroll","mouseenter","mouseleave","load"]),s={},i={},u=new Map;function c(e,t){const n=e.replace(/^on/,"").replace(/Capture$/,"").toLowerCase();return"change"===n&&"SELECT"!==t.tagName?"input":"doubleclick"===n?"dblclick":"focus"===n?"focusin":"blur"===n?"focusout":n}function l(e,t,n){return!n&&!a.has(e)&&"VIDEO"!==t.tagName&&"IFRAME"!==t.tagName}function f(e,t,n){s[e]||(s[e]=0,document.addEventListener(e,m)),function(e){return i[e]||(i[e]=new Map),i[e]}(e).set(t,n),function(e){const t=u.get(e);if(t)return t;const n=new Set;return u.set(e,n),n}(t).add(e),s[e]++}function h(e,t){s[e]--,s[e]||document.removeEventListener(e,m),i[e].delete(t),u.get(t).delete(e)}function m(e){const t=i[e.type];if(t){let n=!1,o=e.target;const r=()=>{n=!0},d=()=>{e.preventDefault()},a=new Proxy(e,{get:(e,t)=>"currentTarget"===t?o:"stopPropagation"===t||"stopImmediatePropagation"===t?r:"preventDefault"===t?d:Reflect.get(e,t)});for(;o&&o!==document.body;){const e=t.get(o);if(e&&(e(a),n))return;o=o.parentNode}}}d.eM&&document.addEventListener("dblclick",(()=>{const e=Object.keys(s).length,t=Object.values(s).reduce(((e,t)=>e+t),0),n=Object.keys(i).length,o=Object.values(i).reduce(((e,t)=>e+t.size),0),r=u.size,d=Array.from(u.values()).reduce(((e,t)=>e+t.size),0);console.warn("DELEGATED EVENTS STATS",{delegatedHandlersCount1:t,delegatedHandlersCount2:o,delegatedEventTypesCount:d,delegationRegistriesCount:n,delegationElementsCount:r,documentListenersCount:e})}));var p=n(60782);const g=new Set(["key","ref","teactFastList","teactOrderKey"]),v=new Set(["dir","role","form"]),y=["INPUT","TEXTAREA","SELECT"],b={autoPlay:"autoplay",autoComplete:"autocomplete"},I={};function w(e,t,n,r,a){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const{skipComponentUpdate:i,fragment:u}=s;let{nextSibling:c}=s;const l=t&&(0,o.op)(t),f=n&&(0,o.op)(n),h=n,m=t&&!l&&(0,o.DN)(t),p=n&&!f&&(0,o.DN)(n);if(!i&&l&&f&&!(0,o.k)(t,n)&&(n=S(t,n)),!i&&f&&n.componentInstance.isMounted&&E(e,n,r,a),t===n)return n;if(d.eM&&n){const e="target"in n&&n.target;if(e&&(!t||"target"in t&&e!==t.target))throw new Error("[Teact] Cached virtual element was moved within tree")}if(!t&&n)if(f||p)f&&(n=C(e,n,r,a)),P(e,n,{nextSibling:c,fragment:u});else{const t=k(h);h.target=t,N(u||e,t,c)}else if(t&&!n)M(e,t,void 0);else if(t&&n)if((0,o.k)(t,n))if(c||(c=T(t)),f||p)f&&(n=C(e,n,r,a)),M(e,t,void 0),P(e,n,{nextSibling:c,fragment:u});else{const n=k(h);h.target=n,M(e,t,n,c)}else{const r=m&&p;if(l&&f||r)n.children=L(t,n,e,c);else{const r=t,d=r.target;if(h.target=d,r.target=void 0,(0,o.HI)(t)){const o=n;o.props.ref=t.props.ref,c&&N(e,d,c),B(t,o,d),o.children=L(t,o,d)}}}return n}function C(e,t,n,r){const{componentInstance:d}=t;if(!d.isMounted){E(e,t=(0,o.Hb)(d),n,r);const a=t.children[0];(0,o.op)(a)&&(t.children=[C(e,a,t,0)]),d.isMounted=!0}return t}function S(e,t){return e.componentInstance.props=t.componentInstance.props,(0,o.SO)(e.componentInstance)}function E(e,t,n,o){const{componentInstance:r}=t;r.onUpdate=()=>{n.children[o]=w(e,n.children[o],r.$element,n,o,{skipComponentUpdate:!0})}}function P(e,t,n){t.children=t.children.map(((o,r)=>w(e,void 0,o,t,r,n)))}function k(e){if((0,o.V2)(e))return document.createTextNode("");if((0,o.iB)(e))return document.createTextNode(e.value);const{tag:t,props:n,children:r=[]}=e,d=document.createElement(t);return"object"==typeof n.ref&&(n.ref.current=d),Z(t,n),Object.entries(n).forEach((e=>{let[t,o]=e;void 0!==n[t]&&F(d,t,o)})),function(e,t){y.includes(e.tagName)&&(t.defaultValue&&F(e,"value",t.defaultValue),t.defaultChecked&&F(e,"checked",t.defaultChecked))}(d,n),e.children=r.map(((t,n)=>w(d,void 0,t,e,n))),d}function M(e,t,n,r){const d=(0,o.op)(t),a=!d&&(0,o.DN)(t);d||a?(d&&(0,o.su)(t.componentInstance),function(e,t){t.children.forEach((n=>{w(e,n,void 0,t,-1)}))}(e,t),n&&N(e,n,r)):(n?e.replaceChild(n,t.target):e.removeChild(t.target),A(t))}function A(e){var t;if((0,o.op)(e))(0,o.su)(e.componentInstance);else if((0,o.HI)(e)&&e.target&&(!function(e){const t=u.get(e);t&&(t.forEach((t=>h(t,e))),u.delete(e))}(e.target),(null===(t=e.props.ref)||void 0===t?void 0:t.current)===e.target&&(e.props.ref.current=void 0)),e.target&&(e.target=void 0),!(0,o.f4)(e))return;e.children.forEach(A)}function N(e,t,n){n?e.insertBefore(t,n):e.appendChild(t)}function T(e){if((0,o.op)(e)||(0,o.DN)(e))return T(e.children[e.children.length-1]);const t=e.target,{nextSibling:n}=t;return n||void 0}function L(e,t,n,r){if(d.eM&&function(e){const t=e[0];if(t&&"props"in t&&void 0!==t.props.key){const t=e.reduce(((e,t)=>("props"in t&&t.props.key&&e.push(t.props.key),e)),[]);if(t.length!==(0,p.Tw)(t).length)throw new Error("[Teact] Children keys are not unique")}}(t.children),"props"in t&&t.props.teactFastList)return function(e,t,n){const r=new Set(t.children.map((e=>{const t="props"in e?e.props.key:void 0;if(d.eM&&(0,o.f4)(e)&&(null==t&&console.warn("Missing `key` in `teactFastList`"),(0,o.DN)(e)))throw new Error("[Teact] Fragment can not be child of container with `teactFastList`");return t})));let a=0;const s=e.children.reduce(((e,o,d)=>{let s="props"in o?o.props.key:void 0;const i=null!=s;if(i&&!r.has(s))return w(n,o,void 0,t,-1),e;if(!i){const r=t.children[d],a=r&&"props"in r?r.props.key:void 0;if(!r||a)return w(n,o,void 0,t,-1),e;s=`__indexKey#${d}`}return e[s]={$element:o,index:a++,orderKey:"props"in o?o.props.teactOrderKey:void 0},e}),{});let i,u,c=[],l=0;return t.children.forEach(((e,o)=>{const r="props"in e?e.props.key:`__indexKey#${o}`,d=s[r];if(!d)return i||(i=[],u=o),void i.push(e);i&&(c=c.concat(R(i,u,n,t)),i=void 0,u=void 0);const a="props"in e?e.props.teactOrderKey:void 0,f=d.index!==l&&d.orderKey!==a,h=f&&l>d.index;f&&!h||l++,c.push(w(n,d.$element,e,t,o,{nextSibling:f?n.childNodes[h?o+1:o]:void 0}))})),i&&(c=c.concat(R(i,u,n,t))),c}(e,t,n);const a=e.children.length,s=t.children.length,i=Math.max(a,s),u=[],c=s>a?document.createDocumentFragment():void 0,l=e.children[a-1],f=r||(s>a&&l?T(l):void 0);for(let o=0;o=a?{fragment:c}:{nextSibling:r});d&&u.push(d)}return c&&N(n,c,f),u}function R(e,t,n,o){const r=n.childNodes[t];if(1===e.length)return[w(n,void 0,e[0],o,t,{nextSibling:r})];const d=document.createDocumentFragment(),a=e.map(((e,r)=>w(n,void 0,e,o,t+r,{fragment:d})));return N(n,d,r),a}function Z(e,t){if(!t.teactExperimentControlled)return;const n=void 0!==t.value,o=void 0!==t.checked;if(!n&&!o||!y.includes(e.toUpperCase()))return;const{value:r,checked:d,onInput:a,onChange:s}=t;t.onChange=void 0,t.onInput=e=>{null==a||a(e),null==s||s(e),void 0!==r&&(e.currentTarget.value=r),void 0!==d&&(e.currentTarget.checked=d)}}function B(e,t,n){Z(n.tagName,t.props);const o=Object.entries(e.props),r=Object.entries(t.props);o.forEach((e=>{let[o,r]=e;const d=t.props[o];void 0!==r&&(void 0===d||r!==d&&o.startsWith("on"))&&function(e,t,n){"className"===t?e.className="":"value"===t?e.value="":"style"===t?e.style.cssText="":"dangerouslySetInnerHTML"===t?e.innerHTML="":t.startsWith("on")?function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=c(t,e);l(r,e,o)?h(r,e):e.removeEventListener(r,n,o)}(e,t,n,t.endsWith("Capture")):t.startsWith("data-")||t.startsWith("aria-")||v.has(t)?e.removeAttribute(t):g.has(t)||delete e[b[t]||t]}(n,o,r)})),r.forEach((t=>{let[o,r]=t;const d=e.props[o];void 0!==r&&r!==d&&F(n,o,r)}))}function F(e,t,n){"className"===t?e.className=n:"value"===t?e.value!==n&&(e.value=n):"style"===t?e.style.cssText=n:"dangerouslySetInnerHTML"===t?e.innerHTML=n.__html:t.startsWith("on")?function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=c(t,e);l(r,e,o)?f(r,e,n):e.addEventListener(r,n,o)}(e,t,n,t.endsWith("Capture")):t.startsWith("data-")||t.startsWith("aria-")||v.has(t)?e.setAttribute(t,n):g.has(t)||(e[b[t]||t]=n)}const D={render:function(e,t){let n=t.getAttribute("data-teact-head-id");n||(n=(0,r.Z)(I),I[n]={children:[]},t.setAttribute("data-teact-head-id",n));const o=I[n],d=w(t,o.children[0],e,o,0);o.children=d?[d]:[]}}},14050:(e,t,n)=>{n.d(t,{DN:()=>g,HI:()=>m,Hb:()=>N,I4:()=>x,SO:()=>M,V2:()=>f,X$:()=>$,Ye:()=>O,ZP:()=>U,bt:()=>D,d4:()=>F,eJ:()=>Z,f4:()=>v,iB:()=>h,k:()=>A,op:()=>p,sO:()=>_,su:()=>T});var o=n(83716),r=n(69118),d=n(60782),a=n(275),s=n(33592);let i;!function(e){e[e.Empty=0]="Empty",e[e.Text=1]="Text",e[e.Tag=2]="Tag",e[e.Component=3]="Component",e[e.Fragment=4]="Fragment"}(i||(i={}));const u=Symbol("Fragment"),c=new Set(["TeactMemoWrapper","TeactNContainer","Button","ListItem","MenuItem"]);let l;function f(e){return e.type===i.Empty}function h(e){return e.type===i.Text}function m(e){return e.type===i.Tag}function p(e){return e.type===i.Component}function g(e){return e.type===i.Fragment}function v(e){return m(e)||p(e)||g(e)}function y(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r1&&void 0!==arguments[1]?arguments[1]:[];return{type:i.Component,componentInstance:e,props:e.props,children:S(t,!0).map(P)}}function C(e,t,n){return{type:i.Tag,tag:e,props:t,children:S(n).map(P)}}function S(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.length-1;for(;n>=0&&E(e[n]);n--);return n===e.length-1?e:-1===n&&t?e.slice(0,1):e.slice(0,n+1)}function E(e){return!1===e||null==e}function P(e){return E(e)?{type:i.Empty}:v(e)?e:(t=e,{type:i.Text,value:String(t)});var t}const k={};function M(e){l=e,e.hooks.state.cursor=0,e.hooks.effects.cursor=0,e.hooks.memos.cursor=0,e.hooks.refs.cursor=0;const{Component:t,props:n}=e;let r;try{let d;if(o.eM){const t=e.name;k[t]||(k[t]={componentName:t,renderCount:0,renderTimes:[]}),o.ZT&&(c.has(t)||console.log(`[Teact] Render ${t}`)),d=performance.now()}if(r=t(n),o.eM){const t=performance.now()-d,n=e.name;t>7&&console.warn(`[Teact] Slow component render: ${n}, ${Math.round(t)} ms`),k[n].renderTimes.push(t),k[n].renderCount++}}catch(t){(0,s.S)(t),r=e.renderedValue}if(e.isMounted&&r===e.renderedValue)return e.$element;e.renderedValue=r;const d=Array.isArray(r)?r:[r];return e.$element=w(e,d),e.$element}function A(e,t){return typeof e!=typeof t||e.type!==t.type||(h(e)&&h(t)?e.value!==t.value:m(e)&&m(t)?e.tag!==t.tag||e.props.key!==t.props.key:!(!p(e)||!p(t)||e.componentInstance.Component===t.componentInstance.Component&&e.props.key===t.props.key))}function N(e){return M(e),e.isMounted=!0,e.$element}function T(e){e.isMounted&&(e.hooks.effects.byCursor.forEach((e=>{if(e.cleanup)try{e.cleanup()}catch(e){(0,s.S)(e)}finally{e.cleanup=void 0}})),e.isMounted=!1,function(e){e.hooks.effects.byCursor.forEach((e=>{e.cleanup=void 0,e.effect=void 0,e.dependencies=void 0})),e.hooks.state.byCursor.forEach((e=>{e.value=void 0,e.nextValue=void 0,e.setter=void 0})),e.hooks.memos.byCursor.forEach((e=>{e.value=void 0,e.dependencies=void 0})),e.hooks.refs.byCursor.forEach((e=>{e.current=void 0})),e.hooks=void 0,e.$element=void 0,e.renderedValue=void 0,e.Component=void 0,e.props=void 0,e.forceUpdate=void 0,e.onUpdate=void 0}(e))}function L(e){e.isMounted&&(e.hooks.state.byCursor.forEach((e=>{e.value=e.nextValue})),e.prepareForFrame=(0,r.wT)((()=>L(e))),e.forceUpdate=(0,r.mS)((()=>R(e))))}function R(e){if(!e.isMounted||!e.onUpdate)return;const t=e.$element;M(e),e.$element!==t&&e.onUpdate()}function Z(e,t){const{cursor:n,byCursor:d}=l.hooks.state;var a;return void 0===d[n]&&(d[n]={value:e,nextValue:e,setter:(a=l,e=>{d[n].nextValue!==e&&(d[n].nextValue="function"==typeof e?e(d[n].value):e,a.prepareForFrame&&a.forceUpdate||(a.prepareForFrame=(0,r.wT)((()=>L(a))),a.forceUpdate=(0,r.mS)((()=>R(a)))),a.prepareForFrame(),a.forceUpdate(),o.ZT&&"TeactNContainer"!==a.name&&console.log("[Teact.useState]",a.name,a.Component&&a.Component.DEBUG_contentComponentName?`> ${a.Component.DEBUG_contentComponentName}`:"",t?`State update for ${t}, next value: `:`State update at cursor #${n}, next value: `,d[n].nextValue))})}),l.hooks.state.cursor++,[d[n].value,d[n].setter]}function B(e,t,n,r,d){var a;const{cursor:i,byCursor:u}=l.hooks.effects,c=l;function f(){if(!c.isMounted)return;const{cleanup:e}=u[i];if(e)try{let t;if(o.eM&&(t=performance.now()),e(),o.eM){const e=performance.now()-t,n=c.name;e>7&&console.warn(`[Teact] Slow cleanup at effect cursor #${i}: ${n}, ${Math.round(e)} ms`)}}catch(e){(0,s.S)(e)}finally{u[i].cleanup=void 0}}function h(){if(!c.isMounted)return;let e;f(),o.eM&&(e=performance.now());const t=n();if("function"==typeof t&&(u[i].cleanup=t),o.eM){const t=performance.now()-e,n=c.name;t>7&&console.warn(`[Teact] Slow effect at cursor #${i}: ${n}, ${Math.round(t)} ms`)}}if(void 0!==u[i]&&r&&u[i].dependencies){if(r.some(((e,t)=>e!==u[i].dependencies[t]))){if(d){const e=r.reduce(((e,t,n)=>{const o=u[i].dependencies[n];return t!==o&&e.push(`${n}: ${o} => ${t}`),e}),[]);console.log(`[Teact] Effect "${d}" caused by dependencies.`,e.join(", "))}t(f),e(h)}}else d&&console.log(`[Teact] Effect "${d}" caused by missing dependencies.`),t(f),e(h);u[i]={effect:n,dependencies:r,cleanup:null===(a=u[i])||void 0===a?void 0:a.cleanup},l.hooks.effects.cursor++}function F(e,t,n){return B(r.T2,r.D0,e,t,n)}function D(e,t,n){return B(r.R3,r.zD,e,t,n)}function O(e,t,n){const{cursor:r,byCursor:d}=l.hooks.memos;let{value:s}=d[r]||{};return(void 0===d[r]||t.some(((e,t)=>e!==d[r].dependencies[t])))&&(o.eM&&n&&console.log(`[Teact.useMemo] ${l.name} (${n}): Update is caused by:`,d[r]?(0,a.c)(t,d[r].dependencies).join(", "):"[first render]"),s=e()),d[r]={value:s,dependencies:t},l.hooks.memos.cursor++,s}function x(e,t,n){return O((()=>e),t,n)}function _(e){const{cursor:t,byCursor:n}=l.hooks.refs;return n[t]||(n[t]={current:e}),l.hooks.refs.cursor++,n[t]}function $(e,t){return function(n){return O((()=>y(e,n)),Object.values(n),t)}}document.addEventListener("dblclick",(()=>{console.warn("COMPONENTS",(0,d.Xo)(Object.values(k),"renderCount","desc"))}));const U={createElement:y,Fragment:u}},65116:(e,t,n)=>{n.d(t,{Iq:()=>A,Rd:()=>S,Sv:()=>E,c$:()=>N,gP:()=>T,ll:()=>M});var o=n(14050),r=n(83716),d=n(65326),a=n(26926),s=n(69118),i=n(275),u=n(60782),c=n(33592),l=n(18674);function f(){return f=Object.assign||function(e){for(var t=1;t{h=void 0})),g={},v=[function(){let e;r.eM&&(e=performance.now());for(const e of b.values()){const{mapStateToProps:t,ownProps:n,mappedProps:o,forceUpdate:d}=e;let a;try{a=t(m,n)}catch(e){return void(0,c.S)(e)}r.eM&&Object.values(a).some(Number.isNaN)&&console.warn(`[TeactN] Some of \`${e.DEBUG_componentName}\` mappers contain NaN values. This may cause redundant updates because of incorrect equality check.`),Object.keys(a).length&&!(0,i.Z)(o,a)&&(r.ZT&&console.log("[TeactN] Will update",e.DEBUG_componentName,"caused by",(0,i.c)(o,a).join(", ")),e.mappedProps=a,e.areMappedPropsChanged=!0,e.DEBUG_updates++,d())}if(r.eM){const t=performance.now()-e;t>7&&console.warn(`[TeactN] Slow containers update: ${Math.round(t)} ms`)}}],y={},b=new Map,I=(0,s.$6)(w);function w(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e||!(0,l.zG)()?v.forEach((e=>e(m))):(0,s.T2)(I)}function C(e,t){if("object"==typeof e&&e!==m){if(r.eM){if(e.DEBUG_capturedId&&e.DEBUG_capturedId!==h)throw new Error("[TeactN.setGlobal] Attempt to set an outdated global");h=void 0}m=e,null!=t&&t.forceSyncOnIOs?w(!0):I(null==t?void 0:t.forceOnHeavyAnimation)}}function S(){return r.eM&&(h=Math.random(),m={...m,DEBUG_capturedId:h},p()),m}function E(){return y}let P=[];function k(e,t){g[e]||(g[e]=[],y[e]=(t,n)=>{!function(e,t,n){if(P.push((()=>{var o;null===(o=g[e])||void 0===o||o.forEach((e=>{const o=e(r.eM?S():m,y,t);o&&"function"!=typeof o.then&&C(o,n)}))})),1===P.length)try{for(;P.length;)P[0](),P.shift()}finally{P=[]}}(e,t,n)}),g[e].push(t)}function M(e){v.push(e)}function A(e){const t=v.indexOf(e);-1!==t&&v.splice(t,1)}function N(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>({});return t=>function n(r){n.DEBUG_contentComponentName=t.name;const[s]=(0,o.eJ)((0,a.Z)(b)),u=(0,d.Z)();(0,o.d4)((()=>()=>{b.delete(s)}),[s]);let l=b.get(s);if(l||(l={mapStateToProps:e,ownProps:r,areMappedPropsChanged:!1,forceUpdate:u,DEBUG_updates:0,DEBUG_componentName:t.name},b.set(s,l)),l.areMappedPropsChanged&&(l.areMappedPropsChanged=!1),!l.mappedProps||!(0,i.Z)(l.ownProps,r)){l.ownProps=r;try{l.mappedProps=e(m,r)}catch(e){(0,c.S)(e)}}return o.ZP.createElement(t,f({},l.mappedProps,r))}}function T(){return{getGlobal:S,setGlobal:C,getActions:E,addActionHandler:k,withGlobal:N}}r.eM&&(window.getGlobal=S,document.addEventListener("dblclick",(()=>{console.warn("GLOBAL CONTAINERS",(0,u.Xo)(Array.from(b.values()).map((e=>{let{DEBUG_componentName:t,DEBUG_updates:n}=e;return{DEBUG_componentName:t,DEBUG_updates:n}})),"DEBUG_updates","desc"))})))},33681:(e,t,n)=>{n.d(t,{Z:()=>a,l:()=>d});const o=/\uFE0F/g,r=String.fromCharCode(8205);function d(e){return e.indexOf(r)<0?e.replace(o,""):e}const a=/(?:\ud83d\udc68\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffc-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb\udffd-\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb\udffc\udffe\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb-\udffd\udfff]|\ud83e\uddd1\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb-\udffe]|\ud83d\udc68\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffc-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffd-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc68\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffd\udfff]|\ud83d\udc68\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffe]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffc-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffc-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffd-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb\udffd-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc69\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffd\udfff]|\ud83d\udc69\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb-\udffd\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffe]|\ud83d\udc69\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb-\udffe]|\ud83e\uddd1\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffc-\udfff]|\ud83e\uddd1\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb\udffd-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb\udffc\udffe\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb-\udffd\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb-\udffe]|\ud83e\uddd1\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d[\udc68\udc69]|\ud83e\udef1\ud83c\udffb\u200d\ud83e\udef2\ud83c[\udffc-\udfff]|\ud83e\udef1\ud83c\udffc\u200d\ud83e\udef2\ud83c[\udffb\udffd-\udfff]|\ud83e\udef1\ud83c\udffd\u200d\ud83e\udef2\ud83c[\udffb\udffc\udffe\udfff]|\ud83e\udef1\ud83c\udffe\u200d\ud83e\udef2\ud83c[\udffb-\udffd\udfff]|\ud83e\udef1\ud83c\udfff\u200d\ud83e\udef2\ud83c[\udffb-\udffe]|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc68|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d[\udc68\udc69]|\ud83e\uddd1\u200d\ud83e\udd1d\u200d\ud83e\uddd1|\ud83d\udc6b\ud83c[\udffb-\udfff]|\ud83d\udc6c\ud83c[\udffb-\udfff]|\ud83d\udc6d\ud83c[\udffb-\udfff]|\ud83d\udc8f\ud83c[\udffb-\udfff]|\ud83d\udc91\ud83c[\udffb-\udfff]|\ud83e\udd1d\ud83c[\udffb-\udfff]|\ud83d[\udc6b-\udc6d\udc8f\udc91]|\ud83e\udd1d)|(?:\ud83d[\udc68\udc69]|\ud83e\uddd1)(?:\ud83c[\udffb-\udfff])?\u200d(?:\u2695\ufe0f|\u2696\ufe0f|\u2708\ufe0f|\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]|\u26f9)((?:\ud83c[\udffb-\udfff]|\ufe0f)\u200d[\u2640\u2642]\ufe0f)|(?:\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])?\u200d[\u2640\u2642]\ufe0f|(?:\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83c\udff3\ufe0f\u200d\u26a7\ufe0f|\ud83c\udff3\ufe0f\u200d\ud83c\udf08|\ud83d\ude36\u200d\ud83c\udf2b\ufe0f|\u2764\ufe0f\u200d\ud83d\udd25|\u2764\ufe0f\u200d\ud83e\ude79|\ud83c\udff4\u200d\u2620\ufe0f|\ud83d\udc15\u200d\ud83e\uddba|\ud83d\udc3b\u200d\u2744\ufe0f|\ud83d\udc41\u200d\ud83d\udde8|\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc6f\u200d\u2640\ufe0f|\ud83d\udc6f\u200d\u2642\ufe0f|\ud83d\ude2e\u200d\ud83d\udca8|\ud83d\ude35\u200d\ud83d\udcab|\ud83e\udd3c\u200d\u2640\ufe0f|\ud83e\udd3c\u200d\u2642\ufe0f|\ud83e\uddde\u200d\u2640\ufe0f|\ud83e\uddde\u200d\u2642\ufe0f|\ud83e\udddf\u200d\u2640\ufe0f|\ud83e\udddf\u200d\u2642\ufe0f|\ud83d\udc08\u200d\u2b1b)|[#*0-9]\ufe0f?\u20e3|(?:[©®\u2122\u265f]\ufe0f)|(?:\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]|[\u203c\u2049\u2139\u2194-\u2199\u21a9\u21aa\u231a\u231b\u2328\u23cf\u23ed-\u23ef\u23f1\u23f2\u23f8-\u23fa\u24c2\u25aa\u25ab\u25b6\u25c0\u25fb-\u25fe\u2600-\u2604\u260e\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262a\u262e\u262f\u2638-\u263a\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267b\u267f\u2692-\u2697\u2699\u269b\u269c\u26a0\u26a1\u26a7\u26aa\u26ab\u26b0\u26b1\u26bd\u26be\u26c4\u26c5\u26c8\u26cf\u26d1\u26d3\u26d4\u26e9\u26ea\u26f0-\u26f5\u26f8\u26fa\u26fd\u2702\u2708\u2709\u270f\u2712\u2714\u2716\u271d\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u2764\u27a1\u2934\u2935\u2b05-\u2b07\u2b1b\u2b1c\u2b50\u2b55\u3030\u303d\u3297\u3299])(?:\ufe0f|(?!\ufe0e))|(?:(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75\udd90]|[\u261d\u26f7\u26f9\u270c\u270d])(?:\ufe0f|(?!\ufe0e))|(?:\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]|[\u270a\u270b]))(?:\ud83c[\udffb-\udfff])?|(?:\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc73\udb40\udc63\udb40\udc74\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc77\udb40\udc6c\udb40\udc73\udb40\udc7f|\ud83c\udde6\ud83c[\udde8-\uddec\uddee\uddf1\uddf2\uddf4\uddf6-\uddfa\uddfc\uddfd\uddff]|\ud83c\udde7\ud83c[\udde6\udde7\udde9-\uddef\uddf1-\uddf4\uddf6-\uddf9\uddfb\uddfc\uddfe\uddff]|\ud83c\udde8\ud83c[\udde6\udde8\udde9\uddeb-\uddee\uddf0-\uddf5\uddf7\uddfa-\uddff]|\ud83c\udde9\ud83c[\uddea\uddec\uddef\uddf0\uddf2\uddf4\uddff]|\ud83c\uddea\ud83c[\udde6\udde8\uddea\uddec\udded\uddf7-\uddfa]|\ud83c\uddeb\ud83c[\uddee-\uddf0\uddf2\uddf4\uddf7]|\ud83c\uddec\ud83c[\udde6\udde7\udde9-\uddee\uddf1-\uddf3\uddf5-\uddfa\uddfc\uddfe]|\ud83c\udded\ud83c[\uddf0\uddf2\uddf3\uddf7\uddf9\uddfa]|\ud83c\uddee\ud83c[\udde8-\uddea\uddf1-\uddf4\uddf6-\uddf9]|\ud83c\uddef\ud83c[\uddea\uddf2\uddf4\uddf5]|\ud83c\uddf0\ud83c[\uddea\uddec-\uddee\uddf2\uddf3\uddf5\uddf7\uddfc\uddfe\uddff]|\ud83c\uddf1\ud83c[\udde6-\udde8\uddee\uddf0\uddf7-\uddfb\uddfe]|\ud83c\uddf2\ud83c[\udde6\udde8-\udded\uddf0-\uddff]|\ud83c\uddf3\ud83c[\udde6\udde8\uddea-\uddec\uddee\uddf1\uddf4\uddf5\uddf7\uddfa\uddff]|\ud83c\uddf4\ud83c\uddf2|\ud83c\uddf5\ud83c[\udde6\uddea-\udded\uddf0-\uddf3\uddf7-\uddf9\uddfc\uddfe]|\ud83c\uddf6\ud83c\udde6|\ud83c\uddf7\ud83c[\uddea\uddf4\uddf8\uddfa\uddfc]|\ud83c\uddf8\ud83c[\udde6-\uddea\uddec-\uddf4\uddf7-\uddf9\uddfb\uddfd-\uddff]|\ud83c\uddf9\ud83c[\udde6\udde8\udde9\uddeb-\udded\uddef-\uddf4\uddf7\uddf9\uddfb\uddfc\uddff]|\ud83c\uddfa\ud83c[\udde6\uddec\uddf2\uddf3\uddf8\uddfe\uddff]|\ud83c\uddfb\ud83c[\udde6\udde8\uddea\uddec\uddee\uddf3\uddfa]|\ud83c\uddfc\ud83c[\uddeb\uddf8]|\ud83c\uddfd\ud83c\uddf0|\ud83c\uddfe\ud83c[\uddea\uddf9]|\ud83c\uddff\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]|[\u23e9-\u23ec\u23f0\u23f3\u267e\u26ce\u2705\u2728\u274c\u274e\u2753-\u2755\u2795-\u2797\u27b0\u27bf\ue50a])|\ufe0f/g},91713:(e,t,n)=>{let o,r,d,a,s,i,u,c,l,f,h,m,p,g;n.d(t,{Cr:()=>c,KB:()=>g,MT:()=>d,Nh:()=>l,Uq:()=>o,WB:()=>m,bZ:()=>u,du:()=>a,fo:()=>r,mp:()=>v,nJ:()=>s,qt:()=>i,rN:()=>f,u1:()=>y,vi:()=>p,wv:()=>h}),function(e){e[e.Backwards=0]="Backwards",e[e.Forwards=1]="Forwards",e[e.Around=2]="Around"}(o||(o={})),function(e){e[e.Up=0]="Up",e[e.Down=1]="Down",e[e.Static=2]="Static"}(r||(r={})),function(e){e[e.Main=0]="Main",e[e.EditProfile=1]="EditProfile",e[e.Notifications=2]="Notifications",e[e.DataStorage=3]="DataStorage",e[e.Language=4]="Language",e[e.ActiveSessions=5]="ActiveSessions",e[e.General=6]="General",e[e.GeneralChatBackground=7]="GeneralChatBackground",e[e.GeneralChatBackgroundColor=8]="GeneralChatBackgroundColor",e[e.Privacy=9]="Privacy",e[e.PrivacyPhoneNumber=10]="PrivacyPhoneNumber",e[e.PrivacyLastSeen=11]="PrivacyLastSeen",e[e.PrivacyProfilePhoto=12]="PrivacyProfilePhoto",e[e.PrivacyPhoneCall=13]="PrivacyPhoneCall",e[e.PrivacyPhoneP2P=14]="PrivacyPhoneP2P",e[e.PrivacyForwarding=15]="PrivacyForwarding",e[e.PrivacyVoiceMessages=16]="PrivacyVoiceMessages",e[e.PrivacyGroupChats=17]="PrivacyGroupChats",e[e.PrivacyPhoneNumberAllowedContacts=18]="PrivacyPhoneNumberAllowedContacts",e[e.PrivacyPhoneNumberDeniedContacts=19]="PrivacyPhoneNumberDeniedContacts",e[e.PrivacyLastSeenAllowedContacts=20]="PrivacyLastSeenAllowedContacts",e[e.PrivacyLastSeenDeniedContacts=21]="PrivacyLastSeenDeniedContacts",e[e.PrivacyProfilePhotoAllowedContacts=22]="PrivacyProfilePhotoAllowedContacts",e[e.PrivacyProfilePhotoDeniedContacts=23]="PrivacyProfilePhotoDeniedContacts",e[e.PrivacyPhoneCallAllowedContacts=24]="PrivacyPhoneCallAllowedContacts",e[e.PrivacyPhoneCallDeniedContacts=25]="PrivacyPhoneCallDeniedContacts",e[e.PrivacyPhoneP2PAllowedContacts=26]="PrivacyPhoneP2PAllowedContacts",e[e.PrivacyPhoneP2PDeniedContacts=27]="PrivacyPhoneP2PDeniedContacts",e[e.PrivacyForwardingAllowedContacts=28]="PrivacyForwardingAllowedContacts",e[e.PrivacyForwardingDeniedContacts=29]="PrivacyForwardingDeniedContacts",e[e.PrivacyVoiceMessagesAllowedContacts=30]="PrivacyVoiceMessagesAllowedContacts",e[e.PrivacyVoiceMessagesDeniedContacts=31]="PrivacyVoiceMessagesDeniedContacts",e[e.PrivacyGroupChatsAllowedContacts=32]="PrivacyGroupChatsAllowedContacts",e[e.PrivacyGroupChatsDeniedContacts=33]="PrivacyGroupChatsDeniedContacts",e[e.PrivacyBlockedUsers=34]="PrivacyBlockedUsers",e[e.Folders=35]="Folders",e[e.FoldersCreateFolder=36]="FoldersCreateFolder",e[e.FoldersEditFolder=37]="FoldersEditFolder",e[e.FoldersEditFolderFromChatList=38]="FoldersEditFolderFromChatList",e[e.FoldersIncludedChats=39]="FoldersIncludedChats",e[e.FoldersIncludedChatsFromChatList=40]="FoldersIncludedChatsFromChatList",e[e.FoldersExcludedChats=41]="FoldersExcludedChats",e[e.FoldersExcludedChatsFromChatList=42]="FoldersExcludedChatsFromChatList",e[e.TwoFaDisabled=43]="TwoFaDisabled",e[e.TwoFaNewPassword=44]="TwoFaNewPassword",e[e.TwoFaNewPasswordConfirm=45]="TwoFaNewPasswordConfirm",e[e.TwoFaNewPasswordHint=46]="TwoFaNewPasswordHint",e[e.TwoFaNewPasswordEmail=47]="TwoFaNewPasswordEmail",e[e.TwoFaNewPasswordEmailCode=48]="TwoFaNewPasswordEmailCode",e[e.TwoFaEnabled=49]="TwoFaEnabled",e[e.TwoFaChangePasswordCurrent=50]="TwoFaChangePasswordCurrent",e[e.TwoFaChangePasswordNew=51]="TwoFaChangePasswordNew",e[e.TwoFaChangePasswordConfirm=52]="TwoFaChangePasswordConfirm",e[e.TwoFaChangePasswordHint=53]="TwoFaChangePasswordHint",e[e.TwoFaTurnOff=54]="TwoFaTurnOff",e[e.TwoFaRecoveryEmailCurrentPassword=55]="TwoFaRecoveryEmailCurrentPassword",e[e.TwoFaRecoveryEmail=56]="TwoFaRecoveryEmail",e[e.TwoFaRecoveryEmailCode=57]="TwoFaRecoveryEmailCode",e[e.TwoFaCongratulations=58]="TwoFaCongratulations",e[e.ActiveWebsites=59]="ActiveWebsites",e[e.PasscodeDisabled=60]="PasscodeDisabled",e[e.PasscodeNewPasscode=61]="PasscodeNewPasscode",e[e.PasscodeNewPasscodeConfirm=62]="PasscodeNewPasscodeConfirm",e[e.PasscodeEnabled=63]="PasscodeEnabled",e[e.PasscodeChangePasscodeCurrent=64]="PasscodeChangePasscodeCurrent",e[e.PasscodeChangePasscodeNew=65]="PasscodeChangePasscodeNew",e[e.PasscodeChangePasscodeConfirm=66]="PasscodeChangePasscodeConfirm",e[e.PasscodeTurnOff=67]="PasscodeTurnOff",e[e.PasscodeCongratulations=68]="PasscodeCongratulations",e[e.Experimental=69]="Experimental",e[e.Stickers=70]="Stickers",e[e.QuickReaction=71]="QuickReaction",e[e.CustomEmoji=72]="CustomEmoji"}(d||(d={})),function(e){e[e.ChatList=0]="ChatList",e[e.GlobalSearch=1]="GlobalSearch",e[e.Settings=2]="Settings",e[e.Contacts=3]="Contacts",e[e.Archived=4]="Archived",e[e.NewChannelStep1=5]="NewChannelStep1",e[e.NewChannelStep2=6]="NewChannelStep2",e[e.NewGroupStep1=7]="NewGroupStep1",e[e.NewGroupStep2=8]="NewGroupStep2"}(a||(a={})),function(e){e[e.ChatList=0]="ChatList",e[e.Media=1]="Media",e[e.Links=2]="Links",e[e.Files=3]="Files",e[e.Music=4]="Music",e[e.Voice=5]="Voice"}(s||(s={})),function(e){e[e.ChatInfo=0]="ChatInfo",e[e.Search=1]="Search",e[e.Management=2]="Management",e[e.Statistics=3]="Statistics",e[e.MessageStatistics=4]="MessageStatistics",e[e.StickerSearch=5]="StickerSearch",e[e.GifSearch=6]="GifSearch",e[e.PollResults=7]="PollResults",e[e.AddingMembers=8]="AddingMembers"}(i||(i={})),function(e){e[e.Inline=0]="Inline",e[e.ScheduledInline=1]="ScheduledInline",e[e.SharedMedia=2]="SharedMedia",e[e.ProfileAvatar=3]="ProfileAvatar",e[e.SettingsAvatar=4]="SettingsAvatar",e[e.MiddleHeaderAvatar=5]="MiddleHeaderAvatar",e[e.Album=6]="Album",e[e.ScheduledAlbum=7]="ScheduledAlbum",e[e.SearchResult=8]="SearchResult"}(u||(u={})),function(e){e[e.Inline=0]="Inline",e[e.SharedMedia=1]="SharedMedia",e[e.Search=2]="Search"}(c||(c={})),function(e){e[e.Idle=0]="Idle",e[e.InProgress=1]="InProgress",e[e.Complete=2]="Complete",e[e.Error=3]="Error"}(l||(l={})),function(e){e[e.Idle=0]="Idle",e[e.InProgress=1]="InProgress",e[e.Complete=2]="Complete",e[e.Error=3]="Error"}(f||(f={})),function(e){e[e.Idle=0]="Idle",e[e.InProgress=1]="InProgress",e[e.Complete=2]="Complete",e[e.Error=3]="Error"}(h||(h={})),function(e){e[e.Closed=0]="Closed",e[e.InProgress=1]="InProgress",e[e.Loading=2]="Loading"}(m||(m={})),function(e){e[e.Profile=0]="Profile",e[e.SharedMedia=1]="SharedMedia",e[e.MemberList=2]="MemberList"}(p||(p={})),function(e){e[e.ShippingInfo=0]="ShippingInfo",e[e.Shipping=1]="Shipping",e[e.PaymentInfo=2]="PaymentInfo",e[e.Checkout=3]="Checkout",e[e.ConfirmPayment=4]="ConfirmPayment"}(g||(g={}));const v="UPLOADING_WALLPAPER_SLUG";let y;!function(e){e[e.Initial=0]="Initial",e[e.ChatPrivacyType=1]="ChatPrivacyType",e[e.Discussion=2]="Discussion",e[e.ChannelSubscribers=3]="ChannelSubscribers",e[e.GroupType=4]="GroupType",e[e.GroupPermissions=5]="GroupPermissions",e[e.GroupRemovedUsers=6]="GroupRemovedUsers",e[e.ChannelRemovedUsers=7]="ChannelRemovedUsers",e[e.GroupUserPermissionsCreate=8]="GroupUserPermissionsCreate",e[e.GroupUserPermissions=9]="GroupUserPermissions",e[e.ChatAdministrators=10]="ChatAdministrators",e[e.GroupRecentActions=11]="GroupRecentActions",e[e.ChatAdminRights=12]="ChatAdminRights",e[e.ChatNewAdminRights=13]="ChatNewAdminRights",e[e.GroupMembers=14]="GroupMembers",e[e.GroupAddAdmins=15]="GroupAddAdmins",e[e.Invites=16]="Invites",e[e.EditInvite=17]="EditInvite",e[e.Reactions=18]="Reactions",e[e.InviteInfo=19]="InviteInfo",e[e.JoinRequests=20]="JoinRequests"}(y||(y={}))},9933:(e,t,n)=>{n.d(t,{M8:()=>s,cK:()=>d,jt:()=>a,vr:()=>i});var o=n(69118);let r;function d(e,t){t||(r&&!r.isCancelled&&(r.isCancelled=!0),r=t={isCancelled:!1}),!t.isCancelled&&e()&&(0,o.T2)((()=>{d(e,t)}))}function a(e){e()&&(0,o.T2)((()=>{a(e)}))}const s={linear:e=>e,easeIn:e=>e**1.675,easeOut:e=>-1*e**1.675,easeInOut:e=>.5*(Math.sin((e-.5)*Math.PI)+1),easeInQuad:e=>e*e,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e*e:(4-2*e)*e-1,easeInCubic:e=>e**3,easeOutCubic:e=>--e*e*e+1,easeInOutCubic:e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e**4,easeOutQuart:e=>1- --e*e**3,easeInOutQuart:e=>e<.5?8*e**4:1-8*--e*e**3,easeInQuint:e=>e**5,easeOutQuint:e=>1+--e*e**4,easeInOutQuint:e=>e<.5?16*e**5:1+16*--e*e**4};function i(e){let{timing:t=s.linear,onUpdate:n,duration:o,onEnd:r,from:d,to:i}=e;const u=Date.now();let c=!1;return a((()=>{if(c)return!1;let e=(Date.now()-u)/o;e>1&&(e=1);const a=t(e);if("number"==typeof d&&"number"==typeof i)n(d+(i-d)*a);else if(Array.isArray(d)&&Array.isArray(i)){const e=d.map(((e,t)=>e+(i[t]-e)*a));n(e)}return 1===e&&r&&r(),e<1})),()=>{c=!0,r&&r()}}},17358:(e,t,n)=>{n.d(t,{w:()=>r});var o=n(83716);function r(e){"function"==typeof window.navigator.setAppBadge&&window.navigator.setAppBadge(e).catch((e=>{o.eM&&console.error(e)}))}},275:(e,t,n)=>{function o(e,t){if(e===t)return!0;const n=Object.keys(e),o=n.length;if(o!==Object.keys(t).length)return!1;if(0===o)return!0;for(let r=0;r(e[o]!==t[o]&&n.push(`${o}: ${e[o]} => ${t[o]}`),n)),[])}n.d(t,{Z:()=>o,c:()=>r})},46752:(e,t,n)=>{function o(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),d=1;d(t&&(Array.isArray(t)?e.push(...t):e.push(`${n}--${t}`)),e)),[n]).join(" ")}}n.d(t,{Z:()=>o,y:()=>r})},80036:(e,t,n)=>{function o(){for(var e=arguments.length,t=new Array(e),n=0;no})},49524:(e,t,n)=>{n.d(t,{Type:()=>r,clear:()=>s,fetch:()=>d,save:()=>a});const o=self.caches;let r;async function d(e,t,n){let d=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(o)try{const a=new Request(t.replace(/:/g,"_")),s=await o.open(e),i=await s.match(a);if(!i)return;const u=i.headers.get("Content-Type");switch(n){case r.Text:return await i.text();case r.Blob:{if(t.startsWith("avatar")&&u&&u.startsWith("text"))return;const e=await i.blob(),n=!e.type||!d&&e.type.includes("html");let o=e.type||u;return n&&o?(d||(o=o.replace(/html/gi,"")),new Blob([e],{type:o})):e}case r.Json:return await i.json();case r.ArrayBuffer:return await i.arrayBuffer();default:return}}catch(e){return void console.warn(e)}}async function a(e,t,n){if(o)try{const r="string"==typeof n||n instanceof Blob||n instanceof ArrayBuffer?n:JSON.stringify(n),d=new Request(t.replace(/:/g,"_")),a=new Response(r),s=await o.open(e);return await s.put(d,a)}catch(e){return void console.warn(e)}}async function s(e){try{if(!o)return;return await o.delete(e)}catch(e){return void console.warn(e)}}!function(e){e[e.Text=0]="Text",e[e.Blob=1]="Blob",e[e.Json=2]="Json",e[e.ArrayBuffer=3]="ArrayBuffer"}(r||(r={}))},16063:(e,t,n)=>{function o(){const e=[];function t(t){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}return{runCallbacks:function(){for(var t=arguments.length,n=new Array(t),o=0;o{e(...n)}))},addCallback:function(n){return e.push(n),()=>{t(n)}},removeCallback:t,hasCallbacks:function(){return Boolean(e.length)}}}n.d(t,{_:()=>o})},23989:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(517);function r(e){return(0,o.Z)({onEsc:e})}},517:(e,t,n)=>{n.d(t,{Z:()=>d});const o={Enter:"onEnter",Backspace:"onBackspace",Delete:"onDelete",Esc:"onEsc",Escape:"onEsc",ArrowUp:"onUp",ArrowDown:"onDown",ArrowLeft:"onLeft",ArrowRight:"onRight",Tab:"onTab"},r={onEnter:[],onDelete:[],onBackspace:[],onEsc:[],onUp:[],onDown:[],onLeft:[],onRight:[],onTab:[]};function d(e){return a()||document.addEventListener("keydown",s,!0),Object.keys(e).forEach((t=>{const n=e[t];if(!n)return;const o=r[t];o&&o.push(n)})),()=>{!function(e){Object.keys(e).forEach((t=>{const n=e[t],o=r[t];if(o){const e=o.findIndex((e=>e===n));-1!==e&&o.splice(e,1)}})),a()||document.removeEventListener("keydown",s,!1)}(e)}}function a(){return Object.values(r).some((e=>Boolean(e.length)))}function s(e){const t=o[e.key];if(!t)return;const{length:n}=r[t];n&&(e.stopPropagation(),(0,r[t][n-1])(e))}},64319:(e,t,n)=>{n.d(t,{TE:()=>a,VP:()=>s,yl:()=>r});var o=n(83716);const r=window.navigator.clipboard&&window.ClipboardItem,d=document.createElement("textarea");d.setAttribute("readonly",""),d.tabIndex=-1,d.className="visually-hidden";const a=e=>{d.value=e,document.body.appendChild(d);const t=document.getSelection();if(t){const e=t.rangeCount>0&&t.getRangeAt(0);d.select(),document.execCommand("copy"),e&&(t.removeAllRanges(),t.addRange(e))}document.body.removeChild(d)},s=e=>{if(!e)return;const t=document.createElement("canvas"),n=t.getContext("2d"),o=new Image;o.onload=e=>{if(n&&e.currentTarget){const o=e.currentTarget;t.width=o.width,t.height=o.height,n.drawImage(o,0,0,o.width,o.height),t.toBlob(i,"image/png",1)}},o.src=e};async function i(e){if(e&&r)try{var t,n;await(null===(t=(n=window.navigator.clipboard).write)||void 0===t?void 0:t.call(n,[new ClipboardItem({[e.type]:e})]))}catch(e){o.eM&&console.error(e)}}},1279:(e,t,n)=>{function o(e,t,n){d("transitionend",e,t,n)}function r(e,t,n){d("animationend",e,t,n)}function d(e,t,n,o){let r=!1;t.addEventListener(e,(function d(a){r||a.target!==a.currentTarget||o&&(a instanceof TransitionEvent&&a.propertyName===o||a instanceof AnimationEvent&&a.animationName===o)||(r=!0,t.removeEventListener(e,d),setTimeout((()=>{n()}),50))}))}n.d(t,{L:()=>o,f:()=>r})},790:(e,t,n)=>{n.d(t,{$Y:()=>i,D:()=>g,IS:()=>N,J_:()=>b,SA:()=>k,Tu:()=>m,VX:()=>h,ZK:()=>w,_F:()=>u,dJ:()=>y,j1:()=>I,k9:()=>C,kj:()=>c,mB:()=>v,mr:()=>f,np:()=>p,rM:()=>S,xH:()=>P,xR:()=>a,xk:()=>A,zk:()=>s});var o=n(15155);const r=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],d=["January","February","March","April","May","June","July","August","September","October","November","December"].map((e=>e.toLowerCase())),a=864e5;function s(e){return u(new Date)===u(e)}function i(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function u(e){return i(e).getTime()}function c(e){const t=new Date(1e3*e);return`${t.getFullYear()}-${t.getMonth()}`}function l(e){return`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}`}function f(e,t){const n="number"==typeof t?new Date(t):t,o=e.timeFormat||"24h";let r=n.getHours(),d="";return"12h"===o&&(d=r>=12?" PM":" AM",r=r>12?r%12:r),`${String(r).padStart(2,"0")}:${String(n.getMinutes()).padStart(2,"0")}${d}`}function h(e,t){const n="number"==typeof t?new Date(t):t,o=i(new Date);if(n>=o)return f(e,n);const d=new Date(o);if(d.setDate(o.getDate()-7),n>=d)return e(`Weekday.Short${r[n.getDay()]}`);const a=n.getFullYear()===o.getFullYear();return P(n,e.code,a)}function m(e,t){return P(t,e.code,!1,"numeric")}function p(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return P(t,e.code,!1,n?"short":"long",!0)}function g(e,t){const n=Math.floor(t/a);return t<0?0:n<1?C(t/1e3):n<7?e("Days",n):n<30?e("Weeks",Math.floor(n/7)):n<365?e("Months",Math.floor(n/30)):e("Years",Math.floor(n/365))}function v(e,t){return t<6e4?Math.ceil(t/1e3):t<36e5?Math.ceil(t/6e4):t2&&void 0!==arguments[2]?arguments[2]:t;const o=t-n;return o<60?e("LiveLocationUpdated.JustNow"):o<3600?e("LiveLocationUpdated.MinutesAgo",Math.floor(o/60)):e("LiveLocationUpdated.TodayAt",f(e,n))}function b(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(!t)return;const o=[],r=[{multiplier:1,type:"Seconds"},{multiplier:60,type:"Minutes"},{multiplier:60,type:"Hours"},{multiplier:24,type:"Days"},{multiplier:7,type:"Weeks"}];let d=1;r.forEach(((e,n)=>{if(d*=e.multiplier,t=0;--e)0===a[e].duration&&a.splice(e,1);return a.map((t=>e(t.type,t.duration,"i"))).join(", ")}function I(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],d=arguments.length>4?arguments[4]:void 0;const a="number"==typeof t?new Date(t):t,s=i(new Date);if(!o){if(l(a)===l(s))return(d||!n?L:T)(e("Weekday.Today"));const t=new Date(s);if(t.setDate(s.getDate()-1),l(a)===l(t))return(d||!n?L:T)(e("Weekday.Yesterday"));const o=new Date(s),i=new Date(s);if(o.setDate(s.getDate()-7),i.setDate(s.getDate()+7),a>=o&&a<=i){const t=r[a.getDay()];return(d||!n?L:T)(e(n?`Weekday.Short${t}`:`Weekday.${t}`))}}const u=a.getFullYear()===s.getFullYear(),c=P(a,e.code,u,n?"short":"long");return(d||!n?L:T)(c)}function w(e,t,n){const o="number"==typeof t?new Date(t):t;return`${I(e,o,!0,void 0,n)}, ${f(e,o)}`}function C(e,t){const n=Math.floor(e/3600),o=Math.floor(e%3600/60),r=Math.floor(e%3600%60),d=t?Math.floor(t/3600):0,a=t?Math.floor(t%3600/60):0;let s="";return n>0||d>0?(s+=`${String(n).padStart(2,"0")}:`,s+=`${String(o).padStart(2,"0")}:`):s+=a>=10?`${String(o).padStart(2,"0")}:`:`${String(o)}:`,s+=String(r).padStart(2,"0"),s}function S(e){const t=[];let n=e%1e3;e-=n,n=Math.floor(n/10);const o=(e=Math.floor(e/1e3))%60;e-=o;const r=(e=Math.floor(e/60))%60;e-=r;const d=(e=Math.floor(e/60))%60;return d>0&&t.push(String(d).padStart(2,"0")),t.push(String(r).padStart(d>0?2:1,"0")),t.push(String(o).padStart(2,"0")),`${t.join(":")},${String(n).padStart(2,"0")}`}const E=(0,o.Z)((function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"short",r=arguments.length>4?arguments[4]:void 0;return new Date(e).toLocaleString(t,{year:n?void 0:"numeric",month:o,day:r?void 0:"numeric"})}));function P(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"short",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const d="number"==typeof e?new Date(e):e,a=u(d);return E(a,t,n,o,r)}function k(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";const n="number"==typeof e?new Date(e):e;return n.toLocaleString(t,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})}function M(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2021;if(t>11||e>31)return!1;const o=new Date(n,t,e);return!Number.isNaN(o.getTime())&&o.getDate()===e}function A(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=e.match(/\d{1,2}\s[a-zA-Z]{3,}/),n=e.match(/[a-zA-Z]{3,}\s\d{1,2}/),o=e.match(/\d{1,2}[./-]\d{1,2}([./-]\d{2,4})?/);if(!t&&!o&&!n)return;if(o){const[t,n,o]=e.split(/[./-]/).map(Number);return o&&o<2015||!M(t,n-1,o||void 0)?void 0:`${o?`${o}-`:""}${String(n).padStart(2,"0")}-${String(t).padStart(2,"0")}`}const r=e.split(" "),a=t?r[0]:r[1],s=(t?r[1]:r[0]).toLowerCase(),i=d.findIndex((e=>e.startsWith(s)));return-1!==i&&M(Number(a),i)?`${String(i+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`:void 0}function N(e){return e+a/1e3}function T(e){return`${e[0].toLowerCase()}${e.slice(1)}`}function L(e){return`${e[0].toUpperCase()}${e.slice(1)}`}},34284:(e,t,n)=>{n.d(t,{DW:()=>l,NM:()=>f,Uz:()=>i,Wg:()=>h,g6:()=>c,mE:()=>u});var o=n(33681),r=n(15155);const d=["female_sign","male_sign","medical_symbol"],a=[[/\u{1f3f3}\u200d\u{1f308}/gu,"🏳️‍🌈"],[/\u{1f3f3}\u200d\u26a7\ufe0f/gu,"🏳️‍⚧️"],[/\u{1f937}\u200d\u2642[^\ufe0f]/gu,"🤷‍♂️"]];function s(e){const t=e.split("-").map((e=>parseInt(e,16)));return String.fromCodePoint(...t)}const i=new Set;function u(e){e.currentTarget.classList.add("open"),i.add(e.currentTarget.dataset.path)}function c(e){if(!e.match(o.Z))return e;for(const[t,n]of a)e=e.replace(t,n);return e}const l=(0,r.Z)((function(e){return function(e){let t;if(1===e.length)t=e.charCodeAt(0).toString(16).padStart(4,"0");else{const n=[];for(let t=0;t=55296&&e.charCodeAt(t)<=56319?e.charCodeAt(t+1)>=56320&&e.charCodeAt(t+1)<=57343&&n.push(1024*(e.charCodeAt(t)-55296)+(e.charCodeAt(t+1)-56320)+65536):(e.charCodeAt(t)<55296||e.charCodeAt(t)>57343)&&n.push(e.charCodeAt(t));t=n.map((e=>e.toString(16).padStart(4,"0"))).join("-")}return t}((0,o.l)(e))}));function f(e){const t={categories:[],emojis:{}};for(let n=0;ne.codePointAt(0)+127397));return String.fromCodePoint(...n)}},81396:(e,t,n)=>{function o(e){if(e)return e.includes("://")?e:`http://${e}`}n.d(t,{X:()=>o})},77361:(e,t,n)=>{n.d(t,{Bi:()=>T,cL:()=>F,wZ:()=>v,gk:()=>x,vX:()=>A,FW:()=>_,op:()=>E,EA:()=>U,cj:()=>g,jm:()=>p,pA:()=>Z,rT:()=>O,m5:()=>M,Xp:()=>h,I_:()=>k,fl:()=>b,t0:()=>N,s$:()=>y,i4:()=>$,Mc:()=>P,wB:()=>w,p7:()=>C,$b:()=>I,mh:()=>S,Hh:()=>B,s0:()=>L,aZ:()=>D,l0:()=>V,gZ:()=>j,Lt:()=>m,as:()=>W,vn:()=>u,on:()=>d});var o=n(83716);let r;function d(){return Boolean(r)}var a,s;new Promise((e=>{const t=new Image;t.src="data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA";const n=()=>{e(2===t.height)};t.onload=n,t.onerror=n})).then((e=>{r=e}));let i=null!==(a=(s=window).matchMedia)&&void 0!==a&&a.call(s,"(prefers-color-scheme: dark)").matches?"dark":"light";function u(){return i}function c(e){i=e.matches?"dark":"light"}const l=window.matchMedia("(prefers-color-scheme: dark)");var f;"function"==typeof l.addEventListener?l.addEventListener("change",c):"function"==typeof l.addListener&&l.addListener(c);const h=window.location.host===o.xH,m=function(){const{userAgent:e,platform:t}=window.navigator;let n;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?n="macOS":-1!==["iPhone","iPad","iPod"].indexOf(t)?n="iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?n="Windows":/Android/.test(e)?n="Android":/Linux/.test(t)&&(n="Linux"),n}(),p="macOS"===m,g="iOS"===m,v="Android"===m,y=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),b=window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone||document.referrer.includes("android-app://"),I=window.matchMedia("(pointer: coarse)").matches,w=window.innerWidth<=o.l3||window.innerWidth<=o.u_&&window.innerHeight<=o.rO,C=!w&&window.innerWidth<=o.ks,S=Boolean(window.navigator.mediaDevices&&"getUserMedia"in window.navigator.mediaDevices&&(window.AudioContext||window.webkitAudioContext)),E=(document.documentElement.style,m&&(p||g)&&function(){const e=document.createElement("span");e.classList.add("emoji-test-element"),document.body.appendChild(e),e.innerText="🫱🏻";const t=e.offsetWidth;e.innerText="❤️";const n=e.offsetWidth;return document.body.removeChild(e),Math.abs(t-n)<5}()),P="serviceWorker"in navigator,k=P,M=(window,Boolean((new Audio).canPlayType("audio/ogg; codecs=opus"))),A=!o.Cg&&"filter"in(document.createElement("canvas").getContext("2d")||{}),N="requestFullscreen"in document.createElement("div"),T=!navigator.userAgent.includes("Firefox"),L=v?"slide-fade":g?"slide-layers":"push-slide",R=document.createElement("video"),Z=Boolean(R.canPlayType(o.Ng).replace("no","")||g||p);Z&&(o.wG.add(o.Ng),o.dI.add(o.Ng));const B=Boolean(R.canPlayType('video/webm; codecs="vp9"').replace("no",""))&&!(p&&y),F=window.devicePixelRatio||1,D=!0,O=Boolean(null===(f=navigator.storage)||void 0===f?void 0:f.getDirectory);O&&(async()=>{try{const e=await navigator.storage.getDirectory();await e.removeEntry("downloads",{recursive:!0})}catch{}})();const x=!o.Cg&&(CSS.supports("backdrop-filter: blur()")||CSS.supports("-webkit-backdrop-filter: blur()")),_=!I,$=!p&&!g&&!v,U="onbeforeinstallprompt"in window,j=$?300:750,V=1048576*(v||g?512:2e3),W=!0},71394:(e,t,n)=>{n.d(t,{A9:()=>d,YJ:()=>a,ao:()=>f,gm:()=>l,hl:()=>s,jj:()=>u,pt:()=>i,ud:()=>c});var o=n(69118);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){const t=e.split(","),n=t[0].match(/:(.*?);/)[1],o=atob(t[1]);let r=o.length;const d=new Uint8Array(r);for(;r--;)d[r]=o.charCodeAt(r);return new Blob([d],{type:n})}function a(e){return new Promise(((t,n)=>{const o=new FileReader;o.onload=e=>{const{result:o}=e.target||{};"string"==typeof o&&t(o),n(new Error("Failed to read blob"))},o.onerror=n,o.readAsDataURL(e)}))}function s(e,t){return new File([e],t,{lastModified:Date.now(),type:e.type})}function i(e){return new Promise(((t,n)=>{const o=new Image;o.onload=()=>t(o),o.onerror=n,o.src=e}))}function u(e){return new Promise(((t,n)=>{const o=document.createElement("video");o.volume=0,o.onloadedmetadata=()=>t(o),o.onerror=n,o.src=e}))}async function c(e){const t=await u(e);return Promise.race([(0,o.wO)(2e3),new Promise(((e,n)=>{t.onseeked=()=>{t.videoWidth&&t.videoHeight||e(void 0);const n=document.createElement("canvas");n.width=t.videoWidth,n.height=t.videoHeight,n.getContext("2d").drawImage(t,0,0),e(n.toDataURL("image/jpeg"))},t.onerror=n,t.currentTime=Math.min(t.duration,1)}))])}async function l(e){return(await fetch(e)).blob()}function f(e){const t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0),t}"undefined"==typeof File&&(self.File=class extends Blob{constructor(e,t,n){if(n){const{type:t,...o}=n;super(e,{type:t}),r(this,"name",void 0),Object.assign(this,o)}else super(e),r(this,"name",void 0);this.name=t}})},16974:(e,t,n)=>{n.d(t,{M2:()=>k,O6:()=>A,S1:()=>b,Yz:()=>C,aE:()=>w,gO:()=>I,jK:()=>P,r_:()=>M,wC:()=>S,xW:()=>E});var o=n(65116),r=n(33555),d=n(83716),a=n(11192),s=n(83158),i=n(69118),u=n(60782),c=n(275),l=n(16063);const f=Z();let h=f.prevGlobal,m=f.prepared,p=f.results,g=f.callbacks;const v=(0,i.P2)((()=>{(0,i.Q8)((()=>{N((0,r.Rd)())}))}),500);let y=!1;function b(){y=!0,(0,o.ll)(v),(0,r.iw)("reset",B),N((0,r.Rd)())}function I(e){return y||b(),p.orderedIdsByFolderId[e]}function w(e){return y||b(),p.pinnedCountByFolderId[e]||0}function C(){return y||b(),p.chatsCountByFolderId}function S(){return y||b(),p.unreadCountersByFolderId}function E(){var e;return(null===(e=S()[d.Nf])||void 0===e?void 0:e.notificationsCount)||0}function P(e){return m.chatSummariesById.get(e).order}function k(e,t){return g.orderedIdsByFolderId[e]||(g.orderedIdsByFolderId[e]=(0,l._)()),g.orderedIdsByFolderId[e].addCallback(t)}function M(e){return g.chatsCountByFolderId.addCallback(e)}function A(e){return g.unreadCountersByFolderId.addCallback(e)}function N(e){let t;d.eM&&(t=performance.now());const n=Boolean(e.chats.listIds.active&&T(d.Nf,e.chats.listIds.active,e.chats.orderedPinnedIds.active)),o=Boolean(e.chats.listIds.archived&&T(d.WS,e.chats.listIds.archived,e.chats.orderedPinnedIds.archived)),r=e.chats.isFullyLoaded.active!==h.isAllFolderFullyLoaded,i=e.chats.isFullyLoaded.archived!==h.isArchivedFolderFullyLoaded,l=e.chatFolders.byId!==h.foldersById,f=e.chats.byId!==h.chatsById,g=e.users.byId!==h.usersById,v=(0,a.dZ)(e)!==h.notifySettings,y=(0,a.NJ)(e)!==h.notifyExceptions;let b=[];if((r||i)&&(b=b.concat(function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];t&&n.push(d.WS);const o=e.chats.isFullyLoaded.active,r=e.chats.isFullyLoaded.archived;if(o&&r){const e=Object.keys(m.folderSummariesById).filter((e=>!p.orderedIdsByFolderId[e])).map(Number);n=n.concat(e)}return h.isAllFolderFullyLoaded=o,h.isArchivedFolderFullyLoaded=r,n}(e,i))),!(n||o||l||f||g||v||y))return void(b.length&&R(b));const I=h.allFolderListIds,w=h.archivedFolderListIds;if(function(e,t,n,o){const r=[];if(t){const t=e.chats.listIds.active,n=e.chats.orderedPinnedIds.active;m.folderSummariesById[d.Nf]=L(d.Nf,t,n),h.allFolderListIds=t,h.allFolderPinnedIds=n,r.push(d.Nf)}if(n){const t=e.chats.listIds.archived,n=e.chats.orderedPinnedIds.archived;m.folderSummariesById[d.WS]=L(d.WS,t,n),h.archivedFolderListIds=t,h.archivedFolderPinnedIds=n,r.push(d.WS)}if(o){const t=e.chatFolders.byId;Object.values(t).forEach((e=>{e!==h.foldersById[e.id]&&(m.folderSummariesById[e.id]=function(e){return{...e,orderedPinnedIds:e.pinnedChatIds,excludedChatIds:e.excludedChatIds?new Set(e.excludedChatIds):void 0,includedChatIds:e.excludedChatIds?new Set(e.includedChatIds):void 0,pinnedChatIds:e.excludedChatIds?new Set(e.pinnedChatIds):void 0}}(e),r.push(e.id))})),h.foldersById=t}}(e,n,o,l),b=b.concat(function(e,t,n,o,r,i){const l=e.chats.byId,f=e.users.byId,g=(0,a.dZ)(e),v=(0,a.NJ)(e),y=Object.values(m.folderSummariesById),b=new Set,I=e.chats.listIds.active,w=e.chats.listIds.archived;let C=[...I||[],...w||[]];return I===r&&w===i||(C=(0,u.Tw)(C.concat(r||[],i||[]))),C.forEach((e=>{const r=l[e];if(!t&&!n&&!o&&r===h.chatsById[e]&&f[e]===h.usersById[e])return;let a;if(r){const n=m.chatSummariesById.get(e),o=function(e,t,n,o){var r;const{id:a,type:i,lastMessage:u,isRestricted:c,isNotJoined:l,migratedTo:f,folderId:h,unreadCount:m,unreadMentionsCount:p,hasUnreadMark:g,joinDate:v,draftDate:y}=e,b="chatTypePrivate"===i&&o,I=e.id===d.aw&&(!e.lastMessage||"historyClear"===(null===(r=e.lastMessage.content.action)||void 0===r?void 0:r.type));return{id:a,type:i,isListed:Boolean(!(c||l||f||I)),isArchived:h===d.WS,isMuted:(0,s.i4)(e,t,n),isUnread:Boolean(m||p||g),unreadCount:m,unreadMentionsCount:p,order:Math.max(v||0,y||0,(null==u?void 0:u.date)||0),isUserBot:b?"userTypeBot"===b.type:void 0,isUserContact:b?b.isContact:void 0}}(r,g,v,f[e]);if(!t&&n&&(0,c.Z)(o,n))return;m.chatSummariesById.set(e,o),a=function(e,t){return t.reduce(((t,n)=>(function(e,t){var n,o,r;if(!e.isListed)return!1;const{id:a,type:s}=e;if(t.listIds)return!(e.isArchived&&t.id===d.Nf||!e.isArchived&&t.id===d.WS)&&t.listIds.has(a);if(null!==(n=t.excludedChatIds)&&void 0!==n&&n.has(a))return!1;if(null!==(o=t.includedChatIds)&&void 0!==o&&o.has(a))return!0;if(null!==(r=t.pinnedChatIds)&&void 0!==r&&r.has(a))return!0;if(t.excludeArchived&&e.isArchived)return!1;if(t.excludeRead&&!e.isUnread)return!1;if(t.excludeMuted&&e.isMuted&&!e.unreadMentionsCount)return!1;if("chatTypePrivate"===s)if(e.isUserBot){if(t.bots)return!0}else{if(t.contacts&&e.isUserContact)return!0;if(t.nonContacts&&!e.isUserContact)return!0}else{if("chatTypeChannel"===s)return Boolean(t.channels);if("chatTypeBasicGroup"===s||"chatTypeSuperGroup"===s)return Boolean(t.groups)}return!1}(e,n)&&t.push(n.id),t)),[]).sort()}(o,y),a.forEach((e=>{b.add(e)}))}else m.chatSummariesById.delete(e),a=[];const i=m.folderIdsByChatId[e]||[];if((0,u.et)(a,i))return;const I=function(e,t,n){const o=new Set(t),r=new Set(n),d=[];return(0,u.Tw)([...t,...n]).forEach((t=>{let n=p.orderedIdsByFolderId[t];o.has(t)&&!r.has(t)?(m.chatIdsByFolderId[t].delete(e),d.push(t),n&&(n=n.filter((t=>t!==e)),m.isOrderedListJustPatched[t]=!0)):!o.has(t)&&r.has(t)&&(m.chatIdsByFolderId[t]||(m.chatIdsByFolderId[t]=new Set),m.chatIdsByFolderId[t].add(e),n&&(n.push(e),m.isOrderedListJustPatched[t]=!0)),p.orderedIdsByFolderId[t]=n})),m.folderIdsByChatId[e]=n,d}(e,i,a);I.forEach((e=>{b.add(e)}))})),h.chatsById=l,h.usersById=f,h.notifySettings=g,h.notifyExceptions=v,Array.from(b)}(e,l||n||o,v,y,I,w)),R((0,u.Tw)(b)),d.eM){const e=performance.now()-t;e>6&&console.warn(`Slow \`updateFolderManager\`: ${Math.round(e)} ms`)}}function T(e,t,n){const o=e===d.Nf?h.allFolderListIds:h.archivedFolderListIds,r=e===d.Nf?h.allFolderPinnedIds:h.archivedFolderPinnedIds;return o!==t||r!==n}function L(e,t,n){return{id:e,listIds:new Set(t),orderedPinnedIds:n,pinnedChatIds:new Set(n)}}function R(e){let t=!1,n=!1;if(Array.from(e).forEach((e=>{const{pinnedCount:o,orderedIds:r}=function(e){const t=m.folderSummariesById[e];if(!t)return{};const{orderedPinnedIds:n,pinnedChatIds:o}=t,{chatSummariesById:r,chatIdsByFolderId:{[e]:d}}=m,{orderedIdsByFolderId:{[e]:a}}=p,s=d?null==n?void 0:n.filter((e=>d.has(e))):n,i=a||d&&Array.from(d)||[],u=(o?i.filter((e=>!o.has(e))):i).sort(((e,t)=>r.get(t).order-r.get(e).order));return{pinnedCount:(null==s?void 0:s.length)||0,orderedIds:[...s||[],...u]}}(e);if(!r)return;const d=p.orderedIdsByFolderId[e],a=p.pinnedCountByFolderId[e];var s;d&&void 0!==a&&a===o&&!m.isOrderedListJustPatched[e]&&(0,u.et)(r,d)||(m.isOrderedListJustPatched[e]=!1,p.orderedIdsByFolderId[e]=r,p.pinnedCountByFolderId[e]=o,null===(s=g.orderedIdsByFolderId[e])||void 0===s||s.runCallbacks(r));const i=p.chatsCountByFolderId[e],l=r.length;n||(n=i!==l),p.chatsCountByFolderId[e]=l;const f=p.unreadCountersByFolderId[e],h=function(e){const{chatSummariesById:t}=m,{orderedIdsByFolderId:{[e]:n}}=p;return n.reduce(((e,n)=>{const o=t.get(n);return o?(o.isUnread&&(e.chatsCount++,o.unreadMentionsCount&&(e.notificationsCount+=o.unreadMentionsCount),o.isMuted||(o.unreadCount?e.notificationsCount+=o.unreadCount:o.unreadMentionsCount||(e.notificationsCount+=1))),e):e}),{chatsCount:0,notificationsCount:0})}(e);t||(t=!f||!(0,c.Z)(h,f)),p.unreadCountersByFolderId[e]=h})),n){const e={...p.chatsCountByFolderId};p.chatsCountByFolderId=e,g.chatsCountByFolderId.runCallbacks(e)}if(t){const e={...p.unreadCountersByFolderId};p.unreadCountersByFolderId=e,g.unreadCountersByFolderId.runCallbacks(e)}}function Z(){return{prevGlobal:{foldersById:{},chatsById:{},usersById:{},notifySettings:{},notifyExceptions:{}},prepared:{folderSummariesById:{},chatSummariesById:new Map,folderIdsByChatId:{},chatIdsByFolderId:{},isOrderedListJustPatched:{}},results:{orderedIdsByFolderId:{},pinnedCountByFolderId:{},chatsCountByFolderId:{},unreadCountersByFolderId:{}},callbacks:{orderedIdsByFolderId:{},chatsCountByFolderId:(0,l._)(),unreadCountersByFolderId:(0,l._)()}}}function B(){const e=Z();h=e.prevGlobal,m=e.prepared,p=e.results,g=e.callbacks}},82972:(e,t,n)=>{function o(e){e.offsetWidth}n.d(t,{Z:()=>o})},9937:(e,t,n)=>{function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en";return new Intl.NumberFormat(n,{style:"currency",currency:t}).format(e/10**r(t))}function r(e){return"CLF"===e?4:["BHD","IQD","JOD","KWD","LYD","OMR","TND"].includes(e)?3:["BIF","BYR","CLP","CVE","DJF","GNF","ISK","JPY","KMF","KRW","MGA","PYG","RWF","UGX","UYI","VND","VUV","XAF","XOF","XPF"].includes(e)?0:"MRO"===e?1:2}n.d(t,{x:()=>o})},26926:(e,t,n)=>{n.d(t,{Z:()=>o});const o=e=>{let t;do{t=String(Math.random()).replace("0.","id")}while(e.hasOwnProperty(t));return t}},91947:(e,t,n)=>{n.d(t,{J_:()=>i,ZP:()=>s,pF:()=>u});var o=n(83716);const r={CHAT_RESTRICTED:"You can't send messages in this chat, you were restricted",CHAT_SEND_POLL_FORBIDDEN:"You can't create polls in this chat",CHAT_SEND_STICKERS_FORBIDDEN:"You can't send stickers in this chat",CHAT_SEND_GIFS_FORBIDDEN:"You can't send gifs in this chat",CHAT_SEND_MEDIA_FORBIDDEN:"You can't send media in this chat",CHAT_LINK_EXISTS:"The chat is public, you can't hide the history to new users",SLOWMODE_WAIT_X:"Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.",USER_BANNED_IN_CHANNEL:"You're banned from sending messages in supergroups / channels",USER_IS_BLOCKED:"You were blocked by this user",YOU_BLOCKED_USER:"You blocked this user",IMAGE_PROCESS_FAILED:"Failure while processing image",MEDIA_EMPTY:"The provided media object is invalid",MEDIA_INVALID:"Media invalid",PHOTO_EXT_INVALID:"The extension of the photo is invalid",PHOTO_INVALID_DIMENSIONS:"The photo dimensions are invalid",PHOTO_SAVE_FILE_INVALID:"Internal issues, try again later",MESSAGE_DELETE_FORBIDDEN:"You can't delete one of the messages you tried to delete, most likely because it is a service message.",MESSAGE_POLL_CLOSED:"Poll closed",MESSAGE_EDIT_TIME_EXPIRED:"You can't edit this message anymore.",PINNED_DIALOGS_TOO_MUCH:"Sorry, you can only pin 5 chats to the top",CHANNEL_PRIVATE:"This channel is private",MEDIA_CAPTION_TOO_LONG:"The provided caption is too long",ADDRESS_STREET_LINE1_INVALID:"The address you provided is not valid",ADDRESS_STREET_LINE2_INVALID:"The address you provided is not valid",ADDRESS_CITY_INVALID:"The city you provided is not valid",ADDRESS_COUNTRY_INVALID:"The country you provided is not valid",ADDRESS_POSTCODE_INVALID:"The postcode you provided is not valid",ADDRESS_STATE_INVALID:"The state you provided is not valid",REQ_INFO_NAME_INVALID:"The name you provided is not valid",REQ_INFO_PHONE_INVALID:"The phone you provided is not valid",REQ_INFO_EMAIL_INVALID:"The email you provided is not valid",LINK_NOT_MODIFIED:"This discussion is already linked to the channel",MESSAGE_TOO_LONG:"Message is too long",SERVICE_WORKER_DISABLED:"Service Worker is disabled. Streaming media may not be supported. Try reloading the page without holding key",MESSAGE_TOO_LONG_PLEASE_REMOVE_CHARACTERS:"The provided message is too long. Please remove {EXTRA_CHARS_COUNT} character{PLURAL_S}.",FRESH_RESET_AUTHORISATION_FORBIDDEN:"You can’t logout other sessions if less than 24 hours have passed since you logged on the current session",BOTS_TOO_MUCH:"There are too many bots in this chat/channel",BOT_GROUPS_BLOCKED:"This bot can't be added to groups",USERS_TOO_MUCH:"The maximum number of users has been exceeded",USER_CHANNELS_TOO_MUCH:"One of the users you tried to add is already in too many channels/supergroups",USER_KICKED:"This user was kicked from this supergroup/channel",USER_NOT_MUTUAL_CONTACT:"The provided user is not a mutual contact",USER_PRIVACY_RESTRICTED:"The user's privacy settings do not allow you to do this",INVITE_HASH_EMPTY:"The invite hash is empty",INVITE_HASH_EXPIRED:"The invite link has expired",INVITE_HASH_INVALID:"The invite hash is invalid",CHANNELS_TOO_MUCH:"You have joined too many channels/supergroups",USER_ALREADY_PARTICIPANT:"You already in the group",SCHEDULE_DATE_INVALID:"Invalid schedule date provided",WALLPAPER_DIMENSIONS_INVALID:"The wallpaper dimensions are invalid, please select another file",ADMINS_TOO_MUCH:"There are too many admins",ADMIN_RANK_EMOJI_NOT_ALLOWED:"An admin rank cannot contain emojis",ADMIN_RANK_INVALID:"The specified admin rank is invalid",FRESH_CHANGE_ADMINS_FORBIDDEN:"You were just elected admin, you can't add or modify other admins yet",INPUT_USER_DEACTIVATED:"The specified user was deleted",BOT_PRECHECKOUT_TIMEOUT:"The request for payment has expired"};o.eM&&(r.CHAT_WRITE_FORBIDDEN="You can't write in this chat",r.CHAT_ADMIN_REQUIRED="You must be an admin in this chat to do this");const d={ADDRESS_STREET_LINE1_INVALID:{field:"streetLine1",message:"Incorrect street address"},ADDRESS_STREET_LINE2_INVALID:{field:"streetLine2",message:"Incorrect street address"},ADDRESS_CITY_INVALID:{field:"city",message:"Incorrect city"},ADDRESS_COUNTRY_INVALID:{field:"countryIso2",message:"Incorrect country"},ADDRESS_POSTCODE_INVALID:{field:"postCode",message:"Incorrect post code"},ADDRESS_STATE_INVALID:{field:"state",message:"Incorrect state"},REQ_INFO_NAME_INVALID:{field:"fullName",message:"Incorrect name"},REQ_INFO_PHONE_INVALID:{field:"phone",message:"Incorrect phone"},REQ_INFO_EMAIL_INVALID:{field:"email",message:"Incorrect email"}},a=new Set(["BOT_PRECHECKOUT_FAILED","PAYMENT_FAILED"]);function s(e){const{message:t,isSlowMode:n,textParams:o}=e;if(n){const e=t.indexOf(" (caused by");return e>0?t.substring(0,e):t}let d=r[t];return d&&o&&(d=Object.keys(o).reduce(((e,t)=>e.replace(t,o[t])),d)),d}function i(e){return d[e.message]}function u(e){return a.has(e.message)}},33592:(e,t,n)=>{n.d(t,{S:()=>d}),n(83716);var o=n(69118);function r(e){e instanceof ErrorEvent&&"ResizeObserver loop limit exceeded"===e.message||(e.preventDefault(),d(e instanceof ErrorEvent?e.error||e.message:e.reason))}function d(e){console.error(e)}window.addEventListener("error",r),window.addEventListener("unhandledrejection",r),(0,o.P2)(window.alert,1e3)},36046:(e,t,n)=>{n.d(t,{G:()=>a,e:()=>d});var o=n(33555);let r;function d(){window.addEventListener("beforeinstallprompt",(e=>{r=async()=>{e.prompt(),"accepted"===(await e.userChoice).outcome&&(0,o.Sv)().setInstallPrompt({canInstall:!1})},(0,o.Sv)().setInstallPrompt({canInstall:!0})}))}function a(){return r}},60782:(e,t,n)=>{function o(e,t){return e.reduce(((e,n)=>(e[n[t]]=n,e)),{})}function r(e,t){return Object.keys(e).reduce(((n,o,r)=>(n[o]=t(e[o],o,r,e),n)),{})}function d(e,t){return t.reduce(((t,n)=>(t[n]=e[n],t)),{})}function a(e,t){return t.reduce(((t,n)=>(e[n]&&(t[n]=e[n]),t)),{})}function s(e,t){const n=new Set(t.map(String));return d(e,Object.keys(e).filter((e=>!n.has(e))))}function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"asc";function o(e,t,n,o){const r=("function"==typeof n?n(e):e[n])||0,d=("function"==typeof n?n(t):t[n])||0;return o?r-d:d-r}if(Array.isArray(t)){const[r,d]=Array.isArray(n)?n:[n,n],[a,s]=t,i="asc"===r,u="asc"===d;return e.sort(((e,t)=>o(e,t,a,i)||o(e,t,s,u)))}const r="asc"===n;return e.sort(((e,n)=>o(e,n,t,r)))}function u(e){return Array.from(new Set(e))}function c(e,t){return[...new Map(e.map((e=>[e[t],e]))).values()]}function l(e){return e.filter(Boolean)}function f(e,t){return e.length===t.length&&e.every(((e,n)=>e===t[n]))}function h(e,t){return e[0]<=t[t.length-1]&&e[e.length-1]>=t[0]}function m(e,t){return e.filter((e=>t.has(e)))}function p(e,t){const n=[];for(let o=0;o(t[n]=g(e[n]),t)),{})}function v(e,t){let n=e.length;for(;n--;)if(t(e[n],n,e))return e[n]}n.d(t,{CE:()=>s,Q8:()=>r,Tw:()=>u,Vl:()=>p,Xh:()=>g,Xo:()=>i,YE:()=>h,dF:()=>v,eL:()=>m,ee:()=>o,ei:()=>d,et:()=>f,oA:()=>l,od:()=>c,q0:()=>a})},50711:(e,t,n)=>{n.d(t,{Pn:()=>w,i0:()=>I,ll:()=>p,m0:()=>C,qf:()=>S});var o=n(33555),r=n(83716),d=n(49524),a=n(71226),s=n(16063),i=n(2155);const u=/%\d?\$?[sdf@]/g,c=["value","zeroValue","oneValue","twoValue","fewValue","manyValue","otherValue"],l={en:e=>1!==e?6:2,ar:e=>0===e?1:1===e?2:2===e?3:e%100>=3&&e%100<=10?4:e%100>=11?5:6,be:e=>{const t=String(e).split("."),n=Number(t[0])===e,o=n&&Number(t[0].slice(-1)),r=n&&Number(t[0].slice(-2));return 1===o&&11!==r?2:o>=2&&o<=4&&(r<12||r>14)?4:n&&0===o||o>=5&&o<=9||r>=11&&r<=14?5:6},ca:e=>1!==e?6:2,cs:e=>{const t=String(e).split("."),n=Number(t[0]),o=!t[1];return 1===e&&o?2:n>=2&&n<=4&&o?4:o?6:5},de:e=>1!==e?6:2,es:e=>1!==e?6:2,fa:e=>e>1?6:2,fi:e=>1!==e?6:2,fr:e=>e>1?6:2,id:()=>0,it:e=>1!==e?6:2,hr:e=>{const t=String(e).split("."),n=t[0],o=t[1]||"",r=!t[1],d=Number(n.slice(-1)),a=Number(n.slice(-2)),s=Number(o.slice(-1)),i=Number(o.slice(-2));return r&&1===d&&11!==a||1===s&&11!==i?2:r&&d>=2&&d<=4&&(a<12||a>14)||s>=2&&s<=4&&(i<12||i>14)?4:6},hu:e=>e>1?6:2,ko:()=>0,ms:()=>0,nb:e=>e>1?6:2,nl:e=>1!==e?6:2,pl:e=>1===e?2:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?4:5,"pt-br":e=>e>1?6:2,ru:e=>e%10==1&&e%100!=11?2:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?4:5,sk:e=>{const t=String(e).split("."),n=Number(t[0]),o=!t[1];return 1===e&&o?2:n>=2&&n<=4&&o?4:o?6:5},sr:e=>{const t=String(e).split("."),n=t[0],o=t[1]||"",r=!t[1],d=Number(n.slice(-1)),a=Number(n.slice(-2)),s=Number(o.slice(-1)),i=Number(o.slice(-2));return r&&1===d&&11!==a||1===s&&11!==i?2:r&&d>=2&&d<=4&&(a<12||a>14)||s>=2&&s<=4&&(i<12||i>14)?4:6},tr:e=>e>1?6:2,uk:e=>e%10==1&&e%100!=11?2:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?4:5,uz:e=>e>1?6:2},f=new Map;let h,m;const{addCallback:p,removeCallback:g,runCallbacks:v}=(0,s._)();let y,b;const I=(e,t,n)=>{var o,r;if(void 0!==t){const o=Array.isArray(t)?JSON.stringify(t):t,r=f.get(`${e}_${o}_${n}`);if(r)return r}if(!h&&!m)return e;const d=(null===(o=h)||void 0===o?void 0:o[e])||(null===(r=m)||void 0===r?void 0:r[e]);return d?k(d,e,t,n):(m||E(),e)};async function w(e,t){let n=await d.fetch(r.ee,`${r.$O}_${e}_${t}`,d.Type.Json);return n||(n=await async function(e,t,n){const o=await(0,a.t9)("fetchLangStrings",{langPack:e,langCode:t,keys:[n]});if(null!=o&&o.length)return await d.save(r.ee,`${e}_${t}_${n}`,o[0]),o[0]}(r.$O,e,t)),k(n,t)}async function C(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(h&&e===y)return void(t&&t());let a=await d.fetch(r.ee,e,d.Type.Json);if(!a&&(n&&await E(),a=await P(e),!a))return;f.clear(),y=e,h=a,document.documentElement.lang=e;const{languages:s,timeFormat:i}=(0,o.Rd)().settings.byKey,u=null==s?void 0:s.find((t=>t.langCode===e));I.isRtl=Boolean(null==u?void 0:u.rtl),I.code=e,I.langName=null==u?void 0:u.nativeName,I.timeFormat=i,t&&t(),v()}function S(e){e&&e===b||(b=e,I.timeFormat=e,v())}async function E(){m||(m=(await n.e(1915).then(n.bind(n,31915))).default,v())}async function P(e){const t=await(0,a.t9)("fetchLangPack",{sourceLangPacks:r.Bg,langCode:e});if(t)return await d.save(r.ee,e,t.langPack),t.langPack}function k(e,t,n,o){const d="number"==typeof n?function(e){const t=y||r.sR,n=l[t]?l[t](e):0;return c[n]}(n):"value",a=e?e[d]||e.otherValue||e.value:void 0;if(!a||!a.trim()){const e=t.split(".");return e[e.length-1]}if(void 0!==n){const e=function(e,t){t=Array.isArray(t)?t:[t];const n=e.split(u),o=n.shift();return n.reduce(((e,n,o)=>{var r;return`${e}${String(null!==(r=t[o])&&void 0!==r?r:"")}${n}`}),o||"")}(a,"i"===o?(0,i.kh)(n):n),r=Array.isArray(n)?JSON.stringify(n):n;return f.set(`${t}_${r}_${o}`,e),e}return a}},28712:(e,t,n)=>{n.d(t,{Kh:()=>r,NM:()=>d,t7:()=>a,uZ:()=>o});const o=(e,t,n)=>Math.min(n,Math.max(t,e)),r=(e,t,n)=>e>=t&&e<=n,d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.round(e*10**t)/10**t},a=(e,t,n)=>(1-n)*e+n*t},40647:(e,t,n)=>{n.d(t,{cC:()=>b,he:()=>v,UV:()=>y,Iq:()=>I});var o=n(6137),r=n(83716),d=n(71226),a=n(49524),s=n(71394),i=n(77361);const u=48e3;async function c(e){const t=await new Response(e).arrayBuffer();return new Promise((e=>{const o=new Uint8Array(t);let r=new Worker(new URL(n.p+n.u(5745),n.b)),d=new Worker(new URL(n.p+n.u(5993),n.b));r.onmessage=e=>{null===e.data?d.postMessage({command:"done"}):d.postMessage({command:"encode",buffers:e.data},e.data.map((e=>{let{buffer:t}=e;return t})))},d.onmessage=t=>{"page"===t.data.message&&(e(new Blob([t.data.page],{type:"audio/wav"})),r.terminate(),r=void 0,d.terminate(),d=void 0)},d.postMessage({command:"init",wavBitDepth:16,wavSampleRate:u}),r.postMessage({command:"init",decoderSampleRate:u,outputBufferSampleRate:u}),r.postMessage({command:"decode",pages:o},[o.buffer])}))}var l=n(10862);const f={[o.IU.BlobUrl]:a.Type.Blob,[o.IU.Text]:a.Type.Text,[o.IU.DownloadUrl]:void 0,[o.IU.Progressive]:void 0,[o.IU.Stream]:void 0},h=new Map,m=new Map,p=new Map,g=new Map;function v(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],d=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;if(t===o.IU.Progressive)return i.I_?w(e):v(e,o.IU.BlobUrl,n,d,a);if(t===o.IU.DownloadUrl)return i.I_?C(e):v(e,o.IU.BlobUrl,n,d,a);if(!m.has(e)){const o=S(e,t,n).catch((e=>{r.eM&&console.warn(e)})).finally((()=>{m.delete(e),p.delete(e),g.delete(e)}));m.set(e,o)}if(d&&a){let t=p.get(e);t||(t=new Map,p.set(e,t)),t.set(a,d)}return m.get(e)}function y(e){return h.get(e)}function b(e){p.forEach(((t,n)=>{t.forEach((t=>{if(t===e){const e=g.get(n);if(!e)return;(0,d.u3)(e),g.delete(n),p.delete(n)}}))}))}function I(e,t){const n=p.get(e);n&&n.delete(t)}function w(e){const t=`./progressive/${e}`;return h.set(e,t),Promise.resolve(t)}function C(e){return Promise.resolve(`./download/${e}`)}async function S(e,t,n){if(!r.Cy){const o=e.startsWith("avatar")?r.SG:r.lW,d=await a.fetch(o,e,f[t],n);if(d){let t=d;if("audio/ogg"!==d.type||i.m5||(t=await c(t)),"image/webp"===d.type&&!(0,i.on)()&&t){const n=await(0,l._y)(e,t);n&&(t=n)}const n=P(t);return h.set(e,n),n}}if(t===o.IU.Stream){const n=new MediaSource,o=URL.createObjectURL(n);let r=!1;return n.addEventListener("sourceopen",(()=>{if(r)return;r=!0;const o=n.addSourceBuffer("audio/mpeg"),a=E(e,n,o);g.set(e,a),(0,d.t9)("downloadMedia",{url:e,mediaFormat:t},a)})),h.set(e,o),o}const u=E(e);g.set(e,u);const m=await(0,d.t9)("downloadMedia",{url:e,mediaFormat:t,isHtmlAllowed:n},u);if(!m)throw new Error(`Failed to fetch media ${e}`);let{prepared:p,mimeType:v}=m;if("audio/ogg"===v&&!i.m5){const e=await(0,s.gm)(p);URL.revokeObjectURL(p);const t=await c(e);p=P(t),v=t.type}if("image/webp"===v&&!(0,i.on)()){const t=await(0,s.gm)(p);URL.revokeObjectURL(p);const n=await(0,l._y)(e,t);n&&(p=P(n))}return h.set(e,p),p}function E(e,t,n){const o=(r,d)=>{var a;null===(a=p.get(e))||void 0===a||a.forEach((e=>{e(r),e.isCanceled&&(o.isCanceled=!0)})),1===r&&(null==t||t.endOfStream()),d&&(null==n||n.appendBuffer(d))};return o}function P(e){return e instanceof Blob?URL.createObjectURL(e):e}i.I_&&navigator.serviceWorker.addEventListener("message",(async e=>{const{type:t,messageId:n,params:r}=e.data;if("requestPart"!==t)return;const a=await(0,d.t9)("downloadMedia",{mediaFormat:o.IU.Progressive,...r});if(!a)return;const{arrayBuffer:s,mimeType:i,fullSize:u}=a;navigator.serviceWorker.controller.postMessage({type:"partResponse",messageId:n,result:{arrayBuffer:s,mimeType:i,fullSize:u}},[s])}))},70735:(e,t,n)=>{n.d(t,{D:()=>o});const o=[]},99203:(e,t,n)=>{n.d(t,{$y:()=>c,Qt:()=>f,gl:()=>d,o5:()=>l});var o=n(83716),r=n(16063);let d;!function(e){e[e.Auth=0]="Auth",e[e.Main=1]="Main",e[e.Extra=2]="Extra",e[e.Calls=3]="Calls"}(d||(d={}));const a={},s={},{addCallback:i,runCallbacks:u}=(0,r._)();async function c(e,t){if(!a[e]){switch(e){case d.Auth:a[d.Auth]=n.e(3041).then(n.bind(n,51133));break;case d.Main:o.eM&&console.log(">>> START LOAD MAIN BUNDLE"),a[d.Main]=Promise.all([n.e(2305),n.e(8688),n.e(8422),n.e(5769)]).then(n.bind(n,68184));break;case d.Extra:a[d.Extra]=Promise.all([n.e(2305),n.e(8688),n.e(3779)]).then(n.bind(n,68356));break;case d.Calls:a[d.Calls]=Promise.all([n.e(2305),n.e(8422),n.e(9954)]).then(n.bind(n,47903))}a[e].then(u)}const r=await a[e];return s[e]||(s[e]=r),l(e,t)}function l(e,t){const n=s[e];if(n)return n[t]}const f=i},28406:(e,t,n)=>{n.d(t,{KC:()=>L,Ld:()=>k,Nz:()=>I,TO:()=>A,Vr:()=>T,q3:()=>b,r1:()=>S,rh:()=>N});var o=n(71226),r=n(6137),d=n(18005),a=n(83716),s=n(33555),i=n(83158),u=n(5161),c=n(11192),l=n(77361),f=n(50711),h=n(40647),m=n(69118);function p(e){const t=e.toJSON();return JSON.stringify({endpoint:t.endpoint,keys:t.keys})}function g(){return!!l.Mc&&("showNotification"in ServiceWorkerRegistration.prototype?"denied"===Notification.permission?(a.eM&&console.warn("[PUSH] The user has blocked push notifications."),!1):"PushManager"in window||(a.eM&&console.warn("[PUSH] Push messaging isn't supported."),!1):(a.eM&&console.warn("[PUSH] Push notifications aren't supported."),!1))}function v(){return"Notification"in window?"denied"!==Notification.permission||(a.eM&&console.warn("[PUSH] The user has blocked push notifications."),!1):(a.eM&&console.warn("[PUSH] This browser does not support desktop notification"),!1)}const y=new Set;async function b(e,t){if(void 0!==e&&y.has(e))return;const{notificationSoundVolume:n}=(0,c.dZ)((0,s.Rd)()),o=t?t/10:n/10;if(0===o)return;const r=new Audio("./notification.mp3");r.volume=o,r.setAttribute("mozaudiochannel","notification"),void 0!==e&&(r.addEventListener("ended",(()=>{y.add(e)}),{once:!0}),setTimeout((()=>{y.delete(e)}),3e3));try{await r.play()}catch(e){a.eM&&console.warn("[PUSH] Unable to play notification sound")}}const I=(0,m.Ds)(b,1e3,!0,!1);async function w(){"Notification"in window&&(["granted","denied"].includes(Notification.permission)||await Notification.requestPermission())}async function C(e){const t=(0,s.Rd)(),n=(0,s.Sv)();if(e)try{const t=p(e);return await(0,o.t9)("unregisterDevice",t),await e.unsubscribe(),void n.deleteDeviceToken()}catch(e){a.eM&&console.log("[PUSH] Unable to unsubscribe from push.",e)}t.push&&(await(0,o.t9)("unregisterDevice",t.push.deviceToken),n.deleteDeviceToken())}async function S(){if(!g())return;const e=await navigator.serviceWorker.ready,t=await e.pushManager.getSubscription();await C(t)}let E=!1;async function P(){if(E)return(0,c.dZ)((0,s.Rd)());const[e,t]=await Promise.all([(0,o.t9)("fetchNotificationSettings",{serverTimeOffset:(0,s.Rd)().serverTimeOffset}),(0,o.t9)("fetchNotificationExceptions",{serverTimeOffset:(0,s.Rd)().serverTimeOffset})]);if(!e)return(0,c.dZ)((0,s.Rd)());let n=(0,u.BI)((0,s.Rd)(),e);return t&&(n=(0,u.aJ)(n,t)),(0,s.R3)(n),E=!0,(0,c.dZ)(n)}async function k(){if(!g())return void await w();const e=await navigator.serviceWorker.ready;let t=await e.pushManager.getSubscription();if(function(e){const t=(0,s.Rd)();return!t.push||!e||p(e)!==t.push.deviceToken||Date.now()-t.push.subscribedAt>432e5}(t)){await C(t);try{t=await e.pushManager.subscribe({userVisibleOnly:!0});const n=p(t);a.eM&&console.log("[PUSH] Received push subscription: ",n),await(0,o.t9)("registerDevice",n),(0,s.Sv)().setDeviceToken(n)}catch(e){"denied"===Notification.permission?a.eM&&console.warn("[PUSH] The user has blocked push notifications."):a.eM&&(console.log("[PUSH] Unable to subscribe to push.",e),e.code===DOMException.ABORT_ERR&&await w())}}}async function M(e){const t=(0,i.RT)(e);if(!t)return;let n=h.UV(t);return n||(await h.he(t,r.IU.BlobUrl),n=h.UV(t)),n}async function A(e){let{call:t,user:n}=e;const{hasWebNotifications:o}=await P();if(document.hasFocus()||!o)return;if(!v())return;const r=await M(n),d={body:(0,i.Js)(n),icon:r,badge:r,tag:`call_${t.id}`};"vibrate"in navigator&&(d.vibrate=[200,100,200]);const a=new Notification((0,f.i0)("VoipIncoming"),d);a.onclick=()=>{a.close(),window.focus&&window.focus()}}async function N(e){let{chat:t,message:n,isReaction:o=!1}=e;const{hasWebNotifications:r}=await P();if(!function(e){if(!E)return!1;const t=(0,s.Rd)();if((0,i.i4)(e,(0,c.dZ)(t),(0,c.NJ)(t))||e.isNotJoined||!e.isListed)return!1;if(l.$b){const{chatId:n,type:o}=(0,c.Bt)(t)||{};return!(n===e.id&&"thread"===o)}return!document.hasFocus()}(t))return;const u=v();if(!r||!u){if(o)return;return void I(String(n.id)||t.id)}if(!u)return;if(!n.id)return;const h=(0,i.dT)(n);if(o&&!h)return;const m=await M(t),{title:p,body:y}=function(e,t,n){const o=(0,s.Rd)(),{replyToMessageId:r}=t;let{senderId:u}=t;n&&(u=n.userId);const{isScreenLocked:l}=o.passcode,h=u?(0,c.dy)(o,u):void 0,m=(0,i.N5)(t),p=m&&r?(0,c.hj)(o,e.id,r):void 0,{targetUserIds:g,targetChatId:v}=m||{},y=g?g.map((e=>(0,c.dy)(o,e))).filter(Boolean):void 0,b=(0,i.zX)(e),I=b?(0,c.dy)(o,b):void 0;let w;if(!l&&(0,i.Sm)(e,(0,c.dZ)(o),(0,c.NJ)(o)))if((0,i.Lo)(t)){const n=e&&((0,i.eA)(e)||t.senderId===t.chatId);w=(0,d.D)(f.i0,t,n?void 0:h,n?e:void 0,y,p,v,{asPlainText:!0})}else{const n=(0,i.zF)(f.i0,e.id,h),o=(0,i.MK)(f.i0,t,!1,60,!1);w=n?`${n}: ${o}`:o}else w="New message";return{title:l?a.iC:(0,i.U)(f.i0,e,I),body:w}}(t,n,h);if(g()){var b;null!==(b=navigator.serviceWorker)&&void 0!==b&&b.controller&&navigator.serviceWorker.controller.postMessage({type:"showMessageNotification",payload:{title:p,body:y,icon:m,chatId:t.id,messageId:n.id,shouldReplaceHistory:!0,reaction:null==h?void 0:h.reaction}})}else{const e=(0,s.Sv)(),r={body:y,icon:m,badge:m,tag:String(n.id)};"vibrate"in navigator&&(r.vibrate=[200,100,200]);const d=new Notification(p,r);d.onclick=()=>{d.close(),e.focusMessage({chatId:t.id,messageId:n.id,shouldReplaceHistory:!0}),window.focus&&window.focus()},d.onshow=()=>{o||I(String(n.id)||t.id)}}}function T(e){var t;!a.Cg&&null!==(t=navigator.serviceWorker)&&void 0!==t&&t.controller&&navigator.serviceWorker.controller.postMessage({type:"closeMessageNotifications",payload:e})}function L(){var e;null!==(e=navigator.serviceWorker)&&void 0!==e&&e.controller&&navigator.serviceWorker.controller.postMessage({type:"clientReady"})}},95281:(e,t,n)=>{n.d(t,{AU:()=>a,C8:()=>c,H4:()=>s,J9:()=>u,so:()=>i});var o=n(49524),r=n(83716);let d;async function a(e){d=await l(e)}async function s(e,t){if(!d)throw new Error("[api/passcode] Missing current passcode");await Promise.all([(async()=>{if(!e)return;const t=await m(e,d);await f("sessionEncrypted",t)})(),(async()=>{if(!t)return;const e=await m(t,d);await f("globalEncrypted",e)})()])}async function i(e){const t=await l(e),[n,o]=await Promise.all([h("sessionEncrypted"),h("globalEncrypted")]);if(!n||!o)throw new Error("[api/passcode] Missing required stored fields");const[r,a]=await Promise.all([p(n,t),p(o,t)]);return d=t,{sessionJson:r,globalJson:a}}function u(){d=void 0}function c(){return u(),o.clear(r.oX)}function l(e){return crypto.subtle.digest("SHA-256",(new TextEncoder).encode(`${e}harder better faster stronger`))}async function f(e,t){await o.save(r.oX,e,t)}function h(e){return o.fetch(r.oX,e,o.Type.ArrayBuffer)}async function m(e,t){const n=crypto.getRandomValues(new Uint8Array(12)),o={name:"AES-GCM",iv:n},r=await crypto.subtle.importKey("raw",t,o,!1,["encrypt"]),d=(new TextEncoder).encode(e),a=await crypto.subtle.encrypt(o,r,d),s=new Uint8Array(a),i=new Uint8Array(12+s.length);return i.set(n,0),i.set(s,12),i.buffer}async function p(e,t){const n=new Uint8Array(e),o={name:"AES-GCM",iv:n.slice(0,12)},r=await crypto.subtle.importKey("raw",t,o,!1,["decrypt"]),d=n.slice(12),a=await crypto.subtle.decrypt(o,r,d);return(new TextDecoder).decode(a)}},6272:(e,t,n)=>{n.d(t,{U9:()=>d,WZ:()=>i,g3:()=>a,un:()=>s});const o="X",r="XXX XXX XXX XXX";function d(e,t){return e.filter((e=>e.iso2===t))}function a(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=n.replace(/[^\d+]+/g,"");o.startsWith("+")&&(o=o.substr(1));const r=e.filter((e=>o.startsWith(e.countryCode))),d=r.map((e=>(e.prefixes||[""]).map((t=>({code:`${e.countryCode}${t}`,country:e}))))).flat(),a=d.filter((e=>{let{code:t}=e;return o.startsWith(t)})).sort(((e,t)=>e.code.length-t.code.length));return null===(t=a[a.length-1])||void 0===t?void 0:t.country}function s(e,t){if(!e)return"";let n=e.replace(/[^\d]+/g,"");if(t)n=n.substr(t.countryCode.length);else if(e.startsWith("+"))return e;const d=function(e,t){if(!t||0===t.length)return r;if(1===t.length)return t[0];const n=t.find((e=>e.startsWith(o)))||r,d=t.filter((t=>{const n=t.replace(/[^\dX]+/g,"");if(n.startsWith(o))return!1;for(let t=0;tn.length-1||n[t]!==o&&n[t]!==e[t])return!1;return!0}));return 1===d.length?d[0]:n}(n,null==t?void 0:t.patterns),a=[];let s=0;for(let e=0;e{n.d(t,{V:()=>a,q:()=>d});var o=n(6137),r=n(46590);const d=(e,t,n)=>e.toString()+("thread"!==t?`_${t}`:-1!==n?`_${n}`:"");function a(){if(!r.O)return;const[e,t]=r.O.replace(/^#/,"").split("_");if(null==e||!e.match(/^-?\d+$/))return;const n=["thread","pinned","scheduled"].includes(t);return{chatId:e,type:Boolean(t)&&n?t:"thread",threadId:Boolean(t)&&!n?Number(t):o._f}}},74753:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(83716);const r=e=>{e.play().catch((t=>{o.eM&&console.warn(t,e)}))}},69118:(e,t,n)=>{function o(e,t){let n,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return function(){for(var d=arguments.length,a=new Array(d),s=0;s{r&&e(...a),n=void 0}),t)}}function r(e,t){let n,o,r,d=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(){o=!0;for(var a=arguments.length,s=new Array(a),i=0;i{if(!o)return self.clearInterval(n),void(n=void 0);o=!1,e(...r)}),t))}}function d(e){return i(v,e)}function a(e){return i(y,e)}function s(e){return i(b,e)}function i(e,t){let n,o=!1;return function(){for(var r=arguments.length,d=new Array(r),a=0;a{o=!1,t(...n)})))}}function u(e,t){self.requestIdleCallback?self.requestIdleCallback(e,{timeout:t}):b(e)}n.d(t,{$6:()=>s,D0:()=>y,Ds:()=>o,Gq:()=>w,P2:()=>r,Pn:()=>l,Q8:()=>u,R3:()=>b,T2:()=>v,mS:()=>d,wO:()=>c,wT:()=>a,zD:()=>I});const c=e=>new Promise((t=>{setTimeout((()=>t()),e)}));function l(){return new Promise((e=>{v(e)}))}let f,h,m,p,g;function v(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f?t?h.push(e):f.push(e):(f=t?[]:[e],h=t?[e]:[],requestAnimationFrame((()=>{const e=f,t=h;f=void 0,h=void 0,t.forEach((e=>e())),e.forEach((e=>e()))})))}function y(e){v(e,!0)}function b(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];m?t?p.push(e):m.push(e):(m=t?[]:[e],p=t?[e]:[],Promise.resolve().then((()=>{const e=m,t=p;m=void 0,p=void 0,t.forEach((e=>e())),e.forEach((e=>e()))})))}function I(e){b(e,!0)}function w(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return g||(g=[],self.addEventListener("beforeunload",(()=>{g.forEach((e=>e()))}))),t?g.push(e):g.unshift(e),()=>{g=g.filter((t=>t!==e))}}},85765:(e,t,n)=>{let o;n.d(t,{W:()=>d,Z:()=>r});try{o=/[^\p{L}\p{M}]+/iu}catch(e){o=/[^\wа-яё]+/i}function r(e,t){if(!e||!t)return!1;const n="string"==typeof t?t.toLowerCase().split(o):t,r=e.toLowerCase();if(1===n.length&&!r.includes(n[0]))return!1;let d;return n.every((e=>!!r.includes(e)&&(d||(d=r.split(o)),d.some((t=>t.startsWith(e))))))}function d(e){const t=e.toLowerCase().split(o);return e=>r(e,t)}},82267:(e,t,n)=>{n.d(t,{b:()=>o});const o=e=>Math.floor(Date.now()/1e3)+e},3100:(e,t,n)=>{n.d(t,{f3:()=>m,jv:()=>l,ti:()=>u,Qw:()=>h,K8:()=>f,wX:()=>c});function o(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}let r;function d(){return r||(r=function(e,t){const n=(!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise((function(e){var t=function(){return indexedDB.databases().finally(e)};r=setInterval(t,100),t()})).finally((function(){return clearInterval(r)})):Promise.resolve()).then((()=>{const e=indexedDB.open("keyval-store");return e.onupgradeneeded=()=>e.result.createObjectStore(t),o(e)}));var r;return(e,o)=>n.then((n=>o(n.transaction(t,e).objectStore(t))))}(0,"keyval")),r}var a=n(83716),s=n(49524);const i=[1,2,3,4,5];function u(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e&&localStorage.getItem(a.Vx))return!0;if(p())return!0;const t=localStorage.getItem(a.b_);if(!t)return!1;try{const e=JSON.parse(t);return Boolean(e&&e.id&&e.dcID)}catch(e){return!1}}function c(e,t){const{mainDcId:n,keys:o,hashes:r}=e;localStorage.setItem(a.b_,JSON.stringify({dcID:n,id:t})),localStorage.setItem("dc",String(n)),Object.keys(o).map(Number).forEach((e=>{localStorage.setItem(`dc${e}_auth_key`,JSON.stringify(o[e]))})),r&&Object.keys(r).map(Number).forEach((e=>{localStorage.setItem(`dc${e}_hash`,JSON.stringify(r[e]))}))}function l(){[a.b_,"dc",...i.map((e=>`dc${e}_auth_key`)),...i.map((e=>`dc${e}_hash`)),...i.map((e=>`dc${e}_server_salt`))].forEach((e=>{localStorage.removeItem(e)}))}function f(){if(!u())return;const e=JSON.parse(localStorage.getItem(a.b_));if(!e)return;const t=Number(e.dcID),n={},o={};return i.forEach((e=>{try{const t=localStorage.getItem(`dc${e}_auth_key`);t&&(n[e]=JSON.parse(t));const r=localStorage.getItem(`dc${e}_hash`);r&&(o[e]=JSON.parse(r))}catch(e){a.eM&&console.warn("Failed to load stored session",e)}})),Object.keys(n).length?{mainDcId:t,keys:n,hashes:o}:void 0}async function h(){const e=localStorage.getItem(a.Vx);if(!e)return;const t=await function(e,t=d()){return t("readonly",(t=>o(t.get(e))))}(`GramJs:${e}`);try{c(JSON.parse(t))}catch(e){a.eM&&console.warn("Failed to load legacy session",e)}}async function m(){localStorage.removeItem(a.Vx);const e=await function(e=d()){return e("readonly",(e=>{if(e.getAllKeys)return o(e.getAllKeys());const t=[];return function(e,t){return e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},o(e.transaction)}(e,(e=>t.push(e.key))).then((()=>t))}))}();await Promise.all([s.clear("GramJs"),...e.filter((e=>"string"==typeof e&&e.startsWith("GramJs:GramJs-session-"))).map((e=>function(e,t=d()){return t("readwrite",(t=>(t.delete(e),o(t.transaction))))}(e)))])}function p(){var e;const t=JSON.parse(localStorage.getItem(a.Uh)||"{}");return Boolean(null==t||null===(e=t.passcode)||void 0===e?void 0:e.isScreenLocked)}},27370:(e,t,n)=>{n.d(t,{Z:()=>h});var o=n(9933),r=n(69118);const d=JSON.parse('{"--color-primary":["#3390EC","#8774E1"],"--color-primary-opacity":["#50A2E980","#8378DB80"],"--color-primary-shade":["#4a95d6","#7b71c6"],"--color-background":["#FFFFFF","#212121"],"--color-background-compact-menu":["#FFFFFFBB","#212121DD"],"--color-background-compact-menu-reactions":["#FFFFFFEB","#212121DD"],"--color-background-compact-menu-hover":["#00000011","#00000066"],"--color-background-secondary":["#f4f4f5","#0F0F0F"],"--color-background-secondary-accent":["#E4E4E5","#100f10"],"--color-background-own":["#EEFFDE","#766AC8"],"--color-background-own-apple":["#DCF8C5","#766AC8"],"--color-background-selected":["#F4F4F5","#2C2C2C"],"--color-background-own-selected":["#d0ffac","#6549d4"],"--color-chat-hover":["#F4F4F5","#2C2C2C"],"--color-chat-active":["#3390EC","#766AC8"],"--color-item-active":["#ededed","#292929"],"--color-text":["#000000","#FFFFFF"],"--color-text-secondary":["#707579","#AAAAAA"],"--color-icon-secondary":["#707579","#AAAAAA"],"--color-text-secondary-apple":["#8E8E92","#AAAAAA"],"--color-borders":["#DADCE0","#303030"],"--color-borders-input":["#DADCE0","#5B5B5A"],"--color-dividers":["#C8C6CC","#404040"],"--color-links":["#3390EC","#8774E1"],"--color-gray":["#C4C9CC","#717579"],"--color-pinned":["#C4C9CC","#707579"],"--color-default-shadow":["#72727240","#1010109c"],"--color-light-shadow":["#7272722B","#00000040"],"--color-green":["#00C73E","#8774E1"],"--color-text-meta-colored":["#4DCD5E","#8378DB"],"--color-reply-hover":["#F4F4F4","#272727"],"--color-reply-active":["#E8E9E9","#2E2F2F"],"--color-reply-own-hover":["#D9F5CE","#8775DA"],"--color-reply-own-hover-apple":["#cbefb7","#8775DA"],"--color-reply-own-active":["#C5ECBE","#917DEA"],"--color-reply-own-active-apple":["#bae6a8","#917DEA"],"--color-accent-own":["#45AF54","#FFFFFF"],"--color-message-meta-own":["#4FAE4EFF","#FFFFFF88"],"--color-own-links":["#3390EC","#FFFFFF"],"--color-code":["#4a729a","#8774E1"],"--color-code-own":["#3c7940","#FFFFFF"],"--color-code-bg":["#70757914","#00000080"],"--color-code-own-bg":["#70757914","#00000050"],"--color-composer-button":["#707579CC","#AAAAAACC"],"--color-message-reaction":["#ebf3fd","#2b2a35"],"--color-message-reaction-hover":["#c5def9","#343147"],"--color-message-reaction-own":["#cef0ba","#675CAF"],"--color-message-reaction-hover-own":["#b5e0a4","#5B529B"],"--color-voice-transcribe-button":["#e8f3ff","#2a2a3c"],"--color-voice-transcribe-button-own":["#cceebf","#8373d3"]}');var a=n(28712);let s=!1;const i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,u=new Set(["--color-primary-shade","--color-text-secondary"]),c=Object.keys(d).map((e=>({property:e,colors:[l(d[e][0]),l(d[e][1])]})));function l(e){const t=i.exec(e);return{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16),a:void 0!==t[4]?parseInt(t[4],16):void 0}}function f(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;c.forEach((o=>{let{property:r,colors:d}=o;const s=Math.round((0,a.t7)(d[e].r,d[t].r,n)),i=Math.round((0,a.t7)(d[e].g,d[t].g,n)),c=Math.round((0,a.t7)(d[e].b,d[t].b,n)),l=void 0!==d[e].a?Math.round((0,a.t7)(d[e].a,d[t].a,n)):void 0;document.documentElement.style.setProperty(r,void 0!==l?`rgba(${s},${i},${c},${l/255})`:`rgb(${s},${i},${c})`),u.has(r)&&document.documentElement.style.setProperty(`${r}-rgb`,`${s},${i},${c}`)}))}const h=(e,t)=>{const n=`theme-${e}`;if(document.documentElement.classList.contains(n))return;const d="dark"===e,a=s&&t,i=d?0:1,u=d?1:0,c=Date.now(),l=document.querySelector('meta[name="theme-color"]');document.documentElement.classList.remove("theme-"+(d?"light":"dark")),s&&document.documentElement.classList.add("no-animations"),document.documentElement.classList.add(n),l&&l.setAttribute("content",d?"#212121":"#fff"),setTimeout((()=>{document.documentElement.classList.remove("no-animations")}),500),s=!0,a?(0,r.T2)((()=>{(0,o.cK)((()=>{const e=Math.min((Date.now()-c)/200,1);return f(i,u,function(e){return 1-(1-e)**3.5}(e)),e<1}))})):f(i,u)}},2155:(e,t,n)=>{n.d(t,{Xv:()=>i,bi:()=>s,kh:()=>d,sS:()=>c});var o=n(33681),r=n(34284);function d(e){return String(e).replace(/\d(?=(\d{3})+$)/g,"$& ")}function a(e){return".0"===String(e.toFixed(1)).substr(-2)?Math.round(e):e.toFixed(1).replace(".",",")}function s(e){return e<1e3?e:e<1e6?`${a(e/1e3)}K`:`${a(e/1e6)}M`}const i=(0,n(15155).Z)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return e.replace(/[.,!@#$%^&*()_+=\-`~[\]/\\{}:"|<>?]+/gi,"").trim().split(/\s+/).slice(0,t).map((e=>{if(!e.length)return"";const t=(e=(0,r.g6)(e)).match(o.Z);return t&&e.startsWith(t[0])?t[0]:e.match(/./u)[0].toUpperCase()})).join("")})),u=["B","KB","MB","GB"];function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(0===t)return e("FileSize.B",0);const o=1024,r=Math.floor(Math.log(t)/Math.log(o)),d=(t/o**r).toFixed(Math.max(n,0));return e(`FileSize.${u[r]}`,d)}},48035:(e,t,n)=>{function o(e,t){return!e||!t||e.length<=t?e:`${e.substring(0,t)}...`}n.d(t,{Z:()=>o})},10862:(e,t,n)=>{n.d(t,{Hu:()=>i,_y:()=>u,p6:()=>c});var o=n(77361),r=n(71394),d=n(69118);let a,s;const i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";async function u(e,t){for(l();!s.wasmReady;)await(0,d.wO)(2e3);const{result:n,width:o,height:r}=await function(e,t){return new Promise((n=>{s.requests||(s.requests=new Map),s.requests.set(e,n),s.postMessage({id:e,blob:t})}))}(e,t);if(o&&r)return function(e){let{result:t,width:n,height:o}=e;return a||(a=document.createElement("canvas")),new Promise((e=>{const r=new ImageData(t,n,o);a.width=n,a.height=o,a.getContext("2d").putImageData(r,0,0),a.toBlob((t=>{e(null!=t?t:void 0)}),"image/png",1)}))}({result:n,width:o,height:r})}async function c(e,t){if((0,o.on)()||"data:image/webp"!==t.substr(0,15))return t;l();const n=await u(e,(0,r.A9)(t));if(!n)throw new Error(`Can't convert webp to png. Url: ${t}`);return(0,r.YJ)(n)}function l(){s||(s=new Worker(new URL(n.p+n.u(9536),n.b)),s.wasmReady=!1,s.onmessage=f)}function f(e){const{id:t}=e.data;switch(e.data.type){case"initialized":s.wasmReady=!0;break;case"result":if(s.requests.has(t)){const n=s.requests.get(t);s.requests.delete(t),n(e.data)}}}},706:(e,t,n)=>{n.d(t,{IT:()=>l,W8:()=>h,px:()=>f});var o=n(83716),r=n(33555),d=n(3100);const a=["t.me","telegram.me"].map((e=>`//${e}/_websync_?`)),s=`${o.Ji} Z`,i="tgme_sync",u=()=>Math.floor(Number(new Date)/1e3);let c;const l=e=>{if(o.Nu)return;const t=u(),{canRedirect:n,ts:r}=JSON.parse(localStorage.getItem(i)||"{}");return n!==e||r+86400<=t?Promise.all(a.map((t=>new Promise(((n,o)=>{const r=document.createElement("script"),d=()=>Boolean(document.body.removeChild(r));r.src=t+new URLSearchParams({authed:Number(e).toString(),version:s}),document.body.appendChild(r),r.onload=()=>{(e=>{const t=u();localStorage.setItem(i,JSON.stringify({canRedirect:e,ts:t}))})(e),d(),c&&(clearTimeout(c),c=void 0),f(),n()},r.onerror=()=>{d(),o()}}))))):Promise.resolve()};function f(){if(o.eM)return;if(void 0!==c)return;const e=u(),{ts:t}=JSON.parse(localStorage.getItem(i)||"{}"),n=86400-(e-t);c=setTimeout((()=>{const{authState:e}=(0,r.Rd)(),t="authorizationStateReady"===e||(0,d.ti)(!0);l(t)}),Math.max(0,1e3*n))}function h(){localStorage.removeItem(i)}},43858:(e,t,n)=>{n.d(t,{Z:()=>h,z:()=>l});var o=n(69118),r=n(83716),d=n(77361);const a=d.wB&&f(),s=window.innerHeight;let i=l(),u=!1;const c=(0,o.P2)((()=>{i=l(),!u&&((i.width<=r.l3||i.width<=r.u_&&i.height<=r.rO)!==d.wB||d.wB&&a!==f())&&window.location.reload()}),250,!0);function l(){let e;e=d.cj?window.visualViewport.height+window.visualViewport.pageTop:window.innerHeight;const t=.01*e;return document.documentElement.style.setProperty("--vh",`${t}px`),{width:window.innerWidth,height:window.innerHeight}}function f(){return d.cj?window.matchMedia("(orientation: landscape)").matches:window.matchMedia("screen and (min-device-aspect-ratio: 1/1) and (orientation: landscape)").matches}window.addEventListener("orientationchange",c),d.cj?window.visualViewport.addEventListener("resize",c):window.addEventListener("resize",c);const h={get:()=>i,getIsKeyboardVisible:()=>s>i.height,disableRefresh:function(){u=!0},enableRefresh:function(){u=!1}}},15155:(e,t,n)=>{n.d(t,{Z:()=>r});const o=new WeakMap;function r(e){return function(){let t=o.get(e);for(var n=arguments.length,r=new Array(n),d=0;d{e.exports=n.p+"lock.f11661905df47960fa3e.png"}},s={};function i(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={exports:{}};return a[e].call(n.exports,n,n.exports,i),n.exports}i.m=a,i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var r=Object.create(null);i.r(r);var d={};e=e||[null,t({}),t([]),t(t)];for(var a=2&o&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>d[e]=()=>n[e]));return d.default=()=>n,i.d(r,d),r},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>e+"."+{67:"b87adfdac989dff54cd1",143:"e2c1115f073082dddbdf",154:"8c2ff697b6d4cafdb776",191:"1fa0f260d53e7abfe9ed",209:"ca4daa9ff624b3bf5614",212:"e663b8258cc54ba69359",244:"ae966e72f128eda340fc",256:"ff0f01bea01003a78a3c",370:"5addeb3fc94386c23602",483:"35b0f80df29ece6559a6",625:"c4bfccd5c44b3331f5a7",713:"894ffda65a82196537e1",730:"2e172af489ed6ff0e496",831:"f5c222cee9c1b1b68852",905:"60ca606f19ffdd6d94a4",958:"c56f02be3f4f5db2aedf",1098:"4a6d3970af492938a672",1142:"59a69270adc0978a6156",1161:"9bcab8bec6aedc27da89",1276:"07f8a81b011d56580ad6",1360:"1a681d99506a88d29942",1402:"35efd1623401c0a6ada2",1418:"a8ffdf6d23ac65ebfa95",1437:"53e04fe5063aee60d350",1514:"64267b1f36585be79543",1516:"cbee85824600e7b98e69",1627:"c1c005ef2bed8d1b9561",1641:"d99075923e2b8c9e5f72",1699:"258d1e759822ec152b75",1752:"272d78459ec80c5b3dba",1879:"60ac065c7d88c4f46b54",1915:"c5b3f01035517153521f",1917:"2928ac2003a7061dc059",1933:"b2033cfa79d272a8fe62",1954:"d569fdd7ba86d9776a5c",1967:"3cec93c3a4dcd79e0488",2001:"8c68420c13854bbc24fe",2002:"8481843cd3d445486865",2054:"9c1890f62ccae40eeec2",2098:"890557cbbc0c46a9f08f",2137:"3af5405dff8273180346",2138:"fbfb10a62455b7b043b7",2243:"f82c54d3a849d4a487b4",2251:"2bf10b1f578543d75e54",2305:"c31559f1364c234c62a5",2342:"f8d4331788cc89a2b694",2369:"d952921438994721f7d0",2390:"d7ecc2f228aef9b009e4",2537:"94c17bfafc8acf1a9cd2",2690:"4d73e3084ae3a2a6f64c",2741:"9f3aba6b2cd0b453f9a5",2767:"2121cd909c7aa572c7fd",2853:"c4ae910d407f42b72912",2892:"b8b8cd5c2b1df51e3492",2993:"7edbe42f18b94ec35761",3041:"3651667772714402881a",3075:"9c2f4f4a3c19eb56b751",3076:"a7f6caf93b4b88180a6f",3098:"448b2ceaf9f37e849d7e",3108:"8f30bf9e3324a376f4ee",3124:"076a04e3a1b8d27db111",3147:"5a6cc01866d92675c748",3163:"6761cefaf572d1748946",3268:"7cace4f58c3fac9c74da",3280:"c61f120392215be6557a",3288:"4a69264995d9f806de13",3309:"620314c64d80c35257fc",3311:"2ff5c61aa4212045c410",3404:"70f366c6fa25f799e549",3408:"25202d3ff038f4194bd9",3411:"8f5d1095651d61b8f424",3420:"3a5367f73895e3c3c1f4",3472:"615d222fdc0dcfa591d8",3488:"54332bf5929df0077432",3505:"58e185c3b757b41576a2",3539:"498df8847f9f9d5a0937",3585:"3853a59a7d0336a03fde",3588:"d6cc0e28e0d962d3157c",3656:"279c48ec3d47a9000fa9",3698:"3541c155e1b629af7d33",3779:"0b77df2f0fdb505d6e71",3800:"96da4150cdeeba708556",3848:"ee699a3ab25cc6ca726d",3863:"d5fde682a12d7aa54672",3866:"df9f4de3c91bbda53861",3881:"8521d06f92c7b8b273ce",3894:"9ec589a8d0b8850ef326",3936:"a3325e628347fac10d84",3966:"097d0a2dd03e55cf7c46",4037:"af37477886b6cfd1194e",4039:"bcd470032085a33ee54b",4231:"d59a6f0c70fb98d4bcf0",4276:"9240959928e16f250f8f",4303:"58ff7d91e35a9b3c2756",4314:"0d8ed2badacc96e873cb",4334:"e493d976600a04c160e4",4408:"0fb28033cf23ddbc23a6",4484:"ba496a0faf977e32f6ef",4536:"acd06cb972eebae2e5e4",4566:"5eb1a1b10803fa99c22d",4569:"385b6cf4a46b7115c2db",4646:"7ebe551cdd0f4b9c9e92",4685:"88d39506fe34588ed78d",4686:"125b32545c1a0a0d5d3e",4710:"0a0b5e901cf0b5d6fd93",4713:"5a4b08652c0d22593258",4723:"38c6e4a29e0fdfa7afa8",4747:"a51da29105f71545b275",4753:"17105da93bd7006f8573",4835:"0964f1a24a6398e35c12",4838:"71c5c5739a3ed2bad3ee",4850:"bc9242dc125cb10484bc",4933:"c0f777add150aed6dd31",4973:"9e1f1935e024e1bf929d",4986:"962334f1a027906974fd",5040:"99ef443d75bf87559776",5060:"7cd173e6b1393947bb3b",5066:"d9d0cb326f6f7d743f3a",5099:"655521533cb48ebec54c",5119:"090f02fee771b8f5e65c",5204:"55dc1f02973adc8b29ab",5239:"73400cf76a319169f599",5246:"32626d81771d640604dd",5281:"0b7b900d2540db49ae8f",5297:"01b37c1c033b4b7c5732",5309:"ba1a5dde297758458683",5344:"5c9eaedbce0a63ae3e63",5368:"892f890338957f00fc23",5386:"9f0180dc5c168ff288bf",5434:"249f262bbc62d09db4f0",5474:"aedf972792d2c11b7940",5588:"56e673e74137435b5023",5603:"0302646e1ffabe87d525",5699:"78a750acf4e0fff43bde",5745:"53fc0ce876a7dce21370",5769:"b3dc0ee7170367f52dfe",5855:"c34458d02e95d2ec3d71",5930:"9dcde09591068799ffc3",5993:"7a57e87ff9a577929387",5999:"3b1c15d4285915dddc03",6052:"ca3c1bee89e20d16318d",6146:"e892062054e79d879e6b",6220:"4626eab605f1f3f5fae7",6284:"412fe22eb5e792b8236b",6297:"a40c32123d663a5d397e",6346:"3a08cef57225b5dd0723",6401:"65204bd5a1f1d34e1fdc",6483:"49cb2949d98e5010ceff",6548:"6abe878180ff54087f58",6642:"765cb88c978f7f6366d8",6688:"a5a6ef9c1044e440d8aa",6770:"260c086c5e5b2e226e40",6798:"a48f1b663374c1fcdf24",6839:"7574ee59f6159101b320",6889:"94df7712273c4f61ab30",6892:"1bf37b40183987140fc9",6931:"5d8b023307c7a880a8f1",6941:"7a0e1012e31f72681952",6969:"d2b2e882f924d7d5e877",6972:"45d9b899b7178fdb92c1",7049:"6f2636c871a83f167b6e",7052:"d8a4a1431f93b64b9a87",7119:"03b2ee63b97712464a63",7125:"57c858da5d4ff67e8141",7316:"2a3dfa1eba460895cf64",7388:"7bec01a290d868ba2d42",7501:"9f45796679951ac21293",7551:"6e574d5a75cf073215df",7556:"701477404ee235a07786",7794:"5d3eabab5ee771b3e859",7799:"690560cf65f3d985dde5",7897:"01558917b3d0fc1d388f",7941:"7394fb0b394c9ee95fb1",7963:"8b010994867f46020df9",8063:"627d5ae10e2e502e9e38",8090:"743a785a5fe6a9841aeb",8138:"9b29a768a035996247bd",8208:"9a2d0eeec5f8bb07cdd3",8294:"12b38bd567e102c27c8e",8369:"c6ae120b122d07384b7d",8401:"a8ba266b7a79ef7dfe1d",8422:"cfa7884f5b7ee933b6c3",8435:"5f667e46d196564970b9",8505:"f588195fa145445de93b",8530:"a4d7f28c015d01eaf776",8663:"3215036b0069a8dcc16e",8688:"6cda6506154e2e3e5b90",8709:"51c7b7103b230d767ea7",8812:"a39ba81372544f20ba3f",8815:"fd39d74554c793313d5b",8822:"3e199b60162d8b8314aa",8878:"a7b117d54d54258e5f26",8913:"1773658335e9a4527e40",9071:"c587e7d4b0df5f41a587",9125:"221d966328061801dce3",9223:"b65193470f36938b0d9b",9227:"c34f2b1661736507d402",9285:"3aedc94598376aee9274",9328:"545adb935b7615fd8d16",9338:"cf9b08f5551ab6096a70",9375:"40298b58e46ff66877d6",9379:"5f47d04a09f26df77d30",9400:"9f2f9a821c3a64e5473d",9486:"66f6169ec02590019bbf",9535:"35b32969dfafdbc17a45",9536:"52b3efcf5de741667a33",9565:"05a813d6f1c60da0196b",9606:"f9fa653821fc0f019fad",9623:"a319f64448a91c662f4d",9635:"01582125f331f7f89adb",9641:"8b340949ffd52cb38c60",9657:"376f100fba6d94cfca1b",9682:"730455c56a4729444e9d",9783:"6fb3455cb9b01926cb10",9822:"ec3817f08021427f5550",9954:"836adcc6b64f2d9ed43a"}[e]+".js",i.miniCssF=e=>(({3041:"BundleAuth",3779:"BundleExtra",5769:"BundleMain",9954:"BundleCalls"}[e]||e)+"."+{3041:"3651667772714402881a",3472:"615d222fdc0dcfa591d8",3779:"0b77df2f0fdb505d6e71",5769:"b3dc0ee7170367f52dfe",8688:"6cda6506154e2e3e5b90",8878:"a7b117d54d54258e5f26",9954:"836adcc6b64f2d9ed43a"}[e]+".css"),i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},o="telegram-t:",i.l=(e,t,r,d)=>{if(n[e])n[e].push(t);else{var a,s;if(void 0!==r)for(var u=document.getElementsByTagName("script"),c=0;c{a.onerror=a.onload=null,clearTimeout(h);var r=n[e];if(delete n[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(o))),t)return t(o)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),s&&document.head.appendChild(a)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;i.g.importScripts&&(e=i.g.location+"");var t=i.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),r=e=>new Promise(((t,n)=>{var o=i.miniCssF(e),r=i.p+o;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),o=0;o{var r=document.createElement("link");r.rel="stylesheet",r.type="text/css",r.onerror=r.onload=d=>{if(r.onerror=r.onload=null,"load"===d.type)n();else{var a=d&&("load"===d.type?"missing":d.type),s=d&&d.target&&d.target.href||t,i=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");i.code="CSS_CHUNK_LOAD_FAILED",i.type=a,i.request=s,r.parentNode.removeChild(r),o(i)}},r.href=t,document.head.appendChild(r)})(e,r,t,n)})),d={179:0},i.f.miniCss=(e,t)=>{d[e]?t.push(d[e]):0!==d[e]&&{3041:1,3472:1,3779:1,5769:1,8688:1,8878:1,9954:1}[e]&&t.push(d[e]=r(e).then((()=>{d[e]=0}),(t=>{throw delete d[e],t})))},(()=>{i.b=document.baseURI||self.location.href;var e={179:0};i.f.j=(t,n)=>{var o=i.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var r=new Promise(((n,r)=>o=e[t]=[n,r]));n.push(o[2]=r);var d=i.p+i.u(t),a=new Error;i.l(d,(n=>{if(i.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var r=n&&("load"===n.type?"missing":n.type),d=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+r+": "+d+")",a.name="ChunkLoadError",a.type=r,a.request=d,o[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var o,r,[d,a,s]=n,u=0;if(d.some((t=>0!==e[t]))){for(o in a)i.o(a,o)&&(i.m[o]=a[o]);s&&s(i)}for(t&&t(n);u{i(33592);var e=i(83716),t=i(33555),n=i(77361),o=i(28406);function r(n){const r=n.data;if(e.ZT&&console.log("[SW] Message from worker",r),!r.type)return;const d=(0,t.Sv)(),a=r.payload;switch(r.type){case"focusMessage":d.focusMessage&&d.focusMessage(a);break;case"playNotificationSound":(0,o.Nz)(r.payload.id)}}function d(){navigator.serviceWorker.removeEventListener("message",r),navigator.serviceWorker.addEventListener("message",r),(0,o.KC)()}n.Mc&&(window.addEventListener("load",(async()=>{try{if(!navigator.serviceWorker.controller){const t=await navigator.serviceWorker.getRegistrations();t.length&&(e.eM&&console.log("[SW] Hard reload detected, re-enabling Service Worker"),await Promise.all(t.map((e=>e.unregister()))))}await navigator.serviceWorker.register(new URL(i.p+i.u(1516),i.b)),e.eM&&console.log("[SW] ServiceWorker registered"),await navigator.serviceWorker.ready,navigator.serviceWorker.controller?(e.eM&&console.log("[SW] ServiceWorker ready"),d()):(e.eM&&console.error("[SW] ServiceWorker not available"),n.cj||n.wZ||e.Cg||(0,t.Sv)().showDialog({data:{message:"SERVICE_WORKER_DISABLED",hasErrorKey:!0}}))}catch(t){e.eM&&console.error("[SW] ServiceWorker registration failed: ",t)}})),window.addEventListener("focus",(async()=>{await navigator.serviceWorker.ready,d()})));var a=i(14050),s=i(31664),u=i(36046),c=i(35369),l=i(5872),f=i(60782),h=i(5161),m=i(3100);(0,l.QS)(),(0,t.iw)("init",(()=>{const t=(0,f.Xh)(c.Y);let n=(0,l.J9)(t)||t;e.Nu&&(n.authState="authorizationStateReady");const{hasPasscode:o,isScreenLocked:r}=n.passcode;return o&&!r&&(n=(0,h.vu)(n,{isScreenLocked:!0}),(0,m.jv)()),n}));var p=i(43858);const g="tt-active-tab",v=String(Date.now()+Math.random());let y;localStorage.setItem(g,v);const b=window.setInterval((()=>{y&&localStorage.getItem(g)!==v&&(y(),clearInterval(b))}),2e3);var I=i(46752),w=i(60706),C=i(87204),S=(i(89005),i(73456),i(65456),i(51371),i(28304),i(46590)),E=i(18360),P=i(2255);const k=i.p+"monkey.a3d5fcdc50b18dc55695.svg";var M=i(71394);const A=["400 1em Roboto","500 1em Roboto"];function N(){if("fonts"in document)return Promise.all(A.map((e=>document.fonts.load(e))))}var T=i(6272),L=i(50711),R=i(59107);const Z=(e,t)=>{const[n,o]=(0,a.eJ)();return e&&L.Pn(e,t).then(o),n};function B(){let e=navigator.language;return e&&"pt-br"!==e&&(e=e.substr(0,2)),e}var F=i(231),D=i(14605),O=i(97687),x=i(34288),_=i(85765),$=i(32340),U=i(34284),j=i(29290),V=i(53106),W=i(58964),H=i(49204);const G=200+e.fK,z=(0,a.X$)((0,t.c$)((e=>{const{countryList:{phoneCodes:t}}=e;return{phoneCodeList:t}}))((e=>{let{id:t,value:n,isLoading:o,onChange:r,phoneCodeList:d}=e;const s=(0,R.Z)(),i=(0,a.sO)(null),[u,c]=(0,a.eJ)(),[l,f]=(0,a.eJ)([]),h=(0,a.I4)((e=>{c(e),f(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t.length)return e;const n=(0,_.W)(t);return e.filter((e=>n(e.defaultName)||e.name&&n(e.name)))}(d,e))}),[d]);(0,j.Z)((e=>{let[t]=e;0===(null==t?void 0:t.length)&&d.length>0&&h(u)}),[d,h]);const m=(0,a.I4)((e=>{r(e),setTimeout((()=>h(void 0)),G)}),[r,h]),p=(0,a.I4)((e=>{h(e.currentTarget.value)}),[h]),g=(0,a.I4)((e=>{if(8!==e.keyCode)return;const t=e.currentTarget;n&&void 0===u&&(t.value=""),h(t.value)}),[u,h,n]),v=(0,a.I4)((e=>{let{onTrigger:r,isOpen:d}=e;const c=()=>{if(d)return;setTimeout((()=>{i.current.select()}),50),r();const e=document.getElementById("auth-phone-number-form");e.scrollTo({top:e.scrollHeight,behavior:"smooth"})},l=null!=u?u:(null==n?void 0:n.name)||(null==n?void 0:n.defaultName)||"";return a.ZP.createElement("div",{className:(0,I.Z)("input-group",n&&"touched")},a.ZP.createElement("input",{ref:i,className:(0,I.Z)("form-control",d&&"focus"),type:"text",id:t,value:l,autoComplete:"off",onClick:c,onFocus:c,onInput:e=>{p(e),c()},onKeyDown:g}),a.ZP.createElement("label",null,s("Login.SelectCountry.Title")),o?a.ZP.createElement(H.Z,{color:"black"}):a.ZP.createElement("i",{onClick:c,className:(0,I.Z)("css-icon-down",d&&"open")}))}),[u,p,g,t,o,s,n]);return a.ZP.createElement(V.Z,{className:"CountryCodeInput",trigger:v},l.map((e=>a.ZP.createElement(W.Z,{key:`${e.iso2}-${e.countryCode}`,className:n&&e.iso2===n.iso2?"selected":"",onClick:()=>m(e)},a.ZP.createElement("span",{className:"country-flag"},(0,$.Z)((0,U.Wg)(e.iso2),["hq_emoji"])),a.ZP.createElement("span",{className:"country-name"},e.name||e.defaultName),a.ZP.createElement("span",{className:"country-code"},"+",e.countryCode)))),!l.length&&a.ZP.createElement(W.Z,{key:"no-results",className:"no-results",disabled:!0},a.ZP.createElement("span",null,s("lng_country_none"))))})));let K=!1;const J=(0,a.X$)((0,t.c$)((e=>{const{settings:{byKey:{language:t}},countryList:{phoneCodes:n}}=e;return{...(0,f.ei)(e,["connectionState","authState","authPhoneNumber","authIsLoading","authIsLoadingQrCode","authError","authRememberMe","authNearestCountry"]),language:t,phoneCodeList:n}}))((e=>{let{connectionState:o,authState:r,authPhoneNumber:d,authIsLoading:s,authIsLoadingQrCode:i,authError:u,authRememberMe:c,authNearestCountry:l,phoneCodeList:f,language:h}=e;const{setAuthPhoneNumber:m,setAuthRememberMe:p,loadNearestCountry:g,loadCountryList:v,clearAuthError:y,goToAuthQrCode:b,setSettingOption:I}=(0,t.Sv)(),C=(0,R.Z)(),S=(0,a.sO)(null),E=B(),P=Z(E,"ContinueOnThisLanguage"),[A,_]=(0,a.eJ)(),[$,U]=(0,a.eJ)(),[j,V]=(0,a.eJ)(!1),[W,H]=(0,a.eJ)(),[G,J,q]=(0,w.Z)(),Y=A?`+${A.countryCode} ${$||""}`:$,X=Y&&Y.replace(/[^\d]+/g,"").length>=7;(0,a.d4)((()=>{n.$b||S.current.focus()}),[A]),(0,a.d4)((()=>{"connectionStateReady"!==o||l||g()}),[o,l,g]),(0,a.d4)((()=>{"connectionStateReady"===o&&v({langCode:h})}),[o,h,v]),(0,a.d4)((()=>{l&&f&&!A&&!j&&_((0,T.U9)(f,l)[0])}),[A,l,j,f]);const Q=(0,a.I4)((e=>{e.length||U("");const t=f&&(0,T.g3)(f,e),n=!A||t&&t.iso2!==A.iso2||!t&&e.length?t:A;(!A||!n||n&&n.iso2!==A.iso2)&&_(n),U((0,T.un)(e,n))}),[f,A]),ee=(0,a.I4)((()=>{J(),(0,L.m0)(E,(()=>{q(),I({language:E})}))}),[J,I,E,q]);(0,a.d4)((()=>{void 0===$&&d&&Q(d)}),[d,$,Q]),(0,a.bt)((()=>{S.current&&W&&S.current.setSelectionRange(...W)}),[W]);const te=(0,a.sO)(!1),ne=(0,a.I4)((()=>{te.current=!0,requestAnimationFrame((()=>{te.current=!1}))}),[]),oe=(0,a.I4)((e=>{_(e),U("")}),[]),re=(0,a.I4)((e=>{u&&y(),K||(K=!0,N(),(0,M.pt)(k));const{value:t,selectionStart:o,selectionEnd:r}=e.target;H(o&&r&&r1&&!te.current;Q(d?`${A.countryCode} ${t}`:t)}),[u,y,A,Y,Q]),de=(0,a.I4)((e=>{p(e.target.checked)}),[p]),ae="authorizationStateWaitPhoneNumber"===r;return a.ZP.createElement("div",{id:"auth-phone-number-form",className:"custom-scroll"},a.ZP.createElement("div",{className:"auth-form"},a.ZP.createElement("div",{id:"logo"}),a.ZP.createElement("h1",null,"Telegram"),a.ZP.createElement("p",{className:"note"},C("StartText")),a.ZP.createElement("form",{action:"",onSubmit:function(e){e.preventDefault(),s||X&&m({phoneNumber:Y})}},a.ZP.createElement(z,{id:"sign-in-phone-code",value:A,isLoading:!l&&!A,onChange:oe}),a.ZP.createElement(O.Z,{ref:S,id:"sign-in-phone-number",label:C("Login.PhonePlaceholder"),value:Y,error:u&&C(u),inputMode:"tel",onChange:re,onPaste:n.s$?ne:void 0}),a.ZP.createElement(D.Z,{id:"sign-in-keep-session",label:"Keep me signed in",checked:Boolean(c),onChange:de}),X&&(ae?a.ZP.createElement(F.Z,{type:"submit",ripple:!0,isLoading:s},C("Login.Next")):a.ZP.createElement(x.Z,null)),ae&&a.ZP.createElement(F.Z,{isText:!0,ripple:!0,isLoading:i,onClick:b},C("Login.QR.Login")),E&&E!==h&&P&&a.ZP.createElement(F.Z,{isText:!0,isLoading:G,onClick:ee},P))))})));var q=i(99203),Y=i(48778);const X=(0,a.X$)((()=>{const e=(0,Y.Z)(q.gl.Auth,"AuthCode");return e?a.ZP.createElement(e,null):a.ZP.createElement(x.Z,null)})),Q=(0,a.X$)((()=>{const e=(0,Y.Z)(q.gl.Auth,"AuthPassword");return e?a.ZP.createElement(e,null):a.ZP.createElement(x.Z,null)})),ee=(0,a.X$)((()=>{const e=(0,Y.Z)(q.gl.Auth,"AuthRegister");return e?a.ZP.createElement(e,null):a.ZP.createElement(x.Z,null)}));var te=i(13365),ne=i(70692),oe=i(77510),re=i(58912);const de=i.p+"blank.8dd283bceccca95a48d8.png";let ae;const se=(0,a.X$)((0,t.c$)((e=>{const{connectionState:t,authState:n,authQrCode:o,settings:{byKey:{language:r}}}=e;return{connectionState:t,authState:n,authQrCode:o,language:r}}))((n=>{let{connectionState:o,authState:r,authQrCode:d,language:s}=n;const{returnToAuthPhoneNumber:u,setSettingOption:c}=(0,t.Sv)(),l=B(),f=(0,R.Z)(),h=(0,a.sO)(null),m=Z(l,"ContinueOnThisLanguage"),[p,g,v]=(0,w.Z)(),[y,b,C]=(0,w.Z)(),{result:S}=(0,oe.Z)((async()=>new(0,(await(ae||(ae=i.e(6839).then(i.t.bind(i,91915,23))),ae)).default)({width:280,height:280,image:de,margin:10,type:"svg",dotsOptions:{type:"rounded"},cornersSquareOptions:{type:"extra-rounded"},imageOptions:{imageSize:.4,margin:8},qrOptions:{errorCorrectionLevel:"M"}})),[]),E=(0,ne.Z)(y);(0,a.d4)((()=>{if(!d||!S)return()=>{C()};if("connectionStateReady"!==o)return;const e=h.current,t=`tg://login?token=${d.token}`;S.update({data:t}),y||(S.append(e),b())}),[o,d,y,b,C,S]),(0,a.d4)((()=>{"connectionStateReady"===o&&(0,L.m0)(e.sR)}),[o]);const P=(0,a.I4)((()=>{g(),(0,L.m0)(l,(()=>{v(),c({language:l})}))}),[g,c,l,v]),k="authorizationStateWaitQrCode"===r;return a.ZP.createElement("div",{id:"auth-qr-form",className:"custom-scroll"},a.ZP.createElement("div",{className:"auth-form qr"},a.ZP.createElement("div",{className:"qr-outer"},a.ZP.createElement("div",{className:(0,I.Z)("qr-inner",E),key:"qr-inner"},a.ZP.createElement("div",{key:"qr-container",className:"qr-container",ref:h,style:"width: 280px; height: 280px"}),a.ZP.createElement(re.Z,{tgsUrl:te.l.QrPlane,size:54,className:"qr-plane",nonInteractive:!0,noLoop:!1})),!y&&a.ZP.createElement("div",{className:"qr-loading"},a.ZP.createElement(x.Z,null))),a.ZP.createElement("h1",null,f("Login.QR.Title")),a.ZP.createElement("ol",null,a.ZP.createElement("li",null,a.ZP.createElement("span",null,f("Login.QR.Help1"))),a.ZP.createElement("li",null,a.ZP.createElement("span",null,(0,$.Z)(f("Login.QR2.Help2"),["simple_markdown"]))),a.ZP.createElement("li",null,a.ZP.createElement("span",null,f("Login.QR.Help3")))),k&&a.ZP.createElement(F.Z,{isText:!0,onClick:u},f("Login.QR.Cancel")),l&&l!==s&&m&&a.ZP.createElement(F.Z,{isText:!0,isLoading:p,onClick:P},m)))}))),ie=(0,a.X$)((0,t.c$)((e=>(0,f.ei)(e,["authState"])))((e=>{let{isActive:o,authState:r}=e;const{reset:d,initApi:s,returnToAuthPhoneNumber:i,goToAuthQrCode:u}=(0,t.Sv)();(0,a.d4)((()=>{o&&(d(),s())}),[o,d,s]);const c="iOS"===n.Lt||"Android"===n.Lt;(0,S.Z)({isActive:!c&&"authorizationStateWaitPhoneNumber"===r||c&&"authorizationStateWaitQrCode"===r,onBack:()=>{c?i():u()}}),(0,a.d4)((()=>(p.Z.disableRefresh(),()=>{p.Z.enableRefresh()})),[]);const l=(0,E.Z)("authorizationStateReady"!==r?r:void 0,!0);return a.ZP.createElement(P.Z,{activeKey:function(){switch(l){case"authorizationStateWaitCode":return 0;case"authorizationStateWaitPassword":return 1;case"authorizationStateWaitRegistration":return 2;case"authorizationStateWaitPhoneNumber":return 3;case"authorizationStateWaitQrCode":return 4;default:return c?3:4}}(),name:"fade",className:"Auth"},function(){switch(l){case"authorizationStateWaitCode":return a.ZP.createElement(X,null);case"authorizationStateWaitPassword":return a.ZP.createElement(Q,null);case"authorizationStateWaitRegistration":return a.ZP.createElement(ee,null);case"authorizationStateWaitPhoneNumber":return a.ZP.createElement(J,null);case"authorizationStateWaitQrCode":return a.ZP.createElement(se,null);default:return c?a.ZP.createElement(J,null):a.ZP.createElement(se,null)}}())}))),ue=(0,a.X$)((()=>{const e=(0,Y.Z)(q.gl.Main,"Main");return e?a.ZP.createElement(e,null):void 0})),ce=(0,a.X$)((e=>{const{isLocked:t}=e,n=(0,Y.Z)(q.gl.Main,"LockScreen",!t);return n?a.ZP.createElement(n,e):void 0})),le=i.p+"app-inactive.da3925145f0a7111c0f1.png",fe=()=>{const e=(0,a.I4)((()=>{window.location.reload()}),[]);return a.ZP.createElement("div",{id:"AppInactive"},a.ZP.createElement("div",{className:"content"},a.ZP.createElement("img",{src:le,alt:""}),a.ZP.createElement("h3",{className:"title"},"Such error, many tabs"),a.ZP.createElement("div",{className:"description"},"Telegram supports only one active tab with the app.",a.ZP.createElement("br",null),"Please reload this page to continue using this tab or close it."),a.ZP.createElement("div",{className:"actions"},a.ZP.createElement(F.Z,{isText:!0,ripple:!0,onClick:e},"Reload app"))))};var he=i(6137),me=i(22825),pe=i(11192),ge=i(31212),ve=i(69118),ye=i(40647);const be="KD2TsjdEc_LBLsR_ReWT",Ie="J5QD898gcautir6pK9xA",we=i.p+"telegram-logo.1b2bb5b107f046ea9325.svg",Ce=i.p+"reaction-thumbs.055e95b0046e542feaa8.png",Se=i.p+"reaction-thumbs-premium.b570d2dbbaff0a0fdeaa.png";var Ee=i(2092);function Pe(){const{listIds:e,byId:n}=(0,t.Rd)().chats;if(e.active)return Promise.all(e.active.slice(0,10).map((e=>{const t=n[e];if(!t)return;const o=(0,me.RT)(t);return o?ye.he(o,he.IU.BlobUrl):void 0})))}const ke={main:e=>Promise.all([(0,q.$y)(q.gl.Main,"Main").then(N),Pe(),(0,M.pt)(e?Se:Ce)]),authPhoneNumber:()=>Promise.all([N(),(0,M.pt)(we)]),authCode:()=>(0,M.pt)(k),authPassword:()=>(0,M.pt)(k),authQrCode:N,lock:()=>Promise.all([N(),(0,M.pt)(Ee)]),inactive:()=>{}},Me=(0,t.c$)((e=>{const t=(0,pe.Pu)(e);return{shouldSkipHistoryAnimations:e.shouldSkipHistoryAnimations,uiReadyState:e.uiReadyState,isRightColumnShown:(0,pe.Jf)(e),leftColumnWidth:e.leftColumnWidth,theme:t,isCurrentUserPremium:(0,pe.wV)(e)}}))((n=>{let{page:o,children:r,isRightColumnShown:d,shouldSkipHistoryAnimations:s,leftColumnWidth:i,theme:u,isCurrentUserPremium:c}=n;const{setIsUiReady:l}=(0,t.Sv)(),[f,h]=(0,w.Z)(),{shouldRender:m,transitionClassNames:p}=(0,ge.Z)(!f,void 0,!0);return(0,a.d4)((()=>{let e;return Promise.race([(0,ve.wO)(700),o?(async()=>{try{await ke[o](c)}catch(e){}})():Promise.resolve()]).then((()=>{h(),l({uiReadyState:1}),e=window.setTimeout((()=>{l({uiReadyState:2})}),1e3)})),()=>{e&&(clearTimeout(e),e=void 0),l({uiReadyState:0})}}),[]),a.ZP.createElement("div",{id:"UiLoader",className:be,style:`--theme-background-color: ${"dark"===u?e.It:e.p3}`},r,m&&!s&&Boolean(o)&&a.ZP.createElement("div",{className:(0,I.Z)("dDIGwEoHlINzvf7LzGwy",p)},"main"===o?a.ZP.createElement("div",{className:"jxcLmQWl6IklxyLBcFsv"},a.ZP.createElement("div",{className:"s_eiw3FJDNGVyMHHEr_w",style:i?`width: ${i}px`:void 0}),a.ZP.createElement("div",{className:(0,I.Z)("v5WSHYkqrlK9GvmSI1zN",be)}),d&&a.ZP.createElement("div",{className:"BlQSOI0qSg9HDzgQGwdw"})):"inactive"===o||"lock"===o?a.ZP.createElement("div",{className:(0,I.Z)(Ie,be)}):a.ZP.createElement("div",{className:Ie})))}));var Ae;!function(e){e[e.auth=0]="auth",e[e.lock=1]="lock",e[e.main=2]="main",e[e.inactive=3]="inactive"}(Ae||(Ae={}));const Ne=(0,t.c$)((e=>{var t,n;return{authState:e.authState,isScreenLocked:null===(t=e.passcode)||void 0===t?void 0:t.isScreenLocked,hasPasscode:null===(n=e.passcode)||void 0===n?void 0:n.hasPasscode}}))((o=>{let{authState:r,isScreenLocked:d,hasPasscode:s}=o;const{disconnect:i}=(0,t.Sv)(),[u,c]=(0,w.Z)(!1),l="iOS"===n.Lt||"Android"===n.Lt;let f,h;if((0,a.d4)((()=>{(0,p.z)(),y=()=>{i(),document.title=`${e.Ti}${e.ou}`,c()}}),[i,c]),(0,a.d4)((()=>{const e=document.body,t=e=>{e.preventDefault(),e.dataTransfer&&(e.target.dataset.dropzone?e.dataTransfer.dropEffect="copy":e.dataTransfer.dropEffect="none")},n=e=>{e.preventDefault()};return e.addEventListener("drop",n),e.addEventListener("dragover",t),e.addEventListener("dragenter",t),()=>{e.removeEventListener("drop",n),e.removeEventListener("dragover",t),e.removeEventListener("dragenter",t)}}),[]),u)f=Ae.inactive;else if(d)h="lock",f=Ae.lock;else if(r)switch(r){case"authorizationStateWaitPhoneNumber":h="authPhoneNumber",f=Ae.auth;break;case"authorizationStateWaitCode":h="authCode",f=Ae.auth;break;case"authorizationStateWaitPassword":h="authPassword",f=Ae.auth;break;case"authorizationStateWaitRegistration":f=Ae.auth;break;case"authorizationStateWaitQrCode":h="authQrCode",f=Ae.auth;break;case"authorizationStateClosed":case"authorizationStateClosing":case"authorizationStateLoggingOut":case"authorizationStateReady":h="main",f=Ae.main}else(0,m.ti)(!0)?(h="main",f=Ae.main):s?f=Ae.lock:(h=l?"authPhoneNumber":"authQrCode",f=Ae.auth);const g=(0,C.Z)(f);function v(e){switch(f){case Ae.auth:return a.ZP.createElement(ie,{isActive:e});case Ae.main:return a.ZP.createElement(ue,null);case Ae.lock:return a.ZP.createElement(ce,{isLocked:d});case Ae.inactive:return a.ZP.createElement(fe,null)}}return a.ZP.createElement(Me,{key:"Loader",page:h},a.ZP.createElement(P.Z,{name:"fade",activeKey:f,shouldCleanup:!0,className:(0,I.Z)("full-height",(f===Ae.auth||g===Ae.auth)&&"is-auth")},v))}));e.eM&&console.log(">>> INIT"),n.EA&&(0,u.e)(),(0,t.Sv)().init(),e.eM&&console.log(">>> START INITIAL RENDER"),function(){if(!n.jm)return;const t=document.getElementById("the-manifest-placeholder");if(!t)return;const o=`site_apple${e.eM?"_dev":""}.webmanifest`;t.setAttribute("href",o)}(),s.Z.render(a.ZP.createElement(Ne,null),document.getElementById("root")),e.eM&&console.log(">>> FINISH INITIAL RENDER"),e.eM&&document.addEventListener("dblclick",(()=>{console.warn("GLOBAL STATE",(0,t.Rd)())}))})()})(); //# sourceMappingURL=main.47a60be301fe1683cb44.js.map