PageSourceSearch

https://senoval.cdn.sports.ru/roberto-contentos/short-posts-ssi/static/modal.es-CuZSa7Jx.js

js sports.ru collected 2026-09-24 15:19:46 UTC 962,327 bytes, 1,012 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="94679756-bfee-5ff3-9250-7d0fb757c290")}catch(e){}}();
2const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/BetsBonusMenu-e990b3aa-DemmKCNR.js","static/index-CGqfqx9g.js","static/index-CvjFaj3_.css","static/Close.vue.es-826656aa-BAQg0pnn.js","static/_plugin-vue_export-helper.es-49fbee91-BAlOsG0q.js","static/index.es-b5b32b1c-CF89UA27.js","static/CatfishStickerBubble-a7af2ee7-Di3wLw-K.js","static/index.es-3bae9036-Bq8PI5P8.js","static/CatfishWithBetsElements-d1eb43ed-B2nYgbAI.js","static/DesktopCatfish-2fd2864b-Bf6Hawze.js","static/useAdAnalytics-84366b7d-DpkXnMz0.js","static/NativeCreativeRedesigned-7a41f50c-3W-w17NS.js","static/UIButton-3e385297-5c-DAcw-.js","static/NativeCreativeLegacy-384d26cf-DRGclvYe.js","static/RenderableCatfish-79a65a3c-BpWY-sVA.js","static/SmartAppCreative-c011cf46-BWTeUw6z.js","static/SquareTopQuiz-99c79231-C_FiPUDb.js","static/TopBrandingCreative-3309ae0b-BqZUq4sy.js","static/MobileInterscroller-5b89ca1b-CSOU2guH.js","static/BetsCommentCreative-c937c8e8-DPHXxT_N.js","static/BookGadget-2cbe45a6-QnzPb6CJ.js","static/BrandingCollapsing-d6708acb-DORsoFI2.js","static/useBrandingDestroy-da41e6ff-BtuGS0MR.js","static/BrandingCollapsingHtml-ddce7941-Bydg-NHD.js","static/InreadMatchCreative-711a1384-qHocWolo.js","static/getFootballMatch-f77f1b47-BDwPCOKw.js","static/DailyBonusCreative-01368ed9-DfJCeJTq.js","static/TournamentBets-a826f28a-lzVD5vFR.js","static/WidgetCatfish-ec11924b-D1FHNOZf.js","static/TagsHeader-bbad8869-DDPn5OZF.js","static/BrandingPopup-a01d9db3-DEnTLOSJ.js","static/BrandingSticker-81e9f5d6-DYTUHzs7.js","static/SimpleIframe-381cd0b2-DP5z5Vc0.js","static/WorldCupPopupSticker-4e240c0b-6XPQTJqO.js","static/SbParagraphText.vue.es-aee0aa2f-B3V3b3Yn.js","static/SbParagraphLink.vue.es-95175482-C_ZcRy7g.js","static/SbParagraphBreak.vue.es-577a0521-BlVuBXTq.js","static/index.es-e17cc6e2-C-iRDXJL.js","static/index.es-910f3ff4-B-UYTPUe.js","static/index.es-78ac68ca-BAi-wod7.js","static/index.es-5dfb66d9-B7gC7Dra.js","static/index.es-d1f354e1-DyIGsRPc.js","static/index.es-2cdef1fa-DZx0Llku.js","static/index.es-b686cf6a-BGr353az.js","static/useRatio.es-b60bef66-Cv4lwLxX.js","static/index.es-bad867f4-BG480jI6.js","static/index.es-e2b5bbfc-Dts5DpNQ.js","static/Close-1.vue.es-_KkUAJrI.js","static/UnpinComment.vue.es-AbYxFAqq.js","static/index-DngTFy8t.css"])))=>i.map(i=>d[i]);
3import{E as Ey,r as fe,b as rt,e as On,d as Le,aj as Qd,u as q,a0 as Jd,ad as Zd,c as ae,o as oe,a as Oe,q as $e,f as ye,g as Xe,aG as _y,y as et,v as ke,i as Te,F as At,B as $t,aH as Ay,z as Ct,m as Rn,t as ze,h as Ft,aI as Iy,a1 as Pi,au as Xd,aJ as ql,aK as Bs,aL as Ty,aM as Sy,aN as Ry,aO as By,aP as Cy,aQ as Oy,k as xe,U as Wo,n as nn,a2 as ef,ah as Ly,aR as tf,aS as Ny,aT as Dy,aU as xy,aV as Uy,aW as Vl,aX as ky,aY as Py,aD as ku,aZ as rf,A as nf,l as He,p as co,$ as sa,ab as je,ac as Fe,ae as My,af as $y,C as Fy,D as of,j as jy,a_ as Ot,a$ as er,aA as ua,b0 as Gy,R as Mi,b1 as at,b2 as Ln,b3 as qy,b4 as Vy,b5 as Hl,L as $i,T as Hy,G as sr,x as Jn,aF as zy,J as on,b6 as Pu,b7 as af,b8 as Pt,Y as sf,Z as Mu,P as uf,a6 as Wy,K as Vr,b9 as lf,ax as Fi,av as ji,aw as Mo,aB as $u,ba as Yy,N as Ky,V as zl,bb as Qy,I as cf,bc as Jy,bd as Zy,be as Fu,M as Nt,bf as Xr,bg as Xy,bh as e0,bi as t0,bj as df,bk as ff,bl as r0,aC as pf,bm as n0,bn as o0,bo as i0,bp as a0,bq as s0,br as u0,az as l0,bs as c0,H as d0,bt as f0,bu as hf,bv as p0,bw as h0,bx as m0,by as g0,bz as y0,bA as b0,bB as w0,bC as v0,bD as E0,bE as _0,bF as A0,bG as I0,bH as T0,bI as S0,bJ as Wl,bK as R0,bL as B0,bM as C0,bN as O0,bO as L0,bP as Yl,bQ as Kl}from"./index-CGqfqx9g.js";import{a as N0,f as mf,C as D0,p as x0,b as U0,m as k0,L as P0,c as gf,d as M0,e as yf,g as $0,h as F0,i as j0,j as G0}from"./UnpinComment.vue.es-AbYxFAqq.js";import{S as or,E as q0,a as bf,F as V0,M as ju,G as H0,H as z0,J as W0,K as Y0,L as K0,x as Q0,m as J0,N as Z0}from"./index-a188c5b6-Bq9qPbyz.js";const X0=(r,o)=>{const i=Ey([!1,!1]),u=fe(),c=fe(),p=fe(),d=fe();let a=null,h=null;const y=()=>{o.value&&h===null&&(h=requestAnimationFrame(()=>{h=null;const w=r.value?.scrollLeft??0,_=Math.round(w+(r.value?.clientWidth??0));i[0]=w>0,i[1]=_<(r.value?.scrollWidth??1e3)}))},g=()=>{const w=r.value;if(!w)return;const _=w.scrollLeft+w.offsetLeft,T=w.children;for(let A=T.length-1;A>=0;A--){const B=T[A];if(B.offsetLeft+B.offsetWidth<_){w.scrollTo({left:B.offsetLeft,behavior:"smooth"});return}}i[0]&&w.scrollTo({left:0,behavior:"smooth"})},b=()=>{const w=r.value;if(!w)return;const _=w.scrollLeft,T=w.offsetLeft,A=w.children;for(let B=0;B<A.length;B++){const D=A[B];if(D.offsetLeft-T>_+1){w.scrollTo({left:D.offsetLeft-T,behavior:"smooth"});return}}i[1]&&w.scrollBy({left:10,behavior:"smooth"})},v=w=>{for(const _ of w){const T=_.borderBoxSize?.[0]?.inlineSize??_.target.offsetWidth,A=T?`${T}px`:void 0;_.target===u.value&&(p.value=A),_.target===c.value&&(d.value=A)}};return rt(()=>{y(),r.value?.addEventListener("scroll",y,{passive:!0}),a=new ResizeObserver(v),u.value&&a.observe(u.value),c.value&&a.observe(c.value)}),On(()=>{r.value?.removeEventListener("scroll",y),h!==null&&cancelAnimationFrame(h),a?.disconnect(),a=null}),{visibleArrows:i,leftIconRef:u,rightIconRef:c,leftIconWidth:p,rightIconWidth:d,scrollLeft:g,scrollRight:b}},eb={key:0},tb={key:2},rb=Le({__name:"UITabBar",props:Pi({tabs:{type:Array,default:()=>[]},active:{type:[String,Number],default:null},arrows:{type:Boolean,default:!1},sideIconsColor:{type:String,default:"white"},variant:{type:String,default:"md"},color:{type:String,default:"dark"},rootTag:{type:String,default:"div"},tag:{type:String,default:"span"}},{modelValue:{default:null},modelModifiers:{}}),emits:Pi(["click","click-left","click-right"],["update:modelValue"]),setup(r,{emit:o}){Qd(U=>({"9489d3ce":q(v),ec430a44:q(w)}));const i=Jd(r,"modelValue"),u=r,c=o,p=Zd(),d=ae(()=>({xs:"14px",md:"16px",sm:"16px"})[u.variant]),a=ae(()=>u.active!==null?u.active:i.value),h=fe(),{visibleArrows:y,leftIconRef:g,rightIconRef:b,leftIconWidth:v,rightIconWidth:w,scrollLeft:_,scrollRight:T}=X0(h,ae(()=>u.arrows)),A=U=>{U.disabled||(i.value=U.value,c("click",U.value))},B=U=>U.disabled?-1:0,D=(U,S)=>{(U.key==="Enter"||U.key===" ")&&(U.preventDefault(),A(u.tabs[S]))},x=()=>
3{if(p.iconLeft){c("click-left");return}_()},W=()=>{if(p.iconRight){c("click-right");return}T()};return(U,S)=>(oe(),Oe(Ct(r.rootTag),{class:Xe(["ui-tabbar",{[`ui-tabbar--${r.variant}`]:!0}])},{default:$e(()=>[r.arrows&&q(y)[0]||U.$slots.iconLeft?(oe(),ye("div",{key:0,ref_key:"leftIconRef",ref:g,class:Xe(["ui-tabbar__side-icon ui-tabbar__side-icon--left",{[`ui-tabbar__side-icon-left--${r.sideIconsColor}`]:!0,"ui-tabbar__arrow--left":r.arrows&&!U.$slots.iconLeft}]),onClick:x},[r.arrows?(oe(),Oe(q(_y),{key:0,width:"16px",height:"16px"})):et(U.$slots,"iconLeft",{key:1},void 0,!0)],2)):ke("",!0),Te("ul",{ref_key:"scrollBarRef",ref:h,class:Xe(["ui-tabbar__tabs",{[`ui-tabbar__tabs--${r.variant}`]:!0}]),role:"tablist"},[(oe(!0),ye(At,null,$t(r.tabs,(M,I,R,C)=>{const V=[M.value==a.value,M.disabled,r.variant];if(C&&C.key===M.value&&Ay(C,V))return C;const F=(oe(),ye("li",{key:M.value,role:"presentation"},[(oe(),Oe(Ct(M.tag||r.tag),Rn({ref_for:!0},M.attributes??{},{class:["ui-tabbar__tab",{"ui-body-md-medium":r.variant==="md","ui-body-sm-regular":r.variant==="sm"||r.variant==="xs",[`ui-tabbar__tab--${r.variant}`]:!0,[`ui-tabbar__tab--${r.color}`]:!0,"ui-tabbar__tab--active":M.value==a.value,"ui-tabbar__tab--disabled":M.disabled,"ui-tabbar__tab--after-side-icon":U.$slots.iconLeft&&I===0,"ui-tabbar__tab--before-side-icon":U.$slots.iconRight&&I===r.tabs.length-1}],role:"tab","aria-selected":M.value==a.value,"aria-disabled":M.disabled||void 0,tabindex:B(M),onClick:ue=>A(M),onKeydown:ue=>D(ue,I)}),{default:$e(()=>[M.left?(oe(),ye("span",eb,ze(M.left),1)):ke("",!0),M.iconLeft?(oe(),Oe(Ct(M.iconLeft),{key:1,width:d.value,height:d.value},null,8,["width","height"])):ke("",!0),Ft(" "+ze(M.title)+" ",1),M.right?(oe(),ye("span",tb,ze(M.right),1)):ke("",!0),M.iconRight?(oe(),Oe(Ct(M.iconRight),{key:3,width:d.value,height:d.value},null,8,["width","height"])):ke("",!0)]),_:2},1040,["class","aria-selected","aria-disabled","tabindex","onClick","onKeydown"]))]));return F.memo=V,F},S,0),128))],2),r.arrows&&q(y)[1]||U.$slots.iconRight?(oe(),ye("div",{key:1,ref_key:"rightIconRef",ref:b,class:Xe(["ui-tabbar__side-icon ui-tabbar__side-icon--right",{[`ui-tabbar__side-icon-right--${r.sideIconsColor}`]:!0,"ui-tabbar__arrow--right":r.arrows}]),onClick:W},[r.arrows?(oe(),Oe(q(Iy),{key:0,width:"16px",height:"16px"})):et(U.$slots,"iconRight",{key:1},void 0,!0)],2)):ke("",!0)]),_:3},8,["class"]))}}),nb=Xd(rb,[["__scopeId","data-v-df8d9ced"]]),ob=["aria-hidden"],ib=Le({__name:"UITooltip",props:{gap:{type:Number,default:5},position:{type:String,default:"bottom"},flipPadding:{type:Object,default:()=>({top:66,right:0,bottom:0,left:0})}},setup(r){const o=!globalThis.window,i=r,u=ae(()=>i.gap+9),c=ae(()=>i.position),p=ae(()=>i.flipPadding),d=fe(),a=fe(),h=ae(()=>d.value?.previousElementSibling),y=o?fe(!1):ql(h),g=o?fe(!1):ql(d),b=ae(()=>y.value||g.value),{floatingStyles:v,middlewareData:w,placement:_}=o?{floatingStyles:Bs(fe()),placement:Bs(fe("bottom")),middlewareData:fe({})}:Ty(h,d,{placement:c,transform:!0,middleware:[Ry(u.value),By(),Cy({padding:p.value,fallbackAxisSideDirection:"start"}),Oy({element:a,padding:4})],whileElementsMounted:Sy(b)}),T=ae(()=>{if(o)return"";const A="-9px",B=w.value.arrow?.x!=null?`${w.value.arrow.x}px`:"calc(50% - 5px)",D="-11px",x=w.value.arrow?.y!=null?`${w.value.arrow.y}px`:"calc(50% - 5px)";return{bottom:{top:A,left:B},top:{bottom:A,left:B,transform:"rotate(180deg)"},left:{right:D,top:x,transform:"rotate(90deg)"},right:{left:D,top:x,transform:"rotate(-90deg)"}}[_.value.split("-")[0]]});return(A,B)=>(oe(),ye(At,null,[et(A.$slots,"default",{},void 0,!0),xe(Ly,null,{default:$e(()=>[Wo(Te("div",Rn({ref_key:"popover",ref:d,class:"ui-tooltip ui-body-sm-regular",style:q(v),"aria-hidden":!b.value},A.$attrs),[et(A.$slots,"content",{},void 0,!0),(oe(),ye("svg",{ref_key:"popoverArrow",ref:a,width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"arrow",style:nn(T.value)},B[0]||(B[0]=[Te("path",{d:"M7 0L13.9282 9L0.0717969 9L7 0Z",fill:"currentColor"},null,-1)]),4))],16,ob),[[ef,b.value]])]),_:3})],64))}}),ab=Xd(ib,[["__scopeId","data-v-21465892"]]),wf=tf(Ny,[["__scopeId","data-v-193f829b"]]),sb=tf(Dy,[["__scopeId","data-v-9db52245"]]),ao=Le({__name:"ClientOnly",setup(r){const o=fe(!1);return rt(()=>{o.value=!0}),(i,u)=>o.value?et(i.$slots,"default",{key:0}):et(i.$slots,"placeholder",{key:1})}}),Oa=(r,o)=>r instanceof Error?r:new Error(o??String(r)),ub=(r={})=>{const{bucket:o=xy,limitSize:i=Uy,onError:u}=r,c=fe(!1),p=fe(null),d=async b=>{let v;if(typeof b=="string")try{v=await(await fetch(b,{mode:"no-cors"})).blob()}catch{return!0}else v=b;if(v.size>i){const w=`Изображение не должно превышать ${Math.round(i/1024/1024)} МБ`;throw new Error(w)}return!0},a=async(b,v)=>{try{const w=await fetch(ky[b],{method:"POST",referrerPolicy:"no-referrer-when-downgrade",credentials:"include",...v});return w.status>=200&&w.status<300?await w.json():null}catch(w){throw Oa(w)}},h=b=>b.result?.id?new Promise(v=>{const w=new Image;w.src=b.result?.id,w.onload=function(){v({source:w.src,width:w.naturalWi
3dth||w.width,height:w.naturalHeight||w.height})},w.onerror=()=>{v({source:w.src,width:0,height:0})}}):Promise.reject(new Error("Cannot upload image - server returned no image URL")),y=async b=>{c.value=!0,p.value=null;try{const v=new Blob([b],{type:b.type});await d(v);const w=new FormData;w.append("file",v),w.append("bucket",o);const _=await a(Vl.FILE,{body:w});if(!_)throw new Error("Upload failed - no response from server");return await h(_)}catch(v){const w=Oa(v);throw p.value=w,u?.(w),w}finally{c.value=!1}},g=async b=>{c.value=!0,p.value=null;try{await d(b);const v=await a(Vl.URL,{body:JSON.stringify({bucket:o,url:b}),headers:{"Content-Type":"application/json"}});if(!v)throw new Error("Upload failed - no response from server");return await h(v)}catch(v){const w=Oa(v,Py);throw p.value=w,u?.(w),w}finally{c.value=!1}};return{isLoading:c,error:p,uploadImageFromFile:y,uploadImageFromUrl:g,getUploadedImageUrlFromFile:async b=>(await y(b))?.source,getUploadedImageUrlFromUrl:async b=>(await g(b))?.source,checkSize:d}},vf=r=>` { commentMutations { addUserToBlacklist(userID: ${JSON.stringify(r.userID)}, time: ${r.time}) { success } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");vf.operationName="addUserToBlacklist";const Ef=r=>` { commentMutations { deleteByUser(input: {userID: ${JSON.stringify(r.userID)}}) { success } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Ef.operationName="banUserComments";const la=r=>" id text author { id nick url balls stars rate { points } picture(input: { ext: PNG, resize: SIZE_64_64 }) { url } svg: picture(input: { ext: SVG }) { url } normal: picture(input: { ext: PNG, resize: SIZE_32_32 }) { url } big: picture(input: { ext: PNG, resize: SIZE_128_128 }) { url } normalWebp: picture(input: { ext: WEBP, resize: SIZE_32_32 }) { url } bigWebp: picture(input: { ext: WEBP, resize: SIZE_128_128 }) { url } about verified blocked subscribersCount following badge { id name imageURL imageURLDark contentURL description } } rating { plus minus canRate action } published { full epoch } parentComment { id text author { id url nick blocked } published { full epoch } isInBlacklist isSuspected rating { plus minus } } isInBlacklist isSuspected isDeleted platform linksEnabled userLabels { userType blogPostRole } editEnableUntil { epoch } donation { id amount } actions isPinned pinUser rateAuthors { id nick picture { url } } ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),_f=r=>` { commentMutations { create( input: { objectClass: ${r.objectClass} objectId: ${JSON.stringify(r.objectId)} parentId: ${JSON.stringify(r.parentId)} platform: ${r.platform} text: ${JSON.stringify(r.text)} deleted: ${r.deleted} } ) { comment { ${la()} } error { ... on DefaultError { message } ... on CommentsStopwordError { message words } ... on CommentCreateError { message } } status } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");_f.operationName="createComment";const Af=r=>` { commentMutations { removeUserFromBlacklist(userID: ${JSON.stringify(r.userID)}) { success } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Af.operationName="removeUserFromBlacklist";const If=r=>` { commentMutations { edit( input: { id: ${JSON.stringify(r.id)} text: ${JSON.stringify(r.text)} } ) { comment { ${la()} } error { ... on DefaultError { message } ... on CommentsStopwordError { message words } ... on CommentEditError { message } } status } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");If.operationName="editComment";const Tf=r=>` { complaintsMutations { add(input: { complaintType: ${r.complaintType} userID: ${JSON.stringify(r.userID)} objectID: ${JSON.stringify(r.commentId)} objectClassType: COMMENT objectUserID: ${JSON.stringify(r.commentAuthorId)} }) } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Tf.operationName="addCommentComplain";const Cs=r=>` { commentQueries { byIds(IDs: ${JSON.stringify(r.IDs)}) { list { ${la()} } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Cs.operationName="getCommentById";const Sf=r=>
3` { commentQueries { list(objectClass: ${r.objectClass}, objectId: ${JSON.stringify(r.objectId)}, order: ${r.order}, first: ${r.first}) { comments { ${la()} } pagination { totalCount } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Sf.operationName="getCommentList";const Rf=r=>` { commentQueries { listIds( objectClass: ${r.objectClass}, objectId: ${JSON.stringify(r.objectId)}, order: ${r.order}, filter: ${r.filter} ) list( objectClass: ${r.objectClass}, objectId: ${JSON.stringify(r.objectId)}, order: ${r.order}, first: 1 ) { pagination { totalCount } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Rf.operationName="getCommentIdsList";const Bf=r=>` { commentQueries { replies(parentID: ${JSON.stringify(r.parentID)}) { comments { id } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Bf.operationName="getCommentReplies";const Cf=r=>` { commentQueries { listWithThread( objectClass: ${r.objectClass}, objectId: ${JSON.stringify(r.objectId)}, order: ${r.order}, filter: ${r.filter} ) { list { id isDeleted children } totalCount } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Cf.operationName="getCommentWithThread";const Of=r=>` { commentQueries { thread(id: ${JSON.stringify(r.id)}) { id isDeleted children } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Of.operationName="getCommentThread";const Lf=r=>` { commentMutations { pin(id: ${JSON.stringify(r.id)}) { success } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Lf.operationName="pinComment";
3const Nf=r=>` { commentMutations { unpin(id: ${JSON.stringify(r.id)}) { success } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Nf.operationName="unpinComment";const Df=r=>` { commentQueries { byIds(IDs: ${JSON.stringify(r.IDs)}) { list { id text structuredBody { type value { ... on StructuredBodyParagraph { size elements { type value { ... on StructuredBodyParagraphElementText { text } } } } } } author { id nick url balls stars rate { points } picture(input: { ext: PNG, resize: SIZE_64_64 }) { url } svg: picture(input: { ext: SVG }) { url } normal: picture(input: { ext: PNG, resize: SIZE_32_32 }) { url } big: picture(input: { ext: PNG, resize: SIZE_128_128 }) { url } normalWebp: picture(input: { ext: WEBP, resize: SIZE_32_32 }) { url } bigWebp: picture(input: { ext: WEBP, resize: SIZE_128_128 }) { url } about verified blocked subscribersCount following badge { id name imageURL imageURLDark contentURL description } } rating { plus minus canRate action } published { full epoch } parentComment { id text author { id url nick blocked } published { full epoch } isInBlacklist isSuspected rating { plus minus } } isInBlacklist isSuspected isDeleted platform linksEnabled userLabels { userType blogPostRole } editEnableUntil { epoch } donation { id amount } actions isPinned pinUser rateAuthors { id nick picture { url } } } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Df.operationName="getSBCommentById";const xf=r=>` { commentMutations { delete(id: ${JSON.stringify(r.id)}, reason: ${r.reason}) { success } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");xf.operationName="deleteComment";var Os=(r=>(r.Permanent="PERMANENT",r.Temporary="TEMPORARY",r))(Os||{}),nr=(r=>(r.ByUser="BY_USER",r.Insult="INSULT",r.MultiAccounting="MULTI_ACCOUNTING",r.Other="OTHER",r.Provocations="PROVOCATIONS",r.Racism="RACISM",r.Spam="SPAM",r.Swears="SWEARS",r.SystematicOfftop="SYSTEMATIC_OFFTOP",r.Threats="THREATS",r))(nr||{}),Uf=(r=>(r.Article="ARTICLE",r.BookmakerOpinion="BOOKMAKER_OPINION",r.ClassUser="CLASS_USER",r.Comments="COMMENTS",r.Conference="CONFERENCE",r.News="NEWS",r.Photo="PHOTO",r.PhotoGallery="PHOTO_GALLERY",r.Poll="POLL",r.Post="POST",r.Rumour="RUMOUR",r.Status2="STATUS2",r.StopWord="STOP_WORD",r.UserNews="USER_NEWS",r))(Uf||{}),qn=(r=>(r.Author="AUTHOR",r.BlogAuthor="BLOG_AUTHOR",r.BlogModerator="BLOG_MODERATOR",r.BlogOwner="BLOG_OWNER",r.Undefined="UNDEFINED",r))(qn||{}),we=(r=>(r.Abuse="ABUSE",r.AddToBlacklist="ADD_TO_BLACKLIST",r.AddToBlacklistTemporary="ADD_TO_BLACKLIST_TEMPORARY",r.BanInBlog="BAN_IN_BLOG",r.BanInMyBlogs="BAN_IN_MY_BLOGS",r.BanInPosts="BAN_IN_POSTS",r.BanUserPermanent="BAN_USER_PERMANENT",r.BanUserTemporary="BAN_USER_TEMPORARY",r.CopyLink="COPY_LINK",r.CopyText="COPY_TEXT",r.Delete="DELETE",r.DeleteComments="DELETE_COMMENTS",r.Edit="EDIT",r.Pin="PIN",r.RemoveFromBlacklist="REMOVE_FROM_BLACKLIST",r.UnbanInBlog="UNBAN_IN_BLOG",r.UnbanInPosts="UNBAN_IN_POSTS",r.Unpin="UNPIN",r))(we||{}),Je=(r=>(r.Actual="ACTUAL",r.Best="BEST",r.New="NEW",r.Old="OLD",r.Rating="RATING",r))(Je||{}),tt=(r=>(r.Article="ARTICLE",r.BookmakerOpinion="BOOKMAKER_OPINION",r.Chat="CHAT",r.ChatMessage="CHAT_MESSAGE",r.Comment="COMMENT",r.News="NEWS",r.Photo="PHOTO",r.Poll="POLL",r.Post="POST",r.Status="STATUS",r.UserNews="USER_NEWS",r))(tt||{}),Gi=(r=>(r.Android="ANDROID",r.DesktopWeb="DESKTOP_WEB",r.Ios="IOS",r.MobileWeb="MOBILE_WEB",r))(Gi||{}),ar=(r=>(r.Minus="MINUS",r.Plus="PLUS",r))(ar||{}),Ls=(r=>(r.Article="ARTICLE",r.BookmakerOpinion="BOOKMAKER_OPINION",r.Comment="COMMENT",r.News="NEWS",r.Photo="PHOTO",r.PhotoGallery="PHOTO_GALLERY",r.Poll="POLL",r.Post="POST",r.Status="STATUS",r.Usernews="USERNEWS",r))(Ls||{}),kf=(r=>(r.Any="ANY",r.Negative="NEGATIVE",r.Positive="POSITIVE",r))(kf||{}),Pf=(r=>(r.FieldCommentsFilterSort="FIELD_COMMENTS_FILTER_SORT",r.FieldDonationsEnabled="FIELD_DONATIONS_ENABLED",r.FieldMobileCommentsOrder="FIELD_MOBILE_COMMENTS_ORDER",r.FieldShortSportsOnboardingDone="FIELD_SHORT_SPORTS_ONBOARDING_DONE",r.FieldWysiwygVersion="FIELD_WYSIWYG_VERSION",r))(Pf||{}),ht=(r=>(r.Insult="INSULT",r.MultiAccounting="MULTI_ACCOUNTING",r.Other="OTHER",r.Provocations="PROVOCATIONS",r.Racism="RACISM",r.Spam="SPAM",r.Swears="SWEARS",r.SystematicOfftop="SYSTEMATIC_OFFTOP",r.Threats="THREATS",r))(ht||{}),Gu=(r=>(r.SportsEmployee="SPORTS_EMPLOYEE",r.Undefined="UNDEFINED",r.Verified="VERIFIED",r))(Gu||{}),Mf=(r=>(r.LIST="list",r.DIALOGUE="dialogue",r))(Mf||{});const lb=({objectId:r})=>ku(`comments-store-${r}`,{state:()=>
3({viewMode:Mf.DIALOGUE,commentsList:[],commentsRelations:{},totalPageCommentsCount:0,totalCommentsCount:0,replyTarget:null,structure:[],ids:{},lastRenderedRootID:"",lastRenderedChildrenIds:{},lastRootCommentOrder:1,isLoadingComments:!1,order:Je.Best,isProcessingComment:!1,newCommentLastText:"",commentToEdit:null,complaintsAboutAuthor:{},isDonationFormShown:!1,isRejectedDonationPopupShown:!1,successfulDonationsCount:0})});function Et(r,o){const i=lb({objectId:r});return o?i(o):i()}var pe=(r=>(r.AFTER_CONTENT_WIDGET="after-content-widget",r.AFTER_NEWS_ITEM="after-news-item",r.BETS_COMMENT="Bets_comment",r.BRANDED_BLOG="Branded_Blog",r.BRANDED_NOTIFICATION="Branded_Notification",r.BRANDING_ADFOX="branding_adfox",r.BROADCAST_ONLINE="Broadcast_Online",r.CATFISH="catfish",r.COMMENTS_BLOGS="Comments_Blogs",r.COMMENTS_NEWS="Comments_News",r.DESKTOP_INREAD="Desktop_Inread",r.DESKTOP_INREAD1="Desktop_Inread1",r.FOOTER="Footer",r.FOOTER_ONLINE="Footer_Online",r.INREAD_NEWS="inread-news",r.INREAD_VIDEO="inread-video",r.LEFT_ONLINE_1="1Left_Online",r.LEFT_ONLINE_2="2Left_Online",r.MIDDLE="Middle",r.MIDDLE_1_ONLINE="Middle_1_Online",r.MIDDLE_2_ONLINE="Middle_2_Online",r.MOBILE_BRANDED_BLOG="Mobile_Branded_Blog",r.MOBILE_FULLSCREEN="MobileFullscreen",r.MOBILE_INREAD="mobile-inread",r.MOBILE_INREAD_VIDEO="mobile-inread-video",r.MOBILE_INREAD1="mobile-inread1",r.MOBILE_INREAD2="mobile-inread2",r.MOBILE_ONLINE_1="Mobile_Online_1",r.MOBILE_ONLINE_2="Mobile_Online_2",r.MOBILE_ONLINE_FOOTER="Mobile_Online_Footer",r.POSTSCRIPT_NEWS_DESKTOP="Postscript_News_Desktop",r.POSTSCRIPT_NEWS_MOBILE="Postscript_News_Mobile",r.RIGHT_FIRST="right-first",r.RIGHT_ROTATE="right-rotate",r.RIGHT_SQUARE="right-square",r.RIGHT_THIRD="right-third",r.SMARTAPP="smartapp",r.SQUARE="square",r.SQUARE_TOP="square-top",r.TOP="top",r.BANNER_300_100_ONLINE="Banner_300x100_Online",r.TAGS_HEADER="Tags_header",r.TAGS_HEADER_BUTTON="Tags_header_button",r.RIGHT_FIRST_TWO="right-first-two",r.RIGHT_MIDDLE="right-middle",r.LEFT_BOTTOM="left-bottom",r.MATCH_CENTER_MIDDLE="match-center-middle",r.AFTER_CONTENT_MENU="after-content-menu",r.NATIVE_MATERIAL="NativeMaterial",r.NATIVE_MATERIAL_MOBILE="NativeMaterialMobile",r.NATIVE_MATERIAL_MARKETING="NativeMaterialMarketing",r.NATIVE_MATERIAL_MARKETING_MOBILE="NativeMaterialMarketingMobile",r.IN_TAG_TEAM_MATCHES="in-tag-team-matches",r.IN_CALENDAR_MATCHES="in-calendar-matches",r.LEFT_NEWS="Left_News",r.MAIN_WEB_IN_MATERIAL="MainWeb_InMaterial",r.MAIN_MOBWEB_IN_MATERIAL="MainMobweb_InMaterial",r))(pe||{}),qu=(r=>(r.CONTAINER="container",r))(qu||{}),Rt=(r=>(r.CATFISH="catfish",r.DEFAULT="default",r.MOBILE_BRANDING="mobileBranding",r.POSTSCRIPT_NEWS="postscriptNews",r.TOP_BRANDING="topBranding",r.INREAD_VIDEO="inreadVideo",r.FULLSCREEN="fullscreen",r))(Rt||{}),Me=(r=>(r.BETS_COMMENT_CREATIVE="betsCommentCreative",r.BOOK_GADGET="bookGadget",r.BRANDED_NOTIFICATION_BETS_BONUS_MENU="brandedNotificationBetsBonusMenu",r.BRANDING_COLLAPSING="brandingCollapsing",r.BRANDING_COLLAPSING_HTML="brandingCollapsingHtml",r.BRANDING_POPUP="brandingPopup",r.BRANDING_STICKER="brandingSticker",r.CATFISH_BETS_IFRAME="catfishBetsIframe",r.CATFISH_STICKER_BUBBLE="catfishStickerBubble",r.CATFISH_WITH_BETS_ELEMENTS="catfishWithBetsElements",r.CYBER_TOURNAMENT_BETS="TournamentBetsCreative",r.DAILY_BONUS="dailybonusCreative",r.DESKTOP_CATFISH="desktopCatfish",r.MOBILE_INTERSCROLLER="mobileInterscroller",r.NATIVE_CREATIVE="nativeCreative",r.RENDERABLE_CATFISH="renderableCatfish",r.SMARTAPP_CREATIVE="smartappCreative",r.SQUARE_TOP_QUIZ="squareTopQuiz",r.TOP_BRANDING_CREATIVE="topBrandingCreative",r.WIDGET_CATFISH="widgetCatfish",r.INREAD_MATCH="inreadMatch",r.TAGS_HEADER="tagsHeader",r.SIMPLE_IFRAME="simpleIframe",r.WORLD_CUP_POPUP_STICKER="worldCupPopupSticker",r))(Me||{});let cb;const $f=()=>cb;function Xo(r){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var u in i)r[u]=i[u]}return r}var db={read:function(r){return r[0]==='"'&&(r=r.slice(1,-1)),r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(r){return encodeURIComponent(r).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decode
3URIComponent)}};function Ns(r,o){function i(c,p,d){if(typeof document<"u"){d=Xo({},o,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),c=encodeURIComponent(c).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var h in d)d[h]&&(a+="; "+h,d[h]!==!0&&(a+="="+d[h].split(";")[0]));return document.cookie=c+"="+r.write(p,c)+a}}function u(c){if(!(typeof document>"u"||arguments.length&&!c)){for(var p=document.cookie?document.cookie.split("; "):[],d={},a=0;a<p.length;a++){var h=p[a].split("="),y=h.slice(1).join("=");try{var g=decodeURIComponent(h[0]);if(d[g]=r.read(y,g),c===g)break}catch{}}return c?d[c]:d}}return Object.create({set:i,get:u,remove:function(c,p){i(c,"",Xo({},p,{expires:-1}))},withAttributes:function(c){return Ns(this.converter,Xo({},this.attributes,c))},withConverter:function(c){return Ns(Xo({},this.converter,c),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(r)}})}var Ff=Ns(db,{path:"/"}),Ds=(r=>(r.DARK="dark",r.LIGHT="light",r))(Ds||{});const fb="site-theme";let pb=class{get(){return Ff.get(fb)||Ds.LIGHT}isDarkTheme(){return this.get()===Ds.DARK}};const ei=new pb;var Zt=(r=>(r.BLOG_POST="blog-post",r.BLOG_POST_SNAKE_CASE="blog_post",r.SECTION_NAME="section-name",r.TAG="tag",r.HOMEPAGE="homepage",r.TRIBUNA="tribuna",r.MAIN="main",r.STAT="stat",r.ONLINE="online",r))(Zt||{}),Vn=(r=>(r.ARTICLE="article",r.MAIN_SECTION="mainsection",r.TAGS="tags",r.MAIN_PAGE="mainpage",r))(Vn||{}),Ei=(r=>(r.CONTENT="content",r.SUBSECTION="subsection",r.MAINSECTION="mainsection",r.STAT="stat",r.FEED="feed",r))(Ei||{}),_o=(r=>(r.MATCH_CENTER="matchcenter",r.ONLINE="online",r.TAG="tag",r.MY_FEED="myfeed",r))(_o||{}),Ao=(r=>(r.NEWS="news",r.ARTICLE="article",r.STAT="stat",r.ONLINE="online",r.TRIBUNA="tribuna",r.BLOG_POST="blog-post",r.POLL="poll",r.MATCH_CENTER="matchcenter",r.TAG="tag",r.FANTASY="fantasy",r.MY_FEED="myfeed",r))(Ao||{});let hb=class{constructor(){this.targetingsData={pageid:"",site:"",sportname:[],tags:[],blog_webname:"",sessionDepth:"",sectiontype:"",pagetype:"",both_sites:"",subsportname:[],registered:"",inputSource:"",betsType:"",userGroup:"",betting:"",refreshCounter:"",line_item:"",devmode:"",internal:"",cyberSportType:"",pagename:""},this.targetingsPageDataMap={pageType:{name:"sectiontype",converter:o=>this.getHomePage(o)},articleId:{name:"pageid",converter:o=>this.getString(o)},messageId:{name:"pageid",converter:o=>this.getString(o)},pageId:{name:"pageid",converter:o=>this.getString(o)},sectionName:{name:"sportname",converter:o=>this.getArray(o)},subSectionName:{name:"subsportname",converter:o=>this.getArray(o)},tags:{name:"tags",converter:o=>this.getTagsIDs(o)},tagsList:{name:"tags",converter:o=>this.getTagsIDs(o)},blog_webname:{name:"blog_webname",converter:o=>this.getString(o)},articleType:{name:"pagetype",converter:o=>this.getString(o)},sectionType:{name:"sectiontype",converter:o=>this.getString(o)},tribunaSectionType:{name:"sectiontype",converter:o=>this.getString(o)},basicSectionName:{name:"sportname",converter:o=>this.addToArraySportname(o)},betsType:{name:"betsType",converter:o=>this.getString(o)},sportName:{name:"sportname",converter:o=>this.getSplitArray(o)},pageName:{name:"pagename",converter:o=>this.getString(o)}}}getTagsIDs(o){return Array.isArray(o)?o.map(i=>String(i.id)):[]}getString(o){if(o===Zt.BLOG_POST_SNAKE_CASE||o===Zt.BLOG_POST)return Vn.ARTICLE;switch(o){case Zt.SECTION_NAME:return Vn.MAIN_SECTION;case Zt.TAG:return Vn.TAGS;case Zt.HOMEPAGE:return Vn.MAIN_PAGE;case Zt.TRIBUNA:return"";default:return String(o)}}getArray(o){return o===Zt.MAIN?"":o?[String(o)]:[]}addToArraySportname(o){return[o]}getHomePage(o){return o===Zt.HOMEPAGE?Vn.MAIN_PAGE:""}getSplitArray(o){return o.split("/")}setTargetingValue(o,i){this.targetingsData[o]=i}getTargetingValue(o){return this.targetingsData[o]}setBaseTargetingsByProp(o,i){const u=this.targetingsPageDataMap[o];if(!u)return;const c=u.name,p=u.converter(i);this.setTargetingValue(c,p)}},fo=class{},mb=class extends fo{constructor(){super(...arguments),this.baseTargetingsNew=new hb,this.shouldSkipEmptyValues=!1}setPageData(o,i){window.Sports=window.Sports||{},window.Sports.pageData=window.Sports.pageData||{},window.Sports.pageData={...window.Sports.pageData,...o},i&&(this.shouldSkipEmptyValues=i)}load(){var o;const i=(o=window.Sports)==null?void 0:o.pageData;return i?(this.setBaseTargetings(i),{sectionType:this.getSectionType(i),pageId:this.getPageId(i),sportName:this.baseTargetingsNew.getTargetingValue("sportname"),subSportName:this.baseTargetingsNew.getTargetingValue("subsportname"),tags:this.getTags(i),blogWebname:this.baseTargetingsNew.getTargetingValue("blog_webname"),pageType:this.getPageType(i),betsType:this.baseTargetingsNew.getTargetingValue("betsType"),infiniteMaterialOrder:i.infiniteMaterialOrder}):{}}setBaseTargetings(o){for(const[i,u]of Object.entries(o))this.shouldSkipEmptyValues&&!u||this.baseTargetingsNew.setBaseTargetingsByProp(i,u)}getSectionType(o){const i=this.baseTargetingsNew.getTargetingValue("sectiontype");if(i){const u=this.baseTargetingsNew.getTargetingValue("pagename");return u?(this.baseTargetingsNew.setTargetingValue("sectiontype",u),this.baseTargetingsNew.setTargetingValue("pagename",""),u):i}return!o.articleType&&o.subSectionName?this.baseTargetingsNew.setTargetingValue("sectiontype",Ei.SUBSECTION):!o.articleType&&o.sectionName?this.baseTargetingsNew.setTargetingValue("sectiontype",Ei.MAINSECTION):this.baseTargetingsNew.setTargetingValue("sectiontype",Ei.CONTENT),this.baseTargetingsNew.getTargetingValue("sectiontype")}getPageId(o){return o.sectionType===Zt.TAG&&this.baseTargetingsNew.setTargetingValue("pageid",""),this.baseTargetingsNew.getTargetingValue("pageid")}getTags(o){return o.sectionType===Zt.TAG&&this.baseTargetingsNew.setTargetingValue("tags",[o.messageId]),this.baseTargetingsNew.getTargetingValue("tags")}
3getPageType(o){switch(o.articleType){case Ao.STAT:this.baseTargetingsNew.setTargetingValue("pagetype",_o.MATCH_CENTER);break;case Ao.ONLINE:this.baseTargetingsNew.setTargetingValue("pagetype",_o.ONLINE);break;case Ao.TAG:this.baseTargetingsNew.setTargetingValue("pagetype",_o.TAG);break;case Ao.MY_FEED:this.baseTargetingsNew.setTargetingValue("pagetype",_o.MY_FEED);break}return o.sectionType===Zt.TAG&&this.baseTargetingsNew.setTargetingValue("pagetype",""),this.baseTargetingsNew.getTargetingValue("pagetype")}};const jf=r=>" { adSegmentsQueries { get { key value } } } ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");jf.operationName="getAdSegments";const Ql="ad-targeting:segments:data",gb=2,Jl="3",La="sports";var qi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gf(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var xs={},qf={},ca={};ca.byteLength=wb;ca.toByteArray=Eb;ca.fromByteArray=Ib;var _r=[],Gt=[],yb=typeof Uint8Array<"u"?Uint8Array:Array,Na="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Nn=0,bb=Na.length;Nn<bb;++Nn)_r[Nn]=Na[Nn],Gt[Na.charCodeAt(Nn)]=Nn;Gt[45]=62;Gt[95]=63;function Vf(r){var o=r.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=r.indexOf("=");i===-1&&(i=o);var u=i===o?0:4-i%4;return[i,u]}function wb(r){var o=Vf(r),i=o[0],u=o[1];return(i+u)*3/4-u}function vb(r,o,i){return(o+i)*3/4-i}function Eb(r){var o,i=Vf(r),u=i[0],c=i[1],p=new yb(vb(r,u,c)),d=0,a=c>0?u-4:u,h;for(h=0;h<a;h+=4)o=Gt[r.charCodeAt(h)]<<18|Gt[r.charCodeAt(h+1)]<<12|Gt[r.charCodeAt(h+2)]<<6|Gt[r.charCodeAt(h+3)],p[d++]=o>>16&255,p[d++]=o>>8&255,p[d++]=o&255;return c===2&&(o=Gt[r.charCodeAt(h)]<<2|Gt[r.charCodeAt(h+1)]>>4,p[d++]=o&255),c===1&&(o=Gt[r.charCodeAt(h)]<<10|Gt[r.charCodeAt(h+1)]<<4|Gt[r.charCodeAt(h+2)]>>2,p[d++]=o>>8&255,p[d++]=o&255),p}function _b(r){return _r[r>>18&63]+_r[r>>12&63]+_r[r>>6&63]+_r[r&63]}function Ab(r,o,i){for(var u,c=[],p=o;p<i;p+=3)u=(r[p]<<16&16711680)+(r[p+1]<<8&65280)+(r[p+2]&255),c.push(_b(u));return c.join("")}function Ib(r){for(var o,i=r.length,u=i%3,c=[],p=16383,d=0,a=i-u;d<a;d+=p)c.push(Ab(r,d,d+p>a?a:d+p));return u===1?(o=r[i-1],c.push(_r[o>>2]+_r[o<<4&63]+"==")):u===2&&(o=(r[i-2]<<8)+r[i-1],c.push(_r[o>>10]+_r[o>>4&63]+_r[o<<2&63]+"=")),c.join("")}var Vu={};Vu.read=function(r,o,i,u,c){var p,d,a=c*8-u-1,h=(1<<a)-1,y=h>>1,g=-7,b=i?c-1:0,v=i?-1:1,w=r[o+b];for(b+=v,p=w&(1<<-g)-1,w>>=-g,g+=a;g>0;p=p*256+r[o+b],b+=v,g-=8);for(d=p&(1<<-g)-1,p>>=-g,g+=u;g>0;d=d*256+r[o+b],b+=v,g-=8);if(p===0)p=1-y;else{if(p===h)return d?NaN:(w?-1:1)*(1/0);d=d+Math.pow(2,u),p=p-y}return(w?-1:1)*d*Math.pow(2,p-u)};Vu.write=function(r,o,i,u,c,p){var d,a,h,y=p*8-c-1,g=(1<<y)-1,b=g>>1,v=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=u?0:p-1,_=u?1:-1,T=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(a=isNaN(o)?1:0,d=g):(d=Math.floor(Math.log(o)/Math.LN2),o*(h=Math.pow(2,-d))<1&&(d--,h*=2),d+b>=1?o+=v/h:o+=v*Math.pow(2,1-b),o*h>=2&&(d++,h/=2),d+b>=g?(a=0,d=g):d+b>=1?(a=(o*h-1)*Math.pow(2,c),d=d+b):(a=o*Math.pow(2,b-1)*Math.pow(2,c),d=0));c>=8;r[i+w]=a&255,w+=_,a/=256,c-=8);for(d=d<<c|a,y+=c;y>0;r[i+w]=d&255,w+=_,d/=256,y-=8);r[i+w-_]|=T*128};(function(r){const o=ca,i=Vu,u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=a,r.SlowBuffer=D,r.INSPECT_MAX_BYTES=50;const c=2147483647;r.kMaxLength=c,a.TYPED_ARRAY_SUPPORT=p(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function p(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function d(e){if(e>
3c)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,n){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return b(e)}return h(e,t,n)}a.poolSize=8192;function h(e,t,n){if(typeof e=="string")return v(e,t);if(ArrayBuffer.isView(e))return _(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ie(e,ArrayBuffer)||e&&ie(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ie(e,SharedArrayBuffer)||e&&ie(e.buffer,SharedArrayBuffer)))return T(e,t,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const s=e.valueOf&&e.valueOf();if(s!=null&&s!==e)return a.from(s,t,n);const l=A(e);if(l)return l;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,t,n){return h(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function y(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function g(e,t,n){return y(e),e<=0?d(e):t!==void 0?typeof n=="string"?d(e).fill(t,n):d(e).fill(t):d(e)}a.alloc=function(e,t,n){return g(e,t,n)};function b(e){return y(e),d(e<0?0:B(e)|0)}a.allocUnsafe=function(e){return b(e)},a.allocUnsafeSlow=function(e){return b(e)};function v(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=x(e,t)|0;let s=d(n);const l=s.write(e,t);return l!==n&&(s=s.slice(0,l)),s}function w(e){const t=e.length<0?0:B(e.length)|0,n=d(t);for(let s=0;s<t;s+=1)n[s]=e[s]&255;return n}function _(e){if(ie(e,Uint8Array)){const t=new Uint8Array(e);return T(t.buffer,t.byteOffset,t.byteLength)}return w(e)}function T(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let s;return t===void 0&&n===void 0?s=new Uint8Array(e):n===void 0?s=new Uint8Array(e,t):s=new Uint8Array(e,t,n),Object.setPrototypeOf(s,a.prototype),s}function A(e){if(a.isBuffer(e)){const t=B(e.length)|0,n=d(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!="number"||De(e.length)?d(0):w(e);if(e.type==="Buffer"&&Array.isArray(e.data))return w(e.data)}function B(e){if(e>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return e|0}function D(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==a.prototype},a.compare=function(e,t){if(ie(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),ie(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,s=t.length;for(let l=0,f=Math.min(n,s);l<f;++l)if(e[l]!==t[l]){n=e[l],s=t[l];break}return n<s?-1:s<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return a.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const s=a.allocUnsafe(t);let l=0;for(n=0;n<e.length;++n){let f=e[n];if(ie(f,Uint8Array))l+f.length>s.length?(a.isBuffer(f)||(f=a.from(f)),f.copy(s,l)):Uint8Array.prototype.set.call(s,f,l);else if(a.isBuffer(f))f.copy(s,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=f.length}return s};function x(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ie(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,s=arguments.length>2&&arguments[2]===!0;if(!s&&n===0)return 0;let l=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Ie(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Se(e).length;default:if(l)return s?-1:Ie(e).length;t=(""+t).toLowerCase(),l=!0}}a.byteLength=x;function W(e,t,n){let s=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return ne(this,t,n);case"utf8":case"utf-8":return H(this,t,n);case"ascii":return he(this,t,n);case"latin1":case"binary":return ge(this,t,n);case"base64":return ue(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,t,n);default:if(s)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}a.prototype._isBuffer=!0;function U(e,t,n){const s=e[t];e[t]=e[n],e[n]=s}a.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)U(this,t,t+1);return this},a.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)U(this,t,t+3),U(this,t+1,t+2);return this},a.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)U(this,t,t+7),U(this,t+1,t+6),U(this,t+2,t+5),U(this,t+3,t+4);return this},a.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?H(this,0,e):W.apply(this,arguments)}
vendor: 14,032 bytes, line 3
3,a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:a.compare(this,e)===0},a.prototype.inspect=function(){let e="";const t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},u&&(a.prototype[u]=a.prototype.inspect),a.prototype.compare=function(e,t,n,s,l){if(ie(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),s===void 0&&(s=0),l===void 0&&(l=this.length),t<0||n>e.length||s<0||l>this.length)throw new RangeError("out of range index");if(s>=l&&t>=n)return 0;if(s>=l)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,s>>>=0,l>>>=0,this===e)return 0;let f=l-s,m=n-t;const L=Math.min(f,m),Z=this.slice(s,l),G=e.slice(t,n);for(let $=0;$<L;++$)if(Z[$]!==G[$]){f=Z[$],m=G[$];break}return f<m?-1:m<f?1:0};function S(e,t,n,s,l){if(e.length===0)return-1;if(typeof n=="string"?(s=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,De(n)&&(n=l?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(l)return-1;n=e.length-1}else if(n<0)if(l)n=0;else return-1;if(typeof t=="string"&&(t=a.from(t,s)),a.isBuffer(t))return t.length===0?-1:M(e,t,n,s,l);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?l?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):M(e,[t],n,s,l);throw new TypeError("val must be string, number or Buffer")}function M(e,t,n,s,l){let f=1,m=e.length,L=t.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(e.length<2||t.length<2)return-1;f=2,m/=2,L/=2,n/=2}function Z($,Q){return f===1?$[Q]:$.readUInt16BE(Q*f)}let G;if(l){let $=-1;for(G=n;G<m;G++)if(Z(e,G)===Z(t,$===-1?0:G-$)){if($===-1&&($=G),G-$+1===L)return $*f}else $!==-1&&(G-=G-$),$=-1}else for(n+L>m&&(n=m-L),G=n;G>=0;G--){let $=!0;for(let Q=0;Q<L;Q++)if(Z(e,G+Q)!==Z(t,Q)){$=!1;break}if($)return G}return-1}a.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},a.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function I(e,t,n,s){n=Number(n)||0;const l=e.length-n;s?(s=Number(s),s>l&&(s=l)):s=l;const f=t.length;s>f/2&&(s=f/2);let m;for(m=0;m<s;++m){const L=parseInt(t.substr(m*2,2),16);if(De(L))return m;e[n+m]=L}return m}function R(e,t,n,s){return Ee(Ie(t,e.length-n),e,n,s)}function C(e,t,n,s){return Ee(le(t),e,n,s)}function V(e,t,n,s){return Ee(Se(t),e,n,s)}function F(e,t,n,s){return Ee(me(t,e.length-n),e,n,s)}a.prototype.write=function(e,t,n,s){if(t===void 0)s="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")s=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,s===void 0&&(s="utf8")):(s=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const l=this.length-t;if((n===void 0||n>l)&&(n=l),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");let f=!1;for(;;)switch(s){case"hex":return I(this,e,t,n);case"utf8":case"utf-8":return R(this,e,t,n);case"ascii":case"latin1":case"binary":return C(this,e,t,n);case"base64":return V(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,e,t,n);default:if(f)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),f=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(e,t,n){return t===0&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function H(e,t,n){n=Math.min(e.length,n);const s=[];let l=t;for(;l<n;){const f=e[l];let m=null,L=f>239?4:f>223?3:f>191?2:1;if(l+L<=n){let Z,G,$,Q;switch(L){case 1:f<128&&(m=f);break;case 2:Z=e[l+1],(Z&192)===128&&(Q=(f&31)<<6|Z&63,Q>127&&(m=Q));break;case 3:Z=e[l+1],G=e[l+2],(Z&192)===128&&(G&192)===128&&(Q=(f&15)<<12|(Z&63)<<6|G&63,Q>2047&&(Q<55296||Q>57343)&&(m=Q));break;case 4:Z=e[l+1],G=e[l+2],$=e[l+3],(Z&192)===128&&(G&192)===128&&($&192)===128&&(Q=(f&15)<<18|(Z&63)<<12|(G&63)<<6|$&63,Q>65535&&Q<1114112&&(m=Q))}}m===null?(m=65533,L=1):m>65535&&(m-=65536,s.push(m>>>10&1023|55296),m=56320|m&1023),s.push(m),l+=L}return X(s)}const j=4096;function X(e){const t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let n="",s=0;for(;s<t;)n+=String.fromCharCode.apply(String,e.slice(s,s+=j));return n}function he(e,t,n){let s="";n=Math.min(e.length,n);for(let l=t;l<n;++l)s+=String.fromCharCode(e[l]&127);return s}function ge(e,t,n){let s="";n=Math.min(e.length,n);for(let l=t;l<n;++l)s+=String.fromCharCode(e[l]);return s}function ne(e,t,n){const s=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>s)&&(n=s);let l="";for(let f=t;f<n;++f)l+=O[e[f]];return l}function be(e,t,n){const s=e.slice(t,n);let l="";for(let f=0;f<s.length-1;f+=2)l+=String.fromCharCode(s[f]+s[f+1]*256);return l}a.prototype.slice=function(e,t){const n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);const s=this.subarray(e,t);return Object.setPrototypeOf(s,a.prototype),s};function P(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e],l=1,f=0;for(;++f<t&&(l*=256);)s+=this[e+f]*l;return s},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e+--t],l=1;for(;t>0&&(l*=256);)s+=this[e+--t]*l;return s},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e=e>>>0,t||P(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||P(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||P(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,l=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(s)+(BigInt(l)<<BigInt(32))}),a.prototype.readBigUInt64BE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],l=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(s)<<BigInt(32))+BigInt(l)}),a.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e],l=1,f=0;for(;++f<t&&(l*=256);)s+=this[e+f]*l;return l*=128,s>=l&&(s-=Math.pow(2,8*t)),s},a.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=t,l=1,f=this[e+--s];for(;s>0&&(l*=256);)f+=this[e+--s]*l;return l*=128,f>=l&&(f-=Math.pow(2,8*t)),f},a.prototype.readInt8=function(e,t){return e=e>>>0,t||P(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},a.prototype.readInt16LE=function(e,t){e=e>>>0,t||P(e,2,this.length);const n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},a.prototype.readInt16BE=function(e,t){e=e>>>0,t||P(e,2,this.length);const n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},a.prototype.readInt32LE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(s)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),a.prototype.readBigInt64BE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(s)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),a.prototype.readFloatLE=function(e,t){return e=e>>>0,t||P(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e=e>>>0,t||P(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||P(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||P(e,8,this.length),i.read(this,e,!1,52,8)};function ee(e,t,n,s,l,f){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>l||t<f)throw new RangeError('"value" argument is out of bounds');if(n+s>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,n,s){if(e=+e,t=t>>>0,n=n>>>0,!s){const m=Math.pow(2,8*n)-1;ee(this,e,t,n,m,0)}let l=1,f=0;for(this[t]=e&255;++f<n&&(l*=256);)this[t+f]=e/l&255;return t+n},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,n,s){if(e=+e,t=t>>>0,n=n>>>0,!s){const m=Math.pow(2,8*n)-1;ee(this,e,t,n,m,0)}let l=n-1,f=1;for(this[t+l]=e&255;--l>=0&&(f*=256);)this[t+l]=e/f&255;return t+n},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,1,255,0),this[t]=e&255,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function Ue(e,t,n,s,l){re(t,s,l,e,n,7);let f=Number(t&BigInt(4294967295));e[n++]=f,f=f>>8,e[n++]=f,f=f>>8,e[n++]=f,f=f>>8,e[n++]=f;let m=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=m,m=m>>8,e[n++]=m,m=m>>8,e[n++]=m,m=m>>8,e[n++]=m,n}function _e(e,t,n,s,l){re(t,s,l,e,n,7);let f=Number(t&BigInt(4294967295));e[n+7]=f,f=f>>8,e[n+6]=f,f=f>>8,e[n+5]=f,f=f>>8,e[n+4]=f;let m=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=m,m=m>>8,e[n+2]=m,m=m>>8,e[n+1]=m,m=m>>8,e[n]=m,n+8}a.prototype.writeBigUInt64LE=N(function(e,t=0){return Ue(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=N(function(e,t=0){return _e(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(e,t,n,s){if(e=+e,t=t>>>0,!s){const L=Math.pow(2,8*n-1);ee(this,e,t,n,L-1,-L)}let l=0,f=1,m=0;for(this[t]=e&255;++l<n&&(f*=256);)e<0&&m===0&&this[t+l-1]!==0&&(m=1),this[t+l]=(e/f>>0)-m&255;return t+n},a.prototype.writeIntBE=function(e,t,n,s){if(e=+e,t=t>>>0,!s){const L=Math.pow(2,8*n-1);ee(this,e,t,n,L-1,-L)}let l=n-1,f=1,m=0;for(this[t+l]=e&255;--l>=0&&(f*=256);)e<0&&m===0&&this[t+l+1]!==0&&(m=1),this[t+l]=(e/f>>0)-m&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},a.prototype.writeBigInt64LE=N(function(e,t=0){return Ue(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=N(function(e,t=0){return _e(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ce(e,t,n,s,l,f){if(n+s>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function de(e,t,n,s,l){return t=+t,n=n>>>0,l||ce(e,t,n,4),i.write(e,t,n,s,23,4),n+4}a.prototype.writeFloatLE=function(e,t,n){return de(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return de(this,e,t,!1,n)};function ve(e,t,n,s,l){return t=+t,n=n>>>0,l||ce(e,t,n,8),i.write(e,t,n,s,52,8),n+8}a.prototype.writeDoubleLE=function(e,t,n){return ve(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return ve(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,s){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!s&&s!==0&&(s=this.length),t>=e.length&&(t=e.length),t||(t=0),s>0&&s<n&&(s=n),s===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-t<s-n&&(s=e.length-t+n);const l=s-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,s):Uint8Array.prototype.set.call(e,this.subarray(n,s),t),l},a.prototype.fill=function(e,t,n,s){if(typeof e=="string"){if(typeof t=="string"?(s=t,t=0,n=this.length):typeof n=="string"&&(s=n,n=this.length),s!==void 0&&typeof s!="str
3ing")throw new TypeError("encoding must be a string");if(typeof s=="string"&&!a.isEncoding(s))throw new TypeError("Unknown encoding: "+s);if(e.length===1){const f=e.charCodeAt(0);(s==="utf8"&&f<128||s==="latin1")&&(e=f)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let l;if(typeof e=="number")for(l=t;l<n;++l)this[l]=e;else{const f=a.isBuffer(e)?e:a.from(e,s),m=f.length;if(m===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(l=0;l<n-t;++l)this[l+t]=f[l%m]}return this};const te={};function E(e,t,n){te[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(s){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:s,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}E("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),E("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),E("ERR_OUT_OF_RANGE",function(e,t,n){let s=`The value of "${e}" is out of range.`,l=n;return Number.isInteger(n)&&Math.abs(n)>2**32?l=k(String(n)):typeof n=="bigint"&&(l=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(l=k(l)),l+="n"),s+=` It must be ${t}. Received ${l}`,s},RangeError);function k(e){let t="",n=e.length;const s=e[0]==="-"?1:0;for(;n>=s+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function Y(e,t,n){z(t,"offset"),(e[t]===void 0||e[t+n]===void 0)&&J(t,e.length-(n+1))}function re(e,t,n,s,l,f){if(e>n||e<t){const m=typeof t=="bigint"?"n":"";let L;throw t===0||t===BigInt(0)?L=`>= 0${m} and < 2${m} ** ${(f+1)*8}${m}`:L=`>= -(2${m} ** ${(f+1)*8-1}${m}) and < 2 ** ${(f+1)*8-1}${m}`,new te.ERR_OUT_OF_RANGE("value",L,e)}Y(s,l,f)}function z(e,t){if(typeof e!="number")throw new te.ERR_INVALID_ARG_TYPE(t,"number",e)}function J(e,t,n){throw Math.floor(e)!==e?(z(e,n),new te.ERR_OUT_OF_RANGE("offset","an integer",e)):t<0?new te.ERR_BUFFER_OUT_OF_BOUNDS:new te.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}const se=/[^+/0-9A-Za-z-_]/g;function Ae(e){if(e=e.split("=")[0],e=e.trim().replace(se,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Ie(e,t){t=t||1/0;let n;const s=e.length;let l=null;const f=[];for(let m=0;m<s;++m){if(n=e.charCodeAt(m),n>55295&&n<57344){if(!l){if(n>56319){(t-=3)>-1&&f.push(239,191,189);continue}else if(m+1===s){(t-=3)>-1&&f.push(239,191,189);continue}l=n;continue}if(n<56320){(t-=3)>-1&&f.push(239,191,189),l=n;continue}n=(l-55296<<10|n-56320)+65536}else l&&(t-=3)>-1&&f.push(239,191,189);if(l=null,n<128){if((t-=1)<0)break;f.push(n)}else if(n<2048){if((t-=2)<0)break;f.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;f.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;f.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return f}function le(e){const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function me(e,t){let n,s,l;const f=[];for(let m=0;m<e.length&&!((t-=2)<0);++m)n=e.charCodeAt(m),s=n>>8,l=n%256,f.push(l),f.push(s);return f}function Se(e){return o.toByteArray(Ae(e))}function Ee(e,t,n,s){let l;for(l=0;l<s&&!(l+n>=t.length||l>=e.length);++l)t[l+n]=e[l];return l}function ie(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function De(e){return e!==e}const O=(function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const s=n*16;for(let l=0;l<16;++l)t[s+l]=e[n]+e[l]}return t})();function N(e){return typeof BigInt>"u"?K:e}function K(){throw new Error("BigInt not supported")}})(qf);var Hf={exports:{}},ut=Hf.exports={},lr,cr;function Us(){throw new Error("setTimeout has not been defined")}function ks(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?lr=setTimeout:lr=Us}catch{lr=Us}try{typeof clearTimeout=="function"?cr=clearTimeout:cr=ks}catch{cr=ks}})();function zf(r){if(lr===setTimeout)return setTimeout(r,0);if((lr===Us||!lr)&&setTimeout)return lr=setTimeout,setTimeout(r,0);try{return lr(r,0)}catch{try{return lr.call(null,r,0)}catch{return lr.call(this,r,0)}}}function Tb(r){if(cr===clearTimeout)return clearTimeout(r);
3if((cr===ks||!cr)&&clearTimeout)return cr=clearTimeout,clearTimeout(r);try{return cr(r)}catch{try{return cr.call(null,r)}catch{return cr.call(this,r)}}}var kr=[],Zn=!1,yn,_i=-1;function Sb(){!Zn||!yn||(Zn=!1,yn.length?kr=yn.concat(kr):_i=-1,kr.length&&Wf())}function Wf(){if(!Zn){var r=zf(Sb);Zn=!0;for(var o=kr.length;o;){for(yn=kr,kr=[];++_i<o;)yn&&yn[_i].run();_i=-1,o=kr.length}yn=null,Zn=!1,Tb(r)}}ut.nextTick=function(r){var o=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)o[i-1]=arguments[i];kr.push(new Yf(r,o)),kr.length===1&&!Zn&&zf(Wf)};function Yf(r,o){this.fun=r,this.array=o}Yf.prototype.run=function(){this.fun.apply(null,this.array)};ut.title="browser";ut.browser=!0;ut.env={};ut.argv=[];ut.version="";ut.versions={};function zr(){}ut.on=zr;ut.addListener=zr;ut.once=zr;ut.off=zr;ut.removeListener=zr;ut.removeAllListeners=zr;ut.emit=zr;ut.prependListener=zr;ut.prependOnceListener=zr;ut.listeners=function(r){return[]};ut.binding=function(r){throw new Error("process.binding is not supported")};ut.cwd=function(){return"/"};ut.chdir=function(r){throw new Error("process.chdir is not supported")};ut.umask=function(){return 0};var Rb=Hf.exports;(function(r){Object.defineProperty(r,Symbol.toStringTag,{value:"Module"});const o=qf,i=Rb,u=d=>d&&d.__esModule?d:{default:d},c=u(i),p=globalThis||void 0||self;Object.defineProperty(r,"Buffer",{enumerable:!0,get:()=>o.Buffer}),Object.defineProperty(r,"process",{enumerable:!0,get:()=>c.default}),r.global=p})(xs);const $o="QUERY_GQL_REQ_TYPE",Vi="MUTATION_GQL_REQ_TYPE",Bb="GET",Kf="POST";let Cb=class{constructor(o){this.clientImplementation=o}makeRequest(o){const{url:i,headers:u,method:c,data:p}=o,d=c===Bb?`${i}?query=${p}`:i,a=c===Kf?p:void 0,h=new AbortController,{cookie:y,...g}=u,b=typeof window>"u"?u:g;return{clientResponsePromise:this.clientImplementation.fetch(d,{headers:b,method:c,credentials:"include",signal:h.signal,...a?{body:a}:{}}).then(v=>{const{url:w,ok:_,status:T,statusText:A}=v;return{url:w,status:{ok:_,code:T,text:A},responseDataPromise:_?v.json():v.text()}}),cancelCallback:()=>h.abort()}}};var Ob=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof xs.global<"u"?xs.global:typeof self<"u"?self:{};function Qf(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Ps={exports:{}};(function(r,o){var i=typeof self<"u"?self:Ob,u=(function(){function p(){this.fetch=!1,this.DOMException=i.DOMException}return p.prototype=i,new p})();(function(p){(function(d){var a={searchParams:"URLSearchParams"in p,iterable:"Symbol"in p&&"iterator"in Symbol,blob:"FileReader"in p&&"Blob"in p&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:"FormData"in p,arrayBuffer:"ArrayBuffer"in p};function h(H){return H&&DataView.prototype.isPrototypeOf(H)}if(a.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=ArrayBuffer.isView||function(H){return H&&y.indexOf(Object.prototype.toString.call(H))>-1};function b(H){if(typeof H!="string"&&(H=String(H)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(H))throw new TypeError("Invalid character in header field name");return H.toLowerCase()}function v(H){return typeof H!="string"&&(H=String(H)),H}function w(H){var j={next:function(){var X=H.shift();return{done:X===void 0,value:X}}};return a.iterable&&(j[Symbol.iterator]=function(){return j}),j}function _(H){this.map={},H instanceof _?H.forEach(function(j,X){this.append(X,j)},this):Array.isArray(H)?H.forEach(function(j){this.append(j[0],j[1])},this):H&&Object.getOwnPropertyNames(H).forEach(function(j){this.append(j,H[j])},this)}_.prototype.append=function(H,j){H=b(H),j=v(j);var X=this.map[H];this.map[H]=X?X+", "+j:j},_.prototype.delete=function(H){delete this.map[b(H)]},_.prototype.get=function(H){return H=b(H),this.has(H)?this.map[H]:null},_.prototype.has=function(H){return this.map.hasOwnProperty(b(H))},_.prototype.set=function(H,j){this.map[b(H)]=v(j)},_.prototype.forEach=function(H,j){for(var X in this.map)this.map.hasOwnProperty(X)&&H.call(j,this.map[X],X,this)},_.prototype.keys=function(){var H=[];return this.forEach(function(j,X){H.push(X)}),w(H)},_.prototype.values=function(){var H=[];return this.forEach(function(j){H.push(j)}),w(H)},_.prototype.entries=function(){var H=[];return this.forEach(function(j,X){H.push([X,j])}),w(H)},a.iterable&&(_.prototype[Symbol.iterator]=_.prototype.entries);
3function T(H){if(H.bodyUsed)return Promise.reject(new TypeError("Already read"));H.bodyUsed=!0}function A(H){return new Promise(function(j,X){H.onload=function(){j(H.result)},H.onerror=function(){X(H.error)}})}function B(H){var j=new FileReader,X=A(j);return j.readAsArrayBuffer(H),X}function D(H){var j=new FileReader,X=A(j);return j.readAsText(H),X}function x(H){for(var j=new Uint8Array(H),X=new Array(j.length),he=0;he<j.length;he++)X[he]=String.fromCharCode(j[he]);return X.join("")}function W(H){if(H.slice)return H.slice(0);var j=new Uint8Array(H.byteLength);return j.set(new Uint8Array(H)),j.buffer}function U(){return this.bodyUsed=!1,this._initBody=function(H){this._bodyInit=H,H?typeof H=="string"?this._bodyText=H:a.blob&&Blob.prototype.isPrototypeOf(H)?this._bodyBlob=H:a.formData&&FormData.prototype.isPrototypeOf(H)?this._bodyFormData=H:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(H)?this._bodyText=H.toString():a.arrayBuffer&&a.blob&&h(H)?(this._bodyArrayBuffer=W(H.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(H)||g(H))?this._bodyArrayBuffer=W(H):this._bodyText=H=Object.prototype.toString.call(H):this._bodyText="",this.headers.get("content-type")||(typeof H=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(H)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var H=T(this);if(H)return H;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?T(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(B)}),this.text=function(){var H=T(this);if(H)return H;if(this._bodyBlob)return D(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(x(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(R)}),this.json=function(){return this.text().then(JSON.parse)},this}var S=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function M(H){var j=H.toUpperCase();return S.indexOf(j)>-1?j:H}function I(H,j){j=j||{};var X=j.body;if(H instanceof I){if(H.bodyUsed)throw new TypeError("Already read");this.url=H.url,this.credentials=H.credentials,j.headers||(this.headers=new _(H.headers)),this.method=H.method,this.mode=H.mode,this.signal=H.signal,!X&&H._bodyInit!=null&&(X=H._bodyInit,H.bodyUsed=!0)}else this.url=String(H);if(this.credentials=j.credentials||this.credentials||"same-origin",(j.headers||!this.headers)&&(this.headers=new _(j.headers)),this.method=M(j.method||this.method||"GET"),this.mode=j.mode||this.mode||null,this.signal=j.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&X)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(X)}I.prototype.clone=function(){return new I(this,{body:this._bodyInit})};
3function R(H){var j=new FormData;return H.trim().split("&").forEach(function(X){if(X){var he=X.split("="),ge=he.shift().replace(/\+/g," "),ne=he.join("=").replace(/\+/g," ");j.append(decodeURIComponent(ge),decodeURIComponent(ne))}}),j}function C(H){var j=new _,X=H.replace(/\r?\n[\t ]+/g," ");return X.split(/\r?\n/).forEach(function(he){var ge=he.split(":"),ne=ge.shift().trim();if(ne){var be=ge.join(":").trim();j.append(ne,be)}}),j}U.call(I.prototype);function V(H,j){j||(j={}),this.type="default",this.status=j.status===void 0?200:j.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in j?j.statusText:"OK",this.headers=new _(j.headers),this.url=j.url||"",this._initBody(H)}U.call(V.prototype),V.prototype.clone=function(){return new V(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new _(this.headers),url:this.url})},V.error=function(){var H=new V(null,{status:0,statusText:""});return H.type="error",H};var F=[301,302,303,307,308];V.redirect=function(H,j){if(F.indexOf(j)===-1)throw new RangeError("Invalid status code");return new V(null,{status:j,headers:{location:H}})},d.DOMException=p.DOMException;try{new d.DOMException}catch{d.DOMException=function(j,X){this.message=j,this.name=X;var he=Error(j);this.stack=he.stack},d.DOMException.prototype=Object.create(Error.prototype),d.DOMException.prototype.constructor=d.DOMException}function ue(H,j){return new Promise(function(X,he){var ge=new I(H,j);if(ge.signal&&ge.signal.aborted)return he(new d.DOMException("Aborted","AbortError"));var ne=new XMLHttpRequest;function be(){ne.abort()}ne.onload=function(){var P={status:ne.status,statusText:ne.statusText,headers:C(ne.getAllResponseHeaders()||"")};P.url="responseURL"in ne?ne.responseURL:P.headers.get("X-Request-URL");var ee="response"in ne?ne.response:ne.responseText;X(new V(ee,P))},ne.onerror=function(){he(new TypeError("Network request failed"))},ne.ontimeout=function(){he(new TypeError("Network request failed"))},ne.onabort=function(){he(new d.DOMException("Aborted","AbortError"))},ne.open(ge.method,ge.url,!0),ge.credentials==="include"?ne.withCredentials=!0:ge.credentials==="omit"&&(ne.withCredentials=!1),"responseType"in ne&&a.blob&&(ne.responseType="blob"),ge.headers.forEach(function(P,ee){ne.setRequestHeader(ee,P)}),ge.signal&&(ge.signal.addEventListener("abort",be),ne.onreadystatechange=function(){ne.readyState===4&&ge.signal.removeEventListener("abort",be)}),ne.send(typeof ge._bodyInit>"u"?null:ge._bodyInit)})}return ue.polyfill=!0,p.fetch||(p.fetch=ue,p.Headers=_,p.Request=I,p.Response=V),d.Headers=_,d.Request=I,d.Response=V,d.fetch=ue,Object.defineProperty(d,"__esModule",{value:!0}),d})({})})(u),u.fetch.ponyfill=!0,delete u.fetch.polyfill;var c=u;o=c.fetch,o.default=c.fetch,o.fetch=c.fetch,o.Headers=c.Headers,o.Request=c.Request,o.Response=c.Response,r.exports=o})(Ps,Ps.exports);var Lb=Ps.exports;const Nb=Qf(Lb);let Db=class{constructor(){this.fetch=Nb}},xb=(r=21)=>{let o="",i=crypto.getRandomValues(new Uint8Array(r));for(;r--;){let u=i[r]&63;u<36?o+=u.toString(36):u<62?o+=(u-26).toString(36).toUpperCase():u<63?o+="_":o+="-"}return o},Ub=class{constructor(o,i,u){this.id=xb(),this.options=i,this.clientPromise=o,this.cancelCallback=u,this.state="REQ_STATE_PENDING"}setTimeoutId(o){this.timeoutId=o}cancel(){this.cancelCallback(),clearTimeout(Number(this.timeoutId)),this.state="REQ_STATE_CANCELLED"}};const Zl="http://",Xl="https://",ec="ws://",tc="wss://",po="gql-service",kb="x-gql-batching-off",Pb=(r,o,i)=>{r.debug(`request ${o.id} created`),r.debug("timeout:",String(i.timeout)),r.debug("method:",i.method),r.debug("data:",i.data),r.debug("-----------------------------")};let Mb=class{constructor(o,i){this.client=o,this.pendingRequests=new Map,this.log=i.getChild({package:po,module:"transport/http/client"})}getPendingRequest(o){return this.pendingRequests.get(o)}deletePendingRequest(o){this.pendingRequests.delete(o)}withTimeout(o,i){const u=setTimeout(()=>{this.getPendingRequest(o.id)&&(o.cancel(),this.log.debug("request",o.id,"was cancelled by timeout"))},i);o.setTimeoutId(u)}createRequest(o){const{clientResponsePromise:i,cancelCallback:u}
3=this.client.makeRequest(o),c=new Ub(i,o,u);return Pb(this.log,c,o),o.timeout&&this.withTimeout(c,o.timeout),this.pendingRequests.set(c.id,c),{clientResponsePromise:i,requestId:c.id}}clearRequest(o){if(!o)return;this.deletePendingRequest(o);const{timeoutId:i}=this.getPendingRequest(o)||{};clearTimeout(Number(i)),this.log.debug(`request ${o} cleared`)}updateEntry(o){this.entry=o}async makeRequest(o){var i;if(!this.entry)throw new Error("Не задан http url гейтвея");let u;const c={...o,url:this.entry};try{const{requestId:p,clientResponsePromise:d}=this.createRequest(c),{responseDataPromise:a}=await d;u=p;const h=await a;if((i=o.collector)==null||i.collectQuery(u,c.data,h),typeof h=="string")throw new Error(h);return h}catch(p){throw this.log.error("request error:",String(p)),p}finally{this.clearRequest(u)}}};const $b="connection_ack",Fb="connection_init",jb="stop",Gb="start",qb="ka",ti="checkingSocketСonnection",Vb={opened:!1};let Hb=class{constructor(o,i){this.state="active",this.options=o,this.handlers=[o.handler],this.closeHandlers=o.onCloseHandler?[o.onCloseHandler]:[],this.log=i.getChild({package:po,module:"transport/ws/subscription"})}handleReceivedData(o){const{payload:i}=o;this.handlers.forEach(u=>{try{u(i.data)}catch{this.log.error("Ошибка при обработке данных подписки:",String(o))}})}handleClosing(){this.closeHandlers.forEach(o=>{o(Vb)})}addHandler(o){this.handlers.push(o)}addCloseHandler(o){this.closeHandlers.push(o)}suspend(){this.state="suspended"}restore(){this.state="active"}get isActive(){return this.state==="active"}get isSuspended(){return this.state==="suspended"}};function Jf(r){let o=0;if(r.length===0)return o.toString();for(let i=0;i<r.length;i+=1)o=(o<<5)-o+r.charCodeAt(i),o|=0,o&=268435455;return o.toString()}const ri=()=>{},zb=1e3,Wb=20*zb,Yb=100,Kb=10,rc=r=>typeof r!="string"?"":r.startsWith(Xl)?r.replace(Xl,tc):r.startsWith(Zl)?r.replace(Zl,ec):r.startsWith(ec)||r.startsWith(tc)?r:"";let Qb=class{constructor(o,i){this.rootLogger=o,this.connectionState="WS_CONNECTION_IDLE",this.pendingSubscriptions=[],this.pendingUnsubscriptions=[],this.subscriptions={},this.retryCounter=0,this.entry=rc(i),this.log=o.getChild({package:po,module:"transport/ws/client"})}send(o){this.socket&&this.socket.send(o)}onSocketOpen(o){this.socket&&(this.socket.onopen=o.bind(this))}onSocketMessage(o){this.socket&&(this.socket.onmessage=o.bind(this))}onSocketError(o){this.socket&&(this.socket.onerror=o.bind(this))}onSocketClose(o){this.socket&&(this.socket.onclose=o.bind(this))}parseMessage(o){let i={id:"",type:"",payload:{data:{}}};if(typeof o.data=="string")try{i=JSON.parse(o.data)}catch{this.log.error("не удалось распарсить сообщение в ws подписке:",String(o))}else this.log.error("некорректный формат данных в подписке:",String(o));return i}requestSubscriptionData(o,i){this.send(JSON.stringify({id:o,type:Gb,payload:{query:`subscription ${i}`,variables:null}}))}keepAliveHandler(){this.send(JSON.stringify({type:qb,payload:{}})),this.keepConnectionAlive()}keepConnectionAlive(){this.connectionState==="WS_CONNECTION_ACTIVE"&&(clearTimeout(Number(this.keepAliveTimerId)),this.keepAliveTimerId=setTimeout(()=>this.keepAliveHandler(),Wb))}handleMessage(o){const i=this.parseMessage(o);this.keepConnectionAlive();const u=this.subscriptions[i.id];u&&(this.log.debug("получено сообщение в подписке ws:",String(i)),u.handleReceivedData(i))}suspendAllSubscriptions(){Object.values(this.subscriptions).forEach(o=>{o.suspend()})}createErrorHandler(){return o=>{this.retryTimerId||(this.log.debug("пересоздаем подключение"),this.subscriptions[ti]&&this.subscriptions[ti].handleClosing(),this.suspendAllSubscriptions(),this.disconnect(),this.createReconnectAttempt()(o))}}createConnectionHanler(o){return i=>{this.log.debug("ws data:",String(i));const{type:u}=this.parseMessage(i);u===$b&&(this.log.debug("соединение успешно установлено"),this.connectionState="WS_CONNECTION_ACTIVE",this.keepConnectionAlive(),this.onSocketMessage(this.handleMessage.bind(this)),o())}}retryConnection(){if(this.retryCounter===Kb)return this.retryCounter=0,this.retryTimerId&&(clearTimeout(this.retryTimerId),this.retryTimerId=void 0),!1;const o=Yb*2**this.retryCounter;return this.log.error(`пытаемся соединиться заново через ${o} мс, попытка ${this.retryCounter+1}`),clearTimeout(Number(this.retryTimerId)),this.retryTimerId=setTimeout(()=>this.connect(),o),this.retryCounter+=1,!0}restoreSuspendedSubscriptions(){const o=Object.values(this.subscriptions).filter(i=>i.isSuspended);o.length&&o.forEach(i=>
3{this.log.debug("переподписываемся после восстановления соединения"),this.subscribe(i.options)})}executePendingSubscriptions(){this.pendingSubscriptions.length&&(this.pendingSubscriptions.forEach(o=>{this.log.debug("подписываемся из очереди, query:",o.query),this.subscribe(o)}),this.pendingSubscriptions=[])}executePendingUnsubscriptions(){this.pendingUnsubscriptions.length&&(this.pendingUnsubscriptions.forEach(o=>{this.log.debug("отписываемся из очереди, id:",o),this.unsubscribe(o)}),this.pendingUnsubscriptions=[])}createReconnectAttempt(){return o=>{this.log.error("неудачная попытка соединения",String(o)),this.connectionState="WS_CONNECTION_IDLE",this.retryConnection()||(this.connectionState="WS_CONNECTION_BROKEN",this.log.error("не удалось установить соединение"))}}connect(){new Promise(o=>{if(this.socket=new WebSocket(this.entry,"graphql-ws"),!this.socket)throw new Error("WebSocket not initialized, check DI config");this.connectionState="WS_CONNECTION_PENDING",this.log.debug("сокет создан, ждем открытия"),this.onSocketOpen(()=>{this.send(JSON.stringify({type:Fb,payload:{}}))}),this.onSocketMessage(this.createConnectionHanler(o)),this.onSocketClose(this.createErrorHandler()),this.onSocketError(this.createErrorHandler())}).then(this.restoreSuspendedSubscriptions.bind(this)).then(this.executePendingSubscriptions.bind(this)).then(this.executePendingUnsubscriptions.bind(this)).catch(this.createReconnectAttempt())}updateEntry(o){this.entry=rc(o)}subscribe(o){this.log.debug("текущее ws соединение:",this.connectionState);const i=o.query!==ti?`s_${Jf(o.query)}`:ti,u=this.subscriptions[i];return this.log.debug("запрос на подписку:",o.query),this.log.debug("hash id:",i),this.connectionState==="WS_CONNECTION_ACTIVE"?u&&u.isActive?(this.log.debug("подписка уже существует, добавляем хэндлер"),u.addHandler(o.handler),o.onCloseHandler&&u.addCloseHandler(o.onCloseHandler)):u&&u.isSuspended?(this.log.debug("восстанавливаем подписку после перeподключения"),this.requestSubscriptionData(i,o.query),u.restore()):(this.subscriptions[i]=new Hb(o,this.rootLogger),this.requestSubscriptionData(i,o.query),this.log.debug("добавлена новая подписка")):(this.log.debug("добавляем подписку в очередь"),this.pendingSubscriptions.push(o),this.connectionState==="WS_CONNECTION_IDLE"&&(this.log.debug("соединение..."),this.connect())),i}unsubscribe(o){this.connectionState==="WS_CONNECTION_ACTIVE"?(this.send(JSON.stringify({id:o,type:jb})),delete this.subscriptions[o],this.log.debug("подписка",o,"удалена")):this.pendingUnsubscriptions=Array.from(new Set([...this.pendingUnsubscriptions,o]))}disconnect(){this.socket&&(this.socket.onopen=ri,this.socket.onmessage=ri,this.socket.onerror=ri,this.socket.onclose=ri,this.socket=void 0,clearTimeout(Number(this.retryTimerId)),clearTimeout(Number(this.keepAliveTimerId)),this.connectionState="WS_CONNECTION_IDLE")}},Hu=class extends Error{},Jb=class extends Hu{constructor(){super("Бэкенд обнаружил ошибку в синтаксисе запроса, но ее не удалось локализовать")}},Zb=class extends Hu{constructor(){super("Бэкенд обнаружил ошибку в синтаксисе запроса со слиянием, нужно проверить логи соседних запросов")}},Xb=class extends Hu{};function ni(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Zf={exports:{}};(function(r,o){(function(i){r.exports=i()})(function(){return(function i(u,c,p){function d(y,g){if(!c[y]){if(!u[y]){var b=typeof ni=="function"&&ni;if(!g&&b)return b(y,!0);if(a)return a(y,!0);throw new Error("Cannot find module '"+y+"'")}
3var v=c[y]={exports:{}};u[y][0].call(v.exports,function(w){var _=u[y][1][w];return d(_||w)},v,v.exports,i,u,c,p)}return c[y].exports}for(var a=typeof ni=="function"&&ni,h=0;h<p.length;h++)d(p[h]);return d})({1:[function(i,u,c){(function(p,d,a,h,y,g,b,v,w){var _=i("crypto");function T(S,M){return(function(I,R){var C;if(C=R.algorithm!=="passthrough"?_.createHash(R.algorithm):new U,C.write===void 0&&(C.write=C.update,C.end=C.update),W(R,C).dispatch(I),C.update||C.end(""),C.digest)return C.digest(R.encoding==="buffer"?void 0:R.encoding);var V=C.read();return R.encoding!=="buffer"?V.toString(R.encoding):V})(S,M=D(S,M))}(c=u.exports=T).sha1=function(S){return T(S)},c.keys=function(S){return T(S,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},c.MD5=function(S){return T(S,{algorithm:"md5",encoding:"hex"})},c.keysMD5=function(S){return T(S,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var A=_.getHashes?_.getHashes().slice():["sha1","md5"];A.push("passthrough");var B=["buffer","hex","binary","base64"];function D(S,M){M=M||{};var I={};if(I.algorithm=M.algorithm||"sha1",I.encoding=M.encoding||"hex",I.excludeValues=!!M.excludeValues,I.algorithm=I.algorithm.toLowerCase(),I.encoding=I.encoding.toLowerCase(),I.ignoreUnknown=M.ignoreUnknown===!0,I.respectType=M.respectType!==!1,I.respectFunctionNames=M.respectFunctionNames!==!1,I.respectFunctionProperties=M.respectFunctionProperties!==!1,I.unorderedArrays=M.unorderedArrays===!0,I.unorderedSets=M.unorderedSets!==!1,I.unorderedObjects=M.unorderedObjects!==!1,I.replacer=M.replacer||void 0,I.excludeKeys=M.excludeKeys||void 0,S===void 0)throw new Error("Object argument required.");for(var R=0;R<A.length;++R)A[R].toLowerCase()===I.algorithm.toLowerCase()&&(I.algorithm=A[R]);if(A.indexOf(I.algorithm)===-1)throw new Error('Algorithm "'+I.algorithm+'"  not supported. supported values: '+A.join(", "));if(B.indexOf(I.encoding)===-1&&I.algorithm!=="passthrough")throw new Error('Encoding "'+I.encoding+'"  not supported. supported values: '+B.join(", "));return I}function x(S){if(typeof S=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(S))!=null}function W(S,M,I){I=I||[];function R(C){return M.update?M.update(C,"utf8"):M.write(C,"utf8")}return{dispatch:function(C){return S.replacer&&(C=S.replacer(C)),this["_"+(C===null?"null":typeof C)](C)},_object:function(C){var V=Object.prototype.toString.call(C),F=/\[object (.*)\]/i.exec(V);F=(F=F?F[1]:"unknown:["+V+"]").toLowerCase();var ue;if(0<=(ue=I.indexOf(C)))return this.dispatch("[CIRCULAR:"+ue+"]");if(I.push(C),a!==void 0&&a.isBuffer&&a.isBuffer(C))return R("buffer:"),R(C);if(F==="object"||F==="function"||F==="asyncfunction"){var H=Object.keys(C);S.unorderedObjects&&(H=H.sort()),S.respectType===!1||x(C)||H.splice(0,0,"prototype","__proto__","constructor"),S.excludeKeys&&(H=H.filter(function(X){return!S.excludeKeys(X)})),R("object:"+H.length+":");var j=this;return H.forEach(function(X){j.dispatch(X),R(":"),S.excludeValues||j.dispatch(C[X]),R(",")})}if(!this["_"+F]){if(S.ignoreUnknown)return R("["+F+"]");throw new Error('Unknown object type "'+F+'"')}this["_"+F](C)},_array:function(C,V){V=V!==void 0?V:S.unorderedArrays!==!1;var F=this;
3if(R("array:"+C.length+":"),!V||C.length<=1)return C.forEach(function(j){return F.dispatch(j)});var ue=[],H=C.map(function(j){var X=new U,he=I.slice();return W(S,X,he).dispatch(j),ue=ue.concat(he.slice(I.length)),X.read().toString()});return I=I.concat(ue),H.sort(),this._array(H,!1)},_date:function(C){return R("date:"+C.toJSON())},_symbol:function(C){return R("symbol:"+C.toString())},_error:function(C){return R("error:"+C.toString())},_boolean:function(C){return R("bool:"+C.toString())},_string:function(C){R("string:"+C.length+":"),R(C.toString())},_function:function(C){R("fn:"),x(C)?this.dispatch("[native]"):this.dispatch(C.toString()),S.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(C.name)),S.respectFunctionProperties&&this._object(C)},_number:function(C){return R("number:"+C.toString())},_xml:function(C){return R("xml:"+C.toString())},_null:function(){return R("Null")},_undefined:function(){return R("Undefined")},_regexp:function(C){return R("regex:"+C.toString())},_uint8array:function(C){return R("uint8array:"),this.dispatch(Array.prototype.slice.call(C))},_uint8clampedarray:function(C){return R("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(C))},_int8array:function(C){return R("uint8array:"),this.dispatch(Array.prototype.slice.call(C))},_uint16array:function(C){return R("uint16array:"),this.dispatch(Array.prototype.slice.call(C))},_int16array:function(C){return R("uint16array:"),this.dispatch(Array.prototype.slice.call(C))},_uint32array:function(C){return R("uint32array:"),this.dispatch(Array.prototype.slice.call(C))},_int32array:function(C){return R("uint32array:"),this.dispatch(Array.prototype.slice.call(C))},_float32array:function(C){return R("float32array:"),this.dispatch(Array.prototype.slice.call(C))},_float64array:function(C){return R("float64array:"),this.dispatch(Array.prototype.slice.call(C))},_arraybuffer:function(C){return R("arraybuffer:"),this.dispatch(new Uint8Array(C))},_url:function(C){return R("url:"+C.toString())},_map:function(C){R("map:");var V=Array.from(C);return this._array(V,S.unorderedSets!==!1)},_set:function(C){R("set:");var V=Array.from(C);return this._array(V,S.unorderedSets!==!1)},_file:function(C){return R("file:"),this.dispatch([C.name,C.size,C.type,C.lastModfied])},_blob:function(){if(S.ignoreUnknown)return R("[blob]");throw Error(`Hashing Blob objects is currently not supported
4(see https://github.com/puleos/object-hash/issues/26)
5Use "options.replacer" or "options.ignoreUnknown"
6`)},_domwindow:function(){return R("domwindow")},_bigint:function(C){return R("bigint:"+C.toString())},_process:function(){return R("process")},_timer:function(){return R("timer")},_pipe:function(){return R("pipe")},_tcp:function(){return R("tcp")},_udp:function(){return R("udp")},_tty:function(){return R("tty")},_statwatcher:function(){return R("statwatcher")},_securecontext:function(){return R("securecontext")},_connection:function(){return R("connection")},_zlib:function(){return R("zlib")},_context:function(){return R("context")},_nodescript:function(){return R("nodescript")},_httpparser:function(){return R("httpparser")},_dataview:function(){return R("dataview")},_signal:function(){return R("signal")},_fsevent:function(){return R("fsevent")},_tlswrap:function(){return R("tlswrap")}}}function U(){return{buf:"",write:function(S){this.buf+=S},end:function(S){this.buf+=S},read:function(){return this.buf}}}c.writeToStream=function(S,M,I){return I===void 0&&(I=M,M={}),W(M=D(S,M),I).dispatch(S)}}).call(this,i("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_7eac155c.js","/")},{buffer:3,crypto:5,lYpoI2:10}],2:[function(i,u,c){(function(p,d,a,h,y,g,b,v,w){(function(_){var T=typeof Uint8Array<"u"?Uint8Array:Array,A=43,B=47,D=48,x=97,W=65,U=45,S=95;function M(I){var R=I.charCodeAt(0);return R===A||R===U?62:R===B||R===S?63:R<D?-1:R<D+10?R-D+26+26:R<W+26?R-W:R<x+26?R-x+26:void 0}_.toByteArray=function(I){var R,C;if(0<I.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var V=I.length,F=I.charAt(V-2)==="="?2:I.charAt(V-1)==="="?1:0,ue=new T(3*I.length/4-F),H=0<F?I.length-4:I.length,j=0;function X(he){ue[j++]=he}for(R=0;R<H;R+=4,0)X((16711680&(C=M(I.charAt(R))<<18|M(I.charAt(R+1))<<12|M(I.charAt(R+2))<<6|M(I.charAt(R+3))))>>16),X((65280&C)>>8),X(255&C);return F==2?X(255&(C=M(I.charAt(R))<<2|M(I.charAt(R+1))>>4)):F==1&&(X((C=M(I.charAt(R))<<10|M(I.charAt(R+1))<<4|M(I.charAt(R+2))>>2)>>8&255),X(255&C)),ue},_.fromByteArray=function(I){var R,C,V,F,ue=I.length%3,H="";function j(X){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
6+/".charAt(X)}for(R=0,V=I.length-ue;R<V;R+=3)C=(I[R]<<16)+(I[R+1]<<8)+I[R+2],H+=j((F=C)>>18&63)+j(F>>12&63)+j(F>>6&63)+j(63&F);switch(ue){case 1:H+=j((C=I[I.length-1])>>2),H+=j(C<<4&63),H+="==";break;case 2:H+=j((C=(I[I.length-2]<<8)+I[I.length-1])>>10),H+=j(C>>4&63),H+=j(C<<2&63),H+="="}return H}})(c===void 0?this.base64js={}:c)}).call(this,i("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(i,u,c){(function(p,d,A,h,y,g,b,v,w){var _=i("base64-js"),T=i("ieee754");function A(E,k,Y){if(!(this instanceof A))return new A(E,k,Y);var re,z,J,se,Ae,Ie=typeof E;if(k==="base64"&&Ie=="string")for(E=(re=E).trim?re.trim():re.replace(/^\s+|\s+$/g,"");E.length%4!=0;)E+="=";if(Ie=="number")z=ge(E);else if(Ie=="string")z=A.byteLength(E,k);else{if(Ie!="object")throw new Error("First argument needs to be a number, array or string.");z=ge(E.length)}if(A._useTypedArrays?J=A._augment(new Uint8Array(z)):((J=this).length=z,J._isBuffer=!0),A._useTypedArrays&&typeof E.byteLength=="number")J._set(E);else if(ne(Ae=E)||A.isBuffer(Ae)||Ae&&typeof Ae=="object"&&typeof Ae.length=="number")for(se=0;se<z;se++)A.isBuffer(E)?J[se]=E.readUInt8(se):J[se]=E[se];else if(Ie=="string")J.write(E,0,k);else if(Ie=="number"&&!A._useTypedArrays&&!Y)for(se=0;se<z;se++)J[se]=0;return J}function B(E,k,Y,re){return A._charsWritten=Ue((function(z){for(var J=[],se=0;se<z.length;se++)J.push(255&z.charCodeAt(se));return J})(k),E,Y,re)}function D(E,k,Y,re){return A._charsWritten=Ue((function(z){for(var J,se,Ae,Ie=[],le=0;le<z.length;le++)J=z.charCodeAt(le),se=J>>8,Ae=J%256,Ie.push(Ae),Ie.push(se);return Ie})(k),E,Y,re)}function x(E,k,Y){var re="";Y=Math.min(E.length,Y);for(var z=k;z<Y;z++)re+=String.fromCharCode(E[z]);return re}function W(E,k,Y,re){re||(te(typeof Y=="boolean","missing or invalid endian"),te(k!=null,"missing offset"),te(k+1<E.length,"Trying to read beyond buffer length"));var z,J=E.length;if(!(J<=k))return Y?(z=E[k],k+1<J&&(z|=E[k+1]<<8)):(z=E[k]<<8,k+1<J&&(z|=E[k+1])),z}function U(E,k,Y,re){re||(te(typeof Y=="boolean","missing or invalid endian"),te(k!=null,"missing offset"),te(k+3<E.length,"Trying to read beyond buffer length"));var z,J=E.length;if(!(J<=k))return Y?(k+2<J&&(z=E[k+2]<<16),k+1<J&&(z|=E[k+1]<<8),z|=E[k],k+3<J&&(z+=E[k+3]<<24>>>0)):(k+1<J&&(z=E[k+1]<<16),k+2<J&&(z|=E[k+2]<<8),k+3<J&&(z|=E[k+3]),z+=E[k]<<24>>>0),z}function S(E,k,Y,re){if(re||(te(typeof Y=="boolean","missing or invalid endian"),te(k!=null,"missing offset"),te(k+1<E.length,"Trying to read beyond buffer length")),!(E.length<=k)){var z=W(E,k,Y,!0);return 32768&z?-1*(65535-z+1):z}}function M(E,k,Y,re){if(re||(te(typeof Y=="boolean","missing or invalid endian"),te(k!=null,"missing offset"),te(k+3<E.length,"Trying to read beyond buffer length")),!(E.length<=k)){var z=U(E,k,Y,!0);return 2147483648&z?-1*(4294967295-z+1):z}}function I(E,k,Y,re){return re||(te(typeof Y=="boolean","missing or invalid endian"),te(k+3<E.length,"Trying to read beyond buffer length")),T.read(E,k,Y,23,4)}function R(E,k,Y,re){return re||(te(typeof Y=="boolean","missing or invalid endian"),te(k+7<E.length,"Trying to read beyond buffer length")),T.read(E,k,Y,52,8)}function C(E,k,Y,re,z){z||(te(k!=null,"missing value"),te(typeof re=="boolean","missing or invalid endian"),te(Y!=null,"missing offset"),te(Y+1<E.length,"trying to write beyond buffer length"),ce(k,65535));var J=E.length;if(!(J<=Y))for(var se=0,Ae=Math.min(J-Y,2);se<Ae;se++)E[Y+se]=(k&255<<8*(re?se:1-se))>>>8*(re?se:1-se)}function V(E,k,Y,re,z){z||(te(k!=null,"missing value"),te(typeof re=="boolean","missing or invalid endian"),te(Y!=null,"missing offset"),te(Y+3<E.length,"trying to write beyond buffer length"),ce(k,4294967295));var J=E.length;if(!(J<=Y))for(var se=0,Ae=Math.min(J-Y,4);se<Ae;se++)E[Y+se]=k>>>8*(re?se:3-se)&255}function F(E,k,Y,re,z){z||(te(k!=null,"missing value"),te(typeof re=="boolean","missing or invalid endian"),te(Y!=null,"missing offset"),te(Y+1<E.length,"Trying to write beyond buffer length"),de(k,32767,-32768)),E.length<=Y||C(E,0<=k?k:65535+k+1,Y,re,z)}function ue(E,k,Y,re,z){z||(te(k!=null,"missing value"),te(typeof re=="boolean","missing or invalid endian"),te(Y!=null,"missing offset"),te(Y+3<E.length,"Trying to write beyond buffer length"),de(k,2147483647,-2147483648)),E.length<=Y||V(E,0<=k?k:4294967295+k+1,Y,re,z)}function H(E,k,Y,re,z){z||(te(k!=null,"missing value"),te(typeof re=="boolean","missing or invalid endian"),te(Y!=null,"missing offset"),te(Y+3<E.length,"Trying to write beyond buffer length"),ve(k,34028234663852886e22,-34028234663852886e22)),E.length<=Y||T.write(E,k,Y,re,23,4)}function j(E,k,Y,re,z){z||(te(k!=null,"missing value"),te(typeof re=="boolean","missing or invalid endian"),te(Y!=null,"missing offset"),te(Y+7<E.length,"Trying to write beyond buffer length"),ve(k,17976931348623157e292,-17976931348623157e292)),E.length<=Y||T.write(E,k,Y,re,52,8)}c.Buffer=A,c.SlowBuffer=A,c.INSPECT_MAX_BYTES=50,A.poolSize=8192,A._useTypedArrays=(function(){try{var E=new ArrayBuffer(0),k=new Uint8Array(E);return k.foo=function(){return 42},k.foo()===42&&typeof k.subarray=="function"}catch{return!1}})(),A.isEncoding=function(E){switch(String(E).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},A.isBuffer=function(E){return!(E==null||!E._isBuffer)},A.byteLength=function(E,k){var Y;switch(E+="",k||"utf8"){case"hex":Y=E.length/2;break;case"utf8":case"utf-8":Y=P(E).length;break;case"ascii":case"binary":case"raw":Y=E.length;break;case"base64":Y=ee(E).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":Y=2*E.length;break;default:throw new Error("Unknown encoding")}return Y},A.concat=function(E,k){if(te(ne(E),`Usage: Buffer.concat(list, [totalLength])
7list should be an Array.`),E.length===0)return new A(0);if(E.length===1)return E[0];if(typeof k!="number")for(z=k=0;z<E.length;z++)k+=E[z].length;for(var Y=new A(k),re=0,z=0;z<E.length;z++){var J=E[z];J.copy(Y,re),re+=J.length}return Y},A.prototype.write=function(E,k,Y,re){var z;isFinite(k)?isFinite(Y)||(re=Y,Y=void 0):(z=re,re=k,k=Y,Y=z),k=Number(k)||0;
7var J,se,Ae,Ie,le,me,Se,Ee,ie,De=this.length-k;switch((!Y||De<(Y=Number(Y)))&&(Y=De),re=String(re||"utf8").toLowerCase()){case"hex":J=(function(O,N,K,e){K=Number(K)||0;var t=O.length-K;(!e||t<(e=Number(e)))&&(e=t);var n=N.length;te(n%2==0,"Invalid hex string"),n/2<e&&(e=n/2);for(var s=0;s<e;s++){var l=parseInt(N.substr(2*s,2),16);te(!isNaN(l),"Invalid hex string"),O[K+s]=l}return A._charsWritten=2*s,s})(this,E,k,Y);break;case"utf8":case"utf-8":me=this,Se=E,Ee=k,ie=Y,J=A._charsWritten=Ue(P(Se),me,Ee,ie);break;case"ascii":case"binary":J=B(this,E,k,Y);break;case"base64":se=this,Ae=E,Ie=k,le=Y,J=A._charsWritten=Ue(ee(Ae),se,Ie,le);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":J=D(this,E,k,Y);break;default:throw new Error("Unknown encoding")}return J},A.prototype.toString=function(E,k,Y){var re,z,J,se,Ae=this;if(E=String(E||"utf8").toLowerCase(),k=Number(k)||0,(Y=Y!==void 0?Number(Y):Y=Ae.length)===k)return"";switch(E){case"hex":re=(function(Ie,le,me){var Se=Ie.length;(!le||le<0)&&(le=0),(!me||me<0||Se<me)&&(me=Se);for(var Ee="",ie=le;ie<me;ie++)Ee+=be(Ie[ie]);return Ee})(Ae,k,Y);break;case"utf8":case"utf-8":re=(function(Ie,le,me){var Se="",Ee="";me=Math.min(Ie.length,me);for(var ie=le;ie<me;ie++)Ie[ie]<=127?(Se+=_e(Ee)+String.fromCharCode(Ie[ie]),Ee=""):Ee+="%"+Ie[ie].toString(16);return Se+_e(Ee)})(Ae,k,Y);break;case"ascii":case"binary":re=x(Ae,k,Y);break;case"base64":z=Ae,se=Y,re=(J=k)===0&&se===z.length?_.fromByteArray(z):_.fromByteArray(z.slice(J,se));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":re=(function(Ie,le,me){for(var Se=Ie.slice(le,me),Ee="",ie=0;ie<Se.length;ie+=2)Ee+=String.fromCharCode(Se[ie]+256*Se[ie+1]);return Ee})(Ae,k,Y);break;default:throw new Error("Unknown encoding")}return re},A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},A.prototype.copy=function(E,k,Y,re){if(Y=Y||0,re||re===0||(re=this.length),k=k||0,re!==Y&&E.length!==0&&this.length!==0){te(Y<=re,"sourceEnd < sourceStart"),te(0<=k&&k<E.length,"targetStart out of bounds"),te(0<=Y&&Y<this.length,"sourceStart out of bounds"),te(0<=re&&re<=this.length,"sourceEnd out of bounds"),re>this.length&&(re=this.length),E.length-k<re-Y&&(re=E.length-k+Y);var z=re-Y;if(z<100||!A._useTypedArrays)for(var J=0;J<z;J++)E[J+k]=this[J+Y];else E._set(this.subarray(Y,Y+z),k)}},A.prototype.slice=function(E,k){var Y=this.length;if(E=he(E,Y,0),k=he(k,Y,Y),A._useTypedArrays)return A._augment(this.subarray(E,k));for(var re=k-E,z=new A(re,void 0,!0),J=0;J<re;J++)z[J]=this[J+E];return z},A.prototype.get=function(E){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(E)},A.prototype.set=function(E,k){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(E,k)},A.prototype.readUInt8=function(E,k){if(k||(te(E!=null,"missing offset"),te(E<this.length,"Trying to read beyond buffer length")),!(E>=this.length))return this[E]},A.prototype.readUInt16LE=function(E,k){return W(this,E,!0,k)},A.prototype.readUInt16BE=function(E,k){return W(this,E,!1,k)},A.prototype.readUInt32LE=function(E,k){return U(this,E,!0,k)},A.prototype.readUInt32BE=function(E,k){return U(this,E,!1,k)},A.prototype.readInt8=function(E,k){if(k||(te(E!=null,"missing offset"),te(E<this.length,"Trying to read beyond buffer length")),!(E>=this.length))return 128&this[E]?-1*(255-this[E]+1):this[E]},A.prototype.readInt16LE=function(E,k){return S(this,E,!0,k)},A.prototype.readInt16BE=function(E,k){return S(this,E,!1,k)},A.prototype.readInt32LE=function(E,k){return M(this,E,!0,k)},A.prototype.readInt32BE=function(E,k){return M(this,E,!1,k)},A.prototype.readFloatLE=function(E,k){return I(this,E,!0,k)},A.prototype.readFloatBE=function(E,k){return I(this,E,!1,k)},A.prototype.readDoubleLE=function(E,k){return R(this,E,!0,k)},A.prototype.readDoubleBE=function(E,k){return R(this,E,!1,k)},A.prototype.writeUInt8=function(E,k,Y){Y||(te(E!=null,"missing value"),te(k!=null,"missing offset"),te(k<this.length,"trying to write beyond buffer length"),ce(E,255)),k>=this.length||(this[k]=E)},A.prototype.writeUInt16LE=function(E,k,Y){C(this,E,k,!0,Y)},A.prototype.writeUInt16BE=function(E,k,Y){C(this,E,k,!1,Y)},A.prototype.writeUInt32LE=function(E,k,Y){V(this,E,k,!0,Y)},A.prototype.writeUInt32BE=function(E,k,Y){V(this,E,k,!1,Y)},A.prototype.writeInt8=function(E,k,Y){Y||(te(E!=null,"missing value"),te(k!=null,"missing offset"),te(k<this.length,"Trying to write beyond buffer length"),de(E,127,-128)),k>=this.length||(0<=E?this.writeUInt8(E,k,Y):this.writeUInt8(255+E+1,k,Y))},A.prototype.writeInt16LE=function(E,k,Y){F(this,E,k,!0,Y)},A.prototype.writeInt16BE=function(E,k,Y){F(this,E,k,!1,Y)},A.prototype.writeInt32LE=function(E,k,Y){ue(this,E,k,!0,Y)},A.prototype.writeInt32BE=function(E,k,Y){ue(this,E,k,!1,Y)},A.prototype.writeFloatLE=function(E,k,Y){H(this,E,k,!0,Y)},A.prototype.writeFloatBE=function(E,k,Y){H(this,E,k,!1,Y)},A.prototype.writeDoubleLE=function(E,k,Y){j(this,E,k,!0,Y)},A.prototype.writeDoubleBE=function(E,k,Y){j(this,E,k,!1,Y)},A.prototype.fill=function(E,k,Y){if(E=E||0,k=k||0,Y=Y||this.length,typeof E=="string"&&(E=E.charCodeAt(0)),te(typeof E=="number"&&!isNaN(E),"value is not a number"),te(k<=Y,"end < start"),Y!==k&&this.length!==0){te(0<=k&&k<this.length,"start out of bounds"),te(0<=Y&&Y<=this.length,"end out of bounds");for(var re=k;re<Y;re++)this[re]=E}},A.prototype.inspect=function(){for(var E=[],k=this.length,Y=0;Y<k;Y++)if(E[Y]=be(this[Y]),Y===c.INSPECT_MAX_BYTES){E[Y+1]="...";break}return"<Buffer "+E.join(" ")+">"},A.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(A._useTypedArrays)return new A(this).buffer;for(var E=new Uint8Array(this.length),k=0,Y=E.length;k<Y;k+=1)E[k]=this[k];return E.buffer};var X=A.prototype;function he(E,k,Y){return typeof E!="number"?Y:k<=(E=~~E)?k:0<=E||0<=(E+=k)?E:0}function ge(E){return(E=~~Math.ceil(+E))<0?0:E}function ne(E){return(Array.isArray||function(k){return Object.prototype.toString.call(k)==="[object Array]"})(E)}function be(E){return E<16?"0"+E.toString(16):E.toString(16)}function P(E){for(var k=[],Y=0;Y<E.length;Y++){var re=E.charCodeAt(Y);if(re<=127)k.push(E.charCodeAt(Y));else{var z=Y;55296<=re&&re<=57343&&Y++;for(var J=encodeURIComponent(E.slice(z,Y+1)).substr(1).split("%"),se=0;se<J.length;se++)k.push(parseInt(J[se],16))}}return k}function ee(E){return _.toByteArray(E)}function Ue(E,k,Y,re){for(var z=0;z<re&&!(z+Y>=k.length||z>=E.length);z++)k[z+Y]=E[z];return z}function _e(E){try{return decodeURIComponent(E)}catch{return"�"}}function ce(E,k){te(typeof E=="number","cannot write a non-number as a number"),te(0<=E,"specified a negative value for writing an unsigned value"),te(E<=k,"value is larger than maximum value for type"),te(Math.floor(E)===E,"value has a fractional component")}function de(E,k,Y){te(typeof E=="number","cannot write a non-number as a number"),te(E<=k,"value larger than maximum allowed value"),te(Y<=E,"value smaller than minimum allowed value"),te(Math.floor(E)===E,"value has a fractional component")}function ve(E,k,Y){te(typeof E=="number","cannot write a non-number as a number"),te(E<=k,"value larger than maximum allowed value"),te(Y<=E,"value smaller than minimum allowed value")}function te(E,k){if(!E)throw new Error(k||"Failed assertion")}A._augment=function(E){return E._isBuffer=!0,E._get=E.get,E._set
7=E.set,E.get=X.get,E.set=X.set,E.write=X.write,E.toString=X.toString,E.toLocaleString=X.toString,E.toJSON=X.toJSON,E.copy=X.copy,E.slice=X.slice,E.readUInt8=X.readUInt8,E.readUInt16LE=X.readUInt16LE,E.readUInt16BE=X.readUInt16BE,E.readUInt32LE=X.readUInt32LE,E.readUInt32BE=X.readUInt32BE,E.readInt8=X.readInt8,E.readInt16LE=X.readInt16LE,E.readInt16BE=X.readInt16BE,E.readInt32LE=X.readInt32LE,E.readInt32BE=X.readInt32BE,E.readFloatLE=X.readFloatLE,E.readFloatBE=X.readFloatBE,E.readDoubleLE=X.readDoubleLE,E.readDoubleBE=X.readDoubleBE,E.writeUInt8=X.writeUInt8,E.writeUInt16LE=X.writeUInt16LE,E.writeUInt16BE=X.writeUInt16BE,E.writeUInt32LE=X.writeUInt32LE,E.writeUInt32BE=X.writeUInt32BE,E.writeInt8=X.writeInt8,E.writeInt16LE=X.writeInt16LE,E.writeInt16BE=X.writeInt16BE,E.writeInt32LE=X.writeInt32LE,E.writeInt32BE=X.writeInt32BE,E.writeFloatLE=X.writeFloatLE,E.writeFloatBE=X.writeFloatBE,E.writeDoubleLE=X.writeDoubleLE,E.writeDoubleBE=X.writeDoubleBE,E.fill=X.fill,E.inspect=X.inspect,E.toArrayBuffer=X.toArrayBuffer,E}}).call(this,i("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(i,u,c){(function(p,d,_,h,y,g,b,v,w){var _=i("buffer").Buffer,T=4,A=new _(T);A.fill(0),u.exports={hash:function(B,D,x,W){return _.isBuffer(B)||(B=new _(B)),(function(U,S,M){for(var I=new _(S),R=M?I.writeInt32BE:I.writeInt32LE,C=0;C<U.length;C++)R.call(I,U[C],4*C,!0);return I})(D((function(U,S){var M;U.length%T!=0&&(M=U.length+(T-U.length%T),U=_.concat([U,A],M));for(var I=[],R=S?U.readInt32BE:U.readInt32LE,C=0;C<U.length;C+=T)I.push(R.call(U,C));return I})(B,W),8*B.length),x,W)}}}).call(this,i("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],5:[function(i,u,c){(function(p,d,_,h,y,g,b,v,w){var _=i("buffer").Buffer,T=i("./sha"),A=i("./sha256"),B=i("./rng"),D={sha1:T,sha256:A,md5:i("./md5")},x=64,W=new _(x);function U(M,I){var R=D[M=M||"sha1"],C=[];return R||S("algorithm:",M,"is not yet supported"),{update:function(V){return _.isBuffer(V)||(V=new _(V)),C.push(V),V.length,this},digest:function(V){var F=_.concat(C),ue=I?(function(H,j,X){_.isBuffer(j)||(j=new _(j)),_.isBuffer(X)||(X=new _(X)),j.length>x?j=H(j):j.length<x&&(j=_.concat([j,W],x));for(var he=new _(x),ge=new _(x),ne=0;ne<x;ne++)he[ne]=54^j[ne],ge[ne]=92^j[ne];var be=H(_.concat([he,X]));return H(_.concat([ge,be]))})(R,I,F):R(F);return C=null,V?ue.toString(V):ue}}}function S(){var M=[].slice.call(arguments).join(" ");throw new Error([M,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
8`))}W.fill(0),c.createHash=function(M){return U(M)},c.createHmac=U,c.randomBytes=function(M,I){if(!I||!I.call)return new _(B(M));try{I.call(this,void 0,new _(B(M)))}catch(R){I(R)}},(function(M,I){for(var R in M)I(M[R],R)})(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(M){c[M]=function(){S("sorry,",M,"is not implemented yet")}})}).call(this,i("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:10}],6:[function(i,u,c){(function(p,d,a,h,y,g,b,v,w){var _=i("./helpers");function T(S,M){S[M>>5]|=128<<M%32,S[14+(M+64>>>9<<4)]=M;for(var I=1732584193,R=-271733879,C=-1732584194,V=271733878,F=0;F<S.length;F+=16){var ue=I,H=R,j=C,X=V,I=B(I,R,C,V,S[F+0],7,-680876936),V=B(V,I,R,C,S[F+1],12,-389564586),C=B(C,V,I,R,S[F+2],17,606105819),R=B(R,C,V,I,S[F+3],22,-1044525330);I=B(I,R,C,V,S[F+4],7,-176418897),V=B(V,I,R,C,S[F+5],12,1200080426),C=B(C,V,I,R,S[F+6],17,-1473231341),R=B(R,C,V,I,S[F+7],22,-45705983),I=B(I,R,C,V,S[F+8],7,1770035416),V=B(V,I,R,C,S[F+9],12,-1958414417),C=B(C,V,I,R,S[F+10],17,-42063),R=B(R,C,V,I,S[F+11],22,-1990404162),I=B(I,R,C,V,S[F+12],7,1804603682),V=B(V,I,R,C,S[F+13],12,-40341101),C=B(C,V,I,R,S[F+14],17,-1502002290),I=D(I,R=B(R,C,V,I,S[F+15],22,1236535329),C,V,S[F+1],5,-165796510),V=D(V,I,R,C,S[F+6],9,-1069501632),C=D(C,V,I,R,S[F+11],14,643717713),R=D(R,C,V,I,S[F+0],20,-373897302),I=D(I,R,C,V,S[F+5],5,-701558691),V=D(V,I,R,C,S[F+10],9,38016083),C=D(C,V,I,R,S[F+15],14,-660478335),R=D(R,C,V,I,S[F+4],20,-405537848),I=D(I,R,C,V,S[F+9],5,568446438),V=D(V,I,R,C,S[F+14],9,-1019803690),C=D(C,V,I,R,S[F+3],14,-187363961),R=D(R,C,V,I,S[F+8],20,1163531501),I=D(I,R,C,V,S[F+13],5,-1444681467),V=D(V,I,R,C,S[F+2],9,-51403784),C=D(C,V,I,R,S[F+7],14,1735328473),I=x(I,R=D(R,C,V,I,S[F+12],20,-1926607734),C,V,S[F+5],4,-378558),V=x(V,I,R,C,S[F+8],11,-2022574463),C=x(C,V,I,R,S[F+11],16,1839030562),R=x(R,C,V,I,S[F+14],23,-35309556),I=x(I,R,C,V,S[F+1],4,-1530992060),V=x(V,I,R,C,S[F+4],11,1272893353),C=x(C,V,I,R,S[F+7],16,-155497632),R=x(R,C,V,I,S[F+10],23,-1094730640),I=x(I,R,C,V,S[F+13],4,681279174),V=x(V,I,R,C,S[F+0],11,-358537222),C=x(C,V,I,R,S[F+3],16,-722521979),R=x(R,C,V,I,S[F+6],23,76029189),I=x(I,R,C,V,S[F+9],4,-640364487),V=x(V,I,R,C,S[F+12],11,-421815835),C=x(C,V,I,R,S[F+15],16,530742520),I=W(I,R=x(R,C,V,I,S[F+2],23,-995338651),C,V,S[F+0],6,-198630844),V=W(V,I,R,C,S[F+7],10,1126891415),C=W(C,V,I,R,S[F+14],15,-1416354905),R=W(R,
8C,V,I,S[F+5],21,-57434055),I=W(I,R,C,V,S[F+12],6,1700485571),V=W(V,I,R,C,S[F+3],10,-1894986606),C=W(C,V,I,R,S[F+10],15,-1051523),R=W(R,C,V,I,S[F+1],21,-2054922799),I=W(I,R,C,V,S[F+8],6,1873313359),V=W(V,I,R,C,S[F+15],10,-30611744),C=W(C,V,I,R,S[F+6],15,-1560198380),R=W(R,C,V,I,S[F+13],21,1309151649),I=W(I,R,C,V,S[F+4],6,-145523070),V=W(V,I,R,C,S[F+11],10,-1120210379),C=W(C,V,I,R,S[F+2],15,718787259),R=W(R,C,V,I,S[F+9],21,-343485551),I=U(I,ue),R=U(R,H),C=U(C,j),V=U(V,X)}return Array(I,R,C,V)}function A(S,M,I,R,C,V){return U((F=U(U(M,S),U(R,V)))<<(ue=C)|F>>>32-ue,I);var F,ue}function B(S,M,I,R,C,V,F){return A(M&I|~M&R,S,M,C,V,F)}function D(S,M,I,R,C,V,F){return A(M&R|I&~R,S,M,C,V,F)}function x(S,M,I,R,C,V,F){return A(M^I^R,S,M,C,V,F)}function W(S,M,I,R,C,V,F){return A(I^(M|~R),S,M,C,V,F)}function U(S,M){var I=(65535&S)+(65535&M);return(S>>16)+(M>>16)+(I>>16)<<16|65535&I}u.exports=function(S){return _.hash(S,T,16)}}).call(this,i("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(i,u,c){(function(p,d,a,h,y,g,b,v,w){var _;_=function(T){for(var A,B=new Array(T),D=0;D<T;D++)!(3&D)&&(A=4294967296*Math.random()),B[D]=A>>>((3&D)<<3)&255;return B},u.exports=_}).call(this,i("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(i,u,c){(function(p,d,a,h,y,g,b,v,w){var _=i("./helpers");function T(D,x){D[x>>5]|=128<<24-x%32,D[15+(x+64>>9<<4)]=x;for(var W,U,S,M,I,R=Array(80),C=1732584193,V=-271733879,F=-1732584194,ue=271733878,H=-1009589776,j=0;j<D.length;j+=16){for(var X=C,he=V,ge=F,ne=ue,be=H,P=0;P<80;P++){R[P]=P<16?D[j+P]:B(R[P-3]^R[P-8]^R[P-14]^R[P-16],1);var ee=A(A(B(C,5),(S=V,M=F,I=ue,(U=P)<20?S&M|~S&I:!(U<40)&&U<60?S&M|S&I|M&I:S^M^I)),A(A(H,R[P]),(W=P)<20?1518500249:W<40?1859775393:W<60?-1894007588:-899497514)),H=ue,ue=F,F=B(V,30),V=C,C=ee}C=A(C,X),V=A(V,he),F=A(F,ge),ue=A(ue,ne),H=A(H,be)}return Array(C,V,F,ue,H)}function A(D,x){var W=(65535&D)+(65535&x);return(D>>16)+(x>>16)+(W>>16)<<16|65535&W}function B(D,x){return D<<x|D>>>32-x}u.exports=function(D){return _.hash(D,T,20,!0)}}).call(this,i("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(i,u,c){(function(p,d,a,h,y,g,b,v,w){function _(D,x){var W=(65535&D)+(65535&x);return(D>>16)+(x>>16)+(W>>16)<<16|65535&W}function T(D,x){return D>>>x|D<<32-x}function A(D,x){var W,U,S,M,I,R,C,V,F,ue,H=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),j=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),X=new Array(64);D[x>>5]|=128<<24-x%32,D[15+(x+64>>9<<4)]=x;for(var he,ge,ne,be,P,ee,Ue,_e,ce=0;ce<D.length;ce+=16){W=j[0],U=j[1],S=j[2],M=j[3],I=j[4],R=j[5],C=j[6],V=j[7];for(var de=0;de<64;de++)X[de]=de<16?D[de+ce]:_(_(_((_e=X[de-2],T(_e,17)^T(_e,19)^_e>>>10),X[de-7]),(Ue=X[de-15],T(Ue,7)^T(Ue,18)^Ue>>>3)),X[de-16]),F=_(_(_(_(V,T(ee=I,6)^T(ee,11)^T(ee,25)),(P=I)&R^~P&C
8),H[de]),X[de]),ue=_(T(be=W,2)^T(be,13)^T(be,22),(he=W)&(ge=U)^he&(ne=S)^ge&ne),V=C,C=R,R=I,I=_(M,F),M=S,S=U,U=W,W=_(F,ue);j[0]=_(W,j[0]),j[1]=_(U,j[1]),j[2]=_(S,j[2]),j[3]=_(M,j[3]),j[4]=_(I,j[4]),j[5]=_(R,j[5]),j[6]=_(C,j[6]),j[7]=_(V,j[7])}return j}var B=i("./helpers");u.exports=function(D){return B.hash(D,A,32,!0)}}).call(this,i("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],10:[function(i,u,c){(function(p,d,a,h,y,g,b,v,w){function _(){}(p=u.exports={}).nextTick=(function(){var T=typeof window<"u"&&window.setImmediate,A=typeof window<"u"&&window.postMessage&&window.addEventListener;if(T)return function(D){return window.setImmediate(D)};if(A){var B=[];return window.addEventListener("message",function(D){var x=D.source;x!==window&&x!==null||D.data!=="process-tick"||(D.stopPropagation(),0<B.length&&B.shift()())},!0),function(D){B.push(D),window.postMessage("process-tick","*")}}return function(D){setTimeout(D,0)}})(),p.title="browser",p.browser=!0,p.env={},p.argv=[],p.on=_,p.addListener=_,p.once=_,p.off=_,p.removeListener=_,p.removeAllListeners=_,p.emit=_,p.binding=function(T){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(T){throw new Error("process.chdir is not supported")}}).call(this,i("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:10}],11:[function(i,u,c){(function(p,d,a,h,y,g,b,v,w){c.read=function(_,T,A,B,D){var x,W,U=8*D-B-1,S=(1<<U)-1,M=S>>1,I=-7,R=A?D-1:0,C=A?-1:1,V=_[T+R];for(R+=C,x=V&(1<<-I)-1,V>>=-I,I+=U;0<I;x=256*x+_[T+R],R+=C,I-=8);for(W=x&(1<<-I)-1,x>>=-I,I+=B;0<I;W=256*W+_[T+R],R+=C,I-=8);if(x===0)x=1-M;else{if(x===S)return W?NaN:1/0*(V?-1:1);W+=Math.pow(2,B),x-=M}return(V?-1:1)*W*Math.pow(2,x-B)},c.write=function(_,T,A,B,D,x){var W,U,S,M=8*x-D-1,I=(1<<M)-1,R=I>>1,C=D===23?Math.pow(2,-24)-Math.pow(2,-77):0,V=B?0:x-1,F=B?1:-1,ue=T<0||T===0&&1/T<0?1:0;for(T=Math.abs(T),isNaN(T)||T===1/0?(U=isNaN(T)?1:0,W=I):(W=Math.floor(Math.log(T)/Math.LN2),T*(S=Math.pow(2,-W))<1&&(W--,S*=2),2<=(T+=1<=W+R?C/S:C*Math.pow(2,1-R))*S&&(W++,S/=2),I<=W+R?(U=0,W=I):1<=W+R?(U=(T*S-1)*Math.pow(2,D),W+=R):(U=T*Math.pow(2,R-1)*Math.pow(2,D),W=0));8<=D;_[A+V]=255&U,V+=F,U/=256,D-=8);for(W=W<<D|U,M+=D;0<M;_[A+V]=255&W,V+=F,W/=256,M-=8);_[A+V-F]|=128*ue}}).call(this,i("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/ieee754/index.js","/node_modules/ieee754")},{buffer:3,lYpoI2:10}]},{},[1])(1)})})(Zf);var ew=Zf.exports;const tw=Qf(ew);function nc(r){return tw(r)}function Fo(r){return r.replace(/\n/g," ").replace(/ +/g," ").trim()}const rw=10,Xf=r=>`id_${Jf(Fo(r))}`,nw=r=>{const o=`{ ${Xf(r)}: `+r.slice(r.indexOf("{")+1,r.length);return Fo(o)},oc=r=>`Не удалось выполнить запрос${r?"":" со слиянием"}:`;let ow=class{constructor(o,i){this.responseHandlers=new Map,this.mergeResolver=()=>{},this.state="QUERY_STATE_IDLE";const{queryString:u,options:c,resolve:p,reject:d}=o,a=Fo(u);this.key=Xf(a),this.ctx=o,this.id=nc({queryString:a,...c}),this.formattedQueryString=a,this.aliasedQueryString=nw(a),this.responseHandlers.set(this.key,{qs:this.formattedQueryString,boundaries:{from:1,to:this.aliasedQueryString.lastIndexOf("}")-1},promiseHandlers:[{resolve:p,reject:d}]}),this.log=i.getChild({package:po,module:"core/gqlClient"})}get allRejectors(){return Array.from(this.responseHandlers.values()).map(({promiseHandlers:o})=>o).flatMap(o=>o).map(({reject:o})=>o)}withdrawHandlerByKey(o){const i=this.responseHandlers.get(o);return i&&this.responseHandlers.delete(o),i}withdrawHandlerByQueryLocation(o){const i=Array.from(this.responseHandlers.keys()).find(u=>{const{boundaries:c}=this.responseHandlers.get(u),{from:p,to:d}=c;return p&&d?p<=o&&o<=d:!1});return i?this.withdrawHandlerByKey(i):void 0}withdrawHandlerForInstant(){const[o]=Array.from(this.responseHandlers.values());return this.responseHandlers=new Map,o}localizeQuerySyntaxErrors(o){if(!(!(o!=null&&o.length)||!o.some(({locations:i})=>
8!!(i!=null&&i.length))||(o.forEach(({message:i,locations:u})=>{u!=null&&u.length&&u.forEach(({column:c})=>{const p=this.withdrawHandlerByQueryLocation(c);p&&(this.log.error(`Ошибка в запросе: ${p.qs}`),p.promiseHandlers.forEach(({reject:d})=>{d(new Xb(i))})),this.log.error(`Индекс в запросе со слиянием: ${c}`),this.log.error(i)})}),!this.allRejectors.length)))throw this.ctx.options.instant?new Jb:new Zb}concatQueryString(o){const{aliasedQueryString:i,key:u}=o,c=this.aliasedQueryString.lastIndexOf("}"),p=i.indexOf("{"),d=this.responseHandlers.get(u);d&&(d.boundaries.from=c),this.aliasedQueryString=Fo(this.aliasedQueryString.substring(0,c)+i.substring(p+1)),d&&(d.boundaries.to=this.aliasedQueryString.lastIndexOf("}")-1)}initMergeTimeoutResolver(o){o&&(this.mergeResolver=o),clearTimeout(Number(this.mergeTimeoutId)),this.mergeTimeoutId=setTimeout(()=>{this.state="QUERY_STATE_PENDING",this.mergeResolver()},rw)}resolveMergedRequest(o,i){Object.keys(o??{}).forEach(u=>{const c=this.withdrawHandlerByKey(u);if(c)c.promiseHandlers.forEach(({resolve:p})=>p((o??{})[u]));else throw new Error(`Некорректный алиас в ответе сервера: ${u}`)}),i.length&&i.forEach(u=>{var c;const p=((c=u.path)==null?void 0:c[0])||"",d=this.withdrawHandlerByKey(p);d&&(this.log.error(`Не удалось выполнить запрос ${d.qs}`),d.promiseHandlers.forEach(({reject:a})=>a(new Error(u.message))))})}resolveMutationOrInstantRequest(o,i){const u=this.withdrawHandlerForInstant();if(!u)throw new Error("Не найден хендлер запроса");if(i.length)i.forEach(c=>{this.log.error(`Не удалось выполнить запрос ${u.qs}`),u.promiseHandlers.forEach(({reject:p})=>p(new Error(c.message)))});else{const c=this.ctx.options.type===$o?Object.values(o??{})[0]:o;u.promiseHandlers.forEach(({resolve:p})=>p(c))}}getId(){return this.id}getOptionsHash(){return nc(this.ctx.options)}addNewQueryResponseHandler(o){const{resolve:i,reject:u}=o.ctx,{key:c}=o,p={resolve:i,reject:u};if(this.responseHandlers.get(c)){const{promiseHandlers:d=[]}=this.responseHandlers.get(c)||{};d.push(p)}else this.responseHandlers.set(c,{qs:o.formattedQueryString,promiseHandlers:[p],boundaries:{from:null,to:null}})}isPending(){return this.state==="QUERY_STATE_PENDING"}isWaiting(){return this.state==="QUERY_STATE_WAITING"}merge(o){this.addNewQueryResponseHandler(o),this.concatQueryString(o),this.initMergeTimeoutResolver()}async execute(){let o;this.state=this.ctx.options.instant?"QUERY_STATE_PENDING":"QUERY_STATE_WAITING";try{this.state==="QUERY_STATE_WAITING"&&await new Promise(this.initMergeTimeoutResolver.bind(this));const{options:i}=this.ctx,u=i.type===$o&&!i.instant;o=u?this.aliasedQueryString:this.formattedQueryString;const c=await this.ctx.sender(o,this.ctx.options),p=c?.data||{},d=c?.errors||[];if(this.state="QUERY_STATE_RESOLVING",Object.keys(p).length||d.length)this.localizeQuerySyntaxErrors(d),u?this.resolveMergedRequest(p,d):this.resolveMutationOrInstantRequest(p,d);else throw this.log.error(oc(),o),new Error("Некорректный формат данных в ответе сервера (!data && !errors)")}catch(i){this.state="QUERY_STATE_ERROR",this.log.error(oc(this.ctx.options.instant),o),this.allRejectors.forEach(u=>{u(i)})}finally{this.state!=="QUERY_STATE_ERROR"&&(this.state="QUERY_STATE_RESOLVED")}}};const iw=1e4,aw={type:$o,timeout:iw,instant:!1};let sw=class{constructor(o){this.queries={},this.send=o}executeQuery(o){o.execute().finally(()=>{delete this.queries[o.getId()]})}addInstantQuery(o){const i=o.getId(),u=this.queries[i];u!=null&&u.isPending()?(this.log.debug(i,"уже выполняется, добавляем хэндлер к существующему запросу"),u.addNewQueryResponseHandler(o)):u||(this.log.debug("новый id:",i),this.queries[i]=o,this.executeQuery(o))}mergeQuery(o){const i=Object.values(this.queries).find(u=>u.isWaiting()&&u.getOptionsHash()===o.getOptionsHash());i?(this.log.debug("queryToMergeIn:",String(i)),i.merge(o)):(this.queries[o.getId()]=o,this.executeQuery(o))}dispatchQuery(o){var i;this.log.debug("queryString:",o.queryString);const u=o.options.type===Vi||((i=o.options)==null?void 0:i.instant)===!0,c=new ow(o,this.rootLogger);u?(this.log.debug("без слияния"),this.addInstantQuery(c)):(this.log.debug("со слиянием"),this.mergeQuery(c))}setupLogger(o){this.rootLogger=o,this.log=o.getChild({package:po,module:"core/queryManager"})}dispatch(o,i){const u={...aw,...i};return this.log.debug("выполняем запрос:",String(u)),new Promise((c,p)=>{this.dispatchQuery({queryString:o,options:u,sender:this.send,resolve:c,reject:p})})}};const uw=()=>typeof window=="object",lw=()=>!uw(),cw=(r=0)=>new Promise(o=>setTimeout(o,r)),Da={},dw=r=>({"Content-Type":"application/json; charset=utf-8",...r?{"User-Agent":"Star-Server / GraphQL Client 2.0"}:null}),ic=dw(lw());function fw(r,o){const i=o===Vi?`mutation ${r}`:r;if(o===$o||o===Vi)return{method:Kf,data:JSON.stringify({query:i})};throw new Error("Некорректный тип GraphQL запроса (query/mutation)")}let Ms=class{constructor(o,i,u,c){var p,d,a;this.httpClient=i,this.wsClient=u,this.httpSend=(h,y)=>{const{customHeaders:g,timeout:b,type:v}=y||{},w={...this.headers,...g},{method:_,data:T}=fw(h,v);
8return this.httpClient.makeRequest({timeout:b,headers:w,method:_,data:T,collector:this.collector})},this.log=c.getChild({package:po,module:"core/gqlClient"}),this.httpClient.updateEntry((p=o.entry)!=null?p:""),this.wsClient.updateEntry((a=(d=o.wsEntry)!=null?d:o.entry)!=null?a:""),this.headers={...ic,...o.defaultHeaders,...Da},this.queryManager=new sw(this.httpSend.bind(this)),this.queryManager.setupLogger(c)}setCollector(o){this.collector=o}updateHeaders(o){this.headers={...this.headers,...o,...Da}}replaceHeaders(o){this.headers={...ic,...o,...Da}}resetHeaders(){this.replaceHeaders({})}updateHttpEntry(o){this.httpClient.updateEntry(o),this.resetHeaders()}updateWsEntry(o){this.wsClient.updateEntry(o)}updateEntry(o){this.updateHttpEntry(o),this.updateWsEntry(o)}gqlQuery(o,i,u){return this.query(o(i),u)}async query(o,i){var u,c;try{const p=kb in this.headers;return await this.queryManager.dispatch(o,{...i,type:$o,instant:p||void 0})}catch(p){if(i!=null&&i.retries&&i?.retries>0){const d=(u=i.retryCount)!=null?u:1,a=((c=i.retryDelay)!=null?c:0)*d;return await cw(a),this.log.warn(`Попытка сделать запрос. Осталось попыток: ${i.retries-1}`),await this.query(o,{...i,retries:i.retries-1,retryCount:d+1})}throw this.log.error("Ошибка запроса:",String(p)),p}}gqlMutation(o,i,u){return this.mutation(o(i),u)}async mutation(o,i){try{return await this.queryManager.dispatch(o,{...i,type:Vi})}catch(u){throw this.log.error("Ошибка мутации:",String(u)),u}}subscribe(o){return this.wsClient.subscribe({...o,query:Fo(o.query)})}unsubscribe(o){this.wsClient.unsubscribe(o)}};var Ai={},ep={},da={};da.byteLength=mw;da.toByteArray=yw;da.fromByteArray=vw;var Ar=[],qt=[],pw=typeof Uint8Array<"u"?Uint8Array:Array,xa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Dn=0,hw=xa.length;Dn<hw;++Dn)Ar[Dn]=xa[Dn],qt[xa.charCodeAt(Dn)]=Dn;qt[45]=62;qt[95]=63;function tp(r){var o=r.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=r.indexOf("=");i===-1&&(i=o);var u=i===o?0:4-i%4;return[i,u]}function mw(r){var o=tp(r),i=o[0],u=o[1];return(i+u)*3/4-u}function gw(r,o,i){return(o+i)*3/4-i}function yw(r){var o,i=tp(r),u=i[0],c=i[1],p=new pw(gw(r,u,c)),d=0,a=c>0?u-4:u,h;for(h=0;h<a;h+=4)o=qt[r.charCodeAt(h)]<<18|qt[r.charCodeAt(h+1)]<<12|qt[r.charCodeAt(h+2)]<<6|qt[r.charCodeAt(h+3)],p[d++]=o>>16&255,p[d++]=o>>8&255,p[d++]=o&255;return c===2&&(o=qt[r.charCodeAt(h)]<<2|qt[r.charCodeAt(h+1)]>>4,p[d++]=o&255),c===1&&(o=qt[r.charCodeAt(h)]<<10|qt[r.charCodeAt(h+1)]<<4|qt[r.charCodeAt(h+2)]>>2,p[d++]=o>>8&255,p[d++]=o&255),p}function bw(r){return Ar[r>>18&63]+Ar[r>>12&63]+Ar[r>>6&63]+Ar[r&63]}function ww(r,o,i){for(var u,c=[],p=o;p<i;p+=3)u=(r[p]<<16&16711680)+(r[p+1]<<8&65280)+(r[p+2]&255),c.push(bw(u));return c.join("")}function vw(r){for(var o,i=r.length,u=i%3,c=[],p=16383,d=0,a=i-u;d<a;d+=p)c.push(ww(r,d,d+p>a?a:d+p));return u===1?(o=r[i-1],c.push(Ar[o>>2]+Ar[o<<4&63]+"==")):u===2&&(o=(r[i-2]<<8)+r[i-1],c.push(Ar[o>>10]+Ar[o>>4&63]+Ar[o<<2&63]+"=")),c.join("")}var zu={};zu.read=function(r,o,i,u,c){var p,d,a=c*8-u-1,h=(1<<a)-1,y=h>>1,g=-7,b=i?c-1:0,v=i?-1:1,w=r[o+b];for(b+=v,p=w&(1<<-g)-1,w>>=-g,g+=a;g>0;p=p*256+r[o+b],b+=v,g-=8);for(d=p&(1<<-g)-1,p>>=-g,g+=u;g>0;d=d*256+r[o+b],b+=v,g-=8);if(p===0)p=1-y;else{if(p===h)return d?NaN:(w?-1:1)*(1/0);d=d+Math.pow(2,u),p=p-y}return(w?-1:1)*d*Math.pow(2,p-u)};zu.write=function(r,o,i,u,c,p){var d,a,h,y=p*8-c-1,g=(1<<y)-1,b=g>>1,v=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=u?0:p-1,_=u?1:-1,T=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(a=isNaN(o)?1:0,d=g):(d=Math.floor(Math.log(o)/Math.LN2),o*(h=Math.pow(2,-d))<1&&(d--,h*=2),d+b>=1?o+=v/h:o+=v*Math.pow(2,1-b),o*h>=2&&(d++,h/=2),d+b>=g?(a=0,d=g):d+b>=1?(a=(o*h-1)*Math.pow(2,c),d=d+b):(a=o*Math.pow(2,b-1)*Math.pow(2,c),d=0));c>=8;r[i+w]=a&255,w+=_,a/=256,c-=8);for(d=d<<c|a,y+=c;y>0;r[i+w]=d&255,w+=_,d/=256,y-=8);r[i+w-_]|=T*128};(function(r){const o=da,i=zu,u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=a,r.SlowBuffer=D,r.INSPECT_MAX_BYTES=50;const c=2147483647;r.kMaxLength=c,a.TYPED_ARRAY_SUPPORT=p(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function p(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function d(e){if(e>
8c)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,n){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return b(e)}return h(e,t,n)}a.poolSize=8192;function h(e,t,n){if(typeof e=="string")return v(e,t);if(ArrayBuffer.isView(e))return _(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ie(e,ArrayBuffer)||e&&ie(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ie(e,SharedArrayBuffer)||e&&ie(e.buffer,SharedArrayBuffer)))return T(e,t,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const s=e.valueOf&&e.valueOf();if(s!=null&&s!==e)return a.from(s,t,n);const l=A(e);if(l)return l;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,t,n){return h(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function y(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function g(e,t,n){return y(e),e<=0?d(e):t!==void 0?typeof n=="string"?d(e).fill(t,n):d(e).fill(t):d(e)}a.alloc=function(e,t,n){return g(e,t,n)};function b(e){return y(e),d(e<0?0:B(e)|0)}a.allocUnsafe=function(e){return b(e)},a.allocUnsafeSlow=function(e){return b(e)};function v(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=x(e,t)|0;let s=d(n);const l=s.write(e,t);return l!==n&&(s=s.slice(0,l)),s}function w(e){const t=e.length<0?0:B(e.length)|0,n=d(t);for(let s=0;s<t;s+=1)n[s]=e[s]&255;return n}function _(e){if(ie(e,Uint8Array)){const t=new Uint8Array(e);return T(t.buffer,t.byteOffset,t.byteLength)}return w(e)}function T(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let s;return t===void 0&&n===void 0?s=new Uint8Array(e):n===void 0?s=new Uint8Array(e,t):s=new Uint8Array(e,t,n),Object.setPrototypeOf(s,a.prototype),s}function A(e){if(a.isBuffer(e)){const t=B(e.length)|0,n=d(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!="number"||De(e.length)?d(0):w(e);if(e.type==="Buffer"&&Array.isArray(e.data))return w(e.data)}function B(e){if(e>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return e|0}function D(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==a.prototype},a.compare=function(e,t){if(ie(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),ie(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,s=t.length;for(let l=0,f=Math.min(n,s);l<f;++l)if(e[l]!==t[l]){n=e[l],s=t[l];break}return n<s?-1:s<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return a.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const s=a.allocUnsafe(t);let l=0;for(n=0;n<e.length;++n){let f=e[n];if(ie(f,Uint8Array))l+f.length>s.length?(a.isBuffer(f)||(f=a.from(f)),f.copy(s,l)):Uint8Array.prototype.set.call(s,f,l);else if(a.isBuffer(f))f.copy(s,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=f.length}return s};function x(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ie(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,s=arguments.length>2&&arguments[2]===!0;if(!s&&n===0)return 0;let l=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Ie(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Se(e).length;default:if(l)return s?-1:Ie(e).length;t=(""+t).toLowerCase(),l=!0}}a.byteLength=x;function W(e,t,n){let s=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return ne(this,t,n);case"utf8":case"utf-8":return H(this,t,n);case"ascii":return he(this,t,n);case"latin1":case"binary":return ge(this,t,n);case"base64":return ue(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,t,n);default:if(s)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}a.prototype._isBuffer=!0;function U(e,t,n){const s=e[t];e[t]=e[n],e[n]=s}a.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)U(this,t,t+1);return this},a.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)U(this,t,t+3),U(this,t+1,t+2);return this},a.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)U(this,t,t+7),U(this,t+1,t+6),U(this,t+2,t+5),U(this,t+3,t+4);return this},a.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?H(this,0,e):W.apply(this,arguments)}
vendor: 14,032 bytes, line 8
8,a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:a.compare(this,e)===0},a.prototype.inspect=function(){let e="";const t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},u&&(a.prototype[u]=a.prototype.inspect),a.prototype.compare=function(e,t,n,s,l){if(ie(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),s===void 0&&(s=0),l===void 0&&(l=this.length),t<0||n>e.length||s<0||l>this.length)throw new RangeError("out of range index");if(s>=l&&t>=n)return 0;if(s>=l)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,s>>>=0,l>>>=0,this===e)return 0;let f=l-s,m=n-t;const L=Math.min(f,m),Z=this.slice(s,l),G=e.slice(t,n);for(let $=0;$<L;++$)if(Z[$]!==G[$]){f=Z[$],m=G[$];break}return f<m?-1:m<f?1:0};function S(e,t,n,s,l){if(e.length===0)return-1;if(typeof n=="string"?(s=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,De(n)&&(n=l?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(l)return-1;n=e.length-1}else if(n<0)if(l)n=0;else return-1;if(typeof t=="string"&&(t=a.from(t,s)),a.isBuffer(t))return t.length===0?-1:M(e,t,n,s,l);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?l?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):M(e,[t],n,s,l);throw new TypeError("val must be string, number or Buffer")}function M(e,t,n,s,l){let f=1,m=e.length,L=t.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(e.length<2||t.length<2)return-1;f=2,m/=2,L/=2,n/=2}function Z($,Q){return f===1?$[Q]:$.readUInt16BE(Q*f)}let G;if(l){let $=-1;for(G=n;G<m;G++)if(Z(e,G)===Z(t,$===-1?0:G-$)){if($===-1&&($=G),G-$+1===L)return $*f}else $!==-1&&(G-=G-$),$=-1}else for(n+L>m&&(n=m-L),G=n;G>=0;G--){let $=!0;for(let Q=0;Q<L;Q++)if(Z(e,G+Q)!==Z(t,Q)){$=!1;break}if($)return G}return-1}a.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},a.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function I(e,t,n,s){n=Number(n)||0;const l=e.length-n;s?(s=Number(s),s>l&&(s=l)):s=l;const f=t.length;s>f/2&&(s=f/2);let m;for(m=0;m<s;++m){const L=parseInt(t.substr(m*2,2),16);if(De(L))return m;e[n+m]=L}return m}function R(e,t,n,s){return Ee(Ie(t,e.length-n),e,n,s)}function C(e,t,n,s){return Ee(le(t),e,n,s)}function V(e,t,n,s){return Ee(Se(t),e,n,s)}function F(e,t,n,s){return Ee(me(t,e.length-n),e,n,s)}a.prototype.write=function(e,t,n,s){if(t===void 0)s="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")s=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,s===void 0&&(s="utf8")):(s=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const l=this.length-t;if((n===void 0||n>l)&&(n=l),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");let f=!1;for(;;)switch(s){case"hex":return I(this,e,t,n);case"utf8":case"utf-8":return R(this,e,t,n);case"ascii":case"latin1":case"binary":return C(this,e,t,n);case"base64":return V(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,e,t,n);default:if(f)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),f=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(e,t,n){return t===0&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function H(e,t,n){n=Math.min(e.length,n);const s=[];let l=t;for(;l<n;){const f=e[l];let m=null,L=f>239?4:f>223?3:f>191?2:1;if(l+L<=n){let Z,G,$,Q;switch(L){case 1:f<128&&(m=f);break;case 2:Z=e[l+1],(Z&192)===128&&(Q=(f&31)<<6|Z&63,Q>127&&(m=Q));break;case 3:Z=e[l+1],G=e[l+2],(Z&192)===128&&(G&192)===128&&(Q=(f&15)<<12|(Z&63)<<6|G&63,Q>2047&&(Q<55296||Q>57343)&&(m=Q));break;case 4:Z=e[l+1],G=e[l+2],$=e[l+3],(Z&192)===128&&(G&192)===128&&($&192)===128&&(Q=(f&15)<<18|(Z&63)<<12|(G&63)<<6|$&63,Q>65535&&Q<1114112&&(m=Q))}}m===null?(m=65533,L=1):m>65535&&(m-=65536,s.push(m>>>10&1023|55296),m=56320|m&1023),s.push(m),l+=L}return X(s)}const j=4096;function X(e){const t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let n="",s=0;for(;s<t;)n+=String.fromCharCode.apply(String,e.slice(s,s+=j));return n}function he(e,t,n){let s="";n=Math.min(e.length,n);for(let l=t;l<n;++l)s+=String.fromCharCode(e[l]&127);return s}function ge(e,t,n){let s="";n=Math.min(e.length,n);for(let l=t;l<n;++l)s+=String.fromCharCode(e[l]);return s}function ne(e,t,n){const s=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>s)&&(n=s);let l="";for(let f=t;f<n;++f)l+=O[e[f]];return l}function be(e,t,n){const s=e.slice(t,n);let l="";for(let f=0;f<s.length-1;f+=2)l+=String.fromCharCode(s[f]+s[f+1]*256);return l}a.prototype.slice=function(e,t){const n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);const s=this.subarray(e,t);return Object.setPrototypeOf(s,a.prototype),s};function P(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e],l=1,f=0;for(;++f<t&&(l*=256);)s+=this[e+f]*l;return s},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e+--t],l=1;for(;t>0&&(l*=256);)s+=this[e+--t]*l;return s},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e=e>>>0,t||P(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||P(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||P(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,l=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(s)+(BigInt(l)<<BigInt(32))}),a.prototype.readBigUInt64BE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],l=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(s)<<BigInt(32))+BigInt(l)}),a.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e],l=1,f=0;for(;++f<t&&(l*=256);)s+=this[e+f]*l;return l*=128,s>=l&&(s-=Math.pow(2,8*t)),s},a.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=t,l=1,f=this[e+--s];for(;s>0&&(l*=256);)f+=this[e+--s]*l;return l*=128,f>=l&&(f-=Math.pow(2,8*t)),f},a.prototype.readInt8=function(e,t){return e=e>>>0,t||P(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},a.prototype.readInt16LE=function(e,t){e=e>>>0,t||P(e,2,this.length);const n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},a.prototype.readInt16BE=function(e,t){e=e>>>0,t||P(e,2,this.length);const n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},a.prototype.readInt32LE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(s)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),a.prototype.readBigInt64BE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(s)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),a.prototype.readFloatLE=function(e,t){return e=e>>>0,t||P(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e=e>>>0,t||P(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||P(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||P(e,8,this.length),i.read(this,e,!1,52,8)};function ee(e,t,n,s,l,f){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>l||t<f)throw new RangeError('"value" argument is out of bounds');if(n+s>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,n,s){if(e=+e,t=t>>>0,n=n>>>0,!s){const m=Math.pow(2,8*n)-1;ee(this,e,t,n,m,0)}let l=1,f=0;for(this[t]=e&255;++f<n&&(l*=256);)this[t+f]=e/l&255;return t+n},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,n,s){if(e=+e,t=t>>>0,n=n>>>0,!s){const m=Math.pow(2,8*n)-1;ee(this,e,t,n,m,0)}let l=n-1,f=1;for(this[t+l]=e&255;--l>=0&&(f*=256);)this[t+l]=e/f&255;return t+n},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,1,255,0),this[t]=e&255,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function Ue(e,t,n,s,l){re(t,s,l,e,n,7);let f=Number(t&BigInt(4294967295));e[n++]=f,f=f>>8,e[n++]=f,f=f>>8,e[n++]=f,f=f>>8,e[n++]=f;let m=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=m,m=m>>8,e[n++]=m,m=m>>8,e[n++]=m,m=m>>8,e[n++]=m,n}function _e(e,t,n,s,l){re(t,s,l,e,n,7);let f=Number(t&BigInt(4294967295));e[n+7]=f,f=f>>8,e[n+6]=f,f=f>>8,e[n+5]=f,f=f>>8,e[n+4]=f;let m=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=m,m=m>>8,e[n+2]=m,m=m>>8,e[n+1]=m,m=m>>8,e[n]=m,n+8}a.prototype.writeBigUInt64LE=N(function(e,t=0){return Ue(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=N(function(e,t=0){return _e(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(e,t,n,s){if(e=+e,t=t>>>0,!s){const L=Math.pow(2,8*n-1);ee(this,e,t,n,L-1,-L)}let l=0,f=1,m=0;for(this[t]=e&255;++l<n&&(f*=256);)e<0&&m===0&&this[t+l-1]!==0&&(m=1),this[t+l]=(e/f>>0)-m&255;return t+n},a.prototype.writeIntBE=function(e,t,n,s){if(e=+e,t=t>>>0,!s){const L=Math.pow(2,8*n-1);ee(this,e,t,n,L-1,-L)}let l=n-1,f=1,m=0;for(this[t+l]=e&255;--l>=0&&(f*=256);)e<0&&m===0&&this[t+l+1]!==0&&(m=1),this[t+l]=(e/f>>0)-m&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},a.prototype.writeBigInt64LE=N(function(e,t=0){return Ue(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=N(function(e,t=0){return _e(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ce(e,t,n,s,l,f){if(n+s>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function de(e,t,n,s,l){return t=+t,n=n>>>0,l||ce(e,t,n,4),i.write(e,t,n,s,23,4),n+4}a.prototype.writeFloatLE=function(e,t,n){return de(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return de(this,e,t,!1,n)};function ve(e,t,n,s,l){return t=+t,n=n>>>0,l||ce(e,t,n,8),i.write(e,t,n,s,52,8),n+8}a.prototype.writeDoubleLE=function(e,t,n){return ve(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return ve(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,s){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!s&&s!==0&&(s=this.length),t>=e.length&&(t=e.length),t||(t=0),s>0&&s<n&&(s=n),s===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-t<s-n&&(s=e.length-t+n);const l=s-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,s):Uint8Array.prototype.set.call(e,this.subarray(n,s),t),l},a.prototype.fill=function(e,t,n,s){if(typeof e=="string"){if(typeof t=="string"?(s=t,t=0,n=this.length):typeof n=="string"&&(s=n,n=this.length),s!==void 0&&typeof s!="str
8ing")throw new TypeError("encoding must be a string");if(typeof s=="string"&&!a.isEncoding(s))throw new TypeError("Unknown encoding: "+s);if(e.length===1){const f=e.charCodeAt(0);(s==="utf8"&&f<128||s==="latin1")&&(e=f)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let l;if(typeof e=="number")for(l=t;l<n;++l)this[l]=e;else{const f=a.isBuffer(e)?e:a.from(e,s),m=f.length;if(m===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(l=0;l<n-t;++l)this[l+t]=f[l%m]}return this};const te={};function E(e,t,n){te[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(s){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:s,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}E("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),E("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),E("ERR_OUT_OF_RANGE",function(e,t,n){let s=`The value of "${e}" is out of range.`,l=n;return Number.isInteger(n)&&Math.abs(n)>2**32?l=k(String(n)):typeof n=="bigint"&&(l=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(l=k(l)),l+="n"),s+=` It must be ${t}. Received ${l}`,s},RangeError);function k(e){let t="",n=e.length;const s=e[0]==="-"?1:0;for(;n>=s+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function Y(e,t,n){z(t,"offset"),(e[t]===void 0||e[t+n]===void 0)&&J(t,e.length-(n+1))}function re(e,t,n,s,l,f){if(e>n||e<t){const m=typeof t=="bigint"?"n":"";let L;throw t===0||t===BigInt(0)?L=`>= 0${m} and < 2${m} ** ${(f+1)*8}${m}`:L=`>= -(2${m} ** ${(f+1)*8-1}${m}) and < 2 ** ${(f+1)*8-1}${m}`,new te.ERR_OUT_OF_RANGE("value",L,e)}Y(s,l,f)}function z(e,t){if(typeof e!="number")throw new te.ERR_INVALID_ARG_TYPE(t,"number",e)}function J(e,t,n){throw Math.floor(e)!==e?(z(e,n),new te.ERR_OUT_OF_RANGE("offset","an integer",e)):t<0?new te.ERR_BUFFER_OUT_OF_BOUNDS:new te.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}const se=/[^+/0-9A-Za-z-_]/g;function Ae(e){if(e=e.split("=")[0],e=e.trim().replace(se,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Ie(e,t){t=t||1/0;let n;const s=e.length;let l=null;const f=[];for(let m=0;m<s;++m){if(n=e.charCodeAt(m),n>55295&&n<57344){if(!l){if(n>56319){(t-=3)>-1&&f.push(239,191,189);continue}else if(m+1===s){(t-=3)>-1&&f.push(239,191,189);continue}l=n;continue}if(n<56320){(t-=3)>-1&&f.push(239,191,189),l=n;continue}n=(l-55296<<10|n-56320)+65536}else l&&(t-=3)>-1&&f.push(239,191,189);if(l=null,n<128){if((t-=1)<0)break;f.push(n)}else if(n<2048){if((t-=2)<0)break;f.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;f.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;f.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return f}function le(e){const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function me(e,t){let n,s,l;const f=[];for(let m=0;m<e.length&&!((t-=2)<0);++m)n=e.charCodeAt(m),s=n>>8,l=n%256,f.push(l),f.push(s);return f}function Se(e){return o.toByteArray(Ae(e))}function Ee(e,t,n,s){let l;for(l=0;l<s&&!(l+n>=t.length||l>=e.length);++l)t[l+n]=e[l];return l}function ie(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function De(e){return e!==e}const O=(function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const s=n*16;for(let l=0;l<16;++l)t[s+l]=e[n]+e[l]}return t})();function N(e){return typeof BigInt>"u"?K:e}function K(){throw new Error("BigInt not supported")}})(ep);var rp={exports:{}},lt=rp.exports={},dr,fr;function $s(){throw new Error("setTimeout has not been defined")}function Fs(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?dr=setTimeout:dr=$s}catch{dr=$s}try{typeof clearTimeout=="function"?fr=clearTimeout:fr=Fs}catch{fr=Fs}})();function np(r){if(dr===setTimeout)return setTimeout(r,0);if((dr===$s||!dr)&&setTimeout)return dr=setTimeout,setTimeout(r,0);try{return dr(r,0)}catch{try{return dr.call(null,r,0)}catch{return dr.call(this,r,0)}}}function Ew(r){if(fr===clearTimeout)return clearTimeout(r);
8if((fr===Fs||!fr)&&clearTimeout)return fr=clearTimeout,clearTimeout(r);try{return fr(r)}catch{try{return fr.call(null,r)}catch{return fr.call(this,r)}}}var Pr=[],Xn=!1,bn,Ii=-1;function _w(){!Xn||!bn||(Xn=!1,bn.length?Pr=bn.concat(Pr):Ii=-1,Pr.length&&op())}function op(){if(!Xn){var r=np(_w);Xn=!0;for(var o=Pr.length;o;){for(bn=Pr,Pr=[];++Ii<o;)bn&&bn[Ii].run();Ii=-1,o=Pr.length}bn=null,Xn=!1,Ew(r)}}lt.nextTick=function(r){var o=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)o[i-1]=arguments[i];Pr.push(new ip(r,o)),Pr.length===1&&!Xn&&np(op)};function ip(r,o){this.fun=r,this.array=o}ip.prototype.run=function(){this.fun.apply(null,this.array)};lt.title="browser";lt.browser=!0;lt.env={};lt.argv=[];lt.version="";lt.versions={};function Wr(){}lt.on=Wr;lt.addListener=Wr;lt.once=Wr;lt.off=Wr;lt.removeListener=Wr;lt.removeAllListeners=Wr;lt.emit=Wr;lt.prependListener=Wr;lt.prependOnceListener=Wr;lt.listeners=function(r){return[]};lt.binding=function(r){throw new Error("process.binding is not supported")};lt.cwd=function(){return"/"};lt.chdir=function(r){throw new Error("process.chdir is not supported")};lt.umask=function(){return 0};var Aw=rp.exports;(function(r){Object.defineProperty(r,Symbol.toStringTag,{value:"Module"});const o=ep,i=Aw,u=d=>d&&d.__esModule?d:{default:d},c=u(i),p=globalThis||void 0||self;Object.defineProperty(r,"Buffer",{enumerable:!0,get:()=>o.Buffer}),Object.defineProperty(r,"process",{enumerable:!0,get:()=>c.default}),r.global=p})(Ai);function Iw(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var fa={exports:{}};function Tw(r){try{return JSON.stringify(r)}catch{return'"[Circular]"'}}var Sw=Rw;function Rw(r,o,i){var u=i&&i.stringify||Tw,c=1;if(typeof r=="object"&&r!==null){var p=o.length+c;if(p===1)return r;var d=new Array(p);d[0]=u(r);for(var a=1;a<p;a++)d[a]=u(o[a]);return d.join(" ")}if(typeof r!="string")return r;var h=o.length;if(h===0)return r;for(var y="",g=1-c,b=-1,v=r&&r.length||0,w=0;w<v;){if(r.charCodeAt(w)===37&&w+1<v){switch(b=b>-1?b:0,r.charCodeAt(w+1)){case 100:case 102:if(g>=h||o[g]==null)break;b<w&&(y+=r.slice(b,w)),y+=Number(o[g]),b=w+2,w++;break;case 105:if(g>=h||o[g]==null)break;b<w&&(y+=r.slice(b,w)),y+=Math.floor(Number(o[g])),b=w+2,w++;break;case 79:case 111:case 106:if(g>=h||o[g]===void 0)break;b<w&&(y+=r.slice(b,w));var _=typeof o[g];if(_==="string"){y+="'"+o[g]+"'",b=w+2,w++;break}if(_==="function"){y+=o[g].name||"<anonymous>",b=w+2,w++;break}y+=u(o[g]),b=w+2,w++;break;case 115:if(g>=h)break;b<w&&(y+=r.slice(b,w)),y+=String(o[g]),b=w+2,w++;break;case 37:b<w&&(y+=r.slice(b,w)),y+="%",b=w+2,w++,g--;break}++g}++w}return b===-1?r:(b<v&&(y+=r.slice(b)),y)}const ac=Sw;fa.exports=Hr;const jo=Gw().console||{},Bw={mapHttpRequest:oi,mapHttpResponse:oi,wrapRequestSerializer:Ua,wrapResponseSerializer:Ua,wrapErrorSerializer:Ua,req:oi,res:oi,err:uc,errWithCause:uc};function Hi(r,o){return r==="silent"?1/0:o.levels.values[r]}const Wu=Symbol("pino.logFuncs"),js=Symbol("pino.hierarchy"),Cw={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function sc(r,o){const i={logger:o,parent:r[js]};o[js]=i}function Ow(r,o,i){const u={};o.forEach(c=>{u[c]=i[c]?i[c]:jo[c]||jo[Cw[c]||"log"]||eo}),r[Wu]=u}function Lw(r,o){return Array.isArray(r)?r.filter(function(i){return i!=="!stdSerializers.err"}):r===!0?Object.keys(o):!1}function Hr(r){r=r||{},r.browser=r.browser||{};const o=r.browser.transmit;if(o&&typeof o.send!="function")throw Error("pino: transmit option must have a send function");const i=r.browser.write||jo;r.browser.write&&(r.browser.asObject=!0);const u=r.serializers||{},c=Lw(r.browser.serialize,u);let p=r.browser.serialize;Array.isArray(r.browser.serialize)&&r.browser.serialize.indexOf("!stdSerializers.err")>-1&&(p=!1);const d=Object.keys(r.customLevels||{}),a=["error","fatal","warn","info","debug","trace"].concat(d);typeof i=="function"&&a.forEach(function(T){i[T]=i}),(r.enabled===!1||r.browser.disabled)&&(r.level="silent");const h=r.level||"info",y=Object.create(i);y.log||(y.log=eo),Ow(y,a,i),sc({},y),Object.defineProperty(y,"levelVal",{get:b}
8),Object.defineProperty(y,"level",{get:v,set:w});const g={transmit:o,serialize:c,asObject:r.browser.asObject,formatters:r.browser.formatters,levels:a,timestamp:$w(r),messageKey:r.messageKey||"msg",onChild:r.onChild||eo};y.levels=Nw(r),y.level=h,y.setMaxListeners=y.getMaxListeners=y.emit=y.addListener=y.on=y.prependListener=y.once=y.prependOnceListener=y.removeListener=y.removeAllListeners=y.listeners=y.listenerCount=y.eventNames=y.write=y.flush=eo,y.serializers=u,y._serialize=c,y._stdErrSerialize=p,y.child=function(...T){return _.call(this,g,...T)},o&&(y._logEvent=Gs());function b(){return Hi(this.level,this)}function v(){return this._level}function w(T){if(T!=="silent"&&!this.levels.values[T])throw Error("unknown level "+T);this._level=T,ln(this,g,y,"error"),ln(this,g,y,"fatal"),ln(this,g,y,"warn"),ln(this,g,y,"info"),ln(this,g,y,"debug"),ln(this,g,y,"trace"),d.forEach(A=>{ln(this,g,y,A)})}function _(T,A,B){if(!A)throw new Error("missing bindings for child Pino");B=B||{},c&&A.serializers&&(B.serializers=A.serializers);const D=B.serializers;if(c&&D){var x=Object.assign({},u,D),W=r.browser.serialize===!0?Object.keys(x):c;delete A.serializers,Yu([A],W,x,this._stdErrSerialize)}function U(M){this._childLevel=(M._childLevel|0)+1,this.bindings=A,x&&(this.serializers=x,this._serialize=W),o&&(this._logEvent=Gs([].concat(M._logEvent.bindings,A)))}U.prototype=this;const S=new U(this);return sc(this,S),S.child=function(...M){return _.call(this,T,...M)},S.level=B.level||this.level,T.onChild(S),S}return y}function Nw(r){const o=r.customLevels||{},i=Object.assign({},Hr.levels.values,o),u=Object.assign({},Hr.levels.labels,Dw(o));return{values:i,labels:u}}function Dw(r){const o={};return Object.keys(r).forEach(function(i){o[r[i]]=i}),o}Hr.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};Hr.stdSerializers=Bw;Hr.stdTimeFunctions=Object.assign({},{nullTime:ap,epochTime:sp,unixTime:Fw,isoTime:jw});function xw(r){const o=[];r.bindings&&o.push(r.bindings);let i=r[js];for(;i.parent;)i=i.parent,i.logger.bindings&&o.push(i.logger.bindings);return o.reverse()}function ln(r,o,i,u){if(Object.defineProperty(r,u,{value:Hi(r.level,i)>Hi(u,i)?eo:i[Wu][u],writable:!0,enumerable:!0,configurable:!0}),r[u]===eo){if(!o.transmit)return;const p=o.transmit.level||r.level,d=i.levels.values[p];if(i.levels.values[u]<d)return}r[u]=kw(r,o,i,u);const c=xw(r);c.length!==0&&(r[u]=Uw(c,r[u]))}function Uw(r,o){return function(){return o.apply(this,[...r,...arguments])}}function kw(r,o,i,u){return(function(c){return function(){const p=o.timestamp(),d=new Array(arguments.length),a=Object.getPrototypeOf&&Object.getPrototypeOf(this)===jo?jo:this;for(var h=0;h<d.length;h++)d[h]=arguments[h];var y=!1;if(o.serialize&&(Yu(d,this._serialize,this.serializers,this._stdErrSerialize),y=!0),o.asObject||o.formatters?c.call(a,Pw(this,u,d,p,o)):c.apply(a,d),o.transmit){const g=o.transmit.level||r._level,b=i.levels.values[g],v=i.levels.values[u];if(v<b)return;Mw(this,{ts:p,methodLevel:u,methodValue:v,transmitValue:i.levels.values[o.transmit.level||r._level],send:o.transmit.send,val:Hi(r._level,i)},d,y)}}})(r[Wu][u])}function Pw(r,o,i,u,c){const{level:p,log:d=b=>b}=c.formatters||{},a=i.slice();let h=a[0];const y={};if(u&&(y.time=u),p){const b=p(o,r.levels.values[o]);Object.assign(y,b)}else y.level=r.levels.values[o];let g=(r._childLevel|0)+1;if(g<1&&(g=1),h!==null&&typeof h=="object"){for(;g--&&typeof a[0]=="object";)Object.assign(y,a.shift());h=a.length?ac(a.shift(),a):void 0}else typeof h=="string"&&(h=ac(a.shift(),a));return h!==void 0&&(y[c.messageKey]=h),d(y)}function Yu(r,o,i,u){for(const c in r)if(u&&r[c]instanceof Error)r[c]=Hr.stdSerializers.err(r[c]);else if(typeof r[c]=="object"&&!Array.isArray(r[c])&&o)for(const p in r[c])o.indexOf(p)>-1&&p in i&&(r[c][p]=i[p](r[c][p]))}function Mw(r,o,i,u=!1){const c=o.send,p=o.ts,d=o.methodLevel,a=o.methodValue,h=o.val,y=r._logEvent.bindings;u||Yu(i,r._serialize||Object.keys(r.serializers),r.serializers,r._stdErrSerialize===void 0?!0:r._stdErrSerialize),r._logEvent.ts=p,r._logEvent.messages=i.filter(function(g){return y.indexOf(g)===-1}),r._logEvent.level.label=d,r._logEvent.level.value=a,c(d,r._logEvent,h),r._logEvent=Gs(y)}function Gs(r){return{ts:0,messages:[],bindings:r||[],level:{label:"",value:0}}}function uc(r){const o={type:r.constructor.name,msg:r.message,stack:r.stack};for(const i in r)o[i]===void 0&&(o[i]=r[i]);return o}function $w(r){return typeof r.timestamp=="function"?r.timestamp:r.timestamp===!1?a
8p:sp}function oi(){return{}}function Ua(r){return r}function eo(){}function ap(){return!1}function sp(){return Date.now()}function Fw(){return Math.round(Date.now()/1e3)}function jw(){return new Date(Date.now()).toISOString()}function Gw(){function r(o){return typeof o<"u"&&o}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return r(self)||r(window)||r(this)||{}}}fa.exports.default=Hr;fa.exports.pino=Hr;var up=fa.exports;const lc=Iw(up);var lp=(r=>(r.FATAL="fatal",r.ERROR="error",r.WARN="warn",r.INFO="info",r.DEBUG="debug",r.TRACE="trace",r.SILENT="silent",r))(lp||{});const qw=lp.INFO;let cp=class dp{constructor(o){var i,u,c,p,d;this.options=o,this._level=((u=this.options.config)==null?void 0:u.level)||qw;const a=(i=(p=(c=this.options).format)==null?void 0:p.call(c))!=null?i:{};(d=o.config)!=null&&d.dev?this.pino=lc({level:this.level,...a,transport:{target:"pino-pretty",options:{translateTime:"SYS:HH:MM:ss.l",ignore:"pid,hostname"}}}):this.pino=lc({...a,level:this.level})}get level(){return this._level}child(o){return this.pino.child(o)}getChild(o){const i=new dp(this.options);return i.pino=this.child(o),i}fatal(o,i,...u){this.pino.fatal(o,i,u)}error(o,i,...u){this.pino.error(o,i,u)}warn(o,i,...u){this.pino.warn(o,i,u)}info(o,i,...u){this.pino.info(o,i,u)}debug(o,i,...u){this.pino.debug(o,i,u)}trace(o,i,...u){this.pino.trace(o,i,u)}silent(o,i,...u){this.pino.silent(o,i,u)}};up.stdTimeFunctions;let fp=class{constructor(o,i,u,c){this.config=o,this.httpClient=i,this.wsClient=u,this.logger=c}create(){return new Ms(this.config,this.httpClient,this.wsClient,this.logger)}static createInstance(o){var i,u;const c={entry:Ai.process.env.GATEWAY_SERVER_HOST,wsEntry:Ai.process.env.WS_GATEWAY_CLIENT_HOST,...o?.config},p=new Cb(new Db),d=o?.logger||new cp({config:{level:Ai.process.env.LOG_LEVEL||"warn"}}),a=o?.httpClient||new Mb(p,d),h=o?.wsClient||new Qb(d,(u=(i=c.wsEntry)!=null?i:c.entry)!=null?u:"");return this.instance=new Ms(c,a,h,d),this.instance}static getInstance(){if(!this.instance)throw new Error("GQLClient синглтон не инициализирован");return this.instance}};class Vw{constructor(){this.makeRequest=()=>{},this.updateEntry=()=>{}}}class Hw{constructor(){this.subscribe=()=>{},this.unsubscribe=()=>{},this.updateEntry=()=>{},this.disconnect=()=>{}}}const zw={entry:void 0},Ww=new Vw,Yw=new Hw,Kw=new cp({});new Ms(zw,Ww,Yw,Kw);let ka=null;const Qw=()=>ka||(ka=fp.createInstance({config:{entry:"/gql/graphql/"}}),ka),Jw=1500;let Zw=class extends fo{async load(){const o=this.getLocalStorageValueIfNotExprired(Ql,gb);if(o&&o.data&&o.version===Jl)return{segmentsData:o.data,...this.getSpecificSegments(o.data)};try{const i=await Qw().gqlQuery(jf,{},{timeout:Jw}),u=Object.fromEntries(i.get.map(({key:c,value:p})=>[c,p]));return localStorage.setItem(`${La}:${Ql}`,this.convertSegmentsForLocalStorage(u,Jl)),{segmentsData:u,...this.getSpecificSegments(u)}}catch(i){return console.warn(`[AdTargetings] Произошла ошибка при получении сегментов: ${i?.message}`),{segmentsData:{},bothSites:"",betting:""}}}getSpecificSegments(o){var i,u;return{bothSites:(i=o.both_sites)!=null?i:"",betting:(u=o.betting)!=null?u:""}}convertSegmentsForLocalStorage(o,i){const u={date:new Date().toString(),time:this.getCurrentTime(),data:o,version:i};return JSON.stringify(u)}getLocalStorageValueIfNotExprired(o,i){const u=this.localStorageParseData(localStorage.getItem(`${La}:${o}`));if(!u)return null;const c=i*60*60;return this.getCurrentTime()-u.time>c*1e3?(localStorage.removeItem(`${La}:key`),null):u}localStorageParseData(o){try{return JSON.parse(o)}catch{return o}}getCurrentTime(){return new Date().getTime()}};const Xw="www",e1="m",cc="ru";function dc(r=!1){const o=window.location.hostname.match(/m?\.?(www|cyber|m)\.?([^.]*)\.(sports.ru)/);if(r)return o?!!o[2]:!0;if(o)switch(o[1]){case Xw:case e1:return cc;default:return o[1]}return cc}function pp(){return typeof window>"u"?!1:window.innerWidth<=744}let Pa=null;function pa(){return Pa||(Pa={currentSite:dc(),isCurrentSiteDev:dc(!0),isCurrentPageMobile:pp(),referrer:document.referrer,location:new URL(window.location.href)},Pa)}let hp=class{},t1=class extends hp{constructor(o){super(),this.data=o}save(o){this.data=o}get(){return this.data}},r1=class extends hp{constructor(o){super(),this.data=o}save(o){this.data=o}get(){return this.data}};const n1="utm_source",o1="utm_referrer",Ma="referral",i1="zen",fc="direct",a1="other",s1="zen.yandex.ru",u1="zen.yandex.com";
8let pc=class extends Error{constructor(o){super(`[EntrySource] ${o}`)}},l1=class{constructor(o,i){this.entrySourcesStorage=o,this.utmSourcesStorage=i,this.savedEntrySource=null;const{referrer:u,location:c}=pa();this.referrer=u,this.location=c}setEntriesInEntrySourcesStorage(o){this.entrySourcesStorage.save(o)}setEntriesInUtmSourcesStorage(o){this.utmSourcesStorage.save(o)}getEntrySource(){if(this.savedEntrySource)return this.savedEntrySource;let o=this.getEntrySourceWithReferrer();return o||(o=this.getEntrySourceWithLocation(),o)||(o=this.getEntrySourceWithLocationUtmReferrer(),o)?o:this.referrer?a1:(this.savedEntrySource=fc,fc)}getEntrySourceWithReferrer(){const o=this.entrySourcesStorage.get();if(!o)throw new pc("Сервис хранения не содержит данных об источниках входа.");if(this.referrer){for(const i of o.entries)if(i.search.some(u=>this.referrer.includes(u)))return this.savedEntrySource=i.entrySource,i.entrySource}}getEntrySourceWithLocation(){const o=this.utmSourcesStorage.get();if(!o)throw new pc("Сервис хранения не содержит данных об источниках входа.");const i=this.location.searchParams.get(n1);if(i){for(const u of o.entries)if(u.utmSource===i)return this.savedEntrySource=u.entrySource,u.entrySource;return this.savedEntrySource=Ma,Ma}}getEntrySourceWithLocationUtmReferrer(){const o=this.location.searchParams.get(o1);if(o){let i=Ma;return(o.includes(s1)||o.includes(u1))&&(i=i1),this.savedEntrySource=i,i}}};const c1=new t1({entries:[]}),d1=new r1({entries:[]});let $a=null;function mp(){return $a||($a=new l1(c1,d1)),$a}const f1="adv_test",p1="sports.ru";let h1=class extends fo{load(){const{currentSite:o,isCurrentSiteDev:i}=pa();return{entrySource:mp().getEntrySource(),currentSite:o,isDevMode:i,advTest:this.getAdvTestValue(),sessionDepth:this.getSessionDepth(),isInternal:this.getIsInternal()}}getAdvTestValue(){const o=window.location.search;return new URLSearchParams(o).get(f1)||""}getSessionDepth(){const o=window.sessionStorage.getItem("sessionDepth");return o?+o:1}getIsInternal(){return window.document.referrer.indexOf(p1)>-1}};const m1="sports:utils:split-testing:userGroup:group",g1="sports:utils:split-testing:userGroupOf2:group",y1="sports:utils:split-testing:userGroupOf4:group";let b1=class extends fo{load(){const o=this.getSplitTestValue(localStorage.getItem(m1)||""),i=this.getSplitTestValue(localStorage.getItem(g1)||""),u=this.getSplitTestValue(localStorage.getItem(y1)||"");return{userGroup:o,userGroupOf2:i,userGroupOf4:u}}getSplitTestValue(o){try{return JSON.parse(o).data}catch{return""}}};function w1(r,o){var i=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(i!=null){var u,c,p,d,a=[],h=!0,y=!1;try{if(p=(i=i.call(r)).next,o!==0)for(;!(h=(u=p.call(i)).done)&&(a.push(u.value),a.length!==o);h=!0);}catch(g){y=!0,c=g}finally{try{if(!h&&i.return!=null&&(d=i.return(),Object(d)!==d))return}finally{if(y)throw c}}return a}}function hc(r,o){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);o&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),i.push.apply(i,u)}return i}function Go(r){for(var o=1;o<arguments.length;o++){var i=arguments[o]!=null?arguments[o]:{};o%2?hc(Object(i),!0).forEach(function(u){gp(r,u,i[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):hc(Object(i)).forEach(function(u){Object.defineProperty(r,u,Object.getOwnPropertyDescriptor(i,u))})}return r}function gp(r,o,i){return o=R1(o),o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,r}function v1(r,o){if(r==null)return{};var i={},u=Object.keys(r),c,p;for(p=0;p<u.length;p++)c=u[p],!(o.indexOf(c)>=0)&&(i[c]=r[c]);return i}function E1(r,o){if(r==null)return{};var i=v1(r,o),u,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);for(c=0;c<p.length;c++)u=p[c],!(o.indexOf(u)>=0)&&Object.prototype.propertyIsEnumerable.call(r,u)&&(i[u]=r[u])}return i}function _1(r,o){return A1(r)||w1(r,o)||I1(r,o)||T1()}function A1(r){if(Array.isArray(r))return r}function I1(r,o){if(r){if(typeof r=="string")return mc(r,o);var i=Object.prototype.toString.call(r).slice(8,-1);if(i==="Object"&&r.constructor&&(i=r.constructor.name),i==="Map"||i==="Set")return Array.from(r);
vendor: 4,625 bytes, lines 8-9
8if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return mc(r,o)}}function mc(r,o){(o==null||o>r.length)&&(o=r.length);for(var i=0,u=new Array(o);i<o;i++)u[i]=r[i];return u}function T1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
9In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S1(r,o){if(typeof r!="object"||r===null)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var u=i.call(r,o);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(r)}function R1(r){var o=S1(r,"string");return typeof o=="symbol"?o:String(o)}var B1={AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Åland Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthélemy",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BQ:"Caribbean Netherlands",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos Islands",CD:"Democratic Republic of the Congo",CF:"Central African Republic",CG:"Republic of the Congo",CH:"Switzerland",CI:"Ivory Coast",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cabo Verde",CW:"Curaçao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czechia",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Réunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena, Ascension and Tristan da Cunha",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Eswatini",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Türkiye",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"United States Minor Outlying Islands",US:"United States of America",UY:"Uruguay",UZ:"Uzbekistan",VA:"Holy See",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"Virgin Islands (UK)",VI:"Virgin Islands (US)",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe"},C1
vendor: 18,888 bytes, line 9
9={"Africa/Abidjan":{u:0,c:["CI","BF","GH","GM","GN","IS","ML","MR","SH","SL","SN","TG"]},"Africa/Accra":{a:"Africa/Abidjan",c:["GH"],r:1},"Africa/Addis_Ababa":{a:"Africa/Nairobi",c:["ET"],r:1},"Africa/Algiers":{u:60,c:["DZ"]},"Africa/Asmara":{a:"Africa/Nairobi",c:["ER"],r:1},"Africa/Asmera":{a:"Africa/Nairobi",c:["ER"],r:1},"Africa/Bamako":{a:"Africa/Abidjan",c:["ML"],r:1},"Africa/Bangui":{a:"Africa/Lagos",c:["CF"],r:1},"Africa/Banjul":{a:"Africa/Abidjan",c:["GM"],r:1},"Africa/Bissau":{u:0,c:["GW"]},"Africa/Blantyre":{a:"Africa/Maputo",c:["MW"],r:1},"Africa/Brazzaville":{a:"Africa/Lagos",c:["CG"],r:1},"Africa/Bujumbura":{a:"Africa/Maputo",c:["BI"],r:1},"Africa/Cairo":{u:120,d:180,c:["EG"]},"Africa/Casablanca":{u:60,d:0,c:["MA"]},"Africa/Ceuta":{u:60,d:120,c:["ES"]},"Africa/Conakry":{a:"Africa/Abidjan",c:["GN"],r:1},"Africa/Dakar":{a:"Africa/Abidjan",c:["SN"],r:1},"Africa/Dar_es_Salaam":{a:"Africa/Nairobi",c:["TZ"],r:1},"Africa/Djibouti":{a:"Africa/Nairobi",c:["DJ"],r:1},"Africa/Douala":{a:"Africa/Lagos",c:["CM"],r:1},"Africa/El_Aaiun":{u:60,d:0,c:["EH"]},"Africa/Freetown":{a:"Africa/Abidjan",c:["SL"],r:1},"Africa/Gaborone":{a:"Africa/Maputo",c:["BW"],r:1},"Africa/Harare":{a:"Africa/Maputo",c:["ZW"],r:1},"Africa/Johannesburg":{u:120,c:["ZA","LS","SZ"]},"Africa/Juba":{u:120,c:["SS"]},"Africa/Kampala":{a:"Africa/Nairobi",c:["UG"],r:1},"Africa/Khartoum":{u:120,c:["SD"]},"Africa/Kigali":{a:"Africa/Maputo",c:["RW"],r:1},"Africa/Kinshasa":{a:"Africa/Lagos",c:["CD"],r:1},"Africa/Lagos":{u:60,c:["NG","AO","BJ","CD","CF","CG","CM","GA","GQ","NE"]},"Africa/Libreville":{a:"Africa/Lagos",c:["GA"],r:1},"Africa/Lome":{a:"Africa/Abidjan",c:["TG"],r:1},"Africa/Luanda":{a:"Africa/Lagos",c:["AO"],r:1},"Africa/Lubumbashi":{a:"Africa/Maputo",c:["CD"],r:1},"Africa/Lusaka":{a:"Africa/Maputo",c:["ZM"],r:1},"Africa/Malabo":{a:"Africa/Lagos",c:["GQ"],r:1},"Africa/Maputo":{u:120,c:["MZ","BI","BW","CD","MW","RW","ZM","ZW"]},"Africa/Maseru":{a:"Africa/Johannesburg",c:["LS"],r:1},"Africa/Mbabane":{a:"Africa/Johannesburg",c:["SZ"],r:1},"Africa/Mogadishu":{a:"Africa/Nairobi",c:["SO"],r:1},"Africa/Monrovia":{u:0,c:["LR"]},"Africa/Nairobi":{u:180,c:["KE","DJ","ER","ET","KM","MG","SO","TZ","UG","YT"]},"Africa/Ndjamena":{u:60,c:["TD"]},"Africa/Niamey":{a:"Africa/Lagos",c:["NE"],r:1},"Africa/Nouakchott":{a:"Africa/Abidjan",c:["MR"],r:1},"Africa/Ouagadougou":{a:"Africa/Abidjan",c:["BF"],r:1},"Africa/Porto-Novo":{a:"Africa/Lagos",c:["BJ"],r:1},"Africa/Sao_Tome":{u:0,c:["ST"]},"Africa/Timbuktu":{a:"Africa/Abidjan",c:["ML"],r:1},"Africa/Tripoli":{u:120,c:["LY"]},"Africa/Tunis":{u:60,c:["TN"]},"Africa/Windhoek":{u:120,c:["NA"]},"America/Adak":{u:-600,d:-540,c:["US"]},"America/Anchorage":{u:-540,d:-480,c:["US"]},"America/Anguilla":{a:"America/Puerto_Rico",c:["AI"],r:1},"America/Antigua":{a:"America/Puerto_Rico",c:["AG"],r:1},"America/Araguaina":{u:-180,c:["BR"]},"America/Argentina/Buenos_Aires":{u:-180,c:["AR"]},"America/Argentina/Catamarca":{u:-180,c:["AR"]},"America/Argentina/ComodRivadavia":{a:"America/Argentina/Catamarca",r:1},"America/Argentina/Cordoba":{u:-180,c:["AR"]},"America/Argentina/Jujuy":{u:-180,c:["AR"]},"America/Argentina/La_Rioja":{u:-180,c:["AR"]},"America/Argentina/Mendoza":{u:-180,c:["AR"]},"America/Argentina/Rio_Gallegos":{u:-180,c:["AR"]},"America/Argentina/Salta":{u:-180,c:["AR"]},"America/Argentina/San_Juan":{u:-180,c:["AR"]},"America/Argentina/San_Luis":{u:-180,c:["AR"]},"America/Argentina/Tucuman":{u:-180,c:["AR"]},"America/Argentina/Ushuaia":{u:-180,c:["AR"]},"America/Aruba":{a:"America/Puerto_Rico",c:["AW"],r:1},"America/Asuncion":{u:-240,d:-180,c:["PY"]},"America/Atikokan":{a:"America/Panama",c:["CA"],r:1},"America/Atka":{a:"America/Adak",r:1},"America/Bahia":{u:-180,c:["BR"]},"America/Bahia_Banderas":{u:-360,c:["MX"]},"America/Barbados":{u:-240,c:["BB"]},"America/Belem":{u:-180,c:["BR"]},"America/Belize":{u:-360,c:["BZ"]},"America/Blanc-Sablon":{a:"America/Puerto_Rico",c:["CA"],r:1},"America/Boa_Vista":{u:-240,c:["BR"]},"America/Bogota":{u:-300,c:["CO"]},"America/Boise":{u:-420,d:-360,c:["US"]},"America/Buenos_Aires":{a:"America/Argentina/Buenos_Aires",r:1},"America/Cambridge_Bay":{u:-420,d:-360,c:["CA"]},"America/Campo_Grande":{u:-240,c:["BR"]},"America/Cancun":{u:-300,c:["MX"]},"America/Caracas":{u:-240,c:["VE"]},"America/Catamarca":{a:"America/Argentina/Catamarca",r:1},"America/Cayenne":{u:-180,c:["GF"]},"America/Cayman":{a:"America/Panama",c:["KY"],r:1},"America/Chicago":{u:-360,d:-300,c:["US"]},"America/Chihuahua":{u:-360,c:["MX"]},"America/Ciudad_Juarez":{u:-420,d:-360,c:["MX"]},"America/Coral_Harbour":{a:"America/Panama",c:["CA"],r:1},"America/Cordoba":{a:"America/Argentina/Cordoba",r:1},"America/Costa_Rica":{u:-360,c:["CR"]},"America/Creston":{a:"America/Phoenix",c:["CA"],r:1},"America/Cuiaba":{u:-240,c:["BR"]},"America/Curacao":{a:"America/Puerto_Rico",c:["CW"],r:1},"America/Danmarkshavn":{u:0,c:["GL"]},"America/Dawson":{u:-420,c:["CA"]},"America/Dawson_Creek":{u:-420,c:["CA"]},"America/Denver":{u:-420,d:-360,c:["US"]},"America/Detroit":{u:-300,d:-240,c:["US"]},"America/Dominica":{a:"America/Puerto_Rico",c:["DM"],r:1},"America/Edmonton":{u:-420,d:-360,c:["CA"]},"America/Eirunepe":{u:-300,c:["BR"]},"America/El_Salvador":{u:-360,c:["SV"]},"America/Ensenada":{a:"America/Tijuana",r:1},"America/Fort_Nelson":{u:-420,c:["CA"]},"America/Fort_Wayne":{a:"America/Indiana/Indianapolis",r:1},"America/Fortaleza":{u:-180,c:["BR"]},"America/Glace_Bay":{u:-240,d:-180,c:["CA"]},"America/Godthab":{a:"America/Nuuk",r:1},"America/Goose_Bay":{u:-240,d:-180,c:["CA"]},"America/Grand_Turk":{u:-300,d:-240,c:["TC"]},"America/Grenada":{a:"America/Puerto_Rico",c:["GD"],r:1},"America/Guadeloupe":{a:"America/Puerto_Rico",c:["GP"],r:1},"America/Guatemala":{u:-360,c:["GT"]},"America/Guayaquil":{u:-300,c:["EC"]},"America/Guyana":{u:-240,c:["GY"]},"America/Halifax":{u:-240,d:-180,c:["CA"]},"America/Havana":{u:-300,d:-240,c:["CU"]},"America/Hermosillo":{u:-420,c:["MX"]},"America/Indiana/Indianapolis":{u:-300,d:-240,c:["US"]},"America/Indiana/Knox":{u:-360,d:-300,c:["US"]},"America/Indiana/Marengo":{u:-300,d:-240,c:["US"]},"America/Indiana/Petersburg":{u:-300,d:-240,c:["US"]},"America/Indiana/Tell_City":{u:-360,d:-300,c:["US"]},"America/Indiana/Vevay":{u:-300,d:-240,c:["US"]},"America/Indiana/Vincennes":{u:-300,d:-240,c:["US"]},"America/Indiana/Winamac":{u:-300,d:-240,c:["US"]},"America/Indianapolis":{a:"America/Indiana/Indianapolis",r:1},"America/Inuvik":{u:-420,d:-360,c:["CA"]},"America/Iqaluit":{u:-300,d:-240,c:["CA"]},"America/Jamaica":{u:-300,c:["JM"]},"America/Jujuy":{a:"America/Argentina/Jujuy",r:1},"America/Juneau":{u:-540,d:-480,c:["US"]},"America/Kentucky/Louisville":{u:-300,d:-240,c:["US"]},"America/Kentucky/Monticello":{u:-300,d:-240,c:["US"]},"America/Knox_IN":{a:"America/Indiana/Knox",r:1},"America/Kralendijk":{a:"America/Puerto_Rico",c:["BQ"],r:1},"America/La_Paz":{u:-240,c:["BO"]},"America/Lima":{u:-300,c:["PE"]},"America/Los_Angeles":{u:-480,d:-420,c:["US"]},"America/Louisville":{a:"America/Kentucky/Louisville",r:1},"America/Lower_Princes":{a:"America/Puerto_Rico",c:["SX"],r:1},"America/Maceio":{u:-180,c:["BR"]},"America/Managua":{u:-360,c:["NI"]},"America/Manaus":{u:-240,c:["BR"]},"America/Marigot":{a:"America/Puerto_Rico",c:["MF"],r:1},"America/Martinique":{u:-240,c:["MQ"]},"America/Matamoros":{u:-360,d:-300,c:["MX"]},"America/Mazatlan":{u:-420,c:["MX"]},"America/Mendoza":{a:"America/Argentina/Mendoza",r:1},"America/Menominee":{u:-360,d:-300,c:["US"]},"America/Merida":{u:-360,c:["MX"]},"America/Metlakatla":{u:-540,d:-480,c:["US"]},"America/Mexico_City":{u:-360,c:["MX"]},"America/Miquelon":{u:-180,d:-120,c:["PM"]},"America/Moncton":{u:-240,d:-180,c:["CA"]},"America/Monterrey":{u:-360,c:["MX"]},"America/Montevideo":{u:-180,c:["UY"]},"America/Montreal":{a:"America/Toronto",c:["CA"],r:1},"America/Montserrat":{a:"America/Puerto_Rico",c:["MS"],r:1},"America/Nassau":{a:"America/Toronto",c:["BS"],r:1},"America/New_York":{u:-300,d:-240,c:["US"]},"America/Nipigon":{a:"America/Toronto",c:["CA"],r:1},"America/Nome":{u:-540,d:-480,c:["US"]},"America/Noronha":{u:-120,c:["BR"]},"America/North_Dakota/Beulah":{u:-360,d:-300,c:["US"]},"America/North_Dakota/Center":{u:-360,d:-300,c:["US"]},"America/North_Dakota/New_Salem":{u:-360,d:-300,c:["US"]},"America/Nuuk":{u:-120,d:-60,c:["GL"]},"America/Ojinaga":{u:-360,d:-300,c:["MX"]},"America/Panama":{u:-300,c:["PA","CA","KY"]},"America/Pangnirtung":{a:"America/Iqaluit",r:1},"America/Paramaribo":{u:-180,c:["SR"]},"America/Phoenix":{u:-420,c:["US","CA"]},"America/Port-au-Prince":{u:-300,d:-240,c:["HT"]},"America/Port_of_Spain":{a:"America/Puerto_Rico",c:["TT"],r:1},"America/Porto_Acre":{a:"America/Rio_Branco",r:1},"America/Porto_Velho":{u:-240,c:["BR"]},"America/Puerto_Rico":{u:-240,c:["PR","AG","CA","AI","AW","BL","BQ","CW","DM","GD","GP","KN","LC","MF","MS","SX","TT","VC","VG","VI"]},"America/Punta_Arenas":{u:-180,c:["CL"]},"America/Rainy_River":{a:"America/Winnipeg",r:1},"America/Rankin_Inlet":{u:-360,d:-300,c:["CA"]},"America/Recife":{u:-180,c:["BR"]},"America/Regina":{u:-360,c:["CA"]},"America/Resolute":{u:-360,d:-300,c:["CA"]},"America/Rio_Branco":{u:-300,c:["BR"]},"America/Rosario":{a:"America/Argentina/Cordoba",r:1},"America/Santa_Isabel":{a:"America/Tijuana",r:1},"America/Santarem":{u:-180,c:["BR"]},"America/Santiago":{u:-240,d:-180,c:["CL"]},"America/Santo_Domingo":{u:-240,c:["DO"]},"America/Sao_Paulo":{u:-180,c:["BR"]},"America/Scoresbysund":{u:-60,d:0,c:["GL"]},"America/Shiprock":{a:"America/Denver",r:1},"America/Sitka":{u:-540,d:-480,c:["US"]},"America/St_Barthelemy":{a:"America/Puerto_Rico",c:["BL"],r:1},"America/St_Johns":{u:-210,d:-150,c:["CA"]},"America/St_Kitts":{a:"America/Puerto_Rico",c:["KN"],r:1},"America/St_Lucia":{a:"America/Puerto_Rico",c:["LC"],r:1},"America/St_Thomas":{a:"America/Puerto_Rico",c:["VI"],r:1},"America/St_Vincent":{a:"America/Puerto_Rico",c:["VC"],r:1},"America/Swift_Current":{u:-360,c:["CA"]},"America/Tegucigalpa":{u:-360,c:["HN"]},"America/Thule":{u:-240,d:-180,c:["GL"]},"America/Thunder_Bay":{a:"America/Toronto",c:["CA"],r:1},"America/Tijuana":{u:-480,d:-420,c:["MX"]},"America/Toronto":{u:-300,d:-240,c:["CA","BS"]},"America/Tortola":{a:"America/Puerto_Rico",c:["VG"],r:1},"America/Vancouver":{u:-480,d:-420,c:["CA"]},"America/Virgin":{a:"America/Puerto_Rico",c:["VI"],r:1},"America/Whitehorse":{u:-420,c:["CA"]},"America/Winnipeg":{u:-360,d:-300,c:["CA"]},"America/Yakutat":{u:-540,d:-480,c:["US"]},"America/Yellowknife":{a:"America/Edmonton",r:1},"Antarctica/Casey":{u:660,c:["AQ"]},"Antarctica/Davis":{u:420,c:["AQ"]},"Antarctica/DumontDUrville":{a:"Pacific/Port_Moresby",c:["AQ"],r:1},"Antarctica/Macquarie":{u:600,d:660,c:["AU"]},"Antarctica/Mawson":{u:300,c:["AQ"]},"Antarctica/McMurdo":{a:"Pacific/Auckland",c:["AQ"],r:1},"Antarctica/Palmer":{u:-180,c:["AQ"]},"Antarctica/Rothera":{u:-180,c:["AQ"]},"Antarctica/South_Pole":{a:"Pacific/Auckland",c:["AQ"],r:1},"Antarctica/Syowa":{a:"Asia/Riyadh",c:["AQ"],r:1},"Antarctica/Troll":{u:0,d:120,c:["AQ"]},"Antarctica/Vostok":{a:"Asia/Urumqi",c:["AQ"],r:1},"Arctic/Longyearbyen":{a:"Europe/Berlin",c:["SJ"],r:1},"Asia/Aden":{a:"Asia/Riyadh",c:["YE"],r:1},"Asia/Almaty":{u:360,c:["KZ"]},"Asia/Amman":{u:180,c:["JO"]},"Asia/Anadyr":{u:720,c:["RU"]},"Asia/Aqtau":{u:300,c:["KZ"]},"Asia/Aqtobe":{u:300,c:["KZ"]},"Asia/Ashgabat":{u:300,c:["TM"]},"Asia/Ashkhabad":{a:"Asia/Ashgabat",r:1},"Asia/Atyrau":{u:300,c:["KZ"]},"Asia/Baghdad":{u:180,c:["IQ"]},"Asia/Bahrain":{a:"Asia/Qatar",c:["BH"],r:1},"Asia/Baku":{u:240,c:["AZ"]},"Asia/Bangkok":{u:420,c:["TH","CX","KH","LA","VN"]},"Asia/Barnaul":{u:420,c:["RU"]},"Asia/Beirut":{u:120,d:180,c:["LB"]},"Asia/Bishkek":{u:360,c:["KG"]},"Asia/Brunei":{a:"Asia/Kuching",c:["BN"],r:1},"Asia/Calcutta":{a:"Asia/Kolkata",r:1},"Asia/Chita":{u:540,c:["RU"]},"Asia/Choibalsan":{u:480,c:["MN"]},"Asia/Chongqing":{a:"Asia/Shanghai",r:1},"Asia/Chungking":{a:"Asia/Shanghai",r:1},"Asia/Colombo":{u:330,c:["LK"]},"Asia/Dacca":{a:"Asia/Dhaka",r:1},"Asia/Damascus":{u:180,c:["SY"]},"Asia/Dhaka":{u:360,c:["BD"]},"Asia/Dili":{u:540,c:["TL"]},"Asia/Dubai":{u:240,c:["AE","OM","RE","SC","TF"]},"Asia/Dushanbe":{u:300,c:["TJ"]},"Asia/Famagusta":{u:120,d:180,c:["CY"]},"Asia/Gaza":{u:120,d:180,c:["PS"]},"Asia/Harbin":{a:"Asia/Shanghai",r:1},"Asia/Hebron":{u:120,d:180,c:["PS"]},"Asia/Ho_Chi_Minh":{u:420,c:["VN"]},"Asia/Hong_Kong":{u:480,c:["HK"]},"Asia/Hovd":{u:420,c:["MN"]},"Asia/Irkutsk":{u:480,c:["RU"]},"Asia/Istanbul":{a:"Europe/Istanbul",r:1},"Asia/Jakarta":{u:420,c:["ID"]},"Asia/Jayapura":{u:540,c:["ID"]},"Asia/Jerusalem":{u:120,d:180,c:["IL"]},"Asia/Kabul":{u:270,c:["AF"]},"Asia/Kamchatka":{u:720,c:["RU"]},"Asia/Karachi":{u:300,c:["PK"]},"Asia/Kashgar":{a:"Asia/Urumqi",c:["CN"],r:1},"Asia/Kathmandu":{u:345,c:["NP"]},"Asia/Katmandu":{a:"Asia/Kathmandu",r:1},"Asia/Khandyga":{u:540,c:["RU"]},"Asia/Kolkata":{u:330,c:["IN"]},"Asia/Krasnoyarsk":{u:420,c:["RU"]},"Asia/Kuala_Lumpur":{a:"Asia/Singapore",c:["MY"],r:1},"Asia/Kuching":{u:480,c:["MY","BN"]},"Asia/Kuwait":{a:"Asia/Riyadh",c:["KW"],r:1},"Asia/Macao":{a:"Asia/Macau",r:1},"Asia/Macau":{u:480,c:["MO"]},"Asia/Magadan":{u:660,c:["RU"]},"Asia/Makassar":{u:480,c:["ID"]},"Asia/Manila":{u:480,c:["PH"]},"Asia/Muscat":{a:"Asia/Dubai",c:["OM"],r:1},"Asia/Nicosia":{u:120,d:180,c:["CY"]},"Asia/Novokuznetsk":{u:420,c:["RU"]},"Asia/Novosibirsk":{u:420,c:["RU"]},"Asia/Omsk":{u:360,c:["RU"]},"Asia/Oral":{u:300,c:["KZ"]},"Asia/Phnom_Penh":{a:"Asia/Bangkok",c:["KH"],r:1},"Asia/Pontianak":{u:420,c:["ID"]},"Asia/Pyongyang":{u:540,c:["KP"]},"Asia/Qatar":{u:180,c:["QA","BH"]},"Asia/Qostanay":{u:360,c:["KZ"]},"Asia/Qyzylorda":{u:300,c:["KZ"]},"Asia/Rangoon":{a:"Asia/Yangon",c:["MM"],r:1},"Asia/Riyadh":{u:180,c:["SA","AQ","KW","YE"]},"Asia/Saigon":{a:"Asia/Ho_Chi_Minh",r:1},"Asia/Sakhalin":{u:660,c:["RU"]},"Asia/Samarkand":{u:300,c:["UZ"]},"Asia/Seoul":{u:540,c:["KR"]},"Asia/Shanghai":{u:480,c:["CN"]},"Asia/Singapore":{u:480,c:["SG","MY"]},"Asia/Srednekolymsk":{u:660,c:["RU"]},"Asia/Taipei":{u:480,c:["TW"]},"Asia/Tashkent":{u:300,c:["UZ"]},"Asia/Tbilisi":{u:240,c:["GE"]},"Asia/Tehran":{u:210,c:["IR"]},"Asia/Tel_Aviv":{a:"Asia/Jerusalem",r:1},"Asia/Thimbu":{a:"Asia/Thimphu",r:1},"Asia/Thimphu":{u:360,c:["BT"]},"Asia/Tokyo":{u:540,c:["JP"]},"Asia/Tomsk":{u:420,c:["RU"]},"Asia/Ujung_Pandang":{a:"Asia/Makassar",r:1},"Asia/Ulaanbaatar":{u:480,c:["MN"]},"Asia/Ulan_Bator":{a:"Asia/Ulaanbaatar",r:1},"Asia/Urumqi":{u:360,c:["CN","AQ"]},"Asia/Ust-Nera":{u:600,c:["RU"]},"Asia/Vientiane":{a:"Asia/Bangkok",c:["LA"],r:1},"Asia/Vladivostok":{u:600,c:["RU"]},"Asia/Yakutsk":{u:540,c:["RU"]},"Asia/Yangon":{u:390,c:["MM","CC"]},"Asia/Yekaterinburg":{u:300,c:["RU"]},"Asia/Yerevan":{u:240,c:["AM"]},"Atlantic/Azores":{u:-60,d:0,c:["PT"]},"Atlantic/Bermuda":{u:-240,d:-180,c:["BM"]},"Atlantic/Canary":{u:0,d:60,c:["ES"]},"Atlantic/Cape_Verde":{u:-60,c:["CV"]},"Atlantic/Faeroe":{a:"Atlantic/Faroe",r:1},"Atlantic/Faroe":{u:0,d:60,c:["FO"]},"Atlantic/Jan_Mayen":{a:"Europe/Berlin",c:["SJ"],r:1},"Atlantic/Madeira":{u:0,d:60,c:["PT"]},"Atlantic/Reykjavik":{a:"Africa/Abidjan",c:["IS"],r:1},"Atlantic/South_Georgia":{u:-120,c:["GS"]},"Atlantic/St_Helena":{a:"Africa/Abidjan",c:["SH"],r:1},"Atlantic/Stanley":{u:-180,c:["FK"]},"Australia/ACT":{a:"Australia/Sydney",r:1},"Australia/Adelaide":{u:570,d:630,c:["AU"]},"Australia/Brisbane":{u:600,c:["AU"]},"Australia/Broken_Hill":{u:570,d:630,c:["AU"]},"Australia/Canberra":{a:"Australia/Sydney",r:1},"Australia/Currie":{a:"Australia/Hobart",r:1},"Australia/Darwin":{u:570,c:["AU"]},"Australia/Eucla":{u:525,c:["AU"]},"Australia/Hobart":{u:600,d:660,c:["AU"]},"Australia/LHI":{a:"Australia/Lord_Howe",r:1},"Australia/Lindeman":{u:600,c:["AU"]},"Australia/Lord_Howe":{u:630,d:660,c:["AU"]},"Australia/Melbourne":{u:600,d:660,c:["AU"]},"Australia/NSW":{a:"Australia/Sydney",r:1},"Australia/North":{a:"Australia/Darwin",r:1},"Australia/Perth":{u:480,c:["AU"]},"Australia/Queensland":{a:"Australia/Brisbane",r:1},"Australia/South":{a:"Australia/Adelaide",r:1},"Australia/Sydney":{u:600,d:660,c:["AU"]},"Australia/Tasmania":{a:"Australia/Hobart",r:1},"Australia/Victoria":{a:"Australia/Melbourne",r:1},"Australia/West":{a:"Australia/Perth",r:1},"Australia/Yancowinna":{a:"Australia/Broken_Hill",r:1},"Brazil/Acre":{a:"America/Rio_Branco",r:1},"Brazil/DeNoronha":{a:"America/Noronha",r:1},"Brazil/East":{a:"America/Sao_Paulo",r:1},"Brazil/West":{a:"America/Manaus",r:1},CET:{u:60,d:120},CST6CDT:{u:-360,d:-300},"Canada/Atlantic":{a:"America/Halifax",r:1},"Canada/Central":{a:"America/Winnipeg",r:1},"Canada/Eastern":{a:"America/Toronto",c:["CA"],r:1},"Canada/Mountain":{a:"America/Edmonton",r:1},"Canada/Newfoundland":{a:"America/St_Johns",r:1},"Canada/Pacific":{a:"America/Vancouver",r:1},"Canada/Saskatchewan":{a:"America/Regina",r:1},"Canada/Yukon":{a:"America/Whitehorse",r:1},"Chile/Continental":{a:"America/Santiago",r:1},"Chile/EasterIsland":{a:"Pacific/Easter",r:1},Cuba:{a:"America/Havana",r:1},EET:{u:120,d:180},EST:{u:-300},EST5EDT:{u:-300,d:-240},Egypt:{a:"Africa/Cairo",r:1},Eire:{a:"Europe/Dublin",r:1},"Etc/GMT":{u:0},"Etc/GMT+0":{a:"Etc/GMT",r:1},"Etc/GMT+1":{u:-60},"Etc/GMT+10":{u:-600},"Etc/GMT+11":{u:-660},"Etc/GMT+12":{u:-720},"Etc/GMT+2":{u:-120},"Etc/GMT+3":{u:-180},"Etc/GMT+4":{u:-240},"Etc/GMT+5":{u:-300},"Etc/GMT+6":{u:-360},"Etc/GMT+7":{u:-420},"Etc/GMT+8":{u:-480},"Etc/GMT+9":{u:-540},"Etc/GMT-0":{a:"Etc/GMT",r:1},"Etc/GMT-1":{u:60},"Etc/GMT-10":{u:600},"Etc/GMT-11":{u:660},"Etc/GMT-12":{u:720},"Etc/GMT-13":{u:780},"Etc/GMT-14":{u:840},"Etc/GMT-2":{u:120},"Etc/GMT-3":{u:180},"Etc/GMT-4":{u:240},"Etc/GMT-5":{u:300},"Etc/GMT-6":{u:360},"Etc/GMT-7":{u:420},"Etc/GMT-8":{u:480},"Etc/GMT-9":{u:540},"Etc/GMT0":{a:"Etc/GMT",r:1},"Etc/Greenwich":{a:"Etc/GMT",r:1},"Etc/UCT":{a:"Etc/UTC",r:1},"Etc/UTC":{u:0},"Etc/Universal":{a:"Etc/UTC",r:1},"Etc/Zulu":{a:"Etc/UTC",r:1},"Europe/Amsterdam":{a:"Europe/Brussels",c:["NL"],r:1},"Europe/Andorra":{u:60,d:120,c:["AD"]},"Europe/Astrakhan":{u:240,c:["RU"]},"Europe/Athens":{u:120,d:180,c:["GR"]},"Europe/Belfast":{a:"Europe/London",c:["GB"],r:1},"Europe/Belgrade":{u:60,d:120,c:["RS","BA","HR","ME","MK","SI"]},"Europe/Berlin":{u:60,d:120,c:["DE","DK","NO","SE","SJ"]},"Europe/Bratislava":{a:"Europe/Prague",c:["SK"],r:1},"Europe/Brussels":{u:60,d:120,c:["BE","LU","NL"]},"Europe/Bucharest":{u:120,d:180,c:["RO"]},"Europe/Budapest":{u:60,d:120,c:["HU"]},"Europe/Busingen":{a:"Europe/Zurich",c:["DE"],r:1},"Europe/Chisinau":{u:120,d:180,c:["MD"]},"Europe/Copenhagen":{a:"Europe/Berlin",c:["DK"],r:1},"Europe/Dublin":{u:60,d:0,c:["IE"]},"Europe/Gibraltar":{u:60,d:120,c:["GI"]},"Europe/Guernsey":{a:"Europe/London",c:["GG"],r:1},"Europe/Helsinki":{u:120,d:180,c:["FI","AX"]},"Europe/Isle_of_Man":{a:"Europe/London",c:["IM"],r:1},"Europe/Istanbul":{u:180,c:["TR"]},"Europe/Jersey":{a:"Europe/London",c:["JE"],r:1},"Europe/Kaliningrad":{u:120,c:["RU"]},"Europe/Kiev":{a:"Europe/Kyiv",r:1},"Europe/Kirov":{u:180,c:["RU"]}
vendor: 1,086 bytes, line 9
9,"Europe/Kyiv":{u:120,d:180,c:["UA"]},"Europe/Lisbon":{u:0,d:60,c:["PT"]},"Europe/Ljubljana":{a:"Europe/Belgrade",c:["SI"],r:1},"Europe/London":{u:0,d:60,c:["GB","GG","IM","JE"]},"Europe/Luxembourg":{a:"Europe/Brussels",c:["LU"],r:1},"Europe/Madrid":{u:60,d:120,c:["ES"]},"Europe/Malta":{u:60,d:120,c:["MT"]},"Europe/Mariehamn":{a:"Europe/Helsinki",c:["AX"],r:1},"Europe/Minsk":{u:180,c:["BY"]},"Europe/Monaco":{a:"Europe/Paris",c:["MC"],r:1},"Europe/Moscow":{u:180,c:["RU"]},"Europe/Nicosia":{a:"Asia/Nicosia",r:1},"Europe/Oslo":{a:"Europe/Berlin",c:["NO"],r:1},"Europe/Paris":{u:60,d:120,c:["FR","MC"]},"Europe/Podgorica":{a:"Europe/Belgrade",c:["ME"],r:1},"Europe/Prague":{u:60,d:120,c:["CZ","SK"]},"Europe/Riga":{u:120,d:180,c:["LV"]},"Europe/Rome":{u:60,d:120,c:["IT","SM","VA"]},"Europe/Samara":{u:240,c:["RU"]},"Europe/San_Marino":{a:"Europe/Rome",c:["SM"],r:1},"Europe/Sarajevo":{a:"Europe/Belgrade",c:["BA"],r:1},"Europe/Saratov":{u:240,c:["RU"]},"Europe/Simferopol":{u:180,c:["RU","UA"]},"Europe/Skopje":{a:"Europe/Belgrade",c:["MK"],r:1},"Europe/Sofia":{u:120,d:180,c:["BG"]}
vendor: 4,720 bytes, line 9
9,"Europe/Stockholm":{a:"Europe/Berlin",c:["SE"],r:1},"Europe/Tallinn":{u:120,d:180,c:["EE"]},"Europe/Tirane":{u:60,d:120,c:["AL"]},"Europe/Tiraspol":{a:"Europe/Chisinau",r:1},"Europe/Ulyanovsk":{u:240,c:["RU"]},"Europe/Uzhgorod":{a:"Europe/Kyiv",r:1},"Europe/Vaduz":{a:"Europe/Zurich",c:["LI"],r:1},"Europe/Vatican":{a:"Europe/Rome",c:["VA"],r:1},"Europe/Vienna":{u:60,d:120,c:["AT"]},"Europe/Vilnius":{u:120,d:180,c:["LT"]},"Europe/Volgograd":{u:180,c:["RU"]},"Europe/Warsaw":{u:60,d:120,c:["PL"]},"Europe/Zagreb":{a:"Europe/Belgrade",c:["HR"],r:1},"Europe/Zaporozhye":{a:"Europe/Kyiv",r:1},"Europe/Zurich":{u:60,d:120,c:["CH","DE","LI"]},Factory:{u:0},GB:{a:"Europe/London",c:["GB"],r:1},"GB-Eire":{a:"Europe/London",c:["GB"],r:1},GMT:{a:"Etc/GMT",r:1},"GMT+0":{a:"Etc/GMT",r:1},"GMT-0":{a:"Etc/GMT",r:1},GMT0:{a:"Etc/GMT",r:1},Greenwich:{a:"Etc/GMT",r:1},HST:{u:-600},Hongkong:{a:"Asia/Hong_Kong",r:1},Iceland:{a:"Africa/Abidjan",c:["IS"],r:1},"Indian/Antananarivo":{a:"Africa/Nairobi",c:["MG"],r:1},"Indian/Chagos":{u:360,c:["IO"]},"Indian/Christmas":{a:"Asia/Bangkok",c:["CX"],r:1},"Indian/Cocos":{a:"Asia/Yangon",c:["CC"],r:1},"Indian/Comoro":{a:"Africa/Nairobi",c:["KM"],r:1},"Indian/Kerguelen":{a:"Indian/Maldives",c:["TF"],r:1},"Indian/Mahe":{a:"Asia/Dubai",c:["SC"],r:1},"Indian/Maldives":{u:300,c:["MV","TF"]},"Indian/Mauritius":{u:240,c:["MU"]},"Indian/Mayotte":{a:"Africa/Nairobi",c:["YT"],r:1},"Indian/Reunion":{a:"Asia/Dubai",c:["RE"],r:1},Iran:{a:"Asia/Tehran",r:1},Israel:{a:"Asia/Jerusalem",r:1},Jamaica:{a:"America/Jamaica",r:1},Japan:{a:"Asia/Tokyo",r:1},Kwajalein:{a:"Pacific/Kwajalein",r:1},Libya:{a:"Africa/Tripoli",r:1},MET:{u:60,d:120},MST:{u:-420},MST7MDT:{u:-420,d:-360},"Mexico/BajaNorte":{a:"America/Tijuana",r:1},"Mexico/BajaSur":{a:"America/Mazatlan",r:1},"Mexico/General":{a:"America/Mexico_City",r:1},NZ:{a:"Pacific/Auckland",c:["NZ"],r:1},"NZ-CHAT":{a:"Pacific/Chatham",r:1},Navajo:{a:"America/Denver",r:1},PRC:{a:"Asia/Shanghai",r:1},PST8PDT:{u:-480,d:-420},"Pacific/Apia":{u:780,c:["WS"]},"Pacific/Auckland":{u:720,d:780,c:["NZ","AQ"]},"Pacific/Bougainville":{u:660,c:["PG"]},"Pacific/Chatham":{u:765,d:825,c:["NZ"]},"Pacific/Chuuk":{a:"Pacific/Port_Moresby",c:["FM"],r:1},"Pacific/Easter":{u:-360,d:-300,c:["CL"]},"Pacific/Efate":{u:660,c:["VU"]},"Pacific/Enderbury":{a:"Pacific/Kanton",r:1},"Pacific/Fakaofo":{u:780,c:["TK"]},"Pacific/Fiji":{u:720,c:["FJ"]},"Pacific/Funafuti":{a:"Pacific/Tarawa",c:["TV"],r:1},"Pacific/Galapagos":{u:-360,c:["EC"]},"Pacific/Gambier":{u:-540,c:["PF"]},"Pacific/Guadalcanal":{u:660,c:["SB","FM"]},"Pacific/Guam":{u:600,c:["GU","MP"]},"Pacific/Honolulu":{u:-600,c:["US"]},"Pacific/Johnston":{a:"Pacific/Honolulu",r:1},"Pacific/Kanton":{u:780,c:["KI"]},"Pacific/Kiritimati":{u:840,c:["KI"]},"Pacific/Kosrae":{u:660,c:["FM"]},"Pacific/Kwajalein":{u:720,c:["MH"]},"Pacific/Majuro":{a:"Pacific/Tarawa",c:["MH"],r:1},"Pacific/Marquesas":{u:-570,c:["PF"]},"Pacific/Midway":{a:"Pacific/Pago_Pago",c:["UM"],r:1},"Pacific/Nauru":{u:720,c:["NR"]},"Pacific/Niue":{u:-660,c:["NU"]},"Pacific/Norfolk":{u:660,d:720,c:["NF"]},"Pacific/Noumea":{u:660,c:["NC"]},"Pacific/Pago_Pago":{u:-660,c:["AS","UM"]},"Pacific/Palau":{u:540,c:["PW"]},"Pacific/Pitcairn":{u:-480,c:["PN"]},"Pacific/Pohnpei":{a:"Pacific/Guadalcanal",c:["FM"],r:1},"Pacific/Ponape":{a:"Pacific/Guadalcanal",c:["FM"],r:1},"Pacific/Port_Moresby":{u:600,c:["PG","AQ","FM"]},"Pacific/Rarotonga":{u:-600,c:["CK"]},"Pacific/Saipan":{a:"Pacific/Guam",c:["MP"],r:1},"Pacific/Samoa":{a:"Pacific/Pago_Pago",c:["AS"],r:1},"Pacific/Tahiti":{u:-600,c:["PF"]},"Pacific/Tarawa":{u:720,c:["KI","MH","TV","UM","WF"]},"Pacific/Tongatapu":{u:780,c:["TO"]},"Pacific/Truk":{a:"Pacific/Port_Moresby",c:["FM"],r:1},"Pacific/Wake":{a:"Pacific/Tarawa",c:["UM"],r:1},"Pacific/Wallis":{a:"Pacific/Tarawa",c:["WF"],r:1},"Pacific/Yap":{a:"Pacific/Port_Moresby",c:["FM"],r:1},Poland:{a:"Europe/Warsaw",r:1},Portugal:{a:"Europe/Lisbon",r:1},ROC:{a:"Asia/Taipei",r:1},ROK:{a:"Asia/Seoul",r:1},Singapore:{a:"Asia/Singapore",c:["SG"],r:1},Turkey:{a:"Europe/Istanbul",r:1},UCT:{a:"Etc/UTC",r:1},"US/Alaska":{a:"America/Anchorage",r:1},"US/Aleutian":{a:"America/Adak",r:1},"US/Arizona":{a:"America/Phoenix",c:["US"],r:1},"US/Central":{a:"America/Chicago",r:1},"US/East-Indiana":{a:"America/Indiana/Indianapolis",r:1},"US/Eastern":{a:"America/New_York",r:1},"US/Hawaii":{a:"Pacific/Honolulu",r:1},"US/Indiana-Starke":{a:"America/Indiana/Knox",r:1},"US/Michigan":{a:"America/Detroit",r:1},"US/Mountain":{a:"America/Denver",r:1},"US/Pacific":{a:"America/Los_Angeles",r:1},"US/Samoa":{a:"Pacific/Pago_Pago",c:["AS"],r:1},UTC:{a:"Etc/UTC",r:1},Universal:{a:"Etc/UTC",r:1},"W-SU":{a:"Europe/Moscow",r:1},WET:{u:0,d:60},Zulu:{a:"Etc/UTC",r:1}},
9Ku={countries:B1,timezones:C1},Fa;function O1(r,o){var i=r.countries[o];if(!i)return null;var u=L1(r)[o]||{};return{id:o,name:i,timezones:u.current||[],allTimezones:u.all||[]}}function L1(r){return Fa||(Fa=N1(r)),Fa}function N1(r){return Object.keys(r.timezones).reduce(function(o,i){var u=r.timezones[i],c=u.c,p=u.a,d=r.timezones[p]||{},a=c||d.c;return a&&a.forEach(function(h){o[h]||Object.assign(o,gp({},h,{current:[],all:[]})),u.r===void 0&&o[h].current.push(i),o[h].all.push(i)}),o},{})}function D1(r,o){var i=r.timezones[o];if(!i)return null;var u=i.a,c=u===void 0?null:u,p=c?r.timezones[c]:{},d=Go(Go({},p),r.timezones[o]),a=d.c||[],h=d.u,y=Number.isInteger(d.d)?d.d:h,g={name:o,countries:a,utcOffset:h,utcOffsetStr:gc(h),dstOffset:y,dstOffsetStr:gc(y),aliasOf:c};return i.r&&(g.deprecated=!0),g}function gc(r){var o=Math.floor(Math.abs(r)/60),i=r%60,u=r<0?"-":"+";return"".concat(u).concat(yc(o),":").concat(yc(i))}function yc(r){var o=Math.abs(r),i=o<10?"0":"";return"".concat(i).concat(o)}var x1=["allTimezones"];Object.keys(Ku.timezones).length;var qs={},Ti={};function U1(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return qs[r]||k1(O1(Ku,r)),j1(qs[r],o)}function k1(r){r&&(qs[r.id]=r)}function P1(r){return Ti[r]||M1(D1(Ku,r)),Ti[r]?Go({},Ti[r]):null}function M1(r){r&&(Ti[r.name]=r,Object.keys(r).length)}function $1(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=P1(r)||{},u=i.countries||[];return u.map(function(c){return U1(c,o)})}function F1(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=$1(r,o),u=_1(i,1),c=u[0];return c||null}function j1(r,o){if(!r)return null;var i=o||{},u=i.deprecated;r.allTimezones;var c=E1(r,x1),p=u?r.allTimezones:r.timezones;return Go(Go({},c),{},{timezones:p})}function ii(r){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var u in i)r[u]=i[u]}return r}var G1={read:function(r){return r[0]==='"'&&(r=r.slice(1,-1)),r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(r){return encodeURIComponent(r).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Vs(r,o){function i(c,p,d){if(!(typeof document>"u")){d=ii({},o,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),c=encodeURIComponent(c).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var h in d)d[h]&&(a+="; "+h,d[h]!==!0&&(a+="="+d[h].split(";")[0]));return document.cookie=c+"="+r.write(p,c)+a}}function u(c){if(!(typeof document>"u"||arguments.length&&!c)){for(var p=document.cookie?document.cookie.split("; "):[],d={},a=0;a<p.length;a++){var h=p[a].split("="),y=h.slice(1).join("=");try{var g=decodeURIComponent(h[0]);if(d[g]=r.read(y,g),c===g)break}catch{}}return c?d[c]:d}}return Object.create({set:i,get:u,remove:function(c,p){i(c,"",ii({},p,{expires:-1}))},withAttributes:function(c){return Vs(this.converter,ii({},this.attributes,c))},withConverter:function(c){return Vs(ii({},this.converter,c),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(r)}})}var q1=Vs(G1,{path:"/"});const bc="userid_geoip_country_code",V1="RU";let H1=class{get(o){return(typeof window>"u"?this.getCookieFromServer(o):this.getCookieFromClient())||V1}getCookieFromServer(o){return o?this.parseCookieString(o)[bc]:""}parseCookieString(o){return o.split(";").map(i=>i.split("=")).reduce((i,u)=>{var c,p;const d=(c=u[0])==null?void 0:c.trim(),a=(p=u[1])==null?void 0:p.trim();return!d||!a?i:{...i,[decodeURIComponent(d)]:decodeURIComponent(a)}},{})}getCookieFromClient(){return q1.get(bc)}};const Qu=new H1,z1=["RU","BY","UA","KZ","AZ","UZ","TM","GE","TJ","AM","KG","MN"],W1="userid_geoip_region";let Y1=class extends fo{constructor(){super(...arguments),this.isAuthorized=!1}setUserData({isAuthorized:o}){this.isAuthorized=o}load(){return{isRegistered:this.isAuthorized,vpnCountryCode:this.getVpnCountryCode(),geoRegion:this.getRegionCookie()}}isUsingVpn(o){const i=Qu.get();return i?o.id!==i:!1}getVpnCountryCode(){const o=Intl.DateTimeFormat().resolvedOptions().timeZone,i=o?F1(o):void 0;return!i||!this.isUsingVpn(i)||!z1.includes(i.id)?"":i.id}getRegionCookie(){return Ff.get(W1)||""}};var K1=(r=>(r.CANCELLED="CANCELLED",r.ENDED="ENDED",r.LIVE="LIVE",r.NOT_STARTED="NOT_STARTED",r.POSTPONED="POSTPONED",r.UNKNOWN="UNKNOWN",r))(K1||{}),yp=(r=>(r.ABANDONED="ABANDONED",r.CANCELED="CANCELED",r.CANCELLED="CANCELLED",r.CLOSED="CLOSED",r.DELAYED="DELAYED",r.ENDED="ENDED",r.LIVE="LIVE",r.NOT_STARTED="NOT_STARTED",r.POSTPONED="POSTPONED",r.START_DELAYED="START_DELAYED",r.UNDEFINED="UNDEFINED",r))(yp||{}),bp=(r=>(r.AWARDED="AWARDED",r.BYE="BYE",r.CANCELLED="CANCELLED",r.FIXTURE="FIXTURE",r.PLAYED="PLAYED",r.PLAYING="PLAYING",r.POSTPONED="POSTPONED",r.RETIRED="RETIRED",r.SUSPENDED="SUSPENDED",r.UNSPECIFIED="UNSPECIFIED",r.WALKOVER="WALKOVER",r))(bp||{});const ja={TennisMatchStatus:bp,CommonMatchStatus:yp};let Q1=class extends fo{constructor(){super(...arguments),this.isMatchEnded=!0,this.tourName=""}setMatchData({status:o=ja.CommonMatchStatus.UNDEFINED,tourName:i=""}){const u=o===ja.CommonMatchStatus.CLOSED,c=o===ja.TennisMatchStatus.PLAYED;this.isMatchEnded=u||c,this.tourName=i}load(){return{isMatchEnded:this.isMatchEnded,tourName:this.tourName}}},J1=class{constructor(o=[]){this.targetings=o}async getAllTargetings(){return await this.targetings.reduce(async(o,i)=>{const u=await o,c=await i.load();return Object.assign(u,c)},Promise.resolve({}))}},ai=null,si=null,wc=null,vc=null,Ec=null,ui=null,li=null,ci=null,di=null,fi=null;function wp(){if(ai&&ci&&di&&fi)return{adTargetingsFacade:ai,setPageDataTargetings:ci,setMatchDataTargetings:di,setUserTargetings:fi};si=new Y1,wc=new h1,vc=new b1,Ec=new Zw,ui=new mb,li=new Q1,ci=ui.setPageData.bind(ui),di=li.setMatchData.bind(li),fi=si.setUserData.bind(si);const r=[si,wc,vc,Ec,ui,li];return ai=new J1(r),{adTargetingsFacade:ai,setPageDataTargetings:ci,setMatchDataTargetings:di,setUserTargetings:fi}}const{setPageDataTargetings:o4,setMatchDataTargetings:i4,setUserTargetings:a4}=wp(),vp="ad-sports",Z1="message",X1="DFPICMessage",ev="CatfishMessage",_c="AD_CONFIGS",Ac="AD_PARAMS",Ic=3600*1e3;let tv=class{constructor(o){this.adDisableRules=o}getIsAdDisabled(){return this.adDisableRules.some(o=>o.isDisabled)}},Ep=class{}
9,rv=class extends Ep{constructor(o){super(),this.extProp=o}get isDisabled(){return this.extProp}},nv=class{constructor(){this.flags={}}initFlagsInBrowser(o){this.flags=o}isFlagEnabled(o){var i;return(i=this.flags[o])!=null?i:!1}getAllFeaturesFlags(){return this.flags}};const ov=new nv;let iv=class extends Ep{get isDisabled(){return ov.isFlagEnabled("ad_disabled")}};class Pe extends Error{constructor(o){super(`[AdBase] ${o}`)}}const av="[AdBlock]";let sv=class extends Error{constructor(o){super(`${av} ${o}`)}},uv=class{constructor(o,i){this._presetType=o,this.configs=this.getConfigs(i)}update(o){this.configs=this.getConfigs(o)}get(o){return this.configs.get(o)||null}getConfigs(o){var i;const u=new Map(o.rulesPresets.map(p=>[p.id,p.rule])),c=new Map;for(const{id:p,data:d}of o.configs){if(!((i=d.byRules)!=null&&i.length)){c.set(p,d);continue}const a=d.byRules.map(h=>{if(h.rule.type!==this._presetType)return h;const y=h.rule.params;if(!y)throw new Pe(`Отсутствуют параметры для правила пресетов для конфига '${p}'.`);if(!y.id)throw new Pe(`Отсутствует id пресета для конфига '${p}'.`);const g=u.get(y.id);if(!g)throw new Pe(`Отсутствует пресет '${y.id}'.`);return{...h,rule:g}});c.set(p,{...d,byRules:a})}return c}},lv=class{constructor(o){this.value=o}execute(){return this.value}},tr=class{constructor(o){this.type=o}},cv=class extends tr{create(o){return new lv(!!o.value)}},dv=class{constructor(o){if(this.operands=o,!(o!=null&&o.length))throw new Pe("Отсутствует список операндов для оператора AND конфига!")}execute(o={}){for(const i of this.operands)if(!i.execute(o))return!1;return!0}},fv=class extends tr{constructor(o,i){if(super(o),this.factory=i,!i)throw new Pe("Отсутствует фабрика для создания правил!")}create(o){var i;if(!((i=o.operands)!=null&&i.length))throw new Pe("Отстутствуют операнды при создании правила AND!");return new dv(o.operands.map(u=>this.factory.create(u)))}},pv=class{constructor(o){this.targetEntrySource=o;const i=mp();if(this.currentEntrySource=i.getEntrySource(),!this.currentEntrySource)throw new Pe("Отсутствует значение текущей точки входа.");if(!this.targetEntrySource)throw new Pe("Отсутствует значение точки входа для правила конфига.")}execute(){return this.currentEntrySource===this.targetEntrySource}},hv=class extends tr{constructor(o){super(o)}create(o){if(!o)throw new Pe("Отстутствуют параметры при создании правила entry_source!");return new pv(o.targetEntrySource)}},mv=class{constructor(o){if(this.targetGeo=o,this.currentGeo=Qu.get(),!this.targetGeo)throw new Pe("Отсутствует значение гео для правила конфига.")}execute(){return this.currentGeo===this.targetGeo}},gv=class extends tr{constructor(o){super(o)}create(o){if(!o)throw new Pe("Отсутствуют параметры при создании правила GEO!");return new mv(o.targetGeo)}},yv=class{constructor(o,i){if(this.currentLocation=o,this.targetLocation=i,!i)throw new Pe("Отсутствует значение URL для правила конфига.")}execute(){return this.currentLocation===this.targetLocation}},bv=class extends tr{constructor(o){super(o);const{location:i}=pa();this.currentLocation=i.toString()}create(o){if(!o)throw new Pe("Отсутствуют параметры при создании правила LOCATION!");return new yv(this.currentLocation,o.targetLocation)}},wv=class{constructor(o){if(this._operand=o,!o)throw new Pe("Отсутствует операнд для оператора NOT конфига.")}execute(o={}){return!this._operand.execute(o)}},vv=class extends tr{constructor(o,i){if(super(o),this._factory=i,!i)throw new Pe("Отсутствует фабрика для создания правил.")}create(o){if(!o.operand)throw new Pe("Отстутствует операнд при создании правила NOT.");return new wv(this._factory.create(o.operand))}},Ev=class{constructor(o){if(this.operands=o,!(o!=null&&o.length))throw new Pe("Отсутствует список операндов для оператора OR конфига.")}execute(o={}){for(const i of this.operands)if(i.execute(o))return!0;return!1}},_v=class extends tr{constructor(o,i){if(super(o),this.factory=i,!i)throw new Pe("Отсутствует фабрика для создания правил.")}create(o){var i;if(!((i=o.operands)!=null&&i.length))throw new Pe("Отстутствуют операнды при создании правила OR.");return new Ev(o.operands.map(u=>this.factory.create(u)))}},Av=class{constructor(o,i){if(this.currentSite=o,this.targetSite=i,!o)throw new Pe("Отсутствует значение текущего сайта.");if(!i)throw new Pe("Отсутствует значение сайта для правила конфига.")}execute(){return this.currentSite===this.targetSite}},Iv=class extends tr{constructor(o){super(o);const{currentSite:i}=pa();if(!i)throw new Pe("Отсутствует значение текущего сайта.");this.currentSite=i}create(o){if(!o)throw new Pe("Отсутствуют параметры при создании правила сайта!");return new Av(this.currentSite,o.targetSite)}},Tv=class{constructor(o,i){if(this.targetSiteTheme=o,this.canSwitchSiteTheme=i,!o)throw new Pe("Отсутствует значение темы сайта для правила конфига.")}execute(o={}){return this.canSwitchSiteTheme&&o.siteTheme===this.targetSiteTheme}},Sv=class extends tr{constructor(o,i){super(o),this.canSwitchSiteTheme=i}create(o){if(!o)throw new Pe("Отсутствуют параметры при создании правила темы сайта!");return new Tv(o.targetSiteTheme,this.canSwitchSiteTheme)}};var _p={},Bn={},Rv=qi&&qi.__extends||(function(){var r=function(o,i){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var p in c)Object.prototype.hasOwnProperty.call(c,p)&&(u[p]=c[p])},r(o,i)};return function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");r(o,i);function u(){this.constructor=o}
9o.prototype=i===null?Object.create(i):(u.prototype=i.prototype,new u)}})();Object.defineProperty(Bn,"__esModule",{value:!0});Bn.RandomSelector=Bn.RandomSelectorError=void 0;var Hs=(function(r){Rv(o,r);function o(i){var u=r.call(this,i)||this;return u.msg=i,u}return o})(Error);Bn.RandomSelectorError=Hs;var Ap=(function(){function r(){}return r.prototype.selectWithProbability=function(o,i){var u=o.reduce(function(a,h){if(!("probability"in h))throw new Hs("Error: There is no probability set for value: "+h.group);return a+h.probability},0);if(u===0)throw new Hs("Error: Total sum of probabilities must be greater than 0");var c=Math.floor(Math.random()*u)+1,p={probability:0,group:""},d=0;return o.some(function(a,h){if(u-=a.probability,u<c)return p=a,d=h,!0}),i?d:p},r})();Bn.RandomSelector=Ap;var Bv=new Ap;Bn.default=Bv;(function(r){var o=qi&&qi.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=Bn;Object.defineProperty(r,"default",{enumerable:!0,get:function(){return o(i).default}})})(_p);const Cv=Gf(_p);let Ov=class{constructor(o,i){if(this.targetGroup=o,this.selectedGroup=i,!o)throw new Pe("Отсутствует значение установленной группы")}execute(){return this.targetGroup===this.selectedGroup}};const Lv={"inread-video":[{group:"content-roll",probability:2},{group:"fly-roll",probability:3}]};let Nv=class extends tr{constructor(o){super(o),this.selectedGroups=new Map,this.initSelectedGroups()}initSelectedGroups(){for(const[o,i]of Object.entries(Lv)){const u=Cv.selectWithProbability(i);this.selectedGroups.set(o,u.group)}}create(o){if(!o)throw new Pe("Отсутствуют параметры при создании правила рандомного селекта!");const i=this.selectedGroups.get(o.selectorType);if(!i)throw new Pe("Отсутствуют выбранная рандомно группа для текущего типа");return new Ov(o.targetGroup,i)}},Dv=class{constructor(o){if(this.targetTagList=o,!o)throw new Pe("Отсутствует значение списка тегов для правила конфига.")}execute(o={}){return o.pageTags?o.pageTags.some(i=>this.targetTagList.includes(i)):!1}},xv=class extends tr{create(o){if(!o)throw new Pe("Отсутствуют параметры при создании правила темы сайта!");return new Dv(o.targetTagList)}},Uv=class{constructor(o){if(this.targetAuthorIds=o,!o)throw new Pe("Отсутствует значение списка идентификаторов авторов для правила конфига.")}execute(o={}){return o.authorIds?o.authorIds.some(i=>this.targetAuthorIds.includes(i)):!1}},kv=class extends tr{create(o){if(!o)throw new Pe("Отсутствуют параметры при создании правила идентификаторов авторов!");return new Uv(o.targetAuthorIds)}},Pv=class{init(o){if(!o)throw new Pe("Попытка проинициализировать прокси пустым значением!");this._target=o}create(o){if(!this._target)throw new Pe("Невозможно обратиться к target, пока он не проинициализирован!");return this._target.create(o)}},Mv=class{constructor(o){if(!(o!=null&&o.length))throw new Pe("Отсутствуют фабрики правил конфига!");this._factories=new Map;for(const i of o){if(!i)throw new Pe("Попытка передать пустую фабрику выражений!");this._factories.set(i.type,i)}}create(o){if(!o)throw new Pe("Отсутствует объект описания правила!");const i=this._factories.get(o.type);return i?i.create(o.params):($f().warn(`[AdBase] Не найдена фабрика для типа "${o.type}". Правило будет пропущено.`),{execute:()=>!1})}},$v=class{constructor(o,i){if(this._provider=o,this._rulesFactory=i,!o)throw new Pe("Отсутствует провайдер конфигов!");if(!i)throw new Pe("Отсутствует фабрика правил для конфигов!")}get(o,i){var u;const c=this._provider.get(o);if(!c)throw new Pe(`Не найдены конфиги для слота '${o}'.`);if(!c.default)throw new Pe(`Не найдены параметры по умолчанию для слота ${o}!`);return(u=c.byRules)!=null&&u.length?c.byRules.reduce((p,d)=>this._rulesFactory.create(d.rule).execute(i)?{...p,...d.params}:p,{...c.default}):c.default}};var Ip={exports:{}};(function(r){var o=Object.prototype.hasOwnProperty,i="~";function u(){}Object.create&&(u.prototype=Object.create(null),new u().__proto__||(i=!1));function c(h,y,g){this.fn=h,this.context=y,this.once=g||!1}function p(h,y,g,b,v){if(typeof g!="function")throw new TypeError("The listener must be a function");var w=new c(g,b||h,v),_=i?i+y:y;return h._events[_]?h._events[_].fn?h._events[_]=[h._events[_],w]:h._events[_].push(w):(h._events[_]=w,h._eventsCount++),h}function d(h,y){--h._eventsCount===0?h._events=new u:delete h._events[y]}function a(){this._events=new u,this._eventsCount=0}
9a.prototype.eventNames=function(){var h=[],y,g;if(this._eventsCount===0)return h;for(g in y=this._events)o.call(y,g)&&h.push(i?g.slice(1):g);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(y)):h},a.prototype.listeners=function(h){var y=i?i+h:h,g=this._events[y];if(!g)return[];if(g.fn)return[g.fn];for(var b=0,v=g.length,w=new Array(v);b<v;b++)w[b]=g[b].fn;return w},a.prototype.listenerCount=function(h){var y=i?i+h:h,g=this._events[y];return g?g.fn?1:g.length:0},a.prototype.emit=function(h,y,g,b,v,w){var _=i?i+h:h;if(!this._events[_])return!1;var T=this._events[_],A=arguments.length,B,D;if(T.fn){switch(T.once&&this.removeListener(h,T.fn,void 0,!0),A){case 1:return T.fn.call(T.context),!0;case 2:return T.fn.call(T.context,y),!0;case 3:return T.fn.call(T.context,y,g),!0;case 4:return T.fn.call(T.context,y,g,b),!0;case 5:return T.fn.call(T.context,y,g,b,v),!0;case 6:return T.fn.call(T.context,y,g,b,v,w),!0}for(D=1,B=new Array(A-1);D<A;D++)B[D-1]=arguments[D];T.fn.apply(T.context,B)}else{var x=T.length,W;for(D=0;D<x;D++)switch(T[D].once&&this.removeListener(h,T[D].fn,void 0,!0),A){case 1:T[D].fn.call(T[D].context);break;case 2:T[D].fn.call(T[D].context,y);break;case 3:T[D].fn.call(T[D].context,y,g);break;case 4:T[D].fn.call(T[D].context,y,g,b);break;default:if(!B)for(W=1,B=new Array(A-1);W<A;W++)B[W-1]=arguments[W];T[D].fn.apply(T[D].context,B)}}return!0},a.prototype.on=function(h,y,g){return p(this,h,y,g,!1)},a.prototype.once=function(h,y,g){return p(this,h,y,g,!0)},a.prototype.removeListener=function(h,y,g,b){var v=i?i+h:h;if(!this._events[v])return this;if(!y)return d(this,v),this;var w=this._events[v];if(w.fn)w.fn===y&&(!b||w.once)&&(!g||w.context===g)&&d(this,v);else{for(var _=0,T=[],A=w.length;_<A;_++)(w[_].fn!==y||b&&!w[_].once||g&&w[_].context!==g)&&T.push(w[_]);T.length?this._events[v]=T.length===1?T[0]:T:d(this,v)}return this},a.prototype.removeAllListeners=function(h){var y;return h?(y=i?i+h:h,this._events[y]&&d(this,y)):(this._events=new u,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=i,a.EventEmitter=a,r.exports=a})(Ip);var Tp=Ip.exports;const Fv=Gf(Tp);let pi;const jv=new Uint8Array(16);function Gv(){if(!pi&&(pi=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!pi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return pi(jv)}const bt=[];for(let r=0;r<256;++r)bt.push((r+256).toString(16).slice(1));function qv(r,o=0){return(bt[r[o+0]]+bt[r[o+1]]+bt[r[o+2]]+bt[r[o+3]]+"-"+bt[r[o+4]]+bt[r[o+5]]+"-"+bt[r[o+6]]+bt[r[o+7]]+"-"+bt[r[o+8]]+bt[r[o+9]]+"-"+bt[r[o+10]]+bt[r[o+11]]+bt[r[o+12]]+bt[r[o+13]]+bt[r[o+14]]+bt[r[o+15]]).toLowerCase()}const Vv=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Tc={randomUUID:Vv};function Ju(r,o,i){if(Tc.randomUUID&&!o&&!r)return Tc.randomUUID();r=r||{};const u=r.random||(r.rng||Gv)();return u[6]=u[6]&15|64,u[8]=u[8]&63|128,qv(u)}let Hv=class{constructor(){this._analyticsDataMap=new Map,this._reservedAnalyticsDataIds=new Set}set(o,i){this._analyticsDataMap.set(o,i)}get(o){return this._analyticsDataMap.get(o)}patch(o,i){const u=this.get(o);this.set(o,{...u,...i})}lock(o){this._reservedAnalyticsDataIds.add(o)}isLocked(o){return this._reservedAnalyticsDataIds.has(o)}};const zv=.5,Wv=2e3,Sp="analyticsReady",zs="analyticsAdImpression",Ws="analyticsAdInteraction",Ys="analyticsAdClick",Yv="real_impression",Kv="[data-analytics-ad-context]",Qv="analyticsEvent";var St=(r=>(r.HB="hb",r.RSYA="rsya",r.ADFOX="adfox",r))(St||{});let Rp=class{getViewExtra(o){return this._getExtra(o,()=>this.getViewTargetUrl(o),()=>this.getViewAdContext(o))}getViewExtraProgrammatic(o,i,u){return this._getExtra(o,()=>this.getViewTargetUrlProgrammatic(o,i),()=>this.getAdContextProgrammatic(o,u))}getViewTargetUrl(o){return this.getAdTargetUrlFromElement(o)}getViewAdContext(o){return this.findAdContext(o)}getClickExtra(o){return this._getExtra(o,()=>this.getClickTargetUrl(o),()=>this.getClickAdContext(o))}getClickExtraProgrammatic(o,i){return this._getExtra(o,()=>"",()=>this.getAdContextProgrammatic(o,i))}getClickTargetUrl(o){return this.getAdTargetUrlFromElement(o)}getAdTargetUrlFromElement(o){var i;const u=o.querySelector("[data-ad-target-url]");return((i=u?.dataset)==null?void 0:i.adTargetUrl)||""}getClickAdContext(o){return this.findAdContext(o)}_getExtra(o,i,u){const c=i(o),p=u(o)||null;return{adTargetUrl:c,adContext:p}}findAdContext(o){const i=o.querySelector(Kv);return i?i.dataset.analyticsAdContext:""}getViewTargetUrlProgrammatic(o,i){return!o||!i?"":i}getAdContextProgrammatic(o,i){return!o||!i?"":i}},V4=class extends Rp{constructor(o,i=""){super(),this._adTargetUrl=o,this._adContext=i}getViewTargetUrl(){return this._adTargetUrl}getViewAdContext(){return this._adContext}getClickTargetUrl(){return this._adTargetUrl}getClickAdContext(){return this._adContext}},Jv=class{constructor({analyticsDataId:o,analyticsDataStore:i,analyticsDataExtraProvider:u,viewRatio:c,analyticsDataLayer:p}){this._analyticsDataId=o,this._analyticsDataStore=i,this._analyticsDataExtraProvider=u,this._analyticsDataLayer=p,this._viewRatio=c;let d;this._intersectionObserver=of({callback:a=>{const h=a[0];h.intersectionRatio>=this._viewRatio?d=setTimeout(()=>{this.sendRealImpressionAnalytics(h.target),this._intersectionObserver.unobserve(h.target)},Wv):clearTimeout(d)},observer:{threshold:this._viewRatio}})}lockAnalyticsId(o){this._analyticsDataStore.lock(o)}isAnalyticsIdLocked(o){return this._analyticsDataStore.isLocked(o)}processAnalytics({view:o,clicks:i}){const u=this.processViewAnalytics(o),c=this.processClickAnalytics(i);if(c)return()=>{u(),c()}}processViewAnalytics(o){return this.sendViewAnalytics(o),this.processRealImpressionAnalytics(o)}processRealImpressionAnalytics(o){return this._intersectionObserver.observe(o),()=>{this._intersectionObserver.disconnect()}}processClickAnalytics(o){if(!o.length)return;const i=o.map(u=>{const c=()=>u.removeEventListener("click",p),p=()=>{this.sendClickAnalytics(u)};return u.addEventListener("click",p),c});return()=>i.forEach(u=>u())}_getViewExtraData({isProgrammatic:o,element:i,analyticsData:u,adContext:c}){return o?this._analyticsDataExtraProvider.getViewExtraProgrammatic(i,u.adTargetUrl,c):this._analyticsDataExtraProvider.getViewExtra(i)}_getClickExtraData({isProgrammatic:o,element:i,adContext:u}){return o?this._analyticsDataExtraProvider.getClickExtraProgrammatic(i,u):this._analyticsDataExtraProvider.getClickExtra(i)}sendViewAnalytics(o,i){const u=this._analyticsDataStore.get(this._analyticsDataId),c=this.isProgrammatic(u),p=u.adContext,d=this._getViewExtraData({isProgrammatic:c,element:o,analyticsData:u,adContext:p});if(i){const a={...JSON.parse(d?.adContext||"{}"),...i};d.adContext=JSON.stringify(a)}this._analyticsDataLayer.sendViewAnalytics(u,d)}sendViewStubAnalytics(o){this._analyticsDataLayer.sendViewAnalytics({adZoneId:o,adAdvertiserID:"stub",adCompaignId:null,adBannerId:null,adTargetUrl:null,adContext:null},{})}sendRealImpressionAnalytics(o){const i=this._analyticsDataStore.get(this._analyticsDataId),u=this.isProgrammatic(i),c=i.adContext,p=this._getViewExtraData({isProgrammatic:u,element:o,analyticsData:i,adContext:c});this._analyticsDataLayer.sendAdRealImpressionAnalytics({...i,...p})}sendClickAnalytics(o,i){const u=this._analyticsDataStore.get(this._analyticsDataId),c=this.isProgrammatic(u),p=u.adContext,d=this._getClickExtraData({isProgrammatic:c,element:o,adContext:p});if(i){const a={...JSON.parse(d?.adContext||"{}"),...i};d.adContext=JSON.stringify(a)}this._analyticsDataLayer.sendClickAnalytics(u,d)}sendInteractionAnalytics(o,i){const u=this._analyticsDataStore.get(this._analyticsDataId),c=this._analyticsDataExtraProvider.getClickExtra(o);if(i){const p={...JSON.parse(c?.adContext||"{}"),...i};c.adContext=JSON.stringify(p)}this._analyticsDataLayer.sendInteractionAnalytics(u,c)}isProgrammaticRsya(o){const i=St.RSYA;return!!o&&o.adAdvertiserID===i}isProgrammatic(o){const i=St.HB;return this.isProgrammaticRsya(o)||o.adAdvertiserID===i}};function Zv(){return window.dataLayer=window.dataLayer||[],window?.dataLayer}const Xv="GA";let eE=class{get name(){return Xv}constructor(){this.dataLayer=Zv()}collect(o){this.dataLayer.push(this.buildData(o))}buildData(o){return{event:o.event,eventCategory:o.category,eventAction:o.action,eventLabel:o.label,eventProperty:o.property,eventValue:o.value}}};function tE(){return window.dataLayer=window.dataLayer||[],window?.dataLayer}let rE=class{constructor({adZoneId:o,adZoneCounter:i,adAdvertiserID:u,adRequestID:c}){this.adCollector=new eE,this.category="ad",this.label=o,this.value=i,this._adAdvertiserID=u,this._adRequestID=c,this.dataLayer=tE()}sendAdRequestAnalytics(){this.adCollector.collect({action:"request",property:JSON.stringify({advertiser:this._adAdvertiserID,request_id:this._adRequestID}),event:"",category:this.category,label:this.label,value:this.value.toString()})}sendAdRecieveAnalytics({adCampaignId:o,adBannerId:i}){this.adCollector.collect({action:"receive",property:JSON.stringify({advertiser:this._adAdvertiserID,request_id:this._adRequestID,campaign_id:o,banner_id:i}),event:"",category:this.category,label:this.label,value:this.value.toString()})}sendAdRealImpressionAnalytics(o,i={}){this.adCollector.collect({action:Yv,property:JSON.stringify(o),event:Qv,category:this.category,label:this.label,value:this.value.toString(),...i})}sendViewAnalytics(o,i){this._sendAnalytics(zs,o,i)}sendClickAnalytics(o,i){this._sendAnalytics(Ys,o,i)}sendInteractionAnalytics(o,i){this._sendAnalytics(Ws,o,i)}_sendAnalytics(o,i,u){const c={event:o,...i,...u};this.dataLayer.push(c)}},nE=class{constructor({store:o,widgetProcessor:i,instance:u,adZoneId:c,dataLayer:p,adAdvertiserID:d,adRequestID:a,analyticsDataId:h,eventEmitter:y}){this._store=o,this._widgetProcessor=i,this._instance=u,this._dataLayer=p,this._adZoneId=c,this._adAdvertiserID=d,this._adRequestID=a,this._adCampaignId=null,this._adBannerId=null,this._analyticsDataId=h,this._unsubscribe=null,this.eventEmitter=y}init(){this._instance.element.dataset.analyticsDataId=this._analyticsDataId,this._store.set(this._analyticsDataId,{adZoneId:this._adZoneId,adAdvertiserID:this._adAdvertiserID,adRequestID:this._adRequestID})}setBannerData({adCampaignId:o,adBannerId:i,adAdvertiserId:u,adTargetUrl:c,adContext:p}){this._adCampaignId=o,this._adBannerId=i;const d={adCampaignId:this._adCampaignId,adBannerId:this._adBannerId};u&&(this._adAdvertiserID=u,d.adAdvertiserID=this._adAdvertiserID),c&&(d.adTargetUrl=c),p&&(d.adContext=p),this._store.patch(this._analyticsDataId,d)}process(){if(this.eventEmitter.emit(Sp,{analyticsDataId:this._analyticsDataId,element:this._instance.element}),this._store.isLocked(this._analyticsDataId))return;const o=this._instance.element,i=this._widgetProcessor.processAnalytics({view:o,clicks:[o]});this._unsubscribe=()=>{i&&i(),this._unsubscribe=null}}stub(o){this._widgetProcessor.sendViewStubAnalytics(o)}destroy(){this._unsubscribe&&this._unsubscribe()}};const Zu=new Hv,Sc=new Rp,Bp=new Map;function Xu({analyticsDataId:r,viewRatio:o=zv,analyticsDataStore:i=Zu,analyticsDataExtraProvider:u=Sc}){const c=u||Sc,p=Bp.get(r);if(!(!i||!p))return new Jv({analyticsDataId:r,viewRatio:o,analyticsDataExtraProvider:c,analyticsDataStore:i,analyticsDataLayer:p})}const Ga=new Map,oE=1;function iE({instance:r,adZoneId:o,adAdvertiserID:i,eventEmitter:u}){const c=Ju(),p=Ga.has(o)&&Ga.get(o)||oE;Ga.set(o,p);const d=new rE({adZoneId:o,adZoneCounter:p,adAdvertiserID:i,adRequestID:c}),a=c;Bp.set(a,d);const h=Zu,y=Xu({analyticsDataId:a});if(!y)return;const g=new nE({instance:r,store:h,widgetProcessor:y,adZoneId:o,dataLayer:d,adAdvertiserID:i,adRequestID:c,analyticsDataId:a,eventEmitter:u});return g.init(),g}function Rc(r,o=Zu){o.lock(r)}let Cp=class{},aE=class extends Cp{createBanner(o){var i;(i=window.Ya)==null||i.adfoxCode.create(o)}}
9,Ge=class{constructor(){this.adBlocksBackgroundColors={[pe.TOP]:"red",[pe.SQUARE_TOP]:"olive",[pe.MOBILE_FULLSCREEN]:"blue",[pe.FOOTER]:"burlywood",[pe.RIGHT_FIRST]:"purple",[pe.BRANDING_ADFOX]:"green",[pe.RIGHT_ROTATE]:"orange",[Ut.RIGHT_MIDDLE]:"steelblue",[pe.RIGHT_THIRD]:"teal",[pe.INREAD_VIDEO]:"cadetblue",[pe.MOBILE_INREAD_VIDEO]:"cornsilk",[pe.MOBILE_INREAD]:"darkcyan",[pe.MOBILE_INREAD1]:"darkgoldenrod",[pe.MOBILE_INREAD2]:"cornflowerblue",[pe.DESKTOP_INREAD1]:"darkkhaki",[pe.DESKTOP_INREAD]:"darkmagenta",[pe.RIGHT_SQUARE]:"yellow",[pe.MIDDLE]:"seagreen",[pe.MIDDLE_1_ONLINE]:"blueviolet",[pe.MIDDLE_2_ONLINE]:"peachpuff",[pe.LEFT_ONLINE_1]:"palegreen",[pe.MOBILE_ONLINE_FOOTER]:"navy",[pe.MOBILE_ONLINE_1]:"coral",[pe.MOBILE_ONLINE_2]:"crimson",[pe.FOOTER_ONLINE]:"hotpink",[pe.SQUARE]:"chocolate",[pe.AFTER_CONTENT_WIDGET]:"mediumpurple",[pe.LEFT_BOTTOM]:"royalblue",[pe.MAIN_WEB_IN_MATERIAL]:"saddlebrown",[pe.MAIN_MOBWEB_IN_MATERIAL]:"sienna","fly-video":"deepskyblue",[Ut.LEFT_ONLINE_2]:"peru",[Ut.ONLINE_300_100]:"plum",[Ut.RIGHT_FIRST_TWO]:"tomato",[Ut.LEFT_NEWS]:"lightcoral",[pe.INREAD_NEWS]:"dodgerblue",[pe.COMMENTS_NEWS]:"sandybrown"}}setupAdBanner(o){const i=this.getBannerHtmlCode(),u=document.getElementById(o.containerId);
9u&&(this.setInnerHTMLAndExecuteScripts(u,i),o.onRender())}setInnerHTMLAndExecuteScripts(o,i){const u=document.createRange().createContextualFragment(i);o.innerHTML="",o.append(u)}},sE=class extends Ge{getBannerHtmlCode(){return`
10            <div
11                id="after-content-widget-ad-block"
12                style="
13                    width: 100%;
14                    height: 300px;
15                    background-color: ${this.adBlocksBackgroundColors[pe.AFTER_CONTENT_WIDGET]};
16                "
17            ></div>
18        `}},uE=class extends Ge{getBannerHtmlCode(){switch(localStorage.getItem("adfoxApiBrandedNotificationCustomView")){case Me.BRANDING_POPUP:return this.getBrandingPopupMock();case Me.BRANDING_STICKER:return this.getBrandingStickerMock();default:return this.getDefaultMock()}}getBrandingPopupMock(){return`
19            <div id="branding-popup-container">
20                <script>
21                    (function () {
22                        const data = {
23                            for: "DFPIC",
24                            target: "ad-sports",
25                            action: "initBranding",
26                            customInnerViewName: "brandingPopup",
27                            innerElementId: "branding-popup-container",
28                            otherData: {
29                                bannerBackground: "radial-gradient(83.46% 120.14% at 23.9% 56.25%, rgba(34, 34, 34, 0.23) 0%, #157BD3 85.39%, #F8E800 98.06%)",
30                                bookmakerImage: "https://dumpster.cdn.sports.ru/0/c3/1bbbe968f1e7b0c34f1ed6651aa64.png",
31                                bannerTextHighlighted: "до 15 000₽",
32                                bannerTextAfterHighlighted: "Забери мок бонус для новых клиентов",
33                                bannerTextColor: "#FFFFFF",
34                                btnText: "Получить!!!",
35                                btnBackground: "radial-gradient(83.46% 120.14% at 23.9% 56.25%, rgba(34, 34, 34, 0.23) 0%, #157BD3 85.39%, #F8E800 98.06%)",
36                                btnUrl: "%request.reference_mrc%",
37                                btnTextColor: "#FFFFFF",
38                                adLabel: "Реклама 18+ ООО «МОК»",
39                                adWarning: 'Азартные игры могут вызвать зависимость и потерю денег',
40                                bookmakerId: "1",
41                                bookmakerName: "MOCK_BOOK",
42                                bookmakerIdType: "bookrotator",
43                            }
44                        };
45
46                        new Image().src = "https://banners.adfox.ru/transparent.gif";
47
48                        top.postMessage(JSON.stringify(data), '*');
49                    })();
50                <\/script>
51            </div>
52        `}getBrandingStickerMock(){return`
53            <div id="branding-sticker-container">
54                <script>
55                    (function () {
56                        const data = {
57                            for: "DFPIC",
58                            action: "initBranding",
59                            innerElementId: "branding-sticker-container",
60                            target: "ad-sports",
61                            customInnerViewName: "brandingSticker",
62                            otherData: {
63                                bannerImg: "https://dumpster.cdn.sports.ru/c/85/2c602c480e6ba3b03e193b676bee9.svg",
64                                bannerUrl: "https://www.sports.ru/rugby/",
65                                adLabel: "Реклама 18+ ООО «МОК»",
66                            },
67                        };
68
69                        top.postMessage(JSON.stringify(data), '*');
70                    })();
71                <\/script>
72            </div>
73        `}getDefaultMock(){return`
74            <div id="branded-notification-ad-block">
75                <script>
76                    (function () {
77                        const adSlotData = {
78                            target: "ad-sports",
79                            viewType: "brandedNotification",
80                            customInnerViewName: "brandedNotificationBetsBonusMenu",
81                        };
82
83                        const data = {
84                            for: "DFPIC",
85                            action: "initControl",
86                            selector: ".js-bets-bonus-menu",
87                            control: "Bets.BetsBonusMenu",
88                            innerElementId: "branded-notification-ad-block",
89                            ...adSlotData,
90                            otherData: {
91                                link: "https://www.sports.ru/",
92                                isRedesign: "true",
93                                description: "Фрибет 100 000 MOCK-рублей в",
94                                highlightedTextBefore: "",
95                                highlightedTextAfter: "<b>БЕТСИТИ</b>",
96                                highlightedTextColor: "#0092F3",
97                                highlightedTextBgColor: "#ffffff",
98                                buttonText: "Получить",
99                                imageSrc: "https://dumpster.cdn.sports.ru/5/c1/a4041912c56726e6a0b501c19fb4e.svg",
100                                popupColor: "#161616",
101                                buttonBackground: "#0092F3",
102                                buttonColor: "#ffffff",
103                                logoSrc: "https://dumpster.cdn.sports.ru/3/6b/8c84d9f055e76195ea02e96fa29b1.png",
104                                headerImageSrc: "https://dumpster.cdn.sports.ru/4/5c/ed31fb14e86f7ca3f1714c5413593.svg",
105                                headerText: "Акции и бонусы от MOCK-букмекеров",
106                                advLabelText: "Реклама 18+",
107                                doubleAnimation: "true",
108                                animationCount: "10",
109                                firstGradientColor: "#ff6a13",
110                                secondGradientColor: "#00084d",
111                            },
112                        };
113
114                        top.postMessage(JSON.stringify(data), "*");
115
116                        new Image().src = "https://banners.adfox.ru/transparent.gif";
117                    })();
118                <\/script>
119            </div>
120        `}},lE=class extends Ge{getBannerHtmlCode(){return`
121            <div id="bets-comment-ad-block">
122                <script>
123                    (function () {
124                        var data = {
125                            for: "DFPIC",
126                            action: "initBetsCommentCreative",
127                            control: "Bets.BetsCommentCreative",
128                            innerElementId: "bets-comment-ad-block",
129                            target: "ad-sports",
130                            viewType: "betsComment",
131                            customInnerViewName: "betsCommentCreative",
132                        };
133
134                        data.otherData = {
135                            bookmakerTitle: "Собери команду в MOCK-фэнтези!",
136                            bookmakerLogo: "https://dumpster.cdn.sports.ru/1/ad/34d9e893f7e8108cb15f2507a093d.jpg",
137                            bookmakerURL: "https://sprts.cc/x41sqv",
138                            commentText: "Выиграй MOCK-приставку!",
139                            btnText: "Перейти",
140                            btnURL: "https://sprts.cc/x41sqv",
141                            btnColor: "#0000FE",
142                            commentLink: "https://sprts.cc/x41sqv",
143                            adfox: {
144                                placementId: "1149214",
145                                campaignId: "3129272",
146                                creativeId: "12626422",
147                            },
148                        };
149
150                        window.dispatchEvent(
151                            new CustomEvent("DFPICMessage", {
152                                detail: data,
153                            })
154                        );
155                    })();
156                <\/script>
157            </div>
158        `}},cE=class extends Ge{getBannerHtmlCode(){return`
159            <div
160                id="comments-news-ad-block"
161                style="
162                    width: 100%;
163                    height: 100px;
164                    background-color: ${this.adBlocksBackgroundColors[pe.COMMENTS_NEWS]};
165                "
166            ></div>
167        `}},dE=class extends Ge{getBannerHtmlCode(){return`
168            <div id="branding-adfox-ad-block" style="width: 100%; height: 200px; background-color: ${this.adBlocksBackgroundColors[pe.BRANDING_ADFOX]};"></div>
169        `}},fE=class extends Ge{getBannerHtmlCode(){return`
170            <div id="catfish-ad-block">
171                <script>
172                    (function () {
173                        const data = {
174                            for: 'Catfish',
175                            action: "RenderableCatfish",
176                            innerElementId: 'catfish-ad-block',
177                            target: 'ad-sports',
178                            customInnerViewName: 'renderableCatfish'
179                        };
180                        data.otherData = {
181                            clickURL: 'https://www.sports.ru/',
182                            imageURL: 'https://dumpster.cdn.sports.ru/6/be/173f2b9d1b2a7b3a8b6280e215d17.png',
183                            bookmaker: '',
184                            backgroundColorIframe: '',
185                            makeIframe: '0',
186                            className: 'af-catfish--big',
187                            adInfo: {
188                                adType: 'adfox',
189                                placementId: 'MOCK-placement-id',
190                                campaignId: 'MOCK-campaign-id',
191                                creativeId: 'MOCK-creative-id',
192                            }
193                        };
194                
195                        window.dispatchEvent(new CustomEvent('CatfishMessage', {
196                            detail: data
197                        }));
198                    })();
199                <\/script>
200            </div>
201        `}},pE=class extends Ge{getBannerHtmlCode(){return`
202            <div
203                id="desktop-inread-test-banner"
204                style="
205                    width: 100%;
206                    height: 300px;
207                    background-color: ${this.adBlocksBackgroundColors[pe.DESKTOP_INREAD]};
208                ">
209            </div>
210        `}},hE=class extends Ge{getBannerHtmlCode(){return`
211            <div
212                id="desktop-inread1-test-banner"
213                style="
214                    width: 100%;
215                    height: 320px;
216                    background-color: ${this.adBlocksBackgroundColors[pe.DESKTOP_INREAD1]};
217                ">
218            </div>
219        `}},mE=class extends Ge{getBannerHtmlCode(){return`
220            <div
221                id="inread-news-ad-block"
222                style="
223                    max-width: 100%;
224                    width: 720px;
225                    height: 250px;
226                    background-color: ${this.adBlocksBackgroundColors[pe.INREAD_NEWS]};
227                "
228            ></div>
229        `}},gE=class extends Ge{getBannerHtmlCode(){return`
230            <div id="inread-video-test-banner" style="width: 100%; height: 300px; background-color: ${this.adBlocksBackgroundColors[pe.INREAD_VIDEO]}"></div>
231        `}},yE=class extends Ge{getBannerHtmlCode(){return`
232            <div
233                id="footer-test-banner"
234                style="
235                    vertical-align: middle;
236                    max-width: 970px;
237                    background-color: ${this.adBlocksBackgroundColors[pe.FOOTER]};
238                    width: 970px;
239                    height: 240px;
240                "
241            >
242            </div>
243        `}},Bc=class extends Ge{getBannerHtmlCode(){return`
244            <div
245                id="footer-online-test-banner"
246                style="
247                    max-width: 990px;
248                    width: 100%;
249                    height: 250px;
250                    background-color: ${this.adBlocksBackgroundColors[pe.FOOTER_ONLINE]};
251                "
252            >
253            </div>
254        `}},bE=class extends Ge{getBannerHtmlCode(){return`
255            <div
256                id="fly-video-test-banner"
257                style="width: 100%;
258                height: 300px;
259                background-color: ${this.adBlocksBackgroundColors["fly-video"]};"
260            ></div>
261        `}};function wE(r){switch(localStorage.getItem("adfoxApiPostInreadVideo")){case"fly-video":return el[pe.INREAD_VIDEO];case"content-roll":return pe.INREAD_VIDEO;default:return r}}let vE=class extends Ge{getBannerHtmlCode(){return`
262            <div
263                id="middle-ad-block"
264                style="
265                    width: 100%;
266                    height: 90px;
267                    background-color: ${this.adBlocksBackgroundColors[pe.MIDDLE]};
268                "
269            ></div>
270        `}},Cc=class extends Ge{getBannerHtmlCode(){return`
271            <div
272                id="middle-1-online-ad-block"
273                style="width: 100%; height: 90px;background-color: ${this.adBlocksBackgroundColors[pe.MIDDLE_1_ONLINE]};"
274            ></div>
275        `}},Oc=class extends Ge{getBannerHtmlCode(){return`
276            <div id="middle-2-online-ad-block" style="width: 100%; height: 90px; background-color: ${this.adBlocksBackgroundColors[pe.MIDDLE_2_ONLINE]};"></div>
277        `}},EE=class extends Ge{getBannerHtmlCode(){return`
278            <div id="mobile-inread-video-test-banner" style="width: 100%; height: 250px; background-color: ${this.adBlocksBackgroundColors[pe.MOBILE_INREAD_VIDEO]}"></div>
279        `}},_E=class extends Ge{getBannerHtmlCode(){return`
280            <div
281                id="mobile-inread-test-banner"
282                style="
283                    width: 100%;
284                    height: 250px;
285                    background-color: ${this.adBlocksBackgroundColors[pe.MOBILE_INREAD]}
286                ">
287            </div>
288        `}},AE=class extends Ge{getBannerHtmlCode(){return`
289            <div
290                id="mobile-inread1-test-banner"
291                style="
292                    width: 100%;
293                    height: 250px;
294                    background-color: ${this.adBlocksBackgroundColors[pe.MOBILE_INREAD1]}
295                ">
296            </div>
297        `}},Lc=class extends Ge{getBannerHtmlCode(){return`
298            <div
299                id="mobile-online-footer-test-banner"
300                style="
301                    width: 100%;
302                    height: 280px;
303                    background-color: ${this.adBlocksBackgroundColors[pe.MOBILE_ONLINE_FOOTER]};
304                "
305            >
306            </div>
307        `}},IE=class extends Ge{getBannerHtmlCode(){return`
308            <div id="mobile-inread2-test-banner" style="width: 300px; height: 250px; background-color: ${this.adBlocksBackgroundColors[pe.MOBILE_INREAD2]}"></div>
309        `}},Nc=class extends Ge{setupAdBanner(o){document.head.insertAdjacentHTML("beforeend",this.getCssCode()),document.body.insertAdjacentHTML("beforeend",this.getWrapperHtmlCode()),o.onRender();const i=document.querySelector(".iba1fa277"),u=document.getElementById("mobile-fullscreen-wrapper-element"),c=new AbortController;i.addEventListener("click",()=>{this.removeWrapperElement(u),c.abort()},{signal:c.signal})}removeWrapperElement(o){o.remove()}getWrapperHtmlCode(){return`
310            <div id="mobile-fullscreen-wrapper-element">
311                <div class="n8fb50dce j48b5c8bf">
312                    <div class="e293c1b4c">
313                        <div
314                            class="g4610019a iba1fa277"
315                            style="
316                                background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2240%22%20height%3D%2240%22%3E%3Ccircle%20opacity%3D%22.2%22%20cx%3D%2220%22%20cy%3D%2220%22%20r%3D%2213.5%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M27%2013.7l-.7-.7-6.3%206.3-6.3-6.3-.7.7%206.3%206.3-6.3%206.3.7.7%206.3-6.3%206.3%206.3.7-.7-6.3-6.3z%22%2F%3E%3C%2Fsvg%3E');
317                            ">
318                        </div>
319                    </div>
320                    <div class="y868a5278"></div>
321                    <div class="x2d357544">
322                        <div class="l43d45eda" style="width: 320px !important; height: 480px !important;">
323                            <div class="" style="width: 100%; height: 100%;">
324                                ${this.getBannerHtmlCode()}
325                            </div>
326                        </div>
327                    </div>
328                </div>
329            </div>
330        `}getBannerHtmlCode(){return`<div id="mobile-fullscreen-test-banner" style="min-height: 100%; height: 100%; min-width: 100%; width: 100%; background-color: ${this.adBlocksBackgroundColors[pe.MOBILE_FULLSCREEN]};"></div>`}getCssCode(){return`
331            <style>
332                .eea29565d{position:relative !important;display:-webkit-box !important;display:-ms-flexbox !important;display:flex !important;-webkit-box-orient:horizontal !important;-webkit-box-direction:normal !important;-ms-flex-direction:row !important;flex-direction:row !important;-webkit-box-align:center !important;-ms-flex-align:center !important;align-items:center !important} .v4cc315e{position:absolute !important;width:100% !important;top:50% !important;text-align:center !important;-webkit-transform:translateY(-50%) !important;transform:translateY(-50%) !important} .ed2efeebb{margin-left:7px !important} .q200d0d85{position:relative !important} .tf1942e6d{-webkit-transition:stroke-dashoffset .1s linear !important;transition:stroke-dashoffset .1s linear !important} .ncd0a4dd3{position:relative !important;height:100% !important;width:100% !important} .ye888d1bb, .a8196b050{position:absolute !important;top:0 !important;left:0 !important;width:100% !important;height:100% !important} .e293c1b4c{z-index:4 !important;font-weight:300 !important;left:0 !important;width:100% !important;line-height:50px !important;background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.4)),to(transparent)) !important;background-image:linear-gradient(-180deg,rgba(0,0,0,.4),transparent) !important;color:#fff !important;font-size:12px !important;font-family:sans-serif !important} .e293c1b4c, .g4610019a{position:absolute !important;top:0 !important;height:50px !important;text-align:center !important} .g4610019a{right:0 !important;cursor:pointer !important;width:50px !important;background-repeat:no-repeat !important;background-position:50% !important} .iba1fa277{position:absolute !important;right:21px !important;top:-9px !important} .hea9b934c{display:none !important} .ja5f2c965{position:absolute !important;left:0 !important;top:0 !important;cursor:pointer !important;text-align:center !important;height:50px !important;width:50px !important;background-repeat:no-repeat !important;background-position:50% !important;z-index:2 !important;display:none !important} .ddfd36ff8{height:30px !important;width:30px !important;display:inline-block !important;vertical-align:middle !important} .ddfd36ff8.dc8ebc1d2{margin-top:16px !important} .fb1fae9af{margin-left:5px !important;display:inline-block !important;vertical-align:middle !important} .fb1fae9af.dc8ebc1d2{margin-top:16px !important} .y6d32fc76{position:relative !important} .ke417b0e4{left:4px !important} .ke417b0e4, .x87640b2f{position:absolute !important;top:4px !important;z-index:10 !important} .x87640b2f{right:4px !important} .yb3e7eb22{margin:0 auto !important} .y7fef7e9d{cursor:pointer !important;position:absolute !important;right:4px !important;top:4px !important;z-index:10 !important;width:24px !important;height:24px !important;display:-webkit-box !important;display:-ms-flexbox !important;display:flex !important;-webkit-box-align:center !important;-ms-flex-align:center !important;align-items:center !important;-webkit-box-pack:center !important;-ms-flex-pack:center !important;justify-content:center !important;pointer-events:auto !important;border-radius:50% !important;-webkit-user-select:none !important;-moz-user-select:none !important;
332-ms-user-select:none !important;user-select:none !important;-webkit-tap-highlight-color:transparent !important} .y7fef7e9d:hover{opacity:.8 !important} .ge8e6bf5d{background-color:#fff !important;opacity:.8 !important;height:100% !important;width:100% !important;position:absolute !important;top:0 !important;left:0 !important;z-index:-1 !important;border-radius:inherit !important;-webkit-transition:opacity .15s,background-color .5s ease-in-out !important;transition:opacity .15s,background-color .5s ease-in-out !important} .n8fb50dce{position:fixed !important;top:0 !important;left:-100% !important;width:100% !important;bottom:0 !important;background-color:rgba(0,0,0,.7) !important;z-index:999999 !important} .j48b5c8bf{left:0 !important} .y868a5278{position:absolute !important;z-index:2 !important;width:100% !important;height:100% !important;display:none !important} .x2d357544{height:100% !important;width:100% !important;text-align:center !important;display:block !important;position:relative !important} .x2d357544:before{content:"" !important;display:inline-block !important;height:100% !important;vertical-align:middle !important} .l43d45eda{position:relative !important;width:100% !important;height:100% !important;max-width:100% !important;max-height:100% !important;background:50% 50% no-repeat !important;background-size:contain !important;display:inline-block !important;vertical-align:middle !important} .jaadf1875{left:4px !important} .jaadf1875, .t837b69be{position:absolute !important;top:4px !important;z-index:10 !important} .t837b69be{right:4px !important}
333            </style>
334        `}},Dc=class extends Ge{getBannerHtmlCode(){return`
335            <div
336                id="mobile-online-1-ad-block"
337                style="width: 100%; height: 100px; background-color: ${this.adBlocksBackgroundColors[pe.MOBILE_ONLINE_1]};"
338            ></div>
339        `}},xc=class extends Ge{getBannerHtmlCode(){return`
340            <div
341                id="mobile-online-2-ad-block"
342                style="width: 100%; height: 100px; background-color: ${this.adBlocksBackgroundColors[pe.MOBILE_ONLINE_2]};"
343            ></div>
344        `}},Uc=class extends Ge{getBannerHtmlCode(){return`
345            <div 
346                id="online-300-100-ad-block" 
347                style="
348                    width: 320px; 
349                    height: 100px; 
350                    background-color: ${this.adBlocksBackgroundColors[Ut.ONLINE_300_100]};
351                "
352            ></div>
353        `}},TE=class extends Ge{getBannerHtmlCode(){return`
354            <div id="right-square-ad-block">
355                <a href="https://www.sports.ru" target="_blank">
356                    <div style="width:300px; height:600px; background-color: ${this.adBlocksBackgroundColors[pe.RIGHT_SQUARE]};"></div>
357                </a>
358            </div>
359        `}},kc=class extends Ge{getBannerHtmlCode(){return`
360            <div id="right-rotate-ad-block" style="width: 300px; height: 300px; background-color: ${this.adBlocksBackgroundColors[pe.RIGHT_ROTATE]};"></div>
361        `}},SE=class extends Ge{getBannerHtmlCode(){return`
362            <div
363                id="right-middle-ad-block"
364                style="
365                    width: 300px;
366                    height: 300px;
367                    background-color: ${this.adBlocksBackgroundColors[Ut.RIGHT_MIDDLE]};
368                "
369            ></div>
370        `}},Pc=class extends Ge{getBannerHtmlCode(){return`
371            <div id="right-first-ad-block" style="width: 300px; height: 600px; background-color: ${this.adBlocksBackgroundColors[pe.RIGHT_FIRST]};"></div>
372        `}},RE=class extends Ge{getBannerHtmlCode(){return`
373            <div id="right-first-two-ad-block" style="width: 300px; height: 600px; background-color: ${this.adBlocksBackgroundColors[Ut.RIGHT_FIRST_TWO]};"></div>
374        `}},BE=class extends Ge{getBannerHtmlCode(){return`
375            <div id="right-third-ad-block" style="width: 300px; height: 300px; background-color: ${this.adBlocksBackgroundColors[pe.RIGHT_THIRD]};"></div>
376        `}},CE=class extends Ge{getBannerHtmlCode(){return`
377            <div id="square-test-banner" style="width: 100%; height: 250px;
377 background-color: ${this.adBlocksBackgroundColors[pe.SQUARE]}"></div>
378        `}},OE=class extends Ge{getBannerHtmlCode(){return`
379            <div id="square-top-test-banner" style="width: 100%; height: 250px; background-color: ${this.adBlocksBackgroundColors[pe.SQUARE_TOP]}"></div>
380        `}},LE=class extends Ge{getBannerHtmlCode(){return`
381            <div id="dailybonus-ad-creative-container">
382                <script>
383                    (function () {
384                        const data = {
385                            for: 'DFPIC',
386                            action: 'initControl',
387                            selector: '.dailybonus',
388                            innerElementId: 'dailybonus-ad-creative-container',
389                            target: 'ad-sports',
390                            customInnerViewName: 'dailybonusCreative',
391                            control: 'Common.SmartApp',
392                        };
393
394                        data.otherData = {
395                            background: 'linear-gradient(90deg,rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 50%, rgba(237, 221, 83, 1) 100%)',
396                            buttonColor: '#E81515',
397                            buttonTextColor: '#fff',
398                            buttonText: 'Получить',
399                            leadText: '<i>Моки новым игрокам с промокодом</i>',
400                            leadTextColor: '#fff',
401                            titleText: '<b>15 000 Моксов</b>',
402                            titleTextColor: '#fff',
403                            adLabel: 'Реклама 18+',
404                            adWarning: 'Азартные игры могут вызвать зависимость и потерю денежных средств',
405                            link: 'https://sports.ru',
406                            image: 'https://photobooth.cdn.sports.ru/preset/user/f/0e/18fca8d6345de8b919888b79ab40b.png?f=png&h=64&q=80&w=64',
407                        };
408
409                        window.dispatchEvent(new CustomEvent('DFPICMessage', {
410                            detail: data
411                        }));
412                    })();
413                <\/script>
414            </div>
415        `}},Mc=class extends Ge{getBannerHtmlCode(){const o=localStorage.getItem("adfoxApiTopCustomView"),i=localStorage.getItem("adfoxApiTopCreativeType"),u=localStorage.getItem("adfoxApiTopCollapsingType");switch(o){case Me.BRANDING_COLLAPSING:return this.getBrandingCollapsing(u);case Me.BRANDING_COLLAPSING_HTML:return this.getBrandingCollapsingHtml();case Me.TOP_BRANDING_CREATIVE:return this.getCreativeBranding(i);default:return this.getDefaultMock()}}getDefaultMock(){return`
416            <div id="top-ad-creative-test-banner" style="width: 100%; height: 250px; background-color: ${this.adBlocksBackgroundColors[pe.TOP]}"></div>
417        `}getBrandingCollapsing(o){return o==="without-collapsing"?this.getBrandingCollapsingWithoutCollapsing():this.getBrandingCollapsingDefault()}getBrandingCollapsingDefault(){const o=`branding-collapsing-container-mock-${crypto.randomUUID()}`;return`
418            <div id="${o}">
419                <script>
420                    (function () {
421                        var brandingImage = "https://dumpster.cdn.sports.ru/e/b0/67780406908cf964d4772d5d3d09e.jpg";
422                        var brandingCollapsedImage = "https://dumpster.cdn.sports.ru/c/04/e0e95ddeb23b80ba398f3b80e95f1.jpg";
423                        var clickThrough = "https://example.com";
424                        var backgroundColor = "#EA3FF7";
425                        var closeIconColor = "#fff";
426
427                        const data = {
428                            for: "DFPIC",
429                            action: "initBranding",
430                            innerElementId: "${o}",
431                            target: "ad-sports",
432                            customInnerViewName: "brandingCollapsing",
433                            otherData: {
434                                brandingImage,
435                                brandingCollapsedImage,
436                                clickThrough,
437                                backgroundColor,
438                                closeIconColor,
439                            },
440                        };
441                        top.postMessage(JSON.stringify(data), "*");
442                    })();
443                <\/script>
444            </div>
445        `}getBrandingCollapsingWithoutCollapsing(){return`
446            <div id="branding-collapsing-without-collapsing-container-mock">
447                <script>
448                    (function () {
449                        var brandingImage = "https://dumpster.cdn.sports.ru/e/b0/67780406908cf964d4772d5d3d09e.jpg";
450                        var clickThrough = "https://example.com";
451                        var backgroundColor = "#78a2b7";
452                        var closeIconColor = "#fff";
453
454                        const data = {
455                            for: "DFPIC",
456                            action: "initBranding",
457                            innerElementId: "branding-collapsing-without-collapsing-container-mock",
458                            target: "ad-sports",
459                            customInnerViewName: "brandingCollapsing",
460                            otherData: {
461                                brandingImage,
462                                clickThrough,
463                                backgroundColor,
464                                closeIconColor,
465                            },
466                        };
467                        top.postMessage(JSON.stringify(data), "*");
468                    })();
469                <\/script>
470            </div>
471        `}getBrandingCollapsingHtml(){const o=`branding-collapsing-container-mock-${
471crypto.randomUUID()}`;return`
472            <div id="${o}">
473                <script>
474                    (function () {
475                        const html = "https://dumpster.cdn.sports.ru/6/e9/dde389795b8a41761f8dfcf8860e9.html";
476                        const clickThrough = "https://example.com";
477                        const backgroundColor = "aquamarine";
478                        const closeIconColor = "#fff"
479
480                        const data = {
481                            for: "DFPIC",
482                            action: "initBranding",
483                            innerElementId: "${o}",
484                            target: "ad-sports",
485                            customInnerViewName: "brandingCollapsingHtml",
486                            otherData: {
487                                html,
488                                clickThrough,
489                                backgroundColor,
490                                closeIconColor,
491                            },
492                        };
493                        top.postMessage(JSON.stringify(data), "*");
494                    })();
495                <\/script>
496            </div>
497        `}getCreativeBranding(o){switch(o){case"html":return this.getCreativeBrandingHtml();case"image":return this.getCreativeBrandingImage();default:return this.getDefaultMock()}}getCreativeBrandingHtml(){return`
498            <div id="top-ad—html-creative-container-mock">
499                <script>
500                    (function () {
501                        window.parent.window.Sports.pageData = window.parent.window.Sports.pageData || {};
502                        window.parent.window.Sports.pageData.topIsBranding = true;
503                        // данные для сбора аналитики
504                        // счетчики кликов от adfox
505                        const unescapeClick = "https://sports.ru";
506                        // счетчики показов
507                        const impresssionTrackingUrl = "";
508                        const impresssionTrackingUrl2 = "";
509                        const clickThrough = "https://example.com";
510                        // ссылка на html креатива
511                        const html = "https://dumpster.cdn.sports.ru/e/22/75c701265ecdd3e2d0e833dc7e32f.html";
512                        const bgColor = "#6a02d5";
513
514                        var analyticsEventValue = "12345";
515                        var bookmaker = "not-specified";
516
517                        const data = {
518                            innerElementId: "top-ad—html-creative-container-mock",
519                            target: "ad-sports",
520                            customInnerViewName: "topBrandingCreative",
521                            otherData: {
522                                unescapeClick,
523                                impresssionTrackingUrl,
524                                impresssionTrackingUrl2,
525                                analyticsEventValue,
526                                bookmaker,
527                                html,
528                                bgColor,
529                                clickThrough,
530                                referrerRequired: true,
531                            },
532                        };
533                        top.postMessage(JSON.stringify(data), "*");
534                    })();
535                <\/script>
536            </div>
537        `}getCreativeBrandingImage(){return`
538            <div id="top-ad-creative-container-mock">
539                <script>
540                    (function () {
541                        window.parent.window.Sports.pageData = window.parent.window.Sports.pageData || {};
542                        window.parent.window.Sports.pageData.topIsBranding = true;
543                        // данные для сбора аналитики
544                        // счетчики кликов от adfox
545                        var unescapeClick = "https://sports.ru";
546                        // счетчики показов
547                        var impresssionTrackingUrl = "";
548                        var impresssionTrackingUrl2 = "";
549                        // данные для отрисовки креатива
550                        // картинка брендинга
551                        var brandingImage = "https://dumpster.cdn.sports.ru/d/fb/94d86e1f5af172a86174598d143c3.jpg";
552                        // ссылка для перехода
553                        var clickThrough = "https://example.com";
554                        // цвет фона за брендингом
555                        var backgroundColor = "#b5e61d";
556
557                        var analyticsEventValue = "12345";
558
559                        var bookmaker = "not-specified";
560
561                        const data = {
562                            innerElementId: "top-ad-creative-container-mock",
563                            target: "ad-sports",
564                            customInnerViewName: "topBrandingCreative",
565                            otherData: {
566                                unescapeClick,
567                                impresssionTrackingUrl,
568                                impresssionTrackingUrl2,
569                                brandingImage,
570                                clickThrough,
571                                backgroundColor,
572                                bookmaker,
573                                analyticsEventValue,
574                            },
575                        };
576                        top.postMessage(JSON.stringify(data), "*");
577                    })();
578                <\/script>
579            </div>
580        `}},$c=class extends Ge{getBannerHtmlCode(){return`
581            <div id="1left-online-ad-block" style="width: 300px; height: 600px;
581 background-color: ${this.adBlocksBackgroundColors[pe.LEFT_ONLINE_1]};"></div>
582        `}},Fc=class extends Ge{getBannerHtmlCode(){return`
583            <div 
584                id="2left-online-ad-block" 
585                style="
586                    width: 320px; 
587                    height: 300px; 
588                    background-color: ${this.adBlocksBackgroundColors[Ut.LEFT_ONLINE_2]};
589                "
590            ></div>
591        `}},NE=class extends Ge{getBannerHtmlCode(){return`
592            <div
593                id="left-news-ad-block"
594                style="
595                    width: 230px;
596                    height: 400px;
597                    background-color: ${this.adBlocksBackgroundColors[Ut.LEFT_NEWS]};
598                "
599            ></div>
600        `}},DE=class extends Ge{getBannerHtmlCode(){return`
601            <div
602                id="left-bottom-ad-block"
603                style="
604                    width: 230px;
605                    height: 600px;
606                    background-color: ${this.adBlocksBackgroundColors[pe.LEFT_BOTTOM]};
607                "
608            ></div>
609        `}},xE=class extends Ge{getBannerHtmlCode(){return`
610            <div
611                id="main-web-in-material"
612                style="
613                    width: 100%;
614                    height: 180px;
615                    background-color: ${this.adBlocksBackgroundColors[Ut.LEFT_NEWS]};
616                "
617            ></div>
618        `}},UE=class extends Ge{getBannerHtmlCode(){return`
619            <div
620                id="main-mobweb-in-material"
621                style="
622                    width: 100%;
623                    height: 180px;
624                    background-color: ${this.adBlocksBackgroundColors[Ut.LEFT_NEWS]};
625                "
626            ></div>
627        `}},kE=class extends Ge{getBannerHtmlCode(){return`
628            <div id="tags-header-ad-block">
629                <script>
630                    (function () {
631                        const data = {
632                            for: "DFPIC",
633                            innerElementId: "tags-header-ad-block",
634                            target: "ad-sports",
635                            customInnerViewName: "tagsHeader",
636                            otherData: {
637                                backgroundColor: "darkslateblue",
638                                text: "Мокайте для E2E-тестов",
639                                textColor: "white",
640                                img: "https://dumpster.cdn.sports.ru/6/a5/a4978431cc4200711c8dabc977d75.svg",
641                                adLabel: "Реклама 18+",
642                                adWarning: "Участие в азартных играх может привести к возникновению зависимости",
643                            },
644                        };
645
646                        top.postMessage(JSON.stringify(data), "*");
647                    })();
648                <\/script>
649            </div>
650        `}},PE=class extends Ge{getBannerHtmlCode(){return`
651        <div id="tags-header-button-ad-block">
652            <script>
653                (function () {
654                    const data = {
655                        for: "DFPIC",
656                        innerElementId: "tags-header-button-ad-block",
657                        target: "ad-sports",
658                        customInnerViewName: "tagsHeaderButton",
659                        otherData: {
660                            backgroundColor: "palevioletred",
661                            text: "Мокайте для E2E-тестов",
662                            textColor: "white",
663                            img: "https://dumpster.cdn.sports.ru/6/a5/a4978431cc4200711c8dabc977d75.svg",
664                            altUrl: "https://example.com",
665                            geo: "RU",
666                            source: "KINOPOISK",
667                        },
668                    };
669
670                    window.dispatchEvent(new CustomEvent("TagsActualMatchesMessage", {
671                        detail: data,
672                    }));
673                })();
674            <\/script>
675        </div>
676        `}},ME=class extends Ge{getBannerHtmlCode(){return`
677            <div id="broadcast-online-ad-block">
678                 <script>
679                    (function () {
680                        const data = {
681                            for: "",
682                            action: "",
683                            innerElementId: "broadcast-online-ad-block",
684                            target: "",
685                            customInnerViewName: "",
686                        };
687                        data.otherData = {
688                            geo: "RU",
689                            bookmaker: "WINLINE",
690                            fakePlayerImg: "https://dumpster.cdn.sports.ru/1/d9/ac31b3c1fa5c940cc1fec29822a49.jpg",
691                            fakePlayerUrl: "https://www.sports.ru/",
692                            matchSummaryImg: "https://dumpster.cdn.sports.ru/f/a0/2b73a6c899c748f0d35d652c3b16d.svg",
693                            matchSummaryUrl: "https://sirena.world/winline_fpv
693ideo&erid=Pb3XmBtzt7HxL2x42j4Mhb6RdT8WawcyQ5QTcak",
694                            utmFakePlayer: "",
695                            utmMatchSummary: "",
696                            adLabel: "Мок 18+",
697                        };
698
699                        window.dispatchEvent(
700                            new CustomEvent("BroadcastOnlineMessage", {
701                                detail: data,
702                            })
703                        );
704                    })();
705                <\/script>
706            </div>
707        `}};var Ut=(r=>(r.FOOTER_ONLINE="Footer_Online_adfox",r.LEFT_ONLINE_1="1Left_Online_adfox",r.LEFT_ONLINE_2="2Left_Online_adfox",r.MIDDLE_1_ONLINE="Middle_1_Online_adfox",r.MIDDLE_2_ONLINE="Middle_2_Online_adfox",r.MOBILE_FULLSCREEN="MobileFullscreen_Adfox",r.MOBILE_ONLINE_1="Mobile_Online_1_adfox",r.MOBILE_ONLINE_2="Mobile_Online_2_adfox",r.MOBILE_ONLINE_FOOTER="Mobile_Online_Footer_adfox",r.ONLINE_300_100="Banner_300x100_Online_adfox",r.RIGHT_FIRST="right-first_adfox",r.RIGHT_FIRST_TWO="right-first-two",r.RIGHT_MIDDLE="right-middle",r.RIGHT_ROTATE="right-rotate_adfox",r.TOP="top_adfox",r.LEFT_NEWS="Left_News",r))(Ut||{});const jc={[pe.BETS_COMMENT]:"Bets_comments",[pe.MOBILE_INREAD_VIDEO]:"Mobile_Inpage_Video"},el={[pe.INREAD_VIDEO]:"fly-video"},$E={[el[pe.INREAD_VIDEO]]:bE,[pe.AFTER_CONTENT_WIDGET]:sE,[pe.COMMENTS_NEWS]:cE,[pe.BRANDED_NOTIFICATION]:uE,[pe.BRANDING_ADFOX]:dE,[pe.CATFISH]:fE,[pe.DESKTOP_INREAD1]:hE,[pe.DESKTOP_INREAD]:pE,[pe.FOOTER]:yE,[pe.FOOTER_ONLINE]:Bc,[pe.INREAD_NEWS]:mE,[pe.INREAD_VIDEO]:gE,[pe.LEFT_ONLINE_1]:$c,[pe.LEFT_ONLINE_2]:Fc,[pe.MIDDLE]:vE,[pe.MIDDLE_1_ONLINE]:Cc,[pe.MIDDLE_2_ONLINE]:Oc,[pe.MOBILE_FULLSCREEN]:Nc,[pe.MOBILE_INREAD1]:AE,[pe.MOBILE_INREAD2]:IE,[pe.MOBILE_INREAD]:_E,[pe.MOBILE_ONLINE_1]:Dc,[pe.MOBILE_ONLINE_2]:xc,[pe.MOBILE_ONLINE_FOOTER]:Lc,[pe.BANNER_300_100_ONLINE]:Uc,[pe.RIGHT_FIRST]:Pc,[pe.RIGHT_ROTATE]:kc,[pe.RIGHT_SQUARE]:TE,[pe.RIGHT_THIRD]:BE,[pe.SMARTAPP]:LE,[pe.SQUARE]:CE,[pe.SQUARE_TOP]:OE,[pe.TOP]:Mc,[pe.LEFT_BOTTOM]:DE,[pe.MAIN_MOBWEB_IN_MATERIAL]:UE,[pe.MAIN_WEB_IN_MATERIAL]:xE,[pe.TAGS_HEADER]:kE,[pe.TAGS_HEADER_BUTTON]:PE,[pe.BROADCAST_ONLINE]:ME,[jc[pe.BETS_COMMENT]]:lE,[jc[pe.MOBILE_INREAD_VIDEO]]:EE,Footer_Online_adfox:Bc,"1Left_Online_adfox":$c,"2Left_Online_adfox":Fc,Middle_1_Online_adfox:Cc,Middle_2_Online_adfox:Oc,MobileFullscreen_Adfox:Nc,Mobile_Online_1_adfox:Dc,Mobile_Online_2_adfox:xc,Mobile_Online_Footer_adfox:Lc,Banner_300x100_Online_adfox:Uc,"right-first_adfox":Pc,"right-first-two":RE,"right-rotate_adfox":kc,"right-middle":SE,top_adfox:Mc,Left_News:NE},FE=[pe.MOBILE_FULLSCREEN,pe.CATFISH,pe.BRANDED_NOTIFICATION,"MobileFullscreen_Adfox"];let jE=class extends Cp{getRequestName(o){return[el[pe.INREAD_VIDEO],pe.INREAD_VIDEO].includes(o)?wE(o):o}createBanner(o){const i=this.getRequestName(o.name),u=$E[i];if(!u||this.isBlockRestrictedToLoad(o.name)){o.onStub();return}const c=new u;o.onLoad({bundleName:"banner.transfer",bundleParams:{bannerId:`test-banner-${i}-id`,campaignId:`test-campaign-${i}-id`,className:`test-class-name-${i}`}}),c.setupAdBanner(o)}isBlockRestrictedToLoad(o){const i=localStorage.getItem(`adfoxRestrictMock_${o}`);return localStorage.getItem("adfoxMocksWithRestrict")?FE.includes(o):!!i}};const tl="adfoxApiType",rl="mock";let qa=null,GE=class{create(){return localStorage.getItem(tl)===rl?qa=new jE:qa=new aE,qa}};var zi=(r=>(r.RSYA="rsya",r.HB="hb",r))(zi||{});let qE=class{constructor(){this._loaders=new Map}load(o){let i=this._loaders.get(o);return i||(i=this._loadScript(o),this._loaders.set(o,i)),i}_loadScript(o){return new Promise((i,u)=>{const c=document.createElement("script");c.onload=()=>i(),c.onerror=u,c.src=o,c.async=!0,document.head.appendChild(c)})}};const Op=new qE,Lp="https://yandex.ru/ads/system/header-bidding.js",VE=1e3,HE={adfox_adsmart:"1949669","adfox_imho-video":"1906859",adriver:"1906817",betweenDigital:"1949680",buzzoola:"1906845",getintent:"1906837",mts:"1906841",myTarget:"1906832",otm:"1906828",segmento:"1906847",astralab:"1990361","adfox_yandex_roxot-adfox-hb":"2044162",hybrid:"2090827",sape:"2280724",roxot:"2921648",videonow:"2280641"}
707,zE=[{bidder:"hybrid",pixels:["https://www.tns-counter.ru/V13a****idsh_ad/ru/CP1251/tmsec=idsh_dis/","https://www.tns-counter.ru/V13a****idsh_vid/ru/CP1251/tmsec=idsh_sportsru-hbrdis/","https://mc.yandex.ru/watch/66716692?page-url=sportsru%3Futm_source=dis_hybrid_default%26utm_medium=%26utm_campaign=%26utm_content=%26utm_term=&page-ref=[PAGE_URL]"]}],WE=[{bidder:"hybrid",pixels:["https://www.tns-counter.ru/V13a****idsh_ad/ru/CP1251/tmsec=idsh_mob/","https://www.tns-counter.ru/V13a****idsh_vid/ru/CP1251/tmsec=idsh_sportsru-hbrmob/","https://mc.yandex.ru/watch/66716692?page-url=sportsru%3Futm_source=mob_hybrid_default%26utm_medium=%26utm_campaign=%26utm_content=%26utm_term=&page-ref=[PAGE_URL]"]}],Np="syncPixelDesktop",Dp="syncPixelMobile",YE={[Np]:zE,[Dp]:WE};let KE=class{load(){const o=pp()?Dp:Np,i=YE[o];return window.YaHeaderBiddingSettings||(window.YaHeaderBiddingSettings={biddersMap:HE,adUnits:[],timeout:VE,syncPixels:i,callbacks:{onBidsReceived:u=>{console.info("[SPORTS][Adfox Header Bidding] Получены ставки",u)}}}),Op.load(Lp)}init(o,i){var u;(u=window.Ya)==null||u.headerBidding.pushAdUnits([{code:o,...i}])}};const Gc=new KE;function QE(){var r,o,i;if(!window||!window.Ya||!((r=window.Ya)!=null&&r.headerBidding)||!((o=window.Ya)!=null&&o.headerBidding.getBidsReceived))return[];const u=(i=window.Ya)==null?void 0:i.headerBidding.getBidsReceived();return u&&Array.isArray(u)?u:[]}function xp(r){var o,i;return(i=(o=r?.data)==null?void 0:o.direct)==null?void 0:i.ads}function Up(r){var o;return(o=r?.data)==null?void 0:o.rtb}function JE(r){var o;const i=xp(r),u=Up(r);return i&&i.length?i.map(c=>c.bs_data.targetUrl).join(","):u?u.buttonClick||((o=u.data_params)==null?void 0:o.target_url):null}function kp(r,o){return{adAdvertiserId:o,adBannerId:r.blockId||null,adTargetUrl:JE(r),adContext:{}}}function ZE(r,o,i){const u=o&&Array.isArray(o)&&o.length,c=kp(r,St.HB);let p=null;if(u&&(p=o.find(d=>{const a=d.campaignId.toString()===r.campaignId,h=d.containerId===i;return a&&h})),p){const d=p.cost&&p.cost.cpm?p.cost.cpm.toString():null,a=p.bid?p.bid.toString():null,h=d||a||null;c.adContext={cpm:h,advertiser:p.adapterName}}return c}function XE(r){var o;const i=xp(r),u=Up(r);let c=null;if(i!=null&&i.length){const p=i.map(d=>d.bs_data.domain);c=[...new Set(p)]}else if(u){const p=u.domain||((o=u.data_params)==null?void 0:o.punyDomain);c=p?[p]:null}return c&&c.length?c:null}function e2(r){const o=XE(r),i={advertisers:[]};o&&(i.advertisers=o);const u=kp(r,St.RSYA);return u.adContext=i,u}const t2=[Me.DESKTOP_CATFISH,Me.RENDERABLE_CATFISH,Me.CATFISH_STICKER_BUBBLE,Me.CATFISH_WITH_BETS_ELEMENTS,Me.TOP_BRANDING_CREATIVE,Me.BRANDED_NOTIFICATION_BETS_BONUS_MENU,Me.SMARTAPP_CREATIVE,Me.BOOK_GADGET,Me.WIDGET_CATFISH,Me.DAILY_BONUS,Me.NATIVE_CREATIVE,Me.BRANDING_COLLAPSING,Me.BRANDING_COLLAPSING_HTML,Me.TAGS_HEADER,Me.BRANDING_POPUP,Me.BRANDING_STICKER,Me.WORLD_CUP_POPUP_STICKER];function r2(r,o){if(/\/\/\s*disable-auto-analytics|\/\*\s*disable-auto-analytics\s*\*\//.test(o.innerHTML)){Rc(r);return}const i=o.innerHTML.match(/(customInnerViewName:\s*['|"](\w+)['|"])|(\.customInnerViewName\s*=\s*['|"]((\w|\.)+)['|"])/),u=i&&(i[2]||i[5]);u&&t2.includes(u)&&Rc(r)}var Ke=(r=>(r.CONTROLLER_INITIALIZED="onControllerInitialized",r.BANNER_LOAD="onBannerLoad",r.BANNER_RENDER="onBannerRender",r.BANNER_ERROR="onBannerError",r.BANNER_STUB="onBannerStub",r.BANNER_RESTRICTED="onBannerRestricted",r.BANNER_ALLOW_RENDER="onBannerAllowRender",r.BANNER_TARGETINGS="onBannerTargetings",r.WIDGET_SET_SITE_THEME="onWidgetSetSiteTheme",r))(Ke||{});let n2=class{constructor(){this.emitter=new Tp.EventEmitter}emitEvent(o,...i){this.emitter.emit(o,...i)}onEvent(o,i){this.emitter.on(o,i)}};const Bt=new n2,Pp="https://yandex.ru/ads/system/context.js";let o2=class{constructor(o){this.type=o}},Mp=class extends o2{constructor(o){super(o)}init(){return window.yaContextCb=window.yaContextCb||[],Op.load(Pp)}},i2=class{};const a2="cdn.sports.ru",rr=new Map;let s2=class extends i2{listen(){window.addEventListener("message",o=>{const i=o.origin.includes(a2);if(o.origin!==window.location.origin&&!i)return;const u=this.getEventData(o);u&&this.handleIframeMessage(o.source,u)},!1)}getEventData(o){let i;try{i=JSON.parse(o.data)}catch{i=null}if(!(!i||!(i.analyticsEventName&&[Ws,Ys,zs].includes(i.analyticsEventName))))return i}sendIframeAnalyticsEvent(o,i){const u=o.querySelector(".ad-slot-container-view__ad-place");if(!u)return;const c=u.id,p=rr.get(c);if(!p)return;const d=p.analyticsAdLoaderProcessor;switch(i?.analyticsEventName){case Ys:d?._widgetProcessor.sendClickAnalytics(u,i?.context);break;case Ws:d?._widgetProcessor.sendInteractionAnalytics(u,i?.context);break;case zs:d?._widgetProcessor.sendViewAnalytics(u,i?.context);break}}findIframeAdSlotElement(o,i){let u,c;return i.bannerId?c=document.getElementById(i.bannerId):(u=document.getElementsByTagName("IFRAME"),c=Array.from(u).find(p=>p.contentWindow===o)),c?(i.context&&(c.dataset.analyticsAdContext=JSON.stringify(i.context)),i.adTargetUrl&&(c.dataset.adTargetUrl=i.adTargetUrl),c.closest(".ad-slot")):null}handleIframeMessage(o,i){const u=this.findIframeAdSlotElement(o,i);u&&this.sendIframeAnalyticsEvent(u,i)}};const u2=new s2;let l2=class{constructor(){this.requestIds=new Map,window.dataLayer=window.dataLayer||[]}getContextByContainerId(o){var i;const u=document.getElementById(o),c=u?.querySelector("[data-analytics-ad-context]"),p=(i=c?.dataset)==null?void 0:i.analyticsAdContext;return p?JSON.parse(p):{}}pushAdInteractionAnalytics(o,i,u={}){var c;let p=this.requestIds.get(o);p||(p=Ju(),this.requestIds.set(o,p));const d={adAdvertiserId:"",adBannerId:"",adCampaignId:"",adTargetUrl:"",adZoneId:o,adRequestID:p,adFrom:"moneyball",event:"analyticsAdInteraction",...u},a=d.adContext?{...d.adContext,...i}:i;(c=window.dataLayer)==null||c.push({...d,adContext:JSON.stringify(a||{})})}},Va=null;function c2(){return Va||(Va=new l2,Va)}const d2="R-A-",f2="bid",p2="banner.old";let h2=class extends Mp{constructor(o,i){super(o),this.targetingService=i,this.adfoxApi=new GE().create(),this.analyticsEmitter=new Fv,this.adAn
707alyticsForPerformance=c2(),this.analyticsEmitter.on(Sp,({analyticsDataId:u,element:c})=>{r2(u,c)}),u2.listen()}initAnalyticsAdLoaderProcessor(o,i){const u=document.querySelector(`#${o}`);if(!u)return;const c=u.closest(".ad-slot");if(!c)return;const p=rr.get(o);this.setDataToLoaderContainer(o,{analyticsAdLoaderProcessor:iE({instance:{element:c},adZoneId:i,adAdvertiserID:p!=null&&p.isProgrammatic?p!=null&&p.isProgrammaticHb?St.HB:St.RSYA:St.ADFOX,eventEmitter:this.analyticsEmitter})})}register(o,i,u){const c=u.request.name,p=u.request.adZoneId;this.log(`Init block '${c}' with params`,{id:o,lazy:i}),this.adAnalyticsForPerformance.pushAdInteractionAnalytics(p,{adZoneID:p,type:"block_init"})}async load(o,i,u){rr.set(o,{analyticsAdLoaderProcessor:void 0,isProgrammaticRsya:!1,isProgrammaticHb:!1,isProgrammatic:!1,bundleName:"",bundleParams:{}});const c=this.getTargetings();await this.loadHeaderBidding(o,u.hbRequest),this.createAdfoxCode(o,u.request,c,i)}update(o,i,u,c){var p;const d=c.request.name;if(!this.allowUpdate(i,u)){this.log(`Block '${d}' is not allowed for update`,"true");return}(p=window.Ya)==null||p.adfoxCode.reload(o,{onlyIfWasVisible:!0})}allowUpdate(o,i){return o.refreshLimit?i<o.refreshLimit:!0}async loadHeaderBidding(o,i){if(!i)return Promise.resolve();await Gc.load(),Gc.init(o,i)}setProgrammaticProps(o,i){const u=i.bundleParams.blockId?i.bundleParams.blockId.includes(d2):!1,c=i.bundleName===f2,p=u||c;this.setDataToLoaderContainer(o,{isProgrammaticRsya:u,isProgrammaticHb:c,isProgrammatic:p})}getBannerDataAttrs(o){const i={},u=rr.get(o);return u!=null&&u.isProgrammatic&&(i.programmaticType=u!=null&&u.isProgrammaticRsya?zi.RSYA:zi.HB),i}collectBannerData(o,i){const u=St.ADFOX,c=o.bundleParams.bannerId||null,p=o.bundleParams.campaignId||null;let d={};const a={adCampaignId:p,adBannerId:c,adAdvertiserId:u,adContext:null},h=rr.get(i);if(h!=null&&h.isProgrammatic)if(h!=null&&h.isProgrammaticRsya)d=e2(o.bundleParams);else{const y=QE();d=ZE(o.bundleParams,y,i)}return{...a,...d}}log(o,i){console.info(`[SPORTS][AdFox]: ${o}: `,i)}setDataToLoaderContainer(o,i){const u=rr.get(o);u&&rr.set(o,{...u,...i})}createAdfoxCode(o,i,u,c){const p=i.name,d=i.adZoneId;let a="",h="";const y=this.updateCustomTargetings(u,c);Bt.emitEvent(Ke.BANNER_TARGETINGS,o,y),this.initAnalyticsAdLoaderProcessor(o,i.adZoneId),this.adAnalyticsForPerformance.pushAdInteractionAnalytics(d,{adZoneID:d,type:"to_server"});const g=()=>{var T;this.log(`Block '${p}' rendered with container id`,o);
707const A=rr.get(o),B=this.adAnalyticsForPerformance.getContextByContainerId(o),D={adAdvertiserId:A!=null&&A.isProgrammatic?A!=null&&A.isProgrammaticHb?St.HB:St.RSYA:St.ADFOX,adBannerId:a?a.toString():"",adCampaignId:h?h.toString():""};this.adAnalyticsForPerformance.pushAdInteractionAnalytics(d,{adZoneID:d,type:"render_start",bookmaker_id:"",bookmaker_id_type:"",bookmaker_name:"",clientName:"",format:"",...B},D),Bt.emitEvent(Ke.BANNER_RENDER,o),(T=A?.analyticsAdLoaderProcessor)==null||T.process(),this.adAnalyticsForPerformance.pushAdInteractionAnalytics(d,{adZoneID:d,type:"render_complete",bookmaker_id:"",bookmaker_id_type:"",bookmaker_name:"",clientName:"",format:"",...B},D)},b=T=>{var A,B;if(!T){const U=rr.get(o);if(U!=null&&U.bundleParams&&U.bundleName===p2){g();return}this.log(`Block '${p}' has no data:`,T);return}this.log(`Block '${p}' loaded with data`,T),a=T.bundleParams.bannerId,h=T.bundleParams.campaignId,this.adAnalyticsForPerformance.pushAdInteractionAnalytics(d,{adZoneID:d,type:"from_server"}),this.setDataToLoaderContainer(o,{bundleName:T.bundleName,bundleParams:T.bundleParams});const D=(A=document.querySelector(`#${o}`))==null?void 0:A.closest(".ad-root-view");D&&T.bundleParams.className&&(D.dataset.extraAdClass=T.bundleParams.className),this.setProgrammaticProps(o,T),Bt.emitEvent(Ke.BANNER_LOAD,o,this.getBannerDataAttrs(o));const x=this.collectBannerData(T,o),W=rr.get(o);(B=W?.analyticsAdLoaderProcessor)==null||B.setBannerData(x),this.adAnalyticsForPerformance.pushAdInteractionAnalytics(d,{adZoneID:d,type:"from_server_processing"},{adAdvertiserId:W!=null&&W.isProgrammatic?W!=null&&W.isProgrammaticHb?St.HB:St.RSYA:St.ADFOX,adBannerId:a?a.toString():"",adCampaignId:h?h.toString():""})},v=T=>{var A;this.log(`Block '${p}' error while loading`,T),Bt.emitEvent(Ke.BANNER_ERROR,(A=T.messages)==null?void 0:A.map(({status:B})=>({message:T.type,status:B})))},w=()=>{var T;this.log(`Block '${p}' loaded stub with contained id`,o),this.adAnalyticsForPerformance.pushAdInteractionAnalytics(d,{adZoneID:d,type:"stub_loaded"}),Bt.emitEvent(Ke.BANNER_STUB,o);const A=rr.get(o);(T=A?.analyticsAdLoaderProcessor)==null||T.stub(i.adZoneId)},_={...i.params,...y};this.log(`Requesting block '${p}' with params`,_),this.adfoxApi.createBanner({...i,params:_,containerId:o,onLoad:b,onRender:g,onError:v,onStub:w})}updateCustomTargetings(o,i){const[u,c]=i.placeholderSize,p=!!parseFloat(u.toString())||!!parseFloat(c.toString());return{...o,puid17:p.toString()}}getTargetings(){return this.targetingService.collect().getResultTargetings()}};var Dt=(r=>(r.SITE_DATA="SiteData",r.PAGE_DATA="PageData",r.USER="User",r.SPLIT_TESTING="SplitTesting",r.SEGMENTS="Segments",r.MATCH="Match",r))(Dt||{});let m2=class{},g2=class{constructor(o){this.entrySource=o.entrySource||"",this.currentSite=o.currentSite||"",this.isDevMode=o.isDevMode||!1,this.advTest=o.advTest||"",this.sessionDepth=o.sessionDepth||0,this.isInternal=o.isInternal||!1,this.type=Dt.SITE_DATA}},ho=class extends m2{collect(o){const i=this.getCollectorData();o.write(i)}},y2=class extends ho{constructor(o,i,u,c,p,d){super(),this.currentEntrySource=o,this.currentSite=i,this.isDevMode=u,this.advTest=c,this.sessionDepth=p,this.isInternal=d,this.collectorData=new g2({entrySource:this.currentEntrySource,currentSite:this.currentSite,isDevMode:this.isDevMode,advTest:this.advTest,sessionDepth:this.sessionDepth,isInternal:this.isInternal})}getCollectorData(){return this.collectorData}},b2=class{constructor(o){this.type=Dt.SPLIT_TESTING,this.userGroup=o.userGroup,this.userGroupOf2=o.userGroupOf2,this.userGroupOf4=o.userGroupOf4}},w2=class extends ho{constructor(o,i,u){super(),this.userGroup=o,this.userGroupOf2=i,this.userGroupOf4=u,this.collectorData=new b2({userGroup:this.userGroup,userGroupOf2:this.userGroupOf2,userGroupOf4:this.userGroupOf4})}getCollectorData(){return this.collectorData}},v2=class{constructor(o){this.sectionType=o.sectionType||"",this.pageId=o.pageId||"",this.sportName=o.sportName||[],this.subSportName=o.subSportName||[],this.tags=o.tags||[],this.blogWebname=o.blogWebname||"",this.pageType=o.pageType||"",this.betsType=o.betsType||"",this.infiniteMaterialOrder=o.infiniteMaterialOrder,this.type=Dt.PAGE_DATA}},E2=class extends ho{constructor(o,i,u,c,p,d,a,h,y){super(),this.sectionType=o,this.pageId=i,this.sportName=u,this.subSportName=c,this.tags=p,this.blogWebname=d,this.pageType=a,this.betsType=h,this.infiniteMaterialOrder=y,this.collectorData=new v2({sectionType:this.sectionType,pageId:this.pageId,sportName:this.sportName,subSportName:this.subSportName,tags:this.tags,blogWebname:this.blogWebname,pageType:this.pageType,betsType:this.betsType,infiniteMaterialOrder:this.infiniteMaterialOrder})}getCollectorData(){return this.collectorData}},_2=class{constructor(o){this.isRegistered=o.isRegistered||!1,this.vpnCountryCode=o.vpnCountryCode,this.geoRegion=o.geoRegion,this.type=Dt.USER}},A2=class extends ho{constructor(o,i,u){super(),this.isRegistered=o,this.vpnCountryCode=i,this.geoRegion=u,this.collectorData=new _2({isRegistered:this.isRegistered,vpnCountryCode:this.vpnCountryCode,geoRegion:this.geoRegion})}getCollectorData(){return this.collectorData}},I2=class{constructor(o){this.segmentsData=o.segmentsData,this.bothSites=o.bothSites,this.betting=o.betting,this.type=Dt.SEGMENTS}},T2=class extends ho{constructor(o,i,u){super(),this.segmentsData=o,this.bothSites=i,this.betting=u,this.collectorData=new I2({segmentsData:this.segmentsData,bothSites:this.bothSites,betting:this.betting})}getCollectorData(){return this.collectorData}},S2=class{constructor(o){this.isMatchEnded=o.isMatchEnded,this.tourName=o.tourName,this.type=Dt.MATCH}},R2=class extends ho{constructor(o,i){super(),this.isMatchEnded=o,this.tourName=i,this.collectorData=new S2({isMatchEnded:this.isMatchEnded,tourName:this.tourName})}getCollectorData(){return this.collectorData}},B2=class{constructor(o){this.collectors=o}update(o){this.collectors=o}collect(){const o=this.create();for(const i of this.collectors)i.collect(o);return o}},C2=class{constructor(){this._result={puid16:""}}getResultTargetings(){return this._result}writeSiteData(o){this._result.puid2=o.currentSite,this._result.puid6=o.sessionDepth.toString(),this._result.puid12=o.entrySource,this._result.puid17="",this._result.puid18=o.isDevMode?"true":"",this._result.puid19=o.advTest}writeSplitTesting(o){this._result.puid14=o.userGroup,this._result.puid21=o.userGroupOf2,this._result.puid22=o.userGroupOf4}writePageData(o){var i;this._result.puid1=o.pageId,this._result.puid3=o.sportName.join(":"),this._result.puid4=o.tags.join(":"),this._result.puid5=o.blogWebname,this._result.puid7=o.sectionType,this._result.puid8=o.pageType,this._result.puid10=o.subSportName.join(":"),this._result.puid13=o.betsType,this._result.puid35=(i=o.infiniteMaterialOrder)!=null?i:""}writeUser(o){this._result.puid11=o.isRegistered?"1":"",this._result.puid29=o.geoRegion,this._result.puid30=o.vpnCountryCode}writeSegments(o){this._result.puid9=o.bothSites,this._result.puid15=o.betting;const i=Object.keys(o.segmentsData).filter(u=>o.segmentsData[u]==="1");this._result.puid20=i.join(":")}writeMatch(o){this._result.puid33=o.isMatchEnded?"0":"1",this._result.puid34=o.tourName}write(o){o.type===Dt.SITE_DATA&&this.writeSiteData(o),o.type===Dt.PAGE_DATA&&this.writePageData(o),o.type===Dt.SPLIT_TESTING&&this.writeSplitTesting(o),o.type===Dt.USER&&this.writeUser(o),o.type===Dt.SEGMENTS&&this.writeSegments(o),o.type===Dt.MATCH&&this.writeMatch(o)}},O2=class extends B2{constructor(o,i,u,c,p,d){super([o,i,u,c,p,d]),this._siteDataCollector=o,this._splitTesting
707Collector=i,this._pageDataCollector=u,this._userCollector=c,this._segmentsCollector=p,this._matchCollector=d}create(){return new C2}};const L2="https://www.googletagservices.com/tag/js/gpt.js";let N2=class extends Mp{constructor(){super(...arguments),this.refreshCounter=0}log(o,i){console.info(`[SPORTS][YaDirect]: ${o}: `,i)}register(o,i,u){const c=u.name;this.log(`Init block '${c}' with params`,{id:o,lazy:i})}load(o,i,u){var c;const p=u.name;this.refreshCounter+=1;const d=()=>{this.log(`Block '${p}' rendered with container id`,o),Bt.emitEvent(Ke.BANNER_RENDER,o)},a=y=>{this.log(`Block '${p}' error while loading`,y),Bt.emitEvent(Ke.BANNER_ERROR,[{message:`${y.type}, ${y.text}`,status:y.code}])},h=()=>{this.log(`Block '${p}' loaded stub with contained id`,o),Bt.emitEvent(Ke.BANNER_STUB,o)};(c=window.Ya)==null||c.Context.AdvManager.render({blockId:u.blockId,renderTo:o,async:!0,pageNumber:this.refreshCounter,onRender:d,onError:a,onStub:h})}update(){}},D2=class{constructor(o){this._params=this._getParams(o)}update(o){this._params=this._getParams(o)}get(o){return this._params.get(o)||null}_getParams(o){return new Map(o.params.map(({id:i,data:u})=>[i,u]))}},x2=class{constructor(o){this._provider=o}get(o){const i=this._provider.get(o);if(!i)throw new Pe(`Не найдены параметры крутилки для идентификатора '${o}'.`);return i}},U2=class{register(o,i,u){const c=this._loaders.get(u.type);if(!c)throw new Pe(`Не найден загрузчик баннеров для типа ${u.type}!`);return c.register(o,i,u.data)}constructor(o){if(!(o!=null&&o.length))throw new Pe("Отсутствуют зарегистрированные загрузчики баннеров.");this._loaders=new Map;for(const i of o)this._loaders.set(i.type,i);this._libs=new Map}init(){for(const i of this._loaders.values())this._libs.set(i.type,i.init());const o=Array.from(this._libs.values());return Promise.all(o)}async load(o,i,u){const c=this._loaders.get(i.type);if(!c)throw new Pe(`Не найден загрузчик баннеров для типа ${i.type}!`);const p=this._libs.get(c.type);if(!p)throw new Pe(`Отсутствует инициализация загрузчика ${c.type}`);return await p,c.load(o,u,i.data)}async update(o,i,u,c){const p=this._loaders.get(c.type);if(!p)throw new Pe(`Не найден загрузчик баннеров для типа ${c.type}!`);const d=this._libs.get(p.type);if(!d)throw new Pe(`Отсутствует инициализация загрузчика ${p.type}`);return await d,p.update(o,i,u,c.data)}};var Ks=(r=>(r.ADFOX="adfox",r.YA_DIRECT="ya-direct",r.GOOGLE_AD_MANAGER="google-ad-manager",r))(Ks||{});const k2=[Lp,Pp,L2];function qc(r){return r.target===vp&&!!r.customInnerViewName}function Vc(r){return r.iframeContainer!==void 0}function P2(r){return r.theme!==void 0}function Hc(r){return r.mountedIframeContainer!==void 0}let M2=class{constructor(){this.isAdControllerInitialized=!1,this.isAdDisabled=!1,this.adLoadersFacade=null,this.adConfigsService=null,this.adParamsService=null,this.canSwitchSiteTheme=!0,this.adAdfoxTargetingsService=null,this.shouldWaitForTargetingsUpdate=!1,this.wereTargetingsUpdated=!1,this.allTargetingsObject=null,this.adSlots=new Map,this.adConfigs=null,this.adParams=null,this.afterInitCallback=null}listenAdResponse(){window.addEventListener(Z1,o=>{let i;try{i=JSON.parse(o.data)}catch{i=null}i&&(qc(i)||Vc(i)||Hc(i))&&this.getAndHandleAdResponseData(i),i&&P2(i)&&this.invokeCallbackForIframeContainers(i)},!1),window.addEventListener(X1,o=>{this.handleDispatchEvents(o)}),window.addEventListener(vp,o=>{this.handleDispatchEvents(o)}),window.addEventListener(ev,o=>{this.handleDispatchEvents(o)}),Bt.onEvent(Ke.BANNER_STUB,o=>{var i;const u=this.adSlots.get(o);(i=u?.adEventCallback)==null||i.call(u,Ke.BANNER_STUB)}),Bt.onEvent(Ke.BANNER_LOAD,(o,i={})=>{var u;const c=this.adSlots.get(o);(u=c?.adEventCallback)==null||u.call(c,Ke.BANNER_LOAD,i)}),Bt.onEvent(Ke.BANNER_TARGETINGS,(o,i)=>{var u;const c=this.adSlots.get(o);(u=c?.adEventCallback)==null||u.call(c,Ke.BANNER_TARGETINGS,i)}),Bt.onEvent(Ke.BANNER_RENDER,o=>{var i;const u=this.adSlots.get(o);(i=u?.adEventCallback)==null||i.call(u,Ke.BANNER_RENDER)}),Bt.onEvent(Ke.CONTROLLER_INITIALIZED,()=>{var o;(o=this.afterInitCallback)==null||o.call(this),this.adSlots.forEac
707h(i=>{var u;(u=i.adEventCallback)==null||u.call(i,Ke.CONTROLLER_INITIALIZED)})})}handleDispatchEvents(o){const i=o.detail||null;this.getAndHandleAdResponseData(i)}getAndHandleAdResponseData(o){o&&(qc(o)&&this.findSlotAndInvokeCallbackWithData(o,{customInnerViewName:o.customInnerViewName}),Vc(o)&&this.findSlotAndSetIframeContainer(o),Hc(o)&&this.findSlotAndInvokeMountedIframeCallback(o))}invokeCallbackForIframeContainers(o){this.adSlots.forEach(i=>{var u;i.adSlotData.iframeContainer&&((u=i.adEventCallback)==null||u.call(i,Ke.WIDGET_SET_SITE_THEME,{theme:o.theme}))})}getAdSlotByElementId(o){if(!o)return;const i=document.querySelector(`#${o}`),u=i?.closest(".ad-slot-container-view");if(!u)return;const c=u.querySelector(".ad-slot-container-view__ad-place");if(!c)return;const p=c.id,d=this.adSlots.get(p);if(d)return{adSlot:d,containerId:p}}findSlotAndInvokeCallbackWithData(o,i){var u;const{adSlot:c,containerId:p}=this.getAdSlotByElementId(o.innerElementId)||{};if(!c||!p)return;const d=ei.get();c.adSlotData={...o,customInnerViewName:i.customInnerViewName,slotSiteTheme:this.canSwitchSiteTheme&&d?d:""},this.adSlots.set(p,c),(u=c?.adEventCallback)==null||u.call(c,Ke.BANNER_RENDER,c.adSlotData)}findSlotAndSetIframeContainer(o){var i;const{adSlot:u,containerId:c}=this.getAdSlotByElementId(o.iframeContainer)||{};if(!u||!c)return;const p=ei.get();u.adSlotData={...o,iframeContainer:o.iframeContainer,slotSiteTheme:this.canSwitchSiteTheme&&p?p:""},this.adSlots.set(c,u),(i=u?.adEventCallback)==null||i.call(u,Ke.BANNER_RENDER,u.adSlotData)}findSlotAndInvokeMountedIframeCallback(o){var i;const{adSlot:u}=this.getAdSlotByElementId(o.mountedIframeContainer)||{};if(!u)return;const c=ei.get();(i=u?.adEventCallback)==null||i.call(u,Ke.WIDGET_SET_SITE_THEME,{theme:c})}initAdDisabled(o=!1){const i=new tv([new rv(o),new iv]);this.isAdDisabled=i.getIsAdDisabled()}getIsAdControllerInitialized(){return this.isAdControllerInitialized}getIsAdDisabled(){return this.isAdDisabled}async init({adDisabled:o,canSwitchSiteTheme:i}){try{if(this.isAdControllerInitialized||(this.listenAdResponse(),this.initAdDisabled(o),this.isAdDisabled)||!this.adParams||!this.adConfigs)return;const u=await this.getAdLoaders();this.adLoadersFacade=new U2(u),this.canSwitchSiteTheme=!!i,this.adParamsService=this.getAdParamsService(this.adParams),this.adConfigsService=this.getAdConfigsService(this.adConfigs),await this.adLoadersFacade.init(),this.isAdControllerInitialized=!0,Bt.emitEvent(Ke.CONTROLLER_INITIALIZED)}catch(u){const c=u?.target,p=c?.src;throw p&&k2.includes(p)?new sv("Инициализация контроллера рекламного ядра заблокирована блокировщиком рекламы"):new Pe(`Не удалось инициализировать контроллер рекламного ядра: '${u}'`)}}async fetchAdConfigs({fetcher:o,adConfigsUrl:i,adParamsUrl:u,adDisabled:c,cacheService:p}){const d=$f(),a={adConfigs:null,adParams:null,adErrorMessage:""};if(c)return a.adErrorMessage="[AdBase] Включен параметр adDisabled",d.warn(a.adErrorMessage),a;if(!i||!u)return a.adErrorMessage="[AdBase] Отсутствует url сервиса параметров крутилок",d.error(a.adErrorMessage),a;let h,y;try{const g=p?.get(_c),b=p?.get(Ac);if(g&&b)return this.adConfigs=g,{adConfigs:g,adParams:b,adErrorMessage:""};h=await o(i,{}),y=await o(u,{})}catch(g){return a.adErrorMessage=`[AdBase] Не удалось загрузить конфиги ${i} и ${u}: ${g}`,d.error(a.adErrorMessage),a}if(h.status>=400||y.status>=400)return a.adErrorMessage=`[AdBase] Не удалось загрузить конфиги ${i} и ${u} (статус: ${y.status})`,d.error(a.adErrorMessage),a;try{const g=await h.json(),b=await y.json();return g&&b&&(p?.set(_c,g,{ttl:Ic}),p?.set(Ac,b,{ttl:Ic})),this.adConfigs=g,{adConfigs:g,adParams:b,adErrorMessage:""}}catch(g){return a.adErrorMessage=`[AdBase] Ошибка обработки json с конфигами: ${g}`,d.error(a.adErrorMessage),a}}addSlot(o,i,u){const c={adSlotId:o,adEventCallback:u,adSlotData:{},isRendered:!1};this.adSlots.set(i,c)}registerAdSlot(o,i){var u;const c=this.adSlotSetConfigsAndParams(o);c&&((u=this.adLoadersFacade)==null||u.register(o,i,c.adSlotParams))}adSlotSetConfigsAndParams(o){var i,u,c;if(!this.adConfigsService)throw new Pe("Не проинициализирован сервис конфигов");if(!this.adParamsService)throw new Pe("Не проинициализирован сервис параметров");const p=this.adSlots.get(o);if(!p)return;const d=ei.get(),a=this.adConfigsService.get(p.adSlotId,{siteTheme:d,pageTags:((i=this.allTargetingsObject)==null?void 0:i.tags)||[],authorIds:((c=(u=window?.Sports)==null?void 0:u.pageData)==null?void 0:c.authorIds)||""}),h=this.adParamsService.get(a.paramsId);return this.adSlots.set(o,{...p,adSlotConfigs:a,adSlotParams:h}),{adSlotConfigs:a,adSlotParams:h}}async renderAdSlot(o){var i;if(!this.adLoadersFacade)throw new Pe("Не проинициализирован фасад рекламн
707ых лоадеров");const u=this.adSlots.get(o);if(!u||!u.adSlotConfigs||!u.adSlotParams)throw new Pe(`Не найден рекламный слот с id контейнера ${o} или у слота отсутствуют конфиги/параметры`);if(u.adSlotConfigs.isRestricted){(i=u.adEventCallback)==null||i.call(u,Ke.BANNER_RESTRICTED);return}await this.adLoadersFacade.load(o,u.adSlotParams,u.adSlotConfigs),this.adSlots.set(o,{...u,isRendered:!0})}async updateAdSlot(o){if(!this.adLoadersFacade)throw new Pe("Не проинициализирован фасад рекламных лоадеров");const i=this.adSlots.get(o);if(!i)throw new Pe(`Не найден рекламный слот с id контейнера ${o}`);if(!i.adSlotConfigs||!i.adSlotParams)throw new Pe(`У рекламного слота ${o} отсутствуют конфиги или параметры`);const u=typeof i.refreshCounter=="number"?i.refreshCounter:1;await this.adLoadersFacade.update(o,i.adSlotConfigs,u,i.adSlotParams),i.refreshCounter=u+1,this.adSlots.set(o,i)}isAdControllerUpdatedWithTargetings(){return this.shouldWaitForTargetingsUpdate&&!this.wereTargetingsUpdated}activateWaitingForTargetingsUpdate(){this.shouldWaitForTargetingsUpdate=!0}async updateTargetingsService(){var o;this.wereTargetingsUpdated=!1;const i=await this.getTargetingCollectors();(o=this.adAdfoxTargetingsService)==null||o.update(Object.values(i)),this.wereTargetingsUpdated=!0,this.adSlots.forEach(u=>{u.isRendered||u.adEventCallback(Ke.BANNER_ALLOW_RENDER)})}onAfterInitCallback(o){this.afterInitCallback=o}getAdConfigsService(o){const i=new uv("preset",o),u=new Pv,c=new Mv([new cv("boolean"),new gv("geo"),new _v("or",u),new fv("and",u),new vv("not",u),new bv("location"),new hv("entry_source"),new Iv("site"),new Sv("site_theme",this.canSwitchSiteTheme),new Nv("random-selector"),new xv("page_tags"),new kv("author_ids")]);return u.init(c),new $v(i,u)}getAdParamsService(o){const i=new D2(o);return new x2(i)}async getAdLoaders(){this.adAdfoxTargetingsService=await this.getTargetingsService();const o=new h2(Ks.ADFOX,this.adAdfoxTargetingsService),i=new N2(Ks.YA_DIRECT);return[o,i]}async getTargetingCollectors(){const{adTargetingsFacade:o}=wp();return this.allTargetingsObject=await o.getAllTargetings(),{siteDataTargetingCollector:new y2(this.allTargetingsObject.entrySource,this.allTargetingsObject.currentSite,this.allTargetingsObject.isDevMode,this.allTargetingsObject.advTest,this.allTargetingsObject.sessionDepth,this.allTargetingsObject.isInternal),splitTestingTargetingCollector:new w2(this.allTargetingsObject.userGroup,this.allTargetingsObject.userGroupOf2,this.allTargetingsObject.userGroupOf4),pageDataTargetingCollector:new E2(this.allTargetingsObject.sectionType,this.allTargetingsObject.pageId,this.allTargetingsObject.sportName,this.allTargetingsObject.subSportName,this.allTargetingsObject.tags,this.allTargetingsObject.blogWebname,this.allTargetingsObject.pageType,this.allTargetingsObject.betsType,this.allTargetingsObject.infiniteMaterialOrder),userTargetingCollector:new A2(this.allTargetingsObject.isRegistered,this.allTargetingsObject.vpnCountryCode,this.allTargetingsObject.geoRegion),segmentsTargetingCollector:new T2(this.allTargetingsObject.segmentsData,this.allTargetingsObject.bothSites,this.allTargetingsObject.betting),matchTargetingCollector:new R2(this.allTargetingsObject.isMatchEnded,this.allTargetingsObject.tourName)}}async getTargetingsService(){const o=await this.getTargetingCollectors();return new O2(o.siteDataTargetingCollector,o.splitTestingTargetingCollector,o.pageDataTargetingCollector,o.userTargetingCollector,o.segmentsTargetingCollector,o.matchTargetingCollector)}setAdConfigsAndParams(o,i){this.adConfigs=o,this.adParams=i}getAdSlotPlaceholderSizes(o){var i;const u=(i=this.adConfigs)==null?void 0:i.configs.find(c=>c.id===o);return{placeholderSize:u?.data.default.placeholderSize||[0,0],screenType:u?.data.default.screenType}}};const wt=new M2;wt.activateWaitingForTargetingsUpdate.bind(wt);wt.updateTargetingsService.bind(wt);wt.onAfterInitCallback.bind(wt);wt.setAdConfigsAndParams.bind(wt);
707function zc(r=[0,0]){const o=r[0],i=r[1],u=typeof o=="string"?o:`${o}px`,c=typeof i=="string"?i:`${i}px`;return[u,c]}const $2="ad-slot-view-id-";function F2(){return $2+Ju()}const j2=je(()=>Fe(()=>import("./BetsBonusMenu-e990b3aa-DemmKCNR.js"),__vite__mapDeps([0,1,2,3,4,5]))),G2=je(()=>Fe(()=>import("./CatfishStickerBubble-a7af2ee7-Di3wLw-K.js"),__vite__mapDeps([6,7,1,2]))),q2=je(()=>Fe(()=>import("./CatfishWithBetsElements-d1eb43ed-B2nYgbAI.js"),__vite__mapDeps([8,1,2]))),V2=je(()=>Fe(()=>import("./DesktopCatfish-2fd2864b-Bf6Hawze.js"),__vite__mapDeps([9,5,1,2,10]))),H2=Le({__name:"NativeCreative",props:{otherData:{type:Object,required:!0},analyticsData:{type:Object,required:!0}},setup(r){const o=je(()=>Fe(()=>import("./NativeCreativeRedesigned-7a41f50c-3W-w17NS.js"),__vite__mapDeps([11,12,1,2]))),i=je(()=>Fe(()=>import("./NativeCreativeLegacy-384d26cf-DRGclvYe.js"),__vite__mapDeps([13,1,2]))),u=r;return(c,p)=>(oe(),Oe(Ct(u.otherData.isRedesigned?q(o):q(i)),{"other-data":u.otherData,"analytics-data":u.analyticsData},null,8,["other-data","analytics-data"]))}}),z2=je(()=>Fe(()=>import("./RenderableCatfish-79a65a3c-BpWY-sVA.js"),__vite__mapDeps([14,1,2]))),W2=je(()=>Fe(()=>import("./SmartAppCreative-c011cf46-BWTeUw6z.js"),__vite__mapDeps([15,7,1,2]))),Y2=je(()=>Fe(()=>import("./SquareTopQuiz-99c79231-C_FiPUDb.js"),__vite__mapDeps([16,1,2,4,3,12]))),K2=je(()=>Fe(()=>import("./TopBrandingCreative-3309ae0b-BqZUq4sy.js"),__vite__mapDeps([17,7,1,2]))),Q2=je(()=>Fe(()=>import("./MobileInterscroller-5b89ca1b-CSOU2guH.js"),__vite__mapDeps([18,1,2]))),J2=je(()=>Fe(()=>import("./BetsCommentCreative-c937c8e8-DPHXxT_N.js"),__vite__mapDeps([19,4,12,1,2]))),Z2=je(()=>Fe(()=>import("./BookGadget-2cbe45a6-QnzPb6CJ.js"),__vite__mapDeps([20,1,2]))),X2=je(()=>Fe(()=>import("./BrandingCollapsing-d6708acb-DORsoFI2.js"),__vite__mapDeps([21,1,2,3,4,22]))),e_=je(()=>Fe(()=>import("./BrandingCollapsingHtml-ddce7941-Bydg-NHD.js"),__vite__mapDeps([23,1,2,3,4,22]))),t_=je(()=>Fe(()=>import("./InreadMatchCreative-711a1384-qHocWolo.js"),__vite__mapDeps([24,25,1,2]))),r_=je(()=>Fe(()=>import("./DailyBonusCreative-01368ed9-DfJCeJTq.js"),__vite__mapDeps([26,10,1,2,12]))),n_=je(()=>Fe(()=>import("./TournamentBets-a826f28a-lzVD5vFR.js"),__vite__mapDeps([27,25,1,2]))),o_=je(()=>Fe(()=>import("./WidgetCatfish-ec11924b-D1FHNOZf.js"),__vite__mapDeps([28,5,1,2]))),i_=je(()=>Fe(()=>import("./TagsHeader-bbad8869-DDPn5OZF.js"),__vite__mapDeps([29,10,1,2]))),a_=je(()=>Fe(()=>import("./BrandingPopup-a01d9db3-DEnTLOSJ.js"),__vite__mapDeps([30,3,4,1,2,10]))),s_=je(()=>Fe(()=>import("./BrandingSticker-81e9f5d6-DYTUHzs7.js"),__vite__mapDeps([31,3,4,1,2,10]))),u_=je(()=>Fe(()=>import("./SimpleIframe-381cd0b2-DP5z5Vc0.js"),__vite__mapDeps([32,1,2]))),l_=je(()=>Fe(()=>import("./WorldCupPopupSticker-4e240c0b-6XPQTJqO.js"),__vite__mapDeps([33,1,2,4,3,5,25,10])));function $p(r,o,i){var u=i||{},c=u.noTrailing,p=c===void 0?!1:c,d=u.noLeading,a=d===void 0?!1:d,h=u.debounceMode,y=h===void 0?void 0:h,g,b=!1,v=0;function w(){g&&clearTimeout(g)}function _(A){var B=A||{},D=B.upcomingOnly,x=D===void 0?!1:D;w(),b=!x}function T(){for(var A=arguments.length,B=new Array(A),D=0;D<A;D++)B[D]=arguments[D];var x=this,W=Date.now()-v;if(b)return;function U(){v=Date.now(),o.apply(x,B)}function S(){g=void 0}!a&&y&&!g&&U(),w(),y===void 0&&W>r?a?(v=Date.now(),p||(g=setTimeout(y?S:U,r))):U():p!==!0&&(g=setTimeout(y?S:U,y===void 0?r-W:r))}return T.cancel=_,T}function _x(r,o,i){var u={},c=u.atBegin,p=c===void 0?!1:c;return $p(r,o,{debounceMode:p!==!1})}const Yo=(r,o)=>{const i=r.__vccOpts||r;for(const[u,c]of o)i[u]=c;return i},c_={},d_={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"34",height:"34",viewBox:"0 0 34 34"};function f_(r,o){return oe(),ye("svg",d_,o[0]||(o[0]=[jy(`<defs><filter id="a" width="275%" height="275%" x="-93.8%" y="-93.7%" filterUnits="objectBoundingBox"><feOffset dx="-1" dy="-1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="4.5"></feGaussianBlur><feColorMatrix in="shadowBlurOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0.184313725 0 0 0 0 0.368627451 0 0 0 0.3 0">
707</feColorMatrix><feOffset dx="-1" dy="-1" in="SourceAlpha" result="shadowOffsetOuter2"></feOffset><feGaussianBlur in="shadowOffsetOuter2" result="shadowBlurOuter2" stdDeviation=".5"></feGaussianBlur><feColorMatrix in="shadowBlurOuter2" result="shadowMatrixOuter2" values="0 0 0 0 0 0 0 0 0 0.184313725 0 0 0 0 0.368627451 0 0 0 0.3 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="shadowMatrixOuter2"></feMergeNode></feMerge></filter><path id="b" d="M15.119 10.864a3.008 3.008 0 1 1-4.255 4.255L8 12.255l-2.864 2.864
708                A3.008 3.008 0 0 1 .88 10.864L3.745 8 .881 5.136A3.008 3.008 0 1 1 5.136.88
709                L8 3.745 10.864.881a3.008 3.008 0 1 1 4.255 4.255L12.255 8l2.864 2.864Z"></path></defs><g fill="none" fill-rule="nonzero"><g transform="translate(10 10)"><use xlink:href="#b" fill="#000" filter="url(#a)"></use><use xlink:href="#b" fill="#FFF"></use></g><path fill="#002F5E" d="m19.426 18 4.279 4.278a1.008 1.008 0 0 1-1.427 1.427
710            L18 19.426l-4.278 4.279a1.008 1.008 0 0 1-1.427-1.427
711            L16.574 18l-4.279-4.278a1.008 1.008 0 0 1 1.427-1.427
712            L18 16.574l4.278-4.279a1.008 1.008 0 0 1 1.427 1.427L19.426 18Z"></path></g>`,2)]))}const p_=Yo(c_,[["render",f_]]),h_={class:"slot-catfish__wrapper"},m_={class:"slot-catfish__content b-catfish__content"},g_=300,y_=100,b_=Le({__name:"RootCatfish",props:{containerId:{type:String,required:!0},action:{type:String,default:""}},emits:["onVisibleByScroll","on-hide"],setup(r,{emit:o}){const i=r,u=o,c=fe(null),p=fe(!1);let d;function a(b){!c.value||!b||(d=Xu({analyticsDataId:b}))}function h(){!d||!c.value||d.sendRealImpressionAnalytics(c.value)}function y(){if(!c.value)return;const b=c.value.closest(".ad-slot"),v=b.dataset.programmaticType,w=b.dataset.analyticsDataId;v&&w&&(a(w),h())}const g=$p(y_,()=>{window.scrollY<g_||(p.value=!0,window.removeEventListener("scroll",g),u("onVisibleByScroll"))});return He(p,(b,v)=>{b&&!v&&!i.action&&y()}),rt(()=>{window.addEventListener("scroll",g)}),(b,v)=>(oe(),ye("div",{ref_key:"rootElement",ref:c,class:Xe(["slot-catfish b-catfish",[i.action?i.action.toLowerCase():""]])},[Te("div",h_,[Te("button",{class:"slot-catfish__close b-catfish__close",onClick:v[0]||(v[0]=w=>u("on-hide"))},[xe(p_,{class:"slot-catfish__close-icon"})]),Te("div",m_,[et(b.$slots,"default"),et(b.$slots,"custom-inner-view",My($y({isShown:p.value})))])])],2))}}),w_={};function v_(r,o){return oe(),ye("div",null,[et(r.$slots,"default"),et(r.$slots,"custom-inner-view")])}const E_=Yo(w_,[["render",v_]]),__={},A_={class:"ad-slot-branding-adfox"};function I_(r,o){return oe(),ye("div",A_,[et(r.$slots,"default",{},void 0,!0),et(r.$slots,"custom-inner-view",{},void 0,!0)])}const T_=Yo(__,[["render",I_],["__scopeId","data-v-99ea2889"]]),S_={},R_={class:"postscript-news"};function B_(r,o){return oe(),ye("div",R_,[et(r.$slots,"default"),et(r.$slots,"custom-inner-view")])}const C_=Yo(S_,[["render",B_]]),O_={class:"branding-default-view"},L_=Le({__name:"TopBranding",setup(r){return nf(()=>{document.body.classList.add("not_branding")}),(o,i)=>(oe(),ye("div",null,[Te("div",O_,[et(o.$slots,"default")]),et(o.$slots,"custom-inner-view")]))}}),N_={},D_={class:"in-read-wrapper is-ready"},x_={class:"in-read-yadv in-read-placement is-video"};function U_(r,o){return oe(),ye("div",D_,[Te("div",x_,[et(r.$slots,"default",{},void 0,!0)])])}const k_=Yo(N_,[["render",U_],["__scopeId","data-v-f3776101"]]),P_=Le({__name:"FullscreenView",props:{isRendered:{type:Boolean,default:!1}},setup(r){const o=r;let i;const u=Fy("rootElement"),c=()=>{const p=u.value.closest(".ad-slot").dataset.analyticsDataId;p&&(i=Xu({analyticsDataId:p}))};return He(()=>o.isRendered,()=>{var p;if(o.isRendered){c();const d=document.querySelector(".mobile-fullscreen"),a=d?.querySelector("iframe");a&&((p=a.contentDocument)==null||p.body.addEventListener("click",h=>{i?.sendClickAnalytics(h.target)}))}}),(p,d)=>(oe(),ye("div",{ref_key:"rootElement",ref:u},[et(p.$slots,"default")],512))}}),M_=["data-type"],$_=["id"],F_=Le({__name:"ContainerView",props:{containerId:{type:String,required:!0},sizes:{type:Array,required:!0,validator(r){return r.length===2}},slotId:{type:String,default:""}},emits:["childrenChanged"],setup(r,{emit:o}){const i=r,u=o,c=fe(null);let p=null;const d=ae(()=>i.sizes[0]),a=ae(()=>i.sizes[1]);return rt(()=>{const h=c.value;h&&(p=new MutationObserver(()=>{u("childrenChanged",h.childElementCount>0)}),p.observe(h,{childList:!0,subtree:!0}))}
712),co(()=>p?.disconnect()),(h,y)=>(oe(),ye("div",{class:"ad-slot-container-view","data-type":i.slotId,style:nn({maxWidth:d.value,maxHeight:a.value})},[Te("div",{id:i.containerId,ref_key:"adPlaceRef",ref:c,class:"ad-slot-container-view__ad-place"},null,8,$_)],12,M_))}}),j_=new Map([[Me.BETS_COMMENT_CREATIVE,J2],[Me.BOOK_GADGET,Z2],[Me.BRANDED_NOTIFICATION_BETS_BONUS_MENU,j2],[Me.BRANDING_COLLAPSING,X2],[Me.BRANDING_COLLAPSING_HTML,e_],[Me.BRANDING_POPUP,a_],[Me.BRANDING_STICKER,s_],[Me.CATFISH_STICKER_BUBBLE,G2],[Me.CATFISH_WITH_BETS_ELEMENTS,q2],[Me.CYBER_TOURNAMENT_BETS,n_],[Me.DAILY_BONUS,r_],[Me.DESKTOP_CATFISH,V2],[Me.MOBILE_INTERSCROLLER,Q2],[Me.NATIVE_CREATIVE,H2],[Me.RENDERABLE_CATFISH,z2],[Me.SMARTAPP_CREATIVE,W2],[Me.SQUARE_TOP_QUIZ,Y2],[Me.TOP_BRANDING_CREATIVE,K2],[Me.WIDGET_CATFISH,o_],[Me.INREAD_MATCH,t_],[Me.TAGS_HEADER,i_],[Me.SIMPLE_IFRAME,u_],[Me.WORLD_CUP_POPUP_STICKER,l_],[Rt.CATFISH,b_],[Rt.DEFAULT,E_],[Rt.MOBILE_BRANDING,T_],[Rt.POSTSCRIPT_NEWS,C_],[Rt.TOP_BRANDING,L_],[Rt.INREAD_VIDEO,k_],[Rt.FULLSCREEN,P_],[qu.CONTAINER,F_]]);function Ha(r){return j_.get(r)}let G_=class extends Error{constructor(o){super(`[AdSlot] ${o}`)}},za=null;const q_=()=>za||(za=fp.createInstance({config:{entry:"/gql/graphql/"}}),za);var hn=(r=>(r.ONLINE_FANS="online-fans",r.BETTING_ARTICLES_HUB="betting-articles-hub",r.MATERIALS_PAGE="materials-page",r.STAR="star",r.MATCH_CENTER="match-center",r.TAGS="tags",r))(hn||{});hn.ONLINE_FANS+"",hn.BETTING_ARTICLES_HUB+"",hn.MATERIALS_PAGE+"",hn.STAR+"",hn.MATCH_CENTER+"",hn.TAGS+"";function V_({callback:r}){const o=typeof ResizeObserver<"u"?new ResizeObserver(r):null;return{observe:i=>o?.observe(i),unobserve:i=>o?.unobserve(i),disconnect:()=>o?.disconnect()}}const H_=["data-banner-type"],nl=Le({__name:"AdSlot",props:{slotId:{type:String,required:!0},slotRootView:{type:String,default:Rt.DEFAULT},isLazy:{type:Boolean,default:!1},shouldRender:{type:Boolean,default:!0}},setup(r){let o="";const i=r,u=q_(),c=Ha(qu.CONTAINER),p=Ha(i.slotRootView);if(!p)throw new G_(`Не найден корневой шаблон ${i.slotRootView}`);const d=fe({}),a=fe({paramsId:"",placeholderSize:[0,0],slotSize:[0,0],isRestricted:!1,refreshLimit:0,refreshRate:0}),h=fe(!1),y=fe(),g=fe(null),b=fe(!1),v=fe(null),w=fe(null),_=fe(!1),T=ae(()=>zc(a.value.slotSize)),A=fe([0,0]),B=fe(""),D=ae(()=>zc(A.value)),x=fe(null),W=fe(!1);let U=null;function S(re,z){W.value||re.some(J=>J.contentRect.height>z)&&(W.value=!0,U?.disconnect())}function M(){var re;const z=(re=x.value)==null?void 0:re.$el;if(!(z instanceof Element))return;const J=z.getBoundingClientRect().height;U=V_({callback:se=>S(se,J)}),U.observe(z)}const I=ae(()=>W.value?{}:{minWidth:D.value[0],minHeight:D.value[1]}),R=fe(""),C=ae(()=>g.value?g.value.dataset.analyticsDataId:""),V=ae(()=>{if(!g.value)return"";const re=g.value.querySelector("[data-analytics-ad-context]");if(!re)return"";const z=re.dataset.analyticsAdContext;return re?z:""});function F(re){const z=g.value,{refreshRate:J}=a.value;if(!z||!J||re!==zi.RSYA)return;let se;const Ae=of({callback:Ie=>{Ie[0].intersectionRatio===1?se=setTimeout(()=>{wt.updateAdSlot(o).then(()=>{Ae.unobserve(z)}).catch(()=>{})},J*1e3):clearTimeout(se)}});Ae.observe(z)}function ue(re){return typeof re=="object"}function H(re){var z;if(!g.value)return;const J=g.value.querySelector("iframe");J&&((z=J.contentWindow)==null||z.postMessage(JSON.stringify({theme:re}),"*"))}function j(re){return`ad-slot--${re}`}function X(re,z){if(re===Ke.CONTROLLER_INITIALIZED&&te(),(re===Ke.BANNER_STUB||re===Ke.BANNER_RESTRICTED)&&(h.value=!0),re===Ke.BANNER_ALLOW_RENDER&&b.value&&_e(),re===Ke.BANNER_RENDER&&ue(z)&&(d.value=z,R.value=d.value.slotSiteTheme?j(d.value.slotSiteTheme):""),re===Ke.BANNER_TARGETINGS&&ue(z)){const J=localStorage.getItem(tl)===rl;if(!g.value||!J)return;g.value.dataset.targetings=JSON.stringify(z)}if(re===Ke.BANNER_LOAD&&ue(z)){const J=z;if(!g.value||!J)return;for(const[se,Ae]of Object.entries(J))g.value.dataset[se]=Ae;F(J.programmaticType)}if(re===Ke.WIDGET_SET_SITE_THEME){const J=z.theme;R.value=J?j(J):"",H(J)}}const he=[Rt.CATFISH],ge=fe(he.some(re=>re===i.slotRootView)?!1:null);function ne(){ge.value=!0}const be=ae(()=>ge.value!==null?_.value&&ge.value:_.value),P=fe(!1),ee=ae(()=>!d.value||!d.value.customInnerViewName?null:Ha(d.value.customInnerViewName));function Ue(){const re=wt.adSlotSetConfigsAndParams(o);re&&(a.value=re.adSlotConfigs)}async function _e(){var re;Ue(),await wt.renderAdSlot(o),b.value=!1,(re=y?.value)==null||re.disconnect()}function ce(){return wt.isAdControllerUpdatedWithTargetings()?(b.value=!0,!0):!1}async function de(){if(!ce())return _e()}const ve=re=>{re[0].isIntersecting&&de()};async function te(){var re;if(wt.registerAdSlot(o,i.isLazy),i.isLazy&&g.value){y.value=new IntersectionObserver(ve),(re=y?.value)==null||re.observe(g.value);return}await de()}function E(){const re=wt.getAdSlotPlaceholderSizes(i.slotId);A.value=re.placeholderSize,B.value=re.screenType||""}function k(re){re&&(_.value=!0)}rf(()=>{w.value=i.slotId,E()}),nf(()=>{E()});async function Y(){v.value=i.slotId,o=F2(),wt.addSlot(i.slotId,o,X),wt.getIsAdControllerInitialized()&&await te()}return He(()=>i.shouldRender,async re=>{!re||o||await Y()}),rt(async()=>
712{if(M(),!!i.shouldRender){if(wt.getIsAdDisabled()){h.value=!0;return}await Y()}}),co(()=>U?.disconnect()),(re,z)=>(oe(),ye("div",{ref_key:"adSlotRef",ref:g,class:Xe(["ad-slot",[R.value,B.value?`ad-slot--${B.value}`:"",{"ad-slot--hidden":h.value}]]),style:nn(I.value),"data-banner-type":w.value||v.value},[xe(q(p),Rn({ref_key:"adSlotRootViewRef",ref:x},d.value,{"container-id":q(o),class:["ad-root-view",{"ad-root-view--visible":be.value,"ad-root-view--hidden":P.value}],"is-rendered":_.value,onOnVisibleByScroll:ne,onOnHide:z[1]||(z[1]=J=>P.value=!0)}),sa({default:$e(()=>[xe(q(c),{"container-id":q(o),sizes:T.value,onChildrenChanged:k},null,8,["container-id","sizes"])]),_:2},[ee.value?{name:"custom-inner-view",fn:$e(J=>[(oe(),Oe(Ct(ee.value),Rn({style:{"max-width":T.value[0],"max-height":T.value[1]}},d.value,{"analytics-data":{id:C.value,elementContext:V.value},"gql-client":q(u),"cookies-geo-service":q(Qu),"slot-props":J,onOnHide:z[0]||(z[0]=se=>P.value=!0)}),null,16,["style","analytics-data","gql-client","cookies-geo-service","slot-props"]))]),key:"0"}:void 0]),1040,["container-id","class","is-rendered"])],14,H_))}});Rt.DEFAULT;function z_(r,o){return r>0?`${r} ${o}`:o}function Er(r,o,i,u,c=""){let p="";const d=u||i,a=Math.abs(r);return a.toString().indexOf(".")>-1?p=i:a?a%10==1&&a%100!=11?p=o:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?p=i:p=d:p=c,/%d/g.test(p)&&(p=p.replace(/%d/g,a.toString())),p}function W_(r,o){const i=Math.abs(r.difference);let u=0;return i<3600*1e3?i<20*1e3?o({type:"now"}):i<60*1e3?(u=Math.floor(i/1e3),o({type:"less_minute",delta:u})):(u=Math.floor(i/6e4),o({type:"less_hour",delta:u})):i<1440*6e4?(u=Math.floor(i/(60*6e4)),o({type:"less_day",delta:u})):i<720*60*6e4?(u=Math.floor(i/(1440*6e4)),o({type:"less_30days",delta:u})):i<360*24*60*6e4?(u=r.now.getMonth()-r.month,u<0&&(u+=12),o({type:"less_year",delta:u})):(u=new Date(i).getFullYear()-1970,o({type:"more_year",delta:u}))}const Fp="прямо сейчас",ha="только что",ol="сегодня",il="вчера",qo="назад",Wi="через",Tt={sec:{name1:"секунду",name2:"секунды",name3:"секунд",short:"сек."},min:{name1:"минуту",name2:"минуты",name3:"минут",short:"мин."},hour:{name1:"час",name2:"часа",name3:"часов",short:"час."},day:{name1:"день",name2:"дня",name3:"дней"},month:{name1:"месяц",name2:"месяца",name3:"месяцев"},year:{name1:"год",name2:"года",name3:"лет"}},An=[{nom:"Январь",gen:"января"},{nom:"Февраль",gen:"февраля"},{nom:"Март",gen:"марта"},{nom:"Апрель",gen:"апреля"},{nom:"Май",gen:"мая"},{nom:"Июнь",gen:"июня"},{nom:"Июль",gen:"июля"},{nom:"Август",gen:"августа"},{nom:"Сентябрь",gen:"сентября"},{nom:"Октябрь",gen:"октября"},{nom:"Ноябрь",gen:"ноября"},{nom:"Декабрь",gen:"декабря"}],jp=[{full:"Воскресенье",short:"вс"},{full:"Понедельник",short:"пн"},{full:"Вторник",short:"вт"},{full:"Среда",short:"ср"},{full:"Четверг",short:"чт"},{full:"Пятница",short:"пт"},{full:"Суббота",short:"сб"}],Y_={right_now:Fp,just_now:ha,today:ol,yesterday:il,before:qo,after:Wi,time:Tt,month:An,week:jp},K_=Object.freeze(Object.defineProperty({__proto__:null,after:Wi,before:qo,default:Y_,just_now:ha,month:An,right_now:Fp,time:Tt,today:ol,week:jp,yesterday:il},Symbol.toStringTag,{value:"Module"}));function Q_(r){return W_(r,o=>{let i="";const u=o.type,c=o.delta,{time:p}=K_;switch(u){case"now":return ha;case"less_minute":i=Er(c,p.sec.name1,p.sec.name2,p.sec.name3);break;case"less_hour":i=Er(c,p.min.name1,p.min.name2,p.min.name3);break;case"less_day":i=Er(c,p.hour.name1,p.hour.name2,p.hour.name3);break;case"less_30days":i=Er(c,p.day.name1,p.day.name2,p.day.name3);break;case"less_year":i=Er(c,p.month.name1,p.month.name2,p.month.name3);break;case"more_year":i=Er(c,p.year.name1,p.year.name2,p.year.name3);break}return z_(c,`${i} ${qo}`)})}function an(r){let o="";return r<10&&(o="0"),o+=r,o}var st=(r=>(r.NOW="now",r.FUTURE_LESS_HOUR="future_less_hour",r.FUTURE_LESS_2HOUR="future_less_2hour",r.FUTURE_MORE_2HOUR="future_more_2hour",r.LESS_MINUTES="less_minutes",r.LESS_HOUR="less_hour",r.MORE_YEAR="more_year",r.TODAY="today",r.YESTERDAY="yesterday",r.CURRENT_YEAR="current_year",r))(st||{});function J_(r,o){const i=`${an(r.hours)}:${an(r.minutes)}`,u=Math.abs(r.difference);if(r.is_future){if(u<20*1e3)return o({type:st.NOW});if(u<60*6e4){const c=Math.floor(u/6e4);return o({type:st.FUTURE_LESS_HOUR,minutes:c})}else if(u<120*6e4){const c=Math.floor(u/6e4)-60;return o({type:st.FUTURE_LESS_2HOUR,minutes:c,hours:1})}return o({type:st.FUTURE_MORE_2HOUR,time:i,day:r.day,month:r.month,year:r.fullYear})}if(u<60*6e4){if(u<20*1e3)return o({type:st.NOW});if(u<60*1e3){const c=Math.floor(u/1e3);return o({type:st.LESS_MINUTES,seconds:c})}else{const c=Math.floor(u/6e4);return o({type:st.LESS_HOUR,minutes:c})}}return r.is_today?o({type:st.TODAY,time:i}):r.is_yesterday?o({type:st.YESTERDAY,time:i}):r.is_current_year?o({type:st.CURRENT_YEAR,time:i,month:r.month,day:r.day}):o({type:st.MORE_YEAR,time:i,month:r.month,day:r.day,year:r.fullYear})}function Z_(r){return J_(r,o=>
712{switch(o.type){case st.NOW:return ha;case st.FUTURE_LESS_HOUR:return`${Wi} ${o.minutes} ${Er(o.minutes,Tt.min.name1,Tt.min.name2,Tt.min.name3)}`;case st.FUTURE_LESS_2HOUR:{const i=o.minutes>0?` ${o.minutes} ${Er(o.minutes,Tt.min.name1,Tt.min.name2,Tt.min.name3)}`:"";return`${Wi} 1 ${Tt.hour.name1}${i}`}case st.FUTURE_MORE_2HOUR:return`${o.day} ${An[o.month].gen} ${o.year}, ${o.time}`;case st.LESS_MINUTES:return`${o.seconds} ${Er(o.seconds,Tt.sec.name1,Tt.sec.name2,Tt.sec.name3)} ${qo}`;case st.LESS_HOUR:return`${o.minutes} ${Er(o.minutes,Tt.min.name1,Tt.min.name2,Tt.min.name3)} ${qo}`;case st.TODAY:return`${ol}, ${o.time}`;case st.YESTERDAY:return`${il}, ${o.time}`;case st.CURRENT_YEAR:return`${o.day} ${An[o.month].gen}, ${o.time}`;case st.MORE_YEAR:return`${o.day} ${An[o.month].gen} ${o.year}, ${o.time}`}})}function X_(r){return`${r.day} ${An[r.month].gen}`}function eA(r){return r.format.replace(/hh/g,r.hours.toString().padStart(2,"0")).replace(/h/g,r.hours.toString()).replace(/mm/g,r.minutes.toString().padStart(2,"0")).replace(/m/g,r.minutes.toString()).replace(/ss/g,r.seconds.toString().padStart(2,"0")).replace(/s/g,r.seconds.toString()).replace(/DD/g,r.day.toString().padStart(2,"0")).replace(/D/g,r.day.toString()).replace(/MM/g,(r.month+1).toString().padStart(2,"0")).replace(/M/g,(r.month+1).toString()).replace(/YYYY/g,r.fullYear.toString()).replace(/YY/g,r.fullYear.toString().slice(-2))}function tA(r){const o=an(r.day),i=an(r.month+1);return`${o}.${i}.${r.fullYear}`}function rA(r){const o=`${an(r.hours)}:${an(r.minutes)}`,i=An[r.month].gen;return`${r.day} ${i} ${r.fullYear}, ${o}`}function nA(r,o,i=""){const u=o||Date.now(),c=new Date(r),p=new Date(u-864e5),d=new Date(u);return{now:d,format:i,current:c,day:c.getDate(),weekday:c.getDay(),month:c.getMonth(),fullYear:c.getFullYear(),hours:c.getHours(),minutes:c.getMinutes(),seconds:c.getSeconds(),difference:c.getTime()-d.getTime(),is_today:d.toDateString()===c.toDateString(),is_yesterday:p.toDateString()===c.toDateString(),is_future:c.getTime()>d.getTime(),is_current_year:c.getFullYear()===d.getFullYear()}}function oA(r){let o=an(r.hours);return o+=":"+an(r.minutes),o}const iA={time:oA};function aA(r){return function({timestamp:o,template:i,format:u,options:c={}}){const p={...iA,...r};if(typeof p[i]=="function"){const d=nA(o,c.now,u);return p[i](d)}return o}}const sA=aA({akhmatova:Q_,bunin:Z_,shortdate:X_,format:eA,date:tA,fulldate:rA}),Gp=(r,o)=>r?r.toString().indexOf(".")>-1?o.genitiveSingle:r%10==1&&r%100!=11?o.nominative:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o.genitiveSingle:o.genitiveMultiple:o.empty,uA=1e3,lA="Europe/Moscow",cA=r=>r*uA;function dA(r){return new Date(r.toLocaleString("en-US",{timeZone:lA}))}function fA({callback:r,observer:o}){const i={threshold:o?.threshold??1};return new IntersectionObserver(u=>{r(u)},i)}class pA{constructor(o=1){this.__observer=null,this.observingThreshold=new Set,this.observingElements=new Set,this.observingThresholdCount={},this.observingThreshold.add(o)}get observer(){return this.__observer||this.createObserver(),this.__observer}createObserver(){this.__observer&&this.__observer.disconnect(),this.__observer=fA({callback:o=>this.onIntersect(o),observer:{threshold:Array.from(this.observingThreshold)}}),this.observingElements.size>0&&this.observingElements.forEach(o=>{var i;return(i=this.__observer)==null?void 0:i.observe(o)})}observe({element:o,threshold:i=1,callback:u,once:c}){this.observingThreshold.has(i)||(this.observingThreshold.add(i),this.createObserver()),o.observeVisibilityParams={threshold:i,callback:u,once:c??!1},this.observer.observe(o),this.observingElements.add(o),this.increaseThresholdIntersectionCounter(i)}unobserve(o){this.observer.unobserve(o),this.observingElements.delete(o),this.observingElements.size===0&&this.observer.disconnect();const i=this.getObservingElementViewParams(o);i!=null&&i.threshold&&(this.decreaseThresholdIntersectionCounter(i.threshold),!(this.observingThresholdCount[i.threshold]>0)&&(this.observingThreshold.delete(i.threshold),this.createObserver()))}onIntersect(o){o.forEach(i=>{if(!i.isIntersecting||!this.observingElements.has(i.target))return;const u=this.getObservingElementViewParams(i.target);!u||!this.isIntersected(i.intersectionRatio,u)||(u.callback(i),u.once&&this.unobserve(i.target))})}isIntersected(o,i){return o>=i.threshold}getObservingElementViewParams(o){return o.observeVisibilityParams}increaseThresholdIntersectionCounter(o){if(!this.observingThresholdCount[o]){this.observingThresholdCount[o]=1;return}this.observingThresholdCount[o]=this.observingThresholdCount[o]+1}decreaseThresholdIntersectionCounter(o){this.observingThresholdCount[o]=this.observingThresholdCount[o]-1}}
712const Wc=new pA,hA={mounted(r,o){o.value&&Wc.observe({element:r,threshold:o.value.threshold,callback:o.value.callback,once:o.value.once})},beforeUnmount(r){Wc.unobserve(r)}};var mA={},qp={},ma={};ma.byteLength=bA;ma.toByteArray=vA;ma.fromByteArray=AA;var Ir=[],Vt=[],gA=typeof Uint8Array<"u"?Uint8Array:Array,Wa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var xn=0,yA=Wa.length;xn<yA;++xn)Ir[xn]=Wa[xn],Vt[Wa.charCodeAt(xn)]=xn;Vt[45]=62;Vt[95]=63;function Vp(r){var o=r.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=r.indexOf("=");i===-1&&(i=o);var u=i===o?0:4-i%4;return[i,u]}function bA(r){var o=Vp(r),i=o[0],u=o[1];return(i+u)*3/4-u}function wA(r,o,i){return(o+i)*3/4-i}function vA(r){var o,i=Vp(r),u=i[0],c=i[1],p=new gA(wA(r,u,c)),d=0,a=c>0?u-4:u,h;for(h=0;h<a;h+=4)o=Vt[r.charCodeAt(h)]<<18|Vt[r.charCodeAt(h+1)]<<12|Vt[r.charCodeAt(h+2)]<<6|Vt[r.charCodeAt(h+3)],p[d++]=o>>16&255,p[d++]=o>>8&255,p[d++]=o&255;return c===2&&(o=Vt[r.charCodeAt(h)]<<2|Vt[r.charCodeAt(h+1)]>>4,p[d++]=o&255),c===1&&(o=Vt[r.charCodeAt(h)]<<10|Vt[r.charCodeAt(h+1)]<<4|Vt[r.charCodeAt(h+2)]>>2,p[d++]=o>>8&255,p[d++]=o&255),p}function EA(r){return Ir[r>>18&63]+Ir[r>>12&63]+Ir[r>>6&63]+Ir[r&63]}function _A(r,o,i){for(var u,c=[],p=o;p<i;p+=3)u=(r[p]<<16&16711680)+(r[p+1]<<8&65280)+(r[p+2]&255),c.push(EA(u));return c.join("")}function AA(r){for(var o,i=r.length,u=i%3,c=[],p=16383,d=0,a=i-u;d<a;d+=p)c.push(_A(r,d,d+p>a?a:d+p));return u===1?(o=r[i-1],c.push(Ir[o>>2]+Ir[o<<4&63]+"==")):u===2&&(o=(r[i-2]<<8)+r[i-1],c.push(Ir[o>>10]+Ir[o>>4&63]+Ir[o<<2&63]+"=")),c.join("")}var al={};al.read=function(r,o,i,u,c){var p,d,a=c*8-u-1,h=(1<<a)-1,y=h>>1,g=-7,b=i?c-1:0,v=i?-1:1,w=r[o+b];for(b+=v,p=w&(1<<-g)-1,w>>=-g,g+=a;g>0;p=p*256+r[o+b],b+=v,g-=8);for(d=p&(1<<-g)-1,p>>=-g,g+=u;g>0;d=d*256+r[o+b],b+=v,g-=8);if(p===0)p=1-y;else{if(p===h)return d?NaN:(w?-1:1)*(1/0);d=d+Math.pow(2,u),p=p-y}return(w?-1:1)*d*Math.pow(2,p-u)};al.write=function(r,o,i,u,c,p){var d,a,h,y=p*8-c-1,g=(1<<y)-1,b=g>>1,v=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=u?0:p-1,_=u?1:-1,T=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(a=isNaN(o)?1:0,d=g):(d=Math.floor(Math.log(o)/Math.LN2),o*(h=Math.pow(2,-d))<1&&(d--,h*=2),d+b>=1?o+=v/h:o+=v*Math.pow(2,1-b),o*h>=2&&(d++,h/=2),d+b>=g?(a=0,d=g):d+b>=1?(a=(o*h-1)*Math.pow(2,c),d=d+b):(a=o*Math.pow(2,b-1)*Math.pow(2,c),d=0));c>=8;r[i+w]=a&255,w+=_,a/=256,c-=8);for(d=d<<c|a,y+=c;y>0;r[i+w]=d&255,w+=_,d/=256,y-=8);r[i+w-_]|=T*128};(function(r){const o=ma,i=al,u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=a,r.SlowBuffer=D,r.INSPECT_MAX_BYTES=50;const c=2147483647;r.kMaxLength=c,a.TYPED_ARRAY_SUPPORT=p(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function p(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function d(e){if(e>c)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,n){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return b(e)}return h(e,t,n)}a.poolSize=8192;function h(e,t,n){if(typeof e=="string")return v(e,t);if(ArrayBuffer.isView(e))return _(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ie(e,ArrayBuffer)||e&&ie(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ie(e,SharedArrayBuffer)||e&&ie(e.buffer,SharedArrayBuffer)))return T(e,t,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const s=e.valueOf&&e.valueOf();if(s!=null&&s!==e)return a.from(s,t,n);const l=A(e);if(l)return l;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,t,n){return h(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function y(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');
712if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function g(e,t,n){return y(e),e<=0?d(e):t!==void 0?typeof n=="string"?d(e).fill(t,n):d(e).fill(t):d(e)}a.alloc=function(e,t,n){return g(e,t,n)};function b(e){return y(e),d(e<0?0:B(e)|0)}a.allocUnsafe=function(e){return b(e)},a.allocUnsafeSlow=function(e){return b(e)};function v(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=x(e,t)|0;let s=d(n);const l=s.write(e,t);return l!==n&&(s=s.slice(0,l)),s}function w(e){const t=e.length<0?0:B(e.length)|0,n=d(t);for(let s=0;s<t;s+=1)n[s]=e[s]&255;return n}function _(e){if(ie(e,Uint8Array)){const t=new Uint8Array(e);return T(t.buffer,t.byteOffset,t.byteLength)}return w(e)}function T(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let s;return t===void 0&&n===void 0?s=new Uint8Array(e):n===void 0?s=new Uint8Array(e,t):s=new Uint8Array(e,t,n),Object.setPrototypeOf(s,a.prototype),s}function A(e){if(a.isBuffer(e)){const t=B(e.length)|0,n=d(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!="number"||De(e.length)?d(0):w(e);if(e.type==="Buffer"&&Array.isArray(e.data))return w(e.data)}function B(e){if(e>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return e|0}function D(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==a.prototype},a.compare=function(e,t){if(ie(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),ie(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,s=t.length;for(let l=0,f=Math.min(n,s);l<f;++l)if(e[l]!==t[l]){n=e[l],s=t[l];break}return n<s?-1:s<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return a.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const s=a.allocUnsafe(t);let l=0;for(n=0;n<e.length;++n){let f=e[n];if(ie(f,Uint8Array))l+f.length>s.length?(a.isBuffer(f)||(f=a.from(f)),f.copy(s,l)):Uint8Array.prototype.set.call(s,f,l);else if(a.isBuffer(f))f.copy(s,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=f.length}return s};function x(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ie(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,s=arguments.length>2&&arguments[2]===!0;if(!s&&n===0)return 0;let l=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Ie(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Se(e).length;default:if(l)return s?-1:Ie(e).length;t=(""+t).toLowerCase(),l=!0}}a.byteLength=x;function W(e,t,n){let s=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return ne(this,t,n);case"utf8":case"utf-8":return H(this,t,n);case"ascii":return he(this,t,n);case"latin1":case"binary":return ge(this,t,n);case"base64":return ue(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,t,n);default:if(s)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}a.prototype._isBuffer=!0;function U(e,t,n){const s=e[t];e[t]=e[n],e[n]=s}a.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)U(this,t,t+1);return this},a.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)U(this,t,t+3),U(this,t+1,t+2);return this},a.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)U(this,t,t+7),U(this,t+1,t+6),U(this,t+2,t+5),U(this,t+3,t+4);return this},a.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?H(this,0,e):W.apply(this,arguments)}
vendor: 14,032 bytes, line 712
712,a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:a.compare(this,e)===0},a.prototype.inspect=function(){let e="";const t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},u&&(a.prototype[u]=a.prototype.inspect),a.prototype.compare=function(e,t,n,s,l){if(ie(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),s===void 0&&(s=0),l===void 0&&(l=this.length),t<0||n>e.length||s<0||l>this.length)throw new RangeError("out of range index");if(s>=l&&t>=n)return 0;if(s>=l)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,s>>>=0,l>>>=0,this===e)return 0;let f=l-s,m=n-t;const L=Math.min(f,m),Z=this.slice(s,l),G=e.slice(t,n);for(let $=0;$<L;++$)if(Z[$]!==G[$]){f=Z[$],m=G[$];break}return f<m?-1:m<f?1:0};function S(e,t,n,s,l){if(e.length===0)return-1;if(typeof n=="string"?(s=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,De(n)&&(n=l?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(l)return-1;n=e.length-1}else if(n<0)if(l)n=0;else return-1;if(typeof t=="string"&&(t=a.from(t,s)),a.isBuffer(t))return t.length===0?-1:M(e,t,n,s,l);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?l?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):M(e,[t],n,s,l);throw new TypeError("val must be string, number or Buffer")}function M(e,t,n,s,l){let f=1,m=e.length,L=t.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(e.length<2||t.length<2)return-1;f=2,m/=2,L/=2,n/=2}function Z($,Q){return f===1?$[Q]:$.readUInt16BE(Q*f)}let G;if(l){let $=-1;for(G=n;G<m;G++)if(Z(e,G)===Z(t,$===-1?0:G-$)){if($===-1&&($=G),G-$+1===L)return $*f}else $!==-1&&(G-=G-$),$=-1}else for(n+L>m&&(n=m-L),G=n;G>=0;G--){let $=!0;for(let Q=0;Q<L;Q++)if(Z(e,G+Q)!==Z(t,Q)){$=!1;break}if($)return G}return-1}a.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},a.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function I(e,t,n,s){n=Number(n)||0;const l=e.length-n;s?(s=Number(s),s>l&&(s=l)):s=l;const f=t.length;s>f/2&&(s=f/2);let m;for(m=0;m<s;++m){const L=parseInt(t.substr(m*2,2),16);if(De(L))return m;e[n+m]=L}return m}function R(e,t,n,s){return Ee(Ie(t,e.length-n),e,n,s)}function C(e,t,n,s){return Ee(le(t),e,n,s)}function V(e,t,n,s){return Ee(Se(t),e,n,s)}function F(e,t,n,s){return Ee(me(t,e.length-n),e,n,s)}a.prototype.write=function(e,t,n,s){if(t===void 0)s="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")s=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,s===void 0&&(s="utf8")):(s=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const l=this.length-t;if((n===void 0||n>l)&&(n=l),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");let f=!1;for(;;)switch(s){case"hex":return I(this,e,t,n);case"utf8":case"utf-8":return R(this,e,t,n);case"ascii":case"latin1":case"binary":return C(this,e,t,n);case"base64":return V(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,e,t,n);default:if(f)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),f=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(e,t,n){return t===0&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function H(e,t,n){n=Math.min(e.length,n);const s=[];let l=t;for(;l<n;){const f=e[l];let m=null,L=f>239?4:f>223?3:f>191?2:1;if(l+L<=n){let Z,G,$,Q;switch(L){case 1:f<128&&(m=f);break;case 2:Z=e[l+1],(Z&192)===128&&(Q=(f&31)<<6|Z&63,Q>127&&(m=Q));break;case 3:Z=e[l+1],G=e[l+2],(Z&192)===128&&(G&192)===128&&(Q=(f&15)<<12|(Z&63)<<6|G&63,Q>2047&&(Q<55296||Q>57343)&&(m=Q));break;case 4:Z=e[l+1],G=e[l+2],$=e[l+3],(Z&192)===128&&(G&192)===128&&($&192)===128&&(Q=(f&15)<<18|(Z&63)<<12|(G&63)<<6|$&63,Q>65535&&Q<1114112&&(m=Q))}}m===null?(m=65533,L=1):m>65535&&(m-=65536,s.push(m>>>10&1023|55296),m=56320|m&1023),s.push(m),l+=L}return X(s)}const j=4096;function X(e){const t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let n="",s=0;for(;s<t;)n+=String.fromCharCode.apply(String,e.slice(s,s+=j));return n}function he(e,t,n){let s="";n=Math.min(e.length,n);for(let l=t;l<n;++l)s+=String.fromCharCode(e[l]&127);return s}function ge(e,t,n){let s="";n=Math.min(e.length,n);for(let l=t;l<n;++l)s+=String.fromCharCode(e[l]);return s}function ne(e,t,n){const s=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>s)&&(n=s);let l="";for(let f=t;f<n;++f)l+=O[e[f]];return l}function be(e,t,n){const s=e.slice(t,n);let l="";for(let f=0;f<s.length-1;f+=2)l+=String.fromCharCode(s[f]+s[f+1]*256);return l}a.prototype.slice=function(e,t){const n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);const s=this.subarray(e,t);return Object.setPrototypeOf(s,a.prototype),s};function P(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e],l=1,f=0;for(;++f<t&&(l*=256);)s+=this[e+f]*l;return s},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e+--t],l=1;for(;t>0&&(l*=256);)s+=this[e+--t]*l;return s},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e=e>>>0,t||P(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||P(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||P(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,l=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(s)+(BigInt(l)<<BigInt(32))}),a.prototype.readBigUInt64BE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],l=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(s)<<BigInt(32))+BigInt(l)}),a.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e],l=1,f=0;for(;++f<t&&(l*=256);)s+=this[e+f]*l;return l*=128,s>=l&&(s-=Math.pow(2,8*t)),s},a.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=t,l=1,f=this[e+--s];for(;s>0&&(l*=256);)f+=this[e+--s]*l;return l*=128,f>=l&&(f-=Math.pow(2,8*t)),f},a.prototype.readInt8=function(e,t){return e=e>>>0,t||P(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},a.prototype.readInt16LE=function(e,t){e=e>>>0,t||P(e,2,this.length);const n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},a.prototype.readInt16BE=function(e,t){e=e>>>0,t||P(e,2,this.length);const n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},a.prototype.readInt32LE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(s)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),a.prototype.readBigInt64BE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(s)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),a.prototype.readFloatLE=function(e,t){return e=e>>>0,t||P(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e=e>>>0,t||P(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||P(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||P(e,8,this.length),i.read(this,e,!1,52,8)};function ee(e,t,n,s,l,f){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>l||t<f)throw new RangeError('"value" argument is out of bounds');if(n+s>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,n,s){if(e=+e,t=t>>>0,n=n>>>0,!s){const m=Math.pow(2,8*n)-1;ee(this,e,t,n,m,0)}let l=1,f=0;for(this[t]=e&255;++f<n&&(l*=256);)this[t+f]=e/l&255;return t+n},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,n,s){if(e=+e,t=t>>>0,n=n>>>0,!s){const m=Math.pow(2,8*n)-1;ee(this,e,t,n,m,0)}let l=n-1,f=1;for(this[t+l]=e&255;--l>=0&&(f*=256);)this[t+l]=e/f&255;return t+n},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,1,255,0),this[t]=e&255,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function Ue(e,t,n,s,l){re(t,s,l,e,n,7);let f=Number(t&BigInt(4294967295));e[n++]=f,f=f>>8,e[n++]=f,f=f>>8,e[n++]=f,f=f>>8,e[n++]=f;let m=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=m,m=m>>8,e[n++]=m,m=m>>8,e[n++]=m,m=m>>8,e[n++]=m,n}function _e(e,t,n,s,l){re(t,s,l,e,n,7);let f=Number(t&BigInt(4294967295));e[n+7]=f,f=f>>8,e[n+6]=f,f=f>>8,e[n+5]=f,f=f>>8,e[n+4]=f;let m=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=m,m=m>>8,e[n+2]=m,m=m>>8,e[n+1]=m,m=m>>8,e[n]=m,n+8}a.prototype.writeBigUInt64LE=N(function(e,t=0){return Ue(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=N(function(e,t=0){return _e(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(e,t,n,s){if(e=+e,t=t>>>0,!s){const L=Math.pow(2,8*n-1);ee(this,e,t,n,L-1,-L)}let l=0,f=1,m=0;for(this[t]=e&255;++l<n&&(f*=256);)e<0&&m===0&&this[t+l-1]!==0&&(m=1),this[t+l]=(e/f>>0)-m&255;return t+n},a.prototype.writeIntBE=function(e,t,n,s){if(e=+e,t=t>>>0,!s){const L=Math.pow(2,8*n-1);ee(this,e,t,n,L-1,-L)}let l=n-1,f=1,m=0;for(this[t+l]=e&255;--l>=0&&(f*=256);)e<0&&m===0&&this[t+l+1]!==0&&(m=1),this[t+l]=(e/f>>0)-m&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},a.prototype.writeBigInt64LE=N(function(e,t=0){return Ue(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=N(function(e,t=0){return _e(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ce(e,t,n,s,l,f){if(n+s>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function de(e,t,n,s,l){return t=+t,n=n>>>0,l||ce(e,t,n,4),i.write(e,t,n,s,23,4),n+4}a.prototype.writeFloatLE=function(e,t,n){return de(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return de(this,e,t,!1,n)};function ve(e,t,n,s,l){return t=+t,n=n>>>0,l||ce(e,t,n,8),i.write(e,t,n,s,52,8),n+8}a.prototype.writeDoubleLE=function(e,t,n){return ve(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return ve(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,s){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!s&&s!==0&&(s=this.length),t>=e.length&&(t=e.length),t||(t=0),s>0&&s<n&&(s=n),s===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-t<s-n&&(s=e.length-t+n);const l=s-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,s):Uint8Array.prototype.set.call(e,this.subarray(n,s),t),l},a.prototype.fill=function(e,t,n,s){if(typeof e=="string"){if(typeof t=="string"?(s=t,t=0,n=this.length):typeof n=="string"&&(s=n,n=this.length),s!==void 0&&typeof s!="str
712ing")throw new TypeError("encoding must be a string");if(typeof s=="string"&&!a.isEncoding(s))throw new TypeError("Unknown encoding: "+s);if(e.length===1){const f=e.charCodeAt(0);(s==="utf8"&&f<128||s==="latin1")&&(e=f)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let l;if(typeof e=="number")for(l=t;l<n;++l)this[l]=e;else{const f=a.isBuffer(e)?e:a.from(e,s),m=f.length;if(m===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(l=0;l<n-t;++l)this[l+t]=f[l%m]}return this};const te={};function E(e,t,n){te[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(s){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:s,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}E("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),E("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),E("ERR_OUT_OF_RANGE",function(e,t,n){let s=`The value of "${e}" is out of range.`,l=n;return Number.isInteger(n)&&Math.abs(n)>2**32?l=k(String(n)):typeof n=="bigint"&&(l=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(l=k(l)),l+="n"),s+=` It must be ${t}. Received ${l}`,s},RangeError);function k(e){let t="",n=e.length;const s=e[0]==="-"?1:0;for(;n>=s+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function Y(e,t,n){z(t,"offset"),(e[t]===void 0||e[t+n]===void 0)&&J(t,e.length-(n+1))}function re(e,t,n,s,l,f){if(e>n||e<t){const m=typeof t=="bigint"?"n":"";let L;throw t===0||t===BigInt(0)?L=`>= 0${m} and < 2${m} ** ${(f+1)*8}${m}`:L=`>= -(2${m} ** ${(f+1)*8-1}${m}) and < 2 ** ${(f+1)*8-1}${m}`,new te.ERR_OUT_OF_RANGE("value",L,e)}Y(s,l,f)}function z(e,t){if(typeof e!="number")throw new te.ERR_INVALID_ARG_TYPE(t,"number",e)}function J(e,t,n){throw Math.floor(e)!==e?(z(e,n),new te.ERR_OUT_OF_RANGE("offset","an integer",e)):t<0?new te.ERR_BUFFER_OUT_OF_BOUNDS:new te.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}const se=/[^+/0-9A-Za-z-_]/g;function Ae(e){if(e=e.split("=")[0],e=e.trim().replace(se,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Ie(e,t){t=t||1/0;let n;const s=e.length;let l=null;const f=[];for(let m=0;m<s;++m){if(n=e.charCodeAt(m),n>55295&&n<57344){if(!l){if(n>56319){(t-=3)>-1&&f.push(239,191,189);continue}else if(m+1===s){(t-=3)>-1&&f.push(239,191,189);continue}l=n;continue}if(n<56320){(t-=3)>-1&&f.push(239,191,189),l=n;continue}n=(l-55296<<10|n-56320)+65536}else l&&(t-=3)>-1&&f.push(239,191,189);if(l=null,n<128){if((t-=1)<0)break;f.push(n)}else if(n<2048){if((t-=2)<0)break;f.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;f.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;f.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return f}function le(e){const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function me(e,t){let n,s,l;const f=[];for(let m=0;m<e.length&&!((t-=2)<0);++m)n=e.charCodeAt(m),s=n>>8,l=n%256,f.push(l),f.push(s);return f}function Se(e){return o.toByteArray(Ae(e))}function Ee(e,t,n,s){let l;for(l=0;l<s&&!(l+n>=t.length||l>=e.length);++l)t[l+n]=e[l];return l}function ie(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function De(e){return e!==e}const O=(function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const s=n*16;for(let l=0;l<16;++l)t[s+l]=e[n]+e[l]}return t})();function N(e){return typeof BigInt>"u"?K:e}function K(){throw new Error("BigInt not supported")}})(qp);var Hp={exports:{}},ct=Hp.exports={},pr,hr;function Qs(){throw new Error("setTimeout has not been defined")}function Js(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?pr=setTimeout:pr=Qs}catch{pr=Qs}try{typeof clearTimeout=="function"?hr=clearTimeout:hr=Js}catch{hr=Js}})();function zp(r){if(pr===setTimeout)return setTimeout(r,0);if((pr===Qs||!pr)&&setTimeout)return pr=setTimeout,setTimeout(r,0);try{return pr(r,0)}catch{try{return pr.call(null,r,0)}catch{return pr.call(this,r,0)}}}function IA(r){if(hr===clearTimeout)return clearTimeout(r);
712if((hr===Js||!hr)&&clearTimeout)return hr=clearTimeout,clearTimeout(r);try{return hr(r)}catch{try{return hr.call(null,r)}catch{return hr.call(this,r)}}}var Mr=[],to=!1,wn,Si=-1;function TA(){!to||!wn||(to=!1,wn.length?Mr=wn.concat(Mr):Si=-1,Mr.length&&Wp())}function Wp(){if(!to){var r=zp(TA);to=!0;for(var o=Mr.length;o;){for(wn=Mr,Mr=[];++Si<o;)wn&&wn[Si].run();Si=-1,o=Mr.length}wn=null,to=!1,IA(r)}}ct.nextTick=function(r){var o=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)o[i-1]=arguments[i];Mr.push(new Yp(r,o)),Mr.length===1&&!to&&zp(Wp)};function Yp(r,o){this.fun=r,this.array=o}Yp.prototype.run=function(){this.fun.apply(null,this.array)};ct.title="browser";ct.browser=!0;ct.env={};ct.argv=[];ct.version="";ct.versions={};function Yr(){}ct.on=Yr;ct.addListener=Yr;ct.once=Yr;ct.off=Yr;ct.removeListener=Yr;ct.removeAllListeners=Yr;ct.emit=Yr;ct.prependListener=Yr;ct.prependOnceListener=Yr;ct.listeners=function(r){return[]};ct.binding=function(r){throw new Error("process.binding is not supported")};ct.cwd=function(){return"/"};ct.chdir=function(r){throw new Error("process.chdir is not supported")};ct.umask=function(){return 0};var SA=Hp.exports;(function(r){Object.defineProperty(r,Symbol.toStringTag,{value:"Module"});const o=qp,i=SA,u=d=>d&&d.__esModule?d:{default:d},c=u(i),p=globalThis||void 0||self;Object.defineProperty(r,"Buffer",{enumerable:!0,get:()=>o.Buffer}),Object.defineProperty(r,"process",{enumerable:!0,get:()=>c.default}),r.global=p})(mA);const Kp="Показать все комментарии",RA="Показать еще",BA={empty:"",nominative:"ответ",genitiveSingle:"ответа",genitiveMultiple:"ответов"};var jt=(r=>(r.SPORTS="SPORTS",r.CYBER="CYBER",r))(jt||{});const Yc={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"e",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"shch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",і:"i",ї:"i",є:"e",ґ:"g",ў:"u"},Kc=60,CA="section",sl=r=>{if(!r)return"";const o=Array.from(r.toLowerCase()).map(u=>u in Yc?Yc[u]:u).join("").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");if(!o)return"";const i=OA(o);return/^\d/.test(i)?`${CA}-${i}`:i};function OA(r){if(r.length<=Kc)return r;const o=r.slice(0,Kc),i=o.lastIndexOf("-");return i>0?o.slice(0,i):o}var Qe=(r=>(r.SB_TYPE_PARAGRAPH="paragraph",r.SB_TYPE_SUBTITLE="subtitle",r.SB_TYPE_LIST="list",r.SB_TYPE_IMAGE="image",r.SB_TYPE_LINKED_IMAGE="linked-image",r.SB_TYPE_IFRAME="iframe",r.SB_TYPE_INSTAGRAM="instagram",r.SB_TYPE_TWITTER="twitter",r.SB_TYPE_YOUTUBE="youtube",r.SB_TYPE_TELEGRAM="telegram",r.SB_TYPE_VIMEO="vimeo",r.SB_TYPE_DIVIDER="divider",r.SB_TYPE_ADS_TELEPORT_TARGET="adsTeleportTarget",r.SB_TYPE_ADS="ads",r.SB_TYPE_OLD_AD="ad",r.SB_TYPE_POLL="poll",r.SB_TYPE_HTML="html-source",r.SB_TYPE_MATCH_FOOTBALL="football-match",r.SB_TYPE_MATCH_HOCKEY="hockey-match",r.SB_TYPE_MATCH_BASKETBALL="basketball-match",r.SB_TYPE_MATCH_TENNIS="tennis-match",r.SB_TYPE_LAST_MATCHES="last-matches",r.SB_TYPE_MATCH_PREDICTION="match-prediction",r.SB_TYPE_CONTENTS="contents",r.SB_TYPE_VIDEO="video",r.SB_TYPE_AUTOMOTO_RACE="automoto-race",r.SB_TYPE_BIATHLON_RACE="biathlon-race",r))(Qe||{}),Ri=(r=>(r.TEXT="text",r.LINK="link",r.BREAK="break",r))(Ri||{}),Qp=(r=>(r.BOLD="bold",r.ITALIC="italic",r.UNDERSCORE="underscore",r.STRIKE="strike",r.HIGHLIGHT="highlight",r.COLOR="color",r))(Qp||{}),Oo=(r=>(r.POST="post",r.MATCH="match",r.DEFAULT="",r))(Oo||{}),Jp=(r=>(r.JPG="jpg",r))(Jp||{});const LA="section",ul=r=>{const o=new Map;let i=0;return r.map(u=>{var c;if(u?.type!==Qe.SB_TYPE_SUBTITLE)return"";i+=1;const p=((c=u.value)==null?void 0:c.text)||"",d=sl(p.replace(/\\n
712/g," "))||`${LA}-${i}`,a=o.get(d)||0;return o.set(d,a+1),a===0?d:`${d}-${a+1}`})},NA=r=>r.map((o,i)=>{var u;return o?.type!==Qe.SB_TYPE_SUBTITLE?"":`${((u=o.value)==null?void 0:u.text)||""}__${i}`}),DA=r=>r.replace(/\\n/g,"");function xA(r){const o=r.reduce((p,d)=>{if(d.type==="subtitle"){const a=d.value;if(a.text&&a.text.trim())return Math.min(p,a.level)}return p},1/0);if(o===1/0)return[];const i=2-o;let u=!1;const c=ul(r);return r.reduce((p,d,a)=>{if(d.type==="subtitle"){const h={...d.value};if(!h.text||!h.text.trim())return p;const y=h.level+i,g={value:DA(h.text),anchor:c[a]};y===2?(u=!0,p.push({h2:g,h3:[]})):y===3&&(u?p.length>0&&p[p.length-1].h3.push(g):p.push({h2:g,h3:[]}))}return p},[])}const UA={class:"sb-contents"},kA={class:"sb-contents_block"},PA=["href"],MA={key:0,class:"sb-contents__subtitles-block"},$A=["href"],FA=Le({__name:"PostContents",props:{content:{type:Array,required:!0}},setup(r){const o=xA(r.content);return(i,u)=>(oe(),ye("div",UA,[u[0]||(u[0]=Te("h2",{class:"sb-contents__title"}," Содержание ",-1)),Te("div",kA,[Te("ul",null,[(oe(!0),ye(At,null,$t(q(o),c=>(oe(),ye("li",{key:c.h2.value,class:"sb-contents__main-title"},[Te("a",{href:"#"+c.h2.anchor,class:"sb-contents__link sb-contents__link-h2"},ze(c.h2.value),9,PA),c.h3.length?(oe(),ye("ul",MA,[(oe(!0),ye(At,null,$t(c.h3,p=>(oe(),ye("li",{key:p.value},[Te("a",{href:"#"+p.anchor,class:"sb-contents__link"},ze(p.value),9,$A)]))),128))])):ke("",!0)]))),128))])])]))}}),sn=(r,o)=>{const i=r.__vccOpts||r;for(const[u,c]of o)i[u]=c;return i},jA=sn(FA,[["__scopeId","data-v-7ba0a714"]]),GA=Le({__name:"SbContents",props:{value:{type:Object,required:!0}},setup(r){return(o,i)=>r.value?(oe(),Oe(jA,{key:0,content:r.value},null,8,["content"])):ke("",!0)}}),qA={},VA={class:"sb-divider"};function HA(r,o){return oe(),ye("div",VA)}const zA=sn(qA,[["render",HA],["__scopeId","data-v-b8bf43dd"]]),Ix=r=>Object.keys(r).length?Object.keys(r).reduce((o,i)=>i===Qp.COLOR?o:r[i]?o+` sb-text--${i}`:o,""):"",WA=r=>r?dI.some(o=>r.match(new RegExp(`^(?:http(?:s)?://)?(?:[^.]+.)?${o}(/.*)?$`))):!1,YA=r=>WA(r)?{}:{rel:fI,target:"_blank"},KA=r=>wI.some(o=>r.indexOf(o)===0),Qc=({source:r,width:o,screen:i,retina:u})=>{const c=u?i*2:i,p=bI.find(a=>a>=i);if(!p||c>o)return null;const d=new URL(r);return d.searchParams.delete("h"),d.searchParams.delete("s"),d.searchParams.set("w",`${p}`),u&&d.searchParams.set("s","2x"),`${d.toString()} ${u?2:1}x`},Jc=({source:r,width:o,screen:i})=>[Qc({source:r,width:o,screen:i,retina:!1}),Qc({source:r,width:o,screen:i,retina:!0})].filter(Boolean).join(", "),QA=r=>{const{picture:o,width:i}=r,u=o?.url??"";return!KA(u)||!i?[]:[...Zs<i?[{media:`(min-width: ${Zs}px)`,srcset:Jc({width:i,source:u,screen:yI})}]:[],...gI.filter(c=>c<i).map(c=>({media:`(max-width: ${c}px)`,srcset:Jc({width:i,source:u,screen:c})}))].filter(({srcset:c})=>!!c)},Tx=(r,{autoplay:o=!1}={})=>{const{id:i,start:u,end:c}=r,p=[u?`start=${u}`:"",c?`end=${c}`:"",o?"autoplay=1":""].filter(Boolean).join("&");return`${th.youtube}${i}?${p}`},Sx=(r,o=vI)=>`${EI}${_I[Jp.JPG]}${r}/${o}.jpg`,Rx=r=>`${th.vimeo}${r}`,JA=()=>typeof window>"u"?!1:window.innerWidth<=Zs,ZA=["data-hight-src"],XA=["media","srcset"],eI=["src","alt","width","height","loading","fetchpriority","decoding"],tI={key:0,class:"sb-image__text"},rI=Le({__name:"SbImage",props:{value:{type:Object,required:!0},priority:{type:Boolean,default:!1}},emits:["click"],setup(r,{emit:o}){const i=r,u=o,c=y=>{u("click",{type:Qe.SB_TYPE_IMAGE,event:y})},p=ae(()=>{var y;return((y=i.value)==null?void 0:y.alt)||""}),d=ae(()=>{const{width:y,height:g}=i.value||{};return!!(g&&y&&g/y>1)}),a=ae(()=>QA(i.value)),h=ae(()=>{var y,g,b,v,w;return((g=(y=i.value)==null?void 0:y.full)==null?void 0:g.url)??((v=(b=i.value)==null?void 0:b.picture)==null?void 0:v.url)??((w=i.value)==null?void 0:w.source)});return(y,g)=>{var b,v,w;return oe(),ye("figure",{class:Xe(["sb-image",{"sb-image--vertical":d.value}]),"data-hight-src":h.value,onClick:c},[Te("picture",null,[(oe(!0),ye(At,null,$t(a.value,_=>(oe(),ye("source",{key:_.media,media:_.media,srcset:_.srcset},null,8,XA))),128)),Te("img",{src:h.value,alt:p.value,width:((b=r.value)==null?void 0:b.width)||void 0,height:((v=r.value)==null?void 0:v.height)||void 0,loading:r.priority?"eager":"lazy",fetchpriority:r.priority?"high":void 0,decoding:r.priority?"sync":"async",class:"sb-image__img",style:nn({width:(w=r.value)!=null&&w.width?`${r.value.width}px`:"100%"})},null,12,eI)]),i.value.text?(oe(),ye("figcaption",tI,ze(i.value.text),1)):ke("",!0)],10,ZA)}}}
712),Zp=sn(rI,[["__scopeId","data-v-cbdbea3c"]]),nI=["href"],oI=Le({__name:"SbLinkedImage",props:{value:{type:Object,required:!0},priority:{type:Boolean,default:!1}},setup(r){const o=r,i=ae(()=>{var u,c;return((u=o.value)==null?void 0:u.attrs)??YA(((c=o.value)==null?void 0:c.href)||"")});return(u,c)=>(oe(),ye("a",Rn({href:o.value.href,class:"sb-linked-image"},i.value),[xe(q(Zp),{value:o.value.image,priority:o.priority},null,8,["value","priority"])],16,nI))}}),iI=sn(oI,[["__scopeId","data-v-c53215be"]]);var Xp=(r=>(r.Ordered="ordered",r.Unordered="unordered",r))(Xp||{});const aI=Le({__name:"SbParagraph",props:{value:{type:Object,default:()=>({})},type:{type:String,required:!0},raw:{type:String,default:""}},setup(r){const o=r,i=ae(()=>({[Ri.TEXT]:je(()=>Fe(()=>import("./SbParagraphText.vue.es-aee0aa2f-B3V3b3Yn.js"),__vite__mapDeps([34,1,2]))),[Ri.LINK]:je(()=>Fe(()=>import("./SbParagraphLink.vue.es-95175482-C_ZcRy7g.js"),__vite__mapDeps([35,1,2]))),[Ri.BREAK]:je(()=>Fe(()=>import("./SbParagraphBreak.vue.es-577a0521-BlVuBXTq.js"),__vite__mapDeps([36,1,2])))})),u=ae(()=>{var c,p;return(c=o.value)!=null&&c.size?`sb-paragraph--${(p=o.value)==null?void 0:p.size}`:""});return(c,p)=>{var d;return oe(),ye("p",{class:Xe(["sb-paragraph",u.value])},[(oe(!0),ye(At,null,$t((d=o.value)==null?void 0:d.elements,(a,h)=>(oe(),Oe(Ct(i.value[a.type]),{key:`${h}__${a.type}`,value:a.value},null,8,["value"]))),128))],2)}}}),eh=sn(aI,[["__scopeId","data-v-6989bb43"]]),sI=Le({__name:"SbList",props:{value:{type:Object,required:!0}},setup(r){const o=r,i=ae(()=>{var u;return((u=o.value)==null?void 0:u.type)===Xp.Ordered?"ol":"ul"});return(u,c)=>o.value?(oe(),Oe(Ct(i.value),{key:0,class:"sb-list"},{default:$e(()=>{var p;return[(oe(!0),ye(At,null,$t((p=o.value)==null?void 0:p.items,(d,a)=>(oe(),ye("li",{key:a},[xe(q(eh),{value:d},null,8,["value"])]))),128))]}),_:1})):ke("",!0)}}),uI=sn(sI,[["__scopeId","data-v-0c1baa47"]]),Zc=4,lI=Le({__name:"SbSubtitle",props:{value:{type:Object,required:!0},index:{type:Number,required:!0}},setup(r){const o=r,i=Vr("sbAnchors",null),u=ae(()=>{var a,h,y;return((a=i?.value)==null?void 0:a[o.index])||sl(((y=(h=o.value)==null?void 0:h.text)==null?void 0:y.replace(/\\n
712/g," "))||"")||`section-${o.index+1}`}),c=ae(()=>{var a;const h=(a=o.value)==null?void 0:a.level;return h&&h<=Zc?h:Zc}),p=ae(()=>`h${c.value}`),d=ae(()=>{var a,h;return((h=(a=o.value)==null?void 0:a.text)==null?void 0:h.replace(/\\n/g,`
713`))||""});return(a,h)=>(oe(),Oe(Ct(p.value),{id:u.value,class:"sb-subtitle"},{default:$e(()=>[Ft(ze(d.value),1)]),_:1},8,["id"]))}}),cI=sn(lI,[["__scopeId","data-v-5deb3b00"]]),go={[Qe.SB_TYPE_PARAGRAPH]:eh,[Qe.SB_TYPE_SUBTITLE]:cI,[Qe.SB_TYPE_IMAGE]:Zp,[Qe.SB_TYPE_LIST]:uI,[Qe.SB_TYPE_LINKED_IMAGE]:iI,[Qe.SB_TYPE_IFRAME]:je(()=>Fe(()=>import("./index.es-e17cc6e2-C-iRDXJL.js"),__vite__mapDeps([37,1,2]))),[Qe.SB_TYPE_INSTAGRAM]:je(()=>Fe(()=>import("./index.es-910f3ff4-B-UYTPUe.js"),__vite__mapDeps([38,1,2]))),[Qe.SB_TYPE_YOUTUBE]:je(()=>Fe(()=>import("./index.es-78ac68ca-BAi-wod7.js"),__vite__mapDeps([39,1,2]))),[Qe.SB_TYPE_TELEGRAM]:je(()=>Fe(()=>import("./index.es-5dfb66d9-B7gC7Dra.js"),__vite__mapDeps([40,1,2]))),[Qe.SB_TYPE_DIVIDER]:zA,[Qe.SB_TYPE_TWITTER]:je(()=>Fe(()=>import("./index.es-910f3ff4-B-UYTPUe.js"),__vite__mapDeps([38,1,2]))),[Qe.SB_TYPE_VIMEO]:je(()=>Fe(()=>import("./index.es-d1f354e1-DyIGsRPc.js"),__vite__mapDeps([41,37,1,2]))),[Qe.SB_TYPE_HTML]:je(()=>Fe(()=>import("./index.es-2cdef1fa-DZx0Llku.js"),__vite__mapDeps([42,1,2]))),[Qe.SB_TYPE_AUTOMOTO_RACE]:je(()=>Fe(()=>import("./index.es-b686cf6a-BGr353az.js"),__vite__mapDeps([43,44,1,2,37]))),[Qe.SB_TYPE_BIATHLON_RACE]:je(()=>Fe(()=>import("./index.es-b686cf6a-BGr353az.js"),__vite__mapDeps([43,44,1,2,37]))),[Qe.SB_TYPE_VIDEO]:je(()=>Fe(()=>import("./index.es-e17cc6e2-C-iRDXJL.js"),__vite__mapDeps([37,1,2]))),[Qe.SB_TYPE_CONTENTS]:GA,[Qe.SB_TYPE_MATCH_HOCKEY]:je(()=>Fe(()=>import("./index.es-bad867f4-BG480jI6.js"),__vite__mapDeps([45,44,1,2,37]))),[Qe.SB_TYPE_MATCH_BASKETBALL]:je(()=>Fe(()=>import("./index.es-bad867f4-BG480jI6.js"),__vite__mapDeps([45,44,1,2,37]))),[Qe.SB_TYPE_MATCH_TENNIS]:je(()=>Fe(()=>import("./index.es-bad867f4-BG480jI6.js"),__vite__mapDeps([45,44,1,2,37])))},dI=["sports.ru","tribuna.com","s5o.ru"],fI="nofollow noopener noreferrer",pI="structured-body-wrapper--post",hI="structured-body-wrapper--match",mI={[Oo.POST]:pI,[Oo.MATCH]:hI,[Oo.DEFAULT]:""},gI=[320,460,640],yI=730,Zs=768,Bx=16/9,Cx="100%",bI=[150,200,300,320,460,640,730,1050,1200],wI=["https://photobooth.cdn.sports.ru/","http://photobooth.cdn.sports.ru/","https://i.sprts.ru/","https://i.trbna.com/"],th={youtube:"https://www.youtube.com/embed/",vimeo:"https://player.vimeo.com/video/"},Ox="hqdefault",vI="maxresdefault",EI="https://i.ytimg.com/",Lx="accelerometer; encrypted-media; gyroscope; picture-in-picture",_I={jpg:"vi/"},Nx="https://telegram.org/js/telegram-widget.js?21",Xc="https://forms.yandex.ru",AI=r=>Array.from(document.querySelectorAll("iframe")).find(o=>o.contentWindow===r),II=r=>{try{const o=JSON.parse(r.data)["iframe-height"];if(!o)return;const i=AI(r.source);i&&(i.style.height=o+"px")}catch{return}},TI=/^(.*)__(\d+)$/;function SI(){const r=window.location.hash.slice(1);if(!r)return"";try{return decodeURIComponent(r)}catch{return r}}const RI=r=>{rt(async()=>{const o=SI(),i=o.match(TI);if(!i)return;await sr();const u=ul(r.value);let c=NA(r.value).indexOf(o);if(c===-1){const a=sl(i[1]);c=a?u.indexOf(a):-1}const p=c===-1?"":u[c],d=p&&document.getElementById(p);d&&(window.history.replaceState(null,"",`#${p}`),d.scrollIntoView())})},BI=Le({__name:"SbWrapper",props:{body:{type:Array,required:!0}},emits:["clickImage","onMounted"],setup(r,{emit:o}){const i=r,u=fe(!1),c=fe(!1);Mi("isMobile",c);const p=ae(()=>Array.isArray(i.body)?i.body.filter(U=>(u.value=U.type===Qe.SB_TYPE_IFRAME&&U.value.source.includes(Xc),U!=null&&typeof U=="object")):[]),d=ae(()=>ul(p.value));Mi("sbAnchors",d),RI(p);const a=ae(()=>p.value.findIndex(U=>U?.type===Qe.SB_TYPE_IMAGE||U?.type===Qe.SB_TYPE_LINKED_IMAGE)),h=(U,S)=>go[U?.type]?S===a.value?{index:S,priority:!0}:{index:S}:{},y=o,g=Zd(),b=ae(()=>Object.keys(g)),v=U=>{const S=U?.type;return S?go!=null&&go[S]?go[S]:(b.value.includes(S),"div"):"div"},w=U=>{const S=U?.type;return!go[S]&&!g[S]},_=U=>{if(U.type===Qe.SB_TYPE_IMAGE)return y("clickImage",U.event)},T=Vr("nameSpace",Oo.DEFAULT),A=ae(()=>mI[T]),B=U=>{if(U.type===Qe.SB_TYPE_CONTENTS)return $i(p.value);const S=U.value;return S&&typeof S=="object"?$i(S):S},D=U=>[Qe.SB_TYPE_INSTAGRAM,Qe.SB_TYPE_ADS,Qe.SB_TYPE_ADS_TELEPORT_TARGET].includes(U?.type)&&U!=null&&U.raw?U.raw:null,x={[Xc]:II},W=U=>{const S=x[U.origin];S&&S(U)};return rt(()=>{c.value=JA(),u.value&&window.addEventListener("message",W)}),co(()=>{u.value&&window.removeEventListener("message",W)}),(U,S)=>(oe(),ye("div",{class:Xe(["structured-body-wrapper",A.value])},[(oe(!0),ye(At,null,$t(p.value,(M,I)=>(oe(),Oe(Ct(v(M)),Rn({key:`${I}__${M?.type}`,class:{"structured-body__empty-element":w(M)},value:B(M),type:M?.type,raw:D(M),ref_for:!0},h(M,I),{onClick:_,onOnMounted:S[0]||(S[0]=R=>y("onMounted"))}),sa({_:2},[M!=null&&M.type&&U.$slots[M.type]?{name:"default",fn:$e(()=>[et(U.$slots,M.type,Rn({ref_for:!0},{...M,index:I,priority:I===a.value}),void 0,!0)]),key:"0"}:void 0]),1040,["class","value","type","raw"]))),128))],2))}}),CI=sn(BI,[["__scopeId","data-v-0dbdbed0"]]),OI={class:"comment-pin-badge"},LI={class:"comment-pin-badge__label","data-test":"comment-pin-badge-label"},NI=Le({__name:"CommentPinBadge",props:{label:{type:String,required:!0}},setup(r){return(o,i)=>(oe(),ye("div",OI,[xe(q(gf),{class:"comment-pin-badge__icon",width:"16px",height:"16px"}),Te("span",LI,ze(r.label),1)]))}}),We=(r,o)=>{const i=r.__vccOpts||r;for(const[u,c]of o)i[u]=c;return i},DI=We(NI,[["__scopeId","data-v-e803314c"]]),rh=Symbol("commentsDevice"),ll=Symbol("commentsIsInModal"),xI={class:"comment-hint-popover__content"},UI={class:"comment-hint-popover__title","data-test":"comment-hint-popover-title"},kI={class:"comment-hint-popover__text","data-test":"comment-hint-popover-text"},PI="calc(var(--ui-kit-z-index-modal, 300) + 1)",MI=Le({__name:"CommentHintPopover",props:{title:{type:String,required:!0},text:{type:String,required:!0}},emits:["open"],setup(r,{emit:o}){const i=o,u=Vr(ll,fe(!1)),c=Vr(rh,fe(Ot.DESKTOP)),p=ae(()=>c.value===Ot.MOBILE),d=ae(()=>p.value?!0:!u.value),a=ae(()=>u.value?PI:void 0);
713return(h,y)=>(oe(),Oe(q(sb),{class:"comment-hint-popover","data-test":"comment-hint-popover","teleport-to-body":d.value,"teleport-z-index":a.value,onOpen:y[0]||(y[0]=g=>i("open"))},{trigger:$e(({isActive:g})=>[xe(q(F0),{class:Xe(["comment-hint-popover__icon",{"comment-hint-popover__icon--active":g}]),"data-test":"comment-hint-popover-icon",width:"16px",height:"16px"},null,8,["class"])]),default:$e(()=>[Te("div",xI,[Te("div",UI,ze(r.title),1),Te("div",kI,ze(r.text),1)])]),_:1},8,["teleport-to-body","teleport-z-index"]))}}),$I=Le({__name:"ComplainIcon",setup(r){return(o,i)=>(oe(),Oe(q(N0),{class:"comment-action__complain-icon"}))}}),FI=We($I,[["__scopeId","data-v-004ed00a"]]),jI=Le({__name:"AddToBlackListIcon",setup(r){return(o,i)=>(oe(),Oe(q(mf),{class:"comment-action__ban-icon"}))}}),GI=We(jI,[["__scopeId","data-v-28316ea1"]]),qI=Le({__name:"RemoveFromBlacklist",setup(r){return(o,i)=>(oe(),Oe(q(D0),{class:"comment-action__unban-icon"}))}}),VI=We(qI,[["__scopeId","data-v-b4d412d8"]]),HI=Le({__name:"CopyCommentTextIcon",setup(r){return(o,i)=>(oe(),Oe(q(x0),{class:"comment-action__copy-icon"}))}}),zI=We(HI,[["__scopeId","data-v-fa6f6664"]]),WI=Le({__name:"CopyLinkIcon",setup(r){return(o,i)=>(oe(),Oe(q(U0),{class:"comment-action__copy-link-icon"}))}}),YI=We(WI,[["__scopeId","data-v-f24ba713"]]),KI=Le({__name:"BanIcon",setup(r){return(o,i)=>(oe(),Oe(q(mf),{class:"comment-action__ban-icon"}))}}),cn=We(KI,[["__scopeId","data-v-f5b54a04"]]),QI=Le({__name:"DeleteIcon",setup(r){return(o,i)=>(oe(),Oe(q(k0),{class:"comment-action__delete-icon"}))}}),ed=We(QI,[["__scopeId","data-v-17183c22"]]),JI=Le({__name:"EditIcon",setup(r){return(o,i)=>(oe(),Oe(q(P0),{class:"comment-action__edit-icon"}))}}),ZI=We(JI,[["__scopeId","data-v-2411eafd"]]),XI=Le({__name:"PinIcon",setup(r){return(o,i)=>(oe(),Oe(q(gf),{class:"comment-action__pin-icon"}))}}),eT=We(XI,[["__scopeId","data-v-648eccef"]]),tT=Le({__name:"UnPinIcon",setup(r){return(o,i)=>(oe(),Oe(q(M0),{class:"comment-action__pin-icon"}))}}),rT=We(tT,[["__scopeId","data-v-96da2159"]]),nT="Ответить",td="Показать",nh="Комментарий скрыт",rd="Вы предпочли скрыть комментарии этого пользователя",oT="Скрытый пользователь",nd={[we.Abuse]:FI,[we.AddToBlacklist]:GI,[we.RemoveFromBlacklist]:VI,[we.CopyText]:zI,[we.CopyLink]:YI,[we.BanUserTemporary]:cn,[we.BanUserPermanent]:cn,[we.Delete]:ed,[we.DeleteComments]:ed,[we.Edit]:ZI,[we.BanInBlog]:cn,[we.BanInMyBlogs]:cn,[we.BanInPosts]:cn,[we.UnbanInBlog]:cn,[we.UnbanInPosts]:cn,[we.Pin]:eT,[we.Unpin]:rT},iT="Почему этот комментарий отображается именно так?",Ya={SHADOWED:(r,o)=>`Мы сделали этот комментарий менее заметным для всех, потому что его рейтинг опустился ниже ${r} или у автора комментария общий рейтинг ниже ${o}`,HIDDEN:r=>`Мы скрыли этот комментарий для всех, потому что его рейтинг опустился ниже ${r}`,BLACKLISTED:"Мы скрыли все комментарии этого пользователя только для вас, потому что вы добавили его в личный черный список"},od={[jt.SPORTS]:"/tribuna/blogs/zhaglagdonks/2792305.html",[jt.CYBER]:"/tribuna/blogs/community/3251636.html"},Yi=r=>{const o=r?.toUpperCase();return od[o]??od[jt.SPORTS]},aT={class:"comment-dropdown"},sT={type:"button",class:"comment-dropdown-trigger","aria-label":"Меню комментария"},uT=Le({__name:"CommentDropdown",props:{commentId:{type:String,required:!0},items:{type:Array,required:!0}},emits:["select","open","close"],setup(r,{emit:o}){const i=r,u=ae(()=>`comment-dropdown-${i.commentId}`),c=Vr(ll,fe(!1)),p=ae(()=>{let g="comment-context-menu";return c.value&&(g+=" floating-ui--elevated"),g}),d=ae(()=>i.items.map(g=>{const b=g.action,v=g.iconName;return{...g,id:b,text:g.text??"",icon:nd[v]??nd[b],color:g.colorMode}})),a=o,h=fe(!1),y=g=>{h.value=!1,a("select",g.id)};return(g,b)=>(oe(),ye("div",aT,[xe(q(Jy),{modelValue:h.value,"onUpdate:modelValue":b[0]||(b[0]=v=>h.value=v),class:"comment-dropdown__list-menu","dropdown-id":u.value,items:d.value,placement:"bottom-end","menu-data-test":"comment-context-menu","menu-class":p.value,onSelect:y,onOpen:b[1]||(b[1]=v=>a("open")),onClose:b[2]||(b[2]=v=>a("close"))},{trigger:$e(()=>[Te("button",sT,[xe(q(G0),{class:"comment-dropdown-trigger__icon"})])]),_:1},8,["modelValue","dropdown-id","items","menu-class"])]))}}),lT=We(uT,[["__scopeId","data-v-841fb0b0"]]),cT={key:0,class:"comment-role-info","data-test":"comment-role-info"},dT=Le({__name:"CommentRoleInfo",props:{label:{type:String,required:!0}},setup(r){return(o,i)=>r.label?(oe(),ye("div",cT,ze(r.label),1)):ke("",!0)}}),fT=We(dT,[["__scopeId","data-v-e506e3ae"]]),pT=["id"],hT={class:"comment-item__header"},mT=["datetime"],gT=["href"],yT={class:"comment-item__body"},bT=Le({__name:"CommentItem",props:{id:{type:String,required:!0},isSelected:{type:Boolean,default:!1},isPinned:{type:Boolean,default:!1},pinLabel:{type:String,default:""},hasDonation:{type:Boolean,default:!1},user:{type:Object,required:!0},siteName:{type:String,required:!0},roleLabel:{type:String,default:""},isSportsTeamMember:{type:Boolean,default:!1},isUserHidden:{type:Boolean,default:!1},isForceLightTheme:{type:Boolean,default:!1},publishDate:{type:Number,required:!0},publishDateFull:{type:String,required:!0},dateLabel:{type:String,required:!0},permalink:{type:String,required:!0},isSmall:{type:Boolean,default:!1},hintTitle:{type:String,default:""},hintText:{type:String,default:""},isDeleted:{type:Boolean,default:!1},showDropdown:{type:Boolean,default:!0},dropdownItems:{type:Array,default:()=>[]}},emits:["subscribe","hint-open","dropdown-select","dropdown-open","dropdown-close"],setup(r,{emit:o}){const i=o;return(u,c)=>(oe(),ye("div",{id:r.id,class:Xe(["comment-item",{"comment-item--selected":r.isSelected,"comment-item--with-donation":r.hasDonation}]),"data-test":"comment-item"},[r.isPinned&&r.pinLabel?(oe(),Oe(DI,{key:0,class:"comment-item__pin-info",label:r.pinLabel},null,8,["label"])):ke("",!0),Te("div",hT,[xe(q(Qy),{user:r.user,"site-name":r.siteName,"is-sports-team-member":r.isSportsTeamMember,"publish-date":r.publishDate,"publish-date-full":r.publishDateFull,"is-small":r.isSmall,"is-hidden":r.isUserHidden,"force-light-theme":r.isForceLightTheme,class:"comment-item__user-info","data-test":"comment-item-user-info",onSubscribe:c[0]||(c[0]=p=>i("subscribe"))},{role:$e(()=>[r.roleLabel?(oe(),Oe(fT,{key:0,class:"comment-item__role-info",label:r.roleLabel},null,8,["label"])):ke("",!0)]),additionalInfo:$e(()=>[Te("time",{class:"comment-item__additional-info",datetime:r.publishDateFull},[Te("a",{target:"_blank",href:r.permalink,class:"comment-item__additional-info-link","data-test":"comment-item-permalink"},ze(r.dateLabel),9,gT)],8,mT)]),_:1},8,["user","site-name","is-sports-team-member","publish-date","publish-date-full","is-small","is-
713hidden","force-light-theme"]),r.hintText&&r.hintTitle&&!r.isDeleted?(oe(),Oe(MI,{key:0,class:"comment-item__hint",title:r.hintTitle,text:r.hintText,onOpen:c[1]||(c[1]=p=>i("hint-open"))},null,8,["title","text"])):ke("",!0),xe(q(ao),null,{default:$e(()=>[r.showDropdown?(oe(),Oe(lT,{key:0,"comment-id":r.id,items:r.dropdownItems,onSelect:c[2]||(c[2]=p=>i("dropdown-select",p)),onOpen:c[3]||(c[3]=p=>i("dropdown-open")),onClose:c[4]||(c[4]=p=>i("dropdown-close"))},null,8,["comment-id","items"])):ke("",!0)]),_:1})]),Te("div",yT,[et(u.$slots,"body",{},void 0,!0)])],10,pT))}}),wT=We(bT,[["__scopeId","data-v-070ebff4"]]);var Io=(r=>(r.COMPLAIN="complain",r.DELETE="delete",r.BAN="ban",r.BAN_PERMANENT="ban_permanent",r))(Io||{});function cl(){const r=[we.BanUserTemporary,we.BanUserPermanent],o=({action:i,isOwnComment:u})=>i===we.Abuse?"complain":i===we.Delete&&!u?"delete":r.includes(i)?i===we.BanUserPermanent?"ban_permanent":"ban":null;return{needsPopup:(i,u)=>!!o({action:i,isOwnComment:u}),routeActionToPopup:o}}var Be=(r=>(r.INVALID_ARGUMENT="INVALID_ARGUMENT",r.REQUEST_ERROR="REQUEST_ERROR",r.MAPPING_ERROR="MAPPING_ERROR",r.UPDATING_ERROR="UPDATING_ERROR",r.COMMENTS_VIEW_TREE_ERROR="COMMENTS_VIEW_TREE_ERROR",r.MODEL_CREATION_ERROR="MODEL_CREATION_ERROR",r.STORE_CREATION_ERROR="STORE_CREATION_ERROR",r.COMMENTS_EVENT_COLLECTOR_NOT_INJECTED="COMMENTS_EVENT_COLLECTOR_NOT_INJECTED",r.INJECTION_ERROR="INJECTION_ERROR",r))(Be||{});let Ce=class extends Error{constructor(o,i=""){super(`[Sports][Comments]: Code: ${o} ${i}`),this.code=o}};var Ze=(r=>(r.LIST="list",r.DIALOGUE="dialogue",r))(Ze||{});class $r extends Error{constructor(o,i=""){super(`[SPORTS][COMMENT_SERVICE] ${o} ${i}`)}}var Nr=(r=>(r.INJECTION_ERROR="INJECTION_ERROR",r.INVALID_PARAMS="INVALID_PARAMS",r.DONATION_NOT_CONFIRMED="DONATION_NOT_CONFIRMED",r))(Nr||{}),gt=(r=>(r.VIEW="view",r.REPLY="reply",r.THREAD="thread",r))(gt||{}),xr=(r=>(r.IS_BLOG_AUTHOR="isBlogAuthor",r.IS_POST_AUTHOR="isPostAuthor",r.IS_POST_MODERATOR="isPostModerator",r))(xr||{});const oh=r=>` { textMetric(text: ${JSON.stringify(r.text)}) { label } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");oh.operationName="textMetric";var Xs=(r=>(r.INVALID_PARAMS="INVALID_PARAMS",r.REQUEST_ERROR="REQUEST_ERROR",r))(Xs||{});let Ka=class extends Error{constructor(o,i=""){super(`[SPORTS][Anti-hate]: Code: ${o} ${i}`)}};const vT="Не удалось получить данные проверки",ET=r=>r.replace(/"/g,'\\"').replace(/[\\"]/g,"\\$&").replace(/\n/g,"\\n");function _T(r){if(!r)throw new Ka(Xs.INVALID_PARAMS,"отсутствует gql-клиент");return{async isHateText(o){if(o.length===0||o.trim().length===0)return 1;try{const i=await r.query(oh({text:ET(o)}));if(!i)throw new Ka(Xs.REQUEST_ERROR,vT);return i.label}catch(i){if(i instanceof Ka)throw i;return-1}}}}const ih=r=>{const o=_T(r);return{checkTextHate:async(i,u,c)=>!c||i!==u?o.isHateText(i):Promise.resolve(0)}},AT="не указан идентификатор родителя",IT="отсутствует id отвеченного комментария",TT="не найдена информация о родительском комментарии",id="не найдено представление родительского комментария",so="не найдено представление комментария",eu="не удалось обновить отображение комментариев",ST=5,ad=1,RT="3322465",BT=(r,o)=>{let i=o[r];for(;o[i];)i=o[i];return i},vt=(r,o,i,u)=>{const c=BT(r,o);if(i===Ze.LIST||!c){const a=u.findIndex(h=>h.data.id===r);return{parentId:"",parentIndex:-1,index:a,view:u[a]}}const p=u.findIndex(a=>a.data.id===c);if(p===-1)return{parentId:"",parentIndex:-1,index:-1,view:null};const d=u[p].children.data.findIndex(a=>a.data.id===r);return{parentId:c,parentIndex:p,index:d,view:u[p].children.data[d]}},sd=(r,o)=>{if(!r)throw new Ce(Be.INVALID_ARGUMENT,AT);const i=o[r];return i?i.children:[]},Ki=(r,o)=>o.find(i=>i.data.id===r),Xt=(r,o,i,u)=>{const{view:c}=vt(r,o,i,u);return c?.data},yo=(r,o,i,u)=>{const c=Xt(r,o,i,u);if(!c)throw new $r(Nr.INVALID_PARAMS,`не удалось найти представление комментария с id ${r}`);return c.author.id};class In{get documentId(){return this._documentId}constructor(o){this._documentId=o}static buildReplyCommentKey(o){return`sports:cache:${o}:reply-comment`}static setReplyComment(o,i){if(!o)return;const u=this.buildReplyCommentKey(o);i&&sessionStorage.setItem(u,i)}setReplyComment(o){In.setReplyComment(this._documentId,o)}static getReplyComment(o){return o?sessionStorage.getItem(this.buildReplyCommentKey(o)):null}getReplyComment(){return In.getReplyComment(this._documentId)}static removeReplyComment(o){o&&sessionStorage.removeItem(this.buildReplyCommentKey(o))}removeReplyComment(){In.removeReplyComment(this._documentId)}}const ud=2,CT=5;Ot.MOBILE+"",Ze.DIALOGUE+"",Ze.LIST+"",Ot.DESKTOP+"",Ze.DIALOGUE+"",Ze.LIST+"";const ld={[Ze.DIALOGUE]:10,[Ze.LIST]:20};function cd({isRoot:r=!0,viewMode:o}){return r?{total:OT({viewMode:o}),children:ud}:{total:CT,children:ud}}function OT({viewMode:r}){return ld[r]||ld[Ze.DIALOGUE]}function Qa(r){if(!r.mode)throw new Ce(Be.INVALID_ARGUMENT,"отсутствует режим показа комментариев");switch(r.mode){case Ze.DIALOGUE:return LT(r);case Ze.LIST:return NT(r);default:return{idsForDataLoading:[],lastRenderedId:"",lastRenderedChildrenIds:{},commentsRenderingStructure:[]}}}function LT(r){const o=[],i={};let u=[],c="",p=0;const d=r.lastRenderedId?ah(r.lastRenderedId,r.ids):r.ids,a=d.length;for(let h=0;h<a;h=h+1){const{id:y,children:g}=d[h],b={id:y,children:[],isDeleted:d[h].isDeleted};u.push(y),p=p+1;const v=g.length,w=[];if(v>0){const T=r.limits.children<v?r.limits.children:v;for(let A=0;A<T;A=A+1){const B=g[A];w.push(B.id),b.children.push(B)}}const _=w.length;if(_>0&&(u=u.concat(w),i[y]=w[_-1]),o.push(b),p>=r.limits.total||h+1===a){c=y;break}}return{idsForDataLoading:u,lastRenderedId:c,commentsRenderingStructure:o,lastRenderedChildrenIds:i}}
713function NT(r){let o=r.ids;r.lastRenderedId&&(o=ah(r.lastRenderedId,o));const i=r.limits.total<o.length?r.limits.total:o.length;o=o.slice(0,i);const u=o.map(c=>c.id);return{idsForDataLoading:u,lastRenderedId:u[u.length-1],commentsRenderingStructure:o,lastRenderedChildrenIds:{}}}function ah(r,o){const i=o.findIndex(u=>u.id===r);return i>-1?o.slice(i+1):o}var en=(r=>(r.LOADED="LOADED",r.NOT_LOADED="NOT_LOADED",r.OUT_OF_SORT="OUT_OF_SORT",r))(en||{});const Ja="не указан id пользователя",Ur="не указан id комментария",DT="не удалось удалить комментарий пользователя",hi="не удалось получить список комментариев",mi="не указан id объекта",xT="не получены данные о результатах бана всех комментариев пользователя",UT=64;function kT(r){let o=r;for(let i=0;i<UT;i+=1){const u=o.replace(/^\[[^\]]+\]\s*/,"").trim();if(u===o)break;o=u}return o}function PT(r){return/^:?\s*Code:\s*\S+\s*$/i.test(r)}function dd(r,o){var i;const u=r.trim().replace(/^Error:\s*/i,"");let c=kT(u);const p=c.match(/Code:\s*\S+\s+(.+)$/is);return(i=p?.[1])!=null&&i.trim()?p[1].trim():(c=c.trim(),!c||PT(c)?o:c)}function ur(r){async function o(u){var c,p,d;let a=!1;try{const h=await u.action();(c=u.onSuccess)==null||c.call(u,h,u)}catch(h){a=!0;const y=h instanceof Error?h.message:String(h);r?.notifyError({error:h,errorText:dd(y,u.errorText)}),(p=u.onError)==null||p.call(u,h)}finally{(d=u.onFinally)==null||d.call(u,a,u)}}async function i(u){var c,p,d;let a=!1;try{const h=(c=u.preloadData)==null?void 0:c.call(u);if(u.preloadData&&!h){r?.notifyError({error:u.errorText,errorText:u.errorText});return}if(!await u.action(h)){r?.notifyError({error:u.errorText,errorText:u.errorText});return}if(u.onSuccess){await u.onSuccess(h,u);return}r?.notifySuccess(u.getSuccessText(h))}catch(h){a=!0;const y=h instanceof Error?h.message:String(h);r?.notifyError({error:h,errorText:dd(y,u.errorText)}),(p=u.onError)==null||p.call(u,h)}finally{await((d=u.onFinally)==null?void 0:d.call(u,a,u))}}return{runAction:o,runActionWithStatus:i}}const sh={[qn.Undefined]:"",[qn.BlogAuthor]:"",[qn.Author]:"Автор",[qn.BlogModerator]:"Модератор",[qn.BlogOwner]:"Основатель блога","%future added value":""};function MT({blogPostRole:r,userType:o},i){return{roleName:sh[r],siteName:i,isSportsTeamMember:o===Gu.SportsEmployee}}function uh({author:r,userLabels:o},i=jt.SPORTS){var u,c,p,d,a;return{authorId:r.id,profileImage:{png:{normal:((u=r.normal)==null?void 0:u.url)||"",retina:((c=r.big)==null?void 0:c.url)||""},webp:{normal:((p=r.normalWebp)==null?void 0:p.url)||"",retina:((d=r.bigWebp)==null?void 0:d.url)||""},original:{normal:((a=r.picture)==null?void 0:a.url)||""}},nick:r.nick,url:r.url,rating:r.rate.points,isBlocked:r.blocked,balls:r.balls,roleInfo:MT(o,i),about:r.about||"",followersCount:r.subscribersCount,verified:r.verified,following:r.following,badge:r.badge||null}}function $T(r=0){const o=fe("");let i=!1;const u=(c,p=!1)=>{if(c<=0){o.value="";return}const d=new Date(cA(c));if(p){const a=dA(d);o.value=fd(a)}else o.value=fd(d)};return u(Pt(r),!0),He(()=>Pt(r),c=>u(c,!i)),rt(()=>{i=!0,u(Pt(r),!1)}),{commentVisibleDate:o}}function fd(r){return String(sA({timestamp:r.getTime(),template:"bunin"}))}const FT="comment_id";function lh(){return{generateLink:r=>{var o,i;const u=(o=window?.location)==null?void 0:o.origin,c=(i=window?.location)==null?void 0:i.pathname;if(!u)throw new Ce(Be.INVALID_ARGUMENT,"отсутствует объект с адресом страницы");return encodeURI(`${u}${c}?${FT}=${r}`)}}}const jT=(r,o={})=>
713{if(o.maxLines){const i=Number.parseInt(getComputedStyle(r).lineHeight,10);if(Number.isFinite(i)){const u=i*o.maxLines,c=Math.floor(r.scrollHeight)>u;if(o.maxLines===1){const p=Math.floor(r.scrollWidth)>Math.floor(r.clientWidth);return c||p}return c}}return r.scrollHeight>r.clientHeight||r.scrollWidth>r.clientWidth},GT=(r,o={})=>{const i=fe(!1),u=()=>{r.value&&(i.value=jT(r.value,o))};let c=null;return rt(()=>{u();const p=r.value;p&&(c=new ResizeObserver(u),c.observe(p))}),co(()=>{c?.disconnect()}),{isOverflown:i,update:u}};var Bi=(r=>(r.TEXT="TEXT",r.CUSTOM_COMPONENT="CUSTOM_COMPONENT",r))(Bi||{});const pd=3,qT=4,Qi=7e3,ch=(r,o)=>({logger:r,notifyError(i){this.logger.error(i.error),o?.add({type:Bi.TEXT,props:{text:i.errorText,messageStatus:Hl.NEGATIVE,duration:Qi}})},notifySuccess(i){o?.add({type:Bi.TEXT,props:{text:i,messageStatus:Hl.NEUTRAL,duration:Qi}})},notifyWithCustomComponent(i,u){o?.add({type:Bi.CUSTOM_COMPONENT,component:i,props:u})}}),VT=-100,HT=-4,zT=-9;function dh(){return{rating:{shadow:HT,hide:zT},author:{shadow:VT}}}function Za(){if(typeof window>"u")return null;try{return window.localStorage}catch{return null}}const dl=(r,o)=>{const i=`sports:comments:${o.toLowerCase()}:${r}`;return{saveUserComment:u=>{const c=Za();c&&c.setItem(i,JSON.stringify(u))},getUserComment:()=>{const u=Za();if(!u)return;const c=u.getItem(i);if(c)return JSON.parse(c)},removeUserComment:()=>{const u=Za();u&&u.removeItem(i)},STORAGE_KEY:i}},WT="Не удалось создать комментарий",YT="Не удалось отправить донат",KT="Не удалось загрузить комментарии",hd="Не удалось догрузить комментарии",QT="Ошибка при рейтинговании комментария",JT="Не удалось скопировать текст комментария",ZT="Текст комментария скопирован",XT="Не удалось добавить пользователя в черный список",eS="Не удалось удалить пользователя из черного списка",tS="Не удалось удалить комментарий",rS="Комментарий удален",nS="Не удалось скопировать ссылку на комментарий",oS="Ссылка на комментарий скопирована",iS="Не удалось пожаловаться на комментарий",aS="Ваша жалоба успешно отправлена",sS="Не удалось отредактировать комментарий",fh="В сообщении есть запрещенные слова",uS="Комментарий закреплен",lS="Не удалось закрепить комментарий",cS="Комментарий откреплен",dS="Не удалось открепить комментарий",fS=5,pS=100,md="body";function hS(r={}){const{teleportTo:o=md}=r,i=fe(0),u=()=>{const v=document.querySelector(o);if(!v||o===md)return i.value=0,!1;let w=v.getBoundingClientRect().height;if(w<=0&&(w=v.offsetHeight),w<=0){const _=v.style.height;if(_){const T=parseFloat(_);w=isNaN(T)?0:T}}return w=w>0?w:0,i.value=w,!0};let c=null;const p=()=>{c===null&&(c=requestAnimationFrame(()=>{u(),c=null}))};let d=null,a=null,h=null;const y=()=>{p()},g=()=>{p()},b=async()=>{await sr();let v=0;const w=()=>{v+=1,!(u()||v>=fS)&&setTimeout(w,pS)};w();const _=document.querySelector(o);if(_&&"ResizeObserver"in window&&(d=new ResizeObserver(()=>{p()}),d.observe(_)),_&&"MutationObserver"in window){a=new MutationObserver(()=>{document.querySelector(o)?p():i.value=0});const T=_.parentElement;T&&a.observe(T,{childList:!0,subtree:!1})}window.addEventListener("resize",y),window.visualViewport&&(h=window.visualViewport,h.addEventListener("resize",g),h.addEventListener("scroll",g))};return rt(async()=>{await b()}),On(()=>{c!==null&&(cancelAnimationFrame(c),c=null),d&&(d.disconnect(),d=null),a&&(a.disconnect(),a=null),h&&(h.removeEventListener("resize",g),h.removeEventListener("scroll",g),h=null),window.removeEventListener("resize",y)}),i}const mS=1e4;function gd(r,o){const i=document.querySelector(r);return i?(o.value=i,!0):!1}function gS(r,o={}){const{maxWaitMs:i=mS}=o,u=fe(null);let c=null,p=null;return rt(()=>{typeof document>"u"||!r||gd(r,u)||(c=new MutationObserver(()=>{gd(r,u)&&(c?.disconnect(),c=null,p!==null&&(clearTimeout(p),p=null))}),c.observe(document.body,{childList:!0,subtree:!0}),p=setTimeout(()=>{p=null,c&&(c.disconnect(),c=null),u.value=document.body},i))}),On(()=>{c&&(c.disconnect(),c=null),p!==null&&(clearTimeout(p),p=null)}),u}var Tn=(r=>(r.BOTTOM="BOTTOM",r.TOP="TOP",r))(Tn||{}),kt=(r=>(r.DATE="date",r.BEST="best",r.ACTUAL="actual",r))(kt||{});const yS={empty:"Комментарии",nominative:"комментарий",genitiveSingle:"комментария",genitiveMultiple:"комментариев"},bS=r=>r===Tn.BOTTOM?Je.New:Je.Old,ph=(r,o)=>{switch(r){case kt.DATE:return o?bS(o):Je.New;case kt.ACTUAL:return Je.Actual;case kt.BEST:return Je.Best;default:return Je.New}},Kr=r=>{const{objectId:o,commentsModel:i,isAuthorized:u,notificator:c,pinia:p}=r,d=Et(o,p),a=ur(c),h=1e4,y=async ce=>{try{return await i.getOneCommentById(ce)}catch(de){throw new Ce(Be.REQUEST_ERROR,de)}},g=async()=>{const ce=cd({isRoot:!0,viewMode:d.viewMode}),{structure:de,comments:ve,totalCommentsCount:te}=await i.getFirstPageCommentList(o,ce.total,Je.Best),E=i.createCommentsListMap(ve),k=i.createIdsRecord(de);d.commentsList=i.mapCommentsToCommentViewData(de,E,k),d.totalPageCommentsCount=te},b=ce=>{var de;
713!((de=ce?.parentComment)!=null&&de.id)||!d.ids[ce.parentComment.id]||(d.commentsRelations[ce.id]=ce.parentComment.id)},v=ce=>{d.commentsList=ce.commentsView,d.lastRenderedRootID=ce.lastRenderedRootID,d.lastRenderedChildrenIds=ce.lastRenderedChildrenIds},w=(ce,de)=>{const ve=ce.map(i.mapIdToCommentList);d.viewMode=Ze.LIST,d.totalPageCommentsCount=ce.length,d.structure=ve,d.ids=i.createIdsRecord(ve);const{lastRenderedId:te,lastRenderedChildrenIds:E,commentsRenderingStructure:k}=Qa({ids:ve,mode:d.viewMode,lastRenderedId:d.lastRenderedRootID,limits:{total:3,children:2}}),Y=de;Y.forEach(J=>b(J));const re=i.createCommentsListMap(Y),z=i.mapCommentsToCommentViewData(k,re,d.ids,ad);v({commentsView:z,lastRenderedRootID:te,lastRenderedChildrenIds:{...d.lastRenderedChildrenIds,...E}}),z.length&&(d.lastRootCommentOrder=z[z.length-1].order)},_=ce=>ce.order===d.order&&ce.viewMode===d.viewMode,T=async(ce={})=>{const{parentId:de="",searchParams:ve}=ce;let te=ve&&!_(ve);if(te)return en.OUT_OF_SORT;if(!Object.keys(d.ids).length)return en.NOT_LOADED;const E=de?sd(de,d.ids):d.structure,k=de?Ze.LIST:d.viewMode,Y=de?d.lastRenderedChildrenIds[de]:d.lastRenderedRootID;de||(d.ids=i.createIdsRecord(E));const{idsForDataLoading:re,lastRenderedId:z,lastRenderedChildrenIds:J,commentsRenderingStructure:se}=Qa({ids:E,mode:k,lastRenderedId:Y,limits:ce.isReply?{total:h,children:h}:cd({isRoot:de.length===0,viewMode:d.viewMode})});if(!re.length)return en.NOT_LOADED;const Ae=await(o===RT?i.getSBCommentsById.bind(i):i.getCommentsById.bind(i))(re);if(te=ve&&!_(ve),te)return en.OUT_OF_SORT;Ae.forEach(me=>b(me));const Ie=i.createCommentsListMap(Ae),le=i.mapCommentsToCommentViewData(se,Ie,d.ids,de?ad:d.lastRootCommentOrder);if(de){const me=Ki(de,d.commentsList);if(!me)return en.NOT_LOADED;me.children.data=me.children.data.concat(le),d.lastRenderedChildrenIds[de]=z}else{const me=new Set(d.commentsList.map(Ee=>Ee.data.id)),Se=le.filter(Ee=>!me.has(Ee.data.id));v({commentsView:d.commentsList.concat(Se),lastRenderedRootID:z,lastRenderedChildrenIds:{...d.lastRenderedChildrenIds,...J}}),d.lastRootCommentOrder=le[le.length-1].order}return en.LOADED},A=async ce=>{await a.runAction({errorText:hd,action:async()=>{await T({parentId:ce})},onSuccess:()=>{!ce||Ki(ce,d.commentsList)}})},B=async ce=>{const de=ce;try{d.isLoadingComments=!0,d.lastRootCommentOrder=1;const ve=await(de.viewMode===Ze.DIALOGUE?i.getCommentWithThread.bind(i):i.getCommentList.bind(i))(o,de.order);d.order=de.order,d.viewMode=de.viewMode;const{comments:te,totalCommentsCount:E}=ve;if(d.totalPageCommentsCount=E,!_(de)){d.isLoadingComments=!1;return}if(d.structure=te,d.ids=i.createIdsRecord(te),v({commentsView:[],lastRenderedRootID:"",lastRenderedChildrenIds:{}}),await T({searchParams:de})===en.OUT_OF_SORT){d.isLoadingComments=!1;return}d.isLoadingComments=!1}catch(ve){throw d.isLoadingComments=!1,new Ce(Be.REQUEST_ERROR,ve)}},D=ce=>{const de={order:Je.Best,viewMode:Ze.DIALOGUE};if(!(ce!=null&&ce.commentsFilterSort))return de;const[ve,te]=ce.commentsFilterSort.split(":");return{order:Object.values(Je).includes(ve)?ve:de.order,viewMode:Object.values(Ze).includes(te)?te:de.viewMode}},x=async ce=>{try{return await i.updateUserCommentsFilterSort(ce)}catch(de){throw new Ce(Be.REQUEST_ERROR,de)}},W=async()=>{try{return await i.getUserSettings()}catch(ce){throw new Ce(Be.REQUEST_ERROR,ce)}},U=async(ce,de=!1)=>{let ve=ce;if(!ve){const te=await W();ve=D(te)}await a.runAction({errorText:KT,action:async()=>{await B(ve),u.value&&await x(ve)},onFinally:te=>{}})},S=(ce,de,ve)=>({order:ph(ce,ve),viewMode:de}),M=(ce,de,ve)=>U(S(ce,de,ve),!0),I=async()=>{try{const ce=await(d.viewMode===Ze.DIALOGUE?i.getCommentWithThread.bind(i):i.getCommentList.bind(i))(o,d.order,kf.Negative),{comments:de}=ce;return d.structure.push(...de),await T()}catch(ce){throw new Ce(Be.REQUEST_ERROR,ce)}},R=async()=>{await a.runAction({errorText:hd,action:async()=>{await I()}})},C=async ce=>{if(!ce)throw new Ce(Be.INVALID_ARGUMENT,IT);try{d.isLoadingComments=!0;const de=await i.getCommentReplies(ce);d.structure=de,d.ids=i.createIdsRecord(de),v({commentsView:[],lastRenderedRootID:"",lastRenderedChildrenIds:{}}),await T({isReply:!0}),d.totalCommentsCount=sd(ce,d.ids).length+1,d.isLoadingComments=!1}catch(de){throw d.isLoadingComments=!1,new Ce(Be.REQUEST_ERROR,de)}},V=async(ce,de=Ze.DIALOGUE)=>
713{if(!ce)throw new Ce(Be.INVALID_ARGUMENT,Ur);d.viewMode=de;try{d.isLoadingComments=!0;const ve=await i.getCommentThread(ce);d.structure=[ve],d.ids=i.createIdsRecord(d.structure),v({commentsView:[],lastRenderedRootID:"",lastRenderedChildrenIds:{}});const{idsForDataLoading:te,lastRenderedId:E,lastRenderedChildrenIds:k,commentsRenderingStructure:Y}=Qa({ids:d.structure,mode:Ze.DIALOGUE,lastRenderedId:"",limits:{total:h,children:h}}),re=await i.getCommentsById(te);re.forEach(J=>b(J));const z=i.createCommentsListMap(re);if(de===Ze.LIST){const J=z[ce],se=i.buildCommentViewData(J,d.ids);v({commentsView:[se],lastRenderedRootID:ce,lastRenderedChildrenIds:d.lastRenderedChildrenIds}),d.totalCommentsCount=1}else{const J=i.mapCommentsToCommentViewData(Y,z,d.ids);v({commentsView:J,lastRenderedRootID:E,lastRenderedChildrenIds:{...d.lastRenderedChildrenIds,...k}}),d.totalCommentsCount=Object.keys(d.ids).length}d.isLoadingComments=!1}catch(ve){throw d.isLoadingComments=!1,new Ce(Be.REQUEST_ERROR,ve)}},F=()=>{const ce=In.getReplyComment(o);if(!ce)return;const de=vt(ce,d.commentsRelations,d.viewMode,d.commentsList);de!=null&&de.view&&(de.view.showAnswerForm=!0,d.replyTarget=de)},ue=()=>{var ce;(ce=d.replyTarget)!=null&&ce.view&&(d.replyTarget.view.showAnswerForm=!1),In.removeReplyComment(o),d.replyTarget=null},H=ae(()=>d.structure.length),j=ae(()=>{const ce=d.structure.length,de=d.structure.flatMap(ve=>ve.children).length;return ce+de}),X=ae(()=>d.totalPageCommentsCount>d.commentsList.length),he=ae(()=>d.totalPageCommentsCount>0),ge=ce=>{var de,ve,te,E;const k=vt(ce,d.commentsRelations,d.viewMode,d.commentsList);if(!(k!=null&&k.view))throw new Ce(Be.COMMENTS_VIEW_TREE_ERROR,so);if(((te=(ve=(de=d.replyTarget)==null?void 0:de.view)==null?void 0:ve.data)==null?void 0:te.id)===ce){ue();return}(E=d.replyTarget)!=null&&E.view&&(d.replyTarget.view.showAnswerForm=!1),k.view.showAnswerForm=!0,d.replyTarget=k,In.setReplyComment(o,ce)},ne=async()=>{await a.runAction({errorText:"Не удалось загрузить комментарии",action:async()=>{const ce=await W(),de=D(ce);await B(de)}})},be=async ce=>{await a.runAction({errorText:"Не удалось загрузить ответы",action:()=>C(ce)})},P=async(ce,de,ve)=>{await a.runAction({errorText:"Не удалось загрузить ветку комментариев",action:async()=>{const te=de?await de():void 0,E=ve&&te?ve(te).viewMode:Ze.DIALOGUE;await V(ce,E)}})},ee=()=>{d.totalCommentsCount+=1,d.totalPageCommentsCount+=1},Ue=async ce=>{var de;const ve=vt(ce,d.commentsRelations,d.viewMode,d.commentsList);if(!ve.view)throw new Ce(Be.COMMENTS_VIEW_TREE_ERROR,so);ve.view.isFetchingEditForm=!0,d.isProcessingComment=!0;const te=await y(ce);if(ve.parentIndex>-1)d.commentsList[ve.parentIndex].children.data[ve.index]=i.buildCommentViewData(te,d.ids);else{const E=i.buildCommentViewData(te,d.ids),k=typeof ve.index=="number"?ve.index:d.commentsList.findIndex(Y=>Y.data.id===ce);if(k===-1){ve.view.isFetchingEditForm=!1,d.isProcessingComment=!1;return}E.children=(de=d.commentsList[k])==null?void 0:de.children,d.commentsList[k]=E}ve.view.isFetchingEditForm=!1,d.isProcessingComment=!1},_e=(ce,de,ve=()=>!0)=>{if(!(!de||ce.length===0))return ce.map(te=>{let E=te;if(ve(te)&&(E=de(te)),te.children.totalComments===0)return E;const k=_e(te.children.data,de,ve);return!k||k.length===0||(E.children.data=k),E})};return{loadInitialCommentsList:g,findCommentInTree:vt,setInitialCommentsList:w,renderComments:T,loadComments:B,reloadComments:U,loadRestComments:I,onLoadRestComments:R,loadCommentReplies:C,loadCommentThread:V,restoreReplyComment:F,openReplyForm:ge,resetCommentAnswer:ue,totalRootCommentsCount:H,commentsTotalStructureLength:j,hasMoreComments:X,hasComments:he,loadViewWithErrorHandling:ne,loadCommentRepliesWithErrorHandling:be,loadCommentThreadWithErrorHandling:P,setCommentRelation:b,incrementCommentCount:ee,onShowMore:A,updateComment:Ue,updateComments:_e,getOneCommentById:y,onSortChange:M,getUserCommentSettings:W}},wS={[Ot.MOBILE]:Gi.MobileWeb,[Ot.DESKTOP]:Gi.DesktopWeb},Vo=r=>{const{objectId:o,commentsModel:i,userInputStorage:u,gqlClient:c,isAuthorized:p,notificator:d,pinia:a}=r,h=Et(o,a),y=Kr({objectId:o,commentsModel:i,isAuthorized:p,pinia:a}),{checkTextHate:g}=ih(c),b=fe(!1),v=fe(!1),{runAction:w}=ur(d),_=async S=>{var M,I,R;return await i.addComment({objectId:o,commentText:S.text,parentId:S.parentId,isDeleted:(M=S.newCommentOptions)==null?void 0:M.isDeleted,platform:((I=S.newCommentOptions)==null?void 0:I.device)&&wS[(R=S.newCommentOptions)==null?void 0:R.device]})},T=S=>{const M=i.mapIdToCommentList(S.id),I=i.mapCommentsToCommentViewData([M],{[S.id]:S},h.ids)[0];return{commentListItem:M,commentViewData:I}},A=S=>{y.setCommentRelation(S);const{commentListItem:M,commentViewData:I}=T(S);return h.ids[S.id]=M,y.incrementCommentCount(),{commentListItem:M,commentViewData:I}},B=S=>{const{commentListItem:M,commentViewData:I}=A(S);return h.structure.unshift(M),h.commentsList.unshift(I),h.isProcessingComment=!1,b.value=!1,S.id},D=async(S,M)=>{try{v.value=!1;const I=await g(S,h.newCommentLastText,b.value),R=S!==h.newCommentLastText;h.newCommentLastText=S;const C=!I&&b.value;if(I===1)return b.value=!0,{id:"",hateRating:I,hasEditRudeComment:R,isSecondC
713hanceSending:C};h.isProcessingComment=!0;const V=await _({text:S,newCommentOptions:M});return M!=null&&M.isDeleted?{id:V.id}:(B(V),{id:V.id,hateRating:I,hasEditRudeComment:R,isSecondChanceSending:C})}catch(I){throw v.value=!0,h.isProcessingComment=!1,b.value=!1,new Error(I.message)}},x=async(S,M)=>{const I=vt(M,h.commentsRelations,h.viewMode,h.commentsList);if(!I.view)throw new Ce(Be.COMMENTS_VIEW_TREE_ERROR,id);try{I.view.hasReplyFetchError=!1;const R=await g(S,h.newCommentLastText,b.value),C=S!==h.newCommentLastText;I.view.lastAnswerText=S;const V=!R&&I.view.isRudeAnswerContent;if(R===1)return I.view.isRudeAnswerContent=!0,{id:"",hateRating:R,hasEditRudeComment:C,isSecondChanceSending:V};I.view.isFetchingReply=!0,h.isProcessingComment=!0;const F=await _({text:S,parentId:M}),{commentListItem:ue,commentViewData:H}=A(F),j=h.structure.findIndex(he=>he.id===M)+1;h.structure.splice(j,0,ue);const X=h.commentsList.findIndex(he=>he.data.id===M)+1;return h.commentsList.splice(X,0,H),I.view.children.totalComments+=1,I.view.isFetchingReply=!1,I.view.isRudeAnswerContent=!1,h.isProcessingComment=!1,{id:F.id,hateRating:R,hasEditRudeComment:C,isSecondChanceSending:V}}catch(R){throw I.view.hasReplyFetchError=!0,I.view.isFetchingReply=!1,I.view.isRudeAnswerContent=!1,new Error(R.message)}},W=async(S,M)=>{var I,R;let C=null,V=null,F=null;try{if(V=vt(M,h.commentsRelations,h.viewMode,h.commentsList).view??null,!V)throw new Ce(Be.COMMENTS_VIEW_TREE_ERROR,id);if(V.hasReplyFetchError=!1,(I=V.data.parentComment)!=null&&I.id&&Object.prototype.hasOwnProperty.call(h.ids,(R=V.data.parentComment)==null?void 0:R.id)){let ne=h.commentsRelations[M];for(;h.commentsRelations[ne];)ne=h.commentsRelations[ne];C=h.ids[ne],F=Ki(ne,h.commentsList)||void 0}else C=h.ids[M],F=V;if(!C||!F)throw new Ce(Be.COMMENTS_VIEW_TREE_ERROR,TT);const ue=await g(S,V.lastAnswerText,V.isRudeAnswerContent),H=S!==h.newCommentLastText;V.lastAnswerText=S;const j=!ue&&V.isRudeAnswerContent;if(ue===1)return V.isRudeAnswerContent=!0,{id:"",hateRating:ue,hasEditRudeComment:H,isSecondChanceSending:j};V.isFetchingReply=!0,h.isProcessingComment=!0;const X=await _({text:S,parentId:M}
713),{commentListItem:he,commentViewData:ge}=A(X);return C.children.push(he),F.children.data.push(ge),F.children.totalComments=F.children.totalComments+1,V.isFetchingReply=!1,V.isRudeAnswerContent=!1,h.isProcessingComment=!1,{id:X.id,hateRating:ue,hasEditRudeComment:H,isSecondChanceSending:j}}catch(ue){throw V&&(V.hasReplyFetchError=!0,V.isFetchingReply=!1,V.isRudeAnswerContent=!1),new Error(ue.message)}},U=async({text:S,parentId:M="",isDeleted:I,device:R})=>M?await(h.viewMode===Ze.LIST?x:W)(S,M):await D(S,{isDeleted:I,device:R});return{isRudeNewComment:b,hasNewCommentCreationError:v,addNewComment:D,addNewCommentWithErrorHandling:async(S,M,I)=>{await w({errorText:WT,action:()=>(h.isDonationFormShown=!1,U(S)),onSuccess:R=>{M?.(R)},onError:R=>{I?.(R)},onFinally:()=>{u.removeUserComment()}})},addComment:U,appendNewComment:B,processCommentData:A,runCommentAddingRequest:_,mapCommentData:T}},vS=["sports.ru","s5o.ru"];function ES(r,o){const i=typeof r=="string"?r:r!=null?String(r):"",u=typeof o=="string"?o.toLowerCase():String(o??"").toLowerCase(),c=i.match(/m?\.?(www|by|ua|cyber|m|)\.?([^.]*)\.?(tribuna.com|sports.ru|s5o.ru)/),p=c?c[3]:"";if(!p)return`<a href="${i}" target="_blank" rel="nofollow">${i}</a>`;const d=u==="ru"||u==="cyber",a=u==="by"||u==="ua";return d&&vS.includes(p)||a?`<a href="${i}">${i}</a>`:`<a href="${i}" target="_blank" rel="nofollow noreferrer noopener">${i}</a>`}function _S(r,o){const i=r.text;let u=typeof i=="string"?i:i!=null?String(i):"";return r.linksEnabled&&(u=u.replace(/(ftp:|http:|https:)\/\/[^\s]+/g,c=>ES(c,o))),u.replace(/\n/g,"<br />")}const yd=r=>[r.id,r],AS=r=>r.flatMap(o=>[yd(o),...o.children.length?o.children.map(yd):[]]),hh=r=>{if(typeof structuredClone<"u")try{return structuredClone(r)}catch{}return JSON.parse(JSON.stringify(r))},gi="Не удалось забанить пользователя",IS="Не удалось заблокировать пользователя навсегда",Xa="Не удалось разблокировать пользователя",TS="Не удалось удалить все комментарии пользователя";class SS{constructor(o){this._state=o.initial,this.states=o.states}get state(){return this._state}async toggle(o){if(!this.canTransitToState(o))return;this._state=o;const i=this.states[o].transition;let u=i();return this.isPromise(u)?(u=await u,this.state):Promise.resolve(this.state)}canTransitToState(o){if(!o)return!1;const i=this.states[this.state];return i?i.to.includes(o):!1}isPromise(o){return(typeof o=="object"||typeof o=="function")&&typeof o.then=="function"}}function mh(r,o){let i=!1;o.forEach(u=>{r.searchParams.has(u)&&(r.searchParams.delete(u),i=!0)}),i&&window.history.replaceState(null,document.title,r.toString())}const gh="get",RS="parent_id";var tu=(r=>(r.REPLY="reply",r.COMMENTS="comments",r))(tu||{});const yh="from",bh="amp";class wh{constructor(o,i,u){this.url=o,this.objectId=i,this.objClass=u}}var Mt=(r=>(r.VIEW="view",r.NOTIFICATION="notification",r.AMP_ANSWER="amp_answer",r.AMP_VIEW="amp_view",r.AMP_ADD="amp_add",r.NONE="none",r))(Mt||{});class BS extends wh{getURLParams(){switch(this.url.searchParams.get(gh)){case tu.REPLY:return this.getCommentAddingParams();case tu.COMMENTS:return this.getCommentsParams();default:return this.getEmptyParams()}}getCommentAddingParams(){const o=decodeURIComponent(this.url.searchParams.get(RS)??"");return{commentId:o,parentId:"",strategy:o?Mt.AMP_ANSWER:Mt.AMP_ADD}}getCommentsParams(){return{commentId:"",parentId:"",strategy:Mt.AMP_VIEW}}getEmptyParams(){return{commentId:"",parentId:"",strategy:Mt.NONE}}clearURL(){}}const ru="notification",nu="service_comment_id",ou="parent_id",vh="comment_id";class CS extends wh{constructor(){super(...arguments),this.paramsToClear=[ru,nu,ou]}getURLParams(){return this.url.searchParams.get(ru)==="1"?this.getNotificationParams():this.getViewParams()}getNotificationParams(){return{strategy:Mt.NOTIFICATION,commentId:decodeURIComponent(this.url.searchParams.get(nu)??""),parentId:decodeURIComponent(this.url.searchParams.get(ou)??"")}}getViewParams(){return{strategy:Mt.VIEW,commentId:decodeURIComponent(this.url.searchParams.get(vh)??""),parentId:""}}clearURL(){mh(this.url,this.paramsToClear)}}const OS=[ru,nu,ou,vh,yh,bh,gh];function LS(){mh(Eh(),OS)}function Eh(){return new URL(window.location.href)}function _h(r,o,i){return r.searchParams.get(yh)===bh?new BS(r,o,i):new CS(r,o,i)}function NS(r,o,i){return _h(r,o,i).getURLParams()}function DS(r,o,i){const u={strategy:Mt.VIEW,commentId:"",parentId:""};if(!r)return u;const c=r.request;if(!(c!=null&&c.url))return u;try{const p=new URL(c.url);
713return c.query&&Object.entries(c.query).forEach(([d,a])=>{a&&!p.searchParams.has(d)&&p.searchParams.set(d,a)}),NS(p,o,i)}catch{return u}}function xS(r,o){const i=fe(Mt.NONE),u=fe(""),c=fe("");return rt(()=>{const p=Eh(),d=_h(p,r,o),{commentId:a,parentId:h,strategy:y}=d.getURLParams();c.value=a,u.value=h,i.value=y,d.clearURL()}),{strategy:i,parentCommentId:u,commentId:c}}function US({value:r,status:o,how:i}){return{action:"black_list",label:"",property:{status:o,how:i},value:r}}function kS(r,o){return{action:"block_user",label:"",property:{where:r,status:o},value:""}}function PS(r){return{action:"report",label:"",property:{status:r},value:""}}function MS(r){return{action:"copy_comment",label:"",property:{status:r},value:""}}function $S(r){return{action:"delete_all_comments",label:"",property:{status:r},value:""}}function FS(r,o){return{action:"delete_comment",label:"",property:{whose:r,status:o},value:""}}function jS(r){return{action:"edit_comment",label:"",property:{status:r},value:""}}function GS(r){return{action:"input_activate",label:"",property:{comment_type:r},value:""}}function qS(r){return{action:"rate",label:"",property:{comment_id:r.comment_id,comment_type:r.comment_type,status:r.status},value:r.value}}function bd(r){return{action:"send",label:"",property:r,value:""}}function VS(r){return{action:"show_action_menu",label:"",property:{status:r},value:""}}var Ko=(r=>(r.SCROLL="scroll",r.CLICK="click",r))(Ko||{});function HS(){return{action:"show_all_comments",label:"",property:{by:Ko.CLICK},value:""}}function zS(r){return{action:"show_hidden",label:"",property:{comment_display:r},value:""}}function WS(){return{action:"show_more_comments",label:"",property:{by:Ko.SCROLL},value:""}}function YS(r){return{action:"show_more_replies",label:"",property:{how:r,by:Ko.CLICK},value:""}}function KS(){return{action:"show_parent_comment",label:"",property:"",value:""}}function QS(r){return{action:"show_rate_info",label:"",property:r,value:""}}function JS(r){return{action:"sort",label:"",property:r,value:""}}function ZS(r,o){return{action:"user_ban",label:"",property:{status:o},value:r}}function XS(r){return{action:"view",label:"",property:{comment_type:r.comment_type,replies_count:r.replies_count},value:r.value.toString()}}function eR(r,o,i){return{action:"antihate_answer",label:"",property:{comment_id:o,random_id:i},value:r}}function tR(r){return{action:"antihate_edit",label:"",property:{random_id:r},value:""}}function rR(r,o){return{action:"antihate_send",label:"",property:{comment_id:r,random_id:o},value:""}}function nR(r){return{action:"stopwords_warning",label:"",property:{random_id:r},value:""}}var Ci=(r=>(r.PLUS="plus",r.MINUS="minus",r.MANUALLY="manually",r))(Ci||{});function oR({has_text:r,...o}){return{action:"add_donation",label:"",property:{...o,has_text:Number(r)}}}function iR({has_text:r,...o}){return{action:"change_donation",label:"",property:{...o,has_text:Number(r)}}}function aR({has_text:r,...o}){return{action:"confirm_donation_change",label:"",property:{...o,has_text:Number(r)}}}function sR({has_text:r,...o}){return{action:"remove_donation",label:"",property:{...o,has_text:Number(r)}}}function uR({has_text:r,...o}){return{action:"cancel_payment",label:"",property:{...o,has_text:Number(r)}}}function lR(r){return{action:"why",label:"",property:{comment_display:r},value:""}}var tn=(r=>(r.SUCCESS="success",r.FAIL="fail",r.WAITING_PAYMENT="waiting_payment",r))(tn||{}),iu=(r=>(r.OWN="own",r.NOT_OWN="not_own",r))(iu||{}),fl=(r=>(r.BAN="1",r.UNBAN="0",r))(fl||{}),pl=(r=>(r.ADD="1",r.REMOVE="0",r))(pl||{}),Ah=(r=>(r.BLOG="this_blog",r.ALL_MY_BLOGS="all_my_blogs",r.ALL_MY_POSTS="all_my_posts",r))(Ah||{}),xt=(r=>(r.ROOT="root",r.REPLY="reply",r))(xt||{}),To=(r=>(r.MORE="more",r.ALL="all",r.BY_TIME="by_time",r.BY_ALGORITHM="by_algorithm",r))(To||{}),Hn=(r=>(r.NEW_FIRST="new_first",r.OLD_FIRST="old_first",r.BEST="best",r.ACTUAL="actual",r.UNKNOWN="unknown",r))(Hn||{}),au=(r=>(r.BUTTON="button",r.MENU="menu",r))(au||{}),zn=(r=>(r.HIDDEN="hidden",r.BLACK_LIST="black_list",r.MUTED="muted",r))(zn||{}),su=(r=>(r.PLUS="1",r.MINUS="-1",r))(su||{});const cR="analyticsEvent";class Ih{constructor(o,i){this.analyticsApi=o,this.analyticsConfig=i,this.analyticIdByParentId=fe(new Map),this.analyticId=fe("")}getRandomId(){return Math.floor(Math.random()*1e5).toString()}getAnalyticIdByParentId(o){if(!o)return this.analyticId.value||(this.analyticId.value=this.getRandomId()),this.analyticId.value;if(this.analyticIdByParentId.value.has(o))return this.analyticIdByParentId.value.get(o);const i=this.getRandomId();return this.analyticIdByParentId.value.set(o,i),i}getActionStatusByError(o){return o?tn.FAIL:tn.SUCCESS}getDonationActionStatus(o){return o?tn.SUCCESS:tn.WAITING_PAYMENT}collectEvent(o,i){var u;if(!this.analyticsApi||(!i||Object.keys(i).length===0)&&!((u=this.analyticsConfig)!=null&&u[o]))return;let c=i||{};this.analyticsConfig&&this.analyticsConfig[o]&&(c=this.analyticsConfig[o](c));const p={...c,category:c?.category??kR};this.analyticsApi.collect(cR,p)}send(o){const i=bd({comment_id:o.commentId,status:this.getActionStatusByError(o.hasError),comment_type:o.parentId?xt.REPLY:xt.ROOT,donation_sum:o.donationSum??0,random_id:o.analyticId});
713this.collectEvent("send",i)}send_new_comment_with_donation(o){const i=o.status??this.getActionStatusByError(o.hasError),u=bd({comment_id:o.commentId,status:i,comment_type:o.parentId?xt.REPLY:xt.ROOT,donation_sum:o.donationAmount,random_id:o.analyticId});this.collectEvent("send_new_comment_with_donation",u)}rate(o){const i=qS({comment_id:o.commentId,comment_type:o.isRootComment?xt.ROOT:xt.REPLY,status:this.getActionStatusByError(o.hasError),value:o.direction===ar.Plus?su.PLUS:su.MINUS});this.collectEvent("rate",i)}edit_comment(o){const i=jS(this.getActionStatusByError(o.hasError));this.collectEvent("edit_comment",i)}delete_comment(o){const i=o.isOwnComment?iu.OWN:iu.NOT_OWN,u=FS(i,this.getActionStatusByError(o.hasError));this.collectEvent("delete_comment",u)}report(o){const i=PS(this.getActionStatusByError(o.hasError));this.collectEvent("report",i)}copy_comment(o){const i=MS(this.getActionStatusByError(o.hasError));this.collectEvent("copy_comment",i)}black_list(o){const i=US({value:o.direction,status:this.getActionStatusByError(o.hasError),how:o.isRunnedByButton?au.BUTTON:au.MENU});this.collectEvent("black_list",i)}user_ban(o){const i=ZS(o.action,this.getActionStatusByError(o.hasError));this.collectEvent("user_ban",i)}block_user(o){const i=kS(Ah.BLOG,this.getActionStatusByError(o.hasError));this.collectEvent("block_user",i)}delete_all_comments(o){const i=$S(this.getActionStatusByError(o.hasError));this.collectEvent("delete_all_comments",i)}show_all_comments(){const o=HS();this.collectEvent("show_all_comments",o)}show_more_comments(){const o=WS();this.collectEvent("show_more_comments",o)}show_more_replies(o){const i=o.parentCommentView.children.data.length===o.parentCommentView.children.totalComments,u=YS(i?To.ALL:To.MORE);this.collectEvent("show_more_replies",u)}sort(o){const i=o.order===Je.New||o.order===Je.Old,u=this.getSortOrderBySortType(o.order),c=JS({how:i?To.BY_TIME:To.BY_ALGORITHM,sort_order:u});this.collectEvent("sort",c)}input_activate(o){const i=GS(o.commentType);this.collectEvent("input_activate",i)}show_action_menu(){const o=VS(tn.SUCCESS);this.collectEvent("show_action_menu",o)}show_hidden(o){const i=zS(o.reason);this.collectEvent("show_hidden",i)}show_parent_comment(){const o=KS();this.collectEvent("show_parent_comment",o)}show_rate_info(o){const i=QS({comment_id:o.commentId});this.collectEvent("show_rate_info",i)}view(o){const i=XS({comment_type:o.commentType,replies_count:o.repliesCount,value:o.value});this.collectEvent("view",i)}antihate_answer(o){const i=eR(o.hateRating,o.commentId||"0",o.randomId);this.collectEvent("antihate_answer",i)}antihate_edit(o){const i=tR(o.randomId);this.collectEvent("antihate_edit",i)}
713antihate_send(o){const i=rR(o.commentId||"0",o.randomId||"0");this.collectEvent("antihate_send",i)}stopwords_warning(o){const i=nR(o.randomId);this.collectEvent("stopwords_warning",i)}add_donation(o){const i=oR({has_text:o.hasText,random_id:o.randomId});this.collectEvent("add_donation",i)}change_donation(o){const i=iR({has_text:o.hasText,how:o.how,donation_sum_old:o.donationSumOld,donation_sum:o.donationSum,random_id:o.randomId});this.collectEvent("change_donation",i)}confirm_donation_change(o){const i=aR({has_text:o.hasText,random_id:o.randomId});this.collectEvent("confirm_donation_change",i)}remove_donation(o){const i=sR({has_text:o.hasText,donation_sum:o.donationSum,how:o.how,random_id:o.randomId});this.collectEvent("remove_donation",i)}cancel_payment(o){const i=uR({has_text:o.hasText,donation_sum:o.donationSum,random_id:o.randomId});this.collectEvent("cancel_payment",i)}why(o){const i=lR(o.reason);this.collectEvent("why",i)}authorization_click(o){const i={action:"authorization_click",label:"web_popup",property:{type:"sign_in",from:o.from},value:"1"};this.collectEvent("authorization_click",i)}reload(){this.collectEvent("reload",null)}change_view_mode(o){this.collectEvent("change_view_mode",{view_mode:o.viewMode})}pin_comment(o={}){this.collectEvent("pin_comment",null)}unpin_comment(o={}){this.collectEvent("unpin_comment",null)}follow_user(o={}){this.collectEvent("follow_user",null)}unfollow_user(o={}){this.collectEvent("unfollow_user",null)}getAnalyticId(o){return this.getAnalyticIdByParentId(o)}generateRandomId(){return this.getRandomId()}updateAnalyticId(o){o?this.analyticIdByParentId.value.delete(o):this.analyticId.value=this.getRandomId()}getSortOrderBySortType(o){switch(o){case Je.New:return Hn.NEW_FIRST;case Je.Old:return Hn.OLD_FIRST;case Je.Actual:return Hn.ACTUAL;case Je.Best:return Hn.BEST;default:return Hn.UNKNOWN}}}function nt(r,o){r&&o(r)}function dR(r,o,i){o&&nt(r,u=>{const{id:c,hateRating:p,hasEditRudeComment:d,isSecondChanceSending:a}=o,h=u.getAnalyticId(i),y=p===1;p!==void 0&&u.antihate_answer({commentId:c||"0",hateRating:p,randomId:h}),d&&a&&u.antihate_edit({randomId:h}),a&&u.antihate_send({commentId:c||"0",randomId:h}),u.send({commentId:c||"0",parentId:i,hasError:y,analyticId:h}),c&&u.updateAnalyticId(i)})}function fR(r,o,i){nt(r,u=>{const c=u.getAnalyticId(i);u.send({commentId:"0",parentId:i,hasError:!0,analyticId:c});const p=o?.message||"";(p.includes(fh)||p.includes("стоп-слова"))&&u.stopwords_warning({randomId:c})})}function pR(r,o,i,u){o&&nt(r,c=>{const{id:p,hateRating:d,hasEditRudeComment:a,isSecondChanceSending:h}=o,y=c.getAnalyticId(u);d!==void 0&&c.antihate_answer({commentId:p||i,hateRating:d,randomId:y}),a&&h&&c.antihate_edit({randomId:y}),h&&c.antihate_send({commentId:p||i,randomId:y}),c.edit_comment({hasError:!1}),p&&c.updateAnalyticId(u)})}function hR(r,o,i){nt(r,u=>{const c=u.getAnalyticId(i);u.edit_comment({hasError:!0});const p=o?.message||"";(p.includes(fh)||p.includes("стоп-слова"))&&u.stopwords_warning({randomId:c})})}function mR(r,o,i,u,c){nt(r,p=>{p.rate({commentId:o,isRootComment:u,direction:i,hasError:c})})}function gR(r,o,i){nt(r,u=>{o===we.CopyText?u.copy_comment({hasError:i}):o===we.DeleteComments&&u.delete_all_comments({hasError:i})})}function yR(r,o,i){nt(r,u=>{u.black_list({direction:pl.REMOVE,hasError:o,isRunnedByButton:i})})}function bR(r,o,i){nt(r,u=>{u.black_list({direction:pl.ADD,hasError:o,isRunnedByButton:i})})}function wR(r,o){nt(r,i=>{i.report({hasError:o})})}function vR(r,o,i){nt(r,u=>{u.delete_comment({isOwnComment:o,hasError:i})})}function ER(r,o,i){nt(r,u=>{o?u.block_user({hasError:i}):u.user_ban({action:fl.BAN,hasError:i})})}function _R(r,o){nt(r,i=>{i.user_ban({action:fl.UNBAN,hasError:o})})}function AR(r,o){nt(r,i=>{i.pin_comment({commentId:o})})}function IR(r,o){nt(r,i=>{i.unpin_comment({commentId:o})})}function TR(r,o){nt(r,i=>{i.follow_user({userId:o})})}function SR(r,o){nt(r,i=>{i.unfollow_user({userId:o})})}function Th(r){nt(r,o=>{o.show_more_comments()})}function Sh(r,o){nt(r,i=>{i.show_more_replies({parentCommentView:o})})}
713function RR(r,o,i){o?i&&Sh(r,i):Th(r)}function BR(r){nt(r,o=>{o.show_all_comments()})}function CR(r,o){nt(r,i=>{i.sort({order:o})})}function OR(r,o){nt(r,i=>{i.authorization_click({from:o})})}function LR(r,o){nt(r,i=>{i.input_activate({commentType:o})})}function NR(r,o,i,u){nt(r,c=>{const p=c.getAnalyticId(i);c.send_new_comment_with_donation({commentId:o,parentId:i,donationAmount:u,hasError:!1,analyticId:p,status:tn.WAITING_PAYMENT})})}function DR(r,o,i,u){nt(r,c=>{const p=c.getAnalyticId(i);c.send_new_comment_with_donation({commentId:o,parentId:i,donationAmount:u,hasError:!1,analyticId:p,status:tn.SUCCESS}),o&&c.updateAnalyticId(i)})}function xR(r){nt(r,o=>{o.reload()})}function UR(r,o){nt(r,i=>{i.change_view_mode({viewMode:o})})}function Rh(r){return{trackNewComment:(o,i)=>dR(r,o,i),trackNewCommentError:(o,i)=>fR(r,o,i),trackEditComment:(o,i,u)=>pR(r,o,i,u),trackEditCommentError:(o,i)=>hR(r,o,i),trackRate:(o,i,u,c)=>mR(r,o,i,u,c),trackContextAction:(o,i)=>gR(r,o,i),trackBlacklistRemove:(o,i=!1)=>yR(r,o,i),trackBlacklistAdd:(o,i=!1)=>bR(r,o,i),trackComplain:o=>wR(r,o),trackDeleteComment:(o,i)=>vR(r,o,i),trackBanUser:(o,i)=>ER(r,o,i),trackUnbanUser:o=>_R(r,o),trackPinComment:o=>AR(r,o),trackUnpinComment:o=>IR(r,o),trackFollowUser:o=>TR(r,o),trackUnfollowUser:o=>SR(r,o),trackShowMoreComments:()=>Th(r),trackShowMoreReplies:o=>Sh(r,o),trackShowMore:(o,i)=>RR(r,o,i),trackShowAllComments:()=>BR(r),trackSort:o=>CR(r,o),trackAuthorizationClick:o=>OR(r,o),trackInputActivate:o=>LR(r,o),trackDonationPending:(o,i,u)=>NR(r,o,i,u),trackDonationSuccess:(o,i,u)=>DR(r,o,i,u),reload:()=>xR(r),change_view_mode:o=>UR(r,o.viewMode)}}const kR="comments",uu=async(r,o={})=>{const{disableInitialScroll:i=!1,onScrollComplete:u}=o;if(await sr(),!r||i)return;r.scrollIntoView({behavior:"instant"});const c=setTimeout(()=>{if(!r){clearTimeout(c),u?.();return}const p=r.getBoundingClientRect();if(!p){clearTimeout(c),u?.();return}const d=Math.max(document.documentElement.clientHeight,window.innerHeight);(p.bottom<0||p.top-d>=0)&&r.scrollIntoView({behavior:"instant"}),clearTimeout(c),u?.()},500)},wd=async(r={})=>{const{commentId:o,answersBlock:i}=r,u=o?document.getElementById(o):i?.wrapper;u&&await uu(u)},PR=r=>{const{logger:o}=r,i=fe(gt.VIEW),u=fe(!0),c=fe(!1),{loadView:p,loadCommentReplies:d,loadCommentThread:a,openReplyForm:h,parentCommentId:y,commentId:g,commentsBlock:b,answersBlock:v,isAuthorized:w,emit:_,disableInitialScroll:T=!1,shouldOpenForm:A=fe(!1)}=r,B=async()=>{var S;c.value=!1,await p(),u.value=!1;const M=(S=b.value)==null?void 0:S.wrapper;M&&(await uu(M,{disableInitialScroll:T,onScrollComplete:()=>{u.value=!1}}),A.value&&(w.value?c.value=!0:_("needs-auth",{from:"write_comment"})))},D=async()=>{const S=y.value?y.value:g.value;await d(S),u.value=!1,await wd({answersBlock:v.value})},x=async()=>{await a(g.value),u.value=!1,A.value&&(w.value?h(g.value):_("needs-auth",{from:"write_comment"})),await wd({commentId:g.value,answersBlock:v.value})}
713,W=new SS({initial:gt.VIEW,states:{[gt.VIEW]:{name:gt.VIEW,to:[gt.VIEW,gt.REPLY,gt.THREAD],transition:B},[gt.REPLY]:{name:gt.REPLY,to:[gt.VIEW],transition:D},[gt.THREAD]:{name:gt.THREAD,to:[gt.VIEW],transition:x}}});i.value=W.state;const U=async S=>{const M=W.toggle(S).catch(I=>o.error(I));return i.value=W.state,M};return{state:i,change:U,goToViewComments:async(S=!0)=>{g.value="",await U(gt.VIEW),S||(LS(),_("analytic:show-all-comments",{by:Ko.CLICK}))},goToReplies:()=>U(gt.REPLY),goToCommentThread:()=>U(gt.THREAD),scrollToElement:S=>uu(S,{disableInitialScroll:T}),isLoadingPage:u,isFocusOnNewCommentForm:c}},MR=r=>{switch(r){case Je.New:return{tabId:kt.DATE,direction:Tn.BOTTOM};case Je.Old:return{tabId:kt.DATE,direction:Tn.TOP};case Je.Actual:return{tabId:kt.ACTUAL,direction:void 0};case Je.Best:return{tabId:kt.BEST,direction:void 0};default:return{tabId:kt.DATE,direction:Tn.BOTTOM}}};function $R(){return{getOrderByTab:ph,getTabDataByOrder:MR}}const Bh=r=>{const{commentsModel:o,objectId:i,notificator:u,pinia:c}=r,p=Et(i,c),{runActionWithStatus:d}=ur(u),{updateComments:a}=Kr({objectId:"",commentsModel:o,isAuthorized:fe(!0),pinia:c}),h=async(b,v)=>{const w=await o.deleteComment(b,v);if(!w)return!1;const _=vt(b,p.commentsRelations,p.viewMode,p.commentsList);if(!_.view)throw new Ce(Be.COMMENTS_VIEW_TREE_ERROR,so);return _.view.data.isDeleted=!0,w},y=async(b,v)=>{await d({errorText:tS,getSuccessText(){return rS},action:()=>h(b,v),onFinally:()=>Promise.resolve()})},g=async b=>{const v=await o.deleteUserComments(b);if(!v)return!1;const w=a(hh(p.commentsList),_=>({..._,data:{..._.data,isDeleted:!0}}),_=>_.data.author.id===b);if(!(w!=null&&w.length))throw new Ce(Be.UPDATING_ERROR,eu);return p.commentsList=w,v};return{deleteComment:h,deleteCommentWithErrorHandling:y,removeAllCommentsByAuthor:async b=>{await d({errorText:TS,preloadData:()=>{var v;return((v=vt(b,p.commentsRelations,p.viewMode,p.commentsList).view)==null?void 0:v.data)??void 0},action:v=>g(v.author.id),getSuccessText(v){return v?`Все комментарии пользоваеля «${v.author.nick}» удалены`:"Все комментарии пользователя удалены"},onFinally:()=>Promise.resolve()})}}},FR=()=>{const r=fe([{action:nr.Spam,text:"Спам"},{action:nr.Insult,text:"Оскорбления"},{action:nr.Racism,text:"Расизм"},{action:nr.Swears,text:"Мат"},{action:nr.Threats,text:"Угрозы"},{action:nr.Other,text:"Прочее"},{action:nr.MultiAccounting,text:"Мультиаккаунтинг"},{action:nr.SystematicOfftop,text:"Систематический оффтоп"},{action:nr.Provocations,text:"Провокации"}]),o=fe(!1),i=fe("");return{isShowDeleteReasonPopup:o,deleteCommentId:i,deleteReasonsList:r,onDeleteActionSelect:u=>{o.value=!0,i.value=u},onDeletePopupClose:()=>{o.value=!1,i.value=""}}},lu=r=>{const{commentsModel:o,gqlClient:i,objectId:u,pinia:c}=r,p=Et(u,c),{runAction:d}=ur(),a=async(h,y)=>{const g=vt(h,p.commentsRelations,p.viewMode,p.commentsList);if(!g.view)throw new Ce(Be.COMMENTS_VIEW_TREE_ERROR,so);const{checkTextHate:b}=ih(i),v=await b(y,g.view.lastFormText,g.view.isRudeFormText),w=y!==p.newCommentLastText;g.view.lastFormText=y;const _=!v&&g.view.isRudeFormText;if(v===1)return g.view.isRudeFormText=!0,{id:"",hateRating:v,hasEditRudeComment:w,isSecondC
713hanceSending:_};g.view.isFetchingEditForm=!0,p.isProcessingComment=!0;const T=await o.editComment(h,y);if(g.parentIndex>-1)p.commentsList[g.parentIndex].children.data[g.index]=o.buildCommentViewData(T,p.ids),g.view=p.commentsList[g.parentIndex].children.data[g.index];else{const A=o.buildCommentViewData(T,p.ids);A.children=p.commentsList[g.index].children,p.commentsList[g.index]=A,g.view=p.commentsList[g.index]}return g.view.isFetchingEditForm=!1,g.view.isRudeFormText=!1,p.isProcessingComment=!1,{id:""}};return{editComment:a,editCommentWithErrorHandling:async(h,y,g)=>{await d({action:()=>a(h.commentId,h.content),errorText:sS,onSuccess:b=>{y?.(b)},onError:b=>{g?.(b)}})},setCommentForEditing:h=>{const y=vt(h,p.commentsRelations,p.viewMode,p.commentsList);if(!(y!=null&&y.view))throw new Ce(Be.COMMENTS_VIEW_TREE_ERROR,so);p.commentToEdit=y},resetCommentForEditing:()=>{p.commentToEdit=null}}},jR=r=>{const{commentsModel:o,userInfo:i,objectId:u,notificator:c,onRateAnalytics:p,pinia:d}=r,{runAction:a}=ur(c),h=Et(u,d),y=(b,v,w)=>{const _=vt(b,h.commentsRelations,h.viewMode,h.commentsList);if(!_.view)return;const T=_.view;if(v===ar.Plus&&(T.data.rateAuthors||Object.assign(T.data,{rateAuthors:[]}),T.data.rateAuthors)){if(T.data.rateAuthors.some(B=>B.id===w.id)){T.data.rateAuthors=T.data.rateAuthors.filter(B=>B.id!==w.id);return}const A={id:w.id,nick:w.nick||"",picture:{url:w.avatar||""}};T.data.rateAuthors=[...T.data.rateAuthors,A];return}},g=async(b,v)=>{const w=Et(u,d),_=vt(b,w.commentsRelations,w.viewMode,w.commentsList);if(!_.view)throw new Ce(Be.COMMENTS_VIEW_TREE_ERROR,so);const T=_.view;T.isFetchingRate=!0;const A={[ar.Plus]:o.ratePlus.bind(o),[ar.Minus]:o.rateMinus.bind(o)}[v],{plus:B,minus:D,action:x}=await A(b).finally(()=>{T.isFetchingRate=!1});T.data.rating.plus=B,T.data.rating.minus=D,T.data.rating.action=x};return{rate:async(b,v,w=!1)=>{await a({errorText:QT,action:async()=>(await g(b,v),w&&y(b,v,i.value),Promise.resolve(!0)),onFinally:_=>{var T;if(p){const A=!((T=vt(b,h.commentsRelations,h.viewMode,h.commentsList).view)!=null&&T.data.parentComment);p(b,A,v,_)}}})}}},Ch=r=>{const{commentsModel:o,objectId:i,isAuthorized:u,pinia:c}=r,{runActionWithStatus:p}=ur(),{reloadComments:d}=Kr({objectId:i,commentsModel:o,isAuthorized:u,pinia:c});return{pinComment:async a=>{await p({errorText:lS,action:async()=>{const h=await o.pinComment(a);return h&&await d(),h},getSuccessText(){return uS}})},unpinComment:async a=>{await p({errorText:dS,action:async()=>{const h=await o.unpinComment(a);return h&&await d(),h},getSuccessText(){return cS}})}}},GR={class:"add-to-blacklist__content"},qR={class:"add-to-blacklist__avatar"},VR={class:"add-to-blacklist__text"},HR={class:"add-to-blacklist__username","data-test":"blacklist-notification-username"},zR=["onClick"],WR=Le({__name:"AddToBlacklistNotification",props:{user:{type:Object,required:!0},isTemporary:{type:Boolean},actionCallback:{type:Function,default:null}},setup(r){const o=r,i=async u=>{var c;try{await((c=o.actionCallback)==null?void 0:c.call(o))}finally{u()}};return(u,c)=>(oe(),Oe(q(af),{duration:q(Qi)},{content:$e(({closeMessage:p})=>[Te("div",GR,[Te("div",qR,[xe(q(Pu),{"image-sources":r.user.profileImage,alt:r.user.nick,size:"3xs","data-test":"blacklist-notification-avatar"},null,8,["image-sources","alt"])]),Te("div",VR,[Te("div",null,[c[0]||(c[0]=Ft(" Пользователь ")),Te("span",HR,ze(r.user.nick),1),Ft(" добавлен в черный список"+ze(r.isTemporary?" на 30 дней":"")+". ",1)]),Te("span",{class:"add-to-blacklist__action-link","data-test":"blacklist-notification-undo-link",onClick:d=>i(p)}," Отменить ",8,zR)])])]),_:1},8,["duration"]))}}),YR=We(WR,[["__scopeId","data-v-409a5c25"]]),KR={class:"complaint-about-comment__content","data-test":"complaint-notification"},QR={class:"complaint-about-comment__avatar"},JR={class:"complaint-about-comment__text"},ZR={class:"complaint-about-comment__username","data-test":"complaint-notification-username"},XR=["onClick"],eB=Le({__name:"ComplainAboutCommentNotification",props:{user:{type:Object,required:!0},actionCallback:{type:Function,default:null}},setup(r){const o=r,i=async u=>{var c;try{await((c=o.actionCallback)==null?void 0:c.call(o))}finally{u()}};return(u,c)=>(oe(),Oe(q(af),{duration:q(Qi)},{content:$e(({closeMessage:p})=>[Te("div",KR,[Te("div",QR,[xe(q(Pu),{"image-sources":r.user.profileImage,alt:r.user.nick,"data-test":"complaint-notification-avatar"},null,8,["image-sources","alt"])]),Te("div",JR,[c[0]||(c[0]=Ft(" Спасибо! Жалоба отправлена, скрыть все комментарии ")),Te("span",ZR,ze(r.user.nick),1),c[1]||(c[1]=Ft(" можно по этой ")),Te("span",{class:"complaint-about-comment__action-link","data-test":"complaint-notification-blacklist-link",onClick:d=>i(p)},"ссылке",8,XR)])])]),_:1},8,["duration"]))}}
713),tB=We(eB,[["__scopeId","data-v-386f09bd"]]),hl=r=>{const{commentsModel:o,site:i,notificator:u,objectId:c,isAuthorized:p,pinia:d}=r,a=Et(c,d),{runActionWithStatus:h}=ur(u),{updateComment:y,updateComments:g}=Kr({objectId:c,commentsModel:o,isAuthorized:p,pinia:d}),b=(_,T)=>g(hh(a.commentsList),A=>{const B={...A};return B.data.isInBlacklist=T,B},A=>A.data.author.id===_),v=async(_,T)=>{const A=await o.addUserToBlackList(_,T);if(!A)return!1;const B=b(_,!0);if(!B)throw new Ce(Be.UPDATING_ERROR,eu);return a.commentsList=B,A},w=async _=>{const T=await o.removeUserFromBlacklist(_);if(!T)return!1;const A=b(_,!1);if(!A)throw new Ce(Be.UPDATING_ERROR,eu);return a.commentsList=A,T};return{addToBlacklistByUserId:v,removeFromBlacklistByUserId:w,addToBlackListByCommentId:async(_,T=!1)=>{await h({errorText:XT,preloadData:()=>Xt(_,a.commentsRelations,a.viewMode,a.commentsList),getSuccessText(A){var B;return A?`Пользователь "${((B=A?.author)==null?void 0:B.nick)??""}" добавлен в черный список`:"Пользователь добавлен в черный список"},action:A=>v(A.author.id,T),onSuccess:A=>{const B={user:uh(A,i),isTemporary:T,actionCallback:async()=>{await w(A.author.id),await y(_)}};return u.notifyWithCustomComponent($i(YR),B),Promise.resolve()},onFinally:async()=>{await y(_)}})},removeFromBlacklistByCommentId:async _=>{await h({errorText:eS,preloadData:()=>Xt(_,a.commentsRelations,a.viewMode,a.commentsList),getSuccessText(T){var A;return T?`Пользователь "${((A=T?.author)==null?void 0:A.nick)??""}" удален из черного списка`:"Пользователь удален из черного списка"},action:T=>w(T.author.id),onFinally:async()=>{await y(_)}})}}},vd="Не удалось подписаться на автора комментария",rB="Вы подписались на автора комментария",Ed="Не удалось отписаться от автора комментария",nB="Вы отписались от автора комментария";function oB(r){const{followApi:o,notificator:i,objectId:u,commentsModel:c,isAuthorized:p,pinia:d}=r,a=Et(u,d),{updateComments:h}=Kr({objectId:u,commentsModel:c,isAuthorized:p,pinia:d}),y=(g,b=!0)=>{if(!g)throw new Ce(Be.INVALID_ARGUMENT,"Не передан id автора");h(a.commentsList,v=>{const w={...v};return w.data.author.following=b,w},v=>v.data.author.id===g)};return{followUser:async g=>{try{if(!await o.followUser(g)){i.notifyError({error:"",errorText:vd});return}y(g,!0),i.notifySuccess(rB)}catch(b){i.notifyError({error:b,errorText:vd})}},unfollowUser:async g=>{try{if(!await o.unfollowUser(g)){i.notifyError({error:"",errorText:Ed});return}y(g,!1),i.notifySuccess(nB)}catch(b){i.notifyError({error:b,errorText:Ed})}}}}const iB=r=>{const{commentsModel:o,site:i,notificator:u,objectId:c,isAuthorized:p,pinia:d}=r,{runActionWithStatus:a}=ur(u),h=Et(c,d),{commentsRelations:y,viewMode:g,commentsList:b,complaintsAboutAuthor:v}=Ln(h),{addToBlackListByCommentId:w}=hl({commentsModel:o,site:i,notificator:u,objectId:c,isAuthorized:p}),_=ae(()=>A=>v.value[A]>ST),T=async A=>(await o.complain({commentId:A.commentId,complaintType:A.complaintType,userID:A.userId,commentAuthorId:A.authorId})).length>0?(v.value[A.authorId]=(v.value[A.authorId]||0)+1,!0):!1;return{complainWithNotification:async(A,B,D)=>{await a({errorText:iS,preloadData:()=>Xt(A,y.value,g.value,b.value),action:x=>T({userId:B,commentId:A,authorId:x.author.id,complaintType:D,text:x.text}),onSuccess:(x,W)=>{if(_.value(x.author.id)){const U={user:uh(x,i),actionCallback:()=>w(A)};u.notifyWithCustomComponent($i(tB),U)}else u.notifySuccess(W.getSuccessText(x));return Promise.resolve()},getSuccessText(){return aS},onFinally:()=>Promise.resolve()})},checkAuthorOverComplain:_}},aB=()=>{const r=fe([{action:ht.Spam,text:"Спам"},{action:ht.Insult,text:"Оскорбления"},{action:ht.Racism,text:"Расизм"},{action:ht.Swears,text:"Мат"},{action:ht.Threats,text:"Угрозы"},{action:ht.Other,text:"Прочее"},{action:ht.MultiAccounting,text:"Мультиаккаунтинг"},{action:ht.SystematicOfftop,text:"Систематический оффтоп"},{action:ht.Provocations,text:"Провокации"}]),o=fe(!1),i=fe("");return{isShowComplainReasonPopup:o,complainingCommentId:i,reasonsList:r,onComplainActionSelect:u=>{o.value=!0,i.value=u},onComplainPopupClose:()=>{o.value=!1,i.value=""}}};function Oh(r){const{banApi:o,commentsModel:i,blogId:u,objectId:c,isAuthorized:p,notificator:d,onUnbanAnalytics:a,pinia:h}=r,{runActionWithStatus:y}=ur(d),{commentsRelations:g,viewMode:b,commentsList:v}=Ln(Et(c,h)),{updateComment:w}=Kr({objectId:c,commentsModel:i,isAuthorized:p,pinia:h}),_=async A=>{try{return!!await i.banUser(A)}catch(B){throw new Ce(Be.REQUEST_ERROR,B)}},T=async A=>{try{return!!await i.unbanUser(A)}catch(B){throw new Ce(Be.REQUEST_ERROR,B)}};return{banAuthor:async(A,B,D)=>{await y({errorText:B?IS:gi,preloadData:()=>Xt(A,g.value,b.value,v.value),action:x=>_({permanent:B,userID:x.author.id,text:x.text,banReason:D,banObjectID:x.id,banObjectClassID:Uf.Comments}),getSuccessText(x){return x?`Пользователь «${x.author.nick}» забанен`:"Пользователь забанен"},onFinally:async()=>{await w(A)}})},unBanAuthor:async A=>{await y({errorText:Xa,preloadData:()=>Xt(A,g.value,b.value,v.value),action:B=>T({userID:B.author.id}),getSuccessText(B){return B?`Пользователь «${B.author.nick}» разбанен`:"Пользователь разбанен"},onFinally:async B=>{await w(A),a?.(B)}})},banInPosts:async A=>{await y({errorText:gi,preloadData:()=>Xt(A,g.value,b.value,v.value),action:()=>{const B=yo(A,g.value,b.value,v.value);return o.banUserInPosts(B)},getSuccessText(B){return B?`Пользователь «${B.author.nick}» забанен`:"Пользователь забанен"},onFinally:async()=>{await w(A)}})},unbanInPosts:async A=>{await y({errorText:Xa,preloadData:()=>Xt(A,g.value,b.value,v.value),action:()=>{const B=yo(A,g.value,b.value,v.value);return o.unbanUserInPosts(B)},getSuccessText(B){return B?`Пользователь «${B.author.nick}» разбанен`:"Пользователь разбанен"},onFinally:async()=>{await w(A)}})},banInBlog:async A=>{await y({errorText:gi,preloadData:()=>Xt(A,g.value,b.value,v.value),action:()=>
713{if(!u)throw new Ce(Be.REQUEST_ERROR,"Нужно указать id блога");const B=yo(A,g.value,b.value,v.value);return o.banUserInBlog(u,B)},getSuccessText(B){return B?`Пользователь «${B.author.nick}» забанен`:"Пользователь забанен"},onFinally:async()=>{await w(A)}})},banInMyBlogs:async A=>{await y({errorText:gi,preloadData:()=>Xt(A,g.value,b.value,v.value),action:()=>{const B=yo(A,g.value,b.value,v.value);return o.banUserInMyBlogs(B)},getSuccessText(B){return B?`Пользователь «${B.author.nick}» забанен`:"Пользователь забанен"},onFinally:async()=>{await w(A)}})},unbanInBlog:async A=>{await y({errorText:Xa,preloadData:()=>Xt(A,g.value,b.value,v.value),action:()=>{if(!u)throw new Ce(Be.REQUEST_ERROR,"Нужно указать id блога");const B=yo(A,g.value,b.value,v.value);return o.unbanUserInBlog(u,B)},getSuccessText(B){return B?`Пользователь «${B.author.nick}» разбанен`:"Пользователь разбанен"},onFinally:async()=>{await w(A)}})}}}const sB=[{action:ht.Insult,text:"Оскорбление"},{action:ht.Swears,text:"Мат"},{action:ht.Spam,text:"Спам"},{action:ht.Racism,text:"Расизм"},{action:ht.Provocations,text:"Провокации"},{action:ht.Threats,text:"Угрозы"},{action:ht.SystematicOfftop,text:"Систематический оффтоп"},{action:ht.MultiAccounting,text:"Мульти-аккаунтинг"},{action:ht.Other,text:"Прочее"}],uB=()=>{const r=[we.BanUserTemporary,we.BanUserPermanent],o=fe(sB),i=fe(!1),u=fe(),c=ae(()=>u.value?"Укажите причину блокировки":"Укажите причину бана"),p=fe("");return{isShowBanReasonPopup:i,banCommentId:p,banReasonsList:o,isPermanentBan:u,banModalHeader:c,banActionsWithReasonSelect:r,onBanActionSelect:(d,a)=>{i.value=!0,u.value=a,p.value=d},onBanPopupClose:()=>{i.value=!1,p.value="",u.value=!1}}};var _d=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},lB={},Lh={},ga={};ga.byteLength=fB;ga.toByteArray=hB;ga.fromByteArray=yB;var Tr=[],Ht=[],cB=typeof Uint8Array<"u"?Uint8Array:Array,es="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Un=0,dB=es.length;Un<dB;++Un)Tr[Un]=es[Un],Ht[es.charCodeAt(Un)]=Un;Ht[45]=62;Ht[95]=63;function Nh(r){var o=r.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=r.indexOf("=");i===-1&&(i=o);var u=i===o?0:4-i%4;return[i,u]}function fB(r){var o=Nh(r),i=o[0],u=o[1];return(i+u)*3/4-u}function pB(r,o,i){return(o+i)*3/4-i}function hB(r){var o,i=Nh(r),u=i[0],c=i[1],p=new cB(pB(r,u,c)),d=0,a=c>0?u-4:u,h;for(h=0;h<a;h+=4)o=Ht[r.charCodeAt(h)]<<18|Ht[r.charCodeAt(h+1)]<<12|Ht[r.charCodeAt(h+2)]<<6|Ht[r.charCodeAt(h+3)],p[d++]=o>>16&255,p[d++]=o>>8&255,p[d++]=o&255;return c===2&&(o=Ht[r.charCodeAt(h)]<<2|Ht[r.charCodeAt(h+1)]>>4,p[d++]=o&255),c===1&&(o=Ht[r.charCodeAt(h)]<<10|Ht[r.charCodeAt(h+1)]<<4|Ht[r.charCodeAt(h+2)]>>2,p[d++]=o>>8&255,p[d++]=o&255),p}function mB(r){return Tr[r>>18&63]+Tr[r>>12&63]+Tr[r>>6&63]+Tr[r&63]}function gB(r,o,i){for(var u,c=[],p=o;p<i;p+=3)u=(r[p]<<16&16711680)+(r[p+1]<<8&65280)+(r[p+2]&255),c.push(mB(u));return c.join("")}function yB(r){for(var o,i=r.length,u=i%3,c=[],p=16383,d=0,a=i-u;d<a;d+=p)c.push(gB(r,d,d+p>a?a:d+p));return u===1?(o=r[i-1],c.push(Tr[o>>2]+Tr[o<<4&63]+"==")):u===2&&(o=(r[i-2]<<8)+r[i-1],c.push(Tr[o>>10]+Tr[o>>4&63]+Tr[o<<2&63]+"=")),c.join("")}var ml={};ml.read=function(r,o,i,u,c){var p,d,a=c*8-u-1,h=(1<<a)-1,y=h>>1,g=-7,b=i?c-1:0,v=i?-1:1,w=r[o+b];for(b+=v,p=w&(1<<-g)-1,w>>=-g,g+=a;g>0;p=p*256+r[o+b],b+=v,g-=8);for(d=p&(1<<-g)-1,p>>=-g,g+=u;g>0;d=d*256+r[o+b],b+=v,g-=8);if(p===0)p=1-y;else{if(p===h)return d?NaN:(w?-1:1)*(1/0);d=d+Math.pow(2,u),p=p-y}return(w?-1:1)*d*Math.pow(2,p-u)};ml.write=function(r,o,i,u,c,p){var d,a,h,y=p*8-c-1,g=(1<<y)-1,b=g>>1,v=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=u?0:p-1,_=u?1:-1,T=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(a=isNaN(o)?1:0,d=g):(d=Math.floor(Math.log(o)/M
713ath.LN2),o*(h=Math.pow(2,-d))<1&&(d--,h*=2),d+b>=1?o+=v/h:o+=v*Math.pow(2,1-b),o*h>=2&&(d++,h/=2),d+b>=g?(a=0,d=g):d+b>=1?(a=(o*h-1)*Math.pow(2,c),d=d+b):(a=o*Math.pow(2,b-1)*Math.pow(2,c),d=0));c>=8;r[i+w]=a&255,w+=_,a/=256,c-=8);for(d=d<<c|a,y+=c;y>0;r[i+w]=d&255,w+=_,d/=256,y-=8);r[i+w-_]|=T*128};(function(r){const o=ga,i=ml,u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=a,r.SlowBuffer=D,r.INSPECT_MAX_BYTES=50;const c=2147483647;r.kMaxLength=c,a.TYPED_ARRAY_SUPPORT=p(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function p(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function d(e){if(e>c)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,n){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return b(e)}return h(e,t,n)}a.poolSize=8192;function h(e,t,n){if(typeof e=="string")return v(e,t);if(ArrayBuffer.isView(e))return _(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ie(e,ArrayBuffer)||e&&ie(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ie(e,SharedArrayBuffer)||e&&ie(e.buffer,SharedArrayBuffer)))return T(e,t,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const s=e.valueOf&&e.valueOf();if(s!=null&&s!==e)return a.from(s,t,n);const l=A(e);if(l)return l;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,t,n){return h(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function y(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function g(e,t,n){return y(e),e<=0?d(e):t!==void 0?typeof n=="string"?d(e).fill(t,n):d(e).fill(t):d(e)}a.alloc=function(e,t,n){return g(e,t,n)};function b(e){return y(e),d(e<0?0:B(e)|0)}a.allocUnsafe=function(e){return b(e)},a.allocUnsafeSlow=function(e){return b(e)};function v(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=x(e,t)|0;let s=d(n);const l=s.write(e,t);return l!==n&&(s=s.slice(0,l)),s}function w(e){const t=e.length<0?0:B(e.length)|0,n=d(t);for(let s=0;s<t;s+=1)n[s]=e[s]&255;return n}function _(e){if(ie(e,Uint8Array)){const t=new Uint8Array(e);return T(t.buffer,t.byteOffset,t.byteLength)}return w(e)}function T(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let s;return t===void 0&&n===void 0?s=new Uint8Array(e):n===void 0?s=new Uint8Array(e,t):s=new Uint8Array(e,t,n),Object.setPrototypeOf(s,a.prototype),s}function A(e){if(a.isBuffer(e)){const t=B(e.length)|0,n=d(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!="number"||De(e.length)?d(0):w(e);if(e.type==="Buffer"&&Array.isArray(e.data))return w(e.data)}function B(e){if(e>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return e|0}function D(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==a.prototype},a.compare=function(e,t){if(ie(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),ie(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!
713a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,s=t.length;for(let l=0,f=Math.min(n,s);l<f;++l)if(e[l]!==t[l]){n=e[l],s=t[l];break}return n<s?-1:s<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return a.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const s=a.allocUnsafe(t);let l=0;for(n=0;n<e.length;++n){let f=e[n];if(ie(f,Uint8Array))l+f.length>s.length?(a.isBuffer(f)||(f=a.from(f)),f.copy(s,l)):Uint8Array.prototype.set.call(s,f,l);else if(a.isBuffer(f))f.copy(s,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=f.length}return s};function x(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ie(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,s=arguments.length>2&&arguments[2]===!0;if(!s&&n===0)return 0;let l=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Ie(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Se(e).length;default:if(l)return s?-1:Ie(e).length;t=(""+t).toLowerCase(),l=!0}}a.byteLength=x;function W(e,t,n){let s=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return ne(this,t,n);case"utf8":case"utf-8":return H(this,t,n);case"ascii":return he(this,t,n);case"latin1":case"binary":return ge(this,t,n);case"base64":return ue(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,t,n);default:if(s)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}a.prototype._isBuffer=!0;function U(e,t,n){const s=e[t];e[t]=e[n],e[n]=s}a.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)U(this,t,t+1);return this},a.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)U(this,t,t+3),U(this,t+1,t+2);return this},a.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)U(this,t,t+7),U(this,t+1,t+6),U(this,t+2,t+5),U(this,t+3,t+4);return this},a.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?H(this,0,e):W.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:a.compare(this,e)===0},a.prototype.inspect=function(){let e="";const t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},u&&(a.prototype[u]=a.prototype.inspect),a.prototype.compare=function(e,t,n,s,l){if(ie(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),s===void 0&&(s=0),l===void 0&&(l=this.length),t<0||n>e.length||s<0||l>this.length)throw new RangeError("out of range index");if(s>=l&&t>=n)return 0;if(s>=l)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,s>>>=0,l>>>=0,this===e)return 0;let f=l-s,m=n-t;const L=Math.min(f,m),Z=this.slice(s,l),G=e.slice(t,n);for(let $=0;$<L;++$)if(Z[$]!==G[$]){f=Z[$],m=G[$];break}return f<m?-1:m<f?1:0};function S(e,t,n,s,l){if(e.length===0)return-1;if(typeof n=="string"?(s=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,De(n)&&(n=l?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(l)return-1;n=e.length-1}else if(n<0)if(l)n=0;else return-1;if(typeof t=="string"&&(t=a.from(t,s)),a.isBuffer(t))return t.length===0?-1:M(e,t,n,s,l);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?l?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):M(e,[t],n,s,l);throw new TypeError("val must be string, number or Buffer")}function M(e,t,n,s,l){let f=1,m=e.length,L=t.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(e.length<2||t.length<2)return-1;f=2,m/=2,L/=2,n/=2}function Z($,Q){return f===1?$[Q]:$.readUInt16BE(Q*f)}let G;if(l){let $=-1;for(G=n;G<m;G++)if(Z(e,G)===Z(t,$===-1?0:G-$)){if($===-1&&($=G),G-$+1===L)return $*f}else $!==-1&&(G-=G-$),$=-1}else for(n+L>m&&(n=m-L),G=n;G>=0;G--){let $=!0;for(let Q=0;Q<L;Q++)if(Z(e,G+Q)!==Z(t,Q)){$=!1;break}if($)return G}return-1}a.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},a.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function I(e,t,n,s){n=Number(n)||0;const l=e.length-n;s?(s=Number(s),s>l&&(s=l)):s=l;const f=t.length;s>f/2&&(s=f/2);let m;
vendor: 11,536 bytes, line 713
713for(m=0;m<s;++m){const L=parseInt(t.substr(m*2,2),16);if(De(L))return m;e[n+m]=L}return m}function R(e,t,n,s){return Ee(Ie(t,e.length-n),e,n,s)}function C(e,t,n,s){return Ee(le(t),e,n,s)}function V(e,t,n,s){return Ee(Se(t),e,n,s)}function F(e,t,n,s){return Ee(me(t,e.length-n),e,n,s)}a.prototype.write=function(e,t,n,s){if(t===void 0)s="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")s=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,s===void 0&&(s="utf8")):(s=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const l=this.length-t;if((n===void 0||n>l)&&(n=l),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");let f=!1;for(;;)switch(s){case"hex":return I(this,e,t,n);case"utf8":case"utf-8":return R(this,e,t,n);case"ascii":case"latin1":case"binary":return C(this,e,t,n);case"base64":return V(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,e,t,n);default:if(f)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),f=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(e,t,n){return t===0&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function H(e,t,n){n=Math.min(e.length,n);const s=[];let l=t;for(;l<n;){const f=e[l];let m=null,L=f>239?4:f>223?3:f>191?2:1;if(l+L<=n){let Z,G,$,Q;switch(L){case 1:f<128&&(m=f);break;case 2:Z=e[l+1],(Z&192)===128&&(Q=(f&31)<<6|Z&63,Q>127&&(m=Q));break;case 3:Z=e[l+1],G=e[l+2],(Z&192)===128&&(G&192)===128&&(Q=(f&15)<<12|(Z&63)<<6|G&63,Q>2047&&(Q<55296||Q>57343)&&(m=Q));break;case 4:Z=e[l+1],G=e[l+2],$=e[l+3],(Z&192)===128&&(G&192)===128&&($&192)===128&&(Q=(f&15)<<18|(Z&63)<<12|(G&63)<<6|$&63,Q>65535&&Q<1114112&&(m=Q))}}m===null?(m=65533,L=1):m>65535&&(m-=65536,s.push(m>>>10&1023|55296),m=56320|m&1023),s.push(m),l+=L}return X(s)}const j=4096;function X(e){const t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let n="",s=0;for(;s<t;)n+=String.fromCharCode.apply(String,e.slice(s,s+=j));return n}function he(e,t,n){let s="";n=Math.min(e.length,n);for(let l=t;l<n;++l)s+=String.fromCharCode(e[l]&127);return s}function ge(e,t,n){let s="";n=Math.min(e.length,n);for(let l=t;l<n;++l)s+=String.fromCharCode(e[l]);return s}function ne(e,t,n){const s=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>s)&&(n=s);let l="";for(let f=t;f<n;++f)l+=O[e[f]];return l}function be(e,t,n){const s=e.slice(t,n);let l="";for(let f=0;f<s.length-1;f+=2)l+=String.fromCharCode(s[f]+s[f+1]*256);return l}a.prototype.slice=function(e,t){const n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);const s=this.subarray(e,t);return Object.setPrototypeOf(s,a.prototype),s};function P(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e],l=1,f=0;for(;++f<t&&(l*=256);)s+=this[e+f]*l;return s},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e+--t],l=1;for(;t>0&&(l*=256);)s+=this[e+--t]*l;return s},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e=e>>>0,t||P(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||P(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||P(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,l=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(s)+(BigInt(l)<<BigInt(32))}),a.prototype.readBigUInt64BE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],l=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(s)<<BigInt(32))+BigInt(l)}),a.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e],l=1,f=0;for(;++f<t&&(l*=256);)s+=this[e+f]*l;return l*=128,s>=l&&(s-=Math.pow(2,8*t)),s},a.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=t,l=1,f=this[e+--s];for(;s>0&&(l*=256);)f+=this[e+--s]*l;return l*=128,f>=l&&(f-=Math.pow(2,8*t)),f},a.prototype.readInt8=function(e,t){return e=e>>>0,t||P(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},a.prototype.readInt16LE=function(e,t){e=e>>>0,t||P(e,2,this.length);const n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},a.prototype.readInt16BE=function(e,t){e=e>>>0,t||P(e,2,this.length);const n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},a.prototype.readInt32LE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(s)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),a.prototype.readBigInt64BE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(s)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),a.prototype.readFloatLE=function(e,t){return e=e>>>0,t||P(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e=e>>>0,t||P(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||P(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||P(e,8,this.length),i.read(this,e,!1,52,8)};function ee(e,t,n,s,l,f){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>l||t<f)throw new RangeError('"value" argument is out of bounds');if(n+s>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,n,s){if(e=+e,t=t>>>0,n=n>>>0,!s){const m=Math.pow(2,8*n)-1;ee(this,e,t,n,m,0)}let l=1,f=0;for(this[t]=e&255;++f<n&&(l*=256);)this[t+f]=e/l&255;return t+n},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,n,s){if(e=+e,t=t>>>0,n=n>>>0,!s){const m=Math.pow(2,8*n)-1;ee(this,e,t,n,m,0)}let l=n-1,f=1;for(this[t+l]=e&255;--l>=0&&(f*=256);)this[t+l]=e/f&255;return t+n},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,1,255,0),this[t]=e&255,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function Ue(e,t,n,s,l){re(t,s,l,e,n,7);let f=Number(t&BigInt(4294967295));e[n++]=f,f=f>>8,e[n++]=f,f=f>>8,e[n++]=f,f=f>>8,e[n++]=f;let m=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=m,m=m>>8,e[n++]=m,m=m>>8,e[n++]=m,m=m>>8,e[n++]=m,n}function _e(e,t,n,s,l){re(t,s,l,e,n,7);let f=Number(t&BigInt(4294967295));e[n+7]=f,f=f>>8,e[n+6]=f,f=f>>8,e[n+5]=f,f=f>>8,e[n+4]=f;let m=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=m,m=m>>8,e[n+2]=m,m=m>>8,e[n+1]=m,m=m>>8,e[n]=m,n+8}a.prototype.writeBigUInt64LE=N(function(e,t=0){return Ue(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=N(function(e,t=0){return _e(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(e,t,n,s){if(e=+e,t=t>>>0,!s){const L=Math.pow(2,8*n-1);ee(this,e,t,n,L-1,-L)}let l=0,f=1,m=0;for(this[t]=e&255;++l<n&&(f*=256);)e<0&&m===0&&this[t+l-1]!==0&&(m=1),this[t+l]=(e/f>>0)-m&255;return t+n},a.prototype.writeIntBE=function(e,t,n,s){if(e=+e,t=t>>>0,!s){const L=Math.pow(2,8*n-1);ee(this,e,t,n,L-1,-L)}let l=n-1,f=1,m=0;for(this[t+l]=e&255;--l>=0&&(f*=256);)e<0&&m===0&&this[t+l+1]!==0&&(m=1),this[t+l]=(e/f>>0)-m&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},a.prototype.writeBigInt64LE=N(function(e,t=0){return Ue(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=N(function(e,t=0){return _e(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ce(e,t,n,s,l,f){if(n+s>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function de(e,t,n,s,l){return t=+t,n=n>>>0,l||ce(e,t,n,4),i.write(e,t,n,s,23,4),n+4}a.prototype.writeFloatLE=function(e,t,n){return de(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return de(this,e,t,!1,n)};function ve(e,t,n,s,l){return t=+t,n=n>>>0,l||ce(e,t,n,8),i.write(e,t,n,s,52,8),n+8}a.prototype.writeDoubleLE=function(e,t,n){return ve(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return ve(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,s){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!s&&s!==0&&(s=this.length),t>=e.length&&(t=e.length),t||(t=0),s>0&&s<n&&(s=n),s===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-t<s-n&&(s=e.length-t+n);const l=s-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,s):Uint8Array.prototype.set.call(e,this.subarray(n,s),t),l},a.prototype.fill=function(e,t,n,s){if(typeof e=="string"){if(typeof t=="string"?(s=t,t=0,n=this.length):typeof n=="string"&&(s=n,n=this.length),s!==void 0&&typeof s!="str
713ing")throw new TypeError("encoding must be a string");if(typeof s=="string"&&!a.isEncoding(s))throw new TypeError("Unknown encoding: "+s);if(e.length===1){const f=e.charCodeAt(0);(s==="utf8"&&f<128||s==="latin1")&&(e=f)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let l;if(typeof e=="number")for(l=t;l<n;++l)this[l]=e;else{const f=a.isBuffer(e)?e:a.from(e,s),m=f.length;if(m===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(l=0;l<n-t;++l)this[l+t]=f[l%m]}return this};const te={};function E(e,t,n){te[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(s){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:s,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}E("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),E("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),E("ERR_OUT_OF_RANGE",function(e,t,n){let s=`The value of "${e}" is out of range.`,l=n;return Number.isInteger(n)&&Math.abs(n)>2**32?l=k(String(n)):typeof n=="bigint"&&(l=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(l=k(l)),l+="n"),s+=` It must be ${t}. Received ${l}`,s},RangeError);function k(e){let t="",n=e.length;const s=e[0]==="-"?1:0;for(;n>=s+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function Y(e,t,n){z(t,"offset"),(e[t]===void 0||e[t+n]===void 0)&&J(t,e.length-(n+1))}function re(e,t,n,s,l,f){if(e>n||e<t){const m=typeof t=="bigint"?"n":"";let L;throw t===0||t===BigInt(0)?L=`>= 0${m} and < 2${m} ** ${(f+1)*8}${m}`:L=`>= -(2${m} ** ${(f+1)*8-1}${m}) and < 2 ** ${(f+1)*8-1}${m}`,new te.ERR_OUT_OF_RANGE("value",L,e)}Y(s,l,f)}function z(e,t){if(typeof e!="number")throw new te.ERR_INVALID_ARG_TYPE(t,"number",e)}function J(e,t,n){throw Math.floor(e)!==e?(z(e,n),new te.ERR_OUT_OF_RANGE("offset","an integer",e)):t<0?new te.ERR_BUFFER_OUT_OF_BOUNDS:new te.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}const se=/[^+/0-9A-Za-z-_]/g;function Ae(e){if(e=e.split("=")[0],e=e.trim().replace(se,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Ie(e,t){t=t||1/0;let n;const s=e.length;let l=null;const f=[];for(let m=0;m<s;++m){if(n=e.charCodeAt(m),n>55295&&n<57344){if(!l){if(n>56319){(t-=3)>-1&&f.push(239,191,189);continue}else if(m+1===s){(t-=3)>-1&&f.push(239,191,189);continue}l=n;continue}if(n<56320){(t-=3)>-1&&f.push(239,191,189),l=n;continue}n=(l-55296<<10|n-56320)+65536}else l&&(t-=3)>-1&&f.push(239,191,189);if(l=null,n<128){if((t-=1)<0)break;f.push(n)}else if(n<2048){if((t-=2)<0)break;f.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;f.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;f.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return f}function le(e){const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function me(e,t){let n,s,l;const f=[];for(let m=0;m<e.length&&!((t-=2)<0);++m)n=e.charCodeAt(m),s=n>>8,l=n%256,f.push(l),f.push(s);return f}function Se(e){return o.toByteArray(Ae(e))}function Ee(e,t,n,s){let l;for(l=0;l<s&&!(l+n>=t.length||l>=e.length);++l)t[l+n]=e[l];return l}function ie(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function De(e){return e!==e}const O=(function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const s=n*16;for(let l=0;l<16;++l)t[s+l]=e[n]+e[l]}return t})();function N(e){return typeof BigInt>"u"?K:e}function K(){throw new Error("BigInt not supported")}})(Lh);var cu={exports:{}};(function(r,o){Object.defineProperty(o,"__esModule",{value:!0});
713var i={exports:{}},u=i.exports={},c,p;function d(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?c=setTimeout:c=d}catch{c=d}try{typeof clearTimeout=="function"?p=clearTimeout:p=a}catch{p=a}})();function h(ne){if(c===setTimeout)return setTimeout(ne,0);if((c===d||!c)&&setTimeout)return c=setTimeout,setTimeout(ne,0);try{return c(ne,0)}catch{try{return c.call(null,ne,0)}catch{return c.call(this,ne,0)}}}function y(ne){if(p===clearTimeout)return clearTimeout(ne);if((p===a||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(ne);try{return p(ne)}catch{try{return p.call(null,ne)}catch{return p.call(this,ne)}}}var g=[],b=!1,v,w=-1;function _(){!b||!v||(b=!1,v.length?g=v.concat(g):w=-1,g.length&&T())}function T(){if(!b){var ne=h(_);b=!0;for(var be=g.length;be;){for(v=g,g=[];++w<be;)v&&v[w].run();w=-1,be=g.length}v=null,b=!1,y(ne)}}u.nextTick=function(ne){var be=new Array(arguments.length-1);if(arguments.length>1)for(var P=1;P<arguments.length;P++)be[P-1]=arguments[P];g.push(new A(ne,be)),g.length===1&&!b&&h(T)};function A(ne,be){this.fun=ne,this.array=be}A.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={};function B(){}u.on=B,u.addListener=B,u.once=B,u.off=B,u.removeListener=B,u.removeAllListeners=B,u.emit=B,u.prependListener=B,u.prependOnceListener=B,u.listeners=function(ne){return[]},u.binding=function(ne){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(ne){throw new Error("process.chdir is not supported")},u.umask=function(){return 0};function D(){}var x=i.exports.browser,W=D,U=i.exports.binding,S=D,M=1,I={},R=D,C=D,V=D,F=D,ue=D,H="browser",j="browser",X="browser",he=[],ge={nextTick:i.exports.nextTick,title:i.exports.title,browser:x,env:i.exports.env,argv:i.exports.argv,version:i.exports.version,versions:i.exports.versions,on:i.exports.on,addListener:i.exports.addListener,once:i.exports.once,off:i.exports.off,removeListener:i.exports.removeListener,removeAllListeners:i.exports.removeAllListeners,emit:i.exports.emit,emitWarning:W,prependListener:i.exports.prependListener,prependOnceListener:i.exports.prependOnceListener,listeners:i.exports.listeners,binding:U,cwd:i.exports.cwd,chdir:i.exports.chdir,umask:i.exports.umask,exit:S,pid:M,features:I,kill:R,dlopen:C,uptime:V,memoryUsage:F,uvCounters:ue,platform:H,arch:j,execPath:X,execArgv:he};o.addListener=i.exports.addListener,o.arch=j,o.argv=i.exports.argv,o.binding=U,o.browser=x,o.chdir=i.exports.chdir,o.cwd=i.exports.cwd,o.default=ge,o.dlopen=C,o.emit=i.exports.emit,o.emitWarning=W,o.env=i.exports.env,o.execArgv=he,o.execPath=X,o.exit=S,o.features=I,o.kill=R,o.listeners=i.exports.listeners,o.memoryUsage=F,o.nextTick=i.exports.nextTick,o.off=i.exports.off,o.on=i.exports.on,o.once=i.exports.once,o.pid=M,o.platform=H,o.prependListener=i.exports.prependListener,o.prependOnceListener=i.exports.prependOnceListener,o.removeAllListeners=i.exports.removeAllListeners,o.removeListener=i.exports.removeListener,o.title=i.exports.title,o.umask=i.exports.umask,o.uptime=V,o.uvCounters=ue,o.version=i.exports.version,o.versions=i.exports.versions,o=r.exports=ge})(cu,cu.exports);var bB=cu.exports;(function(r){Object.defineProperty(r,Symbol.toStringTag,{value:"Module"});const o=Lh,i=bB,u=d=>d&&d.__esModule?d:{default:d},c=u(i),p=globalThis||void 0||self;Object.defineProperty(r,"Buffer",{enumerable:!0,get:()=>o.Buffer}),Object.defineProperty(r,"process",{enumerable:!0,get:()=>c.default}),r.global=p})(lB);function Dh(r){return sf()?(Mu(r),!0):!1}const gl=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const wB=Object.prototype.toString,vB=r=>wB.call(r)==="[object Object]";function EB(r){let o;function i(){return o||(o=r()),o}return i.reset=async()=>{const u=o;o=void 0,u&&await u},i}function ts(r){return Array.isArray(r)?r:[r]}function _B(r,o,i={}){const{immediate:u=!0,immediateCallback:c=!1}=i,p=on(!1);let d=null;function a(){d&&(clearTimeout(d),d=null)}function h(){p.value=!1,a()}function y(...g){c&&r(),a(),p.value=!0,d=setTimeout(()=>{p.value=!1,d=null,r(...g)},Pt(o))}return u&&(p.value=!0,gl&&y()),Dh(h),{isPending:Bs(p),start:y,stop:h}}function AB(r,o,i){return He(r,o,{...i,immediate:!0})}const IB=gl?window:void 0,xh=gl?window.navigator:void 0;function TB(r){var o;const i=Pt(r);return(o=i?.$el)!=null?o:i}function Uh(...r){const o=[],i=()=>{o.forEach(a=>a()),o.length=0},u=(a,h,y,g)=>(a.addEventListener(h,y,g),()=>a.removeEventListener(h,y,g)),c=ae(()=>{const a=ts(Pt(r[0])).filter(h=>h!=null);return a.every(h=>typeof h!="string")?a:void 0}),p=AB(()=>{var a,h;return[(h=(a=c.value)==null?void 0:a.map(y=>TB(y)))!=null?h:[IB].filter(y=>y!=null),ts(Pt(c.value?r[1]:r[0])),ts(q(c.value?r[2]:r[1])),Pt(c.value?r[3]:r[2])]},([a,h,y,g])=>
713{if(i(),!(a!=null&&a.length)||!(h!=null&&h.length)||!(y!=null&&y.length))return;const b=vB(g)?{...g}:g;o.push(...a.flatMap(v=>h.flatMap(w=>y.map(_=>u(v,w,_,b)))))},{flush:"post"}),d=()=>{p(),i()};return Dh(i),d}function SB(){const r=on(!1),o=uf();return o&&rt(()=>{r.value=!0},o),r}function kh(r){const o=SB();return ae(()=>(o.value,!!r()))}function Ad(r,o={}){const{controls:i=!1,navigator:u=xh}=o,c=kh(()=>u&&"permissions"in u),p=on(),d=typeof r=="string"?{name:r}:r,a=on(),h=()=>{var g,b;a.value=(b=(g=p.value)==null?void 0:g.state)!=null?b:"prompt"};Uh(p,"change",h,{passive:!0});const y=EB(async()=>{if(c.value){if(!p.value)try{p.value=await u.permissions.query(d)}catch{p.value=void 0}finally{h()}if(i)return Wy(p.value)}});return y(),i?{state:a,isSupported:c,query:y}:a}function Id(r={}){const{navigator:o=xh,read:i=!1,source:u,copiedDuring:c=1500,legacy:p=!1}=r,d=kh(()=>o&&"clipboard"in o),a=Ad("clipboard-read"),h=Ad("clipboard-write"),y=ae(()=>d.value||p),g=on(""),b=on(!1),v=_B(()=>b.value=!1,c,{immediate:!1});async function w(){let D=!(d.value&&B(a.value));if(!D)try{g.value=await o.clipboard.readText()}catch{D=!0}D&&(g.value=A())}y.value&&i&&Uh(["copy","cut"],w,{passive:!0});async function _(D=Pt(u)){if(y.value&&D!=null){let x=!(d.value&&B(h.value));if(!x)try{await o.clipboard.writeText(D)}catch{x=!0}x&&T(D),g.value=D,b.value=!0,v.start()}}function T(D){const x=document.createElement("textarea");x.value=D??"",x.style.position="absolute",x.style.opacity="0",document.body.appendChild(x),x.select(),document.execCommand("copy"),x.remove()}function A(){var D,x,W;return(W=(x=(D=document?.getSelection)==null?void 0:D.call(document))==null?void 0:x.toString())!=null?W:""}function B(D){return D==="granted"||D==="prompt"}return{isSupported:y,text:g,copied:b,copy:_}}function RB(r,o,i){const{runActionWithStatus:u}=ur(o),{commentsRelations:c,viewMode:p,commentsList:d}=Ln(Et(r,i));return{copyCommentText:async a=>{await u({errorText:JT,preloadData:()=>Xt(a,c.value,p.value,d.value),getSuccessText(){return ZT},action:async h=>{const y=Id();return await y.copy(h.text),y.copied.value},onFinally:()=>Promise.resolve()})},copyCommentLink:async a=>{await u({errorText:nS,action:async()=>{const{generateLink:h}=lh(),y=h(a),g=Id();return await g.copy(y),g.copied.value},getSuccessText(){return oS}})}}}function BB(r){const{banApi:o,commentsModel:i,blogId:u,objectId:c,isAuthorized:p,site:d,notificator:a,pinia:h}=r,{deleteCommentWithErrorHandling:y,removeAllCommentsByAuthor:g}=Bh({commentsModel:i,objectId:c,notificator:a,pinia:h}),{pinComment:b,unpinComment:v}=Ch({commentsModel:i,objectId:c,isAuthorized:p,pinia:h}),{addToBlackListByCommentId:w,removeFromBlacklistByCommentId:_}=hl({commentsModel:i,site:d,notificator:a,objectId:c,isAuthorized:p,pinia:h}),{banInBlog:T,banInMyBlogs:A,unbanInBlog:B,banInPosts:D,unbanInPosts:x}=Oh({banApi:o,commentsModel:i,blogId:u,objectId:c,isAuthorized:p,pinia:h}),{copyCommentText:W,copyCommentLink:U}=RB(c,a,h);return{async runContextAction(S,M){switch(M){case we.CopyText:await W(S);return;case we.AddToBlacklist:await w(S);return;case we.AddToBlacklistTemporary:await w(S,!0);return;case we.RemoveFromBlacklist:await _(S);return;case we.Delete:await y(S,nr.ByUser);return;case we.CopyLink:await U(S);return;case we.BanInBlog:await T(S);return;case we.BanInMyBlogs:await A(S);return;case we.BanInPosts:await D(S);return;case we.UnbanInBlog:await B(S);return;case we.UnbanInPosts:await x(S);return;case we.DeleteComments:await g(S);return;case we.Pin:await b(S);return;case we.Unpin:await v(S);return;default:throw new $r(Nr.INVALID_PARAMS)}}}}var un=(r=>(r.NEUTRAL="neutral",r.DANGER="danger",r))(un||{});const CB={action:we.Abuse,text:"Пожаловаться",iconName:we.Abuse},OB={action:we.AddToBlacklist,text:"Добавить в черный список навсегда",iconName:we.AddToBlacklist},LB={action:we.AddToBlacklistTemporary,text:"Добавить в черный список на 30 дней",iconName:we.AddToBlacklist},NB={action:we.RemoveFromBlacklist,text:"Удалить из черного списка",iconName:we.RemoveFromBlacklist},DB={action:we.Edit,text:"Редактировать комментарий",iconName:we.Edit},xB={action:we.Delete,text:"Удалить",colorMode:un.DANGER,iconName:we.Delete},UB={action:we.BanUserTemporary,text:"Забанить",colorMode:un.DANGER,iconName:we.BanUserTemporary},kB={action:we.BanUserPermanent,text:"Заблокировать навсегда",colorMode:un.DANGER,iconName:we.BanUserPermanent},PB={action:we.DeleteComments,text:"Удалить все комментарии",colorMode:un.DANGER,iconName:we.DeleteComments},MB={action:we.CopyText,text:"Скопировать текст",iconName:we.CopyText},$B={action:we.CopyLink,text:"Скопировать ссылку",iconName:we.CopyLink},FB={action:we.BanInPosts,text:"Заблокировать в моих статьях",colorMode:un.DANGER,iconName:we.BanInPosts},jB={action:we.BanInBlog,text:"Заблокировать в этом блоге",colorMode:un.DANGER,iconName:we.BanInBlog},GB={action:we.BanInMyBlogs,text:"Заблокировать в моих блогах",colorMode:un.DANGER,iconName:we.BanInMyBlogs},qB={action:we.UnbanInPosts,text:"Разблокировать в моих статьях",iconName:we.UnbanInPosts},VB={action:we.UnbanInBlog,text:"Разблокировать в этом блоге",iconName:we.UnbanInBlog},HB={action:we.Pin,text:"Закрепить комментарий",iconName:we.Pin},zB={action:we.Unpin,text:"Открепить комментарий",iconName:we.Unpin},WB={[we.BanInBlog]:jB,[we.UnbanInBlog]:VB,[we.BanInPosts]:FB,[we.UnbanInPosts]:qB,[we.AddToBlacklist]:OB,[we.AddToBlacklistTemporary]:LB,[we.RemoveFromBlacklist]:NB,[we.Edit]:DB,[we.CopyText]:MB,[we.CopyLink]:$B,[we.Abuse]:CB,[we.Delete]:xB,[we.BanUserTemporary]:UB,[we.BanUserPermanent]:kB,[we.DeleteComments]:PB,[we.BanInMyBlogs]:GB,[we.Pin]:HB,[we.Unpin]:zB};function YB(r){const o=[];return r.actions.forEach(i=>
713{const u=WB[i];u&&o.push(u)}),o}var Wn=(r=>(r.DONATION="DONATION",r.RETRY_DONATION="RETRY_DONATION",r.COMMENT_WITHOUT_DONATION="COMMENT_WITHOUT",r.EDIT_COMMENT="EDIT_COMMENT",r.DELETE_COMMENT="DELETE_COMMENT",r.CLOSE_POPUP="CLOSE_POPUP",r.SET_DONATION_FORM_DISPLAY="SET_DONATION_FORM_DISPLAY",r))(Wn||{});function Ph(r){const o=fe([{action:"RETRY_DONATION",text:"Повторить попытку оплаты",icon:"MdBasicDonations"},{action:"COMMENT_WITHOUT",text:"Оставить комментарий без доната",icon:"MdBasicDonations"},{action:"EDIT_COMMENT",text:"Изменить комментарий",icon:"MdBasicEdit"},{action:"DELETE_COMMENT",text:"Удалить комментарий",icon:"MdBasicDelete",colorMode:"danger"}]),i=fe(""),u=fe(0);return{donationActionsList:o,commentFormText:i,donationAmount:u,onRejectionDonationActionSelect:c=>{switch(r("donationAction","CLOSE_POPUP"),c){case"RETRY_DONATION":r("donationAction","RETRY_DONATION",{text:i.value,donationAmount:u.value});return;case"COMMENT_WITHOUT":r("donationAction","SET_DONATION_FORM_DISPLAY",{text:i.value,isDonationFormShown:!1}),r("donationAction","COMMENT_WITHOUT",{text:i.value});return;case"EDIT_COMMENT":return;case"DELETE_COMMENT":i.value="",r("donationAction","SET_DONATION_FORM_DISPLAY",{text:i.value,isDonationFormShown:!1});return;default:return}},onRejectionDonationPopupClose:()=>{r("donationAction","CLOSE_POPUP")},onDonation:c=>{i.value=c.text,c.donationAmount&&(u.value=c.donationAmount),r("donationAction","DONATION",c)},onDonationShown:c=>{r("donationAction","SET_DONATION_FORM_DISPLAY",{text:i.value,isDonationFormShown:c})}}}async function KB(r){try{return await Fe(()=>import("./index.es-e2b5bbfc-Dts5DpNQ.js"),__vite__mapDeps([46,1,2,47,48,49]))}catch(o){throw r.notifyError({error:"Failed to load donations module",errorText:o instanceof Error?o.message:"Unknown error"}),new $r(Nr.INVALID_PARAMS,"Donations module failed to load")}}const Td=3e3,QB=7;function JB(r){const{notificator:o,gqlClient:i,objectId:u,commentsModel:c,userInputStorage:p,isAuthorized:d,analyticsCallbacks:a,pinia:h}=r,{runAction:y}=ur(),{addComment:g}=Vo({objectId:u,commentsModel:c,userInputStorage:p,gqlClient:i,isAuthorized:d,pinia:h}),b=Et(u,h),v=Kr({objectId:u,commentsModel:c,isAuthorized:d,pinia:h}),w=T=>{b.isDonationFormShown=T},_=()=>{b.isRejectedDonationPopupShown=!0};return{onDonation:async({text:T,donationAmount:A})=>{const{openNewWindow:B,poll:D,createDonationsModel:x}=await KB(o),W=x(i);let U="";const S=async()=>{if(!U)return;const M=U;U="";try{await c.deleteComment(M)}catch{}};return await y({errorText:YT,action:async()=>{if(!T||!A)throw new $r(Nr.INVALID_PARAMS,"отсутствует текст или значение доната");const M=B("");b.isProcessingComment=!0;const I=await g({text:T,isDeleted:!0}).catch(C=>{M?.close(),o.notifyError({error:C,errorText:C.message})});if(U=I?.id??"",!U){M?.close();return}a!=null&&a.onPending&&a.onPending({commentId:U,parentId:void 0,donationAmount:A,analyticId:""});let R;if(M){const{url:C}=await W.initDonation(U,A);if(M.location.href=C,R=await D({fn:()=>v.getOneCommentById(U),timeout:Td,predicate:F=>!(F!=null&&F.isDeleted)||M.closed}),R!=null&&R.isDeleted&&M.closed&&(R=await D({fn:()=>v.getOneCommentById(U),timeout:Td,maxAttempts:QB,predicate:F=>!(F!=null&&F.isDeleted)})),M.close(),!R||R.isDeleted)throw new $r(Nr.DONATION_NOT_CONFIRMED,"оплата доната не подтверждена");const{appendNewComment:V}=Vo({objectId:u,commentsModel:c,userInputStorage:p,gqlClient:i,isAuthorized:d,pinia:h});V(R),U="",b.successfulDonationsCount+=1,w(!1)}return await S(),R},onSuccess:M=>{var I;M&&A&&a!=null&&a.onSuccess&&a.onSuccess({commentId:M.id,parentId:(I=M.parentComment)==null?void 0:I.id,donationAmount:A,analyticId:""})},onError:()=>{_(),S()},onFinally:()=>{const M=Et(u,h);M.isProcessingComment=!1,p.removeUserComment()}})},setDonationFormDisplay:w,showRejectionDonationPopup:_,hideRejectionDonationPopup:()=>{b.isRejectedDonationPopupShown=!1}}}function Mh(r){const{isAuthorized:o,onNeedAuth:i}=r,u=r.analyticsCallbacks,{addNewCommentWithErrorHandling:c}
713=Vo({objectId:r.objectId,commentsModel:r.commentsModel,userInputStorage:r.userInputStorage,gqlClient:r.gqlClient,isAuthorized:r.isAuthorized,notificator:r.notificator,pinia:r.pinia}),{setDonationFormDisplay:p,hideRejectionDonationPopup:d,onDonation:a}=JB({notificator:r.notificator,gqlClient:r.gqlClient,objectId:r.objectId,objectClass:r.objectClass,commentsModel:r.commentsModel,userInputStorage:r.userInputStorage,isAuthorized:r.isAuthorized,analyticsCallbacks:u,pinia:r.pinia});return{async runAction(h,y){var g;switch(h){case Wn.RETRY_DONATION:case Wn.DONATION:if(!(y!=null&&y.text)||!(y!=null&&y.donationAmount))throw new $r(Nr.INVALID_PARAMS);if(!o.value){i("donation");return}await a(y);return;case Wn.COMMENT_WITHOUT_DONATION:if(!((g=y?.text)!=null&&g.length))throw new $r(Nr.INVALID_PARAMS);if(!o.value){i("comment-without-donation");return}await c({text:y.text});return;case Wn.CLOSE_POPUP:d();return;case Wn.SET_DONATION_FORM_DISPLAY:if(typeof y?.isDonationFormShown>"u")throw new $r(Nr.INVALID_PARAMS);if(!o.value){i("donation-form-display");return}p(y?.isDonationFormShown??!1);return;default:throw new $r(Nr.INVALID_PARAMS)}}}}var $h=(r=>(r.IDLE="IDLE",r.SUBMITTED="SUBMITTED",r))($h||{});const Sd='meta[name="viewport"]';function ZB(){var r;const o=typeof window<"u"&&((r=window.visualViewport)==null?void 0:r.scale);return o==null||o<=0?1:Math.max(1,Math.round(o*10)/10)}function XB(){let r=null;const o=i=>{const u=document.querySelector(Sd);if(u)if(i){r===null&&(r=u.getAttribute("content"));const c=r??"",p=ZB(),d=c.includes("maximum-scale")?c.replace(/maximum-scale\s*=\s*\d+(\.\d+)?/i,`maximum-scale=${p}`):`${c?`${c.trimEnd()}, `:""}maximum-scale=${p}`;u.setAttribute("content",d)}else r!==null&&(u.setAttribute("content",r),r=null)};return On(()=>{if(r!==null){const i=document.querySelector(Sd);i&&i.setAttribute("content",r),r=null}}),{setPreventZoom:o}}const eC={class:"comment-quote","data-comments-ignore-click-away":""},tC={class:"comment-quote__header"},rC=["href"],nC={key:1,class:"comment-quote__author-text","data-test":"comment-quote-author-text"},oC=["innerHTML"],iC={key:1},aC=Le({__name:"CommentQuote",props:{authorName:{type:String,required:!0},authorUrl:{type:String,default:""},text:{type:String,required:!0},useHtml:{type:Boolean,default:!1},isCollapsed:{type:Boolean,default:!1},isClosable:{type:Boolean,default:!1},isBlocked:{type:Boolean,default:!1},isHidden:{type:Boolean,default:!1}},emits:["expand","collapse","close"],setup(r,{emit:o}){const i=r,u=o,c=fe(!1),p=fe(),{isOverflown:d,update:a}=GT(p,{maxLines:1}),h=ae(()=>i.isHidden&&!c.value?nh:i.text),y=ae(()=>!!(i.isCollapsed||d.value&&!c.value)),g=ae(()=>y.value||i.isHidden||c.value),b=ae(()=>i.isHidden?"Показать все":"Показать"),v=()=>{c.value=!c.value,c.value?u("expand"):u("collapse")};return He(()=>[i.text,i.isHidden],async()=>{await sr(),a()}),(w,_)=>(oe(),ye("div",eC,[Te("div",tC,[_[1]||(_[1]=Te("span",{class:"comment-quote__label"},"Ответ",-1)),r.authorUrl&&!r.isBlocked?(oe(),ye("a",{key:0,href:r.authorUrl,class:"comment-quote__author-link","data-test":"comment-quote-author-link"},ze(r.authorName),9,rC)):(oe(),ye("span",nC,ze(r.isBlocked?"заблокированному пользователю":r.authorName),1)),r.isClosable?(oe(),ye("button",{key:2,class:"comment-quote__close",type:"button","aria-label":"Закрыть","data-test":"comment-quote-close-button",onClick:_[0]||(_[0]=Jn(T=>u("close"),["stop"]))},[xe(q(zy),{width:"16px",height:"16px"})])):ke("",!0)]),Te("div",{class:Xe(["comment-quote__content",{"comment-quote__content--collapsed":y.value&&!c.value}])},[Te("div",{ref_key:"content",ref:p,class:Xe(["comment-quote__text",{"comment-quote__text--collapsed":y.value&&!c.value,"comment-quote__text--expanded":c.value}]),"data-test":"comment-quote-text"},[r.useHtml?(oe(),ye("span",{key:0,innerHTML:h.value},null,8,oC)):(oe(),ye("span",iC,ze(h.value),1)),g.value&&c.value?(oe(),ye("button",{key:2,class:"comment-quote__toggle comment-quote__toggle--inline",type:"button","data-test":"comment-quote-collapse-button",onClick:v}," Скрыть ")):ke("",!0)],2),g.value&&!c.value?(oe(),ye("button",{key:0,class:"comment-quote__toggle comment-quote__toggle--flex",type:"button","data-test":"comment-quote-expand-button",onClick:v},ze(b.value),1)):ke("",!0)],2)]))}}),du=We(aC,[["__scopeId","data-v-f8657696"]]),sC=["innerHTML"],uC=Le({__name:"CommentTextContent",props:{html:{type:String,required:!0},isSilent:{type:Boolean,default:!1}},setup(r){return(o,i)=>(oe(),ye("div",{class:Xe(["comment-text-content",{"comment-text-content--silent":r.isSilent}]),"data-test":"comment-text-content",innerHTML:r.html},null,10,sC))}}),lC=We(uC,[["__scopeId","data-v-b04565af"]]),cC=Le({__name:"CommentRating",props:{plus:{type:Number,required:!0},minus:{type:Number,required:!0},userChoice:{type:String,default:null},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["plus","minus","shown-rating-info"],setup(r,{emit:o}){const i=o;return(u,c)=>(oe(),Oe(q(wf),{"positive-votes":r.plus,"negative-votes":r.minus,"user-choice":r.userChoice,disabled:r.disabled,"data-test":"comment-rating",onVotePlus:c[0]||(c[0]=p=>i("plus")),onVoteMinus:c[1]||(c[1]=p=>i("minus")),onShownRatingInfo:c[2]||(c[2]=p=>i("shown-rating-info"))},null,8,["positive-votes","negative-votes","user-choice","disabled"]))}}),dC={},fC={width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",class:"comment-item-author-like__hearth"};function pC(r,o){return oe(),ye("svg",fC,o[0]||(o[0]=[Te("path",{d:"M7.49319 13.0133L7.49212 13.0123C5.67501 11.3447 4.2268 10.0119 3.2241 8.77032C2.22991 7.53933 1.75 6.48824 1.75 5.39646C1.75 3.61396 3.11578 2.25 4.85 2.25C5.83791 2.25 6.80105 2.71937 7.42799 3.45865L8 4.13316L8.57201 3.45865C9.19895 2.71937 10.1621 2.25 11.15 2.25C12.8842 2.25 14.25 3.61396 14.25 5.39646C14.25 6.48824 13.7701 7.53933 12.7759 8.77032C11.7732 10.0119 10.325 11.3447 8.50788 13.0123L8.50681 13.0133L8.1694 13.3241C8.07368 13.4123 7.92632 13.4123 7.8306 13.3241L7.49319 13.0133Z",fill:"#FF003C",stroke:"white","stroke-width":"1.5"},null,-1)]))}const hC=We(dC,[["render",pC]]),mC={class:"comment-author-like"},gC={class:"comment-author-like__wrapper"},yC=Le({__name:"CommentAuthorLike",props:{avatarUrl:{type:String,required:!0},tooltip:{type:String,default:"Понравилось автору публикации"}},setup(r){return(o,i)=>(oe(),ye("div",mC,[xe(q(ab),{position:"top","data-test":"comment-author-like"},{content:$e(()=>[Ft(ze(r.tooltip),1)]),default:$e(()=>[Te("div",gC,[Te("div",{class:"comment-author-like__image",style:nn({backgroundImage:`url(${r.avatarUrl})`}),"data-test":"comment-author-like-image"},null,4),xe(hC,{class:"comment-author-like__heart","data-test":"comment-author-like-heart-icon"})])]),_:1})]))}}),bC={class:"comment-item-body"},wC={class:"comment-item-body__content"},vC={key:1,class:"comment-item-body__actions"},EC={key:0,class:"comment-item-body__author-likes","data-test":"comment-item-author-likes"},_C=Le({__name:"CommentItemBody",props:{quote:{type:Object,default:void 0},contentHtml:{type:String,required:!0},isSilent:{type:Boolean,default:!1},hasEditForm:{type:Boolean,default:!1},hasStructuredBody:{type:Boolean,default:!1},showActions:{type:Boolean,default:!0},actionButtonText:{type:String,default:"Ответить"},showAuthorLikes:{type:Boolean,default:!1},authorLikes:{type:Array,default:()=>[]},ratingPlus:{type:Number,required:!0},ratingMinus:{type:Number,required:!0},ratingUserChoice:{type:String,default:null},isRatingDisabled:{type:Boolean,default:!1}},emits:["quote-expand","quote-collapse","quote-close","action-click","vote-plus","vote-minus","shown-rating-info"],setup(r,{emit:o}){const i=o;return(u,c)=>{var p;return oe(),ye("div",bC,[r.quote?(oe(),Oe(du,{key:0,"author-name":r.quote.authorName,"author-url":r.quote.authorUrl,text:r.quote.text,"is-blocked":r.quote.isBlocked,"is-hidden":r.quote.isHidden,"is-collapsed":r.quote.isCollapsed,onExpand:c[0]||(c[0]=d=>i("quote-expand")),onCollapse:c[1]||(c[1]=d=>i("quote-collapse")),onClose:c[2]||(c[2]=d=>i("quote-close"))},null,8,["author-name","author-url","text","is-blocked","is-hidden","is-collapsed"])):ke("",!0),Te("div",wC,[et(u.$slots,"edit-form",{},void 0,!0),et(u.$slots,"structured-body",{}
713,void 0,!0),!r.hasEditForm&&!r.hasStructuredBody?(oe(),Oe(lC,{key:0,html:r.contentHtml,"is-silent":r.isSilent},null,8,["html","is-silent"])):ke("",!0)]),et(u.$slots,"donation",{},void 0,!0),r.showActions?(oe(),ye("div",vC,[xe(q(ao),null,{default:$e(()=>[xe(q(Fi),{color:q(ji).DEFAULT,variant:q(Mo).SECONDARY,class:"comment-item-body__action-button","data-test":"comment-item-action-button","data-comments-ignore-click-away":"",onClick:c[3]||(c[3]=d=>i("action-click"))},{default:$e(()=>[Ft(ze(r.actionButtonText),1)]),_:1},8,["color","variant"])]),_:1}),r.showAuthorLikes&&(p=r.authorLikes)!=null&&p.length?(oe(),ye("div",EC,[(oe(!0),ye(At,null,$t(r.authorLikes,d=>(oe(),Oe(yC,{key:d.id,"avatar-url":d.avatarUrl,tooltip:d.tooltip},null,8,["avatar-url","tooltip"]))),128))])):ke("",!0),xe(q(ao),null,{default:$e(()=>[xe(cC,{plus:r.ratingPlus,minus:r.ratingMinus,"user-choice":r.ratingUserChoice,disabled:r.isRatingDisabled,onPlus:c[4]||(c[4]=d=>i("vote-plus")),onMinus:c[5]||(c[5]=d=>i("vote-minus")),onShownRatingInfo:c[6]||(c[6]=d=>i("shown-rating-info"))},null,8,["plus","minus","user-choice","disabled"])]),_:1})])):ke("",!0),et(u.$slots,"reply-form",{},void 0,!0)])}}}),AC=We(_C,[["__scopeId","data-v-1984ed57"]]);var Oi=(r=>(r.ANSWER="answer",r.REMOVE_FROM_BLACKLIST="remove_from_blacklist",r.SHOW_COMMENT="show_comment",r))(Oi||{});const IC=[".b-catfish",".mtt-adhesion-container--bottom"];let dn=0;const Rd=()=>IC.reduce((r,o)=>{const i=document.querySelector(o);return i?[...r,i]:[...r]},[]),yl=()=>{const r=fe([]);rt(()=>{r.value=Rd()});const o=()=>{r.value=Rd()};return{isHide:()=>{if(o(),!!r.value.length)return r.value.every(i=>i.style.visibility==="collapse")},toggleCatfish:i=>{o(),r.value.length&&(dn=i?dn+1:dn-1,dn=dn<0?0:dn,dn?r.value.forEach(u=>u.style.visibility="collapse"):r.value.forEach(u=>u.style.visibility="visible"))}}},Fh=function(){return document.ontouchstart!==null?"click":"touchstart"},Ji="__vue_click_away__",jh=function(r,o,i){Gh(r);let u=i.context,c=o.value,p=!1;setTimeout(function(){p=!0},0),r[Ji]=function(d){if((!r||!r.contains(d.target))&&c&&p&&typeof c=="function")return c.call(u,d)},document.addEventListener(Fh(),r[Ji],!1)},Gh=function(r){document.removeEventListener(Fh(),r[Ji],!1),delete r[Ji]},TC=function(r,o,i){o.value!==o.oldValue&&jh(r,o,i)},SC={mounted:jh,updated:TC,unmounted:Gh},RC=1,Bd=76,BC="Написать комментарий...",CC="Отправить комментарий или донат",qh="Пишите корректно и дружелюбно.",Vh="Принципы нашей модерации",Hh="Возможно, ваш комментарий носит оскорбительный характер. Будьте вежливы к собеседнику и соблюдайте",zh="правила",Wh="Отправить",OC=["value","placeholder","disabled"],LC={key:0,class:"comment-form-input__donation-icon","data-test":"comment-form-donation-icon"},NC=Le({__name:"CommentFormInput",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:void 0},expanded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},focused:{type:Boolean,default:!1},isShort:{type:Boolean,default:!1},showDonationIcon:{type:Boolean,default:!1}},emits:["update:modelValue","input","focus","blur"],setup(r,{emit:o}){const i=r,u=o,c=fe(),p=ae(()=>i.expanded?i.modelValue:""),d=ae(()=>i.placeholder?i.placeholder:i.showDonationIcon?CC:BC),a=()=>{c.value&&(c.value.style.height="auto",c.value.style.height=`${c.value.scrollHeight>=Bd?c.value.scrollHeight:Bd}px`)},h=()=>{c.value&&(c.value.style.height="auto",c.value.rows=RC)},y=()=>{if(!i.expanded){h();return}a()},g=T=>{a();const A=T.target.value;u("input",A),u("update:modelValue",A)},b=()=>{u("focus")},v=()=>{u("blur")};rt(()=>{var T;y(),i.focused&&((T=c.value)==null||T.focus())});const{startTimeout:w,stopTimeout:_}=lf(250);return He(()=>i.expanded,()=>{_(),w(y)}),He(()=>i.focused,T=>{var A,B;T?(A=c.value)==null||A.focus():(B=c.value)==null||B.blur()}),He(()=>i.modelValue,()=>{sr(y)}),(T,A)=>(oe(),ye("div",{class:Xe(["comment-form-input",{"comment-form-input--expanded":r.expanded}])},[Te("textarea",{ref_key:"textarea",ref:c,name:"text",value:p.value,class:Xe(["comment-form-input__textarea",{"comment-form-input__textarea--expanded":r.expanded,"comment-form-input__textarea--expanded-short":r.isShort&&r.expanded}]),placeholder:d.value,disabled:r.disabled,"data-test":"comment-form-textarea",onInput:g,onF
713ocus:b,onBlur:v},null,42,OC),!r.expanded&&r.showDonationIcon?(oe(),ye("span",LC,[xe(q(yf))])):ke("",!0)],2))}}),DC=We(NC,[["__scopeId","data-v-55cd5f0b"]]),xC={class:"comment-form-warning__text","data-test":"comment-form-warning-text"},UC=["href"],kC=Le({__name:"CommentFormWarning",props:{message:{type:String,required:!0},linkText:{type:String,default:""},linkUrl:{type:String,default:""},visible:{type:Boolean,default:!1}},emits:["close"],setup(r,{emit:o}){const i=o,u=()=>{i("close")};return(c,p)=>(oe(),ye("div",{class:Xe(["comment-form-warning",{"comment-form-warning--visible":r.visible}])},[xe(q(j0),{class:"comment-form-warning__icon",width:"25",height:"32",onClick:u}),Te("div",xC,[Ft(ze(r.message)+" ",1),r.linkUrl?(oe(),ye("a",{key:0,class:"comment-form-warning__link",target:"_blank",href:r.linkUrl,"data-test":"comment-form-warning-link"},ze(r.linkText),9,UC)):ke("",!0)]),Te("button",{class:"comment-form-warning__close-button",type:"button","data-test":"comment-form-warning-close-button",onClick:u})],2))}}),PC=We(kC,[["__scopeId","data-v-89fb48ee"]]),MC={class:"comment-form-actions__moderation-rules"},$C=["href"],FC={class:"comment-form-actions__buttons"},jC=["disabled"],GC={key:1},qC={class:"comment-form-actions__submit-text"},VC=Le({__name:"CommentFormActions",props:{visible:{type:Boolean,default:!0},submitLabel:{type:String,default:Wh},submitDisabled:{type:Boolean,default:!1},submitLoading:{type:Boolean,default:!1},rulesUrl:{type:String,required:!0},rulesLabel:{type:String,default:Vh},rulesPrefix:{type:String,default:qh}},setup(r){return(o,i)=>(oe(),ye("div",{class:Xe(["comment-form-actions",{"comment-form-actions--visible":r.visible}])},[Te("span",MC,[Ft(ze(r.rulesPrefix)+" ",1),Te("a",{class:"comment-form-actions__rules-link",target:"_blank",href:r.rulesUrl,"data-test":"comment-form-rules-link"},ze(r.rulesLabel),9,$C)]),Te("div",FC,[et(o.$slots,"before-submit",{},void 0,!0),Te("button",{class:Xe(["comment-form-actions__submit",{"comment-form-actions__submit--loading":r.submitLoading,"comment-form-actions__submit--disabled":r.submitDisabled}]),type:"submit",disabled:r.submitDisabled,"data-test":"comment-form-submit-button"},[r.submitLoading?(oe(),Oe(q(ua),{key:0,class:"comment-form-actions__submit-preloader","data-test":"comment-form-submit-loader",size:"sm"})):(oe(),ye("span",GC,[Te("span",qC,ze(r.submitLabel),1)]))],10,jC)])],2))}}),HC=We(VC,[["__scopeId","data-v-4275375e"]]),zC=["onKeydown"],WC=Le({__name:"CommentForm",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:void 0},expanded:{type:Boolean,default:!1},expandable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},focused:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},isShort:{type:Boolean,default:!1},showDonationIcon:{type:Boolean,default:!1},warning:{type:String,default:""},warningLinkText:{type:String,default:zh},warningLinkUrl:{type:String,default:""},rulesUrl:{type:String,required:!0},rulesLabel:{type:String,default:Vh},rulesPrefix:{type:String,default:qh},submitLabel:{type:String,default:Wh},submitDisabled:{type:Boolean,default:!1}},emits:["update:modelValue","submit","focus","blur","warning-close"],setup(r,{emit:o}){const i=r,u=o,c=at(i,"expanded"),p=at(i,"focused"),d=at(i,"modelValue"),a=fe(c.value||p.value||d.value.length>0),h=fe(!1),y=ae(()=>a.value||i.expanded||i.focused||i.modelValue.length>0),g=ae(()=>!!i.warning&&!h.value&&y.value),b=ae(()=>i.warning??Hh),v=ae(()=>i.modelValue.trim().length===0),w=ae(()=>i.submitDisabled||i.disabled||v.value&&!i.loading),_=S=>{u("update:modelValue",S)},T=()=>{a.value=!0,u("focus")},A=()=>{a.value=!0,u("focus")},B=()=>{i.loading||v.value||u("submit",i.modelValue)},D=()=>{h.value=!0,u("warning-close")},x=["[data-comments-ignore-click-away]"],W=S=>{const M=S.target;if(!M||M.nodeType!==Node.ELEMENT_NODE)return!1;const I=M;return x.some(R=>I.closest(R))},U=S=>{W(S)||(u("blur"),!(i.modelValue.length>0||!i.expandable)&&(a.value=!1,h.value=!1))};return He(()=>i.warning,()=>{h.value=!1}),He(()=>i.expanded,S=>{a.value=!!S}),He(()=>i.focused,S=>{S&&(a.value=!0)}),(S,M)=>Wo((oe(),ye("form",{method:"post",class:"comment-form","data-test":"comment-form",onSubmit:Jn(B,["prevent"]),onClick:A,onKeydown:[zl(Jn(B,["ctrl"]),["enter"]),zl(Jn(B,["meta"]),["enter"])]},[xe(DC,{"model-value":r.modelValue,expanded:y.value,"is-short":r.isShort,focused:r.focused,"show-donation-icon":r.showDonationIcon,disabled:r.disabled,placeholder:r.placeholder,"onUpdate:modelValue":_,onFocus:T},null,8,["model-value","expanded","is-short","focused","show-donation-icon","disabled","placeholder"]),et(S.$slots,"after-input",{},void 0,!0),xe(PC,{message:b.value,"link-text":r.warningLinkText,"link-url":r.warningLinkUrl,visible:g.value,onClose:D},null,8,["message","link-text","link-url","visible"]),xe(HC,{visible:y.value,"submit-label":r.submitLabel,"submit-disabled":w.value,"submit-loading":r.loading,"rules-url":r.rulesUrl,"rules-label":r.rulesLabel,"rules-prefix":r.rulesPrefix},{"before-submit":$e(()=>[et(S.$slots,"actions-before",{},void 0,!0)]),_:3},8,["visible","submit-label","submit-disabled","submit-loading","rules-url","rules-label","rules-prefix"])],40,zC)),[[q(SC),U]])}}
713),YC=We(WC,[["__scopeId","data-v-2f96b5f0"]]),KC={class:"comment-form-container__donation-wrapper"},QC=5e3,JC=Le({__name:"CommentFormContainer",props:{content:{type:String,default:""},objectId:{type:String,default:""},isRudeContent:{type:Boolean,default:!1},isFormDataFetching:{type:Boolean,default:!1},expanded:{type:Boolean,default:!1},expandable:{type:Boolean,default:!0},withDonation:{type:Boolean,default:!1},isShort:{type:Boolean,default:!1},defaultContentValue:{type:String,default:""},isFocused:{type:Boolean,default:!1},isDonationFormShown:{type:Boolean,default:!1},hasFetchError:{type:Boolean,default:!1},rulesLink:{type:String,required:!0},analyticId:{type:String,default:"0"},areDonationsEnabled:{type:Boolean,default:!1},warningMessage:{type:String,default:Hh},warningLinkText:{type:String,default:zh}},emits:["formSubmit","donation","activated","donationShown","input","handleFocus","analytics"],setup(r,{emit:o}){const i=r,u=o,c=ae(()=>i.areDonationsEnabled&&i.withDonation),p=on();He(c,()=>{if(!c.value||p.value)return;const X=je(()=>Fe(()=>import("./index.es-e2b5bbfc-Dts5DpNQ.js"),__vite__mapDeps([46,1,2,47,48,49])).then(he=>{var ge;const ne=he.DonationForm??((ge=he.default)==null?void 0:ge.DonationForm);return ne?.default??ne}));p.value=X},{immediate:!0});const d=fe(i.isRudeContent),a=fe(i.content),h=ae(()=>a.value.replaceAll(" ","").length===0),y=fe(!1),g=fe(0),b=ae(()=>!!g.value),v=ae(()=>h.value&&!y.value||i.isDonationFormShown&&!b.value),w=fe(!1),_=ae(()=>i.isFormDataFetching&&!w.value),T=ae(()=>i.areDonationsEnabled&&i.withDonation),A=()=>i.expanded||i.isFormDataFetching||i.content.length>0||i.isFocused,B=fe(A()),D=fe(!1),{startTimeout:x,stopTimeout:W}=lf(QC),U=ae(()=>d.value&&B.value),S=()=>{d.value=!1},M=X=>{X===$h.IDLE&&(g.value=0)},I=()=>{const X=!i.isDonationFormShown;X?u("analytics",{name:"add_donation",data:{hasText:!h.value,randomId:i.analyticId}}):u("analytics",{name:"remove_donation",data:{hasText:!h.value,donationSum:g.value,how:"donation_button",randomId:i.analyticId}}),u("donationShown",X)},R=X=>{u("analytics",{name:"confirm_donation_change",data:{hasText:!h.value,randomId:i.analyticId}}),g.value=X},C=()=>{u("analytics",{name:"remove_donation",data:{hasText:!h.value,donationSum:g.value,how:"bin",randomId:i.analyticId}}),u("donationShown",!1)},V=X=>he=>{u("analytics",{name:"change_donation",data:{hasText:!h.value,how:X,donationSumOld:he.old,donationSum:he.new,randomId:i.analyticId}})},F=X=>{a.value=X,u("input",X)},ue=()=>{if(!(!w.value&&i.isFormDataFetching||a.value.length===0)){if(b.value){u("donation",{text:a.value,donationAmount:g.value});return}w.value=!1,x(()=>w.value=!0),u("formSubmit",a.value)}},H=()=>{u("handleFocus",!0),D.value||u("activated"),B.value=!0,D.value=!0},j=()=>{u("handleFocus",!1),!(a.value.length>0||!i.expandable)&&(i.isDonationFormShown||(B.value=!1,d.value=!1))};return He([a],()=>{i.isFormDataFetching||(y.value=!0),h.value&&(y.value=!1)}),He(()=>i.isFormDataFetching,(X,he)=>{w.value=!1,!(X&&!he)&&(b.value||(W(),!i.hasFetchError&&(a.value=i.defaultContentValue,i.isShort||(B.value=!1,d.value=!1))))}),He(()=>i.isRudeContent,X=>{d.value=X}),He(()=>i.isFocused,X=>{X&&(B.value=!0)}),He(()=>i.content,()=>{a.value=i.content,B.value=A()}),He(()=>i.isDonationFormShown,()=>{g.value=0}),(X,he)=>(oe(),Oe(q(YC),{"model-value":a.value,expanded:B.value,"is-short":r.isShort,focused:r.isFocused,loading:_.value,"show-donation-icon":T.value,warning:U.value?r.warningMessage:"","warning-link-url":r.rulesLink,"warning-link-text":r.warningLinkText,"rules-url":r.rulesLink,"submit-disabled":v.value,expandable:r.expandable,"onUpdate:modelValue":F,onSubmit:ue,onFocus:H,onBlur:j,onWarningClose:S},sa({_:2},[r.areDonationsEnabled&&r.withDonation&&r.isDonationFormShown&&B.value?{name:"after-input",fn:$e(()=>[Te("div",KC,[(oe(),Oe(Ct(p.value),{class:"comment-form-container__donation",onSubmit:R,onDelete:C,onChangeState:M,"onUpdate:input":he[0]||(he[0]=ge=>V(q(Ci).MANUALLY)(ge)),"onUpdate:increment":he[1]||(he[1]=ge=>V(q(Ci).PLUS)(ge)),"onUpdate:decrement":he[2]||(he[2]=ge=>V(q(Ci).MINUS)(ge))},null,32))])]),key:"0"}:void 0,r.areDonationsEnabled&&r.withDonation?{name:"actions-before",fn:$e(()=>[xe(q(Fi),{class:"comment-form-container__donation-button",type:"button",size:q($u).SM,variant:q(Mo).SECONDARY,color:q(ji).DEFAULT,rounded:"",short:"",disabled:b.value,"data-test":"comment-form-donation-button",onClick:Jn(I,["stop","prevent"])},{default:$e(()=>[xe(q(yf))]),_:1},8,["size","variant","color","disabled"])]),key:"1"}:void 0]),1032,["model-value","expanded","is-short","focused","loading","show-donation-icon","warning","warning-link-url","warning-link-text","rules-url","submit-disabled","expandable"]))}}),Ho=We(JC,[["__scopeId","data-v-97725063"]]),ZC={key:0,class:"comment-item-container__reply-form"},XC=Le({__name:"CommentItemContainer",props:{id:{type:String,required:!0},isPinned:{type:Boolean,default:!1},isOwner:{type:Boolean,default:!1},isDeleted:{type:Boolean,default:!1},user:{type:Object,required:!0},siteName:{type:String,required:!0},userLabels:{type:Object,default:()=>({})},answer:{type:Object,default:null},rating:{type:Object,required:!0},hideTerms:{type:Object,required:!0},text:{type:String,required:!0},rawText:{type:String,required:!0},structuredBody:{type:Array,default:()=>[]},publishDate:{type:Number,required:!0},publishDateFull:{type:String,required:!0},isInBlacklist:{type:Boolean,default:!1},isSuspected:{type:Boolean,default:!1},isFetchingReply:{type:Boolean,default:!1},isFetchingRate:{type:Boolean,default:!1},hasReplyFetchingError:{type:Boolean,default:!1},isRudeFormContent:{type:Boolean,default:!1},isFetchingEditForm:{type:Boolean,default:!1},isRudeAnswerContent:{type:Boolean,default:!1},order:{type:Number,default:0}
713,isInRoot:{type:Boolean,default:!1},childrenCount:{type:Number,default:0},isSelected:{type:Boolean,default:!1},isOpenAnswerForm:{type:Boolean,default:!1},donation:{type:Object,default:null},commentActions:{type:Array,default:()=>[]},pinUser:{type:String,default:""},rateAuthors:{type:Array,default:()=>[]},documentType:{type:String,default:""},isShowCommentInputInList:{type:Boolean,default:!0},isShowCommentEditForm:{type:Boolean,default:!1},isAuthorized:{type:Boolean,default:!1},areDonationsEnabled:{type:Boolean,default:!1},isForceLightTheme:{type:Boolean,default:!1},replyTargetCommentId:{type:String,default:""},replyDraftText:{type:String,default:""},onReplyFormInput:{type:Function,default:void 0}},emits:["reply","openReplyForm","openEditForm","closeEditForm","vote","votePlus","voteMinus","editComment","selectContextAction","setUserFollowing","onOpenActionMenu","analytics"],setup(r,{emit:o}){const i=r,u=o,{toggleCatfish:c}=yl(),{generateLink:p}=lh(),{commentVisibleDate:d}=$T(ae(()=>i.publishDate)),a=fe(!1),h=fe(!1),y=fe(i.isOpenAnswerForm),g=fe(!1),b=fe(""),v=fe([]),w=on();He(()=>i.areDonationsEnabled,()=>{if(!i.areDonationsEnabled||w.value)return;const se=je(()=>Fe(()=>import("./index.es-e2b5bbfc-Dts5DpNQ.js"),__vite__mapDeps([46,1,2,47,48,49])).then(Ae=>{var Ie;const le=Ae.DonationForm??((Ie=Ae.default)==null?void 0:Ie.DonationForm);return le?.default??le}));w.value=se},{immediate:!0});const _=ae(()=>w.value);rt(()=>{b.value=p(i.id)});const T=ae(()=>i.userLabels.userType===Gu.SportsEmployee),A=ae(()=>{var se;const Ae=(se=i.userLabels)==null?void 0:se.blogPostRole;return Ae&&Ae!=="%future added value"?sh[Ae]??"":""}),B=ae(()=>i.rating.plus-i.rating.minus),D=ae(()=>B.value<=i.hideTerms.rating.hide),x=ae(()=>i.user.rate.points<=i.hideTerms.author.shadow||B.value<=i.hideTerms.rating.shadow),W=ae(()=>h.value&&i.isInBlacklist?!1:i.isInBlacklist),U=ae(()=>x.value||i.isSuspected),S=ae(()=>{var se,Ae;return((se=i.answer)==null?void 0:se.author.length)>0&&((Ae=i.answer)==null?void 0:Ae.link.length)>0}),M=ae(()=>i.structuredBody.length>0),I=ae(()=>{var se;return i.areDonationsEnabled&&!!((se=i.donation)!=null&&se.amount)}),R=ae(()=>a.value?i.text:i.isInBlacklist?rd:D.value?nh:i.text),C=ae(()=>{if(S.value)return!h.value&&i.answer.isInBlacklist?{authorName:oT,text:rd,authorUrl:"",isBlocked:!0,isHidden:!0}:{authorName:i.answer.author,authorUrl:i.answer.link,text:i.answer.text,isBlocked:i.answer.isBlocked,isHidden:i.answer.ratingDiff<=i.hideTerms.rating.hide}}),V=ae(()=>a.value?"":i.isInBlacklist?Ya.BLACKLISTED:D.value?Ya.HIDDEN(i.hideTerms.rating.hide):x.value?Ya.SHADOWED(i.hideTerms.rating.shadow,i.hideTerms.author.shadow):""),F=ae(()=>i.pinUser&&i.siteName===jt.CYBER?"Закреплено Кибером":i.pinUser==="Sports.ru"?"Закреплено Sports.ru":i.pinUser?`Закреплено пользователем ${i.pinUser}`:"Закрепленный комментарий"),ue=ae(()=>!i.isDeleted||W.value),H=ae(()=>!i.isDeleted),j=ae(()=>!i.rating.canRate||i.isFetchingRate),X=()=>{u("openReplyForm",i.id),y.value=!y.value,g.value=!g.value},he=ae(()=>i.isInBlacklist&&!a.value?{action:Oi.REMOVE_FROM_BLACKLIST,text:td,handler:()=>{a.value=!0,h.value=!0,u("analytics",{name:"show_hidden",data:{reason:zn.BLACK_LIST}})}}:D.value&&!i.user.blocked&&!a.value?{action:Oi.SHOW_COMMENT,text:td,handler:()=>{a.value=!0,u("analytics",{name:"show_hidden",data:{reason:zn.HIDDEN}})}}:{action:Oi.ANSWER,text:nT,handler:()=>X()}),ge=ae(()=>i.documentType===tt.Post),ne=ae(()=>{var se;return(se=i.rateAuthors)!=null&&se.length?i.rateAuthors.map(Ae=>{var Ie;return{id:Ae.id,avatarUrl:((Ie=Ae.picture)==null?void 0:Ie.url)??"",tooltip:"Понравилось автору публикации"}}):[]}),be=Yi(i.siteName),P=()=>{var se;const Ae=(se=i.user)==null?void 0:se.following;u("setUserFollowing",i.user.id,Ae),u("analytics",{name:Ae?"follow_user":"unfollow_user",data:{userId:i.user.id}})},ee=se=>{if(se===we.Edit){u("openEditForm",i.id);return}u("selectContextAction",i.id,se,i.isOwner)},Ue=()=>{u("onOpenActionMenu"),c(!0),v.value=YB({actions:i.commentActions}),u("analytics",{name:"show_action_menu",data:{}})},_e=()=>{c(!1)},ce=()=>{u("vote",i.id,ar.Plus),u("votePlus",i.id)},de=()=>
713{u("vote",i.id,ar.Minus),u("voteMinus",i.id)},ve=ae(()=>i.id===i.replyTargetCommentId),te=se=>{var Ae;(Ae=i.onReplyFormInput)==null||Ae.call(i,se,i.id)},E=se=>{u("reply",se,i.id)},k=se=>{u("editComment",i.id,se)},Y=()=>{let se=null;i.isInBlacklist?se=zn.BLACK_LIST:D.value?se=zn.HIDDEN:x.value&&(se=zn.MUTED),se&&u("analytics",{name:"why",data:{reason:se}})},re=se=>{u("analytics",{name:"input_activate",data:{commentType:se?xt.REPLY:xt.ROOT}})},z=()=>{u("analytics",{name:"show_parent_comment",data:{}})},J=()=>{u("analytics",{name:"show_rate_info",data:{commentId:i.id}})};return He(()=>i.isFetchingReply,(se,Ae)=>{se&&!Ae||i.hasReplyFetchingError||(y.value=!1,g.value=!1)}),He(()=>i.text,()=>{u("closeEditForm")}),He(()=>i.isOpenAnswerForm,se=>{if(!se){y.value=!1,g.value=!1;return}y.value=!0,g.value=!0}),(se,Ae)=>(oe(),Oe(q(wT),{id:r.id,user:r.user,"site-name":r.siteName,"role-label":A.value,"is-sports-team-member":T.value,"publish-date":r.publishDate,"publish-date-full":r.publishDateFull,"date-label":q(d),permalink:b.value,"is-small":S.value,"is-user-hidden":W.value,"is-force-light-theme":r.isForceLightTheme,"is-pinned":r.isPinned,"pin-label":F.value,"is-selected":r.isSelected,"hint-title":q(iT),"hint-text":V.value,"is-deleted":r.isDeleted,"show-dropdown":H.value,"dropdown-items":v.value,"has-donation":I.value,onSubscribe:P,onHintOpen:Y,onDropdownSelect:ee,onDropdownOpen:Ue,onDropdownClose:_e},{body:$e(()=>[xe(q(AC),{quote:C.value,"content-html":R.value,"is-silent":U.value,"has-edit-form":r.isShowCommentEditForm&&r.isShowCommentInputInList,"has-structured-body":M.value&&!r.isShowCommentEditForm,"show-actions":ue.value,"action-button-text":he.value.text,"show-author-likes":ge.value,"author-likes":ne.value,"rating-plus":r.rating.plus,"rating-minus":r.rating.minus,"rating-user-choice":r.rating.action,"is-rating-disabled":j.value&&r.isAuthorized,onQuoteExpand:z,onActionClick:he.value.handler,onVotePlus:ce,onVoteMinus:de,onShownRatingInfo:J},{"edit-form":$e(()=>[r.isShowCommentEditForm&&r.isShowCommentInputInList?(oe(),Oe(q(Ho),{key:0,content:r.rawText,"is-short":"","is-form-data-fetching":r.isFetchingEditForm,"default-content-value":r.rawText,"is-rude-content":r.isRudeFormContent,"rules-link":q(be),onFormSubmit:k,onActivated:Ae[0]||(Ae[0]=Ie=>re(!r.isInRoot))},null,8,["content","is-form-data-fetching","default-content-value","is-rude-content","rules-link"])):ke("",!0)]),"structured-body":$e(()=>[M.value&&!r.isShowCommentEditForm?(oe(),Oe(q(CI),{key:0,body:r.structuredBody},null,8,["body"])):ke("",!0)]),donation:$e(()=>[I.value&&_.value?(oe(),Oe(Ct(_.value),{key:0,class:"comment-item-container__donation",value:r.donation.amount,readonly:""},null,8,["value"])):ke("",!0)]),"reply-form":$e(()=>[y.value&&r.isShowCommentInputInList?(oe(),ye("div",ZC,[xe(q(Ho),{expanded:"",expandable:!1,"is-short":"",content:ve.value?r.replyDraftText:"","is-form-data-fetching":r.isFetchingReply,"has-fetch-error":r.hasReplyFetchingError,"is-rude-content":r.isRudeAnswerContent,"is-focused":g.value,"rules-link":q(be),onFormSubmit:E,onInput:te,onActivated:Ae[1]||(Ae[1]=Ie=>re(!0))},null,8,["content","is-form-data-fetching","has-fetch-error","is-rude-content","is-focused","rules-link"])])):ke("",!0)]),_:1},8,["quote","content-html","is-silent","has-edit-form","has-structured-body","show-actions","action-button-text","show-author-likes","author-likes","rating-plus","rating-minus","rating-user-choice","is-rating-disabled","onActionClick"])]),_:1},8,["id","user","site-name","role-label","is-sports-team-member","publish-date","publish-date-full","date-label","permalink","is-small","is-user-hidden","is-force-light-theme","is-pinned","pin-label","is-selected","hint-title","hint-text","is-deleted","show-dropdown","dropdown-items","has-donation"]))}}),eO=We(XC,[["__scopeId","data-v-ee8e3f0e"]]);
713var rn=(r=>(r.OFF="off",r.EMPTY="empty",r.BEST="best",r.ACTUAL="actual",r))(rn||{});const rs={[er.LIGHT]:{[tt.Post]:{desktop:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/0/06/8c557c0cb3a58d2f3a82ed93dde48.svg"},mobile:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/3/d5/fe3652d04b30e7d47893a423bf764.svg"},original:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/0/06/8c557c0cb3a58d2f3a82ed93dde48.svg"}},[tt.News]:{desktop:{normal:"https://dumpster.cdn.sports.ru/5/3a/5432b1983c4bb8afa874d7928b866.svg"},mobile:{normal:"https://dumpster.cdn.sports.ru/6/95/2b8c80c1cd6bec69584ee6c7ed573.svg"},original:{normal:"https://dumpster.cdn.sports.ru/5/3a/5432b1983c4bb8afa874d7928b866.svg"}},default:{desktop:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/0/06/8c557c0cb3a58d2f3a82ed93dde48.svg"},mobile:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/3/d5/fe3652d04b30e7d47893a423bf764.svg"},original:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/0/06/8c557c0cb3a58d2f3a82ed93dde48.svg"}}},[er.DARK]:{[tt.Post]:{desktop:{normal:"https://dumpster.cdn.sports.ru/8/88/d34d84843c43570b1e6e5d5cda049.svg"},mobile:{normal:"https://dumpster.cdn.sports.ru/2/97/4af857f859f1009a5a768c5da5bcf.svg"},original:{normal:"https://dumpster.cdn.sports.ru/8/88/d34d84843c43570b1e6e5d5cda049.svg"}},[tt.News]:{desktop:{normal:"https://dumpster.cdn.sports.ru/5/a8/2cc520d206bb46ed8708cabe13f0b.svg"},mobile:{normal:"https://dumpster.cdn.sports.ru/8/97/76049125bdb9947fa041567dde7c7.svg"},original:{normal:"https://dumpster.cdn.sports.ru/5/a8/2cc520d206bb46ed8708cabe13f0b.svg"}},default:{desktop:{normal:"https://dumpster.cdn.sports.ru/8/88/d34d84843c43570b1e6e5d5cda049.svg"},mobile:{normal:"https://dumpster.cdn.sports.ru/2/97/4af857f859f1009a5a768c5da5bcf.svg"},original:{normal:"https://dumpster.cdn.sports.ru/8/88/d34d84843c43570b1e6e5d5cda049.svg"}}}},ns={[er.LIGHT]:{[tt.Post]:{desktop:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/7/5f/bc7c22078fdea0aa3c41e14c1e4d4.svg"},mobile:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/4/9d/549e6a55738486cbd486d1b83e2a6.svg"},original:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/7/5f/bc7c22078fdea0aa3c41e14c1e4d4.svg"}},[tt.News]:{desktop:{normal:"https://dumpster.cdn.sports.ru/2/37/181c2bd66eeec60e7373c7732003a.svg"},mobile:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/2/54/5515266110fa257e20e861b31bddb.svg"},original:{normal:"https://dumpster.cdn.sports.ru/2/37/181c2bd66eeec60e7373c7732003a.svg"}},default:{desktop:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/7/5f/bc7c22078fdea0aa3c41e14c1e4d4.svg"},mobile:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/4/9d/549e6a55738486cbd486d1b83e2a6.svg"},original:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/7/5f/bc7c22078fdea0aa3c41e14c1e4d4.svg"}}},[er.DARK]:{[tt.Post]:{desktop:{normal:"https://dumpster.cdn.sports.ru/1/b2/2d7af82574919b2df01f923d2ee5d.svg"},mobile:{normal:"https://dumpster.cdn.sports.ru/3/0d/eb94af33098f63f418e20c662995d.svg"},original:{normal:"https://dumpster.cdn.sports.ru/1/b2/2d7af82574919b2df01f923d2ee5d.svg"}},[tt.News]:{desktop:{normal:"https://dumpster.cdn.sports.ru/0/fd/f0baf508341eb0df63d5d1b7a7ea3.svg"},mobile:{normal:"https://dumpster.cdn.sports.ru/e/1e/07a8e0c156c8464fd5a6e87c0b673.svg"},original:{normal:"https://dumpster.cdn.sports.ru/0/fd/f0baf508341eb0df63d5d1b7a7ea3.svg"}},default:{desktop:{normal:"https://dumpster.cdn.sports.ru/1/b2/2d7af82574919b2df01f923d2ee5d.svg"},mobile:{normal:"https://dumpster.cdn.sports.ru/3/0d/eb94af33098f63f418e20c662995d.svg"},original:{normal:"https://dumpster.cdn.sports.ru/1/b2/2d7af82574919b2df01f923d2ee5d.svg"}}}},os={[er.LIGHT]:{[tt.Post]:{desktop:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/9/8f/05057fbc18d12c85f76ea5a782816.svg"},mobile:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/1/fc/0504d83fce707c28c2118da2e392b.svg"},original:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/9/8f/05057fbc18d12c85f76ea5a782816.svg"}},[tt.News]:{desktop:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/9/8f/05057fbc18d12c85f76ea5a782816.svg"},mobile:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/1/fc/0504d83fce707c28c2118da2e392b.svg"},original:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/9/8f/05057fbc18d12c85f76ea5a782816.svg"}},default:{desktop:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/9/8f/05057fbc18d12c85f76ea5a782816.svg"},mobile:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/1/fc/0504d83fce707c28c2118da2e392b.svg"},original:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/9/8f/05057fbc18d12c85f76ea5a782816.svg"}}},[er.DARK]:{[tt.Post]:{desktop:{normal:"https://dumpster.cdn.sports.ru/8/3d/faf09ccef08942755c98da62a7dab.svg"},mobile:{normal:"https://dumpster.cdn.sports.ru/8/15/5fbac5edfe15f55cbe9ef9d802d2d.svg"},original:{normal:"https://dumpster.cdn.sports.ru/8/3d/faf09ccef08942755c98da62a7dab.svg"}},[tt.News]:{desktop:{normal:"https://dumpster.cdn.sports.ru/8/3d/faf09ccef08942755c98da62a7dab.svg"},mobile:{normal:"https://dumpster.cdn.sports.ru/8/15/5fbac5edfe15f55cbe9ef9d802d2d.svg"},original:{normal:"https://dumpster.cdn.sports.ru/8/3d/faf09ccef08942755c98da62a7dab.svg"}},default:{desktop:{normal:"https://dumpster.cdn.sports.ru/8/3d/faf09ccef08942755c98da62a7dab.svg"},mobile:{normal:"https://dumpster.cdn.sports.ru/8/15/5fbac5edfe15f55cbe9ef9d802d2d.svg"},original:{normal:"https://dumpster.cdn.sports.ru/8/3d/faf09ccef08942755c98da62a7dab.svg"}}}},is={[er.LIGHT]:{[tt.Post]:{desktop:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/0/8b/1b6b126cd96a0e82c0093e0b9b68e.svg"},mobile:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/c/aa/117c521be06823f46820cd92463c3.svg"},original:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/0/8b/1b6b126cd96a0e82c0093e0b9b68e.svg"}},[tt.News]:{desktop:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/0/8b/1b6b126cd96a0e82c0093e0b9b68e.svg"},mobile:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/c/aa/117c521be06823f46820cd92463c3.svg"},original:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/0/8b/1b6b126cd96a0e82c0093e0b9b68e.svg"}},default:{desktop:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/0/8b/1b6b126cd96a0e82c0093e0b9b68e.svg"},mobile:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/c/aa/117c521be06823f46820cd92463c3.svg"},original:{normal:"https://photobooth.cdn.sports.ru/preset/legacy/storage/dumpster/0/8b/1b6b126cd96a0e82c0093e0b9b68e.svg"}}},[er.DARK]:{[tt.Post]:{desktop:{normal:"https://dumpster.cdn.sports.ru/f/40/8c4b040165ec0aa05f4622eadd543.svg"},mobile:{normal:"https://dumpster.cdn.sports.ru/d/82/2f79e439dece7d1f19848a76831cc.svg"},original:{normal:"https://dumpster.cdn.sports.ru/f/40/8c4b040165ec0aa05f4622eadd543.svg"}},[tt.News]:{desktop:{normal:"https://dumpster.cdn.sports.ru/f/40/8c4b040165ec0aa05f4622eadd543.svg"},mobile:{normal:"https://dumpster.cdn.sports.ru/d/82/2f79e439dece7d1f19848a76831cc.svg"},original:{normal:"https://dumpster.cdn.sports.ru/f/40/8c4b040165ec0aa05f4622eadd543.svg"}},default:{desktop:{normal:"https://dumpster.cdn.sports.ru/f/40/8c4b040165ec0aa05f4622eadd543.svg"},mobile:{normal:"https://dumpster.cdn.sports.ru/d/82/2f79e439dece7d1f19848a76831cc.svg"},original:{normal:"https://dumpster.cdn.sports.ru/f/40/8c4b040165ec0aa05f4622eadd543.svg"}}}},tO="Автор отключил комментарии в этой статье",rO="У этой статьи ни одного комментария",nO="Ждем побольше комментариев чтобы показать лучшие",oO="Ждем побольше комментариев чтобы показать актуальные",iO={class:"comments-list-plug"},aO={class:"comments-list-plug__content"},sO=Le({__name:"CommentsListPlug",props:{plugName:{type:String,required:!0},objectClass:{type:String,required:!0}},setup(r){const o=r,i=fe(er.LIGHT);let u;const c={attributes:!0},p=()=>
713{i.value=document.body.classList.contains(er.DARK)?er.DARK:er.LIGHT},d=v=>{for(const w of v){if(w.type!=="attributes")return;p()}};rt(()=>{p(),u=new MutationObserver(d),u.observe(document.body,c)}),co(()=>{u.disconnect()});const a=()=>{switch(o.objectClass){case tt.Post:return ns[i.value].POST;case tt.News:return ns[i.value].NEWS;default:return ns[i.value].default}},h=()=>{switch(o.objectClass){case tt.Post:return os[i.value].POST;case tt.News:return os[i.value].NEWS;default:return os[i.value].default}},y=()=>{switch(o.objectClass){case tt.Post:return rs[i.value].POST;case tt.News:return rs[i.value].NEWS;default:return rs[i.value].default}},g=()=>{switch(o.objectClass){case tt.Post:return is[i.value].POST;case tt.News:return is[i.value].NEWS;default:return is[i.value].default}},b=ae(()=>{switch(o.plugName){case rn.OFF:return{image:y(),alt:tO};case rn.ACTUAL:return{image:g(),alt:oO};case rn.BEST:return{image:h(),alt:nO};default:return{image:a(),alt:rO}}});return(v,w)=>(oe(),ye("div",iO,[Te("div",aO,[xe(q(Pu),{class:"comments-list-plug__image","image-sources":b.value.image,alt:b.value.alt,"data-test":"comments-list-plug-image"},null,8,["image-sources","alt"])])]))}}),uO=We(sO,[["__scopeId","data-v-1f3db74d"]]),lO={},cO={width:"8",height:"12",viewBox:"0 0 8 12",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"};function dO(r,o){return oe(),ye("svg",cO,o[0]||(o[0]=[Te("path",{d:"M7.33227 2.91892L4.66285 0.27959C4.28581 -0.0931967 3.69763 -0.0931967 3.3206 0.27959L0.666257 2.91892C0.452646 3.13012 0 3.6179 0 3.6179L1.38915 4.87217C1.38915 4.87217 1.88478 4.36837 2.00851 4.24604L3.04913 3.21715V12C3.04913 12 3.62108 12 3.99926 12C4.33205 12 4.9494 12 4.9494 12V3.21715L5.99002 4.24604C6.171 4.42498 6.66251 4.87217 6.66251 4.87217L8 3.6179C8 3.6179 7.53749 3.12183 7.33227 2.91892Z"},null,-1)]))}const Zi=We(lO,[["render",dO]]),fO={class:"arrows"},pO=Le({__name:"CommentsBlockArrowsIcon",setup(r){return(o,i)=>(oe(),ye("div",fO,[xe(Zi),xe(Zi,{class:"arrows__icon-invert"})]))}}),hO={class:"arrows"},mO=Le({__name:"CommentsBlockArrowsRotatedIcon",setup(r){return(o,i)=>(oe(),ye("div",hO,[xe(Zi,{class:"arrows__icon-invert"}),xe(Zi)]))}}),gO={class:"comments-block-title"},yO={class:"ui-heading-xs comments-block-title__text","data-test":"comments-block-title"},bO=Le({__name:"CommentsBlockTitle",props:{totalCommentsCount:{type:Number,default:0},withReload:{type:Boolean,default:!1}},emits:["reload"],setup(r,{emit:o}){const i=r,u=fe(void 0);rt(()=>{u.value=i.totalCommentsCount}),He(()=>i.totalCommentsCount,d=>{u.value!==void 0&&(u.value=d)});const c=ae(()=>{const d=u.value??0;return d===0?"Комментарии":`${d} ${Gp(d,yS)}`}),p=o;return(d,a)=>(oe(),ye("div",gO,[Te("h2",yO,ze(c.value),1),r.withReload?(oe(),ye("button",{key:0,"data-test":"comments-block-title-button",type:"button",class:"comments-block-title__reload",onClick:a[0]||(a[0]=h=>p("reload"))})):ke("",!0)]))}}),Yh=We(bO,[["__scopeId","data-v-8919e62b"]]),wO="С диалогами",vO="Без диалогов",EO={},_O={class:"view-toggler-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 12","aria-hidden":"true",focusable:"false"};function AO(r,o){return oe(),ye("svg",_O,o[0]||(o[0]=[Te("rect",{class:"line",height:"2",width:"18",x:"0",y:"0"},null,-1),Te("rect",{class:"line",height:"2",width:"18",x:"0",y:"5"},null,-1),Te("rect",{class:"line",height:"2",width:"18",x:"0",y:"10"},null,-1)]))}const IO=We(EO,[["render",AO],["__scopeId","data-v-4d966dbb"]]),TO={class:"view-toggler"},SO=["for"],RO=["for"],BO=["id","name","checked"],CO={class:"view-toggler__button"},OO=Le({__name:"ViewToggler",props:{name:{type:String,required:!0},checked:{type:Boolean,default:!0}},emits:["change"],setup(r,{emit:o}){const i=r,u=ae(()=>i.checked?wO:vO),c=o,p=d=>{const a=d.target;
713c("change",a.checked?Ze.DIALOGUE:Ze.LIST)};return(d,a)=>(oe(),ye("div",TO,[Te("label",{class:"view-toggler__text",for:r.name,"data-test":"comments-view-toggler-label"},ze(u.value),9,SO),Te("label",{for:r.name},[Te("input",{id:r.name,"data-test":"comments-view-toggler-checkbox",type:"checkbox",class:"view-toggler__input",name:r.name,checked:r.checked,onChange:p},null,40,BO),Te("span",CO,[xe(q(IO))])],8,RO)]))}}),LO=We(OO,[["__scopeId","data-v-2f7ed56f"]]),NO={class:"comments-block-filters"},DO={class:"comments-block-filters__tabs"},xO={class:"comments-block-filters__view"},UO=Le({__name:"CommentsBlockFilters",props:{tabs:{type:Array,default:()=>[]},activeTab:{type:String,default:""},viewTogglerName:{type:String,required:!0},isDialogueView:{type:Boolean,default:!0}},emits:["tab-change","view-mode-change"],setup(r,{emit:o}){const i=r,u=o,c=p=>u("tab-change",String(p));return(p,d)=>(oe(),ye("div",NO,[Te("div",DO,[xe(q(nb),{"data-test":"comments-filters",tabs:i.tabs,active:i.activeTab,variant:"sm",class:"comments-block-filters__filter-bar",onClick:c},null,8,["tabs","active"])]),Te("div",xO,[xe(q(LO),{name:i.viewTogglerName,checked:i.isDialogueView,onChange:d[0]||(d[0]=a=>u("view-mode-change",a))},null,8,["name","checked"])])]))}}),kO=We(UO,[["__scopeId","data-v-324861c9"]]),PO=Le({__name:"CommentListLoadMore",props:{label:{type:String,default:Kp},isRoot:{type:Boolean,default:!1}},emits:["click"],setup(r,{emit:o}){const i=o;return(u,c)=>(oe(),ye("div",{class:Xe(["comment-list-load-more",{"comment-list-load-more--nested":!r.isRoot}])},[r.isRoot?(oe(),Oe(q(Fi),{key:1,size:q($u).MD,color:q(ji).SUCCESS,class:"comment-list-load-more__button comment-list-load-more__button--root",variant:q(Mo).SECONDARY,"full-width":"","data-test":"comment-list-load-more-button-root",onClick:c[1]||(c[1]=p=>i("click"))},{default:$e(()=>[Te("span",null,ze(r.label),1),xe(q(Yy),{class:"comment-list-load-more__icon"})]),_:1},8,["size","color","variant"])):(oe(),Oe(q(Fi),{key:0,variant:q(Mo).TERTIARY,color:q(ji).DEFAULT,class:"comment-list-load-more__button","data-test":"comment-list-load-more-button-nested",onClick:c[0]||(c[0]=p=>i("click"))},{default:$e(()=>[Ft(ze(r.label),1)]),_:1},8,["variant","color"]))],2))}}),Xi=We(PO,[["__scopeId","data-v-515fc02d"]]),MO={class:"list-selector-popup__header"},$O={class:"list-selector-popup__header-content"},FO={class:"list-selector-popup__title","data-test":"list-selector-popup-title"},jO={key:0,class:"list-selector-popup__subtitle","data-test":"list-selector-popup-subtitle"},GO={class:"list-selector-popup__items","data-test":"list-selector-popup-items"},qO=["onClick"],VO=Le({__name:"ListSelectorPopup",props:{isOpen:{type:Boolean,default:!1},headerText:{type:String,default:""},headerSubtitle:{type:String,default:""},items:{type:Array,default:()=>[]}},emits:["close","select"],setup(r,{emit:o}){const i=r,u=o,c=ae({get:()=>i.isOpen,set:d=>{d||u("close")}}),p=d=>{u("select",d)};return(d,a)=>(oe(),Oe(q(cf),{modelValue:c.value,"onUpdate:modelValue":a[0]||(a[0]=h=>c.value=h),"show-close-icon":"",class:"list-selector-popup","data-test":"list-selector-popup"},{header:$e(()=>[Te("div",MO,[Te("div",$O,[et(d.$slots,"header-icon",{},void 0,!0),Te("div",FO,ze(r.headerText),1),r.headerSubtitle?(oe(),ye("div",jO,ze(r.headerSubtitle),1)):ke("",!0)])])]),default:$e(()=>[Te("ul",GO,[(oe(!0),ye(At,null,$t(r.items,h=>(oe(),ye("li",{key:h.action,class:Xe(`list-selector-popup__item--${h.colorMode??"neutral"}`),"data-test":"list-selector-popup-item",onClick:y=>p(h.action)},[et(d.$slots,"item-icon",{item:h},void 0,!0),Ft(" "+ze(h.text),1)],10,qO))),128))])]),_:3},8,["modelValue"]))}}),HO=We(VO,[["__scopeId","data-v-6f14d80f"]]),zO={key:0,class:"loader-wrapper"},WO=Le({__name:"CommentsBlockPopups",props:{isLoadingBlock:{type:Boolean,default:!1},loaderClass:{type:String,default:""},pendingAction:{type:Object,default:null},isRejectedDonationPopupShown:{type:Boolean,default:!1},donationActionsList:{type:Array,default:()=>[]}},emits:["complain","delete","ban-user","update:pendingAction","donation-action"],setup(r,{emit:o}){const i=Le({props:{item:{type:Object,required:!0}},setup(ge){return()=>{const ne=ge.item.icon;return ne&&typeof ne=="object"?Ky(ne):null}}}),u=r,c=o,{reasonsList:p,complainingCommentId:d,isShowComplainReasonPopup:a,onComplainActionSelect:h,onComplainPopupClose:y}=aB(),{deleteReasonsList:g,deleteCommentId:b,isShowDeleteReasonPopup:v,onDeleteActionSelect:w,onDeletePopupClose:_}=FR(),{isShowBanReasonPopup:T,banReasonsList:A,banCommentId:B,isPermanentBan:D,banModalHeader:x,onBanActionSelect:W,onBanPopupClose:U}=uB(),{routeActionToPopup:S}=cl(),M=(ge,ne)=>{switch(ge){case Io.COMPLAIN:h(ne);break;case Io.DELETE:w(ne);break;case Io.BAN:W(ne,!1);break;case Io.BAN_PERMANENT:W(ne,!0);break}};He(()=>u.pendingAction,ge=>{if(!ge)return;const ne=S({action:ge.action,isOwnComment:ge.isOwnComment});ne&&sr(()=>{M(ne,ge.commentId)})});const I=()=>{u.pendingAction&&c("update:pendingAction",null)},R=ge=>{a.value=!1,c("complain",d.value,ge),I()},C=ge=>{v.value=!1,c("delete",b.value,ge),I()},V=ge=>{T.value=!1,c("ban-user",B.value,!!D.value,ge),I()},F=()=>{y(),I()},ue=()=>{_(),I()},H=()=>{U(),I()},j=ge=>{c("donation-action",ge)},X=()=>{c("donation-action","CLOSE_POPUP")},he=ae(()=>[{id:"ban",isOpen:q(T),items:q(A),headerText:q(x),headerSubtitle:"",onSelect:V,onClose:H,headerIcon:null,itemIcon:null},{id:"complain",isOpen:q(a),items:q(p),headerText:"Пожаловаться",headerSubtitle:"",onSelect:R,onClose:F,headerIcon:null,itemIcon:null},{id:"delete",isOpen:q(v),items:q(g),headerText:"Причина",headerSubtitle:"",onSelect:C,onClose:ue,headerIcon:null,itemIcon:null},{id:"donation-rejection",isOpen:u.isRejectedDonationPopupShown,items:u.donationActionsList,headerText:"Комментарий отправлен, но без доната",headerSubtitle:"При попытке оплаты произошла ошибка",onSelect:j,onClose:X,headerIcon:$0,itemIcon:i}]);return(ge,ne)=>(oe(),Oe(q(ao),null,{default:$e(()=>[r.isLoadingBlock?(oe(),ye("div",zO,[xe(q(ua),{"data-test":"comments-block-popups-loader",class:Xe(r.loaderClass)},null,8,["class"])])):ke("",!0),(oe(!0),ye(At,null,$t(he.value,be=>(oe(),Oe(q(HO),{key:be.id,"is-open":be.isOpen,items:be.items,"header-text":be.headerText,"header-subtitle":be.headerSubtitle,onSelect:be.onSelect,onClose:be.onClose},sa({_:2},[be.itemIcon?{name:"item-icon",fn:$e(({item:P})=>[(oe(),Oe(Ct(be.itemIcon),{item:P},null,8,["item"]))]),key:"0"}:void 0,be.headerIcon?{name:"header-icon",fn:$e(()=>[(oe(),Oe(Ct(be.headerIcon)))]),key:"1"}:void 0]),1032,["is-open","items","header-text","header-subtitle","onSelect","onClose"]))),128))]),_:1}))}}),Kh=We(WO,[["__scopeId","data-v-27990ee7"]]),YO={key:0,class:"comments-block__header","data-test":"comments-block-header"},KO={key:0,class:"comments-block__editor"},QO={key:1,class:"loader-wrapper"},JO=["id"],ZO={key:2,class:"comments-block__plug"},XO=Le({__name:"CommentsBlock",props:{objectId:{type:String,required:!0},objectClass:{type:String,required:!0},hideTerms:{type:Object,required:!0},totalRootCommentsCount:{type:Number,required:!0},isCommentsAvailable:{type:Boolean,default:!0},commentsList:{type:Array,default:()=>[]},isLoadingComments:{type:Boolean,default:!1},totalCommentsCount:{type:Number,default:0},totalStructureLength:{type:Number,default:0},userInfo:{type:Object,default:null},viewMode:{type:String,default:Ze.DIALOGUE},order:{type:String,default:Je.New},isLoadingBlock:{type:Boolean,default:!1},isNewCommentDataFetching:{type:Boolean,default:!1},hasNewCommentDataFetchingError:{type:Boolean,default:!1},isRudeNewCommentText:{type:Boolean,default:!1},siteName:{type:String,default:jt.SPORTS},focusOnNewCommentForm:{type:Boolean,default:!1},isRejectedDonationPopupShown:{type:Boolean,default:!1},isDonationFormShown:{type:Boolean,default:!1},withDonation:{type:Boolean,default:!1},isBranded:{type:Boolean,default:!1},isShowCommentInputInList:{type:Boolean,default:!0},isModerator:{type:Boolean,default:!1},isAuthViewer:{type:Boolean,default:!1},areDonationsEnabled:{type:Boolean,default:!1},isAdDisabled:{type:Boolean,default:!1},editingCommentId:{type:String,default:""},device:{type:String,default:Ot.DESKTOP},analyticId:{type:String,default:""},replyTargetCommentId:{type:String,default:""},replyDraftText:{type:String,default:""},onReplyFormInput:{type:Function,default:void 0}},emits:["changeSort","changeViewMode","uploadMore","newComment","removeFromBlackList","selectInContext","votePlus","voteMinus","complain","delete","ban-user","setUserFollowing","editComment","onOpenActionMenu","donationAction","reload","loadRestComments","pinComment","unpinComment","openReplyForm","openEditForm","closeEditForm","analytics"],setup(r,{expose:o,emit:i}){const u=r,c=fe(null),p=i,d=fe(""),a=fe(!1),h=fe(),y=fe(!1);o({wrapper:h});const g=ae(()=>u.totalRootCommentsCount>u.commentsList.length),b=ae(()=>u.viewMode===Ze.DIALOGUE),v=ae(()=>u.totalCommentsCount>0),w=ae(()=>u.totalStructureLength<u.totalCommentsCount),_=ae(()=>w.value&&!a.value&&[Je.Actual,Je.Best].includes(u.order)),T=ae(()=>!u.isCommentsAvailable||!v.value||u.commentsList.length===0),A=ae(()=>T.value&&!u.isLoadingComments&&!u.isLoadingBlock),B=ae(()=>[{value:kt.DATE,title:"По дате",iconRight:u.order===Je.New?pO:mO},{value:kt.BEST,title:"Лучшие"},{value:kt.ACTUAL,title:"Актуальные"}]),{getTabDataByOrder:D}=$R(),x=z=>D(z).tabId,W=ae(()=>x(u.order)),U=z=>p("openReplyForm",z),S=z=>p("openEditForm",z),M=()=>p("closeEditForm"),I=z=>p("votePlus",z),R=z=>p("voteMinus",z),C=(z,J)=>
713p("editComment",z,J),V=z=>p("removeFromBlackList",z),F=()=>u.isCommentsAvailable?u.order===Je.Best?rn.BEST:u.order===Je.Actual?rn.ACTUAL:rn.EMPTY:rn.OFF,ue=ae(()=>F()),{onRejectionDonationActionSelect:H,donationActionsList:j,commentFormText:X,onDonation:he,onDonationShown:ge}=Ph(p),{saveUserComment:ne,getUserComment:be}=dl(u.objectId,u.objectClass),P=z=>{ne({text:z,parentId:u.replyTargetCommentId||void 0})};He(()=>X.value,z=>{d.value=z}),He(()=>[u.isLoadingComments],()=>{a.value=!1});const ee=z=>{const J=String(z);let se;J===kt.DATE&&(se=u.order===Je.New?Tn.TOP:Tn.BOTTOM),p("changeSort",J,se)},Ue=()=>p("reload"),_e=z=>p("changeViewMode",z),ce=(z,J="")=>{p("newComment",z,J)},de=z=>p("uploadMore",z),ve=()=>{a.value=!0,p("loadRestComments")},{toggleCatfish:te}=yl();He(()=>c.value!==null||u.isRejectedDonationPopupShown,z=>te(z)),rt(()=>{var z,J;y.value=u.isBranded||!!((J=(z=window?.Sports)==null?void 0:z.pageData)!=null&&J.isBranded);const se=be();se&&!se.parentId&&(d.value=se.text)});const{needsPopup:E}=cl(),k=(z,J,se)=>{if(J===we.RemoveFromBlacklist){V(z);return}E(J,se)?c.value={commentId:z,action:J,isOwnComment:se}:p("selectInContext",z,J,se)},Y=(z,J)=>p("setUserFollowing",z,J),re=()=>{p("analytics",{name:"input_activate",data:{commentType:xt.ROOT}})};return(z,J)=>(oe(),ye("div",{ref_key:"wrapper",ref:h,class:"comments-block","data-test":"comments-block"},[xe(q(Yh),{class:"comments-block__header-title","total-comments-count":r.totalCommentsCount,"with-reload":"",onReload:Ue},null,8,["total-comments-count"]),Te("div",{class:Xe(["comments-block__available",{"comments-block__available--hidden":r.isLoadingBlock}])},[r.isCommentsAvailable?(oe(),ye("div",YO,[xe(q(kO),{class:"comments-block__filters",tabs:B.value,"active-tab":W.value,"view-toggler-name":r.objectId+"_comments-view","is-dialogue-view":b.value,onTabChange:ee,onViewModeChange:_e},null,8,["tabs","active-tab","view-toggler-name","is-dialogue-view"]),r.isShowCommentInputInList?(oe(),ye("div",KO,[xe(q(Ho),{"is-form-data-fetching":r.isNewCommentDataFetching,"is-rude-content":r.isRudeNewCommentText,"is-focused":r.focusOnNewCommentForm,"with-donation":r.withDonation,"is-donation-form-shown":r.isDonationFormShown,content:d.value,"has-fetch-error":r.hasNewCommentDataFetchingError,"object-id":r.objectId,"rules-link":q(Yi)(r.siteName),"analytic-id":r.analyticId,"are-donations-enabled":r.areDonationsEnabled,onFormSubmit:ce,onActivated:re,onDonation:q(he),onDonationShown:q(ge),onInput:P,onAnalytics:J[0]||(J[0]=se=>p("analytics",se))},null,8,["is-form-data-fetching","is-rude-content","is-focused","with-donation","is-donation-form-shown","content","has-fetch-error","object-id","rules-link","analytic-id","are-donations-enabled","onDonation","onDonationShown"])])):ke("",!0)])):ke("",!0),r.isLoadingComments?(oe(),ye("div",QO,[xe(q(ua),{"data-test":"comments-block-loader",class:"comments-block__loader"})])):ke("",!0),Te("div",{id:r.objectId+"_comments",class:Xe(["comments-block__list",{"comments-block__list--hidden":r.isLoadingComments}])},[!y.value&&!r.isAdDisabled?(oe(),Oe(q(nl),{key:0,"slot-id":q(pe).BETS_COMMENT,"is-lazy":""},null,8,["slot-id"])):ke("",!0),Wo(xe(q(Qh),{comments:r.commentsList,"user-info":r.userInfo,"hide-terms":r.hideTerms,"has-more-comments":g.value,"view-mode":r.viewMode,"site-name":r.siteName,"is-branded-page":y.value,"should-load-rest-comments":_.value,"is-show-comment-input-in-list":r.isShowCommentInputInList,"editing-comment-id":r.editingCommentId,"is-ad-disabled":r.
713isAdDisabled,"is-authorized":r.isAuthViewer,device:r.device,"object-class":r.objectClass,"analytic-id":r.analyticId,"are-donations-enabled":r.areDonationsEnabled,"reply-target-comment-id":r.replyTargetCommentId,"reply-draft-text":r.replyDraftText,"on-reply-form-input":r.onReplyFormInput,onUploadMore:de,onLoadRestComments:ve,onReply:ce,onOpenReplyForm:U,onOpenEditForm:S,onCloseEditForm:M,onVotePlus:I,onVoteMinus:R,onEditComment:C,onSelectContextAction:k,onSetUserFollowing:Y,onOnOpenActionMenu:J[1]||(J[1]=se=>p("onOpenActionMenu")),onAnalytics:J[2]||(J[2]=se=>p("analytics",se))},null,8,["comments","user-info","hide-terms","has-more-comments","view-mode","site-name","is-branded-page","should-load-rest-comments","is-show-comment-input-in-list","editing-comment-id","is-ad-disabled","is-authorized","device","object-class","analytic-id","are-donations-enabled","reply-target-comment-id","reply-draft-text","on-reply-form-input"]),[[ef,v.value]])],10,JO),A.value?(oe(),ye("div",ZO,[xe(q(uO),{"plug-name":ue.value,"object-class":r.objectClass},null,8,["plug-name","object-class"])])):ke("",!0)],2),xe(q(Kh),{"pending-action":c.value,"onUpdate:pendingAction":J[3]||(J[3]=se=>c.value=se),"is-loading-block":r.isLoadingBlock,"loader-class":"comments-block__preloader","is-rejected-donation-popup-shown":r.isRejectedDonationPopupShown,"donation-actions-list":q(j),onComplain:J[4]||(J[4]=(se,Ae)=>p("complain",se,Ae)),onDelete:J[5]||(J[5]=(se,Ae)=>p("delete",se,Ae)),onBanUser:J[6]||(J[6]=(se,Ae,Ie)=>p("ban-user",se,Ae,Ie)),onDonationAction:J[7]||(J[7]=(se,Ae)=>q(H)(se))},null,8,["pending-action","is-loading-block","is-rejected-donation-popup-shown","donation-actions-list"])],512))}}),e8=We(XO,[["__scopeId","data-v-67a36863"]]),Cd="Показать все комментарии",t8=2,r8={class:"comment-answers-block-show-all comment-answers-block-show-all--top","data-test":"comment-answers-block-show-all-top"},n8={key:0,class:"comment-answers-block-show-all","data-test":"comment-answers-block-show-all-bottom"},o8=Le({__name:"CommentAnswersBlock",props:{objectId:{type:String,required:!0},objectClass:{type:String,required:!0},hideTerms:{type:Object,required:!0},totalCommentsInList:{type:Number,required:!0},viewMode:{type:String,default:Ze.DIALOGUE},repliedCommentId:{type:String,default:null},commentsList:{type:Array,default:()=>[]},userInfo:{type:Object,default:null},isLoadingBlock:{type:Boolean,default:!1},isShowCommentInputInList:{type:Boolean,default:!0},selectedCommentId:{type:String,default:""},siteName:{type:String,default:jt.SPORTS},editingCommentId:{type:String,default:""}},emits:["removeFromBlackList","selectInContext","votePlus","voteMinus","reply","complain","delete","ban-user","goToAllComments","newComment","editComment","openReplyForm","onOpenActionMenu","setUserFollowing","openEditForm","closeEditForm","analytics"],setup(r,{expose:o,emit:i}){const u=r,c=i,p=fe(null),{needsPopup:d}=cl(),a=(D,x,W)=>{if(x===we.RemoveFromBlacklist){c("removeFromBlackList",D);return}d(x,W)?p.value={commentId:D,action:x,isOwnComment:W}:c("selectInContext",D,x,W)},h=()=>c("goToAllComments"),y=D=>c("openReplyForm",D),g=D=>c("openEditForm",D),b=()=>c("closeEditForm"),v=D=>c("votePlus",D),w=D=>c("voteMinus",D),_=(D,x)=>c("editComment",D,x),T=(D,x)=>c("newComment",D,x),A=ae(()=>u.totalCommentsInList>t8),B=fe();return o({wrapper:B}),(D,x)=>(oe(),ye("div",{ref_key:"wrapper",ref:B,class:"comment-answers-block","data-test":"comment-answers-block"},[xe(q(Yh),{class:"comment-answers-block__header-title"}),Te("div",{class:Xe(["comment-answers-block__content",{"comment-answers-block__content--hidden":r.isLoadingBlock}])},[Te("div",r8,[xe(q(Xi),{class:"comment-answers-block-show-all__button",label:q(Cd),"is-root":"",onClick:h},null,8,["label"])]),xe(q(Qh),{class:"comment-answers-block__list",comments:r.commentsList,"user-info":r.userInfo,"hide-terms":r.hideTerms,"has-more-comments":!1,"view-mode":r.viewMode,"selected-comment-id":r.selectedCommentId,"site-name":r.siteName,"is-show-comment-input-in-list":r.isShowCommentInputInList,"editing-comment-id":r.editingCommentId,"object-class":r.objectClass,onOpenReplyForm:y,onOpenEditForm:g,onCloseEditForm:b,onReply:x[0]||(x[0]=(W,U)=>T(W,U)),onVotePlus:v,onVoteMinus:w,onEditComment:_,onSelectContextAction:a,onSetUserFollowing:x[1]||(x[1]=(W,U)=>
713c("setUserFollowing",W,U)),onOnOpenActionMenu:x[2]||(x[2]=W=>c("onOpenActionMenu")),onAnalytics:x[3]||(x[3]=W=>c("analytics",W))},null,8,["comments","user-info","hide-terms","view-mode","selected-comment-id","site-name","is-show-comment-input-in-list","editing-comment-id","object-class"]),A.value?(oe(),ye("div",n8,[xe(q(Xi),{class:"comment-answers-block-show-all__button",label:q(Cd),"is-root":"",onClick:h},null,8,["label"])])):ke("",!0)],2),xe(q(Kh),{"pending-action":p.value,"onUpdate:pendingAction":x[4]||(x[4]=W=>p.value=W),"is-loading-block":r.isLoadingBlock,"loader-class":"comment-answers-block__preloader",onComplain:x[5]||(x[5]=(W,U)=>c("complain",W,U)),onDelete:x[6]||(x[6]=(W,U)=>c("delete",W,U)),onBanUser:x[7]||(x[7]=(W,U,S)=>c("ban-user",W,U,S))},null,8,["pending-action","is-loading-block"])],512))}}),i8=We(o8,[["__scopeId","data-v-4165a41f"]]),as={[pe.SQUARE]:{slotId:pe.SQUARE,slotRootView:Rt.DEFAULT},[pe.SQUARE_TOP]:{slotId:pe.SQUARE_TOP,slotRootView:Rt.DEFAULT},[pe.COMMENTS_NEWS]:{slotId:pe.COMMENTS_NEWS,slotRootView:Rt.DEFAULT},[pe.COMMENTS_BLOGS]:{slotId:pe.COMMENTS_BLOGS,slotRootView:Rt.DEFAULT}};var So=(r=>(r.POST="POST",r.NEWS="NEWS",r.POLL="POLL",r))(So||{});const a8=Le({__name:"CommentsListAd",props:{isFirstInjection:{type:Boolean,default:!1},device:{type:String,default:Ot.DESKTOP},documentType:{type:String,required:!0}},setup(r){const o=r,i=fe(null),u=fe(!0),c=ae(()=>o.device===Ot.DESKTOP),p=ae(()=>{if(c.value&&[So.POST,So.NEWS,So.POLL].includes(o.documentType)){const g=o.documentType===So.POST?pe.COMMENTS_BLOGS:pe.COMMENTS_NEWS;return{id:g,type:g}}const y=o.isFirstInjection?pe.SQUARE_TOP:pe.SQUARE;return{id:y,type:y}}),d=ae(()=>Object.keys(as).includes(p.value.type)),a=ae(()=>p.value.type===pe.SQUARE_TOP?"square-top-comments-widget":void 0),h=()=>{u.value=!1};return rt(()=>{i.value&&i.value.addEventListener("adfox:stub:loaded",h)}),On(()=>{i.value&&i.value.removeEventListener("adfox:stub:loaded",h)}),(y,g)=>(oe(),ye("div",{ref_key:"rootRef",ref:i,class:Xe(["comment-ads",{"comment-ads--hidden":!u.value}]),"data-test":"comments-list-ad"},[d.value?(oe(),Oe(q(nl),{key:0,"slot-id":q(as)[p.value.type].slotId,"is-lazy":"","slot-root-view":q(as)[p.value.type].slotRootView,"data-testid":a.value},null,8,["slot-id","slot-root-view","data-testid"])):ke("",!0)],2))}}),s8={class:"comments-list"},u8={class:"comments-list__items","data-test":"comments-list-items"},l8={key:0,class:"comments-list__children"},c8={key:0,class:"comments-list__paginator-wrapper"},d8=Le({__name:"CommentsList",props:{comments:{type:Array,required:!0},userInfo:{type:Object,default:null},hideTerms:{type:Object,required:!0},hasMoreComments:{type:Boolean,default:!1},shouldLoadRestComments:{type:Boolean,default:!1},isBrandedPage:{type:Boolean,default:!1},isRoot:{type:Boolean,default:!0},totalCommentsInList:{type:Number,default:0},viewMode:{type:String,default:Ze.DIALOGUE},parentId:{type:String,default:""},siteName:{type:String,default:jt.SPORTS},fetchingReplies:{type:Object,default:()=>({})},selectedCommentId:{type:String,default:""},isShowCommentInputInList:{type:Boolean,default:!0},isAdDisabled:{type:Boolean,default:!1},editingCommentId:{type:String,default:""},isAuthorized:{type:Boolean,default:!1},device:{type:String,default:Ot.DESKTOP},objectClass:{type:String,required:!0},areDonationsEnabled:{type:Boolean,default:!1},replyTargetCommentId:{type:String,default:""},replyDraftText:{type:String,default:""},onReplyFormInput:{type:Function,default:void 0}},emits:["uploadMore","loadRestComments","openReplyForm","openEditForm","closeEditForm","reply","vote","votePlus","voteMinus","editComment","selectContextAction","setUserFollowing","onOpenActionMenu","analytics"],setup(r,{emit:o}){const i=r,u=o,c=fe(!1),p=ae(()=>i.totalCommentsInList-i.comments.length),d=()=>`Показать еще ${p.value} ${Gp(p.value,BA)}`,a=ae(()=>i.isRoot?RA:d()),h=F=>{var ue;return((ue=i.userInfo)==null?void 0:ue.id)===F},y=F=>{if(F)return{author:F.author.nick,link:F.author.url,text:F.text,isInBlacklist:F.isInBlacklist,isBlocked:F.author.blocked,ratingDiff:F.rating.plus-F.rating.minus}},g=F=>F.children&&F.children.data.length>0,b=F=>g(F)?F.children.data:[],v=F=>{var ue;return((ue=F.children)==null?void 0:ue.totalComments)||0},w=F=>v(F)-b(F).length>0,_=F=>{const ue=F.order%2===1;return{callback:()=>{!i.isRoot||!ue||u("analytics",{name:"view",data:{commentType:xt.ROOT,repliesCount:v(F),value:F.order}})},once:!0,threshold:.6}},T=()=>{i.comments.length!==0&&(u("uploadMore",i.parentId),c.value=!0)},A=()=>{c.value=!0,u("loadRestComments")},B=F=>u("uploadMore",F),D=F=>{u("openReplyForm",F)},x=(F,ue)=>{u("reply",F,ue)},W=(F,ue)=>{u("vote",F,ue)},U=F=>{u("votePlus",F)},S=F=>{u("voteMinus",F)},M=(F,ue)=>{u("editComment",F,ue)},I=(F,ue,H)=>{u("selectContextAction",F,ue,H)},R=()=>u("onOpenActionMenu"),C=F=>{u("openEditForm",F)},V=(F,ue)=>{u("setUserFollowing",F,ue)};return He(()=>i.comments,()=>{c.value=!1}),(F,ue)=>{const H=Gy("CommentsList",!0);return oe(),ye("div",s8,[Te("div",u8,[(oe(!0),ye(At,null,$t(r.comments,j=>Wo((oe(),ye("div",{key:j.data.id,class:"comments-list__item","data-test":"comments-list-item"},[xe(q(eO),{id:j.data.id,"is-pinned":j.data.isPinned,"pin-user":j.data.pinUser,"is-owner":h(j.data.author.id),"is-deleted":j.data.isDeleted,user:j.data.author,"user-labels":j.data.userLabels,"site-name":r.siteName,answer:y(j.data.parentComment),rating:j.data.rating,"hide-terms":r.hideTerms,text:j.displayText,"raw-text":j.data.text,"structured-body":j.data.structuredBody,"publish-date":j.data.published.epoch,"publish-date-full":j.data.published.full,"is-in-blacklist":j.data.isInBlacklist,"is-suspected":j.data.isSuspected,"is-fetching-reply":j.isFetchingReply,"is-fetching-rate":j.isFetchingRate,"has-reply-fetching-error":j.hasReplyFetchError,"is-rude-form-content":j.isRudeFormText,"is-rude-answer-content":j.isRudeAnswerContent,"is-fetching-edit-form":j.isFetchingEditForm,"is-in-root":r.isRoot,"is-selected":r.selectedCommentId===j.data.id,"is-open-answer-form":j.showAnswerForm,order:j.order,"children-count":v(j),donation:j.data.donation,"comment-actions":j.data.actions,"rate-authors":j.data.rateAuthors,"document-type":r.objectClass,"is-show-comment-input-in-list":r.isShowCommentInputInList,"is-show-comment-edit-form":r.editingCommentId===j.data.id,"is-authorized":r.isAuthorized,"are-donations-enabled":r.areDonationsEnabled,"is-force-light-theme":!1,"reply-target-comment-id":r.replyTargetCommentId,"reply-draft-text":r.replyDraftText,"on-reply-form-input"
713:r.onReplyFormInput,onReply:x,onOpenReplyForm:D,onOpenEditForm:C,onCloseEditForm:ue[0]||(ue[0]=X=>u("closeEditForm")),onVote:W,onVotePlus:U,onVoteMinus:S,onEditComment:M,onSelectContextAction:I,onSetUserFollowing:V,onOnOpenActionMenu:R,onAnalytics:ue[1]||(ue[1]=X=>u("analytics",X))},null,8,["id","is-pinned","pin-user","is-owner","is-deleted","user","user-labels","site-name","answer","rating","hide-terms","text","raw-text","structured-body","publish-date","publish-date-full","is-in-blacklist","is-suspected","is-fetching-reply","is-fetching-rate","has-reply-fetching-error","is-rude-form-content","is-rude-answer-content","is-fetching-edit-form","is-in-root","is-selected","is-open-answer-form","order","children-count","donation","comment-actions","rate-authors","document-type","is-show-comment-input-in-list","is-show-comment-edit-form","is-authorized","are-donations-enabled","reply-target-comment-id","reply-draft-text","on-reply-form-input"]),g(j)&&r.viewMode===q(Ze).DIALOGUE?(oe(),ye("div",l8,[xe(H,{comments:b(j),"is-authorized":r.isAuthorized,"user-info":r.userInfo,"hide-terms":r.hideTerms,"has-more-comments":w(j),"is-root":!1,"total-comments-in-list":v(j),"parent-id":j.data.id,"fetching-replies":r.fetchingReplies,"selected-comment-id":r.selectedCommentId,"site-name":r.siteName,"is-show-comment-input-in-list":r.isShowCommentInputInList,"editing-comment-id":r.editingCommentId,"view-mode":r.viewMode,"object-class":r.objectClass,"are-donations-enabled":r.areDonationsEnabled,"reply-target-comment-id":r.replyTargetCommentId,"reply-draft-text":r.replyDraftText,"on-reply-form-input":r.onReplyFormInput,onUploadMore:B,onOpenReplyForm:D,onOpenEditForm:C,onCloseEditForm:ue[2]||(ue[2]=X=>u("closeEditForm")),onReply:x,onVote:W,onVotePlus:U,onVoteMinus:S,onEditComment:M,onSelectContextAction:I,onSetUserFollowing:V,onOnOpenActionMenu:R,onAnalytics:ue[3]||(ue[3]=X=>u("analytics",X))},null,8,["comments","is-authorized","user-info","hide-terms","has-more-comments","total-comments-in-list","parent-id","fetching-replies","selected-comment-id","site-name","is-show-comment-input-in-list","editing-comment-id","view-mode","object-class","are-donations-enabled","reply-target-comment-id","reply-draft-text","on-reply-form-input"])])):ke("",!0),j.isInjectAdsAfter&&r.isRoot&&!r.isBrandedPage&&!r.isAdDisabled?(oe(),Oe(q(a8),{key:1,class:"comments-list__ad-item","is-first-injection":j.isFirstAdInjection,device:r.device,"document-type":r.objectClass},null,8,["is-first-injection","device","document-type"])):ke("",!0)])),[[q(hA),_(j)]])),128))]),xe(q(ao),null,{default:$e(()=>[r.hasMoreComments||r.shouldLoadRestComments?(oe(),ye("div",c8,[c.value?(oe(),Oe(q(ua),{key:1,class:Xe(["comments-list__paginator-preloader",{"comments-list__paginator-preloader--fullscreen":r.isRoot}]),"data-test":"comments-list-paginator-loader"},null,8,["class"])):(oe(),ye(At,{key:0},[r.hasMoreComments?(oe(),Oe(q(Xi),{key:0,label:a.value,"is-root":r.isRoot,onClick:T},null,8,["label","is-root"])):r.shouldLoadRestComments&&r.comments.length>0?(oe(),Oe(q(Xi),{key:1,label:q(Kp),"is-root":"",onClick:A},null,8,["label"])):ke("",!0)],64))])):ke("",!0)]),_:1})])}}}),Qh=We(d8,[["__scopeId","data-v-f8593476"]]),f8=[we.CopyText,we.CopyLink];var ya={},ba={};Object.defineProperty(ba,"__esModule",{value:!0});ba.bodyRegExps={xml:/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html4:/&(?:nbsp|iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|Atilde|Auml|Aring|AElig|Ccedil|Egrave|Eacute|Ecirc|Euml|Igrave|Iacute|Icirc|Iuml|ETH|Ntilde|Ograve|Oacute|Ocirc|Otilde|Ouml|times|Oslash|Ugrave|Uacute|Ucirc|Uuml|Yacute|THORN|szlig|agrave|aacute|acirc|atilde|auml|aring|aelig|ccedil|egrave|eacute|ecirc|euml|igrave|iacute|icirc|iuml|eth|ntilde|ograve|oacute|ocirc|otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|yuml|quot|amp|lt|gt|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html5:/&(?:AElig|AMP|Aacute|Acirc|Agrave|Aring|Atilde|Auml|COPY|Ccedil|ETH|Eacute|Ecirc|Egrave|Euml|GT|Iacute|Icirc|Igrave|Iuml|LT|Ntilde|Oacute|Ocirc|Ograve|Oslash|Otilde|Ouml|QUOT|REG|THORN|Uacute|Ucirc|Ugrave|Uuml|Yacute|aacute|acirc|acute|aelig|agrave|amp|aring|atilde|auml|brvbar|ccedil|cedil|cent|copy|curren|deg|divide|eacute|ecirc|egrave|eth|euml|frac12|frac14|frac34|gt|iacute|icirc|iexcl|igrave|iquest|iuml|laquo|lt|macr|micro|middot|nbsp|not|ntilde|oacute|ocirc|ograve|ordf|ordm|oslash|otilde|ouml|para|plusmn|pound|quot|raquo|reg|sect|shy|sup1|sup2|sup3|szlig|thorn|times|uacute|ucirc|ugrave|uml|uuml|yacute|yen|yuml|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g};ba.namedReferences={xml:{entities:{"&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&amp;":"&"},characters:{"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","&":"&amp;"}},html4:{entities:{"&apos;":"'","&nbsp":" ","&nbsp;":" ","&iexcl":"¡","&iexcl;":"¡","&cent":"¢","&cent;":"¢","&pound":"£","&pound;":"£","&curren":"¤","&curren;":"¤","&yen":"¥","&yen;":"¥","&brvbar":"¦","&brvbar;":"¦","&sect":"§","&sect;":"§","&uml":"¨","&uml;":"¨","&copy":"©","&copy;":"©","&ordf":"ª","&ordf;":"ª","&laquo":"«","&laquo;":"«","&not":"¬","&not;":"¬","&shy":"­","&shy;":"­","&reg":"®","&reg;":"®","&macr":"¯","&macr;":"¯","&deg":"°","&deg;":"°","&plusmn":"±","&plusmn;":"±","&sup2":"²","&sup2;":"²","&sup3":"³","&sup3;":"³","&acute":"´","&acute;":"´","&micro":"µ","&micro;":"µ","&para":"¶","&para;":"¶","&middot":"·","&middot;":"·","&cedil":"¸","&cedil;":"¸","&sup1":"¹","&sup1;":"¹","&ordm":"º","&ordm;":"º","&raquo":"»","&raquo;":"»","&frac14":"¼","&frac14;":"¼","&frac12":"½","&frac12;":"½","&frac34":"¾","&frac34;":"¾","&iquest":"¿","&iquest;":"¿","&Agrave":"À","&Agrave;":"À","&Aacute":"Á","&Aacute;":"Á","&Acirc":"Â","&Acirc;":"Â","&Atilde":"Ã","&Atilde;":"Ã","&Auml":"Ä","&Auml;":"Ä","&Aring":"Å","&Aring;":"Å","&AElig":"Æ","&AElig;":"Æ","&Ccedil":"Ç","&Ccedil;":"Ç","&Egrave":"È","&Egrave;":"È","&Eacute":"É","&Eacute;":"É","&Ecirc":"Ê","&Ecirc;":"Ê","&Euml":"Ë","&Euml;":"Ë","&Igrave":"Ì","&Igrave;":"Ì","&Iacute":"Í","&Iacute;":"Í","&Icirc":"Î","&Icirc;":"Î","&Iuml":"Ï","&Iuml;":"Ï","&ETH":"Ð","&ETH;":"Ð","&Ntilde":"Ñ","&Ntilde;":"Ñ","&Ograve":"Ò","&Ograve;":"Ò","&Oacute":"Ó","&Oacute;":"Ó","&Ocirc":"Ô","&Ocirc;":"Ô","&Otilde":"Õ","&Otilde;":"Õ","&Ouml":"Ö","&Ouml;":"Ö","&times":"×","&times;":"×","&Oslash":"Ø","&Oslash;":"Ø","&Ugrave":"Ù","&Ugrave;":"Ù","&Uacute":"Ú","&Uacute;":"Ú","&Ucirc":"Û","&Ucirc;":"Û","&Uuml":"Ü","&Uuml;":"Ü","&Yacute":"Ý","&Yacute;":"Ý","&THORN":"Þ","&THORN;":"Þ","&szlig":"ß","&szlig;":"ß","&agrave":"à","&agrave;":"à","&aacute":"á","&aacute;":"á","&acirc":"â","&acirc;":"â","&atilde":"ã","&atilde;":"ã","&auml":"ä","&auml;":"ä","&aring":"å","&aring;":"å","&aelig":"æ","&aelig;":"æ","&ccedil":"ç","&ccedil;":"ç","&egrave":"è","&egrave;":"è","&eacute":"é","&eacute;":"é","&ecirc":"ê","&ecirc;":"ê","&euml":"ë","&euml;":"ë","&igrave":"ì","&igrave;":"ì","&iacute":"í","&iacute;":"í","&icirc":"î","&icirc;":"î","&iuml":"ï","&iuml;":"ï","&eth":"ð","&eth;":"ð","&ntilde":"ñ","&ntilde;":"ñ","&ograve":"ò","&ograve;":"ò","&oacute":"ó","&oacute;":"ó","&ocirc":"ô","&ocirc;":"ô","&otilde":"õ","&otilde;":"õ","&ouml":"ö","&ouml;":"ö","&divide":"÷","&divide;":"÷","&oslash":"ø","&oslash;":"ø","&ugrave":"ù","&ugrave;":"ù","&uacute":"ú","&uacute;":"ú","&ucirc":"û","&ucirc;":"û","&uuml":"ü","&uuml;":"ü","&yacute":"ý","&yacute;":"ý","&thorn":"þ","&thorn;":"þ","&yuml":"ÿ","&yuml;":"ÿ","&quot":'"',"&quot;":'"',"&amp":"&","&amp;":"&","&lt":"<","&lt;":"<","&gt":">","&gt;":">","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&circ;":"ˆ","&tilde;":"˜","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&zwnj;":"‌","&zwj;":"‍","&lrm;":"‎","&rlm;":"‏","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&permil;":"‰","&lsaquo;":"‹","&rsaquo;":"›","&euro;":"€","&fnof;":"ƒ","&Alpha;":"Α","&Beta;":"Β","&Gamma;":"Γ","&Delta;":"Δ","&Epsilon;":"Ε","&Zeta;
713":"Ζ","&Eta;":"Η","&Theta;":"Θ","&Iota;":"Ι","&Kappa;":"Κ","&Lambda;":"Λ","&Mu;":"Μ","&Nu;":"Ν","&Xi;":"Ξ","&Omicron;":"Ο","&Pi;":"Π","&Rho;":"Ρ","&Sigma;":"Σ","&Tau;":"Τ","&Upsilon;":"Υ","&Phi;":"Φ","&Chi;":"Χ","&Psi;":"Ψ","&Omega;":"Ω","&alpha;":"α","&beta;":"β","&gamma;":"γ","&delta;":"δ","&epsilon;":"ε","&zeta;":"ζ","&eta;":"η","&theta;":"θ","&iota;":"ι","&kappa;":"κ","&lambda;":"λ","&mu;":"μ","&nu;":"ν","&xi;":"ξ","&omicron;":"ο","&pi;":"π","&rho;":"ρ","&sigmaf;":"ς","&sigma;":"σ","&tau;":"τ","&upsilon;":"υ","&phi;":"φ","&chi;":"χ","&psi;":"ψ","&omega;":"ω","&thetasym;":"ϑ","&upsih;":"ϒ","&piv;":"ϖ","&bull;":"•","&hellip;":"…","&prime;":"′","&Prime;":"″","&oline;":"‾","&frasl;":"⁄","&weierp;":"℘","&image;":"ℑ","&real;":"ℜ","&trade;":"™","&alefsym;":"ℵ","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&forall;":"∀","&part;":"∂","&exist;":"∃","&empty;":"∅","&nabla;":"∇","&isin;":"∈","&notin;":"∉","&ni;":"∋","&prod;":"∏","&sum;":"∑","&minus;":"−","&lowast;":"∗","&radic;":"√","&prop;":"∝","&infin;":"∞","&ang;":"∠","&and;":"∧","&or;":"∨","&cap;":"∩","&cup;":"∪","&int;":"∫","&there4;":"∴","&sim;":"∼","&cong;":"≅","&asymp;":"≈","&ne;":"≠","&equiv;":"≡","&le;":"≤","&ge;":"≥","&sub;":"⊂","&sup;":"⊃","&nsub;":"⊄","&sube;":"⊆","&supe;":"⊇","&oplus;":"⊕","&otimes;":"⊗","&perp;":"⊥","&sdot;":"⋅","&lceil;":"⌈","&rceil;":"⌉","&lfloor;":"⌊","&rfloor;":"⌋","&lang;":"〈","&rang;":"〉","&loz;":"◊","&spades;":"♠","&clubs;":"♣","&hearts;":"♥","&diams;":"♦"},characters:{"'":"&apos;"," ":"&nbsp;","¡":"&iexcl;","¢":"&cent;","£":"&pound;","¤":"&curren;","¥":"&yen;","¦":"&brvbar;","§":"&sect;","¨":"&uml;","©":"&copy;",ª:"&ordf;","«":"&laquo;","¬":"&not;","­":"&shy;","®":"&reg;","¯":"&macr;","°":"&deg;","±":"&plusmn;","²":"&sup2;","³":"&sup3;","´":"&acute;",µ:"&micro;","¶":"&para;","·":"&middot;","¸":"&cedil;","¹":"&sup1;",º:"&ordm;","»":"&raquo;","¼":"&frac14;","½":"&frac12;","¾":"&frac34;","¿":"&iquest;",À:"&Agrave;",Á:"&Aacute;",Â:"&Acirc;",Ã:"&Atilde;",Ä:"&Auml;",Å:"&Aring;",Æ:"&AElig;",Ç:"&Ccedil;",È:"&Egrave;",É:"&Eacute;",Ê:"&Ecirc;",Ë:"&Euml;",Ì:"&Igrave;",Í:"&Iacute;",Î:"&Icirc;",Ï:"&Iuml;",Ð:"&ETH;",Ñ:"&Ntilde;",Ò:"&Ograve;",Ó:"&Oacute;",Ô:"&Ocirc;",Õ:"&Otilde;",Ö:"&Ouml;","×":"&times;",Ø:"&Oslash;",Ù:"&Ugrave;",Ú:"&Uacute;",Û:"&Ucirc;",Ü:"&Uuml;",Ý:"&Yacute;",Þ:"&THORN;",ß:"&szlig;",à:"&agrave;",á:"&aacute;",â:"&acirc;",ã:"&atilde;",ä:"&auml;",å:"&aring;",æ:"&aelig;",ç:"&ccedil;",è:"&egrave;",é:"&eacute;",ê:"&ecirc;",ë:"&euml;",ì:"&igrave;",í:"&iacute;",î:"&icirc;",ï:"&iuml;",ð:"&eth;",ñ:"&ntilde;",ò:"&ograve;",ó:"&oacute;",ô:"&ocirc;",õ:"&otilde;",ö:"&ouml;","÷":"&divide;",ø:"&oslash;",ù:"&ugrave;",ú:"&uacute;",û:"&ucirc;",ü:"&uuml;",ý:"&yacute;",þ:"&thorn;",ÿ:"&yuml;",'"':"&quot;","&":"&amp;","<":"&lt;",">":"&gt;",Œ:"&OElig;",œ:"&oelig;",Š:"&Scaron;",š:"&scaron;",Ÿ:"&Yuml;","ˆ":"&circ;","˜":"&tilde;"," ":"&ensp;"," ":"&emsp;"," ":"&thinsp;","‌":"&zwnj;","‍":"&zwj;","‎":"&lrm;","‏":"&rlm;","–":"&ndash;","—":"&mdash;","‘":"&lsquo;","’":"&rsquo;","‚":"&sbquo;","“":"&ldquo;","”":"&rdquo;","„":"&bdquo;","†":"&dagger;","‡":"&Dagger;","‰":"&permil;","‹":"&lsaquo;","›":"&rsaquo;","€":"&euro;",ƒ:"&fnof;",Α:"&Alpha;",Β:"&Beta;",Γ:"&Gamma;",Δ:"&Delta;",Ε:"&Epsilon;",Ζ:"&Zeta;",Η:"&Eta;",Θ:"&Theta;",Ι:"&Iota;",Κ:"&Kappa;",Λ:"&Lambda;",Μ:"&Mu;",Ν:"&Nu;",Ξ:"&Xi;",Ο:"&Omicron;",Π:"&Pi;",Ρ:"&Rho;",Σ:"&Sigma;",Τ:"&Tau;",Υ:"&Upsilon;",Φ:"&Phi;",Χ:"&Chi;",Ψ:"&Psi;",Ω:"&Omega;",α:"&alpha;",β:"&beta;",γ:"&gamma;",δ:"&delta;",ε:"&epsilon;",ζ:"&zeta;",η:"&eta;",θ:"&theta;",ι:"&iota;",κ:"&kappa;",λ:"&lambda;",μ:"&mu;",ν:"&nu;",ξ:"&xi;",ο:"&omicron;",π:"&pi;",ρ:"&rho;",ς:"&sigmaf;",σ:"&sigma;",τ:"&tau;",υ:"&upsilon;",φ:"&phi;",χ:"&chi;",ψ:"&psi;",ω:"&omega;",ϑ:"&thetasym;",ϒ:"&upsih;",ϖ:"&piv;","•":"&bull;","…":"&hellip;","′":"&prime;","″":"&Prime;","‾":"&oline;","⁄":"&frasl;","℘":"&weierp;",ℑ:"&image;",ℜ:"&real;","™":"&trade;",ℵ
vendor: 7,065 bytes, line 713
713:"&alefsym;","←":"&larr;","↑":"&uarr;","→":"&rarr;","↓":"&darr;","↔":"&harr;","↵":"&crarr;","⇐":"&lArr;","⇑":"&uArr;","⇒":"&rArr;","⇓":"&dArr;","⇔":"&hArr;","∀":"&forall;","∂":"&part;","∃":"&exist;","∅":"&empty;","∇":"&nabla;","∈":"&isin;","∉":"&notin;","∋":"&ni;","∏":"&prod;","∑":"&sum;","−":"&minus;","∗":"&lowast;","√":"&radic;","∝":"&prop;","∞":"&infin;","∠":"&ang;","∧":"&and;","∨":"&or;","∩":"&cap;","∪":"&cup;","∫":"&int;","∴":"&there4;","∼":"&sim;","≅":"&cong;","≈":"&asymp;","≠":"&ne;","≡":"&equiv;","≤":"&le;","≥":"&ge;","⊂":"&sub;","⊃":"&sup;","⊄":"&nsub;","⊆":"&sube;","⊇":"&supe;","⊕":"&oplus;","⊗":"&otimes;","⊥":"&perp;","⋅":"&sdot;","⌈":"&lceil;","⌉":"&rceil;","⌊":"&lfloor;","⌋":"&rfloor;","〈":"&lang;","〉":"&rang;","◊":"&loz;","♠":"&spades;","♣":"&clubs;","♥":"&hearts;","♦":"&diams;"}},html5:{entities:{"&AElig":"Æ","&AElig;":"Æ","&AMP":"&","&AMP;":"&","&Aacute":"Á","&Aacute;":"Á","&Abreve;":"Ă","&Acirc":"Â","&Acirc;":"Â","&Acy;":"А","&Afr;":"𝔄","&Agrave":"À","&Agrave;":"À","&Alpha;":"Α","&Amacr;":"Ā","&And;":"⩓","&Aogon;":"Ą","&Aopf;":"𝔸","&ApplyFunction;":"⁡","&Aring":"Å","&Aring;":"Å","&Ascr;":"𝒜","&Assign;":"≔","&Atilde":"Ã","&Atilde;":"Ã","&Auml":"Ä","&Auml;":"Ä","&Backslash;":"∖","&Barv;":"⫧","&Barwed;":"⌆","&Bcy;":"Б","&Because;":"∵","&Bernoullis;":"ℬ","&Beta;":"Β","&Bfr;":"𝔅","&Bopf;":"𝔹","&Breve;":"˘","&Bscr;":"ℬ","&Bumpeq;":"≎","&CHcy;":"Ч","&COPY":"©","&COPY;":"©","&Cacute;":"Ć","&Cap;":"⋒","&CapitalDifferentialD;":"ⅅ","&Cayleys;":"ℭ","&Ccaron;":"Č","&Ccedil":"Ç","&Ccedil;":"Ç","&Ccirc;":"Ĉ","&Cconint;":"∰","&Cdot;":"Ċ","&Cedilla;":"¸","&CenterDot;":"·","&Cfr;":"ℭ","&Chi;":"Χ","&CircleDot;":"⊙","&CircleMinus;":"⊖","&CirclePlus;":"⊕","&CircleTimes;":"⊗","&ClockwiseContourIntegral;":"∲","&CloseCurlyDoubleQuote;":"”","&CloseCurlyQuote;":"’","&Colon;":"∷","&Colone;":"⩴","&Congruent;":"≡","&Conint;":"∯","&ContourIntegral;":"∮","&Copf;":"ℂ","&Coproduct;":"∐","&CounterClockwiseContourIntegral;":"∳","&Cross;":"⨯","&Cscr;":"𝒞","&Cup;":"⋓","&CupCap;":"≍","&DD;":"ⅅ","&DDotrahd;":"⤑","&DJcy;":"Ђ","&DScy;":"Ѕ","&DZcy;":"Џ","&Dagger;":"‡","&Darr;":"↡","&Dashv;":"⫤","&Dcaron;":"Ď","&Dcy;":"Д","&Del;":"∇","&Delta;":"Δ","&Dfr;":"𝔇","&DiacriticalAcute;":"´","&DiacriticalDot;":"˙","&DiacriticalDoubleAcute;":"˝","&DiacriticalGrave;":"`","&DiacriticalTilde;":"˜","&Diamond;":"⋄","&DifferentialD;":"ⅆ","&Dopf;":"𝔻","&Dot;":"¨","&DotDot;":"⃜","&DotEqual;":"≐","&DoubleContourIntegral;":"∯","&DoubleDot;":"¨","&DoubleDownArrow;":"⇓","&DoubleLeftArrow;":"⇐","&DoubleLeftRightArrow;":"⇔","&DoubleLeftTee;":"⫤","&DoubleLongLeftArrow;":"⟸","&DoubleLongLeftRightArrow;":"⟺","&DoubleLongRightArrow;":"⟹","&DoubleRightArrow;":"⇒","&DoubleRightTee;":"⊨","&DoubleUpArrow;":"⇑","&DoubleUpDownArrow;":"⇕","&DoubleVerticalBar;":"∥","&DownArrow;":"↓","&DownArrowBar;":"⤓","&DownArrowUpArrow;":"⇵","&DownBreve;":"̑","&DownLeftRightVector;":"⥐","&DownLeftTeeVector;":"⥞","&DownLeftVector;":"↽","&DownLeftVectorBar;":"⥖","&DownRightTeeVector;":"⥟","&DownRightVector;":"⇁","&DownRightVectorBar;":"⥗","&DownTee;":"⊤","&DownTeeArrow;":"↧","&Downarrow;":"⇓","&Dscr;":"𝒟","&Dstrok;":"Đ","&ENG;":"Ŋ","&ETH":"Ð","&ETH;":"Ð","&Eacute":"É","&Eacute;":"É","&Ecaron;":"Ě","&Ecirc":"Ê","&Ecirc;":"Ê","&Ecy;":"Э","&Edot;":"Ė","&Efr;":"𝔈","&Egrave":"È","&Egrave;":"È","&Element;":"∈","&Emacr;":"Ē","&EmptySmallSquare;":"◻","&EmptyVerySmallSquare;":"▫","&Eogon;":"Ę","&Eopf;":"𝔼","&Epsilon;":"Ε","&Equal;":"⩵","&EqualTilde;":"≂","&Equilibrium;":"⇌","&Escr;":"ℰ","&Esim;":"⩳","&Eta;":"Η","&Euml":"Ë","&Euml;":"Ë","&Exists;":"∃","&ExponentialE;":"ⅇ","&Fcy;":"Ф","&Ffr;":"𝔉","&FilledSmallSquare;":"◼","&FilledVerySmallSquare;":"▪","&Fopf;":"𝔽","&ForAll;":"∀","&Fouriertrf;":"ℱ","&Fscr;":"ℱ","&GJcy;":"Ѓ","&GT":">","&GT;":">","&Gamma;":"Γ","&Gammad;":"Ϝ","&Gbreve;":"Ğ","&Gcedil;":"Ģ","&Gcirc;":"Ĝ","&Gcy;":"Г","&Gdot;":"Ġ","&Gfr;":"𝔊","&Gg;":"⋙","&Gopf;":"𝔾","&GreaterEqual;":"≥","&GreaterEqualLess;":"⋛","&GreaterFullEqual;":"≧","&GreaterGreater;":"⪢","&GreaterLess;":"≷","&GreaterSlantEqual;":"⩾","&GreaterTilde;":"≳","&Gscr;":"𝒢","&Gt;":"≫","&HARDcy;":"Ъ","&Hacek;":"ˇ","&Hat;":"^","&Hcirc;":"Ĥ","&Hfr;":"ℌ","&HilbertSpace;":"ℋ","&Hopf;":"ℍ","&HorizontalLine;":"─","&Hscr;":"ℋ","&Hstrok;":"Ħ","&HumpDownHump;":"≎","&HumpEqual;":"≏","&IEcy;":"Е","&IJlig;":"IJ","&IOcy;":"Ё","&Iacute":"Í","&Iacute;":"Í","&Icirc":"Î","&Icirc;":"Î","&Icy;":"И","&Idot;":"İ","&Ifr;":"ℑ","&Igrave":"Ì","&Igrave;":"Ì","&Im;":"ℑ","&Imacr;":"Ī","&ImaginaryI;":"ⅈ","&Implies;":"⇒","&Int;":"∬","&Integral;":"∫","&Intersection;":"⋂","&InvisibleComma;":"⁣","&InvisibleTimes;":"⁢","&Iogon;":"Į","&Iopf;":"𝕀","&Iota;":"Ι","&Iscr;":"ℐ","&Itilde;":"Ĩ","&Iukcy;":"І","&Iuml":"Ï","&Iuml;":"Ï","&Jcirc;":"Ĵ","&Jcy;":"Й","&Jfr;":"𝔍","&Jopf;":"𝕁","&Jscr;":"𝒥","&Jsercy;":"Ј","&Jukcy;":"Є","&KHcy;":"Х","&KJcy;":"Ќ","&Kappa;":"Κ","&Kcedil;":"Ķ","&Kcy;":"К","&Kfr;":"𝔎","&Kopf;":"𝕂","&Kscr;":"𝒦","&LJcy;":"Љ","&LT":"<","&LT;":"<","&Lacute;":"Ĺ","&Lambda;":"Λ","&Lang;":"⟪","&Laplacetrf;":"ℒ","&Larr;":"↞","&Lcaron;":"Ľ","&Lcedil;":"Ļ","&Lcy;":"Л","&LeftAngleBracket;":"⟨","&LeftArrow;":"←","&LeftArrowBar;":"⇤","&LeftArrowRightArrow;":"⇆","&LeftCeiling;":"⌈","&LeftDoubleBracket;":"⟦","&LeftDownTeeVector;":"⥡","&LeftDownVector;":"⇃","&LeftDownVectorBar;":"⥙","&LeftFloor;":"⌊","&LeftRightArrow;":"↔","&LeftRightVector;":"⥎","&LeftTee;":"⊣","&LeftTeeArrow;":"↤","&LeftTeeVector;":"⥚","&LeftTriangle;":"⊲","&LeftTriangleBar;":"⧏","&LeftTriangleEqual;":"⊴","&LeftUpDownVector;":"⥑","&LeftUpTeeVector;":"⥠","&LeftUpVector;":"↿","&LeftUpVectorBar;":"⥘","&LeftVector;":"↼","&LeftVectorBar;":"⥒","&Leftarrow;":"⇐","&Leftrightarrow;":"⇔","&LessEqualGreater;":"⋚","&LessFullEqual;":"≦","&LessGreater;":"≶","&LessLess;":"⪡","&LessSlantEqual;":"⩽","&LessTilde;":"≲","&Lfr;":"𝔏","&Ll;":"⋘","&Lleftarrow;":"⇚","&Lmidot;":"Ŀ","&LongLeftArrow;":"⟵","&LongLeftRightArrow;":"⟷","&LongRightArrow;":"⟶","&Longleftarrow;":"⟸","&Longleftrightarrow;":"⟺","&Longrightarrow;":"⟹","&Lopf;":"𝕃","&LowerLeftArrow;":"↙","&LowerRightArrow;":"↘","&Lscr;":"ℒ","&Lsh;":"↰","&Lstrok;":"Ł","&Lt;":"≪","&Map;":"⤅","&Mcy;":"М","&MediumSpace;":" ","&Mellintrf;":"ℳ","&Mfr;":"𝔐","&MinusPlus;":"∓","&Mopf;":"𝕄","&Mscr;":"ℳ","&Mu;":"Μ","&NJcy;":"Њ","&Nacute;":"Ń","&Ncaron;":"Ň","&Ncedil;":"Ņ","&Ncy;":"Н","&NegativeMediumSpace;":"​","&NegativeThickSpace;":"​","&NegativeThinSpace;":"​","&NegativeVeryThinSpace;":"​","&NestedGreaterGreater;":"≫","&NestedLessLess;":"≪","&NewLine;":
713`
714`,"&Nfr;":"𝔑","&NoBreak;":"⁠","&NonBreakingSpace;":" ","&Nopf;":"ℕ","&Not;":"⫬","&NotCongruent;":"≢","&NotCupCap;":"≭","&NotDoubleVerticalBar;":"∦","&NotElement;":"∉","&NotEqual;":"≠","&NotEqualTilde;":"≂̸","&NotExists;":"∄","&NotGreater;":"≯","&NotGreaterEqual;":"≱","&NotGreaterFullEqual;":"≧̸","&NotGreaterGreater;":"≫̸","&NotGreaterLess;":"≹","&NotGreaterSlantEqual;":"⩾̸","&NotGreaterTilde;":"≵","&NotHumpDownHump;":"≎̸","&NotHumpEqual;":"≏̸","&NotLeftTriangle;":"⋪","&NotLeftTriangleBar;":"⧏̸","&NotLeftTriangleEqual;":"⋬","&NotLess;":"≮","&NotLessEqual;":"≰","&NotLessGreater;":"≸","&NotLessLess;":"≪̸","&NotLessSlantEqual;":"⩽̸","&NotLessTilde;":"≴","&NotNestedGreaterGreater;":"⪢̸","&NotNestedLessLess;":"⪡̸","&NotPrecedes;":"⊀","&NotPrecedesEqual;":"⪯̸","&NotPrecedesSlantEqual;":"⋠","&NotReverseElement;":"∌","&NotRightTriangle;":"⋫","&NotRightTriangleBar;":"⧐̸","&NotRightTriangleEqual;":"⋭","&NotSquareSubset;":"⊏̸","&NotSquareSubsetEqual;":"⋢","&NotSquareSuperset;":"⊐̸","&NotSquareSupersetEqual;":"⋣","&NotSubset;":"⊂⃒","&NotSubsetEqual;":"⊈","&NotSucceeds;":"⊁","&NotSucceedsEqual;":"⪰̸","&NotSucceedsSlantEqual;":"⋡","&NotSucceedsTilde;":"≿̸","&NotSuperset;":"⊃⃒","&NotSupersetEqual;":"⊉","&NotTilde;":"≁","&NotTildeEqual;":"≄","&NotTildeFullEqual;":"≇","&NotTildeTilde;":"≉","&NotVerticalBar;":"∤","&Nscr;":"𝒩","&Ntilde":"Ñ","&Ntilde;":"Ñ","&Nu;":"Ν","&OElig;":"Œ","&Oacute":"Ó","&Oacute;":"Ó","&Ocirc":"Ô","&Ocirc;":"Ô","&Ocy;":"О","&Odblac;":"Ő","&Ofr;":"𝔒","&Ograve":"Ò","&Ograve;":"Ò","&Omacr;":"Ō","&Omega;":"Ω","&Omicron;":"Ο","&Oopf;":"𝕆","&OpenCurlyDoubleQuote;":"“","&OpenCurlyQuote;":"‘","&Or;":"⩔","&Oscr;":"𝒪","&Oslash":"Ø","&Oslash;":"Ø","&Otilde":"Õ","&Otilde;":"Õ","&Otimes;":"⨷","&Ouml":"Ö","&Ouml;":"Ö","&OverBar;":"‾","&OverBrace;":"⏞","&OverBracket;":"⎴","&OverParenthesis;":"⏜","&PartialD;":"∂","&Pcy;":"П","&Pfr;":"𝔓","&Phi;":"Φ","&Pi;":"Π","&PlusMinus;":"±","&Poincareplane;":"ℌ","&Popf;":"ℙ","&Pr;":"⪻","&Precedes;":"≺","&PrecedesEqual;":"⪯","&PrecedesSlantEqual;":"≼","&PrecedesTilde;":"≾","&Prime;":"″","&Product;":"∏","&Proportion;":"∷","&Proportional;":"∝","&Pscr;":"𝒫","&Psi;":"Ψ","&QUOT":'"',"&QUOT;":'"',"&Qfr;":"𝔔","&Qopf;":"ℚ","&Qscr;":"𝒬","&RBarr;":"⤐","&REG":"®","&REG;":"®","&Racute;":"Ŕ","&Rang;":"⟫","&Rarr;":"↠","&Rarrtl;":"⤖","&Rcaron;":"Ř","&Rcedil;":"Ŗ","&Rcy;":"Р","&Re;":"ℜ","&ReverseElement;":"∋","&ReverseEquilibrium;":"⇋","&ReverseUpEquilibrium;":"⥯","&Rfr;":"ℜ","&Rho;":"Ρ","&RightAngleBracket;":"⟩","&RightArrow;":"→","&RightArrowBar;":"⇥","&RightArrowLeftArrow;":"⇄","&RightCeiling;":"⌉","&RightDoubleBracket;":"⟧","&RightDownTeeVector;":"⥝","&RightDownVector;":"⇂","&RightDownVectorBar;":"⥕","&RightFloor;":"⌋","&RightTee;":"⊢","&RightTeeArrow;":"↦","&RightTeeVector;":"⥛","&RightTriangle;":"⊳","&RightTriangleBar;":"⧐","&RightTriangleEqual;":"⊵","&RightUpDownVector;":"⥏","&RightUpTeeVector;":"⥜","&RightUpVector;":"↾","&RightUpVectorBar;":"⥔","&RightVector;":"⇀","&RightVectorBar;":"⥓","&Rightarrow;":"⇒","&Ropf;":"ℝ","&RoundImplies;":"⥰","&Rrightarrow;":"⇛","&Rscr;":"ℛ","&Rsh;":"↱","&RuleDelayed;":"⧴","&SHCHcy;":"Щ","&SHcy;":"Ш","&SOFTcy;":"Ь","&Sacute;":"Ś","&Sc;":"⪼","&Scaron;":"Š","&Scedil;":"Ş","&Scirc;":"Ŝ","&Scy;":"С","&Sfr;":"𝔖","&ShortDownArrow;":"↓","&ShortLeftArrow;":"←","&ShortRightArrow;":"→","&ShortUpArrow;":"↑","&Sigma;":"Σ","&SmallCircle;":"∘","&Sopf;":"𝕊","&Sqrt;":"√","&Square;":"□","&SquareIntersection;":"⊓","&SquareSubset;":"⊏","&SquareSubsetEqual;":"⊑","&SquareSuperset;":"⊐","&SquareSupersetEqual;":"⊒","&SquareUnion;":"⊔","&Sscr;":"𝒮","&Star;":"⋆","&Sub;":"⋐","&Subset;":"⋐","&SubsetEqual;":"⊆","&Succeeds;":"≻","&SucceedsEqual;":"⪰","&SucceedsSlantEqual;":"≽","&SucceedsTilde;":"≿","&SuchThat;":"∋","&Sum;":"∑","&Sup;":"⋑","&Superset;":"⊃","&SupersetEqual;":"⊇","&Supset;":"⋑","&THORN":"Þ","&THORN;":"Þ","&TRADE;":"™","&TSHcy;":"Ћ","&TScy;":"Ц","&Tab;":"	
vendor: 28,324 bytes, line 714
714","&Tau;":"Τ","&Tcaron;":"Ť","&Tcedil;":"Ţ","&Tcy;":"Т","&Tfr;":"𝔗","&Therefore;":"∴","&Theta;":"Θ","&ThickSpace;":"  ","&ThinSpace;":" ","&Tilde;":"∼","&TildeEqual;":"≃","&TildeFullEqual;":"≅","&TildeTilde;":"≈","&Topf;":"𝕋","&TripleDot;":"⃛","&Tscr;":"𝒯","&Tstrok;":"Ŧ","&Uacute":"Ú","&Uacute;":"Ú","&Uarr;":"↟","&Uarrocir;":"⥉","&Ubrcy;":"Ў","&Ubreve;":"Ŭ","&Ucirc":"Û","&Ucirc;":"Û","&Ucy;":"У","&Udblac;":"Ű","&Ufr;":"𝔘","&Ugrave":"Ù","&Ugrave;":"Ù","&Umacr;":"Ū","&UnderBar;":"_","&UnderBrace;":"⏟","&UnderBracket;":"⎵","&UnderParenthesis;":"⏝","&Union;":"⋃","&UnionPlus;":"⊎","&Uogon;":"Ų","&Uopf;":"𝕌","&UpArrow;":"↑","&UpArrowBar;":"⤒","&UpArrowDownArrow;":"⇅","&UpDownArrow;":"↕","&UpEquilibrium;":"⥮","&UpTee;":"⊥","&UpTeeArrow;":"↥","&Uparrow;":"⇑","&Updownarrow;":"⇕","&UpperLeftArrow;":"↖","&UpperRightArrow;":"↗","&Upsi;":"ϒ","&Upsilon;":"Υ","&Uring;":"Ů","&Uscr;":"𝒰","&Utilde;":"Ũ","&Uuml":"Ü","&Uuml;":"Ü","&VDash;":"⊫","&Vbar;":"⫫","&Vcy;":"В","&Vdash;":"⊩","&Vdashl;":"⫦","&Vee;":"⋁","&Verbar;":"‖","&Vert;":"‖","&VerticalBar;":"∣","&VerticalLine;":"|","&VerticalSeparator;":"❘","&VerticalTilde;":"≀","&VeryThinSpace;":" ","&Vfr;":"𝔙","&Vopf;":"𝕍","&Vscr;":"𝒱","&Vvdash;":"⊪","&Wcirc;":"Ŵ","&Wedge;":"⋀","&Wfr;":"𝔚","&Wopf;":"𝕎","&Wscr;":"𝒲","&Xfr;":"𝔛","&Xi;":"Ξ","&Xopf;":"𝕏","&Xscr;":"𝒳","&YAcy;":"Я","&YIcy;":"Ї","&YUcy;":"Ю","&Yacute":"Ý","&Yacute;":"Ý","&Ycirc;":"Ŷ","&Ycy;":"Ы","&Yfr;":"𝔜","&Yopf;":"𝕐","&Yscr;":"𝒴","&Yuml;":"Ÿ","&ZHcy;":"Ж","&Zacute;":"Ź","&Zcaron;":"Ž","&Zcy;":"З","&Zdot;":"Ż","&ZeroWidthSpace;":"​","&Zeta;":"Ζ","&Zfr;":"ℨ","&Zopf;":"ℤ","&Zscr;":"𝒵","&aacute":"á","&aacute;":"á","&abreve;":"ă","&ac;":"∾","&acE;":"∾̳","&acd;":"∿","&acirc":"â","&acirc;":"â","&acute":"´","&acute;":"´","&acy;":"а","&aelig":"æ","&aelig;":"æ","&af;":"⁡","&afr;":"𝔞","&agrave":"à","&agrave;":"à","&alefsym;":"ℵ","&aleph;":"ℵ","&alpha;":"α","&amacr;":"ā","&amalg;":"⨿","&amp":"&","&amp;":"&","&and;":"∧","&andand;":"⩕","&andd;":"⩜","&andslope;":"⩘","&andv;":"⩚","&ang;":"∠","&ange;":"⦤","&angle;":"∠","&angmsd;":"∡","&angmsdaa;":"⦨","&angmsdab;":"⦩","&angmsdac;":"⦪","&angmsdad;":"⦫","&angmsdae;":"⦬","&angmsdaf;":"⦭","&angmsdag;":"⦮","&angmsdah;":"⦯","&angrt;":"∟","&angrtvb;":"⊾","&angrtvbd;":"⦝","&angsph;":"∢","&angst;":"Å","&angzarr;":"⍼","&aogon;":"ą","&aopf;":"𝕒","&ap;":"≈","&apE;":"⩰","&apacir;":"⩯","&ape;":"≊","&apid;":"≋","&apos;":"'","&approx;":"≈","&approxeq;":"≊","&aring":"å","&aring;":"å","&ascr;":"𝒶","&ast;":"*","&asymp;":"≈","&asympeq;":"≍","&atilde":"ã","&atilde;":"ã","&auml":"ä","&auml;":"ä","&awconint;":"∳","&awint;":"⨑","&bNot;":"⫭","&backcong;":"≌","&backepsilon;":"϶","&backprime;":"‵","&backsim;":"∽","&backsimeq;":"⋍","&barvee;":"⊽","&barwed;":"⌅","&barwedge;":"⌅","&bbrk;":"⎵","&bbrktbrk;":"⎶","&bcong;":"≌","&bcy;":"б","&bdquo;":"„","&becaus;":"∵","&because;":"∵","&bemptyv;":"⦰","&bepsi;":"϶","&bernou;":"ℬ","&beta;":"β","&beth;":"ℶ","&between;":"≬","&bfr;":"𝔟","&bigcap;":"⋂","&bigcirc;":"◯","&bigcup;":"⋃","&bigodot;":"⨀","&bigoplus;":"⨁","&bigotimes;":"⨂","&bigsqcup;":"⨆","&bigstar;":"★","&bigtriangledown;":"▽","&bigtriangleup;":"△","&biguplus;":"⨄","&bigvee;":"⋁","&bigwedge;":"⋀","&bkarow;":"⤍","&blacklozenge;":"⧫","&blacksquare;":"▪","&blacktriangle;":"▴","&blacktriangledown;":"▾","&blacktriangleleft;":"◂","&blacktriangleright;":"▸","&blank;":"␣","&blk12;":"▒","&blk14;":"░","&blk34;":"▓","&block;":"█","&bne;":"=⃥","&bnequiv;":"≡⃥","&bnot;":"⌐","&bopf;":"𝕓","&bot;":"⊥","&bottom;":"⊥","&bowtie;":"⋈","&boxDL;":"╗","&boxDR;":"╔","&boxDl;":"╖","&boxDr;":"╓","&boxH;":"═","&boxHD;":"╦","&boxHU;":"╩","&boxHd;":"╤","&boxHu;":"╧","&boxUL;":"╝","&boxUR;":"╚","&boxUl;":"╜","&boxUr;":"╙","&boxV;":"║","&boxVH;":"╬","&boxVL;":"╣","&boxVR;":"╠","&boxVh;":"╫","&boxVl;":"╢","&boxVr;":"╟","&boxbox;":"⧉","&boxdL;":"╕","&boxdR;":"╒","&boxdl;":"┐","&boxdr;":"┌","&boxh;":"─","&boxhD;":"╥","&boxhU;":"╨","&boxhd;":"┬","&boxhu;":"┴","&boxminus;":"⊟","&boxplus;":"⊞","&boxtimes;":"⊠","&boxuL;":"╛","&boxuR;":"╘","&boxul;":"┘","&boxur;":"└","&boxv;":"│","&boxvH;":"╪","&boxvL;":"╡","&boxvR;":"╞","&boxvh;":"┼","&boxvl;":"┤","&boxvr;":"├","&bprime;":"‵","&breve;":"˘","&brvbar":"¦","&brvbar;":"¦","&bscr;":"𝒷","&bsemi;":"⁏","&bsim;":"∽","&bsime;":"⋍","&bsol;":"\\","&bsolb;":"⧅","&bsolhsub;":"⟈","&bull;":"•","&bullet;":"•","&bump;":"≎","&bumpE;":"⪮","&bumpe;":"≏","&bumpeq;":"≏","&cacute;":"ć","&cap;":"∩","&capand;":"⩄","&capbrcup;":"⩉","&capcap;":"⩋","&capcup;":"⩇","&capdot;":"⩀","&caps;":"∩︀","&caret;":"⁁","&caron;":"ˇ","&ccaps;":"⩍","&ccaron;":"č","&ccedil":"ç","&ccedil;":"ç","&ccirc;":"ĉ","&ccups;":"⩌","&ccupssm;":"⩐","&cdot;":"ċ","&cedil":"¸","&cedil;":"¸","&cemptyv;":"⦲","&cent":"¢","&cent;":"¢","&centerdot;":"·","&cfr;":"𝔠","&chcy;":"ч","&check;":"✓","&checkmark;":"✓","&chi;":"χ","&cir;":"○","&cirE;":"⧃","&circ;":"ˆ","&circeq;":"≗","&circlearrowleft;":"↺","&circlearrowright;":"↻","&circledR;":"®","&circledS;":"Ⓢ","&circledast;":"⊛","&circledcirc;":"⊚","&circleddash;":"⊝","&cire;":"≗","&cirfnint;":"⨐","&cirmid;":"⫯","&cirscir;":"⧂","&clubs;":"♣","&clubsuit;":"♣","&colon;":":","&colone;":"≔","&coloneq;":"≔","&comma;":",","&commat;":"@","&comp;":"∁","&compfn;":"∘","&complement;":"∁","&complexes;":"ℂ","&cong;":"≅","&congdot;":"⩭","&conint;":"∮","&copf;":"𝕔","&coprod;":"∐","&copy":"©","&copy;":"©","&copysr;":"℗","&crarr;":"↵","&cross;":"✗","&cscr;":"𝒸","&csub;":"⫏","&csube;":"⫑","&csup;":"⫐","&csupe;":"⫒","&ctdot;":"⋯","&cudarrl;":"⤸","&cudarrr;":"⤵","&cuepr;":"⋞","&cuesc;":"⋟","&cularr;":"↶","&cularrp;":"⤽","&cup;":"∪","&cupbrcap;":"⩈","&cupcap;":"⩆","&cupcup;":"⩊","&cupdot;":"⊍","&cupor;":"⩅","&cups;":"∪︀","&curarr;":"↷","&curarrm;":"⤼","&curlyeqprec;":"⋞","&curlyeqsucc;":"⋟","&curlyvee;":"⋎","&curlywedge;":"⋏","&curren":"¤","&curren;":"¤","&curvearrowleft;":"↶","&curvearrowright;":"↷","&cuvee;":"⋎","&cuwed;":"⋏","&cwconint;":"∲","&cwint;":"∱","&cylcty;":"⌭","&dArr;":"⇓","&dHar;":"⥥","&dagger;":"†","&daleth;":"ℸ","&darr;":"↓","&dash;":"‐","&dashv;":"⊣","&dbkarow;":"⤏","&dblac;":"˝","&dcaron;":"ď","&dcy;":"д","&dd;":"ⅆ","&ddagger;":"‡","&ddarr;":"⇊","&ddotseq;":"⩷","&deg":"°","&deg;":"°","&delta;":"δ","&demptyv;":"⦱","&dfisht;":"⥿","&dfr;":"𝔡","&dharl;":"⇃","&dharr;":"⇂","&diam;":"⋄","&diamond;":"⋄","&diamondsuit;":"♦","&diams;":"♦","&die;":"¨","&digamma;":"ϝ","&disin;":"⋲","&div;":"÷","&divide":"÷","&divide;":"÷","&divideontimes;":"⋇","&divonx;":"⋇","&djcy;":"ђ","&dlcorn;":"⌞","&dlcrop;":"⌍","&dollar;":"$","&dopf;":"𝕕","&dot;":"˙","&doteq;":"≐","&doteqdot;":"≑","&dotminus;":"∸","&dotplus;":"∔","&dotsquare;":"⊡","&doublebarwedge;":"⌆","&downarrow;":"↓","&downdownarrows;":"⇊","&downharpoonleft;":"⇃","&downharpoonright;":"⇂","&drbkarow;":"⤐","&drcorn;":"⌟","&drcrop;":"⌌","&dscr;":"𝒹","&dscy;":"ѕ","&dsol;":"⧶","&dstrok;":"đ","&dtdot;":"⋱","&dtri;":"▿","&dtrif;":"▾","&duarr;":"⇵","&duhar;":"⥯","&dwangle;":"⦦","&dzcy;":"џ","&dzigrarr;":"⟿","&eDDot;":"⩷","&eDot;":"≑","&eacute":"é","&eacute;":"é","&easter;":"⩮","&ecaron;":"ě","&ecir;":"≖","&ecirc":"ê","&ecirc;":"ê","&ecolon;":"≕","&ecy;":"э","&edot;":"ė","&ee;":"ⅇ","&efDot;":"≒","&efr;":"𝔢","&eg;":"⪚","&egrave":"è","&egrave;":"è","&egs;":"⪖","&egsdot;":"⪘","&el;":"⪙","&elinters;":"⏧","&ell;":"ℓ","&els;":"⪕","&elsdot;":"⪗","&emacr;":"ē","&empty;":"∅","&emptyset;":"∅","&emptyv;":"∅","&emsp13;":" ","&emsp14;":" ","&emsp;":" ","&eng;":"ŋ","&ensp;":" ","&eogon;":"ę","&eopf;":"𝕖","&epar;":"⋕","&eparsl;":"⧣","&eplus;":"⩱","&epsi;":"ε","&epsilon;":"ε","&epsiv;":"ϵ","&eqcirc;":"≖","&eqcolon;":"≕","&eqsim;":"≂","&eqslantgtr;":"⪖","&eqslantless;":"⪕","&equals;":"=","&equest;":"≟","&equiv;":"≡","&equivDD;":"⩸","&eqvparsl;":"⧥","&erDot;":"≓","&erarr;":"⥱","&escr;":"ℯ","&esdot;":"≐","&esim;":"≂","&eta;":"η","&eth":"ð","&eth;":"ð","&euml":"ë","&euml;":"ë","&euro;":"€","&excl;":"!","&exist;":"∃","&expectation;":"ℰ","&exponentiale;":"ⅇ","&fallingdotseq;":"≒","&fcy;":"ф","&female;":"♀","&ffilig;":"ffi","&fflig;":"ff","&ffllig;":"ffl","&ffr;":"𝔣","&filig;":"fi","&fjlig;":"fj","&flat;":"♭","&fllig;":"fl","&fltns;":"▱","&fnof;":"ƒ","&fopf;":"𝕗","&forall;":"∀","&fork;":"⋔","&forkv;":"⫙","&fpartint;":"⨍","&frac12":"½","&frac12;":"½","&frac13;":"⅓","&frac14":"¼","&frac14;":"¼","&frac15;":"⅕","&frac16;":"⅙","&frac18;":"⅛","&frac23;":"⅔","&frac25;":"⅖","&frac34":"¾","&frac34;":"¾","&frac35;":"⅗","&frac38;":"⅜","&frac45;":"⅘","&frac56;":"⅚","&frac58;":"⅝","&frac78;":"⅞","&frasl;":"⁄","&frown;":"⌢","&fscr;":"𝒻","&gE;":"≧","&gEl;":"⪌","&gacute;":"ǵ","&gamma;":"γ","&gammad;":"ϝ","&gap;":"⪆","&gbreve;":"ğ","&gcirc;":"ĝ","&gcy;":"г","&gdot;":"ġ","&ge;":"≥","&gel;":"⋛","&geq;":"≥","&geqq;":"≧","&geqslant;":"⩾","&ges;":"⩾","&gescc;":"⪩","&gesdot;":"⪀","&gesdoto;":"⪂","&gesdotol;":"⪄","&gesl;":"⋛︀","&gesles;":"⪔","&gfr;":"𝔤","&gg;":"≫","&ggg;":"⋙","&gimel;":"ℷ","&gjcy;":"ѓ","&gl;":"≷","&glE;":"⪒","&gla;":"⪥","&glj;":"⪤","&gnE;":"≩","&gnap;":"⪊","&gnapprox;":"⪊","&gne;":"⪈","&gneq;":"⪈","&gneqq;":"≩","&gnsim;":"⋧","&gopf;":"𝕘","&grave;":"`","&gscr;":"ℊ","&gsim;":"≳","&gsime;":"⪎","&gsiml;":"⪐","&gt":">","&gt;":">","&gtcc;":"⪧","&gtcir;":"⩺","&gtdot;":"⋗","&gtlPar;":"⦕","&gtquest;":"⩼","&gtrapprox;":"⪆","&gtrarr;":"⥸","&gtrdot;":"⋗","&gtreqless;":"⋛","&gtreqqless;":"⪌","&gtrless;":"≷","&gtrsim;":"≳","&gvertneqq;":"≩︀","&gvnE;":"≩︀","&hArr;":"⇔","&hairsp;":" ","&half;":"½","&hamilt;":"ℋ","&hardcy;":"ъ","&harr;":"↔","&harrcir;":"⥈","&harrw;":"↭","&hbar;":"ℏ","&hcirc;":"ĥ","&hearts;":"♥","&heartsuit;":"♥","&hellip;":"…","&hercon;":"⊹","&hfr;":"𝔥","&hksearow;":"⤥","&hkswarow;":"⤦","&hoarr;":"⇿","&homtht;":"∻","&hookleftarrow;":"↩","&hookrightarrow;":"↪","&hopf;":"𝕙","&horbar;":"―","&hscr;":"𝒽","&hslash;":"ℏ","&hstrok;":"ħ","&hybull;":"⁃","&hyphen;":"‐","&iacute":"í","&iacute;":"í","&ic;":"⁣","&icirc":"î","&icirc;":"î","&icy;":"и","&iecy;":"е","&iexcl":"¡","&iexcl;":"¡","&iff;":"⇔","&ifr;":"𝔦","&igrave":"ì","&igrave;":"ì","&ii;":"ⅈ","&iiiint;":"⨌","&iiint;":"∭","&iinfin;":"⧜","&iiota;":"℩","&ijlig;":"ij","&imacr;":"ī","&image;":"ℑ","&imagline;":"ℐ","&imagpart;":"ℑ","&imath;":"ı","&imof;":"⊷","&imped;":"Ƶ","&in;":"∈","&incare;":"℅","&infin;":"∞","&infintie;":"⧝","&inodot;":"ı","&int;":"∫","&intcal;":"⊺","&integers;":"ℤ","&intercal;":"⊺","&intlarhk;":"⨗","&intprod;":"⨼","&iocy;":"ё","&iogon;":"į","&iopf;":"𝕚","&iota;":"ι","&iprod;":"⨼","&iquest":"¿","&iquest;":"¿","&iscr;":"𝒾","&isin;":"∈","&isinE;":"⋹","&isindot;":"⋵","&isins;":"⋴","&isinsv;":"⋳","&isinv;":"∈","&it;":"⁢","&itilde;":"ĩ","&iukcy;":"і","&iuml":"ï","&iuml;":"ï","&jcirc;":"ĵ","&jcy;":"й","&jfr;":"𝔧","&jmath;":"ȷ","&jopf;":"𝕛","&jscr;":"𝒿","&jsercy;":"ј","&jukcy;":"є","&kappa;":"κ","&kappav;":"ϰ","&kcedil;":"ķ","&kcy;":"к","&kfr;":"𝔨","&kgreen;":"ĸ","&khcy;":"х","&kjcy;":"ќ","&kopf;":"𝕜","&kscr;":"𝓀","&lAarr;":"⇚","&lArr;":"⇐","&lAtail;":"⤛","&lBarr;":"⤎","&lE;":"≦","&lEg;":"⪋","&lHar;":"⥢","&lacute;":"ĺ","&laemptyv;":"⦴","&lagran;":"ℒ","&lambda;":"λ","&lang;":"⟨","&langd;":"⦑","&langle;":"⟨","&lap;":"⪅","&laquo":"«","&laquo;":"«","&larr;":"←","&larrb;":"⇤","&larrbfs;":"⤟","&larrfs;":"⤝","&larrhk;":"↩","&larrlp;":"↫","&larrpl;":"⤹","&larrsim;":"⥳","&larrtl;":"↢","&lat;":"⪫","&latail;":"⤙","&late;":"⪭","&lates;":"⪭︀","&lbarr;":"⤌","&lbbrk;":"❲","&lbrace;":"{","&lbrack;":"[","&lbrke;":"⦋","&lbrksld;":"⦏","&lbrkslu;":"⦍","&lcaron;":"ľ","&lcedil;":"ļ","&lceil;":"⌈","&lcub;":"{","&lcy;":"л","&ldca;":"⤶","&ldquo;":"“","&ldquor;":"„","&ldrdhar;":"⥧","&ldrushar;":"⥋","&ldsh;":"↲","&le;":"≤","&leftarrow;":"←","&leftarrowtail;":"↢","&leftharpoondown;":"↽","&leftharpoonup;":"↼","&leftleftarrows;":"⇇","&leftrightarrow;":"↔","&leftrightarrows;":"⇆","&leftrightharpoons;":"⇋","&leftrightsquigarrow;":"↭","&leftthreetimes;":"⋋","&leg;":"⋚","&leq;":"≤","&leqq;":"≦","&leqslant;":"⩽","&les;":"⩽","&lescc;":"⪨","&lesdot;":"⩿","&lesdoto;":"⪁","&lesdotor;":"⪃","&lesg;":"⋚︀","&lesges;":"⪓","&lessapprox;":"⪅","&lessdot;":"⋖","&lesseqgtr;":"⋚","&lesseqqgtr;":"⪋","&lessgtr;":"≶","&lesssim;":"≲","&lfisht;":"⥼","&lfloor;":"⌊","&lfr;":"𝔩","&lg;":"≶","&lgE;":"⪑","&lhard;":"↽","&lharu;":"↼","&lharul;":"⥪","&lhblk;":"▄","&ljcy;":"љ","&ll;":"≪","&llarr;":"⇇","&llcorner;":"⌞","&llhard;":"⥫","&lltri;":"◺","&lmidot;":"ŀ","&lmoust;":"⎰","&lmoustache;":"⎰","&lnE;":"≨","&lnap;":"⪉","&lnapprox;":"⪉","&lne;":"⪇","&lneq;":"⪇","&lneqq;":"≨","&lnsim;":"⋦","&loang;":"⟬","&loarr;":"⇽","&lobrk;":"⟦","&longleftarrow;":"⟵","&longleftrightarrow;":"⟷","&longmapsto;":"⟼","&longrightarrow;":"⟶","&looparrowleft;":"↫","&looparrowright;":"↬","&lopar;":"⦅","&lopf;":"𝕝","&loplus;":"⨭","&lotimes;":"⨴","&lowast;":"∗","&lowbar;":"_","&loz;":"◊","&lozenge;":"◊","&lozf;":"⧫","&lpar;":"(","&lparlt;":"⦓","&lrarr;":"⇆","&lrcorner;":"⌟","&lrhar;":"⇋","&lrhard;":"⥭","&lrm;":"‎","&lrtri;":"⊿","&lsaquo;":"‹","&lscr;":"𝓁","&lsh;":"↰","&lsim;":"≲","&lsime;":"⪍","&lsimg;":"⪏","&lsqb;":"[","&lsquo;":"‘","&lsquor;":"‚","&lstrok;":"ł","&lt":"<","&lt;":"<","&ltcc;":"⪦","&ltcir;":"⩹","&ltdot;":"⋖","&lthree;":"⋋","&ltimes;":"⋉","&ltlarr;":"⥶","&ltquest;":"⩻","&ltrPar;":"⦖","&ltri;":"◃","&ltrie;":"⊴","&ltrif;":"◂","&lurdshar;":"⥊","&luruhar;":"⥦","&lvertneqq;":"≨︀","&lvnE;":"≨︀","&mDDot;":"∺","&macr":"¯","&macr;":"¯","&male;":"♂","&malt;":"✠","&maltese;":"✠","&map;":"↦","&mapsto;":"↦","&mapstodown;":"↧","&mapstoleft;":"↤","&mapstoup;":"↥","&marker;":"▮","&mcomma;":"⨩","&mcy;":"м","&mdash;":"—","&measuredangle;":"∡","&mfr;":"𝔪","&mho;":"℧","&micro":"µ","&micro;":"µ","&mid;":"∣","&midast;":"*","&midcir;":"⫰","&middot":"·","&middot;":"·","&minus;":"−","&minusb;":"⊟","&minusd;":"∸","&minusdu;":"⨪","&mlcp;":"⫛","&mldr;":"…","&mnplus;":"∓","&models;":"⊧","&mopf;":"𝕞","&mp;":"∓","&mscr;":"𝓂","&mstpos;":"∾","&mu;":"μ","&multimap;":"⊸","&mumap;":"⊸","&nGg;":"⋙̸","&nGt;":"≫⃒","&nGtv;":"≫̸","&nLeftarrow;":"⇍","&nLeftrightarrow;":"⇎","&nLl;":"⋘̸","&nLt;":"≪⃒","&nLtv;":"≪̸","&nRightarrow;":"⇏","&nVDash;":"⊯","&nVdash;":"⊮","&nabla;":"∇","&nacute;":"ń","&nang;":"∠⃒","&nap;":"≉","&napE;":"⩰̸","&napid;":"≋̸","&napos;":"ʼn","&napprox;":"≉","&natur;":"♮","&natural;":"♮","&naturals;":"ℕ","&nbsp":" ","&nbsp;":" ","&nbump;":"≎̸","&nbumpe;":"≏̸","&ncap;":"⩃","&ncaron;":"ň","&ncedil;":"ņ","&ncong;":"≇","&ncongdot;":"⩭̸","&ncup;":"⩂","&ncy;":"н","&ndash;":"–","&ne;":"≠","&neArr;":"⇗","&nearhk;":"⤤","&nearr;":"↗","&nearrow;":"↗","&nedot;":"≐̸","&nequiv;":"≢","&nesear;":"⤨","&nesim;":"≂̸","&nexist;":"∄","&nexists;":"∄","&nfr;":"𝔫","&ngE;":"≧̸","&nge;":"≱","&ngeq;":"≱","&ngeqq;":"≧̸","&ngeqslant;":"⩾̸","&nges;":"⩾̸","&ngsim;":"≵","&ngt;":"≯","&ngtr;":"≯","&nhArr;":"⇎","&nharr;":"↮","&nhpar;":"⫲","&ni;":"∋","&nis;":"⋼","&nisd;":"⋺","&niv;":"∋","&njcy;":"њ","&nlArr;":"⇍","&nlE;":"≦̸","&nlarr;":"↚","&nldr;":"‥","&nle;":"≰","&nleftarrow;":"↚","&nleftrightarrow;":"↮","&nleq;":"≰","&nleqq;":"≦̸","&nleqslant;":"⩽̸","&nles;":"⩽̸","&nless;":"≮","&nlsim;":"≴","&nlt;":"≮","&nltri;":"⋪","&nltrie;":"⋬","&nmid;":"∤","&nopf;":"𝕟","&not":"¬","&not;":"¬","&notin;":"∉","&notinE;":"⋹̸","&notindot;":"⋵̸","&notinva;":"∉","&notinvb;":"⋷","&notinvc;":"⋶","&notni;":"∌","&notniva;":"∌","&notnivb;":"⋾","&notnivc;":"⋽","&npar;":"∦","&nparallel;":"∦","&nparsl;":"⫽⃥","&npart;":"∂̸","&npolint;":"⨔","&npr;":"⊀","&nprcue;":"⋠","&npre;":"⪯̸","&nprec;":"⊀","&npreceq;":"⪯̸","&nrArr;":"⇏","&nrarr;":"↛","&nrarrc;":"⤳̸","&nrarrw;":"↝̸","&nrightarrow;":"↛","&nrtri;":"⋫","&nrtrie;":"⋭","&nsc;":"⊁","&nsccue;":"⋡","&nsce;":"⪰̸","&nscr;":"𝓃","&nshortmid;":"∤","&nshortparallel;":"∦","&nsim;":"≁","&nsime;":"≄","&nsimeq;":"≄","&nsmid;":"∤","&nspar;":"∦","&nsqsube;":"⋢","&nsqsupe;":"⋣","&nsub;":"⊄","&nsubE;":"⫅̸","&nsube;":"⊈","&nsubset;":"⊂⃒","&nsubseteq;":"⊈","&nsubseteqq;":"⫅̸","&nsucc;":"⊁","&nsucceq;":"⪰̸","&nsup;":"⊅","&nsupE;":"⫆̸","&nsupe;":"⊉","&nsupset;":"⊃⃒","&nsupseteq;":"⊉","&nsupseteqq;":"⫆̸","&ntgl;":"≹","&ntilde":"ñ","&ntilde;":"ñ","&ntlg;":"≸","&ntriangleleft;":"⋪","&ntrianglelefteq;":"⋬","&ntriangleright;":"⋫","&ntrianglerighteq;":"⋭","&nu;":"ν","&num;":"#","&numero;":"№","&numsp;":" ","&nvDash;":"⊭","&nvHarr;":"⤄","&nvap;":"≍⃒","&nvdash;":"⊬","&nvge;":"≥⃒","&nvgt;":">⃒","&nvinfin;":"⧞","&nvlArr;":"⤂","&nvle;":"≤⃒","&nvlt;":"<⃒","&nvltrie;":"⊴⃒","&nvrArr;":"⤃","&nvrtrie;":"⊵⃒","&nvsim;":"∼⃒","&nwArr;":"⇖","&nwarhk;":"⤣","&nwarr;":"↖","&nwarrow;":"↖","&nwnear;":"⤧","&oS;":"Ⓢ","&oacute":"ó","&oacute;":"ó","&oast;":"⊛","&ocir;":"⊚","&ocirc":"ô","&ocirc;":"ô","&ocy;":"о","&odash;":"⊝","&odblac;":"ő","&odiv;":"⨸","&odot;":"⊙","&odsold;":"⦼","&oelig;":"œ","&ofcir;":"⦿","&ofr;":"𝔬","&ogon;":"˛","&ograve":"ò","&ograve;":"ò","&ogt;":"⧁","&ohbar;":"⦵","&ohm;":"Ω","&oint;":"∮","&olarr;":"↺","&olcir;":"⦾","&olcross;":"⦻","&oline;":"‾","&olt;":"⧀","&omacr;":"ō","&omega;":"ω","&omicron;":"ο","&omid;":"⦶","&ominus;":"⊖","&oopf;":"𝕠","&opar;":"⦷","&operp;":"⦹","&oplus;":"⊕","&or;":"∨","&orarr;":"↻","&ord;":"⩝","&order;":"ℴ","&orderof;":"ℴ","&ordf":"ª","&ordf;":"ª","&ordm":"º","&ordm;":"º","&origof;":"⊶","&oror;":"⩖","&orslope;":"⩗","&orv;":"⩛","&oscr;":"ℴ","&oslash":"ø","&oslash;":"ø","&osol;":"⊘","&otilde":"õ","&otilde;":"õ","&otimes;":"⊗","&otimesas;":"⨶","&ouml":"ö","&ouml;":"ö","&ovbar;":"⌽","&par;":"∥","&para":"¶","&para;":"¶","&parallel;":"∥","&parsim;":"⫳","&parsl;":"⫽","&part;":"∂","&pcy;":"п","&percnt;":"%","&period;":".","&permil;":"‰","&perp;":"⊥","&pertenk;":"‱","&pfr;":"𝔭","&phi;":"φ","&phiv;":"ϕ","&phmmat;":"ℳ","&phone;":"☎","&pi;":"π","&pitchfork;":"⋔","&piv;":"ϖ","&planck;":"ℏ","&planckh;":"ℎ","&plankv;":"ℏ","&plus;":"+","&plusacir;":"⨣","&plusb;":"⊞","&pluscir;":"⨢","&plusdo;":"∔","&plusdu;":"⨥","&pluse;":"⩲","&plusmn":"±","&plusmn;":"±","&plussim;":"⨦","&plustwo;":"⨧","&pm;":"±","&pointint;":"⨕","&popf;":"𝕡","&pound":"£","&pound;":"£","&pr;":"≺","&prE;":"⪳","&prap;":"⪷","&prcue;":"≼","&pre;":"⪯","&prec;":"≺","&precapprox;":"⪷","&preccurlyeq;":"≼","&preceq;":"⪯","&precnapprox;":"⪹","&precneqq;":"⪵","&precnsim;":"⋨","&precsim;":"≾","&prime;":"′","&primes;":"ℙ","&prnE;":"⪵","&prnap;":"⪹","&prnsim;":"⋨","&prod;":"∏","&profalar;":"⌮","&profline;":"⌒","&profsurf;":"⌓","&prop;":"∝","&propto;":"∝","&prsim;":"≾","&prurel;":"⊰","&pscr;":"𝓅","&psi;":"ψ","&puncsp;":" ","&qfr;":"𝔮","&qint;":"⨌","&qopf;":"𝕢","&qprime;":"⁗","&qscr;":"𝓆","&quaternions;":"ℍ","&quatint;":"⨖","&quest;":"?","&questeq;":"≟","&quot":'"',"&quot;":'"',"&rAarr;":"⇛","&rArr;":"⇒","&rAtail;":"⤜","&rBarr;":"⤏","&rHar;":"⥤","&race;":"∽̱","&racute;":"ŕ","&radic;":"√","&raemptyv;":"⦳","&rang;":"⟩","&rangd;":"⦒","&range;":"⦥","&rangle;":"⟩","&raquo":"»","&raquo;":"»","&rarr;":"→","&rarrap;":"⥵","&rarrb;":"⇥","&rarrbfs;":"⤠","&rarrc;":"⤳","&rarrfs;":"⤞","&rarrhk;":"↪","&rarrlp;":"↬","&rarrpl;":"⥅","&rarrsim;":"⥴","&rarrtl;":"↣","&rarrw;":"↝","&ratail;":"⤚","&ratio;":"∶","&rationals;":"ℚ","&rbarr;":"⤍","&rbbrk;":"❳","&rbrace;":"}","&rbrack;":"]","&rbrke;":"⦌","&rbrksld;":"⦎","&rbrkslu;":"⦐","&rcaron;":"ř","&rcedil;":"ŗ","&rceil;":"⌉","&rcub;":"}","&rcy;":"р","&rdca;":"⤷","&rdldhar;":"⥩","&rdquo;":"”","&rdquor;":"”","&rdsh;":"↳","&real;":"ℜ","&realine;":"ℛ","&realpart;":"ℜ","&reals;":"ℝ","&rect;":"▭","&reg":"®","&reg;":"®","&rfisht;":"⥽","&rfloor;":"⌋","&rfr;":"𝔯","&rhard;":"⇁","&rharu;":"⇀","&rharul;":"⥬","&rho;":"ρ","&rhov;":"ϱ","&rightarrow;":"→","&rightarrowtail;":"↣","&rightharpoondown;":"⇁","&rightharpoonup;":"⇀","&rightleftarrows;":"⇄","&rightleftharpoons;":"⇌","&rightrightarrows;":"⇉","&rightsquigarrow;":"↝","&rightthreetimes;":"⋌","&ring;":"˚","&risingdotseq;":"≓","&rlarr;":"⇄","&rlhar;":"⇌","&rlm;":"‏","&rmoust;":"⎱","&rmoustache;":"⎱","&rnmid;":"⫮","&roang;":"⟭","&roarr;":"⇾","&robrk;":"⟧","&ropar;":"⦆","&ropf;":"𝕣","&roplus;":"⨮","&rotimes;":"⨵","&rpar;":")","&rpargt;":"⦔","&rppolint;":"⨒","&rrarr;":"⇉","&rsaquo;":"›","&rscr;":"𝓇","&rsh;":"↱","&rsqb;":"]","&rsquo;":"’","&rsquor;":"’","&rthree;":"⋌","&rtimes;":"⋊","&rtri;":"▹","&rtrie;":"⊵","&rtrif;":"▸","&rtriltri;":"⧎","&ruluhar;":"⥨","&rx;":"℞","&sacute;":"ś","&sbquo;":"‚","&sc;":"≻","&scE;":"⪴","&scap;":"⪸","&scaron;":"š","&sccue;":"≽","&sce;":"⪰","&scedil;":"ş","&scirc;":"ŝ","&scnE;":"⪶","&scnap;":"⪺","&scnsim;":"⋩","&scpolint;":"⨓","&scsim;":"≿","&scy;":"с","&sdot;":"⋅","&sdotb;":"⊡","&sdote;":"⩦","&seArr;":"⇘","&searhk;":"⤥","&searr;":"↘","&searrow;":"↘","&sect":"§","&sect;":"§","&semi;":";","&seswar;":"⤩","&setminus;":"∖","&setmn;":"∖","&sext;":"✶","&sfr;":"𝔰","&sfrown;":"⌢","&sharp;":"♯","&shchcy;":"щ","&shcy;":"ш","&shortmid;":"∣","&shortparallel;":"∥","&shy":"­","&shy;":"­","&sigma;":"σ","&sigmaf;":"ς","&sigmav;":"ς","&sim;":"∼","&simdot;":"⩪","&sime;":"≃","&simeq;":"≃","&simg;":"⪞","&simgE;":"⪠","&siml;":"⪝","&simlE;":"⪟","&simne;":"≆","&simplus;":"⨤","&simrarr;":"⥲","&slarr;":"←","&smallsetminus;":"∖","&smashp;":"⨳","&smeparsl;":"⧤","&smid;":"∣","&smile;":"⌣","&smt;":"⪪","&smte;":"⪬","&smtes;":"⪬︀","&softcy;":"ь","&sol;":"/","&solb;":"⧄","&solbar;":"⌿","&sopf;":"𝕤","&spades;":"♠","&spadesuit;":"♠","&spar;":"∥","&sqcap;":"⊓","&sqcaps;":"⊓︀","&sqcup;":"⊔","&sqcups;":"⊔︀","&sqsub;":"⊏","&sqsube;":"⊑","&sqsubset;":"⊏","&sqsubseteq;":"⊑","&sqsup;":"⊐","&sqsupe;":"⊒","&sqsupset;":"⊐","&sqsupseteq;":"⊒","&squ;":"□","&square;":"□","&squarf;":"▪","&squf;":"▪","&srarr;":"→","&sscr;":"𝓈","&ssetmn;":"∖","&ssmile;":"⌣","&sstarf;":"⋆","&star;":"☆","&starf;":"★","&straightepsilon;":"ϵ","&straightphi;":"ϕ","&strns;":"¯","&sub;":"⊂","&subE;":"⫅","&subdot;":"⪽","&sube;":"⊆","&subedot;":"⫃","&submult;":"⫁","&subnE;":"⫋","&subne;":"⊊","&subplus;":"⪿","&subrarr;":"⥹","&subset;":"⊂","&subseteq;":"⊆","&subseteqq;":"⫅","&subsetneq;":"⊊","&subsetneqq;":"⫋","&subsim;":"⫇","&subsub;":"⫕","&subsup;":"⫓","&succ;":"≻","&succapprox;":"⪸","&succcurlyeq;":"≽","&succeq;":"⪰","&succnapprox;":"⪺","&succneqq;":"⪶","&succnsim;":"⋩","&succsim;":"≿","&sum;":"∑","&sung;":"♪","&sup1":"¹","&sup1;":"¹","&sup2":"²","&sup2;":"²","&sup3":"³","&sup3;":"³","&sup;":"⊃","&supE;":"⫆","&supdot;":"⪾","&supdsub;":"⫘","&supe;":"⊇","&supedot;":"⫄","&suphsol;":"⟉","&suphsub;":"⫗","&suplarr;":"⥻","&supmult;":"⫂","&supnE;":"⫌","&supne;":"⊋","&supplus;":"⫀","&supset;":"⊃","&supseteq;":"⊇","&supseteqq;":"⫆","&supsetneq;":"⊋","&supsetneqq;":"⫌","&supsim;":"⫈","&supsub;":"⫔","&supsup;":"⫖","&swArr;":"⇙","&swarhk;":"⤦","&swarr;":"↙","&swarrow;":"↙","&swnwar;":"⤪","&szlig":"ß","&szlig;":"ß","&target;":"⌖","&tau;":"τ","&tbrk;":"⎴","&tcaron;":"ť","&tcedil;":"ţ","&tcy;":"т","&tdot;":"⃛","&telrec;":"⌕","&tfr;":"𝔱","&there4;":"∴","&therefore;":"∴","&theta;":"θ","&thetasym;":"ϑ","&thetav;":"ϑ","&thickapprox;":"≈","&thicksim;":"∼","&thinsp;":" ","&thkap;":"≈","&thksim;":"∼","&thorn":"þ","&thorn;":"þ","&tilde;":"˜","&times":"×","&times;":"×","&timesb;":"⊠","&timesbar;":"⨱","&timesd;":"⨰","&tint;":"∭","&toea;":"⤨","&top;":"⊤","&topbot;":"⌶","&topcir;":"⫱","&topf;":"𝕥","&topfork;":"⫚","&tosa;":"⤩","&tprime;":"‴","&trade;":"™","&triangle;":"▵","&triangledown;":"▿","&triangleleft;":"◃","&trianglelefteq;":"⊴","&triangleq;":"≜","&triangleright;":"▹","&trianglerighteq;":"⊵","&tridot;":"◬","&trie;":"≜","&triminus;":"⨺","&triplus;":"⨹","&trisb;":"⧍","&tritime;":"⨻","&trpezium;":"⏢","&tscr;":"𝓉","&tscy;":"ц","&tshcy;":"ћ","&tstrok;":"ŧ","&twixt;":"≬","&twoheadleftarrow;":"↞","&twoheadrightarrow;":"↠","&uArr;":"⇑","&uHar;":"⥣","&uacute":"ú","&uacute;":"ú","&uarr;":"↑","&ubrcy;":"ў","&ubreve;":"ŭ","&ucirc":"û","&ucirc;":"û","&ucy;":"у","&udarr;":"⇅","&udblac;":"ű","&udhar;":"⥮","&ufisht;":"⥾","&ufr;":"𝔲","&ugrave":"ù","&ugrave;":"ù","&uharl;":"↿","&uharr;":"↾","&uhblk;":"▀","&ulcorn;":"⌜","&ulcorner;":"⌜","&ulcrop;":"⌏","&ultri;":"◸","&umacr;":"ū","&uml":"¨","&uml;":"¨","&uogon;":"ų","&uopf;":"𝕦","&uparrow;":"↑","&updownarrow;":"↕","&upharpoonleft;":"↿","&upharpoonright;":"↾","&uplus;":"⊎","&upsi;":"υ","&upsih;":"ϒ","&upsilon;":"υ","&upuparrows;":"⇈","&urcorn;":"⌝","&urcorner;":"⌝","&urcrop;":"⌎","&uring;":"ů","&urtri;":"◹","&uscr;":"𝓊","&utdot;":"⋰","&utilde;":"ũ","&utri;":"▵","&utrif;":"▴","&uuarr;":"⇈","&uuml":"ü","&uuml;":"ü","&uwangle;":"⦧","&vArr;":"⇕","&vBar;":"⫨","&vBarv;":"⫩","&vDash;":"⊨","&vangrt;":"⦜","&varepsilon;":"ϵ","&varkappa;":"ϰ","&varnothing;":"∅","&varphi;":"ϕ","&varpi;":"ϖ","&varpropto;":"∝","&varr;":"↕","&varrho;":"ϱ","&varsigma;":"ς","&varsubsetneq;":"⊊︀","&varsubsetneqq;":"⫋︀","&varsupsetneq;":"⊋︀","&varsupsetneqq;":"⫌︀","&vartheta;":"ϑ","&vartriangleleft;":"⊲","&vartriangleright;":"⊳","&vcy;":"в","&vdash;":"⊢","&vee;":"∨","&veebar;":"⊻","&veeeq;":"≚","&vellip;":"⋮","&verbar;":"|","&vert;":"|","&vfr;":"𝔳","&vltri;":"⊲","&vnsub;":"⊂⃒","&vnsup;":"⊃⃒","&vopf;":"𝕧","&vprop;":"∝","&vrtri;":"⊳","&vscr;":"𝓋","&vsubnE;":"⫋︀","&vsubne;":"⊊︀","&vsupnE;":"⫌︀","&vsupne;":"⊋︀","&vzigzag;":"⦚","&wcirc;":"ŵ","&wedbar;":"⩟","&wedge;":"∧","&wedgeq;":"≙","&weierp;":"℘","&wfr;":"𝔴","&wopf;":"𝕨","&wp;":"℘","&wr;":"≀","&wreath;":"≀","&wscr;":"𝓌","&xcap;":"⋂","&xcirc;":"◯","&xcup;":"⋃","&xdtri;":"▽","&xfr;":"𝔵","&xhArr;":"⟺","&xharr;":"⟷","&xi;":"ξ","&xlArr;":"⟸","&xlarr;":"⟵","&xmap;":"⟼","&xnis;":"⋻","&xodot;":"⨀","&xopf;":"𝕩","&xoplus;":"⨁","&xotime;":"⨂","&xrArr;":"⟹","&xrarr;":"⟶","&xscr;":"𝓍","&xsqcup;":"⨆","&xuplus;":"⨄","&xutri;":"△","&xvee;":"⋁","&xwedge;":"⋀","&yacute":"ý","&yacute;":"ý","&yacy;":"я","&ycirc;":"ŷ","&ycy;":"ы","&yen":"¥","&yen;":"¥","&yfr;":"𝔶","&yicy;":"ї","&yopf;":"𝕪","&yscr;":"𝓎","&yucy;":"ю","&yuml":"ÿ","&yuml;":"ÿ","&zacute;":"ź","&zcaron;":"ž","&zcy;":"з","&zdot;":"ż","&zeetrf;":"ℨ","&zeta;":"ζ","&zfr;":"𝔷","&zhcy;":"ж","&zigrarr;":"⇝","&zopf;":"𝕫","&zscr;":"𝓏","&zwj;":"‍","&zwnj;":"‌"},characters:{
714Æ:"&AElig;","&":"&amp;",Á:"&Aacute;",Ă:"&Abreve;",Â:"&Acirc;",А:"&Acy;","𝔄":"&Afr;",À:"&Agrave;",Α:"&Alpha;",Ā:"&Amacr;","⩓":"&And;",Ą:"&Aogon;","𝔸":"&Aopf;","⁡":"&af;",Å:"&angst;","𝒜":"&Ascr;","≔":"&coloneq;",Ã:"&Atilde;",Ä:"&Auml;","∖":"&ssetmn;","⫧":"&Barv;","⌆":"&doublebarwedge;",Б:"&Bcy;","∵":"&because;",ℬ:"&bernou;",Β:"&Beta;","𝔅":"&Bfr;","𝔹":"&Bopf;","˘":"&breve;","≎":"&bump;",Ч:"&CHcy;","©":"&copy;",Ć:"&Cacute;","⋒":"&Cap;","ⅅ":"&DD;",ℭ:"&Cfr;",Č:"&Ccaron;",Ç:"&Ccedil;",Ĉ:"&Ccirc;","∰":"&Cconint;",Ċ:"&Cdot;","¸":"&cedil;","·":"&middot;",Χ:"&Chi;","⊙":"&odot;","⊖":"&ominus;","⊕":"&oplus;","⊗":"&otimes;","∲":"&cwconint;","”":"&rdquor;","’":"&rsquor;","∷":"&Proportion;","⩴":"&Colone;","≡":"&equiv;","∯":"&DoubleContourIntegral;","∮":"&oint;",ℂ:"&complexes;","∐":"&coprod;","∳":"&awconint;","⨯":"&Cross;","𝒞":"&Cscr;","⋓":"&Cup;","≍":"&asympeq;","⤑":"&DDotrahd;",Ђ:"&DJcy;",Ѕ:"&DScy;",Џ:"&DZcy;","‡":"&ddagger;","↡":"&Darr;","⫤":"&DoubleLeftTee;",Ď:"&Dcaron;",Д:"&Dcy;","∇":"&nabla;",Δ:"&Delta;","𝔇":"&Dfr;","´":"&acute;","˙":"&dot;","˝":"&dblac;","`":"&grave;","˜":"&tilde;","⋄":"&diamond;","ⅆ":"&dd;","𝔻":"&Dopf;","¨":"&uml;","⃜":"&DotDot;","≐":"&esdot;","⇓":"&dArr;","⇐":"&lArr;","⇔":"&iff;","⟸":"&xlArr;","⟺":"&xhArr;","⟹":"&xrArr;","⇒":"&rArr;","⊨":"&vDash;","⇑":"&uArr;","⇕":"&vArr;","∥":"&spar;","↓":"&downarrow;","⤓":"&DownArrowBar;","⇵":"&duarr;","̑":"&DownBreve;","⥐":"&DownLeftRightVector;","⥞":"&DownLeftTeeVector;","↽":"&lhard;","⥖":"&DownLeftVectorBar;","⥟":"&DownRightTeeVector;","⇁":"&rightharpoondown;","⥗":"&DownRightVectorBar;","⊤":"&top;","↧":"&mapstodown;","𝒟":"&Dscr;",Đ:"&Dstrok;",Ŋ:"&ENG;",Ð:"&ETH;",É:"&Eacute;",Ě:"&Ecaron;",Ê:"&Ecirc;",Э:"&Ecy;",Ė:"&Edot;","𝔈":"&Efr;",È:"&Egrave;","∈":"&isinv;",Ē:"&Emacr;","◻":"&EmptySmallSquare;","▫":"&EmptyVerySmallSquare;",Ę:"&Eogon;","𝔼":"&Eopf;",Ε:"&Epsilon;","⩵":"&Equal;","≂":"&esim;","⇌":"&rlhar;",ℰ:"&expectation;","⩳":"&Esim;",Η:"&Eta;",Ë:"&Euml;","∃":"&exist;","ⅇ":"&exponentiale;",Ф:"&Fcy;","𝔉":"&Ffr;","◼":"&FilledSmallSquare;","▪":"&squf;","𝔽":"&Fopf;","∀":"&forall;",ℱ:"&Fscr;",Ѓ:"&GJcy;",">":"&gt;",Γ:"&Gamma;",Ϝ:"&Gammad;",Ğ:"&Gbreve;",Ģ:"&Gcedil;",Ĝ:"&Gcirc;",Г:"&Gcy;",Ġ:"&Gdot;","𝔊":"&Gfr;","⋙":"&ggg;","𝔾":"&Gopf;","≥":"&geq;","⋛":"&gtreqless;","≧":"&geqq;","⪢":"&GreaterGreater;","≷":"&gtrless;","⩾":"&ges;","≳":"&gtrsim;","𝒢":"&Gscr;","≫":"&gg;",Ъ:"&HARDcy;","ˇ":"&caron;","^":"&Hat;",Ĥ:"&Hcirc;",ℌ:"&Poincareplane;",ℋ:"&hamilt;",ℍ:"&quaternions;","─":"&boxh;",Ħ:"&Hstrok;","≏":"&bumpeq;",Е:"&IEcy;",IJ:"&IJlig;",Ё:"&IOcy;",Í:"&Iacute;",Î:"&Icirc;",И:"&Icy;",İ:"&Idot;",ℑ:"&imagpart;",Ì:"&Igrave;",Ī:"&Imacr;","ⅈ":"&ii;","∬":"&Int;","∫":"&int;","⋂":"&xcap;","⁣":"&ic;","⁢":"&it;",Į:"&Iogon;","𝕀":"&Iopf;",Ι:"&Iota;",ℐ:"&imagline;",Ĩ:"&Itilde;",І:"&Iukcy;",Ï:"&Iuml;",Ĵ:"&Jcirc;",Й:"&Jcy;","𝔍":"&Jfr;","𝕁":"&Jopf;","𝒥":"&Jscr;",Ј:"&Jsercy;",Є:"&Jukcy;",Х:"&KHcy;",Ќ:"&KJcy;",Κ:"&Kappa;",Ķ:"&Kcedil;",К:"&Kcy;","𝔎":"&Kfr;","𝕂":"&Kopf;","𝒦":"&Kscr;",Љ:"&LJcy;","<":"&lt;",Ĺ:"&Lacute;",Λ:"&Lambda;","⟪":"&Lang;",ℒ:"&lagran;","↞":"&twoheadleftarrow;",Ľ:"&Lcaron;",Ļ:"&Lcedil;",Л:"&Lcy;","⟨":"&langle;","←":"&slarr;","⇤":"&larrb;","⇆":"&lrarr;","⌈":"&lceil;","⟦":"&lobrk;","⥡":"&LeftDownTeeVector;","⇃":"&downharpoonleft;","⥙":"&LeftDownVectorBar;","⌊":"&lfloor;","↔":"&leftrightarrow;","⥎":"&LeftRightVector;","⊣":"&dashv;","↤":"&mapstoleft;","⥚":"&LeftTeeVector;","⊲":"&vltri;","⧏":"&LeftTriangleBar;","⊴":"&trianglelefteq;","⥑":"&LeftUpDownVector;","⥠":"&LeftUpTeeVector;","↿":"&upharpoonleft;","⥘":"&LeftUpVectorBar;","↼":"&lharu;","⥒":"&LeftVectorBar;","⋚":"&lesseqgtr;","≦":"&leqq;","≶":"&lg;","⪡":"&LessLess;","⩽":"&les;","≲":"&lsim;","𝔏":"&Lfr;","⋘":"&Ll;","⇚":"&lAarr;",Ŀ:"&Lmidot;","⟵":"&xlarr;","⟷":"&xharr;","⟶":"&xrarr;","𝕃":"&Lopf;","↙":"&swarrow;","↘":"&searrow;","↰":"&lsh;",Ł:"&Lstrok;","≪":"&ll;","⤅":"&Map;",М:"&Mcy;"," ":"&MediumSpace;",ℳ:"&phmmat;","𝔐":"&Mfr;","∓":"&mp;","𝕄":"&Mopf;",Μ:"&Mu;",Њ:"&NJcy;
714",Ń:"&Nacute;",Ň:"&Ncaron;",Ņ:"&Ncedil;",Н:"&Ncy;","​":"&ZeroWidthSpace;","\n":"&NewLine;","𝔑":"&Nfr;","⁠":"&NoBreak;"," ":"&nbsp;",ℕ:"&naturals;","⫬":"&Not;","≢":"&nequiv;","≭":"&NotCupCap;","∦":"&nspar;","∉":"&notinva;","≠":"&ne;","≂̸":"&nesim;","∄":"&nexists;","≯":"&ngtr;","≱":"&ngeq;","≧̸":"&ngeqq;","≫̸":"&nGtv;","≹":"&ntgl;","⩾̸":"&nges;","≵":"&ngsim;","≎̸":"&nbump;","≏̸":"&nbumpe;","⋪":"&ntriangleleft;","⧏̸":"&NotLeftTriangleBar;","⋬":"&ntrianglelefteq;","≮":"&nlt;","≰":"&nleq;","≸":"&ntlg;","≪̸":"&nLtv;","⩽̸":"&nles;","≴":"&nlsim;","⪢̸":"&NotNestedGreaterGreater;","⪡̸":"&NotNestedLessLess;","⊀":"&nprec;","⪯̸":"&npreceq;","⋠":"&nprcue;","∌":"&notniva;","⋫":"&ntriangleright;","⧐̸":"&NotRightTriangleBar;","⋭":"&ntrianglerighteq;","⊏̸":"&NotSquareSubset;","⋢":"&nsqsube;","⊐̸":"&NotSquareSuperset;","⋣":"&nsqsupe;","⊂⃒":"&vnsub;","⊈":"&nsubseteq;","⊁":"&nsucc;","⪰̸":"&nsucceq;","⋡":"&nsccue;","≿̸":"&NotSucceedsTilde;","⊃⃒":"&vnsup;","⊉":"&nsupseteq;","≁":"&nsim;","≄":"&nsimeq;","≇":"&ncong;","≉":"&napprox;","∤":"&nsmid;","𝒩":"&Nscr;",Ñ:"&Ntilde;",Ν:"&Nu;",Œ:"&OElig;",Ó:"&Oacute;",Ô:"&Ocirc;",О:"&Ocy;",Ő:"&Odblac;","𝔒":"&Ofr;",Ò:"&Ograve;",Ō:"&Omacr;",Ω:"&ohm;",Ο:"&Omicron;","𝕆":"&Oopf;","“":"&ldquo;","‘":"&lsquo;","⩔":"&Or;","𝒪":"&Oscr;",Ø:"&Oslash;",Õ:"&Otilde;","⨷":"&Otimes;",Ö:"&Ouml;","‾":"&oline;","⏞":"&OverBrace;","⎴":"&tbrk;","⏜":"&OverParenthesis;","∂":"&part;",П:"&Pcy;","𝔓":"&Pfr;",Φ:"&Phi;",Π:"&Pi;","±":"&pm;",ℙ:"&primes;","⪻":"&Pr;","≺":"&prec;","⪯":"&preceq;","≼":"&preccurlyeq;","≾":"&prsim;","″":"&Prime;","∏":"&prod;","∝":"&vprop;","𝒫":"&Pscr;",Ψ:"&Psi;",'"':"&quot;","𝔔":"&Qfr;",ℚ:"&rationals;","𝒬":"&Qscr;","⤐":"&drbkarow;","®":"&reg;",Ŕ:"&Racute;","⟫":"&Rang;","↠":"&twoheadrightarrow;","⤖":"&Rarrtl;",Ř:"&Rcaron;",Ŗ:"&Rcedil;",Р:"&Rcy;",ℜ:"&realpart;","∋":"&niv;","⇋":"&lrhar;","⥯":"&duhar;",Ρ:"&Rho;","⟩":"&rangle;","→":"&srarr;","⇥":"&rarrb;","⇄":"&rlarr;","⌉":"&rceil;","⟧":"&robrk;","⥝":"&RightDownTeeVector;","⇂":"&downharpoonright;","⥕":"&RightDownVectorBar;","⌋":"&rfloor;","⊢":"&vdash;","↦":"&mapsto;","⥛":"&RightTeeVector;","⊳":"&vrtri;","⧐":"&RightTriangleBar;","⊵":"&trianglerighteq;","⥏":"&RightUpDownVector;","⥜":"&RightUpTeeVector;","↾":"&upharpoonright;","⥔":"&RightUpVectorBar;","⇀":"&rightharpoonup;","⥓":"&RightVectorBar;",ℝ:"&reals;","⥰":"&RoundImplies;","⇛":"&rAarr;",ℛ:"&realine;","↱":"&rsh;","⧴":"&RuleDelayed;",Щ:"&SHCHcy;",Ш:"&SHcy;",Ь:"&SOFTcy;",Ś:"&Sacute;","⪼":"&Sc;",Š:"&Scaron;",Ş:"&Scedil;",Ŝ:"&Scirc;",С:"&Scy;","𝔖":"&Sfr;","↑":"&uparrow;",Σ:"&Sigma;","∘":"&compfn;","𝕊":"&Sopf;","√":"&radic;","□":"&square;","⊓":"&sqcap;","⊏":"&sqsubset;","⊑":"&sqsubseteq;","⊐":"&sqsupset;","⊒":"&sqsupseteq;","⊔":"&sqcup;","𝒮":"&Sscr;","⋆":"&sstarf;","⋐":"&Subset;","⊆":"&subseteq;","≻":"&succ;","⪰":"&succeq;","≽":"&succcurlyeq;","≿":"&succsim;","∑":"&sum;","⋑":"&Supset;","⊃":"&supset;","⊇":"&supseteq;",Þ:"&THORN;","™":"&trade;",Ћ:"&TSHcy;",Ц:"&TScy;","	":"&Tab;",Τ:"&Tau;",Ť:"&Tcaron;",Ţ:"&Tcedil;",Т:"&Tcy;","𝔗":"&Tfr;","∴":"&therefore;",Θ:"&Theta;","  ":"&ThickSpace;"," ":"&thinsp;","∼":"&thksim;","≃":"&simeq;","≅":"&cong;","≈":"&thkap;","𝕋":"&Topf;","⃛":"&tdot;","𝒯":"&Tscr;",Ŧ:"&Tstrok;",Ú:"&Uacute;","↟":"&Uarr;","⥉":"&Uarrocir;",Ў:"&Ubrcy;",Ŭ:"&Ubreve;",Û:"&Ucirc;",У:"&Ucy;",Ű:"&Udblac;","𝔘":"&Ufr;",Ù:"&Ugrave;",Ū:"&Umacr;",_:"&lowbar;","⏟":"&UnderBrace;","⎵":"&bbrk;","⏝":"&UnderParenthesis;","⋃":"&xcup;","⊎":"&uplus;",Ų:"&Uogon;","𝕌":"&Uopf;","⤒":"&UpArrowBar;","⇅":"&udarr;","↕":"&varr;","⥮":"&udhar;","⊥":"&perp;","↥":"&mapstoup;","↖":"&nwarrow;","↗":"&nearrow;",ϒ:"&upsih;",Υ:"&Upsilon;",Ů:"&Uring;","𝒰":"&Uscr;",Ũ:"&Utilde;",Ü:"&Uuml;","⊫":"&VDash;","⫫":"&Vbar;",В:"&Vcy;","⊩":"&Vdash;","⫦":"&Vdashl;","⋁":"&xvee;","‖":"&Vert;","∣":"&smid;","|":"&vert;","❘":"&VerticalSeparator;","≀":"&wreath;"," ":"&hairsp;","𝔙":"&Vfr;","𝕍":"&Vopf;","𝒱":"&Vscr;","⊪":"&Vvdash;",Ŵ:"&Wcirc;","⋀":"&xwedge;","𝔚":"&Wfr;","𝕎":"&Wopf;","𝒲":"&Wscr;","𝔛":"&Xfr;",Ξ:"&Xi;","𝕏":"&Xopf;","𝒳":"&Xscr;",Я:"&YAcy;",Ї:"&YIcy;",Ю:"&YUcy;",Ý:"&Yacute;",Ŷ:"&Ycirc;",Ы:"&Ycy;","𝔜":"&Yfr;","𝕐":"&Yopf;","𝒴":"&Yscr;",Ÿ:"&Yuml;",Ж:"&ZHcy;",Ź:"&Zacute;",Ž:"&Zcaron;",З:"&Zcy;",Ż:"&Zdot;",Ζ:"&Zeta;",ℨ:"&zeetrf;",ℤ:"&integers;","𝒵":"&Zscr;",á:"&aacute;",ă:"&abreve;","∾":"&mstpos;","∾̳":"&acE;","∿":"&acd;",â:"&acirc;",а:"&acy;",æ:"&aelig;","𝔞":"&afr;",à:"&agrave;",ℵ:"&aleph;",α:"&alpha;",ā:"&amacr;","⨿":"&amalg;","∧":"&wedge;","⩕":"&andand;","⩜":"&andd;","⩘":"&andslope;","⩚":"&andv;","∠":"&angle;","⦤":"&ange;","∡":"&measuredangle;","⦨":"&angmsdaa;","⦩":"&angmsdab;","⦪":"&angmsdac;","⦫":"&angmsdad;","⦬":"&angmsdae;","⦭":"&angmsdaf;","⦮":"&angmsdag;","⦯":"&angmsdah;","∟":"&angrt;","⊾":"&angrtvb;","⦝":"&angrtvbd;","∢":"&angsph;","⍼":"&angzarr;",ą:"&aogon;","𝕒":"&aopf;","⩰":"&apE;","⩯":"&apacir;","≊":"&approxeq;","≋":"&apid;","'":"&apos;",å:"&aring;","𝒶":"&ascr;","*":"&midast;",ã:"&atilde;",ä:"&auml;","⨑":"&awint;","⫭":"&bNot;","≌":"&bcong;","϶":"&bepsi;","‵":"&bprime;","∽":"&bsim;","⋍":"&bsime;","⊽":"&barvee;","⌅":"&barwedge;","⎶":"&bbrktbrk;",б:"&bcy;","„":"&ldquor;","⦰":"&bemptyv;",β:"&beta;",ℶ:"&beth;","≬":"&twixt;","𝔟":"&bfr;","◯":"&xcirc;","⨀":"&xodot;","⨁":"&xoplus;","⨂":"&xotime;","⨆":"&xsqcup;","★":"&starf;","▽":"&xdtri;","△":"&xutri;","⨄":"&xuplus;","⤍":"&rbarr;","⧫":"&lozf;","▴":"&utrif;","▾":"&dtrif;","◂":"&ltrif;","▸":"&rtrif;","␣":"&blank;","▒":"&blk12;","░":"&blk14;","▓":"&blk34;","█":"&block;","=⃥":"&bne;","≡⃥":"&bnequiv;","⌐":"&bnot;","𝕓":"&bopf;","⋈":"&bowtie;","╗":"&boxDL;","╔":"&boxDR;","╖":"&boxDl;","╓":"&boxDr;","═":"&boxH;","╦":"&boxHD;","╩":"&boxHU;","╤":"&boxHd;","╧":"&boxHu;","╝":"&boxUL;","╚":"&boxUR;","╜":"&boxUl;","╙":"&boxUr;","║":"&boxV;","╬":"&boxVH;","╣":"&boxVL;","╠":"&boxVR;","╫":"&boxVh;","╢":"&boxVl;","╟":"&boxVr;","⧉":"&boxbox;","╕":"&boxdL;","╒":"&boxdR;","┐":"&boxdl;","┌":"&boxdr;","╥":"&boxhD;","╨":"&boxhU;","┬":"&boxhd;","┴":"&boxhu;","⊟":"&minusb;","⊞":"&plusb;","⊠":"&timesb;","╛":"&boxuL;","╘":"&boxuR;","┘":"&boxul;","└":"&boxur;","│":"&boxv;","╪":"&boxvH;","╡":"&boxvL;","╞":"&boxvR;","┼":"&boxvh;","┤":"&boxvl;","├":"&boxvr;","¦":"&brvbar;","𝒷":"&bscr;","⁏":"&bsemi;","\\":"&bsol;","⧅":"&bsolb;","⟈":"&bsolhsub;","•":"&bullet;","⪮":"&bumpE;",ć:"&cacute;","∩":"&cap;","⩄":"&capand;","⩉":"&capbrcup;","⩋":"&capcap;
714","⩇":"&capcup;","⩀":"&capdot;","∩︀":"&caps;","⁁":"&caret;","⩍":"&ccaps;",č:"&ccaron;",ç:"&ccedil;",ĉ:"&ccirc;","⩌":"&ccups;","⩐":"&ccupssm;",ċ:"&cdot;","⦲":"&cemptyv;","¢":"&cent;","𝔠":"&cfr;",ч:"&chcy;","✓":"&checkmark;",χ:"&chi;","○":"&cir;","⧃":"&cirE;","ˆ":"&circ;","≗":"&cire;","↺":"&olarr;","↻":"&orarr;","Ⓢ":"&oS;","⊛":"&oast;","⊚":"&ocir;","⊝":"&odash;","⨐":"&cirfnint;","⫯":"&cirmid;","⧂":"&cirscir;","♣":"&clubsuit;",":":"&colon;",",":"&comma;","@":"&commat;","∁":"&complement;","⩭":"&congdot;","𝕔":"&copf;","℗":"&copysr;","↵":"&crarr;","✗":"&cross;","𝒸":"&cscr;","⫏":"&csub;","⫑":"&csube;","⫐":"&csup;","⫒":"&csupe;","⋯":"&ctdot;","⤸":"&cudarrl;","⤵":"&cudarrr;","⋞":"&curlyeqprec;","⋟":"&curlyeqsucc;","↶":"&curvearrowleft;","⤽":"&cularrp;","∪":"&cup;","⩈":"&cupbrcap;","⩆":"&cupcap;","⩊":"&cupcup;","⊍":"&cupdot;","⩅":"&cupor;","∪︀":"&cups;","↷":"&curvearrowright;","⤼":"&curarrm;","⋎":"&cuvee;","⋏":"&cuwed;","¤":"&curren;","∱":"&cwint;","⌭":"&cylcty;","⥥":"&dHar;","†":"&dagger;",ℸ:"&daleth;","‐":"&hyphen;","⤏":"&rBarr;",ď:"&dcaron;",д:"&dcy;","⇊":"&downdownarrows;","⩷":"&eDDot;","°":"&deg;",δ:"&delta;","⦱":"&demptyv;","⥿":"&dfisht;","𝔡":"&dfr;","♦":"&diams;",ϝ:"&gammad;","⋲":"&disin;","÷":"&divide;","⋇":"&divonx;",ђ:"&djcy;","⌞":"&llcorner;","⌍":"&dlcrop;",$:"&dollar;","𝕕":"&dopf;","≑":"&eDot;","∸":"&minusd;","∔":"&plusdo;","⊡":"&sdotb;","⌟":"&lrcorner;","⌌":"&drcrop;","𝒹":"&dscr;",ѕ:"&dscy;","⧶":"&dsol;",đ:"&dstrok;","⋱":"&dtdot;","▿":"&triangledown;","⦦":"&dwangle;",џ:"&dzcy;","⟿":"&dzigrarr;",é:"&eacute;","⩮":"&easter;",ě:"&ecaron;","≖":"&eqcirc;",ê:"&ecirc;","≕":"&eqcolon;",э:"&ecy;",ė:"&edot;","≒":"&fallingdotseq;","𝔢":"&efr;","⪚":"&eg;",è:"&egrave;","⪖":"&eqslantgtr;","⪘":"&egsdot;","⪙":"&el;","⏧":"&elinters;",ℓ:"&ell;","⪕":"&eqslantless;","⪗":"&elsdot;",ē:"&emacr;","∅":"&varnothing;"," ":"&emsp13;"," ":"&emsp14;"," ":"&emsp;",ŋ:"&eng;"," ":"&ensp;",ę:"&eogon;","𝕖":"&eopf;","⋕":"&epar;","⧣":"&eparsl;","⩱":"&eplus;",ε:"&epsilon;","ϵ":"&varepsilon;","=":"&equals;","≟":"&questeq;","⩸":"&equivDD;","⧥":"&eqvparsl;","≓":"&risingdotseq;","⥱":"&erarr;",ℯ:"&escr;",η:"&eta;",ð:"&eth;",ë:"&euml;","€":"&euro;","!":"&excl;",ф:"&fcy;","♀":"&female;",ffi:"&ffilig;",ff:"&fflig;",ffl:"&ffllig;","𝔣":"&ffr;",fi:"&filig;",fj:"&fjlig;","♭":"&flat;",fl:"&fllig;","▱":"&fltns;",ƒ:"&fnof;","𝕗":"&fopf;","⋔":"&pitchfork;","⫙":"&forkv;","⨍":"&fpartint;","½":"&half;","⅓":"&frac13;","¼":"&frac14;","⅕":"&frac15;","⅙":"&frac16;","⅛":"&frac18;","⅔":"&frac23;","⅖":"&frac25;","¾":"&frac34;","⅗":"&frac35;","⅜":"&frac38;","⅘":"&frac45;","⅚":"&frac56;","⅝":"&frac58;","⅞":"&frac78;","⁄":"&frasl;","⌢":"&sfrown;","𝒻":"&fscr;","⪌":"&gtreqqless;",ǵ:"&gacute;",γ:"&gamma;","⪆":"&gtrapprox;",ğ:"&gbreve;",ĝ:"&gcirc;",г:"&gcy;",ġ:"&gdot;","⪩":"&gescc;","⪀":"&gesdot;","⪂":"&gesdoto;","⪄":"&gesdotol;","⋛︀":"&gesl;","⪔":"&gesles;","𝔤":"&gfr;",ℷ:"&gimel;",ѓ:"&gjcy;","⪒":"&glE;","⪥":"&gla;","⪤":"&glj;","≩":"&gneqq;","⪊":"&gnapprox;","⪈":"&gneq;","⋧":"&gnsim;","𝕘":"&gopf;",ℊ:"&gscr;","⪎":"&gsime;","⪐":"&gsiml;","⪧":"&gtcc;","⩺":"&gtcir;","⋗":"&gtrdot;","⦕":"&gtlPar;","⩼":"&gtquest;","⥸":"&gtrarr;","≩︀":"&gvnE;",ъ:"&hardcy;","⥈":"&harrcir;","↭":"&leftrightsquigarrow;",ℏ:"&plankv;",ĥ:"&hcirc;","♥":"&heartsuit;","…":"&mldr;","⊹":"&hercon;","𝔥":"&hfr;","⤥":"&searhk;","⤦":"&swarhk;","⇿":"&hoarr;","∻":"&homtht;","↩":"&larrhk;","↪":"&rarrhk;","𝕙":"&hopf;","―":"&horbar;","𝒽":"&hscr;",ħ:"&hstrok;","⁃":"&hybull;",í:"&iacute;",î:"&icirc;",и:"&icy;",е:"&iecy;","¡":"&iexcl;","𝔦":"&ifr;",ì:"&igrave;","⨌":"&qint;","∭":"&tint;","⧜":"&iinfin;","℩":"&iiota;",ij:"&ijlig;",ī:"&imacr;",ı:"&inodot;","⊷":"&imof;",Ƶ:"&imped;","℅":"&incare;","∞":"&infin;","⧝":"&infintie;","⊺":"&intercal;","⨗":"&intlarhk;","⨼":"&iprod;",ё:"&iocy;",į:"&iogon;","𝕚":"&iopf;",ι:"&iota;","¿":"&iquest;","𝒾":"&iscr;","⋹":"&isinE;","⋵":"&isindot;","⋴":"&isins;","⋳":"&isinsv;",ĩ:"&itilde;",і:"&iukcy;",ï:"&iuml;",ĵ:"&jcirc;",й:"&jcy;","𝔧":"&jfr;","ȷ":"&jmath;","𝕛":"&jopf;","𝒿":"&jscr;",ј:"&jsercy;",є:"&jukcy;",κ:"&kappa;",ϰ:"&varkappa;",ķ:"&kcedil;",к:"&kcy;","𝔨":"&kfr;",ĸ:"&kgreen;",х:"&khcy;",ќ:"&kjcy;","𝕜":"&kopf;","𝓀":"&kscr;","⤛":"&lAtail;","⤎":"&lBarr;","⪋":"&lesseqqgtr;","⥢":"&lHar;",ĺ:"&lacute;","⦴":"&laemptyv;",λ:"&lambda;","⦑":"&langd;","⪅":"&lessapprox;","«":"&laquo;","⤟":"&larrbfs;","⤝":"&larrfs;","↫":"&looparrowleft;","⤹":"&larrpl;","⥳":"&larrsim;","↢":"&leftarrowtail;","⪫":"&lat;","⤙":"&latail;","⪭":"&late;","⪭︀":"&lates;","⤌":"&lbarr;","❲":"&lbbrk;","{":"&lcub;","[":"&lsqb;","⦋":"&lbrke;","⦏":"&lbrksld;","⦍":"&lbrkslu;",ľ:"&lcaron;",ļ:"&lcedil;",л:"&lcy;","⤶":"&ldca;","⥧":"&ldrdhar;","⥋":"&ldrushar;","↲":"&ldsh;","≤":"&leq;","⇇":"&llarr;","⋋":"&lthree;","⪨":"&lescc;","⩿":"&lesdot;","⪁":"&lesdoto;","⪃":"&lesdotor;","⋚︀":"&lesg;","⪓":"&lesges;","⋖":"&ltdot;","⥼":"&lfisht;","𝔩":"&lfr;","⪑":"&lgE;","⥪":"&lharul;","▄":"&lhblk;",љ:"&ljcy;","⥫":"&llhard;","◺":"&lltri;",ŀ:"&lmidot;","⎰":"&lmoustache;","≨":"&lneqq;","⪉":"&lnapprox;","⪇":"&lneq;","⋦":"&lnsim;","⟬":"&loang;","⇽":"&loarr;","⟼":"&xmap;","↬":"&rarrlp;","⦅":"&lopar;","𝕝":"&lopf;","⨭":"&loplus;","⨴":"&lotimes;","∗":"&lowast;","◊":"&lozenge;","(":"&lpar;","⦓":"&lparlt;","⥭":"&lrhard;","‎":"&lrm;","⊿":"&lrtri;","‹":"&lsaquo;","𝓁":"&lscr;","⪍":"&lsime;","⪏":"&lsimg;","‚":"&sbquo;",ł:"&lstrok;","⪦":"&ltcc;","⩹":"&ltcir;","⋉":"&ltimes;","⥶":"&ltlarr;","⩻":"&ltquest;","⦖":"&ltrPar;","◃":"&triangleleft;","⥊":"&lurdshar;","⥦":"&luruhar;","≨︀":"&lvnE;","∺":"&mDDot;","¯":"&strns;","♂":"&male;","✠":"&maltese;","▮":"&marker;","⨩":"&mcomma;",м:"&mcy;","—":"&mdash;","𝔪":"&mfr;","℧":"&mho;",µ:"&micro;","⫰":"&midcir;","−":"&minus;","⨪":"&minusdu;","⫛":"&mlcp;","⊧":"&models;","𝕞":"&mopf;","𝓂":"&mscr;",μ:"&mu;","⊸":"&mumap;","⋙̸":"&nGg;","≫⃒":"&nGt;","⇍":"&nlArr;","⇎":"&nhArr;","⋘̸":"&nLl;","≪⃒":"&nLt;","⇏":"&nrArr;","⊯":"&nVDash;","⊮":"&nVdash;",ń:"&nacute;","∠⃒":"&nang;","⩰̸":"&napE;","≋̸":"&napid;",ʼn:"&napos;","♮":"&natural;","⩃":"&ncap;",ň:"&ncaron;",ņ:"&ncedil;","⩭̸":"&ncongdot;","⩂":"&ncup;",н:"&ncy;","–":"&ndash;","⇗":"&neArr;","⤤":"&nearhk;","≐̸":"&nedot;","⤨":"&toea;","𝔫":"&nfr;","↮":"&nleftrightarrow;","⫲":"&nhpar;","⋼":"&nis;","⋺":"&nisd;",њ:"&njcy;","≦̸":"&nleqq;","↚":"&nleftarrow;","‥":"&nldr;","𝕟":"&nopf;","¬":"&not;","⋹̸":"&notinE;","⋵̸":"&notindot;","⋷":"&notinvb;","⋶":"&notinvc;","⋾":"&notnivb;","⋽":"&notnivc;","⫽⃥":"&nparsl;","∂̸":"&npart;","⨔":"&npolint;","↛":"&nrightarrow;","⤳̸":"&nrarrc;","↝̸":"&nrarrw;","𝓃":"&nscr;","⊄":"&nsub;","⫅̸":"&nsubseteqq;","⊅":"&nsup;","⫆̸":"&nsupseteqq;",ñ:"&ntilde;",ν:"&nu;","#":"&num;","№":"&numero;"," ":"&numsp;","⊭":"&nvDash;","⤄":"&nvHarr;","≍⃒":"&nvap;","⊬":"&nvdash;","≥⃒":"&nvge;",">⃒":"&nvgt;","⧞":"&nvinfin;","⤂":"&nvlArr;","≤⃒":"&nvle;","<⃒":"&nvlt;","⊴⃒":"&nvltrie;","⤃":"&nvrArr;","⊵⃒":"&nvrtrie;","∼⃒":"&nvsim;","⇖":"&nwArr;","⤣":"&nwarhk;","⤧":"&nwnear;",ó:"&oacute;",ô:"&ocirc;",о:"&ocy;",ő:"&odblac;","⨸":"&odiv;","⦼":"&odsold;",œ:"&oelig;","⦿":"&ofcir;","𝔬":"&ofr;","˛":"&ogon;",ò:"&ograve;","⧁":"&ogt;","⦵":"&ohbar;","⦾":"&olcir;","⦻":"&olcross;","⧀":"&olt;",ō:"&omacr;",ω:"&omega;",ο:"&omicron;","⦶":"&omid;","𝕠":"&oopf;","⦷":"&opar;","⦹":"&operp;","∨":"&vee;","⩝":"&ord;",ℴ:"&oscr;",ª:"&ordf;",º:"&ordm;","⊶":"&origof;","⩖":"&oror;","⩗":"&orslope;","⩛":"&orv;",ø:"&oslash;","⊘":"&osol;",õ:"&otilde;","⨶":"&otimesas;",ö:"&ouml;","⌽":"&ovbar;","¶":"&para;","⫳":"&parsim;","⫽":"&parsl;",п:"&pcy;","%":"&percnt;",".":"&period;","‰":"&permil;","‱":"&pertenk;","𝔭":"&pfr;",φ:"&phi;",ϕ:"&varphi;","☎":"&phone;",π:"&pi;",ϖ:"&varpi;",ℎ:"&planckh;","+":"&plus;","⨣":"&plusacir;","⨢":"&pluscir;","⨥":"&plusdu;","⩲":"&pluse;","⨦":"&plussim;","⨧":"&plustwo;","⨕":"&pointint;","𝕡":"&popf;","£":"&pound;","⪳":"&prE;","⪷":"&precapprox;","⪹":"&prnap;","⪵":"&prnE;","⋨":"&prnsim;","′":"&prime;","⌮":"&profalar;","⌒":"&profline;","⌓":"&profsurf;","⊰":"&prurel;","𝓅":"&pscr;",ψ:"&psi;"," ":"&puncsp;","𝔮":"&qfr;","𝕢":"&qopf;","⁗":"&qprime;","𝓆":"&qscr;","⨖":"&quatint;","?":"&quest;","⤜":"&rAtail;","⥤":"&rHar;","∽̱":"&race;",ŕ:"&racute;","⦳":"&raemptyv;","⦒":"&rangd;","⦥":"&range;","»":"&raquo;","⥵":"&rarrap;","⤠":"&rarrbfs;","⤳":"&rarrc;","⤞":"&rarrfs;","⥅":"&rarrpl;","⥴":"&rarrsim;","↣":"&rightarrowtail;","↝":"&rightsquigarrow;","⤚":"&ratail;","∶":"&ratio;","❳":"&rbbrk;","}":"&rcub;","]":"&rsqb;","⦌":"&rbrke;","⦎":"&rbrksld;","⦐":"&rbrkslu;",ř:"&rcaron;",ŗ:"&rcedil;",р:"&rcy;","⤷":"&rdca;","⥩":"&rdldhar;","↳":"&rdsh;","▭":"&rect;","⥽":"&rfisht;","𝔯":"&rfr;","⥬":"&rharul;",ρ:"&rho;",ϱ:"&varrho;","⇉":"&rrarr;","⋌":"&rthree;","˚":"&ring;","‏":"&rlm;","⎱":"&rmoustache;","⫮":"&rnmid;","⟭":"&roang;","⇾":"&roarr;","⦆":"&ropar;","𝕣":"&ropf;","⨮":"&roplus;","⨵":"&rotimes;",")":"&rpar;","⦔":"&rpargt;","⨒":"&rppolint;","›":"&rsaquo;","𝓇":"&rscr;","⋊":"&rtimes;","▹":"&triangleright;","⧎":"&rtriltri;","⥨":"&ruluhar;","℞":"&rx;",ś:"&sacute;","⪴":"&scE;","⪸":"&succapprox;",š:"&scaron;",ş:"&scedil;",ŝ:"&scirc;","⪶":"&succneqq;","⪺":"&succnapprox;","⋩":"&succnsim;","⨓":"&scpolint;",с:"&scy;","⋅":"&sdot;","⩦":"&sdote;","⇘":"&seArr;","§":"&sect;",";":"&semi;","⤩":"&tosa;","✶":"&sext;","𝔰":"&sfr;","♯":"&sharp;",щ:"&shchcy;",ш:"&shcy;","­":"&shy;",σ:"&sigma;",ς:"&varsigma;","⩪":"&simdot;","⪞":"&simg;","⪠":"&simgE;","⪝":"&siml;","⪟":"&simlE;","≆":"&simne;","⨤":"&simplus;","⥲":"&simrarr;","⨳":"&smashp;","⧤":"&smeparsl;","⌣":"&ssmile;","⪪":"&smt;","⪬":"&smte;","⪬︀":"&smtes;",ь:"&softcy;","/":"&sol;","⧄":"&solb;","⌿":"&solbar;","𝕤":"&sopf;","♠":"&spadesuit;","⊓︀":"&sqcaps;","⊔︀":"&sqcups;","𝓈":"&sscr;","☆":"&star;","⊂":"&subset;","⫅":"&subseteqq;","⪽":"&subdot;","⫃":"&subedot;","⫁":"&submult;","⫋":"&subsetneqq;","⊊":"&subsetneq;","⪿":"&subplus;","⥹":"&subrarr;","⫇":"&subsim;","⫕":"&subsub;","⫓":"&subsup;","♪":"&sung;","¹":"&sup1;","²":"&sup2;","³":"&sup3;","⫆":"&supseteqq;","⪾":"&supdot;","⫘":"&supdsub;","⫄":"&supedot;","⟉":"&suphsol;","⫗":"&suphsub;","⥻":"&suplarr;","⫂":"&supmult;","⫌":"&supsetneqq;","⊋":"&supsetneq;","⫀":"&supplus;","⫈":"&supsim;","⫔":"&supsub;","⫖":"&supsup;","⇙":"&swArr;","⤪":"&swnwar;",ß:"&szlig;","⌖":"&target;",τ:"&tau;",ť:"&tcaron;",ţ:"&tcedil;",т:"&tcy;","⌕":"&telrec;","𝔱":"&tfr;",θ:"&theta;",ϑ:"&vartheta;",þ:"&thorn;","×":"&times;","⨱":"&timesbar;","⨰":"&timesd;","⌶":"&topbot;","⫱":"&topcir;","𝕥":"&topf;","⫚":"&topfork;","‴":"&tprime;","▵":"&utri;","≜":"&trie;","◬":"&tridot;","⨺":"&triminus;","⨹":"&triplus;","⧍":"&trisb;","⨻":"&tritime;","⏢":"&trpezium;
714","𝓉":"&tscr;",ц:"&tscy;",ћ:"&tshcy;",ŧ:"&tstrok;","⥣":"&uHar;",ú:"&uacute;",ў:"&ubrcy;",ŭ:"&ubreve;",û:"&ucirc;",у:"&ucy;",ű:"&udblac;","⥾":"&ufisht;","𝔲":"&ufr;",ù:"&ugrave;","▀":"&uhblk;","⌜":"&ulcorner;","⌏":"&ulcrop;","◸":"&ultri;",ū:"&umacr;",ų:"&uogon;","𝕦":"&uopf;",υ:"&upsilon;","⇈":"&uuarr;","⌝":"&urcorner;","⌎":"&urcrop;",ů:"&uring;","◹":"&urtri;","𝓊":"&uscr;","⋰":"&utdot;",ũ:"&utilde;",ü:"&uuml;","⦧":"&uwangle;","⫨":"&vBar;","⫩":"&vBarv;","⦜":"&vangrt;","⊊︀":"&vsubne;","⫋︀":"&vsubnE;","⊋︀":"&vsupne;","⫌︀":"&vsupnE;",в:"&vcy;","⊻":"&veebar;","≚":"&veeeq;","⋮":"&vellip;","𝔳":"&vfr;","𝕧":"&vopf;","𝓋":"&vscr;","⦚":"&vzigzag;",ŵ:"&wcirc;","⩟":"&wedbar;","≙":"&wedgeq;","℘":"&wp;","𝔴":"&wfr;","𝕨":"&wopf;","𝓌":"&wscr;","𝔵":"&xfr;",ξ:"&xi;","⋻":"&xnis;","𝕩":"&xopf;","𝓍":"&xscr;",ý:"&yacute;",я:"&yacy;",ŷ:"&ycirc;",ы:"&ycy;","¥":"&yen;","𝔶":"&yfr;",ї:"&yicy;","𝕪":"&yopf;","𝓎":"&yscr;",ю:"&yucy;",ÿ:"&yuml;",ź:"&zacute;",ž:"&zcaron;",з:"&zcy;",ż:"&zdot;",ζ:"&zeta;","𝔷":"&zfr;",ж:"&zhcy;","⇝":"&zigrarr;","𝕫":"&zopf;","𝓏":"&zscr;","‍":"&zwj;","‌":"&zwnj;"}}};var bl={};Object.defineProperty(bl,"__esModule",{value:!0});bl.numericUnicodeMap={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var mo={};Object.defineProperty(mo,"__esModule",{value:!0});mo.fromCodePoint=String.fromCodePoint||function(r){return String.fromCharCode(Math.floor((r-65536)/1024)+55296,(r-65536)%1024+56320)};mo.getCodePoint=String.prototype.codePointAt?function(r,o){return r.codePointAt(o)}:function(r,o){return(r.charCodeAt(o)-55296)*1024+r.charCodeAt(o+1)-56320+65536};mo.highSurrogateFrom=55296;mo.highSurrogateTo=56319;var uo=_d&&_d.__assign||function(){return uo=Object.assign||function(r){for(var o,i=1,u=arguments.length;i<u;i++){o=arguments[i];for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(r[c]=o[c])}return r},uo.apply(this,arguments)};Object.defineProperty(ya,"__esModule",{value:!0});var Lo=ba,Jh=bl,wl=mo,vl=uo(uo({},Lo.namedReferences),{all:Lo.namedReferences.html5}),p8={specialChars:/[<>'"&]/g,nonAscii:/(?:[<>
714'"&\u0080-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,nonAsciiPrintable:/(?:[<>'"&\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,extensive:/(?:[\x01-\x0c\x0e-\x1f\x21-\x2c\x2e-\x2f\x3a-\x40\x5b-\x60\x7b-\x7d\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g},h8={mode:"specialChars",level:"all",numeric:"decimal"};function m8(r,o){var g=o===void 0?h8:o,b=g.mode,i=b===void 0?"specialChars":b,u=g.numeric,c=u===void 0?"decimal":u,p=g.level,d=p===void 0?"all":p;if(!r)return"";var a=p8[i],h=vl[d].characters,y=c==="hexadecimal";a.lastIndex=0;var g=a.exec(r),b;if(g){b="";var u=0;do{u!==g.index&&(b+=r.substring(u,g.index));var p=g[0],v=h[p];if(!v){var w=p.length>1?wl.getCodePoint(p,0):p.charCodeAt(0);v=(y?"&#x"+w.toString(16):"&#"+w)+";"}b+=v,u=g.index+p.length}while(g=a.exec(r));u!==r.length&&(b+=r.substring(u))}else b=r;return b}ya.encode=m8;var g8={scope:"body",level:"all"},ss=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g,us=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g,Od={xml:{strict:ss,attribute:us,body:Lo.bodyRegExps.xml},html4:{strict:ss,attribute:us,body:Lo.bodyRegExps.html4},html5:{strict:ss,attribute:us,body:Lo.bodyRegExps.html5}},y8=uo(uo({},Od),{all:Od.html5}),El=String.fromCharCode,Zh=El(65533),b8={level:"all"};function w8(r,o){var u=(o===void 0?b8:o).level,i=u===void 0?"all":u;if(!r)return"";var u=r;r[r.length-1];{var c=vl[i].entities[r];if(c)u=c;else if(r[0]==="&"&&r[1]==="#"){var p=r[2],d=p=="x"||p=="X"?parseInt(r.substr(3),16):parseInt(r.substr(2));u=d>=1114111?Zh:d>65535?wl.fromCodePoint(d):El(Jh.numericUnicodeMap[d]||d)}}return u}ya.decodeEntity=w8;function v8(r,o){var i=o===void 0?g8:o,u=i.level,c=u===void 0?"all":u,p=i.scope,d=p===void 0?c==="xml"?"strict":"body":p;if(!r)return"";var a=y8[c][d],h=vl[c].entities,y=d==="attribute",g=d==="strict";a.lastIndex=0;var b=a.exec(r),v;if(b){v="";var w=0;do{w!==b.index&&(v+=r.substring(w,b.index));var _=b[0],T=_,A=_[_.length-1];if(y&&A==="=")T=_;else if(g&&A!==";")T=_;else{var B=h[_];if(B)T=B;else if(_[0]==="&"&&_[1]==="#"){var D=_[2],x=D=="x"||D=="X"?parseInt(_.substr(3),16):parseInt(_.substr(2));T=x>=1114111?Zh:x>65535?wl.fromCodePoint(x):El(Jh.numericUnicodeMap[x]||x)}}v+=T,w=b.index+_.length}while(b=a.exec(r));w!==r.length&&(v+=r.substring(w))}else v=r;return v}var Ld=ya.decode=v8;function Xh(r,o,i="SPORTS",u,c,p){if(!r)throw new Ce(Be.MODEL_CREATION_ERROR,"отсутствует инстанс GQL Client");if(!o)throw new Ce(Be.MODEL_CREATION_ERROR,"отсутствует класс объекта");return{async addUserToBlackList(d,a){var h;if(!d)throw new Ce(Be.INVALID_ARGUMENT,Ja);const y=await r.gqlMutation(vf,{userID:d,time:a?Os.Temporary:Os.Permanent});if(!((h=y?.commentMutations)!=null&&h.addUserToBlacklist))throw new Ce(Be.REQUEST_ERROR,"не получены данные о результатах добавления в ЧС");return y.commentMutations.addUserToBlacklist.success},async removeUserFromBlacklist(d){var a;if(!d)throw new Ce(Be.INVALID_ARGUMENT,Ja);const h=await r.gqlMutation(Af,{userID:d});if(!((a=h?.commentMutations)!=null&&a.removeUserFromBlacklist))throw new Ce(Be.REQUEST_ERROR,"не получены данные о результатах удаления из ЧС");return h.commentMutations.removeUserFromBlacklist.success},async deleteUserComments(d){var a;if(!d)throw new Ce(Be.INVALID_ARGUMENT,Ja);const h=await r.gqlMutation(Ef,{userID:d});if(!((a=h?.commentMutations)!=null&&a.deleteByUser))throw new Ce(Be.REQUEST_ERROR,xT);return h.commentMutations.deleteByUser.success},async deleteComment(d,a){var h;if(!d)throw new Ce(Be.INVALID_ARGUMENT,Ur);const y=await r.gqlMutation(xf,{id:d,reason:a});if(!((h=y?.commentMutations)!=null&&h.delete))throw new Ce(Be.REQUEST_ERROR,DT);return y.commentMutations.delete.success},async ratePlus(d){if(!d)throw new Ce(Be.INVALID_ARGUMENT,Ur);if(!(p!=null&&p.ratePlus))throw new Ce(Be.INVALID_ARGUMENT,"Отсутствует зависимость rateApi.ratePlus");return p.ratePlus(d)},async rateMinus(d){if(!d)throw new Ce(Be.INVALID_ARGUMENT,Ur);if(!(p!=null&&p.rateMinus))throw new Ce(Be.INVALID_ARGUMENT,"Отсутствует зависимость rateApi.rateMinus");return p.rateMinus(d)},async addComment({objectId:d,commentText:a,parentId:h="",isDeleted:y,platform:g}){var b;if(!d)throw new Ce(Be.INVALID_ARGUMENT,mi);if(!a)throw new Ce(Be.INVALID_ARGUMENT,"не указан текст комментария");const v=await r.gqlMutation(_f,{objectId:d,text:a,objectClass:o,parentId:h,platform:g||Gi.DesktopWeb,deleted:y||!1});if(!((b=v?.commentMutations)!=null&&b.create))throw new Ce(Be.REQUEST_ERROR,"ошибка при создании комментария");const{comment:w,error:_}=v.commentMutations.create;if(!v.commentMutations.create.status)throw _!=null&&_.message?new Error(this.getCommentsTextOperationErrorText(_)):new Ce(Be.REQUEST_ERROR,"ошибка при создании комментария");return w},async editComment(d,a){var h;if(!d)throw new Ce(Be.INVALID_ARGUMENT,Ur);if(!a)throw new Ce(Be.INVALID_ARGUMENT,"Не указан текст комментария");const y=await r.gqlMutation(If,{id:d,text:a});if(!((h=y?.commentMutations)!=null&&h.edit))throw new Ce(Be.REQUEST_ERROR,"ошибка при редактировании комментария");const{comment:g,error:b}=y.commentMutations.edit;
714if(!y.commentMutations.edit.status)throw b!=null&&b.message?new Error(this.getCommentsTextOperationErrorText(b)):new Ce(Be.REQUEST_ERROR,"ошибка при редактировании комментария");return g},async getCommentList(d,a=Je.New,h){var y;if(!d)throw new Ce(Be.INVALID_ARGUMENT,mi);const g=await r.gqlQuery(Rf,{objectClass:o,objectId:d,order:a,filter:h},{retries:2,retryDelay:100});if(!(g!=null&&g.listIds))throw new Ce(Be.REQUEST_ERROR,hi);return{comments:g.listIds.map(this.mapIdToCommentList),totalCommentsCount:((y=g.list)==null?void 0:y.pagination.totalCount)??0}},async getCommentWithThread(d,a=Je.New,h){var y;if(!d)throw new Ce(Be.INVALID_ARGUMENT,mi);const g=await r.gqlQuery(Cf,{objectClass:o,objectId:d,order:a,filter:h},{retries:2,retryDelay:100});if(!((y=g?.listWithThread)!=null&&y.list))throw new Ce(Be.REQUEST_ERROR,hi);return{comments:g.listWithThread.list.map(b=>this.mapCommentsWithThreadToCommentList(b)),totalCommentsCount:g.listWithThread.totalCount??0}},async getFirstPageCommentList(d,a,h=Je.New){var y;if(!d)throw new Ce(Be.INVALID_ARGUMENT,mi);const g=await r.gqlQuery(Sf,{objectClass:o,objectId:d,order:h,first:a});if(!((y=g?.list)!=null&&y.comments))throw new Ce(Be.REQUEST_ERROR,hi);return{structure:g.list.comments.map(b=>this.mapIdToCommentList(b.id)),comments:g.list.comments,totalCommentsCount:g.list.pagination.totalCount??0}},async getCommentReplies(d){var a;if(!d)throw new Ce(Be.INVALID_ARGUMENT,"не указан id родительского комментария");const h=await r.gqlQuery(Bf,{parentID:d});if(!((a=h?.replies)!=null&&a.comments))throw new Ce(Be.REQUEST_ERROR,hi);const y=this.mapIdToCommentList(d);return y.children=[...y.children,...h.replies.comments.map(g=>this.mapIdToCommentList(g.id))],[y]},async getCommentsById(d){var a;if(!d||d.length===0)throw new Ce(Be.INVALID_ARGUMENT,"не указаны id комментариев для получения данных");const h=await r.gqlQuery(Cs,{IDs:d});if(!((a=h?.byIds)!=null&&a.list))throw new Ce(Be.REQUEST_ERROR,"не удалось получить данные комментариев");return h.byIds.list},async getSBCommentsById(d){var a;if(!d||d.length===0)throw new Ce(Be.INVALID_ARGUMENT,"не указаны id комментариев для получения данных");const h=await r.gqlQuery(Df,{IDs:d});if(!((a=h?.byIds)!=null&&a.list))throw new Ce(Be.REQUEST_ERROR,"не удалось получить данные комментариев");return h.byIds.list},async complain(d){var a;if(!d||!d.commentId||!d.userID||!d.commentAuthorId||!d.complaintType)throw new Ce(Be.INVALID_ARGUMENT);const h=await r.gqlMutation(Tf,d);if(!((a=h?.complaintsMutations)!=null&&a.add)||h.complaintsMutations.add.length===0)throw new Ce(Be.REQUEST_ERROR,"не удалось пожаловаться на комментарий");return h.complaintsMutations.add},async getCommentThread(d){if(!d)throw new Ce(Be.INVALID_ARGUMENT,Ur);const a=await r.gqlQuery(Of,{id:d});if(!(a!=null&&a.thread))throw new Ce(Be.REQUEST_ERROR,"не удалось получить тред комментария");return this.mapCommentsWithThreadToCommentList(a.thread)},createCommentsListMap(d){const a={};return d.forEach(h=>a[h.id]=h),a},mapCommentsToCommentViewData(d,a,h,y=1){if(!d)throw new Ce(Be.INVALID_ARGUMENT,"отсутствуют комментарии для маппинга");if(!a)throw new Ce(Be.INVALID_ARGUMENT,"отсутствуют данные комментариев");const g=[];let b=pd,v=0;return d.forEach((w,_)=>{if(a[w.id]){const T=a[w.id];v+=1;let A=[];w.children&&w.children.length>0&&(A=w.children.filter(x=>a[x.id]).map(x=>a[x.id]));const B=this.buildCommentViewData(T,h,A),D=_===d.length-1;v>=b&&!D&&(B.isInjectAdsAfter=!0,v=0,b===pd&&(B.isFirstAdInjection=!0),b=qT),B.order=y+_,g.push(B)}}),g},mapIdToCommentList:d=>({id:d,children:[],isDeleted:!1}),buildCommentViewData(d,a,h=[]){const y=d;return y.text=Ld(d.text),y.parentComment&&(y.parentComment.text=Ld(y.parentComment.text)),{data:y,displayText:_S(y,i),isFetchingReply:!1,isFetchingEditForm:!1,isFetchingRate:!1,isRudeFormText:!1,isRudeAnswerContent:!1,isInjectAdsAfter:!1,isFirstAdInjection:!1,hasReplyFetchError:!1,showAnswerForm:!1,lastFormText:"",lastAnswerText:"",order:0,children:this.buildCommentViewDataChildren(d.id,h,a)}},buildCommentViewDataChildren(d,a,h){var y,g;return{data:a.map(b=>this.buildCommentViewData(b,h)),totalComments:((g=(y=h[d])==null?void 0:y.children)==null?void 0:g.length)??0}},mapCommentsWithThreadToCommentList(d){return{id:d.id,children:d.children.map(a=>this.mapIdToCommentList(a)),isDeleted:!1}},createIdsRecord(d){const a=AS(d);return Object.fromEntries(a)},async getOneCommentById(d){var a;if(!d)throw new Ce(Be.INVALID_ARGUMENT,Ur);const h=await r.gqlQuery(Cs,{IDs:[d]});if(!((a=h?.byIds)!=null&&a.list))throw new Ce(Be.REQUEST_ERROR,"не удалось получить данные комментария");return h.byIds.list[0]},async banUser(d){if(!(c!=null&&c.banUser))throw new Ce(Be.INVALID_ARGUMENT,"Отсутствует зависимость banApi.banUser");return await c.banUser(d)},async unbanUser(d){if(!(c!=null&&c.unbanUser))throw new Ce(Be.INVALID_ARGUMENT,"Отсутствует зависимость banApi.unbanUser");return await c.unbanUser(d)},getStopWordsFromError(d){return d.words??[]},isStopWordsError(d){var a;return((a=d.words)==null?void 0:a.length)>0},getCommentsTextOperationErrorText(d){return this.isStopWordsError(d)?`${d.message}
714: ${this.getStopWordsFromError(d).join(", ")}`:d.message},async getUserSettings(){if(!(u!=null&&u.getUserSettings))throw new Ce(Be.INVALID_ARGUMENT,"Отсутствует зависимость userSettingsDeps.getUserSettings");return u.getUserSettings()},async updateUserCommentsFilterSort(d){if(!(u!=null&&u.updateUserSettings))throw new Ce(Be.INVALID_ARGUMENT,"Отсутствует зависимость userSettingsDeps.updateUserSettings");return u.updateUserSettings(d)},async pinComment(d){var a;if(!d)throw new Ce(Be.INVALID_ARGUMENT,Ur);const h=await r.gqlMutation(Lf,{id:d});if(!((a=h?.commentMutations)!=null&&a.pin))throw new Ce(Be.REQUEST_ERROR,"не удалось закрепить комментарий");return h.commentMutations.pin.success},async unpinComment(d){var a;if(!d)throw new Ce(Be.INVALID_ARGUMENT,Ur);const h=await r.gqlMutation(Nf,{id:d});if(!((a=h?.commentMutations)!=null&&a.unpin))throw new Ce(Be.REQUEST_ERROR,"не удалось открепить комментарий");return h.commentMutations.unpin.success}}}const E8=Le({__name:"Comments",props:{appPropsFacade:{type:Object,required:!0},objectId:{type:String,required:!0},objectClass:{type:String,required:!0},objectInfo:{type:Object,default:null},siteName:{type:String,default:jt.SPORTS},gqlClient:{type:Object,required:!0},userInfo:{type:Object,default:()=>({id:"",nick:"",url:"",avatar:""})},isAuthorized:{type:Boolean,required:!0},isModerator:{type:Boolean,default:!1},notificationProvider:{type:Object,required:!0},blogId:{type:String,default:null},followApi:{type:Object,required:!0},banApi:{type:Object,required:!0},rateApi:{type:Object,required:!0},userSettingsDeps:{type:Object,required:!0},device:{type:String,default:Ot.DESKTOP},id:{type:String,default:"comments"},disableInitialScroll:{type:Boolean,default:!1},withDonation:{type:Boolean,default:!1},isCommentsDisabled:{type:Boolean,default:!1},isBranded:{type:Boolean,default:!1},isShowCommentInputInList:{type:Boolean,default:!0},isAdDisabled:{type:Boolean,default:!1},analyticsApi:{type:Object,default:void 0},analyticsConfig:{type:Object,default:void 0},isInModal:{type:Boolean,default:!1}},emits:["needs-auth","analytic:show-all-comments"],setup(r,{emit:o}){const i=r;Mi(ll,at(()=>i.isInModal)),Mi(rh,at(()=>i.device));const u=o,c=at(i,"objectId"),p=at(i,"objectClass"),d=at(i,"gqlClient"),a=at(i,"userSettingsDeps"),h=at(i,"banApi"),y=at(i,"rateApi"),g=at(i,"notificationProvider"),b=at(i,"blogId"),v=at(i,"followApi"),w=at(i,"disableInitialScroll"),_=Xh(d.value,p.value,i.siteName,a.value,h.value,y.value),T=dl(c.value,p.value),A=ch(i.appPropsFacade.logger,g.value),B=at(i,"isAuthorized"),D=i.analyticsApi?new Ih(i.analyticsApi,i.analyticsConfig):null,x=Rh(D),W=ae(()=>D?.generateRandomId()??Math.floor(Math.random()*1e5).toString()),U=Re=>{if(!D)return;const Ne=D[Re.name];typeof Ne=="function"&&Ne.call(D,Re.data)},S=at(i,"userInfo"),M=Et(c.value,i.appPropsFacade.appState),{commentsTotalStructureLength:I,onShowMore:R,openReplyForm:C,onLoadRestComments:V,onSortChange:F,reloadComments:ue,loadViewWithErrorHandling:H,loadCommentRepliesWithErrorHandling:j,loadCommentThreadWithErrorHandling:X,restoreReplyComment:he,loadComments:ge,loadCommentReplies:ne,loadCommentThread:be}=Kr({objectId:c.value,commentsModel:_,isAuthorized:B,notificator:A,pinia:i.appPropsFacade.appState}),{runContextAction:P}=BB({banApi:h.value,commentsModel:_,blogId:b.value,objectId:c.value,isAuthorized:B,site:i.siteName,notificator:A,gqlClient:d.value,pinia:i.appPropsFacade.appState}),ee=Mh({notificator:A,gqlClient:d.value,objectId:c.value,objectClass:p.value,commentsModel:_,userInputStorage:T,isAuthorized:B,onNeedAuth:Re=>u("needs-auth",{from:Re}),analyticsCallbacks:D?{onPending:Re=>{x.trackDonationPending(Re.commentId,Re.parentId,Re.donationAmount)},onSuccess:Re=>{x.trackDonationSuccess(Re.commentId,Re.parentId,Re.donationAmount)}}:void 0,pinia:i.appPropsFacade.appState}),{commentsList:Ue,viewMode:_e,order:ce,isLoadingComments:de,totalPageCommentsCount:ve,totalCommentsCount:te,isProcessingComment:E,isDonationFormShown:k,isRejectedDonationPopupShown:Y,commentToEdit:re,replyTarget:z}=Ln(M),J=ae(()=>{var Re,Ne,Ve;return((Ve=(Ne=(Re=z.value)==null?void 0:Re.view)==null?void 0:Ne.data)==null?void 0:Ve.id)??""}),se=ae(()=>{const Re=T.getUserComment();return!(Re!=null&&Re.text)||!J.value||Re.parentId!==J.value?"":Re.text}),Ae=(Re,Ne)=>{T.saveUserComment({text:Re,parentId:Ne})}
714,{isRudeNewComment:Ie,hasNewCommentCreationError:le,addNewCommentWithErrorHandling:me}=Vo({objectId:c.value,commentsModel:_,userInputStorage:T,gqlClient:d.value,isAuthorized:B,notificator:A,pinia:i.appPropsFacade.appState}),{setCommentForEditing:Se,resetCommentForEditing:Ee}=lu({commentsModel:_,gqlClient:d.value,objectId:c.value,pinia:i.appPropsFacade.appState}),ie=ae(()=>p.value===tt.Post&&!!i.withDonation),De=I,O=ae(()=>M.structure.length),N=fe(!1),K=dh();let e={[xr.IS_BLOG_AUTHOR]:fe(!1),[xr.IS_POST_AUTHOR]:fe(!1),[xr.IS_POST_MODERATOR]:fe(!1)};const t=(Re,Ne)=>{if(!B.value){u("needs-auth",{from:Re}),x.trackAuthorizationClick(Re);return}return Ne()},n=async(Re,Ne)=>t("add-comment",()=>me({text:Re,parentId:Ne,device:i.device},Ve=>{x.trackNewComment(Ve,Ne)},Ve=>{x.trackNewCommentError(Ve,Ne)})),s=async Re=>{await R(Re);const Ne=Ki(Re,Ue.value);x.trackShowMore(Re,Ne)},l=async()=>{await V(),x.trackShowAllComments()},f=async(Re,Ne)=>{await F(Re,_e.value,Ne),x.trackSort(ce.value)},m=Re=>(x?.change_view_mode({viewMode:Re}),ue({order:ce.value,viewMode:Re})),L=async()=>{if(!N.value){x?.reload();try{N.value=!0,await ue()}catch{}finally{N.value=!1}}},{rate:Z}=jR({commentsModel:_,userInfo:S,objectId:c.value,notificator:A,onRateAnalytics:(Re,Ne,Ve,ot)=>{x.trackRate(Re,Ve,Ne,ot)},pinia:i.appPropsFacade.appState}),G=async Re=>{const Ne=e[xr.IS_POST_AUTHOR].value,Ve=t("vote-plus",()=>Z(Re,ar.Plus,Ne));Ve&&await Ve},$=async Re=>{const Ne=e[xr.IS_POST_AUTHOR].value,Ve=t("vote-minus",()=>Z(Re,ar.Minus,Ne));Ve&&await Ve},Q=async(Re,Ne,Ve=!1)=>{const ot=f8.includes(Ne)?P(Re,Ne):t("context-action",()=>P(Re,Ne));if(!ot)return;const it=Ne===we.AddToBlacklist||Ne===we.AddToBlacklistTemporary;try{await ot,x.trackContextAction(Ne,!1),Ne===we.Delete&&x.trackDeleteComment(Ve,!1),it&&x.trackBlacklistAdd(!1)}catch{x.trackContextAction(Ne,!0),Ne===we.Delete&&x.trackDeleteComment(Ve,!0),it&&x.trackBlacklistAdd(!0)}},ry=(Re,Ne)=>ee.runAction(Re,Ne),{removeFromBlacklistByCommentId:ny}=hl({commentsModel:_,site:i.siteName,notificator:A,objectId:c.value,isAuthorized:B,gqlClient:d.value,pinia:i.appPropsFacade.appState}),Nl=async Re=>{const Ne=t("blacklist-remove",()=>ny(Re));if(Ne)try{await Ne,x.trackBlacklistRemove(!1)}catch{x.trackBlacklistRemove(!0)}},{complainWithNotification:oy}=iB({commentsModel:_,site:i.siteName,notificator:A,objectId:c.value,isAuthorized:B,gqlClient:d.value,pinia:i.appPropsFacade.appState}),Dl=async(Re,Ne)=>{const Ve=t("complain",()=>oy(Re,S.value.id,Ne));if(Ve)try{await Ve,x.trackComplain(!1)}catch{x.trackComplain(!0)}},{deleteCommentWithErrorHandling:iy}=Bh({commentsModel:_,objectId:c.value,notificator:A,pinia:i.appPropsFacade.appState}),xl=async(Re,Ne)=>{var Ve;const ot=t("delete-comment",()=>iy(Re,Ne));if(!ot)return;let it=!1;try{it=((Ve=vt(Re,M.commentsRelations,_e.value,Ue.value).view)==null?void 0:Ve.data.author.id)===S.value.id}catch{}try{await ot,x.trackDeleteComment(it,!1)}catch{x.trackDeleteComment(it,!0)}},{banAuthor:ay}=Oh({banApi:h.value,commentsModel:_,blogId:b.value,objectId:c.value,isAuthorized:B,notificator:A,onUnbanAnalytics:Re=>{x.trackUnbanUser(Re)},pinia:i.appPropsFacade.appState}),Ul=async(Re,Ne,Ve)=>{const ot=t("ban-user",()=>ay(Re,Ne,Ve));if(ot)try{await ot,x.trackBanUser(Ne,!1)}catch{x.trackBanUser(Ne,!0)}},{editCommentWithErrorHandling:sy}=lu({commentsModel:_,gqlClient:d.value,objectId:c.value,pinia:i.appPropsFacade.appState}),kl=async(Re,Ne)=>await t("edit-comment",()=>sy({commentId:Re,content:Ne},Ve=>{var ot,it;const Dr=(it=(ot=vt(Re,M.commentsRelations,_e.value,Ue.value).view)==null?void 0:ot.data.parentComment)==null?void 0:it.id;x.trackEditComment(Ve,Re,Dr)},Ve=>{var ot,it;const Dr=(it=(ot=vt(Re,M.commentsRelations,_e.value,Ue.value).view)==null?void 0:ot.data.parentComment)==null?void 0:it.id;x.trackEditCommentError(Ve,Dr)})),{pinComment:uy,unpinComment:ly}=Ch({commentsModel:_,objectId:c.value,isAuthorized:B,pinia:i.appPropsFacade.appState}),cy=async Re=>{await t("pin-comment",()=>uy(Re))&&x.trackPinComment(Re)},dy=async Re=>{await t("unpin-comment",()=>ly(Re))&&x.trackUnpinComment(Re)},{followUser:fy,unfollowUser:py}=oB({followApi:v.value,notificator:A,objectId:c.value,commentsModel:_,isAuthorized:B,pinia:i.appPropsFacade.appState}),Pl=async(Re,Ne)=>{const Ve=await t("follow-user",()=>Ne?py(Re):fy(Re));Ve&&Ve&&(Ne?x.trackUnfollowUser(Re):x.trackFollowUser(Re))},{strategy:Ba,parentCommentId:Ml,commentId:Ca}=xS(c.value,p.value),$l=fe(),Zo=fe(),hy=ae(()=>Ba.value===Mt.AMP_ADD||Ba.value===Mt.AMP_ANSWER),{state:my,goToViewComments:Fl,goToReplies:gy,goToCommentThread:yy,scrollToElement:by,isLoadingPage:jl,isFocusOnNewCommentForm:wy}=PR({logger:i.appPropsFacade.logger,loadView:H,loadCommentReplies:j,loadCommentThread:X,openReplyForm:C,parentCommentId:Ml,commentId:Ca,commentsBlock:Zo,answersBlock:$l,isAuthorized:B,emit:u,disableInitialScroll:w.value,shouldOpenForm:hy}),vy=()=>Ba.value===Mt.NOTIFICATION?()=>gy():Ca.value?()=>yy():()=>Fl();return rf(async()=>{const{logger:Re}=i.appPropsFacade;try{const Ne=qy(),{strategy:Ve,parentId:ot,commentId:it}=DS(Ne,c.value,p.value);Ve===Mt.NOTIFICATION&&(ot||it)?await ne(ot||it):it?await be(it):await ge({order:Je.Best,viewMode:Ze.DIALOGUE})}catch(Ne){Re.error({backendResponse:JSON.stringify(Ne)},`[Comments SSR] Не удалось загрузить комменты на SSR: ${Ne instanceof Error?Ne.message:String(Ne)}`)}}),rt(async()=>{var Re,Ne;await vy()(),he(),(Re=Zo.value)!=null&&Re.wrapper&&(Ne=window.location.hash)!=null&&Ne.includes("#comments")&&await by(Zo.value.wrapper)}),He(()=>[i.objectInfo,S.value.id],()=>{var Re,Ne,Ve,ot,it,Dr;(Re=i.objectInfo)!=null&&Re.authors&&(e[xr.IS_POST_AUTHOR].value=((Ne=i.objectInfo)==null?void 0:Ne.authors.findIndex(Gl=>Gl.id===S.value.id))>-1),e[xr.IS_BLOG_AUTHOR].value=(ot=(Ve=i.objectInfo)==null?void 0:Ve.blog)==null?void 0:ot.isAuthor,e[xr.IS_POST_MODERATOR].value=(Dr=(it=i.objectInfo)==null?void 0:it.blog)==null?void 0:Dr.
714isModerator}),(Re,Ne)=>{var Ve,ot,it,Dr;return q(my)===q(gt).VIEW?(oe(),Oe(q(e8),{key:0,id:r.id,ref_key:"commentsBlock",ref:Zo,"is-moderator":r.isModerator,"is-auth-viewer":B.value,"object-id":c.value,"object-class":p.value,"comments-list":q(Ue),"hide-terms":q(K),"with-donation":r.withDonation,"total-root-comments-count":O.value,"is-loading-comments":q(de)||N.value,"is-comments-available":!r.isCommentsDisabled,"is-rejected-donation-popup-shown":q(Y),"is-donation-form-shown":q(k),"total-comments-count":q(ve),"total-structure-length":q(De),"view-mode":q(_e),order:q(ce),"is-loading-block":q(jl),"user-info":S.value,"is-new-comment-data-fetching":q(E),"is-rude-new-comment-text":q(Ie),"site-name":r.siteName,"focus-on-new-comment-form":q(wy),"has-new-comment-data-fetching-error":q(le),"is-branded":r.isBranded,"is-show-comment-input-in-list":r.isShowCommentInputInList,"editing-comment-id":(ot=(Ve=q(re))==null?void 0:Ve.view)==null?void 0:ot.data.id,"is-ad-disabled":r.isAdDisabled,device:r.device,"analytic-id":W.value,"are-donations-enabled":ie.value,"reply-target-comment-id":J.value,"reply-draft-text":se.value,"on-reply-form-input":Ae,onNewComment:n,onUploadMore:s,onOpenReplyForm:q(C),onLoadRestComments:l,onChangeSort:f,onChangeViewMode:m,onVotePlus:G,onVoteMinus:$,onSelectInContext:Q,onRemoveFromBlackList:Nl,onComplain:Dl,onDelete:xl,onBanUser:Ul,onEditComment:kl,onSetUserFollowing:Pl,onDonationAction:ry,onReload:L,onPinComment:cy,onUnpinComment:dy,onOpenEditForm:q(Se),onCloseEditForm:q(Ee),onAnalytics:U},null,8,["id","is-moderator","is-auth-viewer","object-id","object-class","comments-list","hide-terms","with-donation","total-root-comments-count","is-loading-comments","is-comments-available","is-rejected-donation-popup-shown","is-donation-form-shown","total-comments-count","total-structure-length","view-mode","order","is-loading-block","user-info","is-new-comment-data-fetching","is-rude-new-comment-text","site-name","focus-on-new-comment-form","has-new-comment-data-fetching-error","is-branded","is-show-comment-input-in-list","editing-comment-id","is-ad-disabled","device","analytic-id","are-donations-enabled","reply-target-comment-id","reply-draft-text","onOpenReplyForm","onOpenEditForm","onCloseEditForm"])):(oe(),Oe(q(i8),{key:1,id:r.id,ref_key:"answersBlock",ref:$l,"object-id":c.value,"object-class":p.value,"hide-terms":q(K),"view-mode":q(_e),"replied-comment-id":q(Ml),"comments-list":q(Ue),"total-comments-in-list":q(te),"is-loading-block":q(jl),"is-show-comment-input-in-list":r.isShowCommentInputInList,"editing-comment-id":(Dr=(it=q(re))==null?void 0:it.view)==null?void 0:Dr.data.id,"user-info":S.value,"selected-comment-id":q(Ca),"site-name":r.siteName,onGoToAllComments:Ne[0]||(Ne[0]=Gl=>q(Fl)(!1)),onNewComment:n,onVotePlus:G,onVoteMinus:$,onSelectInContext:Q,onRemoveFromBlackList:Nl,onComplain:Dl,onDelete:xl,onBanUser:Ul,onEditComment:kl,onSetUserFollowing:Pl,onOpenReplyForm:q(C),onOpenEditForm:q(Se),onCloseEditForm:q(Ee),onAnalytics:U},null,8,["id","object-id","object-class","hide-terms","view-mode","replied-comment-id","comments-list","total-comments-in-list","is-loading-block","is-show-comment-input-in-list","editing-comment-id","user-info","selected-comment-id","site-name","onOpenReplyForm","onOpenEditForm","onCloseEditForm"]))}}}),_8=Le({__name:"ClientOnlyTeleport",props:{to:{type:String,required:!0}},setup(r){const o=fe(!1);return rt(()=>{o.value=!0}),(i,u)=>o.value?(oe(),Oe(Hy,{key:0,to:r.to},[et(i.$slots,"default")],8,["to"])):ke("",!0)}}),A8=Le({__name:"FloatCommentForm",props:{notificationProvider:{type:Object,required:!0},isAuthorized:{type:Boolean,required:!0},device:{type:String,default:Ot.DESKTOP},siteName:{type:String,default:jt.SPORTS},objectId:{type:String,default:""},objectClass:{type:String,required:!0},appPropsFacade:{type:Object,required:!0},isFocused:{type:Boolean,required:!0},userInfo:{type:Object,default:()=>({id:"",nick:"",url:"",avatar:""})},banApi:{type:Object,required:!0},rateApi:{type:Object,required:!0},userSettingsDeps:{type:Object,required:!0},withDonation:{type:Boolean,default:!1},blogId:{type:String,default:void 0},analyticsApi:{type:Object,default:void 0},analyticsConfig:{type:Object,default:void 0},teleportTo:{type:String,default:void 0},yOffset:{type:Number,default:void 0}},emits:["changeFocus","needs-auth"],setup(r,{emit:o}){const i=r,u=o,c=ae(()=>i.appPropsFacade.gqlClient),p=at(i,"userSettingsDeps"),d=at(i,"banApi"),a=at(i,"rateApi"),h=at(i,"isAuthorized"),y=Xh(c.value,i.objectClass,i.siteName,p.value,d.value,a.value),g=dl(i.objectId,i.objectClass),{saveUserComment:b,getUserComment:v,removeUserComment:w}=g,_=ch(i.appPropsFacade.logger,i.notificationProvider),T=Et(i.objectId,i.appPropsFacade.appState),A=i.analyticsApi?new Ih(i.analyticsApi,i.analyticsConfig):null,B=Rh(A),D=le=>{if(!A)return;const me=A[le.name];typeof me=="function"&&me.call(A,le.data)},x=Kr({objectId:i.objectId,commentsModel:y,isAuthorized:h,notificator:_,pinia:i.appPropsFacade.appState}),{replyTarget:W,commentToEdit:U,isDonationFormShown:S,isProcessingComment:M}=Ln(T),I=ae(()=>{var le,me;return(me=(le=W.value)==null?void 0:le.view)==null?void 0:me.data}),R=ae(()=>{var le,me;return(me=(le=W.value)==null?void 0:le.view)==null?void 0:me.displayText}),C=ae(()=>!I.value),V=ae(()=>i.withDonation&&C.value),F=dh(),ue=ae(()=>I.value?I.value.rating.plus-I.value.rating.minus<=F.rating.hide:!1),{isRudeNewComment:H,hasNewCommentCreationError:j,addNewCommentWithErrorHandling:X}=Vo({objectId:i.objectId,commentsModel:y,userInputStorage:g,gqlClient:c.value,isAuthorized:h,notificator:_,pinia:i.appPropsFacade.appState}),he=fe(""),ge=ae(()=>{var le;return i.isFocused||!!((le=U.value)!=null&&le.view)||he.value.length>0}),ne=Mh({notificator:_,gqlClient:c.value,objectId:i.objectId,objectClass:i.objectClass,commentsModel:y,userInputStorage:g,isAuthorized:h,onNeedAuth:le=>u("needs-auth",{from:le}),analyticsCallbacks:A?{onPending:le=>{B.trackDonationPending(le.commentId,le.parentId,le.donationAmount)},onSuccess:le=>{B.trackDonationSuccess(le.commentId,le.parentId,le.donationAmount)}}:void 0,pinia:i.appPropsFacade.appState}),be=ae(()=>i.objectClass===tt.Post&&!!i.withDonation),P=(le,me,Se)=>{ne.runAction(me,Se)},{commentFormText:ee,onDonation:Ue,onDonationShown:_e}=Ph(P),{toggleCatfish:ce}=yl(),{toggleBodyLock:de}=Vy(),{setPreventZoom:ve}=XB(),te=le=>{var me;ee.value=le,b({text:le,parentId:(me=I.value)==null?void 0:me.id})},E=()=>{B.trackInputActivate(W.value?xt.REPLY:xt.ROOT)}
714,{resetCommentForEditing:k,editCommentWithErrorHandling:Y}=lu({commentsModel:y,gqlClient:c.value,objectId:i.objectId,pinia:i.appPropsFacade.appState}),re=(le=!1)=>{i.isFocused!==le&&(de(le),ve(le)),u("changeFocus",le)},z=()=>{x.resetCommentAnswer()},J=async le=>{var me,Se;if(!i.isAuthorized){u("needs-auth",{from:"comment-form-submit"}),B.trackAuthorizationClick("comment-form-submit");return}return(me=U.value)!=null&&me.view?Y({commentId:U.value.view.data.id,content:le},Ee=>{var ie,De,O,N,K;const e=((De=(ie=U.value)==null?void 0:ie.view)==null?void 0:De.data.id)||"",t=(K=(N=(O=U.value)==null?void 0:O.view)==null?void 0:N.data.parentComment)==null?void 0:K.id;B.trackEditComment(Ee,e,t),k(),he.value="",w(),ee.value="",re(!1)},Ee=>{var ie,De,O;const N=(O=(De=(ie=U.value)==null?void 0:ie.view)==null?void 0:De.data.parentComment)==null?void 0:O.id;B.trackEditCommentError(Ee,N)}):X({text:le,parentId:(Se=I.value)==null?void 0:Se.id,device:i.device},Ee=>{var ie;B.trackNewComment(Ee,(ie=I.value)==null?void 0:ie.id),Ee!=null&&Ee.id&&(x.resetCommentAnswer(),he.value="",re(!1))},Ee=>{var ie;B.trackNewCommentError(Ee,(ie=I.value)==null?void 0:ie.id)})};He(U,le=>{var me;if(!le){he.value="",ee.value="";return}he.value="",W.value&&x.resetCommentAnswer();const Se=((me=le.view)==null?void 0:me.data.text)||ee.value;ee.value=Se,he.value=Se,re(!0)},{immediate:!0}),He(ee,le=>{he.value=le}),He(()=>!!(he.value||i.isFocused),ce),He(W,(le,me)=>{var Se,Ee,ie,De;ce(!!le),le&&(me&&le&&((Se=me.view)==null?void 0:Se.data.id)!==((Ee=le.view)==null?void 0:Ee.data.id)&&(he.value=""),(!(me!=null&&me.view)||((ie=le.view)==null?void 0:ie.data.id)!==((De=me.view)==null?void 0:De.data.id))&&re(!0))});const se=gS(i.teleportTo,{maxWaitMs:5e3}),Ae=hS({teleportTo:i.teleportTo}),Ie=ae(()=>i.teleportTo!=="body"?{bottom:"100%"}:{bottom:`${i.yOffset??Ae.value}px`});return rt(()=>{var le;if((le=U.value)!=null&&le.view)return;const me=v();me&&(he.value=me.text)}),(le,me)=>q(se)?(oe(),Oe(q(_8),{key:0,to:q(se)},{default:$e(()=>[Te("div",{class:"float-comment-form",style:nn(Ie.value),"data-test":"float-comment-form",onTouchstartPassive:me[0]||(me[0]=Se=>q(ve)(!0))},[I.value&&R.value?(oe(),Oe(q(du),{key:0,"author-name":I.value.author.nick,"author-url":I.value.author.url,text:R.value,"is-blocked":I.value.author.blocked,"is-hidden":ue.value,"use-html":"","is-closable":"",onClose:z},null,8,["author-name","author-url","text","is-blocked","is-hidden"])):ke("",!0),xe(q(Ho),{"is-form-data-fetching":q(M),"is-rude-content":q(H),"is-focused":r.isFocused,expanded:ge.value,"with-donation":V.value,"is-donation-form-shown":q(S),"are-donations-enabled":be.value,content:he.value,"has-fetch-error":q(j),"object-id":r.objectId,"rules-link":q(Yi)(i.siteName),onFormSubmit:J,onDonation:q(Ue),onDonationShown:q(_e),onInput:te,onActivated:E,onHandleFocus:re,onAnalytics:D},null,8,["is-form-data-fetching","is-rude-content","is-focused","expanded","with-donation","is-donation-form-shown","are-donations-enabled","content","has-fetch-error","object-id","rules-link","onDonation","onDonationShown"])],36)]),_:1},8,["to"])):r.teleportTo?ke("",!0):(oe(),ye("div",{key:1,class:"float-comment-form",style:nn(Ie.value),"data-test":"float-comment-form",onTouchstartPassive:me[1]||(me[1]=Se=>q(ve)(!0))},[I.value&&R.value?(oe(),Oe(q(du),{key:0,"author-name":I.value.author.nick,"author-url":I.value.author.url,text:R.value,"is-blocked":I.value.author.blocked,"is-hidden":ue.value,"use-html":"","is-closable":"",onClose:z},null,8,["author-name","author-url","text","is-blocked","is-hidden"])):ke("",!0),xe(q(Ho),{"is-form-data-fetching":q(M),"is-rude-content":q(H),"is-focused":r.isFocused,expanded:ge.value,"with-donation":V.value,"is-donation-form-shown":q(S),"are-donations-enabled":be.value,content:he.value,"has-fetch-error":q(j),"object-id":r.objectId,"rules-link":q(Yi)(i.siteName),onFormSubmit:J,onDonation:q(Ue),onDonationShown:q(_e),onInput:te,onActivated:E,onHandleFocus:re,onAnalytics:D},null,8,["is-form-data-fetching","is-rude-content","is-focused","expanded","with-donation","is-donation-form-shown","are-donations-enabled","content","has-fetch-error","object-id","rules-link","onDonation","onDonationShown"])],36))}});
714let I8=class extends Error{constructor(o,i=""){super(`[SPORTS][COMMENTS_ADAPTER][${o}] ${i}`)}};var zo=(r=>(r.INJECTION_ERROR="INJECTION_ERROR",r.INVALID_PARAMS="INVALID_PARAMS",r.API_ERROR="API_ERROR",r))(zo||{});const ea=(r,o,i="")=>{const u=new I8(o,i);throw r.error(u.message),u},ta=(r,o,i)=>{r?.trim()||ea(i,zo.INVALID_PARAMS,`Invalid ${o}: non-empty string is required`)};let ls;const Nd=r=>(ls||(ls=Zy(r)),ls),T8=(r,o)=>({followUser:async i=>(ta(i,"userId",o),Nd(r).followUser(i)),unfollowUser:async i=>(ta(i,"userId",o),Nd(r).unfollowUser(i))});let bo=class extends Error{constructor(o,i=""){super(`[Sports][User] Code: ${o} ${i}`),this.textToDisplay=i,this.code=o}};var Yn=(r=>(r.MODEL_CREATION_ERROR="MODEL_CREATION_ERROR",r.USER_ID_NOT_EXISTS="USER_ID_NOT_EXISTS",r.REQUEST_ERROR="REQUEST_ERROR",r.USER_POSTS_ERROR="USER_POSTS_ERROR",r.USER_TAGS_ERROR="USER_TAGS_ERROR",r.USER_FOLLOWING_ERROR="USER_FOLLOWING_ERROR",r.USER_BLOGS_ERROR="USER_BLOGS_ERROR",r.USER_BLOGS_SUBSCRIBED_ERROR="USER_BLOGS_SUBSCRIBED_ERROR",r.USER_MARK_AS_READ_ERROR="USER_MARK_AS_READ_ERROR",r.USER_NOTIFICATIONS_LIST_ERROR="USER_NOTIFICATIONS_LIST_ERROR",r.USER_NOTIFICATION_AMOUNT_ERROR="USER_NOTIFICATION_AMOUNT_ERROR",r.USER_SOCIAL_LOGIN_ERROR="USER_SOCIAL_LOGIN_ERROR",r.USER_REMIND_ERROR="USER_REMIND_ERROR",r.USER_REMIND_LIMIT_REACHED_ERROR="USER_REMIND_LIMIT_REACHED_ERROR",r.USER_CROSS_LOGIN_ERROR="USER_CROSS_LOGIN_ERROR",r.USER_ID_MISSING_ERROR="USER_ID_MISSING_ERROR",r.USER_INVALID_PHONE_ERROR="USER_INVALID_PHONE_ERROR",r.USER_INVALID_CODE_ERROR="USER_INVALID_CODE_ERROR",r.USER_CHANGE_EMAIL_ERROR="USER_CHANGE_EMAIL_ERROR",r.USER_CHANGE_PHONE_ERROR="USER_CHANGE_PHONE_ERROR",r.USER_CONFIRM_PHONE_ERROR="USER_CONFIRM_PHONE_ERROR",r))(Yn||{});const em=()=>" ($objectID: ID!, $objectType: BookmarkObjectType!) { bookmarksMutations { create(input: { objectID: $objectID objectType: $objectType }) { success } } }";em.operationName="frontendUser_v2_createBookmark";const tm=()=>" ($objectID: ID!, $objectType: BookmarkObjectType!) { bookmarksMutations { delete(input: { objectID: $objectID objectType: $objectType }) { success } } }";tm.operationName="frontendUser_v2_deleteBookmark";const rm=()=>" ($ID: ID!) { userMutations { follow(ID: $ID) { status } } }";rm.operationName="frontendUser_v2_followUser";const nm=()=>" ($ID: ID!) { userMutations { unfollow(ID: $ID) { status } } }";nm.operationName="frontendUser_v2_unfollowUser";const S8=(r,o)=>{const i=r instanceof Error?r.message:typeof r=="string"?r:"",u=o.trim(),c=i.trim(),p=c.toLowerCase()===u.toLowerCase();return c.length>0&&!p?`${u}: ${c}`:u},R8=(r,o)=>{const i=r!==void 0;return!o&&!i?[]:[{...i?{error:r}:{},...o}]},yi=({error:r,customMessage:o,details:i})=>{const u=S8(r,o),c=R8(r,i);console.error(`[Sports][User] ${u}`,...c)};function B8(r){if(!r)throw new bo(Yn.MODEL_CREATION_ERROR,"отсутствует инстанс Api Client");return{async followUser(o){if(!o)throw new bo(Yn.USER_ID_NOT_EXISTS);try{const i=await r.gqlMutation(rm,{ID:o});if(!i?.userMutations?.follow)throw new bo(Yn.REQUEST_ERROR,"Не удалось подписаться на пользователя");return i.userMutations.follow.status}catch(i){throw yi({error:i,customMessage:"Не удалось подписаться на пользователя",details:{userId:o}}),i}},async unfollowUser(o){if(!o)throw new bo(Yn.USER_ID_NOT_EXISTS);try{const i=await r.gqlMutation(nm,{ID:o});if(!i?.userMutations?.unfollow)throw new bo(Yn.REQUEST_ERROR,"Не удалось отписаться от пользователя");return i.userMutations.unfollow.status}catch(i){throw yi({error:i,customMessage:"Не удалось отписаться от пользователя",details:{userId:o}}),i}},async createBookmark(o){try{return await r.gqlMutation(em,{...o})}catch(i){throw yi({error:i,customMessage:" Не удалось добавить в закладки"}),i}},async deleteBookmark(o){try{return await r.gqlMutation(tm,{...o})}catch(i){throw yi({error:i,customMessage:"Не удалось удалить из закладок"}),i}}}}const _l="AuthProvider";var om=(r=>(r.INJECTION_ERROR="INJECTION_ERROR",r))(om||{});
714class C8 extends Error{constructor(o,i=""){super(`[SPORTS][AUTH] ${o} ${i}`)}}function O8(){const r=Vr(_l);if(!r)throw new C8(om.INJECTION_ERROR,"отсутствует провайдер аутентификации");return function(o,i){if(r.isAuthorized())return o();r.onNotAuthorized(i)}}const wa=(r,o)=>{const i=r.__vccOpts||r;for(const[u,c]of o)i[u]=c;return i};var im=(r=>(r.POST="статью",r.NEWS="новость",r))(im||{}),Ro=(r=>(r.VK="vk",r.FB="fb",r.TW="tw",r.TG="tg",r))(Ro||{});function L8(r,o,i){return{action:"share",label:r,property:{social_network:o,is_adaptive:1,sequence_n:i},value:""}}const N8="recs";var mn=(r=>(r.VIEW="view",r.VIEW_BLOCK="view_block",r.CLICK="click",r.NEW_TAB="new_tab",r.REQUEST="request",r))(mn||{}),am=(r=>(r.RIGHT="right",r.UNDERCONTENT="undercontent",r.INREAD="inread",r))(am||{});const fn=({action:r,place:o,model:i,...u})=>({category:N8,action:r,label:o,property:{is_adaptive:1,model:i,...u},value:""}),D8="content",x8=Symbol("analyticEventCollector");function U8({analyticCollector:r}={}){const o=fe(),i=function(d){const a=document.head.querySelector("meta[property='"+d+"']")||document.head.querySelector("meta[name='"+d+"']");return a&&a.getAttribute("content")||""},u=function(d,a){const h=[" ",",",".","?","!"];let y,g="…",b=d;if(b[0]==="«"&&b[b.length-1]==="»"&&(g="…»"),b.length<a)return b;b=b.substring(0,a-2)+g;for(let v=h.length-1;v>=0;v-=1)if(y=b.lastIndexOf(h[v]),y>-1)return b.substring(0,y)+g;return b},c=(d,a)=>{var h;r&&r.collect(Nt,L8(((h=o.value)==null?void 0:h.placement)??"",d,a+1))},p=()=>({url:i("twitter:url"),title:i("og:title"),description:i("og:description"),image:i("twitter:image"),via:i("twitter:site").replace(/^@/,""),fbAppId:i("fb:app_id")});return{share:(d,a)=>{const h=d.toLowerCase(),y=p(),g=h.substring(0,2);let b="utm_source="+(g==="fa"?"fb":g)+"&utm_medium=share&utm_campaign="+window.location.hostname;y.url[0]==="?"&&(b=y.url.replace("?","")+"&"+b,y.url=window.location.href),b="?"+b;const v=encodeURIComponent(b),w={width:"630",height:"340",personalbar:"0",toolbar:"no",scrollbars:"no",resizable:"yes",location:"no",left:0,top:0};w.left=window.screen.width/2-630/2,w.top=Math.floor(window.screen.height/5);const _=Object.entries(w).map(T=>T.join("=")).join(",");switch(h){case"facebook":{window.open("https://www.facebook.com/dialog/feed?&app_id="+y.fbAppId+"&display=popup&link="+y.url+decodeURIComponent(v)+"&name="+y.title+"&description="+y.description+"&picture="+y.image,"share_dialog",_),c(Ro.FB,a);break}case"vk":{window.open("https://vk.ru/share.php?url="+y.url+v+"&title="+y.title+"&description="+y.description+"&image="+y.image,"share_dialog",_),c(Ro.VK,a);break}case"xtwitter":{let T=y.title;const A=117-("с помощью @"+y.via).length-2;T.length>A&&(T=encodeURIComponent(u(decodeURIComponent(T),A))),window.open("https://twitter.com/share?url="+y.url+v+"&text="+T+"&via="+y.via,"share_dialog",_),c(Ro.TW,a);break}case"whatsapp":{/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&window.open("whatsapp://send?text="+y.title+"%20"+y.description+"%20"+y.url+v,"share_dialog",_);break}case"telegram":{window.open("https://telegram.me/share/?url="+y.url+v,"share_dialog",_),c(Ro.TG,a);break}}},meta:o,getShareData:p}}const k8=()=>{const{getShareData:r}=U8();return{systemShare:async()=>{const o=r();await navigator.share({url:o.url+"?utm_medium=share&utm_campaign="+window.location.hostname,text:o.description,title:o.title})}}},va=()=>Xy(x8,{getCollectors:()=>[new e0],baseParams:{category:D8}});var ir=(r=>(r.DZEN="DZEN",r.RSS="RSS",r.TELEGRAM="TELEGRAM",r.TWITTER="TWITTER",r.VK="VK",r))(ir||{}),Sn=(r=>(r.ARTICLE="ARTICLE",r.BOOKMAKER_OPINION="BOOKMAKER_OPINION",r.CHAT="CHAT",r.CHAT_MESSAGE="CHAT_MESSAGE",r.COMMENT="COMMENT",r.FORUM="FORUM",r.NEWS="NEWS",r.PHOTO="PHOTO",r.POLL="POLL",r.POST="POST",r.STATUS="STATUS",r.USER_NEWS="USER_NEWS",r.VIDEO="VIDEO",r))(Sn||{}),sm=(r=>(r.ALL="ALL",r.NEWS="NEWS",r.POST="POST",r))(sm||{});Sn.POST+"",or.SPORTS+"",or.CYBER+"",Sn.NEWS+"",or.SPORTS+"",or.CYBER+"",or.SPORTS+"",or.CYBER+"";or.SPORTS+"",or.CYBER+"";var ra=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function P8(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var fu={},um={},Ea={};Ea.byteLength=F8;Ea.toByteArray=G8;Ea.fromByteArray=H8;var Sr=[],zt=[],M8=typeof Uint8Array<"u"?Uint8Array:Array,cs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 4,528 bytes, line 714
714+/";for(var kn=0,$8=cs.length;kn<$8;++kn)Sr[kn]=cs[kn],zt[cs.charCodeAt(kn)]=kn;zt[45]=62;zt[95]=63;function lm(r){var o=r.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=r.indexOf("=");i===-1&&(i=o);var u=i===o?0:4-i%4;return[i,u]}function F8(r){var o=lm(r),i=o[0],u=o[1];return(i+u)*3/4-u}function j8(r,o,i){return(o+i)*3/4-i}function G8(r){var o,i=lm(r),u=i[0],c=i[1],p=new M8(j8(r,u,c)),d=0,a=c>0?u-4:u,h;for(h=0;h<a;h+=4)o=zt[r.charCodeAt(h)]<<18|zt[r.charCodeAt(h+1)]<<12|zt[r.charCodeAt(h+2)]<<6|zt[r.charCodeAt(h+3)],p[d++]=o>>16&255,p[d++]=o>>8&255,p[d++]=o&255;return c===2&&(o=zt[r.charCodeAt(h)]<<2|zt[r.charCodeAt(h+1)]>>4,p[d++]=o&255),c===1&&(o=zt[r.charCodeAt(h)]<<10|zt[r.charCodeAt(h+1)]<<4|zt[r.charCodeAt(h+2)]>>2,p[d++]=o>>8&255,p[d++]=o&255),p}function q8(r){return Sr[r>>18&63]+Sr[r>>12&63]+Sr[r>>6&63]+Sr[r&63]}function V8(r,o,i){for(var u,c=[],p=o;p<i;p+=3)u=(r[p]<<16&16711680)+(r[p+1]<<8&65280)+(r[p+2]&255),c.push(q8(u));return c.join("")}function H8(r){for(var o,i=r.length,u=i%3,c=[],p=16383,d=0,a=i-u;d<a;d+=p)c.push(V8(r,d,d+p>a?a:d+p));return u===1?(o=r[i-1],c.push(Sr[o>>2]+Sr[o<<4&63]+"==")):u===2&&(o=(r[i-2]<<8)+r[i-1],c.push(Sr[o>>10]+Sr[o>>4&63]+Sr[o<<2&63]+"=")),c.join("")}var Al={};Al.read=function(r,o,i,u,c){var p,d,a=c*8-u-1,h=(1<<a)-1,y=h>>1,g=-7,b=i?c-1:0,v=i?-1:1,w=r[o+b];for(b+=v,p=w&(1<<-g)-1,w>>=-g,g+=a;g>0;p=p*256+r[o+b],b+=v,g-=8);for(d=p&(1<<-g)-1,p>>=-g,g+=u;g>0;d=d*256+r[o+b],b+=v,g-=8);if(p===0)p=1-y;else{if(p===h)return d?NaN:(w?-1:1)*(1/0);d=d+Math.pow(2,u),p=p-y}return(w?-1:1)*d*Math.pow(2,p-u)};Al.write=function(r,o,i,u,c,p){var d,a,h,y=p*8-c-1,g=(1<<y)-1,b=g>>1,v=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=u?0:p-1,_=u?1:-1,T=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(a=isNaN(o)?1:0,d=g):(d=Math.floor(Math.log(o)/Math.LN2),o*(h=Math.pow(2,-d))<1&&(d--,h*=2),d+b>=1?o+=v/h:o+=v*Math.pow(2,1-b),o*h>=2&&(d++,h/=2),d+b>=g?(a=0,d=g):d+b>=1?(a=(o*h-1)*Math.pow(2,c),d=d+b):(a=o*Math.pow(2,b-1)*Math.pow(2,c),d=0));c>=8;r[i+w]=a&255,w+=_,a/=256,c-=8);for(d=d<<c|a,y+=c;y>0;r[i+w]=d&255,w+=_,d/=256,y-=8);r[i+w-_]|=T*128};(function(r){const o=Ea,i=Al,u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=a,r.SlowBuffer=D,r.INSPECT_MAX_BYTES=50;const c=2147483647;r.kMaxLength=c,a.TYPED_ARRAY_SUPPORT=p(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function p(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function d(e){if(e>c)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,n){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return b(e)}return h(e,t,n)}a.poolSize=8192;function h(e,t,n){if(typeof e=="string")return v(e,t);if(ArrayBuffer.isView(e))return _(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ie(e,ArrayBuffer)||e&&ie(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ie(e,SharedArrayBuffer)||e&&ie(e.buffer,SharedArrayBuffer)))return T(e,t,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const s=e.valueOf&&e.valueOf();if(s!=null&&s!==e)return a.from(s,t,n);const l=A(e);if(l)return l;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,t,n){return h(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function y(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');
714if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function g(e,t,n){return y(e),e<=0?d(e):t!==void 0?typeof n=="string"?d(e).fill(t,n):d(e).fill(t):d(e)}a.alloc=function(e,t,n){return g(e,t,n)};function b(e){return y(e),d(e<0?0:B(e)|0)}a.allocUnsafe=function(e){return b(e)},a.allocUnsafeSlow=function(e){return b(e)};function v(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=x(e,t)|0;let s=d(n);const l=s.write(e,t);return l!==n&&(s=s.slice(0,l)),s}function w(e){const t=e.length<0?0:B(e.length)|0,n=d(t);for(let s=0;s<t;s+=1)n[s]=e[s]&255;return n}function _(e){if(ie(e,Uint8Array)){const t=new Uint8Array(e);return T(t.buffer,t.byteOffset,t.byteLength)}return w(e)}function T(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let s;return t===void 0&&n===void 0?s=new Uint8Array(e):n===void 0?s=new Uint8Array(e,t):s=new Uint8Array(e,t,n),Object.setPrototypeOf(s,a.prototype),s}function A(e){if(a.isBuffer(e)){const t=B(e.length)|0,n=d(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!="number"||De(e.length)?d(0):w(e);if(e.type==="Buffer"&&Array.isArray(e.data))return w(e.data)}function B(e){if(e>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return e|0}function D(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==a.prototype},a.compare=function(e,t){if(ie(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),ie(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,s=t.length;for(let l=0,f=Math.min(n,s);l<f;++l)if(e[l]!==t[l]){n=e[l],s=t[l];break}return n<s?-1:s<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return a.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const s=a.allocUnsafe(t);let l=0;for(n=0;n<e.length;++n){let f=e[n];if(ie(f,Uint8Array))l+f.length>s.length?(a.isBuffer(f)||(f=a.from(f)),f.copy(s,l)):Uint8Array.prototype.set.call(s,f,l);else if(a.isBuffer(f))f.copy(s,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=f.length}return s};function x(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ie(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,s=arguments.length>2&&arguments[2]===!0;if(!s&&n===0)return 0;let l=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Ie(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Se(e).length;default:if(l)return s?-1:Ie(e).length;t=(""+t).toLowerCase(),l=!0}}a.byteLength=x;function W(e,t,n){let s=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return ne(this,t,n);case"utf8":case"utf-8":return H(this,t,n);case"ascii":return he(this,t,n);case"latin1":case"binary":return ge(this,t,n);case"base64":return ue(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,t,n);default:if(s)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}a.prototype._isBuffer=!0;function U(e,t,n){const s=e[t];e[t]=e[n],e[n]=s}a.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)U(this,t,t+1);return this},a.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)U(this,t,t+3),U(this,t+1,t+2);return this},a.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)U(this,t,t+7),U(this,t+1,t+6),U(this,t+2,t+5),U(this,t+3,t+4);return this},a.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?H(this,0,e):W.apply(this,arguments)}
vendor: 14,032 bytes, line 714
714,a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:a.compare(this,e)===0},a.prototype.inspect=function(){let e="";const t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},u&&(a.prototype[u]=a.prototype.inspect),a.prototype.compare=function(e,t,n,s,l){if(ie(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),s===void 0&&(s=0),l===void 0&&(l=this.length),t<0||n>e.length||s<0||l>this.length)throw new RangeError("out of range index");if(s>=l&&t>=n)return 0;if(s>=l)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,s>>>=0,l>>>=0,this===e)return 0;let f=l-s,m=n-t;const L=Math.min(f,m),Z=this.slice(s,l),G=e.slice(t,n);for(let $=0;$<L;++$)if(Z[$]!==G[$]){f=Z[$],m=G[$];break}return f<m?-1:m<f?1:0};function S(e,t,n,s,l){if(e.length===0)return-1;if(typeof n=="string"?(s=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,De(n)&&(n=l?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(l)return-1;n=e.length-1}else if(n<0)if(l)n=0;else return-1;if(typeof t=="string"&&(t=a.from(t,s)),a.isBuffer(t))return t.length===0?-1:M(e,t,n,s,l);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?l?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):M(e,[t],n,s,l);throw new TypeError("val must be string, number or Buffer")}function M(e,t,n,s,l){let f=1,m=e.length,L=t.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(e.length<2||t.length<2)return-1;f=2,m/=2,L/=2,n/=2}function Z($,Q){return f===1?$[Q]:$.readUInt16BE(Q*f)}let G;if(l){let $=-1;for(G=n;G<m;G++)if(Z(e,G)===Z(t,$===-1?0:G-$)){if($===-1&&($=G),G-$+1===L)return $*f}else $!==-1&&(G-=G-$),$=-1}else for(n+L>m&&(n=m-L),G=n;G>=0;G--){let $=!0;for(let Q=0;Q<L;Q++)if(Z(e,G+Q)!==Z(t,Q)){$=!1;break}if($)return G}return-1}a.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},a.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function I(e,t,n,s){n=Number(n)||0;const l=e.length-n;s?(s=Number(s),s>l&&(s=l)):s=l;const f=t.length;s>f/2&&(s=f/2);let m;for(m=0;m<s;++m){const L=parseInt(t.substr(m*2,2),16);if(De(L))return m;e[n+m]=L}return m}function R(e,t,n,s){return Ee(Ie(t,e.length-n),e,n,s)}function C(e,t,n,s){return Ee(le(t),e,n,s)}function V(e,t,n,s){return Ee(Se(t),e,n,s)}function F(e,t,n,s){return Ee(me(t,e.length-n),e,n,s)}a.prototype.write=function(e,t,n,s){if(t===void 0)s="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")s=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,s===void 0&&(s="utf8")):(s=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const l=this.length-t;if((n===void 0||n>l)&&(n=l),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");let f=!1;for(;;)switch(s){case"hex":return I(this,e,t,n);case"utf8":case"utf-8":return R(this,e,t,n);case"ascii":case"latin1":case"binary":return C(this,e,t,n);case"base64":return V(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,e,t,n);default:if(f)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),f=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(e,t,n){return t===0&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function H(e,t,n){n=Math.min(e.length,n);const s=[];let l=t;for(;l<n;){const f=e[l];let m=null,L=f>239?4:f>223?3:f>191?2:1;if(l+L<=n){let Z,G,$,Q;switch(L){case 1:f<128&&(m=f);break;case 2:Z=e[l+1],(Z&192)===128&&(Q=(f&31)<<6|Z&63,Q>127&&(m=Q));break;case 3:Z=e[l+1],G=e[l+2],(Z&192)===128&&(G&192)===128&&(Q=(f&15)<<12|(Z&63)<<6|G&63,Q>2047&&(Q<55296||Q>57343)&&(m=Q));break;case 4:Z=e[l+1],G=e[l+2],$=e[l+3],(Z&192)===128&&(G&192)===128&&($&192)===128&&(Q=(f&15)<<18|(Z&63)<<12|(G&63)<<6|$&63,Q>65535&&Q<1114112&&(m=Q))}}m===null?(m=65533,L=1):m>65535&&(m-=65536,s.push(m>>>10&1023|55296),m=56320|m&1023),s.push(m),l+=L}return X(s)}const j=4096;function X(e){const t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let n="",s=0;for(;s<t;)n+=String.fromCharCode.apply(String,e.slice(s,s+=j));return n}function he(e,t,n){let s="";n=Math.min(e.length,n);for(let l=t;l<n;++l)s+=String.fromCharCode(e[l]&127);return s}function ge(e,t,n){let s="";n=Math.min(e.length,n);for(let l=t;l<n;++l)s+=String.fromCharCode(e[l]);return s}function ne(e,t,n){const s=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>s)&&(n=s);let l="";for(let f=t;f<n;++f)l+=O[e[f]];return l}function be(e,t,n){const s=e.slice(t,n);let l="";for(let f=0;f<s.length-1;f+=2)l+=String.fromCharCode(s[f]+s[f+1]*256);return l}a.prototype.slice=function(e,t){const n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);const s=this.subarray(e,t);return Object.setPrototypeOf(s,a.prototype),s};function P(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e],l=1,f=0;for(;++f<t&&(l*=256);)s+=this[e+f]*l;return s},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e+--t],l=1;for(;t>0&&(l*=256);)s+=this[e+--t]*l;return s},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e=e>>>0,t||P(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||P(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||P(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,l=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(s)+(BigInt(l)<<BigInt(32))}),a.prototype.readBigUInt64BE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],l=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(s)<<BigInt(32))+BigInt(l)}),a.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e],l=1,f=0;for(;++f<t&&(l*=256);)s+=this[e+f]*l;return l*=128,s>=l&&(s-=Math.pow(2,8*t)),s},a.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=t,l=1,f=this[e+--s];for(;s>0&&(l*=256);)f+=this[e+--s]*l;return l*=128,f>=l&&(f-=Math.pow(2,8*t)),f},a.prototype.readInt8=function(e,t){return e=e>>>0,t||P(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},a.prototype.readInt16LE=function(e,t){e=e>>>0,t||P(e,2,this.length);const n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},a.prototype.readInt16BE=function(e,t){e=e>>>0,t||P(e,2,this.length);const n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},a.prototype.readInt32LE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(s)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),a.prototype.readBigInt64BE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(s)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),a.prototype.readFloatLE=function(e,t){return e=e>>>0,t||P(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e=e>>>0,t||P(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||P(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||P(e,8,this.length),i.read(this,e,!1,52,8)};function ee(e,t,n,s,l,f){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>l||t<f)throw new RangeError('"value" argument is out of bounds');if(n+s>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,n,s){if(e=+e,t=t>>>0,n=n>>>0,!s){const m=Math.pow(2,8*n)-1;ee(this,e,t,n,m,0)}let l=1,f=0;for(this[t]=e&255;++f<n&&(l*=256);)this[t+f]=e/l&255;return t+n},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,n,s){if(e=+e,t=t>>>0,n=n>>>0,!s){const m=Math.pow(2,8*n)-1;ee(this,e,t,n,m,0)}let l=n-1,f=1;for(this[t+l]=e&255;--l>=0&&(f*=256);)this[t+l]=e/f&255;return t+n},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,1,255,0),this[t]=e&255,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function Ue(e,t,n,s,l){re(t,s,l,e,n,7);let f=Number(t&BigInt(4294967295));e[n++]=f,f=f>>8,e[n++]=f,f=f>>8,e[n++]=f,f=f>>8,e[n++]=f;let m=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=m,m=m>>8,e[n++]=m,m=m>>8,e[n++]=m,m=m>>8,e[n++]=m,n}function _e(e,t,n,s,l){re(t,s,l,e,n,7);let f=Number(t&BigInt(4294967295));e[n+7]=f,f=f>>8,e[n+6]=f,f=f>>8,e[n+5]=f,f=f>>8,e[n+4]=f;let m=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=m,m=m>>8,e[n+2]=m,m=m>>8,e[n+1]=m,m=m>>8,e[n]=m,n+8}a.prototype.writeBigUInt64LE=N(function(e,t=0){return Ue(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=N(function(e,t=0){return _e(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(e,t,n,s){if(e=+e,t=t>>>0,!s){const L=Math.pow(2,8*n-1);ee(this,e,t,n,L-1,-L)}let l=0,f=1,m=0;for(this[t]=e&255;++l<n&&(f*=256);)e<0&&m===0&&this[t+l-1]!==0&&(m=1),this[t+l]=(e/f>>0)-m&255;return t+n},a.prototype.writeIntBE=function(e,t,n,s){if(e=+e,t=t>>>0,!s){const L=Math.pow(2,8*n-1);ee(this,e,t,n,L-1,-L)}let l=n-1,f=1,m=0;for(this[t+l]=e&255;--l>=0&&(f*=256);)e<0&&m===0&&this[t+l+1]!==0&&(m=1),this[t+l]=(e/f>>0)-m&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},a.prototype.writeBigInt64LE=N(function(e,t=0){return Ue(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=N(function(e,t=0){return _e(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ce(e,t,n,s,l,f){if(n+s>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function de(e,t,n,s,l){return t=+t,n=n>>>0,l||ce(e,t,n,4),i.write(e,t,n,s,23,4),n+4}a.prototype.writeFloatLE=function(e,t,n){return de(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return de(this,e,t,!1,n)};function ve(e,t,n,s,l){return t=+t,n=n>>>0,l||ce(e,t,n,8),i.write(e,t,n,s,52,8),n+8}a.prototype.writeDoubleLE=function(e,t,n){return ve(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return ve(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,s){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!s&&s!==0&&(s=this.length),t>=e.length&&(t=e.length),t||(t=0),s>0&&s<n&&(s=n),s===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-t<s-n&&(s=e.length-t+n);const l=s-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,s):Uint8Array.prototype.set.call(e,this.subarray(n,s),t),l},a.prototype.fill=function(e,t,n,s){if(typeof e=="string"){if(typeof t=="string"?(s=t,t=0,n=this.length):typeof n=="string"&&(s=n,n=this.length),s!==void 0&&typeof s!="str
714ing")throw new TypeError("encoding must be a string");if(typeof s=="string"&&!a.isEncoding(s))throw new TypeError("Unknown encoding: "+s);if(e.length===1){const f=e.charCodeAt(0);(s==="utf8"&&f<128||s==="latin1")&&(e=f)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let l;if(typeof e=="number")for(l=t;l<n;++l)this[l]=e;else{const f=a.isBuffer(e)?e:a.from(e,s),m=f.length;if(m===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(l=0;l<n-t;++l)this[l+t]=f[l%m]}return this};const te={};function E(e,t,n){te[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(s){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:s,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}E("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),E("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),E("ERR_OUT_OF_RANGE",function(e,t,n){let s=`The value of "${e}" is out of range.`,l=n;return Number.isInteger(n)&&Math.abs(n)>2**32?l=k(String(n)):typeof n=="bigint"&&(l=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(l=k(l)),l+="n"),s+=` It must be ${t}. Received ${l}`,s},RangeError);function k(e){let t="",n=e.length;const s=e[0]==="-"?1:0;for(;n>=s+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function Y(e,t,n){z(t,"offset"),(e[t]===void 0||e[t+n]===void 0)&&J(t,e.length-(n+1))}function re(e,t,n,s,l,f){if(e>n||e<t){const m=typeof t=="bigint"?"n":"";let L;throw t===0||t===BigInt(0)?L=`>= 0${m} and < 2${m} ** ${(f+1)*8}${m}`:L=`>= -(2${m} ** ${(f+1)*8-1}${m}) and < 2 ** ${(f+1)*8-1}${m}`,new te.ERR_OUT_OF_RANGE("value",L,e)}Y(s,l,f)}function z(e,t){if(typeof e!="number")throw new te.ERR_INVALID_ARG_TYPE(t,"number",e)}function J(e,t,n){throw Math.floor(e)!==e?(z(e,n),new te.ERR_OUT_OF_RANGE("offset","an integer",e)):t<0?new te.ERR_BUFFER_OUT_OF_BOUNDS:new te.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}const se=/[^+/0-9A-Za-z-_]/g;function Ae(e){if(e=e.split("=")[0],e=e.trim().replace(se,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Ie(e,t){t=t||1/0;let n;const s=e.length;let l=null;const f=[];for(let m=0;m<s;++m){if(n=e.charCodeAt(m),n>55295&&n<57344){if(!l){if(n>56319){(t-=3)>-1&&f.push(239,191,189);continue}else if(m+1===s){(t-=3)>-1&&f.push(239,191,189);continue}l=n;continue}if(n<56320){(t-=3)>-1&&f.push(239,191,189),l=n;continue}n=(l-55296<<10|n-56320)+65536}else l&&(t-=3)>-1&&f.push(239,191,189);if(l=null,n<128){if((t-=1)<0)break;f.push(n)}else if(n<2048){if((t-=2)<0)break;f.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;f.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;f.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return f}function le(e){const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function me(e,t){let n,s,l;const f=[];for(let m=0;m<e.length&&!((t-=2)<0);++m)n=e.charCodeAt(m),s=n>>8,l=n%256,f.push(l),f.push(s);return f}function Se(e){return o.toByteArray(Ae(e))}function Ee(e,t,n,s){let l;for(l=0;l<s&&!(l+n>=t.length||l>=e.length);++l)t[l+n]=e[l];return l}function ie(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function De(e){return e!==e}const O=(function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const s=n*16;for(let l=0;l<16;++l)t[s+l]=e[n]+e[l]}return t})();function N(e){return typeof BigInt>"u"?K:e}function K(){throw new Error("BigInt not supported")}})(um);var pu={exports:{}};(function(r,o){Object.defineProperty(o,"__esModule",{value:!0});
714var i={exports:{}},u=i.exports={},c,p;function d(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?c=setTimeout:c=d}catch{c=d}try{typeof clearTimeout=="function"?p=clearTimeout:p=a}catch{p=a}})();function h(ne){if(c===setTimeout)return setTimeout(ne,0);if((c===d||!c)&&setTimeout)return c=setTimeout,setTimeout(ne,0);try{return c(ne,0)}catch{try{return c.call(null,ne,0)}catch{return c.call(this,ne,0)}}}function y(ne){if(p===clearTimeout)return clearTimeout(ne);if((p===a||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(ne);try{return p(ne)}catch{try{return p.call(null,ne)}catch{return p.call(this,ne)}}}var g=[],b=!1,v,w=-1;function _(){!b||!v||(b=!1,v.length?g=v.concat(g):w=-1,g.length&&T())}function T(){if(!b){var ne=h(_);b=!0;for(var be=g.length;be;){for(v=g,g=[];++w<be;)v&&v[w].run();w=-1,be=g.length}v=null,b=!1,y(ne)}}u.nextTick=function(ne){var be=new Array(arguments.length-1);if(arguments.length>1)for(var P=1;P<arguments.length;P++)be[P-1]=arguments[P];g.push(new A(ne,be)),g.length===1&&!b&&h(T)};function A(ne,be){this.fun=ne,this.array=be}A.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={};function B(){}u.on=B,u.addListener=B,u.once=B,u.off=B,u.removeListener=B,u.removeAllListeners=B,u.emit=B,u.prependListener=B,u.prependOnceListener=B,u.listeners=function(ne){return[]},u.binding=function(ne){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(ne){throw new Error("process.chdir is not supported")},u.umask=function(){return 0};function D(){}var x=i.exports.browser,W=D,U=i.exports.binding,S=D,M=1,I={},R=D,C=D,V=D,F=D,ue=D,H="browser",j="browser",X="browser",he=[],ge={nextTick:i.exports.nextTick,title:i.exports.title,browser:x,env:i.exports.env,argv:i.exports.argv,version:i.exports.version,versions:i.exports.versions,on:i.exports.on,addListener:i.exports.addListener,once:i.exports.once,off:i.exports.off,removeListener:i.exports.removeListener,removeAllListeners:i.exports.removeAllListeners,emit:i.exports.emit,emitWarning:W,prependListener:i.exports.prependListener,prependOnceListener:i.exports.prependOnceListener,listeners:i.exports.listeners,binding:U,cwd:i.exports.cwd,chdir:i.exports.chdir,umask:i.exports.umask,exit:S,pid:M,features:I,kill:R,dlopen:C,uptime:V,memoryUsage:F,uvCounters:ue,platform:H,arch:j,execPath:X,execArgv:he};o.addListener=i.exports.addListener,o.arch=j,o.argv=i.exports.argv,o.binding=U,o.browser=x,o.chdir=i.exports.chdir,o.cwd=i.exports.cwd,o.default=ge,o.dlopen=C,o.emit=i.exports.emit,o.emitWarning=W,o.env=i.exports.env,o.execArgv=he,o.execPath=X,o.exit=S,o.features=I,o.kill=R,o.listeners=i.exports.listeners,o.memoryUsage=F,o.nextTick=i.exports.nextTick,o.off=i.exports.off,o.on=i.exports.on,o.once=i.exports.once,o.pid=M,o.platform=H,o.prependListener=i.exports.prependListener,o.prependOnceListener=i.exports.prependOnceListener,o.removeAllListeners=i.exports.removeAllListeners,o.removeListener=i.exports.removeListener,o.title=i.exports.title,o.umask=i.exports.umask,o.uptime=V,o.uvCounters=ue,o.version=i.exports.version,o.versions=i.exports.versions,o=r.exports=ge})(pu,pu.exports);var z8=pu.exports;(function(r){Object.defineProperty(r,Symbol.toStringTag,{value:"Module"});const o=um,i=z8,u=d=>d&&d.__esModule?d:{default:d},c=u(i),p=globalThis||void 0||self;Object.defineProperty(r,"Buffer",{enumerable:!0,get:()=>o.Buffer}),Object.defineProperty(r,"process",{enumerable:!0,get:()=>c.default}),r.global=p})(fu);var Dd;const cm=typeof window<"u",No=()=>{};cm&&(Dd=window?.navigator)!=null&&Dd.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function hu(r){return typeof r=="function"?r():q(r)}function W8(r,o){function i(...u){return new Promise((c,p)=>{Promise.resolve(r(()=>o.apply(this,u),{fn:o,thisArg:this,args:u})).then(c).catch(p)})}return i}function Y8(r,o={}){let i,u,c=No;const p=d=>{clearTimeout(d),c(),c=No};return d=>{const a=hu(r),h=hu(o.maxWait);return i&&p(i),a<=0||h!==void 0&&h<=0?(u&&(p(u),u=null),Promise.resolve(d())):new Promise((y,g)=>{c=o.rejectOnCancel?g:y,h&&!u&&(u=setTimeout(()=>{i&&p(i),u=null,y(d())},h)),i=setTimeout(()=>{u&&p(u),u=null,y(d())},a)})}}function K8(r){return r}function Q8(r){return sf()?(Mu(r),!0):!1}function J8(r,o=200,i={}){return W8(Y8(o,i),r)}function Z8(r,o=!0){uf()?rt(r):o?r():sr(r)}function xd(r){var o;const i=hu(r);return(o=i?.$el)!=null?o:i}const X8=cm?window:void 0;function e6(r,o=!1){const i=fe(),u=()=>i.value=!!r();return u(),Z8(u,o),i}const mu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof fu.global<"u"?fu.global:typeof self<"u"?self:{},gu="__vueuse_ssr_handlers__";mu[gu]=mu[gu]||{};mu[gu];function dm(r,o,i={}){const{root:u,rootMargin:c="0px",threshold:p=.1,window:d=X8}=i,a=e6(()=>d&&"IntersectionObserver"in d);let h=No;const y=a.value?He(()=>({el:xd(r),root:xd(u)}),({el:b,root:v})=>
714{if(h(),!b)return;const w=new IntersectionObserver(o,{root:v,rootMargin:c,threshold:p});w.observe(b),h=()=>{w.disconnect(),h=No}},{immediate:!0,flush:"post"}):No,g=()=>{h(),y()};return Q8(g),{isSupported:a,stop:g}}var Ud;(function(r){r.UP="UP",r.RIGHT="RIGHT",r.DOWN="DOWN",r.LEFT="LEFT",r.NONE="NONE"})(Ud||(Ud={}));var t6=Object.defineProperty,kd=Object.getOwnPropertySymbols,r6=Object.prototype.hasOwnProperty,n6=Object.prototype.propertyIsEnumerable,Pd=(r,o,i)=>o in r?t6(r,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[o]=i,o6=(r,o)=>{for(var i in o||(o={}))r6.call(o,i)&&Pd(r,i,o[i]);if(kd)for(var i of kd(o))n6.call(o,i)&&Pd(r,i,o[i]);return r};const i6={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};o6({linear:K8},i6);var yu={},fm={},_a={};_a.byteLength=u6;_a.toByteArray=c6;_a.fromByteArray=p6;var Rr=[],Wt=[],a6=typeof Uint8Array<"u"?Uint8Array:Array,ds="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Pn=0,s6=ds.length;Pn<s6;++Pn)Rr[Pn]=ds[Pn],Wt[ds.charCodeAt(Pn)]=Pn;Wt[45]=62;Wt[95]=63;function pm(r){var o=r.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=r.indexOf("=");i===-1&&(i=o);var u=i===o?0:4-i%4;return[i,u]}function u6(r){var o=pm(r),i=o[0],u=o[1];return(i+u)*3/4-u}function l6(r,o,i){return(o+i)*3/4-i}function c6(r){var o,i=pm(r),u=i[0],c=i[1],p=new a6(l6(r,u,c)),d=0,a=c>0?u-4:u,h;for(h=0;h<a;h+=4)o=Wt[r.charCodeAt(h)]<<18|Wt[r.charCodeAt(h+1)]<<12|Wt[r.charCodeAt(h+2)]<<6|Wt[r.charCodeAt(h+3)],p[d++]=o>>16&255,p[d++]=o>>8&255,p[d++]=o&255;return c===2&&(o=Wt[r.charCodeAt(h)]<<2|Wt[r.charCodeAt(h+1)]>>4,p[d++]=o&255),c===1&&(o=Wt[r.charCodeAt(h)]<<10|Wt[r.charCodeAt(h+1)]<<4|Wt[r.charCodeAt(h+2)]>>2,p[d++]=o>>8&255,p[d++]=o&255),p}function d6(r){return Rr[r>>18&63]+Rr[r>>12&63]+Rr[r>>6&63]+Rr[r&63]}function f6(r,o,i){for(var u,c=[],p=o;p<i;p+=3)u=(r[p]<<16&16711680)+(r[p+1]<<8&65280)+(r[p+2]&255),c.push(d6(u));return c.join("")}function p6(r){for(var o,i=r.length,u=i%3,c=[],p=16383,d=0,a=i-u;d<a;d+=p)c.push(f6(r,d,d+p>a?a:d+p));return u===1?(o=r[i-1],c.push(Rr[o>>2]+Rr[o<<4&63]+"==")):u===2&&(o=(r[i-2]<<8)+r[i-1],c.push(Rr[o>>10]+Rr[o>>4&63]+Rr[o<<2&63]+"=")),c.join("")}var Il={};Il.read=function(r,o,i,u,c){var p,d,a=c*8-u-1,h=(1<<a)-1,y=h>>1,g=-7,b=i?c-1:0,v=i?-1:1,w=r[o+b];for(b+=v,p=w&(1<<-g)-1,w>>=-g,g+=a;g>0;p=p*256+r[o+b],b+=v,g-=8);for(d=p&(1<<-g)-1,p>>=-g,g+=u;g>0;d=d*256+r[o+b],b+=v,g-=8);if(p===0)p=1-y;else{if(p===h)return d?NaN:(w?-1:1)*(1/0);d=d+Math.pow(2,u),p=p-y}return(w?-1:1)*d*Math.pow(2,p-u)};Il.write=function(r,o,i,u,c,p){var d,a,h,y=p*8-c-1,g=(1<<y)-1,b=g>>1,v=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=u?0:p-1,_=u?1:-1,T=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(a=isNaN(o)?1:0,d=g):(d=Math.floor(Math.log(o)/Math.LN2),o*(h=Math.pow(2,-d))<1&&(d--,h*=2),d+b>=1?o+=v/h:o+=v*Math.pow(2,1-b),o*h>=2&&(d++,h/=2),d+b>=g?(a=0,d=g):d+b>=1?(a=(o*h-1)*Math.pow(2,c),d=d+b):(a=o*Math.pow(2,b-1)*Math.pow(2,c),d=0));c>=8;r[i+w]=a&255,w+=_,a/=256,c-=8);for(d=d<<c|a,y+=c;y>0;r[i+w]=d&255,w+=_,d/=256,y-=8);r[i+w-_]|=T*128};(function(r){const o=_a,i=Il,u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=a,r.SlowBuffer=D,r.INSPECT_MAX_BYTES=50;const c=2147483647;r.kMaxLength=c,a.TYPED_ARRAY_SUPPORT=p(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function p(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function d(e){if(e>
714c)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,n){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return b(e)}return h(e,t,n)}a.poolSize=8192;function h(e,t,n){if(typeof e=="string")return v(e,t);if(ArrayBuffer.isView(e))return _(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ie(e,ArrayBuffer)||e&&ie(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ie(e,SharedArrayBuffer)||e&&ie(e.buffer,SharedArrayBuffer)))return T(e,t,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const s=e.valueOf&&e.valueOf();if(s!=null&&s!==e)return a.from(s,t,n);const l=A(e);if(l)return l;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,t,n){return h(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function y(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function g(e,t,n){return y(e),e<=0?d(e):t!==void 0?typeof n=="string"?d(e).fill(t,n):d(e).fill(t):d(e)}a.alloc=function(e,t,n){return g(e,t,n)};function b(e){return y(e),d(e<0?0:B(e)|0)}a.allocUnsafe=function(e){return b(e)},a.allocUnsafeSlow=function(e){return b(e)};function v(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=x(e,t)|0;let s=d(n);const l=s.write(e,t);return l!==n&&(s=s.slice(0,l)),s}function w(e){const t=e.length<0?0:B(e.length)|0,n=d(t);for(let s=0;s<t;s+=1)n[s]=e[s]&255;return n}function _(e){if(ie(e,Uint8Array)){const t=new Uint8Array(e);return T(t.buffer,t.byteOffset,t.byteLength)}return w(e)}function T(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let s;return t===void 0&&n===void 0?s=new Uint8Array(e):n===void 0?s=new Uint8Array(e,t):s=new Uint8Array(e,t,n),Object.setPrototypeOf(s,a.prototype),s}function A(e){if(a.isBuffer(e)){const t=B(e.length)|0,n=d(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!="number"||De(e.length)?d(0):w(e);if(e.type==="Buffer"&&Array.isArray(e.data))return w(e.data)}function B(e){if(e>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return e|0}function D(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==a.prototype},a.compare=function(e,t){if(ie(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),ie(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,s=t.length;for(let l=0,f=Math.min(n,s);l<f;++l)if(e[l]!==t[l]){n=e[l],s=t[l];break}return n<s?-1:s<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return a.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const s=a.allocUnsafe(t);let l=0;for(n=0;n<e.length;++n){let f=e[n];if(ie(f,Uint8Array))l+f.length>s.length?(a.isBuffer(f)||(f=a.from(f)),f.copy(s,l)):Uint8Array.prototype.set.call(s,f,l);else if(a.isBuffer(f))f.copy(s,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=f.length}return s};function x(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ie(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,s=arguments.length>2&&arguments[2]===!0;if(!s&&n===0)return 0;let l=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Ie(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Se(e).length;default:if(l)return s?-1:Ie(e).length;t=(""+t).toLowerCase(),l=!0}}a.byteLength=x;function W(e,t,n){let s=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return ne(this,t,n);case"utf8":case"utf-8":return H(this,t,n);case"ascii":return he(this,t,n);case"latin1":case"binary":return ge(this,t,n);case"base64":return ue(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,t,n);default:if(s)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}a.prototype._isBuffer=!0;function U(e,t,n){const s=e[t];e[t]=e[n],e[n]=s}a.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)U(this,t,t+1);return this},a.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)U(this,t,t+3),U(this,t+1,t+2);return this},a.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)U(this,t,t+7),U(this,t+1,t+6),U(this,t+2,t+5),U(this,t+3,t+4);return this},a.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?H(this,0,e):W.apply(this,arguments)}
vendor: 14,032 bytes, line 714
714,a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:a.compare(this,e)===0},a.prototype.inspect=function(){let e="";const t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},u&&(a.prototype[u]=a.prototype.inspect),a.prototype.compare=function(e,t,n,s,l){if(ie(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),s===void 0&&(s=0),l===void 0&&(l=this.length),t<0||n>e.length||s<0||l>this.length)throw new RangeError("out of range index");if(s>=l&&t>=n)return 0;if(s>=l)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,s>>>=0,l>>>=0,this===e)return 0;let f=l-s,m=n-t;const L=Math.min(f,m),Z=this.slice(s,l),G=e.slice(t,n);for(let $=0;$<L;++$)if(Z[$]!==G[$]){f=Z[$],m=G[$];break}return f<m?-1:m<f?1:0};function S(e,t,n,s,l){if(e.length===0)return-1;if(typeof n=="string"?(s=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,De(n)&&(n=l?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(l)return-1;n=e.length-1}else if(n<0)if(l)n=0;else return-1;if(typeof t=="string"&&(t=a.from(t,s)),a.isBuffer(t))return t.length===0?-1:M(e,t,n,s,l);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?l?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):M(e,[t],n,s,l);throw new TypeError("val must be string, number or Buffer")}function M(e,t,n,s,l){let f=1,m=e.length,L=t.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(e.length<2||t.length<2)return-1;f=2,m/=2,L/=2,n/=2}function Z($,Q){return f===1?$[Q]:$.readUInt16BE(Q*f)}let G;if(l){let $=-1;for(G=n;G<m;G++)if(Z(e,G)===Z(t,$===-1?0:G-$)){if($===-1&&($=G),G-$+1===L)return $*f}else $!==-1&&(G-=G-$),$=-1}else for(n+L>m&&(n=m-L),G=n;G>=0;G--){let $=!0;for(let Q=0;Q<L;Q++)if(Z(e,G+Q)!==Z(t,Q)){$=!1;break}if($)return G}return-1}a.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},a.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function I(e,t,n,s){n=Number(n)||0;const l=e.length-n;s?(s=Number(s),s>l&&(s=l)):s=l;const f=t.length;s>f/2&&(s=f/2);let m;for(m=0;m<s;++m){const L=parseInt(t.substr(m*2,2),16);if(De(L))return m;e[n+m]=L}return m}function R(e,t,n,s){return Ee(Ie(t,e.length-n),e,n,s)}function C(e,t,n,s){return Ee(le(t),e,n,s)}function V(e,t,n,s){return Ee(Se(t),e,n,s)}function F(e,t,n,s){return Ee(me(t,e.length-n),e,n,s)}a.prototype.write=function(e,t,n,s){if(t===void 0)s="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")s=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,s===void 0&&(s="utf8")):(s=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const l=this.length-t;if((n===void 0||n>l)&&(n=l),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");let f=!1;for(;;)switch(s){case"hex":return I(this,e,t,n);case"utf8":case"utf-8":return R(this,e,t,n);case"ascii":case"latin1":case"binary":return C(this,e,t,n);case"base64":return V(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,e,t,n);default:if(f)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),f=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(e,t,n){return t===0&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function H(e,t,n){n=Math.min(e.length,n);const s=[];let l=t;for(;l<n;){const f=e[l];let m=null,L=f>239?4:f>223?3:f>191?2:1;if(l+L<=n){let Z,G,$,Q;switch(L){case 1:f<128&&(m=f);break;case 2:Z=e[l+1],(Z&192)===128&&(Q=(f&31)<<6|Z&63,Q>127&&(m=Q));break;case 3:Z=e[l+1],G=e[l+2],(Z&192)===128&&(G&192)===128&&(Q=(f&15)<<12|(Z&63)<<6|G&63,Q>2047&&(Q<55296||Q>57343)&&(m=Q));break;case 4:Z=e[l+1],G=e[l+2],$=e[l+3],(Z&192)===128&&(G&192)===128&&($&192)===128&&(Q=(f&15)<<18|(Z&63)<<12|(G&63)<<6|$&63,Q>65535&&Q<1114112&&(m=Q))}}m===null?(m=65533,L=1):m>65535&&(m-=65536,s.push(m>>>10&1023|55296),m=56320|m&1023),s.push(m),l+=L}return X(s)}const j=4096;function X(e){const t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let n="",s=0;for(;s<t;)n+=String.fromCharCode.apply(String,e.slice(s,s+=j));return n}function he(e,t,n){let s="";n=Math.min(e.length,n);for(let l=t;l<n;++l)s+=String.fromCharCode(e[l]&127);return s}function ge(e,t,n){let s="";n=Math.min(e.length,n);for(let l=t;l<n;++l)s+=String.fromCharCode(e[l]);return s}function ne(e,t,n){const s=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>s)&&(n=s);let l="";for(let f=t;f<n;++f)l+=O[e[f]];return l}function be(e,t,n){const s=e.slice(t,n);let l="";for(let f=0;f<s.length-1;f+=2)l+=String.fromCharCode(s[f]+s[f+1]*256);return l}a.prototype.slice=function(e,t){const n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);const s=this.subarray(e,t);return Object.setPrototypeOf(s,a.prototype),s};function P(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e],l=1,f=0;for(;++f<t&&(l*=256);)s+=this[e+f]*l;return s},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e+--t],l=1;for(;t>0&&(l*=256);)s+=this[e+--t]*l;return s},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e=e>>>0,t||P(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||P(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||P(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,l=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(s)+(BigInt(l)<<BigInt(32))}),a.prototype.readBigUInt64BE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],l=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(s)<<BigInt(32))+BigInt(l)}),a.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e],l=1,f=0;for(;++f<t&&(l*=256);)s+=this[e+f]*l;return l*=128,s>=l&&(s-=Math.pow(2,8*t)),s},a.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=t,l=1,f=this[e+--s];for(;s>0&&(l*=256);)f+=this[e+--s]*l;return l*=128,f>=l&&(f-=Math.pow(2,8*t)),f},a.prototype.readInt8=function(e,t){return e=e>>>0,t||P(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},a.prototype.readInt16LE=function(e,t){e=e>>>0,t||P(e,2,this.length);const n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},a.prototype.readInt16BE=function(e,t){e=e>>>0,t||P(e,2,this.length);const n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},a.prototype.readInt32LE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(s)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),a.prototype.readBigInt64BE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(s)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),a.prototype.readFloatLE=function(e,t){return e=e>>>0,t||P(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e=e>>>0,t||P(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||P(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||P(e,8,this.length),i.read(this,e,!1,52,8)};function ee(e,t,n,s,l,f){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>l||t<f)throw new RangeError('"value" argument is out of bounds');if(n+s>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,n,s){if(e=+e,t=t>>>0,n=n>>>0,!s){const m=Math.pow(2,8*n)-1;ee(this,e,t,n,m,0)}let l=1,f=0;for(this[t]=e&255;++f<n&&(l*=256);)this[t+f]=e/l&255;return t+n},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,n,s){if(e=+e,t=t>>>0,n=n>>>0,!s){const m=Math.pow(2,8*n)-1;ee(this,e,t,n,m,0)}let l=n-1,f=1;for(this[t+l]=e&255;--l>=0&&(f*=256);)this[t+l]=e/f&255;return t+n},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,1,255,0),this[t]=e&255,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function Ue(e,t,n,s,l){re(t,s,l,e,n,7);let f=Number(t&BigInt(4294967295));e[n++]=f,f=f>>8,e[n++]=f,f=f>>8,e[n++]=f,f=f>>8,e[n++]=f;let m=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=m,m=m>>8,e[n++]=m,m=m>>8,e[n++]=m,m=m>>8,e[n++]=m,n}function _e(e,t,n,s,l){re(t,s,l,e,n,7);let f=Number(t&BigInt(4294967295));e[n+7]=f,f=f>>8,e[n+6]=f,f=f>>8,e[n+5]=f,f=f>>8,e[n+4]=f;let m=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=m,m=m>>8,e[n+2]=m,m=m>>8,e[n+1]=m,m=m>>8,e[n]=m,n+8}a.prototype.writeBigUInt64LE=N(function(e,t=0){return Ue(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=N(function(e,t=0){return _e(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(e,t,n,s){if(e=+e,t=t>>>0,!s){const L=Math.pow(2,8*n-1);ee(this,e,t,n,L-1,-L)}let l=0,f=1,m=0;for(this[t]=e&255;++l<n&&(f*=256);)e<0&&m===0&&this[t+l-1]!==0&&(m=1),this[t+l]=(e/f>>0)-m&255;return t+n},a.prototype.writeIntBE=function(e,t,n,s){if(e=+e,t=t>>>0,!s){const L=Math.pow(2,8*n-1);ee(this,e,t,n,L-1,-L)}let l=n-1,f=1,m=0;for(this[t+l]=e&255;--l>=0&&(f*=256);)e<0&&m===0&&this[t+l+1]!==0&&(m=1),this[t+l]=(e/f>>0)-m&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},a.prototype.writeBigInt64LE=N(function(e,t=0){return Ue(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=N(function(e,t=0){return _e(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ce(e,t,n,s,l,f){if(n+s>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function de(e,t,n,s,l){return t=+t,n=n>>>0,l||ce(e,t,n,4),i.write(e,t,n,s,23,4),n+4}a.prototype.writeFloatLE=function(e,t,n){return de(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return de(this,e,t,!1,n)};function ve(e,t,n,s,l){return t=+t,n=n>>>0,l||ce(e,t,n,8),i.write(e,t,n,s,52,8),n+8}a.prototype.writeDoubleLE=function(e,t,n){return ve(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return ve(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,s){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!s&&s!==0&&(s=this.length),t>=e.length&&(t=e.length),t||(t=0),s>0&&s<n&&(s=n),s===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-t<s-n&&(s=e.length-t+n);const l=s-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,s):Uint8Array.prototype.set.call(e,this.subarray(n,s),t),l},a.prototype.fill=function(e,t,n,s){if(typeof e=="string"){if(typeof t=="string"?(s=t,t=0,n=this.length):typeof n=="string"&&(s=n,n=this.length),s!==void 0&&typeof s!="str
714ing")throw new TypeError("encoding must be a string");if(typeof s=="string"&&!a.isEncoding(s))throw new TypeError("Unknown encoding: "+s);if(e.length===1){const f=e.charCodeAt(0);(s==="utf8"&&f<128||s==="latin1")&&(e=f)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let l;if(typeof e=="number")for(l=t;l<n;++l)this[l]=e;else{const f=a.isBuffer(e)?e:a.from(e,s),m=f.length;if(m===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(l=0;l<n-t;++l)this[l+t]=f[l%m]}return this};const te={};function E(e,t,n){te[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(s){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:s,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}E("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),E("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),E("ERR_OUT_OF_RANGE",function(e,t,n){let s=`The value of "${e}" is out of range.`,l=n;return Number.isInteger(n)&&Math.abs(n)>2**32?l=k(String(n)):typeof n=="bigint"&&(l=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(l=k(l)),l+="n"),s+=` It must be ${t}. Received ${l}`,s},RangeError);function k(e){let t="",n=e.length;const s=e[0]==="-"?1:0;for(;n>=s+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function Y(e,t,n){z(t,"offset"),(e[t]===void 0||e[t+n]===void 0)&&J(t,e.length-(n+1))}function re(e,t,n,s,l,f){if(e>n||e<t){const m=typeof t=="bigint"?"n":"";let L;throw t===0||t===BigInt(0)?L=`>= 0${m} and < 2${m} ** ${(f+1)*8}${m}`:L=`>= -(2${m} ** ${(f+1)*8-1}${m}) and < 2 ** ${(f+1)*8-1}${m}`,new te.ERR_OUT_OF_RANGE("value",L,e)}Y(s,l,f)}function z(e,t){if(typeof e!="number")throw new te.ERR_INVALID_ARG_TYPE(t,"number",e)}function J(e,t,n){throw Math.floor(e)!==e?(z(e,n),new te.ERR_OUT_OF_RANGE("offset","an integer",e)):t<0?new te.ERR_BUFFER_OUT_OF_BOUNDS:new te.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}const se=/[^+/0-9A-Za-z-_]/g;function Ae(e){if(e=e.split("=")[0],e=e.trim().replace(se,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Ie(e,t){t=t||1/0;let n;const s=e.length;let l=null;const f=[];for(let m=0;m<s;++m){if(n=e.charCodeAt(m),n>55295&&n<57344){if(!l){if(n>56319){(t-=3)>-1&&f.push(239,191,189);continue}else if(m+1===s){(t-=3)>-1&&f.push(239,191,189);continue}l=n;continue}if(n<56320){(t-=3)>-1&&f.push(239,191,189),l=n;continue}n=(l-55296<<10|n-56320)+65536}else l&&(t-=3)>-1&&f.push(239,191,189);if(l=null,n<128){if((t-=1)<0)break;f.push(n)}else if(n<2048){if((t-=2)<0)break;f.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;f.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;f.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return f}function le(e){const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function me(e,t){let n,s,l;const f=[];for(let m=0;m<e.length&&!((t-=2)<0);++m)n=e.charCodeAt(m),s=n>>8,l=n%256,f.push(l),f.push(s);return f}function Se(e){return o.toByteArray(Ae(e))}function Ee(e,t,n,s){let l;for(l=0;l<s&&!(l+n>=t.length||l>=e.length);++l)t[l+n]=e[l];return l}function ie(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function De(e){return e!==e}const O=(function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const s=n*16;for(let l=0;l<16;++l)t[s+l]=e[n]+e[l]}return t})();function N(e){return typeof BigInt>"u"?K:e}function K(){throw new Error("BigInt not supported")}})(fm);var bu={exports:{}};(function(r,o){Object.defineProperty(o,"__esModule",{value:!0});
714var i={exports:{}},u=i.exports={},c,p;function d(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?c=setTimeout:c=d}catch{c=d}try{typeof clearTimeout=="function"?p=clearTimeout:p=a}catch{p=a}})();function h(ne){if(c===setTimeout)return setTimeout(ne,0);if((c===d||!c)&&setTimeout)return c=setTimeout,setTimeout(ne,0);try{return c(ne,0)}catch{try{return c.call(null,ne,0)}catch{return c.call(this,ne,0)}}}function y(ne){if(p===clearTimeout)return clearTimeout(ne);if((p===a||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(ne);try{return p(ne)}catch{try{return p.call(null,ne)}catch{return p.call(this,ne)}}}var g=[],b=!1,v,w=-1;function _(){!b||!v||(b=!1,v.length?g=v.concat(g):w=-1,g.length&&T())}function T(){if(!b){var ne=h(_);b=!0;for(var be=g.length;be;){for(v=g,g=[];++w<be;)v&&v[w].run();w=-1,be=g.length}v=null,b=!1,y(ne)}}u.nextTick=function(ne){var be=new Array(arguments.length-1);if(arguments.length>1)for(var P=1;P<arguments.length;P++)be[P-1]=arguments[P];g.push(new A(ne,be)),g.length===1&&!b&&h(T)};function A(ne,be){this.fun=ne,this.array=be}A.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={};function B(){}u.on=B,u.addListener=B,u.once=B,u.off=B,u.removeListener=B,u.removeAllListeners=B,u.emit=B,u.prependListener=B,u.prependOnceListener=B,u.listeners=function(ne){return[]},u.binding=function(ne){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(ne){throw new Error("process.chdir is not supported")},u.umask=function(){return 0};function D(){}var x=i.exports.browser,W=D,U=i.exports.binding,S=D,M=1,I={},R=D,C=D,V=D,F=D,ue=D,H="browser",j="browser",X="browser",he=[],ge={nextTick:i.exports.nextTick,title:i.exports.title,browser:x,env:i.exports.env,argv:i.exports.argv,version:i.exports.version,versions:i.exports.versions,on:i.exports.on,addListener:i.exports.addListener,once:i.exports.once,off:i.exports.off,removeListener:i.exports.removeListener,removeAllListeners:i.exports.removeAllListeners,emit:i.exports.emit,emitWarning:W,prependListener:i.exports.prependListener,prependOnceListener:i.exports.prependOnceListener,listeners:i.exports.listeners,binding:U,cwd:i.exports.cwd,chdir:i.exports.chdir,umask:i.exports.umask,exit:S,pid:M,features:I,kill:R,dlopen:C,uptime:V,memoryUsage:F,uvCounters:ue,platform:H,arch:j,execPath:X,execArgv:he};o.addListener=i.exports.addListener,o.arch=j,o.argv=i.exports.argv,o.binding=U,o.browser=x,o.chdir=i.exports.chdir,o.cwd=i.exports.cwd,o.default=ge,o.dlopen=C,o.emit=i.exports.emit,o.emitWarning=W,o.env=i.exports.env,o.execArgv=he,o.execPath=X,o.exit=S,o.features=I,o.kill=R,o.listeners=i.exports.listeners,o.memoryUsage=F,o.nextTick=i.exports.nextTick,o.off=i.exports.off,o.on=i.exports.on,o.once=i.exports.once,o.pid=M,o.platform=H,o.prependListener=i.exports.prependListener,o.prependOnceListener=i.exports.prependOnceListener,o.removeAllListeners=i.exports.removeAllListeners,o.removeListener=i.exports.removeListener,o.title=i.exports.title,o.umask=i.exports.umask,o.uptime=V,o.uvCounters=ue,o.version=i.exports.version,o.versions=i.exports.versions,o=r.exports=ge})(bu,bu.exports);var h6=bu.exports;(function(r){Object.defineProperty(r,Symbol.toStringTag,{value:"Module"});const o=fm,i=h6,u=d=>d&&d.__esModule?d:{default:d},c=u(i),p=globalThis||void 0||self;Object.defineProperty(r,"Buffer",{enumerable:!0,get:()=>o.Buffer}),Object.defineProperty(r,"process",{enumerable:!0,get:()=>c.default}),r.global=p})(yu);var Md=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof yu.global<"u"?yu.global:typeof self<"u"?self:{},Li={},hm={},Aa={};Aa.byteLength=y6;Aa.toByteArray=w6;Aa.fromByteArray=_6;var Br=[],Yt=[],m6=typeof Uint8Array<"u"?Uint8Array:Array,fs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Mn=0,g6=fs.length;Mn<g6;++Mn)Br[Mn]=fs[Mn],Yt[fs.charCodeAt(Mn)]=Mn;Yt[45]=62;Yt[95]=63;function mm(r){var o=r.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=r.indexOf("=");i===-1&&(i=o);var u=i===o?0:4-i%4;return[i,u]}function y6(r){var o=mm(r),i=o[0],u=o[1];return(i+u)*3/4-u}function b6(r,o,i){return(o+i)*3/4-i}function w6(r){var o,i=mm(r),u=i[0],c=i[1],p=new m6(b6(r,u,c)),d=0,a=c>0?u-4:u,h;for(h=0;h<a;h+=4)o=Yt[r.charCodeAt(h)]<<18|Yt[r.charCodeAt(h+1)]<<12|Yt[r.charCodeAt(h+2)]<<6|Yt[r.charCodeAt(h+3)],p[d++]=o>>16&255,p[d++]=o>>8&255,p[d++]=o&255;return c===2&&(o=Yt[r.charCodeAt(h)]<<2|Yt[r.charCodeAt(h+1)]>>4,p[d++]=o&255),c===1&&(o=Yt[r.charCodeAt(h)]<<10|Yt[r.charCodeAt(h+1)]<<4|Yt[r.charCodeAt(h+2)]>>2,p[d++]=o>>8&255,p[d++]=o&255),p}function v6(r){return Br[r>>18&63]+Br[r>>12&63]+Br[r>>6&63]+Br[r&63]}function E6(r,o,i){for(var u,c=[],p=o;p<i;p+=3)u=(r[p]<<16&16711680)+(r[p+1]<<8&65280)+(r[p+2]&255),c.push(v6(u));return c.join("")}function _6(r){for(var o,i=r.length,u=i%3,c=[],p=16383,d=0,a=i-u;d<a;d+=p)c.push(E6(r,d,d+p>a?a:d+p));return u===1?(o=r[i-1],c.push(Br[o>>2]+Br[o<<4&63]+"==")):u===2&&(o=(r[i-2]<<8)+r[i-1],c.push(Br[o>>10]+Br[o>>4&63]+Br[o<<2&63]+"=")),c.join("")}var Tl={};
714Tl.read=function(r,o,i,u,c){var p,d,a=c*8-u-1,h=(1<<a)-1,y=h>>1,g=-7,b=i?c-1:0,v=i?-1:1,w=r[o+b];for(b+=v,p=w&(1<<-g)-1,w>>=-g,g+=a;g>0;p=p*256+r[o+b],b+=v,g-=8);for(d=p&(1<<-g)-1,p>>=-g,g+=u;g>0;d=d*256+r[o+b],b+=v,g-=8);if(p===0)p=1-y;else{if(p===h)return d?NaN:(w?-1:1)*(1/0);d=d+Math.pow(2,u),p=p-y}return(w?-1:1)*d*Math.pow(2,p-u)};Tl.write=function(r,o,i,u,c,p){var d,a,h,y=p*8-c-1,g=(1<<y)-1,b=g>>1,v=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=u?0:p-1,_=u?1:-1,T=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(a=isNaN(o)?1:0,d=g):(d=Math.floor(Math.log(o)/Math.LN2),o*(h=Math.pow(2,-d))<1&&(d--,h*=2),d+b>=1?o+=v/h:o+=v*Math.pow(2,1-b),o*h>=2&&(d++,h/=2),d+b>=g?(a=0,d=g):d+b>=1?(a=(o*h-1)*Math.pow(2,c),d=d+b):(a=o*Math.pow(2,b-1)*Math.pow(2,c),d=0));c>=8;r[i+w]=a&255,w+=_,a/=256,c-=8);for(d=d<<c|a,y+=c;y>0;r[i+w]=d&255,w+=_,d/=256,y-=8);r[i+w-_]|=T*128};(function(r){const o=Aa,i=Tl,u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=a,r.SlowBuffer=D,r.INSPECT_MAX_BYTES=50;const c=2147483647;r.kMaxLength=c,a.TYPED_ARRAY_SUPPORT=p(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function p(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function d(e){if(e>c)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,n){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return b(e)}return h(e,t,n)}a.poolSize=8192;function h(e,t,n){if(typeof e=="string")return v(e,t);if(ArrayBuffer.isView(e))return _(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ie(e,ArrayBuffer)||e&&ie(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ie(e,SharedArrayBuffer)||e&&ie(e.buffer,SharedArrayBuffer)))return T(e,t,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const s=e.valueOf&&e.valueOf();if(s!=null&&s!==e)return a.from(s,t,n);const l=A(e);if(l)return l;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,t,n){return h(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function y(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function g(e,t,n){return y(e),e<=0?d(e):t!==void 0?typeof n=="string"?d(e).fill(t,n):d(e).fill(t):d(e)}a.alloc=function(e,t,n){return g(e,t,n)};function b(e){return y(e),d(e<0?0:B(e)|0)}a.allocUnsafe=function(e){return b(e)},a.allocUnsafeSlow=function(e){return b(e)};function v(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=x(e,t)|0;let s=d(n);const l=s.write(e,t);return l!==n&&(s=s.slice(0,l)),s}function w(e){const t=e.length<0?0:B(e.length)|0,n=d(t);for(let s=0;s<t;s+=1)n[s]=e[s]&255;return n}function _(e){if(ie(e,Uint8Array)){const t=new Uint8Array(e);return T(t.buffer,t.byteOffset,t.byteLength)}return w(e)}function T(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let s;return t===void 0&&n===void 0?s=new Uint8Array(e):n===void 0?s=new Uint8Array(e,t):s=new Uint8Array(e,t,n),Object.setPrototypeOf(s,a.prototype),s}function A(e){if(a.isBuffer(e)){const t=B(e.length)|0,n=d(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!="number"||De(e.length)?d(0):w(e);if(e.type==="Buffer"&&Array.isArray(e.data))return w(e.data)}function B(e){if(e>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return e|0}function D(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==a.prototype},a.compare=function(e,t){if(ie(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),ie(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!
714a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,s=t.length;for(let l=0,f=Math.min(n,s);l<f;++l)if(e[l]!==t[l]){n=e[l],s=t[l];break}return n<s?-1:s<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return a.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const s=a.allocUnsafe(t);let l=0;for(n=0;n<e.length;++n){let f=e[n];if(ie(f,Uint8Array))l+f.length>s.length?(a.isBuffer(f)||(f=a.from(f)),f.copy(s,l)):Uint8Array.prototype.set.call(s,f,l);else if(a.isBuffer(f))f.copy(s,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=f.length}return s};function x(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ie(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,s=arguments.length>2&&arguments[2]===!0;if(!s&&n===0)return 0;let l=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Ie(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Se(e).length;default:if(l)return s?-1:Ie(e).length;t=(""+t).toLowerCase(),l=!0}}a.byteLength=x;function W(e,t,n){let s=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return ne(this,t,n);case"utf8":case"utf-8":return H(this,t,n);case"ascii":return he(this,t,n);case"latin1":case"binary":return ge(this,t,n);case"base64":return ue(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,t,n);default:if(s)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}a.prototype._isBuffer=!0;function U(e,t,n){const s=e[t];e[t]=e[n],e[n]=s}a.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)U(this,t,t+1);return this},a.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)U(this,t,t+3),U(this,t+1,t+2);return this},a.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)U(this,t,t+7),U(this,t+1,t+6),U(this,t+2,t+5),U(this,t+3,t+4);return this},a.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?H(this,0,e):W.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:a.compare(this,e)===0},a.prototype.inspect=function(){let e="";const t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},u&&(a.prototype[u]=a.prototype.inspect),a.prototype.compare=function(e,t,n,s,l){if(ie(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),s===void 0&&(s=0),l===void 0&&(l=this.length),t<0||n>e.length||s<0||l>this.length)throw new RangeError("out of range index");if(s>=l&&t>=n)return 0;if(s>=l)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,s>>>=0,l>>>=0,this===e)return 0;let f=l-s,m=n-t;const L=Math.min(f,m),Z=this.slice(s,l),G=e.slice(t,n);for(let $=0;$<L;++$)if(Z[$]!==G[$]){f=Z[$],m=G[$];break}return f<m?-1:m<f?1:0};function S(e,t,n,s,l){if(e.length===0)return-1;if(typeof n=="string"?(s=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,De(n)&&(n=l?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(l)return-1;n=e.length-1}else if(n<0)if(l)n=0;else return-1;if(typeof t=="string"&&(t=a.from(t,s)),a.isBuffer(t))return t.length===0?-1:M(e,t,n,s,l);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?l?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):M(e,[t],n,s,l);throw new TypeError("val must be string, number or Buffer")}function M(e,t,n,s,l){let f=1,m=e.length,L=t.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(e.length<2||t.length<2)return-1;f=2,m/=2,L/=2,n/=2}function Z($,Q){return f===1?$[Q]:$.readUInt16BE(Q*f)}let G;if(l){let $=-1;for(G=n;G<m;G++)if(Z(e,G)===Z(t,$===-1?0:G-$)){if($===-1&&($=G),G-$+1===L)return $*f}else $!==-1&&(G-=G-$),$=-1}else for(n+L>m&&(n=m-L),G=n;G>=0;G--){let $=!0;for(let Q=0;Q<L;Q++)if(Z(e,G+Q)!==Z(t,Q)){$=!1;break}if($)return G}return-1}a.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},a.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function I(e,t,n,s){n=Number(n)||0;const l=e.length-n;s?(s=Number(s),s>l&&(s=l)):s=l;const f=t.length;s>f/2&&(s=f/2);let m;
vendor: 11,536 bytes, line 714
714for(m=0;m<s;++m){const L=parseInt(t.substr(m*2,2),16);if(De(L))return m;e[n+m]=L}return m}function R(e,t,n,s){return Ee(Ie(t,e.length-n),e,n,s)}function C(e,t,n,s){return Ee(le(t),e,n,s)}function V(e,t,n,s){return Ee(Se(t),e,n,s)}function F(e,t,n,s){return Ee(me(t,e.length-n),e,n,s)}a.prototype.write=function(e,t,n,s){if(t===void 0)s="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")s=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,s===void 0&&(s="utf8")):(s=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const l=this.length-t;if((n===void 0||n>l)&&(n=l),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");let f=!1;for(;;)switch(s){case"hex":return I(this,e,t,n);case"utf8":case"utf-8":return R(this,e,t,n);case"ascii":case"latin1":case"binary":return C(this,e,t,n);case"base64":return V(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,e,t,n);default:if(f)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),f=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(e,t,n){return t===0&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function H(e,t,n){n=Math.min(e.length,n);const s=[];let l=t;for(;l<n;){const f=e[l];let m=null,L=f>239?4:f>223?3:f>191?2:1;if(l+L<=n){let Z,G,$,Q;switch(L){case 1:f<128&&(m=f);break;case 2:Z=e[l+1],(Z&192)===128&&(Q=(f&31)<<6|Z&63,Q>127&&(m=Q));break;case 3:Z=e[l+1],G=e[l+2],(Z&192)===128&&(G&192)===128&&(Q=(f&15)<<12|(Z&63)<<6|G&63,Q>2047&&(Q<55296||Q>57343)&&(m=Q));break;case 4:Z=e[l+1],G=e[l+2],$=e[l+3],(Z&192)===128&&(G&192)===128&&($&192)===128&&(Q=(f&15)<<18|(Z&63)<<12|(G&63)<<6|$&63,Q>65535&&Q<1114112&&(m=Q))}}m===null?(m=65533,L=1):m>65535&&(m-=65536,s.push(m>>>10&1023|55296),m=56320|m&1023),s.push(m),l+=L}return X(s)}const j=4096;function X(e){const t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let n="",s=0;for(;s<t;)n+=String.fromCharCode.apply(String,e.slice(s,s+=j));return n}function he(e,t,n){let s="";n=Math.min(e.length,n);for(let l=t;l<n;++l)s+=String.fromCharCode(e[l]&127);return s}function ge(e,t,n){let s="";n=Math.min(e.length,n);for(let l=t;l<n;++l)s+=String.fromCharCode(e[l]);return s}function ne(e,t,n){const s=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>s)&&(n=s);let l="";for(let f=t;f<n;++f)l+=O[e[f]];return l}function be(e,t,n){const s=e.slice(t,n);let l="";for(let f=0;f<s.length-1;f+=2)l+=String.fromCharCode(s[f]+s[f+1]*256);return l}a.prototype.slice=function(e,t){const n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);const s=this.subarray(e,t);return Object.setPrototypeOf(s,a.prototype),s};function P(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e],l=1,f=0;for(;++f<t&&(l*=256);)s+=this[e+f]*l;return s},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e+--t],l=1;for(;t>0&&(l*=256);)s+=this[e+--t]*l;return s},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e=e>>>0,t||P(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||P(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||P(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,l=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(s)+(BigInt(l)<<BigInt(32))}),a.prototype.readBigUInt64BE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],l=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(s)<<BigInt(32))+BigInt(l)}),a.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e],l=1,f=0;for(;++f<t&&(l*=256);)s+=this[e+f]*l;return l*=128,s>=l&&(s-=Math.pow(2,8*t)),s},a.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=t,l=1,f=this[e+--s];for(;s>0&&(l*=256);)f+=this[e+--s]*l;return l*=128,f>=l&&(f-=Math.pow(2,8*t)),f},a.prototype.readInt8=function(e,t){return e=e>>>0,t||P(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},a.prototype.readInt16LE=function(e,t){e=e>>>0,t||P(e,2,this.length);const n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},a.prototype.readInt16BE=function(e,t){e=e>>>0,t||P(e,2,this.length);const n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},a.prototype.readInt32LE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(s)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),a.prototype.readBigInt64BE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(s)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),a.prototype.readFloatLE=function(e,t){return e=e>>>0,t||P(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e=e>>>0,t||P(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||P(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||P(e,8,this.length),i.read(this,e,!1,52,8)};function ee(e,t,n,s,l,f){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>l||t<f)throw new RangeError('"value" argument is out of bounds');if(n+s>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,n,s){if(e=+e,t=t>>>0,n=n>>>0,!s){const m=Math.pow(2,8*n)-1;ee(this,e,t,n,m,0)}let l=1,f=0;for(this[t]=e&255;++f<n&&(l*=256);)this[t+f]=e/l&255;return t+n},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,n,s){if(e=+e,t=t>>>0,n=n>>>0,!s){const m=Math.pow(2,8*n)-1;ee(this,e,t,n,m,0)}let l=n-1,f=1;for(this[t+l]=e&255;--l>=0&&(f*=256);)this[t+l]=e/f&255;return t+n},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,1,255,0),this[t]=e&255,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function Ue(e,t,n,s,l){re(t,s,l,e,n,7);let f=Number(t&BigInt(4294967295));e[n++]=f,f=f>>8,e[n++]=f,f=f>>8,e[n++]=f,f=f>>8,e[n++]=f;let m=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=m,m=m>>8,e[n++]=m,m=m>>8,e[n++]=m,m=m>>8,e[n++]=m,n}function _e(e,t,n,s,l){re(t,s,l,e,n,7);let f=Number(t&BigInt(4294967295));e[n+7]=f,f=f>>8,e[n+6]=f,f=f>>8,e[n+5]=f,f=f>>8,e[n+4]=f;let m=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=m,m=m>>8,e[n+2]=m,m=m>>8,e[n+1]=m,m=m>>8,e[n]=m,n+8}a.prototype.writeBigUInt64LE=N(function(e,t=0){return Ue(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=N(function(e,t=0){return _e(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(e,t,n,s){if(e=+e,t=t>>>0,!s){const L=Math.pow(2,8*n-1);ee(this,e,t,n,L-1,-L)}let l=0,f=1,m=0;for(this[t]=e&255;++l<n&&(f*=256);)e<0&&m===0&&this[t+l-1]!==0&&(m=1),this[t+l]=(e/f>>0)-m&255;return t+n},a.prototype.writeIntBE=function(e,t,n,s){if(e=+e,t=t>>>0,!s){const L=Math.pow(2,8*n-1);ee(this,e,t,n,L-1,-L)}let l=n-1,f=1,m=0;for(this[t+l]=e&255;--l>=0&&(f*=256);)e<0&&m===0&&this[t+l+1]!==0&&(m=1),this[t+l]=(e/f>>0)-m&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},a.prototype.writeBigInt64LE=N(function(e,t=0){return Ue(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=N(function(e,t=0){return _e(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ce(e,t,n,s,l,f){if(n+s>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function de(e,t,n,s,l){return t=+t,n=n>>>0,l||ce(e,t,n,4),i.write(e,t,n,s,23,4),n+4}a.prototype.writeFloatLE=function(e,t,n){return de(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return de(this,e,t,!1,n)};function ve(e,t,n,s,l){return t=+t,n=n>>>0,l||ce(e,t,n,8),i.write(e,t,n,s,52,8),n+8}a.prototype.writeDoubleLE=function(e,t,n){return ve(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return ve(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,s){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!s&&s!==0&&(s=this.length),t>=e.length&&(t=e.length),t||(t=0),s>0&&s<n&&(s=n),s===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-t<s-n&&(s=e.length-t+n);const l=s-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,s):Uint8Array.prototype.set.call(e,this.subarray(n,s),t),l},a.prototype.fill=function(e,t,n,s){if(typeof e=="string"){if(typeof t=="string"?(s=t,t=0,n=this.length):typeof n=="string"&&(s=n,n=this.length),s!==void 0&&typeof s!="str
714ing")throw new TypeError("encoding must be a string");if(typeof s=="string"&&!a.isEncoding(s))throw new TypeError("Unknown encoding: "+s);if(e.length===1){const f=e.charCodeAt(0);(s==="utf8"&&f<128||s==="latin1")&&(e=f)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let l;if(typeof e=="number")for(l=t;l<n;++l)this[l]=e;else{const f=a.isBuffer(e)?e:a.from(e,s),m=f.length;if(m===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(l=0;l<n-t;++l)this[l+t]=f[l%m]}return this};const te={};function E(e,t,n){te[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(s){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:s,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}E("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),E("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),E("ERR_OUT_OF_RANGE",function(e,t,n){let s=`The value of "${e}" is out of range.`,l=n;return Number.isInteger(n)&&Math.abs(n)>2**32?l=k(String(n)):typeof n=="bigint"&&(l=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(l=k(l)),l+="n"),s+=` It must be ${t}. Received ${l}`,s},RangeError);function k(e){let t="",n=e.length;const s=e[0]==="-"?1:0;for(;n>=s+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function Y(e,t,n){z(t,"offset"),(e[t]===void 0||e[t+n]===void 0)&&J(t,e.length-(n+1))}function re(e,t,n,s,l,f){if(e>n||e<t){const m=typeof t=="bigint"?"n":"";let L;throw t===0||t===BigInt(0)?L=`>= 0${m} and < 2${m} ** ${(f+1)*8}${m}`:L=`>= -(2${m} ** ${(f+1)*8-1}${m}) and < 2 ** ${(f+1)*8-1}${m}`,new te.ERR_OUT_OF_RANGE("value",L,e)}Y(s,l,f)}function z(e,t){if(typeof e!="number")throw new te.ERR_INVALID_ARG_TYPE(t,"number",e)}function J(e,t,n){throw Math.floor(e)!==e?(z(e,n),new te.ERR_OUT_OF_RANGE("offset","an integer",e)):t<0?new te.ERR_BUFFER_OUT_OF_BOUNDS:new te.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}const se=/[^+/0-9A-Za-z-_]/g;function Ae(e){if(e=e.split("=")[0],e=e.trim().replace(se,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Ie(e,t){t=t||1/0;let n;const s=e.length;let l=null;const f=[];for(let m=0;m<s;++m){if(n=e.charCodeAt(m),n>55295&&n<57344){if(!l){if(n>56319){(t-=3)>-1&&f.push(239,191,189);continue}else if(m+1===s){(t-=3)>-1&&f.push(239,191,189);continue}l=n;continue}if(n<56320){(t-=3)>-1&&f.push(239,191,189),l=n;continue}n=(l-55296<<10|n-56320)+65536}else l&&(t-=3)>-1&&f.push(239,191,189);if(l=null,n<128){if((t-=1)<0)break;f.push(n)}else if(n<2048){if((t-=2)<0)break;f.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;f.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;f.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return f}function le(e){const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function me(e,t){let n,s,l;const f=[];for(let m=0;m<e.length&&!((t-=2)<0);++m)n=e.charCodeAt(m),s=n>>8,l=n%256,f.push(l),f.push(s);return f}function Se(e){return o.toByteArray(Ae(e))}function Ee(e,t,n,s){let l;for(l=0;l<s&&!(l+n>=t.length||l>=e.length);++l)t[l+n]=e[l];return l}function ie(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function De(e){return e!==e}const O=(function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const s=n*16;for(let l=0;l<16;++l)t[s+l]=e[n]+e[l]}return t})();function N(e){return typeof BigInt>"u"?K:e}function K(){throw new Error("BigInt not supported")}})(hm);var gm={exports:{}},dt=gm.exports={},mr,gr;function wu(){throw new Error("setTimeout has not been defined")}function vu(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?mr=setTimeout:mr=wu}catch{mr=wu}try{typeof clearTimeout=="function"?gr=clearTimeout:gr=vu}catch{gr=vu}})();function ym(r){if(mr===setTimeout)return setTimeout(r,0);if((mr===wu||!mr)&&setTimeout)return mr=setTimeout,setTimeout(r,0);try{return mr(r,0)}catch{try{return mr.call(null,r,0)}catch{return mr.call(this,r,0)}}}function A6(r){if(gr===clearTimeout)return clearTimeout(r);
714if((gr===vu||!gr)&&clearTimeout)return gr=clearTimeout,clearTimeout(r);try{return gr(r)}catch{try{return gr.call(null,r)}catch{return gr.call(this,r)}}}var Fr=[],ro=!1,vn,Ni=-1;function I6(){!ro||!vn||(ro=!1,vn.length?Fr=vn.concat(Fr):Ni=-1,Fr.length&&bm())}function bm(){if(!ro){var r=ym(I6);ro=!0;for(var o=Fr.length;o;){for(vn=Fr,Fr=[];++Ni<o;)vn&&vn[Ni].run();Ni=-1,o=Fr.length}vn=null,ro=!1,A6(r)}}dt.nextTick=function(r){var o=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)o[i-1]=arguments[i];Fr.push(new wm(r,o)),Fr.length===1&&!ro&&ym(bm)};function wm(r,o){this.fun=r,this.array=o}wm.prototype.run=function(){this.fun.apply(null,this.array)};dt.title="browser";dt.browser=!0;dt.env={};dt.argv=[];dt.version="";dt.versions={};function Qr(){}dt.on=Qr;dt.addListener=Qr;dt.once=Qr;dt.off=Qr;dt.removeListener=Qr;dt.removeAllListeners=Qr;dt.emit=Qr;dt.prependListener=Qr;dt.prependOnceListener=Qr;dt.listeners=function(r){return[]};dt.binding=function(r){throw new Error("process.binding is not supported")};dt.cwd=function(){return"/"};dt.chdir=function(r){throw new Error("process.chdir is not supported")};dt.umask=function(){return 0};var T6=gm.exports;(function(r){Object.defineProperty(r,Symbol.toStringTag,{value:"Module"});const o=hm,i=T6,u=d=>d&&d.__esModule?d:{default:d},c=u(i),p=globalThis||void 0||self;Object.defineProperty(r,"Buffer",{enumerable:!0,get:()=>o.Buffer}),Object.defineProperty(r,"process",{enumerable:!0,get:()=>c.default}),r.global=p})(Li);var $d;(function(r){(function(o){var i=typeof Md=="object"?Md:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),u=c(r);typeof i.Reflect>"u"?i.Reflect=r:u=c(i.Reflect,u),o(u);function c(p,d){return function(a,h){typeof p[a]!="function"&&Object.defineProperty(p,a,{configurable:!0,writable:!0,value:h}),d&&d(a,h)}}})(function(o){var i=Object.prototype.hasOwnProperty,u=typeof Symbol=="function",c=u&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",p=u&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",d=typeof Object.create=="function",a={__proto__:[]}instanceof Array,h=!d&&!a,y={create:d?function(){return De(Object.create(null))}:a?function(){return De({__proto__:null})}:function(){return De({})},has:h?function(O,N){return i.call(O,N)}:function(O,N){return N in O},get:h?function(O,N){return i.call(O,N)?O[N]:void 0}:function(O,N){return O[N]}},g=Object.getPrototypeOf(Function),b=typeof Li.process=="object"&&Li.process.env&&Li.process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",v=!b&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Se(),w=!b&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Ee(),_=!b&&typeof WeakMap=="function"?WeakMap:ie(),T=new _;function A(O,N,K,e){if(P(K)){if(!k(O))throw new TypeError;if(!re(N))throw new TypeError;return C(O,N)}else{if(!k(O))throw new TypeError;if(!_e(N))throw new TypeError;if(!_e(e)&&!P(e)&&!ee(e))throw new TypeError;return ee(e)&&(e=void 0),K=E(K),V(O,N,K,e)}}o("decorate",A);function B(O,N){function K(e,t){if(!_e(e))throw new TypeError;if(!P(t)&&!z(t))throw new TypeError;he(O,N,e,t)}return K}o("metadata",B);function D(O,N,K,e){if(!_e(K))throw new TypeError;return P(e)||(e=E(e)),he(O,N,K,e)}o("defineMetadata",D);function x(O,N,K){if(!_e(N))throw new TypeError;return P(K)||(K=E(K)),ue(O,N,K)}o("hasMetadata",x);function W(O,N,K){if(!_e(N))throw new TypeError;return P(K)||(K=E(K)),H(O,N,K)}o("hasOwnMetadata",W);function U(O,N,K){if(!_e(N))throw new TypeError;return P(K)||(K=E(K)),j(O,N,K)}o("getMetadata",U);function S(O,N,K){if(!_e(N))throw new TypeError;return P(K)||(K=E(K)),X(O,N,K)}o("getOwnMetadata",S);function M(O,N){if(!_e(O))throw new TypeError;return P(N)||(N=E(N)),ge(O,N)}o("getMetadataKeys",M);function I(O,N){if(!_e(O))throw new TypeError;return P(N)||(N=E(N)),ne(O,N)}o("getOwnMetadataKeys",I);function R(O,N,K){if(!_e(N))throw new TypeError;P(K)||(K=E(K));var e=F(N,K,!1);if(P(e)||!e.delete(O))return!1;if(e.size>0)return!0;var t=T.get(N);return t.delete(K),t.size>0||T.delete(N),!0}o("deleteMetadata",R);function C(O,N){for(var K=O.length-1;K>=0;--K){var e=O[K],t=e(N);if(!P(t)&&!ee(t)){if(!re(t))throw new TypeError;N=t}}return N}function V(O,N,K,e){for(var t=O.length-1;t>=0;--t){var n=O[t],s=n(N,K,e);
714if(!P(s)&&!ee(s)){if(!_e(s))throw new TypeError;e=s}}return e}function F(O,N,K){var e=T.get(O);if(P(e)){if(!K)return;e=new v,T.set(O,e)}var t=e.get(N);if(P(t)){if(!K)return;t=new v,e.set(N,t)}return t}function ue(O,N,K){var e=H(O,N,K);if(e)return!0;var t=me(N);return ee(t)?!1:ue(O,t,K)}function H(O,N,K){var e=F(N,K,!1);return P(e)?!1:ve(e.has(O))}function j(O,N,K){var e=H(O,N,K);if(e)return X(O,N,K);var t=me(N);if(!ee(t))return j(O,t,K)}function X(O,N,K){var e=F(N,K,!1);if(!P(e))return e.get(O)}function he(O,N,K,e){var t=F(K,e,!0);t.set(O,N)}function ge(O,N){var K=ne(O,N),e=me(O);if(e===null)return K;var t=ge(e,N);if(t.length<=0)return K;if(K.length<=0)return t;for(var n=new w,s=[],l=0,f=K;l<f.length;l++){var m=f[l],L=n.has(m);L||(n.add(m),s.push(m))}for(var Z=0,G=t;Z<G.length;Z++){var m=G[Z],L=n.has(m);L||(n.add(m),s.push(m))}return s}function ne(O,N){var K=[],e=F(O,N,!1);if(P(e))return K;for(var t=e.keys(),n=se(t),s=0;;){var l=Ie(n);if(!l)return K.length=s,K;var f=Ae(l);try{K[s]=f}catch(m){try{le(n)}finally{throw m}}s++}}function be(O){if(O===null)return 1;switch(typeof O){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return O===null?1:6;default:return 6}}function P(O){return O===void 0}function ee(O){return O===null}function Ue(O){return typeof O=="symbol"}function _e(O){return typeof O=="object"?O!==null:typeof O=="function"}function ce(O,N){switch(be(O)){case 0:return O;case 1:return O;case 2:return O;case 3:return O;case 4:return O;case 5:return O}var K="string",e=J(O,c);if(e!==void 0){var t=e.call(O,K);if(_e(t))throw new TypeError;return t}return de(O)}function de(O,N){var K,e;{var t=O.toString;if(Y(t)){var e=t.call(O);if(!_e(e))return e}var K=O.valueOf;if(Y(K)){var e=K.call(O);if(!_e(e))return e}}throw new TypeError}function ve(O){return!!O}function te(O){return""+O}function E(O){var N=ce(O);return Ue(N)?N:te(N)}function k(O){return Array.isArray?Array.isArray(O):O instanceof Object?O instanceof Array:Object.prototype.toString.call(O)==="[object Array]"}function Y(O){return typeof O=="function"}function re(O){return typeof O=="function"}function z(O){switch(be(O)){case 3:return!0;case 4:return!0;default:return!1}}function J(O,N){var K=O[N];if(K!=null){if(!Y(K))throw new TypeError;return K}}function se(O){var N=J(O,p);if(!Y(N))throw new TypeError;var K=N.call(O);if(!_e(K))throw new TypeError;return K}function Ae(O){return O.value}function Ie(O){var N=O.next();return N.done?!1:N}function le(O){var N=O.return;N&&N.call(O)}function me(O){var N=Object.getPrototypeOf(O);if(typeof O!="function"||O===g||N!==g)return N;var K=O.prototype,e=K&&Object.getPrototypeOf(K);if(e==null||e===Object.prototype)return N;var t=e.constructor;return typeof t!="function"||t===O?N:t}function Se(){var O={},N=[],K=(function(){function s(l,f,m){this._index=0,this._keys=l,this._values=f,this._selector=m}return s.prototype["@@iterator"]=function(){return this},s.prototype[p]=function(){return this},s.prototype.next=function(){var l=this._index;if(l>=0&&l<this._keys.length){var f=this._selector(this._keys[l],this._values[l]);return l+1>=this._keys.length?(this._index=-1,this._keys=N,this._values=N):this._index++,{value:f,done:!1}}return{value:void 0,done:!0}},s.prototype.throw=function(l){throw this._index>=0&&(this._index=-1,this._keys=N,this._values=N),l},s.prototype.return=function(l){return this._index>=0&&(this._index=-1,this._keys=N,this._values=N),{value:l,done:!0}},s})();return(function(){function s(){this._keys=[],this._values=[],this._cacheKey=O,this._cacheIndex=-2}return Object.defineProperty(s.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),s.prototype.has=function(l){return this._find(l,!1)>=0},s.prototype.get=function(l){var f=this._find(l,!1);return f>=0?this._values[f]:void 0},s.prototype.set=function(l,f){var m=this._find(l,!0);return this._values[m]=f,this},s.prototype.delete=function(l){var f=this._find(l,!1);if(f>=0){for(var m=this._keys.length,L=f+1;L<m;L++)this._keys[L-1]=this._keys[L],this._values[L-1]=this._values[L];return this._keys.length--,this._values.length--,l===this._cacheKey&&(this._cacheKey=O,this._cacheIndex=-2),!0}return!1},s.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=O,this._cacheIndex=-2},s.prototype.keys=function(){return new K(this._keys,this._values,e)},s.prototype.values=function(){return new K(this._keys,this._values,t)},s.prototype.entries=function(){return new K(this._keys,this._values,n)},s.prototype["@@iterator"]=function(){return this.entries()},s.prototype[p]=function(){return this.entries()},s.prototype._find=function(l,f){return this._cacheKey!==l&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=l)),this._cacheIndex<0&&f&&(this._cacheIndex=this._keys.length,this._keys.push(l),this._values.push(void 0)),this._cacheIndex},s})();function e(s,l){return s}function t(s,l){return l}function n(s,l){return[s,l]}}function Ee(){return(function(){function O(){this._map=new v}return Object.defineProperty(O.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),O.prototype.has=function(N){return this._map.has(N)},O.prototype.add=function(N){return this._map.set(N,N),this},O.prototype.delete=function(N){return this._map.delete(N)},O.prototype.clear=function(){this._map.clear()},O.prototype.keys=function(){return this._map.keys()},O.prototype.values=function(){return this._map.values()},O.prototype.entries=function(){return this._map.entries()},O.prototype["@@iterator"]=function(){return this.keys()},O.prototype[p]=function(){return this.keys()},O})()}function ie(){var O=16,N=y.create(),K=e();return(function(){function f(){this._key=e()}return f.prototype.has=function(m){var L=t(m,!1);return L!==void 0?y.has(L,this._key):!1},f.prototype.get=function(m){var L=t(m,!1);return L!==void 0?y.get(L,this._key):void 0},f.prototype.set=function(m,L){var Z=t(m,!0);return Z[this._key]=L,this},f.prototype.delete=function(m){var L=t(m,!1);return L!==void 0?delete L[this._key]:!1},f.prototype.clear=function(){this._key=e()},f})();function e(){var f;do f="@@WeakMap@@"+l();while(y.has(N,f));return N[f]=!0,f}function t(f,m){if(!i.call(f,K)){if(!m)return;Object.defineProperty(f,K,{value:y.create()})}return f[K]}function n(f,m){for(var L=0;L<m;++L)f[L]=Math.random()*255|0;return f}function s(f){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(f)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(f)):n(new Uint8Array(f),f):n(new Array(f),f)}function l(){var f=s(O);f[6]=f[6]&79|64,f[8]=f[8]&191|128;for(var m="",L=0;L<O;++L){var Z=f[L];(L===4||L===6||L===8)&&(m+="-"),Z<16&&(m+="0"),m+=Z.toString(16).toLowerCase()}return m}}function De(O){return O.__=void 0,delete O.__,O}})})($d||($d={}));
714let S6=class extends Error{constructor(r){super(`[Inject] ${r}`)}};const Fd=new WeakMap([[Array,Symbol(Array.name)]]),Qo=r=>{if(typeof r=="symbol")return r;if(typeof r=="string")return Symbol(r);if(r.prototype){let o=Fd.get(r);return o||(o=Symbol(r.name),Fd.set(r,o)),o}throw new S6(`Тип значения ${typeof r} не поддерживается для токенов.`)},R6="www",B6="m",ps="ru";function Sl(r=!1){if(typeof window>"u")return ps;const o=window.location.hostname.match(/m?\.?(www|cyber|m)\.?([^.]*)\.(sports.ru)/);if(r)return o?!!o[2]:!0;if(o)switch(o[1]){case R6:case B6:return ps;default:return o[1]}return ps}Qo("CURRENT_SITE");Qo("IS_CURRENT_SITE_DEV");Qo("REFERRER");Qo("LOCATION");Qo("IS_MOBILE");Sl();Sl(!0);var vm=(r=>(r.ERROR="error",r.WARN="warn",r.INFO="info",r))(vm||{});vm.INFO;var Em=(r=>(r.ERROR="error",r.WARN="warn",r.INFO="info",r))(Em||{});Em.INFO;Sl(!0);const C6=Symbol("userSingleton"),_m="https://dumpster.cdn.sports.ru/8/c9/35f55cb438f318080291fd6d3f245.png";fe(!1);im.POST;ir.TELEGRAM+"",ir.DZEN+"",ir.RSS+"",ir.TWITTER+"",ir.VK+"";ir.TELEGRAM+"",ir.DZEN+"",ir.RSS+"",ir.TWITTER+"",ir.VK+"";const O6=Le({__name:"DiffRating",props:{diffRating:{type:Number,default:0}},setup(r){const o=r,i=ae(()=>o.diffRating>0?`+${o.diffRating}`:o.diffRating);return(u,c)=>(oe(),ye("span",{class:Xe(["diff-rating",{"diff-rating--red":r.diffRating<0,"diff-rating--green":r.diffRating>0}])},ze(i.value),3))}}
714),Am=wa(O6,[["__scopeId","data-v-5baa86bf"]]),L6=["href"],N6={class:"document-recommendations-item__body"},D6=["src","alt"],x6={class:"document-recommendations-item__info"},U6={class:"document-recommendations-item__title"},k6={class:"document-recommendations-item__reactions"},P6=Le({__name:"DocumentRecommendationsItem",props:{url:{type:String,required:!0},title:{type:String,default:""},rate:{type:[String,Number],default:""},commentsCount:{type:Number,default:0},hot:{type:Boolean,default:!1},backgroundImage:{type:String,default:""}},emits:["click","click_middle","view"],setup(r,{emit:o}){Qd(a=>({"598e90e2":i}));const i=`url(${_m})`,u=o,c=fe(!1),p=fe(),d=()=>{c.value=!0};return rt(()=>{if(p.value){const{stop:a}=dm(p.value,([{isIntersecting:h}])=>{h&&(u("view"),a())})}}),(a,h)=>(oe(),ye("a",{ref_key:"cardRef",ref:p,target:"_blank",href:r.url,class:"document-recommendations-item",onClick:h[0]||(h[0]=y=>u("click")),onMouseup:h[1]||(h[1]=Jn(y=>u("click_middle"),["middle"]))},[Te("div",N6,[r.backgroundImage&&!c.value?(oe(),ye("img",{key:0,class:"document-recommendations-item__image",src:r.backgroundImage,loading:"lazy",alt:r.title,onError:d},null,40,D6)):ke("",!0),Te("div",x6,[Te("span",U6,ze(q(df)(r.title)),1),Te("div",k6,[r.rate?(oe(),Oe(Am,{key:0,"diff-rating":Number(r.rate)},null,8,["diff-rating"])):ke("",!0),r.commentsCount?(oe(),Oe(q(ff),{key:1,type:"button",hot:r.hot,value:r.commentsCount,variant:q(Mo).TERTIARY},null,8,["hot","value","variant"])):ke("",!0)])])])],40,L6))}}),M6=wa(P6,[["__scopeId","data-v-b0960f31"]]);var Lt=(r=>(r.OWN="own",r.OWN_NEW="own-new",r.OWN_CYBER="own-cyber",r))(Lt||{});const wo={[Sn.POST]:"post",[Sn.NEWS]:"news",[Sn.POLL]:"poll"};var Eu=(r=>(r.NEWS="NEWS",r.POST="POST",r))(Eu||{}),qr=(r=>(r.RU="ru",r.CYBER="cyber",r.UA="ua",r.BY="by",r.KZ="kz",r))(qr||{}),Im=(r=>(r.BEST_ONLY="best-only",r.CONTROL="control",r))(Im||{});const na={name:"blog-posts",groups:Im},$6=[{group:na.groups.BEST_ONLY,probability:30},{group:na.groups.CONTROL,probability:70}];function F6(r){return{[na.name]:r.getGroup(na.name,$6)}}var Tm=(r=>(r.WOCHANGES="wochanges",r.WITHOUTAD="withoutad",r.LARGER="larger",r.CONTROL="control",r))(Tm||{});const Kn={name:"adtest",groups:Tm},j6=[{group:Kn.groups.WOCHANGES,probability:10},{group:Kn.groups.WITHOUTAD,probability:10},{group:Kn.groups.LARGER,probability:10},{group:Kn.groups.CONTROL,probability:70}];function G6(r){return{[Kn.name]:r.getGroup(Kn.name,j6)}}var Sm=(r=>(r.A="a",r.B="b",r.C="c",r))(Sm||{});const Do={name:"userGroup",groups:Sm},q6=[{group:Do.groups.A,probability:1},{group:Do.groups.B,probability:1},{group:Do.groups.C,probability:1}];function V6(r){return{[Do.name]:r.getGroup(Do.name,q6)}}var Rm=(r=>(r.FIRST="1",r.SECOND="2",r.THIRD="3",r))(Rm||{});const xo={name:"home-fires",groups:Rm},H6=[{group:xo.groups.FIRST,probability:1},{group:xo.groups.SECOND,probability:1},{group:xo.groups.THIRD,probability:1}];function z6(r){return{[xo.name]:r.getGroup(xo.name,H6)}}var Bm=(r=>(r.FB_REPLACED_WITH_YANDEX="fb-replaced-with-yandex",r.NO_CHANGES_FIRST="no-changes-first",r.NO_CHANGES_SECOND="no-changes-second",r))(Bm||{});const Uo={name:"user-panel-auth",groups:Bm},W6=[{group:Uo.groups.FB_REPLACED_WITH_YANDEX,probability:1},{group:Uo.groups.NO_CHANGES_FIRST,probability:1},{group:Uo.groups.NO_CHANGES_SECOND,probability:1}];function Y6(r){return{[Uo.name]:r.getGroup(Uo.name,W6)}}var Cm=(r=>(r.OWN="own",r.OWN_NEW="own-new",r.OWN_CYBER="own-cyber",r))(Cm||{});const lo={name:"own-recommender",groups:Cm,default:"own-new"},Om=[{group:lo.groups.OWN_NEW,probability:100}],K6=[{group:lo.groups.OWN_CYBER,probability:100}],Q6=[{group:lo.groups.OWN_NEW,probability:100}],J6={[qr.RU]:Om,[qr.CYBER]:K6,[qr.KZ]:Q6};function Z6(r){switch(r){case qr.CYBER:return"1.2";case qr.RU:return"1.1";case qr.KZ:return"1.1";default:return"1.0"}}function X6(r){const o=r.getCurrentSite(),i=Z6(o),u=J6[o]||Om;return{[lo.name]:r.getGroup(lo.name,u,i)}}var Lm=(r=>(r.A="a",r.B="b",r))(Lm||{});const oa={name:"userGroupOf2",groups:Lm},eL=[{group:oa.groups.A,probability:50},{group:oa.groups.B,probability:50}];function tL(r){return{[oa.name]:r.getGroup(oa.name,eL)}}var Nm=(r=>(r.A="a",r.B="b",r.C="c",r.D="d",r))(Nm||{});const Qn={name:"userGroupOf4",groups:Nm},rL=[{group:Qn.groups.A,probability:25},{group:Qn.groups.B,probability:25},{group:Qn.groups.C,probability:25},{group:Qn.groups.D,probability:25}];function nL(r){return{[Qn.name]:r.getGroup(Qn.name,rL)}}const oL="1.0";var Dm=(r=>(r.TRIBUNA="tribuna",r.PROJECTOR="projector",r.APP="app",r))(Dm||{});const ko={name:"post-promo",groups:Dm},iL=[{group:ko.groups.TRIBUNA,probability:30},{group:ko.groups.PROJECTOR,probability:30},{group:ko.groups.APP,probability:40}];function aL(r){return{[ko.name]:r.getGroup(ko.name,iL,oL)}}var xm=(r=>(r.A="a",r.B="b",r))(xm||{});const ia={name:"matchPredictionVersion2",groups:xm},sL=[{group:ia.groups.A,probability:50},{group:ia.groups.B,probability:50}],uL="1.0";function lL(r){return{[ia.name]:r.getGroup(ia.name,sL,uL)}}var Um=(r=>(r.LANDING_REGISTRATION_CREATION="LANDING_REGISTRATION_CREATION",r.LANDING_CREATION_REGISTRATION="LANDING_CREATION_REGISTRATION",r.CREATION_REGISTRATION="CREATION_REGISTRATION",r))(Um||{});const Po={name:"sirenaFantasyJourney",groups:Um},cL=[{group:Po.groups.LANDING_REGISTRATION_CREATION,probability:33},{group:Po.groups.LANDING_CREATION_REGISTRATION,probability:33},{group:Po.groups.CREATION_REGISTRATION,probability:33}],dL="1.0";function fL(r){return{[Po.name]:r.getGroup(Po.name,cL,dL)}}var km=(r=>(r.STANDARD="standard",r.COUPON="coupon",r))(km||{});const aa={name:"page-header",groups:km},pL=[{group:aa.groups.STANDARD,probability:50},{group:aa.groups.COUPON,probability:50}];function hL(r){return{[aa.name]:r.getGroup(aa.name,pL)}}let mL=class{constructor(r){this._instance=r,this._groups={},this.setupGroups()}getActiveGroup(r,o){return this._groups[r]||o}setupGroups(){this._groups=this.getGroupsFromSettings([G6,F6,z6,X6,V6,Y6,tL,nL,aL,lL,fL,hL])}getGroupsFromSettings(r){return r.reduce((o,i)=>Object.assign({},o,i(this._instance)),{})}};const hs={},gL={storagePrefix:"utils:split-testing:",storageSuffix:":group"};let yL=class{constructor(r,o={}){this.deps=r,this.options=o,this.deps=r,this.options={...gL,...o}}getTestKey(r){return this.options.storagePrefix+r+this.options.storageSuffix}setTest(r,o,i="1.0",u){const{group:c}=this.deps.randomSelector.selectWithProbability(o,!1),p=this.getTestKey(r);if(u&&u.session){const d={data:c,version:i};window.sessionStorage.setItem(p,JSON.stringify(d))}return this.deps.localStorage.set(p,c,i),c}removeTest(r,o){const i=this.getTestKey(r);o&&o.session&&window.sessionStorage.removeItem(i),this.deps.localStorage.remove(i)}getDataFromStorage(r,o){const i=this.getTestKey(r);return o&&o.session?this.parseData(window.sessionStorage.getItem(i)):this.deps.localStorage.getData(i,!1,!0)}parseData(r){return r===null?{data:"",version:""}:JSON.parse(r)}getGroup(r,o,i,u=!1){const c=this.getDataFromStorage(r,{session:u}),p=!!c&&typeof c!="boolean"&&typeof c!="string"&&!!c.data,d=!p||!c.version&&i||i&&c.version!==i;let a="";return p&&(a=c.data),d&&(a=this.setTest(r,o,i,{session:u})),a}getCurrentSite(){return this.deps.currentSite||qr.RU}removeGroup(r){this.removeTest(r)}getGroupPerView(r,o){if(r in hs)return hs[r];const{group:i}=this.deps.randomSelector.selectWithProbability(o,!1);return hs[r]=i,i}getGroupPerSession(r,o,i){return this.getGroup(r,o,i,!0)}removeGroupPerSession(r){this.removeTest(r,{session:!0})}};var Pm={},Cn={},bL=ra&&ra.__extends||(function(){var r=function(o,i){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var p in c)Object.prototype.hasOwnProperty.call(c,p)&&(u[p]=c[p])},r(o,i)};return function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");r(o,i);function u(){this.constructor=o}
714o.prototype=i===null?Object.create(i):(u.prototype=i.prototype,new u)}})();Object.defineProperty(Cn,"__esModule",{value:!0});Cn.RandomSelector=Cn.RandomSelectorError=void 0;var _u=(function(r){bL(o,r);function o(i){var u=r.call(this,i)||this;return u.msg=i,u}return o})(Error);Cn.RandomSelectorError=_u;var Mm=(function(){function r(){}return r.prototype.selectWithProbability=function(o,i){var u=o.reduce(function(a,h){if(!("probability"in h))throw new _u("Error: There is no probability set for value: "+h.group);return a+h.probability},0);if(u===0)throw new _u("Error: Total sum of probabilities must be greater than 0");var c=Math.floor(Math.random()*u)+1,p={probability:0,group:""},d=0;return o.some(function(a,h){if(u-=a.probability,u<c)return p=a,d=h,!0}),i?d:p},r})();Cn.RandomSelector=Mm;var wL=new Mm;Cn.default=wL;(function(r){var o=ra&&ra.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=Cn;Object.defineProperty(r,"default",{enumerable:!0,get:function(){return o(i).default}})})(Pm);const vL=P8(Pm);var Au={},$m={},Ia={};Ia.byteLength=AL;Ia.toByteArray=TL;Ia.fromByteArray=BL;var Cr=[],Kt=[],EL=typeof Uint8Array<"u"?Uint8Array:Array,ms="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var $n=0,_L=ms.length;$n<_L;++$n)Cr[$n]=ms[$n],Kt[ms.charCodeAt($n)]=$n;Kt[45]=62;Kt[95]=63;function Fm(r){var o=r.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=r.indexOf("=");i===-1&&(i=o);var u=i===o?0:4-i%4;return[i,u]}function AL(r){var o=Fm(r),i=o[0],u=o[1];return(i+u)*3/4-u}function IL(r,o,i){return(o+i)*3/4-i}function TL(r){var o,i=Fm(r),u=i[0],c=i[1],p=new EL(IL(r,u,c)),d=0,a=c>0?u-4:u,h;for(h=0;h<a;h+=4)o=Kt[r.charCodeAt(h)]<<18|Kt[r.charCodeAt(h+1)]<<12|Kt[r.charCodeAt(h+2)]<<6|Kt[r.charCodeAt(h+3)],p[d++]=o>>16&255,p[d++]=o>>8&255,p[d++]=o&255;return c===2&&(o=Kt[r.charCodeAt(h)]<<2|Kt[r.charCodeAt(h+1)]>>4,p[d++]=o&255),c===1&&(o=Kt[r.charCodeAt(h)]<<10|Kt[r.charCodeAt(h+1)]<<4|Kt[r.charCodeAt(h+2)]>>2,p[d++]=o>>8&255,p[d++]=o&255),p}function SL(r){return Cr[r>>18&63]+Cr[r>>12&63]+Cr[r>>6&63]+Cr[r&63]}function RL(r,o,i){for(var u,c=[],p=o;p<i;p+=3)u=(r[p]<<16&16711680)+(r[p+1]<<8&65280)+(r[p+2]&255),c.push(SL(u));return c.join("")}function BL(r){for(var o,i=r.length,u=i%3,c=[],p=16383,d=0,a=i-u;d<a;d+=p)c.push(RL(r,d,d+p>a?a:d+p));return u===1?(o=r[i-1],c.push(Cr[o>>2]+Cr[o<<4&63]+"==")):u===2&&(o=(r[i-2]<<8)+r[i-1],c.push(Cr[o>>10]+Cr[o>>4&63]+Cr[o<<2&63]+"=")),c.join("")}var Rl={};Rl.read=function(r,o,i,u,c){var p,d,a=c*8-u-1,h=(1<<a)-1,y=h>>1,g=-7,b=i?c-1:0,v=i?-1:1,w=r[o+b];for(b+=v,p=w&(1<<-g)-1,w>>=-g,g+=a;g>0;p=p*256+r[o+b],b+=v,g-=8);for(d=p&(1<<-g)-1,p>>=-g,g+=u;g>0;d=d*256+r[o+b],b+=v,g-=8);if(p===0)p=1-y;else{if(p===h)return d?NaN:(w?-1:1)*(1/0);d=d+Math.pow(2,u),p=p-y}return(w?-1:1)*d*Math.pow(2,p-u)};Rl.write=function(r,o,i,u,c,p){var d,a,h,y=p*8-c-1,g=(1<<y)-1,b=g>>1,v=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=u?0:p-1,_=u?1:-1,T=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(a=isNaN(o)?1:0,d=g):(d=Math.floor(Math.log(o)/Math.LN2),o*(h=Math.pow(2,-d))<1&&(d--,h*=2),d+b>=1?o+=v/h:o+=v*Math.pow(2,1-b),o*h>=2&&(d++,h/=2),d+b>=g?(a=0,d=g):d+b>=1?(a=(o*h-1)*Math.pow(2,c),d=d+b):(a=o*Math.pow(2,b-1)*Math.pow(2,c),d=0));c>=8;r[i+w]=a&255,w+=_,a/=256,c-=8);for(d=d<<c|a,y+=c;y>0;r[i+w]=d&255,w+=_,d/=256,y-=8);r[i+w-_]|=T*128};(function(r){const o=Ia,i=Rl,u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=a,r.SlowBuffer=D,r.INSPECT_MAX_BYTES=50;const c=2147483647;r.kMaxLength=c,a.TYPED_ARRAY_SUPPORT=p(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function p(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function d(e){if(e>
714c)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,n){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return b(e)}return h(e,t,n)}a.poolSize=8192;function h(e,t,n){if(typeof e=="string")return v(e,t);if(ArrayBuffer.isView(e))return _(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ie(e,ArrayBuffer)||e&&ie(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ie(e,SharedArrayBuffer)||e&&ie(e.buffer,SharedArrayBuffer)))return T(e,t,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const s=e.valueOf&&e.valueOf();if(s!=null&&s!==e)return a.from(s,t,n);const l=A(e);if(l)return l;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,t,n){return h(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function y(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function g(e,t,n){return y(e),e<=0?d(e):t!==void 0?typeof n=="string"?d(e).fill(t,n):d(e).fill(t):d(e)}a.alloc=function(e,t,n){return g(e,t,n)};function b(e){return y(e),d(e<0?0:B(e)|0)}a.allocUnsafe=function(e){return b(e)},a.allocUnsafeSlow=function(e){return b(e)};function v(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=x(e,t)|0;let s=d(n);const l=s.write(e,t);return l!==n&&(s=s.slice(0,l)),s}function w(e){const t=e.length<0?0:B(e.length)|0,n=d(t);for(let s=0;s<t;s+=1)n[s]=e[s]&255;return n}function _(e){if(ie(e,Uint8Array)){const t=new Uint8Array(e);return T(t.buffer,t.byteOffset,t.byteLength)}return w(e)}function T(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let s;return t===void 0&&n===void 0?s=new Uint8Array(e):n===void 0?s=new Uint8Array(e,t):s=new Uint8Array(e,t,n),Object.setPrototypeOf(s,a.prototype),s}function A(e){if(a.isBuffer(e)){const t=B(e.length)|0,n=d(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!="number"||De(e.length)?d(0):w(e);if(e.type==="Buffer"&&Array.isArray(e.data))return w(e.data)}function B(e){if(e>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return e|0}function D(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==a.prototype},a.compare=function(e,t){if(ie(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),ie(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,s=t.length;for(let l=0,f=Math.min(n,s);l<f;++l)if(e[l]!==t[l]){n=e[l],s=t[l];break}return n<s?-1:s<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return a.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const s=a.allocUnsafe(t);let l=0;for(n=0;n<e.length;++n){let f=e[n];if(ie(f,Uint8Array))l+f.length>s.length?(a.isBuffer(f)||(f=a.from(f)),f.copy(s,l)):Uint8Array.prototype.set.call(s,f,l);else if(a.isBuffer(f))f.copy(s,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=f.length}return s};function x(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ie(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,s=arguments.length>2&&arguments[2]===!0;if(!s&&n===0)return 0;let l=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Ie(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Se(e).length;default:if(l)return s?-1:Ie(e).length;t=(""+t).toLowerCase(),l=!0}}a.byteLength=x;function W(e,t,n){let s=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return ne(this,t,n);case"utf8":case"utf-8":return H(this,t,n);case"ascii":return he(this,t,n);case"latin1":case"binary":return ge(this,t,n);case"base64":return ue(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,t,n);default:if(s)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}a.prototype._isBuffer=!0;function U(e,t,n){const s=e[t];e[t]=e[n],e[n]=s}a.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)U(this,t,t+1);return this},a.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)U(this,t,t+3),U(this,t+1,t+2);return this},a.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)U(this,t,t+7),U(this,t+1,t+6),U(this,t+2,t+5),U(this,t+3,t+4);return this},a.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?H(this,0,e):W.apply(this,arguments)}
vendor: 14,032 bytes, line 714
714,a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:a.compare(this,e)===0},a.prototype.inspect=function(){let e="";const t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},u&&(a.prototype[u]=a.prototype.inspect),a.prototype.compare=function(e,t,n,s,l){if(ie(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),s===void 0&&(s=0),l===void 0&&(l=this.length),t<0||n>e.length||s<0||l>this.length)throw new RangeError("out of range index");if(s>=l&&t>=n)return 0;if(s>=l)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,s>>>=0,l>>>=0,this===e)return 0;let f=l-s,m=n-t;const L=Math.min(f,m),Z=this.slice(s,l),G=e.slice(t,n);for(let $=0;$<L;++$)if(Z[$]!==G[$]){f=Z[$],m=G[$];break}return f<m?-1:m<f?1:0};function S(e,t,n,s,l){if(e.length===0)return-1;if(typeof n=="string"?(s=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,De(n)&&(n=l?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(l)return-1;n=e.length-1}else if(n<0)if(l)n=0;else return-1;if(typeof t=="string"&&(t=a.from(t,s)),a.isBuffer(t))return t.length===0?-1:M(e,t,n,s,l);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?l?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):M(e,[t],n,s,l);throw new TypeError("val must be string, number or Buffer")}function M(e,t,n,s,l){let f=1,m=e.length,L=t.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(e.length<2||t.length<2)return-1;f=2,m/=2,L/=2,n/=2}function Z($,Q){return f===1?$[Q]:$.readUInt16BE(Q*f)}let G;if(l){let $=-1;for(G=n;G<m;G++)if(Z(e,G)===Z(t,$===-1?0:G-$)){if($===-1&&($=G),G-$+1===L)return $*f}else $!==-1&&(G-=G-$),$=-1}else for(n+L>m&&(n=m-L),G=n;G>=0;G--){let $=!0;for(let Q=0;Q<L;Q++)if(Z(e,G+Q)!==Z(t,Q)){$=!1;break}if($)return G}return-1}a.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},a.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function I(e,t,n,s){n=Number(n)||0;const l=e.length-n;s?(s=Number(s),s>l&&(s=l)):s=l;const f=t.length;s>f/2&&(s=f/2);let m;for(m=0;m<s;++m){const L=parseInt(t.substr(m*2,2),16);if(De(L))return m;e[n+m]=L}return m}function R(e,t,n,s){return Ee(Ie(t,e.length-n),e,n,s)}function C(e,t,n,s){return Ee(le(t),e,n,s)}function V(e,t,n,s){return Ee(Se(t),e,n,s)}function F(e,t,n,s){return Ee(me(t,e.length-n),e,n,s)}a.prototype.write=function(e,t,n,s){if(t===void 0)s="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")s=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,s===void 0&&(s="utf8")):(s=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const l=this.length-t;if((n===void 0||n>l)&&(n=l),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");let f=!1;for(;;)switch(s){case"hex":return I(this,e,t,n);case"utf8":case"utf-8":return R(this,e,t,n);case"ascii":case"latin1":case"binary":return C(this,e,t,n);case"base64":return V(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,e,t,n);default:if(f)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),f=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(e,t,n){return t===0&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function H(e,t,n){n=Math.min(e.length,n);const s=[];let l=t;for(;l<n;){const f=e[l];let m=null,L=f>239?4:f>223?3:f>191?2:1;if(l+L<=n){let Z,G,$,Q;switch(L){case 1:f<128&&(m=f);break;case 2:Z=e[l+1],(Z&192)===128&&(Q=(f&31)<<6|Z&63,Q>127&&(m=Q));break;case 3:Z=e[l+1],G=e[l+2],(Z&192)===128&&(G&192)===128&&(Q=(f&15)<<12|(Z&63)<<6|G&63,Q>2047&&(Q<55296||Q>57343)&&(m=Q));break;case 4:Z=e[l+1],G=e[l+2],$=e[l+3],(Z&192)===128&&(G&192)===128&&($&192)===128&&(Q=(f&15)<<18|(Z&63)<<12|(G&63)<<6|$&63,Q>65535&&Q<1114112&&(m=Q))}}m===null?(m=65533,L=1):m>65535&&(m-=65536,s.push(m>>>10&1023|55296),m=56320|m&1023),s.push(m),l+=L}return X(s)}const j=4096;function X(e){const t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let n="",s=0;for(;s<t;)n+=String.fromCharCode.apply(String,e.slice(s,s+=j));return n}function he(e,t,n){let s="";n=Math.min(e.length,n);for(let l=t;l<n;++l)s+=String.fromCharCode(e[l]&127);return s}function ge(e,t,n){let s="";n=Math.min(e.length,n);for(let l=t;l<n;++l)s+=String.fromCharCode(e[l]);return s}function ne(e,t,n){const s=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>s)&&(n=s);let l="";for(let f=t;f<n;++f)l+=O[e[f]];return l}function be(e,t,n){const s=e.slice(t,n);let l="";for(let f=0;f<s.length-1;f+=2)l+=String.fromCharCode(s[f]+s[f+1]*256);return l}a.prototype.slice=function(e,t){const n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);const s=this.subarray(e,t);return Object.setPrototypeOf(s,a.prototype),s};function P(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e],l=1,f=0;for(;++f<t&&(l*=256);)s+=this[e+f]*l;return s},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e+--t],l=1;for(;t>0&&(l*=256);)s+=this[e+--t]*l;return s},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e=e>>>0,t||P(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||P(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||P(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,l=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(s)+(BigInt(l)<<BigInt(32))}),a.prototype.readBigUInt64BE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],l=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(s)<<BigInt(32))+BigInt(l)}),a.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e],l=1,f=0;for(;++f<t&&(l*=256);)s+=this[e+f]*l;return l*=128,s>=l&&(s-=Math.pow(2,8*t)),s},a.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=t,l=1,f=this[e+--s];for(;s>0&&(l*=256);)f+=this[e+--s]*l;return l*=128,f>=l&&(f-=Math.pow(2,8*t)),f},a.prototype.readInt8=function(e,t){return e=e>>>0,t||P(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},a.prototype.readInt16LE=function(e,t){e=e>>>0,t||P(e,2,this.length);const n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},a.prototype.readInt16BE=function(e,t){e=e>>>0,t||P(e,2,this.length);const n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},a.prototype.readInt32LE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(s)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),a.prototype.readBigInt64BE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(s)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),a.prototype.readFloatLE=function(e,t){return e=e>>>0,t||P(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e=e>>>0,t||P(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||P(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||P(e,8,this.length),i.read(this,e,!1,52,8)};function ee(e,t,n,s,l,f){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>l||t<f)throw new RangeError('"value" argument is out of bounds');if(n+s>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,n,s){if(e=+e,t=t>>>0,n=n>>>0,!s){const m=Math.pow(2,8*n)-1;ee(this,e,t,n,m,0)}let l=1,f=0;for(this[t]=e&255;++f<n&&(l*=256);)this[t+f]=e/l&255;return t+n},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,n,s){if(e=+e,t=t>>>0,n=n>>>0,!s){const m=Math.pow(2,8*n)-1;ee(this,e,t,n,m,0)}let l=n-1,f=1;for(this[t+l]=e&255;--l>=0&&(f*=256);)this[t+l]=e/f&255;return t+n},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,1,255,0),this[t]=e&255,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function Ue(e,t,n,s,l){re(t,s,l,e,n,7);let f=Number(t&BigInt(4294967295));e[n++]=f,f=f>>8,e[n++]=f,f=f>>8,e[n++]=f,f=f>>8,e[n++]=f;let m=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=m,m=m>>8,e[n++]=m,m=m>>8,e[n++]=m,m=m>>8,e[n++]=m,n}function _e(e,t,n,s,l){re(t,s,l,e,n,7);let f=Number(t&BigInt(4294967295));e[n+7]=f,f=f>>8,e[n+6]=f,f=f>>8,e[n+5]=f,f=f>>8,e[n+4]=f;let m=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=m,m=m>>8,e[n+2]=m,m=m>>8,e[n+1]=m,m=m>>8,e[n]=m,n+8}a.prototype.writeBigUInt64LE=N(function(e,t=0){return Ue(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=N(function(e,t=0){return _e(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(e,t,n,s){if(e=+e,t=t>>>0,!s){const L=Math.pow(2,8*n-1);ee(this,e,t,n,L-1,-L)}let l=0,f=1,m=0;for(this[t]=e&255;++l<n&&(f*=256);)e<0&&m===0&&this[t+l-1]!==0&&(m=1),this[t+l]=(e/f>>0)-m&255;return t+n},a.prototype.writeIntBE=function(e,t,n,s){if(e=+e,t=t>>>0,!s){const L=Math.pow(2,8*n-1);ee(this,e,t,n,L-1,-L)}let l=n-1,f=1,m=0;for(this[t+l]=e&255;--l>=0&&(f*=256);)e<0&&m===0&&this[t+l+1]!==0&&(m=1),this[t+l]=(e/f>>0)-m&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},a.prototype.writeBigInt64LE=N(function(e,t=0){return Ue(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=N(function(e,t=0){return _e(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ce(e,t,n,s,l,f){if(n+s>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function de(e,t,n,s,l){return t=+t,n=n>>>0,l||ce(e,t,n,4),i.write(e,t,n,s,23,4),n+4}a.prototype.writeFloatLE=function(e,t,n){return de(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return de(this,e,t,!1,n)};function ve(e,t,n,s,l){return t=+t,n=n>>>0,l||ce(e,t,n,8),i.write(e,t,n,s,52,8),n+8}a.prototype.writeDoubleLE=function(e,t,n){return ve(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return ve(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,s){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!s&&s!==0&&(s=this.length),t>=e.length&&(t=e.length),t||(t=0),s>0&&s<n&&(s=n),s===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-t<s-n&&(s=e.length-t+n);const l=s-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,s):Uint8Array.prototype.set.call(e,this.subarray(n,s),t),l},a.prototype.fill=function(e,t,n,s){if(typeof e=="string"){if(typeof t=="string"?(s=t,t=0,n=this.length):typeof n=="string"&&(s=n,n=this.length),s!==void 0&&typeof s!="str
714ing")throw new TypeError("encoding must be a string");if(typeof s=="string"&&!a.isEncoding(s))throw new TypeError("Unknown encoding: "+s);if(e.length===1){const f=e.charCodeAt(0);(s==="utf8"&&f<128||s==="latin1")&&(e=f)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let l;if(typeof e=="number")for(l=t;l<n;++l)this[l]=e;else{const f=a.isBuffer(e)?e:a.from(e,s),m=f.length;if(m===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(l=0;l<n-t;++l)this[l+t]=f[l%m]}return this};const te={};function E(e,t,n){te[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(s){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:s,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}E("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),E("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),E("ERR_OUT_OF_RANGE",function(e,t,n){let s=`The value of "${e}" is out of range.`,l=n;return Number.isInteger(n)&&Math.abs(n)>2**32?l=k(String(n)):typeof n=="bigint"&&(l=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(l=k(l)),l+="n"),s+=` It must be ${t}. Received ${l}`,s},RangeError);function k(e){let t="",n=e.length;const s=e[0]==="-"?1:0;for(;n>=s+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function Y(e,t,n){z(t,"offset"),(e[t]===void 0||e[t+n]===void 0)&&J(t,e.length-(n+1))}function re(e,t,n,s,l,f){if(e>n||e<t){const m=typeof t=="bigint"?"n":"";let L;throw t===0||t===BigInt(0)?L=`>= 0${m} and < 2${m} ** ${(f+1)*8}${m}`:L=`>= -(2${m} ** ${(f+1)*8-1}${m}) and < 2 ** ${(f+1)*8-1}${m}`,new te.ERR_OUT_OF_RANGE("value",L,e)}Y(s,l,f)}function z(e,t){if(typeof e!="number")throw new te.ERR_INVALID_ARG_TYPE(t,"number",e)}function J(e,t,n){throw Math.floor(e)!==e?(z(e,n),new te.ERR_OUT_OF_RANGE("offset","an integer",e)):t<0?new te.ERR_BUFFER_OUT_OF_BOUNDS:new te.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}const se=/[^+/0-9A-Za-z-_]/g;function Ae(e){if(e=e.split("=")[0],e=e.trim().replace(se,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Ie(e,t){t=t||1/0;let n;const s=e.length;let l=null;const f=[];for(let m=0;m<s;++m){if(n=e.charCodeAt(m),n>55295&&n<57344){if(!l){if(n>56319){(t-=3)>-1&&f.push(239,191,189);continue}else if(m+1===s){(t-=3)>-1&&f.push(239,191,189);continue}l=n;continue}if(n<56320){(t-=3)>-1&&f.push(239,191,189),l=n;continue}n=(l-55296<<10|n-56320)+65536}else l&&(t-=3)>-1&&f.push(239,191,189);if(l=null,n<128){if((t-=1)<0)break;f.push(n)}else if(n<2048){if((t-=2)<0)break;f.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;f.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;f.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return f}function le(e){const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function me(e,t){let n,s,l;const f=[];for(let m=0;m<e.length&&!((t-=2)<0);++m)n=e.charCodeAt(m),s=n>>8,l=n%256,f.push(l),f.push(s);return f}function Se(e){return o.toByteArray(Ae(e))}function Ee(e,t,n,s){let l;for(l=0;l<s&&!(l+n>=t.length||l>=e.length);++l)t[l+n]=e[l];return l}function ie(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function De(e){return e!==e}const O=(function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const s=n*16;for(let l=0;l<16;++l)t[s+l]=e[n]+e[l]}return t})();function N(e){return typeof BigInt>"u"?K:e}function K(){throw new Error("BigInt not supported")}})($m);var Iu={exports:{}};(function(r,o){Object.defineProperty(o,"__esModule",{value:!0});
714var i={exports:{}},u=i.exports={},c,p;function d(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?c=setTimeout:c=d}catch{c=d}try{typeof clearTimeout=="function"?p=clearTimeout:p=a}catch{p=a}})();function h(ne){if(c===setTimeout)return setTimeout(ne,0);if((c===d||!c)&&setTimeout)return c=setTimeout,setTimeout(ne,0);try{return c(ne,0)}catch{try{return c.call(null,ne,0)}catch{return c.call(this,ne,0)}}}function y(ne){if(p===clearTimeout)return clearTimeout(ne);if((p===a||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(ne);try{return p(ne)}catch{try{return p.call(null,ne)}catch{return p.call(this,ne)}}}var g=[],b=!1,v,w=-1;function _(){!b||!v||(b=!1,v.length?g=v.concat(g):w=-1,g.length&&T())}function T(){if(!b){var ne=h(_);b=!0;for(var be=g.length;be;){for(v=g,g=[];++w<be;)v&&v[w].run();w=-1,be=g.length}v=null,b=!1,y(ne)}}u.nextTick=function(ne){var be=new Array(arguments.length-1);if(arguments.length>1)for(var P=1;P<arguments.length;P++)be[P-1]=arguments[P];g.push(new A(ne,be)),g.length===1&&!b&&h(T)};function A(ne,be){this.fun=ne,this.array=be}A.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={};function B(){}u.on=B,u.addListener=B,u.once=B,u.off=B,u.removeListener=B,u.removeAllListeners=B,u.emit=B,u.prependListener=B,u.prependOnceListener=B,u.listeners=function(ne){return[]},u.binding=function(ne){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(ne){throw new Error("process.chdir is not supported")},u.umask=function(){return 0};function D(){}var x=i.exports.browser,W=D,U=i.exports.binding,S=D,M=1,I={},R=D,C=D,V=D,F=D,ue=D,H="browser",j="browser",X="browser",he=[],ge={nextTick:i.exports.nextTick,title:i.exports.title,browser:x,env:i.exports.env,argv:i.exports.argv,version:i.exports.version,versions:i.exports.versions,on:i.exports.on,addListener:i.exports.addListener,once:i.exports.once,off:i.exports.off,removeListener:i.exports.removeListener,removeAllListeners:i.exports.removeAllListeners,emit:i.exports.emit,emitWarning:W,prependListener:i.exports.prependListener,prependOnceListener:i.exports.prependOnceListener,listeners:i.exports.listeners,binding:U,cwd:i.exports.cwd,chdir:i.exports.chdir,umask:i.exports.umask,exit:S,pid:M,features:I,kill:R,dlopen:C,uptime:V,memoryUsage:F,uvCounters:ue,platform:H,arch:j,execPath:X,execArgv:he};o.addListener=i.exports.addListener,o.arch=j,o.argv=i.exports.argv,o.binding=U,o.browser=x,o.chdir=i.exports.chdir,o.cwd=i.exports.cwd,o.default=ge,o.dlopen=C,o.emit=i.exports.emit,o.emitWarning=W,o.env=i.exports.env,o.execArgv=he,o.execPath=X,o.exit=S,o.features=I,o.kill=R,o.listeners=i.exports.listeners,o.memoryUsage=F,o.nextTick=i.exports.nextTick,o.off=i.exports.off,o.on=i.exports.on,o.once=i.exports.once,o.pid=M,o.platform=H,o.prependListener=i.exports.prependListener,o.prependOnceListener=i.exports.prependOnceListener,o.removeAllListeners=i.exports.removeAllListeners,o.removeListener=i.exports.removeListener,o.title=i.exports.title,o.umask=i.exports.umask,o.uptime=V,o.uvCounters=ue,o.version=i.exports.version,o.versions=i.exports.versions,o=r.exports=ge})(Iu,Iu.exports);var CL=Iu.exports;(function(r){Object.defineProperty(r,Symbol.toStringTag,{value:"Module"});const o=$m,i=CL,u=d=>d&&d.__esModule?d:{default:d},c=u(i),p=globalThis||void 0||self;Object.defineProperty(r,"Buffer",{enumerable:!0,get:()=>o.Buffer}),Object.defineProperty(r,"process",{enumerable:!0,get:()=>c.default}),r.global=p})(Au);var jd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Au.global<"u"?Au.global:typeof self<"u"?self:{},Di={},jm={},Ta={};Ta.byteLength=NL;Ta.toByteArray=xL;Ta.fromByteArray=PL;var Or=[],Qt=[],OL=typeof Uint8Array<"u"?Uint8Array:Array,gs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Fn=0,LL=gs.length;Fn<LL;
vendor: 4,492 bytes, line 714
714++Fn)Or[Fn]=gs[Fn],Qt[gs.charCodeAt(Fn)]=Fn;Qt[45]=62;Qt[95]=63;function Gm(r){var o=r.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=r.indexOf("=");i===-1&&(i=o);var u=i===o?0:4-i%4;return[i,u]}function NL(r){var o=Gm(r),i=o[0],u=o[1];return(i+u)*3/4-u}function DL(r,o,i){return(o+i)*3/4-i}function xL(r){var o,i=Gm(r),u=i[0],c=i[1],p=new OL(DL(r,u,c)),d=0,a=c>0?u-4:u,h;for(h=0;h<a;h+=4)o=Qt[r.charCodeAt(h)]<<18|Qt[r.charCodeAt(h+1)]<<12|Qt[r.charCodeAt(h+2)]<<6|Qt[r.charCodeAt(h+3)],p[d++]=o>>16&255,p[d++]=o>>8&255,p[d++]=o&255;return c===2&&(o=Qt[r.charCodeAt(h)]<<2|Qt[r.charCodeAt(h+1)]>>4,p[d++]=o&255),c===1&&(o=Qt[r.charCodeAt(h)]<<10|Qt[r.charCodeAt(h+1)]<<4|Qt[r.charCodeAt(h+2)]>>2,p[d++]=o>>8&255,p[d++]=o&255),p}function UL(r){return Or[r>>18&63]+Or[r>>12&63]+Or[r>>6&63]+Or[r&63]}function kL(r,o,i){for(var u,c=[],p=o;p<i;p+=3)u=(r[p]<<16&16711680)+(r[p+1]<<8&65280)+(r[p+2]&255),c.push(UL(u));return c.join("")}function PL(r){for(var o,i=r.length,u=i%3,c=[],p=16383,d=0,a=i-u;d<a;d+=p)c.push(kL(r,d,d+p>a?a:d+p));return u===1?(o=r[i-1],c.push(Or[o>>2]+Or[o<<4&63]+"==")):u===2&&(o=(r[i-2]<<8)+r[i-1],c.push(Or[o>>10]+Or[o>>4&63]+Or[o<<2&63]+"=")),c.join("")}var Bl={};Bl.read=function(r,o,i,u,c){var p,d,a=c*8-u-1,h=(1<<a)-1,y=h>>1,g=-7,b=i?c-1:0,v=i?-1:1,w=r[o+b];for(b+=v,p=w&(1<<-g)-1,w>>=-g,g+=a;g>0;p=p*256+r[o+b],b+=v,g-=8);for(d=p&(1<<-g)-1,p>>=-g,g+=u;g>0;d=d*256+r[o+b],b+=v,g-=8);if(p===0)p=1-y;else{if(p===h)return d?NaN:(w?-1:1)*(1/0);d=d+Math.pow(2,u),p=p-y}return(w?-1:1)*d*Math.pow(2,p-u)};Bl.write=function(r,o,i,u,c,p){var d,a,h,y=p*8-c-1,g=(1<<y)-1,b=g>>1,v=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=u?0:p-1,_=u?1:-1,T=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(a=isNaN(o)?1:0,d=g):(d=Math.floor(Math.log(o)/Math.LN2),o*(h=Math.pow(2,-d))<1&&(d--,h*=2),d+b>=1?o+=v/h:o+=v*Math.pow(2,1-b),o*h>=2&&(d++,h/=2),d+b>=g?(a=0,d=g):d+b>=1?(a=(o*h-1)*Math.pow(2,c),d=d+b):(a=o*Math.pow(2,b-1)*Math.pow(2,c),d=0));c>=8;r[i+w]=a&255,w+=_,a/=256,c-=8);for(d=d<<c|a,y+=c;y>0;r[i+w]=d&255,w+=_,d/=256,y-=8);r[i+w-_]|=T*128};(function(r){const o=Ta,i=Bl,u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=a,r.SlowBuffer=D,r.INSPECT_MAX_BYTES=50;const c=2147483647;r.kMaxLength=c,a.TYPED_ARRAY_SUPPORT=p(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function p(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function d(e){if(e>c)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,n){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return b(e)}return h(e,t,n)}a.poolSize=8192;function h(e,t,n){if(typeof e=="string")return v(e,t);if(ArrayBuffer.isView(e))return _(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ie(e,ArrayBuffer)||e&&ie(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ie(e,SharedArrayBuffer)||e&&ie(e.buffer,SharedArrayBuffer)))return T(e,t,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const s=e.valueOf&&e.valueOf();if(s!=null&&s!==e)return a.from(s,t,n);const l=A(e);if(l)return l;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,t,n){return h(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function y(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');
714if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function g(e,t,n){return y(e),e<=0?d(e):t!==void 0?typeof n=="string"?d(e).fill(t,n):d(e).fill(t):d(e)}a.alloc=function(e,t,n){return g(e,t,n)};function b(e){return y(e),d(e<0?0:B(e)|0)}a.allocUnsafe=function(e){return b(e)},a.allocUnsafeSlow=function(e){return b(e)};function v(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=x(e,t)|0;let s=d(n);const l=s.write(e,t);return l!==n&&(s=s.slice(0,l)),s}function w(e){const t=e.length<0?0:B(e.length)|0,n=d(t);for(let s=0;s<t;s+=1)n[s]=e[s]&255;return n}function _(e){if(ie(e,Uint8Array)){const t=new Uint8Array(e);return T(t.buffer,t.byteOffset,t.byteLength)}return w(e)}function T(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let s;return t===void 0&&n===void 0?s=new Uint8Array(e):n===void 0?s=new Uint8Array(e,t):s=new Uint8Array(e,t,n),Object.setPrototypeOf(s,a.prototype),s}function A(e){if(a.isBuffer(e)){const t=B(e.length)|0,n=d(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!="number"||De(e.length)?d(0):w(e);if(e.type==="Buffer"&&Array.isArray(e.data))return w(e.data)}function B(e){if(e>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return e|0}function D(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==a.prototype},a.compare=function(e,t){if(ie(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),ie(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,s=t.length;for(let l=0,f=Math.min(n,s);l<f;++l)if(e[l]!==t[l]){n=e[l],s=t[l];break}return n<s?-1:s<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return a.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const s=a.allocUnsafe(t);let l=0;for(n=0;n<e.length;++n){let f=e[n];if(ie(f,Uint8Array))l+f.length>s.length?(a.isBuffer(f)||(f=a.from(f)),f.copy(s,l)):Uint8Array.prototype.set.call(s,f,l);else if(a.isBuffer(f))f.copy(s,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=f.length}return s};function x(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ie(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,s=arguments.length>2&&arguments[2]===!0;if(!s&&n===0)return 0;let l=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Ie(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Se(e).length;default:if(l)return s?-1:Ie(e).length;t=(""+t).toLowerCase(),l=!0}}a.byteLength=x;function W(e,t,n){let s=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return ne(this,t,n);case"utf8":case"utf-8":return H(this,t,n);case"ascii":return he(this,t,n);case"latin1":case"binary":return ge(this,t,n);case"base64":return ue(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,t,n);default:if(s)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}a.prototype._isBuffer=!0;function U(e,t,n){const s=e[t];e[t]=e[n],e[n]=s}a.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)U(this,t,t+1);return this},a.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)U(this,t,t+3),U(this,t+1,t+2);return this},a.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)U(this,t,t+7),U(this,t+1,t+6),U(this,t+2,t+5),U(this,t+3,t+4);return this},a.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?H(this,0,e):W.apply(this,arguments)}
vendor: 14,032 bytes, line 714
714,a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:a.compare(this,e)===0},a.prototype.inspect=function(){let e="";const t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},u&&(a.prototype[u]=a.prototype.inspect),a.prototype.compare=function(e,t,n,s,l){if(ie(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),s===void 0&&(s=0),l===void 0&&(l=this.length),t<0||n>e.length||s<0||l>this.length)throw new RangeError("out of range index");if(s>=l&&t>=n)return 0;if(s>=l)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,s>>>=0,l>>>=0,this===e)return 0;let f=l-s,m=n-t;const L=Math.min(f,m),Z=this.slice(s,l),G=e.slice(t,n);for(let $=0;$<L;++$)if(Z[$]!==G[$]){f=Z[$],m=G[$];break}return f<m?-1:m<f?1:0};function S(e,t,n,s,l){if(e.length===0)return-1;if(typeof n=="string"?(s=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,De(n)&&(n=l?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(l)return-1;n=e.length-1}else if(n<0)if(l)n=0;else return-1;if(typeof t=="string"&&(t=a.from(t,s)),a.isBuffer(t))return t.length===0?-1:M(e,t,n,s,l);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?l?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):M(e,[t],n,s,l);throw new TypeError("val must be string, number or Buffer")}function M(e,t,n,s,l){let f=1,m=e.length,L=t.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(e.length<2||t.length<2)return-1;f=2,m/=2,L/=2,n/=2}function Z($,Q){return f===1?$[Q]:$.readUInt16BE(Q*f)}let G;if(l){let $=-1;for(G=n;G<m;G++)if(Z(e,G)===Z(t,$===-1?0:G-$)){if($===-1&&($=G),G-$+1===L)return $*f}else $!==-1&&(G-=G-$),$=-1}else for(n+L>m&&(n=m-L),G=n;G>=0;G--){let $=!0;for(let Q=0;Q<L;Q++)if(Z(e,G+Q)!==Z(t,Q)){$=!1;break}if($)return G}return-1}a.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},a.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function I(e,t,n,s){n=Number(n)||0;const l=e.length-n;s?(s=Number(s),s>l&&(s=l)):s=l;const f=t.length;s>f/2&&(s=f/2);let m;for(m=0;m<s;++m){const L=parseInt(t.substr(m*2,2),16);if(De(L))return m;e[n+m]=L}return m}function R(e,t,n,s){return Ee(Ie(t,e.length-n),e,n,s)}function C(e,t,n,s){return Ee(le(t),e,n,s)}function V(e,t,n,s){return Ee(Se(t),e,n,s)}function F(e,t,n,s){return Ee(me(t,e.length-n),e,n,s)}a.prototype.write=function(e,t,n,s){if(t===void 0)s="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")s=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,s===void 0&&(s="utf8")):(s=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const l=this.length-t;if((n===void 0||n>l)&&(n=l),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");let f=!1;for(;;)switch(s){case"hex":return I(this,e,t,n);case"utf8":case"utf-8":return R(this,e,t,n);case"ascii":case"latin1":case"binary":return C(this,e,t,n);case"base64":return V(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,e,t,n);default:if(f)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),f=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(e,t,n){return t===0&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function H(e,t,n){n=Math.min(e.length,n);const s=[];let l=t;for(;l<n;){const f=e[l];let m=null,L=f>239?4:f>223?3:f>191?2:1;if(l+L<=n){let Z,G,$,Q;switch(L){case 1:f<128&&(m=f);break;case 2:Z=e[l+1],(Z&192)===128&&(Q=(f&31)<<6|Z&63,Q>127&&(m=Q));break;case 3:Z=e[l+1],G=e[l+2],(Z&192)===128&&(G&192)===128&&(Q=(f&15)<<12|(Z&63)<<6|G&63,Q>2047&&(Q<55296||Q>57343)&&(m=Q));break;case 4:Z=e[l+1],G=e[l+2],$=e[l+3],(Z&192)===128&&(G&192)===128&&($&192)===128&&(Q=(f&15)<<18|(Z&63)<<12|(G&63)<<6|$&63,Q>65535&&Q<1114112&&(m=Q))}}m===null?(m=65533,L=1):m>65535&&(m-=65536,s.push(m>>>10&1023|55296),m=56320|m&1023),s.push(m),l+=L}return X(s)}const j=4096;function X(e){const t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let n="",s=0;for(;s<t;)n+=String.fromCharCode.apply(String,e.slice(s,s+=j));return n}function he(e,t,n){let s="";n=Math.min(e.length,n);for(let l=t;l<n;++l)s+=String.fromCharCode(e[l]&127);return s}function ge(e,t,n){let s="";n=Math.min(e.length,n);for(let l=t;l<n;++l)s+=String.fromCharCode(e[l]);return s}function ne(e,t,n){const s=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>s)&&(n=s);let l="";for(let f=t;f<n;++f)l+=O[e[f]];return l}function be(e,t,n){const s=e.slice(t,n);let l="";for(let f=0;f<s.length-1;f+=2)l+=String.fromCharCode(s[f]+s[f+1]*256);return l}a.prototype.slice=function(e,t){const n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);const s=this.subarray(e,t);return Object.setPrototypeOf(s,a.prototype),s};function P(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e],l=1,f=0;for(;++f<t&&(l*=256);)s+=this[e+f]*l;return s},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e+--t],l=1;for(;t>0&&(l*=256);)s+=this[e+--t]*l;return s},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e=e>>>0,t||P(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||P(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||P(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,l=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(s)+(BigInt(l)<<BigInt(32))}),a.prototype.readBigUInt64BE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],l=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(s)<<BigInt(32))+BigInt(l)}),a.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e],l=1,f=0;for(;++f<t&&(l*=256);)s+=this[e+f]*l;return l*=128,s>=l&&(s-=Math.pow(2,8*t)),s},a.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=t,l=1,f=this[e+--s];for(;s>0&&(l*=256);)f+=this[e+--s]*l;return l*=128,f>=l&&(f-=Math.pow(2,8*t)),f},a.prototype.readInt8=function(e,t){return e=e>>>0,t||P(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},a.prototype.readInt16LE=function(e,t){e=e>>>0,t||P(e,2,this.length);const n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},a.prototype.readInt16BE=function(e,t){e=e>>>0,t||P(e,2,this.length);const n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},a.prototype.readInt32LE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(s)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),a.prototype.readBigInt64BE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(s)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),a.prototype.readFloatLE=function(e,t){return e=e>>>0,t||P(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e=e>>>0,t||P(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||P(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||P(e,8,this.length),i.read(this,e,!1,52,8)};function ee(e,t,n,s,l,f){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>l||t<f)throw new RangeError('"value" argument is out of bounds');if(n+s>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,n,s){if(e=+e,t=t>>>0,n=n>>>0,!s){const m=Math.pow(2,8*n)-1;ee(this,e,t,n,m,0)}let l=1,f=0;for(this[t]=e&255;++f<n&&(l*=256);)this[t+f]=e/l&255;return t+n},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,n,s){if(e=+e,t=t>>>0,n=n>>>0,!s){const m=Math.pow(2,8*n)-1;ee(this,e,t,n,m,0)}let l=n-1,f=1;for(this[t+l]=e&255;--l>=0&&(f*=256);)this[t+l]=e/f&255;return t+n},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,1,255,0),this[t]=e&255,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function Ue(e,t,n,s,l){re(t,s,l,e,n,7);let f=Number(t&BigInt(4294967295));e[n++]=f,f=f>>8,e[n++]=f,f=f>>8,e[n++]=f,f=f>>8,e[n++]=f;let m=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=m,m=m>>8,e[n++]=m,m=m>>8,e[n++]=m,m=m>>8,e[n++]=m,n}function _e(e,t,n,s,l){re(t,s,l,e,n,7);let f=Number(t&BigInt(4294967295));e[n+7]=f,f=f>>8,e[n+6]=f,f=f>>8,e[n+5]=f,f=f>>8,e[n+4]=f;let m=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=m,m=m>>8,e[n+2]=m,m=m>>8,e[n+1]=m,m=m>>8,e[n]=m,n+8}a.prototype.writeBigUInt64LE=N(function(e,t=0){return Ue(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=N(function(e,t=0){return _e(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(e,t,n,s){if(e=+e,t=t>>>0,!s){const L=Math.pow(2,8*n-1);ee(this,e,t,n,L-1,-L)}let l=0,f=1,m=0;for(this[t]=e&255;++l<n&&(f*=256);)e<0&&m===0&&this[t+l-1]!==0&&(m=1),this[t+l]=(e/f>>0)-m&255;return t+n},a.prototype.writeIntBE=function(e,t,n,s){if(e=+e,t=t>>>0,!s){const L=Math.pow(2,8*n-1);ee(this,e,t,n,L-1,-L)}let l=n-1,f=1,m=0;for(this[t+l]=e&255;--l>=0&&(f*=256);)e<0&&m===0&&this[t+l+1]!==0&&(m=1),this[t+l]=(e/f>>0)-m&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},a.prototype.writeBigInt64LE=N(function(e,t=0){return Ue(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=N(function(e,t=0){return _e(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ce(e,t,n,s,l,f){if(n+s>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function de(e,t,n,s,l){return t=+t,n=n>>>0,l||ce(e,t,n,4),i.write(e,t,n,s,23,4),n+4}a.prototype.writeFloatLE=function(e,t,n){return de(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return de(this,e,t,!1,n)};function ve(e,t,n,s,l){return t=+t,n=n>>>0,l||ce(e,t,n,8),i.write(e,t,n,s,52,8),n+8}a.prototype.writeDoubleLE=function(e,t,n){return ve(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return ve(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,s){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!s&&s!==0&&(s=this.length),t>=e.length&&(t=e.length),t||(t=0),s>0&&s<n&&(s=n),s===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-t<s-n&&(s=e.length-t+n);const l=s-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,s):Uint8Array.prototype.set.call(e,this.subarray(n,s),t),l},a.prototype.fill=function(e,t,n,s){if(typeof e=="string"){if(typeof t=="string"?(s=t,t=0,n=this.length):typeof n=="string"&&(s=n,n=this.length),s!==void 0&&typeof s!="str
714ing")throw new TypeError("encoding must be a string");if(typeof s=="string"&&!a.isEncoding(s))throw new TypeError("Unknown encoding: "+s);if(e.length===1){const f=e.charCodeAt(0);(s==="utf8"&&f<128||s==="latin1")&&(e=f)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let l;if(typeof e=="number")for(l=t;l<n;++l)this[l]=e;else{const f=a.isBuffer(e)?e:a.from(e,s),m=f.length;if(m===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(l=0;l<n-t;++l)this[l+t]=f[l%m]}return this};const te={};function E(e,t,n){te[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(s){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:s,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}E("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),E("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),E("ERR_OUT_OF_RANGE",function(e,t,n){let s=`The value of "${e}" is out of range.`,l=n;return Number.isInteger(n)&&Math.abs(n)>2**32?l=k(String(n)):typeof n=="bigint"&&(l=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(l=k(l)),l+="n"),s+=` It must be ${t}. Received ${l}`,s},RangeError);function k(e){let t="",n=e.length;const s=e[0]==="-"?1:0;for(;n>=s+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function Y(e,t,n){z(t,"offset"),(e[t]===void 0||e[t+n]===void 0)&&J(t,e.length-(n+1))}function re(e,t,n,s,l,f){if(e>n||e<t){const m=typeof t=="bigint"?"n":"";let L;throw t===0||t===BigInt(0)?L=`>= 0${m} and < 2${m} ** ${(f+1)*8}${m}`:L=`>= -(2${m} ** ${(f+1)*8-1}${m}) and < 2 ** ${(f+1)*8-1}${m}`,new te.ERR_OUT_OF_RANGE("value",L,e)}Y(s,l,f)}function z(e,t){if(typeof e!="number")throw new te.ERR_INVALID_ARG_TYPE(t,"number",e)}function J(e,t,n){throw Math.floor(e)!==e?(z(e,n),new te.ERR_OUT_OF_RANGE("offset","an integer",e)):t<0?new te.ERR_BUFFER_OUT_OF_BOUNDS:new te.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}const se=/[^+/0-9A-Za-z-_]/g;function Ae(e){if(e=e.split("=")[0],e=e.trim().replace(se,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Ie(e,t){t=t||1/0;let n;const s=e.length;let l=null;const f=[];for(let m=0;m<s;++m){if(n=e.charCodeAt(m),n>55295&&n<57344){if(!l){if(n>56319){(t-=3)>-1&&f.push(239,191,189);continue}else if(m+1===s){(t-=3)>-1&&f.push(239,191,189);continue}l=n;continue}if(n<56320){(t-=3)>-1&&f.push(239,191,189),l=n;continue}n=(l-55296<<10|n-56320)+65536}else l&&(t-=3)>-1&&f.push(239,191,189);if(l=null,n<128){if((t-=1)<0)break;f.push(n)}else if(n<2048){if((t-=2)<0)break;f.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;f.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;f.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return f}function le(e){const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function me(e,t){let n,s,l;const f=[];for(let m=0;m<e.length&&!((t-=2)<0);++m)n=e.charCodeAt(m),s=n>>8,l=n%256,f.push(l),f.push(s);return f}function Se(e){return o.toByteArray(Ae(e))}function Ee(e,t,n,s){let l;for(l=0;l<s&&!(l+n>=t.length||l>=e.length);++l)t[l+n]=e[l];return l}function ie(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function De(e){return e!==e}const O=(function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const s=n*16;for(let l=0;l<16;++l)t[s+l]=e[n]+e[l]}return t})();function N(e){return typeof BigInt>"u"?K:e}function K(){throw new Error("BigInt not supported")}})(jm);var qm={exports:{}},ft=qm.exports={},yr,br;function Tu(){throw new Error("setTimeout has not been defined")}function Su(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?yr=setTimeout:yr=Tu}catch{yr=Tu}try{typeof clearTimeout=="function"?br=clearTimeout:br=Su}catch{br=Su}})();function Vm(r){if(yr===setTimeout)return setTimeout(r,0);if((yr===Tu||!yr)&&setTimeout)return yr=setTimeout,setTimeout(r,0);try{return yr(r,0)}catch{try{return yr.call(null,r,0)}catch{return yr.call(this,r,0)}}}function ML(r){if(br===clearTimeout)return clearTimeout(r);
714if((br===Su||!br)&&clearTimeout)return br=clearTimeout,clearTimeout(r);try{return br(r)}catch{try{return br.call(null,r)}catch{return br.call(this,r)}}}var jr=[],no=!1,En,xi=-1;function $L(){!no||!En||(no=!1,En.length?jr=En.concat(jr):xi=-1,jr.length&&Hm())}function Hm(){if(!no){var r=Vm($L);no=!0;for(var o=jr.length;o;){for(En=jr,jr=[];++xi<o;)En&&En[xi].run();xi=-1,o=jr.length}En=null,no=!1,ML(r)}}ft.nextTick=function(r){var o=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)o[i-1]=arguments[i];jr.push(new zm(r,o)),jr.length===1&&!no&&Vm(Hm)};function zm(r,o){this.fun=r,this.array=o}zm.prototype.run=function(){this.fun.apply(null,this.array)};ft.title="browser";ft.browser=!0;ft.env={};ft.argv=[];ft.version="";ft.versions={};function Jr(){}ft.on=Jr;ft.addListener=Jr;ft.once=Jr;ft.off=Jr;ft.removeListener=Jr;ft.removeAllListeners=Jr;ft.emit=Jr;ft.prependListener=Jr;ft.prependOnceListener=Jr;ft.listeners=function(r){return[]};ft.binding=function(r){throw new Error("process.binding is not supported")};ft.cwd=function(){return"/"};ft.chdir=function(r){throw new Error("process.chdir is not supported")};ft.umask=function(){return 0};var FL=qm.exports;(function(r){Object.defineProperty(r,Symbol.toStringTag,{value:"Module"});const o=jm,i=FL,u=d=>d&&d.__esModule?d:{default:d},c=u(i),p=globalThis||void 0||self;Object.defineProperty(r,"Buffer",{enumerable:!0,get:()=>o.Buffer}),Object.defineProperty(r,"process",{enumerable:!0,get:()=>c.default}),r.global=p})(Di);var Gd;(function(r){(function(o){var i=typeof jd=="object"?jd:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),u=c(r);typeof i.Reflect>"u"?i.Reflect=r:u=c(i.Reflect,u),o(u);function c(p,d){return function(a,h){typeof p[a]!="function"&&Object.defineProperty(p,a,{configurable:!0,writable:!0,value:h}),d&&d(a,h)}}})(function(o){var i=Object.prototype.hasOwnProperty,u=typeof Symbol=="function",c=u&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",p=u&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",d=typeof Object.create=="function",a={__proto__:[]}instanceof Array,h=!d&&!a,y={create:d?function(){return De(Object.create(null))}:a?function(){return De({__proto__:null})}:function(){return De({})},has:h?function(O,N){return i.call(O,N)}:function(O,N){return N in O},get:h?function(O,N){return i.call(O,N)?O[N]:void 0}:function(O,N){return O[N]}},g=Object.getPrototypeOf(Function),b=typeof Di.process=="object"&&Di.process.env&&Di.process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",v=!b&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Se(),w=!b&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Ee(),_=!b&&typeof WeakMap=="function"?WeakMap:ie(),T=new _;function A(O,N,K,e){if(P(K)){if(!k(O))throw new TypeError;if(!re(N))throw new TypeError;return C(O,N)}else{if(!k(O))throw new TypeError;if(!_e(N))throw new TypeError;if(!_e(e)&&!P(e)&&!ee(e))throw new TypeError;return ee(e)&&(e=void 0),K=E(K),V(O,N,K,e)}}o("decorate",A);function B(O,N){function K(e,t){if(!_e(e))throw new TypeError;if(!P(t)&&!z(t))throw new TypeError;he(O,N,e,t)}return K}o("metadata",B);function D(O,N,K,e){if(!_e(K))throw new TypeError;return P(e)||(e=E(e)),he(O,N,K,e)}o("defineMetadata",D);function x(O,N,K){if(!_e(N))throw new TypeError;return P(K)||(K=E(K)),ue(O,N,K)}o("hasMetadata",x);function W(O,N,K){if(!_e(N))throw new TypeError;return P(K)||(K=E(K)),H(O,N,K)}o("hasOwnMetadata",W);function U(O,N,K){if(!_e(N))throw new TypeError;return P(K)||(K=E(K)),j(O,N,K)}o("getMetadata",U);function S(O,N,K){if(!_e(N))throw new TypeError;return P(K)||(K=E(K)),X(O,N,K)}o("getOwnMetadata",S);function M(O,N){if(!_e(O))throw new TypeError;return P(N)||(N=E(N)),ge(O,N)}o("getMetadataKeys",M);function I(O,N){if(!_e(O))throw new TypeError;return P(N)||(N=E(N)),ne(O,N)}o("getOwnMetadataKeys",I);function R(O,N,K){if(!_e(N))throw new TypeError;P(K)||(K=E(K));var e=F(N,K,!1);if(P(e)||!e.delete(O))return!1;if(e.size>0)return!0;var t=T.get(N);return t.delete(K),t.size>0||T.delete(N),!0}o("deleteMetadata",R);function C(O,N){for(var K=O.length-1;K>=0;--K){var e=O[K],t=e(N);if(!P(t)&&!ee(t)){if(!re(t))throw new TypeError;N=t}}return N}function V(O,N,K,e){for(var t=O.length-1;t>=0;--t){var n=O[t],s=n(N,K,e);
714if(!P(s)&&!ee(s)){if(!_e(s))throw new TypeError;e=s}}return e}function F(O,N,K){var e=T.get(O);if(P(e)){if(!K)return;e=new v,T.set(O,e)}var t=e.get(N);if(P(t)){if(!K)return;t=new v,e.set(N,t)}return t}function ue(O,N,K){var e=H(O,N,K);if(e)return!0;var t=me(N);return ee(t)?!1:ue(O,t,K)}function H(O,N,K){var e=F(N,K,!1);return P(e)?!1:ve(e.has(O))}function j(O,N,K){var e=H(O,N,K);if(e)return X(O,N,K);var t=me(N);if(!ee(t))return j(O,t,K)}function X(O,N,K){var e=F(N,K,!1);if(!P(e))return e.get(O)}function he(O,N,K,e){var t=F(K,e,!0);t.set(O,N)}function ge(O,N){var K=ne(O,N),e=me(O);if(e===null)return K;var t=ge(e,N);if(t.length<=0)return K;if(K.length<=0)return t;for(var n=new w,s=[],l=0,f=K;l<f.length;l++){var m=f[l],L=n.has(m);L||(n.add(m),s.push(m))}for(var Z=0,G=t;Z<G.length;Z++){var m=G[Z],L=n.has(m);L||(n.add(m),s.push(m))}return s}function ne(O,N){var K=[],e=F(O,N,!1);if(P(e))return K;for(var t=e.keys(),n=se(t),s=0;;){var l=Ie(n);if(!l)return K.length=s,K;var f=Ae(l);try{K[s]=f}catch(m){try{le(n)}finally{throw m}}s++}}function be(O){if(O===null)return 1;switch(typeof O){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return O===null?1:6;default:return 6}}function P(O){return O===void 0}function ee(O){return O===null}function Ue(O){return typeof O=="symbol"}function _e(O){return typeof O=="object"?O!==null:typeof O=="function"}function ce(O,N){switch(be(O)){case 0:return O;case 1:return O;case 2:return O;case 3:return O;case 4:return O;case 5:return O}var K="string",e=J(O,c);if(e!==void 0){var t=e.call(O,K);if(_e(t))throw new TypeError;return t}return de(O)}function de(O,N){var K,e;{var t=O.toString;if(Y(t)){var e=t.call(O);if(!_e(e))return e}var K=O.valueOf;if(Y(K)){var e=K.call(O);if(!_e(e))return e}}throw new TypeError}function ve(O){return!!O}function te(O){return""+O}function E(O){var N=ce(O);return Ue(N)?N:te(N)}function k(O){return Array.isArray?Array.isArray(O):O instanceof Object?O instanceof Array:Object.prototype.toString.call(O)==="[object Array]"}function Y(O){return typeof O=="function"}function re(O){return typeof O=="function"}function z(O){switch(be(O)){case 3:return!0;case 4:return!0;default:return!1}}function J(O,N){var K=O[N];if(K!=null){if(!Y(K))throw new TypeError;return K}}function se(O){var N=J(O,p);if(!Y(N))throw new TypeError;var K=N.call(O);if(!_e(K))throw new TypeError;return K}function Ae(O){return O.value}function Ie(O){var N=O.next();return N.done?!1:N}function le(O){var N=O.return;N&&N.call(O)}function me(O){var N=Object.getPrototypeOf(O);if(typeof O!="function"||O===g||N!==g)return N;var K=O.prototype,e=K&&Object.getPrototypeOf(K);if(e==null||e===Object.prototype)return N;var t=e.constructor;return typeof t!="function"||t===O?N:t}function Se(){var O={},N=[],K=(function(){function s(l,f,m){this._index=0,this._keys=l,this._values=f,this._selector=m}return s.prototype["@@iterator"]=function(){return this},s.prototype[p]=function(){return this},s.prototype.next=function(){var l=this._index;if(l>=0&&l<this._keys.length){var f=this._selector(this._keys[l],this._values[l]);return l+1>=this._keys.length?(this._index=-1,this._keys=N,this._values=N):this._index++,{value:f,done:!1}}return{value:void 0,done:!0}},s.prototype.throw=function(l){throw this._index>=0&&(this._index=-1,this._keys=N,this._values=N),l},s.prototype.return=function(l){return this._index>=0&&(this._index=-1,this._keys=N,this._values=N),{value:l,done:!0}},s})();return(function(){function s(){this._keys=[],this._values=[],this._cacheKey=O,this._cacheIndex=-2}return Object.defineProperty(s.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),s.prototype.has=function(l){return this._find(l,!1)>=0},s.prototype.get=function(l){var f=this._find(l,!1);return f>=0?this._values[f]:void 0},s.prototype.set=function(l,f){var m=this._find(l,!0);return this._values[m]=f,this},s.prototype.delete=function(l){var f=this._find(l,!1);if(f>=0){for(var m=this._keys.length,L=f+1;L<m;L++)this._keys[L-1]=this._keys[L],this._values[L-1]=this._values[L];return this._keys.length--,this._values.length--,l===this._cacheKey&&(this._cacheKey=O,this._cacheIndex=-2),!0}return!1},s.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=O,this._cacheIndex=-2},s.prototype.keys=function(){return new K(this._keys,this._values,e)},s.prototype.values=function(){return new K(this._keys,this._values,t)},s.prototype.entries=function(){return new K(this._keys,this._values,n)},s.prototype["@@iterator"]=function(){return this.entries()},s.prototype[p]=function(){return this.entries()},s.prototype._find=function(l,f){return this._cacheKey!==l&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=l)),this._cacheIndex<0&&f&&(this._cacheIndex=this._keys.length,this._keys.push(l),this._values.push(void 0)),this._cacheIndex},s})();function e(s,l){return s}function t(s,l){return l}function n(s,l){return[s,l]}}function Ee(){return(function(){function O(){this._map=new v}return Object.defineProperty(O.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),O.prototype.has=function(N){return this._map.has(N)},O.prototype.add=function(N){return this._map.set(N,N),this},O.prototype.delete=function(N){return this._map.delete(N)},O.prototype.clear=function(){this._map.clear()},O.prototype.keys=function(){return this._map.keys()},O.prototype.values=function(){return this._map.values()},O.prototype.entries=function(){return this._map.entries()},O.prototype["@@iterator"]=function(){return this.keys()},O.prototype[p]=function(){return this.keys()},O})()}function ie(){var O=16,N=y.create(),K=e();return(function(){function f(){this._key=e()}return f.prototype.has=function(m){var L=t(m,!1);return L!==void 0?y.has(L,this._key):!1},f.prototype.get=function(m){var L=t(m,!1);return L!==void 0?y.get(L,this._key):void 0},f.prototype.set=function(m,L){var Z=t(m,!0);return Z[this._key]=L,this},f.prototype.delete=function(m){var L=t(m,!1);return L!==void 0?delete L[this._key]:!1},f.prototype.clear=function(){this._key=e()},f})();function e(){var f;do f="@@WeakMap@@"+l();while(y.has(N,f));return N[f]=!0,f}function t(f,m){if(!i.call(f,K)){if(!m)return;Object.defineProperty(f,K,{value:y.create()})}return f[K]}function n(f,m){for(var L=0;L<m;++L)f[L]=Math.random()*255|0;return f}function s(f){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(f)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(f)):n(new Uint8Array(f),f):n(new Array(f),f)}function l(){var f=s(O);f[6]=f[6]&79|64,f[8]=f[8]&191|128;for(var m="",L=0;L<O;++L){var Z=f[L];(L===4||L===6||L===8)&&(m+="-"),Z<16&&(m+="0"),m+=Z.toString(16).toLowerCase()}return m}}function De(O){return O.__=void 0,delete O.__,O}})})(Gd||(Gd={}));
714class jL extends Error{constructor(o){super(`[Inject] ${o}`)}}const qd=new WeakMap([[Array,Symbol(Array.name)]]),Jo=r=>{if(typeof r=="symbol")return r;if(typeof r=="string")return Symbol(r);if(r.prototype){let o=qd.get(r);return o||(o=Symbol(r.name),qd.set(r,o)),o}throw new jL(`Тип значения ${typeof r} не поддерживается для токенов.`)},GL="www",qL="m",ys="ru";function Cl(r=!1){if(typeof window>"u")return ys;const o=window.location.hostname.match(/m?\.?(www|cyber|m)\.?([^.]*)\.(sports.ru)/);if(r)return o?!!o[2]:!0;if(o)switch(o[1]){case GL:case qL:return ys;default:return o[1]}return ys}Jo("CURRENT_SITE");Jo("IS_CURRENT_SITE_DEV");Jo("REFERRER");Jo("LOCATION");Jo("IS_MOBILE");Cl();Cl(!0);let bs;const ws="sports:";function VL(){return Date.now()}function HL(r){try{return JSON.parse(r)}catch{return r}}function vs(r){return r.split(":").length>2}function zL(r,o){const i={date:new Date().toString(),time:VL(),data:r};return o&&(i.version=o),JSON.stringify(i)}let WL=class{constructor(){this.isSupported=window||!1}
714getData(r,o,i){if(!this.isSupported||!vs(r)&&!o)return!1;const u=HL(window.localStorage.getItem((o?"":ws)+r)??"");return i?u:u?.data}set(r,o,i){return!this.isSupported||!vs(r)?!1:(window.localStorage.setItem(ws+r,zL(o,i)),this)}remove(r){return!this.isSupported||!vs(r)?!1:(window.localStorage.removeItem(ws+r),this)}};function YL(){return bs||(bs=new WL),bs}function bi(r){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var u in i)r[u]=i[u]}return r}var KL={read:function(r){return r[0]==='"'&&(r=r.slice(1,-1)),r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(r){return encodeURIComponent(r).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Ru(r,o){function i(c,p,d){if(!(typeof document>"u")){d=bi({},o,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),c=encodeURIComponent(c).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var h in d)d[h]&&(a+="; "+h,d[h]!==!0&&(a+="="+d[h].split(";")[0]));return document.cookie=c+"="+r.write(p,c)+a}}function u(c){if(!(typeof document>"u"||arguments.length&&!c)){for(var p=document.cookie?document.cookie.split("; "):[],d={},a=0;a<p.length;a++){var h=p[a].split("="),y=h.slice(1).join("=");try{var g=decodeURIComponent(h[0]);if(d[g]=r.read(y,g),c===g)break}catch{}}return c?d[c]:d}}return Object.create({set:i,get:u,remove:function(c,p){i(c,"",bi({},p,{expires:-1}))},withAttributes:function(c){return Ru(this.converter,bi({},this.attributes,c))},withConverter:function(c){return Ru(bi({},this.converter,c),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(r)}})}var QL=Ru(KL,{path:"/"});const Vd="userid_geoip_country_code",JL="RU";class ZL{get(o){return(typeof window>"u"?this.getCookieFromServer(o):this.getCookieFromClient())||JL}getCookieFromServer(o){return o?this.parseCookieString(o)[Vd]:""}parseCookieString(o){return o.split(";").map(i=>i.split("=")).reduce((i,u)=>{var c,p;const d=(c=u[0])==null?void 0:c.trim(),a=(p=u[1])==null?void 0:p.trim();return!d||!a?i:{...i,[decodeURIComponent(d)]:decodeURIComponent(a)}},{})}getCookieFromClient(){return QL.get(Vd)}}const XL=new ZL,eN=r=>{const o=XL.get()||"RU",i=t0(r.gqlClient,r.logger);let u=Cl();o.toUpperCase()==="KZ"&&(u=qr.KZ);const c={localStorage:YL(),randomSelector:vL,currentSite:u},p={storagePrefix:"utils:split-testing:",storageSuffix:":group"},d=new yL(c,p),{name:a,default:h}=lo;return{activeGroup:new mL(d).getActiveGroup(a,h)??Lt.OWN,geoCode:o,getRecommendations:async({limit:y,offset:g,filter:b})=>await i.getRecommendations({limit:y,offset:g,filter:b}),getRecomendationsByCyber:async({id:y,limit:g,type:b})=>await i.getRecommendationsCyber({limit:g,type:b,id:y})}},tN={class:"document-card"},rN={class:"document-card__body"},nN=["href","target","title"],oN=["src","alt"],iN={class:"document-card__content"},aN=["href","target","title"],sN={class:"document-card__footer"},uN=["href"],lN=Le({__name:"DocumentCard",props:{title:{type:String,default:""},published:{type:Object,default:()=>({})},commentsCount:{type:Number,default:0},href:{type:String,default:""},newTab:{type:Boolean,default:!1},hot:{type:Boolean,default:!1},imgUrl:{type:String,required:!0},rating:{type:Object,default:null},contentOption:{type:Object,default:null},showDate:{type:Boolean,default:!0}},emits:["click-cover","click-title","click-comments"],setup(r,{emit:o}){const i=r,u=o,c=i.newTab?"_blank":"_self",p=ae(()=>{if(i.rating)return i.rating.plus-i.rating.minus});return(d,a)=>{var h;return oe(),ye("div",tN,[Te("div",rN,[r.imgUrl?(oe(),ye("a",{key:0,class:"document-card__cover",href:r.href,target:q(c),title:r.title,onMousedown:a[0]||(a[0]=y=>u("click-cover",y))},[Te("img",{src:r.imgUrl,alt:r.title,loading:"lazy",class:"document-card__picture"},null,8,oN)],40,nN)):ke("",!0),Te("div",iN,[Te("a",{href:r.href,target:q(c),class:"document-card__title",title:r.title,onMousedown:a[1]||(a[1]=y=>u("click-title",y))},ze(q(df)(r.title)),41,aN),Te("div",sN,[p.value?(oe(),Oe(q(Am),{key:0,class:"document-card__diff-rating","diff-rating":p.value},null,8,["diff-rating"])):ke("",!0),r.commentsCount?(oe(),ye("a",{key:1,class:"document-card__comments",href:`${r.href}#comments`,onMousedown:a[2]||(a[2]=y=>
714u("click-comments",y))},[xe(q(ff),{type:"button",value:r.commentsCount,hot:r.hot,variant:"tertiary",class:"document-card__flame"},null,8,["value","hot"])],40,uN)):ke("",!0),r.showDate?(oe(),Oe(q(r0),{key:2,class:"document-card__published",size:"md",published:r.published.rfc3339},null,8,["published"])):ke("",!0),r.contentOption?(oe(),ye("span",{key:3,class:"document-card__content-option",style:nn({color:`#${(h=r.contentOption)==null?void 0:h.colorCode}`})},ze(r.contentOption.rusName),5)):ke("",!0)])])])])}}}),cN=wa(lN,[["__scopeId","data-v-87aa5c8c"]]);function dN({callback:r,observer:o}){const i={threshold:o?.threshold??1};return new IntersectionObserver(u=>{r(u)},i)}class fN{constructor(o=1){this.__observer=null,this.observingThreshold=new Set,this.observingElements=new Set,this.observingThresholdCount={},this.observingThreshold.add(o)}get observer(){return this.__observer||this.createObserver(),this.__observer}createObserver(){this.__observer&&this.__observer.disconnect(),this.__observer=dN({callback:o=>this.onIntersect(o),observer:{threshold:Array.from(this.observingThreshold)}}),this.observingElements.size>0&&this.observingElements.forEach(o=>{var i;return(i=this.__observer)==null?void 0:i.observe(o)})}observe({element:o,threshold:i=1,callback:u,once:c}){this.observingThreshold.has(i)||(this.observingThreshold.add(i),this.createObserver()),o.observeVisibilityParams={threshold:i,callback:u,once:c??!1},this.observer.observe(o),this.observingElements.add(o),this.increaseThresholdIntersectionCounter(i)}unobserve(o){this.observer.unobserve(o),this.observingElements.delete(o),this.observingElements.size===0&&this.observer.disconnect();const i=this.getObservingElementViewParams(o);i!=null&&i.threshold&&(this.decreaseThresholdIntersectionCounter(i.threshold),!(this.observingThresholdCount[i.threshold]>0)&&(this.observingThreshold.delete(i.threshold),this.createObserver()))}onIntersect(o){o.forEach(i=>{if(!i.isIntersecting||!this.observingElements.has(i.target))return;const u=this.getObservingElementViewParams(i.target);!u||!this.isIntersected(i.intersectionRatio,u)||(u.callback(i),u.once&&this.unobserve(i.target))})}isIntersected(o,i){return o>=i.threshold}getObservingElementViewParams(o){return o.observeVisibilityParams}increaseThresholdIntersectionCounter(o){if(!this.observingThresholdCount[o]){this.observingThresholdCount[o]=1;return}this.observingThresholdCount[o]=this.observingThresholdCount[o]+1}decreaseThresholdIntersectionCounter(o){this.observingThresholdCount[o]=this.observingThresholdCount[o]-1}}const Hd=new fN,pN={mounted(r,o){o.value&&Hd.observe({element:r,threshold:o.value.threshold,callback:o.value.callback,once:o.value.once})},beforeUnmount(r){Hd.unobserve(r)}};var hN={},Wm={},Sa={};Sa.byteLength=yN;Sa.toByteArray=wN;Sa.fromByteArray=_N;var Lr=[],Jt=[],mN=typeof Uint8Array<"u"?Uint8Array:Array,Es="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var jn=0,gN=Es.length;jn<gN;++jn)Lr[jn]=Es[jn],Jt[Es.charCodeAt(jn)]=jn;Jt[45]=62;Jt[95]=63;function Ym(r){var o=r.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=r.indexOf("=");i===-1&&(i=o);var u=i===o?0:4-i%4;return[i,u]}function yN(r){var o=Ym(r),i=o[0],u=o[1];return(i+u)*3/4-u}function bN(r,o,i){return(o+i)*3/4-i}function wN(r){var o,i=Ym(r),u=i[0],c=i[1],p=new mN(bN(r,u,c)),d=0,a=c>0?u-4:u,h;for(h=0;h<a;h+=4)o=Jt[r.charCodeAt(h)]<<18|Jt[r.charCodeAt(h+1)]<<12|Jt[r.charCodeAt(h+2)]<<6|Jt[r.charCodeAt(h+3)],p[d++]=o>>16&255,p[d++]=o>>8&255,p[d++]=o&255;return c===2&&(o=Jt[r.charCodeAt(h)]<<2|Jt[r.charCodeAt(h+1)]>>4,p[d++]=o&255),c===1&&(o=Jt[r.charCodeAt(h)]<<10|Jt[r.charCodeAt(h+1)]<<4|Jt[r.charCodeAt(h+2)]>>2,p[d++]=o>>8&255,p[d++]=o&255),p}function vN(r){return Lr[r>>18&63]+Lr[r>>12&63]+Lr[r>>6&63]+Lr[r&63]}function EN(r,o,i){for(var u,c=[],p=o;p<i;p+=3)u=(r[p]<<16&16711680)+(r[p+1]<<8&65280)+(r[p+2]&255),c.push(vN(u));return c.join("")}function _N(r){for(var o,i=r.length,u=i%3,c=[],p=16383,d=0,a=i-u;d<a;d+=p)c.push(EN(r,d,d+p>a?a:d+p));return u===1?(o=r[i-1],c.push(Lr[o>>2]+Lr[o<<4&63]+"==")):u===2&&(o=(r[i-2]<<8)+r[i-1],c.push(Lr[o>>10]+Lr[o>>4&63]+Lr[o<<2&63]+"=")),c.join("")}var Ol={};
714Ol.read=function(r,o,i,u,c){var p,d,a=c*8-u-1,h=(1<<a)-1,y=h>>1,g=-7,b=i?c-1:0,v=i?-1:1,w=r[o+b];for(b+=v,p=w&(1<<-g)-1,w>>=-g,g+=a;g>0;p=p*256+r[o+b],b+=v,g-=8);for(d=p&(1<<-g)-1,p>>=-g,g+=u;g>0;d=d*256+r[o+b],b+=v,g-=8);if(p===0)p=1-y;else{if(p===h)return d?NaN:(w?-1:1)*(1/0);d=d+Math.pow(2,u),p=p-y}return(w?-1:1)*d*Math.pow(2,p-u)};Ol.write=function(r,o,i,u,c,p){var d,a,h,y=p*8-c-1,g=(1<<y)-1,b=g>>1,v=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=u?0:p-1,_=u?1:-1,T=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(a=isNaN(o)?1:0,d=g):(d=Math.floor(Math.log(o)/Math.LN2),o*(h=Math.pow(2,-d))<1&&(d--,h*=2),d+b>=1?o+=v/h:o+=v*Math.pow(2,1-b),o*h>=2&&(d++,h/=2),d+b>=g?(a=0,d=g):d+b>=1?(a=(o*h-1)*Math.pow(2,c),d=d+b):(a=o*Math.pow(2,b-1)*Math.pow(2,c),d=0));c>=8;r[i+w]=a&255,w+=_,a/=256,c-=8);for(d=d<<c|a,y+=c;y>0;r[i+w]=d&255,w+=_,d/=256,y-=8);r[i+w-_]|=T*128};(function(r){const o=Sa,i=Ol,u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=a,r.SlowBuffer=D,r.INSPECT_MAX_BYTES=50;const c=2147483647;r.kMaxLength=c,a.TYPED_ARRAY_SUPPORT=p(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function p(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function d(e){if(e>c)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,n){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return b(e)}return h(e,t,n)}a.poolSize=8192;function h(e,t,n){if(typeof e=="string")return v(e,t);if(ArrayBuffer.isView(e))return _(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ie(e,ArrayBuffer)||e&&ie(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ie(e,SharedArrayBuffer)||e&&ie(e.buffer,SharedArrayBuffer)))return T(e,t,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const s=e.valueOf&&e.valueOf();if(s!=null&&s!==e)return a.from(s,t,n);const l=A(e);if(l)return l;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,t,n){return h(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function y(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function g(e,t,n){return y(e),e<=0?d(e):t!==void 0?typeof n=="string"?d(e).fill(t,n):d(e).fill(t):d(e)}a.alloc=function(e,t,n){return g(e,t,n)};function b(e){return y(e),d(e<0?0:B(e)|0)}a.allocUnsafe=function(e){return b(e)},a.allocUnsafeSlow=function(e){return b(e)};function v(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=x(e,t)|0;let s=d(n);const l=s.write(e,t);return l!==n&&(s=s.slice(0,l)),s}function w(e){const t=e.length<0?0:B(e.length)|0,n=d(t);for(let s=0;s<t;s+=1)n[s]=e[s]&255;return n}function _(e){if(ie(e,Uint8Array)){const t=new Uint8Array(e);return T(t.buffer,t.byteOffset,t.byteLength)}return w(e)}function T(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let s;return t===void 0&&n===void 0?s=new Uint8Array(e):n===void 0?s=new Uint8Array(e,t):s=new Uint8Array(e,t,n),Object.setPrototypeOf(s,a.prototype),s}function A(e){if(a.isBuffer(e)){const t=B(e.length)|0,n=d(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!="number"||De(e.length)?d(0):w(e);if(e.type==="Buffer"&&Array.isArray(e.data))return w(e.data)}function B(e){if(e>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return e|0}function D(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==a.prototype},a.compare=function(e,t){if(ie(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),ie(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!
714a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,s=t.length;for(let l=0,f=Math.min(n,s);l<f;++l)if(e[l]!==t[l]){n=e[l],s=t[l];break}return n<s?-1:s<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return a.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const s=a.allocUnsafe(t);let l=0;for(n=0;n<e.length;++n){let f=e[n];if(ie(f,Uint8Array))l+f.length>s.length?(a.isBuffer(f)||(f=a.from(f)),f.copy(s,l)):Uint8Array.prototype.set.call(s,f,l);else if(a.isBuffer(f))f.copy(s,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=f.length}return s};function x(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ie(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,s=arguments.length>2&&arguments[2]===!0;if(!s&&n===0)return 0;let l=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Ie(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Se(e).length;default:if(l)return s?-1:Ie(e).length;t=(""+t).toLowerCase(),l=!0}}a.byteLength=x;function W(e,t,n){let s=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return ne(this,t,n);case"utf8":case"utf-8":return H(this,t,n);case"ascii":return he(this,t,n);case"latin1":case"binary":return ge(this,t,n);case"base64":return ue(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,t,n);default:if(s)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}a.prototype._isBuffer=!0;function U(e,t,n){const s=e[t];e[t]=e[n],e[n]=s}a.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)U(this,t,t+1);return this},a.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)U(this,t,t+3),U(this,t+1,t+2);return this},a.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)U(this,t,t+7),U(this,t+1,t+6),U(this,t+2,t+5),U(this,t+3,t+4);return this},a.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?H(this,0,e):W.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:a.compare(this,e)===0},a.prototype.inspect=function(){let e="";const t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},u&&(a.prototype[u]=a.prototype.inspect),a.prototype.compare=function(e,t,n,s,l){if(ie(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),s===void 0&&(s=0),l===void 0&&(l=this.length),t<0||n>e.length||s<0||l>this.length)throw new RangeError("out of range index");if(s>=l&&t>=n)return 0;if(s>=l)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,s>>>=0,l>>>=0,this===e)return 0;let f=l-s,m=n-t;const L=Math.min(f,m),Z=this.slice(s,l),G=e.slice(t,n);for(let $=0;$<L;++$)if(Z[$]!==G[$]){f=Z[$],m=G[$];break}return f<m?-1:m<f?1:0};function S(e,t,n,s,l){if(e.length===0)return-1;if(typeof n=="string"?(s=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,De(n)&&(n=l?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(l)return-1;n=e.length-1}else if(n<0)if(l)n=0;else return-1;if(typeof t=="string"&&(t=a.from(t,s)),a.isBuffer(t))return t.length===0?-1:M(e,t,n,s,l);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?l?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):M(e,[t],n,s,l);throw new TypeError("val must be string, number or Buffer")}function M(e,t,n,s,l){let f=1,m=e.length,L=t.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(e.length<2||t.length<2)return-1;f=2,m/=2,L/=2,n/=2}function Z($,Q){return f===1?$[Q]:$.readUInt16BE(Q*f)}let G;if(l){let $=-1;for(G=n;G<m;G++)if(Z(e,G)===Z(t,$===-1?0:G-$)){if($===-1&&($=G),G-$+1===L)return $*f}else $!==-1&&(G-=G-$),$=-1}else for(n+L>m&&(n=m-L),G=n;G>=0;G--){let $=!0;for(let Q=0;Q<L;Q++)if(Z(e,G+Q)!==Z(t,Q)){$=!1;break}if($)return G}return-1}a.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},a.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function I(e,t,n,s){n=Number(n)||0;const l=e.length-n;s?(s=Number(s),s>l&&(s=l)):s=l;const f=t.length;s>f/2&&(s=f/2);let m;
vendor: 11,536 bytes, line 714
714for(m=0;m<s;++m){const L=parseInt(t.substr(m*2,2),16);if(De(L))return m;e[n+m]=L}return m}function R(e,t,n,s){return Ee(Ie(t,e.length-n),e,n,s)}function C(e,t,n,s){return Ee(le(t),e,n,s)}function V(e,t,n,s){return Ee(Se(t),e,n,s)}function F(e,t,n,s){return Ee(me(t,e.length-n),e,n,s)}a.prototype.write=function(e,t,n,s){if(t===void 0)s="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")s=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,s===void 0&&(s="utf8")):(s=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const l=this.length-t;if((n===void 0||n>l)&&(n=l),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");let f=!1;for(;;)switch(s){case"hex":return I(this,e,t,n);case"utf8":case"utf-8":return R(this,e,t,n);case"ascii":case"latin1":case"binary":return C(this,e,t,n);case"base64":return V(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,e,t,n);default:if(f)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),f=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(e,t,n){return t===0&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function H(e,t,n){n=Math.min(e.length,n);const s=[];let l=t;for(;l<n;){const f=e[l];let m=null,L=f>239?4:f>223?3:f>191?2:1;if(l+L<=n){let Z,G,$,Q;switch(L){case 1:f<128&&(m=f);break;case 2:Z=e[l+1],(Z&192)===128&&(Q=(f&31)<<6|Z&63,Q>127&&(m=Q));break;case 3:Z=e[l+1],G=e[l+2],(Z&192)===128&&(G&192)===128&&(Q=(f&15)<<12|(Z&63)<<6|G&63,Q>2047&&(Q<55296||Q>57343)&&(m=Q));break;case 4:Z=e[l+1],G=e[l+2],$=e[l+3],(Z&192)===128&&(G&192)===128&&($&192)===128&&(Q=(f&15)<<18|(Z&63)<<12|(G&63)<<6|$&63,Q>65535&&Q<1114112&&(m=Q))}}m===null?(m=65533,L=1):m>65535&&(m-=65536,s.push(m>>>10&1023|55296),m=56320|m&1023),s.push(m),l+=L}return X(s)}const j=4096;function X(e){const t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let n="",s=0;for(;s<t;)n+=String.fromCharCode.apply(String,e.slice(s,s+=j));return n}function he(e,t,n){let s="";n=Math.min(e.length,n);for(let l=t;l<n;++l)s+=String.fromCharCode(e[l]&127);return s}function ge(e,t,n){let s="";n=Math.min(e.length,n);for(let l=t;l<n;++l)s+=String.fromCharCode(e[l]);return s}function ne(e,t,n){const s=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>s)&&(n=s);let l="";for(let f=t;f<n;++f)l+=O[e[f]];return l}function be(e,t,n){const s=e.slice(t,n);let l="";for(let f=0;f<s.length-1;f+=2)l+=String.fromCharCode(s[f]+s[f+1]*256);return l}a.prototype.slice=function(e,t){const n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);const s=this.subarray(e,t);return Object.setPrototypeOf(s,a.prototype),s};function P(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e],l=1,f=0;for(;++f<t&&(l*=256);)s+=this[e+f]*l;return s},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e+--t],l=1;for(;t>0&&(l*=256);)s+=this[e+--t]*l;return s},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e=e>>>0,t||P(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||P(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||P(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,l=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(s)+(BigInt(l)<<BigInt(32))}),a.prototype.readBigUInt64BE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],l=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(s)<<BigInt(32))+BigInt(l)}),a.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=this[e],l=1,f=0;for(;++f<t&&(l*=256);)s+=this[e+f]*l;return l*=128,s>=l&&(s-=Math.pow(2,8*t)),s},a.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||P(e,t,this.length);let s=t,l=1,f=this[e+--s];for(;s>0&&(l*=256);)f+=this[e+--s]*l;return l*=128,f>=l&&(f-=Math.pow(2,8*t)),f},a.prototype.readInt8=function(e,t){return e=e>>>0,t||P(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},a.prototype.readInt16LE=function(e,t){e=e>>>0,t||P(e,2,this.length);const n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},a.prototype.readInt16BE=function(e,t){e=e>>>0,t||P(e,2,this.length);const n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},a.prototype.readInt32LE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e=e>>>0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(s)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),a.prototype.readBigInt64BE=N(function(e){e=e>>>0,z(e,"offset");const t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);const s=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(s)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),a.prototype.readFloatLE=function(e,t){return e=e>>>0,t||P(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e=e>>>0,t||P(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||P(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||P(e,8,this.length),i.read(this,e,!1,52,8)};function ee(e,t,n,s,l,f){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>l||t<f)throw new RangeError('"value" argument is out of bounds');if(n+s>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,n,s){if(e=+e,t=t>>>0,n=n>>>0,!s){const m=Math.pow(2,8*n)-1;ee(this,e,t,n,m,0)}let l=1,f=0;for(this[t]=e&255;++f<n&&(l*=256);)this[t+f]=e/l&255;return t+n},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,n,s){if(e=+e,t=t>>>0,n=n>>>0,!s){const m=Math.pow(2,8*n)-1;ee(this,e,t,n,m,0)}let l=n-1,f=1;for(this[t+l]=e&255;--l>=0&&(f*=256);)this[t+l]=e/f&255;return t+n},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,1,255,0),this[t]=e&255,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function Ue(e,t,n,s,l){re(t,s,l,e,n,7);let f=Number(t&BigInt(4294967295));e[n++]=f,f=f>>8,e[n++]=f,f=f>>8,e[n++]=f,f=f>>8,e[n++]=f;let m=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=m,m=m>>8,e[n++]=m,m=m>>8,e[n++]=m,m=m>>8,e[n++]=m,n}function _e(e,t,n,s,l){re(t,s,l,e,n,7);let f=Number(t&BigInt(4294967295));e[n+7]=f,f=f>>8,e[n+6]=f,f=f>>8,e[n+5]=f,f=f>>8,e[n+4]=f;let m=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=m,m=m>>8,e[n+2]=m,m=m>>8,e[n+1]=m,m=m>>8,e[n]=m,n+8}a.prototype.writeBigUInt64LE=N(function(e,t=0){return Ue(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=N(function(e,t=0){return _e(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(e,t,n,s){if(e=+e,t=t>>>0,!s){const L=Math.pow(2,8*n-1);ee(this,e,t,n,L-1,-L)}let l=0,f=1,m=0;for(this[t]=e&255;++l<n&&(f*=256);)e<0&&m===0&&this[t+l-1]!==0&&(m=1),this[t+l]=(e/f>>0)-m&255;return t+n},a.prototype.writeIntBE=function(e,t,n,s){if(e=+e,t=t>>>0,!s){const L=Math.pow(2,8*n-1);ee(this,e,t,n,L-1,-L)}let l=n-1,f=1,m=0;for(this[t+l]=e&255;--l>=0&&(f*=256);)e<0&&m===0&&this[t+l+1]!==0&&(m=1),this[t+l]=(e/f>>0)-m&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ee(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},a.prototype.writeBigInt64LE=N(function(e,t=0){return Ue(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=N(function(e,t=0){return _e(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ce(e,t,n,s,l,f){if(n+s>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function de(e,t,n,s,l){return t=+t,n=n>>>0,l||ce(e,t,n,4),i.write(e,t,n,s,23,4),n+4}a.prototype.writeFloatLE=function(e,t,n){return de(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return de(this,e,t,!1,n)};function ve(e,t,n,s,l){return t=+t,n=n>>>0,l||ce(e,t,n,8),i.write(e,t,n,s,52,8),n+8}a.prototype.writeDoubleLE=function(e,t,n){return ve(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return ve(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,s){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!s&&s!==0&&(s=this.length),t>=e.length&&(t=e.length),t||(t=0),s>0&&s<n&&(s=n),s===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-t<s-n&&(s=e.length-t+n);const l=s-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,s):Uint8Array.prototype.set.call(e,this.subarray(n,s),t),l},a.prototype.fill=function(e,t,n,s){if(typeof e=="string"){if(typeof t=="string"?(s=t,t=0,n=this.length):typeof n=="string"&&(s=n,n=this.length),s!==void 0&&typeof s!="str
714ing")throw new TypeError("encoding must be a string");if(typeof s=="string"&&!a.isEncoding(s))throw new TypeError("Unknown encoding: "+s);if(e.length===1){const f=e.charCodeAt(0);(s==="utf8"&&f<128||s==="latin1")&&(e=f)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let l;if(typeof e=="number")for(l=t;l<n;++l)this[l]=e;else{const f=a.isBuffer(e)?e:a.from(e,s),m=f.length;if(m===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(l=0;l<n-t;++l)this[l+t]=f[l%m]}return this};const te={};function E(e,t,n){te[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(s){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:s,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}E("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),E("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),E("ERR_OUT_OF_RANGE",function(e,t,n){let s=`The value of "${e}" is out of range.`,l=n;return Number.isInteger(n)&&Math.abs(n)>2**32?l=k(String(n)):typeof n=="bigint"&&(l=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(l=k(l)),l+="n"),s+=` It must be ${t}. Received ${l}`,s},RangeError);function k(e){let t="",n=e.length;const s=e[0]==="-"?1:0;for(;n>=s+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function Y(e,t,n){z(t,"offset"),(e[t]===void 0||e[t+n]===void 0)&&J(t,e.length-(n+1))}function re(e,t,n,s,l,f){if(e>n||e<t){const m=typeof t=="bigint"?"n":"";let L;throw t===0||t===BigInt(0)?L=`>= 0${m} and < 2${m} ** ${(f+1)*8}${m}`:L=`>= -(2${m} ** ${(f+1)*8-1}${m}) and < 2 ** ${(f+1)*8-1}${m}`,new te.ERR_OUT_OF_RANGE("value",L,e)}Y(s,l,f)}function z(e,t){if(typeof e!="number")throw new te.ERR_INVALID_ARG_TYPE(t,"number",e)}function J(e,t,n){throw Math.floor(e)!==e?(z(e,n),new te.ERR_OUT_OF_RANGE("offset","an integer",e)):t<0?new te.ERR_BUFFER_OUT_OF_BOUNDS:new te.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}const se=/[^+/0-9A-Za-z-_]/g;function Ae(e){if(e=e.split("=")[0],e=e.trim().replace(se,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Ie(e,t){t=t||1/0;let n;const s=e.length;let l=null;const f=[];for(let m=0;m<s;++m){if(n=e.charCodeAt(m),n>55295&&n<57344){if(!l){if(n>56319){(t-=3)>-1&&f.push(239,191,189);continue}else if(m+1===s){(t-=3)>-1&&f.push(239,191,189);continue}l=n;continue}if(n<56320){(t-=3)>-1&&f.push(239,191,189),l=n;continue}n=(l-55296<<10|n-56320)+65536}else l&&(t-=3)>-1&&f.push(239,191,189);if(l=null,n<128){if((t-=1)<0)break;f.push(n)}else if(n<2048){if((t-=2)<0)break;f.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;f.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;f.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return f}function le(e){const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function me(e,t){let n,s,l;const f=[];for(let m=0;m<e.length&&!((t-=2)<0);++m)n=e.charCodeAt(m),s=n>>8,l=n%256,f.push(l),f.push(s);return f}function Se(e){return o.toByteArray(Ae(e))}function Ee(e,t,n,s){let l;for(l=0;l<s&&!(l+n>=t.length||l>=e.length);++l)t[l+n]=e[l];return l}function ie(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function De(e){return e!==e}const O=(function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const s=n*16;for(let l=0;l<16;++l)t[s+l]=e[n]+e[l]}return t})();function N(e){return typeof BigInt>"u"?K:e}function K(){throw new Error("BigInt not supported")}})(Wm);var Km={exports:{}},pt=Km.exports={},wr,vr;function Bu(){throw new Error("setTimeout has not been defined")}function Cu(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?wr=setTimeout:wr=Bu}catch{wr=Bu}try{typeof clearTimeout=="function"?vr=clearTimeout:vr=Cu}catch{vr=Cu}})();function Qm(r){if(wr===setTimeout)return setTimeout(r,0);if((wr===Bu||!wr)&&setTimeout)return wr=setTimeout,setTimeout(r,0);try{return wr(r,0)}catch{try{return wr.call(null,r,0)}catch{return wr.call(this,r,0)}}}function AN(r){if(vr===clearTimeout)return clearTimeout(r);
714if((vr===Cu||!vr)&&clearTimeout)return vr=clearTimeout,clearTimeout(r);try{return vr(r)}catch{try{return vr.call(null,r)}catch{return vr.call(this,r)}}}var Gr=[],oo=!1,_n,Ui=-1;function IN(){!oo||!_n||(oo=!1,_n.length?Gr=_n.concat(Gr):Ui=-1,Gr.length&&Jm())}function Jm(){if(!oo){var r=Qm(IN);oo=!0;for(var o=Gr.length;o;){for(_n=Gr,Gr=[];++Ui<o;)_n&&_n[Ui].run();Ui=-1,o=Gr.length}_n=null,oo=!1,AN(r)}}pt.nextTick=function(r){var o=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)o[i-1]=arguments[i];Gr.push(new Zm(r,o)),Gr.length===1&&!oo&&Qm(Jm)};function Zm(r,o){this.fun=r,this.array=o}Zm.prototype.run=function(){this.fun.apply(null,this.array)};pt.title="browser";pt.browser=!0;pt.env={};pt.argv=[];pt.version="";pt.versions={};function Zr(){}pt.on=Zr;pt.addListener=Zr;pt.once=Zr;pt.off=Zr;pt.removeListener=Zr;pt.removeAllListeners=Zr;pt.emit=Zr;pt.prependListener=Zr;pt.prependOnceListener=Zr;pt.listeners=function(r){return[]};pt.binding=function(r){throw new Error("process.binding is not supported")};pt.cwd=function(){return"/"};pt.chdir=function(r){throw new Error("process.chdir is not supported")};pt.umask=function(){return 0};var TN=Km.exports;(function(r){Object.defineProperty(r,Symbol.toStringTag,{value:"Module"});const o=Wm,i=TN,u=d=>d&&d.__esModule?d:{default:d},c=u(i),p=globalThis||void 0||self;Object.defineProperty(r,"Buffer",{enumerable:!0,get:()=>o.Buffer}),Object.defineProperty(r,"process",{enumerable:!0,get:()=>c.default}),r.global=p})(hN);const SN={class:"document-card-list"},RN={key:0,class:"document-card-list__title ui-heading-xs"},BN={class:"document-card-list__items"},CN=Le({__name:"DocumentCardList",props:{documents:{type:Array,required:!0},withPaginator:{type:Boolean,default:!1},paginatorText:{type:String,default:"Показать еще"},loading:{type:Boolean,default:!1},title:{type:String,default:""},paginatorTag:{type:String,default:H0.BUTTON},paginatorHref:{type:String,default:null},showDate:{type:Boolean,default:!0}},emits:["click-paginator","click-cover","click-title","click-comments","view","view-end"],setup(r,{emit:o}){const i=o,u=J8(()=>{i("view-end")},1e3),c=ae(()=>({callback:async y=>{i("view",y),await u()},once:!0,threshold:.6})),p=()=>{i("click-paginator")},d=(y,g)=>{i("click-cover",y,g)},a=(y,g)=>{i("click-title",y,g)},h=(y,g)=>{i("click-comments",y,g)};return(y,g)=>(oe(),ye("div",SN,[r.title?(oe(),ye("div",RN,ze(r.title),1)):ke("",!0),Te("div",BN,[(oe(!0),ye(At,null,$t(r.documents,b=>{var v,w;return Wo((oe(),Oe(cN,{key:b.id,class:"document-card-list__item",published:b.published,"comments-count":b.commentsCount,href:((v=b.pageInfo)==null?void 0:v.relativeURL)??b.url??"",hot:b.hot,t
714itle:b.title,"show-date":r.showDate,"data-id":b.id,"img-url":((w=b?.topPicture)==null?void 0:w.url)??"",rating:b.rating,"content-option":b?.contentOption,onClickComments:_=>h(_,b.id),onClickCover:_=>d(_,b.id),onClickTitle:_=>a(_,b.id)},null,8,["published","comments-count","href","hot","title","show-date","data-id","img-url","rating","content-option","onClickComments","onClickCover","onClickTitle"])),[[q(pN),c.value]])}),128)),r.withPaginator?(oe(),Oe(q(z0),{key:0,"is-loading":r.loading,as:r.paginatorTag,href:r.paginatorHref,class:"document-card-list__paginator",text:r.paginatorText,onLoadMore:p},null,8,["is-loading","as","href","text"])):ke("",!0)])]))}}),ON=wa(CN,[["__scopeId","data-v-518c98f3"]]),LN={key:1};or.SPORTS,am.UNDERCONTENT;Xr.SB_TYPE_IMAGE,Xr.SB_TYPE_LINKED_IMAGE,Xr.SB_TYPE_IFRAME,Xr.SB_TYPE_INSTAGRAM,Xr.SB_TYPE_TWITTER,Xr.SB_TYPE_YOUTUBE,Xr.SB_TYPE_TELEGRAM,Xr.SB_TYPE_VIMEO;const Xm=r=>" href, image { alt, height, picture { url } text, width } ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),eg=r=>" preview: picture(input: { resize: WIDTH_730, ext: WEBP, keepSmall: true, scale: 2 }) { url }, full: picture(input: { resize: WIDTH_730, ext: WEBP, scale: 2 }) { url }, alt, height, picture { url }, text, width ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),tg=r=>" html ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),rg=r=>" text, format { bold, color, highlight, strike, underscore } ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),ng=r=>" format { bold, color, highlight, strike, underscore }, href, text ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),og=r=>` items { elements { type, value { ... on StructuredBodyParagraphElementText { ${rg()} } ... on StructuredBodyParagraphElementLink { ${ng()} } } }, }, style, type `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),ig=r=>` elements { type, value { ... on StructuredBodyParagraphElementText { ${rg()} } ... on StructuredBodyParagraphElementLink { ${ng()} } } }, size `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),ag=r=>" id ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),sg=r=>" level, text ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),ug=r=>" aspectRatio, source, allow, allowFullscreen, dataHeightDesktop, dataHeightTablet, dataHeightMobile, ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),lg=r=>" id ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),cg=r=>" id, stringWidth, color, darkColor, showUserpic, darkTheme ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),dg=r=>" id ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),fg=r=>" id ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),pg=r=>" id, start, end ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),hg=r=>" id sportType widgetType ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),mg=r=>" coeff bet bonus bonusValue bonusUrl bookmakerUrl bookmakerLogo buttonText buttonUrl advertiser adLabel trackingPixelUrl bonusSum currency primaryColor secondaryColor titleButtonUrl ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),gg=r=>" allowFullscreen aspectRatio autoplay end source start ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),yg=r=>" id ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),bg=r=>" id ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),wg=r=>" id ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),vg=r=>" id ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),NN=r=>" id ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),DN=r=>" id ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");var Ou=(r=>(r.BOOKMARKED="1",r.NOT_BOOKMARKED="0",r))(Ou||{});function xN(r,o,i){return{action:"bookmark",label:r,property:{is_adaptive:1,sequence_n:o},value:i}}var Lu=(r=>(r.PLUS="1",r.MINUS="-1",r))(Lu||{});function UN(r,o,i){return{action:"rate",label:r,property:{is_adaptive:1,sequence_n:i},value:o}}const kN="web_popup";var Eg=(r=>(r.SIGN_IN="sign_in",r))(Eg||{}),_g=(r=>(r.OPEN="1",r))(_g||{}),Ag=(r=>(r.AUTHOR_SUBSCRIBE="author_subscribe",r.WRITE_POST="write_post",r.BOOKMARK="bookmark",r.BLOG_SUBSCRIBE="blog_subscribe",r))(Ag||{});function PN({type:r,value:o,from:i}){return{category:"auth",action:"authorization_click",label:kN,property:{type:r,from:i},value:o}}const vo="не указан id блога",_s="не указан id пользователя";
714let It=class extends Error{constructor(o,i=""){super(`[Sports][Blog] Code: ${o} ${i}`)}};var _t=(r=>(r.GQL_INSTANCE_UNDEFINED="GQL_INSTANCE_UNDEFINED",r.INVALID_ARGUMENT="INVALID_ARGUMENT",r.UNDEFINED_BLOG_ACTIONS="UNDEFINED_BLOG_ACTIONS",r.FAILED_BLOG_ACTIONS="FAILED_BLOG_ACTIONS",r))(_t||{});const Ig=r=>` { blogQueries { actions(ID: ${JSON.stringify(r.id)}) { delete addPost edit draftViewPost addPostDraft } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Ig.operationName="blogActions";const Tg=r=>` { banOnUserBlogs(UserID: ${JSON.stringify(r.userId)}) { status } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Tg.operationName="banOnUserBlogs";const Sg=r=>` { blogBanListAddUsers(BlogID: ${JSON.stringify(r.blogId)}, UserIDs: ${JSON.stringify(r.userId)}) { status } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Sg.operationName="banUser";const Rg=r=>` { blogBanListDeleteUsers(BlogID: ${JSON.stringify(r.blogId)}, UserIDs: ${JSON.stringify(r.userId)}) { status } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Rg.operationName="unbanUser";const Bg=r=>` { blogMutations { subscribe(BlogID: ${JSON.stringify(r.blogId)}) { status } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Bg.operationName="subscribe";const Cg=r=>` { blogMutations { unsubscribe(BlogID: ${JSON.stringify(r.blogId)}) { status } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Cg.operationName="unsubscribe";function MN(r){if(!r)throw new It(_t.GQL_INSTANCE_UNDEFINED);return{async banUser(o,i){var u;if(!o)throw new It(_t.INVALID_ARGUMENT,vo);if(!i)throw new It(_t.INVALID_ARGUMENT,_s);try{return((u=(await r.gqlMutation(Sg,{blogId:o,userId:[i]}))?.blogBanListAddUsers)==null?void 0:u.status)??!1}catch{throw new It(_t.FAILED_BLOG_ACTIONS)}},async unbanUser(o,i){var u;if(!o)throw new It(_t.INVALID_ARGUMENT,vo);if(!i)throw new It(_t.INVALID_ARGUMENT,_s);return((u=(await r.gqlMutation(Rg,{blogId:o,userId:[i]}))?.blogBanListDeleteUsers)==null?void 0:u.status)??!1},async getBlogUserActions(o){if(!o)throw new It(_t.INVALID_ARGUMENT,vo);try{const i=await r.gqlQuery(Ig,{id:o});if(!i)throw new It(_t.UNDEFINED_BLOG_ACTIONS);return i.actions}catch{throw new It(_t.FAILED_BLOG_ACTIONS)}},async banInMyBlogs(o){var i;if(!o)throw new It(_t.INVALID_ARGUMENT,_s);try{return!!((i=(await r.gqlMutation(Tg,{userId:o}))?.banOnUserBlogs)!=null&&i.status)}catch{throw new It(_t.FAILED_BLOG_ACTIONS)}},async subscribe(o){var i;if(!o)throw new It(_t.INVALID_ARGUMENT,vo);try{return!!((i=(await r.gqlMutation(Bg,{blogId:o}))?.blogMutations.subscribe)!=null&&i.status)}catch{throw new It(_t.FAILED_BLOG_ACTIONS)}},async unsubscribe(o){var i;if(!o)throw new It(_t.INVALID_ARGUMENT,vo);try{return!!((i=(await r.gqlMutation(Cg,{blogId:o}))?.blogMutations.unsubscribe)!=null&&i.status)}catch{throw new It(_t.FAILED_BLOG_ACTIONS)}}}}var Nu=(r=>(r.Post="POST",r))(Nu||{}),Bo=(r=>(r.Avif="AVIF",r.Gif="GIF",r.Jpeg="JPEG",r.Png="PNG",r.Svg="SVG",r.Webp="WEBP",r))(Bo||{}),Co=(r=>(r.Original="ORIGINAL",r.Size_200_314="SIZE_200_314",r.Size_256_128="SIZE_256_128",r.Size_320_168="SIZE_320_168",r.Size_343_172="SIZE_343_172",r.Size_343_235="SIZE_343_235",r.Size_343_296="SIZE_343_296",r.Size_375_268="SIZE_375_268",r.Size_396_198="SIZE_396_198",r.Size_396_412="SIZE_396_412",r.Size_672_579="SIZE_672_579",r.Size_744_372="SIZE_744_372",r.Size_808_404="SIZE_808_404",r.Width_320="WIDTH_320",r.Width_640="WIDTH_640",r.Width_730="WIDTH_730",r))(Co||{}),Du=(r=>(r.Author="AUTHOR",r.Blog="BLOG",r))(Du||{}),io=(r=>(r.About="ABOUT",r.Add="ADD",r.App="APP",r.Athletes="ATHLETES",r.Bonus="BONUS",r.Bookmaker="BOOKMAKER",r.Calendar="CALENDAR",r.CalendarDate="CALENDAR_DATE",r.CalendarGroup="CALENDAR_GROUP",r.Coaches="COACHES",r.Countries="COUNTRIES",r.Date="DATE",r.Edit="EDIT",r.Grid="GRID",r.Group="GROUP",r.Lineups="LINEUPS",r.List="LIST",r.Live="LIVE",r.Main="MAIN",r.News="NEWS",r.Odds="ODDS",r.Online="ONLINE",r.Poll="POLL",r.Posts="POSTS",r.Prediction="PREDICTION",r.Predictions="PREDICTIONS",r.PredictionSportsEvent="PREDICTION_SPORTS_EVENT",r.Prizes="PRIZES",r.Ratings="RATINGS",r.Results="RESULTS",r.Reviews="REVIEWS",r.Rules="RULES",r.Scheme="SCHEME",r.Sports="SPORTS",r.Stadiums="STADIUMS",r.Stat="STAT",r.StatAssistances="STAT_ASSISTANCES",r.StatBombardiers="STAT_BOMBARDIERS",r.StatFouls="STAT_FOULS",r.StatKeepers="STAT_KEEPERS",r.Table="TABLE",r.TableGroup="TABLE_GROUP",r.TablePlayoff="TABLE_PLAYOFF",r.Team="TEAM",r.Teams="TEAMS",r.Tickets="TICKETS",r.Tournament="TOURNAMENT",r.Video="VIDEO",r))(io||{}),Og=(r=>(r.AmateurSportContest="AMATEUR_SPORT_CONTEST",r.BookmakerRating="BOOKMAKER_RATING",r.CyberMatchCenter="CYBER_MATCH_CENTER",r.CyberMatchCenterTournament="CYBER_MATCH_CENTER_TOURNAMENT",r.CyberTournament="CYBER_TOURNAMENT",r.DotaMatch="DOTA_MATCH",r.FantasyIndex="FANTASY_INDEX",r.FantasySquad="FANTASY_SQUAD",r.FantasyTournament="FANTASY_TOURNAMENT",r.Faq="FAQ",r.Hub="HUB",r.Match="MATCH",r.News="NEWS",r.Olympic="OLYMPIC",r.Poll="POLL",r.Post="POST",r.PredictionHub="PREDICTION_HUB",r.Predictor="PREDICTOR",r.PredictorIndex="PREDICTOR_INDEX",r.PredictorTournament="PREDICTOR_TOURNAMENT",r.Short="SHORT",r.TagOther="TAG_OTHER",r.TagTourn
714ament="TAG_TOURNAMENT",r))(Og||{}),Lg=(r=>(r.Admin="ADMIN",r.Delete="DELETE",r.Edit="EDIT",r.Hide="HIDE",r.HideFromSection="HIDE_FROM_SECTION",r.Restore="RESTORE",r.Show="SHOW",r.ShowInSection="SHOW_IN_SECTION",r))(Lg||{}),ki=(r=>(r.Minus="MINUS",r.Plus="PLUS",r))(ki||{}),Ng=(r=>(r.Article="ARTICLE",r.BookmakerOpinion="BOOKMAKER_OPINION",r.Comment="COMMENT",r.News="NEWS",r.Photo="PHOTO",r.PhotoGallery="PHOTO_GALLERY",r.Poll="POLL",r.Post="POST",r.Status="STATUS",r.Usernews="USERNEWS",r))(Ng||{});const Ll=r=>` { ratingMutations { rate(objectID: ${JSON.stringify(r.objectId)}, objectClass: ${r.objClass}, action: ${r.action}) { result rating { plus minus total action canRate isDisabled } error { ...on DefaultError { message } ...on RateNotAllowedError { message code } } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Ll.operationName="getRateQuery";const Ra=()=>" id title authors { nick badge { imageURL imageURLDark description } id url following picture { url } } published { epoch rfc3339 } pageInfo { relativeURL desktopURL } editorialMaterial rating { plus minus total canRate action isDisabled } hot commentsCount contentOption { name rusName colorCode } ",Dg=()=>" structuredBody { type raw value { ... on StructuredBodyParagraph { size elements { type value { ... on StructuredBodyParagraphElementText { text format { bold strike underscore color } } ... on StructuredBodyParagraphElementLink { text href format { bold strike underscore } } } } } ... on StructuredBodyImage { alt text width height picture { url } } ... on StructuredBodyLinkedImage { href attrs { rel } image { alt text width height picture { url } } } ... on StructuredBodySubtitle { text } } } ",xu=()=>`( $ids: [ID!]!, $amount: Int, $page: Int, $excludeSupertop: Boolean, $minRate: Int, $contentType: postContentType, $imageResize: PicturePostSize!, $imageExt: PictureExtension!, $imageScale: Int, $imageSmartCropEnabled: Boolean, $imageAspectWidth: Int, $imageAspectHeight: Int, $imageKeepSmall: Boolean ) { postQueries { byTagIDs( IDs: $ids amount: $amount page: $page excludeSupertop: $excludeSupertop minRate: $minRate contentType: $contentType ) { lastId totalCount hasMore posts { ${Ra()} type status isShort reactions { count selected reaction { content { imageUrl } id } } blog { id name relativeUrl webname avatar { url } } ${Dg()} topPicture( input: { resize: $imageResize ext: $imageExt scale: $imageScale smartCropEnabled: $imageSmartCropEnabled aspectWidth: $imageAspectWidth aspectHeight: $imageAspectHeight 
714keepSmall: $imageKeepSmall } ) { url } mediaList { id picture( input: { resize: $imageResize ext: $imageExt scale: $imageScale smartCropEnabled: $imageSmartCropEnabled aspectWidth: $imageAspectWidth aspectHeight: $imageAspectHeight keepSmall: $imageKeepSmall } ) { url } } bookmarked } } } }`;xu.operationName="frontendPost_v4_getLastPostByTags";const xg=()=>`( $ids: [ID!]!, $amount: Int, $from: Int, $page: Int, $contentType: postContentType, $imageResize: PicturePostSize!, $imageExt: PictureExtension!, $imageScale: Int, $imageSmartCropEnabled: Boolean, $imageAspectWidth: Int, $imageAspectHeight: Int, $imageKeepSmall: Boolean ) { postQueries { bestByTagIDs(IDs: $ids, amount: $amount, from: $from, page: $page, contentType: $contentType) { lastId totalCount hasMore posts { ${Ra()} topPicture( input: { resize: $imageResize ext: $imageExt scale: $imageScale smartCropEnabled: $imageSmartCropEnabled aspectWidth: $imageAspectWidth aspectHeight: $imageAspectHeight keepSmall: $imageKeepSmall } ) { url } } } } }`;xg.operationName="frontendPost_v4_getBestPostsByTags";const Ug=()=>` ( $limit: Int, $offset: Int, $sectionId: ID!, $sort: postSortType, $contentType: postContentType, $type: PostType, $withShortPosts: Boolean!, $imageResize: PicturePostSize!, $imageExt: PictureExtension!, $imageScale: Int, $imageSmartCropEnabled: Boolean, $imageAspectWidth: Int, $imageAspectHeight: Int, $imageKeepSmall: Boolean ) { postQueries { bySection( limit: $limit, offset: $offset, sectionID: $sectionId, sort: $sort, contentType: $contentType, type: $type, ) { hasMore totalCount lastId posts { ${Ra()} topPicture( input: { resize: $imageResize ext: $imageExt scale: $imageScale smartCropEnabled: $imageSmartCropEnabled aspectWidth: $imageAspectWidth aspectHeight: $imageAspectHeight 
714keepSmall: $imageKeepSmall } ) { url } bookmarked isShort mediaList @include(if: $withShortPosts) { id picture( input: { resize: $imageResize ext: $imageExt scale: $imageScale smartCropEnabled: $imageSmartCropEnabled aspectWidth: $imageAspectWidth aspectHeight: $imageAspectHeight keepSmall: $imageKeepSmall } ) { url } } reactions @include(if: $withShortPosts) { count selected reaction { content { imageUrl } id } } ... on documentPost @include(if: $withShortPosts) { ${Dg()} } } } } }`;Ug.operationName="frontendPost_v4_getPostsBySection";const kg=()=>"($userId: ID!) { postMutations { banUser(userID: $userId) { status } } }";kg.operationName="frontendPost_v4_banUser";const Pg=()=>"($userId: ID!) { postMutations { unbanUser (userID: $userId){ status } } }";Pg.operationName="frontendPost_v4_unbanUser";const Mg=()=>`($id: ID!) { postQueries { byID(ID: $id) { ${Ra()} } } }`;Mg.operationName="frontendPost_v4_getPostById";const $g=()=>"($variant: nextPostVariant $id: ID, $exclude: [ID!] ) { postQueries { next(variant: $variant ID: $id exclude: $exclude) { id pageInfo { relativeURL } } } }";$g.operationName="frontendPost_v4_getNextPost";const Fg=()=>"($postID: ID! $amount: Int) { postQueries { relatedPosts(postID: $postID, amount: $amount) { posts { id title published { rfc3339 } pageInfo { relativeURL } editorialMaterial topPicture(input: { ext: WEBP, resize: WIDTH_320}) { url } rating { plus minus } hot commentsCount } postSource } } }";Fg.operationName="frontendPost_v4_getLatestBlogPosts";const jg=()=>`($id: ID!) { postQueries { byID(ID: $id) { id branded topPicture(input: { ext: WEBP, resize: WIDTH_320}) { url } commentsDisabled disableSuggestions contentsPosition actions authors { id nick url following about subscribersCount balls stars verified isSportsEmployee rate { points } picture(input: { ext: PNG, resize: SIZE_64_64 }) { url } svg: picture(input: { ext: SVG }) { url } normal: picture(input: { ext: PNG, resize: SIZE_64_64 }) { url } big: picture(input: { ext: PNG, resize: SIZE_128_128 }) { url } normalWebp: picture(input: { ext: WEBP, resize: SIZE_64_64 }) { url } bigWebp: picture(input: { ext: WEBP, resize: SIZE_128_128 }) { url } } brief published { rfc3339 } blog { id name webname isAuthor isModerator relativeUrl subscribed subtitle avatar { url } } status rating { isDisabled } section { id webname name relativeUrl createBlog { title text picture { url } } } subsections { id webname name relativeUrl parentID, } title sponsored poll { id } textOnline { onlineInfo { id } } tiedArticle { id } structuredBody { type raw value { ... on StructuredBodyIframe { ${ug()} } ... on StructuredBodyImage { ${eg()} } ... on StructuredBodyLinkedImage { ${Xm()} } ... on StructuredBodyList { ${og()} } ... on StructuredBodyParagraph { ${ig()} } ... on StructuredBodyPoll { ${ag()} } ... on StructuredBodySubtitle { ${sg()} } ... on StructuredBodyFootballMatch { ${bg()} } ... on StructuredBodyHokeyMatch { ${wg()} } ... on StructuredBodyBasketballMatch { ${yg()} } ... on StructuredBodyTennisMatch { ${vg()} } ... on StructuredBodyInstagram { ${lg()} } ... on StructuredBodyTwitter { ${dg()} } ... on StructuredBodyYoutube { ${pg()} } ... on StructuredBodyTelegram { ${cg()} } ... on StructuredBodyVimeo { ${fg()} } ... on StructuredBodyHTMLSource { ${tg()} } ... on StructuredBodyLastMatches { ${hg()} } ... on StructuredBodyMatchPrediction { ${mg()} } ... on StructuredBodyVideo { ${gg()} } } } prediction { id oddsFloat betText match { ... on statMatch { __typename links { link } ubersetzer { sportsId } } ... on hockeyMatch { __typename link ubersetzer { sportsId } } ... on tennisMatch { __typename link ubersetzer { sportsId } } ... on BasketballLegacyMatch { __typename pageInfo { desktopURL } } } } } } }`;jg.operationName="frontendPost_v4_getPostEditData";const Gg=()=>"( $postID: ID!, $title: String!, $branded: Boolean, $brief: String!, $briefMediaURL: String!, $createArticle: Boolean, $structuredBody: String!, $sectionID: ID!, $subsectionIDs: [ID!] $rateOff: Boolean!, $tagIDs: [ID!], $commentsDisabled: Boolean, $hideFromSections: Boolean, $disabledSuggestions: Boolean, $editSource: editSource, $status: PostStatus!, $contentsPosition: Int, ) { postMutations { edit(input: { postID: $postID title: $title branded: $branded brief: $brief briefMediaURL: $briefMediaURL createArticle: $createArticle structuredBody: $structuredBody sectionID: $sectionID subsectionIDs: $subsectionIDs tagIDs: $tagIDs rateOff: $rateOff commentsDisabled: $commentsDisabled disabledSuggestions: $disabledSuggestions hideFromSections: $hideFromSections editSource: $editSource status: $status contentsPosition: $contentsPosition }) { status error { ... on DefaultError { message } ... on PostEditError { message } ... on PostInvalidIframeError { message } ... on PostStopwordError { message } } } } }";Gg.operationName="frontendPost_v4_editPost";const qg=()=>"( $blogID: ID, $title: String!, $branded: Boolean, $briefMediaURL: String!, $brief: String!, $structuredBody: String!, $sectionID: ID!, $subsectionIDs: [ID!] $rateOff: Boolean!, $tagIDs: [ID!], $commentsDisabled: Boolean, $hideFromSections: Boolean, $disabledSuggestions: Boolean, $editSource: editSource, $status: PostStatus!, $contentsPosition: Int, ) { postMutations { create(input: { blogID: $blogID title: $title branded: $branded briefMediaURL: $briefMediaURL brief: $brief structuredBody: $structuredBody sectionID: $sectionID subsectionIDs: $subsectionIDs tagIDs: $tagIDs rateOff: $rateOff commentsDisabled: $commentsDisabled disabledSuggestions: $disabledSuggestions hideFromSections: $hideFromSections editSource: $editSource status: $status contentsPosition: $contentsPosition }) { id error { ... on DefaultError { message } ... on PostInvalidIframeError { message } ... on PostStopwordError { message } ... on PostCreateError { message } } } } }";qg.operationName="frontendPost_v4_createPost";const Vg=()=>"($postId: ID!) { postQueries { byID(ID: $postId) { bookmarked blog { subscribed } authors { id following } rating { plus minus total isDisabled canRate action } } } }";Vg.operationName="frontendPost_v4_getClientPostInfo";function $N(r,o,i){return`{
715        newsQueries {
716            relativeToPost(
717                postID: ${r}
718                ${o?`amount: ${o}`:""}
719                ${i?`lastID: ${i}`:""}
720            ) {
721                hasMore
722                lastId
723                news {
724                    id
725                    title
726                    url
727                    pageInfo {
728                        relativeURL
729                    }
730                    commentsCount
731                    published {
732                        rfc3339
733                    }
734                    hot
735                    contentOption {
736                        colorCode
737                        name
738                        rusName
739                    }
740                }
741            }
742        }
743    }`}const FN=(r,o,i)=>`{
744  postQueries {
745    byUserID(userID: ${r} lastID: "${o}" amount: ${i}) {
746      posts {
747          id
748          title
749          published {
750              rfc3339
751          }
752          pageInfo {
753              relativeURL
754          }
755          topPicture {
756              url
757          }
758          rating {
759              plus
760              minus
761          }
762          hot
763          commentsCount
764      }
765    }
766  }
767}`;function jN(r){return`{
768      summaryQueries {
769        byID(id: ${r}) {
770          id
771          content
772          isEnabled
773        }
774      }
775    }`}function GN(r,o=io.Main){return`
776        {
777            pageMeta(type: ${Og.Post}, ID: ${r}, subtype: ${o}) {
778                title
779                microdata
780                title
781                description
782                text
783                heading
784                imageSrc
785                synopsis
786                canonicalUrl
787                urls {
788                    androidApp
789                    mobile
790                }
791                appLinks {
792                    ios {
793                        appId
794                        appLink
795                        appName
796                    }
797                    android {
798                        package
799                        appLink
800                        appName
801                    }
802                    object {
803                        id
804                        class
805                    }
806                }
807                og {
808                    title
809                    description
810                    siteName
811                    url
812                    image
813                }
814            }
815        }
816    `}function qN(r,o){return`
817        {
818            postQueries {
819                bestByBlogID(blogID:"${r}", amount: ${o}) {
820                      posts {
821                          id
822                          title
823                          pageInfo {
824                              relativeURL
825                          }
826                          topPicture {
827                              url
828                          }
829                          rating {
830                              plus
831                              minus
832                          }
833                          hot
834                          commentsCount
835                      }
836                }
837            }
838        }
839    `}const VN=()=>` contentsPosition title sponsored poll { id } textOnline { onlineInfo { id } } structuredBody { type raw value { ... on StructuredBodyIframe { ${ug()} } ... on StructuredBodyImage { ${eg()} } ... on StructuredBodyLinkedImage { ${Xm()} } ... on StructuredBodyList { ${og()} } ... on StructuredBodyParagraph { ${ig()} }
839 ... on StructuredBodyPoll { ${ag()} } ... on StructuredBodySubtitle { ${sg()} } ... on StructuredBodyFootballMatch { ${bg()} } ... on StructuredBodyHokeyMatch { ${wg()} } ... on StructuredBodyBasketballMatch { ${yg()} } ... on StructuredBodyTennisMatch { ${vg()} } ... on StructuredBodyInstagram { ${lg()} } ... on StructuredBodyTwitter { ${dg()} } ... on StructuredBodyYoutube { ${pg()} } ... on StructuredBodyTelegram { ${cg()} } ... on StructuredBodyVimeo { ${fg()} } ... on StructuredBodyHTMLSource { ${tg()} } ... on StructuredBodyLastMatches { ${hg()} } ... on StructuredBodyMatchPrediction { ${mg()} } ... on StructuredBodyBookmakerBonus { bonusTitle, bonusSubtitle, promocode, bookmakerLogo, buttonUrl, buttonText, } ... on StructuredBodyVideo { ${gg()} } ... on StructuredBodyAutomotoRace { ${NN()} } ... on StructuredBodyBiathlonRace { ${DN()} } } } `,Hg=`
840    id
841    branded
842    isSuperBranded
843    superBrandedImages {
844       imgLargeURL
845       imgMediumURL
846       imgSmallURL
847    }
848    topPicture {
849      url
850    }
851    readingTime {
852      minutes
853    }
854    commentsDisabled
855    published {
856      rfc3339
857    }
858    modified {
859      rfc3339
860    }
861    contentOption {
862      colorCode
863      rusName
864      name
865    }
866    authors {
867      id
868      nick
869      url
870      about
871      subscribersCount
872      balls
873      stars
874      verified
875      isSportsEmployee
876      badge {
877        id
878        name
879        imageURL
880        imageURLDark
881        contentURL
882        description
883      }
884      rate {
885          points
886      }
887      picture(input: { ext: PNG, resize: SIZE_64_64 }) {
888          url
889      }
890      svg: picture(input: { ext: SVG }) {
891            url
892      }
893      normal: picture(input: { ext: PNG, resize: SIZE_48_48 }) {
894          url
895      }
896      big: picture(input: { ext: PNG, resize: SIZE_128_128 }) {
897          url
898      }
899      normalWebp: picture(input: { ext: WEBP, resize: SIZE_48_48 }) {
900          url
901      }
902      bigWebp: picture(input: { ext: WEBP, resize: SIZE_128_128 }) {
903          url
904      }
905    }
906    donationsEnabled
907    tags {
908      tag {
909        id
910        name
911        images {
912          logo
913        }
914        urls {
915          relativeURL
916        }
917      }
918    }
919    blog {
920        id
921        name
922        webname
923        isAuthor
924        isModerator
925        isOfficial
926        relativeUrl
927        subtitle
928        avatar {
929            url
930        }
931    }
932    brief
933    type
934    status
935    sponsored
936    pageInfo {
937        desktopURL
938        relativeURL
939        mobileURL
940        ampURL
941    }
942    section {
943        id
944        webname
945        name
946        url
947        relativeUrl
948        createBlog {
949            title
950            text
951            picture {
952                url
953            }
954        }
955    }
956    prediction {
957        id
958        section {
959            name
960            webname
961        }
962        oddsFloat
963        match {
964            ... on statMatch {
965                links {
966                    link
967                }
968                ubersetzer {
969                    sportsId
970                }
971            }
972            ... on hockeyMatch {
973                link
974                ubersetzer {
975                    sportsId
976                }
977            }
978            ... on tennisMatch {
979                link
980                ubersetzer {
981                    sportsId
982                }
983            }
984            ... on tennisMatch {
985                ubersetzer {
986                    sportsId
987                }
988            }
989        }
990    }
991    editorialMaterial
992    summaryID
993    showSummaryButton
994    lastCommentAt {
995        rfc3339
996    }
997`;function HN(r){return`{
998      postQueries {
999        byID(ID: "${r}") {
1000          ${Hg}
1001          ${VN()}
1002        }
1003      }
1004    }`}function zN(r){return`{
1005        postQueries {
1006            byID(ID: "${r}") {
1007                ${Hg}
1008            }
1009        }
1010    }`}let Ye=class extends Error{constructor(o,i="",u){super(`[Sports][Post] Code: ${o} ${i}`),this.obj=u,this.code=o}};var qe=(r=>(r.GQL_INSTANCE_UNDEFINED="GQL_INSTANCE_UNDEFINED",r.BAD_RESPONSE="BAD_RESPONSE",r.INVALID_ARGUMENT="INVALID_ARGUMENT",r.REQUEST_ERROR="REQUEST_ERROR",r.POST_NOT_RECEIVED="POST_NOT_RECEIVED",r.POST_META_NOT_RECEIVED="POST_META_NOT_RECEIVED",r.FAILED_POST_ACTIONS="FAILED_POST_ACTIONS",r.NEXT_POST_NOT_RECEIVED="NEXT_POST_NOT_RECEIVED",r.INJECTION_ERROR="INJECTION_ERROR",r.USER_POSTS_NO_RECIEVED="USER_POSTS_NO_RECIEVED",r.SUMMARY_NOT_RECEIVED="SUMMARY_NOT_RECEIVED",r.FAILED_POST_RATES="FAILED_POST_RATES",r))(qe||{});const zd="Произошла непредвиденная ошибка, статья не была сохранена. Пожалуйста, повторите попытку позже.",WN="не указан id блога",Gn="не указан id статьи",YN="не указан id тэга",pn=r=>!!r&&r!=="0";function KN(r){if(!r)throw new Ye(qe.GQL_INSTANCE_UNDEFINED);const o=pf();return{async getPostById(i){if(!i)throw new Ye(qe.INVALID_ARGUMENT,"не указан id статьи");try{return(await r.gqlQuery(Mg,{id:i})).byID||null}catch{throw new Ye(qe.POST_NOT_RECEIVED,"Ошибка при получении статьи")}},async getPost(i){if(!pn(i))throw new Ye(qe.INVALID_ARGUMENT,Gn);const u=await r.query(zN(i));if(!u)throw new Ye(qe.POST_NOT_RECEIVED);return u.byID},async getPostEditData(i){if(!pn(i))throw new Ye(qe.INVALID_ARGUMENT,Gn);const u=await r.gqlQuery(jg,{id:i});if(!u.byID)throw new Ye(qe.POST_NOT_RECEIVED);return u.byID},async getPostPageMeta(i,u=io.Main){if(!pn(i))throw new Ye(qe.INVALID_ARGUMENT,Gn);try{const c=await r.query(GN(i,u));return c||(o.error({backendResponse:JSON.stringify(c)},`Пустой ответ pageMeta для postId=${i} subtype=${u}`),null)}catch(c){return o.error(`Ошибка запроса pageMeta для postId=${i} subtype=${u}: ${c.message}`),null}},async getFullPost(i){try{if(!pn(i))throw new Ye(qe.INVALID_ARGUMENT,`Невалидный postId=${i} в методе getFullPost`);const u=await r.query(HN(i));if(!u||!u.byID){const c=`Пустой ответ postQueries.byID для postId=${i} в методе getFullPost`;throw new Ye(qe.POST_NOT_RECEIVED,c,u)}return u.byID}catch(u){const c=u;switch(c.code){case qe.INVALID_ARGUMENT:case qe.POST_NOT_RECEIVED:o.error({backendResponse:JSON.stringify(c.obj)},c.message);break;default:o.error(`Ошибка запроса postQueries.byID для postId=${i} в методе getFullPost:
1011                        ${c.message}`);break}throw c}},async getLastPosts(i,u){try{const c=await r.gqlQuery(Fg,{postID:i,amount:u});if(!c?.relatedPosts){const p=`Пустой ответ postQueries.relatedPosts для postId=${i} в методе getLastPosts`;throw new Ye(qe.BAD_RESPONSE,p,c)}return c.relatedPosts}catch(c){const p=c;p.code===qe.BAD_RESPONSE?o.error({backendResponse:JSON.stringify(p.obj)},p.message):o.error(p,`Ошибка запроса postQueries.relatedPosts для postId=${i} в методе getLastPosts: ${p.message}`);return}},async getLastPostsByTagsId(i,u,c=5){if(!i)throw new Ye(qe.INVALID_ARGUMENT,YN);try{return(await r.gqlQuery(xu,{ids:[i],amount:u,minRate:c,imageResize:Co.Original,imageExt:Bo.Webp})).byTagIDs?.posts}catch{throw new Ye(qe.FAILED_POST_ACTIONS)}},async getPostNews(i,u=0,c){if(!pn(i))throw new Ye(qe.INVALID_ARGUMENT,Gn);try{const p=await r.query($N(i,u,c));if(!p?.relativeToPost)throw o.error(p,`Пустой ответ newsQueries.relativeToPost для postId=${i}, amount=${u} lastID=${c} в методе getPostNews`),new Ye(qe.NEXT_POST_NOT_RECEIVED);return p.relativeToPost}catch{return{hasMore:!1,lastId:"",news:[],totalCount:0}}},async getRecommendPosts(i,u=0){if(!i)throw new Ye(qe.INVALID_ARGUMENT,WN);try{return(await r.query(qN(i,u))).bestByBlogID?.posts||[]}catch{throw new Ye(qe.FAILED_POST_ACTIONS)}},async editPost(i){if(!i)throw new Ye(qe.FAILED_POST_ACTIONS,qe.INVALID_ARGUMENT);try{return(await r.gqlMutation(Gg,i)).postMutations.edit}catch{throw new Error(zd)}},async createPost(i){if(!i)throw new Ye(qe.FAILED_POST_ACTIONS,qe.INVALID_ARGUMENT);try{return(await r.gqlMutation(qg,i)).postMutations.create}catch{throw new Error(zd)}},async ratePost(i,u){if(!pn(i))throw new Ye(qe.INVALID_ARGUMENT,Gn);const c=await r.gqlMutation(Ll,{objectId:i,objClass:Ng.Post,action:u});if(!c?.ratingMutations?.rate?.result||!c?.ratingMutations?.rate?.rating)throw c?.ratingMutations?.rate?.error?new Error(c.ratingMutations.rate.error.message):new Ye(qe.REQUEST_ERROR,"ошибка при рейтинговании статьи");return c.ratingMutations.rate},async getClientPostInfo(i){if(!pn(i))throw new Ye(qe.INVALID_ARGUMENT,Gn);try{return(await r.gqlQuery(Vg,{postId:i})).byID}catch{throw new Ye(qe.FAILED_POST_RATES)}}
1011,async getNextPost(i){const u="[SPRTS]:sessionUid",c="sports:partner:cross:domain:id";try{return await r.gqlQuery($g,i,{customHeaders:{"x-sid":localStorage.getItem(u)||"","x-uid":localStorage.getItem(c)||""}})}catch{throw new Ye(qe.NEXT_POST_NOT_RECEIVED)}},async getUserPosts(i,u,c=6){try{return(await r.query(FN(i,u,c))).byUserID}catch{throw new Ye(qe.USER_POSTS_NO_RECIEVED)}},async getSummary(i){try{return(await r.query(jN(i))).byID||null}catch{throw new Ye(qe.SUMMARY_NOT_RECEIVED)}},async getPostsByTagIds({ids:i,amount:u,page:c,excludeSupertop:p,minRate:d,contentType:a,imageInput:h}){try{const y=await r.gqlQuery(xu,{ids:i,amount:u,page:c,excludeSupertop:p,minRate:d,contentType:a,imageResize:h?.resize||Co.Original,imageExt:h?.ext||Bo.Webp,imageScale:h?.scale,imageSmartCropEnabled:h?.smartCropEnabled,imageAspectWidth:h?.aspectWidth,imageAspectHeight:h?.aspectHeight,imageKeepSmall:h?.keepSmall},{retries:2,retryDelay:100});return{lastId:y.byTagIDs?.lastId,totalCount:y.byTagIDs?.totalCount,hasMore:y.byTagIDs?.hasMore,posts:y.byTagIDs?.posts??[]}}catch{throw new Ye(qe.POST_NOT_RECEIVED,"Ошибка при получении списка статей")}},async getBestPostsByTags({ids:i,amount:u,from:c,page:p,contentType:d,imageInput:a}){if(!i?.length)throw new Ye(qe.INVALID_ARGUMENT,"не указаны id тегов");try{const h=await r.gqlQuery(xg,{ids:i,amount:u,from:c,page:p,contentType:d,imageResize:a?.resize||Co.Original,imageExt:a?.ext||Bo.Webp,imageScale:a?.scale,imageSmartCropEnabled:a?.smartCropEnabled,imageAspectWidth:a?.aspectWidth,imageAspectHeight:a?.aspectHeight,imageKeepSmall:a?.keepSmall},{retries:2,retryDelay:100});if(!h)throw new Ye(qe.POST_NOT_RECEIVED,"Ошибка при получении списка популярных статей");return h.bestByTagIDs?{lastId:h.bestByTagIDs.lastId,totalCount:h.bestByTagIDs.totalCount,hasMore:h.bestByTagIDs.hasMore,posts:h.bestByTagIDs.posts??[]}:{lastId:void 0,totalCount:void 0,hasMore:void 0,posts:[]}}catch{throw new Ye(qe.POST_NOT_RECEIVED,"Ошибка при получении списка популярных статей")}},async getPostsBySectionId({sectionId:i,offset:u,limit:c,contentType:p,sort:d,type:a,imageInput:h,withShortPosts:y=!1}){if(!i)throw new Ye(qe.INVALID_ARGUMENT,"не указан id секции");try{const g=await r.gqlQuery(Ug,{sectionId:i,limit:c,offset:u,contentType:p,sort:d,type:a,withShortPosts:y,imageResize:h?.resize||Co.Original,imageExt:h?.ext||Bo.Webp,imageScale:h?.scale,imageSmartCropEnabled:h?.smartCropEnabled,imageAspectWidth:h?.aspectWidth,imageAspectHeight:h?.aspectHeight,imageKeepSmall:h?.keepSmall});if(!g)throw new Ye(qe.POST_NOT_RECEIVED,"Ошибка при получении списка статей");return g.bySection}catch{throw new Ye(qe.POST_NOT_RECEIVED,"Ошибка при получении списка статей")}}}}function QN(r,o){const i=pf(),u=KN(r),c=B8(r),p=MN(r),d=o?`postView-${o}`:"postView";return ku(d,{state:()=>({info:null,pageMeta:null,sportsEventPageMeta:null,content:null,isPostNewsLoading:!1,isFetchingClientInfo:!1,postNewsAmount:5,postNewsData:{hasMore:!1,lastId:"",news:[]},rating:{plus:0,minus:0,total:0,isDisabled:!0,canRate:!1,action:null},lastPosts:[],lastPostsSource:Du.Blog,summary:null,isSummaryLoading:!1,isSummaryShown:!1,isSummaryInView:!1,shouldDisplaySummaryModal:!1}),getters:{isPostBranded:a=>!!a.info?.branded,isPostSuperBranded:a=>!!a.info?.isSuperBranded,getTagsId:a=>a.info?.tags.filter(h=>!!h.tag).map(({tag:h})=>+h.id)||[],getTags:a=>a.info?.tags.filter(h=>!!h.tag).map(h=>h.tag)||[]},actions:{async _toggleFollowAuthor(a,h){this.info||await this.getPostData(o),this.info?.authors&&(this.info.authors=this.info?.authors.map(y=>y.id===a?{...y,following:h,subscribersCount:y.subscribersCount+(h?1:-1)}:y))},async getPostData(a){const h=await u.getPost(a);h&&(this.info=h)},async fetchFullPost(a,h=io.Main){const y=h===io.Prediction,[g,b,v]=await Promise.all([u.getFullPost(a),u.getPostPageMeta(a,h),y?u.getPostPageMeta(a,io.PredictionSportsEvent):null]),{title:w,topPicture:_,structuredBody:T,textOnline:A,poll:B,contentsPosition:D,...x}=g;this.info=x,this.content={title:w,topPicture:_,structuredBody:T,textOnline:A,poll:B,contentsPosition:D},this.pageMeta=b,this.sportsEventPageMeta=v},async getPostNews(a){const h=await u.getPostNews(a,this.postNewsAmount);this.postNewsData=h},async loadMoreNews(a=3){if(!this.info?.id)return;this.isPostNewsLoading=!0;const h=await u.getPostNews(this.info.id,a,this.postNewsData.lastId);this.isPostNewsLoading=!1,this.postNewsData.hasMore=h.hasMore,this.postNewsData.lastId=h.lastId,this.postNewsData.news=this.postNewsData.news?.concat(h.news)},async getLastPosts(a,h){if(a){const y=await u.getLastPosts(a,h);this.lastPosts=y?.posts,this.lastPostsSource=y?.postSource??Du.Blog}},async ratePost(a,h){const y=await u.ratePost(a,h);return y&&this.info?.rating&&(this.info.rating={...this.info.rating,...y.rating}),y},async followAuthor(a){const h=await c.followUser(a);return await this._toggleFollowAuthor(a,!0),h},async unfollowAuthor(a){const h=await c.unfollowUser(a);return await this._toggleFollowAuthor(a,!1),h},async subscribeBlog(a){!this.info?.blog||!a||(this.info.blog.subscribed=!0,await p.subscribe(a)||(this.info.blog.subscribed=!1))},async unsubscribeBlog(a){!this.info?.blog||!a||(this.info.blog.subscribed=!1,await p.unsubscribe(a)||(this.info.blog.subscribed=!0))}
1011,async addToBookmarks(a){if(!a)return;const{bookmarksMutations:h}=await c.createBookmark({objectType:Nu.Post,objectID:a});this.info&&h?.create?.success&&(this.info.bookmarked=!0)},async removeFromBookmarks(a){if(!a)return;const{bookmarksMutations:h}=await c.deleteBookmark({objectType:Nu.Post,objectID:a});this.info&&h?.delete?.success&&(this.info.bookmarked=!1)},async getClientPostInfo(a){try{this.isFetchingClientInfo=!0;const h=await u.getClientPostInfo(a);if(!this.info)return;if(this.info.bookmarked=h?.bookmarked??!1,h?.rating&&(this.info.rating=h.rating),h?.blog&&this.info.blog&&(this.info.blog.subscribed=h.blog.subscribed),h?.authors?.length){const y=new Map(h.authors.map(g=>[g.id,g.following]));this.info.authors=this.info.authors.map(g=>({...g,following:y.get(g.id)??g.following}))}}catch(h){i.error(h)}finally{this.isFetchingClientInfo=!1}},async getSummary(){if(this.info?.summaryID)try{this.isSummaryLoading=!0,this.summary=await u.getSummary(this.info?.summaryID)??null}catch(a){throw i.error(a),new Error("Не удалось получить короткую версию, попробуйте еще раз позже")}finally{this.isSummaryLoading=!1}},toggleSummary(){this.isSummaryShown=!this.isSummaryShown}}})}const zg=(r,o)=>{const i=n0();return{postViewStore:QN(i.gqlClient,r)(i.appState)}};Y0.DEFAULT;$u.SM;var Wg=(r=>(r.Dark="DARK",r.Light="LIGHT",r))(Wg||{}),Yg=(r=>(r.EditPoll="EDIT_POLL",r))(Yg||{});const JN={...Lg,...Wg,...Yg};JN.Delete+"",Z0.DANGER;function wi(r){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var u in i)r[u]=i[u]}return r}var ZN={read:function(r){return r[0]==='"'&&(r=r.slice(1,-1)),r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(r){return encodeURIComponent(r).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Uu(r,o){function i(c,p,d){if(!(typeof document>"u")){d=wi({},o,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),c=encodeURIComponent(c).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var h in d)d[h]&&(a+="; "+h,d[h]!==!0&&(a+="="+d[h].split(";")[0]));return document.cookie=c+"="+r.write(p,c)+a}}function u(c){if(!(typeof document>"u"||arguments.length&&!c)){for(var p=document.cookie?document.cookie.split("; "):[],d={},a=0;a<p.length;a++){var h=p[a].split("="),y=h.slice(1).join("=");try{var g=decodeURIComponent(h[0]);if(d[g]=r.read(y,g),c===g)break}catch{}}return c?d[c]:d}}return Object.create({set:i,get:u,remove:function(c,p){i(c,"",wi({},p,{expires:-1}))},withAttributes:function(c){return Uu(this.converter,wi({},this.attributes,c))},withConverter:function(c){return Uu(wi({},this.converter,c),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(r)}})}Uu(ZN,{path:"/"});const XN=r=>({banUser:async o=>{try{return(await r.gqlMutation(kg,{userId:o})).postMutations.banUser.status}catch{throw new Ye(qe.FAILED_POST_ACTIONS)}},unbanUser:async o=>{try{return(await r.gqlMutation(Pg,{userId:o})).postMutations.unbanUser.status}catch{throw new Ye(qe.FAILED_POST_ACTIONS)}}});function e3(r){const o=XN(r);return ku("postUserManagement",{actions:{async banUser(i){return await o.banUser(i)},async unbanUser(i){return await o.unbanUser(i)}}})}var gn=(r=>(r.FOOTBALL="football",r.FIGURE_SKATING="figure-skating",r.HOCKEY="hockey",r.BASKETBALL="basketball",r.TENNIS="tennis",r.BOXING="boxing",r))(gn||{});gn.FOOTBALL+"",gn.TENNIS+"",gn.HOCKEY+"",gn.BOXING+"",gn.BASKETBALL+"",gn.FIGURE_SKATING+"";const Eo="не указан id блога",As="не указан id пользователя";let yt=class extends Error{constructor(o,i=""){super(`[Sports][Blog] Code: ${o} ${i}`)}};var mt=(r=>(r.GQL_INSTANCE_UNDEFINED="GQL_INSTANCE_UNDEFINED",r.INVALID_ARGUMENT="INVALID_ARGUMENT",r.UNDEFINED_BLOG_ACTIONS="UNDEFINED_BLOG_ACTIONS",r.FAILED_BLOG_ACTIONS="FAILED_BLOG_ACTIONS",r))(mt||{});const Kg=r=>` { blogQueries { actions(ID: ${JSON.stringify(r.id)}) { delete addPost edit draftViewPost addPostDraft } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Kg.operationName="blogActions";const Qg=r=>` { banOnUserBlogs(UserID: ${JSON.stringify(r.userId)}) { status } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Qg.operationName="banOnUserBlogs";const Jg=r=>` { blogBanListAddUsers(BlogID: ${JSON.stringify(r.blogId)}, UserIDs: ${JSON.stringify(r.userId)}) { status } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Jg.operationName="banUser";const Zg=r=>` { blogBanListDeleteUsers(BlogID: ${JSON.stringify(r.blogId)}, UserIDs: ${JSON.stringify(r.userId)}) { status } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Zg.operationName="unbanUser";const Xg=r=>` { blogMutations { subscribe(BlogID: ${JSON.stringify(r.blogId)}) { status } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");Xg.operationName="subscribe";const ey=r=>` { blogMutations { unsubscribe(BlogID: ${JSON.stringify(r.blogId)}) { status } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");ey.operationName="unsubscribe";const ty=r=>" { sportsList { id name icon } } ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");ty.operationName="getBlogThemes";function t3(r){if(!r)throw new yt(mt.GQL_INSTANCE_UNDEFINED);return{async banUser(o,i){var u;
1011if(!o)throw new yt(mt.INVALID_ARGUMENT,Eo);if(!i)throw new yt(mt.INVALID_ARGUMENT,As);try{const c=await r.gqlMutation(Jg,{blogId:o,userId:[i]});return((u=c?.blogBanListAddUsers)==null?void 0:u.status)??!1}catch{throw new yt(mt.FAILED_BLOG_ACTIONS)}},async unbanUser(o,i){var u;if(!o)throw new yt(mt.INVALID_ARGUMENT,Eo);if(!i)throw new yt(mt.INVALID_ARGUMENT,As);const c=await r.gqlMutation(Zg,{blogId:o,userId:[i]});return((u=c?.blogBanListDeleteUsers)==null?void 0:u.status)??!1},async getBlogUserActions(o){if(!o)throw new yt(mt.INVALID_ARGUMENT,Eo);try{const i=await r.gqlQuery(Kg,{id:o});if(!i)throw new yt(mt.UNDEFINED_BLOG_ACTIONS);return i.actions}catch{throw new yt(mt.FAILED_BLOG_ACTIONS)}},async banInMyBlogs(o){var i;if(!o)throw new yt(mt.INVALID_ARGUMENT,As);try{const u=await r.gqlMutation(Qg,{userId:o});return!!((i=u?.banOnUserBlogs)!=null&&i.status)}catch{throw new yt(mt.FAILED_BLOG_ACTIONS)}},async subscribe(o){var i;if(!o)throw new yt(mt.INVALID_ARGUMENT,Eo);try{const u=await r.gqlMutation(Xg,{blogId:o});return!!((i=u?.blogMutations.subscribe)!=null&&i.status)}catch{throw new yt(mt.FAILED_BLOG_ACTIONS)}},async unsubscribe(o){var i;if(!o)throw new yt(mt.INVALID_ARGUMENT,Eo);try{const u=await r.gqlMutation(ey,{blogId:o});return!!((i=u?.blogMutations.unsubscribe)!=null&&i.status)}catch{throw new yt(mt.FAILED_BLOG_ACTIONS)}},async getAvailableBlogThemes(){try{const o=await r.gqlQuery(ty,{});if(o==null)throw new yt(mt.FAILED_BLOG_ACTIONS);return Array.isArray(o)?o:o.sportsList}catch{throw new yt(mt.FAILED_BLOG_ACTIONS)}}}}let Is,Ts,Ss;const Wd=r=>(Is||(Is=o0(r)),Is),Yd=r=>(Ts||(Ts=e3(r)()),Ts),Rs=r=>(Ss||(Ss=t3(r)),Ss),r3=r=>({banUser:async(...o)=>Wd(r).banUser(...o),unbanUser:async(...o)=>Wd(r).unbanUser(...o),banUserInPosts:async(...o)=>Yd(r).banUser(...o),unbanUserInPosts:async(...o)=>Yd(r).unbanUser(...o),banUserInBlog:async(...o)=>Rs(r).banUser(...o),unbanUserInBlog:async(...o)=>Rs(r).unbanUser(...o),banUserInMyBlogs:async(...o)=>Rs(r).banInMyBlogs(...o)}),Kd=Ll,n3=(r,o)=>({async ratePlus(i){ta(i,"commentId",o);const u=await r.gqlMutation(Kd,{objectId:i,objClass:Ls.Comment,action:ar.Plus}),c=u?.ratingMutations?.rate?.rating;return(!u?.ratingMutations?.rate?.result||!c)&&ea(o,zo.API_ERROR,u?.ratingMutations?.rate?.error?.message||"Rate plus failed"),{plus:c.plus,minus:c.minus,action:c.action}},async rateMinus(i){ta(i,"commentId",o);const u=await r.gqlMutation(Kd,{objectId:i,objClass:Ls.Comment,action:ar.Minus}),c=u?.ratingMutations?.rate?.rating;return(!u?.ratingMutations?.rate?.result||!c)&&ea(o,zo.API_ERROR,u?.ratingMutations?.rate?.error?.message||"Rate minus failed"),{plus:c.plus,minus:c.minus,action:c.action}}}),o3=a0,i3=i0,a3=r=>({getUserSettings:async()=>{const o=(await r.gqlQuery(o3,{})).current?.settings;if(o)return{commentsFilterSort:o.commentsFilterSort??void 0}},updateUserSettings:async o=>{const i=`${o.order}:${o.viewMode}`;return(await r.gqlMutation(i3,{field:Pf.FieldCommentsFilterSort,value:i})).userMutations.setSettings}}),s3=r=>{const o=s0(r),{user:i}=u0(r),u=fe({id:"",commentsLinksEnabled:!1}),c=fe(!1),p=fe(!1),d=y=>!i.value||typeof i.value!="object"||!(y in i.value)?!1:!!i.value[y],a=ae(()=>c.value||d("isAuthorized")),h=ae(()=>p.value||d("isModerator"));return rt(async()=>{const y=await o.getCurrentUserInfo();c.value=!!y?.id,p.value=!!y?.isModerator,u.value={id:y?.id||"",nick:y?.nick,url:y?.url,avatar:y?.avatar,commentsLinksEnabled:!!y?.commentsLinksEnabled}}),{userInfo:u,isAuthorized:a,isModerator:h}},u3=()=>{const r=va();return{collect:(o,i)=>{r?.collect(Nt,i)}}},l3={class:"comments-wrapper"},c3=Le({__name:"CommentsAdapter",props:{id:{type:String,required:!0},objectId:{type:String,required:!0},objectType:{type:String,required:!0},objectInfo:{type:Object,default:null},site:{type:String,default:jt.SPORTS},blogId:{type:String,default:void 0},withDonation:{type:Boolean,default:!1},isBranded:{type:Boolean,default:!1},isAdDisabled:{type:Boolean,default:!1},disableInitialScroll:{type:Boolean,default:!1},isShowCommentInputInList:{type:Boolean,default:!0},isCommentsDisabled:{type:Boolean,default:!1},analyticsConfig:{type:Object,default:void 0},teleportFloatingFormTo:{type:String,default:".post-page__float-comment-form"},floatingFormYOffset:{type:Number,default:0}
1011,showFloatingCommentForm:{type:Boolean,default:!0},notificationsProvider:{type:Object,required:!0},appPropsFacade:{type:Object,required:!0},isInModal:{type:Boolean,default:!1}},emits:["needs-auth"],setup(r,{emit:o}){const i=r,u=o,c=i.appPropsFacade.gqlClient;i.notificationsProvider||ea(i.appPropsFacade.logger,zo.INJECTION_ERROR,"Отсутствует notificationsProvider");const{isMobile:p,isTablet:d}=l0(),a=ae(()=>p.value?Ot.MOBILE:Ot.DESKTOP),h=ae(()=>i.site??jt.SPORTS),y=ae(()=>String(i.objectType).toUpperCase()),g=T8(c,i.appPropsFacade.logger),b=r3(c),v=n3(c,i.appPropsFacade.logger),w=a3(c),_=u3(),T=s3(c),A=T.userInfo,B=T.isAuthorized,D=T.isModerator,x=fe(!1),W=()=>u("needs-auth"),U=M=>{x.value=M||!1},S=Et(i.objectId);return co(()=>S.$reset()),(M,I)=>(oe(),ye("div",l3,[xe(q(E8),{id:`comments-${r.id}`,"app-props-facade":r.appPropsFacade,"object-id":r.objectId,"object-class":y.value,"object-info":r.objectInfo||null,"site-name":h.value,"gql-client":r.appPropsFacade.gqlClient,"user-info":q(A),"is-authorized":q(B),"is-moderator":q(D),"notification-provider":r.notificationsProvider,"blog-id":r.blogId,"with-donation":r.withDonation,device:a.value,"disable-initial-scroll":r.disableInitialScroll,"is-comments-disabled":r.
1011isCommentsDisabled,"is-branded":r.isBranded,"is-show-comment-input-in-list":r.isShowCommentInputInList??q(d),"is-ad-disabled":r.isAdDisabled,"follow-api":q(g),"ban-api":q(b),"rate-api":q(v),"user-settings-deps":q(w),"analytics-api":q(_),"analytics-config":r.analyticsConfig,"is-in-modal":r.isInModal,onNeedsAuth:W},null,8,["id","app-props-facade","object-id","object-class","object-info","site-name","gql-client","user-info","is-authorized","is-moderator","notification-provider","blog-id","with-donation","device","disable-initial-scroll","is-comments-disabled","is-branded","is-show-comment-input-in-list","is-ad-disabled","follow-api","ban-api","rate-api","user-settings-deps","analytics-api","analytics-config","is-in-modal"]),q(p)&&r.showFloatingCommentForm?(oe(),Oe(q(ao),{key:0},{default:$e(()=>[xe(q(A8),{"is-focused":x.value,"notification-provider":r.notificationsProvider,"app-props-facade":r.appPropsFacade,"is-authorized":q(B),"object-id":r.objectId,"object-class":y.value,"blog-id":r.blogId,device:a.value,"site-name":h.value,"user-info":q(A),"with-donation":r.withDonation,"ban-api":q(b),"rate-api":q(v),"user-settings-deps":q(w),"analytics-api":q(_),"analytics-config":r.analyticsConfig,"teleport-to":r.teleportFloatingFormTo,"y-offset":r.floatingFormYOffset,onChangeFocus:U,onNeedsAuth:W},null,8,["is-focused","notification-provider","app-props-facade","is-authorized","object-id","object-class","blog-id","device","site-name","user-info","with-donation","ban-api","rate-api","user-settings-deps","analytics-api","analytics-config","teleport-to","y-offset"])]),_:1})):ke("",!0)]))}}),d3=(r,o)=>{const i=r.__vccOpts||r;for(const[u,c]of o)i[u]=c;return i},f3=d3(c3,[["__scopeId","data-v-6f73e182"]]);function p3({contentId:r,reactionsCount:o,commentsCount:i,category:u=T0}){return ae(()=>{const c=()=>({content_id:Pt(r),comments_count:Pt(i),reactions_count:Pt(o)}),p=Pt(u);return{reload:()=>({action:"refresh_comments",label:"",property:c(),value:"",category:p}),sort:d=>{var a;return{action:"sort_comments",label:"",property:c(),sortOrder:String(((a=d.property)==null?void 0:a.sort_order)??""),category:p}},change_view_mode:d=>({action:"toggle_comments_dialogs",label:"",property:c(),value:S0(d.view_mode==="dialogue"),category:p})}})}const h3={"image/jpeg":"jpg","image/png":"png","image/webp":"webp","image/avif":"avif","image/heic":"heic","image/gif":"gif"},m3=r=>{if(r instanceof File)return r;const o=h3[r.type]??"bin";return new File([r],`photo.${o}`,{type:r.type})};function g3(){const{getUploadedImageUrlFromFile:r}=ub(),o=async i=>{const u=await r(m3(i));if(!u)throw new Error("Ошибка загрузки фото");return u};return{uploadPhoto:o,uploadPhotos:i=>Promise.all(i.map(u=>o(u)))}}const y3=r=>JSON.stringify(r,(o,i)=>{if(!(o==="__typename"||o==="raw")&&!(o==="format"&&i===null))return i}),b3=({currentPost:r,gqlClient:o,refetch:i,onSuccess:u,onError:c})=>{const{uploadPhoto:p}=g3(),{logger:d}=hf(),a=fe(!1),h=ae(()=>{var b;return(((b=r.value)==null?void 0:b.structuredBody)??[]).filter(v=>v!==null)}),y=ae(()=>{var b,v;return((v=(b=r.value)==null?void 0:b.mediaList)==null?void 0:v.map(w=>{var _;return{id:w.id,url:((_=w.picture)==null?void 0:_.url)??""}}).filter(w=>w.url!==""))??[]}),g=ae(()=>{var b,v,w,_;const T=(b=r.value)==null?void 0:b.blog;if(T)return{name:T.name,avatarUrl:((v=T.avatar)==null?void 0:v.url)??""};const A=(w=r.value)==null?void 0:w.authors[0];return{name:A?.nick??"",avatarUrl:((_=A?.picture)==null?void 0:_.url)??""}});return{isSaving:a,editInitialBody:h,editInitialPhotos:y,editAuthor:g,saveEdit:async b=>{const v=o.value;if(!v){d.error({postId:b.postId},"[useEditShortPost] saveEdit called without gqlClient"),c(Wl);return}a.value=!0;try{const w=await R0(v).editPost({postID:b.postId,structuredBody:y3(O0(b.body)),status:C0.Active,editSource:B0.Wysiwyg,mediaList:b.mediaList.length?b.mediaList:void 0});if(w.error){d.error({error:w.error,postId:b.postId},"[useEditShortPost] saveEdit error"),c(w.error);return}await i(b.postId),u(b.postId)}catch(w){d.error({err:w,postId:b.postId},"[useEditShortPost] saveEdit failed"),c(Wl)}finally{a.value=!1}},uploadPhoto:p}},w3="body-lock-counter",v3=()=>Number(globalThis[w3]??0),E3=r=>{const{toggleBodyLock:o}=L0(),i=()=>{let u=0;for(;v3()>0&&u<20;)o(!1),u+=1};He(r,(u,c)=>{c&&!u&&sr(i)}),Mu(i,!0)},_3={class:"short-post-modal-root"},vi="#edit",A3=Le({__name:"ShortPostModal",props:Pi({postId:{type:String,default:""},gqlClient:{type:Object,required:!0},currentUserId:{type:String,default:void 0},scrollToComments:{type:Boolean,default:!1},openInEditMode:{type:Boolean,default:!1},manageEditHash:{type:Boolean,default:!0},reactionCatalog:{type:Array,default:()=>[]},notificationsProvider:{type:Object,required:!0},appPropsFacade:{type:Object,required:!0},source:{type:String,default:A0.MY_FEED},hideFollowButton:{type:Boolean,default:!1},hideBlog:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:Pi(["delete-post","author-subscribe","needs-auth","reaction-error","reactions-updated","edit-post-success","edit-post-error","preview-image","unsupported-paste","edit-mode-change"],["update:modelValue"]),setup(r,{emit:o}){var i;const u=d0(),c=f0(),p=r;hf(p.appPropsFacade.logger),p0(p.appPropsFacade.logger);const d=o,a=Jd(r,"modelValue"),h=fe(!1),y=fe(null),g=fe(!1);let b;const{post:v,isLoading:w,isError:_,fetchPostById:T,deletePostById:A,patchReactions:B}=h0({gqlClient:p?.gqlClient}),{setReaction:D,reactionPendingPostId:x,isAuthorized:W}=m0({gqlClient:p.gqlClient,onUnauthorized:()=>d("needs-auth","reaction")}),U=((i=p.appPropsFacade)==null?void 0:i.diDeps.get("openAuthPopup"))||(()=>{}),S=()=>{U()},M=g0(),I=y0(),R=ae(()=>{var le;return((le=v.value)==null?void 0:le.reactions.reduce((me,Se)=>me+Se.count,0))??0}),C=ae(()=>{var le;const me=((le=v.value)==null?void 0:le.commentsCount)??0;if(!p.postId)return me;const Se=Et(p.postId,p.appPropsFacade.appState);return g.value?Se.totalPageCommentsCount:me}),V=p3({contentId:ae(()=>v.value.id),reactionsCount:R,commentsCount:C}),F=fe({active:!1}),ue=fe(!1),H=ae(()=>p.openInEditMode||p.manageEditHash&&u.hash===vi),j=ae(()=>a.value&&!F.value.active&&H.value&&!v.value&&!_.value),X=le=>{F.value.active||(F.value={active:!0,fromView:le},d("edit-mode-change",!0),p.manageEditHash&&u.hash!==vi&&c.replace({path:u.path,query:u.query,hash:vi}))},he=async()=>
1011{if(!F.value.active)return;const{fromView:le}=F.value;if(F.value={active:!1},!le){ue.value=!0,await sr(),a.value=!1;return}d("edit-mode-change",!1),p.manageEditHash&&u.hash===vi&&c.replace({path:u.path,query:u.query,hash:""})},{isSaving:ge,editInitialBody:ne,editInitialPhotos:be,editAuthor:P,saveEdit:ee,uploadPhoto:Ue}=b3({currentPost:v,gqlClient:at(p,"gqlClient"),refetch:le=>T(le,{keepCurrent:!0}),onSuccess:le=>{M.trackPublish({mode:Kl.EDITION,source:p.source,type:Yl.POST,postId:le,success:!0}),he(),d("edit-post-success",le,v.value)},onError:le=>{M.trackPublish({mode:Kl.EDITION,source:p.source,type:Yl.POST,postId:p.postId,success:!1}),d("edit-post-error",le)}}),_e=le=>{if(!le){if(F.value.active){he();return}a.value=!1}},ce=le=>{!le&&!F.value.active&&(a.value=!1)},de=le=>{v.value&&ee({postId:v.value.id,body:le.body,mediaList:le.mediaList})},ve=async({postId:le,reactionId:me,action:Se})=>{v.value&&I.trackReact({reactionId:me,postId:le,commentsCount:C.value,reactionsCount:R.value,action:Se});const Ee=await D(le,me);if(!Ee||Ee.reactType===I0.Error){W.value&&d("reaction-error",{postId:le,reactionId:me});return}const ie=Ee.objectReactions??[];B(ie),d("reactions-updated",{postId:le,reactions:ie})},te=({postId:le,creatorId:me,creatorType:Se})=>{v.value&&I.trackCreatorClick({postId:le,creatorId:me,creatorType:Se,commentsCount:C.value,reactionsCount:R.value})},E=()=>{v.value&&I.trackShare({postId:v.value.id,commentsCount:C.value,reactionsCount:R.value})},k=le=>{v.value&&(I.trackSubscribe({postId:v.value.id,creatorId:le,commentsCount:C.value,reactionsCount:R.value}),d("author-subscribe",le))},Y=ae(()=>!ue.value&&(F.value.active||j.value)),re=ae(()=>!a.value||j.value||ue.value?!1:!F.value.active||F.value.fromView),z=ae(()=>F.value.active),J=()=>{I.trackEdit(),X(!0)},se=()=>{h.value=!0};b0({when:()=>h.value,onEscape:()=>{h.value=!1}});const Ae=async()=>{const le=await A(p.postId);le&&(h.value=!1,a.value=!1),d("delete-post",p.postId,le)};He(w,async le=>{if(le){g.value=!1;return}if(g.value=!0,!p.scrollToComments)return;await sr();const me=y.value;if(!me)return;let Se=me.parentElement;for(;Se;){const{overflowY:ie}=getComputedStyle(Se);if(ie==="auto"||ie==="scroll")break;Se=Se.parentElement}if(!Se)return;const Ee=()=>{const ie=me.getBoundingClientRect().top-Se.getBoundingClientRect().top+Se.scrollTop;Se.scrollTo({top:ie,behavior:"smooth"})};Ee(),clearTimeout(b),b=setTimeout(Ee,1e3)}),On(()=>clearTimeout(b));const Ie=ae(()=>({text:"Вы уверены, что хотите удалить пост?",confirmLabel:"Удалить",dataTestPrefix:"short-post-delete-modal",onConfirm:()=>{v.value&&I.trackDeleteShortPost({postId:v.value.id,commentsCount:C.value,reactionsCount:R.value,confirmed:!0}),Ae()},onCancel:()=>{v.value&&I.trackDeleteShortPost({postId:v.value.id,commentsCount:C.value,reactionsCount:R.value,confirmed:!1})}}));return E3(a),He([a,()=>p.postId],([le,me])=>{if(!le){ue.value=!1,F.value={active:!1},v.value=null,g.value=!1;return}me&&!F.value.active&&T(me)},{immediate:!0}),He([v,H],()=>{!a.value||!v.value||F.value.active||H.value&&v.value.id===p.postId&&X(!1)},{immediate:!0}),(le,me)=>(oe(),ye("div",_3,[re.value?(oe(),Oe(q(cf),{key:0,"model-value":re.value,class:Xe(["short-post-modal",{"short-post-modal--under-editor":z.value}]),"data-test":"short-post-modal","onUpdate:modelValue":ce},{header:$e(()=>me[4]||(me[4]=[Ft(" Пост ")])),text:$e(()=>{var Se,Ee,ie;return[q(v)&&!q(w)?(oe(),ye(At,{key:0},[xe(q(w0),{id:q(v).id,images:(Se=q(v))==null?void 0:Se.mediaList,authors:(Ee=q(v))==null?void 0:Ee.authors,"comments-count":q(v).commentsCount,"flame-is-hot":q(v).hot,"structured-body":q(v).structuredBody,published:q(v).published.rfc3339,blog:q(v).blog??void 0,"reaction-catalog":r.reactionCatalog,"post-reactions":q(v).reactions,"is-reaction-pending":q(x)===q(v).id,"card-mode":"full-post","hide-follow-button":r.hideFollowButton,"hide-blog":r.hideBlog,"data-test":"short-post-modal-card",onAuthorSubscribe:k,onNeedsAuth:me[0]||(me[0]=De=>d("needs-auth",De)),onPreviewImage:me[1]||(me[1]=De=>d("preview-image",De)),onSetReaction:ve,onEditPost:J,onDeletePost:se,onShare:E,onCreatorClick:te},null,8,["id","images","authors","comments-count","flame-is-hot","structured-body","published","blog","reaction-catalog","post-reactions","is-reaction-pending","hide-follow-button","hide-blog"]),Te("div",{ref_key:"commentsSlotRef",ref:y},[g.value?(oe(),Oe(q(f3),{id:r.postId,key:r.postId,"object-id":r.postId,"object-type":"POST","blog-id":(ie=q(v).blog)==null?void 0:ie.id,"notifications-provider":r.notificationsProvider,"app-props-facade":r.appPropsFacade,"disable-initial-scroll":!0,"show-floating-comment-form":!1,"is-ad-disabled":!0,"anal
1011ytics-config":q(V),"is-in-modal":"",onNeedsAuth:S},null,8,["id","object-id","blog-id","notifications-provider","app-props-facade","analytics-config"])):ke("",!0)],512)],64)):(oe(),Oe(q(v0),{key:1,"data-test":"short-post-modal-skeleton"}))]}),_:1},8,["model-value","class"])):ke("",!0),a.value?(oe(),Oe(q(E0),{key:1,"model-value":Y.value,loading:j.value,"modal-mode":"edit","site-name":r.appPropsFacade.extProps.site,"author-id":r.currentUserId??"","author-name":q(P).name,"author-avatar-url":q(P).avatarUrl,"author-readonly":"","initial-body":q(ne),"initial-photos":q(be),"upload-photo":q(Ue),"is-saving":q(ge),source:r.source,"onUpdate:modelValue":_e,onSave:de,onUnsupportedPaste:me[2]||(me[2]=Se=>d("unsupported-paste"))},null,8,["model-value","loading","site-name","author-id","author-name","author-avatar-url","initial-body","initial-photos","upload-photo","is-saving","source"])):ke("",!0),xe(q(_0),{modelValue:h.value,"onUpdate:modelValue":me[3]||(me[3]=Se=>h.value=Se),text:Ie.value.text,"confirm-label":Ie.value.confirmLabel,"data-test-prefix":Ie.value.dataTestPrefix,onConfirm:Ie.value.onConfirm,onCancel:Ie.value.onCancel},null,8,["modelValue","text","confirm-label","data-test-prefix","onConfirm","onCancel"])]))}}),I3=c0(A3,[["__scopeId","data-v-11f2c748"]]),Fx=Object.freeze(Object.defineProperty({__proto__:null,ShortPostModal:I3},Symbol.toStringTag,{value:"Module"}));export{Tx as B,Sx as D,Nx as F,YA as G,Rx as L,Ox as M,Cx as N,Ix as O,Xu as Q,Yo as S,Lx as U,V4 as a,p_ as b,Ws as c,Ys as d,zs as e,yI as f,Gf as g,va as h,L8 as i,sn as j,Bx as k,$p as l,ao as m,Yv as n,K1 as o,Bi as p,Fx as q,zv as t,U8 as u,_x as w,vI as y};
1012//# debugId=94679756-bfee-5ff3-9250-7d0fb757c290

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.