=Fe;y-=1){let z=y-1,Se=n[t.charAt(z)];if(f&&(A[z]=+!!Se),I[y]=(I[y+1]<<1|1)&Se,b&&(I[y]|=(L[y+1]|L[y])<<1|1|L[y+1]),I[y]&at&&(O=Q(e,{errors:b,currentLocation:z,expectedLocation:h,distance:s,ignoreLocation:a}),O<=m)){if(m=O,p=z,p<=h)break;Fe=Math.max(1,2*h-p)}}if(Q(e,{errors:b+1,currentLocation:h,expectedLocation:h,distance:s,ignoreLocation:a})>m)break;L=I}let te={isMatch:p>=0,score:Math.max(.001,O)};if(f){let b=Pt(A,r);b.length?_&&(te.indices=b):te.isMatch=!1}return te}function Ht(t){let e={};for(let n=0,i=t.length;n{this.chunks.push({pattern:h,alphabet:Ht(h),startIndex:m})},d=this.pattern.length;if(d>C){let h=0,m=d%C,p=d-m;for(;h{let{isMatch:x,score:L,indices:O}=qt(e,p,f,{location:s+A,distance:c,threshold:o,findAllMatches:r,minMatchCharLength:_,includeMatches:i,ignoreLocation:a});x&&(h=!0),d+=L,x&&O&&(l=[...l,...O])});let m={isMatch:h,score:h?d/this.chunks.length:1};return h&&i&&(m.indices=l),m}},v=class{constructor(e){this.pattern=e}static isMultiMatch(e){return Ue(e,this.multiRegex)}static isSingleMatch(e){return Ue(e,this.singleRegex)}search(){}};function Ue(t,e){let n=t.match(e);return n?n[1]:null}var ue=class extends v{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let n=e===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}},he=class extends v{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let i=e.indexOf(this.pattern)===-1;return{isMatch:i,score:i?0:1,indices:[0,e.length-1]}}},me=class extends v{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let n=e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}},pe=class extends v{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let n=!e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}},fe=class extends v{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let n=e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},ge=class extends v{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let n=!e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}},J=class extends v{constructor(e,{location:n=u.location,threshold:i=u.threshold,distance:s=u.distance,includeMatches:c=u.includeMatches,findAllMatches:o=u.findAllMatches,minMatchCharLength:r=u.minMatchCharLength,isCaseSensitive:_=u.isCaseSensitive,ignoreLocation:a=u.ignoreLocation}={}){super(e),this._bitapSearch=new V(e,{location:n,threshold:i,distance:s,includeMatches:c,findAllMatches:o,minMatchCharLength:r,isCaseSensitive:_,ignoreLocation:a})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}},Z=class extends v{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let n=0,i,s=[],c=this.pattern.length;for(;(i=e.indexOf(this.pattern,n))>-1;)n=i+c,s.push([i,n-1]);let o=!!s.length;return{isMatch:o,score:o?0:1,indices:s}}},be=[ue,Z,me,pe,ge,fe,he,J],We=be.length,Bt=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Ut="|";function Wt(t,e={}){return t.split(Ut).map(n=>{let i=n.trim().split(Bt).filter(c=>c&&!!c.trim()),s=[];for(let c=0,o=i.length;c!!(t[ee.AND]||t[ee.OR]),Yt=t=>!!t[xe.PATH],Gt=t=>!E(t)&&Ye(t)&&!ke(t),Ke=t=>({[ee.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function Ve(t,e,{auto:n=!0}={}){let i=s=>{let c=Object.keys(s),o=Yt(s);if(!o&&c.length>1&&!ke(s))return i(Ke(s));if(Gt(s)){let _=o?s[xe.PATH]:c[0],a=o?s[xe.PATTERN]:s[_];if(!w(a))throw new Error(St(_));let l={keyId:de(_),pattern:a};return n&&(l.searcher=ve(a,e)),l}let r={children:[],operator:c[0]};return c.forEach(_=>{let a=s[_];E(a)&&a.forEach(l=>{r.children.push(i(l))})}),r};return ke(t)||(t=Ke(t)),i(t)}function Xt(t,{ignoreFieldNorm:e=u.ignoreFieldNorm}){t.forEach(n=>{let i=1;n.matches.forEach(({key:s,norm:c,score:o})=>{let r=s?s.weight:null;i*=Math.pow(o===0&&r?Number.EPSILON:o,(r||1)*(e?1:c))}),n.score=i})}function Qt(t,e){let n=t.matches;e.matches=[],g(n)&&n.forEach(i=>{if(!g(i.indices)||!i.indices.length)return;let{indices:s,value:c}=i,o={indices:s,value:c};i.key&&(o.key=i.key.src),i.idx>-1&&(o.refIndex=i.idx),e.matches.push(o)})}function Vt(t,e){e.score=t.score}function Jt(t,e,{includeMatches:n=u.includeMatches,includeScore:i=u.includeScore}={}){let s=[];return n&&s.push(Qt),i&&s.push(Vt),t.map(c=>{let{idx:o}=c,r={item:e[o],refIndex:o};return s.length&&s.forEach(_=>{_(c,r)}),r})}var F=class{constructor(e,n={},i){this.options={...u,...n},this.options.useExtendedSearch,this._keyStore=new le(this.options.keys),this.setCollection(e,i)}setCollection(e,n){if(this._docs=e,n&&!(n instanceof W))throw new Error(Ft);this._myIndex=n||Qe(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){g(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let n=[];for(let i=0,s=this._docs.length;i-1&&(_=_.slice(0,n)),Jt(_,this._docs,{includeMatches:i,includeScore:s})}_searchStringList(e){let n=ve(e,this.options),{records:i}=this._myIndex,s=[];return i.forEach(({v:c,i:o,n:r})=>{if(!g(c))return;let{isMatch:_,score:a,indices:l}=n.searchIn(c);_&&s.push({item:c,idx:o,matches:[{score:a,value:c,norm:r,indices:l}]})}),s}_searchLogical(e){let n=Ve(e,this.options),i=(r,_,a)=>{if(!r.children){let{keyId:d,searcher:h}=r,m=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(_,d),searcher:h});return m&&m.length?[{idx:a,item:_,matches:m}]:[]}let l=[];for(let d=0,h=r.children.length;d{if(g(r)){let a=i(n,r,_);a.length&&(c[_]||(c[_]={idx:_,item:r,matches:[]},o.push(c[_])),a.forEach(({matches:l})=>{c[_].matches.push(...l)}))}}),o}_searchObjectList(e){let n=ve(e,this.options),{keys:i,records:s}=this._myIndex,c=[];return s.forEach(({$:o,i:r})=>{if(!g(o))return;let _=[];i.forEach((a,l)=>{_.push(...this._findMatches({key:a,value:o[l],searcher:n}))}),_.length&&c.push({idx:r,item:o,matches:_})}),c}_findMatches({key:e,value:n,searcher:i}){if(!g(n))return[];let s=[];if(E(n))n.forEach(({v:c,i:o,n:r})=>{if(!g(c))return;let{isMatch:_,score:a,indices:l}=i.searchIn(c);_&&s.push({score:a,key:e,value:c,idx:o,norm:r,indices:l})});else{let{v:c,n:o}=n,{isMatch:r,score:_,indices:a}=i.searchIn(c);r&&s.push({score:_,key:e,value:c,norm:o,indices:a})}return s}};F.version="6.6.2";F.createIndex=Qe;F.parseIndex=Dt;F.config=u;F.parseQuery=Ve;zt(ye);var Je=["message","edited_message","channel_post","edited_channel_post","inline_query","chosen_inline_result","callback_query","shipping_query","pre_checkout_query","poll","poll_answer","my_chat_member","chat_member","chat_join_request","message:poll","message:new_chat_members","message:left_chat_member","message:group_chat_created","message:supergroup_chat_created","message:migrate_to_chat_id","message:migrate_from_chat_id","message:successful_payment","message:user_shared","message:chat_shared","message:connected_website","message:write_access_allowed","message:passport_data","message:forum_topic_created","message:forum_topic_edited","message:forum_topic_closed","message:forum_topic_reopened","message:general_forum_topic_hidden","message:general_forum_topic_unhidden","message:sticker","message:video_note","message:voice","message:contact","message:dice","message:venue","message:new_chat_title","message:new_chat_photo","message:delete_chat_photo","message:message_auto_delete_timer_changed","message:pinned_message","message:invoice","message:proximity_alert_triggered","message:video_chat_scheduled","message:video_chat_started","message:video_chat_ended","message:video_chat_participants_invited","message:web_app_data","message:forward_date","message:is_topic_message","message:is_automatic_forward","message:text","message:animation","message:audio","message:document","message:photo","message:video","message:game","message:location","message:entities","message:caption_entities","message:has_media_spoiler","message:caption","edited_message:poll","edited_message:new_chat_members","edited_message:left_chat_member","edited_message:group_chat_created","edited_message:supergroup_chat_created","edited_message:migrate_to_chat_id","edited_message:migrate_from_chat_id","edited_message:successful_payment","edited_message:user_shared","edited_message:chat_shared","edited_message:connected_website","edited_message:write_access_allowed","edited_message:passport_data","edited_message:forum_topic_created","edited_message:forum_topic_edited","edited_message:forum_topic_closed","edited_message:forum_topic_reopened","edited_message:general_forum_topic_hidden","edited_message:general_forum_topic_unhidden","edited_message:sticker","edited_message:video_note","edited_message:voice","edited_message:contact","edited_message:dice","edited_message:venue","edited_message:new_chat_title","edited_message:new_chat_photo","edited_message:delete_chat_photo","edited_message:message_auto_delete_timer_changed","edited_message:pinned_message","edited_message:invoice","edited_message:proximity_alert_triggered","edited_message:video_chat_scheduled","edited_message:video_chat_started","edited_message:video_chat_ended","edited_message:video_chat_participants_invited","edited_message:web_app_data","edited_message:forward_date","edited_message:is_topic_message","edited_message:is_automatic_forward","edited_message:text","edited_message:animation","edited_message:audio","edited_message:document","edited_message:photo","edited_message:video","edited_message:game","edited_message:location","edited_message:entities","edited_message:caption_entities","edited_message:has_media_spoiler","edited_message:caption","channel_post:poll","channel_post:sticker","channel_post:video_note","channel_post:voice","channel_post:contact","channel_post:dice","channel_post:venue","channel_post:new_chat_title","channel_post:new_chat_photo","channel_post:delete_chat_photo","channel_post:message_auto_delete_timer_changed","channel_post:pinned_message","channel_post:invoice","channel_post:proximity_alert_triggered","channel_post:video_chat_scheduled","channel_post:video_chat_started","channel_post:video_chat_ended","channel_post:video_chat_participants_invited","channel_post:web_app_data","channel_post:forward_date","channel_post:is_topic_message","channel_post:is_automatic_forward","channel_post:text","channel_post:animation","channel_post:audio","channel_post:document","channel_post:photo","channel_post:video","channel_post:game","channel_post:location","channel_post:entities","channel_post:caption_entities","channel_post:has_media_spoiler","channel_post:caption","channel_post:channel_chat_created","edited_channel_post:poll","edited_channel_post:sticker","edited_channel_post:video_note","edited_channel_post:voice","edited_channel_post:contact","edited_channel_post:dice","edited_channel_post:venue","edited_channel_post:new_chat_title","edited_channel_post:new_chat_photo","edited_channel_post:delete_chat_photo","edited_channel_post:message_auto_delete_timer_changed","edited_channel_post:pinned_message","edited_channel_post:invoice","edited_channel_post:proximity_alert_triggered","edited_channel_post:video_chat_scheduled","edited_channel_post:video_chat_started","edited_channel_post:video_chat_ended","edited_channel_post:video_chat_participants_invited","edited_channel_post:web_app_data","edited_channel_post:forward_date","edited_channel_post:is_topic_message","edited_channel_post:is_automatic_forward","edited_channel_post:text","edited_channel_post:animation","edited_channel_post:audio","edited_channel_post:document","edited_channel_post:photo","edited_channel_post:video","edited_channel_post:game","edited_channel_post:location","edited_channel_post:entities","edited_channel_post:caption_entities","edited_channel_post:has_media_spoiler","edited_channel_post:caption","edited_channel_post:channel_chat_created","callback_query:data","callback_query:game_short_name","my_chat_member:from","chat_member:from","message:new_chat_members:me","message:new_chat_members:is_bot","message:new_chat_members:is_premium","message:new_chat_members:added_to_attachment_menu","message:left_chat_member:me","message:left_chat_member:is_bot","message:left_chat_member:is_premium","message:left_chat_member:added_to_attachment_menu","message:forum_topic_edited:name","message:forum_topic_edited:icon_custom_emoji_id","message:sticker:is_video","message:sticker:is_animated","message:sticker:premium_animation","message:entities:mention","message:entities:hashtag","message:entities:cashtag","message:entities:bot_command","message:entities:url","message:entities:email","message:entities:phone_number","message:entities:bold","message:entities:italic","message:entities:underline","message:entities:strikethrough","message:entities:spoiler","message:entities:code","message:entities:pre","message:entities:text_link","message:entities:text_mention","message:entities:custom_emoji","message:caption_entities:mention","message:caption_entities:hashtag","message:caption_entities:cashtag","message:caption_entities:bot_command","message:caption_entities:url","message:caption_entities:email","message:caption_entities:phone_number","message:caption_entities:bold","message:caption_entities:italic","message:caption_entities:underline","message:caption_entities:strikethrough","message:caption_entities:spoiler","message:caption_entities:code","message:caption_entities:pre","message:caption_entities:text_link","message:caption_entities:text_mention","message:caption_entities:custom_emoji","edited_message:new_chat_members:me","edited_message:new_chat_members:is_bot","edited_message:new_chat_members:is_premium","edited_message:new_chat_members:added_to_attachment_menu","edited_message:left_chat_member:me","edited_message:left_chat_member:is_bot","edited_message:left_chat_member:is_premium","edited_message:left_chat_member:added_to_attachment_menu","edited_message:forum_topic_edited:name","edited_message:forum_topic_edited:icon_custom_emoji_id","edited_message:sticker:is_video","edited_message:sticker:is_animated","edited_message:sticker:premium_animation","edited_message:entities:mention","edited_message:entities:hashtag","edited_message:entities:cashtag","edited_message:entities:bot_command","edited_message:entities:url","edited_message:entities:email","edited_message:entities:phone_number","edited_message:entities:bold","edited_message:entities:italic","edited_message:entities:underline","edited_message:entities:strikethrough","edited_message:entities:spoiler","edited_message:entities:code","edited_message:entities:pre","edited_message:entities:text_link","edited_message:entities:text_mention","edited_message:entities:custom_emoji","edited_message:caption_entities:mention","edited_message:caption_entities:hashtag","edited_message:caption_entities:cashtag","edited_message:caption_entities:bot_command","edited_message:caption_entities:url","edited_message:caption_entities:email","edited_message:caption_entities:phone_number","edited_message:caption_entities:bold","edited_message:caption_entities:italic","edited_message:caption_entities:underline","edited_message:caption_entities:strikethrough","edited_message:caption_entities:spoiler","edited_message:caption_entities:code","edited_message:caption_entities:pre","edited_message:caption_entities:text_link","edited_message:caption_entities:text_mention","edited_message:caption_entities:custom_emoji","channel_post:sticker:is_video","channel_post:sticker:is_animated","channel_post:sticker:premium_animation","channel_post:entities:mention","channel_post:entities:hashtag","channel_post:entities:cashtag","channel_post:entities:bot_command","channel_post:entities:url","channel_post:entities:email","channel_post:entities:phone_number","channel_post:entities:bold","channel_post:entities:italic","channel_post:entities:underline","channel_post:entities:strikethrough","channel_post:entities:spoiler","channel_post:entities:code","channel_post:entities:pre","channel_post:entities:text_link","channel_post:entities:text_mention","channel_post:entities:custom_emoji","channel_post:caption_entities:mention","channel_post:caption_entities:hashtag","channel_post:caption_entities:cashtag","channel_post:caption_entities:bot_command","channel_post:caption_entities:url","channel_post:caption_entities:email","channel_post:caption_entities:phone_number","channel_post:caption_entities:bold","channel_post:caption_entities:italic","channel_post:caption_entities:underline","channel_post:caption_entities:strikethrough","channel_post:caption_entities:spoiler","channel_post:caption_entities:code","channel_post:caption_entities:pre","channel_post:caption_entities:text_link","channel_post:caption_entities:text_mention","channel_post:caption_entities:custom_emoji","edited_channel_post:sticker:is_video","edited_channel_post:sticker:is_animated","edited_channel_post:sticker:premium_animation","edited_channel_post:entities:mention","edited_channel_post:entities:hashtag","edited_channel_post:entities:cashtag","edited_channel_post:entities:bot_command","edited_channel_post:entities:url","edited_channel_post:entities:email","edited_channel_post:entities:phone_number","edited_channel_post:entities:bold","edited_channel_post:entities:italic","edited_channel_post:entities:underline","edited_channel_post:entities:strikethrough","edited_channel_post:entities:spoiler","edited_channel_post:entities:code","edited_channel_post:entities:pre","edited_channel_post:entities:text_link","edited_channel_post:entities:text_mention","edited_channel_post:entities:custom_emoji","edited_channel_post:caption_entities:mention","edited_channel_post:caption_entities:hashtag","edited_channel_post:caption_entities:cashtag","edited_channel_post:caption_entities:bot_command","edited_channel_post:caption_entities:url","edited_channel_post:caption_entities:email","edited_channel_post:caption_entities:phone_number","edited_channel_post:caption_entities:bold","edited_channel_post:caption_entities:italic","edited_channel_post:caption_entities:underline","edited_channel_post:caption_entities:strikethrough","edited_channel_post:caption_entities:spoiler","edited_channel_post:caption_entities:code","edited_channel_post:caption_entities:pre","edited_channel_post:caption_entities:text_link","edited_channel_post:caption_entities:text_mention","edited_channel_post:caption_entities:custom_emoji","my_chat_member:from:me","my_chat_member:from:is_bot","my_chat_member:from:is_premium","my_chat_member:from:added_to_attachment_menu","chat_member:from:me","chat_member:from:is_bot","chat_member:from:is_premium","chat_member:from:added_to_attachment_menu","msg","edit",":poll","msg:poll",":new_chat_members","msg:new_chat_members",":left_chat_member","msg:left_chat_member",":group_chat_created","msg:group_chat_created",":supergroup_chat_created","msg:supergroup_chat_created",":migrate_to_chat_id","msg:migrate_to_chat_id",":migrate_from_chat_id","msg:migrate_from_chat_id",":successful_payment","msg:successful_payment",":user_shared","msg:user_shared",":chat_shared","msg:chat_shared",":connected_website","msg:connected_website",":write_access_allowed","msg:write_access_allowed",":passport_data","msg:passport_data",":forum_topic_created","msg:forum_topic_created",":forum_topic_edited","msg:forum_topic_edited",":forum_topic_closed","msg:forum_topic_closed",":forum_topic_reopened","msg:forum_topic_reopened",":general_forum_topic_hidden","msg:general_forum_topic_hidden",":general_forum_topic_unhidden","msg:general_forum_topic_unhidden","message:file",":sticker",":file","msg:sticker","msg:file",":video_note","msg:video_note",":voice","msg:voice",":contact","msg:contact",":dice","msg:dice",":venue","msg:venue",":new_chat_title","msg:new_chat_title",":new_chat_photo","msg:new_chat_photo",":delete_chat_photo","msg:delete_chat_photo",":message_auto_delete_timer_changed","msg:message_auto_delete_timer_changed",":pinned_message","msg:pinned_message",":invoice","msg:invoice",":proximity_alert_triggered","msg:proximity_alert_triggered",":video_chat_scheduled","msg:video_chat_scheduled",":video_chat_started","msg:video_chat_started",":video_chat_ended","msg:video_chat_ended",":video_chat_participants_invited","msg:video_chat_participants_invited",":web_app_data","msg:web_app_data",":forward_date","msg:forward_date",":is_topic_message","msg:is_topic_message",":is_automatic_forward","msg:is_automatic_forward",":text","msg:text",":animation","msg:animation",":audio","msg:audio",":document","msg:document","message:media",":photo",":media","msg:photo","msg:media",":video","msg:video",":game","msg:game",":location","msg:location",":entities","msg:entities",":caption_entities","msg:caption_entities",":has_media_spoiler","msg:has_media_spoiler",":caption","msg:caption","edit:poll","edit:new_chat_members","edit:left_chat_member","edit:group_chat_created","edit:supergroup_chat_created","edit:migrate_to_chat_id","edit:migrate_from_chat_id","edit:successful_payment","edit:user_shared","edit:chat_shared","edit:connected_website","edit:write_access_allowed","edit:passport_data","edit:forum_topic_created","edit:forum_topic_edited","edit:forum_topic_closed","edit:forum_topic_reopened","edit:general_forum_topic_hidden","edit:general_forum_topic_unhidden","edited_message:file","edit:sticker","edit:file","edit:video_note","edit:voice","edit:contact","edit:dice","edit:venue","edit:new_chat_title","edit:new_chat_photo","edit:delete_chat_photo","edit:message_auto_delete_timer_changed","edit:pinned_message","edit:invoice","edit:proximity_alert_triggered","edit:video_chat_scheduled","edit:video_chat_started","edit:video_chat_ended","edit:video_chat_participants_invited","edit:web_app_data","edit:forward_date","edit:is_topic_message","edit:is_automatic_forward","edit:text","edit:animation","edit:audio","edit:document","edited_message:media","edit:photo","edit:media","edit:video","edit:game","edit:location","edit:entities","edit:caption_entities","edit:has_media_spoiler","edit:caption","channel_post:file","channel_post:media",":channel_chat_created","msg:channel_chat_created","edited_channel_post:file","edited_channel_post:media","edit:channel_chat_created",":new_chat_members:me","msg:new_chat_members:me",":new_chat_members:is_bot","msg:new_chat_members:is_bot",":new_chat_members:is_premium","msg:new_chat_members:is_premium",":new_chat_members:added_to_attachment_menu","msg:new_chat_members:added_to_attachment_menu",":left_chat_member:me","msg:left_chat_member:me",":left_chat_member:is_bot","msg:left_chat_member:is_bot",":left_chat_member:is_premium","msg:left_chat_member:is_premium",":left_chat_member:added_to_attachment_menu","msg:left_chat_member:added_to_attachment_menu",":forum_topic_edited:name","msg:forum_topic_edited:name",":forum_topic_edited:icon_custom_emoji_id","msg:forum_topic_edited:icon_custom_emoji_id","message:file:is_video",":sticker:is_video",":file:is_video","msg:sticker:is_video","msg:file:is_video","message:file:is_animated",":sticker:is_animated",":file:is_animated","msg:sticker:is_animated","msg:file:is_animated","message:file:premium_animation",":sticker:premium_animation",":file:premium_animation","msg:sticker:premium_animation","msg:file:premium_animation","message::mention",":entities:mention","::mention","msg:entities:mention","msg::mention","message::hashtag",":entities:hashtag","::hashtag","msg:entities:hashtag","msg::hashtag","message::cashtag",":entities:cashtag","::cashtag","msg:entities:cashtag","msg::cashtag","message::bot_command",":entities:bot_command","::bot_command","msg:entities:bot_command","msg::bot_command","message::url",":entities:url","::url","msg:entities:url","msg::url","message::email",":entities:email","::email","msg:entities:email","msg::email","message::phone_number",":entities:phone_number","::phone_number","msg:entities:phone_number","msg::phone_number","message::bold",":entities:bold","::bold","msg:entities:bold","msg::bold","message::italic",":entities:italic","::italic","msg:entities:italic","msg::italic","message::underline",":entities:underline","::underline","msg:entities:underline","msg::underline","message::strikethrough",":entities:strikethrough","::strikethrough","msg:entities:strikethrough","msg::strikethrough","message::spoiler",":entities:spoiler","::spoiler","msg:entities:spoiler","msg::spoiler","message::code",":entities:code","::code","msg:entities:code","msg::code","message::pre",":entities:pre","::pre","msg:entities:pre","msg::pre","message::text_link",":entities:text_link","::text_link","msg:entities:text_link","msg::text_link","message::text_mention",":entities:text_mention","::text_mention","msg:entities:text_mention","msg::text_mention","message::custom_emoji",":entities:custom_emoji","::custom_emoji","msg:entities:custom_emoji","msg::custom_emoji",":caption_entities:mention","msg:caption_entities:mention",":caption_entities:hashtag","msg:caption_entities:hashtag",":caption_entities:cashtag","msg:caption_entities:cashtag",":caption_entities:bot_command","msg:caption_entities:bot_command",":caption_entities:url","msg:caption_entities:url",":caption_entities:email","msg:caption_entities:email",":caption_entities:phone_number","msg:caption_entities:phone_number",":caption_entities:bold","msg:caption_entities:bold",":caption_entities:italic","msg:caption_entities:italic",":caption_entities:underline","msg:caption_entities:underline",":caption_entities:strikethrough","msg:caption_entities:strikethrough",":caption_entities:spoiler","msg:caption_entities:spoiler",":caption_entities:code","msg:caption_entities:code",":caption_entities:pre","msg:caption_entities:pre",":caption_entities:text_link","msg:caption_entities:text_link",":caption_entities:text_mention","msg:caption_entities:text_mention",":caption_entities:custom_emoji","msg:caption_entities:custom_emoji","edit:new_chat_members:me","edit:new_chat_members:is_bot","edit:new_chat_members:is_premium","edit:new_chat_members:added_to_attachment_menu","edit:left_chat_member:me","edit:left_chat_member:is_bot","edit:left_chat_member:is_premium","edit:left_chat_member:added_to_attachment_menu","edit:forum_topic_edited:name","edit:forum_topic_edited:icon_custom_emoji_id","edited_message:file:is_video","edit:sticker:is_video","edit:file:is_video","edited_message:file:is_animated","edit:sticker:is_animated","edit:file:is_animated","edited_message:file:premium_animation","edit:sticker:premium_animation","edit:file:premium_animation","edited_message::mention","edit:entities:mention","edit::mention","edited_message::hashtag","edit:entities:hashtag","edit::hashtag","edited_message::cashtag","edit:entities:cashtag","edit::cashtag","edited_message::bot_command","edit:entities:bot_command","edit::bot_command","edited_message::url","edit:entities:url","edit::url","edited_message::email","edit:entities:email","edit::email","edited_message::phone_number","edit:entities:phone_number","edit::phone_number","edited_message::bold","edit:entities:bold","edit::bold","edited_message::italic","edit:entities:italic","edit::italic","edited_message::underline","edit:entities:underline","edit::underline","edited_message::strikethrough","edit:entities:strikethrough","edit::strikethrough","edited_message::spoiler","edit:entities:spoiler","edit::spoiler","edited_message::code","edit:entities:code","edit::code","edited_message::pre","edit:entities:pre","edit::pre","edited_message::text_link","edit:entities:text_link","edit::text_link","edited_message::text_mention","edit:entities:text_mention","edit::text_mention","edited_message::custom_emoji","edit:entities:custom_emoji","edit::custom_emoji","edit:caption_entities:mention","edit:caption_entities:hashtag","edit:caption_entities:cashtag","edit:caption_entities:bot_command","edit:caption_entities:url","edit:caption_entities:email","edit:caption_entities:phone_number","edit:caption_entities:bold","edit:caption_entities:italic","edit:caption_entities:underline","edit:caption_entities:strikethrough","edit:caption_entities:spoiler","edit:caption_entities:code","edit:caption_entities:pre","edit:caption_entities:text_link","edit:caption_entities:text_mention","edit:caption_entities:custom_emoji","channel_post:file:is_video","channel_post:file:is_animated","channel_post:file:premium_animation","channel_post::mention","channel_post::hashtag","channel_post::cashtag","channel_post::bot_command","channel_post::url","channel_post::email","channel_post::phone_number","channel_post::bold","channel_post::italic","channel_post::underline","channel_post::strikethrough","channel_post::spoiler","channel_post::code","channel_post::pre","channel_post::text_link","channel_post::text_mention","channel_post::custom_emoji","edited_channel_post:file:is_video","edited_channel_post:file:is_animated","edited_channel_post:file:premium_animation","edited_channel_post::mention","edited_channel_post::hashtag","edited_channel_post::cashtag","edited_channel_post::bot_command","edited_channel_post::url","edited_channel_post::email","edited_channel_post::phone_number","edited_channel_post::bold","edited_channel_post::italic","edited_channel_post::underline","edited_channel_post::strikethrough","edited_channel_post::spoiler","edited_channel_post::code","edited_channel_post::pre","edited_channel_post::text_link","edited_channel_post::text_mention","edited_channel_post::custom_emoji"];var Ze=["message","edited_message","channel_post","edited_channel_post","inline_query","chosen_inline_result","callback_query","shipping_query","pre_checkout_query","poll","poll_answer","my_chat_member","chat_member","chat_join_request"],et={"":["message","channel_post"],msg:["message","channel_post"],edit:["edited_message","edited_channel_post"]},tt={"":["entities","caption_entities"],media:["photo","video"],file:["photo","animation","audio","document","video","video_note","voice","sticker"]};function Zt(t,e){return t[0]+t.split(e).map(n=>n[0].toUpperCase()+n.substring(1)).join("").substring(1)}var $e=Ze.reduce((t,e)=>({...t,[e]:Zt(e,"_")}),{});function nt(t){return t.map((e,n)=>`${n===0?"":" / "}${e}`)}var en={chat_member:"You need to specify this update in allowed_updates to receive them."};function it(){let t=[];for(let e of Je){let[n,i,s]=e.split(":"),c=et[n]??[n],o=tt[i]??[i],r=en?.[e],_=nt(c),a=nt(o),l="";if(c[0]&&!o[0]&&!s)l=[`Query for filtering "${_}" update.`,"Here's how you can access the information about the update:",c.map(d=>`ctx.${$e[d]};`).join(`
2 |
3 | `)].join(`
4 |
5 | `);else if(c[0]&&o[0]&&!s)l=[`Query for filtering "${_}" update with the field "${a}".`,"Here is how you can access the properties of the field:",c.map(d=>o.map(h=>`ctx.${$e[d]}.${h};`).join(`
6 |
7 | `)).join(`
8 |
9 | `)].join(`
10 |
11 | `);else if(c[0]&&o[0]&&s){let d=o.includes("entities"),h=d?`containing at least one entity of the type "${s}"`:`with "${s}" property`,m=o.join().includes("entities")?`ctx.entities("${s}");`:c.map(p=>o.map(f=>`ctx.${$e[p]}.${f}.${s};`).join(`
12 |
13 | `)).join(`
14 |
15 | `);l=[`Query for filtering "${_}" update with the field "${a}" ${h}.`,`Here is how you can access the ${d?`entities of "${s}" type`:`"${s}" property`}:`,m].join(`
16 |
17 | `)}else throw new Error(`There is some issue with the "${e}" filter query.`);t.push({query:e,description:r?`${r}
18 | ${l}`:l})}return t}function st(t,e,n){let i=t.slice();return i[1]=e[n].query,i[6]=e[n].description,i}function tn(t){let e,n=t[0],i=[];for(let s=0;sa.item))}function _(a){n(1,i=a.target.value),r()}return[s,i,_]}var Ee=class extends G{constructor(e){super(),qe(this,e,on,sn,je,{})}},ct=Ee;var cn=new ct({target:document.getElementById("app")}),Fn=cn;})();
19 |
--------------------------------------------------------------------------------