1import{a as yi}from"./chunk-CNQFPSVJ.js";import{a as Pi,b as xi,c as wi}from"./chunk-DPX6OWKY.js";import{a as Vi}from"./chunk-WBFDOONG.js";import{a as pi,b as mi}from"./chunk-3GP5XTAV.js";import{a as gi}from"./chunk-HGOQFUQE.js";import{a as $i}from"./chunk-CLQCRX2F.js";import{a as Ii}from"./chunk-J6GQKDOT.js";import{a as Wi}from"./chunk-AB72W34Z.js";import{a as fi}from"./chunk-24LZOGO5.js";import{a as zi}from"./chunk-YBHX5EY4.js";import{a as ji,b as Gi,c as Yi}from"./chunk-PZZH3VAI.js";import"./chunk-DYR6YW6R.js";import{a as Li}from"./chunk-MVEYX6WO.js";import{a as vi,c as ki,d as Ui}from"./chunk-WCD5YPIC.js";import{a as Di,b as Fi,c as Bi,d as Hi}from"./chunk-VXRPR6W5.js";import"./chunk-YFRLOU75.js";import{a as di,c as it}from"./chunk-VOBE3EX2.js";import{a as Ti}from"./chunk-DGHUOKCH.js";import{b as xe}from"./chunk-N7NLDCQ5.js";import{a as nt}from"./chunk-KW3PTNGI.js";import{a as si}from"./chunk-GAW67AIJ.js";import{a as ai}from"./chunk-FTO5UU76.js";import{a as ri}from"./chunk-UCYGKOCW.js";import{a as Vn}from"./chunk-TQXCYCAJ.js";import{a as we}from"./chunk-JL4Z2MKB.js";import{a as D}from"./chunk-JQ63P6LY.js";import{a as ke,b as qe}from"./chunk-WSV3QDAY.js";import{a as Se,b as Pe}from"./chunk-FCSWY75Z.js";import"./chunk-V6754UNB.js";import{d as rt,e as Ri,f as Ai}from"./chunk-D46JKYN3.js";import{a as Ni}from"./chunk-5Y6WHSJJ.js";import{a as tt}from"./chunk-PFNEDV3C.js";import{a as Ie,b as pe}from"./chunk-GYA44ERQ.js";import{a as ot,b as Ci}from"./chunk-RZY5IN6L.js";import{a as hi}from"./chunk-IWMTUW7P.js";import{a as _i,b as Si,c as Ei}from"./chunk-SA7CIGTR.js";import{a as bi}from"./chunk-UULFKO3W.js";import{a as Ae}from"./chunk-Q46TJE3L.js";import{a as li,c as ui}from"./chunk-33HT22YV.js";import"./chunk-V5SWGI5S.js";import"./chunk-LMRSLUSF.js";import{a as Le}from"./chunk-7RKW65Q7.js";import"./chunk-VHYP2MLW.js";import{a as oi,b as Oi}from"./chunk-KK75PKOU.js";import{b as Zn,c as Jn,d as Je}from"./chunk-L2LUK3OF.js";import"./chunk-DMNYRXCG.js";import"./chunk-CRAFQKRQ.js";import"./chunk-IGOEG3LT.js";import{a as Mi}from"./chunk-FDAICDP7.js";import{a as de}from"./chunk-U33EORL3.js";import{c as Yt,d as ci}from"./chunk-UEBUG4RL.js";import{a as d}from"./chunk-2ULUGINI.js";import{a as ni}from"./chunk-4ZKMJ4UC.js";import{b as J}from"./chunk-U7CQV7DH.js";import"./chunk-AU2QKGGG.js";import{a as Ze,d as ce}from"./chunk-JLIRNMVU.js";import{a as L,b as qn}from"./chunk-M6I74KDQ.js";import{e as Wn,h as jn,l as Gn,t as Yn}from"./chunk-VM4LUDLD.js";import{a as Z,b as ti}from"./chunk-CXATVTCD.js";import"./chunk-X4B4PP7O.js";import"./chunk-JYJ2LQFH.js";import{a as N}from"./chunk-QVY2MJ37.js";import{a as jt,b as Xn,c as Kn,d as q}from"./chunk-4NKW7PKK.js";import{a as Gt}from"./chunk-7GPVAJGW.js";import{a as S}from"./chunk-FOU5E2PO.js";import{a as Qn,b as le}from"./chunk-GNCBRS4N.js";import"./chunk-VHYP2MLW.js";import{a as x,c as be,d as ei,f as ue}from"./chunk-N5JTTHAK.js";import{b as O}from"./chunk-NJM3O3ZW.js";import{a as ii}from"./chunk-6NWRJNH7.js";import{a as _e,b as Bn,c as Hn,e as kn,i as Un,j as Qe,k as ve,n as $n,o as zn}from"./chunk-4C2PIUNH.js";import{a as et}from"./chunk-X3BKTU7P.js";import{a as An,c as In,d as Ln,e as Dn,f as Fn}from"./chunk-RNACI2ER.js";import{b as Pn,c as Re,e as xn,f as wn}from"./chunk-YGPQXY6X.js";import{a as En,b as Tn,g as Mn,k as Cn,m as On,p as Nn,q as Rn}from"./chunk-H4IOJQAC.js";import{d as Ne}from"./chunk-PSLZ3OTT.js";import{$b as u,B as je,Bb as rn,Bd as bn,Ec as ae,F as Ge,Fa as oe,Fb as Me,Fc as se,Gb as an,Gc as Ut,Hc as $t,I as ge,Ia as en,Ic as P,Kb as sn,Kc as Ce,La as He,Lb as ln,Lc as T,Mc as ye,Md as Sn,Nc as $,Qb as un,R as Qt,Sb as v,Tc as mn,U as Ye,Ub as _,Uc as dn,Vc as zt,Xb as F,Xc as fn,Yb as B,Yc as gn,Za as M,Zb as p,_ as y,_b as s,_c as Wt,ab as tn,ac as m,ad as z,cb as a,cd as K,da as o,db as nn,dd as hn,ec as G,fc as Y,fd as Xe,gc as kt,gd as yn,ia as ne,ib as re,j as Te,ja as ie,jc as me,k as We,kb as Ve,lb as on,ld as g,md as vn,na as H,nd as Ke,oa as he,pa as k,q as Be,qc as C,rb as Ht,sd as Oe,ta as qt,uc as U,va as Zt,vd as V,w as Bt,wa as R,wc as E,xb as f,xc as cn,xd as Q,yc as pn,yd as _n,za as Jt}from"./chunk-5DSEJYP2.js";import{a as X,b as te}from"./chunk-3FRIJCUZ.js";function Io(t){let e=t,n=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return i===0&&n%10===1&&n%100!==11?1:i===0&&n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?3:i===0&&n%10===0||i===0&&n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||i===0&&n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?4:5;}var Xi=["uk",[["\u0434\u043F","\u043F\u043F"]],void 0,[["\u041D","\u041F","\u0412","\u0421","\u0427","\u041F","\u0421"],["\u043D\u0434","\u043F\u043D","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043F\u0442","\u0441\u0431"],["\u043D\u0435\u0434\u0456\u043B\u044F","\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A","\u0432\u0456\u0432\u0442\u043E\u0440\u043E\u043A","\u0441\u0435\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440","\u043F\u02BC\u044F\u0442\u043D\u0438\u0446\u044F","\u0441\u0443\u0431\u043E\u0442\u0430"],["\u043D\u0434","\u043F\u043D","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043F\u0442","\u0441\u0431"]],void 0,[["\u0441","\u043B","\u0431","\u043A","\u0442","\u0447","\u043B","\u0441","\u0432","\u0436","\u043B","\u0433"],["\u0441\u0456\u0447.","\u043B\u044E\u0442.","\u0431\u0435\u0440.","\u043A\u0432\u0456\u0442.","\u0442\u0440\u0430\u0432.","\u0447\u0435\u0440\u0432.","\u043B\u0438\u043F.","\u0441\u0435\u0440\u043F.","\u0432\u0435\u0440.","\u0436\u043E\u0432\u0442.","\u043B\u0438\u0441\u0442.","\u0433\u0440\u0443\u0434."],["\u0441\u0456\u0447\u043D\u044F","\u043B\u044E\u0442\u043E\u0433\u043E","\u0431\u0435\u0440\u0435\u0437\u043D\u044F","\u043A\u0432\u0456\u0442\u043D\u044F","\u0442\u0440\u0430\u0432\u043D\u044F","\u0447\u0435\u0440\u0432\u043D\u044F","\u043B\u0438\u043F\u043D\u044F","\u0441\u0435\u0440\u043F\u043D\u044F","\u0432\u0435\u0440\u0435\u0441\u043D\u044F","\u0436\u043E\u0432\u0442\u043D\u044F","\u043B\u0438\u0441\u0442\u043E\u043F\u0430\u0434\u0430","\u0433\u0440\u0443\u0434\u043D\u044F"]],[["\u0421","\u041B","\u0411","\u041A","\u0422","\u0427","\u041B","\u0421","\u0412","\u0416","\u041B","\u0413"],["\u0441\u0456\u0447.","\u043B\u044E\u0442.","\u0431\u0435\u0440.","\u043A\u0432\u0456\u0442.","\u0442\u0440\u0430\u0432.","\u0447\u0435\u0440\u0432.","\u043B\u0438\u043F.","\u0441\u0435\u0440\u043F.","\u0432\u0435\u0440.","\u0436\u043E\u0432\u0442.","\u043B\u0438\u0441\u0442.","\u0433\u0440\u0443\u0434."],["\u0441\u0456\u0447\u0435\u043D\u044C","\u043B\u044E\u0442\u0438\u0439","\u0431\u0435\u0440\u0435\u0437\u0435\u043D\u044C","\u043A\u0432\u0456\u0442\u0435\u043D\u044C","\u0442\u0440\u0430\u0432\u0435\u043D\u044C","\u0447\u0435\u0440\u0432\u0435\u043D\u044C","\u043B\u0438\u043F\u0435\u043D\u044C","\u0441\u0435\u0440\u043F\u0435\u043D\u044C","\u0432\u0435\u0440\u0435\u0441\u0435\u043D\u044C","\u0436\u043E\u0432\u0442\u0435\u043D\u044C","\u043B\u0438\u0441\u0442\u043E\u043F\u0430\u0434","\u0433\u0440\u0443\u0434\u0435\u043D\u044C"]],[["\u0434\u043E \u043D.\u0435.","\u043D.\u0435."],["\u0434\u043E \u043D. \u0435.","\u043D. \u0435."],["\u0434\u043E \u043D\u0430\u0448\u043E\u0457 \u0435\u0440\u0438","\u043D\u0430\u0448\u043E\u0457 \u0435\u0440\u0438"]],1,[6,0],["dd.MM.yy","d MMM y\u202F'\u0440'.","d MMMM y\u202F'\u0440'.","EEEE, d MMMM y\u202F'\u0440'."],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}
1, {0}",void 0,void 0,void 0],[",","\xA0",";","%","+","-","\u0415","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","#,##0.00\xA0\xA4","#E0"],"UAH","\u20B4","\u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430 \u0433\u0440\u0438\u0432\u043D\u044F",{AUD:[void 0,"$"],BRL:[void 0,"R$"],BYN:[void 0,"\u0440."],CAD:[void 0,"$"],CNY:[void 0,"\xA5"],EUR:[void 0,"\u20AC"],GBP:[void 0,"\xA3"],HKD:[void 0,"$"],ILS:[void 0,"\u20AA"],INR:[void 0,"\u20B9"],KRW:[void 0,"\u20A9"],MXN:[void 0,"$"],NZD:[void 0,"$"],PHP:[void 0,"\u20B1"],RUR:[void 0,"\u0440."],TWD:[void 0,"$"],UAH:["\u20B4"],UAK:["\u043A\u0440\u0431."],USD:[void 0,"$"],VND:[void 0,"\u20AB"],XCD:[void 0,"$"]},"ltr",Io];var at=class t extends Tn{isServer=Nn(o(Jt));prepareExternalUrl(e){return this.isServer?super.prepareExternalUrl(e):Vn(e,this.getBaseHref());}static ɵfac=(()=>{let e;return function(i){return(e||(e=en(t)))(i||t);};})();static ɵprov=y({token:t,factory:t.ɵfac});};var Lo=t=>e=>t.includes(e[0])?e.length===1:null,Do=()=>t=>{let e=t.findIndex(i=>ke.test(i));if(e===-1)return null;let n=t.slice(e+1);return n.length===0||n.length===1&&qe.test(n[0])?!0:null;},Fo=()=>t=>Ze.test(t[t.length-1])?!1:null,Bo=[Lo([d.CURRENCY.path,d.FUEL.path,d.RADIO.path]),Do(),Fo()];function Ki(t){let e=t.split("/").filter(Boolean);if(e.length===0)return null;for(let n of Bo){let i=n(e);if(i!==null)return`/${e.join("/")}${i?"/":""}`;}return null;}var st=class{base=new Hn();parse(e){return this.base.parse(e);}serialize(e){let n=this.base.serialize(e),i=n.search(/[?#]/),r=i===-1?n:n.slice(0,i),l=i===-1?"":n.slice(i),c=Ki(r);return c?`${c}${l}`:n;}};var De=class t{pd=o(O);loadPromise=null;initialized=!1;get enabled(){return!!S.sentryDsn&&this.pd.isBrowser();}get ready(){return this.initialized;}load(){return this.loadPromise??=import("./chunk-VBQ3V26R.js"),this.loadPromise;}async init(e){if(this.initialized||!this.enabled)return;let n=await this.load();this.initialized||(n.init(e),this.initialized=!0);}captureException(e,n){this.enabled&&this.load().then(i=>{if(this.initialized){if(!n){i.captureException(e);return;}i.withScope(r=>{n(r),i.captureException(e);});}}).catch(()=>{});}setTag(e,n){this.enabled&&this.load().then(i=>{this.initialized&&i.setTag(e,n);}).catch(()=>{});}static ɵfac=function(n){return new(n||t)();};static ɵprov=y({token:t,factory:t.ɵfac,providedIn:"root"});};var Qi=()=>
1{let t=o(De),e=o(q);return t.ready||!t.enabled||t.load().then(async n=>{await t.init({dsn:S.sentryDsn,environment:S.mode,integrations:[n.browserTracingIntegration()],tracesSampleRate:S.production?.1:1,beforeSend(i){i.tags=te(X({},i.tags),{section:"community",app:"24tv.front"});let r=e.user();return r&&(i.user=te(X({},i.user),{id:String(r.id)})),i;}});}),!0;};var Vt=(t,e)=>{let n=o(L);if(Zn(n))return!0;let i=o(Ae).buildFullUrl(e.url),r=si(i,n,Wn),l=r&&ai({currentUrl:i,publicUrl:r});return l?(o(ri).redirectTemporary(l),!1):!0;};function qi(t){let n=t.length>0&&t[t.length-1].path===""?t.slice(0,-1):t,i=n.findIndex(({path:b})=>ke.test(b));if(i===-1)return null;let r=n[i].path.match(ke),l=n.slice(i+1);if(l.length>1)return null;let c="0";if(l.length===1){let b=l[0].path.match(qe);if(!b)return null;c=b[1];}return{consumed:t,posParams:{slug:new _e(r[1],{}),id:new _e(r[2],{}),startRow:new _e(c,{})}};}function Zi(t){let n=t.length>0&&t[t.length-1].path===""?t.slice(0,-1):t;if(n.length===0)return null;let i=n[n.length-1].path.match(Ze);return i?{consumed:t,posParams:{slug:new _e(i[1],{}),id:new _e(i[2],{})}}:null;}var Ho=["*"],Fe=class t{static ɵfac=function(n){return new(n||t)();};static ɵcmp=f({type:t,selectors:[["li","app-menu-item",""]],hostAttrs:[1,"flex","shrink-0","px-3","py-1","items-center","gap-1","text-h6","uppercase","whitespace-nowrap"],ngContentSelectors:Ho,decls:1,vars:0,template:function(n,i){n&1&&(cn(),pn(0));},encapsulation:2});};var ko=(t,e)=>e.id;function Uo(t,e){if(t&1&&(s(0,"li",1)(1,"a",2),z(2,"fieldTranslation"),T(3),z(4,"fieldTranslation"),u()()),t&2){let n=e.$implicit;a(),p("href",K(2,2,n,"url"),M),a(2),$(" ",K(4,5,n,"name")," ");}}function $o(t,e){t&1&&(s(0,"ul",0),F(1,Uo,5,8,"li",1,ko),u()),t&2&&(a(),B(e));}var lt=class t{data=o(et,{optional:!0});items=V([]);itemsToShow=g(()=>this.data?.items??this.items());static ɵfac=function(n){return new(n||t)();};static ɵcmp=f({type:t,selectors:[["nav","app-more-menu",""]],inputs:{items:[1,"items"]},decls:1,vars:1,consts:[["app-menu-shell","",1,"flex","min-w-40","flex-col","gap-1","p-2"],["app-menu-item",""],["appLink","",1,"hover:text-channel-primary-600","w-full","transition-colors","duration-200",3,"href"]],template:function(n,i){if(n&1&&v(0,$o,3,0,"ul",0),n&2){let r;_((r=i.itemsToShow())?0:-1,r);}},dependencies:[tt,Fe,D,we],encapsulation:2});};var zo=["moreTrigger"],Wo=["menuList"],jo=["measureMoreTrigger"],Go=["measureItem"],Ji=(t,e)=>e.id;function Yo(t,e){if(t&1&&(s(0,"li",7)(1,"a",12),z(2,"fieldTranslation"),T(3),z(4,"fieldTranslation"),u()()),t&2){let n=e.$implicit;a(),p("href",K(2,2,n,"url"),M),a(2),$(" ",K(4,5,n,"name")," ");}}function Vo(t,e){if(t&1){let n=me();s(0,"li",7)(1,"button",13,2),U("click",function(){ne(n);let r=E();return ie(r.openMore());}),s(3,"span",14),G(4),C(5,5),Y(),u(),m(6,"app-icon",15),u()();}if(t&2){let n=E();a(3),P("text-channel-primary-600",n.isMoreMenuOpen()),a(3),P("rotate-180",n.isMoreMenuOpen())("text-channel-primary-600",n.isMoreMenuOpen()),p("svgPath","/assets/icons/common/arrow-down.svg");}}function Xo(t,e){if(t&1&&(s(0,"li",7,3),T(2),z(3,"fieldTranslation"),u()),t&2){let n=e.$implicit;a(2),ye(K(3,1,n,"name"));}}var Ko=70,ut=class t{injector=o(H);menuService=null;menuDataService=o(xe);sitesService=o(ce);locale=o(L);moreTriggerRef=Q("moreTrigger");listRef=Q.required("menuList");measureMoreTriggerRef=Q("measureMoreTrigger");measureItemRefs=_n("measureItem");moreMenuRef=R(null);isMoreMenuOpen=g(()=>!!this.moreMenuRef());_navMenuResource=ue({params:()=>{let e=this.sitesService.activeSite()?.id;return e===void 0?void 0:{siteId:e};},stream:({params:e})=>this.menuDataService.getMainOnly(e.siteId)});navMenu=nt(de(this._navMenuResource),[]);measuredCutoff=mi({container:this.listRef,moreTrigger:this.measureMoreTriggerRef,items:this.measureItemRefs});menuSplit=g(()=>{let e=this.navMenu(),n=this.measuredCutoff()??this.seedCutoff(e);return{visible:e.slice(0,n),overflow:e.slice(n)};});seedCutoff(e){return pi(e,Ko,n=>this.localizedName(n).length+2);}localizedName(e){return Yn(e,"name",this.locale)??e.name;}async openMore(){let e=this.moreTriggerRef();e&&(await this.toggleOverlay(this.moreMenuRef,n=>n.open({component:lt,trigger:e,data:{items:this.menuSplit().overflow},position:"bottom-start",offsetY:16})));}async toggleOverlay(e,n){let i=e();if(i){this.menuService?.close(i);return;}this.menuService??=this.injector.get((await import("./chunk-N7KXSKZ4.js")).MenuService);let{overlayRef:r}=n(this.menuService);e.set(r),r.detachments().pipe(ge(1)).subscribe(()=>e.set(null));}static ɵfac=function(n){return new(n||t)();};static ɵcmp=f({type:t,selectors:[["nav","app-menu",""]],viewQuery:function(n,i){n&1&&ae(i.moreTriggerRef,zo,5)(i.listRef,Wo,5)(i.measureMoreTriggerRef,jo,5)(i.measureItemRefs,Go,5),n&2&&se(4);},decls:14,vars:2,consts:()=>{let e;e="\u0431\u0456\u043B\u044C\u0448\u0435";let n;return n="\u0431\u0456\u043B\u044C\u0448\u0435",[["menuList",""],["measureMoreTrigger",""],["moreTrigger",""],["measureItem",""],e,
1n,[1,"flex","flex-nowrap","items-center","gap-1","overflow-hidden"],["app-menu-item",""],["aria-hidden","true","inert","",1,"pointer-events-none","invisible","absolute","top-0","left-0","flex","flex-nowrap","items-center","gap-1","whitespace-nowrap"],[1,"flex","items-center","gap-1"],[1,"uppercase"],[1,"size-6",3,"svgPath"],["appLink","",1,"hover:text-channel-primary-600","transition-colors","duration-200",3,"href"],["type","button",1,"group","flex","cursor-pointer","items-center","gap-1",3,"click"],[1,"group-hover:text-channel-primary-600","uppercase","transition-colors","duration-200"],[1,"group-hover:text-channel-primary-600","size-6","transition-[colors,rotate]","duration-200",3,"svgPath"]];},template:function(n,i){n&1&&(s(0,"ul",6,0),F(2,Yo,5,8,"li",7,Ji),v(4,Vo,7,7,"li",7),u(),s(5,"ul",8),F(6,Xo,4,4,"li",7,Ji),s(8,"li",7,1)(10,"span",9)(11,"span",10),C(12,4),u(),m(13,"app-icon",11),u()()()),n&2&&(a(2),B(i.menuSplit().visible),a(2),_(i.menuSplit().overflow.length?4:-1),a(2),B(i.navMenu()),a(7),p("svgPath","/assets/icons/common/arrow-down.svg"));},dependencies:[Fe,N,D,we],encapsulation:2});};var ct=class t{link=d.SEARCH.fullPath();static ɵfac=function(n){return new(n||t)();};static ɵcmp=f({type:t,selectors:[["app-search"]],decls:2,vars:4,consts:[["app-button","","appLink","","ariaLabel","Toggle search",3,"href","size","variant"],["appButtonIcon","",1,"text-icon-secondary",3,"svgPath"]],template:function(n,i){n&1&&(s(0,"a",0),m(1,"app-icon",1),u()),n&2&&(p("href",i.link,M)("size","lg")("variant","icon"),a(),p("svgPath","/assets/icons/common/search.svg"));},dependencies:[N,Ie,pe,D],encapsulation:2});};var Qo=(t,e)=>e.code;function qo(t,e){if(t&1&&(s(0,"li")(1,"a",1),T(2),u()()),t&2){let n=e.$implicit;a(),P("bg-background-50",n.active),p("variant","link")("size","sm"),un("href",n.url,M),a(),$(" ",n.name," ");}}function Zo(t,e){t&1&&(s(0,"ul",0),F(1,qo,3,6,"li",null,Qo),u()),t&2&&(a(),B(e));}var Ue=class t{data=o(et,{optional:!0});languages=V();languagesToShow=g(()=>this.data?.languages??this.languages());static ɵfac=function(n){return new(n||t)();};static ɵcmp=f({type:t,selectors:[["nav","app-lang-menu",""]],inputs:{languages:[1,"languages"]},decls:1,vars:1,consts:[["app-menu-shell","",1,"flex","min-w-25","flex-col","gap-2","p-2"],["app-button","",1,"font-condensed","capitalize",3,"variant","size"]],template:function(n,i){if(n&1&&v(0,Zo,3,0,"ul",0),n&2){let r;_((r=i.languagesToShow())?0:-1,r);}},dependencies:[pe,tt],encapsulation:2});};var Jo=["trigger"];function er(t,e){if(t&1){let n=me();s(0,"button",1,0),U("click",function(){ne(n);let r=E();return ie(r.openMenu());}),s(2,"span",2),T(3),u(),m(4,"app-icon",3),u(),m(5,"nav",4);}if(t&2){let n=E();
1a(2),P("text-channel-primary-600",n.isMenuOpen()),a(),ye(e.name),a(),P("rotate-180",n.isMenuOpen())("text-channel-primary-600",n.isMenuOpen()),p("svgPath","/assets/icons/common/arrow-down.svg"),a(),p("languages",n.languages());}}var pt=class t{injector=o(H);menuService=null;languages=o(di).languages;triggerRef=Q.required("trigger");menuRef=R(null);activeLanguage=g(()=>this.languages().find(e=>e.active));isMenuOpen=g(()=>!!this.menuRef());async openMenu(){if(this.menuRef()){this.closeMenu();return;}this.menuService??=this.injector.get((await import("./chunk-N7KXSKZ4.js")).MenuService);let{overlayRef:e}=this.menuService.open({component:Ue,trigger:this.triggerRef(),data:{languages:this.languages()},position:"bottom-start",offsetY:16});this.menuRef.set(e),e.detachments().pipe(ge(1)).subscribe(()=>{this.menuRef.set(null);});}closeMenu(){let e=this.menuRef();e&&(e.detach(),this.menuRef.set(null));}static ɵfac=function(n){return new(n||t)();};static ɵcmp=f({type:t,selectors:[["nav","app-lang-switcher",""]],viewQuery:function(n,i){n&1&&ae(i.triggerRef,Jo,5),n&2&&se();},decls:1,vars:1,consts:[["trigger",""],["type","button",1,"group","flex","cursor-pointer","items-center","gap-1",3,"click"],[1,"font-condensed","group-hover:text-channel-primary-600","text-body-xs","transition-colors","duration-200","first-letter:uppercase"],[1,"group-hover:text-channel-primary-600","size-6","transition-[colors,rotate]","duration-200",3,"svgPath"],["app-lang-menu","","inert","",1,"sr-only",3,"languages"]],template:function(n,i){if(n&1&&v(0,er,6,9),n&2){let r;_((r=i.activeLanguage())?0:-1,r);}},dependencies:[N,Ue],encapsulation:2});};var mt="main_personal_notifications",tr={authorized:"auth","non-authorized":"auth",personal:"one_tap"};function dt(t){return{type:tr[t.type]??"unnamed",slug:t.entitySlug??t.id};}var eo="notifications_page_views",nr=3,ft=class t{pd=o(O);router=o(ve);lastPath=null;pageViews=R(this.pd.isBrowser()?ir():0);isOpen=g(()=>this.pageViews()>=nr);constructor(){this.pd.isBrowser()&&(this.router.navigated&&this.countPage(this.router.url),this.router.events.pipe(je(e=>e instanceof kn),x(o(k))).subscribe(e=>this.countPage(e.urlAfterRedirects)));}countPage(e){let n=e.split(/[?#]/)[0];if(n===this.lastPath||this.isOpen())return;this.lastPath=n;let i=this.pageViews()+1;or(i),this.pageViews.set(i);}static ɵfac=function(n){return new(n||t)();};static ɵprov=y({token:t,factory:t.ɵfac,providedIn:"root"});};function ir(){try{let t=Number(localStorage.getItem(eo));return Number.isFinite(t)?t:0;}catch{return 0;}}function or(t){try{localStorage.setItem(eo,String(t));}catch{}}var Ee=class t{notificationsService=o(fi);authStore=o(q);pd=o(O);posthog=o(J);bubbleGate=o(ft);pagination=R({cursor:null});resetTrigger=R(0);menuOpen=R(!1);authResolved=g(()=>this.pd.isBrowser()&&this.authStore.initializationComplete());unreadResource=ue({params:()=>({authResolved:this.authResolved(),isLoggedIn:this.isLoggedIn()}),stream:({params:e})=>e.authResolved?e.isLoggedIn?this.notificationsService.getUnreadCount():this.notificationsService.getPublicUnreadCount(this.notificationsService.getLastSeenId()||void 0,this.notificationsService.getLastSeenImportantId()||void 0):Te({count:0})});unreadValue=de(this.unreadResource);lastUnreadResource=ue({params:()=>({shouldFetch:this.hasUnread()&&this.pd.isBrowser()&&this.bubbleGate.isOpen(),isLoggedIn:this.isLoggedIn()}),stream:({params:e})=>{if(!e.shouldFetch)return Te(null);if(e.isLoggedIn)return this.notificationsService.getLatestUnread();{let n=this.notificationsService.getLastSeenId(),i=this.notificationsService.getLastSeenImportantId();return this.notificationsService.getPublicLatest(n||void 0,i||void 0);}}});notificationsResource=ue({params:()=>({isOpen:this.menuOpen(),cursor:this.pagination().cursor,isLoggedIn:this.isLoggedIn()}),stream:({params:e})=>{if(!e.isOpen||this.pd.isServer())return Te(null);let n={limit:20,cursor:e.cursor||void 0};return e.isLoggedIn?Bt({pinned:e.cursor?Te({items:[]}):this.notificationsService.getPinnedNotifications(),regular:this.notificationsService.getNotifications(n)}).pipe(Be(({pinned:i,regular:r})=>
1({items:[...i.items.map(l=>te(X({},l),{isPinned:!0})),...r.items],hasMore:r.hasMore,nextCursor:r.nextCursor,unreadCount:r.unreadCount}))):Bt({pinned:e.cursor?Te({items:[]}):this.notificationsService.getPublicPinnedNotifications(),regular:this.notificationsService.getPublicNotifications(n)}).pipe(Be(({pinned:i,regular:r})=>({items:[...i.items.map(l=>te(X({},l),{isPinned:!0})),...r.items],hasMore:r.hasMore,nextCursor:r.nextCursor})));}});notificationsValue=de(this.notificationsResource);allNotifications=Ke({source:()=>({data:this.notificationsValue(),cursor:this.pagination().cursor,reset:this.resetTrigger()}),computation:({data:e,cursor:n,reset:i},r)=>{if(r&&i!==r.source.reset)return[];if(!e||!e.items.length)return r?.value??[];let l=e.items.map(c=>te(X({},c),{isShown:"isShown"in c?c.isShown:!1,createdAt:new Date(c.createdAt)}));return n===null?l:[...(r?.value??[]),...l];}});isLoggedIn=g(()=>!!this.authStore.user());hasUnread=g(()=>(this.unreadValue()?.count??0)>0);hasMore=g(()=>this.notificationsValue()?.hasMore??!1);isLoading=this.notificationsResource.isLoading;openMenu(){this.resetTrigger.update(e=>e+1),this.pagination.set({cursor:null}),this.menuOpen.set(!0);}closeMenu(){this.menuOpen.set(!1);}loadMore(){let e=this.notificationsValue();e?.hasMore&&!this.notificationsResource.isLoading()&&this.pagination.update(n=>te(X({},n),{cursor:e.nextCursor}));}markAsShown(e){this.isLoggedIn()&&!e.isShown&&this.notificationsService.markAsShown(e.id).subscribe(()=>{this.updateLocalState(e.id);});}handleNotificationVisible(e){let{id:n,isShown:i,createdAt:r,isImportant:l}=e,c=new Date(r).getTime();if(this.posthog.track(mt,"view",dt(e)),this.unreadResource.update(A=>te(X({},A),{count:A?.count?A.count-1:0})),this.isLoggedIn()){i||this.notificationsService.markAsShown(n).subscribe(()=>{this.updateLocalState(n);});return;}let b=this.allNotifications(),I=A=>{if(!A)return 0;let j=b.find(ze=>ze.id===A);return j?new Date(j.createdAt).getTime():0;},W=this.notificationsService.getLastSeenId();if(c>I(W)&&this.notificationsService.setLastSeenId(n),l){let A=this.notificationsService.getLastSeenImportantId();c>I(A)&&this.notificationsService.setLastSeenImportantId(n);}this.updateLocalState(n);}updateLocalState(e){this.allNotifications.update(n=>n.map(i=>i.id===e?te(X({},i),{isShown:!0}):i));}static ɵfac=function(n){return new(n||t)();};static ɵprov=y({token:t,factory:t.ɵfac});};function no(t){let{entityType:e,entitySlug:n}=t;if(!n)return null;let i=d.COMMUNITY.children.LOYALTY_PROGRAM.children;switch(e){case"task":return`/${i.TASKS.fullPath()}`;case"raffle":return`/${i.DRAWS.fullPath(n)}`;default:return null;}}var $e=class t{CLOSE_BUBBLE_TIMEOUT_MS=5e5;injector=o(H);pd=o(O);router=o(ve);window=o(Z);state=o(Ee);posthog=o(J);destroyRef=o(k);menuRef=R(null);bubbleRef=R(null);bubbleComponentRef=null;menuService=null;drawerService=null;isMobile=g(()=>this.pd.isMobile());isMenuOpen=g(()=>!!this.menuRef());constructor(){re(()=>{this.window&&Le(this.window,()=>{import("./chunk-6H333K2F.js").catch(()=>{}
1),import("./chunk-AOQCN5VS.js").catch(()=>{});});});}async openMenu(e){this.closeBubble(),this.state.openMenu();let n={notifications:this.state.allNotifications,isLoading:this.state.isLoading,hasMore:this.state.hasMore},i=l=>{be(l.notificationClick).pipe(x(this.destroyRef)).subscribe(c=>this.handleNotificationClick(c)),be(l.notificationVisible).pipe(x(this.destroyRef)).subscribe(c=>this.state.handleNotificationVisible(c)),be(l.loadMore).pipe(x(this.destroyRef)).subscribe(()=>this.state.loadMore());},{NotificationsMenu:r}=await import("./chunk-6H333K2F.js");if(this.isMobile()){this.drawerService??=this.injector.get((await import("./chunk-D3DXEP2B.js")).DrawerService);let{overlayRef:l,componentRef:c}=this.drawerService.open({component:r,data:n});this.menuRef.set(l),i(c.instance),l.detachments().pipe(x(this.destroyRef)).subscribe(()=>{this.menuRef.set(null),this.state.closeMenu();});}else{this.menuService??=this.injector.get((await import("./chunk-N7KXSKZ4.js")).MenuService);let{overlayRef:l,componentRef:c}=this.menuService.open({component:r,trigger:e.nativeElement,position:"bottom-end",data:n,offsetY:8,trapFocus:!0});this.menuRef.set(l),i(c.instance),l.detachments().pipe(x(this.destroyRef)).subscribe(()=>{this.menuRef.set(null),this.state.closeMenu();});}}closeMenu({immediate:e}={immediate:!1}){if(this.isMobile())this.drawerService?.close({immediate:e});else{let n=this.menuRef();n&&this.menuService?.close(n,e);}this.state.closeMenu();}async showBubble(e){let n=this.state.lastUnreadResource.value();if(!n||this.bubbleRef()||this.pd.isServer())return;let{NotificationBubble:i}=await import("./chunk-AOQCN5VS.js");this.menuService??=this.injector.get((await import("./chunk-N7KXSKZ4.js")).MenuService);let{overlayRef:r,componentRef:l}=this.menuService.open({component:i,trigger:e,position:"bottom-end",offsetY:0,offsetX:0,data:{notification:n},closeTimeout:200});this.bubbleRef.set(r),this.bubbleComponentRef=l.instance,be(l.instance.bubbleClose).pipe(x(this.destroyRef)).subscribe(()=>this.closeBubble()),be(l.instance.bubbleView).pipe(x(this.destroyRef)).subscribe(()=>{this.handleNotificationClick(n),this.closeBubble();}),be(l.instance.notificationClick).pipe(x(this.destroyRef)).subscribe(c=>this.handleNotificationClick(c)),r.detachments().pipe(x(this.destroyRef)).subscribe(()=>{this.closeBubble();}),this.state.handleNotificationVisible(n),setTimeout(()=>this.closeBubble(),this.CLOSE_BUBBLE_TIMEOUT_MS);}closeBubble(){this.bubbleComponentRef&&(this.bubbleComponentRef.close(),this.bubbleRef.set(null),this.bubbleComponentRef=null);}handleNotificationClick(e){this.posthog.track(mt,"click",dt(e)),this.state.markAsShown(e),e.link?e.link.startsWith("http")&&this.window?this.window.location.href=e.link:this.router.navigateByUrl(e.link):this.openEntityTarget(e),this.closeMenu();}openEntityTarget(e){let n=no(e);!n||!this.window||this.window.open(n,this.isMobile()?"_self":"_blank");}destroy(){this.closeMenu(),this.closeBubble();}static ɵfac=function(n){return new(n||t)();};static ɵprov=y({token:t,factory:t.ɵfac});};var rr=["trigger"];function ar(t,e){t&1&&m(0,"span",3);}var gt=class t{state=o(Ee);overlay=o($e);triggerRef=Q.required("trigger",{read:He});hasUnread=this.state.hasUnread;constructor(){oe(()=>{this.state.lastUnreadResource.value()&&!vn(()=>this.overlay.isMenuOpen())&&setTimeout(()=>this.overlay.showBubble(this.triggerRef()),500);});}toggleMenu(){this.overlay.isMenuOpen()?this.overlay.closeMenu():this.overlay.openMenu(this.triggerRef());}ngOnDestroy(){this.overlay.destroy();}static ɵfac=function(n){return new(n||t)();};static ɵcmp=f({type:t,selectors:[["app-notifications"]],viewQuery:function(n,i){n&1&&ae(i.triggerRef,rr,5,He),n&2&&se();},features:[fn([Ee,$e])],decls:4,vars:4,consts:[["trigger",""],["app-button","","ariaLabel","Toggle notifications",1,"relative",3,"click","size","variant"],["appButtonIcon","",1,"text-icon-secondary",3,"svgPath"],[1,"border-white-alpha-100","animate-dot-pop","bg-channel-primary-500","absolute","top-2","right-2","size-1.5","rounded-full","border"]],template:function(n,i){n&1&&(s(0,"button",1,0),U("click",function(){return i.toggleMenu();}),m(2,"app-icon",2),v(3,ar,1,0,"span",3),u()),n&2&&(p("size","lg")("variant","icon"),a(2),p("svgPath","/assets/icons/common/bell.svg"),a(),_(i.hasUnread()?3:-1));},dependencies:[N,pe,Ie],encapsulation:2});};var sr=["balanceCount"],lr=()=>({strategy:"viewport"}
1),ur="community-balance-width",ht=class t{authStore=o(q);pd=o(O);window=o(Z);urlService=o(Ae);storage=o(hi);isAuthenticated=this.authStore.isAuthenticated;user=this.authStore.user;balance=this.authStore.balance;balanceKnown=this.authStore.balanceKnown;balanceCount=Q.required("balanceCount");constructor(){Sn({read:()=>{if(!this.isAuthenticated()||!this.balanceKnown())return;this.balance();let{width:e}=this.balanceCount().nativeElement.getBoundingClientRect();e>0&&this.storage.setItem(ur,String(Math.ceil(e)));}});}async onClick(){this.pd.isBrowser()&&(await this.authStore.whenInitialized(),this.window?.location.assign(this.urlService.buildFullUrl(yi(this.isAuthenticated()))));}static ɵfac=function(n){return new(n||t)();};static ɵcmp=f({type:t,selectors:[["button","app-community-button",""]],viewQuery:function(n,i){n&1&&ae(i.balanceCount,sr,5),n&2&&se();},hostAttrs:["type","button",1,"group","flex","items-center","cursor-pointer"],hostBindings:function(n,i){n&1&&U("click",function(){return i.onClick();});},decls:14,vars:16,consts:()=>{let e;e="\u0412\u0445\u0456\u0434";let n;return n="\u043A\u0430\u0431\u0456\u043D\u0435\u0442",[["balanceCount",""],e,n,[1,"community-balance","border-black-alpha-12","bg-background-100","group-hover:bg-background-50","flex","origin-right","items-center","gap-1","rounded-3xl","border","py-1","pr-10","pl-1","transition-colors","duration-200","lg:pr-11"],[1,"size-6",3,"svgPath","fill","lazyLoad"],[1,"font-condensed","text-body-xs","font-medium","text-neutral-900","uppercase"],[1,"community-entry","group-hover:bg-black-alpha-87","bg-surface-page","relative","flex","items-center","gap-1","rounded-3xl","border","border-neutral-700","py-1","pr-2","pl-1","transition-colors","duration-200","lg:pr-3"],["app-user-avatar","",1,"group-hover:text-white-alpha-100","size-6","shrink-0","transition-colors","duration-200",3,"picture","firstName","lastName","email","phone"],[1,"community-entry-login","font-condensed","group-hover:text-white-alpha-100","text-body-xs","font-medium","text-neutral-900","transition-colors","duration-200"],[1,"community-entry-cabinet","font-condensed","group-hover:text-white-alpha-100","text-body-xs","font-medium","text-neutral-900","uppercase","transition-colors","duration-200","max-lg:hidden"]];},template:function(n,i){n&1&&(s(0,"div",3),m(1,"app-icon",4),s(2,"span",5,0),T(4),z(5,"number"),u()(),s(6,"div",6),m(7,"figure",7),s(8,"span",8),G(9),C(10,1),Y(),u(),s(11,"span",9),G(12),C(13,2),Y(),u()()),n&2&&(a(),p("svgPath","/assets/icons/community/coin.svg")("fill",!1)("lazyLoad",gn(15,lr)),a(),P("community-balance-pending",!i.balanceKnown()),a(2),ye(i.balanceKnown()?hn(5,11,i.balance(),"1.0-0","uk"):""),a(3),p("picture",i.user()?.picture??null)("firstName",i.user()?.firstName??null)("lastName",i.user()?.lastName??null)("email",i.user()?.email??null)("phone",i.user()?.phone??null));},dependencies:[N,gi,Cn],styles:['.community-balance[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_coin-pop .45s cubic-bezier(.175,.885,.32,1.275)}.community-balance-pending[_ngcontent-%COMP%]{min-width:var(--community-balance-width, 0)}html:not([data-auth="member"])[_nghost-%COMP%] .community-balance[_ngcontent-%COMP%], html:not([data-auth="member"]) [_nghost-%COMP%] .community-balance[_ngcontent-%COMP%], html:not([data-auth="member"])[_nghost-%COMP%] .community-entry-cabinet[_ngcontent-%COMP%], html:not([data-auth="member"]) [_nghost-%COMP%] .community-entry-cabinet[_ngcontent-%COMP%], html[data-auth="member"][_nghost-%COMP%] .community-entry-login[_ngcontent-%COMP%], html[data-auth="member"] [_nghost-%COMP%] .community-entry-login[_ngcontent-%COMP%]{display:none}html[data-auth="member"][_nghost-%COMP%] .community-entry[_ngcontent-%COMP%], html[data-auth="member"] [_nghost-%COMP%] .community-entry[_ngcontent-%COMP%]{left:-2rem;margin-right:-2rem;padding-right:.25rem}@media(width>=1024px){html[data-auth="member"][_nghost-%COMP%] .community-entry[_ngcontent-%COMP%], html[data-auth="member"] [_nghost-%COMP%] .community-entry[_ngcontent-%COMP%]{left:-2.5rem;margin-right:-2.5rem;padding-right:.75rem}}@keyframes _ngcontent-%COMP%_coin-pop{0%{opacity:0;transform:translate(8px) scale(.6)}60%{opacity:1;transform:translate(0) scale(1.08)}to{opacity:1;transform:translate(0) scale(1)}}']});};function cr(t,e){if(t&1&&m(0,"img",2),t&2){let n=E();Ce(n.iconSize()),p("ngSrc",e)("width",n.iconPixelSize())("height",n.iconPixelSize())("alt",n.iconAlt());}}function pr(t,e){if(t&1&&m(0,"app-icon",3),t&2){let n=E();Ce(n.iconSize()),p("svgPath","/assets/icons/logo/logo.svg");}}var io={small:11,medium:14,large:18},yt=class t{size=V("medium");iconUrl=V(void 0);iconAlt=V("");locale=o(L);rasterUrl=g(()=>this.iconUrl()??vi[this.locale]);sizeClasses=g(()=>{switch(this.size()){case"large":return"w-28";case"small":return"w-20";default:return"w-24";}});iconSize=g(()=>`size-${io[this.size()]}`);iconPixelSize=g(()=>io[this.size()]*4);static ɵfac=function(n){return new(n||t)();};static ɵcmp=f({type:t,selectors:[["a","app-logo",""]],hostAttrs:[1,"flex","items-center","justify-center","rounded-tl-lg","rounded-tr-xl","rounded-br-lg","rounded-bl-xl"],hostVars:2,hostBindings:function(n,i){n&2&&Ce(i.sizeClasses());},inputs:{size:[1,"size"],iconUrl:[1,"iconUrl"],iconAlt:[1,"iconAlt"]},decls:2,vars:1,consts:[[1,"scale-90","skew-x-20","object-contain",3,"ngSrc","width","height","alt","class"],[1,"text-white-scale-90","skew-x-20",3,"svgPath","class"],[1,"scale-90","skew-x-20","object-contain",3,"ngSrc","width","height","alt"],[1,"text-white-scale-90","skew-x-20",3,"svgPath"]],template:function(n,i){if
1(n&1&&v(0,cr,1,6,"img",0)(1,pr,1,3,"app-icon",1),n&2){let r;_((r=i.rasterUrl())?0:1,r);}},dependencies:[N,Rn],styles:["[_nghost-%COMP%]{transform:skew(-20deg)}"]});};function mr(t,e){if(t&1&&(s(0,"a",3),m(1,"app-icon",14),u()),t&2){let n=E();p("href",n.APP_PATHS.HOME.fullPath(),M)("size","lg")("variant","icon"),a(),p("svgPath","/assets/icons/common/back-to-main.svg");}}function dr(t,e){if(t&1){let n=me();s(0,"button",15),U("click",function(){ne(n);let r=E();return ie(r.toggleBurgerMenu());}),m(1,"app-icon",14),u();}t&2&&(p("size","lg")("variant","icon"),a(),p("svgPath","/assets/icons/common/menu.svg"));}function fr(t,e){if(t&1){let n=me();s(0,"button",16),U("click",function(){ne(n);let r=E();return ie(r.toggleBurgerMenu());}),m(1,"app-icon",17),u();}t&2&&(p("size","lg")("variant","icon"),a(),p("svgPath","/assets/icons/common/menu.svg"));}function gr(t,e){if(t&1&&m(0,"a",8),t&2){let n=E();p("href",n.APP_PATHS.HOME.fullPath(),M)("size","large");}}function hr(t,e){t&1&&m(0,"nav",11);}function yr(t,e){t&1&&m(0,"button",18);}function vr(t,e){if(t&1&&(m(0,"app-notifications"),v(1,yr,1,0,"button",18)),t&2){let n=E();a(),_(n.hideAccountEntry()?-1:1);}}var vt=class t{hideNav=V(!1);hideAccountEntry=V(!1);burgerMenuService=o(it);sitesService=o(ce);locale=o(L);hortay=Oe(()=>import("./chunk-GXISDOZT.js").then(e=>e.HortayService));logoIconUrl=this.sitesService.logoIconUrl;logoIconAlt=g(()=>jn(this.sitesService.activeSite(),"fullName",this.locale)??"");isDefaultActiveSite=this.sitesService.isDefaultActiveSite;logoHref=g(()=>this.isDefaultActiveSite()?d.HOME.fullPath():this.sitesService.activeSite().domain);showBackToMain=g(()=>!this.isDefaultActiveSite());logoBackground=this.sitesService.headerBackground;hasCommunity=Jn();animateBolt=R(!1);constructor(){re(()=>{let e=()=>this.animateBolt.set(!0),n=window;typeof n.requestIdleCallback=="function"?n.requestIdleCallback(e,{timeout:3e3}):setTimeout(e,2e3);});}toggleBurgerMenu(){this.burgerMenuService.toggle("burger");}openHortay(){this.hortay().then(e=>e.toggle());}APP_PATHS=d;static ɵfac=function(n){return new(n||t)();};static ɵcmp=f({type:t,selectors:[["header","app-header",""]],hostAttrs:[1,"flex","items-center","gap-3","lg:gap-6","pl-0","pr-4","lg:pl-6","lg:pr-12","lg:py-0.5","h-[var(--header-height)]"],inputs:{hideNav:[1,"hideNav"],hideAccountEntry:[1,"hideAccountEntry"]},decls:15,vars:20,consts:()=>{let e;e="\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u0438\u0441\u044F \u043D\u0430 \u0433\u043E\u043B\u043E\u0432\u043D\u0443 24 \u041A\u0430\u043D\u0430\u043B\u0443";let n;return n="\u041D\u0430 \u0433\u043E\u043B\u043E\u0432\u043D\u0443 24 \u041A\u0430\u043D\u0430\u043B\u0443",[[1,"relative","flex","items-center","lg:gap-6"],[1,"bg-channel-primary-500","-ml-6","flex","-skew-x-20","items-center","self-stretch","rounded-tr-xl","rounded-br-lg","pl-10","lg:hidden"],[1,"flex","skew-x-20","items-center"],["appLink","","app-button","","ariaLabel",e,1,"relative","z-1","mr-1","overflow-visible","before:absolute","before:-inset-y-3","before:-right-2","before:-left-4","before:content-['']",3,"href","size","variant"],["app-button","","ariaLabel","Toggle navigation menu",1,"relative","z-1","overflow-visible","before:absolute","before:-inset-y-3","before:-right-1","before:-left-2","before:content-['']",3,"size","variant"],["appLink","","app-logo","","aria-label","logo",1,"-ml-2",3,"href","size","iconUrl","iconAlt"],["app-button","","ariaLabel","Toggle navigation menu",1,"max-lg:hidden",3,"size","variant"],[1,"group","relative","max-lg:hidden"],["appLink","","app-logo","","aria-label",n,1,"bg-brand-primary","absolute","inset-y-0","right-0","z-0","transition-[right]","duration-500","ease-out","group-focus-within:-right-24","group-hover:-right-24",3,"href","size"],["appLink","","app-logo","","aria-label","logo",1,"bg-channel-primary-500","relative","z-10",3,"href","size","iconUrl","iconAlt"],[1,"flex","flex-1","items-center","gap-4"],["app-menu","",1,"max-lg:hidden"],[1,"max-lg:hidden"],["app-lang-switcher","",1,"max-lg:hidden"],[1,"text-white-alpha-100","size-6",3,"svgPath"],["app-button","","ariaLabel","Toggle navigation menu",1,"relative","z-1","overflow-visible","before:absolute","before:-inset-y-3","before:-right-1","before:-left-2","before:content-['']",3,"click","
1size","variant"],["app-button","","ariaLabel","Toggle navigation menu",1,"max-lg:hidden",3,"click","size","variant"],["appButtonIcon","",1,"text-icon-secondary",3,"svgPath"],["app-community-button","","aria-label","\u041A\u0430\u0431\u0456\u043D\u0435\u0442"]];},template:function(n,i){n&1&&(s(0,"div",0)(1,"div",1)(2,"div",2),v(3,mr,2,4,"a",3),v(4,dr,2,3,"button",4),m(5,"a",5),u()(),v(6,fr,2,3,"button",6),s(7,"div",7),v(8,gr,1,2,"a",8),m(9,"a",9),u()(),s(10,"div",10),v(11,hr,1,0,"nav",11),m(12,"app-search",12),u(),m(13,"nav",13),v(14,vr,2,1)),n&2&&(a(),$t("background",i.logoBackground()),a(2),_(i.showBackToMain()?3:-1),a(),_(i.hideNav()?-1:4),a(),p("href",i.logoHref(),M)("size","medium")("iconUrl",i.logoIconUrl())("iconAlt",i.logoIconAlt()),a(),_(i.hideNav()?-1:6),a(2),_(i.showBackToMain()?8:-1),a(),$t("background",i.logoBackground()),p("href",i.logoHref(),M)("size","large")("iconUrl",i.logoIconUrl())("iconAlt",i.logoIconAlt()),a(),P("justify-end",i.hideNav()),a(),_(i.hideNav()?-1:11),a(3),_(i.hasCommunity?14:-1));},dependencies:[N,ut,ct,pt,gt,ht,pe,Ie,D,yt],styles:["[_nghost-%COMP%] .logo[_ngcontent-%COMP%]{transform:skew(-20deg)}"]});};var _r=(t,e)=>e.id;function br(t,e){if(t&1&&(s(0,"h3",0)(1,"a",2),z(2,"fieldTranslation"),T(3),z(4,"fieldTranslation"),u()()),t&2){let n=e;a(),p("href",K(2,2,n,"url"),M),a(2),ye(K(4,5,n,"name"));}}function Sr(t,e){if(t&1&&(s(0,"li")(1,"a",3),z(2,"fieldTranslation"),T(3),z(4,"fieldTranslation"),u()()),t&2){let n=e.$implicit;a(),p("href",K(2,2,n,"url"),M),a(2),$(" ",K(4,5,n,"name")," ");}}var _t=class t{section=V.required();static ɵfac=function(n){return new(n||t)();};static ɵcmp=f({type:t,selectors:[["section","app-footer-category-section",""]],inputs:{section:[1,"section"]},decls:4,vars:1,consts:[[1,"text-text-emphasis","text-h5-medium"],[1,"flex","flex-col","gap-2"],["appLink","",1,"hover:text-text-secondary","transition-colors",3,"href"],["appLink","",1,"text-body-s",3,"href"]],template:function(n,i){if(n&1&&(v(0,br,5,8,"h3",0),s(1,"ul",1),F(2,Sr,5,8,"li",null,_r),u()),n&2){let r;_((r=i.section())?0:-1,r),a(2),B(i.section().submenus);}},dependencies:[D,we],encapsulation:2});};var Er=(t,e)=>e.id;function Tr(t,e){if(t&1&&m(0,"section",0),t&2){let n=e.$implicit;p("section",n);}}var bt=class t{menuService=o(xe);_footerMenuResource=ue({stream:()=>this.menuService.getFooterMenu()});footerMenu=nt(de(this._footerMenuResource),[]);static ɵfac=function(n){return new(n||t)();};static ɵcmp=f({type:t,selectors:[["nav","app-footer-nav",""]],hostAttrs:[1,"grid","grid-cols-1","md:grid-cols-2","lg:grid-cols-4","border","border-black-alpha-12"],decls:2,vars:0,consts:[["app-footer-category-section","",1,"border-border-subtle","flex","flex-col","gap-2","border-b","p-4","last:border-b-0","md:grid-cols-2","md:border-e","md:p-8","md:nth-[2n]:border-e-0","md:nth-last-[-n+2]:border-b-0","lg:grid-cols-4","lg:nth-[2n]:border-e","lg:nth-[4n]:border-e-0","lg:nth-last-[-n+4]:border-b-0",3,"section"]],template:function(n,i){n&1&&F(0,Tr,1,1,"section",0,Er),n&2&&B(i.footerMenu());},dependencies:[_t],encapsulation:2});};var St=class t{APP_PATHS=d;static ɵfac=function(n){return new(n||t)();};static ɵcmp=f({type:t,selectors:[["section","app-newsletter",""]],decls:11,vars:2,consts:()=>{let e;e="Email \u2014 \u0440\u043E\u0437\u0441\u0438\u043B\u043A\u0438";let n;n=" \u0411\u0443\u0434\u044C\u0442\u0435 \u0432 \u043A\u0443\u0440\u0441\u0456 \u0432\u0441\u0456\u0445 \u043D\u043E\u0432\u0438\u043D \u0456 \u043E\u043D\u043E\u0432\u043B\u0435\u043D\u044C! \u041F\u0435\u0440\u0435\u0439\u0434\u0456\u0442\u044C \u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0443 \u043D\u0430\u0448\u0438\u0445 \u0440\u043E\u0437\u0441\u0438\u043B\u043E\u043A, \u0449\u043E\u0431 \u043E\u0431\u0440\u0430\u0442\u0438 \u0442\u0456, \u0449\u043E \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u044E\u0442\u044C \u0432\u0430\u0448\u0438\u043C \u0456\u043D\u0442\u0435\u0440\u0435\u0441\u0430\u043C. ";let i;return i="\u0434\u043E \u0440\u043E\u0437\u0441\u0438\u043B\u043E\u043A",[e,n,i,[1,"border-border-subtle","flex","flex-col","gap-4","border","p-4","lg:h-full","lg:flex-row","lg:items-center","lg:gap-6","lg:p-8"],[1,"flex","flex-col","gap-3","lg:flex-1"],[1,"flex","items-center","gap-2"],[1,"text-icon-secondary","size-6",3,"svgPath"],[1,"text-text-emphasis","text-h6"],[1,"text-text-emphasis","text-body-xs"],["appLink","","app-button","","size","lg","variant","secondary",3,"href"],[1,"text-text-disabled","first-letter:uppercase"]];},template:function(n,i){n&1&&(s(0,"div",3)(1,"div",4)(2,"div",5),m(3,"app-icon",6),s(4,"h3",7),C(5,0),u()(),s(6,"p",8),C(7,1),u()(),s(8,"a",9)(9,"span",10),C(10,2),u()()()),n&2&&(a(3),p("svgPath","/assets/icons/footer/common/email.svg"),a(5),p("href",i.APP_PATHS.STATIC.children.SUBSCRIPTIONS.fullPath(),M));},dependencies:[N,pe,D],encapsulation:2});};var Mr=(t,e)=>e.parent?.url;function Cr(t,e){if(t&1&&m(0,"ul",16),t&2){let n=e.$implicit;p("section",n);}}var Et=class t{menuService=o(xe);
1_infoMenu=ue({stream:()=>this.menuService.getInfoMenuSections()});infoMenu=de(this._infoMenu);currentYear=new Date().getFullYear();static ɵfac=function(n){return new(n||t)();};static ɵcmp=f({type:t,selectors:[["footer","app-footer",""]],hostAttrs:[1,"flex","w-full","flex-col","gap-6","lg:gap-8"],decls:51,vars:6,consts:()=>{let e;e="\u0406\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u0439\u043D\u0430 \u043D\u0430\u0432\u0456\u0433\u0430\u0446\u0456\u044F";let n;n="\u0420\u0443\u0431\u0440\u0438\u043A\u0438";let i;i="\u041C\u0430\u0442\u0435\u0440\u0456\u0430\u043B\u0438 \u0441\u0430\u0439\u0442\u0443 \u043F\u0440\u0438\u0437\u043D\u0430\u0447\u0435\u043D\u0456 \u0434\u043B\u044F \u043E\u0441\u0456\u0431 \u0441\u0442\u0430\u0440\u0448\u0435";let r;r="21 \u0440\u043E\u043A\u0443 (21+)";let l;l=" \u0412\u0441\u0456 \u043A\u043E\u043C\u0435\u0440\u0446\u0456\u0439\u043D\u0456 \u0440\u0435\u043A\u043B\u0430\u043C\u043D\u0456 \u043C\u0430\u0442\u0435\u0440\u0456\u0430\u043B\u0438 \u043F\u043E\u0437\u043D\u0430\u0447\u0435\u043D\u0456 \u0441\u043B\u043E\u0432\u0430\u043C\u0438 \"\u0421\u043F\u0435\u0446\u043F\u0440\u043E\u0454\u043A\u0442\" \u0447\u0438 \"\u041F\u0430\u0440\u0442\u043D\u0435\u0440\u0441\u044C\u043A\u0438\u0439 \u043C\u0430\u0442\u0435\u0440\u0456\u0430\u043B\". \u041C\u0430\u0442\u0435\u0440\u0456\u0430\u043B\u0438 \u0437 \u043F\u043E\u0437\u043D\u0430\u0447\u043A\u043E\u044E \"\u0415\u043A\u0441\u043F\u0435\u0440\u0442\", \"\u041F\u043E\u0437\u0438\u0446\u0456\u044F\" \u0432\u0456\u0434\u043E\u0431\u0440\u0430\u0436\u0430\u044E\u0442\u044C \u043F\u043E\u0437\u0438\u0446\u0456\u044E \u0430\u0432\u0442\u043E\u0440\u0456\u0432 \u0442\u0430 \u0433\u0435\u0440\u043E\u0457\u0432. \u0420\u0435\u0434\u0430\u043A\u0446\u0456\u044F \u043C\u043E\u0436\u0435 \u043D\u0435 \u043F\u043E\u0434\u0456\u043B\u044F\u0442\u0438 \u0457\u0445\u043D\u0456\u0445 \u043F\u043E\u0433\u043B\u044F\u0434\u0456\u0432. \u0414\u0435\u0442\u0430\u043B\u044C\u043D\u0456\u0448\u0435 \u0449\u043E\u0434\u043E \u0440\u0435\u043A\u043B\u0430\u043C\u0438 \u0442\u0430 \u043F\u0440\u0430\u0432\u0438\u043B \u0446\u0438\u0442\u0443\u0432\u0430\u043D\u043D\u044F \u043C\u043E\u0436\u043D\u0430 \u043E\u0437\u043D\u0430\u0439\u043E\u043C\u0438\u0442\u0438\u0441\u044C \u0432 \u043F\u0440\u0430\u0432\u0438\u043B\u0430\u0445 \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u043D\u043D\u044F \u0441\u0430\u0439\u0442\u043E\u043C. \u0423\u0441\u0456 \u043F\u0440\u0430\u0432\u0430 \u0437\u0430\u0445\u0438\u0449\u0435\u043D\u0456. \u041C\u0430\u0442\u0435\u0440\u0456\u0430\u043B\u0438 \u0441\u0430\u0439\u0442\u0443 \u043F\u0440\u0438\u0437\u043D\u0430\u0447\u0435\u043D\u0456 \u0434\u043B\u044F \u043E\u0441\u0456\u0431 \u0441\u0442\u0430\u0440\u0448\u0435 21 \u0440\u043E\u043A\u0443 (21+) ";let c;c="\u041E\u043D\u043B\u0430\u0439\u043D-\u043C\u0435\u0434\u0456\u0430 \xAB24 \u041A\u0430\u043D\u0430\u043B\xBB";let b;b=" 79008, \u0423\u043A\u0440\u0430\u0457\u043D\u0430, \u041B\u044C\u0432\u0456\u0432\u0441\u044C\u043A\u0430 \u043E\u0431\u043B., \u043C\u0456\u0441\u0442\u043E \u041B\u044C\u0432\u0456\u0432, \u043F\u043B\u043E\u0449\u0430 \u0413\u0430\u043B\u0438\u0446\u044C\u043A\u0430, \u0431\u0443\u0434\u0438\u043D\u043E\u043A 15 ";let I;I="\u0422\u0435\u043B\u0435\u0444\u043E\u043D";let W;W="\u0410\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438:";let A;A="\u0406\u0434\u0435\u043D\u0442\u0438\u0444\u0456\u043A\u0430\u0442\u043E\u0440 \u043E\u043D\u043B\u0430\u0439\u043D-\u043C\u0435\u0434\u0456\u0430 \u0432 \u0420\u0435\u0454\u0441\u0442\u0440\u0456 \u0441\u0443\u0431'\u0454\u043A\u0442\u0456\u0432 \u0443 \u0441\u0444\u0435\u0440\u0456 \u043C\u0435\u0434\u0456\u0430";let j;j=", \u041F\u0440\u0410\u0422 \xAB\u0422\u0435\u043B\u0435\u0440\u0430\u0434\u0456\u043E\u043A\u043E\u043C\u043F\u0430\u043D\u0456\u044F \"\u041B\u044E\u043A\u0441\"\xBB, 24 \u041A\u0430\u043D\u0430\u043B.";let ze;return ze="\u0420\u043E\u0437\u0440\u043E\u0431\u043A\u0430 \u0441\u0430\u0439\u0442\u0443",[i,r,l,c,b,I,W,A,j,ze,[1,"border-border-subtle","bg-surface-hover","text-body-xs","border","px-4","py-0.5","text-center","font-bold","text-[#676a6b]","uppercase","md:py-3"],[1,"ml-1","text-[#1a1f21]"],[1,"bg-surface-hover","flex","flex-col","gap-8","p-4","lg:p-10"],[1,"flex","flex-col","gap-8","lg:flex-row","lg:items-start","lg:gap-8"],["app-contact-info","",1,"flex-1","basis-[45%]"],["aria-label",e,1,"flex-1","basis-[55%]"],["app-footer-info-section","",3,"section"],["app-footer-nav","","aria-label",n,1,"w-full"],[1,"flex","flex-col","gap-0","lg:flex-row","lg:items-stretch"],["app-newsletter","",1,"flex-1","basis-1/2"],[1,"flex","flex-col","gap-4","px-4","py-4","lg:flex-1","lg:basis-1/2","lg:px-8","lg:py-0"],[1,"text-text-secondary","text-body-xs"],[1,"text-text-secondary","text-body-xs","flex","flex-col","gap-1","not-italic"],["href","tel:+380322297777",1,"hover:text-text-emphasis","transition-colors"],["href","mailto:[email protected]",1,"hover:text-text-emphasis","transition-colors"],["app-app-links","",1,"mt-auto"],[1,"text-text-secondary","text-body-xxs","flex","items-center","justify-center","gap-4","px-4","pb-6","lg:pb-8"],["appLink","",1,"flex","items-start","gap-2",3,"href","rel"],[1,"size-4",3,"svgPath"]];},template:function(n,i){n&1&&(s(0,"p",10),G(1),C(2,0),Y(),s(3,"span",11),C(4,1),u()(),s(5,"section",12)(6,"div",13),m(7,"div",14),s(8,"nav",15),F(9,Cr,1,1,"ul",16,Mr),u()(),m(11,"nav",17),s(12,"div",18),m(13,"section",19),s(14,"aside",20)(15,"p",21),G(16),C(17,2),Y(),u(),s(18,"address",22)(19,"p"),C(20,3),u(),s(21,"p"),C(22,4),u(),s(23,"p"),G(24),C(25,5),Y(),T(26," "),s(27,"a",23),T(28,"+380 (32) 229-77-77"),u()(),s(29,"p"),G(30),C(31,6),Y(),T(32," "),s(33,"a",24),T(34,"[email protected]"),u()(),s(35,"p"),G(36),C(37,7),Y(),T(38," - R40-06057 "),u()(),s(39,"p",21),T(40),G(41),C(42,8),Y(),u(),m(43,"div",25),u()()(),s(44,"small",26),G(45),C(46,9),Y(),T(47),s(48,"a",27),m(49,"app-icon",28),T(50),u()()),n&2&&(a(9),B(i.infoMenu()),a(31),$(" \xA9 2005\u2014",i.currentYear),a(7),$(""," - "," "),a(),p("href","https://luxnet.io",M)("rel","nofollow noopener"),a(),p("svgPath","/assets/icons/footer/common/luxnet.svg"),a(),$(" ","Luxnet"," "));},dependencies:[Pi,bt,xi,St,wi,D,N],encapsulation:2});};var so=(t,e)=>({$implicit:t,lit:e}),Or=(t,e)=>e.id;function Nr(t,e){t&1&&kt(0);}function Rr(t,e){if(t&1&&(s(0,"a",4),Me(1,Nr,1,0,"ng-container",6),u()),t&2){let n=E().$implicit,i=zt(0);E();let r=Ut(4);p("href",e,M),a(),p("ngTemplateOutlet",r)("ngTemplateOutletContext",Wt(3,so,n,i));}}function Ar(t,e){t&1&&kt(0);}function Pr(t,e){if(t&1&&(s(0,"span",5),Me(1,Ar,1,0,"ng-container",6),u()),t&2){let n=E().$implicit,i=zt(0);E();let r=Ut(4);a(),p("ngTemplateOutlet",r)("ngTemplateOutletContext",Wt(2,so,n,i));}}function xr(t,e){if(t&1){let n=me();mn(0),s(1,"button",3),U("click",function(){let r=ne(n).$implicit,l=E();return ie(l.handleTabClick(r));})("animationend",function(){ne(n);let r=E();return ie(r.pressedTab.set(null));}),v(2,Rr,2,6,"a",4)(3,Pr,2,5,"span",5),u();}if(t&2){let n,i=e.$implicit,r=E(),l=dn(r.litTab()===i.id);a(),P("bg-brand-red-30",l)("tab-pressed",l&&r.pressedTab()===i.id),a(),_((n=i.url)?2:3,n);}}function wr(t,e){if(t&1&&(m(0,"app-icon",7),s(1,"span",8),T(2),u()),t&2){let n=e.$implicit,i=e.lit;P("text-black-alpha-63",!i)("text-brand-primary",i),p("svgPath",n.icon),a(),P("text-black-alpha-63",!i)("text-brand-red-80",i),a(),$(" ",n.label," ");}}var Ir="nav_tab_click",oo="main",ro="services",Tt=class t{burgerMenuService=o(it);posthog=o(J);path=Ii();locale=o(L);allTabs=[{id:oo,label:"24 \u043A\u0430\u043D\u0430\u043B",icon:"/assets/icons/menu/home.svg",url:d.HOME.fullPath()},{id:"games",label:"\u0456\u0433\u0440\u0438",icon:"/assets/icons/menu/game.svg",url:d.GAMES.fullPath()},{id:"tv",label:"TV",icon:"/assets/icons/menu/tv.svg",url:d.TV_PROGRAMS.fullPath()},{id:"fuel",label:"\u043F\u0430\u043B\u044C\u043D\u0435",icon:"/assets/icons/menu/fuel.svg",url:d.FUEL.fullPath()},{id:ro,label:"\u0441\u0435\u0440\u0432\u0456\u0441\u0438",icon:"/assets/icons/menu/services.svg",action:"burger"}];tabs=this.allTabs.filter(e=>!e.url||ui(e.url,this.locale));matchers=this.tabs.flatMap(e=>{let n=ao(e.url??"");return n?[{id:e.id,path:n}]:[];}).sort((e,n)=>n.path.length-e.path.length);activeTab=Ke(()=>this.tabIdFor(this.path()));litTab=g(()=>this.burgerMenuService.isOpen()?ro:this.activeTab());pressedTab=R(null);handleTabClick(e){if(this.posthog.track(Ir,"click",{tab_name:e.id}),e.action==="burger"){this.pressedTab.set(this.burgerMenuService.isOpen()?null:e.id),this.burgerMenuService.toggle("services_tab");return;}this.burgerMenuService.isOpen()&&this.burgerMenuService.close(),this.activeTab.set(e.id),this.pressedTab.set(e.id);}handlePageShow(e){e.persisted&&(this.pressedTab.set(null),this.activeTab.set(this.tabIdFor(this.path())));}tabIdFor(e){let n=ao(e);return this.matchers.find(r=>n===r.path||n.startsWith(`${r.path}/`))?.id??oo;}static ɵfac=function(n){return new(n||t)();};static ɵcmp=f({type:t,selectors:[["nav","app-mobile-menu",""]],hostAttrs:[1,"flex","items-center","w-full","gap-2","px-4","max-w-100","mx-auto","pointer-events-auto"],hostBindings:function(n,i){n&1&&U("pageshow",function(l){return i.handlePageShow(l);},tn);},decls:5,vars:0,consts:[["tabContent",""],["aria-label","Main navigation",1,"glass-morphism","flex","flex-1","items-center","rounded-[64px]","p-1"],["type","button",1,"-mr-2","flex","flex-1","cursor-pointer","flex-col","items-center","justify-center","rounded-[56px]","transition-all","duration-300","last:mr-0",3,"bg-brand-red-30","tab-pressed"],["type","button",1,"-mr-2","flex","flex-1","cursor-pointer","flex-col","items-center","justify-center","rounded-[56px]","transition-all","duration-300","last:mr-0",3,"click","animationend"],["appLink","",1,"flex","h-13.5","w-full","flex-col","items-center","justify-center","gap-0.5","no-underline",3,"href"],[1,"flex","h-13.5","w-full","flex-col","items-center","justify-center","gap-0.5","no-underline"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"size-6","transition-colors","duration-300",3,"svgPath"],[1,"text-center","text-[10px]","leading-[1.3]","font-semibold","capitalize","transition-colors","duration-300"]],template:function(n,i){n&1&&(s(0,"nav",1),F(1,xr,4,6,"button",2,Or),u(),Me(3,wr,3,10,"ng-template",null,0,Xe)),n&2&&(a(),B(i.tabs)
1);},dependencies:[Mn,N,D],styles:[".glass-morphism[_ngcontent-%COMP%]{-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);background:#ffffffde;border:.5px solid rgb(38 38 38 / 8%);box-shadow:0 4px 12px #0000000d,0 0 1px #0000001a}.tab-pressed[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_tab-activate .4s cubic-bezier(.34,1.56,.64,1)}@keyframes _ngcontent-%COMP%_tab-activate{0%{transform:scale(.9);opacity:.8}50%{transform:scale(1.05)}to{transform:scale(1);opacity:1}}"]});};function ao(t){return t.replace(/^\/+|\/+$/g,"");}var Lr=200,lo="800ms cubic-bezier(0.25, 0.1, 0.25, 1)",Mt=class t{host=o(He);destroyRef=o(k);smartBannerCapping=o(ni);measureTimer;constructor(){re(()=>{let e=()=>this.slideIn(),n=()=>this.reset();window.addEventListener("MobileBrandingSmallBannerShowed",e),window.addEventListener("MobileBrandingSmallBannerClosed",n),this.destroyRef.onDestroy(()=>{window.removeEventListener("MobileBrandingSmallBannerShowed",e),window.removeEventListener("MobileBrandingSmallBannerClosed",n),clearTimeout(this.measureTimer);});});}banner(){return document.getElementById("mobileBrandingSmallBannerWrapper")??document.getElementById("mobileBrandingVideoWrapper");}slideIn(){this.smartBannerCapping.registerBrandingShown(),clearTimeout(this.measureTimer),this.measureTimer=setTimeout(()=>{let e=this.host.nativeElement,n=this.banner(),i=n?.getBoundingClientRect().height;if(!n||!i)return;let r=parseFloat(getComputedStyle(n).marginTop)||0;e.style.height=`${i+r}px`,e.style.transform="translateY(100%)",e.style.opacity="0",e.style.transition="none",e.offsetHeight,requestAnimationFrame(()=>{e.style.transition=`transform ${lo}, opacity ${lo}`,requestAnimationFrame(()=>{e.style.transform="translateY(0)",e.style.opacity="1";});});},Lr);}reset(){clearTimeout(this.measureTimer);let e=this.host.nativeElement;e.style.transition="none",e.style.transform="",e.style.opacity="",e.style.height="";}static ɵfac=function(n){return new(n||t)();};static ɵcmp=f({type:t,selectors:[["div","app-branding-stick",""]],hostAttrs:[1,"relative","h-0","w-full","opacity-0"],decls:0,vars:0,template:function(n,i){},styles:[`#mobileBrandingSmallBannerWrapper.adv-label,#mobileBrandingSmallBannerWrapper.partner-label{margin-top:21px!important}#mobileBrandingSmallBannerWrapper.adv-label:before{content:"\\420\\415\\41a\\41b\\410\\41c\\410";position:absolute;top:-22px;left:0;width:100%;height:100%;z-index:-1;padding:3px 0 3px 3px;color:#848484;font-size:12px;font-style:normal;font-weight:700;background-color:#f5f5f5}#mobileBrandingSmallBannerWrapper.adv-label.over21:before{content:"\\420\\415\\41a\\41b\\410\\41c\\410 21+"}#mobileBrandingSmallBannerWrapper.partner-label:before{content:"\\41f\\410\\420\\422\\41d\\415\\420";position:absolute;top:-30px;left:0;width:100%;height:100%;z-index:-1;color:#848484;font-size:13px;font-style:normal;font-weight:700;background-color:#f5f5f5}#mobileBrandingVideoWrapper.adv-label,#mobileBrandingVideoWrapper.partner-label{margin-top:20px!important}#mobileBrandingVideoWrapper.adv-label:before,#mobileBrandingVideoWrapper.partner-label:before{content:"\\420\\415\\41a\\41b\\410\\41c\\410";position:absolute;top:-21px;left:0;width:100%;height:100%;z-index:-1;padding:3px 0 3px 3px;color:#848484;font-size:12px;font-style:normal;font-weight:700;background-color:#f5f5f5}#mobileBrandingVideoWrapper.adv-label.over21:before{content:"\\420\\415\\41a\\41b\\410\\41c\\410 21+"}#mobileBrandingVideoWrapper.partner-label:before{content:"\\41f\\410\\420\\422\\41d\\415\\420"}#branding-stick .mobileBrandingCloseBtn{top:-47px!important;left:auto!important;right:0!important;background:#f5f5f5!important;box-shadow:0 -2px 3px -1px #113a6659!important} 2`],encapsulation:2});};function uo(t){return Hi(Di,t);}function Dr([t,e,n]){let i=t/255,r=e/255,l=n/255,c=Math.max(i,r,l),b=Math.min(i,r,l),I=(c+b)/2,W=c-b;if(W===0)return[0,0,I];let A=W/(1-Math.abs(2*I-1)),j;switch(c){case i:j=(r-l)/W%6;break;case r:j=(l-i)/W+2;break;default:j=(i-r)/W+4;}return j*=60,j<0&&(j+=360),[j,A,I];}function co([t,e,n]){let i=(1-Math.abs(2*n-1))*e,r=i*(1-Math.abs(t/60%2-1)),l=n-i/2,[c,b,I]=t<60?[i,r,0]:t<120?[r,i,0]:t<180?[0,i,r]:t<240?[0,r,i]:t<300?[r,0,i]:[i,0,r];return[(c+l)*255,(b+l)*255,(I+l)*255];}function po(t,e=4.5){let n=Fi(t);
2if(!n||uo(n)>=e)return t;let[i,r,l]=Dr(n),c=0,b=l,I=0;for(let W=0;W<24;W++){let A=(c+b)/2;uo(co([i,r,A]))>=e?(I=A,c=A):b=A;}return Bi(co([i,r,I]));}var mo=["--color-channel-primary-50","--color-channel-primary-100","--color-channel-primary-500","--color-channel-primary-600","--color-channel-primary-700"];function fo(t,e){return e?{}:{"--color-channel-primary-50":t.colorHexLight,"--color-channel-primary-100":t.colorHexLight,"--color-channel-primary-500":t.colorHex,"--color-channel-primary-600":po(t.colorHover),"--color-channel-primary-700":t.colorDecoration};}var Ct=class t{document=o(he);window=o(Z);destroyRef=o(k);listening=!1;renderer=o(Ve).createRenderer(null,null);listen(){if(this.listening)return;let e=this.window;if(!e)return;this.listening=!0;let n=i=>this.apply(i);e.addEventListener(Yt,n),this.destroyRef.onDestroy(()=>e.removeEventListener(Yt,n));}apply(e){let n=Fr(e);n!==null&&this.renderer.setStyle(this.document.documentElement,ci,`${n}px`,nn.DashCase);}static ɵfac=function(n){return new(n||t)();};static ɵprov=y({token:t,factory:t.ɵfac,providedIn:"root"});};function Fr(t){let e=t.detail;if(typeof e!="object"||e===null)return null;let n=e.height,i=typeof n=="string"?Number(n):n;return typeof i=="number"&&Number.isFinite(i)&&i>=0?i:null;}var Ot=class t{posthog=o(J);context=o(Pe);authStore=o(q);injector=o(H);listening=!1;stamped=!1;listen(){this.listening||(this.listening=!0,oe(()=>{let e=this.authStore.user(),n=this.context.isWebview();!n&&!this.stamped||(this.stamped=n,this.posthog.setGlobalProperties({webview:n,type:$i(e)}));},{injector:this.injector}));}static ɵfac=function(n){return new(n||t)();};static ɵprov=y({token:t,factory:t.ɵfac,providedIn:"root"});};var Nt=class t{bridge=o(Mi);context=o(Pe);openState=o(ii);injector=o(H);anyOpen=this.openState.anyOpen;listening=!1;lastSent=null;listen(){this.listening||(this.listening=!0,oe(()=>{let e=this.context.isWebview()&&this.anyOpen();e!==this.lastSent&&(!e&&this.lastSent===null||(this.lastSent=e,this.bridge.send("popup_visibility",{status:e?"show":"hide"})));},{injector:this.injector}));}static ɵfac=function(n){return new(n||t)();};static ɵprov=y({token:t,factory:t.ɵfac,providedIn:"root"});};var Br=["playerOutlet"],Hr=()=>[import("./chunk-CFPWIBVP.js").then(t=>t.SilenceMinute)];function kr(t,e){if(t&1&&(s(0,"div",1),m(1,"header",7),u()),t&2){let n=E();a(),p("hideNav",n.hideHeaderNav())("hideAccountEntry",n.hideAccountEntry());}}function Ur(t,e){t&1&&m(0,"div",8);}function $r(t,e){if(t&1&&m(0,"footer",9),t&2){let n=E();P("container",!n.narrowFooter())("container-narrow",n.narrowFooter());}}function zr(t,e){}function Wr(t,e){t&1&&m(0,"div",5);}function jr(t,e){t&1&&m(0,"nav",6);}var Rt=class t{playerHost=o(Li);route=o(Un);router=o(ve);destroyRef=o(k);sitesService=o(ce);renderer=o(on);document=o(he);webview=o(Pe);bottomInset=o(Ct);inSilenceWindow=R(!1);hasHortay=Ci.includes(o(L));hortay=Oe(()=>import("./chunk-GXISDOZT.js").then(e=>e.HortayService));siteVars=g(()=>fo(this.sitesService.activeSite(),this.sitesService.isDefaultActiveSite()));playerOutlet=Q("playerOutlet",{read:Ht});narrowFooter=Se("narrowLayout");isWebview=this.webview.isWebview;hideHeader=this.orWebview(Se("hideHeader"));navHiddenByRoute=Se("hideMobileNav");hideMobileNav=this.orWebview(this.navHiddenByRoute);shellClass=g(()=>this.navHiddenByRoute()?"pt-(--header-height)":"pt-(--header-height) pb-(--app-bottom-inset)");hideFooter=this.orWebview(Se("hideFooter"));hideHeaderNav=Se("hideHeaderNav");hideAccountEntry=Se("hideAccountEntry");orWebview(e){return g(()=>e()||this.webview.isWebview());}constructor(){o(Ti).listen(),o(Oi).listen(),o(Ot).listen(),o(Nt).listen(),oe(()=>{let e=this.siteVars(),n=this.document.documentElement;for(let i of mo){let r=e[i];r?this.renderer.setStyle(n,i,r):this.renderer.removeStyle(n,i);}}),re(()=>this.armSilenceWindow()),re(()=>{this.webview.isWebview()&&this.bottomInset.listen();}),re(()=>{let e=this.playerOutlet();e&&this.playerHost.register(e),this.route.queryParamMap.pipe(x(this.destroyRef)).subscribe(n=>{this.maybeOpenHortay(n);});});}armSilenceWindow(){if(this.webview.isWebview())return;if(ki()){this.inSilenceWindow.set(!0);return;}let e=setTimeout(()=>this.inSilenceWindow.set(!0),Ui());this.destroyRef.onDestroy(()=>clearTimeout(e));}async maybeOpenHortay(e){if(!e.has(ot)||!this.hasHortay||this.router.url.split("?")[0].startsWith(`/${d.HORTAY.path}`))return;let i=await this.hortay();if(!i.isOpen()){let r=Number(e.get(ot));await i.open(Number.isFinite(r)&&r>0?r:void 0);}this.router.navigate([],{queryParams:{[ot]:null},queryParamsHandling:"merge",replaceUrl:!0});}static ɵfac=function(n){return new(n||t)();};static ɵcmp=f({type:t,selectors:[["app-layout"]],viewQuery:function(n,i){n&1&&ae(i.playerOutlet,Br,5,Ht),n&2&&se();},hostAttrs:[1,"flex","flex-col"],hostVars:2,hostBindings:function(n,i){n&2&&Ce(i.shellClass());},decls:13,vars:5,consts:[["playerOutlet",""],[1,"bg-surface-page","fixed","top-0","left-1/2","z-[var(--z-header)]","w-full","-translate-x-1/2","pr-[env(safe-area-inset-right,0px)]","pl-[env(safe-area-inset-left,0px)]"],["id","small-branding-place"],["app-footer","",1,"mx-auto","mt-6","[overflow-anchor:none]","lg:mt-22",3,"container","container-narrow"],[1,"mobile-bottom-stack","pointer-events-none","fixed","right-0","left-0","z-[var(--z-mobile-nav)]","flex","flex-col","items-center","gap-2","pr-[env(safe-area-inset-right,0px)]","pl-[env(safe-area-inset-left,0px)]"],["app-branding-stick","","id","branding-stick",1,"pointer-events-auto","empty:hidden","lg:hidden"],["app-mobile-menu","",1,"relative","z-10","lg:hidden"],["app-header","",1,"shadow-flat-down-1-4","container","mx-auto",3,"hideNav","hideAccountEntry"],["app-silence-minute",""],["app-footer","",1,"mx-auto","mt-6","[overflow-anchor:none]","lg:mt-22"]],template:function(n,i){n&1&&(v(0,kr,2,2,"div",1),m(1,"div",2),s(2,"main"),m(3,"router-outlet"),u(),an(4,Ur,1,0),sn(5,4,Hr),v(7,$r,1,4,"footer",3),s(8,"div",4),Me(9,zr,0,0,"ng-template",null,0,Xe),v(11,Wr,1,0,"div",5),v(12,jr,1,0,"nav",6),u()),n&2&&(_(i.hideHeader()?-1:0),a(5),ln(i.inSilenceWindow()),a(2),_(i.hideFooter()?-1:7),a(4),_(i.isWebview()?-1:11),a(),_(i.hideMobileNav()?-1:12));},dependencies:[Qe,vt,Et,Tt,Mt],styles:[".mobile-bottom-stack[_ngcontent-%COMP%]{--bottom-inset-max: env(safe-area-max-inset-bottom, 0px);bottom:calc(env(safe-area-inset-bottom,0px) - var(--bottom-inset-max));padding-bottom:calc(.5rem + var(--bottom-inset-max))}@media(width>=64rem){.mobile-bottom-stack[_ngcontent-%COMP%]{bottom:0;padding-bottom:0}}"]});};var go=t=>t.canLeave();var ho=()=>import("./chunk-WHLXKLXH.js").then(t=>t.HortayPage),yo=[{path:"community/auth-redirect",loadComponent:()=>import("./chunk-3TRNEQEN.js").then(t=>t.AuthRedirectPage)},{path:d.HORTAY.path,loadComponent:ho},{path:`${d.HORTAY.path}/:newsId`,loadComponent:ho},{path:`${d.PREDICTIONS.path}/${d.PREDICTIONS.children.EMBED.path}`,loadComponent:()=>import("./chunk-OZUZI4EW.js").then(t=>t.PredictionEmbed)},{path:d.BASE.path,component:Rt,children:[{path:d.MOBILE_HOME.path,data:{webview:!0},loadChildren:()=>import("./chunk-PDMGLJQD.js").then(t=>t.routes)},{path:d.HOME.path,loadChildren:()=>import("./chunk-QOZYRDOK.js").then(t=>t.routes)},{path:"community/register",data:{hideHeaderNav:!0,hideFooter:!0,hideMobileNav:!0,hideAccountEntry:!0},canActivate:[Vt],loadComponent:()=>import("./chunk-Y6JQXML4.js").then(t=>t.RegistrationPage),canDeactivate:[go]}
2,{path:d.COMMUNITY.children.SETTINGS.children.VERIFY_TOKEN.fullPath(),data:{hideHeaderNav:!0,hideFooter:!0,hideMobileNav:!0},loadComponent:()=>import("./chunk-QMQNFOHP.js").then(t=>t.SettingsVerifyTokenPage)},{path:d.FUEL.path,data:{narrowLayout:!0},loadChildren:()=>import("./chunk-HOTIJP5F.js").then(t=>t.routes)},{path:d.CURRENCY.path,loadChildren:()=>import("./chunk-XR5GONVK.js").then(t=>t.routes)},{path:d.SHORT_VIDEO.path,loadChildren:()=>import("./chunk-LL72CVKW.js").then(t=>t.routes)},{path:d.RADIO.path,data:{narrowLayout:!0},loadChildren:()=>import("./chunk-DVUQPPM2.js").then(t=>t.routes)},{path:d.PREDICTIONS.path,loadChildren:()=>import("./chunk-4RQNOCZS.js").then(t=>t.routes)},{path:d.SLOVKO.path,loadChildren:()=>import("./chunk-WLJ4DMFT.js").then(t=>t.routes)},{path:d.COMMUNITY.path,loadChildren:()=>import("./chunk-DNLO355T.js").then(t=>t.routes),canActivate:[Qi,Vt],data:{hideHeaderNav:!0,hideFooter:!0}},{path:"testing",loadChildren:()=>import("./chunk-SDC6FJJK.js").then(t=>t.TESTING_ROUTES)},{path:d.BLOGS_AUTHORS.path,loadComponent:()=>import("./chunk-WA2D4GIF.js").then(t=>t.BlogsAuthorsPage)},{matcher:Zi,data:{narrowLayout:!0},loadChildren:()=>import("./chunk-U74ZHQDN.js").then(t=>t.routes)},{matcher:qi,data:{narrowLayout:!0},loadChildren:()=>import("./chunk-I7NJVTZW.js").then(t=>t.routes)},{path:"**",redirectTo:""}]}];function vo(t={}){return[{provide:Qn,useValue:{level:t.level??1,disableConsoleLogging:t.disableConsoleLogging??!1,serverLoggingUrl:t.serverLoggingUrl}},le];}var At=class t{injector=o(H);handleError(e){if(e instanceof Re){this.logger.error("HTTP error:",{status:e.status,statusText:e.statusText,url:e.url,message:e.message,error:e.error}),this.sentry.captureException(e,n=>{n.setContext("request",{url:e.url,status:e.status,statusText:e.statusText});});return;}throw this.sentry.captureException(e),e;}get logger(){return this.injector.get(le).withContext("Global Error Handler");}get sentry(){return this.injector.get(De);}static ɵfac=function(n){return new(n||t)();};static ɵprov=y({token:t,factory:t.ɵfac});};var _o=(t,e)=>{let n=o(L),i=o(ce);if(t.url.startsWith(S.apiBase)&&t.method==="GET"){let r=t.params;t.urlWithParams.includes("lang=")||(r=t.params.set("lang",n));let l=i.activeSite();l&&!t.urlWithParams.includes("siteId=")&&(r=r.set("siteId",l.id));let c=t.clone({params:r});return e(c);}return e(t);};var Pt=(t,e)=>{let n=o(le).withContext("duplicateRequestLogger"),i=1e3,r=Date.now(),l=Pt._recentRequests??(Pt._recentRequests=new Map());if(t.method==="GET"){let c=t.urlWithParams,b=l.get(c);b&&r-b<=i&&n.trace(`Duplicate GET request detected and can be cached: ${c}`),l.set(c,r);}return e(t);};var bo=(t,e)=>{let n="cache-force-evict",i=o(O),r=o(bn,{optional:!0});if(!i.isServer()||!r)return e(t);if(!!r.headers.get(n)&&t.url.startsWith(S.apiBase)&&t.method==="GET"){let c=t.clone({headers:t.headers.set(n,"true").set("Cookie",`${n}=true;`)});return e(c);}return e(t);};var So=(t,e)=>{let i=o(le).withContext("httpResponseTimeLogger"),r=new Date().getTime();return e(t).pipe(Ye(l=>{if(l instanceof Pn){i.trace(`${t.urlWithParams}`);let c=new Date().getTime();c-r>=500&&i.warn(`API ${t.urlWithParams} respond ${(c-r)/1e3}s `);}}));};var Eo=(t,e)=>{let n=o(le).withContext("HttpErrorInterceptor");return e(t).pipe(Ge(i=>(i instanceof Re&&n.error(`HTTP error ${t.method} ${t.url}${t.params?"?"+t.params.toString():""}: ${i.status} ${i.statusText}`,{status:i.status,statusText:i.statusText,url:i.url??t.url,message:i.message,error:i.error}),We(()=>i))));};var Xt="skip-auth-interceptor",Gr=[S.authApiBase,S.rewardsApiBase,S.molfarApiBase,S.slovkoApiBase,`${jt}/`];function Yr(t){return Gr.some(e=>t.startsWith(e));}function To(t,e){return t.clone({setHeaders:{Authorization:`Bearer ${e}`}});}var Kt=class t{auth=o(Xn);cookieStorage=o(Gt);join=Kn(()=>this.auth.refreshToken().pipe(Be(({accessToken:e})=>{if(!e)throw new Error("Invalid refresh response");return e;}),Ye({next:e=>this.cookieStorage.setAccessToken(e),error:e=>{e?.status===401&&this.cookieStorage.clearTokens();}})));static ɵfac=function(n){return new(n||t)();};static ɵprov=y({token:t,factory:t.ɵfac,providedIn:"root"});},Mo=(t,e)=>{if(t.headers.has(Xt)||t.url.includes(`${jt}/refresh`)||t.url.endsWith("/auth/refresh")){if(t.headers.has(Xt)){let c=t.headers.delete(Xt);return e(t.clone({headers:c}));}return e(t);}if(!Yr(t.url))return e(t);let n=o(Gt).getAccessToken(),r=o(O).isBrowser()&&!Je(o(Ne).pathname)?o(Kt):null,l=n?To(t,n):t;return e(l).pipe(Ge(c=>r&&c instanceof Re&&c.status===401?r.join().pipe(Qt(b=>e(To(l,b)))):We(()=>c)));};var Co=(t,e)=>{if(![S.authApiBase,S.rewardsApiBase,S.molfarApiBase,S.slovkoApiBase].some(l=>t.url.startsWith(l))||!S.tenantId)return e(t);let r=t.clone({setHeaders:{"x-tenant-id":S.tenantId}});return e(r);};On(Xi);var Oo={providers:[yn(),Zt(),$n(yo,zn({canceledNavigationResolution:"computed"})),{provide:Bn,useClass:st},{provide:En,useClass:at},Fn(Dn(),Ln(),In({includeRequestsWithAuthHeaders:!0})),xn(wn([Co,Mo,Pt,bo,_o,So,Eo])),vo(S.loggerConfig),{provide:qt,useClass:At},rn(()=>o(oi).initialize()),qn,ti]};var Vr="web_vitals",fe=t=>t===void 0?void 0:Math.round(t),No=t=>t===void 0?void 0:+t.toFixed(4),xt=class t{pd=o(O);posthog=o(J);window=o(Z,{optional:!0});started=!1;landingPath="";init(){if(this.started||!this.pd.isBrowser()||!this.window)return;this.started=!0,this.landingPath=this.window.location.pathname;let e=async()=>{try{let{onCLS:n,onINP:i,onLCP:r,onFCP:l,onTTFB:c}=await import("./chunk-TAAM6DTU.js"),b=I=>this.report(I);n(b),i(b),r(b),l(b),c(b);}catch{}};Le(this.window,e,5e3);}report(e){this.posthog.track(Vr,void 0,Xr(e,{landingPath:this.landingPath,currentPath:this.window?.location.pathname??""}));}static ɵfac=function(n){return new(n||t)();};static ɵprov=y({token:t,factory:t.ɵfac,providedIn:"root"});};function Xr(t,e){return X({metric:t.name,value:t.name==="CLS"?No(t.value):fe(t.value),rating:t.rating,navigation_type:t.navigationType,landing_path:e.landingPath,current_path:e.currentPath},Kr(t));}function Kr(t){switch(t.name){case"INP":return Qr(t);case"LCP":return qr(t);case"CLS":return Zr(t);default:return{};}}function Qr(t){let e=t.attribution;return{inp_target:e.interactionTarget,inp_type:e.interactionType,inp_load_state:e.loadState,inp_input_delay:fe(e.inputDelay),inp_processing_duration:fe(e.processingDuration),inp_presentation_delay:fe(e.presentationDelay),inp_longest_script_subpart:e.longestScript?.subpart,inp_longest_script_duration:fe(e.longestScript?.intersectingDuration)};}function qr(t){let e=t.attribution;return{lcp_target:e.target,lcp_url:e.url,lcp_ttfb:fe(e.timeToFirstByte),lcp_resource_load_delay:fe(e.resourceLoadDelay),lcp_resource_load_duration:fe(e.resourceLoadDuration),lcp_element_render_delay:fe(e.elementRenderDelay)};}function Zr(t){let e=t.attribution;return{cls_target:e.largestShiftTarget,cls_largest_shift_value:No(e.largestShiftValue),cls_load_state:e.loadState};}
2var Jr="/community/auth-redirect",ea="/community/register",wt=class t{pd=o(O);document=o(he);authStore=o(q);snapshots=o(Ni);injector=o(H);destroyRef=o(k);initializationComplete$=ei(this.authStore.initializationComplete);init(){this.pd.isBrowser()&&(this.document.location.pathname.startsWith(Jr)||this.initializationComplete$.pipe(je(Boolean),ge(1),x(this.destroyRef)).subscribe(()=>{this.tryResume();}));}async tryResume(){let e=this.snapshots.read();if(!e)return;let n=this.document.location.pathname;if(e.host==="page"||n.startsWith(ea)||(this.snapshots.clear(),!this.authStore.isAuthenticated()))return;let{OnboardingPopupService:i}=await import("./chunk-4HMVH5IE.js");this.injector.get(i).open({scope:e.scope,extras:e.extras,restoreFrom:e,returnUrl:e.returnUrl??void 0,resumeKey:rt(e.resumeKey)?e.resumeKey:void 0});}static ɵfac=function(n){return new(n||t)();};static ɵprov=y({token:t,factory:t.ɵfac,providedIn:"root"});};var Ro="popup",It=class t{pd=o(O);router=o(ve);urlService=o(Ae);window=o(Z);authStore=o(q);destroyRef=o(k);onboardingPopup=Oe(()=>import("./chunk-4HMVH5IE.js").then(e=>e.OnboardingPopupService));currentlyOpenKey=null;init(){this.pd.isBrowser()&&this.router.routerState.root.queryParamMap.pipe(x(this.destroyRef)).subscribe(e=>this.handle(e.get(Ro)));}handle(e){if(!e){this.currentlyOpenKey=null;return;}if(e!==this.currentlyOpenKey){if(Ai(e)){this.currentlyOpenKey=e,this.openCommunityRedirect(e);return;}rt(e)&&(this.currentlyOpenKey=e,this.openFlow(e));}}async openFlow(e){let n=await this.onboardingPopup();this.closeOnDetach(n.openFlow(e));}
2openCommunityRedirect(e){let{context:n,path:i}=Ri[e];if(this.authStore.isAuthenticated()){this.redirectTo(i);return;}this.openCommunityRedirectAuth(n,i);}async openCommunityRedirectAuth(e,n){let i=await this.onboardingPopup();this.closeOnDetach(i.openAuth({context:e,returnUrl:this.urlService.buildFullUrl(n),onComplete:()=>this.redirectTo(n)}));}redirectTo(e){this.window?.location.assign(this.urlService.buildFullUrl(e));}closeOnDetach(e){e.overlayRef.detachments().pipe(ge(1)).subscribe(()=>{this.currentlyOpenKey=null,this.clearQueryParam();});}clearQueryParam(){this.router.navigate([],{queryParams:{[Ro]:null},queryParamsHandling:"merge",replaceUrl:!0});}static ɵfac=function(n){return new(n||t)();};static ɵprov=y({token:t,factory:t.ɵfac,providedIn:"root"});};function Ao(t){let e=`/assets/sites/${t.name}`;return[{rel:"apple-touch-icon",href:`${e}/apple-touch-icon.png`},{rel:"apple-touch-icon",href:`${e}/apple-touch-icon-152x152.png`,sizes:"152x152"},{rel:"apple-touch-icon",href:`${e}/apple-touch-icon-120x120.png`,sizes:"120x120"},{rel:"apple-touch-icon-precomposed",href:`${e}/apple-touch-icon-precomposed.png`},{rel:"apple-touch-icon-precomposed",href:`${e}/apple-touch-icon-152x152-precomposed.png`,sizes:"152x152"},{rel:"apple-touch-icon-precomposed",href:`${e}/apple-touch-icon-120x120-precomposed.png`,sizes:"120x120"}];}var ta={uk:"all.xml",ru:"allRu.xml"},na=[1117,1792,4638];function Po(t,e){let n=r=>`${t}/rss/all.xml?googleFlg=true${r}`,i=ta[e];return[...(i?[`${t}/rss/${i}`]:[]),n(""),n("&lang=ru"),...na.flatMap(r=>[n(`&tagId=${r}`),n(`&tagId=${r}&lang=ru`)])];}var Lt=class t{headLinks=o(Vi);sites=o(ce);locale=o(L);siteOrigin=`${S.protocol}${S.host}`;apply(){this.headLinks.setFeeds(Po(this.siteOrigin,this.locale)),oe(()=>{let e=this.sites.activeSite();this.headLinks.setFavicon(this.sites.faviconHref()),this.headLinks.setAppleTouchIcons(Ao(e)),this.headLinks.setThemeColor(e.colorHex);});}static ɵfac=function(n){return new(n||t)();};static ɵprov=y({token:t,factory:t.ɵfac,providedIn:"root"});};function ia(t,e){return Wi(t,e,Gi,Yi);}var Dt=class t{document=o(he);platform=o(Ne);renderer=o(Ve).createRenderer(null,null);applyInitialTheme(){ia(this.platform.pathname,this.platform.search)&&this.renderer.addClass(this.document.documentElement,ji);}static ɵfac=function(n){return new(n||t)();};static ɵprov=y({token:t,factory:t.ɵfac,providedIn:"root"});};var oa=li.games.map(t=>Gn(`/${d.GAMES.path}`,t)),xo="cache-repair:online-games",ra=Date.parse("2027-01-01");async function wo(t){if(Date.now()>=ra||la(t))return;(await Promise.all(oa.map(n=>aa(t,n)))).every(Boolean)&&ua(t);}async function aa(t,e){if(!(await sa(t,e)))return!0;try{return await t.fetch(e,{cache:"reload",redirect:"manual"}),!0;}catch{return!1;}}async function sa(t,e){try{return(await t.fetch(e,{cache:"only-if-cached",mode:"same-origin",redirect:"manual"})).type==="opaqueredirect";}catch{return!1;}}function la(t){try{return t.localStorage.getItem(xo)!==null;}catch{return!0;}}function ua(t){try{t.localStorage.setItem(xo,"1");}catch{}}var Ft=class t{gtagService=o(bi);gemiusService=o(_i);metrixService=o(Si);posthogService=o(J);marfeelService=o(Ei);webVitalsService=o(xt);playerFacade=o(zi);platform=o(Ne);flowResumeService=o(wt);onboardingPopupLinkService=o(It);window=o(Z,{optional:!0});constructor(){o(Lt).apply(),o(Dt).applyInitialTheme();}async ngOnInit(){this.gtagService.init(),this.gemiusService.init(),this.metrixService.init(),this.posthogService.init(),this.marfeelService.init(),this.webVitalsService.init(),Je(this.platform.pathname)||this.playerFacade.restore(),this.flowResumeService.init(),this.onboardingPopupLinkService.init();let e=this.window;e&&Le(e,()=>{wo(e);});}static ɵfac=function(n){return new(n||t)();};static ɵcmp=f({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(n,i){n&1&&m(0,"router-outlet");},dependencies:[Qe],encapsulation:2});};An(Ft,Oo).catch(t=>console.error(t));/**i18n:fd443cd02819152b82041c85b3b852d750c5b690a3deb04ec4bcb1027c8ad6d3*/
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.