@vkontakte/videoplayer 1.1.54-dev.c752a02a.0 → 1.1.54-dev.ec32eef5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esnext.cjs.js CHANGED
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.54-dev.c752a02a.0
3
- * Wed, 18 Dec 2024 02:28:03 GMT
2
+ * @vkontakte/videoplayer v1.1.54-dev.ec32eef5.0
3
+ * Fri, 17 Jan 2025 10:01:42 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-54/doc/
5
5
  */
6
- "use strict";var qh=Object.create;var Bs=Object.defineProperty;var Uh=Object.getOwnPropertyDescriptor;var zh=Object.getOwnPropertyNames;var Wh=Object.getPrototypeOf,Kh=Object.prototype.hasOwnProperty;var jh=(i,e)=>{for(var t in e)Bs(i,t,{get:e[t],enumerable:!0})},$f=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of zh(e))!Kh.call(i,o)&&o!==t&&Bs(i,o,{get:()=>e[o],enumerable:!(n=Uh(e,o))||n.enumerable});return i};var ed=(i,e,t)=>(t=i!=null?qh(Wh(i)):{},$f(e||!i||!i.__esModule?Bs(t,"default",{value:i,enumerable:!0}):t,i)),Gh=i=>$f(Bs({},"__esModule",{value:!0}),i);var By={};jh(By,{ControlButtonType:()=>ws,GridTypes:()=>$n,InterfaceLanguage:()=>ts.InterfaceLanguage,MenuItemType:()=>ys,VERSION:()=>or,VKNumericLanguage:()=>ts.VKNumericLanguage,VideoFormat:()=>ca.VideoFormat,VideoQuality:()=>ca.VideoQuality,loadVKLangPack:()=>ts.loadVKLangPack,registerPlayerWebComponent:()=>Ry});module.exports=Gh(By);function me(){}function re(i,e){for(let t in e)i[t]=e[t];return i}function wa(i){return i()}function Ds(){return Object.create(null)}function st(i){i.forEach(wa)}function Wt(i){return typeof i=="function"}function V(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Ns;function wo(i,e){return i===e?!0:(Ns||(Ns=document.createElement("a")),Ns.href=e,i===Ns.href)}function td(i){return Object.keys(i).length===0}function jt(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ue(i){let e;return jt(i,t=>e=t)(),e}function R(i,e,t){i.$$.on_destroy.push(jt(e,t))}function Le(i,e,t,n){if(i){let o=id(i,e,t,n);return i[0](o)}}function id(i,e,t,n){return i[1]&&n?re(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let s=id(e,t,n,r);i.p(s,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function we(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function nd(i){return i??""}function Cr(i){return i&&Wt(i.destroy)?i.destroy:me}var ds=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Os=class i{_listeners="WeakMap"in ds?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};Os.entries="WeakMap"in ds?new WeakMap:void 0;var od=!1;function rd(){od=!0}function sd(){od=!1}function _(i,e){i.appendChild(e)}function be(i,e,t){let n=ld(i);if(!n.getElementById(e)){let o=S("style");o.id=e,o.textContent=t,Zh(n,o)}}function ld(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function Zh(i,e){return _(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function ti(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function S(i){return document.createElement(i)}function L(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function De(i){return document.createTextNode(i)}function j(){return De(" ")}function Ze(){return De("")}function Te(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ii(i){return function(e){return e.preventDefault(),i.call(this,e)}}function mt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function Ce(i,e){for(let t in e)f(i,t,e[t])}function ad(i){return Array.from(i.childNodes)}function je(i,e){e=""+e,i.data!==e&&(i.data=e)}function ni(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function z(i,e,t){i.classList.toggle(e,!!t)}function ud(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function At(i,e){return new i(e)}var No;function Co(i){No=i}function Sr(){if(!No)throw new Error("Function called outside component initialization");return No}function vt(i){Sr().$$.on_mount.push(i)}function Mn(i){Sr().$$.on_destroy.push(i)}function Tr(i,e){return Sr().$$.context.set(i,e),e}function Ir(i){return Sr().$$.context.get(i)}function ms(){return Sr().$$.context}function Ln(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var er=[];var ve=[],Er=[],Sa=[],fd=Promise.resolve(),Ta=!1;function Ia(){Ta||(Ta=!0,fd.then(at))}function cn(){return Ia(),fd}function ps(i){Er.push(i)}function ze(i){Sa.push(i)}var Ca=new Set,Pr=0;function at(){if(Pr!==0)return;let i=No;do{try{for(;Pr<er.length;){let e=er[Pr];Pr++,Co(e),ig(e.$$)}}catch(e){throw er.length=0,Pr=0,e}for(Co(null),er.length=0,Pr=0;ve.length;)ve.pop()();for(let e=0;e<Er.length;e+=1){let t=Er[e];Ca.has(t)||(Ca.add(t),t())}Er.length=0}while(er.length);for(;Sa.length;)Sa.pop()();Ta=!1,Ca.clear(),Co(i)}function ig(i){if(i.fragment!==null){i.update(),st(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(ps)}}function dd(i){let e=[],t=[];Er.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Er=e}var Fs=new Set,tr;function le(){tr={r:0,c:[],p:tr}}function ae(){tr.r||st(tr.c),tr=tr.p}function d(i,e){i&&i.i&&(Fs.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Fs.has(i))return;Fs.add(i),tr.c.push(()=>{Fs.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function _t(i){return i?.length!==void 0?i:Array.from(i)}function md(i,e){p(i,1,1,()=>{e.delete(i.key)})}function pd(i,e,t,n,o,r,s,a,l,u,c,m){let h=i.length,y=r.length,g=h,T={};for(;g--;)T[i[g].key]=g;let k=[],D=new Map,I=new Map,C=[];for(g=y;g--;){let O=m(o,r,g),$=t(O),se=s.get($);se?n&&C.push(()=>se.p(O,e)):(se=u($,O),se.c()),D.set($,k[g]=se),$ in T&&I.set($,Math.abs(g-T[$]))}let P=new Set,G=new Set;function x(O){d(O,1),O.m(a,c),s.set(O.key,O),c=O.first,y--}for(;h&&y;){let O=k[y-1],$=i[h-1],se=O.key,K=$.key;O===$?(c=O.first,h--,y--):D.has(K)?!s.has(se)||P.has(se)?x(O):G.has(K)?h--:I.get(se)>I.get(K)?(G.add(se),x(O)):(P.add(K),h--):(l($,s),h--)}for(;h--;){let O=i[h];D.has(O.key)||l(O,s)}for(;y;)x(k[y-1]);return st(C),k}function He(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Do(i){return typeof i=="object"&&i!==null?i:{}}var ng=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],og=new Set([...ng]);function We(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function M(i){i&&i.c()}function E(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),ps(()=>{let r=i.$$.on_mount.map(wa).filter(Wt);i.$$.on_destroy?i.$$.on_destroy.push(...r):st(r),i.$$.on_mount=[]}),o.forEach(ps)}function A(i,e){let t=i.$$;t.fragment!==null&&(dd(t.after_update),st(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function sg(i,e){i.$$.dirty[0]===-1&&(er.push(i),Ia(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function N(i,e,t,n,o,r,s=null,a=[-1]){let l=No;Co(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:Ds(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Ds(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...y)=>{let g=y.length?y[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&sg(i,m)),h}):[],u.update(),c=!0,st(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){rd();let m=ad(e.target);u.fragment&&u.fragment.l(m),m.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),E(i,e.target,e.anchor),sd(),at()}Co(l)}var lg;typeof HTMLElement=="function"&&(lg=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let s;return{c:function(){s=S("slot"),r!=="default"&&f(s,"name",r)},m:function(u,c){v(u,s,c)},d:function(u){u&&b(s)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=ud(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=Pa(s,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let s=Pa(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let s of this.$$l[r]){let a=this.$$c.$on(r,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=Pa(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function Pa(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var B=class{$$=void 0;$$set=void 0;$destroy(){A(this,1),this.$destroy=me}$on(e,t){if(!Wt(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!td(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var _d="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(_d);var Dx=require("@vkontakte/videoplayer-core"),Ao=require("@vkontakte/videoplayer-shared"),Ch=require("@vkontakte/videoplayer-statistics");var Ar=require("@vkontakte/videoplayer-shared");var ag={isMobile:void 0,defaultLanguage:Ar.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Ar.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},hd=i=>(0,Ar.fillWithDefault)(i,ag),gd=i=>Tr("ui-config",i),It=()=>Ir("ui-config");var _s="vk_player_debug_panel_opened";var bd="videoplayer",vd="videoplayer";var co={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},yd=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),kd=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),wd=new Set(["ShiftRight","ShiftLeft"]);var Cd=["TIMELINE"],hs=[...Cd,"GRAPH_BUTTON"],Ea=[...Cd,"PLAY_BUTTON"],xs=[...hs,"PLAY_BUTTON"];var $n=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))($n||{}),nr={xs:0,s:1,m:2,l:3,xl:4};var Mr=[];function qn(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=me){let t,n=new Set;function o(a){if(V(i,a)&&(i=a,t)){let l=!Mr.length;for(let u of n)u[1](),Mr.push(u,i);if(l){for(let u=0;u<Mr.length;u+=2)Mr[u][0](Mr[u+1]);Mr.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function Gt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return qn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=Wt(g)?g:me},y=o.map((g,T)=>jt(g,k=>{u[T]=k,c&=~(1<<T),l&&h()},()=>{c|=1<<T}));return l=!0,h(),function(){st(y),m(),l=!1}})}var gs=require("@vkontakte/videoplayer-shared"),Sd=require("@vkontakte/videoplayer-core"),Td=require("@vkontakte/videoplayer-statistics");var Hs="prod",or="1.1.54-dev.c752a02a.0";var rr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Id=Symbol("storeContext"),Pd=Symbol("microStoresContext"),Ed=(i,e)=>{Tr(Id,i),Tr(Pd,e),Hs==="dev"&&(window.app={store:i,microStores:e})},et=()=>{let i=Ir(Id);return(0,gs.assertNonNullable)(i,"Store context is empty!"),i},Vn=()=>{let i=Ir(Pd);return(0,gs.assertNonNullable)(i,"MicroStores context is empty!"),i},yt=(i,e)=>Aa(i,i.getValue(),e),Aa=(i,e,t)=>qn(e,n=>{let o=i.subscribe(r=>{n(r),t?.(r)});return()=>o.unsubscribe()}),Ad=(i,e,t)=>{let n=i.info,{width:o,height:r}=Ue(t.ui.playerSize),s=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${or} (core: ${Sd.VERSION}, stat: ${Td.VERSION}, shared: ${gs.VERSION})`,c=Ue(t.state.errorLog$),m=c.length?`
6
+ "use strict";var Uh=Object.create;var Bs=Object.defineProperty;var zh=Object.getOwnPropertyDescriptor;var Wh=Object.getOwnPropertyNames;var Kh=Object.getPrototypeOf,jh=Object.prototype.hasOwnProperty;var Gh=(i,e)=>{for(var t in e)Bs(i,t,{get:e[t],enumerable:!0})},$f=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Wh(e))!jh.call(i,o)&&o!==t&&Bs(i,o,{get:()=>e[o],enumerable:!(n=zh(e,o))||n.enumerable});return i};var ed=(i,e,t)=>(t=i!=null?Uh(Kh(i)):{},$f(e||!i||!i.__esModule?Bs(t,"default",{value:i,enumerable:!0}):t,i)),Yh=i=>$f(Bs({},"__esModule",{value:!0}),i);var Ny={};Gh(Ny,{ControlButtonType:()=>ks,GridTypes:()=>Jn,InterfaceLanguage:()=>es.InterfaceLanguage,MenuItemType:()=>vs,VERSION:()=>or,VKNumericLanguage:()=>es.VKNumericLanguage,VideoFormat:()=>ca.VideoFormat,VideoQuality:()=>ca.VideoQuality,loadVKLangPack:()=>es.loadVKLangPack,registerPlayerWebComponent:()=>By});module.exports=Yh(Ny);function me(){}function re(i,e){for(let t in e)i[t]=e[t];return i}function wa(i){return i()}function Ds(){return Object.create(null)}function st(i){i.forEach(wa)}function Wt(i){return typeof i=="function"}function R(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Ns;function ko(i,e){return i===e?!0:(Ns||(Ns=document.createElement("a")),Ns.href=e,i===Ns.href)}function td(i){return Object.keys(i).length===0}function jt(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function qe(i){let e;return jt(i,t=>e=t)(),e}function V(i,e,t){i.$$.on_destroy.push(jt(e,t))}function Le(i,e,t,n){if(i){let o=id(i,e,t,n);return i[0](o)}}function id(i,e,t,n){return i[1]&&n?re(t.ctx.slice(),i[1](n(e))):t.ctx}function Re(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ve(i,e,t,n,o,r){if(o){let s=id(e,t,n,r);i.p(s,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function we(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function nd(i){return i??""}function wr(i){return i&&Wt(i.destroy)?i.destroy:me}var fs=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Os=class i{_listeners="WeakMap"in fs?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};Os.entries="WeakMap"in fs?new WeakMap:void 0;var od=!1;function rd(){od=!0}function sd(){od=!1}function _(i,e){i.appendChild(e)}function be(i,e,t){let n=ld(i);if(!n.getElementById(e)){let o=S("style");o.id=e,o.textContent=t,Xh(n,o)}}function ld(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function Xh(i,e){return _(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function ti(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function S(i){return document.createElement(i)}function L(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function De(i){return document.createTextNode(i)}function j(){return De(" ")}function Qe(){return De("")}function Te(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ii(i){return function(e){return e.preventDefault(),i.call(this,e)}}function mt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function Ce(i,e){for(let t in e)f(i,t,e[t])}function ad(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function ni(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function z(i,e,t){i.classList.toggle(e,!!t)}function ud(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function At(i,e){return new i(e)}var Do;function wo(i){Do=i}function Cr(){if(!Do)throw new Error("Function called outside component initialization");return Do}function yt(i){Cr().$$.on_mount.push(i)}function Vn(i){Cr().$$.on_destroy.push(i)}function Sr(i,e){return Cr().$$.context.set(i,e),e}function Tr(i){return Cr().$$.context.get(i)}function ds(){return Cr().$$.context}function Bn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var er=[];var ve=[],Pr=[],Sa=[],fd=Promise.resolve(),Ta=!1;function Ia(){Ta||(Ta=!0,fd.then(at))}function fn(){return Ia(),fd}function ms(i){Pr.push(i)}function Ue(i){Sa.push(i)}var Ca=new Set,Ir=0;function at(){if(Ir!==0)return;let i=Do;do{try{for(;Ir<er.length;){let e=er[Ir];Ir++,wo(e),ng(e.$$)}}catch(e){throw er.length=0,Ir=0,e}for(wo(null),er.length=0,Ir=0;ve.length;)ve.pop()();for(let e=0;e<Pr.length;e+=1){let t=Pr[e];Ca.has(t)||(Ca.add(t),t())}Pr.length=0}while(er.length);for(;Sa.length;)Sa.pop()();Ta=!1,Ca.clear(),wo(i)}function ng(i){if(i.fragment!==null){i.update(),st(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(ms)}}function dd(i){let e=[],t=[];Pr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Pr=e}var Fs=new Set,tr;function ae(){tr={r:0,c:[],p:tr}}function ue(){tr.r||st(tr.c),tr=tr.p}function d(i,e){i&&i.i&&(Fs.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Fs.has(i))return;Fs.add(i),tr.c.push(()=>{Fs.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function _t(i){return i?.length!==void 0?i:Array.from(i)}function md(i,e){p(i,1,1,()=>{e.delete(i.key)})}function pd(i,e,t,n,o,r,s,a,l,u,c,m){let h=i.length,y=r.length,g=h,T={};for(;g--;)T[i[g].key]=g;let k=[],D=new Map,I=new Map,C=[];for(g=y;g--;){let O=m(o,r,g),$=t(O),le=s.get($);le?n&&C.push(()=>le.p(O,e)):(le=u($,O),le.c()),D.set($,k[g]=le),$ in T&&I.set($,Math.abs(g-T[$]))}let P=new Set,G=new Set;function x(O){d(O,1),O.m(a,c),s.set(O.key,O),c=O.first,y--}for(;h&&y;){let O=k[y-1],$=i[h-1],le=O.key,K=$.key;O===$?(c=O.first,h--,y--):D.has(K)?!s.has(le)||P.has(le)?x(O):G.has(K)?h--:I.get(le)>I.get(K)?(G.add(le),x(O)):(P.add(K),h--):(l($,s),h--)}for(;h--;){let O=i[h];D.has(O.key)||l(O,s)}for(;y;)x(k[y-1]);return st(C),k}function He(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Oo(i){return typeof i=="object"&&i!==null?i:{}}var og=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],rg=new Set([...og]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function M(i){i&&i.c()}function E(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),ms(()=>{let r=i.$$.on_mount.map(wa).filter(Wt);i.$$.on_destroy?i.$$.on_destroy.push(...r):st(r),i.$$.on_mount=[]}),o.forEach(ms)}function A(i,e){let t=i.$$;t.fragment!==null&&(dd(t.after_update),st(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function lg(i,e){i.$$.dirty[0]===-1&&(er.push(i),Ia(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function N(i,e,t,n,o,r,s=null,a=[-1]){let l=Do;wo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:Ds(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Ds(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...y)=>{let g=y.length?y[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&lg(i,m)),h}):[],u.update(),c=!0,st(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){rd();let m=ad(e.target);u.fragment&&u.fragment.l(m),m.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),E(i,e.target,e.anchor),sd(),at()}wo(l)}var ag;typeof HTMLElement=="function"&&(ag=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let s;return{c:function(){s=S("slot"),r!=="default"&&f(s,"name",r)},m:function(u,c){v(u,s,c)},d:function(u){u&&b(s)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=ud(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=Pa(s,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let s=Pa(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let s of this.$$l[r]){let a=this.$$c.$on(r,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=Pa(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function Pa(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var B=class{$$=void 0;$$set=void 0;$destroy(){A(this,1),this.$destroy=me}$on(e,t){if(!Wt(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!td(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var _d="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(_d);var Ox=require("@vkontakte/videoplayer-core"),Eo=require("@vkontakte/videoplayer-shared"),Ch=require("@vkontakte/videoplayer-statistics");var Er=require("@vkontakte/videoplayer-shared");var ug={isMobile:void 0,defaultLanguage:Er.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Er.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},hd=i=>(0,Er.fillWithDefault)(i,ug),gd=i=>Sr("ui-config",i),It=()=>Tr("ui-config");var ps="vk_player_debug_panel_opened";var bd="videoplayer",vd="videoplayer";var fo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},yd=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),kd=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),wd=new Set(["ShiftRight","ShiftLeft"]);var Cd=["TIMELINE"],_s=[...Cd,"GRAPH_BUTTON"],Ea=[...Cd,"PLAY_BUTTON"],xs=[..._s,"PLAY_BUTTON"];var Jn=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Jn||{}),nr={xs:0,s:1,m:2,l:3,xl:4};var Ar=[];function qn(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=me){let t,n=new Set;function o(a){if(R(i,a)&&(i=a,t)){let l=!Ar.length;for(let u of n)u[1](),Ar.push(u,i);if(l){for(let u=0;u<Ar.length;u+=2)Ar[u][0](Ar[u+1]);Ar.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function Gt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return qn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=Wt(g)?g:me},y=o.map((g,T)=>jt(g,k=>{u[T]=k,c&=~(1<<T),l&&h()},()=>{c|=1<<T}));return l=!0,h(),function(){st(y),m(),l=!1}})}var hs=require("@vkontakte/videoplayer-shared"),Sd=require("@vkontakte/videoplayer-core"),Td=require("@vkontakte/videoplayer-statistics");var Hs="prod",or="1.1.54-dev.ec32eef5.0";var rr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Id=Symbol("storeContext"),Pd=Symbol("microStoresContext"),Ed=(i,e)=>{Sr(Id,i),Sr(Pd,e),Hs==="dev"&&(window.app={store:i,microStores:e})},et=()=>{let i=Tr(Id);return(0,hs.assertNonNullable)(i,"Store context is empty!"),i},Nn=()=>{let i=Tr(Pd);return(0,hs.assertNonNullable)(i,"MicroStores context is empty!"),i},kt=(i,e)=>Aa(i,i.getValue(),e),Aa=(i,e,t)=>qn(e,n=>{let o=i.subscribe(r=>{n(r),t?.(r)});return()=>o.unsubscribe()}),Ad=(i,e,t)=>{let n=i.info,{width:o,height:r}=qe(t.ui.playerSize),s=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${or} (core: ${Sd.VERSION}, stat: ${Td.VERSION}, shared: ${hs.VERSION})`,c=qe(t.state.errorLog$),m=c.length?`
7
7
  `+c.map((D,I)=>{let C=`${I}) Type: ${D.id}
8
8
  `,P=`Message: ${D.message} (${D.thrown})
9
9
  `,G=`Trace: ${D.thrown?.stack}
10
10
  `;return C+P+G}).join(`
11
- `):void 0,h=t.state.isAudioDisabled?"disabled":Ue(t.state.isAudioAvailable$)?void 0:"unavailable",y=i.info.currentVideoStream$.getValue(),g=i.info.currentAudioStream$.getValue(),T=[];y&&T.push(`Video: ${y?.codec??""}`+(y?.hdr?" (HDR)":"")),g&&T.push(`Audio: ${g?.codec??""}`+(g?.language?` (${g.language})`:""));let k={Version:u,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),VSID:Ue(t.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${s}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:T.join(", "),Quality:`${l} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:h,Position:`${Ue(t.state.positionExact$)}s`,State:`${Ue(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${r}`,URL:window.location.href,Errors:m};return Object.entries(k).filter(([D,I])=>I!==void 0).map(([D,I])=>`${D}: ${I}`).join(`
12
- `)},Md=(i,e,t)=>{let n=i.info,{width:o,height:r}=Ue(t.ui.playerSize),s={version:or,viewport:`${o}x${r}`,volume:Math.round(Ue(t.state.volume$)*100)};s.id=t.videoId,n.currentFormat$.getValue()&&(s.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(s.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(s.videoSize=`${u.width}x${u.height}`);let c=n.currentBuffer$.getValue(),m=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();c&&(m&&h?s.buffer=c.end-h:s.buffer=Math.max(c.end-Ue(t.state.positionExact$),0));let y=n.throughputEstimation$.getValue();y&&(s.speed=y);let g=n.videoBitrate$.getValue();g&&(s.bitrate=g);let T=n.liveLatency$.getValue();T&&(s.liveLatency=T);let k=n.currentVideoSegmentLength$.getValue();k&&(s.currentVideoSegmentLength=k);let D=n.currentAudioSegmentLength$.getValue();D&&(s.currentAudioSegmentLength=D);let I=Ue(t.vsid);typeof I=="string"&&(s.vsid=I);let C=i.info.currentVideoStream$.getValue()?.codec;C&&(s.videoCodec=C);let P=i.info.currentAudioStream$.getValue()?.codec;P&&(s.audioCodec=P),i.info.currentVideoStream$.getValue()?.hdr&&(s.hdr=!0);let x=i.info.currentAudioStream$.getValue()?.language;return x&&(s.audioLanguage=x),s},Ld=(i,e)=>rr(i,e,"mp4"),Vd=i=>!i.type,Rd=i=>!!i.type,Bd=()=>{let e=[],t=0;return{add:(n,o)=>{e[t]=[n,o],t=(t+1)%10},find:n=>e.find(([o])=>o===n)}},qs=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let t=await fetch(e,{signal:this.destroyController.signal});if(t.ok)return await t.text();throw t}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var Di=require("@vkontakte/videoplayer-shared"),$9=require("@vkontakte/videoplayer-core"),Nd="vk_player_prefer_traffic_saving_enabled",Dd="vk_player_preferred_volume",Od="vk_player_prefer_volume_mute",Ma="vk_player_preferred_quality",Fd="vk_player_preferred_stream_language",xd="vk_player_preferred_rate",Hd="vk_player_preferred_autoplay_next",qd=i=>i>1?1:i<0?0:i,La=i=>Di.safeStorage.set(Dd,qd(i).toString(10)),Us=()=>{let i=Di.safeStorage.get(Dd);return(0,Di.isNullable)(i)?void 0:qd(parseFloat(i))},Ud=(i,e)=>Di.safeStorage.set(Ma,JSON.stringify({videoId:i,value:e})),Va=()=>Di.safeStorage.remove(Ma),zd=i=>{let e=Di.safeStorage.get(Ma);if((0,Di.isNullable)(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){Va();return}return n},Ra=(i,e)=>{e?Di.safeStorage.set(i,"true"):Di.safeStorage.remove(i)},Ba=i=>Di.safeStorage.get(i)==="true",zs=i=>Ra(Od,i),Wd=()=>Ba(Od),Kd=i=>Ra(Nd,i),jd=()=>Ba(Nd),Gd=()=>Di.safeStorage.get(Fd),Na=i=>Di.safeStorage.set(Fd,i),Yd=i=>Di.safeStorage.set(xd,JSON.stringify({rate:i})),Qd=()=>{let i=Di.safeStorage.get(xd);if((0,Di.isNullable)(i))return;let{rate:e}=JSON.parse(i);return e},Zd=i=>Ra(Hd,i),Xd=()=>Ba(Hd);var W_=require("@vkontakte/videoplayer-core");function ug(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I=i[2].default,C=Le(I,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],G={};for(let x=0;x<P.length;x+=1)G=re(G,P[x]);return{c(){e=L("svg"),C&&C.c(),t=L("g"),n=L("path"),o=L("path"),r=L("path"),s=L("path"),a=L("path"),l=L("defs"),u=L("filter"),c=L("feFlood"),m=L("feColorMatrix"),h=L("feOffset"),y=L("feGaussianBlur"),g=L("feColorMatrix"),T=L("feBlend"),k=L("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"d","M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z"),f(r,"clip-rule","evenodd"),f(s,"fill","#fff"),f(s,"d","M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"),f(a,"stroke","#000"),f(a,"stroke-linecap","round"),f(a,"stroke-linejoin","round"),f(a,"stroke-opacity",".12"),f(a,"stroke-width",".5"),f(a,"d","m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"),f(t,"filter","url(#a)"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(y,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(T,"in2","BackgroundImageFix"),f(T,"result","effect1_dropShadow_618_12297"),f(k,"in","SourceGraphic"),f(k,"in2","effect1_dropShadow_618_12297"),f(k,"result","shape"),f(u,"id","a"),f(u,"width","75"),f(u,"height","44"),f(u,"x",".5"),f(u,"y",".5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),Ce(e,G)},m(x,O){v(x,e,O),C&&C.m(e,null),_(e,t),_(t,n),_(t,o),_(t,r),_(t,s),_(t,a),_(e,l),_(l,u),_(u,c),_(u,m),_(u,h),_(u,y),_(u,g),_(u,T),_(u,k),D=!0},p(x,[O]){C&&C.p&&(!D||O&2)&&Re(C,I,x,x[1],D?Ve(I,x[1],O,null):Be(x[1]),null),Ce(e,G=He(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},O&1&&x[0]]))},i(x){D||(d(C,x),D=!0)},o(x){p(C,x),D=!1},d(x){x&&b(e),C&&C.d(x)}}}function cg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Da=class extends B{constructor(e){super(),N(this,e,cg,ug,V,{})}},Ws=Da;var Lr=require("@vkontakte/videoplayer-shared");var fg={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443 \u0447\u0435\u0440\u0435\u0437 {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E"},Jd=fg;var dg={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Ads can be skipped in {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video"},$d=dg;var So=new Map;So.set(Lr.InterfaceLanguage.EN,$d);So.set(Lr.InterfaceLanguage.RU,Jd);var e1=new Map,Oa=({language:i,pack:e,fallback:t})=>{if(So.has(i)){let n=So.get(i);So.set(i,{...n,...e})}else So.set(i,e);e1.set(i,t)},Fa=i=>So.has(i),xa=(i,e,t,n)=>{let r=So.get(i)?.[e];if((0,Lr.isNullable)(r)){let s=e1.get(i)??n;r=(s?So.get(s):void 0)?.[e]}return(0,Lr.isNullable)(r)?e+Object.values(t??{}).join(" "):t?r.replaceAll(/{(\w+?)}/g,(s,a)=>t[a]??""):r},W=(i,e)=>{let{interfaceLanguage$:t}=et(),n=Ue(t),o=It();return xa(n,i,e,o.defaultLanguage)};var vk=require("@vkontakte/videoplayer-core");var Vr;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(Vr||(Vr={}));var mg=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,pg=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,_g=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ks="?",hg="X-Sentry-Auth",gg=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function bg(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
13
- `),n,o;for(let r=0;r<t.length;++r){if(n=mg.exec(t[r]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||Ks,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=_g.exec(t[r]))o={filename:n[2],function:n[1]||Ks,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=pg.exec(t[r]))r===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||Ks,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=Ks),e.push(o)}return e.length?{value:t1(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function t1(i){return(i&&i.message||"No error message").split(`
14
- `).filter(t=>!!t)[0]}function vg(i){try{let e=bg(i);if(e)return e}catch{}return{value:t1(i),type:i&&i.name,stacktrace:{frames:[]}}}function yg(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var js=class{constructor(e){if(e&&e.dsn){let t=gg.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),r=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(r?"/"+r:"")+"/api/"+o.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[vg(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let t=new XMLHttpRequest;t.open("POST",this.apiUrl,!0),t.setRequestHeader("Content-type","application/json"),t.setRequestHeader(hg,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:yg(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function i1(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function kg(){return window}var Gs=class i extends js{constructor(e,t=kg()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:r=u=>u,blacklistUrls:s=[],ignoreErrors:a=[],release:l=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=r,this.blacklistUrls=s,this.ignoreErrors=a,this.release=l}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new i({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send({...this.getRequestBlank(),message:e,level:t})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(t=>this.ignoreErrors.some(n=>i1(t,n))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>i1(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch{return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],r=Array.isArray(o)?o:null,s=e[n],a=Array.isArray(s)?s:null;return{...t,[n]:r||a?[...r||[],...a||[]]:{...typeof o!="string"?o:{},...typeof s!="string"?s:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}};var sr=require("@vkontakte/videoplayer-shared");var Ys=null,lr=class{constructor(e,t,n={}){!Ys&&e.dsn&&(this.sentryClient=new Gs({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new sr.Subscription,this.options=e,this.context=n,Ys=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),Ys=null}logIError(e,t=!1){e.thrown&&this.report(e.thrown,{fatal:t,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,t={},n={}){let{sentryClient:o,context:r,options:s}=this,{sampleRate:a=0,whiteErrorIdList:l,whiteErrorCategoryList:u=[],blackErrorIdList:c,blackErrorCategoryList:m}=s,{errorType:h,category:y}=t;if((0,sr.isNonNullable)(y)&&m.includes(y)||(0,sr.isNonNullable)(h)&&c.includes(h))return;if(Math.random()<=a||(0,sr.isNonNullable)(y)&&u.includes(y)||(0,sr.isNonNullable)(h)&&l.includes(h)){Object.keys(t).length&&o.setTags({version:this.version,...t}),(Object.keys(r).length||Object.keys(n).length)&&o.setExtras({...r,...n});try{h&&o.captureMessage(h,t.fatal?Vr.fatal:Vr.error),o.report(e)}catch(T){console.error(T)}}}static getInstance(){return Ys}};var Qs=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e?.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Zs=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),n1=i=>{let e=i;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},bs=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},Oo=()=>!!bs(),Xs=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},Js=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},o1=i=>{let e=window.screen;return(async o=>e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject())(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};var Ha=require("@vkontakte/videoplayer-shared"),r1=()=>({title:W("hotkey_map_modal_title"),closeBtnText:W("hotkey_map_modal_close_btn_text"),groups:[{title:W("hotkey_map_group_title_common"),items:[{description:W("hotkey_map_item_mute_description"),value:W("hotkey_map_item_mute_value")},{description:W("hotkey_map_item_volume_up_description"),value:W("hotkey_map_item_volume_up_value")},{description:W("hotkey_map_item_volume_down_description"),value:W("hotkey_map_item_volume_down_value")},{description:W("hotkey_map_item_pip_description"),value:W("hotkey_map_item_pip_value")},{description:W("hotkey_map_item_full_screen_description"),value:W("hotkey_map_item_full_screen_value")},{description:W("hotkey_map_item_show_context_menu_description"),value:W("hotkey_map_item_show_context_menu_value")},{description:W("hotkey_map_item_show_hotkey_map_description"),value:W("hotkey_map_item_show_hotkey_map_value")}]},{title:W("hotkey_map_group_title_playback"),items:[{description:W("hotkey_map_item_play_toggle_description"),value:W("hotkey_map_item_play_toggle_value")},{description:W("hotkey_map_item_seek_backward_description"),value:W("hotkey_map_item_seek_backward_value")},{description:W("hotkey_map_item_seek_forward_description"),value:W("hotkey_map_item_seek_forward_value")},{description:W("hotkey_map_item_fast_seek_backward_description"),value:W("hotkey_map_item_fast_seek_backward_value")},{description:W("hotkey_map_item_fast_seek_forward_description"),value:W("hotkey_map_item_fast_seek_forward_value")},{description:W("hotkey_map_item_rate_down_description"),value:W("hotkey_map_item_rate_down_value")},{description:W("hotkey_map_item_rate_up_description"),value:W("hotkey_map_item_rate_up_value")},{description:W("hotkey_map_item_prev_frame_description"),value:W("hotkey_map_item_prev_frame_value")},{description:W("hotkey_map_item_next_frame_description"),value:W("hotkey_map_item_next_frame_value")},{description:W("hotkey_map_item_jump_seek_description"),value:W("hotkey_map_item_jump_seek_value")}]},{title:W("hotkey_map_group_title_subtitles"),items:[{description:W("hotkey_map_item_subtitles_toggle_description"),value:W("hotkey_map_item_subtitles_toggle_value")}]},{title:W("hotkey_map_group_title_episodes"),items:[{description:W("hotkey_map_item_prev_episode_description"),value:Ha.clientChecker.isApple?W("hotkey_map_item_prev_episode_mac_value"):W("hotkey_map_item_prev_episode_pc_value")},{description:W("hotkey_map_item_next_episode_description"),value:Ha.clientChecker.isApple?W("hotkey_map_item_next_episode_mac_value"):W("hotkey_map_item_next_episode_pc_value")}]}]});var Rr=require("@vkontakte/videoplayer-shared");var ar=class{constructor(){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,Rr.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Rr.ValueSubject(this.isActive()),type:0}}isSupported(){return document.pictureInPictureEnabled&&!Rr.clientChecker.isYandex}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){if(!(!this.isSupported()||this.isActive()))try{await this.videoElement?.requestPictureInPicture()}catch{this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&(this.videoElement=this.playerContainer?.querySelector("video"))}registryEventHandlers(){this.videoElement?.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){this.videoElement?.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n?.removeEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.leavepictureinpicture?.(e),this.playerDummyElement?.$destroy()}onResize(e){this.externalEventHandlers.resize?.(e)}};function ur(i){return i instanceof ar}function wg(i){let e=et();return vt(()=>{e.getAdmanWrapper().startPostroll()}),[]}var za=class extends B{constructor(e){super(),N(this,e,wg,null,V,{})}},s1=za;var l1=require("@vkontakte/videoplayer-shared");function Cg(i){be(i,"svelte-1k4i25s",".container.svelte-1k4i25s.svelte-1k4i25s{position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s}.container-mobile.svelte-1k4i25s.svelte-1k4i25s{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.svelte-1k4i25s.svelte-1k4i25s{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.svelte-1k4i25s.svelte-1k4i25s{width:86px}.skippable.svelte-1k4i25s.svelte-1k4i25s{cursor:pointer;color:var(--white)}.skippable.svelte-1k4i25s.svelte-1k4i25s:hover{color:rgba(255, 255, 255, .75)}.skippable.svelte-1k4i25s:hover .icon.svelte-1k4i25s{fill:rgba(255, 255, 255, .75)}")}function Sg(i){let e=W("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=De(e)},m(n,o){v(n,t,o)},p(n,o){o&3&&e!==(e=W("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&je(t,e)},d(n){n&&b(t)}}}function Tg(i){let e,t=W("skip_ads_now")+"",n,o,r,s,a,l;return{c(){e=S("div"),n=De(t),o=j(),r=L("svg"),s=L("path"),f(s,"fill-rule","evenodd"),f(s,"clip-rule","evenodd"),f(s,"d","M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"),f(r,"class","icon svelte-1k4i25s"),f(r,"width","7"),f(r,"height","12"),f(r,"viewBox","0 0 7 12"),f(r,"fill","none"),f(r,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","skip svelte-1k4i25s")},m(u,c){v(u,e,c),_(e,n),_(e,o),_(e,r),_(r,s),a||(l=Te(e,"click",mt(function(){Wt(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,c){i=u},d(u){u&&b(e),a=!1,l()}}}function Ig(i){let e;function t(r,s){return r[3]?Tg:Sg}let n=t(i,-1),o=n(i);return{c(){e=S("div"),o.c(),f(e,"class","container svelte-1k4i25s"),z(e,"container-mobile",i[4]),z(e,"skippable",i[3])},m(r,s){v(r,e,s),o.m(e,null)},p(r,[s]){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e,null))),s&16&&z(e,"container-mobile",r[4]),s&8&&z(e,"skippable",r[3])},i:me,o:me,d(r){r&&b(e),o.d()}}}function Pg(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:s=l1.noop}=e,l=et().ui.isMobile;R(i,l,c=>t(4,n=c));let u;return i.$$set=c=>{"position"in c&&t(0,o=c.position),"secondsToWatchBeforeSkip"in c&&t(1,r=c.secondsToWatchBeforeSkip),"skipAd"in c&&t(2,s=c.skipAd)},i.$$.update=()=>{i.$$.dirty&3&&t(3,u=o>0&&o>=r)},[o,r,s,u,n,l]}var Wa=class extends B{constructor(e){super(),N(this,e,Pg,Ig,V,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},Cg)}},a1=Wa;function Eg(i){be(i,"svelte-1wy3dql","button.svelte-1wy3dql{position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black}")}function Ag(i){let e;return{c(){e=S("button"),e.textContent=`${W("visit_advertiser")}`,f(e,"class","svelte-1wy3dql")},m(t,n){v(t,e,n)},p:me,i:me,o:me,d(t){t&&b(e)}}}var Ka=class extends B{constructor(e){super(),N(this,e,null,Ag,V,{},Eg)}},u1=Ka;function Mg(i){be(i,"svelte-354ajf",`.container.svelte-354ajf{width:100%;height:100%}.top-gradient-mobile.svelte-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
11
+ `):void 0,h=t.state.isAudioDisabled?"disabled":qe(t.state.isAudioAvailable$)?void 0:"unavailable",y=i.info.currentVideoStream$.getValue(),g=i.info.currentAudioStream$.getValue(),T=[];y&&T.push(`Video: ${y?.codec??""}`+(y?.hdr?" (HDR)":"")),g&&T.push(`Audio: ${g?.codec??""}`+(g?.language?` (${g.language})`:""));let k={Version:u,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),VSID:qe(t.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${s}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:T.join(", "),Quality:`${l} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:h,Position:`${qe(t.state.positionExact$)}s`,State:`${qe(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${r}`,URL:window.location.href,Errors:m};return Object.entries(k).filter(([D,I])=>I!==void 0).map(([D,I])=>`${D}: ${I}`).join(`
12
+ `)},Md=(i,e,t)=>{let n=i.info,{width:o,height:r}=qe(t.ui.playerSize),s={version:or,viewport:`${o}x${r}`,volume:Math.round(qe(t.state.volume$)*100)};s.id=t.videoId,n.currentFormat$.getValue()&&(s.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(s.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(s.videoSize=`${u.width}x${u.height}`);let c=n.currentBuffer$.getValue(),m=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();c&&(m&&h?s.buffer=c.end-h:s.buffer=Math.max(c.end-qe(t.state.positionExact$),0));let y=n.throughputEstimation$.getValue();y&&(s.speed=y);let g=n.videoBitrate$.getValue();g&&(s.bitrate=g);let T=n.liveLatency$.getValue();T&&(s.liveLatency=T);let k=n.currentVideoSegmentLength$.getValue();k&&(s.currentVideoSegmentLength=k);let D=n.currentAudioSegmentLength$.getValue();D&&(s.currentAudioSegmentLength=D);let I=qe(t.vsid);typeof I=="string"&&(s.vsid=I);let C=i.info.currentVideoStream$.getValue()?.codec;C&&(s.videoCodec=C);let P=i.info.currentAudioStream$.getValue()?.codec;P&&(s.audioCodec=P),i.info.currentVideoStream$.getValue()?.hdr&&(s.hdr=!0);let x=i.info.currentAudioStream$.getValue()?.language;return x&&(s.audioLanguage=x),s},Ld=(i,e)=>rr(i,e,"mp4"),Rd=i=>!i.type,Vd=i=>!!i.type,Bd=()=>{let e=[],t=0;return{add:(n,o)=>{e[t]=[n,o],t=(t+1)%10},find:n=>e.find(([o])=>o===n)}},qs=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let t=await fetch(e,{signal:this.destroyController.signal});if(t.ok)return await t.text();throw t}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var Oi=require("@vkontakte/videoplayer-shared"),ek=require("@vkontakte/videoplayer-core"),Nd="vk_player_prefer_traffic_saving_enabled",Dd="vk_player_preferred_volume",Od="vk_player_prefer_volume_mute",Ma="vk_player_preferred_quality",Fd="vk_player_preferred_stream_language",xd="vk_player_preferred_rate",Hd="vk_player_preferred_autoplay_next",qd=i=>i>1?1:i<0?0:i,La=i=>Oi.safeStorage.set(Dd,qd(i).toString(10)),Us=()=>{let i=Oi.safeStorage.get(Dd);return(0,Oi.isNullable)(i)?void 0:qd(parseFloat(i))},Ud=(i,e)=>Oi.safeStorage.set(Ma,JSON.stringify({videoId:i,value:e})),Ra=()=>Oi.safeStorage.remove(Ma),zd=i=>{let e=Oi.safeStorage.get(Ma);if((0,Oi.isNullable)(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){Ra();return}return n},Va=(i,e)=>{e?Oi.safeStorage.set(i,"true"):Oi.safeStorage.remove(i)},Ba=i=>Oi.safeStorage.get(i)==="true",zs=i=>Va(Od,i),Wd=()=>Ba(Od),Kd=i=>Va(Nd,i),jd=()=>Ba(Nd),Gd=()=>Oi.safeStorage.get(Fd),Na=i=>Oi.safeStorage.set(Fd,i),Yd=i=>Oi.safeStorage.set(xd,JSON.stringify({rate:i})),Qd=()=>{let i=Oi.safeStorage.get(xd);if((0,Oi.isNullable)(i))return;let{rate:e}=JSON.parse(i);return e},Zd=i=>Va(Hd,i),Xd=()=>Ba(Hd);var W_=require("@vkontakte/videoplayer-core");function cg(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I=i[2].default,C=Le(I,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],G={};for(let x=0;x<P.length;x+=1)G=re(G,P[x]);return{c(){e=L("svg"),C&&C.c(),t=L("g"),n=L("path"),o=L("path"),r=L("path"),s=L("path"),a=L("path"),l=L("defs"),u=L("filter"),c=L("feFlood"),m=L("feColorMatrix"),h=L("feOffset"),y=L("feGaussianBlur"),g=L("feColorMatrix"),T=L("feBlend"),k=L("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"d","M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z"),f(r,"clip-rule","evenodd"),f(s,"fill","#fff"),f(s,"d","M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"),f(a,"stroke","#000"),f(a,"stroke-linecap","round"),f(a,"stroke-linejoin","round"),f(a,"stroke-opacity",".12"),f(a,"stroke-width",".5"),f(a,"d","m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"),f(t,"filter","url(#a)"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(y,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(T,"in2","BackgroundImageFix"),f(T,"result","effect1_dropShadow_618_12297"),f(k,"in","SourceGraphic"),f(k,"in2","effect1_dropShadow_618_12297"),f(k,"result","shape"),f(u,"id","a"),f(u,"width","75"),f(u,"height","44"),f(u,"x",".5"),f(u,"y",".5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),Ce(e,G)},m(x,O){v(x,e,O),C&&C.m(e,null),_(e,t),_(t,n),_(t,o),_(t,r),_(t,s),_(t,a),_(e,l),_(l,u),_(u,c),_(u,m),_(u,h),_(u,y),_(u,g),_(u,T),_(u,k),D=!0},p(x,[O]){C&&C.p&&(!D||O&2)&&Ve(C,I,x,x[1],D?Re(I,x[1],O,null):Be(x[1]),null),Ce(e,G=He(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},O&1&&x[0]]))},i(x){D||(d(C,x),D=!0)},o(x){p(C,x),D=!1},d(x){x&&b(e),C&&C.d(x)}}}function fg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Da=class extends B{constructor(e){super(),N(this,e,fg,cg,R,{})}},Ws=Da;var Mr=require("@vkontakte/videoplayer-shared");var dg={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443 \u0447\u0435\u0440\u0435\u0437 {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E"},Jd=dg;var mg={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Ads can be skipped in {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video"},$d=mg;var Co=new Map;Co.set(Mr.InterfaceLanguage.EN,$d);Co.set(Mr.InterfaceLanguage.RU,Jd);var e1=new Map,Oa=({language:i,pack:e,fallback:t})=>{if(Co.has(i)){let n=Co.get(i);Co.set(i,{...n,...e})}else Co.set(i,e);e1.set(i,t)},Fa=i=>Co.has(i),xa=(i,e,t,n)=>{let r=Co.get(i)?.[e];if((0,Mr.isNullable)(r)){let s=e1.get(i)??n;r=(s?Co.get(s):void 0)?.[e]}return(0,Mr.isNullable)(r)?e+Object.values(t??{}).join(" "):t?r.replaceAll(/{(\w+?)}/g,(s,a)=>t[a]??""):r},W=(i,e)=>{let{interfaceLanguage$:t}=et(),n=qe(t),o=It();return xa(n,i,e,o.defaultLanguage)};var yk=require("@vkontakte/videoplayer-core");var Lr;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(Lr||(Lr={}));var pg=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,_g=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,hg=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ks="?",gg="X-Sentry-Auth",bg=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function vg(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
13
+ `),n,o;for(let r=0;r<t.length;++r){if(n=pg.exec(t[r]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||Ks,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=hg.exec(t[r]))o={filename:n[2],function:n[1]||Ks,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=_g.exec(t[r]))r===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||Ks,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=Ks),e.push(o)}return e.length?{value:t1(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function t1(i){return(i&&i.message||"No error message").split(`
14
+ `).filter(t=>!!t)[0]}function yg(i){try{let e=vg(i);if(e)return e}catch{}return{value:t1(i),type:i&&i.name,stacktrace:{frames:[]}}}function kg(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var js=class{constructor(e){if(e&&e.dsn){let t=bg.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),r=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(r?"/"+r:"")+"/api/"+o.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[yg(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let t=new XMLHttpRequest;t.open("POST",this.apiUrl,!0),t.setRequestHeader("Content-type","application/json"),t.setRequestHeader(gg,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:kg(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function i1(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function wg(){return window}var Gs=class i extends js{constructor(e,t=wg()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:r=u=>u,blacklistUrls:s=[],ignoreErrors:a=[],release:l=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=r,this.blacklistUrls=s,this.ignoreErrors=a,this.release=l}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new i({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send({...this.getRequestBlank(),message:e,level:t})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(t=>this.ignoreErrors.some(n=>i1(t,n))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>i1(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch{return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],r=Array.isArray(o)?o:null,s=e[n],a=Array.isArray(s)?s:null;return{...t,[n]:r||a?[...r||[],...a||[]]:{...typeof o!="string"?o:{},...typeof s!="string"?s:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}};var sr=require("@vkontakte/videoplayer-shared");var Ys=null,lr=class{constructor(e,t,n={}){!Ys&&e.dsn&&(this.sentryClient=new Gs({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new sr.Subscription,this.options=e,this.context=n,Ys=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),Ys=null}logIError(e,t=!1){e.thrown&&this.report(e.thrown,{fatal:t,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,t={},n={}){let{sentryClient:o,context:r,options:s}=this,{sampleRate:a=0,whiteErrorIdList:l,whiteErrorCategoryList:u=[],blackErrorIdList:c,blackErrorCategoryList:m}=s,{errorType:h,category:y}=t;if((0,sr.isNonNullable)(y)&&m.includes(y)||(0,sr.isNonNullable)(h)&&c.includes(h))return;if(Math.random()<=a||(0,sr.isNonNullable)(y)&&u.includes(y)||(0,sr.isNonNullable)(h)&&l.includes(h)){Object.keys(t).length&&o.setTags({version:this.version,...t}),(Object.keys(r).length||Object.keys(n).length)&&o.setExtras({...r,...n});try{h&&o.captureMessage(h,t.fatal?Lr.fatal:Lr.error),o.report(e)}catch(T){console.error(T)}}}static getInstance(){return Ys}};var Qs=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e?.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Zs=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),n1=i=>{let e=i;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},gs=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},Fo=()=>!!gs(),Xs=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},Js=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},o1=i=>{let e=window.screen;return(async o=>e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject())(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};var Ha=require("@vkontakte/videoplayer-shared"),r1=()=>({title:W("hotkey_map_modal_title"),closeBtnText:W("hotkey_map_modal_close_btn_text"),groups:[{title:W("hotkey_map_group_title_common"),items:[{description:W("hotkey_map_item_mute_description"),value:W("hotkey_map_item_mute_value")},{description:W("hotkey_map_item_volume_up_description"),value:W("hotkey_map_item_volume_up_value")},{description:W("hotkey_map_item_volume_down_description"),value:W("hotkey_map_item_volume_down_value")},{description:W("hotkey_map_item_pip_description"),value:W("hotkey_map_item_pip_value")},{description:W("hotkey_map_item_full_screen_description"),value:W("hotkey_map_item_full_screen_value")},{description:W("hotkey_map_item_show_context_menu_description"),value:W("hotkey_map_item_show_context_menu_value")},{description:W("hotkey_map_item_show_hotkey_map_description"),value:W("hotkey_map_item_show_hotkey_map_value")}]},{title:W("hotkey_map_group_title_playback"),items:[{description:W("hotkey_map_item_play_toggle_description"),value:W("hotkey_map_item_play_toggle_value")},{description:W("hotkey_map_item_seek_backward_description"),value:W("hotkey_map_item_seek_backward_value")},{description:W("hotkey_map_item_seek_forward_description"),value:W("hotkey_map_item_seek_forward_value")},{description:W("hotkey_map_item_fast_seek_backward_description"),value:W("hotkey_map_item_fast_seek_backward_value")},{description:W("hotkey_map_item_fast_seek_forward_description"),value:W("hotkey_map_item_fast_seek_forward_value")},{description:W("hotkey_map_item_rate_down_description"),value:W("hotkey_map_item_rate_down_value")},{description:W("hotkey_map_item_rate_up_description"),value:W("hotkey_map_item_rate_up_value")},{description:W("hotkey_map_item_prev_frame_description"),value:W("hotkey_map_item_prev_frame_value")},{description:W("hotkey_map_item_next_frame_description"),value:W("hotkey_map_item_next_frame_value")},{description:W("hotkey_map_item_jump_seek_description"),value:W("hotkey_map_item_jump_seek_value")}]},{title:W("hotkey_map_group_title_subtitles"),items:[{description:W("hotkey_map_item_subtitles_toggle_description"),value:W("hotkey_map_item_subtitles_toggle_value")}]},{title:W("hotkey_map_group_title_episodes"),items:[{description:W("hotkey_map_item_prev_episode_description"),value:Ha.clientChecker.isApple?W("hotkey_map_item_prev_episode_mac_value"):W("hotkey_map_item_prev_episode_pc_value")},{description:W("hotkey_map_item_next_episode_description"),value:Ha.clientChecker.isApple?W("hotkey_map_item_next_episode_mac_value"):W("hotkey_map_item_next_episode_pc_value")}]}]});var Rr=require("@vkontakte/videoplayer-shared");var ar=class{constructor(){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,Rr.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Rr.ValueSubject(this.isActive()),type:0}}isSupported(){return document.pictureInPictureEnabled&&!Rr.clientChecker.isYandex}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){if(!(!this.isSupported()||this.isActive()))try{await this.videoElement?.requestPictureInPicture()}catch{this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&(this.videoElement=this.playerContainer?.querySelector("video"))}registryEventHandlers(){this.videoElement?.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){this.videoElement?.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n?.removeEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.leavepictureinpicture?.(e),this.playerDummyElement?.$destroy()}onResize(e){this.externalEventHandlers.resize?.(e)}};function ur(i){return i instanceof ar}function Cg(i){let e=et();return yt(()=>{e.getAdmanWrapper().startPostroll()}),[]}var za=class extends B{constructor(e){super(),N(this,e,Cg,null,R,{})}},s1=za;var l1=require("@vkontakte/videoplayer-shared");function Sg(i){be(i,"svelte-1k4i25s",".container.svelte-1k4i25s.svelte-1k4i25s{position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s}.container-mobile.svelte-1k4i25s.svelte-1k4i25s{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.svelte-1k4i25s.svelte-1k4i25s{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.svelte-1k4i25s.svelte-1k4i25s{width:86px}.skippable.svelte-1k4i25s.svelte-1k4i25s{cursor:pointer;color:var(--white)}.skippable.svelte-1k4i25s.svelte-1k4i25s:hover{color:rgba(255, 255, 255, .75)}.skippable.svelte-1k4i25s:hover .icon.svelte-1k4i25s{fill:rgba(255, 255, 255, .75)}")}function Tg(i){let e=W("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=De(e)},m(n,o){v(n,t,o)},p(n,o){o&3&&e!==(e=W("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Ke(t,e)},d(n){n&&b(t)}}}function Ig(i){let e,t=W("skip_ads_now")+"",n,o,r,s,a,l;return{c(){e=S("div"),n=De(t),o=j(),r=L("svg"),s=L("path"),f(s,"fill-rule","evenodd"),f(s,"clip-rule","evenodd"),f(s,"d","M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"),f(r,"class","icon svelte-1k4i25s"),f(r,"width","7"),f(r,"height","12"),f(r,"viewBox","0 0 7 12"),f(r,"fill","none"),f(r,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","skip svelte-1k4i25s")},m(u,c){v(u,e,c),_(e,n),_(e,o),_(e,r),_(r,s),a||(l=Te(e,"click",mt(function(){Wt(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,c){i=u},d(u){u&&b(e),a=!1,l()}}}function Pg(i){let e;function t(r,s){return r[3]?Ig:Tg}let n=t(i,-1),o=n(i);return{c(){e=S("div"),o.c(),f(e,"class","container svelte-1k4i25s"),z(e,"container-mobile",i[4]),z(e,"skippable",i[3])},m(r,s){v(r,e,s),o.m(e,null)},p(r,[s]){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e,null))),s&16&&z(e,"container-mobile",r[4]),s&8&&z(e,"skippable",r[3])},i:me,o:me,d(r){r&&b(e),o.d()}}}function Eg(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:s=l1.noop}=e,l=et().ui.isMobile;V(i,l,c=>t(4,n=c));let u;return i.$$set=c=>{"position"in c&&t(0,o=c.position),"secondsToWatchBeforeSkip"in c&&t(1,r=c.secondsToWatchBeforeSkip),"skipAd"in c&&t(2,s=c.skipAd)},i.$$.update=()=>{i.$$.dirty&3&&t(3,u=o>0&&o>=r)},[o,r,s,u,n,l]}var Wa=class extends B{constructor(e){super(),N(this,e,Eg,Pg,R,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},Sg)}},a1=Wa;function Ag(i){be(i,"svelte-1wy3dql","button.svelte-1wy3dql{position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black}")}function Mg(i){let e;return{c(){e=S("button"),e.textContent=`${W("visit_advertiser")}`,f(e,"class","svelte-1wy3dql")},m(t,n){v(t,e,n)},p:me,i:me,o:me,d(t){t&&b(e)}}}var Ka=class extends B{constructor(e){super(),N(this,e,null,Mg,R,{},Ag)}},u1=Ka;function Lg(i){be(i,"svelte-354ajf",`.container.svelte-354ajf{width:100%;height:100%}.top-gradient-mobile.svelte-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
15
15
  360deg,
16
16
  rgba(0, 0, 0, 0) 0%,
17
17
  rgba(0, 0, 0, 0.05) 12%,
@@ -21,17 +21,17 @@
21
21
  rgba(0, 0, 0, 0.5) 77%,
22
22
  rgba(0, 0, 0, 0.55) 88%,
23
23
  rgba(0, 0, 0, 0.65) 100%
24
- )}`)}function c1(i){let e;return{c(){e=S("div"),f(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function f1(i){let e,t;return e=new a1({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&32&&(r.position=n[5]),o&64&&(r.secondsToWatchBeforeSkip=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function d1(i){let e,t;return e=new s1({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function m1(i){let e,t;return e=new u1({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Lg(i){let e,t,n,o,r,s,a,l=i[0]&&c1(i),u=i[4]&&f1(i),c=i[7]&&d1(i),m=i[3]&&m1(i);return{c(){e=S("div"),l&&l.c(),t=j(),n=S("video"),o=j(),u&&u.c(),r=j(),c&&c.c(),s=j(),m&&m.c(),ni(n,"width","100%"),ni(n,"height","100%"),n.playsInline=!0,f(e,"class","container svelte-354ajf")},m(h,y){v(h,e,y),l&&l.m(e,null),_(e,t),_(e,n),i[19](n),_(e,o),u&&u.m(e,null),_(e,r),c&&c.m(e,null),_(e,s),m&&m.m(e,null),i[20](e),a=!0},p(h,[y]){h[0]?l||(l=c1(h),l.c(),l.m(e,t)):l&&(l.d(1),l=null),h[4]?u?(u.p(h,y),y&16&&d(u,1)):(u=f1(h),u.c(),d(u,1),u.m(e,r)):u&&(le(),p(u,1,1,()=>{u=null}),ae()),h[7]?c?y&128&&d(c,1):(c=d1(h),c.c(),d(c,1),c.m(e,s)):c&&(le(),p(c,1,1,()=>{c=null}),ae()),h[3]?m?y&8&&d(m,1):(m=m1(h),m.c(),d(m,1),m.m(e,null)):m&&(le(),p(m,1,1,()=>{m=null}),ae())},i(h){a||(d(u),d(c),d(m),a=!0)},o(h){p(u),p(c),p(m),a=!1},d(h){h&&b(e),l&&l.d(),i[19](null),u&&u.d(),c&&c.d(),m&&m.d(),i[20](null)}}}function Vg(i,e,t){let n,o,r,s,a,l,u,{adsSlotId:c=void 0}=e,{adsParams:m=void 0}=e,{adsPreviewParam:h=void 0}=e,{duration:y=0}=e,g=et(),T=It(),k=g.state.isEnded$;R(i,k,q=>t(7,u=q));let D=g.ui.isMobile;R(i,D,q=>t(0,s=q));let I=T.ads.isMobileGoToSiteButton,C,P,G=!1,x=g.ads.playbackState;R(i,x,q=>t(18,r=q));let O=g.ads.canSkip,$=g.ads.position;R(i,$,q=>t(5,a=q));let se=g.ads.secondsToWatchBeforeSkip;R(i,se,q=>t(6,l=q)),vt(()=>{let q=g.getAdmanWrapper();if(!c){q.onAdmanLoadingError();return}let J=Z=>{q.initAdman(Z),G=!0},ke=new AbortController,H=()=>{ke.abort()},{width:ne,height:F}=Ue(g.ui.playerSize),_e=Ue(g.ui.isFullscreen),oe=Ue(g.ui.isAutoplay),Q={width:ne,height:F,isFullscreen:_e,isAutoplay:oe,adsContainer:C,adsVideoElement:P,slotId:c,params:m,previewParam:h,duration:y};return window.AdmanHTML?J(Q):q.loadAdman(ke.signal).then(()=>{J(Q)}).catch(()=>{q.onAdmanLoadingError()}),()=>{!G&&H()}});function K(q){ve[q?"unshift":"push"](()=>{P=q,t(2,P)})}function te(q){ve[q?"unshift":"push"](()=>{C=q,t(1,C)})}return i.$$set=q=>{"adsSlotId"in q&&t(14,c=q.adsSlotId),"adsParams"in q&&t(15,m=q.adsParams),"adsPreviewParam"in q&&t(16,h=q.adsPreviewParam),"duration"in q&&t(17,y=q.duration)},i.$$.update=()=>{i.$$.dirty&262144&&t(4,n=O&&r!=="inactive"),i.$$.dirty&262145&&t(3,o=s&&r!=="inactive"&&I)},[s,C,P,o,n,a,l,u,g,k,D,x,$,se,c,m,h,y,r,K,te]}var ja=class extends B{constructor(e){super(),N(this,e,Vg,Lg,V,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},Mg)}},$s=ja;var Rn=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);e-=n*60;let o=[n,e].map(r=>String(r).padStart(2,"0")).join(":");return t>0&&(o=`${t}:${o}`),o};function Rg(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=L("svg"),s&&s.c(),t=L("path"),n=L("path"),f(t,"fill","none"),f(t,"stroke","#fff"),f(t,"stroke-width","2"),f(t,"d","M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"),f(n,"fill","#f0f2f5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"),Ce(e,l)},m(u,c){v(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),Ce(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&b(e),s&&s.d(u)}}}function Bg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Ga=class extends B{constructor(e){super(),N(this,e,Bg,Rg,V,{})}},p1=Ga;function Ng(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=L("svg"),s&&s.c(),t=L("rect"),n=L("path"),f(t,"width","42"),f(t,"height","20"),f(t,"fill","#FF3347"),f(t,"rx","5"),f(n,"fill","#F2F3F5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z"),f(n,"clip-rule","evenodd"),Ce(e,l)},m(u,c){v(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),Ce(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&b(e),s&&s.d(u)}}}function Dg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Ya=class extends B{constructor(e){super(),N(this,e,Dg,Ng,V,{})}},_1=Ya;function Og(i){let e,t;return e=new p1({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Fg(i){let e,t;return e=new _1({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function xg(i){let e,t,n,o,r=[Fg,Og],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Ze()},m(l,u){s[e].m(l,u),v(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e!==c&&(le(),p(s[c],1,1,()=>{s[c]=null}),ae(),t=s[e],t||(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),s[e].d(l)}}}function Hg(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Qa=class extends B{constructor(e){super(),N(this,e,Hg,xg,V,{isActive:0})}},el=Qa;function qg(i){be(i,"svelte-i7xnqb",".thumb-timer.svelte-i7xnqb.svelte-i7xnqb{position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;padding:0 7px;border-radius:3px;background:var(--black-alpha-40);color:var(--white);font-size:12.5px;line-height:23px;height:23px;white-space:nowrap;transition:visibility var(--controls-transition-duration), opacity var(--controls-transition-duration)}.thumb-timer.live.svelte-i7xnqb.svelte-i7xnqb{font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red)}.thumb-timer.hidden.svelte-i7xnqb.svelte-i7xnqb{visibility:hidden;opacity:0}.thumb-timer.svelte-i7xnqb.svelte-i7xnqb:after{content:'';display:inline-block;vertical-align:middle;height:100%}.thumb-timer-live-icon.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px}.thumb-timer-equalizer.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px}.live.svelte-i7xnqb .thumb-timer-equalizer.svelte-i7xnqb{margin-top:-2px}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb{width:2px;height:10px;margin-right:2px;background:var(--white);position:absolute;bottom:0;transform-origin:50% 100%;animation:1.5s infinite linear alternate;animation-play-state:paused}.thumb-timer.playing.svelte-i7xnqb .thumb-timer-equalizer .col.svelte-i7xnqb{animation-play-state:running}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(1){left:0;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col1}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(2){left:3px;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col2}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(3){left:6px;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col3}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col1{0%{transform:scaleY(0.1)}25%{transform:scaleY(0.8)}50%{transform:scaleY(0.4)}75%{transform:scaleY(0.6)}100%{transform:scaleY(0.1)}}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(0.3)}50%{transform:scaleY(0.9)}75%{transform:scaleY(0.6)}100%{transform:scaleY(1)}}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col3{0%{transform:scaleY(0.6)}25%{transform:scaleY(0.9)}50%{transform:scaleY(0.1)}75%{transform:scaleY(0.9)}100%{transform:scaleY(0.6)}}.thumb-timer-text.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;text-align:right}")}function Ug(i){let e=Rn(i[4]-i[3])+"",t;return{c(){t=De(e)},m(n,o){v(n,t,o)},p(n,o){o&24&&e!==(e=Rn(n[4]-n[3])+"")&&je(t,e)},i:me,o:me,d(n){n&&b(t)}}}function zg(i){let e,t,n;return t=new el({props:{isActive:!0}}),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","thumb-timer-live-icon svelte-i7xnqb")},m(o,r){v(o,e,r),E(t,e,null),n=!0},p:me,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function Wg(i){let e,t,n,o,r,s,a,l=[zg,Ug],u=[];function c(m,h){return m[1]?0:1}return r=c(i,-1),s=u[r]=l[r](i),{c(){e=S("div"),t=S("div"),t.innerHTML='<div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div>',n=j(),o=S("span"),s.c(),f(t,"class","thumb-timer-equalizer svelte-i7xnqb"),f(o,"class","thumb-timer-text svelte-i7xnqb"),f(e,"role","timer"),f(e,"class","thumb-timer svelte-i7xnqb"),f(e,"data-testid","thumb-timer"),z(e,"live",i[1]),z(e,"hidden",i[0]),z(e,"playing",i[2])},m(m,h){v(m,e,h),_(e,t),_(e,n),_(e,o),u[r].m(o,null),a=!0},p(m,[h]){let y=r;r=c(m,h),r===y?u[r].p(m,h):(le(),p(u[y],1,1,()=>{u[y]=null}),ae(),s=u[r],s?s.p(m,h):(s=u[r]=l[r](m),s.c()),d(s,1),s.m(o,null)),(!a||h&2)&&z(e,"live",m[1]),(!a||h&1)&&z(e,"hidden",m[0]),(!a||h&4)&&z(e,"playing",m[2])},i(m){a||(d(s),a=!0)},o(m){p(s),a=!1},d(m){m&&b(e),u[r].d()}}}function Kg(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:r=!1}=e,{position:s}=e,{duration:a}=e;return i.$$set=l=>{"isHidden"in l&&t(0,n=l.isHidden),"isLive"in l&&t(1,o=l.isLive),"isPlaying"in l&&t(2,r=l.isPlaying),"position"in l&&t(3,s=l.position),"duration"in l&&t(4,a=l.duration)},[n,o,r,s,a]}var Za=class extends B{constructor(e){super(),N(this,e,Kg,Wg,V,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},qg)}},tl=Za;var Br=i=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=i,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};var E1=require("@vkontakte/videoplayer-core");var Xa=require("@vkontakte/videoplayer-shared"),Un=i=>{i.stopPropagation(),i.preventDefault()},Gg=i=>{let e=i.previousElementSibling;e||(e=i.parentNode?.lastElementChild),e?.focus()},Yg=i=>{let e=i.nextElementSibling;e||(e=i.parentNode?.firstElementChild),e?.focus()},Qg=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},Zg=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},h1=i=>i.code==="Escape",Xg=i=>i.code==="ArrowLeft",vs=(i,e=[])=>{let t=i.code;return["Enter","Space",...e].includes(t)},g1=i=>{if(Qg(i)){Un(i),Yg(i.target);return}Zg(i)&&(Un(i),Gg(i.target))},Nr=i=>!Xa.clientChecker.isAndroid&&i?.detail===0||Xa.clientChecker.isAndroid&&i?.pointerType==="",Dr=async(i,e,t)=>{await cn(),i&&!i.classList.contains("opened")&&!e&&Ue(t)&&(await cn(),t.set(!1),i.focus())},b1=async(i,e,t)=>{await cn(),i&&!e&&Ue(t)&&(t.set(!1),i.focus())},fo=async(i,e,t)=>{await cn(),!!i&&e&&t&&i.children[0]?.focus()},v1=async(i,e)=>{setTimeout(()=>{let t=i[e];!!t&&t.focus()},100)},il=(i,e)=>{g1(i),h1(i)&&(Un(i),e())},nl=async(i,e,t)=>{vs(i,["ArrowRight"])&&(Un(i),e(),await cn(),t()?.focus())},y1=async(i,e,{itemIdReturnCase:t,id:n},o)=>{if(g1(i),Xg(i)){Un(i),e(),t.set(n);return}h1(i)&&(Un(i),o())},Or=(i,e)=>{vs(i)&&(Un(i),e())},k1=(i,e,t)=>{if(vs(i))Un(i),t(!e);else{let n=i.code;if(n==="ArrowLeft"&&e){t(!1),Un(i);return}n==="ArrowRight"&&!e&&(t(!0),Un(i))}},w1=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},C1=i=>{if(!i)return{top:0,left:0};let e=i.getBoundingClientRect(),t=-58,n=8,o=e.left+n;return{bottom:e.bottom+t,left:o}};var dr=require("@vkontakte/videoplayer-shared");var ys=(n=>(n.OPEN_SUB_MENU="OPEN_SUB_MENU",n.CLICK="CLICK",n.SWITCH="SWITCH",n))(ys||{});var eo={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var Ja=require("@vkontakte/videoplayer-shared");function $g(i){be(i,"svelte-1hm4mm9",".item.svelte-1hm4mm9{padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap}.item.svelte-1hm4mm9:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function eb(i){let e,t,n,o,r;return{c(){e=S("li"),t=De(i[1]),f(e,"class","item svelte-1hm4mm9"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",n=i[2]??i[1]),f(e,"data-testid",i[0])},m(s,a){v(s,e,a),_(e,t),o||(r=[Te(e,"click",mt(i[3])),Te(e,"keydown",i[4])],o=!0)},p(s,[a]){a&2&&je(t,s[1]),a&6&&n!==(n=s[2]??s[1])&&f(e,"aria-label",n),a&1&&f(e,"data-testid",s[0])},i:me,o:me,d(s){s&&b(e),o=!1,st(r)}}}function tb(i,e,t){let{id:n}=e,{onClick:o=Ja.noop}=e,{closeContextMenu:r=Ja.noop}=e,{label:s}=e,{ariaLabel:a}=e,l=()=>{o(),r()},u=c=>{Or(c,()=>l())};return i.$$set=c=>{"id"in c&&t(0,n=c.id),"onClick"in c&&t(5,o=c.onClick),"closeContextMenu"in c&&t(6,r=c.closeContextMenu),"label"in c&&t(1,s=c.label),"ariaLabel"in c&&t(2,a=c.ariaLabel)},[n,s,a,l,u,o,r]}var $a=class extends B{constructor(e){super(),N(this,e,tb,eb,V,{id:0,onClick:5,closeContextMenu:6,label:1,ariaLabel:2},$g)}},S1=$a;var fr=(i,e)=>i.weight-e.weight;function ib(i){be(i,"svelte-1p5ukkp","ul.svelte-1p5ukkp{position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}")}function T1(i,e,t){let n=i.slice();return n[52]=e[t],n}function I1(i){let e,t,n,o,r=_t(i[2]),s=[];for(let l=0;l<r.length;l+=1)s[l]=P1(T1(i,r,l));let a=l=>p(s[l],1,1,()=>{s[l]=null});return{c(){e=S("ul");for(let l=0;l<s.length;l+=1)s[l].c();f(e,"role","menu"),ni(e,"top",i[4]+"px"),ni(e,"left",i[3]+"px"),f(e,"class","svelte-1p5ukkp")},m(l,u){v(l,e,u);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(e,null);i[34](e),t=!0,n||(o=[Te(e,"contextmenu",ii(i[33])),Te(e,"keydown",i[13])],n=!0)},p(l,u){if(u[0]&4100){r=_t(l[2]);let c;for(c=0;c<r.length;c+=1){let m=T1(l,r,c);s[c]?(s[c].p(m,u),d(s[c],1)):(s[c]=P1(m),s[c].c(),d(s[c],1),s[c].m(e,null))}for(le(),c=r.length;c<s.length;c+=1)a(c);ae()}(!t||u[0]&16)&&ni(e,"top",l[4]+"px"),(!t||u[0]&8)&&ni(e,"left",l[3]+"px")},i(l){if(!t){for(let u=0;u<r.length;u+=1)d(s[u]);t=!0}},o(l){s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)p(s[u]);t=!1},d(l){l&&b(e),ti(s,l),i[34](null),n=!1,st(o)}}}function P1(i){let e,t;return e=new S1({props:{id:i[52].id,label:i[52].label,ariaLabel:i[52].ariaLabel,onClick:i[52].onClick,closeContextMenu:i[12]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.id=n[52].id),o[0]&4&&(r.label=n[52].label),o[0]&4&&(r.ariaLabel=n[52].ariaLabel),o[0]&4&&(r.onClick=n[52].onClick),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function nb(i){let e,t,n=i[1]&&I1(i);return{c(){n&&n.c(),e=Ze()},m(o,r){n&&n.m(o,r),v(o,e,r),t=!0},p(o,r){o[1]?n?(n.p(o,r),r[0]&2&&d(n,1)):(n=I1(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(le(),p(n,1,1,()=>{n=null}),ae())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function ob(i,e,t){let n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,{visible:I=!1}=e,{supportLink:C}=e,{position:P={top:0,left:0}}=e,{playerContainerRef:G=void 0}=e,{controlsContainerRef:x=void 0}=e,{menuElementRef:O=void 0}=e,{returnFocus:$}=e,se=0,K=0,te=et(),q=It(),J=te.ui.contextMenu.visible$,ke=te.ui.debugPanelVisible;R(i,ke,Me=>t(28,h=Me));let H=te.ui.additionalContextMenuItems$;R(i,H,Me=>t(27,m=Me));let ne=te.webApi.pictureInPictureApi,F=te.webApi.pictureInPictureApi?.info.isActive$;R(i,F,Me=>t(30,T=Me));let _e=te.actions.internal.togglePictureInPicture,oe=te.state.chromecastState$;R(i,oe,Me=>t(31,k=Me));let Q=te.state.isLive$;R(i,Q,Me=>t(32,D=Me));let Z=te.state.positionExact$;R(i,Z,Me=>t(35,g=Me));let de=te.state.isInteractive,qe=te.state.looped$;R(i,qe,Me=>t(29,y=Me));let Je=()=>{J.set(!1),$?.()},Pe=(Me,Xe)=>{if(!O||!G||!x)return;let Qe=O.getBoundingClientRect(),Oe=G.getBoundingClientRect();t(3,se=Me-Oe.left),t(4,K=Xe-Oe.top),se+Qe.width>Oe.width&&t(3,se=Oe.width-Qe.width),K+Qe.height>Oe.height&&t(4,K=Oe.height-Qe.height),t(3,se=Math.max(se,0)),t(4,K=Math.max(K,0))},Se=()=>{te.actions.internal.videoRotate()},Ae=()=>{(0,dr.isValidURL)(C)&&window.open(C,"_blank"),te.actions.internal.reportProblem(),te.actions.internal.pause()},Ke=()=>{let Me=te.actions.internal.getDebugTextData();if(q.features.saveDebugInfoToFile){let Xe=new Blob([...Me],{type:"plain/text"}),Qe=window.URL.createObjectURL(Xe);rr(Qe,"vk_player_debug_info","txt")}else Br(te.actions.internal.getDebugTextData())},X=()=>{let Me=te.actions.internal.getTraceTextData(),Xe=new Blob([...Me],{type:"application/json"}),Qe=window.URL.createObjectURL(Xe);rr(Qe,"vk_player_trace_info","json")},he=()=>{ke.set(!0)},Ie=async()=>{try{_e()}finally{$?.()}},Ye=()=>{te.actions.internal.setLooped(!y)},tt=()=>{if(r){let Me=te.callbacks?.onCopyEmbedCodeClicked?.();Me&&Br(Me)}},it=(Me=!1)=>{if(te.callbacks?.onCopyVideoLink){let Xe=te.callbacks?.onCopyVideoLink(Me,g);Xe&&Br(Xe)}},rt=Me=>{il(Me,Je)},$e=[];function pe(Me){Ln.call(this,i,Me)}function Ee(Me){ve[Me?"unshift":"push"](()=>{O=Me,t(0,O)})}return i.$$set=Me=>{"visible"in Me&&t(1,I=Me.visible),"supportLink"in Me&&t(14,C=Me.supportLink),"position"in Me&&t(15,P=Me.position),"playerContainerRef"in Me&&t(16,G=Me.playerContainerRef),"controlsContainerRef"in Me&&t(17,x=Me.controlsContainerRef),"menuElementRef"in Me&&t(0,O=Me.menuElementRef),"returnFocus"in Me&&t(18,$=Me.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&67108864|i.$$.dirty[1]&2&&t(25,o=n&&!D&&!de),i.$$.dirty[1]&1&&t(23,s=ne&&k!==E1.ChromecastState.CONNECTED&&!de),i.$$.dirty[0]&1073741824&&t(21,l=q.showSupport&&!T),i.$$.dirty[0]&229377&&O&&G&&x){let{top:Me,left:Xe,bottom:Qe,right:Oe}=P,ce=Xe??0,ct=Me??0,ht=O.getBoundingClientRect();(0,dr.isNullable)(Xe)&&!(0,dr.isNullable)(Oe)&&(ce=Oe-ht.width),(0,dr.isNullable)(Me)&&!(0,dr.isNullable)(Qe)&&(ct=Qe-ht.height),ce=Math.max(ce,0),ct=Math.max(ct,0),Pe(ce,ct)}i.$$.dirty[0]&1073217540&&(t(2,$e=[]),n&&$e.push({id:"copy-link",weight:eo["copy-link"],label:W("menu_copy_video_link"),onClick:()=>it()}),o&&$e.push({id:"copy-link-timestamp",weight:eo["copy-link-timestamp"],label:W("menu_copy_video_link_with_timestamp"),onClick:()=>it(!0)}),r&&$e.push({id:"copy-embed-code",weight:eo["copy-embed-code"],label:W("menu_copy_embed_code"),onClick:tt}),s&&$e.push({id:"pip",weight:eo.pip,label:W("menu_pip"),onClick:Ie}),$e.push({id:"video-loop",weight:eo["video-loop"],label:y?W("menu_video_loop_off"):W("menu_video_loop_on"),ariaLabel:W("aria_label_menu_loop"),onClick:Ye}),a&&$e.push({id:"rotate",weight:eo.rotate,label:W("menu_video_rotate"),ariaLabel:W("aria_label_menu_rotate"),onClick:Se}),l&&$e.push({id:"report",weight:eo.report,label:W("menu_report"),ariaLabel:`${W("menu_report")}. ${W("aria_label_new_tab_alert")}`,onClick:Ae}),$e.push({id:"save-debug",weight:eo["save-debug"],label:c,onClick:Ke}),u&&$e.push({id:"save-trace",weight:eo["save-trace"],label:W("menu_save_debug"),onClick:X}),$e.push({id:"debug-info",weight:eo["debug-info"],label:W("menu_debug_overlay"),ariaLabel:h?W("aria_label_menu_debug_overlay_disable"):W("aria_label_menu_debug_overlay_enable"),onClick:he}),t(2,$e=[...$e,...m].sort(fr)))},t(26,n=q.features.copyVideoLink&&te.callbacks?.onCopyVideoLink),t(24,r=!!te.callbacks?.onCopyEmbedCodeClicked),t(22,a=q.features.videoRotate&&!de),t(19,u=q.features.saveTraceInfoToFile),t(20,c=q.features.saveDebugInfoToFile?W("menu_save_debug"):W("menu_copy_debug")),[O,I,$e,se,K,ke,H,F,oe,Q,Z,qe,Je,rt,C,P,G,x,$,u,c,l,a,s,r,o,n,m,h,y,T,k,D,pe,Ee]}var eu=class extends B{constructor(e){super(),N(this,e,ob,nb,V,{visible:1,supportLink:14,position:15,playerContainerRef:16,controlsContainerRef:17,menuElementRef:0,returnFocus:18},ib,[-1,-1])}},A1=eu;var ol=class{constructor(e){this.value=e,this.next=null}};var Fr=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new ol(e);this.top?(this.top.next=t,this.top=t):(this.top=t,this.bottom=t),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],t=this.bottom;for(;t;)e.push(t.value),t=t.next;return e}};function rb(i){be(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function sb(i){let e,t;return{c(){e=S("div"),t=S("canvas"),f(t,"class","svelte-1ssl9eb"),f(e,"class","container svelte-1ssl9eb")},m(n,o){v(n,e,o),_(e,t),i[3](t)},p:me,i:me,o:me,d(n){n&&b(e),i[3](null)}}}var tu=16,iu=120,M1=60;function lb(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function ab(i,e,t){let{values:n=[]}=e,o,r,s=iu/M1;vt(()=>{t(0,o.width=iu,o),t(0,o.height=tu,o),t(2,r=o.getContext("2d"))});function a(l){ve[l?"unshift":"push"](()=>{o=l,t(0,o)})}return i.$$set=l=>{"values"in l&&t(1,n=l.values)},i.$$.update=()=>{if(i.$$.dirty&6){let l="";if(r){let u=n[0];for(let m=1;m<n.length;m++)n[m]>u&&(u=n[m]);r.clearRect(0,0,iu,tu);let c=M1-1;for(let m=n.length-1;m>=0;m--){let h=c*s,y=u>0?tu*(n[m]/u):0;lb(r,h,0,s,y),l=y+" "+l,c--}}}},[o,n,r,a]}var nu=class extends B{constructor(e){super(),N(this,e,ab,sb,V,{values:1},rb)}},rl=nu;var ou=require("@vkontakte/videoplayer-shared");function ub(i){be(i,"svelte-12aksxn",".container.svelte-12aksxn.svelte-12aksxn.svelte-12aksxn{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.svelte-12aksxn.svelte-12aksxn.svelte-12aksxn{top:16px;left:16px}button.svelte-12aksxn.svelte-12aksxn.svelte-12aksxn{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.svelte-12aksxn.svelte-12aksxn.svelte-12aksxn{padding:5px}.content.svelte-12aksxn>div.svelte-12aksxn>div.svelte-12aksxn{display:inline-block;text-align:right;width:60px;padding:0 5px}")}function L1(i){let e,t,n,o,r=i[0].id+"",s;return{c(){e=S("div"),t=S("div"),t.textContent="Video id",n=j(),o=S("span"),s=De(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(a,l){v(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].id+"")&&je(s,r)},d(a){a&&b(e)}}}function V1(i){let e,t,n,o,r=i[0].vsid+"",s;return{c(){e=S("div"),t=S("div"),t.textContent="VSID",n=j(),o=S("span"),s=De(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(a,l){v(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].vsid+"")&&je(s,r)},d(a){a&&b(e)}}}function R1(i){let e,t,n,o,r=i[0].provider+"",s;return{c(){e=S("div"),t=S("div"),t.textContent="Provider",n=j(),o=S("span"),s=De(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(a,l){v(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].provider+"")&&je(s,r)},d(a){a&&b(e)}}}function B1(i){let e,t,n,o,r,s=(i[0].videoCodec||"")+"",a,l,u=i[0].hdr?"(HDR)":"",c,m,h=(i[0].audioCodec||"")+"",y,g,T=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",k;return{c(){e=S("div"),t=S("div"),t.textContent="Streams",n=j(),o=S("span"),r=De("Video: "),a=De(s),l=j(),c=De(u),m=De(`
24
+ )}`)}function c1(i){let e;return{c(){e=S("div"),f(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function f1(i){let e,t;return e=new a1({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&32&&(r.position=n[5]),o&64&&(r.secondsToWatchBeforeSkip=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function d1(i){let e,t;return e=new s1({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function m1(i){let e,t;return e=new u1({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Rg(i){let e,t,n,o,r,s,a,l=i[0]&&c1(i),u=i[4]&&f1(i),c=i[7]&&d1(i),m=i[3]&&m1(i);return{c(){e=S("div"),l&&l.c(),t=j(),n=S("video"),o=j(),u&&u.c(),r=j(),c&&c.c(),s=j(),m&&m.c(),ni(n,"width","100%"),ni(n,"height","100%"),n.playsInline=!0,f(e,"class","container svelte-354ajf")},m(h,y){v(h,e,y),l&&l.m(e,null),_(e,t),_(e,n),i[19](n),_(e,o),u&&u.m(e,null),_(e,r),c&&c.m(e,null),_(e,s),m&&m.m(e,null),i[20](e),a=!0},p(h,[y]){h[0]?l||(l=c1(h),l.c(),l.m(e,t)):l&&(l.d(1),l=null),h[4]?u?(u.p(h,y),y&16&&d(u,1)):(u=f1(h),u.c(),d(u,1),u.m(e,r)):u&&(ae(),p(u,1,1,()=>{u=null}),ue()),h[7]?c?y&128&&d(c,1):(c=d1(h),c.c(),d(c,1),c.m(e,s)):c&&(ae(),p(c,1,1,()=>{c=null}),ue()),h[3]?m?y&8&&d(m,1):(m=m1(h),m.c(),d(m,1),m.m(e,null)):m&&(ae(),p(m,1,1,()=>{m=null}),ue())},i(h){a||(d(u),d(c),d(m),a=!0)},o(h){p(u),p(c),p(m),a=!1},d(h){h&&b(e),l&&l.d(),i[19](null),u&&u.d(),c&&c.d(),m&&m.d(),i[20](null)}}}function Vg(i,e,t){let n,o,r,s,a,l,u,{adsSlotId:c=void 0}=e,{adsParams:m=void 0}=e,{adsPreviewParam:h=void 0}=e,{duration:y=0}=e,g=et(),T=It(),k=g.state.isEnded$;V(i,k,H=>t(7,u=H));let D=g.ui.isMobile;V(i,D,H=>t(0,s=H));let I=T.ads.isMobileGoToSiteButton,C,P,G=!1,x=g.ads.playbackState;V(i,x,H=>t(18,r=H));let O=g.ads.canSkip,$=g.ads.position;V(i,$,H=>t(5,a=H));let le=g.ads.secondsToWatchBeforeSkip;V(i,le,H=>t(6,l=H)),yt(()=>{let H=g.getAdmanWrapper();if(!c){H.onAdmanLoadingError();return}let J=Z=>{H.initAdman(Z),G=!0},ke=new AbortController,q=()=>{ke.abort()},{width:ne,height:F}=qe(g.ui.playerSize),_e=qe(g.ui.isFullscreen),oe=qe(g.ui.isAutoplay),Q={width:ne,height:F,isFullscreen:_e,isAutoplay:oe,adsContainer:C,adsVideoElement:P,slotId:c,params:m,previewParam:h,duration:y};return window.AdmanHTML?J(Q):H.loadAdman(ke.signal).then(()=>{J(Q)}).catch(()=>{H.onAdmanLoadingError()}),()=>{!G&&q()}});function K(H){ve[H?"unshift":"push"](()=>{P=H,t(2,P)})}function ee(H){ve[H?"unshift":"push"](()=>{C=H,t(1,C)})}return i.$$set=H=>{"adsSlotId"in H&&t(14,c=H.adsSlotId),"adsParams"in H&&t(15,m=H.adsParams),"adsPreviewParam"in H&&t(16,h=H.adsPreviewParam),"duration"in H&&t(17,y=H.duration)},i.$$.update=()=>{i.$$.dirty&262144&&t(4,n=O&&r!=="inactive"),i.$$.dirty&262145&&t(3,o=s&&r!=="inactive"&&I)},[s,C,P,o,n,a,l,u,g,k,D,x,$,le,c,m,h,y,r,K,ee]}var ja=class extends B{constructor(e){super(),N(this,e,Vg,Rg,R,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},Lg)}},$s=ja;var Dn=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);e-=n*60;let o=[n,e].map(r=>String(r).padStart(2,"0")).join(":");return t>0&&(o=`${t}:${o}`),o};function Bg(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=L("svg"),s&&s.c(),t=L("path"),n=L("path"),f(t,"fill","none"),f(t,"stroke","#fff"),f(t,"stroke-width","2"),f(t,"d","M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"),f(n,"fill","#f0f2f5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"),Ce(e,l)},m(u,c){v(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Ve(s,r,u,u[1],o?Re(r,u[1],c,null):Be(u[1]),null),Ce(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&b(e),s&&s.d(u)}}}function Ng(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Ga=class extends B{constructor(e){super(),N(this,e,Ng,Bg,R,{})}},p1=Ga;function Dg(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=L("svg"),s&&s.c(),t=L("rect"),n=L("path"),f(t,"width","42"),f(t,"height","20"),f(t,"fill","#FF3347"),f(t,"rx","5"),f(n,"fill","#F2F3F5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z"),f(n,"clip-rule","evenodd"),Ce(e,l)},m(u,c){v(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Ve(s,r,u,u[1],o?Re(r,u[1],c,null):Be(u[1]),null),Ce(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&b(e),s&&s.d(u)}}}function Og(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Ya=class extends B{constructor(e){super(),N(this,e,Og,Dg,R,{})}},_1=Ya;function Fg(i){let e,t;return e=new p1({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function xg(i){let e,t;return e=new _1({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Hg(i){let e,t,n,o,r=[xg,Fg],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Qe()},m(l,u){s[e].m(l,u),v(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e!==c&&(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t||(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),s[e].d(l)}}}function qg(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Qa=class extends B{constructor(e){super(),N(this,e,qg,Hg,R,{isActive:0})}},el=Qa;function Ug(i){be(i,"svelte-i7xnqb",".thumb-timer.svelte-i7xnqb.svelte-i7xnqb{position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;padding:0 7px;border-radius:3px;background:var(--black-alpha-40);color:var(--white);font-size:12.5px;line-height:23px;height:23px;white-space:nowrap;transition:visibility var(--controls-transition-duration), opacity var(--controls-transition-duration)}.thumb-timer.live.svelte-i7xnqb.svelte-i7xnqb{font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red)}.thumb-timer.hidden.svelte-i7xnqb.svelte-i7xnqb{visibility:hidden;opacity:0}.thumb-timer.svelte-i7xnqb.svelte-i7xnqb:after{content:'';display:inline-block;vertical-align:middle;height:100%}.thumb-timer-live-icon.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px}.thumb-timer-equalizer.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px}.live.svelte-i7xnqb .thumb-timer-equalizer.svelte-i7xnqb{margin-top:-2px}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb{width:2px;height:10px;margin-right:2px;background:var(--white);position:absolute;bottom:0;transform-origin:50% 100%;animation:1.5s infinite linear alternate;animation-play-state:paused}.thumb-timer.playing.svelte-i7xnqb .thumb-timer-equalizer .col.svelte-i7xnqb{animation-play-state:running}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(1){left:0;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col1}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(2){left:3px;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col2}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(3){left:6px;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col3}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col1{0%{transform:scaleY(0.1)}25%{transform:scaleY(0.8)}50%{transform:scaleY(0.4)}75%{transform:scaleY(0.6)}100%{transform:scaleY(0.1)}}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(0.3)}50%{transform:scaleY(0.9)}75%{transform:scaleY(0.6)}100%{transform:scaleY(1)}}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col3{0%{transform:scaleY(0.6)}25%{transform:scaleY(0.9)}50%{transform:scaleY(0.1)}75%{transform:scaleY(0.9)}100%{transform:scaleY(0.6)}}.thumb-timer-text.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;text-align:right}")}function zg(i){let e=Dn(i[4]-i[3])+"",t;return{c(){t=De(e)},m(n,o){v(n,t,o)},p(n,o){o&24&&e!==(e=Dn(n[4]-n[3])+"")&&Ke(t,e)},i:me,o:me,d(n){n&&b(t)}}}function Wg(i){let e,t,n;return t=new el({props:{isActive:!0}}),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","thumb-timer-live-icon svelte-i7xnqb")},m(o,r){v(o,e,r),E(t,e,null),n=!0},p:me,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function Kg(i){let e,t,n,o,r,s,a,l=[Wg,zg],u=[];function c(m,h){return m[1]?0:1}return r=c(i,-1),s=u[r]=l[r](i),{c(){e=S("div"),t=S("div"),t.innerHTML='<div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div>',n=j(),o=S("span"),s.c(),f(t,"class","thumb-timer-equalizer svelte-i7xnqb"),f(o,"class","thumb-timer-text svelte-i7xnqb"),f(e,"role","timer"),f(e,"class","thumb-timer svelte-i7xnqb"),f(e,"data-testid","thumb-timer"),z(e,"live",i[1]),z(e,"hidden",i[0]),z(e,"playing",i[2])},m(m,h){v(m,e,h),_(e,t),_(e,n),_(e,o),u[r].m(o,null),a=!0},p(m,[h]){let y=r;r=c(m,h),r===y?u[r].p(m,h):(ae(),p(u[y],1,1,()=>{u[y]=null}),ue(),s=u[r],s?s.p(m,h):(s=u[r]=l[r](m),s.c()),d(s,1),s.m(o,null)),(!a||h&2)&&z(e,"live",m[1]),(!a||h&1)&&z(e,"hidden",m[0]),(!a||h&4)&&z(e,"playing",m[2])},i(m){a||(d(s),a=!0)},o(m){p(s),a=!1},d(m){m&&b(e),u[r].d()}}}function jg(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:r=!1}=e,{position:s}=e,{duration:a}=e;return i.$$set=l=>{"isHidden"in l&&t(0,n=l.isHidden),"isLive"in l&&t(1,o=l.isLive),"isPlaying"in l&&t(2,r=l.isPlaying),"position"in l&&t(3,s=l.position),"duration"in l&&t(4,a=l.duration)},[n,o,r,s,a]}var Za=class extends B{constructor(e){super(),N(this,e,jg,Kg,R,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},Ug)}},tl=Za;var Vr=i=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=i,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};var E1=require("@vkontakte/videoplayer-core");var Xa=require("@vkontakte/videoplayer-shared"),Un=i=>{i.stopPropagation(),i.preventDefault()},Yg=i=>{let e=i.previousElementSibling;e||(e=i.parentNode?.lastElementChild),e?.focus()},Qg=i=>{let e=i.nextElementSibling;e||(e=i.parentNode?.firstElementChild),e?.focus()},Zg=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},Xg=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},h1=i=>i.code==="Escape",Jg=i=>i.code==="ArrowLeft",bs=(i,e=[])=>{let t=i.code;return["Enter","Space",...e].includes(t)},g1=i=>{if(Zg(i)){Un(i),Qg(i.target);return}Xg(i)&&(Un(i),Yg(i.target))},Br=i=>!Xa.clientChecker.isAndroid&&i?.detail===0||Xa.clientChecker.isAndroid&&i?.pointerType==="",Nr=async(i,e,t)=>{await fn(),i&&!i.classList.contains("opened")&&!e&&qe(t)&&(await fn(),t.set(!1),i.focus())},b1=async(i,e,t)=>{await fn(),i&&!e&&qe(t)&&(t.set(!1),i.focus())},mo=async(i,e,t)=>{await fn(),!!i&&e&&t&&i.children[0]?.focus()},v1=async(i,e)=>{setTimeout(()=>{let t=i[e];!!t&&t.focus()},100)},il=(i,e)=>{g1(i),h1(i)&&(Un(i),e())},nl=async(i,e,t)=>{bs(i,["ArrowRight"])&&(Un(i),e(),await fn(),t()?.focus())},y1=async(i,e,{itemIdReturnCase:t,id:n},o)=>{if(g1(i),Jg(i)){Un(i),e(),t.set(n);return}h1(i)&&(Un(i),o())},Dr=(i,e)=>{bs(i)&&(Un(i),e())},k1=(i,e,t)=>{if(bs(i))Un(i),t(!e);else{let n=i.code;if(n==="ArrowLeft"&&e){t(!1),Un(i);return}n==="ArrowRight"&&!e&&(t(!0),Un(i))}},w1=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},C1=i=>{if(!i)return{top:0,left:0};let e=i.getBoundingClientRect(),t=-58,n=8,o=e.left+n;return{bottom:e.bottom+t,left:o}};var dr=require("@vkontakte/videoplayer-shared");var vs=(n=>(n.OPEN_SUB_MENU="OPEN_SUB_MENU",n.CLICK="CLICK",n.SWITCH="SWITCH",n))(vs||{});var $n={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var Ja=require("@vkontakte/videoplayer-shared");function eb(i){be(i,"svelte-1hm4mm9",".item.svelte-1hm4mm9{padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap}.item.svelte-1hm4mm9:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function tb(i){let e,t,n,o,r;return{c(){e=S("li"),t=De(i[1]),f(e,"class","item svelte-1hm4mm9"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",n=i[2]??i[1]),f(e,"data-testid",i[0])},m(s,a){v(s,e,a),_(e,t),o||(r=[Te(e,"click",mt(i[3])),Te(e,"keydown",i[4])],o=!0)},p(s,[a]){a&2&&Ke(t,s[1]),a&6&&n!==(n=s[2]??s[1])&&f(e,"aria-label",n),a&1&&f(e,"data-testid",s[0])},i:me,o:me,d(s){s&&b(e),o=!1,st(r)}}}function ib(i,e,t){let{id:n}=e,{onClick:o=Ja.noop}=e,{closeContextMenu:r=Ja.noop}=e,{label:s}=e,{ariaLabel:a}=e,l=()=>{o(),r()},u=c=>{Dr(c,()=>l())};return i.$$set=c=>{"id"in c&&t(0,n=c.id),"onClick"in c&&t(5,o=c.onClick),"closeContextMenu"in c&&t(6,r=c.closeContextMenu),"label"in c&&t(1,s=c.label),"ariaLabel"in c&&t(2,a=c.ariaLabel)},[n,s,a,l,u,o,r]}var $a=class extends B{constructor(e){super(),N(this,e,ib,tb,R,{id:0,onClick:5,closeContextMenu:6,label:1,ariaLabel:2},eb)}},S1=$a;var fr=(i,e)=>i.weight-e.weight;function nb(i){be(i,"svelte-1p5ukkp","ul.svelte-1p5ukkp{position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}")}function T1(i,e,t){let n=i.slice();return n[52]=e[t],n}function I1(i){let e,t,n,o,r=_t(i[2]),s=[];for(let l=0;l<r.length;l+=1)s[l]=P1(T1(i,r,l));let a=l=>p(s[l],1,1,()=>{s[l]=null});return{c(){e=S("ul");for(let l=0;l<s.length;l+=1)s[l].c();f(e,"role","menu"),ni(e,"top",i[4]+"px"),ni(e,"left",i[3]+"px"),f(e,"class","svelte-1p5ukkp")},m(l,u){v(l,e,u);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(e,null);i[34](e),t=!0,n||(o=[Te(e,"contextmenu",ii(i[33])),Te(e,"keydown",i[13])],n=!0)},p(l,u){if(u[0]&4100){r=_t(l[2]);let c;for(c=0;c<r.length;c+=1){let m=T1(l,r,c);s[c]?(s[c].p(m,u),d(s[c],1)):(s[c]=P1(m),s[c].c(),d(s[c],1),s[c].m(e,null))}for(ae(),c=r.length;c<s.length;c+=1)a(c);ue()}(!t||u[0]&16)&&ni(e,"top",l[4]+"px"),(!t||u[0]&8)&&ni(e,"left",l[3]+"px")},i(l){if(!t){for(let u=0;u<r.length;u+=1)d(s[u]);t=!0}},o(l){s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)p(s[u]);t=!1},d(l){l&&b(e),ti(s,l),i[34](null),n=!1,st(o)}}}function P1(i){let e,t;return e=new S1({props:{id:i[52].id,label:i[52].label,ariaLabel:i[52].ariaLabel,onClick:i[52].onClick,closeContextMenu:i[12]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.id=n[52].id),o[0]&4&&(r.label=n[52].label),o[0]&4&&(r.ariaLabel=n[52].ariaLabel),o[0]&4&&(r.onClick=n[52].onClick),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function ob(i){let e,t,n=i[1]&&I1(i);return{c(){n&&n.c(),e=Qe()},m(o,r){n&&n.m(o,r),v(o,e,r),t=!0},p(o,r){o[1]?n?(n.p(o,r),r[0]&2&&d(n,1)):(n=I1(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),p(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function rb(i,e,t){let n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,{visible:I=!1}=e,{supportLink:C}=e,{position:P={top:0,left:0}}=e,{playerContainerRef:G=void 0}=e,{controlsContainerRef:x=void 0}=e,{menuElementRef:O=void 0}=e,{returnFocus:$}=e,le=0,K=0,ee=et(),H=It(),J=ee.ui.contextMenu.visible$,ke=ee.ui.debugPanelVisible;V(i,ke,Me=>t(28,h=Me));let q=ee.ui.additionalContextMenuItems$;V(i,q,Me=>t(27,m=Me));let ne=ee.webApi.pictureInPictureApi,F=ee.webApi.pictureInPictureApi?.info.isActive$;V(i,F,Me=>t(30,T=Me));let _e=ee.actions.internal.togglePictureInPicture,oe=ee.state.chromecastState$;V(i,oe,Me=>t(31,k=Me));let Q=ee.state.isLive$;V(i,Q,Me=>t(32,D=Me));let Z=ee.state.positionExact$;V(i,Z,Me=>t(35,g=Me));let se=ee.state.isInteractive,Ze=ee.state.looped$;V(i,Ze,Me=>t(29,y=Me));let Je=()=>{J.set(!1),$?.()},Pe=(Me,Xe)=>{if(!O||!G||!x)return;let Ye=O.getBoundingClientRect(),Oe=G.getBoundingClientRect();t(3,le=Me-Oe.left),t(4,K=Xe-Oe.top),le+Ye.width>Oe.width&&t(3,le=Oe.width-Ye.width),K+Ye.height>Oe.height&&t(4,K=Oe.height-Ye.height),t(3,le=Math.max(le,0)),t(4,K=Math.max(K,0))},Se=()=>{ee.actions.internal.videoRotate()},Ae=()=>{(0,dr.isValidURL)(C)&&window.open(C,"_blank"),ee.actions.internal.reportProblem(),ee.actions.internal.pause()},We=()=>{let Me=ee.actions.internal.getDebugTextData();if(H.features.saveDebugInfoToFile){let Xe=new Blob([...Me],{type:"plain/text"}),Ye=window.URL.createObjectURL(Xe);rr(Ye,"vk_player_debug_info","txt")}else Vr(ee.actions.internal.getDebugTextData())},X=()=>{let Me=ee.actions.internal.getTraceTextData(),Xe=new Blob([...Me],{type:"application/json"}),Ye=window.URL.createObjectURL(Xe);rr(Ye,"vk_player_trace_info","json")},he=()=>{ke.set(!0)},Ie=async()=>{try{_e()}finally{$?.()}},Ge=()=>{ee.actions.internal.setLooped(!y)},tt=()=>{if(r){let Me=ee.callbacks?.onCopyEmbedCodeClicked?.();Me&&Vr(Me)}},it=(Me=!1)=>{if(ee.callbacks?.onCopyVideoLink){let Xe=ee.callbacks?.onCopyVideoLink(Me,g);Xe&&Vr(Xe)}},rt=Me=>{il(Me,Je)},$e=[];function pe(Me){Bn.call(this,i,Me)}function Ee(Me){ve[Me?"unshift":"push"](()=>{O=Me,t(0,O)})}return i.$$set=Me=>{"visible"in Me&&t(1,I=Me.visible),"supportLink"in Me&&t(14,C=Me.supportLink),"position"in Me&&t(15,P=Me.position),"playerContainerRef"in Me&&t(16,G=Me.playerContainerRef),"controlsContainerRef"in Me&&t(17,x=Me.controlsContainerRef),"menuElementRef"in Me&&t(0,O=Me.menuElementRef),"returnFocus"in Me&&t(18,$=Me.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&67108864|i.$$.dirty[1]&2&&t(25,o=n&&!D&&!se),i.$$.dirty[1]&1&&t(23,s=ne&&k!==E1.ChromecastState.CONNECTED&&!se),i.$$.dirty[0]&1073741824&&t(21,l=H.showSupport&&!T),i.$$.dirty[0]&229377&&O&&G&&x){let{top:Me,left:Xe,bottom:Ye,right:Oe}=P,fe=Xe??0,ct=Me??0,ht=O.getBoundingClientRect();(0,dr.isNullable)(Xe)&&!(0,dr.isNullable)(Oe)&&(fe=Oe-ht.width),(0,dr.isNullable)(Me)&&!(0,dr.isNullable)(Ye)&&(ct=Ye-ht.height),fe=Math.max(fe,0),ct=Math.max(ct,0),Pe(fe,ct)}i.$$.dirty[0]&1073217540&&(t(2,$e=[]),n&&$e.push({id:"copy-link",weight:$n["copy-link"],label:W("menu_copy_video_link"),onClick:()=>it()}),o&&$e.push({id:"copy-link-timestamp",weight:$n["copy-link-timestamp"],label:W("menu_copy_video_link_with_timestamp"),onClick:()=>it(!0)}),r&&$e.push({id:"copy-embed-code",weight:$n["copy-embed-code"],label:W("menu_copy_embed_code"),onClick:tt}),s&&$e.push({id:"pip",weight:$n.pip,label:W("menu_pip"),onClick:Ie}),$e.push({id:"video-loop",weight:$n["video-loop"],label:y?W("menu_video_loop_off"):W("menu_video_loop_on"),ariaLabel:W("aria_label_menu_loop"),onClick:Ge}),a&&$e.push({id:"rotate",weight:$n.rotate,label:W("menu_video_rotate"),ariaLabel:W("aria_label_menu_rotate"),onClick:Se}),l&&$e.push({id:"report",weight:$n.report,label:W("menu_report"),ariaLabel:`${W("menu_report")}. ${W("aria_label_new_tab_alert")}`,onClick:Ae}),$e.push({id:"save-debug",weight:$n["save-debug"],label:c,onClick:We}),u&&$e.push({id:"save-trace",weight:$n["save-trace"],label:W("menu_save_debug"),onClick:X}),$e.push({id:"debug-info",weight:$n["debug-info"],label:W("menu_debug_overlay"),ariaLabel:h?W("aria_label_menu_debug_overlay_disable"):W("aria_label_menu_debug_overlay_enable"),onClick:he}),t(2,$e=[...$e,...m].sort(fr)))},t(26,n=H.features.copyVideoLink&&ee.callbacks?.onCopyVideoLink),t(24,r=!!ee.callbacks?.onCopyEmbedCodeClicked),t(22,a=H.features.videoRotate&&!se),t(19,u=H.features.saveTraceInfoToFile),t(20,c=H.features.saveDebugInfoToFile?W("menu_save_debug"):W("menu_copy_debug")),[O,I,$e,le,K,ke,q,F,oe,Q,Z,Ze,Je,rt,C,P,G,x,$,u,c,l,a,s,r,o,n,m,h,y,T,k,D,pe,Ee]}var eu=class extends B{constructor(e){super(),N(this,e,rb,ob,R,{visible:1,supportLink:14,position:15,playerContainerRef:16,controlsContainerRef:17,menuElementRef:0,returnFocus:18},nb,[-1,-1])}},A1=eu;var ol=class{constructor(e){this.value=e,this.next=null}};var Or=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new ol(e);this.top?(this.top.next=t,this.top=t):(this.top=t,this.bottom=t),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],t=this.bottom;for(;t;)e.push(t.value),t=t.next;return e}};function sb(i){be(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function lb(i){let e,t;return{c(){e=S("div"),t=S("canvas"),f(t,"class","svelte-1ssl9eb"),f(e,"class","container svelte-1ssl9eb")},m(n,o){v(n,e,o),_(e,t),i[3](t)},p:me,i:me,o:me,d(n){n&&b(e),i[3](null)}}}var tu=16,iu=120,M1=60;function ab(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function ub(i,e,t){let{values:n=[]}=e,o,r,s=iu/M1;yt(()=>{t(0,o.width=iu,o),t(0,o.height=tu,o),t(2,r=o.getContext("2d"))});function a(l){ve[l?"unshift":"push"](()=>{o=l,t(0,o)})}return i.$$set=l=>{"values"in l&&t(1,n=l.values)},i.$$.update=()=>{if(i.$$.dirty&6){let l="";if(r){let u=n[0];for(let m=1;m<n.length;m++)n[m]>u&&(u=n[m]);r.clearRect(0,0,iu,tu);let c=M1-1;for(let m=n.length-1;m>=0;m--){let h=c*s,y=u>0?tu*(n[m]/u):0;ab(r,h,0,s,y),l=y+" "+l,c--}}}},[o,n,r,a]}var nu=class extends B{constructor(e){super(),N(this,e,ub,lb,R,{values:1},sb)}},rl=nu;var ou=require("@vkontakte/videoplayer-shared");function cb(i){be(i,"svelte-12aksxn",".container.svelte-12aksxn.svelte-12aksxn.svelte-12aksxn{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.svelte-12aksxn.svelte-12aksxn.svelte-12aksxn{top:16px;left:16px}button.svelte-12aksxn.svelte-12aksxn.svelte-12aksxn{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.svelte-12aksxn.svelte-12aksxn.svelte-12aksxn{padding:5px}.content.svelte-12aksxn>div.svelte-12aksxn>div.svelte-12aksxn{display:inline-block;text-align:right;width:60px;padding:0 5px}")}function L1(i){let e,t,n,o,r=i[0].id+"",s;return{c(){e=S("div"),t=S("div"),t.textContent="Video id",n=j(),o=S("span"),s=De(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(a,l){v(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].id+"")&&Ke(s,r)},d(a){a&&b(e)}}}function R1(i){let e,t,n,o,r=i[0].vsid+"",s;return{c(){e=S("div"),t=S("div"),t.textContent="VSID",n=j(),o=S("span"),s=De(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(a,l){v(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].vsid+"")&&Ke(s,r)},d(a){a&&b(e)}}}function V1(i){let e,t,n,o,r=i[0].provider+"",s;return{c(){e=S("div"),t=S("div"),t.textContent="Provider",n=j(),o=S("span"),s=De(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(a,l){v(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].provider+"")&&Ke(s,r)},d(a){a&&b(e)}}}function B1(i){let e,t,n,o,r,s=(i[0].videoCodec||"")+"",a,l,u=i[0].hdr?"(HDR)":"",c,m,h=(i[0].audioCodec||"")+"",y,g,T=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",k;return{c(){e=S("div"),t=S("div"),t.textContent="Streams",n=j(),o=S("span"),r=De("Video: "),a=De(s),l=j(),c=De(u),m=De(`
25
25
  &
26
- Audio: `),y=De(h),g=j(),k=De(T),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(D,I){v(D,e,I),_(e,t),_(e,n),_(e,o),_(o,r),_(o,a),_(o,l),_(o,c),_(o,m),_(o,y),_(o,g),_(o,k)},p(D,I){I&1&&s!==(s=(D[0].videoCodec||"")+"")&&je(a,s),I&1&&u!==(u=D[0].hdr?"(HDR)":"")&&je(c,u),I&1&&h!==(h=(D[0].audioCodec||"")+"")&&je(y,h),I&1&&T!==(T=D[0].audioLanguage?`(${D[0].audioLanguage})`:"")&&je(k,T)},d(D){D&&b(e)}}}function N1(i){let e,t,n,o,r=i[0].viewport+"",s;return{c(){e=S("div"),t=S("div"),t.textContent="Viewport",n=j(),o=S("span"),s=De(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(a,l){v(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].viewport+"")&&je(s,r)},d(a){a&&b(e)}}}function D1(i){let e,t,n,o,r=i[0].videoSize+"",s;return{c(){e=S("div"),t=S("div"),t.textContent="Video size",n=j(),o=S("span"),s=De(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(a,l){v(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].videoSize+"")&&je(s,r)},d(a){a&&b(e)}}}function O1(i){let e,t,n,o,r=i[0].cdn+"",s;return{c(){e=S("div"),t=S("div"),t.textContent="CDN host",n=j(),o=S("span"),s=De(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(a,l){v(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].cdn+"")&&je(s,r)},d(a){a&&b(e)}}}function F1(i){let e,t,n,o,r=i[0].volume+"",s,a;return{c(){e=S("div"),t=S("div"),t.textContent="Volume",n=j(),o=S("span"),s=De(r),a=De(" %"),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(l,u){v(l,e,u),_(e,t),_(e,n),_(e,o),_(o,s),_(o,a)},p(l,u){u&1&&r!==(r=l[0].volume+"")&&je(s,r)},d(l){l&&b(e)}}}function x1(i){let e,t,n,o,r=i[0].buffer.toFixed(2)+"",s,a;return{c(){e=S("div"),t=S("div"),t.textContent="Buffer",n=j(),o=S("span"),s=De(r),a=De(" s"),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(l,u){v(l,e,u),_(e,t),_(e,n),_(e,o),_(o,s),_(o,a)},p(l,u){u&1&&r!==(r=l[0].buffer.toFixed(2)+"")&&je(s,r)},d(l){l&&b(e)}}}function H1(i){let e,t,n,o,r=i[0].liveLatency.toFixed(2)+"",s,a;return{c(){e=S("div"),t=S("div"),t.textContent="Live latency",n=j(),o=S("span"),s=De(r),a=De(" s"),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(l,u){v(l,e,u),_(e,t),_(e,n),_(e,o),_(o,s),_(o,a)},p(l,u){u&1&&r!==(r=l[0].liveLatency.toFixed(2)+"")&&je(s,r)},d(l){l&&b(e)}}}function q1(i){let e,t,n,o,r=[{value:i[0].currentVideoSegmentLength,title:"Video:"},{value:i[0].currentAudioSegmentLength,title:"Audio:"}].filter(W1).map(K1).join(" & ")+"",s;return{c(){e=S("div"),t=S("div"),t.textContent="Segment",n=j(),o=S("span"),s=De(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(a,l){v(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=[{value:a[0].currentVideoSegmentLength,title:"Video:"},{value:a[0].currentAudioSegmentLength,title:"Audio:"}].filter(W1).map(K1).join(" & ")+"")&&je(s,r)},d(a){a&&b(e)}}}function U1(i){let e,t,n,o,r,s,a=i[0].speed.toFixed(2)+"",l,u,c;return o=new rl({props:{values:i[5]}}),{c(){e=S("div"),t=S("div"),t.textContent="Network",n=j(),M(o.$$.fragment),r=j(),s=S("span"),l=De(a),u=De(" Kbps"),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(m,h){v(m,e,h),_(e,t),_(e,n),E(o,e,null),_(e,r),_(e,s),_(s,l),_(s,u),c=!0},p(m,h){let y={};h&32&&(y.values=m[5]),o.$set(y),(!c||h&1)&&a!==(a=m[0].speed.toFixed(2)+"")&&je(l,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){p(o.$$.fragment,m),c=!1},d(m){m&&b(e),A(o)}}}function z1(i){let e,t,n,o,r,s,a=i[0].bitrate.toFixed(2)+"",l,u,c;return o=new rl({props:{values:i[6]}}),{c(){e=S("div"),t=S("div"),t.textContent="V bitrate",n=j(),M(o.$$.fragment),r=j(),s=S("span"),l=De(a),u=De(" Kbps"),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(m,h){v(m,e,h),_(e,t),_(e,n),E(o,e,null),_(e,r),_(e,s),_(s,l),_(s,u),c=!0},p(m,h){let y={};h&64&&(y.values=m[6]),o.$set(y),(!c||h&1)&&a!==(a=m[0].bitrate.toFixed(2)+"")&&je(l,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){p(o.$$.fragment,m),c=!1},d(m){m&&b(e),A(o)}}}function cb(i){let e,t,n,o,r,s,a,l,u=i[0].version+"",c,m,h,y,g,T,k,D,I,C,P,G,x,O,$,se,K,te,q,J,ke,H,ne,F,_e,oe,Q,Z,de,qe,Je,Pe,Se,Ae,Ke,X=i[0].id&&L1(i),he=i[0].vsid&&V1(i),Ie=i[0].provider&&R1(i),Ye=(i[0].videoCodec||i[0].audioCodec)&&B1(i),tt=i[0].viewport&&N1(i),it=i[0].videoSize&&D1(i),rt=i[0].cdn&&O1(i),$e=i[0].volume&&F1(i),pe=i[0].buffer&&x1(i),Ee=i[0].liveLatency&&H1(i),Me=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&q1(i),Xe=i[0].speed&&U1(i),Qe=i[0].bitrate&&z1(i);return Z=new rl({props:{values:i[4]}}),{c(){e=S("div"),t=S("button"),t.textContent="[x]",n=j(),o=S("div"),r=S("div"),s=S("div"),s.textContent="Version",a=j(),l=S("span"),c=De(u),m=j(),X&&X.c(),h=j(),he&&he.c(),y=j(),Ie&&Ie.c(),g=j(),Ye&&Ye.c(),T=j(),tt&&tt.c(),k=j(),it&&it.c(),D=j(),rt&&rt.c(),I=j(),$e&&$e.c(),C=j(),pe&&pe.c(),P=j(),Ee&&Ee.c(),G=j(),Me&&Me.c(),x=j(),O=S("div"),$=S("div"),$.textContent="Dropped",se=j(),K=S("span"),te=De(i[2]),q=De(" / "),J=De(i[1]),ke=De(" frames"),H=j(),Xe&&Xe.c(),ne=j(),Qe&&Qe.c(),F=j(),_e=S("div"),oe=S("div"),oe.textContent="FPS",Q=j(),M(Z.$$.fragment),de=j(),qe=S("span"),Je=De(i[3]),f(t,"class","close svelte-12aksxn"),f(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),f(s,"class","svelte-12aksxn"),f(r,"class","svelte-12aksxn"),f($,"class","svelte-12aksxn"),f(O,"class","svelte-12aksxn"),f(oe,"class","svelte-12aksxn"),f(_e,"class","svelte-12aksxn"),f(o,"class","content svelte-12aksxn"),f(e,"class","container svelte-12aksxn"),f(e,"role","region"),f(e,"aria-label",Pe=W("aria_label_debug_panel")),z(e,"container-mobile",i[7])},m(Oe,ce){v(Oe,e,ce),_(e,t),_(e,n),_(e,o),_(o,r),_(r,s),_(r,a),_(r,l),_(l,c),_(o,m),X&&X.m(o,null),_(o,h),he&&he.m(o,null),_(o,y),Ie&&Ie.m(o,null),_(o,g),Ye&&Ye.m(o,null),_(o,T),tt&&tt.m(o,null),_(o,k),it&&it.m(o,null),_(o,D),rt&&rt.m(o,null),_(o,I),$e&&$e.m(o,null),_(o,C),pe&&pe.m(o,null),_(o,P),Ee&&Ee.m(o,null),_(o,G),Me&&Me.m(o,null),_(o,x),_(o,O),_(O,$),_(O,se),_(O,K),_(K,te),_(K,q),_(K,J),_(K,ke),_(o,H),Xe&&Xe.m(o,null),_(o,ne),Qe&&Qe.m(o,null),_(o,F),_(o,_e),_(_e,oe),_(_e,Q),E(Z,_e,null),_(_e,de),_(_e,qe),_(qe,Je),Se=!0,Ae||(Ke=Te(t,"click",mt(i[9])),Ae=!0)},p(Oe,[ce]){(!Se||ce&1)&&u!==(u=Oe[0].version+"")&&je(c,u),Oe[0].id?X?X.p(Oe,ce):(X=L1(Oe),X.c(),X.m(o,h)):X&&(X.d(1),X=null),Oe[0].vsid?he?he.p(Oe,ce):(he=V1(Oe),he.c(),he.m(o,y)):he&&(he.d(1),he=null),Oe[0].provider?Ie?Ie.p(Oe,ce):(Ie=R1(Oe),Ie.c(),Ie.m(o,g)):Ie&&(Ie.d(1),Ie=null),Oe[0].videoCodec||Oe[0].audioCodec?Ye?Ye.p(Oe,ce):(Ye=B1(Oe),Ye.c(),Ye.m(o,T)):Ye&&(Ye.d(1),Ye=null),Oe[0].viewport?tt?tt.p(Oe,ce):(tt=N1(Oe),tt.c(),tt.m(o,k)):tt&&(tt.d(1),tt=null),Oe[0].videoSize?it?it.p(Oe,ce):(it=D1(Oe),it.c(),it.m(o,D)):it&&(it.d(1),it=null),Oe[0].cdn?rt?rt.p(Oe,ce):(rt=O1(Oe),rt.c(),rt.m(o,I)):rt&&(rt.d(1),rt=null),Oe[0].volume?$e?$e.p(Oe,ce):($e=F1(Oe),$e.c(),$e.m(o,C)):$e&&($e.d(1),$e=null),Oe[0].buffer?pe?pe.p(Oe,ce):(pe=x1(Oe),pe.c(),pe.m(o,P)):pe&&(pe.d(1),pe=null),Oe[0].liveLatency?Ee?Ee.p(Oe,ce):(Ee=H1(Oe),Ee.c(),Ee.m(o,G)):Ee&&(Ee.d(1),Ee=null),Oe[0].currentVideoSegmentLength||Oe[0].currentAudioSegmentLength?Me?Me.p(Oe,ce):(Me=q1(Oe),Me.c(),Me.m(o,x)):Me&&(Me.d(1),Me=null),(!Se||ce&4)&&je(te,Oe[2]),(!Se||ce&2)&&je(J,Oe[1]),Oe[0].speed?Xe?(Xe.p(Oe,ce),ce&1&&d(Xe,1)):(Xe=U1(Oe),Xe.c(),d(Xe,1),Xe.m(o,ne)):Xe&&(le(),p(Xe,1,1,()=>{Xe=null}),ae()),Oe[0].bitrate?Qe?(Qe.p(Oe,ce),ce&1&&d(Qe,1)):(Qe=z1(Oe),Qe.c(),d(Qe,1),Qe.m(o,F)):Qe&&(le(),p(Qe,1,1,()=>{Qe=null}),ae());let ct={};ce&16&&(ct.values=Oe[4]),Z.$set(ct),(!Se||ce&8)&&je(Je,Oe[3]),(!Se||ce&128)&&z(e,"container-mobile",Oe[7])},i(Oe){Se||(d(Xe),d(Qe),d(Z.$$.fragment,Oe),Se=!0)},o(Oe){p(Xe),p(Qe),p(Z.$$.fragment,Oe),Se=!1},d(Oe){Oe&&b(e),X&&X.d(),he&&he.d(),Ie&&Ie.d(),Ye&&Ye.d(),tt&&tt.d(),it&&it.d(),rt&&rt.d(),$e&&$e.d(),pe&&pe.d(),Ee&&Ee.d(),Me&&Me.d(),Xe&&Xe.d(),Qe&&Qe.d(),A(Z),Ae=!1,Ke()}}}var W1=({value:i})=>i,K1=({value:i,title:e})=>`${e} ${((i??0)/1e3).toFixed(2)} s`;function fb(i,e,t){let n,o=et(),r=o.ui.debugPanelVisible,s=o.ui.isMobile;R(i,s,C=>t(7,n=C));let a=()=>{ou.safeStorage.remove(_s),r.set(!1)},l=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),c=0,m=0,h=0,y=new Fr(60),g=new Fr(60),T=new Fr(60),k=[],D=[],I=[];return vt(()=>{ou.safeStorage.set(_s,"true"),o.actions.internal.startLogging(),u&&(t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,c=u.getVideoPlaybackQuality().totalVideoFrames));let C=window.setInterval(()=>{t(0,l=o.actions.internal.getDebugPanelData())},500),P;return u&&(P=window.setInterval(()=>{if(u){t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames);let G=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=G-c),t(1,c=G),y.push(h),l.speed&&g.push(l.speed),l.bitrate&&T.push(l.bitrate),t(4,k=y.getValuesFromBottom()),t(5,D=g.getValuesFromBottom()),t(6,I=T.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(C),P&&clearInterval(P)}}),[l,c,m,h,k,D,I,n,s,a]}var ru=class extends B{constructor(e){super(),N(this,e,fb,cb,V,{},ub)}},sl=ru;function db(i){be(i,"svelte-1ome55p",".close.svelte-1ome55p{cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px}.close.svelte-1ome55p:hover{opacity:1}.close.svelte-1ome55p:before,.close.svelte-1ome55p:after{position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white)}.close.svelte-1ome55p:before{transform:rotate(45deg)}.close.svelte-1ome55p:after{transform:rotate(-45deg)}")}function mb(i){let e,t,n;return{c(){e=S("div"),f(e,"class","close svelte-1ome55p")},m(o,r){v(o,e,r),t||(n=Te(e,"click",mt(i[0])),t=!0)},p:me,i:me,o:me,d(o){o&&b(e),t=!1,n()}}}function pb(i){function e(t){Ln.call(this,i,t)}return[e]}var su=class extends B{constructor(e){super(),N(this,e,pb,mb,V,{},db)}},ll=su;var j1=require("@vkontakte/videoplayer-shared");function _b(i){be(i,"svelte-8jhsry",`.timer.svelte-8jhsry{border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around}.timer.svelte-8jhsry:hover{background:rgba(31, 31, 31, .85)
27
- }.timer-canvas.svelte-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.svelte-8jhsry{width:22px;height:26px}`)}function hb(i){let e,t,n,o,r,s,a;return{c(){e=S("div"),t=S("canvas"),n=j(),o=L("svg"),r=L("g"),s=L("g"),a=L("path"),f(t,"class","timer-canvas svelte-8jhsry"),f(t,"width","100"),f(t,"height","100"),f(a,"class","_play"),f(a,"d","m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z"),f(a,"fill","#fff"),f(s,"fill-rule","nonzero"),f(r,"fill","none"),f(r,"fill-rule","evenodd"),f(o,"class","timer-play-icon svelte-8jhsry"),f(o,"viewBox","0 0 24 24"),f(o,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","timer svelte-8jhsry")},m(l,u){v(l,e,u),_(e,t),i[3](t),_(e,n),_(e,o),_(o,r),_(r,s),_(s,a)},p:me,i:me,o:me,d(l){l&&b(e),i[3](null)}}}var gb=5e3;function bb(i,e,t){let{isRunning:n=!0}=e,{onTimerEnded:o=j1.noop}=e,r,s,a,l,u,c=()=>{n&&(u=(Date.now()-a)/gb,u<1?(s?.clearRect(0,0,100,100),s?.beginPath(),s?.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),s?.stroke(),l=requestAnimationFrame(c)):o())};vt(()=>{if(s=r.getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{cancelAnimationFrame(l)}});function m(h){ve[h?"unshift":"push"](()=>{r=h,t(0,r)})}return i.$$set=h=>{"isRunning"in h&&t(1,n=h.isRunning),"onTimerEnded"in h&&t(2,o=h.onTimerEnded)},i.$$.update=()=>{i.$$.dirty&2&&n&&(a=Date.now(),l=requestAnimationFrame(c))},[r,n,o,m]}var lu=class extends B{constructor(e){super(),N(this,e,bb,hb,V,{isRunning:1,onTimerEnded:2},_b)}},al=lu;function vb(i){be(i,"svelte-149n6j1",".overlay.svelte-149n6j1{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-149n6j1{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.svelte-149n6j1{display:flex;justify-content:space-between}.caption.svelte-149n6j1{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-149n6j1{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%}.column.svelte-149n6j1{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-149n6j1{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.svelte-149n6j1{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.svelte-149n6j1{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function yb(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C,P,G,x;return a=new ll({}),a.$on("click",i[6]),g=new al({props:{isRunning:i[2],onTimerEnded:i[5]}}),{c(){e=S("div"),t=j(),n=S("div"),o=S("div"),r=S("div"),r.textContent=`${W("end_screen_next_video")}`,s=j(),M(a.$$.fragment),l=j(),u=S("div"),c=S("div"),m=S("div"),h=S("div"),y=j(),M(g.$$.fragment),k=j(),D=S("div"),I=S("div"),C=De(i[0]),f(e,"class","overlay svelte-149n6j1"),f(r,"class","caption svelte-149n6j1"),f(o,"class","top svelte-149n6j1"),f(h,"class","thumb-overlay svelte-149n6j1"),f(m,"class","thumb svelte-149n6j1"),f(m,"style",T=`background-image: url('${i[1]}')`),f(c,"class","column svelte-149n6j1"),f(I,"class","title svelte-149n6j1"),f(D,"class","column svelte-149n6j1"),f(u,"class","row svelte-149n6j1"),f(n,"class","next-video svelte-149n6j1")},m(O,$){v(O,e,$),v(O,t,$),v(O,n,$),_(n,o),_(o,r),_(o,s),E(a,o,null),_(n,l),_(n,u),_(u,c),_(c,m),_(m,h),_(m,y),E(g,m,null),_(u,k),_(u,D),_(D,I),_(I,C),P=!0,G||(x=Te(u,"click",i[4]),G=!0)},p(O,[$]){let se={};$&4&&(se.isRunning=O[2]),g.$set(se),(!P||$&2&&T!==(T=`background-image: url('${O[1]}')`))&&f(m,"style",T),(!P||$&1)&&je(C,O[0])},i(O){P||(d(a.$$.fragment,O),d(g.$$.fragment,O),P=!0)},o(O){p(a.$$.fragment,O),p(g.$$.fragment,O),P=!1},d(O){O&&(b(e),b(t),b(n)),A(a),A(g),G=!1,x()}}}function kb(i,e,t){let n,{title:o}=e,{thumb:r}=e,{clickCloseIcon:s}=e,a=et(),l=a.ui.timerNextVideoRunning$;R(i,l,k=>t(2,n=k));let u=a.actions.internal.nextVideoClick,c=a.actions.internal.nextVideoAnnouncementClick,m=a.actions.internal.nextVideoAnnouncementAuto,h=a.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),c()},g=()=>{u(!1),m()},T=()=>{s(),h()};return i.$$set=k=>{"title"in k&&t(0,o=k.title),"thumb"in k&&t(1,r=k.thumb),"clickCloseIcon"in k&&t(7,s=k.clickCloseIcon)},[o,r,n,l,y,g,T,s]}var au=class extends B{constructor(e){super(),N(this,e,kb,yb,V,{title:0,thumb:1,clickCloseIcon:7},vb)}},G1=au;var qo=require("@vkontakte/videoplayer-core"),Y1=require("@vkontakte/videoplayer-shared"),fn=require("@vkontakte/videoplayer-statistics");var uu=(i,e)=>Math.min(+(i+e).toFixed(2),1),cu=(i,e)=>Math.max(+(i-e).toFixed(2),0),ul=(i,e,t)=>{let n=uu(e,t);e<1&&i.actions.internal.setVolume(n)},cl=(i,e,t)=>{let n=cu(e,t);e>0&&i.actions.internal.setVolume(n)};var Ho=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e?.(),!1):t?!0:(n?.(),!1);function Cb(i){be(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function Sb(i){let e,t,n,o,r,s=i[26].default,a=Le(s,i,i[25],null);return{c(){e=S("div"),a&&a.c(),f(e,"class","keyboard-controls svelte-10kkmxz"),f(e,"tabindex","-1"),f(e,"role","region"),f(e,"aria-label",t=W("aria_label_video_player"))},m(l,u){v(l,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(r=[Te(e,"keyup",i[17]),Te(e,"keydown",i[16])],o=!0)},p(l,u){a&&a.p&&(!n||u[0]&33554432)&&Re(a,s,l,l[25],n?Ve(s,l[25],u,null):Be(l[25]),null)},i(l){n||(d(a,l),n=!0)},o(l){p(a,l),n=!1},d(l){l&&b(e),a&&a.d(l),i[27](null),o=!1,st(r)}}}function Tb(i,e,t){let n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,{$$slots:I={},$$scope:C}=e,{isAds:P}=e,{hideContextMenu:G}=e,{toggleFullscreen:x}=e,{showHotKeyHelpers:O}=e,{showKeyMap:$}=e,{fakePlayButtonHandler:se}=e,K=et(),te=It(),q=K.getLogger().createComponentLog("KeyboardControls component"),J=K.state.playbackState$;R(i,J,ce=>t(31,o=ce));let ke=K.ads.playbackState;R(i,ke,ce=>t(30,n=ce));let H=K.state.positionExact$;R(i,H,ce=>t(41,g=ce));let ne=K.state.duration$;R(i,ne,ce=>t(40,y=ce));let F=K.state.volume$;R(i,F,ce=>t(44,D=ce));let _e=K.ui.controls.disabledControls$;R(i,_e,ce=>t(39,h=ce));let oe=K.state.muted$;R(i,oe,ce=>t(34,a=ce));let Q=K.state.currentSubtitle$;R(i,Q,ce=>t(33,s=ce));let Z=K.state.currentPlaybackRate$;R(i,Z,ce=>t(42,T=ce));let de=K.state.availablePlaybackRates$;R(i,de,ce=>t(43,k=ce));let qe=K.ui.contextMenu.openedByHotKey$,Je=K.ui.contextMenu.lastActiveElem$,Pe=K.ui.contextMenu.visible$,Se=K.ui.contextMenu.position$,Ae=K.state.isEnded$;R(i,Ae,ce=>t(36,u=ce));let Ke=K.ui.overlayContainer$;R(i,Ke,ce=>t(32,r=ce));let X=K.callbacks?.onAudioDoesNotExistHint,he=K.callbacks?.onAudioDisabledHint,Ie=K.state.isAudioAvailable$;R(i,Ie,ce=>t(35,l=ce));let Ye=K.state.isAudioDisabled,tt=K.state.isInteractiveTime$;R(i,tt,ce=>t(38,m=ce));let{showInteractiveTimeIndicatorTooltip$:it}=Vn();R(i,it,ce=>t(37,c=ce));let rt=0,$e=!0,pe,Ee=()=>pe?.focus(),Me=ce=>(ce!==$e&&($e=ce,rt=0),rt+=1,(te.controls.seekStepKeyboard+te.controls.seekStepKeyboard*rt)/1e3),Xe=ce=>{let ct=ce.target,ht=ct?.getAttribute("role")?.includes("menuitem"),gt=ct.classList.contains("btn"),bt=ce.code;if(gt&&bt==="Space")return;let Fe=kd.has(bt);if(ht&&Fe)return;let kt=!yd.has(bt);if(ce.ctrlKey&&kt||ce.altKey&&kt||ce.metaKey)return;let Ot=ht&&bt==="Escape";wd.has(bt)||Ot||G();let Ut=o===qo.PlaybackState.PLAYING||o===qo.PlaybackState.PAUSED,Qt=P&&(n==="paused"||n==="playing"),Ht=!Qt&&!h.has("TIMELINE");if(Ut||Qt)switch(q({message:`key down, code: ${bt}`}),bt){case"KeyJ":case"ArrowLeft":{if(!Ht)break;if(ce.ctrlKey||ce.altKey){let lt=K.actions.internal.getPrevEpisode();K.actions.internal.seekToPrevEpisode(lt),lt&&O({type:"EPISODE_PREV",text:lt.text}),ce.preventDefault()}else{let lt=ce.shiftKey?Me(!1):te.controls.seekStepKeyboard/1e3,St=Math.max(g-lt,0);g>0&&(K.actions.internal.seekTime(St,fn.SeekAction.DOUBLE_TAP),O({type:"BACKWARD_SEEK",text:lt.toString()}),ce.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Ht)break;if(ce.ctrlKey||ce.altKey){let lt=K.actions.internal.getNextEpisode();K.actions.internal.seekToNextEpisode(lt),lt&&O({type:"EPISODE_NEXT",text:lt.text}),ce.preventDefault()}else{let lt=ce.shiftKey?Me(!0):te.controls.seekStepKeyboard/1e3,St=Math.min(g+lt,y);Math.round(g)<Math.round(y)&&(K.actions.internal.seekTime(St,fn.SeekAction.DOUBLE_TAP),O({type:"FORWARD_SEEK",text:lt.toString()}),ce.preventDefault())}break}case"ArrowUp":{if(Ho({isAudioDisabled:Ye,audioDisabledHintCallback:he,isAudioAvailable:l,audioIsNotExistHintCallback:X})){let lt=D,St=te.controls.volumeStepKeyboard,Mt=lt<=1;if(ul(K,lt,St),Mt){let Lt=Math.round(uu(lt,St)*100).toString();O({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Lt}})}}ce.preventDefault();break}case"ArrowDown":{if(Ho({isAudioDisabled:Ye,audioDisabledHintCallback:he,isAudioAvailable:l,audioIsNotExistHintCallback:X})){let lt=D,St=te.controls.volumeStepKeyboard,Mt=lt>=0;if(cl(K,lt,St),Mt){let Lt=Math.round(cu(lt,St)*100).toString();O({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Lt}})}}ce.preventDefault();break}case"Comma":{if(ce.shiftKey){K.actions.internal.decrementPlaybackRate();let lt=k.find(St=>St.value===T);O({type:"RATE_DOWN",text:lt?.displayValue}),ce.preventDefault()}else{if(Qt||o!==qo.PlaybackState.PAUSED)break;let lt=Math.max(g-te.controls.seekStepFrame/1e3,0);g>0&&(O({type:"BACKWARD_SEEK"}),K.actions.internal.clearDelayedBufferingCheckTimeout(),K.actions.internal.seekTime(lt,fn.SeekAction.DOUBLE_TAP),ce.preventDefault())}break}case"Period":{if(ce.shiftKey){K.actions.internal.incrementPlaybackRate();let lt=k.find(St=>St.value===T);O({type:"RATE_UP",text:lt?.displayValue}),ce.preventDefault()}else{if(Qt||o!==qo.PlaybackState.PAUSED)break;let lt=Math.min(g+te.controls.seekStepFrame/1e3,y);g<y&&(O({type:"FORWARD_SEEK"}),K.actions.internal.clearDelayedBufferingCheckTimeout(),K.actions.internal.seekTime(lt,fn.SeekAction.DOUBLE_TAP),ce.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(m&&c&&it.set(!1),se)se();else{K.actions.internal.togglePlay();let lt="PLAY";o===qo.PlaybackState.PAUSED?lt="PAUSE":u&&(lt="REPLAY"),O({type:lt})}ce.preventDefault();break;case"KeyM":{Ho({isAudioDisabled:Ye,audioDisabledHintCallback:he,isAudioAvailable:l,audioIsNotExistHintCallback:X})&&(O({type:a?"VOLUME":"MUTE"}),K.actions.internal.toggleMuted()),ce.preventDefault();break}case"KeyF":x(),ce.preventDefault();break;case"KeyC":K.actions.internal.toggleSubtitle(),s.value!=="off"?O({type:"SUBTITLES_ON",text:s?.displayValue}):O({type:"SUBTITLES_OFF"}),ce.preventDefault();break;case"KeyI":K.actions.internal.togglePictureInPicture(),ce.preventDefault();break;case"Digit1":case"Numpad1":if(ce.shiftKey){let lt=C1(r);Se.set(lt),Je.set(ct),qe.set(!0),Pe.set(!0),ce.preventDefault();break}O(),K.actions.internal.seekToPercent(.1,fn.SeekAction.DOUBLE_TAP),ce.preventDefault();break;case"Digit2":case"Numpad2":O(),K.actions.internal.seekToPercent(.2,fn.SeekAction.DOUBLE_TAP),ce.preventDefault();break;case"Digit3":case"Numpad3":O(),K.actions.internal.seekToPercent(.3,fn.SeekAction.DOUBLE_TAP),ce.preventDefault();break;case"Digit4":case"Numpad4":O(),K.actions.internal.seekToPercent(.4,fn.SeekAction.DOUBLE_TAP),ce.preventDefault();break;case"Digit5":case"Numpad5":O(),K.actions.internal.seekToPercent(.5,fn.SeekAction.DOUBLE_TAP),ce.preventDefault();break;case"Digit6":case"Numpad6":O(),K.actions.internal.seekToPercent(.6,fn.SeekAction.DOUBLE_TAP),ce.preventDefault();break;case"Digit7":case"Numpad7":O(),K.actions.internal.seekToPercent(.7,fn.SeekAction.DOUBLE_TAP),ce.preventDefault();break;case"Digit8":case"Numpad8":O(),K.actions.internal.seekToPercent(.8,fn.SeekAction.DOUBLE_TAP),ce.preventDefault();break;case"Digit9":case"Numpad9":O(),K.actions.internal.seekToPercent(.9,fn.SeekAction.DOUBLE_TAP),ce.preventDefault();break;case"Digit0":case"Numpad0":O(),K.actions.internal.seekToPercent(0,fn.SeekAction.DOUBLE_TAP),ce.preventDefault();break;case"Slash":{ce.shiftKey&&te.features.hotKeyMapModal&&($(),ce.preventDefault());break}case"ShiftLeft":case"ShiftRight":ce.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,Y1.checkNever)(bt);break}},Qe=ce=>{let ct=ce.code;if(ce.ctrlKey||ce.altKey||ce.metaKey)return;let ht=o===qo.PlaybackState.PLAYING||o===qo.PlaybackState.PAUSED,gt=P&&(n==="paused"||n==="playing");if(ht||gt)switch(ct){case"ShiftLeft":case"ShiftRight":rt=0;break}};function Oe(ce){ve[ce?"unshift":"push"](()=>{pe=ce,t(0,pe)})}return i.$$set=ce=>{"isAds"in ce&&t(18,P=ce.isAds),"hideContextMenu"in ce&&t(19,G=ce.hideContextMenu),"toggleFullscreen"in ce&&t(20,x=ce.toggleFullscreen),"showHotKeyHelpers"in ce&&t(21,O=ce.showHotKeyHelpers),"showKeyMap"in ce&&t(22,$=ce.showKeyMap),"fakePlayButtonHandler"in ce&&t(23,se=ce.fakePlayButtonHandler),"$$scope"in ce&&t(25,C=ce.$$scope)},[pe,J,ke,H,ne,F,_e,oe,Q,Z,de,Ae,Ke,Ie,tt,it,Xe,Qe,P,G,x,O,$,se,Ee,C,I,Oe]}var fu=class extends B{constructor(e){super(),N(this,e,Tb,Sb,V,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},Cb,[-1,-1])}get focus(){return this.$$.ctx[24]}},Q1=fu;function Ib(i){be(i,"svelte-8nkw5s",".container.svelte-8nkw5s.svelte-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes svelte-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.svelte-8nkw5s.svelte-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:svelte-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.svelte-8nkw5s+.dot.svelte-8nkw5s{margin-left:4px}")}function Pb(i){let e,t,n,o,r,s;return{c(){e=S("div"),t=S("div"),n=j(),o=S("div"),r=j(),s=S("div"),f(t,"class","dot svelte-8nkw5s"),f(o,"class","dot svelte-8nkw5s"),f(s,"class","dot svelte-8nkw5s"),f(e,"class","container svelte-8nkw5s"),f(e,"style",i[0])},m(a,l){v(a,e,l),_(e,t),_(e,n),_(e,o),_(e,r),_(e,s)},p(a,[l]){l&1&&f(e,"style",a[0])},i:me,o:me,d(a){a&&b(e)}}}function Eb(i,e,t){let{style:n=""}=e;return i.$$set=o=>{"style"in o&&t(0,n=o.style)},[n]}var du=class extends B{constructor(e){super(),N(this,e,Eb,Pb,V,{style:0},Ib)}},xr=du;function Ab(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T=i[2].default,k=Le(T,i,i[1],null),D=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],I={};for(let C=0;C<D.length;C+=1)I=re(I,D[C]);return{c(){e=L("svg"),k&&k.c(),t=L("g"),n=L("path"),o=L("path"),r=L("defs"),s=L("filter"),a=L("feFlood"),l=L("feColorMatrix"),u=L("feOffset"),c=L("feGaussianBlur"),m=L("feColorMatrix"),h=L("feBlend"),y=L("feBlend"),f(n,"fill","#fff"),f(n,"d","M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2422_111980"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2422_111980"),f(y,"result","shape"),f(s,"id","a"),f(s,"width","23"),f(s,"height","23"),f(s,"x",".5"),f(s,"y",".5"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),Ce(e,I)},m(C,P){v(C,e,P),k&&k.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,y),g=!0},p(C,[P]){k&&k.p&&(!g||P&2)&&Re(k,T,C,C[1],g?Ve(T,C[1],P,null):Be(C[1]),null),Ce(e,I=He(D,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},P&1&&C[0]]))},i(C){g||(d(k,C),g=!0)},o(C){p(k,C),g=!1},d(C){C&&b(e),k&&k.d(C)}}}function Mb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var mu=class extends B{constructor(e){super(),N(this,e,Mb,Ab,V,{})}},Z1=mu;var mo=require("@vkontakte/videoplayer-shared");function Lb(i){be(i,"svelte-wr0kwr",".btn.svelte-wr0kwr{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center}.w-max.svelte-wr0kwr{width:100%}.btn--live.svelte-wr0kwr{padding:10px 4px}.btn-jc-l.svelte-wr0kwr{justify-content:left}.btn-m.svelte-wr0kwr{position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.btn-m--play.svelte-wr0kwr{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn-m--play.svelte-wr0kwr svg{transform:scale(2)}.btn-m--prev.svelte-wr0kwr,.btn-m--next.svelte-wr0kwr{position:absolute;width:50px;height:50px}.btn-m--prev.svelte-wr0kwr{right:calc(100% + 35px)}.btn-m--next.svelte-wr0kwr{left:calc(100% + 35px)}.btn.svelte-wr0kwr:disabled{cursor:default;pointer-events:none}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-wr0kwr:not(:disabled):hover{opacity:0.8}.pr-0.svelte-wr0kwr{padding-right:0}.pl-0.svelte-wr0kwr{padding-left:0}")}function Vb(i){let e,t,n,o,r,s,a,l,u,c,m,h,y=i[14].default,g=Le(y,i,i[13],null);return{c(){e=S("button"),g&&g.c(),f(e,"class",t="btn "+i[1]+" svelte-wr0kwr"),f(e,"style",n=i[2]||null),e.disabled=o=i[3]??null,f(e,"aria-hidden",r=i[5]??null),f(e,"aria-label",s=i[6]??null),f(e,"aria-keyshortcuts",a=i[7]??null),f(e,"aria-expanded",l=i[8]??null),f(e,"data-testid",u=i[4]??null),f(e,"tabindex",i[9])},m(T,k){v(T,e,k),g&&g.m(e,null),i[16](e),c=!0,m||(h=[Te(e,"pointerdown",mt(i[15])),Te(e,"click",mt(function(){Wt(i[10]===mo.noop?null:i[10])&&(i[10]===mo.noop?null:i[10]).apply(this,arguments)})),Te(e,"focus",ii(function(){Wt(i[11]===mo.noop?null:i[11])&&(i[11]===mo.noop?null:i[11]).apply(this,arguments)})),Te(e,"blur",ii(function(){Wt(i[12]===mo.noop?null:i[12])&&(i[12]===mo.noop?null:i[12]).apply(this,arguments)}))],m=!0)},p(T,[k]){i=T,g&&g.p&&(!c||k&8192)&&Re(g,y,i,i[13],c?Ve(y,i[13],k,null):Be(i[13]),null),(!c||k&2&&t!==(t="btn "+i[1]+" svelte-wr0kwr"))&&f(e,"class",t),(!c||k&4&&n!==(n=i[2]||null))&&f(e,"style",n),(!c||k&8&&o!==(o=i[3]??null))&&(e.disabled=o),(!c||k&32&&r!==(r=i[5]??null))&&f(e,"aria-hidden",r),(!c||k&64&&s!==(s=i[6]??null))&&f(e,"aria-label",s),(!c||k&128&&a!==(a=i[7]??null))&&f(e,"aria-keyshortcuts",a),(!c||k&256&&l!==(l=i[8]??null))&&f(e,"aria-expanded",l),(!c||k&16&&u!==(u=i[4]??null))&&f(e,"data-testid",u),(!c||k&512)&&f(e,"tabindex",i[9])},i(T){c||(d(g,T),c=!0)},o(T){p(g,T),c=!1},d(T){T&&b(e),g&&g.d(T),i[16](null),m=!1,st(h)}}}function Rb(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:r=""}=e,{style:s=""}=e,{disabled:a=void 0}=e,{testId:l=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:c=void 0}=e,{ref:m=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:y=void 0}=e,{tabIndex:g=0}=e,{click:T=mo.noop}=e,{focus:k=mo.noop}=e,{blur:D=mo.noop}=e;function I(P){Ln.call(this,i,P)}function C(P){ve[P?"unshift":"push"](()=>{m=P,t(0,m)})}return i.$$set=P=>{"className"in P&&t(1,r=P.className),"style"in P&&t(2,s=P.style),"disabled"in P&&t(3,a=P.disabled),"testId"in P&&t(4,l=P.testId),"ariaHidden"in P&&t(5,u=P.ariaHidden),"ariaLabel"in P&&t(6,c=P.ariaLabel),"ref"in P&&t(0,m=P.ref),"ariaKeyShortCut"in P&&t(7,h=P.ariaKeyShortCut),"ariaExpanded"in P&&t(8,y=P.ariaExpanded),"tabIndex"in P&&t(9,g=P.tabIndex),"click"in P&&t(10,T=P.click),"focus"in P&&t(11,k=P.focus),"blur"in P&&t(12,D=P.blur),"$$scope"in P&&t(13,o=P.$$scope)},[m,r,s,a,l,u,c,h,y,g,T,k,D,o,n,I,C]}var pu=class extends B{constructor(e){super(),N(this,e,Rb,Vb,V,{className:1,style:2,disabled:3,testId:4,ariaHidden:5,ariaLabel:6,ref:0,ariaKeyShortCut:7,ariaExpanded:8,tabIndex:9,click:10,focus:11,blur:12},Lb)}},dt=pu;function Bb(i){be(i,"svelte-1witlsj",".modal-overlay.svelte-1witlsj{position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center}.modal-container.svelte-1witlsj{display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px}.modal-header.svelte-1witlsj{box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24)}.modal-title.svelte-1witlsj{margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.modal-scroll.svelte-1witlsj{overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%}.modal-scroll.svelte-1witlsj::-webkit-scrollbar{width:8px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track{box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.svelte-1witlsj{margin:-8px -4px 0 0}")}function X1(i){let e,t,n,o,r,s=i[2]&&J1(i);return{c(){e=S("div"),t=S("h3"),n=De(i[3]),o=j(),s&&s.c(),f(t,"class","modal-title svelte-1witlsj"),f(e,"class","modal-header svelte-1witlsj")},m(a,l){v(a,e,l),_(e,t),_(t,n),_(e,o),s&&s.m(e,null),r=!0},p(a,l){(!r||l&8)&&je(n,a[3]),a[2]?s?(s.p(a,l),l&4&&d(s,1)):(s=J1(a),s.c(),d(s,1),s.m(e,null)):s&&(le(),p(s,1,1,()=>{s=null}),ae())},i(a){r||(d(s),r=!0)},o(a){p(s),r=!1},d(a){a&&b(e),s&&s.d()}}}function J1(i){let e,t;return e=new dt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:W("hotkey_map_modal_close_btn_text"),$$slots:{default:[Nb]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.click=n[0]),o&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Nb(i){let e,t;return e=new Z1({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Db(i){let e,t,n,o,r,s,a=i[1]&&X1(i),l=i[4].default,u=Le(l,i,i[5],null);return{c(){e=S("div"),t=S("div"),a&&a.c(),n=j(),o=S("div"),r=S("div"),u&&u.c(),f(r,"class","modal-main svelte-1witlsj"),f(o,"class","modal-scroll svelte-1witlsj"),f(t,"class","modal-container svelte-1witlsj"),f(e,"class","modal-overlay svelte-1witlsj")},m(c,m){v(c,e,m),_(e,t),a&&a.m(t,null),_(t,n),_(t,o),_(o,r),u&&u.m(r,null),s=!0},p(c,[m]){c[1]?a?(a.p(c,m),m&2&&d(a,1)):(a=X1(c),a.c(),d(a,1),a.m(t,n)):a&&(le(),p(a,1,1,()=>{a=null}),ae()),u&&u.p&&(!s||m&32)&&Re(u,l,c,c[5],s?Ve(l,c[5],m,null):Be(c[5]),null)},i(c){s||(d(a),d(u,c),s=!0)},o(c){p(a),p(u,c),s=!1},d(c){c&&b(e),a&&a.d(),u&&u.d(c)}}}function Ob(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:r}=e,{showHeader:s=!0}=e,{showCloseCross:a=!0}=e,{title:l}=e;return i.$$set=u=>{"onClose"in u&&t(0,r=u.onClose),"showHeader"in u&&t(1,s=u.showHeader),"showCloseCross"in u&&t(2,a=u.showCloseCross),"title"in u&&t(3,l=u.title),"$$scope"in u&&t(5,o=u.$$scope)},[r,s,a,l,n,o]}var _u=class extends B{constructor(e){super(),N(this,e,Ob,Db,V,{onClose:0,showHeader:1,showCloseCross:2,title:3},Bb)}},$1=_u;var Fb=new Set(["BR"]),hu=i=>{let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let o=t[n],r=o.tagName;Fb.has(r)||o.parentElement?.removeChild(o)}return e.innerHTML};function xb(i){be(i,"svelte-quklnq",".hot-key-map.svelte-quklnq{color:var(--black);box-sizing:border-box;overflow-x:hidden}.hot-key-map-group.svelte-quklnq{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.svelte-quklnq:last-child{border-bottom:none}.hot-key-map-group-title.svelte-quklnq{color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.hot-key-map-group-title.svelte-quklnq,.hot-key-map-item.svelte-quklnq{padding:12px 0;margin:0;width:100%}.hot-key-map-group-items.svelte-quklnq{box-sizing:border-box;list-style:none;padding:0;margin:0}.hot-key-map-item.svelte-quklnq{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.svelte-quklnq{color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px}.hot-key-map-item-value.svelte-quklnq{color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px}.hot-key-map-item-description.svelte-quklnq,.hot-key-map-item-value.svelte-quklnq{font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}")}function em(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function tm(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function im(i){let e,t,n=hu(i[9])+"",o,r,s=i[10]+"",a,l;return{c(){e=S("li"),t=S("span"),o=j(),r=S("span"),a=De(s),l=j(),f(t,"class","hot-key-map-item-description svelte-quklnq"),f(r,"class","hot-key-map-item-value svelte-quklnq"),f(e,"class","hot-key-map-item svelte-quklnq")},m(u,c){v(u,e,c),_(e,t),t.innerHTML=n,_(e,o),_(e,r),_(r,a),_(e,l)},p(u,c){c&1&&n!==(n=hu(u[9])+"")&&(t.innerHTML=n),c&1&&s!==(s=u[10]+"")&&je(a,s)},d(u){u&&b(e)}}}function nm(i){let e,t,n=i[5]+"",o,r,s,a,l=_t(i[6]),u=[];for(let c=0;c<l.length;c+=1)u[c]=im(tm(i,l,c));return{c(){e=S("div"),t=S("h5"),o=De(n),r=j(),s=S("ul");for(let c=0;c<u.length;c+=1)u[c].c();a=j(),f(t,"class","hot-key-map-group-title svelte-quklnq"),f(s,"class","hot-key-map-group-items svelte-quklnq"),f(e,"class","hot-key-map-group svelte-quklnq")},m(c,m){v(c,e,m),_(e,t),_(t,o),_(e,r),_(e,s);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(s,null);_(e,a)},p(c,m){if(m&1&&n!==(n=c[5]+"")&&je(o,n),m&1){l=_t(c[6]);let h;for(h=0;h<l.length;h+=1){let y=tm(c,l,h);u[h]?u[h].p(y,m):(u[h]=im(y),u[h].c(),u[h].m(s,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=l.length}},d(c){c&&b(e),ti(u,c)}}}function Hb(i){let e,t=_t(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=nm(em(i,t,o));return{c(){e=S("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","hot-key-map svelte-quklnq")},m(o,r){v(o,e,r);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(e,null)},p(o,r){if(r&1){t=_t(o[0].groups);let s;for(s=0;s<t.length;s+=1){let a=em(o,t,s);n[s]?n[s].p(a,r):(n[s]=nm(a),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(o){o&&b(e),ti(n,o)}}}function qb(i){let e,t;return e=new $1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[Hb]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.title=n[0].title),o&8193&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Ub(i,e,t){let n,o=et(),{data:r,show:s}=o.ui.modals.hotKeyMap;return R(i,r,l=>t(0,n=l)),[n,r,()=>{s.set(!1)}]}var gu=class extends B{constructor(e){super(),N(this,e,Ub,qb,V,{},xb)}},om=gu;var Kc=require("@vkontakte/videoplayer-shared");var fl;function Hr(i){return fl||(fl=new ResizeObserver(e=>{for(let t of e)t.target.dispatchEvent(new CustomEvent("fd:resize"))})),fl.observe(i),{destroy(){fl.unobserve(i)}}}var _r=require("@vkontakte/videoplayer-core");var YS=require("@vkontakte/videoplayer-shared");function zb(i){be(i,"svelte-1oe0j8n",".pillow.svelte-1oe0j8n{background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px}")}function Wb(i){let e,t,n=i[1].default,o=Le(n,i,i[0],null);return{c(){e=S("div"),o&&o.c(),f(e,"class","pillow svelte-1oe0j8n")},m(r,s){v(r,e,s),o&&o.m(e,null),t=!0},p(r,[s]){o&&o.p&&(!t||s&1)&&Re(o,n,r,r[0],t?Ve(n,r[0],s,null):Be(r[0]),null)},i(r){t||(d(o,r),t=!0)},o(r){p(o,r),t=!1},d(r){r&&b(e),o&&o.d(r)}}}function Kb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var bu=class extends B{constructor(e){super(),N(this,e,Kb,Wb,V,{},zb)}},rm=bu;var qr=require("@vkontakte/videoplayer-shared");function jb(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=L("svg"),s&&s.c(),t=L("path"),n=L("path"),f(t,"fill","currentColor"),f(t,"d","M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z"),f(n,"clip-rule","evenodd"),Ce(e,l)},m(u,c){v(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),Ce(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&b(e),s&&s.d(u)}}}function Gb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var vu=class extends B{constructor(e){super(),N(this,e,Gb,jb,V,{})}},sm=vu;function Yb(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=L("svg"),s&&s.c(),t=L("path"),n=L("path"),f(t,"fill","currentColor"),f(t,"d","M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524"),f(n,"clip-rule","evenodd"),Ce(e,l)},m(u,c){v(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),Ce(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&b(e),s&&s.d(u)}}}function Qb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var yu=class extends B{constructor(e){super(),N(this,e,Qb,Yb,V,{})}},lm=yu;function Zb(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","currentColor"),f(t,"d","M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function Xb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var ku=class extends B{constructor(e){super(),N(this,e,Xb,Zb,V,{})}},am=ku;function Jb(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","currentColor"),f(t,"d","M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function $b(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var wu=class extends B{constructor(e){super(),N(this,e,$b,Jb,V,{})}},dl=wu;function e2(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=L("svg"),s&&s.c(),t=L("path"),n=L("path"),f(t,"fill","currentColor"),f(t,"d","M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02"),f(n,"clip-rule","evenodd"),Ce(e,l)},m(u,c){v(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),Ce(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&b(e),s&&s.d(u)}}}function t2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Cu=class extends B{constructor(e){super(),N(this,e,t2,e2,V,{})}},ml=Cu;var pl=i=>{switch(i){case qr.VideoQuality.Q_720P:return am;case qr.VideoQuality.Q_1080P:return dl;case qr.VideoQuality.Q_1440P:return ml;case qr.VideoQuality.Q_2160P:return sm;case qr.VideoQuality.Q_4320P:return lm}};function i2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function n2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Su=class extends B{constructor(e){super(),N(this,e,n2,i2,V,{})}},um=Su;function o2(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=L("svg"),s&&s.c(),t=L("path"),n=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"),f(n,"class","_full"),Ce(e,l)},m(u,c){v(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),Ce(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&b(e),s&&s.d(u)}}}function r2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Tu=class extends B{constructor(e){super(),N(this,e,r2,o2,V,{})}},cm=Tu;function s2(i){be(i,"svelte-8t5w85",'.icon.svelte-8t5w85{display:flex;position:relative;width:24px;height:24px}.icon.svelte-8t5w85 .pillow{position:absolute;top:1px;right:-9px}.icon.triple.svelte-8t5w85 .pillow{right:-13px}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full{visibility:hidden;opacity:0}')}function l2(i){let e,t,n,o,r=i[1]&&fm(i);return n=new cm({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=S("div"),r&&r.c(),t=j(),M(n.$$.fragment),f(e,"class","icon svelte-8t5w85"),f(e,"aria-hidden","true"),z(e,"triple",i[2])},m(s,a){v(s,e,a),r&&r.m(e,null),_(e,t),E(n,e,null),o=!0},p(s,a){s[1]?r?(r.p(s,a),a&2&&d(r,1)):(r=fm(s),r.c(),d(r,1),r.m(e,t)):r&&(le(),p(r,1,1,()=>{r=null}),ae());let l={};a&2&&(l["data-testid"]=s[1]?"settings-icon--labeled":"settings-icon"),n.$set(l),(!o||a&4)&&z(e,"triple",s[2])},i(s){o||(d(r),d(n.$$.fragment,s),o=!0)},o(s){p(r),p(n.$$.fragment,s),o=!1},d(s){s&&b(e),r&&r.d(),A(n)}}}function a2(i){let e,t;return e=new um({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function fm(i){let e,t;return e=new rm({props:{$$slots:{default:[u2]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&18&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function u2(i){let e,t,n;var o=i[1];function r(s,a){return{}}return o&&(e=At(o,r(i))),{c(){e&&M(e.$$.fragment),t=Ze()},m(s,a){e&&E(e,s,a),v(s,t,a),n=!0},p(s,a){if(a&2&&o!==(o=s[1])){if(e){le();let l=e;p(l.$$.fragment,1,0,()=>{A(l,1)}),ae()}o?(e=At(o,r(s,a)),M(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&b(t),e&&A(e,s)}}}function c2(i){let e,t,n,o,r=[a2,l2],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Ze()},m(l,u){s[e].m(l,u),v(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e===c?s[e].p(l,u):(le(),p(s[c],1,1,()=>{s[c]=null}),ae(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),s[e].d(l)}}}function f2(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:r=void 0}=e,s;return i.$$set=a=>{"isMobile"in a&&t(0,o=a.isMobile),"currentQuality"in a&&t(3,r=a.currentQuality)},i.$$.update=()=>{i.$$.dirty&8&&t(1,n=pl(r)),i.$$.dirty&2&&t(2,s=!!n&&[dl,ml].includes(n))},[o,n,s,r]}var Iu=class extends B{constructor(e){super(),N(this,e,f2,c2,V,{isMobile:0,currentQuality:3},s2)}},_l=Iu;function d2(i){be(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function m2(i){let e,t,n;return t=new _l({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=S("span"),M(t.$$.fragment),f(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){v(o,e,r),E(t,e,null),n=!0},p(o,r){let s={};r&8&&(s.isMobile=o[3]),r&16&&(s.currentQuality=o[4]),t.$set(s)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function p2(i){let e,t,n;function o(s){i[10](s)}let r={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[m2]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"opened":""),a&4&&(l.ariaLabel=s[2]),a&2&&(l.ariaExpanded=s[1]),a&16408&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function _2(i,e,t){let n,o,r,{ref$:s}=e,a=et(),l=a.state.currentQuality$;R(i,l,D=>t(4,r=D));let u=a.ui.settingsMenu.visible$;R(i,u,D=>t(1,n=D));let c=a.actions.internal.openSettingsMenu,m=a.actions.internal.closeSettingsMenu,h=a.ui.isMobile;R(i,h,D=>t(3,o=D));let y,g;async function T(D){let I=Nr(D);n?m():c(I,cn)}function k(D){y=D,t(0,y)}return i.$$set=D=>{"ref$"in D&&t(9,s=D.ref$)},i.$$.update=()=>{i.$$.dirty&513&&s&&s.set(y),i.$$.dirty&2&&t(2,g=n?W("tooltip_settings_on"):W("tooltip_settings_off"))},[y,n,g,o,r,l,u,h,T,s,k]}var Pu=class extends B{constructor(e){super(),N(this,e,_2,p2,V,{ref$:9},d2)}},ks=Pu;function h2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function g2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Eu=class extends B{constructor(e){super(),N(this,e,g2,h2,V,{})}},dm=Eu;function b2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function v2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Au=class extends B{constructor(e){super(),N(this,e,v2,b2,V,{})}},hl=Au;function y2(i){let e,t;return e=new hl({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function k2(i){let e,t;return e=new dm({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function w2(i){let e,t,n,o,r=[k2,y2],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Ze()},m(l,u){s[e].m(l,u),v(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e!==c&&(le(),p(s[c],1,1,()=>{s[c]=null}),ae(),t=s[e],t||(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),s[e].d(l)}}}function C2(i){let e,t;return e=new dt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:co.KeyC,$$slots:{default:[w2]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function S2(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,r;return i.$$set=s=>{"isSubtitlesEnabled"in s&&t(0,n=s.isSubtitlesEnabled),"click"in s&&t(1,o=s.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=n?W("tooltip_subtitles_on"):W("tooltip_subtitles_off"))},[n,o,r]}var Mu=class extends B{constructor(e){super(),N(this,e,S2,C2,V,{isSubtitlesEnabled:0,click:1})}},mm=Mu;function T2(i){be(i,"svelte-19o2urr",".time.svelte-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.svelte-19o2urr{padding:0 0 0 8px}.current.svelte-19o2urr{position:relative}.duration.svelte-19o2urr{opacity:0.7}.duration.svelte-19o2urr:before{content:' / ';white-space:pre}")}function pm(i){let e,t;return{c(){e=S("span"),t=De(i[3]),f(e,"class","duration svelte-19o2urr")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&8&&je(t,n[3])},d(n){n&&b(e)}}}function I2(i){let e,t,n,o,r=i[2]&&pm(i);return{c(){e=S("div"),t=S("span"),n=De(i[4]),o=j(),r&&r.c(),f(t,"class","current svelte-19o2urr"),f(e,"class","time svelte-19o2urr"),z(e,"mobile",i[1])},m(s,a){v(s,e,a),_(e,t),_(t,n),_(e,o),r&&r.m(e,null),i[7](e)},p(s,[a]){a&16&&je(n,s[4]),s[2]?r?r.p(s,a):(r=pm(s),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&z(e,"mobile",s[1])},i:me,o:me,d(s){s&&b(e),r&&r.d(),i[7](null)}}}function P2(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:r}=e,{showDuration:s=!0}=e,{ref:a}=e,l,u;function c(m){ve[m?"unshift":"push"](()=>{a=m,t(0,a)})}return i.$$set=m=>{"isMobile"in m&&t(1,n=m.isMobile),"duration"in m&&t(5,o=m.duration),"position"in m&&t(6,r=m.position),"showDuration"in m&&t(2,s=m.showDuration),"ref"in m&&t(0,a=m.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,l=Rn(o)),i.$$.dirty&64&&t(4,u=Rn(r))},[a,n,s,l,u,o,r,c]}var Lu=class extends B{constructor(e){super(),N(this,e,P2,I2,V,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},T2)}},gl=Lu;var Io=require("@vkontakte/videoplayer-shared");function E2(i){be(i,"svelte-1n5yyua",".icon.svelte-1n5yyua.svelte-1n5yyua{display:block;width:24px;height:24px}.icon.svelte-1n5yyua .cross.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .wave1.svelte-1n5yyua,.icon[data-value='off'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .cross.svelte-1n5yyua{visibility:visible}.icon[data-value='mid'].svelte-1n5yyua .wave2.svelte-1n5yyua,.icon[data-value='min'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}")}function A2(i){let e,t,n,o,r,s;return{c(){e=L("svg"),t=L("g"),n=L("path"),o=L("path"),r=L("path"),f(n,"class","wave2 svelte-1n5yyua"),f(n,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"),f(o,"class","wave1 svelte-1n5yyua"),f(o,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"),f(r,"class","cross svelte-1n5yyua"),f(r,"d","m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(e,"data-value",i[0]),f(e,"data-testid",s="volume-"+i[0]+"-icon"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","icon svelte-1n5yyua"),f(e,"aria-hidden","true")},m(a,l){v(a,e,l),_(e,t),_(t,n),_(t,o),_(t,r)},p(a,[l]){l&1&&f(e,"data-value",a[0]),l&1&&s!==(s="volume-"+a[0]+"-icon")&&f(e,"data-testid",s)},i:me,o:me,d(a){a&&b(e)}}}function M2(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,r=(a,l)=>l?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",s;return i.$$set=a=>{"volume"in a&&t(1,n=a.volume),"muted"in a&&t(2,o=a.muted)},i.$$.update=()=>{i.$$.dirty&6&&t(0,s=r(n,o))},[s,n,o]}var Vu=class extends B{constructor(e){super(),N(this,e,M2,A2,V,{volume:1,muted:2},E2)}},mr=Vu;var dn=require("@vkontakte/videoplayer-shared");var bm=require("@vkontakte/videoplayer-shared");var gm=require("@vkontakte/videoplayer-shared");function L2(i){let e,t,n=i[4].default,o=Le(n,i,i[3],null);return{c(){e=S("div"),o&&o.c(),f(e,"class","overlay")},m(r,s){v(r,e,s),o&&o.m(e,null),i[5](e),t=!0},p(r,[s]){o&&o.p&&(!t||s&8)&&Re(o,n,r,r[3],t?Ve(n,r[3],s,null):Be(r[3]),null)},i(r){t||(d(o,r),t=!0)},o(r){p(o,r),t=!1},d(r){r&&b(e),o&&o.d(r),i[5](null)}}}function V2(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=et().ui.overlayContainer$;R(i,a,h=>t(2,n=h));let l,u=h=>{!h||!l||!h.contains(l)||h.removeChild(l)},c=h=>{!h||!l||h.contains(l)||h.appendChild(l)};vt(()=>(c(n),()=>u(n)));function m(h){ve[h?"unshift":"push"](()=>{l=h,t(0,l)})}return i.$$set=h=>{"$$scope"in h&&t(3,r=h.$$scope)},i.$$.update=()=>{i.$$.dirty&4&&c(n)},[l,a,n,r,o,m]}var Ru=class extends B{constructor(e){super(),N(this,e,V2,L2,V,{})}},_m=Ru;function R2(i){be(i,"svelte-1jbbzcj",'.tooltip-wrapper.svelte-1jbbzcj{display:flex;flex-direction:column;min-width:0}.full-width.svelte-1jbbzcj{width:100%}.tooltip.svelte-1jbbzcj{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.svelte-1jbbzcj{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.svelte-1jbbzcj{opacity:1;visibility:visible}.tooltip-pointer.svelte-1jbbzcj{position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}')}function hm(i){let e,t;return e=new _m({props:{$$slots:{default:[B2]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&16777445&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function B2(i){let e,t,n,o,r;return{c(){e=S("div"),t=S("div"),n=De(i[2]),o=j(),r=S("div"),f(t,"class","content svelte-1jbbzcj"),f(r,"class","tooltip-pointer svelte-1jbbzcj"),f(r,"style",i[7]),f(e,"class","tooltip svelte-1jbbzcj"),f(e,"style",i[6]),z(e,"active",i[0])},m(s,a){v(s,e,a),_(e,t),_(t,n),_(e,o),_(e,r),i[23](e)},p(s,a){a[0]&4&&je(n,s[2]),a[0]&128&&f(r,"style",s[7]),a[0]&64&&f(e,"style",s[6]),a[0]&1&&z(e,"active",s[0])},d(s){s&&b(e),i[23](null)}}}function N2(i){let e,t,n,o,r,s,a=i[21].default,l=Le(a,i,i[24],null),u=i[2]&&!i[1]&&hm(i);return{c(){e=S("div"),l&&l.c(),t=j(),u&&u.c(),n=Ze(),f(e,"class","tooltip-wrapper svelte-1jbbzcj"),z(e,"full-width",i[3])},m(c,m){v(c,e,m),l&&l.m(e,null),i[22](e),v(c,t,m),u&&u.m(c,m),v(c,n,m),o=!0,r||(s=[Te(e,"mouseenter",i[10]),Te(e,"mousemove",i[10]),Te(e,"mouseleave",i[11]),Te(e,"mousedown",i[11]),Te(e,"mouseup",i[10])],r=!0)},p(c,m){l&&l.p&&(!o||m[0]&16777216)&&Re(l,a,c,c[24],o?Ve(a,c[24],m,null):Be(c[24]),null),(!o||m[0]&8)&&z(e,"full-width",c[3]),c[2]&&!c[1]?u?(u.p(c,m),m[0]&6&&d(u,1)):(u=hm(c),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(le(),p(u,1,1,()=>{u=null}),ae())},i(c){o||(d(l,c),d(u),o=!0)},o(c){p(l,c),p(u),o=!1},d(c){c&&(b(e),b(t),b(n)),l&&l.d(c),i[22](null),u&&u.d(c),r=!1,st(s)}}}var To=5;function D2(i,e,t){let n,o,{$$slots:r={},$$scope:s}=e,{isMobile:a=!1}=e,{content:l=""}=e,{active:u=!1}=e,{translateX:c=0}=e,{translateY:m=0}=e,{isFullWidthWrapper:h=!1}=e,{maxTooltipWidth:y=void 0}=e,{placement:g="top"}=e,{onVisibilityChange:T=gm.noop}=e,k,D,I,C=0,P=0,G=0,x=0,O=It(),$=et(),se=$.ui.playerSize;R(i,se,Ae=>t(27,o=Ae));let K=$.ui.overlayContainer$;R(i,K,Ae=>t(26,n=Ae));let te=$.getLogger().createComponentLog("Tooltip component"),q=()=>{if(!n||!D||!k)return;t(18,P=To);let Ae=n.getBoundingClientRect(),Ke=k.getBoundingClientRect(),X=Ke.width,he=D.clientWidth,Ie=o.width,Ye=(X-he)/2,tt=Ke.left+c-Ae.left,it=tt+Ye,rt=Ke.top+m-Ae.top,$e=he/2-To,pe=it<8,Ee=it+he>Ie-8;pe&&(it=8,$e=tt+Ke.width/2-2.5*To),Ee&&(it=Ie-8-he,$e=Ke.left-Ae.left+Ke.width/2-it-To),t(19,G=it),t(20,x=rt),t(17,C=$e)},J=()=>{!n||!D||!k||t(18,P=-To)},ke=()=>{if(!n||!D||!k)return;t(17,C=To);let Ae=n.getBoundingClientRect(),Ke=k.getBoundingClientRect(),X=Ke.height,he=D.clientHeight,Ie=(X-he)/2+he,Ye=Ke.left+c-Ae.left-D.clientWidth,tt=2,it=Ye-To;it<8&&(it=8);let $e=Ke.top+m-Ae.top+Ie,pe=tt-Ie/2,Ee=tt-To;t(19,G=it),t(20,x=$e),t(18,P=pe),t(17,C=Ee)},H=()=>{!n||!D||!k||t(17,C=-To)},ne=()=>{switch(g){case"top":q();break;case"bottom":J();break;case"left":ke();break;default:H()}},F=()=>{try{if(!n||!k)return;ne(),t(0,u=!0)}catch(Ae){te({message:String(Ae)})}},_e=()=>{t(0,u=!1)},oe=()=>{D&&(I||(I=window.setTimeout(F,O.controls.hideTimeoutTooltips)),u&&F())},Q=()=>{_e(),window.clearTimeout(I),I=void 0},Z=(Ae,Ke)=>{let X="";switch(g){case"top":X=`transform: translate(${Ae}px, ${Ke}px);`;break;case"bottom":X=`transform: translate(${Ae}px, ${Ke}px); top: auto; bottom: 100%;`;break;case"left":X=`transform: translate(${Ae}px, ${Ke}px); left: 0; right: auto;`;break;default:X=`transform: translate(${Ae}px, ${Ke}px);`}return X+=` max-width: ${y===void 0?"auto":`${y}px`};`,X},de=(Ae,Ke)=>{let X="";switch(g){case"top":X=`transform: translate(${Ae}px, ${Ke}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":X=`transform: translate(${Ae}px, ${Ke}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":X=`transform: translate(${Ae}px, ${Ke}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:X=`transform: translate(${Ae}px, ${Ke}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return X},qe,Je;vt(ne),Mn(()=>window.clearTimeout(I));function Pe(Ae){ve[Ae?"unshift":"push"](()=>{k=Ae,t(4,k)})}function Se(Ae){ve[Ae?"unshift":"push"](()=>{D=Ae,t(5,D)})}return i.$$set=Ae=>{"isMobile"in Ae&&t(1,a=Ae.isMobile),"content"in Ae&&t(2,l=Ae.content),"active"in Ae&&t(0,u=Ae.active),"translateX"in Ae&&t(12,c=Ae.translateX),"translateY"in Ae&&t(13,m=Ae.translateY),"isFullWidthWrapper"in Ae&&t(3,h=Ae.isFullWidthWrapper),"maxTooltipWidth"in Ae&&t(14,y=Ae.maxTooltipWidth),"placement"in Ae&&t(15,g=Ae.placement),"onVisibilityChange"in Ae&&t(16,T=Ae.onVisibilityChange),"$$scope"in Ae&&t(24,s=Ae.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&65537&&T(u),i.$$.dirty[0]&1966080&&(t(6,qe=Z(G,x)),t(7,Je=de(C,P)))},[u,a,l,h,k,D,qe,Je,se,K,oe,Q,c,m,y,g,T,C,P,G,x,r,Pe,Se,s]}var Bu=class extends B{constructor(e){super(),N(this,e,D2,N2,V,{isMobile:1,content:2,active:0,translateX:12,translateY:13,isFullWidthWrapper:3,maxTooltipWidth:14,placement:15,onVisibilityChange:16},R2,[-1,-1])}},Ur=Bu;function O2(i){be(i,"svelte-p9r045",".btn-container.svelte-p9r045{position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.svelte-p9r045{width:100%;min-width:0}")}function F2(i){let e,t=i[19].default,n=Le(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Re(n,t,o,o[24],e?Ve(t,o[24],r,null):Be(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){p(n,o),e=!1},d(o){n&&n.d(o)}}}function x2(i){let e,t;return e=new Ur({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[H2]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&2048&&(r.content=n[11]),o&512&&(r.translateX=n[9]),o&1024&&(r.translateY=n[10]),o&16&&(r.isFullWidthWrapper=n[4]),o&32&&(r.active=n[5]),o&64&&(r.placement=n[6]),o&256&&(r.onVisibilityChange=n[8]),o&16777216&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function H2(i){let e,t=i[19].default,n=Le(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Re(n,t,o,o[24],e?Ve(t,o[24],r,null):Be(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){p(n,o),e=!1},d(o){n&&n.d(o)}}}function q2(i){let e,t,n,o,r,s,a,l,u,c=[x2,F2],m=[];function h(y,g){return y[3]&&y[11]&&!y[12]?0:1}return t=h(i,-1),n=m[t]=c[t](i),{c(){e=S("div"),n.c(),f(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),f(e,"aria-hidden",r=i[7]||null)},m(y,g){v(y,e,g),m[t].m(e,null),i[23](e),a=!0,l||(u=[Cr(s=Hr.call(null,e)),Te(e,"fd:resize",i[22]),Te(e,"pointerdown",mt(i[20])),Te(e,"click",mt(i[21]))],l=!0)},p(y,[g]){let T=t;t=h(y,g),t===T?m[t].p(y,g):(le(),p(m[T],1,1,()=>{m[T]=null}),ae(),n=m[t],n?n.p(y,g):(n=m[t]=c[t](y),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+y[2]+" svelte-p9r045"))&&f(e,"class",o),(!a||g&128&&r!==(r=y[7]||null))&&f(e,"aria-hidden",r)},i(y){a||(d(n),a=!0)},o(y){p(n),a=!1},d(y){y&&b(e),m[t].d(),i[23](null),l=!1,st(u)}}}function U2(i,e,t){let n,o,{$$slots:r={},$$scope:s}=e,{className:a=""}=e,{disabled:l=!1}=e,{hasTooltip:u=!0}=e,{ref:c=void 0}=e,{width:m=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:y=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:T="top"}=e,{disabledTooltipContent:k=W("tooltip_button_disabled")}=e,{isAriaHidden:D=!1}=e,{onTooltipVisibilityChange:I=bm.noop}=e,{initialTranslateXPx:C=0}=e,{initialTranslateYPx:P=-18}=e,G=et(),x=G.ui.isMobile;R(i,x,J=>t(12,o=J));let O=G.state.graphIsOpened$;R(i,O,J=>t(18,n=J));let $;function se(J){Ln.call(this,i,J)}function K(J){Ln.call(this,i,J)}let te=J=>{t(1,m=J.target.clientWidth)};function q(J){ve[J?"unshift":"push"](()=>{c=J,t(0,c)})}return i.$$set=J=>{"className"in J&&t(2,a=J.className),"disabled"in J&&t(15,l=J.disabled),"hasTooltip"in J&&t(3,u=J.hasTooltip),"ref"in J&&t(0,c=J.ref),"width"in J&&t(1,m=J.width),"isFullWidthTooltip"in J&&t(4,h=J.isFullWidthTooltip),"tooltipContent"in J&&t(16,y=J.tooltipContent),"tooltipActive"in J&&t(5,g=J.tooltipActive),"tooltipPlacement"in J&&t(6,T=J.tooltipPlacement),"disabledTooltipContent"in J&&t(17,k=J.disabledTooltipContent),"isAriaHidden"in J&&t(7,D=J.isAriaHidden),"onTooltipVisibilityChange"in J&&t(8,I=J.onTooltipVisibilityChange),"initialTranslateXPx"in J&&t(9,C=J.initialTranslateXPx),"initialTranslateYPx"in J&&t(10,P=J.initialTranslateYPx),"$$scope"in J&&t(24,s=J.$$scope)},i.$$.update=()=>{i.$$.dirty&491520&&(l?t(11,$=n?W("tooltip_disabled_when_graph_on"):k):t(11,$=y))},[c,m,a,u,h,g,T,D,I,C,P,$,o,x,O,l,y,k,n,r,se,K,te,q,s]}var Nu=class extends B{constructor(e){super(),N(this,e,U2,q2,V,{className:2,disabled:15,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:16,tooltipActive:5,tooltipPlacement:6,disabledTooltipContent:17,isAriaHidden:7,onTooltipVisibilityChange:8,initialTranslateXPx:9,initialTranslateYPx:10},O2)}},Qi=Nu;function z2(i){let e,t,n,o,r,s;return{c(){e=L("svg"),t=L("rect"),o=L("path"),f(t,"width","20"),f(t,"height","20"),f(t,"rx","10"),f(t,"fill","white"),f(t,"fill-opacity",n=i[0]?1:.24),f(o,"d","M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"),f(o,"fill",r=i[0]?"var(--interactive-episode-complete)":"white"),f(e,"width","20"),f(e,"height","20"),f(e,"viewBox","0 0 20 20"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid",s=(i[0],"interactive-episode-completed-icon"))},m(a,l){v(a,e,l),_(e,t),_(e,o)},p(a,[l]){l&1&&n!==(n=a[0]?1:.24)&&f(t,"fill-opacity",n),l&1&&r!==(r=a[0]?"var(--interactive-episode-complete)":"white")&&f(o,"fill",r),l&1&&s!==(s=(a[0],"interactive-episode-completed-icon"))&&f(e,"data-testid",s)},i:me,o:me,d(a){a&&b(e)}}}function W2(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var Du=class extends B{constructor(e){super(),N(this,e,W2,z2,V,{completed:0})}},bl=Du;function K2(i){be(i,"svelte-bklhpe",".interactive-episode-icon.svelte-bklhpe{width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default}.interactive-episode-icon.disabled.svelte-bklhpe{pointer-events:none;opacity:0.4}")}function j2(i){let e,t,n,o,r,s,a;return t=new bl({props:{completed:!!i[0].completed}}),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","interactive-episode-icon svelte-bklhpe"),f(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),z(e,"disabled",i[1])},m(l,u){v(l,e,u),E(t,e,null),r=!0,s||(a=[Cr(o=Hr.call(null,e)),Te(e,"fd:resize",i[3])],s=!0)},p(l,u){let c={};u&1&&(c.completed=!!l[0].completed),t.$set(c),(!r||u&1&&n!==(n=`left: ${l[0].from+l[0].width/2}%`))&&f(e,"style",n),(!r||u&2)&&z(e,"disabled",l[1])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){p(t.$$.fragment,l),r=!1},d(l){l&&b(e),A(t),s=!1,st(a)}}}function G2(i){let e,t;return e=new Qi({props:{tooltipContent:W(i[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished"),initialTranslateXPx:-10,initialTranslateYPx:-10,disabled:i[1],width:i[2]||0,isAriaHidden:!0,isFullWidthTooltip:!1,$$slots:{default:[j2]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.tooltipContent=W(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(r.disabled=n[1]),o&4&&(r.width=n[2]||0),o&23&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Y2(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,r,s=a=>{t(2,r=a.target.clientWidth)};return i.$$set=a=>{"videoEpisode"in a&&t(0,n=a.videoEpisode),"disabled"in a&&t(1,o=a.disabled)},[n,o,r,s]}var Ou=class extends B{constructor(e){super(),N(this,e,Y2,G2,V,{videoEpisode:0,disabled:1},K2)}},vm=Ou;function Q2(i){be(i,"svelte-1rzxunm",".video-episodes-wrap.svelte-1rzxunm{position:absolute;width:100%;height:100%}.video-episode.svelte-1rzxunm{position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:-5px;padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s}.video-episode.svelte-1rzxunm:not(.disabled):where(:hover, :active){transform:scaleY(1.5)}.video-episode-inner.svelte-1rzxunm,.video-episode-loaded.svelte-1rzxunm,.video-episode-filled.svelte-1rzxunm{position:absolute;height:var(--slider-height);border-radius:var(--slider-radius)}.video-episode-inner.svelte-1rzxunm{position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg)}.video-episode-loaded.svelte-1rzxunm{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.video-episode-filled.svelte-1rzxunm{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}")}function ym(i,e,t){let n=i.slice();return n[3]=e[t],n}function km(i){let e,t,n,o,r,s,a,l,u;return{c(){e=S("div"),t=S("div"),n=S("div"),r=j(),s=S("div"),l=j(),f(n,"class","video-episode-loaded svelte-1rzxunm"),f(n,"style",o=`transform: translateX(${i[3].loadedWidth/i[3].width*100}%)`),f(s,"class","video-episode-filled svelte-1rzxunm"),f(s,"style",a=`transform: translateX(${i[3].filledWidth/i[3].width*100}%)`),z(s,"mobile",i[1]),f(t,"class","video-episode-inner svelte-1rzxunm"),f(e,"class","video-episode svelte-1rzxunm"),f(e,"style",u=`left: ${i[3].from}%; width: ${i[3].width}%`),z(e,"disabled",i[2]),z(e,"mobile",i[1])},m(c,m){v(c,e,m),_(e,t),_(t,n),_(t,r),_(t,s),_(e,l)},p(c,m){m&1&&o!==(o=`transform: translateX(${c[3].loadedWidth/c[3].width*100}%)`)&&f(n,"style",o),m&1&&a!==(a=`transform: translateX(${c[3].filledWidth/c[3].width*100}%)`)&&f(s,"style",a),m&2&&z(s,"mobile",c[1]),m&1&&u!==(u=`left: ${c[3].from}%; width: ${c[3].width}%`)&&f(e,"style",u),m&4&&z(e,"disabled",c[2]),m&2&&z(e,"mobile",c[1])},d(c){c&&b(e)}}}function Z2(i){let e,t=_t(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=km(ym(i,t,o));return{c(){e=S("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","video-episodes-wrap svelte-1rzxunm")},m(o,r){v(o,e,r);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(e,null)},p(o,[r]){if(r&7){t=_t(o[0]);let s;for(s=0;s<t.length;s+=1){let a=ym(o,t,s);n[s]?n[s].p(a,r):(n[s]=km(a),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},i:me,o:me,d(o){o&&b(e),ti(n,o)}}}function X2(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e,{disabled:r}=e;return i.$$set=s=>{"videoEpisodes"in s&&t(0,n=s.videoEpisodes),"isMobile"in s&&t(1,o=s.isMobile),"disabled"in s&&t(2,r=s.disabled)},[n,o,r]}var Fu=class extends B{constructor(e){super(),N(this,e,X2,Z2,V,{videoEpisodes:0,isMobile:1,disabled:2},Q2)}},wm=Fu;function J2(i){be(i,"svelte-v8ydei",".interactive-icons.svelte-v8ydei.svelte-v8ydei{position:absolute;width:calc(100% - 20px);top:-28px}.interactive-icons.mobile.svelte-v8ydei.svelte-v8ydei{top:-10px}.slider.svelte-v8ydei.svelte-v8ydei{position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent}.no-handle.svelte-v8ydei.svelte-v8ydei{cursor:default}.slider.svelte-v8ydei.svelte-v8ydei:before{content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2)}.bars.svelte-v8ydei.svelte-v8ydei{position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg)}.loaded.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.filled.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}.slider.square.svelte-v8ydei.svelte-v8ydei,.slider.square.svelte-v8ydei>.bars.svelte-v8ydei,.slider.square.svelte-v8ydei .loaded.svelte-v8ydei,.slider.square.svelte-v8ydei .filled.svelte-v8ydei{border-radius:unset}.filled.active-live.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.filled.ads.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-ads)}.handleWrap.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%}.handle.svelte-v8ydei.svelte-v8ydei{position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-filled-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform}.handle.active-live.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.slider.svelte-v8ydei:hover .handle.svelte-v8ydei,.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{transform:scale(1.3)}.slider-vertical.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.slider.disabled.svelte-v8ydei.svelte-v8ydei{cursor:default;opacity:0.4}")}function Cm(i,e,t){let n=i.slice();return n[50]=e[t],n}function Sm(i){let e,t,n=_t(i[21]),o=[];for(let s=0;s<n.length;s+=1)o[s]=Im(Cm(i,n,s));let r=s=>p(o[s],1,1,()=>{o[s]=null});return{c(){e=S("div");for(let s=0;s<o.length;s+=1)o[s].c();f(e,"class","interactive-icons svelte-v8ydei"),z(e,"mobile",i[6]),z(e,"hidden",i[6]&&!i[20])},m(s,a){v(s,e,a);for(let l=0;l<o.length;l+=1)o[l]&&o[l].m(e,null);t=!0},p(s,a){if(a[0]&2098176){n=_t(s[21]);let l;for(l=0;l<n.length;l+=1){let u=Cm(s,n,l);o[l]?(o[l].p(u,a),d(o[l],1)):(o[l]=Im(u),o[l].c(),d(o[l],1),o[l].m(e,null))}for(le(),l=n.length;l<o.length;l+=1)r(l);ae()}(!t||a[0]&64)&&z(e,"mobile",s[6]),(!t||a[0]&1048640)&&z(e,"hidden",s[6]&&!s[20])},i(s){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(s){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)p(o[a]);t=!1},d(s){s&&b(e),ti(o,s)}}}function Tm(i){let e,t;return e=new vm({props:{videoEpisode:i[50],disabled:i[10]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisode=n[50]),o[0]&1024&&(r.disabled=n[10]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Im(i){let e,t,n=i[50].interactive&&Tm(i);return{c(){n&&n.c(),e=Ze()},m(o,r){n&&n.m(o,r),v(o,e,r),t=!0},p(o,r){o[50].interactive?n?(n.p(o,r),r[0]&2097152&&d(n,1)):(n=Tm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(le(),p(n,1,1,()=>{n=null}),ae())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function $2(i){let e,t,n,o,r,s;return{c(){e=S("div"),t=S("div"),o=j(),r=S("div"),f(t,"class","loaded svelte-v8ydei"),f(t,"style",n=`transform: translateX(${i[12]*100}%);`),f(r,"class","filled svelte-v8ydei"),f(r,"style",s=`transform: translateX(${i[13]*100}%);`),z(r,"active-live",i[5]),z(r,"ads",i[7]),f(e,"class","bars svelte-v8ydei")},m(a,l){v(a,e,l),_(e,t),_(e,o),_(e,r)},p(a,l){l[0]&4096&&n!==(n=`transform: translateX(${a[12]*100}%);`)&&f(t,"style",n),l[0]&8192&&s!==(s=`transform: translateX(${a[13]*100}%);`)&&f(r,"style",s),l[0]&32&&z(r,"active-live",a[5]),l[0]&128&&z(r,"ads",a[7])},i:me,o:me,d(a){a&&b(e)}}}function ev(i){let e,t;return e=new wm({props:{videoEpisodes:i[21],disabled:i[10],isMobile:i[6]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisodes=n[21]),o[0]&1024&&(r.disabled=n[10]),o[0]&64&&(r.isMobile=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function tv(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g=i[9]&&Sm(i),T=[ev,$2],k=[];function D(I,C){return I[21].length?0:1}return n=D(i,[-1,-1]),o=k[n]=T[n](i),{c(){g&&g.c(),e=j(),t=S("div"),o.c(),r=j(),s=S("div"),a=S("div"),f(a,"class","handle svelte-v8ydei"),z(a,"active-live",i[5]),f(s,"class","handleWrap svelte-v8ydei"),f(s,"style",l=`transform: translateX(${i[14]*100}%);`),z(s,"hidden",i[11]),f(t,"class",u="slider "+i[1]+" svelte-v8ydei"),f(t,"aria-label",i[15]),f(t,"aria-valuemin",i[16]),f(t,"aria-valuemax",i[17]),f(t,"aria-valuenow",i[18]),f(t,"aria-valuetext",i[19]),f(t,"role","slider"),f(t,"tabindex","0"),f(t,"data-testid",c=i[2]??null),z(t,"disabled",i[10]),z(t,"slider-dragging",i[20]),z(t,"hidden",i[3]),z(t,"slider-vertical",i[4]),z(t,"no-handle",i[11]),z(t,"square",i[8])},m(I,C){g&&g.m(I,C),v(I,e,C),v(I,t,C),k[n].m(t,null),_(t,r),_(t,s),_(s,a),i[44](t),m=!0,h||(y=[Te(t,"pointerdown",ii(i[22])),Te(t,"pointermove",ii(i[23])),Te(t,"pointerup",ii(i[24])),Te(t,"pointerenter",ii(i[25])),Te(t,"pointerleave",ii(i[26])),Te(t,"click",mt(i[28])),Te(t,"wheel",i[27])],h=!0)},p(I,C){I[9]?g?(g.p(I,C),C[0]&512&&d(g,1)):(g=Sm(I),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(le(),p(g,1,1,()=>{g=null}),ae());let P=n;n=D(I,C),n===P?k[n].p(I,C):(le(),p(k[P],1,1,()=>{k[P]=null}),ae(),o=k[n],o?o.p(I,C):(o=k[n]=T[n](I),o.c()),d(o,1),o.m(t,r)),(!m||C[0]&32)&&z(a,"active-live",I[5]),(!m||C[0]&16384&&l!==(l=`transform: translateX(${I[14]*100}%);`))&&f(s,"style",l),(!m||C[0]&2048)&&z(s,"hidden",I[11]),(!m||C[0]&2&&u!==(u="slider "+I[1]+" svelte-v8ydei"))&&f(t,"class",u),(!m||C[0]&32768)&&f(t,"aria-label",I[15]),(!m||C[0]&65536)&&f(t,"aria-valuemin",I[16]),(!m||C[0]&131072)&&f(t,"aria-valuemax",I[17]),(!m||C[0]&262144)&&f(t,"aria-valuenow",I[18]),(!m||C[0]&524288)&&f(t,"aria-valuetext",I[19]),(!m||C[0]&4&&c!==(c=I[2]??null))&&f(t,"data-testid",c),(!m||C[0]&1026)&&z(t,"disabled",I[10]),(!m||C[0]&1048578)&&z(t,"slider-dragging",I[20]),(!m||C[0]&10)&&z(t,"hidden",I[3]),(!m||C[0]&18)&&z(t,"slider-vertical",I[4]),(!m||C[0]&2050)&&z(t,"no-handle",I[11]),(!m||C[0]&258)&&z(t,"square",I[8])},i(I){m||(d(g),d(o),m=!0)},o(I){p(g),p(o),m=!1},d(I){I&&(b(e),b(t)),g&&g.d(I),k[n].d(),i[44](null),h=!1,st(y)}}}function iv(i,e,t){let n,o,{ref:r=void 0}=e,{className:s=""}=e,{testId:a=void 0}=e,{isHidden:l=!1}=e,{isVertical:u=!1}=e,{isActiveLive:c=!1}=e,{isMobile:m=!1}=e,{isAds:h=!1}=e,{squareBorders:y=!1}=e,{videoEpisodes:g=[]}=e,{withWheelHandler:T=!1}=e,{isInteractive:k=!1}=e,{disabled:D=!1}=e,{hideHandel:I=!1}=e,C,{onPointerDown:P=dn.noop}=e,{onHandleMove:G=dn.noop}=e,{onPointerUp:x=dn.noop}=e,{onPointerEnter:O=dn.noop}=e,{onPointerMove:$=dn.noop}=e,{onPointerLeave:se=dn.noop}=e,{onWheelUp:K=dn.noop}=e,{onWheelDown:te=dn.noop}=e,{onWheelLeft:q=dn.noop}=e,{onWheelRight:J=dn.noop}=e,{onDisabledClick:ke=dn.noop}=e,{loadedProgress:H=0}=e,{filledProgress:ne=0}=e,{handleProgress:F=0}=e,{ariaLabel:_e=""}=e,{ariaValueMin:oe=void 0}=e,{ariaValueMax:Q=void 0}=e,{ariaValueNow:Z=void 0}=e,{ariaValueText:de=""}=e,qe=It(),Je=!1,Pe;function Se(pe){if(r&&(C=r.getBoundingClientRect()),D||Je||!r)return;t(20,Je=!0);let Ee=tt(pe.clientX,pe.clientY);P(Ee),r.setPointerCapture(pe.pointerId)}function Ae(pe){if(D)return;let Ee=tt(pe.clientX,pe.clientY),Me=it(pe.clientX);$(Ee,Me,C.width),Je&&G(Ee)}function Ke(pe){if(D||!Je)return;t(20,Je=!1);let Ee=tt(pe.clientX,pe.clientY);x(Ee)}function X(pe){if(r&&(C=r.getBoundingClientRect()),D)return;let Ee=tt(pe.clientX,pe.clientY),Me=it(pe.clientX);O(Ee,Me,C.width)}function he(){D||se()}function Ie(pe){D||T&&(pe.preventDefault(),pe.deltaY<0?K():pe.deltaY>0?te():pe.deltaX>0?J():q())}function Ye(pe){D&&ke(tt(pe.clientX,pe.clientY))}function tt(pe,Ee){return u?Math.max(0,Math.min(1,(C.height-(Ee-C.top))/C.height)):Math.min(Math.max(pe-C.x,0),C.width)/C.width}function it(pe){return Math.min(Math.max(pe-C.x,0),C.width)}function rt(pe,Ee){let Me=qe.features.episodesClustering&&!k?qe.episodeMinWidthPc:0,Xe=[],Qe=g[0].time/Pe*100,Oe=0,ce=0;for(let gt=1;gt<g.length;gt++)Oe=g[gt].time/Pe*100,Oe-Qe>Me&&(Xe.push({from:Qe,width:Math.max(0,Oe-Qe),loadedWidth:Math.max(0,Math.min(Oe,pe)-Qe),filledWidth:Math.max(0,Math.min(Oe,Ee)-Qe),interactive:g[gt-1].interactive,completed:g[gt-1].completed}),Qe=g[gt].time/Pe*100,ce++);let ct={from:Qe,width:Math.max(0,100-Qe),loadedWidth:Math.max(0,Math.min(pe,100)-Qe),filledWidth:Math.max(0,Math.min(Ee,100)-Qe),interactive:g[ce].interactive,completed:g[ce].completed};100-Qe<Me?(ce-=1,Xe[ce].width+=100-Qe,Xe[ce].loadedWidth+=Math.max(0,Math.min(pe,100)-Qe),Xe[ce].filledWidth+=Math.max(0,Math.min(Ee,100)-Qe)):Xe[ce]=ct;let ht=g[0].time;if(ht!==0){let gt=ht/Pe*100;Xe.unshift({from:0,width:gt,loadedWidth:Math.min(gt,pe),filledWidth:Math.min(gt,Ee)})}return Xe}function $e(pe){ve[pe?"unshift":"push"](()=>{r=pe,t(0,r)})}return i.$$set=pe=>{"ref"in pe&&t(0,r=pe.ref),"className"in pe&&t(1,s=pe.className),"testId"in pe&&t(2,a=pe.testId),"isHidden"in pe&&t(3,l=pe.isHidden),"isVertical"in pe&&t(4,u=pe.isVertical),"isActiveLive"in pe&&t(5,c=pe.isActiveLive),"isMobile"in pe&&t(6,m=pe.isMobile),"isAds"in pe&&t(7,h=pe.isAds),"squareBorders"in pe&&t(8,y=pe.squareBorders),"videoEpisodes"in pe&&t(29,g=pe.videoEpisodes),"withWheelHandler"in pe&&t(30,T=pe.withWheelHandler),"isInteractive"in pe&&t(9,k=pe.isInteractive),"disabled"in pe&&t(10,D=pe.disabled),"hideHandel"in pe&&t(11,I=pe.hideHandel),"onPointerDown"in pe&&t(31,P=pe.onPointerDown),"onHandleMove"in pe&&t(32,G=pe.onHandleMove),"onPointerUp"in pe&&t(33,x=pe.onPointerUp),"onPointerEnter"in pe&&t(34,O=pe.onPointerEnter),"onPointerMove"in pe&&t(35,$=pe.onPointerMove),"onPointerLeave"in pe&&t(36,se=pe.onPointerLeave),"onWheelUp"in pe&&t(37,K=pe.onWheelUp),"onWheelDown"in pe&&t(38,te=pe.onWheelDown),"onWheelLeft"in pe&&t(39,q=pe.onWheelLeft),"onWheelRight"in pe&&t(40,J=pe.onWheelRight),"onDisabledClick"in pe&&t(41,ke=pe.onDisabledClick),"loadedProgress"in pe&&t(12,H=pe.loadedProgress),"filledProgress"in pe&&t(13,ne=pe.filledProgress),"handleProgress"in pe&&t(14,F=pe.handleProgress),"ariaLabel"in pe&&t(15,_e=pe.ariaLabel),"ariaValueMin"in pe&&t(16,oe=pe.ariaValueMin),"ariaValueMax"in pe&&t(17,Q=pe.ariaValueMax),"ariaValueNow"in pe&&t(18,Z=pe.ariaValueNow),"ariaValueText"in pe&&t(19,de=pe.ariaValueText)},i.$$.update=()=>{i.$$.dirty[0]&131072&&t(42,Pe=Q??0),i.$$.dirty[0]&536870912|i.$$.dirty[1]&2048&&t(43,n=(0,dn.isNonNullable)(g)&&g[g.length-1]?.time<Pe),i.$$.dirty[0]&536883200|i.$$.dirty[1]&6144&&t(21,o=(0,dn.isNonNullable)(g)&&g.length&&n&&Pe?rt(H*100,ne*100):[])},[r,s,a,l,u,c,m,h,y,k,D,I,H,ne,F,_e,oe,Q,Z,de,Je,o,Se,Ae,Ke,X,he,Ie,Ye,g,T,P,G,x,O,$,se,K,te,q,J,ke,Pe,n,$e]}var xu=class extends B{constructor(e){super(),N(this,e,iv,tv,V,{ref:0,className:1,testId:2,isHidden:3,isVertical:4,isActiveLive:5,isMobile:6,isAds:7,squareBorders:8,videoEpisodes:29,withWheelHandler:30,isInteractive:9,disabled:10,hideHandel:11,onPointerDown:31,onHandleMove:32,onPointerUp:33,onPointerEnter:34,onPointerMove:35,onPointerLeave:36,onWheelUp:37,onWheelDown:38,onWheelLeft:39,onWheelRight:40,onDisabledClick:41,loadedProgress:12,filledProgress:13,handleProgress:14,ariaLabel:15,ariaValueMin:16,ariaValueMax:17,ariaValueNow:18,ariaValueText:19},J2,[-1,-1])}},zr=xu;var mi=(i,e)=>nr[i]>=nr[e],Pm=(i,e)=>nr[i]<nr[e],Uo=(i,e)=>nr[i]<=nr[e],Em=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function nv(i){be(i,"svelte-1l78lz9",".volumeBar-container.svelte-1l78lz9{display:flex;align-items:center}.volumeBar-container.vertical.svelte-1l78lz9,.vertical.svelte-1l78lz9 .tooltip-wrapper,.vertical.svelte-1l78lz9 .btn{width:40px}.volumeBar.svelte-1l78lz9{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.svelte-1l78lz9{padding:0 8px 0 0;width:0}")}function ov(i){let e,t;return e=new mr({props:{volume:i[3],muted:i[1]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.volume=n[3]),o[0]&2&&(r.muted=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function rv(i){let e,t;return e=new dt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:co.KeyM,$$slots:{default:[ov]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&512&&(r.disabled=n[9]),o[0]&4&&(r.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(r.ariaLabel=n[7]),o[0]&1&&(r.click=n[0]),o[0]&10|o[1]&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Am(i){let e,t,n;return t=new zr({props:{className:i[2]?"volumeBar-slider-vertical":"",isHidden:i[2]&&!i[5],isVertical:i[2],withWheelHandler:!0,onWheelUp:i[15],onWheelDown:i[16],onPointerDown:i[14],onHandleMove:i[17],onPointerUp:i[18],onPointerEnter:i[2]?i[19]:Io.noop,onPointerLeave:i[2]?i[20]:Io.noop,ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(i[8]*100),ariaValueText:`${Math.round(i[8]*100)}%`,filledProgress:i[8],handleProgress:i[8],testId:i[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","volumeBar svelte-1l78lz9"),z(e,"volumeBar-vertical",i[2])},m(o,r){v(o,e,r),E(t,e,null),n=!0},p(o,r){let s={};r[0]&4&&(s.className=o[2]?"volumeBar-slider-vertical":""),r[0]&36&&(s.isHidden=o[2]&&!o[5]),r[0]&4&&(s.isVertical=o[2]),r[0]&4&&(s.onPointerEnter=o[2]?o[19]:Io.noop),r[0]&4&&(s.onPointerLeave=o[2]?o[20]:Io.noop),r[0]&256&&(s.ariaValueNow=Math.round(o[8]*100)),r[0]&256&&(s.ariaValueText=`${Math.round(o[8]*100)}%`),r[0]&256&&(s.filledProgress=o[8]),r[0]&256&&(s.handleProgress=o[8]),r[0]&4&&(s.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(s),(!n||r[0]&4)&&z(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function sv(i){let e,t,n,o,r,s;t=new Ur({props:{content:i[6],translateY:-18,$$slots:{default:[rv]},$$scope:{ctx:i}}});let a=i[4]&&Am(i);return{c(){e=S("div"),M(t.$$.fragment),n=j(),a&&a.c(),f(e,"class","volumeBar-container svelte-1l78lz9"),z(e,"vertical",i[2])},m(l,u){v(l,e,u),E(t,e,null),_(e,n),a&&a.m(e,null),o=!0,r||(s=[Te(e,"mouseenter",function(){Wt(i[2]?i[21]:Io.noop)&&(i[2]?i[21]:Io.noop).apply(this,arguments)}),Te(e,"mouseleave",function(){Wt(i[2]?i[22]:Io.noop)&&(i[2]?i[22]:Io.noop).apply(this,arguments)}),Te(e,"wheel",ii(i[23]))],r=!0)},p(l,u){i=l;let c={};u[0]&64&&(c.content=i[6]),u[0]&655|u[1]&32&&(c.$$scope={dirty:u,ctx:i}),t.$set(c),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=Am(i),a.c(),d(a,1),a.m(e,null)):a&&(le(),p(a,1,1,()=>{a=null}),ae()),(!o||u[0]&4)&&z(e,"vertical",i[2])},i(l){o||(d(t.$$.fragment,l),d(a),o=!0)},o(l){p(t.$$.fragment,l),p(a),o=!1},d(l){l&&b(e),A(t),a&&a.d(),r=!1,st(s)}}}function lv(i,e,t){let n,o,r,s,{click:a}=e,l=et(),u=It(),c=l.state.volume$;R(i,c,qe=>t(3,n=qe));let m=l.state.muted$;R(i,m,qe=>t(25,s=qe));let h=l.actions.internal.setVolume,y=l.ui.currentGridType$;R(i,y,qe=>t(24,r=qe));let g=l.callbacks?.onAudioDoesNotExistHint,T=l.callbacks?.onAudioDisabledHint,k=l.state.isAudioAvailable$;R(i,k,qe=>t(4,o=qe));let D=l.state.isAudioDisabled,I=!1,C,P,G,x,O,$,se=1,K=!1,te=!1;function q(qe){se=n,h(qe)}function J(){ul(l,n,u.controls.volumeStepWheel)}function ke(){cl(l,n,u.controls.volumeStepWheel)}function H(qe){h(qe)}function ne(qe){let Je=qe;h(Je,Je===0?se:Je)}function F(){K=!0}function _e(){K=!1,Z()}function oe(){clearTimeout(C),t(5,I=!0)}function Q(){Z()}function Z(){C=window.setTimeout(()=>{K||t(5,I=!1)},u.controls.volumeBarTimeout)}function de(qe){qe.deltaY<0?J():qe.deltaY>0&&ke()}return i.$$set=qe=>{"click"in qe&&t(0,a=qe.click)},i.$$.update=()=>{i.$$.dirty[0]&33554448&&t(1,x=!o||s),i.$$.dirty[0]&16777216&&t(2,O=Uo(r,"s")),i.$$.dirty[0]&6&&(O?t(6,P=""):t(6,P=x?W("tooltip_volume"):W("tooltip_volume_muted")),t(7,G=x?W("tooltip_volume"):W("tooltip_volume_muted"))),i.$$.dirty[0]&10&&t(8,$=x?0:n),i.$$.dirty[0]&16&&(o?t(9,te=D&&!T):t(9,te=!g))},[a,x,O,n,o,I,P,G,$,te,c,m,y,k,q,J,ke,H,ne,F,_e,oe,Q,de,r,s]}var Hu=class extends B{constructor(e){super(),N(this,e,lv,sv,V,{click:0},nv,[-1,-1])}},Mm=Hu;var Rm=require("@vkontakte/videoplayer-shared");function av(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=L("svg"),a&&a.c(),t=L("g"),n=L("path"),o=L("path"),f(n,"d","M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z"),f(n,"class","_exit"),f(o,"d","M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"),f(o,"class","_enter"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),Ce(e,u)},m(c,m){v(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),Ce(e,u=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&b(e),a&&a.d(c)}}}function uv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var qu=class extends B{constructor(e){super(),N(this,e,uv,av,V,{})}},Lm=qu;function cv(i){be(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function fv(i){let e,t;return e=new Lm({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function dv(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Uu=class extends B{constructor(e){super(),N(this,e,dv,fv,V,{isFullscreen:0},cv)}},Vm=Uu;function mv(i){let e,t;return e=new Vm({props:{isFullscreen:i[0]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.isFullscreen=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function pv(i){let e,t;return e=new dt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:co.KeyF,$$slots:{default:[mv]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function _v(i,e,t){let{isFullscreen:n=!1}=e,{click:o=Rm.noop}=e,r;return i.$$set=s=>{"isFullscreen"in s&&t(0,n=s.isFullscreen),"click"in s&&t(1,o=s.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=n?W("tooltip_fullscreen_on"):W("tooltip_fullscreen_off"))},[n,o,r]}var zu=class extends B{constructor(e){super(),N(this,e,_v,pv,V,{isFullscreen:0,click:1})}},vl=zu;function hv(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z"),f(t,"clip-rule","evenodd"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function gv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Wu=class extends B{constructor(e){super(),N(this,e,gv,hv,V,{})}},Bm=Wu;function bv(i){let e,t,n,o,r,s,a=i[2].default,l=Le(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],c={};for(let m=0;m<u.length;m+=1)c=re(c,u[m]);return{c(){e=L("svg"),l&&l.c(),t=L("path"),n=L("path"),o=L("path"),r=L("path"),f(t,"fill","#fff"),f(t,"d","M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"),f(n,"fill","#fff"),f(n,"d","M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35"),f(n,"class","_ru"),f(o,"fill","#fff"),f(o,"d","M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635"),f(o,"class","_en"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"d","M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"),f(r,"clip-rule","evenodd"),Ce(e,c)},m(m,h){v(m,e,h),l&&l.m(e,null),_(e,t),_(e,n),_(e,o),_(e,r),s=!0},p(m,[h]){l&&l.p&&(!s||h&2)&&Re(l,a,m,m[1],s?Ve(a,m[1],h,null):Be(m[1]),null),Ce(e,c=He(u,[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},h&1&&m[0]]))},i(m){s||(d(l,m),s=!0)},o(m){p(l,m),s=!1},d(m){m&&b(e),l&&l.d(m)}}}function vv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Ku=class extends B{constructor(e){super(),N(this,e,vv,bv,V,{})}},Nm=Ku;function yv(i){be(i,"svelte-1nhjml",'svg[data-testid="vk-video-logo-icon--short"] ._ru,svg[data-testid="vk-video-logo-icon--short"] ._en,svg[data-testid="vk-video-logo-icon"] ._en,svg[data-testid="vk-video-logo-icon--en"] ._ru{visibility:hidden;opacity:0}')}function kv(i){let e,t;return e=new Nm({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.width=n[0]),o&1&&(r.viewBox="0 0 "+(n[0]+1)+" 24"),o&2&&(r["data-testid"]=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}var wv="vk-video-logo-icon--short";function Cv(i,e,t){let{short:n=!1}=e,{isCyrillic:o=!0}=e,r,s;return i.$$set=a=>{"short"in a&&t(2,n=a.short),"isCyrillic"in a&&t(3,o=a.isCyrillic)},i.$$.update=()=>{i.$$.dirty&12&&(t(0,r=n?21:95),t(1,s=n?wv:"vk-video-logo-icon"),!o&&!n&&(t(0,r=91),t(1,s="vk-video-logo-icon--en")))},[r,s,n,o]}var ju=class extends B{constructor(e){super(),N(this,e,Cv,kv,V,{short:2,isCyrillic:3},yv)}},Dm=ju;function Tv(i){let e,t;return e=new Bm({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Iv(i){let e,t;return e=new Dm({props:{short:i[4],isCyrillic:i[5]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.short=n[4]),o&32&&(r.isCyrillic=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Pv(i){let e,t,n,o,r=[Iv,Tv],s=[];function a(l,u){return l[2]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Ze()},m(l,u){s[e].m(l,u),v(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(le(),p(s[c],1,1,()=>{s[c]=null}),ae(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),s[e].d(l)}}}function Ev(i){let e,t,n;function o(s){i[14](s)}let r={className:"btn-full-opacity",disabled:!i[1],click:i[9],testId:i[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[3],$$slots:{default:[Pv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.disabled=!s[1]),a&4&&(l.testId=s[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(l.ariaLabel=s[3]),a&131124&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Av(i,e,t){let n,o,r,{ref:s=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:l=""}=e,{click:u}=e,c=It(),m=et(),h=m.ui.currentGridType$;R(i,h,P=>t(12,n=P));let y=m.ui.isMobile;R(i,y,P=>t(13,o=P));let g=m.isCyrillicRelatedInterface$;R(i,g,P=>t(5,r=P));let T,k,D,I=()=>{u(),m.callbacks?.onLogoClicked?m.callbacks?.onLogoClicked():l&&window.open(l,"_blank")};function C(P){s=P,t(0,s)}return i.$$set=P=>{"ref"in P&&t(0,s=P.ref),"logoClickable"in P&&t(1,a=P.logoClickable),"targetUrl"in P&&t(10,l=P.targetUrl),"click"in P&&t(11,u=P.click)},i.$$.update=()=>{i.$$.dirty&12292&&t(4,D=(o||Uo(n,"l"))&&k)},t(3,T=c.logoType==="vk_video"?W("tooltip_vk_video_logo"):W("tooltip_vk_logo")),t(2,k=c.logoType==="vk_video"||c.logoType==="vk_video_mobile"),[s,a,k,T,D,r,h,y,g,I,l,u,n,o,C]}var Gu=class extends B{constructor(e){super(),N(this,e,Av,Ev,V,{ref:0,logoClickable:1,targetUrl:10,click:11})}},yl=Gu;var Fm=require("@vkontakte/videoplayer-core");var Yu=require("@vkontakte/videoplayer-core");function Mv(i){be(i,"svelte-8z1bf5",".connecting.svelte-8z1bf5 .wave.svelte-8z1bf5{animation-duration:1s;animation-iteration-count:infinite}.connecting.svelte-8z1bf5 .wave1.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave1}.connecting.svelte-8z1bf5 .wave2.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave2}.connecting.svelte-8z1bf5 .wave3.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave3}@keyframes svelte-8z1bf5-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}")}function Lv(i){let e,t,n,o,r,s,a,l;return{c(){e=L("svg"),t=L("g"),n=L("path"),o=L("path"),r=L("path"),s=L("path"),a=L("path"),l=L("path"),f(n,"class","wave wave1 svelte-8z1bf5"),f(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),f(n,"fill","#fff"),f(o,"class","wave wave2 svelte-8z1bf5"),f(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),f(o,"fill","#fff"),f(r,"class","wave wave3 svelte-8z1bf5"),f(r,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),f(r,"fill","#fff"),f(s,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),f(s,"fill","#fff"),f(a,"d","M0 0h24v24H0z"),f(l,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),f(l,"fill","#fff"),z(l,"hidden",!i[1]),f(t,"fill","none"),f(t,"fill-rule","evenodd"),f(e,"width","24"),f(e,"height","24"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-icon"),f(e,"class","svelte-8z1bf5"),z(e,"connecting",i[2])},m(u,c){v(u,e,c),_(e,t),_(t,n),_(t,o),_(t,r),_(t,s),_(t,a),_(t,l)},p(u,c){c&2&&z(l,"hidden",!u[1]),c&4&&z(e,"connecting",u[2])},d(u){u&&b(e)}}}function Vv(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C,P,G;return{c(){e=L("svg"),t=L("g"),n=L("mask"),o=L("path"),s=L("path"),a=L("path"),u=L("path"),c=L("defs"),m=L("clipPath"),h=L("path"),g=L("filter"),T=L("feFlood"),k=L("feColorMatrix"),D=L("feOffset"),I=L("feGaussianBlur"),C=L("feColorMatrix"),P=L("feBlend"),G=L("feBlend"),f(o,"fill",r=i[1]?"#2688EB":"#fff"),f(o,"d","M1.1 3.1h22v18h-22z"),f(s,"fill-rule","evenodd"),f(s,"clip-rule","evenodd"),f(s,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),f(n,"id","c"),f(n,"maskUnits","userSpaceOnUse"),f(n,"x","1.1"),f(n,"y","3.1"),f(n,"width","22"),f(n,"height","18"),f(n,"fill","#000"),f(a,"fill-rule","evenodd"),f(a,"clip-rule","evenodd"),f(a,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),f(a,"fill",l=i[1]?"#2688EB":"#fff"),f(u,"d","m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z"),f(u,"fill","#000"),f(u,"fill-opacity",".12"),f(u,"mask","url(#c)"),f(t,"filter","url(#b)"),f(t,"clip-path","url(#a)"),f(h,"fill",y=i[1]?"#2688EB":"#fff"),f(h,"d","M0 0h24v24H0z"),f(m,"id","a"),f(T,"flood-opacity","0"),f(T,"result","BackgroundImageFix"),f(k,"in","SourceAlpha"),f(k,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(k,"result","hardAlpha"),f(I,"stdDeviation","2.5"),f(C,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(P,"in2","BackgroundImageFix"),f(P,"result","effect1_dropShadow_4085_178456"),f(G,"in","SourceGraphic"),f(G,"in2","effect1_dropShadow_4085_178456"),f(G,"result","shape"),f(g,"id","b"),f(g,"x","-3.4"),f(g,"y","-1.4"),f(g,"width","30.8"),f(g,"height","26.802"),f(g,"filterUnits","userSpaceOnUse"),f(g,"color-interpolation-filters","sRGB"),f(e,"width","24"),f(e,"height","24"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-mobile-icon")},m(x,O){v(x,e,O),_(e,t),_(t,n),_(n,o),_(n,s),_(t,a),_(t,u),_(e,c),_(c,m),_(m,h),_(c,g),_(g,T),_(g,k),_(g,D),_(g,I),_(g,C),_(g,P),_(g,G)},p(x,O){O&2&&r!==(r=x[1]?"#2688EB":"#fff")&&f(o,"fill",r),O&2&&l!==(l=x[1]?"#2688EB":"#fff")&&f(a,"fill",l),O&2&&y!==(y=x[1]?"#2688EB":"#fff")&&f(h,"fill",y)},d(x){x&&b(e)}}}function Rv(i){let e;function t(r,s){return r[0]?Vv:Lv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Ze()},m(r,s){o.m(r,s),v(r,e,s)},p(r,[s]){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:me,o:me,d(r){r&&b(e),o.d(r)}}}function Bv(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,r,s;return i.$$set=a=>{"isMobile"in a&&t(0,n=a.isMobile),"state"in a&&t(3,o=a.state)},i.$$.update=()=>{i.$$.dirty&8&&(t(2,s=o===Yu.ChromecastState.CONNECTING),t(1,r=o===Yu.ChromecastState.CONNECTED))},[n,r,s,o]}var Qu=class extends B{constructor(e){super(),N(this,e,Bv,Rv,V,{isMobile:0,state:3},Mv)}},Om=Qu;var xm=require("@vkontakte/videoplayer-shared");function Nv(i){let e,t;return e=new Om({props:{isMobile:i[1],state:i[2]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&4&&(r.state=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Dv(i){let e,t,n;function o(s){i[5](s)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[Nv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&16&&(l.ariaLabel=s[4]),a&8&&(l.click=s[3]),a&70&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Ov(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:s=xm.noop}=e,a;function l(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"state"in u&&t(2,r=u.state),"click"in u&&t(3,s=u.click)},i.$$.update=()=>{i.$$.dirty&4&&t(4,a=r===Fm.ChromecastState.CONNECTED?W("tooltip_chromecast_on"):W("tooltip_chromecast_off"))},[n,o,r,s,a,l]}var Zu=class extends B{constructor(e){super(),N(this,e,Ov,Dv,V,{ref:0,isMobile:1,state:2,click:3})}},kl=Zu;function Fv(i){be(i,"svelte-5ygsa2",'.tooltip-wrapper.svelte-5ygsa2{position:relative;display:block}.tooltip.svelte-5ygsa2{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.pointer.svelte-5ygsa2:after{position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px)}.tooltip.active.svelte-5ygsa2{opacity:1;visibility:visible}')}function xv(i){let e,t,n,o,r=i[9].default,s=Le(r,i,i[8],null);return{c(){e=S("div"),t=S("div"),s&&s.c(),f(t,"class","tooltip svelte-5ygsa2"),z(t,"active",i[0]),z(t,"pointer",i[1]),f(e,"class","tooltip-wrapper svelte-5ygsa2"),f(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(a,l){v(a,e,l),_(e,t),s&&s.m(t,null),i[10](t),i[11](e),o=!0},p(a,[l]){s&&s.p&&(!o||l&256)&&Re(s,r,a,a[8],o?Ve(r,a[8],l,null):Be(a[8]),null),(!o||l&1)&&z(t,"active",a[0]),(!o||l&2)&&z(t,"pointer",a[1]),(!o||l&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&f(e,"style",n)},i(a){o||(d(s,a),o=!0)},o(a){p(s,a),o=!1},d(a){a&&b(e),s&&s.d(a),i[10](null),i[11](null)}}}function Hv(i,e,t){let n,{$$slots:o={},$$scope:r}=e,{active:s=!1}=e,{pointer:a=!1}=e,{translateXPx:l=0}=e,{translateYPx:u=0}=e,{containerWidth:c}=e,m,h;function y(k){if(!h)return 0;let{width:D}=h.getBoundingClientRect(),I=D/2;return k<I?I:k>c-I?c-I:k}function g(k){ve[k?"unshift":"push"](()=>{h=k,t(4,h)})}function T(k){ve[k?"unshift":"push"](()=>{m=k,t(3,m)})}return i.$$set=k=>{"active"in k&&t(0,s=k.active),"pointer"in k&&t(1,a=k.pointer),"translateXPx"in k&&t(6,l=k.translateXPx),"translateYPx"in k&&t(2,u=k.translateYPx),"containerWidth"in k&&t(7,c=k.containerWidth),"$$scope"in k&&t(8,r=k.$$scope)},i.$$.update=()=>{i.$$.dirty&64&&t(5,n=y(l))},[s,a,u,m,h,n,l,c,r,o,g,T]}var Xu=class extends B{constructor(e){super(),N(this,e,Hv,xv,V,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},Fv)}},Hm=Xu;var wl=(i,e,t)=>t.filter(n=>n.time<=i*e).pop();function qv(i){be(i,"svelte-l51fc1",".timeline-preview.svelte-l51fc1{bottom:18px;border-radius:2px;pointer-events:none}.timeline-preview.mobile.svelte-l51fc1{bottom:72px}.preview.svelte-l51fc1{margin-bottom:10px;background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white)}.episode.svelte-l51fc1{margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500}.time.svelte-l51fc1{font-size:13px;line-height:16px;text-align:center;color:var(--slider-filled-bg);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500}")}function qm(i){let e,t;return{c(){e=S("div"),f(e,"class","preview svelte-l51fc1"),f(e,"style",t=`width: ${i[3]}px; height: ${i[4]}px; background-image: url(${i[5]}); background-size: ${i[6]}px ${i[7]}px; background-position: ${i[8]}px ${i[9]}px; transform: translateY(${i[11]%180?-35:0}px) rotate(${i[11]}deg);`)},m(n,o){v(n,e,o)},p(n,o){o&3064&&t!==(t=`width: ${n[3]}px; height: ${n[4]}px; background-image: url(${n[5]}); background-size: ${n[6]}px ${n[7]}px; background-position: ${n[8]}px ${n[9]}px; transform: translateY(${n[11]%180?-35:0}px) rotate(${n[11]}deg);`)&&f(e,"style",t)},d(n){n&&b(e)}}}function Um(i){let e;function t(r,s){return r[2]&&r[10].completed===!1?zv:Uv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Ze()},m(r,s){o.m(r,s),v(r,e,s)},p(r,s){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&b(e),o.d(r)}}}function Uv(i){let e=(i[10].text||"")+"",t;return{c(){t=De(e)},m(n,o){v(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&je(t,e)},d(n){n&&b(t)}}}function zv(i){let e=W("tooltip_episode_unfinished")+"",t;return{c(){t=De(e)},m(n,o){v(n,t,o)},p:me,d(n){n&&b(t)}}}function zm(i){let e,t;return{c(){e=S("div"),t=De(i[0]),f(e,"class","time svelte-l51fc1")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&1&&je(t,n[0])},d(n){n&&b(e)}}}function Wv(i){let e,t,n,o,r=i[5]&&qm(i),s=i[10]&&Um(i),a=!i[2]&&zm(i);return{c(){e=S("div"),r&&r.c(),t=j(),n=S("div"),s&&s.c(),o=j(),a&&a.c(),f(n,"class","episode svelte-l51fc1"),f(e,"class","timeline-preview svelte-l51fc1"),z(e,"mobile",i[1])},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),_(e,n),s&&s.m(n,null),_(e,o),a&&a.m(e,null)},p(l,[u]){l[5]?r?r.p(l,u):(r=qm(l),r.c(),r.m(e,t)):r&&(r.d(1),r=null),l[10]?s?s.p(l,u):(s=Um(l),s.c(),s.m(n,null)):s&&(s.d(1),s=null),l[2]?a&&(a.d(1),a=null):a?a.p(l,u):(a=zm(l),a.c(),a.m(e,null)),u&2&&z(e,"mobile",l[1])},i:me,o:me,d(l){l&&b(e),r&&r.d(),s&&s.d(),a&&a.d()}}}var Wr=150;function Kv(i,e,t){let n,{time:o=""}=e,{isMobile:r=!1}=e,{videoEpisodes:s=[]}=e,{previewThumbsData:a}=e,{progress:l=0}=e,{duration:u=0}=e,{isInteractive:c=!1}=e,h=et().ui.rotateAlpha;R(i,h,O=>t(11,n=O));let y,g,T,k,D,I,C,P;function G(){let O=a.frameWidth,$=a.frameHeight;return O>Wr?($=$/O*Wr,O=Wr):$>Wr&&(O=O/$*Wr,$=Wr),{width:O,height:$}}function x(O){let $;a.isUV?$=Math.floor(u*O/a.frequency):$=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*O)));let se=Math.floor($/a.countPerImage),K=Math.floor($%a.countPerImage/a.countPerRow),te=$%a.countPerRow,q=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&se===Math.floor(a.countTotal/a.countPerImage)&&(q=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&q++);let J=a.countPerRow;!a.isUV&&se===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(J=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let ke=y*J,H=g*q,ne=-te*y,F=-K*g;return{imgSrc:a.links[se],imgWidth:ke,imgHeight:H,imgOffsetX:ne,imgOffsetY:F}}return i.$$set=O=>{"time"in O&&t(0,o=O.time),"isMobile"in O&&t(1,r=O.isMobile),"videoEpisodes"in O&&t(13,s=O.videoEpisodes),"previewThumbsData"in O&&t(14,a=O.previewThumbsData),"progress"in O&&t(15,l=O.progress),"duration"in O&&t(16,u=O.duration),"isInteractive"in O&&t(2,c=O.isInteractive)},i.$$.update=()=>{i.$$.dirty&32768&&t(5,{imgSrc:T,imgWidth:k,imgHeight:D,imgOffsetX:I,imgOffsetY:C}=x(l),T,(t(6,k),t(15,l)),(t(7,D),t(15,l)),(t(8,I),t(15,l)),(t(9,C),t(15,l))),i.$$.dirty&106496&&t(10,P=wl(l,u,s))},t(3,{width:y,height:g}=G(),y,t(4,g)),[o,r,c,y,g,T,k,D,I,C,P,n,h,s,a,l,u]}var Ju=class extends B{constructor(e){super(),N(this,e,Kv,Wv,V,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},qv)}},Wm=Ju;function jv(i){be(i,"svelte-5lzly8",".time.svelte-5lzly8{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}")}function Gv(i){let e,t;return{c(){e=S("span"),t=De(i[8]),f(e,"class","time svelte-5lzly8")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o[0]&256&&je(t,n[8])},i:me,o:me,d(n){n&&b(e)}}}function Yv(i){let e,t;return e=new Wm({props:{time:i[8],isMobile:i[11],videoEpisodes:i[4],previewThumbsData:i[22],progress:i[9],duration:i[2],isInteractive:i[24]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&256&&(r.time=n[8]),o[0]&2048&&(r.isMobile=n[11]),o[0]&16&&(r.videoEpisodes=n[4]),o[0]&512&&(r.progress=n[9]),o[0]&4&&(r.duration=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Qv(i){let e,t,n,o,r=[Yv,Gv],s=[];function a(l,u){return l[15].features.timelinePreview&&l[22]&&!l[1]?0:1}return e=a(i,[-1,-1]),t=s[e]=r[e](i),{c(){t.c(),n=Ze()},m(l,u){s[e].m(l,u),v(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(le(),p(s[c],1,1,()=>{s[c]=null}),ae(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),s[e].d(l)}}}function Zv(i){let e,t,n,o,r,s=[i[10]],a={$$slots:{default:[Qv]},$$scope:{ctx:i}};for(let c=0;c<s.length;c+=1)a=re(a,s[c]);e=new Hm({props:a});function l(c){i[43](c)}let u={isActiveLive:i[12],isMobile:i[11],ariaLabel:W("aria_timeline"),ariaValueMin:0,ariaValueMax:i[2],ariaValueNow:Math.round(i[7]*100),ariaValueText:W("aria_timeline_value",{position:i[6],duration:i[5]}),loadedProgress:i[13],filledProgress:i[7],handleProgress:i[7],videoEpisodes:i[4],onPointerDown:i[29],onHandleMove:i[30],onPointerMove:i[33],onPointerUp:i[31],onPointerEnter:i[32],onPointerLeave:i[34],onDisabledClick:i[27],isInteractive:i[24],disabled:i[14].has("TIMELINE"),hideHandel:i[3]};return i[0]!==void 0&&(u.ref=i[0]),n=new zr({props:u}),ve.push(()=>We(n,"ref",l)),{c(){M(e.$$.fragment),t=j(),M(n.$$.fragment)},m(c,m){E(e,c,m),v(c,t,m),E(n,c,m),r=!0},p(c,m){let h=m[0]&1024?He(s,[Do(c[10])]):{};m[0]&2838|m[1]&1048576&&(h.$$scope={dirty:m,ctx:c}),e.$set(h);let y={};m[0]&4096&&(y.isActiveLive=c[12]),m[0]&2048&&(y.isMobile=c[11]),m[0]&4&&(y.ariaValueMax=c[2]),m[0]&128&&(y.ariaValueNow=Math.round(c[7]*100)),m[0]&96&&(y.ariaValueText=W("aria_timeline_value",{position:c[6],duration:c[5]})),m[0]&8192&&(y.loadedProgress=c[13]),m[0]&128&&(y.filledProgress=c[7]),m[0]&128&&(y.handleProgress=c[7]),m[0]&16&&(y.videoEpisodes=c[4]),m[0]&16384&&(y.disabled=c[14].has("TIMELINE")),m[0]&8&&(y.hideHandel=c[3]),!o&&m[0]&1&&(o=!0,y.ref=c[0],ze(()=>o=!1)),n.$set(y)},i(c){r||(d(e.$$.fragment,c),d(n.$$.fragment,c),r=!0)},o(c){p(e.$$.fragment,c),p(n.$$.fragment,c),r=!1},d(c){c&&b(t),A(e,c),A(n,c)}}}function Xv(i,e,t){let n,o,r,s,a,l,u,c,m,h,y,{showTimeline:g=!1}=e,{ref:T=void 0}=e,k=et(),D=It(),I=k.state.bufferedProgress$;R(i,I,Ee=>t(13,h=Ee));let C=k.state.positionWithScrubbing$;R(i,C,Ee=>t(41,l=Ee));let P=k.state.duration$;R(i,P,Ee=>t(2,r=Ee));let G=k.state.isLive$;R(i,G,Ee=>t(1,o=Ee));let x=k.state.isActiveLive$;R(i,x,Ee=>t(12,m=Ee));let O=k.ui.isMobile;R(i,O,Ee=>t(11,c=Ee));let $=D.features.episodes?k.actions.internal.getVideoEpisodes():void 0,se=k.actions.internal.getPreviewThumbsData(),K=k.state.interactiveEpisodes$;R(i,K,Ee=>t(42,u=Ee));let te=k.state.isInteractive,q=k.state.isInteractiveTime$;R(i,q,Ee=>t(3,s=Ee));let J=k.state.isInteractiveExpectation$;R(i,J,Ee=>t(40,a=Ee));let ke=k.actions.internal.correctSeekTimeToInteractive,H=k.callbacks?.onDisabledTimelineClick,ne=k.ui.controls.disabledControls$;R(i,ne,Ee=>t(14,y=Ee));let F=D.features.interactiveResponsiveUi,_e,oe,Q,Z,de=!1,qe="",Je=0,Pe=0,Se=0,Ae;function Ke(Ee){return!ke||!te?Ee:ke(Ee*r)/r}function X(Ee){k.actions.internal.startScrubbing(Ke(Ee))}function he(Ee){s||k.actions.internal.progressScrubbing(Ke(Ee))}function Ie(Ee){k.actions.internal.completeScrubbing(Ke(Ee)),t(36,de=!1)}function Ye(Ee,Me,Xe){rt(Ee,Me,Xe),t(36,de=!0)}function tt(Ee,Me,Xe){rt(Ee,Me,Xe),t(36,de=!0)}function it(){t(36,de=!1)}function rt(Ee,Me,Xe){t(9,Se=Ke(Ee)),t(37,Je=Me),Xe&&t(38,Pe=Xe),t(8,qe=$e(Ee))}function $e(Ee){let Me=Rn((o?1-Ee:Ee)*r);return o?`-${Me}`:Me}function pe(Ee){T=Ee,t(0,T)}return i.$$set=Ee=>{"showTimeline"in Ee&&t(35,g=Ee.showTimeline),"ref"in Ee&&t(0,T=Ee.ref)},i.$$.update=()=>{i.$$.dirty[1]&2048&&t(4,_e=te?u:$),i.$$.dirty[0]&4&&t(5,oe=Rn(r)),i.$$.dirty[1]&1024&&t(6,Q=Rn(l)),i.$$.dirty[0]&4|i.$$.dirty[1]&1024&&t(7,Z=l/r),i.$$.dirty[0]&8|i.$$.dirty[1]&512&&t(39,Ae=a||s),i.$$.dirty[0]&2|i.$$.dirty[1]&496&&t(10,n={containerWidth:Pe,translateXPx:Je,translateYPx:te&&se?-36:-16,active:de&&g&&!Ae&&!F,pointer:!D.features.timelinePreview||!se||o})},[T,o,r,s,_e,oe,Q,Z,qe,Se,n,c,m,h,y,D,I,C,P,G,x,O,se,K,te,q,J,H,ne,X,he,Ie,Ye,tt,it,g,de,Je,Pe,Ae,a,l,u,pe]}var $u=class extends B{constructor(e){super(),N(this,e,Xv,Zv,V,{showTimeline:35,ref:0},jv,[-1,-1])}},Km=$u;function Jv(i){let e,t;return e=new zr({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:W("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.ariaValueMax=n[0]),o&8&&(r.ariaValueNow=Math.round(n[3]*100)),o&6&&(r.ariaValueText=W("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(r.filledProgress=n[3]),o&16&&(r.squareBorders=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function $v(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=et().ui.isMobile;R(i,a,m=>t(4,n=m));let l,u,c;return i.$$set=m=>{"position"in m&&t(6,o=m.position),"duration"in m&&t(0,r=m.duration)},i.$$.update=()=>{i.$$.dirty&1&&t(1,l=Rn(r)),i.$$.dirty&64&&t(2,u=Rn(o)),i.$$.dirty&65&&t(3,c=o/r)},[r,l,u,c,n,a,o]}var ec=class extends B{constructor(e){super(),N(this,e,$v,Jv,V,{position:6,duration:0})}},Cl=ec;function e4(i){be(i,"svelte-1gqonyf",".timeline.svelte-1gqonyf{position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box}.timeline.mobile.svelte-1gqonyf{height:16px;padding:6px 12px 7px;margin-top:6px}.timeline-stub.svelte-1gqonyf{width:100%;min-width:20px}.timeline-stub.mobile.svelte-1gqonyf{height:8px}")}function t4(i){let e;return{c(){e=S("div"),f(e,"class","timeline-stub svelte-1gqonyf"),z(e,"mobile",i[3])},m(t,n){v(t,e,n)},p(t,n){n&8&&z(e,"mobile",t[3])},i:me,o:me,d(t){t&&b(e)}}}function i4(i){let e,t,n,o,r=[o4,n4],s=[];function a(l,u){return l[1]?0:1}return t=a(i,-1),n=s[t]=r[t](i),{c(){e=S("div"),n.c(),f(e,"class","timeline svelte-1gqonyf"),z(e,"mobile",i[3])},m(l,u){v(l,e,u),s[t].m(e,null),o=!0},p(l,u){let c=t;t=a(l,u),t===c?s[t].p(l,u):(le(),p(s[c],1,1,()=>{s[c]=null}),ae(),n=s[t],n?n.p(l,u):(n=s[t]=r[t](l),n.c()),d(n,1),n.m(e,null)),(!o||u&8)&&z(e,"mobile",l[3])},i(l){o||(d(n),o=!0)},o(l){p(n),o=!1},d(l){l&&b(e),s[t].d()}}}function n4(i){let e,t,n;function o(s){i[14](s)}let r={showTimeline:i[2]};return i[0]!==void 0&&(r.ref=i[0]),e=new Km({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a&4&&(l.showTimeline=s[2]),!t&&a&1&&(t=!0,l.ref=s[0],ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function o4(i){let e,t;return e=new Cl({props:{position:i[4],duration:i[5]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.position=n[4]),o&32&&(r.duration=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function r4(i){let e,t,n,o,r=[i4,t4],s=[];function a(l,u){return l[2]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Ze()},m(l,u){s[e].m(l,u),v(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e===c?s[e].p(l,u):(le(),p(s[c],1,1,()=>{s[c]=null}),ae(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),s[e].d(l)}}}function s4(i,e,t){let n,o,r,s,{isAds:a=!1}=e,{canRewindLive:l}=e,{isRewindableLive:u}=e,{isHidden:c=!1}=e,{ref:m=void 0}=e,h=et(),y=h.state.isLive$;R(i,y,C=>t(13,n=C));let g=h.ads.duration;R(i,g,C=>t(5,s=C));let T=h.ads.position;R(i,T,C=>t(4,r=C));let k=h.ui.isMobile;R(i,k,C=>t(3,o=C));let D;function I(C){m=C,t(0,m)}return i.$$set=C=>{"isAds"in C&&t(1,a=C.isAds),"canRewindLive"in C&&t(10,l=C.canRewindLive),"isRewindableLive"in C&&t(11,u=C.isRewindableLive),"isHidden"in C&&t(12,c=C.isHidden),"ref"in C&&t(0,m=C.ref)},i.$$.update=()=>{i.$$.dirty&15362&&t(2,D=!c&&(!n||n&&l&&u||a))},[m,a,D,o,r,s,y,g,T,k,l,u,c,n,I]}var tc=class extends B{constructor(e){super(),N(this,e,s4,r4,V,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},e4)}},Sl=tc;var Qm=require("@vkontakte/videoplayer-shared");function l4(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=L("svg"),a&&a.c(),t=L("path"),n=L("path"),o=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"),Ce(e,u)},m(c,m){v(c,e,m),a&&a.m(e,null),_(e,t),_(e,n),_(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),Ce(e,u=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&b(e),a&&a.d(c)}}}function a4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var ic=class extends B{constructor(e){super(),N(this,e,a4,l4,V,{})}},jm=ic;function u4(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708"),f(t,"clip-rule","evenodd"),f(t,"opacity",".7"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function c4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var nc=class extends B{constructor(e){super(),N(this,e,c4,u4,V,{})}},Gm=nc;function f4(i){be(i,"svelte-1yhs2ga",".text.svelte-1yhs2ga{padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text.count.svelte-1yhs2ga{overflow:visible}.text.mobile.svelte-1yhs2ga{padding:0 3px 0 4px}.chevron-episodes.svelte-1yhs2ga{margin-bottom:-4px}")}function Ym(i){let e,t,n;function o(s){i[19](s)}let r={className:"w-max btn-full-opacity btn-jc-l "+(i[7]?"px-0":""),testId:"btn-episodes",click:i[13],disabled:!i[8],ariaExpanded:i[4],ariaLabel:i[6],$$slots:{default:[h4]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new dt({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a&128&&(l.className="w-max btn-full-opacity btn-jc-l "+(s[7]?"px-0":"")),a&16&&(l.ariaExpanded=s[4]),a&64&&(l.ariaLabel=s[6]),a&8388777&&(l.$$scope={dirty:a,ctx:s}),!t&&a&2&&(t=!0,l.ref=s[1],ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function d4(i){let e,t,n,o;e=new jm({});function r(l,u){if(l[5]==="FULL")return _4;if(l[5]==="COUNT")return p4}let s=r(i,-1),a=s&&s(i);return{c(){M(e.$$.fragment),t=j(),a&&a.c(),n=Ze()},m(l,u){E(e,l,u),v(l,t,u),a&&a.m(l,u),v(l,n,u),o=!0},p(l,u){s===(s=r(l,u))&&a?a.p(l,u):(a&&a.d(1),a=s&&s(l),a&&(a.c(),a.m(n.parentNode,n)))},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){l&&(b(t),b(n)),A(e,l),a&&a.d(l)}}}function m4(i){let e,t,n,o,r,s;return r=new Gm({}),{c(){e=S("span"),t=De(i[3]),n=j(),o=S("div"),M(r.$$.fragment),f(e,"class","text mobile svelte-1yhs2ga"),f(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,l){v(a,e,l),_(e,t),v(a,n,l),v(a,o,l),E(r,o,null),s=!0},p(a,l){(!s||l&8)&&je(t,a[3])},i(a){s||(d(r.$$.fragment,a),s=!0)},o(a){p(r.$$.fragment,a),s=!1},d(a){a&&(b(e),b(n),b(o)),A(r)}}}function p4(i){let e,t=i[0].length+"",n;return{c(){e=S("span"),n=De(t),f(e,"class","text count svelte-1yhs2ga")},m(o,r){v(o,e,r),_(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&je(n,t)},d(o){o&&b(e)}}}function _4(i){let e,t;return{c(){e=S("span"),t=De(i[3]),f(e,"class","text svelte-1yhs2ga")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&8&&je(t,n[3])},d(n){n&&b(e)}}}function h4(i){let e,t,n,o,r=[m4,d4],s=[];function a(l,u){return l[7]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Ze()},m(l,u){s[e].m(l,u),v(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(le(),p(s[c],1,1,()=>{s[c]=null}),ae(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),s[e].d(l)}}}function g4(i){let e,t,n=i[2]&&Ym(i);return{c(){n&&n.c(),e=Ze()},m(o,r){n&&n.m(o,r),v(o,e,r),t=!0},p(o,[r]){o[2]?n?(n.p(o,r),r&4&&d(n,1)):(n=Ym(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(le(),p(n,1,1,()=>{n=null}),ae())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function b4(i,e,t){let n,o,r,s,{position:a=0}=e,{duration:l=0}=e,{timeCodes:u=[]}=e,c=et(),m=c.callbacks?.onEpisodeChanged??Qm.noop,h=!!c.callbacks?.onEpisodeClicked,y=c.ui.currentGridType$;R(i,y,K=>t(18,r=K));let g=c.ui.episodes.openedByKeyboard$;R(i,g,K=>t(17,o=K));let T=c.ui.episodes.panelOpened$;R(i,T,K=>t(4,n=K));let k=c.ui.isMobile;R(i,k,K=>t(7,s=K));let D,I=K=>{if(!!c.callbacks?.onEpisodeClicked){let q=Nr(K);g.set(q),T.set(!0),c.callbacks?.onEpisodeClicked?.(q)}},C=null,P=0,G="",x,O,$=async(K,te,q)=>{await cn(),K?.getAttribute("aria-expanded")==="false"&&te&&!q&&(g.set(!1),K.focus())};function se(K){D=K,t(1,D)}return i.$$set=K=>{"position"in K&&t(14,a=K.position),"duration"in K&&t(15,l=K.duration),"timeCodes"in K&&t(0,u=K.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&49152&&t(16,P=a/l),i.$$.dirty&98309){let K=wl(P,l,u);K?C?.time!==K.time&&(m(K),t(2,C=K)):t(2,C=null)}i.$$.dirty&4&&t(3,G=C?.text||""),i.$$.dirty&262144&&(mi(r,"xl")?t(5,x="FULL"):mi(r,"m")&&Pm(r,"xl")?t(5,x="COUNT"):t(5,x="SHORT")),i.$$.dirty&8&&t(6,O=`${W("tooltip_episodes")}: ${G}`),i.$$.dirty&131090&&$(D,o,n)},[u,D,C,G,n,x,O,s,h,y,g,T,k,I,a,l,P,o,r,se]}var oc=class extends B{constructor(e){super(),N(this,e,b4,g4,V,{position:14,duration:15,timeCodes:0},f4)}},Tl=oc;var Ip=require("@vkontakte/videoplayer-shared");var Zi=require("@vkontakte/videoplayer-core"),ut=require("@vkontakte/videoplayer-shared"),_o=require("@vkontakte/videoplayer-statistics"),qE=require("@vkontakte/videoplayer-interactive");var li=require("@vkontakte/videoplayer-shared");var Zm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var v4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Il=class{constructor(e,t){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new li.Subject,loadStarted$:new li.Subject,loadEnded$:new li.Subject,loadError$:new li.Subject,ready$:new li.Subject,slotRequested$:new li.Subject,started$:new li.Subject,timeRemained$:new li.Subject,paused$:new li.Subject,resumed$:new li.Subject,ended$:new li.Subject,empty$:new li.Subject,skipped$:new li.Subject,clicked$:new li.Subject,closed$:new li.Subject,error$:new li.Subject};this.loadAdman=e=>this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e);this.loadAdmanMailRu=e=>new Promise((t,n)=>{let o;this.events.loadStarted$.next();let r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?(t(),this.events.loadEnded$.next()):n()};(0,li.addScript)(v4,e,this.loadTimeout).then(()=>{window.AdmanHTML?(t(),this.events.loadEnded$.next()):(window.admanAsyncInit=r,o=window.setTimeout(r,this.initTimeout))}).catch(()=>{n(),clearTimeout(o)})});this.loadAdmanNPM=e=>new Promise((t,n)=>{let o;this.events.loadStarted$.next();let r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?(t(),this.events.loadEnded$.next()):n()},s=()=>{a=!0,n()},a=!1,l=window.setTimeout(s,this.loadTimeout);e.addEventListener("abort",s),e.aborted&&s(),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{a||(window.AdmanHTML?(t(),this.events.loadEnded$.next()):(window.admanAsyncInit=r,o=window.setTimeout(r,this.initTimeout)))},s).finally(()=>{clearTimeout(o),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,t)=>{this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(t)}`}),this.events.started$.next(e),t.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),Ue(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch{this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{this.log({message:"ad clicked"}),this.videoElement?.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout,this.runtimeTimeout=t.runtimeTimeout,this.useAdmanFromNPM=t.useAdmanFromNPM}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){if(this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:t,height:n,isFullscreen:o,isAutoplay:r,adsContainer:s,adsVideoElement:a,slotId:l,params:u={},duration:c,previewParam:m}=e,h,y=this.playerState&&Ue(this.playerState.vsid);y&&(h=parseInt(y,36));let g={dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:Zm(t,n),puid11:o?0:1,preview:m,...h?{request_id:h}:{},duration:c,...u};m||delete g.preview;let T={slot:l,wrapper:s,videoEl:a,videoQuality:n,params:g,browser:{mobile:!1}};try{let k=new window.AdmanHTML;k.setDebug(!1),k.onReady(this.onAdsReady),k.onStarted(this.onAdStarted),k.onPlayed(this.onAdPlayed),k.onPaused(this.onAdPaused),k.adMidrollPoint(this.onAdMidrollPoint),k.onClosed(this.onAdClosed),k.onSkipped(this.onAdSkipped),k.onClicked(this.onAdClicked),k.onTimeRemained(this.onAdTimeRemained),k.onCompleted(this.onAdCompleted),k.onError(this.onAdError),k.init(T),this.adman=k,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(T)}`})}catch{this.onAdError("could not init adman")}}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let t=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${t}`}),t&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let n="Switch to video: Adman state was not updated correctly";this.log({message:n}),this.events.error$.next(n)}this.actions.switchFromAdsToVideo?.(!t)}}togglePlay(){if(this.adsState){this.log({message:"toggle play"});let e=Ue(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){if(this.log({message:`set volume ${e}`}),this.adman)try{this.adman.setVolume(e)}catch{this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch{this.onAdError("could not set ad fullscreen")}}startPreroll(){if(this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch{this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){if(this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch{this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){if(this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch{this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){if(this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch{this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){if(this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch{this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,t){this.adman?.setPosition(Math.floor(e),Math.floor(t))}destroy(){this.log({message:"destroy"}),this.stopWatchDog(),this.adman?.destroy(),this.videoElement&&(0,li.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var Xm=i=>{let e=Math.round(i);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var rc=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,t){let n=[],o=e.split(this.twoLinesRegExp);for(let r of o){let s={startTime:0,endTime:0,texts:[],lang:t},a=r.split(this.oneLineRegExp);for(let l of a)if(!s.startTime&&!s.endTime){let u=new Pl,{startTime:c,endTime:m}=u.parse(l);s.startTime=c,s.endTime=m}else if(l.trim()!==""){let u=new sc,{texts:c}=u.parse(l);s.texts=[...s.texts,...c]}(s.startTime||s.endTime)&&s.texts.length>0&&n.push(s)}return n}},Pl=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let t={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(t.startTime=this.calcTime(n[1],n[2],n[3],n[4]),t.endTime=this.calcTime(n[6],n[7],n[8],n[9])),t}parseTime(e){let t=this.timeRegExp.exec(e);return t?this.calcTime(t[1],t[2],t[3],t[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",t="0",n="0",o="0"){let r=Number(e)*60*60,s=Number(t)*60,a=Number(n),l=+`0.${o}`;return r+s+a+l}},sc=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](s){let a=0,l=[];for(;a<s.length;){let u=["<",">"].reduce((c,m)=>{let h=s.indexOf(m,a);return c===-1||c>h?h:c},-1);if(u===-1){l.push(s.substring(a));break}l.push(s.substring(a,u)),a=u+1}return l}}),r=new Pl;for(let s of o)r.isTime(s)?t.texts.push({type:"timestamp",value:r.parseTime(s)}):t.texts.push({type:"text",value:s});return t}},Jm=rc;var Al=require("@vkontakte/videoplayer-shared"),pr,zn,lc=0,ac=!1,$m="",ep=(i,e=0,t=0)=>i<e&&i<t,El=(i,e=0,t=0)=>i>=e&&i<=t,y4=(i,e=0,t=0)=>i>e&&i>t,tp=(i,e,t,n=!1)=>{let o=t.find(({id:a})=>a===e.value)?.subtitles;if(n)return o?.find(({startTime:l,endTime:u})=>El(i,l,u));let r=i>=lc,s=i<lc;if(lc=i,s&&(ac=!1),(0,Al.isNonNullable)(pr)&&El(i,pr.startTime,pr.endTime)&&$m===e.value)return pr;if(!(0,Al.isNonNullable)(zn)&&o?.length&&!ac){zn=o.find(({startTime:l,endTime:u})=>El(i,l,u)||r&&ep(i,l,u)),pr=void 0,!(0,Al.isNonNullable)(zn)&&o[o.length-1].endTime<i&&(ac=!0);return}else{if(El(i,zn?.startTime,zn?.endTime))return pr=zn,zn=void 0,$m=e.value,pr;(r&&y4(i,zn?.startTime,zn?.endTime)||s&&ep(i,zn?.startTime,zn?.endTime))&&(zn=void 0)}};var ip={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},k4={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},Ml=i=>ip[i]??ip[k4[i]]??void 0;var np=require("@vkontakte/videoplayer-shared"),NE=require("@vkontakte/videoplayer-statistics"),Ll=class{constructor(e,t=new np.Subscription){this.oneStat=e;this.statSubscription=t}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var ws=(t=>(t.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",t.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",t))(ws||{});var po=i=>i??0,Kr=(i,e)=>{let t=i?.getBoundingClientRect?.(),n=e?.getBoundingClientRect?.();return{top:Math.round(po(t?.top)-po(n?.top)),left:Math.round(po(t?.left)-po(n?.left)),bottom:Math.round(po(t?.bottom)-po(n?.top)),right:Math.round(po(t?.right)-po(n?.left))}},jr=i=>{let e=i?.getBoundingClientRect?.();return{width:po(e?.width),height:po(e?.height)}};var op=({interfaceLanguage:i,isCyrillicRelatedInterface:e,videoId:t,isClip:n,isLiveCatchUpMode:o,statAuthToken:r,isAudioDisabled:s,canDownload:a,callbacks:l,webApi:u,videoEpisodes:c,previewThumbsData:m,uiConfig:h,coreConfig:y,player:g,disabledControls:T,isInteractive:k,interactiveRanges$:D,isInteractiveTime$:I,replayInteractive:C,stopPlayer:P,hasInteractiveBranches:G,playPrevChapterDisabledTooltip:x,additionalButtons:O,additionalSettingsMenuItems:$,additionalContextMenuItems:se,playPrevVideo:K,playNextVideo:te,looped:q=!1,statistics:J,saveRate:ke,internalsExposure:H})=>{let ne={...y,configName:[...y.configName??[],"ui"],isAudioDisabled:s,live:{...y.live??{},isLiveCatchUpMode:!!o}},F=h,_e=ut.Tracer.createRootTracer(F.features.saveTraceInfoToFile),oe=_e.createComponentTracer("Store"),Q=g||new Zi.Player(ne,_e);H?.expose({corePlayer:Q});let Z=new ut.Logger,de=new Il(Z,{loadTimeout:F.ads.loadTimeout,initTimeout:F.ads.initTimeout,runtimeTimeout:F.ads.runtimeTimeout,useAdmanFromNPM:F.ads.useAdmanFromNPM}),qe=lr.getInstance(),Je=u?.pictureInPictureApi,Pe=u?.annotationsApi,Se=Z.createComponentLog("Store"),Ae,Ke,X={},he=new qs,Ie=J?yt(J.oneStat.vsid$):qn(void 0),Ye=Ne(Oo()),tt=Je?.info.isActive$??new ut.ValueSubject(!1),it=Je?.info.type,rt=Ne(0),$e=Ne([]),pe=(0,ut.merge)(Q.events.fatalError$,Q.events.managedError$).subscribe(w=>$e.update(U=>[...U,w])),Ee=qn(!1,w=>{let U=Q.events.fatalError$.subscribe(()=>w(!0));return()=>U.unsubscribe()}),Me=async w=>{let U=Object.values(ut.InterfaceLanguage).includes(w);if(F.downloadVKLanguages&&(U&&F.updateBuiltinLanguages||!Fa(w))){let xe;try{xe=await(0,ut.loadVKLangPack)(w,bd,vd)}catch(ot){J?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),qe?.report(ot,{errorType:"VKLangPack",fatal:!1})}xe&&(Oa({language:w,pack:xe,fallback:F.defaultLanguage}),Xe.set(w))}Fa(w)&&Xe.set(w)},Xe=Ne(i),Qe=Ne(e);Me(i);let Oe=(w,U)=>{let fe=Ue(Xe);return xa(fe,w,U,F.defaultLanguage)},ce=Ne("thumb"),ct=(()=>{let w=Gt([Ee,ce],([U,fe])=>U?"crashed":fe);return{...w,is:U=>Ue(w)===U}})(),ht=(()=>{let w=Ne(new Set(T));return{...w,add:U=>{w.update(fe=>new Set([...fe].concat(U)))},remove:U=>{w.update(fe=>{let xe=[...fe];return new Set(Array.isArray(U)?xe.filter(ot=>!U.includes(ot)):xe.filter(ot=>ot!==U))})},includes:U=>{let fe=Ue(w);return Array.isArray(U)?U.every(xe=>fe.has(xe)):fe.has(U)}}})();oe.log("create store"),Se({message:"create store"});let gt=w=>{let U=w.container;U.append(Q.experimental.element$.getValue()),Ht=new MutationObserver(fe=>{let{removedNodes:xe}=fe[0];xe.length&&U.append(Q.experimental.element$.getValue())}),Ht.observe(U,{childList:!0})},bt=w=>{Se({message:`init video, config: ${JSON.stringify(w)}`}),k?gt(w):Q.initVideo(w),oe.log("init video",{isInteractive:k}),w.subtitles&&Q.setExternalTextTracks(w.subtitles),Ae=w},Fe=new ut.Subject,kt=w=>Fe.next(w),Ot=new ut.Subject,Ut=new ut.Subject,Qt=new ut.Subject,Ht=null,lt={actionRewind$:Ot,actionSeek$:Ut,inPiP$:tt,inFullscreen$:new ut.Observable(w=>Ye.subscribe(U=>w.next(U))),actionSetSubtitle$:Qt,nextMovie$:Fe};if(J){let{oneStat:w,statSubscription:U}=J;k||U.add(w.attachTo(Q)),U.add(w.attachToUi(lt)),U.add(w.attachToAds(de.events)),w.authorize(r).catch(fe=>{Se({message:`onestat auth error ${String(fe)}`})})}if(qe){let w=new ut.Subscription,U=(fe,xe)=>w.add(fe.subscribe(xe));if(U(Q.events.managedError$,fe=>{qe.logIError(fe)}),U(Q.events.fatalError$,fe=>{qe.logIError(fe,!0)}),J){let{oneStat:fe}=J;U(fe.experimental.error$,xe=>{qe.logIError(xe)})}qe.sentrySubscription.add(w)}let St=()=>{ut.clientChecker.isIOS&&Ke&&n1(Ke).catch(w=>{Se({message:`exitIosSafariFullscreen failed: ${w}`})})},Mt=new ut.Subscription().add(Q.experimental.element$.subscribe(w=>{w&&(Ke=w,w.classList.add("player-media"),ur(Je)&&(Je.updateVideoElement(),Je.registryEventHandlers()),k&&w.setAttribute("pip","false"))})).add(Q.events.ended$.subscribe(()=>{St(),l?.onEnded?.()})).add(Q.events.looped$.subscribe(()=>{l?.onLooped?.()})).add(Q.events.started$.subscribe(async()=>{ur(Je)&&await Je?.revealPictureInPicture();let w=Q.info.muted$.getValue();l?.onStarted?.(),X.onStarted?.(w)})).add(Q.events.willSeek$.subscribe(({from:w,to:U})=>{l?.onSeek?.(w,U)})).add(Q.events.autoplaySoundProhibited$.subscribe(()=>{l?.onAutoplaySoundProhibited?.()})).add(Q.info.position$.subscribe(w=>{let U=Q.info.duration$.getValue();isFinite(U)&&U>0&&(l?.onTimeupdate?.(U,w),de.setPosition(w,U))})).add(Q.events.fatalError$.subscribe(()=>{l?.onCrashed?.()})).add(Q.events.loadedMetadata$.subscribe(()=>{ft.state.loadedMetadata$.set(!0)})).add(Q.info.is3DVideo$.subscribe(w=>{ft.ui.is3DVideo.set(w)})).add(Q.info.isEnded$.subscribe(w=>{k&&(w?(I?.getValue()&&ht.add(xs),ht.add("PLAY_BUTTON")):ht.remove("PLAY_BUTTON"))})).add(Q.info.liveTime$.subscribe(w=>{l?.onLiveTime?.(w)})).add(Q.info.isStalled$.subscribe(w=>{l?.onStalledChanged?.(w)})).add(de.events.loadStarted$.subscribe(()=>l?.adsInfo?.onLoadStarted?.())).add(de.events.loadEnded$.subscribe(()=>l?.adsInfo?.onLoadEnded?.())).add(de.events.loadError$.subscribe(()=>l?.adsInfo?.onLoadError?.())).add(de.events.init$.subscribe(()=>l?.adsInfo?.onInit?.())).add(de.events.ready$.subscribe(()=>l?.adsInfo?.onReady?.())).add(de.events.started$.subscribe(w=>l?.adsInfo?.onStarted?.(w))).add(de.events.timeRemained$.subscribe(w=>l?.adsInfo?.onTimeRemained?.(w))).add(de.events.ended$.subscribe(w=>l?.adsInfo?.onCompleted?.(w))).add(de.events.empty$.subscribe(()=>l?.adsInfo?.onEmpty?.())).add(de.events.clicked$.subscribe(w=>l?.adsInfo?.onClicked?.(w))).add(de.events.closed$.subscribe(w=>l?.adsInfo?.onClosed?.(w))).add(de.events.error$.subscribe(w=>l?.adsInfo?.onError?.(w))).add(de.events.paused$.subscribe(()=>l?.adsInfo?.onPaused?.())).add(de.events.resumed$.subscribe(()=>l?.adsInfo?.onResumed?.())),Lt=new ut.Subscription,yi=()=>{Lt.add(Q.events.log$.subscribe(w=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${w.component}`,w.message)})).add(Z.log$.subscribe(w=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${w.component}.`,w.message)}))},Kt=()=>{Lt.unsubscribe()},ye=(w,U)=>{oe.log("start camera manual rotation",{mx:w,my:U}),Q.startCameraManualRotation(w,U)},Ft=(w=!1)=>{oe.log("stop camera manual rotation",{immediate:w}),Q.stopCameraManualRotation(w)},Vt=(w,U,fe)=>{oe.log("move camera focus px",{xpx:w,ypx:U,dt:fe}),Q.moveCameraFocusPX(w,U,fe)},Zt=()=>{Q.holdCamera()},xt=()=>{Q.releaseCamera()},Pt=qn(Q.info.position$.getValue(),w=>{let U,fe,xe=()=>{let ot=Q.info.playbackState$.getValue(),wt=Q.info.isLive$.getValue(),Ct=Q.info.duration$.getValue(),Et=Q.info.position$.getValue();if([Zi.PlaybackState.PLAYING,Zi.PlaybackState.PAUSED].includes(ot)){let Yi=wt?Et-Ct:Q.getExactTime();Yi!==fe&&w(Yi),fe=Yi}U=requestAnimationFrame(xe)};return xe(),()=>cancelAnimationFrame(U)}),Rt=yt(tt),ki=yt(Q.info.playbackState$),oi=yt(Q.info.currentBuffer$),wi=yt(Q.info.isEnded$),Li=yt(Q.info.isLive$),ai=F.features.playbackRate?yt(Q.info.canChangePlaybackSpeed$):qn(!1),_i=yt(Q.info.liveBufferTime$),hi=yt(Q.info.volume$),Bt=yt(Q.info.muted$),Oi=Aa(Q.info.autoQualityLimits$.pipe((0,ut.map)(({max:w})=>w!==void 0)),Q.info.autoQualityLimits$.getValue()?.max!==void 0),Nt=yt(Q.info.autoQualityLimitingAvailable$),Yt=yt(Q.info.availableQualities$),Fi=yt(Q.info.availableQualitiesFps$),Ci=yt(Q.info.chromecastState$),Si=yt(Q.info.chromecastDeviceName$),Ti=yt(Q.info.currentFormat$),ge=yt(Q.info.throughputEstimation$),pt=yt(Q.info.videoBitrate$),xi=yt(Q.info.intrinsicVideoSize$),mn=yt(Q.info.duration$),gi=yt(Q.info.isAudioAvailable$),ui=null,ci=Q.info.isBuffering$,bi=qn(ci.getValue(),w=>{let U=ci.subscribe(fe=>{fe&&ui===null?ui=window.setTimeout(()=>{w(ci.getValue()),ui=null},F.loaderDelay):w(fe)});return()=>{U.unsubscribe(),ui&&clearTimeout(ui)}}),Tn=()=>{ui&&clearTimeout(ui),ui=null},Hi=Gt([mn,Li],([w,U])=>U?-w:w),pn=Gt([ki],([w])=>w===Zi.PlaybackState.PLAYING),ri=yt(Q.info.atLiveEdge$),Vi=yt(Q.info.atLiveDurationEdge$),qi=yt(Q.info.position$),Xi=Gt([qi,mn],([w,U])=>isFinite(w)&&isFinite(U)&&!!U),Ri=Gt([Ci],([w])=>w===Zi.ChromecastState.CONNECTED),_n=yt(Q.info.availableVideoStreams$),Xt=F.features.audioLanguages?yt(Q.info.availableAudioStreams$):qn([]),Bn=yt(Q.info.currentVideoStream$),Ii=yt(Q.info.currentAudioStream$),Ji=w=>{w.language&&Na(w.language),Q.setVideoStream(w)},$i=w=>{w.language&&Na(w.language),Q.setAudioStream(w)},en=w=>{let U;if(w.length===1&&(U=w.at(0)),U??=w.find(xe=>"isDefault"in xe&&xe.isDefault),U)return U;let fe=Gd();return fe&&(U=w.find(({language:xe})=>fe===xe)),U??=w.at(0),U},Ui=!1;Mt.add(Q.info.availableAudioStreams$.subscribe(w=>{if(!Ui&&w.length){let U=en(w);U&&(Q.setAudioStream(U),Ui=!0)}}));let zi=!1;Mt.add(Q.info.availableVideoStreams$.subscribe(w=>{if(!zi&&w.length){let U=en(w);U&&(Q.setVideoStream(U),zi=!0)}}));let Pi=Ne(void 0),vi=yt(Q.info.isAutoQualityEnabled$,w=>w&&Pi.set(void 0)),Bi=yt(Q.info.currentQuality$,()=>Pi.set(void 0)),Jt=Gt([Pi,Bi],([w,U])=>w??U),si=Gt([Yt,Fi,vi,Jt,Ti],([w,U,fe,xe,ot])=>{let wt=[];ot!==Zi.VideoFormat.MPEG&&wt.push({value:"auto",displayValue:Oe("auto_quality_option"),selected:fe});let Ct=w.filter(Et=>!(0,ut.isInvariantQuality)(Et));for(let Et of Ct){let Yi=U[Et];wt.push({value:Et,displayValue:`${Et}${Yi?Xm(Yi):""}`,selected:fe?!1:Et===xe})}return wt}),nt=yt(Q.info.currentPlaybackRate$),Ei=Gt([nt,ri,Vi],([w,U,fe])=>{let xe=fe||k?1:F.controls.playbackRateMin,ot=U?1:F.controls.playbackRateMax,wt=F.controls.playbackRateStep,Ct=[];for(let Et=xe;Et<=ot;Et+=wt)Ct.push({value:Et,displayValue:Et===1?Oe("playback_rate_1"):Oe("playback_rate",{multiplier:Et.toString(10)}),selected:w===Et});return Ct}),qt={displayValue:Oe("subtitles_off"),value:"off"},fi=Ne({...qt}),Ai=F.features.subtitles?yt(Q.info.availableTextTracks$):qn([]),tn=Bd(),hn=Gt([Ai,fi],([w,U],fe)=>{let xe=[],ot=w.find(({id:wt})=>wt===U.value);if(ot?.url){let[,wt]=tn.find(ot.url)??[];if(wt){fe(wt);return}he.download(ot.url).then(Ct=>{if(!Ct||he.isDestroyed())return;let Et=new Jm,Yi=ot.language;if(Yi){let ka=!!ot.isAuto,Hh=Et.parse(Ct,Yi);xe.push({lang:Yi,subtitles:Hh,isAuto:ka,id:ot.id})}tn.add(ot.url,xe),Ue(fi).value===U.value&&fe(xe)}).catch(Ct=>{J?.oneStat?.logError({errorType:"Subtitles download",fatal:!1}),qe?.report(Ct,{errorType:"Subtitles download",fatal:!1})})}fe(xe)}),Mi=Gt([nt,pn,fi],([w,U,fe],xe)=>{let Ct;if(Q.info.isLive$.getValue()&&U&&fe.value!==qt.value){let Yi=()=>{let ka=1e3/(3*w);Ct=setTimeout(Yi,ka),xe(Date.now())};return Yi(),()=>clearTimeout(Ct)}}),Wi=Gt([Ai,fi],([w,U])=>{if(!w.length)return[];let fe=[];for(let{language:xe,isAuto:ot,id:wt}of w){let Ct=xe&&Ml(xe);xe&&Ct&&fe.push({displayValue:ot?Oe("subtitles_auto",{language:Ct}):Ct,value:wt,selected:U?.value===wt,isAuto:ot})}return fe.length?(fe.unshift({...qt,selected:U?.value===qt.value}),fe):[]}),$t={available:[],prev:[]},Ge=Gt([Pt,fi,hn,Mi],([w,U,fe,xe])=>{let ot=Q.info.isLive$.getValue();if(ot&&$t.prev!==fe){let wt=fe.find(({id:Et})=>Et===U.value),Ct=$t.prev.find(({id:Et})=>Et===U.value);if(wt){let Et={...wt,subtitles:[...Ct?.subtitles??[],...wt.subtitles]};$t.available=[Et],$t.prev=fe}}if(U&&U.value!==qt.value){let wt=ot?Ke?.currentTime??0:w,Ct=ot?$t.available:fe;return tp(wt,U,Ct,ot)}}),gn=Gt([Ge],([w])=>w?.texts?w.texts:[]),nn=Ne(!0),Ki=Gt([oi,Hi,qi,_i],([w,U,fe,xe])=>{let ot=w?.end??0;if(!xe)return ot/U;let Ct=-fe+xe-U;return(ot-Ct)/U}),ji=yt(Q.info.availableSources$),on=Gt([ji],([w])=>Object.keys(w?.[Zi.VideoFormat.MPEG]||{}).length>0),Gi=()=>{let w=Object.keys(Q.info.availableSources$?.getValue()?.[Zi.VideoFormat.MPEG]||{}),U=(0,ut.getHighestQuality)(w)||ut.VideoQuality.Q_144P;return Ae.sources[Zi.VideoFormat.MPEG]?.[U]},Kn=()=>{let w=Gi();if(w)oe.log("download video",{url:w}),Ld(w,Ae?.meta?.title||"video");else{let U="There is no URL for download video";oe.log("download video",{message:U}),Se({message:U})}},Nn=()=>{Se({message:"toggle muted"});let w=Q.info.muted$.getValue(),U=Q.info.volume$.getValue(),fe=U===0||w,xe=!fe;oe.log("toggle muted",{muted:w,volume:U,soundIsOff:fe,nextValue:xe}),rn(xe)},di=()=>{if(ft.ui.settingsMenu.visible$.set(!1),!Ue(ft.ui.settingsSubMenu.visible$)){let w=Ue(ft.ui.settingsMenu.ref$);if(l?.uiInfo?.onSettingsMenu&&w){let fe=jr(w),xe={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:fe,position:xe,name:"settings"})}}oe.log("close settings menu")},Dn=async(w,U=()=>Promise.resolve())=>{ft.ui.settingsMenu.openedByBtnKeyboard$.set(!!w),ft.ui.settingsMenu.visible$.set(!0),await U();let fe=Ue(ft.ui.settingsMenu.ref$),xe=vr();if(l?.uiInfo?.onSettingsMenu&&fe&&xe){let wt=jr(fe),Ct=Kr(fe,xe);l.uiInfo.onSettingsMenu({visible:!0,size:wt,position:Ct,name:"settings"})}oe.log("open settings menu",{wasOpenedByKeyboard:w})},bn=(w,U=!1)=>{ft.ui.settingsSubMenu.visible$.set(!1);let fe=Ue(ft.ui.settingsMenu.ref$),xe=vr(),ot=Ue(ft.ui.settingsMenu.visible$);if(l?.uiInfo?.onSettingsMenu&&fe&&xe)if(ot&&!U){let Ct=jr(fe),Et=Kr(fe,xe);l.uiInfo.onSettingsMenu({visible:!0,size:Ct,position:Et,name:"settings"})}else{let Ct=jr(w),Et={top:0,left:0,bottom:0,right:0},Yi=Ue(ft.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Ct,position:Et,name:Yi})}oe.log("close settings sub menu")},In=(w,U)=>{ft.ui.settingsSubMenu.visible$.set(!0),ft.ui.settingsSubMenu.ref$.set(U),ft.ui.settingsSubMenu.name$.set(w);let fe=vr();if(l?.uiInfo?.onSettingsMenu&&U&&fe){let ot=jr(U),wt=Kr(U,fe);l.uiInfo.onSettingsMenu({visible:!0,name:w,size:ot,position:wt})}oe.log("open settings sub menu",{name:w})},vn=(w,U=w,fe=!1)=>{let xe=!fe,ot=Q.info.muted$.getValue();Se({message:`set volume, volume: ${w}, preferredVolume: ${U}, internalCall: ${xe}`}),oe.log("set volume",{volume:w,preferredVolume:U,internalCall:xe}),Q.setVolume(w),de.setVolume(w),xe&&l?.onVolumeChange?.(w),La(U),ot?(Q.setMuted(!1),xe&&l?.onUnmute?.(),zs(!1)):!ot&&w===0&&(Q.setMuted(!0),xe&&l?.onMute?.(),zs(!0))},rn=(w,U=!1)=>{let fe=!U,xe=Q.info.volume$.getValue();if(Se({message:`set muted, currentVolume: ${xe}, mute: ${w}, internalCall: ${fe}`}),oe.log("set muted",{mute:w,currentVolume:xe,internalCall:fe}),Q.setMuted(w),de.setVolume(w?0:xe),zs(w),fe&&(w?l?.onMute?.():l?.onUnmute?.()),xe===0){let ot=Us()??F.volumeDefault;ot===0&&(ot=F.volumeMinRestore,La(ot)),Q.setVolume(ot),de.setVolume(ot),fe&&l?.onVolumeChange?.(ot)}},yn=Ne(!1),Ni=w=>{oe.log("set looped",{isLooped:w}),yn.set(w),Q.setLooped(w)};Ni(q);let sn=()=>{l?.uiInfo?.onReportProblem?.()},On=(w,U=!1)=>{Se({message:`set autoplayNextEnabled, value: ${w}`}),oe.log("set autoplay next enabled",{autoplayNextEnabled:w}),ft.ui.autoplayNextEnabled$.set(w),Zd(w),U&&l?.onSetAutoplayNextEnabled?.(w)},io=w=>{Se({message:`set timerNextVideoRunning, value: ${w}`}),oe.log("set timer next video running",{timerNextVideoRunning:w}),ft.ui.timerNextVideoRunning$.set(w)},no=(w=!0)=>{let U=!0;if(w&&l?.onPrevVideoClick)try{U=l?.onPrevVideoClick?.()}catch{Se({message:"onPrevVideoClick callback failed to execute"})}U&&K()},ei=(w=!0)=>{let U=!0;if(w&&l?.onNextVideoClick)try{U=l?.onNextVideoClick?.()}catch{Se({message:"onNextVideoClick callback failed to execute"})}U&&te()},oo=()=>{l?.onNextVideoAnnouncementClick?.()},ro=()=>{l?.onNextVideoAnnouncementAuto?.()},jn=()=>{l?.onNextVideoAnnouncementCancel?.()},so=()=>{Q.prepare()},lo=()=>{(0,ut.assertNonNullable)(ft);let w=Ue(ft.ui.controls.disabledControls$),U=Ue(ft.playerPhase),fe={playerPhase:U,isInteractive:k,isVideoEnded:!1,action:"none"};if(w.has("PLAY_BUTTON"))return;if(Se({message:"toggle play"}),U==="ads"){fe.action="play",oe.log("toggle adman play",fe),de.togglePlay();return}let xe=()=>{Se({message:"toggle play, call player.play"}),fe.action="play",Q.play(),l?.onPlay?.()},ot=()=>{Se({message:"toggle play, call player.pause"}),fe.action="pause",Q.pause(),l?.onPause?.()};if(Q.info.isEnded$.getValue()){if(Se({message:"toggle play, video ended, seek to 0"}),Ot.next(),Ut.next(_o.SeekAction.REWIND),k){C?.();return}Q.seekTime(0),xe()}else Q.info.playbackState$.getValue()!==Zi.PlaybackState.PLAYING?xe():ot();oe.log("toggle play",fe)},Gn=w=>{Se({message:`set quality, quality: ${w}`}),oe.log("set quality",{quality:w}),Q.setAutoQuality(w==="auto"),w!=="auto"?(Ud(t,w),Pi.set(w),Q.setQuality(w)):Va()},Yn=w=>{Se({message:`set trafficSavingEnabled, value: ${w}`}),oe.log("set traffic saving enabled",{trafficSavingEnabled:w}),Q.setAutoQualityLimits({max:w?F.trafficSavingLimit:void 0}),Kd(w)},ln=w=>{oe.log("set playback rate",{playbackRate:w}),Q.setPlaybackRate(w),F.features.saveRate&&ke&&!Q.info.isLive$.getValue()&&Yd(w)},ho=()=>{let w=Ue(Ei),U=w.findIndex(({selected:xe})=>xe);if(U===w.length-1)return;let fe=w[U+1];ln(fe.value)},go=()=>{let w=Ue(Ei),U=w.findIndex(({selected:xe})=>xe);if(U===0)return;let fe=w[U-1];ln(fe.value)},Qn=(w={...qt,selected:!1})=>{oe.log("set subtitles",{...w}),w&&w.value!==qt.value&&Qt.next(w.isAuto?w.value+"_auto":w.value),fi.set(w)},an=()=>{oe.log("toggle subtitles");let w=Ue(Wi),U=Ue(fi),fe=Ue(Xe);if(U?.value===qt.value){let xe=w.filter(ot=>ot.value!==qt.value).find(ot=>ot.value===fe)||w[1];Qn(xe)}else Qn()},ee=(w,U,fe=!0)=>{if(Se({message:`seek to time, time: ${w}`}),oe.log("seek to time",{time:w,action:U,forcePrecise:fe}),Ut.next(U),Q.info.isLive$.getValue()){let xe=Q.info.duration$.getValue(),ot=Math.min(0,xe+w);Q.seekTime(ot,fe)}else{if(I?.getValue())return;Q.info.isEnded$.getValue()&&(Se({message:"seek after ended, call callbacks.onPlay"}),l?.onPlay?.()),Q.seekTime(ue(w),fe)}},Tt=w=>{Se({message:`seek to episode start time: ${w}`}),oe.log("seek to episode start time",{time:w}),ee(w,_o.SeekAction.EPISODE,!0)},ie=(w,U)=>{Se({message:`seek to percent, percent: ${w}`}),oe.log("seek to percent",{percent:w,action:U});let fe=Ue(Hi)*w;ee(fe,U,!1)},Fn=w=>{Se({message:`seek external, time: ${w}`}),oe.log("seek external",{time:w}),Ut.next(_o.SeekAction.UNKNOWN),Q.seekTime(Q.info.isLive$.getValue()?-w:w)},is=w=>{let U=w.max??"none",fe=w.min??"none";Se({message:`set auto quality limitation. Max: ${U}. Min: ${fe}`}),oe.log("set auto quality limits",{max:U,min:fe}),Q.setAutoQualityLimits(w)},ns=w=>{Se({message:`seek external to episode start time: ${w}`}),oe.log("seek external to episode start time",{time:w}),ee(w,_o.SeekAction.EPISODE,!0)},br=w=>{Se({message:`set playback rate to: ${w}`}),oe.log("set playback rate external",{playbackRate:w}),Q.setPlaybackRate(w)},bo=Ne(void 0),Zn=Ne(!1),os=w=>{Se({message:`start scrubbing, progress: ${w}`}),oe.log("start scrubbing",{progress:w}),Zn.set(!0),vo(w)},vo=w=>{bo.set(w)},xn,ao,Pn=()=>{bo.set(void 0),Zn.set(!1)},Xn=()=>{clearTimeout(ao),clearTimeout(xn),xn=window.setTimeout(()=>{Pn()},500),Ke?.removeEventListener("seeked",Xn)},Mo=w=>{Se({message:`complete scrubbing, progress: ${w}`}),oe.log("complete scrubbing",{progress:w}),ie(w,_o.SeekAction.SLIDER),Ue(ft.ui.isMobile)&&Ue(ft.state.currentFormat$)===Zi.VideoFormat.HLS?(Ke?.addEventListener("seeked",Xn),ao=window.setTimeout(()=>{Xn()},300)):Pn()},jo=Gt([Pt,Hi,bo],([w,U,fe],xe)=>{xe((0,ut.isNonNullable)(fe)?fe*U:w)}),Lo=Ne({width:0,height:0}),yo=Gt([Lo],([{width:w}],U)=>{let fe=Em(w);U(fe)}),ko=Ne(!1),Vo=O.filter(w=>Vd(w)),Ro=Gt([yo,ko],([w,U])=>U?Vo.filter(fe=>!fe.hideOnMobile):Vo.filter(fe=>!fe.hideOnDesktopGridTypes?.includes(w))),En=Ne(O.filter(w=>Rd(w))),Go=Gt([En,yo],([w,U])=>w.filter(fe=>!fe.hideOnDesktopGridTypes?.includes(U))),Yo=Gt([Go,Ro],([w,U])=>[...F.features.additionalButtonsDesktopControlPanelRight?w.filter(fe=>fe.type==="desktop-control-panel-right"):[],...F.features.additionalButtons?U.map((fe,xe)=>({id:xe,weight:xe,type:"desktop-control-panel-right",testId:fe.testId,icon:fe.iconUrl,onClick:fe.onClick,ariaLabel:fe.ariaLabel??fe.tooltip,tooltipText:fe.tooltip})):[]]),Hn=Ne($),Qo=Gt([Hn],([w])=>F.features.additionalSettingsMenuItems?w.map(U=>U.type==="SWITCH"?{...U,onClick:U.onChangeEnabled}:U):[]),Y=(w,U)=>{let fe=Ue(En).map(xe=>xe.id!==w?xe:{...xe,...U});En.set(fe)},Dt=w=>{let U=Ue(En);if(U.some(fe=>fe.id===w.id)){Se({message:`Additional button with id: "${w.id}" was exist! Can't add more with the same id`});return}U.push(w),En.set(U)},un=w=>{let U=Ue(En);if(!U.some(fe=>fe.id===w)){Se({message:`Can't find additional button with id: "${w}"! Can't remove item with this id`});return}U=U.filter(fe=>fe.id!==w),En.set(U)},kn=w=>{Ut.next(_o.SeekAction.LIVE),Se({message:"live switch to low latency "+w}),oe.log("live switch to low latency "+w),Q.setLiveLowLatency(w)},Zo=(w,U)=>{let fe=Ue(Hn).map(xe=>xe.id!==w?xe:{...xe,...U});Hn.set(fe)},Xo=w=>{let U=Ue(Hn);if(U.some(fe=>fe.id===w.id)){Se({message:`Settings menu item with id: "${w.id}" was exist! Can't add more with the same id`});return}U.push(w),Hn.set(U)},uo=w=>{let U=Ue(Hn);if(!U.some(fe=>fe.id===w)){Se({message:`Can't find settings menu item with id: "${w}"! Can't remove item with this id`});return}U=U.filter(fe=>fe.id!==w),Hn.set(U)},Jn=Ne(se),Jo=Gt([Jn],([w])=>F.features.additionalContextMenuItems?w:[]),Bo=(w,U)=>{let fe=Ue(Jn).map(xe=>xe.id!==w?xe:{...xe,...U});Jn.set(fe)},rs=w=>{let U=Ue(Jn);if(U.some(fe=>fe.id===w.id)){Se({message:`Context menu item with id: "${w.id}" was exist! Can't add more with the same id`});return}U.push(w),Jn.set(U)},ss=w=>{let U=Ue(Jn);if(!U.some(fe=>fe.id===w)){Se({message:`Can't find context menu item with id: "${w}"! Can't remove item with this id`});return}U=U.filter(fe=>fe.id!==w),Jn.set(U)},ls=Gt([ko,Ee],([w,U],fe)=>{fe(w&&U)}),zt=()=>{Ut.next(_o.SeekAction.LIVE),Se({message:"switch to active live"}),oe.log("switch to active live"),Q.seekTime(0),Q.info.playbackState$.getValue()!==Zi.PlaybackState.PLAYING&&ft.actions.internal.togglePlay()},An=()=>{oe.log("skip adman"),de.skip()},$o=(w=!0)=>{(0,ut.assertNonNullable)(ft),Se({message:`switch from ads to video, callPlay: ${w}`}),oe.log("switch from ads to video",{callPlay:w}),ce.set("video"),w&&Q.play()},as=()=>{(0,ut.assertNonNullable)(ft),Se({message:"switch from video to ads"}),oe.log("switch from video to ads"),ft.actions.internal.pause(),St(),ce.set("ads")},Ls=w=>{(0,ut.assertNonNullable)(ft);let U=w?"LiveWaitingStart":"thumb";oe.log("set live waiting start",{state:w,playerPhase:U}),ce.set(U)},fa=w=>{(0,ut.assertNonNullable)(ft);let U=w?"LiveWaitingRecover":"thumb";oe.log("set live waiting recover",{state:w,playerPhase:U}),ce.set(U)},da=w=>{(0,ut.assertNonNullable)(ft);let U=w?"LiveWaitingRecord":"thumb";oe.log("set live waiting record",{state:w,playerPhase:U}),ce.set(U)},us=()=>((0,ut.assertNonNullable)(ft),oe.log("get debug text data"),Ad(Q,Ae,ft)),ma=()=>((0,ut.assertNonNullable)(ft),JSON.stringify(_e.getFinishedSpans())),pa=()=>((0,ut.assertNonNullable)(ft),Md(Q,Ae,ft)),vr=()=>Ke,cs=()=>{Se({message:"toggle chromecast"}),oe.log("toggle chromecast"),Q.toggleChromecast()},yr=w=>{if((0,ut.assertNonNullable)(ft),Q.info.isEnded$.getValue())return;let U=!w;if(Ue(ft.playerPhase)==="ads"){Se({message:`pause ads, internalCall: ${U}`}),oe.log("pause ads",{internalCall:U}),de.pause();return}Se({message:`pause video, internalCall: ${U}`}),oe.log("pause video",{internalCall:U}),U&&l?.onPause?.(),Q.pause()},kr=w=>{(0,ut.assertNonNullable)(ft);let U=!w;if(Ue(ft.playerPhase)==="ads"){Se({message:`play ads, internalCall: ${U}`}),oe.log("play ads",{internalCall:U}),de.play();return}Se({message:`play video, internalCall: ${U}`}),oe.log("play video",{internalCall:U}),U&&l?.onPlay?.(),Q.play()},wn=w=>{(0,ut.assertNonNullable)(ft);let U=!w;if(Ue(ft.playerPhase)==="ads"){Se({message:"player cannot be stopped during ads via external method"});return}Se({message:`player will be stopped, internalCall: ${U}`}),P?.()},Cn=(w,U)=>{(0,ut.assertNonNullable)(ft),Se({message:`first start, show ads: ${w}, internalCall: ${!U}`}),oe.log("first start",{showAds:w,external:U}),w?ce.set("ads"):(ce.set("video"),U?Q.play():ft.actions.internal.togglePlay())},fs=()=>(Se({message:"getting time codes"}),c),Vs=()=>{let w=fs();if(!w||[0,1].includes(w.length))return;let U=Q.info.position$.getValue();return w.find(fe=>fe.time>U)},_a=w=>{let U=w;U||(U=Vs());let fe=Q.info.position$.getValue();oe.log("seek to next episode",{currentTime:fe,...U}),U&&(Se({message:"seek to next episode"}),ee(U.time,_o.SeekAction.EPISODE,!0))},Rs=()=>{let w=fs();if(!w||[0,1].includes(w.length))return;let U=Q.info.position$.getValue(),fe=w.findIndex(ot=>ot.time>U),xe=fe===-1?w.length-2:fe-2;if(!(xe<0))return w[xe]},ha=w=>{let U=w;U||(U=Rs());let fe=Q.info.position$.getValue();oe.log("seek to prev episode",{currentTime:fe,...U}),U&&(Se({message:"seek to prev episode"}),ee(U.time,_o.SeekAction.EPISODE,!0))},ga=()=>(Se({message:"getting preview thumbs data"}),oe.log("get preview thumbs data",{...m}),m),ba=async()=>{let w=Je?.isActive(),U="none";Je?.isActive()?(U="remove",await Je?.remove()):(U="request",await Je?.request()),oe.log("toggle picture in picture",{isActive:w,action:U})},va=(w=-90)=>{oe.log("rotate video",{alphaDiff:w}),rt.update(U=>U+w)},wr=Ne([]);D?.subscribe(w=>{let U=[];for(let fe=0;fe<w.length;fe++){let{range:[xe,ot],subjects:wt}=w[fe];fe===0&&xe!==0&&U.push({time:0,text:"",interactive:!1,completed:!0}),U.push({time:xe/1e3,text:"",interactive:!0,completed:!wt.length}),ot!==1/0&&U.push({time:ot/1e3,text:"",interactive:!1,completed:!0})}wr.set(U)});let ya=Ne(!1);I?.subscribe(w=>{w&&Ue(Zn)&&Pn()});let ue=w=>{if(!k)return w;let U=Ue(wr),fe=Ue(Hi),ot=Ue(qi)/fe,wt=U.find(Ct=>Ct.interactive&&!Ct.completed&&Ct.time>ot);return typeof wt?.time=="number"?Math.min(w,wt.time-.05):w},Sn=()=>{ft.ui.episodes.panelOpened$.set(!1)},xh=()=>{oe.log("destroy store"),clearTimeout(ao),clearTimeout(xn),Mt.unsubscribe(),Lt.unsubscribe(),Q.destroy(),de.destroy(),J?.destroy(),qe?.destroy(),pe.unsubscribe(),Ht?.disconnect(),Ht=null,he.destroy()},ft={interfaceLanguage$:Xe,isCyrillicRelatedInterface$:Qe,initVideo:bt,videoId:t,isClip:n,playerPhase:ct,vsid:Ie,state:{positionExact$:Pt,positionWithScrubbing$:jo,duration$:Hi,playbackState$:ki,isPlaying$:pn,isLoaderVisible:bi,bufferedProgress$:Ki,isLive$:Li,canChangePlaybackSpeed$:ai,isActiveLive$:ri,isOldestAvailableLive$:Vi,isRewindableLive$:Xi,isEnded$:wi,muted$:Bt,volume$:hi,trafficSavingEnabled$:Oi,autoQualityLimitingAvailable$:Nt,availableVideoStreams$:_n,availableAudioStreams$:Xt,videoStream$:Bn,audioStream$:Ii,currentQuality$:Jt,isAutoQualityEnabled$:vi,availableQualities$:si,currentPlaybackRate$:nt,availablePlaybackRates$:Ei,currentSubtitle$:fi,availableTextTracks$:Ai,availableSubtitlesList$:Wi,currentSubtitleCaptions$:gn,isAutoSubtitleCaptionVisible$:nn,chromecastState$:Ci,chromecastDeviceName$:Si,chromecastConnected$:Ri,currentFormat$:Ti,throughputEstimation$:ge,videoBitrate$:pt,videoSize$:xi,errorLog$:$e,crashed$:Ee,isAudioAvailable$:gi,isAudioDisabled:!!s,canDownload:F.features.download&&!!a,availableSources$:ji,hasMpegSources$:on,isInteractive:k,showInteractiveGraph:F.features.interactiveGraph,showSeekToInteractive:F.features.seekToInteractive,showPlayPrevChapter:F.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:F.features.interactiveTimeIndicator&&!!Ue(wr).length,interactiveEpisodes$:wr,isInteractiveTime$:I?yt(I):Ne(!1),graphIsOpened$:Ne(!1),isInteractiveExpectation$:ya,hasInteractiveBranches:G,playPrevChapterDisabledTooltip:x,looped$:yn,loadedMetadata$:Ne(!1)},ui:{controlsVisible:Ne(!1),touched:Ne(!1),controls:{prevButton:Ne(void 0),playButton:Ne(void 0),replayButton:Ne(void 0),nextButton:Ne(void 0),playPrevChapterButton:Ne(void 0),seekToInteractiveButton:Ne(void 0),interactiveGraphButton:Ne(void 0),liveButton:Ne(void 0),time:Ne(void 0),episodes:Ne(void 0),volume:Ne(void 0),subtitles:Ne(void 0),settings:Ne(void 0),context:Ne(void 0),chromecast:Ne(void 0),pip:Ne(void 0),fullscreen:Ne(void 0),vkLogo:Ne(void 0),interactiveTimeIndicator:Ne(void 0),timeline:Ne(void 0),autoplayNextToggle:Ne(void 0),additionalButtons:O.length?O.reduce(w=>[...w,Ne(void 0)],[]):[],disabledControls$:ht},modals:{hotKeyMap:{show:Ne(!1),data:Ne({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ye,rotateAlpha:rt,isAutoplay:Ne(!1),debugPanelVisible:Ne(!1),episodes:{panelOpened$:Ne(!1),openedByKeyboard$:Ne(!1)},contextMenu:{visible$:Ne(!1),btnRef$:Ne(void 0),openedByBtnKeyboard$:Ne(!1),openedByHotKey$:Ne(!1),lastActiveElem$:Ne(void 0),showContextMenuBtn$:Ne(!1),position$:Ne({top:0,left:0})},playerSize:Lo,isMobile:ko,mobileNotReportControlHidden$:ls,mobileUnmuteButtonExpanded:Ne(!1),mobileUnmuteButtonVisible:Ne(!1),icon3DVideoVisible:Ne(!1),scrubbingInProgress:Zn,is3DVideo:Ne(!1),isPictureInPictureActive$:Rt,pictureInPictureType$:qn(it),currentGridType$:yo,additionalButtonsDeprecated$:Ro,additionalDesktopControlPanelRightButtons$:Yo,additionalSettingsMenuItems$:Qo,additionalContextMenuItems$:Jo,interactiveHideMobileControls:Ne(!1),overlayContainer$:Ne(void 0),startedByKeyboard$:Ne(!1),autoplayNextEnabled$:Ne(!1),timerNextVideoRunning$:Ne(!0),settingsMenu:{visible$:Ne(!1),ref$:Ne(void 0),openedByBtnKeyboard$:Ne(!1)},settingsSubMenu:{visible$:Ne(!1),ref$:Ne(void 0),name$:Ne(void 0)}},ads:{position:Ne(0),duration:Ne(0),playbackState:Ne("inactive"),canSkip:Ne(!1),secondsToWatchBeforeSkip:Ne(0),postrollPassed:Ne(!1)},webApi:{pictureInPictureApi:Je,annotationsApi:Pe},actions:{internal:{preload:so,firstStart:w=>Cn(w,!1),play:()=>kr(!1),pause:()=>yr(!1),togglePlay:lo,toggleMuted:Nn,openSettingsMenu:Dn,closeSettingsMenu:di,openSettingsSubMenu:In,closeSettingsSubMenu:bn,setVolume:vn,setVideoStream:Ji,setAudioStream:$i,setQuality:Gn,setTrafficSavingEnabled:w=>Yn(w),setPlaybackRate:ln,incrementPlaybackRate:ho,decrementPlaybackRate:go,setSubtitle:Qn,toggleSubtitle:an,togglePictureInPicture:ba,startScrubbing:os,progressScrubbing:vo,completeScrubbing:Mo,toggleChromecast:cs,switchToActiveLive:zt,switchFromAdsToVideo:$o,switchFromVideoToAds:as,skipAd:An,setLiveWaitingStart:Ls,setLiveWaitingRecover:fa,setLiveWaitingRecord:da,getDebugTextData:us,getTraceTextData:ma,getDebugPanelData:pa,getVideoElement:vr,seekTime:(w,U,fe)=>ee(w,U,fe),clearDelayedBufferingCheckTimeout:Tn,seekEpisodeStartTime:Tt,seekToPercent:ie,getNextEpisode:Vs,seekToNextEpisode:_a,getPrevEpisode:Rs,seekToPrevEpisode:ha,startLogging:yi,stopLogging:Kt,startCameraManualRotation:ye,stopCameraManualRotation:Ft,moveCameraFocusPX:Vt,holdCamera:Zt,releaseCamera:xt,getVideoEpisodes:fs,getPreviewThumbsData:ga,downloadVideo:Kn,addLanguage:Oa,setLanguage:Me,nextMovie:kt,videoRotate:va,correctSeekTimeToInteractive:ue,replayInteractive:C,setLooped:Ni,reportProblem:sn,setAutoplayNextEnabled:On,setTimerNextVideoRunning:io,prevVideoClick:no,nextVideoClick:ei,nextVideoAnnouncementClick:oo,nextVideoAnnouncementAuto:ro,nextVideoAnnouncementCancel:jn},external:{firstStart:w=>Cn(w,!0),play:()=>kr(!0),pause:()=>yr(!0),stop:()=>wn(!0),seekTime:w=>Fn(w),seekEpisodeStartTime:w=>ns(w),setPlaybackRate:w=>br(w),setAutoQualityLimits:w=>is(w),setMuted:w=>rn(w,!0),setVolume:w=>vn(w,w,!0),returnFocusToEpisodes:Sn,updateAdditionalSettingsItem:Zo,addAdditionalSettingsItem:Xo,removeAdditionalSettingsItem:uo,updateAdditionalContextItem:Bo,addAdditionalContextItem:rs,removeAdditionalContextItem:ss,updateAdditionalButton:Y,addAdditionalButton:Dt,removeAdditionalButton:un,setLiveLowLatency:kn}},callbacks:l,setUiCallbacks:w=>{X={...w}},getAdmanWrapper:()=>de,getLogger:()=>Z,destroy:xh};return ft};var Rl=(i,e,t,n)=>{if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"];for(let[s,a]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(s)){let l=t[s]?.getBoundingClientRect(),u=(n||r.includes(s))&&!!l&&!!(l.right-l.left),{top:c,left:m,bottom:h,right:y}=Kr(t[s],i);a.set({positionStartX:0,positionEndX:0,left:u?m:0,right:u?y:0,top:u?c:0,bottom:u?h:0,isDisplayed:u})}};var Bl=async(i,e,t)=>{await cn(),e&&t&&(t.focus(),i.set(!1))};function C4(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function S4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var uc=class extends B{constructor(e){super(),N(this,e,S4,C4,V,{})}},rp=uc;function T4(i){let e,t;return e=new rp({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function I4(i){let e,t,n;function o(s){i[8](s)}let r={className:i[3]?"opened":"",testId:"btn-context-menu",disabled:i[0],ariaLabel:i[1],click:i[5],focus:i[6],blur:i[7],ariaExpanded:i[3],$$slots:{default:[T4]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new dt({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&8&&(l.className=s[3]?"opened":""),a&1&&(l.disabled=s[0]),a&2&&(l.ariaLabel=s[1]),a&8&&(l.ariaExpanded=s[3]),a&16384&&(l.$$scope={dirty:a,ctx:s}),!t&&a&4&&(t=!0,l.ref=s[2],ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function P4(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,s=et(),a=s.ui.contextMenu.visible$;R(i,a,D=>t(3,n=D));let l=s.ui.contextMenu.openedByBtnKeyboard$,u=s.ui.contextMenu.showContextMenuBtn$,c=s.ui.contextMenu.position$,m=s.ui.contextMenu.btnRef$,h,y=D=>{let I=Nr(D),C=w1(h);c.set(C),l.set(I),a.set(!n)},g=()=>{u.set(!0)},T=()=>{u.set(!1)};function k(D){h=D,t(2,h)}return i.$$set=D=>{"disabled"in D&&t(0,o=D.disabled),"ariaLabel"in D&&t(1,r=D.ariaLabel)},i.$$.update=()=>{i.$$.dirty&4&&h&&m.set(h)},[o,r,h,n,a,y,g,T,k]}var cc=class extends B{constructor(e){super(),N(this,e,P4,I4,V,{disabled:0,ariaLabel:1})}},sp=cc;function E4(i){be(i,"svelte-od3veb",".interactive-episode-icon-animated.svelte-od3veb{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.interactive-episode-icon-animated.icon-small.svelte-od3veb{width:28px;height:28px}.invisible.svelte-od3veb{opacity:0;visibility:hidden}.fullscreen.svelte-od3veb:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.svelte-od3veb{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.svelte-od3veb{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb{top:40px;right:16px}}@keyframes svelte-od3veb-pulse{0%{transform:scale(1);border-width:1px;opacity:0}10%{opacity:1}50%{transform:scale(1.5);border-width:1px;opacity:0.5}100%{transform:scale(1.5);border-width:0.5px;opacity:0}}.pulse.svelte-od3veb{display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);animation:1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.svelte-od3veb{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.svelte-od3veb{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.svelte-od3veb{display:none}")}function A4(i){let e,t;return e=new bl({props:{completed:!0}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function M4(i){let e,t,n,o,r,s,a,l,u,c;function m(y){i[25](y)}let h={tooltipContent:W("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[6],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[15],$$slots:{default:[A4]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new Qi({props:h}),ve.push(()=>We(t,"ref",m)),t.$on("click",i[16]),{c(){e=S("div"),M(t.$$.fragment),o=j(),r=S("div"),s=j(),a=S("div"),f(r,"class","ref-block svelte-od3veb"),z(r,"hidden",i[1]),f(a,"class","pulse svelte-od3veb"),z(a,"paused",i[5]),f(e,"class","interactive-episode-icon-animated svelte-od3veb"),z(e,"mobile",i[2]),z(e,"fullscreen",i[7]),z(e,"invisible",i[1]),z(e,"icon-small",i[4])},m(y,g){v(y,e,g),E(t,e,null),_(e,o),_(e,r),i[26](r),_(e,s),_(e,a),i[27](a),l=!0,u||(c=[Te(e,"mousemove",mt(i[24])),Te(e,"mouseleave",i[17])],u=!0)},p(y,g){let T={};g[0]&64&&(T.tooltipActive=y[6]),g[1]&8&&(T.$$scope={dirty:g,ctx:y}),!n&&g[0]&1&&(n=!0,T.ref=y[0],ze(()=>n=!1)),t.$set(T),(!l||g[0]&2)&&z(r,"hidden",y[1]),(!l||g[0]&32)&&z(a,"paused",y[5]),(!l||g[0]&4)&&z(e,"mobile",y[2]),(!l||g[0]&128)&&z(e,"fullscreen",y[7]),(!l||g[0]&2)&&z(e,"invisible",y[1]),(!l||g[0]&16)&&z(e,"icon-small",y[4])},i(y){l||(d(t.$$.fragment,y),l=!0)},o(y){p(t.$$.fragment,y),l=!1},d(y){y&&b(e),A(t),i[26](null),i[27](null),u=!1,st(c)}}}function L4(i,e,t){let n,o,r,s,a,l,u,{ref:c=void 0}=e,m,h=et(),y=Vn(),{interactiveControlsOpacity$:g}=y;R(i,g,Z=>t(20,o=Z));let T=h.ui.isMobile;R(i,T,Z=>t(2,l=Z));let k=h.ui.isFullscreen;R(i,k,Z=>t(7,u=Z));let D=h.state.isInteractiveTime$;R(i,D,Z=>t(21,r=Z));let I=y.showInteractiveTimeIndicatorTooltip$;R(i,I,Z=>t(19,n=Z));let C=h.ui.controlsVisible;R(i,C,Z=>t(23,a=Z));let P=h.callbacks?.onInteractiveTimeIndicatorClick,G=h.ui.currentGridType$;R(i,G,Z=>t(22,s=Z));let x,O,$,se,K=()=>{t(5,se=!0)},te=()=>{q(),m?.addEventListener("animationiteration",K,{once:!0})},q=()=>{t(5,se=!1),m?.removeEventListener("animationiteration",K)},J=Z=>{I.set(Z)},ke,H=()=>{$||(I.set(!0),P?.())};Mn(()=>{I.clearTimeout(),q()});let ne=()=>{I.set(!1)};function F(Z){Ln.call(this,i,Z)}function _e(Z){c=Z,t(0,c)}function oe(Z){ve[Z?"unshift":"push"](()=>{c=Z,t(0,c)})}function Q(Z){ve[Z?"unshift":"push"](()=>{m=Z,t(3,m)})}return i.$$set=Z=>{"ref"in Z&&t(0,c=Z.ref)},i.$$.update=()=>{i.$$.dirty[0]&8388612&&t(18,x=!l&&a),i.$$.dirty[0]&4194304&&t(4,O=Uo(s,"s")),i.$$.dirty[0]&3407872&&t(1,$=!r||!!o||x),i.$$.dirty[0]&2&&t(5,se=$),i.$$.dirty[0]&524290&&t(6,ke=n&&!$),i.$$.dirty[0]&524288&&(n?te():q())},[c,$,l,m,O,se,ke,u,g,T,k,D,I,C,G,J,H,ne,x,n,o,r,s,a,F,_e,oe,Q]}var fc=class extends B{constructor(e){super(),N(this,e,L4,M4,V,{ref:0},E4,[-1,-1])}},Nl=fc;function V4(i){let e,t,n,o=[i[2]??{}];var r=i[1];function s(a,l){let u={};for(let c=0;c<o.length;c+=1)u=re(u,o[c]);return l!==void 0&&l&4&&(u=re(u,He(o,[Do(a[2]??{})]))),{props:u}}return r&&(e=At(r,s(i))),{c(){e&&M(e.$$.fragment),t=Ze()},m(a,l){e&&E(e,a,l),v(a,t,l),n=!0},p(a,l){if(l&2&&r!==(r=a[1])){if(e){le();let u=e;p(u.$$.fragment,1,0,()=>{A(u,1)}),ae()}r?(e=At(r,s(a,l)),M(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}else if(r){let u=l&4?He(o,[Do(a[2]??{})]):{};e.$set(u)}},i(a){n||(e&&d(e.$$.fragment,a),n=!0)},o(a){e&&p(e.$$.fragment,a),n=!1},d(a){a&&b(t),e&&A(e,a)}}}function R4(i){let e,t,n;function o(s){i[7](s)}let r={disabled:i[5],tooltipContent:i[3],disabledTooltipContent:i[4],className:i[6],$$slots:{default:[V4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Qi({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&32&&(l.disabled=s[5]),a&8&&(l.tooltipContent=s[3]),a&16&&(l.disabledTooltipContent=s[4]),a&64&&(l.className=s[6]),a&262&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function B4(i,e,t){let{buttonComponent:n}=e,{buttonComponentProps:o}=e,{tooltipText:r}=e,{disabledTooltipContent:s}=e,{disabled:a=!1}=e,{className:l=void 0}=e,{ref:u}=e;function c(m){u=m,t(0,u)}return i.$$set=m=>{"buttonComponent"in m&&t(1,n=m.buttonComponent),"buttonComponentProps"in m&&t(2,o=m.buttonComponentProps),"tooltipText"in m&&t(3,r=m.tooltipText),"disabledTooltipContent"in m&&t(4,s=m.disabledTooltipContent),"disabled"in m&&t(5,a=m.disabled),"className"in m&&t(6,l=m.className),"ref"in m&&t(0,u=m.ref)},[u,n,o,r,s,a,l,c]}var dc=class extends B{constructor(e){super(),N(this,e,B4,R4,V,{buttonComponent:1,buttonComponentProps:2,tooltipText:3,disabledTooltipContent:4,disabled:5,className:6,ref:0})}},mc=dc;var Po={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};function D4(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function O4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var pc=class extends B{constructor(e){super(),N(this,e,O4,D4,V,{})}},lp=pc;function F4(i){let e,t;return e=new lp({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function x4(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,r;return i.$$set=s=>{"isPrev"in s&&t(0,n=s.isPrev),"isMobile"in s&&t(2,o=s.isMobile)},i.$$.update=()=>{i.$$.dirty&5&&(n&&o?t(1,r="transform: scaleX(-1) scale(1.3333);"):n?t(1,r="transform: scaleX(-1);"):o?t(1,r="transform: scale(1.3333);"):t(1,r=void 0))},[n,r,o]}var _c=class extends B{constructor(e){super(),N(this,e,x4,F4,V,{isPrev:0,isMobile:2})}},ap=_c;function H4(i){be(i,"svelte-xtk2k4",".icon-background-mobile.svelte-xtk2k4{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color)}")}function up(i){let e;return{c(){e=S("div"),f(e,"class","icon-background-mobile svelte-xtk2k4")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function q4(i){let e,t,n,o=i[1]&&up(i);return t=new ap({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){o&&o.c(),e=j(),M(t.$$.fragment)},m(r,s){o&&o.m(r,s),v(r,e,s),E(t,r,s),n=!0},p(r,s){r[1]?o||(o=up(r),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);let a={};s&2&&(a.isMobile=r[1]),s&8&&(a.isPrev=r[3]==="prev"),t.$set(a)},i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){p(t.$$.fragment,r),n=!1},d(r){r&&b(e),o&&o.d(r),A(t,r)}}}function U4(i){let e,t,n;function o(s){i[6](s)}let r={className:`btn-${i[1]?"m":"d"}--${i[3]}`,testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[q4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&10&&(l.className=`btn-${s[1]?"m":"d"}--${s[3]}`),a&8&&(l.testId="btn-"+s[3]),a&4&&(l.disabled=s[2]),a&32&&(l.ariaLabel=s[5]),a&16&&(l.click=s[4]),a&138&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function z4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{type:s}=e,{click:a}=e,l;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"isMobile"in c&&t(1,o=c.isMobile),"disabled"in c&&t(2,r=c.disabled),"type"in c&&t(3,s=c.type),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,l=s==="prev"?W("tooltip_previous"):W("tooltip_next"))},[n,o,r,s,a,l,u]}var hc=class extends B{constructor(e){super(),N(this,e,z4,U4,V,{ref:0,isMobile:1,disabled:2,type:3,click:4},H4)}},Gr=hc;function W4(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.67.67 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function K4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var gc=class extends B{constructor(e){super(),N(this,e,K4,W4,V,{})}},Dl=gc;var fp=require("@vkontakte/videoplayer-shared");function j4(i){be(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function cp(i){let e;return{c(){e=S("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function G4(i){let e,t,n,o,r=i[1]&&cp(i);return n=new Dl({}),{c(){r&&r.c(),e=j(),t=S("div"),M(n.$$.fragment),f(t,"class","svelte-1ot3duq"),z(t,"mobile",i[1])},m(s,a){r&&r.m(s,a),v(s,e,a),v(s,t,a),E(n,t,null),o=!0},p(s,a){s[1]?r||(r=cp(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!o||a&2)&&z(t,"mobile",s[1])},i(s){o||(d(n.$$.fragment,s),o=!0)},o(s){p(n.$$.fragment,s),o=!1},d(s){s&&(b(e),b(t)),r&&r.d(s),A(n)}}}function Y4(i){let e,t,n;function o(s){i[5](s)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:W("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:co.KeyK,$$slots:{default:[G4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&10&&(l.className=(s[1]?"btn-m--play":"")+" "+s[3]),a&4&&(l.disabled=s[2]),a&16&&(l.click=s[4]),a&66&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Q4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:s=""}=e,{click:a=fp.noop}=e;function l(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"disabled"in u&&t(2,r=u.disabled),"className"in u&&t(3,s=u.className),"click"in u&&t(4,a=u.click)},[n,o,r,s,a,l]}var bc=class extends B{constructor(e){super(),N(this,e,Q4,Y4,V,{ref:0,isMobile:1,disabled:2,className:3,click:4},j4)}},Cs=bc;function Z4(i){let e,t;return{c(){e=L("svg"),t=L("path"),f(t,"d","M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"),f(t,"fill",i[3]),f(e,"width",i[0]),f(e,"height",i[1]),f(e,"viewBox",i[2]),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","play-icon")},m(n,o){v(n,e,o),_(e,t)},p(n,[o]){o&8&&f(t,"fill",n[3]),o&1&&f(e,"width",n[0]),o&2&&f(e,"height",n[1]),o&4&&f(e,"viewBox",n[2])},i:me,o:me,d(n){n&&b(e)}}}function X4(i,e,t){let{width:n="24"}=e,{height:o="24"}=e,{viewBox:r="0 0 24 24"}=e,{fill:s="#fff"}=e;return i.$$set=a=>{"width"in a&&t(0,n=a.width),"height"in a&&t(1,o=a.height),"viewBox"in a&&t(2,r=a.viewBox),"fill"in a&&t(3,s=a.fill)},[n,o,r,s]}var vc=class extends B{constructor(e){super(),N(this,e,X4,Z4,V,{width:0,height:1,viewBox:2,fill:3})}},zo=vc;function J4(i){let e,t;return{c(){e=L("svg"),t=L("path"),f(t,"d","M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"),f(t,"fill",i[3]),f(e,"width",i[0]),f(e,"height",i[1]),f(e,"viewBox",i[2]),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","pause-icon")},m(n,o){v(n,e,o),_(e,t)},p(n,[o]){o&8&&f(t,"fill",n[3]),o&1&&f(e,"width",n[0]),o&2&&f(e,"height",n[1]),o&4&&f(e,"viewBox",n[2])},i:me,o:me,d(n){n&&b(e)}}}function $4(i,e,t){let{width:n="24"}=e,{height:o="24"}=e,{viewBox:r="0 0 24 24"}=e,{fill:s="#fff"}=e;return i.$$set=a=>{"width"in a&&t(0,n=a.width),"height"in a&&t(1,o=a.height),"viewBox"in a&&t(2,r=a.viewBox),"fill"in a&&t(3,s=a.fill)},[n,o,r,s]}var yc=class extends B{constructor(e){super(),N(this,e,$4,J4,V,{width:0,height:1,viewBox:2,fill:3})}},Yr=yc;var mp=require("@vkontakte/videoplayer-shared");function e3(i){be(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function dp(i){let e;return{c(){e=S("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function t3(i){let e,t,n,o,r=i[1]&&dp(i);var s=i[8];function a(l,u){return{}}return s&&(n=At(s,a(i))),{c(){r&&r.c(),e=j(),t=S("div"),n&&M(n.$$.fragment),f(t,"class","svelte-1ot3duq"),z(t,"mobile",i[1])},m(l,u){r&&r.m(l,u),v(l,e,u),v(l,t,u),n&&E(n,t,null),o=!0},p(l,u){if(l[1]?r||(r=dp(l),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u&256&&s!==(s=l[8])){if(n){le();let c=n;p(c.$$.fragment,1,0,()=>{A(c,1)}),ae()}s?(n=At(s,a(l,u)),M(n.$$.fragment),d(n.$$.fragment,1),E(n,t,null)):n=null}(!o||u&2)&&z(t,"mobile",l[1])},i(l){o||(n&&d(n.$$.fragment,l),o=!0)},o(l){n&&p(n.$$.fragment,l),o=!1},d(l){l&&(b(e),b(t)),r&&r.d(l),n&&A(n)}}}function i3(i){let e,t,n;function o(s){i[13](s)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-play",click:i[5]?i[6]:i[4],disabled:i[2],ariaLabel:i[7],ariaKeyShortCut:co.KeyK,$$slots:{default:[t3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&10&&(l.className=(s[1]?"btn-m--play":"")+" "+s[3]),a&112&&(l.click=s[5]?s[6]:s[4]),a&4&&(l.disabled=s[2]),a&128&&(l.ariaLabel=s[7]),a&33026&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function n3(i,e,t){let n,o,{fakeIsPlaying$:r}=Vn();R(i,r,I=>t(12,o=I));let{ref:s=void 0}=e,{isMobile:a=!1}=e,{isPlaying:l=!1}=e,{disabled:u=!1}=e,{className:c=""}=e,{click:m=mp.noop}=e,{toggle:h}=r,y,g,T,k;function D(I){s=I,t(0,s)}return i.$$set=I=>{"ref"in I&&t(0,s=I.ref),"isMobile"in I&&t(1,a=I.isMobile),"isPlaying"in I&&t(10,l=I.isPlaying),"disabled"in I&&t(2,u=I.disabled),"className"in I&&t(3,c=I.className),"click"in I&&t(4,m=I.click)},i.$$.update=()=>{i.$$.dirty&4096&&t(5,g=o!==null),i.$$.dirty&5152&&t(11,T=g?o:l),i.$$.dirty&2048&&t(7,k=T?W("tooltip_pause"):W("tooltip_play")),i.$$.dirty&2048&&t(8,n=T?Yr:zo)},t(6,y=h),[s,a,u,c,m,g,y,k,n,r,l,T,o,D]}var kc=class extends B{constructor(e){super(),N(this,e,n3,i3,V,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},e3)}},Ss=kc;function o3(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function r3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var wc=class extends B{constructor(e){super(),N(this,e,r3,o3,V,{})}},pp=wc;function s3(i){let e,t;return e=new pp({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function l3(i){let e,t,n;function o(s){i[4](s)}let r={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:W("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[s3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"hidden":""),a&4&&(l.disabled=s[2]),a&8&&(l.click=s[3]),a&32&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function a3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:s}=e;function a(l){n=l,t(0,n)}return i.$$set=l=>{"ref"in l&&t(0,n=l.ref),"hidden"in l&&t(1,o=l.hidden),"disabled"in l&&t(2,r=l.disabled),"click"in l&&t(3,s=l.click)},[n,o,r,s,a]}var Cc=class extends B{constructor(e){super(),N(this,e,a3,l3,V,{ref:0,hidden:1,disabled:2,click:3})}},Ol=Cc;function u3(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=L("svg"),s&&s.c(),t=L("path"),n=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"),Ce(e,l)},m(u,c){v(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),Ce(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&b(e),s&&s.d(u)}}}function c3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Sc=class extends B{constructor(e){super(),N(this,e,c3,u3,V,{})}},_p=Sc;function f3(i){let e,t;return e=new _p({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function d3(i){let e,t,n;function o(s){i[4](s)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:W("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[f3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"hidden":""),a&4&&(l.disabled=s[2]),a&8&&(l.click=s[3]),a&32&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function m3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:s}=e;function a(l){n=l,t(0,n)}return i.$$set=l=>{"ref"in l&&t(0,n=l.ref),"hidden"in l&&t(1,o=l.hidden),"disabled"in l&&t(2,r=l.disabled),"click"in l&&t(3,s=l.click)},[n,o,r,s,a]}var Tc=class extends B{constructor(e){super(),N(this,e,m3,d3,V,{ref:0,hidden:1,disabled:2,click:3})}},Fl=Tc;function p3(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=L("svg"),s&&s.c(),t=L("path"),n=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z"),f(n,"class","_closed"),f(n,"clip-rule","evenodd"),Ce(e,l)},m(u,c){v(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),Ce(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&b(e),s&&s.d(u)}}}function _3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Ic=class extends B{constructor(e){super(),N(this,e,_3,p3,V,{})}},hp=Ic;function h3(i){be(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function g3(i){let e,t;return e=new hp({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function b3(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var Pc=class extends B{constructor(e){super(),N(this,e,b3,g3,V,{isOpened:0},h3)}},gp=Pc;function v3(i){let e,t;return e=new gp({props:{isOpened:!!i[3]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.isOpened=!!n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function y3(i){let e,t,n;function o(s){i[6](s)}let r={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[v3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"hidden":""),a&4&&(l.disabled=s[2]),a&32&&(l.ariaLabel=s[5]),a&16&&(l.click=s[4]),a&136&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function k3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{graphIsOpened:s=!1}=e,{click:a}=e,l;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"hidden"in c&&t(1,o=c.hidden),"disabled"in c&&t(2,r=c.disabled),"graphIsOpened"in c&&t(3,s=c.graphIsOpened),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,l=s?W("tooltip_interactive_graph_on"):W("tooltip_interactive_graph_off"))},[n,o,r,s,a,l,u]}var Ec=class extends B{constructor(e){super(),N(this,e,k3,y3,V,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},xl=Ec;var Hl=require("@vkontakte/videoplayer-core");function w3(i){let e,t;return e=new el({props:{isActive:i[1]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function C3(i){let e,t;return e=new dt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===Hl.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[w3]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(r.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(r.disabled=n[1]&&n[3]===Hl.PlaybackState.PLAYING),o&4&&(r.ariaLabel=n[2]),o&16&&(r.click=n[4]),o&514&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function S3(i,e,t){let n,{isMobile:o=!1}=e,{isLiveActive:r=!1}=e,{ariaLabel:s=""}=e,a=et(),l=a.state.playbackState$;R(i,l,h=>t(3,n=h));let u=a.actions.internal.switchToActiveLive,c=a.actions.internal.togglePlay,m;return i.$$set=h=>{"isMobile"in h&&t(0,o=h.isMobile),"isLiveActive"in h&&t(1,r=h.isLiveActive),"ariaLabel"in h&&t(2,s=h.ariaLabel)},i.$$.update=()=>{i.$$.dirty&10&&t(4,m=()=>{if(!r){u();return}n===Hl.PlaybackState.PAUSED&&c()})},[o,r,s,n,m,l]}var Ac=class extends B{constructor(e){super(),N(this,e,S3,C3,V,{isMobile:0,isLiveActive:1,ariaLabel:2})}},ql=Ac;var Lc=require("@vkontakte/videoplayer-shared");function T3(i){let e,t,n,o;return{c(){e=S("img"),f(e,"class","icon"),wo(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){v(r,e,s),n||(o=Te(e,"error",i[2]),n=!0)},p(r,s){s&1&&!wo(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&b(e),n=!1,o()}}}function I3(i){let e;return{c(){e=S("div"),e.innerHTML='<div class="inner"></div>',f(e,"class","icon icon-error-stub")},m(t,n){v(t,e,n)},p:me,d(t){t&&b(e)}}}function P3(i){let e;function t(r,s){return r[1]?I3:T3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Ze()},m(r,s){o.m(r,s),v(r,e,s)},p(r,[s]){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:me,o:me,d(r){r&&b(e),o.d(r)}}}function E3(i,e,t){let n,{icon:o}=e,r=()=>{t(1,n=!0)};return i.$$set=s=>{"icon"in s&&t(0,o=s.icon)},t(1,n=!1),[o,n,r]}var Mc=class extends B{constructor(e){super(),N(this,e,E3,P3,V,{icon:0})}},Qr=Mc;function A3(i){let e,t;return e=new Qr({props:{icon:i[3]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.icon=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function M3(i){let e,t;return e=new dt({props:{className:i[8],ariaLabel:i[4],click:i[7],disabled:i[9],testId:i[2]??i[1],$$slots:{default:[A3]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&256&&(r.className=n[8]),o&16&&(r.ariaLabel=n[4]),o&128&&(r.click=n[7]),o&512&&(r.disabled=n[9]),o&6&&(r.testId=n[2]??n[1]),o&8200&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function L3(i){let e,t,n;function o(s){i[12](s)}let r={disabled:i[9],tooltipContent:i[5],disabledTooltipContent:i[6],width:40,$$slots:{default:[M3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Qi({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&512&&(l.disabled=s[9]),a&32&&(l.tooltipContent=s[5]),a&64&&(l.disabledTooltipContent=s[6]),a&9118&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function V3(i,e,t){let n,o,r,{id:s}=e,{testId:a}=e,{icon:l}=e,{ariaLabel:u}=e,{tooltipText:c}=e,{disabledTooltipContent:m}=e,{disabled:h=!1}=e,{onClick:y=Lc.noop}=e,{ref:g}=e;function T(k){g=k,t(0,g)}return i.$$set=k=>{"id"in k&&t(1,s=k.id),"testId"in k&&t(2,a=k.testId),"icon"in k&&t(3,l=k.icon),"ariaLabel"in k&&t(4,u=k.ariaLabel),"tooltipText"in k&&t(5,c=k.tooltipText),"disabledTooltipContent"in k&&t(6,m=k.disabledTooltipContent),"disabled"in k&&t(10,h=k.disabled),"onClick"in k&&t(7,y=k.onClick),"ref"in k&&t(0,g=k.ref)},i.$$.update=()=>{i.$$.dirty&128&&t(11,n=y===Lc.noop),i.$$.dirty&3072&&t(9,o=n||h),i.$$.dirty&2048&&t(8,r=n?"btn-full-opacity":"")},[g,s,a,l,u,c,m,y,r,o,h,n,T]}var Vc=class extends B{constructor(e){super(),N(this,e,V3,L3,V,{id:1,testId:2,icon:3,ariaLabel:4,tooltipText:5,disabledTooltipContent:6,disabled:10,onClick:7,ref:0})}},bp=Vc;var vp=i=>!!i.buttonComponent;var Wo={vkLogo:100,volume:200,subtitles:300,settings:400,context:500,fullscreen:600,chromecast:700};function N3(i){be(i,"svelte-1iedtj3",".wrapper-bottom.svelte-1iedtj3.svelte-1iedtj3{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box}.wrapper-bottom.svelte-1iedtj3>.svelte-1iedtj3{pointer-events:auto}.controls.svelte-1iedtj3.svelte-1iedtj3{width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box}.controls-left.svelte-1iedtj3.svelte-1iedtj3,.controls-right.svelte-1iedtj3.svelte-1iedtj3{display:flex;align-content:center}.controls-left.svelte-1iedtj3.svelte-1iedtj3{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-1iedtj3 > *:not(:first-child),.controls-right.svelte-1iedtj3 > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-1iedtj3.svelte-1iedtj3{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-1iedtj3.svelte-1iedtj3{transition:none}")}function yp(i,e,t){let n=i.slice();return n[201]=e[t],n[202]=e,n[203]=t,n}function kp(i,e,t){let n=i.slice();return n[201]=e[t],n[204]=e,n[205]=t,n}function wp(i){let e,t,n;function o(s){i[163](s,i[201])}let r={buttonComponent:i[201].buttonComponent,buttonComponentProps:i[201].buttonComponentProps,tooltipText:i[201].tooltipText,disabledTooltipContent:i[201].disabledTooltipContent,disabled:i[201].disabled,className:i[201].className};return i[10][i[201].id]!==void 0&&(r.ref=i[10][i[201].id]),e=new mc({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&2048&&(l.buttonComponent=i[201].buttonComponent),a[0]&2048&&(l.buttonComponentProps=i[201].buttonComponentProps),a[0]&2048&&(l.tooltipText=i[201].tooltipText),a[0]&2048&&(l.disabledTooltipContent=i[201].disabledTooltipContent),a[0]&2048&&(l.disabled=i[201].disabled),a[0]&2048&&(l.className=i[201].className),!t&&a[0]&3072&&(t=!0,l.ref=i[10][i[201].id],ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Cp(i){let e,t,n;function o(s){i[164](s)}let r={isMobile:!1,showDuration:i[15],position:i[5]?i[33]:i[34],duration:i[5]?i[35]:i[36]};return i[10].time!==void 0&&(r.ref=i[10].time),e=new gl({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[0]&32768&&(l.showDuration=s[15]),a[0]&32|a[1]&12&&(l.position=s[5]?s[33]:s[34]),a[0]&32|a[1]&48&&(l.duration=s[5]?s[35]:s[36]),!t&&a[0]&1024&&(t=!0,l.ref=s[10].time,ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Sp(i){let e,t;return e=new Tl({props:{position:i[34],duration:i[36],timeCodes:i[50]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[1]&8&&(r.position=n[34]),o[1]&32&&(r.duration=n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function D3(i){let e,t,n=i[8]&&Sp(i);return{c(){n&&n.c(),e=Ze()},m(o,r){n&&n.m(o,r),v(o,e,r),t=!0},p(o,r){o[8]?n?(n.p(o,r),r[0]&256&&d(n,1)):(n=Sp(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(le(),p(n,1,1,()=>{n=null}),ae())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function O3(i){let e,t,n;function o(s){i[168](s,i[201])}let r={id:i[201].id,testId:i[201].testId,icon:i[201].icon,ariaLabel:i[201].ariaLabel,tooltipText:i[201].tooltipText,disabledTooltipContent:i[201].disabledTooltipContent,disabled:!!i[201].disabled,onClick:i[201].onClick};return i[10][i[201].id]!==void 0&&(r.ref=i[10][i[201].id]),e=new bp({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&4096&&(l.id=i[201].id),a[0]&4096&&(l.testId=i[201].testId),a[0]&4096&&(l.icon=i[201].icon),a[0]&4096&&(l.ariaLabel=i[201].ariaLabel),a[0]&4096&&(l.tooltipText=i[201].tooltipText),a[0]&4096&&(l.disabledTooltipContent=i[201].disabledTooltipContent),a[0]&4096&&(l.disabled=!!i[201].disabled),a[0]&4096&&(l.onClick=i[201].onClick),!t&&a[0]&5120&&(t=!0,l.ref=i[10][i[201].id],ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function F3(i){let e,t,n;function o(s){i[167](s,i[201])}let r={buttonComponent:i[201].buttonComponent,buttonComponentProps:i[201].buttonComponentProps,tooltipText:i[201].tooltipText,disabledTooltipContent:i[201].disabledTooltipContent,disabled:i[201].disabled,className:i[201].className};return i[10][i[201].id]!==void 0&&(r.ref=i[10][i[201].id]),e=new mc({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&4096&&(l.buttonComponent=i[201].buttonComponent),a[0]&4096&&(l.buttonComponentProps=i[201].buttonComponentProps),a[0]&4096&&(l.tooltipText=i[201].tooltipText),a[0]&4096&&(l.disabledTooltipContent=i[201].disabledTooltipContent),a[0]&4096&&(l.disabled=i[201].disabled),a[0]&4096&&(l.className=i[201].className),!t&&a[0]&5120&&(t=!0,l.ref=i[10][i[201].id],ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Tp(i){let e,t,n,o,r,s=[F3,O3],a=[];function l(u,c){return c[0]&4096&&(e=null),e==null&&(e=!!vp(u[201])),e?0:1}return t=l(i,[-1,-1,-1,-1,-1,-1,-1]),n=a[t]=s[t](i),{c(){n.c(),o=Ze()},m(u,c){a[t].m(u,c),v(u,o,c),r=!0},p(u,c){let m=t;t=l(u,c),t===m?a[t].p(u,c):(le(),p(a[m],1,1,()=>{a[m]=null}),ae(),n=a[t],n?n.p(u,c):(n=a[t]=s[t](u),n.c()),d(n,1),n.m(o.parentNode,o))},i(u){r||(d(n),r=!0)},o(u){p(n),r=!1},d(u){u&&b(o),a[t].d(u)}}}function x3(i){let e,t,n;function o(s){i[171](s)}let r={};return i[10].interactiveTimeIndicator!==void 0&&(r.ref=i[10].interactiveTimeIndicator),e=new Nl({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&1024&&(t=!0,l.ref=s[10].interactiveTimeIndicator,ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function H3(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I;function C(H){i[162](H)}let P={isHidden:!i[14],isAds:i[5],canRewindLive:i[6],isRewindableLive:i[13]};i[10].timeline!==void 0&&(P.ref=i[10].timeline),t=new Sl({props:P}),ve.push(()=>We(t,"ref",C));let G=_t(i[11]),x=[];for(let H=0;H<G.length;H+=1)x[H]=wp(kp(i,G,H));let O=H=>p(x[H],1,1,()=>{x[H]=null}),$=i[7]&&Cp(i);function se(H){i[165](H)}let K={className:"w-max",disabled:!i[8],tooltipContent:W("tooltip_episodes"),$$slots:{default:[D3]},$$scope:{ctx:i}};i[10].episodes!==void 0&&(K.ref=i[10].episodes),u=new Qi({props:K}),ve.push(()=>We(u,"ref",se));let te=_t(i[12]),q=[];for(let H=0;H<te.length;H+=1)q[H]=Tp(yp(i,te,H));let J=H=>p(q[H],1,1,()=>{q[H]=null}),ke=i[67]&&x3(i);return{c(){e=S("div"),M(t.$$.fragment),o=j(),r=S("div"),s=S("div");for(let H=0;H<x.length;H+=1)x[H].c();a=j(),$&&$.c(),l=j(),M(u.$$.fragment),h=j(),y=S("div");for(let H=0;H<q.length;H+=1)q[H].c();g=j(),ke&&ke.c(),T=Ze(),f(s,"class","controls-left svelte-1iedtj3"),f(y,"class","controls-right svelte-1iedtj3"),f(r,"class","controls svelte-1iedtj3"),f(e,"class","wrapper-bottom svelte-1iedtj3"),z(e,"hidden",i[2]),z(e,"controls-hidden",!i[4]),z(e,"no-smooth",i[3])},m(H,ne){v(H,e,ne),E(t,e,null),_(e,o),_(e,r),_(r,s);for(let F=0;F<x.length;F+=1)x[F]&&x[F].m(s,null);_(s,a),$&&$.m(s,null),_(s,l),E(u,s,null),_(r,h),_(r,y);for(let F=0;F<q.length;F+=1)q[F]&&q[F].m(y,null);i[169](r),i[170](e),v(H,g,ne),ke&&ke.m(H,ne),v(H,T,ne),k=!0,D||(I=[Cr(m=Hr.call(null,s)),Te(s,"fd:resize",i[166])],D=!0)},p(H,ne){let F={};if(ne[0]&16384&&(F.isHidden=!H[14]),ne[0]&32&&(F.isAds=H[5]),ne[0]&64&&(F.canRewindLive=H[6]),ne[0]&8192&&(F.isRewindableLive=H[13]),!n&&ne[0]&1024&&(n=!0,F.ref=H[10].timeline,ze(()=>n=!1)),t.$set(F),ne[0]&3072){G=_t(H[11]);let oe;for(oe=0;oe<G.length;oe+=1){let Q=kp(H,G,oe);x[oe]?(x[oe].p(Q,ne),d(x[oe],1)):(x[oe]=wp(Q),x[oe].c(),d(x[oe],1),x[oe].m(s,a))}for(le(),oe=G.length;oe<x.length;oe+=1)O(oe);ae()}H[7]?$?($.p(H,ne),ne[0]&128&&d($,1)):($=Cp(H),$.c(),d($,1),$.m(s,l)):$&&(le(),p($,1,1,()=>{$=null}),ae());let _e={};if(ne[0]&256&&(_e.disabled=!H[8]),ne[0]&256|ne[1]&40|ne[6]&1048576&&(_e.$$scope={dirty:ne,ctx:H}),!c&&ne[0]&1024&&(c=!0,_e.ref=H[10].episodes,ze(()=>c=!1)),u.$set(_e),ne[0]&5120){te=_t(H[12]);let oe;for(oe=0;oe<te.length;oe+=1){let Q=yp(H,te,oe);q[oe]?(q[oe].p(Q,ne),d(q[oe],1)):(q[oe]=Tp(Q),q[oe].c(),d(q[oe],1),q[oe].m(y,null))}for(le(),oe=te.length;oe<q.length;oe+=1)J(oe);ae()}(!k||ne[0]&4)&&z(e,"hidden",H[2]),(!k||ne[0]&16)&&z(e,"controls-hidden",!H[4]),(!k||ne[0]&8)&&z(e,"no-smooth",H[3]),H[67]&&ke.p(H,ne)},i(H){if(!k){d(t.$$.fragment,H);for(let ne=0;ne<G.length;ne+=1)d(x[ne]);d($),d(u.$$.fragment,H);for(let ne=0;ne<te.length;ne+=1)d(q[ne]);d(ke),k=!0}},o(H){p(t.$$.fragment,H),x=x.filter(Boolean);for(let ne=0;ne<x.length;ne+=1)p(x[ne]);p($),p(u.$$.fragment,H),q=q.filter(Boolean);for(let ne=0;ne<q.length;ne+=1)p(q[ne]);p(ke),k=!1},d(H){H&&(b(e),b(g),b(T)),A(t),ti(x,H),$&&$.d(),A(u),ti(q,H),i[169](null),i[170](null),ke&&ke.d(H),D=!1,st(I)}}}function q3(i,e,t){let n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C,P,G,x,O,$,se,K,te,q,J,ke,H,ne,F,_e,oe,Q,Z,de,qe,Je,Pe,Se,Ae=me,Ke=()=>(Ae(),Ae=jt(K,ue=>t(133,Se=ue)),K),X,he=me,Ie=()=>(he(),he=jt(se,ue=>t(134,X=ue)),se),Ye,tt=me,it=()=>(tt(),tt=jt($,ue=>t(135,Ye=ue)),$),rt,$e=me,pe=()=>($e(),$e=jt(O,ue=>t(136,rt=ue)),O),Ee,Me=me,Xe=()=>(Me(),Me=jt(x,ue=>t(137,Ee=ue)),x),Qe,Oe=me,ce=()=>(Oe(),Oe=jt(G,ue=>t(138,Qe=ue)),G),ct,ht=me,gt=()=>(ht(),ht=jt(P,ue=>t(139,ct=ue)),P),bt,Fe=me,kt=()=>(Fe(),Fe=jt(C,ue=>t(140,bt=ue)),C),Ot,Ut=me,Qt=()=>(Ut(),Ut=jt(I,ue=>t(141,Ot=ue)),I),Ht,lt=me,St=()=>(lt(),lt=jt(D,ue=>t(142,Ht=ue)),D),Mt,Lt=me,yi=()=>(Lt(),Lt=jt(k,ue=>t(143,Mt=ue)),k),Kt,ye=me,Ft=()=>(ye(),ye=jt(T,ue=>t(144,Kt=ue)),T),Vt,Zt=me,xt=()=>(Zt(),Zt=jt(g,ue=>t(145,Vt=ue)),g),Pt,Rt=me,ki=()=>(Rt(),Rt=jt(y,ue=>t(146,Pt=ue)),y),oi,wi=me,Li=()=>(wi(),wi=jt(h,ue=>t(147,oi=ue)),h),ai,_i=me,hi=()=>(_i(),_i=jt(m,ue=>t(148,ai=ue)),m),Bt,Oi=me,Nt=()=>(Oi(),Oi=jt(c,ue=>t(149,Bt=ue)),c),Yt,Fi,Ci,Si,Ti,ge,pt,xi,mn,gi,ui,ci,bi,Tn,Hi,pn,ri;i.$$.on_destroy.push(()=>Ae()),i.$$.on_destroy.push(()=>he()),i.$$.on_destroy.push(()=>tt()),i.$$.on_destroy.push(()=>$e()),i.$$.on_destroy.push(()=>Me()),i.$$.on_destroy.push(()=>Oe()),i.$$.on_destroy.push(()=>ht()),i.$$.on_destroy.push(()=>Fe()),i.$$.on_destroy.push(()=>Ut()),i.$$.on_destroy.push(()=>lt()),i.$$.on_destroy.push(()=>Lt()),i.$$.on_destroy.push(()=>ye()),i.$$.on_destroy.push(()=>Zt()),i.$$.on_destroy.push(()=>Rt()),i.$$.on_destroy.push(()=>wi()),i.$$.on_destroy.push(()=>_i()),i.$$.on_destroy.push(()=>Oi());let{bottomHidden:Vi}=e,{bottomNoSmooth:qi}=e,{showControls:Xi}=e,{playerControlsWrapperRef:Ri=void 0}=e,{playerControlsRef:_n=void 0}=e,{isAds:Xt=!1}=e,{canRewindLive:Bn}=e,{logoClickable:Ii}=e,{logoHidden:Ji}=e,{logoTargetUrl:$i=""}=e,{showNextPrevButtons:en}=e,{nextButtonActive:Ui}=e,{prevButtonActive:zi}=e,{customFullscreenSupported:Pi=!0}=e,{toggleFullscreen:vi}=e,{seekToInteractive:Bi}=e,{playPrevChapter:Jt}=e,{fakeIsPlaying$:si}=Vn();R(i,si,ue=>t(126,_e=ue));let nt=et(),Ei=Vn(),qt=It(),fi=nt.actions.internal.toggleMuted,Ai=nt.actions.internal.togglePlay,tn=nt.actions.internal.pause,hn=nt.actions.internal.toggleSubtitle,Mi=nt.callbacks?.onAudioDoesNotExistHint,Wi=nt.callbacks?.onAudioDisabledHint,$t=nt.state.duration$;R(i,$t,ue=>t(36,ri=ue));let Ge=nt.state.positionWithScrubbing$;R(i,Ge,ue=>t(34,Hi=ue));let gn=nt.state.playbackState$;R(i,gn,ue=>t(123,H=ue));let nn=nt.state.isAudioAvailable$;R(i,nn,ue=>t(172,oe=ue));let Ki=nt.state.isAudioDisabled,ji=nt.state.isEnded$;R(i,ji,ue=>t(158,gi=ue));let on=nt.state.isLive$;R(i,on,ue=>t(152,Si=ue));let Gi=nt.state.isActiveLive$;R(i,Gi,ue=>t(151,Fi=ue));let Kn=nt.state.isRewindableLive$;R(i,Kn,ue=>t(13,Ci=ue));let Nn=nt.ui.isPictureInPictureActive$;R(i,Nn,ue=>t(154,ge=ue));let di=nt.ui.pictureInPictureType$;R(i,di,ue=>t(153,Ti=ue));let Dn=nt.ui.settingsMenu.visible$;R(i,Dn,ue=>t(122,ke=ue));let bn=nt.ui.settingsMenu.openedByBtnKeyboard$;R(i,bn,ue=>t(128,Z=ue));let In=nt.ui.controls,vn=nt.actions.internal.getVideoEpisodes(),rn=nt.state.chromecastState$;R(i,rn,ue=>t(120,q=ue));let yn=nt.state.availableSubtitlesList$;R(i,yn,ue=>t(157,mn=ue));let Ni=nt.state.currentSubtitle$;R(i,Ni,ue=>t(159,ui=ue));let sn=In.disabledControls$;R(i,sn,ue=>t(161,bi=ue));let On=nt.ui.contextMenu.visible$;R(i,On,ue=>t(150,Yt=ue));let io=nt.ui.contextMenu.showContextMenuBtn$;R(i,io,ue=>t(155,pt=ue));let no=nt.ui.contextMenu.openedByBtnKeyboard$;R(i,no,ue=>t(156,xi=ue));let ei=nt.ui.startedByKeyboard$;R(i,ei,ue=>t(127,Q=ue));let oo=nt.ads.duration;R(i,oo,ue=>t(35,pn=ue));let ro=nt.ads.position;R(i,ro,ue=>t(33,Tn=ue));let jn=nt.ads.playbackState;R(i,jn,ue=>t(160,ci=ue));let so=nt.ui.isFullscreen;R(i,so,ue=>t(121,J=ue));let lo=nt.ui.playerSize;R(i,lo,ue=>t(131,Je=ue));let Gn=nt.ui.currentGridType$;R(i,Gn,ue=>t(132,Pe=ue));let Yn=nt.ui.additionalDesktopControlPanelRightButtons$;R(i,Yn,ue=>t(119,te=ue));let ln=nt.actions.internal.getVideoElement,ho=nt.actions.internal.replayInteractive,go=nt.actions.internal.prevVideoClick,Qn=nt.actions.internal.nextVideoClick,an=nt.state.isInteractive,ee=nt.state.isInteractiveTime$;R(i,ee,ue=>t(130,qe=ue));let Tt=nt.state.showInteractiveGraph,ie=nt.state.showSeekToInteractive,Fn=nt.state.showPlayPrevChapter,is=nt.state.showInteractiveTimeIndicator,ns=nt.state.playPrevChapterDisabledTooltip,br=Ei.seekToInteractiveDisabledTooltip$;R(i,br,ue=>t(125,F=ue));let bo=Ei.graphIsOpened$;R(i,bo,ue=>t(124,ne=ue));let Zn=qt.features.interactiveResponsiveUi,os=()=>nt.actions.internal.toggleChromecast(),vo,xn,ao,Pn,Xn,Mo,jo,Lo,yo,ko,Vo,Ro,En,Go,Yo,Hn,Qo,Y,Dt,un,kn,Zo,Xo,uo="",Jn=(ue,Sn)=>{if(!ue){t(101,uo=W("tooltip_live"));return}Sn===_r.PlaybackState.PAUSED&&t(101,uo=W("tooltip_play"))},Jo,Bo,rs,ss,ls,zt={},An,$o,as,Ls,fa=(0,Ip.debounceFn)(Rl,260),da,us=Ne();R(i,us,ue=>t(129,de=ue));let ma;function pa(){Ho({isAudioDisabled:Ki,audioDisabledHintCallback:Wi,isAudioAvailable:oe,audioIsNotExistHintCallback:Mi})&&fi()}let vr=an?ho:Ai,cs,yr,kr,wn=[],Cn=[];function fs(ue){i.$$.not_equal(zt.timeline,ue)&&(zt.timeline=ue,t(10,zt))}function Vs(ue,Sn){i.$$.not_equal(zt[Sn.id],ue)&&(zt[Sn.id]=ue,t(10,zt))}function _a(ue){i.$$.not_equal(zt.time,ue)&&(zt.time=ue,t(10,zt))}function Rs(ue){i.$$.not_equal(zt.episodes,ue)&&(zt.episodes=ue,t(10,zt))}let ha=ue=>{t(9,ls=ue.target.clientWidth)};function ga(ue,Sn){i.$$.not_equal(zt[Sn.id],ue)&&(zt[Sn.id]=ue,t(10,zt))}function ba(ue,Sn){i.$$.not_equal(zt[Sn.id],ue)&&(zt[Sn.id]=ue,t(10,zt))}function va(ue){ve[ue?"unshift":"push"](()=>{_n=ue,t(1,_n)})}function wr(ue){ve[ue?"unshift":"push"](()=>{Ri=ue,t(0,Ri)})}function ya(ue){i.$$.not_equal(zt.interactiveTimeIndicator,ue)&&(zt.interactiveTimeIndicator=ue,t(10,zt))}return i.$$set=ue=>{"bottomHidden"in ue&&t(2,Vi=ue.bottomHidden),"bottomNoSmooth"in ue&&t(3,qi=ue.bottomNoSmooth),"showControls"in ue&&t(4,Xi=ue.showControls),"playerControlsWrapperRef"in ue&&t(0,Ri=ue.playerControlsWrapperRef),"playerControlsRef"in ue&&t(1,_n=ue.playerControlsRef),"isAds"in ue&&t(5,Xt=ue.isAds),"canRewindLive"in ue&&t(6,Bn=ue.canRewindLive),"logoClickable"in ue&&t(71,Ii=ue.logoClickable),"logoHidden"in ue&&t(72,Ji=ue.logoHidden),"logoTargetUrl"in ue&&t(73,$i=ue.logoTargetUrl),"showNextPrevButtons"in ue&&t(74,en=ue.showNextPrevButtons),"nextButtonActive"in ue&&t(75,Ui=ue.nextButtonActive),"prevButtonActive"in ue&&t(76,zi=ue.prevButtonActive),"customFullscreenSupported"in ue&&t(77,Pi=ue.customFullscreenSupported),"toggleFullscreen"in ue&&t(78,vi=ue.toggleFullscreen),"seekToInteractive"in ue&&t(79,Bi=ue.seekToInteractive),"playPrevChapter"in ue&&t(80,Jt=ue.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&64&&t(117,n=bi.has("EPISODE_BUTTON")),i.$$.dirty[5]&64&&t(112,o=bi.has("GRAPH_BUTTON")),i.$$.dirty[5]&64&&t(113,r=bi.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[5]&64&&t(115,s=bi.has("PLAY_BUTTON")),i.$$.dirty[5]&64&&t(116,a=bi.has("REPLAY_BUTTON")),i.$$.dirty[5]&64&&t(114,l=bi.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[0]&32|i.$$.dirty[3]&1073741824|i.$$.dirty[5]&32&&t(81,vo=Xt?ci==="playing":H===_r.PlaybackState.PLAYING),i.$$.dirty[5]&16&&t(82,xn=ui.value!=="off"),i.$$.dirty[0]&32|i.$$.dirty[5]&8&&t(118,u=gi&&!Xt||an),i.$$.dirty[3]&33554432|i.$$.dirty[4]&256&&t(83,ao=Zn?u&&mi(Pe,"m"):u),i.$$.dirty[0]&32|i.$$.dirty[5]&8&&t(84,Pn=!gi||an||Xt),i.$$.dirty[4]&256&&t(85,Xn=mi(Pe,"m")),i.$$.dirty[0]&32|i.$$.dirty[2]&12288|i.$$.dirty[4]&256&&t(86,Mo=en&&mi(Pe,"m")&&!Xt&&Ui),i.$$.dirty[0]&32|i.$$.dirty[2]&20480|i.$$.dirty[4]&256&&t(87,jo=en&&mi(Pe,"m")&&!Xt&&zi),i.$$.dirty[0]&32|i.$$.dirty[4]&268435456&&t(88,Lo=!Xt&&!!Si),i.$$.dirty[3]&134217728|i.$$.dirty[4]&1610612992&&t(89,yo=q!==_r.ChromecastState.NOT_AVAILABLE&&!(ge&&Ti===1)&&mi(Pe,"m")&&!an),i.$$.dirty[4]&256|i.$$.dirty[5]&4&&t(90,ko=mn.length>0&&mi(Pe,"m")),i.$$.dirty[5]&3&&t(91,Vo=xi||pt),i.$$.dirty[0]&32|i.$$.dirty[4]&256&&t(92,Ro=mi(Pe,"s")&&!Xt),i.$$.dirty[0]&32|i.$$.dirty[2]&1024&&t(93,En=!Ji&&!Xt),i.$$.dirty[2]&33792|i.$$.dirty[4]&1610612992&&t(94,Go=qt.features.fullscreen&&(Ji||mi(Pe,Zn?"xs":"s"))&&!(ge&&Ti===1)&&(an?Pi:!0)),i.$$.dirty[0]&32|i.$$.dirty[4]&268435456&&t(7,Yo=(!Si||Xt)&&!(qt.features.interactiveHideTime&&an)),i.$$.dirty[4]&128&&t(14,Hn=Je.width>100),i.$$.dirty[4]&256&&t(95,Qo=Tt&&mi(Pe,"m")),i.$$.dirty[4]&256&&t(96,Y=Zn?ie&&mi(Pe,"s"):ie),i.$$.dirty[4]&256&&t(97,Dt=Zn?Fn&&mi(Pe,"s"):Fn),i.$$.dirty[0]&32|i.$$.dirty[2]&8388608|i.$$.dirty[3]&16777216|i.$$.dirty[4]&268435456&&t(8,un=!Xt&&!Si&&!!vn?.length&&Xn&&!n),i.$$.dirty[0]&8192|i.$$.dirty[4]&134217728&&t(98,kn=!Ci||Fi),i.$$.dirty[4]&1&&t(99,Zo=ne?W("tooltip_interactive_graph_on"):W("tooltip_interactive_graph_off")),i.$$.dirty[4]&67108864&&t(100,Xo=Yt?W("aria_label_context_menu_close"):W("aria_label_context_menu_open")),i.$$.dirty[3]&1073741856&&Jn(kn,H),i.$$.dirty[2]&1048576&&t(103,Bo=xn?W("tooltip_subtitles_on"):W("tooltip_subtitles_off")),i.$$.dirty[3]&268435456&&t(104,rs=J?W("tooltip_fullscreen_on"):W("tooltip_fullscreen_off")),i.$$.dirty[3]&134217728&&t(105,ss=q===_r.ChromecastState.CONNECTED?W("tooltip_chromecast_on"):W("tooltip_chromecast_off")),i.$$.dirty[3]&67108864|i.$$.dirty[4]&67108352&&t(106,An={prevButton:Bt?Bt.right-Bt.left:0,replayButton:ai?ai.right-ai.left:0,playButton:oi?oi.right-oi.left:0,nextButton:Pt?Pt.right-Pt.left:0,playPrevChapterButton:Vt?Vt.right-Vt.left:0,seekToInteractiveButton:Kt?Kt.right-Kt.left:0,interactiveGraphButton:Mt?Mt.right-Mt.left:0,liveButton:Ht?Ht.right-Ht.left:0,time:Ot?Ot.right-Ot.left:0,episodes:bt?bt.right-bt.left:0,vkLogo:ct?ct.right-ct.left:0,volume:Qe?Qe.right-Qe.left:0,subtitles:Ee?Ee.right-Ee.left:0,settings:rt?rt.right-rt.left:0,context:Ye?Ye.right-Ye.left:0,fullscreen:X?X.right-X.left:0,chromecast:Se?Se.right-Se.left:0,additionalButtons:te.length?te.reduce(ue=>[...ue,40],[]):[]}),i.$$.dirty[3]&24576&&(!$o||$o<An.time)&&t(107,$o=An.time),i.$$.dirty[0]&896|i.$$.dirty[3]&24576|i.$$.dirty[4]&256){let ue=0;un&&(mi(Pe,"xl")?ue=An.time:ue=60);let Sn=An.prevButton+An.playButton+An.nextButton+An.seekToInteractiveButton+An.interactiveGraphButton+An.liveButton+$o+ue;t(108,as=Yo&&ls>=Sn)}i.$$.dirty[3]&32768|i.$$.dirty[4]&256&&t(15,Ls=as&&mi(Pe,"m")),i.$$.dirty[0]&1040|i.$$.dirty[4]&192&&fa(ln(),In,zt,Xi),i.$$.dirty[3]&536870912|i.$$.dirty[4]&32&&de&&Dr(de,ke,bn),i.$$.dirty[3]&536870912|i.$$.dirty[4]&16&&fo(da,ke,Z),i.$$.dirty[4]&8&&Bl(ei,Q,ma),i.$$.dirty[4]&4&&t(109,cs=_e!==null),i.$$.dirty[2]&524288|i.$$.dirty[3]&65536|i.$$.dirty[4]&4&&t(110,yr=cs?_e:vo),i.$$.dirty[3]&131072&&t(111,kr=yr?W("tooltip_pause"):W("tooltip_play")),i.$$.dirty[0]&2048|i.$$.dirty[2]&124674048|i.$$.dirty[3]&1090257276|i.$$.dirty[4]&3&&(t(11,wn=[]),jo&&wn.push({id:"prevButton",type:"desktop-control-panel-left",weight:Po.prevButton,buttonComponent:Gr,buttonComponentProps:{disabled:!zi,type:"prev",click:go.bind(null,!0)},tooltipText:W("tooltip_previous"),disabled:!zi}),ao&&wn.push({id:"replayButton",type:"desktop-control-panel-left",weight:Po.replayButton,buttonComponent:Cs,buttonComponentProps:{disabled:a,click:vr},tooltipText:W("tooltip_restart"),disabled:a}),Pn&&wn.push({id:"playButton",type:"desktop-control-panel-left",weight:Po.playButton,buttonComponent:Ss,buttonComponentProps:{disabled:s,isPlaying:vo,click:Ai},tooltipText:kr,disabled:s}),Mo&&wn.push({id:"nextButton",type:"desktop-control-panel-left",weight:Po.nextButton,buttonComponent:Gr,buttonComponentProps:{disabled:!Ui,type:"next",click:Qn.bind(null,!0)},tooltipText:W("tooltip_next"),disabled:!Ui}),an&&(Dt&&wn.push({id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Po.playPrevChapterButton,buttonComponent:Ol,buttonComponentProps:{disabled:l,click:Jt},tooltipText:W("tooltip_interactive_go_back"),disabledTooltipContent:W(ns),disabled:l}),Y&&wn.push({id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Po.seekToInteractiveButton,buttonComponent:Fl,buttonComponentProps:{disabled:r,click:Bi},tooltipText:W("tooltip_interactive_seek"),disabled:r,disabledTooltipContent:W(F)}),Qo&&wn.push({id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Po.interactiveGraphButton,buttonComponent:xl,buttonComponentProps:{disabled:o,click:bo.toggle,graphIsOpened:ne},tooltipText:Zo})),Lo&&wn.push({id:"liveButton",type:"desktop-control-panel-left",weight:Po.liveButton,buttonComponent:ql,buttonComponentProps:{isLiveActive:kn,ariaLabel:uo},tooltipText:uo,disabled:kn&&H===_r.PlaybackState.PLAYING}),t(11,wn=wn.sort(fr))),i.$$.dirty[0]&4096|i.$$.dirty[2]&2014382592|i.$$.dirty[3]&1006640771&&(t(12,Cn=[]),En&&Cn.push({id:"vkLogo",type:"desktop-control-panel-right",weight:Wo.vkLogo,buttonComponent:yl,buttonComponentProps:{targetUrl:$i,logoClickable:Ii,click:tn},tooltipText:Jo,disabledTooltipContent:"",disabled:!Ii}),Cn.push({id:"volume",type:"desktop-control-panel-right",weight:Wo.volume,buttonComponent:Mm,buttonComponentProps:{click:pa}}),ko&&Cn.push({id:"subtitles",type:"desktop-control-panel-right",weight:Wo.subtitles,buttonComponent:mm,buttonComponentProps:{isSubtitlesEnabled:xn,click:hn},tooltipText:Bo}),Ro&&Cn.push({id:"settings",type:"desktop-control-panel-right",weight:Wo.settings,buttonComponent:ks,buttonComponentProps:{ref$:us},tooltipText:ke?void 0:W("tooltip_settings_off")}),qt.features.contextMenuButton&&Cn.push({id:"context",type:"desktop-control-panel-right",weight:Wo.context,buttonComponent:sp,buttonComponentProps:{click:vi},className:Vo?"":"out-of-view",tooltipText:Xo}),Go&&Cn.push({id:"fullscreen",type:"desktop-control-panel-right",weight:Wo.fullscreen,buttonComponent:vl,buttonComponentProps:{isFullscreen:J,click:vi},tooltipText:rs}),yo&&Cn.push({id:"chromecast",type:"desktop-control-panel-right",weight:Wo.chromecast,buttonComponent:kl,buttonComponentProps:{state:q,click:os},tooltipText:ss}),t(12,Cn=[...Cn,...te].sort(fr)))},t(102,Jo=qt.logoType==="vk_video"?W("tooltip_vk_video_logo"):W("tooltip_vk_logo")),Nt(t(32,{prevButton:c,replayButton:m,playButton:h,nextButton:y,playPrevChapterButton:g,seekToInteractiveButton:T,interactiveGraphButton:k,liveButton:D,time:I,episodes:C,vkLogo:P,volume:G,subtitles:x,settings:O,context:$,fullscreen:se,chromecast:K}=In,c,hi(t(31,m)),Li(t(30,h)),ki(t(29,y)),xt(t(28,g)),Ft(t(27,T)),yi(t(26,k)),St(t(25,D)),Qt(t(24,I)),kt(t(23,C)),gt(t(22,P)),ce(t(21,G)),Xe(t(20,x)),pe(t(19,O)),it(t(18,$)),Ie(t(17,se)),Ke(t(16,K)))),[Ri,_n,Vi,qi,Xi,Xt,Bn,Yo,un,ls,zt,wn,Cn,Ci,Hn,Ls,K,se,$,O,x,G,P,C,I,D,k,T,g,y,h,m,c,Tn,Hi,pn,ri,si,$t,Ge,gn,nn,ji,on,Gi,Kn,Nn,di,Dn,bn,vn,rn,yn,Ni,sn,On,io,no,ei,oo,ro,jn,so,lo,Gn,Yn,ee,is,br,bo,us,Ii,Ji,$i,en,Ui,zi,Pi,vi,Bi,Jt,vo,xn,ao,Pn,Xn,Mo,jo,Lo,yo,ko,Vo,Ro,En,Go,Qo,Y,Dt,kn,Zo,Xo,uo,Jo,Bo,rs,ss,An,$o,as,cs,yr,kr,o,r,l,s,a,n,u,te,q,J,ke,H,ne,F,_e,Q,Z,de,qe,Je,Pe,Se,X,Ye,rt,Ee,Qe,ct,bt,Ot,Ht,Mt,Kt,Vt,Pt,oi,ai,Bt,Yt,Fi,Si,Ti,ge,pt,xi,mn,gi,ui,ci,bi,fs,Vs,_a,Rs,ha,ga,ba,va,wr,ya]}var Rc=class extends B{constructor(e){super(),N(this,e,q3,H3,V,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:71,logoHidden:72,logoTargetUrl:73,showNextPrevButtons:74,nextButtonActive:75,prevButtonActive:76,customFullscreenSupported:77,toggleFullscreen:78,seekToInteractive:79,playPrevChapter:80},N3,[-1,-1,-1,-1,-1,-1,-1])}},Pp=Rc;var Zr=require("@vkontakte/videoplayer-core");var Nc=require("@vkontakte/videoplayer-shared");function U3(i){be(i,"svelte-1aqpg2x",".icon.svelte-1aqpg2x{width:24px !important;height:24px !important;;}.inner.svelte-1aqpg2x{width:16px;height:16px;background-color:var(--white)}")}function z3(i){let e,t,n,o;return{c(){e=S("img"),f(e,"class","icon svelte-1aqpg2x"),wo(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){v(r,e,s),n||(o=Te(e,"error",i[7]),n=!0)},p(r,s){s&1&&!wo(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&b(e),n=!1,o()}}}function W3(i){let e;return{c(){e=S("div"),e.innerHTML='<div class="inner svelte-1aqpg2x"></div>',f(e,"class","icon icon-error-stub svelte-1aqpg2x")},m(t,n){v(t,e,n)},p:me,d(t){t&&b(e)}}}function K3(i){let e;function t(r,s){return r[5]?W3:z3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Ze()},m(r,s){o.m(r,s),v(r,e,s)},p(r,s){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&b(e),o.d(r)}}}function j3(i){let e,t;return e=new dt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[K3]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&16&&(r.className=n[4]?"btn-full-opacity":""),o&2&&(r.ariaLabel=n[1]),o&8&&(r.click=n[3]),o&64&&(r.disabled=n[6]),o&4&&(r.testId=n[2]),o&545&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function G3(i,e,t){let n,o,r,{iconUrl:s}=e,{ariaLabel:a}=e,{disabled:l=!1}=e,{testId:u}=e,{onClick:c=Nc.noop}=e,m=()=>{t(5,r=!0)};return i.$$set=h=>{"iconUrl"in h&&t(0,s=h.iconUrl),"ariaLabel"in h&&t(1,a=h.ariaLabel),"disabled"in h&&t(8,l=h.disabled),"testId"in h&&t(2,u=h.testId),"onClick"in h&&t(3,c=h.onClick)},i.$$.update=()=>{i.$$.dirty&8&&t(4,n=c===Nc.noop),i.$$.dirty&272&&t(6,o=n||l)},t(5,r=!1),[s,a,u,c,n,r,o,m,l]}var Dc=class extends B{constructor(e){super(),N(this,e,G3,j3,V,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},U3)}},Ep=Dc;function Y3(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=L("svg"),a&&a.c(),t=L("g"),n=L("path"),o=L("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"d","M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),Ce(e,u)},m(c,m){v(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),Ce(e,u=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&b(e),a&&a.d(c)}}}function Q3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Oc=class extends B{constructor(e){super(),N(this,e,Q3,Y3,V,{})}},Ap=Oc;var Lp=require("@vkontakte/videoplayer-shared");function Z3(i){be(i,"svelte-6gmlbk",".container.svelte-6gmlbk{display:flex;align-items:center}.expanded.svelte-6gmlbk{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.text.svelte-6gmlbk{font-size:15px;margin-left:8px}")}function Mp(i){let e;return{c(){e=S("span"),e.textContent=`${W("mobile_unmute")}`,f(e,"class","text svelte-6gmlbk")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function X3(i){let e,t,n,o;var r=i[4];function s(l,u){return{}}r&&(t=At(r,s(i)));let a=i[1]&&Mp(i);return{c(){e=S("div"),t&&M(t.$$.fragment),n=j(),a&&a.c(),f(e,"class","container svelte-6gmlbk"),f(e,"aria-hidden","true"),z(e,"expanded",i[1])},m(l,u){v(l,e,u),t&&E(t,e,null),_(e,n),a&&a.m(e,null),o=!0},p(l,u){if(u&16&&r!==(r=l[4])){if(t){le();let c=t;p(c.$$.fragment,1,0,()=>{A(c,1)}),ae()}r?(t=At(r,s(l,u)),M(t.$$.fragment),d(t.$$.fragment,1),E(t,e,n)):t=null}l[1]?a||(a=Mp(l),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&z(e,"expanded",l[1])},i(l){o||(t&&d(t.$$.fragment,l),o=!0)},o(l){t&&p(t.$$.fragment,l),o=!1},d(l){l&&b(e),t&&A(t),a&&a.d()}}}function J3(i){let e,t,n;function o(s){i[6](s)}let r={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[X3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.testId=s[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(l.click=s[2]),a&8&&(l.ariaLabel=s[3]),a&146&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function $3(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=Lp.noop}=e,{ref:s=void 0}=e,a,l;function u(c){s=c,t(0,s)}return i.$$set=c=>{"muted"in c&&t(5,n=c.muted),"expanded"in c&&t(1,o=c.expanded),"click"in c&&t(2,r=c.click),"ref"in c&&t(0,s=c.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,a=n?W("tooltip_volume"):W("tooltip_volume_muted")),i.$$.dirty&2&&t(4,l=o?mr:Ap)},[s,o,r,a,l,n,u]}var Fc=class extends B{constructor(e){super(),N(this,e,$3,J3,V,{muted:5,expanded:1,click:2,ref:0},Z3)}},xc=Fc;function e5(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=L("svg"),a&&a.c(),t=L("path"),n=L("path"),o=L("path"),f(t,"fill","currentColor"),f(t,"d","M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z"),f(t,"clip-rule","evenodd"),f(n,"fill","currentColor"),f(n,"d","m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z"),f(n,"class","hidden-not-active"),f(o,"fill","currentColor"),f(o,"d","m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z"),f(o,"class","hidden-active"),Ce(e,u)},m(c,m){v(c,e,m),a&&a.m(e,null),_(e,t),_(e,n),_(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),Ce(e,u=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&b(e),a&&a.d(c)}}}function t5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Hc=class extends B{constructor(e){super(),N(this,e,t5,e5,V,{})}},Vp=Hc;function i5(i){be(i,"svelte-tmam00",'svg[data-testid="pip-icon--active"] .hidden-active,svg[data-testid="pip-icon"] .hidden-not-active{visibility:hidden;opacity:0}')}function n5(i){let e,t;return e=new Vp({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function o5(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=r=>{"isActive"in r&&t(0,o=r.isActive)},i.$$.update=()=>{i.$$.dirty&1&&t(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var qc=class extends B{constructor(e){super(),N(this,e,o5,n5,V,{isActive:0},i5)}},Rp=qc;var Bp=require("@vkontakte/videoplayer-shared");function r5(i){let e,t;return e=new Rp({props:{isActive:i[1]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function s5(i){let e,t,n;function o(s){i[3](s)}let r={testId:"btn-pip",ariaLabel:W("menu_pip"),click:i[2],$$slots:{default:[r5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&4&&(l.click=s[2]),a&18&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function l5(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=Bp.noop}=e;function s(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"isPictureInPictureActive"in a&&t(1,o=a.isPictureInPictureActive),"click"in a&&t(2,r=a.click)},[n,o,r,s]}var Uc=class extends B{constructor(e){super(),N(this,e,l5,s5,V,{ref:0,isPictureInPictureActive:1,click:2})}},Np=Uc;function a5(i){be(i,"svelte-sty291",".gutter.svelte-sty291{--gutterWidth:32px;--gutterHeight:12px;--togglerWidth:18px;--togglerHeight:18px;--togglerGap:calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px}.toggler.svelte-sty291{position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease}.toggler.enabled.svelte-sty291{background-color:var(--white);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}")}function u5(i){let e,t;return e=new Yr({props:{width:"14",height:"14"}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function c5(i){let e,t;return e=new zo({props:{width:"14",height:"14",fill:"#000"}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function f5(i){let e,t,n,o,r,s=[c5,u5],a=[];function l(u,c){return u[1]?0:1}return n=l(i,-1),o=a[n]=s[n](i),{c(){e=S("span"),t=S("span"),o.c(),f(t,"class","toggler svelte-sty291"),z(t,"enabled",i[1]),f(e,"class","gutter svelte-sty291")},m(u,c){v(u,e,c),_(e,t),a[n].m(t,null),r=!0},p(u,c){let m=n;n=l(u,c),n!==m&&(le(),p(a[m],1,1,()=>{a[m]=null}),ae(),o=a[n],o||(o=a[n]=s[n](u),o.c()),d(o,1),o.m(t,null)),(!r||c&2)&&z(t,"enabled",u[1])},i(u){r||(d(o),r=!0)},o(u){p(o),r=!1},d(u){u&&b(e),a[n].d()}}}function d5(i){let e,t,n;function o(s){i[4](s)}let r={click:i[3],$$slots:{default:[f5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&130&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function m5(i,e,t){let n,{ref:o=void 0}=e,r=et(),s=r.ui.autoplayNextEnabled$;R(i,s,c=>t(1,n=c));let a=r.actions.internal.setAutoplayNextEnabled;function l(){a(!n,!0)}function u(c){o=c,t(0,o)}return i.$$set=c=>{"ref"in c&&t(0,o=c.ref)},[o,n,s,l,u]}var zc=class extends B{constructor(e){super(),N(this,e,m5,d5,V,{ref:0},a5)}},Dp=zc;var s0=require("@vkontakte/videoplayer-shared");function p5(i){be(i,"svelte-1afsgkw",".wrapper-bottom.svelte-1afsgkw.svelte-1afsgkw{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px}.wrapper-bottom.svelte-1afsgkw>.svelte-1afsgkw{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-1afsgkw.svelte-1afsgkw{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-1afsgkw.svelte-1afsgkw{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index)}.wrapper-top-right.svelte-1afsgkw.svelte-1afsgkw{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index)}.wrapper-top-left.svelte-1afsgkw.svelte-1afsgkw{position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index)}.wrapper-middle-left.svelte-1afsgkw.svelte-1afsgkw,.wrapper-middle-left-second.svelte-1afsgkw.svelte-1afsgkw,.wrapper-middle-right.svelte-1afsgkw.svelte-1afsgkw{position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.wrapper-middle-left.svelte-1afsgkw.svelte-1afsgkw{left:12px}.wrapper-middle-left-second.svelte-1afsgkw.svelte-1afsgkw{left:64px}.wrapper-middle-right.svelte-1afsgkw.svelte-1afsgkw{right:12px}.controls.svelte-1afsgkw.svelte-1afsgkw{width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box}.controls.svelte-1afsgkw > *:not(:first-child){margin-left:8px}.hidden.svelte-1afsgkw.svelte-1afsgkw{visibility:hidden;opacity:0}.controls-hidden.svelte-1afsgkw.svelte-1afsgkw{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-1afsgkw.svelte-1afsgkw{transition:none}.overlay-mobile.svelte-1afsgkw.svelte-1afsgkw{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration)}@media screen and (orientation: portrait){.wrapper-top-right.fullscreen.svelte-1afsgkw.svelte-1afsgkw{top:16px}.wrapper-top-left.fullscreen.svelte-1afsgkw.svelte-1afsgkw{top:16px}.controls-wrapper.fullscreen.svelte-1afsgkw.svelte-1afsgkw{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-1afsgkw.svelte-1afsgkw{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-1afsgkw.svelte-1afsgkw{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-1afsgkw.svelte-1afsgkw{left:44px}.wrapper-middle-left-second.fullscreen.svelte-1afsgkw.svelte-1afsgkw{left:96px}.wrapper-middle-right.fullscreen.svelte-1afsgkw.svelte-1afsgkw{right:44px}.controls-wrapper.fullscreen.svelte-1afsgkw.svelte-1afsgkw{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function Op(i,e,t){let n=i.slice();return n[171]=e[t].iconUrl,n[172]=e[t].ariaLabel,n[173]=e[t].testId,n[174]=e[t].onClick,n[175]=e[t].tooltip,n}function Fp(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C=(!i[47]||i[49])&&xp(i),P=_t(i[52]),G=[];for(let F=0;F<P.length;F+=1)G[F]=Hp(Op(i,P,F));let x=F=>p(G[F],1,1,()=>{G[F]=null}),O=i[9]&&!i[11]&&qp(i),$=i[32]&&Up(i),se=i[33]&&zp(i),K=i[53]&&Wp(i),te=i[35]&&Kp(i),q=i[29]&&jp(i),J=i[28]&&Gp(i),ke=i[27]&&Yp(i),H=i[30]&&Qp(i),ne=i[95]&&!i[23]&&Zp(i);return{c(){e=S("div"),t=j(),n=S("div"),C&&C.c(),o=j(),r=S("div");for(let F=0;F<G.length;F+=1)G[F].c();s=j(),O&&O.c(),a=j(),$&&$.c(),l=j(),se&&se.c(),u=j(),K&&K.c(),c=j(),te&&te.c(),m=j(),h=S("div"),q&&q.c(),y=j(),J&&J.c(),g=j(),ke&&ke.c(),T=j(),H&&H.c(),k=j(),ne&&ne.c(),D=Ze(),f(e,"class","overlay-mobile svelte-1afsgkw"),z(e,"hidden",!i[38]),f(n,"class","wrapper-top-left svelte-1afsgkw"),z(n,"hidden",!i[4]),z(n,"fullscreen",i[48]),f(r,"class","wrapper-top-right svelte-1afsgkw"),z(r,"hidden",!i[4]&&!i[21]),z(r,"fullscreen",i[48]),f(h,"class","wrapper-middle svelte-1afsgkw"),z(h,"hidden",!i[4]||i[23]||i[12]&&i[10])},m(F,_e){v(F,e,_e),v(F,t,_e),v(F,n,_e),C&&C.m(n,null),v(F,o,_e),v(F,r,_e);for(let oe=0;oe<G.length;oe+=1)G[oe]&&G[oe].m(r,null);_(r,s),O&&O.m(r,null),_(r,a),$&&$.m(r,null),_(r,l),se&&se.m(r,null),_(r,u),K&&K.m(r,null),_(r,c),te&&te.m(r,null),v(F,m,_e),v(F,h,_e),q&&q.m(h,null),_(h,y),J&&J.m(h,null),_(h,g),ke&&ke.m(h,null),_(h,T),H&&H.m(h,null),v(F,k,_e),ne&&ne.m(F,_e),v(F,D,_e),I=!0},p(F,_e){if((!I||_e[1]&128)&&z(e,"hidden",!F[38]),!F[47]||F[49]?C?(C.p(F,_e),_e[1]&327680&&d(C,1)):(C=xp(F),C.c(),d(C,1),C.m(n,null)):C&&(le(),p(C,1,1,()=>{C=null}),ae()),(!I||_e[0]&16)&&z(n,"hidden",!F[4]),(!I||_e[1]&131072)&&z(n,"fullscreen",F[48]),_e[1]&2097152){P=_t(F[52]);let oe;for(oe=0;oe<P.length;oe+=1){let Q=Op(F,P,oe);G[oe]?(G[oe].p(Q,_e),d(G[oe],1)):(G[oe]=Hp(Q),G[oe].c(),d(G[oe],1),G[oe].m(r,s))}for(le(),oe=P.length;oe<G.length;oe+=1)x(oe);ae()}F[9]&&!F[11]?O?(O.p(F,_e),_e[0]&2560&&d(O,1)):(O=qp(F),O.c(),d(O,1),O.m(r,a)):O&&(le(),p(O,1,1,()=>{O=null}),ae()),F[32]?$?($.p(F,_e),_e[1]&2&&d($,1)):($=Up(F),$.c(),d($,1),$.m(r,l)):$&&(le(),p($,1,1,()=>{$=null}),ae()),F[33]?se?(se.p(F,_e),_e[1]&4&&d(se,1)):(se=zp(F),se.c(),d(se,1),se.m(r,u)):se&&(le(),p(se,1,1,()=>{se=null}),ae()),F[53]?K?(K.p(F,_e),_e[1]&4194304&&d(K,1)):(K=Wp(F),K.c(),d(K,1),K.m(r,c)):K&&(le(),p(K,1,1,()=>{K=null}),ae()),F[35]?te?(te.p(F,_e),_e[1]&16&&d(te,1)):(te=Kp(F),te.c(),d(te,1),te.m(r,null)):te&&(le(),p(te,1,1,()=>{te=null}),ae()),(!I||_e[0]&2097168)&&z(r,"hidden",!F[4]&&!F[21]),(!I||_e[1]&131072)&&z(r,"fullscreen",F[48]),F[29]?q?(q.p(F,_e),_e[0]&536870912&&d(q,1)):(q=jp(F),q.c(),d(q,1),q.m(h,y)):q&&(le(),p(q,1,1,()=>{q=null}),ae()),F[28]?J?(J.p(F,_e),_e[0]&268435456&&d(J,1)):(J=Gp(F),J.c(),d(J,1),J.m(h,g)):J&&(le(),p(J,1,1,()=>{J=null}),ae()),F[27]?ke?(ke.p(F,_e),_e[0]&134217728&&d(ke,1)):(ke=Yp(F),ke.c(),d(ke,1),ke.m(h,T)):ke&&(le(),p(ke,1,1,()=>{ke=null}),ae()),F[30]?H?(H.p(F,_e),_e[0]&1073741824&&d(H,1)):(H=Qp(F),H.c(),d(H,1),H.m(h,null)):H&&(le(),p(H,1,1,()=>{H=null}),ae()),(!I||_e[0]&8393744)&&z(h,"hidden",!F[4]||F[23]||F[12]&&F[10]),F[95]&&!F[23]?ne?(ne.p(F,_e),_e[0]&8388608&&d(ne,1)):(ne=Zp(F),ne.c(),d(ne,1),ne.m(D.parentNode,D)):ne&&(le(),p(ne,1,1,()=>{ne=null}),ae())},i(F){if(!I){d(C);for(let _e=0;_e<P.length;_e+=1)d(G[_e]);d(O),d($),d(se),d(K),d(te),d(q),d(J),d(ke),d(H),d(ne),I=!0}},o(F){p(C),G=G.filter(Boolean);for(let _e=0;_e<G.length;_e+=1)p(G[_e]);p(O),p($),p(se),p(K),p(te),p(q),p(J),p(ke),p(H),p(ne),I=!1},d(F){F&&(b(e),b(t),b(n),b(o),b(r),b(m),b(h),b(k),b(D)),C&&C.d(),ti(G,F),O&&O.d(),$&&$.d(),se&&se.d(),K&&K.d(),te&&te.d(),q&&q.d(),J&&J.d(),ke&&ke.d(),H&&H.d(),ne&&ne.d(F)}}}function xp(i){let e,t,n;function o(s){i[131](s)}let r={muted:i[50],expanded:i[47]&&!i[68]&&i[51],click:i[104]};return i[17].volume!==void 0&&(r.ref=i[17].volume),e=new xc({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[1]&524288&&(l.muted=s[50]),a[1]&1114112&&(l.expanded=s[47]&&!s[68]&&s[51]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].volume,ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Hp(i){let e,t;return e=new Ep({props:{iconUrl:i[171],ariaLabel:i[172]??i[175],testId:i[173],onClick:i[174]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[1]&2097152&&(r.iconUrl=n[171]),o[1]&2097152&&(r.ariaLabel=n[172]??n[175]),o[1]&2097152&&(r.testId=n[173]),o[1]&2097152&&(r.onClick=n[174]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function qp(i){let e,t,n;function o(s){i[132](s)}let r={};return i[17].autoplayNextToggle!==void 0&&(r.ref=i[17].autoplayNextToggle),e=new Dp({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&131072&&(t=!0,l.ref=s[17].autoplayNextToggle,ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Up(i){let e,t,n;function o(s){i[133](s)}let r={isMobile:!0,click:i[102],state:i[22]};return i[17].chromecast!==void 0&&(r.ref=i[17].chromecast),e=new kl({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[0]&4194304&&(l.state=s[22]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].chromecast,ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function zp(i){let e,t,n;function o(s){i[134](s)}let r={click:i[103],isPictureInPictureActive:i[20]};return i[17].pip!==void 0&&(r.ref=i[17].pip),e=new Np({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[0]&1048576&&(l.isPictureInPictureActive=s[20]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].pip,ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Wp(i){let e,t;return e=new ks({props:{ref$:i[105]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Kp(i){let e,t,n;function o(s){i[135](s)}let r={click:i[60],targetUrl:i[8],logoClickable:i[7]};return i[17].vkLogo!==void 0&&(r.ref=i[17].vkLogo),e=new yl({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[0]&256&&(l.targetUrl=s[8]),a[0]&128&&(l.logoClickable=s[7]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].vkLogo,ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function jp(i){let e,t,n;function o(s){i[136](s)}let r={click:i[61].bind(null,!0),type:"prev",isMobile:!0};return i[17].prevButton!==void 0&&(r.ref=i[17].prevButton),e=new Gr({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&131072&&(t=!0,l.ref=s[17].prevButton,ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Gp(i){let e,t,n;function o(s){i[137](s)}let r={disabled:i[45],click:i[59],isMobile:!0,isPlaying:i[25]};return i[17].playButton!==void 0&&(r.ref=i[17].playButton),e=new Ss({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[1]&16384&&(l.disabled=s[45]),a[0]&33554432&&(l.isPlaying=s[25]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].playButton,ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Yp(i){let e,t,n;function o(s){i[138](s)}let r={disabled:i[44],click:i[59],isMobile:!0};return i[17].replayButton!==void 0&&(r.ref=i[17].replayButton),e=new Cs({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[1]&8192&&(l.disabled=s[44]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].replayButton,ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Qp(i){let e,t,n;function o(s){i[139](s)}let r={click:i[62].bind(null,!0),type:"next",isMobile:!0};return i[17].nextButton!==void 0&&(r.ref=i[17].nextButton),e=new Gr({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&131072&&(t=!0,l.ref=s[17].nextButton,ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Zp(i){let e,t,n,o,r=i[98]&&_5(i),s=i[40]&&Xp(i),a=i[97]&&h5(i);return{c(){r&&r.c(),e=j(),s&&s.c(),t=j(),a&&a.c(),n=Ze()},m(l,u){r&&r.m(l,u),v(l,e,u),s&&s.m(l,u),v(l,t,u),a&&a.m(l,u),v(l,n,u),o=!0},p(l,u){l[98]&&r.p(l,u),l[40]?s?(s.p(l,u),u[1]&512&&d(s,1)):(s=Xp(l),s.c(),d(s,1),s.m(t.parentNode,t)):s&&(le(),p(s,1,1,()=>{s=null}),ae()),l[97]&&a.p(l,u)},i(l){o||(d(r),d(s),d(a),o=!0)},o(l){p(r),p(s),p(a),o=!1},d(l){l&&(b(e),b(t),b(n)),r&&r.d(l),s&&s.d(l),a&&a.d(l)}}}function _5(i){let e,t,n,o,r,s;function a(u){i[140](u)}let l={hidden:!i[4],disabled:i[43],click:i[15]};return i[17].playPrevChapterButton!==void 0&&(l.ref=i[17].playPrevChapterButton),t=new Ol({props:l}),ve.push(()=>We(t,"ref",a)),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","wrapper-middle-left svelte-1afsgkw"),z(e,"fullscreen",i[48]),z(e,"hidden",!i[4])},m(u,c){v(u,e,c),E(t,e,null),o=!0,r||(s=Te(e,"click",i[106]),r=!0)},p(u,c){let m={};c[0]&16&&(m.hidden=!u[4]),c[1]&4096&&(m.disabled=u[43]),c[0]&32768&&(m.click=u[15]),!n&&c[0]&131072&&(n=!0,m.ref=u[17].playPrevChapterButton,ze(()=>n=!1)),t.$set(m),(!o||c[1]&131072)&&z(e,"fullscreen",u[48]),(!o||c[0]&16)&&z(e,"hidden",!u[4])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){p(t.$$.fragment,u),o=!1},d(u){u&&b(e),A(t),r=!1,s()}}}function Xp(i){let e,t,n,o,r;function s(l){i[141](l)}let a={hidden:!i[4]&&!i[54],disabled:i[46],click:i[101].toggle,graphIsOpened:i[54]};return i[17].interactiveGraphButton!==void 0&&(a.ref=i[17].interactiveGraphButton),t=new xl({props:a}),ve.push(()=>We(t,"ref",s)),{c(){e=S("div"),M(t.$$.fragment),f(e,"class",o=nd(i[98]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-1afsgkw"),z(e,"fullscreen",i[48]),z(e,"hidden",!i[4]&&!i[54])},m(l,u){v(l,e,u),E(t,e,null),r=!0},p(l,u){let c={};u[0]&16|u[1]&8388608&&(c.hidden=!l[4]&&!l[54]),u[1]&32768&&(c.disabled=l[46]),u[1]&8388608&&(c.graphIsOpened=l[54]),!n&&u[0]&131072&&(n=!0,c.ref=l[17].interactiveGraphButton,ze(()=>n=!1)),t.$set(c),(!r||u[1]&131072)&&z(e,"fullscreen",l[48]),(!r||u[0]&16|u[1]&8388608)&&z(e,"hidden",!l[4]&&!l[54])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){p(t.$$.fragment,l),r=!1},d(l){l&&b(e),A(t)}}}function h5(i){let e,t,n,o,r,s;function a(u){i[142](u)}let l={hidden:!i[4],disabled:i[42],click:i[14]};return i[17].seekToInteractiveButton!==void 0&&(l.ref=i[17].seekToInteractiveButton),t=new Fl({props:l}),ve.push(()=>We(t,"ref",a)),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","wrapper-middle-right svelte-1afsgkw"),z(e,"fullscreen",i[48]),z(e,"hidden",!i[4])},m(u,c){v(u,e,c),E(t,e,null),o=!0,r||(s=Te(e,"click",i[107]),r=!0)},p(u,c){let m={};c[0]&16&&(m.hidden=!u[4]),c[1]&2048&&(m.disabled=u[42]),c[0]&16384&&(m.click=u[14]),!n&&c[0]&131072&&(n=!0,m.ref=u[17].seekToInteractiveButton,ze(()=>n=!1)),t.$set(m),(!o||c[1]&131072)&&z(e,"fullscreen",u[48]),(!o||c[0]&16)&&z(e,"hidden",!u[4])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){p(t.$$.fragment,u),o=!1},d(u){u&&b(e),A(t),r=!1,s()}}}function Jp(i){let e,t,n,o,r,s=i[49]&&$p(i),a=i[26]&&e0(i);return o=new Cl({props:{position:i[55],duration:i[56]}}),{c(){s&&s.c(),e=j(),a&&a.c(),t=j(),n=S("div"),M(o.$$.fragment),f(n,"class","wrapper-bottom ads-timeline-mobile svelte-1afsgkw"),z(n,"fullscreen",i[48])},m(l,u){s&&s.m(l,u),v(l,e,u),a&&a.m(l,u),v(l,t,u),v(l,n,u),E(o,n,null),r=!0},p(l,u){l[49]?s?(s.p(l,u),u[1]&262144&&d(s,1)):(s=$p(l),s.c(),d(s,1),s.m(e.parentNode,e)):s&&(le(),p(s,1,1,()=>{s=null}),ae()),l[26]?a?(a.p(l,u),u[0]&67108864&&d(a,1)):(a=e0(l),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(le(),p(a,1,1,()=>{a=null}),ae());let c={};u[1]&16777216&&(c.position=l[55]),u[1]&33554432&&(c.duration=l[56]),o.$set(c),(!r||u[1]&131072)&&z(n,"fullscreen",l[48])},i(l){r||(d(s),d(a),d(o.$$.fragment,l),r=!0)},o(l){p(s),p(a),p(o.$$.fragment,l),r=!1},d(l){l&&(b(e),b(t),b(n)),s&&s.d(l),a&&a.d(l),A(o)}}}function $p(i){let e,t,n,o;function r(a){i[143](a)}let s={muted:i[50],expanded:!1,click:i[104]};return i[17].volume!==void 0&&(s.ref=i[17].volume),t=new xc({props:s}),ve.push(()=>We(t,"ref",r)),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","wrapper-top-right svelte-1afsgkw"),z(e,"fullscreen",i[48])},m(a,l){v(a,e,l),E(t,e,null),o=!0},p(a,l){let u={};l[1]&524288&&(u.muted=a[50]),!n&&l[0]&131072&&(n=!0,u.ref=a[17].volume,ze(()=>n=!1)),t.$set(u),(!o||l[1]&131072)&&z(e,"fullscreen",a[48])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&b(e),A(t)}}}function e0(i){let e,t,n,o;function r(a){i[144](a)}let s={disabled:i[45],click:i[59],isMobile:!0,isPlaying:!i[26]};return i[17].playButton!==void 0&&(s.ref=i[17].playButton),t=new Ss({props:s}),ve.push(()=>We(t,"ref",r)),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","wrapper-middle svelte-1afsgkw")},m(a,l){v(a,e,l),E(t,e,null),o=!0},p(a,l){let u={};l[1]&16384&&(u.disabled=a[45]),l[0]&67108864&&(u.isPlaying=!a[26]),!n&&l[0]&131072&&(n=!0,u.ref=a[17].playButton,ze(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&b(e),A(t)}}}function g5(i){let e,t,n;function o(s){i[145](s)}let r={disabled:i[44],$$slots:{default:[b5]},$$scope:{ctx:i}};return i[17].replayButton!==void 0&&(r.ref=i[17].replayButton),e=new Qi({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[1]&8192&&(l.disabled=s[44]),a[1]&8192|a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&131072&&(t=!0,l.ref=s[17].replayButton,ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function b5(i){let e,t;return e=new Cs({props:{disabled:i[44],click:i[94]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[1]&8192&&(r.disabled=n[44]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function t0(i){let e,t,n;function o(s){i[146](s)}let r={$$slots:{default:[v5]},$$scope:{ctx:i}};return i[17].liveButton!==void 0&&(r.ref=i[17].liveButton),e=new Qi({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[0]&65536|a[1]&1024|a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&131072&&(t=!0,l.ref=s[17].liveButton,ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function v5(i){let e,t;return e=new ql({props:{isLiveActive:i[16],isMobile:!0,ariaLabel:i[41]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&65536&&(r.isLiveActive=n[16]),o[1]&1024&&(r.ariaLabel=n[41]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function i0(i){let e,t,n;function o(s){i[147](s)}let r={showDuration:i[31],position:i[5]?i[55]:i[57],duration:i[5]?i[56]:i[58],isMobile:!0};return i[17].time!==void 0&&(r.ref=i[17].time),e=new gl({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[1]&1&&(l.showDuration=s[31]),a[0]&32|a[1]&83886080&&(l.position=s[5]?s[55]:s[57]),a[0]&32|a[1]&167772160&&(l.duration=s[5]?s[56]:s[58]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].time,ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function n0(i){let e,t,n,o;return n=new Tl({props:{position:i[57],duration:i[58],timeCodes:i[82]}}),{c(){e=S("div"),e.textContent="\xB7",t=j(),M(n.$$.fragment),f(e,"aria-hidden","true")},m(r,s){v(r,e,s),v(r,t,s),E(n,r,s),o=!0},p(r,s){let a={};s[1]&67108864&&(a.position=r[57]),s[1]&134217728&&(a.duration=r[58]),n.$set(a)},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){p(n.$$.fragment,r),o=!1},d(r){r&&(b(e),b(t)),A(n,r)}}}function y5(i){let e,t,n=i[39]&&n0(i);return{c(){n&&n.c(),e=Ze()},m(o,r){n&&n.m(o,r),v(o,e,r),t=!0},p(o,r){o[39]?n?(n.p(o,r),r[1]&256&&d(n,1)):(n=n0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(le(),p(n,1,1,()=>{n=null}),ae())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function o0(i){let e,t,n;function o(s){i[149](s)}let r={$$slots:{default:[k5]},$$scope:{ctx:i}};return i[17].settings!==void 0&&(r.ref=i[17].settings),e=new Qi({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&131072&&(t=!0,l.ref=s[17].settings,ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function k5(i){let e,t;return e=new ks({props:{ref$:i[105]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function r0(i){let e,t,n;function o(s){i[150](s)}let r={$$slots:{default:[w5]},$$scope:{ctx:i}};return i[17].fullscreen!==void 0&&(r.ref=i[17].fullscreen),e=new Qi({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[0]&8192|a[1]&131072|a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&131072&&(t=!0,l.ref=s[17].fullscreen,ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function w5(i){let e,t;return e=new vl({props:{click:i[13],isFullscreen:i[48]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&8192&&(r.click=n[13]),o[1]&131072&&(r.isFullscreen=n[48]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function C5(i){let e,t,n;function o(s){i[154](s)}let r={};return i[17].interactiveTimeIndicator!==void 0&&(r.ref=i[17].interactiveTimeIndicator),e=new Nl({props:r}),ve.push(()=>We(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&131072&&(t=!0,l.ref=s[17].interactiveTimeIndicator,ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function S5(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C=!i[5]&&Fp(i),P=i[5]&&i[24]!=="inactive"&&Jp(i),G=i[95]&&g5(i),x=!i[5]&&i[19]&&t0(i),O=i[37]&&i0(i);function $(H){i[148](H)}let se={className:"w-max",disabled:!i[39],$$slots:{default:[y5]},$$scope:{ctx:i}};i[17].episodes!==void 0&&(se.ref=i[17].episodes),u=new Qi({props:se}),ve.push(()=>We(u,"ref",$));let K=i[34]&&o0(i),te=i[36]&&r0(i);function q(H){i[152](H)}let J={isAds:i[5],canRewindLive:i[6],isRewindableLive:i[18]};i[17].timeline!==void 0&&(J.ref=i[17].timeline),g=new Sl({props:J}),ve.push(()=>We(g,"ref",q));let ke=i[99]&&C5(i);return{c(){C&&C.c(),e=j(),P&&P.c(),t=j(),n=S("div"),o=S("div"),r=S("div"),G&&G.c(),s=j(),x&&x.c(),a=j(),O&&O.c(),l=j(),M(u.$$.fragment),m=j(),K&&K.c(),h=j(),te&&te.c(),y=j(),M(g.$$.fragment),k=j(),ke&&ke.c(),D=Ze(),f(r,"class","controls svelte-1afsgkw"),z(r,"mobile",!0),f(o,"class","controls-wrapper svelte-1afsgkw"),z(o,"fullscreen",i[48]),f(n,"class","wrapper-bottom svelte-1afsgkw"),z(n,"hidden",i[2]),z(n,"controls-hidden",!i[4]),z(n,"no-smooth",i[3]),z(n,"mobile",!0)},m(H,ne){C&&C.m(H,ne),v(H,e,ne),P&&P.m(H,ne),v(H,t,ne),v(H,n,ne),_(n,o),_(o,r),G&&G.m(r,null),_(r,s),x&&x.m(r,null),_(r,a),O&&O.m(r,null),_(r,l),E(u,r,null),_(r,m),K&&K.m(r,null),_(r,h),te&&te.m(r,null),i[151](r),_(o,y),E(g,o,null),i[153](n),v(H,k,ne),ke&&ke.m(H,ne),v(H,D,ne),I=!0},p(H,ne){H[5]?C&&(le(),p(C,1,1,()=>{C=null}),ae()):C?(C.p(H,ne),ne[0]&32&&d(C,1)):(C=Fp(H),C.c(),d(C,1),C.m(e.parentNode,e)),H[5]&&H[24]!=="inactive"?P?(P.p(H,ne),ne[0]&16777248&&d(P,1)):(P=Jp(H),P.c(),d(P,1),P.m(t.parentNode,t)):P&&(le(),p(P,1,1,()=>{P=null}),ae()),H[95]&&G.p(H,ne),!H[5]&&H[19]?x?(x.p(H,ne),ne[0]&524320&&d(x,1)):(x=t0(H),x.c(),d(x,1),x.m(r,a)):x&&(le(),p(x,1,1,()=>{x=null}),ae()),H[37]?O?(O.p(H,ne),ne[1]&64&&d(O,1)):(O=i0(H),O.c(),d(O,1),O.m(r,l)):O&&(le(),p(O,1,1,()=>{O=null}),ae());let F={};ne[1]&256&&(F.disabled=!H[39]),ne[1]&201326848|ne[5]&8388608&&(F.$$scope={dirty:ne,ctx:H}),!c&&ne[0]&131072&&(c=!0,F.ref=H[17].episodes,ze(()=>c=!1)),u.$set(F),H[34]?K?(K.p(H,ne),ne[1]&8&&d(K,1)):(K=o0(H),K.c(),d(K,1),K.m(r,h)):K&&(le(),p(K,1,1,()=>{K=null}),ae()),H[36]?te?(te.p(H,ne),ne[1]&32&&d(te,1)):(te=r0(H),te.c(),d(te,1),te.m(r,null)):te&&(le(),p(te,1,1,()=>{te=null}),ae());let _e={};ne[0]&32&&(_e.isAds=H[5]),ne[0]&64&&(_e.canRewindLive=H[6]),ne[0]&262144&&(_e.isRewindableLive=H[18]),!T&&ne[0]&131072&&(T=!0,_e.ref=H[17].timeline,ze(()=>T=!1)),g.$set(_e),(!I||ne[1]&131072)&&z(o,"fullscreen",H[48]),(!I||ne[0]&4)&&z(n,"hidden",H[2]),(!I||ne[0]&16)&&z(n,"controls-hidden",!H[4]),(!I||ne[0]&8)&&z(n,"no-smooth",H[3]),H[99]&&ke.p(H,ne)},i(H){I||(d(C),d(P),d(G),d(x),d(O),d(u.$$.fragment,H),d(K),d(te),d(g.$$.fragment,H),d(ke),I=!0)},o(H){p(C),p(P),p(G),p(x),p(O),p(u.$$.fragment,H),p(K),p(te),p(g.$$.fragment,H),p(ke),I=!1},d(H){H&&(b(e),b(t),b(n),b(k),b(D)),C&&C.d(H),P&&P.d(H),G&&G.d(),x&&x.d(),O&&O.d(),A(u),K&&K.d(),te&&te.d(),i[151](null),A(g),i[153](null),ke&&ke.d(H)}}}function T5(i,e,t){let n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C,P,G,x,O,$,se,K,te,q,J,ke,H,ne,F,_e,oe,Q,Z,de,qe,Je,Pe,{bottomHidden:Se}=e,{bottomNoSmooth:Ae}=e,{showControls:Ke}=e,{playerControlsWrapperRef:X=void 0}=e,{playerControlsRef:he=void 0}=e,{isAds:Ie=!1}=e,{canRewindLive:Ye}=e,{logoClickable:tt}=e,{logoHidden:it}=e,{logoTargetUrl:rt=""}=e,{showAutoplayNext:$e}=e,{showNextPrevButtons:pe}=e,{nextButtonActive:Ee}=e,{prevButtonActive:Me}=e,{isOneVideoPlaylist:Xe=!1}=e,{customFullscreenSupported:Qe=!0}=e,{endScreenShown:Oe}=e,{toggleFullscreen:ce}=e,{seekToInteractive:ct}=e,{playPrevChapter:ht}=e,{onDisabledPlayPrevChapterClick:gt}=e,{onDisabledSeekToInteractiveClick:bt}=e,Fe=et(),kt=Vn(),Ot=It(),Ut=Fe.actions.internal.toggleMuted,Qt=Fe.actions.internal.togglePlay,Ht=Fe.actions.internal.pause,lt=Fe.actions.internal.prevVideoClick,St=Fe.actions.internal.nextVideoClick,Mt=Fe.callbacks?.onAudioDoesNotExistHint,Lt=Fe.callbacks?.onAudioDisabledHint,yi=Fe.playerPhase;R(i,yi,ie=>t(127,se=ie));let Kt=Fe.state.duration$;R(i,Kt,ie=>t(58,Pe=ie));let ye=Fe.state.positionWithScrubbing$;R(i,ye,ie=>t(57,Je=ie));let Ft=Fe.state.playbackState$;R(i,Ft,ie=>t(121,y=ie));let Vt=Fe.state.isAudioAvailable$;R(i,Vt,ie=>t(47,g=ie));let Zt=Fe.state.isAudioDisabled,xt=Fe.state.isEnded$;R(i,xt,ie=>t(128,te=ie));let Pt=Fe.state.isLive$;R(i,Pt,ie=>t(19,P=ie));let Rt=Fe.state.muted$;R(i,Rt,ie=>t(50,F=ie));let ki=Fe.state.isActiveLive$;R(i,ki,ie=>t(125,I=ie));let oi=Fe.state.isRewindableLive$;R(i,oi,ie=>t(18,C=ie));let wi=Fe.ui.scrubbingInProgress;R(i,wi,ie=>t(23,K=ie));let Li=Fe.ui.mobileNotReportControlHidden$;R(i,Li,ie=>t(21,O=ie));let ai=Fe.ui.isPictureInPictureActive$;R(i,ai,ie=>t(20,x=ie));let _i=Fe.ui.pictureInPictureType$;R(i,_i,ie=>t(126,G=ie));let hi=Fe.ui.mobileUnmuteButtonExpanded;R(i,hi,ie=>t(51,_e=ie));let Bt=Fe.ui.mobileUnmuteButtonVisible;R(i,Bt,ie=>t(49,ne=ie));let Oi=Fe.ui.settingsMenu.visible$;R(i,Oi,ie=>t(119,m=ie));let Nt=Fe.ui.settingsMenu.openedByBtnKeyboard$;R(i,Nt,ie=>t(118,c=ie));let Yt=Fe.ui.controls,Fi=Fe.actions.internal.getVideoEpisodes(),Ci=Fe.webApi.pictureInPictureApi,Si=Fe.state.chromecastState$;R(i,Si,ie=>t(22,$=ie));let Ti=Fe.state.crashed$;R(i,Ti,ie=>t(53,Q=ie));let ge=Yt.disabledControls$;R(i,ge,ie=>t(129,J=ie));let pt=Fe.ui.startedByKeyboard$;R(i,pt,ie=>t(117,u=ie));let xi=Fe.ui.currentGridType$;R(i,xi,ie=>t(124,D=ie));let mn=Fe.ads.duration;R(i,mn,ie=>t(56,qe=ie));let gi=Fe.ads.position;R(i,gi,ie=>t(55,de=ie));let ui=Fe.ads.playbackState;R(i,ui,ie=>t(24,q=ie));let ci=Fe.ui.isFullscreen;R(i,ci,ie=>t(48,H=ie));let bi=Fe.ui.playerSize;R(i,bi,ie=>t(123,k=ie));let Tn=Fe.ui.additionalButtonsDeprecated$;R(i,Tn,ie=>t(52,oe=ie));let Hi=Fe.actions.internal.getVideoElement,pn=Fe.actions.internal.replayInteractive,ri=Fe.state.isInteractive,Vi=Fe.state.isInteractiveTime$;R(i,Vi,ie=>t(122,T=ie));let qi=Fe.state.showInteractiveGraph,Xi=Fe.state.showSeekToInteractive,Ri=Fe.state.showPlayPrevChapter,_n=Fe.state.showInteractiveTimeIndicator,Xt=kt.seekToInteractiveDisabledTooltip$;R(i,Xt,ie=>t(130,ke=ie));let Bn=kt.graphIsOpened$;R(i,Bn,ie=>t(54,Z=ie));let Ii,Ji,$i,en,Ui,zi,Pi,vi,Bi,Jt,si,nt,Ei,qt,fi,Ai,tn,hn,Mi,Wi,$t,Ge={},gn=(0,s0.debounceFn)(Rl,260),nn=()=>Fe.actions.internal.toggleChromecast();function Ki(){Ho({isAudioDisabled:Zt,audioDisabledHintCallback:Lt,isAudioAvailable:g,audioIsNotExistHintCallback:Mt})&&Ut()}async function ji(){Ci?.isActive()?await Ci?.remove():await Ci?.request()}function on(){!Zt&&g&&Bt.set(!1),Ki()}let Gi="",Kn=(ie,Fn)=>{if(!ie){t(41,Gi=W("tooltip_live"));return}Fn===Zr.PlaybackState.PAUSED&&t(41,Gi=W("tooltip_play"))},Nn,di=Ne();R(i,di,ie=>t(120,h=ie));let Dn=()=>{l&&gt(Ii)},bn=()=>{r&&bt(Ji)};function In(ie){i.$$.not_equal(Ge.volume,ie)&&(Ge.volume=ie,t(17,Ge))}function vn(ie){i.$$.not_equal(Ge.autoplayNextToggle,ie)&&(Ge.autoplayNextToggle=ie,t(17,Ge))}function rn(ie){i.$$.not_equal(Ge.chromecast,ie)&&(Ge.chromecast=ie,t(17,Ge))}function yn(ie){i.$$.not_equal(Ge.pip,ie)&&(Ge.pip=ie,t(17,Ge))}function Ni(ie){i.$$.not_equal(Ge.vkLogo,ie)&&(Ge.vkLogo=ie,t(17,Ge))}function sn(ie){i.$$.not_equal(Ge.prevButton,ie)&&(Ge.prevButton=ie,t(17,Ge))}function On(ie){i.$$.not_equal(Ge.playButton,ie)&&(Ge.playButton=ie,t(17,Ge))}function io(ie){i.$$.not_equal(Ge.replayButton,ie)&&(Ge.replayButton=ie,t(17,Ge))}function no(ie){i.$$.not_equal(Ge.nextButton,ie)&&(Ge.nextButton=ie,t(17,Ge))}function ei(ie){i.$$.not_equal(Ge.playPrevChapterButton,ie)&&(Ge.playPrevChapterButton=ie,t(17,Ge))}function oo(ie){i.$$.not_equal(Ge.interactiveGraphButton,ie)&&(Ge.interactiveGraphButton=ie,t(17,Ge))}function ro(ie){i.$$.not_equal(Ge.seekToInteractiveButton,ie)&&(Ge.seekToInteractiveButton=ie,t(17,Ge))}function jn(ie){i.$$.not_equal(Ge.volume,ie)&&(Ge.volume=ie,t(17,Ge))}function so(ie){i.$$.not_equal(Ge.playButton,ie)&&(Ge.playButton=ie,t(17,Ge))}function lo(ie){i.$$.not_equal(Ge.replayButton,ie)&&(Ge.replayButton=ie,t(17,Ge))}function Gn(ie){i.$$.not_equal(Ge.liveButton,ie)&&(Ge.liveButton=ie,t(17,Ge))}function Yn(ie){i.$$.not_equal(Ge.time,ie)&&(Ge.time=ie,t(17,Ge))}function ln(ie){i.$$.not_equal(Ge.episodes,ie)&&(Ge.episodes=ie,t(17,Ge))}function ho(ie){i.$$.not_equal(Ge.settings,ie)&&(Ge.settings=ie,t(17,Ge))}function go(ie){i.$$.not_equal(Ge.fullscreen,ie)&&(Ge.fullscreen=ie,t(17,Ge))}function Qn(ie){ve[ie?"unshift":"push"](()=>{he=ie,t(1,he)})}function an(ie){i.$$.not_equal(Ge.timeline,ie)&&(Ge.timeline=ie,t(17,Ge))}function ee(ie){ve[ie?"unshift":"push"](()=>{X=ie,t(0,X)})}function Tt(ie){i.$$.not_equal(Ge.interactiveTimeIndicator,ie)&&(Ge.interactiveTimeIndicator=ie,t(17,Ge))}return i.$$set=ie=>{"bottomHidden"in ie&&t(2,Se=ie.bottomHidden),"bottomNoSmooth"in ie&&t(3,Ae=ie.bottomNoSmooth),"showControls"in ie&&t(4,Ke=ie.showControls),"playerControlsWrapperRef"in ie&&t(0,X=ie.playerControlsWrapperRef),"playerControlsRef"in ie&&t(1,he=ie.playerControlsRef),"isAds"in ie&&t(5,Ie=ie.isAds),"canRewindLive"in ie&&t(6,Ye=ie.canRewindLive),"logoClickable"in ie&&t(7,tt=ie.logoClickable),"logoHidden"in ie&&t(108,it=ie.logoHidden),"logoTargetUrl"in ie&&t(8,rt=ie.logoTargetUrl),"showAutoplayNext"in ie&&t(9,$e=ie.showAutoplayNext),"showNextPrevButtons"in ie&&t(10,pe=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(109,Ee=ie.nextButtonActive),"prevButtonActive"in ie&&t(110,Me=ie.prevButtonActive),"isOneVideoPlaylist"in ie&&t(11,Xe=ie.isOneVideoPlaylist),"customFullscreenSupported"in ie&&t(111,Qe=ie.customFullscreenSupported),"endScreenShown"in ie&&t(12,Oe=ie.endScreenShown),"toggleFullscreen"in ie&&t(13,ce=ie.toggleFullscreen),"seekToInteractive"in ie&&t(14,ct=ie.seekToInteractive),"playPrevChapter"in ie&&t(15,ht=ie.playPrevChapter),"onDisabledPlayPrevChapterClick"in ie&&t(112,gt=ie.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ie&&t(113,bt=ie.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&64&&(Ji=W(ke)),i.$$.dirty[4]&32&&t(116,n=J.has("EPISODE_BUTTON")),i.$$.dirty[4]&32&&t(46,o=J.has("GRAPH_BUTTON")),i.$$.dirty[4]&32&&t(42,r=J.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[4]&32&&t(45,s=J.has("PLAY_BUTTON")),i.$$.dirty[4]&32&&t(44,a=J.has("REPLAY_BUTTON")),i.$$.dirty[4]&32&&t(43,l=J.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[3]&268435456&&t(25,$i=y===Zr.PlaybackState.PLAYING),i.$$.dirty[0]&16777216&&t(26,en=q==="paused"),i.$$.dirty[0]&32|i.$$.dirty[4]&16&&t(27,Ui=te&&!Ie&&!ri),i.$$.dirty[0]&32|i.$$.dirty[4]&16&&t(28,zi=!te||Ie),i.$$.dirty[0]&1056|i.$$.dirty[3]&131072&&t(29,Pi=pe&&!Ie&&Me),i.$$.dirty[0]&1056|i.$$.dirty[3]&65536&&t(30,vi=pe&&!Ie&&Ee),i.$$.dirty[3]&1073741824&&t(114,Bi=k.width>300),i.$$.dirty[3]&1073741824&&t(31,Jt=k.width>400),i.$$.dirty[0]&8388608&&t(115,si=K),i.$$.dirty[0]&7340032|i.$$.dirty[4]&4&&t(32,nt=$!==Zr.ChromecastState.NOT_AVAILABLE&&!(x&&G===1)&&!O&&!ri),i.$$.dirty[0]&6291456|i.$$.dirty[3]&4194304|i.$$.dirty[4]&12){let ie=se==="LiveWaitingStart";t(33,Ei=!!Ci&&$!==Zr.ChromecastState.CONNECTED&&!O&&(G===1&&ie||!ie)&&!si&&!ri)}i.$$.dirty[3]&4194304|i.$$.dirty[4]&1&&t(34,qt=!si&&mi(D,"s")),i.$$.dirty[3]&1073774592&&t(35,fi=!it&&k.width>350),i.$$.dirty[0]&1048576|i.$$.dirty[3]&4456448|i.$$.dirty[4]&4&&t(36,Ai=Ot.features.fullscreen&&!(x&&G===1)&&(ri?Qe:!0)&&!si),i.$$.dirty[0]&524320|i.$$.dirty[3]&1077936128&&t(37,tn=(!P||Ie)&&k.width>260&&!si&&!(Ot.features.interactiveHideTime&&ri)),i.$$.dirty[0]&16|i.$$.dirty[3]&67108864&&t(38,hn=m||Ke),i.$$.dirty[0]&524320|i.$$.dirty[3]&14680064&&t(39,Mi=!Ie&&!P&&!!Fi?.length&&Bi&&!n&&!si),i.$$.dirty[0]&262144|i.$$.dirty[4]&2&&t(16,Wi=!C||I),i.$$.dirty[4]&1&&t(40,$t=qi&&mi(D,"m")),i.$$.dirty[0]&131088|i.$$.dirty[3]&1610612736&&gn(Hi(),Yt,Ge,Ke),i.$$.dirty[0]&65536|i.$$.dirty[3]&268435456&&Kn(Wi,y),i.$$.dirty[3]&201326592&&h&&Dr(h,m,Nt),i.$$.dirty[3]&100663296&&fo(Nn,m,c),i.$$.dirty[0]&131072|i.$$.dirty[3]&16777216&&Bl(pt,u,Ge.playButton)},Ii=W(Fe.state.playPrevChapterDisabledTooltip),[X,he,Se,Ae,Ke,Ie,Ye,tt,rt,$e,pe,Xe,Oe,ce,ct,ht,Wi,Ge,C,P,x,O,$,K,q,$i,en,Ui,zi,Pi,vi,Jt,nt,Ei,qt,fi,Ai,tn,hn,Mi,$t,Gi,r,l,a,s,o,g,H,ne,F,_e,oe,Q,Z,de,qe,Je,Pe,Qt,Ht,lt,St,yi,Kt,ye,Ft,Vt,Zt,xt,Pt,Rt,ki,oi,wi,Li,ai,_i,hi,Bt,Oi,Nt,Fi,Si,Ti,ge,pt,xi,mn,gi,ui,ci,bi,Tn,pn,ri,Vi,Xi,Ri,_n,Xt,Bn,nn,ji,on,di,Dn,bn,it,Ee,Me,Qe,gt,bt,Bi,si,n,u,c,m,h,y,T,k,D,I,G,se,te,J,ke,In,vn,rn,yn,Ni,sn,On,io,no,ei,oo,ro,jn,so,lo,Gn,Yn,ln,ho,go,Qn,an,ee,Tt]}var Wc=class extends B{constructor(e){super(),N(this,e,T5,S5,V,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:7,logoHidden:108,logoTargetUrl:8,showAutoplayNext:9,showNextPrevButtons:10,nextButtonActive:109,prevButtonActive:110,isOneVideoPlaylist:11,customFullscreenSupported:111,endScreenShown:12,toggleFullscreen:13,seekToInteractive:14,playPrevChapter:15,onDisabledPlayPrevChapterClick:112,onDisabledSeekToInteractiveClick:113},p5,[-1,-1,-1,-1,-1,-1])}},l0=Wc;function a0(i){let e,t,n,o,r=[P5,I5],s=[];function a(l,u){return l[23]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Ze()},m(l,u){s[e].m(l,u),v(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(le(),p(s[c],1,1,()=>{s[c]=null}),ae(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),s[e].d(l)}}}function I5(i){let e,t,n,o;function r(l){i[27](l)}function s(l){i[28](l)}let a={bottomHidden:i[2],bottomNoSmooth:i[3],showControls:i[4],isAds:i[5],canRewindLive:i[6],logoClickable:i[7],logoHidden:i[8],logoTargetUrl:i[9],showNextPrevButtons:i[10],nextButtonActive:i[12],prevButtonActive:i[13],customFullscreenSupported:i[15],toggleFullscreen:i[17],seekToInteractive:i[18],playPrevChapter:i[19]};return i[0]!==void 0&&(a.playerControlsWrapperRef=i[0]),i[1]!==void 0&&(a.playerControlsRef=i[1]),e=new Pp({props:a}),ve.push(()=>We(e,"playerControlsWrapperRef",r)),ve.push(()=>We(e,"playerControlsRef",s)),{c(){M(e.$$.fragment)},m(l,u){E(e,l,u),o=!0},p(l,u){let c={};u&4&&(c.bottomHidden=l[2]),u&8&&(c.bottomNoSmooth=l[3]),u&16&&(c.showControls=l[4]),u&32&&(c.isAds=l[5]),u&64&&(c.canRewindLive=l[6]),u&128&&(c.logoClickable=l[7]),u&256&&(c.logoHidden=l[8]),u&512&&(c.logoTargetUrl=l[9]),u&1024&&(c.showNextPrevButtons=l[10]),u&4096&&(c.nextButtonActive=l[12]),u&8192&&(c.prevButtonActive=l[13]),u&32768&&(c.customFullscreenSupported=l[15]),u&131072&&(c.toggleFullscreen=l[17]),u&262144&&(c.seekToInteractive=l[18]),u&524288&&(c.playPrevChapter=l[19]),!t&&u&1&&(t=!0,c.playerControlsWrapperRef=l[0],ze(()=>t=!1)),!n&&u&2&&(n=!0,c.playerControlsRef=l[1],ze(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){A(e,l)}}}function P5(i){let e,t,n,o;function r(l){i[25](l)}function s(l){i[26](l)}let a={bottomHidden:i[2],bottomNoSmooth:i[3],showControls:i[4],isAds:i[5],canRewindLive:i[6],logoClickable:i[7],logoHidden:i[8],logoTargetUrl:i[9],showAutoplayNext:i[11],showNextPrevButtons:i[10],nextButtonActive:i[12],prevButtonActive:i[13],isOneVideoPlaylist:i[14],customFullscreenSupported:i[15],endScreenShown:i[16],toggleFullscreen:i[17],seekToInteractive:i[18],playPrevChapter:i[19],onDisabledPlayPrevChapterClick:i[20],onDisabledSeekToInteractiveClick:i[21]};return i[0]!==void 0&&(a.playerControlsWrapperRef=i[0]),i[1]!==void 0&&(a.playerControlsRef=i[1]),e=new l0({props:a}),ve.push(()=>We(e,"playerControlsWrapperRef",r)),ve.push(()=>We(e,"playerControlsRef",s)),{c(){M(e.$$.fragment)},m(l,u){E(e,l,u),o=!0},p(l,u){let c={};u&4&&(c.bottomHidden=l[2]),u&8&&(c.bottomNoSmooth=l[3]),u&16&&(c.showControls=l[4]),u&32&&(c.isAds=l[5]),u&64&&(c.canRewindLive=l[6]),u&128&&(c.logoClickable=l[7]),u&256&&(c.logoHidden=l[8]),u&512&&(c.logoTargetUrl=l[9]),u&2048&&(c.showAutoplayNext=l[11]),u&1024&&(c.showNextPrevButtons=l[10]),u&4096&&(c.nextButtonActive=l[12]),u&8192&&(c.prevButtonActive=l[13]),u&16384&&(c.isOneVideoPlaylist=l[14]),u&32768&&(c.customFullscreenSupported=l[15]),u&65536&&(c.endScreenShown=l[16]),u&131072&&(c.toggleFullscreen=l[17]),u&262144&&(c.seekToInteractive=l[18]),u&524288&&(c.playPrevChapter=l[19]),u&1048576&&(c.onDisabledPlayPrevChapterClick=l[20]),u&2097152&&(c.onDisabledSeekToInteractiveClick=l[21]),!t&&u&1&&(t=!0,c.playerControlsWrapperRef=l[0],ze(()=>t=!1)),!n&&u&2&&(n=!0,c.playerControlsRef=l[1],ze(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){A(e,l)}}}function E5(i){let e,t,n=i[22]&&a0(i);return{c(){n&&n.c(),e=Ze()},m(o,r){n&&n.m(o,r),v(o,e,r),t=!0},p(o,[r]){o[22]?n?(n.p(o,r),r&4194304&&d(n,1)):(n=a0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(le(),p(n,1,1,()=>{n=null}),ae())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function A5(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:r=!1}=e,{showControls:s}=e,{playerControlsWrapperRef:a=void 0}=e,{playerControlsRef:l=void 0}=e,{isAds:u=!1}=e,{canRewindLive:c}=e,{logoClickable:m}=e,{logoHidden:h}=e,{logoTargetUrl:y=""}=e,{showNextPrevButtons:g}=e,{showAutoplayNext:T=!1}=e,{nextButtonActive:k}=e,{prevButtonActive:D}=e,{isOneVideoPlaylist:I=!1}=e,{customFullscreenSupported:C=!0}=e,{endScreenShown:P=!1}=e,{toggleFullscreen:G}=e,{seekToInteractive:x}=e,{playPrevChapter:O}=e,{onDisabledPlayPrevChapterClick:$=Kc.noop}=e,{onDisabledSeekToInteractiveClick:se=Kc.noop}=e,te=et().ui.isMobile;R(i,te,F=>t(23,n=F));let q=!1;vt(()=>{let F=setTimeout(()=>t(22,q=!0),0);return()=>clearTimeout(F)});function J(F){a=F,t(0,a)}function ke(F){l=F,t(1,l)}function H(F){a=F,t(0,a)}function ne(F){l=F,t(1,l)}return i.$$set=F=>{"bottomHidden"in F&&t(2,o=F.bottomHidden),"bottomNoSmooth"in F&&t(3,r=F.bottomNoSmooth),"showControls"in F&&t(4,s=F.showControls),"playerControlsWrapperRef"in F&&t(0,a=F.playerControlsWrapperRef),"playerControlsRef"in F&&t(1,l=F.playerControlsRef),"isAds"in F&&t(5,u=F.isAds),"canRewindLive"in F&&t(6,c=F.canRewindLive),"logoClickable"in F&&t(7,m=F.logoClickable),"logoHidden"in F&&t(8,h=F.logoHidden),"logoTargetUrl"in F&&t(9,y=F.logoTargetUrl),"showNextPrevButtons"in F&&t(10,g=F.showNextPrevButtons),"showAutoplayNext"in F&&t(11,T=F.showAutoplayNext),"nextButtonActive"in F&&t(12,k=F.nextButtonActive),"prevButtonActive"in F&&t(13,D=F.prevButtonActive),"isOneVideoPlaylist"in F&&t(14,I=F.isOneVideoPlaylist),"customFullscreenSupported"in F&&t(15,C=F.customFullscreenSupported),"endScreenShown"in F&&t(16,P=F.endScreenShown),"toggleFullscreen"in F&&t(17,G=F.toggleFullscreen),"seekToInteractive"in F&&t(18,x=F.seekToInteractive),"playPrevChapter"in F&&t(19,O=F.playPrevChapter),"onDisabledPlayPrevChapterClick"in F&&t(20,$=F.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in F&&t(21,se=F.onDisabledSeekToInteractiveClick)},[a,l,o,r,s,u,c,m,h,y,g,T,k,D,I,C,P,G,x,O,$,se,q,n,te,J,ke,H,ne]}var jc=class extends B{constructor(e){super(),N(this,e,A5,E5,V,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:7,logoHidden:8,logoTargetUrl:9,showNextPrevButtons:10,showAutoplayNext:11,nextButtonActive:12,prevButtonActive:13,isOneVideoPlaylist:14,customFullscreenSupported:15,endScreenShown:16,toggleFullscreen:17,seekToInteractive:18,playPrevChapter:19,onDisabledPlayPrevChapterClick:20,onDisabledSeekToInteractiveClick:21})}},Ul=jc;function M5(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T=i[2].default,k=Le(T,i,i[1],null),D=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],I={};for(let C=0;C<D.length;C+=1)I=re(I,D[C]);return{c(){e=L("svg"),k&&k.c(),t=L("g"),n=L("path"),o=L("path"),r=L("defs"),s=L("filter"),a=L("feFlood"),l=L("feColorMatrix"),u=L("feOffset"),c=L("feGaussianBlur"),m=L("feColorMatrix"),h=L("feBlend"),y=L("feBlend"),f(n,"fill","#fff"),f(n,"d","M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_100684"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2260_100684"),f(y,"result","shape"),f(s,"id","a"),f(s,"width","43.996"),f(s,"height","49.5"),f(s,"x","2.5"),f(s,"y","0"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),Ce(e,I)},m(C,P){v(C,e,P),k&&k.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,y),g=!0},p(C,[P]){k&&k.p&&(!g||P&2)&&Re(k,T,C,C[1],g?Ve(T,C[1],P,null):Be(C[1]),null),Ce(e,I=He(D,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},P&1&&C[0]]))},i(C){g||(d(k,C),g=!0)},o(C){p(k,C),g=!1},d(C){C&&b(e),k&&k.d(C)}}}function L5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Gc=class extends B{constructor(e){super(),N(this,e,L5,M5,V,{})}},u0=Gc;function V5(i){let e,t;return e=new u0({props:{style:i[0]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function R5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Yc=class extends B{constructor(e){super(),N(this,e,R5,V5,V,{reversed:1})}},c0=Yc;function B5(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T,k,D=i[2].default,I=Le(D,i,i[1],null),C=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},i[0]],P={};for(let G=0;G<C.length;G+=1)P=re(P,C[G]);return{c(){e=L("svg"),I&&I.c(),t=L("g"),n=L("path"),o=L("path"),r=L("defs"),s=L("clipPath"),a=L("path"),l=L("filter"),u=L("feFlood"),c=L("feColorMatrix"),m=L("feOffset"),h=L("feGaussianBlur"),y=L("feColorMatrix"),g=L("feBlend"),T=L("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22"),f(n,"clip-rule","evenodd"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(a,"fill","#fff"),f(a,"d","M0 0h48v48H0z"),f(s,"id","c"),f(u,"flood-opacity","0"),f(u,"result","BackgroundImageFix"),f(c,"in","SourceAlpha"),f(c,"result","hardAlpha"),f(c,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(h,"stdDeviation","2.5"),f(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(g,"in2","BackgroundImageFix"),f(g,"result","effect1_dropShadow_2260_104204"),f(T,"in","SourceGraphic"),f(T,"in2","effect1_dropShadow_2260_104204"),f(T,"result","shape"),f(l,"id","a"),f(l,"width","51"),f(l,"height","45"),f(l,"x","-1.5"),f(l,"y","1.5"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),Ce(e,P)},m(G,x){v(G,e,x),I&&I.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(r,l),_(l,u),_(l,c),_(l,m),_(l,h),_(l,y),_(l,g),_(l,T),k=!0},p(G,[x]){I&&I.p&&(!k||x&2)&&Re(I,D,G,G[1],k?Ve(D,G[1],x,null):Be(G[1]),null),Ce(e,P=He(C,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},x&1&&G[0]]))},i(G){k||(d(I,G),k=!0)},o(G){p(I,G),k=!1},d(G){G&&b(e),I&&I.d(G)}}}function N5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Qc=class extends B{constructor(e){super(),N(this,e,N5,B5,V,{})}},f0=Qc;function D5(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I=i[2].default,C=Le(I,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},i[0]],G={};for(let x=0;x<P.length;x+=1)G=re(G,P[x]);return{c(){e=L("svg"),C&&C.c(),t=L("g"),n=L("path"),o=L("path"),r=L("path"),s=L("defs"),a=L("clipPath"),l=L("path"),u=L("filter"),c=L("feFlood"),m=L("feColorMatrix"),h=L("feOffset"),y=L("feGaussianBlur"),g=L("feColorMatrix"),T=L("feBlend"),k=L("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"),f(r,"stroke","#000"),f(r,"stroke-opacity",".12"),f(r,"stroke-width",".5"),f(r,"d","M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(l,"fill","#fff"),f(l,"d","M0 0h48v48H0z"),f(a,"id","c"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(y,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(T,"in2","BackgroundImageFix"),f(T,"result","effect1_dropShadow_2260_104293"),f(k,"in","SourceGraphic"),f(k,"in2","effect1_dropShadow_2260_104293"),f(k,"result","shape"),f(u,"id","a"),f(u,"width","51"),f(u,"height","51"),f(u,"x","-1.5"),f(u,"y","-1.5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),Ce(e,G)},m(x,O){v(x,e,O),C&&C.m(e,null),_(e,t),_(t,n),_(t,o),_(t,r),_(e,s),_(s,a),_(a,l),_(s,u),_(u,c),_(u,m),_(u,h),_(u,y),_(u,g),_(u,T),_(u,k),D=!0},p(x,[O]){C&&C.p&&(!D||O&2)&&Re(C,I,x,x[1],D?Ve(I,x[1],O,null):Be(x[1]),null),Ce(e,G=He(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},O&1&&x[0]]))},i(x){D||(d(C,x),D=!0)},o(x){p(C,x),D=!1},d(x){x&&b(e),C&&C.d(x)}}}function O5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Zc=class extends B{constructor(e){super(),N(this,e,O5,D5,V,{})}},d0=Zc;function F5(i){let e,t;return e=new f0({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function x5(i){let e,t;return e=new d0({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function H5(i){let e,t,n,o,r=[x5,F5],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Ze()},m(l,u){s[e].m(l,u),v(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e!==c&&(le(),p(s[c],1,1,()=>{s[c]=null}),ae(),t=s[e],t||(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),s[e].d(l)}}}function q5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Xc=class extends B{constructor(e){super(),N(this,e,q5,H5,V,{isOff:0})}},Jc=Xc;function U5(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T=i[2].default,k=Le(T,i,i[1],null),D=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},i[0]],I={};for(let C=0;C<D.length;C+=1)I=re(I,D[C]);return{c(){e=L("svg"),k&&k.c(),t=L("g"),n=L("path"),o=L("path"),r=L("defs"),s=L("filter"),a=L("feFlood"),l=L("feColorMatrix"),u=L("feOffset"),c=L("feGaussianBlur"),m=L("feColorMatrix"),h=L("feBlend"),y=L("feBlend"),f(n,"fill","#fff"),f(n,"d","M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_106627"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2260_106627"),f(y,"result","shape"),f(s,"id","a"),f(s,"width","40.098"),f(s,"height","27.785"),f(s,"x","3.402"),f(s,"y","10.105"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),Ce(e,I)},m(C,P){v(C,e,P),k&&k.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,y),g=!0},p(C,[P]){k&&k.p&&(!g||P&2)&&Re(k,T,C,C[1],g?Ve(T,C[1],P,null):Be(C[1]),null),Ce(e,I=He(D,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},P&1&&C[0]]))},i(C){g||(d(k,C),g=!0)},o(C){p(k,C),g=!1},d(C){C&&b(e),k&&k.d(C)}}}function z5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var $c=class extends B{constructor(e){super(),N(this,e,z5,U5,V,{})}},m0=$c;function W5(i){let e,t;return e=new m0({props:{style:i[0]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function K5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var ef=class extends B{constructor(e){super(),N(this,e,K5,W5,V,{reversed:1})}},p0=ef;function j5(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T=i[2].default,k=Le(T,i,i[1],null),D=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},i[0]],I={};for(let C=0;C<D.length;C+=1)I=re(I,D[C]);return{c(){e=L("svg"),k&&k.c(),t=L("g"),n=L("path"),o=L("path"),r=L("defs"),s=L("filter"),a=L("feFlood"),l=L("feColorMatrix"),u=L("feOffset"),c=L("feGaussianBlur"),m=L("feColorMatrix"),h=L("feBlend"),y=L("feBlend"),f(n,"fill","#fff"),f(n,"d","M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2340_106922"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2340_106922"),f(y,"result","shape"),f(s,"id","a"),f(s,"width","37"),f(s,"height","37"),f(s,"x","5.5"),f(s,"y","5.5"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),Ce(e,I)},m(C,P){v(C,e,P),k&&k.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,y),g=!0},p(C,[P]){k&&k.p&&(!g||P&2)&&Re(k,T,C,C[1],g?Ve(T,C[1],P,null):Be(C[1]),null),Ce(e,I=He(D,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},P&1&&C[0]]))},i(C){g||(d(k,C),g=!0)},o(C){p(k,C),g=!1},d(C){C&&b(e),k&&k.d(C)}}}function G5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var tf=class extends B{constructor(e){super(),N(this,e,G5,j5,V,{})}},_0=tf;function Y5(i){let e,t;return e=new _0({props:{style:i[0]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Q5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var nf=class extends B{constructor(e){super(),N(this,e,Q5,Y5,V,{reversed:1})}},h0=nf;function Z5(i){be(i,"svelte-1ad3n06",`.hot-key-helpers-container.svelte-1ad3n06.svelte-1ad3n06{position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;animation:svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box}.hot-key-helpers-container.svelte-1ad3n06>div.svelte-1ad3n06{width:48px;height:48px;display:flex;justify-content:center;align-items:center}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"]{transform:scale(2)}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="pause-icon"]{transform:scale(2.5)}.hot-key-helpers-container--left.svelte-1ad3n06.svelte-1ad3n06{left:calc(25% - 100px)}.hot-key-helpers-container--right.svelte-1ad3n06.svelte-1ad3n06{left:calc(75% - 100px)}.hot-key-helpers-text.svelte-1ad3n06.svelte-1ad3n06{text-align:center;font-feature-settings:'clig' off, 'liga' off;text-shadow:0px 0px 5px rgba(0, 0, 0, 0.16);font-size:15px;font-style:normal;font-weight:600;line-height:20px;letter-spacing:-0.105px;width:100%;max-height:40px;margin-top:4px;display:-webkit-box;text-overflow:ellipsis;white-space:pre-wrap;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.hidden.svelte-1ad3n06.svelte-1ad3n06{visibility:hidden;animation:svelte-1ad3n06-fadeOut ease var(--controls-transition-duration);width:0;height:0}@keyframes svelte-1ad3n06-fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes svelte-1ad3n06-fadeOut{0%{opacity:1}100%{opacity:0}}`)}function g0(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,r,s,a,l,u=["RATE_DOWN","RATE_UP"].includes(i[4]),c,m=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),h,y,g,T,k,D=t&&b0(i),I=i[4]==="PAUSE"&&v0(i),C=i[4]==="PLAY"&&y0(i),P=i[4]==="REPLAY"&&k0(i),G=i[4]==="SUBTITLES_OFF"&&w0(i),x=i[4]==="SUBTITLES_ON"&&C0(i),O=u&&S0(i),$=m&&T0(i),se=i[4]==="MUTE"&&I0(i),K=i[4]==="VOLUME"&&P0(i),te=i[5]&&E0(i);return{c(){e=S("div"),D&&D.c(),n=j(),I&&I.c(),o=j(),C&&C.c(),r=j(),P&&P.c(),s=j(),G&&G.c(),a=j(),x&&x.c(),l=j(),O&&O.c(),c=j(),$&&$.c(),h=j(),se&&se.c(),y=j(),K&&K.c(),g=j(),te&&te.c(),T=Ze(),f(e,"class","svelte-1ad3n06")},m(q,J){v(q,e,J),D&&D.m(e,null),_(e,n),I&&I.m(e,null),_(e,o),C&&C.m(e,null),_(e,r),P&&P.m(e,null),_(e,s),G&&G.m(e,null),_(e,a),x&&x.m(e,null),_(e,l),O&&O.m(e,null),_(e,c),$&&$.m(e,null),_(e,h),se&&se.m(e,null),_(e,y),K&&K.m(e,null),v(q,g,J),te&&te.m(q,J),v(q,T,J),k=!0},p(q,J){J&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(q[4])),t?D?(D.p(q,J),J&16&&d(D,1)):(D=b0(q),D.c(),d(D,1),D.m(e,n)):D&&(le(),p(D,1,1,()=>{D=null}),ae()),q[4]==="PAUSE"?I?J&16&&d(I,1):(I=v0(q),I.c(),d(I,1),I.m(e,o)):I&&(le(),p(I,1,1,()=>{I=null}),ae()),q[4]==="PLAY"?C?J&16&&d(C,1):(C=y0(q),C.c(),d(C,1),C.m(e,r)):C&&(le(),p(C,1,1,()=>{C=null}),ae()),q[4]==="REPLAY"?P?J&16&&d(P,1):(P=k0(q),P.c(),d(P,1),P.m(e,s)):P&&(le(),p(P,1,1,()=>{P=null}),ae()),q[4]==="SUBTITLES_OFF"?G?J&16&&d(G,1):(G=w0(q),G.c(),d(G,1),G.m(e,a)):G&&(le(),p(G,1,1,()=>{G=null}),ae()),q[4]==="SUBTITLES_ON"?x?J&16&&d(x,1):(x=C0(q),x.c(),d(x,1),x.m(e,l)):x&&(le(),p(x,1,1,()=>{x=null}),ae()),J&16&&(u=["RATE_DOWN","RATE_UP"].includes(q[4])),u?O?(O.p(q,J),J&16&&d(O,1)):(O=S0(q),O.c(),d(O,1),O.m(e,c)):O&&(le(),p(O,1,1,()=>{O=null}),ae()),J&16&&(m=["EPISODE_PREV","EPISODE_NEXT"].includes(q[4])),m?$?($.p(q,J),J&16&&d($,1)):($=T0(q),$.c(),d($,1),$.m(e,h)):$&&(le(),p($,1,1,()=>{$=null}),ae()),q[4]==="MUTE"?se?J&16&&d(se,1):(se=I0(q),se.c(),d(se,1),se.m(e,y)):se&&(le(),p(se,1,1,()=>{se=null}),ae()),q[4]==="VOLUME"?K?J&16&&d(K,1):(K=P0(q),K.c(),d(K,1),K.m(e,null)):K&&(le(),p(K,1,1,()=>{K=null}),ae()),q[5]?te?te.p(q,J):(te=E0(q),te.c(),te.m(T.parentNode,T)):te&&(te.d(1),te=null)},i(q){k||(d(D),d(I),d(C),d(P),d(G),d(x),d(O),d($),d(se),d(K),k=!0)},o(q){p(D),p(I),p(C),p(P),p(G),p(x),p(O),p($),p(se),p(K),k=!1},d(q){q&&(b(e),b(g),b(T)),D&&D.d(),I&&I.d(),C&&C.d(),P&&P.d(),G&&G.d(),x&&x.d(),O&&O.d(),$&&$.d(),se&&se.d(),K&&K.d(),te&&te.d(q)}}}function b0(i){let e,t;return e=new c0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="FORWARD_SEEK"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function v0(i){let e,t;return e=new Yr({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function y0(i){let e,t;return e=new zo({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function k0(i){let e,t;return e=new Dl({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function w0(i){let e,t;return e=new Jc({props:{isOff:!0}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function C0(i){let e,t;return e=new Jc({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function S0(i){let e,t;return e=new p0({props:{reversed:i[4]==="RATE_UP"}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="RATE_UP"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function T0(i){let e,t;return e=new h0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="EPISODE_NEXT"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function I0(i){let e,t;return e=new mr({props:{volume:0}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function P0(i){let e,t;return e=new mr({props:{volume:1}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function E0(i){let e,t;return{c(){e=S("span"),t=De(i[5]),f(e,"class","hot-key-helpers-text svelte-1ad3n06")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&32&&je(t,n[5])},d(n){n&&b(e)}}}function X5(i){let e,t,n=!i[1]&&i[4]&&g0(i);return{c(){e=S("div"),n&&n.c(),f(e,"class","hot-key-helpers-container svelte-1ad3n06"),z(e,"hidden",i[1]),z(e,"hot-key-helpers-container--left",i[2]),z(e,"hot-key-helpers-container--right",i[3])},m(o,r){v(o,e,r),n&&n.m(e,null),t=!0},p(o,[r]){!o[1]&&o[4]?n?(n.p(o,r),r&18&&d(n,1)):(n=g0(o),n.c(),d(n,1),n.m(e,null)):n&&(le(),p(n,1,1,()=>{n=null}),ae()),(!t||r&2)&&z(e,"hidden",o[1]),(!t||r&4)&&z(e,"hot-key-helpers-container--left",o[2]),(!t||r&8)&&z(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&b(e),n&&n.d()}}}function J5(i,e,t){let n,o=me,r=()=>(o(),o=jt(s,h=>t(6,n=h)),s);i.$$.on_destroy.push(()=>o());let{data:s}=e;r();let a,l,u,c,m;return i.$$set=h=>{"data"in h&&r(t(0,s=h.data))},i.$$.update=()=>{i.$$.dirty&64&&(t(1,a=!n),t(2,l=n?.type==="BACKWARD_SEEK"),t(3,u=n?.type==="FORWARD_SEEK"),t(4,c=n?.type),n?.t?t(5,m=W(n.t.key,{value:n.t.value||""})):t(5,m=n?.text))},[s,a,l,u,c,m,n]}var of=class extends B{constructor(e){super(),N(this,e,J5,X5,V,{data:0},Z5)}},A0=of;function $5(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-opacity",".72"),f(t,"fill-rule","evenodd"),f(t,"d","M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272"),f(t,"clip-rule","evenodd"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function e6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var rf=class extends B{constructor(e){super(),N(this,e,e6,$5,V,{})}},M0=rf;function t6(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function i6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var sf=class extends B{constructor(e){super(),N(this,e,i6,t6,V,{})}},L0=sf;function n6(i){let e,t;return e=new L0({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function o6(i){let e,t;return e=new M0({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function r6(i){let e,t,n,o,r=[o6,n6],s=[];function a(l,u){return l[1]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Ze()},m(l,u){s[e].m(l,u),v(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e===c?s[e].p(l,u):(le(),p(s[c],1,1,()=>{s[c]=null}),ae(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),s[e].d(l)}}}function s6(i,e,t){let n,{direction:o="left"}=e,r,s;return i.$$set=a=>{"direction"in a&&t(3,o=a.direction)},i.$$.update=()=>{i.$$.dirty&8&&(t(1,r=["up","down"].includes(o)),t(0,s=["right","down"].includes(o))),i.$$.dirty&1&&t(2,n=s?"transform: rotate(180deg);":void 0)},[s,r,n,o]}var lf=class extends B{constructor(e){super(),N(this,e,s6,r6,V,{direction:3})}},hr=lf;function l6(i){be(i,"svelte-1yzc86r",".immersive-controls.svelte-1yzc86r{position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn)}.immersive-controls.m-shifted.svelte-1yzc86r{top:50px;left:20px}.button-block.svelte-1yzc86r{width:40px;height:40px;margin:auto auto;transform:rotate(45deg)}.button-row.svelte-1yzc86r{display:flex;flex-direction:row;position:relative}.button.svelte-1yzc86r{width:20px;height:20px;text-align:center;cursor:pointer}.button.svelte-1yzc86r svg{opacity:0.7;transition:opacity linear 0.2s}.button.button-up.svelte-1yzc86r svg{transform:rotate(-45deg) translate(-1px, -1px)}.button.button-right.svelte-1yzc86r svg{transform:rotate(45deg) translate(1px, -1px)}.button.button-down.svelte-1yzc86r svg{transform:rotate(135deg) translate(1px, -3px)}.button.button-left.svelte-1yzc86r svg{transform:rotate(-135deg) translate(-1px, -3px)}.button.svelte-1yzc86r:hover svg{opacity:1}")}function a6(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C;return r=new hr({props:{direction:"up"}}),l=new hr({props:{direction:"up"}}),h=new hr({props:{direction:"up"}}),T=new hr({props:{direction:"up"}}),{c(){e=S("div"),t=S("div"),n=S("div"),o=S("div"),M(r.$$.fragment),s=j(),a=S("div"),M(l.$$.fragment),u=j(),c=S("div"),m=S("div"),M(h.$$.fragment),y=j(),g=S("div"),M(T.$$.fragment),f(o,"class","button button-up svelte-1yzc86r"),f(a,"class","button button-right svelte-1yzc86r"),f(n,"class","button-row svelte-1yzc86r"),f(m,"class","button button-left svelte-1yzc86r"),f(g,"class","button button-down svelte-1yzc86r"),f(c,"class","button-row svelte-1yzc86r"),f(t,"class","button-block svelte-1yzc86r"),f(t,"aria-hidden","true"),f(e,"class","immersive-controls svelte-1yzc86r"),f(e,"tabindex","0"),f(e,"role","button"),f(e,"aria-label",k=W("aria_label_spherical_control")),z(e,"m-shifted",i[0])},m(P,G){v(P,e,G),_(e,t),_(t,n),_(n,o),E(r,o,null),_(n,s),_(n,a),E(l,a,null),_(t,u),_(t,c),_(c,m),E(h,m,null),_(c,y),_(c,g),E(T,g,null),D=!0,I||(C=[Te(o,"mousedown",i[1]),Te(o,"mouseup",i[5]),Te(o,"mouseleave",i[5]),Te(a,"mousedown",i[3]),Te(a,"mouseup",i[5]),Te(a,"mouseleave",i[5]),Te(m,"mousedown",i[4]),Te(m,"mouseup",i[5]),Te(m,"mouseleave",i[5]),Te(g,"mousedown",i[2]),Te(g,"mouseup",i[5]),Te(g,"mouseleave",i[5]),Te(e,"keydown",i[6]),Te(e,"keyup",i[7])],I=!0)},p(P,[G]){(!D||G&1)&&z(e,"m-shifted",P[0])},i(P){D||(d(r.$$.fragment,P),d(l.$$.fragment,P),d(h.$$.fragment,P),d(T.$$.fragment,P),D=!0)},o(P){p(r.$$.fragment,P),p(l.$$.fragment,P),p(h.$$.fragment,P),p(T.$$.fragment,P),D=!1},d(P){P&&b(e),A(r),A(l),A(h),A(T),I=!1,st(C)}}}function u6(i,e,t){let{isShifted:n=!1}=e,o=et(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},l=()=>{o.actions.internal.startCameraManualRotation(1,0)},u=()=>{o.actions.internal.startCameraManualRotation(-1,0)},c=()=>(o.actions.internal.stopCameraManualRotation(),null),m=y=>{if(r.has(y.code))switch(y.preventDefault(),y.stopPropagation(),y.code){case"ArrowUp":s();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":l();break}},h=y=>{r.has(y.code)&&(y.preventDefault(),y.stopPropagation(),c())};return i.$$set=y=>{"isShifted"in y&&t(0,n=y.isShifted)},[n,s,a,l,u,c,m,h]}var af=class extends B{constructor(e){super(),N(this,e,u6,a6,V,{isShifted:0},l6)}},zl=af;var Eo=require("@vkontakte/videoplayer-shared");var V0=(i=1e3)=>{let e=null,t=()=>{e&&(clearTimeout(e),e=null)};return{add:n=>{t(),e=setTimeout(n,i)},clear:t}};var Wl=class{constructor(){this.flickeringTimeout=V0(1e3);this.subscriptions=new Eo.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Eo.ValueSubject([]);this.captionsPrepared$=new Eo.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Eo.filter)(()=>this.isEnabled()),(0,Eo.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let t=[],n=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";n&&t.push([{value:String(e[0].value),timeAppeared:null}]),t.push(e.reduce((o,{type:r,value:s},a)=>(n&&!a||(r==="timestamp"?o.push({timeAppeared:Number(s),value:""}):o.length===0?o.push({value:String(s)}):o[o.length-1].value=String(s)),o),[])),this.captionsPrepared$.next(t)}};function c6(i){be(i,"svelte-c2x749",".subtitles-container.svelte-c2x749.svelte-c2x749{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.svelte-c2x749.svelte-c2x749{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.svelte-c2x749.svelte-c2x749{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.svelte-c2x749.svelte-c2x749{bottom:8%}.subtitles-container.auto.svelte-c2x749 .subtitles-caption.svelte-c2x749{left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin)}.caption.svelte-c2x749.svelte-c2x749{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.svelte-c2x749 .caption.svelte-c2x749{width:100%}.caption-line.svelte-c2x749.svelte-c2x749{display:block;text-align:center}.subtitles-container.auto.svelte-c2x749 .caption-line.svelte-c2x749{text-align:left}.caption-segment.svelte-c2x749.svelte-c2x749{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function R0(i,e,t){let n=i.slice();return n[22]=e[t].value,n}function B0(i,e,t){let n=i.slice();return n[19]=e[t],n}function N0(i,e,t){let n=i.slice();return n[22]=e[t].value,n[23]=e[t].timeAppeared,n}function D0(i){let e,t;function n(s,a){return s[4]&&s[9]?m6:s[4]&&s[7]?.length?d6:f6}let o=n(i,-1),r=o(i);return{c(){e=S("div"),t=S("span"),r.c(),f(t,"class","caption svelte-c2x749"),f(e,"class","subtitles-caption svelte-c2x749"),ni(e,"--subtitles-caption-margin",i[8]+"%"),z(e,"mobile",i[3])},m(s,a){v(s,e,a),_(e,t),r.m(t,null)},p(s,a){o===(o=n(s,a))&&r?r.p(s,a):(r.d(1),r=o(s),r&&(r.c(),r.m(t,null))),a&256&&ni(e,"--subtitles-caption-margin",s[8]+"%"),a&8&&z(e,"mobile",s[3])},d(s){s&&b(e),r.d()}}}function f6(i){let e,t=_t(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=O0(R0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=Ze()},m(o,r){for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(o,r);v(o,e,r)},p(o,r){if(r&66){t=_t(o[1]);let s;for(s=0;s<t.length;s+=1){let a=R0(o,t,s);n[s]?n[s].p(a,r):(n[s]=O0(a),n[s].c(),n[s].m(e.parentNode,e))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(o){o&&b(e),ti(n,o)}}}function d6(i){let e,t=_t(i[7]),n=[];for(let o=0;o<t.length;o+=1)n[o]=H0(B0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=Ze()},m(o,r){for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(o,r);v(o,e,r)},p(o,r){if(r&196){t=_t(o[7]);let s;for(s=0;s<t.length;s+=1){let a=B0(o,t,s);n[s]?n[s].p(a,r):(n[s]=H0(a),n[s].c(),n[s].m(e.parentNode,e))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(o){o&&b(e),ti(n,o)}}}function m6(i){let e,t,n=W("subtitles_auto_caption")+"",o;return{c(){e=S("span"),t=S("span"),o=De(n),f(t,"class","caption-segment svelte-c2x749"),ni(t,"font-size",i[6]+"px"),f(e,"class","caption-line svelte-c2x749")},m(r,s){v(r,e,s),_(e,t),_(t,o)},p(r,s){s&64&&ni(t,"font-size",r[6]+"px")},d(r){r&&b(e)}}}function O0(i){let e,t,n=i[22]+"",o,r;return{c(){e=S("span"),t=S("span"),o=De(n),r=j(),f(t,"class","caption-segment svelte-c2x749"),ni(t,"font-size",i[6]+"px"),f(e,"class","caption-line svelte-c2x749")},m(s,a){v(s,e,a),_(e,t),_(t,o),_(e,r)},p(s,a){a&2&&n!==(n=s[22]+"")&&je(o,n),a&64&&ni(t,"font-size",s[6]+"px")},d(s){s&&b(e)}}}function F0(i){let e=i[22]+"",t;return{c(){t=De(e)},m(n,o){v(n,t,o)},p(n,o){o&128&&e!==(e=n[22]+"")&&je(t,e)},d(n){n&&b(t)}}}function x0(i){let e,t=(!i[23]||i[23]<=i[2])&&F0(i);return{c(){t&&t.c(),e=Ze()},m(n,o){t&&t.m(n,o),v(n,e,o)},p(n,o){!n[23]||n[23]<=n[2]?t?t.p(n,o):(t=F0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&b(e),t&&t.d(n)}}}function H0(i){let e,t,n,o=_t(i[19]),r=[];for(let s=0;s<o.length;s+=1)r[s]=x0(N0(i,o,s));return{c(){e=S("span"),t=S("span");for(let s=0;s<r.length;s+=1)r[s].c();n=j(),f(t,"class","caption-segment svelte-c2x749"),ni(t,"font-size",i[6]+"px"),f(e,"class","caption-line svelte-c2x749")},m(s,a){v(s,e,a),_(e,t);for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(t,null);_(e,n)},p(s,a){if(a&132){o=_t(s[19]);let l;for(l=0;l<o.length;l+=1){let u=N0(s,o,l);r[l]?r[l].p(u,a):(r[l]=x0(u),r[l].c(),r[l].m(t,null))}for(;l<r.length;l+=1)r[l].d(1);r.length=o.length}a&64&&ni(t,"font-size",s[6]+"px")},d(s){s&&b(e),ti(r,s)}}}function p6(i){let e,t=!!(i[1].length||i[7]?.length),n=t&&D0(i);return{c(){e=S("div"),n&&n.c(),f(e,"class","subtitles-container svelte-c2x749"),z(e,"shifted",i[0]),z(e,"auto",i[4]&&!i[5]&&!i[9])},m(o,r){v(o,e,r),n&&n.m(e,null)},p(o,[r]){r&130&&(t=!!(o[1].length||o[7]?.length)),t?n?n.p(o,r):(n=D0(o),n.c(),n.m(e,null)):n&&(n.d(1),n=null),r&1&&z(e,"shifted",o[0]),r&560&&z(e,"auto",o[4]&&!o[5]&&!o[9])},i:me,o:me,d(o){o&&b(e),n&&n.d()}}}function _6(i,e,t){let n,o,r,s,a,l,{shifted:u}=e,{captions:c}=e,{position:m}=e,{playerSize:h}=e,{isMobile:y=!1}=e,g=et(),T=It(),k=g.state.currentSubtitle$;R(i,k,x=>t(16,a=x));let D=g.state.isAutoSubtitleCaptionVisible$;R(i,D,x=>t(9,l=x));let I=g.state.isLive$;R(i,I,x=>t(15,s=x));let C,P=null,G;return vt(()=>{t(14,P=new Wl().subscribe());let x=P.captionsPrepared$.subscribe(O=>{t(7,G=O)});return()=>{P?.destroy(),x.unsubscribe()}}),vt(()=>{if(n){let x=window.setTimeout(()=>{D.set(!1)},T.autoSubtitlesTimeout);return()=>{window.clearTimeout(x)}}else D.set(!1)}),i.$$set=x=>{"shifted"in x&&t(0,u=x.shifted),"captions"in x&&t(1,c=x.captions),"position"in x&&t(2,m=x.position),"playerSize"in x&&t(13,h=x.playerSize),"isMobile"in x&&t(3,y=x.isMobile)},i.$$.update=()=>{if(i.$$.dirty&65536&&t(4,n=!!a.isAuto),i.$$.dirty&32768&&t(5,o=!!s),i.$$.dirty&8192){let x=h.width*.02;t(6,C=x<=T.minSubtitlesFontSize?T.minSubtitlesFontSize:x)}i.$$.dirty&16434&&(P?.setIsAuto(n),P?.setIsLive(o),P?.setCaptions(c)),i.$$.dirty&8192&&t(8,r=h.width<400?10:h.width<550?14:24)},[u,c,m,y,n,o,C,G,r,l,k,D,I,h,P,s,a]}var uf=class extends B{constructor(e){super(),N(this,e,_6,p6,V,{shifted:0,captions:1,position:2,playerSize:13,isMobile:3},c6)}},Kl=uf;function h6(i){be(i,"svelte-raurnb",".wrapper.svelte-raurnb{height:100%;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.wrapper.bgCover.svelte-raurnb{background-size:cover}.icon_wrapper.svelte-raurnb{display:flex;flex-direction:column;align-items:center;width:400px}.icon.svelte-raurnb{width:50px;height:50px}.text.svelte-raurnb{margin-top:20px}")}function q0(i){let e,t,n;return{c(){e=S("div"),t=De("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=De(i[1]),f(e,"class","text svelte-raurnb")},m(o,r){v(o,e,r),_(e,t),_(e,n)},p(o,r){r&2&&je(n,o[1])},d(o){o&&b(e)}}}function g6(i){let e,t,n,o,r,s,a=i[1]&&q0(i);return{c(){e=S("div"),t=S("div"),t.innerHTML='<svg class="icon svelte-raurnb" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=j(),a&&a.c(),f(t,"class","icon_wrapper svelte-raurnb"),f(e,"class","wrapper svelte-raurnb"),f(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${i[0]||""}')`),z(e,"bgCover",i[2].features.previewNoEmptySpace)},m(l,u){v(l,e,u),_(e,t),_(e,n),a&&a.m(e,null),r||(s=Te(e,"click",i[3]),r=!0)},p(l,[u]){l[1]?a?a.p(l,u):(a=q0(l),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&o!==(o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${l[0]||""}')`)&&f(e,"style",o)},i:me,o:me,d(l){l&&b(e),a&&a.d(),r=!1,s()}}}function b6(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e,r=It();function s(a){Ln.call(this,i,a)}return i.$$set=a=>{"thumbUrl"in a&&t(0,n=a.thumbUrl),"chromecastDeviceName"in a&&t(1,o=a.chromecastDeviceName)},[n,o,r,s]}var cf=class extends B{constructor(e){super(),N(this,e,b6,g6,V,{thumbUrl:0,chromecastDeviceName:1},h6)}},jl=cf;function v6(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function y6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var ff=class extends B{constructor(e){super(),N(this,e,y6,v6,V,{})}},U0=ff;function k6(i){be(i,"svelte-13zpvm8",".container.svelte-13zpvm8{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}")}function w6(i){let e,t,n;return t=new U0({}),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","container svelte-13zpvm8")},m(o,r){v(o,e,r),E(t,e,null),n=!0},p:me,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}var df=class extends B{constructor(e){super(),N(this,e,null,w6,V,{},k6)}},Gl=df;function C6(i){be(i,"svelte-1xnh9dd",".container.svelte-1xnh9dd.svelte-1xnh9dd{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.svelte-1xnh9dd.svelte-1xnh9dd{opacity:0;visibility:hidden}.container.bgCover.svelte-1xnh9dd.svelte-1xnh9dd{background-size:cover}.playButton.svelte-1xnh9dd.svelte-1xnh9dd{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.svelte-1xnh9dd.svelte-1xnh9dd{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.svelte-1xnh9dd:hover .playButtonBackground.svelte-1xnh9dd{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.svelte-1xnh9dd svg{transform:scale(2)}")}function S6(i){let e,t,n,o,r,s,a,l,u,c;return r=new zo({}),{c(){e=S("div"),t=S("div"),n=S("div"),o=j(),M(r.$$.fragment),f(n,"class","playButtonBackground svelte-1xnh9dd"),f(t,"class","playButton svelte-1xnh9dd"),f(t,"tabindex","0"),f(t,"role","button"),f(t,"aria-label",s=W("tooltip_play")),f(e,"class","container svelte-1xnh9dd"),f(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),z(e,"hidden",i[1]),z(e,"bgCover",i[4].features.previewNoEmptySpace)},m(m,h){v(m,e,h),_(e,t),_(t,n),_(t,o),E(r,t,null),l=!0,u||(c=[Te(t,"keydown",i[3]),Te(e,"click",mt(function(){Wt(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(m,[h]){i=m,(!l||h&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&f(e,"style",a),(!l||h&2)&&z(e,"hidden",i[1])},i(m){l||(d(r.$$.fragment,m),l=!0)},o(m){p(r.$$.fragment,m),l=!1},d(m){m&&b(e),A(r),u=!1,st(c)}}}function T6(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,s=et(),a=It(),l=s.ui.startedByKeyboard$,u=c=>{let m=c.code;["Enter","Space"].includes(m)&&(c.stopPropagation(),c.preventDefault(),l.set(!0),r())};return i.$$set=c=>{"thumbUrl"in c&&t(0,n=c.thumbUrl),"hidden"in c&&t(1,o=c.hidden),"startVideo"in c&&t(2,r=c.startVideo)},[n,o,r,u,a]}var mf=class extends B{constructor(e){super(),N(this,e,T6,S6,V,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},C6)}get handlePressKey(){return this.$$.ctx[3]}},Yl=mf;function I6(i){be(i,"svelte-1bcvcf2",`.title.svelte-1bcvcf2{position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
26
+ Audio: `),y=De(h),g=j(),k=De(T),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(D,I){v(D,e,I),_(e,t),_(e,n),_(e,o),_(o,r),_(o,a),_(o,l),_(o,c),_(o,m),_(o,y),_(o,g),_(o,k)},p(D,I){I&1&&s!==(s=(D[0].videoCodec||"")+"")&&Ke(a,s),I&1&&u!==(u=D[0].hdr?"(HDR)":"")&&Ke(c,u),I&1&&h!==(h=(D[0].audioCodec||"")+"")&&Ke(y,h),I&1&&T!==(T=D[0].audioLanguage?`(${D[0].audioLanguage})`:"")&&Ke(k,T)},d(D){D&&b(e)}}}function N1(i){let e,t,n,o,r=i[0].viewport+"",s;return{c(){e=S("div"),t=S("div"),t.textContent="Viewport",n=j(),o=S("span"),s=De(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(a,l){v(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].viewport+"")&&Ke(s,r)},d(a){a&&b(e)}}}function D1(i){let e,t,n,o,r=i[0].videoSize+"",s;return{c(){e=S("div"),t=S("div"),t.textContent="Video size",n=j(),o=S("span"),s=De(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(a,l){v(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].videoSize+"")&&Ke(s,r)},d(a){a&&b(e)}}}function O1(i){let e,t,n,o,r=i[0].cdn+"",s;return{c(){e=S("div"),t=S("div"),t.textContent="CDN host",n=j(),o=S("span"),s=De(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(a,l){v(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].cdn+"")&&Ke(s,r)},d(a){a&&b(e)}}}function F1(i){let e,t,n,o,r=i[0].volume+"",s,a;return{c(){e=S("div"),t=S("div"),t.textContent="Volume",n=j(),o=S("span"),s=De(r),a=De(" %"),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(l,u){v(l,e,u),_(e,t),_(e,n),_(e,o),_(o,s),_(o,a)},p(l,u){u&1&&r!==(r=l[0].volume+"")&&Ke(s,r)},d(l){l&&b(e)}}}function x1(i){let e,t,n,o,r=i[0].buffer.toFixed(2)+"",s,a;return{c(){e=S("div"),t=S("div"),t.textContent="Buffer",n=j(),o=S("span"),s=De(r),a=De(" s"),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(l,u){v(l,e,u),_(e,t),_(e,n),_(e,o),_(o,s),_(o,a)},p(l,u){u&1&&r!==(r=l[0].buffer.toFixed(2)+"")&&Ke(s,r)},d(l){l&&b(e)}}}function H1(i){let e,t,n,o,r=i[0].liveLatency.toFixed(2)+"",s,a;return{c(){e=S("div"),t=S("div"),t.textContent="Live latency",n=j(),o=S("span"),s=De(r),a=De(" s"),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(l,u){v(l,e,u),_(e,t),_(e,n),_(e,o),_(o,s),_(o,a)},p(l,u){u&1&&r!==(r=l[0].liveLatency.toFixed(2)+"")&&Ke(s,r)},d(l){l&&b(e)}}}function q1(i){let e,t,n,o,r=[{value:i[0].currentVideoSegmentLength,title:"Video:"},{value:i[0].currentAudioSegmentLength,title:"Audio:"}].filter(W1).map(K1).join(" & ")+"",s;return{c(){e=S("div"),t=S("div"),t.textContent="Segment",n=j(),o=S("span"),s=De(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(a,l){v(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=[{value:a[0].currentVideoSegmentLength,title:"Video:"},{value:a[0].currentAudioSegmentLength,title:"Audio:"}].filter(W1).map(K1).join(" & ")+"")&&Ke(s,r)},d(a){a&&b(e)}}}function U1(i){let e,t,n,o,r,s,a=i[0].speed.toFixed(2)+"",l,u,c;return o=new rl({props:{values:i[5]}}),{c(){e=S("div"),t=S("div"),t.textContent="Network",n=j(),M(o.$$.fragment),r=j(),s=S("span"),l=De(a),u=De(" Kbps"),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(m,h){v(m,e,h),_(e,t),_(e,n),E(o,e,null),_(e,r),_(e,s),_(s,l),_(s,u),c=!0},p(m,h){let y={};h&32&&(y.values=m[5]),o.$set(y),(!c||h&1)&&a!==(a=m[0].speed.toFixed(2)+"")&&Ke(l,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){p(o.$$.fragment,m),c=!1},d(m){m&&b(e),A(o)}}}function z1(i){let e,t,n,o,r,s,a=i[0].bitrate.toFixed(2)+"",l,u,c;return o=new rl({props:{values:i[6]}}),{c(){e=S("div"),t=S("div"),t.textContent="V bitrate",n=j(),M(o.$$.fragment),r=j(),s=S("span"),l=De(a),u=De(" Kbps"),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(m,h){v(m,e,h),_(e,t),_(e,n),E(o,e,null),_(e,r),_(e,s),_(s,l),_(s,u),c=!0},p(m,h){let y={};h&64&&(y.values=m[6]),o.$set(y),(!c||h&1)&&a!==(a=m[0].bitrate.toFixed(2)+"")&&Ke(l,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){p(o.$$.fragment,m),c=!1},d(m){m&&b(e),A(o)}}}function fb(i){let e,t,n,o,r,s,a,l,u=i[0].version+"",c,m,h,y,g,T,k,D,I,C,P,G,x,O,$,le,K,ee,H,J,ke,q,ne,F,_e,oe,Q,Z,se,Ze,Je,Pe,Se,Ae,We,X=i[0].id&&L1(i),he=i[0].vsid&&R1(i),Ie=i[0].provider&&V1(i),Ge=(i[0].videoCodec||i[0].audioCodec)&&B1(i),tt=i[0].viewport&&N1(i),it=i[0].videoSize&&D1(i),rt=i[0].cdn&&O1(i),$e=i[0].volume&&F1(i),pe=i[0].buffer&&x1(i),Ee=i[0].liveLatency&&H1(i),Me=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&q1(i),Xe=i[0].speed&&U1(i),Ye=i[0].bitrate&&z1(i);return Z=new rl({props:{values:i[4]}}),{c(){e=S("div"),t=S("button"),t.textContent="[x]",n=j(),o=S("div"),r=S("div"),s=S("div"),s.textContent="Version",a=j(),l=S("span"),c=De(u),m=j(),X&&X.c(),h=j(),he&&he.c(),y=j(),Ie&&Ie.c(),g=j(),Ge&&Ge.c(),T=j(),tt&&tt.c(),k=j(),it&&it.c(),D=j(),rt&&rt.c(),I=j(),$e&&$e.c(),C=j(),pe&&pe.c(),P=j(),Ee&&Ee.c(),G=j(),Me&&Me.c(),x=j(),O=S("div"),$=S("div"),$.textContent="Dropped",le=j(),K=S("span"),ee=De(i[2]),H=De(" / "),J=De(i[1]),ke=De(" frames"),q=j(),Xe&&Xe.c(),ne=j(),Ye&&Ye.c(),F=j(),_e=S("div"),oe=S("div"),oe.textContent="FPS",Q=j(),M(Z.$$.fragment),se=j(),Ze=S("span"),Je=De(i[3]),f(t,"class","close svelte-12aksxn"),f(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),f(s,"class","svelte-12aksxn"),f(r,"class","svelte-12aksxn"),f($,"class","svelte-12aksxn"),f(O,"class","svelte-12aksxn"),f(oe,"class","svelte-12aksxn"),f(_e,"class","svelte-12aksxn"),f(o,"class","content svelte-12aksxn"),f(e,"class","container svelte-12aksxn"),f(e,"role","region"),f(e,"aria-label",Pe=W("aria_label_debug_panel")),z(e,"container-mobile",i[7])},m(Oe,fe){v(Oe,e,fe),_(e,t),_(e,n),_(e,o),_(o,r),_(r,s),_(r,a),_(r,l),_(l,c),_(o,m),X&&X.m(o,null),_(o,h),he&&he.m(o,null),_(o,y),Ie&&Ie.m(o,null),_(o,g),Ge&&Ge.m(o,null),_(o,T),tt&&tt.m(o,null),_(o,k),it&&it.m(o,null),_(o,D),rt&&rt.m(o,null),_(o,I),$e&&$e.m(o,null),_(o,C),pe&&pe.m(o,null),_(o,P),Ee&&Ee.m(o,null),_(o,G),Me&&Me.m(o,null),_(o,x),_(o,O),_(O,$),_(O,le),_(O,K),_(K,ee),_(K,H),_(K,J),_(K,ke),_(o,q),Xe&&Xe.m(o,null),_(o,ne),Ye&&Ye.m(o,null),_(o,F),_(o,_e),_(_e,oe),_(_e,Q),E(Z,_e,null),_(_e,se),_(_e,Ze),_(Ze,Je),Se=!0,Ae||(We=Te(t,"click",mt(i[9])),Ae=!0)},p(Oe,[fe]){(!Se||fe&1)&&u!==(u=Oe[0].version+"")&&Ke(c,u),Oe[0].id?X?X.p(Oe,fe):(X=L1(Oe),X.c(),X.m(o,h)):X&&(X.d(1),X=null),Oe[0].vsid?he?he.p(Oe,fe):(he=R1(Oe),he.c(),he.m(o,y)):he&&(he.d(1),he=null),Oe[0].provider?Ie?Ie.p(Oe,fe):(Ie=V1(Oe),Ie.c(),Ie.m(o,g)):Ie&&(Ie.d(1),Ie=null),Oe[0].videoCodec||Oe[0].audioCodec?Ge?Ge.p(Oe,fe):(Ge=B1(Oe),Ge.c(),Ge.m(o,T)):Ge&&(Ge.d(1),Ge=null),Oe[0].viewport?tt?tt.p(Oe,fe):(tt=N1(Oe),tt.c(),tt.m(o,k)):tt&&(tt.d(1),tt=null),Oe[0].videoSize?it?it.p(Oe,fe):(it=D1(Oe),it.c(),it.m(o,D)):it&&(it.d(1),it=null),Oe[0].cdn?rt?rt.p(Oe,fe):(rt=O1(Oe),rt.c(),rt.m(o,I)):rt&&(rt.d(1),rt=null),Oe[0].volume?$e?$e.p(Oe,fe):($e=F1(Oe),$e.c(),$e.m(o,C)):$e&&($e.d(1),$e=null),Oe[0].buffer?pe?pe.p(Oe,fe):(pe=x1(Oe),pe.c(),pe.m(o,P)):pe&&(pe.d(1),pe=null),Oe[0].liveLatency?Ee?Ee.p(Oe,fe):(Ee=H1(Oe),Ee.c(),Ee.m(o,G)):Ee&&(Ee.d(1),Ee=null),Oe[0].currentVideoSegmentLength||Oe[0].currentAudioSegmentLength?Me?Me.p(Oe,fe):(Me=q1(Oe),Me.c(),Me.m(o,x)):Me&&(Me.d(1),Me=null),(!Se||fe&4)&&Ke(ee,Oe[2]),(!Se||fe&2)&&Ke(J,Oe[1]),Oe[0].speed?Xe?(Xe.p(Oe,fe),fe&1&&d(Xe,1)):(Xe=U1(Oe),Xe.c(),d(Xe,1),Xe.m(o,ne)):Xe&&(ae(),p(Xe,1,1,()=>{Xe=null}),ue()),Oe[0].bitrate?Ye?(Ye.p(Oe,fe),fe&1&&d(Ye,1)):(Ye=z1(Oe),Ye.c(),d(Ye,1),Ye.m(o,F)):Ye&&(ae(),p(Ye,1,1,()=>{Ye=null}),ue());let ct={};fe&16&&(ct.values=Oe[4]),Z.$set(ct),(!Se||fe&8)&&Ke(Je,Oe[3]),(!Se||fe&128)&&z(e,"container-mobile",Oe[7])},i(Oe){Se||(d(Xe),d(Ye),d(Z.$$.fragment,Oe),Se=!0)},o(Oe){p(Xe),p(Ye),p(Z.$$.fragment,Oe),Se=!1},d(Oe){Oe&&b(e),X&&X.d(),he&&he.d(),Ie&&Ie.d(),Ge&&Ge.d(),tt&&tt.d(),it&&it.d(),rt&&rt.d(),$e&&$e.d(),pe&&pe.d(),Ee&&Ee.d(),Me&&Me.d(),Xe&&Xe.d(),Ye&&Ye.d(),A(Z),Ae=!1,We()}}}var W1=({value:i})=>i,K1=({value:i,title:e})=>`${e} ${((i??0)/1e3).toFixed(2)} s`;function db(i,e,t){let n,o=et(),r=o.ui.debugPanelVisible,s=o.ui.isMobile;V(i,s,C=>t(7,n=C));let a=()=>{ou.safeStorage.remove(ps),r.set(!1)},l=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),c=0,m=0,h=0,y=new Or(60),g=new Or(60),T=new Or(60),k=[],D=[],I=[];return yt(()=>{ou.safeStorage.set(ps,"true"),o.actions.internal.startLogging(),u&&(t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,c=u.getVideoPlaybackQuality().totalVideoFrames));let C=window.setInterval(()=>{t(0,l=o.actions.internal.getDebugPanelData())},500),P;return u&&(P=window.setInterval(()=>{if(u){t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames);let G=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=G-c),t(1,c=G),y.push(h),l.speed&&g.push(l.speed),l.bitrate&&T.push(l.bitrate),t(4,k=y.getValuesFromBottom()),t(5,D=g.getValuesFromBottom()),t(6,I=T.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(C),P&&clearInterval(P)}}),[l,c,m,h,k,D,I,n,s,a]}var ru=class extends B{constructor(e){super(),N(this,e,db,fb,R,{},cb)}},sl=ru;function mb(i){be(i,"svelte-1ome55p",".close.svelte-1ome55p{cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px}.close.svelte-1ome55p:hover{opacity:1}.close.svelte-1ome55p:before,.close.svelte-1ome55p:after{position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white)}.close.svelte-1ome55p:before{transform:rotate(45deg)}.close.svelte-1ome55p:after{transform:rotate(-45deg)}")}function pb(i){let e,t,n;return{c(){e=S("div"),f(e,"class","close svelte-1ome55p")},m(o,r){v(o,e,r),t||(n=Te(e,"click",mt(i[0])),t=!0)},p:me,i:me,o:me,d(o){o&&b(e),t=!1,n()}}}function _b(i){function e(t){Bn.call(this,i,t)}return[e]}var su=class extends B{constructor(e){super(),N(this,e,_b,pb,R,{},mb)}},ll=su;var j1=require("@vkontakte/videoplayer-shared");function hb(i){be(i,"svelte-8jhsry",`.timer.svelte-8jhsry{border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around}.timer.svelte-8jhsry:hover{background:rgba(31, 31, 31, .85)
27
+ }.timer-canvas.svelte-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.svelte-8jhsry{width:22px;height:26px}`)}function gb(i){let e,t,n,o,r,s,a;return{c(){e=S("div"),t=S("canvas"),n=j(),o=L("svg"),r=L("g"),s=L("g"),a=L("path"),f(t,"class","timer-canvas svelte-8jhsry"),f(t,"width","100"),f(t,"height","100"),f(a,"class","_play"),f(a,"d","m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z"),f(a,"fill","#fff"),f(s,"fill-rule","nonzero"),f(r,"fill","none"),f(r,"fill-rule","evenodd"),f(o,"class","timer-play-icon svelte-8jhsry"),f(o,"viewBox","0 0 24 24"),f(o,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","timer svelte-8jhsry")},m(l,u){v(l,e,u),_(e,t),i[3](t),_(e,n),_(e,o),_(o,r),_(r,s),_(s,a)},p:me,i:me,o:me,d(l){l&&b(e),i[3](null)}}}var bb=5e3;function vb(i,e,t){let{isRunning:n=!0}=e,{onTimerEnded:o=j1.noop}=e,r,s,a,l,u,c=()=>{n&&(u=(Date.now()-a)/bb,u<1?(s?.clearRect(0,0,100,100),s?.beginPath(),s?.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),s?.stroke(),l=requestAnimationFrame(c)):o())};yt(()=>{if(s=r.getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{cancelAnimationFrame(l)}});function m(h){ve[h?"unshift":"push"](()=>{r=h,t(0,r)})}return i.$$set=h=>{"isRunning"in h&&t(1,n=h.isRunning),"onTimerEnded"in h&&t(2,o=h.onTimerEnded)},i.$$.update=()=>{i.$$.dirty&2&&n&&(a=Date.now(),l=requestAnimationFrame(c))},[r,n,o,m]}var lu=class extends B{constructor(e){super(),N(this,e,vb,gb,R,{isRunning:1,onTimerEnded:2},hb)}},al=lu;function yb(i){be(i,"svelte-149n6j1",".overlay.svelte-149n6j1{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-149n6j1{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.svelte-149n6j1{display:flex;justify-content:space-between}.caption.svelte-149n6j1{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-149n6j1{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%}.column.svelte-149n6j1{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-149n6j1{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.svelte-149n6j1{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.svelte-149n6j1{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function kb(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C,P,G,x;return a=new ll({}),a.$on("click",i[6]),g=new al({props:{isRunning:i[2],onTimerEnded:i[5]}}),{c(){e=S("div"),t=j(),n=S("div"),o=S("div"),r=S("div"),r.textContent=`${W("end_screen_next_video")}`,s=j(),M(a.$$.fragment),l=j(),u=S("div"),c=S("div"),m=S("div"),h=S("div"),y=j(),M(g.$$.fragment),k=j(),D=S("div"),I=S("div"),C=De(i[0]),f(e,"class","overlay svelte-149n6j1"),f(r,"class","caption svelte-149n6j1"),f(o,"class","top svelte-149n6j1"),f(h,"class","thumb-overlay svelte-149n6j1"),f(m,"class","thumb svelte-149n6j1"),f(m,"style",T=`background-image: url('${i[1]}')`),f(c,"class","column svelte-149n6j1"),f(I,"class","title svelte-149n6j1"),f(D,"class","column svelte-149n6j1"),f(u,"class","row svelte-149n6j1"),f(n,"class","next-video svelte-149n6j1")},m(O,$){v(O,e,$),v(O,t,$),v(O,n,$),_(n,o),_(o,r),_(o,s),E(a,o,null),_(n,l),_(n,u),_(u,c),_(c,m),_(m,h),_(m,y),E(g,m,null),_(u,k),_(u,D),_(D,I),_(I,C),P=!0,G||(x=Te(u,"click",i[4]),G=!0)},p(O,[$]){let le={};$&4&&(le.isRunning=O[2]),g.$set(le),(!P||$&2&&T!==(T=`background-image: url('${O[1]}')`))&&f(m,"style",T),(!P||$&1)&&Ke(C,O[0])},i(O){P||(d(a.$$.fragment,O),d(g.$$.fragment,O),P=!0)},o(O){p(a.$$.fragment,O),p(g.$$.fragment,O),P=!1},d(O){O&&(b(e),b(t),b(n)),A(a),A(g),G=!1,x()}}}function wb(i,e,t){let n,{title:o}=e,{thumb:r}=e,{clickCloseIcon:s}=e,a=et(),l=a.ui.timerNextVideoRunning$;V(i,l,k=>t(2,n=k));let u=a.actions.internal.nextVideoClick,c=a.actions.internal.nextVideoAnnouncementClick,m=a.actions.internal.nextVideoAnnouncementAuto,h=a.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),c()},g=()=>{u(!1),m()},T=()=>{s(),h()};return i.$$set=k=>{"title"in k&&t(0,o=k.title),"thumb"in k&&t(1,r=k.thumb),"clickCloseIcon"in k&&t(7,s=k.clickCloseIcon)},[o,r,n,l,y,g,T,s]}var au=class extends B{constructor(e){super(),N(this,e,wb,kb,R,{title:0,thumb:1,clickCloseIcon:7},yb)}},G1=au;var Uo=require("@vkontakte/videoplayer-core"),Y1=require("@vkontakte/videoplayer-shared"),dn=require("@vkontakte/videoplayer-statistics");var uu=(i,e)=>Math.min(+(i+e).toFixed(2),1),cu=(i,e)=>Math.max(+(i-e).toFixed(2),0),ul=(i,e,t)=>{let n=uu(e,t);e<1&&i.actions.internal.setVolume(n)},cl=(i,e,t)=>{let n=cu(e,t);e>0&&i.actions.internal.setVolume(n)};var qo=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e?.(),!1):t?!0:(n?.(),!1);function Sb(i){be(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function Tb(i){let e,t,n,o,r,s=i[26].default,a=Le(s,i,i[25],null);return{c(){e=S("div"),a&&a.c(),f(e,"class","keyboard-controls svelte-10kkmxz"),f(e,"tabindex","-1"),f(e,"role","region"),f(e,"aria-label",t=W("aria_label_video_player"))},m(l,u){v(l,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(r=[Te(e,"keyup",i[17]),Te(e,"keydown",i[16])],o=!0)},p(l,u){a&&a.p&&(!n||u[0]&33554432)&&Ve(a,s,l,l[25],n?Re(s,l[25],u,null):Be(l[25]),null)},i(l){n||(d(a,l),n=!0)},o(l){p(a,l),n=!1},d(l){l&&b(e),a&&a.d(l),i[27](null),o=!1,st(r)}}}function Ib(i,e,t){let n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,{$$slots:I={},$$scope:C}=e,{isAds:P}=e,{hideContextMenu:G}=e,{toggleFullscreen:x}=e,{showHotKeyHelpers:O}=e,{showKeyMap:$}=e,{fakePlayButtonHandler:le}=e,K=et(),ee=It(),H=K.getLogger().createComponentLog("KeyboardControls component"),J=K.state.playbackState$;V(i,J,fe=>t(31,o=fe));let ke=K.ads.playbackState;V(i,ke,fe=>t(30,n=fe));let q=K.state.positionExact$;V(i,q,fe=>t(41,g=fe));let ne=K.state.duration$;V(i,ne,fe=>t(40,y=fe));let F=K.state.volume$;V(i,F,fe=>t(44,D=fe));let _e=K.ui.controls.disabledControls$;V(i,_e,fe=>t(39,h=fe));let oe=K.state.muted$;V(i,oe,fe=>t(34,a=fe));let Q=K.state.currentSubtitle$;V(i,Q,fe=>t(33,s=fe));let Z=K.state.currentPlaybackRate$;V(i,Z,fe=>t(42,T=fe));let se=K.state.availablePlaybackRates$;V(i,se,fe=>t(43,k=fe));let Ze=K.ui.contextMenu.openedByHotKey$,Je=K.ui.contextMenu.lastActiveElem$,Pe=K.ui.contextMenu.visible$,Se=K.ui.contextMenu.position$,Ae=K.state.isEnded$;V(i,Ae,fe=>t(36,u=fe));let We=K.ui.overlayContainer$;V(i,We,fe=>t(32,r=fe));let X=K.callbacks?.onAudioDoesNotExistHint,he=K.callbacks?.onAudioDisabledHint,Ie=K.state.isAudioAvailable$;V(i,Ie,fe=>t(35,l=fe));let Ge=K.state.isAudioDisabled,tt=K.state.isInteractiveTime$;V(i,tt,fe=>t(38,m=fe));let{showInteractiveTimeIndicatorTooltip$:it}=Nn();V(i,it,fe=>t(37,c=fe));let rt=0,$e=!0,pe,Ee=()=>pe?.focus(),Me=fe=>(fe!==$e&&($e=fe,rt=0),rt+=1,(ee.controls.seekStepKeyboard+ee.controls.seekStepKeyboard*rt)/1e3),Xe=fe=>{let ct=fe.target,ht=ct?.getAttribute("role")?.includes("menuitem"),gt=ct.classList.contains("btn"),bt=fe.code;if(gt&&bt==="Space")return;let Fe=kd.has(bt);if(ht&&Fe)return;let wt=!yd.has(bt);if(fe.ctrlKey&&wt||fe.altKey&&wt||fe.metaKey)return;let Ot=ht&&bt==="Escape";wd.has(bt)||Ot||G();let Ut=o===Uo.PlaybackState.PLAYING||o===Uo.PlaybackState.PAUSED,Qt=P&&(n==="paused"||n==="playing"),Ht=!Qt&&!h.has("TIMELINE");if(Ut||Qt)switch(H({message:`key down, code: ${bt}`}),bt){case"KeyJ":case"ArrowLeft":{if(!Ht)break;if(fe.ctrlKey||fe.altKey){let lt=K.actions.internal.getPrevEpisode();K.actions.internal.seekToPrevEpisode(lt),lt&&O({type:"EPISODE_PREV",text:lt.text}),fe.preventDefault()}else{let lt=fe.shiftKey?Me(!1):ee.controls.seekStepKeyboard/1e3,Tt=Math.max(g-lt,0);g>0&&(K.actions.internal.seekTime(Tt,dn.SeekAction.DOUBLE_TAP),O({type:"BACKWARD_SEEK",text:lt.toString()}),fe.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Ht)break;if(fe.ctrlKey||fe.altKey){let lt=K.actions.internal.getNextEpisode();K.actions.internal.seekToNextEpisode(lt),lt&&O({type:"EPISODE_NEXT",text:lt.text}),fe.preventDefault()}else{let lt=fe.shiftKey?Me(!0):ee.controls.seekStepKeyboard/1e3,Tt=Math.min(g+lt,y);Math.round(g)<Math.round(y)&&(K.actions.internal.seekTime(Tt,dn.SeekAction.DOUBLE_TAP),O({type:"FORWARD_SEEK",text:lt.toString()}),fe.preventDefault())}break}case"ArrowUp":{if(qo({isAudioDisabled:Ge,audioDisabledHintCallback:he,isAudioAvailable:l,audioIsNotExistHintCallback:X})){let lt=D,Tt=ee.controls.volumeStepKeyboard,Mt=lt<=1;if(ul(K,lt,Tt),Mt){let Lt=Math.round(uu(lt,Tt)*100).toString();O({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Lt}})}}fe.preventDefault();break}case"ArrowDown":{if(qo({isAudioDisabled:Ge,audioDisabledHintCallback:he,isAudioAvailable:l,audioIsNotExistHintCallback:X})){let lt=D,Tt=ee.controls.volumeStepKeyboard,Mt=lt>=0;if(cl(K,lt,Tt),Mt){let Lt=Math.round(cu(lt,Tt)*100).toString();O({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Lt}})}}fe.preventDefault();break}case"Comma":{if(fe.shiftKey){K.actions.internal.decrementPlaybackRate();let lt=k.find(Tt=>Tt.value===T);O({type:"RATE_DOWN",text:lt?.displayValue}),fe.preventDefault()}else{if(Qt||o!==Uo.PlaybackState.PAUSED)break;let lt=Math.max(g-ee.controls.seekStepFrame/1e3,0);g>0&&(O({type:"BACKWARD_SEEK"}),K.actions.internal.clearDelayedBufferingCheckTimeout(),K.actions.internal.seekTime(lt,dn.SeekAction.DOUBLE_TAP),fe.preventDefault())}break}case"Period":{if(fe.shiftKey){K.actions.internal.incrementPlaybackRate();let lt=k.find(Tt=>Tt.value===T);O({type:"RATE_UP",text:lt?.displayValue}),fe.preventDefault()}else{if(Qt||o!==Uo.PlaybackState.PAUSED)break;let lt=Math.min(g+ee.controls.seekStepFrame/1e3,y);g<y&&(O({type:"FORWARD_SEEK"}),K.actions.internal.clearDelayedBufferingCheckTimeout(),K.actions.internal.seekTime(lt,dn.SeekAction.DOUBLE_TAP),fe.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(m&&c&&it.set(!1),le)le();else{K.actions.internal.togglePlay();let lt="PLAY";o===Uo.PlaybackState.PAUSED?lt="PAUSE":u&&(lt="REPLAY"),O({type:lt})}fe.preventDefault();break;case"KeyM":{qo({isAudioDisabled:Ge,audioDisabledHintCallback:he,isAudioAvailable:l,audioIsNotExistHintCallback:X})&&(O({type:a?"VOLUME":"MUTE"}),K.actions.internal.toggleMuted()),fe.preventDefault();break}case"KeyF":x(),fe.preventDefault();break;case"KeyC":K.actions.internal.toggleSubtitle(),s.value!=="off"?O({type:"SUBTITLES_ON",text:s?.displayValue}):O({type:"SUBTITLES_OFF"}),fe.preventDefault();break;case"KeyI":K.actions.internal.togglePictureInPicture(),fe.preventDefault();break;case"Digit1":case"Numpad1":if(fe.shiftKey){let lt=C1(r);Se.set(lt),Je.set(ct),Ze.set(!0),Pe.set(!0),fe.preventDefault();break}O(),K.actions.internal.seekToPercent(.1,dn.SeekAction.DOUBLE_TAP),fe.preventDefault();break;case"Digit2":case"Numpad2":O(),K.actions.internal.seekToPercent(.2,dn.SeekAction.DOUBLE_TAP),fe.preventDefault();break;case"Digit3":case"Numpad3":O(),K.actions.internal.seekToPercent(.3,dn.SeekAction.DOUBLE_TAP),fe.preventDefault();break;case"Digit4":case"Numpad4":O(),K.actions.internal.seekToPercent(.4,dn.SeekAction.DOUBLE_TAP),fe.preventDefault();break;case"Digit5":case"Numpad5":O(),K.actions.internal.seekToPercent(.5,dn.SeekAction.DOUBLE_TAP),fe.preventDefault();break;case"Digit6":case"Numpad6":O(),K.actions.internal.seekToPercent(.6,dn.SeekAction.DOUBLE_TAP),fe.preventDefault();break;case"Digit7":case"Numpad7":O(),K.actions.internal.seekToPercent(.7,dn.SeekAction.DOUBLE_TAP),fe.preventDefault();break;case"Digit8":case"Numpad8":O(),K.actions.internal.seekToPercent(.8,dn.SeekAction.DOUBLE_TAP),fe.preventDefault();break;case"Digit9":case"Numpad9":O(),K.actions.internal.seekToPercent(.9,dn.SeekAction.DOUBLE_TAP),fe.preventDefault();break;case"Digit0":case"Numpad0":O(),K.actions.internal.seekToPercent(0,dn.SeekAction.DOUBLE_TAP),fe.preventDefault();break;case"Slash":{fe.shiftKey&&ee.features.hotKeyMapModal&&($(),fe.preventDefault());break}case"ShiftLeft":case"ShiftRight":fe.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,Y1.checkNever)(bt);break}},Ye=fe=>{let ct=fe.code;if(fe.ctrlKey||fe.altKey||fe.metaKey)return;let ht=o===Uo.PlaybackState.PLAYING||o===Uo.PlaybackState.PAUSED,gt=P&&(n==="paused"||n==="playing");if(ht||gt)switch(ct){case"ShiftLeft":case"ShiftRight":rt=0;break}};function Oe(fe){ve[fe?"unshift":"push"](()=>{pe=fe,t(0,pe)})}return i.$$set=fe=>{"isAds"in fe&&t(18,P=fe.isAds),"hideContextMenu"in fe&&t(19,G=fe.hideContextMenu),"toggleFullscreen"in fe&&t(20,x=fe.toggleFullscreen),"showHotKeyHelpers"in fe&&t(21,O=fe.showHotKeyHelpers),"showKeyMap"in fe&&t(22,$=fe.showKeyMap),"fakePlayButtonHandler"in fe&&t(23,le=fe.fakePlayButtonHandler),"$$scope"in fe&&t(25,C=fe.$$scope)},[pe,J,ke,q,ne,F,_e,oe,Q,Z,se,Ae,We,Ie,tt,it,Xe,Ye,P,G,x,O,$,le,Ee,C,I,Oe]}var fu=class extends B{constructor(e){super(),N(this,e,Ib,Tb,R,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},Sb,[-1,-1])}get focus(){return this.$$.ctx[24]}},Q1=fu;function Pb(i){be(i,"svelte-8nkw5s",".container.svelte-8nkw5s.svelte-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes svelte-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.svelte-8nkw5s.svelte-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:svelte-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.svelte-8nkw5s+.dot.svelte-8nkw5s{margin-left:4px}")}function Eb(i){let e,t,n,o,r,s;return{c(){e=S("div"),t=S("div"),n=j(),o=S("div"),r=j(),s=S("div"),f(t,"class","dot svelte-8nkw5s"),f(o,"class","dot svelte-8nkw5s"),f(s,"class","dot svelte-8nkw5s"),f(e,"class","container svelte-8nkw5s"),f(e,"style",i[0])},m(a,l){v(a,e,l),_(e,t),_(e,n),_(e,o),_(e,r),_(e,s)},p(a,[l]){l&1&&f(e,"style",a[0])},i:me,o:me,d(a){a&&b(e)}}}function Ab(i,e,t){let{style:n=""}=e;return i.$$set=o=>{"style"in o&&t(0,n=o.style)},[n]}var du=class extends B{constructor(e){super(),N(this,e,Ab,Eb,R,{style:0},Pb)}},Fr=du;function Mb(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T=i[2].default,k=Le(T,i,i[1],null),D=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],I={};for(let C=0;C<D.length;C+=1)I=re(I,D[C]);return{c(){e=L("svg"),k&&k.c(),t=L("g"),n=L("path"),o=L("path"),r=L("defs"),s=L("filter"),a=L("feFlood"),l=L("feColorMatrix"),u=L("feOffset"),c=L("feGaussianBlur"),m=L("feColorMatrix"),h=L("feBlend"),y=L("feBlend"),f(n,"fill","#fff"),f(n,"d","M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2422_111980"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2422_111980"),f(y,"result","shape"),f(s,"id","a"),f(s,"width","23"),f(s,"height","23"),f(s,"x",".5"),f(s,"y",".5"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),Ce(e,I)},m(C,P){v(C,e,P),k&&k.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,y),g=!0},p(C,[P]){k&&k.p&&(!g||P&2)&&Ve(k,T,C,C[1],g?Re(T,C[1],P,null):Be(C[1]),null),Ce(e,I=He(D,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},P&1&&C[0]]))},i(C){g||(d(k,C),g=!0)},o(C){p(k,C),g=!1},d(C){C&&b(e),k&&k.d(C)}}}function Lb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var mu=class extends B{constructor(e){super(),N(this,e,Lb,Mb,R,{})}},Z1=mu;var po=require("@vkontakte/videoplayer-shared");function Rb(i){be(i,"svelte-wr0kwr",".btn.svelte-wr0kwr{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center}.w-max.svelte-wr0kwr{width:100%}.btn--live.svelte-wr0kwr{padding:10px 4px}.btn-jc-l.svelte-wr0kwr{justify-content:left}.btn-m.svelte-wr0kwr{position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.btn-m--play.svelte-wr0kwr{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn-m--play.svelte-wr0kwr svg{transform:scale(2)}.btn-m--prev.svelte-wr0kwr,.btn-m--next.svelte-wr0kwr{position:absolute;width:50px;height:50px}.btn-m--prev.svelte-wr0kwr{right:calc(100% + 35px)}.btn-m--next.svelte-wr0kwr{left:calc(100% + 35px)}.btn.svelte-wr0kwr:disabled{cursor:default;pointer-events:none}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-wr0kwr:not(:disabled):hover{opacity:0.8}.pr-0.svelte-wr0kwr{padding-right:0}.pl-0.svelte-wr0kwr{padding-left:0}")}function Vb(i){let e,t,n,o,r,s,a,l,u,c,m,h,y=i[14].default,g=Le(y,i,i[13],null);return{c(){e=S("button"),g&&g.c(),f(e,"class",t="btn "+i[1]+" svelte-wr0kwr"),f(e,"style",n=i[2]||null),e.disabled=o=i[3]??null,f(e,"aria-hidden",r=i[5]??null),f(e,"aria-label",s=i[6]??null),f(e,"aria-keyshortcuts",a=i[7]??null),f(e,"aria-expanded",l=i[8]??null),f(e,"data-testid",u=i[4]??null),f(e,"tabindex",i[9])},m(T,k){v(T,e,k),g&&g.m(e,null),i[16](e),c=!0,m||(h=[Te(e,"pointerdown",mt(i[15])),Te(e,"click",mt(function(){Wt(i[10]===po.noop?null:i[10])&&(i[10]===po.noop?null:i[10]).apply(this,arguments)})),Te(e,"focus",ii(function(){Wt(i[11]===po.noop?null:i[11])&&(i[11]===po.noop?null:i[11]).apply(this,arguments)})),Te(e,"blur",ii(function(){Wt(i[12]===po.noop?null:i[12])&&(i[12]===po.noop?null:i[12]).apply(this,arguments)}))],m=!0)},p(T,[k]){i=T,g&&g.p&&(!c||k&8192)&&Ve(g,y,i,i[13],c?Re(y,i[13],k,null):Be(i[13]),null),(!c||k&2&&t!==(t="btn "+i[1]+" svelte-wr0kwr"))&&f(e,"class",t),(!c||k&4&&n!==(n=i[2]||null))&&f(e,"style",n),(!c||k&8&&o!==(o=i[3]??null))&&(e.disabled=o),(!c||k&32&&r!==(r=i[5]??null))&&f(e,"aria-hidden",r),(!c||k&64&&s!==(s=i[6]??null))&&f(e,"aria-label",s),(!c||k&128&&a!==(a=i[7]??null))&&f(e,"aria-keyshortcuts",a),(!c||k&256&&l!==(l=i[8]??null))&&f(e,"aria-expanded",l),(!c||k&16&&u!==(u=i[4]??null))&&f(e,"data-testid",u),(!c||k&512)&&f(e,"tabindex",i[9])},i(T){c||(d(g,T),c=!0)},o(T){p(g,T),c=!1},d(T){T&&b(e),g&&g.d(T),i[16](null),m=!1,st(h)}}}function Bb(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:r=""}=e,{style:s=""}=e,{disabled:a=void 0}=e,{testId:l=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:c=void 0}=e,{ref:m=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:y=void 0}=e,{tabIndex:g=0}=e,{click:T=po.noop}=e,{focus:k=po.noop}=e,{blur:D=po.noop}=e;function I(P){Bn.call(this,i,P)}function C(P){ve[P?"unshift":"push"](()=>{m=P,t(0,m)})}return i.$$set=P=>{"className"in P&&t(1,r=P.className),"style"in P&&t(2,s=P.style),"disabled"in P&&t(3,a=P.disabled),"testId"in P&&t(4,l=P.testId),"ariaHidden"in P&&t(5,u=P.ariaHidden),"ariaLabel"in P&&t(6,c=P.ariaLabel),"ref"in P&&t(0,m=P.ref),"ariaKeyShortCut"in P&&t(7,h=P.ariaKeyShortCut),"ariaExpanded"in P&&t(8,y=P.ariaExpanded),"tabIndex"in P&&t(9,g=P.tabIndex),"click"in P&&t(10,T=P.click),"focus"in P&&t(11,k=P.focus),"blur"in P&&t(12,D=P.blur),"$$scope"in P&&t(13,o=P.$$scope)},[m,r,s,a,l,u,c,h,y,g,T,k,D,o,n,I,C]}var pu=class extends B{constructor(e){super(),N(this,e,Bb,Vb,R,{className:1,style:2,disabled:3,testId:4,ariaHidden:5,ariaLabel:6,ref:0,ariaKeyShortCut:7,ariaExpanded:8,tabIndex:9,click:10,focus:11,blur:12},Rb)}},dt=pu;function Nb(i){be(i,"svelte-1witlsj",".modal-overlay.svelte-1witlsj{position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center}.modal-container.svelte-1witlsj{display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px}.modal-header.svelte-1witlsj{box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24)}.modal-title.svelte-1witlsj{margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.modal-scroll.svelte-1witlsj{overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%}.modal-scroll.svelte-1witlsj::-webkit-scrollbar{width:8px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track{box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.svelte-1witlsj{margin:-8px -4px 0 0}")}function X1(i){let e,t,n,o,r,s=i[2]&&J1(i);return{c(){e=S("div"),t=S("h3"),n=De(i[3]),o=j(),s&&s.c(),f(t,"class","modal-title svelte-1witlsj"),f(e,"class","modal-header svelte-1witlsj")},m(a,l){v(a,e,l),_(e,t),_(t,n),_(e,o),s&&s.m(e,null),r=!0},p(a,l){(!r||l&8)&&Ke(n,a[3]),a[2]?s?(s.p(a,l),l&4&&d(s,1)):(s=J1(a),s.c(),d(s,1),s.m(e,null)):s&&(ae(),p(s,1,1,()=>{s=null}),ue())},i(a){r||(d(s),r=!0)},o(a){p(s),r=!1},d(a){a&&b(e),s&&s.d()}}}function J1(i){let e,t;return e=new dt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:W("hotkey_map_modal_close_btn_text"),$$slots:{default:[Db]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.click=n[0]),o&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Db(i){let e,t;return e=new Z1({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Ob(i){let e,t,n,o,r,s,a=i[1]&&X1(i),l=i[4].default,u=Le(l,i,i[5],null);return{c(){e=S("div"),t=S("div"),a&&a.c(),n=j(),o=S("div"),r=S("div"),u&&u.c(),f(r,"class","modal-main svelte-1witlsj"),f(o,"class","modal-scroll svelte-1witlsj"),f(t,"class","modal-container svelte-1witlsj"),f(e,"class","modal-overlay svelte-1witlsj")},m(c,m){v(c,e,m),_(e,t),a&&a.m(t,null),_(t,n),_(t,o),_(o,r),u&&u.m(r,null),s=!0},p(c,[m]){c[1]?a?(a.p(c,m),m&2&&d(a,1)):(a=X1(c),a.c(),d(a,1),a.m(t,n)):a&&(ae(),p(a,1,1,()=>{a=null}),ue()),u&&u.p&&(!s||m&32)&&Ve(u,l,c,c[5],s?Re(l,c[5],m,null):Be(c[5]),null)},i(c){s||(d(a),d(u,c),s=!0)},o(c){p(a),p(u,c),s=!1},d(c){c&&b(e),a&&a.d(),u&&u.d(c)}}}function Fb(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:r}=e,{showHeader:s=!0}=e,{showCloseCross:a=!0}=e,{title:l}=e;return i.$$set=u=>{"onClose"in u&&t(0,r=u.onClose),"showHeader"in u&&t(1,s=u.showHeader),"showCloseCross"in u&&t(2,a=u.showCloseCross),"title"in u&&t(3,l=u.title),"$$scope"in u&&t(5,o=u.$$scope)},[r,s,a,l,n,o]}var _u=class extends B{constructor(e){super(),N(this,e,Fb,Ob,R,{onClose:0,showHeader:1,showCloseCross:2,title:3},Nb)}},$1=_u;var xb=new Set(["BR"]),hu=i=>{let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let o=t[n],r=o.tagName;xb.has(r)||o.parentElement?.removeChild(o)}return e.innerHTML};function Hb(i){be(i,"svelte-quklnq",".hot-key-map.svelte-quklnq{color:var(--black);box-sizing:border-box;overflow-x:hidden}.hot-key-map-group.svelte-quklnq{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.svelte-quklnq:last-child{border-bottom:none}.hot-key-map-group-title.svelte-quklnq{color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.hot-key-map-group-title.svelte-quklnq,.hot-key-map-item.svelte-quklnq{padding:12px 0;margin:0;width:100%}.hot-key-map-group-items.svelte-quklnq{box-sizing:border-box;list-style:none;padding:0;margin:0}.hot-key-map-item.svelte-quklnq{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.svelte-quklnq{color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px}.hot-key-map-item-value.svelte-quklnq{color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px}.hot-key-map-item-description.svelte-quklnq,.hot-key-map-item-value.svelte-quklnq{font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}")}function em(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function tm(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function im(i){let e,t,n=hu(i[9])+"",o,r,s=i[10]+"",a,l;return{c(){e=S("li"),t=S("span"),o=j(),r=S("span"),a=De(s),l=j(),f(t,"class","hot-key-map-item-description svelte-quklnq"),f(r,"class","hot-key-map-item-value svelte-quklnq"),f(e,"class","hot-key-map-item svelte-quklnq")},m(u,c){v(u,e,c),_(e,t),t.innerHTML=n,_(e,o),_(e,r),_(r,a),_(e,l)},p(u,c){c&1&&n!==(n=hu(u[9])+"")&&(t.innerHTML=n),c&1&&s!==(s=u[10]+"")&&Ke(a,s)},d(u){u&&b(e)}}}function nm(i){let e,t,n=i[5]+"",o,r,s,a,l=_t(i[6]),u=[];for(let c=0;c<l.length;c+=1)u[c]=im(tm(i,l,c));return{c(){e=S("div"),t=S("h5"),o=De(n),r=j(),s=S("ul");for(let c=0;c<u.length;c+=1)u[c].c();a=j(),f(t,"class","hot-key-map-group-title svelte-quklnq"),f(s,"class","hot-key-map-group-items svelte-quklnq"),f(e,"class","hot-key-map-group svelte-quklnq")},m(c,m){v(c,e,m),_(e,t),_(t,o),_(e,r),_(e,s);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(s,null);_(e,a)},p(c,m){if(m&1&&n!==(n=c[5]+"")&&Ke(o,n),m&1){l=_t(c[6]);let h;for(h=0;h<l.length;h+=1){let y=tm(c,l,h);u[h]?u[h].p(y,m):(u[h]=im(y),u[h].c(),u[h].m(s,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=l.length}},d(c){c&&b(e),ti(u,c)}}}function qb(i){let e,t=_t(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=nm(em(i,t,o));return{c(){e=S("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","hot-key-map svelte-quklnq")},m(o,r){v(o,e,r);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(e,null)},p(o,r){if(r&1){t=_t(o[0].groups);let s;for(s=0;s<t.length;s+=1){let a=em(o,t,s);n[s]?n[s].p(a,r):(n[s]=nm(a),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(o){o&&b(e),ti(n,o)}}}function Ub(i){let e,t;return e=new $1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[qb]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.title=n[0].title),o&8193&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function zb(i,e,t){let n,o=et(),{data:r,show:s}=o.ui.modals.hotKeyMap;return V(i,r,l=>t(0,n=l)),[n,r,()=>{s.set(!1)}]}var gu=class extends B{constructor(e){super(),N(this,e,zb,Ub,R,{},Hb)}},om=gu;var Kc=require("@vkontakte/videoplayer-shared");var fl;function xr(i){return fl||(fl=new ResizeObserver(e=>{for(let t of e)t.target.dispatchEvent(new CustomEvent("fd:resize"))})),fl.observe(i),{destroy(){fl.unobserve(i)}}}var _r=require("@vkontakte/videoplayer-core");var QS=require("@vkontakte/videoplayer-shared");function Wb(i){be(i,"svelte-1oe0j8n",".pillow.svelte-1oe0j8n{background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px}")}function Kb(i){let e,t,n=i[1].default,o=Le(n,i,i[0],null);return{c(){e=S("div"),o&&o.c(),f(e,"class","pillow svelte-1oe0j8n")},m(r,s){v(r,e,s),o&&o.m(e,null),t=!0},p(r,[s]){o&&o.p&&(!t||s&1)&&Ve(o,n,r,r[0],t?Re(n,r[0],s,null):Be(r[0]),null)},i(r){t||(d(o,r),t=!0)},o(r){p(o,r),t=!1},d(r){r&&b(e),o&&o.d(r)}}}function jb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var bu=class extends B{constructor(e){super(),N(this,e,jb,Kb,R,{},Wb)}},rm=bu;var Hr=require("@vkontakte/videoplayer-shared");function Gb(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=L("svg"),s&&s.c(),t=L("path"),n=L("path"),f(t,"fill","currentColor"),f(t,"d","M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z"),f(n,"clip-rule","evenodd"),Ce(e,l)},m(u,c){v(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Ve(s,r,u,u[1],o?Re(r,u[1],c,null):Be(u[1]),null),Ce(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&b(e),s&&s.d(u)}}}function Yb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var vu=class extends B{constructor(e){super(),N(this,e,Yb,Gb,R,{})}},sm=vu;function Qb(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=L("svg"),s&&s.c(),t=L("path"),n=L("path"),f(t,"fill","currentColor"),f(t,"d","M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524"),f(n,"clip-rule","evenodd"),Ce(e,l)},m(u,c){v(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Ve(s,r,u,u[1],o?Re(r,u[1],c,null):Be(u[1]),null),Ce(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&b(e),s&&s.d(u)}}}function Zb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var yu=class extends B{constructor(e){super(),N(this,e,Zb,Qb,R,{})}},lm=yu;function Xb(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","currentColor"),f(t,"d","M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,l,l[1],n?Re(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function Jb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var ku=class extends B{constructor(e){super(),N(this,e,Jb,Xb,R,{})}},am=ku;function $b(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","currentColor"),f(t,"d","M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,l,l[1],n?Re(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function e2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var wu=class extends B{constructor(e){super(),N(this,e,e2,$b,R,{})}},dl=wu;function t2(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=L("svg"),s&&s.c(),t=L("path"),n=L("path"),f(t,"fill","currentColor"),f(t,"d","M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02"),f(n,"clip-rule","evenodd"),Ce(e,l)},m(u,c){v(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Ve(s,r,u,u[1],o?Re(r,u[1],c,null):Be(u[1]),null),Ce(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&b(e),s&&s.d(u)}}}function i2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Cu=class extends B{constructor(e){super(),N(this,e,i2,t2,R,{})}},ml=Cu;var pl=i=>{switch(i){case Hr.VideoQuality.Q_720P:return am;case Hr.VideoQuality.Q_1080P:return dl;case Hr.VideoQuality.Q_1440P:return ml;case Hr.VideoQuality.Q_2160P:return sm;case Hr.VideoQuality.Q_4320P:return lm}};function n2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,l,l[1],n?Re(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function o2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Su=class extends B{constructor(e){super(),N(this,e,o2,n2,R,{})}},um=Su;function r2(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=L("svg"),s&&s.c(),t=L("path"),n=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"),f(n,"class","_full"),Ce(e,l)},m(u,c){v(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Ve(s,r,u,u[1],o?Re(r,u[1],c,null):Be(u[1]),null),Ce(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&b(e),s&&s.d(u)}}}function s2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Tu=class extends B{constructor(e){super(),N(this,e,s2,r2,R,{})}},cm=Tu;function l2(i){be(i,"svelte-8t5w85",'.icon.svelte-8t5w85{display:flex;position:relative;width:24px;height:24px}.icon.svelte-8t5w85 .pillow{position:absolute;top:1px;right:-9px}.icon.triple.svelte-8t5w85 .pillow{right:-13px}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full{visibility:hidden;opacity:0}')}function a2(i){let e,t,n,o,r=i[1]&&fm(i);return n=new cm({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=S("div"),r&&r.c(),t=j(),M(n.$$.fragment),f(e,"class","icon svelte-8t5w85"),f(e,"aria-hidden","true"),z(e,"triple",i[2])},m(s,a){v(s,e,a),r&&r.m(e,null),_(e,t),E(n,e,null),o=!0},p(s,a){s[1]?r?(r.p(s,a),a&2&&d(r,1)):(r=fm(s),r.c(),d(r,1),r.m(e,t)):r&&(ae(),p(r,1,1,()=>{r=null}),ue());let l={};a&2&&(l["data-testid"]=s[1]?"settings-icon--labeled":"settings-icon"),n.$set(l),(!o||a&4)&&z(e,"triple",s[2])},i(s){o||(d(r),d(n.$$.fragment,s),o=!0)},o(s){p(r),p(n.$$.fragment,s),o=!1},d(s){s&&b(e),r&&r.d(),A(n)}}}function u2(i){let e,t;return e=new um({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function fm(i){let e,t;return e=new rm({props:{$$slots:{default:[c2]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&18&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function c2(i){let e,t,n;var o=i[1];function r(s,a){return{}}return o&&(e=At(o,r(i))),{c(){e&&M(e.$$.fragment),t=Qe()},m(s,a){e&&E(e,s,a),v(s,t,a),n=!0},p(s,a){if(a&2&&o!==(o=s[1])){if(e){ae();let l=e;p(l.$$.fragment,1,0,()=>{A(l,1)}),ue()}o?(e=At(o,r(s,a)),M(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&b(t),e&&A(e,s)}}}function f2(i){let e,t,n,o,r=[u2,a2],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Qe()},m(l,u){s[e].m(l,u),v(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e===c?s[e].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),s[e].d(l)}}}function d2(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:r=void 0}=e,s;return i.$$set=a=>{"isMobile"in a&&t(0,o=a.isMobile),"currentQuality"in a&&t(3,r=a.currentQuality)},i.$$.update=()=>{i.$$.dirty&8&&t(1,n=pl(r)),i.$$.dirty&2&&t(2,s=!!n&&[dl,ml].includes(n))},[o,n,s,r]}var Iu=class extends B{constructor(e){super(),N(this,e,d2,f2,R,{isMobile:0,currentQuality:3},l2)}},_l=Iu;function m2(i){be(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function p2(i){let e,t,n;return t=new _l({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=S("span"),M(t.$$.fragment),f(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){v(o,e,r),E(t,e,null),n=!0},p(o,r){let s={};r&8&&(s.isMobile=o[3]),r&16&&(s.currentQuality=o[4]),t.$set(s)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function _2(i){let e,t,n;function o(s){i[10](s)}let r={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[p2]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"opened":""),a&4&&(l.ariaLabel=s[2]),a&2&&(l.ariaExpanded=s[1]),a&16408&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function h2(i,e,t){let n,o,r,{ref$:s}=e,a=et(),l=a.state.currentQuality$;V(i,l,D=>t(4,r=D));let u=a.ui.settingsMenu.visible$;V(i,u,D=>t(1,n=D));let c=a.actions.internal.openSettingsMenu,m=a.actions.internal.closeSettingsMenu,h=a.ui.isMobile;V(i,h,D=>t(3,o=D));let y,g;async function T(D){let I=Br(D);n?m():c(I,fn)}function k(D){y=D,t(0,y)}return i.$$set=D=>{"ref$"in D&&t(9,s=D.ref$)},i.$$.update=()=>{i.$$.dirty&513&&s&&s.set(y),i.$$.dirty&2&&t(2,g=n?W("tooltip_settings_on"):W("tooltip_settings_off"))},[y,n,g,o,r,l,u,h,T,s,k]}var Pu=class extends B{constructor(e){super(),N(this,e,h2,_2,R,{ref$:9},m2)}},ys=Pu;function g2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,l,l[1],n?Re(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function b2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Eu=class extends B{constructor(e){super(),N(this,e,b2,g2,R,{})}},dm=Eu;function v2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,l,l[1],n?Re(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function y2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Au=class extends B{constructor(e){super(),N(this,e,y2,v2,R,{})}},hl=Au;function k2(i){let e,t;return e=new hl({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function w2(i){let e,t;return e=new dm({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function C2(i){let e,t,n,o,r=[w2,k2],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Qe()},m(l,u){s[e].m(l,u),v(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e!==c&&(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t||(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),s[e].d(l)}}}function S2(i){let e,t;return e=new dt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:fo.KeyC,$$slots:{default:[C2]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function T2(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,r;return i.$$set=s=>{"isSubtitlesEnabled"in s&&t(0,n=s.isSubtitlesEnabled),"click"in s&&t(1,o=s.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=n?W("tooltip_subtitles_on"):W("tooltip_subtitles_off"))},[n,o,r]}var Mu=class extends B{constructor(e){super(),N(this,e,T2,S2,R,{isSubtitlesEnabled:0,click:1})}},mm=Mu;function I2(i){be(i,"svelte-19o2urr",".time.svelte-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.svelte-19o2urr{padding:0 0 0 8px}.current.svelte-19o2urr{position:relative}.duration.svelte-19o2urr{opacity:0.7}.duration.svelte-19o2urr:before{content:' / ';white-space:pre}")}function pm(i){let e,t;return{c(){e=S("span"),t=De(i[3]),f(e,"class","duration svelte-19o2urr")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&8&&Ke(t,n[3])},d(n){n&&b(e)}}}function P2(i){let e,t,n,o,r=i[2]&&pm(i);return{c(){e=S("div"),t=S("span"),n=De(i[4]),o=j(),r&&r.c(),f(t,"class","current svelte-19o2urr"),f(e,"class","time svelte-19o2urr"),z(e,"mobile",i[1])},m(s,a){v(s,e,a),_(e,t),_(t,n),_(e,o),r&&r.m(e,null),i[7](e)},p(s,[a]){a&16&&Ke(n,s[4]),s[2]?r?r.p(s,a):(r=pm(s),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&z(e,"mobile",s[1])},i:me,o:me,d(s){s&&b(e),r&&r.d(),i[7](null)}}}function E2(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:r}=e,{showDuration:s=!0}=e,{ref:a}=e,l,u;function c(m){ve[m?"unshift":"push"](()=>{a=m,t(0,a)})}return i.$$set=m=>{"isMobile"in m&&t(1,n=m.isMobile),"duration"in m&&t(5,o=m.duration),"position"in m&&t(6,r=m.position),"showDuration"in m&&t(2,s=m.showDuration),"ref"in m&&t(0,a=m.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,l=Dn(o)),i.$$.dirty&64&&t(4,u=Dn(r))},[a,n,s,l,u,o,r,c]}var Lu=class extends B{constructor(e){super(),N(this,e,E2,P2,R,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},I2)}},gl=Lu;var To=require("@vkontakte/videoplayer-shared");function A2(i){be(i,"svelte-1n5yyua",".icon.svelte-1n5yyua.svelte-1n5yyua{display:block;width:24px;height:24px}.icon.svelte-1n5yyua .cross.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .wave1.svelte-1n5yyua,.icon[data-value='off'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .cross.svelte-1n5yyua{visibility:visible}.icon[data-value='mid'].svelte-1n5yyua .wave2.svelte-1n5yyua,.icon[data-value='min'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}")}function M2(i){let e,t,n,o,r,s;return{c(){e=L("svg"),t=L("g"),n=L("path"),o=L("path"),r=L("path"),f(n,"class","wave2 svelte-1n5yyua"),f(n,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"),f(o,"class","wave1 svelte-1n5yyua"),f(o,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"),f(r,"class","cross svelte-1n5yyua"),f(r,"d","m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(e,"data-value",i[0]),f(e,"data-testid",s="volume-"+i[0]+"-icon"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","icon svelte-1n5yyua"),f(e,"aria-hidden","true")},m(a,l){v(a,e,l),_(e,t),_(t,n),_(t,o),_(t,r)},p(a,[l]){l&1&&f(e,"data-value",a[0]),l&1&&s!==(s="volume-"+a[0]+"-icon")&&f(e,"data-testid",s)},i:me,o:me,d(a){a&&b(e)}}}function L2(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,r=(a,l)=>l?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",s;return i.$$set=a=>{"volume"in a&&t(1,n=a.volume),"muted"in a&&t(2,o=a.muted)},i.$$.update=()=>{i.$$.dirty&6&&t(0,s=r(n,o))},[s,n,o]}var Ru=class extends B{constructor(e){super(),N(this,e,L2,M2,R,{volume:1,muted:2},A2)}},mr=Ru;var mn=require("@vkontakte/videoplayer-shared");var bm=require("@vkontakte/videoplayer-shared");var gm=require("@vkontakte/videoplayer-shared");function R2(i){let e,t,n=i[4].default,o=Le(n,i,i[3],null);return{c(){e=S("div"),o&&o.c(),f(e,"class","overlay")},m(r,s){v(r,e,s),o&&o.m(e,null),i[5](e),t=!0},p(r,[s]){o&&o.p&&(!t||s&8)&&Ve(o,n,r,r[3],t?Re(n,r[3],s,null):Be(r[3]),null)},i(r){t||(d(o,r),t=!0)},o(r){p(o,r),t=!1},d(r){r&&b(e),o&&o.d(r),i[5](null)}}}function V2(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=et().ui.overlayContainer$;V(i,a,h=>t(2,n=h));let l,u=h=>{!h||!l||!h.contains(l)||h.removeChild(l)},c=h=>{!h||!l||h.contains(l)||h.appendChild(l)};yt(()=>(c(n),()=>u(n)));function m(h){ve[h?"unshift":"push"](()=>{l=h,t(0,l)})}return i.$$set=h=>{"$$scope"in h&&t(3,r=h.$$scope)},i.$$.update=()=>{i.$$.dirty&4&&c(n)},[l,a,n,r,o,m]}var Vu=class extends B{constructor(e){super(),N(this,e,V2,R2,R,{})}},_m=Vu;function B2(i){be(i,"svelte-1jbbzcj",'.tooltip-wrapper.svelte-1jbbzcj{display:flex;flex-direction:column;min-width:0}.full-width.svelte-1jbbzcj{width:100%}.tooltip.svelte-1jbbzcj{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.svelte-1jbbzcj{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.svelte-1jbbzcj{opacity:1;visibility:visible}.tooltip-pointer.svelte-1jbbzcj{position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}')}function hm(i){let e,t;return e=new _m({props:{$$slots:{default:[N2]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&16777445&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function N2(i){let e,t,n,o,r;return{c(){e=S("div"),t=S("div"),n=De(i[2]),o=j(),r=S("div"),f(t,"class","content svelte-1jbbzcj"),f(r,"class","tooltip-pointer svelte-1jbbzcj"),f(r,"style",i[7]),f(e,"class","tooltip svelte-1jbbzcj"),f(e,"style",i[6]),z(e,"active",i[0])},m(s,a){v(s,e,a),_(e,t),_(t,n),_(e,o),_(e,r),i[23](e)},p(s,a){a[0]&4&&Ke(n,s[2]),a[0]&128&&f(r,"style",s[7]),a[0]&64&&f(e,"style",s[6]),a[0]&1&&z(e,"active",s[0])},d(s){s&&b(e),i[23](null)}}}function D2(i){let e,t,n,o,r,s,a=i[21].default,l=Le(a,i,i[24],null),u=i[2]&&!i[1]&&hm(i);return{c(){e=S("div"),l&&l.c(),t=j(),u&&u.c(),n=Qe(),f(e,"class","tooltip-wrapper svelte-1jbbzcj"),z(e,"full-width",i[3])},m(c,m){v(c,e,m),l&&l.m(e,null),i[22](e),v(c,t,m),u&&u.m(c,m),v(c,n,m),o=!0,r||(s=[Te(e,"mouseenter",i[10]),Te(e,"mousemove",i[10]),Te(e,"mouseleave",i[11]),Te(e,"mousedown",i[11]),Te(e,"mouseup",i[10])],r=!0)},p(c,m){l&&l.p&&(!o||m[0]&16777216)&&Ve(l,a,c,c[24],o?Re(a,c[24],m,null):Be(c[24]),null),(!o||m[0]&8)&&z(e,"full-width",c[3]),c[2]&&!c[1]?u?(u.p(c,m),m[0]&6&&d(u,1)):(u=hm(c),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(ae(),p(u,1,1,()=>{u=null}),ue())},i(c){o||(d(l,c),d(u),o=!0)},o(c){p(l,c),p(u),o=!1},d(c){c&&(b(e),b(t),b(n)),l&&l.d(c),i[22](null),u&&u.d(c),r=!1,st(s)}}}var So=5;function O2(i,e,t){let n,o,{$$slots:r={},$$scope:s}=e,{isMobile:a=!1}=e,{content:l=""}=e,{active:u=!1}=e,{translateX:c=0}=e,{translateY:m=0}=e,{isFullWidthWrapper:h=!1}=e,{maxTooltipWidth:y=void 0}=e,{placement:g="top"}=e,{onVisibilityChange:T=gm.noop}=e,k,D,I,C=0,P=0,G=0,x=0,O=It(),$=et(),le=$.ui.playerSize;V(i,le,Ae=>t(27,o=Ae));let K=$.ui.overlayContainer$;V(i,K,Ae=>t(26,n=Ae));let ee=$.getLogger().createComponentLog("Tooltip component"),H=()=>{if(!n||!D||!k)return;t(18,P=So);let Ae=n.getBoundingClientRect(),We=k.getBoundingClientRect(),X=We.width,he=D.clientWidth,Ie=o.width,Ge=(X-he)/2,tt=We.left+c-Ae.left,it=tt+Ge,rt=We.top+m-Ae.top,$e=he/2-So,pe=it<8,Ee=it+he>Ie-8;pe&&(it=8,$e=tt+We.width/2-2.5*So),Ee&&(it=Ie-8-he,$e=We.left-Ae.left+We.width/2-it-So),t(19,G=it),t(20,x=rt),t(17,C=$e)},J=()=>{!n||!D||!k||t(18,P=-So)},ke=()=>{if(!n||!D||!k)return;t(17,C=So);let Ae=n.getBoundingClientRect(),We=k.getBoundingClientRect(),X=We.height,he=D.clientHeight,Ie=(X-he)/2+he,Ge=We.left+c-Ae.left-D.clientWidth,tt=2,it=Ge-So;it<8&&(it=8);let $e=We.top+m-Ae.top+Ie,pe=tt-Ie/2,Ee=tt-So;t(19,G=it),t(20,x=$e),t(18,P=pe),t(17,C=Ee)},q=()=>{!n||!D||!k||t(17,C=-So)},ne=()=>{switch(g){case"top":H();break;case"bottom":J();break;case"left":ke();break;default:q()}},F=()=>{try{if(!n||!k)return;ne(),t(0,u=!0)}catch(Ae){ee({message:String(Ae)})}},_e=()=>{t(0,u=!1)},oe=()=>{D&&(I||(I=window.setTimeout(F,O.controls.hideTimeoutTooltips)),u&&F())},Q=()=>{_e(),window.clearTimeout(I),I=void 0},Z=(Ae,We)=>{let X="";switch(g){case"top":X=`transform: translate(${Ae}px, ${We}px);`;break;case"bottom":X=`transform: translate(${Ae}px, ${We}px); top: auto; bottom: 100%;`;break;case"left":X=`transform: translate(${Ae}px, ${We}px); left: 0; right: auto;`;break;default:X=`transform: translate(${Ae}px, ${We}px);`}return X+=` max-width: ${y===void 0?"auto":`${y}px`};`,X},se=(Ae,We)=>{let X="";switch(g){case"top":X=`transform: translate(${Ae}px, ${We}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":X=`transform: translate(${Ae}px, ${We}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":X=`transform: translate(${Ae}px, ${We}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:X=`transform: translate(${Ae}px, ${We}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return X},Ze,Je;yt(ne),Vn(()=>window.clearTimeout(I));function Pe(Ae){ve[Ae?"unshift":"push"](()=>{k=Ae,t(4,k)})}function Se(Ae){ve[Ae?"unshift":"push"](()=>{D=Ae,t(5,D)})}return i.$$set=Ae=>{"isMobile"in Ae&&t(1,a=Ae.isMobile),"content"in Ae&&t(2,l=Ae.content),"active"in Ae&&t(0,u=Ae.active),"translateX"in Ae&&t(12,c=Ae.translateX),"translateY"in Ae&&t(13,m=Ae.translateY),"isFullWidthWrapper"in Ae&&t(3,h=Ae.isFullWidthWrapper),"maxTooltipWidth"in Ae&&t(14,y=Ae.maxTooltipWidth),"placement"in Ae&&t(15,g=Ae.placement),"onVisibilityChange"in Ae&&t(16,T=Ae.onVisibilityChange),"$$scope"in Ae&&t(24,s=Ae.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&65537&&T(u),i.$$.dirty[0]&1966080&&(t(6,Ze=Z(G,x)),t(7,Je=se(C,P)))},[u,a,l,h,k,D,Ze,Je,le,K,oe,Q,c,m,y,g,T,C,P,G,x,r,Pe,Se,s]}var Bu=class extends B{constructor(e){super(),N(this,e,O2,D2,R,{isMobile:1,content:2,active:0,translateX:12,translateY:13,isFullWidthWrapper:3,maxTooltipWidth:14,placement:15,onVisibilityChange:16},B2,[-1,-1])}},qr=Bu;function F2(i){be(i,"svelte-p9r045",".btn-container.svelte-p9r045{position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.svelte-p9r045{width:100%;min-width:0}")}function x2(i){let e,t=i[19].default,n=Le(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Ve(n,t,o,o[24],e?Re(t,o[24],r,null):Be(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){p(n,o),e=!1},d(o){n&&n.d(o)}}}function H2(i){let e,t;return e=new qr({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[q2]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&2048&&(r.content=n[11]),o&512&&(r.translateX=n[9]),o&1024&&(r.translateY=n[10]),o&16&&(r.isFullWidthWrapper=n[4]),o&32&&(r.active=n[5]),o&64&&(r.placement=n[6]),o&256&&(r.onVisibilityChange=n[8]),o&16777216&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function q2(i){let e,t=i[19].default,n=Le(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Ve(n,t,o,o[24],e?Re(t,o[24],r,null):Be(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){p(n,o),e=!1},d(o){n&&n.d(o)}}}function U2(i){let e,t,n,o,r,s,a,l,u,c=[H2,x2],m=[];function h(y,g){return y[3]&&y[11]&&!y[12]?0:1}return t=h(i,-1),n=m[t]=c[t](i),{c(){e=S("div"),n.c(),f(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),f(e,"aria-hidden",r=i[7]||null)},m(y,g){v(y,e,g),m[t].m(e,null),i[23](e),a=!0,l||(u=[wr(s=xr.call(null,e)),Te(e,"fd:resize",i[22]),Te(e,"pointerdown",mt(i[20])),Te(e,"click",mt(i[21]))],l=!0)},p(y,[g]){let T=t;t=h(y,g),t===T?m[t].p(y,g):(ae(),p(m[T],1,1,()=>{m[T]=null}),ue(),n=m[t],n?n.p(y,g):(n=m[t]=c[t](y),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+y[2]+" svelte-p9r045"))&&f(e,"class",o),(!a||g&128&&r!==(r=y[7]||null))&&f(e,"aria-hidden",r)},i(y){a||(d(n),a=!0)},o(y){p(n),a=!1},d(y){y&&b(e),m[t].d(),i[23](null),l=!1,st(u)}}}function z2(i,e,t){let n,o,{$$slots:r={},$$scope:s}=e,{className:a=""}=e,{disabled:l=!1}=e,{hasTooltip:u=!0}=e,{ref:c=void 0}=e,{width:m=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:y=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:T="top"}=e,{disabledTooltipContent:k=W("tooltip_button_disabled")}=e,{isAriaHidden:D=!1}=e,{onTooltipVisibilityChange:I=bm.noop}=e,{initialTranslateXPx:C=0}=e,{initialTranslateYPx:P=-18}=e,G=et(),x=G.ui.isMobile;V(i,x,J=>t(12,o=J));let O=G.state.graphIsOpened$;V(i,O,J=>t(18,n=J));let $;function le(J){Bn.call(this,i,J)}function K(J){Bn.call(this,i,J)}let ee=J=>{t(1,m=J.target.clientWidth)};function H(J){ve[J?"unshift":"push"](()=>{c=J,t(0,c)})}return i.$$set=J=>{"className"in J&&t(2,a=J.className),"disabled"in J&&t(15,l=J.disabled),"hasTooltip"in J&&t(3,u=J.hasTooltip),"ref"in J&&t(0,c=J.ref),"width"in J&&t(1,m=J.width),"isFullWidthTooltip"in J&&t(4,h=J.isFullWidthTooltip),"tooltipContent"in J&&t(16,y=J.tooltipContent),"tooltipActive"in J&&t(5,g=J.tooltipActive),"tooltipPlacement"in J&&t(6,T=J.tooltipPlacement),"disabledTooltipContent"in J&&t(17,k=J.disabledTooltipContent),"isAriaHidden"in J&&t(7,D=J.isAriaHidden),"onTooltipVisibilityChange"in J&&t(8,I=J.onTooltipVisibilityChange),"initialTranslateXPx"in J&&t(9,C=J.initialTranslateXPx),"initialTranslateYPx"in J&&t(10,P=J.initialTranslateYPx),"$$scope"in J&&t(24,s=J.$$scope)},i.$$.update=()=>{i.$$.dirty&491520&&(l?t(11,$=n?W("tooltip_disabled_when_graph_on"):k):t(11,$=y))},[c,m,a,u,h,g,T,D,I,C,P,$,o,x,O,l,y,k,n,r,le,K,ee,H,s]}var Nu=class extends B{constructor(e){super(),N(this,e,z2,U2,R,{className:2,disabled:15,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:16,tooltipActive:5,tooltipPlacement:6,disabledTooltipContent:17,isAriaHidden:7,onTooltipVisibilityChange:8,initialTranslateXPx:9,initialTranslateYPx:10},F2)}},Xi=Nu;function W2(i){let e,t,n,o,r,s;return{c(){e=L("svg"),t=L("rect"),o=L("path"),f(t,"width","20"),f(t,"height","20"),f(t,"rx","10"),f(t,"fill","white"),f(t,"fill-opacity",n=i[0]?1:.24),f(o,"d","M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"),f(o,"fill",r=i[0]?"var(--interactive-episode-complete)":"white"),f(e,"width","20"),f(e,"height","20"),f(e,"viewBox","0 0 20 20"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid",s=(i[0],"interactive-episode-completed-icon"))},m(a,l){v(a,e,l),_(e,t),_(e,o)},p(a,[l]){l&1&&n!==(n=a[0]?1:.24)&&f(t,"fill-opacity",n),l&1&&r!==(r=a[0]?"var(--interactive-episode-complete)":"white")&&f(o,"fill",r),l&1&&s!==(s=(a[0],"interactive-episode-completed-icon"))&&f(e,"data-testid",s)},i:me,o:me,d(a){a&&b(e)}}}function K2(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var Du=class extends B{constructor(e){super(),N(this,e,K2,W2,R,{completed:0})}},bl=Du;function j2(i){be(i,"svelte-bklhpe",".interactive-episode-icon.svelte-bklhpe{width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default}.interactive-episode-icon.disabled.svelte-bklhpe{pointer-events:none;opacity:0.4}")}function G2(i){let e,t,n,o,r,s,a;return t=new bl({props:{completed:!!i[0].completed}}),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","interactive-episode-icon svelte-bklhpe"),f(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),z(e,"disabled",i[1])},m(l,u){v(l,e,u),E(t,e,null),r=!0,s||(a=[wr(o=xr.call(null,e)),Te(e,"fd:resize",i[3])],s=!0)},p(l,u){let c={};u&1&&(c.completed=!!l[0].completed),t.$set(c),(!r||u&1&&n!==(n=`left: ${l[0].from+l[0].width/2}%`))&&f(e,"style",n),(!r||u&2)&&z(e,"disabled",l[1])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){p(t.$$.fragment,l),r=!1},d(l){l&&b(e),A(t),s=!1,st(a)}}}function Y2(i){let e,t;return e=new Xi({props:{tooltipContent:W(i[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished"),initialTranslateXPx:-10,initialTranslateYPx:-10,disabled:i[1],width:i[2]||0,isAriaHidden:!0,isFullWidthTooltip:!1,$$slots:{default:[G2]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.tooltipContent=W(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(r.disabled=n[1]),o&4&&(r.width=n[2]||0),o&23&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Q2(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,r,s=a=>{t(2,r=a.target.clientWidth)};return i.$$set=a=>{"videoEpisode"in a&&t(0,n=a.videoEpisode),"disabled"in a&&t(1,o=a.disabled)},[n,o,r,s]}var Ou=class extends B{constructor(e){super(),N(this,e,Q2,Y2,R,{videoEpisode:0,disabled:1},j2)}},vm=Ou;function Z2(i){be(i,"svelte-1rzxunm",".video-episodes-wrap.svelte-1rzxunm{position:absolute;width:100%;height:100%}.video-episode.svelte-1rzxunm{position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:-5px;padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s}.video-episode.svelte-1rzxunm:not(.disabled):where(:hover, :active){transform:scaleY(1.5)}.video-episode-inner.svelte-1rzxunm,.video-episode-loaded.svelte-1rzxunm,.video-episode-filled.svelte-1rzxunm{position:absolute;height:var(--slider-height);border-radius:var(--slider-radius)}.video-episode-inner.svelte-1rzxunm{position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg)}.video-episode-loaded.svelte-1rzxunm{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.video-episode-filled.svelte-1rzxunm{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}")}function ym(i,e,t){let n=i.slice();return n[3]=e[t],n}function km(i){let e,t,n,o,r,s,a,l,u;return{c(){e=S("div"),t=S("div"),n=S("div"),r=j(),s=S("div"),l=j(),f(n,"class","video-episode-loaded svelte-1rzxunm"),f(n,"style",o=`transform: translateX(${i[3].loadedWidth/i[3].width*100}%)`),f(s,"class","video-episode-filled svelte-1rzxunm"),f(s,"style",a=`transform: translateX(${i[3].filledWidth/i[3].width*100}%)`),z(s,"mobile",i[1]),f(t,"class","video-episode-inner svelte-1rzxunm"),f(e,"class","video-episode svelte-1rzxunm"),f(e,"style",u=`left: ${i[3].from}%; width: ${i[3].width}%`),z(e,"disabled",i[2]),z(e,"mobile",i[1])},m(c,m){v(c,e,m),_(e,t),_(t,n),_(t,r),_(t,s),_(e,l)},p(c,m){m&1&&o!==(o=`transform: translateX(${c[3].loadedWidth/c[3].width*100}%)`)&&f(n,"style",o),m&1&&a!==(a=`transform: translateX(${c[3].filledWidth/c[3].width*100}%)`)&&f(s,"style",a),m&2&&z(s,"mobile",c[1]),m&1&&u!==(u=`left: ${c[3].from}%; width: ${c[3].width}%`)&&f(e,"style",u),m&4&&z(e,"disabled",c[2]),m&2&&z(e,"mobile",c[1])},d(c){c&&b(e)}}}function X2(i){let e,t=_t(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=km(ym(i,t,o));return{c(){e=S("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","video-episodes-wrap svelte-1rzxunm")},m(o,r){v(o,e,r);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(e,null)},p(o,[r]){if(r&7){t=_t(o[0]);let s;for(s=0;s<t.length;s+=1){let a=ym(o,t,s);n[s]?n[s].p(a,r):(n[s]=km(a),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},i:me,o:me,d(o){o&&b(e),ti(n,o)}}}function J2(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e,{disabled:r}=e;return i.$$set=s=>{"videoEpisodes"in s&&t(0,n=s.videoEpisodes),"isMobile"in s&&t(1,o=s.isMobile),"disabled"in s&&t(2,r=s.disabled)},[n,o,r]}var Fu=class extends B{constructor(e){super(),N(this,e,J2,X2,R,{videoEpisodes:0,isMobile:1,disabled:2},Z2)}},wm=Fu;function $2(i){be(i,"svelte-v8ydei",".interactive-icons.svelte-v8ydei.svelte-v8ydei{position:absolute;width:calc(100% - 20px);top:-28px}.interactive-icons.mobile.svelte-v8ydei.svelte-v8ydei{top:-10px}.slider.svelte-v8ydei.svelte-v8ydei{position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent}.no-handle.svelte-v8ydei.svelte-v8ydei{cursor:default}.slider.svelte-v8ydei.svelte-v8ydei:before{content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2)}.bars.svelte-v8ydei.svelte-v8ydei{position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg)}.loaded.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.filled.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}.slider.square.svelte-v8ydei.svelte-v8ydei,.slider.square.svelte-v8ydei>.bars.svelte-v8ydei,.slider.square.svelte-v8ydei .loaded.svelte-v8ydei,.slider.square.svelte-v8ydei .filled.svelte-v8ydei{border-radius:unset}.filled.active-live.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.filled.ads.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-ads)}.handleWrap.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%}.handle.svelte-v8ydei.svelte-v8ydei{position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-filled-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform}.handle.active-live.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.slider.svelte-v8ydei:hover .handle.svelte-v8ydei,.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{transform:scale(1.3)}.slider-vertical.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.slider.disabled.svelte-v8ydei.svelte-v8ydei{cursor:default;opacity:0.4}")}function Cm(i,e,t){let n=i.slice();return n[50]=e[t],n}function Sm(i){let e,t,n=_t(i[21]),o=[];for(let s=0;s<n.length;s+=1)o[s]=Im(Cm(i,n,s));let r=s=>p(o[s],1,1,()=>{o[s]=null});return{c(){e=S("div");for(let s=0;s<o.length;s+=1)o[s].c();f(e,"class","interactive-icons svelte-v8ydei"),z(e,"mobile",i[6]),z(e,"hidden",i[6]&&!i[20])},m(s,a){v(s,e,a);for(let l=0;l<o.length;l+=1)o[l]&&o[l].m(e,null);t=!0},p(s,a){if(a[0]&2098176){n=_t(s[21]);let l;for(l=0;l<n.length;l+=1){let u=Cm(s,n,l);o[l]?(o[l].p(u,a),d(o[l],1)):(o[l]=Im(u),o[l].c(),d(o[l],1),o[l].m(e,null))}for(ae(),l=n.length;l<o.length;l+=1)r(l);ue()}(!t||a[0]&64)&&z(e,"mobile",s[6]),(!t||a[0]&1048640)&&z(e,"hidden",s[6]&&!s[20])},i(s){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(s){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)p(o[a]);t=!1},d(s){s&&b(e),ti(o,s)}}}function Tm(i){let e,t;return e=new vm({props:{videoEpisode:i[50],disabled:i[10]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisode=n[50]),o[0]&1024&&(r.disabled=n[10]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Im(i){let e,t,n=i[50].interactive&&Tm(i);return{c(){n&&n.c(),e=Qe()},m(o,r){n&&n.m(o,r),v(o,e,r),t=!0},p(o,r){o[50].interactive?n?(n.p(o,r),r[0]&2097152&&d(n,1)):(n=Tm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),p(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function ev(i){let e,t,n,o,r,s;return{c(){e=S("div"),t=S("div"),o=j(),r=S("div"),f(t,"class","loaded svelte-v8ydei"),f(t,"style",n=`transform: translateX(${i[12]*100}%);`),f(r,"class","filled svelte-v8ydei"),f(r,"style",s=`transform: translateX(${i[13]*100}%);`),z(r,"active-live",i[5]),z(r,"ads",i[7]),f(e,"class","bars svelte-v8ydei")},m(a,l){v(a,e,l),_(e,t),_(e,o),_(e,r)},p(a,l){l[0]&4096&&n!==(n=`transform: translateX(${a[12]*100}%);`)&&f(t,"style",n),l[0]&8192&&s!==(s=`transform: translateX(${a[13]*100}%);`)&&f(r,"style",s),l[0]&32&&z(r,"active-live",a[5]),l[0]&128&&z(r,"ads",a[7])},i:me,o:me,d(a){a&&b(e)}}}function tv(i){let e,t;return e=new wm({props:{videoEpisodes:i[21],disabled:i[10],isMobile:i[6]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisodes=n[21]),o[0]&1024&&(r.disabled=n[10]),o[0]&64&&(r.isMobile=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function iv(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g=i[9]&&Sm(i),T=[tv,ev],k=[];function D(I,C){return I[21].length?0:1}return n=D(i,[-1,-1]),o=k[n]=T[n](i),{c(){g&&g.c(),e=j(),t=S("div"),o.c(),r=j(),s=S("div"),a=S("div"),f(a,"class","handle svelte-v8ydei"),z(a,"active-live",i[5]),f(s,"class","handleWrap svelte-v8ydei"),f(s,"style",l=`transform: translateX(${i[14]*100}%);`),z(s,"hidden",i[11]),f(t,"class",u="slider "+i[1]+" svelte-v8ydei"),f(t,"aria-label",i[15]),f(t,"aria-valuemin",i[16]),f(t,"aria-valuemax",i[17]),f(t,"aria-valuenow",i[18]),f(t,"aria-valuetext",i[19]),f(t,"role","slider"),f(t,"tabindex","0"),f(t,"data-testid",c=i[2]??null),z(t,"disabled",i[10]),z(t,"slider-dragging",i[20]),z(t,"hidden",i[3]),z(t,"slider-vertical",i[4]),z(t,"no-handle",i[11]),z(t,"square",i[8])},m(I,C){g&&g.m(I,C),v(I,e,C),v(I,t,C),k[n].m(t,null),_(t,r),_(t,s),_(s,a),i[44](t),m=!0,h||(y=[Te(t,"pointerdown",ii(i[22])),Te(t,"pointermove",ii(i[23])),Te(t,"pointerup",ii(i[24])),Te(t,"pointerenter",ii(i[25])),Te(t,"pointerleave",ii(i[26])),Te(t,"click",mt(i[28])),Te(t,"wheel",i[27])],h=!0)},p(I,C){I[9]?g?(g.p(I,C),C[0]&512&&d(g,1)):(g=Sm(I),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(ae(),p(g,1,1,()=>{g=null}),ue());let P=n;n=D(I,C),n===P?k[n].p(I,C):(ae(),p(k[P],1,1,()=>{k[P]=null}),ue(),o=k[n],o?o.p(I,C):(o=k[n]=T[n](I),o.c()),d(o,1),o.m(t,r)),(!m||C[0]&32)&&z(a,"active-live",I[5]),(!m||C[0]&16384&&l!==(l=`transform: translateX(${I[14]*100}%);`))&&f(s,"style",l),(!m||C[0]&2048)&&z(s,"hidden",I[11]),(!m||C[0]&2&&u!==(u="slider "+I[1]+" svelte-v8ydei"))&&f(t,"class",u),(!m||C[0]&32768)&&f(t,"aria-label",I[15]),(!m||C[0]&65536)&&f(t,"aria-valuemin",I[16]),(!m||C[0]&131072)&&f(t,"aria-valuemax",I[17]),(!m||C[0]&262144)&&f(t,"aria-valuenow",I[18]),(!m||C[0]&524288)&&f(t,"aria-valuetext",I[19]),(!m||C[0]&4&&c!==(c=I[2]??null))&&f(t,"data-testid",c),(!m||C[0]&1026)&&z(t,"disabled",I[10]),(!m||C[0]&1048578)&&z(t,"slider-dragging",I[20]),(!m||C[0]&10)&&z(t,"hidden",I[3]),(!m||C[0]&18)&&z(t,"slider-vertical",I[4]),(!m||C[0]&2050)&&z(t,"no-handle",I[11]),(!m||C[0]&258)&&z(t,"square",I[8])},i(I){m||(d(g),d(o),m=!0)},o(I){p(g),p(o),m=!1},d(I){I&&(b(e),b(t)),g&&g.d(I),k[n].d(),i[44](null),h=!1,st(y)}}}function nv(i,e,t){let n,o,{ref:r=void 0}=e,{className:s=""}=e,{testId:a=void 0}=e,{isHidden:l=!1}=e,{isVertical:u=!1}=e,{isActiveLive:c=!1}=e,{isMobile:m=!1}=e,{isAds:h=!1}=e,{squareBorders:y=!1}=e,{videoEpisodes:g=[]}=e,{withWheelHandler:T=!1}=e,{isInteractive:k=!1}=e,{disabled:D=!1}=e,{hideHandel:I=!1}=e,C,{onPointerDown:P=mn.noop}=e,{onHandleMove:G=mn.noop}=e,{onPointerUp:x=mn.noop}=e,{onPointerEnter:O=mn.noop}=e,{onPointerMove:$=mn.noop}=e,{onPointerLeave:le=mn.noop}=e,{onWheelUp:K=mn.noop}=e,{onWheelDown:ee=mn.noop}=e,{onWheelLeft:H=mn.noop}=e,{onWheelRight:J=mn.noop}=e,{onDisabledClick:ke=mn.noop}=e,{loadedProgress:q=0}=e,{filledProgress:ne=0}=e,{handleProgress:F=0}=e,{ariaLabel:_e=""}=e,{ariaValueMin:oe=void 0}=e,{ariaValueMax:Q=void 0}=e,{ariaValueNow:Z=void 0}=e,{ariaValueText:se=""}=e,Ze=It(),Je=!1,Pe;function Se(pe){if(r&&(C=r.getBoundingClientRect()),D||Je||!r)return;t(20,Je=!0);let Ee=tt(pe.clientX,pe.clientY);P(Ee),r.setPointerCapture(pe.pointerId)}function Ae(pe){if(D)return;let Ee=tt(pe.clientX,pe.clientY),Me=it(pe.clientX);$(Ee,Me,C.width),Je&&G(Ee)}function We(pe){if(D||!Je)return;t(20,Je=!1);let Ee=tt(pe.clientX,pe.clientY);x(Ee)}function X(pe){if(r&&(C=r.getBoundingClientRect()),D)return;let Ee=tt(pe.clientX,pe.clientY),Me=it(pe.clientX);O(Ee,Me,C.width)}function he(){D||le()}function Ie(pe){D||T&&(pe.preventDefault(),pe.deltaY<0?K():pe.deltaY>0?ee():pe.deltaX>0?J():H())}function Ge(pe){D&&ke(tt(pe.clientX,pe.clientY))}function tt(pe,Ee){return u?Math.max(0,Math.min(1,(C.height-(Ee-C.top))/C.height)):Math.min(Math.max(pe-C.x,0),C.width)/C.width}function it(pe){return Math.min(Math.max(pe-C.x,0),C.width)}function rt(pe,Ee){let Me=Ze.features.episodesClustering&&!k?Ze.episodeMinWidthPc:0,Xe=[],Ye=g[0].time/Pe*100,Oe=0,fe=0;for(let gt=1;gt<g.length;gt++)Oe=g[gt].time/Pe*100,Oe-Ye>Me&&(Xe.push({from:Ye,width:Math.max(0,Oe-Ye),loadedWidth:Math.max(0,Math.min(Oe,pe)-Ye),filledWidth:Math.max(0,Math.min(Oe,Ee)-Ye),interactive:g[gt-1].interactive,completed:g[gt-1].completed}),Ye=g[gt].time/Pe*100,fe++);let ct={from:Ye,width:Math.max(0,100-Ye),loadedWidth:Math.max(0,Math.min(pe,100)-Ye),filledWidth:Math.max(0,Math.min(Ee,100)-Ye),interactive:g[fe].interactive,completed:g[fe].completed};100-Ye<Me?(fe-=1,Xe[fe].width+=100-Ye,Xe[fe].loadedWidth+=Math.max(0,Math.min(pe,100)-Ye),Xe[fe].filledWidth+=Math.max(0,Math.min(Ee,100)-Ye)):Xe[fe]=ct;let ht=g[0].time;if(ht!==0){let gt=ht/Pe*100;Xe.unshift({from:0,width:gt,loadedWidth:Math.min(gt,pe),filledWidth:Math.min(gt,Ee)})}return Xe}function $e(pe){ve[pe?"unshift":"push"](()=>{r=pe,t(0,r)})}return i.$$set=pe=>{"ref"in pe&&t(0,r=pe.ref),"className"in pe&&t(1,s=pe.className),"testId"in pe&&t(2,a=pe.testId),"isHidden"in pe&&t(3,l=pe.isHidden),"isVertical"in pe&&t(4,u=pe.isVertical),"isActiveLive"in pe&&t(5,c=pe.isActiveLive),"isMobile"in pe&&t(6,m=pe.isMobile),"isAds"in pe&&t(7,h=pe.isAds),"squareBorders"in pe&&t(8,y=pe.squareBorders),"videoEpisodes"in pe&&t(29,g=pe.videoEpisodes),"withWheelHandler"in pe&&t(30,T=pe.withWheelHandler),"isInteractive"in pe&&t(9,k=pe.isInteractive),"disabled"in pe&&t(10,D=pe.disabled),"hideHandel"in pe&&t(11,I=pe.hideHandel),"onPointerDown"in pe&&t(31,P=pe.onPointerDown),"onHandleMove"in pe&&t(32,G=pe.onHandleMove),"onPointerUp"in pe&&t(33,x=pe.onPointerUp),"onPointerEnter"in pe&&t(34,O=pe.onPointerEnter),"onPointerMove"in pe&&t(35,$=pe.onPointerMove),"onPointerLeave"in pe&&t(36,le=pe.onPointerLeave),"onWheelUp"in pe&&t(37,K=pe.onWheelUp),"onWheelDown"in pe&&t(38,ee=pe.onWheelDown),"onWheelLeft"in pe&&t(39,H=pe.onWheelLeft),"onWheelRight"in pe&&t(40,J=pe.onWheelRight),"onDisabledClick"in pe&&t(41,ke=pe.onDisabledClick),"loadedProgress"in pe&&t(12,q=pe.loadedProgress),"filledProgress"in pe&&t(13,ne=pe.filledProgress),"handleProgress"in pe&&t(14,F=pe.handleProgress),"ariaLabel"in pe&&t(15,_e=pe.ariaLabel),"ariaValueMin"in pe&&t(16,oe=pe.ariaValueMin),"ariaValueMax"in pe&&t(17,Q=pe.ariaValueMax),"ariaValueNow"in pe&&t(18,Z=pe.ariaValueNow),"ariaValueText"in pe&&t(19,se=pe.ariaValueText)},i.$$.update=()=>{i.$$.dirty[0]&131072&&t(42,Pe=Q??0),i.$$.dirty[0]&536870912|i.$$.dirty[1]&2048&&t(43,n=(0,mn.isNonNullable)(g)&&g[g.length-1]?.time<Pe),i.$$.dirty[0]&536883200|i.$$.dirty[1]&6144&&t(21,o=(0,mn.isNonNullable)(g)&&g.length&&n&&Pe?rt(q*100,ne*100):[])},[r,s,a,l,u,c,m,h,y,k,D,I,q,ne,F,_e,oe,Q,Z,se,Je,o,Se,Ae,We,X,he,Ie,Ge,g,T,P,G,x,O,$,le,K,ee,H,J,ke,Pe,n,$e]}var xu=class extends B{constructor(e){super(),N(this,e,nv,iv,R,{ref:0,className:1,testId:2,isHidden:3,isVertical:4,isActiveLive:5,isMobile:6,isAds:7,squareBorders:8,videoEpisodes:29,withWheelHandler:30,isInteractive:9,disabled:10,hideHandel:11,onPointerDown:31,onHandleMove:32,onPointerUp:33,onPointerEnter:34,onPointerMove:35,onPointerLeave:36,onWheelUp:37,onWheelDown:38,onWheelLeft:39,onWheelRight:40,onDisabledClick:41,loadedProgress:12,filledProgress:13,handleProgress:14,ariaLabel:15,ariaValueMin:16,ariaValueMax:17,ariaValueNow:18,ariaValueText:19},$2,[-1,-1])}},Ur=xu;var pi=(i,e)=>nr[i]>=nr[e],Pm=(i,e)=>nr[i]<nr[e],zo=(i,e)=>nr[i]<=nr[e],Em=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function ov(i){be(i,"svelte-1l78lz9",".volumeBar-container.svelte-1l78lz9{display:flex;align-items:center}.volumeBar-container.vertical.svelte-1l78lz9,.vertical.svelte-1l78lz9 .tooltip-wrapper,.vertical.svelte-1l78lz9 .btn{width:40px}.volumeBar.svelte-1l78lz9{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.svelte-1l78lz9{padding:0 8px 0 0;width:0}")}function rv(i){let e,t;return e=new mr({props:{volume:i[3],muted:i[1]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.volume=n[3]),o[0]&2&&(r.muted=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function sv(i){let e,t;return e=new dt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:fo.KeyM,$$slots:{default:[rv]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&512&&(r.disabled=n[9]),o[0]&4&&(r.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(r.ariaLabel=n[7]),o[0]&1&&(r.click=n[0]),o[0]&10|o[1]&16&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Am(i){let e,t,n;return t=new Ur({props:{className:i[2]?"volumeBar-slider-vertical":"",isHidden:i[2]&&!i[5],isVertical:i[2],withWheelHandler:!0,onWheelUp:i[15],onWheelDown:i[16],onPointerDown:i[14],onHandleMove:i[17],onPointerUp:i[18],onPointerEnter:i[2]?i[19]:To.noop,onPointerLeave:i[2]?i[20]:To.noop,ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(i[8]*100),ariaValueText:`${Math.round(i[8]*100)}%`,filledProgress:i[8],handleProgress:i[8],testId:i[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","volumeBar svelte-1l78lz9"),z(e,"volumeBar-vertical",i[2])},m(o,r){v(o,e,r),E(t,e,null),n=!0},p(o,r){let s={};r[0]&4&&(s.className=o[2]?"volumeBar-slider-vertical":""),r[0]&36&&(s.isHidden=o[2]&&!o[5]),r[0]&4&&(s.isVertical=o[2]),r[0]&4&&(s.onPointerEnter=o[2]?o[19]:To.noop),r[0]&4&&(s.onPointerLeave=o[2]?o[20]:To.noop),r[0]&256&&(s.ariaValueNow=Math.round(o[8]*100)),r[0]&256&&(s.ariaValueText=`${Math.round(o[8]*100)}%`),r[0]&256&&(s.filledProgress=o[8]),r[0]&256&&(s.handleProgress=o[8]),r[0]&4&&(s.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(s),(!n||r[0]&4)&&z(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function lv(i){let e,t,n,o,r,s;t=new qr({props:{content:i[6],translateY:-18,$$slots:{default:[sv]},$$scope:{ctx:i}}});let a=i[4]&&Am(i);return{c(){e=S("div"),M(t.$$.fragment),n=j(),a&&a.c(),f(e,"class","volumeBar-container svelte-1l78lz9"),z(e,"vertical",i[2])},m(l,u){v(l,e,u),E(t,e,null),_(e,n),a&&a.m(e,null),o=!0,r||(s=[Te(e,"mouseenter",function(){Wt(i[2]?i[21]:To.noop)&&(i[2]?i[21]:To.noop).apply(this,arguments)}),Te(e,"mouseleave",function(){Wt(i[2]?i[22]:To.noop)&&(i[2]?i[22]:To.noop).apply(this,arguments)}),Te(e,"wheel",ii(i[23]))],r=!0)},p(l,u){i=l;let c={};u[0]&64&&(c.content=i[6]),u[0]&655|u[1]&16&&(c.$$scope={dirty:u,ctx:i}),t.$set(c),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=Am(i),a.c(),d(a,1),a.m(e,null)):a&&(ae(),p(a,1,1,()=>{a=null}),ue()),(!o||u[0]&4)&&z(e,"vertical",i[2])},i(l){o||(d(t.$$.fragment,l),d(a),o=!0)},o(l){p(t.$$.fragment,l),p(a),o=!1},d(l){l&&b(e),A(t),a&&a.d(),r=!1,st(s)}}}function av(i,e,t){let n,o,r,s,{click:a}=e,l=et(),u=It(),c=l.state.volume$;V(i,c,se=>t(3,n=se));let m=l.state.muted$;V(i,m,se=>t(25,s=se));let h=l.actions.internal.setVolume,y=l.ui.currentGridType$;V(i,y,se=>t(24,r=se));let g=l.callbacks?.onAudioDoesNotExistHint,T=l.callbacks?.onAudioDisabledHint,k=l.state.isAudioAvailable$;V(i,k,se=>t(4,o=se));let D=l.state.isAudioDisabled,I=!1,C,P,G,x,O,$,le=!1,K=!1;function ee(se){h(se)}function H(){ul(l,n,u.controls.volumeStepWheel)}function J(){cl(l,n,u.controls.volumeStepWheel)}function ke(se){h(se)}function q(se){let Ze=se,Je=Ze===0?u.volumeMinRestore:Ze;h(Ze,Je)}function ne(){le=!0}function F(){le=!1,Q()}function _e(){clearTimeout(C),t(5,I=!0)}function oe(){Q()}function Q(){C=window.setTimeout(()=>{le||t(5,I=!1)},u.controls.volumeBarTimeout)}function Z(se){se.deltaY<0?H():se.deltaY>0&&J()}return i.$$set=se=>{"click"in se&&t(0,a=se.click)},i.$$.update=()=>{i.$$.dirty[0]&33554448&&t(1,x=!o||s),i.$$.dirty[0]&16777216&&t(2,O=zo(r,"s")),i.$$.dirty[0]&6&&(O?t(6,P=""):t(6,P=x?W("tooltip_volume"):W("tooltip_volume_muted")),t(7,G=x?W("tooltip_volume"):W("tooltip_volume_muted"))),i.$$.dirty[0]&10&&t(8,$=x?0:n),i.$$.dirty[0]&16&&(o?t(9,K=D&&!T):t(9,K=!g))},[a,x,O,n,o,I,P,G,$,K,c,m,y,k,ee,H,J,ke,q,ne,F,_e,oe,Z,r,s]}var Hu=class extends B{constructor(e){super(),N(this,e,av,lv,R,{click:0},ov,[-1,-1])}},Mm=Hu;var Vm=require("@vkontakte/videoplayer-shared");function uv(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=L("svg"),a&&a.c(),t=L("g"),n=L("path"),o=L("path"),f(n,"d","M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z"),f(n,"class","_exit"),f(o,"d","M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"),f(o,"class","_enter"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),Ce(e,u)},m(c,m){v(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,s,c,c[1],r?Re(s,c[1],m,null):Be(c[1]),null),Ce(e,u=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&b(e),a&&a.d(c)}}}function cv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var qu=class extends B{constructor(e){super(),N(this,e,cv,uv,R,{})}},Lm=qu;function fv(i){be(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function dv(i){let e,t;return e=new Lm({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function mv(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Uu=class extends B{constructor(e){super(),N(this,e,mv,dv,R,{isFullscreen:0},fv)}},Rm=Uu;function pv(i){let e,t;return e=new Rm({props:{isFullscreen:i[0]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.isFullscreen=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function _v(i){let e,t;return e=new dt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:fo.KeyF,$$slots:{default:[pv]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function hv(i,e,t){let{isFullscreen:n=!1}=e,{click:o=Vm.noop}=e,r;return i.$$set=s=>{"isFullscreen"in s&&t(0,n=s.isFullscreen),"click"in s&&t(1,o=s.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=n?W("tooltip_fullscreen_on"):W("tooltip_fullscreen_off"))},[n,o,r]}var zu=class extends B{constructor(e){super(),N(this,e,hv,_v,R,{isFullscreen:0,click:1})}},vl=zu;function gv(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z"),f(t,"clip-rule","evenodd"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,l,l[1],n?Re(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function bv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Wu=class extends B{constructor(e){super(),N(this,e,bv,gv,R,{})}},Bm=Wu;function vv(i){let e,t,n,o,r,s,a=i[2].default,l=Le(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],c={};for(let m=0;m<u.length;m+=1)c=re(c,u[m]);return{c(){e=L("svg"),l&&l.c(),t=L("path"),n=L("path"),o=L("path"),r=L("path"),f(t,"fill","#fff"),f(t,"d","M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"),f(n,"fill","#fff"),f(n,"d","M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35"),f(n,"class","_ru"),f(o,"fill","#fff"),f(o,"d","M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635"),f(o,"class","_en"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"d","M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"),f(r,"clip-rule","evenodd"),Ce(e,c)},m(m,h){v(m,e,h),l&&l.m(e,null),_(e,t),_(e,n),_(e,o),_(e,r),s=!0},p(m,[h]){l&&l.p&&(!s||h&2)&&Ve(l,a,m,m[1],s?Re(a,m[1],h,null):Be(m[1]),null),Ce(e,c=He(u,[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},h&1&&m[0]]))},i(m){s||(d(l,m),s=!0)},o(m){p(l,m),s=!1},d(m){m&&b(e),l&&l.d(m)}}}function yv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Ku=class extends B{constructor(e){super(),N(this,e,yv,vv,R,{})}},Nm=Ku;function kv(i){be(i,"svelte-1nhjml",'svg[data-testid="vk-video-logo-icon--short"] ._ru,svg[data-testid="vk-video-logo-icon--short"] ._en,svg[data-testid="vk-video-logo-icon"] ._en,svg[data-testid="vk-video-logo-icon--en"] ._ru{visibility:hidden;opacity:0}')}function wv(i){let e,t;return e=new Nm({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.width=n[0]),o&1&&(r.viewBox="0 0 "+(n[0]+1)+" 24"),o&2&&(r["data-testid"]=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}var Cv="vk-video-logo-icon--short";function Sv(i,e,t){let{short:n=!1}=e,{isCyrillic:o=!0}=e,r,s;return i.$$set=a=>{"short"in a&&t(2,n=a.short),"isCyrillic"in a&&t(3,o=a.isCyrillic)},i.$$.update=()=>{i.$$.dirty&12&&(t(0,r=n?21:95),t(1,s=n?Cv:"vk-video-logo-icon"),!o&&!n&&(t(0,r=91),t(1,s="vk-video-logo-icon--en")))},[r,s,n,o]}var ju=class extends B{constructor(e){super(),N(this,e,Sv,wv,R,{short:2,isCyrillic:3},kv)}},Dm=ju;function Iv(i){let e,t;return e=new Bm({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Pv(i){let e,t;return e=new Dm({props:{short:i[4],isCyrillic:i[5]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.short=n[4]),o&32&&(r.isCyrillic=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Ev(i){let e,t,n,o,r=[Pv,Iv],s=[];function a(l,u){return l[2]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Qe()},m(l,u){s[e].m(l,u),v(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),s[e].d(l)}}}function Av(i){let e,t,n;function o(s){i[14](s)}let r={className:"btn-full-opacity",disabled:!i[1],click:i[9],testId:i[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[3],$$slots:{default:[Ev]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.disabled=!s[1]),a&4&&(l.testId=s[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(l.ariaLabel=s[3]),a&131124&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Mv(i,e,t){let n,o,r,{ref:s=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:l=""}=e,{click:u}=e,c=It(),m=et(),h=m.ui.currentGridType$;V(i,h,P=>t(12,n=P));let y=m.ui.isMobile;V(i,y,P=>t(13,o=P));let g=m.isCyrillicRelatedInterface$;V(i,g,P=>t(5,r=P));let T,k,D,I=()=>{u(),m.callbacks?.onLogoClicked?m.callbacks?.onLogoClicked():l&&window.open(l,"_blank")};function C(P){s=P,t(0,s)}return i.$$set=P=>{"ref"in P&&t(0,s=P.ref),"logoClickable"in P&&t(1,a=P.logoClickable),"targetUrl"in P&&t(10,l=P.targetUrl),"click"in P&&t(11,u=P.click)},i.$$.update=()=>{i.$$.dirty&12292&&t(4,D=(o||zo(n,"l"))&&k)},t(3,T=c.logoType==="vk_video"?W("tooltip_vk_video_logo"):W("tooltip_vk_logo")),t(2,k=c.logoType==="vk_video"||c.logoType==="vk_video_mobile"),[s,a,k,T,D,r,h,y,g,I,l,u,n,o,C]}var Gu=class extends B{constructor(e){super(),N(this,e,Mv,Av,R,{ref:0,logoClickable:1,targetUrl:10,click:11})}},yl=Gu;var Fm=require("@vkontakte/videoplayer-core");var Yu=require("@vkontakte/videoplayer-core");function Lv(i){be(i,"svelte-8z1bf5",".connecting.svelte-8z1bf5 .wave.svelte-8z1bf5{animation-duration:1s;animation-iteration-count:infinite}.connecting.svelte-8z1bf5 .wave1.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave1}.connecting.svelte-8z1bf5 .wave2.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave2}.connecting.svelte-8z1bf5 .wave3.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave3}@keyframes svelte-8z1bf5-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}")}function Rv(i){let e,t,n,o,r,s,a,l;return{c(){e=L("svg"),t=L("g"),n=L("path"),o=L("path"),r=L("path"),s=L("path"),a=L("path"),l=L("path"),f(n,"class","wave wave1 svelte-8z1bf5"),f(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),f(n,"fill","#fff"),f(o,"class","wave wave2 svelte-8z1bf5"),f(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),f(o,"fill","#fff"),f(r,"class","wave wave3 svelte-8z1bf5"),f(r,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),f(r,"fill","#fff"),f(s,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),f(s,"fill","#fff"),f(a,"d","M0 0h24v24H0z"),f(l,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),f(l,"fill","#fff"),z(l,"hidden",!i[1]),f(t,"fill","none"),f(t,"fill-rule","evenodd"),f(e,"width","24"),f(e,"height","24"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-icon"),f(e,"class","svelte-8z1bf5"),z(e,"connecting",i[2])},m(u,c){v(u,e,c),_(e,t),_(t,n),_(t,o),_(t,r),_(t,s),_(t,a),_(t,l)},p(u,c){c&2&&z(l,"hidden",!u[1]),c&4&&z(e,"connecting",u[2])},d(u){u&&b(e)}}}function Vv(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C,P,G;return{c(){e=L("svg"),t=L("g"),n=L("mask"),o=L("path"),s=L("path"),a=L("path"),u=L("path"),c=L("defs"),m=L("clipPath"),h=L("path"),g=L("filter"),T=L("feFlood"),k=L("feColorMatrix"),D=L("feOffset"),I=L("feGaussianBlur"),C=L("feColorMatrix"),P=L("feBlend"),G=L("feBlend"),f(o,"fill",r=i[1]?"#2688EB":"#fff"),f(o,"d","M1.1 3.1h22v18h-22z"),f(s,"fill-rule","evenodd"),f(s,"clip-rule","evenodd"),f(s,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),f(n,"id","c"),f(n,"maskUnits","userSpaceOnUse"),f(n,"x","1.1"),f(n,"y","3.1"),f(n,"width","22"),f(n,"height","18"),f(n,"fill","#000"),f(a,"fill-rule","evenodd"),f(a,"clip-rule","evenodd"),f(a,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),f(a,"fill",l=i[1]?"#2688EB":"#fff"),f(u,"d","m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z"),f(u,"fill","#000"),f(u,"fill-opacity",".12"),f(u,"mask","url(#c)"),f(t,"filter","url(#b)"),f(t,"clip-path","url(#a)"),f(h,"fill",y=i[1]?"#2688EB":"#fff"),f(h,"d","M0 0h24v24H0z"),f(m,"id","a"),f(T,"flood-opacity","0"),f(T,"result","BackgroundImageFix"),f(k,"in","SourceAlpha"),f(k,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(k,"result","hardAlpha"),f(I,"stdDeviation","2.5"),f(C,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(P,"in2","BackgroundImageFix"),f(P,"result","effect1_dropShadow_4085_178456"),f(G,"in","SourceGraphic"),f(G,"in2","effect1_dropShadow_4085_178456"),f(G,"result","shape"),f(g,"id","b"),f(g,"x","-3.4"),f(g,"y","-1.4"),f(g,"width","30.8"),f(g,"height","26.802"),f(g,"filterUnits","userSpaceOnUse"),f(g,"color-interpolation-filters","sRGB"),f(e,"width","24"),f(e,"height","24"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-mobile-icon")},m(x,O){v(x,e,O),_(e,t),_(t,n),_(n,o),_(n,s),_(t,a),_(t,u),_(e,c),_(c,m),_(m,h),_(c,g),_(g,T),_(g,k),_(g,D),_(g,I),_(g,C),_(g,P),_(g,G)},p(x,O){O&2&&r!==(r=x[1]?"#2688EB":"#fff")&&f(o,"fill",r),O&2&&l!==(l=x[1]?"#2688EB":"#fff")&&f(a,"fill",l),O&2&&y!==(y=x[1]?"#2688EB":"#fff")&&f(h,"fill",y)},d(x){x&&b(e)}}}function Bv(i){let e;function t(r,s){return r[0]?Vv:Rv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Qe()},m(r,s){o.m(r,s),v(r,e,s)},p(r,[s]){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:me,o:me,d(r){r&&b(e),o.d(r)}}}function Nv(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,r,s;return i.$$set=a=>{"isMobile"in a&&t(0,n=a.isMobile),"state"in a&&t(3,o=a.state)},i.$$.update=()=>{i.$$.dirty&8&&(t(2,s=o===Yu.ChromecastState.CONNECTING),t(1,r=o===Yu.ChromecastState.CONNECTED))},[n,r,s,o]}var Qu=class extends B{constructor(e){super(),N(this,e,Nv,Bv,R,{isMobile:0,state:3},Lv)}},Om=Qu;var xm=require("@vkontakte/videoplayer-shared");function Dv(i){let e,t;return e=new Om({props:{isMobile:i[1],state:i[2]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&4&&(r.state=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Ov(i){let e,t,n;function o(s){i[5](s)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[Dv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&16&&(l.ariaLabel=s[4]),a&8&&(l.click=s[3]),a&70&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Fv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:s=xm.noop}=e,a;function l(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"state"in u&&t(2,r=u.state),"click"in u&&t(3,s=u.click)},i.$$.update=()=>{i.$$.dirty&4&&t(4,a=r===Fm.ChromecastState.CONNECTED?W("tooltip_chromecast_on"):W("tooltip_chromecast_off"))},[n,o,r,s,a,l]}var Zu=class extends B{constructor(e){super(),N(this,e,Fv,Ov,R,{ref:0,isMobile:1,state:2,click:3})}},kl=Zu;function xv(i){be(i,"svelte-5ygsa2",'.tooltip-wrapper.svelte-5ygsa2{position:relative;display:block}.tooltip.svelte-5ygsa2{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.pointer.svelte-5ygsa2:after{position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px)}.tooltip.active.svelte-5ygsa2{opacity:1;visibility:visible}')}function Hv(i){let e,t,n,o,r=i[9].default,s=Le(r,i,i[8],null);return{c(){e=S("div"),t=S("div"),s&&s.c(),f(t,"class","tooltip svelte-5ygsa2"),z(t,"active",i[0]),z(t,"pointer",i[1]),f(e,"class","tooltip-wrapper svelte-5ygsa2"),f(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(a,l){v(a,e,l),_(e,t),s&&s.m(t,null),i[10](t),i[11](e),o=!0},p(a,[l]){s&&s.p&&(!o||l&256)&&Ve(s,r,a,a[8],o?Re(r,a[8],l,null):Be(a[8]),null),(!o||l&1)&&z(t,"active",a[0]),(!o||l&2)&&z(t,"pointer",a[1]),(!o||l&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&f(e,"style",n)},i(a){o||(d(s,a),o=!0)},o(a){p(s,a),o=!1},d(a){a&&b(e),s&&s.d(a),i[10](null),i[11](null)}}}function qv(i,e,t){let n,{$$slots:o={},$$scope:r}=e,{active:s=!1}=e,{pointer:a=!1}=e,{translateXPx:l=0}=e,{translateYPx:u=0}=e,{containerWidth:c}=e,m,h;function y(k){if(!h)return 0;let{width:D}=h.getBoundingClientRect(),I=D/2;return k<I?I:k>c-I?c-I:k}function g(k){ve[k?"unshift":"push"](()=>{h=k,t(4,h)})}function T(k){ve[k?"unshift":"push"](()=>{m=k,t(3,m)})}return i.$$set=k=>{"active"in k&&t(0,s=k.active),"pointer"in k&&t(1,a=k.pointer),"translateXPx"in k&&t(6,l=k.translateXPx),"translateYPx"in k&&t(2,u=k.translateYPx),"containerWidth"in k&&t(7,c=k.containerWidth),"$$scope"in k&&t(8,r=k.$$scope)},i.$$.update=()=>{i.$$.dirty&64&&t(5,n=y(l))},[s,a,u,m,h,n,l,c,r,o,g,T]}var Xu=class extends B{constructor(e){super(),N(this,e,qv,Hv,R,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},xv)}},Hm=Xu;var wl=(i,e,t)=>t.filter(n=>n.time<=i*e).pop();function Uv(i){be(i,"svelte-l51fc1",".timeline-preview.svelte-l51fc1{bottom:18px;border-radius:2px;pointer-events:none}.timeline-preview.mobile.svelte-l51fc1{bottom:72px}.preview.svelte-l51fc1{margin-bottom:10px;background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white)}.episode.svelte-l51fc1{margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500}.time.svelte-l51fc1{font-size:13px;line-height:16px;text-align:center;color:var(--slider-filled-bg);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500}")}function qm(i){let e,t;return{c(){e=S("div"),f(e,"class","preview svelte-l51fc1"),f(e,"style",t=`width: ${i[3]}px; height: ${i[4]}px; background-image: url(${i[5]}); background-size: ${i[6]}px ${i[7]}px; background-position: ${i[8]}px ${i[9]}px; transform: translateY(${i[11]%180?-35:0}px) rotate(${i[11]}deg);`)},m(n,o){v(n,e,o)},p(n,o){o&3064&&t!==(t=`width: ${n[3]}px; height: ${n[4]}px; background-image: url(${n[5]}); background-size: ${n[6]}px ${n[7]}px; background-position: ${n[8]}px ${n[9]}px; transform: translateY(${n[11]%180?-35:0}px) rotate(${n[11]}deg);`)&&f(e,"style",t)},d(n){n&&b(e)}}}function Um(i){let e;function t(r,s){return r[2]&&r[10].completed===!1?Wv:zv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Qe()},m(r,s){o.m(r,s),v(r,e,s)},p(r,s){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&b(e),o.d(r)}}}function zv(i){let e=(i[10].text||"")+"",t;return{c(){t=De(e)},m(n,o){v(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Ke(t,e)},d(n){n&&b(t)}}}function Wv(i){let e=W("tooltip_episode_unfinished")+"",t;return{c(){t=De(e)},m(n,o){v(n,t,o)},p:me,d(n){n&&b(t)}}}function zm(i){let e,t;return{c(){e=S("div"),t=De(i[0]),f(e,"class","time svelte-l51fc1")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&1&&Ke(t,n[0])},d(n){n&&b(e)}}}function Kv(i){let e,t,n,o,r=i[5]&&qm(i),s=i[10]&&Um(i),a=!i[2]&&zm(i);return{c(){e=S("div"),r&&r.c(),t=j(),n=S("div"),s&&s.c(),o=j(),a&&a.c(),f(n,"class","episode svelte-l51fc1"),f(e,"class","timeline-preview svelte-l51fc1"),z(e,"mobile",i[1])},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),_(e,n),s&&s.m(n,null),_(e,o),a&&a.m(e,null)},p(l,[u]){l[5]?r?r.p(l,u):(r=qm(l),r.c(),r.m(e,t)):r&&(r.d(1),r=null),l[10]?s?s.p(l,u):(s=Um(l),s.c(),s.m(n,null)):s&&(s.d(1),s=null),l[2]?a&&(a.d(1),a=null):a?a.p(l,u):(a=zm(l),a.c(),a.m(e,null)),u&2&&z(e,"mobile",l[1])},i:me,o:me,d(l){l&&b(e),r&&r.d(),s&&s.d(),a&&a.d()}}}var zr=150;function jv(i,e,t){let n,{time:o=""}=e,{isMobile:r=!1}=e,{videoEpisodes:s=[]}=e,{previewThumbsData:a}=e,{progress:l=0}=e,{duration:u=0}=e,{isInteractive:c=!1}=e,h=et().ui.rotateAlpha;V(i,h,O=>t(11,n=O));let y,g,T,k,D,I,C,P;function G(){let O=a.frameWidth,$=a.frameHeight;return O>zr?($=$/O*zr,O=zr):$>zr&&(O=O/$*zr,$=zr),{width:O,height:$}}function x(O){let $;a.isUV?$=Math.floor(u*O/a.frequency):$=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*O)));let le=Math.floor($/a.countPerImage),K=Math.floor($%a.countPerImage/a.countPerRow),ee=$%a.countPerRow,H=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&le===Math.floor(a.countTotal/a.countPerImage)&&(H=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&H++);let J=a.countPerRow;!a.isUV&&le===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(J=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let ke=y*J,q=g*H,ne=-ee*y,F=-K*g;return{imgSrc:a.links[le],imgWidth:ke,imgHeight:q,imgOffsetX:ne,imgOffsetY:F}}return i.$$set=O=>{"time"in O&&t(0,o=O.time),"isMobile"in O&&t(1,r=O.isMobile),"videoEpisodes"in O&&t(13,s=O.videoEpisodes),"previewThumbsData"in O&&t(14,a=O.previewThumbsData),"progress"in O&&t(15,l=O.progress),"duration"in O&&t(16,u=O.duration),"isInteractive"in O&&t(2,c=O.isInteractive)},i.$$.update=()=>{i.$$.dirty&32768&&t(5,{imgSrc:T,imgWidth:k,imgHeight:D,imgOffsetX:I,imgOffsetY:C}=x(l),T,(t(6,k),t(15,l)),(t(7,D),t(15,l)),(t(8,I),t(15,l)),(t(9,C),t(15,l))),i.$$.dirty&106496&&t(10,P=wl(l,u,s))},t(3,{width:y,height:g}=G(),y,t(4,g)),[o,r,c,y,g,T,k,D,I,C,P,n,h,s,a,l,u]}var Ju=class extends B{constructor(e){super(),N(this,e,jv,Kv,R,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},Uv)}},Wm=Ju;function Gv(i){be(i,"svelte-5lzly8",".time.svelte-5lzly8{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}")}function Yv(i){let e,t;return{c(){e=S("span"),t=De(i[8]),f(e,"class","time svelte-5lzly8")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o[0]&256&&Ke(t,n[8])},i:me,o:me,d(n){n&&b(e)}}}function Qv(i){let e,t;return e=new Wm({props:{time:i[8],isMobile:i[11],videoEpisodes:i[4],previewThumbsData:i[22],progress:i[9],duration:i[2],isInteractive:i[24]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&256&&(r.time=n[8]),o[0]&2048&&(r.isMobile=n[11]),o[0]&16&&(r.videoEpisodes=n[4]),o[0]&512&&(r.progress=n[9]),o[0]&4&&(r.duration=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Zv(i){let e,t,n,o,r=[Qv,Yv],s=[];function a(l,u){return l[15].features.timelinePreview&&l[22]&&!l[1]?0:1}return e=a(i,[-1,-1]),t=s[e]=r[e](i),{c(){t.c(),n=Qe()},m(l,u){s[e].m(l,u),v(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),s[e].d(l)}}}function Xv(i){let e,t,n,o,r,s=[i[10]],a={$$slots:{default:[Zv]},$$scope:{ctx:i}};for(let c=0;c<s.length;c+=1)a=re(a,s[c]);e=new Hm({props:a});function l(c){i[43](c)}let u={isActiveLive:i[12],isMobile:i[11],ariaLabel:W("aria_timeline"),ariaValueMin:0,ariaValueMax:i[2],ariaValueNow:Math.round(i[7]*100),ariaValueText:W("aria_timeline_value",{position:i[6],duration:i[5]}),loadedProgress:i[13],filledProgress:i[7],handleProgress:i[7],videoEpisodes:i[4],onPointerDown:i[29],onHandleMove:i[30],onPointerMove:i[33],onPointerUp:i[31],onPointerEnter:i[32],onPointerLeave:i[34],onDisabledClick:i[27],isInteractive:i[24],disabled:i[14].has("TIMELINE"),hideHandel:i[3]};return i[0]!==void 0&&(u.ref=i[0]),n=new Ur({props:u}),ve.push(()=>ze(n,"ref",l)),{c(){M(e.$$.fragment),t=j(),M(n.$$.fragment)},m(c,m){E(e,c,m),v(c,t,m),E(n,c,m),r=!0},p(c,m){let h=m[0]&1024?He(s,[Oo(c[10])]):{};m[0]&2838|m[1]&1048576&&(h.$$scope={dirty:m,ctx:c}),e.$set(h);let y={};m[0]&4096&&(y.isActiveLive=c[12]),m[0]&2048&&(y.isMobile=c[11]),m[0]&4&&(y.ariaValueMax=c[2]),m[0]&128&&(y.ariaValueNow=Math.round(c[7]*100)),m[0]&96&&(y.ariaValueText=W("aria_timeline_value",{position:c[6],duration:c[5]})),m[0]&8192&&(y.loadedProgress=c[13]),m[0]&128&&(y.filledProgress=c[7]),m[0]&128&&(y.handleProgress=c[7]),m[0]&16&&(y.videoEpisodes=c[4]),m[0]&16384&&(y.disabled=c[14].has("TIMELINE")),m[0]&8&&(y.hideHandel=c[3]),!o&&m[0]&1&&(o=!0,y.ref=c[0],Ue(()=>o=!1)),n.$set(y)},i(c){r||(d(e.$$.fragment,c),d(n.$$.fragment,c),r=!0)},o(c){p(e.$$.fragment,c),p(n.$$.fragment,c),r=!1},d(c){c&&b(t),A(e,c),A(n,c)}}}function Jv(i,e,t){let n,o,r,s,a,l,u,c,m,h,y,{showTimeline:g=!1}=e,{ref:T=void 0}=e,k=et(),D=It(),I=k.state.bufferedProgress$;V(i,I,Ee=>t(13,h=Ee));let C=k.state.positionWithScrubbing$;V(i,C,Ee=>t(41,l=Ee));let P=k.state.duration$;V(i,P,Ee=>t(2,r=Ee));let G=k.state.isLive$;V(i,G,Ee=>t(1,o=Ee));let x=k.state.isActiveLive$;V(i,x,Ee=>t(12,m=Ee));let O=k.ui.isMobile;V(i,O,Ee=>t(11,c=Ee));let $=D.features.episodes?k.actions.internal.getVideoEpisodes():void 0,le=k.actions.internal.getPreviewThumbsData(),K=k.state.interactiveEpisodes$;V(i,K,Ee=>t(42,u=Ee));let ee=k.state.isInteractive,H=k.state.isInteractiveTime$;V(i,H,Ee=>t(3,s=Ee));let J=k.state.isInteractiveExpectation$;V(i,J,Ee=>t(40,a=Ee));let ke=k.actions.internal.correctSeekTimeToInteractive,q=k.callbacks?.onDisabledTimelineClick,ne=k.ui.controls.disabledControls$;V(i,ne,Ee=>t(14,y=Ee));let F=D.features.interactiveResponsiveUi,_e,oe,Q,Z,se=!1,Ze="",Je=0,Pe=0,Se=0,Ae;function We(Ee){return!ke||!ee?Ee:ke(Ee*r)/r}function X(Ee){k.actions.internal.startScrubbing(We(Ee))}function he(Ee){s||k.actions.internal.progressScrubbing(We(Ee))}function Ie(Ee){k.actions.internal.completeScrubbing(We(Ee)),t(36,se=!1)}function Ge(Ee,Me,Xe){rt(Ee,Me,Xe),t(36,se=!0)}function tt(Ee,Me,Xe){rt(Ee,Me,Xe),t(36,se=!0)}function it(){t(36,se=!1)}function rt(Ee,Me,Xe){t(9,Se=We(Ee)),t(37,Je=Me),Xe&&t(38,Pe=Xe),t(8,Ze=$e(Ee))}function $e(Ee){let Me=Dn((o?1-Ee:Ee)*r);return o?`-${Me}`:Me}function pe(Ee){T=Ee,t(0,T)}return i.$$set=Ee=>{"showTimeline"in Ee&&t(35,g=Ee.showTimeline),"ref"in Ee&&t(0,T=Ee.ref)},i.$$.update=()=>{i.$$.dirty[1]&2048&&t(4,_e=ee?u:$),i.$$.dirty[0]&4&&t(5,oe=Dn(r)),i.$$.dirty[1]&1024&&t(6,Q=Dn(l)),i.$$.dirty[0]&4|i.$$.dirty[1]&1024&&t(7,Z=l/r),i.$$.dirty[0]&8|i.$$.dirty[1]&512&&t(39,Ae=a||s),i.$$.dirty[0]&2|i.$$.dirty[1]&496&&t(10,n={containerWidth:Pe,translateXPx:Je,translateYPx:ee&&le?-36:-16,active:se&&g&&!Ae&&!F,pointer:!D.features.timelinePreview||!le||o})},[T,o,r,s,_e,oe,Q,Z,Ze,Se,n,c,m,h,y,D,I,C,P,G,x,O,le,K,ee,H,J,q,ne,X,he,Ie,Ge,tt,it,g,se,Je,Pe,Ae,a,l,u,pe]}var $u=class extends B{constructor(e){super(),N(this,e,Jv,Xv,R,{showTimeline:35,ref:0},Gv,[-1,-1])}},Km=$u;function $v(i){let e,t;return e=new Ur({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:W("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.ariaValueMax=n[0]),o&8&&(r.ariaValueNow=Math.round(n[3]*100)),o&6&&(r.ariaValueText=W("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(r.filledProgress=n[3]),o&16&&(r.squareBorders=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function e4(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=et().ui.isMobile;V(i,a,m=>t(4,n=m));let l,u,c;return i.$$set=m=>{"position"in m&&t(6,o=m.position),"duration"in m&&t(0,r=m.duration)},i.$$.update=()=>{i.$$.dirty&1&&t(1,l=Dn(r)),i.$$.dirty&64&&t(2,u=Dn(o)),i.$$.dirty&65&&t(3,c=o/r)},[r,l,u,c,n,a,o]}var ec=class extends B{constructor(e){super(),N(this,e,e4,$v,R,{position:6,duration:0})}},Cl=ec;function t4(i){be(i,"svelte-1gqonyf",".timeline.svelte-1gqonyf{position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box}.timeline.mobile.svelte-1gqonyf{height:16px;padding:6px 12px 7px;margin-top:6px}.timeline-stub.svelte-1gqonyf{width:100%;min-width:20px}.timeline-stub.mobile.svelte-1gqonyf{height:8px}")}function i4(i){let e;return{c(){e=S("div"),f(e,"class","timeline-stub svelte-1gqonyf"),z(e,"mobile",i[3])},m(t,n){v(t,e,n)},p(t,n){n&8&&z(e,"mobile",t[3])},i:me,o:me,d(t){t&&b(e)}}}function n4(i){let e,t,n,o,r=[r4,o4],s=[];function a(l,u){return l[1]?0:1}return t=a(i,-1),n=s[t]=r[t](i),{c(){e=S("div"),n.c(),f(e,"class","timeline svelte-1gqonyf"),z(e,"mobile",i[3])},m(l,u){v(l,e,u),s[t].m(e,null),o=!0},p(l,u){let c=t;t=a(l,u),t===c?s[t].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),n=s[t],n?n.p(l,u):(n=s[t]=r[t](l),n.c()),d(n,1),n.m(e,null)),(!o||u&8)&&z(e,"mobile",l[3])},i(l){o||(d(n),o=!0)},o(l){p(n),o=!1},d(l){l&&b(e),s[t].d()}}}function o4(i){let e,t,n;function o(s){i[14](s)}let r={showTimeline:i[2]};return i[0]!==void 0&&(r.ref=i[0]),e=new Km({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a&4&&(l.showTimeline=s[2]),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function r4(i){let e,t;return e=new Cl({props:{position:i[4],duration:i[5]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.position=n[4]),o&32&&(r.duration=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function s4(i){let e,t,n,o,r=[n4,i4],s=[];function a(l,u){return l[2]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Qe()},m(l,u){s[e].m(l,u),v(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e===c?s[e].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),s[e].d(l)}}}function l4(i,e,t){let n,o,r,s,{isAds:a=!1}=e,{canRewindLive:l}=e,{isRewindableLive:u}=e,{isHidden:c=!1}=e,{ref:m=void 0}=e,h=et(),y=h.state.isLive$;V(i,y,C=>t(13,n=C));let g=h.ads.duration;V(i,g,C=>t(5,s=C));let T=h.ads.position;V(i,T,C=>t(4,r=C));let k=h.ui.isMobile;V(i,k,C=>t(3,o=C));let D;function I(C){m=C,t(0,m)}return i.$$set=C=>{"isAds"in C&&t(1,a=C.isAds),"canRewindLive"in C&&t(10,l=C.canRewindLive),"isRewindableLive"in C&&t(11,u=C.isRewindableLive),"isHidden"in C&&t(12,c=C.isHidden),"ref"in C&&t(0,m=C.ref)},i.$$.update=()=>{i.$$.dirty&15362&&t(2,D=!c&&(!n||n&&l&&u||a))},[m,a,D,o,r,s,y,g,T,k,l,u,c,n,I]}var tc=class extends B{constructor(e){super(),N(this,e,l4,s4,R,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},t4)}},Sl=tc;var Qm=require("@vkontakte/videoplayer-shared");function a4(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=L("svg"),a&&a.c(),t=L("path"),n=L("path"),o=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"),Ce(e,u)},m(c,m){v(c,e,m),a&&a.m(e,null),_(e,t),_(e,n),_(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,s,c,c[1],r?Re(s,c[1],m,null):Be(c[1]),null),Ce(e,u=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&b(e),a&&a.d(c)}}}function u4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var ic=class extends B{constructor(e){super(),N(this,e,u4,a4,R,{})}},jm=ic;function c4(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708"),f(t,"clip-rule","evenodd"),f(t,"opacity",".7"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,l,l[1],n?Re(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function f4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var nc=class extends B{constructor(e){super(),N(this,e,f4,c4,R,{})}},Gm=nc;function d4(i){be(i,"svelte-1yhs2ga",".text.svelte-1yhs2ga{padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text.count.svelte-1yhs2ga{overflow:visible}.text.mobile.svelte-1yhs2ga{padding:0 3px 0 4px}.chevron-episodes.svelte-1yhs2ga{margin-bottom:-4px}")}function Ym(i){let e,t,n;function o(s){i[19](s)}let r={className:"w-max btn-full-opacity btn-jc-l "+(i[7]?"px-0":""),testId:"btn-episodes",click:i[13],disabled:!i[8],ariaExpanded:i[4],ariaLabel:i[6],$$slots:{default:[g4]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new dt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a&128&&(l.className="w-max btn-full-opacity btn-jc-l "+(s[7]?"px-0":"")),a&16&&(l.ariaExpanded=s[4]),a&64&&(l.ariaLabel=s[6]),a&8388777&&(l.$$scope={dirty:a,ctx:s}),!t&&a&2&&(t=!0,l.ref=s[1],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function m4(i){let e,t,n,o;e=new jm({});function r(l,u){if(l[5]==="FULL")return h4;if(l[5]==="COUNT")return _4}let s=r(i,-1),a=s&&s(i);return{c(){M(e.$$.fragment),t=j(),a&&a.c(),n=Qe()},m(l,u){E(e,l,u),v(l,t,u),a&&a.m(l,u),v(l,n,u),o=!0},p(l,u){s===(s=r(l,u))&&a?a.p(l,u):(a&&a.d(1),a=s&&s(l),a&&(a.c(),a.m(n.parentNode,n)))},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){l&&(b(t),b(n)),A(e,l),a&&a.d(l)}}}function p4(i){let e,t,n,o,r,s;return r=new Gm({}),{c(){e=S("span"),t=De(i[3]),n=j(),o=S("div"),M(r.$$.fragment),f(e,"class","text mobile svelte-1yhs2ga"),f(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,l){v(a,e,l),_(e,t),v(a,n,l),v(a,o,l),E(r,o,null),s=!0},p(a,l){(!s||l&8)&&Ke(t,a[3])},i(a){s||(d(r.$$.fragment,a),s=!0)},o(a){p(r.$$.fragment,a),s=!1},d(a){a&&(b(e),b(n),b(o)),A(r)}}}function _4(i){let e,t=i[0].length+"",n;return{c(){e=S("span"),n=De(t),f(e,"class","text count svelte-1yhs2ga")},m(o,r){v(o,e,r),_(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&Ke(n,t)},d(o){o&&b(e)}}}function h4(i){let e,t;return{c(){e=S("span"),t=De(i[3]),f(e,"class","text svelte-1yhs2ga")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&8&&Ke(t,n[3])},d(n){n&&b(e)}}}function g4(i){let e,t,n,o,r=[p4,m4],s=[];function a(l,u){return l[7]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Qe()},m(l,u){s[e].m(l,u),v(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),s[e].d(l)}}}function b4(i){let e,t,n=i[2]&&Ym(i);return{c(){n&&n.c(),e=Qe()},m(o,r){n&&n.m(o,r),v(o,e,r),t=!0},p(o,[r]){o[2]?n?(n.p(o,r),r&4&&d(n,1)):(n=Ym(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),p(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function v4(i,e,t){let n,o,r,s,{position:a=0}=e,{duration:l=0}=e,{timeCodes:u=[]}=e,c=et(),m=c.callbacks?.onEpisodeChanged??Qm.noop,h=!!c.callbacks?.onEpisodeClicked,y=c.ui.currentGridType$;V(i,y,K=>t(18,r=K));let g=c.ui.episodes.openedByKeyboard$;V(i,g,K=>t(17,o=K));let T=c.ui.episodes.panelOpened$;V(i,T,K=>t(4,n=K));let k=c.ui.isMobile;V(i,k,K=>t(7,s=K));let D,I=K=>{if(!!c.callbacks?.onEpisodeClicked){let H=Br(K);g.set(H),T.set(!0),c.callbacks?.onEpisodeClicked?.(H)}},C=null,P=0,G="",x,O,$=async(K,ee,H)=>{await fn(),K?.getAttribute("aria-expanded")==="false"&&ee&&!H&&(g.set(!1),K.focus())};function le(K){D=K,t(1,D)}return i.$$set=K=>{"position"in K&&t(14,a=K.position),"duration"in K&&t(15,l=K.duration),"timeCodes"in K&&t(0,u=K.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&49152&&t(16,P=a/l),i.$$.dirty&98309){let K=wl(P,l,u);K?C?.time!==K.time&&(m(K),t(2,C=K)):t(2,C=null)}i.$$.dirty&4&&t(3,G=C?.text||""),i.$$.dirty&262144&&(pi(r,"xl")?t(5,x="FULL"):pi(r,"m")&&Pm(r,"xl")?t(5,x="COUNT"):t(5,x="SHORT")),i.$$.dirty&8&&t(6,O=`${W("tooltip_episodes")}: ${G}`),i.$$.dirty&131090&&$(D,o,n)},[u,D,C,G,n,x,O,s,h,y,g,T,k,I,a,l,P,o,r,le]}var oc=class extends B{constructor(e){super(),N(this,e,v4,b4,R,{position:14,duration:15,timeCodes:0},d4)}},Tl=oc;var Ip=require("@vkontakte/videoplayer-shared");var Ji=require("@vkontakte/videoplayer-core"),ut=require("@vkontakte/videoplayer-shared"),ho=require("@vkontakte/videoplayer-statistics"),UE=require("@vkontakte/videoplayer-interactive");var li=require("@vkontakte/videoplayer-shared");var Zm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var y4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Il=class{constructor(e,t){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new li.Subject,loadStarted$:new li.Subject,loadEnded$:new li.Subject,loadError$:new li.Subject,ready$:new li.Subject,slotRequested$:new li.Subject,started$:new li.Subject,timeRemained$:new li.Subject,paused$:new li.Subject,resumed$:new li.Subject,ended$:new li.Subject,empty$:new li.Subject,skipped$:new li.Subject,clicked$:new li.Subject,closed$:new li.Subject,error$:new li.Subject};this.loadAdman=e=>this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e);this.loadAdmanMailRu=e=>new Promise((t,n)=>{let o;this.events.loadStarted$.next();let r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?(t(),this.events.loadEnded$.next()):n()};(0,li.addScript)(y4,e,this.loadTimeout).then(()=>{window.AdmanHTML?(t(),this.events.loadEnded$.next()):(window.admanAsyncInit=r,o=window.setTimeout(r,this.initTimeout))}).catch(()=>{n(),clearTimeout(o)})});this.loadAdmanNPM=e=>new Promise((t,n)=>{let o;this.events.loadStarted$.next();let r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?(t(),this.events.loadEnded$.next()):n()},s=()=>{a=!0,n()},a=!1,l=window.setTimeout(s,this.loadTimeout);e.addEventListener("abort",s),e.aborted&&s(),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{a||(window.AdmanHTML?(t(),this.events.loadEnded$.next()):(window.admanAsyncInit=r,o=window.setTimeout(r,this.initTimeout)))},s).finally(()=>{clearTimeout(o),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,t)=>{this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(t)}`}),this.events.started$.next(e),t.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),qe(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch{this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{this.log({message:"ad clicked"}),this.videoElement?.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout,this.runtimeTimeout=t.runtimeTimeout,this.useAdmanFromNPM=t.useAdmanFromNPM}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){if(this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:t,height:n,isFullscreen:o,isAutoplay:r,adsContainer:s,adsVideoElement:a,slotId:l,params:u={},duration:c,previewParam:m}=e,h,y=this.playerState&&qe(this.playerState.vsid);y&&(h=parseInt(y,36));let g={dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:Zm(t,n),puid11:o?0:1,preview:m,...h?{request_id:h}:{},duration:c,...u};m||delete g.preview;let T={slot:l,wrapper:s,videoEl:a,videoQuality:n,params:g,browser:{mobile:!1}};try{let k=new window.AdmanHTML;k.setDebug(!1),k.onReady(this.onAdsReady),k.onStarted(this.onAdStarted),k.onPlayed(this.onAdPlayed),k.onPaused(this.onAdPaused),k.adMidrollPoint(this.onAdMidrollPoint),k.onClosed(this.onAdClosed),k.onSkipped(this.onAdSkipped),k.onClicked(this.onAdClicked),k.onTimeRemained(this.onAdTimeRemained),k.onCompleted(this.onAdCompleted),k.onError(this.onAdError),k.init(T),this.adman=k,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(T)}`})}catch{this.onAdError("could not init adman")}}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let t=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${t}`}),t&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let n="Switch to video: Adman state was not updated correctly";this.log({message:n}),this.events.error$.next(n)}this.actions.switchFromAdsToVideo?.(!t)}}togglePlay(){if(this.adsState){this.log({message:"toggle play"});let e=qe(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){if(this.log({message:`set volume ${e}`}),this.adman)try{this.adman.setVolume(e)}catch{this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch{this.onAdError("could not set ad fullscreen")}}startPreroll(){if(this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch{this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){if(this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch{this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){if(this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch{this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){if(this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch{this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){if(this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch{this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,t){this.adman?.setPosition(Math.floor(e),Math.floor(t))}destroy(){this.log({message:"destroy"}),this.stopWatchDog(),this.adman?.destroy(),this.videoElement&&(0,li.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var Xm=i=>{let e=Math.round(i);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var rc=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,t){let n=[],o=e.split(this.twoLinesRegExp);for(let r of o){let s={startTime:0,endTime:0,texts:[],lang:t},a=r.split(this.oneLineRegExp);for(let l of a)if(!s.startTime&&!s.endTime){let u=new Pl,{startTime:c,endTime:m}=u.parse(l);s.startTime=c,s.endTime=m}else if(l.trim()!==""){let u=new sc,{texts:c}=u.parse(l);s.texts=[...s.texts,...c]}(s.startTime||s.endTime)&&s.texts.length>0&&n.push(s)}return n}},Pl=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let t={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(t.startTime=this.calcTime(n[1],n[2],n[3],n[4]),t.endTime=this.calcTime(n[6],n[7],n[8],n[9])),t}parseTime(e){let t=this.timeRegExp.exec(e);return t?this.calcTime(t[1],t[2],t[3],t[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",t="0",n="0",o="0"){let r=Number(e)*60*60,s=Number(t)*60,a=Number(n),l=+`0.${o}`;return r+s+a+l}},sc=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](s){let a=0,l=[];for(;a<s.length;){let u=["<",">"].reduce((c,m)=>{let h=s.indexOf(m,a);return c===-1||c>h?h:c},-1);if(u===-1){l.push(s.substring(a));break}l.push(s.substring(a,u)),a=u+1}return l}}),r=new Pl;for(let s of o)r.isTime(s)?t.texts.push({type:"timestamp",value:r.parseTime(s)}):t.texts.push({type:"text",value:s});return t}},Jm=rc;var Al=require("@vkontakte/videoplayer-shared"),pr,zn,lc=0,ac=!1,$m="",ep=(i,e=0,t=0)=>i<e&&i<t,El=(i,e=0,t=0)=>i>=e&&i<=t,k4=(i,e=0,t=0)=>i>e&&i>t,tp=(i,e,t,n=!1)=>{let o=t.find(({id:a})=>a===e.value)?.subtitles;if(n)return o?.find(({startTime:l,endTime:u})=>El(i,l,u));let r=i>=lc,s=i<lc;if(lc=i,s&&(ac=!1),(0,Al.isNonNullable)(pr)&&El(i,pr.startTime,pr.endTime)&&$m===e.value)return pr;if(!(0,Al.isNonNullable)(zn)&&o?.length&&!ac){zn=o.find(({startTime:l,endTime:u})=>El(i,l,u)||r&&ep(i,l,u)),pr=void 0,!(0,Al.isNonNullable)(zn)&&o[o.length-1].endTime<i&&(ac=!0);return}else{if(El(i,zn?.startTime,zn?.endTime))return pr=zn,zn=void 0,$m=e.value,pr;(r&&k4(i,zn?.startTime,zn?.endTime)||s&&ep(i,zn?.startTime,zn?.endTime))&&(zn=void 0)}};var ip={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},w4={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},Ml=i=>ip[i]??ip[w4[i]]??void 0;var np=require("@vkontakte/videoplayer-shared"),DE=require("@vkontakte/videoplayer-statistics"),Ll=class{constructor(e,t=new np.Subscription){this.oneStat=e;this.statSubscription=t}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var ks=(t=>(t.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",t.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",t))(ks||{});var _o=i=>i??0,Wr=(i,e)=>{let t=i?.getBoundingClientRect?.(),n=e?.getBoundingClientRect?.();return{top:Math.round(_o(t?.top)-_o(n?.top)),left:Math.round(_o(t?.left)-_o(n?.left)),bottom:Math.round(_o(t?.bottom)-_o(n?.top)),right:Math.round(_o(t?.right)-_o(n?.left))}},Kr=i=>{let e=i?.getBoundingClientRect?.();return{width:_o(e?.width),height:_o(e?.height)}};var op=({interfaceLanguage:i,isCyrillicRelatedInterface:e,videoId:t,isClip:n,isLiveCatchUpMode:o,statAuthToken:r,isAudioDisabled:s,canDownload:a,callbacks:l,webApi:u,videoEpisodes:c,previewThumbsData:m,uiConfig:h,coreConfig:y,player:g,disabledControls:T,isInteractive:k,interactiveRanges$:D,isInteractiveTime$:I,replayInteractive:C,stopPlayer:P,hasInteractiveBranches:G,playPrevChapterDisabledTooltip:x,additionalButtons:O,additionalSettingsMenuItems:$,additionalContextMenuItems:le,playPrevVideo:K,playNextVideo:ee,looped:H=!1,statistics:J,saveRate:ke,internalsExposure:q})=>{let ne={...y,configName:[...y.configName??[],"ui"],isAudioDisabled:s,live:{...y.live??{},isLiveCatchUpMode:!!o}},F=h,_e=ut.Tracer.createRootTracer(F.features.saveTraceInfoToFile),oe=_e.createComponentTracer("Store"),Q=g||new Ji.Player(ne,_e);q?.expose({corePlayer:Q});let Z=new ut.Logger,se=new Il(Z,{loadTimeout:F.ads.loadTimeout,initTimeout:F.ads.initTimeout,runtimeTimeout:F.ads.runtimeTimeout,useAdmanFromNPM:F.ads.useAdmanFromNPM}),Ze=lr.getInstance(),Je=u?.pictureInPictureApi,Pe=u?.annotationsApi,Se=Z.createComponentLog("Store"),Ae,We,X={},he=new qs,Ie=J?kt(J.oneStat.vsid$):qn(void 0),Ge=Ne(Fo()),tt=Je?.info.isActive$??new ut.ValueSubject(!1),it=Je?.info.type,rt=Ne(0),$e=Ne([]),pe=(0,ut.merge)(Q.events.fatalError$,Q.events.managedError$).subscribe(w=>$e.update(U=>[...U,w])),Ee=qn(!1,w=>{let U=Q.events.fatalError$.subscribe(()=>w(!0));return()=>U.unsubscribe()}),Me=async w=>{let U=Object.values(ut.InterfaceLanguage).includes(w);if(F.downloadVKLanguages&&(U&&F.updateBuiltinLanguages||!Fa(w))){let xe;try{xe=await(0,ut.loadVKLangPack)(w,bd,vd)}catch(ot){J?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),Ze?.report(ot,{errorType:"VKLangPack",fatal:!1})}xe&&(Oa({language:w,pack:xe,fallback:F.defaultLanguage}),Xe.set(w))}Fa(w)&&Xe.set(w)},Xe=Ne(i),Ye=Ne(e);Me(i);let Oe=(w,U)=>{let de=qe(Xe);return xa(de,w,U,F.defaultLanguage)},fe=Ne("thumb"),ct=(()=>{let w=Gt([Ee,fe],([U,de])=>U?"crashed":de);return{...w,is:U=>qe(w)===U}})(),ht=(()=>{let w=Ne(new Set(T));return{...w,add:U=>{w.update(de=>new Set([...de].concat(U)))},remove:U=>{w.update(de=>{let xe=[...de];return new Set(Array.isArray(U)?xe.filter(ot=>!U.includes(ot)):xe.filter(ot=>ot!==U))})},includes:U=>{let de=qe(w);return Array.isArray(U)?U.every(xe=>de.has(xe)):de.has(U)}}})();oe.log("create store"),Se({message:"create store"});let gt=w=>{let U=w.container;U.append(Q.experimental.element$.getValue()),Ht=new MutationObserver(de=>{let{removedNodes:xe}=de[0];xe.length&&U.append(Q.experimental.element$.getValue())}),Ht.observe(U,{childList:!0})},bt=w=>{Se({message:`init video, config: ${JSON.stringify(w)}`}),k?gt(w):Q.initVideo(w),oe.log("init video",{isInteractive:k}),w.subtitles&&Q.setExternalTextTracks(w.subtitles),Ae=w},Fe=new ut.Subject,wt=w=>Fe.next(w),Ot=new ut.Subject,Ut=new ut.Subject,Qt=new ut.Subject,Ht=null,lt={actionRewind$:Ot,actionSeek$:Ut,inPiP$:tt,inFullscreen$:new ut.Observable(w=>Ge.subscribe(U=>w.next(U))),actionSetSubtitle$:Qt,nextMovie$:Fe};if(J){let{oneStat:w,statSubscription:U}=J;k||U.add(w.attachTo(Q)),U.add(w.attachToUi(lt)),U.add(w.attachToAds(se.events)),w.authorize(r).catch(de=>{Se({message:`onestat auth error ${String(de)}`})})}if(Ze){let w=new ut.Subscription,U=(de,xe)=>w.add(de.subscribe(xe));if(U(Q.events.managedError$,de=>{Ze.logIError(de)}),U(Q.events.fatalError$,de=>{Ze.logIError(de,!0)}),J){let{oneStat:de}=J;U(de.experimental.error$,xe=>{Ze.logIError(xe)})}Ze.sentrySubscription.add(w)}let Tt=()=>{ut.clientChecker.isIOS&&We&&n1(We).catch(w=>{Se({message:`exitIosSafariFullscreen failed: ${w}`})})},Mt=new ut.Subscription().add(Q.experimental.element$.subscribe(w=>{w&&(We=w,w.classList.add("player-media"),ur(Je)&&(Je.updateVideoElement(),Je.registryEventHandlers()),k&&w.setAttribute("pip","false"))})).add(Q.events.ended$.subscribe(()=>{Tt(),l?.onEnded?.()})).add(Q.events.looped$.subscribe(()=>{l?.onLooped?.()})).add(Q.events.started$.subscribe(async()=>{ur(Je)&&await Je?.revealPictureInPicture();let w=Q.info.muted$.getValue();l?.onStarted?.(),X.onStarted?.(w)})).add(Q.events.willSeek$.subscribe(({from:w,to:U})=>{l?.onSeek?.(w,U)})).add(Q.events.autoplaySoundProhibited$.subscribe(()=>{l?.onAutoplaySoundProhibited?.()})).add(Q.info.position$.subscribe(w=>{let U=Q.info.duration$.getValue();isFinite(U)&&U>0&&(l?.onTimeupdate?.(U,w),se.setPosition(w,U))})).add(Q.events.fatalError$.subscribe(()=>{l?.onCrashed?.()})).add(Q.events.loadedMetadata$.subscribe(()=>{ft.state.loadedMetadata$.set(!0)})).add(Q.info.is3DVideo$.subscribe(w=>{ft.ui.is3DVideo.set(w)})).add(Q.info.isEnded$.subscribe(w=>{k&&(w?(I?.getValue()&&ht.add(xs),ht.add("PLAY_BUTTON")):ht.remove("PLAY_BUTTON"))})).add(Q.info.liveTime$.subscribe(w=>{l?.onLiveTime?.(w)})).add(Q.info.isStalled$.subscribe(w=>{l?.onStalledChanged?.(w)})).add(Q.info.isLiveEnded$.subscribe(w=>w&&l?.onLiveEnded?.())).add(se.events.loadStarted$.subscribe(()=>l?.adsInfo?.onLoadStarted?.())).add(se.events.loadEnded$.subscribe(()=>l?.adsInfo?.onLoadEnded?.())).add(se.events.loadError$.subscribe(()=>l?.adsInfo?.onLoadError?.())).add(se.events.init$.subscribe(()=>l?.adsInfo?.onInit?.())).add(se.events.ready$.subscribe(()=>l?.adsInfo?.onReady?.())).add(se.events.started$.subscribe(w=>l?.adsInfo?.onStarted?.(w))).add(se.events.timeRemained$.subscribe(w=>l?.adsInfo?.onTimeRemained?.(w))).add(se.events.ended$.subscribe(w=>l?.adsInfo?.onCompleted?.(w))).add(se.events.empty$.subscribe(()=>l?.adsInfo?.onEmpty?.())).add(se.events.clicked$.subscribe(w=>l?.adsInfo?.onClicked?.(w))).add(se.events.closed$.subscribe(w=>l?.adsInfo?.onClosed?.(w))).add(se.events.error$.subscribe(w=>l?.adsInfo?.onError?.(w))).add(se.events.paused$.subscribe(()=>l?.adsInfo?.onPaused?.())).add(se.events.resumed$.subscribe(()=>l?.adsInfo?.onResumed?.())),Lt=new ut.Subscription,yi=()=>{Lt.add(Q.events.log$.subscribe(w=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${w.component}`,w.message)})).add(Z.log$.subscribe(w=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${w.component}.`,w.message)}))},Kt=()=>{Lt.unsubscribe()},ye=(w,U)=>{oe.log("start camera manual rotation",{mx:w,my:U}),Q.startCameraManualRotation(w,U)},Ft=(w=!1)=>{oe.log("stop camera manual rotation",{immediate:w}),Q.stopCameraManualRotation(w)},Rt=(w,U,de)=>{oe.log("move camera focus px",{xpx:w,ypx:U,dt:de}),Q.moveCameraFocusPX(w,U,de)},Zt=()=>{Q.holdCamera()},xt=()=>{Q.releaseCamera()},Pt=qn(Q.info.position$.getValue(),w=>{let U,de,xe=()=>{let ot=Q.info.playbackState$.getValue(),Ct=Q.info.isLive$.getValue(),St=Q.info.duration$.getValue(),Et=Q.info.position$.getValue();if([Ji.PlaybackState.PLAYING,Ji.PlaybackState.PAUSED].includes(ot)){let Zi=Ct?Et-St:Q.getExactTime();Zi!==de&&w(Zi),de=Zi}U=requestAnimationFrame(xe)};return xe(),()=>cancelAnimationFrame(U)}),Vt=kt(tt),ki=kt(Q.info.playbackState$),oi=kt(Q.info.currentBuffer$),wi=kt(Q.info.isEnded$),Li=kt(Q.info.isLive$),ui=F.features.playbackRate?kt(Q.info.canChangePlaybackSpeed$):qn(!1),_i=kt(Q.info.liveBufferTime$),hi=kt(Q.info.volume$),Bt=kt(Q.info.muted$),Fi=Aa(Q.info.autoQualityLimits$.pipe((0,ut.map)(({max:w})=>w!==void 0)),Q.info.autoQualityLimits$.getValue()?.max!==void 0),Nt=kt(Q.info.autoQualityLimitingAvailable$),Yt=kt(Q.info.availableQualities$),xi=kt(Q.info.availableQualitiesFps$),Ci=kt(Q.info.chromecastState$),Si=kt(Q.info.chromecastDeviceName$),Ti=kt(Q.info.currentFormat$),ge=kt(Q.info.throughputEstimation$),pt=kt(Q.info.videoBitrate$),Hi=kt(Q.info.intrinsicVideoSize$),pn=kt(Q.info.duration$),gi=kt(Q.info.isAudioAvailable$),ci=null,fi=Q.info.isBuffering$,bi=qn(fi.getValue(),w=>{let U=fi.subscribe(de=>{de&&ci===null?ci=window.setTimeout(()=>{w(fi.getValue()),ci=null},F.loaderDelay):w(de)});return()=>{U.unsubscribe(),ci&&clearTimeout(ci)}}),wn=()=>{ci&&clearTimeout(ci),ci=null},qi=Gt([pn,Li],([w,U])=>U?-w:w),_n=Gt([ki],([w])=>w===Ji.PlaybackState.PLAYING),ri=kt(Q.info.atLiveEdge$),Ri=kt(Q.info.atLiveDurationEdge$),Ui=kt(Q.info.position$),$i=Gt([Ui,pn],([w,U])=>isFinite(w)&&isFinite(U)&&!!U),Vi=Gt([Ci],([w])=>w===Ji.ChromecastState.CONNECTED),hn=kt(Q.info.availableVideoStreams$),Xt=F.features.audioLanguages?kt(Q.info.availableAudioStreams$):qn([]),On=kt(Q.info.currentVideoStream$),Ii=kt(Q.info.currentAudioStream$),en=w=>{w.language&&Na(w.language),Q.setVideoStream(w)},tn=w=>{w.language&&Na(w.language),Q.setAudioStream(w)},nn=w=>{let U;if(w.length===1&&(U=w.at(0)),U??=w.find(xe=>"isDefault"in xe&&xe.isDefault),U)return U;let de=Gd();return de&&(U=w.find(({language:xe})=>de===xe)),U??=w.at(0),U},zi=!1;Mt.add(Q.info.availableAudioStreams$.subscribe(w=>{if(!zi&&w.length){let U=nn(w);U&&(Q.setAudioStream(U),zi=!0)}}));let Wi=!1;Mt.add(Q.info.availableVideoStreams$.subscribe(w=>{if(!Wi&&w.length){let U=nn(w);U&&(Q.setVideoStream(U),Wi=!0)}}));let Pi=Ne(void 0),vi=kt(Q.info.isAutoQualityEnabled$,w=>w&&Pi.set(void 0)),Bi=kt(Q.info.currentQuality$,()=>Pi.set(void 0)),Jt=Gt([Pi,Bi],([w,U])=>w??U),si=Gt([Yt,xi,vi,Jt,Ti],([w,U,de,xe,ot])=>{let Ct=[];ot!==Ji.VideoFormat.MPEG&&Ct.push({value:"auto",displayValue:Oe("auto_quality_option"),selected:de});let St=w.filter(Et=>!(0,ut.isInvariantQuality)(Et));for(let Et of St){let Zi=U[Et];Ct.push({value:Et,displayValue:`${Et}${Zi?Xm(Zi):""}`,selected:de?!1:Et===xe})}return Ct}),nt=kt(Q.info.currentPlaybackRate$),Ei=Gt([nt,ri,Ri],([w,U,de])=>{let xe=de||k?1:F.controls.playbackRateMin,ot=U?1:F.controls.playbackRateMax,Ct=F.controls.playbackRateStep,St=[];for(let Et=xe;Et<=ot;Et+=Ct)St.push({value:Et,displayValue:Et===1?Oe("playback_rate_1"):Oe("playback_rate",{multiplier:Et.toString(10)}),selected:w===Et});return St}),qt={displayValue:Oe("subtitles_off"),value:"off"},di=Ne({...qt}),Ai=F.features.subtitles?kt(Q.info.availableTextTracks$):qn([]),on=Bd(),gn=Gt([Ai,di],([w,U],de)=>{let xe=[],ot=w.find(({id:Ct})=>Ct===U.value);if(ot?.url){let[,Ct]=on.find(ot.url)??[];if(Ct){de(Ct);return}he.download(ot.url).then(St=>{if(!St||he.isDestroyed())return;let Et=new Jm,Zi=ot.language;if(Zi){let ka=!!ot.isAuto,qh=Et.parse(St,Zi);xe.push({lang:Zi,subtitles:qh,isAuto:ka,id:ot.id})}on.add(ot.url,xe),qe(di).value===U.value&&de(xe)}).catch(St=>{J?.oneStat?.logError({errorType:"Subtitles download",fatal:!1}),Ze?.report(St,{errorType:"Subtitles download",fatal:!1})})}de(xe)}),Mi=Gt([nt,_n,di],([w,U,de],xe)=>{let St;if(Q.info.isLive$.getValue()&&U&&de.value!==qt.value){let Zi=()=>{let ka=1e3/(3*w);St=setTimeout(Zi,ka),xe(Date.now())};return Zi(),()=>clearTimeout(St)}}),Ki=Gt([Ai,di],([w,U])=>{if(!w.length)return[];let de=[];for(let{language:xe,isAuto:ot,id:Ct}of w){let St=xe&&Ml(xe);xe&&St&&de.push({displayValue:ot?Oe("subtitles_auto",{language:St}):St,value:Ct,selected:U?.value===Ct,isAuto:ot})}return de.length?(de.unshift({...qt,selected:U?.value===qt.value}),de):[]}),$t={available:[],prev:[]},je=()=>Q.experimental.getCurrentTime$.getValue()?.()??We?.currentTime??0,bn=Gt([Pt,di,gn,Mi],([w,U,de,xe])=>{let ot=Q.info.isLive$.getValue();if(ot&&$t.prev!==de){let Ct=de.find(({id:Et})=>Et===U.value),St=$t.prev.find(({id:Et})=>Et===U.value);if(Ct){let Et={...Ct,subtitles:[...St?.subtitles??[],...Ct.subtitles]};$t.available=[Et],$t.prev=de}}if(U&&U.value!==qt.value){let Ct=ot?je():w,St=ot?$t.available:de;return tp(Ct,U,St,ot)}}),rn=Gt([bn],([w])=>w?.texts?w.texts:[]),ji=Ne(!0),sn=Gt([oi,qi,Ui,_i],([w,U,de,xe])=>{let ot=w?.end??0;if(!xe)return ot/U;let St=-de+xe-U;return(ot-St)/U}),Gi=kt(Q.info.availableSources$),Yi=Gt([Gi],([w])=>Object.keys(w?.[Ji.VideoFormat.MPEG]||{}).length>0),Kn=()=>{let w=Object.keys(Q.info.availableSources$?.getValue()?.[Ji.VideoFormat.MPEG]||{}),U=(0,ut.getHighestQuality)(w)||ut.VideoQuality.Q_144P;return Ae.sources[Ji.VideoFormat.MPEG]?.[U]},Fn=()=>{let w=Kn();if(w)oe.log("download video",{url:w}),Ld(w,Ae?.meta?.title||"video");else{let U="There is no URL for download video";oe.log("download video",{message:U}),Se({message:U})}},mi=()=>{Se({message:"toggle muted"});let w=Q.info.muted$.getValue(),U=Q.info.volume$.getValue(),de=U===0||w,xe=!de;oe.log("toggle muted",{muted:w,volume:U,soundIsOff:de,nextValue:xe}),yn(xe)},xn=()=>{if(ft.ui.settingsMenu.visible$.set(!1),!qe(ft.ui.settingsSubMenu.visible$)){let w=qe(ft.ui.settingsMenu.ref$);if(l?.uiInfo?.onSettingsMenu&&w){let de=Kr(w),xe={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:de,position:xe,name:"settings"})}}oe.log("close settings menu")},vn=async(w,U=()=>Promise.resolve())=>{ft.ui.settingsMenu.openedByBtnKeyboard$.set(!!w),ft.ui.settingsMenu.visible$.set(!0),await U();let de=qe(ft.ui.settingsMenu.ref$),xe=No();if(l?.uiInfo?.onSettingsMenu&&de&&xe){let Ct=Kr(de),St=Wr(de,xe);l.uiInfo.onSettingsMenu({visible:!0,size:Ct,position:St,name:"settings"})}oe.log("open settings menu",{wasOpenedByKeyboard:w})},Cn=(w,U=!1)=>{ft.ui.settingsSubMenu.visible$.set(!1);let de=qe(ft.ui.settingsMenu.ref$),xe=No(),ot=qe(ft.ui.settingsMenu.visible$);if(l?.uiInfo?.onSettingsMenu&&de&&xe)if(ot&&!U){let St=Kr(de),Et=Wr(de,xe);l.uiInfo.onSettingsMenu({visible:!0,size:St,position:Et,name:"settings"})}else{let St=Kr(w),Et={top:0,left:0,bottom:0,right:0},Zi=qe(ft.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:St,position:Et,name:Zi})}oe.log("close settings sub menu")},Sn=(w,U)=>{ft.ui.settingsSubMenu.visible$.set(!0),ft.ui.settingsSubMenu.ref$.set(U),ft.ui.settingsSubMenu.name$.set(w);let de=No();if(l?.uiInfo?.onSettingsMenu&&U&&de){let ot=Kr(U),Ct=Wr(U,de);l.uiInfo.onSettingsMenu({visible:!0,name:w,size:ot,position:Ct})}oe.log("open settings sub menu",{name:w})},ln=(w,U=w,de=!1)=>{let xe=!de,ot=Q.info.muted$.getValue();Se({message:`set volume, volume: ${w}, preferredVolume: ${U}, internalCall: ${xe}`}),oe.log("set volume",{volume:w,preferredVolume:U,internalCall:xe}),Q.setVolume(w),se.setVolume(w),xe&&l?.onVolumeChange?.(w),La(U),ot?(Q.setMuted(!1),xe&&l?.onUnmute?.(),zs(!1)):!ot&&w===0&&(Q.setMuted(!0),xe&&l?.onMute?.(),zs(!0))},yn=(w,U=!1)=>{let de=!U,xe=Q.info.volume$.getValue();if(Se({message:`set muted, currentVolume: ${xe}, mute: ${w}, internalCall: ${de}`}),oe.log("set muted",{mute:w,currentVolume:xe,internalCall:de}),Q.setMuted(w),se.setVolume(w?0:xe),zs(w),de&&(w?l?.onMute?.():l?.onUnmute?.()),xe===0){let ot=Us()??F.volumeDefault;ot===0&&(ot=F.volumeMinRestore,La(ot)),Q.setVolume(ot),se.setVolume(ot),de&&l?.onVolumeChange?.(ot)}},Ni=Ne(!1),Qi=w=>{oe.log("set looped",{isLooped:w}),Ni.set(w),Q.setLooped(w)};Qi(H);let Hn=()=>{l?.uiInfo?.onReportProblem?.()},to=(w,U=!1)=>{Se({message:`set autoplayNextEnabled, value: ${w}`}),oe.log("set autoplay next enabled",{autoplayNextEnabled:w}),ft.ui.autoplayNextEnabled$.set(w),Zd(w),U&&l?.onSetAutoplayNextEnabled?.(w)},io=w=>{Se({message:`set timerNextVideoRunning, value: ${w}`}),oe.log("set timer next video running",{timerNextVideoRunning:w}),ft.ui.timerNextVideoRunning$.set(w)},ei=(w=!0)=>{let U=!0;if(w&&l?.onPrevVideoClick)try{U=l?.onPrevVideoClick?.()}catch{Se({message:"onPrevVideoClick callback failed to execute"})}U&&K()},no=(w=!0)=>{let U=!0;if(w&&l?.onNextVideoClick)try{U=l?.onNextVideoClick?.()}catch{Se({message:"onNextVideoClick callback failed to execute"})}U&&ee()},oo=()=>{l?.onNextVideoAnnouncementClick?.()},jn=()=>{l?.onNextVideoAnnouncementAuto?.()},ro=()=>{l?.onNextVideoAnnouncementCancel?.()},so=()=>{Q.prepare()},Gn=()=>{(0,ut.assertNonNullable)(ft);let w=qe(ft.ui.controls.disabledControls$),U=qe(ft.playerPhase),de={playerPhase:U,isInteractive:k,isVideoEnded:!1,action:"none"};if(w.has("PLAY_BUTTON"))return;if(Se({message:"toggle play"}),U==="ads"){de.action="play",oe.log("toggle adman play",de),se.togglePlay();return}let xe=()=>{Se({message:"toggle play, call player.play"}),de.action="play",Q.play(),l?.onPlay?.()},ot=()=>{Se({message:"toggle play, call player.pause"}),de.action="pause",Q.pause(),l?.onPause?.()};if(Q.info.isEnded$.getValue()){if(Se({message:"toggle play, video ended, seek to 0"}),Ot.next(),Ut.next(ho.SeekAction.REWIND),k){C?.();return}Q.seekTime(0),xe()}else Q.info.playbackState$.getValue()!==Ji.PlaybackState.PLAYING?xe():ot();oe.log("toggle play",de)},Yn=w=>{Se({message:`set quality, quality: ${w}`}),oe.log("set quality",{quality:w}),Q.setAutoQuality(w==="auto"),w!=="auto"?(Ud(t,w),Pi.set(w),Q.setQuality(w)):Ra()},Tn=w=>{Se({message:`set trafficSavingEnabled, value: ${w}`}),oe.log("set traffic saving enabled",{trafficSavingEnabled:w}),Q.setAutoQualityLimits({max:w?F.trafficSavingLimit:void 0}),Kd(w)},Qn=w=>{oe.log("set playback rate",{playbackRate:w}),Q.setPlaybackRate(w),F.features.saveRate&&ke&&!Q.info.isLive$.getValue()&&Yd(w)},go=()=>{let w=qe(Ei),U=w.findIndex(({selected:xe})=>xe);if(U===w.length-1)return;let de=w[U+1];Qn(de.value)},bo=()=>{let w=qe(Ei),U=w.findIndex(({selected:xe})=>xe);if(U===0)return;let de=w[U-1];Qn(de.value)},Di=(w={...qt,selected:!1})=>{oe.log("set subtitles",{...w}),w&&w.value!==qt.value&&Qt.next(w.isAuto?w.value+"_auto":w.value),di.set(w)},ie=()=>{oe.log("toggle subtitles");let w=qe(Ki),U=qe(di),de=qe(Xe);if(U?.value===qt.value){let xe=w.filter(ot=>ot.value!==qt.value).find(ot=>ot.value===de)||w[1];Di(xe)}else Di()},vt=(w,U,de=!0)=>{if(Se({message:`seek to time, time: ${w}`}),oe.log("seek to time",{time:w,action:U,forcePrecise:de}),Ut.next(U),Q.info.isLive$.getValue()){let xe=Q.info.duration$.getValue(),ot=Math.min(0,xe+w);Q.seekTime(ot,de)}else{if(I?.getValue())return;Q.info.isEnded$.getValue()&&(Se({message:"seek after ended, call callbacks.onPlay"}),l?.onPlay?.()),Q.seekTime(cn(w),de)}},te=w=>{Se({message:`seek to episode start time: ${w}`}),oe.log("seek to episode start time",{time:w}),vt(w,ho.SeekAction.EPISODE,!0)},In=(w,U)=>{Se({message:`seek to percent, percent: ${w}`}),oe.log("seek to percent",{percent:w,action:U});let de=qe(qi)*w;vt(de,U,!1)},ts=w=>{Se({message:`seek external, time: ${w}`}),oe.log("seek external",{time:w}),Ut.next(ho.SeekAction.UNKNOWN),Q.seekTime(Q.info.isLive$.getValue()?-w:w)},is=w=>{let U=w.max??"none",de=w.min??"none";Se({message:`set auto quality limitation. Max: ${U}. Min: ${de}`}),oe.log("set auto quality limits",{max:U,min:de}),Q.setAutoQualityLimits(w)},br=w=>{Se({message:`seek external to episode start time: ${w}`}),oe.log("seek external to episode start time",{time:w}),vt(w,ho.SeekAction.EPISODE,!0)},Go=w=>{Se({message:`set playback rate to: ${w}`}),oe.log("set playback rate external",{playbackRate:w}),Q.setPlaybackRate(w)},lo=Ne(void 0),Ao=Ne(!1),Mo=w=>{Se({message:`start scrubbing, progress: ${w}`}),oe.log("start scrubbing",{progress:w}),Ao.set(!0),Zn(w)},Zn=w=>{lo.set(w)},ao,Pn,Xn=()=>{lo.set(void 0),Ao.set(!1)},uo=()=>{clearTimeout(Pn),clearTimeout(ao),ao=window.setTimeout(()=>{Xn()},500),We?.removeEventListener("seeked",uo)},Yo=w=>{Se({message:`complete scrubbing, progress: ${w}`}),oe.log("complete scrubbing",{progress:w}),In(w,ho.SeekAction.SLIDER),qe(ft.ui.isMobile)&&qe(ft.state.currentFormat$)===Ji.VideoFormat.HLS?(We?.addEventListener("seeked",uo),Pn=window.setTimeout(()=>{uo()},300)):Xn()},Qo=Gt([Pt,qi,lo],([w,U,de],xe)=>{xe((0,ut.isNonNullable)(de)?de*U:w)}),Lo=Ne({width:0,height:0}),vo=Gt([Lo],([{width:w}],U)=>{let de=Em(w);U(de)}),yo=Ne(!1),Ro=O.filter(w=>Rd(w)),Vo=Gt([vo,yo],([w,U])=>U?Ro.filter(de=>!de.hideOnMobile):Ro.filter(de=>!de.hideOnDesktopGridTypes?.includes(w))),En=Ne(O.filter(w=>Vd(w))),Zo=Gt([En,vo],([w,U])=>w.filter(de=>!de.hideOnDesktopGridTypes?.includes(U))),vr=Gt([Zo,Vo],([w,U])=>[...F.features.additionalButtonsDesktopControlPanelRight?w.filter(de=>de.type==="desktop-control-panel-right"):[],...F.features.additionalButtons?U.map((de,xe)=>({id:xe,weight:xe,type:"desktop-control-panel-right",testId:de.testId,icon:de.iconUrl,onClick:de.onClick,ariaLabel:de.ariaLabel??de.tooltip,tooltipText:de.tooltip})):[]]),An=Ne($),Y=Gt([An],([w])=>F.features.additionalSettingsMenuItems?w.map(U=>U.type==="SWITCH"?{...U,onClick:U.onChangeEnabled}:U):[]),Dt=(w,U)=>{let de=qe(En).map(xe=>xe.id!==w?xe:{...xe,...U});En.set(de)},an=w=>{let U=qe(En);if(U.some(de=>de.id===w.id)){Se({message:`Additional button with id: "${w.id}" was exist! Can't add more with the same id`});return}U.push(w),En.set(U)},kn=w=>{let U=qe(En);if(!U.some(de=>de.id===w)){Se({message:`Can't find additional button with id: "${w}"! Can't remove item with this id`});return}U=U.filter(de=>de.id!==w),En.set(U)},Xo=w=>{Ut.next(ho.SeekAction.LIVE),Se({message:"live switch to low latency "+w}),oe.log("live switch to low latency "+w),Q.setLiveLowLatency(w)},Jo=(w,U)=>{let de=qe(An).map(xe=>xe.id!==w?xe:{...xe,...U});An.set(de)},co=w=>{let U=qe(An);if(U.some(de=>de.id===w.id)){Se({message:`Settings menu item with id: "${w.id}" was exist! Can't add more with the same id`});return}U.push(w),An.set(U)},ns=w=>{let U=qe(An);if(!U.some(de=>de.id===w)){Se({message:`Can't find settings menu item with id: "${w}"! Can't remove item with this id`});return}U=U.filter(de=>de.id!==w),An.set(U)},Mn=Ne(le),Bo=Gt([Mn],([w])=>F.features.additionalContextMenuItems?w:[]),os=(w,U)=>{let de=qe(Mn).map(xe=>xe.id!==w?xe:{...xe,...U});Mn.set(de)},rs=w=>{let U=qe(Mn);if(U.some(de=>de.id===w.id)){Se({message:`Context menu item with id: "${w.id}" was exist! Can't add more with the same id`});return}U.push(w),Mn.set(U)},ss=w=>{let U=qe(Mn);if(!U.some(de=>de.id===w)){Se({message:`Can't find context menu item with id: "${w}"! Can't remove item with this id`});return}U=U.filter(de=>de.id!==w),Mn.set(U)},zt=Gt([yo,Ee],([w,U],de)=>{de(w&&U)}),Ln=()=>{Ut.next(ho.SeekAction.LIVE),Se({message:"switch to active live"}),oe.log("switch to active live"),Q.seekTime(0),Q.info.playbackState$.getValue()!==Ji.PlaybackState.PLAYING&&ft.actions.internal.togglePlay()},$o=()=>{oe.log("skip adman"),se.skip()},ls=(w=!0)=>{(0,ut.assertNonNullable)(ft),Se({message:`switch from ads to video, callPlay: ${w}`}),oe.log("switch from ads to video",{callPlay:w}),fe.set("video"),w&&Q.play()},Ms=()=>{(0,ut.assertNonNullable)(ft),Se({message:"switch from video to ads"}),oe.log("switch from video to ads"),ft.actions.internal.pause(),Tt(),fe.set("ads")},fa=w=>{(0,ut.assertNonNullable)(ft);let U=w?"LiveWaitingStart":"thumb";oe.log("set live waiting start",{state:w,playerPhase:U}),fe.set(U)},da=w=>{(0,ut.assertNonNullable)(ft);let U=w?"LiveWaitingRecover":"thumb";oe.log("set live waiting recover",{state:w,playerPhase:U}),fe.set(U)},as=w=>{(0,ut.assertNonNullable)(ft);let U=w?"LiveWaitingRecord":"thumb";oe.log("set live waiting record",{state:w,playerPhase:U}),fe.set(U)},ma=()=>((0,ut.assertNonNullable)(ft),oe.log("get debug text data"),Ad(Q,Ae,ft)),pa=()=>((0,ut.assertNonNullable)(ft),JSON.stringify(_e.getFinishedSpans())),_a=()=>((0,ut.assertNonNullable)(ft),Md(Q,Ae,ft)),No=()=>We,us=()=>{Se({message:"toggle chromecast"}),oe.log("toggle chromecast"),Q.toggleChromecast()},yr=w=>{if((0,ut.assertNonNullable)(ft),Q.info.isEnded$.getValue())return;let U=!w;if(qe(ft.playerPhase)==="ads"){Se({message:`pause ads, internalCall: ${U}`}),oe.log("pause ads",{internalCall:U}),se.pause();return}Se({message:`pause video, internalCall: ${U}`}),oe.log("pause video",{internalCall:U}),U&&l?.onPause?.(),Q.pause()},un=w=>{(0,ut.assertNonNullable)(ft);let U=!w;if(qe(ft.playerPhase)==="ads"){Se({message:`play ads, internalCall: ${U}`}),oe.log("play ads",{internalCall:U}),se.play();return}Se({message:`play video, internalCall: ${U}`}),oe.log("play video",{internalCall:U}),U&&l?.onPlay?.(),Q.play()},Rn=w=>{(0,ut.assertNonNullable)(ft);let U=!w;if(qe(ft.playerPhase)==="ads"){Se({message:"player cannot be stopped during ads via external method"});return}Se({message:`player will be stopped, internalCall: ${U}`}),P?.()},Ls=(w,U)=>{(0,ut.assertNonNullable)(ft),Se({message:`first start, show ads: ${w}, internalCall: ${!U}`}),oe.log("first start",{showAds:w,external:U}),w?fe.set("ads"):(fe.set("video"),U?Q.play():ft.actions.internal.togglePlay())},cs=()=>(Se({message:"getting time codes"}),c),Rs=()=>{let w=cs();if(!w||[0,1].includes(w.length))return;let U=Q.info.position$.getValue();return w.find(de=>de.time>U)},ha=w=>{let U=w;U||(U=Rs());let de=Q.info.position$.getValue();oe.log("seek to next episode",{currentTime:de,...U}),U&&(Se({message:"seek to next episode"}),vt(U.time,ho.SeekAction.EPISODE,!0))},Vs=()=>{let w=cs();if(!w||[0,1].includes(w.length))return;let U=Q.info.position$.getValue(),de=w.findIndex(ot=>ot.time>U),xe=de===-1?w.length-2:de-2;if(!(xe<0))return w[xe]},ga=w=>{let U=w;U||(U=Vs());let de=Q.info.position$.getValue();oe.log("seek to prev episode",{currentTime:de,...U}),U&&(Se({message:"seek to prev episode"}),vt(U.time,ho.SeekAction.EPISODE,!0))},ba=()=>(Se({message:"getting preview thumbs data"}),oe.log("get preview thumbs data",{...m}),m),va=async()=>{let w=Je?.isActive(),U="none";Je?.isActive()?(U="remove",await Je?.remove()):(U="request",await Je?.request()),oe.log("toggle picture in picture",{isActive:w,action:U})},ya=(w=-90)=>{oe.log("rotate video",{alphaDiff:w}),rt.update(U=>U+w)},kr=Ne([]);D?.subscribe(w=>{let U=[];for(let de=0;de<w.length;de++){let{range:[xe,ot],subjects:Ct}=w[de];de===0&&xe!==0&&U.push({time:0,text:"",interactive:!1,completed:!0}),U.push({time:xe/1e3,text:"",interactive:!0,completed:!Ct.length}),ot!==1/0&&U.push({time:ot/1e3,text:"",interactive:!1,completed:!0})}kr.set(U)});let ce=Ne(!1);I?.subscribe(w=>{w&&qe(Ao)&&Xn()});let cn=w=>{if(!k)return w;let U=qe(kr),de=qe(qi),ot=qe(Ui)/de,Ct=U.find(St=>St.interactive&&!St.completed&&St.time>ot);return typeof Ct?.time=="number"?Math.min(w,Ct.time-.05):w},xh=()=>{ft.ui.episodes.panelOpened$.set(!1)},Hh=()=>{oe.log("destroy store"),clearTimeout(Pn),clearTimeout(ao),Mt.unsubscribe(),Lt.unsubscribe(),Q.destroy(),se.destroy(),J?.destroy(),Ze?.destroy(),pe.unsubscribe(),Ht?.disconnect(),Ht=null,he.destroy()},ft={interfaceLanguage$:Xe,isCyrillicRelatedInterface$:Ye,initVideo:bt,videoId:t,isClip:n,playerPhase:ct,vsid:Ie,state:{positionExact$:Pt,positionWithScrubbing$:Qo,duration$:qi,playbackState$:ki,isPlaying$:_n,isLoaderVisible:bi,bufferedProgress$:sn,isLive$:Li,canChangePlaybackSpeed$:ui,isActiveLive$:ri,isOldestAvailableLive$:Ri,isRewindableLive$:$i,isEnded$:wi,muted$:Bt,volume$:hi,trafficSavingEnabled$:Fi,autoQualityLimitingAvailable$:Nt,availableVideoStreams$:hn,availableAudioStreams$:Xt,videoStream$:On,audioStream$:Ii,currentQuality$:Jt,isAutoQualityEnabled$:vi,availableQualities$:si,currentPlaybackRate$:nt,availablePlaybackRates$:Ei,currentSubtitle$:di,availableTextTracks$:Ai,availableSubtitlesList$:Ki,currentSubtitleCaptions$:rn,isAutoSubtitleCaptionVisible$:ji,chromecastState$:Ci,chromecastDeviceName$:Si,chromecastConnected$:Vi,currentFormat$:Ti,throughputEstimation$:ge,videoBitrate$:pt,videoSize$:Hi,errorLog$:$e,crashed$:Ee,isAudioAvailable$:gi,isAudioDisabled:!!s,canDownload:F.features.download&&!!a,availableSources$:Gi,hasMpegSources$:Yi,isInteractive:k,showInteractiveGraph:F.features.interactiveGraph,showSeekToInteractive:F.features.seekToInteractive,showPlayPrevChapter:F.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:F.features.interactiveTimeIndicator&&!!qe(kr).length,interactiveEpisodes$:kr,isInteractiveTime$:I?kt(I):Ne(!1),graphIsOpened$:Ne(!1),isInteractiveExpectation$:ce,hasInteractiveBranches:G,playPrevChapterDisabledTooltip:x,looped$:Ni,loadedMetadata$:Ne(!1)},ui:{controlsVisible:Ne(!1),touched:Ne(!1),controls:{prevButton:Ne(void 0),playButton:Ne(void 0),replayButton:Ne(void 0),nextButton:Ne(void 0),playPrevChapterButton:Ne(void 0),seekToInteractiveButton:Ne(void 0),interactiveGraphButton:Ne(void 0),liveButton:Ne(void 0),time:Ne(void 0),episodes:Ne(void 0),volume:Ne(void 0),subtitles:Ne(void 0),settings:Ne(void 0),context:Ne(void 0),chromecast:Ne(void 0),pip:Ne(void 0),fullscreen:Ne(void 0),vkLogo:Ne(void 0),interactiveTimeIndicator:Ne(void 0),timeline:Ne(void 0),autoplayNextToggle:Ne(void 0),additionalButtons:O.length?O.reduce(w=>[...w,Ne(void 0)],[]):[],disabledControls$:ht},modals:{hotKeyMap:{show:Ne(!1),data:Ne({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ge,rotateAlpha:rt,isAutoplay:Ne(!1),debugPanelVisible:Ne(!1),episodes:{panelOpened$:Ne(!1),openedByKeyboard$:Ne(!1)},contextMenu:{visible$:Ne(!1),btnRef$:Ne(void 0),openedByBtnKeyboard$:Ne(!1),openedByHotKey$:Ne(!1),lastActiveElem$:Ne(void 0),showContextMenuBtn$:Ne(!1),position$:Ne({top:0,left:0})},playerSize:Lo,isMobile:yo,mobileNotReportControlHidden$:zt,mobileUnmuteButtonExpanded:Ne(!1),mobileUnmuteButtonVisible:Ne(!1),icon3DVideoVisible:Ne(!1),scrubbingInProgress:Ao,is3DVideo:Ne(!1),isPictureInPictureActive$:Vt,pictureInPictureType$:qn(it),currentGridType$:vo,additionalButtonsDeprecated$:Vo,additionalDesktopControlPanelRightButtons$:vr,additionalSettingsMenuItems$:Y,additionalContextMenuItems$:Bo,interactiveHideMobileControls:Ne(!1),overlayContainer$:Ne(void 0),startedByKeyboard$:Ne(!1),autoplayNextEnabled$:Ne(!1),timerNextVideoRunning$:Ne(!0),settingsMenu:{visible$:Ne(!1),ref$:Ne(void 0),openedByBtnKeyboard$:Ne(!1)},settingsSubMenu:{visible$:Ne(!1),ref$:Ne(void 0),name$:Ne(void 0)}},ads:{position:Ne(0),duration:Ne(0),playbackState:Ne("inactive"),canSkip:Ne(!1),secondsToWatchBeforeSkip:Ne(0),postrollPassed:Ne(!1)},webApi:{pictureInPictureApi:Je,annotationsApi:Pe},actions:{internal:{preload:so,firstStart:w=>Ls(w,!1),play:()=>un(!1),pause:()=>yr(!1),togglePlay:Gn,toggleMuted:mi,openSettingsMenu:vn,closeSettingsMenu:xn,openSettingsSubMenu:Sn,closeSettingsSubMenu:Cn,setVolume:ln,setVideoStream:en,setAudioStream:tn,setQuality:Yn,setTrafficSavingEnabled:w=>Tn(w),setPlaybackRate:Qn,incrementPlaybackRate:go,decrementPlaybackRate:bo,setSubtitle:Di,toggleSubtitle:ie,togglePictureInPicture:va,startScrubbing:Mo,progressScrubbing:Zn,completeScrubbing:Yo,toggleChromecast:us,switchToActiveLive:Ln,switchFromAdsToVideo:ls,switchFromVideoToAds:Ms,skipAd:$o,setLiveWaitingStart:fa,setLiveWaitingRecover:da,setLiveWaitingRecord:as,getDebugTextData:ma,getTraceTextData:pa,getDebugPanelData:_a,getVideoElement:No,seekTime:(w,U,de)=>vt(w,U,de),clearDelayedBufferingCheckTimeout:wn,seekEpisodeStartTime:te,seekToPercent:In,getNextEpisode:Rs,seekToNextEpisode:ha,getPrevEpisode:Vs,seekToPrevEpisode:ga,startLogging:yi,stopLogging:Kt,startCameraManualRotation:ye,stopCameraManualRotation:Ft,moveCameraFocusPX:Rt,holdCamera:Zt,releaseCamera:xt,getVideoEpisodes:cs,getPreviewThumbsData:ba,downloadVideo:Fn,addLanguage:Oa,setLanguage:Me,nextMovie:wt,videoRotate:ya,correctSeekTimeToInteractive:cn,replayInteractive:C,setLooped:Qi,reportProblem:Hn,setAutoplayNextEnabled:to,setTimerNextVideoRunning:io,prevVideoClick:ei,nextVideoClick:no,nextVideoAnnouncementClick:oo,nextVideoAnnouncementAuto:jn,nextVideoAnnouncementCancel:ro},external:{firstStart:w=>Ls(w,!0),play:()=>un(!0),pause:()=>yr(!0),stop:()=>Rn(!0),seekTime:w=>ts(w),seekEpisodeStartTime:w=>br(w),setPlaybackRate:w=>Go(w),setAutoQualityLimits:w=>is(w),setMuted:w=>yn(w,!0),setVolume:w=>ln(w,w,!0),returnFocusToEpisodes:xh,updateAdditionalSettingsItem:Jo,addAdditionalSettingsItem:co,removeAdditionalSettingsItem:ns,updateAdditionalContextItem:os,addAdditionalContextItem:rs,removeAdditionalContextItem:ss,updateAdditionalButton:Dt,addAdditionalButton:an,removeAdditionalButton:kn,setLiveLowLatency:Xo}},callbacks:l,setUiCallbacks:w=>{X={...w}},getAdmanWrapper:()=>se,getLogger:()=>Z,destroy:Hh};return ft};var Vl=(i,e,t,n)=>{if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"];for(let[s,a]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(s)){let l=t[s]?.getBoundingClientRect(),u=(n||r.includes(s))&&!!l&&!!(l.right-l.left),{top:c,left:m,bottom:h,right:y}=Wr(t[s],i);a.set({positionStartX:0,positionEndX:0,left:u?m:0,right:u?y:0,top:u?c:0,bottom:u?h:0,isDisplayed:u})}};var Bl=async(i,e,t)=>{await fn(),e&&t&&(t.focus(),i.set(!1))};function S4(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,l,l[1],n?Re(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function T4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var uc=class extends B{constructor(e){super(),N(this,e,T4,S4,R,{})}},rp=uc;function I4(i){let e,t;return e=new rp({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function P4(i){let e,t,n;function o(s){i[8](s)}let r={className:i[3]?"opened":"",testId:"btn-context-menu",disabled:i[0],ariaLabel:i[1],click:i[5],focus:i[6],blur:i[7],ariaExpanded:i[3],$$slots:{default:[I4]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new dt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&8&&(l.className=s[3]?"opened":""),a&1&&(l.disabled=s[0]),a&2&&(l.ariaLabel=s[1]),a&8&&(l.ariaExpanded=s[3]),a&16384&&(l.$$scope={dirty:a,ctx:s}),!t&&a&4&&(t=!0,l.ref=s[2],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function E4(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,s=et(),a=s.ui.contextMenu.visible$;V(i,a,D=>t(3,n=D));let l=s.ui.contextMenu.openedByBtnKeyboard$,u=s.ui.contextMenu.showContextMenuBtn$,c=s.ui.contextMenu.position$,m=s.ui.contextMenu.btnRef$,h,y=D=>{let I=Br(D),C=w1(h);c.set(C),l.set(I),a.set(!n)},g=()=>{u.set(!0)},T=()=>{u.set(!1)};function k(D){h=D,t(2,h)}return i.$$set=D=>{"disabled"in D&&t(0,o=D.disabled),"ariaLabel"in D&&t(1,r=D.ariaLabel)},i.$$.update=()=>{i.$$.dirty&4&&h&&m.set(h)},[o,r,h,n,a,y,g,T,k]}var cc=class extends B{constructor(e){super(),N(this,e,E4,P4,R,{disabled:0,ariaLabel:1})}},sp=cc;function A4(i){be(i,"svelte-od3veb",".interactive-episode-icon-animated.svelte-od3veb{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.interactive-episode-icon-animated.icon-small.svelte-od3veb{width:28px;height:28px}.invisible.svelte-od3veb{opacity:0;visibility:hidden}.fullscreen.svelte-od3veb:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.svelte-od3veb{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.svelte-od3veb{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb{top:40px;right:16px}}@keyframes svelte-od3veb-pulse{0%{transform:scale(1);border-width:1px;opacity:0}10%{opacity:1}50%{transform:scale(1.5);border-width:1px;opacity:0.5}100%{transform:scale(1.5);border-width:0.5px;opacity:0}}.pulse.svelte-od3veb{display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);animation:1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.svelte-od3veb{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.svelte-od3veb{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.svelte-od3veb{display:none}")}function M4(i){let e,t;return e=new bl({props:{completed:!0}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function L4(i){let e,t,n,o,r,s,a,l,u,c;function m(y){i[25](y)}let h={tooltipContent:W("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[6],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[15],$$slots:{default:[M4]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new Xi({props:h}),ve.push(()=>ze(t,"ref",m)),t.$on("click",i[16]),{c(){e=S("div"),M(t.$$.fragment),o=j(),r=S("div"),s=j(),a=S("div"),f(r,"class","ref-block svelte-od3veb"),z(r,"hidden",i[1]),f(a,"class","pulse svelte-od3veb"),z(a,"paused",i[5]),f(e,"class","interactive-episode-icon-animated svelte-od3veb"),z(e,"mobile",i[2]),z(e,"fullscreen",i[7]),z(e,"invisible",i[1]),z(e,"icon-small",i[4])},m(y,g){v(y,e,g),E(t,e,null),_(e,o),_(e,r),i[26](r),_(e,s),_(e,a),i[27](a),l=!0,u||(c=[Te(e,"mousemove",mt(i[24])),Te(e,"mouseleave",i[17])],u=!0)},p(y,g){let T={};g[0]&64&&(T.tooltipActive=y[6]),g[1]&8&&(T.$$scope={dirty:g,ctx:y}),!n&&g[0]&1&&(n=!0,T.ref=y[0],Ue(()=>n=!1)),t.$set(T),(!l||g[0]&2)&&z(r,"hidden",y[1]),(!l||g[0]&32)&&z(a,"paused",y[5]),(!l||g[0]&4)&&z(e,"mobile",y[2]),(!l||g[0]&128)&&z(e,"fullscreen",y[7]),(!l||g[0]&2)&&z(e,"invisible",y[1]),(!l||g[0]&16)&&z(e,"icon-small",y[4])},i(y){l||(d(t.$$.fragment,y),l=!0)},o(y){p(t.$$.fragment,y),l=!1},d(y){y&&b(e),A(t),i[26](null),i[27](null),u=!1,st(c)}}}function R4(i,e,t){let n,o,r,s,a,l,u,{ref:c=void 0}=e,m,h=et(),y=Nn(),{interactiveControlsOpacity$:g}=y;V(i,g,Z=>t(20,o=Z));let T=h.ui.isMobile;V(i,T,Z=>t(2,l=Z));let k=h.ui.isFullscreen;V(i,k,Z=>t(7,u=Z));let D=h.state.isInteractiveTime$;V(i,D,Z=>t(21,r=Z));let I=y.showInteractiveTimeIndicatorTooltip$;V(i,I,Z=>t(19,n=Z));let C=h.ui.controlsVisible;V(i,C,Z=>t(23,a=Z));let P=h.callbacks?.onInteractiveTimeIndicatorClick,G=h.ui.currentGridType$;V(i,G,Z=>t(22,s=Z));let x,O,$,le,K=()=>{t(5,le=!0)},ee=()=>{H(),m?.addEventListener("animationiteration",K,{once:!0})},H=()=>{t(5,le=!1),m?.removeEventListener("animationiteration",K)},J=Z=>{I.set(Z)},ke,q=()=>{$||(I.set(!0),P?.())};Vn(()=>{I.clearTimeout(),H()});let ne=()=>{I.set(!1)};function F(Z){Bn.call(this,i,Z)}function _e(Z){c=Z,t(0,c)}function oe(Z){ve[Z?"unshift":"push"](()=>{c=Z,t(0,c)})}function Q(Z){ve[Z?"unshift":"push"](()=>{m=Z,t(3,m)})}return i.$$set=Z=>{"ref"in Z&&t(0,c=Z.ref)},i.$$.update=()=>{i.$$.dirty[0]&8388612&&t(18,x=!l&&a),i.$$.dirty[0]&4194304&&t(4,O=zo(s,"s")),i.$$.dirty[0]&3407872&&t(1,$=!r||!!o||x),i.$$.dirty[0]&2&&t(5,le=$),i.$$.dirty[0]&524290&&t(6,ke=n&&!$),i.$$.dirty[0]&524288&&(n?ee():H())},[c,$,l,m,O,le,ke,u,g,T,k,D,I,C,G,J,q,ne,x,n,o,r,s,a,F,_e,oe,Q]}var fc=class extends B{constructor(e){super(),N(this,e,R4,L4,R,{ref:0},A4,[-1,-1])}},Nl=fc;function V4(i){let e,t,n,o=[i[2]??{}];var r=i[1];function s(a,l){let u={};for(let c=0;c<o.length;c+=1)u=re(u,o[c]);return l!==void 0&&l&4&&(u=re(u,He(o,[Oo(a[2]??{})]))),{props:u}}return r&&(e=At(r,s(i))),{c(){e&&M(e.$$.fragment),t=Qe()},m(a,l){e&&E(e,a,l),v(a,t,l),n=!0},p(a,l){if(l&2&&r!==(r=a[1])){if(e){ae();let u=e;p(u.$$.fragment,1,0,()=>{A(u,1)}),ue()}r?(e=At(r,s(a,l)),M(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}else if(r){let u=l&4?He(o,[Oo(a[2]??{})]):{};e.$set(u)}},i(a){n||(e&&d(e.$$.fragment,a),n=!0)},o(a){e&&p(e.$$.fragment,a),n=!1},d(a){a&&b(t),e&&A(e,a)}}}function B4(i){let e,t,n;function o(s){i[7](s)}let r={disabled:i[5],tooltipContent:i[3],disabledTooltipContent:i[4],className:i[6],$$slots:{default:[V4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Xi({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&32&&(l.disabled=s[5]),a&8&&(l.tooltipContent=s[3]),a&16&&(l.disabledTooltipContent=s[4]),a&64&&(l.className=s[6]),a&262&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function N4(i,e,t){let{buttonComponent:n}=e,{buttonComponentProps:o}=e,{tooltipText:r}=e,{disabledTooltipContent:s}=e,{disabled:a=!1}=e,{className:l=void 0}=e,{ref:u}=e;function c(m){u=m,t(0,u)}return i.$$set=m=>{"buttonComponent"in m&&t(1,n=m.buttonComponent),"buttonComponentProps"in m&&t(2,o=m.buttonComponentProps),"tooltipText"in m&&t(3,r=m.tooltipText),"disabledTooltipContent"in m&&t(4,s=m.disabledTooltipContent),"disabled"in m&&t(5,a=m.disabled),"className"in m&&t(6,l=m.className),"ref"in m&&t(0,u=m.ref)},[u,n,o,r,s,a,l,c]}var dc=class extends B{constructor(e){super(),N(this,e,N4,B4,R,{buttonComponent:1,buttonComponentProps:2,tooltipText:3,disabledTooltipContent:4,disabled:5,className:6,ref:0})}},mc=dc;var Io={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};function O4(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,l,l[1],n?Re(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function F4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var pc=class extends B{constructor(e){super(),N(this,e,F4,O4,R,{})}},lp=pc;function x4(i){let e,t;return e=new lp({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function H4(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,r;return i.$$set=s=>{"isPrev"in s&&t(0,n=s.isPrev),"isMobile"in s&&t(2,o=s.isMobile)},i.$$.update=()=>{i.$$.dirty&5&&(n&&o?t(1,r="transform: scaleX(-1) scale(1.3333);"):n?t(1,r="transform: scaleX(-1);"):o?t(1,r="transform: scale(1.3333);"):t(1,r=void 0))},[n,r,o]}var _c=class extends B{constructor(e){super(),N(this,e,H4,x4,R,{isPrev:0,isMobile:2})}},ap=_c;function q4(i){be(i,"svelte-xtk2k4",".icon-background-mobile.svelte-xtk2k4{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color)}")}function up(i){let e;return{c(){e=S("div"),f(e,"class","icon-background-mobile svelte-xtk2k4")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function U4(i){let e,t,n,o=i[1]&&up(i);return t=new ap({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){o&&o.c(),e=j(),M(t.$$.fragment)},m(r,s){o&&o.m(r,s),v(r,e,s),E(t,r,s),n=!0},p(r,s){r[1]?o||(o=up(r),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);let a={};s&2&&(a.isMobile=r[1]),s&8&&(a.isPrev=r[3]==="prev"),t.$set(a)},i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){p(t.$$.fragment,r),n=!1},d(r){r&&b(e),o&&o.d(r),A(t,r)}}}function z4(i){let e,t,n;function o(s){i[6](s)}let r={className:`btn-${i[1]?"m":"d"}--${i[3]}`,testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[U4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&10&&(l.className=`btn-${s[1]?"m":"d"}--${s[3]}`),a&8&&(l.testId="btn-"+s[3]),a&4&&(l.disabled=s[2]),a&32&&(l.ariaLabel=s[5]),a&16&&(l.click=s[4]),a&138&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function W4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{type:s}=e,{click:a}=e,l;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"isMobile"in c&&t(1,o=c.isMobile),"disabled"in c&&t(2,r=c.disabled),"type"in c&&t(3,s=c.type),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,l=s==="prev"?W("tooltip_previous"):W("tooltip_next"))},[n,o,r,s,a,l,u]}var hc=class extends B{constructor(e){super(),N(this,e,W4,z4,R,{ref:0,isMobile:1,disabled:2,type:3,click:4},q4)}},jr=hc;function K4(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.67.67 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,l,l[1],n?Re(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function j4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var gc=class extends B{constructor(e){super(),N(this,e,j4,K4,R,{})}},Dl=gc;var fp=require("@vkontakte/videoplayer-shared");function G4(i){be(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function cp(i){let e;return{c(){e=S("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function Y4(i){let e,t,n,o,r=i[1]&&cp(i);return n=new Dl({}),{c(){r&&r.c(),e=j(),t=S("div"),M(n.$$.fragment),f(t,"class","svelte-1ot3duq"),z(t,"mobile",i[1])},m(s,a){r&&r.m(s,a),v(s,e,a),v(s,t,a),E(n,t,null),o=!0},p(s,a){s[1]?r||(r=cp(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!o||a&2)&&z(t,"mobile",s[1])},i(s){o||(d(n.$$.fragment,s),o=!0)},o(s){p(n.$$.fragment,s),o=!1},d(s){s&&(b(e),b(t)),r&&r.d(s),A(n)}}}function Q4(i){let e,t,n;function o(s){i[5](s)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:W("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:fo.KeyK,$$slots:{default:[Y4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&10&&(l.className=(s[1]?"btn-m--play":"")+" "+s[3]),a&4&&(l.disabled=s[2]),a&16&&(l.click=s[4]),a&66&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Z4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:s=""}=e,{click:a=fp.noop}=e;function l(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"disabled"in u&&t(2,r=u.disabled),"className"in u&&t(3,s=u.className),"click"in u&&t(4,a=u.click)},[n,o,r,s,a,l]}var bc=class extends B{constructor(e){super(),N(this,e,Z4,Q4,R,{ref:0,isMobile:1,disabled:2,className:3,click:4},G4)}},ws=bc;function X4(i){let e,t;return{c(){e=L("svg"),t=L("path"),f(t,"d","M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"),f(t,"fill",i[3]),f(e,"width",i[0]),f(e,"height",i[1]),f(e,"viewBox",i[2]),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","play-icon")},m(n,o){v(n,e,o),_(e,t)},p(n,[o]){o&8&&f(t,"fill",n[3]),o&1&&f(e,"width",n[0]),o&2&&f(e,"height",n[1]),o&4&&f(e,"viewBox",n[2])},i:me,o:me,d(n){n&&b(e)}}}function J4(i,e,t){let{width:n="24"}=e,{height:o="24"}=e,{viewBox:r="0 0 24 24"}=e,{fill:s="#fff"}=e;return i.$$set=a=>{"width"in a&&t(0,n=a.width),"height"in a&&t(1,o=a.height),"viewBox"in a&&t(2,r=a.viewBox),"fill"in a&&t(3,s=a.fill)},[n,o,r,s]}var vc=class extends B{constructor(e){super(),N(this,e,J4,X4,R,{width:0,height:1,viewBox:2,fill:3})}},Wo=vc;function $4(i){let e,t;return{c(){e=L("svg"),t=L("path"),f(t,"d","M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"),f(t,"fill",i[3]),f(e,"width",i[0]),f(e,"height",i[1]),f(e,"viewBox",i[2]),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","pause-icon")},m(n,o){v(n,e,o),_(e,t)},p(n,[o]){o&8&&f(t,"fill",n[3]),o&1&&f(e,"width",n[0]),o&2&&f(e,"height",n[1]),o&4&&f(e,"viewBox",n[2])},i:me,o:me,d(n){n&&b(e)}}}function e3(i,e,t){let{width:n="24"}=e,{height:o="24"}=e,{viewBox:r="0 0 24 24"}=e,{fill:s="#fff"}=e;return i.$$set=a=>{"width"in a&&t(0,n=a.width),"height"in a&&t(1,o=a.height),"viewBox"in a&&t(2,r=a.viewBox),"fill"in a&&t(3,s=a.fill)},[n,o,r,s]}var yc=class extends B{constructor(e){super(),N(this,e,e3,$4,R,{width:0,height:1,viewBox:2,fill:3})}},Gr=yc;var mp=require("@vkontakte/videoplayer-shared");function t3(i){be(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function dp(i){let e;return{c(){e=S("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function i3(i){let e,t,n,o,r=i[1]&&dp(i);var s=i[8];function a(l,u){return{}}return s&&(n=At(s,a(i))),{c(){r&&r.c(),e=j(),t=S("div"),n&&M(n.$$.fragment),f(t,"class","svelte-1ot3duq"),z(t,"mobile",i[1])},m(l,u){r&&r.m(l,u),v(l,e,u),v(l,t,u),n&&E(n,t,null),o=!0},p(l,u){if(l[1]?r||(r=dp(l),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u&256&&s!==(s=l[8])){if(n){ae();let c=n;p(c.$$.fragment,1,0,()=>{A(c,1)}),ue()}s?(n=At(s,a(l,u)),M(n.$$.fragment),d(n.$$.fragment,1),E(n,t,null)):n=null}(!o||u&2)&&z(t,"mobile",l[1])},i(l){o||(n&&d(n.$$.fragment,l),o=!0)},o(l){n&&p(n.$$.fragment,l),o=!1},d(l){l&&(b(e),b(t)),r&&r.d(l),n&&A(n)}}}function n3(i){let e,t,n;function o(s){i[13](s)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-play",click:i[5]?i[6]:i[4],disabled:i[2],ariaLabel:i[7],ariaKeyShortCut:fo.KeyK,$$slots:{default:[i3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&10&&(l.className=(s[1]?"btn-m--play":"")+" "+s[3]),a&112&&(l.click=s[5]?s[6]:s[4]),a&4&&(l.disabled=s[2]),a&128&&(l.ariaLabel=s[7]),a&33026&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function o3(i,e,t){let n,o,{fakeIsPlaying$:r}=Nn();V(i,r,I=>t(12,o=I));let{ref:s=void 0}=e,{isMobile:a=!1}=e,{isPlaying:l=!1}=e,{disabled:u=!1}=e,{className:c=""}=e,{click:m=mp.noop}=e,{toggle:h}=r,y,g,T,k;function D(I){s=I,t(0,s)}return i.$$set=I=>{"ref"in I&&t(0,s=I.ref),"isMobile"in I&&t(1,a=I.isMobile),"isPlaying"in I&&t(10,l=I.isPlaying),"disabled"in I&&t(2,u=I.disabled),"className"in I&&t(3,c=I.className),"click"in I&&t(4,m=I.click)},i.$$.update=()=>{i.$$.dirty&4096&&t(5,g=o!==null),i.$$.dirty&5152&&t(11,T=g?o:l),i.$$.dirty&2048&&t(7,k=T?W("tooltip_pause"):W("tooltip_play")),i.$$.dirty&2048&&t(8,n=T?Gr:Wo)},t(6,y=h),[s,a,u,c,m,g,y,k,n,r,l,T,o,D]}var kc=class extends B{constructor(e){super(),N(this,e,o3,n3,R,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},t3)}},Cs=kc;function r3(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,l,l[1],n?Re(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function s3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var wc=class extends B{constructor(e){super(),N(this,e,s3,r3,R,{})}},pp=wc;function l3(i){let e,t;return e=new pp({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function a3(i){let e,t,n;function o(s){i[4](s)}let r={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:W("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[l3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"hidden":""),a&4&&(l.disabled=s[2]),a&8&&(l.click=s[3]),a&32&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function u3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:s}=e;function a(l){n=l,t(0,n)}return i.$$set=l=>{"ref"in l&&t(0,n=l.ref),"hidden"in l&&t(1,o=l.hidden),"disabled"in l&&t(2,r=l.disabled),"click"in l&&t(3,s=l.click)},[n,o,r,s,a]}var Cc=class extends B{constructor(e){super(),N(this,e,u3,a3,R,{ref:0,hidden:1,disabled:2,click:3})}},Ol=Cc;function c3(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=L("svg"),s&&s.c(),t=L("path"),n=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"),Ce(e,l)},m(u,c){v(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Ve(s,r,u,u[1],o?Re(r,u[1],c,null):Be(u[1]),null),Ce(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&b(e),s&&s.d(u)}}}function f3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Sc=class extends B{constructor(e){super(),N(this,e,f3,c3,R,{})}},_p=Sc;function d3(i){let e,t;return e=new _p({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function m3(i){let e,t,n;function o(s){i[4](s)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:W("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[d3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"hidden":""),a&4&&(l.disabled=s[2]),a&8&&(l.click=s[3]),a&32&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function p3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:s}=e;function a(l){n=l,t(0,n)}return i.$$set=l=>{"ref"in l&&t(0,n=l.ref),"hidden"in l&&t(1,o=l.hidden),"disabled"in l&&t(2,r=l.disabled),"click"in l&&t(3,s=l.click)},[n,o,r,s,a]}var Tc=class extends B{constructor(e){super(),N(this,e,p3,m3,R,{ref:0,hidden:1,disabled:2,click:3})}},Fl=Tc;function _3(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=L("svg"),s&&s.c(),t=L("path"),n=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z"),f(n,"class","_closed"),f(n,"clip-rule","evenodd"),Ce(e,l)},m(u,c){v(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Ve(s,r,u,u[1],o?Re(r,u[1],c,null):Be(u[1]),null),Ce(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&b(e),s&&s.d(u)}}}function h3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Ic=class extends B{constructor(e){super(),N(this,e,h3,_3,R,{})}},hp=Ic;function g3(i){be(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function b3(i){let e,t;return e=new hp({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function v3(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var Pc=class extends B{constructor(e){super(),N(this,e,v3,b3,R,{isOpened:0},g3)}},gp=Pc;function y3(i){let e,t;return e=new gp({props:{isOpened:!!i[3]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.isOpened=!!n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function k3(i){let e,t,n;function o(s){i[6](s)}let r={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[y3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"hidden":""),a&4&&(l.disabled=s[2]),a&32&&(l.ariaLabel=s[5]),a&16&&(l.click=s[4]),a&136&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function w3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{graphIsOpened:s=!1}=e,{click:a}=e,l;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"hidden"in c&&t(1,o=c.hidden),"disabled"in c&&t(2,r=c.disabled),"graphIsOpened"in c&&t(3,s=c.graphIsOpened),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,l=s?W("tooltip_interactive_graph_on"):W("tooltip_interactive_graph_off"))},[n,o,r,s,a,l,u]}var Ec=class extends B{constructor(e){super(),N(this,e,w3,k3,R,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},xl=Ec;var Hl=require("@vkontakte/videoplayer-core");function C3(i){let e,t;return e=new el({props:{isActive:i[1]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function S3(i){let e,t;return e=new dt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===Hl.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[C3]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(r.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(r.disabled=n[1]&&n[3]===Hl.PlaybackState.PLAYING),o&4&&(r.ariaLabel=n[2]),o&16&&(r.click=n[4]),o&514&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function T3(i,e,t){let n,{isMobile:o=!1}=e,{isLiveActive:r=!1}=e,{ariaLabel:s=""}=e,a=et(),l=a.state.playbackState$;V(i,l,h=>t(3,n=h));let u=a.actions.internal.switchToActiveLive,c=a.actions.internal.togglePlay,m;return i.$$set=h=>{"isMobile"in h&&t(0,o=h.isMobile),"isLiveActive"in h&&t(1,r=h.isLiveActive),"ariaLabel"in h&&t(2,s=h.ariaLabel)},i.$$.update=()=>{i.$$.dirty&10&&t(4,m=()=>{if(!r){u();return}n===Hl.PlaybackState.PAUSED&&c()})},[o,r,s,n,m,l]}var Ac=class extends B{constructor(e){super(),N(this,e,T3,S3,R,{isMobile:0,isLiveActive:1,ariaLabel:2})}},ql=Ac;var Lc=require("@vkontakte/videoplayer-shared");function I3(i){let e,t,n,o;return{c(){e=S("img"),f(e,"class","icon"),ko(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){v(r,e,s),n||(o=Te(e,"error",i[2]),n=!0)},p(r,s){s&1&&!ko(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&b(e),n=!1,o()}}}function P3(i){let e;return{c(){e=S("div"),e.innerHTML='<div class="inner"></div>',f(e,"class","icon icon-error-stub")},m(t,n){v(t,e,n)},p:me,d(t){t&&b(e)}}}function E3(i){let e;function t(r,s){return r[1]?P3:I3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Qe()},m(r,s){o.m(r,s),v(r,e,s)},p(r,[s]){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:me,o:me,d(r){r&&b(e),o.d(r)}}}function A3(i,e,t){let n,{icon:o}=e,r=()=>{t(1,n=!0)};return i.$$set=s=>{"icon"in s&&t(0,o=s.icon)},t(1,n=!1),[o,n,r]}var Mc=class extends B{constructor(e){super(),N(this,e,A3,E3,R,{icon:0})}},Yr=Mc;function M3(i){let e,t;return e=new Yr({props:{icon:i[3]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.icon=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function L3(i){let e,t;return e=new dt({props:{className:i[8],ariaLabel:i[4],click:i[7],disabled:i[9],testId:i[2]??i[1],$$slots:{default:[M3]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&256&&(r.className=n[8]),o&16&&(r.ariaLabel=n[4]),o&128&&(r.click=n[7]),o&512&&(r.disabled=n[9]),o&6&&(r.testId=n[2]??n[1]),o&8200&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function R3(i){let e,t,n;function o(s){i[12](s)}let r={disabled:i[9],tooltipContent:i[5],disabledTooltipContent:i[6],width:40,$$slots:{default:[L3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Xi({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&512&&(l.disabled=s[9]),a&32&&(l.tooltipContent=s[5]),a&64&&(l.disabledTooltipContent=s[6]),a&9118&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function V3(i,e,t){let n,o,r,{id:s}=e,{testId:a}=e,{icon:l}=e,{ariaLabel:u}=e,{tooltipText:c}=e,{disabledTooltipContent:m}=e,{disabled:h=!1}=e,{onClick:y=Lc.noop}=e,{ref:g}=e;function T(k){g=k,t(0,g)}return i.$$set=k=>{"id"in k&&t(1,s=k.id),"testId"in k&&t(2,a=k.testId),"icon"in k&&t(3,l=k.icon),"ariaLabel"in k&&t(4,u=k.ariaLabel),"tooltipText"in k&&t(5,c=k.tooltipText),"disabledTooltipContent"in k&&t(6,m=k.disabledTooltipContent),"disabled"in k&&t(10,h=k.disabled),"onClick"in k&&t(7,y=k.onClick),"ref"in k&&t(0,g=k.ref)},i.$$.update=()=>{i.$$.dirty&128&&t(11,n=y===Lc.noop),i.$$.dirty&3072&&t(9,o=n||h),i.$$.dirty&2048&&t(8,r=n?"btn-full-opacity":"")},[g,s,a,l,u,c,m,y,r,o,h,n,T]}var Rc=class extends B{constructor(e){super(),N(this,e,V3,R3,R,{id:1,testId:2,icon:3,ariaLabel:4,tooltipText:5,disabledTooltipContent:6,disabled:10,onClick:7,ref:0})}},bp=Rc;var vp=i=>!!i.buttonComponent;var Ko={vkLogo:100,volume:200,subtitles:300,settings:400,context:500,fullscreen:600,chromecast:700};function D3(i){be(i,"svelte-1iedtj3",".wrapper-bottom.svelte-1iedtj3.svelte-1iedtj3{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box}.wrapper-bottom.svelte-1iedtj3>.svelte-1iedtj3{pointer-events:auto}.controls.svelte-1iedtj3.svelte-1iedtj3{width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box}.controls-left.svelte-1iedtj3.svelte-1iedtj3,.controls-right.svelte-1iedtj3.svelte-1iedtj3{display:flex;align-content:center}.controls-left.svelte-1iedtj3.svelte-1iedtj3{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-1iedtj3 > *:not(:first-child),.controls-right.svelte-1iedtj3 > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-1iedtj3.svelte-1iedtj3{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-1iedtj3.svelte-1iedtj3{transition:none}")}function yp(i,e,t){let n=i.slice();return n[201]=e[t],n[202]=e,n[203]=t,n}function kp(i,e,t){let n=i.slice();return n[201]=e[t],n[204]=e,n[205]=t,n}function wp(i){let e,t,n;function o(s){i[163](s,i[201])}let r={buttonComponent:i[201].buttonComponent,buttonComponentProps:i[201].buttonComponentProps,tooltipText:i[201].tooltipText,disabledTooltipContent:i[201].disabledTooltipContent,disabled:i[201].disabled,className:i[201].className};return i[10][i[201].id]!==void 0&&(r.ref=i[10][i[201].id]),e=new mc({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&2048&&(l.buttonComponent=i[201].buttonComponent),a[0]&2048&&(l.buttonComponentProps=i[201].buttonComponentProps),a[0]&2048&&(l.tooltipText=i[201].tooltipText),a[0]&2048&&(l.disabledTooltipContent=i[201].disabledTooltipContent),a[0]&2048&&(l.disabled=i[201].disabled),a[0]&2048&&(l.className=i[201].className),!t&&a[0]&3072&&(t=!0,l.ref=i[10][i[201].id],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Cp(i){let e,t,n;function o(s){i[164](s)}let r={isMobile:!1,showDuration:i[15],position:i[5]?i[33]:i[34],duration:i[5]?i[35]:i[36]};return i[10].time!==void 0&&(r.ref=i[10].time),e=new gl({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[0]&32768&&(l.showDuration=s[15]),a[0]&32|a[1]&12&&(l.position=s[5]?s[33]:s[34]),a[0]&32|a[1]&48&&(l.duration=s[5]?s[35]:s[36]),!t&&a[0]&1024&&(t=!0,l.ref=s[10].time,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Sp(i){let e,t;return e=new Tl({props:{position:i[34],duration:i[36],timeCodes:i[50]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[1]&8&&(r.position=n[34]),o[1]&32&&(r.duration=n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function O3(i){let e,t,n=i[8]&&Sp(i);return{c(){n&&n.c(),e=Qe()},m(o,r){n&&n.m(o,r),v(o,e,r),t=!0},p(o,r){o[8]?n?(n.p(o,r),r[0]&256&&d(n,1)):(n=Sp(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),p(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function F3(i){let e,t,n;function o(s){i[168](s,i[201])}let r={id:i[201].id,testId:i[201].testId,icon:i[201].icon,ariaLabel:i[201].ariaLabel,tooltipText:i[201].tooltipText,disabledTooltipContent:i[201].disabledTooltipContent,disabled:!!i[201].disabled,onClick:i[201].onClick};return i[10][i[201].id]!==void 0&&(r.ref=i[10][i[201].id]),e=new bp({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&4096&&(l.id=i[201].id),a[0]&4096&&(l.testId=i[201].testId),a[0]&4096&&(l.icon=i[201].icon),a[0]&4096&&(l.ariaLabel=i[201].ariaLabel),a[0]&4096&&(l.tooltipText=i[201].tooltipText),a[0]&4096&&(l.disabledTooltipContent=i[201].disabledTooltipContent),a[0]&4096&&(l.disabled=!!i[201].disabled),a[0]&4096&&(l.onClick=i[201].onClick),!t&&a[0]&5120&&(t=!0,l.ref=i[10][i[201].id],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function x3(i){let e,t,n;function o(s){i[167](s,i[201])}let r={buttonComponent:i[201].buttonComponent,buttonComponentProps:i[201].buttonComponentProps,tooltipText:i[201].tooltipText,disabledTooltipContent:i[201].disabledTooltipContent,disabled:i[201].disabled,className:i[201].className};return i[10][i[201].id]!==void 0&&(r.ref=i[10][i[201].id]),e=new mc({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&4096&&(l.buttonComponent=i[201].buttonComponent),a[0]&4096&&(l.buttonComponentProps=i[201].buttonComponentProps),a[0]&4096&&(l.tooltipText=i[201].tooltipText),a[0]&4096&&(l.disabledTooltipContent=i[201].disabledTooltipContent),a[0]&4096&&(l.disabled=i[201].disabled),a[0]&4096&&(l.className=i[201].className),!t&&a[0]&5120&&(t=!0,l.ref=i[10][i[201].id],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Tp(i){let e,t,n,o,r,s=[x3,F3],a=[];function l(u,c){return c[0]&4096&&(e=null),e==null&&(e=!!vp(u[201])),e?0:1}return t=l(i,[-1,-1,-1,-1,-1,-1,-1]),n=a[t]=s[t](i),{c(){n.c(),o=Qe()},m(u,c){a[t].m(u,c),v(u,o,c),r=!0},p(u,c){let m=t;t=l(u,c),t===m?a[t].p(u,c):(ae(),p(a[m],1,1,()=>{a[m]=null}),ue(),n=a[t],n?n.p(u,c):(n=a[t]=s[t](u),n.c()),d(n,1),n.m(o.parentNode,o))},i(u){r||(d(n),r=!0)},o(u){p(n),r=!1},d(u){u&&b(o),a[t].d(u)}}}function H3(i){let e,t,n;function o(s){i[171](s)}let r={};return i[10].interactiveTimeIndicator!==void 0&&(r.ref=i[10].interactiveTimeIndicator),e=new Nl({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&1024&&(t=!0,l.ref=s[10].interactiveTimeIndicator,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function q3(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I;function C(q){i[162](q)}let P={isHidden:!i[14],isAds:i[5],canRewindLive:i[6],isRewindableLive:i[13]};i[10].timeline!==void 0&&(P.ref=i[10].timeline),t=new Sl({props:P}),ve.push(()=>ze(t,"ref",C));let G=_t(i[11]),x=[];for(let q=0;q<G.length;q+=1)x[q]=wp(kp(i,G,q));let O=q=>p(x[q],1,1,()=>{x[q]=null}),$=i[7]&&Cp(i);function le(q){i[165](q)}let K={className:"w-max",disabled:!i[8],tooltipContent:W("tooltip_episodes"),$$slots:{default:[O3]},$$scope:{ctx:i}};i[10].episodes!==void 0&&(K.ref=i[10].episodes),u=new Xi({props:K}),ve.push(()=>ze(u,"ref",le));let ee=_t(i[12]),H=[];for(let q=0;q<ee.length;q+=1)H[q]=Tp(yp(i,ee,q));let J=q=>p(H[q],1,1,()=>{H[q]=null}),ke=i[67]&&H3(i);return{c(){e=S("div"),M(t.$$.fragment),o=j(),r=S("div"),s=S("div");for(let q=0;q<x.length;q+=1)x[q].c();a=j(),$&&$.c(),l=j(),M(u.$$.fragment),h=j(),y=S("div");for(let q=0;q<H.length;q+=1)H[q].c();g=j(),ke&&ke.c(),T=Qe(),f(s,"class","controls-left svelte-1iedtj3"),f(y,"class","controls-right svelte-1iedtj3"),f(r,"class","controls svelte-1iedtj3"),f(e,"class","wrapper-bottom svelte-1iedtj3"),z(e,"hidden",i[2]),z(e,"controls-hidden",!i[4]),z(e,"no-smooth",i[3])},m(q,ne){v(q,e,ne),E(t,e,null),_(e,o),_(e,r),_(r,s);for(let F=0;F<x.length;F+=1)x[F]&&x[F].m(s,null);_(s,a),$&&$.m(s,null),_(s,l),E(u,s,null),_(r,h),_(r,y);for(let F=0;F<H.length;F+=1)H[F]&&H[F].m(y,null);i[169](r),i[170](e),v(q,g,ne),ke&&ke.m(q,ne),v(q,T,ne),k=!0,D||(I=[wr(m=xr.call(null,s)),Te(s,"fd:resize",i[166])],D=!0)},p(q,ne){let F={};if(ne[0]&16384&&(F.isHidden=!q[14]),ne[0]&32&&(F.isAds=q[5]),ne[0]&64&&(F.canRewindLive=q[6]),ne[0]&8192&&(F.isRewindableLive=q[13]),!n&&ne[0]&1024&&(n=!0,F.ref=q[10].timeline,Ue(()=>n=!1)),t.$set(F),ne[0]&3072){G=_t(q[11]);let oe;for(oe=0;oe<G.length;oe+=1){let Q=kp(q,G,oe);x[oe]?(x[oe].p(Q,ne),d(x[oe],1)):(x[oe]=wp(Q),x[oe].c(),d(x[oe],1),x[oe].m(s,a))}for(ae(),oe=G.length;oe<x.length;oe+=1)O(oe);ue()}q[7]?$?($.p(q,ne),ne[0]&128&&d($,1)):($=Cp(q),$.c(),d($,1),$.m(s,l)):$&&(ae(),p($,1,1,()=>{$=null}),ue());let _e={};if(ne[0]&256&&(_e.disabled=!q[8]),ne[0]&256|ne[1]&40|ne[6]&1048576&&(_e.$$scope={dirty:ne,ctx:q}),!c&&ne[0]&1024&&(c=!0,_e.ref=q[10].episodes,Ue(()=>c=!1)),u.$set(_e),ne[0]&5120){ee=_t(q[12]);let oe;for(oe=0;oe<ee.length;oe+=1){let Q=yp(q,ee,oe);H[oe]?(H[oe].p(Q,ne),d(H[oe],1)):(H[oe]=Tp(Q),H[oe].c(),d(H[oe],1),H[oe].m(y,null))}for(ae(),oe=ee.length;oe<H.length;oe+=1)J(oe);ue()}(!k||ne[0]&4)&&z(e,"hidden",q[2]),(!k||ne[0]&16)&&z(e,"controls-hidden",!q[4]),(!k||ne[0]&8)&&z(e,"no-smooth",q[3]),q[67]&&ke.p(q,ne)},i(q){if(!k){d(t.$$.fragment,q);for(let ne=0;ne<G.length;ne+=1)d(x[ne]);d($),d(u.$$.fragment,q);for(let ne=0;ne<ee.length;ne+=1)d(H[ne]);d(ke),k=!0}},o(q){p(t.$$.fragment,q),x=x.filter(Boolean);for(let ne=0;ne<x.length;ne+=1)p(x[ne]);p($),p(u.$$.fragment,q),H=H.filter(Boolean);for(let ne=0;ne<H.length;ne+=1)p(H[ne]);p(ke),k=!1},d(q){q&&(b(e),b(g),b(T)),A(t),ti(x,q),$&&$.d(),A(u),ti(H,q),i[169](null),i[170](null),ke&&ke.d(q),D=!1,st(I)}}}function U3(i,e,t){let n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C,P,G,x,O,$,le,K,ee,H,J,ke,q,ne,F,_e,oe,Q,Z,se,Ze,Je,Pe,Se,Ae=me,We=()=>(Ae(),Ae=jt(K,ce=>t(133,Se=ce)),K),X,he=me,Ie=()=>(he(),he=jt(le,ce=>t(134,X=ce)),le),Ge,tt=me,it=()=>(tt(),tt=jt($,ce=>t(135,Ge=ce)),$),rt,$e=me,pe=()=>($e(),$e=jt(O,ce=>t(136,rt=ce)),O),Ee,Me=me,Xe=()=>(Me(),Me=jt(x,ce=>t(137,Ee=ce)),x),Ye,Oe=me,fe=()=>(Oe(),Oe=jt(G,ce=>t(138,Ye=ce)),G),ct,ht=me,gt=()=>(ht(),ht=jt(P,ce=>t(139,ct=ce)),P),bt,Fe=me,wt=()=>(Fe(),Fe=jt(C,ce=>t(140,bt=ce)),C),Ot,Ut=me,Qt=()=>(Ut(),Ut=jt(I,ce=>t(141,Ot=ce)),I),Ht,lt=me,Tt=()=>(lt(),lt=jt(D,ce=>t(142,Ht=ce)),D),Mt,Lt=me,yi=()=>(Lt(),Lt=jt(k,ce=>t(143,Mt=ce)),k),Kt,ye=me,Ft=()=>(ye(),ye=jt(T,ce=>t(144,Kt=ce)),T),Rt,Zt=me,xt=()=>(Zt(),Zt=jt(g,ce=>t(145,Rt=ce)),g),Pt,Vt=me,ki=()=>(Vt(),Vt=jt(y,ce=>t(146,Pt=ce)),y),oi,wi=me,Li=()=>(wi(),wi=jt(h,ce=>t(147,oi=ce)),h),ui,_i=me,hi=()=>(_i(),_i=jt(m,ce=>t(148,ui=ce)),m),Bt,Fi=me,Nt=()=>(Fi(),Fi=jt(c,ce=>t(149,Bt=ce)),c),Yt,xi,Ci,Si,Ti,ge,pt,Hi,pn,gi,ci,fi,bi,wn,qi,_n,ri;i.$$.on_destroy.push(()=>Ae()),i.$$.on_destroy.push(()=>he()),i.$$.on_destroy.push(()=>tt()),i.$$.on_destroy.push(()=>$e()),i.$$.on_destroy.push(()=>Me()),i.$$.on_destroy.push(()=>Oe()),i.$$.on_destroy.push(()=>ht()),i.$$.on_destroy.push(()=>Fe()),i.$$.on_destroy.push(()=>Ut()),i.$$.on_destroy.push(()=>lt()),i.$$.on_destroy.push(()=>Lt()),i.$$.on_destroy.push(()=>ye()),i.$$.on_destroy.push(()=>Zt()),i.$$.on_destroy.push(()=>Vt()),i.$$.on_destroy.push(()=>wi()),i.$$.on_destroy.push(()=>_i()),i.$$.on_destroy.push(()=>Fi());let{bottomHidden:Ri}=e,{bottomNoSmooth:Ui}=e,{showControls:$i}=e,{playerControlsWrapperRef:Vi=void 0}=e,{playerControlsRef:hn=void 0}=e,{isAds:Xt=!1}=e,{canRewindLive:On}=e,{logoClickable:Ii}=e,{logoHidden:en}=e,{logoTargetUrl:tn=""}=e,{showNextPrevButtons:nn}=e,{nextButtonActive:zi}=e,{prevButtonActive:Wi}=e,{customFullscreenSupported:Pi=!0}=e,{toggleFullscreen:vi}=e,{seekToInteractive:Bi}=e,{playPrevChapter:Jt}=e,{fakeIsPlaying$:si}=Nn();V(i,si,ce=>t(126,_e=ce));let nt=et(),Ei=Nn(),qt=It(),di=nt.actions.internal.toggleMuted,Ai=nt.actions.internal.togglePlay,on=nt.actions.internal.pause,gn=nt.actions.internal.toggleSubtitle,Mi=nt.callbacks?.onAudioDoesNotExistHint,Ki=nt.callbacks?.onAudioDisabledHint,$t=nt.state.duration$;V(i,$t,ce=>t(36,ri=ce));let je=nt.state.positionWithScrubbing$;V(i,je,ce=>t(34,qi=ce));let bn=nt.state.playbackState$;V(i,bn,ce=>t(123,q=ce));let rn=nt.state.isAudioAvailable$;V(i,rn,ce=>t(172,oe=ce));let ji=nt.state.isAudioDisabled,sn=nt.state.isEnded$;V(i,sn,ce=>t(158,gi=ce));let Gi=nt.state.isLive$;V(i,Gi,ce=>t(152,Si=ce));let Yi=nt.state.isActiveLive$;V(i,Yi,ce=>t(151,xi=ce));let Kn=nt.state.isRewindableLive$;V(i,Kn,ce=>t(13,Ci=ce));let Fn=nt.ui.isPictureInPictureActive$;V(i,Fn,ce=>t(154,ge=ce));let mi=nt.ui.pictureInPictureType$;V(i,mi,ce=>t(153,Ti=ce));let xn=nt.ui.settingsMenu.visible$;V(i,xn,ce=>t(122,ke=ce));let vn=nt.ui.settingsMenu.openedByBtnKeyboard$;V(i,vn,ce=>t(128,Z=ce));let Cn=nt.ui.controls,Sn=nt.actions.internal.getVideoEpisodes(),ln=nt.state.chromecastState$;V(i,ln,ce=>t(120,H=ce));let yn=nt.state.availableSubtitlesList$;V(i,yn,ce=>t(157,pn=ce));let Ni=nt.state.currentSubtitle$;V(i,Ni,ce=>t(159,ci=ce));let Qi=Cn.disabledControls$;V(i,Qi,ce=>t(161,bi=ce));let Hn=nt.ui.contextMenu.visible$;V(i,Hn,ce=>t(150,Yt=ce));let to=nt.ui.contextMenu.showContextMenuBtn$;V(i,to,ce=>t(155,pt=ce));let io=nt.ui.contextMenu.openedByBtnKeyboard$;V(i,io,ce=>t(156,Hi=ce));let ei=nt.ui.startedByKeyboard$;V(i,ei,ce=>t(127,Q=ce));let no=nt.ads.duration;V(i,no,ce=>t(35,_n=ce));let oo=nt.ads.position;V(i,oo,ce=>t(33,wn=ce));let jn=nt.ads.playbackState;V(i,jn,ce=>t(160,fi=ce));let ro=nt.ui.isFullscreen;V(i,ro,ce=>t(121,J=ce));let so=nt.ui.playerSize;V(i,so,ce=>t(131,Je=ce));let Gn=nt.ui.currentGridType$;V(i,Gn,ce=>t(132,Pe=ce));let Yn=nt.ui.additionalDesktopControlPanelRightButtons$;V(i,Yn,ce=>t(119,ee=ce));let Tn=nt.actions.internal.getVideoElement,Qn=nt.actions.internal.replayInteractive,go=nt.actions.internal.prevVideoClick,bo=nt.actions.internal.nextVideoClick,Di=nt.state.isInteractive,ie=nt.state.isInteractiveTime$;V(i,ie,ce=>t(130,Ze=ce));let vt=nt.state.showInteractiveGraph,te=nt.state.showSeekToInteractive,In=nt.state.showPlayPrevChapter,ts=nt.state.showInteractiveTimeIndicator,is=nt.state.playPrevChapterDisabledTooltip,br=Ei.seekToInteractiveDisabledTooltip$;V(i,br,ce=>t(125,F=ce));let Go=Ei.graphIsOpened$;V(i,Go,ce=>t(124,ne=ce));let lo=qt.features.interactiveResponsiveUi,Ao=()=>nt.actions.internal.toggleChromecast(),Mo,Zn,ao,Pn,Xn,uo,Yo,Qo,Lo,vo,yo,Ro,Vo,En,Zo,vr,An,Y,Dt,an,kn,Xo,Jo,co="",ns=(ce,cn)=>{if(!ce){t(101,co=W("tooltip_live"));return}cn===_r.PlaybackState.PAUSED&&t(101,co=W("tooltip_play"))},Mn,Bo,os,rs,ss,zt={},Ln,$o,ls,Ms,fa=(0,Ip.debounceFn)(Vl,260),da,as=Ne();V(i,as,ce=>t(129,se=ce));let ma;function pa(){qo({isAudioDisabled:ji,audioDisabledHintCallback:Ki,isAudioAvailable:oe,audioIsNotExistHintCallback:Mi})&&di()}let _a=Di?Qn:Ai,No,us,yr,un=[],Rn=[];function Ls(ce){i.$$.not_equal(zt.timeline,ce)&&(zt.timeline=ce,t(10,zt))}function cs(ce,cn){i.$$.not_equal(zt[cn.id],ce)&&(zt[cn.id]=ce,t(10,zt))}function Rs(ce){i.$$.not_equal(zt.time,ce)&&(zt.time=ce,t(10,zt))}function ha(ce){i.$$.not_equal(zt.episodes,ce)&&(zt.episodes=ce,t(10,zt))}let Vs=ce=>{t(9,ss=ce.target.clientWidth)};function ga(ce,cn){i.$$.not_equal(zt[cn.id],ce)&&(zt[cn.id]=ce,t(10,zt))}function ba(ce,cn){i.$$.not_equal(zt[cn.id],ce)&&(zt[cn.id]=ce,t(10,zt))}function va(ce){ve[ce?"unshift":"push"](()=>{hn=ce,t(1,hn)})}function ya(ce){ve[ce?"unshift":"push"](()=>{Vi=ce,t(0,Vi)})}function kr(ce){i.$$.not_equal(zt.interactiveTimeIndicator,ce)&&(zt.interactiveTimeIndicator=ce,t(10,zt))}return i.$$set=ce=>{"bottomHidden"in ce&&t(2,Ri=ce.bottomHidden),"bottomNoSmooth"in ce&&t(3,Ui=ce.bottomNoSmooth),"showControls"in ce&&t(4,$i=ce.showControls),"playerControlsWrapperRef"in ce&&t(0,Vi=ce.playerControlsWrapperRef),"playerControlsRef"in ce&&t(1,hn=ce.playerControlsRef),"isAds"in ce&&t(5,Xt=ce.isAds),"canRewindLive"in ce&&t(6,On=ce.canRewindLive),"logoClickable"in ce&&t(71,Ii=ce.logoClickable),"logoHidden"in ce&&t(72,en=ce.logoHidden),"logoTargetUrl"in ce&&t(73,tn=ce.logoTargetUrl),"showNextPrevButtons"in ce&&t(74,nn=ce.showNextPrevButtons),"nextButtonActive"in ce&&t(75,zi=ce.nextButtonActive),"prevButtonActive"in ce&&t(76,Wi=ce.prevButtonActive),"customFullscreenSupported"in ce&&t(77,Pi=ce.customFullscreenSupported),"toggleFullscreen"in ce&&t(78,vi=ce.toggleFullscreen),"seekToInteractive"in ce&&t(79,Bi=ce.seekToInteractive),"playPrevChapter"in ce&&t(80,Jt=ce.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&64&&t(117,n=bi.has("EPISODE_BUTTON")),i.$$.dirty[5]&64&&t(112,o=bi.has("GRAPH_BUTTON")),i.$$.dirty[5]&64&&t(113,r=bi.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[5]&64&&t(115,s=bi.has("PLAY_BUTTON")),i.$$.dirty[5]&64&&t(116,a=bi.has("REPLAY_BUTTON")),i.$$.dirty[5]&64&&t(114,l=bi.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[0]&32|i.$$.dirty[3]&1073741824|i.$$.dirty[5]&32&&t(81,Mo=Xt?fi==="playing":q===_r.PlaybackState.PLAYING),i.$$.dirty[5]&16&&t(82,Zn=ci.value!=="off"),i.$$.dirty[0]&32|i.$$.dirty[5]&8&&t(118,u=gi&&!Xt||Di),i.$$.dirty[3]&33554432|i.$$.dirty[4]&256&&t(83,ao=lo?u&&pi(Pe,"m"):u),i.$$.dirty[0]&32|i.$$.dirty[5]&8&&t(84,Pn=!gi||Di||Xt),i.$$.dirty[4]&256&&t(85,Xn=pi(Pe,"m")),i.$$.dirty[0]&32|i.$$.dirty[2]&12288|i.$$.dirty[4]&256&&t(86,uo=nn&&pi(Pe,"m")&&!Xt&&zi),i.$$.dirty[0]&32|i.$$.dirty[2]&20480|i.$$.dirty[4]&256&&t(87,Yo=nn&&pi(Pe,"m")&&!Xt&&Wi),i.$$.dirty[0]&32|i.$$.dirty[4]&268435456&&t(88,Qo=!Xt&&!!Si),i.$$.dirty[3]&134217728|i.$$.dirty[4]&1610612992&&t(89,Lo=H!==_r.ChromecastState.NOT_AVAILABLE&&!(ge&&Ti===1)&&pi(Pe,"m")&&!Di),i.$$.dirty[4]&256|i.$$.dirty[5]&4&&t(90,vo=pn.length>0&&pi(Pe,"m")),i.$$.dirty[5]&3&&t(91,yo=Hi||pt),i.$$.dirty[0]&32|i.$$.dirty[4]&256&&t(92,Ro=pi(Pe,"s")&&!Xt),i.$$.dirty[0]&32|i.$$.dirty[2]&1024&&t(93,Vo=!en&&!Xt),i.$$.dirty[2]&33792|i.$$.dirty[4]&1610612992&&t(94,En=qt.features.fullscreen&&(en||pi(Pe,lo?"xs":"s"))&&!(ge&&Ti===1)&&(Di?Pi:!0)),i.$$.dirty[0]&32|i.$$.dirty[4]&268435456&&t(7,Zo=(!Si||Xt)&&!(qt.features.interactiveHideTime&&Di)),i.$$.dirty[4]&128&&t(14,vr=Je.width>100),i.$$.dirty[4]&256&&t(95,An=vt&&pi(Pe,"m")),i.$$.dirty[4]&256&&t(96,Y=lo?te&&pi(Pe,"s"):te),i.$$.dirty[4]&256&&t(97,Dt=lo?In&&pi(Pe,"s"):In),i.$$.dirty[0]&32|i.$$.dirty[2]&8388608|i.$$.dirty[3]&16777216|i.$$.dirty[4]&268435456&&t(8,an=!Xt&&!Si&&!!Sn?.length&&Xn&&!n),i.$$.dirty[0]&8192|i.$$.dirty[4]&134217728&&t(98,kn=!Ci||xi),i.$$.dirty[4]&1&&t(99,Xo=ne?W("tooltip_interactive_graph_on"):W("tooltip_interactive_graph_off")),i.$$.dirty[4]&67108864&&t(100,Jo=Yt?W("aria_label_context_menu_close"):W("aria_label_context_menu_open")),i.$$.dirty[3]&1073741856&&ns(kn,q),i.$$.dirty[2]&1048576&&t(103,Bo=Zn?W("tooltip_subtitles_on"):W("tooltip_subtitles_off")),i.$$.dirty[3]&268435456&&t(104,os=J?W("tooltip_fullscreen_on"):W("tooltip_fullscreen_off")),i.$$.dirty[3]&134217728&&t(105,rs=H===_r.ChromecastState.CONNECTED?W("tooltip_chromecast_on"):W("tooltip_chromecast_off")),i.$$.dirty[3]&67108864|i.$$.dirty[4]&67108352&&t(106,Ln={prevButton:Bt?Bt.right-Bt.left:0,replayButton:ui?ui.right-ui.left:0,playButton:oi?oi.right-oi.left:0,nextButton:Pt?Pt.right-Pt.left:0,playPrevChapterButton:Rt?Rt.right-Rt.left:0,seekToInteractiveButton:Kt?Kt.right-Kt.left:0,interactiveGraphButton:Mt?Mt.right-Mt.left:0,liveButton:Ht?Ht.right-Ht.left:0,time:Ot?Ot.right-Ot.left:0,episodes:bt?bt.right-bt.left:0,vkLogo:ct?ct.right-ct.left:0,volume:Ye?Ye.right-Ye.left:0,subtitles:Ee?Ee.right-Ee.left:0,settings:rt?rt.right-rt.left:0,context:Ge?Ge.right-Ge.left:0,fullscreen:X?X.right-X.left:0,chromecast:Se?Se.right-Se.left:0,additionalButtons:ee.length?ee.reduce(ce=>[...ce,40],[]):[]}),i.$$.dirty[3]&24576&&(!$o||$o<Ln.time)&&t(107,$o=Ln.time),i.$$.dirty[0]&896|i.$$.dirty[3]&24576|i.$$.dirty[4]&256){let ce=0;an&&(pi(Pe,"xl")?ce=Ln.time:ce=60);let cn=Ln.prevButton+Ln.playButton+Ln.nextButton+Ln.seekToInteractiveButton+Ln.interactiveGraphButton+Ln.liveButton+$o+ce;t(108,ls=Zo&&ss>=cn)}i.$$.dirty[3]&32768|i.$$.dirty[4]&256&&t(15,Ms=ls&&pi(Pe,"m")),i.$$.dirty[0]&1040|i.$$.dirty[4]&192&&fa(Tn(),Cn,zt,$i),i.$$.dirty[3]&536870912|i.$$.dirty[4]&32&&se&&Nr(se,ke,vn),i.$$.dirty[3]&536870912|i.$$.dirty[4]&16&&mo(da,ke,Z),i.$$.dirty[4]&8&&Bl(ei,Q,ma),i.$$.dirty[4]&4&&t(109,No=_e!==null),i.$$.dirty[2]&524288|i.$$.dirty[3]&65536|i.$$.dirty[4]&4&&t(110,us=No?_e:Mo),i.$$.dirty[3]&131072&&t(111,yr=us?W("tooltip_pause"):W("tooltip_play")),i.$$.dirty[0]&2048|i.$$.dirty[2]&124674048|i.$$.dirty[3]&1090257276|i.$$.dirty[4]&3&&(t(11,un=[]),Yo&&un.push({id:"prevButton",type:"desktop-control-panel-left",weight:Io.prevButton,buttonComponent:jr,buttonComponentProps:{disabled:!Wi,type:"prev",click:go.bind(null,!0)},tooltipText:W("tooltip_previous"),disabled:!Wi}),ao&&un.push({id:"replayButton",type:"desktop-control-panel-left",weight:Io.replayButton,buttonComponent:ws,buttonComponentProps:{disabled:a,click:_a},tooltipText:W("tooltip_restart"),disabled:a}),Pn&&un.push({id:"playButton",type:"desktop-control-panel-left",weight:Io.playButton,buttonComponent:Cs,buttonComponentProps:{disabled:s,isPlaying:Mo,click:Ai},tooltipText:yr,disabled:s}),uo&&un.push({id:"nextButton",type:"desktop-control-panel-left",weight:Io.nextButton,buttonComponent:jr,buttonComponentProps:{disabled:!zi,type:"next",click:bo.bind(null,!0)},tooltipText:W("tooltip_next"),disabled:!zi}),Di&&(Dt&&un.push({id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Io.playPrevChapterButton,buttonComponent:Ol,buttonComponentProps:{disabled:l,click:Jt},tooltipText:W("tooltip_interactive_go_back"),disabledTooltipContent:W(is),disabled:l}),Y&&un.push({id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Io.seekToInteractiveButton,buttonComponent:Fl,buttonComponentProps:{disabled:r,click:Bi},tooltipText:W("tooltip_interactive_seek"),disabled:r,disabledTooltipContent:W(F)}),An&&un.push({id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Io.interactiveGraphButton,buttonComponent:xl,buttonComponentProps:{disabled:o,click:Go.toggle,graphIsOpened:ne},tooltipText:Xo})),Qo&&un.push({id:"liveButton",type:"desktop-control-panel-left",weight:Io.liveButton,buttonComponent:ql,buttonComponentProps:{isLiveActive:kn,ariaLabel:co},tooltipText:co,disabled:kn&&q===_r.PlaybackState.PLAYING}),t(11,un=un.sort(fr))),i.$$.dirty[0]&4096|i.$$.dirty[2]&2014382592|i.$$.dirty[3]&1006640771&&(t(12,Rn=[]),Vo&&Rn.push({id:"vkLogo",type:"desktop-control-panel-right",weight:Ko.vkLogo,buttonComponent:yl,buttonComponentProps:{targetUrl:tn,logoClickable:Ii,click:on},tooltipText:Mn,disabledTooltipContent:"",disabled:!Ii}),Rn.push({id:"volume",type:"desktop-control-panel-right",weight:Ko.volume,buttonComponent:Mm,buttonComponentProps:{click:pa}}),vo&&Rn.push({id:"subtitles",type:"desktop-control-panel-right",weight:Ko.subtitles,buttonComponent:mm,buttonComponentProps:{isSubtitlesEnabled:Zn,click:gn},tooltipText:Bo}),Ro&&Rn.push({id:"settings",type:"desktop-control-panel-right",weight:Ko.settings,buttonComponent:ys,buttonComponentProps:{ref$:as},tooltipText:ke?void 0:W("tooltip_settings_off")}),qt.features.contextMenuButton&&Rn.push({id:"context",type:"desktop-control-panel-right",weight:Ko.context,buttonComponent:sp,buttonComponentProps:{click:vi},className:yo?"":"out-of-view",tooltipText:Jo}),En&&Rn.push({id:"fullscreen",type:"desktop-control-panel-right",weight:Ko.fullscreen,buttonComponent:vl,buttonComponentProps:{isFullscreen:J,click:vi},tooltipText:os}),Lo&&Rn.push({id:"chromecast",type:"desktop-control-panel-right",weight:Ko.chromecast,buttonComponent:kl,buttonComponentProps:{state:H,click:Ao},tooltipText:rs}),t(12,Rn=[...Rn,...ee].sort(fr)))},t(102,Mn=qt.logoType==="vk_video"?W("tooltip_vk_video_logo"):W("tooltip_vk_logo")),Nt(t(32,{prevButton:c,replayButton:m,playButton:h,nextButton:y,playPrevChapterButton:g,seekToInteractiveButton:T,interactiveGraphButton:k,liveButton:D,time:I,episodes:C,vkLogo:P,volume:G,subtitles:x,settings:O,context:$,fullscreen:le,chromecast:K}=Cn,c,hi(t(31,m)),Li(t(30,h)),ki(t(29,y)),xt(t(28,g)),Ft(t(27,T)),yi(t(26,k)),Tt(t(25,D)),Qt(t(24,I)),wt(t(23,C)),gt(t(22,P)),fe(t(21,G)),Xe(t(20,x)),pe(t(19,O)),it(t(18,$)),Ie(t(17,le)),We(t(16,K)))),[Vi,hn,Ri,Ui,$i,Xt,On,Zo,an,ss,zt,un,Rn,Ci,vr,Ms,K,le,$,O,x,G,P,C,I,D,k,T,g,y,h,m,c,wn,qi,_n,ri,si,$t,je,bn,rn,sn,Gi,Yi,Kn,Fn,mi,xn,vn,Sn,ln,yn,Ni,Qi,Hn,to,io,ei,no,oo,jn,ro,so,Gn,Yn,ie,ts,br,Go,as,Ii,en,tn,nn,zi,Wi,Pi,vi,Bi,Jt,Mo,Zn,ao,Pn,Xn,uo,Yo,Qo,Lo,vo,yo,Ro,Vo,En,An,Y,Dt,kn,Xo,Jo,co,Mn,Bo,os,rs,Ln,$o,ls,No,us,yr,o,r,l,s,a,n,u,ee,H,J,ke,q,ne,F,_e,Q,Z,se,Ze,Je,Pe,Se,X,Ge,rt,Ee,Ye,ct,bt,Ot,Ht,Mt,Kt,Rt,Pt,oi,ui,Bt,Yt,xi,Si,Ti,ge,pt,Hi,pn,gi,ci,fi,bi,Ls,cs,Rs,ha,Vs,ga,ba,va,ya,kr]}var Vc=class extends B{constructor(e){super(),N(this,e,U3,q3,R,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:71,logoHidden:72,logoTargetUrl:73,showNextPrevButtons:74,nextButtonActive:75,prevButtonActive:76,customFullscreenSupported:77,toggleFullscreen:78,seekToInteractive:79,playPrevChapter:80},D3,[-1,-1,-1,-1,-1,-1,-1])}},Pp=Vc;var Qr=require("@vkontakte/videoplayer-core");var Nc=require("@vkontakte/videoplayer-shared");function z3(i){be(i,"svelte-1aqpg2x",".icon.svelte-1aqpg2x{width:24px !important;height:24px !important;;}.inner.svelte-1aqpg2x{width:16px;height:16px;background-color:var(--white)}")}function W3(i){let e,t,n,o;return{c(){e=S("img"),f(e,"class","icon svelte-1aqpg2x"),ko(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){v(r,e,s),n||(o=Te(e,"error",i[7]),n=!0)},p(r,s){s&1&&!ko(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&b(e),n=!1,o()}}}function K3(i){let e;return{c(){e=S("div"),e.innerHTML='<div class="inner svelte-1aqpg2x"></div>',f(e,"class","icon icon-error-stub svelte-1aqpg2x")},m(t,n){v(t,e,n)},p:me,d(t){t&&b(e)}}}function j3(i){let e;function t(r,s){return r[5]?K3:W3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Qe()},m(r,s){o.m(r,s),v(r,e,s)},p(r,s){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&b(e),o.d(r)}}}function G3(i){let e,t;return e=new dt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[j3]},$$scope:{ctx:i}}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&16&&(r.className=n[4]?"btn-full-opacity":""),o&2&&(r.ariaLabel=n[1]),o&8&&(r.click=n[3]),o&64&&(r.disabled=n[6]),o&4&&(r.testId=n[2]),o&545&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Y3(i,e,t){let n,o,r,{iconUrl:s}=e,{ariaLabel:a}=e,{disabled:l=!1}=e,{testId:u}=e,{onClick:c=Nc.noop}=e,m=()=>{t(5,r=!0)};return i.$$set=h=>{"iconUrl"in h&&t(0,s=h.iconUrl),"ariaLabel"in h&&t(1,a=h.ariaLabel),"disabled"in h&&t(8,l=h.disabled),"testId"in h&&t(2,u=h.testId),"onClick"in h&&t(3,c=h.onClick)},i.$$.update=()=>{i.$$.dirty&8&&t(4,n=c===Nc.noop),i.$$.dirty&272&&t(6,o=n||l)},t(5,r=!1),[s,a,u,c,n,r,o,m,l]}var Dc=class extends B{constructor(e){super(),N(this,e,Y3,G3,R,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},z3)}},Ep=Dc;function Q3(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=L("svg"),a&&a.c(),t=L("g"),n=L("path"),o=L("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"d","M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),Ce(e,u)},m(c,m){v(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,s,c,c[1],r?Re(s,c[1],m,null):Be(c[1]),null),Ce(e,u=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&b(e),a&&a.d(c)}}}function Z3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Oc=class extends B{constructor(e){super(),N(this,e,Z3,Q3,R,{})}},Ap=Oc;var Lp=require("@vkontakte/videoplayer-shared");function X3(i){be(i,"svelte-6gmlbk",".container.svelte-6gmlbk{display:flex;align-items:center}.expanded.svelte-6gmlbk{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.text.svelte-6gmlbk{font-size:15px;margin-left:8px}")}function Mp(i){let e;return{c(){e=S("span"),e.textContent=`${W("mobile_unmute")}`,f(e,"class","text svelte-6gmlbk")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function J3(i){let e,t,n,o;var r=i[4];function s(l,u){return{}}r&&(t=At(r,s(i)));let a=i[1]&&Mp(i);return{c(){e=S("div"),t&&M(t.$$.fragment),n=j(),a&&a.c(),f(e,"class","container svelte-6gmlbk"),f(e,"aria-hidden","true"),z(e,"expanded",i[1])},m(l,u){v(l,e,u),t&&E(t,e,null),_(e,n),a&&a.m(e,null),o=!0},p(l,u){if(u&16&&r!==(r=l[4])){if(t){ae();let c=t;p(c.$$.fragment,1,0,()=>{A(c,1)}),ue()}r?(t=At(r,s(l,u)),M(t.$$.fragment),d(t.$$.fragment,1),E(t,e,n)):t=null}l[1]?a||(a=Mp(l),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&z(e,"expanded",l[1])},i(l){o||(t&&d(t.$$.fragment,l),o=!0)},o(l){t&&p(t.$$.fragment,l),o=!1},d(l){l&&b(e),t&&A(t),a&&a.d()}}}function $3(i){let e,t,n;function o(s){i[6](s)}let r={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[J3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.testId=s[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(l.click=s[2]),a&8&&(l.ariaLabel=s[3]),a&146&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function e5(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=Lp.noop}=e,{ref:s=void 0}=e,a,l;function u(c){s=c,t(0,s)}return i.$$set=c=>{"muted"in c&&t(5,n=c.muted),"expanded"in c&&t(1,o=c.expanded),"click"in c&&t(2,r=c.click),"ref"in c&&t(0,s=c.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,a=n?W("tooltip_volume"):W("tooltip_volume_muted")),i.$$.dirty&2&&t(4,l=o?mr:Ap)},[s,o,r,a,l,n,u]}var Fc=class extends B{constructor(e){super(),N(this,e,e5,$3,R,{muted:5,expanded:1,click:2,ref:0},X3)}},xc=Fc;function t5(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=L("svg"),a&&a.c(),t=L("path"),n=L("path"),o=L("path"),f(t,"fill","currentColor"),f(t,"d","M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z"),f(t,"clip-rule","evenodd"),f(n,"fill","currentColor"),f(n,"d","m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z"),f(n,"class","hidden-not-active"),f(o,"fill","currentColor"),f(o,"d","m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z"),f(o,"class","hidden-active"),Ce(e,u)},m(c,m){v(c,e,m),a&&a.m(e,null),_(e,t),_(e,n),_(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,s,c,c[1],r?Re(s,c[1],m,null):Be(c[1]),null),Ce(e,u=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&b(e),a&&a.d(c)}}}function i5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Hc=class extends B{constructor(e){super(),N(this,e,i5,t5,R,{})}},Rp=Hc;function n5(i){be(i,"svelte-tmam00",'svg[data-testid="pip-icon--active"] .hidden-active,svg[data-testid="pip-icon"] .hidden-not-active{visibility:hidden;opacity:0}')}function o5(i){let e,t;return e=new Rp({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function r5(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=r=>{"isActive"in r&&t(0,o=r.isActive)},i.$$.update=()=>{i.$$.dirty&1&&t(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var qc=class extends B{constructor(e){super(),N(this,e,r5,o5,R,{isActive:0},n5)}},Vp=qc;var Bp=require("@vkontakte/videoplayer-shared");function s5(i){let e,t;return e=new Vp({props:{isActive:i[1]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function l5(i){let e,t,n;function o(s){i[3](s)}let r={testId:"btn-pip",ariaLabel:W("menu_pip"),click:i[2],$$slots:{default:[s5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&4&&(l.click=s[2]),a&18&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function a5(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=Bp.noop}=e;function s(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"isPictureInPictureActive"in a&&t(1,o=a.isPictureInPictureActive),"click"in a&&t(2,r=a.click)},[n,o,r,s]}var Uc=class extends B{constructor(e){super(),N(this,e,a5,l5,R,{ref:0,isPictureInPictureActive:1,click:2})}},Np=Uc;function u5(i){be(i,"svelte-sty291",".gutter.svelte-sty291{--gutterWidth:32px;--gutterHeight:12px;--togglerWidth:18px;--togglerHeight:18px;--togglerGap:calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px}.toggler.svelte-sty291{position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease}.toggler.enabled.svelte-sty291{background-color:var(--white);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}")}function c5(i){let e,t;return e=new Gr({props:{width:"14",height:"14"}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function f5(i){let e,t;return e=new Wo({props:{width:"14",height:"14",fill:"#000"}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function d5(i){let e,t,n,o,r,s=[f5,c5],a=[];function l(u,c){return u[1]?0:1}return n=l(i,-1),o=a[n]=s[n](i),{c(){e=S("span"),t=S("span"),o.c(),f(t,"class","toggler svelte-sty291"),z(t,"enabled",i[1]),f(e,"class","gutter svelte-sty291")},m(u,c){v(u,e,c),_(e,t),a[n].m(t,null),r=!0},p(u,c){let m=n;n=l(u,c),n!==m&&(ae(),p(a[m],1,1,()=>{a[m]=null}),ue(),o=a[n],o||(o=a[n]=s[n](u),o.c()),d(o,1),o.m(t,null)),(!r||c&2)&&z(t,"enabled",u[1])},i(u){r||(d(o),r=!0)},o(u){p(o),r=!1},d(u){u&&b(e),a[n].d()}}}function m5(i){let e,t,n;function o(s){i[4](s)}let r={click:i[3],$$slots:{default:[d5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new dt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,[a]){let l={};a&130&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function p5(i,e,t){let n,{ref:o=void 0}=e,r=et(),s=r.ui.autoplayNextEnabled$;V(i,s,c=>t(1,n=c));let a=r.actions.internal.setAutoplayNextEnabled;function l(){a(!n,!0)}function u(c){o=c,t(0,o)}return i.$$set=c=>{"ref"in c&&t(0,o=c.ref)},[o,n,s,l,u]}var zc=class extends B{constructor(e){super(),N(this,e,p5,m5,R,{ref:0},u5)}},Dp=zc;var s0=require("@vkontakte/videoplayer-shared");function _5(i){be(i,"svelte-1afsgkw",".wrapper-bottom.svelte-1afsgkw.svelte-1afsgkw{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px}.wrapper-bottom.svelte-1afsgkw>.svelte-1afsgkw{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-1afsgkw.svelte-1afsgkw{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-1afsgkw.svelte-1afsgkw{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index)}.wrapper-top-right.svelte-1afsgkw.svelte-1afsgkw{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index)}.wrapper-top-left.svelte-1afsgkw.svelte-1afsgkw{position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index)}.wrapper-middle-left.svelte-1afsgkw.svelte-1afsgkw,.wrapper-middle-left-second.svelte-1afsgkw.svelte-1afsgkw,.wrapper-middle-right.svelte-1afsgkw.svelte-1afsgkw{position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.wrapper-middle-left.svelte-1afsgkw.svelte-1afsgkw{left:12px}.wrapper-middle-left-second.svelte-1afsgkw.svelte-1afsgkw{left:64px}.wrapper-middle-right.svelte-1afsgkw.svelte-1afsgkw{right:12px}.controls.svelte-1afsgkw.svelte-1afsgkw{width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box}.controls.svelte-1afsgkw > *:not(:first-child){margin-left:8px}.hidden.svelte-1afsgkw.svelte-1afsgkw{visibility:hidden;opacity:0}.controls-hidden.svelte-1afsgkw.svelte-1afsgkw{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-1afsgkw.svelte-1afsgkw{transition:none}.overlay-mobile.svelte-1afsgkw.svelte-1afsgkw{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration)}@media screen and (orientation: portrait){.wrapper-top-right.fullscreen.svelte-1afsgkw.svelte-1afsgkw{top:16px}.wrapper-top-left.fullscreen.svelte-1afsgkw.svelte-1afsgkw{top:16px}.controls-wrapper.fullscreen.svelte-1afsgkw.svelte-1afsgkw{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-1afsgkw.svelte-1afsgkw{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-1afsgkw.svelte-1afsgkw{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-1afsgkw.svelte-1afsgkw{left:44px}.wrapper-middle-left-second.fullscreen.svelte-1afsgkw.svelte-1afsgkw{left:96px}.wrapper-middle-right.fullscreen.svelte-1afsgkw.svelte-1afsgkw{right:44px}.controls-wrapper.fullscreen.svelte-1afsgkw.svelte-1afsgkw{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function Op(i,e,t){let n=i.slice();return n[171]=e[t].iconUrl,n[172]=e[t].ariaLabel,n[173]=e[t].testId,n[174]=e[t].onClick,n[175]=e[t].tooltip,n}function Fp(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C=(!i[47]||i[49])&&xp(i),P=_t(i[52]),G=[];for(let F=0;F<P.length;F+=1)G[F]=Hp(Op(i,P,F));let x=F=>p(G[F],1,1,()=>{G[F]=null}),O=i[9]&&!i[11]&&qp(i),$=i[32]&&Up(i),le=i[33]&&zp(i),K=i[53]&&Wp(i),ee=i[35]&&Kp(i),H=i[29]&&jp(i),J=i[28]&&Gp(i),ke=i[27]&&Yp(i),q=i[30]&&Qp(i),ne=i[95]&&!i[23]&&Zp(i);return{c(){e=S("div"),t=j(),n=S("div"),C&&C.c(),o=j(),r=S("div");for(let F=0;F<G.length;F+=1)G[F].c();s=j(),O&&O.c(),a=j(),$&&$.c(),l=j(),le&&le.c(),u=j(),K&&K.c(),c=j(),ee&&ee.c(),m=j(),h=S("div"),H&&H.c(),y=j(),J&&J.c(),g=j(),ke&&ke.c(),T=j(),q&&q.c(),k=j(),ne&&ne.c(),D=Qe(),f(e,"class","overlay-mobile svelte-1afsgkw"),z(e,"hidden",!i[38]),f(n,"class","wrapper-top-left svelte-1afsgkw"),z(n,"hidden",!i[4]),z(n,"fullscreen",i[48]),f(r,"class","wrapper-top-right svelte-1afsgkw"),z(r,"hidden",!i[4]&&!i[21]),z(r,"fullscreen",i[48]),f(h,"class","wrapper-middle svelte-1afsgkw"),z(h,"hidden",!i[4]||i[23]||i[12]&&i[10])},m(F,_e){v(F,e,_e),v(F,t,_e),v(F,n,_e),C&&C.m(n,null),v(F,o,_e),v(F,r,_e);for(let oe=0;oe<G.length;oe+=1)G[oe]&&G[oe].m(r,null);_(r,s),O&&O.m(r,null),_(r,a),$&&$.m(r,null),_(r,l),le&&le.m(r,null),_(r,u),K&&K.m(r,null),_(r,c),ee&&ee.m(r,null),v(F,m,_e),v(F,h,_e),H&&H.m(h,null),_(h,y),J&&J.m(h,null),_(h,g),ke&&ke.m(h,null),_(h,T),q&&q.m(h,null),v(F,k,_e),ne&&ne.m(F,_e),v(F,D,_e),I=!0},p(F,_e){if((!I||_e[1]&128)&&z(e,"hidden",!F[38]),!F[47]||F[49]?C?(C.p(F,_e),_e[1]&327680&&d(C,1)):(C=xp(F),C.c(),d(C,1),C.m(n,null)):C&&(ae(),p(C,1,1,()=>{C=null}),ue()),(!I||_e[0]&16)&&z(n,"hidden",!F[4]),(!I||_e[1]&131072)&&z(n,"fullscreen",F[48]),_e[1]&2097152){P=_t(F[52]);let oe;for(oe=0;oe<P.length;oe+=1){let Q=Op(F,P,oe);G[oe]?(G[oe].p(Q,_e),d(G[oe],1)):(G[oe]=Hp(Q),G[oe].c(),d(G[oe],1),G[oe].m(r,s))}for(ae(),oe=P.length;oe<G.length;oe+=1)x(oe);ue()}F[9]&&!F[11]?O?(O.p(F,_e),_e[0]&2560&&d(O,1)):(O=qp(F),O.c(),d(O,1),O.m(r,a)):O&&(ae(),p(O,1,1,()=>{O=null}),ue()),F[32]?$?($.p(F,_e),_e[1]&2&&d($,1)):($=Up(F),$.c(),d($,1),$.m(r,l)):$&&(ae(),p($,1,1,()=>{$=null}),ue()),F[33]?le?(le.p(F,_e),_e[1]&4&&d(le,1)):(le=zp(F),le.c(),d(le,1),le.m(r,u)):le&&(ae(),p(le,1,1,()=>{le=null}),ue()),F[53]?K?(K.p(F,_e),_e[1]&4194304&&d(K,1)):(K=Wp(F),K.c(),d(K,1),K.m(r,c)):K&&(ae(),p(K,1,1,()=>{K=null}),ue()),F[35]?ee?(ee.p(F,_e),_e[1]&16&&d(ee,1)):(ee=Kp(F),ee.c(),d(ee,1),ee.m(r,null)):ee&&(ae(),p(ee,1,1,()=>{ee=null}),ue()),(!I||_e[0]&2097168)&&z(r,"hidden",!F[4]&&!F[21]),(!I||_e[1]&131072)&&z(r,"fullscreen",F[48]),F[29]?H?(H.p(F,_e),_e[0]&536870912&&d(H,1)):(H=jp(F),H.c(),d(H,1),H.m(h,y)):H&&(ae(),p(H,1,1,()=>{H=null}),ue()),F[28]?J?(J.p(F,_e),_e[0]&268435456&&d(J,1)):(J=Gp(F),J.c(),d(J,1),J.m(h,g)):J&&(ae(),p(J,1,1,()=>{J=null}),ue()),F[27]?ke?(ke.p(F,_e),_e[0]&134217728&&d(ke,1)):(ke=Yp(F),ke.c(),d(ke,1),ke.m(h,T)):ke&&(ae(),p(ke,1,1,()=>{ke=null}),ue()),F[30]?q?(q.p(F,_e),_e[0]&1073741824&&d(q,1)):(q=Qp(F),q.c(),d(q,1),q.m(h,null)):q&&(ae(),p(q,1,1,()=>{q=null}),ue()),(!I||_e[0]&8393744)&&z(h,"hidden",!F[4]||F[23]||F[12]&&F[10]),F[95]&&!F[23]?ne?(ne.p(F,_e),_e[0]&8388608&&d(ne,1)):(ne=Zp(F),ne.c(),d(ne,1),ne.m(D.parentNode,D)):ne&&(ae(),p(ne,1,1,()=>{ne=null}),ue())},i(F){if(!I){d(C);for(let _e=0;_e<P.length;_e+=1)d(G[_e]);d(O),d($),d(le),d(K),d(ee),d(H),d(J),d(ke),d(q),d(ne),I=!0}},o(F){p(C),G=G.filter(Boolean);for(let _e=0;_e<G.length;_e+=1)p(G[_e]);p(O),p($),p(le),p(K),p(ee),p(H),p(J),p(ke),p(q),p(ne),I=!1},d(F){F&&(b(e),b(t),b(n),b(o),b(r),b(m),b(h),b(k),b(D)),C&&C.d(),ti(G,F),O&&O.d(),$&&$.d(),le&&le.d(),K&&K.d(),ee&&ee.d(),H&&H.d(),J&&J.d(),ke&&ke.d(),q&&q.d(),ne&&ne.d(F)}}}function xp(i){let e,t,n;function o(s){i[131](s)}let r={muted:i[50],expanded:i[47]&&!i[68]&&i[51],click:i[104]};return i[17].volume!==void 0&&(r.ref=i[17].volume),e=new xc({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[1]&524288&&(l.muted=s[50]),a[1]&1114112&&(l.expanded=s[47]&&!s[68]&&s[51]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].volume,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Hp(i){let e,t;return e=new Ep({props:{iconUrl:i[171],ariaLabel:i[172]??i[175],testId:i[173],onClick:i[174]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[1]&2097152&&(r.iconUrl=n[171]),o[1]&2097152&&(r.ariaLabel=n[172]??n[175]),o[1]&2097152&&(r.testId=n[173]),o[1]&2097152&&(r.onClick=n[174]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function qp(i){let e,t,n;function o(s){i[132](s)}let r={};return i[17].autoplayNextToggle!==void 0&&(r.ref=i[17].autoplayNextToggle),e=new Dp({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&131072&&(t=!0,l.ref=s[17].autoplayNextToggle,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Up(i){let e,t,n;function o(s){i[133](s)}let r={isMobile:!0,click:i[102],state:i[22]};return i[17].chromecast!==void 0&&(r.ref=i[17].chromecast),e=new kl({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[0]&4194304&&(l.state=s[22]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].chromecast,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function zp(i){let e,t,n;function o(s){i[134](s)}let r={click:i[103],isPictureInPictureActive:i[20]};return i[17].pip!==void 0&&(r.ref=i[17].pip),e=new Np({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[0]&1048576&&(l.isPictureInPictureActive=s[20]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].pip,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Wp(i){let e,t;return e=new ys({props:{ref$:i[105]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Kp(i){let e,t,n;function o(s){i[135](s)}let r={click:i[60],targetUrl:i[8],logoClickable:i[7]};return i[17].vkLogo!==void 0&&(r.ref=i[17].vkLogo),e=new yl({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[0]&256&&(l.targetUrl=s[8]),a[0]&128&&(l.logoClickable=s[7]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].vkLogo,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function jp(i){let e,t,n;function o(s){i[136](s)}let r={click:i[61].bind(null,!0),type:"prev",isMobile:!0};return i[17].prevButton!==void 0&&(r.ref=i[17].prevButton),e=new jr({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&131072&&(t=!0,l.ref=s[17].prevButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Gp(i){let e,t,n;function o(s){i[137](s)}let r={disabled:i[45],click:i[59],isMobile:!0,isPlaying:i[25]};return i[17].playButton!==void 0&&(r.ref=i[17].playButton),e=new Cs({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[1]&16384&&(l.disabled=s[45]),a[0]&33554432&&(l.isPlaying=s[25]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].playButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Yp(i){let e,t,n;function o(s){i[138](s)}let r={disabled:i[44],click:i[59],isMobile:!0};return i[17].replayButton!==void 0&&(r.ref=i[17].replayButton),e=new ws({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[1]&8192&&(l.disabled=s[44]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].replayButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Qp(i){let e,t,n;function o(s){i[139](s)}let r={click:i[62].bind(null,!0),type:"next",isMobile:!0};return i[17].nextButton!==void 0&&(r.ref=i[17].nextButton),e=new jr({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&131072&&(t=!0,l.ref=s[17].nextButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Zp(i){let e,t,n,o,r=i[98]&&h5(i),s=i[40]&&Xp(i),a=i[97]&&g5(i);return{c(){r&&r.c(),e=j(),s&&s.c(),t=j(),a&&a.c(),n=Qe()},m(l,u){r&&r.m(l,u),v(l,e,u),s&&s.m(l,u),v(l,t,u),a&&a.m(l,u),v(l,n,u),o=!0},p(l,u){l[98]&&r.p(l,u),l[40]?s?(s.p(l,u),u[1]&512&&d(s,1)):(s=Xp(l),s.c(),d(s,1),s.m(t.parentNode,t)):s&&(ae(),p(s,1,1,()=>{s=null}),ue()),l[97]&&a.p(l,u)},i(l){o||(d(r),d(s),d(a),o=!0)},o(l){p(r),p(s),p(a),o=!1},d(l){l&&(b(e),b(t),b(n)),r&&r.d(l),s&&s.d(l),a&&a.d(l)}}}function h5(i){let e,t,n,o,r,s;function a(u){i[140](u)}let l={hidden:!i[4],disabled:i[43],click:i[15]};return i[17].playPrevChapterButton!==void 0&&(l.ref=i[17].playPrevChapterButton),t=new Ol({props:l}),ve.push(()=>ze(t,"ref",a)),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","wrapper-middle-left svelte-1afsgkw"),z(e,"fullscreen",i[48]),z(e,"hidden",!i[4])},m(u,c){v(u,e,c),E(t,e,null),o=!0,r||(s=Te(e,"click",i[106]),r=!0)},p(u,c){let m={};c[0]&16&&(m.hidden=!u[4]),c[1]&4096&&(m.disabled=u[43]),c[0]&32768&&(m.click=u[15]),!n&&c[0]&131072&&(n=!0,m.ref=u[17].playPrevChapterButton,Ue(()=>n=!1)),t.$set(m),(!o||c[1]&131072)&&z(e,"fullscreen",u[48]),(!o||c[0]&16)&&z(e,"hidden",!u[4])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){p(t.$$.fragment,u),o=!1},d(u){u&&b(e),A(t),r=!1,s()}}}function Xp(i){let e,t,n,o,r;function s(l){i[141](l)}let a={hidden:!i[4]&&!i[54],disabled:i[46],click:i[101].toggle,graphIsOpened:i[54]};return i[17].interactiveGraphButton!==void 0&&(a.ref=i[17].interactiveGraphButton),t=new xl({props:a}),ve.push(()=>ze(t,"ref",s)),{c(){e=S("div"),M(t.$$.fragment),f(e,"class",o=nd(i[98]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-1afsgkw"),z(e,"fullscreen",i[48]),z(e,"hidden",!i[4]&&!i[54])},m(l,u){v(l,e,u),E(t,e,null),r=!0},p(l,u){let c={};u[0]&16|u[1]&8388608&&(c.hidden=!l[4]&&!l[54]),u[1]&32768&&(c.disabled=l[46]),u[1]&8388608&&(c.graphIsOpened=l[54]),!n&&u[0]&131072&&(n=!0,c.ref=l[17].interactiveGraphButton,Ue(()=>n=!1)),t.$set(c),(!r||u[1]&131072)&&z(e,"fullscreen",l[48]),(!r||u[0]&16|u[1]&8388608)&&z(e,"hidden",!l[4]&&!l[54])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){p(t.$$.fragment,l),r=!1},d(l){l&&b(e),A(t)}}}function g5(i){let e,t,n,o,r,s;function a(u){i[142](u)}let l={hidden:!i[4],disabled:i[42],click:i[14]};return i[17].seekToInteractiveButton!==void 0&&(l.ref=i[17].seekToInteractiveButton),t=new Fl({props:l}),ve.push(()=>ze(t,"ref",a)),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","wrapper-middle-right svelte-1afsgkw"),z(e,"fullscreen",i[48]),z(e,"hidden",!i[4])},m(u,c){v(u,e,c),E(t,e,null),o=!0,r||(s=Te(e,"click",i[107]),r=!0)},p(u,c){let m={};c[0]&16&&(m.hidden=!u[4]),c[1]&2048&&(m.disabled=u[42]),c[0]&16384&&(m.click=u[14]),!n&&c[0]&131072&&(n=!0,m.ref=u[17].seekToInteractiveButton,Ue(()=>n=!1)),t.$set(m),(!o||c[1]&131072)&&z(e,"fullscreen",u[48]),(!o||c[0]&16)&&z(e,"hidden",!u[4])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){p(t.$$.fragment,u),o=!1},d(u){u&&b(e),A(t),r=!1,s()}}}function Jp(i){let e,t,n,o,r,s=i[49]&&$p(i),a=i[26]&&e0(i);return o=new Cl({props:{position:i[55],duration:i[56]}}),{c(){s&&s.c(),e=j(),a&&a.c(),t=j(),n=S("div"),M(o.$$.fragment),f(n,"class","wrapper-bottom ads-timeline-mobile svelte-1afsgkw"),z(n,"fullscreen",i[48])},m(l,u){s&&s.m(l,u),v(l,e,u),a&&a.m(l,u),v(l,t,u),v(l,n,u),E(o,n,null),r=!0},p(l,u){l[49]?s?(s.p(l,u),u[1]&262144&&d(s,1)):(s=$p(l),s.c(),d(s,1),s.m(e.parentNode,e)):s&&(ae(),p(s,1,1,()=>{s=null}),ue()),l[26]?a?(a.p(l,u),u[0]&67108864&&d(a,1)):(a=e0(l),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(ae(),p(a,1,1,()=>{a=null}),ue());let c={};u[1]&16777216&&(c.position=l[55]),u[1]&33554432&&(c.duration=l[56]),o.$set(c),(!r||u[1]&131072)&&z(n,"fullscreen",l[48])},i(l){r||(d(s),d(a),d(o.$$.fragment,l),r=!0)},o(l){p(s),p(a),p(o.$$.fragment,l),r=!1},d(l){l&&(b(e),b(t),b(n)),s&&s.d(l),a&&a.d(l),A(o)}}}function $p(i){let e,t,n,o;function r(a){i[143](a)}let s={muted:i[50],expanded:!1,click:i[104]};return i[17].volume!==void 0&&(s.ref=i[17].volume),t=new xc({props:s}),ve.push(()=>ze(t,"ref",r)),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","wrapper-top-right svelte-1afsgkw"),z(e,"fullscreen",i[48])},m(a,l){v(a,e,l),E(t,e,null),o=!0},p(a,l){let u={};l[1]&524288&&(u.muted=a[50]),!n&&l[0]&131072&&(n=!0,u.ref=a[17].volume,Ue(()=>n=!1)),t.$set(u),(!o||l[1]&131072)&&z(e,"fullscreen",a[48])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&b(e),A(t)}}}function e0(i){let e,t,n,o;function r(a){i[144](a)}let s={disabled:i[45],click:i[59],isMobile:!0,isPlaying:!i[26]};return i[17].playButton!==void 0&&(s.ref=i[17].playButton),t=new Cs({props:s}),ve.push(()=>ze(t,"ref",r)),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","wrapper-middle svelte-1afsgkw")},m(a,l){v(a,e,l),E(t,e,null),o=!0},p(a,l){let u={};l[1]&16384&&(u.disabled=a[45]),l[0]&67108864&&(u.isPlaying=!a[26]),!n&&l[0]&131072&&(n=!0,u.ref=a[17].playButton,Ue(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&b(e),A(t)}}}function b5(i){let e,t,n;function o(s){i[145](s)}let r={disabled:i[44],$$slots:{default:[v5]},$$scope:{ctx:i}};return i[17].replayButton!==void 0&&(r.ref=i[17].replayButton),e=new Xi({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[1]&8192&&(l.disabled=s[44]),a[1]&8192|a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&131072&&(t=!0,l.ref=s[17].replayButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function v5(i){let e,t;return e=new ws({props:{disabled:i[44],click:i[94]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[1]&8192&&(r.disabled=n[44]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function t0(i){let e,t,n;function o(s){i[146](s)}let r={$$slots:{default:[y5]},$$scope:{ctx:i}};return i[17].liveButton!==void 0&&(r.ref=i[17].liveButton),e=new Xi({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[0]&65536|a[1]&1024|a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&131072&&(t=!0,l.ref=s[17].liveButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function y5(i){let e,t;return e=new ql({props:{isLiveActive:i[16],isMobile:!0,ariaLabel:i[41]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&65536&&(r.isLiveActive=n[16]),o[1]&1024&&(r.ariaLabel=n[41]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function i0(i){let e,t,n;function o(s){i[147](s)}let r={showDuration:i[31],position:i[5]?i[55]:i[57],duration:i[5]?i[56]:i[58],isMobile:!0};return i[17].time!==void 0&&(r.ref=i[17].time),e=new gl({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[1]&1&&(l.showDuration=s[31]),a[0]&32|a[1]&83886080&&(l.position=s[5]?s[55]:s[57]),a[0]&32|a[1]&167772160&&(l.duration=s[5]?s[56]:s[58]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].time,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function n0(i){let e,t,n,o;return n=new Tl({props:{position:i[57],duration:i[58],timeCodes:i[82]}}),{c(){e=S("div"),e.textContent="\xB7",t=j(),M(n.$$.fragment),f(e,"aria-hidden","true")},m(r,s){v(r,e,s),v(r,t,s),E(n,r,s),o=!0},p(r,s){let a={};s[1]&67108864&&(a.position=r[57]),s[1]&134217728&&(a.duration=r[58]),n.$set(a)},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){p(n.$$.fragment,r),o=!1},d(r){r&&(b(e),b(t)),A(n,r)}}}function k5(i){let e,t,n=i[39]&&n0(i);return{c(){n&&n.c(),e=Qe()},m(o,r){n&&n.m(o,r),v(o,e,r),t=!0},p(o,r){o[39]?n?(n.p(o,r),r[1]&256&&d(n,1)):(n=n0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),p(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function o0(i){let e,t,n;function o(s){i[149](s)}let r={$$slots:{default:[w5]},$$scope:{ctx:i}};return i[17].settings!==void 0&&(r.ref=i[17].settings),e=new Xi({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&131072&&(t=!0,l.ref=s[17].settings,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function w5(i){let e,t;return e=new ys({props:{ref$:i[105]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function r0(i){let e,t,n;function o(s){i[150](s)}let r={$$slots:{default:[C5]},$$scope:{ctx:i}};return i[17].fullscreen!==void 0&&(r.ref=i[17].fullscreen),e=new Xi({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[0]&8192|a[1]&131072|a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&131072&&(t=!0,l.ref=s[17].fullscreen,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function C5(i){let e,t;return e=new vl({props:{click:i[13],isFullscreen:i[48]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&8192&&(r.click=n[13]),o[1]&131072&&(r.isFullscreen=n[48]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function S5(i){let e,t,n;function o(s){i[154](s)}let r={};return i[17].interactiveTimeIndicator!==void 0&&(r.ref=i[17].interactiveTimeIndicator),e=new Nl({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&131072&&(t=!0,l.ref=s[17].interactiveTimeIndicator,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function T5(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C=!i[5]&&Fp(i),P=i[5]&&i[24]!=="inactive"&&Jp(i),G=i[95]&&b5(i),x=!i[5]&&i[19]&&t0(i),O=i[37]&&i0(i);function $(q){i[148](q)}let le={className:"w-max",disabled:!i[39],$$slots:{default:[k5]},$$scope:{ctx:i}};i[17].episodes!==void 0&&(le.ref=i[17].episodes),u=new Xi({props:le}),ve.push(()=>ze(u,"ref",$));let K=i[34]&&o0(i),ee=i[36]&&r0(i);function H(q){i[152](q)}let J={isAds:i[5],canRewindLive:i[6],isRewindableLive:i[18]};i[17].timeline!==void 0&&(J.ref=i[17].timeline),g=new Sl({props:J}),ve.push(()=>ze(g,"ref",H));let ke=i[99]&&S5(i);return{c(){C&&C.c(),e=j(),P&&P.c(),t=j(),n=S("div"),o=S("div"),r=S("div"),G&&G.c(),s=j(),x&&x.c(),a=j(),O&&O.c(),l=j(),M(u.$$.fragment),m=j(),K&&K.c(),h=j(),ee&&ee.c(),y=j(),M(g.$$.fragment),k=j(),ke&&ke.c(),D=Qe(),f(r,"class","controls svelte-1afsgkw"),z(r,"mobile",!0),f(o,"class","controls-wrapper svelte-1afsgkw"),z(o,"fullscreen",i[48]),f(n,"class","wrapper-bottom svelte-1afsgkw"),z(n,"hidden",i[2]),z(n,"controls-hidden",!i[4]),z(n,"no-smooth",i[3]),z(n,"mobile",!0)},m(q,ne){C&&C.m(q,ne),v(q,e,ne),P&&P.m(q,ne),v(q,t,ne),v(q,n,ne),_(n,o),_(o,r),G&&G.m(r,null),_(r,s),x&&x.m(r,null),_(r,a),O&&O.m(r,null),_(r,l),E(u,r,null),_(r,m),K&&K.m(r,null),_(r,h),ee&&ee.m(r,null),i[151](r),_(o,y),E(g,o,null),i[153](n),v(q,k,ne),ke&&ke.m(q,ne),v(q,D,ne),I=!0},p(q,ne){q[5]?C&&(ae(),p(C,1,1,()=>{C=null}),ue()):C?(C.p(q,ne),ne[0]&32&&d(C,1)):(C=Fp(q),C.c(),d(C,1),C.m(e.parentNode,e)),q[5]&&q[24]!=="inactive"?P?(P.p(q,ne),ne[0]&16777248&&d(P,1)):(P=Jp(q),P.c(),d(P,1),P.m(t.parentNode,t)):P&&(ae(),p(P,1,1,()=>{P=null}),ue()),q[95]&&G.p(q,ne),!q[5]&&q[19]?x?(x.p(q,ne),ne[0]&524320&&d(x,1)):(x=t0(q),x.c(),d(x,1),x.m(r,a)):x&&(ae(),p(x,1,1,()=>{x=null}),ue()),q[37]?O?(O.p(q,ne),ne[1]&64&&d(O,1)):(O=i0(q),O.c(),d(O,1),O.m(r,l)):O&&(ae(),p(O,1,1,()=>{O=null}),ue());let F={};ne[1]&256&&(F.disabled=!q[39]),ne[1]&201326848|ne[5]&8388608&&(F.$$scope={dirty:ne,ctx:q}),!c&&ne[0]&131072&&(c=!0,F.ref=q[17].episodes,Ue(()=>c=!1)),u.$set(F),q[34]?K?(K.p(q,ne),ne[1]&8&&d(K,1)):(K=o0(q),K.c(),d(K,1),K.m(r,h)):K&&(ae(),p(K,1,1,()=>{K=null}),ue()),q[36]?ee?(ee.p(q,ne),ne[1]&32&&d(ee,1)):(ee=r0(q),ee.c(),d(ee,1),ee.m(r,null)):ee&&(ae(),p(ee,1,1,()=>{ee=null}),ue());let _e={};ne[0]&32&&(_e.isAds=q[5]),ne[0]&64&&(_e.canRewindLive=q[6]),ne[0]&262144&&(_e.isRewindableLive=q[18]),!T&&ne[0]&131072&&(T=!0,_e.ref=q[17].timeline,Ue(()=>T=!1)),g.$set(_e),(!I||ne[1]&131072)&&z(o,"fullscreen",q[48]),(!I||ne[0]&4)&&z(n,"hidden",q[2]),(!I||ne[0]&16)&&z(n,"controls-hidden",!q[4]),(!I||ne[0]&8)&&z(n,"no-smooth",q[3]),q[99]&&ke.p(q,ne)},i(q){I||(d(C),d(P),d(G),d(x),d(O),d(u.$$.fragment,q),d(K),d(ee),d(g.$$.fragment,q),d(ke),I=!0)},o(q){p(C),p(P),p(G),p(x),p(O),p(u.$$.fragment,q),p(K),p(ee),p(g.$$.fragment,q),p(ke),I=!1},d(q){q&&(b(e),b(t),b(n),b(k),b(D)),C&&C.d(q),P&&P.d(q),G&&G.d(),x&&x.d(),O&&O.d(),A(u),K&&K.d(),ee&&ee.d(),i[151](null),A(g),i[153](null),ke&&ke.d(q)}}}function I5(i,e,t){let n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C,P,G,x,O,$,le,K,ee,H,J,ke,q,ne,F,_e,oe,Q,Z,se,Ze,Je,Pe,{bottomHidden:Se}=e,{bottomNoSmooth:Ae}=e,{showControls:We}=e,{playerControlsWrapperRef:X=void 0}=e,{playerControlsRef:he=void 0}=e,{isAds:Ie=!1}=e,{canRewindLive:Ge}=e,{logoClickable:tt}=e,{logoHidden:it}=e,{logoTargetUrl:rt=""}=e,{showAutoplayNext:$e}=e,{showNextPrevButtons:pe}=e,{nextButtonActive:Ee}=e,{prevButtonActive:Me}=e,{isOneVideoPlaylist:Xe=!1}=e,{customFullscreenSupported:Ye=!0}=e,{endScreenShown:Oe}=e,{toggleFullscreen:fe}=e,{seekToInteractive:ct}=e,{playPrevChapter:ht}=e,{onDisabledPlayPrevChapterClick:gt}=e,{onDisabledSeekToInteractiveClick:bt}=e,Fe=et(),wt=Nn(),Ot=It(),Ut=Fe.actions.internal.toggleMuted,Qt=Fe.actions.internal.togglePlay,Ht=Fe.actions.internal.pause,lt=Fe.actions.internal.prevVideoClick,Tt=Fe.actions.internal.nextVideoClick,Mt=Fe.callbacks?.onAudioDoesNotExistHint,Lt=Fe.callbacks?.onAudioDisabledHint,yi=Fe.playerPhase;V(i,yi,te=>t(127,le=te));let Kt=Fe.state.duration$;V(i,Kt,te=>t(58,Pe=te));let ye=Fe.state.positionWithScrubbing$;V(i,ye,te=>t(57,Je=te));let Ft=Fe.state.playbackState$;V(i,Ft,te=>t(121,y=te));let Rt=Fe.state.isAudioAvailable$;V(i,Rt,te=>t(47,g=te));let Zt=Fe.state.isAudioDisabled,xt=Fe.state.isEnded$;V(i,xt,te=>t(128,ee=te));let Pt=Fe.state.isLive$;V(i,Pt,te=>t(19,P=te));let Vt=Fe.state.muted$;V(i,Vt,te=>t(50,F=te));let ki=Fe.state.isActiveLive$;V(i,ki,te=>t(125,I=te));let oi=Fe.state.isRewindableLive$;V(i,oi,te=>t(18,C=te));let wi=Fe.ui.scrubbingInProgress;V(i,wi,te=>t(23,K=te));let Li=Fe.ui.mobileNotReportControlHidden$;V(i,Li,te=>t(21,O=te));let ui=Fe.ui.isPictureInPictureActive$;V(i,ui,te=>t(20,x=te));let _i=Fe.ui.pictureInPictureType$;V(i,_i,te=>t(126,G=te));let hi=Fe.ui.mobileUnmuteButtonExpanded;V(i,hi,te=>t(51,_e=te));let Bt=Fe.ui.mobileUnmuteButtonVisible;V(i,Bt,te=>t(49,ne=te));let Fi=Fe.ui.settingsMenu.visible$;V(i,Fi,te=>t(119,m=te));let Nt=Fe.ui.settingsMenu.openedByBtnKeyboard$;V(i,Nt,te=>t(118,c=te));let Yt=Fe.ui.controls,xi=Fe.actions.internal.getVideoEpisodes(),Ci=Fe.webApi.pictureInPictureApi,Si=Fe.state.chromecastState$;V(i,Si,te=>t(22,$=te));let Ti=Fe.state.crashed$;V(i,Ti,te=>t(53,Q=te));let ge=Yt.disabledControls$;V(i,ge,te=>t(129,J=te));let pt=Fe.ui.startedByKeyboard$;V(i,pt,te=>t(117,u=te));let Hi=Fe.ui.currentGridType$;V(i,Hi,te=>t(124,D=te));let pn=Fe.ads.duration;V(i,pn,te=>t(56,Ze=te));let gi=Fe.ads.position;V(i,gi,te=>t(55,se=te));let ci=Fe.ads.playbackState;V(i,ci,te=>t(24,H=te));let fi=Fe.ui.isFullscreen;V(i,fi,te=>t(48,q=te));let bi=Fe.ui.playerSize;V(i,bi,te=>t(123,k=te));let wn=Fe.ui.additionalButtonsDeprecated$;V(i,wn,te=>t(52,oe=te));let qi=Fe.actions.internal.getVideoElement,_n=Fe.actions.internal.replayInteractive,ri=Fe.state.isInteractive,Ri=Fe.state.isInteractiveTime$;V(i,Ri,te=>t(122,T=te));let Ui=Fe.state.showInteractiveGraph,$i=Fe.state.showSeekToInteractive,Vi=Fe.state.showPlayPrevChapter,hn=Fe.state.showInteractiveTimeIndicator,Xt=wt.seekToInteractiveDisabledTooltip$;V(i,Xt,te=>t(130,ke=te));let On=wt.graphIsOpened$;V(i,On,te=>t(54,Z=te));let Ii,en,tn,nn,zi,Wi,Pi,vi,Bi,Jt,si,nt,Ei,qt,di,Ai,on,gn,Mi,Ki,$t,je={},bn=(0,s0.debounceFn)(Vl,260),rn=()=>Fe.actions.internal.toggleChromecast();function ji(){qo({isAudioDisabled:Zt,audioDisabledHintCallback:Lt,isAudioAvailable:g,audioIsNotExistHintCallback:Mt})&&Ut()}async function sn(){Ci?.isActive()?await Ci?.remove():await Ci?.request()}function Gi(){!Zt&&g&&Bt.set(!1),ji()}let Yi="",Kn=(te,In)=>{if(!te){t(41,Yi=W("tooltip_live"));return}In===Qr.PlaybackState.PAUSED&&t(41,Yi=W("tooltip_play"))},Fn,mi=Ne();V(i,mi,te=>t(120,h=te));let xn=()=>{l&&gt(Ii)},vn=()=>{r&&bt(en)};function Cn(te){i.$$.not_equal(je.volume,te)&&(je.volume=te,t(17,je))}function Sn(te){i.$$.not_equal(je.autoplayNextToggle,te)&&(je.autoplayNextToggle=te,t(17,je))}function ln(te){i.$$.not_equal(je.chromecast,te)&&(je.chromecast=te,t(17,je))}function yn(te){i.$$.not_equal(je.pip,te)&&(je.pip=te,t(17,je))}function Ni(te){i.$$.not_equal(je.vkLogo,te)&&(je.vkLogo=te,t(17,je))}function Qi(te){i.$$.not_equal(je.prevButton,te)&&(je.prevButton=te,t(17,je))}function Hn(te){i.$$.not_equal(je.playButton,te)&&(je.playButton=te,t(17,je))}function to(te){i.$$.not_equal(je.replayButton,te)&&(je.replayButton=te,t(17,je))}function io(te){i.$$.not_equal(je.nextButton,te)&&(je.nextButton=te,t(17,je))}function ei(te){i.$$.not_equal(je.playPrevChapterButton,te)&&(je.playPrevChapterButton=te,t(17,je))}function no(te){i.$$.not_equal(je.interactiveGraphButton,te)&&(je.interactiveGraphButton=te,t(17,je))}function oo(te){i.$$.not_equal(je.seekToInteractiveButton,te)&&(je.seekToInteractiveButton=te,t(17,je))}function jn(te){i.$$.not_equal(je.volume,te)&&(je.volume=te,t(17,je))}function ro(te){i.$$.not_equal(je.playButton,te)&&(je.playButton=te,t(17,je))}function so(te){i.$$.not_equal(je.replayButton,te)&&(je.replayButton=te,t(17,je))}function Gn(te){i.$$.not_equal(je.liveButton,te)&&(je.liveButton=te,t(17,je))}function Yn(te){i.$$.not_equal(je.time,te)&&(je.time=te,t(17,je))}function Tn(te){i.$$.not_equal(je.episodes,te)&&(je.episodes=te,t(17,je))}function Qn(te){i.$$.not_equal(je.settings,te)&&(je.settings=te,t(17,je))}function go(te){i.$$.not_equal(je.fullscreen,te)&&(je.fullscreen=te,t(17,je))}function bo(te){ve[te?"unshift":"push"](()=>{he=te,t(1,he)})}function Di(te){i.$$.not_equal(je.timeline,te)&&(je.timeline=te,t(17,je))}function ie(te){ve[te?"unshift":"push"](()=>{X=te,t(0,X)})}function vt(te){i.$$.not_equal(je.interactiveTimeIndicator,te)&&(je.interactiveTimeIndicator=te,t(17,je))}return i.$$set=te=>{"bottomHidden"in te&&t(2,Se=te.bottomHidden),"bottomNoSmooth"in te&&t(3,Ae=te.bottomNoSmooth),"showControls"in te&&t(4,We=te.showControls),"playerControlsWrapperRef"in te&&t(0,X=te.playerControlsWrapperRef),"playerControlsRef"in te&&t(1,he=te.playerControlsRef),"isAds"in te&&t(5,Ie=te.isAds),"canRewindLive"in te&&t(6,Ge=te.canRewindLive),"logoClickable"in te&&t(7,tt=te.logoClickable),"logoHidden"in te&&t(108,it=te.logoHidden),"logoTargetUrl"in te&&t(8,rt=te.logoTargetUrl),"showAutoplayNext"in te&&t(9,$e=te.showAutoplayNext),"showNextPrevButtons"in te&&t(10,pe=te.showNextPrevButtons),"nextButtonActive"in te&&t(109,Ee=te.nextButtonActive),"prevButtonActive"in te&&t(110,Me=te.prevButtonActive),"isOneVideoPlaylist"in te&&t(11,Xe=te.isOneVideoPlaylist),"customFullscreenSupported"in te&&t(111,Ye=te.customFullscreenSupported),"endScreenShown"in te&&t(12,Oe=te.endScreenShown),"toggleFullscreen"in te&&t(13,fe=te.toggleFullscreen),"seekToInteractive"in te&&t(14,ct=te.seekToInteractive),"playPrevChapter"in te&&t(15,ht=te.playPrevChapter),"onDisabledPlayPrevChapterClick"in te&&t(112,gt=te.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in te&&t(113,bt=te.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&64&&(en=W(ke)),i.$$.dirty[4]&32&&t(116,n=J.has("EPISODE_BUTTON")),i.$$.dirty[4]&32&&t(46,o=J.has("GRAPH_BUTTON")),i.$$.dirty[4]&32&&t(42,r=J.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[4]&32&&t(45,s=J.has("PLAY_BUTTON")),i.$$.dirty[4]&32&&t(44,a=J.has("REPLAY_BUTTON")),i.$$.dirty[4]&32&&t(43,l=J.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[3]&268435456&&t(25,tn=y===Qr.PlaybackState.PLAYING),i.$$.dirty[0]&16777216&&t(26,nn=H==="paused"),i.$$.dirty[0]&32|i.$$.dirty[4]&16&&t(27,zi=ee&&!Ie&&!ri),i.$$.dirty[0]&32|i.$$.dirty[4]&16&&t(28,Wi=!ee||Ie),i.$$.dirty[0]&1056|i.$$.dirty[3]&131072&&t(29,Pi=pe&&!Ie&&Me),i.$$.dirty[0]&1056|i.$$.dirty[3]&65536&&t(30,vi=pe&&!Ie&&Ee),i.$$.dirty[3]&1073741824&&t(114,Bi=k.width>300),i.$$.dirty[3]&1073741824&&t(31,Jt=k.width>400),i.$$.dirty[0]&8388608&&t(115,si=K),i.$$.dirty[0]&7340032|i.$$.dirty[4]&4&&t(32,nt=$!==Qr.ChromecastState.NOT_AVAILABLE&&!(x&&G===1)&&!O&&!ri),i.$$.dirty[0]&6291456|i.$$.dirty[3]&4194304|i.$$.dirty[4]&12){let te=le==="LiveWaitingStart";t(33,Ei=!!Ci&&$!==Qr.ChromecastState.CONNECTED&&!O&&(G===1&&te||!te)&&!si&&!ri)}i.$$.dirty[3]&4194304|i.$$.dirty[4]&1&&t(34,qt=!si&&pi(D,"s")),i.$$.dirty[3]&1073774592&&t(35,di=!it&&k.width>350),i.$$.dirty[0]&1048576|i.$$.dirty[3]&4456448|i.$$.dirty[4]&4&&t(36,Ai=Ot.features.fullscreen&&!(x&&G===1)&&(ri?Ye:!0)&&!si),i.$$.dirty[0]&524320|i.$$.dirty[3]&1077936128&&t(37,on=(!P||Ie)&&k.width>260&&!si&&!(Ot.features.interactiveHideTime&&ri)),i.$$.dirty[0]&16|i.$$.dirty[3]&67108864&&t(38,gn=m||We),i.$$.dirty[0]&524320|i.$$.dirty[3]&14680064&&t(39,Mi=!Ie&&!P&&!!xi?.length&&Bi&&!n&&!si),i.$$.dirty[0]&262144|i.$$.dirty[4]&2&&t(16,Ki=!C||I),i.$$.dirty[4]&1&&t(40,$t=Ui&&pi(D,"m")),i.$$.dirty[0]&131088|i.$$.dirty[3]&1610612736&&bn(qi(),Yt,je,We),i.$$.dirty[0]&65536|i.$$.dirty[3]&268435456&&Kn(Ki,y),i.$$.dirty[3]&201326592&&h&&Nr(h,m,Nt),i.$$.dirty[3]&100663296&&mo(Fn,m,c),i.$$.dirty[0]&131072|i.$$.dirty[3]&16777216&&Bl(pt,u,je.playButton)},Ii=W(Fe.state.playPrevChapterDisabledTooltip),[X,he,Se,Ae,We,Ie,Ge,tt,rt,$e,pe,Xe,Oe,fe,ct,ht,Ki,je,C,P,x,O,$,K,H,tn,nn,zi,Wi,Pi,vi,Jt,nt,Ei,qt,di,Ai,on,gn,Mi,$t,Yi,r,l,a,s,o,g,q,ne,F,_e,oe,Q,Z,se,Ze,Je,Pe,Qt,Ht,lt,Tt,yi,Kt,ye,Ft,Rt,Zt,xt,Pt,Vt,ki,oi,wi,Li,ui,_i,hi,Bt,Fi,Nt,xi,Si,Ti,ge,pt,Hi,pn,gi,ci,fi,bi,wn,_n,ri,Ri,$i,Vi,hn,Xt,On,rn,sn,Gi,mi,xn,vn,it,Ee,Me,Ye,gt,bt,Bi,si,n,u,c,m,h,y,T,k,D,I,G,le,ee,J,ke,Cn,Sn,ln,yn,Ni,Qi,Hn,to,io,ei,no,oo,jn,ro,so,Gn,Yn,Tn,Qn,go,bo,Di,ie,vt]}var Wc=class extends B{constructor(e){super(),N(this,e,I5,T5,R,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:7,logoHidden:108,logoTargetUrl:8,showAutoplayNext:9,showNextPrevButtons:10,nextButtonActive:109,prevButtonActive:110,isOneVideoPlaylist:11,customFullscreenSupported:111,endScreenShown:12,toggleFullscreen:13,seekToInteractive:14,playPrevChapter:15,onDisabledPlayPrevChapterClick:112,onDisabledSeekToInteractiveClick:113},_5,[-1,-1,-1,-1,-1,-1])}},l0=Wc;function a0(i){let e,t,n,o,r=[E5,P5],s=[];function a(l,u){return l[23]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Qe()},m(l,u){s[e].m(l,u),v(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),s[e].d(l)}}}function P5(i){let e,t,n,o;function r(l){i[27](l)}function s(l){i[28](l)}let a={bottomHidden:i[2],bottomNoSmooth:i[3],showControls:i[4],isAds:i[5],canRewindLive:i[6],logoClickable:i[7],logoHidden:i[8],logoTargetUrl:i[9],showNextPrevButtons:i[10],nextButtonActive:i[12],prevButtonActive:i[13],customFullscreenSupported:i[15],toggleFullscreen:i[17],seekToInteractive:i[18],playPrevChapter:i[19]};return i[0]!==void 0&&(a.playerControlsWrapperRef=i[0]),i[1]!==void 0&&(a.playerControlsRef=i[1]),e=new Pp({props:a}),ve.push(()=>ze(e,"playerControlsWrapperRef",r)),ve.push(()=>ze(e,"playerControlsRef",s)),{c(){M(e.$$.fragment)},m(l,u){E(e,l,u),o=!0},p(l,u){let c={};u&4&&(c.bottomHidden=l[2]),u&8&&(c.bottomNoSmooth=l[3]),u&16&&(c.showControls=l[4]),u&32&&(c.isAds=l[5]),u&64&&(c.canRewindLive=l[6]),u&128&&(c.logoClickable=l[7]),u&256&&(c.logoHidden=l[8]),u&512&&(c.logoTargetUrl=l[9]),u&1024&&(c.showNextPrevButtons=l[10]),u&4096&&(c.nextButtonActive=l[12]),u&8192&&(c.prevButtonActive=l[13]),u&32768&&(c.customFullscreenSupported=l[15]),u&131072&&(c.toggleFullscreen=l[17]),u&262144&&(c.seekToInteractive=l[18]),u&524288&&(c.playPrevChapter=l[19]),!t&&u&1&&(t=!0,c.playerControlsWrapperRef=l[0],Ue(()=>t=!1)),!n&&u&2&&(n=!0,c.playerControlsRef=l[1],Ue(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){A(e,l)}}}function E5(i){let e,t,n,o;function r(l){i[25](l)}function s(l){i[26](l)}let a={bottomHidden:i[2],bottomNoSmooth:i[3],showControls:i[4],isAds:i[5],canRewindLive:i[6],logoClickable:i[7],logoHidden:i[8],logoTargetUrl:i[9],showAutoplayNext:i[11],showNextPrevButtons:i[10],nextButtonActive:i[12],prevButtonActive:i[13],isOneVideoPlaylist:i[14],customFullscreenSupported:i[15],endScreenShown:i[16],toggleFullscreen:i[17],seekToInteractive:i[18],playPrevChapter:i[19],onDisabledPlayPrevChapterClick:i[20],onDisabledSeekToInteractiveClick:i[21]};return i[0]!==void 0&&(a.playerControlsWrapperRef=i[0]),i[1]!==void 0&&(a.playerControlsRef=i[1]),e=new l0({props:a}),ve.push(()=>ze(e,"playerControlsWrapperRef",r)),ve.push(()=>ze(e,"playerControlsRef",s)),{c(){M(e.$$.fragment)},m(l,u){E(e,l,u),o=!0},p(l,u){let c={};u&4&&(c.bottomHidden=l[2]),u&8&&(c.bottomNoSmooth=l[3]),u&16&&(c.showControls=l[4]),u&32&&(c.isAds=l[5]),u&64&&(c.canRewindLive=l[6]),u&128&&(c.logoClickable=l[7]),u&256&&(c.logoHidden=l[8]),u&512&&(c.logoTargetUrl=l[9]),u&2048&&(c.showAutoplayNext=l[11]),u&1024&&(c.showNextPrevButtons=l[10]),u&4096&&(c.nextButtonActive=l[12]),u&8192&&(c.prevButtonActive=l[13]),u&16384&&(c.isOneVideoPlaylist=l[14]),u&32768&&(c.customFullscreenSupported=l[15]),u&65536&&(c.endScreenShown=l[16]),u&131072&&(c.toggleFullscreen=l[17]),u&262144&&(c.seekToInteractive=l[18]),u&524288&&(c.playPrevChapter=l[19]),u&1048576&&(c.onDisabledPlayPrevChapterClick=l[20]),u&2097152&&(c.onDisabledSeekToInteractiveClick=l[21]),!t&&u&1&&(t=!0,c.playerControlsWrapperRef=l[0],Ue(()=>t=!1)),!n&&u&2&&(n=!0,c.playerControlsRef=l[1],Ue(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){A(e,l)}}}function A5(i){let e,t,n=i[22]&&a0(i);return{c(){n&&n.c(),e=Qe()},m(o,r){n&&n.m(o,r),v(o,e,r),t=!0},p(o,[r]){o[22]?n?(n.p(o,r),r&4194304&&d(n,1)):(n=a0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),p(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function M5(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:r=!1}=e,{showControls:s}=e,{playerControlsWrapperRef:a=void 0}=e,{playerControlsRef:l=void 0}=e,{isAds:u=!1}=e,{canRewindLive:c}=e,{logoClickable:m}=e,{logoHidden:h}=e,{logoTargetUrl:y=""}=e,{showNextPrevButtons:g}=e,{showAutoplayNext:T=!1}=e,{nextButtonActive:k}=e,{prevButtonActive:D}=e,{isOneVideoPlaylist:I=!1}=e,{customFullscreenSupported:C=!0}=e,{endScreenShown:P=!1}=e,{toggleFullscreen:G}=e,{seekToInteractive:x}=e,{playPrevChapter:O}=e,{onDisabledPlayPrevChapterClick:$=Kc.noop}=e,{onDisabledSeekToInteractiveClick:le=Kc.noop}=e,ee=et().ui.isMobile;V(i,ee,F=>t(23,n=F));let H=!1;yt(()=>{let F=setTimeout(()=>t(22,H=!0),0);return()=>clearTimeout(F)});function J(F){a=F,t(0,a)}function ke(F){l=F,t(1,l)}function q(F){a=F,t(0,a)}function ne(F){l=F,t(1,l)}return i.$$set=F=>{"bottomHidden"in F&&t(2,o=F.bottomHidden),"bottomNoSmooth"in F&&t(3,r=F.bottomNoSmooth),"showControls"in F&&t(4,s=F.showControls),"playerControlsWrapperRef"in F&&t(0,a=F.playerControlsWrapperRef),"playerControlsRef"in F&&t(1,l=F.playerControlsRef),"isAds"in F&&t(5,u=F.isAds),"canRewindLive"in F&&t(6,c=F.canRewindLive),"logoClickable"in F&&t(7,m=F.logoClickable),"logoHidden"in F&&t(8,h=F.logoHidden),"logoTargetUrl"in F&&t(9,y=F.logoTargetUrl),"showNextPrevButtons"in F&&t(10,g=F.showNextPrevButtons),"showAutoplayNext"in F&&t(11,T=F.showAutoplayNext),"nextButtonActive"in F&&t(12,k=F.nextButtonActive),"prevButtonActive"in F&&t(13,D=F.prevButtonActive),"isOneVideoPlaylist"in F&&t(14,I=F.isOneVideoPlaylist),"customFullscreenSupported"in F&&t(15,C=F.customFullscreenSupported),"endScreenShown"in F&&t(16,P=F.endScreenShown),"toggleFullscreen"in F&&t(17,G=F.toggleFullscreen),"seekToInteractive"in F&&t(18,x=F.seekToInteractive),"playPrevChapter"in F&&t(19,O=F.playPrevChapter),"onDisabledPlayPrevChapterClick"in F&&t(20,$=F.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in F&&t(21,le=F.onDisabledSeekToInteractiveClick)},[a,l,o,r,s,u,c,m,h,y,g,T,k,D,I,C,P,G,x,O,$,le,H,n,ee,J,ke,q,ne]}var jc=class extends B{constructor(e){super(),N(this,e,M5,A5,R,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:7,logoHidden:8,logoTargetUrl:9,showNextPrevButtons:10,showAutoplayNext:11,nextButtonActive:12,prevButtonActive:13,isOneVideoPlaylist:14,customFullscreenSupported:15,endScreenShown:16,toggleFullscreen:17,seekToInteractive:18,playPrevChapter:19,onDisabledPlayPrevChapterClick:20,onDisabledSeekToInteractiveClick:21})}},Ul=jc;function L5(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T=i[2].default,k=Le(T,i,i[1],null),D=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],I={};for(let C=0;C<D.length;C+=1)I=re(I,D[C]);return{c(){e=L("svg"),k&&k.c(),t=L("g"),n=L("path"),o=L("path"),r=L("defs"),s=L("filter"),a=L("feFlood"),l=L("feColorMatrix"),u=L("feOffset"),c=L("feGaussianBlur"),m=L("feColorMatrix"),h=L("feBlend"),y=L("feBlend"),f(n,"fill","#fff"),f(n,"d","M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_100684"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2260_100684"),f(y,"result","shape"),f(s,"id","a"),f(s,"width","43.996"),f(s,"height","49.5"),f(s,"x","2.5"),f(s,"y","0"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),Ce(e,I)},m(C,P){v(C,e,P),k&&k.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,y),g=!0},p(C,[P]){k&&k.p&&(!g||P&2)&&Ve(k,T,C,C[1],g?Re(T,C[1],P,null):Be(C[1]),null),Ce(e,I=He(D,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},P&1&&C[0]]))},i(C){g||(d(k,C),g=!0)},o(C){p(k,C),g=!1},d(C){C&&b(e),k&&k.d(C)}}}function R5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Gc=class extends B{constructor(e){super(),N(this,e,R5,L5,R,{})}},u0=Gc;function V5(i){let e,t;return e=new u0({props:{style:i[0]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function B5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Yc=class extends B{constructor(e){super(),N(this,e,B5,V5,R,{reversed:1})}},c0=Yc;function N5(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T,k,D=i[2].default,I=Le(D,i,i[1],null),C=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},i[0]],P={};for(let G=0;G<C.length;G+=1)P=re(P,C[G]);return{c(){e=L("svg"),I&&I.c(),t=L("g"),n=L("path"),o=L("path"),r=L("defs"),s=L("clipPath"),a=L("path"),l=L("filter"),u=L("feFlood"),c=L("feColorMatrix"),m=L("feOffset"),h=L("feGaussianBlur"),y=L("feColorMatrix"),g=L("feBlend"),T=L("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22"),f(n,"clip-rule","evenodd"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(a,"fill","#fff"),f(a,"d","M0 0h48v48H0z"),f(s,"id","c"),f(u,"flood-opacity","0"),f(u,"result","BackgroundImageFix"),f(c,"in","SourceAlpha"),f(c,"result","hardAlpha"),f(c,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(h,"stdDeviation","2.5"),f(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(g,"in2","BackgroundImageFix"),f(g,"result","effect1_dropShadow_2260_104204"),f(T,"in","SourceGraphic"),f(T,"in2","effect1_dropShadow_2260_104204"),f(T,"result","shape"),f(l,"id","a"),f(l,"width","51"),f(l,"height","45"),f(l,"x","-1.5"),f(l,"y","1.5"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),Ce(e,P)},m(G,x){v(G,e,x),I&&I.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(r,l),_(l,u),_(l,c),_(l,m),_(l,h),_(l,y),_(l,g),_(l,T),k=!0},p(G,[x]){I&&I.p&&(!k||x&2)&&Ve(I,D,G,G[1],k?Re(D,G[1],x,null):Be(G[1]),null),Ce(e,P=He(C,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},x&1&&G[0]]))},i(G){k||(d(I,G),k=!0)},o(G){p(I,G),k=!1},d(G){G&&b(e),I&&I.d(G)}}}function D5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Qc=class extends B{constructor(e){super(),N(this,e,D5,N5,R,{})}},f0=Qc;function O5(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I=i[2].default,C=Le(I,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},i[0]],G={};for(let x=0;x<P.length;x+=1)G=re(G,P[x]);return{c(){e=L("svg"),C&&C.c(),t=L("g"),n=L("path"),o=L("path"),r=L("path"),s=L("defs"),a=L("clipPath"),l=L("path"),u=L("filter"),c=L("feFlood"),m=L("feColorMatrix"),h=L("feOffset"),y=L("feGaussianBlur"),g=L("feColorMatrix"),T=L("feBlend"),k=L("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"),f(r,"stroke","#000"),f(r,"stroke-opacity",".12"),f(r,"stroke-width",".5"),f(r,"d","M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(l,"fill","#fff"),f(l,"d","M0 0h48v48H0z"),f(a,"id","c"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(y,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(T,"in2","BackgroundImageFix"),f(T,"result","effect1_dropShadow_2260_104293"),f(k,"in","SourceGraphic"),f(k,"in2","effect1_dropShadow_2260_104293"),f(k,"result","shape"),f(u,"id","a"),f(u,"width","51"),f(u,"height","51"),f(u,"x","-1.5"),f(u,"y","-1.5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),Ce(e,G)},m(x,O){v(x,e,O),C&&C.m(e,null),_(e,t),_(t,n),_(t,o),_(t,r),_(e,s),_(s,a),_(a,l),_(s,u),_(u,c),_(u,m),_(u,h),_(u,y),_(u,g),_(u,T),_(u,k),D=!0},p(x,[O]){C&&C.p&&(!D||O&2)&&Ve(C,I,x,x[1],D?Re(I,x[1],O,null):Be(x[1]),null),Ce(e,G=He(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},O&1&&x[0]]))},i(x){D||(d(C,x),D=!0)},o(x){p(C,x),D=!1},d(x){x&&b(e),C&&C.d(x)}}}function F5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Zc=class extends B{constructor(e){super(),N(this,e,F5,O5,R,{})}},d0=Zc;function x5(i){let e,t;return e=new f0({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function H5(i){let e,t;return e=new d0({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function q5(i){let e,t,n,o,r=[H5,x5],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Qe()},m(l,u){s[e].m(l,u),v(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e!==c&&(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t||(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),s[e].d(l)}}}function U5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Xc=class extends B{constructor(e){super(),N(this,e,U5,q5,R,{isOff:0})}},Jc=Xc;function z5(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T=i[2].default,k=Le(T,i,i[1],null),D=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},i[0]],I={};for(let C=0;C<D.length;C+=1)I=re(I,D[C]);return{c(){e=L("svg"),k&&k.c(),t=L("g"),n=L("path"),o=L("path"),r=L("defs"),s=L("filter"),a=L("feFlood"),l=L("feColorMatrix"),u=L("feOffset"),c=L("feGaussianBlur"),m=L("feColorMatrix"),h=L("feBlend"),y=L("feBlend"),f(n,"fill","#fff"),f(n,"d","M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_106627"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2260_106627"),f(y,"result","shape"),f(s,"id","a"),f(s,"width","40.098"),f(s,"height","27.785"),f(s,"x","3.402"),f(s,"y","10.105"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),Ce(e,I)},m(C,P){v(C,e,P),k&&k.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,y),g=!0},p(C,[P]){k&&k.p&&(!g||P&2)&&Ve(k,T,C,C[1],g?Re(T,C[1],P,null):Be(C[1]),null),Ce(e,I=He(D,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},P&1&&C[0]]))},i(C){g||(d(k,C),g=!0)},o(C){p(k,C),g=!1},d(C){C&&b(e),k&&k.d(C)}}}function W5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var $c=class extends B{constructor(e){super(),N(this,e,W5,z5,R,{})}},m0=$c;function K5(i){let e,t;return e=new m0({props:{style:i[0]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function j5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var ef=class extends B{constructor(e){super(),N(this,e,j5,K5,R,{reversed:1})}},p0=ef;function G5(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T=i[2].default,k=Le(T,i,i[1],null),D=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},i[0]],I={};for(let C=0;C<D.length;C+=1)I=re(I,D[C]);return{c(){e=L("svg"),k&&k.c(),t=L("g"),n=L("path"),o=L("path"),r=L("defs"),s=L("filter"),a=L("feFlood"),l=L("feColorMatrix"),u=L("feOffset"),c=L("feGaussianBlur"),m=L("feColorMatrix"),h=L("feBlend"),y=L("feBlend"),f(n,"fill","#fff"),f(n,"d","M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2340_106922"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2340_106922"),f(y,"result","shape"),f(s,"id","a"),f(s,"width","37"),f(s,"height","37"),f(s,"x","5.5"),f(s,"y","5.5"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),Ce(e,I)},m(C,P){v(C,e,P),k&&k.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,y),g=!0},p(C,[P]){k&&k.p&&(!g||P&2)&&Ve(k,T,C,C[1],g?Re(T,C[1],P,null):Be(C[1]),null),Ce(e,I=He(D,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},P&1&&C[0]]))},i(C){g||(d(k,C),g=!0)},o(C){p(k,C),g=!1},d(C){C&&b(e),k&&k.d(C)}}}function Y5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var tf=class extends B{constructor(e){super(),N(this,e,Y5,G5,R,{})}},_0=tf;function Q5(i){let e,t;return e=new _0({props:{style:i[0]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Z5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var nf=class extends B{constructor(e){super(),N(this,e,Z5,Q5,R,{reversed:1})}},h0=nf;function X5(i){be(i,"svelte-1ad3n06",`.hot-key-helpers-container.svelte-1ad3n06.svelte-1ad3n06{position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;animation:svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box}.hot-key-helpers-container.svelte-1ad3n06>div.svelte-1ad3n06{width:48px;height:48px;display:flex;justify-content:center;align-items:center}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"]{transform:scale(2)}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="pause-icon"]{transform:scale(2.5)}.hot-key-helpers-container--left.svelte-1ad3n06.svelte-1ad3n06{left:calc(25% - 100px)}.hot-key-helpers-container--right.svelte-1ad3n06.svelte-1ad3n06{left:calc(75% - 100px)}.hot-key-helpers-text.svelte-1ad3n06.svelte-1ad3n06{text-align:center;font-feature-settings:'clig' off, 'liga' off;text-shadow:0px 0px 5px rgba(0, 0, 0, 0.16);font-size:15px;font-style:normal;font-weight:600;line-height:20px;letter-spacing:-0.105px;width:100%;max-height:40px;margin-top:4px;display:-webkit-box;text-overflow:ellipsis;white-space:pre-wrap;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.hidden.svelte-1ad3n06.svelte-1ad3n06{visibility:hidden;animation:svelte-1ad3n06-fadeOut ease var(--controls-transition-duration);width:0;height:0}@keyframes svelte-1ad3n06-fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes svelte-1ad3n06-fadeOut{0%{opacity:1}100%{opacity:0}}`)}function g0(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,r,s,a,l,u=["RATE_DOWN","RATE_UP"].includes(i[4]),c,m=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),h,y,g,T,k,D=t&&b0(i),I=i[4]==="PAUSE"&&v0(i),C=i[4]==="PLAY"&&y0(i),P=i[4]==="REPLAY"&&k0(i),G=i[4]==="SUBTITLES_OFF"&&w0(i),x=i[4]==="SUBTITLES_ON"&&C0(i),O=u&&S0(i),$=m&&T0(i),le=i[4]==="MUTE"&&I0(i),K=i[4]==="VOLUME"&&P0(i),ee=i[5]&&E0(i);return{c(){e=S("div"),D&&D.c(),n=j(),I&&I.c(),o=j(),C&&C.c(),r=j(),P&&P.c(),s=j(),G&&G.c(),a=j(),x&&x.c(),l=j(),O&&O.c(),c=j(),$&&$.c(),h=j(),le&&le.c(),y=j(),K&&K.c(),g=j(),ee&&ee.c(),T=Qe(),f(e,"class","svelte-1ad3n06")},m(H,J){v(H,e,J),D&&D.m(e,null),_(e,n),I&&I.m(e,null),_(e,o),C&&C.m(e,null),_(e,r),P&&P.m(e,null),_(e,s),G&&G.m(e,null),_(e,a),x&&x.m(e,null),_(e,l),O&&O.m(e,null),_(e,c),$&&$.m(e,null),_(e,h),le&&le.m(e,null),_(e,y),K&&K.m(e,null),v(H,g,J),ee&&ee.m(H,J),v(H,T,J),k=!0},p(H,J){J&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(H[4])),t?D?(D.p(H,J),J&16&&d(D,1)):(D=b0(H),D.c(),d(D,1),D.m(e,n)):D&&(ae(),p(D,1,1,()=>{D=null}),ue()),H[4]==="PAUSE"?I?J&16&&d(I,1):(I=v0(H),I.c(),d(I,1),I.m(e,o)):I&&(ae(),p(I,1,1,()=>{I=null}),ue()),H[4]==="PLAY"?C?J&16&&d(C,1):(C=y0(H),C.c(),d(C,1),C.m(e,r)):C&&(ae(),p(C,1,1,()=>{C=null}),ue()),H[4]==="REPLAY"?P?J&16&&d(P,1):(P=k0(H),P.c(),d(P,1),P.m(e,s)):P&&(ae(),p(P,1,1,()=>{P=null}),ue()),H[4]==="SUBTITLES_OFF"?G?J&16&&d(G,1):(G=w0(H),G.c(),d(G,1),G.m(e,a)):G&&(ae(),p(G,1,1,()=>{G=null}),ue()),H[4]==="SUBTITLES_ON"?x?J&16&&d(x,1):(x=C0(H),x.c(),d(x,1),x.m(e,l)):x&&(ae(),p(x,1,1,()=>{x=null}),ue()),J&16&&(u=["RATE_DOWN","RATE_UP"].includes(H[4])),u?O?(O.p(H,J),J&16&&d(O,1)):(O=S0(H),O.c(),d(O,1),O.m(e,c)):O&&(ae(),p(O,1,1,()=>{O=null}),ue()),J&16&&(m=["EPISODE_PREV","EPISODE_NEXT"].includes(H[4])),m?$?($.p(H,J),J&16&&d($,1)):($=T0(H),$.c(),d($,1),$.m(e,h)):$&&(ae(),p($,1,1,()=>{$=null}),ue()),H[4]==="MUTE"?le?J&16&&d(le,1):(le=I0(H),le.c(),d(le,1),le.m(e,y)):le&&(ae(),p(le,1,1,()=>{le=null}),ue()),H[4]==="VOLUME"?K?J&16&&d(K,1):(K=P0(H),K.c(),d(K,1),K.m(e,null)):K&&(ae(),p(K,1,1,()=>{K=null}),ue()),H[5]?ee?ee.p(H,J):(ee=E0(H),ee.c(),ee.m(T.parentNode,T)):ee&&(ee.d(1),ee=null)},i(H){k||(d(D),d(I),d(C),d(P),d(G),d(x),d(O),d($),d(le),d(K),k=!0)},o(H){p(D),p(I),p(C),p(P),p(G),p(x),p(O),p($),p(le),p(K),k=!1},d(H){H&&(b(e),b(g),b(T)),D&&D.d(),I&&I.d(),C&&C.d(),P&&P.d(),G&&G.d(),x&&x.d(),O&&O.d(),$&&$.d(),le&&le.d(),K&&K.d(),ee&&ee.d(H)}}}function b0(i){let e,t;return e=new c0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="FORWARD_SEEK"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function v0(i){let e,t;return e=new Gr({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function y0(i){let e,t;return e=new Wo({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function k0(i){let e,t;return e=new Dl({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function w0(i){let e,t;return e=new Jc({props:{isOff:!0}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function C0(i){let e,t;return e=new Jc({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function S0(i){let e,t;return e=new p0({props:{reversed:i[4]==="RATE_UP"}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="RATE_UP"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function T0(i){let e,t;return e=new h0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="EPISODE_NEXT"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function I0(i){let e,t;return e=new mr({props:{volume:0}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function P0(i){let e,t;return e=new mr({props:{volume:1}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function E0(i){let e,t;return{c(){e=S("span"),t=De(i[5]),f(e,"class","hot-key-helpers-text svelte-1ad3n06")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&32&&Ke(t,n[5])},d(n){n&&b(e)}}}function J5(i){let e,t,n=!i[1]&&i[4]&&g0(i);return{c(){e=S("div"),n&&n.c(),f(e,"class","hot-key-helpers-container svelte-1ad3n06"),z(e,"hidden",i[1]),z(e,"hot-key-helpers-container--left",i[2]),z(e,"hot-key-helpers-container--right",i[3])},m(o,r){v(o,e,r),n&&n.m(e,null),t=!0},p(o,[r]){!o[1]&&o[4]?n?(n.p(o,r),r&18&&d(n,1)):(n=g0(o),n.c(),d(n,1),n.m(e,null)):n&&(ae(),p(n,1,1,()=>{n=null}),ue()),(!t||r&2)&&z(e,"hidden",o[1]),(!t||r&4)&&z(e,"hot-key-helpers-container--left",o[2]),(!t||r&8)&&z(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&b(e),n&&n.d()}}}function $5(i,e,t){let n,o=me,r=()=>(o(),o=jt(s,h=>t(6,n=h)),s);i.$$.on_destroy.push(()=>o());let{data:s}=e;r();let a,l,u,c,m;return i.$$set=h=>{"data"in h&&r(t(0,s=h.data))},i.$$.update=()=>{i.$$.dirty&64&&(t(1,a=!n),t(2,l=n?.type==="BACKWARD_SEEK"),t(3,u=n?.type==="FORWARD_SEEK"),t(4,c=n?.type),n?.t?t(5,m=W(n.t.key,{value:n.t.value||""})):t(5,m=n?.text))},[s,a,l,u,c,m,n]}var of=class extends B{constructor(e){super(),N(this,e,$5,J5,R,{data:0},X5)}},A0=of;function e6(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-opacity",".72"),f(t,"fill-rule","evenodd"),f(t,"d","M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272"),f(t,"clip-rule","evenodd"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,l,l[1],n?Re(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function t6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var rf=class extends B{constructor(e){super(),N(this,e,t6,e6,R,{})}},M0=rf;function i6(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,l,l[1],n?Re(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function n6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var sf=class extends B{constructor(e){super(),N(this,e,n6,i6,R,{})}},L0=sf;function o6(i){let e,t;return e=new L0({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function r6(i){let e,t;return e=new M0({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function s6(i){let e,t,n,o,r=[r6,o6],s=[];function a(l,u){return l[1]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Qe()},m(l,u){s[e].m(l,u),v(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e===c?s[e].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),s[e].d(l)}}}function l6(i,e,t){let n,{direction:o="left"}=e,r,s;return i.$$set=a=>{"direction"in a&&t(3,o=a.direction)},i.$$.update=()=>{i.$$.dirty&8&&(t(1,r=["up","down"].includes(o)),t(0,s=["right","down"].includes(o))),i.$$.dirty&1&&t(2,n=s?"transform: rotate(180deg);":void 0)},[s,r,n,o]}var lf=class extends B{constructor(e){super(),N(this,e,l6,s6,R,{direction:3})}},hr=lf;function a6(i){be(i,"svelte-1yzc86r",".immersive-controls.svelte-1yzc86r{position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn)}.immersive-controls.m-shifted.svelte-1yzc86r{top:50px;left:20px}.button-block.svelte-1yzc86r{width:40px;height:40px;margin:auto auto;transform:rotate(45deg)}.button-row.svelte-1yzc86r{display:flex;flex-direction:row;position:relative}.button.svelte-1yzc86r{width:20px;height:20px;text-align:center;cursor:pointer}.button.svelte-1yzc86r svg{opacity:0.7;transition:opacity linear 0.2s}.button.button-up.svelte-1yzc86r svg{transform:rotate(-45deg) translate(-1px, -1px)}.button.button-right.svelte-1yzc86r svg{transform:rotate(45deg) translate(1px, -1px)}.button.button-down.svelte-1yzc86r svg{transform:rotate(135deg) translate(1px, -3px)}.button.button-left.svelte-1yzc86r svg{transform:rotate(-135deg) translate(-1px, -3px)}.button.svelte-1yzc86r:hover svg{opacity:1}")}function u6(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C;return r=new hr({props:{direction:"up"}}),l=new hr({props:{direction:"up"}}),h=new hr({props:{direction:"up"}}),T=new hr({props:{direction:"up"}}),{c(){e=S("div"),t=S("div"),n=S("div"),o=S("div"),M(r.$$.fragment),s=j(),a=S("div"),M(l.$$.fragment),u=j(),c=S("div"),m=S("div"),M(h.$$.fragment),y=j(),g=S("div"),M(T.$$.fragment),f(o,"class","button button-up svelte-1yzc86r"),f(a,"class","button button-right svelte-1yzc86r"),f(n,"class","button-row svelte-1yzc86r"),f(m,"class","button button-left svelte-1yzc86r"),f(g,"class","button button-down svelte-1yzc86r"),f(c,"class","button-row svelte-1yzc86r"),f(t,"class","button-block svelte-1yzc86r"),f(t,"aria-hidden","true"),f(e,"class","immersive-controls svelte-1yzc86r"),f(e,"tabindex","0"),f(e,"role","button"),f(e,"aria-label",k=W("aria_label_spherical_control")),z(e,"m-shifted",i[0])},m(P,G){v(P,e,G),_(e,t),_(t,n),_(n,o),E(r,o,null),_(n,s),_(n,a),E(l,a,null),_(t,u),_(t,c),_(c,m),E(h,m,null),_(c,y),_(c,g),E(T,g,null),D=!0,I||(C=[Te(o,"mousedown",i[1]),Te(o,"mouseup",i[5]),Te(o,"mouseleave",i[5]),Te(a,"mousedown",i[3]),Te(a,"mouseup",i[5]),Te(a,"mouseleave",i[5]),Te(m,"mousedown",i[4]),Te(m,"mouseup",i[5]),Te(m,"mouseleave",i[5]),Te(g,"mousedown",i[2]),Te(g,"mouseup",i[5]),Te(g,"mouseleave",i[5]),Te(e,"keydown",i[6]),Te(e,"keyup",i[7])],I=!0)},p(P,[G]){(!D||G&1)&&z(e,"m-shifted",P[0])},i(P){D||(d(r.$$.fragment,P),d(l.$$.fragment,P),d(h.$$.fragment,P),d(T.$$.fragment,P),D=!0)},o(P){p(r.$$.fragment,P),p(l.$$.fragment,P),p(h.$$.fragment,P),p(T.$$.fragment,P),D=!1},d(P){P&&b(e),A(r),A(l),A(h),A(T),I=!1,st(C)}}}function c6(i,e,t){let{isShifted:n=!1}=e,o=et(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},l=()=>{o.actions.internal.startCameraManualRotation(1,0)},u=()=>{o.actions.internal.startCameraManualRotation(-1,0)},c=()=>(o.actions.internal.stopCameraManualRotation(),null),m=y=>{if(r.has(y.code))switch(y.preventDefault(),y.stopPropagation(),y.code){case"ArrowUp":s();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":l();break}},h=y=>{r.has(y.code)&&(y.preventDefault(),y.stopPropagation(),c())};return i.$$set=y=>{"isShifted"in y&&t(0,n=y.isShifted)},[n,s,a,l,u,c,m,h]}var af=class extends B{constructor(e){super(),N(this,e,c6,u6,R,{isShifted:0},a6)}},zl=af;var Po=require("@vkontakte/videoplayer-shared");var R0=(i=1e3)=>{let e=null,t=()=>{e&&(clearTimeout(e),e=null)};return{add:n=>{t(),e=setTimeout(n,i)},clear:t}};var Wl=class{constructor(){this.flickeringTimeout=R0(1e3);this.subscriptions=new Po.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Po.ValueSubject([]);this.captionsPrepared$=new Po.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Po.filter)(()=>this.isEnabled()),(0,Po.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let t=[],n=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";n&&t.push([{value:String(e[0].value),timeAppeared:null}]),t.push(e.reduce((o,{type:r,value:s},a)=>(n&&!a||(r==="timestamp"?o.push({timeAppeared:Number(s),value:""}):o.length===0?o.push({value:String(s)}):o[o.length-1].value=String(s)),o),[])),this.captionsPrepared$.next(t)}};function f6(i){be(i,"svelte-c2x749",".subtitles-container.svelte-c2x749.svelte-c2x749{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.svelte-c2x749.svelte-c2x749{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.svelte-c2x749.svelte-c2x749{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.svelte-c2x749.svelte-c2x749{bottom:8%}.subtitles-container.auto.svelte-c2x749 .subtitles-caption.svelte-c2x749{left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin)}.caption.svelte-c2x749.svelte-c2x749{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.svelte-c2x749 .caption.svelte-c2x749{width:100%}.caption-line.svelte-c2x749.svelte-c2x749{display:block;text-align:center}.subtitles-container.auto.svelte-c2x749 .caption-line.svelte-c2x749{text-align:left}.caption-segment.svelte-c2x749.svelte-c2x749{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function V0(i,e,t){let n=i.slice();return n[22]=e[t].value,n}function B0(i,e,t){let n=i.slice();return n[19]=e[t],n}function N0(i,e,t){let n=i.slice();return n[22]=e[t].value,n[23]=e[t].timeAppeared,n}function D0(i){let e,t;function n(s,a){return s[4]&&s[9]?p6:s[4]&&s[7]?.length?m6:d6}let o=n(i,-1),r=o(i);return{c(){e=S("div"),t=S("span"),r.c(),f(t,"class","caption svelte-c2x749"),f(e,"class","subtitles-caption svelte-c2x749"),ni(e,"--subtitles-caption-margin",i[8]+"%"),z(e,"mobile",i[3])},m(s,a){v(s,e,a),_(e,t),r.m(t,null)},p(s,a){o===(o=n(s,a))&&r?r.p(s,a):(r.d(1),r=o(s),r&&(r.c(),r.m(t,null))),a&256&&ni(e,"--subtitles-caption-margin",s[8]+"%"),a&8&&z(e,"mobile",s[3])},d(s){s&&b(e),r.d()}}}function d6(i){let e,t=_t(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=O0(V0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=Qe()},m(o,r){for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(o,r);v(o,e,r)},p(o,r){if(r&66){t=_t(o[1]);let s;for(s=0;s<t.length;s+=1){let a=V0(o,t,s);n[s]?n[s].p(a,r):(n[s]=O0(a),n[s].c(),n[s].m(e.parentNode,e))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(o){o&&b(e),ti(n,o)}}}function m6(i){let e,t=_t(i[7]),n=[];for(let o=0;o<t.length;o+=1)n[o]=H0(B0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=Qe()},m(o,r){for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(o,r);v(o,e,r)},p(o,r){if(r&196){t=_t(o[7]);let s;for(s=0;s<t.length;s+=1){let a=B0(o,t,s);n[s]?n[s].p(a,r):(n[s]=H0(a),n[s].c(),n[s].m(e.parentNode,e))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(o){o&&b(e),ti(n,o)}}}function p6(i){let e,t,n=W("subtitles_auto_caption")+"",o;return{c(){e=S("span"),t=S("span"),o=De(n),f(t,"class","caption-segment svelte-c2x749"),ni(t,"font-size",i[6]+"px"),f(e,"class","caption-line svelte-c2x749")},m(r,s){v(r,e,s),_(e,t),_(t,o)},p(r,s){s&64&&ni(t,"font-size",r[6]+"px")},d(r){r&&b(e)}}}function O0(i){let e,t,n=i[22]+"",o,r;return{c(){e=S("span"),t=S("span"),o=De(n),r=j(),f(t,"class","caption-segment svelte-c2x749"),ni(t,"font-size",i[6]+"px"),f(e,"class","caption-line svelte-c2x749")},m(s,a){v(s,e,a),_(e,t),_(t,o),_(e,r)},p(s,a){a&2&&n!==(n=s[22]+"")&&Ke(o,n),a&64&&ni(t,"font-size",s[6]+"px")},d(s){s&&b(e)}}}function F0(i){let e=i[22]+"",t;return{c(){t=De(e)},m(n,o){v(n,t,o)},p(n,o){o&128&&e!==(e=n[22]+"")&&Ke(t,e)},d(n){n&&b(t)}}}function x0(i){let e,t=(!i[23]||i[23]<=i[2])&&F0(i);return{c(){t&&t.c(),e=Qe()},m(n,o){t&&t.m(n,o),v(n,e,o)},p(n,o){!n[23]||n[23]<=n[2]?t?t.p(n,o):(t=F0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&b(e),t&&t.d(n)}}}function H0(i){let e,t,n,o=_t(i[19]),r=[];for(let s=0;s<o.length;s+=1)r[s]=x0(N0(i,o,s));return{c(){e=S("span"),t=S("span");for(let s=0;s<r.length;s+=1)r[s].c();n=j(),f(t,"class","caption-segment svelte-c2x749"),ni(t,"font-size",i[6]+"px"),f(e,"class","caption-line svelte-c2x749")},m(s,a){v(s,e,a),_(e,t);for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(t,null);_(e,n)},p(s,a){if(a&132){o=_t(s[19]);let l;for(l=0;l<o.length;l+=1){let u=N0(s,o,l);r[l]?r[l].p(u,a):(r[l]=x0(u),r[l].c(),r[l].m(t,null))}for(;l<r.length;l+=1)r[l].d(1);r.length=o.length}a&64&&ni(t,"font-size",s[6]+"px")},d(s){s&&b(e),ti(r,s)}}}function _6(i){let e,t=!!(i[1].length||i[7]?.length),n=t&&D0(i);return{c(){e=S("div"),n&&n.c(),f(e,"class","subtitles-container svelte-c2x749"),z(e,"shifted",i[0]),z(e,"auto",i[4]&&!i[5]&&!i[9])},m(o,r){v(o,e,r),n&&n.m(e,null)},p(o,[r]){r&130&&(t=!!(o[1].length||o[7]?.length)),t?n?n.p(o,r):(n=D0(o),n.c(),n.m(e,null)):n&&(n.d(1),n=null),r&1&&z(e,"shifted",o[0]),r&560&&z(e,"auto",o[4]&&!o[5]&&!o[9])},i:me,o:me,d(o){o&&b(e),n&&n.d()}}}function h6(i,e,t){let n,o,r,s,a,l,{shifted:u}=e,{captions:c}=e,{position:m}=e,{playerSize:h}=e,{isMobile:y=!1}=e,g=et(),T=It(),k=g.state.currentSubtitle$;V(i,k,x=>t(16,a=x));let D=g.state.isAutoSubtitleCaptionVisible$;V(i,D,x=>t(9,l=x));let I=g.state.isLive$;V(i,I,x=>t(15,s=x));let C,P=null,G;return yt(()=>{t(14,P=new Wl().subscribe());let x=P.captionsPrepared$.subscribe(O=>{t(7,G=O)});return()=>{P?.destroy(),x.unsubscribe()}}),yt(()=>{if(n){let x=window.setTimeout(()=>{D.set(!1)},T.autoSubtitlesTimeout);return()=>{window.clearTimeout(x)}}else D.set(!1)}),i.$$set=x=>{"shifted"in x&&t(0,u=x.shifted),"captions"in x&&t(1,c=x.captions),"position"in x&&t(2,m=x.position),"playerSize"in x&&t(13,h=x.playerSize),"isMobile"in x&&t(3,y=x.isMobile)},i.$$.update=()=>{if(i.$$.dirty&65536&&t(4,n=!!a.isAuto),i.$$.dirty&32768&&t(5,o=!!s),i.$$.dirty&8192){let x=h.width*.02;t(6,C=x<=T.minSubtitlesFontSize?T.minSubtitlesFontSize:x)}i.$$.dirty&16434&&(P?.setIsAuto(n),P?.setIsLive(o),P?.setCaptions(c)),i.$$.dirty&8192&&t(8,r=h.width<400?10:h.width<550?14:24)},[u,c,m,y,n,o,C,G,r,l,k,D,I,h,P,s,a]}var uf=class extends B{constructor(e){super(),N(this,e,h6,_6,R,{shifted:0,captions:1,position:2,playerSize:13,isMobile:3},f6)}},Kl=uf;function g6(i){be(i,"svelte-raurnb",".wrapper.svelte-raurnb{height:100%;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.wrapper.bgCover.svelte-raurnb{background-size:cover}.icon_wrapper.svelte-raurnb{display:flex;flex-direction:column;align-items:center;width:400px}.icon.svelte-raurnb{width:50px;height:50px}.text.svelte-raurnb{margin-top:20px}")}function q0(i){let e,t,n;return{c(){e=S("div"),t=De("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=De(i[1]),f(e,"class","text svelte-raurnb")},m(o,r){v(o,e,r),_(e,t),_(e,n)},p(o,r){r&2&&Ke(n,o[1])},d(o){o&&b(e)}}}function b6(i){let e,t,n,o,r,s,a=i[1]&&q0(i);return{c(){e=S("div"),t=S("div"),t.innerHTML='<svg class="icon svelte-raurnb" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=j(),a&&a.c(),f(t,"class","icon_wrapper svelte-raurnb"),f(e,"class","wrapper svelte-raurnb"),f(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${i[0]||""}')`),z(e,"bgCover",i[2].features.previewNoEmptySpace)},m(l,u){v(l,e,u),_(e,t),_(e,n),a&&a.m(e,null),r||(s=Te(e,"click",i[3]),r=!0)},p(l,[u]){l[1]?a?a.p(l,u):(a=q0(l),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&o!==(o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${l[0]||""}')`)&&f(e,"style",o)},i:me,o:me,d(l){l&&b(e),a&&a.d(),r=!1,s()}}}function v6(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e,r=It();function s(a){Bn.call(this,i,a)}return i.$$set=a=>{"thumbUrl"in a&&t(0,n=a.thumbUrl),"chromecastDeviceName"in a&&t(1,o=a.chromecastDeviceName)},[n,o,r,s]}var cf=class extends B{constructor(e){super(),N(this,e,v6,b6,R,{thumbUrl:0,chromecastDeviceName:1},g6)}},jl=cf;function y6(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,l,l[1],n?Re(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function k6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var ff=class extends B{constructor(e){super(),N(this,e,k6,y6,R,{})}},U0=ff;function w6(i){be(i,"svelte-13zpvm8",".container.svelte-13zpvm8{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}")}function C6(i){let e,t,n;return t=new U0({}),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","container svelte-13zpvm8")},m(o,r){v(o,e,r),E(t,e,null),n=!0},p:me,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}var df=class extends B{constructor(e){super(),N(this,e,null,C6,R,{},w6)}},Gl=df;function S6(i){be(i,"svelte-1xnh9dd",".container.svelte-1xnh9dd.svelte-1xnh9dd{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.svelte-1xnh9dd.svelte-1xnh9dd{opacity:0;visibility:hidden}.container.bgCover.svelte-1xnh9dd.svelte-1xnh9dd{background-size:cover}.playButton.svelte-1xnh9dd.svelte-1xnh9dd{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.svelte-1xnh9dd.svelte-1xnh9dd{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.svelte-1xnh9dd:hover .playButtonBackground.svelte-1xnh9dd{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.svelte-1xnh9dd svg{transform:scale(2)}")}function T6(i){let e,t,n,o,r,s,a,l,u,c;return r=new Wo({}),{c(){e=S("div"),t=S("div"),n=S("div"),o=j(),M(r.$$.fragment),f(n,"class","playButtonBackground svelte-1xnh9dd"),f(t,"class","playButton svelte-1xnh9dd"),f(t,"tabindex","0"),f(t,"role","button"),f(t,"aria-label",s=W("tooltip_play")),f(e,"class","container svelte-1xnh9dd"),f(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),z(e,"hidden",i[1]),z(e,"bgCover",i[4].features.previewNoEmptySpace)},m(m,h){v(m,e,h),_(e,t),_(t,n),_(t,o),E(r,t,null),l=!0,u||(c=[Te(t,"keydown",i[3]),Te(e,"click",mt(function(){Wt(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(m,[h]){i=m,(!l||h&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&f(e,"style",a),(!l||h&2)&&z(e,"hidden",i[1])},i(m){l||(d(r.$$.fragment,m),l=!0)},o(m){p(r.$$.fragment,m),l=!1},d(m){m&&b(e),A(r),u=!1,st(c)}}}function I6(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,s=et(),a=It(),l=s.ui.startedByKeyboard$,u=c=>{let m=c.code;["Enter","Space"].includes(m)&&(c.stopPropagation(),c.preventDefault(),l.set(!0),r())};return i.$$set=c=>{"thumbUrl"in c&&t(0,n=c.thumbUrl),"hidden"in c&&t(1,o=c.hidden),"startVideo"in c&&t(2,r=c.startVideo)},[n,o,r,u,a]}var mf=class extends B{constructor(e){super(),N(this,e,I6,T6,R,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},S6)}get handlePressKey(){return this.$$.ctx[3]}},Yl=mf;function P6(i){be(i,"svelte-1bcvcf2",`.title.svelte-1bcvcf2{position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
28
28
  0deg,
29
29
  rgba(0, 0, 0, 0) 0%,
30
30
  rgba(0, 0, 0, 0.02) 19%,
31
31
  rgba(0, 0, 0, 0.10) 34%,
32
32
  rgba(0, 0, 0, 0.40) 60%,
33
33
  rgba(0, 0, 0, 0.60) 100%
34
- )}.hidden.svelte-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function P6(i){let e,t;return{c(){e=S("div"),t=De(i[0]),f(e,"class","title svelte-1bcvcf2"),z(e,"hidden",i[1])},m(n,o){v(n,e,o),_(e,t)},p(n,[o]){o&1&&je(t,n[0]),o&2&&z(e,"hidden",n[1])},i:me,o:me,d(n){n&&b(e)}}}function E6(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"isHidden"in r&&t(1,o=r.isHidden)},[n,o]}var pf=class extends B{constructor(e){super(),N(this,e,E6,P6,V,{title:0,isHidden:1},I6)}},z0=pf;function A6(i){be(i,"svelte-1qpxtfg",".timer__container.svelte-1qpxtfg{display:flex;align-items:flex-start;justify-content:center}.cell.svelte-1qpxtfg{display:flex;flex-direction:column;align-items:center;width:62px}.cell__value.svelte-1qpxtfg{font-size:48px;line-height:1.2;font-weight:700}.cell__unit.svelte-1qpxtfg{font-size:14px;line-height:1.2;font-weight:400}.timer__points.svelte-1qpxtfg{display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600}")}function W0(i){let e,t,n,o,r,s,a;return{c(){e=S("div"),t=S("span"),n=De(i[0]),o=j(),r=S("span"),r.textContent=`${W("waiting_live_day_value")}`,s=j(),a=S("span"),a.textContent=`${W("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(l,u){v(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),v(l,s,u),v(l,a,u)},p(l,u){u&1&&je(n,l[0])},d(l){l&&(b(e),b(s),b(a))}}}function K0(i){let e,t,n,o,r,s,a;return{c(){e=S("div"),t=S("span"),n=De(i[1]),o=j(),r=S("span"),r.textContent=`${W("waiting_live_hour_value")}`,s=j(),a=S("span"),a.textContent=`${W("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(l,u){v(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),v(l,s,u),v(l,a,u)},p(l,u){u&2&&je(n,l[1])},d(l){l&&(b(e),b(s),b(a))}}}function j0(i){let e,t,n,o,r,s,a;return{c(){e=S("div"),t=S("span"),n=De(i[2]),o=j(),r=S("span"),r.textContent=`${W("waiting_live_minute_value")}`,s=j(),a=S("span"),a.textContent=`${W("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(l,u){v(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),v(l,s,u),v(l,a,u)},p(l,u){u&4&&je(n,l[2])},d(l){l&&(b(e),b(s),b(a))}}}function G0(i){let e,t,n,o,r;return{c(){e=S("div"),t=S("span"),n=De(i[3]),o=j(),r=S("span"),r.textContent=`${W("waiting_live_second_value")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg")},m(s,a){v(s,e,a),_(e,t),_(t,n),_(e,o),_(e,r)},p(s,a){a&8&&je(n,s[3])},d(s){s&&b(e)}}}function M6(i){let e,t,n,o,r=i[0]&&W0(i),s=i[1]&&K0(i),a=i[2]&&j0(i),l=i[3]&&G0(i);return{c(){e=S("div"),r&&r.c(),t=j(),s&&s.c(),n=j(),a&&a.c(),o=j(),l&&l.c(),f(e,"class","timer__container svelte-1qpxtfg")},m(u,c){v(u,e,c),r&&r.m(e,null),_(e,t),s&&s.m(e,null),_(e,n),a&&a.m(e,null),_(e,o),l&&l.m(e,null)},p(u,[c]){u[0]?r?r.p(u,c):(r=W0(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?s?s.p(u,c):(s=K0(u),s.c(),s.m(e,n)):s&&(s.d(1),s=null),u[2]?a?a.p(u,c):(a=j0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?l?l.p(u,c):(l=G0(u),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i:me,o:me,d(u){u&&b(e),r&&r.d(),s&&s.d(),a&&a.d(),l&&l.d()}}}function L6(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,s,a,l,u,c=y=>String(y).padStart(2,"0"),m=y=>{let g=Math.floor(y/86400);g&&(y-=g*86400,t(0,r=c(g)));let T=Math.floor(y/3600);t(1,s=c(T));let k=Math.floor(y/60)%60;t(2,a=c(k));let D=y%60;t(3,l=c(D))},h=()=>{let y=Math.floor(Date.now()/1e3),g=n-y;m(g),g>=1?u=requestAnimationFrame(h):o()};return vt(()=>{u=requestAnimationFrame(h)}),Mn(()=>{cancelAnimationFrame(u)}),i.$$set=y=>{"startTime"in y&&t(4,n=y.startTime),"onTimerOver"in y&&t(5,o=y.onTimerOver)},[r,s,a,l,n,o]}var _f=class extends B{constructor(e){super(),N(this,e,L6,M6,V,{startTime:4,onTimerOver:5},A6)}},Y0=_f;function V6(i){let e,t,n,o,r,s,a=i[2].default,l=Le(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},i[0]],c={};for(let m=0;m<u.length;m+=1)c=re(c,u[m]);return{c(){e=L("svg"),l&&l.c(),t=L("path"),n=L("path"),o=L("path"),r=L("path"),f(t,"fill","#fefffe"),f(t,"d","M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5"),ni(t,"opacity",".965"),f(n,"fill","#fefffe"),f(n,"d","M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82"),ni(n,"opacity",".965"),f(o,"fill","#fefffe"),f(o,"d","M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84"),ni(o,"opacity",".985"),f(r,"fill","#fefffe"),f(r,"d","M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54"),ni(r,"opacity",".986"),Ce(e,c)},m(m,h){v(m,e,h),l&&l.m(e,null),_(e,t),_(e,n),_(e,o),_(e,r),s=!0},p(m,[h]){l&&l.p&&(!s||h&2)&&Re(l,a,m,m[1],s?Ve(a,m[1],h,null):Be(m[1]),null),Ce(e,c=He(u,[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},h&1&&m[0]]))},i(m){s||(d(l,m),s=!0)},o(m){p(l,m),s=!1},d(m){m&&b(e),l&&l.d(m)}}}function R6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var hf=class extends B{constructor(e){super(),N(this,e,R6,V6,V,{})}},Q0=hf;function B6(i){be(i,"svelte-15pewff",".waiting-container.svelte-15pewff{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat}.waiting-container.svelte-15pewff::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1}.upcoming.svelte-15pewff{position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0}.upcoming-icon.svelte-15pewff{width:20%;max-width:200px;margin-bottom:20px}.upcoming__title.svelte-15pewff{font-size:14px;line-height:1.2;font-weight:400}.waiting-timer.svelte-15pewff{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2}.timer.svelte-15pewff{display:flex;flex-direction:column;align-items:center;justify-content:center}.timer__title.svelte-15pewff{display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400}")}function N6(i){let e,t,n,o,r;return o=new Y0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=S("div"),t=S("span"),t.textContent=`${W("waiting_live_timer_title")}`,n=j(),M(o.$$.fragment),f(t,"class","timer__title svelte-15pewff"),f(e,"class","waiting-timer timer svelte-15pewff")},m(s,a){v(s,e,a),_(e,t),_(e,n),E(o,e,null),r=!0},p(s,a){let l={};a&2&&(l.startTime=s[1]||0),a&4&&(l.onTimerOver=s[3]),o.$set(l)},i(s){r||(d(o.$$.fragment,s),r=!0)},o(s){p(o.$$.fragment,s),r=!1},d(s){s&&b(e),A(o)}}}function D6(i){let e,t,n,o,r,s;return n=new Q0({}),{c(){e=S("div"),t=S("div"),M(n.$$.fragment),o=j(),r=S("span"),r.textContent=`${W("waiting_live_upcoming_title")}`,f(t,"class","upcoming-icon svelte-15pewff"),f(r,"class","upcoming__title svelte-15pewff"),f(e,"class","upcoming svelte-15pewff")},m(a,l){v(a,e,l),_(e,t),E(n,t,null),_(e,o),_(e,r),s=!0},p:me,i(a){s||(d(n.$$.fragment,a),s=!0)},o(a){p(n.$$.fragment,a),s=!1},d(a){a&&b(e),A(n)}}}function O6(i){let e,t,n,o,r,s=[D6,N6],a=[];function l(u,c){return u[2]?0:1}return t=l(i,-1),n=a[t]=s[t](i),{c(){e=S("div"),n.c(),f(e,"class","waiting-container svelte-15pewff"),f(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,c){v(u,e,c),a[t].m(e,null),r=!0},p(u,[c]){let m=t;t=l(u,c),t===m?a[t].p(u,c):(le(),p(a[m],1,1,()=>{a[m]=null}),ae(),n=a[t],n?n.p(u,c):(n=a[t]=s[t](u),n.c()),d(n,1),n.m(e,null)),(!r||c&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&f(e,"style",o)},i(u){r||(d(n),r=!0)},o(u){p(n),r=!1},d(u){u&&b(e),a[t].d()}}}function F6(i,e,t){let n,{thumbUrl:o}=e,{startTime:r}=e,s=()=>t(2,n=!0);return i.$$set=a=>{"thumbUrl"in a&&t(0,o=a.thumbUrl),"startTime"in a&&t(1,r=a.startTime)},i.$$.update=()=>{i.$$.dirty&2&&t(2,n=r===void 0||r<Math.floor(Date.now()/1e3))},[o,r,n,s]}var gf=class extends B{constructor(e){super(),N(this,e,F6,O6,V,{thumbUrl:0,startTime:1},B6)}},Ql=gf;function x6(i){be(i,"svelte-xvqwsa",".waiting-container.svelte-xvqwsa{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat}.waiting-container.svelte-xvqwsa::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.4);backdrop-filter:blur(10px)}.waiting-caption.svelte-xvqwsa{position:relative;display:flex;flex-direction:column;align-items:center}.waiting-title.svelte-xvqwsa{margin:0;padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400}")}function H6(i){let e,t,n,o,r,s,a,l;return n=new xr({props:{style:"position: static; transform: translate(0, 0)"}}),{c(){e=S("div"),t=S("div"),M(n.$$.fragment),o=j(),r=S("p"),s=De(i[1]),f(r,"class","waiting-title svelte-xvqwsa"),f(t,"class","waiting-caption svelte-xvqwsa"),f(e,"class","waiting-container svelte-xvqwsa"),f(e,"style",a=`background-image: url('${i[0]}')`)},m(u,c){v(u,e,c),_(e,t),E(n,t,null),_(t,o),_(t,r),_(r,s),l=!0},p(u,[c]){(!l||c&2)&&je(s,u[1]),(!l||c&1&&a!==(a=`background-image: url('${u[0]}')`))&&f(e,"style",a)},i(u){l||(d(n.$$.fragment,u),l=!0)},o(u){p(n.$$.fragment,u),l=!1},d(u){u&&b(e),A(n)}}}function q6(i,e,t){let{thumbUrl:n=""}=e,{kind:o}=e,r;return i.$$set=s=>{"thumbUrl"in s&&t(0,n=s.thumbUrl),"kind"in s&&t(2,o=s.kind)},i.$$.update=()=>{if(i.$$.dirty&4){let s={recover:W("waiting_live_recover_title"),record:W("waiting_record_title")};t(1,r=s[o]||"")}},[n,r,o]}var bf=class extends B{constructor(e){super(),N(this,e,q6,H6,V,{thumbUrl:0,kind:2},x6)}},Xr=bf;var Zl=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),Xl=(i,e)=>{if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=Ml(t)??t),n&&t&&o){let s=e.filter(a=>a.label===n&&a.language===t);if(s.length===1)return W("audio_stream_display_language_label",{language:o,label:n});{let a=Zl(i,s);return W("audio_stream_display_language_label_index",{language:o,label:n,index:a})}}if(n){let s=e.filter(a=>a.label===n);if(s.length===1)return n;{let a=Zl(i,s);return W("audio_stream_display_label_index",{label:n,index:a})}}if(t&&o){let s=e.filter(a=>a.language===t);if(s.length===1)return o;{let a=Zl(i,s);return W("audio_stream_display_language_index",{language:o,index:a})}}let r=Zl(i,e);return W("audio_stream_display_unknown",{index:r})};function U6(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function z6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var vf=class extends B{constructor(e){super(),N(this,e,z6,U6,V,{})}},Z0=vf;function W6(i){be(i,"svelte-124aexk",".select-icon.svelte-124aexk{margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px}")}function X0(i){let e,t,n;return t=new Z0({}),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","select-icon svelte-124aexk")},m(o,r){v(o,e,r),E(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function K6(i){let e,t=(i[1].label??i[1].value)+"",n;return{c(){e=S("div"),n=De(t),f(e,"class","menu-item-value"),z(e,"submenu-value-mobile",i[0])},m(o,r){v(o,e,r),_(e,n)},p(o,r){r&2&&t!==(t=(o[1].label??o[1].value)+"")&&je(n,t),r&1&&z(e,"submenu-value-mobile",o[0])},i:me,o:me,d(o){o&&b(e)}}}function j6(i){let e,t,n,o=[i[1].valueComponentParams??{}];var r=i[1].valueComponent;function s(a,l){let u={};for(let c=0;c<o.length;c+=1)u=re(u,o[c]);return l!==void 0&&l&2&&(u=re(u,He(o,[Do(a[1].valueComponentParams??{})]))),{props:u}}return r&&(e=At(r,s(i))),{c(){e&&M(e.$$.fragment),t=Ze()},m(a,l){e&&E(e,a,l),v(a,t,l),n=!0},p(a,l){if(l&2&&r!==(r=a[1].valueComponent)){if(e){le();let u=e;p(u.$$.fragment,1,0,()=>{A(u,1)}),ae()}r?(e=At(r,s(a,l)),M(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}else if(r){let u=l&2?He(o,[Do(a[1].valueComponentParams??{})]):{};e.$set(u)}},i(a){n||(e&&d(e.$$.fragment,a),n=!0)},o(a){e&&p(e.$$.fragment,a),n=!1},d(a){a&&b(t),e&&A(e,a)}}}function G6(i){let e,t,n,o,r,s,a,l,u,c=i[1].selected&&X0(i),m=[j6,K6],h=[];function y(g,T){return g[1].valueComponent?0:1}return n=y(i,-1),o=h[n]=m[n](i),{c(){e=S("li"),c&&c.c(),t=j(),o.c(),f(e,"class","item"),f(e,"data-value",r=i[1].dataValue??i[1].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=i[1].ariaLabel??i[1].label??i[1].value.toString()),z(e,"mobile",i[0])},m(g,T){v(g,e,T),c&&c.m(e,null),_(e,t),h[n].m(e,null),a=!0,l||(u=[Te(e,"click",mt(i[4])),Te(e,"keydown",i[5])],l=!0)},p(g,[T]){g[1].selected?c?T&2&&d(c,1):(c=X0(g),c.c(),d(c,1),c.m(e,t)):c&&(le(),p(c,1,1,()=>{c=null}),ae());let k=n;n=y(g,T),n===k?h[n].p(g,T):(le(),p(h[k],1,1,()=>{h[k]=null}),ae(),o=h[n],o?o.p(g,T):(o=h[n]=m[n](g),o.c()),d(o,1),o.m(e,null)),(!a||T&2&&r!==(r=g[1].dataValue??g[1].value))&&f(e,"data-value",r),(!a||T&2&&s!==(s=g[1].ariaLabel??g[1].label??g[1].value.toString()))&&f(e,"aria-label",s),(!a||T&1)&&z(e,"mobile",g[0])},i(g){a||(d(c),d(o),a=!0)},o(g){p(c),p(o),a=!1},d(g){g&&b(e),c&&c.d(),h[n].d(),l=!1,st(u)}}}function Y6(i,e,t){let{isMobile:n=!1}=e,{item:o}=e,{selectItem:r}=e,s=(u,c)=>{Or(u,()=>r(c))},a=()=>r(o.value),l=u=>s(u,o.value);return i.$$set=u=>{"isMobile"in u&&t(0,n=u.isMobile),"item"in u&&t(1,o=u.item),"selectItem"in u&&t(2,r=u.selectItem)},[n,o,r,s,a,l]}var yf=class extends B{constructor(e){super(),N(this,e,Y6,G6,V,{isMobile:0,item:1,selectItem:2},W6)}},J0=yf;function Q6(i){let e,t,n=i[2].label+"",o,r,s,a,l;return{c(){e=S("li"),t=S("div"),o=De(n),f(t,"class","menu-item-value"),z(t,"submenu-value-mobile",i[1]),f(e,"class","item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",r=i[2].ariaLabel??i[2].label),f(e,"aria-haspopup","true"),f(e,"data-testid",s=i[2].id),z(e,"mobile",i[1])},m(u,c){v(u,e,c),_(e,t),_(t,o),i[6](e),a||(l=[Te(e,"click",mt(function(){Wt(i[3])&&i[3].apply(this,arguments)})),Te(e,"keydown",function(){Wt(i[4])&&i[4].apply(this,arguments)})],a=!0)},p(u,[c]){i=u,c&4&&n!==(n=i[2].label+"")&&je(o,n),c&2&&z(t,"submenu-value-mobile",i[1]),c&4&&r!==(r=i[2].ariaLabel??i[2].label)&&f(e,"aria-label",r),c&4&&s!==(s=i[2].id)&&f(e,"data-testid",s),c&2&&z(e,"mobile",i[1])},i:me,o:me,d(u){u&&b(e),i[6](null),a=!1,st(l)}}}function Z6(i,e,t){let n,o,{isMobile:r=!1}=e,{item:s}=e,{openSubMenuList:a}=e,{refMenuItems:l}=e;function u(c){ve[c?"unshift":"push"](()=>{l[s.id]=c,t(0,l)})}return i.$$set=c=>{"isMobile"in c&&t(1,r=c.isMobile),"item"in c&&t(2,s=c.item),"openSubMenuList"in c&&t(5,a=c.openSubMenuList),"refMenuItems"in c&&t(0,l=c.refMenuItems)},i.$$.update=()=>{i.$$.dirty&36&&t(3,n=()=>a(s.subMenuId)),i.$$.dirty&12&&t(4,o=c=>nl(c,n,s.getSubItemForFocus))},[l,r,s,n,o,a,u]}var kf=class extends B{constructor(e){super(),N(this,e,Z6,Q6,V,{isMobile:1,item:2,openSubMenuList:5,refMenuItems:0})}},$0=kf;var to={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};function $6(i){be(i,"svelte-1mrc4z3",'.sub-menu.svelte-1mrc4z3.svelte-1mrc4z3{line-height:32px;padding-bottom:0;padding-top:42px}.sub-menu.mobile.svelte-1mrc4z3.svelte-1mrc4z3{padding-top:58px}.sub-menu.svelte-1mrc4z3 .item{padding:0 12px}.sub-menu.svelte-1mrc4z3 .item.mobile{padding:0 14px}.sub-menu.svelte-1mrc4z3 .item.header.svelte-1mrc4z3{padding-top:6px;box-sizing:border-box;width:100%;justify-content:space-between;column-gap:12px;border-bottom:var(--divider-border);position:absolute;top:0}.sub-menu[data-testid="sub-menu-quality-settings"].svelte-1mrc4z3 .header.svelte-1mrc4z3{padding-right:34px}')}function e_(i,e,t){let n=i.slice();return n[25]=e[t],n}function e8(i){let e,t;return e=new $0({props:{isMobile:i[2],item:i[25],openSubMenuList:i[6],refMenuItems:i[9]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.isMobile=n[2]),o&128&&(r.item=n[25]),o&64&&(r.openSubMenuList=n[6]),o&512&&(r.refMenuItems=n[9]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function t8(i){let e,t;return e=new J0({props:{item:i[25],isMobile:i[2],selectItem:i[25].selectItem}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&128&&(r.item=n[25]),o&4&&(r.isMobile=n[2]),o&128&&(r.selectItem=n[25].selectItem),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function t_(i){let e,t,n,o,r=[t8,e8],s=[];function a(l,u){return l[25].type==="SELECT_VALUE"?0:l[25].type==="OPEN_SUB_MENU"?1:-1}return~(e=a(i,-1))&&(t=s[e]=r[e](i)),{c(){t&&t.c(),n=Ze()},m(l,u){~e&&s[e].m(l,u),v(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?~e&&s[e].p(l,u):(t&&(le(),p(s[c],1,1,()=>{s[c]=null}),ae()),~e?(t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n)):t=null)},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),~e&&s[e].d(l)}}}function i8(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g;o=new hr({props:{direction:"left"}});let T=_t(i[7]),k=[];for(let I=0;I<T.length;I+=1)k[I]=t_(e_(i,T,I));let D=I=>p(k[I],1,1,()=>{k[I]=null});return{c(){e=S("div"),t=S("ul"),n=S("li"),M(o.$$.fragment),r=j(),s=S("div"),a=De(i[5]),l=j();for(let I=0;I<k.length;I+=1)k[I].c();f(n,"class","item header back svelte-1mrc4z3"),f(n,"role","menuitem"),f(n,"tabindex","0"),f(n,"data-testid","return-to-settings-menu"),f(n,"aria-label",i[4]),z(n,"mobile",i[2]),f(t,"class","items"),f(t,"role","menu"),f(t,"style",u=i[15](i[10]?.clientHeight)),z(t,"mobile",i[2]),f(e,"class","sub-menu menu svelte-1mrc4z3"),f(e,"data-testid",c=`sub-menu-${i[1]}`),f(e,"style",m=`min-width: ${i[8]}px`),z(e,"desktop",!i[2]),z(e,"mobile",i[2])},m(I,C){v(I,e,C),_(e,t),_(t,n),E(o,n,null),_(n,r),_(n,s),_(s,a),i[20](n),_(t,l);for(let P=0;P<k.length;P+=1)k[P]&&k[P].m(t,null);i[21](t),h=!0,y||(g=[Te(n,"click",mt(function(){Wt(i[3])&&i[3].apply(this,arguments)})),Te(n,"keydown",i[14]),Te(t,"keydown",i[13])],y=!0)},p(I,[C]){if(i=I,(!h||C&32)&&je(a,i[5]),(!h||C&16)&&f(n,"aria-label",i[4]),(!h||C&4)&&z(n,"mobile",i[2]),C&708){T=_t(i[7]);let P;for(P=0;P<T.length;P+=1){let G=e_(i,T,P);k[P]?(k[P].p(G,C),d(k[P],1)):(k[P]=t_(G),k[P].c(),d(k[P],1),k[P].m(t,null))}for(le(),P=T.length;P<k.length;P+=1)D(P);ae()}(!h||C&1024&&u!==(u=i[15](i[10]?.clientHeight)))&&f(t,"style",u),(!h||C&4)&&z(t,"mobile",i[2]),(!h||C&2&&c!==(c=`sub-menu-${i[1]}`))&&f(e,"data-testid",c),(!h||C&256&&m!==(m=`min-width: ${i[8]}px`))&&f(e,"style",m),(!h||C&4)&&z(e,"desktop",!i[2]),(!h||C&4)&&z(e,"mobile",i[2])},i(I){if(!h){d(o.$$.fragment,I);for(let C=0;C<T.length;C+=1)d(k[C]);h=!0}},o(I){p(o.$$.fragment,I),k=k.filter(Boolean);for(let C=0;C<k.length;C+=1)p(k[C]);h=!1},d(I){I&&b(e),A(o),i[20](null),ti(k,I),i[21](null),y=!1,st(g)}}}function n8(i,e,t){let n,o,{id:r}=e,{parentItemId:s}=e,{isMobile:a=!1}=e,{playerControlsHeight:l=0}=e,{returnFromSubMenu:u}=e,{ariaLabelReturnFromSubMenu:c=W("aria_label_submenu_back")}=e,{title:m}=e,{listRef:h}=e,{closeSettingsMenu:y}=e,{openSubMenuList:g}=e,{itemIdReturnCase:T}=e,{items:k}=e,{minWidth:D}=e,{refMenuItems:I}=e,C=et(),P=C.ui.isFullscreen;R(i,P,q=>t(23,o=q));let G=C.ui.playerSize;R(i,G,q=>t(22,n=q));let x,O=q=>{y1(q,u,{itemIdReturnCase:T,id:s},y)},$=q=>{vs(q)&&(Un(q),u(),T.set(s))},se=(q=0)=>a&&o?`max-height: ${Math.round(n.height*.6)}px`:a?"":`max-height: ${n.height-32-q-l}px; overflow: auto;`;function K(q){ve[q?"unshift":"push"](()=>{x=q,t(10,x)})}function te(q){ve[q?"unshift":"push"](()=>{h=q,t(0,h)})}return i.$$set=q=>{"id"in q&&t(1,r=q.id),"parentItemId"in q&&t(16,s=q.parentItemId),"isMobile"in q&&t(2,a=q.isMobile),"playerControlsHeight"in q&&t(17,l=q.playerControlsHeight),"returnFromSubMenu"in q&&t(3,u=q.returnFromSubMenu),"ariaLabelReturnFromSubMenu"in q&&t(4,c=q.ariaLabelReturnFromSubMenu),"title"in q&&t(5,m=q.title),"listRef"in q&&t(0,h=q.listRef),"closeSettingsMenu"in q&&t(18,y=q.closeSettingsMenu),"openSubMenuList"in q&&t(6,g=q.openSubMenuList),"itemIdReturnCase"in q&&t(19,T=q.itemIdReturnCase),"items"in q&&t(7,k=q.items),"minWidth"in q&&t(8,D=q.minWidth),"refMenuItems"in q&&t(9,I=q.refMenuItems)},[h,r,a,u,c,m,g,k,D,I,x,P,G,O,$,se,s,l,y,T,K,te]}var wf=class extends B{constructor(e){super(),N(this,e,n8,i8,V,{id:1,parentItemId:16,isMobile:2,playerControlsHeight:17,returnFromSubMenu:3,ariaLabelReturnFromSubMenu:4,title:5,listRef:0,closeSettingsMenu:18,openSubMenuList:6,itemIdReturnCase:19,items:7,minWidth:8,refMenuItems:9},$6)}},i_=wf;var n_=require("@vkontakte/videoplayer-shared");function o8(i){be(i,"svelte-1ikfjte",".value.svelte-1ikfjte{position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis}")}function r8(i){let e,t,n;var o=i[8];function r(s,a){return{}}return o&&(e=At(o,r(i))),{c(){e&&M(e.$$.fragment),t=Ze()},m(s,a){e&&E(e,s,a),v(s,t,a),n=!0},p(s,a){if(a&256&&o!==(o=s[8])){if(e){le();let l=e;p(l.$$.fragment,1,0,()=>{A(l,1)}),ae()}o?(e=At(o,r(s,a)),M(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&b(t),e&&A(e,s)}}}function s8(i){let e,t;return e=new Qr({props:{icon:i[8]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&256&&(r.icon=n[8]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function l8(i){let e,t;return{c(){e=S("div"),t=De(i[6]),f(e,"class","value svelte-1ikfjte")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&64&&je(t,n[6])},i:me,o:me,d(n){n&&b(e)}}}function a8(i){let e,t,n;var o=i[7];function r(s,a){return{}}return o&&(e=At(o,r(i))),{c(){e&&M(e.$$.fragment),t=Ze()},m(s,a){e&&E(e,s,a),v(s,t,a),n=!0},p(s,a){if(a&128&&o!==(o=s[7])){if(e){le();let l=e;p(l.$$.fragment,1,0,()=>{A(l,1)}),ae()}o?(e=At(o,r(s,a)),M(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&b(t),e&&A(e,s)}}}function u8(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g=[s8,r8],T=[];function k(P,G){return typeof P[8]=="string"?0:1}n=k(i,-1),o=T[n]=g[n](i);let D=[a8,l8],I=[];function C(P,G){return P[7]?0:1}return u=C(i,-1),c=I[u]=D[u](i),{c(){e=S("li"),t=S("div"),o.c(),r=j(),s=S("div"),a=De(i[4]),l=j(),c.c(),f(t,"class","icon-wrapper"),f(s,"class","label"),f(e,"class","item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",i[5]),f(e,"aria-haspopup","true"),f(e,"data-testid",i[1]),z(e,"mobile",i[2])},m(P,G){v(P,e,G),_(e,t),T[n].m(t,null),_(e,r),_(e,s),_(s,a),_(e,l),I[u].m(e,null),i[11](e),m=!0,h||(y=[Te(e,"click",mt(function(){Wt(i[3])&&i[3].apply(this,arguments)})),Te(e,"keydown",i[9])],h=!0)},p(P,[G]){i=P;let x=n;n=k(i,G),n===x?T[n].p(i,G):(le(),p(T[x],1,1,()=>{T[x]=null}),ae(),o=T[n],o?o.p(i,G):(o=T[n]=g[n](i),o.c()),d(o,1),o.m(t,null)),(!m||G&16)&&je(a,i[4]);let O=u;u=C(i,G),u===O?I[u].p(i,G):(le(),p(I[O],1,1,()=>{I[O]=null}),ae(),c=I[u],c?c.p(i,G):(c=I[u]=D[u](i),c.c()),d(c,1),c.m(e,null)),(!m||G&32)&&f(e,"aria-label",i[5]),(!m||G&2)&&f(e,"data-testid",i[1]),(!m||G&4)&&z(e,"mobile",i[2])},i(P){m||(d(o),d(c),m=!0)},o(P){p(o),p(c),m=!1},d(P){P&&b(e),T[n].d(),I[u].d(),i[11](null),h=!1,st(y)}}}function c8(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:r=n_.noop}=e,{getSubItemForFocus:s}=e,{label:a}=e,{ariaLabel:l}=e,{value:u}=e,{valueComponent:c=void 0}=e,{ref:m}=e,{icon:h}=e,y=T=>nl(T,r,s);function g(T){ve[T?"unshift":"push"](()=>{m=T,t(0,m)})}return i.$$set=T=>{"id"in T&&t(1,n=T.id),"isMobile"in T&&t(2,o=T.isMobile),"onClick"in T&&t(3,r=T.onClick),"getSubItemForFocus"in T&&t(10,s=T.getSubItemForFocus),"label"in T&&t(4,a=T.label),"ariaLabel"in T&&t(5,l=T.ariaLabel),"value"in T&&t(6,u=T.value),"valueComponent"in T&&t(7,c=T.valueComponent),"ref"in T&&t(0,m=T.ref),"icon"in T&&t(8,h=T.icon)},[m,n,o,r,a,l,u,c,h,y,s,g]}var Sf=class extends B{constructor(e){super(),N(this,e,c8,u8,V,{id:1,isMobile:2,onClick:3,getSubItemForFocus:10,label:4,ariaLabel:5,value:6,valueComponent:7,ref:0,icon:8},o8)}},o_=Sf;function f8(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18"),f(t,"clip-rule","evenodd"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function d8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Tf=class extends B{constructor(e){super(),N(this,e,d8,f8,V,{})}},r_=Tf;function m8(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z"),f(t,"clip-rule","evenodd"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function p8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var If=class extends B{constructor(e){super(),N(this,e,p8,m8,V,{})}},s_=If;function _8(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=L("svg"),a&&a.c(),t=L("g"),n=L("path"),o=L("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"fill-rule","nonzero"),f(o,"d","M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),Ce(e,u)},m(c,m){v(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),Ce(e,u=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&b(e),a&&a.d(c)}}}function h8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Pf=class extends B{constructor(e){super(),N(this,e,h8,_8,V,{})}},l_=Pf;function g8(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function b8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Ef=class extends B{constructor(e){super(),N(this,e,b8,g8,V,{})}},a_=Ef;function v8(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492"),f(t,"clip-rule","evenodd"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function y8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Af=class extends B{constructor(e){super(),N(this,e,y8,v8,V,{})}},Mf=Af;function k8(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function w8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Lf=class extends B{constructor(e){super(),N(this,e,w8,k8,V,{})}},u_=Lf;function C8(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z"),f(t,"clip-rule","evenodd"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function S8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Vf=class extends B{constructor(e){super(),N(this,e,S8,C8,V,{})}},c_=Vf;var $D=require("@vkontakte/videoplayer-core");function T8(i){be(i,"svelte-1a7qwh6",".menu-item-value.svelte-1a7qwh6.svelte-1a7qwh6{position:relative;padding-right:22px}.menu-item-value.svelte-1a7qwh6 span.svelte-1a7qwh6{opacity:0.7}.menu-item-value.sub.svelte-1a7qwh6 span.svelte-1a7qwh6{opacity:1}.quality-icon.svelte-1a7qwh6.svelte-1a7qwh6{position:absolute;top:-8px;right:2px;width:15px}.quality-icon.svelte-1a7qwh6 svg{color:var(--blue-light)}")}function f_(i){let e,t,n;var o=i[3];function r(s,a){return{}}return o&&(t=At(o,r(i))),{c(){e=S("div"),t&&M(t.$$.fragment),f(e,"class","quality-icon svelte-1a7qwh6")},m(s,a){v(s,e,a),t&&E(t,e,null),n=!0},p(s,a){if(a&8&&o!==(o=s[3])){if(t){le();let l=t;p(l.$$.fragment,1,0,()=>{A(l,1)}),ae()}o?(t=At(o,r(s,a)),M(t.$$.fragment),d(t.$$.fragment,1),E(t,e,null)):t=null}},i(s){n||(t&&d(t.$$.fragment,s),n=!0)},o(s){t&&p(t.$$.fragment,s),n=!1},d(s){s&&b(e),t&&A(t)}}}function I8(i){let e,t,n,o,r,s=i[3]&&!i[1]&&f_(i);return{c(){e=S("div"),t=S("span"),n=De(i[0]),o=j(),s&&s.c(),f(t,"class","svelte-1a7qwh6"),f(e,"class","menu-item-value svelte-1a7qwh6"),z(e,"sub",i[2])},m(a,l){v(a,e,l),_(e,t),_(t,n),_(e,o),s&&s.m(e,null),r=!0},p(a,[l]){(!r||l&1)&&je(n,a[0]),a[3]&&!a[1]?s?(s.p(a,l),l&10&&d(s,1)):(s=f_(a),s.c(),d(s,1),s.m(e,null)):s&&(le(),p(s,1,1,()=>{s=null}),ae()),(!r||l&4)&&z(e,"sub",a[2])},i(a){r||(d(s),r=!0)},o(a){p(s),r=!1},d(a){a&&b(e),s&&s.d()}}}function P8(i,e,t){let n,{quality:o}=e,{label:r}=e,{isMobile:s}=e,{isSubCase:a=!1}=e;return i.$$set=l=>{"quality"in l&&t(4,o=l.quality),"label"in l&&t(0,r=l.label),"isMobile"in l&&t(1,s=l.isMobile),"isSubCase"in l&&t(2,a=l.isSubCase)},i.$$.update=()=>{i.$$.dirty&16&&t(3,n=pl(o))},[r,s,a,n,o]}var Rf=class extends B{constructor(e){super(),N(this,e,P8,I8,V,{quality:4,label:0,isMobile:1,isSubCase:2},T8)}},Jl=Rf;var d_=require("@vkontakte/videoplayer-core");var $l=(i,e,t)=>{if(!i)return"...";let n=e.find(r=>r.value===i),o=n?n.displayValue:i;return t?i===d_.VideoQuality.INVARIANT?W("auto_quality_invariant"):W("auto_quality",{actual:o}):o};function E8(i){be(i,"svelte-vk2gx4",".menu-item-value-wrapper.svelte-vk2gx4{right:-22px;position:relative}")}function A8(i){let e,t,n;return t=new Jl({props:{quality:i[0],label:i[1],isMobile:i[2]}}),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","menu-item-value-wrapper svelte-vk2gx4")},m(o,r){v(o,e,r),E(t,e,null),n=!0},p(o,[r]){let s={};r&1&&(s.quality=o[0]),r&2&&(s.label=o[1]),r&4&&(s.isMobile=o[2]),t.$set(s)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function M8(i,e,t){let n,o,r,s,a=et(),l=a.state.currentQuality$;R(i,l,y=>t(0,r=y));let u=a.state.availableQualities$;R(i,u,y=>t(8,o=y));let c=a.state.isAutoQualityEnabled$;R(i,c,y=>t(7,n=y));let m=a.ui.isMobile;R(i,m,y=>t(2,s=y));let h;return i.$$.update=()=>{i.$$.dirty&385&&t(1,h=$l(r,o,n))},[r,h,s,l,u,c,m,n,o]}var Bf=class extends B{constructor(e){super(),N(this,e,M8,A8,V,{},E8)}},m_=Bf;var Nf=require("@vkontakte/videoplayer-shared");function L8(i){let e,t,n;var o=i[4];function r(s,a){return{}}return o&&(e=At(o,r(i))),{c(){e&&M(e.$$.fragment),t=Ze()},m(s,a){e&&E(e,s,a),v(s,t,a),n=!0},p(s,a){if(a&16&&o!==(o=s[4])){if(e){le();let l=e;p(l.$$.fragment,1,0,()=>{A(l,1)}),ae()}o?(e=At(o,r(s,a)),M(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&b(t),e&&A(e,s)}}}function V8(i){let e;function t(r,s){return r[5]?B8:R8}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Ze()},m(r,s){o.m(r,s),v(r,e,s)},p(r,s){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:me,o:me,d(r){r&&b(e),o.d(r)}}}function R8(i){let e,t,n,o;return{c(){e=S("img"),f(e,"class","icon"),wo(e.src,t=i[4])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){v(r,e,s),n||(o=Te(e,"error",i[6]),n=!0)},p(r,s){s&16&&!wo(e.src,t=r[4])&&f(e,"src",t)},d(r){r&&b(e),n=!1,o()}}}function B8(i){let e;return{c(){e=S("div"),e.innerHTML='<div class="inner"></div>',f(e,"class","icon icon-error-stub")},m(t,n){v(t,e,n)},p:me,d(t){t&&b(e)}}}function N8(i){let e,t,n,o,r,s,a,l,u,c,m,h=[V8,L8],y=[];function g(T,k){return typeof T[4]=="string"?0:1}return n=g(i,-1),o=y[n]=h[n](i),{c(){e=S("li"),t=S("div"),o.c(),r=j(),s=S("div"),a=De(i[2]),f(t,"class","icon-wrapper"),f(s,"class","label"),f(e,"class","item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",l=i[3]??i[2]),f(e,"data-testid",i[0]),z(e,"mobile",i[1])},m(T,k){v(T,e,k),_(e,t),y[n].m(t,null),_(e,r),_(e,s),_(s,a),u=!0,c||(m=[Te(e,"click",mt(i[7])),Te(e,"keydown",i[8])],c=!0)},p(T,[k]){let D=n;n=g(T,k),n===D?y[n].p(T,k):(le(),p(y[D],1,1,()=>{y[D]=null}),ae(),o=y[n],o?o.p(T,k):(o=y[n]=h[n](T),o.c()),d(o,1),o.m(t,null)),(!u||k&4)&&je(a,T[2]),(!u||k&12&&l!==(l=T[3]??T[2]))&&f(e,"aria-label",l),(!u||k&1)&&f(e,"data-testid",T[0]),(!u||k&2)&&z(e,"mobile",T[1])},i(T){u||(d(o),u=!0)},o(T){p(o),u=!1},d(T){T&&b(e),y[n].d(),c=!1,st(m)}}}function D8(i,e,t){let n,{id:o}=e,{isMobile:r=!1}=e,{onClick:s=Nf.noop}=e,{closeSettings:a=Nf.noop}=e,{label:l}=e,{ariaLabel:u}=e,{icon:c}=e,m=()=>{t(5,n=!0)},h=()=>{s(),a()},y=g=>{Or(g,()=>h())};return i.$$set=g=>{"id"in g&&t(0,o=g.id),"isMobile"in g&&t(1,r=g.isMobile),"onClick"in g&&t(9,s=g.onClick),"closeSettings"in g&&t(10,a=g.closeSettings),"label"in g&&t(2,l=g.label),"ariaLabel"in g&&t(3,u=g.ariaLabel),"icon"in g&&t(4,c=g.icon)},t(5,n=!1),[o,r,l,u,c,n,m,h,y,s,a]}var Df=class extends B{constructor(e){super(),N(this,e,D8,N8,V,{id:0,isMobile:1,onClick:9,closeSettings:10,label:2,ariaLabel:3,icon:4})}},p_=Df;var h_=require("@vkontakte/videoplayer-shared");function O8(i){be(i,"svelte-17wbjko",'.toggle_wrap.svelte-17wbjko{min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none}.toggle.svelte-17wbjko{float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer}.toggle.svelte-17wbjko::after{content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease}.toggle.on.svelte-17wbjko::after{background-color:var(--toggle-color-on);left:13px}.toggle-label.svelte-17wbjko{overflow:hidden}')}function F8(i){let e,t,n,o;return{c(){e=S("div"),t=S("div"),n=j(),o=S("div"),f(t,"class","toggle svelte-17wbjko"),z(t,"on",i[0]),f(o,"class","toggle-label svelte-17wbjko"),f(e,"class","toggle_wrap svelte-17wbjko")},m(r,s){v(r,e,s),_(e,t),_(e,n),_(e,o)},p(r,[s]){s&1&&z(t,"on",r[0])},i:me,o:me,d(r){r&&b(e)}}}function x8(i,e,t){let{enabled:n=!1}=e;return i.$$set=o=>{"enabled"in o&&t(0,n=o.enabled)},[n]}var Of=class extends B{constructor(e){super(),N(this,e,x8,F8,V,{enabled:0},O8)}},__=Of;function H8(i){let e,t,n;var o=i[4];function r(s,a){return{}}return o&&(e=At(o,r(i))),{c(){e&&M(e.$$.fragment),t=Ze()},m(s,a){e&&E(e,s,a),v(s,t,a),n=!0},p(s,a){if(a&16&&o!==(o=s[4])){if(e){le();let l=e;p(l.$$.fragment,1,0,()=>{A(l,1)}),ae()}o?(e=At(o,r(s,a)),M(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&b(t),e&&A(e,s)}}}function q8(i){let e,t;return e=new Qr({props:{icon:i[4]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.icon=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function U8(i){let e,t,n,o,r,s,a,l,u,c,m=[q8,H8],h=[];function y(g,T){return typeof g[4]=="string"?0:1}return n=y(i,-1),o=h[n]=m[n](i),u=new __({props:{enabled:i[5]}}),{c(){e=S("div"),t=S("div"),o.c(),r=j(),s=S("div"),a=De(i[2]),l=j(),M(u.$$.fragment),f(t,"class","icon-wrapper"),f(s,"class","label"),f(e,"class","switch-wrapper"),z(e,"mobile",i[1])},m(g,T){v(g,e,T),_(e,t),h[n].m(t,null),_(e,r),_(e,s),_(s,a),_(e,l),E(u,e,null),c=!0},p(g,T){let k=n;n=y(g,T),n===k?h[n].p(g,T):(le(),p(h[k],1,1,()=>{h[k]=null}),ae(),o=h[n],o?o.p(g,T):(o=h[n]=m[n](g),o.c()),d(o,1),o.m(t,null)),(!c||T&4)&&je(a,g[2]);let D={};T&32&&(D.enabled=g[5]),u.$set(D),(!c||T&2)&&z(e,"mobile",g[1])},i(g){c||(d(o),d(u.$$.fragment,g),c=!0)},o(g){p(o),p(u.$$.fragment,g),c=!1},d(g){g&&b(e),h[n].d(),A(u)}}}function z8(i){let e,t,n,o,r,s;return t=new Ur({props:{content:i[6],isMobile:i[1],placement:"left",translateX:10,isFullWidthWrapper:!0,maxTooltipWidth:i[7],$$slots:{default:[U8]},$$scope:{ctx:i}}}),{c(){e=S("li"),M(t.$$.fragment),f(e,"class","item switch-item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",n=i[3]??i[2]),f(e,"data-testid",i[0]),z(e,"mobile",i[1])},m(a,l){v(a,e,l),E(t,e,null),o=!0,r||(s=[Te(e,"click",mt(i[9])),Te(e,"keydown",i[8])],r=!0)},p(a,[l]){let u={};l&64&&(u.content=a[6]),l&2&&(u.isMobile=a[1]),l&128&&(u.maxTooltipWidth=a[7]),l&2102&&(u.$$scope={dirty:l,ctx:a}),t.$set(u),(!o||l&12&&n!==(n=a[3]??a[2]))&&f(e,"aria-label",n),(!o||l&1)&&f(e,"data-testid",a[0]),(!o||l&2)&&z(e,"mobile",a[1])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&b(e),A(t),r=!1,st(s)}}}function W8(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:r=h_.noop}=e,{label:s}=e,{ariaLabel:a}=e,{icon:l}=e,{enabled:u=!1}=e,{tooltipText:c=void 0}=e,{maxTooltipWidth:m=void 0}=e,h=g=>{k1(g,u,T=>r(T))},y=()=>r(!u);return i.$$set=g=>{"id"in g&&t(0,n=g.id),"isMobile"in g&&t(1,o=g.isMobile),"onClick"in g&&t(10,r=g.onClick),"label"in g&&t(2,s=g.label),"ariaLabel"in g&&t(3,a=g.ariaLabel),"icon"in g&&t(4,l=g.icon),"enabled"in g&&t(5,u=g.enabled),"tooltipText"in g&&t(6,c=g.tooltipText),"maxTooltipWidth"in g&&t(7,m=g.maxTooltipWidth)},[n,o,s,a,l,u,c,m,h,y,r]}var Ff=class extends B{constructor(e){super(),N(this,e,W8,z8,V,{id:0,isMobile:1,onClick:10,label:2,ariaLabel:3,icon:4,enabled:5,tooltipText:6,maxTooltipWidth:7})}},g_=Ff;var T_=require("@vkontakte/videoplayer-shared");function K8(i){be(i,"svelte-1t2c6ej",".settings-menu-container.mobile.svelte-1t2c6ej.svelte-1t2c6ej{width:100%}.settings-menu-container.svelte-1t2c6ej ul{margin:0;padding:0;list-style-type:none}.settings-menu-container.svelte-1t2c6ej .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden}.settings-menu-container.svelte-1t2c6ej .menu .item:first-child:not(.mobile){padding-top:6px;border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius)}.settings-menu-container.svelte-1t2c6ej .menu .item:last-child{padding-bottom:6px;border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius)}.settings-menu-container.svelte-1t2c6ej .menu.desktop{position:absolute;right:0;bottom:0}.settings-menu.svelte-1t2c6ej.svelte-1t2c6ej{line-height:40px}.settings-menu.desktop.svelte-1t2c6ej.svelte-1t2c6ej{min-width:300px}.settings-menu-container.svelte-1t2c6ej .menu.mobile{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.settings-menu-container.svelte-1t2c6ej .menu.mobile.hidden{display:none}.settings-menu-container.svelte-1t2c6ej .menu .item:not(.switch-item),.settings-menu-container.svelte-1t2c6ej .menu .switch-wrapper{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative}.settings-menu-container.svelte-1t2c6ej .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.svelte-1t2c6ej .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.svelte-1t2c6ej .item:not(.switch-item),.settings-menu.svelte-1t2c6ej .switch-wrapper{padding:0 32px 0 18px}.settings-menu.svelte-1t2c6ej .item.mobile:not(.switch-item),.settings-menu.svelte-1t2c6ej .switch-wrapper.mobile{padding:0 14px}.settings-menu.svelte-1t2c6ej .icon-wrapper{width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.settings-menu.svelte-1t2c6ej .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.svelte-1t2c6ej .item.header.svelte-1t2c6ej{color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px}.settings-menu-container.svelte-1t2c6ej .items::-webkit-scrollbar{width:8px}.settings-menu-container.svelte-1t2c6ej .items::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.settings-menu-container.svelte-1t2c6ej .items::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.settings-menu-container.svelte-1t2c6ej .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.svelte-1t2c6ej .items.mobile{overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left}.close.svelte-1t2c6ej.svelte-1t2c6ej{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.svelte-1t2c6ej.svelte-1t2c6ej:before,.close.svelte-1t2c6ej.svelte-1t2c6ej:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.svelte-1t2c6ej.svelte-1t2c6ej:before{transform:rotate(45deg)}.close.svelte-1t2c6ej.svelte-1t2c6ej:after{transform:rotate(-45deg)}")}function v_(i,e,t){let n=i.slice();return n[95]=e[t],n[96]=e,n[97]=t,n}function y_(i,e,t){let n=i.slice();return n[95]=e[t],n[98]=e,n[99]=t,n}function k_(i){let e,t,n,o,r,s,a,l=i[6]&&w_(i),u=_t(i[4]),c=[];for(let h=0;h<u.length;h+=1)c[h]=C_(y_(i,u,h));let m=h=>p(c[h],1,1,()=>{c[h]=null});return{c(){e=S("div"),l&&l.c(),t=j(),n=S("ul");for(let h=0;h<c.length;h+=1)c[h].c();f(n,"class","items"),f(n,"role","menu"),f(n,"style",o=i[35]()),z(n,"mobile",i[6]),f(e,"class","settings-menu menu svelte-1t2c6ej"),f(e,"data-testid","settings-menu"),z(e,"desktop",!i[6]),z(e,"mobile",i[6]),z(e,"hidden",!i[8])},m(h,y){v(h,e,y),l&&l.m(e,null),_(e,t),_(e,n);for(let g=0;g<c.length;g+=1)c[g]&&c[g].m(n,null);i[70](n),r=!0,s||(a=[Te(e,"keydown",i[37]),Te(e,"mouseenter",i[33]),Te(e,"mouseleave",i[34])],s=!0)},p(h,y){if(h[6]?l?l.p(h,y):(l=w_(h),l.c(),l.m(e,t)):l&&(l.d(1),l=null),y[0]&1073741908|y[1]&1){u=_t(h[4]);let g;for(g=0;g<u.length;g+=1){let T=y_(h,u,g);c[g]?(c[g].p(T,y),d(c[g],1)):(c[g]=C_(T),c[g].c(),d(c[g],1),c[g].m(n,null))}for(le(),g=u.length;g<c.length;g+=1)m(g);ae()}(!r||y[0]&64)&&z(n,"mobile",h[6]),(!r||y[0]&64)&&z(e,"desktop",!h[6]),(!r||y[0]&64)&&z(e,"mobile",h[6]),(!r||y[0]&256)&&z(e,"hidden",!h[8])},i(h){if(!r){for(let y=0;y<u.length;y+=1)d(c[y]);r=!0}},o(h){c=c.filter(Boolean);for(let y=0;y<c.length;y+=1)p(c[y]);r=!1},d(h){h&&b(e),l&&l.d(),ti(c,h),i[70](null),s=!1,st(a)}}}function w_(i){let e,t,n,o,r,s;return{c(){e=S("div"),t=S("div"),t.textContent=`${W("submenu_settings")}`,n=j(),o=S("div"),f(o,"class","close svelte-1t2c6ej"),f(e,"class","item header svelte-1t2c6ej"),z(e,"mobile",i[6])},m(a,l){v(a,e,l),_(e,t),_(e,n),_(e,o),r||(s=Te(o,"click",mt(i[31])),r=!0)},p(a,l){l[0]&64&&z(e,"mobile",a[6])},d(a){a&&b(e),r=!1,s()}}}function j8(i){let e,t;return e=new g_({props:{isMobile:i[6],id:i[95].id,onClick:i[95].onClick,icon:i[95].icon,label:i[95].label,ariaLabel:i[95].ariaLabel,enabled:i[95].enabled,tooltipText:i[95].tooltipText,maxTooltipWidth:i[95].maxTooltipWidth}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&64&&(r.isMobile=n[6]),o[0]&16&&(r.id=n[95].id),o[0]&16&&(r.onClick=n[95].onClick),o[0]&16&&(r.icon=n[95].icon),o[0]&16&&(r.label=n[95].label),o[0]&16&&(r.ariaLabel=n[95].ariaLabel),o[0]&16&&(r.enabled=n[95].enabled),o[0]&16&&(r.tooltipText=n[95].tooltipText),o[0]&16&&(r.maxTooltipWidth=n[95].maxTooltipWidth),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function G8(i){let e,t;return e=new p_({props:{isMobile:i[6],id:i[95].id,onClick:i[95].onClick,icon:i[95].icon,label:i[95].label,ariaLabel:i[95].ariaLabel,closeSettings:i[31]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&64&&(r.isMobile=n[6]),o[0]&16&&(r.id=n[95].id),o[0]&16&&(r.onClick=n[95].onClick),o[0]&16&&(r.icon=n[95].icon),o[0]&16&&(r.label=n[95].label),o[0]&16&&(r.ariaLabel=n[95].ariaLabel),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Y8(i){let e,t,n;function o(){return i[68](i[95])}function r(a){i[69](a,i[95])}let s={isMobile:i[6],id:i[95].id,icon:i[95].icon,label:i[95].label,ariaLabel:i[95].ariaLabel,value:i[95].value,valueComponent:i[95].valueComponent,onClick:o,getSubItemForFocus:i[95].getSubItemForFocus};return i[2][i[95].id]!==void 0&&(s.ref=i[2][i[95].id]),e=new o_({props:s}),ve.push(()=>We(e,"ref",r)),{c(){M(e.$$.fragment)},m(a,l){E(e,a,l),n=!0},p(a,l){i=a;let u={};l[0]&64&&(u.isMobile=i[6]),l[0]&16&&(u.id=i[95].id),l[0]&16&&(u.icon=i[95].icon),l[0]&16&&(u.label=i[95].label),l[0]&16&&(u.ariaLabel=i[95].ariaLabel),l[0]&16&&(u.value=i[95].value),l[0]&16&&(u.valueComponent=i[95].valueComponent),l[0]&16&&(u.onClick=o),l[0]&16&&(u.getSubItemForFocus=i[95].getSubItemForFocus),!t&&l[0]&20&&(t=!0,u.ref=i[2][i[95].id],ze(()=>t=!1)),e.$set(u)},i(a){n||(d(e.$$.fragment,a),n=!0)},o(a){p(e.$$.fragment,a),n=!1},d(a){A(e,a)}}}function C_(i){let e,t,n,o,r=[Y8,G8,j8],s=[];function a(l,u){return l[95].type==="OPEN_SUB_MENU"?0:l[95].type==="CLICK"?1:l[95].type==="SWITCH"?2:-1}return~(e=a(i,[-1,-1,-1,-1]))&&(t=s[e]=r[e](i)),{c(){t&&t.c(),n=Ze()},m(l,u){~e&&s[e].m(l,u),v(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?~e&&s[e].p(l,u):(t&&(le(),p(s[c],1,1,()=>{s[c]=null}),ae()),~e?(t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n)):t=null)},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),~e&&s[e].d(l)}}}function S_(i,e){let t,n,o,r;function s(l){e[71](l,e[95])}let a={isMobile:e[6],playerControlsHeight:e[1],itemIdReturnCase:e[36],returnFromSubMenu:e[95].returnFromSubMenu??e[32].bind(null,!1),id:e[95].id,parentItemId:e[95].parentItemId,title:e[95].title,closeSettingsMenu:e[95].closeSettingsMenu,openSubMenuList:e[30],items:e[95].items,minWidth:e[95].minWidth??137,refMenuItems:e[2]};return e[3][e[95].id]!==void 0&&(a.listRef=e[3][e[95].id]),n=new i_({props:a}),ve.push(()=>We(n,"listRef",s)),{key:i,first:null,c(){t=Ze(),M(n.$$.fragment),this.first=t},m(l,u){v(l,t,u),E(n,l,u),r=!0},p(l,u){e=l;let c={};u[0]&64&&(c.isMobile=e[6]),u[0]&2&&(c.playerControlsHeight=e[1]),u[0]&32&&(c.returnFromSubMenu=e[95].returnFromSubMenu??e[32].bind(null,!1)),u[0]&32&&(c.id=e[95].id),u[0]&32&&(c.parentItemId=e[95].parentItemId),u[0]&32&&(c.title=e[95].title),u[0]&32&&(c.closeSettingsMenu=e[95].closeSettingsMenu),u[0]&32&&(c.items=e[95].items),u[0]&32&&(c.minWidth=e[95].minWidth??137),u[0]&4&&(c.refMenuItems=e[2]),!o&&u[0]&40&&(o=!0,c.listRef=e[3][e[95].id],ze(()=>o=!1)),n.$set(c)},i(l){r||(d(n.$$.fragment,l),r=!0)},o(l){p(n.$$.fragment,l),r=!1},d(l){l&&b(t),A(n,l)}}}function Q8(i){let e,t,n=[],o=new Map,r,s=i[7]&&k_(i),a=_t(i[5]),l=u=>u[95].id;for(let u=0;u<a.length;u+=1){let c=v_(i,a,u),m=l(c);o.set(m,n[u]=S_(m,c))}return{c(){e=S("div"),s&&s.c(),t=j();for(let u=0;u<n.length;u+=1)n[u].c();f(e,"class","settings-menu-container svelte-1t2c6ej"),z(e,"hidden",!i[7]),z(e,"mobile",i[6])},m(u,c){v(u,e,c),s&&s.m(e,null),_(e,t);for(let m=0;m<n.length;m+=1)n[m]&&n[m].m(e,null);r=!0},p(u,c){u[7]?s?(s.p(u,c),c[0]&128&&d(s,1)):(s=k_(u),s.c(),d(s,1),s.m(e,t)):s&&(le(),p(s,1,1,()=>{s=null}),ae()),c[0]&1073741934|c[1]&34&&(a=_t(u[5]),le(),n=pd(n,c,l,1,u,a,o,e,md,S_,null,v_),ae()),(!r||c[0]&128)&&z(e,"hidden",!u[7]),(!r||c[0]&64)&&z(e,"mobile",u[6])},i(u){if(!r){d(s);for(let c=0;c<a.length;c+=1)d(n[c]);r=!0}},o(u){p(s);for(let c=0;c<n.length;c+=1)p(n[c]);r=!1},d(u){u&&b(e),s&&s.d();for(let c=0;c<n.length;c+=1)n[c].d()}}}function Z8(i,e,t){let n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C,P,G,x,O,$,se,K,{ref:te=void 0}=e,{supportLink:q}=e,{playerControlsHeight:J=0}=e,{returnFocus:ke}=e,H=et(),ne=It(),F=H.state.audioStream$;R(i,F,ge=>t(54,m=ge));let _e=H.state.availableAudioStreams$;R(i,_e,ge=>t(53,c=ge));let oe=H.state.currentQuality$;R(i,oe,ge=>t(62,C=ge));let Q=H.state.availableQualities$;R(i,Q,ge=>t(55,h=ge));let Z=H.state.autoQualityLimitingAvailable$;R(i,Z,ge=>t(66,O=ge));let de=H.state.isAutoQualityEnabled$;R(i,de,ge=>t(63,P=ge));let qe=H.state.currentPlaybackRate$;R(i,qe,ge=>t(60,D=ge));let Je=H.state.availablePlaybackRates$;R(i,Je,ge=>t(52,u=ge));let Pe=H.state.currentSubtitle$;R(i,Pe,ge=>t(59,k=ge));let Se=H.state.availableSubtitlesList$;R(i,Se,ge=>t(50,a=ge));let Ae=H.state.canDownload,Ke=H.state.hasMpegSources$;R(i,Ke,ge=>t(67,$=ge));let X=H.ui.settingsMenu.visible$;R(i,X,ge=>t(7,K=ge));let he=H.ui.settingsMenu.openedByBtnKeyboard$;R(i,he,ge=>t(73,r=ge));let Ie=H.ui.settingsMenu.ref$,Ye=H.ui.isMobile;R(i,Ye,ge=>t(6,s=ge));let tt=H.ui.mobileNotReportControlHidden$;R(i,tt,ge=>t(64,G=ge));let it=H.state.canChangePlaybackSpeed$;R(i,it,ge=>t(65,x=ge));let rt=H.state.trafficSavingEnabled$;R(i,rt,ge=>t(58,T=ge));let $e=H.ui.playerSize;R(i,$e,ge=>t(74,se=ge));let pe=H.ui.debugPanelVisible;R(i,pe,ge=>t(57,g=ge));let Ee=H.state.isInteractiveTime$,Me=H.ui.additionalSettingsMenuItems$;R(i,Me,ge=>t(56,y=ge));let Xe=H.actions.internal.downloadVideo,Qe=H.actions.internal.closeSettingsMenu,Oe=H.actions.internal.openSettingsSubMenu,ce=H.actions.internal.closeSettingsSubMenu,ct=!0,ht=Ne({});R(i,ht,ge=>t(51,l=ge));let gt="",bt=!1;async function Fe(ge){t(8,ct=!1),t(40,gt=ge);let pt=St();pt[ge]=!0,ht.set(pt),await cn(),Oe(ge,Bt[ge])}function kt(){r||ke?.(),Qe(),Mt(!0),bt=!1}function Ot(ge){H.actions.internal.setQuality(ge),kt()}function Ut(ge){H.actions.internal.setAudioStream(ge),kt()}function Qt(ge){H.actions.internal.setTrafficSavingEnabled(ge)}function Ht(ge){H.actions.internal.setPlaybackRate(ge),kt()}function lt(ge){H.actions.internal.setSubtitle(ge),kt()}function St(){let ge=l;return Object.keys(ge).forEach(pt=>{ge[pt]=!1}),ge}function Mt(ge=!1){t(8,ct=!0);let pt=St();ht.set(pt),ce(Bt[gt],ge),t(40,gt="")}function Lt(){Xe()}function yi(){(0,T_.isValidURL)(q)&&window.open(q,"_blank"),H.actions.internal.reportProblem(),H.actions.internal.pause()}function Kt(){Br(H.actions.internal.getDebugTextData())}let ye=()=>{let ge=H.actions.internal.getTraceTextData(),pt=new Blob([...ge],{type:"application/json"}),xi=window.URL.createObjectURL(pt);rr(xi,"vk_player_trace_info","json")};function Ft(){pe.set(!g)}function Vt(){bt=!0}function Zt(){bt=!1}function xt(){return s?`max-height: ${Math.round(se.height*.6)}px`:`max-height: ${se.height-32-J}px; overflow: auto;`}let Pt,Rt,ki,oi,wi,Li,ai,_i=Ne();R(i,_i,ge=>t(61,I=ge));let hi={},Bt={},Oi=ge=>{il(ge,Qe)},Nt=[],Yt=[];vt(()=>{let ge=Ee.subscribe(pt=>{pt&&!s&&!bt&&!r&&kt()});return()=>{ge()}});let Fi=ge=>Fe(ge.subMenuId);function Ci(ge,pt){i.$$.not_equal(hi[pt.id],ge)&&(hi[pt.id]=ge,t(2,hi))}function Si(ge){ve[ge?"unshift":"push"](()=>{te=ge,t(0,te)})}function Ti(ge,pt){i.$$.not_equal(Bt[pt.id],ge)&&(Bt[pt.id]=ge,t(3,Bt))}return i.$$set=ge=>{"ref"in ge&&t(0,te=ge.ref),"supportLink"in ge&&t(38,q=ge.supportLink),"playerControlsHeight"in ge&&t(1,J=ge.playerControlsHeight),"returnFocus"in ge&&t(39,ke=ge.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&128|i.$$.dirty[1]&512&&!K&&gt&&Mt(),i.$$.dirty[0]&1&&te&&Ie.set(te),i.$$.dirty[1]&16777216|i.$$.dirty[2]&3&&t(48,n=$l(C,h,P)),i.$$.dirty[2]&36&&t(41,Pt=Ae&&$&&!G),i.$$.dirty[2]&20&&t(42,Rt=ne.features.trafficSaving&&!G&&O),i.$$.dirty[1]&524288|i.$$.dirty[2]&4&&t(43,ki=a.length>0&&!G),i.$$.dirty[2]&12&&t(44,oi=!!x&&!G),i.$$.dirty[1]&4194304|i.$$.dirty[2]&4&&t(45,wi=ne.features.audioLanguages&&c.length>=2&&!G),i.$$.dirty[2]&4&&t(49,o=!G),i.$$.dirty[2]&3&&t(46,Li=P?W("auto_quality_option"):C),i.$$.dirty[1]&538968064&&t(47,ai=u.find(ge=>ge.value===D)?.displayValue),i.$$.dirty[0]&4|i.$$.dirty[1]&1073741824){let ge=I;ge&&(v1(hi,ge),_i.set(void 0))}i.$$.dirty[0]&88|i.$$.dirty[1]&1072692224&&(t(4,Nt=[]),o&&Nt.push({id:"quality-settings",weight:to["quality-settings"],type:"OPEN_SUB_MENU",subMenuId:"quality-sub",getSubItemForFocus:()=>{let ge=h.findIndex(pt=>pt.selected);return Bt["quality-sub"].children[ge+1]},ariaLabel:W("aria_label_menu_quality",{actual:Li}),icon:_l,label:W("menu_quality"),value:n,valueComponent:m_}),wi&&Nt.push({id:"audio-language-settings",weight:to["audio-language-settings"],type:"OPEN_SUB_MENU",subMenuId:"audio-language-sub",getSubItemForFocus:()=>{let ge=c.findIndex(pt=>pt.id===m?.id);return Bt["audio-language-sub"].children[ge+1]},ariaLabel:W("aria_label_menu_audio_languages",{actual:Xl(m,c)}),icon:a_,label:W("menu_audio_languages"),value:Xl(m,c)}),oi&&Nt.push({id:"playback-rate-settings",weight:to["playback-rate-settings"],type:"OPEN_SUB_MENU",subMenuId:"playback-rate-sub",getSubItemForFocus:()=>{let ge=u.findIndex(pt=>pt.selected);return Bt["playback-rate-sub"].children[ge+1]},ariaLabel:W("aria_label_menu_rate",{actual:ai}),icon:l_,label:W("menu_playback_rate"),value:`${D}x`}),ki&&Nt.push({id:"subtitles-settings",weight:to["subtitles-settings"],type:"OPEN_SUB_MENU",subMenuId:"subtitles-sub",getSubItemForFocus:()=>{let ge=a.findIndex(pt=>pt.selected);return Bt["subtitles-sub"].children[ge+1]},ariaLabel:W("aria_label_menu_subtitle",{actual:k.displayValue}),icon:hl,label:W("subtitles_caption"),value:k.displayValue}),Rt&&Nt.push({id:"traffic-saving-settings",weight:to["traffic-saving-settings"],type:"SWITCH",onClick:Qt,ariaLabel:T?W("aria_label_submenu_traffic_saving_off"):`${W("aria_label_submenu_traffic_saving_on")}. ${W("traffic_saving_helper_text")}`,icon:s_,label:W("menu_traffic_saving"),enabled:T,tooltipText:W("traffic_saving_helper_text"),maxTooltipWidth:175}),Pt&&Nt.push({id:"download",weight:to.download,type:"CLICK",onClick:Lt,label:W("download_video_caption"),ariaLabel:W("aria_label_menu_download"),icon:r_}),ne.showSupport&&Nt.push({id:"report",weight:to.report,type:"CLICK",onClick:yi,label:W("menu_report"),ariaLabel:`${W("menu_report")}. ${W("aria_label_new_tab_alert")}`,icon:c_,isHiddenFor:["desktop"]}),Nt.push({id:"copy-data",weight:to["copy-data"],type:"CLICK",onClick:Kt,label:W("menu_copy_debug"),ariaLabel:W("menu_copy_debug"),icon:Mf,isHiddenFor:["desktop"]}),ne.features.saveTraceInfoToFile&&Nt.push({id:"save-trace-info",weight:to["save-trace-info"],type:"CLICK",onClick:ye,label:W("menu_save_debug"),ariaLabel:W("menu_save_debug"),icon:Mf,isHiddenFor:["desktop"]}),Nt.push({id:"debug-info",weight:to["debug-info"],type:"CLICK",onClick:Ft,label:g?W("aria_label_menu_debug_overlay_disable"):W("aria_label_menu_debug_overlay_enable"),ariaLabel:W("menu_debug_overlay"),icon:u_,isHiddenFor:["desktop"]}),t(4,Nt=[...Nt,...y.map(ge=>({...ge,isAdditional:!0}))].filter(ge=>!ge.isHiddenFor?.length||!ge.isHiddenFor?.includes("desktop")&&!s||!ge.isHiddenFor?.includes("mobile")&&s).sort(fr))),i.$$.dirty[0]&96|i.$$.dirty[1]&33030144&&(t(5,Yt=[]),l["quality-sub"]&&Yt.push({id:"quality-sub",parentItemId:"quality-settings",title:W("submenu_quality"),closeSettingsMenu:Qe,items:[...h.map(ge=>({type:"SELECT_VALUE",value:ge.value,valueComponent:Jl,valueComponentParams:{quality:ge.value,label:ge.displayValue,isMobile:s,isSubCase:!0},selectItem:Ot,selected:ge.selected,label:ge.displayValue}))]}),l["audio-language-sub"]&&Yt.push({id:"audio-language-sub",parentItemId:"audio-language-settings",title:W("submenu_audio_languages"),closeSettingsMenu:Qe,items:c.map(ge=>({type:"SELECT_VALUE",value:ge,dataValue:ge.id,selectItem:Ut,selected:ge.id===m?.id,label:Xl(ge,c)}))}),l["playback-rate-sub"]&&Yt.push({id:"playback-rate-sub",parentItemId:"playback-rate-settings",title:W("submenu_playback_rate"),closeSettingsMenu:Qe,items:u.map(ge=>({type:"SELECT_VALUE",value:ge.value,selectItem:Ht,selected:ge.selected,label:ge.displayValue}))}),l["subtitles-sub"]&&Yt.push({id:"subtitles-sub",parentItemId:"subtitles-settings",minWidth:164,title:W("subtitles_caption"),closeSettingsMenu:Qe,items:a.map(ge=>({type:"SELECT_VALUE",value:ge,selectItem:lt,selected:ge.selected,label:ge.displayValue}))}))},[te,J,hi,Bt,Nt,Yt,s,K,ct,F,_e,oe,Q,Z,de,qe,Je,Pe,Se,Ke,X,he,Ye,tt,it,rt,$e,pe,Me,ht,Fe,kt,Mt,Vt,Zt,xt,_i,Oi,q,ke,gt,Pt,Rt,ki,oi,wi,Li,ai,n,o,a,l,u,c,m,h,y,g,T,k,D,I,C,P,G,x,O,$,Fi,Ci,Si,Ti]}var xf=class extends B{constructor(e){super(),N(this,e,Z8,Q8,V,{ref:0,supportLink:38,playerControlsHeight:1,returnFocus:39},K8,[-1,-1,-1,-1])}},ea=xf;var{window:X8}=ds;function J8(i){be(i,"svelte-13f9p53",".player-wrapper.svelte-13f9p53{position:absolute;width:100%;height:100%}.player-wrapper.svelte-13f9p53 .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-13f9p53{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-13f9p53,.video-container.svelte-13f9p53,.ads-container.svelte-13f9p53{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-13f9p53{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-13f9p53{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-13f9p53{transition:none}.nocursor.svelte-13f9p53{cursor:none}.ads-container.svelte-13f9p53{z-index:var(--ads-container-z-index);background:var(--black)}.settings-menu.svelte-13f9p53{position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;transition:opacity 0.2s, visibility 0.2s}")}function P_(i){let e,t;return e=new Ql({props:{thumbUrl:i[4],startTime:i[5]?.startTime}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&16&&(r.thumbUrl=n[4]),o[0]&32&&(r.startTime=n[5]?.startTime),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function E_(i){let e,t;return e=new Xr({props:{kind:"recover",thumbUrl:i[4]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&16&&(r.thumbUrl=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function A_(i){let e,t;return e=new Xr({props:{kind:"record",thumbUrl:i[4]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&16&&(r.thumbUrl=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function M_(i){let e,t,n;return t=new $s({props:{adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12]}}),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","ads-container svelte-13f9p53"),z(e,"hidden",i[37]!=="ads")},m(o,r){v(o,e,r),E(t,e,null),n=!0},p(o,r){let s={};r[0]&512&&(s.adsSlotId=o[9]),r[0]&1024&&(s.adsParams=o[10]),r[0]&2048&&(s.adsPreviewParam=o[11]),r[0]&4096&&(s.duration=o[12]),t.$set(s),(!n||r[1]&64)&&z(e,"hidden",o[37]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function L_(i){let e,t;return e=new G1({props:{title:i[18],thumb:i[19],clickCloseIcon:i[159]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&262144&&(r.title=n[18]),o[0]&524288&&(r.thumb=n[19]),o[0]&536870912&&(r.clickCloseIcon=n[159]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function V_(i){let e,t;return e=new z0({props:{title:i[3],isHidden:!i[35]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.title=n[3]),o[1]&16&&(r.isHidden=!n[35]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function R_(i){let e,t;return e=new zl({props:{isShifted:i[37]==="video"&&i[35]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[1]&80&&(r.isShifted=n[37]==="video"&&n[35]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function B_(i){let e,t,n;return t=new Ws({props:{"aria-label":W("video360")}}),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","spherical-video-icon svelte-13f9p53")},m(o,r){v(o,e,r),E(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function N_(i){let e,t;return e=new jl({props:{thumbUrl:i[4],chromecastDeviceName:i[53]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&16&&(r.thumbUrl=n[4]),o[1]&4194304&&(r.chromecastDeviceName=n[53]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function D_(i){let e,t;return e=new Kl({props:{shifted:i[35],captions:i[55],position:i[56],playerSize:i[33]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[1]&16&&(r.shifted=n[35]),o[1]&16777216&&(r.captions=n[55]),o[1]&33554432&&(r.position=n[56]),o[1]&4&&(r.playerSize=n[33]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function O_(i){let e,t,n,o,r;return t=new Gl({}),{c(){e=S("div"),M(t.$$.fragment)},m(s,a){v(s,e,a),E(t,e,null),n=!0,o||(r=[Te(e,"contextmenu",ii(i[108])),Te(e,"click",mt(i[119]))],o=!0)},p:me,i(s){n||(d(t.$$.fragment,s),n=!0)},o(s){p(t.$$.fragment,s),n=!1},d(s){s&&b(e),A(t),o=!1,st(r)}}}function F_(i){let e,t,n,o;function r(l){i[160](l)}function s(l){i[161](l)}let a={bottomHidden:i[37]==="thumb"||i[37]==="LiveWaitingStart"||i[37]==="LiveWaitingRecover"||i[37]==="LiveWaitingRecord",bottomNoSmooth:i[49],showControls:i[35],isAds:i[37]==="ads",canRewindLive:i[7]&&i[57]!==0,logoClickable:i[13],logoHidden:i[14],logoTargetUrl:i[15],showNextPrevButtons:i[23],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],customFullscreenSupported:K_,toggleFullscreen:i[106],seekToInteractive:i[24],playPrevChapter:i[25]};return i[40]!==void 0&&(a.playerControlsWrapperRef=i[40]),i[41]!==void 0&&(a.playerControlsRef=i[41]),e=new Ul({props:a}),ve.push(()=>We(e,"playerControlsWrapperRef",r)),ve.push(()=>We(e,"playerControlsRef",s)),{c(){M(e.$$.fragment)},m(l,u){E(e,l,u),o=!0},p(l,u){let c={};u[1]&64&&(c.bottomHidden=l[37]==="thumb"||l[37]==="LiveWaitingStart"||l[37]==="LiveWaitingRecover"||l[37]==="LiveWaitingRecord"),u[1]&262144&&(c.bottomNoSmooth=l[49]),u[1]&16&&(c.showControls=l[35]),u[1]&64&&(c.isAds=l[37]==="ads"),u[0]&128|u[1]&67108864&&(c.canRewindLive=l[7]&&l[57]!==0),u[0]&8192&&(c.logoClickable=l[13]),u[0]&16384&&(c.logoHidden=l[14]),u[0]&32768&&(c.logoTargetUrl=l[15]),u[0]&8388608&&(c.showNextPrevButtons=l[23]),u[0]&65536&&(c.nextButtonActive=l[16]),u[0]&131072&&(c.prevButtonActive=l[17]),u[0]&1048576&&(c.isOneVideoPlaylist=l[20]),u[0]&16777216&&(c.seekToInteractive=l[24]),u[0]&33554432&&(c.playPrevChapter=l[25]),!t&&u[1]&512&&(t=!0,c.playerControlsWrapperRef=l[40],ze(()=>t=!1)),!n&&u[1]&1024&&(n=!0,c.playerControlsRef=l[41],ze(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){A(e,l)}}}function x_(i){let e,t,n,o;function r(a){i[163](a)}let s={supportLink:i[21],playerControlsHeight:i[41]?.clientHeight,returnFocus:i[162]};return i[27]!==void 0&&(s.ref=i[27]),t=new ea({props:s}),ve.push(()=>We(t,"ref",r)),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","settings-menu svelte-13f9p53")},m(a,l){v(a,e,l),E(t,e,null),o=!0},p(a,l){let u={};l[0]&2097152&&(u.supportLink=a[21]),l[1]&1024&&(u.playerControlsHeight=a[41]?.clientHeight),l[0]&2&&(u.returnFocus=a[162]),!n&&l[0]&134217728&&(n=!0,u.ref=a[27],ze(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&b(e),A(t)}}}function H_(i){let e,t;return e=new xr({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function q_(i){let e,t;return e=new om({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function U_(i){let e,t;return e=new sl({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function z_(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C,P,G,x,O,$,se,K;e=new Yl({props:{hidden:i[37]!=="thumb"||i[36]||i[92]&&i[6],thumbUrl:i[4],startVideo:i[26]}});let te=i[37]==="LiveWaitingStart"&&P_(i),q=i[37]==="LiveWaitingRecover"&&E_(i),J=i[37]==="LiveWaitingRecord"&&A_(i),ke=i[8]&&i[22]&&M_(i),H=i[30]&&i[18]&&i[19]&&L_(i),ne=i[44]&&V_(i),F=i[48]&&R_(i),_e=i[52]&&B_(i),oe=i[38]&&N_(i),Q=i[54].value!=="off"&&D_(i),Z=i[36]&&O_(i),de=i[22]&&F_(i),qe=!i[38]&&i[37]!=="ads"&&x_(i);k=new tl({props:{isLive:i[58],isHidden:!i[43],isPlaying:i[50],position:i[56],duration:i[59]}}),I=new A0({props:{data:i[103]}});function Je(X){i[165](X)}let Pe={supportLink:i[21],returnFocus:i[164],visible:i[32],playerContainerRef:i[39],controlsContainerRef:i[40],position:i[60]};i[31]!==void 0&&(Pe.menuElementRef=i[31]),P=new A1({props:Pe}),ve.push(()=>We(P,"menuElementRef",Je));let Se=i[42]&&H_(i),Ae=i[61]&&q_(i),Ke=i[62]&&U_(i);return{c(){M(e.$$.fragment),t=j(),te&&te.c(),n=j(),q&&q.c(),o=j(),J&&J.c(),r=j(),ke&&ke.c(),s=j(),H&&H.c(),a=j(),ne&&ne.c(),l=j(),F&&F.c(),u=j(),_e&&_e.c(),c=j(),oe&&oe.c(),m=j(),Q&&Q.c(),h=j(),Z&&Z.c(),y=j(),de&&de.c(),g=j(),qe&&qe.c(),T=j(),M(k.$$.fragment),D=j(),M(I.$$.fragment),C=j(),M(P.$$.fragment),x=j(),Se&&Se.c(),O=j(),Ae&&Ae.c(),$=j(),Ke&&Ke.c(),se=Ze()},m(X,he){E(e,X,he),v(X,t,he),te&&te.m(X,he),v(X,n,he),q&&q.m(X,he),v(X,o,he),J&&J.m(X,he),v(X,r,he),ke&&ke.m(X,he),v(X,s,he),H&&H.m(X,he),v(X,a,he),ne&&ne.m(X,he),v(X,l,he),F&&F.m(X,he),v(X,u,he),_e&&_e.m(X,he),v(X,c,he),oe&&oe.m(X,he),v(X,m,he),Q&&Q.m(X,he),v(X,h,he),Z&&Z.m(X,he),v(X,y,he),de&&de.m(X,he),v(X,g,he),qe&&qe.m(X,he),v(X,T,he),E(k,X,he),v(X,D,he),E(I,X,he),v(X,C,he),E(P,X,he),v(X,x,he),Se&&Se.m(X,he),v(X,O,he),Ae&&Ae.m(X,he),v(X,$,he),Ke&&Ke.m(X,he),v(X,se,he),K=!0},p(X,he){let Ie={};he[0]&64|he[1]&96&&(Ie.hidden=X[37]!=="thumb"||X[36]||X[92]&&X[6]),he[0]&16&&(Ie.thumbUrl=X[4]),he[0]&67108864&&(Ie.startVideo=X[26]),e.$set(Ie),X[37]==="LiveWaitingStart"?te?(te.p(X,he),he[1]&64&&d(te,1)):(te=P_(X),te.c(),d(te,1),te.m(n.parentNode,n)):te&&(le(),p(te,1,1,()=>{te=null}),ae()),X[37]==="LiveWaitingRecover"?q?(q.p(X,he),he[1]&64&&d(q,1)):(q=E_(X),q.c(),d(q,1),q.m(o.parentNode,o)):q&&(le(),p(q,1,1,()=>{q=null}),ae()),X[37]==="LiveWaitingRecord"?J?(J.p(X,he),he[1]&64&&d(J,1)):(J=A_(X),J.c(),d(J,1),J.m(r.parentNode,r)):J&&(le(),p(J,1,1,()=>{J=null}),ae()),X[8]&&X[22]?ke?(ke.p(X,he),he[0]&4194560&&d(ke,1)):(ke=M_(X),ke.c(),d(ke,1),ke.m(s.parentNode,s)):ke&&(le(),p(ke,1,1,()=>{ke=null}),ae()),X[30]&&X[18]&&X[19]?H?(H.p(X,he),he[0]&1074528256&&d(H,1)):(H=L_(X),H.c(),d(H,1),H.m(a.parentNode,a)):H&&(le(),p(H,1,1,()=>{H=null}),ae()),X[44]?ne?(ne.p(X,he),he[1]&8192&&d(ne,1)):(ne=V_(X),ne.c(),d(ne,1),ne.m(l.parentNode,l)):ne&&(le(),p(ne,1,1,()=>{ne=null}),ae()),X[48]?F?(F.p(X,he),he[1]&131072&&d(F,1)):(F=R_(X),F.c(),d(F,1),F.m(u.parentNode,u)):F&&(le(),p(F,1,1,()=>{F=null}),ae()),X[52]?_e?he[1]&2097152&&d(_e,1):(_e=B_(X),_e.c(),d(_e,1),_e.m(c.parentNode,c)):_e&&(le(),p(_e,1,1,()=>{_e=null}),ae()),X[38]?oe?(oe.p(X,he),he[1]&128&&d(oe,1)):(oe=N_(X),oe.c(),d(oe,1),oe.m(m.parentNode,m)):oe&&(le(),p(oe,1,1,()=>{oe=null}),ae()),X[54].value!=="off"?Q?(Q.p(X,he),he[1]&8388608&&d(Q,1)):(Q=D_(X),Q.c(),d(Q,1),Q.m(h.parentNode,h)):Q&&(le(),p(Q,1,1,()=>{Q=null}),ae()),X[36]?Z?(Z.p(X,he),he[1]&32&&d(Z,1)):(Z=O_(X),Z.c(),d(Z,1),Z.m(y.parentNode,y)):Z&&(le(),p(Z,1,1,()=>{Z=null}),ae()),X[22]?de?(de.p(X,he),he[0]&4194304&&d(de,1)):(de=F_(X),de.c(),d(de,1),de.m(g.parentNode,g)):de&&(le(),p(de,1,1,()=>{de=null}),ae()),!X[38]&&X[37]!=="ads"?qe?(qe.p(X,he),he[1]&192&&d(qe,1)):(qe=x_(X),qe.c(),d(qe,1),qe.m(T.parentNode,T)):qe&&(le(),p(qe,1,1,()=>{qe=null}),ae());let Ye={};he[1]&134217728&&(Ye.isLive=X[58]),he[1]&4096&&(Ye.isHidden=!X[43]),he[1]&524288&&(Ye.isPlaying=X[50]),he[1]&33554432&&(Ye.position=X[56]),he[1]&268435456&&(Ye.duration=X[59]),k.$set(Ye);let tt={};he[0]&2097152&&(tt.supportLink=X[21]),he[0]&2&&(tt.returnFocus=X[164]),he[1]&2&&(tt.visible=X[32]),he[1]&256&&(tt.playerContainerRef=X[39]),he[1]&512&&(tt.controlsContainerRef=X[40]),he[1]&536870912&&(tt.position=X[60]),!G&&he[1]&1&&(G=!0,tt.menuElementRef=X[31],ze(()=>G=!1)),P.$set(tt),X[42]?Se?he[1]&2048&&d(Se,1):(Se=H_(X),Se.c(),d(Se,1),Se.m(O.parentNode,O)):Se&&(le(),p(Se,1,1,()=>{Se=null}),ae()),X[61]?Ae?he[1]&1073741824&&d(Ae,1):(Ae=q_(X),Ae.c(),d(Ae,1),Ae.m($.parentNode,$)):Ae&&(le(),p(Ae,1,1,()=>{Ae=null}),ae()),X[62]?Ke?he[2]&1&&d(Ke,1):(Ke=U_(X),Ke.c(),d(Ke,1),Ke.m(se.parentNode,se)):Ke&&(le(),p(Ke,1,1,()=>{Ke=null}),ae())},i(X){K||(d(e.$$.fragment,X),d(te),d(q),d(J),d(ke),d(H),d(ne),d(F),d(_e),d(oe),d(Q),d(Z),d(de),d(qe),d(k.$$.fragment,X),d(I.$$.fragment,X),d(P.$$.fragment,X),d(Se),d(Ae),d(Ke),K=!0)},o(X){p(e.$$.fragment,X),p(te),p(q),p(J),p(ke),p(H),p(ne),p(F),p(_e),p(oe),p(Q),p(Z),p(de),p(qe),p(k.$$.fragment,X),p(I.$$.fragment,X),p(P.$$.fragment,X),p(Se),p(Ae),p(Ke),K=!1},d(X){X&&(b(t),b(n),b(o),b(r),b(s),b(a),b(l),b(u),b(c),b(m),b(h),b(y),b(g),b(T),b(D),b(C),b(x),b(O),b($),b(se)),A(e,X),te&&te.d(X),q&&q.d(X),J&&J.d(X),ke&&ke.d(X),H&&H.d(X),ne&&ne.d(X),F&&F.d(X),_e&&_e.d(X),oe&&oe.d(X),Q&&Q.d(X),Z&&Z.d(X),de&&de.d(X),qe&&qe.d(X),A(k,X),A(I,X),A(P,X),Se&&Se.d(X),Ae&&Ae.d(X),Ke&&Ke.d(X)}}}function $8(i){let e,t,n,o,r=i[51],s,a,l,u,c=z_(i);return{c(){e=S("div"),t=S("div"),o=j(),c.c(),s=Ze(),f(t,"class","video-container svelte-13f9p53"),f(t,"style",n=`transform: rotate(${i[34]}deg) scale(${i[46]})`),f(t,"data-testid","video-container"),f(t,"data-is-playing",i[50]),z(t,"fast-rotate",!i[2].isSmoothVideoRotate),f(e,"class","video-wrapper svelte-13f9p53"),z(e,"hidden",i[37]!=="video"),z(e,"nocursor",i[45])},m(m,h){v(m,e,h),_(e,t),i[158](t),v(m,o,h),c.m(m,h),v(m,s,h),a=!0,l||(u=[Te(e,"contextmenu",ii(i[108])),Te(e,"mousedown",ii(i[113])),Te(e,"mouseup",ii(i[114])),Te(e,"click",ii(i[116])),Te(e,"dblclick",ii(i[115]))],l=!0)},p(m,h){(!a||h[1]&32776&&n!==(n=`transform: rotate(${m[34]}deg) scale(${m[46]})`))&&f(t,"style",n),(!a||h[1]&524288)&&f(t,"data-is-playing",m[50]),(!a||h[0]&4)&&z(t,"fast-rotate",!m[2].isSmoothVideoRotate),(!a||h[1]&64)&&z(e,"hidden",m[37]!=="video"),(!a||h[1]&16384)&&z(e,"nocursor",m[45]),h[1]&1048576&&V(r,r=m[51])?(le(),p(c,1,1,me),ae(),c=z_(m),c.c(),d(c,1),c.m(s.parentNode,s)):c.p(m,h)},i(m){a||(d(c),a=!0)},o(m){p(c),a=!1},d(m){m&&(b(e),b(o),b(s)),i[158](null),c.d(m),l=!1,st(u)}}}function ey(i){let e,t,n,o,r,s,a,l={toggleFullscreen:i[106],hideContextMenu:i[107],showHotKeyHelpers:i[117],showKeyMap:i[118],isAds:i[37]==="ads",fakePlayButtonHandler:i[47]?i[105]:void 0,$$slots:{default:[$8]},$$scope:{ctx:i}};return t=new Q1({props:l}),i[166](t),{c(){e=S("div"),M(t.$$.fragment),n=j(),o=S("div"),f(o,"class","overlay-container"),f(e,"class","player-wrapper svelte-13f9p53")},m(u,c){v(u,e,c),E(t,e,null),_(e,n),_(e,o),i[167](o),i[168](e),r=!0,s||(a=[Te(X8,"blur",i[107]),Te(e,"mouseenter",i[109]),Te(e,"mouseleave",i[111]),Te(e,"mousemove",i[112]),Te(e,"click",i[120],!0),Te(e,"focusin",i[110],!0)],s=!0)},p(u,c){let m={};c[1]&64&&(m.isAds=u[37]==="ads"),c[1]&65536&&(m.fakePlayButtonHandler=u[47]?u[105]:void 0),c[0]&1879048191|c[1]&2147418111|c[2]&1|c[6]&1024&&(m.$$scope={dirty:c,ctx:u}),t.$set(m)},i(u){r||(d(t.$$.fragment,u),r=!0)},o(u){p(t.$$.fragment,u),r=!1},d(u){u&&b(e),i[166](null),A(t),i[167](null),i[168](null),s=!1,st(a)}}}var K_=!0;function Hf(i){return i?i.offsetTop+Hf(i.offsetParent):0}function j_(i){return i?i.offsetLeft+j_(i.offsetParent):0}function ty(i,e,t){let n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C,P,G,x,O,$,se,K,te,q,J,ke,H,ne,F,_e,oe,Q,Z,de,qe,Je,Pe,Se,Ae,Ke,X,he,{store:Ie}=e,{uiConfig:Ye}=e,{title:tt}=e,{thumbUrl:it}=e,{videoContainer:rt}=e,{interactiveContainer:$e}=e,{live:pe}=e,{autoplay:Ee}=e,{canRewindLive:Me}=e,{showAds:Xe}=e,{adsSlotId:Qe=void 0}=e,{adsParams:Oe=void 0}=e,{adsPreviewParam:ce=void 0}=e,{duration:ct=void 0}=e,{logoClickable:ht}=e,{logoHidden:gt}=e,{logoTargetUrl:bt=""}=e,{nextButtonActive:Fe=!1}=e,{prevButtonActive:kt=!1}=e,{endScreenVideoTitle:Ot=void 0}=e,{endScreenVideoThumb:Ut=void 0}=e,{isOneVideoPlaylist:Qt=!1}=e,{supportLink:Ht}=e,{shadowRootContainer:lt=void 0}=e,{outerContainerRef:St=void 0}=e,{playerStarted:Mt=!1}=e,{fullScreenTarget:Lt=void 0}=e,{showMiniTimer:yi=!1}=e,{showEndScreen:Kt}=e,{showNextPrevButtons:ye}=e,{keyboardControls:Ft}=e,{seekToInteractive:Vt}=e,{playPrevChapter:Zt}=e,{firstStart:xt}=e,Pt=Ie.getLogger().createComponentLog("Root component"),Rt=Ie.interfaceLanguage$;R(i,Rt,Y=>t(51,oe=Y));let ki=Ie.state.playbackState$;R(i,ki,Y=>t(155,H=Y));let oi=Ie.ads.playbackState;R(i,oi,Y=>t(156,ne=Y));let wi=Ie.state.positionWithScrubbing$;R(i,wi,Y=>t(56,Je=Y));let Li=Ie.state.duration$;R(i,Li,Y=>t(59,Ae=Y));let ai=Ie.playerPhase;R(i,ai,Y=>t(37,K=Y));let _i=Ie.ui.isFullscreen;R(i,_i,Y=>t(145,T=Y));let hi=Ie.ui.controlsVisible;R(i,hi,Y=>t(35,G=Y));let Bt=Ie.ui.settingsMenu.visible$;R(i,Bt,Y=>t(143,u=Y));let Oi=Ie.ui.settingsMenu.openedByBtnKeyboard$;R(i,Oi,Y=>t(142,l=Y));let Nt=Ie.ui.scrubbingInProgress;R(i,Nt,Y=>t(147,C=Y));let Yt=Ie.ui.contextMenu.visible$;R(i,Yt,Y=>t(32,n=Y));let Fi=Ie.ui.debugPanelVisible;R(i,Fi,Y=>t(62,he=Y));let Ci=Ie.state.isLoaderVisible;R(i,Ci,Y=>t(157,F=Y));let Si=Ie.state.isEnded$;R(i,Si,Y=>t(144,m=Y));let Ti=Ie.state.chromecastConnected$;R(i,Ti,Y=>t(38,J=Y));let ge=Ie.state.chromecastDeviceName$;R(i,ge,Y=>t(53,Z=Y));let pt=Ie.ads.postrollPassed;R(i,pt,Y=>t(150,$=Y));let xi=Ie.state.isLive$;R(i,xi,Y=>t(58,Se=Y));let mn=Ie.state.isPlaying$;R(i,mn,Y=>t(50,_e=Y));let gi=Ie.state.crashed$;R(i,gi,Y=>t(36,O=Y));let ui=Ie.webApi.annotationsApi,ci=Ie.webApi.pictureInPictureApi,bi=Ie.state.currentSubtitle$;R(i,bi,Y=>t(54,de=Y));let Tn=Ie.state.currentSubtitleCaptions$;R(i,Tn,Y=>t(55,qe=Y));let Hi=Ie.state.duration$;R(i,Hi,Y=>t(57,Pe=Y));let pn=Ie.state.graphIsOpened$;R(i,pn,Y=>t(151,se=Y));let ri=Ie.ui.playerSize;R(i,ri,Y=>t(33,y=Y));let Vi=Ie.ui.is3DVideo;R(i,Vi,Y=>t(48,h=Y));let qi=Ie.ui.icon3DVideoVisible;R(i,qi,Y=>t(52,Q=Y));let Xi=Ie.ui.rotateAlpha;R(i,Xi,Y=>t(34,I=Y));let Ri=Ie.state.isInteractive,_n=Ie.state.isInteractiveTime$;R(i,_n,Y=>t(148,P=Y));let Xt=Ie.state.isInteractiveExpectation$;R(i,Xt,Y=>t(154,ke=Y));let Bn=Ie.state.hasInteractiveBranches,Ii=Ie.ui.touched;R(i,Ii,Y=>t(152,te=Y));let Ji=Ie.ui.modals.hotKeyMap.data;R(i,Ji,Y=>t(175,c=Y));let $i=Ie.ui.modals.hotKeyMap.show;R(i,$i,Y=>t(61,X=Y));let en=Ie.ui.overlayContainer$,Ui=Ie.ui.controls.interactiveTimeIndicator;R(i,Ui,Y=>t(176,g=Y));let zi=Ie.state.showInteractiveTimeIndicator,Pi=Ie.ui.contextMenu.position$;R(i,Pi,Y=>t(60,Ke=Y));let vi=Ie.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Bi}=Vn();R(i,Bi,Y=>t(146,D=Y));let Jt,si,nt,Ei,qt,fi,Ai;Ji.set(r1());let tn,hn,Mi=Ne(!1);R(i,Mi,Y=>t(49,k=Y));let Wi,$t=Ne(!1);R(i,$t,Y=>t(153,q=Y));let Ge=Ne(),gn=Ne(!1);R(i,gn,Y=>t(149,x=Y));let nn=!1,Ki=!1,ji=!1,on=!(Ee&&!Ye.controls.showOnStartupAtAutoplay),Gi,Kn,Nn,di=!1,Dn,bn,In=!1,vn,rn=!1,{toggle:yn}=Bi,Ni=!1,sn=null;ci?.setContext(ms());let On=()=>{Ee&&!Ri&&Ye.controls.showOnStartupAtAutoplay&&ei(Ye.controls.hideTimeout)};Ie.setUiCallbacks({onStarted:On});let io=()=>{window.clearTimeout(qt),$t.set(!1)},no=()=>{window.clearTimeout(fi),Ge.set(null)},ei=Y=>{io(),$t.set(!0),qt=window.setTimeout(()=>$t.set(!1),Y);let Dt=Y-100;Wi=window.setTimeout(()=>{k&&Mi.set(!1)},Dt>0?Dt:Y)},oo=(Y,Dt)=>{no(),Ge.set(Dt),fi=window.setTimeout(()=>Ge.set(null),Y)},ro=Vi.subscribe(Y=>{qi.set(Y),Y&&(window.clearTimeout(Ai),Ai=window.setTimeout(()=>qi.set(!1),Ye.controls.hide360IconTimeout))}),jn=async()=>{let Y=Oo();if(Y){let Dt=bs(),un=Gn();Y=Dt===un||Dt===lt}if(Y){ei(Ye.controls.hideTimeoutFullscreen);try{await ci?.remove()}catch(Dt){Pt({message:String(Dt)})}}_i.set(Y),Ie.getAdmanWrapper().setFullscreen(Y),T?Ie.callbacks?.onFullscreenEnter?.():Ie.callbacks?.onFullscreenExit?.()},so=Y=>{let{width:Dt,height:un}=Y.target;ri.set({width:Dt,height:un})},lo=()=>{let{width:Y,height:Dt}=Jt.getBoundingClientRect();ri.set({width:Y,height:Dt})};vt(()=>(Xs(jn),Ye.features.annotationsInside&&ui?.init(Jt),ur(ci)&&(ci?.assignPlayerContainer(Jt),ci?.registryExternalEventHandlers({resize:so,leavepictureinpicture:lo})),$e&&rt.parentElement?.insertBefore($e,rt.nextSibling),()=>{window.clearTimeout(qt),window.clearTimeout(Wi),window.clearTimeout(fi),window.clearTimeout(Ai),ro(),ci?.dispose(),Js(jn)}));let Gn=()=>{let Y=Ye.features.fullscreenInternalTargetPlayerContainer||!St?Jt:St,Dt=Y.getRootNode(),un=Dt instanceof ShadowRoot?Dt.host:Dt,kn=Lt instanceof HTMLElement&&Lt.contains(un);return Ye.allowChangingFullscreenTarget&&Lt&&kn?Lt:Y},Yn=async()=>{Oo()?(await Zs(document),Pt({message:"exit fullscreen"})):(Pt({message:"request fullscreen"}),await Qs(Gn()))},ln=()=>{vi(),Yt.set(!1)},ho=Y=>{Yt.set(!0),Pi.set({left:Y.clientX,top:Y.clientY})};function go(){gn.set(!0),Ri||ei(Ye.controls.hideTimeoutCursor)}function Qn(){Ri||(Mi.set(!0),ei(Ye.controls.hideTimeoutCursor))}function an(){gn.set(!1),t(133,Ki=!1),t(132,nn=!1),Ni=!1,Ie.actions.internal.releaseCamera()}function ee(Y){if(g&&zi){let Dt=Y.currentTarget,un=Hf(Dt),kn=j_(Dt),Zo=Y.pageX-kn,Xo=Y.pageY-un,{left:uo,bottom:Jn,right:Jo}=g,Bo=Jo-uo;return Zo>=uo-Bo&&Xo<=Jn+Bo}}function Tt(Y){if(Jt){let Dt=Hf(Y.currentTarget),un=y.height,kn=Y.pageY-Dt;if(ee(Y)){t(133,Ki=!1);return}kn<40?t(133,Ki=!0):kn>un-40?t(132,nn=!0):(t(133,Ki=!1),u||t(132,nn=!1))}}function ie(Y){Tt(Y),Gi||ei(Ye.controls.hideTimeoutCursor),h&&Ni&&sn&&Ie.actions.internal.moveCameraFocusPX(sn.clientX-Y.clientX,sn.clientY-Y.clientY,Y.timeStamp-sn.timeStamp),sn=Y}let Fn=Y=>{Y.button===0&&(Ni=!0,Ie.actions.internal.holdCamera()),ei(Ye.controls.hideTimeoutCursor)},is=Y=>{Y.button===0&&(sn=Y,Ni=!1,Ie.actions.internal.releaseCamera()),ei(Ye.controls.hideTimeoutCursor)},ns=()=>{K_&&(Pt({message:"double click on video"}),Yn(),ei(Ye.controls.hideTimeoutCursor))},br=()=>{if(n||u){ln();return}if(!(m&&!Bn)){if(rn)return yn();if(Ft?.focus(),!Mt){xt(),ei(Ye.controls.hideTimeoutCursor);return}Ie.actions.internal.togglePlay(),ei(Ye.controls.hideTimeoutCursor)}},bo=Y=>{ln(),Ii.set(!0),ei(Ye.controls.hideTimeout),Y&&oo(Ye.controls.hideHotKeyHelpers,Y)},Zn=()=>{ln(),Ie.callbacks?.onOpenHotKeyMap?Ie.callbacks?.onOpenHotKeyMap(c):$i.update(Y=>!Y)},os=()=>{if(n||u){ln();return}},vo=()=>{Ii.set(!0)},xn=Ie.ui.contextMenu.openedByBtnKeyboard$;R(i,xn,Y=>t(141,a=Y));let ao=Ie.ui.contextMenu.btnRef$;R(i,ao,Y=>t(140,s=Y));let Pn,Xn=Ie.ui.contextMenu.openedByHotKey$;R(i,Xn,Y=>t(139,r=Y));let Mo=Ie.ui.contextMenu.lastActiveElem$;R(i,Mo,Y=>t(138,o=Y));function jo(Y){ve[Y?"unshift":"push"](()=>{rt=Y,t(0,rt)})}let Lo=()=>t(29,di=!0);function yo(Y){si=Y,t(40,si)}function ko(Y){nt=Y,t(41,nt)}let Vo=()=>Ft?.focus();function Ro(Y){Ei=Y,t(27,Ei)}let En=()=>Ft?.focus();function Go(Y){Pn=Y,t(31,Pn)}function Yo(Y){ve[Y?"unshift":"push"](()=>{Ft=Y,t(1,Ft)})}function Hn(Y){ve[Y?"unshift":"push"](()=>{hn=Y,t(28,hn)})}function Qo(Y){ve[Y?"unshift":"push"](()=>{Jt=Y,t(39,Jt)})}return i.$$set=Y=>{"store"in Y&&t(125,Ie=Y.store),"uiConfig"in Y&&t(2,Ye=Y.uiConfig),"title"in Y&&t(3,tt=Y.title),"thumbUrl"in Y&&t(4,it=Y.thumbUrl),"videoContainer"in Y&&t(0,rt=Y.videoContainer),"interactiveContainer"in Y&&t(126,$e=Y.interactiveContainer),"live"in Y&&t(5,pe=Y.live),"autoplay"in Y&&t(6,Ee=Y.autoplay),"canRewindLive"in Y&&t(7,Me=Y.canRewindLive),"showAds"in Y&&t(8,Xe=Y.showAds),"adsSlotId"in Y&&t(9,Qe=Y.adsSlotId),"adsParams"in Y&&t(10,Oe=Y.adsParams),"adsPreviewParam"in Y&&t(11,ce=Y.adsPreviewParam),"duration"in Y&&t(12,ct=Y.duration),"logoClickable"in Y&&t(13,ht=Y.logoClickable),"logoHidden"in Y&&t(14,gt=Y.logoHidden),"logoTargetUrl"in Y&&t(15,bt=Y.logoTargetUrl),"nextButtonActive"in Y&&t(16,Fe=Y.nextButtonActive),"prevButtonActive"in Y&&t(17,kt=Y.prevButtonActive),"endScreenVideoTitle"in Y&&t(18,Ot=Y.endScreenVideoTitle),"endScreenVideoThumb"in Y&&t(19,Ut=Y.endScreenVideoThumb),"isOneVideoPlaylist"in Y&&t(20,Qt=Y.isOneVideoPlaylist),"supportLink"in Y&&t(21,Ht=Y.supportLink),"shadowRootContainer"in Y&&t(127,lt=Y.shadowRootContainer),"outerContainerRef"in Y&&t(128,St=Y.outerContainerRef),"playerStarted"in Y&&t(22,Mt=Y.playerStarted),"fullScreenTarget"in Y&&t(129,Lt=Y.fullScreenTarget),"showMiniTimer"in Y&&t(130,yi=Y.showMiniTimer),"showEndScreen"in Y&&t(131,Kt=Y.showEndScreen),"showNextPrevButtons"in Y&&t(23,ye=Y.showNextPrevButtons),"keyboardControls"in Y&&t(1,Ft=Y.keyboardControls),"seekToInteractive"in Y&&t(24,Vt=Y.seekToInteractive),"playPrevChapter"in Y&&t(25,Zt=Y.playPrevChapter),"firstStart"in Y&&t(26,xt=Y.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&96|i.$$.dirty[5]&6&&t(42,tn=(K==="video"&&F||K==="ads"&&ne==="inactive")&&!O),i.$$.dirty[0]&268435456&&en.set(hn),i.$$.dirty[4]&2048|i.$$.dirty[5]&1&&(t(134,ji=on&&H!==W_.PlaybackState.PLAYING),on||t(135,on=!0)),i.$$.dirty[4]&1091045120&&t(136,Gi=P&&!u&&!(nn||Ki)&&!(ji&&!ke)),i.$$.dirty[1]&224|i.$$.dirty[4]&545788928&&hi.set((ji||u||C||J||q)&&!Gi&&(K==="video"||K==="ads")&&!O),i.$$.dirty[0]&4|i.$$.dirty[1]&112|i.$$.dirty[4]&268435520&&t(43,Kn=Ye.features.thumbTimer&&yi&&K==="video"&&!G&&!O&&!Ri&&(Ye.hideThumbTimerAfterTouch&&!te||!Ye.hideThumbTimerAfterTouch)),i.$$.dirty[1]&64|i.$$.dirty[4]&136314880&&t(44,Nn=K==="video"&&!se&&T),i.$$.dirty[0]&536871168|i.$$.dirty[1]&32|i.$$.dirty[4]&68157568&&t(30,Dn=Kt&&(Xe&&$||!Xe)&&m&&!O&&!di),i.$$.dirty[0]&1073741824|i.$$.dirty[1]&16|i.$$.dirty[4]&50331648&&t(45,bn=x&&!(G||Dn)&&!P),i.$$.dirty[0]&4|i.$$.dirty[4]&25174016&&(!C&&In&&!P&&ei(Ye.controls.hideTimeoutCursor),t(137,In=C)),i.$$.dirty[0]&1|i.$$.dirty[1]&12&&t(46,vn=rt&&I%180?y.height/y.width:1),i.$$.dirty[4]&4194304&&t(47,rn=D!==null),i.$$.dirty[0]&134217728|i.$$.dirty[4]&786432&&fo(Ei,u,l),i.$$.dirty[1]&3|i.$$.dirty[4]&131072&&fo(Pn,n,a),i.$$.dirty[1]&2|i.$$.dirty[4]&65536){let Y=s;Y&&Dr(Y,n,xn)}if(i.$$.dirty[1]&3|i.$$.dirty[4]&32768&&fo(Pn,n,r),i.$$.dirty[1]&2|i.$$.dirty[4]&16384){let Y=o;Y&&b1(Y,n,Xn)}},[rt,Ft,Ye,tt,it,pe,Ee,Me,Xe,Qe,Oe,ce,ct,ht,gt,bt,Fe,kt,Ot,Ut,Qt,Ht,Mt,ye,Vt,Zt,xt,Ei,hn,di,Dn,Pn,n,y,I,G,O,K,J,Jt,si,nt,tn,Kn,Nn,bn,vn,rn,h,k,_e,oe,Q,Z,de,qe,Je,Pe,Se,Ae,Ke,X,he,Rt,ki,oi,wi,Li,ai,_i,hi,Bt,Oi,Nt,Yt,Fi,Ci,Si,Ti,ge,pt,xi,mn,gi,bi,Tn,Hi,pn,ri,Vi,qi,Xi,Ri,_n,Xt,Ii,Ji,$i,Ui,Pi,Bi,Mi,$t,Ge,gn,yn,Yn,ln,ho,go,Qn,an,ie,Fn,is,ns,br,bo,Zn,os,vo,xn,ao,Xn,Mo,Ie,$e,lt,St,Lt,yi,Kt,nn,Ki,ji,on,Gi,In,o,r,s,a,l,u,m,T,D,C,P,x,$,se,te,q,ke,H,ne,F,jo,Lo,yo,ko,Vo,Ro,En,Go,Yo,Hn,Qo]}var qf=class extends B{constructor(e){super(),N(this,e,ty,ey,V,{store:125,uiConfig:2,title:3,thumbUrl:4,videoContainer:0,interactiveContainer:126,live:5,autoplay:6,canRewindLive:7,showAds:8,adsSlotId:9,adsParams:10,adsPreviewParam:11,duration:12,logoClickable:13,logoHidden:14,logoTargetUrl:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:127,outerContainerRef:128,playerStarted:22,fullScreenTarget:129,showMiniTimer:130,showEndScreen:131,showNextPrevButtons:23,keyboardControls:1,seekToInteractive:24,playPrevChapter:25,firstStart:26},J8,[-1,-1,-1,-1,-1,-1,-1])}},G_=qf;var kh=require("@vkontakte/videoplayer-core"),Ko=require("@vkontakte/videoplayer-shared");function iy(i){be(i,"svelte-nhq2ld",".double-click-area.svelte-nhq2ld{position:absolute;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.svelte-nhq2ld{left:0}.double-click-area.right.svelte-nhq2ld{right:0}.semicircle.svelte-nhq2ld{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.svelte-nhq2ld{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.svelte-nhq2ld{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.svelte-nhq2ld{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.svelte-nhq2ld{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.svelte-nhq2ld{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:svelte-nhq2ld-blink 500ms infinite;opacity:0}.triangle.right.svelte-nhq2ld:nth-child(1),.triangle.left.svelte-nhq2ld:nth-child(3){animation-delay:0ms}.triangle.right.svelte-nhq2ld:nth-child(2),.triangle.left.svelte-nhq2ld:nth-child(2){animation-delay:100ms}.triangle.right.svelte-nhq2ld:nth-child(3),.triangle.left.svelte-nhq2ld:nth-child(1){animation-delay:200ms}@keyframes svelte-nhq2ld-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.svelte-nhq2ld{border-right:8px solid var(--white)}.triangle.right.svelte-nhq2ld{border-left:8px solid var(--white)}.triangle.svelte-nhq2ld:not(:last-child){margin-right:5px}.step-caption.svelte-nhq2ld{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}")}function Y_(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T,k=W("doubletap_seek_step",{seconds:i[2].toFixed(0)})+"",D;return{c(){e=S("div"),n=j(),o=S("div"),r=S("div"),s=S("div"),l=j(),u=S("div"),m=j(),h=S("div"),g=j(),T=S("p"),D=De(k),f(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),f(s,"class",a="triangle "+i[0]+" svelte-nhq2ld"),f(u,"class",c="triangle "+i[0]+" svelte-nhq2ld"),f(h,"class",y="triangle "+i[0]+" svelte-nhq2ld"),f(r,"class","triangles-wrapper svelte-nhq2ld"),f(T,"class","step-caption svelte-nhq2ld"),f(o,"class","info svelte-nhq2ld")},m(I,C){v(I,e,C),v(I,n,C),v(I,o,C),_(o,r),_(r,s),_(r,l),_(r,u),_(r,m),_(r,h),_(o,g),_(o,T),_(T,D)},p(I,C){C&1&&t!==(t="semicircle "+I[0]+" svelte-nhq2ld")&&f(e,"class",t),C&1&&a!==(a="triangle "+I[0]+" svelte-nhq2ld")&&f(s,"class",a),C&1&&c!==(c="triangle "+I[0]+" svelte-nhq2ld")&&f(u,"class",c),C&1&&y!==(y="triangle "+I[0]+" svelte-nhq2ld")&&f(h,"class",y),C&4&&k!==(k=W("doubletap_seek_step",{seconds:I[2].toFixed(0)})+"")&&je(D,k)},d(I){I&&(b(e),b(n),b(o))}}}function ny(i){let e,t,n,o,r=i[1]&&Y_(i);return{c(){e=S("div"),r&&r.c(),f(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(s,a){v(s,e,a),r&&r.m(e,null),n||(o=Te(e,"click",mt(i[3]())),n=!0)},p(s,[a]){s[1]?r?r.p(s,a):(r=Y_(s),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&1&&t!==(t="double-click-area "+s[0]+" svelte-nhq2ld")&&f(e,"class",t)},i:me,o:me,d(s){s&&b(e),r&&r.d(),n=!1,o()}}}function oy(i,e,t){let{side:n}=e,{seekStep:o=0}=e,{handleSingleFirstClick:r}=e,{handleSecondClick:s}=e,a=!1,l=0,u=0,c=o,m=()=>()=>{u+=1,t(2,c=o*(u-1)),u===1?r():(t(1,a=!0),s()),window.clearTimeout(l),l=window.setTimeout(()=>{u=0,t(1,a=!1)},300)};return Mn(()=>{window.clearTimeout(l)}),i.$$set=h=>{"side"in h&&t(0,n=h.side),"seekStep"in h&&t(4,o=h.seekStep),"handleSingleFirstClick"in h&&t(5,r=h.handleSingleFirstClick),"handleSecondClick"in h&&t(6,s=h.handleSecondClick)},[n,a,c,m,o,r,s]}var Uf=class extends B{constructor(e){super(),N(this,e,oy,ny,V,{side:0,seekStep:4,handleSingleFirstClick:5,handleSecondClick:6},iy)}},zf=Uf;function ry(i){be(i,"svelte-1qdxi6t",".overlay.svelte-1qdxi6t{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-1qdxi6t{position:absolute;top:50%;left:50%;z-index:var(--end-screen-mobile-z-index);transform:translate(-50%, -50%);display:flex;flex-direction:column;max-width:362px;min-width:320px;margin:0 auto;padding-bottom:12px}.top.svelte-1qdxi6t{display:flex;justify-content:space-between}.caption.svelte-1qdxi6t{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-1qdxi6t{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%}.column.svelte-1qdxi6t{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-1qdxi6t{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.svelte-1qdxi6t{width:100%;height:100%;position:absolute}.thumb-overlay.withOpacity.svelte-1qdxi6t{background:var(--black);opacity:0.3}.title.svelte-1qdxi6t{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function Q_(i){let e,t,n,o,r,s=(i[3]?W("end_screen_next_video"):W("end_screen_recommended_video"))+"",a,l,u,c,m,h,y,g,T,k,D,I,C,P,G,x,O;u=new ll({}),u.$on("click",i[9]);let $=i[3]&&Z_(i);return{c(){e=S("div"),t=j(),n=S("div"),o=S("div"),r=S("div"),a=De(s),l=j(),M(u.$$.fragment),c=j(),m=S("div"),h=S("div"),y=S("div"),g=S("div"),T=j(),$&&$.c(),D=j(),I=S("div"),C=S("div"),P=De(i[0]),f(e,"class","overlay svelte-1qdxi6t"),f(r,"class","caption svelte-1qdxi6t"),f(o,"class","top svelte-1qdxi6t"),f(g,"class","thumb-overlay svelte-1qdxi6t"),z(g,"withOpacity",i[3]),f(y,"class","thumb svelte-1qdxi6t"),f(y,"style",k=`background-image: url('${i[1]}')`),f(h,"class","column svelte-1qdxi6t"),f(C,"class","title svelte-1qdxi6t"),f(I,"class","column svelte-1qdxi6t"),f(m,"class","row svelte-1qdxi6t"),f(n,"class","next-video svelte-1qdxi6t")},m(se,K){v(se,e,K),v(se,t,K),v(se,n,K),_(n,o),_(o,r),_(r,a),_(o,l),E(u,o,null),_(n,c),_(n,m),_(m,h),_(h,y),_(y,g),_(y,T),$&&$.m(y,null),_(m,D),_(m,I),_(I,C),_(C,P),G=!0,x||(O=Te(m,"click",i[7]),x=!0)},p(se,K){(!G||K&8)&&s!==(s=(se[3]?W("end_screen_next_video"):W("end_screen_recommended_video"))+"")&&je(a,s),(!G||K&8)&&z(g,"withOpacity",se[3]),se[3]?$?($.p(se,K),K&8&&d($,1)):($=Z_(se),$.c(),d($,1),$.m(y,null)):$&&(le(),p($,1,1,()=>{$=null}),ae()),(!G||K&2&&k!==(k=`background-image: url('${se[1]}')`))&&f(y,"style",k),(!G||K&1)&&je(P,se[0])},i(se){G||(d(u.$$.fragment,se),d($),G=!0)},o(se){p(u.$$.fragment,se),p($),G=!1},d(se){se&&(b(e),b(t),b(n)),A(u),$&&$.d(),x=!1,O()}}}function Z_(i){let e,t;return e=new al({props:{isRunning:i[4],onTimerEnded:i[8]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.isRunning=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function sy(i){let e,t,n=!i[2]&&Q_(i);return{c(){n&&n.c(),e=Ze()},m(o,r){n&&n.m(o,r),v(o,e,r),t=!0},p(o,[r]){o[2]?n&&(le(),p(n,1,1,()=>{n=null}),ae()):n?(n.p(o,r),r&4&&d(n,1)):(n=Q_(o),n.c(),d(n,1),n.m(e.parentNode,e))},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function ly(i,e,t){let n,o,{title:r}=e,{thumb:s}=e,{isHide:a}=e,{clickCloseIcon:l}=e,u=et(),c=u.ui.autoplayNextEnabled$;R(i,c,C=>t(3,n=C));let m=u.ui.timerNextVideoRunning$;R(i,m,C=>t(4,o=C));let h=u.actions.internal.nextVideoClick,y=u.actions.internal.nextVideoAnnouncementClick,g=u.actions.internal.nextVideoAnnouncementAuto,T=u.actions.internal.nextVideoAnnouncementCancel,k=()=>{h(!1),y()},D=()=>{h(!1),g()},I=()=>{l(),T()};return vt(()=>{a&&n&&(h(!1),g())}),i.$$set=C=>{"title"in C&&t(0,r=C.title),"thumb"in C&&t(1,s=C.thumb),"isHide"in C&&t(2,a=C.isHide),"clickCloseIcon"in C&&t(10,l=C.clickCloseIcon)},i.$$.update=()=>{i.$$.dirty&8&&(n||T())},[r,s,a,n,o,c,m,k,D,I,l]}var Wf=class extends B{constructor(e){super(),N(this,e,ly,sy,V,{title:0,thumb:1,isHide:2,clickCloseIcon:10},ry)}},X_=Wf;var J_=require("@vkontakte/videoplayer-shared");var $_=({getFullscreenTarget:i,fullScreenChangeHandler:e})=>{let t=null,n;vt(()=>{J_.clientChecker.isIOS&&(n=setTimeout(()=>{let r=i().querySelector("video");if(!r)return;let s=()=>e(!0),a=()=>e(!1);r.addEventListener("webkitbeginfullscreen",s),r.addEventListener("webkitendfullscreen",a),t=()=>{r.removeEventListener("webkitbeginfullscreen",s),r.removeEventListener("webkitendfullscreen",a)}},0))}),Mn(()=>{t?.(),clearTimeout(n)})};var eh=require("@vkontakte/videoplayer-core");var ta=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,t=!1){let n=document.createElement("track");n.setAttribute("src",e.url),n.setAttribute("id",e.id),e.label&&n.setAttribute("label",e.label),e.language&&n.setAttribute("srclang",e.language),t&&(n.track.mode="showing"),this.video.appendChild(n)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let t=this.getTracksArray().find(n=>n.id===e.id);t&&(t.src=e.url)}getCurrentShowingId(){return this.getTracksArray().find(e=>e.track.mode==="showing")?.id??null}};var th=require("@vkontakte/videoplayer-shared"),ih=({store:i,getFullscreenTarget:e})=>{let{isFullscreen:t}=i.ui,{setSubtitle:n}=i.actions.internal,{currentSubtitle$:o,availableSubtitlesList$:r,currentFormat$:s,availableTextTracks$:a}=i.state,l=null,u=()=>e().querySelector("video"),c=()=>th.clientChecker.isIOS&&Ue(s)===eh.VideoFormat.DASH_LIVE_CMAF,m=()=>{l?.(),l=null},h=y=>{if(m(),!c()||!y)return;let g=u();if(!g)return;let T=new ta(g),k=Ue(a),D=Ue(r),I=Ue(o);for(let G of k)D.some(O=>O.value===G.id)&&T.attach(G,I.value===G.id);let C=a.subscribe(G=>{for(let x of G)T.updateSrc(x)}),P=()=>{let G=T.getCurrentShowingId();n(Ue(r).find(x=>x.value===G))};g.textTracks.addEventListener("change",P),l=()=>{C(),T.detachAll(),g.textTracks.removeEventListener("change",P)}};vt(()=>t.subscribe(h)),Mn(m)};function ay(i){be(i,"svelte-dtyj47",".player-wrapper.svelte-dtyj47{position:absolute;width:100%;height:100%}.player-wrapper.svelte-dtyj47 .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-dtyj47{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-dtyj47,.video-container.svelte-dtyj47,.ads-container.svelte-dtyj47{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-dtyj47{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-dtyj47{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-dtyj47{transition:none}.ads-container.svelte-dtyj47{z-index:var(--ads-container-z-index);background:var(--black)}.settings-mobile.svelte-dtyj47{position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%}")}function nh(i){let e,t,n,o=i[48]&&oh(i),r=i[49]&&rh(i);return{c(){o&&o.c(),e=j(),r&&r.c(),t=Ze()},m(s,a){o&&o.m(s,a),v(s,e,a),r&&r.m(s,a),v(s,t,a),n=!0},p(s,a){s[48]?o?(o.p(s,a),a[1]&131072&&d(o,1)):(o=oh(s),o.c(),d(o,1),o.m(e.parentNode,e)):o&&(le(),p(o,1,1,()=>{o=null}),ae()),s[49]?r?(r.p(s,a),a[1]&262144&&d(r,1)):(r=rh(s),r.c(),d(r,1),r.m(t.parentNode,t)):r&&(le(),p(r,1,1,()=>{r=null}),ae())},i(s){n||(d(o),d(r),n=!0)},o(s){p(o),p(r),n=!1},d(s){s&&(b(e),b(t)),o&&o.d(s),r&&r.d(s)}}}function oh(i){let e,t;return e=new zf({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[105],handleSecondClick:i[137]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function rh(i){let e,t;return e=new zf({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[105],handleSecondClick:i[138]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function sh(i){let e,t;return e=new Ql({props:{thumbUrl:i[2],startTime:i[3]?.startTime}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),o[0]&8&&(r.startTime=n[3]?.startTime),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function lh(i){let e,t;return e=new Xr({props:{kind:"recover",thumbUrl:i[2]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function ah(i){let e,t;return e=new Xr({props:{kind:"record",thumbUrl:i[2]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function uh(i){let e,t,n;return t=new $s({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","ads-container svelte-dtyj47"),z(e,"hidden",i[39]!=="ads")},m(o,r){v(o,e,r),E(t,e,null),n=!0},p(o,r){let s={};r[0]&128&&(s.adsSlotId=o[7]),r[0]&256&&(s.adsParams=o[8]),r[0]&512&&(s.adsPreviewParam=o[9]),r[0]&1024&&(s.duration=o[10]),t.$set(s),(!n||r[1]&256)&&z(e,"hidden",o[39]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function ch(i){let e,t;return e=new X_({props:{title:i[16],thumb:i[17],isHide:!i[21]&&i[22]&&i[38],clickCloseIcon:i[139]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&65536&&(r.title=n[16]),o[0]&131072&&(r.thumb=n[17]),o[0]&6291456|o[1]&128&&(r.isHide=!n[21]&&n[22]&&n[38]),o[0]&536870912&&(r.clickCloseIcon=n[139]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function fh(i){let e,t;return e=new zl({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function dh(i){let e,t,n;return t=new Ws({props:{"aria-label":W("video360")}}),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","spherical-video-icon svelte-dtyj47")},m(o,r){v(o,e,r),E(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function mh(i){let e,t;return e=new jl({props:{thumbUrl:i[2],chromecastDeviceName:i[56]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),o[1]&33554432&&(r.chromecastDeviceName=n[56]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function ph(i){let e,t;return e=new Kl({props:{shifted:i[32],captions:i[58],position:i[34],playerSize:i[35],isMobile:!0}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[1]&2&&(r.shifted=n[32]),o[1]&134217728&&(r.captions=n[58]),o[1]&8&&(r.position=n[34]),o[1]&16&&(r.playerSize=n[35]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function _h(i){let e,t,n,o,r;return t=new Gl({}),{c(){e=S("div"),M(t.$$.fragment)},m(s,a){v(s,e,a),E(t,e,null),n=!0,o||(r=Te(e,"click",mt(i[106])),o=!0)},p:me,i(s){n||(d(t.$$.fragment,s),n=!0)},o(s){p(t.$$.fragment,s),n=!1},d(s){s&&b(e),A(t),o=!1,r()}}}function hh(i){let e,t,n,o;function r(l){i[140](l)}function s(l){i[141](l)}let a={bottomHidden:i[39]==="thumb"||i[39]==="LiveWaitingStart"||i[39]==="LiveWaitingRecover"||i[39]==="LiveWaitingRecord"||i[39]==="ads",showControls:i[32],bottomNoSmooth:i[50],isAds:i[39]==="ads",canRewindLive:i[5]&&i[59]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showAutoplayNext:i[22],showNextPrevButtons:i[23],nextButtonActive:i[14],prevButtonActive:i[15],isOneVideoPlaylist:i[18],customFullscreenSupported:i[45],endScreenShown:i[30],toggleFullscreen:i[103],seekToInteractive:i[24],playPrevChapter:i[25],onDisabledPlayPrevChapterClick:i[109],onDisabledSeekToInteractiveClick:i[110]};return i[42]!==void 0&&(a.playerControlsWrapperRef=i[42]),i[43]!==void 0&&(a.playerControlsRef=i[43]),e=new Ul({props:a}),ve.push(()=>We(e,"playerControlsWrapperRef",r)),ve.push(()=>We(e,"playerControlsRef",s)),{c(){M(e.$$.fragment)},m(l,u){E(e,l,u),o=!0},p(l,u){let c={};u[1]&256&&(c.bottomHidden=l[39]==="thumb"||l[39]==="LiveWaitingStart"||l[39]==="LiveWaitingRecover"||l[39]==="LiveWaitingRecord"||l[39]==="ads"),u[1]&2&&(c.showControls=l[32]),u[1]&524288&&(c.bottomNoSmooth=l[50]),u[1]&256&&(c.isAds=l[39]==="ads"),u[0]&32|u[1]&268435456&&(c.canRewindLive=l[5]&&l[59]!==0),u[0]&2048&&(c.logoClickable=l[11]),u[0]&4096&&(c.logoHidden=l[12]),u[0]&8192&&(c.logoTargetUrl=l[13]),u[0]&4194304&&(c.showAutoplayNext=l[22]),u[0]&8388608&&(c.showNextPrevButtons=l[23]),u[0]&16384&&(c.nextButtonActive=l[14]),u[0]&32768&&(c.prevButtonActive=l[15]),u[0]&262144&&(c.isOneVideoPlaylist=l[18]),u[1]&16384&&(c.customFullscreenSupported=l[45]),u[0]&1073741824&&(c.endScreenShown=l[30]),u[0]&16777216&&(c.seekToInteractive=l[24]),u[0]&33554432&&(c.playPrevChapter=l[25]),!t&&u[1]&2048&&(t=!0,c.playerControlsWrapperRef=l[42],ze(()=>t=!1)),!n&&u[1]&4096&&(n=!0,c.playerControlsRef=l[43],ze(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){A(e,l)}}}function gh(i){let e,t,n,o;function r(a){i[142](a)}let s={supportLink:i[19],returnFocus:Ko.noop};return i[27]!==void 0&&(s.ref=i[27]),t=new ea({props:s}),ve.push(()=>We(t,"ref",r)),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","settings-mobile svelte-dtyj47")},m(a,l){v(a,e,l),E(t,e,null),o=!0},p(a,l){let u={};l[0]&524288&&(u.supportLink=a[19]),!n&&l[0]&134217728&&(n=!0,u.ref=a[27],ze(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&b(e),A(t)}}}function bh(i){let e,t;return e=new xr({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function vh(i){let e,t;return e=new sl({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function yh(i){let e,t,n=i[5]&&i[83]&&!i[53].has("TIMELINE"),o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C,P,G;e=new Yl({props:{hidden:i[39]!=="thumb"||i[37]||i[94]&&i[4],thumbUrl:i[2],startVideo:i[26]}});let x=n&&nh(i),O=i[39]==="LiveWaitingStart"&&sh(i),$=i[39]==="LiveWaitingRecover"&&lh(i),se=i[39]==="LiveWaitingRecord"&&ah(i),K=i[6]&&i[20]&&uh(i),te=i[30]&&i[16]&&i[17]&&ch(i),q=i[54]&&fh(i),J=i[55]&&dh(i),ke=i[40]&&mh(i),H=i[57].value!=="off"&&ph(i),ne=i[37]&&_h(i),F=i[20]&&hh(i),_e=i[31]&&gh(i);D=new tl({props:{isLive:i[60],isHidden:!i[46],isPlaying:i[51],position:i[34],duration:i[33]}});let oe=i[44]&&bh(i),Q=i[61]&&vh(i);return{c(){M(e.$$.fragment),t=j(),x&&x.c(),o=j(),O&&O.c(),r=j(),$&&$.c(),s=j(),se&&se.c(),a=j(),K&&K.c(),l=j(),te&&te.c(),u=j(),q&&q.c(),c=j(),J&&J.c(),m=j(),ke&&ke.c(),h=j(),H&&H.c(),y=j(),ne&&ne.c(),g=j(),F&&F.c(),T=j(),_e&&_e.c(),k=j(),M(D.$$.fragment),I=j(),oe&&oe.c(),C=j(),Q&&Q.c(),P=Ze()},m(Z,de){E(e,Z,de),v(Z,t,de),x&&x.m(Z,de),v(Z,o,de),O&&O.m(Z,de),v(Z,r,de),$&&$.m(Z,de),v(Z,s,de),se&&se.m(Z,de),v(Z,a,de),K&&K.m(Z,de),v(Z,l,de),te&&te.m(Z,de),v(Z,u,de),q&&q.m(Z,de),v(Z,c,de),J&&J.m(Z,de),v(Z,m,de),ke&&ke.m(Z,de),v(Z,h,de),H&&H.m(Z,de),v(Z,y,de),ne&&ne.m(Z,de),v(Z,g,de),F&&F.m(Z,de),v(Z,T,de),_e&&_e.m(Z,de),v(Z,k,de),E(D,Z,de),v(Z,I,de),oe&&oe.m(Z,de),v(Z,C,de),Q&&Q.m(Z,de),v(Z,P,de),G=!0},p(Z,de){let qe={};de[0]&16|de[1]&320&&(qe.hidden=Z[39]!=="thumb"||Z[37]||Z[94]&&Z[4]),de[0]&4&&(qe.thumbUrl=Z[2]),de[0]&67108864&&(qe.startVideo=Z[26]),e.$set(qe),de[0]&32|de[1]&4194304&&(n=Z[5]&&Z[83]&&!Z[53].has("TIMELINE")),n?x?(x.p(Z,de),de[0]&32|de[1]&4194304&&d(x,1)):(x=nh(Z),x.c(),d(x,1),x.m(o.parentNode,o)):x&&(le(),p(x,1,1,()=>{x=null}),ae()),Z[39]==="LiveWaitingStart"?O?(O.p(Z,de),de[1]&256&&d(O,1)):(O=sh(Z),O.c(),d(O,1),O.m(r.parentNode,r)):O&&(le(),p(O,1,1,()=>{O=null}),ae()),Z[39]==="LiveWaitingRecover"?$?($.p(Z,de),de[1]&256&&d($,1)):($=lh(Z),$.c(),d($,1),$.m(s.parentNode,s)):$&&(le(),p($,1,1,()=>{$=null}),ae()),Z[39]==="LiveWaitingRecord"?se?(se.p(Z,de),de[1]&256&&d(se,1)):(se=ah(Z),se.c(),d(se,1),se.m(a.parentNode,a)):se&&(le(),p(se,1,1,()=>{se=null}),ae()),Z[6]&&Z[20]?K?(K.p(Z,de),de[0]&1048640&&d(K,1)):(K=uh(Z),K.c(),d(K,1),K.m(l.parentNode,l)):K&&(le(),p(K,1,1,()=>{K=null}),ae()),Z[30]&&Z[16]&&Z[17]?te?(te.p(Z,de),de[0]&1073938432&&d(te,1)):(te=ch(Z),te.c(),d(te,1),te.m(u.parentNode,u)):te&&(le(),p(te,1,1,()=>{te=null}),ae()),Z[54]?q?de[1]&8388608&&d(q,1):(q=fh(Z),q.c(),d(q,1),q.m(c.parentNode,c)):q&&(le(),p(q,1,1,()=>{q=null}),ae()),Z[55]?J?de[1]&16777216&&d(J,1):(J=dh(Z),J.c(),d(J,1),J.m(m.parentNode,m)):J&&(le(),p(J,1,1,()=>{J=null}),ae()),Z[40]?ke?(ke.p(Z,de),de[1]&512&&d(ke,1)):(ke=mh(Z),ke.c(),d(ke,1),ke.m(h.parentNode,h)):ke&&(le(),p(ke,1,1,()=>{ke=null}),ae()),Z[57].value!=="off"?H?(H.p(Z,de),de[1]&67108864&&d(H,1)):(H=ph(Z),H.c(),d(H,1),H.m(y.parentNode,y)):H&&(le(),p(H,1,1,()=>{H=null}),ae()),Z[37]?ne?(ne.p(Z,de),de[1]&64&&d(ne,1)):(ne=_h(Z),ne.c(),d(ne,1),ne.m(g.parentNode,g)):ne&&(le(),p(ne,1,1,()=>{ne=null}),ae()),Z[20]?F?(F.p(Z,de),de[0]&1048576&&d(F,1)):(F=hh(Z),F.c(),d(F,1),F.m(T.parentNode,T)):F&&(le(),p(F,1,1,()=>{F=null}),ae()),Z[31]?_e?(_e.p(Z,de),de[1]&1&&d(_e,1)):(_e=gh(Z),_e.c(),d(_e,1),_e.m(k.parentNode,k)):_e&&(le(),p(_e,1,1,()=>{_e=null}),ae());let Je={};de[1]&536870912&&(Je.isLive=Z[60]),de[1]&32768&&(Je.isHidden=!Z[46]),de[1]&1048576&&(Je.isPlaying=Z[51]),de[1]&8&&(Je.position=Z[34]),de[1]&4&&(Je.duration=Z[33]),D.$set(Je),Z[44]?oe?de[1]&8192&&d(oe,1):(oe=bh(Z),oe.c(),d(oe,1),oe.m(C.parentNode,C)):oe&&(le(),p(oe,1,1,()=>{oe=null}),ae()),Z[61]?Q?de[1]&1073741824&&d(Q,1):(Q=vh(Z),Q.c(),d(Q,1),Q.m(P.parentNode,P)):Q&&(le(),p(Q,1,1,()=>{Q=null}),ae())},i(Z){G||(d(e.$$.fragment,Z),d(x),d(O),d($),d(se),d(K),d(te),d(q),d(J),d(ke),d(H),d(ne),d(F),d(_e),d(D.$$.fragment,Z),d(oe),d(Q),G=!0)},o(Z){p(e.$$.fragment,Z),p(x),p(O),p($),p(se),p(K),p(te),p(q),p(J),p(ke),p(H),p(ne),p(F),p(_e),p(D.$$.fragment,Z),p(oe),p(Q),G=!1},d(Z){Z&&(b(t),b(o),b(r),b(s),b(a),b(l),b(u),b(c),b(m),b(h),b(y),b(g),b(T),b(k),b(I),b(C),b(P)),A(e,Z),x&&x.d(Z),O&&O.d(Z),$&&$.d(Z),se&&se.d(Z),K&&K.d(Z),te&&te.d(Z),q&&q.d(Z),J&&J.d(Z),ke&&ke.d(Z),H&&H.d(Z),ne&&ne.d(Z),F&&F.d(Z),_e&&_e.d(Z),A(D,Z),oe&&oe.d(Z),Q&&Q.d(Z)}}}function uy(i){let e,t,n,o,r,s=i[52],a,l,u,c,m,h,y=yh(i);return{c(){e=S("div"),t=S("div"),n=S("div"),r=j(),y.c(),a=j(),l=S("div"),f(n,"class","video-container svelte-dtyj47"),f(n,"style",o=`transform: rotate(${i[36]}deg) scale(${i[47]})`),f(n,"data-testid","video-container"),f(n,"data-is-playing",i[51]),z(n,"fast-rotate",!i[1].isSmoothVideoRotate),f(t,"class","video-wrapper svelte-dtyj47"),z(t,"hidden",i[39]!=="video"),f(l,"class","overlay-container"),f(e,"class","player-wrapper svelte-dtyj47"),f(e,"role","region"),f(e,"aria-label",u=W("aria_label_video_player")),f(e,"tabindex","-1")},m(g,T){v(g,e,T),_(e,t),_(t,n),i[136](n),_(e,r),y.m(e,null),_(e,a),_(e,l),i[143](l),i[144](e),c=!0,m||(h=[Te(window,"blur",i[104]),Te(t,"click",ii(i[105])),Te(e,"click",i[107],!0),Te(e,"focusin",i[108],!0)],m=!0)},p(g,T){(!c||T[1]&65568&&o!==(o=`transform: rotate(${g[36]}deg) scale(${g[47]})`))&&f(n,"style",o),(!c||T[1]&1048576)&&f(n,"data-is-playing",g[51]),(!c||T[0]&2)&&z(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!c||T[1]&256)&&z(t,"hidden",g[39]!=="video"),T[1]&2097152&&V(s,s=g[52])?(le(),p(y,1,1,me),ae(),y=yh(g),y.c(),d(y,1),y.m(e,a)):y.p(g,T)},i(g){c||(d(y),c=!0)},o(g){p(y),c=!1},d(g){g&&b(e),i[136](null),y.d(g),i[143](null),i[144](null),m=!1,st(h)}}}function cy(i,e,t){let n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C,P,G,x,O,$,se,K,te,q,J,ke,H,ne,F,_e,oe,Q,Z,de,qe,Je,{store:Pe}=e,{uiConfig:Se}=e,{thumbUrl:Ae}=e,{videoContainer:Ke}=e,{interactiveContainer:X}=e,{live:he}=e,{autoplay:Ie}=e,{canRewindLive:Ye}=e,{showAds:tt}=e,{adsSlotId:it=void 0}=e,{adsParams:rt=void 0}=e,{adsPreviewParam:$e=void 0}=e,{duration:pe=void 0}=e,{logoClickable:Ee}=e,{logoHidden:Me}=e,{logoTargetUrl:Xe=""}=e,{nextButtonActive:Qe=!1}=e,{prevButtonActive:Oe=!1}=e,{endScreenVideoTitle:ce=void 0}=e,{endScreenVideoThumb:ct=void 0}=e,{isOneVideoPlaylist:ht=!1}=e,{supportLink:gt}=e,{shadowRootContainer:bt=void 0}=e,{outerContainerRef:Fe=void 0}=e,{showMiniTimer:kt=!1}=e,{fullScreenTarget:Ot=void 0}=e,{playerStarted:Ut=!1}=e,{showEndScreen:Qt}=e,{showAutoplayNext:Ht}=e,{showNextPrevButtons:lt}=e,{seekToInteractive:St}=e,{playPrevChapter:Mt}=e,{firstStart:Lt}=e,{seekTime:yi}=e,Kt=Pe.getLogger().createComponentLog("Root component"),ye=Pe.interfaceLanguage$;R(i,ye,ee=>t(52,H=ee));let Ft=Pe.state.playbackState$;R(i,Ft,ee=>t(133,te=ee));let Vt=Pe.ads.playbackState;R(i,Vt,ee=>t(134,q=ee));let Zt=Pe.state.positionWithScrubbing$;R(i,Zt,ee=>t(34,l=ee));let xt=Pe.state.duration$;R(i,xt,ee=>t(33,a=ee));let Pt=Pe.playerPhase;R(i,Pt,ee=>t(39,O=ee));let Rt=Pe.ui.isFullscreen;R(i,Rt,ee=>t(150,c=ee));let ki=Pe.ui.controlsVisible;R(i,ki,ee=>t(32,r=ee));let oi=Pe.ui.interactiveHideMobileControls;R(i,oi,ee=>t(125,g=ee));let wi=Pe.ui.settingsMenu.visible$;R(i,wi,ee=>t(31,o=ee));let Li=Pe.ui.settingsMenu.openedByBtnKeyboard$;R(i,Li,ee=>t(123,n=ee));let ai=Pe.ui.scrubbingInProgress;R(i,ai,ee=>t(126,k=ee));let _i=Pe.ui.debugPanelVisible;R(i,_i,ee=>t(61,Je=ee));let hi=Pe.state.isLoaderVisible;R(i,hi,ee=>t(135,J=ee));let Bt=Pe.state.isEnded$;R(i,Bt,ee=>t(128,C=ee));let Oi=Pe.state.chromecastConnected$;R(i,Oi,ee=>t(40,$=ee));let Nt=Pe.state.chromecastDeviceName$;R(i,Nt,ee=>t(56,oe=ee));let Yt=Pe.ads.postrollPassed;R(i,Yt,ee=>t(129,P=ee));let Fi=Pe.ui.mobileUnmuteButtonExpanded,Ci=Pe.ui.mobileUnmuteButtonVisible,Si=Pe.state.isLive$;R(i,Si,ee=>t(60,qe=ee));let Ti=Pe.state.isPlaying$;R(i,Ti,ee=>t(51,ke=ee));let ge=Pe.state.isActiveLive$;R(i,ge,ee=>t(124,u=ee));let pt=Pe.state.isRewindableLive$,xi=Pe.state.crashed$;R(i,xi,ee=>t(37,I=ee));let mn=Pe.webApi.annotationsApi,gi=Pe.webApi.pictureInPictureApi,ui=Pe.state.videoSize$;R(i,ui,ee=>t(151,h=ee));let ci=Pe.state.currentSubtitle$;R(i,ci,ee=>t(57,Q=ee));let bi=Pe.state.currentSubtitleCaptions$;R(i,bi,ee=>t(58,Z=ee));let Tn=Pe.state.duration$;R(i,Tn,ee=>t(59,de=ee));let Hi=Pe.state.graphIsOpened$;R(i,Hi,ee=>t(132,K=ee));let pn=Pe.ui.playerSize;R(i,pn,ee=>t(35,m=ee));let ri=Pe.ui.is3DVideo;R(i,ri,ee=>t(54,F=ee));let Vi=Pe.ui.icon3DVideoVisible;R(i,Vi,ee=>t(55,_e=ee));let qi=Pe.ui.rotateAlpha;R(i,qi,ee=>t(36,T=ee));let Xi=Pe.state.isInteractive,Ri=Pe.state.isInteractiveTime$;R(i,Ri,ee=>t(127,D=ee));let _n=Pe.state.isInteractiveExpectation$;R(i,_n,ee=>t(131,se=ee));let Xt=Pe.state.hasInteractiveBranches,Bn=Pe.ui.controls.disabledControls$;R(i,Bn,ee=>t(53,ne=ee));let Ii=Pe.ui.touched;R(i,Ii,ee=>t(130,x=ee));let Ji=Pe.ui.overlayContainer$,$i=Pe.ui.autoplayNextEnabled$;R(i,$i,ee=>t(38,G=ee));let en=Pe.state.loadedMetadata$;R(i,en,ee=>t(149,s=ee));let Ui=Pe.actions.internal.closeSettingsMenu,zi=Pe.callbacks?.onDisabledPlayPrevChapterClick,Pi=Pe.callbacks?.onDisabledSeekToInteractiveClick,vi,Bi,Jt,si,nt,Ei,qt,fi,Ai,tn=Ne(!1);R(i,tn,ee=>t(50,y=ee));let hn,Mi=!1,Wi,$t=!1,Ge,gn=!0,nn,Ki=!1,ji,on=!1,Gi;gi?.setContext(ms());let Kn=ee=>{clearTimeout(Ei),ee&&(Ci.set(!0),Fi.set(!0),Ei=setTimeout(()=>{Fi.set(!1)},Se.controls.collapseMobileUnmute),Xi||di(Se.controls.hideTimeoutMobile))};Pe.setUiCallbacks({onStarted:Kn});let Nn=()=>{clearTimeout(nt),t(118,Mi=!1),g&&oi.set(!1)},di=ee=>{Nn(),t(118,Mi=!0),nt=setTimeout(()=>t(118,Mi=!1),ee);let Tt=ee-100;hn=setTimeout(()=>{y&&tn.set(!1)},Tt>0?Tt:ee)},Dn=ri.subscribe(ee=>{Vi.set(ee),ee&&(clearTimeout(qt),qt=setTimeout(()=>Vi.set(!1),Se.controls.hide360IconTimeout))}),bn=async(ee=Oo())=>{if(ee&&!Ko.clientChecker.isIOS){let Tt=bs(),ie=Ni(),Fn=Ko.clientChecker.isSamsungBrowser&&Tt===bt;ee=Tt===ie||Fn}if(ee){di(Se.controls.hideTimeoutFullscreen);try{await gi?.remove()}catch(Tt){Kt({message:String(Tt)})}try{let Tt=h?.width&&h?.height?h:m;await o1(Tt)}catch(Tt){Kt({message:String(Tt)})}}Rt.set(ee),Pe.getAdmanWrapper().setFullscreen(ee),c?Pe.callbacks?.onFullscreenEnter?.():Pe.callbacks?.onFullscreenExit?.()},In=ee=>{let Tt=ee;pn.set({width:Tt.target.width,height:Tt.target.height})};vt(()=>(Xs(bn),Se.features.annotationsInside&&mn?.init(vi),ur(gi)&&(gi?.assignPlayerContainer(vi),gi?.registryExternalEventHandlers({resize:In})),t(45,gn=!Ko.clientChecker.isIphoneOrOldIpad),X&&Ke.parentElement?.insertBefore(X,Ke.nextSibling),()=>{clearTimeout(nt),clearTimeout(hn),clearTimeout(Ei),clearTimeout(qt),Dn(),gi?.dispose(),Js(bn)}));let vn=!0,rn=!0,yn=ee=>{let Tt=l+(ee==="forward"?1:-1)*Se.controls.seekStepMobile/1e3;Tt<0?(t(48,vn=!1),Tt=0):Tt>=a&&(t(49,rn=!1),Tt=a),t(120,$t=!0),yi(Tt)},Ni=()=>{let ee=Ko.clientChecker.isIOS||Se.features.fullscreenInternalTargetPlayerContainer||!Fe?vi:Fe,Tt=ee.getRootNode(),ie=Tt instanceof ShadowRoot?Tt.host:Tt,Fn=Ot instanceof HTMLElement&&Ot.contains(ie);return Se.allowChangingFullscreenTarget&&Ot&&Fn?Ot:ee},sn=async()=>{try{if(Oo())await Zs(document),Kt({message:"exit fullscreen"});else{if(Kt({message:"request fullscreen"}),Ko.clientChecker.isIOS&&!s)return;await Qs(Ni())}}catch(ee){Kt({message:String(ee)})}},On=()=>{Ui()},io=()=>{if(o){On();return}if(!Ut){Lt(),di(Se.controls.hideTimeoutCursor);return}t(120,$t=!1),r?Nn():di(Se.controls.hideTimeoutMobile)},no=()=>{if(o){On();return}},ei=()=>{Ii.set(!0)},oo=()=>{Xi||(tn.set(!0),di(Se.controls.hideTimeoutCursor))},ro=ee=>{zi&&(zi(ee),di(Se.controls.hideTimeoutMobile))},jn=ee=>{Pi&&(Pi(ee),di(Se.controls.hideTimeoutMobile))};$_({fullScreenChangeHandler:bn,getFullscreenTarget:Ni}),ih({store:Pe,getFullscreenTarget:Ni});function so(ee){ve[ee?"unshift":"push"](()=>{Ke=ee,t(0,Ke)})}let lo=()=>yn("backward"),Gn=()=>yn("forward"),Yn=()=>t(29,Ki=!0);function ln(ee){Bi=ee,t(42,Bi)}function ho(ee){Jt=ee,t(43,Jt)}function go(ee){si=ee,t(27,si)}function Qn(ee){ve[ee?"unshift":"push"](()=>{Ai=ee,t(28,Ai)})}function an(ee){ve[ee?"unshift":"push"](()=>{vi=ee,t(41,vi)})}return i.$$set=ee=>{"store"in ee&&t(111,Pe=ee.store),"uiConfig"in ee&&t(1,Se=ee.uiConfig),"thumbUrl"in ee&&t(2,Ae=ee.thumbUrl),"videoContainer"in ee&&t(0,Ke=ee.videoContainer),"interactiveContainer"in ee&&t(112,X=ee.interactiveContainer),"live"in ee&&t(3,he=ee.live),"autoplay"in ee&&t(4,Ie=ee.autoplay),"canRewindLive"in ee&&t(5,Ye=ee.canRewindLive),"showAds"in ee&&t(6,tt=ee.showAds),"adsSlotId"in ee&&t(7,it=ee.adsSlotId),"adsParams"in ee&&t(8,rt=ee.adsParams),"adsPreviewParam"in ee&&t(9,$e=ee.adsPreviewParam),"duration"in ee&&t(10,pe=ee.duration),"logoClickable"in ee&&t(11,Ee=ee.logoClickable),"logoHidden"in ee&&t(12,Me=ee.logoHidden),"logoTargetUrl"in ee&&t(13,Xe=ee.logoTargetUrl),"nextButtonActive"in ee&&t(14,Qe=ee.nextButtonActive),"prevButtonActive"in ee&&t(15,Oe=ee.prevButtonActive),"endScreenVideoTitle"in ee&&t(16,ce=ee.endScreenVideoTitle),"endScreenVideoThumb"in ee&&t(17,ct=ee.endScreenVideoThumb),"isOneVideoPlaylist"in ee&&t(18,ht=ee.isOneVideoPlaylist),"supportLink"in ee&&t(19,gt=ee.supportLink),"shadowRootContainer"in ee&&t(113,bt=ee.shadowRootContainer),"outerContainerRef"in ee&&t(114,Fe=ee.outerContainerRef),"showMiniTimer"in ee&&t(115,kt=ee.showMiniTimer),"fullScreenTarget"in ee&&t(116,Ot=ee.fullScreenTarget),"playerStarted"in ee&&t(20,Ut=ee.playerStarted),"showEndScreen"in ee&&t(21,Qt=ee.showEndScreen),"showAutoplayNext"in ee&&t(22,Ht=ee.showAutoplayNext),"showNextPrevButtons"in ee&&t(23,lt=ee.showNextPrevButtons),"seekToInteractive"in ee&&t(24,St=ee.seekToInteractive),"playPrevChapter"in ee&&t(25,Mt=ee.playPrevChapter),"firstStart"in ee&&t(26,Lt=ee.firstStart),"seekTime"in ee&&t(117,yi=ee.seekTime)},i.$$.update=()=>{i.$$.dirty[1]&320|i.$$.dirty[4]&3072&&t(44,fi=(O==="video"&&J||O==="ads"&&q==="inactive")&&!I),i.$$.dirty[0]&268435456&&Ji.set(Ai),i.$$.dirty[4]&512&&t(119,Wi=te!==kh.PlaybackState.PLAYING),i.$$.dirty[3]&100663296|i.$$.dirty[4]&402&&t(121,Ge=K||g||!Mi&&(C&&!!Xt||Wi&&se)),i.$$.dirty[0]&543359040|i.$$.dirty[1]&192|i.$$.dirty[4]&48&&t(30,ji=(Qt||Ht&&G)&&!!ce&&!!ct&&(tt&&P||!tt)&&C&&!I&&!Ki),i.$$.dirty[0]&1073741824|i.$$.dirty[1]&833|i.$$.dirty[3]&503316480|i.$$.dirty[4]&20&&ki.set((Wi||o||k||$||!ji&&(C||Mi&&!$t))&&!Ge&&O==="video"&&!I),i.$$.dirty[0]&2|i.$$.dirty[1]&322|i.$$.dirty[3]&4194304|i.$$.dirty[4]&64&&t(46,nn=Se.features.thumbTimer&&kt&&O==="video"&&!r&&!I&&!Xi&&(Se.hideThumbTimerAfterTouch&&!x||!Se.hideThumbTimerAfterTouch)),i.$$.dirty[0]&2|i.$$.dirty[3]&536870912|i.$$.dirty[4]&12&&(!k&&on&&!D&&di(Se.controls.hideTimeoutMobile),t(122,on=k)),i.$$.dirty[0]&1|i.$$.dirty[1]&48&&t(47,Gi=Ke&&T%180?m.height/m.width:1),i.$$.dirty[1]&12|i.$$.dirty[4]&1&&(t(48,vn=l>0),t(49,rn=!u&&l<a)),i.$$.dirty[0]&134217728|i.$$.dirty[1]&1|i.$$.dirty[3]&1073741824&&fo(si,o,n)},[Ke,Se,Ae,he,Ie,Ye,tt,it,rt,$e,pe,Ee,Me,Xe,Qe,Oe,ce,ct,ht,gt,Ut,Qt,Ht,lt,St,Mt,Lt,si,Ai,Ki,ji,o,r,a,l,m,T,I,G,O,$,vi,Bi,Jt,fi,gn,nn,Gi,vn,rn,y,ke,H,ne,F,_e,oe,Q,Z,de,qe,Je,ye,Ft,Vt,Zt,xt,Pt,Rt,ki,oi,wi,Li,ai,_i,hi,Bt,Oi,Nt,Yt,Si,Ti,ge,pt,xi,ui,ci,bi,Tn,Hi,pn,ri,Vi,qi,Xi,Ri,_n,Bn,Ii,$i,en,tn,yn,sn,On,io,no,ei,oo,ro,jn,Pe,X,bt,Fe,kt,Ot,yi,Mi,Wi,$t,Ge,on,n,u,g,k,D,C,P,x,se,K,te,q,J,so,lo,Gn,Yn,ln,ho,go,Qn,an]}var Kf=class extends B{constructor(e){super(),N(this,e,cy,uy,V,{store:111,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:112,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,nextButtonActive:14,prevButtonActive:15,endScreenVideoTitle:16,endScreenVideoThumb:17,isOneVideoPlaylist:18,supportLink:19,shadowRootContainer:113,outerContainerRef:114,showMiniTimer:115,fullScreenTarget:116,playerStarted:20,showEndScreen:21,showAutoplayNext:22,showNextPrevButtons:23,seekToInteractive:24,playPrevChapter:25,firstStart:26,seekTime:117},ay,[-1,-1,-1,-1,-1,-1])}},wh=Kf;function fy(i){be(i,"svelte-zbipwr",`.root.svelte-zbipwr{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0, 0, 0, 0.40);--white-alpha-24:rgba(255, 255, 255, 0.24);--white-alpha-72:rgba(255, 255, 255, 0.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left:4px;--focused:var(--white);--focused-element-shadow:inset 0 0 0 2px var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0, 0, 0, 0.5);--big-play-hover-bg-color:rgba(0, 0, 0, 0.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:rgba(92, 156, 230, 1);--slider-height:5px;--slider-video-episode-gap:1.5px;--slider-radius:calc(var(--slider-height) / 2);--slider-handle-size:13px;--slider-bg:rgba(255, 255, 255, 0.4);--slider-loaded-bg:rgba(255, 255, 255, 0.4);--slider-filled-bg:var(--white);--slider-filled-active-live-bg:var(--red);--slider-filled-ads:rgba(103, 165, 235, 1);--slider-disabled-color:rgba(248, 248, 248, 0.31);--controls-gradient:linear-gradient(
34
+ )}.hidden.svelte-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function E6(i){let e,t;return{c(){e=S("div"),t=De(i[0]),f(e,"class","title svelte-1bcvcf2"),z(e,"hidden",i[1])},m(n,o){v(n,e,o),_(e,t)},p(n,[o]){o&1&&Ke(t,n[0]),o&2&&z(e,"hidden",n[1])},i:me,o:me,d(n){n&&b(e)}}}function A6(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"isHidden"in r&&t(1,o=r.isHidden)},[n,o]}var pf=class extends B{constructor(e){super(),N(this,e,A6,E6,R,{title:0,isHidden:1},P6)}},z0=pf;function M6(i){be(i,"svelte-1qpxtfg",".timer__container.svelte-1qpxtfg{display:flex;align-items:flex-start;justify-content:center}.cell.svelte-1qpxtfg{display:flex;flex-direction:column;align-items:center;width:62px}.cell__value.svelte-1qpxtfg{font-size:48px;line-height:1.2;font-weight:700}.cell__unit.svelte-1qpxtfg{font-size:14px;line-height:1.2;font-weight:400}.timer__points.svelte-1qpxtfg{display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600}")}function W0(i){let e,t,n,o,r,s,a;return{c(){e=S("div"),t=S("span"),n=De(i[0]),o=j(),r=S("span"),r.textContent=`${W("waiting_live_day_value")}`,s=j(),a=S("span"),a.textContent=`${W("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(l,u){v(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),v(l,s,u),v(l,a,u)},p(l,u){u&1&&Ke(n,l[0])},d(l){l&&(b(e),b(s),b(a))}}}function K0(i){let e,t,n,o,r,s,a;return{c(){e=S("div"),t=S("span"),n=De(i[1]),o=j(),r=S("span"),r.textContent=`${W("waiting_live_hour_value")}`,s=j(),a=S("span"),a.textContent=`${W("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(l,u){v(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),v(l,s,u),v(l,a,u)},p(l,u){u&2&&Ke(n,l[1])},d(l){l&&(b(e),b(s),b(a))}}}function j0(i){let e,t,n,o,r,s,a;return{c(){e=S("div"),t=S("span"),n=De(i[2]),o=j(),r=S("span"),r.textContent=`${W("waiting_live_minute_value")}`,s=j(),a=S("span"),a.textContent=`${W("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(l,u){v(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),v(l,s,u),v(l,a,u)},p(l,u){u&4&&Ke(n,l[2])},d(l){l&&(b(e),b(s),b(a))}}}function G0(i){let e,t,n,o,r;return{c(){e=S("div"),t=S("span"),n=De(i[3]),o=j(),r=S("span"),r.textContent=`${W("waiting_live_second_value")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg")},m(s,a){v(s,e,a),_(e,t),_(t,n),_(e,o),_(e,r)},p(s,a){a&8&&Ke(n,s[3])},d(s){s&&b(e)}}}function L6(i){let e,t,n,o,r=i[0]&&W0(i),s=i[1]&&K0(i),a=i[2]&&j0(i),l=i[3]&&G0(i);return{c(){e=S("div"),r&&r.c(),t=j(),s&&s.c(),n=j(),a&&a.c(),o=j(),l&&l.c(),f(e,"class","timer__container svelte-1qpxtfg")},m(u,c){v(u,e,c),r&&r.m(e,null),_(e,t),s&&s.m(e,null),_(e,n),a&&a.m(e,null),_(e,o),l&&l.m(e,null)},p(u,[c]){u[0]?r?r.p(u,c):(r=W0(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?s?s.p(u,c):(s=K0(u),s.c(),s.m(e,n)):s&&(s.d(1),s=null),u[2]?a?a.p(u,c):(a=j0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?l?l.p(u,c):(l=G0(u),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i:me,o:me,d(u){u&&b(e),r&&r.d(),s&&s.d(),a&&a.d(),l&&l.d()}}}function R6(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,s,a,l,u,c=y=>String(y).padStart(2,"0"),m=y=>{let g=Math.floor(y/86400);g&&(y-=g*86400,t(0,r=c(g)));let T=Math.floor(y/3600);t(1,s=c(T));let k=Math.floor(y/60)%60;t(2,a=c(k));let D=y%60;t(3,l=c(D))},h=()=>{let y=Math.floor(Date.now()/1e3),g=n-y;m(g),g>=1?u=requestAnimationFrame(h):o()};return yt(()=>{u=requestAnimationFrame(h)}),Vn(()=>{cancelAnimationFrame(u)}),i.$$set=y=>{"startTime"in y&&t(4,n=y.startTime),"onTimerOver"in y&&t(5,o=y.onTimerOver)},[r,s,a,l,n,o]}var _f=class extends B{constructor(e){super(),N(this,e,R6,L6,R,{startTime:4,onTimerOver:5},M6)}},Y0=_f;function V6(i){let e,t,n,o,r,s,a=i[2].default,l=Le(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},i[0]],c={};for(let m=0;m<u.length;m+=1)c=re(c,u[m]);return{c(){e=L("svg"),l&&l.c(),t=L("path"),n=L("path"),o=L("path"),r=L("path"),f(t,"fill","#fefffe"),f(t,"d","M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5"),ni(t,"opacity",".965"),f(n,"fill","#fefffe"),f(n,"d","M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82"),ni(n,"opacity",".965"),f(o,"fill","#fefffe"),f(o,"d","M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84"),ni(o,"opacity",".985"),f(r,"fill","#fefffe"),f(r,"d","M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54"),ni(r,"opacity",".986"),Ce(e,c)},m(m,h){v(m,e,h),l&&l.m(e,null),_(e,t),_(e,n),_(e,o),_(e,r),s=!0},p(m,[h]){l&&l.p&&(!s||h&2)&&Ve(l,a,m,m[1],s?Re(a,m[1],h,null):Be(m[1]),null),Ce(e,c=He(u,[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},h&1&&m[0]]))},i(m){s||(d(l,m),s=!0)},o(m){p(l,m),s=!1},d(m){m&&b(e),l&&l.d(m)}}}function B6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var hf=class extends B{constructor(e){super(),N(this,e,B6,V6,R,{})}},Q0=hf;function N6(i){be(i,"svelte-15pewff",".waiting-container.svelte-15pewff{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat}.waiting-container.svelte-15pewff::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1}.upcoming.svelte-15pewff{position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0}.upcoming-icon.svelte-15pewff{width:20%;max-width:200px;margin-bottom:20px}.upcoming__title.svelte-15pewff{font-size:14px;line-height:1.2;font-weight:400}.waiting-timer.svelte-15pewff{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2}.timer.svelte-15pewff{display:flex;flex-direction:column;align-items:center;justify-content:center}.timer__title.svelte-15pewff{display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400}")}function D6(i){let e,t,n,o,r;return o=new Y0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=S("div"),t=S("span"),t.textContent=`${W("waiting_live_timer_title")}`,n=j(),M(o.$$.fragment),f(t,"class","timer__title svelte-15pewff"),f(e,"class","waiting-timer timer svelte-15pewff")},m(s,a){v(s,e,a),_(e,t),_(e,n),E(o,e,null),r=!0},p(s,a){let l={};a&2&&(l.startTime=s[1]||0),a&4&&(l.onTimerOver=s[3]),o.$set(l)},i(s){r||(d(o.$$.fragment,s),r=!0)},o(s){p(o.$$.fragment,s),r=!1},d(s){s&&b(e),A(o)}}}function O6(i){let e,t,n,o,r,s;return n=new Q0({}),{c(){e=S("div"),t=S("div"),M(n.$$.fragment),o=j(),r=S("span"),r.textContent=`${W("waiting_live_upcoming_title")}`,f(t,"class","upcoming-icon svelte-15pewff"),f(r,"class","upcoming__title svelte-15pewff"),f(e,"class","upcoming svelte-15pewff")},m(a,l){v(a,e,l),_(e,t),E(n,t,null),_(e,o),_(e,r),s=!0},p:me,i(a){s||(d(n.$$.fragment,a),s=!0)},o(a){p(n.$$.fragment,a),s=!1},d(a){a&&b(e),A(n)}}}function F6(i){let e,t,n,o,r,s=[O6,D6],a=[];function l(u,c){return u[2]?0:1}return t=l(i,-1),n=a[t]=s[t](i),{c(){e=S("div"),n.c(),f(e,"class","waiting-container svelte-15pewff"),f(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,c){v(u,e,c),a[t].m(e,null),r=!0},p(u,[c]){let m=t;t=l(u,c),t===m?a[t].p(u,c):(ae(),p(a[m],1,1,()=>{a[m]=null}),ue(),n=a[t],n?n.p(u,c):(n=a[t]=s[t](u),n.c()),d(n,1),n.m(e,null)),(!r||c&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&f(e,"style",o)},i(u){r||(d(n),r=!0)},o(u){p(n),r=!1},d(u){u&&b(e),a[t].d()}}}function x6(i,e,t){let n,{thumbUrl:o}=e,{startTime:r}=e,s=()=>t(2,n=!0);return i.$$set=a=>{"thumbUrl"in a&&t(0,o=a.thumbUrl),"startTime"in a&&t(1,r=a.startTime)},i.$$.update=()=>{i.$$.dirty&2&&t(2,n=r===void 0||r<Math.floor(Date.now()/1e3))},[o,r,n,s]}var gf=class extends B{constructor(e){super(),N(this,e,x6,F6,R,{thumbUrl:0,startTime:1},N6)}},Ql=gf;function H6(i){be(i,"svelte-xvqwsa",".waiting-container.svelte-xvqwsa{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat}.waiting-container.svelte-xvqwsa::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.4);backdrop-filter:blur(10px)}.waiting-caption.svelte-xvqwsa{position:relative;display:flex;flex-direction:column;align-items:center}.waiting-title.svelte-xvqwsa{margin:0;padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400}")}function q6(i){let e,t,n,o,r,s,a,l;return n=new Fr({props:{style:"position: static; transform: translate(0, 0)"}}),{c(){e=S("div"),t=S("div"),M(n.$$.fragment),o=j(),r=S("p"),s=De(i[1]),f(r,"class","waiting-title svelte-xvqwsa"),f(t,"class","waiting-caption svelte-xvqwsa"),f(e,"class","waiting-container svelte-xvqwsa"),f(e,"style",a=`background-image: url('${i[0]}')`)},m(u,c){v(u,e,c),_(e,t),E(n,t,null),_(t,o),_(t,r),_(r,s),l=!0},p(u,[c]){(!l||c&2)&&Ke(s,u[1]),(!l||c&1&&a!==(a=`background-image: url('${u[0]}')`))&&f(e,"style",a)},i(u){l||(d(n.$$.fragment,u),l=!0)},o(u){p(n.$$.fragment,u),l=!1},d(u){u&&b(e),A(n)}}}function U6(i,e,t){let{thumbUrl:n=""}=e,{kind:o}=e,r;return i.$$set=s=>{"thumbUrl"in s&&t(0,n=s.thumbUrl),"kind"in s&&t(2,o=s.kind)},i.$$.update=()=>{if(i.$$.dirty&4){let s={recover:W("waiting_live_recover_title"),record:W("waiting_record_title")};t(1,r=s[o]||"")}},[n,r,o]}var bf=class extends B{constructor(e){super(),N(this,e,U6,q6,R,{thumbUrl:0,kind:2},H6)}},Zr=bf;var Zl=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),Xl=(i,e)=>{if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=Ml(t)??t),n&&t&&o){let s=e.filter(a=>a.label===n&&a.language===t);if(s.length===1)return W("audio_stream_display_language_label",{language:o,label:n});{let a=Zl(i,s);return W("audio_stream_display_language_label_index",{language:o,label:n,index:a})}}if(n){let s=e.filter(a=>a.label===n);if(s.length===1)return n;{let a=Zl(i,s);return W("audio_stream_display_label_index",{label:n,index:a})}}if(t&&o){let s=e.filter(a=>a.language===t);if(s.length===1)return o;{let a=Zl(i,s);return W("audio_stream_display_language_index",{language:o,index:a})}}let r=Zl(i,e);return W("audio_stream_display_unknown",{index:r})};function z6(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,l,l[1],n?Re(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function W6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var vf=class extends B{constructor(e){super(),N(this,e,W6,z6,R,{})}},Z0=vf;function K6(i){be(i,"svelte-124aexk",".select-icon.svelte-124aexk{margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px}")}function X0(i){let e,t,n;return t=new Z0({}),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","select-icon svelte-124aexk")},m(o,r){v(o,e,r),E(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function j6(i){let e,t=(i[1].label??i[1].value)+"",n;return{c(){e=S("div"),n=De(t),f(e,"class","menu-item-value"),z(e,"submenu-value-mobile",i[0])},m(o,r){v(o,e,r),_(e,n)},p(o,r){r&2&&t!==(t=(o[1].label??o[1].value)+"")&&Ke(n,t),r&1&&z(e,"submenu-value-mobile",o[0])},i:me,o:me,d(o){o&&b(e)}}}function G6(i){let e,t,n,o=[i[1].valueComponentParams??{}];var r=i[1].valueComponent;function s(a,l){let u={};for(let c=0;c<o.length;c+=1)u=re(u,o[c]);return l!==void 0&&l&2&&(u=re(u,He(o,[Oo(a[1].valueComponentParams??{})]))),{props:u}}return r&&(e=At(r,s(i))),{c(){e&&M(e.$$.fragment),t=Qe()},m(a,l){e&&E(e,a,l),v(a,t,l),n=!0},p(a,l){if(l&2&&r!==(r=a[1].valueComponent)){if(e){ae();let u=e;p(u.$$.fragment,1,0,()=>{A(u,1)}),ue()}r?(e=At(r,s(a,l)),M(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}else if(r){let u=l&2?He(o,[Oo(a[1].valueComponentParams??{})]):{};e.$set(u)}},i(a){n||(e&&d(e.$$.fragment,a),n=!0)},o(a){e&&p(e.$$.fragment,a),n=!1},d(a){a&&b(t),e&&A(e,a)}}}function Y6(i){let e,t,n,o,r,s,a,l,u,c=i[1].selected&&X0(i),m=[G6,j6],h=[];function y(g,T){return g[1].valueComponent?0:1}return n=y(i,-1),o=h[n]=m[n](i),{c(){e=S("li"),c&&c.c(),t=j(),o.c(),f(e,"class","item"),f(e,"data-value",r=i[1].dataValue??i[1].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=i[1].ariaLabel??i[1].label??i[1].value.toString()),z(e,"mobile",i[0])},m(g,T){v(g,e,T),c&&c.m(e,null),_(e,t),h[n].m(e,null),a=!0,l||(u=[Te(e,"click",mt(i[4])),Te(e,"keydown",i[5])],l=!0)},p(g,[T]){g[1].selected?c?T&2&&d(c,1):(c=X0(g),c.c(),d(c,1),c.m(e,t)):c&&(ae(),p(c,1,1,()=>{c=null}),ue());let k=n;n=y(g,T),n===k?h[n].p(g,T):(ae(),p(h[k],1,1,()=>{h[k]=null}),ue(),o=h[n],o?o.p(g,T):(o=h[n]=m[n](g),o.c()),d(o,1),o.m(e,null)),(!a||T&2&&r!==(r=g[1].dataValue??g[1].value))&&f(e,"data-value",r),(!a||T&2&&s!==(s=g[1].ariaLabel??g[1].label??g[1].value.toString()))&&f(e,"aria-label",s),(!a||T&1)&&z(e,"mobile",g[0])},i(g){a||(d(c),d(o),a=!0)},o(g){p(c),p(o),a=!1},d(g){g&&b(e),c&&c.d(),h[n].d(),l=!1,st(u)}}}function Q6(i,e,t){let{isMobile:n=!1}=e,{item:o}=e,{selectItem:r}=e,s=(u,c)=>{Dr(u,()=>r(c))},a=()=>r(o.value),l=u=>s(u,o.value);return i.$$set=u=>{"isMobile"in u&&t(0,n=u.isMobile),"item"in u&&t(1,o=u.item),"selectItem"in u&&t(2,r=u.selectItem)},[n,o,r,s,a,l]}var yf=class extends B{constructor(e){super(),N(this,e,Q6,Y6,R,{isMobile:0,item:1,selectItem:2},K6)}},J0=yf;function Z6(i){let e,t,n=i[2].label+"",o,r,s,a,l;return{c(){e=S("li"),t=S("div"),o=De(n),f(t,"class","menu-item-value"),z(t,"submenu-value-mobile",i[1]),f(e,"class","item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",r=i[2].ariaLabel??i[2].label),f(e,"aria-haspopup","true"),f(e,"data-testid",s=i[2].id),z(e,"mobile",i[1])},m(u,c){v(u,e,c),_(e,t),_(t,o),i[6](e),a||(l=[Te(e,"click",mt(function(){Wt(i[3])&&i[3].apply(this,arguments)})),Te(e,"keydown",function(){Wt(i[4])&&i[4].apply(this,arguments)})],a=!0)},p(u,[c]){i=u,c&4&&n!==(n=i[2].label+"")&&Ke(o,n),c&2&&z(t,"submenu-value-mobile",i[1]),c&4&&r!==(r=i[2].ariaLabel??i[2].label)&&f(e,"aria-label",r),c&4&&s!==(s=i[2].id)&&f(e,"data-testid",s),c&2&&z(e,"mobile",i[1])},i:me,o:me,d(u){u&&b(e),i[6](null),a=!1,st(l)}}}function X6(i,e,t){let n,o,{isMobile:r=!1}=e,{item:s}=e,{openSubMenuList:a}=e,{refMenuItems:l}=e;function u(c){ve[c?"unshift":"push"](()=>{l[s.id]=c,t(0,l)})}return i.$$set=c=>{"isMobile"in c&&t(1,r=c.isMobile),"item"in c&&t(2,s=c.item),"openSubMenuList"in c&&t(5,a=c.openSubMenuList),"refMenuItems"in c&&t(0,l=c.refMenuItems)},i.$$.update=()=>{i.$$.dirty&36&&t(3,n=()=>a(s.subMenuId)),i.$$.dirty&12&&t(4,o=c=>nl(c,n,s.getSubItemForFocus))},[l,r,s,n,o,a,u]}var kf=class extends B{constructor(e){super(),N(this,e,X6,Z6,R,{isMobile:1,item:2,openSubMenuList:5,refMenuItems:0})}},$0=kf;var eo={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};function e8(i){be(i,"svelte-1mrc4z3",'.sub-menu.svelte-1mrc4z3.svelte-1mrc4z3{line-height:32px;padding-bottom:0;padding-top:42px}.sub-menu.mobile.svelte-1mrc4z3.svelte-1mrc4z3{padding-top:58px}.sub-menu.svelte-1mrc4z3 .item{padding:0 12px}.sub-menu.svelte-1mrc4z3 .item.mobile{padding:0 14px}.sub-menu.svelte-1mrc4z3 .item.header.svelte-1mrc4z3{padding-top:6px;box-sizing:border-box;width:100%;justify-content:space-between;column-gap:12px;border-bottom:var(--divider-border);position:absolute;top:0}.sub-menu[data-testid="sub-menu-quality-settings"].svelte-1mrc4z3 .header.svelte-1mrc4z3{padding-right:34px}')}function e_(i,e,t){let n=i.slice();return n[25]=e[t],n}function t8(i){let e,t;return e=new $0({props:{isMobile:i[2],item:i[25],openSubMenuList:i[6],refMenuItems:i[9]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.isMobile=n[2]),o&128&&(r.item=n[25]),o&64&&(r.openSubMenuList=n[6]),o&512&&(r.refMenuItems=n[9]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function i8(i){let e,t;return e=new J0({props:{item:i[25],isMobile:i[2],selectItem:i[25].selectItem}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&128&&(r.item=n[25]),o&4&&(r.isMobile=n[2]),o&128&&(r.selectItem=n[25].selectItem),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function t_(i){let e,t,n,o,r=[i8,t8],s=[];function a(l,u){return l[25].type==="SELECT_VALUE"?0:l[25].type==="OPEN_SUB_MENU"?1:-1}return~(e=a(i,-1))&&(t=s[e]=r[e](i)),{c(){t&&t.c(),n=Qe()},m(l,u){~e&&s[e].m(l,u),v(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?~e&&s[e].p(l,u):(t&&(ae(),p(s[c],1,1,()=>{s[c]=null}),ue()),~e?(t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n)):t=null)},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),~e&&s[e].d(l)}}}function n8(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g;o=new hr({props:{direction:"left"}});let T=_t(i[7]),k=[];for(let I=0;I<T.length;I+=1)k[I]=t_(e_(i,T,I));let D=I=>p(k[I],1,1,()=>{k[I]=null});return{c(){e=S("div"),t=S("ul"),n=S("li"),M(o.$$.fragment),r=j(),s=S("div"),a=De(i[5]),l=j();for(let I=0;I<k.length;I+=1)k[I].c();f(n,"class","item header back svelte-1mrc4z3"),f(n,"role","menuitem"),f(n,"tabindex","0"),f(n,"data-testid","return-to-settings-menu"),f(n,"aria-label",i[4]),z(n,"mobile",i[2]),f(t,"class","items"),f(t,"role","menu"),f(t,"style",u=i[15](i[10]?.clientHeight)),z(t,"mobile",i[2]),f(e,"class","sub-menu menu svelte-1mrc4z3"),f(e,"data-testid",c=`sub-menu-${i[1]}`),f(e,"style",m=`min-width: ${i[8]}px`),z(e,"desktop",!i[2]),z(e,"mobile",i[2])},m(I,C){v(I,e,C),_(e,t),_(t,n),E(o,n,null),_(n,r),_(n,s),_(s,a),i[20](n),_(t,l);for(let P=0;P<k.length;P+=1)k[P]&&k[P].m(t,null);i[21](t),h=!0,y||(g=[Te(n,"click",mt(function(){Wt(i[3])&&i[3].apply(this,arguments)})),Te(n,"keydown",i[14]),Te(t,"keydown",i[13])],y=!0)},p(I,[C]){if(i=I,(!h||C&32)&&Ke(a,i[5]),(!h||C&16)&&f(n,"aria-label",i[4]),(!h||C&4)&&z(n,"mobile",i[2]),C&708){T=_t(i[7]);let P;for(P=0;P<T.length;P+=1){let G=e_(i,T,P);k[P]?(k[P].p(G,C),d(k[P],1)):(k[P]=t_(G),k[P].c(),d(k[P],1),k[P].m(t,null))}for(ae(),P=T.length;P<k.length;P+=1)D(P);ue()}(!h||C&1024&&u!==(u=i[15](i[10]?.clientHeight)))&&f(t,"style",u),(!h||C&4)&&z(t,"mobile",i[2]),(!h||C&2&&c!==(c=`sub-menu-${i[1]}`))&&f(e,"data-testid",c),(!h||C&256&&m!==(m=`min-width: ${i[8]}px`))&&f(e,"style",m),(!h||C&4)&&z(e,"desktop",!i[2]),(!h||C&4)&&z(e,"mobile",i[2])},i(I){if(!h){d(o.$$.fragment,I);for(let C=0;C<T.length;C+=1)d(k[C]);h=!0}},o(I){p(o.$$.fragment,I),k=k.filter(Boolean);for(let C=0;C<k.length;C+=1)p(k[C]);h=!1},d(I){I&&b(e),A(o),i[20](null),ti(k,I),i[21](null),y=!1,st(g)}}}function o8(i,e,t){let n,o,{id:r}=e,{parentItemId:s}=e,{isMobile:a=!1}=e,{playerControlsHeight:l=0}=e,{returnFromSubMenu:u}=e,{ariaLabelReturnFromSubMenu:c=W("aria_label_submenu_back")}=e,{title:m}=e,{listRef:h}=e,{closeSettingsMenu:y}=e,{openSubMenuList:g}=e,{itemIdReturnCase:T}=e,{items:k}=e,{minWidth:D}=e,{refMenuItems:I}=e,C=et(),P=C.ui.isFullscreen;V(i,P,H=>t(23,o=H));let G=C.ui.playerSize;V(i,G,H=>t(22,n=H));let x,O=H=>{y1(H,u,{itemIdReturnCase:T,id:s},y)},$=H=>{bs(H)&&(Un(H),u(),T.set(s))},le=(H=0)=>a&&o?`max-height: ${Math.round(n.height*.6)}px`:a?"":`max-height: ${n.height-32-H-l}px; overflow: auto;`;function K(H){ve[H?"unshift":"push"](()=>{x=H,t(10,x)})}function ee(H){ve[H?"unshift":"push"](()=>{h=H,t(0,h)})}return i.$$set=H=>{"id"in H&&t(1,r=H.id),"parentItemId"in H&&t(16,s=H.parentItemId),"isMobile"in H&&t(2,a=H.isMobile),"playerControlsHeight"in H&&t(17,l=H.playerControlsHeight),"returnFromSubMenu"in H&&t(3,u=H.returnFromSubMenu),"ariaLabelReturnFromSubMenu"in H&&t(4,c=H.ariaLabelReturnFromSubMenu),"title"in H&&t(5,m=H.title),"listRef"in H&&t(0,h=H.listRef),"closeSettingsMenu"in H&&t(18,y=H.closeSettingsMenu),"openSubMenuList"in H&&t(6,g=H.openSubMenuList),"itemIdReturnCase"in H&&t(19,T=H.itemIdReturnCase),"items"in H&&t(7,k=H.items),"minWidth"in H&&t(8,D=H.minWidth),"refMenuItems"in H&&t(9,I=H.refMenuItems)},[h,r,a,u,c,m,g,k,D,I,x,P,G,O,$,le,s,l,y,T,K,ee]}var wf=class extends B{constructor(e){super(),N(this,e,o8,n8,R,{id:1,parentItemId:16,isMobile:2,playerControlsHeight:17,returnFromSubMenu:3,ariaLabelReturnFromSubMenu:4,title:5,listRef:0,closeSettingsMenu:18,openSubMenuList:6,itemIdReturnCase:19,items:7,minWidth:8,refMenuItems:9},e8)}},i_=wf;var n_=require("@vkontakte/videoplayer-shared");function r8(i){be(i,"svelte-1ikfjte",".value.svelte-1ikfjte{position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis}")}function s8(i){let e,t,n;var o=i[8];function r(s,a){return{}}return o&&(e=At(o,r(i))),{c(){e&&M(e.$$.fragment),t=Qe()},m(s,a){e&&E(e,s,a),v(s,t,a),n=!0},p(s,a){if(a&256&&o!==(o=s[8])){if(e){ae();let l=e;p(l.$$.fragment,1,0,()=>{A(l,1)}),ue()}o?(e=At(o,r(s,a)),M(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&b(t),e&&A(e,s)}}}function l8(i){let e,t;return e=new Yr({props:{icon:i[8]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&256&&(r.icon=n[8]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function a8(i){let e,t;return{c(){e=S("div"),t=De(i[6]),f(e,"class","value svelte-1ikfjte")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&64&&Ke(t,n[6])},i:me,o:me,d(n){n&&b(e)}}}function u8(i){let e,t,n;var o=i[7];function r(s,a){return{}}return o&&(e=At(o,r(i))),{c(){e&&M(e.$$.fragment),t=Qe()},m(s,a){e&&E(e,s,a),v(s,t,a),n=!0},p(s,a){if(a&128&&o!==(o=s[7])){if(e){ae();let l=e;p(l.$$.fragment,1,0,()=>{A(l,1)}),ue()}o?(e=At(o,r(s,a)),M(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&b(t),e&&A(e,s)}}}function c8(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g=[l8,s8],T=[];function k(P,G){return typeof P[8]=="string"?0:1}n=k(i,-1),o=T[n]=g[n](i);let D=[u8,a8],I=[];function C(P,G){return P[7]?0:1}return u=C(i,-1),c=I[u]=D[u](i),{c(){e=S("li"),t=S("div"),o.c(),r=j(),s=S("div"),a=De(i[4]),l=j(),c.c(),f(t,"class","icon-wrapper"),f(s,"class","label"),f(e,"class","item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",i[5]),f(e,"aria-haspopup","true"),f(e,"data-testid",i[1]),z(e,"mobile",i[2])},m(P,G){v(P,e,G),_(e,t),T[n].m(t,null),_(e,r),_(e,s),_(s,a),_(e,l),I[u].m(e,null),i[11](e),m=!0,h||(y=[Te(e,"click",mt(function(){Wt(i[3])&&i[3].apply(this,arguments)})),Te(e,"keydown",i[9])],h=!0)},p(P,[G]){i=P;let x=n;n=k(i,G),n===x?T[n].p(i,G):(ae(),p(T[x],1,1,()=>{T[x]=null}),ue(),o=T[n],o?o.p(i,G):(o=T[n]=g[n](i),o.c()),d(o,1),o.m(t,null)),(!m||G&16)&&Ke(a,i[4]);let O=u;u=C(i,G),u===O?I[u].p(i,G):(ae(),p(I[O],1,1,()=>{I[O]=null}),ue(),c=I[u],c?c.p(i,G):(c=I[u]=D[u](i),c.c()),d(c,1),c.m(e,null)),(!m||G&32)&&f(e,"aria-label",i[5]),(!m||G&2)&&f(e,"data-testid",i[1]),(!m||G&4)&&z(e,"mobile",i[2])},i(P){m||(d(o),d(c),m=!0)},o(P){p(o),p(c),m=!1},d(P){P&&b(e),T[n].d(),I[u].d(),i[11](null),h=!1,st(y)}}}function f8(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:r=n_.noop}=e,{getSubItemForFocus:s}=e,{label:a}=e,{ariaLabel:l}=e,{value:u}=e,{valueComponent:c=void 0}=e,{ref:m}=e,{icon:h}=e,y=T=>nl(T,r,s);function g(T){ve[T?"unshift":"push"](()=>{m=T,t(0,m)})}return i.$$set=T=>{"id"in T&&t(1,n=T.id),"isMobile"in T&&t(2,o=T.isMobile),"onClick"in T&&t(3,r=T.onClick),"getSubItemForFocus"in T&&t(10,s=T.getSubItemForFocus),"label"in T&&t(4,a=T.label),"ariaLabel"in T&&t(5,l=T.ariaLabel),"value"in T&&t(6,u=T.value),"valueComponent"in T&&t(7,c=T.valueComponent),"ref"in T&&t(0,m=T.ref),"icon"in T&&t(8,h=T.icon)},[m,n,o,r,a,l,u,c,h,y,s,g]}var Sf=class extends B{constructor(e){super(),N(this,e,f8,c8,R,{id:1,isMobile:2,onClick:3,getSubItemForFocus:10,label:4,ariaLabel:5,value:6,valueComponent:7,ref:0,icon:8},r8)}},o_=Sf;function d8(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18"),f(t,"clip-rule","evenodd"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,l,l[1],n?Re(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function m8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Tf=class extends B{constructor(e){super(),N(this,e,m8,d8,R,{})}},r_=Tf;function p8(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z"),f(t,"clip-rule","evenodd"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,l,l[1],n?Re(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function _8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var If=class extends B{constructor(e){super(),N(this,e,_8,p8,R,{})}},s_=If;function h8(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=L("svg"),a&&a.c(),t=L("g"),n=L("path"),o=L("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"fill-rule","nonzero"),f(o,"d","M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),Ce(e,u)},m(c,m){v(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,s,c,c[1],r?Re(s,c[1],m,null):Be(c[1]),null),Ce(e,u=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&b(e),a&&a.d(c)}}}function g8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Pf=class extends B{constructor(e){super(),N(this,e,g8,h8,R,{})}},l_=Pf;function b8(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,l,l[1],n?Re(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function v8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Ef=class extends B{constructor(e){super(),N(this,e,v8,b8,R,{})}},a_=Ef;function y8(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492"),f(t,"clip-rule","evenodd"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,l,l[1],n?Re(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function k8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Af=class extends B{constructor(e){super(),N(this,e,k8,y8,R,{})}},Mf=Af;function w8(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,l,l[1],n?Re(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function C8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Lf=class extends B{constructor(e){super(),N(this,e,C8,w8,R,{})}},u_=Lf;function S8(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z"),f(t,"clip-rule","evenodd"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,l,l[1],n?Re(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function T8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Rf=class extends B{constructor(e){super(),N(this,e,T8,S8,R,{})}},c_=Rf;var eO=require("@vkontakte/videoplayer-core");function I8(i){be(i,"svelte-1a7qwh6",".menu-item-value.svelte-1a7qwh6.svelte-1a7qwh6{position:relative;padding-right:22px}.menu-item-value.svelte-1a7qwh6 span.svelte-1a7qwh6{opacity:0.7}.menu-item-value.sub.svelte-1a7qwh6 span.svelte-1a7qwh6{opacity:1}.quality-icon.svelte-1a7qwh6.svelte-1a7qwh6{position:absolute;top:-8px;right:2px;width:15px}.quality-icon.svelte-1a7qwh6 svg{color:var(--blue-light)}")}function f_(i){let e,t,n;var o=i[3];function r(s,a){return{}}return o&&(t=At(o,r(i))),{c(){e=S("div"),t&&M(t.$$.fragment),f(e,"class","quality-icon svelte-1a7qwh6")},m(s,a){v(s,e,a),t&&E(t,e,null),n=!0},p(s,a){if(a&8&&o!==(o=s[3])){if(t){ae();let l=t;p(l.$$.fragment,1,0,()=>{A(l,1)}),ue()}o?(t=At(o,r(s,a)),M(t.$$.fragment),d(t.$$.fragment,1),E(t,e,null)):t=null}},i(s){n||(t&&d(t.$$.fragment,s),n=!0)},o(s){t&&p(t.$$.fragment,s),n=!1},d(s){s&&b(e),t&&A(t)}}}function P8(i){let e,t,n,o,r,s=i[3]&&!i[1]&&f_(i);return{c(){e=S("div"),t=S("span"),n=De(i[0]),o=j(),s&&s.c(),f(t,"class","svelte-1a7qwh6"),f(e,"class","menu-item-value svelte-1a7qwh6"),z(e,"sub",i[2])},m(a,l){v(a,e,l),_(e,t),_(t,n),_(e,o),s&&s.m(e,null),r=!0},p(a,[l]){(!r||l&1)&&Ke(n,a[0]),a[3]&&!a[1]?s?(s.p(a,l),l&10&&d(s,1)):(s=f_(a),s.c(),d(s,1),s.m(e,null)):s&&(ae(),p(s,1,1,()=>{s=null}),ue()),(!r||l&4)&&z(e,"sub",a[2])},i(a){r||(d(s),r=!0)},o(a){p(s),r=!1},d(a){a&&b(e),s&&s.d()}}}function E8(i,e,t){let n,{quality:o}=e,{label:r}=e,{isMobile:s}=e,{isSubCase:a=!1}=e;return i.$$set=l=>{"quality"in l&&t(4,o=l.quality),"label"in l&&t(0,r=l.label),"isMobile"in l&&t(1,s=l.isMobile),"isSubCase"in l&&t(2,a=l.isSubCase)},i.$$.update=()=>{i.$$.dirty&16&&t(3,n=pl(o))},[r,s,a,n,o]}var Vf=class extends B{constructor(e){super(),N(this,e,E8,P8,R,{quality:4,label:0,isMobile:1,isSubCase:2},I8)}},Jl=Vf;var d_=require("@vkontakte/videoplayer-core");var $l=(i,e,t)=>{if(!i)return"...";let n=e.find(r=>r.value===i),o=n?n.displayValue:i;return t?i===d_.VideoQuality.INVARIANT?W("auto_quality_invariant"):W("auto_quality",{actual:o}):o};function A8(i){be(i,"svelte-vk2gx4",".menu-item-value-wrapper.svelte-vk2gx4{right:-22px;position:relative}")}function M8(i){let e,t,n;return t=new Jl({props:{quality:i[0],label:i[1],isMobile:i[2]}}),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","menu-item-value-wrapper svelte-vk2gx4")},m(o,r){v(o,e,r),E(t,e,null),n=!0},p(o,[r]){let s={};r&1&&(s.quality=o[0]),r&2&&(s.label=o[1]),r&4&&(s.isMobile=o[2]),t.$set(s)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function L8(i,e,t){let n,o,r,s,a=et(),l=a.state.currentQuality$;V(i,l,y=>t(0,r=y));let u=a.state.availableQualities$;V(i,u,y=>t(8,o=y));let c=a.state.isAutoQualityEnabled$;V(i,c,y=>t(7,n=y));let m=a.ui.isMobile;V(i,m,y=>t(2,s=y));let h;return i.$$.update=()=>{i.$$.dirty&385&&t(1,h=$l(r,o,n))},[r,h,s,l,u,c,m,n,o]}var Bf=class extends B{constructor(e){super(),N(this,e,L8,M8,R,{},A8)}},m_=Bf;var Nf=require("@vkontakte/videoplayer-shared");function R8(i){let e,t,n;var o=i[4];function r(s,a){return{}}return o&&(e=At(o,r(i))),{c(){e&&M(e.$$.fragment),t=Qe()},m(s,a){e&&E(e,s,a),v(s,t,a),n=!0},p(s,a){if(a&16&&o!==(o=s[4])){if(e){ae();let l=e;p(l.$$.fragment,1,0,()=>{A(l,1)}),ue()}o?(e=At(o,r(s,a)),M(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&b(t),e&&A(e,s)}}}function V8(i){let e;function t(r,s){return r[5]?N8:B8}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Qe()},m(r,s){o.m(r,s),v(r,e,s)},p(r,s){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:me,o:me,d(r){r&&b(e),o.d(r)}}}function B8(i){let e,t,n,o;return{c(){e=S("img"),f(e,"class","icon"),ko(e.src,t=i[4])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){v(r,e,s),n||(o=Te(e,"error",i[6]),n=!0)},p(r,s){s&16&&!ko(e.src,t=r[4])&&f(e,"src",t)},d(r){r&&b(e),n=!1,o()}}}function N8(i){let e;return{c(){e=S("div"),e.innerHTML='<div class="inner"></div>',f(e,"class","icon icon-error-stub")},m(t,n){v(t,e,n)},p:me,d(t){t&&b(e)}}}function D8(i){let e,t,n,o,r,s,a,l,u,c,m,h=[V8,R8],y=[];function g(T,k){return typeof T[4]=="string"?0:1}return n=g(i,-1),o=y[n]=h[n](i),{c(){e=S("li"),t=S("div"),o.c(),r=j(),s=S("div"),a=De(i[2]),f(t,"class","icon-wrapper"),f(s,"class","label"),f(e,"class","item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",l=i[3]??i[2]),f(e,"data-testid",i[0]),z(e,"mobile",i[1])},m(T,k){v(T,e,k),_(e,t),y[n].m(t,null),_(e,r),_(e,s),_(s,a),u=!0,c||(m=[Te(e,"click",mt(i[7])),Te(e,"keydown",i[8])],c=!0)},p(T,[k]){let D=n;n=g(T,k),n===D?y[n].p(T,k):(ae(),p(y[D],1,1,()=>{y[D]=null}),ue(),o=y[n],o?o.p(T,k):(o=y[n]=h[n](T),o.c()),d(o,1),o.m(t,null)),(!u||k&4)&&Ke(a,T[2]),(!u||k&12&&l!==(l=T[3]??T[2]))&&f(e,"aria-label",l),(!u||k&1)&&f(e,"data-testid",T[0]),(!u||k&2)&&z(e,"mobile",T[1])},i(T){u||(d(o),u=!0)},o(T){p(o),u=!1},d(T){T&&b(e),y[n].d(),c=!1,st(m)}}}function O8(i,e,t){let n,{id:o}=e,{isMobile:r=!1}=e,{onClick:s=Nf.noop}=e,{closeSettings:a=Nf.noop}=e,{label:l}=e,{ariaLabel:u}=e,{icon:c}=e,m=()=>{t(5,n=!0)},h=()=>{s(),a()},y=g=>{Dr(g,()=>h())};return i.$$set=g=>{"id"in g&&t(0,o=g.id),"isMobile"in g&&t(1,r=g.isMobile),"onClick"in g&&t(9,s=g.onClick),"closeSettings"in g&&t(10,a=g.closeSettings),"label"in g&&t(2,l=g.label),"ariaLabel"in g&&t(3,u=g.ariaLabel),"icon"in g&&t(4,c=g.icon)},t(5,n=!1),[o,r,l,u,c,n,m,h,y,s,a]}var Df=class extends B{constructor(e){super(),N(this,e,O8,D8,R,{id:0,isMobile:1,onClick:9,closeSettings:10,label:2,ariaLabel:3,icon:4})}},p_=Df;var h_=require("@vkontakte/videoplayer-shared");function F8(i){be(i,"svelte-17wbjko",'.toggle_wrap.svelte-17wbjko{min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none}.toggle.svelte-17wbjko{float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer}.toggle.svelte-17wbjko::after{content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease}.toggle.on.svelte-17wbjko::after{background-color:var(--toggle-color-on);left:13px}.toggle-label.svelte-17wbjko{overflow:hidden}')}function x8(i){let e,t,n,o;return{c(){e=S("div"),t=S("div"),n=j(),o=S("div"),f(t,"class","toggle svelte-17wbjko"),z(t,"on",i[0]),f(o,"class","toggle-label svelte-17wbjko"),f(e,"class","toggle_wrap svelte-17wbjko")},m(r,s){v(r,e,s),_(e,t),_(e,n),_(e,o)},p(r,[s]){s&1&&z(t,"on",r[0])},i:me,o:me,d(r){r&&b(e)}}}function H8(i,e,t){let{enabled:n=!1}=e;return i.$$set=o=>{"enabled"in o&&t(0,n=o.enabled)},[n]}var Of=class extends B{constructor(e){super(),N(this,e,H8,x8,R,{enabled:0},F8)}},__=Of;function q8(i){let e,t,n;var o=i[4];function r(s,a){return{}}return o&&(e=At(o,r(i))),{c(){e&&M(e.$$.fragment),t=Qe()},m(s,a){e&&E(e,s,a),v(s,t,a),n=!0},p(s,a){if(a&16&&o!==(o=s[4])){if(e){ae();let l=e;p(l.$$.fragment,1,0,()=>{A(l,1)}),ue()}o?(e=At(o,r(s,a)),M(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&b(t),e&&A(e,s)}}}function U8(i){let e,t;return e=new Yr({props:{icon:i[4]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.icon=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function z8(i){let e,t,n,o,r,s,a,l,u,c,m=[U8,q8],h=[];function y(g,T){return typeof g[4]=="string"?0:1}return n=y(i,-1),o=h[n]=m[n](i),u=new __({props:{enabled:i[5]}}),{c(){e=S("div"),t=S("div"),o.c(),r=j(),s=S("div"),a=De(i[2]),l=j(),M(u.$$.fragment),f(t,"class","icon-wrapper"),f(s,"class","label"),f(e,"class","switch-wrapper"),z(e,"mobile",i[1])},m(g,T){v(g,e,T),_(e,t),h[n].m(t,null),_(e,r),_(e,s),_(s,a),_(e,l),E(u,e,null),c=!0},p(g,T){let k=n;n=y(g,T),n===k?h[n].p(g,T):(ae(),p(h[k],1,1,()=>{h[k]=null}),ue(),o=h[n],o?o.p(g,T):(o=h[n]=m[n](g),o.c()),d(o,1),o.m(t,null)),(!c||T&4)&&Ke(a,g[2]);let D={};T&32&&(D.enabled=g[5]),u.$set(D),(!c||T&2)&&z(e,"mobile",g[1])},i(g){c||(d(o),d(u.$$.fragment,g),c=!0)},o(g){p(o),p(u.$$.fragment,g),c=!1},d(g){g&&b(e),h[n].d(),A(u)}}}function W8(i){let e,t,n,o,r,s;return t=new qr({props:{content:i[6],isMobile:i[1],placement:"left",translateX:10,isFullWidthWrapper:!0,maxTooltipWidth:i[7],$$slots:{default:[z8]},$$scope:{ctx:i}}}),{c(){e=S("li"),M(t.$$.fragment),f(e,"class","item switch-item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",n=i[3]??i[2]),f(e,"data-testid",i[0]),z(e,"mobile",i[1])},m(a,l){v(a,e,l),E(t,e,null),o=!0,r||(s=[Te(e,"click",mt(i[9])),Te(e,"keydown",i[8])],r=!0)},p(a,[l]){let u={};l&64&&(u.content=a[6]),l&2&&(u.isMobile=a[1]),l&128&&(u.maxTooltipWidth=a[7]),l&2102&&(u.$$scope={dirty:l,ctx:a}),t.$set(u),(!o||l&12&&n!==(n=a[3]??a[2]))&&f(e,"aria-label",n),(!o||l&1)&&f(e,"data-testid",a[0]),(!o||l&2)&&z(e,"mobile",a[1])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&b(e),A(t),r=!1,st(s)}}}function K8(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:r=h_.noop}=e,{label:s}=e,{ariaLabel:a}=e,{icon:l}=e,{enabled:u=!1}=e,{tooltipText:c=void 0}=e,{maxTooltipWidth:m=void 0}=e,h=g=>{k1(g,u,T=>r(T))},y=()=>r(!u);return i.$$set=g=>{"id"in g&&t(0,n=g.id),"isMobile"in g&&t(1,o=g.isMobile),"onClick"in g&&t(10,r=g.onClick),"label"in g&&t(2,s=g.label),"ariaLabel"in g&&t(3,a=g.ariaLabel),"icon"in g&&t(4,l=g.icon),"enabled"in g&&t(5,u=g.enabled),"tooltipText"in g&&t(6,c=g.tooltipText),"maxTooltipWidth"in g&&t(7,m=g.maxTooltipWidth)},[n,o,s,a,l,u,c,m,h,y,r]}var Ff=class extends B{constructor(e){super(),N(this,e,K8,W8,R,{id:0,isMobile:1,onClick:10,label:2,ariaLabel:3,icon:4,enabled:5,tooltipText:6,maxTooltipWidth:7})}},g_=Ff;var T_=require("@vkontakte/videoplayer-shared");function j8(i){be(i,"svelte-1t2c6ej",".settings-menu-container.mobile.svelte-1t2c6ej.svelte-1t2c6ej{width:100%}.settings-menu-container.svelte-1t2c6ej ul{margin:0;padding:0;list-style-type:none}.settings-menu-container.svelte-1t2c6ej .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden}.settings-menu-container.svelte-1t2c6ej .menu .item:first-child:not(.mobile){padding-top:6px;border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius)}.settings-menu-container.svelte-1t2c6ej .menu .item:last-child{padding-bottom:6px;border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius)}.settings-menu-container.svelte-1t2c6ej .menu.desktop{position:absolute;right:0;bottom:0}.settings-menu.svelte-1t2c6ej.svelte-1t2c6ej{line-height:40px}.settings-menu.desktop.svelte-1t2c6ej.svelte-1t2c6ej{min-width:300px}.settings-menu-container.svelte-1t2c6ej .menu.mobile{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.settings-menu-container.svelte-1t2c6ej .menu.mobile.hidden{display:none}.settings-menu-container.svelte-1t2c6ej .menu .item:not(.switch-item),.settings-menu-container.svelte-1t2c6ej .menu .switch-wrapper{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative}.settings-menu-container.svelte-1t2c6ej .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.svelte-1t2c6ej .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.svelte-1t2c6ej .item:not(.switch-item),.settings-menu.svelte-1t2c6ej .switch-wrapper{padding:0 32px 0 18px}.settings-menu.svelte-1t2c6ej .item.mobile:not(.switch-item),.settings-menu.svelte-1t2c6ej .switch-wrapper.mobile{padding:0 14px}.settings-menu.svelte-1t2c6ej .icon-wrapper{width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.settings-menu.svelte-1t2c6ej .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.svelte-1t2c6ej .item.header.svelte-1t2c6ej{color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px}.settings-menu-container.svelte-1t2c6ej .items::-webkit-scrollbar{width:8px}.settings-menu-container.svelte-1t2c6ej .items::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.settings-menu-container.svelte-1t2c6ej .items::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.settings-menu-container.svelte-1t2c6ej .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.svelte-1t2c6ej .items.mobile{overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left}.close.svelte-1t2c6ej.svelte-1t2c6ej{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.svelte-1t2c6ej.svelte-1t2c6ej:before,.close.svelte-1t2c6ej.svelte-1t2c6ej:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.svelte-1t2c6ej.svelte-1t2c6ej:before{transform:rotate(45deg)}.close.svelte-1t2c6ej.svelte-1t2c6ej:after{transform:rotate(-45deg)}")}function v_(i,e,t){let n=i.slice();return n[95]=e[t],n[96]=e,n[97]=t,n}function y_(i,e,t){let n=i.slice();return n[95]=e[t],n[98]=e,n[99]=t,n}function k_(i){let e,t,n,o,r,s,a,l=i[6]&&w_(i),u=_t(i[4]),c=[];for(let h=0;h<u.length;h+=1)c[h]=C_(y_(i,u,h));let m=h=>p(c[h],1,1,()=>{c[h]=null});return{c(){e=S("div"),l&&l.c(),t=j(),n=S("ul");for(let h=0;h<c.length;h+=1)c[h].c();f(n,"class","items"),f(n,"role","menu"),f(n,"style",o=i[35]()),z(n,"mobile",i[6]),f(e,"class","settings-menu menu svelte-1t2c6ej"),f(e,"data-testid","settings-menu"),z(e,"desktop",!i[6]),z(e,"mobile",i[6]),z(e,"hidden",!i[8])},m(h,y){v(h,e,y),l&&l.m(e,null),_(e,t),_(e,n);for(let g=0;g<c.length;g+=1)c[g]&&c[g].m(n,null);i[70](n),r=!0,s||(a=[Te(e,"keydown",i[37]),Te(e,"mouseenter",i[33]),Te(e,"mouseleave",i[34])],s=!0)},p(h,y){if(h[6]?l?l.p(h,y):(l=w_(h),l.c(),l.m(e,t)):l&&(l.d(1),l=null),y[0]&1073741908|y[1]&1){u=_t(h[4]);let g;for(g=0;g<u.length;g+=1){let T=y_(h,u,g);c[g]?(c[g].p(T,y),d(c[g],1)):(c[g]=C_(T),c[g].c(),d(c[g],1),c[g].m(n,null))}for(ae(),g=u.length;g<c.length;g+=1)m(g);ue()}(!r||y[0]&64)&&z(n,"mobile",h[6]),(!r||y[0]&64)&&z(e,"desktop",!h[6]),(!r||y[0]&64)&&z(e,"mobile",h[6]),(!r||y[0]&256)&&z(e,"hidden",!h[8])},i(h){if(!r){for(let y=0;y<u.length;y+=1)d(c[y]);r=!0}},o(h){c=c.filter(Boolean);for(let y=0;y<c.length;y+=1)p(c[y]);r=!1},d(h){h&&b(e),l&&l.d(),ti(c,h),i[70](null),s=!1,st(a)}}}function w_(i){let e,t,n,o,r,s;return{c(){e=S("div"),t=S("div"),t.textContent=`${W("submenu_settings")}`,n=j(),o=S("div"),f(o,"class","close svelte-1t2c6ej"),f(e,"class","item header svelte-1t2c6ej"),z(e,"mobile",i[6])},m(a,l){v(a,e,l),_(e,t),_(e,n),_(e,o),r||(s=Te(o,"click",mt(i[31])),r=!0)},p(a,l){l[0]&64&&z(e,"mobile",a[6])},d(a){a&&b(e),r=!1,s()}}}function G8(i){let e,t;return e=new g_({props:{isMobile:i[6],id:i[95].id,onClick:i[95].onClick,icon:i[95].icon,label:i[95].label,ariaLabel:i[95].ariaLabel,enabled:i[95].enabled,tooltipText:i[95].tooltipText,maxTooltipWidth:i[95].maxTooltipWidth}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&64&&(r.isMobile=n[6]),o[0]&16&&(r.id=n[95].id),o[0]&16&&(r.onClick=n[95].onClick),o[0]&16&&(r.icon=n[95].icon),o[0]&16&&(r.label=n[95].label),o[0]&16&&(r.ariaLabel=n[95].ariaLabel),o[0]&16&&(r.enabled=n[95].enabled),o[0]&16&&(r.tooltipText=n[95].tooltipText),o[0]&16&&(r.maxTooltipWidth=n[95].maxTooltipWidth),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Y8(i){let e,t;return e=new p_({props:{isMobile:i[6],id:i[95].id,onClick:i[95].onClick,icon:i[95].icon,label:i[95].label,ariaLabel:i[95].ariaLabel,closeSettings:i[31]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&64&&(r.isMobile=n[6]),o[0]&16&&(r.id=n[95].id),o[0]&16&&(r.onClick=n[95].onClick),o[0]&16&&(r.icon=n[95].icon),o[0]&16&&(r.label=n[95].label),o[0]&16&&(r.ariaLabel=n[95].ariaLabel),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Q8(i){let e,t,n;function o(){return i[68](i[95])}function r(a){i[69](a,i[95])}let s={isMobile:i[6],id:i[95].id,icon:i[95].icon,label:i[95].label,ariaLabel:i[95].ariaLabel,value:i[95].value,valueComponent:i[95].valueComponent,onClick:o,getSubItemForFocus:i[95].getSubItemForFocus};return i[2][i[95].id]!==void 0&&(s.ref=i[2][i[95].id]),e=new o_({props:s}),ve.push(()=>ze(e,"ref",r)),{c(){M(e.$$.fragment)},m(a,l){E(e,a,l),n=!0},p(a,l){i=a;let u={};l[0]&64&&(u.isMobile=i[6]),l[0]&16&&(u.id=i[95].id),l[0]&16&&(u.icon=i[95].icon),l[0]&16&&(u.label=i[95].label),l[0]&16&&(u.ariaLabel=i[95].ariaLabel),l[0]&16&&(u.value=i[95].value),l[0]&16&&(u.valueComponent=i[95].valueComponent),l[0]&16&&(u.onClick=o),l[0]&16&&(u.getSubItemForFocus=i[95].getSubItemForFocus),!t&&l[0]&20&&(t=!0,u.ref=i[2][i[95].id],Ue(()=>t=!1)),e.$set(u)},i(a){n||(d(e.$$.fragment,a),n=!0)},o(a){p(e.$$.fragment,a),n=!1},d(a){A(e,a)}}}function C_(i){let e,t,n,o,r=[Q8,Y8,G8],s=[];function a(l,u){return l[95].type==="OPEN_SUB_MENU"?0:l[95].type==="CLICK"?1:l[95].type==="SWITCH"?2:-1}return~(e=a(i,[-1,-1,-1,-1]))&&(t=s[e]=r[e](i)),{c(){t&&t.c(),n=Qe()},m(l,u){~e&&s[e].m(l,u),v(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?~e&&s[e].p(l,u):(t&&(ae(),p(s[c],1,1,()=>{s[c]=null}),ue()),~e?(t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n)):t=null)},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&b(n),~e&&s[e].d(l)}}}function S_(i,e){let t,n,o,r;function s(l){e[71](l,e[95])}let a={isMobile:e[6],playerControlsHeight:e[1],itemIdReturnCase:e[36],returnFromSubMenu:e[95].returnFromSubMenu??e[32].bind(null,!1),id:e[95].id,parentItemId:e[95].parentItemId,title:e[95].title,closeSettingsMenu:e[95].closeSettingsMenu,openSubMenuList:e[30],items:e[95].items,minWidth:e[95].minWidth??137,refMenuItems:e[2]};return e[3][e[95].id]!==void 0&&(a.listRef=e[3][e[95].id]),n=new i_({props:a}),ve.push(()=>ze(n,"listRef",s)),{key:i,first:null,c(){t=Qe(),M(n.$$.fragment),this.first=t},m(l,u){v(l,t,u),E(n,l,u),r=!0},p(l,u){e=l;let c={};u[0]&64&&(c.isMobile=e[6]),u[0]&2&&(c.playerControlsHeight=e[1]),u[0]&32&&(c.returnFromSubMenu=e[95].returnFromSubMenu??e[32].bind(null,!1)),u[0]&32&&(c.id=e[95].id),u[0]&32&&(c.parentItemId=e[95].parentItemId),u[0]&32&&(c.title=e[95].title),u[0]&32&&(c.closeSettingsMenu=e[95].closeSettingsMenu),u[0]&32&&(c.items=e[95].items),u[0]&32&&(c.minWidth=e[95].minWidth??137),u[0]&4&&(c.refMenuItems=e[2]),!o&&u[0]&40&&(o=!0,c.listRef=e[3][e[95].id],Ue(()=>o=!1)),n.$set(c)},i(l){r||(d(n.$$.fragment,l),r=!0)},o(l){p(n.$$.fragment,l),r=!1},d(l){l&&b(t),A(n,l)}}}function Z8(i){let e,t,n=[],o=new Map,r,s=i[7]&&k_(i),a=_t(i[5]),l=u=>u[95].id;for(let u=0;u<a.length;u+=1){let c=v_(i,a,u),m=l(c);o.set(m,n[u]=S_(m,c))}return{c(){e=S("div"),s&&s.c(),t=j();for(let u=0;u<n.length;u+=1)n[u].c();f(e,"class","settings-menu-container svelte-1t2c6ej"),z(e,"hidden",!i[7]),z(e,"mobile",i[6])},m(u,c){v(u,e,c),s&&s.m(e,null),_(e,t);for(let m=0;m<n.length;m+=1)n[m]&&n[m].m(e,null);r=!0},p(u,c){u[7]?s?(s.p(u,c),c[0]&128&&d(s,1)):(s=k_(u),s.c(),d(s,1),s.m(e,t)):s&&(ae(),p(s,1,1,()=>{s=null}),ue()),c[0]&1073741934|c[1]&34&&(a=_t(u[5]),ae(),n=pd(n,c,l,1,u,a,o,e,md,S_,null,v_),ue()),(!r||c[0]&128)&&z(e,"hidden",!u[7]),(!r||c[0]&64)&&z(e,"mobile",u[6])},i(u){if(!r){d(s);for(let c=0;c<a.length;c+=1)d(n[c]);r=!0}},o(u){p(s);for(let c=0;c<n.length;c+=1)p(n[c]);r=!1},d(u){u&&b(e),s&&s.d();for(let c=0;c<n.length;c+=1)n[c].d()}}}function X8(i,e,t){let n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C,P,G,x,O,$,le,K,{ref:ee=void 0}=e,{supportLink:H}=e,{playerControlsHeight:J=0}=e,{returnFocus:ke}=e,q=et(),ne=It(),F=q.state.audioStream$;V(i,F,ge=>t(54,m=ge));let _e=q.state.availableAudioStreams$;V(i,_e,ge=>t(53,c=ge));let oe=q.state.currentQuality$;V(i,oe,ge=>t(62,C=ge));let Q=q.state.availableQualities$;V(i,Q,ge=>t(55,h=ge));let Z=q.state.autoQualityLimitingAvailable$;V(i,Z,ge=>t(66,O=ge));let se=q.state.isAutoQualityEnabled$;V(i,se,ge=>t(63,P=ge));let Ze=q.state.currentPlaybackRate$;V(i,Ze,ge=>t(60,D=ge));let Je=q.state.availablePlaybackRates$;V(i,Je,ge=>t(52,u=ge));let Pe=q.state.currentSubtitle$;V(i,Pe,ge=>t(59,k=ge));let Se=q.state.availableSubtitlesList$;V(i,Se,ge=>t(50,a=ge));let Ae=q.state.canDownload,We=q.state.hasMpegSources$;V(i,We,ge=>t(67,$=ge));let X=q.ui.settingsMenu.visible$;V(i,X,ge=>t(7,K=ge));let he=q.ui.settingsMenu.openedByBtnKeyboard$;V(i,he,ge=>t(73,r=ge));let Ie=q.ui.settingsMenu.ref$,Ge=q.ui.isMobile;V(i,Ge,ge=>t(6,s=ge));let tt=q.ui.mobileNotReportControlHidden$;V(i,tt,ge=>t(64,G=ge));let it=q.state.canChangePlaybackSpeed$;V(i,it,ge=>t(65,x=ge));let rt=q.state.trafficSavingEnabled$;V(i,rt,ge=>t(58,T=ge));let $e=q.ui.playerSize;V(i,$e,ge=>t(74,le=ge));let pe=q.ui.debugPanelVisible;V(i,pe,ge=>t(57,g=ge));let Ee=q.state.isInteractiveTime$,Me=q.ui.additionalSettingsMenuItems$;V(i,Me,ge=>t(56,y=ge));let Xe=q.actions.internal.downloadVideo,Ye=q.actions.internal.closeSettingsMenu,Oe=q.actions.internal.openSettingsSubMenu,fe=q.actions.internal.closeSettingsSubMenu,ct=!0,ht=Ne({});V(i,ht,ge=>t(51,l=ge));let gt="",bt=!1;async function Fe(ge){t(8,ct=!1),t(40,gt=ge);let pt=Tt();pt[ge]=!0,ht.set(pt),await fn(),Oe(ge,Bt[ge])}function wt(){r||ke?.(),Ye(),Mt(!0),bt=!1}function Ot(ge){q.actions.internal.setQuality(ge),wt()}function Ut(ge){q.actions.internal.setAudioStream(ge),wt()}function Qt(ge){q.actions.internal.setTrafficSavingEnabled(ge)}function Ht(ge){q.actions.internal.setPlaybackRate(ge),wt()}function lt(ge){q.actions.internal.setSubtitle(ge),wt()}function Tt(){let ge=l;return Object.keys(ge).forEach(pt=>{ge[pt]=!1}),ge}function Mt(ge=!1){t(8,ct=!0);let pt=Tt();ht.set(pt),fe(Bt[gt],ge),t(40,gt="")}function Lt(){Xe()}function yi(){(0,T_.isValidURL)(H)&&window.open(H,"_blank"),q.actions.internal.reportProblem(),q.actions.internal.pause()}function Kt(){Vr(q.actions.internal.getDebugTextData())}let ye=()=>{let ge=q.actions.internal.getTraceTextData(),pt=new Blob([...ge],{type:"application/json"}),Hi=window.URL.createObjectURL(pt);rr(Hi,"vk_player_trace_info","json")};function Ft(){pe.set(!g)}function Rt(){bt=!0}function Zt(){bt=!1}function xt(){return s?`max-height: ${Math.round(le.height*.6)}px`:`max-height: ${le.height-32-J}px; overflow: auto;`}let Pt,Vt,ki,oi,wi,Li,ui,_i=Ne();V(i,_i,ge=>t(61,I=ge));let hi={},Bt={},Fi=ge=>{il(ge,Ye)},Nt=[],Yt=[];yt(()=>{let ge=Ee.subscribe(pt=>{pt&&!s&&!bt&&!r&&wt()});return()=>{ge()}});let xi=ge=>Fe(ge.subMenuId);function Ci(ge,pt){i.$$.not_equal(hi[pt.id],ge)&&(hi[pt.id]=ge,t(2,hi))}function Si(ge){ve[ge?"unshift":"push"](()=>{ee=ge,t(0,ee)})}function Ti(ge,pt){i.$$.not_equal(Bt[pt.id],ge)&&(Bt[pt.id]=ge,t(3,Bt))}return i.$$set=ge=>{"ref"in ge&&t(0,ee=ge.ref),"supportLink"in ge&&t(38,H=ge.supportLink),"playerControlsHeight"in ge&&t(1,J=ge.playerControlsHeight),"returnFocus"in ge&&t(39,ke=ge.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&128|i.$$.dirty[1]&512&&!K&&gt&&Mt(),i.$$.dirty[0]&1&&ee&&Ie.set(ee),i.$$.dirty[1]&16777216|i.$$.dirty[2]&3&&t(48,n=$l(C,h,P)),i.$$.dirty[2]&36&&t(41,Pt=Ae&&$&&!G),i.$$.dirty[2]&20&&t(42,Vt=ne.features.trafficSaving&&!G&&O),i.$$.dirty[1]&524288|i.$$.dirty[2]&4&&t(43,ki=a.length>0&&!G),i.$$.dirty[2]&12&&t(44,oi=!!x&&!G),i.$$.dirty[1]&4194304|i.$$.dirty[2]&4&&t(45,wi=ne.features.audioLanguages&&c.length>=2&&!G),i.$$.dirty[2]&4&&t(49,o=!G),i.$$.dirty[2]&3&&t(46,Li=P?W("auto_quality_option"):C),i.$$.dirty[1]&538968064&&t(47,ui=u.find(ge=>ge.value===D)?.displayValue),i.$$.dirty[0]&4|i.$$.dirty[1]&1073741824){let ge=I;ge&&(v1(hi,ge),_i.set(void 0))}i.$$.dirty[0]&88|i.$$.dirty[1]&1072692224&&(t(4,Nt=[]),o&&Nt.push({id:"quality-settings",weight:eo["quality-settings"],type:"OPEN_SUB_MENU",subMenuId:"quality-sub",getSubItemForFocus:()=>{let ge=h.findIndex(pt=>pt.selected);return Bt["quality-sub"].children[ge+1]},ariaLabel:W("aria_label_menu_quality",{actual:Li}),icon:_l,label:W("menu_quality"),value:n,valueComponent:m_}),wi&&Nt.push({id:"audio-language-settings",weight:eo["audio-language-settings"],type:"OPEN_SUB_MENU",subMenuId:"audio-language-sub",getSubItemForFocus:()=>{let ge=c.findIndex(pt=>pt.id===m?.id);return Bt["audio-language-sub"].children[ge+1]},ariaLabel:W("aria_label_menu_audio_languages",{actual:Xl(m,c)}),icon:a_,label:W("menu_audio_languages"),value:Xl(m,c)}),oi&&Nt.push({id:"playback-rate-settings",weight:eo["playback-rate-settings"],type:"OPEN_SUB_MENU",subMenuId:"playback-rate-sub",getSubItemForFocus:()=>{let ge=u.findIndex(pt=>pt.selected);return Bt["playback-rate-sub"].children[ge+1]},ariaLabel:W("aria_label_menu_rate",{actual:ui}),icon:l_,label:W("menu_playback_rate"),value:`${D}x`}),ki&&Nt.push({id:"subtitles-settings",weight:eo["subtitles-settings"],type:"OPEN_SUB_MENU",subMenuId:"subtitles-sub",getSubItemForFocus:()=>{let ge=a.findIndex(pt=>pt.selected);return Bt["subtitles-sub"].children[ge+1]},ariaLabel:W("aria_label_menu_subtitle",{actual:k.displayValue}),icon:hl,label:W("subtitles_caption"),value:k.displayValue}),Vt&&Nt.push({id:"traffic-saving-settings",weight:eo["traffic-saving-settings"],type:"SWITCH",onClick:Qt,ariaLabel:T?W("aria_label_submenu_traffic_saving_off"):`${W("aria_label_submenu_traffic_saving_on")}. ${W("traffic_saving_helper_text")}`,icon:s_,label:W("menu_traffic_saving"),enabled:T,tooltipText:W("traffic_saving_helper_text"),maxTooltipWidth:175}),Pt&&Nt.push({id:"download",weight:eo.download,type:"CLICK",onClick:Lt,label:W("download_video_caption"),ariaLabel:W("aria_label_menu_download"),icon:r_}),ne.showSupport&&Nt.push({id:"report",weight:eo.report,type:"CLICK",onClick:yi,label:W("menu_report"),ariaLabel:`${W("menu_report")}. ${W("aria_label_new_tab_alert")}`,icon:c_,isHiddenFor:["desktop"]}),Nt.push({id:"copy-data",weight:eo["copy-data"],type:"CLICK",onClick:Kt,label:W("menu_copy_debug"),ariaLabel:W("menu_copy_debug"),icon:Mf,isHiddenFor:["desktop"]}),ne.features.saveTraceInfoToFile&&Nt.push({id:"save-trace-info",weight:eo["save-trace-info"],type:"CLICK",onClick:ye,label:W("menu_save_debug"),ariaLabel:W("menu_save_debug"),icon:Mf,isHiddenFor:["desktop"]}),Nt.push({id:"debug-info",weight:eo["debug-info"],type:"CLICK",onClick:Ft,label:g?W("aria_label_menu_debug_overlay_disable"):W("aria_label_menu_debug_overlay_enable"),ariaLabel:W("menu_debug_overlay"),icon:u_,isHiddenFor:["desktop"]}),t(4,Nt=[...Nt,...y.map(ge=>({...ge,isAdditional:!0}))].filter(ge=>!ge.isHiddenFor?.length||!ge.isHiddenFor?.includes("desktop")&&!s||!ge.isHiddenFor?.includes("mobile")&&s).sort(fr))),i.$$.dirty[0]&96|i.$$.dirty[1]&33030144&&(t(5,Yt=[]),l["quality-sub"]&&Yt.push({id:"quality-sub",parentItemId:"quality-settings",title:W("submenu_quality"),closeSettingsMenu:Ye,items:[...h.map(ge=>({type:"SELECT_VALUE",value:ge.value,valueComponent:Jl,valueComponentParams:{quality:ge.value,label:ge.displayValue,isMobile:s,isSubCase:!0},selectItem:Ot,selected:ge.selected,label:ge.displayValue}))]}),l["audio-language-sub"]&&Yt.push({id:"audio-language-sub",parentItemId:"audio-language-settings",title:W("submenu_audio_languages"),closeSettingsMenu:Ye,items:c.map(ge=>({type:"SELECT_VALUE",value:ge,dataValue:ge.id,selectItem:Ut,selected:ge.id===m?.id,label:Xl(ge,c)}))}),l["playback-rate-sub"]&&Yt.push({id:"playback-rate-sub",parentItemId:"playback-rate-settings",title:W("submenu_playback_rate"),closeSettingsMenu:Ye,items:u.map(ge=>({type:"SELECT_VALUE",value:ge.value,selectItem:Ht,selected:ge.selected,label:ge.displayValue}))}),l["subtitles-sub"]&&Yt.push({id:"subtitles-sub",parentItemId:"subtitles-settings",minWidth:164,title:W("subtitles_caption"),closeSettingsMenu:Ye,items:a.map(ge=>({type:"SELECT_VALUE",value:ge,selectItem:lt,selected:ge.selected,label:ge.displayValue}))}))},[ee,J,hi,Bt,Nt,Yt,s,K,ct,F,_e,oe,Q,Z,se,Ze,Je,Pe,Se,We,X,he,Ge,tt,it,rt,$e,pe,Me,ht,Fe,wt,Mt,Rt,Zt,xt,_i,Fi,H,ke,gt,Pt,Vt,ki,oi,wi,Li,ui,n,o,a,l,u,c,m,h,y,g,T,k,D,I,C,P,G,x,O,$,xi,Ci,Si,Ti]}var xf=class extends B{constructor(e){super(),N(this,e,X8,Z8,R,{ref:0,supportLink:38,playerControlsHeight:1,returnFocus:39},j8,[-1,-1,-1,-1])}},ea=xf;var{window:J8}=fs;function $8(i){be(i,"svelte-13f9p53",".player-wrapper.svelte-13f9p53{position:absolute;width:100%;height:100%}.player-wrapper.svelte-13f9p53 .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-13f9p53{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-13f9p53,.video-container.svelte-13f9p53,.ads-container.svelte-13f9p53{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-13f9p53{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-13f9p53{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-13f9p53{transition:none}.nocursor.svelte-13f9p53{cursor:none}.ads-container.svelte-13f9p53{z-index:var(--ads-container-z-index);background:var(--black)}.settings-menu.svelte-13f9p53{position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;transition:opacity 0.2s, visibility 0.2s}")}function P_(i){let e,t;return e=new Ql({props:{thumbUrl:i[4],startTime:i[5]?.startTime}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&16&&(r.thumbUrl=n[4]),o[0]&32&&(r.startTime=n[5]?.startTime),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function E_(i){let e,t;return e=new Zr({props:{kind:"recover",thumbUrl:i[4]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&16&&(r.thumbUrl=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function A_(i){let e,t;return e=new Zr({props:{kind:"record",thumbUrl:i[4]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&16&&(r.thumbUrl=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function M_(i){let e,t,n;return t=new $s({props:{adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12]}}),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","ads-container svelte-13f9p53"),z(e,"hidden",i[37]!=="ads")},m(o,r){v(o,e,r),E(t,e,null),n=!0},p(o,r){let s={};r[0]&512&&(s.adsSlotId=o[9]),r[0]&1024&&(s.adsParams=o[10]),r[0]&2048&&(s.adsPreviewParam=o[11]),r[0]&4096&&(s.duration=o[12]),t.$set(s),(!n||r[1]&64)&&z(e,"hidden",o[37]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function L_(i){let e,t;return e=new G1({props:{title:i[18],thumb:i[19],clickCloseIcon:i[159]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&262144&&(r.title=n[18]),o[0]&524288&&(r.thumb=n[19]),o[0]&536870912&&(r.clickCloseIcon=n[159]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function R_(i){let e,t;return e=new z0({props:{title:i[3],isHidden:!i[35]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.title=n[3]),o[1]&16&&(r.isHidden=!n[35]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function V_(i){let e,t;return e=new zl({props:{isShifted:i[37]==="video"&&i[35]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[1]&80&&(r.isShifted=n[37]==="video"&&n[35]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function B_(i){let e,t,n;return t=new Ws({props:{"aria-label":W("video360")}}),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","spherical-video-icon svelte-13f9p53")},m(o,r){v(o,e,r),E(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function N_(i){let e,t;return e=new jl({props:{thumbUrl:i[4],chromecastDeviceName:i[53]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&16&&(r.thumbUrl=n[4]),o[1]&4194304&&(r.chromecastDeviceName=n[53]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function D_(i){let e,t;return e=new Kl({props:{shifted:i[35],captions:i[55],position:i[56],playerSize:i[33]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[1]&16&&(r.shifted=n[35]),o[1]&16777216&&(r.captions=n[55]),o[1]&33554432&&(r.position=n[56]),o[1]&4&&(r.playerSize=n[33]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function O_(i){let e,t,n,o,r;return t=new Gl({}),{c(){e=S("div"),M(t.$$.fragment)},m(s,a){v(s,e,a),E(t,e,null),n=!0,o||(r=[Te(e,"contextmenu",ii(i[108])),Te(e,"click",mt(i[119]))],o=!0)},p:me,i(s){n||(d(t.$$.fragment,s),n=!0)},o(s){p(t.$$.fragment,s),n=!1},d(s){s&&b(e),A(t),o=!1,st(r)}}}function F_(i){let e,t,n,o;function r(l){i[160](l)}function s(l){i[161](l)}let a={bottomHidden:i[37]==="thumb"||i[37]==="LiveWaitingStart"||i[37]==="LiveWaitingRecover"||i[37]==="LiveWaitingRecord",bottomNoSmooth:i[49],showControls:i[35],isAds:i[37]==="ads",canRewindLive:i[7]&&i[57]!==0,logoClickable:i[13],logoHidden:i[14],logoTargetUrl:i[15],showNextPrevButtons:i[23],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],customFullscreenSupported:K_,toggleFullscreen:i[106],seekToInteractive:i[24],playPrevChapter:i[25]};return i[40]!==void 0&&(a.playerControlsWrapperRef=i[40]),i[41]!==void 0&&(a.playerControlsRef=i[41]),e=new Ul({props:a}),ve.push(()=>ze(e,"playerControlsWrapperRef",r)),ve.push(()=>ze(e,"playerControlsRef",s)),{c(){M(e.$$.fragment)},m(l,u){E(e,l,u),o=!0},p(l,u){let c={};u[1]&64&&(c.bottomHidden=l[37]==="thumb"||l[37]==="LiveWaitingStart"||l[37]==="LiveWaitingRecover"||l[37]==="LiveWaitingRecord"),u[1]&262144&&(c.bottomNoSmooth=l[49]),u[1]&16&&(c.showControls=l[35]),u[1]&64&&(c.isAds=l[37]==="ads"),u[0]&128|u[1]&67108864&&(c.canRewindLive=l[7]&&l[57]!==0),u[0]&8192&&(c.logoClickable=l[13]),u[0]&16384&&(c.logoHidden=l[14]),u[0]&32768&&(c.logoTargetUrl=l[15]),u[0]&8388608&&(c.showNextPrevButtons=l[23]),u[0]&65536&&(c.nextButtonActive=l[16]),u[0]&131072&&(c.prevButtonActive=l[17]),u[0]&1048576&&(c.isOneVideoPlaylist=l[20]),u[0]&16777216&&(c.seekToInteractive=l[24]),u[0]&33554432&&(c.playPrevChapter=l[25]),!t&&u[1]&512&&(t=!0,c.playerControlsWrapperRef=l[40],Ue(()=>t=!1)),!n&&u[1]&1024&&(n=!0,c.playerControlsRef=l[41],Ue(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){A(e,l)}}}function x_(i){let e,t,n,o;function r(a){i[163](a)}let s={supportLink:i[21],playerControlsHeight:i[41]?.clientHeight,returnFocus:i[162]};return i[27]!==void 0&&(s.ref=i[27]),t=new ea({props:s}),ve.push(()=>ze(t,"ref",r)),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","settings-menu svelte-13f9p53")},m(a,l){v(a,e,l),E(t,e,null),o=!0},p(a,l){let u={};l[0]&2097152&&(u.supportLink=a[21]),l[1]&1024&&(u.playerControlsHeight=a[41]?.clientHeight),l[0]&2&&(u.returnFocus=a[162]),!n&&l[0]&134217728&&(n=!0,u.ref=a[27],Ue(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&b(e),A(t)}}}function H_(i){let e,t;return e=new Fr({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function q_(i){let e,t;return e=new om({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function U_(i){let e,t;return e=new sl({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function z_(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C,P,G,x,O,$,le,K;e=new Yl({props:{hidden:i[37]!=="thumb"||i[36]||i[92]&&i[6],thumbUrl:i[4],startVideo:i[26]}});let ee=i[37]==="LiveWaitingStart"&&P_(i),H=i[37]==="LiveWaitingRecover"&&E_(i),J=i[37]==="LiveWaitingRecord"&&A_(i),ke=i[8]&&i[22]&&M_(i),q=i[30]&&i[18]&&i[19]&&L_(i),ne=i[44]&&R_(i),F=i[48]&&V_(i),_e=i[52]&&B_(i),oe=i[38]&&N_(i),Q=i[54].value!=="off"&&D_(i),Z=i[36]&&O_(i),se=i[22]&&F_(i),Ze=!i[38]&&i[37]!=="ads"&&x_(i);k=new tl({props:{isLive:i[58],isHidden:!i[43],isPlaying:i[50],position:i[56],duration:i[59]}}),I=new A0({props:{data:i[103]}});function Je(X){i[165](X)}let Pe={supportLink:i[21],returnFocus:i[164],visible:i[32],playerContainerRef:i[39],controlsContainerRef:i[40],position:i[60]};i[31]!==void 0&&(Pe.menuElementRef=i[31]),P=new A1({props:Pe}),ve.push(()=>ze(P,"menuElementRef",Je));let Se=i[42]&&H_(i),Ae=i[61]&&q_(i),We=i[62]&&U_(i);return{c(){M(e.$$.fragment),t=j(),ee&&ee.c(),n=j(),H&&H.c(),o=j(),J&&J.c(),r=j(),ke&&ke.c(),s=j(),q&&q.c(),a=j(),ne&&ne.c(),l=j(),F&&F.c(),u=j(),_e&&_e.c(),c=j(),oe&&oe.c(),m=j(),Q&&Q.c(),h=j(),Z&&Z.c(),y=j(),se&&se.c(),g=j(),Ze&&Ze.c(),T=j(),M(k.$$.fragment),D=j(),M(I.$$.fragment),C=j(),M(P.$$.fragment),x=j(),Se&&Se.c(),O=j(),Ae&&Ae.c(),$=j(),We&&We.c(),le=Qe()},m(X,he){E(e,X,he),v(X,t,he),ee&&ee.m(X,he),v(X,n,he),H&&H.m(X,he),v(X,o,he),J&&J.m(X,he),v(X,r,he),ke&&ke.m(X,he),v(X,s,he),q&&q.m(X,he),v(X,a,he),ne&&ne.m(X,he),v(X,l,he),F&&F.m(X,he),v(X,u,he),_e&&_e.m(X,he),v(X,c,he),oe&&oe.m(X,he),v(X,m,he),Q&&Q.m(X,he),v(X,h,he),Z&&Z.m(X,he),v(X,y,he),se&&se.m(X,he),v(X,g,he),Ze&&Ze.m(X,he),v(X,T,he),E(k,X,he),v(X,D,he),E(I,X,he),v(X,C,he),E(P,X,he),v(X,x,he),Se&&Se.m(X,he),v(X,O,he),Ae&&Ae.m(X,he),v(X,$,he),We&&We.m(X,he),v(X,le,he),K=!0},p(X,he){let Ie={};he[0]&64|he[1]&96&&(Ie.hidden=X[37]!=="thumb"||X[36]||X[92]&&X[6]),he[0]&16&&(Ie.thumbUrl=X[4]),he[0]&67108864&&(Ie.startVideo=X[26]),e.$set(Ie),X[37]==="LiveWaitingStart"?ee?(ee.p(X,he),he[1]&64&&d(ee,1)):(ee=P_(X),ee.c(),d(ee,1),ee.m(n.parentNode,n)):ee&&(ae(),p(ee,1,1,()=>{ee=null}),ue()),X[37]==="LiveWaitingRecover"?H?(H.p(X,he),he[1]&64&&d(H,1)):(H=E_(X),H.c(),d(H,1),H.m(o.parentNode,o)):H&&(ae(),p(H,1,1,()=>{H=null}),ue()),X[37]==="LiveWaitingRecord"?J?(J.p(X,he),he[1]&64&&d(J,1)):(J=A_(X),J.c(),d(J,1),J.m(r.parentNode,r)):J&&(ae(),p(J,1,1,()=>{J=null}),ue()),X[8]&&X[22]?ke?(ke.p(X,he),he[0]&4194560&&d(ke,1)):(ke=M_(X),ke.c(),d(ke,1),ke.m(s.parentNode,s)):ke&&(ae(),p(ke,1,1,()=>{ke=null}),ue()),X[30]&&X[18]&&X[19]?q?(q.p(X,he),he[0]&1074528256&&d(q,1)):(q=L_(X),q.c(),d(q,1),q.m(a.parentNode,a)):q&&(ae(),p(q,1,1,()=>{q=null}),ue()),X[44]?ne?(ne.p(X,he),he[1]&8192&&d(ne,1)):(ne=R_(X),ne.c(),d(ne,1),ne.m(l.parentNode,l)):ne&&(ae(),p(ne,1,1,()=>{ne=null}),ue()),X[48]?F?(F.p(X,he),he[1]&131072&&d(F,1)):(F=V_(X),F.c(),d(F,1),F.m(u.parentNode,u)):F&&(ae(),p(F,1,1,()=>{F=null}),ue()),X[52]?_e?he[1]&2097152&&d(_e,1):(_e=B_(X),_e.c(),d(_e,1),_e.m(c.parentNode,c)):_e&&(ae(),p(_e,1,1,()=>{_e=null}),ue()),X[38]?oe?(oe.p(X,he),he[1]&128&&d(oe,1)):(oe=N_(X),oe.c(),d(oe,1),oe.m(m.parentNode,m)):oe&&(ae(),p(oe,1,1,()=>{oe=null}),ue()),X[54].value!=="off"?Q?(Q.p(X,he),he[1]&8388608&&d(Q,1)):(Q=D_(X),Q.c(),d(Q,1),Q.m(h.parentNode,h)):Q&&(ae(),p(Q,1,1,()=>{Q=null}),ue()),X[36]?Z?(Z.p(X,he),he[1]&32&&d(Z,1)):(Z=O_(X),Z.c(),d(Z,1),Z.m(y.parentNode,y)):Z&&(ae(),p(Z,1,1,()=>{Z=null}),ue()),X[22]?se?(se.p(X,he),he[0]&4194304&&d(se,1)):(se=F_(X),se.c(),d(se,1),se.m(g.parentNode,g)):se&&(ae(),p(se,1,1,()=>{se=null}),ue()),!X[38]&&X[37]!=="ads"?Ze?(Ze.p(X,he),he[1]&192&&d(Ze,1)):(Ze=x_(X),Ze.c(),d(Ze,1),Ze.m(T.parentNode,T)):Ze&&(ae(),p(Ze,1,1,()=>{Ze=null}),ue());let Ge={};he[1]&134217728&&(Ge.isLive=X[58]),he[1]&4096&&(Ge.isHidden=!X[43]),he[1]&524288&&(Ge.isPlaying=X[50]),he[1]&33554432&&(Ge.position=X[56]),he[1]&268435456&&(Ge.duration=X[59]),k.$set(Ge);let tt={};he[0]&2097152&&(tt.supportLink=X[21]),he[0]&2&&(tt.returnFocus=X[164]),he[1]&2&&(tt.visible=X[32]),he[1]&256&&(tt.playerContainerRef=X[39]),he[1]&512&&(tt.controlsContainerRef=X[40]),he[1]&536870912&&(tt.position=X[60]),!G&&he[1]&1&&(G=!0,tt.menuElementRef=X[31],Ue(()=>G=!1)),P.$set(tt),X[42]?Se?he[1]&2048&&d(Se,1):(Se=H_(X),Se.c(),d(Se,1),Se.m(O.parentNode,O)):Se&&(ae(),p(Se,1,1,()=>{Se=null}),ue()),X[61]?Ae?he[1]&1073741824&&d(Ae,1):(Ae=q_(X),Ae.c(),d(Ae,1),Ae.m($.parentNode,$)):Ae&&(ae(),p(Ae,1,1,()=>{Ae=null}),ue()),X[62]?We?he[2]&1&&d(We,1):(We=U_(X),We.c(),d(We,1),We.m(le.parentNode,le)):We&&(ae(),p(We,1,1,()=>{We=null}),ue())},i(X){K||(d(e.$$.fragment,X),d(ee),d(H),d(J),d(ke),d(q),d(ne),d(F),d(_e),d(oe),d(Q),d(Z),d(se),d(Ze),d(k.$$.fragment,X),d(I.$$.fragment,X),d(P.$$.fragment,X),d(Se),d(Ae),d(We),K=!0)},o(X){p(e.$$.fragment,X),p(ee),p(H),p(J),p(ke),p(q),p(ne),p(F),p(_e),p(oe),p(Q),p(Z),p(se),p(Ze),p(k.$$.fragment,X),p(I.$$.fragment,X),p(P.$$.fragment,X),p(Se),p(Ae),p(We),K=!1},d(X){X&&(b(t),b(n),b(o),b(r),b(s),b(a),b(l),b(u),b(c),b(m),b(h),b(y),b(g),b(T),b(D),b(C),b(x),b(O),b($),b(le)),A(e,X),ee&&ee.d(X),H&&H.d(X),J&&J.d(X),ke&&ke.d(X),q&&q.d(X),ne&&ne.d(X),F&&F.d(X),_e&&_e.d(X),oe&&oe.d(X),Q&&Q.d(X),Z&&Z.d(X),se&&se.d(X),Ze&&Ze.d(X),A(k,X),A(I,X),A(P,X),Se&&Se.d(X),Ae&&Ae.d(X),We&&We.d(X)}}}function ey(i){let e,t,n,o,r=i[51],s,a,l,u,c=z_(i);return{c(){e=S("div"),t=S("div"),o=j(),c.c(),s=Qe(),f(t,"class","video-container svelte-13f9p53"),f(t,"style",n=`transform: rotate(${i[34]}deg) scale(${i[46]})`),f(t,"data-testid","video-container"),f(t,"data-is-playing",i[50]),z(t,"fast-rotate",!i[2].isSmoothVideoRotate),f(e,"class","video-wrapper svelte-13f9p53"),z(e,"hidden",i[37]!=="video"),z(e,"nocursor",i[45])},m(m,h){v(m,e,h),_(e,t),i[158](t),v(m,o,h),c.m(m,h),v(m,s,h),a=!0,l||(u=[Te(e,"contextmenu",ii(i[108])),Te(e,"mousedown",ii(i[113])),Te(e,"mouseup",ii(i[114])),Te(e,"click",ii(i[116])),Te(e,"dblclick",ii(i[115]))],l=!0)},p(m,h){(!a||h[1]&32776&&n!==(n=`transform: rotate(${m[34]}deg) scale(${m[46]})`))&&f(t,"style",n),(!a||h[1]&524288)&&f(t,"data-is-playing",m[50]),(!a||h[0]&4)&&z(t,"fast-rotate",!m[2].isSmoothVideoRotate),(!a||h[1]&64)&&z(e,"hidden",m[37]!=="video"),(!a||h[1]&16384)&&z(e,"nocursor",m[45]),h[1]&1048576&&R(r,r=m[51])?(ae(),p(c,1,1,me),ue(),c=z_(m),c.c(),d(c,1),c.m(s.parentNode,s)):c.p(m,h)},i(m){a||(d(c),a=!0)},o(m){p(c),a=!1},d(m){m&&(b(e),b(o),b(s)),i[158](null),c.d(m),l=!1,st(u)}}}function ty(i){let e,t,n,o,r,s,a,l={toggleFullscreen:i[106],hideContextMenu:i[107],showHotKeyHelpers:i[117],showKeyMap:i[118],isAds:i[37]==="ads",fakePlayButtonHandler:i[47]?i[105]:void 0,$$slots:{default:[ey]},$$scope:{ctx:i}};return t=new Q1({props:l}),i[166](t),{c(){e=S("div"),M(t.$$.fragment),n=j(),o=S("div"),f(o,"class","overlay-container"),f(e,"class","player-wrapper svelte-13f9p53")},m(u,c){v(u,e,c),E(t,e,null),_(e,n),_(e,o),i[167](o),i[168](e),r=!0,s||(a=[Te(J8,"blur",i[107]),Te(e,"mouseenter",i[109]),Te(e,"mouseleave",i[111]),Te(e,"mousemove",i[112]),Te(e,"click",i[120],!0),Te(e,"focusin",i[110],!0)],s=!0)},p(u,c){let m={};c[1]&64&&(m.isAds=u[37]==="ads"),c[1]&65536&&(m.fakePlayButtonHandler=u[47]?u[105]:void 0),c[0]&1879048191|c[1]&2147418111|c[2]&1|c[6]&1024&&(m.$$scope={dirty:c,ctx:u}),t.$set(m)},i(u){r||(d(t.$$.fragment,u),r=!0)},o(u){p(t.$$.fragment,u),r=!1},d(u){u&&b(e),i[166](null),A(t),i[167](null),i[168](null),s=!1,st(a)}}}var K_=!0;function Hf(i){return i?i.offsetTop+Hf(i.offsetParent):0}function j_(i){return i?i.offsetLeft+j_(i.offsetParent):0}function iy(i,e,t){let n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C,P,G,x,O,$,le,K,ee,H,J,ke,q,ne,F,_e,oe,Q,Z,se,Ze,Je,Pe,Se,Ae,We,X,he,{store:Ie}=e,{uiConfig:Ge}=e,{title:tt}=e,{thumbUrl:it}=e,{videoContainer:rt}=e,{interactiveContainer:$e}=e,{live:pe}=e,{autoplay:Ee}=e,{canRewindLive:Me}=e,{showAds:Xe}=e,{adsSlotId:Ye=void 0}=e,{adsParams:Oe=void 0}=e,{adsPreviewParam:fe=void 0}=e,{duration:ct=void 0}=e,{logoClickable:ht}=e,{logoHidden:gt}=e,{logoTargetUrl:bt=""}=e,{nextButtonActive:Fe=!1}=e,{prevButtonActive:wt=!1}=e,{endScreenVideoTitle:Ot=void 0}=e,{endScreenVideoThumb:Ut=void 0}=e,{isOneVideoPlaylist:Qt=!1}=e,{supportLink:Ht}=e,{shadowRootContainer:lt=void 0}=e,{outerContainerRef:Tt=void 0}=e,{playerStarted:Mt=!1}=e,{fullScreenTarget:Lt=void 0}=e,{showMiniTimer:yi=!1}=e,{showEndScreen:Kt}=e,{showNextPrevButtons:ye}=e,{keyboardControls:Ft}=e,{seekToInteractive:Rt}=e,{playPrevChapter:Zt}=e,{firstStart:xt}=e,Pt=Ie.getLogger().createComponentLog("Root component"),Vt=Ie.interfaceLanguage$;V(i,Vt,Y=>t(51,oe=Y));let ki=Ie.state.playbackState$;V(i,ki,Y=>t(155,q=Y));let oi=Ie.ads.playbackState;V(i,oi,Y=>t(156,ne=Y));let wi=Ie.state.positionWithScrubbing$;V(i,wi,Y=>t(56,Je=Y));let Li=Ie.state.duration$;V(i,Li,Y=>t(59,Ae=Y));let ui=Ie.playerPhase;V(i,ui,Y=>t(37,K=Y));let _i=Ie.ui.isFullscreen;V(i,_i,Y=>t(145,T=Y));let hi=Ie.ui.controlsVisible;V(i,hi,Y=>t(35,G=Y));let Bt=Ie.ui.settingsMenu.visible$;V(i,Bt,Y=>t(143,u=Y));let Fi=Ie.ui.settingsMenu.openedByBtnKeyboard$;V(i,Fi,Y=>t(142,l=Y));let Nt=Ie.ui.scrubbingInProgress;V(i,Nt,Y=>t(147,C=Y));let Yt=Ie.ui.contextMenu.visible$;V(i,Yt,Y=>t(32,n=Y));let xi=Ie.ui.debugPanelVisible;V(i,xi,Y=>t(62,he=Y));let Ci=Ie.state.isLoaderVisible;V(i,Ci,Y=>t(157,F=Y));let Si=Ie.state.isEnded$;V(i,Si,Y=>t(144,m=Y));let Ti=Ie.state.chromecastConnected$;V(i,Ti,Y=>t(38,J=Y));let ge=Ie.state.chromecastDeviceName$;V(i,ge,Y=>t(53,Z=Y));let pt=Ie.ads.postrollPassed;V(i,pt,Y=>t(150,$=Y));let Hi=Ie.state.isLive$;V(i,Hi,Y=>t(58,Se=Y));let pn=Ie.state.isPlaying$;V(i,pn,Y=>t(50,_e=Y));let gi=Ie.state.crashed$;V(i,gi,Y=>t(36,O=Y));let ci=Ie.webApi.annotationsApi,fi=Ie.webApi.pictureInPictureApi,bi=Ie.state.currentSubtitle$;V(i,bi,Y=>t(54,se=Y));let wn=Ie.state.currentSubtitleCaptions$;V(i,wn,Y=>t(55,Ze=Y));let qi=Ie.state.duration$;V(i,qi,Y=>t(57,Pe=Y));let _n=Ie.state.graphIsOpened$;V(i,_n,Y=>t(151,le=Y));let ri=Ie.ui.playerSize;V(i,ri,Y=>t(33,y=Y));let Ri=Ie.ui.is3DVideo;V(i,Ri,Y=>t(48,h=Y));let Ui=Ie.ui.icon3DVideoVisible;V(i,Ui,Y=>t(52,Q=Y));let $i=Ie.ui.rotateAlpha;V(i,$i,Y=>t(34,I=Y));let Vi=Ie.state.isInteractive,hn=Ie.state.isInteractiveTime$;V(i,hn,Y=>t(148,P=Y));let Xt=Ie.state.isInteractiveExpectation$;V(i,Xt,Y=>t(154,ke=Y));let On=Ie.state.hasInteractiveBranches,Ii=Ie.ui.touched;V(i,Ii,Y=>t(152,ee=Y));let en=Ie.ui.modals.hotKeyMap.data;V(i,en,Y=>t(175,c=Y));let tn=Ie.ui.modals.hotKeyMap.show;V(i,tn,Y=>t(61,X=Y));let nn=Ie.ui.overlayContainer$,zi=Ie.ui.controls.interactiveTimeIndicator;V(i,zi,Y=>t(176,g=Y));let Wi=Ie.state.showInteractiveTimeIndicator,Pi=Ie.ui.contextMenu.position$;V(i,Pi,Y=>t(60,We=Y));let vi=Ie.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Bi}=Nn();V(i,Bi,Y=>t(146,D=Y));let Jt,si,nt,Ei,qt,di,Ai;en.set(r1());let on,gn,Mi=Ne(!1);V(i,Mi,Y=>t(49,k=Y));let Ki,$t=Ne(!1);V(i,$t,Y=>t(153,H=Y));let je=Ne(),bn=Ne(!1);V(i,bn,Y=>t(149,x=Y));let rn=!1,ji=!1,sn=!1,Gi=!(Ee&&!Ge.controls.showOnStartupAtAutoplay),Yi,Kn,Fn,mi=!1,xn,vn,Cn=!1,Sn,ln=!1,{toggle:yn}=Bi,Ni=!1,Qi=null;fi?.setContext(ds());let Hn=()=>{Ee&&!Vi&&Ge.controls.showOnStartupAtAutoplay&&ei(Ge.controls.hideTimeout)};Ie.setUiCallbacks({onStarted:Hn});let to=()=>{window.clearTimeout(qt),$t.set(!1)},io=()=>{window.clearTimeout(di),je.set(null)},ei=Y=>{to(),$t.set(!0),qt=window.setTimeout(()=>$t.set(!1),Y);let Dt=Y-100;Ki=window.setTimeout(()=>{k&&Mi.set(!1)},Dt>0?Dt:Y)},no=(Y,Dt)=>{io(),je.set(Dt),di=window.setTimeout(()=>je.set(null),Y)},oo=Ri.subscribe(Y=>{Ui.set(Y),Y&&(window.clearTimeout(Ai),Ai=window.setTimeout(()=>Ui.set(!1),Ge.controls.hide360IconTimeout))}),jn=async()=>{let Y=Fo();if(Y){let Dt=gs(),an=Gn();Y=Dt===an||Dt===lt}if(Y){ei(Ge.controls.hideTimeoutFullscreen);try{await fi?.remove()}catch(Dt){Pt({message:String(Dt)})}}_i.set(Y),Ie.getAdmanWrapper().setFullscreen(Y),T?Ie.callbacks?.onFullscreenEnter?.():Ie.callbacks?.onFullscreenExit?.()},ro=Y=>{let{width:Dt,height:an}=Y.target;ri.set({width:Dt,height:an})},so=()=>{let{width:Y,height:Dt}=Jt.getBoundingClientRect();ri.set({width:Y,height:Dt})};yt(()=>(Xs(jn),Ge.features.annotationsInside&&ci?.init(Jt),ur(fi)&&(fi?.assignPlayerContainer(Jt),fi?.registryExternalEventHandlers({resize:ro,leavepictureinpicture:so})),$e&&rt.parentElement?.insertBefore($e,rt.nextSibling),()=>{window.clearTimeout(qt),window.clearTimeout(Ki),window.clearTimeout(di),window.clearTimeout(Ai),oo(),fi?.dispose(),Js(jn)}));let Gn=()=>{let Y=Ge.features.fullscreenInternalTargetPlayerContainer||!Tt?Jt:Tt,Dt=Y.getRootNode(),an=Dt instanceof ShadowRoot?Dt.host:Dt,kn=Lt instanceof HTMLElement&&Lt.contains(an);return Ge.allowChangingFullscreenTarget&&Lt&&kn?Lt:Y},Yn=async()=>{Fo()?(await Zs(document),Pt({message:"exit fullscreen"})):(Pt({message:"request fullscreen"}),await Qs(Gn()))},Tn=()=>{vi(),Yt.set(!1)},Qn=Y=>{Yt.set(!0),Pi.set({left:Y.clientX,top:Y.clientY})};function go(){bn.set(!0),Vi||ei(Ge.controls.hideTimeoutCursor)}function bo(){Vi||(Mi.set(!0),ei(Ge.controls.hideTimeoutCursor))}function Di(){bn.set(!1),t(133,ji=!1),t(132,rn=!1),Ni=!1,Ie.actions.internal.releaseCamera()}function ie(Y){if(g&&Wi){let Dt=Y.currentTarget,an=Hf(Dt),kn=j_(Dt),Xo=Y.pageX-kn,Jo=Y.pageY-an,{left:co,bottom:ns,right:Mn}=g,Bo=Mn-co;return Xo>=co-Bo&&Jo<=ns+Bo}}function vt(Y){if(Jt){let Dt=Hf(Y.currentTarget),an=y.height,kn=Y.pageY-Dt;if(ie(Y)){t(133,ji=!1);return}kn<40?t(133,ji=!0):kn>an-40?t(132,rn=!0):(t(133,ji=!1),u||t(132,rn=!1))}}function te(Y){vt(Y),Yi||ei(Ge.controls.hideTimeoutCursor),h&&Ni&&Qi&&Ie.actions.internal.moveCameraFocusPX(Qi.clientX-Y.clientX,Qi.clientY-Y.clientY,Y.timeStamp-Qi.timeStamp),Qi=Y}let In=Y=>{Y.button===0&&(Ni=!0,Ie.actions.internal.holdCamera()),ei(Ge.controls.hideTimeoutCursor)},ts=Y=>{Y.button===0&&(Qi=Y,Ni=!1,Ie.actions.internal.releaseCamera()),ei(Ge.controls.hideTimeoutCursor)},is=()=>{K_&&(Pt({message:"double click on video"}),Yn(),ei(Ge.controls.hideTimeoutCursor))},br=()=>{if(n||u){Tn();return}if(!(m&&!On)){if(ln)return yn();if(Ft?.focus(),!Mt){xt(),ei(Ge.controls.hideTimeoutCursor);return}Ie.actions.internal.togglePlay(),ei(Ge.controls.hideTimeoutCursor)}},Go=Y=>{Tn(),Ii.set(!0),ei(Ge.controls.hideTimeout),Y&&no(Ge.controls.hideHotKeyHelpers,Y)},lo=()=>{Tn(),Ie.callbacks?.onOpenHotKeyMap?Ie.callbacks?.onOpenHotKeyMap(c):tn.update(Y=>!Y)},Ao=()=>{if(n||u){Tn();return}},Mo=()=>{Ii.set(!0)},Zn=Ie.ui.contextMenu.openedByBtnKeyboard$;V(i,Zn,Y=>t(141,a=Y));let ao=Ie.ui.contextMenu.btnRef$;V(i,ao,Y=>t(140,s=Y));let Pn,Xn=Ie.ui.contextMenu.openedByHotKey$;V(i,Xn,Y=>t(139,r=Y));let uo=Ie.ui.contextMenu.lastActiveElem$;V(i,uo,Y=>t(138,o=Y));function Yo(Y){ve[Y?"unshift":"push"](()=>{rt=Y,t(0,rt)})}let Qo=()=>t(29,mi=!0);function Lo(Y){si=Y,t(40,si)}function vo(Y){nt=Y,t(41,nt)}let yo=()=>Ft?.focus();function Ro(Y){Ei=Y,t(27,Ei)}let Vo=()=>Ft?.focus();function En(Y){Pn=Y,t(31,Pn)}function Zo(Y){ve[Y?"unshift":"push"](()=>{Ft=Y,t(1,Ft)})}function vr(Y){ve[Y?"unshift":"push"](()=>{gn=Y,t(28,gn)})}function An(Y){ve[Y?"unshift":"push"](()=>{Jt=Y,t(39,Jt)})}return i.$$set=Y=>{"store"in Y&&t(125,Ie=Y.store),"uiConfig"in Y&&t(2,Ge=Y.uiConfig),"title"in Y&&t(3,tt=Y.title),"thumbUrl"in Y&&t(4,it=Y.thumbUrl),"videoContainer"in Y&&t(0,rt=Y.videoContainer),"interactiveContainer"in Y&&t(126,$e=Y.interactiveContainer),"live"in Y&&t(5,pe=Y.live),"autoplay"in Y&&t(6,Ee=Y.autoplay),"canRewindLive"in Y&&t(7,Me=Y.canRewindLive),"showAds"in Y&&t(8,Xe=Y.showAds),"adsSlotId"in Y&&t(9,Ye=Y.adsSlotId),"adsParams"in Y&&t(10,Oe=Y.adsParams),"adsPreviewParam"in Y&&t(11,fe=Y.adsPreviewParam),"duration"in Y&&t(12,ct=Y.duration),"logoClickable"in Y&&t(13,ht=Y.logoClickable),"logoHidden"in Y&&t(14,gt=Y.logoHidden),"logoTargetUrl"in Y&&t(15,bt=Y.logoTargetUrl),"nextButtonActive"in Y&&t(16,Fe=Y.nextButtonActive),"prevButtonActive"in Y&&t(17,wt=Y.prevButtonActive),"endScreenVideoTitle"in Y&&t(18,Ot=Y.endScreenVideoTitle),"endScreenVideoThumb"in Y&&t(19,Ut=Y.endScreenVideoThumb),"isOneVideoPlaylist"in Y&&t(20,Qt=Y.isOneVideoPlaylist),"supportLink"in Y&&t(21,Ht=Y.supportLink),"shadowRootContainer"in Y&&t(127,lt=Y.shadowRootContainer),"outerContainerRef"in Y&&t(128,Tt=Y.outerContainerRef),"playerStarted"in Y&&t(22,Mt=Y.playerStarted),"fullScreenTarget"in Y&&t(129,Lt=Y.fullScreenTarget),"showMiniTimer"in Y&&t(130,yi=Y.showMiniTimer),"showEndScreen"in Y&&t(131,Kt=Y.showEndScreen),"showNextPrevButtons"in Y&&t(23,ye=Y.showNextPrevButtons),"keyboardControls"in Y&&t(1,Ft=Y.keyboardControls),"seekToInteractive"in Y&&t(24,Rt=Y.seekToInteractive),"playPrevChapter"in Y&&t(25,Zt=Y.playPrevChapter),"firstStart"in Y&&t(26,xt=Y.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&96|i.$$.dirty[5]&6&&t(42,on=(K==="video"&&F||K==="ads"&&ne==="inactive")&&!O),i.$$.dirty[0]&268435456&&nn.set(gn),i.$$.dirty[4]&2048|i.$$.dirty[5]&1&&(t(134,sn=Gi&&q!==W_.PlaybackState.PLAYING),Gi||t(135,Gi=!0)),i.$$.dirty[4]&1091045120&&t(136,Yi=P&&!u&&!(rn||ji)&&!(sn&&!ke)),i.$$.dirty[1]&224|i.$$.dirty[4]&545788928&&hi.set((sn||u||C||J||H)&&!Yi&&(K==="video"||K==="ads")&&!O),i.$$.dirty[0]&4|i.$$.dirty[1]&112|i.$$.dirty[4]&268435520&&t(43,Kn=Ge.features.thumbTimer&&yi&&K==="video"&&!G&&!O&&!Vi&&(Ge.hideThumbTimerAfterTouch&&!ee||!Ge.hideThumbTimerAfterTouch)),i.$$.dirty[1]&64|i.$$.dirty[4]&136314880&&t(44,Fn=K==="video"&&!le&&T),i.$$.dirty[0]&536871168|i.$$.dirty[1]&32|i.$$.dirty[4]&68157568&&t(30,xn=Kt&&(Xe&&$||!Xe)&&m&&!O&&!mi),i.$$.dirty[0]&1073741824|i.$$.dirty[1]&16|i.$$.dirty[4]&50331648&&t(45,vn=x&&!(G||xn)&&!P),i.$$.dirty[0]&4|i.$$.dirty[4]&25174016&&(!C&&Cn&&!P&&ei(Ge.controls.hideTimeoutCursor),t(137,Cn=C)),i.$$.dirty[0]&1|i.$$.dirty[1]&12&&t(46,Sn=rt&&I%180?y.height/y.width:1),i.$$.dirty[4]&4194304&&t(47,ln=D!==null),i.$$.dirty[0]&134217728|i.$$.dirty[4]&786432&&mo(Ei,u,l),i.$$.dirty[1]&3|i.$$.dirty[4]&131072&&mo(Pn,n,a),i.$$.dirty[1]&2|i.$$.dirty[4]&65536){let Y=s;Y&&Nr(Y,n,Zn)}if(i.$$.dirty[1]&3|i.$$.dirty[4]&32768&&mo(Pn,n,r),i.$$.dirty[1]&2|i.$$.dirty[4]&16384){let Y=o;Y&&b1(Y,n,Xn)}},[rt,Ft,Ge,tt,it,pe,Ee,Me,Xe,Ye,Oe,fe,ct,ht,gt,bt,Fe,wt,Ot,Ut,Qt,Ht,Mt,ye,Rt,Zt,xt,Ei,gn,mi,xn,Pn,n,y,I,G,O,K,J,Jt,si,nt,on,Kn,Fn,vn,Sn,ln,h,k,_e,oe,Q,Z,se,Ze,Je,Pe,Se,Ae,We,X,he,Vt,ki,oi,wi,Li,ui,_i,hi,Bt,Fi,Nt,Yt,xi,Ci,Si,Ti,ge,pt,Hi,pn,gi,bi,wn,qi,_n,ri,Ri,Ui,$i,Vi,hn,Xt,Ii,en,tn,zi,Pi,Bi,Mi,$t,je,bn,yn,Yn,Tn,Qn,go,bo,Di,te,In,ts,is,br,Go,lo,Ao,Mo,Zn,ao,Xn,uo,Ie,$e,lt,Tt,Lt,yi,Kt,rn,ji,sn,Gi,Yi,Cn,o,r,s,a,l,u,m,T,D,C,P,x,$,le,ee,H,ke,q,ne,F,Yo,Qo,Lo,vo,yo,Ro,Vo,En,Zo,vr,An]}var qf=class extends B{constructor(e){super(),N(this,e,iy,ty,R,{store:125,uiConfig:2,title:3,thumbUrl:4,videoContainer:0,interactiveContainer:126,live:5,autoplay:6,canRewindLive:7,showAds:8,adsSlotId:9,adsParams:10,adsPreviewParam:11,duration:12,logoClickable:13,logoHidden:14,logoTargetUrl:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:127,outerContainerRef:128,playerStarted:22,fullScreenTarget:129,showMiniTimer:130,showEndScreen:131,showNextPrevButtons:23,keyboardControls:1,seekToInteractive:24,playPrevChapter:25,firstStart:26},$8,[-1,-1,-1,-1,-1,-1,-1])}},G_=qf;var kh=require("@vkontakte/videoplayer-core"),jo=require("@vkontakte/videoplayer-shared");function ny(i){be(i,"svelte-nhq2ld",".double-click-area.svelte-nhq2ld{position:absolute;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.svelte-nhq2ld{left:0}.double-click-area.right.svelte-nhq2ld{right:0}.semicircle.svelte-nhq2ld{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.svelte-nhq2ld{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.svelte-nhq2ld{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.svelte-nhq2ld{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.svelte-nhq2ld{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.svelte-nhq2ld{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:svelte-nhq2ld-blink 500ms infinite;opacity:0}.triangle.right.svelte-nhq2ld:nth-child(1),.triangle.left.svelte-nhq2ld:nth-child(3){animation-delay:0ms}.triangle.right.svelte-nhq2ld:nth-child(2),.triangle.left.svelte-nhq2ld:nth-child(2){animation-delay:100ms}.triangle.right.svelte-nhq2ld:nth-child(3),.triangle.left.svelte-nhq2ld:nth-child(1){animation-delay:200ms}@keyframes svelte-nhq2ld-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.svelte-nhq2ld{border-right:8px solid var(--white)}.triangle.right.svelte-nhq2ld{border-left:8px solid var(--white)}.triangle.svelte-nhq2ld:not(:last-child){margin-right:5px}.step-caption.svelte-nhq2ld{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}")}function Y_(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,T,k=W("doubletap_seek_step",{seconds:i[2].toFixed(0)})+"",D;return{c(){e=S("div"),n=j(),o=S("div"),r=S("div"),s=S("div"),l=j(),u=S("div"),m=j(),h=S("div"),g=j(),T=S("p"),D=De(k),f(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),f(s,"class",a="triangle "+i[0]+" svelte-nhq2ld"),f(u,"class",c="triangle "+i[0]+" svelte-nhq2ld"),f(h,"class",y="triangle "+i[0]+" svelte-nhq2ld"),f(r,"class","triangles-wrapper svelte-nhq2ld"),f(T,"class","step-caption svelte-nhq2ld"),f(o,"class","info svelte-nhq2ld")},m(I,C){v(I,e,C),v(I,n,C),v(I,o,C),_(o,r),_(r,s),_(r,l),_(r,u),_(r,m),_(r,h),_(o,g),_(o,T),_(T,D)},p(I,C){C&1&&t!==(t="semicircle "+I[0]+" svelte-nhq2ld")&&f(e,"class",t),C&1&&a!==(a="triangle "+I[0]+" svelte-nhq2ld")&&f(s,"class",a),C&1&&c!==(c="triangle "+I[0]+" svelte-nhq2ld")&&f(u,"class",c),C&1&&y!==(y="triangle "+I[0]+" svelte-nhq2ld")&&f(h,"class",y),C&4&&k!==(k=W("doubletap_seek_step",{seconds:I[2].toFixed(0)})+"")&&Ke(D,k)},d(I){I&&(b(e),b(n),b(o))}}}function oy(i){let e,t,n,o,r=i[1]&&Y_(i);return{c(){e=S("div"),r&&r.c(),f(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(s,a){v(s,e,a),r&&r.m(e,null),n||(o=Te(e,"click",mt(i[3]())),n=!0)},p(s,[a]){s[1]?r?r.p(s,a):(r=Y_(s),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&1&&t!==(t="double-click-area "+s[0]+" svelte-nhq2ld")&&f(e,"class",t)},i:me,o:me,d(s){s&&b(e),r&&r.d(),n=!1,o()}}}function ry(i,e,t){let{side:n}=e,{seekStep:o=0}=e,{handleSingleFirstClick:r}=e,{handleSecondClick:s}=e,a=!1,l=0,u=0,c=o,m=()=>()=>{u+=1,t(2,c=o*(u-1)),u===1?r():(t(1,a=!0),s()),window.clearTimeout(l),l=window.setTimeout(()=>{u=0,t(1,a=!1)},300)};return Vn(()=>{window.clearTimeout(l)}),i.$$set=h=>{"side"in h&&t(0,n=h.side),"seekStep"in h&&t(4,o=h.seekStep),"handleSingleFirstClick"in h&&t(5,r=h.handleSingleFirstClick),"handleSecondClick"in h&&t(6,s=h.handleSecondClick)},[n,a,c,m,o,r,s]}var Uf=class extends B{constructor(e){super(),N(this,e,ry,oy,R,{side:0,seekStep:4,handleSingleFirstClick:5,handleSecondClick:6},ny)}},zf=Uf;function sy(i){be(i,"svelte-1qdxi6t",".overlay.svelte-1qdxi6t{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-1qdxi6t{position:absolute;top:50%;left:50%;z-index:var(--end-screen-mobile-z-index);transform:translate(-50%, -50%);display:flex;flex-direction:column;max-width:362px;min-width:320px;margin:0 auto;padding-bottom:12px}.top.svelte-1qdxi6t{display:flex;justify-content:space-between}.caption.svelte-1qdxi6t{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-1qdxi6t{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%}.column.svelte-1qdxi6t{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-1qdxi6t{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.svelte-1qdxi6t{width:100%;height:100%;position:absolute}.thumb-overlay.withOpacity.svelte-1qdxi6t{background:var(--black);opacity:0.3}.title.svelte-1qdxi6t{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function Q_(i){let e,t,n,o,r,s=(i[3]?W("end_screen_next_video"):W("end_screen_recommended_video"))+"",a,l,u,c,m,h,y,g,T,k,D,I,C,P,G,x,O;u=new ll({}),u.$on("click",i[9]);let $=i[3]&&Z_(i);return{c(){e=S("div"),t=j(),n=S("div"),o=S("div"),r=S("div"),a=De(s),l=j(),M(u.$$.fragment),c=j(),m=S("div"),h=S("div"),y=S("div"),g=S("div"),T=j(),$&&$.c(),D=j(),I=S("div"),C=S("div"),P=De(i[0]),f(e,"class","overlay svelte-1qdxi6t"),f(r,"class","caption svelte-1qdxi6t"),f(o,"class","top svelte-1qdxi6t"),f(g,"class","thumb-overlay svelte-1qdxi6t"),z(g,"withOpacity",i[3]),f(y,"class","thumb svelte-1qdxi6t"),f(y,"style",k=`background-image: url('${i[1]}')`),f(h,"class","column svelte-1qdxi6t"),f(C,"class","title svelte-1qdxi6t"),f(I,"class","column svelte-1qdxi6t"),f(m,"class","row svelte-1qdxi6t"),f(n,"class","next-video svelte-1qdxi6t")},m(le,K){v(le,e,K),v(le,t,K),v(le,n,K),_(n,o),_(o,r),_(r,a),_(o,l),E(u,o,null),_(n,c),_(n,m),_(m,h),_(h,y),_(y,g),_(y,T),$&&$.m(y,null),_(m,D),_(m,I),_(I,C),_(C,P),G=!0,x||(O=Te(m,"click",i[7]),x=!0)},p(le,K){(!G||K&8)&&s!==(s=(le[3]?W("end_screen_next_video"):W("end_screen_recommended_video"))+"")&&Ke(a,s),(!G||K&8)&&z(g,"withOpacity",le[3]),le[3]?$?($.p(le,K),K&8&&d($,1)):($=Z_(le),$.c(),d($,1),$.m(y,null)):$&&(ae(),p($,1,1,()=>{$=null}),ue()),(!G||K&2&&k!==(k=`background-image: url('${le[1]}')`))&&f(y,"style",k),(!G||K&1)&&Ke(P,le[0])},i(le){G||(d(u.$$.fragment,le),d($),G=!0)},o(le){p(u.$$.fragment,le),p($),G=!1},d(le){le&&(b(e),b(t),b(n)),A(u),$&&$.d(),x=!1,O()}}}function Z_(i){let e,t;return e=new al({props:{isRunning:i[4],onTimerEnded:i[8]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.isRunning=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function ly(i){let e,t,n=!i[2]&&Q_(i);return{c(){n&&n.c(),e=Qe()},m(o,r){n&&n.m(o,r),v(o,e,r),t=!0},p(o,[r]){o[2]?n&&(ae(),p(n,1,1,()=>{n=null}),ue()):n?(n.p(o,r),r&4&&d(n,1)):(n=Q_(o),n.c(),d(n,1),n.m(e.parentNode,e))},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function ay(i,e,t){let n,o,{title:r}=e,{thumb:s}=e,{isHide:a}=e,{clickCloseIcon:l}=e,u=et(),c=u.ui.autoplayNextEnabled$;V(i,c,C=>t(3,n=C));let m=u.ui.timerNextVideoRunning$;V(i,m,C=>t(4,o=C));let h=u.actions.internal.nextVideoClick,y=u.actions.internal.nextVideoAnnouncementClick,g=u.actions.internal.nextVideoAnnouncementAuto,T=u.actions.internal.nextVideoAnnouncementCancel,k=()=>{h(!1),y()},D=()=>{h(!1),g()},I=()=>{l(),T()};return yt(()=>{a&&n&&(h(!1),g())}),i.$$set=C=>{"title"in C&&t(0,r=C.title),"thumb"in C&&t(1,s=C.thumb),"isHide"in C&&t(2,a=C.isHide),"clickCloseIcon"in C&&t(10,l=C.clickCloseIcon)},i.$$.update=()=>{i.$$.dirty&8&&(n||T())},[r,s,a,n,o,c,m,k,D,I,l]}var Wf=class extends B{constructor(e){super(),N(this,e,ay,ly,R,{title:0,thumb:1,isHide:2,clickCloseIcon:10},sy)}},X_=Wf;var J_=require("@vkontakte/videoplayer-shared");var $_=({getFullscreenTarget:i,fullScreenChangeHandler:e})=>{let t=null,n;yt(()=>{J_.clientChecker.isIOS&&(n=setTimeout(()=>{let r=i().querySelector("video");if(!r)return;let s=()=>e(!0),a=()=>e(!1);r.addEventListener("webkitbeginfullscreen",s),r.addEventListener("webkitendfullscreen",a),t=()=>{r.removeEventListener("webkitbeginfullscreen",s),r.removeEventListener("webkitendfullscreen",a)}},0))}),Vn(()=>{t?.(),clearTimeout(n)})};var eh=require("@vkontakte/videoplayer-core");var ta=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,t=!1){let n=document.createElement("track");n.setAttribute("src",e.url),n.setAttribute("id",e.id),e.label&&n.setAttribute("label",e.label),e.language&&n.setAttribute("srclang",e.language),t&&(n.track.mode="showing"),this.video.appendChild(n)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let t=this.getTracksArray().find(n=>n.id===e.id);t&&(t.src=e.url)}getCurrentShowingId(){return this.getTracksArray().find(e=>e.track.mode==="showing")?.id??null}};var th=require("@vkontakte/videoplayer-shared"),ih=({store:i,getFullscreenTarget:e})=>{let{isFullscreen:t}=i.ui,{setSubtitle:n}=i.actions.internal,{currentSubtitle$:o,availableSubtitlesList$:r,currentFormat$:s,availableTextTracks$:a}=i.state,l=null,u=()=>e().querySelector("video"),c=()=>th.clientChecker.isIOS&&qe(s)===eh.VideoFormat.DASH_LIVE_CMAF,m=()=>{l?.(),l=null},h=y=>{if(m(),!c()||!y)return;let g=u();if(!g)return;let T=new ta(g),k=qe(a),D=qe(r),I=qe(o);for(let G of k)D.some(O=>O.value===G.id)&&T.attach(G,I.value===G.id);let C=a.subscribe(G=>{for(let x of G)T.updateSrc(x)}),P=()=>{let G=T.getCurrentShowingId();n(qe(r).find(x=>x.value===G))};g.textTracks.addEventListener("change",P),l=()=>{C(),T.detachAll(),g.textTracks.removeEventListener("change",P)}};yt(()=>t.subscribe(h)),Vn(m)};function uy(i){be(i,"svelte-dtyj47",".player-wrapper.svelte-dtyj47{position:absolute;width:100%;height:100%}.player-wrapper.svelte-dtyj47 .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-dtyj47{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-dtyj47,.video-container.svelte-dtyj47,.ads-container.svelte-dtyj47{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-dtyj47{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-dtyj47{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-dtyj47{transition:none}.ads-container.svelte-dtyj47{z-index:var(--ads-container-z-index);background:var(--black)}.settings-mobile.svelte-dtyj47{position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%}")}function nh(i){let e,t,n,o=i[48]&&oh(i),r=i[49]&&rh(i);return{c(){o&&o.c(),e=j(),r&&r.c(),t=Qe()},m(s,a){o&&o.m(s,a),v(s,e,a),r&&r.m(s,a),v(s,t,a),n=!0},p(s,a){s[48]?o?(o.p(s,a),a[1]&131072&&d(o,1)):(o=oh(s),o.c(),d(o,1),o.m(e.parentNode,e)):o&&(ae(),p(o,1,1,()=>{o=null}),ue()),s[49]?r?(r.p(s,a),a[1]&262144&&d(r,1)):(r=rh(s),r.c(),d(r,1),r.m(t.parentNode,t)):r&&(ae(),p(r,1,1,()=>{r=null}),ue())},i(s){n||(d(o),d(r),n=!0)},o(s){p(o),p(r),n=!1},d(s){s&&(b(e),b(t)),o&&o.d(s),r&&r.d(s)}}}function oh(i){let e,t;return e=new zf({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[105],handleSecondClick:i[137]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function rh(i){let e,t;return e=new zf({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[105],handleSecondClick:i[138]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function sh(i){let e,t;return e=new Ql({props:{thumbUrl:i[2],startTime:i[3]?.startTime}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),o[0]&8&&(r.startTime=n[3]?.startTime),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function lh(i){let e,t;return e=new Zr({props:{kind:"recover",thumbUrl:i[2]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function ah(i){let e,t;return e=new Zr({props:{kind:"record",thumbUrl:i[2]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function uh(i){let e,t,n;return t=new $s({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","ads-container svelte-dtyj47"),z(e,"hidden",i[39]!=="ads")},m(o,r){v(o,e,r),E(t,e,null),n=!0},p(o,r){let s={};r[0]&128&&(s.adsSlotId=o[7]),r[0]&256&&(s.adsParams=o[8]),r[0]&512&&(s.adsPreviewParam=o[9]),r[0]&1024&&(s.duration=o[10]),t.$set(s),(!n||r[1]&256)&&z(e,"hidden",o[39]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function ch(i){let e,t;return e=new X_({props:{title:i[16],thumb:i[17],isHide:!i[21]&&i[22]&&i[38],clickCloseIcon:i[139]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&65536&&(r.title=n[16]),o[0]&131072&&(r.thumb=n[17]),o[0]&6291456|o[1]&128&&(r.isHide=!n[21]&&n[22]&&n[38]),o[0]&536870912&&(r.clickCloseIcon=n[139]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function fh(i){let e,t;return e=new zl({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function dh(i){let e,t,n;return t=new Ws({props:{"aria-label":W("video360")}}),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","spherical-video-icon svelte-dtyj47")},m(o,r){v(o,e,r),E(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function mh(i){let e,t;return e=new jl({props:{thumbUrl:i[2],chromecastDeviceName:i[56]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),o[1]&33554432&&(r.chromecastDeviceName=n[56]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function ph(i){let e,t;return e=new Kl({props:{shifted:i[32],captions:i[58],position:i[34],playerSize:i[35],isMobile:!0}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o[1]&2&&(r.shifted=n[32]),o[1]&134217728&&(r.captions=n[58]),o[1]&8&&(r.position=n[34]),o[1]&16&&(r.playerSize=n[35]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function _h(i){let e,t,n,o,r;return t=new Gl({}),{c(){e=S("div"),M(t.$$.fragment)},m(s,a){v(s,e,a),E(t,e,null),n=!0,o||(r=Te(e,"click",mt(i[106])),o=!0)},p:me,i(s){n||(d(t.$$.fragment,s),n=!0)},o(s){p(t.$$.fragment,s),n=!1},d(s){s&&b(e),A(t),o=!1,r()}}}function hh(i){let e,t,n,o;function r(l){i[140](l)}function s(l){i[141](l)}let a={bottomHidden:i[39]==="thumb"||i[39]==="LiveWaitingStart"||i[39]==="LiveWaitingRecover"||i[39]==="LiveWaitingRecord"||i[39]==="ads",showControls:i[32],bottomNoSmooth:i[50],isAds:i[39]==="ads",canRewindLive:i[5]&&i[59]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showAutoplayNext:i[22],showNextPrevButtons:i[23],nextButtonActive:i[14],prevButtonActive:i[15],isOneVideoPlaylist:i[18],customFullscreenSupported:i[45],endScreenShown:i[30],toggleFullscreen:i[103],seekToInteractive:i[24],playPrevChapter:i[25],onDisabledPlayPrevChapterClick:i[109],onDisabledSeekToInteractiveClick:i[110]};return i[42]!==void 0&&(a.playerControlsWrapperRef=i[42]),i[43]!==void 0&&(a.playerControlsRef=i[43]),e=new Ul({props:a}),ve.push(()=>ze(e,"playerControlsWrapperRef",r)),ve.push(()=>ze(e,"playerControlsRef",s)),{c(){M(e.$$.fragment)},m(l,u){E(e,l,u),o=!0},p(l,u){let c={};u[1]&256&&(c.bottomHidden=l[39]==="thumb"||l[39]==="LiveWaitingStart"||l[39]==="LiveWaitingRecover"||l[39]==="LiveWaitingRecord"||l[39]==="ads"),u[1]&2&&(c.showControls=l[32]),u[1]&524288&&(c.bottomNoSmooth=l[50]),u[1]&256&&(c.isAds=l[39]==="ads"),u[0]&32|u[1]&268435456&&(c.canRewindLive=l[5]&&l[59]!==0),u[0]&2048&&(c.logoClickable=l[11]),u[0]&4096&&(c.logoHidden=l[12]),u[0]&8192&&(c.logoTargetUrl=l[13]),u[0]&4194304&&(c.showAutoplayNext=l[22]),u[0]&8388608&&(c.showNextPrevButtons=l[23]),u[0]&16384&&(c.nextButtonActive=l[14]),u[0]&32768&&(c.prevButtonActive=l[15]),u[0]&262144&&(c.isOneVideoPlaylist=l[18]),u[1]&16384&&(c.customFullscreenSupported=l[45]),u[0]&1073741824&&(c.endScreenShown=l[30]),u[0]&16777216&&(c.seekToInteractive=l[24]),u[0]&33554432&&(c.playPrevChapter=l[25]),!t&&u[1]&2048&&(t=!0,c.playerControlsWrapperRef=l[42],Ue(()=>t=!1)),!n&&u[1]&4096&&(n=!0,c.playerControlsRef=l[43],Ue(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){A(e,l)}}}function gh(i){let e,t,n,o;function r(a){i[142](a)}let s={supportLink:i[19],returnFocus:jo.noop};return i[27]!==void 0&&(s.ref=i[27]),t=new ea({props:s}),ve.push(()=>ze(t,"ref",r)),{c(){e=S("div"),M(t.$$.fragment),f(e,"class","settings-mobile svelte-dtyj47")},m(a,l){v(a,e,l),E(t,e,null),o=!0},p(a,l){let u={};l[0]&524288&&(u.supportLink=a[19]),!n&&l[0]&134217728&&(n=!0,u.ref=a[27],Ue(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&b(e),A(t)}}}function bh(i){let e,t;return e=new Fr({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function vh(i){let e,t;return e=new sl({}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function yh(i){let e,t,n=i[5]&&i[83]&&!i[53].has("TIMELINE"),o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C,P,G;e=new Yl({props:{hidden:i[39]!=="thumb"||i[37]||i[94]&&i[4],thumbUrl:i[2],startVideo:i[26]}});let x=n&&nh(i),O=i[39]==="LiveWaitingStart"&&sh(i),$=i[39]==="LiveWaitingRecover"&&lh(i),le=i[39]==="LiveWaitingRecord"&&ah(i),K=i[6]&&i[20]&&uh(i),ee=i[30]&&i[16]&&i[17]&&ch(i),H=i[54]&&fh(i),J=i[55]&&dh(i),ke=i[40]&&mh(i),q=i[57].value!=="off"&&ph(i),ne=i[37]&&_h(i),F=i[20]&&hh(i),_e=i[31]&&gh(i);D=new tl({props:{isLive:i[60],isHidden:!i[46],isPlaying:i[51],position:i[34],duration:i[33]}});let oe=i[44]&&bh(i),Q=i[61]&&vh(i);return{c(){M(e.$$.fragment),t=j(),x&&x.c(),o=j(),O&&O.c(),r=j(),$&&$.c(),s=j(),le&&le.c(),a=j(),K&&K.c(),l=j(),ee&&ee.c(),u=j(),H&&H.c(),c=j(),J&&J.c(),m=j(),ke&&ke.c(),h=j(),q&&q.c(),y=j(),ne&&ne.c(),g=j(),F&&F.c(),T=j(),_e&&_e.c(),k=j(),M(D.$$.fragment),I=j(),oe&&oe.c(),C=j(),Q&&Q.c(),P=Qe()},m(Z,se){E(e,Z,se),v(Z,t,se),x&&x.m(Z,se),v(Z,o,se),O&&O.m(Z,se),v(Z,r,se),$&&$.m(Z,se),v(Z,s,se),le&&le.m(Z,se),v(Z,a,se),K&&K.m(Z,se),v(Z,l,se),ee&&ee.m(Z,se),v(Z,u,se),H&&H.m(Z,se),v(Z,c,se),J&&J.m(Z,se),v(Z,m,se),ke&&ke.m(Z,se),v(Z,h,se),q&&q.m(Z,se),v(Z,y,se),ne&&ne.m(Z,se),v(Z,g,se),F&&F.m(Z,se),v(Z,T,se),_e&&_e.m(Z,se),v(Z,k,se),E(D,Z,se),v(Z,I,se),oe&&oe.m(Z,se),v(Z,C,se),Q&&Q.m(Z,se),v(Z,P,se),G=!0},p(Z,se){let Ze={};se[0]&16|se[1]&320&&(Ze.hidden=Z[39]!=="thumb"||Z[37]||Z[94]&&Z[4]),se[0]&4&&(Ze.thumbUrl=Z[2]),se[0]&67108864&&(Ze.startVideo=Z[26]),e.$set(Ze),se[0]&32|se[1]&4194304&&(n=Z[5]&&Z[83]&&!Z[53].has("TIMELINE")),n?x?(x.p(Z,se),se[0]&32|se[1]&4194304&&d(x,1)):(x=nh(Z),x.c(),d(x,1),x.m(o.parentNode,o)):x&&(ae(),p(x,1,1,()=>{x=null}),ue()),Z[39]==="LiveWaitingStart"?O?(O.p(Z,se),se[1]&256&&d(O,1)):(O=sh(Z),O.c(),d(O,1),O.m(r.parentNode,r)):O&&(ae(),p(O,1,1,()=>{O=null}),ue()),Z[39]==="LiveWaitingRecover"?$?($.p(Z,se),se[1]&256&&d($,1)):($=lh(Z),$.c(),d($,1),$.m(s.parentNode,s)):$&&(ae(),p($,1,1,()=>{$=null}),ue()),Z[39]==="LiveWaitingRecord"?le?(le.p(Z,se),se[1]&256&&d(le,1)):(le=ah(Z),le.c(),d(le,1),le.m(a.parentNode,a)):le&&(ae(),p(le,1,1,()=>{le=null}),ue()),Z[6]&&Z[20]?K?(K.p(Z,se),se[0]&1048640&&d(K,1)):(K=uh(Z),K.c(),d(K,1),K.m(l.parentNode,l)):K&&(ae(),p(K,1,1,()=>{K=null}),ue()),Z[30]&&Z[16]&&Z[17]?ee?(ee.p(Z,se),se[0]&1073938432&&d(ee,1)):(ee=ch(Z),ee.c(),d(ee,1),ee.m(u.parentNode,u)):ee&&(ae(),p(ee,1,1,()=>{ee=null}),ue()),Z[54]?H?se[1]&8388608&&d(H,1):(H=fh(Z),H.c(),d(H,1),H.m(c.parentNode,c)):H&&(ae(),p(H,1,1,()=>{H=null}),ue()),Z[55]?J?se[1]&16777216&&d(J,1):(J=dh(Z),J.c(),d(J,1),J.m(m.parentNode,m)):J&&(ae(),p(J,1,1,()=>{J=null}),ue()),Z[40]?ke?(ke.p(Z,se),se[1]&512&&d(ke,1)):(ke=mh(Z),ke.c(),d(ke,1),ke.m(h.parentNode,h)):ke&&(ae(),p(ke,1,1,()=>{ke=null}),ue()),Z[57].value!=="off"?q?(q.p(Z,se),se[1]&67108864&&d(q,1)):(q=ph(Z),q.c(),d(q,1),q.m(y.parentNode,y)):q&&(ae(),p(q,1,1,()=>{q=null}),ue()),Z[37]?ne?(ne.p(Z,se),se[1]&64&&d(ne,1)):(ne=_h(Z),ne.c(),d(ne,1),ne.m(g.parentNode,g)):ne&&(ae(),p(ne,1,1,()=>{ne=null}),ue()),Z[20]?F?(F.p(Z,se),se[0]&1048576&&d(F,1)):(F=hh(Z),F.c(),d(F,1),F.m(T.parentNode,T)):F&&(ae(),p(F,1,1,()=>{F=null}),ue()),Z[31]?_e?(_e.p(Z,se),se[1]&1&&d(_e,1)):(_e=gh(Z),_e.c(),d(_e,1),_e.m(k.parentNode,k)):_e&&(ae(),p(_e,1,1,()=>{_e=null}),ue());let Je={};se[1]&536870912&&(Je.isLive=Z[60]),se[1]&32768&&(Je.isHidden=!Z[46]),se[1]&1048576&&(Je.isPlaying=Z[51]),se[1]&8&&(Je.position=Z[34]),se[1]&4&&(Je.duration=Z[33]),D.$set(Je),Z[44]?oe?se[1]&8192&&d(oe,1):(oe=bh(Z),oe.c(),d(oe,1),oe.m(C.parentNode,C)):oe&&(ae(),p(oe,1,1,()=>{oe=null}),ue()),Z[61]?Q?se[1]&1073741824&&d(Q,1):(Q=vh(Z),Q.c(),d(Q,1),Q.m(P.parentNode,P)):Q&&(ae(),p(Q,1,1,()=>{Q=null}),ue())},i(Z){G||(d(e.$$.fragment,Z),d(x),d(O),d($),d(le),d(K),d(ee),d(H),d(J),d(ke),d(q),d(ne),d(F),d(_e),d(D.$$.fragment,Z),d(oe),d(Q),G=!0)},o(Z){p(e.$$.fragment,Z),p(x),p(O),p($),p(le),p(K),p(ee),p(H),p(J),p(ke),p(q),p(ne),p(F),p(_e),p(D.$$.fragment,Z),p(oe),p(Q),G=!1},d(Z){Z&&(b(t),b(o),b(r),b(s),b(a),b(l),b(u),b(c),b(m),b(h),b(y),b(g),b(T),b(k),b(I),b(C),b(P)),A(e,Z),x&&x.d(Z),O&&O.d(Z),$&&$.d(Z),le&&le.d(Z),K&&K.d(Z),ee&&ee.d(Z),H&&H.d(Z),J&&J.d(Z),ke&&ke.d(Z),q&&q.d(Z),ne&&ne.d(Z),F&&F.d(Z),_e&&_e.d(Z),A(D,Z),oe&&oe.d(Z),Q&&Q.d(Z)}}}function cy(i){let e,t,n,o,r,s=i[52],a,l,u,c,m,h,y=yh(i);return{c(){e=S("div"),t=S("div"),n=S("div"),r=j(),y.c(),a=j(),l=S("div"),f(n,"class","video-container svelte-dtyj47"),f(n,"style",o=`transform: rotate(${i[36]}deg) scale(${i[47]})`),f(n,"data-testid","video-container"),f(n,"data-is-playing",i[51]),z(n,"fast-rotate",!i[1].isSmoothVideoRotate),f(t,"class","video-wrapper svelte-dtyj47"),z(t,"hidden",i[39]!=="video"),f(l,"class","overlay-container"),f(e,"class","player-wrapper svelte-dtyj47"),f(e,"role","region"),f(e,"aria-label",u=W("aria_label_video_player")),f(e,"tabindex","-1")},m(g,T){v(g,e,T),_(e,t),_(t,n),i[136](n),_(e,r),y.m(e,null),_(e,a),_(e,l),i[143](l),i[144](e),c=!0,m||(h=[Te(window,"blur",i[104]),Te(t,"click",ii(i[105])),Te(e,"click",i[107],!0),Te(e,"focusin",i[108],!0)],m=!0)},p(g,T){(!c||T[1]&65568&&o!==(o=`transform: rotate(${g[36]}deg) scale(${g[47]})`))&&f(n,"style",o),(!c||T[1]&1048576)&&f(n,"data-is-playing",g[51]),(!c||T[0]&2)&&z(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!c||T[1]&256)&&z(t,"hidden",g[39]!=="video"),T[1]&2097152&&R(s,s=g[52])?(ae(),p(y,1,1,me),ue(),y=yh(g),y.c(),d(y,1),y.m(e,a)):y.p(g,T)},i(g){c||(d(y),c=!0)},o(g){p(y),c=!1},d(g){g&&b(e),i[136](null),y.d(g),i[143](null),i[144](null),m=!1,st(h)}}}function fy(i,e,t){let n,o,r,s,a,l,u,c,m,h,y,g,T,k,D,I,C,P,G,x,O,$,le,K,ee,H,J,ke,q,ne,F,_e,oe,Q,Z,se,Ze,Je,{store:Pe}=e,{uiConfig:Se}=e,{thumbUrl:Ae}=e,{videoContainer:We}=e,{interactiveContainer:X}=e,{live:he}=e,{autoplay:Ie}=e,{canRewindLive:Ge}=e,{showAds:tt}=e,{adsSlotId:it=void 0}=e,{adsParams:rt=void 0}=e,{adsPreviewParam:$e=void 0}=e,{duration:pe=void 0}=e,{logoClickable:Ee}=e,{logoHidden:Me}=e,{logoTargetUrl:Xe=""}=e,{nextButtonActive:Ye=!1}=e,{prevButtonActive:Oe=!1}=e,{endScreenVideoTitle:fe=void 0}=e,{endScreenVideoThumb:ct=void 0}=e,{isOneVideoPlaylist:ht=!1}=e,{supportLink:gt}=e,{shadowRootContainer:bt=void 0}=e,{outerContainerRef:Fe=void 0}=e,{showMiniTimer:wt=!1}=e,{fullScreenTarget:Ot=void 0}=e,{playerStarted:Ut=!1}=e,{showEndScreen:Qt}=e,{showAutoplayNext:Ht}=e,{showNextPrevButtons:lt}=e,{seekToInteractive:Tt}=e,{playPrevChapter:Mt}=e,{firstStart:Lt}=e,{seekTime:yi}=e,Kt=Pe.getLogger().createComponentLog("Root component"),ye=Pe.interfaceLanguage$;V(i,ye,ie=>t(52,q=ie));let Ft=Pe.state.playbackState$;V(i,Ft,ie=>t(133,ee=ie));let Rt=Pe.ads.playbackState;V(i,Rt,ie=>t(134,H=ie));let Zt=Pe.state.positionWithScrubbing$;V(i,Zt,ie=>t(34,l=ie));let xt=Pe.state.duration$;V(i,xt,ie=>t(33,a=ie));let Pt=Pe.playerPhase;V(i,Pt,ie=>t(39,O=ie));let Vt=Pe.ui.isFullscreen;V(i,Vt,ie=>t(150,c=ie));let ki=Pe.ui.controlsVisible;V(i,ki,ie=>t(32,r=ie));let oi=Pe.ui.interactiveHideMobileControls;V(i,oi,ie=>t(125,g=ie));let wi=Pe.ui.settingsMenu.visible$;V(i,wi,ie=>t(31,o=ie));let Li=Pe.ui.settingsMenu.openedByBtnKeyboard$;V(i,Li,ie=>t(123,n=ie));let ui=Pe.ui.scrubbingInProgress;V(i,ui,ie=>t(126,k=ie));let _i=Pe.ui.debugPanelVisible;V(i,_i,ie=>t(61,Je=ie));let hi=Pe.state.isLoaderVisible;V(i,hi,ie=>t(135,J=ie));let Bt=Pe.state.isEnded$;V(i,Bt,ie=>t(128,C=ie));let Fi=Pe.state.chromecastConnected$;V(i,Fi,ie=>t(40,$=ie));let Nt=Pe.state.chromecastDeviceName$;V(i,Nt,ie=>t(56,oe=ie));let Yt=Pe.ads.postrollPassed;V(i,Yt,ie=>t(129,P=ie));let xi=Pe.ui.mobileUnmuteButtonExpanded,Ci=Pe.ui.mobileUnmuteButtonVisible,Si=Pe.state.isLive$;V(i,Si,ie=>t(60,Ze=ie));let Ti=Pe.state.isPlaying$;V(i,Ti,ie=>t(51,ke=ie));let ge=Pe.state.isActiveLive$;V(i,ge,ie=>t(124,u=ie));let pt=Pe.state.isRewindableLive$,Hi=Pe.state.crashed$;V(i,Hi,ie=>t(37,I=ie));let pn=Pe.webApi.annotationsApi,gi=Pe.webApi.pictureInPictureApi,ci=Pe.state.videoSize$;V(i,ci,ie=>t(151,h=ie));let fi=Pe.state.currentSubtitle$;V(i,fi,ie=>t(57,Q=ie));let bi=Pe.state.currentSubtitleCaptions$;V(i,bi,ie=>t(58,Z=ie));let wn=Pe.state.duration$;V(i,wn,ie=>t(59,se=ie));let qi=Pe.state.graphIsOpened$;V(i,qi,ie=>t(132,K=ie));let _n=Pe.ui.playerSize;V(i,_n,ie=>t(35,m=ie));let ri=Pe.ui.is3DVideo;V(i,ri,ie=>t(54,F=ie));let Ri=Pe.ui.icon3DVideoVisible;V(i,Ri,ie=>t(55,_e=ie));let Ui=Pe.ui.rotateAlpha;V(i,Ui,ie=>t(36,T=ie));let $i=Pe.state.isInteractive,Vi=Pe.state.isInteractiveTime$;V(i,Vi,ie=>t(127,D=ie));let hn=Pe.state.isInteractiveExpectation$;V(i,hn,ie=>t(131,le=ie));let Xt=Pe.state.hasInteractiveBranches,On=Pe.ui.controls.disabledControls$;V(i,On,ie=>t(53,ne=ie));let Ii=Pe.ui.touched;V(i,Ii,ie=>t(130,x=ie));let en=Pe.ui.overlayContainer$,tn=Pe.ui.autoplayNextEnabled$;V(i,tn,ie=>t(38,G=ie));let nn=Pe.state.loadedMetadata$;V(i,nn,ie=>t(149,s=ie));let zi=Pe.actions.internal.closeSettingsMenu,Wi=Pe.callbacks?.onDisabledPlayPrevChapterClick,Pi=Pe.callbacks?.onDisabledSeekToInteractiveClick,vi,Bi,Jt,si,nt,Ei,qt,di,Ai,on=Ne(!1);V(i,on,ie=>t(50,y=ie));let gn,Mi=!1,Ki,$t=!1,je,bn=!0,rn,ji=!1,sn,Gi=!1,Yi;gi?.setContext(ds());let Kn=ie=>{clearTimeout(Ei),ie&&(Ci.set(!0),xi.set(!0),Ei=setTimeout(()=>{xi.set(!1)},Se.controls.collapseMobileUnmute),$i||mi(Se.controls.hideTimeoutMobile))};Pe.setUiCallbacks({onStarted:Kn});let Fn=()=>{clearTimeout(nt),t(118,Mi=!1),g&&oi.set(!1)},mi=ie=>{Fn(),t(118,Mi=!0),nt=setTimeout(()=>t(118,Mi=!1),ie);let vt=ie-100;gn=setTimeout(()=>{y&&on.set(!1)},vt>0?vt:ie)},xn=ri.subscribe(ie=>{Ri.set(ie),ie&&(clearTimeout(qt),qt=setTimeout(()=>Ri.set(!1),Se.controls.hide360IconTimeout))}),vn=async(ie=Fo())=>{if(ie&&!jo.clientChecker.isIOS){let vt=gs(),te=Ni(),In=jo.clientChecker.isSamsungBrowser&&vt===bt;ie=vt===te||In}if(ie){mi(Se.controls.hideTimeoutFullscreen);try{await gi?.remove()}catch(vt){Kt({message:String(vt)})}try{let vt=h?.width&&h?.height?h:m;await o1(vt)}catch(vt){Kt({message:String(vt)})}}Vt.set(ie),Pe.getAdmanWrapper().setFullscreen(ie),c?Pe.callbacks?.onFullscreenEnter?.():Pe.callbacks?.onFullscreenExit?.()},Cn=ie=>{let vt=ie;_n.set({width:vt.target.width,height:vt.target.height})};yt(()=>(Xs(vn),Se.features.annotationsInside&&pn?.init(vi),ur(gi)&&(gi?.assignPlayerContainer(vi),gi?.registryExternalEventHandlers({resize:Cn})),t(45,bn=!jo.clientChecker.isIphoneOrOldIpad),X&&We.parentElement?.insertBefore(X,We.nextSibling),()=>{clearTimeout(nt),clearTimeout(gn),clearTimeout(Ei),clearTimeout(qt),xn(),gi?.dispose(),Js(vn)}));let Sn=!0,ln=!0,yn=ie=>{let vt=l+(ie==="forward"?1:-1)*Se.controls.seekStepMobile/1e3;vt<0?(t(48,Sn=!1),vt=0):vt>=a&&(t(49,ln=!1),vt=a),t(120,$t=!0),yi(vt)},Ni=()=>{let ie=jo.clientChecker.isIOS||Se.features.fullscreenInternalTargetPlayerContainer||!Fe?vi:Fe,vt=ie.getRootNode(),te=vt instanceof ShadowRoot?vt.host:vt,In=Ot instanceof HTMLElement&&Ot.contains(te);return Se.allowChangingFullscreenTarget&&Ot&&In?Ot:ie},Qi=async()=>{try{if(Fo())await Zs(document),Kt({message:"exit fullscreen"});else{if(Kt({message:"request fullscreen"}),jo.clientChecker.isIOS&&!s)return;await Qs(Ni())}}catch(ie){Kt({message:String(ie)})}},Hn=()=>{zi()},to=()=>{if(o){Hn();return}if(!Ut){Lt(),mi(Se.controls.hideTimeoutCursor);return}t(120,$t=!1),r?Fn():mi(Se.controls.hideTimeoutMobile)},io=()=>{if(o){Hn();return}},ei=()=>{Ii.set(!0)},no=()=>{$i||(on.set(!0),mi(Se.controls.hideTimeoutCursor))},oo=ie=>{Wi&&(Wi(ie),mi(Se.controls.hideTimeoutMobile))},jn=ie=>{Pi&&(Pi(ie),mi(Se.controls.hideTimeoutMobile))};$_({fullScreenChangeHandler:vn,getFullscreenTarget:Ni}),ih({store:Pe,getFullscreenTarget:Ni});function ro(ie){ve[ie?"unshift":"push"](()=>{We=ie,t(0,We)})}let so=()=>yn("backward"),Gn=()=>yn("forward"),Yn=()=>t(29,ji=!0);function Tn(ie){Bi=ie,t(42,Bi)}function Qn(ie){Jt=ie,t(43,Jt)}function go(ie){si=ie,t(27,si)}function bo(ie){ve[ie?"unshift":"push"](()=>{Ai=ie,t(28,Ai)})}function Di(ie){ve[ie?"unshift":"push"](()=>{vi=ie,t(41,vi)})}return i.$$set=ie=>{"store"in ie&&t(111,Pe=ie.store),"uiConfig"in ie&&t(1,Se=ie.uiConfig),"thumbUrl"in ie&&t(2,Ae=ie.thumbUrl),"videoContainer"in ie&&t(0,We=ie.videoContainer),"interactiveContainer"in ie&&t(112,X=ie.interactiveContainer),"live"in ie&&t(3,he=ie.live),"autoplay"in ie&&t(4,Ie=ie.autoplay),"canRewindLive"in ie&&t(5,Ge=ie.canRewindLive),"showAds"in ie&&t(6,tt=ie.showAds),"adsSlotId"in ie&&t(7,it=ie.adsSlotId),"adsParams"in ie&&t(8,rt=ie.adsParams),"adsPreviewParam"in ie&&t(9,$e=ie.adsPreviewParam),"duration"in ie&&t(10,pe=ie.duration),"logoClickable"in ie&&t(11,Ee=ie.logoClickable),"logoHidden"in ie&&t(12,Me=ie.logoHidden),"logoTargetUrl"in ie&&t(13,Xe=ie.logoTargetUrl),"nextButtonActive"in ie&&t(14,Ye=ie.nextButtonActive),"prevButtonActive"in ie&&t(15,Oe=ie.prevButtonActive),"endScreenVideoTitle"in ie&&t(16,fe=ie.endScreenVideoTitle),"endScreenVideoThumb"in ie&&t(17,ct=ie.endScreenVideoThumb),"isOneVideoPlaylist"in ie&&t(18,ht=ie.isOneVideoPlaylist),"supportLink"in ie&&t(19,gt=ie.supportLink),"shadowRootContainer"in ie&&t(113,bt=ie.shadowRootContainer),"outerContainerRef"in ie&&t(114,Fe=ie.outerContainerRef),"showMiniTimer"in ie&&t(115,wt=ie.showMiniTimer),"fullScreenTarget"in ie&&t(116,Ot=ie.fullScreenTarget),"playerStarted"in ie&&t(20,Ut=ie.playerStarted),"showEndScreen"in ie&&t(21,Qt=ie.showEndScreen),"showAutoplayNext"in ie&&t(22,Ht=ie.showAutoplayNext),"showNextPrevButtons"in ie&&t(23,lt=ie.showNextPrevButtons),"seekToInteractive"in ie&&t(24,Tt=ie.seekToInteractive),"playPrevChapter"in ie&&t(25,Mt=ie.playPrevChapter),"firstStart"in ie&&t(26,Lt=ie.firstStart),"seekTime"in ie&&t(117,yi=ie.seekTime)},i.$$.update=()=>{i.$$.dirty[1]&320|i.$$.dirty[4]&3072&&t(44,di=(O==="video"&&J||O==="ads"&&H==="inactive")&&!I),i.$$.dirty[0]&268435456&&en.set(Ai),i.$$.dirty[4]&512&&t(119,Ki=ee!==kh.PlaybackState.PLAYING),i.$$.dirty[3]&100663296|i.$$.dirty[4]&402&&t(121,je=K||g||!Mi&&(C&&!!Xt||Ki&&le)),i.$$.dirty[0]&543359040|i.$$.dirty[1]&192|i.$$.dirty[4]&48&&t(30,sn=(Qt||Ht&&G)&&!!fe&&!!ct&&(tt&&P||!tt)&&C&&!I&&!ji),i.$$.dirty[0]&1073741824|i.$$.dirty[1]&833|i.$$.dirty[3]&503316480|i.$$.dirty[4]&20&&ki.set((Ki||o||k||$||!sn&&(C||Mi&&!$t))&&!je&&O==="video"&&!I),i.$$.dirty[0]&2|i.$$.dirty[1]&322|i.$$.dirty[3]&4194304|i.$$.dirty[4]&64&&t(46,rn=Se.features.thumbTimer&&wt&&O==="video"&&!r&&!I&&!$i&&(Se.hideThumbTimerAfterTouch&&!x||!Se.hideThumbTimerAfterTouch)),i.$$.dirty[0]&2|i.$$.dirty[3]&536870912|i.$$.dirty[4]&12&&(!k&&Gi&&!D&&mi(Se.controls.hideTimeoutMobile),t(122,Gi=k)),i.$$.dirty[0]&1|i.$$.dirty[1]&48&&t(47,Yi=We&&T%180?m.height/m.width:1),i.$$.dirty[1]&12|i.$$.dirty[4]&1&&(t(48,Sn=l>0),t(49,ln=!u&&l<a)),i.$$.dirty[0]&134217728|i.$$.dirty[1]&1|i.$$.dirty[3]&1073741824&&mo(si,o,n)},[We,Se,Ae,he,Ie,Ge,tt,it,rt,$e,pe,Ee,Me,Xe,Ye,Oe,fe,ct,ht,gt,Ut,Qt,Ht,lt,Tt,Mt,Lt,si,Ai,ji,sn,o,r,a,l,m,T,I,G,O,$,vi,Bi,Jt,di,bn,rn,Yi,Sn,ln,y,ke,q,ne,F,_e,oe,Q,Z,se,Ze,Je,ye,Ft,Rt,Zt,xt,Pt,Vt,ki,oi,wi,Li,ui,_i,hi,Bt,Fi,Nt,Yt,Si,Ti,ge,pt,Hi,ci,fi,bi,wn,qi,_n,ri,Ri,Ui,$i,Vi,hn,On,Ii,tn,nn,on,yn,Qi,Hn,to,io,ei,no,oo,jn,Pe,X,bt,Fe,wt,Ot,yi,Mi,Ki,$t,je,Gi,n,u,g,k,D,C,P,x,le,K,ee,H,J,ro,so,Gn,Yn,Tn,Qn,go,bo,Di]}var Kf=class extends B{constructor(e){super(),N(this,e,fy,cy,R,{store:111,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:112,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,nextButtonActive:14,prevButtonActive:15,endScreenVideoTitle:16,endScreenVideoThumb:17,isOneVideoPlaylist:18,supportLink:19,shadowRootContainer:113,outerContainerRef:114,showMiniTimer:115,fullScreenTarget:116,playerStarted:20,showEndScreen:21,showAutoplayNext:22,showNextPrevButtons:23,seekToInteractive:24,playPrevChapter:25,firstStart:26,seekTime:117},uy,[-1,-1,-1,-1,-1,-1])}},wh=Kf;function dy(i){be(i,"svelte-zbipwr",`.root.svelte-zbipwr{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0, 0, 0, 0.40);--white-alpha-24:rgba(255, 255, 255, 0.24);--white-alpha-72:rgba(255, 255, 255, 0.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left:4px;--focused:var(--white);--focused-element-shadow:inset 0 0 0 2px var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0, 0, 0, 0.5);--big-play-hover-bg-color:rgba(0, 0, 0, 0.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:rgba(92, 156, 230, 1);--slider-height:5px;--slider-video-episode-gap:1.5px;--slider-radius:calc(var(--slider-height) / 2);--slider-handle-size:13px;--slider-bg:rgba(255, 255, 255, 0.4);--slider-loaded-bg:rgba(255, 255, 255, 0.4);--slider-filled-bg:var(--white);--slider-filled-active-live-bg:var(--red);--slider-filled-ads:rgba(103, 165, 235, 1);--slider-disabled-color:rgba(248, 248, 248, 0.31);--controls-gradient:linear-gradient(
35
35
  180deg,
36
36
  rgba(0, 0, 0, 0.00) 0%,
37
37
  rgba(0, 0, 0, 0.01) 6.67%,
@@ -49,5 +49,5 @@
49
49
  rgba(0, 0, 0, 0.96) 86.67%,
50
50
  rgba(0, 0, 0, 0.99) 93.33%,
51
51
  #000 100%
52
- );--timeline-preview-shadow:rgba(0, 0, 0, 0.08);--timeline-preview-bg:rgba(34, 34, 34, 1);--settings-bg:rgba(0, 0, 0, 0.72);--settings-item-bg-hover:rgba(255, 255, 255, 0.08);--settings-radius:8px;--mobile-settings-bg:#2C2D2E;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--end-screen-mobile-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--settings-menu-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;background:var(--black)}*{-webkit-tap-highlight-color:transparent}button{border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}svg:not(.interactiveContainer svg){pointer-events:none}*:focus, *:focus-visible{outline:none}*:focus-visible{box-shadow:var(--focused-element-shadow)}.hidden{visibility:hidden;opacity:0}.overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index)}.out-of-view{position:absolute !important;left:-1000vh !important}.icon.icon-error-stub{display:flex;justify-content:center;align-items:center}`)}function dy(i){let e,t,n,o;function r(l){i[61](l)}function s(l){i[62](l)}let a={store:i[1],uiConfig:i[34],title:i[2],thumbUrl:i[3],interactiveContainer:i[4],live:i[5],autoplay:i[6],canRewindLive:i[7],showAds:i[8],adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12],logoClickable:i[13],logoHidden:i[14],logoTargetUrl:i[35],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[33],seekToInteractive:i[26],playPrevChapter:i[27],firstStart:i[37],showEndScreen:i[28],showNextPrevButtons:i[30]};return i[32]!==void 0&&(a.videoContainer=i[32]),i[0]!==void 0&&(a.keyboardControls=i[0]),e=new G_({props:a}),ve.push(()=>We(e,"videoContainer",r)),ve.push(()=>We(e,"keyboardControls",s)),{c(){M(e.$$.fragment)},m(l,u){E(e,l,u),o=!0},p(l,u){let c={};u[0]&2&&(c.store=l[1]),u[0]&4&&(c.title=l[2]),u[0]&8&&(c.thumbUrl=l[3]),u[0]&16&&(c.interactiveContainer=l[4]),u[0]&32&&(c.live=l[5]),u[0]&64&&(c.autoplay=l[6]),u[0]&128&&(c.canRewindLive=l[7]),u[0]&256&&(c.showAds=l[8]),u[0]&512&&(c.adsSlotId=l[9]),u[0]&1024&&(c.adsParams=l[10]),u[0]&2048&&(c.adsPreviewParam=l[11]),u[0]&4096&&(c.duration=l[12]),u[0]&8192&&(c.logoClickable=l[13]),u[0]&16384&&(c.logoHidden=l[14]),u[0]&65536&&(c.nextButtonActive=l[16]),u[0]&131072&&(c.prevButtonActive=l[17]),u[0]&262144&&(c.endScreenVideoTitle=l[18]),u[0]&524288&&(c.endScreenVideoThumb=l[19]),u[0]&1048576&&(c.isOneVideoPlaylist=l[20]),u[0]&2097152&&(c.supportLink=l[21]),u[0]&4194304&&(c.shadowRootContainer=l[22]),u[0]&8388608&&(c.outerContainerRef=l[23]),u[0]&16777216&&(c.fullScreenTarget=l[24]),u[0]&33554432&&(c.showMiniTimer=l[25]),u[1]&4&&(c.playerStarted=l[33]),u[0]&67108864&&(c.seekToInteractive=l[26]),u[0]&134217728&&(c.playPrevChapter=l[27]),u[0]&268435456&&(c.showEndScreen=l[28]),u[0]&1073741824&&(c.showNextPrevButtons=l[30]),!t&&u[1]&2&&(t=!0,c.videoContainer=l[32],ze(()=>t=!1)),!n&&u[0]&1&&(n=!0,c.keyboardControls=l[0],ze(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){A(e,l)}}}function my(i){let e,t,n;function o(s){i[60](s)}let r={store:i[1],uiConfig:i[34],thumbUrl:i[3],interactiveContainer:i[4],live:i[5],autoplay:i[6],canRewindLive:i[7],showAds:i[8],adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12],logoClickable:i[13],logoHidden:i[14],logoTargetUrl:i[35],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[33],seekToInteractive:i[26],playPrevChapter:i[27],firstStart:i[37],seekTime:i[31],showEndScreen:i[28],showAutoplayNext:i[29],showNextPrevButtons:i[30]};return i[32]!==void 0&&(r.videoContainer=i[32]),e=new wh({props:r}),ve.push(()=>We(e,"videoContainer",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[0]&2&&(l.store=s[1]),a[0]&8&&(l.thumbUrl=s[3]),a[0]&16&&(l.interactiveContainer=s[4]),a[0]&32&&(l.live=s[5]),a[0]&64&&(l.autoplay=s[6]),a[0]&128&&(l.canRewindLive=s[7]),a[0]&256&&(l.showAds=s[8]),a[0]&512&&(l.adsSlotId=s[9]),a[0]&1024&&(l.adsParams=s[10]),a[0]&2048&&(l.adsPreviewParam=s[11]),a[0]&4096&&(l.duration=s[12]),a[0]&8192&&(l.logoClickable=s[13]),a[0]&16384&&(l.logoHidden=s[14]),a[0]&65536&&(l.nextButtonActive=s[16]),a[0]&131072&&(l.prevButtonActive=s[17]),a[0]&262144&&(l.endScreenVideoTitle=s[18]),a[0]&524288&&(l.endScreenVideoThumb=s[19]),a[0]&1048576&&(l.isOneVideoPlaylist=s[20]),a[0]&2097152&&(l.supportLink=s[21]),a[0]&4194304&&(l.shadowRootContainer=s[22]),a[0]&8388608&&(l.outerContainerRef=s[23]),a[0]&16777216&&(l.fullScreenTarget=s[24]),a[0]&33554432&&(l.showMiniTimer=s[25]),a[1]&4&&(l.playerStarted=s[33]),a[0]&67108864&&(l.seekToInteractive=s[26]),a[0]&134217728&&(l.playPrevChapter=s[27]),a[0]&268435456&&(l.showEndScreen=s[28]),a[0]&536870912&&(l.showAutoplayNext=s[29]),a[0]&1073741824&&(l.showNextPrevButtons=s[30]),!t&&a[1]&2&&(t=!0,l.videoContainer=s[32],ze(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function py(i){let e,t,n,o,r=[my,dy],s=[];function a(l,u){return l[15]?0:1}return t=a(i,[-1,-1,-1]),n=s[t]=r[t](i),{c(){e=S("div"),n.c(),f(e,"class","root svelte-zbipwr")},m(l,u){v(l,e,u),s[t].m(e,null),o=!0},p(l,u){let c=t;t=a(l,u),t===c?s[t].p(l,u):(le(),p(s[c],1,1,()=>{s[c]=null}),ae(),n=s[t],n?n.p(l,u):(n=s[t]=r[t](l),n.c()),d(n,1),n.m(e,null))},i(l){o||(d(n),o=!0)},o(l){p(n),o=!1},d(l){l&&b(e),s[t].d()}}}function _y(i,e,t){let n,{sources:o}=e,{store:r}=e,{microStoresRoot:s}=e,{videoConfig:a}=e,{uiConfig:l}=e,{title:u}=e,{thumbUrl:c}=e,{interactiveContainer:m}=e,{interactiveController:h}=e,{subtitles:y}=e,{live:g}=e,{preload:T}=e,{autoplay:k}=e,{volume:D=void 0}=e,{muted:I=void 0}=e,{fromTime:C}=e,{canRewindLive:P}=e,{showAds:G}=e,{adsSlotId:x=void 0}=e,{adsParams:O=void 0}=e,{adsPreviewParam:$=void 0}=e,{duration:se=void 0}=e,{logoClickable:K}=e,{logoHidden:te}=e,{isMobile:q}=e,{nextButtonActive:J=!1}=e,{prevButtonActive:ke=!1}=e,{endScreenVideoTitle:H=void 0}=e,{endScreenVideoThumb:ne=void 0}=e,{isOneVideoPlaylist:F=!1}=e,{supportLink:_e}=e,{shadowRootContainer:oe=void 0}=e,{outerContainerRef:Q=void 0}=e,{fullScreenTarget:Z=void 0}=e,{failoverHosts:de=void 0}=e,{showMiniTimer:qe=!1}=e,{saveRate:Je}=e,{seekToInteractive:Pe=Ao.noop}=e,{playPrevChapter:Se=Ao.noop}=e,{volumeMultiplier:Ae}=e,{showEndScreen:Ke}=e,{showAutoplayNext:X}=e,{showNextPrevButtons:he}=e,{keyboardControls:Ie=void 0}=e,{subscribers:Ye,stores:tt}=s;gd(l);let it=It(),rt=l.logoLink,$e=r.ui.debugPanelVisible,pe=r.ui.playerSize,Ee=r.state.isLive$;R(i,Ee,ye=>t(64,n=ye));let Xe=r.state.isInteractive&&Ao.clientChecker.isAndroid,Qe,Oe=null,ce=!1;r.getAdmanWrapper().init({switchFromAdsToVideo:r.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:r.actions.internal.switchFromVideoToAds,setMuted:r.actions.external.setMuted},r.ads,{isMobile:r.ui.isMobile,mobileUnmuteButtonVisible:r.ui.mobileUnmuteButtonVisible,vsid:r.vsid}),Ed(r,tt);let ct=(ye=!1)=>{t(33,ce=!0),ye?r.actions.external.firstStart(G):r.actions.internal.firstStart(G)};function ht(ye){let Ft=o||ye;Ft&&r.initVideo({container:Qe,sources:Ft,failoverHosts:de,subtitles:y,volumeMultiplier:Ae});let Vt=Ao.safeStorage.get(_s)==="true";$e.set(Vt),C>0&&r.actions.external.seekTime(C);let Zt=q?it.volumeDefault:D??Us()??it.volumeDefault,xt=I??Wd();if(r.actions.external.setVolume(Zt),r.actions.external.setMuted(xt),r.getAdmanWrapper().setInitialVolume(xt?0:Zt),it.features.trafficSaving){let Rt=jd();Rt&&r.actions.internal.setTrafficSavingEnabled(Rt)}if(it.features.saveRate&&Je){let Rt=Qd();Rt&&!n&&r.actions.internal.setPlaybackRate(Rt)}if(X){let Rt=Xd();Rt&&r.actions.internal.setAutoplayNextEnabled(Rt)}let Pt=zd(r.videoId);Pt&&r.actions.internal.setQuality(Pt),r.ui.isAutoplay.set(k),k?ct():T&&it.features.preload&&r.actions.internal.preload()}let gt=ye=>{if(window.ResizeObserver){let Ft,Vt;Oe=new ResizeObserver((0,Ao.throttleFn)(Zt=>{let xt=Zt[0];if(xt){if(xt.contentBoxSize){let Pt=Array.isArray(xt.contentBoxSize)?xt.contentBoxSize[0]:xt.contentBoxSize;Ft=Pt.inlineSize,Vt=Pt.blockSize}else xt.contentRect&&(Ft=xt.contentRect.width,Vt=xt.contentRect.height);pe.set({width:Ft,height:Vt})}},300)),Oe.observe(ye)}pe.set({width:ye.clientWidth,height:ye.clientHeight})},bt=()=>{document.hidden&&r.actions.external.stop()};vt(()=>{Xe&&document.addEventListener("visibilitychange",bt),gt(Qe);let ye=Ye.map(Vt=>Vt.init({store:r,microStores:tt,config:a,interactiveController:h}));if(g?.status==="upcoming"){r.actions.internal.setLiveWaitingStart(!0);return}if(g?.status==="waiting"){r.actions.internal.setLiveWaitingRecover(!0);return}if((g?.status==="finished"||g?.status==="postlive")&&!Object.keys(o||[]).length){r.actions.internal.setLiveWaitingRecord(!0);return}return ht(),()=>{Xe&&document.removeEventListener("visibilitychange",bt),Oe?.disconnect(),ye.forEach(Vt=>Vt.unsubscribe()),r.destroy()}});function Fe(){ce?r.actions.external.play():ct(!0)}function kt(){r.actions.external.pause()}function Ot(ye){r.actions.external.setMuted(ye)}function Ut(ye){q||ye>=0&&ye<=1&&r.actions.external.setVolume(ye)}function Qt(ye){r.actions.internal.seekTime(ye,Ch.SeekAction.UNKNOWN)}function Ht(ye){r.actions.external.seekEpisodeStartTime(ye)}function lt(){r.actions.external.returnFocusToEpisodes()}function St(ye){r.actions.external.setPlaybackRate(ye)}function Mt(ye){r.actions.external.setAutoQualityLimits(ye)}function Lt(ye){Qe=ye,t(32,Qe)}function yi(ye){Qe=ye,t(32,Qe)}function Kt(ye){Ie=ye,t(0,Ie)}return i.$$set=ye=>{"sources"in ye&&t(38,o=ye.sources),"store"in ye&&t(1,r=ye.store),"microStoresRoot"in ye&&t(39,s=ye.microStoresRoot),"videoConfig"in ye&&t(40,a=ye.videoConfig),"uiConfig"in ye&&t(41,l=ye.uiConfig),"title"in ye&&t(2,u=ye.title),"thumbUrl"in ye&&t(3,c=ye.thumbUrl),"interactiveContainer"in ye&&t(4,m=ye.interactiveContainer),"interactiveController"in ye&&t(42,h=ye.interactiveController),"subtitles"in ye&&t(43,y=ye.subtitles),"live"in ye&&t(5,g=ye.live),"preload"in ye&&t(44,T=ye.preload),"autoplay"in ye&&t(6,k=ye.autoplay),"volume"in ye&&t(45,D=ye.volume),"muted"in ye&&t(46,I=ye.muted),"fromTime"in ye&&t(47,C=ye.fromTime),"canRewindLive"in ye&&t(7,P=ye.canRewindLive),"showAds"in ye&&t(8,G=ye.showAds),"adsSlotId"in ye&&t(9,x=ye.adsSlotId),"adsParams"in ye&&t(10,O=ye.adsParams),"adsPreviewParam"in ye&&t(11,$=ye.adsPreviewParam),"duration"in ye&&t(12,se=ye.duration),"logoClickable"in ye&&t(13,K=ye.logoClickable),"logoHidden"in ye&&t(14,te=ye.logoHidden),"isMobile"in ye&&t(15,q=ye.isMobile),"nextButtonActive"in ye&&t(16,J=ye.nextButtonActive),"prevButtonActive"in ye&&t(17,ke=ye.prevButtonActive),"endScreenVideoTitle"in ye&&t(18,H=ye.endScreenVideoTitle),"endScreenVideoThumb"in ye&&t(19,ne=ye.endScreenVideoThumb),"isOneVideoPlaylist"in ye&&t(20,F=ye.isOneVideoPlaylist),"supportLink"in ye&&t(21,_e=ye.supportLink),"shadowRootContainer"in ye&&t(22,oe=ye.shadowRootContainer),"outerContainerRef"in ye&&t(23,Q=ye.outerContainerRef),"fullScreenTarget"in ye&&t(24,Z=ye.fullScreenTarget),"failoverHosts"in ye&&t(48,de=ye.failoverHosts),"showMiniTimer"in ye&&t(25,qe=ye.showMiniTimer),"saveRate"in ye&&t(49,Je=ye.saveRate),"seekToInteractive"in ye&&t(26,Pe=ye.seekToInteractive),"playPrevChapter"in ye&&t(27,Se=ye.playPrevChapter),"volumeMultiplier"in ye&&t(50,Ae=ye.volumeMultiplier),"showEndScreen"in ye&&t(28,Ke=ye.showEndScreen),"showAutoplayNext"in ye&&t(29,X=ye.showAutoplayNext),"showNextPrevButtons"in ye&&t(30,he=ye.showNextPrevButtons),"keyboardControls"in ye&&t(0,Ie=ye.keyboardControls)},i.$$.update=()=>{i.$$.dirty[0]&32770&&r.ui.isMobile.set(q)},[Ie,r,u,c,m,g,k,P,G,x,O,$,se,K,te,q,J,ke,H,ne,F,_e,oe,Q,Z,qe,Pe,Se,Ke,X,he,Qt,Qe,ce,it,rt,Ee,ct,o,s,a,l,h,y,T,D,I,C,de,Je,Ae,ht,Fe,kt,Ot,Ut,Ht,lt,St,Mt,Lt,yi,Kt]}var jf=class extends B{constructor(e){super(),N(this,e,_y,py,V,{sources:38,store:1,microStoresRoot:39,videoConfig:40,uiConfig:41,title:2,thumbUrl:3,interactiveContainer:4,interactiveController:42,subtitles:43,live:5,preload:44,autoplay:6,volume:45,muted:46,fromTime:47,canRewindLive:7,showAds:8,adsSlotId:9,adsParams:10,adsPreviewParam:11,duration:12,logoClickable:13,logoHidden:14,isMobile:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:22,outerContainerRef:23,fullScreenTarget:24,failoverHosts:48,showMiniTimer:25,saveRate:49,seekToInteractive:26,playPrevChapter:27,volumeMultiplier:50,showEndScreen:28,showAutoplayNext:29,showNextPrevButtons:30,keyboardControls:0,initVideo:51,play:52,pause:53,setMuted:54,setVolume:55,seekTime:31,seekEpisodeStartTime:56,returnFocusToEpisodes:57,setPlaybackRate:58,setAutoQualityLimits:59},fy,[-1,-1,-1])}get sources(){return this.$$.ctx[38]}set sources(e){this.$$set({sources:e}),at()}get store(){return this.$$.ctx[1]}set store(e){this.$$set({store:e}),at()}get microStoresRoot(){return this.$$.ctx[39]}set microStoresRoot(e){this.$$set({microStoresRoot:e}),at()}get videoConfig(){return this.$$.ctx[40]}set videoConfig(e){this.$$set({videoConfig:e}),at()}get uiConfig(){return this.$$.ctx[41]}set uiConfig(e){this.$$set({uiConfig:e}),at()}get title(){return this.$$.ctx[2]}set title(e){this.$$set({title:e}),at()}get thumbUrl(){return this.$$.ctx[3]}set thumbUrl(e){this.$$set({thumbUrl:e}),at()}get interactiveContainer(){return this.$$.ctx[4]}set interactiveContainer(e){this.$$set({interactiveContainer:e}),at()}get interactiveController(){return this.$$.ctx[42]}set interactiveController(e){this.$$set({interactiveController:e}),at()}get subtitles(){return this.$$.ctx[43]}set subtitles(e){this.$$set({subtitles:e}),at()}get live(){return this.$$.ctx[5]}set live(e){this.$$set({live:e}),at()}get preload(){return this.$$.ctx[44]}set preload(e){this.$$set({preload:e}),at()}get autoplay(){return this.$$.ctx[6]}set autoplay(e){this.$$set({autoplay:e}),at()}get volume(){return this.$$.ctx[45]}set volume(e){this.$$set({volume:e}),at()}get muted(){return this.$$.ctx[46]}set muted(e){this.$$set({muted:e}),at()}get fromTime(){return this.$$.ctx[47]}set fromTime(e){this.$$set({fromTime:e}),at()}get canRewindLive(){return this.$$.ctx[7]}set canRewindLive(e){this.$$set({canRewindLive:e}),at()}get showAds(){return this.$$.ctx[8]}set showAds(e){this.$$set({showAds:e}),at()}get adsSlotId(){return this.$$.ctx[9]}set adsSlotId(e){this.$$set({adsSlotId:e}),at()}get adsParams(){return this.$$.ctx[10]}set adsParams(e){this.$$set({adsParams:e}),at()}get adsPreviewParam(){return this.$$.ctx[11]}set adsPreviewParam(e){this.$$set({adsPreviewParam:e}),at()}get duration(){return this.$$.ctx[12]}set duration(e){this.$$set({duration:e}),at()}get logoClickable(){return this.$$.ctx[13]}set logoClickable(e){this.$$set({logoClickable:e}),at()}get logoHidden(){return this.$$.ctx[14]}set logoHidden(e){this.$$set({logoHidden:e}),at()}get isMobile(){return this.$$.ctx[15]}set isMobile(e){this.$$set({isMobile:e}),at()}get nextButtonActive(){return this.$$.ctx[16]}set nextButtonActive(e){this.$$set({nextButtonActive:e}),at()}get prevButtonActive(){return this.$$.ctx[17]}set prevButtonActive(e){this.$$set({prevButtonActive:e}),at()}get endScreenVideoTitle(){return this.$$.ctx[18]}set endScreenVideoTitle(e){this.$$set({endScreenVideoTitle:e}),at()}get endScreenVideoThumb(){return this.$$.ctx[19]}set endScreenVideoThumb(e){this.$$set({endScreenVideoThumb:e}),at()}get isOneVideoPlaylist(){return this.$$.ctx[20]}set isOneVideoPlaylist(e){this.$$set({isOneVideoPlaylist:e}),at()}get supportLink(){return this.$$.ctx[21]}set supportLink(e){this.$$set({supportLink:e}),at()}get shadowRootContainer(){return this.$$.ctx[22]}set shadowRootContainer(e){this.$$set({shadowRootContainer:e}),at()}get outerContainerRef(){return this.$$.ctx[23]}set outerContainerRef(e){this.$$set({outerContainerRef:e}),at()}get fullScreenTarget(){return this.$$.ctx[24]}set fullScreenTarget(e){this.$$set({fullScreenTarget:e}),at()}get failoverHosts(){return this.$$.ctx[48]}set failoverHosts(e){this.$$set({failoverHosts:e}),at()}get showMiniTimer(){return this.$$.ctx[25]}set showMiniTimer(e){this.$$set({showMiniTimer:e}),at()}get saveRate(){return this.$$.ctx[49]}set saveRate(e){this.$$set({saveRate:e}),at()}get seekToInteractive(){return this.$$.ctx[26]}set seekToInteractive(e){this.$$set({seekToInteractive:e}),at()}get playPrevChapter(){return this.$$.ctx[27]}set playPrevChapter(e){this.$$set({playPrevChapter:e}),at()}get volumeMultiplier(){return this.$$.ctx[50]}set volumeMultiplier(e){this.$$set({volumeMultiplier:e}),at()}get showEndScreen(){return this.$$.ctx[28]}set showEndScreen(e){this.$$set({showEndScreen:e}),at()}get showAutoplayNext(){return this.$$.ctx[29]}set showAutoplayNext(e){this.$$set({showAutoplayNext:e}),at()}get showNextPrevButtons(){return this.$$.ctx[30]}set showNextPrevButtons(e){this.$$set({showNextPrevButtons:e}),at()}get keyboardControls(){return this.$$.ctx[0]}set keyboardControls(e){this.$$set({keyboardControls:e}),at()}get initVideo(){return this.$$.ctx[51]}get play(){return this.$$.ctx[52]}get pause(){return this.$$.ctx[53]}get setMuted(){return this.$$.ctx[54]}get setVolume(){return this.$$.ctx[55]}get seekTime(){return this.$$.ctx[31]}get seekEpisodeStartTime(){return this.$$.ctx[56]}get returnFocusToEpisodes(){return this.$$.ctx[57]}get setPlaybackRate(){return this.$$.ctx[58]}get setAutoQualityLimits(){return this.$$.ctx[59]}},Sh=jf;function hy(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","currentColor"),f(t,"d","M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function gy(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Gf=class extends B{constructor(e){super(),N(this,e,gy,hy,V,{})}},Th=Gf;function by(i){let e,t;return e=new Th({props:{style:i[0]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function vy(i,e,t){let n,{isWhite:o=!1}=e;return i.$$set=r=>{"isWhite"in r&&t(1,o=r.isWhite)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var Yf=class extends B{constructor(e){super(),N(this,e,vy,by,V,{isWhite:1})}},Ih=Yf;function yy(i){be(i,"svelte-1y9fytq",".playerStub.svelte-1y9fytq{width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.title.svelte-1y9fytq{position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}")}function Ph(i){let e,t;return{c(){e=S("div"),t=De(i[0]),f(e,"class","title svelte-1y9fytq")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&1&&je(t,n[0])},d(n){n&&b(e)}}}function Eh(i){let e,t;return e=new Ih({props:{isWhite:!!i[1]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isWhite=!!n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function ky(i){let e,t,n,o,r=i[0]&&Ph(i),s=(!i[0]||!i[1])&&Eh(i);return{c(){e=S("div"),r&&r.c(),t=j(),s&&s.c(),f(e,"class","playerStub svelte-1y9fytq"),f(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,l){v(a,e,l),r&&r.m(e,null),_(e,t),s&&s.m(e,null),o=!0},p(a,[l]){a[0]?r?r.p(a,l):(r=Ph(a),r.c(),r.m(e,t)):r&&(r.d(1),r=null),!a[0]||!a[1]?s?(s.p(a,l),l&3&&d(s,1)):(s=Eh(a),s.c(),d(s,1),s.m(e,null)):s&&(le(),p(s,1,1,()=>{s=null}),ae()),(!o||l&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&f(e,"style",n)},i(a){o||(d(s),o=!0)},o(a){p(s),o=!1},d(a){a&&b(e),r&&r.d(),s&&s.d()}}}function wy(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"thumbUrl"in r&&t(1,o=r.thumbUrl)},[n,o]}var Qf=class extends B{constructor(e){super(),N(this,e,wy,ky,V,{title:0,thumbUrl:1},yy)}},Ah=Qf;var pi=require("@vkontakte/videoplayer-shared"),oq=require("@vkontakte/videoplayer-core"),Fh=require("@vkontakte/videoplayer-statistics");var na=require("@vkontakte/videoplayer-shared"),ia=class{constructor(){this.subscription=new na.Subscription,this.logger=new na.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:t="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:t,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",t=>null],["seekbackward",t=>null],["seekforward",t=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(let[t,n]of e)try{navigator.mediaSession.setActionHandler?.(t,n)}catch{throw new Error(`The media session action "${t}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||this.subscription.add(e.state.positionExact$.subscribe(t=>{let n=Ue(e.state.currentPlaybackRate$),o=Ue(e.state.duration$);if(!(!isFinite(t)||!isFinite(o)))try{navigator.mediaSession.setPositionState?.({position:t,playbackRate:n,duration:o})}catch{this.log({message:`MediaSession setPositionState can't call with position: ${t} and duration: ${o}`})}}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var Jr=require("@vkontakte/videoplayer-shared");function Cy(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=L("svg"),a&&a.c(),t=L("g"),n=L("path"),o=L("path"),f(n,"d","m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"),f(o,"d","M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"),f(t,"fill","#fff"),Ce(e,u)},m(c,m){v(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),Ce(e,u=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&b(e),a&&a.d(c)}}}function Sy(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Zf=class extends B{constructor(e){super(),N(this,e,Sy,Cy,V,{})}},Mh=Zf;function Ty(i){be(i,"svelte-1pbsod4",".player-pip-dummy.svelte-1pbsod4{width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.player-pip-dummy.is-pip-api.svelte-1pbsod4{position:relative}.dummy-image.svelte-1pbsod4 svg{transform:scale(1.07143)}.dummy-image.desktop.svelte-1pbsod4{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.svelte-1pbsod4{font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center}")}function Iy(i){let e,t,n,o,r,s,a;return n=new Mh({}),{c(){e=S("div"),t=S("div"),M(n.$$.fragment),o=j(),r=S("span"),s=De(i[0]),f(t,"class","dummy-image svelte-1pbsod4"),z(t,"desktop",!i[1]),f(r,"class","title svelte-1pbsod4"),f(e,"class","player-pip-dummy svelte-1pbsod4"),z(e,"is-pip-api",i[2])},m(l,u){v(l,e,u),_(e,t),E(n,t,null),_(e,o),_(e,r),_(r,s),a=!0},p(l,[u]){(!a||u&2)&&z(t,"desktop",!l[1]),(!a||u&1)&&je(s,l[0])},i(l){a||(d(n.$$.fragment,l),a=!0)},o(l){p(n.$$.fragment,l),a=!1},d(l){l&&b(e),A(n)}}}function Py(i,e,t){let n,o,r=et(),s=!!r.webApi.pictureInPictureApi,a=r.interfaceLanguage$;R(i,a,c=>t(5,n=c));let l=r.ui.isMobile;R(i,l,c=>t(1,o=c));let u;return i.$$.update=()=>{i.$$.dirty&32&&t(0,u=n&&W("pip_dummy_title"))},[u,o,s,a,l,n]}var Xf=class extends B{constructor(e){super(),N(this,e,Py,Iy,V,{},Ty)}},Lh=Xf;var Ey=460,Ay=280,Ts=class{constructor(){this.info={isActive$:new Jr.ValueSubject(!1),type:1}}isSupported(){let{isEmbed:e}=(0,Jr.detectEmbed)();return"documentPictureInPicture"in window&&!Jr.clientChecker.isYandex&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:Ey,height:Ay,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(r=>[...r.cssRules].map(s=>s.cssText).join(" ")).filter(Boolean).join(`
53
- `),t=document.createElement("style");t.textContent=e;let n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(t),o.append(this.playerDomElement),this.playerDummyElement=new Lh({target:this.playerParentShadowRoot,context:this.svelteContext}),this.pipWindow?.document.body.append(n),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",r=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{documentPictureInPicture.window?.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function Vh(i){return i instanceof Ts}var oa=class{static getLatestSupportedVersion(){let e=new ar,t=new Ts;if(t.isSupported())return t;if(e.isSupported())return e}};function ra(i,e){let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let o of t)n[o]=e[o]??i[o]??void 0;return n}var Rh="Inner error. Unexpectedly root annotation container null reference exception",Bh="Annotation with such name already exists",Nh="Annotation with such name does not exist";var $r=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var es=require("@vkontakte/videoplayer-shared"),My="1",Ly=100,sa=class{constructor(){this.annotations=new Map;this.subscriptions=new es.Subscription}init(e){this.rootAnnotationsContainer=e;let t=(0,es.throttleFn)(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},Ly);this.subscriptions.add((0,es.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},t()})),this.mutationObserver=new MutationObserver(t),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,t){if(!this.rootAnnotationsContainer)throw new $r(Rh);if(this.annotations.has(e))throw new $r(Bh);t.style.zIndex=t.style.zIndex??My,t.style.position="absolute",this.rootAnnotationsContainer.append(t),this.annotations.set(e,t)}get(e){let t=this.annotations.get(e);if(!t)throw new $r(Nh);return t}remove(e){let t=this.get(e);this.annotations.delete(e)&&t.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,t,n){let o=e.offsetTop,r=e.offsetLeft,s=e.offsetWidth,a=e.offsetHeight;return o<0||r<0||r+s>t||o+a>n}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var gr=require("@vkontakte/videoplayer-shared"),Wn=class{init({store:e,microStores:t,interactiveController:n,config:o}){return(0,gr.assertNonNullable)(e),(0,gr.assertNonNullable)(t),(0,gr.assertNonNullable)(o),o.interactiveData&&(0,gr.assertNonNullable)(n),this.subscription=new gr.Subscription,this.subscription}};var Is=class extends Wn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...Ne(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(r=>{this.state$.set(r?!0:null)})),n}};var Ps=class extends Wn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...Ne(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{microStores:o,store:r}=t,{fakeIsPlaying$:s}=o,{isInteractiveExpectation$:a,isPlaying$:l}=r.state,{controlsVisible:u,isMobile:c}=r.ui,m=Ue(c),h=()=>m&&Ue(u);return n.add(u.subscribe(y=>{if(!m)return;let g=Ue(s);Ue(l)?this.state$.set(y):g!==null&&this.state$.set(!g||y)})),n.add(l.subscribe(y=>{this.state$.set(!y||h())})),n.add(s.subscribe(y=>{if(y===null)return;let g=Ue(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!y)})),n}};var Es=class extends Wn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Ne("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};var Dh=require("@vkontakte/videoplayer-shared"),Jf=Ne(!1),la=null,As=class extends Wn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Jf,set:(t,n=!1)=>{t!==Ue(Jf)&&(this.clearTimeout(),Jf.set(t),!t&&la&&(la=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(t){let n=super.init(t),{store:o,config:r}=t,{isInteractiveTime$:s,isPlaying$:a}=o.state,l=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(l.subscribe(m=>{Ue(s)&&m&&this.state$.set(!1)}));let c=r?.interactiveData||{tooltipHelpHintActive:!1};return n.add((0,Dh.combine)({isPlaying$:a,isInteractiveTime$:s,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:h,interactiveTimeIndicator:y})=>{if(!(!m||!y?.isDisplayed)){if(!h)return this.state$.set(!1);c.tooltipHelpHintActive&&la===null&&(la=!0,c.tooltipHelpHintActive=!1,this.state$.set(!0),o.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var aa=require("@vkontakte/videoplayer-shared");var Ms=class extends Wn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...Ne(null),toggle:aa.noop};this.checkIfShouldHide=t=>Uo(t,"s")}init(t){let n=super.init(t),{store:o,interactiveController:r}=t,s=o.ui.currentGridType$;return this.state$.toggle=()=>{if(this.checkIfShouldHide(Ue(s)))return;let a=Ue(this.state$),{isEnded$:l,playbackState$:u}=o.state,{disabledControls$:c}=o.ui.controls,m=Ue(l),h=Ue(u);a?(this.state$.set(!1),r?.toggleGraphView(!1),c.remove(Ea),!m&&this.graphMadePause&&o.actions.internal.play()):(this.graphMadePause=h==="playing",this.state$.set(!0),r?.toggleGraphView(!0),c.add(Ea),!m&&this.graphMadePause&&o.actions.internal.pause())},n.add((0,aa.combine)({graphIsOpened:this.state$,currentGridType:s}).subscribe(({graphIsOpened:a,currentGridType:l})=>{this.checkIfShouldHide(l)&&a&&(r?.toggleGraphView(!1),this.state$.set(!1))})),n}};var Oh=()=>[Is,Ps,Es,As,Ms].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var Vy={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:pi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:(0,pi.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},ua=class extends HTMLElement{constructor(){super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.internalsExposure=null;this.createOneStat=(t,n={})=>{let{albumId:o,statPlace:r,statUserSalt:s,statTrackCode:a,refreshStatAuthToken:l,autoplay:u,isMobile:c,refDomain:m,deviceId:h,interactiveData:y}=ra(this.videoConfig,n),g=y?.projectInfo?.pid,T=this.interactiveController?.state.isReplay$.getValue()??!1;T&&(this.prevIsid=void 0);let{unitedVideoId:k,isClip:D=!1}=t;if(this.uiConfig.features.statistics&&k)return new Fh.OneStat({movieId:k,albumId:o,place:r,trackCode:a,autoplay:(u&&!this.interactiveController)??!1,mobile:c,clip:D,refDomain:m,deviceId:h,...g&&(!this.isInited||T)&&{projectId:Number(g)}},{refreshAuthToken:l,userSalt:s,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})};this.logger=new pi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new pi.Subscription,this.graphMadePause=!1,window?.videoPlayerConfig?.debugLogs&&this.subscription.add(this.logger.log$.subscribe(t=>{console.log("%c player web component ","background:#77dd77;",`${t.component}`,t.message)}))}connectedCallback(){if(this.isInited)return;this.initPlayerRootContainers();let t=this.getAttribute("stub-title")??void 0,n=this.getAttribute("stub-thumb-url")??void 0;this.svelteStubComponent=new Ah({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){this.annotationsApi?.destroy(),this.mediaSessionApi?.destroy(),this.svelteRootComponent?.$destroy(),this.svelteStubComponent?.$destroy(),this.subscription.unsubscribe(),this.unsubscribePlayerPhaseSubscription?.(),this.interactiveController?.destroy(),this.internalsExposure?.destroy()}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(t){return this.store?.ui.controls.disabledControls$?.includes(t)||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){if(!this.videoConfig)return;let{albumId:r,statPlace:s,statAuthToken:a,preload:l,autoplay:u,volume:c,muted:m,fromTime:h,canRewindLive:y,supportLink:g,showAds:T,adsSlotId:k,adsParams:D={},adsPreviewParam:I,interfaceLanguage:C,isCyrillicRelatedInterface:P,logoClickable:G,logoHidden:x,isMobile:O,isAudioDisabled:$,isLiveCatchUpMode:se,fullScreenTarget:K,failoverHosts:te,canDownload:q,callbacks:J,interactiveData:ke,showThumbTimer:H,additionalButtons:ne=[],additionalSettingsMenuItems:F=[],additionalContextMenuItems:_e=[],repeat:oe,saveRate:Q,volumeMultiplier:Z,showEndScreen:de,showAutoplayNext:qe}=ra(this.videoConfig,n),{sources:Je,title:Pe,thumbUrl:Se,unitedVideoId:Ae,isClip:Ke=!1,duration:X,adsParams:he={},videoEpisodes:Ie,previewThumbsData:Ye,subtitles:tt,live:it}=t,rt={...D,...he},$e=this.getNextVideoInfo(),pe={sources:Je,title:Pe,thumbUrl:Se,subtitles:tt,unitedVideoId:Ae,isClip:Ke,live:it,albumId:r,statPlace:s,autoplay:u,muted:m,volume:c,fromTime:h,canRewindLive:y,showAds:T,adsSlotId:k,adsParams:rt,adsPreviewParam:I,duration:X,logoClickable:G,logoHidden:x,isMobile:O,repeat:oe,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:$e.nextVideoTitle,endScreenVideoThumb:$e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ee={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(pe)}`});let Me=this.interactiveController?.state.statistics$.getValue(),Xe=Me?.oneStat||this.createOneStat(t,n);Xe&&(this.statistics=new Ll(Xe,Me?.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new lr(this.uiConfig.sentry,{version:or,env:Hs},{movieId:Ae,albumId:r,place:s,autoplay:(u&&!this.interactiveController)??!1,mobile:O,clip:Ke}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...lr.getInstance()};let Oe=!!ke,ce=[],ct="tooltip_interactive_go_back_disabled_first";if(Oe&&this.interactiveController){let Fe=this.interactiveController.state.isInitialChapter$.getValue(),kt=this.interactiveController.getHistoryState();Fe&&ce.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||ce.push("SEEK_TO_INTERACTIVE_BUTTON"),kt.hasPrevChapter$.getValue()||(ce.push("PLAY_PREV_CHAPTER_BUTTON"),Fe||(kt.isGoBackLimited$.getValue()?ct="tooltip_interactive_go_back_disabled_limit":ct="tooltip_interactive_go_back_disabled"))}let ht=()=>{this.isInited=!1,this.prevIsid=void 0;let Fe=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();J.onReplayInteractiveVideo&&!Fe?J.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=op({player:o,interfaceLanguage:C,isCyrillicRelatedInterface:P,videoId:Ae,isClip:Ke,isLiveCatchUpMode:se,isAudioDisabled:$,statAuthToken:a,callbacks:J,webApi:Ee,videoEpisodes:Ie,previewThumbsData:Ye,canDownload:q,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ce,isInteractive:Oe,saveRate:Q,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ht,playPrevChapterDisabledTooltip:ct,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?ne:[],additionalSettingsMenuItems:F??[],additionalContextMenuItems:_e??[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:oe&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure});let{stores:gt}=this.microStoresRoot=Oh();this.subscription.add(this.store.state.currentFormat$.subscribe(Fe=>J?.onCurrentFormatChanged?.(Fe))),this.subscription.add(gt.interactiveControlsOpacity$.subscribe(Fe=>{Fe!==null&&this?.interactiveController?.setDisabledControls(Fe)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Fe=>J?.onThroughputEstimationChanged?.(Fe))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Fe=>J?.onTrafficSavingEnabledChanged?.(Fe)));let bt=!0;this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Fe=>{bt?bt=!1:J?.onCurrentPlaybackRateChanged?.(Fe)})),this.subscription.add(this.store.state.volume$.subscribe(Fe=>J?.onVolumeChange?.(Fe))),this.subscription.add(this.store.state.muted$.subscribe(Fe=>Fe?J?.onMute?.():J?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(Fe=>J?.onVideoBitrateChanged?.(Fe))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Fe=>{let kt=this.store?.ui.controls.disabledControls$;kt&&(Fe&&!kt.includes(hs)&&kt.add(hs),Fe||kt.remove(hs))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Fe=>{if(!pi.clientChecker.isSamsungBrowser||!Fe||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Fe=>J?.onVSIDChanged?.(Fe))),this.initMediaSession(),this.svelteRootComponent=new Sh({target:this.playerContainer,props:{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Je,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Pe,thumbUrl:Se,subtitles:tt,live:it,preload:l,autoplay:u,muted:m,volume:c,fromTime:h,canRewindLive:y,supportLink:g,showAds:T,adsSlotId:k,adsParams:rt,adsPreviewParam:I,duration:X,logoClickable:G,logoHidden:x,isMobile:O,failoverHosts:te,fullScreenTarget:K,saveRate:Q,shadowRootContainer:this.shadowRootContainer,showMiniTimer:H,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:$e.nextVideoTitle,endScreenVideoThumb:$e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Z,showEndScreen:de,showAutoplayNext:qe}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.()),this.internalsExposure?.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log})}addPlayerInfoSubscriptions(){let t=this.store;if(!t)return;let n=this.videoConfig?.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(r=>n.onPlayerPhaseChanged?.(r))).add(t.state.playbackState$.subscribe(r=>n.onPlaybackStateChanged?.(r))).add(t.state.isLive$.subscribe(r=>n.onIsLiveChanged?.(r))).add(t.state.isActiveLive$.subscribe(r=>n.onIsActiveLiveChanged?.(r))).add(t.state.isAudioAvailable$.subscribe(r=>n.onIsAudioAvailableChanged?.(r))).add(t.state.currentQuality$.subscribe(r=>n.onCurrentQualityChanged?.(r))).add(t.state.availableQualities$.subscribe(r=>n.onAvailableQualitiesChanged?.(r.map(({value:s})=>s).filter(s=>s!=="auto")))).add(t.state.availableAudioStreams$.subscribe(r=>{r.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(t.ui.isPictureInPictureActive$.subscribe(r=>r?n.onPiPEnter?.():n.onPiPExit?.()));let o=n?.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(r=>o.onControlsVisibleChanged?.(r))).add(t.ui.isMobile.subscribe(r=>o.onIsMobileChanged?.(r))).add(t.ui.playerSize.subscribe(r=>o.onPlayerSizeChanged?.(r))).add(t.ui.controls.prevButton.subscribe(r=>o.onPrevButtonChanged?.(r))).add(t.ui.controls.playButton.subscribe(r=>o.onPlayButtonChanged?.(r))).add(t.ui.controls.replayButton.subscribe(r=>o.onReplayButtonChanged?.(r))).add(t.ui.controls.nextButton.subscribe(r=>o.onNextButtonChanged?.(r))).add(t.ui.controls.playPrevChapterButton.subscribe(r=>o.onPlayPrevChapterChanged?.(r))).add(t.ui.controls.seekToInteractiveButton.subscribe(r=>o.onSeekToInteractiveButtonChanged?.(r))).add(t.ui.controls.interactiveGraphButton.subscribe(r=>o.onGraphButtonChanged?.(r))).add(t.ui.controls.liveButton.subscribe(r=>o.onLiveButtonChanged?.(r))).add(t.ui.controls.time.subscribe(r=>o.onTimeUpdateChanged?.(r))).add(t.ui.controls.episodes.subscribe(r=>o.onEpisodesChanged?.(r))).add(t.ui.controls.subtitles.subscribe(r=>o.onSubtitlesChanged?.(r))).add(t.ui.controls.settings.subscribe(r=>o.onSettingsChanged?.(r))).add(t.ui.controls.fullscreen.subscribe(r=>o.onFullscreenChanged?.(r))).add(t.ui.controls.chromecast.subscribe(r=>o.onChromecastChanged?.(r))).add(t.ui.controls.pip.subscribe(r=>o.onPipChanged?.(r))).add(t.ui.controls.vkLogo.subscribe(r=>o.onVkLogoChanged?.(r))).add(t.ui.controls.interactiveTimeIndicator.subscribe(r=>o.onInteractiveTimeIndicatorChanged?.(r))).add(t.ui.controls.timeline.subscribe(r=>o.onTimelineChanged?.(r)))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(t,n=!0){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&(0,pi.isNonNullable)(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),this.svelteRootComponent?.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let t=this.interactiveController?.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:t,EVENT_NAMES:n,CustomError:o}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let r=this.store?.interfaceLanguage$,s=r?Ue(r):this.videoConfig.interfaceLanguage,{projectInfo:a,initChapterId:l,historyApi:u,videoLoader:c}=this.videoConfig.interactiveData;this.interactiveController=new t({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:s,graph:this.uiConfig.features.interactiveGraph,projectInfo:a,initChapterId:l,historyApi:u,vkVideoLoader:c,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat});let{isInteractiveExpectation$:m,isSeekable$:h}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(h.subscribe(g=>{if(!this.isInited)return;let T=this.store;g?T.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):T.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(m.subscribe(g=>{this.store&&this.store.state.isInteractiveExpectation$.set(g)}));let y=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(g=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...g.config,title:a?.title||g.config.title};let T=y?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(g.player,T),y&&(y=!1)})),this.interactiveController.on(n.interactives,({type:g,actionType:T})=>{if(!this.store)return;let k=m.getValue();if(g==="action-choice"&&T==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(xs)),g==="action-choice-canceled"){let D=Ue(this.store.state.isPlaying$)||k;if(this.videoConfig?.isMobile&&D){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let g=this.interactiveController.getHistoryState();this.subscription.add(g.history$.subscribe(T=>{T.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(T)}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),this.videoConfig?.callbacks.onInteractiveTimeIndicatorClick?.()})),this.interactiveController.on(n.errors,g=>{this.log({message:g.toString()})})}catch(t){this.log({message:t.message})}}initPlayer(t,n={}){if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=ra(Vy,(0,pi.cloneDeepWith)(t,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=hd(n.ui??{}),this.coreConfig=n.core??{configName:[]},this.statisticsConfig=n.statistics??{},this.sentry={config:this.uiConfig.sentry??{}},this.uiConfig.features.exposeInternalsToGlobal&&(this.internalsExposure??=new pi.InternalsExposure("UI")),(0,pi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.uiConfig.features.mediaSession??this.videoConfig.isMediaSessionEnabled??!0),(0,pi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.videoConfig.isMobile=this.uiConfig.isMobile??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen??this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=this.uiConfig.features.autoplayNext??this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=this.uiConfig.features.nextPrevButtons??this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&this.videoConfig.videos?.[this.videoConfig.videoIndex]?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=oa.getLatestSupportedVersion():this.pictureInPictureApi=new ar),this.mediaSessionApi=this.uiConfig.features.mediaSession?new ia:void 0,this.annotationsApi=this.uiConfig.features.annotations?new sa:void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.svelteStubComponent?.$destroy(),this.svelteRootComponent?.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0),t.interactiveData?this.initInteractives():this.createPlayer(t.videos[this.currentPlayingVideoIndex]),Vh(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();this.svelteRootComponent?.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(t=>{t==="video"?this.setupMediaSessionForVideo():t==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let t="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:t}),this.mediaSessionApi.updateActionHandlers(n),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}play(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("LiveWaitingStart")||this.store?.playerPhase.is("LiveWaitingRecover")||this.store?.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){if(!this.videoConfig)return;this.log({message:"stop"});let t=!!this.interactiveController;t&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0),this.svelteStubComponent?.$destroy(),this.mediaSessionApi?.destroy();let n=this.videoConfig.videos[0];n&&(this.svelteRootComponent?.$destroy(),t?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(n))}setMuted(t){this.log({message:`set muted, muted: ${t}`}),this.svelteRootComponent?.setMuted(t)}setVolume(t){this.log({message:`set volume, volume: ${t}`}),this.svelteRootComponent?.setVolume(t)}setRepeat(t){this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,this.svelteRootComponent?.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),this.svelteRootComponent?.seekTime(t))}seekEpisodeStartTime(t){this.log({message:`seek episode start time, time: ${t}`}),this.svelteRootComponent?.seekEpisodeStartTime(t)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(t){this.log({message:`set playback rate to: ${t}`}),this.svelteRootComponent?.setPlaybackRate(t)}setAutoQualityLimits(t){this.log({message:`set auto quality limitation. Max: ${t.max??"none"}. Min: ${t.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(t)}addLanguage(t){this.store?.actions.internal.addLanguage(t)}async setLanguage(t){await this.store?.actions.internal.setLanguage(t)}setLiveStart(t){this.log({message:"live started"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingStart(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(t,{autoplay:!0})}setLiveWaitingRecover(){this.log({message:"live waiting"}),this.store?.actions.internal.setLiveWaitingRecover(!0),this.store?.destroy()}setLiveWaitingRecord(){this.log({message:"post live"}),this.store?.actions.internal.setLiveWaitingRecord(!0),this.store?.destroy()}setLiveEnd(t){this.log({message:"live ended"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingRecord(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(t,{autoplay:!1})}setLiveLowLatency(t){this.log({message:"live switch to low latency "+t}),this.store?.actions.external.setLiveLowLatency(t)}getDeviceId(){return this.statistics?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(t){if(this.interactiveController&&this.store?.state.positionExact$){let n=Ue(this.store.state.positionExact$),r=Ue(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,pi.once)()).subscribe(()=>{r&&n>=r.time?this.seekTime(r.time):this.seekTime(n),t?.()});let s=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:s.chapter.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(t,n=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(t,n){this.store?.actions.external.updateAdditionalSettingsItem(t,n)}addAdditionalSettingsItem(t){this.store?.actions.external.addAdditionalSettingsItem(t)}removeAdditionalSettingsItem(t){this.store?.actions.external.removeAdditionalSettingsItem(t)}updateAdditionalContextItem(t,n){this.store?.actions.external.updateAdditionalContextItem(t,n)}addAdditionalContextItem(t){this.store?.actions.external.addAdditionalContextItem(t)}removeAdditionalContextItem(t){this.store?.actions.external.removeAdditionalContextItem(t)}updateAdditionalButton(t,n){this.store?.actions.external.updateAdditionalButton(t,n)}addAdditionalButton(t){this.store?.actions.external.addAdditionalButton(t)}removeAdditionalButton(t){this.store?.actions.external.removeAdditionalButton(t)}updateStatContext(t){this.statistics&&this.statistics.oneStat.updateContext(t)}handleTimerNextVideo(t){this.store?.actions.internal.setTimerNextVideoRunning(t)}focus(){this.svelteRootComponent?.keyboardControls?.focus?.()}};var ts=require("@vkontakte/videoplayer-shared"),ca=require("@vkontakte/videoplayer-core"),Ry=()=>{window.customElements.define("vk-video-player",ua)};
52
+ );--timeline-preview-shadow:rgba(0, 0, 0, 0.08);--timeline-preview-bg:rgba(34, 34, 34, 1);--settings-bg:rgba(0, 0, 0, 0.72);--settings-item-bg-hover:rgba(255, 255, 255, 0.08);--settings-radius:8px;--mobile-settings-bg:#2C2D2E;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--end-screen-mobile-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--settings-menu-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;background:var(--black)}*{-webkit-tap-highlight-color:transparent}button{border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}svg:not(.interactiveContainer svg){pointer-events:none}*:focus, *:focus-visible{outline:none}*:focus-visible{box-shadow:var(--focused-element-shadow)}.hidden{visibility:hidden;opacity:0}.overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index)}.out-of-view{position:absolute !important;left:-1000vh !important}.icon.icon-error-stub{display:flex;justify-content:center;align-items:center}`)}function my(i){let e,t,n,o;function r(l){i[61](l)}function s(l){i[62](l)}let a={store:i[1],uiConfig:i[34],title:i[2],thumbUrl:i[3],interactiveContainer:i[4],live:i[5],autoplay:i[6],canRewindLive:i[7],showAds:i[8],adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12],logoClickable:i[13],logoHidden:i[14],logoTargetUrl:i[35],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[33],seekToInteractive:i[26],playPrevChapter:i[27],firstStart:i[37],showEndScreen:i[28],showNextPrevButtons:i[30]};return i[32]!==void 0&&(a.videoContainer=i[32]),i[0]!==void 0&&(a.keyboardControls=i[0]),e=new G_({props:a}),ve.push(()=>ze(e,"videoContainer",r)),ve.push(()=>ze(e,"keyboardControls",s)),{c(){M(e.$$.fragment)},m(l,u){E(e,l,u),o=!0},p(l,u){let c={};u[0]&2&&(c.store=l[1]),u[0]&4&&(c.title=l[2]),u[0]&8&&(c.thumbUrl=l[3]),u[0]&16&&(c.interactiveContainer=l[4]),u[0]&32&&(c.live=l[5]),u[0]&64&&(c.autoplay=l[6]),u[0]&128&&(c.canRewindLive=l[7]),u[0]&256&&(c.showAds=l[8]),u[0]&512&&(c.adsSlotId=l[9]),u[0]&1024&&(c.adsParams=l[10]),u[0]&2048&&(c.adsPreviewParam=l[11]),u[0]&4096&&(c.duration=l[12]),u[0]&8192&&(c.logoClickable=l[13]),u[0]&16384&&(c.logoHidden=l[14]),u[0]&65536&&(c.nextButtonActive=l[16]),u[0]&131072&&(c.prevButtonActive=l[17]),u[0]&262144&&(c.endScreenVideoTitle=l[18]),u[0]&524288&&(c.endScreenVideoThumb=l[19]),u[0]&1048576&&(c.isOneVideoPlaylist=l[20]),u[0]&2097152&&(c.supportLink=l[21]),u[0]&4194304&&(c.shadowRootContainer=l[22]),u[0]&8388608&&(c.outerContainerRef=l[23]),u[0]&16777216&&(c.fullScreenTarget=l[24]),u[0]&33554432&&(c.showMiniTimer=l[25]),u[1]&4&&(c.playerStarted=l[33]),u[0]&67108864&&(c.seekToInteractive=l[26]),u[0]&134217728&&(c.playPrevChapter=l[27]),u[0]&268435456&&(c.showEndScreen=l[28]),u[0]&1073741824&&(c.showNextPrevButtons=l[30]),!t&&u[1]&2&&(t=!0,c.videoContainer=l[32],Ue(()=>t=!1)),!n&&u[0]&1&&(n=!0,c.keyboardControls=l[0],Ue(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){A(e,l)}}}function py(i){let e,t,n;function o(s){i[60](s)}let r={store:i[1],uiConfig:i[34],thumbUrl:i[3],interactiveContainer:i[4],live:i[5],autoplay:i[6],canRewindLive:i[7],showAds:i[8],adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12],logoClickable:i[13],logoHidden:i[14],logoTargetUrl:i[35],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[33],seekToInteractive:i[26],playPrevChapter:i[27],firstStart:i[37],seekTime:i[31],showEndScreen:i[28],showAutoplayNext:i[29],showNextPrevButtons:i[30]};return i[32]!==void 0&&(r.videoContainer=i[32]),e=new wh({props:r}),ve.push(()=>ze(e,"videoContainer",o)),{c(){M(e.$$.fragment)},m(s,a){E(e,s,a),n=!0},p(s,a){let l={};a[0]&2&&(l.store=s[1]),a[0]&8&&(l.thumbUrl=s[3]),a[0]&16&&(l.interactiveContainer=s[4]),a[0]&32&&(l.live=s[5]),a[0]&64&&(l.autoplay=s[6]),a[0]&128&&(l.canRewindLive=s[7]),a[0]&256&&(l.showAds=s[8]),a[0]&512&&(l.adsSlotId=s[9]),a[0]&1024&&(l.adsParams=s[10]),a[0]&2048&&(l.adsPreviewParam=s[11]),a[0]&4096&&(l.duration=s[12]),a[0]&8192&&(l.logoClickable=s[13]),a[0]&16384&&(l.logoHidden=s[14]),a[0]&65536&&(l.nextButtonActive=s[16]),a[0]&131072&&(l.prevButtonActive=s[17]),a[0]&262144&&(l.endScreenVideoTitle=s[18]),a[0]&524288&&(l.endScreenVideoThumb=s[19]),a[0]&1048576&&(l.isOneVideoPlaylist=s[20]),a[0]&2097152&&(l.supportLink=s[21]),a[0]&4194304&&(l.shadowRootContainer=s[22]),a[0]&8388608&&(l.outerContainerRef=s[23]),a[0]&16777216&&(l.fullScreenTarget=s[24]),a[0]&33554432&&(l.showMiniTimer=s[25]),a[1]&4&&(l.playerStarted=s[33]),a[0]&67108864&&(l.seekToInteractive=s[26]),a[0]&134217728&&(l.playPrevChapter=s[27]),a[0]&268435456&&(l.showEndScreen=s[28]),a[0]&536870912&&(l.showAutoplayNext=s[29]),a[0]&1073741824&&(l.showNextPrevButtons=s[30]),!t&&a[1]&2&&(t=!0,l.videoContainer=s[32],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function _y(i){let e,t,n,o,r=[py,my],s=[];function a(l,u){return l[15]?0:1}return t=a(i,[-1,-1,-1]),n=s[t]=r[t](i),{c(){e=S("div"),n.c(),f(e,"class","root svelte-zbipwr")},m(l,u){v(l,e,u),s[t].m(e,null),o=!0},p(l,u){let c=t;t=a(l,u),t===c?s[t].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),n=s[t],n?n.p(l,u):(n=s[t]=r[t](l),n.c()),d(n,1),n.m(e,null))},i(l){o||(d(n),o=!0)},o(l){p(n),o=!1},d(l){l&&b(e),s[t].d()}}}function hy(i,e,t){let n,{sources:o}=e,{store:r}=e,{microStoresRoot:s}=e,{videoConfig:a}=e,{uiConfig:l}=e,{title:u}=e,{thumbUrl:c}=e,{interactiveContainer:m}=e,{interactiveController:h}=e,{subtitles:y}=e,{live:g}=e,{preload:T}=e,{autoplay:k}=e,{volume:D=void 0}=e,{muted:I=void 0}=e,{fromTime:C}=e,{canRewindLive:P}=e,{showAds:G}=e,{adsSlotId:x=void 0}=e,{adsParams:O=void 0}=e,{adsPreviewParam:$=void 0}=e,{duration:le=void 0}=e,{logoClickable:K}=e,{logoHidden:ee}=e,{isMobile:H}=e,{nextButtonActive:J=!1}=e,{prevButtonActive:ke=!1}=e,{endScreenVideoTitle:q=void 0}=e,{endScreenVideoThumb:ne=void 0}=e,{isOneVideoPlaylist:F=!1}=e,{supportLink:_e}=e,{shadowRootContainer:oe=void 0}=e,{outerContainerRef:Q=void 0}=e,{fullScreenTarget:Z=void 0}=e,{failoverHosts:se=void 0}=e,{showMiniTimer:Ze=!1}=e,{saveRate:Je}=e,{seekToInteractive:Pe=Eo.noop}=e,{playPrevChapter:Se=Eo.noop}=e,{volumeMultiplier:Ae}=e,{showEndScreen:We}=e,{showAutoplayNext:X}=e,{showNextPrevButtons:he}=e,{keyboardControls:Ie=void 0}=e,{subscribers:Ge,stores:tt}=s;gd(l);let it=It(),rt=l.logoLink,$e=r.ui.debugPanelVisible,pe=r.ui.playerSize,Ee=r.state.isLive$;V(i,Ee,ye=>t(64,n=ye));let Xe=r.state.isInteractive&&Eo.clientChecker.isAndroid,Ye,Oe=null,fe=!1;r.getAdmanWrapper().init({switchFromAdsToVideo:r.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:r.actions.internal.switchFromVideoToAds,setMuted:r.actions.external.setMuted},r.ads,{isMobile:r.ui.isMobile,mobileUnmuteButtonVisible:r.ui.mobileUnmuteButtonVisible,vsid:r.vsid}),Ed(r,tt);let ct=(ye=!1)=>{t(33,fe=!0),ye?r.actions.external.firstStart(G):r.actions.internal.firstStart(G)};function ht(ye){let Ft=o||ye;Ft&&r.initVideo({container:Ye,sources:Ft,failoverHosts:se,subtitles:y,volumeMultiplier:Ae});let Rt=Eo.safeStorage.get(ps)==="true";$e.set(Rt),C>0&&r.actions.external.seekTime(C);let Zt=H?it.volumeDefault:D??Us()??it.volumeDefault,xt=I??Wd();if(r.actions.external.setVolume(Zt),r.actions.external.setMuted(xt),r.getAdmanWrapper().setInitialVolume(xt?0:Zt),it.features.trafficSaving){let Vt=jd();Vt&&r.actions.internal.setTrafficSavingEnabled(Vt)}if(it.features.saveRate&&Je){let Vt=Qd();Vt&&!n&&r.actions.internal.setPlaybackRate(Vt)}if(X){let Vt=Xd();Vt&&r.actions.internal.setAutoplayNextEnabled(Vt)}let Pt=zd(r.videoId);Pt&&r.actions.internal.setQuality(Pt),r.ui.isAutoplay.set(k),k?ct():T&&it.features.preload&&r.actions.internal.preload()}let gt=ye=>{if(window.ResizeObserver){let Ft,Rt;Oe=new ResizeObserver((0,Eo.throttleFn)(Zt=>{let xt=Zt[0];if(xt){if(xt.contentBoxSize){let Pt=Array.isArray(xt.contentBoxSize)?xt.contentBoxSize[0]:xt.contentBoxSize;Ft=Pt.inlineSize,Rt=Pt.blockSize}else xt.contentRect&&(Ft=xt.contentRect.width,Rt=xt.contentRect.height);pe.set({width:Ft,height:Rt})}},300)),Oe.observe(ye)}pe.set({width:ye.clientWidth,height:ye.clientHeight})},bt=()=>{document.hidden&&r.actions.external.stop()};yt(()=>{Xe&&document.addEventListener("visibilitychange",bt),gt(Ye);let ye=Ge.map(Rt=>Rt.init({store:r,microStores:tt,config:a,interactiveController:h}));if(g?.status==="upcoming"){r.actions.internal.setLiveWaitingStart(!0);return}if(g?.status==="waiting"){r.actions.internal.setLiveWaitingRecover(!0);return}if((g?.status==="finished"||g?.status==="postlive")&&!Object.keys(o||[]).length){r.actions.internal.setLiveWaitingRecord(!0);return}return ht(),()=>{Xe&&document.removeEventListener("visibilitychange",bt),Oe?.disconnect(),ye.forEach(Rt=>Rt.unsubscribe()),r.destroy()}});function Fe(){fe?r.actions.external.play():ct(!0)}function wt(){r.actions.external.pause()}function Ot(ye){r.actions.external.setMuted(ye)}function Ut(ye){H||ye>=0&&ye<=1&&r.actions.external.setVolume(ye)}function Qt(ye){r.actions.internal.seekTime(ye,Ch.SeekAction.UNKNOWN)}function Ht(ye){r.actions.external.seekEpisodeStartTime(ye)}function lt(){r.actions.external.returnFocusToEpisodes()}function Tt(ye){r.actions.external.setPlaybackRate(ye)}function Mt(ye){r.actions.external.setAutoQualityLimits(ye)}function Lt(ye){Ye=ye,t(32,Ye)}function yi(ye){Ye=ye,t(32,Ye)}function Kt(ye){Ie=ye,t(0,Ie)}return i.$$set=ye=>{"sources"in ye&&t(38,o=ye.sources),"store"in ye&&t(1,r=ye.store),"microStoresRoot"in ye&&t(39,s=ye.microStoresRoot),"videoConfig"in ye&&t(40,a=ye.videoConfig),"uiConfig"in ye&&t(41,l=ye.uiConfig),"title"in ye&&t(2,u=ye.title),"thumbUrl"in ye&&t(3,c=ye.thumbUrl),"interactiveContainer"in ye&&t(4,m=ye.interactiveContainer),"interactiveController"in ye&&t(42,h=ye.interactiveController),"subtitles"in ye&&t(43,y=ye.subtitles),"live"in ye&&t(5,g=ye.live),"preload"in ye&&t(44,T=ye.preload),"autoplay"in ye&&t(6,k=ye.autoplay),"volume"in ye&&t(45,D=ye.volume),"muted"in ye&&t(46,I=ye.muted),"fromTime"in ye&&t(47,C=ye.fromTime),"canRewindLive"in ye&&t(7,P=ye.canRewindLive),"showAds"in ye&&t(8,G=ye.showAds),"adsSlotId"in ye&&t(9,x=ye.adsSlotId),"adsParams"in ye&&t(10,O=ye.adsParams),"adsPreviewParam"in ye&&t(11,$=ye.adsPreviewParam),"duration"in ye&&t(12,le=ye.duration),"logoClickable"in ye&&t(13,K=ye.logoClickable),"logoHidden"in ye&&t(14,ee=ye.logoHidden),"isMobile"in ye&&t(15,H=ye.isMobile),"nextButtonActive"in ye&&t(16,J=ye.nextButtonActive),"prevButtonActive"in ye&&t(17,ke=ye.prevButtonActive),"endScreenVideoTitle"in ye&&t(18,q=ye.endScreenVideoTitle),"endScreenVideoThumb"in ye&&t(19,ne=ye.endScreenVideoThumb),"isOneVideoPlaylist"in ye&&t(20,F=ye.isOneVideoPlaylist),"supportLink"in ye&&t(21,_e=ye.supportLink),"shadowRootContainer"in ye&&t(22,oe=ye.shadowRootContainer),"outerContainerRef"in ye&&t(23,Q=ye.outerContainerRef),"fullScreenTarget"in ye&&t(24,Z=ye.fullScreenTarget),"failoverHosts"in ye&&t(48,se=ye.failoverHosts),"showMiniTimer"in ye&&t(25,Ze=ye.showMiniTimer),"saveRate"in ye&&t(49,Je=ye.saveRate),"seekToInteractive"in ye&&t(26,Pe=ye.seekToInteractive),"playPrevChapter"in ye&&t(27,Se=ye.playPrevChapter),"volumeMultiplier"in ye&&t(50,Ae=ye.volumeMultiplier),"showEndScreen"in ye&&t(28,We=ye.showEndScreen),"showAutoplayNext"in ye&&t(29,X=ye.showAutoplayNext),"showNextPrevButtons"in ye&&t(30,he=ye.showNextPrevButtons),"keyboardControls"in ye&&t(0,Ie=ye.keyboardControls)},i.$$.update=()=>{i.$$.dirty[0]&32770&&r.ui.isMobile.set(H)},[Ie,r,u,c,m,g,k,P,G,x,O,$,le,K,ee,H,J,ke,q,ne,F,_e,oe,Q,Z,Ze,Pe,Se,We,X,he,Qt,Ye,fe,it,rt,Ee,ct,o,s,a,l,h,y,T,D,I,C,se,Je,Ae,ht,Fe,wt,Ot,Ut,Ht,lt,Tt,Mt,Lt,yi,Kt]}var jf=class extends B{constructor(e){super(),N(this,e,hy,_y,R,{sources:38,store:1,microStoresRoot:39,videoConfig:40,uiConfig:41,title:2,thumbUrl:3,interactiveContainer:4,interactiveController:42,subtitles:43,live:5,preload:44,autoplay:6,volume:45,muted:46,fromTime:47,canRewindLive:7,showAds:8,adsSlotId:9,adsParams:10,adsPreviewParam:11,duration:12,logoClickable:13,logoHidden:14,isMobile:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:22,outerContainerRef:23,fullScreenTarget:24,failoverHosts:48,showMiniTimer:25,saveRate:49,seekToInteractive:26,playPrevChapter:27,volumeMultiplier:50,showEndScreen:28,showAutoplayNext:29,showNextPrevButtons:30,keyboardControls:0,initVideo:51,play:52,pause:53,setMuted:54,setVolume:55,seekTime:31,seekEpisodeStartTime:56,returnFocusToEpisodes:57,setPlaybackRate:58,setAutoQualityLimits:59},dy,[-1,-1,-1])}get sources(){return this.$$.ctx[38]}set sources(e){this.$$set({sources:e}),at()}get store(){return this.$$.ctx[1]}set store(e){this.$$set({store:e}),at()}get microStoresRoot(){return this.$$.ctx[39]}set microStoresRoot(e){this.$$set({microStoresRoot:e}),at()}get videoConfig(){return this.$$.ctx[40]}set videoConfig(e){this.$$set({videoConfig:e}),at()}get uiConfig(){return this.$$.ctx[41]}set uiConfig(e){this.$$set({uiConfig:e}),at()}get title(){return this.$$.ctx[2]}set title(e){this.$$set({title:e}),at()}get thumbUrl(){return this.$$.ctx[3]}set thumbUrl(e){this.$$set({thumbUrl:e}),at()}get interactiveContainer(){return this.$$.ctx[4]}set interactiveContainer(e){this.$$set({interactiveContainer:e}),at()}get interactiveController(){return this.$$.ctx[42]}set interactiveController(e){this.$$set({interactiveController:e}),at()}get subtitles(){return this.$$.ctx[43]}set subtitles(e){this.$$set({subtitles:e}),at()}get live(){return this.$$.ctx[5]}set live(e){this.$$set({live:e}),at()}get preload(){return this.$$.ctx[44]}set preload(e){this.$$set({preload:e}),at()}get autoplay(){return this.$$.ctx[6]}set autoplay(e){this.$$set({autoplay:e}),at()}get volume(){return this.$$.ctx[45]}set volume(e){this.$$set({volume:e}),at()}get muted(){return this.$$.ctx[46]}set muted(e){this.$$set({muted:e}),at()}get fromTime(){return this.$$.ctx[47]}set fromTime(e){this.$$set({fromTime:e}),at()}get canRewindLive(){return this.$$.ctx[7]}set canRewindLive(e){this.$$set({canRewindLive:e}),at()}get showAds(){return this.$$.ctx[8]}set showAds(e){this.$$set({showAds:e}),at()}get adsSlotId(){return this.$$.ctx[9]}set adsSlotId(e){this.$$set({adsSlotId:e}),at()}get adsParams(){return this.$$.ctx[10]}set adsParams(e){this.$$set({adsParams:e}),at()}get adsPreviewParam(){return this.$$.ctx[11]}set adsPreviewParam(e){this.$$set({adsPreviewParam:e}),at()}get duration(){return this.$$.ctx[12]}set duration(e){this.$$set({duration:e}),at()}get logoClickable(){return this.$$.ctx[13]}set logoClickable(e){this.$$set({logoClickable:e}),at()}get logoHidden(){return this.$$.ctx[14]}set logoHidden(e){this.$$set({logoHidden:e}),at()}get isMobile(){return this.$$.ctx[15]}set isMobile(e){this.$$set({isMobile:e}),at()}get nextButtonActive(){return this.$$.ctx[16]}set nextButtonActive(e){this.$$set({nextButtonActive:e}),at()}get prevButtonActive(){return this.$$.ctx[17]}set prevButtonActive(e){this.$$set({prevButtonActive:e}),at()}get endScreenVideoTitle(){return this.$$.ctx[18]}set endScreenVideoTitle(e){this.$$set({endScreenVideoTitle:e}),at()}get endScreenVideoThumb(){return this.$$.ctx[19]}set endScreenVideoThumb(e){this.$$set({endScreenVideoThumb:e}),at()}get isOneVideoPlaylist(){return this.$$.ctx[20]}set isOneVideoPlaylist(e){this.$$set({isOneVideoPlaylist:e}),at()}get supportLink(){return this.$$.ctx[21]}set supportLink(e){this.$$set({supportLink:e}),at()}get shadowRootContainer(){return this.$$.ctx[22]}set shadowRootContainer(e){this.$$set({shadowRootContainer:e}),at()}get outerContainerRef(){return this.$$.ctx[23]}set outerContainerRef(e){this.$$set({outerContainerRef:e}),at()}get fullScreenTarget(){return this.$$.ctx[24]}set fullScreenTarget(e){this.$$set({fullScreenTarget:e}),at()}get failoverHosts(){return this.$$.ctx[48]}set failoverHosts(e){this.$$set({failoverHosts:e}),at()}get showMiniTimer(){return this.$$.ctx[25]}set showMiniTimer(e){this.$$set({showMiniTimer:e}),at()}get saveRate(){return this.$$.ctx[49]}set saveRate(e){this.$$set({saveRate:e}),at()}get seekToInteractive(){return this.$$.ctx[26]}set seekToInteractive(e){this.$$set({seekToInteractive:e}),at()}get playPrevChapter(){return this.$$.ctx[27]}set playPrevChapter(e){this.$$set({playPrevChapter:e}),at()}get volumeMultiplier(){return this.$$.ctx[50]}set volumeMultiplier(e){this.$$set({volumeMultiplier:e}),at()}get showEndScreen(){return this.$$.ctx[28]}set showEndScreen(e){this.$$set({showEndScreen:e}),at()}get showAutoplayNext(){return this.$$.ctx[29]}set showAutoplayNext(e){this.$$set({showAutoplayNext:e}),at()}get showNextPrevButtons(){return this.$$.ctx[30]}set showNextPrevButtons(e){this.$$set({showNextPrevButtons:e}),at()}get keyboardControls(){return this.$$.ctx[0]}set keyboardControls(e){this.$$set({keyboardControls:e}),at()}get initVideo(){return this.$$.ctx[51]}get play(){return this.$$.ctx[52]}get pause(){return this.$$.ctx[53]}get setMuted(){return this.$$.ctx[54]}get setVolume(){return this.$$.ctx[55]}get seekTime(){return this.$$.ctx[31]}get seekEpisodeStartTime(){return this.$$.ctx[56]}get returnFocusToEpisodes(){return this.$$.ctx[57]}get setPlaybackRate(){return this.$$.ctx[58]}get setAutoQualityLimits(){return this.$$.ctx[59]}},Sh=jf;function gy(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","currentColor"),f(t,"d","M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"),Ce(e,a)},m(l,u){v(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,l,l[1],n?Re(o,l[1],u,null):Be(l[1]),null),Ce(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&b(e),r&&r.d(l)}}}function by(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Gf=class extends B{constructor(e){super(),N(this,e,by,gy,R,{})}},Th=Gf;function vy(i){let e,t;return e=new Th({props:{style:i[0]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function yy(i,e,t){let n,{isWhite:o=!1}=e;return i.$$set=r=>{"isWhite"in r&&t(1,o=r.isWhite)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var Yf=class extends B{constructor(e){super(),N(this,e,yy,vy,R,{isWhite:1})}},Ih=Yf;function ky(i){be(i,"svelte-1y9fytq",".playerStub.svelte-1y9fytq{width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.title.svelte-1y9fytq{position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}")}function Ph(i){let e,t;return{c(){e=S("div"),t=De(i[0]),f(e,"class","title svelte-1y9fytq")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&1&&Ke(t,n[0])},d(n){n&&b(e)}}}function Eh(i){let e,t;return e=new Ih({props:{isWhite:!!i[1]}}),{c(){M(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isWhite=!!n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function wy(i){let e,t,n,o,r=i[0]&&Ph(i),s=(!i[0]||!i[1])&&Eh(i);return{c(){e=S("div"),r&&r.c(),t=j(),s&&s.c(),f(e,"class","playerStub svelte-1y9fytq"),f(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,l){v(a,e,l),r&&r.m(e,null),_(e,t),s&&s.m(e,null),o=!0},p(a,[l]){a[0]?r?r.p(a,l):(r=Ph(a),r.c(),r.m(e,t)):r&&(r.d(1),r=null),!a[0]||!a[1]?s?(s.p(a,l),l&3&&d(s,1)):(s=Eh(a),s.c(),d(s,1),s.m(e,null)):s&&(ae(),p(s,1,1,()=>{s=null}),ue()),(!o||l&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&f(e,"style",n)},i(a){o||(d(s),o=!0)},o(a){p(s),o=!1},d(a){a&&b(e),r&&r.d(),s&&s.d()}}}function Cy(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"thumbUrl"in r&&t(1,o=r.thumbUrl)},[n,o]}var Qf=class extends B{constructor(e){super(),N(this,e,Cy,wy,R,{title:0,thumbUrl:1},ky)}},Ah=Qf;var ai=require("@vkontakte/videoplayer-shared"),rq=require("@vkontakte/videoplayer-core"),Fh=require("@vkontakte/videoplayer-statistics");var na=require("@vkontakte/videoplayer-shared"),ia=class{constructor(){this.subscription=new na.Subscription,this.logger=new na.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:t="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:t,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",t=>null],["seekbackward",t=>null],["seekforward",t=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(let[t,n]of e)try{navigator.mediaSession.setActionHandler?.(t,n)}catch{throw new Error(`The media session action "${t}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||this.subscription.add(e.state.positionExact$.subscribe(t=>{let n=qe(e.state.currentPlaybackRate$),o=qe(e.state.duration$);if(!(!isFinite(t)||!isFinite(o)))try{navigator.mediaSession.setPositionState?.({position:t,playbackRate:n,duration:o})}catch{this.log({message:`MediaSession setPositionState can't call with position: ${t} and duration: ${o}`})}}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var Xr=require("@vkontakte/videoplayer-shared");function Sy(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=L("svg"),a&&a.c(),t=L("g"),n=L("path"),o=L("path"),f(n,"d","m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"),f(o,"d","M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"),f(t,"fill","#fff"),Ce(e,u)},m(c,m){v(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,s,c,c[1],r?Re(s,c[1],m,null):Be(c[1]),null),Ce(e,u=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&b(e),a&&a.d(c)}}}function Ty(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Zf=class extends B{constructor(e){super(),N(this,e,Ty,Sy,R,{})}},Mh=Zf;function Iy(i){be(i,"svelte-1pbsod4",".player-pip-dummy.svelte-1pbsod4{width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.player-pip-dummy.is-pip-api.svelte-1pbsod4{position:relative}.dummy-image.svelte-1pbsod4 svg{transform:scale(1.07143)}.dummy-image.desktop.svelte-1pbsod4{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.svelte-1pbsod4{font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center}")}function Py(i){let e,t,n,o,r,s,a;return n=new Mh({}),{c(){e=S("div"),t=S("div"),M(n.$$.fragment),o=j(),r=S("span"),s=De(i[0]),f(t,"class","dummy-image svelte-1pbsod4"),z(t,"desktop",!i[1]),f(r,"class","title svelte-1pbsod4"),f(e,"class","player-pip-dummy svelte-1pbsod4"),z(e,"is-pip-api",i[2])},m(l,u){v(l,e,u),_(e,t),E(n,t,null),_(e,o),_(e,r),_(r,s),a=!0},p(l,[u]){(!a||u&2)&&z(t,"desktop",!l[1]),(!a||u&1)&&Ke(s,l[0])},i(l){a||(d(n.$$.fragment,l),a=!0)},o(l){p(n.$$.fragment,l),a=!1},d(l){l&&b(e),A(n)}}}function Ey(i,e,t){let n,o,r=et(),s=!!r.webApi.pictureInPictureApi,a=r.interfaceLanguage$;V(i,a,c=>t(5,n=c));let l=r.ui.isMobile;V(i,l,c=>t(1,o=c));let u;return i.$$.update=()=>{i.$$.dirty&32&&t(0,u=n&&W("pip_dummy_title"))},[u,o,s,a,l,n]}var Xf=class extends B{constructor(e){super(),N(this,e,Ey,Py,R,{},Iy)}},Lh=Xf;var Ay=460,My=280,Ss=class{constructor(){this.info={isActive$:new Xr.ValueSubject(!1),type:1}}isSupported(){let{isEmbed:e}=(0,Xr.detectEmbed)();return"documentPictureInPicture"in window&&!Xr.clientChecker.isYandex&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:Ay,height:My,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(r=>[...r.cssRules].map(s=>s.cssText).join(" ")).filter(Boolean).join(`
53
+ `),t=document.createElement("style");t.textContent=e;let n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(t),o.append(this.playerDomElement),this.playerDummyElement=new Lh({target:this.playerParentShadowRoot,context:this.svelteContext}),this.pipWindow?.document.body.append(n),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",r=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{documentPictureInPicture.window?.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function Rh(i){return i instanceof Ss}var oa=class{static getLatestSupportedVersion(){let e=new ar,t=new Ss;if(t.isSupported())return t;if(e.isSupported())return e}};function ra(i,e){let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let o of t)n[o]=e[o]??i[o]??void 0;return n}var Vh="Inner error. Unexpectedly root annotation container null reference exception",Bh="Annotation with such name already exists",Nh="Annotation with such name does not exist";var Jr=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var $r=require("@vkontakte/videoplayer-shared"),Ly="1",Ry=100,sa=class{constructor(){this.annotations=new Map;this.subscriptions=new $r.Subscription}init(e){this.rootAnnotationsContainer=e;let t=(0,$r.throttleFn)(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},Ry);this.subscriptions.add((0,$r.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},t()})),this.mutationObserver=new MutationObserver(t),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,t){if(!this.rootAnnotationsContainer)throw new Jr(Vh);if(this.annotations.has(e))throw new Jr(Bh);t.style.zIndex=t.style.zIndex??Ly,t.style.position="absolute",this.rootAnnotationsContainer.append(t),this.annotations.set(e,t)}get(e){let t=this.annotations.get(e);if(!t)throw new Jr(Nh);return t}remove(e){let t=this.get(e);this.annotations.delete(e)&&t.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,t,n){let o=e.offsetTop,r=e.offsetLeft,s=e.offsetWidth,a=e.offsetHeight;return o<0||r<0||r+s>t||o+a>n}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var gr=require("@vkontakte/videoplayer-shared"),Wn=class{init({store:e,microStores:t,interactiveController:n,config:o}){return(0,gr.assertNonNullable)(e),(0,gr.assertNonNullable)(t),(0,gr.assertNonNullable)(o),o.interactiveData&&(0,gr.assertNonNullable)(n),this.subscription=new gr.Subscription,this.subscription}};var Ts=class extends Wn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...Ne(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(r=>{this.state$.set(r?!0:null)})),n}};var Is=class extends Wn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...Ne(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{microStores:o,store:r}=t,{fakeIsPlaying$:s}=o,{isInteractiveExpectation$:a,isPlaying$:l}=r.state,{controlsVisible:u,isMobile:c}=r.ui,m=qe(c),h=()=>m&&qe(u);return n.add(u.subscribe(y=>{if(!m)return;let g=qe(s);qe(l)?this.state$.set(y):g!==null&&this.state$.set(!g||y)})),n.add(l.subscribe(y=>{this.state$.set(!y||h())})),n.add(s.subscribe(y=>{if(y===null)return;let g=qe(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!y)})),n}};var Ps=class extends Wn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Ne("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};var Dh=require("@vkontakte/videoplayer-shared"),Jf=Ne(!1),la=null,Es=class extends Wn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Jf,set:(t,n=!1)=>{t!==qe(Jf)&&(this.clearTimeout(),Jf.set(t),!t&&la&&(la=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(t){let n=super.init(t),{store:o,config:r}=t,{isInteractiveTime$:s,isPlaying$:a}=o.state,l=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(l.subscribe(m=>{qe(s)&&m&&this.state$.set(!1)}));let c=r?.interactiveData||{tooltipHelpHintActive:!1};return n.add((0,Dh.combine)({isPlaying$:a,isInteractiveTime$:s,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:h,interactiveTimeIndicator:y})=>{if(!(!m||!y?.isDisplayed)){if(!h)return this.state$.set(!1);c.tooltipHelpHintActive&&la===null&&(la=!0,c.tooltipHelpHintActive=!1,this.state$.set(!0),o.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var aa=require("@vkontakte/videoplayer-shared");var As=class extends Wn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...Ne(null),toggle:aa.noop};this.checkIfShouldHide=t=>zo(t,"s")}init(t){let n=super.init(t),{store:o,interactiveController:r}=t,s=o.ui.currentGridType$;return this.state$.toggle=()=>{if(this.checkIfShouldHide(qe(s)))return;let a=qe(this.state$),{isEnded$:l,playbackState$:u}=o.state,{disabledControls$:c}=o.ui.controls,m=qe(l),h=qe(u);a?(this.state$.set(!1),r?.toggleGraphView(!1),c.remove(Ea),!m&&this.graphMadePause&&o.actions.internal.play()):(this.graphMadePause=h==="playing",this.state$.set(!0),r?.toggleGraphView(!0),c.add(Ea),!m&&this.graphMadePause&&o.actions.internal.pause())},n.add((0,aa.combine)({graphIsOpened:this.state$,currentGridType:s}).subscribe(({graphIsOpened:a,currentGridType:l})=>{this.checkIfShouldHide(l)&&a&&(r?.toggleGraphView(!1),this.state$.set(!1))})),n}};var Oh=()=>[Ts,Is,Ps,Es,As].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var Vy={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:ai.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:(0,ai.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},ua=class extends HTMLElement{constructor(){super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.internalsExposure=null;this.createOneStat=(t,n={})=>{let{albumId:o,statPlace:r,statUserSalt:s,statTrackCode:a,refreshStatAuthToken:l,autoplay:u,isMobile:c,refDomain:m,deviceId:h,interactiveData:y}=ra(this.videoConfig,n),g=y?.projectInfo?.pid,T=this.interactiveController?.state.isReplay$.getValue()??!1;T&&(this.prevIsid=void 0);let{unitedVideoId:k,isClip:D=!1}=t;if(this.uiConfig.features.statistics&&k)return new Fh.OneStat({movieId:k,albumId:o,place:r,trackCode:a,autoplay:(u&&!this.interactiveController)??!1,mobile:c,clip:D,refDomain:m,deviceId:h,...g&&(!this.isInited||T)&&{projectId:Number(g)}},{refreshAuthToken:l,userSalt:s,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})};this.logger=new ai.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new ai.Subscription,this.interactiveSubscription=new ai.Subscription,this.graphMadePause=!1,window?.videoPlayerConfig?.debugLogs&&this.subscription.add(this.logger.log$.subscribe(t=>{console.log("%c player web component ","background:#77dd77;",`${t.component}`,t.message)}))}connectedCallback(){if(this.isInited)return;this.initPlayerRootContainers();let t=this.getAttribute("stub-title")??void 0,n=this.getAttribute("stub-thumb-url")??void 0;this.svelteStubComponent=new Ah({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){this.annotationsApi?.destroy(),this.mediaSessionApi?.destroy(),this.svelteRootComponent?.$destroy(),this.svelteStubComponent?.$destroy(),this.subscription.unsubscribe(),this.unsubscribePlayerPhaseSubscription?.(),this.interactiveController?.destroy(),this.interactiveSubscription.unsubscribe(),this.internalsExposure?.destroy()}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(t){return this.store?.ui.controls.disabledControls$?.includes(t)||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){if(!this.videoConfig)return;let{albumId:r,statPlace:s,statAuthToken:a,preload:l,autoplay:u,volume:c,muted:m,fromTime:h,canRewindLive:y,supportLink:g,showAds:T,adsSlotId:k,adsParams:D={},adsPreviewParam:I,interfaceLanguage:C,isCyrillicRelatedInterface:P,logoClickable:G,logoHidden:x,isMobile:O,isAudioDisabled:$,isLiveCatchUpMode:le,fullScreenTarget:K,failoverHosts:ee,canDownload:H,callbacks:J,interactiveData:ke,showThumbTimer:q,additionalButtons:ne=[],additionalSettingsMenuItems:F=[],additionalContextMenuItems:_e=[],repeat:oe,saveRate:Q,volumeMultiplier:Z,showEndScreen:se,showAutoplayNext:Ze}=ra(this.videoConfig,n),{sources:Je,title:Pe,thumbUrl:Se,unitedVideoId:Ae,isClip:We=!1,duration:X,adsParams:he={},videoEpisodes:Ie,previewThumbsData:Ge,subtitles:tt,live:it}=t,rt={...D,...he},$e=this.getNextVideoInfo(),pe={sources:Je,title:Pe,thumbUrl:Se,subtitles:tt,unitedVideoId:Ae,isClip:We,live:it,albumId:r,statPlace:s,autoplay:u,muted:m,volume:c,fromTime:h,canRewindLive:y,showAds:T,adsSlotId:k,adsParams:rt,adsPreviewParam:I,duration:X,logoClickable:G,logoHidden:x,isMobile:O,repeat:oe,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:$e.nextVideoTitle,endScreenVideoThumb:$e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ee={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(pe)}`});let Me=this.interactiveController?.state.statistics$.getValue(),Xe=Me?.oneStat||this.createOneStat(t,n);Xe&&(this.statistics=new Ll(Xe,Me?.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new lr(this.uiConfig.sentry,{version:or,env:Hs},{movieId:Ae,albumId:r,place:s,autoplay:(u&&!this.interactiveController)??!1,mobile:O,clip:We}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...lr.getInstance()};let Oe=!!ke,fe=[],ct="tooltip_interactive_go_back_disabled_first";if(Oe&&this.interactiveController){let Fe=this.interactiveController.state.isInitialChapter$.getValue(),wt=this.interactiveController.getHistoryState();Fe&&fe.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||fe.push("SEEK_TO_INTERACTIVE_BUTTON"),wt.hasPrevChapter$.getValue()||(fe.push("PLAY_PREV_CHAPTER_BUTTON"),Fe||(wt.isGoBackLimited$.getValue()?ct="tooltip_interactive_go_back_disabled_limit":ct="tooltip_interactive_go_back_disabled"))}let ht=()=>{this.isInited=!1,this.prevIsid=void 0;let Fe=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();J.onReplayInteractiveVideo&&!Fe?J.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=op({player:o,interfaceLanguage:C,isCyrillicRelatedInterface:P,videoId:Ae,isClip:We,isLiveCatchUpMode:le,isAudioDisabled:$,statAuthToken:a,callbacks:J,webApi:Ee,videoEpisodes:Ie,previewThumbsData:Ge,canDownload:H,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:fe,isInteractive:Oe,saveRate:Q,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ht,playPrevChapterDisabledTooltip:ct,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?ne:[],additionalSettingsMenuItems:F??[],additionalContextMenuItems:_e??[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:oe&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure});let{stores:gt}=this.microStoresRoot=Oh();this.subscription.add(this.store.state.currentFormat$.subscribe(Fe=>J?.onCurrentFormatChanged?.(Fe))),this.subscription.add(gt.interactiveControlsOpacity$.subscribe(Fe=>{Fe!==null&&this?.interactiveController?.setDisabledControls(Fe)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Fe=>J?.onThroughputEstimationChanged?.(Fe))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Fe=>J?.onTrafficSavingEnabledChanged?.(Fe)));let bt=!0;this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Fe=>{bt?bt=!1:J?.onCurrentPlaybackRateChanged?.(Fe)})),this.subscription.add(this.store.state.volume$.subscribe(Fe=>J?.onVolumeChange?.(Fe))),this.subscription.add(this.store.state.muted$.subscribe(Fe=>Fe?J?.onMute?.():J?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(Fe=>J?.onVideoBitrateChanged?.(Fe))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Fe=>{let wt=this.store?.ui.controls.disabledControls$;wt&&(Fe&&!wt.includes(_s)&&wt.add(_s),Fe||wt.remove(_s))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Fe=>{if(!ai.clientChecker.isSamsungBrowser||!Fe||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Fe=>J?.onVSIDChanged?.(Fe))),this.initMediaSession(),this.svelteRootComponent=new Sh({target:this.playerContainer,props:{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Je,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Pe,thumbUrl:Se,subtitles:tt,live:it,preload:l,autoplay:u,muted:m,volume:c,fromTime:h,canRewindLive:y,supportLink:g,showAds:T,adsSlotId:k,adsParams:rt,adsPreviewParam:I,duration:X,logoClickable:G,logoHidden:x,isMobile:O,failoverHosts:ee,fullScreenTarget:K,saveRate:Q,shadowRootContainer:this.shadowRootContainer,showMiniTimer:q,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:$e.nextVideoTitle,endScreenVideoThumb:$e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Z,showEndScreen:se,showAutoplayNext:Ze}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.()),this.internalsExposure?.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log})}addPlayerInfoSubscriptions(){let t=this.store;if(!t)return;let n=this.videoConfig?.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(r=>n.onPlayerPhaseChanged?.(r))).add(t.state.playbackState$.subscribe(r=>n.onPlaybackStateChanged?.(r))).add(t.state.isLive$.subscribe(r=>n.onIsLiveChanged?.(r))).add(t.state.isActiveLive$.subscribe(r=>n.onIsActiveLiveChanged?.(r))).add(t.state.isAudioAvailable$.subscribe(r=>n.onIsAudioAvailableChanged?.(r))).add(t.state.currentQuality$.subscribe(r=>n.onCurrentQualityChanged?.(r))).add(t.state.availableQualities$.subscribe(r=>n.onAvailableQualitiesChanged?.(r.map(({value:s})=>s).filter(s=>s!=="auto")))).add(t.state.availableAudioStreams$.subscribe(r=>{r.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(t.ui.isPictureInPictureActive$.subscribe(r=>r?n.onPiPEnter?.():n.onPiPExit?.()));let o=n?.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(r=>o.onControlsVisibleChanged?.(r))).add(t.ui.isMobile.subscribe(r=>o.onIsMobileChanged?.(r))).add(t.ui.playerSize.subscribe(r=>o.onPlayerSizeChanged?.(r))).add(t.ui.controls.prevButton.subscribe(r=>o.onPrevButtonChanged?.(r))).add(t.ui.controls.playButton.subscribe(r=>o.onPlayButtonChanged?.(r))).add(t.ui.controls.replayButton.subscribe(r=>o.onReplayButtonChanged?.(r))).add(t.ui.controls.nextButton.subscribe(r=>o.onNextButtonChanged?.(r))).add(t.ui.controls.playPrevChapterButton.subscribe(r=>o.onPlayPrevChapterChanged?.(r))).add(t.ui.controls.seekToInteractiveButton.subscribe(r=>o.onSeekToInteractiveButtonChanged?.(r))).add(t.ui.controls.interactiveGraphButton.subscribe(r=>o.onGraphButtonChanged?.(r))).add(t.ui.controls.liveButton.subscribe(r=>o.onLiveButtonChanged?.(r))).add(t.ui.controls.time.subscribe(r=>o.onTimeUpdateChanged?.(r))).add(t.ui.controls.episodes.subscribe(r=>o.onEpisodesChanged?.(r))).add(t.ui.controls.subtitles.subscribe(r=>o.onSubtitlesChanged?.(r))).add(t.ui.controls.settings.subscribe(r=>o.onSettingsChanged?.(r))).add(t.ui.controls.fullscreen.subscribe(r=>o.onFullscreenChanged?.(r))).add(t.ui.controls.chromecast.subscribe(r=>o.onChromecastChanged?.(r))).add(t.ui.controls.pip.subscribe(r=>o.onPipChanged?.(r))).add(t.ui.controls.vkLogo.subscribe(r=>o.onVkLogoChanged?.(r))).add(t.ui.controls.interactiveTimeIndicator.subscribe(r=>o.onInteractiveTimeIndicatorChanged?.(r))).add(t.ui.controls.timeline.subscribe(r=>o.onTimelineChanged?.(r)))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(t,n=!0){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&(0,ai.isNonNullable)(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),this.svelteRootComponent?.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let t=this.interactiveController?.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:t}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let n=this.store?.interfaceLanguage$,o=n?qe(n):this.videoConfig.interfaceLanguage,{projectInfo:r,initChapterId:s,historyApi:a,videoLoader:l}=this.videoConfig.interactiveData;this.interactiveController=new t({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:o,graph:this.uiConfig.features.interactiveGraph,projectInfo:r,initChapterId:s,historyApi:a,vkVideoLoader:l,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat});let{isInteractiveExpectation$:u,isSeekable$:c}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(c.subscribe(h=>{if(!this.isInited)return;let y=this.store;h?y.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):y.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(u.subscribe(h=>{this.store&&this.store.state.isInteractiveExpectation$.set(h)}));let m=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(h=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...h.config,title:r?.title||h.config.title};let y=m?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(h.player,y),m&&(m=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:h,actionType:y})=>{if(!this.store)return;let g=u.getValue();if(h==="action-choice"&&y==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(xs)),h==="action-choice-canceled"){let T=qe(this.store.state.isPlaying$)||g;if(this.videoConfig?.isMobile&&T){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let h=this.interactiveController.getHistoryState();this.subscription.add(h.history$.subscribe(y=>{y.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(y)}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),this.videoConfig?.callbacks.onInteractiveTimeIndicatorClick?.()})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(h=>{this.log({message:h.toString()})}))}catch(t){this.log({message:t.message})}}initPlayer(t,n={}){if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=ra(Vy,(0,ai.cloneDeepWith)(t,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=hd(n.ui??{}),this.coreConfig=n.core??{configName:[]},this.statisticsConfig=n.statistics??{},this.sentry={config:this.uiConfig.sentry??{}},this.uiConfig.features.exposeInternalsToGlobal&&(this.internalsExposure??=new ai.InternalsExposure("UI")),(0,ai.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.uiConfig.features.mediaSession??this.videoConfig.isMediaSessionEnabled??!0),(0,ai.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.videoConfig.isMobile=this.uiConfig.isMobile??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen??this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=this.uiConfig.features.autoplayNext??this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=this.uiConfig.features.nextPrevButtons??this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&this.videoConfig.videos?.[this.videoConfig.videoIndex]?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=oa.getLatestSupportedVersion():this.pictureInPictureApi=new ar),this.mediaSessionApi=this.uiConfig.features.mediaSession?new ia:void 0,this.annotationsApi=this.uiConfig.features.annotations?new sa:void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.svelteStubComponent?.$destroy(),this.svelteRootComponent?.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),Rh(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();this.svelteRootComponent?.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(t=>{t==="video"?this.setupMediaSessionForVideo():t==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let t="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:t}),this.mediaSessionApi.updateActionHandlers(n),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}play(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("LiveWaitingStart")||this.store?.playerPhase.is("LiveWaitingRecover")||this.store?.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){if(!this.videoConfig)return;this.log({message:"stop"});let t=!!this.interactiveController;t&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0),this.svelteStubComponent?.$destroy(),this.mediaSessionApi?.destroy();let n=this.videoConfig.videos[0];n&&(this.svelteRootComponent?.$destroy(),t?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(n))}setMuted(t){this.log({message:`set muted, muted: ${t}`}),this.svelteRootComponent?.setMuted(t)}setVolume(t){this.log({message:`set volume, volume: ${t}`}),this.svelteRootComponent?.setVolume(t)}setRepeat(t){this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,this.svelteRootComponent?.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),this.svelteRootComponent?.seekTime(t))}seekEpisodeStartTime(t){this.log({message:`seek episode start time, time: ${t}`}),this.svelteRootComponent?.seekEpisodeStartTime(t)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(t){this.log({message:`set playback rate to: ${t}`}),this.svelteRootComponent?.setPlaybackRate(t)}setAutoQualityLimits(t){this.log({message:`set auto quality limitation. Max: ${t.max??"none"}. Min: ${t.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(t)}addLanguage(t){this.store?.actions.internal.addLanguage(t)}async setLanguage(t){await this.store?.actions.internal.setLanguage(t)}setLiveStart(t){this.log({message:"live started"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingStart(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(t,{autoplay:!0})}setLiveWaitingRecover(){this.log({message:"live waiting"}),this.store?.actions.internal.setLiveWaitingRecover(!0),this.store?.destroy()}setLiveWaitingRecord(){this.log({message:"post live"}),this.store?.actions.internal.setLiveWaitingRecord(!0),this.store?.destroy()}setLiveEnd(t){this.log({message:"live ended"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingRecord(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(t,{autoplay:!1})}setLiveLowLatency(t){this.log({message:"live switch to low latency "+t}),this.store?.actions.external.setLiveLowLatency(t)}getDeviceId(){return this.statistics?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(t){if(this.interactiveController&&this.store?.state.positionExact$){let n=qe(this.store.state.positionExact$),r=qe(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,ai.once)()).subscribe(()=>{r&&n>=r.time?this.seekTime(r.time):this.seekTime(n),t?.()});let s=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:s.chapter.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(t,n=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(t,n){this.store?.actions.external.updateAdditionalSettingsItem(t,n)}addAdditionalSettingsItem(t){this.store?.actions.external.addAdditionalSettingsItem(t)}removeAdditionalSettingsItem(t){this.store?.actions.external.removeAdditionalSettingsItem(t)}updateAdditionalContextItem(t,n){this.store?.actions.external.updateAdditionalContextItem(t,n)}addAdditionalContextItem(t){this.store?.actions.external.addAdditionalContextItem(t)}removeAdditionalContextItem(t){this.store?.actions.external.removeAdditionalContextItem(t)}updateAdditionalButton(t,n){this.store?.actions.external.updateAdditionalButton(t,n)}addAdditionalButton(t){this.store?.actions.external.addAdditionalButton(t)}removeAdditionalButton(t){this.store?.actions.external.removeAdditionalButton(t)}updateStatContext(t){this.statistics&&this.statistics.oneStat.updateContext(t)}handleTimerNextVideo(t){this.store?.actions.internal.setTimerNextVideoRunning(t)}focus(){this.svelteRootComponent?.keyboardControls?.focus?.()}};var es=require("@vkontakte/videoplayer-shared"),ca=require("@vkontakte/videoplayer-core"),By=()=>{window.customElements.define("vk-video-player",ua)};