tweb/public/147.40d5eeb3e14bc4686ebc.ch...

2 lines
35 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";(this.webpackChunktweb=this.webpackChunktweb||[]).push([[147],{4421:(e,t,s)=>{s.d(t,{Z:()=>a});var n=s(1655),i=s(6724),o=s(5003);const r=new Set(["NO_ENTRY_FOUND","STORAGE_OFFLINE","MIDDLEWARE","NO_AUTO_DOWNLOAD"]);class a{constructor(e=8){this.parallelLimit=e,this.queueId=0,this.queue=[],this.inProcess=new Set,this.lockPromise=null,this.unlockResolve=null,this.log=(0,o.kg)("LL",o.v9.Error),this.processQueue=(0,i.Z)((()=>this._processQueue()),8,!1)}clear(){this.inProcess.clear(),this.queue.length=0}lock(){this.lockPromise||(this.lockPromise=new Promise(((e,t)=>{this.unlockResolve=e})))}unlock(){this.unlockResolve&&(this.unlockResolve(),this.unlockResolve=this.lockPromise=null,this.processQueue())}processItem(e){return t=this,s=void 0,i=function*(){if(!this.lockPromise){this.inProcess.add(e);try{yield this.loadItem(e)}catch(e){r.has(null==e?void 0:e.type)||this.log.error("loadMediaQueue error:",e)}this.inProcess.delete(e),this.processQueue()}},new((n=void 0)||(n=Promise))((function(e,o){function r(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(t){var s;t.done?e(t.value):(s=t.value,s instanceof n?s:new n((function(e){e(s)}))).then(r,a)}l((i=i.apply(t,s||[])).next())}));var t,s,n,i}loadItem(e){return e.load()}getItem(){return this.queue.shift()}addElement(e,t){this.queue[e](t),this.processQueue()}_processQueue(e){if(!(!this.queue.length||this.lockPromise||this.parallelLimit>0&&this.inProcess.size>=this.parallelLimit))do{if(e?(0,n.Z)(this.queue,e):e=this.getItem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г:"g",ш:"sh",щ:"sch",з:"z",х:"h",ъ:"",Ф:"F",Ы:"I",В:"V",А:"A",П:"P",Р:"R",О:"O",Л:"L",Д:"D",Ж:"ZH",Э:"E",ф:"f",ы:"i",в:"v",а:"a",п:"p",р:"r",о:"o",л:"l",д:"d",ж:"zh",э:"e",Я:"Ya",Ч:"CH",С:"S",М:"M",И:"I",Т:"T",Ь:"",Б:"B",Ю:"YU",я:"ya",ч:"ch",с:"s",м:"m",и:"i",т:"t",ь:"",б:"b",ю:"yu"}},6690:(e,t,s)=>{function n(e){return[...new Set(e)]}s.d(t,{Z:()=>n})},7238:(e,t,s)=>{function n(e){return e.reduce(((e,t)=>(e.push(...t),e)),[])}s.d(t,{Z:()=>n})},7625:(e,t,s)=>{function n(e,t){for(let s=e.length-1;s>=0;--s)t(e[s],s,e)}s.d(t,{Z:()=>n})},6519:(e,t,s)=>{function n(e,t,s,n){if("function"!=typeof s){const e=s;s=t=>t[e]}const i=s(t);if(void 0===n&&-1!==(n=e.indexOf(t))){const t=e[n-1],o=e[n+1];if((!t||s(t)>=i)&&(!o||s(o)<=i))return n;e.splice(n,1)}const o=e.length;if(!o||i<=s(e[o-1]))return e.push(t)-1;if(i>=s(e[0]))return e.unshift(t),0;for(let n=0;n<o;n++)if(i>s(e[n]))return e.splice(n,0,t),n;return console.error("wtf",e,t),e.indexOf(t)}s.d(t,{Z:()=>n})},8938:(e,t,s)=>{function n(e){}s.d(t,{Z:()=>n})},3019:(e,t,s)=>{function n(e,t){return new Promise((s=>{const n=new FileReader;n.addEventListener("loadend",(e=>{s(e.target.result)})),n[t](e)}))}s.d(t,{Z:()=>n})},9895:(e,t,s)=>{function n(e,t){const s=e.length;if(s!==t.length)return!1;for(let n=0;n<s;++n)if(e[n]!==t[n])return!1;return!0}s.d(t,{Z:()=>n})},3306:(e,t,s)=>{function n(e){const t=e.length,s=new Uint8Array(Math.ceil(t/2));let n=0;t%2&&(s[n++]=parseInt(e.charAt(0),16));for(let i=n;i<t;i+=2)s[n++]=parseInt(e.substr(i,2),16);return s}s.d(t,{Z:()=>n})},9818:(e,t,s)=>{function n(e){return e instanceof Uint8Array?e:"string"==typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}s.d(t,{Z:()=>n})},6654:(e,t,s)=>{function n(e,t){return e instanceof Promise?e.then(t):t(e)}s.d(t,{Z:()=>n})},2202:(e,t,s)=>{s.d(t,{Z:()=>o});var n=s(2219);let i=0;function o(e){let t;const s=null==e?void 0:e.type;if(s){const e=`${n.Z}_${i++}.${s.split("/")[1]}`;t=["image/jpeg","image/png","image/bmp"].indexOf(s)>=0?"photo"+e:0===s.indexOf("audio/")||["video/ogg"].indexOf(s)>=0?"audio"+e:0===s.indexOf("video/")?"video"+e:"document"+e}else t=`upload-${n.Z}_${i++}`;return t}},3624:(e,t,s)=>{s.d(t,{k:()=>r});var n=s(1655);const i=(0,s(5471).Z)("MIDDLEWARE");class o{constructor(){this.details={cleaned:!1,inner:[],onCleanCallbacks:[]},this.onDestroyCallbacks=[],this.onDestroy=e=>{if(this.destroyed)return e();this.onDestroyCallbacks.push(e)}}clean(){const e=this.details;e.cleaned=!0,e.inner.splice(0,e.inner.length).forEach((e=>e.destroy())),e.onCleanCallbacks.splice(0,e.onCleanCallbacks.length).forEach((e=>e())),this.details={cleaned:!1,inner:[],onCleanCallbacks:[]}}destroy(){this.destroyed=!0,this.clean(),this.onDestroyCallbacks.splice(0,this.onDestroyCallbacks.length).forEach((e=>e())),this.parent&&((0,n.Z)(this.parent.details.inner,this),this.parent=void 0)}get(e){const t=this.details,s=()=>!t.cleaned&&(!e||e());return s.create=()=>{if(!s())throw i;const e=r();return e.parent=this,t.inner.push(e),e},s.onClean=e=>{if(!s())return e();t.onCleanCallbacks.push(e)},s.onDestroy=this.onDestroy,s}}function r(){return new o}},8027:(e,t,s)=>{function n(e,t){const s={writable:!0,configurable:!0},n={};t.forEach((t=>{e.hasOwnProperty(t)||(n[t]=s)})),Object.defineProperties(e,n)}s.d(t,{Z:()=>n})},9750:(e,t,s)=>{function n(e,t){const s=t.split(".");let n=e;return s.forEach((e=>{e&&(n=n[e])})),n}s.d(t,{Z:()=>n})},7401:(e,t,s)=>{function n(e,t="asc"){if(!e)return[];const s=e instanceof Map?[...e.keys()]:Object.keys(e).map((e=>+e));return"asc"===t?s.sort(((e,t)=>e-t)):s.sort(((e,t)=>t-e))}s.d(t,{Z:()=>n})},5701:(e,t,s)=>{s.d(t,{Z:()=>o});var n=s(6761),i=s(319);function o(e,t,s=!0,o=!0){let r,a,l,c,u=!1;const h=t=>{const s=l,n=c;try{s(e.apply(null,t))}catch(e){console.error("debounce error",e),n(e)}},d=(...e)=>{a||(a=new Promise(((e,t)=>(l=e,c=t)))),r?(clearTimeout(r),u=!0,c(),a=new Promise(((e,t)=>(l=e,c=t)))):s&&(h(e),u=!1);const d=n.Z.setTimeout((()=>{!o||s&&!u||h(e),r===d&&(r=a=l=c=void 0,u=!1)}),t);return r=d,a.catch(i.Z),a};return d.clearTimeout=()=>{r&&(n.Z.clearTimeout(r),c(),r=a=l=c=void 0,u=!1)},d.isDebounced=()=>!!r,d}},252:(e,t,s)=>{s.d(t,{D:()=>n,Z:()=>a});var n,i=s(410),o=s(1655);function r(e,t){if(e.toExponential){const s=e-t;return s<0?-1:s>0?1:0}return function(e,t){const s=e.length;if(s!==t.length){const e=s-t.length;return e<0?-1:e>0?1:0}for(let n=0;n<s;n+=15){const s=+e.slice(n,n+15)-+t.slice(n,n+15);if(s)return s}return 0}(e,t)}!function(e){e[e.None=0]="None",e[e.Top=1]="Top",e[e.Bottom=2]="Bottom",e[e.Both=3]="Both"}(n||(n={}));class a{constructor(){this.sliceConstructor=a.getSliceConstructor(this);const e=this.constructSlice();this.slices=[e]}static getSliceConstructor(e){return class extends Array{constructor(){super(...arguments),this.end=n.None}isEnd(t){if((this.end&t)===t)return!0;let s=!1;if(t===n.Top){const n=e.last;s=!!(n.end&t)&&this.includes(n[n.length-1])}else if(t===n.Bottom){const n=e.first;s=!!(n.end&t)&&this.includes(n[0])}else if(t===n.Both)return this.isEnd(n.Top)&&this.isEnd(n.Bottom);return s&&this.setEnd(t),s}getEnds(){return{top:this.isEnd(n.Top),bottom:this.isEnd(n.Bottom),both:this.isEnd(n.Both)}}setEnd(e){this.end|=e}unsetEnd(e){this.end&=~e}splice(t,s,...i){const o=super.splice(t,s,...i);if(!this.length){const t=e.slices,s=t.indexOf(this);-1!==s&&(1===t.length?this.unsetEnd(n.Both):t.splice(s,1))}return o}}}constructSlice(...e){const t=new this.sliceConstructor(e.length);for(let s=0,n=e.length;s<n;++s)t[s]=e[s];return t}insertSlice(e,t=!0){if(!e.length)return;const s=this.slices[0];if(!s.length)return s.push(...e),s;const n=e[e.length-1],i=e[0];let o,a=-1,l=-1,c=0;for(;c<this.slices.length&&(o=this.slices[c],a=o.indexOf(n),l=o.indexOf(i),-1===l||-1===a)&&-1===l&&-1===a;++c);if(-1!==l&&-1!==a);else if(-1!==l){const t=e.slice(o.length-l);o.push(...t)}else if(-1!==a){const t=e.slice(0,e.length-a-1);o.unshift(...t)}else{let t=0;for(const s=this.slices.length;t<s;++t){const s=this.slices[t];if(1===r(e[0],s[0]))break}this.slices.splice(t,0,this.constructSlice(...e)),c=t}return t?this.flatten(c):void 0}flatten(e){if(this.slices.length>=2)for(let t=0,s=this.slices.length;t<s-1;++t){const n=this.slices[t],i=this.slices[t+1];-1!==n.indexOf(i[0])&&(n.setEnd(i.end),this.slices.splice(t+1,1),t<e&&--e,--s,--t,this.insertSlice(i,!1))}return this.slices[e]}get first(){return this.slices[0]}get last(){return this.slices[this.slices.length-1]}get slice(){return this.first}get length(){return this.slice.length}findSlice(e){for(let t=0,s=this.slices.length;t<s;++t){const s=this.slices[t],n=s.indexOf(e);if(-1!==n)return{slice:s,index:n}}}findSliceOffset(e){let t;for(let s=0;s<this.slices.length;++s){let n=0;if(t=this.slices[s],!(t.length<2))for(;n<t.length;++n)if(r(e,t[n])>=0)return{slice:t,offset:e===t[n]?n:n-1}}if(t&&t.isEnd(n.Top))return{slice:t,offset:t.length}}sliceMe(e,t,s){let i=this.slice,o=0,r=0;if(e){const t=this.findSliceOffset(e);if(!t)return;i=t.slice,o=r=t.offset,i.includes(e)&&(r+=1)}const a=Math.max(r+t,0),l=r+t+s,c=i.slice(a,l),u=t<0?s+t:s,h=Math.abs(t),d=i.length-r>=u||!!i.isEnd(n.Top)&&(c.setEnd(n.Top),!0),f=r-h>=0||!!i.isEnd(n.Bottom)&&(c.setEnd(n.Bottom),!0);return{slice:c,offsetIdOffset:o,fulfilled:n.None|(d&&f?n.Both:(d?n.Top:n.None)|(f?n.Bottom:n.None))}}unshift(...e){let t=this.first;t.length?t.isEnd(n.Bottom)||(t=this.constructSlice(),t.setEnd(n.Bottom),this.slices.unshift(t)):t.setEnd(n.Bottom),t.unshift(...e)}push(...e){let t=this.last;t.length?t.isEnd(n.Top)||(t=this.constructSlice(),t.setEnd(n.Top),this.slices.push(t)):t.setEnd(n.Top),t.push(...e)}delete(e){const t=this.findSlice(e);return!!t&&(t.slice.splice(t.index,1),!0)}deleteSlice(e){(0,o.Z)(this.slices,e)}toJSON(){const e={slices:this.slices.map((e=>({values:e.slice(),isEnd:e.getEnds()})))};return JSON.stringify(e)}static fromJSON(e){const t=JSON.parse(e),s=new a;return t.slices.forEach((e=>{const t=s.insertSlice(e.values)||s.first;e.isEnd.top&&t.setEnd(n.Top),e.isEnd.bottom&&t.setEnd(n.Bottom)})),s}}i.GO&&(i.GO.SlicedArray=a)},8794:(e,t,s)=>{s.d(t,{Z:()=>i});var n=s(1507);function i(e){return e.icons.find((e=>e.name===n.BP))}},2566:(e,t,s)=>{s.d(t,{Z:()=>i});var n=s(2946);function i(e){return e.peer?(0,n.Z)(e.peer):e.user_id.toPeerId()}},7120:(e,t,s)=>{function n(e,t,s,n){if(!e)return!1;if(e.pFlags.deactivated&&"view_messages"!==t)return!1;const i=void 0===s;if(e.pFlags.creator&&i)return!0;if("chatForbidden"===e._||"channelForbidden"===e._||e.pFlags.left&&!e.pFlags.megagroup)return!1;if(!s&&!(s=e.admin_rights||e.banned_rights||e.default_banned_rights))return!1;let o={};s&&(o=s.pFlags);const r="chatAdminRights"===s._;switch(t){case"embed_links":case"send_games":case"send_gifs":case"send_inline":case"send_media":case"send_messages":case"send_polls":case"send_stickers":case"send_photos":case"send_videos":case"send_roundvideos":case"send_audios":case"send_voices":case"send_docs":case"send_plain":if(!n&&e.pFlags.left)return!1;if("chatBannedRights"===s._&&o[t])return!1;if("channel"===e._&&!e.pFlags.megagroup&&!o.post_messages)return!1;break;case"delete_messages":case"manage_call":return!!o[t];case"pin_messages":return r?o[t]||!!o.post_messages:!o[t];case"change_info":case"invite_users":return r?!!o[t]:!o[t];case"change_type":case"delete_chat":return!1;case"edit_messages":case"manage_topics":return r&&!!o[t];case"ban_users":case"change_permissions":return r&&!!o.ban_users;case"view_participants":return!("chat"!==e._&&e.pFlags.broadcast&&!e.pFlags.creator&&!e.admin_rights)}return!0}s.d(t,{Z:()=>n})},8050:(e,t,s)=>{s.d(t,{Z:()=>i});var n=s(3385);function i(e,t=(0,n.Z)(e.folder_id)){return null==e?void 0:e[t]}},3385:(e,t,s)=>{function n(e=0){return`index_${e}`}s.d(t,{Z:()=>n})},6658:(e,t,s)=>{s.d(t,{Z:()=>i});var n=s(7072);function i(e,t,s,i){const o=(0,n.Z)(e,null==t?void 0:t.type);let r;return r="photoSize"===(null==t?void 0:t._)?e.sticker?"image/webp":e.mime_type.startsWith("image/")?e.mime_type:"image/jpeg":e.mime_type||"application/octet-stream",{dcId:e.dc_id,location:o,size:t?t.size:e.size,mimeType:r,fileName:e.file_name,queueId:s,onlyCache:i}}},7072:(e,t,s)=>{function n(e,t){return{_:"inputDocumentFileLocation",id:e.id,access_hash:e.access_hash,file_reference:e.file_reference,thumb_size:t}}s.d(t,{Z:()=>n})},7086:(e,t,s)=>{s.d(t,{Z:()=>i});var n=s(8801);function i(e){return(0,n.P)(e.location,e)}},1243:(e,t,s)=>{s.d(t,{Z:()=>a});var n=s(6658),i=s(7667),o=s(3114),r=s(7086);function a(e){const{media:t,thumb:s,queueId:a,onlyCache:l}=e;let c;var u;return"document"===t._?c=(0,n.Z)(t,s,a,l):"photo"===t._?c=(0,i.Z)(t,s,a,l):(0,o.Z)(t)&&(c={dcId:0,location:{_:"inputWebFileLocation",access_hash:(u=t).access_hash,url:u.url},size:u.size,mimeType:u.mime_type}),c.downloadId=e.downloadId,{fileName:(0,r.Z)(c),downloadOptions:c}}},6034:(e,t,s)=>{s.d(t,{Z:()=>o});var n=s(6848),i=s(5880);function o(e,t){if(typeof e!=typeof t)return!1;if(!(0,i.Z)(e))return!0;if(e._!==t._)return!1;if("draftMessage"===e._&&t._===e._){if(e.reply_to_msg_id!==t.reply_to_msg_id)return!1;if(!(0,n.Z)(e.entities,t.entities))return!1;if(e.message!==t.message)return!1;if(e.pFlags.no_webpage!==t.pFlags.no_webpage)return!1}return!0}},515:(e,t,s)=>{function n(e,t){return e+"_"+t}s.d(t,{Z:()=>n})},3781:(e,t,s)=>{s.d(t,{Z:()=>i});var n=s(7082);function i(e){const t=n.t;return e>=t?e:t+e*n.o}},6566:(e,t,s)=>{s.d(t,{Z:()=>i});var n=s(2342);function i(e,t,s){if("inputMessagesFilterEmpty"===e)return t;const i=[];if(!t.length)return i;let o=!0;const r={},a=[],l=[];switch(e){case"inputMessagesFilterPhotos":r.messageMediaPhoto=!0;break;case"inputMessagesFilterPhotoVideo":r.messageMediaPhoto=!0,r.messageMediaDocument=!0,a.push("video");break;case"inputMessagesFilterVideo":r.messageMediaDocument=!0,a.push("video");break;case"inputMessagesFilterDocument":r.messageMediaDocument=!0,a.push(void 0,"photo","pdf");break;case"inputMessagesFilterVoice":r.messageMediaDocument=!0,a.push("voice");break;case"inputMessagesFilterRoundVoice":r.messageMediaDocument=!0,a.push("round","voice");break;case"inputMessagesFilterRoundVideo":r.messageMediaDocument=!0,a.push("round");break;case"inputMessagesFilterMusic":r.messageMediaDocument=!0,a.push("audio");break;case"inputMessagesFilterUrl":r.url=!0;break;case"inputMessagesFilterChatPhotos":r.avatar=!0;break;default:o=!1}if(!o)return i;for(let e=0,o=t.length;e<o;++e){const o=t[e];if(!o)continue;let c=!1;if("message"===o._){if(o.media&&r[o.media._]){const e=o.media.document;if(e&&(a.length&&!a.includes(e.type)||l.includes(e.type)))continue;c=!0}else if(r.url&&o.message){const e=["messageEntityTextUrl","messageEntityUrl"];(o.totalEntities.find((t=>e.includes(t._)))||(0,n.Z)(o.message))&&(c=!0)}}else r.avatar&&o.action&&["messageActionChannelEditPhoto","messageActionChatEditPhoto","messageActionChannelEditVideo","messageActionChatEditVideo"].includes(o.action._)&&(c=!0);if(c&&(i.push(o),i.length>=s))break}return i}},2381:(e,t,s)=>{s.d(t,{Z:()=>i});var n=s(8938);function i(e){let t,s=0;for(const i of e)if((0,n.Z)(i),i.message){if(++s>1)break;t=i}return s>1&&(t=void 0),t}},4993:(e,t,s)=>{s.d(t,{Z:()=>i});var n=s(1507);function i(e,t){var s;let i;const o=e.reply_to;return!o||t&&!o.pFlags.forum_topic?t&&(i="messageService"===e._&&"messageActionTopicCreate"===(null===(s=e.action)||void 0===s?void 0:s._)?e.mid:n.Ox):i=o.reply_to_top_id||o.reply_to_msg_id,i}},5102:(e,t,s)=>{function n(e){if(!e)return[];const t=e.usernames;return t?t.filter((e=>e.pFlags.active)).map((e=>e.username)):e.username?[e.username]:[]}s.d(t,{Z:()=>n})},7256:(e,t,s)=>{s.d(t,{Z:()=>i});var n=s(7419);function i(e){if(e&&!(0,n.Z)(e))return null==e?void 0:e.photo}},7419:(e,t,s)=>{s.d(t,{Z:()=>i});var n=s(677);function i(e){const t=null==e?void 0:e.restriction_reason;return!!(t&&e.pFlags.restricted&&(0,n.X)(t))}},7667:(e,t,s)=>{function n(e,t,s,n){const i="document"===e._;if(!t||"photoSizeEmpty"===t._)throw new Error("photoSizeEmpty!");const o=!("photoSize"!==t._&&"photoSizeProgressive"!==t._||!e.access_hash||!e.file_reference),r={_:i?"inputDocumentFileLocation":"inputPhotoFileLocation",id:e.id,access_hash:e.access_hash,file_reference:e.file_reference,thumb_size:t.type};return{dcId:e.dc_id,location:r,size:o?t.size:void 0,mimeType:"image/jpeg",queueId:s,onlyCache:n}}s.d(t,{Z:()=>n})},5285:(e,t,s)=>{s.d(t,{Z:()=>i});var n=s(6848);function i(e,t){return(0,n.Z)(e,t)}},13:(e,t,s)=>{function n(e){var t;return null===(t=e.video_thumbs)||void 0===t?void 0:t[0]}s.d(t,{Z:()=>n})},8493:(e,t,s)=>{s.d(t,{Z:()=>i});var n=s(1507);function i(e){return!(!e||e.pFlags.deleted||e.id.toPeerId()===n.hj)}},3114:(e,t,s)=>{function n(e){return!(!e||"webDocument"!==e._&&"webDocumentNoProxy"!==e._)}s.d(t,{Z:()=>n})},9174:(e,t,s)=>{var n;s.d(t,{Q:()=>n}),function(e){e[e.Connected=0]="Connected",e[e.Connecting=1]="Connecting",e[e.Closed=2]="Closed",e[e.TimedOut=3]="TimedOut"}(n||(n={}))},6875:(e,t,s)=>{s.d(t,{Z:()=>i});const n=new Set(["messageEntityBold","messageEntityItalic","messageEntityCode","messageEntityPre","messageEntityUnderline","messageEntityStrike","messageEntityBlockquote","messageEntitySpoiler"]);function i(e){for(let t=0;t<e.length;++t){const s=e[t];let i=-1;do{if(i=e.findIndex(((e,i)=>n.has(e._)&&i!==t&&e._===s._&&e.offset-s.length===s.offset)),-1!==i){const t=e[i];s.length+=t.length,e.splice(i,1)}}while(-1!==i)}}},1379:(e,t,s)=>{function n(e,t){const s=e.slice(0,t.offset),n=function(e){const t="⠁⠂⠄⠈⠐⠠⡀⢀⠃⠅⠆⠉⠊⠌⠑⠒⠔⠘⠡⠢⠤⠨⠰⡁⡂⡄⡈⡐⡠⢁⢂⢄⢈⢐⢠⣀⠇⠋⠍⠎⠓⠕⠖⠙⠚⠜⠣⠥⠦⠩⠪⠬⠱⠲⠴⠸⡃⡅⡆⡉⡊⡌⡑⡒⡔⡘⡡⡢⡤⡨⡰⢃⢅⢆⢉⢊⢌⢑⢒⢔⢘⢡⢢⢤⢨⢰⣁⣂⣄⣈⣐⣠⠏⠗⠛⠝⠞⠧⠫⠭⠮⠳⠵⠶⠹⠺⠼⡇⡋⡍⡎⡓⡕⡖⡙⡚⡜⡣⡥⡦⡩⡪⡬⡱⡲⡴⡸⢇⢋⢍⢎⢓⢕⢖⢙⢚⢜⢣⢥⢦⢩⢪⢬⢱⢲⢴⢸⣃⣅⣆⣉⣊⣌⣑⣒⣔⣘⣡⣢⣤⣨⣰⠟⠯⠷⠻⠽⠾⡏⡗⡛⡝⡞⡧⡫⡭⡮⡳⡵⡶⡹⡺⡼⢏⢗⢛⢝⢞⢧⢫⢭⢮⢳⢵⢶⢹⢺⢼⣇⣋⣍⣎⣓⣕⣖⣙⣚⣜⣣⣥⣦⣩⣪⣬⣱⣲⣴⣸⠿⡟⡯⡷⡻⡽⡾⢟⢯⢷⢻⢽⢾⣏⣗⣛⣝⣞⣧⣫⣭⣮⣳⣵⣶⣹⣺⣼⡿⢿⣟⣯⣷⣻⣽⣾⣿",s=t.length,n=[];for(let i=0;i<e.length;++i){const o=e.charCodeAt(i);n.push(t[o%s])}return n.join("")}(e.slice(t.offset,t.offset+t.length)),i=e.slice(t.offset+t.length);return{text:e=s+n+i,entityText:n}}s.d(t,{Z:()=>n})},8859:(e,t,s)=>{s.d(t,{Z:()=>o});var n=s(2423);const i=new Set(["messageEntityPre","messageEntityCode"]);function o(e,t){let s=-1;return e.find((e=>(i.has(e._)&&(s=e.offset+e.length),t.offset<s&&!n.He.has(t._)||(t._===e._||!n.tY.has(t._)&&!n.tY.has(e._))&&(t.offset>=e.offset&&t.length+t.offset<=e.length+e.offset))))}},7746:(e,t,s)=>{function n(e,t){return e.replace(/[\u2640\u2642\u2764](?!\ufe0f)/g,((e,s,n)=>{if(t){const n=e.length;s+=n,t.forEach((e=>{const t=e.offset+e.length;t===s?e.length+=n:t>s&&(e.offset+=n)}))}return e+""}))}s.d(t,{Z:()=>n})},2342:(e,t,s)=>{s.d(t,{Z:()=>i});var n=s(2423);function i(e){return e?e.match(n.it):null}},6241:(e,t,s)=>{s.d(t,{Z:()=>o});var n=s(8859),i=s(1346);function o(e,t){const s=t.filter((t=>!(0,n.Z)(e,t)));e.push(...s),(0,i.Z)(e);for(let t=0;t<e.length;++t){const s=e[t];if("messageEntityEmoji"===s._){const n=e[t+1];n&&n.offset<s.offset+s.length&&(s.length=n.offset-s.offset)}}return e}},6535:(e,t,s)=>{s.d(t,{Z:()=>c});var n=s(2423);const i=["abogado","ac","academy","accountants","active","actor","ad","adult","ae","aero","af","ag","agency","ai","airforce","al","allfinanz","alsace","am","amsterdam","an","android","ao","apartments","aq","aquarelle","ar","archi","army","arpa","as","asia","associates","at","attorney","au","auction","audio","autos","aw","ax","axa","az","ba","band","bank","bar","barclaycard","barclays","bargains","bayern","bb","bd","be","beer","berlin","best","bf","bg","bh","bi","bid","bike","bingo","bio","biz","bj","black","blackfriday","bloomberg","blue","bm","bmw","bn","bnpparibas","bo","boo","boutique","br","brussels","bs","bt","budapest","build","builders","business","buzz","bv","bw","by","bz","bzh","ca","cab","cal","camera","camp","cancerresearch","canon","capetown","capital","caravan","cards","care","career","careers","cartier","casa","cash","cat","catering","cc","cd","center","ceo","cern","cf","cg","ch","channel","chat","cheap","christmas","chrome","church","ci","citic","city","ck","cl","claims","cleaning","click","clinic","clothing","club","cm","cn","co","coach","codes","coffee","college","cologne","com","community","company","computer","condos","construction","consulting","contractors","cooking","cool","coop","country","cr","credit","creditcard","cricket","crs","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cz","dabur","dad","dance","dating","day","dclk","de","deals","degree","delivery","democrat","dental","dentist","desi","design","dev","diamonds","diet","digital","direct","directory","discount","dj","dk","dm","dnp","do","docs","domains","doosan","durban","dvag","dz","eat","ec","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","equipment","er","es","esq","estate","et","eu","eurovision","eus","events","everbank","exchange","expert","exposed","fail","farm","fashion","feedback","fi","finance","financial","firmdale","fish","fishing","fit","fitness","fj","fk","flights","florist","flowers","flsmidth","fly","fm","fo","foo","forsale","foundation","fr","frl","frogans","fund","furniture","futbol","ga","gal","gallery","garden","gb","gbiz","gd","ge","gent","gf","gg","ggee","gh","gi","gift","gifts","gives","gl","glass","gle","global","globo","gm","gmail","gmo","gmx","gn","goog","google","gop","gov","gp","gq","gr","graphics","gratis","green","gripe","gs","gt","gu","guide","guitars","guru","gw","gy","hamburg","hangout","haus","healthcare","help","here","hermes","hiphop","hiv","hk","hm","hn","holdings","holiday","homes","horse","host","hosting","house","how","hr","ht","hu","ibm","id","ie","ifm","il","im","immo","immobilien","in","industries","info","ing","ink","institute","insure","int","international","investments","io","iq","ir","irish","is","it","iwc","jcb","je","jetzt","jm","jo","jobs","joburg","jp","juegos","kaufen","kddi","ke","kg","kh","ki","kim","kitchen","kiwi","km","kn","koeln","kp","kr","krd","kred","kw","ky","kyoto","kz","la","lacaixa","land","lat","latrobe","lawyer","lb","lc","lds","lease","legal","lgbt","li","lidl","life","lighting","limited","limo","link","lk","loans","london","lotte","lotto","lr","ls","lt","ltda","lu","luxe","luxury","lv","ly","ma","madrid","maison","management","mango","market","marketing","marriott","mc","md","me","media","meet","melbourne","meme","memorial","menu","mg","mh","miami","mil","mini","mk","ml","mm","mn","mo","mobi","moda","moe","monash","money","mormon","mortgage","moscow","motorcycles","mov","mp","mq","mr","ms","mt","mu","museum","mv","mw","mx","my","mz","na","nagoya","name","navy","nc","ne","net","network","neustar","new","nexus","nf","ng","ngo","nhk","ni","nico","ninja","nl","no","np","nr","nra","nrw","ntt","nu","nyc","nz","okinawa","om","one","ong","onl","ooo","org","organic","osaka","otsuka","ovh","pa","paris","partners","parts","party","pe","pf","pg","ph","pharmacy","photo","photography","photos","physio","pics","pictures","pink","pizza","pk","pl","place","plumbing","pm","pn","pohl","poker","porn","post","pr","praxi","press","pro","prod","productions","prof","properties","property","ps","pt","pub","pw","py","qa","qpon","quebec","re","realtor","recipes","red","rehab","reise","reisen","reit","ren","rentals","repair","report","republican","rest","restaurant","reviews","rich","rio","rip","ro","rocks","rodeo","rs","rsvp","ru","ruhr","rw","ryukyu","sa","saarland","sale","samsung","sarl","saxo","sb","sc","sca","scb","schmidt","schule","schwarz","science","scot","sd","se","services","sew","sexy","sg","sh","shiksha","shoes","shriram","si","singles","sj","sk","sky","sl","sm","sn","so","social","software","sohu","solar","solutions","soy","space","spiegel","sr","st","style","su","supplies","supply","support","surf","surgery","suzuki","sv","sx","sy","sydney","systems","sz","taipei","tatar","tattoo","tax","tc","td","technology","tel","temasek","tennis","tf","tg","th","tienda","tips","tires","tirol","tj","tk","tl","tm","tn","to","today","tokyo","tools","top","toshiba","town","toys","tp","tr","trade","training","travel","trust","tt","tui","tv","tw","tz","ua","ug","uk","university","uno","uol","us","uy","uz","va","vacations","vc","ve","vegas","ventures","versicherung","vet","vg","vi","viajes","video","villas","vision","vlaanderen","vn","vodka","vote","voting","voto","voyage","vu","wales","wang","watch","webcam","website","wed","wedding","wf","whoswho","wien","wiki","williamhill","wme","work","works","world","ws","wtc","wtf","佛山","集团","在线","한국","ভারত","八卦","موقع","公益","公司","移动","我爱你","москва","қаз","онлайн","сайт","срб","淡马锡","орг","삼성","சிங்கப்பூர்","商标","商店","商城","дети","мкд","中文网","中信","中国","中國","谷歌","భారత్","ලංකා","ભારત","भारत","网店","संगठन","网络","укр","香港","台湾","台灣","手机","мон","الجزائر","عمان","ایران","امارات","بازار","الاردن","بھارت","المغرب","السعودية","مليسيا","شبكة","გე","机构","组织机构","ไทย","سورية","рус","рф","تونس","みんな","グーグル","世界","ਭਾਰਤ","网址","游戏","vermögensberater","vermögensberatung","企业","مصر","قطر","广东","இலங்கை","இந்தியா","新加坡","فلسطين","政务","xxx","xyz","yachts","yandex","ye","yoga","yokohama","youtube","yt","za","zip","zm","zone","zuerich","zw"];function o(e){for(var t=e.length,s=e.split("(").length-1,n=e.split(")").length-1;n>s&&")"===e.charAt(t-1);)e=e.substr(0,t-1),n--,t--;return s>n&&(e=e.replace(/\)+$/,"")),e}var r=s(3447),a=s(671);function l(e){const t=(0,a.N0)(e).replace(/-?fe0f/g,"");if(r.Z.hasOwnProperty(t))return t}function c(e){let t,s=e;const r=[];let a,c=0;for(n.$2.lastIndex=0;t=s.match(n.$2);){if(a=c+t.index,t[3])r.push({_:"messageEntityMention",offset:a+t[1].length,length:t[2].length+t[3].length});else if(t[4])if(n.E.test(t[4]))r.push({_:"messageEntityEmail",offset:a,length:t[4].length});else{let e,s=t[5];const n=t[6];if(n){if(s||"xn--"!==n.substr(0,4)&&-1===i.indexOf(n.toLowerCase())||(s="http://"),s){const n=o(t[4]);n.length!==t[4].length&&(t[4]=n),e=(t[5]?"":s)+t[4]}}else e=(t[5]?"":"http://")+t[4];e&&r.push({_:"messageEntityUrl",offset:a,length:t[4].length})}else if(t[7])r.push({_:"messageEntityLinebreak",offset:a,length:1});else if(t[8]){const e=l(t[8]);e&&r.push({_:"messageEntityEmoji",offset:a,length:t[8].length,unicode:e})}else if(t[11])r.push({_:"messageEntityHashtag",offset:a+(t[10]?t[10].length:0),length:t[11].length});else if(t[13])r.push({_:"messageEntityBotCommand",offset:a+(t[11]?t[11].length:0)+(t[12]?t[12].length:0),length:1+t[13].length+(t[14]?1+t[14].length:0),unsafe:!0});else if(t[16]){const e=t[16],s=e.split(":"),n=s.length,i=3===n?+s[0]:0,o=+s[3===n?1:0],l=+s[n-1];r.push({_:"messageEntityTimestamp",offset:a+(/\D/.test(t[0][0])?1:0),length:e.length,raw:e,time:3600*i+60*o+l})}s=s.substr(t.index+t[0].length),c+=t.index+t[0].length}return r}},2821:(e,t,s)=>{s.d(t,{Z:()=>a});var n=s(2423),i=s(6875),o=s(8859),r=s(6241);function a(e,t,s){const a=[];let l=!1;const c=e=>(0,o.Z)(t,e)?l=!1:(a.push(e),l=!0),u=[];let h,d=0;for(;h=e.match(n.QB);){const t=d+h.index;u.push(e.substr(0,h.index));const s=h[3]||h[8]||h[11]||h[13];let i;if(d-=s.length,d+=s.length,l=!1,s.match(/^`*$/))u.push(h[0]);else if(h[3])i={_:"messageEntityPre",language:"",offset:t+h[1].length,length:s.length},c(i)&&("\n"===h[5]&&(h[5]="",d-=1),u.push(h[1]+s+h[5]),d-=h[2].length+h[4].length);else if(h[7]){const e=""===h[6];i={_:n.SC[h[7]],offset:t+(e?0:h[6].length),length:s.length},c(i)&&(e?u.push(s):u.push(h[6]+s+h[9]),d-=2*h[7].length+(e?2:0))}else h[11]?(i={_:"messageEntityMentionName",user_id:h[10].toUserId(),offset:t,length:s.length},c(i)&&(u.push(s),d-=h[0].length-s.length)):h[12]&&(i={_:"messageEntityTextUrl",url:h[14],offset:t,length:s.length},c(i)&&(u.push(s),d-=h[12].length-s.length));l||u.push(h[0]),e=e.substr(h.index+h[0].length),d+=h.index+h[0].length}u.push(e);let f=u.join("");f.replace(/\s+/g,"").length||(f=e,a.splice(0,a.length)),(0,r.Z)(t,a),(0,i.Z)(t);let g=f.length;if(!s){f=f.replace(/^\s*/,"");let e=g-f.length;e&&t.forEach((t=>{t.offset=Math.max(0,t.offset-e)})),f=f.replace(/\s*$/,""),e=g-f.length,g=f.length,e&&t.forEach((e=>{e.offset+e.length>g&&(e.length=g-e.offset)}))}return f}},1346:(e,t,s)=>{function n(e){e.sort(((e,t)=>e.offset-t.offset||t.length-e.length))}s.d(t,{Z:()=>n})},2491:(e,t,s)=>{s.d(t,{Z:()=>i});var n=s(1379);function i(e,t=[]){return t.forEach((t=>{"messageEntitySpoiler"===t._&&(e=(0,n.Z)(e,t).text)})),e}},7381:(e,t,s)=>{s.d(t,{Z:()=>o});var n=s(467),i=s(7238);class o{constructor(e,t=0){this.options=e,this.minChars=t,this.fullTexts=new Map}indexObject(e,t){if(this.options&&t.trim()&&(t=(0,n.gV)(t,this.options)),!t)return this.fullTexts.delete(e),!1;this.fullTexts.set(e,t)}_search(e){const t=[],s=this.fullTexts,n=e.split(" "),i=n.length;return s.forEach(((e,s)=>{let o=!0,r=0;for(let t=0;t<i;++t){const s=n[t],i=e.indexOf(s);if(-1===i||0!==i&&" "!==e[i-1]){o=!1;break}r+=s.length}if(o){r+=i-1;const n=e.length;(this.minChars<=r||n<=r)&&t.push({fullText:e,fullTextLength:n,what:s,foundChars:r})}})),t}search(e){this.options&&(e=(0,n.gV)(e,this.options));const t=e.split(""),s=(0,i.Z)(t.map((e=>this._search(e))));return s.sort(((e,t)=>e.fullTextLength-t.fullTextLength||t.foundChars-e.foundChars)),new Set(s.map((e=>e.what)))}}}}]);
//# sourceMappingURL=147.40d5eeb3e14bc4686ebc.chunk.js.map