@vkontakte/videoplayer 1.1.48-dev.5b1950dd.0 → 1.1.48-dev.783deb6f.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/es2015.esm.js CHANGED
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.48-dev.5b1950dd.0
3
- * Thu, 24 Oct 2024 13:26:49 GMT
2
+ * @vkontakte/videoplayer v1.1.48-dev.783deb6f.0
3
+ * Mon, 28 Oct 2024 07:19:30 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-48/doc/
5
5
  */
6
- var K_=Object.defineProperty,x_=Object.defineProperties;var j_=Object.getOwnPropertyDescriptors;var Ef=Object.getOwnPropertySymbols;var G_=Object.prototype.hasOwnProperty,Y_=Object.prototype.propertyIsEnumerable;var Jl=(i,e,t)=>e in i?K_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Qe=(i,e)=>{for(var t in e||(e={}))G_.call(e,t)&&Jl(i,t,e[t]);if(Ef)for(var t of Ef(e))Y_.call(e,t)&&Jl(i,t,e[t]);return i},yt=(i,e)=>x_(i,j_(e));var Pi=(i,e,t)=>Jl(i,typeof e!="symbol"?e+"":e,t);var mt=(i,e,t)=>new Promise((n,o)=>{var r=l=>{try{a(t.next(l))}catch(u){o(u)}},s=l=>{try{a(t.throw(l))}catch(u){o(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,s);a((t=t.apply(i,e)).next())});function me(){}function se(i,e){for(let t in e)i[t]=e[t];return i}function $l(i){return i()}function ys(){return Object.create(null)}function ft(i){i.forEach($l)}function Jt(i){return typeof i=="function"}function B(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var vs;function vo(i,e){return i===e?!0:(vs||(vs=document.createElement("a")),vs.href=e,i===vs.href)}function Af(i){return Object.keys(i).length===0}function $t(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 Ye(i){let e;return $t(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push($t(e,t))}function Le(i,e,t,n){if(i){let o=Mf(i,e,t,n);return i[0](o)}}function Mf(i,e,t,n){return i[1]&&n?se(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=Mf(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 ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Lf(i){return i==null?"":i}function br(i){return i&&Jt(i.destroy)?i.destroy:me}var er=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var ws=class i{constructor(e){Pi(this,"_listeners","WeakMap"in er?new WeakMap:void 0);Pi(this,"_observer");Pi(this,"options");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(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};ws.entries="WeakMap"in er?new WeakMap:void 0;var Vf=!1;function Rf(){Vf=!0}function Bf(){Vf=!1}function _(i,e){i.appendChild(e)}function be(i,e,t){let n=Nf(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,X_(n,o)}}function Nf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function X_(i,e){return _(i.head||i,e),e.sheet}function w(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function li(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function I(i){return document.createElement(i)}function M(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function qe(i){return document.createTextNode(i)}function Y(){return qe(" ")}function Je(){return qe("")}function ke(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ai(i){return function(e){return e.preventDefault(),i.call(this,e)}}function vt(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 we(i,e){for(let t in e)f(i,t,e[t])}function Df(i){return Array.from(i.childNodes)}function Ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function _i(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function G(i,e,t){i.classList.toggle(e,!!t)}function Of(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ot(i,e){return new i(e)}var Lo;function yo(i){Lo=i}function vr(){if(!Lo)throw new Error("Function called outside component initialization");return Lo}function Nt(i){vr().$$.on_mount.push(i)}function $n(i){vr().$$.on_destroy.push(i)}function yr(i,e){return vr().$$.context.set(i,e),e}function wr(i){return vr().$$.context.get(i)}function Zr(){return vr().$$.context}function Dn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var tr=[];var ve=[],Cr=[],ta=[],Hf=Promise.resolve(),ia=!1;function na(){ia||(ia=!0,Hf.then(ks))}function eo(){return na(),Hf}function Xr(i){Cr.push(i)}function Ue(i){ta.push(i)}var ea=new Set,kr=0;function ks(){if(kr!==0)return;let i=Lo;do{try{for(;kr<tr.length;){let e=tr[kr];kr++,yo(e),nh(e.$$)}}catch(e){throw tr.length=0,kr=0,e}for(yo(null),tr.length=0,kr=0;ve.length;)ve.pop()();for(let e=0;e<Cr.length;e+=1){let t=Cr[e];ea.has(t)||(ea.add(t),t())}Cr.length=0}while(tr.length);for(;ta.length;)ta.pop()();ia=!1,ea.clear(),yo(i)}function nh(i){if(i.fragment!==null){i.update(),ft(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Xr)}}function qf(i){let e=[],t=[];Cr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Cr=e}var Cs=new Set,ir;function ae(){ir={r:0,c:[],p:ir}}function ue(){ir.r||ft(ir.c),ir=ir.p}function d(i,e){i&&i.i&&(Cs.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Cs.has(i))return;Cs.add(i),ir.c.push(()=>{Cs.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function wt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}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 Vo(i){return typeof i=="object"&&i!==null?i:{}}var oh=["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"],rh=new Set([...oh]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function L(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Xr(()=>{let r=i.$$.on_mount.map($l).filter(Jt);i.$$.on_destroy?i.$$.on_destroy.push(...r):ft(r),i.$$.on_mount=[]}),o.forEach(Xr)}function V(i,e){let t=i.$$;t.fragment!==null&&(qf(t.after_update),ft(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function lh(i,e){i.$$.dirty[0]===-1&&(tr.push(i),na(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,s=null,a=[-1]){let l=Lo;yo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:ys(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:ys(),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,...C)=>{let g=C.length?C[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&lh(i,m)),h}):[],u.update(),c=!0,ft(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Rf();let m=Df(e.target);u.fragment&&u.fragment.l(m),m.forEach(y)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),L(i,e.target,e.anchor),Bf(),ks()}yo(l)}var ah;typeof HTMLElement=="function"&&(ah=class extends HTMLElement{constructor(e,t,n){super();Pi(this,"$$ctor");Pi(this,"$$s");Pi(this,"$$c");Pi(this,"$$cn",!1);Pi(this,"$$d",{});Pi(this,"$$r",!1);Pi(this,"$$p_d",{});Pi(this,"$$l",{});Pi(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return mt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=I("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){w(c,a,m)},d:function(c){c&&y(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Of(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=oa(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:yt(Qe({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=oa(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=oa(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function oa(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.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?null:e;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 N=class{constructor(){Pi(this,"$$");Pi(this,"$$set")}$destroy(){V(this,1),this.$destroy=me}$on(e,t){if(!Jt(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&&!Af(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Uf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Uf);import"@vkontakte/videoplayer-core";import{noop as ls,safeStorage as ny,throttleFn as oy,clientChecker as ry}from"@vkontakte/videoplayer-shared";import{SeekAction as sy}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as uh,fillWithDefault as ch,VideoQuality as fh}from"@vkontakte/videoplayer-shared";var dh={isMobile:void 0,defaultLanguage:uh.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:fh.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,autoplayNext:!0},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},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},zf=i=>ch(i,dh),Wf=i=>yr("ui-config",i),Yt=()=>wr("ui-config");var Jr="vk_player_debug_panel_opened";var Kf="videoplayer",xf="videoplayer";var fo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},jf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Gf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Yf=new Set(["ShiftRight","ShiftLeft"]);var Qf=["TIMELINE"],$r=[...Qf,"GRAPH_BUTTON"],ra=[...Qf,"PLAY_BUTTON"],Ss=[...$r,"PLAY_BUTTON"];var wo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(wo||{}),or={xs:0,s:1,m:2,l:3,xl:4};var Sr=[];function jn(i,e){return{subscribe:Oe(i,e).subscribe}}function Oe(i,e=me){let t,n=new Set;function o(a){if(B(i,a)&&(i=a,t)){let l=!Sr.length;for(let u of n)u[1](),Sr.push(u,i);if(l){for(let u=0;u<Sr.length;u+=2)Sr[u][0](Sr[u+1]);Sr.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 ei(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 jn(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=Jt(g)?g:me},C=o.map((g,S)=>$t(g,k=>{u[S]=k,c&=~(1<<S),l&&h()},()=>{c|=1<<S}));return l=!0,h(),function(){ft(C),m(),l=!1}})}import{assertNonNullable as Zf,VERSION as mh}from"@vkontakte/videoplayer-shared";import{VERSION as ph}from"@vkontakte/videoplayer-core";import{VERSION as _h}from"@vkontakte/videoplayer-statistics";var Ts="prod",Tr="1.1.48-dev.5b1950dd.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 Xf=Symbol("storeContext"),Jf=Symbol("microStoresContext"),$f=(i,e)=>{yr(Xf,i),yr(Jf,e),Ts==="dev"&&(window.app={store:i,microStores:e})},ot=()=>{let i=wr(Xf);return Zf(i,"Store context is empty!"),i},On=()=>{let i=wr(Jf);return Zf(i,"MicroStores context is empty!"),i},Pt=(i,e)=>sa(i,i.getValue(),e),sa=(i,e,t)=>jn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),ed=(i,e,t)=>{var F,T,v,E,H,U;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s=(T=(F=n.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?T:0,a=(E=(v=n.rttEstimation$.getValue())==null?void 0:v.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Tr} (core: ${ph}, stat: ${_h}, shared: ${mh})`,c=Ye(t.state.errorLog$),m=c.length?`
6
+ var K_=Object.defineProperty,x_=Object.defineProperties;var j_=Object.getOwnPropertyDescriptors;var Ef=Object.getOwnPropertySymbols;var G_=Object.prototype.hasOwnProperty,Y_=Object.prototype.propertyIsEnumerable;var Jl=(i,e,t)=>e in i?K_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Qe=(i,e)=>{for(var t in e||(e={}))G_.call(e,t)&&Jl(i,t,e[t]);if(Ef)for(var t of Ef(e))Y_.call(e,t)&&Jl(i,t,e[t]);return i},yt=(i,e)=>x_(i,j_(e));var Pi=(i,e,t)=>Jl(i,typeof e!="symbol"?e+"":e,t);var pt=(i,e,t)=>new Promise((n,o)=>{var r=l=>{try{a(t.next(l))}catch(u){o(u)}},s=l=>{try{a(t.throw(l))}catch(u){o(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,s);a((t=t.apply(i,e)).next())});function me(){}function se(i,e){for(let t in e)i[t]=e[t];return i}function $l(i){return i()}function ys(){return Object.create(null)}function ft(i){i.forEach($l)}function Jt(i){return typeof i=="function"}function B(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var vs;function vo(i,e){return i===e?!0:(vs||(vs=document.createElement("a")),vs.href=e,i===vs.href)}function Af(i){return Object.keys(i).length===0}function $t(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 Ye(i){let e;return $t(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push($t(e,t))}function Le(i,e,t,n){if(i){let o=Mf(i,e,t,n);return i[0](o)}}function Mf(i,e,t,n){return i[1]&&n?se(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=Mf(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 ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Lf(i){return i==null?"":i}function br(i){return i&&Jt(i.destroy)?i.destroy:me}var er=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var ws=class i{constructor(e){Pi(this,"_listeners","WeakMap"in er?new WeakMap:void 0);Pi(this,"_observer");Pi(this,"options");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(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};ws.entries="WeakMap"in er?new WeakMap:void 0;var Vf=!1;function Rf(){Vf=!0}function Bf(){Vf=!1}function _(i,e){i.appendChild(e)}function be(i,e,t){let n=Nf(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,X_(n,o)}}function Nf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function X_(i,e){return _(i.head||i,e),e.sheet}function w(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function li(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function I(i){return document.createElement(i)}function M(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function qe(i){return document.createTextNode(i)}function Y(){return qe(" ")}function Je(){return qe("")}function ke(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ai(i){return function(e){return e.preventDefault(),i.call(this,e)}}function vt(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 we(i,e){for(let t in e)f(i,t,e[t])}function Df(i){return Array.from(i.childNodes)}function Ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function _i(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function j(i,e,t){i.classList.toggle(e,!!t)}function Of(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ft(i,e){return new i(e)}var Lo;function yo(i){Lo=i}function vr(){if(!Lo)throw new Error("Function called outside component initialization");return Lo}function Nt(i){vr().$$.on_mount.push(i)}function $n(i){vr().$$.on_destroy.push(i)}function yr(i,e){return vr().$$.context.set(i,e),e}function wr(i){return vr().$$.context.get(i)}function Zr(){return vr().$$.context}function Dn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var tr=[];var ve=[],Cr=[],ta=[],Hf=Promise.resolve(),ia=!1;function na(){ia||(ia=!0,Hf.then(ks))}function eo(){return na(),Hf}function Xr(i){Cr.push(i)}function Ue(i){ta.push(i)}var ea=new Set,kr=0;function ks(){if(kr!==0)return;let i=Lo;do{try{for(;kr<tr.length;){let e=tr[kr];kr++,yo(e),nh(e.$$)}}catch(e){throw tr.length=0,kr=0,e}for(yo(null),tr.length=0,kr=0;ve.length;)ve.pop()();for(let e=0;e<Cr.length;e+=1){let t=Cr[e];ea.has(t)||(ea.add(t),t())}Cr.length=0}while(tr.length);for(;ta.length;)ta.pop()();ia=!1,ea.clear(),yo(i)}function nh(i){if(i.fragment!==null){i.update(),ft(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Xr)}}function qf(i){let e=[],t=[];Cr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Cr=e}var Cs=new Set,ir;function ae(){ir={r:0,c:[],p:ir}}function ue(){ir.r||ft(ir.c),ir=ir.p}function d(i,e){i&&i.i&&(Cs.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Cs.has(i))return;Cs.add(i),ir.c.push(()=>{Cs.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function wt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}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 Vo(i){return typeof i=="object"&&i!==null?i:{}}var oh=["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"],rh=new Set([...oh]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function L(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Xr(()=>{let r=i.$$.on_mount.map($l).filter(Jt);i.$$.on_destroy?i.$$.on_destroy.push(...r):ft(r),i.$$.on_mount=[]}),o.forEach(Xr)}function V(i,e){let t=i.$$;t.fragment!==null&&(qf(t.after_update),ft(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function lh(i,e){i.$$.dirty[0]===-1&&(tr.push(i),na(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,s=null,a=[-1]){let l=Lo;yo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:ys(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:ys(),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,...C)=>{let g=C.length?C[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&lh(i,m)),h}):[],u.update(),c=!0,ft(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Rf();let m=Df(e.target);u.fragment&&u.fragment.l(m),m.forEach(y)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),L(i,e.target,e.anchor),Bf(),ks()}yo(l)}var ah;typeof HTMLElement=="function"&&(ah=class extends HTMLElement{constructor(e,t,n){super();Pi(this,"$$ctor");Pi(this,"$$s");Pi(this,"$$c");Pi(this,"$$cn",!1);Pi(this,"$$d",{});Pi(this,"$$r",!1);Pi(this,"$$p_d",{});Pi(this,"$$l",{});Pi(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return pt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=I("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){w(c,a,m)},d:function(c){c&&y(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Of(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=oa(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:yt(Qe({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=oa(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=oa(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function oa(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.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?null:e;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 N=class{constructor(){Pi(this,"$$");Pi(this,"$$set")}$destroy(){V(this,1),this.$destroy=me}$on(e,t){if(!Jt(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&&!Af(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Uf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Uf);import"@vkontakte/videoplayer-core";import{noop as ls,safeStorage as ny,throttleFn as oy,clientChecker as ry}from"@vkontakte/videoplayer-shared";import{SeekAction as sy}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as uh,fillWithDefault as ch,VideoQuality as fh}from"@vkontakte/videoplayer-shared";var dh={isMobile:void 0,defaultLanguage:uh.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:fh.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,autoplayNext:!0,previewNoEmptySpace:!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},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},zf=i=>ch(i,dh),Wf=i=>yr("ui-config",i),Dt=()=>wr("ui-config");var Jr="vk_player_debug_panel_opened";var Kf="videoplayer",xf="videoplayer";var fo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},jf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Gf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Yf=new Set(["ShiftRight","ShiftLeft"]);var Qf=["TIMELINE"],$r=[...Qf,"GRAPH_BUTTON"],ra=[...Qf,"PLAY_BUTTON"],Ss=[...$r,"PLAY_BUTTON"];var wo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(wo||{}),or={xs:0,s:1,m:2,l:3,xl:4};var Sr=[];function jn(i,e){return{subscribe:Oe(i,e).subscribe}}function Oe(i,e=me){let t,n=new Set;function o(a){if(B(i,a)&&(i=a,t)){let l=!Sr.length;for(let u of n)u[1](),Sr.push(u,i);if(l){for(let u=0;u<Sr.length;u+=2)Sr[u][0](Sr[u+1]);Sr.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 ei(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 jn(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=Jt(g)?g:me},C=o.map((g,S)=>$t(g,k=>{u[S]=k,c&=~(1<<S),l&&h()},()=>{c|=1<<S}));return l=!0,h(),function(){ft(C),m(),l=!1}})}import{assertNonNullable as Zf,VERSION as mh}from"@vkontakte/videoplayer-shared";import{VERSION as ph}from"@vkontakte/videoplayer-core";import{VERSION as _h}from"@vkontakte/videoplayer-statistics";var Ts="prod",Tr="1.1.48-dev.783deb6f.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 Xf=Symbol("storeContext"),Jf=Symbol("microStoresContext"),$f=(i,e)=>{yr(Xf,i),yr(Jf,e),Ts==="dev"&&(window.app={store:i,microStores:e})},ot=()=>{let i=wr(Xf);return Zf(i,"Store context is empty!"),i},On=()=>{let i=wr(Jf);return Zf(i,"MicroStores context is empty!"),i},Pt=(i,e)=>sa(i,i.getValue(),e),sa=(i,e,t)=>jn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),ed=(i,e,t)=>{var F,T,v,E,H,U;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s=(T=(F=n.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?T:0,a=(E=(v=n.rttEstimation$.getValue())==null?void 0:v.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Tr} (core: ${ph}, stat: ${_h}, shared: ${mh})`,c=Ye(t.state.errorLog$),m=c.length?`
7
7
  `+c.map((W,ne)=>{var oe;let de=`${ne}) Type: ${W.id}
8
8
  `,q=`Message: ${W.message} (${W.thrown})
9
9
  `,X=`Trace: ${(oe=W.thrown)==null?void 0:oe.stack}
10
10
  `;return de+q+X}).join(`
11
11
  `):void 0,h=t.state.isAudioDisabled?"disabled":Ye(t.state.isAudioAvailable$)?void 0:"unavailable",C=i.info.currentVideoStream$.getValue(),g=i.info.currentAudioStream$.getValue(),S=[];C&&S.push(`Video: ${(H=C==null?void 0:C.codec)!=null?H:""}`+(C!=null&&C.hdr?" (HDR)":"")),g&&S.push(`Audio: ${(U=g==null?void 0:g.codec)!=null?U:""}`+(g!=null&&g.language?` (${g.language})`:""));let k={Version:u,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),VSID:Ye(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:S.join(", "),Quality:`${l} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:h,Position:`${Ye(t.state.positionExact$)}s`,State:`${Ye(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${r}`,URL:window.location.href,Errors:m};return Object.entries(k).filter(([W,ne])=>ne!==void 0).map(([W,ne])=>`${W}: ${ne}`).join(`
12
- `)},td=(i,e,t)=>{var U,W,ne,de;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s={version:Tr,viewport:`${o}x${r}`,volume:Math.round(Ye(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-Ye(t.state.positionExact$),0));let C=n.throughputEstimation$.getValue();C&&(s.speed=C);let g=n.videoBitrate$.getValue();g&&(s.bitrate=g);let S=n.currentVideoSegmentLength$.getValue();S&&(s.currentVideoSegmentLength=S);let k=n.currentAudioSegmentLength$.getValue();k&&(s.currentAudioSegmentLength=k);let F=Ye(t.vsid);typeof F=="string"&&(s.vsid=F);let T=(U=i.info.currentVideoStream$.getValue())==null?void 0:U.codec;T&&(s.videoCodec=T);let v=(W=i.info.currentAudioStream$.getValue())==null?void 0:W.codec;v&&(s.audioCodec=v),((ne=i.info.currentVideoStream$.getValue())==null?void 0:ne.hdr)&&(s.hdr=!0);let H=(de=i.info.currentAudioStream$.getValue())==null?void 0:de.language;return H&&(s.audioLanguage=H),s},id=(i,e)=>rr(i,e,"mp4"),nd=i=>!i.type,od=i=>!!i.type,rd=()=>{let e=[],t=0;return{add:(n,o)=>{e[t]=[n,o],t=(t+1)%10},find:n=>e.find(([o])=>o===n)}},Is=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return mt(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let t=yield fetch(e,{signal:this.destroyController.signal});if(t.ok)return yield t.text();throw t}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as la,safeStorage as Gn}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";var sd="vk_player_prefer_traffic_saving_enabled",ld="vk_player_preferred_volume",ad="vk_player_prefer_volume_mute",aa="vk_player_preferred_quality",ud="vk_player_preferred_stream_language",cd="vk_player_preferred_rate",fd="vk_player_preferred_autoplay_next",dd=i=>i>1?1:i<0?0:i,ua=i=>Gn.set(ld,dd(i).toString(10)),Ps=()=>{let i=Gn.get(ld);return la(i)?void 0:dd(parseFloat(i))},md=(i,e)=>Gn.set(aa,JSON.stringify({videoId:i,value:e})),ca=()=>Gn.remove(aa),pd=i=>{let e=Gn.get(aa);if(la(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){ca();return}return n},fa=(i,e)=>{e?Gn.set(i,"true"):Gn.remove(i)},da=i=>Gn.get(i)==="true",Es=i=>fa(ad,i),_d=()=>da(ad),hd=i=>fa(sd,i),gd=()=>da(sd),bd=()=>Gn.get(ud),ma=i=>Gn.set(ud,i),vd=i=>Gn.set(cd,JSON.stringify({rate:i})),yd=()=>{let i=Gn.get(cd);if(la(i))return;let{rate:e}=JSON.parse(i);return e},wd=i=>fa(fd,i),kd=()=>da(fd);import{PlaybackState as W8}from"@vkontakte/videoplayer-core";import{noop as mf}from"@vkontakte/videoplayer-shared";function hh(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T=i[2].default,v=Le(T,i,i[1],null),E=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],H={};for(let U=0;U<E.length;U+=1)H=se(H,E[U]);return{c(){e=M("svg"),v&&v.c(),t=M("g"),n=M("path"),o=M("path"),r=M("path"),s=M("path"),a=M("path"),l=M("defs"),u=M("filter"),c=M("feFlood"),m=M("feColorMatrix"),h=M("feOffset"),C=M("feGaussianBlur"),g=M("feColorMatrix"),S=M("feBlend"),k=M("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(C,"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(S,"in2","BackgroundImageFix"),f(S,"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"),we(e,H)},m(U,W){w(U,e,W),v&&v.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,C),_(u,g),_(u,S),_(u,k),F=!0},p(U,[W]){v&&v.p&&(!F||W&2)&&Re(v,T,U,U[1],F?Ve(T,U[1],W,null):Be(U[1]),null),we(e,H=He(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},W&1&&U[0]]))},i(U){F||(d(v,U),F=!0)},o(U){p(v,U),F=!1},d(U){U&&y(e),v&&v.d(U)}}}function gh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var pa=class extends N{constructor(e){super(),O(this,e,gh,hh,B,{})}},As=pa;import{isNullable as Td,InterfaceLanguage as Id}from"@vkontakte/videoplayer-shared";var bh={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"},Cd=bh;var vh={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"},Sd=vh;var ko=new Map;ko.set(Id.EN,Sd);ko.set(Id.RU,Cd);var Pd=new Map,_a=({language:i,pack:e,fallback:t})=>{if(ko.has(i)){let n=ko.get(i);ko.set(i,Qe(Qe({},n),e))}else ko.set(i,e);Pd.set(i,t)},ha=i=>ko.has(i),ga=(i,e,t,n)=>{var s;let o=ko.get(i),r=o==null?void 0:o[e];if(Td(r)){let a=(s=Pd.get(i))!=null?s:n,l=a?ko.get(a):void 0;r=l==null?void 0:l[e]}return Td(r)?e+Object.values(t!=null?t:{}).join(" "):t?r.replaceAll(/{(\w+?)}/g,(a,l)=>{var u;return(u=t[l])!=null?u:""}):r},j=(i,e)=>{let{interfaceLanguage$:t}=ot(),n=Ye(t),o=Yt();return ga(n,i,e,o.defaultLanguage)};import"@vkontakte/videoplayer-core";var Ir;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(Ir||(Ir={}));var yh=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,wh=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,kh=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ms="?",Ch="X-Sentry-Auth",Sh=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Th(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
12
+ `)},td=(i,e,t)=>{var U,W,ne,de;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s={version:Tr,viewport:`${o}x${r}`,volume:Math.round(Ye(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-Ye(t.state.positionExact$),0));let C=n.throughputEstimation$.getValue();C&&(s.speed=C);let g=n.videoBitrate$.getValue();g&&(s.bitrate=g);let S=n.currentVideoSegmentLength$.getValue();S&&(s.currentVideoSegmentLength=S);let k=n.currentAudioSegmentLength$.getValue();k&&(s.currentAudioSegmentLength=k);let F=Ye(t.vsid);typeof F=="string"&&(s.vsid=F);let T=(U=i.info.currentVideoStream$.getValue())==null?void 0:U.codec;T&&(s.videoCodec=T);let v=(W=i.info.currentAudioStream$.getValue())==null?void 0:W.codec;v&&(s.audioCodec=v),((ne=i.info.currentVideoStream$.getValue())==null?void 0:ne.hdr)&&(s.hdr=!0);let H=(de=i.info.currentAudioStream$.getValue())==null?void 0:de.language;return H&&(s.audioLanguage=H),s},id=(i,e)=>rr(i,e,"mp4"),nd=i=>!i.type,od=i=>!!i.type,rd=()=>{let e=[],t=0;return{add:(n,o)=>{e[t]=[n,o],t=(t+1)%10},find:n=>e.find(([o])=>o===n)}},Is=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return pt(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let t=yield fetch(e,{signal:this.destroyController.signal});if(t.ok)return yield t.text();throw t}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as la,safeStorage as Gn}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";var sd="vk_player_prefer_traffic_saving_enabled",ld="vk_player_preferred_volume",ad="vk_player_prefer_volume_mute",aa="vk_player_preferred_quality",ud="vk_player_preferred_stream_language",cd="vk_player_preferred_rate",fd="vk_player_preferred_autoplay_next",dd=i=>i>1?1:i<0?0:i,ua=i=>Gn.set(ld,dd(i).toString(10)),Ps=()=>{let i=Gn.get(ld);return la(i)?void 0:dd(parseFloat(i))},md=(i,e)=>Gn.set(aa,JSON.stringify({videoId:i,value:e})),ca=()=>Gn.remove(aa),pd=i=>{let e=Gn.get(aa);if(la(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){ca();return}return n},fa=(i,e)=>{e?Gn.set(i,"true"):Gn.remove(i)},da=i=>Gn.get(i)==="true",Es=i=>fa(ad,i),_d=()=>da(ad),hd=i=>fa(sd,i),gd=()=>da(sd),bd=()=>Gn.get(ud),ma=i=>Gn.set(ud,i),vd=i=>Gn.set(cd,JSON.stringify({rate:i})),yd=()=>{let i=Gn.get(cd);if(la(i))return;let{rate:e}=JSON.parse(i);return e},wd=i=>fa(fd,i),kd=()=>da(fd);import{PlaybackState as W8}from"@vkontakte/videoplayer-core";import{noop as mf}from"@vkontakte/videoplayer-shared";function hh(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T=i[2].default,v=Le(T,i,i[1],null),E=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],H={};for(let U=0;U<E.length;U+=1)H=se(H,E[U]);return{c(){e=M("svg"),v&&v.c(),t=M("g"),n=M("path"),o=M("path"),r=M("path"),s=M("path"),a=M("path"),l=M("defs"),u=M("filter"),c=M("feFlood"),m=M("feColorMatrix"),h=M("feOffset"),C=M("feGaussianBlur"),g=M("feColorMatrix"),S=M("feBlend"),k=M("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(C,"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(S,"in2","BackgroundImageFix"),f(S,"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"),we(e,H)},m(U,W){w(U,e,W),v&&v.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,C),_(u,g),_(u,S),_(u,k),F=!0},p(U,[W]){v&&v.p&&(!F||W&2)&&Re(v,T,U,U[1],F?Ve(T,U[1],W,null):Be(U[1]),null),we(e,H=He(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},W&1&&U[0]]))},i(U){F||(d(v,U),F=!0)},o(U){p(v,U),F=!1},d(U){U&&y(e),v&&v.d(U)}}}function gh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var pa=class extends N{constructor(e){super(),O(this,e,gh,hh,B,{})}},As=pa;import{isNullable as Td,InterfaceLanguage as Id}from"@vkontakte/videoplayer-shared";var bh={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"},Cd=bh;var vh={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"},Sd=vh;var ko=new Map;ko.set(Id.EN,Sd);ko.set(Id.RU,Cd);var Pd=new Map,_a=({language:i,pack:e,fallback:t})=>{if(ko.has(i)){let n=ko.get(i);ko.set(i,Qe(Qe({},n),e))}else ko.set(i,e);Pd.set(i,t)},ha=i=>ko.has(i),ga=(i,e,t,n)=>{var s;let o=ko.get(i),r=o==null?void 0:o[e];if(Td(r)){let a=(s=Pd.get(i))!=null?s:n,l=a?ko.get(a):void 0;r=l==null?void 0:l[e]}return Td(r)?e+Object.values(t!=null?t:{}).join(" "):t?r.replaceAll(/{(\w+?)}/g,(a,l)=>{var u;return(u=t[l])!=null?u:""}):r},G=(i,e)=>{let{interfaceLanguage$:t}=ot(),n=Ye(t),o=Dt();return ga(n,i,e,o.defaultLanguage)};import"@vkontakte/videoplayer-core";var Ir;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(Ir||(Ir={}));var yh=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,wh=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,kh=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ms="?",Ch="X-Sentry-Auth",Sh=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Th(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
13
13
  `),n,o;for(let r=0;r<t.length;++r){if(n=yh.exec(t[r]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||Ms,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=kh.exec(t[r]))o={filename:n[2],function:n[1]||Ms,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=wh.exec(t[r]))r===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||Ms,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=Ms),e.push(o)}return e.length?{value:Ed(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function Ed(i){return(i&&i.message||"No error message").split(`
14
- `).filter(t=>!!t)[0]}function Ih(i){try{let e=Th(i);if(e)return e}catch(e){}return{value:Ed(i),type:i&&i.name,stacktrace:{frames:[]}}}function Ph(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var Ls=class{constructor(e){if(e&&e.dsn){let t=Sh.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 yt(Qe({},this.getRequestBlank()),{exception:{values:[Ih(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(Ch,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Ph(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Ad(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function Eh(){return window}var Vs=class i extends Ls{constructor(e,t=Eh()){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",Qe({},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",Qe({},e)),this}setUser(e){return this.setKeyState("user",Qe({},e)),this}clone(){let e=new i(yt(Qe({},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:[Qe({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send(yt(Qe({},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=>Ad(t,n))):!1}getRequestBlank(){return Qe(yt(Qe({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(Qe({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(t){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>Ad(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(t){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 yt(Qe({},t),{[n]:r||a?[...r||[],...a||[]]:Qe(Qe({},typeof o!="string"?o:{}),typeof s!="string"?s:{})})},this._state)}setKeyState(e,t){this._state[e]=t}};import{isNonNullable as Rs,Subscription as Ah}from"@vkontakte/videoplayer-shared";var Bs=null,sr=class{constructor(e,t,n={}){!Bs&&e.dsn&&(this.sentryClient=new Vs({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Ah,this.options=e,this.context=n,Bs=this)}destroy(){var e,t;(e=this.sentryClient)==null||e.destroy(),(t=this.sentrySubscription)==null||t.unsubscribe(),Bs=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:C}=t;if(Rs(C)&&m.includes(C)||Rs(h)&&c.includes(h))return;if(Math.random()<=a||Rs(C)&&u.includes(C)||Rs(h)&&l.includes(h)){Object.keys(t).length&&o.setTags(Qe({version:this.version},t)),(Object.keys(r).length||Object.keys(n).length)&&o.setExtras(Qe(Qe({},r),n));try{h&&o.captureMessage(h,t.fatal?Ir.fatal:Ir.error),o.report(e)}catch(S){console.error(S)}}}static getInstance(){return Bs}};var Ns=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!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Ds=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Md=i=>{let e=i;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},es=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},Ro=()=>!!es(),Os=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},Fs=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},Ld=i=>{let e=window.screen;return(o=>mt(void 0,null,function*(){return 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))};import{clientChecker as Vd}from"@vkontakte/videoplayer-shared";var Rd=()=>({title:j("hotkey_map_modal_title"),closeBtnText:j("hotkey_map_modal_close_btn_text"),groups:[{title:j("hotkey_map_group_title_common"),items:[{description:j("hotkey_map_item_mute_description"),value:j("hotkey_map_item_mute_value")},{description:j("hotkey_map_item_volume_up_description"),value:j("hotkey_map_item_volume_up_value")},{description:j("hotkey_map_item_volume_down_description"),value:j("hotkey_map_item_volume_down_value")},{description:j("hotkey_map_item_pip_description"),value:j("hotkey_map_item_pip_value")},{description:j("hotkey_map_item_full_screen_description"),value:j("hotkey_map_item_full_screen_value")},{description:j("hotkey_map_item_show_context_menu_description"),value:j("hotkey_map_item_show_context_menu_value")},{description:j("hotkey_map_item_show_hotkey_map_description"),value:j("hotkey_map_item_show_hotkey_map_value")}]},{title:j("hotkey_map_group_title_playback"),items:[{description:j("hotkey_map_item_play_toggle_description"),value:j("hotkey_map_item_play_toggle_value")},{description:j("hotkey_map_item_seek_backward_description"),value:j("hotkey_map_item_seek_backward_value")},{description:j("hotkey_map_item_seek_forward_description"),value:j("hotkey_map_item_seek_forward_value")},{description:j("hotkey_map_item_fast_seek_backward_description"),value:j("hotkey_map_item_fast_seek_backward_value")},{description:j("hotkey_map_item_fast_seek_forward_description"),value:j("hotkey_map_item_fast_seek_forward_value")},{description:j("hotkey_map_item_rate_down_description"),value:j("hotkey_map_item_rate_down_value")},{description:j("hotkey_map_item_rate_up_description"),value:j("hotkey_map_item_rate_up_value")},{description:j("hotkey_map_item_prev_frame_description"),value:j("hotkey_map_item_prev_frame_value")},{description:j("hotkey_map_item_next_frame_description"),value:j("hotkey_map_item_next_frame_value")},{description:j("hotkey_map_item_jump_seek_description"),value:j("hotkey_map_item_jump_seek_value")}]},{title:j("hotkey_map_group_title_subtitles"),items:[{description:j("hotkey_map_item_subtitles_toggle_description"),value:j("hotkey_map_item_subtitles_toggle_value")}]},{title:j("hotkey_map_group_title_episodes"),items:[{description:j("hotkey_map_item_prev_episode_description"),value:Vd.isApple?j("hotkey_map_item_prev_episode_mac_value"):j("hotkey_map_item_prev_episode_pc_value")},{description:j("hotkey_map_item_next_episode_description"),value:Vd.isApple?j("hotkey_map_item_next_episode_mac_value"):j("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as Mh,clientChecker as Lh,ValueSubject as Vh}from"@vkontakte/videoplayer-shared";var lr=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:Mh(this.onResize.bind(this),300)};this.info={isActive$:new Vh(this.isActive()),type:0}}isSupported(){return document.pictureInPictureEnabled&&!Lh.isYandex}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return mt(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return mt(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(t){this.isRequested=!1}})}remove(){return mt(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,t;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=Qe({},e)}unregistryEventHandlers(){var e,t;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return mt(this,null,function*(){this.unregistryEventHandlers(),yield this.remove()})}onEnterPictureInPicture(e){var o,r;let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).enterpictureinpicture)==null||r.call(o,e))}onLeavePictureInPicture(e){var o,r,s;let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n==null||n.removeEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).leavepictureinpicture)==null||r.call(o,e),(s=this.playerDummyElement)==null||s.$destroy()}onResize(e){var t,n;(n=(t=this.externalEventHandlers).resize)==null||n.call(t,e)}};function ar(i){return i instanceof lr}function Rh(i){let e=ot();return Nt(()=>{e.getAdmanWrapper().startPostroll()}),[]}var ya=class extends N{constructor(e){super(),O(this,e,Rh,null,B,{})}},Bd=ya;import{noop as Bh}from"@vkontakte/videoplayer-shared";function Nh(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 Dh(i){let e=j("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=qe(e)},m(n,o){w(n,t,o)},p(n,o){o&3&&e!==(e=j("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Ge(t,e)},d(n){n&&y(t)}}}function Oh(i){let e,t=j("skip_ads_now")+"",n,o,r,s,a,l;return{c(){e=I("div"),n=qe(t),o=Y(),r=M("svg"),s=M("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){w(u,e,c),_(e,n),_(e,o),_(e,r),_(r,s),a||(l=ke(e,"click",vt(function(){Jt(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,c){i=u},d(u){u&&y(e),a=!1,l()}}}function Fh(i){let e;function t(r,s){return r[3]?Oh:Dh}let n=t(i,-1),o=n(i);return{c(){e=I("div"),o.c(),f(e,"class","container svelte-1k4i25s"),G(e,"container-mobile",i[4]),G(e,"skippable",i[3])},m(r,s){w(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&&G(e,"container-mobile",r[4]),s&8&&G(e,"skippable",r[3])},i:me,o:me,d(r){r&&y(e),o.d()}}}function Hh(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:s=Bh}=e,l=ot().ui.isMobile;D(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 N{constructor(e){super(),O(this,e,Hh,Fh,B,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},Nh)}},Nd=wa;function qh(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 Uh(i){let e;return{c(){e=I("button"),e.textContent=`${j("visit_advertiser")}`,f(e,"class","svelte-1wy3dql")},m(t,n){w(t,e,n)},p:me,i:me,o:me,d(t){t&&y(e)}}}var ka=class extends N{constructor(e){super(),O(this,e,null,Uh,B,{},qh)}},Dd=ka;function zh(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(
14
+ `).filter(t=>!!t)[0]}function Ih(i){try{let e=Th(i);if(e)return e}catch(e){}return{value:Ed(i),type:i&&i.name,stacktrace:{frames:[]}}}function Ph(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var Ls=class{constructor(e){if(e&&e.dsn){let t=Sh.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 yt(Qe({},this.getRequestBlank()),{exception:{values:[Ih(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(Ch,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Ph(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Ad(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function Eh(){return window}var Vs=class i extends Ls{constructor(e,t=Eh()){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",Qe({},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",Qe({},e)),this}setUser(e){return this.setKeyState("user",Qe({},e)),this}clone(){let e=new i(yt(Qe({},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:[Qe({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send(yt(Qe({},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=>Ad(t,n))):!1}getRequestBlank(){return Qe(yt(Qe({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(Qe({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(t){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>Ad(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(t){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 yt(Qe({},t),{[n]:r||a?[...r||[],...a||[]]:Qe(Qe({},typeof o!="string"?o:{}),typeof s!="string"?s:{})})},this._state)}setKeyState(e,t){this._state[e]=t}};import{isNonNullable as Rs,Subscription as Ah}from"@vkontakte/videoplayer-shared";var Bs=null,sr=class{constructor(e,t,n={}){!Bs&&e.dsn&&(this.sentryClient=new Vs({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Ah,this.options=e,this.context=n,Bs=this)}destroy(){var e,t;(e=this.sentryClient)==null||e.destroy(),(t=this.sentrySubscription)==null||t.unsubscribe(),Bs=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:C}=t;if(Rs(C)&&m.includes(C)||Rs(h)&&c.includes(h))return;if(Math.random()<=a||Rs(C)&&u.includes(C)||Rs(h)&&l.includes(h)){Object.keys(t).length&&o.setTags(Qe({version:this.version},t)),(Object.keys(r).length||Object.keys(n).length)&&o.setExtras(Qe(Qe({},r),n));try{h&&o.captureMessage(h,t.fatal?Ir.fatal:Ir.error),o.report(e)}catch(S){console.error(S)}}}static getInstance(){return Bs}};var Ns=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!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Ds=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Md=i=>{let e=i;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},es=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},Ro=()=>!!es(),Os=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},Fs=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},Ld=i=>{let e=window.screen;return(o=>pt(void 0,null,function*(){return 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))};import{clientChecker as Vd}from"@vkontakte/videoplayer-shared";var Rd=()=>({title:G("hotkey_map_modal_title"),closeBtnText:G("hotkey_map_modal_close_btn_text"),groups:[{title:G("hotkey_map_group_title_common"),items:[{description:G("hotkey_map_item_mute_description"),value:G("hotkey_map_item_mute_value")},{description:G("hotkey_map_item_volume_up_description"),value:G("hotkey_map_item_volume_up_value")},{description:G("hotkey_map_item_volume_down_description"),value:G("hotkey_map_item_volume_down_value")},{description:G("hotkey_map_item_pip_description"),value:G("hotkey_map_item_pip_value")},{description:G("hotkey_map_item_full_screen_description"),value:G("hotkey_map_item_full_screen_value")},{description:G("hotkey_map_item_show_context_menu_description"),value:G("hotkey_map_item_show_context_menu_value")},{description:G("hotkey_map_item_show_hotkey_map_description"),value:G("hotkey_map_item_show_hotkey_map_value")}]},{title:G("hotkey_map_group_title_playback"),items:[{description:G("hotkey_map_item_play_toggle_description"),value:G("hotkey_map_item_play_toggle_value")},{description:G("hotkey_map_item_seek_backward_description"),value:G("hotkey_map_item_seek_backward_value")},{description:G("hotkey_map_item_seek_forward_description"),value:G("hotkey_map_item_seek_forward_value")},{description:G("hotkey_map_item_fast_seek_backward_description"),value:G("hotkey_map_item_fast_seek_backward_value")},{description:G("hotkey_map_item_fast_seek_forward_description"),value:G("hotkey_map_item_fast_seek_forward_value")},{description:G("hotkey_map_item_rate_down_description"),value:G("hotkey_map_item_rate_down_value")},{description:G("hotkey_map_item_rate_up_description"),value:G("hotkey_map_item_rate_up_value")},{description:G("hotkey_map_item_prev_frame_description"),value:G("hotkey_map_item_prev_frame_value")},{description:G("hotkey_map_item_next_frame_description"),value:G("hotkey_map_item_next_frame_value")},{description:G("hotkey_map_item_jump_seek_description"),value:G("hotkey_map_item_jump_seek_value")}]},{title:G("hotkey_map_group_title_subtitles"),items:[{description:G("hotkey_map_item_subtitles_toggle_description"),value:G("hotkey_map_item_subtitles_toggle_value")}]},{title:G("hotkey_map_group_title_episodes"),items:[{description:G("hotkey_map_item_prev_episode_description"),value:Vd.isApple?G("hotkey_map_item_prev_episode_mac_value"):G("hotkey_map_item_prev_episode_pc_value")},{description:G("hotkey_map_item_next_episode_description"),value:Vd.isApple?G("hotkey_map_item_next_episode_mac_value"):G("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as Mh,clientChecker as Lh,ValueSubject as Vh}from"@vkontakte/videoplayer-shared";var lr=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:Mh(this.onResize.bind(this),300)};this.info={isActive$:new Vh(this.isActive()),type:0}}isSupported(){return document.pictureInPictureEnabled&&!Lh.isYandex}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return pt(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return pt(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(t){this.isRequested=!1}})}remove(){return pt(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,t;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=Qe({},e)}unregistryEventHandlers(){var e,t;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return pt(this,null,function*(){this.unregistryEventHandlers(),yield this.remove()})}onEnterPictureInPicture(e){var o,r;let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).enterpictureinpicture)==null||r.call(o,e))}onLeavePictureInPicture(e){var o,r,s;let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n==null||n.removeEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).leavepictureinpicture)==null||r.call(o,e),(s=this.playerDummyElement)==null||s.$destroy()}onResize(e){var t,n;(n=(t=this.externalEventHandlers).resize)==null||n.call(t,e)}};function ar(i){return i instanceof lr}function Rh(i){let e=ot();return Nt(()=>{e.getAdmanWrapper().startPostroll()}),[]}var ya=class extends N{constructor(e){super(),O(this,e,Rh,null,B,{})}},Bd=ya;import{noop as Bh}from"@vkontakte/videoplayer-shared";function Nh(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 Dh(i){let e=G("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=qe(e)},m(n,o){w(n,t,o)},p(n,o){o&3&&e!==(e=G("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Ge(t,e)},d(n){n&&y(t)}}}function Oh(i){let e,t=G("skip_ads_now")+"",n,o,r,s,a,l;return{c(){e=I("div"),n=qe(t),o=Y(),r=M("svg"),s=M("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){w(u,e,c),_(e,n),_(e,o),_(e,r),_(r,s),a||(l=ke(e,"click",vt(function(){Jt(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,c){i=u},d(u){u&&y(e),a=!1,l()}}}function Fh(i){let e;function t(r,s){return r[3]?Oh:Dh}let n=t(i,-1),o=n(i);return{c(){e=I("div"),o.c(),f(e,"class","container svelte-1k4i25s"),j(e,"container-mobile",i[4]),j(e,"skippable",i[3])},m(r,s){w(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&&j(e,"container-mobile",r[4]),s&8&&j(e,"skippable",r[3])},i:me,o:me,d(r){r&&y(e),o.d()}}}function Hh(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:s=Bh}=e,l=ot().ui.isMobile;D(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 N{constructor(e){super(),O(this,e,Hh,Fh,B,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},Nh)}},Nd=wa;function qh(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 Uh(i){let e;return{c(){e=I("button"),e.textContent=`${G("visit_advertiser")}`,f(e,"class","svelte-1wy3dql")},m(t,n){w(t,e,n)},p:me,i:me,o:me,d(t){t&&y(e)}}}var ka=class extends N{constructor(e){super(),O(this,e,null,Uh,B,{},qh)}},Dd=ka;function zh(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 @@ var K_=Object.defineProperty,x_=Object.defineProperties;var j_=Object.getOwnProp
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 Od(i){let e;return{c(){e=I("div"),f(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){w(t,e,n)},d(t){t&&y(e)}}}function Fd(i){let e,t;return e=new Nd({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Hd(i){let e,t;return e=new Bd({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function qd(i){let e,t;return e=new Dd({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Wh(i){let e,t,n,o,r,s,a,l=i[0]&&Od(i),u=i[3]&&Fd(i),c=i[7]&&Hd(i),m=i[4]&&qd(i);return{c(){e=I("div"),l&&l.c(),t=Y(),n=I("video"),o=Y(),u&&u.c(),r=Y(),c&&c.c(),s=Y(),m&&m.c(),_i(n,"width","100%"),_i(n,"height","100%"),n.playsInline=!0,f(e,"class","container svelte-354ajf")},m(h,C){w(h,e,C),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,[C]){h[0]?l||(l=Od(h),l.c(),l.m(e,t)):l&&(l.d(1),l=null),h[3]?u?(u.p(h,C),C&8&&d(u,1)):(u=Fd(h),u.c(),d(u,1),u.m(e,r)):u&&(ae(),p(u,1,1,()=>{u=null}),ue()),h[7]?c?C&128&&d(c,1):(c=Hd(h),c.c(),d(c,1),c.m(e,s)):c&&(ae(),p(c,1,1,()=>{c=null}),ue()),h[4]?m?C&16&&d(m,1):(m=qd(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&&y(e),l&&l.d(),i[19](null),u&&u.d(),c&&c.d(),m&&m.d(),i[20](null)}}}function Kh(i,e,t){let n,o,r,s,a,{adsSlotId:l=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:c=void 0}=e,{duration:m=0}=e,h=ot(),C=h.state.isEnded$;D(i,C,q=>t(7,a=q));let g=h.ui.isMobile;D(i,g,q=>t(0,o=q));let S,k,F=!1,T=h.ads.playbackState;D(i,T,q=>t(18,n=q));let v=h.ads.canSkip,E=h.ads.position;D(i,E,q=>t(5,r=q));let H=h.ads.secondsToWatchBeforeSkip;D(i,H,q=>t(6,s=q));let U,W;Nt(()=>{let q=h.getAdmanWrapper();if(!l){q.onAdmanLoadingError();return}let X=new AbortController,oe=()=>{X.abort()},{width:K,height:ce}=Ye(h.ui.playerSize),z=Ye(h.ui.isFullscreen),x=Ye(h.ui.isAutoplay),P={width:K,height:ce,isFullscreen:z,isAutoplay:x,adsContainer:S,adsVideoElement:k,slotId:l,params:u,previewParam:c,duration:m};return window.AdmanHTML?(q.initAdman(P),F=!0):q.loadAdman(X.signal).then(()=>{q.initAdman(P),F=!0}).catch(()=>{q.onAdmanLoadingError()}),()=>{!F&&oe()}});function ne(q){ve[q?"unshift":"push"](()=>{k=q,t(2,k)})}function de(q){ve[q?"unshift":"push"](()=>{S=q,t(1,S)})}return i.$$set=q=>{"adsSlotId"in q&&t(14,l=q.adsSlotId),"adsParams"in q&&t(15,u=q.adsParams),"adsPreviewParam"in q&&t(16,c=q.adsPreviewParam),"duration"in q&&t(17,m=q.duration)},i.$$.update=()=>{i.$$.dirty&262144&&t(3,U=v&&n!=="inactive"),i.$$.dirty&262145&&t(4,W=o&&n!=="inactive")},[o,S,k,U,W,r,s,a,h,C,g,T,E,H,l,u,c,m,n,ne,de]}var Ca=class extends N{constructor(e){super(),O(this,e,Kh,Wh,B,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},zh)}},Hs=Ca;var Fn=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);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(r=>r>9?String(r):`0${r}`).join(":")};function xh(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=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("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"),we(e,l)},m(u,c){w(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),we(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&&y(e),s&&s.d(u)}}}function jh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Sa=class extends N{constructor(e){super(),O(this,e,jh,xh,B,{})}},Ud=Sa;function Gh(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=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("rect"),n=M("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"),we(e,l)},m(u,c){w(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),we(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&&y(e),s&&s.d(u)}}}function Yh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ta=class extends N{constructor(e){super(),O(this,e,Yh,Gh,B,{})}},zd=Ta;function Qh(i){let e,t;return e=new Ud({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Zh(i){let e,t;return e=new zd({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Xh(i){let e,t,n,o,r=[Zh,Qh],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=Je()},m(l,u){s[e].m(l,u),w(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&&y(n),s[e].d(l)}}}function Jh(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Ia=class extends N{constructor(e){super(),O(this,e,Jh,Xh,B,{isActive:0})}},qs=Ia;function $h(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 eg(i){let e=Fn(i[4]-i[3])+"",t;return{c(){t=qe(e)},m(n,o){w(n,t,o)},p(n,o){o&24&&e!==(e=Fn(n[4]-n[3])+"")&&Ge(t,e)},i:me,o:me,d(n){n&&y(t)}}}function tg(i){let e,t,n;return t=new qs({props:{isActive:!0}}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","thumb-timer-live-icon svelte-i7xnqb")},m(o,r){w(o,e,r),L(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&&y(e),V(t)}}}function ig(i){let e,t,n,o,r,s,a,l=[tg,eg],u=[];function c(m,h){return m[1]?0:1}return r=c(i,-1),s=u[r]=l[r](i),{c(){e=I("div"),t=I("div"),t.innerHTML='<div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div>',n=Y(),o=I("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"),G(e,"live",i[1]),G(e,"hidden",i[0]),G(e,"playing",i[2])},m(m,h){w(m,e,h),_(e,t),_(e,n),_(e,o),u[r].m(o,null),a=!0},p(m,[h]){let C=r;r=c(m,h),r===C?u[r].p(m,h):(ae(),p(u[C],1,1,()=>{u[C]=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)&&G(e,"live",m[1]),(!a||h&1)&&G(e,"hidden",m[0]),(!a||h&4)&&G(e,"playing",m[2])},i(m){a||(d(s),a=!0)},o(m){p(s),a=!1},d(m){m&&y(e),u[r].d()}}}function ng(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 Pa=class extends N{constructor(e){super(),O(this,e,ng,ig,B,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},$h)}},Us=Pa;var Pr=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)}}};import{ChromecastState as pg}from"@vkontakte/videoplayer-core";import{clientChecker as Wd}from"@vkontakte/videoplayer-shared";var mo=i=>{i.stopPropagation(),i.preventDefault()},rg=i=>{var t;let e=i.previousElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.lastElementChild),e==null||e.focus()},sg=i=>{var t;let e=i.nextElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.firstElementChild),e==null||e.focus()},lg=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},ag=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},Kd=i=>i.code==="Escape",ug=i=>i.code==="ArrowLeft",Ea=(i,e=[])=>{let t=i.code;return["Enter","Space",...e].includes(t)},xd=i=>{if(lg(i)){mo(i),sg(i.target);return}ag(i)&&(mo(i),rg(i.target))},Er=i=>!Wd.isAndroid&&(i==null?void 0:i.detail)===0||Wd.isAndroid&&(i==null?void 0:i.pointerType)==="",Ar=(i,e,t)=>mt(void 0,null,function*(){yield eo(),i&&!i.classList.contains("opened")&&!e&&Ye(t)&&(yield eo(),t.set(!1),i.focus())}),jd=(i,e,t)=>mt(void 0,null,function*(){yield eo(),i&&!e&&Ye(t)&&(t.set(!1),i.focus())}),po=(i,e,t)=>mt(void 0,null,function*(){var o;yield eo(),!!i&&e&&t&&((o=i.children[0])==null||o.focus())}),Gd=i=>mt(void 0,null,function*(){!!i&&setTimeout(()=>{i.focus()},100)}),zs=(i,e)=>{xd(i),Kd(i)&&(mo(i),e())},Yd=(i,e,t)=>mt(void 0,null,function*(){if(Ea(i,["ArrowRight"])){mo(i),e(),yield eo();let n=t();n==null||n.focus()}}),Qd=(r,s,a,l)=>mt(void 0,[r,s,a,l],function*(i,e,{itemIdReturnCase:t,id:n},o){if(xd(i),ug(i)){mo(i),e(),t.set(n);return}Kd(i)&&(mo(i),o())}),Mr=(i,e)=>{Ea(i)&&(mo(i),e())},Zd=(i,e,t)=>{if(Ea(i))mo(i),t(!e);else{let n=i.code;if(n==="ArrowLeft"&&e){t(!1),mo(i);return}n==="ArrowRight"&&!e&&(t(!0),mo(i))}},Xd=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},Jd=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}};import{isNullable as Ks,isValidURL as _g}from"@vkontakte/videoplayer-shared";var Ws=(n=>(n.OPEN_SUB_MENU="OPEN_SUB_MENU",n.CLICK="CLICK",n.SWITCH="SWITCH",n))(Ws||{});var to={"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};import{noop as $d}from"@vkontakte/videoplayer-shared";function fg(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 dg(i){let e,t,n,o,r;return{c(){var s;e=I("li"),t=qe(i[1]),f(e,"class","item svelte-1hm4mm9"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",n=(s=i[2])!=null?s:i[1]),f(e,"data-testid",i[0])},m(s,a){w(s,e,a),_(e,t),o||(r=[ke(e,"click",vt(i[3])),ke(e,"keydown",i[4])],o=!0)},p(s,[a]){var l;a&2&&Ge(t,s[1]),a&6&&n!==(n=(l=s[2])!=null?l:s[1])&&f(e,"aria-label",n),a&1&&f(e,"data-testid",s[0])},i:me,o:me,d(s){s&&y(e),o=!1,ft(r)}}}function mg(i,e,t){let{id:n}=e,{onClick:o=$d}=e,{closeContextMenu:r=$d}=e,{label:s}=e,{ariaLabel:a}=e,l=()=>{o(),r()},u=c=>{Mr(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 Aa=class extends N{constructor(e){super(),O(this,e,mg,dg,B,{id:0,onClick:5,closeContextMenu:6,label:1,ariaLabel:2},fg)}},e1=Aa;var cr=(i,e)=>i.weight-e.weight;function hg(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=wt(i[2]),s=[];for(let l=0;l<r.length;l+=1)s[l]=n1(t1(i,r,l));let a=l=>p(s[l],1,1,()=>{s[l]=null});return{c(){e=I("ul");for(let l=0;l<s.length;l+=1)s[l].c();f(e,"role","menu"),_i(e,"top",i[4]+"px"),_i(e,"left",i[3]+"px"),f(e,"class","svelte-1p5ukkp")},m(l,u){w(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=[ke(e,"contextmenu",ai(i[33])),ke(e,"keydown",i[13])],n=!0)},p(l,u){if(u[0]&4100){r=wt(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]=n1(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)&&_i(e,"top",l[4]+"px"),(!t||u[0]&8)&&_i(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&&y(e),li(s,l),i[34](null),n=!1,ft(o)}}}function n1(i){let e,t;return e=new e1({props:{id:i[52].id,label:i[52].label,ariaLabel:i[52].ariaLabel,onClick:i[52].onClick,closeContextMenu:i[12]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function gg(i){let e,t,n=i[1]&&i1(i);return{c(){n&&n.c(),e=Je()},m(o,r){n&&n.m(o,r),w(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&&y(e),n&&n.d(o)}}}function bg(i,e,t){var et,Ne,tt;let n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,{visible:T=!1}=e,{supportLink:v}=e,{position:E={top:0,left:0}}=e,{playerContainerRef:H=void 0}=e,{controlsContainerRef:U=void 0}=e,{menuElementRef:W=void 0}=e,{returnFocus:ne}=e,de=0,q=0,X=ot(),oe=Yt(),K=X.ui.contextMenu.visible$,ce=X.ui.debugPanelVisible;D(i,ce,Fe=>t(28,h=Fe));let z=X.ui.additionalContextMenuItems$;D(i,z,Fe=>t(27,m=Fe));let x=X.webApi.pictureInPictureApi,P=(et=X.webApi.pictureInPictureApi)==null?void 0:et.info.isActive$;D(i,P,Fe=>t(30,S=Fe));let J=X.actions.internal.togglePictureInPicture,le=X.state.chromecastState$;D(i,le,Fe=>t(31,k=Fe));let Ae=X.state.isLive$;D(i,Ae,Fe=>t(32,F=Fe));let ee=X.state.positionExact$;D(i,ee,Fe=>t(35,g=Fe));let ge=X.state.isInteractive,Ee=X.state.looped$;D(i,Ee,Fe=>t(29,C=Fe));let Te=()=>{K.set(!1),ne==null||ne()},Ie=(Fe,ct)=>{if(!W||!H||!U)return;let dt=W.getBoundingClientRect(),he=H.getBoundingClientRect();t(3,de=Fe-he.left),t(4,q=ct-he.top),de+dt.width>he.width&&t(3,de=he.width-dt.width),q+dt.height>he.height&&t(4,q=he.height-dt.height),t(3,de=Math.max(de,0)),t(4,q=Math.max(q,0))},rt=()=>{X.actions.internal.videoRotate()},Pe=()=>{_g(v)&&window.open(v,"_blank"),X.actions.internal.reportProblem(),X.actions.internal.pause()},We=()=>{let Fe=X.actions.internal.getDebugTextData();if(oe.features.saveDebugInfoToFile){let ct=new Blob([...Fe],{type:"plain/text"}),dt=window.URL.createObjectURL(ct);rr(dt,"vk_player_debug_info","txt")}else Pr(X.actions.internal.getDebugTextData())},$=()=>{let Fe=X.actions.internal.getTraceTextData(),ct=new Blob([...Fe],{type:"application/json"}),dt=window.URL.createObjectURL(ct);rr(dt,"vk_player_trace_info","json")},_e=()=>{ce.set(!0)},Ce=()=>mt(this,null,function*(){try{J()}finally{ne==null||ne()}}),xe=()=>{X.actions.internal.setLooped(!C)},st=()=>{var Fe,ct;if(r){let dt=(ct=(Fe=X.callbacks)==null?void 0:Fe.onCopyEmbedCodeClicked)==null?void 0:ct.call(Fe);dt&&Pr(dt)}},at=(Fe=!1)=>{var ct,dt;if((ct=X.callbacks)!=null&&ct.onCopyVideoLink){let he=(dt=X.callbacks)==null?void 0:dt.onCopyVideoLink(Fe,g);he&&Pr(he)}},nt=Fe=>{zs(Fe,Te)},$e=[];function fe(Fe){Dn.call(this,i,Fe)}function Se(Fe){ve[Fe?"unshift":"push"](()=>{W=Fe,t(0,W)})}return i.$$set=Fe=>{"visible"in Fe&&t(1,T=Fe.visible),"supportLink"in Fe&&t(14,v=Fe.supportLink),"position"in Fe&&t(15,E=Fe.position),"playerContainerRef"in Fe&&t(16,H=Fe.playerContainerRef),"controlsContainerRef"in Fe&&t(17,U=Fe.controlsContainerRef),"menuElementRef"in Fe&&t(0,W=Fe.menuElementRef),"returnFocus"in Fe&&t(18,ne=Fe.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&67108864|i.$$.dirty[1]&2&&t(25,o=n&&!F&&!ge),i.$$.dirty[1]&1&&t(23,s=x&&k!==pg.CONNECTED&&!ge),i.$$.dirty[0]&1073741824&&t(21,l=oe.showSupport&&!S),i.$$.dirty[0]&229377&&W&&H&&U){let{top:Fe,left:ct,bottom:dt,right:he}=E,pt=ct!=null?ct:0,kt=Fe!=null?Fe:0,Ct=W.getBoundingClientRect();Ks(ct)&&!Ks(he)&&(pt=he-Ct.width),Ks(Fe)&&!Ks(dt)&&(kt=dt-Ct.height),pt=Math.max(pt,0),kt=Math.max(kt,0),Ie(pt,kt)}i.$$.dirty[0]&1073217540&&(t(2,$e=[]),n&&$e.push({id:"copy-link",weight:to["copy-link"],label:j("menu_copy_video_link"),onClick:()=>at()}),o&&$e.push({id:"copy-link-timestamp",weight:to["copy-link-timestamp"],label:j("menu_copy_video_link_with_timestamp"),onClick:()=>at(!0)}),r&&$e.push({id:"copy-embed-code",weight:to["copy-embed-code"],label:j("menu_copy_embed_code"),onClick:st}),s&&$e.push({id:"pip",weight:to.pip,label:j("menu_pip"),onClick:Ce}),$e.push({id:"video-loop",weight:to["video-loop"],label:C?j("menu_video_loop_off"):j("menu_video_loop_on"),ariaLabel:j("aria_label_menu_loop"),onClick:xe}),a&&$e.push({id:"rotate",weight:to.rotate,label:j("menu_video_rotate"),ariaLabel:j("aria_label_menu_rotate"),onClick:rt}),l&&$e.push({id:"report",weight:to.report,label:j("menu_report"),ariaLabel:`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`,onClick:Pe}),$e.push({id:"save-debug",weight:to["save-debug"],label:c,onClick:We}),u&&$e.push({id:"save-trace",weight:to["save-trace"],label:j("menu_save_debug"),onClick:$}),$e.push({id:"debug-info",weight:to["debug-info"],label:j("menu_debug_overlay"),ariaLabel:h?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"),onClick:_e}),t(2,$e=[...$e,...m].sort(cr)))},t(26,n=oe.features.copyVideoLink&&((Ne=X.callbacks)==null?void 0:Ne.onCopyVideoLink)),t(24,r=!!((tt=X.callbacks)!=null&&tt.onCopyEmbedCodeClicked)),t(22,a=oe.features.videoRotate&&!ge),t(19,u=oe.features.saveTraceInfoToFile),t(20,c=oe.features.saveDebugInfoToFile?j("menu_save_debug"):j("menu_copy_debug")),[W,T,$e,de,q,ce,z,P,le,Ae,ee,Ee,Te,nt,v,E,H,U,ne,u,c,l,a,s,r,o,n,m,h,C,S,k,F,fe,Se]}var Ma=class extends N{constructor(e){super(),O(this,e,bg,gg,B,{visible:1,supportLink:14,position:15,playerContainerRef:16,controlsContainerRef:17,menuElementRef:0,returnFocus:18},hg,[-1,-1])}},o1=Ma;var xs=class{constructor(e){this.value=e,this.next=null}};var Lr=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new xs(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 vg(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 yg(i){let e,t;return{c(){e=I("div"),t=I("canvas"),f(t,"class","svelte-1ssl9eb"),f(e,"class","container svelte-1ssl9eb")},m(n,o){w(n,e,o),_(e,t),i[3](t)},p:me,i:me,o:me,d(n){n&&y(e),i[3](null)}}}var La=16,Va=120,r1=60;function wg(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function kg(i,e,t){let{values:n=[]}=e,o,r,s=Va/r1;Nt(()=>{t(0,o.width=Va,o),t(0,o.height=La,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,Va,La);let c=r1-1;for(let m=n.length-1;m>=0;m--){let h=c*s,C=u>0?La*(n[m]/u):0;wg(r,h,0,s,C),l=C+" "+l,c--}}}},[o,n,r,a]}var Ra=class extends N{constructor(e){super(),O(this,e,kg,yg,B,{values:1},vg)}},js=Ra;import{safeStorage as s1}from"@vkontakte/videoplayer-shared";function Cg(i){be(i,"svelte-k5ymwy",".container.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{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-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{top:16px;left:16px}button.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{padding:5px}.content.svelte-k5ymwy>div.svelte-k5ymwy>div.svelte-k5ymwy{display:inline-block;text-align:right;width:50px;padding:0 5px}")}function l1(i){let e,t,n,o,r=i[0].id+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="Video id",n=Y(),o=I("span"),s=qe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].id+"")&&Ge(s,r)},d(a){a&&y(e)}}}function a1(i){let e,t,n,o,r=i[0].vsid+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="VSID",n=Y(),o=I("span"),s=qe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].vsid+"")&&Ge(s,r)},d(a){a&&y(e)}}}function u1(i){let e,t,n,o,r=i[0].provider+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="Provider",n=Y(),o=I("span"),s=qe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].provider+"")&&Ge(s,r)},d(a){a&&y(e)}}}function c1(i){let e,t,n,o,r,s=(i[0].videoCodec||"")+"",a,l,u=i[0].hdr?"(HDR)":"",c,m,h=(i[0].audioCodec||"")+"",C,g,S=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",k;return{c(){e=I("div"),t=I("div"),t.textContent="Streams",n=Y(),o=I("span"),r=qe("Video: "),a=qe(s),l=Y(),c=qe(u),m=qe(`
24
+ )}`)}function Od(i){let e;return{c(){e=I("div"),f(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){w(t,e,n)},d(t){t&&y(e)}}}function Fd(i){let e,t;return e=new Nd({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Hd(i){let e,t;return e=new Bd({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function qd(i){let e,t;return e=new Dd({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Wh(i){let e,t,n,o,r,s,a,l=i[0]&&Od(i),u=i[3]&&Fd(i),c=i[7]&&Hd(i),m=i[4]&&qd(i);return{c(){e=I("div"),l&&l.c(),t=Y(),n=I("video"),o=Y(),u&&u.c(),r=Y(),c&&c.c(),s=Y(),m&&m.c(),_i(n,"width","100%"),_i(n,"height","100%"),n.playsInline=!0,f(e,"class","container svelte-354ajf")},m(h,C){w(h,e,C),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,[C]){h[0]?l||(l=Od(h),l.c(),l.m(e,t)):l&&(l.d(1),l=null),h[3]?u?(u.p(h,C),C&8&&d(u,1)):(u=Fd(h),u.c(),d(u,1),u.m(e,r)):u&&(ae(),p(u,1,1,()=>{u=null}),ue()),h[7]?c?C&128&&d(c,1):(c=Hd(h),c.c(),d(c,1),c.m(e,s)):c&&(ae(),p(c,1,1,()=>{c=null}),ue()),h[4]?m?C&16&&d(m,1):(m=qd(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&&y(e),l&&l.d(),i[19](null),u&&u.d(),c&&c.d(),m&&m.d(),i[20](null)}}}function Kh(i,e,t){let n,o,r,s,a,{adsSlotId:l=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:c=void 0}=e,{duration:m=0}=e,h=ot(),C=h.state.isEnded$;D(i,C,q=>t(7,a=q));let g=h.ui.isMobile;D(i,g,q=>t(0,o=q));let S,k,F=!1,T=h.ads.playbackState;D(i,T,q=>t(18,n=q));let v=h.ads.canSkip,E=h.ads.position;D(i,E,q=>t(5,r=q));let H=h.ads.secondsToWatchBeforeSkip;D(i,H,q=>t(6,s=q));let U,W;Nt(()=>{let q=h.getAdmanWrapper();if(!l){q.onAdmanLoadingError();return}let X=new AbortController,oe=()=>{X.abort()},{width:K,height:ce}=Ye(h.ui.playerSize),z=Ye(h.ui.isFullscreen),x=Ye(h.ui.isAutoplay),P={width:K,height:ce,isFullscreen:z,isAutoplay:x,adsContainer:S,adsVideoElement:k,slotId:l,params:u,previewParam:c,duration:m};return window.AdmanHTML?(q.initAdman(P),F=!0):q.loadAdman(X.signal).then(()=>{q.initAdman(P),F=!0}).catch(()=>{q.onAdmanLoadingError()}),()=>{!F&&oe()}});function ne(q){ve[q?"unshift":"push"](()=>{k=q,t(2,k)})}function de(q){ve[q?"unshift":"push"](()=>{S=q,t(1,S)})}return i.$$set=q=>{"adsSlotId"in q&&t(14,l=q.adsSlotId),"adsParams"in q&&t(15,u=q.adsParams),"adsPreviewParam"in q&&t(16,c=q.adsPreviewParam),"duration"in q&&t(17,m=q.duration)},i.$$.update=()=>{i.$$.dirty&262144&&t(3,U=v&&n!=="inactive"),i.$$.dirty&262145&&t(4,W=o&&n!=="inactive")},[o,S,k,U,W,r,s,a,h,C,g,T,E,H,l,u,c,m,n,ne,de]}var Ca=class extends N{constructor(e){super(),O(this,e,Kh,Wh,B,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},zh)}},Hs=Ca;var Fn=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);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(r=>r>9?String(r):`0${r}`).join(":")};function xh(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=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("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"),we(e,l)},m(u,c){w(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),we(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&&y(e),s&&s.d(u)}}}function jh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Sa=class extends N{constructor(e){super(),O(this,e,jh,xh,B,{})}},Ud=Sa;function Gh(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=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("rect"),n=M("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"),we(e,l)},m(u,c){w(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),we(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&&y(e),s&&s.d(u)}}}function Yh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ta=class extends N{constructor(e){super(),O(this,e,Yh,Gh,B,{})}},zd=Ta;function Qh(i){let e,t;return e=new Ud({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Zh(i){let e,t;return e=new zd({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Xh(i){let e,t,n,o,r=[Zh,Qh],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=Je()},m(l,u){s[e].m(l,u),w(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&&y(n),s[e].d(l)}}}function Jh(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Ia=class extends N{constructor(e){super(),O(this,e,Jh,Xh,B,{isActive:0})}},qs=Ia;function $h(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 eg(i){let e=Fn(i[4]-i[3])+"",t;return{c(){t=qe(e)},m(n,o){w(n,t,o)},p(n,o){o&24&&e!==(e=Fn(n[4]-n[3])+"")&&Ge(t,e)},i:me,o:me,d(n){n&&y(t)}}}function tg(i){let e,t,n;return t=new qs({props:{isActive:!0}}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","thumb-timer-live-icon svelte-i7xnqb")},m(o,r){w(o,e,r),L(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&&y(e),V(t)}}}function ig(i){let e,t,n,o,r,s,a,l=[tg,eg],u=[];function c(m,h){return m[1]?0:1}return r=c(i,-1),s=u[r]=l[r](i),{c(){e=I("div"),t=I("div"),t.innerHTML='<div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div>',n=Y(),o=I("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"),j(e,"live",i[1]),j(e,"hidden",i[0]),j(e,"playing",i[2])},m(m,h){w(m,e,h),_(e,t),_(e,n),_(e,o),u[r].m(o,null),a=!0},p(m,[h]){let C=r;r=c(m,h),r===C?u[r].p(m,h):(ae(),p(u[C],1,1,()=>{u[C]=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)&&j(e,"live",m[1]),(!a||h&1)&&j(e,"hidden",m[0]),(!a||h&4)&&j(e,"playing",m[2])},i(m){a||(d(s),a=!0)},o(m){p(s),a=!1},d(m){m&&y(e),u[r].d()}}}function ng(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 Pa=class extends N{constructor(e){super(),O(this,e,ng,ig,B,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},$h)}},Us=Pa;var Pr=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)}}};import{ChromecastState as pg}from"@vkontakte/videoplayer-core";import{clientChecker as Wd}from"@vkontakte/videoplayer-shared";var mo=i=>{i.stopPropagation(),i.preventDefault()},rg=i=>{var t;let e=i.previousElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.lastElementChild),e==null||e.focus()},sg=i=>{var t;let e=i.nextElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.firstElementChild),e==null||e.focus()},lg=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},ag=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},Kd=i=>i.code==="Escape",ug=i=>i.code==="ArrowLeft",Ea=(i,e=[])=>{let t=i.code;return["Enter","Space",...e].includes(t)},xd=i=>{if(lg(i)){mo(i),sg(i.target);return}ag(i)&&(mo(i),rg(i.target))},Er=i=>!Wd.isAndroid&&(i==null?void 0:i.detail)===0||Wd.isAndroid&&(i==null?void 0:i.pointerType)==="",Ar=(i,e,t)=>pt(void 0,null,function*(){yield eo(),i&&!i.classList.contains("opened")&&!e&&Ye(t)&&(yield eo(),t.set(!1),i.focus())}),jd=(i,e,t)=>pt(void 0,null,function*(){yield eo(),i&&!e&&Ye(t)&&(t.set(!1),i.focus())}),po=(i,e,t)=>pt(void 0,null,function*(){var o;yield eo(),!!i&&e&&t&&((o=i.children[0])==null||o.focus())}),Gd=i=>pt(void 0,null,function*(){!!i&&setTimeout(()=>{i.focus()},100)}),zs=(i,e)=>{xd(i),Kd(i)&&(mo(i),e())},Yd=(i,e,t)=>pt(void 0,null,function*(){if(Ea(i,["ArrowRight"])){mo(i),e(),yield eo();let n=t();n==null||n.focus()}}),Qd=(r,s,a,l)=>pt(void 0,[r,s,a,l],function*(i,e,{itemIdReturnCase:t,id:n},o){if(xd(i),ug(i)){mo(i),e(),t.set(n);return}Kd(i)&&(mo(i),o())}),Mr=(i,e)=>{Ea(i)&&(mo(i),e())},Zd=(i,e,t)=>{if(Ea(i))mo(i),t(!e);else{let n=i.code;if(n==="ArrowLeft"&&e){t(!1),mo(i);return}n==="ArrowRight"&&!e&&(t(!0),mo(i))}},Xd=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},Jd=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}};import{isNullable as Ks,isValidURL as _g}from"@vkontakte/videoplayer-shared";var Ws=(n=>(n.OPEN_SUB_MENU="OPEN_SUB_MENU",n.CLICK="CLICK",n.SWITCH="SWITCH",n))(Ws||{});var to={"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};import{noop as $d}from"@vkontakte/videoplayer-shared";function fg(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 dg(i){let e,t,n,o,r;return{c(){var s;e=I("li"),t=qe(i[1]),f(e,"class","item svelte-1hm4mm9"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",n=(s=i[2])!=null?s:i[1]),f(e,"data-testid",i[0])},m(s,a){w(s,e,a),_(e,t),o||(r=[ke(e,"click",vt(i[3])),ke(e,"keydown",i[4])],o=!0)},p(s,[a]){var l;a&2&&Ge(t,s[1]),a&6&&n!==(n=(l=s[2])!=null?l:s[1])&&f(e,"aria-label",n),a&1&&f(e,"data-testid",s[0])},i:me,o:me,d(s){s&&y(e),o=!1,ft(r)}}}function mg(i,e,t){let{id:n}=e,{onClick:o=$d}=e,{closeContextMenu:r=$d}=e,{label:s}=e,{ariaLabel:a}=e,l=()=>{o(),r()},u=c=>{Mr(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 Aa=class extends N{constructor(e){super(),O(this,e,mg,dg,B,{id:0,onClick:5,closeContextMenu:6,label:1,ariaLabel:2},fg)}},e1=Aa;var cr=(i,e)=>i.weight-e.weight;function hg(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=wt(i[2]),s=[];for(let l=0;l<r.length;l+=1)s[l]=n1(t1(i,r,l));let a=l=>p(s[l],1,1,()=>{s[l]=null});return{c(){e=I("ul");for(let l=0;l<s.length;l+=1)s[l].c();f(e,"role","menu"),_i(e,"top",i[4]+"px"),_i(e,"left",i[3]+"px"),f(e,"class","svelte-1p5ukkp")},m(l,u){w(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=[ke(e,"contextmenu",ai(i[33])),ke(e,"keydown",i[13])],n=!0)},p(l,u){if(u[0]&4100){r=wt(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]=n1(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)&&_i(e,"top",l[4]+"px"),(!t||u[0]&8)&&_i(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&&y(e),li(s,l),i[34](null),n=!1,ft(o)}}}function n1(i){let e,t;return e=new e1({props:{id:i[52].id,label:i[52].label,ariaLabel:i[52].ariaLabel,onClick:i[52].onClick,closeContextMenu:i[12]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function gg(i){let e,t,n=i[1]&&i1(i);return{c(){n&&n.c(),e=Je()},m(o,r){n&&n.m(o,r),w(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&&y(e),n&&n.d(o)}}}function bg(i,e,t){var et,Ne,tt;let n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,{visible:T=!1}=e,{supportLink:v}=e,{position:E={top:0,left:0}}=e,{playerContainerRef:H=void 0}=e,{controlsContainerRef:U=void 0}=e,{menuElementRef:W=void 0}=e,{returnFocus:ne}=e,de=0,q=0,X=ot(),oe=Dt(),K=X.ui.contextMenu.visible$,ce=X.ui.debugPanelVisible;D(i,ce,Fe=>t(28,h=Fe));let z=X.ui.additionalContextMenuItems$;D(i,z,Fe=>t(27,m=Fe));let x=X.webApi.pictureInPictureApi,P=(et=X.webApi.pictureInPictureApi)==null?void 0:et.info.isActive$;D(i,P,Fe=>t(30,S=Fe));let J=X.actions.internal.togglePictureInPicture,le=X.state.chromecastState$;D(i,le,Fe=>t(31,k=Fe));let Ae=X.state.isLive$;D(i,Ae,Fe=>t(32,F=Fe));let ee=X.state.positionExact$;D(i,ee,Fe=>t(35,g=Fe));let ge=X.state.isInteractive,Pe=X.state.looped$;D(i,Pe,Fe=>t(29,C=Fe));let Te=()=>{K.set(!1),ne==null||ne()},Ie=(Fe,ct)=>{if(!W||!H||!U)return;let dt=W.getBoundingClientRect(),he=H.getBoundingClientRect();t(3,de=Fe-he.left),t(4,q=ct-he.top),de+dt.width>he.width&&t(3,de=he.width-dt.width),q+dt.height>he.height&&t(4,q=he.height-dt.height),t(3,de=Math.max(de,0)),t(4,q=Math.max(q,0))},rt=()=>{X.actions.internal.videoRotate()},Ee=()=>{_g(v)&&window.open(v,"_blank"),X.actions.internal.reportProblem(),X.actions.internal.pause()},We=()=>{let Fe=X.actions.internal.getDebugTextData();if(oe.features.saveDebugInfoToFile){let ct=new Blob([...Fe],{type:"plain/text"}),dt=window.URL.createObjectURL(ct);rr(dt,"vk_player_debug_info","txt")}else Pr(X.actions.internal.getDebugTextData())},$=()=>{let Fe=X.actions.internal.getTraceTextData(),ct=new Blob([...Fe],{type:"application/json"}),dt=window.URL.createObjectURL(ct);rr(dt,"vk_player_trace_info","json")},_e=()=>{ce.set(!0)},Ce=()=>pt(this,null,function*(){try{J()}finally{ne==null||ne()}}),xe=()=>{X.actions.internal.setLooped(!C)},st=()=>{var Fe,ct;if(r){let dt=(ct=(Fe=X.callbacks)==null?void 0:Fe.onCopyEmbedCodeClicked)==null?void 0:ct.call(Fe);dt&&Pr(dt)}},at=(Fe=!1)=>{var ct,dt;if((ct=X.callbacks)!=null&&ct.onCopyVideoLink){let he=(dt=X.callbacks)==null?void 0:dt.onCopyVideoLink(Fe,g);he&&Pr(he)}},nt=Fe=>{zs(Fe,Te)},$e=[];function fe(Fe){Dn.call(this,i,Fe)}function Se(Fe){ve[Fe?"unshift":"push"](()=>{W=Fe,t(0,W)})}return i.$$set=Fe=>{"visible"in Fe&&t(1,T=Fe.visible),"supportLink"in Fe&&t(14,v=Fe.supportLink),"position"in Fe&&t(15,E=Fe.position),"playerContainerRef"in Fe&&t(16,H=Fe.playerContainerRef),"controlsContainerRef"in Fe&&t(17,U=Fe.controlsContainerRef),"menuElementRef"in Fe&&t(0,W=Fe.menuElementRef),"returnFocus"in Fe&&t(18,ne=Fe.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&67108864|i.$$.dirty[1]&2&&t(25,o=n&&!F&&!ge),i.$$.dirty[1]&1&&t(23,s=x&&k!==pg.CONNECTED&&!ge),i.$$.dirty[0]&1073741824&&t(21,l=oe.showSupport&&!S),i.$$.dirty[0]&229377&&W&&H&&U){let{top:Fe,left:ct,bottom:dt,right:he}=E,_t=ct!=null?ct:0,kt=Fe!=null?Fe:0,Ct=W.getBoundingClientRect();Ks(ct)&&!Ks(he)&&(_t=he-Ct.width),Ks(Fe)&&!Ks(dt)&&(kt=dt-Ct.height),_t=Math.max(_t,0),kt=Math.max(kt,0),Ie(_t,kt)}i.$$.dirty[0]&1073217540&&(t(2,$e=[]),n&&$e.push({id:"copy-link",weight:to["copy-link"],label:G("menu_copy_video_link"),onClick:()=>at()}),o&&$e.push({id:"copy-link-timestamp",weight:to["copy-link-timestamp"],label:G("menu_copy_video_link_with_timestamp"),onClick:()=>at(!0)}),r&&$e.push({id:"copy-embed-code",weight:to["copy-embed-code"],label:G("menu_copy_embed_code"),onClick:st}),s&&$e.push({id:"pip",weight:to.pip,label:G("menu_pip"),onClick:Ce}),$e.push({id:"video-loop",weight:to["video-loop"],label:C?G("menu_video_loop_off"):G("menu_video_loop_on"),ariaLabel:G("aria_label_menu_loop"),onClick:xe}),a&&$e.push({id:"rotate",weight:to.rotate,label:G("menu_video_rotate"),ariaLabel:G("aria_label_menu_rotate"),onClick:rt}),l&&$e.push({id:"report",weight:to.report,label:G("menu_report"),ariaLabel:`${G("menu_report")}. ${G("aria_label_new_tab_alert")}`,onClick:Ee}),$e.push({id:"save-debug",weight:to["save-debug"],label:c,onClick:We}),u&&$e.push({id:"save-trace",weight:to["save-trace"],label:G("menu_save_debug"),onClick:$}),$e.push({id:"debug-info",weight:to["debug-info"],label:G("menu_debug_overlay"),ariaLabel:h?G("aria_label_menu_debug_overlay_disable"):G("aria_label_menu_debug_overlay_enable"),onClick:_e}),t(2,$e=[...$e,...m].sort(cr)))},t(26,n=oe.features.copyVideoLink&&((Ne=X.callbacks)==null?void 0:Ne.onCopyVideoLink)),t(24,r=!!((tt=X.callbacks)!=null&&tt.onCopyEmbedCodeClicked)),t(22,a=oe.features.videoRotate&&!ge),t(19,u=oe.features.saveTraceInfoToFile),t(20,c=oe.features.saveDebugInfoToFile?G("menu_save_debug"):G("menu_copy_debug")),[W,T,$e,de,q,ce,z,P,le,Ae,ee,Pe,Te,nt,v,E,H,U,ne,u,c,l,a,s,r,o,n,m,h,C,S,k,F,fe,Se]}var Ma=class extends N{constructor(e){super(),O(this,e,bg,gg,B,{visible:1,supportLink:14,position:15,playerContainerRef:16,controlsContainerRef:17,menuElementRef:0,returnFocus:18},hg,[-1,-1])}},o1=Ma;var xs=class{constructor(e){this.value=e,this.next=null}};var Lr=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new xs(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 vg(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 yg(i){let e,t;return{c(){e=I("div"),t=I("canvas"),f(t,"class","svelte-1ssl9eb"),f(e,"class","container svelte-1ssl9eb")},m(n,o){w(n,e,o),_(e,t),i[3](t)},p:me,i:me,o:me,d(n){n&&y(e),i[3](null)}}}var La=16,Va=120,r1=60;function wg(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function kg(i,e,t){let{values:n=[]}=e,o,r,s=Va/r1;Nt(()=>{t(0,o.width=Va,o),t(0,o.height=La,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,Va,La);let c=r1-1;for(let m=n.length-1;m>=0;m--){let h=c*s,C=u>0?La*(n[m]/u):0;wg(r,h,0,s,C),l=C+" "+l,c--}}}},[o,n,r,a]}var Ra=class extends N{constructor(e){super(),O(this,e,kg,yg,B,{values:1},vg)}},js=Ra;import{safeStorage as s1}from"@vkontakte/videoplayer-shared";function Cg(i){be(i,"svelte-k5ymwy",".container.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{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-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{top:16px;left:16px}button.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{padding:5px}.content.svelte-k5ymwy>div.svelte-k5ymwy>div.svelte-k5ymwy{display:inline-block;text-align:right;width:50px;padding:0 5px}")}function l1(i){let e,t,n,o,r=i[0].id+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="Video id",n=Y(),o=I("span"),s=qe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].id+"")&&Ge(s,r)},d(a){a&&y(e)}}}function a1(i){let e,t,n,o,r=i[0].vsid+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="VSID",n=Y(),o=I("span"),s=qe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].vsid+"")&&Ge(s,r)},d(a){a&&y(e)}}}function u1(i){let e,t,n,o,r=i[0].provider+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="Provider",n=Y(),o=I("span"),s=qe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].provider+"")&&Ge(s,r)},d(a){a&&y(e)}}}function c1(i){let e,t,n,o,r,s=(i[0].videoCodec||"")+"",a,l,u=i[0].hdr?"(HDR)":"",c,m,h=(i[0].audioCodec||"")+"",C,g,S=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",k;return{c(){e=I("div"),t=I("div"),t.textContent="Streams",n=Y(),o=I("span"),r=qe("Video: "),a=qe(s),l=Y(),c=qe(u),m=qe(`
25
25
  &
26
- Audio: `),C=qe(h),g=Y(),k=qe(S),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(F,T){w(F,e,T),_(e,t),_(e,n),_(e,o),_(o,r),_(o,a),_(o,l),_(o,c),_(o,m),_(o,C),_(o,g),_(o,k)},p(F,T){T&1&&s!==(s=(F[0].videoCodec||"")+"")&&Ge(a,s),T&1&&u!==(u=F[0].hdr?"(HDR)":"")&&Ge(c,u),T&1&&h!==(h=(F[0].audioCodec||"")+"")&&Ge(C,h),T&1&&S!==(S=F[0].audioLanguage?`(${F[0].audioLanguage})`:"")&&Ge(k,S)},d(F){F&&y(e)}}}function f1(i){let e,t,n,o,r=i[0].viewport+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="Viewport",n=Y(),o=I("span"),s=qe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].viewport+"")&&Ge(s,r)},d(a){a&&y(e)}}}function d1(i){let e,t,n,o,r=i[0].videoSize+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="Video size",n=Y(),o=I("span"),s=qe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].videoSize+"")&&Ge(s,r)},d(a){a&&y(e)}}}function m1(i){let e,t,n,o,r=i[0].cdn+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="CDN host",n=Y(),o=I("span"),s=qe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].cdn+"")&&Ge(s,r)},d(a){a&&y(e)}}}function p1(i){let e,t,n,o,r=i[0].volume+"",s,a;return{c(){e=I("div"),t=I("div"),t.textContent="Volume",n=Y(),o=I("span"),s=qe(r),a=qe(" %"),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(l,u){w(l,e,u),_(e,t),_(e,n),_(e,o),_(o,s),_(o,a)},p(l,u){u&1&&r!==(r=l[0].volume+"")&&Ge(s,r)},d(l){l&&y(e)}}}function _1(i){let e,t,n,o,r=i[0].buffer.toFixed(2)+"",s,a;return{c(){e=I("div"),t=I("div"),t.textContent="Buffer",n=Y(),o=I("span"),s=qe(r),a=qe(" s"),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(l,u){w(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)+"")&&Ge(s,r)},d(l){l&&y(e)}}}function h1(i){let e,t,n,o,r=[{value:i[0].currentVideoSegmentLength,title:"Video:"},{value:i[0].currentAudioSegmentLength,title:"Audio:"}].filter(v1).map(y1).join(" & ")+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="Segment",n=Y(),o=I("span"),s=qe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){w(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(v1).map(y1).join(" & ")+"")&&Ge(s,r)},d(a){a&&y(e)}}}function g1(i){let e,t,n,o,r,s,a=i[0].speed.toFixed(2)+"",l,u,c;return o=new js({props:{values:i[5]}}),{c(){e=I("div"),t=I("div"),t.textContent="Network",n=Y(),R(o.$$.fragment),r=Y(),s=I("span"),l=qe(a),u=qe(" Kbps"),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(m,h){w(m,e,h),_(e,t),_(e,n),L(o,e,null),_(e,r),_(e,s),_(s,l),_(s,u),c=!0},p(m,h){let C={};h&32&&(C.values=m[5]),o.$set(C),(!c||h&1)&&a!==(a=m[0].speed.toFixed(2)+"")&&Ge(l,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){p(o.$$.fragment,m),c=!1},d(m){m&&y(e),V(o)}}}function b1(i){let e,t,n,o,r,s,a=i[0].bitrate.toFixed(2)+"",l,u,c;return o=new js({props:{values:i[6]}}),{c(){e=I("div"),t=I("div"),t.textContent="V bitrate",n=Y(),R(o.$$.fragment),r=Y(),s=I("span"),l=qe(a),u=qe(" Kbps"),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(m,h){w(m,e,h),_(e,t),_(e,n),L(o,e,null),_(e,r),_(e,s),_(s,l),_(s,u),c=!0},p(m,h){let C={};h&64&&(C.values=m[6]),o.$set(C),(!c||h&1)&&a!==(a=m[0].bitrate.toFixed(2)+"")&&Ge(l,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){p(o.$$.fragment,m),c=!1},d(m){m&&y(e),V(o)}}}function Sg(i){let e,t,n,o,r,s,a,l,u=i[0].version+"",c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,de,q,X,oe,K,ce,z,x,P,J,le,Ae,ee,ge,Ee,Te,Ie,rt,Pe,We=i[0].id&&l1(i),$=i[0].vsid&&a1(i),_e=i[0].provider&&u1(i),Ce=(i[0].videoCodec||i[0].audioCodec)&&c1(i),xe=i[0].viewport&&f1(i),st=i[0].videoSize&&d1(i),at=i[0].cdn&&m1(i),nt=i[0].volume&&p1(i),$e=i[0].buffer&&_1(i),fe=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&h1(i),Se=i[0].speed&&g1(i),et=i[0].bitrate&&b1(i);return Ae=new js({props:{values:i[4]}}),{c(){e=I("div"),t=I("button"),t.textContent="[x]",n=Y(),o=I("div"),r=I("div"),s=I("div"),s.textContent="Version",a=Y(),l=I("span"),c=qe(u),m=Y(),We&&We.c(),h=Y(),$&&$.c(),C=Y(),_e&&_e.c(),g=Y(),Ce&&Ce.c(),S=Y(),xe&&xe.c(),k=Y(),st&&st.c(),F=Y(),at&&at.c(),T=Y(),nt&&nt.c(),v=Y(),$e&&$e.c(),E=Y(),fe&&fe.c(),H=Y(),U=I("div"),W=I("div"),W.textContent="Dropped",ne=Y(),de=I("span"),q=qe(i[2]),X=qe(" / "),oe=qe(i[1]),K=qe(" frames"),ce=Y(),Se&&Se.c(),z=Y(),et&&et.c(),x=Y(),P=I("div"),J=I("div"),J.textContent="FPS",le=Y(),R(Ae.$$.fragment),ee=Y(),ge=I("span"),Ee=qe(i[3]),f(t,"class","close svelte-k5ymwy"),f(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),f(s,"class","svelte-k5ymwy"),f(r,"class","svelte-k5ymwy"),f(W,"class","svelte-k5ymwy"),f(U,"class","svelte-k5ymwy"),f(J,"class","svelte-k5ymwy"),f(P,"class","svelte-k5ymwy"),f(o,"class","content svelte-k5ymwy"),f(e,"class","container svelte-k5ymwy"),f(e,"role","region"),f(e,"aria-label",Te=j("aria_label_debug_panel")),G(e,"container-mobile",i[7])},m(Ne,tt){w(Ne,e,tt),_(e,t),_(e,n),_(e,o),_(o,r),_(r,s),_(r,a),_(r,l),_(l,c),_(o,m),We&&We.m(o,null),_(o,h),$&&$.m(o,null),_(o,C),_e&&_e.m(o,null),_(o,g),Ce&&Ce.m(o,null),_(o,S),xe&&xe.m(o,null),_(o,k),st&&st.m(o,null),_(o,F),at&&at.m(o,null),_(o,T),nt&&nt.m(o,null),_(o,v),$e&&$e.m(o,null),_(o,E),fe&&fe.m(o,null),_(o,H),_(o,U),_(U,W),_(U,ne),_(U,de),_(de,q),_(de,X),_(de,oe),_(de,K),_(o,ce),Se&&Se.m(o,null),_(o,z),et&&et.m(o,null),_(o,x),_(o,P),_(P,J),_(P,le),L(Ae,P,null),_(P,ee),_(P,ge),_(ge,Ee),Ie=!0,rt||(Pe=ke(t,"click",vt(i[9])),rt=!0)},p(Ne,[tt]){(!Ie||tt&1)&&u!==(u=Ne[0].version+"")&&Ge(c,u),Ne[0].id?We?We.p(Ne,tt):(We=l1(Ne),We.c(),We.m(o,h)):We&&(We.d(1),We=null),Ne[0].vsid?$?$.p(Ne,tt):($=a1(Ne),$.c(),$.m(o,C)):$&&($.d(1),$=null),Ne[0].provider?_e?_e.p(Ne,tt):(_e=u1(Ne),_e.c(),_e.m(o,g)):_e&&(_e.d(1),_e=null),Ne[0].videoCodec||Ne[0].audioCodec?Ce?Ce.p(Ne,tt):(Ce=c1(Ne),Ce.c(),Ce.m(o,S)):Ce&&(Ce.d(1),Ce=null),Ne[0].viewport?xe?xe.p(Ne,tt):(xe=f1(Ne),xe.c(),xe.m(o,k)):xe&&(xe.d(1),xe=null),Ne[0].videoSize?st?st.p(Ne,tt):(st=d1(Ne),st.c(),st.m(o,F)):st&&(st.d(1),st=null),Ne[0].cdn?at?at.p(Ne,tt):(at=m1(Ne),at.c(),at.m(o,T)):at&&(at.d(1),at=null),Ne[0].volume?nt?nt.p(Ne,tt):(nt=p1(Ne),nt.c(),nt.m(o,v)):nt&&(nt.d(1),nt=null),Ne[0].buffer?$e?$e.p(Ne,tt):($e=_1(Ne),$e.c(),$e.m(o,E)):$e&&($e.d(1),$e=null),Ne[0].currentVideoSegmentLength||Ne[0].currentAudioSegmentLength?fe?fe.p(Ne,tt):(fe=h1(Ne),fe.c(),fe.m(o,H)):fe&&(fe.d(1),fe=null),(!Ie||tt&4)&&Ge(q,Ne[2]),(!Ie||tt&2)&&Ge(oe,Ne[1]),Ne[0].speed?Se?(Se.p(Ne,tt),tt&1&&d(Se,1)):(Se=g1(Ne),Se.c(),d(Se,1),Se.m(o,z)):Se&&(ae(),p(Se,1,1,()=>{Se=null}),ue()),Ne[0].bitrate?et?(et.p(Ne,tt),tt&1&&d(et,1)):(et=b1(Ne),et.c(),d(et,1),et.m(o,x)):et&&(ae(),p(et,1,1,()=>{et=null}),ue());let Fe={};tt&16&&(Fe.values=Ne[4]),Ae.$set(Fe),(!Ie||tt&8)&&Ge(Ee,Ne[3]),(!Ie||tt&128)&&G(e,"container-mobile",Ne[7])},i(Ne){Ie||(d(Se),d(et),d(Ae.$$.fragment,Ne),Ie=!0)},o(Ne){p(Se),p(et),p(Ae.$$.fragment,Ne),Ie=!1},d(Ne){Ne&&y(e),We&&We.d(),$&&$.d(),_e&&_e.d(),Ce&&Ce.d(),xe&&xe.d(),st&&st.d(),at&&at.d(),nt&&nt.d(),$e&&$e.d(),fe&&fe.d(),Se&&Se.d(),et&&et.d(),V(Ae),rt=!1,Pe()}}}var v1=({value:i})=>i,y1=({value:i,title:e})=>`${e} ${((i!=null?i:0)/1e3).toFixed(2)} s`;function Tg(i,e,t){let n,o=ot(),r=o.ui.debugPanelVisible,s=o.ui.isMobile;D(i,s,v=>t(7,n=v));let a=()=>{s1.remove(Jr),r.set(!1)},l=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),c=0,m=0,h=0,C=new Lr(60),g=new Lr(60),S=new Lr(60),k=[],F=[],T=[];return Nt(()=>{s1.set(Jr,"true"),o.actions.internal.startLogging(),u&&(t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,c=u.getVideoPlaybackQuality().totalVideoFrames));let v=window.setInterval(()=>{t(0,l=o.actions.internal.getDebugPanelData())},500),E;return u&&(E=window.setInterval(()=>{if(u){t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames);let H=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=H-c),t(1,c=H),C.push(h),l.speed&&g.push(l.speed),l.bitrate&&S.push(l.bitrate),t(4,k=C.getValuesFromBottom()),t(5,F=g.getValuesFromBottom()),t(6,T=S.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(v),E&&clearInterval(E)}}),[l,c,m,h,k,F,T,n,s,a]}var Ba=class extends N{constructor(e){super(),O(this,e,Tg,Sg,B,{},Cg)}},Gs=Ba;function Ig(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 Pg(i){let e,t,n;return{c(){e=I("div"),f(e,"class","close svelte-1ome55p")},m(o,r){w(o,e,r),t||(n=ke(e,"click",vt(i[0])),t=!0)},p:me,i:me,o:me,d(o){o&&y(e),t=!1,n()}}}function Eg(i){function e(t){Dn.call(this,i,t)}return[e]}var Na=class extends N{constructor(e){super(),O(this,e,Eg,Pg,B,{},Ig)}},w1=Na;import{noop as Ag}from"@vkontakte/videoplayer-shared";function Mg(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 Lg(i){let e,t,n,o,r,s,a;return{c(){e=I("div"),t=I("canvas"),n=Y(),o=M("svg"),r=M("g"),s=M("g"),a=M("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){w(l,e,u),_(e,t),i[2](t),_(e,n),_(e,o),_(o,r),_(r,s),_(s,a)},p:me,i:me,o:me,d(l){l&&y(e),i[2](null)}}}var Vg=5e3;function Rg(i,e,t){let{onTimerEnded:n=Ag}=e,o;Nt(()=>{let s,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let l=Date.now(),u=()=>{let c=(Date.now()-l)/Vg;c<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*c),a.stroke(),s=requestAnimationFrame(u)):n()};return s=requestAnimationFrame(u),()=>{cancelAnimationFrame(s)}});function r(s){ve[s?"unshift":"push"](()=>{o=s,t(0,o)})}return i.$$set=s=>{"onTimerEnded"in s&&t(1,n=s.onTimerEnded)},[o,n,r]}var Da=class extends N{constructor(e){super(),O(this,e,Rg,Lg,B,{onTimerEnded:1},Mg)}},k1=Da;function Bg(i){be(i,"svelte-kisfwc",".overlay.svelte-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.svelte-kisfwc{display:flex;justify-content:space-between}.caption.svelte-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.svelte-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-kisfwc{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-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.svelte-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function C1(i){let e,t;return e=new k1({props:{onTimerEnded:i[2]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.onTimerEnded=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Ng(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H;a=new w1({}),a.$on("click",i[4]);let U=i[3]&&C1(i);return{c(){e=I("div"),t=Y(),n=I("div"),o=I("div"),r=I("div"),r.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",s=Y(),R(a.$$.fragment),l=Y(),u=I("div"),c=I("div"),m=I("div"),h=I("div"),C=Y(),U&&U.c(),S=Y(),k=I("div"),F=I("div"),T=qe(i[0]),f(e,"class","overlay svelte-kisfwc"),f(r,"class","caption svelte-kisfwc"),f(o,"class","top svelte-kisfwc"),f(h,"class","thumb-overlay svelte-kisfwc"),f(m,"class","thumb svelte-kisfwc"),f(m,"style",g=`background-image: url('${i[1]}')`),f(c,"class","column svelte-kisfwc"),f(F,"class","title svelte-kisfwc"),f(k,"class","column svelte-kisfwc"),f(u,"class","row svelte-kisfwc"),f(n,"class","next-video svelte-kisfwc")},m(W,ne){w(W,e,ne),w(W,t,ne),w(W,n,ne),_(n,o),_(o,r),_(o,s),L(a,o,null),_(n,l),_(n,u),_(u,c),_(c,m),_(m,h),_(m,C),U&&U.m(m,null),_(u,S),_(u,k),_(k,F),_(F,T),v=!0,E||(H=ke(u,"click",function(){Jt(i[2])&&i[2].apply(this,arguments)}),E=!0)},p(W,[ne]){i=W,i[3]?U?(U.p(i,ne),ne&8&&d(U,1)):(U=C1(i),U.c(),d(U,1),U.m(m,null)):U&&(ae(),p(U,1,1,()=>{U=null}),ue()),(!v||ne&2&&g!==(g=`background-image: url('${i[1]}')`))&&f(m,"style",g),(!v||ne&1)&&Ge(T,i[0])},i(W){v||(d(a.$$.fragment,W),d(U),v=!0)},o(W){p(a.$$.fragment,W),p(U),v=!1},d(W){W&&(y(e),y(t),y(n)),V(a),U&&U.d(),E=!1,H()}}}function Dg(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:r}=e,s=!0,a=()=>t(3,s=!1);return i.$$set=l=>{"title"in l&&t(0,n=l.title),"thumb"in l&&t(1,o=l.thumb),"playNextVideo"in l&&t(2,r=l.playNextVideo)},[n,o,r,s,a]}var Oa=class extends N{constructor(e){super(),O(this,e,Dg,Ng,B,{title:0,thumb:1,playNextVideo:2},Bg)}},S1=Oa;import{PlaybackState as fr}from"@vkontakte/videoplayer-core";import{checkNever as Fg}from"@vkontakte/videoplayer-shared";import{SeekAction as Tn}from"@vkontakte/videoplayer-statistics";var Fa=(i,e)=>Math.min(+(i+e).toFixed(2),1),Ha=(i,e)=>Math.max(+(i-e).toFixed(2),0),Ys=(i,e,t)=>{let n=Fa(e,t);e<1&&i.actions.internal.setVolume(n)},Qs=(i,e,t)=>{let n=Ha(e,t);e>0&&i.actions.internal.setVolume(n)};var Do=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e==null||e(),!1):t?!0:(n==null||n(),!1);function Hg(i){be(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function qg(i){let e,t,n,o,r,s=i[26].default,a=Le(s,i,i[25],null);return{c(){e=I("div"),a&&a.c(),f(e,"class","keyboard-controls svelte-10kkmxz"),f(e,"tabindex","-1"),f(e,"role","region"),f(e,"aria-label",t=j("aria_label_video_player"))},m(l,u){w(l,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(r=[ke(e,"keyup",i[17]),ke(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&&y(e),a&&a.d(l),i[27](null),o=!1,ft(r)}}}function Ug(i,e,t){var ct,dt;let n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,{$$slots:T={},$$scope:v}=e,{isAds:E}=e,{hideContextMenu:H}=e,{toggleFullscreen:U}=e,{showHotKeyHelpers:W}=e,{showKeyMap:ne}=e,{fakePlayButtonHandler:de}=e,q=ot(),X=Yt(),oe=q.getLogger().createComponentLog("KeyboardControls component"),K=q.state.playbackState$;D(i,K,he=>t(31,o=he));let ce=q.ads.playbackState;D(i,ce,he=>t(30,n=he));let z=q.state.positionExact$;D(i,z,he=>t(41,g=he));let x=q.state.duration$;D(i,x,he=>t(40,C=he));let P=q.state.volume$;D(i,P,he=>t(44,F=he));let J=q.ui.controls.disabledControls$;D(i,J,he=>t(39,h=he));let le=q.state.muted$;D(i,le,he=>t(34,a=he));let Ae=q.state.currentSubtitle$;D(i,Ae,he=>t(33,s=he));let ee=q.state.currentPlaybackRate$;D(i,ee,he=>t(42,S=he));let ge=q.state.availablePlaybackRates$;D(i,ge,he=>t(43,k=he));let Ee=q.ui.contextMenu.openedByHotKey$,Te=q.ui.contextMenu.lastActiveElem$,Ie=q.ui.contextMenu.visible$,rt=q.ui.contextMenu.position$,Pe=q.state.isEnded$;D(i,Pe,he=>t(36,u=he));let We=q.ui.overlayContainer$;D(i,We,he=>t(32,r=he));let $=(ct=q.callbacks)==null?void 0:ct.onAudioDoesNotExistHint,_e=(dt=q.callbacks)==null?void 0:dt.onAudioDisabledHint,Ce=q.state.isAudioAvailable$;D(i,Ce,he=>t(35,l=he));let xe=q.state.isAudioDisabled,st=q.state.isInteractiveTime$;D(i,st,he=>t(38,m=he));let{showInteractiveTimeIndicatorTooltip$:at}=On();D(i,at,he=>t(37,c=he));let nt=0,$e=!0,fe,Se=()=>fe==null?void 0:fe.focus(),et=he=>(he!==$e&&($e=he,nt=0),nt+=1,(X.controls.seekStepKeyboard+X.controls.seekStepKeyboard*nt)/1e3),Ne=he=>{var zt;let pt=he.target,kt=(zt=pt==null?void 0:pt.getAttribute("role"))==null?void 0:zt.includes("menuitem"),Ct=pt.classList.contains("btn"),Ze=he.code;if(Ct&&Ze==="Space")return;let Et=Gf.has(Ze);if(kt&&Et)return;let Vt=!jf.has(Ze);if(he.ctrlKey&&Vt||he.altKey&&Vt||he.metaKey)return;let ri=kt&&Ze==="Escape";Yf.has(Ze)||ri||H();let qt=o===fr.PLAYING||o===fr.PAUSED,Ut=E&&(n==="paused"||n==="playing"),Qt=!Ut&&!h.has("TIMELINE");if(qt||Ut)switch(oe({message:`key down, code: ${Ze}`}),Ze){case"KeyJ":case"ArrowLeft":{if(!Qt)break;if(he.ctrlKey||he.altKey){let Ke=q.actions.internal.getPrevEpisode();q.actions.internal.seekToPrevEpisode(Ke),Ke&&W({type:"EPISODE_PREV",text:Ke.text}),he.preventDefault()}else{let Ke=he.shiftKey?et(!1):X.controls.seekStepKeyboard/1e3,Xe=Math.max(g-Ke,0);g>0&&(q.actions.internal.seekTime(Xe,Tn.DOUBLE_TAP),W({type:"BACKWARD_SEEK",text:Ke.toString()}),he.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Qt)break;if(he.ctrlKey||he.altKey){let Ke=q.actions.internal.getNextEpisode();q.actions.internal.seekToNextEpisode(Ke),Ke&&W({type:"EPISODE_NEXT",text:Ke.text}),he.preventDefault()}else{let Ke=he.shiftKey?et(!0):X.controls.seekStepKeyboard/1e3,Xe=Math.min(g+Ke,C);Math.round(g)<Math.round(C)&&(q.actions.internal.seekTime(Xe,Tn.DOUBLE_TAP),W({type:"FORWARD_SEEK",text:Ke.toString()}),he.preventDefault())}break}case"ArrowUp":{if(Do({isAudioDisabled:xe,audioDisabledHintCallback:_e,isAudioAvailable:l,audioIsNotExistHintCallback:$})){let Ke=F,Xe=X.controls.volumeStepKeyboard,It=Ke<=1;if(Ys(q,Ke,Xe),It){let pe=Math.round(Fa(Ke,Xe)*100).toString();W({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:pe}})}}he.preventDefault();break}case"ArrowDown":{if(Do({isAudioDisabled:xe,audioDisabledHintCallback:_e,isAudioAvailable:l,audioIsNotExistHintCallback:$})){let Ke=F,Xe=X.controls.volumeStepKeyboard,It=Ke>=0;if(Qs(q,Ke,Xe),It){let pe=Math.round(Ha(Ke,Xe)*100).toString();W({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:pe}})}}he.preventDefault();break}case"Comma":{if(he.shiftKey){q.actions.internal.decrementPlaybackRate();let Ke=k.find(Xe=>Xe.value===S);W({type:"RATE_DOWN",text:Ke==null?void 0:Ke.displayValue}),he.preventDefault()}else{if(Ut||o!==fr.PAUSED)break;let Ke=Math.max(g-X.controls.seekStepFrame/1e3,0);g>0&&(W({type:"BACKWARD_SEEK"}),q.actions.internal.clearDelayedBufferingCheckTimeout(),q.actions.internal.seekTime(Ke,Tn.DOUBLE_TAP),he.preventDefault())}break}case"Period":{if(he.shiftKey){q.actions.internal.incrementPlaybackRate();let Ke=k.find(Xe=>Xe.value===S);W({type:"RATE_UP",text:Ke==null?void 0:Ke.displayValue}),he.preventDefault()}else{if(Ut||o!==fr.PAUSED)break;let Ke=Math.min(g+X.controls.seekStepFrame/1e3,C);g<C&&(W({type:"FORWARD_SEEK"}),q.actions.internal.clearDelayedBufferingCheckTimeout(),q.actions.internal.seekTime(Ke,Tn.DOUBLE_TAP),he.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(m&&c&&at.set(!1),de)de();else{q.actions.internal.togglePlay();let Ke="PLAY";o===fr.PAUSED?Ke="PAUSE":u&&(Ke="REPLAY"),W({type:Ke})}he.preventDefault();break;case"KeyM":{Do({isAudioDisabled:xe,audioDisabledHintCallback:_e,isAudioAvailable:l,audioIsNotExistHintCallback:$})&&(W({type:a?"VOLUME":"MUTE"}),q.actions.internal.toggleMuted()),he.preventDefault();break}case"KeyF":U(),he.preventDefault();break;case"KeyC":q.actions.internal.toggleSubtitle(),s.value!=="off"?W({type:"SUBTITLES_ON",text:s==null?void 0:s.displayValue}):W({type:"SUBTITLES_OFF"}),he.preventDefault();break;case"KeyI":q.actions.internal.togglePictureInPicture(),he.preventDefault();break;case"Digit1":case"Numpad1":if(he.shiftKey){let Ke=Jd(r);rt.set(Ke),Te.set(pt),Ee.set(!0),Ie.set(!0),he.preventDefault();break}W(),q.actions.internal.seekToPercent(.1,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit2":case"Numpad2":W(),q.actions.internal.seekToPercent(.2,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit3":case"Numpad3":W(),q.actions.internal.seekToPercent(.3,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit4":case"Numpad4":W(),q.actions.internal.seekToPercent(.4,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit5":case"Numpad5":W(),q.actions.internal.seekToPercent(.5,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit6":case"Numpad6":W(),q.actions.internal.seekToPercent(.6,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit7":case"Numpad7":W(),q.actions.internal.seekToPercent(.7,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit8":case"Numpad8":W(),q.actions.internal.seekToPercent(.8,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit9":case"Numpad9":W(),q.actions.internal.seekToPercent(.9,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit0":case"Numpad0":W(),q.actions.internal.seekToPercent(0,Tn.DOUBLE_TAP),he.preventDefault();break;case"Slash":{he.shiftKey&&X.features.hotKeyMapModal&&(ne(),he.preventDefault());break}case"ShiftLeft":case"ShiftRight":he.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:Fg(Ze);break}},tt=he=>{let pt=he.code;if(he.ctrlKey||he.altKey||he.metaKey)return;let kt=o===fr.PLAYING||o===fr.PAUSED,Ct=E&&(n==="paused"||n==="playing");if(kt||Ct)switch(pt){case"ShiftLeft":case"ShiftRight":nt=0;break}};function Fe(he){ve[he?"unshift":"push"](()=>{fe=he,t(0,fe)})}return i.$$set=he=>{"isAds"in he&&t(18,E=he.isAds),"hideContextMenu"in he&&t(19,H=he.hideContextMenu),"toggleFullscreen"in he&&t(20,U=he.toggleFullscreen),"showHotKeyHelpers"in he&&t(21,W=he.showHotKeyHelpers),"showKeyMap"in he&&t(22,ne=he.showKeyMap),"fakePlayButtonHandler"in he&&t(23,de=he.fakePlayButtonHandler),"$$scope"in he&&t(25,v=he.$$scope)},[fe,K,ce,z,x,P,J,le,Ae,ee,ge,Pe,We,Ce,st,at,Ne,tt,E,H,U,W,ne,de,Se,v,T,Fe]}var qa=class extends N{constructor(e){super(),O(this,e,Ug,qg,B,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},Hg,[-1,-1])}get focus(){return this.$$.ctx[24]}},T1=qa;function zg(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 Wg(i){let e,t,n,o,r,s;return{c(){e=I("div"),t=I("div"),n=Y(),o=I("div"),r=Y(),s=I("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){w(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&&y(e)}}}function Kg(i,e,t){let{style:n=""}=e;return i.$$set=o=>{"style"in o&&t(0,n=o.style)},[n]}var Ua=class extends N{constructor(e){super(),O(this,e,Kg,Wg,B,{style:0},zg)}},Vr=Ua;function xg(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S=i[2].default,k=Le(S,i,i[1],null),F=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],T={};for(let v=0;v<F.length;v+=1)T=se(T,F[v]);return{c(){e=M("svg"),k&&k.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),s=M("filter"),a=M("feFlood"),l=M("feColorMatrix"),u=M("feOffset"),c=M("feGaussianBlur"),m=M("feColorMatrix"),h=M("feBlend"),C=M("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(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_2422_111980"),f(C,"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"),we(e,T)},m(v,E){w(v,e,E),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,C),g=!0},p(v,[E]){k&&k.p&&(!g||E&2)&&Re(k,S,v,v[1],g?Ve(S,v[1],E,null):Be(v[1]),null),we(e,T=He(F,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},E&1&&v[0]]))},i(v){g||(d(k,v),g=!0)},o(v){p(k,v),g=!1},d(v){v&&y(e),k&&k.d(v)}}}function jg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var za=class extends N{constructor(e){super(),O(this,e,jg,xg,B,{})}},I1=za;import{noop as Co}from"@vkontakte/videoplayer-shared";function Gg(i){be(i,"svelte-tk154o",".btn.svelte-tk154o{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center}.w-max.svelte-tk154o{width:100%}.btn--live.svelte-tk154o{padding:10px 4px}.btn-m.svelte-tk154o{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-tk154o{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-tk154o svg{transform:scale(2)}.btn-m--prev.svelte-tk154o,.btn-m--next.svelte-tk154o{position:absolute;width:50px;height:50px}.btn-m--prev.svelte-tk154o{right:calc(100% + 35px)}.btn-m--next.svelte-tk154o{left:calc(100% + 35px)}.btn.svelte-tk154o:disabled{cursor:default;pointer-events:none}.btn.svelte-tk154o:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-tk154o:not(:disabled):hover{opacity:0.8}.pr-0.svelte-tk154o{padding-right:0}.pl-0.svelte-tk154o{padding-left:0}")}function Yg(i){let e,t,n,o,r,s,a,l,u,c,m,h,C=i[14].default,g=Le(C,i,i[13],null);return{c(){var S,k,F,T,v,E;e=I("button"),g&&g.c(),f(e,"class",t="btn "+i[1]+" svelte-tk154o"),f(e,"style",n=i[2]||null),e.disabled=o=(S=i[3])!=null?S:null,f(e,"aria-hidden",r=(k=i[5])!=null?k:null),f(e,"aria-label",s=(F=i[6])!=null?F:null),f(e,"aria-keyshortcuts",a=(T=i[7])!=null?T:null),f(e,"aria-expanded",l=(v=i[8])!=null?v:null),f(e,"data-testid",u=(E=i[4])!=null?E:null),f(e,"tabindex",i[9])},m(S,k){w(S,e,k),g&&g.m(e,null),i[16](e),c=!0,m||(h=[ke(e,"pointerdown",vt(i[15])),ke(e,"click",vt(function(){Jt(i[10]===Co?null:i[10])&&(i[10]===Co?null:i[10]).apply(this,arguments)})),ke(e,"focus",ai(function(){Jt(i[11]===Co?null:i[11])&&(i[11]===Co?null:i[11]).apply(this,arguments)})),ke(e,"blur",ai(function(){Jt(i[12]===Co?null:i[12])&&(i[12]===Co?null:i[12]).apply(this,arguments)}))],m=!0)},p(S,[k]){var F,T,v,E,H,U;i=S,g&&g.p&&(!c||k&8192)&&Re(g,C,i,i[13],c?Ve(C,i[13],k,null):Be(i[13]),null),(!c||k&2&&t!==(t="btn "+i[1]+" svelte-tk154o"))&&f(e,"class",t),(!c||k&4&&n!==(n=i[2]||null))&&f(e,"style",n),(!c||k&8&&o!==(o=(F=i[3])!=null?F:null))&&(e.disabled=o),(!c||k&32&&r!==(r=(T=i[5])!=null?T:null))&&f(e,"aria-hidden",r),(!c||k&64&&s!==(s=(v=i[6])!=null?v:null))&&f(e,"aria-label",s),(!c||k&128&&a!==(a=(E=i[7])!=null?E:null))&&f(e,"aria-keyshortcuts",a),(!c||k&256&&l!==(l=(H=i[8])!=null?H:null))&&f(e,"aria-expanded",l),(!c||k&16&&u!==(u=(U=i[4])!=null?U:null))&&f(e,"data-testid",u),(!c||k&512)&&f(e,"tabindex",i[9])},i(S){c||(d(g,S),c=!0)},o(S){p(g,S),c=!1},d(S){S&&y(e),g&&g.d(S),i[16](null),m=!1,ft(h)}}}function Qg(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:C=void 0}=e,{tabIndex:g=0}=e,{click:S=Co}=e,{focus:k=Co}=e,{blur:F=Co}=e;function T(E){Dn.call(this,i,E)}function v(E){ve[E?"unshift":"push"](()=>{m=E,t(0,m)})}return i.$$set=E=>{"className"in E&&t(1,r=E.className),"style"in E&&t(2,s=E.style),"disabled"in E&&t(3,a=E.disabled),"testId"in E&&t(4,l=E.testId),"ariaHidden"in E&&t(5,u=E.ariaHidden),"ariaLabel"in E&&t(6,c=E.ariaLabel),"ref"in E&&t(0,m=E.ref),"ariaKeyShortCut"in E&&t(7,h=E.ariaKeyShortCut),"ariaExpanded"in E&&t(8,C=E.ariaExpanded),"tabIndex"in E&&t(9,g=E.tabIndex),"click"in E&&t(10,S=E.click),"focus"in E&&t(11,k=E.focus),"blur"in E&&t(12,F=E.blur),"$$scope"in E&&t(13,o=E.$$scope)},[m,r,s,a,l,u,c,h,C,g,S,k,F,o,n,T,v]}var Wa=class extends N{constructor(e){super(),O(this,e,Qg,Yg,B,{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},Gg)}},ht=Wa;function Zg(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 P1(i){let e,t,n,o,r,s=i[2]&&E1(i);return{c(){e=I("div"),t=I("h3"),n=qe(i[3]),o=Y(),s&&s.c(),f(t,"class","modal-title svelte-1witlsj"),f(e,"class","modal-header svelte-1witlsj")},m(a,l){w(a,e,l),_(e,t),_(t,n),_(e,o),s&&s.m(e,null),r=!0},p(a,l){(!r||l&8)&&Ge(n,a[3]),a[2]?s?(s.p(a,l),l&4&&d(s,1)):(s=E1(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&&y(e),s&&s.d()}}}function E1(i){let e,t;return e=new ht({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:j("hotkey_map_modal_close_btn_text"),$$slots:{default:[Xg]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Xg(i){let e,t;return e=new I1({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Jg(i){let e,t,n,o,r,s,a=i[1]&&P1(i),l=i[4].default,u=Le(l,i,i[5],null);return{c(){e=I("div"),t=I("div"),a&&a.c(),n=Y(),o=I("div"),r=I("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){w(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=P1(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)&&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&&y(e),a&&a.d(),u&&u.d(c)}}}function $g(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 Ka=class extends N{constructor(e){super(),O(this,e,$g,Jg,B,{onClose:0,showHeader:1,showCloseCross:2,title:3},Zg)}},A1=Ka;var e2=new Set(["BR"]),xa=i=>{var o;let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let r=t[n],s=r.tagName;e2.has(s)||(o=r.parentElement)==null||o.removeChild(r)}return e.innerHTML};function t2(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 M1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function L1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function V1(i){let e,t,n=xa(i[9])+"",o,r,s=i[10]+"",a,l;return{c(){e=I("li"),t=I("span"),o=Y(),r=I("span"),a=qe(s),l=Y(),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){w(u,e,c),_(e,t),t.innerHTML=n,_(e,o),_(e,r),_(r,a),_(e,l)},p(u,c){c&1&&n!==(n=xa(u[9])+"")&&(t.innerHTML=n),c&1&&s!==(s=u[10]+"")&&Ge(a,s)},d(u){u&&y(e)}}}function R1(i){let e,t,n=i[5]+"",o,r,s,a,l=wt(i[6]),u=[];for(let c=0;c<l.length;c+=1)u[c]=V1(L1(i,l,c));return{c(){e=I("div"),t=I("h5"),o=qe(n),r=Y(),s=I("ul");for(let c=0;c<u.length;c+=1)u[c].c();a=Y(),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){w(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]+"")&&Ge(o,n),m&1){l=wt(c[6]);let h;for(h=0;h<l.length;h+=1){let C=L1(c,l,h);u[h]?u[h].p(C,m):(u[h]=V1(C),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&&y(e),li(u,c)}}}function i2(i){let e,t=wt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=R1(M1(i,t,o));return{c(){e=I("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","hot-key-map svelte-quklnq")},m(o,r){w(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=wt(o[0].groups);let s;for(s=0;s<t.length;s+=1){let a=M1(o,t,s);n[s]?n[s].p(a,r):(n[s]=R1(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&&y(e),li(n,o)}}}function n2(i){let e,t;return e=new A1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[i2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function o2(i,e,t){let n,o=ot(),{data:r,show:s}=o.ui.modals.hotKeyMap;return D(i,r,l=>t(0,n=l)),[n,r,()=>{s.set(!1)}]}var ja=class extends N{constructor(e){super(),O(this,e,o2,n2,B,{},t2)}},B1=ja;import{noop as Ep}from"@vkontakte/videoplayer-shared";var Zs;function Rr(i){return Zs||(Zs=new ResizeObserver(e=>{for(let t of e)t.target.dispatchEvent(new CustomEvent("fd:resize"))})),Zs.observe(i),{destroy(){Zs.unobserve(i)}}}import{ChromecastState as qm,PlaybackState as uc}from"@vkontakte/videoplayer-core";import"@vkontakte/videoplayer-shared";function r2(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 s2(i){let e,t,n=i[1].default,o=Le(n,i,i[0],null);return{c(){e=I("div"),o&&o.c(),f(e,"class","pillow svelte-1oe0j8n")},m(r,s){w(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&&y(e),o&&o.d(r)}}}function l2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var Ga=class extends N{constructor(e){super(),O(this,e,l2,s2,B,{},r2)}},N1=Ga;import{VideoQuality as ts}from"@vkontakte/videoplayer-shared";function a2(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=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("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"),we(e,l)},m(u,c){w(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),we(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&&y(e),s&&s.d(u)}}}function u2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ya=class extends N{constructor(e){super(),O(this,e,u2,a2,B,{})}},D1=Ya;function c2(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=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("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"),we(e,l)},m(u,c){w(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),we(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&&y(e),s&&s.d(u)}}}function f2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Qa=class extends N{constructor(e){super(),O(this,e,f2,c2,B,{})}},O1=Qa;function d2(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function m2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Za=class extends N{constructor(e){super(),O(this,e,m2,d2,B,{})}},F1=Za;function p2(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function _2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Xa=class extends N{constructor(e){super(),O(this,e,_2,p2,B,{})}},Xs=Xa;function h2(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=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("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"),we(e,l)},m(u,c){w(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),we(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&&y(e),s&&s.d(u)}}}function g2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ja=class extends N{constructor(e){super(),O(this,e,g2,h2,B,{})}},Js=Ja;var $s=i=>{switch(i){case ts.Q_720P:return F1;case ts.Q_1080P:return Xs;case ts.Q_1440P:return Js;case ts.Q_2160P:return D1;case ts.Q_4320P:return O1}};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:"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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function v2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var $a=class extends N{constructor(e){super(),O(this,e,v2,b2,B,{})}},H1=$a;function y2(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=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("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"),we(e,l)},m(u,c){w(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),we(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&&y(e),s&&s.d(u)}}}function w2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var eu=class extends N{constructor(e){super(),O(this,e,w2,y2,B,{})}},q1=eu;function k2(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 C2(i){let e,t,n,o,r=i[1]&&U1(i);return n=new q1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=I("div"),r&&r.c(),t=Y(),R(n.$$.fragment),f(e,"class","icon svelte-8t5w85"),f(e,"aria-hidden","true"),G(e,"triple",i[2])},m(s,a){w(s,e,a),r&&r.m(e,null),_(e,t),L(n,e,null),o=!0},p(s,a){s[1]?r?(r.p(s,a),a&2&&d(r,1)):(r=U1(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)&&G(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&&y(e),r&&r.d(),V(n)}}}function S2(i){let e,t;return e=new H1({}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function U1(i){let e,t;return e=new N1({props:{$$slots:{default:[T2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function T2(i){let e,t,n;var o=i[1];function r(s,a){return{}}return o&&(e=Ot(o,r(i))),{c(){e&&R(e.$$.fragment),t=Je()},m(s,a){e&&L(e,s,a),w(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,()=>{V(l,1)}),ue()}o?(e=Ot(o,r(s,a)),R(e.$$.fragment),d(e.$$.fragment,1),L(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&&y(t),e&&V(e,s)}}}function I2(i){let e,t,n,o,r=[S2,C2],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=Je()},m(l,u){s[e].m(l,u),w(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&&y(n),s[e].d(l)}}}function P2(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=$s(r)),i.$$.dirty&2&&t(2,s=!!n&&[Xs,Js].includes(n))},[o,n,s,r]}var tu=class extends N{constructor(e){super(),O(this,e,P2,I2,B,{isMobile:0,currentQuality:3},k2)}},el=tu;function E2(i){be(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function A2(i){let e,t,n;return t=new el({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=I("span"),R(t.$$.fragment),f(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){w(o,e,r),L(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&&y(e),V(t)}}}function M2(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:[A2]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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&8216&&(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){V(e,s)}}}function L2(i,e,t){let n,o,r,{ref$:s}=e,a=ot(),l=a.state.currentQuality$;D(i,l,k=>t(4,r=k));let u=a.ui.settingsMenuVisible;D(i,u,k=>t(1,n=k));let c=a.actions.internal.toggleSettingsMenu,m=a.ui.isMobile;D(i,m,k=>t(3,o=k));let h,C;function g(k){let F=Er(k);c(F)}function S(k){h=k,t(0,h)}return i.$$set=k=>{"ref$"in k&&t(9,s=k.ref$)},i.$$.update=()=>{i.$$.dirty&513&&s&&s.set(h),i.$$.dirty&2&&t(2,C=n?j("tooltip_settings_on"):j("tooltip_settings_off"))},[h,n,C,o,r,l,u,m,g,s,S]}var iu=class extends N{constructor(e){super(),O(this,e,L2,M2,B,{ref$:9},E2)}},is=iu;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:"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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function R2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var nu=class extends N{constructor(e){super(),O(this,e,R2,V2,B,{})}},z1=nu;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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function N2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ou=class extends N{constructor(e){super(),O(this,e,N2,B2,B,{})}},tl=ou;function D2(i){let e,t;return e=new tl({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function O2(i){let e,t;return e=new z1({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function F2(i){let e,t,n,o,r=[O2,D2],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=Je()},m(l,u){s[e].m(l,u),w(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&&y(n),s[e].d(l)}}}function H2(i){let e,t;return e=new ht({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:fo.KeyC,$$slots:{default:[F2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function q2(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?j("tooltip_subtitles_on"):j("tooltip_subtitles_off"))},[n,o,r]}var ru=class extends N{constructor(e){super(),O(this,e,q2,H2,B,{isSubtitlesEnabled:0,click:1})}},W1=ru;function U2(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 K1(i){let e,t;return{c(){e=I("span"),t=qe(i[3]),f(e,"class","duration svelte-19o2urr")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&8&&Ge(t,n[3])},d(n){n&&y(e)}}}function z2(i){let e,t,n,o,r=i[2]&&K1(i);return{c(){e=I("div"),t=I("span"),n=qe(i[4]),o=Y(),r&&r.c(),f(t,"class","current svelte-19o2urr"),f(e,"class","time svelte-19o2urr"),G(e,"mobile",i[1])},m(s,a){w(s,e,a),_(e,t),_(t,n),_(e,o),r&&r.m(e,null),i[7](e)},p(s,[a]){a&16&&Ge(n,s[4]),s[2]?r?r.p(s,a):(r=K1(s),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&G(e,"mobile",s[1])},i:me,o:me,d(s){s&&y(e),r&&r.d(),i[7](null)}}}function W2(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=Fn(o)),i.$$.dirty&64&&t(4,u=Fn(r))},[a,n,s,l,u,o,r,c]}var su=class extends N{constructor(e){super(),O(this,e,W2,z2,B,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},U2)}},il=su;import{noop as Oo}from"@vkontakte/videoplayer-shared";function K2(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 x2(i){let e,t,n,o,r,s;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),r=M("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){w(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&&y(e)}}}function j2(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 lu=class extends N{constructor(e){super(),O(this,e,j2,x2,B,{volume:1,muted:2},K2)}},dr=lu;import{noop as io}from"@vkontakte/videoplayer-shared";import{noop as eb}from"@vkontakte/videoplayer-shared";import{noop as Q2}from"@vkontakte/videoplayer-shared";function G2(i){let e,t,n=i[4].default,o=Le(n,i,i[3],null);return{c(){e=I("div"),o&&o.c(),f(e,"class","overlay")},m(r,s){w(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&&y(e),o&&o.d(r),i[5](null)}}}function Y2(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=ot().ui.overlayContainer$;D(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)};Nt(()=>(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 au=class extends N{constructor(e){super(),O(this,e,Y2,G2,B,{})}},x1=au;function Z2(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 j1(i){let e,t;return e=new x1({props:{$$slots:{default:[X2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function X2(i){let e,t,n,o,r;return{c(){e=I("div"),t=I("div"),n=qe(i[2]),o=Y(),r=I("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]),G(e,"active",i[0])},m(s,a){w(s,e,a),_(e,t),_(t,n),_(e,o),_(e,r),i[23](e)},p(s,a){a[0]&4&&Ge(n,s[2]),a[0]&128&&f(r,"style",s[7]),a[0]&64&&f(e,"style",s[6]),a[0]&1&&G(e,"active",s[0])},d(s){s&&y(e),i[23](null)}}}function J2(i){let e,t,n,o,r,s,a=i[21].default,l=Le(a,i,i[24],null),u=i[2]&&!i[1]&&j1(i);return{c(){e=I("div"),l&&l.c(),t=Y(),u&&u.c(),n=Je(),f(e,"class","tooltip-wrapper svelte-1jbbzcj"),G(e,"full-width",i[3])},m(c,m){w(c,e,m),l&&l.m(e,null),i[22](e),w(c,t,m),u&&u.m(c,m),w(c,n,m),o=!0,r||(s=[ke(e,"mouseenter",i[10]),ke(e,"mousemove",i[10]),ke(e,"mouseleave",i[11]),ke(e,"mousedown",i[11]),ke(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)&&G(e,"full-width",c[3]),c[2]&&!c[1]?u?(u.p(c,m),m[0]&6&&d(u,1)):(u=j1(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&&(y(e),y(t),y(n)),l&&l.d(c),i[22](null),u&&u.d(c),r=!1,ft(s)}}}var So=5;function $2(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:C=void 0}=e,{placement:g="top"}=e,{onVisibilityChange:S=Q2}=e,k,F,T,v=0,E=0,H=0,U=0,W=Yt(),ne=ot(),de=ne.ui.playerSize;D(i,de,Pe=>t(27,o=Pe));let q=ne.ui.overlayContainer$;D(i,q,Pe=>t(26,n=Pe));let X=ne.getLogger().createComponentLog("Tooltip component"),oe=()=>{if(!n||!F||!k)return;t(18,E=So);let Pe=n.getBoundingClientRect(),We=k.getBoundingClientRect(),$=We.width,_e=F.clientWidth,Ce=o.width,xe=($-_e)/2,st=We.left+c-Pe.left,at=st+xe,nt=We.top+m-Pe.top,$e=_e/2-So,fe=at<8,Se=at+_e>Ce-8;fe&&(at=8,$e=st+We.width/2-2.5*So),Se&&(at=Ce-8-_e,$e=We.left-Pe.left+We.width/2-at-So),t(19,H=at),t(20,U=nt),t(17,v=$e)},K=()=>{!n||!F||!k||t(18,E=-So)},ce=()=>{if(!n||!F||!k)return;t(17,v=So);let Pe=n.getBoundingClientRect(),We=k.getBoundingClientRect(),$=We.height,_e=F.clientHeight,Ce=($-_e)/2+_e,xe=We.left+c-Pe.left-F.clientWidth,st=2,at=xe-So;at<8&&(at=8);let $e=We.top+m-Pe.top+Ce,fe=st-Ce/2,Se=st-So;t(19,H=at),t(20,U=$e),t(18,E=fe),t(17,v=Se)},z=()=>{!n||!F||!k||t(17,v=-So)},x=()=>{switch(g){case"top":oe();break;case"bottom":K();break;case"left":ce();break;default:z()}},P=()=>{try{if(!n||!k)return;x(),t(0,u=!0)}catch(Pe){X({message:String(Pe)})}},J=()=>{t(0,u=!1)},le=()=>{F&&(T||(T=window.setTimeout(P,W.controls.hideTimeoutTooltips)),u&&P())},Ae=()=>{J(),window.clearTimeout(T),T=void 0},ee=(Pe,We)=>{let $="";switch(g){case"top":$=`transform: translate(${Pe}px, ${We}px);`;break;case"bottom":$=`transform: translate(${Pe}px, ${We}px); top: auto; bottom: 100%;`;break;case"left":$=`transform: translate(${Pe}px, ${We}px); left: 0; right: auto;`;break;default:$=`transform: translate(${Pe}px, ${We}px);`}return $+=` max-width: ${C===void 0?"auto":`${C}px`};`,$},ge=(Pe,We)=>{let $="";switch(g){case"top":$=`transform: translate(${Pe}px, ${We}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":$=`transform: translate(${Pe}px, ${We}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":$=`transform: translate(${Pe}px, ${We}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:$=`transform: translate(${Pe}px, ${We}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return $},Ee,Te;Nt(x),$n(()=>window.clearTimeout(T));function Ie(Pe){ve[Pe?"unshift":"push"](()=>{k=Pe,t(4,k)})}function rt(Pe){ve[Pe?"unshift":"push"](()=>{F=Pe,t(5,F)})}return i.$$set=Pe=>{"isMobile"in Pe&&t(1,a=Pe.isMobile),"content"in Pe&&t(2,l=Pe.content),"active"in Pe&&t(0,u=Pe.active),"translateX"in Pe&&t(12,c=Pe.translateX),"translateY"in Pe&&t(13,m=Pe.translateY),"isFullWidthWrapper"in Pe&&t(3,h=Pe.isFullWidthWrapper),"maxTooltipWidth"in Pe&&t(14,C=Pe.maxTooltipWidth),"placement"in Pe&&t(15,g=Pe.placement),"onVisibilityChange"in Pe&&t(16,S=Pe.onVisibilityChange),"$$scope"in Pe&&t(24,s=Pe.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&65537&&S(u),i.$$.dirty[0]&1966080&&(t(6,Ee=ee(H,U)),t(7,Te=ge(v,E)))},[u,a,l,h,k,F,Ee,Te,de,q,le,Ae,c,m,C,g,S,v,E,H,U,r,Ie,rt,s]}var uu=class extends N{constructor(e){super(),O(this,e,$2,J2,B,{isMobile:1,content:2,active:0,translateX:12,translateY:13,isFullWidthWrapper:3,maxTooltipWidth:14,placement:15,onVisibilityChange:16},Z2,[-1,-1])}},Br=uu;function tb(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 ib(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 nb(i){let e,t;return e=new Br({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[ob]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function ob(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 rb(i){let e,t,n,o,r,s,a,l,u,c=[nb,ib],m=[];function h(C,g){return C[3]&&C[11]&&!C[12]?0:1}return t=h(i,-1),n=m[t]=c[t](i),{c(){e=I("div"),n.c(),f(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),f(e,"aria-hidden",r=i[7]||null)},m(C,g){w(C,e,g),m[t].m(e,null),i[23](e),a=!0,l||(u=[br(s=Rr.call(null,e)),ke(e,"fd:resize",i[22]),ke(e,"pointerdown",vt(i[20])),ke(e,"click",vt(i[21]))],l=!0)},p(C,[g]){let S=t;t=h(C,g),t===S?m[t].p(C,g):(ae(),p(m[S],1,1,()=>{m[S]=null}),ue(),n=m[t],n?n.p(C,g):(n=m[t]=c[t](C),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+C[2]+" svelte-p9r045"))&&f(e,"class",o),(!a||g&128&&r!==(r=C[7]||null))&&f(e,"aria-hidden",r)},i(C){a||(d(n),a=!0)},o(C){p(n),a=!1},d(C){C&&y(e),m[t].d(),i[23](null),l=!1,ft(u)}}}function sb(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:C=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:S="top"}=e,{disabledTooltipContent:k=j("tooltip_button_disabled")}=e,{isAriaHidden:F=!1}=e,{onTooltipVisibilityChange:T=eb}=e,{initialTranslateXPx:v=0}=e,{initialTranslateYPx:E=-18}=e,H=ot(),U=H.ui.isMobile;D(i,U,K=>t(12,o=K));let W=H.state.graphIsOpened$;D(i,W,K=>t(18,n=K));let ne;function de(K){Dn.call(this,i,K)}function q(K){Dn.call(this,i,K)}let X=K=>{t(1,m=K.target.clientWidth)};function oe(K){ve[K?"unshift":"push"](()=>{c=K,t(0,c)})}return i.$$set=K=>{"className"in K&&t(2,a=K.className),"disabled"in K&&t(15,l=K.disabled),"hasTooltip"in K&&t(3,u=K.hasTooltip),"ref"in K&&t(0,c=K.ref),"width"in K&&t(1,m=K.width),"isFullWidthTooltip"in K&&t(4,h=K.isFullWidthTooltip),"tooltipContent"in K&&t(16,C=K.tooltipContent),"tooltipActive"in K&&t(5,g=K.tooltipActive),"tooltipPlacement"in K&&t(6,S=K.tooltipPlacement),"disabledTooltipContent"in K&&t(17,k=K.disabledTooltipContent),"isAriaHidden"in K&&t(7,F=K.isAriaHidden),"onTooltipVisibilityChange"in K&&t(8,T=K.onTooltipVisibilityChange),"initialTranslateXPx"in K&&t(9,v=K.initialTranslateXPx),"initialTranslateYPx"in K&&t(10,E=K.initialTranslateYPx),"$$scope"in K&&t(24,s=K.$$scope)},i.$$.update=()=>{i.$$.dirty&491520&&(l?t(11,ne=n?j("tooltip_disabled_when_graph_on"):k):t(11,ne=C))},[c,m,a,u,h,g,S,F,T,v,E,ne,o,U,W,l,C,k,n,r,de,q,X,oe,s]}var cu=class extends N{constructor(e){super(),O(this,e,sb,rb,B,{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},tb)}},Ji=cu;function lb(i){let e,t,n,o,r,s;return{c(){e=M("svg"),t=M("rect"),o=M("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){w(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&&y(e)}}}function ab(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var fu=class extends N{constructor(e){super(),O(this,e,ab,lb,B,{completed:0})}},nl=fu;function ub(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 cb(i){let e,t,n,o,r,s,a;return t=new nl({props:{completed:!!i[0].completed}}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","interactive-episode-icon svelte-bklhpe"),f(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),G(e,"disabled",i[1])},m(l,u){w(l,e,u),L(t,e,null),r=!0,s||(a=[br(o=Rr.call(null,e)),ke(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)&&G(e,"disabled",l[1])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){p(t.$$.fragment,l),r=!1},d(l){l&&y(e),V(t),s=!1,ft(a)}}}function fb(i){let e,t;return e=new Ji({props:{tooltipContent:j(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:[cb]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.tooltipContent=j(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){V(e,n)}}}function db(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 du=class extends N{constructor(e){super(),O(this,e,db,fb,B,{videoEpisode:0,disabled:1},ub)}},G1=du;function mb(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 Y1(i,e,t){let n=i.slice();return n[3]=e[t],n}function Q1(i){let e,t,n,o,r,s,a,l,u;return{c(){e=I("div"),t=I("div"),n=I("div"),r=Y(),s=I("div"),l=Y(),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}%)`),G(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}%`),G(e,"disabled",i[2]),G(e,"mobile",i[1])},m(c,m){w(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&&G(s,"mobile",c[1]),m&1&&u!==(u=`left: ${c[3].from}%; width: ${c[3].width}%`)&&f(e,"style",u),m&4&&G(e,"disabled",c[2]),m&2&&G(e,"mobile",c[1])},d(c){c&&y(e)}}}function pb(i){let e,t=wt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=Q1(Y1(i,t,o));return{c(){e=I("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","video-episodes-wrap svelte-1rzxunm")},m(o,r){w(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=wt(o[0]);let s;for(s=0;s<t.length;s+=1){let a=Y1(o,t,s);n[s]?n[s].p(a,r):(n[s]=Q1(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&&y(e),li(n,o)}}}function _b(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 mu=class extends N{constructor(e){super(),O(this,e,_b,pb,B,{videoEpisodes:0,isMobile:1,disabled:2},mb)}},Z1=mu;function hb(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 X1(i,e,t){let n=i.slice();return n[50]=e[t],n}function J1(i){let e,t,n=wt(i[21]),o=[];for(let s=0;s<n.length;s+=1)o[s]=em(X1(i,n,s));let r=s=>p(o[s],1,1,()=>{o[s]=null});return{c(){e=I("div");for(let s=0;s<o.length;s+=1)o[s].c();f(e,"class","interactive-icons svelte-v8ydei"),G(e,"mobile",i[6]),G(e,"hidden",i[6]&&!i[20])},m(s,a){w(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=wt(s[21]);let l;for(l=0;l<n.length;l+=1){let u=X1(s,n,l);o[l]?(o[l].p(u,a),d(o[l],1)):(o[l]=em(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)&&G(e,"mobile",s[6]),(!t||a[0]&1048640)&&G(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&&y(e),li(o,s)}}}function $1(i){let e,t;return e=new G1({props:{videoEpisode:i[50],disabled:i[10]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function em(i){let e,t,n=i[50].interactive&&$1(i);return{c(){n&&n.c(),e=Je()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,r){o[50].interactive?n?(n.p(o,r),r[0]&2097152&&d(n,1)):(n=$1(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&&y(e),n&&n.d(o)}}}function gb(i){let e,t,n,o,r,s;return{c(){e=I("div"),t=I("div"),o=Y(),r=I("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}%);`),G(r,"active-live",i[5]),G(r,"ads",i[7]),f(e,"class","bars svelte-v8ydei")},m(a,l){w(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&&G(r,"active-live",a[5]),l[0]&128&&G(r,"ads",a[7])},i:me,o:me,d(a){a&&y(e)}}}function bb(i){let e,t;return e=new Z1({props:{videoEpisodes:i[21],disabled:i[10],isMobile:i[6]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function vb(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g=i[9]&&J1(i),S=[bb,gb],k=[];function F(T,v){return T[21].length?0:1}return n=F(i,[-1,-1]),o=k[n]=S[n](i),{c(){var T;g&&g.c(),e=Y(),t=I("div"),o.c(),r=Y(),s=I("div"),a=I("div"),f(a,"class","handle svelte-v8ydei"),G(a,"active-live",i[5]),f(s,"class","handleWrap svelte-v8ydei"),f(s,"style",l=`transform: translateX(${i[14]*100}%);`),G(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=(T=i[2])!=null?T:null),G(t,"disabled",i[10]),G(t,"slider-dragging",i[20]),G(t,"hidden",i[3]),G(t,"slider-vertical",i[4]),G(t,"no-handle",i[11]),G(t,"square",i[8])},m(T,v){g&&g.m(T,v),w(T,e,v),w(T,t,v),k[n].m(t,null),_(t,r),_(t,s),_(s,a),i[44](t),m=!0,h||(C=[ke(t,"pointerdown",ai(i[22])),ke(t,"pointermove",ai(i[23])),ke(t,"pointerup",ai(i[24])),ke(t,"pointerenter",ai(i[25])),ke(t,"pointerleave",ai(i[26])),ke(t,"click",vt(i[28])),ke(t,"wheel",i[27])],h=!0)},p(T,v){var H;T[9]?g?(g.p(T,v),v[0]&512&&d(g,1)):(g=J1(T),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(ae(),p(g,1,1,()=>{g=null}),ue());let E=n;n=F(T,v),n===E?k[n].p(T,v):(ae(),p(k[E],1,1,()=>{k[E]=null}),ue(),o=k[n],o?o.p(T,v):(o=k[n]=S[n](T),o.c()),d(o,1),o.m(t,r)),(!m||v[0]&32)&&G(a,"active-live",T[5]),(!m||v[0]&16384&&l!==(l=`transform: translateX(${T[14]*100}%);`))&&f(s,"style",l),(!m||v[0]&2048)&&G(s,"hidden",T[11]),(!m||v[0]&2&&u!==(u="slider "+T[1]+" svelte-v8ydei"))&&f(t,"class",u),(!m||v[0]&32768)&&f(t,"aria-label",T[15]),(!m||v[0]&65536)&&f(t,"aria-valuemin",T[16]),(!m||v[0]&131072)&&f(t,"aria-valuemax",T[17]),(!m||v[0]&262144)&&f(t,"aria-valuenow",T[18]),(!m||v[0]&524288)&&f(t,"aria-valuetext",T[19]),(!m||v[0]&4&&c!==(c=(H=T[2])!=null?H:null))&&f(t,"data-testid",c),(!m||v[0]&1026)&&G(t,"disabled",T[10]),(!m||v[0]&1048578)&&G(t,"slider-dragging",T[20]),(!m||v[0]&10)&&G(t,"hidden",T[3]),(!m||v[0]&18)&&G(t,"slider-vertical",T[4]),(!m||v[0]&2050)&&G(t,"no-handle",T[11]),(!m||v[0]&258)&&G(t,"square",T[8])},i(T){m||(d(g),d(o),m=!0)},o(T){p(g),p(o),m=!1},d(T){T&&(y(e),y(t)),g&&g.d(T),k[n].d(),i[44](null),h=!1,ft(C)}}}function yb(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:C=!1}=e,{videoEpisodes:g=[]}=e,{withWheelHandler:S=!1}=e,{isInteractive:k=!1}=e,{disabled:F=!1}=e,{hideHandel:T=!1}=e,v,{onPointerDown:E=io}=e,{onHandleMove:H=io}=e,{onPointerUp:U=io}=e,{onPointerEnter:W=io}=e,{onPointerMove:ne=io}=e,{onPointerLeave:de=io}=e,{onWheelUp:q=io}=e,{onWheelDown:X=io}=e,{onWheelLeft:oe=io}=e,{onWheelRight:K=io}=e,{onDisabledClick:ce=io}=e,{loadedProgress:z=0}=e,{filledProgress:x=0}=e,{handleProgress:P=0}=e,{ariaLabel:J=""}=e,{ariaValueMin:le=void 0}=e,{ariaValueMax:Ae=void 0}=e,{ariaValueNow:ee=void 0}=e,{ariaValueText:ge=""}=e,Ee=Yt(),Te=!1,Ie;function rt(fe){if(r&&(v=r.getBoundingClientRect()),F||Te||!r)return;t(20,Te=!0);let Se=st(fe.clientX,fe.clientY);E(Se),r.setPointerCapture(fe.pointerId)}function Pe(fe){if(F)return;let Se=st(fe.clientX,fe.clientY),et=at(fe.clientX);ne(Se,et,v.width),Te&&H(Se)}function We(fe){if(F||!Te)return;t(20,Te=!1);let Se=st(fe.clientX,fe.clientY);U(Se)}function $(fe){if(r&&(v=r.getBoundingClientRect()),F)return;let Se=st(fe.clientX,fe.clientY),et=at(fe.clientX);W(Se,et,v.width)}function _e(){F||de()}function Ce(fe){F||S&&(fe.preventDefault(),fe.deltaY<0?q():fe.deltaY>0?X():fe.deltaX>0?K():oe())}function xe(fe){F&&ce(st(fe.clientX,fe.clientY))}function st(fe,Se){return u?Math.max(0,Math.min(1,(v.height-(Se-v.top))/v.height)):Math.min(Math.max(fe-v.x,0),v.width)/v.width}function at(fe){return Math.min(Math.max(fe-v.x,0),v.width)}function nt(fe,Se){let et=Ee.features.episodesClustering&&!k?Ee.episodeMinWidthPc:0,Ne=[],tt=0,Fe=0,ct=0;for(let pt=1;pt<g.length;pt++)Fe=g[pt].time/Ie*100,Fe-tt>et&&(Ne.push({from:tt,width:Math.max(0,Fe-tt),loadedWidth:Math.max(0,Math.min(Fe,fe)-tt),filledWidth:Math.max(0,Math.min(Fe,Se)-tt),interactive:g[pt-1].interactive,completed:g[pt-1].completed}),tt=g[pt].time/Ie*100,ct++);let dt={from:tt,width:Math.max(0,100-tt),loadedWidth:Math.max(0,Math.min(fe,100)-tt),filledWidth:Math.max(0,Math.min(Se,100)-tt),interactive:g[ct].interactive,completed:g[ct].completed};100-tt<et?(ct-=1,Ne[ct].width+=100-tt,Ne[ct].loadedWidth+=Math.max(0,Math.min(fe,100)-tt),Ne[ct].filledWidth+=Math.max(0,Math.min(Se,100)-tt)):Ne[ct]=dt;let he=g[0].time;if(he!==0){let pt=he/Ie*100;Ne.unshift({from:0,width:pt,loadedWidth:Math.min(pt,fe),filledWidth:Math.min(pt,Se)})}return Ne}function $e(fe){ve[fe?"unshift":"push"](()=>{r=fe,t(0,r)})}return i.$$set=fe=>{"ref"in fe&&t(0,r=fe.ref),"className"in fe&&t(1,s=fe.className),"testId"in fe&&t(2,a=fe.testId),"isHidden"in fe&&t(3,l=fe.isHidden),"isVertical"in fe&&t(4,u=fe.isVertical),"isActiveLive"in fe&&t(5,c=fe.isActiveLive),"isMobile"in fe&&t(6,m=fe.isMobile),"isAds"in fe&&t(7,h=fe.isAds),"squareBorders"in fe&&t(8,C=fe.squareBorders),"videoEpisodes"in fe&&t(29,g=fe.videoEpisodes),"withWheelHandler"in fe&&t(30,S=fe.withWheelHandler),"isInteractive"in fe&&t(9,k=fe.isInteractive),"disabled"in fe&&t(10,F=fe.disabled),"hideHandel"in fe&&t(11,T=fe.hideHandel),"onPointerDown"in fe&&t(31,E=fe.onPointerDown),"onHandleMove"in fe&&t(32,H=fe.onHandleMove),"onPointerUp"in fe&&t(33,U=fe.onPointerUp),"onPointerEnter"in fe&&t(34,W=fe.onPointerEnter),"onPointerMove"in fe&&t(35,ne=fe.onPointerMove),"onPointerLeave"in fe&&t(36,de=fe.onPointerLeave),"onWheelUp"in fe&&t(37,q=fe.onWheelUp),"onWheelDown"in fe&&t(38,X=fe.onWheelDown),"onWheelLeft"in fe&&t(39,oe=fe.onWheelLeft),"onWheelRight"in fe&&t(40,K=fe.onWheelRight),"onDisabledClick"in fe&&t(41,ce=fe.onDisabledClick),"loadedProgress"in fe&&t(12,z=fe.loadedProgress),"filledProgress"in fe&&t(13,x=fe.filledProgress),"handleProgress"in fe&&t(14,P=fe.handleProgress),"ariaLabel"in fe&&t(15,J=fe.ariaLabel),"ariaValueMin"in fe&&t(16,le=fe.ariaValueMin),"ariaValueMax"in fe&&t(17,Ae=fe.ariaValueMax),"ariaValueNow"in fe&&t(18,ee=fe.ariaValueNow),"ariaValueText"in fe&&t(19,ge=fe.ariaValueText)},i.$$.update=()=>{var fe;i.$$.dirty[0]&131072&&t(42,Ie=Ae!=null?Ae:0),i.$$.dirty[0]&536870912|i.$$.dirty[1]&2048&&t(43,n=((fe=g[g.length-1])==null?void 0:fe.time)<Ie),i.$$.dirty[0]&536883200|i.$$.dirty[1]&6144&&t(21,o=g.length&&n&&Ie?nt(z*100,x*100):[])},[r,s,a,l,u,c,m,h,C,k,F,T,z,x,P,J,le,Ae,ee,ge,Te,o,rt,Pe,We,$,_e,Ce,xe,g,S,E,H,U,W,ne,de,q,X,oe,K,ce,Ie,n,$e]}var pu=class extends N{constructor(e){super(),O(this,e,yb,vb,B,{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},hb,[-1,-1])}},Nr=pu;var hi=(i,e)=>or[i]>=or[e],tm=(i,e)=>or[i]<or[e],Dr=(i,e)=>or[i]<=or[e],im=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function wb(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 kb(i){let e,t;return e=new dr({props:{volume:i[3],muted:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Cb(i){let e,t;return e=new ht({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:[kb]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function nm(i){let e,t,n;return t=new Nr({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]:Oo,onPointerLeave:i[2]?i[20]:Oo,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=I("div"),R(t.$$.fragment),f(e,"class","volumeBar svelte-1l78lz9"),G(e,"volumeBar-vertical",i[2])},m(o,r){w(o,e,r),L(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]:Oo),r[0]&4&&(s.onPointerLeave=o[2]?o[20]:Oo),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)&&G(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&&y(e),V(t)}}}function Sb(i){let e,t,n,o,r,s;t=new Br({props:{content:i[6],translateY:-18,$$slots:{default:[Cb]},$$scope:{ctx:i}}});let a=i[4]&&nm(i);return{c(){e=I("div"),R(t.$$.fragment),n=Y(),a&&a.c(),f(e,"class","volumeBar-container svelte-1l78lz9"),G(e,"vertical",i[2])},m(l,u){w(l,e,u),L(t,e,null),_(e,n),a&&a.m(e,null),o=!0,r||(s=[ke(e,"mouseenter",function(){Jt(i[2]?i[21]:Oo)&&(i[2]?i[21]:Oo).apply(this,arguments)}),ke(e,"mouseleave",function(){Jt(i[2]?i[22]:Oo)&&(i[2]?i[22]:Oo).apply(this,arguments)}),ke(e,"wheel",ai(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=nm(i),a.c(),d(a,1),a.m(e,null)):a&&(ae(),p(a,1,1,()=>{a=null}),ue()),(!o||u[0]&4)&&G(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&&y(e),V(t),a&&a.d(),r=!1,ft(s)}}}function Tb(i,e,t){var Ee,Te;let n,o,r,s,{click:a}=e,l=ot(),u=Yt(),c=l.state.volume$;D(i,c,Ie=>t(3,n=Ie));let m=l.state.muted$;D(i,m,Ie=>t(25,s=Ie));let h=l.actions.internal.setVolume,C=l.ui.currentGridType$;D(i,C,Ie=>t(24,r=Ie));let g=(Ee=l.callbacks)==null?void 0:Ee.onAudioDoesNotExistHint,S=(Te=l.callbacks)==null?void 0:Te.onAudioDisabledHint,k=l.state.isAudioAvailable$;D(i,k,Ie=>t(4,o=Ie));let F=l.state.isAudioDisabled,T=!1,v,E,H,U,W,ne,de=1,q=!1,X=!1;function oe(Ie){de=n,h(Ie)}function K(){Ys(l,n,u.controls.volumeStepWheel)}function ce(){Qs(l,n,u.controls.volumeStepWheel)}function z(Ie){h(Ie)}function x(Ie){let rt=Ie;h(rt,rt===0?de:rt)}function P(){q=!0}function J(){q=!1,ee()}function le(){clearTimeout(v),t(5,T=!0)}function Ae(){ee()}function ee(){v=window.setTimeout(()=>{q||t(5,T=!1)},u.controls.volumeBarTimeout)}function ge(Ie){Ie.deltaY<0?K():Ie.deltaY>0&&ce()}return i.$$set=Ie=>{"click"in Ie&&t(0,a=Ie.click)},i.$$.update=()=>{i.$$.dirty[0]&33554448&&t(1,U=!o||s),i.$$.dirty[0]&16777216&&t(2,W=Dr(r,"s")),i.$$.dirty[0]&6&&(W?t(6,E=""):t(6,E=U?j("tooltip_volume"):j("tooltip_volume_muted")),t(7,H=U?j("tooltip_volume"):j("tooltip_volume_muted"))),i.$$.dirty[0]&10&&t(8,ne=U?0:n),i.$$.dirty[0]&16&&(o?t(9,X=F&&!S):t(9,X=!g))},[a,U,W,n,o,T,E,H,ne,X,c,m,C,k,oe,K,ce,z,x,P,J,le,Ae,ge,r,s]}var _u=class extends N{constructor(e){super(),O(this,e,Tb,Sb,B,{click:0},wb,[-1,-1])}},om=_u;import{noop as Lb}from"@vkontakte/videoplayer-shared";function Ib(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=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("g"),n=M("path"),o=M("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"),we(e,u)},m(c,m){w(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),we(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&&y(e),a&&a.d(c)}}}function Pb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var hu=class extends N{constructor(e){super(),O(this,e,Pb,Ib,B,{})}},rm=hu;function Eb(i){be(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Ab(i){let e,t;return e=new rm({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Mb(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var gu=class extends N{constructor(e){super(),O(this,e,Mb,Ab,B,{isFullscreen:0},Eb)}},sm=gu;function Vb(i){let e,t;return e=new sm({props:{isFullscreen:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Rb(i){let e,t;return e=new ht({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:fo.KeyF,$$slots:{default:[Vb]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Bb(i,e,t){let{isFullscreen:n=!1}=e,{click:o=Lb}=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?j("tooltip_fullscreen_on"):j("tooltip_fullscreen_off"))},[n,o,r]}var bu=class extends N{constructor(e){super(),O(this,e,Bb,Rb,B,{isFullscreen:0,click:1})}},ol=bu;function Nb(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function Db(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var vu=class extends N{constructor(e){super(),O(this,e,Db,Nb,B,{})}},lm=vu;function Ob(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=se(c,u[m]);return{c(){e=M("svg"),l&&l.c(),t=M("path"),n=M("path"),o=M("path"),r=M("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"),we(e,c)},m(m,h){w(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),we(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&&y(e),l&&l.d(m)}}}function Fb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var yu=class extends N{constructor(e){super(),O(this,e,Fb,Ob,B,{})}},am=yu;function Hb(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 qb(i){let e,t;return e=new am({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}var Ub="vk-video-logo-icon--short";function zb(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?Ub:"vk-video-logo-icon"),!o&&!n&&(t(0,r=91),t(1,s="vk-video-logo-icon--en")))},[r,s,n,o]}var wu=class extends N{constructor(e){super(),O(this,e,zb,qb,B,{short:2,isCyrillic:3},Hb)}},um=wu;function Kb(i){let e,t;return e=new lm({}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function xb(i){let e,t;return e=new um({props:{short:i[4],isCyrillic:i[5]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function jb(i){let e,t,n,o,r=[xb,Kb],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=Je()},m(l,u){s[e].m(l,u),w(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&&y(n),s[e].d(l)}}}function Gb(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:[jb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function Yb(i,e,t){let n,o,r,{ref:s=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:l=""}=e,{click:u}=e,c=Yt(),m=ot(),h=m.ui.currentGridType$;D(i,h,E=>t(12,n=E));let C=m.ui.isMobile;D(i,C,E=>t(13,o=E));let g=m.isCyrillicRelatedInterface$;D(i,g,E=>t(5,r=E));let S,k,F,T=()=>{var E,H;u(),(E=m.callbacks)!=null&&E.onLogoClicked?(H=m.callbacks)==null||H.onLogoClicked():l&&window.open(l,"_blank")};function v(E){s=E,t(0,s)}return i.$$set=E=>{"ref"in E&&t(0,s=E.ref),"logoClickable"in E&&t(1,a=E.logoClickable),"targetUrl"in E&&t(10,l=E.targetUrl),"click"in E&&t(11,u=E.click)},i.$$.update=()=>{i.$$.dirty&12292&&t(4,F=(o||Dr(n,"l"))&&k)},t(3,S=c.logoType==="vk_video"?j("tooltip_vk_video_logo"):j("tooltip_vk_logo")),t(2,k=c.logoType==="vk_video"||c.logoType==="vk_video_mobile"),[s,a,k,S,F,r,h,C,g,T,l,u,n,o,v]}var ku=class extends N{constructor(e){super(),O(this,e,Yb,Gb,B,{ref:0,logoClickable:1,targetUrl:10,click:11})}},rl=ku;import{ChromecastState as e4}from"@vkontakte/videoplayer-core";import{ChromecastState as cm}from"@vkontakte/videoplayer-core";function Qb(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 Zb(i){let e,t,n,o,r,s,a,l;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),r=M("path"),s=M("path"),a=M("path"),l=M("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"),G(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"),G(e,"connecting",i[2])},m(u,c){w(u,e,c),_(e,t),_(t,n),_(t,o),_(t,r),_(t,s),_(t,a),_(t,l)},p(u,c){c&2&&G(l,"hidden",!u[1]),c&4&&G(e,"connecting",u[2])},d(u){u&&y(e)}}}function Xb(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H;return{c(){e=M("svg"),t=M("g"),n=M("mask"),o=M("path"),s=M("path"),a=M("path"),u=M("path"),c=M("defs"),m=M("clipPath"),h=M("path"),g=M("filter"),S=M("feFlood"),k=M("feColorMatrix"),F=M("feOffset"),T=M("feGaussianBlur"),v=M("feColorMatrix"),E=M("feBlend"),H=M("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",C=i[1]?"#2688EB":"#fff"),f(h,"d","M0 0h24v24H0z"),f(m,"id","a"),f(S,"flood-opacity","0"),f(S,"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(T,"stdDeviation","2.5"),f(v,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(E,"in2","BackgroundImageFix"),f(E,"result","effect1_dropShadow_4085_178456"),f(H,"in","SourceGraphic"),f(H,"in2","effect1_dropShadow_4085_178456"),f(H,"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(U,W){w(U,e,W),_(e,t),_(t,n),_(n,o),_(n,s),_(t,a),_(t,u),_(e,c),_(c,m),_(m,h),_(c,g),_(g,S),_(g,k),_(g,F),_(g,T),_(g,v),_(g,E),_(g,H)},p(U,W){W&2&&r!==(r=U[1]?"#2688EB":"#fff")&&f(o,"fill",r),W&2&&l!==(l=U[1]?"#2688EB":"#fff")&&f(a,"fill",l),W&2&&C!==(C=U[1]?"#2688EB":"#fff")&&f(h,"fill",C)},d(U){U&&y(e)}}}function Jb(i){let e;function t(r,s){return r[0]?Xb:Zb}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Je()},m(r,s){o.m(r,s),w(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&&y(e),o.d(r)}}}function $b(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===cm.CONNECTING),t(1,r=o===cm.CONNECTED))},[n,r,s,o]}var Cu=class extends N{constructor(e){super(),O(this,e,$b,Jb,B,{isMobile:0,state:3},Qb)}},fm=Cu;import{noop as t4}from"@vkontakte/videoplayer-shared";function i4(i){let e,t;return e=new fm({props:{isMobile:i[1],state:i[2]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function n4(i){let e,t,n;function o(s){i[5](s)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[i4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function o4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:s=t4}=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===e4.CONNECTED?j("tooltip_chromecast_on"):j("tooltip_chromecast_off"))},[n,o,r,s,a,l]}var Su=class extends N{constructor(e){super(),O(this,e,o4,n4,B,{ref:0,isMobile:1,state:2,click:3})}},sl=Su;function r4(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 s4(i){let e,t,n,o,r=i[9].default,s=Le(r,i,i[8],null);return{c(){e=I("div"),t=I("div"),s&&s.c(),f(t,"class","tooltip svelte-5ygsa2"),G(t,"active",i[0]),G(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){w(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)&&G(t,"active",a[0]),(!o||l&2)&&G(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&&y(e),s&&s.d(a),i[10](null),i[11](null)}}}function l4(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 C(k){if(!h)return 0;let{width:F}=h.getBoundingClientRect(),T=F/2;return k<T?T:k>c-T?c-T:k}function g(k){ve[k?"unshift":"push"](()=>{h=k,t(4,h)})}function S(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=C(l))},[s,a,u,m,h,n,l,c,r,o,g,S]}var Tu=class extends N{constructor(e){super(),O(this,e,l4,s4,B,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},r4)}},dm=Tu;var ll=(i,e,t)=>t.filter(n=>n.time<=i*e).pop();function a4(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 mm(i){let e;function t(r,s){return r[2]&&r[10].completed===!1?c4:u4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Je()},m(r,s){o.m(r,s),w(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&&y(e),o.d(r)}}}function u4(i){let e=(i[10].text||"")+"",t;return{c(){t=qe(e)},m(n,o){w(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Ge(t,e)},d(n){n&&y(t)}}}function c4(i){let e=j("tooltip_episode_unfinished")+"",t;return{c(){t=qe(e)},m(n,o){w(n,t,o)},p:me,d(n){n&&y(t)}}}function pm(i){let e,t;return{c(){e=I("div"),t=qe(i[0]),f(e,"class","time svelte-l51fc1")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&1&&Ge(t,n[0])},d(n){n&&y(e)}}}function f4(i){let e,t,n,o,r,s,a=i[10]&&mm(i),l=!i[2]&&pm(i);return{c(){e=I("div"),t=I("div"),o=Y(),r=I("div"),a&&a.c(),s=Y(),l&&l.c(),f(t,"class","preview svelte-l51fc1"),f(t,"style",n=`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);`),f(r,"class","episode svelte-l51fc1"),f(e,"class","timeline-preview svelte-l51fc1"),G(e,"mobile",i[1])},m(u,c){w(u,e,c),_(e,t),_(e,o),_(e,r),a&&a.m(r,null),_(e,s),l&&l.m(e,null)},p(u,[c]){c&3064&&n!==(n=`width: ${u[3]}px; height: ${u[4]}px; background-image: url(${u[5]}); background-size: ${u[6]}px ${u[7]}px; background-position: ${u[8]}px ${u[9]}px; transform: translateY(${u[11]%180?-35:0}px) rotate(${u[11]}deg);`)&&f(t,"style",n),u[10]?a?a.p(u,c):(a=mm(u),a.c(),a.m(r,null)):a&&(a.d(1),a=null),u[2]?l&&(l.d(1),l=null):l?l.p(u,c):(l=pm(u),l.c(),l.m(e,null)),c&2&&G(e,"mobile",u[1])},i:me,o:me,d(u){u&&y(e),a&&a.d(),l&&l.d()}}}var Or=150;function d4(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=ot().ui.rotateAlpha;D(i,h,W=>t(11,n=W));let C,g,S,k,F,T,v,E;function H(){let W=a.frameWidth,ne=a.frameHeight;return W>Or?(ne=ne/W*Or,W=Or):ne>Or&&(W=W/ne*Or,ne=Or),{width:W,height:ne}}function U(W){let ne;a.isUV?ne=Math.floor(u*W/a.frequency):ne=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*W)));let de=Math.floor(ne/a.countPerImage),q=Math.floor(ne%a.countPerImage/a.countPerRow),X=ne%a.countPerRow,oe=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&de===Math.floor(a.countTotal/a.countPerImage)&&(oe=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&oe++);let K=a.countPerRow;!a.isUV&&de===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(K=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let ce=C*K,z=g*oe,x=-X*C,P=-q*g;return{imgSrc:a.links[de],imgWidth:ce,imgHeight:z,imgOffsetX:x,imgOffsetY:P}}return i.$$set=W=>{"time"in W&&t(0,o=W.time),"isMobile"in W&&t(1,r=W.isMobile),"videoEpisodes"in W&&t(13,s=W.videoEpisodes),"previewThumbsData"in W&&t(14,a=W.previewThumbsData),"progress"in W&&t(15,l=W.progress),"duration"in W&&t(16,u=W.duration),"isInteractive"in W&&t(2,c=W.isInteractive)},i.$$.update=()=>{i.$$.dirty&32768&&t(5,{imgSrc:S,imgWidth:k,imgHeight:F,imgOffsetX:T,imgOffsetY:v}=U(l),S,(t(6,k),t(15,l)),(t(7,F),t(15,l)),(t(8,T),t(15,l)),(t(9,v),t(15,l))),i.$$.dirty&106496&&t(10,E=ll(l,u,s))},t(3,{width:C,height:g}=H(),C,t(4,g)),[o,r,c,C,g,S,k,F,T,v,E,n,h,s,a,l,u]}var Iu=class extends N{constructor(e){super(),O(this,e,d4,f4,B,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},a4)}},_m=Iu;function m4(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 p4(i){let e,t;return{c(){e=I("span"),t=qe(i[8]),f(e,"class","time svelte-5lzly8")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o[0]&256&&Ge(t,n[8])},i:me,o:me,d(n){n&&y(e)}}}function _4(i){let e,t;return e=new _m({props:{time:i[8],isMobile:i[11],videoEpisodes:i[4],previewThumbsData:i[22],progress:i[9],duration:i[2],isInteractive:i[24]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function h4(i){let e,t,n,o,r=[_4,p4],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=Je()},m(l,u){s[e].m(l,u),w(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&&y(n),s[e].d(l)}}}function g4(i){let e,t,n,o,r,s=[i[10]],a={$$slots:{default:[h4]},$$scope:{ctx:i}};for(let c=0;c<s.length;c+=1)a=se(a,s[c]);e=new dm({props:a});function l(c){i[43](c)}let u={isActiveLive:i[12],isMobile:i[11],ariaLabel:j("aria_timeline"),ariaValueMin:0,ariaValueMax:i[2],ariaValueNow:Math.round(i[7]*100),ariaValueText:j("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 Nr({props:u}),ve.push(()=>ze(n,"ref",l)),{c(){R(e.$$.fragment),t=Y(),R(n.$$.fragment)},m(c,m){L(e,c,m),w(c,t,m),L(n,c,m),r=!0},p(c,m){let h=m[0]&1024?He(s,[Vo(c[10])]):{};m[0]&2838|m[1]&524288&&(h.$$scope={dirty:m,ctx:c}),e.$set(h);let C={};m[0]&4096&&(C.isActiveLive=c[12]),m[0]&2048&&(C.isMobile=c[11]),m[0]&4&&(C.ariaValueMax=c[2]),m[0]&128&&(C.ariaValueNow=Math.round(c[7]*100)),m[0]&96&&(C.ariaValueText=j("aria_timeline_value",{position:c[6],duration:c[5]})),m[0]&8192&&(C.loadedProgress=c[13]),m[0]&128&&(C.filledProgress=c[7]),m[0]&128&&(C.handleProgress=c[7]),m[0]&16&&(C.videoEpisodes=c[4]),m[0]&16384&&(C.disabled=c[14].has("TIMELINE")),m[0]&8&&(C.hideHandel=c[3]),!o&&m[0]&1&&(o=!0,C.ref=c[0],Ue(()=>o=!1)),n.$set(C)},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&&y(t),V(e,c),V(n,c)}}}function b4(i,e,t){var fe;let n,o,r,s,a,l,u,c,m,h,C,{showTimeline:g=!1}=e,{ref:S=void 0}=e,k=ot(),F=Yt(),T=k.state.bufferedProgress$;D(i,T,Se=>t(13,h=Se));let v=k.state.positionWithScrubbing$;D(i,v,Se=>t(41,l=Se));let E=k.state.duration$;D(i,E,Se=>t(2,r=Se));let H=k.state.isLive$;D(i,H,Se=>t(1,o=Se));let U=k.state.isActiveLive$;D(i,U,Se=>t(12,m=Se));let W=k.ui.isMobile;D(i,W,Se=>t(11,c=Se));let ne=F.features.episodes?k.actions.internal.getVideoEpisodes():void 0,de=k.actions.internal.getPreviewThumbsData(),q=k.state.interactiveEpisodes$;D(i,q,Se=>t(42,u=Se));let X=k.state.isInteractive,oe=k.state.isInteractiveTime$;D(i,oe,Se=>t(3,s=Se));let K=k.state.isInteractiveExpectation$;D(i,K,Se=>t(40,a=Se));let ce=k.actions.internal.correctSeekTimeToInteractive,z=(fe=k.callbacks)==null?void 0:fe.onDisabledTimelineClick,x=k.ui.controls.disabledControls$;D(i,x,Se=>t(14,C=Se));let P,J,le,Ae,ee=!1,ge="",Ee=0,Te=0,Ie=0,rt;function Pe(Se){return!ce||!X?Se:ce(Se*r)/r}function We(Se){k.actions.internal.startScrubbing(Pe(Se))}function $(Se){s||k.actions.internal.progressScrubbing(Pe(Se))}function _e(Se){k.actions.internal.completeScrubbing(Pe(Se)),t(36,ee=!1)}function Ce(Se,et,Ne){at(Se,et,Ne),t(36,ee=!0)}function xe(Se,et,Ne){at(Se,et,Ne),t(36,ee=!0)}function st(){t(36,ee=!1)}function at(Se,et,Ne){t(9,Ie=Pe(Se)),t(37,Ee=et),Ne&&t(38,Te=Ne),t(8,ge=nt(Se))}function nt(Se){let et=Fn((o?1-Se:Se)*r);return o?`-${et}`:et}function $e(Se){S=Se,t(0,S)}return i.$$set=Se=>{"showTimeline"in Se&&t(35,g=Se.showTimeline),"ref"in Se&&t(0,S=Se.ref)},i.$$.update=()=>{i.$$.dirty[1]&2048&&t(4,P=X?u:ne),i.$$.dirty[0]&4&&t(5,J=Fn(r)),i.$$.dirty[1]&1024&&t(6,le=Fn(l)),i.$$.dirty[0]&4|i.$$.dirty[1]&1024&&t(7,Ae=l/r),i.$$.dirty[0]&8|i.$$.dirty[1]&512&&t(39,rt=a||s),i.$$.dirty[0]&2|i.$$.dirty[1]&496&&t(10,n={containerWidth:Te,translateXPx:Ee,translateYPx:X&&de?-36:-16,active:ee&&g&&!rt,pointer:!F.features.timelinePreview||!de||o})},[S,o,r,s,P,J,le,Ae,ge,Ie,n,c,m,h,C,F,T,v,E,H,U,W,de,q,X,oe,K,z,x,We,$,_e,Ce,xe,st,g,ee,Ee,Te,rt,a,l,u,$e]}var Pu=class extends N{constructor(e){super(),O(this,e,b4,g4,B,{showTimeline:35,ref:0},m4,[-1,-1])}},hm=Pu;function v4(i){let e,t;return e=new Nr({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:j("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){R(e.$$.fragment)},m(n,o){L(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=j("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){V(e,n)}}}function y4(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=ot().ui.isMobile;D(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=Fn(r)),i.$$.dirty&64&&t(2,u=Fn(o)),i.$$.dirty&65&&t(3,c=o/r)},[r,l,u,c,n,a,o]}var Eu=class extends N{constructor(e){super(),O(this,e,y4,v4,B,{position:6,duration:0})}},al=Eu;function w4(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 k4(i){let e;return{c(){e=I("div"),f(e,"class","timeline-stub svelte-1gqonyf"),G(e,"mobile",i[3])},m(t,n){w(t,e,n)},p(t,n){n&8&&G(e,"mobile",t[3])},i:me,o:me,d(t){t&&y(e)}}}function C4(i){let e,t,n,o,r=[T4,S4],s=[];function a(l,u){return l[1]?0:1}return t=a(i,-1),n=s[t]=r[t](i),{c(){e=I("div"),n.c(),f(e,"class","timeline svelte-1gqonyf"),G(e,"mobile",i[3])},m(l,u){w(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)&&G(e,"mobile",l[3])},i(l){o||(d(n),o=!0)},o(l){p(n),o=!1},d(l){l&&y(e),s[t].d()}}}function S4(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 hm({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function T4(i){let e,t;return e=new al({props:{position:i[4],duration:i[5]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function I4(i){let e,t,n,o,r=[C4,k4],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=Je()},m(l,u){s[e].m(l,u),w(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&&y(n),s[e].d(l)}}}function P4(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=ot(),C=h.state.isLive$;D(i,C,v=>t(13,n=v));let g=h.ads.duration;D(i,g,v=>t(5,s=v));let S=h.ads.position;D(i,S,v=>t(4,r=v));let k=h.ui.isMobile;D(i,k,v=>t(3,o=v));let F;function T(v){m=v,t(0,m)}return i.$$set=v=>{"isAds"in v&&t(1,a=v.isAds),"canRewindLive"in v&&t(10,l=v.canRewindLive),"isRewindableLive"in v&&t(11,u=v.isRewindableLive),"isHidden"in v&&t(12,c=v.isHidden),"ref"in v&&t(0,m=v.ref)},i.$$.update=()=>{i.$$.dirty&15362&&t(2,F=!c&&(!n||n&&l&&u||a))},[m,a,F,o,r,s,C,g,S,k,l,u,c,n,T]}var Au=class extends N{constructor(e){super(),O(this,e,P4,I4,B,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},w4)}},ul=Au;import{noop as V4}from"@vkontakte/videoplayer-shared";function E4(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=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("path"),n=M("path"),o=M("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"),we(e,u)},m(c,m){w(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),we(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&&y(e),a&&a.d(c)}}}function A4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Mu=class extends N{constructor(e){super(),O(this,e,A4,E4,B,{})}},gm=Mu;function M4(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function L4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Lu=class extends N{constructor(e){super(),O(this,e,L4,M4,B,{})}},bm=Lu;function R4(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 B4(i){let e,t,n,o;e=new gm({});function r(l,u){if(l[4]==="FULL")return O4;if(l[4]==="COUNT")return D4}let s=r(i,-1),a=s&&s(i);return{c(){R(e.$$.fragment),t=Y(),a&&a.c(),n=Je()},m(l,u){L(e,l,u),w(l,t,u),a&&a.m(l,u),w(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&&(y(t),y(n)),V(e,l),a&&a.d(l)}}}function N4(i){let e,t,n,o,r,s;return r=new bm({}),{c(){e=I("span"),t=qe(i[2]),n=Y(),o=I("div"),R(r.$$.fragment),f(e,"class","text mobile svelte-1yhs2ga"),f(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,l){w(a,e,l),_(e,t),w(a,n,l),w(a,o,l),L(r,o,null),s=!0},p(a,l){(!s||l&4)&&Ge(t,a[2])},i(a){s||(d(r.$$.fragment,a),s=!0)},o(a){p(r.$$.fragment,a),s=!1},d(a){a&&(y(e),y(n),y(o)),V(r)}}}function D4(i){let e,t=i[0].length+"",n;return{c(){e=I("span"),n=qe(t),f(e,"class","text count svelte-1yhs2ga")},m(o,r){w(o,e,r),_(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&Ge(n,t)},d(o){o&&y(e)}}}function O4(i){let e,t;return{c(){e=I("span"),t=qe(i[2]),f(e,"class","text svelte-1yhs2ga")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&4&&Ge(t,n[2])},d(n){n&&y(e)}}}function F4(i){let e,t,n,o,r=[N4,B4],s=[];function a(l,u){return l[6]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Je()},m(l,u){s[e].m(l,u),w(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&&y(n),s[e].d(l)}}}function H4(i){let e,t,n;function o(s){i[19](s)}let r={className:"w-max btn-full-opacity "+(i[6]?"px-0":""),testId:"btn-episodes",click:i[12],disabled:!i[7],ariaExpanded:i[3],ariaLabel:i[5],$$slots:{default:[F4]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&64&&(l.className="w-max btn-full-opacity "+(s[6]?"px-0":"")),a&8&&(l.ariaExpanded=s[3]),a&32&&(l.ariaLabel=s[5]),a&8388693&&(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){V(e,s)}}}function q4(i,e,t){var q,X,oe;let n,o,r,s,a,l,{position:u=0}=e,{duration:c=0}=e,{timeCodes:m=[]}=e,h=ot(),C=(X=(q=h.callbacks)==null?void 0:q.onEpisodeChanged)!=null?X:V4,g=!!((oe=h.callbacks)!=null&&oe.onEpisodeClicked),S=h.ui.currentGridType$;D(i,S,K=>t(18,a=K));let k=h.ui.episodes.openedByKeyboard$;D(i,k,K=>t(17,s=K));let F=h.ui.episodes.panelOpened$;D(i,F,K=>t(3,r=K));let T=h.ui.isMobile;D(i,T,K=>t(6,l=K));let v,E=K=>{var z,x,P;if(!!((z=h.callbacks)!=null&&z.onEpisodeClicked)){let J=Er(K);k.set(J),F.set(!0),(P=(x=h.callbacks)==null?void 0:x.onEpisodeClicked)==null||P.call(x,J)}},H,U,W,ne=(K,ce,z)=>mt(this,null,function*(){yield eo(),(K==null?void 0:K.getAttribute("aria-expanded"))==="false"&&ce&&!z&&(k.set(!1),K.focus())});function de(K){v=K,t(1,v)}return i.$$set=K=>{"position"in K&&t(13,u=K.position),"duration"in K&&t(14,c=K.duration),"timeCodes"in K&&t(0,m=K.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576&&t(16,n=u/c),i.$$.dirty&114689){let K=ll(n,c,m);K&&(H==null?void 0:H.text)!==K.text&&(C(K),t(15,H=K))}i.$$.dirty&32768&&t(2,o=(H==null?void 0:H.text)||""),i.$$.dirty&262144&&(hi(a,"xl")?t(4,U="FULL"):hi(a,"m")&&tm(a,"xl")?t(4,U="COUNT"):t(4,U="SHORT")),i.$$.dirty&4&&t(5,W=`${j("tooltip_episodes")}: ${o}`),i.$$.dirty&131082&&ne(v,s,r)},[m,v,o,r,U,W,l,g,S,k,F,T,E,u,c,H,n,s,a,de]}var Vu=class extends N{constructor(e){super(),O(this,e,q4,H4,B,{position:13,duration:14,timeCodes:0},R4)}},cl=Vu;import{debounceFn as C3}from"@vkontakte/videoplayer-shared";import{ChromecastState as Y4,PlaybackState as ns,Player as Q4,VideoFormat as os}from"@vkontakte/videoplayer-core";import{assertNonNullable as Hn,clientChecker as Z4,getHighestQuality as X4,InterfaceLanguage as J4,isInvariantQuality as $4,isNonNullable as ev,loadVKLangPack as tv,Logger as iv,map as nv,merge as ov,Observable as rv,Subject as gl,Subscription as Fu,Tracer as sv,ValueSubject as lv,VideoQuality as av}from"@vkontakte/videoplayer-shared";import{SeekAction as Ho}from"@vkontakte/videoplayer-statistics";import"@vkontakte/videoplayer-interactive";import{addScript as U4,assertNonNullable as Ei,Subject as $i,clearVideoElement as z4}from"@vkontakte/videoplayer-shared";var vm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var W4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",fl=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 $i,loadStarted$:new $i,loadEnded$:new $i,loadError$:new $i,ready$:new $i,slotRequested$:new $i,started$:new $i,timeRemained$:new $i,paused$:new $i,resumed$:new $i,ended$:new $i,empty$:new $i,skipped$:new $i,clicked$:new $i,closed$:new $i,error$:new $i};this.loadAdman=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()};U4(W4,e,this.loadTimeout).then(()=>{window.AdmanHTML?(t(),this.events.loadEnded$.next()):(window.admanAsyncInit=r,o=window.setTimeout(r,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,t)=>{Ei(this.adsState),Ei(this.playerState),Ei(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"}),Ye(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.onAdTimeRemained=e=>{Ei(this.adsState),this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()};this.onAdPaused=()=>{this.stopWatchDog(),Ei(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{Ei(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing"),this.startWatchDog()};this.onAdMidrollPoint=()=>{Ei(this.adman),Ei(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.log({message:"could not start midroll"}),this.onAdError()}};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=()=>{var e;this.log({message:"ad clicked"}),(e=this.videoElement)==null||e.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=()=>{this.log({message:"ad error"}),this.events.error$.next(),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout,this.runtimeTimeout=t.runtimeTimeout}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0),this.events.loadError$.next()}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,C=this.playerState&&Ye(this.playerState.vsid);C&&(h=parseInt(C,36));let g=Qe(yt(Qe({dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:vm(t,n),puid11:o?0:1,preview:m},h?{request_id:h}:{}),{duration:c}),u);m||delete g.preview;let S={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(S),this.adman=k,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(S)}`})}catch(k){this.log({message:"could not init adman"}),this.onAdError()}}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}Ei(this.actions),Ei(this.adsState),Ei(this.playerState);let t=this.currentAdSection==="postroll";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"})),this.actions.switchFromAdsToVideo(!t)}togglePlay(){Ei(this.adsState),this.log({message:"toggle play"});let e=Ye(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}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(t){this.log({message:"could not set ad volume"}),this.onAdError()}this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(t){this.log({message:"could not set ad fullscreen"}),this.onAdError()}}startPreroll(){if(Ei(this.adman),!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.log({message:"could not start preroll"}),this.onAdError()}}}startPostroll(){Ei(this.adman),Ei(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(e){this.log({message:"could not start postroll"}),this.onAdError()}}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError(),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){Ei(this.adman),this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(e){this.onAdError(),this.log({message:"could not resume ad"})}}pause(){Ei(this.adman),this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(e){this.onAdError(),this.log({message:"could not pause ad"})}}skip(){Ei(this.adman),this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(e){this.log({message:"could not skip ad"}),this.onAdError()}}setPosition(e,t){var n;(n=this.adman)==null||n.setPosition(Math.floor(e),Math.floor(t))}destroy(){var e;this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.destroy(),this.videoElement&&z4(this.videoElement),this.isDestroyed=!0}};var ym=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 Ru=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let t=[],n=e.split(this.twoLinesRegExp);for(let o of n){let r={startTime:0,endTime:0,texts:[],lang:""},s=o.split(this.oneLineRegExp);for(let a of s)if(!r.startTime&&!r.endTime){let l=new dl,{startTime:u,endTime:c}=l.parse(a);r.startTime=u,r.endTime=c}else if(a.trim()!==""){let l=new Bu,{texts:u}=l.parse(a);r.texts=[...r.texts,...u]}(r.startTime||r.endTime)&&r.texts.length>0&&t.push(r)}return t}},dl=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}},Bu=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 dl;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}},wm=Ru;import{isNonNullable as Nu}from"@vkontakte/videoplayer-shared";var Fo,ti,Du=0,Ou=!1,km=(i,e=0,t=0)=>i<e&&i<t,ml=(i,e=0,t=0)=>i>=e&&i<=t,K4=(i,e=0,t=0)=>i>e&&i>t,Cm=(i,e,t,n=!1)=>{var a;let o=(a=t.find(({lang:l})=>l===e.value))==null?void 0:a.subtitles;if(n){let l=o==null?void 0:o.find(({startTime:u,endTime:c})=>ml(i,u,c));return l?yt(Qe({},l),{lang:e.value}):void 0}let r=i>=Du,s=i<Du;if(Du=i,s&&(Ou=!1),Nu(Fo)&&ml(i,Fo.startTime,Fo.endTime)&&Fo.lang===e.value)return Fo;if(!Nu(ti)&&(o!=null&&o.length)&&!Ou){let l=o.find(({startTime:u,endTime:c})=>ml(i,u,c)||r&&km(i,u,c));ti=l&&yt(Qe({},l),{lang:e.value}),Fo=void 0,!Nu(ti)&&o[o.length-1].endTime<i&&(Ou=!0);return}else{if(ml(i,ti==null?void 0:ti.startTime,ti==null?void 0:ti.endTime))return Fo=ti,ti=void 0,Fo;(r&&K4(i,ti==null?void 0:ti.startTime,ti==null?void 0:ti.endTime)||s&&km(i,ti==null?void 0:ti.startTime,ti==null?void 0:ti.endTime))&&(ti=void 0)}};var Sm={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"},x4={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"},pl=i=>{var e,t;return(t=(e=Sm[i])!=null?e:Sm[x4[i]])!=null?t:void 0};import{Subscription as j4}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-statistics";var _l=class{constructor(e,t=new j4){this.oneStat=e;this.statSubscription=t}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var hl=(t=>(t.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",t.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",t))(hl||{});var Tm=({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:C,player:g,disabledControls:S,isInteractive:k,interactiveRanges$:F,isInteractiveTime$:T,replayInteractive:v,stopPlayer:E,hasInteractiveBranches:H,playPrevChapterDisabledTooltip:U,additionalButtons:W,additionalSettingsMenuItems:ne,additionalContextMenuItems:de,looped:q=!1,statistics:X,saveRate:oe})=>{var _s,hs,gs,bs;let K=yt(Qe({},C),{configName:[...(_s=C.configName)!=null?_s:[],"ui"],isAudioDisabled:s,live:yt(Qe({},(hs=C.live)!=null?hs:{}),{isLiveCatchUpMode:!!o})}),ce=h,z=sv.createRootTracer(ce.features.saveTraceInfoToFile),x=z.createComponentTracer("Store"),P=g||new Q4(K,z),J=new iv,le=new fl(J,{loadTimeout:ce.ads.loadTimeout,initTimeout:ce.ads.initTimeout,runtimeTimeout:ce.ads.runtimeTimeout}),Ae=sr.getInstance(),ee=u==null?void 0:u.pictureInPictureApi,ge=u==null?void 0:u.annotationsApi,Ee=J.createComponentLog("Store"),Te,Ie,rt={},Pe=new Is,We=X?Pt(X.oneStat.vsid$):jn(void 0),$=Oe(Ro()),_e=(gs=ee==null?void 0:ee.info.isActive$)!=null?gs:new lv(!1),Ce=ee==null?void 0:ee.info.type,xe=Oe(0),st=Oe([]),at=ov(P.events.fatalError$,P.events.managedError$).subscribe(b=>st.update(A=>[...A,b])),nt=jn(!1,b=>{let A=P.events.fatalError$.subscribe(()=>b(!0));return()=>A.unsubscribe()}),$e=b=>mt(void 0,null,function*(){var Me;let A=Object.values(J4).includes(b);if(ce.downloadVKLanguages&&(A&&ce.updateBuiltinLanguages||!ha(b))){let lt;try{lt=yield tv(b,Kf,xf)}catch(_t){(Me=X==null?void 0:X.oneStat)==null||Me.logError({errorType:"VKLangPack",fatal:!1}),Ae==null||Ae.report(_t,{errorType:"VKLangPack",fatal:!1})}lt&&(_a({language:b,pack:lt,fallback:ce.defaultLanguage}),fe.set(b))}ha(b)&&fe.set(b)}),fe=Oe(i),Se=Oe(e);$e(i);let et=(b,A)=>{let re=Ye(fe);return ga(re,b,A,ce.defaultLanguage)},Ne=Oe("thumb"),tt=(()=>{let b=ei([nt,Ne],([A,re])=>A?"crashed":re);return yt(Qe({},b),{is:A=>Ye(b)===A})})(),Fe=(()=>{let b=Oe(new Set(S));return yt(Qe({},b),{add:A=>{b.update(re=>new Set([...re].concat(A)))},remove:A=>{b.update(re=>{let Me=[...re];return new Set(Array.isArray(A)?Me.filter(lt=>!A.includes(lt)):Me.filter(lt=>lt!==A))})},includes:A=>{let re=Ye(b);return Array.isArray(A)?A.every(Me=>re.has(Me)):re.has(A)}})})();x.log("create store"),Ee({message:"create store"});let ct=b=>{let A=b.container;A.append(P.experimental.element$.getValue()),Et=new MutationObserver(re=>{let{removedNodes:Me}=re[0];Me.length&&A.append(P.experimental.element$.getValue())}),Et.observe(A,{childList:!0})},dt=b=>{Ee({message:`init video, config: ${JSON.stringify(b)}`}),k?ct(b):P.initVideo(b),x.log("init video",{isInteractive:k}),b.subtitles&&P.setExternalTextTracks(b.subtitles),Te=b},he=new gl,pt=b=>he.next(b),kt=new gl,Ct=new gl,Ze=new gl,Et=null,Vt={actionRewind$:kt,actionSeek$:Ct,inPiP$:_e,inFullscreen$:new rv(b=>$.subscribe(A=>b.next(A))),actionSetSubtitle$:Ze,nextMovie$:he};if(X){let{oneStat:b,statSubscription:A}=X;k||A.add(b.attachTo(P)),A.add(b.attachToUi(Vt)),A.add(b.attachToAds(le.events)),b.authorize(r).catch(re=>{Ee({message:`onestat auth error ${String(re)}`})})}if(Ae){let b=new Fu,A=(re,Me)=>b.add(re.subscribe(Me));if(A(P.events.managedError$,re=>{Ae.logIError(re)}),A(P.events.fatalError$,re=>{Ae.logIError(re,!0)}),X){let{oneStat:re}=X;A(re.experimental.error$,Me=>{Ae.logIError(Me)})}Ae.sentrySubscription.add(b)}let ri=()=>{Z4.isIOS&&Ie&&Md(Ie)},qt=new Fu().add(P.experimental.element$.subscribe(b=>{b&&(Ie=b,b.classList.add("player-media"),ar(ee)&&(ee.updateVideoElement(),ee.registryEventHandlers()),k&&b.setAttribute("pip","false"))})).add(P.events.ended$.subscribe(()=>{var b;ri(),(b=l==null?void 0:l.onEnded)==null||b.call(l)})).add(P.events.started$.subscribe(()=>mt(void 0,null,function*(){var A,re;ar(ee)&&(yield ee==null?void 0:ee.revealPictureInPicture());let b=P.info.muted$.getValue();(A=l==null?void 0:l.onStarted)==null||A.call(l),(re=rt.onStarted)==null||re.call(rt,b)}))).add(P.events.willSeek$.subscribe(({from:b,to:A})=>{var re;(re=l==null?void 0:l.onSeek)==null||re.call(l,b,A)})).add(P.events.autoplaySoundProhibited$.subscribe(()=>{var b;(b=l==null?void 0:l.onAutoplaySoundProhibited)==null||b.call(l)})).add(P.info.position$.subscribe(b=>{var re;let A=P.info.duration$.getValue();isFinite(A)&&A>0&&((re=l==null?void 0:l.onTimeupdate)==null||re.call(l,A,b),le.setPosition(b,A))})).add(P.events.fatalError$.subscribe(()=>{var b;(b=l==null?void 0:l.onCrashed)==null||b.call(l)})).add(P.events.loadedMetadata$.subscribe(()=>{Tt.state.loadedMetadata$.set(!0)})).add(P.info.is3DVideo$.subscribe(b=>{Tt.ui.is3DVideo.set(b)})).add(P.info.isEnded$.subscribe(b=>{k&&(b?(T!=null&&T.getValue()&&Fe.add(Ss),Fe.add("PLAY_BUTTON")):Fe.remove("PLAY_BUTTON"))})).add(P.info.liveTime$.subscribe(b=>{var A;(A=l==null?void 0:l.onLiveTime)==null||A.call(l,b)})).add(P.info.isStalled$.subscribe(b=>{var A;(A=l==null?void 0:l.onStalledChanged)==null||A.call(l,b)})).add(le.events.loadStarted$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onLoadStarted)==null?void 0:A.call(b)})).add(le.events.loadEnded$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onLoadEnded)==null?void 0:A.call(b)})).add(le.events.loadError$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onLoadError)==null?void 0:A.call(b)})).add(le.events.init$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onInit)==null?void 0:A.call(b)})).add(le.events.ready$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onReady)==null?void 0:A.call(b)})).add(le.events.started$.subscribe(b=>{var A,re;return(re=(A=l==null?void 0:l.adsInfo)==null?void 0:A.onStarted)==null?void 0:re.call(A,b)})).add(le.events.timeRemained$.subscribe(b=>{var A,re;return(re=(A=l==null?void 0:l.adsInfo)==null?void 0:A.onTimeRemained)==null?void 0:re.call(A,b)})).add(le.events.ended$.subscribe(b=>{var A,re;return(re=(A=l==null?void 0:l.adsInfo)==null?void 0:A.onCompleted)==null?void 0:re.call(A,b)})).add(le.events.empty$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onEmpty)==null?void 0:A.call(b)})).add(le.events.clicked$.subscribe(b=>{var A,re;return(re=(A=l==null?void 0:l.adsInfo)==null?void 0:A.onClicked)==null?void 0:re.call(A,b)})).add(le.events.closed$.subscribe(b=>{var A,re;return(re=(A=l==null?void 0:l.adsInfo)==null?void 0:A.onClosed)==null?void 0:re.call(A,b)})).add(le.events.error$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onError)==null?void 0:A.call(b)})),Ut=new Fu,Qt=()=>{Ut.add(P.events.log$.subscribe(b=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${b.component}`,b.message)})).add(J.log$.subscribe(b=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${b.component}.`,b.message)}))},zt=()=>{Ut.unsubscribe()},Ke=(b,A)=>{x.log("start camera manual rotation",{mx:b,my:A}),P.startCameraManualRotation(b,A)},Xe=(b=!1)=>{x.log("stop camera manual rotation",{immediate:b}),P.stopCameraManualRotation(b)},It=(b,A,re)=>{x.log("move camera focus px",{xpx:b,ypx:A,dt:re}),P.moveCameraFocusPX(b,A,re)},pe=()=>{P.holdCamera()},Zt=()=>{P.releaseCamera()},At=jn(P.info.position$.getValue(),b=>{let A,re,Me=()=>{let lt=P.info.playbackState$.getValue(),_t=P.info.isLive$.getValue(),Rt=P.info.duration$.getValue(),Z=P.info.position$.getValue();if([ns.PLAYING,ns.PAUSED].includes(lt)){let gt=_t?Z-Rt:P.getExactTime();gt!==re&&b(gt),re=gt}A=requestAnimationFrame(Me)};return Me(),()=>cancelAnimationFrame(A)}),ii=Pt(_e),Dt=Pt(P.info.playbackState$),Kt=Pt(P.info.currentBuffer$),si=Pt(P.info.isEnded$),Mt=Pt(P.info.isLive$),ni=ce.features.playbackRate?Pt(P.info.canChangePlaybackSpeed$):jn(!1),Xt=Pt(P.info.liveBufferTime$),dn=Pt(P.info.volume$),Bt=Pt(P.info.muted$),qi=sa(P.info.autoQualityLimits$.pipe(nv(({max:b})=>b!==void 0)),((bs=P.info.autoQualityLimits$.getValue())==null?void 0:bs.max)!==void 0),en=Pt(P.info.autoQualityLimitingAvailable$),gi=Pt(P.info.availableQualities$),wi=Pt(P.info.availableQualitiesFps$),De=Pt(P.info.chromecastState$),it=Pt(P.info.chromecastDeviceName$),St=Pt(P.info.currentFormat$),bi=Pt(P.info.throughputEstimation$),ki=Pt(P.info.videoBitrate$),tn=Pt(P.info.intrinsicVideoSize$),Ai=Pt(P.info.duration$),mn=Pt(P.info.isAudioAvailable$),mi=null,Ui=P.info.isBuffering$,zi=jn(Ui.getValue(),b=>{let A=Ui.subscribe(re=>{re&&mi===null?mi=window.setTimeout(()=>{b(Ui.getValue()),mi=null},ce.loaderDelay):b(re)});return()=>{A.unsubscribe(),mi&&clearTimeout(mi)}}),Ft=()=>{mi&&clearTimeout(mi),mi=null},Ci=ei([Ai,Mt],([b,A])=>A?-b:b),ui=ei([Dt],([b])=>b===ns.PLAYING),Wt=Pt(P.info.atLiveEdge$),In=Pt(P.info.atLiveDurationEdge$),vi=Pt(P.info.position$),pn=ei([vi,Ai],([b,A])=>isFinite(b)&&isFinite(A)&&!!A),Pn=ei([De],([b])=>b===Y4.CONNECTED),nn=Pt(P.info.availableVideoStreams$),_n=ce.features.audioLanguages?Pt(P.info.availableAudioStreams$):jn([]),Si=Pt(P.info.currentVideoStream$),on=Pt(P.info.currentAudioStream$),xt=b=>{b.language&&ma(b.language),P.setVideoStream(b)},qn=b=>{b.language&&ma(b.language),P.setAudioStream(b)},Wi=b=>{let A;if(b.length===1&&(A=b.at(0)),A!=null||(A=b.find(Me=>"isDefault"in Me&&Me.isDefault)),A)return A;let re=bd();return re&&(A=b.find(({language:Me})=>re===Me)),A!=null||(A=b.at(0)),A},Ki=!1;qt.add(P.info.availableAudioStreams$.subscribe(b=>{if(!Ki&&b.length){let A=Wi(b);A&&(P.setAudioStream(A),Ki=!0)}}));let xi=!1;qt.add(P.info.availableVideoStreams$.subscribe(b=>{if(!xi&&b.length){let A=Wi(b);A&&(P.setVideoStream(A),xi=!0)}}));let yi=Oe(void 0),Mi=Pt(P.info.isAutoQualityEnabled$,b=>b&&yi.set(void 0)),rn=Pt(P.info.currentQuality$,()=>yi.set(void 0)),sn=ei([yi,rn],([b,A])=>b!=null?b:A),Ti=ei([gi,wi,Mi,sn,St],([b,A,re,Me,lt])=>{let _t=[];lt!==os.MPEG&&_t.push({value:"auto",displayValue:et("auto_quality_option"),selected:re});let Rt=b.filter(Z=>!$4(Z));for(let Z of Rt){let gt=A[Z];_t.push({value:Z,displayValue:`${Z}${gt?ym(gt):""}`,selected:re?!1:Z===Me})}return _t}),Ii=Pt(P.info.currentPlaybackRate$),ci=ei([Ii,Wt,In],([b,A,re])=>{let Me=re||k?1:ce.controls.playbackRateMin,lt=A?1:ce.controls.playbackRateMax,_t=ce.controls.playbackRateStep,Rt=[];for(let Z=Me;Z<=lt;Z+=_t)Rt.push({value:Z,displayValue:Z===1?et("playback_rate_1"):et("playback_rate",{multiplier:Z.toString(10)}),selected:b===Z});return Rt}),jt={displayValue:et("subtitles_off"),value:"off"},Ht=Oe(Qe({},jt)),Li=ce.features.subtitles?Pt(P.info.availableTextTracks$):jn([]),Vi=rd(),ln=ei([Li,Ht],([b,A],re)=>{var _t;let Me=[],lt=b.find(({language:Rt})=>Rt===A.value);if(lt!=null&&lt.url){let[,Rt]=(_t=Vi.find(lt.url))!=null?_t:[];if(Rt){re(Rt);return}Pe.download(lt.url).then(Z=>{if(!Z||Pe.isDestroyed())return;let gt=new wm,co=lt.language,z_=!!lt.isAuto,W_=gt.parse(Z);co&&Me.push({lang:co,subtitles:W_,isAuto:z_}),Vi.add(lt.url,Me),Ye(Ht).value===A.value&&re(Me)}).catch(Z=>{var gt;(gt=X==null?void 0:X.oneStat)==null||gt.logError({errorType:"Subtitles download",fatal:!1}),Ae==null||Ae.report(Z,{errorType:"Subtitles download",fatal:!1})})}re(Me)}),ut=ei([Ii,ui,Ht],([b,A,re],Me)=>{let Rt;if(P.info.isLive$.getValue()&&A&&re.value!==jt.value){let gt=()=>{let co=1e3/(3*b);Rt=setTimeout(gt,co),Me(Date.now())};return gt(),()=>clearTimeout(Rt)}}),Ri=ei([Li,Ht],([b,A])=>{if((b==null?void 0:b.length)>0){let re=[yt(Qe({},jt),{selected:(A==null?void 0:A.value)===jt.value})];for(let{language:Me,isAuto:lt}of b){let _t=Me&&pl(Me);Me&&_t&&re.push({displayValue:lt?et("subtitles_auto",{language:_t}):_t,value:Me,selected:(A==null?void 0:A.value)===Me,isAuto:lt})}return re}else return[]}),fi={available:[],prev:[]},Bi=ei([At,Ht,ln,ut],([b,A,re,Me])=>{var _t,Rt;let lt=P.info.isLive$.getValue();if(lt&&fi.prev!==re){let Z=re.find(({lang:co})=>co===A.value),gt=fi.prev.find(({lang:co})=>co===A.value);if(Z){let co=yt(Qe({},Z),{subtitles:[...(_t=gt==null?void 0:gt.subtitles)!=null?_t:[],...Z.subtitles]});fi.available=[co],fi.prev=re}}if(A&&A.value!==jt.value){let Z=lt?(Rt=Ie==null?void 0:Ie.currentTime)!=null?Rt:0:b,gt=lt?fi.available:re;return Cm(Z,A,gt,lt)}}),Ni=ei([Bi],([b])=>b!=null&&b.texts?b.texts:[]),je=Oe(!0),Un=ei([Kt,Ci,vi,Xt],([b,A,re,Me])=>{var Z;let lt=(Z=b==null?void 0:b.end)!=null?Z:0;if(!Me)return lt/A;let Rt=-re+Me-A;return(lt-Rt)/A}),an=Pt(P.info.availableSources$),En=ei([an],([b])=>Object.keys((b==null?void 0:b[os.MPEG])||{}).length>0),hn=()=>{var re,Me,lt;let b=Object.keys(((Me=(re=P.info.availableSources$)==null?void 0:re.getValue())==null?void 0:Me[os.MPEG])||{}),A=X4(b)||av.Q_144P;return(lt=Te.sources[os.MPEG])==null?void 0:lt[A]},ji=()=>{var A;let b=hn();if(b)x.log("download video",{url:b}),id(b,((A=Te==null?void 0:Te.meta)==null?void 0:A.title)||"video");else{let re="There is no URL for download video";x.log("download video",{message:re}),Ee({message:re})}},Gi=()=>{Ee({message:"toggle muted"});let b=P.info.muted$.getValue(),A=P.info.volume$.getValue(),re=A===0||b,Me=!re;x.log("toggle muted",{muted:b,volume:A,soundIsOff:re,nextValue:Me}),Mn(Me)},Yi=()=>{x.log("close settings menu"),Tt.ui.settingsMenuVisible.set(!1)},gn=b=>{x.log("open settings menu",{wasOpenedByKeyboard:b}),Tt.ui.settingsMenuOpenedByKeyboard.set(!!b),Tt.ui.settingsMenuVisible.set(!0)},pi=b=>{Ye(Tt.ui.settingsMenuVisible)?Yi():gn(b)},An=(b,A=b,re=!1)=>{var _t,Rt,Z;let Me=!re,lt=P.info.muted$.getValue();Ee({message:`set volume, volume: ${b}, preferredVolume: ${A}, internalCall: ${Me}`}),x.log("set volume",{volume:b,preferredVolume:A,internalCall:Me}),P.setVolume(b),le.setVolume(b),Me&&((_t=l==null?void 0:l.onVolumeChange)==null||_t.call(l,b)),ua(A),lt?(P.setMuted(!1),Me&&((Rt=l==null?void 0:l.onUnmute)==null||Rt.call(l)),Es(!1)):!lt&&b===0&&(P.setMuted(!0),Me&&((Z=l==null?void 0:l.onMute)==null||Z.call(l)),Es(!0))},Mn=(b,A=!1)=>{var lt,_t,Rt,Z;let re=!A,Me=P.info.volume$.getValue();if(Ee({message:`set muted, currentVolume: ${Me}, mute: ${b}, internalCall: ${re}`}),x.log("set muted",{mute:b,currentVolume:Me,internalCall:re}),P.setMuted(b),le.setVolume(b?0:Me),Es(b),re&&(b?(lt=l==null?void 0:l.onMute)==null||lt.call(l):(_t=l==null?void 0:l.onUnmute)==null||_t.call(l)),Me===0){let gt=(Rt=Ps())!=null?Rt:ce.volumeDefault;gt===0&&(gt=ce.volumeMinRestore,ua(gt)),P.setVolume(gt),le.setVolume(gt),re&&((Z=l==null?void 0:l.onVolumeChange)==null||Z.call(l,gt))}},Ln=Oe(!1),bn=b=>{x.log("set looped",{isLooped:b}),Ln.set(b),P.setLooped(b)};bn(q);let vn=()=>{var b,A;(A=(b=l==null?void 0:l.uiInfo)==null?void 0:b.onReportProblem)==null||A.call(b)},Vn=b=>{Ee({message:`set autoplayNextEnabled, value: ${b}`}),x.log("set autoplay next enabled",{autoplayNextEnabled:b}),Tt.ui.autoplayNextEnabled$.set(b),wd(b)},yn=()=>{P.prepare()},zn=()=>{Hn(Tt);let b=Ye(Tt.ui.controls.disabledControls$),A=Ye(Tt.playerPhase),re={playerPhase:A,isInteractive:k,isVideoEnded:!1,action:"none"};if(b.has("PLAY_BUTTON"))return;if(Ee({message:"toggle play"}),A==="ads"){re.action="play",x.log("toggle adman play",re),le.togglePlay();return}let Me=()=>{var _t;Ee({message:"toggle play, call player.play"}),re.action="play",P.play(),(_t=l==null?void 0:l.onPlay)==null||_t.call(l)},lt=()=>{var _t;Ee({message:"toggle play, call player.pause"}),re.action="pause",P.pause(),(_t=l==null?void 0:l.onPause)==null||_t.call(l)};if(P.info.isEnded$.getValue()){if(Ee({message:"toggle play, video ended, seek to 0"}),kt.next(),Ct.next(Ho.REWIND),k){v==null||v();return}P.seekTime(0),Me()}else P.info.playbackState$.getValue()!==ns.PLAYING?Me():lt();x.log("toggle play",re)},Di=b=>{Ee({message:`set quality, quality: ${b}`}),x.log("set quality",{quality:b}),P.setAutoQuality(b==="auto"),b!=="auto"?(md(t,b),yi.set(b),P.setQuality(b)):ca()},un=b=>{Ee({message:`set trafficSavingEnabled, value: ${b}`}),x.log("set traffic saving enabled",{trafficSavingEnabled:b}),P.setAutoQualityLimits({max:b?ce.trafficSavingLimit:void 0}),hd(b)},oi=b=>{x.log("set playback rate",{playbackRate:b}),P.setPlaybackRate(b),ce.features.saveRate&&oe&&!P.info.isLive$.getValue()&&vd(b)},oo=()=>{let b=Ye(ci),A=b.findIndex(({selected:Me})=>Me);if(A===b.length-1)return;let re=b[A+1];oi(re.value)},ro=()=>{let b=Ye(ci),A=b.findIndex(({selected:Me})=>Me);if(A===0)return;let re=b[A-1];oi(re.value)},Wn=b=>{x.log("set subtitles",Qe({},b)),b&&b.value!==jt.value&&Ze.next(b.isAuto?b.value+"_auto":b.value),Ht.set(b)},di=()=>{x.log("toggle subtitles");let b=Ye(Ri),A=Ye(Ht),re=Ye(fe);if((A==null?void 0:A.value)===jt.value){let Me=b.filter(lt=>lt.value!==jt.value).find(lt=>lt.value===re)||b[1];Wn(Me!=null?Me:Qe({},jt))}else Wn(yt(Qe({},jt),{selected:!1}))},cn=(b,A,re=!0)=>{if(Ee({message:`seek to time, time: ${b}`}),x.log("seek to time",{time:b,action:A,forcePrecise:re}),Ct.next(A),P.info.isLive$.getValue()){let Me=P.info.duration$.getValue(),lt=Math.min(0,Me+b);P.seekTime(lt,re)}else{if(T!=null&&T.getValue())return;P.seekTime(gr(b),re)}},Qn=b=>{Ee({message:`seek to episode start time: ${b}`}),x.log("seek to episode start time",{time:b}),cn(b,Ho.EPISODE,!0)},Kn=(b,A)=>{Ee({message:`seek to percent, percent: ${b}`}),x.log("seek to percent",{percent:b,action:A});let re=Ye(Ci)*b;cn(re,A,!1)},so=b=>{Ee({message:`seek external, time: ${b}`}),x.log("seek external",{time:b}),Ct.next(Ho.UNKNOWN),P.seekTime(P.info.isLive$.getValue()?-b:b)},Zn=b=>{var Me,lt;let A=(Me=b.max)!=null?Me:"none",re=(lt=b.min)!=null?lt:"none";Ee({message:`set auto quality limitation. Max: ${A}. Min: ${re}`}),x.log("set auto quality limits",{max:A,min:re}),P.setAutoQualityLimits(b)},Xn=b=>{Ee({message:`seek external to episode start time: ${b}`}),x.log("seek external to episode start time",{time:b}),cn(b,Ho.EPISODE,!0)},wn=b=>{Ee({message:`set playback rate to: ${b}`}),x.log("set playback rate external",{playbackRate:b}),P.setPlaybackRate(b)},xn=Oe(void 0),kn=Oe(!1),lo=b=>{Ee({message:`start scrubbing, progress: ${b}`}),x.log("start scrubbing",{progress:b}),kn.set(!0),ie(b)},ie=b=>{xn.set(b)},bt,Qi,Oi=()=>{xn.set(void 0),kn.set(!1)},te=()=>{clearTimeout(Qi),clearTimeout(bt),bt=window.setTimeout(()=>{Oi()},500),Ie==null||Ie.removeEventListener("seeked",te)},Fi=b=>{Ee({message:`complete scrubbing, progress: ${b}`}),x.log("complete scrubbing",{progress:b}),Kn(b,Ho.SLIDER),Ye(Tt.ui.isMobile)&&Ye(Tt.state.currentFormat$)===os.HLS?(Ie==null||Ie.addEventListener("seeked",te),Qi=window.setTimeout(()=>{te()},300)):Oi()},zo=ei([At,Ci,xn],([b,A,re],Me)=>{Me(ev(re)?re*A:b)}),Io=Oe({width:0,height:0}),Po=ei([Io],([{width:b}],A)=>{let re=im(b);A(re)}),_o=Oe(!1),ho=W.filter(b=>nd(b)),pr=ei([Po,_o],([b,A])=>A?ho.filter(re=>!re.hideOnMobile):ho.filter(re=>{var Me;return!((Me=re.hideOnDesktopGridTypes)!=null&&Me.includes(b))})),Zi=Oe(W.filter(b=>od(b))),go=ei([Zi,Po],([b,A])=>b.filter(re=>{var Me;return!((Me=re.hideOnDesktopGridTypes)!=null&&Me.includes(A))})),Jn=ei([go,pr],([b,A])=>[...ce.features.additionalButtonsDesktopControlPanelRight?b.filter(re=>re.type==="desktop-control-panel-right"):[],...ce.features.additionalButtons?A.map((re,Me)=>{var lt;return{id:Me,weight:Me,type:"desktop-control-panel-right",testId:re.testId,icon:re.iconUrl,onClick:re.onClick,ariaLabel:(lt=re.ariaLabel)!=null?lt:re.tooltip,tooltipText:re.tooltip}}):[]]),fn=Oe(ne),Eo=ei([fn],([b])=>ce.features.additionalSettingsMenuItems?b.map(A=>A.type==="SWITCH"?yt(Qe({},A),{onClick:A.onChangeEnabled}):A):[]),Wo=(b,A)=>{let re=Ye(Zi).map(Me=>Me.id!==b?Me:Qe(Qe({},Me),A));Zi.set(re)},Ko=b=>{let A=Ye(Zi);if(A.some(re=>re.id===b.id)){Ee({message:`Additional button with id: "${b.id}" was exist! Can't add more with the same id`});return}A.push(b),Zi.set(A)},xo=b=>{let A=Ye(Zi);if(!A.some(re=>re.id===b)){Ee({message:`Can't find additional button with id: "${b}"! Can't remove item with this id`});return}A=A.filter(re=>re.id!==b),Zi.set(A)},jo=(b,A)=>{let re=Ye(fn).map(Me=>Me.id!==b?Me:Qe(Qe({},Me),A));fn.set(re)},Go=b=>{let A=Ye(fn);if(A.some(re=>re.id===b.id)){Ee({message:`Settings menu item with id: "${b.id}" was exist! Can't add more with the same id`});return}A.push(b),fn.set(A)},Yo=b=>{let A=Ye(fn);if(!A.some(re=>re.id===b)){Ee({message:`Can't find settings menu item with id: "${b}"! Can't remove item with this id`});return}A=A.filter(re=>re.id!==b),fn.set(A)},Rn=Oe(de),Qo=ei([Rn],([b])=>ce.features.additionalContextMenuItems?b:[]),Zo=(b,A)=>{let re=Ye(Rn).map(Me=>Me.id!==b?Me:Qe(Qe({},Me),A));Rn.set(re)},Xo=b=>{let A=Ye(Rn);if(A.some(re=>re.id===b.id)){Ee({message:`Context menu item with id: "${b.id}" was exist! Can't add more with the same id`});return}A.push(b),Rn.set(A)},Q=b=>{let A=Ye(Rn);if(!A.some(re=>re.id===b)){Ee({message:`Can't find context menu item with id: "${b}"! Can't remove item with this id`});return}A=A.filter(re=>re.id!==b),Rn.set(A)},Lt=ei([_o,nt],([b,A],re)=>{re(b&&A)}),Xi=()=>{Ct.next(Ho.LIVE),Ee({message:"switch to active live"}),x.log("switch to active live"),P.seekTime(0),P.info.playbackState$.getValue()!==ns.PLAYING&&Tt.actions.internal.togglePlay()},Hi=()=>{x.log("skip adman"),le.skip()},ao=(b=!0)=>{Hn(Tt),Ee({message:`switch from ads to video, callPlay: ${b}`}),x.log("switch from ads to video",{callPlay:b}),Ne.set("video"),b&&P.play()},Cn=()=>{Hn(Tt),Ee({message:"switch from video to ads"}),x.log("switch from video to ads"),Tt.actions.internal.pause(),ri(),Ne.set("ads")},uo=b=>{Hn(Tt);let A=b?"LiveWaitingStart":"thumb";x.log("set live waiting start",{state:b,playerPhase:A}),Ne.set(A)},Jo=b=>{Hn(Tt);let A=b?"LiveWaitingRecover":"thumb";x.log("set live waiting recover",{state:b,playerPhase:A}),Ne.set(A)},bo=b=>{Hn(Tt);let A=b?"LiveWaitingRecord":"thumb";x.log("set live waiting record",{state:b,playerPhase:A}),Ne.set(A)},_r=()=>(Hn(Tt),x.log("get debug text data"),ed(P,Te,Tt)),Wr=()=>(Hn(Tt),JSON.stringify(z.getFinishedSpans())),Kr=()=>(Hn(Tt),td(P,Te,Tt)),xr=()=>Ie,jr=()=>{Ee({message:"toggle chromecast"}),x.log("toggle chromecast"),P.toggleChromecast()},hr=b=>{var re;if(Hn(Tt),P.info.isEnded$.getValue())return;let A=!b;if(Ye(Tt.playerPhase)==="ads"){Ee({message:`pause ads, internalCall: ${A}`}),x.log("pause ads",{internalCall:A}),le.pause();return}Ee({message:`pause video, internalCall: ${A}`}),x.log("pause video",{internalCall:A}),A&&((re=l==null?void 0:l.onPause)==null||re.call(l)),P.pause()},Gt=b=>{var re;Hn(Tt);let A=!b;if(Ye(Tt.playerPhase)==="ads"){Ee({message:`play ads, internalCall: ${A}`}),x.log("play ads",{internalCall:A}),le.play();return}Ee({message:`play video, internalCall: ${A}`}),x.log("play video",{internalCall:A}),A&&((re=l==null?void 0:l.onPlay)==null||re.call(l)),P.play()},Bn=b=>{Hn(Tt);let A=!b;if(Ye(Tt.playerPhase)==="ads"){Ee({message:"player cannot be stopped during ads via external method"});return}Ee({message:`player will be stopped, internalCall: ${A}`}),E==null||E()},Ao=(b,A)=>{Hn(Tt),Ee({message:`first start, show ads: ${b}, internalCall: ${!A}`}),x.log("first start",{showAds:b,external:A}),b?Ne.set("ads"):(Ne.set("video"),A?P.play():Tt.actions.internal.togglePlay())},$o=()=>(Ee({message:"getting time codes"}),c),Gr=()=>{let b=$o();if(!b||[0,1].includes(b.length))return;let A=P.info.position$.getValue();return b.find(re=>re.time>A)},Yl=b=>{let A=b;A||(A=Gr());let re=P.info.position$.getValue();x.log("seek to next episode",Qe({currentTime:re},A)),A&&(Ee({message:"seek to next episode"}),cn(A.time,Ho.EPISODE,!0))},ps=()=>{let b=$o();if(!b||[0,1].includes(b.length))return;let A=P.info.position$.getValue(),re=b.findIndex(lt=>lt.time>A),Me=re===-1?b.length-2:re-2;if(!(Me<0))return b[Me]},Yr=b=>{let A=b;A||(A=ps());let re=P.info.position$.getValue();x.log("seek to prev episode",Qe({currentTime:re},A)),A&&(Ee({message:"seek to prev episode"}),cn(A.time,Ho.EPISODE,!0))},Ql=()=>(Ee({message:"getting preview thumbs data"}),x.log("get preview thumbs data",Qe({},m)),m),Zl=()=>mt(void 0,null,function*(){let b=ee==null?void 0:ee.isActive(),A="none";ee!=null&&ee.isActive()?(A="remove",yield ee==null?void 0:ee.remove()):(A="request",yield ee==null?void 0:ee.request()),x.log("toggle picture in picture",{isActive:b,action:A})}),Xl=(b=-90)=>{x.log("rotate video",{alphaDiff:b}),xe.update(A=>A+b)},Mo=Oe([]);F==null||F.subscribe(b=>{let A=[];for(let re=0;re<b.length;re++){let{range:[Me,lt],subjects:_t}=b[re];re===0&&Me!==0&&A.push({time:0,text:"",interactive:!1,completed:!0}),A.push({time:Me/1e3,text:"",interactive:!0,completed:!_t.length}),lt!==1/0&&A.push({time:lt/1e3,text:"",interactive:!1,completed:!0})}Mo.set(A)});let Qr=Oe(!1);T==null||T.subscribe(b=>{b&&Ye(kn)&&Oi()});let gr=b=>{if(!k)return b;let A=Ye(Mo),re=Ye(Ci),lt=Ye(vi)/re,_t=A.find(Rt=>Rt.interactive&&!Rt.completed&&Rt.time>lt);return typeof(_t==null?void 0:_t.time)=="number"?Math.min(b,_t.time-.05):b},Sn=()=>{Tt.ui.episodes.panelOpened$.set(!1)},Nn=()=>{x.log("destroy store"),clearTimeout(Qi),clearTimeout(bt),qt.unsubscribe(),Ut.unsubscribe(),P.destroy(),le.destroy(),X==null||X.destroy(),Ae==null||Ae.destroy(),at.unsubscribe(),Et==null||Et.disconnect(),Et=null,Pe.destroy()},Tt={interfaceLanguage$:fe,isCyrillicRelatedInterface$:Se,initVideo:dt,videoId:t,isClip:n,playerPhase:tt,vsid:We,state:{positionExact$:At,positionWithScrubbing$:zo,duration$:Ci,playbackState$:Dt,isPlaying$:ui,isLoaderVisible:zi,bufferedProgress$:Un,isLive$:Mt,canChangePlaybackSpeed$:ni,isActiveLive$:Wt,isOldestAvailableLive$:In,isRewindableLive$:pn,isEnded$:si,muted$:Bt,volume$:dn,trafficSavingEnabled$:qi,autoQualityLimitingAvailable$:en,availableVideoStreams$:nn,availableAudioStreams$:_n,videoStream$:Si,audioStream$:on,currentQuality$:sn,isAutoQualityEnabled$:Mi,availableQualities$:Ti,currentPlaybackRate$:Ii,availablePlaybackRates$:ci,currentSubtitle$:Ht,availableSubtitlesList$:Ri,currentSubtitleCaptions$:Ni,isAutoSubtitleCaptionVisible$:je,chromecastState$:De,chromecastDeviceName$:it,chromecastConnected$:Pn,currentFormat$:St,throughputEstimation$:bi,videoBitrate$:ki,videoSize$:tn,errorLog$:st,crashed$:nt,isAudioAvailable$:mn,isAudioDisabled:!!s,canDownload:ce.features.download&&!!a,availableSources$:an,hasMpegSources$:En,isInteractive:k,showInteractiveGraph:ce.features.interactiveGraph,showSeekToInteractive:ce.features.seekToInteractive,showPlayPrevChapter:ce.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ce.features.interactiveTimeIndicator&&!!Ye(Mo).length,interactiveEpisodes$:Mo,isInteractiveTime$:T?Pt(T):Oe(!1),graphIsOpened$:Oe(!1),isInteractiveExpectation$:Qr,hasInteractiveBranches:H,playPrevChapterDisabledTooltip:U,looped$:Ln,loadedMetadata$:Oe(!1)},ui:{controlsVisible:Oe(!1),touched:Oe(!1),controls:{prevButton:Oe(void 0),playButton:Oe(void 0),replayButton:Oe(void 0),nextButton:Oe(void 0),playPrevChapterButton:Oe(void 0),seekToInteractiveButton:Oe(void 0),interactiveGraphButton:Oe(void 0),liveButton:Oe(void 0),time:Oe(void 0),episodes:Oe(void 0),volume:Oe(void 0),subtitles:Oe(void 0),settings:Oe(void 0),context:Oe(void 0),chromecast:Oe(void 0),pip:Oe(void 0),fullscreen:Oe(void 0),vkLogo:Oe(void 0),interactiveTimeIndicator:Oe(void 0),timeline:Oe(void 0),autoplayNextToggle:Oe(void 0),additionalButtons:W.length?W.reduce(b=>[...b,Oe(void 0)],[]):[],disabledControls$:Fe},modals:{hotKeyMap:{show:Oe(!1),data:Oe({title:"",closeBtnText:"",groups:[]})}},isFullscreen:$,rotateAlpha:xe,isAutoplay:Oe(!1),debugPanelVisible:Oe(!1),episodes:{panelOpened$:Oe(!1),openedByKeyboard$:Oe(!1)},contextMenu:{visible$:Oe(!1),btnRef$:Oe(void 0),openedByBtnKeyboard$:Oe(!1),openedByHotKey$:Oe(!1),lastActiveElem$:Oe(void 0),showContextMenuBtn$:Oe(!1),position$:Oe({top:0,left:0})},playerSize:Io,isMobile:_o,mobileNotReportControlHidden$:Lt,mobileUnmuteButtonExpanded:Oe(!1),mobileUnmuteButtonVisible:Oe(!1),icon3DVideoVisible:Oe(!1),settingsMenuVisible:Oe(!1),settingsMenuOpenedByKeyboard:Oe(!1),scrubbingInProgress:kn,is3DVideo:Oe(!1),isPictureInPictureActive$:ii,pictureInPictureType$:jn(Ce),currentGridType$:Po,additionalButtonsDeprecated$:pr,additionalDesktopControlPanelRightButtons$:Jn,additionalSettingsMenuItems$:Eo,additionalContextMenuItems$:Qo,interactiveHideMobileControls:Oe(!1),overlayContainer$:Oe(void 0),startedByKeyboard$:Oe(!1),autoplayNextEnabled$:Oe(!1)},ads:{position:Oe(0),duration:Oe(0),playbackState:Oe("inactive"),canSkip:Oe(!1),secondsToWatchBeforeSkip:Oe(0),postrollPassed:Oe(!1)},webApi:{pictureInPictureApi:ee,annotationsApi:ge},actions:{internal:{preload:yn,firstStart:b=>Ao(b,!1),play:()=>Gt(!1),pause:()=>hr(!1),togglePlay:zn,toggleMuted:Gi,toggleSettingsMenu:pi,openSettingsMenu:gn,closeSettingsMenu:Yi,setVolume:An,setVideoStream:xt,setAudioStream:qn,setQuality:Di,setTrafficSavingEnabled:b=>un(b),setPlaybackRate:oi,incrementPlaybackRate:oo,decrementPlaybackRate:ro,setSubtitle:Wn,toggleSubtitle:di,togglePictureInPicture:Zl,startScrubbing:lo,progressScrubbing:ie,completeScrubbing:Fi,toggleChromecast:jr,switchToActiveLive:Xi,switchFromAdsToVideo:ao,switchFromVideoToAds:Cn,skipAd:Hi,setLiveWaitingStart:uo,setLiveWaitingRecover:Jo,setLiveWaitingRecord:bo,getDebugTextData:_r,getTraceTextData:Wr,getDebugPanelData:Kr,getVideoElement:xr,seekTime:(b,A,re)=>cn(b,A,re),clearDelayedBufferingCheckTimeout:Ft,seekEpisodeStartTime:Qn,seekToPercent:Kn,getNextEpisode:Gr,seekToNextEpisode:Yl,getPrevEpisode:ps,seekToPrevEpisode:Yr,startLogging:Qt,stopLogging:zt,startCameraManualRotation:Ke,stopCameraManualRotation:Xe,moveCameraFocusPX:It,holdCamera:pe,releaseCamera:Zt,getVideoEpisodes:$o,getPreviewThumbsData:Ql,downloadVideo:ji,addLanguage:_a,setLanguage:$e,nextMovie:pt,videoRotate:Xl,correctSeekTimeToInteractive:gr,replayInteractive:v,setLooped:bn,reportProblem:vn,setAutoplayNextEnabled:Vn},external:{firstStart:b=>Ao(b,!0),play:()=>Gt(!0),pause:()=>hr(!0),stop:()=>Bn(!0),seekTime:b=>so(b),seekEpisodeStartTime:b=>Xn(b),setPlaybackRate:b=>wn(b),setAutoQualityLimits:b=>Zn(b),setMuted:b=>Mn(b,!0),setVolume:b=>An(b,b,!0),returnFocusToEpisodes:Sn,updateAdditionalSettingsItem:jo,addAdditionalSettingsItem:Go,removeAdditionalSettingsItem:Yo,updateAdditionalContextItem:Zo,addAdditionalContextItem:Xo,removeAdditionalContextItem:Q,updateAdditionalButton:Wo,addAdditionalButton:Ko,removeAdditionalButton:xo}},callbacks:l,setUiCallbacks:b=>{rt=Qe({},b)},getAdmanWrapper:()=>le,getLogger:()=>J,destroy:Nn};return Tt};var vl=(i,e,t,n)=>{var a;if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"],s=i.getBoundingClientRect();for(let[l,u]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(l)){let c=(a=t[l])==null?void 0:a.getBoundingClientRect(),m=(n||r.includes(l))&&!!c&&!!(c.right-c.left);u.set({positionStartX:0,positionEndX:0,left:m?Math.round(c.left-s.left):0,right:m?Math.round(c.right-s.left):0,top:m?Math.round(c.top-s.top):0,bottom:m?Math.round(c.bottom-s.top):0,isDisplayed:m})}};var yl=(i,e,t)=>mt(void 0,null,function*(){yield eo(),e&&t&&(t.focus(),i.set(!1))});function uv(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function cv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Hu=class extends N{constructor(e){super(),O(this,e,cv,uv,B,{})}},Im=Hu;function fv(i){let e,t;return e=new Im({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function dv(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:[fv]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function mv(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,s=ot(),a=s.ui.contextMenu.visible$;D(i,a,F=>t(3,n=F));let l=s.ui.contextMenu.openedByBtnKeyboard$,u=s.ui.contextMenu.showContextMenuBtn$,c=s.ui.contextMenu.position$,m=s.ui.contextMenu.btnRef$,h,C=F=>{let T=Er(F),v=Xd(h);c.set(v),l.set(T),a.set(!n)},g=()=>{u.set(!0)},S=()=>{u.set(!1)};function k(F){h=F,t(2,h)}return i.$$set=F=>{"disabled"in F&&t(0,o=F.disabled),"ariaLabel"in F&&t(1,r=F.ariaLabel)},i.$$.update=()=>{i.$$.dirty&4&&h&&m.set(h)},[o,r,h,n,a,C,g,S,k]}var qu=class extends N{constructor(e){super(),O(this,e,mv,dv,B,{disabled:0,ariaLabel:1})}},Pm=qu;function pv(i){be(i,"svelte-17imlp9",".interactive-episode-icon-animated.svelte-17imlp9{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.invisible.svelte-17imlp9{opacity:0;visibility:hidden}.fullscreen.svelte-17imlp9:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.svelte-17imlp9{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.svelte-17imlp9{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.svelte-17imlp9{top:40px;right:16px}}@keyframes svelte-17imlp9-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-17imlp9{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-17imlp9-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.svelte-17imlp9{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.svelte-17imlp9{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.svelte-17imlp9{display:none}")}function _v(i){let e,t;return e=new nl({props:{completed:!0}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function hv(i){let e,t,n,o,r,s,a,l,u,c;function m(C){i[22](C)}let h={tooltipContent:j("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[_v]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new Ji({props:h}),ve.push(()=>ze(t,"ref",m)),t.$on("click",i[14]),{c(){e=I("div"),R(t.$$.fragment),o=Y(),r=I("div"),s=Y(),a=I("div"),f(r,"class","ref-block svelte-17imlp9"),G(r,"hidden",i[1]),f(a,"class","pulse svelte-17imlp9"),G(a,"paused",i[4]),f(e,"class","interactive-episode-icon-animated svelte-17imlp9"),G(e,"mobile",i[2]),G(e,"fullscreen",i[6]),G(e,"invisible",i[1])},m(C,g){w(C,e,g),L(t,e,null),_(e,o),_(e,r),i[23](r),_(e,s),_(e,a),i[24](a),l=!0,u||(c=[ke(e,"mousemove",vt(i[21])),ke(e,"mouseleave",i[15])],u=!0)},p(C,g){let S={};g[0]&32&&(S.tooltipActive=C[5]),g[1]&1&&(S.$$scope={dirty:g,ctx:C}),!n&&g[0]&1&&(n=!0,S.ref=C[0],Ue(()=>n=!1)),t.$set(S),(!l||g[0]&2)&&G(r,"hidden",C[1]),(!l||g[0]&16)&&G(a,"paused",C[4]),(!l||g[0]&4)&&G(e,"mobile",C[2]),(!l||g[0]&64)&&G(e,"fullscreen",C[6]),(!l||g[0]&2)&&G(e,"invisible",C[1])},i(C){l||(d(t.$$.fragment,C),l=!0)},o(C){p(t.$$.fragment,C),l=!1},d(C){C&&y(e),V(t),i[23](null),i[24](null),u=!1,ft(c)}}}function gv(i,e,t){var J;let n,o,r,s,a,l,{ref:u=void 0}=e,c,m=ot(),h=On(),{interactiveControlsOpacity$:C}=h;D(i,C,le=>t(18,o=le));let g=m.ui.isMobile;D(i,g,le=>t(2,a=le));let S=m.ui.isFullscreen;D(i,S,le=>t(6,l=le));let k=m.state.isInteractiveTime$;D(i,k,le=>t(19,r=le));let F=h.showInteractiveTimeIndicatorTooltip$;D(i,F,le=>t(17,n=le));let T=m.ui.controlsVisible;D(i,T,le=>t(20,s=le));let v=(J=m.callbacks)==null?void 0:J.onInteractiveTimeIndicatorClick,E,H,U,W=()=>{t(4,U=!0)},ne=()=>{de(),c==null||c.addEventListener("animationiteration",W,{once:!0})},de=()=>{t(4,U=!1),c==null||c.removeEventListener("animationiteration",W)},q=le=>{F.set(le)},X,oe=()=>{H||(F.set(!0),v==null||v())};$n(()=>{F.clearTimeout(),de()});let K=()=>{F.set(!1)};function ce(le){Dn.call(this,i,le)}function z(le){u=le,t(0,u)}function x(le){ve[le?"unshift":"push"](()=>{u=le,t(0,u)})}function P(le){ve[le?"unshift":"push"](()=>{c=le,t(3,c)})}return i.$$set=le=>{"ref"in le&&t(0,u=le.ref)},i.$$.update=()=>{i.$$.dirty[0]&1048580&&t(16,E=!a&&s),i.$$.dirty[0]&851968&&t(1,H=!r||!!o||E),i.$$.dirty[0]&2&&t(4,U=H),i.$$.dirty[0]&131074&&t(5,X=n&&!H),i.$$.dirty[0]&131072&&(n?ne():de())},[u,H,a,c,U,X,l,C,g,S,k,F,T,q,oe,K,E,n,o,r,s,ce,z,x,P]}var Uu=class extends N{constructor(e){super(),O(this,e,gv,hv,B,{ref:0},pv,[-1,-1])}},wl=Uu;function bv(i){var a;let e,t,n,o=[(a=i[2])!=null?a:{}];var r=i[1];function s(l,u){var m;let c={};for(let h=0;h<o.length;h+=1)c=se(c,o[h]);return u!==void 0&&u&4&&(c=se(c,He(o,[Vo((m=l[2])!=null?m:{})]))),{props:c}}return r&&(e=Ot(r,s(i))),{c(){e&&R(e.$$.fragment),t=Je()},m(l,u){e&&L(e,l,u),w(l,t,u),n=!0},p(l,u){var c;if(u&2&&r!==(r=l[1])){if(e){ae();let m=e;p(m.$$.fragment,1,0,()=>{V(m,1)}),ue()}r?(e=Ot(r,s(l,u)),R(e.$$.fragment),d(e.$$.fragment,1),L(e,t.parentNode,t)):e=null}else if(r){let m=u&4?He(o,[Vo((c=l[2])!=null?c:{})]):{};e.$set(m)}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&p(e.$$.fragment,l),n=!1},d(l){l&&y(t),e&&V(e,l)}}}function vv(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:[bv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Ji({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function yv(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 zu=class extends N{constructor(e){super(),O(this,e,yv,vv,B,{buttonComponent:1,buttonComponentProps:2,tooltipText:3,disabledTooltipContent:4,disabled:5,className:6,ref:0})}},Wu=zu;var To={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};function kv(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function Cv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ku=class extends N{constructor(e){super(),O(this,e,Cv,kv,B,{})}},Em=Ku;function Sv(i){let e,t;return e=new Em({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Tv(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 xu=class extends N{constructor(e){super(),O(this,e,Tv,Sv,B,{isPrev:0,isMobile:2})}},Am=xu;function Iv(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 Mm(i){let e;return{c(){e=I("div"),f(e,"class","icon-background-mobile svelte-xtk2k4")},m(t,n){w(t,e,n)},d(t){t&&y(e)}}}function Pv(i){let e,t,n,o=i[1]&&Mm(i);return t=new Am({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){o&&o.c(),e=Y(),R(t.$$.fragment)},m(r,s){o&&o.m(r,s),w(r,e,s),L(t,r,s),n=!0},p(r,s){r[1]?o||(o=Mm(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&&y(e),o&&o.d(r),V(t,r)}}}function Ev(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:[Pv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function Av(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"?j("tooltip_previous"):j("tooltip_next"))},[n,o,r,s,a,l,u]}var ju=class extends N{constructor(e){super(),O(this,e,Av,Ev,B,{ref:0,isMobile:1,disabled:2,type:3,click:4},Iv)}},Fr=ju;function Mv(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function Lv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Gu=class extends N{constructor(e){super(),O(this,e,Lv,Mv,B,{})}},kl=Gu;import{noop as Vv}from"@vkontakte/videoplayer-shared";function Rv(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 Lm(i){let e;return{c(){e=I("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){w(t,e,n)},d(t){t&&y(e)}}}function Bv(i){let e,t,n,o,r=i[1]&&Lm(i);return n=new kl({}),{c(){r&&r.c(),e=Y(),t=I("div"),R(n.$$.fragment),f(t,"class","svelte-1ot3duq"),G(t,"mobile",i[1])},m(s,a){r&&r.m(s,a),w(s,e,a),w(s,t,a),L(n,t,null),o=!0},p(s,a){s[1]?r||(r=Lm(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!o||a&2)&&G(t,"mobile",s[1])},i(s){o||(d(n.$$.fragment,s),o=!0)},o(s){p(n.$$.fragment,s),o=!1},d(s){s&&(y(e),y(t)),r&&r.d(s),V(n)}}}function Nv(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:j("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:fo.KeyK,$$slots:{default:[Bv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function Dv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:s=""}=e,{click:a=Vv}=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 Yu=class extends N{constructor(e){super(),O(this,e,Dv,Nv,B,{ref:0,isMobile:1,disabled:2,className:3,click:4},Rv)}},rs=Yu;function Ov(i){let e,t;return{c(){e=M("svg"),t=M("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){w(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&&y(e)}}}function Fv(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 Qu=class extends N{constructor(e){super(),O(this,e,Fv,Ov,B,{width:0,height:1,viewBox:2,fill:3})}},qo=Qu;function Hv(i){let e,t;return{c(){e=M("svg"),t=M("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){w(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&&y(e)}}}function qv(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 Zu=class extends N{constructor(e){super(),O(this,e,qv,Hv,B,{width:0,height:1,viewBox:2,fill:3})}},Hr=Zu;import{noop as Uv}from"@vkontakte/videoplayer-shared";function zv(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 Vm(i){let e;return{c(){e=I("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){w(t,e,n)},d(t){t&&y(e)}}}function Wv(i){let e,t,n,o,r=i[1]&&Vm(i);var s=i[8];function a(l,u){return{}}return s&&(n=Ot(s,a(i))),{c(){r&&r.c(),e=Y(),t=I("div"),n&&R(n.$$.fragment),f(t,"class","svelte-1ot3duq"),G(t,"mobile",i[1])},m(l,u){r&&r.m(l,u),w(l,e,u),w(l,t,u),n&&L(n,t,null),o=!0},p(l,u){if(l[1]?r||(r=Vm(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,()=>{V(c,1)}),ue()}s?(n=Ot(s,a(l,u)),R(n.$$.fragment),d(n.$$.fragment,1),L(n,t,null)):n=null}(!o||u&2)&&G(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&&(y(e),y(t)),r&&r.d(l),n&&V(n)}}}function Kv(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:[Wv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function xv(i,e,t){let n,o,{fakeIsPlaying$:r}=On();D(i,r,T=>t(12,o=T));let{ref:s=void 0}=e,{isMobile:a=!1}=e,{isPlaying:l=!1}=e,{disabled:u=!1}=e,{className:c=""}=e,{click:m=Uv}=e,{toggle:h}=r,C,g,S,k;function F(T){s=T,t(0,s)}return i.$$set=T=>{"ref"in T&&t(0,s=T.ref),"isMobile"in T&&t(1,a=T.isMobile),"isPlaying"in T&&t(10,l=T.isPlaying),"disabled"in T&&t(2,u=T.disabled),"className"in T&&t(3,c=T.className),"click"in T&&t(4,m=T.click)},i.$$.update=()=>{i.$$.dirty&4096&&t(5,g=o!==null),i.$$.dirty&5152&&t(11,S=g?o:l),i.$$.dirty&2048&&t(7,k=S?j("tooltip_pause"):j("tooltip_play")),i.$$.dirty&2048&&t(8,n=S?Hr:qo)},t(6,C=h),[s,a,u,c,m,g,C,k,n,r,l,S,o,F]}var Xu=class extends N{constructor(e){super(),O(this,e,xv,Kv,B,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},zv)}},ss=Xu;function jv(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function Gv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ju=class extends N{constructor(e){super(),O(this,e,Gv,jv,B,{})}},Rm=Ju;function Yv(i){let e,t;return e=new Rm({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Qv(i){let e,t,n;function o(s){i[4](s)}let r={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:j("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[Yv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function Zv(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 $u=class extends N{constructor(e){super(),O(this,e,Zv,Qv,B,{ref:0,hidden:1,disabled:2,click:3})}},Cl=$u;function Xv(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=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("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"),we(e,l)},m(u,c){w(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),we(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&&y(e),s&&s.d(u)}}}function Jv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ec=class extends N{constructor(e){super(),O(this,e,Jv,Xv,B,{})}},Bm=ec;function $v(i){let e,t;return e=new Bm({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function e3(i){let e,t,n;function o(s){i[4](s)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:j("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[$v]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function t3(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 N{constructor(e){super(),O(this,e,t3,e3,B,{ref:0,hidden:1,disabled:2,click:3})}},Sl=tc;function i3(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=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("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"),we(e,l)},m(u,c){w(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),we(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&&y(e),s&&s.d(u)}}}function n3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ic=class extends N{constructor(e){super(),O(this,e,n3,i3,B,{})}},Nm=ic;function o3(i){be(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function r3(i){let e,t;return e=new Nm({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function s3(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var nc=class extends N{constructor(e){super(),O(this,e,s3,r3,B,{isOpened:0},o3)}},Dm=nc;function l3(i){let e,t;return e=new Dm({props:{isOpened:!!i[3]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function a3(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:[l3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function u3(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?j("tooltip_interactive_graph_on"):j("tooltip_interactive_graph_off"))},[n,o,r,s,a,l,u]}var oc=class extends N{constructor(e){super(),O(this,e,u3,a3,B,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Tl=oc;import{PlaybackState as rc}from"@vkontakte/videoplayer-core";function c3(i){let e,t;return e=new qs({props:{isActive:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function f3(i){let e,t;return e=new ht({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===rc.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[c3]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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]===rc.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){V(e,n)}}}function d3(i,e,t){let n,{isMobile:o=!1}=e,{isLiveActive:r=!1}=e,{ariaLabel:s=""}=e,a=ot(),l=a.state.playbackState$;D(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===rc.PAUSED&&c()})},[o,r,s,n,m,l]}var sc=class extends N{constructor(e){super(),O(this,e,d3,f3,B,{isMobile:0,isLiveActive:1,ariaLabel:2})}},Il=sc;import{noop as Om}from"@vkontakte/videoplayer-shared";function m3(i){let e,t,n,o;return{c(){e=I("img"),f(e,"class","icon"),vo(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){w(r,e,s),n||(o=ke(e,"error",i[2]),n=!0)},p(r,s){s&1&&!vo(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&y(e),n=!1,o()}}}function p3(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner"></div>',f(e,"class","icon icon-error-stub")},m(t,n){w(t,e,n)},p:me,d(t){t&&y(e)}}}function _3(i){let e;function t(r,s){return r[1]?p3:m3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Je()},m(r,s){o.m(r,s),w(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&&y(e),o.d(r)}}}function h3(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 lc=class extends N{constructor(e){super(),O(this,e,h3,_3,B,{icon:0})}},qr=lc;function g3(i){let e,t;return e=new qr({props:{icon:i[3]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function b3(i){var n;let e,t;return e=new ht({props:{className:i[8],ariaLabel:i[4],click:i[7],disabled:i[9],testId:(n=i[2])!=null?n:i[1],$$slots:{default:[g3]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(o,r){L(e,o,r),t=!0},p(o,r){var a;let s={};r&256&&(s.className=o[8]),r&16&&(s.ariaLabel=o[4]),r&128&&(s.click=o[7]),r&512&&(s.disabled=o[9]),r&6&&(s.testId=(a=o[2])!=null?a:o[1]),r&8200&&(s.$$scope={dirty:r,ctx:o}),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){V(e,o)}}}function v3(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:[b3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Ji({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function y3(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:C=Om}=e,{ref:g}=e;function S(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,C=k.onClick),"ref"in k&&t(0,g=k.ref)},i.$$.update=()=>{i.$$.dirty&128&&t(11,n=C===Om),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,C,r,o,h,n,S]}var ac=class extends N{constructor(e){super(),O(this,e,y3,v3,B,{id:1,testId:2,icon:3,ariaLabel:4,tooltipText:5,disabledTooltipContent:6,disabled:10,onClick:7,ref:0})}},Fm=ac;var Hm=i=>!!i.buttonComponent;var Uo={vkLogo:100,volume:200,subtitles:300,settings:400,context:500,fullscreen:600,chromecast:700};function S3(i){be(i,"svelte-ips4nw",".wrapper-bottom.svelte-ips4nw.svelte-ips4nw{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-ips4nw>.svelte-ips4nw{pointer-events:auto}.controls.svelte-ips4nw.svelte-ips4nw{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-ips4nw.svelte-ips4nw,.controls-right.svelte-ips4nw.svelte-ips4nw{display:flex;align-content:center}.controls-left.svelte-ips4nw.svelte-ips4nw{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-ips4nw > *:not(:first-child),.controls-right.svelte-ips4nw > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-ips4nw.svelte-ips4nw{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-ips4nw.svelte-ips4nw{transition:none}")}function Um(i,e,t){let n=i.slice();return n[203]=e[t],n[204]=e,n[205]=t,n}function zm(i,e,t){let n=i.slice();return n[203]=e[t],n[206]=e,n[207]=t,n}function Wm(i){let e,t,n;function o(s){i[167](s,i[203])}let r={buttonComponent:i[203].buttonComponent,buttonComponentProps:i[203].buttonComponentProps,tooltipText:i[203].tooltipText,disabledTooltipContent:i[203].disabledTooltipContent,disabled:i[203].disabled,className:i[203].className};return i[10][i[203].id]!==void 0&&(r.ref=i[10][i[203].id]),e=new Wu({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&2048&&(l.buttonComponent=i[203].buttonComponent),a[0]&2048&&(l.buttonComponentProps=i[203].buttonComponentProps),a[0]&2048&&(l.tooltipText=i[203].tooltipText),a[0]&2048&&(l.disabledTooltipContent=i[203].disabledTooltipContent),a[0]&2048&&(l.disabled=i[203].disabled),a[0]&2048&&(l.className=i[203].className),!t&&a[0]&3072&&(t=!0,l.ref=i[10][i[203].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){V(e,s)}}}function Km(i){let e,t,n;function o(s){i[168](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 il({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function xm(i){let e,t;return e=new cl({props:{position:i[34],duration:i[36],timeCodes:i[50]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function T3(i){let e,t,n=i[8]&&xm(i);return{c(){n&&n.c(),e=Je()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,r){o[8]?n?(n.p(o,r),r[0]&256&&d(n,1)):(n=xm(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&&y(e),n&&n.d(o)}}}function I3(i){let e,t,n;function o(s){i[172](s,i[203])}let r={id:i[203].id,testId:i[203].testId,icon:i[203].icon,ariaLabel:i[203].ariaLabel,tooltipText:i[203].tooltipText,disabledTooltipContent:i[203].disabledTooltipContent,disabled:!!i[203].disabled,onClick:i[203].onClick};return i[10][i[203].id]!==void 0&&(r.ref=i[10][i[203].id]),e=new Fm({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&4096&&(l.id=i[203].id),a[0]&4096&&(l.testId=i[203].testId),a[0]&4096&&(l.icon=i[203].icon),a[0]&4096&&(l.ariaLabel=i[203].ariaLabel),a[0]&4096&&(l.tooltipText=i[203].tooltipText),a[0]&4096&&(l.disabledTooltipContent=i[203].disabledTooltipContent),a[0]&4096&&(l.disabled=!!i[203].disabled),a[0]&4096&&(l.onClick=i[203].onClick),!t&&a[0]&5120&&(t=!0,l.ref=i[10][i[203].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){V(e,s)}}}function P3(i){let e,t,n;function o(s){i[171](s,i[203])}let r={buttonComponent:i[203].buttonComponent,buttonComponentProps:i[203].buttonComponentProps,tooltipText:i[203].tooltipText,disabledTooltipContent:i[203].disabledTooltipContent,disabled:i[203].disabled,className:i[203].className};return i[10][i[203].id]!==void 0&&(r.ref=i[10][i[203].id]),e=new Wu({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&4096&&(l.buttonComponent=i[203].buttonComponent),a[0]&4096&&(l.buttonComponentProps=i[203].buttonComponentProps),a[0]&4096&&(l.tooltipText=i[203].tooltipText),a[0]&4096&&(l.disabledTooltipContent=i[203].disabledTooltipContent),a[0]&4096&&(l.disabled=i[203].disabled),a[0]&4096&&(l.className=i[203].className),!t&&a[0]&5120&&(t=!0,l.ref=i[10][i[203].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){V(e,s)}}}function jm(i){let e,t,n,o,r,s=[P3,I3],a=[];function l(u,c){return c[0]&4096&&(e=null),e==null&&(e=!!Hm(u[203])),e?0:1}return t=l(i,[-1,-1,-1,-1,-1,-1,-1]),n=a[t]=s[t](i),{c(){n.c(),o=Je()},m(u,c){a[t].m(u,c),w(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&&y(o),a[t].d(u)}}}function E3(i){let e,t,n;function o(s){i[175](s)}let r={};return i[10].interactiveTimeIndicator!==void 0&&(r.ref=i[10].interactiveTimeIndicator),e=new wl({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function A3(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T;function v(z){i[166](z)}let E={isHidden:!i[14],isAds:i[5],canRewindLive:i[6],isRewindableLive:i[13]};i[10].timeline!==void 0&&(E.ref=i[10].timeline),t=new ul({props:E}),ve.push(()=>ze(t,"ref",v));let H=wt(i[11]),U=[];for(let z=0;z<H.length;z+=1)U[z]=Wm(zm(i,H,z));let W=z=>p(U[z],1,1,()=>{U[z]=null}),ne=i[7]&&Km(i);function de(z){i[169](z)}let q={className:"w-max",disabled:!i[8],tooltipContent:j("tooltip_episodes"),$$slots:{default:[T3]},$$scope:{ctx:i}};i[10].episodes!==void 0&&(q.ref=i[10].episodes),u=new Ji({props:q}),ve.push(()=>ze(u,"ref",de));let X=wt(i[12]),oe=[];for(let z=0;z<X.length;z+=1)oe[z]=jm(Um(i,X,z));let K=z=>p(oe[z],1,1,()=>{oe[z]=null}),ce=i[67]&&E3(i);return{c(){e=I("div"),R(t.$$.fragment),o=Y(),r=I("div"),s=I("div");for(let z=0;z<U.length;z+=1)U[z].c();a=Y(),ne&&ne.c(),l=Y(),R(u.$$.fragment),h=Y(),C=I("div");for(let z=0;z<oe.length;z+=1)oe[z].c();g=Y(),ce&&ce.c(),S=Je(),f(s,"class","controls-left svelte-ips4nw"),f(C,"class","controls-right svelte-ips4nw"),f(r,"class","controls svelte-ips4nw"),f(e,"class","wrapper-bottom svelte-ips4nw"),G(e,"hidden",i[2]),G(e,"controls-hidden",!i[4]),G(e,"no-smooth",i[3])},m(z,x){w(z,e,x),L(t,e,null),_(e,o),_(e,r),_(r,s);for(let P=0;P<U.length;P+=1)U[P]&&U[P].m(s,null);_(s,a),ne&&ne.m(s,null),_(s,l),L(u,s,null),_(r,h),_(r,C);for(let P=0;P<oe.length;P+=1)oe[P]&&oe[P].m(C,null);i[173](r),i[174](e),w(z,g,x),ce&&ce.m(z,x),w(z,S,x),k=!0,F||(T=[br(m=Rr.call(null,s)),ke(s,"fd:resize",i[170])],F=!0)},p(z,x){let P={};if(x[0]&16384&&(P.isHidden=!z[14]),x[0]&32&&(P.isAds=z[5]),x[0]&64&&(P.canRewindLive=z[6]),x[0]&8192&&(P.isRewindableLive=z[13]),!n&&x[0]&1024&&(n=!0,P.ref=z[10].timeline,Ue(()=>n=!1)),t.$set(P),x[0]&3072){H=wt(z[11]);let le;for(le=0;le<H.length;le+=1){let Ae=zm(z,H,le);U[le]?(U[le].p(Ae,x),d(U[le],1)):(U[le]=Wm(Ae),U[le].c(),d(U[le],1),U[le].m(s,a))}for(ae(),le=H.length;le<U.length;le+=1)W(le);ue()}z[7]?ne?(ne.p(z,x),x[0]&128&&d(ne,1)):(ne=Km(z),ne.c(),d(ne,1),ne.m(s,l)):ne&&(ae(),p(ne,1,1,()=>{ne=null}),ue());let J={};if(x[0]&256&&(J.disabled=!z[8]),x[0]&256|x[1]&40|x[6]&4194304&&(J.$$scope={dirty:x,ctx:z}),!c&&x[0]&1024&&(c=!0,J.ref=z[10].episodes,Ue(()=>c=!1)),u.$set(J),x[0]&5120){X=wt(z[12]);let le;for(le=0;le<X.length;le+=1){let Ae=Um(z,X,le);oe[le]?(oe[le].p(Ae,x),d(oe[le],1)):(oe[le]=jm(Ae),oe[le].c(),d(oe[le],1),oe[le].m(C,null))}for(ae(),le=X.length;le<oe.length;le+=1)K(le);ue()}(!k||x[0]&4)&&G(e,"hidden",z[2]),(!k||x[0]&16)&&G(e,"controls-hidden",!z[4]),(!k||x[0]&8)&&G(e,"no-smooth",z[3]),z[67]&&ce.p(z,x)},i(z){if(!k){d(t.$$.fragment,z);for(let x=0;x<H.length;x+=1)d(U[x]);d(ne),d(u.$$.fragment,z);for(let x=0;x<X.length;x+=1)d(oe[x]);d(ce),k=!0}},o(z){p(t.$$.fragment,z),U=U.filter(Boolean);for(let x=0;x<U.length;x+=1)p(U[x]);p(ne),p(u.$$.fragment,z),oe=oe.filter(Boolean);for(let x=0;x<oe.length;x+=1)p(oe[x]);p(ce),k=!1},d(z){z&&(y(e),y(g),y(S)),V(t),li(U,z),ne&&ne.d(),V(u),li(oe,z),i[173](null),i[174](null),ce&&ce.d(z),F=!1,ft(T)}}}function M3(i,e,t){var _t,Rt;let n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,de,q,X,oe,K,ce,z,x,P,J,le,Ae,ee,ge,Ee,Te,Ie,rt,Pe=me,We=()=>(Pe(),Pe=$t(q,Z=>t(137,rt=Z)),q),$,_e=me,Ce=()=>(_e(),_e=$t(de,Z=>t(138,$=Z)),de),xe,st=me,at=()=>(st(),st=$t(ne,Z=>t(139,xe=Z)),ne),nt,$e=me,fe=()=>($e(),$e=$t(W,Z=>t(140,nt=Z)),W),Se,et=me,Ne=()=>(et(),et=$t(U,Z=>t(141,Se=Z)),U),tt,Fe=me,ct=()=>(Fe(),Fe=$t(H,Z=>t(142,tt=Z)),H),dt,he=me,pt=()=>(he(),he=$t(E,Z=>t(143,dt=Z)),E),kt,Ct=me,Ze=()=>(Ct(),Ct=$t(v,Z=>t(144,kt=Z)),v),Et,Vt=me,ri=()=>(Vt(),Vt=$t(T,Z=>t(145,Et=Z)),T),qt,Ut=me,Qt=()=>(Ut(),Ut=$t(F,Z=>t(146,qt=Z)),F),zt,Ke=me,Xe=()=>(Ke(),Ke=$t(k,Z=>t(147,zt=Z)),k),It,pe=me,Zt=()=>(pe(),pe=$t(S,Z=>t(148,It=Z)),S),At,ii=me,Dt=()=>(ii(),ii=$t(g,Z=>t(149,At=Z)),g),Kt,si=me,Mt=()=>(si(),si=$t(C,Z=>t(150,Kt=Z)),C),ni,Xt=me,dn=()=>(Xt(),Xt=$t(h,Z=>t(151,ni=Z)),h),Bt,qi=me,en=()=>(qi(),qi=$t(m,Z=>t(152,Bt=Z)),m),gi,wi=me,De=()=>(wi(),wi=$t(c,Z=>t(153,gi=Z)),c),it,St,bi,ki,tn,Ai,mn,mi,Ui,zi,Ft,Ci,ui,Wt,In,vi,pn;i.$$.on_destroy.push(()=>Pe()),i.$$.on_destroy.push(()=>_e()),i.$$.on_destroy.push(()=>st()),i.$$.on_destroy.push(()=>$e()),i.$$.on_destroy.push(()=>et()),i.$$.on_destroy.push(()=>Fe()),i.$$.on_destroy.push(()=>he()),i.$$.on_destroy.push(()=>Ct()),i.$$.on_destroy.push(()=>Vt()),i.$$.on_destroy.push(()=>Ut()),i.$$.on_destroy.push(()=>Ke()),i.$$.on_destroy.push(()=>pe()),i.$$.on_destroy.push(()=>ii()),i.$$.on_destroy.push(()=>si()),i.$$.on_destroy.push(()=>Xt()),i.$$.on_destroy.push(()=>qi()),i.$$.on_destroy.push(()=>wi());let{bottomHidden:Pn}=e,{bottomNoSmooth:nn}=e,{showControls:_n}=e,{playerControlsWrapperRef:Si=void 0}=e,{playerControlsRef:on=void 0}=e,{isAds:xt=!1}=e,{canRewindLive:qn}=e,{logoClickable:Wi}=e,{logoHidden:Ki}=e,{logoTargetUrl:xi=""}=e,{showNextPrevButtons:yi}=e,{nextButtonActive:Mi}=e,{prevButtonActive:rn}=e,{isOneVideoPlaylist:sn=!1}=e,{customFullscreenSupported:Ti=!0}=e,{playNextVideo:Ii}=e,{playPrevVideo:ci}=e,{repeatPlaylist:jt}=e,{toggleFullscreen:Ht}=e,{seekToInteractive:Li}=e,{playPrevChapter:Vi}=e,{fakeIsPlaying$:ln}=On();D(i,ln,Z=>t(130,J=Z));let ut=ot(),Ri=On(),fi=Yt(),Bi=ut.actions.internal.toggleMuted,Ni=ut.actions.internal.togglePlay,je=ut.actions.internal.pause,Un=ut.actions.internal.toggleSubtitle,an=(_t=ut.callbacks)==null?void 0:_t.onAudioDoesNotExistHint,En=(Rt=ut.callbacks)==null?void 0:Rt.onAudioDisabledHint,hn=ut.state.duration$;D(i,hn,Z=>t(36,pn=Z));let ji=ut.state.positionWithScrubbing$;D(i,ji,Z=>t(34,In=Z));let Gi=ut.state.playbackState$;D(i,Gi,Z=>t(127,z=Z));let Yi=ut.state.isAudioAvailable$;D(i,Yi,Z=>t(176,le=Z));let gn=ut.state.isAudioDisabled,pi=ut.state.isEnded$;D(i,pi,Z=>t(162,zi=Z));let An=ut.state.isLive$;D(i,An,Z=>t(156,ki=Z));let Mn=ut.state.isActiveLive$;D(i,Mn,Z=>t(155,St=Z));let Ln=ut.state.isRewindableLive$;D(i,Ln,Z=>t(13,bi=Z));let bn=ut.ui.isPictureInPictureActive$;D(i,bn,Z=>t(158,Ai=Z));let vn=ut.ui.pictureInPictureType$;D(i,vn,Z=>t(157,tn=Z));let Vn=ut.ui.settingsMenuVisible;D(i,Vn,Z=>t(126,ce=Z));let yn=ut.ui.settingsMenuOpenedByKeyboard;D(i,yn,Z=>t(132,ee=Z));let zn=ut.ui.controls,Di=ut.actions.internal.getVideoEpisodes(),un=ut.state.chromecastState$;D(i,un,Z=>t(124,oe=Z));let oi=ut.state.availableSubtitlesList$;D(i,oi,Z=>t(161,Ui=Z));let oo=ut.state.currentSubtitle$;D(i,oo,Z=>t(163,Ft=Z));let ro=zn.disabledControls$;D(i,ro,Z=>t(165,ui=Z));let Wn=ut.ui.contextMenu.visible$;D(i,Wn,Z=>t(154,it=Z));let di=ut.ui.contextMenu.showContextMenuBtn$;D(i,di,Z=>t(159,mn=Z));let cn=ut.ui.contextMenu.openedByBtnKeyboard$;D(i,cn,Z=>t(160,mi=Z));let Qn=ut.ui.startedByKeyboard$;D(i,Qn,Z=>t(131,Ae=Z));let Kn=ut.ads.duration;D(i,Kn,Z=>t(35,vi=Z));let so=ut.ads.position;D(i,so,Z=>t(33,Wt=Z));let Zn=ut.ads.playbackState;D(i,Zn,Z=>t(164,Ci=Z));let Xn=ut.ui.isFullscreen;D(i,Xn,Z=>t(125,K=Z));let wn=ut.ui.playerSize;D(i,wn,Z=>t(135,Te=Z));let xn=ut.ui.currentGridType$;D(i,xn,Z=>t(136,Ie=Z));let kn=ut.ui.additionalDesktopControlPanelRightButtons$;D(i,kn,Z=>t(123,X=Z));let lo=ut.actions.internal.getVideoElement,ie=ut.actions.internal.replayInteractive,bt=ut.state.isInteractive,Qi=ut.state.isInteractiveTime$;D(i,Qi,Z=>t(134,Ee=Z));let Oi=ut.state.showInteractiveGraph,te=ut.state.showSeekToInteractive,Fi=ut.state.showPlayPrevChapter,zo=ut.state.showInteractiveTimeIndicator,Io=ut.state.playPrevChapterDisabledTooltip,Po=Ri.seekToInteractiveDisabledTooltip$;D(i,Po,Z=>t(129,P=Z));let _o=Ri.graphIsOpened$;D(i,_o,Z=>t(128,x=Z));let ho=fi.features.interactiveResponsiveUi,pr=()=>ut.actions.internal.toggleChromecast(),Zi,go,Jn,fn,Eo,Wo,Ko,xo,jo,Go,Yo,Rn,Qo,Zo,Xo,Q,Lt,Xi,Hi,ao,Cn,uo,Jo,bo="",_r=(Z,gt)=>{if(!Z){t(105,bo=j("tooltip_live"));return}gt===uc.PAUSED&&t(105,bo=j("tooltip_play"))},Wr,Kr,xr,jr,hr,Gt={},Bn,Ao,$o,Gr,Yl=C3(vl,260),ps,Yr=Oe();D(i,Yr,Z=>t(133,ge=Z));let Ql;function Zl(){Do({isAudioDisabled:gn,audioDisabledHintCallback:En,isAudioAvailable:le,audioIsNotExistHintCallback:an})&&Bi()}let Xl=bt?ie:sn?Ni:jt,Mo,Qr,gr,Sn=[],Nn=[];function Tt(Z){i.$$.not_equal(Gt.timeline,Z)&&(Gt.timeline=Z,t(10,Gt))}function _s(Z,gt){i.$$.not_equal(Gt[gt.id],Z)&&(Gt[gt.id]=Z,t(10,Gt))}function hs(Z){i.$$.not_equal(Gt.time,Z)&&(Gt.time=Z,t(10,Gt))}function gs(Z){i.$$.not_equal(Gt.episodes,Z)&&(Gt.episodes=Z,t(10,Gt))}let bs=Z=>{t(9,hr=Z.target.clientWidth)};function b(Z,gt){i.$$.not_equal(Gt[gt.id],Z)&&(Gt[gt.id]=Z,t(10,Gt))}function A(Z,gt){i.$$.not_equal(Gt[gt.id],Z)&&(Gt[gt.id]=Z,t(10,Gt))}function re(Z){ve[Z?"unshift":"push"](()=>{on=Z,t(1,on)})}function Me(Z){ve[Z?"unshift":"push"](()=>{Si=Z,t(0,Si)})}function lt(Z){i.$$.not_equal(Gt.interactiveTimeIndicator,Z)&&(Gt.interactiveTimeIndicator=Z,t(10,Gt))}return i.$$set=Z=>{"bottomHidden"in Z&&t(2,Pn=Z.bottomHidden),"bottomNoSmooth"in Z&&t(3,nn=Z.bottomNoSmooth),"showControls"in Z&&t(4,_n=Z.showControls),"playerControlsWrapperRef"in Z&&t(0,Si=Z.playerControlsWrapperRef),"playerControlsRef"in Z&&t(1,on=Z.playerControlsRef),"isAds"in Z&&t(5,xt=Z.isAds),"canRewindLive"in Z&&t(6,qn=Z.canRewindLive),"logoClickable"in Z&&t(71,Wi=Z.logoClickable),"logoHidden"in Z&&t(72,Ki=Z.logoHidden),"logoTargetUrl"in Z&&t(73,xi=Z.logoTargetUrl),"showNextPrevButtons"in Z&&t(74,yi=Z.showNextPrevButtons),"nextButtonActive"in Z&&t(75,Mi=Z.nextButtonActive),"prevButtonActive"in Z&&t(76,rn=Z.prevButtonActive),"isOneVideoPlaylist"in Z&&t(77,sn=Z.isOneVideoPlaylist),"customFullscreenSupported"in Z&&t(78,Ti=Z.customFullscreenSupported),"playNextVideo"in Z&&t(79,Ii=Z.playNextVideo),"playPrevVideo"in Z&&t(80,ci=Z.playPrevVideo),"repeatPlaylist"in Z&&t(81,jt=Z.repeatPlaylist),"toggleFullscreen"in Z&&t(82,Ht=Z.toggleFullscreen),"seekToInteractive"in Z&&t(83,Li=Z.seekToInteractive),"playPrevChapter"in Z&&t(84,Vi=Z.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&1024&&t(121,n=ui.has("EPISODE_BUTTON")),i.$$.dirty[5]&1024&&t(116,o=ui.has("GRAPH_BUTTON")),i.$$.dirty[5]&1024&&t(117,r=ui.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[5]&1024&&t(119,s=ui.has("PLAY_BUTTON")),i.$$.dirty[5]&1024&&t(120,a=ui.has("REPLAY_BUTTON")),i.$$.dirty[5]&1024&&t(118,l=ui.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[0]&32|i.$$.dirty[4]&8|i.$$.dirty[5]&512&&t(85,Zi=xt?Ci==="playing":z===uc.PLAYING),i.$$.dirty[5]&256&&t(86,go=Ft.value!=="off"),i.$$.dirty[0]&32|i.$$.dirty[5]&128&&t(122,u=zi&&!xt||bt),i.$$.dirty[3]&536870912|i.$$.dirty[4]&4096&&t(87,Jn=ho?u&&hi(Ie,"m"):u),i.$$.dirty[0]&32|i.$$.dirty[5]&128&&t(88,fn=!zi||bt||xt),i.$$.dirty[4]&4096&&t(89,Eo=hi(Ie,"m")),i.$$.dirty[0]&32|i.$$.dirty[2]&12288|i.$$.dirty[4]&4096&&t(90,Wo=yi&&hi(Ie,"m")&&!xt&&Mi),i.$$.dirty[0]&32|i.$$.dirty[2]&20480|i.$$.dirty[4]&4096&&t(91,Ko=yi&&hi(Ie,"m")&&!xt&&rn),i.$$.dirty[0]&32|i.$$.dirty[5]&2&&t(92,xo=!xt&&!!ki),i.$$.dirty[4]&4097|i.$$.dirty[5]&12&&t(93,jo=oe!==qm.NOT_AVAILABLE&&!(Ai&&tn===1)&&hi(Ie,"m")&&!bt),i.$$.dirty[4]&4096|i.$$.dirty[5]&64&&t(94,Go=Ui.length>0&&hi(Ie,"m")),i.$$.dirty[5]&48&&t(95,Yo=mi||mn),i.$$.dirty[0]&32|i.$$.dirty[4]&4096&&t(96,Rn=hi(Ie,"s")&&!xt),i.$$.dirty[0]&32|i.$$.dirty[2]&1024&&t(97,Qo=!Ki&&!xt),i.$$.dirty[2]&66560|i.$$.dirty[4]&4096|i.$$.dirty[5]&12&&t(98,Zo=fi.features.fullscreen&&(Ki||hi(Ie,ho?"xs":"s"))&&!(Ai&&tn===1)&&(bt?Ti:!0)),i.$$.dirty[0]&32|i.$$.dirty[5]&2&&t(7,Xo=(!ki||xt)&&!(fi.features.interactiveHideTime&&bt)),i.$$.dirty[4]&2048&&t(14,Q=Te.width>100),i.$$.dirty[4]&4096&&t(99,Lt=Oi&&hi(Ie,"m")),i.$$.dirty[4]&4096&&t(100,Xi=ho?te&&hi(Ie,"s"):te),i.$$.dirty[4]&4096&&t(101,Hi=ho?Fi&&hi(Ie,"s"):Fi),i.$$.dirty[0]&32|i.$$.dirty[2]&134217728|i.$$.dirty[3]&268435456|i.$$.dirty[5]&2&&t(8,ao=!xt&&!ki&&!!(Di!=null&&Di.length)&&Eo&&!n),i.$$.dirty[0]&8192|i.$$.dirty[5]&1&&t(102,Cn=!bi||St),i.$$.dirty[4]&16&&t(103,uo=x?j("tooltip_interactive_graph_on"):j("tooltip_interactive_graph_off")),i.$$.dirty[4]&1073741824&&t(104,Jo=it?j("aria_label_context_menu_close"):j("aria_label_context_menu_open")),i.$$.dirty[3]&512|i.$$.dirty[4]&8&&_r(Cn,z),i.$$.dirty[2]&16777216&&t(107,Kr=go?j("tooltip_subtitles_on"):j("tooltip_subtitles_off")),i.$$.dirty[4]&2&&t(108,xr=K?j("tooltip_fullscreen_on"):j("tooltip_fullscreen_off")),i.$$.dirty[4]&1&&t(109,jr=oe===qm.CONNECTED?j("tooltip_chromecast_on"):j("tooltip_chromecast_off")),i.$$.dirty[3]&1073741824|i.$$.dirty[4]&1073733632&&t(110,Bn={prevButton:gi?gi.right-gi.left:0,replayButton:Bt?Bt.right-Bt.left:0,playButton:ni?ni.right-ni.left:0,nextButton:Kt?Kt.right-Kt.left:0,playPrevChapterButton:At?At.right-At.left:0,seekToInteractiveButton:It?It.right-It.left:0,interactiveGraphButton:zt?zt.right-zt.left:0,liveButton:qt?qt.right-qt.left:0,time:Et?Et.right-Et.left:0,episodes:kt?kt.right-kt.left:0,vkLogo:dt?dt.right-dt.left:0,volume:tt?tt.right-tt.left:0,subtitles:Se?Se.right-Se.left:0,settings:nt?nt.right-nt.left:0,context:xe?xe.right-xe.left:0,fullscreen:$?$.right-$.left:0,chromecast:rt?rt.right-rt.left:0,additionalButtons:X.length?X.reduce(Z=>[...Z,40],[]):[]}),i.$$.dirty[3]&393216&&(!Ao||Ao<Bn.time)&&t(111,Ao=Bn.time),i.$$.dirty[0]&896|i.$$.dirty[3]&393216|i.$$.dirty[4]&4096){let Z=0;ao&&(hi(Ie,"xl")?Z=Bn.time:Z=60);let gt=Bn.prevButton+Bn.playButton+Bn.nextButton+Bn.seekToInteractiveButton+Bn.interactiveGraphButton+Bn.liveButton+Ao+Z;t(112,$o=Xo&&hr>=gt)}i.$$.dirty[3]&524288|i.$$.dirty[4]&4096&&t(15,Gr=$o&&hi(Ie,"m")),i.$$.dirty[0]&1040|i.$$.dirty[4]&3072&&Yl(lo(),zn,Gt,_n),i.$$.dirty[4]&516&&ge&&Ar(ge,ce,yn),i.$$.dirty[4]&260&&po(ps,ce,ee),i.$$.dirty[4]&128&&yl(Qn,Ae,Ql),i.$$.dirty[4]&64&&t(113,Mo=J!==null),i.$$.dirty[2]&8388608|i.$$.dirty[3]&1048576|i.$$.dirty[4]&64&&t(114,Qr=Mo?J:Zi),i.$$.dirty[3]&2097152&&t(115,gr=Qr?j("tooltip_pause"):j("tooltip_play")),i.$$.dirty[0]&2048|i.$$.dirty[2]&1994809344|i.$$.dirty[3]&264247232|i.$$.dirty[4]&56&&(t(11,Sn=[]),Ko&&Sn.push({id:"prevButton",type:"desktop-control-panel-left",weight:To.prevButton,buttonComponent:Fr,buttonComponentProps:{disabled:!rn,type:"prev",click:ci},tooltipText:j("tooltip_previous"),disabled:!rn}),Jn&&Sn.push({id:"replayButton",type:"desktop-control-panel-left",weight:To.replayButton,buttonComponent:rs,buttonComponentProps:{disabled:a,click:Xl},tooltipText:j("tooltip_restart"),disabled:a}),fn&&Sn.push({id:"playButton",type:"desktop-control-panel-left",weight:To.playButton,buttonComponent:ss,buttonComponentProps:{disabled:s,isPlaying:Zi,click:Ni},tooltipText:gr,disabled:s}),Wo&&Sn.push({id:"nextButton",type:"desktop-control-panel-left",weight:To.nextButton,buttonComponent:Fr,buttonComponentProps:{disabled:!Mi,type:"next",click:Ii},tooltipText:j("tooltip_next"),disabled:!Mi}),bt&&(Hi&&Sn.push({id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:To.playPrevChapterButton,buttonComponent:Cl,buttonComponentProps:{disabled:l,click:Vi},tooltipText:j("tooltip_interactive_go_back"),disabledTooltipContent:Io,disabled:l}),Xi&&Sn.push({id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:To.seekToInteractiveButton,buttonComponent:Sl,buttonComponentProps:{disabled:r,click:Li},tooltipText:j("tooltip_interactive_seek"),disabled:r,disabledTooltipContent:j(P)}),Lt&&Sn.push({id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:To.interactiveGraphButton,buttonComponent:Tl,buttonComponentProps:{disabled:o,click:_o.toggle,graphIsOpened:x},tooltipText:uo})),xo&&Sn.push({id:"liveButton",type:"desktop-control-panel-left",weight:To.liveButton,buttonComponent:Il,buttonComponentProps:{isLiveActive:Cn,ariaLabel:bo},tooltipText:bo,disabled:Cn&&z===uc.PLAYING}),t(11,Sn=Sn.sort(cr))),i.$$.dirty[0]&4096|i.$$.dirty[2]&17828352|i.$$.dirty[3]&1073866815|i.$$.dirty[4]&7&&(t(12,Nn=[]),Qo&&Nn.push({id:"vkLogo",type:"desktop-control-panel-right",weight:Uo.vkLogo,buttonComponent:rl,buttonComponentProps:{targetUrl:xi,logoClickable:Wi,click:je},tooltipText:Wr,disabledTooltipContent:"",disabled:!Wi}),Nn.push({id:"volume",type:"desktop-control-panel-right",weight:Uo.volume,buttonComponent:om,buttonComponentProps:{click:Zl}}),Go&&Nn.push({id:"subtitles",type:"desktop-control-panel-right",weight:Uo.subtitles,buttonComponent:W1,buttonComponentProps:{isSubtitlesEnabled:go,click:Un},tooltipText:Kr}),Rn&&Nn.push({id:"settings",type:"desktop-control-panel-right",weight:Uo.settings,buttonComponent:is,buttonComponentProps:{ref$:Yr},tooltipText:ce?void 0:j("tooltip_settings_off")}),fi.features.contextMenuButton&&Nn.push({id:"context",type:"desktop-control-panel-right",weight:Uo.context,buttonComponent:Pm,buttonComponentProps:{click:Ht},className:Yo?"":"out-of-view",tooltipText:Jo}),Zo&&Nn.push({id:"fullscreen",type:"desktop-control-panel-right",weight:Uo.fullscreen,buttonComponent:ol,buttonComponentProps:{isFullscreen:K,click:Ht},tooltipText:xr}),jo&&Nn.push({id:"chromecast",type:"desktop-control-panel-right",weight:Uo.chromecast,buttonComponent:sl,buttonComponentProps:{state:oe,click:pr},tooltipText:jr}),t(12,Nn=[...Nn,...X].sort(cr)))},t(106,Wr=fi.logoType==="vk_video"?j("tooltip_vk_video_logo"):j("tooltip_vk_logo")),De(t(32,{prevButton:c,replayButton:m,playButton:h,nextButton:C,playPrevChapterButton:g,seekToInteractiveButton:S,interactiveGraphButton:k,liveButton:F,time:T,episodes:v,vkLogo:E,volume:H,subtitles:U,settings:W,context:ne,fullscreen:de,chromecast:q}=zn,c,en(t(31,m)),dn(t(30,h)),Mt(t(29,C)),Dt(t(28,g)),Zt(t(27,S)),Xe(t(26,k)),Qt(t(25,F)),ri(t(24,T)),Ze(t(23,v)),pt(t(22,E)),ct(t(21,H)),Ne(t(20,U)),fe(t(19,W)),at(t(18,ne)),Ce(t(17,de)),We(t(16,q)))),[Si,on,Pn,nn,_n,xt,qn,Xo,ao,hr,Gt,Sn,Nn,bi,Q,Gr,q,de,ne,W,U,H,E,v,T,F,k,S,g,C,h,m,c,Wt,In,vi,pn,ln,hn,ji,Gi,Yi,pi,An,Mn,Ln,bn,vn,Vn,yn,Di,un,oi,oo,ro,Wn,di,cn,Qn,Kn,so,Zn,Xn,wn,xn,kn,Qi,zo,Po,_o,Yr,Wi,Ki,xi,yi,Mi,rn,sn,Ti,Ii,ci,jt,Ht,Li,Vi,Zi,go,Jn,fn,Eo,Wo,Ko,xo,jo,Go,Yo,Rn,Qo,Zo,Lt,Xi,Hi,Cn,uo,Jo,bo,Wr,Kr,xr,jr,Bn,Ao,$o,Mo,Qr,gr,o,r,l,s,a,n,u,X,oe,K,ce,z,x,P,J,Ae,ee,ge,Ee,Te,Ie,rt,$,xe,nt,Se,tt,dt,kt,Et,qt,zt,It,At,Kt,ni,Bt,gi,it,St,ki,tn,Ai,mn,mi,Ui,zi,Ft,Ci,ui,Tt,_s,hs,gs,bs,b,A,re,Me,lt]}var cc=class extends N{constructor(e){super(),O(this,e,M3,A3,B,{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,isOneVideoPlaylist:77,customFullscreenSupported:78,playNextVideo:79,playPrevVideo:80,repeatPlaylist:81,toggleFullscreen:82,seekToInteractive:83,playPrevChapter:84},S3,[-1,-1,-1,-1,-1,-1,-1])}},Gm=cc;import{ChromecastState as ip,PlaybackState as np}from"@vkontakte/videoplayer-core";import{noop as Ym}from"@vkontakte/videoplayer-shared";function L3(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 V3(i){let e,t,n,o;return{c(){e=I("img"),f(e,"class","icon svelte-1aqpg2x"),vo(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){w(r,e,s),n||(o=ke(e,"error",i[7]),n=!0)},p(r,s){s&1&&!vo(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&y(e),n=!1,o()}}}function R3(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner svelte-1aqpg2x"></div>',f(e,"class","icon icon-error-stub svelte-1aqpg2x")},m(t,n){w(t,e,n)},p:me,d(t){t&&y(e)}}}function B3(i){let e;function t(r,s){return r[5]?R3:V3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Je()},m(r,s){o.m(r,s),w(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&&y(e),o.d(r)}}}function N3(i){let e,t;return e=new ht({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[B3]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function D3(i,e,t){let n,o,r,{iconUrl:s}=e,{ariaLabel:a}=e,{disabled:l=!1}=e,{testId:u}=e,{onClick:c=Ym}=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===Ym),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 N{constructor(e){super(),O(this,e,D3,N3,B,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},L3)}},Qm=dc;function O3(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=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("g"),n=M("path"),o=M("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"),we(e,u)},m(c,m){w(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),we(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&&y(e),a&&a.d(c)}}}function F3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var mc=class extends N{constructor(e){super(),O(this,e,F3,O3,B,{})}},Zm=mc;import{noop as H3}from"@vkontakte/videoplayer-shared";function q3(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 Xm(i){let e;return{c(){e=I("span"),e.textContent=`${j("mobile_unmute")}`,f(e,"class","text svelte-6gmlbk")},m(t,n){w(t,e,n)},d(t){t&&y(e)}}}function U3(i){let e,t,n,o;var r=i[4];function s(l,u){return{}}r&&(t=Ot(r,s(i)));let a=i[1]&&Xm(i);return{c(){e=I("div"),t&&R(t.$$.fragment),n=Y(),a&&a.c(),f(e,"class","container svelte-6gmlbk"),f(e,"aria-hidden","true"),G(e,"expanded",i[1])},m(l,u){w(l,e,u),t&&L(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,()=>{V(c,1)}),ue()}r?(t=Ot(r,s(l,u)),R(t.$$.fragment),d(t.$$.fragment,1),L(t,e,n)):t=null}l[1]?a||(a=Xm(l),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&G(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&&y(e),t&&V(t),a&&a.d()}}}function z3(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:[U3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function W3(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=H3}=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?j("tooltip_volume"):j("tooltip_volume_muted")),i.$$.dirty&2&&t(4,l=o?dr:Zm)},[s,o,r,a,l,n,u]}var pc=class extends N{constructor(e){super(),O(this,e,W3,z3,B,{muted:5,expanded:1,click:2,ref:0},q3)}},_c=pc;function K3(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=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("path"),n=M("path"),o=M("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"),we(e,u)},m(c,m){w(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),we(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&&y(e),a&&a.d(c)}}}function x3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var hc=class extends N{constructor(e){super(),O(this,e,x3,K3,B,{})}},Jm=hc;function j3(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 G3(i){let e,t;return e=new Jm({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Y3(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 gc=class extends N{constructor(e){super(),O(this,e,Y3,G3,B,{isActive:0},j3)}},$m=gc;import{noop as Q3}from"@vkontakte/videoplayer-shared";function Z3(i){let e,t;return e=new $m({props:{isActive:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function X3(i){let e,t,n;function o(s){i[3](s)}let r={testId:"btn-pip",ariaLabel:j("menu_pip"),click:i[2],$$slots:{default:[Z3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function J3(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=Q3}=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 bc=class extends N{constructor(e){super(),O(this,e,J3,X3,B,{ref:0,isPictureInPictureActive:1,click:2})}},ep=bc;function $3(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 e5(i){let e,t;return e=new Hr({props:{width:"14",height:"14"}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function t5(i){let e,t;return e=new qo({props:{width:"14",height:"14",fill:"#000"}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function i5(i){let e,t,n,o,r,s=[t5,e5],a=[];function l(u,c){return u[1]?0:1}return n=l(i,-1),o=a[n]=s[n](i),{c(){e=I("span"),t=I("span"),o.c(),f(t,"class","toggler svelte-sty291"),G(t,"enabled",i[1]),f(e,"class","gutter svelte-sty291")},m(u,c){w(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)&&G(t,"enabled",u[1])},i(u){r||(d(o),r=!0)},o(u){p(o),r=!1},d(u){u&&y(e),a[n].d()}}}function n5(i){let e,t,n;function o(s){i[4](s)}let r={click:i[3],$$slots:{default:[i5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function o5(i,e,t){let n,{ref:o=void 0}=e,r=ot(),s=r.ui.autoplayNextEnabled$;D(i,s,c=>t(1,n=c));let a=r.actions.internal.setAutoplayNextEnabled;function l(){a(!n)}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 vc=class extends N{constructor(e){super(),O(this,e,o5,n5,B,{ref:0},$3)}},tp=vc;import{debounceFn as r5}from"@vkontakte/videoplayer-shared";function s5(i){be(i,"svelte-s4hj64",".wrapper-bottom.svelte-s4hj64.svelte-s4hj64{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-s4hj64>.svelte-s4hj64{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-s4hj64.svelte-s4hj64{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-s4hj64.svelte-s4hj64{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.svelte-s4hj64.svelte-s4hj64{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.svelte-s4hj64.svelte-s4hj64{position:absolute;top:4px;left:8px}.wrapper-middle-left.svelte-s4hj64.svelte-s4hj64,.wrapper-middle-left-second.svelte-s4hj64.svelte-s4hj64,.wrapper-middle-right.svelte-s4hj64.svelte-s4hj64{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-s4hj64.svelte-s4hj64{left:12px}.wrapper-middle-left-second.svelte-s4hj64.svelte-s4hj64{left:64px}.wrapper-middle-right.svelte-s4hj64.svelte-s4hj64{right:12px}.controls.svelte-s4hj64.svelte-s4hj64{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-s4hj64 > *:not(:first-child){margin-left:8px}.hidden.svelte-s4hj64.svelte-s4hj64{visibility:hidden;opacity:0}.controls-hidden.svelte-s4hj64.svelte-s4hj64{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-s4hj64.svelte-s4hj64{transition:none}.overlay-mobile.svelte-s4hj64.svelte-s4hj64{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-s4hj64.svelte-s4hj64{top:16px}.wrapper-top-left.fullscreen.svelte-s4hj64.svelte-s4hj64{top:16px}.controls-wrapper.fullscreen.svelte-s4hj64.svelte-s4hj64{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-s4hj64.svelte-s4hj64{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-s4hj64.svelte-s4hj64{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-s4hj64.svelte-s4hj64{left:44px}.wrapper-middle-left-second.fullscreen.svelte-s4hj64.svelte-s4hj64{left:96px}.wrapper-middle-right.fullscreen.svelte-s4hj64.svelte-s4hj64{right:44px}.controls-wrapper.fullscreen.svelte-s4hj64.svelte-s4hj64{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 rp(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v=(!i[46]||i[48])&&sp(i),E=wt(i[51]),H=[];for(let P=0;P<E.length;P+=1)H[P]=lp(op(i,E,P));let U=P=>p(H[P],1,1,()=>{H[P]=null}),W=i[58].features.autoplayNext&&i[9]&&ap(i),ne=i[31]&&up(i),de=i[32]&&cp(i),q=i[52]&&fp(i),X=i[34]&&dp(i),oe=i[28]&&mp(i),K=i[27]&&pp(i),ce=i[26]&&_p(i),z=i[29]&&hp(i),x=i[93]&&!i[22]&&gp(i);return{c(){e=I("div"),t=Y(),n=I("div"),v&&v.c(),o=Y(),r=I("div");for(let P=0;P<H.length;P+=1)H[P].c();s=Y(),W&&W.c(),a=Y(),ne&&ne.c(),l=Y(),de&&de.c(),u=Y(),q&&q.c(),c=Y(),X&&X.c(),m=Y(),h=I("div"),oe&&oe.c(),C=Y(),K&&K.c(),g=Y(),ce&&ce.c(),S=Y(),z&&z.c(),k=Y(),x&&x.c(),F=Je(),f(e,"class","overlay-mobile svelte-s4hj64"),G(e,"hidden",!i[37]),f(n,"class","wrapper-top-left svelte-s4hj64"),G(n,"hidden",!i[4]),G(n,"fullscreen",i[47]),f(r,"class","wrapper-top-right svelte-s4hj64"),G(r,"hidden",!i[4]&&!i[20]),G(r,"fullscreen",i[47]),f(h,"class","wrapper-middle svelte-s4hj64"),G(h,"hidden",!i[4]||i[22])},m(P,J){w(P,e,J),w(P,t,J),w(P,n,J),v&&v.m(n,null),w(P,o,J),w(P,r,J);for(let le=0;le<H.length;le+=1)H[le]&&H[le].m(r,null);_(r,s),W&&W.m(r,null),_(r,a),ne&&ne.m(r,null),_(r,l),de&&de.m(r,null),_(r,u),q&&q.m(r,null),_(r,c),X&&X.m(r,null),w(P,m,J),w(P,h,J),oe&&oe.m(h,null),_(h,C),K&&K.m(h,null),_(h,g),ce&&ce.m(h,null),_(h,S),z&&z.m(h,null),w(P,k,J),x&&x.m(P,J),w(P,F,J),T=!0},p(P,J){if((!T||J[1]&64)&&G(e,"hidden",!P[37]),!P[46]||P[48]?v?(v.p(P,J),J[1]&163840&&d(v,1)):(v=sp(P),v.c(),d(v,1),v.m(n,null)):v&&(ae(),p(v,1,1,()=>{v=null}),ue()),(!T||J[0]&16)&&G(n,"hidden",!P[4]),(!T||J[1]&65536)&&G(n,"fullscreen",P[47]),J[1]&1048576){E=wt(P[51]);let le;for(le=0;le<E.length;le+=1){let Ae=op(P,E,le);H[le]?(H[le].p(Ae,J),d(H[le],1)):(H[le]=lp(Ae),H[le].c(),d(H[le],1),H[le].m(r,s))}for(ae(),le=E.length;le<H.length;le+=1)U(le);ue()}P[58].features.autoplayNext&&P[9]?W?(W.p(P,J),J[0]&512&&d(W,1)):(W=ap(P),W.c(),d(W,1),W.m(r,a)):W&&(ae(),p(W,1,1,()=>{W=null}),ue()),P[31]?ne?(ne.p(P,J),J[1]&1&&d(ne,1)):(ne=up(P),ne.c(),d(ne,1),ne.m(r,l)):ne&&(ae(),p(ne,1,1,()=>{ne=null}),ue()),P[32]?de?(de.p(P,J),J[1]&2&&d(de,1)):(de=cp(P),de.c(),d(de,1),de.m(r,u)):de&&(ae(),p(de,1,1,()=>{de=null}),ue()),P[52]?q?(q.p(P,J),J[1]&2097152&&d(q,1)):(q=fp(P),q.c(),d(q,1),q.m(r,c)):q&&(ae(),p(q,1,1,()=>{q=null}),ue()),P[34]?X?(X.p(P,J),J[1]&8&&d(X,1)):(X=dp(P),X.c(),d(X,1),X.m(r,null)):X&&(ae(),p(X,1,1,()=>{X=null}),ue()),(!T||J[0]&1048592)&&G(r,"hidden",!P[4]&&!P[20]),(!T||J[1]&65536)&&G(r,"fullscreen",P[47]),P[28]?oe?(oe.p(P,J),J[0]&268435456&&d(oe,1)):(oe=mp(P),oe.c(),d(oe,1),oe.m(h,C)):oe&&(ae(),p(oe,1,1,()=>{oe=null}),ue()),P[27]?K?(K.p(P,J),J[0]&134217728&&d(K,1)):(K=pp(P),K.c(),d(K,1),K.m(h,g)):K&&(ae(),p(K,1,1,()=>{K=null}),ue()),P[26]?ce?(ce.p(P,J),J[0]&67108864&&d(ce,1)):(ce=_p(P),ce.c(),d(ce,1),ce.m(h,S)):ce&&(ae(),p(ce,1,1,()=>{ce=null}),ue()),P[29]?z?(z.p(P,J),J[0]&536870912&&d(z,1)):(z=hp(P),z.c(),d(z,1),z.m(h,null)):z&&(ae(),p(z,1,1,()=>{z=null}),ue()),(!T||J[0]&4194320)&&G(h,"hidden",!P[4]||P[22]),P[93]&&!P[22]?x?(x.p(P,J),J[0]&4194304&&d(x,1)):(x=gp(P),x.c(),d(x,1),x.m(F.parentNode,F)):x&&(ae(),p(x,1,1,()=>{x=null}),ue())},i(P){if(!T){d(v);for(let J=0;J<E.length;J+=1)d(H[J]);d(W),d(ne),d(de),d(q),d(X),d(oe),d(K),d(ce),d(z),d(x),T=!0}},o(P){p(v),H=H.filter(Boolean);for(let J=0;J<H.length;J+=1)p(H[J]);p(W),p(ne),p(de),p(q),p(X),p(oe),p(K),p(ce),p(z),p(x),T=!1},d(P){P&&(y(e),y(t),y(n),y(o),y(r),y(m),y(h),y(k),y(F)),v&&v.d(),li(H,P),W&&W.d(),ne&&ne.d(),de&&de.d(),q&&q.d(),X&&X.d(),oe&&oe.d(),K&&K.d(),ce&&ce.d(),z&&z.d(),x&&x.d(P)}}}function sp(i){let e,t,n;function o(s){i[132](s)}let r={muted:i[49],expanded:i[46]&&!i[66]&&i[50],click:i[102]};return i[16].volume!==void 0&&(r.ref=i[16].volume),e=new _c({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[1]&262144&&(l.muted=s[49]),a[1]&557056&&(l.expanded=s[46]&&!s[66]&&s[50]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function lp(i){var n;let e,t;return e=new Qm({props:{iconUrl:i[171],ariaLabel:(n=i[172])!=null?n:i[175],testId:i[173],onClick:i[174]}}),{c(){R(e.$$.fragment)},m(o,r){L(e,o,r),t=!0},p(o,r){var a;let s={};r[1]&1048576&&(s.iconUrl=o[171]),r[1]&1048576&&(s.ariaLabel=(a=o[172])!=null?a:o[175]),r[1]&1048576&&(s.testId=o[173]),r[1]&1048576&&(s.onClick=o[174]),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){V(e,o)}}}function ap(i){let e,t,n;function o(s){i[133](s)}let r={};return i[16].autoplayNextToggle!==void 0&&(r.ref=i[16].autoplayNextToggle),e=new tp({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function up(i){let e,t,n;function o(s){i[134](s)}let r={isMobile:!0,click:i[100],state:i[21]};return i[16].chromecast!==void 0&&(r.ref=i[16].chromecast),e=new sl({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&2097152&&(l.state=s[21]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function cp(i){let e,t,n;function o(s){i[135](s)}let r={click:i[101],isPictureInPictureActive:i[19]};return i[16].pip!==void 0&&(r.ref=i[16].pip),e=new ep({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&524288&&(l.isPictureInPictureActive=s[19]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function fp(i){let e,t;return e=new is({props:{ref$:i[104]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function dp(i){let e,t,n;function o(s){i[136](s)}let r={click:i[60],targetUrl:i[8],logoClickable:i[7]};return i[16].vkLogo!==void 0&&(r.ref=i[16].vkLogo),e=new rl({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function mp(i){let e,t,n;function o(s){i[137](s)}let r={click:i[11],type:"prev",isMobile:!0};return i[16].prevButton!==void 0&&(r.ref=i[16].prevButton),e=new Fr({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&2048&&(l.click=s[11]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function pp(i){let e,t,n;function o(s){i[138](s)}let r={disabled:i[44],click:i[59],isMobile:!0,isPlaying:i[24]};return i[16].playButton!==void 0&&(r.ref=i[16].playButton),e=new ss({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[1]&8192&&(l.disabled=s[44]),a[0]&16777216&&(l.isPlaying=s[24]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function _p(i){let e,t,n;function o(s){i[139](s)}let r={disabled:i[43],click:i[103],isMobile:!0};return i[16].replayButton!==void 0&&(r.ref=i[16].replayButton),e=new rs({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[1]&4096&&(l.disabled=s[43]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function hp(i){let e,t,n;function o(s){i[140](s)}let r={click:i[10],type:"next",isMobile:!0};return i[16].nextButton!==void 0&&(r.ref=i[16].nextButton),e=new Fr({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&1024&&(l.click=s[10]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function gp(i){let e,t,n,o,r=i[96]&&l5(i),s=i[39]&&bp(i),a=i[95]&&a5(i);return{c(){r&&r.c(),e=Y(),s&&s.c(),t=Y(),a&&a.c(),n=Je()},m(l,u){r&&r.m(l,u),w(l,e,u),s&&s.m(l,u),w(l,t,u),a&&a.m(l,u),w(l,n,u),o=!0},p(l,u){l[96]&&r.p(l,u),l[39]?s?(s.p(l,u),u[1]&256&&d(s,1)):(s=bp(l),s.c(),d(s,1),s.m(t.parentNode,t)):s&&(ae(),p(s,1,1,()=>{s=null}),ue()),l[95]&&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&&(y(e),y(t),y(n)),r&&r.d(l),s&&s.d(l),a&&a.d(l)}}}function l5(i){let e,t,n,o,r,s;function a(u){i[141](u)}let l={hidden:!i[4],disabled:i[42],click:i[14]};return i[16].playPrevChapterButton!==void 0&&(l.ref=i[16].playPrevChapterButton),t=new Cl({props:l}),ve.push(()=>ze(t,"ref",a)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","wrapper-middle-left svelte-s4hj64"),G(e,"fullscreen",i[47]),G(e,"hidden",!i[4])},m(u,c){w(u,e,c),L(t,e,null),o=!0,r||(s=ke(e,"click",i[105]),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]&65536&&(n=!0,m.ref=u[16].playPrevChapterButton,Ue(()=>n=!1)),t.$set(m),(!o||c[1]&65536)&&G(e,"fullscreen",u[47]),(!o||c[0]&16)&&G(e,"hidden",!u[4])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){p(t.$$.fragment,u),o=!1},d(u){u&&y(e),V(t),r=!1,s()}}}function bp(i){let e,t,n,o,r;function s(l){i[142](l)}let a={hidden:!i[4]&&!i[53],disabled:i[45],click:i[99].toggle,graphIsOpened:i[53]};return i[16].interactiveGraphButton!==void 0&&(a.ref=i[16].interactiveGraphButton),t=new Tl({props:a}),ve.push(()=>ze(t,"ref",s)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class",o=Lf(i[96]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-s4hj64"),G(e,"fullscreen",i[47]),G(e,"hidden",!i[4]&&!i[53])},m(l,u){w(l,e,u),L(t,e,null),r=!0},p(l,u){let c={};u[0]&16|u[1]&4194304&&(c.hidden=!l[4]&&!l[53]),u[1]&16384&&(c.disabled=l[45]),u[1]&4194304&&(c.graphIsOpened=l[53]),!n&&u[0]&65536&&(n=!0,c.ref=l[16].interactiveGraphButton,Ue(()=>n=!1)),t.$set(c),(!r||u[1]&65536)&&G(e,"fullscreen",l[47]),(!r||u[0]&16|u[1]&4194304)&&G(e,"hidden",!l[4]&&!l[53])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){p(t.$$.fragment,l),r=!1},d(l){l&&y(e),V(t)}}}function a5(i){let e,t,n,o,r,s;function a(u){i[143](u)}let l={hidden:!i[4],disabled:i[41],click:i[13]};return i[16].seekToInteractiveButton!==void 0&&(l.ref=i[16].seekToInteractiveButton),t=new Sl({props:l}),ve.push(()=>ze(t,"ref",a)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","wrapper-middle-right svelte-s4hj64"),G(e,"fullscreen",i[47]),G(e,"hidden",!i[4])},m(u,c){w(u,e,c),L(t,e,null),o=!0,r||(s=ke(e,"click",i[106]),r=!0)},p(u,c){let m={};c[0]&16&&(m.hidden=!u[4]),c[1]&1024&&(m.disabled=u[41]),c[0]&8192&&(m.click=u[13]),!n&&c[0]&65536&&(n=!0,m.ref=u[16].seekToInteractiveButton,Ue(()=>n=!1)),t.$set(m),(!o||c[1]&65536)&&G(e,"fullscreen",u[47]),(!o||c[0]&16)&&G(e,"hidden",!u[4])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){p(t.$$.fragment,u),o=!1},d(u){u&&y(e),V(t),r=!1,s()}}}function vp(i){let e,t,n,o,r,s=i[48]&&yp(i),a=i[25]&&wp(i);return o=new al({props:{position:i[54],duration:i[55]}}),{c(){s&&s.c(),e=Y(),a&&a.c(),t=Y(),n=I("div"),R(o.$$.fragment),f(n,"class","wrapper-bottom ads-timeline-mobile svelte-s4hj64"),G(n,"fullscreen",i[47])},m(l,u){s&&s.m(l,u),w(l,e,u),a&&a.m(l,u),w(l,t,u),w(l,n,u),L(o,n,null),r=!0},p(l,u){l[48]?s?(s.p(l,u),u[1]&131072&&d(s,1)):(s=yp(l),s.c(),d(s,1),s.m(e.parentNode,e)):s&&(ae(),p(s,1,1,()=>{s=null}),ue()),l[25]?a?(a.p(l,u),u[0]&33554432&&d(a,1)):(a=wp(l),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(ae(),p(a,1,1,()=>{a=null}),ue());let c={};u[1]&8388608&&(c.position=l[54]),u[1]&16777216&&(c.duration=l[55]),o.$set(c),(!r||u[1]&65536)&&G(n,"fullscreen",l[47])},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&&(y(e),y(t),y(n)),s&&s.d(l),a&&a.d(l),V(o)}}}function yp(i){let e,t,n,o;function r(a){i[144](a)}let s={muted:i[49],expanded:!1,click:i[102]};return i[16].volume!==void 0&&(s.ref=i[16].volume),t=new _c({props:s}),ve.push(()=>ze(t,"ref",r)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","wrapper-top-right svelte-s4hj64"),G(e,"fullscreen",i[47])},m(a,l){w(a,e,l),L(t,e,null),o=!0},p(a,l){let u={};l[1]&262144&&(u.muted=a[49]),!n&&l[0]&65536&&(n=!0,u.ref=a[16].volume,Ue(()=>n=!1)),t.$set(u),(!o||l[1]&65536)&&G(e,"fullscreen",a[47])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&y(e),V(t)}}}function wp(i){let e,t,n,o;function r(a){i[145](a)}let s={disabled:i[44],click:i[59],isMobile:!0,isPlaying:!i[25]};return i[16].playButton!==void 0&&(s.ref=i[16].playButton),t=new ss({props:s}),ve.push(()=>ze(t,"ref",r)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","wrapper-middle svelte-s4hj64")},m(a,l){w(a,e,l),L(t,e,null),o=!0},p(a,l){let u={};l[1]&8192&&(u.disabled=a[44]),l[0]&33554432&&(u.isPlaying=!a[25]),!n&&l[0]&65536&&(n=!0,u.ref=a[16].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&&y(e),V(t)}}}function u5(i){let e,t,n;function o(s){i[146](s)}let r={disabled:i[43],$$slots:{default:[c5]},$$scope:{ctx:i}};return i[16].replayButton!==void 0&&(r.ref=i[16].replayButton),e=new Ji({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[1]&4096&&(l.disabled=s[43]),a[1]&4096|a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function c5(i){let e,t;return e=new rs({props:{disabled:i[43],click:i[92]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&4096&&(r.disabled=n[43]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function kp(i){let e,t,n;function o(s){i[147](s)}let r={$$slots:{default:[f5]},$$scope:{ctx:i}};return i[16].liveButton!==void 0&&(r.ref=i[16].liveButton),e=new Ji({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&32768|a[1]&512|a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function f5(i){let e,t;return e=new Il({props:{isLiveActive:i[15],isMobile:!0,ariaLabel:i[40]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&32768&&(r.isLiveActive=n[15]),o[1]&512&&(r.ariaLabel=n[40]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Cp(i){let e,t,n;function o(s){i[148](s)}let r={showDuration:i[30],position:i[5]?i[54]:i[56],duration:i[5]?i[55]:i[57],isMobile:!0};return i[16].time!==void 0&&(r.ref=i[16].time),e=new il({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&1073741824&&(l.showDuration=s[30]),a[0]&32|a[1]&41943040&&(l.position=s[5]?s[54]:s[56]),a[0]&32|a[1]&83886080&&(l.duration=s[5]?s[55]:s[57]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function Sp(i){let e,t,n,o;return n=new cl({props:{position:i[56],duration:i[57],timeCodes:i[80]}}),{c(){e=I("div"),e.textContent="\xB7",t=Y(),R(n.$$.fragment),f(e,"aria-hidden","true")},m(r,s){w(r,e,s),w(r,t,s),L(n,r,s),o=!0},p(r,s){let a={};s[1]&33554432&&(a.position=r[56]),s[1]&67108864&&(a.duration=r[57]),n.$set(a)},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){p(n.$$.fragment,r),o=!1},d(r){r&&(y(e),y(t)),V(n,r)}}}function d5(i){let e,t,n=i[38]&&Sp(i);return{c(){n&&n.c(),e=Je()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,r){o[38]?n?(n.p(o,r),r[1]&128&&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&&y(e),n&&n.d(o)}}}function Tp(i){let e,t,n;function o(s){i[150](s)}let r={$$slots:{default:[m5]},$$scope:{ctx:i}};return i[16].settings!==void 0&&(r.ref=i[16].settings),e=new Ji({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function m5(i){let e,t;return e=new is({props:{ref$:i[104]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Ip(i){let e,t,n;function o(s){i[151](s)}let r={$$slots:{default:[p5]},$$scope:{ctx:i}};return i[16].fullscreen!==void 0&&(r.ref=i[16].fullscreen),e=new Ji({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&4096|a[1]&65536|a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function p5(i){let e,t;return e=new ol({props:{click:i[12],isFullscreen:i[47]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4096&&(r.click=n[12]),o[1]&65536&&(r.isFullscreen=n[47]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function _5(i){let e,t,n;function o(s){i[155](s)}let r={};return i[16].interactiveTimeIndicator!==void 0&&(r.ref=i[16].interactiveTimeIndicator),e=new wl({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function h5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v=!i[5]&&rp(i),E=i[5]&&i[23]!=="inactive"&&vp(i),H=i[93]&&u5(i),U=!i[5]&&i[18]&&kp(i),W=i[36]&&Cp(i);function ne(z){i[149](z)}let de={className:"w-max",disabled:!i[38],$$slots:{default:[d5]},$$scope:{ctx:i}};i[16].episodes!==void 0&&(de.ref=i[16].episodes),u=new Ji({props:de}),ve.push(()=>ze(u,"ref",ne));let q=i[33]&&Tp(i),X=i[35]&&Ip(i);function oe(z){i[153](z)}let K={isAds:i[5],canRewindLive:i[6],isRewindableLive:i[17]};i[16].timeline!==void 0&&(K.ref=i[16].timeline),g=new ul({props:K}),ve.push(()=>ze(g,"ref",oe));let ce=i[97]&&_5(i);return{c(){v&&v.c(),e=Y(),E&&E.c(),t=Y(),n=I("div"),o=I("div"),r=I("div"),H&&H.c(),s=Y(),U&&U.c(),a=Y(),W&&W.c(),l=Y(),R(u.$$.fragment),m=Y(),q&&q.c(),h=Y(),X&&X.c(),C=Y(),R(g.$$.fragment),k=Y(),ce&&ce.c(),F=Je(),f(r,"class","controls svelte-s4hj64"),G(r,"mobile",!0),f(o,"class","controls-wrapper svelte-s4hj64"),G(o,"fullscreen",i[47]),f(n,"class","wrapper-bottom svelte-s4hj64"),G(n,"hidden",i[2]),G(n,"controls-hidden",!i[4]),G(n,"no-smooth",i[3]),G(n,"mobile",!0)},m(z,x){v&&v.m(z,x),w(z,e,x),E&&E.m(z,x),w(z,t,x),w(z,n,x),_(n,o),_(o,r),H&&H.m(r,null),_(r,s),U&&U.m(r,null),_(r,a),W&&W.m(r,null),_(r,l),L(u,r,null),_(r,m),q&&q.m(r,null),_(r,h),X&&X.m(r,null),i[152](r),_(o,C),L(g,o,null),i[154](n),w(z,k,x),ce&&ce.m(z,x),w(z,F,x),T=!0},p(z,x){z[5]?v&&(ae(),p(v,1,1,()=>{v=null}),ue()):v?(v.p(z,x),x[0]&32&&d(v,1)):(v=rp(z),v.c(),d(v,1),v.m(e.parentNode,e)),z[5]&&z[23]!=="inactive"?E?(E.p(z,x),x[0]&8388640&&d(E,1)):(E=vp(z),E.c(),d(E,1),E.m(t.parentNode,t)):E&&(ae(),p(E,1,1,()=>{E=null}),ue()),z[93]&&H.p(z,x),!z[5]&&z[18]?U?(U.p(z,x),x[0]&262176&&d(U,1)):(U=kp(z),U.c(),d(U,1),U.m(r,a)):U&&(ae(),p(U,1,1,()=>{U=null}),ue()),z[36]?W?(W.p(z,x),x[1]&32&&d(W,1)):(W=Cp(z),W.c(),d(W,1),W.m(r,l)):W&&(ae(),p(W,1,1,()=>{W=null}),ue());let P={};x[1]&128&&(P.disabled=!z[38]),x[1]&100663424|x[5]&8388608&&(P.$$scope={dirty:x,ctx:z}),!c&&x[0]&65536&&(c=!0,P.ref=z[16].episodes,Ue(()=>c=!1)),u.$set(P),z[33]?q?(q.p(z,x),x[1]&4&&d(q,1)):(q=Tp(z),q.c(),d(q,1),q.m(r,h)):q&&(ae(),p(q,1,1,()=>{q=null}),ue()),z[35]?X?(X.p(z,x),x[1]&16&&d(X,1)):(X=Ip(z),X.c(),d(X,1),X.m(r,null)):X&&(ae(),p(X,1,1,()=>{X=null}),ue());let J={};x[0]&32&&(J.isAds=z[5]),x[0]&64&&(J.canRewindLive=z[6]),x[0]&131072&&(J.isRewindableLive=z[17]),!S&&x[0]&65536&&(S=!0,J.ref=z[16].timeline,Ue(()=>S=!1)),g.$set(J),(!T||x[1]&65536)&&G(o,"fullscreen",z[47]),(!T||x[0]&4)&&G(n,"hidden",z[2]),(!T||x[0]&16)&&G(n,"controls-hidden",!z[4]),(!T||x[0]&8)&&G(n,"no-smooth",z[3]),z[97]&&ce.p(z,x)},i(z){T||(d(v),d(E),d(H),d(U),d(W),d(u.$$.fragment,z),d(q),d(X),d(g.$$.fragment,z),d(ce),T=!0)},o(z){p(v),p(E),p(H),p(U),p(W),p(u.$$.fragment,z),p(q),p(X),p(g.$$.fragment,z),p(ce),T=!1},d(z){z&&(y(e),y(t),y(n),y(k),y(F)),v&&v.d(z),E&&E.d(z),H&&H.d(),U&&U.d(),W&&W.d(),V(u),q&&q.d(),X&&X.d(),i[152](null),V(g),i[154](null),ce&&ce.d(z)}}}function g5(i,e,t){var Qi,Oi;let n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,de,q,X,oe,K,ce,z,x,P,J,le,Ae,ee,ge,Ee,Te,Ie,{bottomHidden:rt}=e,{bottomNoSmooth:Pe}=e,{showControls:We}=e,{playerControlsWrapperRef:$=void 0}=e,{playerControlsRef:_e=void 0}=e,{isAds:Ce=!1}=e,{canRewindLive:xe}=e,{logoClickable:st}=e,{logoHidden:at}=e,{logoTargetUrl:nt=""}=e,{showNextPrevButtons:$e}=e,{nextButtonActive:fe}=e,{prevButtonActive:Se}=e,{isOneVideoPlaylist:et=!1}=e,{customFullscreenSupported:Ne=!0}=e,{playNextVideo:tt}=e,{playPrevVideo:Fe}=e,{repeatPlaylist:ct}=e,{toggleFullscreen:dt}=e,{seekToInteractive:he}=e,{playPrevChapter:pt}=e,{onDisabledPlayPrevChapterClick:kt}=e,{onDisabledSeekToInteractiveClick:Ct}=e,Ze=ot(),Et=On(),Vt=Yt(),ri=Ze.actions.internal.toggleMuted,qt=Ze.actions.internal.togglePlay,Ut=Ze.actions.internal.pause,Qt=(Qi=Ze.callbacks)==null?void 0:Qi.onAudioDoesNotExistHint,zt=(Oi=Ze.callbacks)==null?void 0:Oi.onAudioDisabledHint,Ke=Ze.playerPhase;D(i,Ke,te=>t(128,de=te));let Xe=Ze.state.duration$;D(i,Xe,te=>t(57,Ie=te));let It=Ze.state.positionWithScrubbing$;D(i,It,te=>t(56,Te=te));let pe=Ze.state.playbackState$;D(i,pe,te=>t(122,C=te));let Zt=Ze.state.isAudioAvailable$;D(i,Zt,te=>t(46,g=te));let At=Ze.state.isAudioDisabled,ii=Ze.state.isEnded$;D(i,ii,te=>t(129,X=te));let Dt=Ze.state.isLive$;D(i,Dt,te=>t(18,E=te));let Kt=Ze.state.muted$;D(i,Kt,te=>t(49,P=te));let si=Ze.state.isActiveLive$;D(i,si,te=>t(126,T=te));let Mt=Ze.state.isRewindableLive$;D(i,Mt,te=>t(17,v=te));let ni=Ze.ui.scrubbingInProgress;D(i,ni,te=>t(22,q=te));let Xt=Ze.ui.mobileNotReportControlHidden$;D(i,Xt,te=>t(20,W=te));let dn=Ze.ui.isPictureInPictureActive$;D(i,dn,te=>t(19,U=te));let Bt=Ze.ui.pictureInPictureType$;D(i,Bt,te=>t(127,H=te));let qi=Ze.ui.mobileUnmuteButtonExpanded;D(i,qi,te=>t(50,J=te));let en=Ze.ui.mobileUnmuteButtonVisible;D(i,en,te=>t(48,x=te));let gi=Ze.ui.settingsMenuVisible;D(i,gi,te=>t(120,m=te));let wi=Ze.ui.settingsMenuOpenedByKeyboard;D(i,wi,te=>t(119,c=te));let De=Ze.ui.controls,it=Ze.actions.internal.getVideoEpisodes(),St=Ze.webApi.pictureInPictureApi,bi=Ze.state.chromecastState$;D(i,bi,te=>t(21,ne=te));let ki=Ze.state.crashed$;D(i,ki,te=>t(52,Ae=te));let tn=De.disabledControls$;D(i,tn,te=>t(130,K=te));let Ai=Ze.ui.startedByKeyboard$;D(i,Ai,te=>t(118,u=te));let mn=Ze.ui.currentGridType$;D(i,mn,te=>t(125,F=te));let mi=Ze.ads.duration;D(i,mi,te=>t(55,Ee=te));let Ui=Ze.ads.position;D(i,Ui,te=>t(54,ge=te));let zi=Ze.ads.playbackState;D(i,zi,te=>t(23,oe=te));let Ft=Ze.ui.isFullscreen;D(i,Ft,te=>t(47,z=te));let Ci=Ze.ui.playerSize;D(i,Ci,te=>t(124,k=te));let ui=Ze.ui.additionalButtonsDeprecated$;D(i,ui,te=>t(51,le=te));let Wt=Ze.actions.internal.getVideoElement,In=Ze.actions.internal.replayInteractive,vi=Ze.state.isInteractive,pn=Ze.state.isInteractiveTime$;D(i,pn,te=>t(123,S=te));let Pn=Ze.state.showInteractiveGraph,nn=Ze.state.showSeekToInteractive,_n=Ze.state.showPlayPrevChapter,Si=Ze.state.showInteractiveTimeIndicator,on=Et.seekToInteractiveDisabledTooltip$;D(i,on,te=>t(131,ce=te));let xt=Et.graphIsOpened$;D(i,xt,te=>t(53,ee=te));let qn,Wi,Ki,xi,yi,Mi,rn,sn,Ti,Ii,ci,jt,Ht,Li,Vi,ln,ut,Ri,fi,Bi,Ni,je={},Un=r5(vl,260),an=()=>Ze.actions.internal.toggleChromecast();function En(){Do({isAudioDisabled:At,audioDisabledHintCallback:zt,isAudioAvailable:g,audioIsNotExistHintCallback:Qt})&&ri()}function hn(){return mt(this,null,function*(){St!=null&&St.isActive()?yield St==null?void 0:St.remove():yield St==null?void 0:St.request()})}function ji(){!At&&g&&en.set(!1),En()}let Gi=et?qt:ct,Yi="",gn=(te,Fi)=>{if(!te){t(40,Yi=j("tooltip_live"));return}Fi===np.PAUSED&&t(40,Yi=j("tooltip_play"))},pi,An=Oe();D(i,An,te=>t(121,h=te));let Mn=()=>{l&&kt(qn)},Ln=()=>{r&&Ct(Wi)};function bn(te){i.$$.not_equal(je.volume,te)&&(je.volume=te,t(16,je))}function vn(te){i.$$.not_equal(je.autoplayNextToggle,te)&&(je.autoplayNextToggle=te,t(16,je))}function Vn(te){i.$$.not_equal(je.chromecast,te)&&(je.chromecast=te,t(16,je))}function yn(te){i.$$.not_equal(je.pip,te)&&(je.pip=te,t(16,je))}function zn(te){i.$$.not_equal(je.vkLogo,te)&&(je.vkLogo=te,t(16,je))}function Di(te){i.$$.not_equal(je.prevButton,te)&&(je.prevButton=te,t(16,je))}function un(te){i.$$.not_equal(je.playButton,te)&&(je.playButton=te,t(16,je))}function oi(te){i.$$.not_equal(je.replayButton,te)&&(je.replayButton=te,t(16,je))}function oo(te){i.$$.not_equal(je.nextButton,te)&&(je.nextButton=te,t(16,je))}function ro(te){i.$$.not_equal(je.playPrevChapterButton,te)&&(je.playPrevChapterButton=te,t(16,je))}function Wn(te){i.$$.not_equal(je.interactiveGraphButton,te)&&(je.interactiveGraphButton=te,t(16,je))}function di(te){i.$$.not_equal(je.seekToInteractiveButton,te)&&(je.seekToInteractiveButton=te,t(16,je))}function cn(te){i.$$.not_equal(je.volume,te)&&(je.volume=te,t(16,je))}function Qn(te){i.$$.not_equal(je.playButton,te)&&(je.playButton=te,t(16,je))}function Kn(te){i.$$.not_equal(je.replayButton,te)&&(je.replayButton=te,t(16,je))}function so(te){i.$$.not_equal(je.liveButton,te)&&(je.liveButton=te,t(16,je))}function Zn(te){i.$$.not_equal(je.time,te)&&(je.time=te,t(16,je))}function Xn(te){i.$$.not_equal(je.episodes,te)&&(je.episodes=te,t(16,je))}function wn(te){i.$$.not_equal(je.settings,te)&&(je.settings=te,t(16,je))}function xn(te){i.$$.not_equal(je.fullscreen,te)&&(je.fullscreen=te,t(16,je))}function kn(te){ve[te?"unshift":"push"](()=>{_e=te,t(1,_e)})}function lo(te){i.$$.not_equal(je.timeline,te)&&(je.timeline=te,t(16,je))}function ie(te){ve[te?"unshift":"push"](()=>{$=te,t(0,$)})}function bt(te){i.$$.not_equal(je.interactiveTimeIndicator,te)&&(je.interactiveTimeIndicator=te,t(16,je))}return i.$$set=te=>{"bottomHidden"in te&&t(2,rt=te.bottomHidden),"bottomNoSmooth"in te&&t(3,Pe=te.bottomNoSmooth),"showControls"in te&&t(4,We=te.showControls),"playerControlsWrapperRef"in te&&t(0,$=te.playerControlsWrapperRef),"playerControlsRef"in te&&t(1,_e=te.playerControlsRef),"isAds"in te&&t(5,Ce=te.isAds),"canRewindLive"in te&&t(6,xe=te.canRewindLive),"logoClickable"in te&&t(7,st=te.logoClickable),"logoHidden"in te&&t(107,at=te.logoHidden),"logoTargetUrl"in te&&t(8,nt=te.logoTargetUrl),"showNextPrevButtons"in te&&t(9,$e=te.showNextPrevButtons),"nextButtonActive"in te&&t(108,fe=te.nextButtonActive),"prevButtonActive"in te&&t(109,Se=te.prevButtonActive),"isOneVideoPlaylist"in te&&t(110,et=te.isOneVideoPlaylist),"customFullscreenSupported"in te&&t(111,Ne=te.customFullscreenSupported),"playNextVideo"in te&&t(10,tt=te.playNextVideo),"playPrevVideo"in te&&t(11,Fe=te.playPrevVideo),"repeatPlaylist"in te&&t(112,ct=te.repeatPlaylist),"toggleFullscreen"in te&&t(12,dt=te.toggleFullscreen),"seekToInteractive"in te&&t(13,he=te.seekToInteractive),"playPrevChapter"in te&&t(14,pt=te.playPrevChapter),"onDisabledPlayPrevChapterClick"in te&&t(113,kt=te.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in te&&t(114,Ct=te.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&128&&(Wi=j(ce)),i.$$.dirty[4]&64&&t(117,n=K.has("EPISODE_BUTTON")),i.$$.dirty[4]&64&&t(45,o=K.has("GRAPH_BUTTON")),i.$$.dirty[4]&64&&t(41,r=K.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[4]&64&&t(44,s=K.has("PLAY_BUTTON")),i.$$.dirty[4]&64&&t(43,a=K.has("REPLAY_BUTTON")),i.$$.dirty[4]&64&&t(42,l=K.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[3]&536870912&&t(24,Ki=C===np.PLAYING),i.$$.dirty[0]&8388608&&t(25,xi=oe==="paused"),i.$$.dirty[0]&32|i.$$.dirty[4]&32&&t(26,yi=X&&!Ce&&!vi),i.$$.dirty[0]&32|i.$$.dirty[4]&32&&t(27,Mi=!X||Ce),i.$$.dirty[0]&544|i.$$.dirty[3]&65536&&t(28,rn=$e&&!Ce&&Se),i.$$.dirty[0]&544|i.$$.dirty[3]&32768&&t(29,sn=$e&&!Ce&&fe),i.$$.dirty[4]&1&&t(115,Ti=k.width>300),i.$$.dirty[4]&1&&t(30,Ii=k.width>400),i.$$.dirty[0]&4194304&&t(116,ci=q),i.$$.dirty[0]&3670016|i.$$.dirty[4]&8&&t(31,jt=ne!==ip.NOT_AVAILABLE&&!(U&&H===1)&&!W&&!vi),i.$$.dirty[0]&3145728|i.$$.dirty[3]&8388608|i.$$.dirty[4]&24){let te=de==="LiveWaitingStart";t(32,Ht=!!St&&ne!==ip.CONNECTED&&!W&&(H===1&&te||!te)&&!ci&&!vi)}i.$$.dirty[3]&8388608|i.$$.dirty[4]&2&&t(33,Li=!ci&&hi(F,"s")),i.$$.dirty[3]&16384|i.$$.dirty[4]&1&&t(34,Vi=!at&&k.width>350),i.$$.dirty[0]&524288|i.$$.dirty[3]&8650752|i.$$.dirty[4]&8&&t(35,ln=Vt.features.fullscreen&&!(U&&H===1)&&(vi?Ne:!0)&&!ci),i.$$.dirty[0]&262176|i.$$.dirty[3]&8388608|i.$$.dirty[4]&1&&t(36,ut=(!E||Ce)&&k.width>260&&!ci&&!(Vt.features.interactiveHideTime&&vi)),i.$$.dirty[0]&16|i.$$.dirty[3]&134217728&&t(37,Ri=m||We),i.$$.dirty[0]&262176|i.$$.dirty[3]&29360128&&t(38,fi=!Ce&&!E&&!!(it!=null&&it.length)&&Ti&&!n&&!ci),i.$$.dirty[0]&131072|i.$$.dirty[4]&4&&t(15,Bi=!v||T),i.$$.dirty[4]&2&&t(39,Ni=Pn&&hi(F,"m")),i.$$.dirty[0]&65552|i.$$.dirty[3]&1073741824|i.$$.dirty[4]&1&&Un(Wt(),De,je,We),i.$$.dirty[0]&32768|i.$$.dirty[3]&536870912&&gn(Bi,C),i.$$.dirty[3]&402653184&&h&&Ar(h,m,wi),i.$$.dirty[3]&201326592&&po(pi,m,c),i.$$.dirty[0]&65536|i.$$.dirty[3]&33554432&&yl(Ai,u,je.playButton)},qn=j(Ze.state.playPrevChapterDisabledTooltip),[$,_e,rt,Pe,We,Ce,xe,st,nt,$e,tt,Fe,dt,he,pt,Bi,je,v,E,U,W,ne,q,oe,Ki,xi,yi,Mi,rn,sn,Ii,jt,Ht,Li,Vi,ln,ut,Ri,fi,Ni,Yi,r,l,a,s,o,g,z,x,P,J,le,Ae,ee,ge,Ee,Te,Ie,Vt,qt,Ut,Ke,Xe,It,pe,Zt,At,ii,Dt,Kt,si,Mt,ni,Xt,dn,Bt,qi,en,gi,wi,it,bi,ki,tn,Ai,mn,mi,Ui,zi,Ft,Ci,ui,In,vi,pn,nn,_n,Si,on,xt,an,hn,ji,Gi,An,Mn,Ln,at,fe,Se,et,Ne,ct,kt,Ct,Ti,ci,n,u,c,m,h,C,S,k,F,T,H,de,X,K,ce,bn,vn,Vn,yn,zn,Di,un,oi,oo,ro,Wn,di,cn,Qn,Kn,so,Zn,Xn,wn,xn,kn,lo,ie,bt]}var yc=class extends N{constructor(e){super(),O(this,e,g5,h5,B,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:7,logoHidden:107,logoTargetUrl:8,showNextPrevButtons:9,nextButtonActive:108,prevButtonActive:109,isOneVideoPlaylist:110,customFullscreenSupported:111,playNextVideo:10,playPrevVideo:11,repeatPlaylist:112,toggleFullscreen:12,seekToInteractive:13,playPrevChapter:14,onDisabledPlayPrevChapterClick:113,onDisabledSeekToInteractiveClick:114},s5,[-1,-1,-1,-1,-1,-1])}},Pp=yc;function Ap(i){let e,t,n,o,r=[v5,b5],s=[];function a(l,u){return l[24]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Je()},m(l,u){s[e].m(l,u),w(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&&y(n),s[e].d(l)}}}function b5(i){let e,t,n,o;function r(l){i[28](l)}function s(l){i[29](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[11],prevButtonActive:i[12],isOneVideoPlaylist:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],seekToInteractive:i[19],playPrevChapter:i[20]};return i[0]!==void 0&&(a.playerControlsWrapperRef=i[0]),i[1]!==void 0&&(a.playerControlsRef=i[1]),e=new Gm({props:a}),ve.push(()=>ze(e,"playerControlsWrapperRef",r)),ve.push(()=>ze(e,"playerControlsRef",s)),{c(){R(e.$$.fragment)},m(l,u){L(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&2048&&(c.nextButtonActive=l[11]),u&4096&&(c.prevButtonActive=l[12]),u&8192&&(c.isOneVideoPlaylist=l[13]),u&16384&&(c.customFullscreenSupported=l[14]),u&32768&&(c.playNextVideo=l[15]),u&65536&&(c.playPrevVideo=l[16]),u&131072&&(c.repeatPlaylist=l[17]),u&262144&&(c.toggleFullscreen=l[18]),u&524288&&(c.seekToInteractive=l[19]),u&1048576&&(c.playPrevChapter=l[20]),!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){V(e,l)}}}function v5(i){let e,t,n,o;function r(l){i[26](l)}function s(l){i[27](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[11],prevButtonActive:i[12],isOneVideoPlaylist:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],seekToInteractive:i[19],playPrevChapter:i[20],onDisabledPlayPrevChapterClick:i[21],onDisabledSeekToInteractiveClick:i[22]};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(){R(e.$$.fragment)},m(l,u){L(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&2048&&(c.nextButtonActive=l[11]),u&4096&&(c.prevButtonActive=l[12]),u&8192&&(c.isOneVideoPlaylist=l[13]),u&16384&&(c.customFullscreenSupported=l[14]),u&32768&&(c.playNextVideo=l[15]),u&65536&&(c.playPrevVideo=l[16]),u&131072&&(c.repeatPlaylist=l[17]),u&262144&&(c.toggleFullscreen=l[18]),u&524288&&(c.seekToInteractive=l[19]),u&1048576&&(c.playPrevChapter=l[20]),u&2097152&&(c.onDisabledPlayPrevChapterClick=l[21]),u&4194304&&(c.onDisabledSeekToInteractiveClick=l[22]),!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){V(e,l)}}}function y5(i){let e,t,n=i[23]&&Ap(i);return{c(){n&&n.c(),e=Je()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,[r]){o[23]?n?(n.p(o,r),r&8388608&&d(n,1)):(n=Ap(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&&y(e),n&&n.d(o)}}}function w5(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:C=""}=e,{showNextPrevButtons:g}=e,{nextButtonActive:S}=e,{prevButtonActive:k}=e,{isOneVideoPlaylist:F=!1}=e,{customFullscreenSupported:T=!0}=e,{playNextVideo:v}=e,{playPrevVideo:E}=e,{repeatPlaylist:H}=e,{toggleFullscreen:U}=e,{seekToInteractive:W}=e,{playPrevChapter:ne}=e,{onDisabledPlayPrevChapterClick:de=Ep}=e,{onDisabledSeekToInteractiveClick:q=Ep}=e,oe=ot().ui.isMobile;D(i,oe,J=>t(24,n=J));let K=!1;Nt(()=>{let J=setTimeout(()=>t(23,K=!0),0);return()=>clearTimeout(J)});function ce(J){a=J,t(0,a)}function z(J){l=J,t(1,l)}function x(J){a=J,t(0,a)}function P(J){l=J,t(1,l)}return i.$$set=J=>{"bottomHidden"in J&&t(2,o=J.bottomHidden),"bottomNoSmooth"in J&&t(3,r=J.bottomNoSmooth),"showControls"in J&&t(4,s=J.showControls),"playerControlsWrapperRef"in J&&t(0,a=J.playerControlsWrapperRef),"playerControlsRef"in J&&t(1,l=J.playerControlsRef),"isAds"in J&&t(5,u=J.isAds),"canRewindLive"in J&&t(6,c=J.canRewindLive),"logoClickable"in J&&t(7,m=J.logoClickable),"logoHidden"in J&&t(8,h=J.logoHidden),"logoTargetUrl"in J&&t(9,C=J.logoTargetUrl),"showNextPrevButtons"in J&&t(10,g=J.showNextPrevButtons),"nextButtonActive"in J&&t(11,S=J.nextButtonActive),"prevButtonActive"in J&&t(12,k=J.prevButtonActive),"isOneVideoPlaylist"in J&&t(13,F=J.isOneVideoPlaylist),"customFullscreenSupported"in J&&t(14,T=J.customFullscreenSupported),"playNextVideo"in J&&t(15,v=J.playNextVideo),"playPrevVideo"in J&&t(16,E=J.playPrevVideo),"repeatPlaylist"in J&&t(17,H=J.repeatPlaylist),"toggleFullscreen"in J&&t(18,U=J.toggleFullscreen),"seekToInteractive"in J&&t(19,W=J.seekToInteractive),"playPrevChapter"in J&&t(20,ne=J.playPrevChapter),"onDisabledPlayPrevChapterClick"in J&&t(21,de=J.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in J&&t(22,q=J.onDisabledSeekToInteractiveClick)},[a,l,o,r,s,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,de,q,K,n,oe,ce,z,x,P]}var wc=class extends N{constructor(e){super(),O(this,e,w5,y5,B,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:7,logoHidden:8,logoTargetUrl:9,showNextPrevButtons:10,nextButtonActive:11,prevButtonActive:12,isOneVideoPlaylist:13,customFullscreenSupported:14,playNextVideo:15,playPrevVideo:16,repeatPlaylist:17,toggleFullscreen:18,seekToInteractive:19,playPrevChapter:20,onDisabledPlayPrevChapterClick:21,onDisabledSeekToInteractiveClick:22})}},Pl=wc;function k5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S=i[2].default,k=Le(S,i,i[1],null),F=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],T={};for(let v=0;v<F.length;v+=1)T=se(T,F[v]);return{c(){e=M("svg"),k&&k.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),s=M("filter"),a=M("feFlood"),l=M("feColorMatrix"),u=M("feOffset"),c=M("feGaussianBlur"),m=M("feColorMatrix"),h=M("feBlend"),C=M("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(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_2260_100684"),f(C,"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"),we(e,T)},m(v,E){w(v,e,E),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,C),g=!0},p(v,[E]){k&&k.p&&(!g||E&2)&&Re(k,S,v,v[1],g?Ve(S,v[1],E,null):Be(v[1]),null),we(e,T=He(F,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},E&1&&v[0]]))},i(v){g||(d(k,v),g=!0)},o(v){p(k,v),g=!1},d(v){v&&y(e),k&&k.d(v)}}}function C5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var kc=class extends N{constructor(e){super(),O(this,e,C5,k5,B,{})}},Mp=kc;function S5(i){let e,t;return e=new Mp({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function T5(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 Cc=class extends N{constructor(e){super(),O(this,e,T5,S5,B,{reversed:1})}},Lp=Cc;function I5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F=i[2].default,T=Le(F,i,i[1],null),v=[{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]],E={};for(let H=0;H<v.length;H+=1)E=se(E,v[H]);return{c(){e=M("svg"),T&&T.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),s=M("clipPath"),a=M("path"),l=M("filter"),u=M("feFlood"),c=M("feColorMatrix"),m=M("feOffset"),h=M("feGaussianBlur"),C=M("feColorMatrix"),g=M("feBlend"),S=M("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(C,"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(S,"in","SourceGraphic"),f(S,"in2","effect1_dropShadow_2260_104204"),f(S,"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"),we(e,E)},m(H,U){w(H,e,U),T&&T.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,C),_(l,g),_(l,S),k=!0},p(H,[U]){T&&T.p&&(!k||U&2)&&Re(T,F,H,H[1],k?Ve(F,H[1],U,null):Be(H[1]),null),we(e,E=He(v,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},U&1&&H[0]]))},i(H){k||(d(T,H),k=!0)},o(H){p(T,H),k=!1},d(H){H&&y(e),T&&T.d(H)}}}function P5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Sc=class extends N{constructor(e){super(),O(this,e,P5,I5,B,{})}},Vp=Sc;function E5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T=i[2].default,v=Le(T,i,i[1],null),E=[{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]],H={};for(let U=0;U<E.length;U+=1)H=se(H,E[U]);return{c(){e=M("svg"),v&&v.c(),t=M("g"),n=M("path"),o=M("path"),r=M("path"),s=M("defs"),a=M("clipPath"),l=M("path"),u=M("filter"),c=M("feFlood"),m=M("feColorMatrix"),h=M("feOffset"),C=M("feGaussianBlur"),g=M("feColorMatrix"),S=M("feBlend"),k=M("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(C,"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(S,"in2","BackgroundImageFix"),f(S,"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"),we(e,H)},m(U,W){w(U,e,W),v&&v.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,C),_(u,g),_(u,S),_(u,k),F=!0},p(U,[W]){v&&v.p&&(!F||W&2)&&Re(v,T,U,U[1],F?Ve(T,U[1],W,null):Be(U[1]),null),we(e,H=He(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},W&1&&U[0]]))},i(U){F||(d(v,U),F=!0)},o(U){p(v,U),F=!1},d(U){U&&y(e),v&&v.d(U)}}}function A5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Tc=class extends N{constructor(e){super(),O(this,e,A5,E5,B,{})}},Rp=Tc;function M5(i){let e,t;return e=new Vp({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function L5(i){let e,t;return e=new Rp({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function V5(i){let e,t,n,o,r=[L5,M5],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=Je()},m(l,u){s[e].m(l,u),w(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&&y(n),s[e].d(l)}}}function R5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Ic=class extends N{constructor(e){super(),O(this,e,R5,V5,B,{isOff:0})}},Pc=Ic;function B5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S=i[2].default,k=Le(S,i,i[1],null),F=[{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]],T={};for(let v=0;v<F.length;v+=1)T=se(T,F[v]);return{c(){e=M("svg"),k&&k.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),s=M("filter"),a=M("feFlood"),l=M("feColorMatrix"),u=M("feOffset"),c=M("feGaussianBlur"),m=M("feColorMatrix"),h=M("feBlend"),C=M("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(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_2260_106627"),f(C,"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"),we(e,T)},m(v,E){w(v,e,E),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,C),g=!0},p(v,[E]){k&&k.p&&(!g||E&2)&&Re(k,S,v,v[1],g?Ve(S,v[1],E,null):Be(v[1]),null),we(e,T=He(F,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},E&1&&v[0]]))},i(v){g||(d(k,v),g=!0)},o(v){p(k,v),g=!1},d(v){v&&y(e),k&&k.d(v)}}}function N5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ec=class extends N{constructor(e){super(),O(this,e,N5,B5,B,{})}},Bp=Ec;function D5(i){let e,t;return e=new Bp({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function O5(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 Ac=class extends N{constructor(e){super(),O(this,e,O5,D5,B,{reversed:1})}},Np=Ac;function F5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S=i[2].default,k=Le(S,i,i[1],null),F=[{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]],T={};for(let v=0;v<F.length;v+=1)T=se(T,F[v]);return{c(){e=M("svg"),k&&k.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),s=M("filter"),a=M("feFlood"),l=M("feColorMatrix"),u=M("feOffset"),c=M("feGaussianBlur"),m=M("feColorMatrix"),h=M("feBlend"),C=M("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(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_2340_106922"),f(C,"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"),we(e,T)},m(v,E){w(v,e,E),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,C),g=!0},p(v,[E]){k&&k.p&&(!g||E&2)&&Re(k,S,v,v[1],g?Ve(S,v[1],E,null):Be(v[1]),null),we(e,T=He(F,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},E&1&&v[0]]))},i(v){g||(d(k,v),g=!0)},o(v){p(k,v),g=!1},d(v){v&&y(e),k&&k.d(v)}}}function H5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Mc=class extends N{constructor(e){super(),O(this,e,H5,F5,B,{})}},Dp=Mc;function q5(i){let e,t;return e=new Dp({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function U5(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 Lc=class extends N{constructor(e){super(),O(this,e,U5,q5,B,{reversed:1})}},Op=Lc;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 Fp(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,C,g,S,k,F=t&&Hp(i),T=i[4]==="PAUSE"&&qp(i),v=i[4]==="PLAY"&&Up(i),E=i[4]==="REPLAY"&&zp(i),H=i[4]==="SUBTITLES_OFF"&&Wp(i),U=i[4]==="SUBTITLES_ON"&&Kp(i),W=u&&xp(i),ne=m&&jp(i),de=i[4]==="MUTE"&&Gp(i),q=i[4]==="VOLUME"&&Yp(i),X=i[5]&&Qp(i);return{c(){e=I("div"),F&&F.c(),n=Y(),T&&T.c(),o=Y(),v&&v.c(),r=Y(),E&&E.c(),s=Y(),H&&H.c(),a=Y(),U&&U.c(),l=Y(),W&&W.c(),c=Y(),ne&&ne.c(),h=Y(),de&&de.c(),C=Y(),q&&q.c(),g=Y(),X&&X.c(),S=Je(),f(e,"class","svelte-1ad3n06")},m(oe,K){w(oe,e,K),F&&F.m(e,null),_(e,n),T&&T.m(e,null),_(e,o),v&&v.m(e,null),_(e,r),E&&E.m(e,null),_(e,s),H&&H.m(e,null),_(e,a),U&&U.m(e,null),_(e,l),W&&W.m(e,null),_(e,c),ne&&ne.m(e,null),_(e,h),de&&de.m(e,null),_(e,C),q&&q.m(e,null),w(oe,g,K),X&&X.m(oe,K),w(oe,S,K),k=!0},p(oe,K){K&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(oe[4])),t?F?(F.p(oe,K),K&16&&d(F,1)):(F=Hp(oe),F.c(),d(F,1),F.m(e,n)):F&&(ae(),p(F,1,1,()=>{F=null}),ue()),oe[4]==="PAUSE"?T?K&16&&d(T,1):(T=qp(oe),T.c(),d(T,1),T.m(e,o)):T&&(ae(),p(T,1,1,()=>{T=null}),ue()),oe[4]==="PLAY"?v?K&16&&d(v,1):(v=Up(oe),v.c(),d(v,1),v.m(e,r)):v&&(ae(),p(v,1,1,()=>{v=null}),ue()),oe[4]==="REPLAY"?E?K&16&&d(E,1):(E=zp(oe),E.c(),d(E,1),E.m(e,s)):E&&(ae(),p(E,1,1,()=>{E=null}),ue()),oe[4]==="SUBTITLES_OFF"?H?K&16&&d(H,1):(H=Wp(oe),H.c(),d(H,1),H.m(e,a)):H&&(ae(),p(H,1,1,()=>{H=null}),ue()),oe[4]==="SUBTITLES_ON"?U?K&16&&d(U,1):(U=Kp(oe),U.c(),d(U,1),U.m(e,l)):U&&(ae(),p(U,1,1,()=>{U=null}),ue()),K&16&&(u=["RATE_DOWN","RATE_UP"].includes(oe[4])),u?W?(W.p(oe,K),K&16&&d(W,1)):(W=xp(oe),W.c(),d(W,1),W.m(e,c)):W&&(ae(),p(W,1,1,()=>{W=null}),ue()),K&16&&(m=["EPISODE_PREV","EPISODE_NEXT"].includes(oe[4])),m?ne?(ne.p(oe,K),K&16&&d(ne,1)):(ne=jp(oe),ne.c(),d(ne,1),ne.m(e,h)):ne&&(ae(),p(ne,1,1,()=>{ne=null}),ue()),oe[4]==="MUTE"?de?K&16&&d(de,1):(de=Gp(oe),de.c(),d(de,1),de.m(e,C)):de&&(ae(),p(de,1,1,()=>{de=null}),ue()),oe[4]==="VOLUME"?q?K&16&&d(q,1):(q=Yp(oe),q.c(),d(q,1),q.m(e,null)):q&&(ae(),p(q,1,1,()=>{q=null}),ue()),oe[5]?X?X.p(oe,K):(X=Qp(oe),X.c(),X.m(S.parentNode,S)):X&&(X.d(1),X=null)},i(oe){k||(d(F),d(T),d(v),d(E),d(H),d(U),d(W),d(ne),d(de),d(q),k=!0)},o(oe){p(F),p(T),p(v),p(E),p(H),p(U),p(W),p(ne),p(de),p(q),k=!1},d(oe){oe&&(y(e),y(g),y(S)),F&&F.d(),T&&T.d(),v&&v.d(),E&&E.d(),H&&H.d(),U&&U.d(),W&&W.d(),ne&&ne.d(),de&&de.d(),q&&q.d(),X&&X.d(oe)}}}function Hp(i){let e,t;return e=new Lp({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function qp(i){let e,t;return e=new Hr({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Up(i){let e,t;return e=new qo({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function zp(i){let e,t;return e=new kl({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Wp(i){let e,t;return e=new Pc({props:{isOff:!0}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Kp(i){let e,t;return e=new Pc({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function xp(i){let e,t;return e=new Np({props:{reversed:i[4]==="RATE_UP"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function jp(i){let e,t;return e=new Op({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Gp(i){let e,t;return e=new dr({props:{volume:0}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Yp(i){let e,t;return e=new dr({props:{volume:1}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Qp(i){let e,t;return{c(){e=I("span"),t=qe(i[5]),f(e,"class","hot-key-helpers-text svelte-1ad3n06")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&32&&Ge(t,n[5])},d(n){n&&y(e)}}}function W5(i){let e,t,n=!i[1]&&i[4]&&Fp(i);return{c(){e=I("div"),n&&n.c(),f(e,"class","hot-key-helpers-container svelte-1ad3n06"),G(e,"hidden",i[1]),G(e,"hot-key-helpers-container--left",i[2]),G(e,"hot-key-helpers-container--right",i[3])},m(o,r){w(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=Fp(o),n.c(),d(n,1),n.m(e,null)):n&&(ae(),p(n,1,1,()=>{n=null}),ue()),(!t||r&2)&&G(e,"hidden",o[1]),(!t||r&4)&&G(e,"hot-key-helpers-container--left",o[2]),(!t||r&8)&&G(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d()}}}function K5(i,e,t){let n,o=me,r=()=>(o(),o=$t(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==null?void 0:n.type)==="BACKWARD_SEEK"),t(3,u=(n==null?void 0:n.type)==="FORWARD_SEEK"),t(4,c=n==null?void 0:n.type),n!=null&&n.t?t(5,m=j(n.t.key,{value:n.t.value||""})):t(5,m=n==null?void 0:n.text))},[s,a,l,u,c,m,n]}var Vc=class extends N{constructor(e){super(),O(this,e,K5,W5,B,{data:0},z5)}},Zp=Vc;function x5(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function j5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Rc=class extends N{constructor(e){super(),O(this,e,j5,x5,B,{})}},Xp=Rc;function G5(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function Y5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Bc=class extends N{constructor(e){super(),O(this,e,Y5,G5,B,{})}},Jp=Bc;function Q5(i){let e,t;return e=new Jp({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Z5(i){let e,t;return e=new Xp({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function X5(i){let e,t,n,o,r=[Z5,Q5],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=Je()},m(l,u){s[e].m(l,u),w(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&&y(n),s[e].d(l)}}}function J5(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 Nc=class extends N{constructor(e){super(),O(this,e,J5,X5,B,{direction:3})}},mr=Nc;function $5(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 e6(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v;return r=new mr({props:{direction:"up"}}),l=new mr({props:{direction:"up"}}),h=new mr({props:{direction:"up"}}),S=new mr({props:{direction:"up"}}),{c(){e=I("div"),t=I("div"),n=I("div"),o=I("div"),R(r.$$.fragment),s=Y(),a=I("div"),R(l.$$.fragment),u=Y(),c=I("div"),m=I("div"),R(h.$$.fragment),C=Y(),g=I("div"),R(S.$$.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=j("aria_label_spherical_control")),G(e,"m-shifted",i[0])},m(E,H){w(E,e,H),_(e,t),_(t,n),_(n,o),L(r,o,null),_(n,s),_(n,a),L(l,a,null),_(t,u),_(t,c),_(c,m),L(h,m,null),_(c,C),_(c,g),L(S,g,null),F=!0,T||(v=[ke(o,"mousedown",i[1]),ke(o,"mouseup",i[5]),ke(o,"mouseleave",i[5]),ke(a,"mousedown",i[3]),ke(a,"mouseup",i[5]),ke(a,"mouseleave",i[5]),ke(m,"mousedown",i[4]),ke(m,"mouseup",i[5]),ke(m,"mouseleave",i[5]),ke(g,"mousedown",i[2]),ke(g,"mouseup",i[5]),ke(g,"mouseleave",i[5]),ke(e,"keydown",i[6]),ke(e,"keyup",i[7])],T=!0)},p(E,[H]){(!F||H&1)&&G(e,"m-shifted",E[0])},i(E){F||(d(r.$$.fragment,E),d(l.$$.fragment,E),d(h.$$.fragment,E),d(S.$$.fragment,E),F=!0)},o(E){p(r.$$.fragment,E),p(l.$$.fragment,E),p(h.$$.fragment,E),p(S.$$.fragment,E),F=!1},d(E){E&&y(e),V(r),V(l),V(h),V(S),T=!1,ft(v)}}}function t6(i,e,t){let{isShifted:n=!1}=e,o=ot(),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=C=>{if(r.has(C.code))switch(C.preventDefault(),C.stopPropagation(),C.code){case"ArrowUp":s();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":l();break}},h=C=>{r.has(C.code)&&(C.preventDefault(),C.stopPropagation(),c())};return i.$$set=C=>{"isShifted"in C&&t(0,n=C.isShifted)},[n,s,a,l,u,c,m,h]}var Dc=class extends N{constructor(e){super(),O(this,e,t6,e6,B,{isShifted:0},$5)}},El=Dc;function i6(i){be(i,"svelte-ovfyp5",".subtitles-container.svelte-ovfyp5.svelte-ovfyp5{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.svelte-ovfyp5.svelte-ovfyp5{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.svelte-ovfyp5.svelte-ovfyp5{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.svelte-ovfyp5.svelte-ovfyp5{bottom:8%}.subtitles-container.auto.svelte-ovfyp5 .subtitles-caption.svelte-ovfyp5{left:24%;right:24%}.caption.svelte-ovfyp5.svelte-ovfyp5{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.svelte-ovfyp5 .caption.svelte-ovfyp5{width:100%}.caption-line.svelte-ovfyp5.svelte-ovfyp5{display:block;text-align:center}.subtitles-container.auto.svelte-ovfyp5 .caption-line.svelte-ovfyp5{text-align:left}.caption-segment.svelte-ovfyp5.svelte-ovfyp5{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function $p(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function e0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function t0(i){let e,t;function n(s,a){return s[7]&&s[8]?r6:s[5]?o6:n6}let o=n(i,-1),r=o(i);return{c(){e=I("div"),t=I("span"),r.c(),f(t,"class","caption svelte-ovfyp5"),f(e,"class","subtitles-caption svelte-ovfyp5"),G(e,"mobile",i[3])},m(s,a){w(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&8&&G(e,"mobile",s[3])},d(s){s&&y(e),r.d()}}}function n6(i){let e,t=wt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=i0($p(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=Je()},m(o,r){for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(o,r);w(o,e,r)},p(o,r){if(r&18){t=wt(o[1]);let s;for(s=0;s<t.length;s+=1){let a=$p(o,t,s);n[s]?n[s].p(a,r):(n[s]=i0(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&&y(e),li(n,o)}}}function o6(i){let e,t,n=wt(i[6]),o=[];for(let r=0;r<n.length;r+=1)o[r]=o0(e0(i,n,r));return{c(){e=I("span"),t=I("span");for(let r=0;r<o.length;r+=1)o[r].c();f(t,"class","caption-segment svelte-ovfyp5"),_i(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,s){w(r,e,s),_(e,t);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(r,s){if(s&68){n=wt(r[6]);let a;for(a=0;a<n.length;a+=1){let l=e0(r,n,a);o[a]?o[a].p(l,s):(o[a]=o0(l),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}s&16&&_i(t,"font-size",r[4]+"px")},d(r){r&&y(e),li(o,r)}}}function r6(i){let e,t,n=j("subtitles_auto_caption")+"",o;return{c(){e=I("span"),t=I("span"),o=qe(n),f(t,"class","caption-segment svelte-ovfyp5"),_i(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,s){w(r,e,s),_(e,t),_(t,o)},p(r,s){s&16&&_i(t,"font-size",r[4]+"px")},d(r){r&&y(e)}}}function i0(i){let e,t,n=i[16]+"",o,r;return{c(){e=I("span"),t=I("span"),o=qe(n),r=Y(),f(t,"class","caption-segment svelte-ovfyp5"),_i(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(s,a){w(s,e,a),_(e,t),_(t,o),_(e,r)},p(s,a){a&2&&n!==(n=s[16]+"")&&Ge(o,n),a&16&&_i(t,"font-size",s[4]+"px")},d(s){s&&y(e)}}}function n0(i){let e=i[16]+"",t;return{c(){t=qe(e)},m(n,o){w(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Ge(t,e)},d(n){n&&y(t)}}}function o0(i){let e,t=(!i[17]||i[17]<=i[2])&&n0(i);return{c(){t&&t.c(),e=Je()},m(n,o){t&&t.m(n,o),w(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=n0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&y(e),t&&t.d(n)}}}function s6(i){let e,t=i[1].length>0&&t0(i);return{c(){e=I("div"),t&&t.c(),f(e,"class","subtitles-container svelte-ovfyp5"),G(e,"shifted",i[0]),G(e,"auto",i[5]&&!i[8])},m(n,o){w(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=t0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&G(e,"shifted",n[0]),o&288&&G(e,"auto",n[5]&&!n[8])},i:me,o:me,d(n){n&&y(e),t&&t.d()}}}function l6(i,e,t){let n,o,{shifted:r}=e,{captions:s}=e,{position:a}=e,{playerSize:l}=e,{isMobile:u=!1}=e,c=ot(),m=Yt(),h=c.state.currentSubtitle$;D(i,h,v=>t(12,n=v));let C=c.state.isAutoSubtitleCaptionVisible$;D(i,C,v=>t(8,o=v));let g,S,k,F,T;return Nt(()=>{T=window.setTimeout(()=>{C.set(!1)},m.autoSubtitlesTimeout)}),$n(()=>{window.clearTimeout(T)}),i.$$set=v=>{"shifted"in v&&t(0,r=v.shifted),"captions"in v&&t(1,s=v.captions),"position"in v&&t(2,a=v.position),"playerSize"in v&&t(11,l=v.playerSize),"isMobile"in v&&t(3,u=v.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048){let v=l.width*.02;t(4,g=v<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:v)}i.$$.dirty&2&&t(5,S=s.some(v=>v.type==="timestamp")),i.$$.dirty&2&&t(6,k=s.reduce((v,{type:E,value:H})=>(E==="timestamp"?v.push({timeAppeared:Number(H),value:""}):v.length===0?v.push({value:String(H)}):v[v.length-1].value=String(H),v),[])),i.$$.dirty&4096&&t(7,F=!!n.isAuto)},[r,s,a,u,g,S,k,F,o,h,C,l,n]}var Oc=class extends N{constructor(e){super(),O(this,e,l6,s6,B,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},i6)}},Al=Oc;function a6(i){be(i,"svelte-1o62kpz",".wrapper.svelte-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.svelte-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.svelte-1o62kpz{width:50px;height:50px}.text.svelte-1o62kpz{margin-top:20px}")}function r0(i){let e,t,n;return{c(){e=I("div"),t=qe("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=qe(i[1]),f(e,"class","text svelte-1o62kpz")},m(o,r){w(o,e,r),_(e,t),_(e,n)},p(o,r){r&2&&Ge(n,o[1])},d(o){o&&y(e)}}}function u6(i){let e,t,n,o,r,s,a=i[1]&&r0(i);return{c(){e=I("div"),t=I("div"),t.innerHTML='<svg class="icon svelte-1o62kpz" 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=Y(),a&&a.c(),f(t,"class","icon_wrapper svelte-1o62kpz"),f(e,"class","wrapper svelte-1o62kpz"),f(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${i[0]||""}')`)},m(l,u){w(l,e,u),_(e,t),_(e,n),a&&a.m(e,null),r||(s=ke(e,"click",i[2]),r=!0)},p(l,[u]){l[1]?a?a.p(l,u):(a=r0(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&&y(e),a&&a.d(),r=!1,s()}}}function c6(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function r(s){Dn.call(this,i,s)}return i.$$set=s=>{"thumbUrl"in s&&t(0,n=s.thumbUrl),"chromecastDeviceName"in s&&t(1,o=s.chromecastDeviceName)},[n,o,r]}var Fc=class extends N{constructor(e){super(),O(this,e,c6,u6,B,{thumbUrl:0,chromecastDeviceName:1},a6)}},Ml=Fc;function f6(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function d6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Hc=class extends N{constructor(e){super(),O(this,e,d6,f6,B,{})}},s0=Hc;function m6(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 p6(i){let e,t,n;return t=new s0({}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","container svelte-13zpvm8")},m(o,r){w(o,e,r),L(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&&y(e),V(t)}}}var qc=class extends N{constructor(e){super(),O(this,e,null,p6,B,{},m6)}},Ll=qc;function _6(i){be(i,"svelte-17wno3",".container.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:cover;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.svelte-17wno3.svelte-17wno3{opacity:0;visibility:hidden}.playButton.svelte-17wno3.svelte-17wno3{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-17wno3.svelte-17wno3{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-17wno3:hover .playButtonBackground.svelte-17wno3{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.svelte-17wno3 svg{transform:scale(2)}")}function h6(i){let e,t,n,o,r,s,a,l,u,c;return r=new qo({}),{c(){e=I("div"),t=I("div"),n=I("div"),o=Y(),R(r.$$.fragment),f(n,"class","playButtonBackground svelte-17wno3"),f(t,"class","playButton svelte-17wno3"),f(t,"tabindex","0"),f(t,"role","button"),f(t,"aria-label",s=j("tooltip_play")),f(e,"class","container svelte-17wno3"),f(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),G(e,"hidden",i[1])},m(m,h){w(m,e,h),_(e,t),_(t,n),_(t,o),L(r,t,null),l=!0,u||(c=[ke(t,"keydown",i[3]),ke(e,"click",vt(function(){Jt(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)&&G(e,"hidden",i[1])},i(m){l||(d(r.$$.fragment,m),l=!0)},o(m){p(r.$$.fragment,m),l=!1},d(m){m&&y(e),V(r),u=!1,ft(c)}}}function g6(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,a=ot().ui.startedByKeyboard$,l=u=>{let c=u.code;["Enter","Space"].includes(c)&&(u.stopPropagation(),u.preventDefault(),a.set(!0),r())};return i.$$set=u=>{"thumbUrl"in u&&t(0,n=u.thumbUrl),"hidden"in u&&t(1,o=u.hidden),"startVideo"in u&&t(2,r=u.startVideo)},[n,o,r,l]}var Uc=class extends N{constructor(e){super(),O(this,e,g6,h6,B,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},_6)}get handlePressKey(){return this.$$.ctx[3]}},Vl=Uc;function b6(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: `),C=qe(h),g=Y(),k=qe(S),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(F,T){w(F,e,T),_(e,t),_(e,n),_(e,o),_(o,r),_(o,a),_(o,l),_(o,c),_(o,m),_(o,C),_(o,g),_(o,k)},p(F,T){T&1&&s!==(s=(F[0].videoCodec||"")+"")&&Ge(a,s),T&1&&u!==(u=F[0].hdr?"(HDR)":"")&&Ge(c,u),T&1&&h!==(h=(F[0].audioCodec||"")+"")&&Ge(C,h),T&1&&S!==(S=F[0].audioLanguage?`(${F[0].audioLanguage})`:"")&&Ge(k,S)},d(F){F&&y(e)}}}function f1(i){let e,t,n,o,r=i[0].viewport+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="Viewport",n=Y(),o=I("span"),s=qe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].viewport+"")&&Ge(s,r)},d(a){a&&y(e)}}}function d1(i){let e,t,n,o,r=i[0].videoSize+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="Video size",n=Y(),o=I("span"),s=qe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].videoSize+"")&&Ge(s,r)},d(a){a&&y(e)}}}function m1(i){let e,t,n,o,r=i[0].cdn+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="CDN host",n=Y(),o=I("span"),s=qe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].cdn+"")&&Ge(s,r)},d(a){a&&y(e)}}}function p1(i){let e,t,n,o,r=i[0].volume+"",s,a;return{c(){e=I("div"),t=I("div"),t.textContent="Volume",n=Y(),o=I("span"),s=qe(r),a=qe(" %"),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(l,u){w(l,e,u),_(e,t),_(e,n),_(e,o),_(o,s),_(o,a)},p(l,u){u&1&&r!==(r=l[0].volume+"")&&Ge(s,r)},d(l){l&&y(e)}}}function _1(i){let e,t,n,o,r=i[0].buffer.toFixed(2)+"",s,a;return{c(){e=I("div"),t=I("div"),t.textContent="Buffer",n=Y(),o=I("span"),s=qe(r),a=qe(" s"),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(l,u){w(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)+"")&&Ge(s,r)},d(l){l&&y(e)}}}function h1(i){let e,t,n,o,r=[{value:i[0].currentVideoSegmentLength,title:"Video:"},{value:i[0].currentAudioSegmentLength,title:"Audio:"}].filter(v1).map(y1).join(" & ")+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="Segment",n=Y(),o=I("span"),s=qe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){w(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(v1).map(y1).join(" & ")+"")&&Ge(s,r)},d(a){a&&y(e)}}}function g1(i){let e,t,n,o,r,s,a=i[0].speed.toFixed(2)+"",l,u,c;return o=new js({props:{values:i[5]}}),{c(){e=I("div"),t=I("div"),t.textContent="Network",n=Y(),R(o.$$.fragment),r=Y(),s=I("span"),l=qe(a),u=qe(" Kbps"),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(m,h){w(m,e,h),_(e,t),_(e,n),L(o,e,null),_(e,r),_(e,s),_(s,l),_(s,u),c=!0},p(m,h){let C={};h&32&&(C.values=m[5]),o.$set(C),(!c||h&1)&&a!==(a=m[0].speed.toFixed(2)+"")&&Ge(l,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){p(o.$$.fragment,m),c=!1},d(m){m&&y(e),V(o)}}}function b1(i){let e,t,n,o,r,s,a=i[0].bitrate.toFixed(2)+"",l,u,c;return o=new js({props:{values:i[6]}}),{c(){e=I("div"),t=I("div"),t.textContent="V bitrate",n=Y(),R(o.$$.fragment),r=Y(),s=I("span"),l=qe(a),u=qe(" Kbps"),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(m,h){w(m,e,h),_(e,t),_(e,n),L(o,e,null),_(e,r),_(e,s),_(s,l),_(s,u),c=!0},p(m,h){let C={};h&64&&(C.values=m[6]),o.$set(C),(!c||h&1)&&a!==(a=m[0].bitrate.toFixed(2)+"")&&Ge(l,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){p(o.$$.fragment,m),c=!1},d(m){m&&y(e),V(o)}}}function Sg(i){let e,t,n,o,r,s,a,l,u=i[0].version+"",c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,de,q,X,oe,K,ce,z,x,P,J,le,Ae,ee,ge,Pe,Te,Ie,rt,Ee,We=i[0].id&&l1(i),$=i[0].vsid&&a1(i),_e=i[0].provider&&u1(i),Ce=(i[0].videoCodec||i[0].audioCodec)&&c1(i),xe=i[0].viewport&&f1(i),st=i[0].videoSize&&d1(i),at=i[0].cdn&&m1(i),nt=i[0].volume&&p1(i),$e=i[0].buffer&&_1(i),fe=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&h1(i),Se=i[0].speed&&g1(i),et=i[0].bitrate&&b1(i);return Ae=new js({props:{values:i[4]}}),{c(){e=I("div"),t=I("button"),t.textContent="[x]",n=Y(),o=I("div"),r=I("div"),s=I("div"),s.textContent="Version",a=Y(),l=I("span"),c=qe(u),m=Y(),We&&We.c(),h=Y(),$&&$.c(),C=Y(),_e&&_e.c(),g=Y(),Ce&&Ce.c(),S=Y(),xe&&xe.c(),k=Y(),st&&st.c(),F=Y(),at&&at.c(),T=Y(),nt&&nt.c(),v=Y(),$e&&$e.c(),E=Y(),fe&&fe.c(),H=Y(),U=I("div"),W=I("div"),W.textContent="Dropped",ne=Y(),de=I("span"),q=qe(i[2]),X=qe(" / "),oe=qe(i[1]),K=qe(" frames"),ce=Y(),Se&&Se.c(),z=Y(),et&&et.c(),x=Y(),P=I("div"),J=I("div"),J.textContent="FPS",le=Y(),R(Ae.$$.fragment),ee=Y(),ge=I("span"),Pe=qe(i[3]),f(t,"class","close svelte-k5ymwy"),f(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),f(s,"class","svelte-k5ymwy"),f(r,"class","svelte-k5ymwy"),f(W,"class","svelte-k5ymwy"),f(U,"class","svelte-k5ymwy"),f(J,"class","svelte-k5ymwy"),f(P,"class","svelte-k5ymwy"),f(o,"class","content svelte-k5ymwy"),f(e,"class","container svelte-k5ymwy"),f(e,"role","region"),f(e,"aria-label",Te=G("aria_label_debug_panel")),j(e,"container-mobile",i[7])},m(Ne,tt){w(Ne,e,tt),_(e,t),_(e,n),_(e,o),_(o,r),_(r,s),_(r,a),_(r,l),_(l,c),_(o,m),We&&We.m(o,null),_(o,h),$&&$.m(o,null),_(o,C),_e&&_e.m(o,null),_(o,g),Ce&&Ce.m(o,null),_(o,S),xe&&xe.m(o,null),_(o,k),st&&st.m(o,null),_(o,F),at&&at.m(o,null),_(o,T),nt&&nt.m(o,null),_(o,v),$e&&$e.m(o,null),_(o,E),fe&&fe.m(o,null),_(o,H),_(o,U),_(U,W),_(U,ne),_(U,de),_(de,q),_(de,X),_(de,oe),_(de,K),_(o,ce),Se&&Se.m(o,null),_(o,z),et&&et.m(o,null),_(o,x),_(o,P),_(P,J),_(P,le),L(Ae,P,null),_(P,ee),_(P,ge),_(ge,Pe),Ie=!0,rt||(Ee=ke(t,"click",vt(i[9])),rt=!0)},p(Ne,[tt]){(!Ie||tt&1)&&u!==(u=Ne[0].version+"")&&Ge(c,u),Ne[0].id?We?We.p(Ne,tt):(We=l1(Ne),We.c(),We.m(o,h)):We&&(We.d(1),We=null),Ne[0].vsid?$?$.p(Ne,tt):($=a1(Ne),$.c(),$.m(o,C)):$&&($.d(1),$=null),Ne[0].provider?_e?_e.p(Ne,tt):(_e=u1(Ne),_e.c(),_e.m(o,g)):_e&&(_e.d(1),_e=null),Ne[0].videoCodec||Ne[0].audioCodec?Ce?Ce.p(Ne,tt):(Ce=c1(Ne),Ce.c(),Ce.m(o,S)):Ce&&(Ce.d(1),Ce=null),Ne[0].viewport?xe?xe.p(Ne,tt):(xe=f1(Ne),xe.c(),xe.m(o,k)):xe&&(xe.d(1),xe=null),Ne[0].videoSize?st?st.p(Ne,tt):(st=d1(Ne),st.c(),st.m(o,F)):st&&(st.d(1),st=null),Ne[0].cdn?at?at.p(Ne,tt):(at=m1(Ne),at.c(),at.m(o,T)):at&&(at.d(1),at=null),Ne[0].volume?nt?nt.p(Ne,tt):(nt=p1(Ne),nt.c(),nt.m(o,v)):nt&&(nt.d(1),nt=null),Ne[0].buffer?$e?$e.p(Ne,tt):($e=_1(Ne),$e.c(),$e.m(o,E)):$e&&($e.d(1),$e=null),Ne[0].currentVideoSegmentLength||Ne[0].currentAudioSegmentLength?fe?fe.p(Ne,tt):(fe=h1(Ne),fe.c(),fe.m(o,H)):fe&&(fe.d(1),fe=null),(!Ie||tt&4)&&Ge(q,Ne[2]),(!Ie||tt&2)&&Ge(oe,Ne[1]),Ne[0].speed?Se?(Se.p(Ne,tt),tt&1&&d(Se,1)):(Se=g1(Ne),Se.c(),d(Se,1),Se.m(o,z)):Se&&(ae(),p(Se,1,1,()=>{Se=null}),ue()),Ne[0].bitrate?et?(et.p(Ne,tt),tt&1&&d(et,1)):(et=b1(Ne),et.c(),d(et,1),et.m(o,x)):et&&(ae(),p(et,1,1,()=>{et=null}),ue());let Fe={};tt&16&&(Fe.values=Ne[4]),Ae.$set(Fe),(!Ie||tt&8)&&Ge(Pe,Ne[3]),(!Ie||tt&128)&&j(e,"container-mobile",Ne[7])},i(Ne){Ie||(d(Se),d(et),d(Ae.$$.fragment,Ne),Ie=!0)},o(Ne){p(Se),p(et),p(Ae.$$.fragment,Ne),Ie=!1},d(Ne){Ne&&y(e),We&&We.d(),$&&$.d(),_e&&_e.d(),Ce&&Ce.d(),xe&&xe.d(),st&&st.d(),at&&at.d(),nt&&nt.d(),$e&&$e.d(),fe&&fe.d(),Se&&Se.d(),et&&et.d(),V(Ae),rt=!1,Ee()}}}var v1=({value:i})=>i,y1=({value:i,title:e})=>`${e} ${((i!=null?i:0)/1e3).toFixed(2)} s`;function Tg(i,e,t){let n,o=ot(),r=o.ui.debugPanelVisible,s=o.ui.isMobile;D(i,s,v=>t(7,n=v));let a=()=>{s1.remove(Jr),r.set(!1)},l=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),c=0,m=0,h=0,C=new Lr(60),g=new Lr(60),S=new Lr(60),k=[],F=[],T=[];return Nt(()=>{s1.set(Jr,"true"),o.actions.internal.startLogging(),u&&(t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,c=u.getVideoPlaybackQuality().totalVideoFrames));let v=window.setInterval(()=>{t(0,l=o.actions.internal.getDebugPanelData())},500),E;return u&&(E=window.setInterval(()=>{if(u){t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames);let H=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=H-c),t(1,c=H),C.push(h),l.speed&&g.push(l.speed),l.bitrate&&S.push(l.bitrate),t(4,k=C.getValuesFromBottom()),t(5,F=g.getValuesFromBottom()),t(6,T=S.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(v),E&&clearInterval(E)}}),[l,c,m,h,k,F,T,n,s,a]}var Ba=class extends N{constructor(e){super(),O(this,e,Tg,Sg,B,{},Cg)}},Gs=Ba;function Ig(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 Pg(i){let e,t,n;return{c(){e=I("div"),f(e,"class","close svelte-1ome55p")},m(o,r){w(o,e,r),t||(n=ke(e,"click",vt(i[0])),t=!0)},p:me,i:me,o:me,d(o){o&&y(e),t=!1,n()}}}function Eg(i){function e(t){Dn.call(this,i,t)}return[e]}var Na=class extends N{constructor(e){super(),O(this,e,Eg,Pg,B,{},Ig)}},w1=Na;import{noop as Ag}from"@vkontakte/videoplayer-shared";function Mg(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 Lg(i){let e,t,n,o,r,s,a;return{c(){e=I("div"),t=I("canvas"),n=Y(),o=M("svg"),r=M("g"),s=M("g"),a=M("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){w(l,e,u),_(e,t),i[2](t),_(e,n),_(e,o),_(o,r),_(r,s),_(s,a)},p:me,i:me,o:me,d(l){l&&y(e),i[2](null)}}}var Vg=5e3;function Rg(i,e,t){let{onTimerEnded:n=Ag}=e,o;Nt(()=>{let s,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let l=Date.now(),u=()=>{let c=(Date.now()-l)/Vg;c<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*c),a.stroke(),s=requestAnimationFrame(u)):n()};return s=requestAnimationFrame(u),()=>{cancelAnimationFrame(s)}});function r(s){ve[s?"unshift":"push"](()=>{o=s,t(0,o)})}return i.$$set=s=>{"onTimerEnded"in s&&t(1,n=s.onTimerEnded)},[o,n,r]}var Da=class extends N{constructor(e){super(),O(this,e,Rg,Lg,B,{onTimerEnded:1},Mg)}},k1=Da;function Bg(i){be(i,"svelte-kisfwc",".overlay.svelte-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.svelte-kisfwc{display:flex;justify-content:space-between}.caption.svelte-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.svelte-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-kisfwc{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-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.svelte-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function C1(i){let e,t;return e=new k1({props:{onTimerEnded:i[2]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.onTimerEnded=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Ng(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H;a=new w1({}),a.$on("click",i[4]);let U=i[3]&&C1(i);return{c(){e=I("div"),t=Y(),n=I("div"),o=I("div"),r=I("div"),r.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",s=Y(),R(a.$$.fragment),l=Y(),u=I("div"),c=I("div"),m=I("div"),h=I("div"),C=Y(),U&&U.c(),S=Y(),k=I("div"),F=I("div"),T=qe(i[0]),f(e,"class","overlay svelte-kisfwc"),f(r,"class","caption svelte-kisfwc"),f(o,"class","top svelte-kisfwc"),f(h,"class","thumb-overlay svelte-kisfwc"),f(m,"class","thumb svelte-kisfwc"),f(m,"style",g=`background-image: url('${i[1]}')`),f(c,"class","column svelte-kisfwc"),f(F,"class","title svelte-kisfwc"),f(k,"class","column svelte-kisfwc"),f(u,"class","row svelte-kisfwc"),f(n,"class","next-video svelte-kisfwc")},m(W,ne){w(W,e,ne),w(W,t,ne),w(W,n,ne),_(n,o),_(o,r),_(o,s),L(a,o,null),_(n,l),_(n,u),_(u,c),_(c,m),_(m,h),_(m,C),U&&U.m(m,null),_(u,S),_(u,k),_(k,F),_(F,T),v=!0,E||(H=ke(u,"click",function(){Jt(i[2])&&i[2].apply(this,arguments)}),E=!0)},p(W,[ne]){i=W,i[3]?U?(U.p(i,ne),ne&8&&d(U,1)):(U=C1(i),U.c(),d(U,1),U.m(m,null)):U&&(ae(),p(U,1,1,()=>{U=null}),ue()),(!v||ne&2&&g!==(g=`background-image: url('${i[1]}')`))&&f(m,"style",g),(!v||ne&1)&&Ge(T,i[0])},i(W){v||(d(a.$$.fragment,W),d(U),v=!0)},o(W){p(a.$$.fragment,W),p(U),v=!1},d(W){W&&(y(e),y(t),y(n)),V(a),U&&U.d(),E=!1,H()}}}function Dg(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:r}=e,s=!0,a=()=>t(3,s=!1);return i.$$set=l=>{"title"in l&&t(0,n=l.title),"thumb"in l&&t(1,o=l.thumb),"playNextVideo"in l&&t(2,r=l.playNextVideo)},[n,o,r,s,a]}var Oa=class extends N{constructor(e){super(),O(this,e,Dg,Ng,B,{title:0,thumb:1,playNextVideo:2},Bg)}},S1=Oa;import{PlaybackState as fr}from"@vkontakte/videoplayer-core";import{checkNever as Fg}from"@vkontakte/videoplayer-shared";import{SeekAction as Tn}from"@vkontakte/videoplayer-statistics";var Fa=(i,e)=>Math.min(+(i+e).toFixed(2),1),Ha=(i,e)=>Math.max(+(i-e).toFixed(2),0),Ys=(i,e,t)=>{let n=Fa(e,t);e<1&&i.actions.internal.setVolume(n)},Qs=(i,e,t)=>{let n=Ha(e,t);e>0&&i.actions.internal.setVolume(n)};var Do=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e==null||e(),!1):t?!0:(n==null||n(),!1);function Hg(i){be(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function qg(i){let e,t,n,o,r,s=i[26].default,a=Le(s,i,i[25],null);return{c(){e=I("div"),a&&a.c(),f(e,"class","keyboard-controls svelte-10kkmxz"),f(e,"tabindex","-1"),f(e,"role","region"),f(e,"aria-label",t=G("aria_label_video_player"))},m(l,u){w(l,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(r=[ke(e,"keyup",i[17]),ke(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&&y(e),a&&a.d(l),i[27](null),o=!1,ft(r)}}}function Ug(i,e,t){var ct,dt;let n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,{$$slots:T={},$$scope:v}=e,{isAds:E}=e,{hideContextMenu:H}=e,{toggleFullscreen:U}=e,{showHotKeyHelpers:W}=e,{showKeyMap:ne}=e,{fakePlayButtonHandler:de}=e,q=ot(),X=Dt(),oe=q.getLogger().createComponentLog("KeyboardControls component"),K=q.state.playbackState$;D(i,K,he=>t(31,o=he));let ce=q.ads.playbackState;D(i,ce,he=>t(30,n=he));let z=q.state.positionExact$;D(i,z,he=>t(41,g=he));let x=q.state.duration$;D(i,x,he=>t(40,C=he));let P=q.state.volume$;D(i,P,he=>t(44,F=he));let J=q.ui.controls.disabledControls$;D(i,J,he=>t(39,h=he));let le=q.state.muted$;D(i,le,he=>t(34,a=he));let Ae=q.state.currentSubtitle$;D(i,Ae,he=>t(33,s=he));let ee=q.state.currentPlaybackRate$;D(i,ee,he=>t(42,S=he));let ge=q.state.availablePlaybackRates$;D(i,ge,he=>t(43,k=he));let Pe=q.ui.contextMenu.openedByHotKey$,Te=q.ui.contextMenu.lastActiveElem$,Ie=q.ui.contextMenu.visible$,rt=q.ui.contextMenu.position$,Ee=q.state.isEnded$;D(i,Ee,he=>t(36,u=he));let We=q.ui.overlayContainer$;D(i,We,he=>t(32,r=he));let $=(ct=q.callbacks)==null?void 0:ct.onAudioDoesNotExistHint,_e=(dt=q.callbacks)==null?void 0:dt.onAudioDisabledHint,Ce=q.state.isAudioAvailable$;D(i,Ce,he=>t(35,l=he));let xe=q.state.isAudioDisabled,st=q.state.isInteractiveTime$;D(i,st,he=>t(38,m=he));let{showInteractiveTimeIndicatorTooltip$:at}=On();D(i,at,he=>t(37,c=he));let nt=0,$e=!0,fe,Se=()=>fe==null?void 0:fe.focus(),et=he=>(he!==$e&&($e=he,nt=0),nt+=1,(X.controls.seekStepKeyboard+X.controls.seekStepKeyboard*nt)/1e3),Ne=he=>{var Wt;let _t=he.target,kt=(Wt=_t==null?void 0:_t.getAttribute("role"))==null?void 0:Wt.includes("menuitem"),Ct=_t.classList.contains("btn"),Ze=he.code;if(Ct&&Ze==="Space")return;let Et=Gf.has(Ze);if(kt&&Et)return;let Vt=!jf.has(Ze);if(he.ctrlKey&&Vt||he.altKey&&Vt||he.metaKey)return;let ri=kt&&Ze==="Escape";Yf.has(Ze)||ri||H();let Ut=o===fr.PLAYING||o===fr.PAUSED,zt=E&&(n==="paused"||n==="playing"),Qt=!zt&&!h.has("TIMELINE");if(Ut||zt)switch(oe({message:`key down, code: ${Ze}`}),Ze){case"KeyJ":case"ArrowLeft":{if(!Qt)break;if(he.ctrlKey||he.altKey){let Ke=q.actions.internal.getPrevEpisode();q.actions.internal.seekToPrevEpisode(Ke),Ke&&W({type:"EPISODE_PREV",text:Ke.text}),he.preventDefault()}else{let Ke=he.shiftKey?et(!1):X.controls.seekStepKeyboard/1e3,Xe=Math.max(g-Ke,0);g>0&&(q.actions.internal.seekTime(Xe,Tn.DOUBLE_TAP),W({type:"BACKWARD_SEEK",text:Ke.toString()}),he.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Qt)break;if(he.ctrlKey||he.altKey){let Ke=q.actions.internal.getNextEpisode();q.actions.internal.seekToNextEpisode(Ke),Ke&&W({type:"EPISODE_NEXT",text:Ke.text}),he.preventDefault()}else{let Ke=he.shiftKey?et(!0):X.controls.seekStepKeyboard/1e3,Xe=Math.min(g+Ke,C);Math.round(g)<Math.round(C)&&(q.actions.internal.seekTime(Xe,Tn.DOUBLE_TAP),W({type:"FORWARD_SEEK",text:Ke.toString()}),he.preventDefault())}break}case"ArrowUp":{if(Do({isAudioDisabled:xe,audioDisabledHintCallback:_e,isAudioAvailable:l,audioIsNotExistHintCallback:$})){let Ke=F,Xe=X.controls.volumeStepKeyboard,It=Ke<=1;if(Ys(q,Ke,Xe),It){let pe=Math.round(Fa(Ke,Xe)*100).toString();W({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:pe}})}}he.preventDefault();break}case"ArrowDown":{if(Do({isAudioDisabled:xe,audioDisabledHintCallback:_e,isAudioAvailable:l,audioIsNotExistHintCallback:$})){let Ke=F,Xe=X.controls.volumeStepKeyboard,It=Ke>=0;if(Qs(q,Ke,Xe),It){let pe=Math.round(Ha(Ke,Xe)*100).toString();W({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:pe}})}}he.preventDefault();break}case"Comma":{if(he.shiftKey){q.actions.internal.decrementPlaybackRate();let Ke=k.find(Xe=>Xe.value===S);W({type:"RATE_DOWN",text:Ke==null?void 0:Ke.displayValue}),he.preventDefault()}else{if(zt||o!==fr.PAUSED)break;let Ke=Math.max(g-X.controls.seekStepFrame/1e3,0);g>0&&(W({type:"BACKWARD_SEEK"}),q.actions.internal.clearDelayedBufferingCheckTimeout(),q.actions.internal.seekTime(Ke,Tn.DOUBLE_TAP),he.preventDefault())}break}case"Period":{if(he.shiftKey){q.actions.internal.incrementPlaybackRate();let Ke=k.find(Xe=>Xe.value===S);W({type:"RATE_UP",text:Ke==null?void 0:Ke.displayValue}),he.preventDefault()}else{if(zt||o!==fr.PAUSED)break;let Ke=Math.min(g+X.controls.seekStepFrame/1e3,C);g<C&&(W({type:"FORWARD_SEEK"}),q.actions.internal.clearDelayedBufferingCheckTimeout(),q.actions.internal.seekTime(Ke,Tn.DOUBLE_TAP),he.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(m&&c&&at.set(!1),de)de();else{q.actions.internal.togglePlay();let Ke="PLAY";o===fr.PAUSED?Ke="PAUSE":u&&(Ke="REPLAY"),W({type:Ke})}he.preventDefault();break;case"KeyM":{Do({isAudioDisabled:xe,audioDisabledHintCallback:_e,isAudioAvailable:l,audioIsNotExistHintCallback:$})&&(W({type:a?"VOLUME":"MUTE"}),q.actions.internal.toggleMuted()),he.preventDefault();break}case"KeyF":U(),he.preventDefault();break;case"KeyC":q.actions.internal.toggleSubtitle(),s.value!=="off"?W({type:"SUBTITLES_ON",text:s==null?void 0:s.displayValue}):W({type:"SUBTITLES_OFF"}),he.preventDefault();break;case"KeyI":q.actions.internal.togglePictureInPicture(),he.preventDefault();break;case"Digit1":case"Numpad1":if(he.shiftKey){let Ke=Jd(r);rt.set(Ke),Te.set(_t),Pe.set(!0),Ie.set(!0),he.preventDefault();break}W(),q.actions.internal.seekToPercent(.1,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit2":case"Numpad2":W(),q.actions.internal.seekToPercent(.2,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit3":case"Numpad3":W(),q.actions.internal.seekToPercent(.3,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit4":case"Numpad4":W(),q.actions.internal.seekToPercent(.4,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit5":case"Numpad5":W(),q.actions.internal.seekToPercent(.5,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit6":case"Numpad6":W(),q.actions.internal.seekToPercent(.6,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit7":case"Numpad7":W(),q.actions.internal.seekToPercent(.7,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit8":case"Numpad8":W(),q.actions.internal.seekToPercent(.8,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit9":case"Numpad9":W(),q.actions.internal.seekToPercent(.9,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit0":case"Numpad0":W(),q.actions.internal.seekToPercent(0,Tn.DOUBLE_TAP),he.preventDefault();break;case"Slash":{he.shiftKey&&X.features.hotKeyMapModal&&(ne(),he.preventDefault());break}case"ShiftLeft":case"ShiftRight":he.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:Fg(Ze);break}},tt=he=>{let _t=he.code;if(he.ctrlKey||he.altKey||he.metaKey)return;let kt=o===fr.PLAYING||o===fr.PAUSED,Ct=E&&(n==="paused"||n==="playing");if(kt||Ct)switch(_t){case"ShiftLeft":case"ShiftRight":nt=0;break}};function Fe(he){ve[he?"unshift":"push"](()=>{fe=he,t(0,fe)})}return i.$$set=he=>{"isAds"in he&&t(18,E=he.isAds),"hideContextMenu"in he&&t(19,H=he.hideContextMenu),"toggleFullscreen"in he&&t(20,U=he.toggleFullscreen),"showHotKeyHelpers"in he&&t(21,W=he.showHotKeyHelpers),"showKeyMap"in he&&t(22,ne=he.showKeyMap),"fakePlayButtonHandler"in he&&t(23,de=he.fakePlayButtonHandler),"$$scope"in he&&t(25,v=he.$$scope)},[fe,K,ce,z,x,P,J,le,Ae,ee,ge,Ee,We,Ce,st,at,Ne,tt,E,H,U,W,ne,de,Se,v,T,Fe]}var qa=class extends N{constructor(e){super(),O(this,e,Ug,qg,B,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},Hg,[-1,-1])}get focus(){return this.$$.ctx[24]}},T1=qa;function zg(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 Wg(i){let e,t,n,o,r,s;return{c(){e=I("div"),t=I("div"),n=Y(),o=I("div"),r=Y(),s=I("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){w(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&&y(e)}}}function Kg(i,e,t){let{style:n=""}=e;return i.$$set=o=>{"style"in o&&t(0,n=o.style)},[n]}var Ua=class extends N{constructor(e){super(),O(this,e,Kg,Wg,B,{style:0},zg)}},Vr=Ua;function xg(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S=i[2].default,k=Le(S,i,i[1],null),F=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],T={};for(let v=0;v<F.length;v+=1)T=se(T,F[v]);return{c(){e=M("svg"),k&&k.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),s=M("filter"),a=M("feFlood"),l=M("feColorMatrix"),u=M("feOffset"),c=M("feGaussianBlur"),m=M("feColorMatrix"),h=M("feBlend"),C=M("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(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_2422_111980"),f(C,"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"),we(e,T)},m(v,E){w(v,e,E),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,C),g=!0},p(v,[E]){k&&k.p&&(!g||E&2)&&Re(k,S,v,v[1],g?Ve(S,v[1],E,null):Be(v[1]),null),we(e,T=He(F,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},E&1&&v[0]]))},i(v){g||(d(k,v),g=!0)},o(v){p(k,v),g=!1},d(v){v&&y(e),k&&k.d(v)}}}function jg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var za=class extends N{constructor(e){super(),O(this,e,jg,xg,B,{})}},I1=za;import{noop as Co}from"@vkontakte/videoplayer-shared";function Gg(i){be(i,"svelte-tk154o",".btn.svelte-tk154o{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center}.w-max.svelte-tk154o{width:100%}.btn--live.svelte-tk154o{padding:10px 4px}.btn-m.svelte-tk154o{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-tk154o{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-tk154o svg{transform:scale(2)}.btn-m--prev.svelte-tk154o,.btn-m--next.svelte-tk154o{position:absolute;width:50px;height:50px}.btn-m--prev.svelte-tk154o{right:calc(100% + 35px)}.btn-m--next.svelte-tk154o{left:calc(100% + 35px)}.btn.svelte-tk154o:disabled{cursor:default;pointer-events:none}.btn.svelte-tk154o:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-tk154o:not(:disabled):hover{opacity:0.8}.pr-0.svelte-tk154o{padding-right:0}.pl-0.svelte-tk154o{padding-left:0}")}function Yg(i){let e,t,n,o,r,s,a,l,u,c,m,h,C=i[14].default,g=Le(C,i,i[13],null);return{c(){var S,k,F,T,v,E;e=I("button"),g&&g.c(),f(e,"class",t="btn "+i[1]+" svelte-tk154o"),f(e,"style",n=i[2]||null),e.disabled=o=(S=i[3])!=null?S:null,f(e,"aria-hidden",r=(k=i[5])!=null?k:null),f(e,"aria-label",s=(F=i[6])!=null?F:null),f(e,"aria-keyshortcuts",a=(T=i[7])!=null?T:null),f(e,"aria-expanded",l=(v=i[8])!=null?v:null),f(e,"data-testid",u=(E=i[4])!=null?E:null),f(e,"tabindex",i[9])},m(S,k){w(S,e,k),g&&g.m(e,null),i[16](e),c=!0,m||(h=[ke(e,"pointerdown",vt(i[15])),ke(e,"click",vt(function(){Jt(i[10]===Co?null:i[10])&&(i[10]===Co?null:i[10]).apply(this,arguments)})),ke(e,"focus",ai(function(){Jt(i[11]===Co?null:i[11])&&(i[11]===Co?null:i[11]).apply(this,arguments)})),ke(e,"blur",ai(function(){Jt(i[12]===Co?null:i[12])&&(i[12]===Co?null:i[12]).apply(this,arguments)}))],m=!0)},p(S,[k]){var F,T,v,E,H,U;i=S,g&&g.p&&(!c||k&8192)&&Re(g,C,i,i[13],c?Ve(C,i[13],k,null):Be(i[13]),null),(!c||k&2&&t!==(t="btn "+i[1]+" svelte-tk154o"))&&f(e,"class",t),(!c||k&4&&n!==(n=i[2]||null))&&f(e,"style",n),(!c||k&8&&o!==(o=(F=i[3])!=null?F:null))&&(e.disabled=o),(!c||k&32&&r!==(r=(T=i[5])!=null?T:null))&&f(e,"aria-hidden",r),(!c||k&64&&s!==(s=(v=i[6])!=null?v:null))&&f(e,"aria-label",s),(!c||k&128&&a!==(a=(E=i[7])!=null?E:null))&&f(e,"aria-keyshortcuts",a),(!c||k&256&&l!==(l=(H=i[8])!=null?H:null))&&f(e,"aria-expanded",l),(!c||k&16&&u!==(u=(U=i[4])!=null?U:null))&&f(e,"data-testid",u),(!c||k&512)&&f(e,"tabindex",i[9])},i(S){c||(d(g,S),c=!0)},o(S){p(g,S),c=!1},d(S){S&&y(e),g&&g.d(S),i[16](null),m=!1,ft(h)}}}function Qg(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:C=void 0}=e,{tabIndex:g=0}=e,{click:S=Co}=e,{focus:k=Co}=e,{blur:F=Co}=e;function T(E){Dn.call(this,i,E)}function v(E){ve[E?"unshift":"push"](()=>{m=E,t(0,m)})}return i.$$set=E=>{"className"in E&&t(1,r=E.className),"style"in E&&t(2,s=E.style),"disabled"in E&&t(3,a=E.disabled),"testId"in E&&t(4,l=E.testId),"ariaHidden"in E&&t(5,u=E.ariaHidden),"ariaLabel"in E&&t(6,c=E.ariaLabel),"ref"in E&&t(0,m=E.ref),"ariaKeyShortCut"in E&&t(7,h=E.ariaKeyShortCut),"ariaExpanded"in E&&t(8,C=E.ariaExpanded),"tabIndex"in E&&t(9,g=E.tabIndex),"click"in E&&t(10,S=E.click),"focus"in E&&t(11,k=E.focus),"blur"in E&&t(12,F=E.blur),"$$scope"in E&&t(13,o=E.$$scope)},[m,r,s,a,l,u,c,h,C,g,S,k,F,o,n,T,v]}var Wa=class extends N{constructor(e){super(),O(this,e,Qg,Yg,B,{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},Gg)}},ht=Wa;function Zg(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 P1(i){let e,t,n,o,r,s=i[2]&&E1(i);return{c(){e=I("div"),t=I("h3"),n=qe(i[3]),o=Y(),s&&s.c(),f(t,"class","modal-title svelte-1witlsj"),f(e,"class","modal-header svelte-1witlsj")},m(a,l){w(a,e,l),_(e,t),_(t,n),_(e,o),s&&s.m(e,null),r=!0},p(a,l){(!r||l&8)&&Ge(n,a[3]),a[2]?s?(s.p(a,l),l&4&&d(s,1)):(s=E1(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&&y(e),s&&s.d()}}}function E1(i){let e,t;return e=new ht({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:G("hotkey_map_modal_close_btn_text"),$$slots:{default:[Xg]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Xg(i){let e,t;return e=new I1({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Jg(i){let e,t,n,o,r,s,a=i[1]&&P1(i),l=i[4].default,u=Le(l,i,i[5],null);return{c(){e=I("div"),t=I("div"),a&&a.c(),n=Y(),o=I("div"),r=I("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){w(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=P1(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)&&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&&y(e),a&&a.d(),u&&u.d(c)}}}function $g(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 Ka=class extends N{constructor(e){super(),O(this,e,$g,Jg,B,{onClose:0,showHeader:1,showCloseCross:2,title:3},Zg)}},A1=Ka;var e2=new Set(["BR"]),xa=i=>{var o;let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let r=t[n],s=r.tagName;e2.has(s)||(o=r.parentElement)==null||o.removeChild(r)}return e.innerHTML};function t2(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 M1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function L1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function V1(i){let e,t,n=xa(i[9])+"",o,r,s=i[10]+"",a,l;return{c(){e=I("li"),t=I("span"),o=Y(),r=I("span"),a=qe(s),l=Y(),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){w(u,e,c),_(e,t),t.innerHTML=n,_(e,o),_(e,r),_(r,a),_(e,l)},p(u,c){c&1&&n!==(n=xa(u[9])+"")&&(t.innerHTML=n),c&1&&s!==(s=u[10]+"")&&Ge(a,s)},d(u){u&&y(e)}}}function R1(i){let e,t,n=i[5]+"",o,r,s,a,l=wt(i[6]),u=[];for(let c=0;c<l.length;c+=1)u[c]=V1(L1(i,l,c));return{c(){e=I("div"),t=I("h5"),o=qe(n),r=Y(),s=I("ul");for(let c=0;c<u.length;c+=1)u[c].c();a=Y(),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){w(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]+"")&&Ge(o,n),m&1){l=wt(c[6]);let h;for(h=0;h<l.length;h+=1){let C=L1(c,l,h);u[h]?u[h].p(C,m):(u[h]=V1(C),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&&y(e),li(u,c)}}}function i2(i){let e,t=wt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=R1(M1(i,t,o));return{c(){e=I("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","hot-key-map svelte-quklnq")},m(o,r){w(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=wt(o[0].groups);let s;for(s=0;s<t.length;s+=1){let a=M1(o,t,s);n[s]?n[s].p(a,r):(n[s]=R1(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&&y(e),li(n,o)}}}function n2(i){let e,t;return e=new A1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[i2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function o2(i,e,t){let n,o=ot(),{data:r,show:s}=o.ui.modals.hotKeyMap;return D(i,r,l=>t(0,n=l)),[n,r,()=>{s.set(!1)}]}var ja=class extends N{constructor(e){super(),O(this,e,o2,n2,B,{},t2)}},B1=ja;import{noop as Ep}from"@vkontakte/videoplayer-shared";var Zs;function Rr(i){return Zs||(Zs=new ResizeObserver(e=>{for(let t of e)t.target.dispatchEvent(new CustomEvent("fd:resize"))})),Zs.observe(i),{destroy(){Zs.unobserve(i)}}}import{ChromecastState as qm,PlaybackState as uc}from"@vkontakte/videoplayer-core";import"@vkontakte/videoplayer-shared";function r2(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 s2(i){let e,t,n=i[1].default,o=Le(n,i,i[0],null);return{c(){e=I("div"),o&&o.c(),f(e,"class","pillow svelte-1oe0j8n")},m(r,s){w(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&&y(e),o&&o.d(r)}}}function l2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var Ga=class extends N{constructor(e){super(),O(this,e,l2,s2,B,{},r2)}},N1=Ga;import{VideoQuality as ts}from"@vkontakte/videoplayer-shared";function a2(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=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("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"),we(e,l)},m(u,c){w(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),we(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&&y(e),s&&s.d(u)}}}function u2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ya=class extends N{constructor(e){super(),O(this,e,u2,a2,B,{})}},D1=Ya;function c2(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=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("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"),we(e,l)},m(u,c){w(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),we(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&&y(e),s&&s.d(u)}}}function f2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Qa=class extends N{constructor(e){super(),O(this,e,f2,c2,B,{})}},O1=Qa;function d2(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function m2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Za=class extends N{constructor(e){super(),O(this,e,m2,d2,B,{})}},F1=Za;function p2(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function _2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Xa=class extends N{constructor(e){super(),O(this,e,_2,p2,B,{})}},Xs=Xa;function h2(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=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("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"),we(e,l)},m(u,c){w(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),we(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&&y(e),s&&s.d(u)}}}function g2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ja=class extends N{constructor(e){super(),O(this,e,g2,h2,B,{})}},Js=Ja;var $s=i=>{switch(i){case ts.Q_720P:return F1;case ts.Q_1080P:return Xs;case ts.Q_1440P:return Js;case ts.Q_2160P:return D1;case ts.Q_4320P:return O1}};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:"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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function v2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var $a=class extends N{constructor(e){super(),O(this,e,v2,b2,B,{})}},H1=$a;function y2(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=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("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"),we(e,l)},m(u,c){w(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),we(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&&y(e),s&&s.d(u)}}}function w2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var eu=class extends N{constructor(e){super(),O(this,e,w2,y2,B,{})}},q1=eu;function k2(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 C2(i){let e,t,n,o,r=i[1]&&U1(i);return n=new q1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=I("div"),r&&r.c(),t=Y(),R(n.$$.fragment),f(e,"class","icon svelte-8t5w85"),f(e,"aria-hidden","true"),j(e,"triple",i[2])},m(s,a){w(s,e,a),r&&r.m(e,null),_(e,t),L(n,e,null),o=!0},p(s,a){s[1]?r?(r.p(s,a),a&2&&d(r,1)):(r=U1(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)&&j(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&&y(e),r&&r.d(),V(n)}}}function S2(i){let e,t;return e=new H1({}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function U1(i){let e,t;return e=new N1({props:{$$slots:{default:[T2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function T2(i){let e,t,n;var o=i[1];function r(s,a){return{}}return o&&(e=Ft(o,r(i))),{c(){e&&R(e.$$.fragment),t=Je()},m(s,a){e&&L(e,s,a),w(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,()=>{V(l,1)}),ue()}o?(e=Ft(o,r(s,a)),R(e.$$.fragment),d(e.$$.fragment,1),L(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&&y(t),e&&V(e,s)}}}function I2(i){let e,t,n,o,r=[S2,C2],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=Je()},m(l,u){s[e].m(l,u),w(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&&y(n),s[e].d(l)}}}function P2(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=$s(r)),i.$$.dirty&2&&t(2,s=!!n&&[Xs,Js].includes(n))},[o,n,s,r]}var tu=class extends N{constructor(e){super(),O(this,e,P2,I2,B,{isMobile:0,currentQuality:3},k2)}},el=tu;function E2(i){be(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function A2(i){let e,t,n;return t=new el({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=I("span"),R(t.$$.fragment),f(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){w(o,e,r),L(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&&y(e),V(t)}}}function M2(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:[A2]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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&8216&&(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){V(e,s)}}}function L2(i,e,t){let n,o,r,{ref$:s}=e,a=ot(),l=a.state.currentQuality$;D(i,l,k=>t(4,r=k));let u=a.ui.settingsMenuVisible;D(i,u,k=>t(1,n=k));let c=a.actions.internal.toggleSettingsMenu,m=a.ui.isMobile;D(i,m,k=>t(3,o=k));let h,C;function g(k){let F=Er(k);c(F)}function S(k){h=k,t(0,h)}return i.$$set=k=>{"ref$"in k&&t(9,s=k.ref$)},i.$$.update=()=>{i.$$.dirty&513&&s&&s.set(h),i.$$.dirty&2&&t(2,C=n?G("tooltip_settings_on"):G("tooltip_settings_off"))},[h,n,C,o,r,l,u,m,g,s,S]}var iu=class extends N{constructor(e){super(),O(this,e,L2,M2,B,{ref$:9},E2)}},is=iu;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:"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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function R2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var nu=class extends N{constructor(e){super(),O(this,e,R2,V2,B,{})}},z1=nu;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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function N2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ou=class extends N{constructor(e){super(),O(this,e,N2,B2,B,{})}},tl=ou;function D2(i){let e,t;return e=new tl({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function O2(i){let e,t;return e=new z1({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function F2(i){let e,t,n,o,r=[O2,D2],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=Je()},m(l,u){s[e].m(l,u),w(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&&y(n),s[e].d(l)}}}function H2(i){let e,t;return e=new ht({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:fo.KeyC,$$slots:{default:[F2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function q2(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?G("tooltip_subtitles_on"):G("tooltip_subtitles_off"))},[n,o,r]}var ru=class extends N{constructor(e){super(),O(this,e,q2,H2,B,{isSubtitlesEnabled:0,click:1})}},W1=ru;function U2(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 K1(i){let e,t;return{c(){e=I("span"),t=qe(i[3]),f(e,"class","duration svelte-19o2urr")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&8&&Ge(t,n[3])},d(n){n&&y(e)}}}function z2(i){let e,t,n,o,r=i[2]&&K1(i);return{c(){e=I("div"),t=I("span"),n=qe(i[4]),o=Y(),r&&r.c(),f(t,"class","current svelte-19o2urr"),f(e,"class","time svelte-19o2urr"),j(e,"mobile",i[1])},m(s,a){w(s,e,a),_(e,t),_(t,n),_(e,o),r&&r.m(e,null),i[7](e)},p(s,[a]){a&16&&Ge(n,s[4]),s[2]?r?r.p(s,a):(r=K1(s),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&j(e,"mobile",s[1])},i:me,o:me,d(s){s&&y(e),r&&r.d(),i[7](null)}}}function W2(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=Fn(o)),i.$$.dirty&64&&t(4,u=Fn(r))},[a,n,s,l,u,o,r,c]}var su=class extends N{constructor(e){super(),O(this,e,W2,z2,B,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},U2)}},il=su;import{noop as Oo}from"@vkontakte/videoplayer-shared";function K2(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 x2(i){let e,t,n,o,r,s;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),r=M("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){w(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&&y(e)}}}function j2(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 lu=class extends N{constructor(e){super(),O(this,e,j2,x2,B,{volume:1,muted:2},K2)}},dr=lu;import{noop as io}from"@vkontakte/videoplayer-shared";import{noop as eb}from"@vkontakte/videoplayer-shared";import{noop as Q2}from"@vkontakte/videoplayer-shared";function G2(i){let e,t,n=i[4].default,o=Le(n,i,i[3],null);return{c(){e=I("div"),o&&o.c(),f(e,"class","overlay")},m(r,s){w(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&&y(e),o&&o.d(r),i[5](null)}}}function Y2(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=ot().ui.overlayContainer$;D(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)};Nt(()=>(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 au=class extends N{constructor(e){super(),O(this,e,Y2,G2,B,{})}},x1=au;function Z2(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 j1(i){let e,t;return e=new x1({props:{$$slots:{default:[X2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function X2(i){let e,t,n,o,r;return{c(){e=I("div"),t=I("div"),n=qe(i[2]),o=Y(),r=I("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]),j(e,"active",i[0])},m(s,a){w(s,e,a),_(e,t),_(t,n),_(e,o),_(e,r),i[23](e)},p(s,a){a[0]&4&&Ge(n,s[2]),a[0]&128&&f(r,"style",s[7]),a[0]&64&&f(e,"style",s[6]),a[0]&1&&j(e,"active",s[0])},d(s){s&&y(e),i[23](null)}}}function J2(i){let e,t,n,o,r,s,a=i[21].default,l=Le(a,i,i[24],null),u=i[2]&&!i[1]&&j1(i);return{c(){e=I("div"),l&&l.c(),t=Y(),u&&u.c(),n=Je(),f(e,"class","tooltip-wrapper svelte-1jbbzcj"),j(e,"full-width",i[3])},m(c,m){w(c,e,m),l&&l.m(e,null),i[22](e),w(c,t,m),u&&u.m(c,m),w(c,n,m),o=!0,r||(s=[ke(e,"mouseenter",i[10]),ke(e,"mousemove",i[10]),ke(e,"mouseleave",i[11]),ke(e,"mousedown",i[11]),ke(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)&&j(e,"full-width",c[3]),c[2]&&!c[1]?u?(u.p(c,m),m[0]&6&&d(u,1)):(u=j1(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&&(y(e),y(t),y(n)),l&&l.d(c),i[22](null),u&&u.d(c),r=!1,ft(s)}}}var So=5;function $2(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:C=void 0}=e,{placement:g="top"}=e,{onVisibilityChange:S=Q2}=e,k,F,T,v=0,E=0,H=0,U=0,W=Dt(),ne=ot(),de=ne.ui.playerSize;D(i,de,Ee=>t(27,o=Ee));let q=ne.ui.overlayContainer$;D(i,q,Ee=>t(26,n=Ee));let X=ne.getLogger().createComponentLog("Tooltip component"),oe=()=>{if(!n||!F||!k)return;t(18,E=So);let Ee=n.getBoundingClientRect(),We=k.getBoundingClientRect(),$=We.width,_e=F.clientWidth,Ce=o.width,xe=($-_e)/2,st=We.left+c-Ee.left,at=st+xe,nt=We.top+m-Ee.top,$e=_e/2-So,fe=at<8,Se=at+_e>Ce-8;fe&&(at=8,$e=st+We.width/2-2.5*So),Se&&(at=Ce-8-_e,$e=We.left-Ee.left+We.width/2-at-So),t(19,H=at),t(20,U=nt),t(17,v=$e)},K=()=>{!n||!F||!k||t(18,E=-So)},ce=()=>{if(!n||!F||!k)return;t(17,v=So);let Ee=n.getBoundingClientRect(),We=k.getBoundingClientRect(),$=We.height,_e=F.clientHeight,Ce=($-_e)/2+_e,xe=We.left+c-Ee.left-F.clientWidth,st=2,at=xe-So;at<8&&(at=8);let $e=We.top+m-Ee.top+Ce,fe=st-Ce/2,Se=st-So;t(19,H=at),t(20,U=$e),t(18,E=fe),t(17,v=Se)},z=()=>{!n||!F||!k||t(17,v=-So)},x=()=>{switch(g){case"top":oe();break;case"bottom":K();break;case"left":ce();break;default:z()}},P=()=>{try{if(!n||!k)return;x(),t(0,u=!0)}catch(Ee){X({message:String(Ee)})}},J=()=>{t(0,u=!1)},le=()=>{F&&(T||(T=window.setTimeout(P,W.controls.hideTimeoutTooltips)),u&&P())},Ae=()=>{J(),window.clearTimeout(T),T=void 0},ee=(Ee,We)=>{let $="";switch(g){case"top":$=`transform: translate(${Ee}px, ${We}px);`;break;case"bottom":$=`transform: translate(${Ee}px, ${We}px); top: auto; bottom: 100%;`;break;case"left":$=`transform: translate(${Ee}px, ${We}px); left: 0; right: auto;`;break;default:$=`transform: translate(${Ee}px, ${We}px);`}return $+=` max-width: ${C===void 0?"auto":`${C}px`};`,$},ge=(Ee,We)=>{let $="";switch(g){case"top":$=`transform: translate(${Ee}px, ${We}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":$=`transform: translate(${Ee}px, ${We}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":$=`transform: translate(${Ee}px, ${We}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:$=`transform: translate(${Ee}px, ${We}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return $},Pe,Te;Nt(x),$n(()=>window.clearTimeout(T));function Ie(Ee){ve[Ee?"unshift":"push"](()=>{k=Ee,t(4,k)})}function rt(Ee){ve[Ee?"unshift":"push"](()=>{F=Ee,t(5,F)})}return i.$$set=Ee=>{"isMobile"in Ee&&t(1,a=Ee.isMobile),"content"in Ee&&t(2,l=Ee.content),"active"in Ee&&t(0,u=Ee.active),"translateX"in Ee&&t(12,c=Ee.translateX),"translateY"in Ee&&t(13,m=Ee.translateY),"isFullWidthWrapper"in Ee&&t(3,h=Ee.isFullWidthWrapper),"maxTooltipWidth"in Ee&&t(14,C=Ee.maxTooltipWidth),"placement"in Ee&&t(15,g=Ee.placement),"onVisibilityChange"in Ee&&t(16,S=Ee.onVisibilityChange),"$$scope"in Ee&&t(24,s=Ee.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&65537&&S(u),i.$$.dirty[0]&1966080&&(t(6,Pe=ee(H,U)),t(7,Te=ge(v,E)))},[u,a,l,h,k,F,Pe,Te,de,q,le,Ae,c,m,C,g,S,v,E,H,U,r,Ie,rt,s]}var uu=class extends N{constructor(e){super(),O(this,e,$2,J2,B,{isMobile:1,content:2,active:0,translateX:12,translateY:13,isFullWidthWrapper:3,maxTooltipWidth:14,placement:15,onVisibilityChange:16},Z2,[-1,-1])}},Br=uu;function tb(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 ib(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 nb(i){let e,t;return e=new Br({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[ob]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function ob(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 rb(i){let e,t,n,o,r,s,a,l,u,c=[nb,ib],m=[];function h(C,g){return C[3]&&C[11]&&!C[12]?0:1}return t=h(i,-1),n=m[t]=c[t](i),{c(){e=I("div"),n.c(),f(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),f(e,"aria-hidden",r=i[7]||null)},m(C,g){w(C,e,g),m[t].m(e,null),i[23](e),a=!0,l||(u=[br(s=Rr.call(null,e)),ke(e,"fd:resize",i[22]),ke(e,"pointerdown",vt(i[20])),ke(e,"click",vt(i[21]))],l=!0)},p(C,[g]){let S=t;t=h(C,g),t===S?m[t].p(C,g):(ae(),p(m[S],1,1,()=>{m[S]=null}),ue(),n=m[t],n?n.p(C,g):(n=m[t]=c[t](C),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+C[2]+" svelte-p9r045"))&&f(e,"class",o),(!a||g&128&&r!==(r=C[7]||null))&&f(e,"aria-hidden",r)},i(C){a||(d(n),a=!0)},o(C){p(n),a=!1},d(C){C&&y(e),m[t].d(),i[23](null),l=!1,ft(u)}}}function sb(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:C=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:S="top"}=e,{disabledTooltipContent:k=G("tooltip_button_disabled")}=e,{isAriaHidden:F=!1}=e,{onTooltipVisibilityChange:T=eb}=e,{initialTranslateXPx:v=0}=e,{initialTranslateYPx:E=-18}=e,H=ot(),U=H.ui.isMobile;D(i,U,K=>t(12,o=K));let W=H.state.graphIsOpened$;D(i,W,K=>t(18,n=K));let ne;function de(K){Dn.call(this,i,K)}function q(K){Dn.call(this,i,K)}let X=K=>{t(1,m=K.target.clientWidth)};function oe(K){ve[K?"unshift":"push"](()=>{c=K,t(0,c)})}return i.$$set=K=>{"className"in K&&t(2,a=K.className),"disabled"in K&&t(15,l=K.disabled),"hasTooltip"in K&&t(3,u=K.hasTooltip),"ref"in K&&t(0,c=K.ref),"width"in K&&t(1,m=K.width),"isFullWidthTooltip"in K&&t(4,h=K.isFullWidthTooltip),"tooltipContent"in K&&t(16,C=K.tooltipContent),"tooltipActive"in K&&t(5,g=K.tooltipActive),"tooltipPlacement"in K&&t(6,S=K.tooltipPlacement),"disabledTooltipContent"in K&&t(17,k=K.disabledTooltipContent),"isAriaHidden"in K&&t(7,F=K.isAriaHidden),"onTooltipVisibilityChange"in K&&t(8,T=K.onTooltipVisibilityChange),"initialTranslateXPx"in K&&t(9,v=K.initialTranslateXPx),"initialTranslateYPx"in K&&t(10,E=K.initialTranslateYPx),"$$scope"in K&&t(24,s=K.$$scope)},i.$$.update=()=>{i.$$.dirty&491520&&(l?t(11,ne=n?G("tooltip_disabled_when_graph_on"):k):t(11,ne=C))},[c,m,a,u,h,g,S,F,T,v,E,ne,o,U,W,l,C,k,n,r,de,q,X,oe,s]}var cu=class extends N{constructor(e){super(),O(this,e,sb,rb,B,{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},tb)}},Ji=cu;function lb(i){let e,t,n,o,r,s;return{c(){e=M("svg"),t=M("rect"),o=M("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){w(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&&y(e)}}}function ab(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var fu=class extends N{constructor(e){super(),O(this,e,ab,lb,B,{completed:0})}},nl=fu;function ub(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 cb(i){let e,t,n,o,r,s,a;return t=new nl({props:{completed:!!i[0].completed}}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","interactive-episode-icon svelte-bklhpe"),f(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),j(e,"disabled",i[1])},m(l,u){w(l,e,u),L(t,e,null),r=!0,s||(a=[br(o=Rr.call(null,e)),ke(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)&&j(e,"disabled",l[1])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){p(t.$$.fragment,l),r=!1},d(l){l&&y(e),V(t),s=!1,ft(a)}}}function fb(i){let e,t;return e=new Ji({props:{tooltipContent:G(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:[cb]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.tooltipContent=G(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){V(e,n)}}}function db(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 du=class extends N{constructor(e){super(),O(this,e,db,fb,B,{videoEpisode:0,disabled:1},ub)}},G1=du;function mb(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 Y1(i,e,t){let n=i.slice();return n[3]=e[t],n}function Q1(i){let e,t,n,o,r,s,a,l,u;return{c(){e=I("div"),t=I("div"),n=I("div"),r=Y(),s=I("div"),l=Y(),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}%)`),j(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}%`),j(e,"disabled",i[2]),j(e,"mobile",i[1])},m(c,m){w(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&&j(s,"mobile",c[1]),m&1&&u!==(u=`left: ${c[3].from}%; width: ${c[3].width}%`)&&f(e,"style",u),m&4&&j(e,"disabled",c[2]),m&2&&j(e,"mobile",c[1])},d(c){c&&y(e)}}}function pb(i){let e,t=wt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=Q1(Y1(i,t,o));return{c(){e=I("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","video-episodes-wrap svelte-1rzxunm")},m(o,r){w(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=wt(o[0]);let s;for(s=0;s<t.length;s+=1){let a=Y1(o,t,s);n[s]?n[s].p(a,r):(n[s]=Q1(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&&y(e),li(n,o)}}}function _b(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 mu=class extends N{constructor(e){super(),O(this,e,_b,pb,B,{videoEpisodes:0,isMobile:1,disabled:2},mb)}},Z1=mu;function hb(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 X1(i,e,t){let n=i.slice();return n[50]=e[t],n}function J1(i){let e,t,n=wt(i[21]),o=[];for(let s=0;s<n.length;s+=1)o[s]=em(X1(i,n,s));let r=s=>p(o[s],1,1,()=>{o[s]=null});return{c(){e=I("div");for(let s=0;s<o.length;s+=1)o[s].c();f(e,"class","interactive-icons svelte-v8ydei"),j(e,"mobile",i[6]),j(e,"hidden",i[6]&&!i[20])},m(s,a){w(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=wt(s[21]);let l;for(l=0;l<n.length;l+=1){let u=X1(s,n,l);o[l]?(o[l].p(u,a),d(o[l],1)):(o[l]=em(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)&&j(e,"mobile",s[6]),(!t||a[0]&1048640)&&j(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&&y(e),li(o,s)}}}function $1(i){let e,t;return e=new G1({props:{videoEpisode:i[50],disabled:i[10]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function em(i){let e,t,n=i[50].interactive&&$1(i);return{c(){n&&n.c(),e=Je()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,r){o[50].interactive?n?(n.p(o,r),r[0]&2097152&&d(n,1)):(n=$1(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&&y(e),n&&n.d(o)}}}function gb(i){let e,t,n,o,r,s;return{c(){e=I("div"),t=I("div"),o=Y(),r=I("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}%);`),j(r,"active-live",i[5]),j(r,"ads",i[7]),f(e,"class","bars svelte-v8ydei")},m(a,l){w(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&&j(r,"active-live",a[5]),l[0]&128&&j(r,"ads",a[7])},i:me,o:me,d(a){a&&y(e)}}}function bb(i){let e,t;return e=new Z1({props:{videoEpisodes:i[21],disabled:i[10],isMobile:i[6]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function vb(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g=i[9]&&J1(i),S=[bb,gb],k=[];function F(T,v){return T[21].length?0:1}return n=F(i,[-1,-1]),o=k[n]=S[n](i),{c(){var T;g&&g.c(),e=Y(),t=I("div"),o.c(),r=Y(),s=I("div"),a=I("div"),f(a,"class","handle svelte-v8ydei"),j(a,"active-live",i[5]),f(s,"class","handleWrap svelte-v8ydei"),f(s,"style",l=`transform: translateX(${i[14]*100}%);`),j(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=(T=i[2])!=null?T:null),j(t,"disabled",i[10]),j(t,"slider-dragging",i[20]),j(t,"hidden",i[3]),j(t,"slider-vertical",i[4]),j(t,"no-handle",i[11]),j(t,"square",i[8])},m(T,v){g&&g.m(T,v),w(T,e,v),w(T,t,v),k[n].m(t,null),_(t,r),_(t,s),_(s,a),i[44](t),m=!0,h||(C=[ke(t,"pointerdown",ai(i[22])),ke(t,"pointermove",ai(i[23])),ke(t,"pointerup",ai(i[24])),ke(t,"pointerenter",ai(i[25])),ke(t,"pointerleave",ai(i[26])),ke(t,"click",vt(i[28])),ke(t,"wheel",i[27])],h=!0)},p(T,v){var H;T[9]?g?(g.p(T,v),v[0]&512&&d(g,1)):(g=J1(T),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(ae(),p(g,1,1,()=>{g=null}),ue());let E=n;n=F(T,v),n===E?k[n].p(T,v):(ae(),p(k[E],1,1,()=>{k[E]=null}),ue(),o=k[n],o?o.p(T,v):(o=k[n]=S[n](T),o.c()),d(o,1),o.m(t,r)),(!m||v[0]&32)&&j(a,"active-live",T[5]),(!m||v[0]&16384&&l!==(l=`transform: translateX(${T[14]*100}%);`))&&f(s,"style",l),(!m||v[0]&2048)&&j(s,"hidden",T[11]),(!m||v[0]&2&&u!==(u="slider "+T[1]+" svelte-v8ydei"))&&f(t,"class",u),(!m||v[0]&32768)&&f(t,"aria-label",T[15]),(!m||v[0]&65536)&&f(t,"aria-valuemin",T[16]),(!m||v[0]&131072)&&f(t,"aria-valuemax",T[17]),(!m||v[0]&262144)&&f(t,"aria-valuenow",T[18]),(!m||v[0]&524288)&&f(t,"aria-valuetext",T[19]),(!m||v[0]&4&&c!==(c=(H=T[2])!=null?H:null))&&f(t,"data-testid",c),(!m||v[0]&1026)&&j(t,"disabled",T[10]),(!m||v[0]&1048578)&&j(t,"slider-dragging",T[20]),(!m||v[0]&10)&&j(t,"hidden",T[3]),(!m||v[0]&18)&&j(t,"slider-vertical",T[4]),(!m||v[0]&2050)&&j(t,"no-handle",T[11]),(!m||v[0]&258)&&j(t,"square",T[8])},i(T){m||(d(g),d(o),m=!0)},o(T){p(g),p(o),m=!1},d(T){T&&(y(e),y(t)),g&&g.d(T),k[n].d(),i[44](null),h=!1,ft(C)}}}function yb(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:C=!1}=e,{videoEpisodes:g=[]}=e,{withWheelHandler:S=!1}=e,{isInteractive:k=!1}=e,{disabled:F=!1}=e,{hideHandel:T=!1}=e,v,{onPointerDown:E=io}=e,{onHandleMove:H=io}=e,{onPointerUp:U=io}=e,{onPointerEnter:W=io}=e,{onPointerMove:ne=io}=e,{onPointerLeave:de=io}=e,{onWheelUp:q=io}=e,{onWheelDown:X=io}=e,{onWheelLeft:oe=io}=e,{onWheelRight:K=io}=e,{onDisabledClick:ce=io}=e,{loadedProgress:z=0}=e,{filledProgress:x=0}=e,{handleProgress:P=0}=e,{ariaLabel:J=""}=e,{ariaValueMin:le=void 0}=e,{ariaValueMax:Ae=void 0}=e,{ariaValueNow:ee=void 0}=e,{ariaValueText:ge=""}=e,Pe=Dt(),Te=!1,Ie;function rt(fe){if(r&&(v=r.getBoundingClientRect()),F||Te||!r)return;t(20,Te=!0);let Se=st(fe.clientX,fe.clientY);E(Se),r.setPointerCapture(fe.pointerId)}function Ee(fe){if(F)return;let Se=st(fe.clientX,fe.clientY),et=at(fe.clientX);ne(Se,et,v.width),Te&&H(Se)}function We(fe){if(F||!Te)return;t(20,Te=!1);let Se=st(fe.clientX,fe.clientY);U(Se)}function $(fe){if(r&&(v=r.getBoundingClientRect()),F)return;let Se=st(fe.clientX,fe.clientY),et=at(fe.clientX);W(Se,et,v.width)}function _e(){F||de()}function Ce(fe){F||S&&(fe.preventDefault(),fe.deltaY<0?q():fe.deltaY>0?X():fe.deltaX>0?K():oe())}function xe(fe){F&&ce(st(fe.clientX,fe.clientY))}function st(fe,Se){return u?Math.max(0,Math.min(1,(v.height-(Se-v.top))/v.height)):Math.min(Math.max(fe-v.x,0),v.width)/v.width}function at(fe){return Math.min(Math.max(fe-v.x,0),v.width)}function nt(fe,Se){let et=Pe.features.episodesClustering&&!k?Pe.episodeMinWidthPc:0,Ne=[],tt=0,Fe=0,ct=0;for(let _t=1;_t<g.length;_t++)Fe=g[_t].time/Ie*100,Fe-tt>et&&(Ne.push({from:tt,width:Math.max(0,Fe-tt),loadedWidth:Math.max(0,Math.min(Fe,fe)-tt),filledWidth:Math.max(0,Math.min(Fe,Se)-tt),interactive:g[_t-1].interactive,completed:g[_t-1].completed}),tt=g[_t].time/Ie*100,ct++);let dt={from:tt,width:Math.max(0,100-tt),loadedWidth:Math.max(0,Math.min(fe,100)-tt),filledWidth:Math.max(0,Math.min(Se,100)-tt),interactive:g[ct].interactive,completed:g[ct].completed};100-tt<et?(ct-=1,Ne[ct].width+=100-tt,Ne[ct].loadedWidth+=Math.max(0,Math.min(fe,100)-tt),Ne[ct].filledWidth+=Math.max(0,Math.min(Se,100)-tt)):Ne[ct]=dt;let he=g[0].time;if(he!==0){let _t=he/Ie*100;Ne.unshift({from:0,width:_t,loadedWidth:Math.min(_t,fe),filledWidth:Math.min(_t,Se)})}return Ne}function $e(fe){ve[fe?"unshift":"push"](()=>{r=fe,t(0,r)})}return i.$$set=fe=>{"ref"in fe&&t(0,r=fe.ref),"className"in fe&&t(1,s=fe.className),"testId"in fe&&t(2,a=fe.testId),"isHidden"in fe&&t(3,l=fe.isHidden),"isVertical"in fe&&t(4,u=fe.isVertical),"isActiveLive"in fe&&t(5,c=fe.isActiveLive),"isMobile"in fe&&t(6,m=fe.isMobile),"isAds"in fe&&t(7,h=fe.isAds),"squareBorders"in fe&&t(8,C=fe.squareBorders),"videoEpisodes"in fe&&t(29,g=fe.videoEpisodes),"withWheelHandler"in fe&&t(30,S=fe.withWheelHandler),"isInteractive"in fe&&t(9,k=fe.isInteractive),"disabled"in fe&&t(10,F=fe.disabled),"hideHandel"in fe&&t(11,T=fe.hideHandel),"onPointerDown"in fe&&t(31,E=fe.onPointerDown),"onHandleMove"in fe&&t(32,H=fe.onHandleMove),"onPointerUp"in fe&&t(33,U=fe.onPointerUp),"onPointerEnter"in fe&&t(34,W=fe.onPointerEnter),"onPointerMove"in fe&&t(35,ne=fe.onPointerMove),"onPointerLeave"in fe&&t(36,de=fe.onPointerLeave),"onWheelUp"in fe&&t(37,q=fe.onWheelUp),"onWheelDown"in fe&&t(38,X=fe.onWheelDown),"onWheelLeft"in fe&&t(39,oe=fe.onWheelLeft),"onWheelRight"in fe&&t(40,K=fe.onWheelRight),"onDisabledClick"in fe&&t(41,ce=fe.onDisabledClick),"loadedProgress"in fe&&t(12,z=fe.loadedProgress),"filledProgress"in fe&&t(13,x=fe.filledProgress),"handleProgress"in fe&&t(14,P=fe.handleProgress),"ariaLabel"in fe&&t(15,J=fe.ariaLabel),"ariaValueMin"in fe&&t(16,le=fe.ariaValueMin),"ariaValueMax"in fe&&t(17,Ae=fe.ariaValueMax),"ariaValueNow"in fe&&t(18,ee=fe.ariaValueNow),"ariaValueText"in fe&&t(19,ge=fe.ariaValueText)},i.$$.update=()=>{var fe;i.$$.dirty[0]&131072&&t(42,Ie=Ae!=null?Ae:0),i.$$.dirty[0]&536870912|i.$$.dirty[1]&2048&&t(43,n=((fe=g[g.length-1])==null?void 0:fe.time)<Ie),i.$$.dirty[0]&536883200|i.$$.dirty[1]&6144&&t(21,o=g.length&&n&&Ie?nt(z*100,x*100):[])},[r,s,a,l,u,c,m,h,C,k,F,T,z,x,P,J,le,Ae,ee,ge,Te,o,rt,Ee,We,$,_e,Ce,xe,g,S,E,H,U,W,ne,de,q,X,oe,K,ce,Ie,n,$e]}var pu=class extends N{constructor(e){super(),O(this,e,yb,vb,B,{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},hb,[-1,-1])}},Nr=pu;var hi=(i,e)=>or[i]>=or[e],tm=(i,e)=>or[i]<or[e],Dr=(i,e)=>or[i]<=or[e],im=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function wb(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 kb(i){let e,t;return e=new dr({props:{volume:i[3],muted:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Cb(i){let e,t;return e=new ht({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:[kb]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function nm(i){let e,t,n;return t=new Nr({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]:Oo,onPointerLeave:i[2]?i[20]:Oo,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=I("div"),R(t.$$.fragment),f(e,"class","volumeBar svelte-1l78lz9"),j(e,"volumeBar-vertical",i[2])},m(o,r){w(o,e,r),L(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]:Oo),r[0]&4&&(s.onPointerLeave=o[2]?o[20]:Oo),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)&&j(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&&y(e),V(t)}}}function Sb(i){let e,t,n,o,r,s;t=new Br({props:{content:i[6],translateY:-18,$$slots:{default:[Cb]},$$scope:{ctx:i}}});let a=i[4]&&nm(i);return{c(){e=I("div"),R(t.$$.fragment),n=Y(),a&&a.c(),f(e,"class","volumeBar-container svelte-1l78lz9"),j(e,"vertical",i[2])},m(l,u){w(l,e,u),L(t,e,null),_(e,n),a&&a.m(e,null),o=!0,r||(s=[ke(e,"mouseenter",function(){Jt(i[2]?i[21]:Oo)&&(i[2]?i[21]:Oo).apply(this,arguments)}),ke(e,"mouseleave",function(){Jt(i[2]?i[22]:Oo)&&(i[2]?i[22]:Oo).apply(this,arguments)}),ke(e,"wheel",ai(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=nm(i),a.c(),d(a,1),a.m(e,null)):a&&(ae(),p(a,1,1,()=>{a=null}),ue()),(!o||u[0]&4)&&j(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&&y(e),V(t),a&&a.d(),r=!1,ft(s)}}}function Tb(i,e,t){var Pe,Te;let n,o,r,s,{click:a}=e,l=ot(),u=Dt(),c=l.state.volume$;D(i,c,Ie=>t(3,n=Ie));let m=l.state.muted$;D(i,m,Ie=>t(25,s=Ie));let h=l.actions.internal.setVolume,C=l.ui.currentGridType$;D(i,C,Ie=>t(24,r=Ie));let g=(Pe=l.callbacks)==null?void 0:Pe.onAudioDoesNotExistHint,S=(Te=l.callbacks)==null?void 0:Te.onAudioDisabledHint,k=l.state.isAudioAvailable$;D(i,k,Ie=>t(4,o=Ie));let F=l.state.isAudioDisabled,T=!1,v,E,H,U,W,ne,de=1,q=!1,X=!1;function oe(Ie){de=n,h(Ie)}function K(){Ys(l,n,u.controls.volumeStepWheel)}function ce(){Qs(l,n,u.controls.volumeStepWheel)}function z(Ie){h(Ie)}function x(Ie){let rt=Ie;h(rt,rt===0?de:rt)}function P(){q=!0}function J(){q=!1,ee()}function le(){clearTimeout(v),t(5,T=!0)}function Ae(){ee()}function ee(){v=window.setTimeout(()=>{q||t(5,T=!1)},u.controls.volumeBarTimeout)}function ge(Ie){Ie.deltaY<0?K():Ie.deltaY>0&&ce()}return i.$$set=Ie=>{"click"in Ie&&t(0,a=Ie.click)},i.$$.update=()=>{i.$$.dirty[0]&33554448&&t(1,U=!o||s),i.$$.dirty[0]&16777216&&t(2,W=Dr(r,"s")),i.$$.dirty[0]&6&&(W?t(6,E=""):t(6,E=U?G("tooltip_volume"):G("tooltip_volume_muted")),t(7,H=U?G("tooltip_volume"):G("tooltip_volume_muted"))),i.$$.dirty[0]&10&&t(8,ne=U?0:n),i.$$.dirty[0]&16&&(o?t(9,X=F&&!S):t(9,X=!g))},[a,U,W,n,o,T,E,H,ne,X,c,m,C,k,oe,K,ce,z,x,P,J,le,Ae,ge,r,s]}var _u=class extends N{constructor(e){super(),O(this,e,Tb,Sb,B,{click:0},wb,[-1,-1])}},om=_u;import{noop as Lb}from"@vkontakte/videoplayer-shared";function Ib(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=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("g"),n=M("path"),o=M("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"),we(e,u)},m(c,m){w(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),we(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&&y(e),a&&a.d(c)}}}function Pb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var hu=class extends N{constructor(e){super(),O(this,e,Pb,Ib,B,{})}},rm=hu;function Eb(i){be(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Ab(i){let e,t;return e=new rm({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Mb(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var gu=class extends N{constructor(e){super(),O(this,e,Mb,Ab,B,{isFullscreen:0},Eb)}},sm=gu;function Vb(i){let e,t;return e=new sm({props:{isFullscreen:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Rb(i){let e,t;return e=new ht({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:fo.KeyF,$$slots:{default:[Vb]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Bb(i,e,t){let{isFullscreen:n=!1}=e,{click:o=Lb}=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?G("tooltip_fullscreen_on"):G("tooltip_fullscreen_off"))},[n,o,r]}var bu=class extends N{constructor(e){super(),O(this,e,Bb,Rb,B,{isFullscreen:0,click:1})}},ol=bu;function Nb(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function Db(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var vu=class extends N{constructor(e){super(),O(this,e,Db,Nb,B,{})}},lm=vu;function Ob(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=se(c,u[m]);return{c(){e=M("svg"),l&&l.c(),t=M("path"),n=M("path"),o=M("path"),r=M("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"),we(e,c)},m(m,h){w(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),we(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&&y(e),l&&l.d(m)}}}function Fb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var yu=class extends N{constructor(e){super(),O(this,e,Fb,Ob,B,{})}},am=yu;function Hb(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 qb(i){let e,t;return e=new am({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}var Ub="vk-video-logo-icon--short";function zb(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?Ub:"vk-video-logo-icon"),!o&&!n&&(t(0,r=91),t(1,s="vk-video-logo-icon--en")))},[r,s,n,o]}var wu=class extends N{constructor(e){super(),O(this,e,zb,qb,B,{short:2,isCyrillic:3},Hb)}},um=wu;function Kb(i){let e,t;return e=new lm({}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function xb(i){let e,t;return e=new um({props:{short:i[4],isCyrillic:i[5]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function jb(i){let e,t,n,o,r=[xb,Kb],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=Je()},m(l,u){s[e].m(l,u),w(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&&y(n),s[e].d(l)}}}function Gb(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:[jb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function Yb(i,e,t){let n,o,r,{ref:s=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:l=""}=e,{click:u}=e,c=Dt(),m=ot(),h=m.ui.currentGridType$;D(i,h,E=>t(12,n=E));let C=m.ui.isMobile;D(i,C,E=>t(13,o=E));let g=m.isCyrillicRelatedInterface$;D(i,g,E=>t(5,r=E));let S,k,F,T=()=>{var E,H;u(),(E=m.callbacks)!=null&&E.onLogoClicked?(H=m.callbacks)==null||H.onLogoClicked():l&&window.open(l,"_blank")};function v(E){s=E,t(0,s)}return i.$$set=E=>{"ref"in E&&t(0,s=E.ref),"logoClickable"in E&&t(1,a=E.logoClickable),"targetUrl"in E&&t(10,l=E.targetUrl),"click"in E&&t(11,u=E.click)},i.$$.update=()=>{i.$$.dirty&12292&&t(4,F=(o||Dr(n,"l"))&&k)},t(3,S=c.logoType==="vk_video"?G("tooltip_vk_video_logo"):G("tooltip_vk_logo")),t(2,k=c.logoType==="vk_video"||c.logoType==="vk_video_mobile"),[s,a,k,S,F,r,h,C,g,T,l,u,n,o,v]}var ku=class extends N{constructor(e){super(),O(this,e,Yb,Gb,B,{ref:0,logoClickable:1,targetUrl:10,click:11})}},rl=ku;import{ChromecastState as ev}from"@vkontakte/videoplayer-core";import{ChromecastState as cm}from"@vkontakte/videoplayer-core";function Qb(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 Zb(i){let e,t,n,o,r,s,a,l;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),r=M("path"),s=M("path"),a=M("path"),l=M("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"),j(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"),j(e,"connecting",i[2])},m(u,c){w(u,e,c),_(e,t),_(t,n),_(t,o),_(t,r),_(t,s),_(t,a),_(t,l)},p(u,c){c&2&&j(l,"hidden",!u[1]),c&4&&j(e,"connecting",u[2])},d(u){u&&y(e)}}}function Xb(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H;return{c(){e=M("svg"),t=M("g"),n=M("mask"),o=M("path"),s=M("path"),a=M("path"),u=M("path"),c=M("defs"),m=M("clipPath"),h=M("path"),g=M("filter"),S=M("feFlood"),k=M("feColorMatrix"),F=M("feOffset"),T=M("feGaussianBlur"),v=M("feColorMatrix"),E=M("feBlend"),H=M("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",C=i[1]?"#2688EB":"#fff"),f(h,"d","M0 0h24v24H0z"),f(m,"id","a"),f(S,"flood-opacity","0"),f(S,"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(T,"stdDeviation","2.5"),f(v,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(E,"in2","BackgroundImageFix"),f(E,"result","effect1_dropShadow_4085_178456"),f(H,"in","SourceGraphic"),f(H,"in2","effect1_dropShadow_4085_178456"),f(H,"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(U,W){w(U,e,W),_(e,t),_(t,n),_(n,o),_(n,s),_(t,a),_(t,u),_(e,c),_(c,m),_(m,h),_(c,g),_(g,S),_(g,k),_(g,F),_(g,T),_(g,v),_(g,E),_(g,H)},p(U,W){W&2&&r!==(r=U[1]?"#2688EB":"#fff")&&f(o,"fill",r),W&2&&l!==(l=U[1]?"#2688EB":"#fff")&&f(a,"fill",l),W&2&&C!==(C=U[1]?"#2688EB":"#fff")&&f(h,"fill",C)},d(U){U&&y(e)}}}function Jb(i){let e;function t(r,s){return r[0]?Xb:Zb}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Je()},m(r,s){o.m(r,s),w(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&&y(e),o.d(r)}}}function $b(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===cm.CONNECTING),t(1,r=o===cm.CONNECTED))},[n,r,s,o]}var Cu=class extends N{constructor(e){super(),O(this,e,$b,Jb,B,{isMobile:0,state:3},Qb)}},fm=Cu;import{noop as tv}from"@vkontakte/videoplayer-shared";function iv(i){let e,t;return e=new fm({props:{isMobile:i[1],state:i[2]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function nv(i){let e,t,n;function o(s){i[5](s)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[iv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function ov(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:s=tv}=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===ev.CONNECTED?G("tooltip_chromecast_on"):G("tooltip_chromecast_off"))},[n,o,r,s,a,l]}var Su=class extends N{constructor(e){super(),O(this,e,ov,nv,B,{ref:0,isMobile:1,state:2,click:3})}},sl=Su;function rv(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 sv(i){let e,t,n,o,r=i[9].default,s=Le(r,i,i[8],null);return{c(){e=I("div"),t=I("div"),s&&s.c(),f(t,"class","tooltip svelte-5ygsa2"),j(t,"active",i[0]),j(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){w(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)&&j(t,"active",a[0]),(!o||l&2)&&j(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&&y(e),s&&s.d(a),i[10](null),i[11](null)}}}function lv(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 C(k){if(!h)return 0;let{width:F}=h.getBoundingClientRect(),T=F/2;return k<T?T:k>c-T?c-T:k}function g(k){ve[k?"unshift":"push"](()=>{h=k,t(4,h)})}function S(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=C(l))},[s,a,u,m,h,n,l,c,r,o,g,S]}var Tu=class extends N{constructor(e){super(),O(this,e,lv,sv,B,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},rv)}},dm=Tu;var ll=(i,e,t)=>t.filter(n=>n.time<=i*e).pop();function av(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 mm(i){let e;function t(r,s){return r[2]&&r[10].completed===!1?cv:uv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Je()},m(r,s){o.m(r,s),w(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&&y(e),o.d(r)}}}function uv(i){let e=(i[10].text||"")+"",t;return{c(){t=qe(e)},m(n,o){w(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Ge(t,e)},d(n){n&&y(t)}}}function cv(i){let e=G("tooltip_episode_unfinished")+"",t;return{c(){t=qe(e)},m(n,o){w(n,t,o)},p:me,d(n){n&&y(t)}}}function pm(i){let e,t;return{c(){e=I("div"),t=qe(i[0]),f(e,"class","time svelte-l51fc1")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&1&&Ge(t,n[0])},d(n){n&&y(e)}}}function fv(i){let e,t,n,o,r,s,a=i[10]&&mm(i),l=!i[2]&&pm(i);return{c(){e=I("div"),t=I("div"),o=Y(),r=I("div"),a&&a.c(),s=Y(),l&&l.c(),f(t,"class","preview svelte-l51fc1"),f(t,"style",n=`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);`),f(r,"class","episode svelte-l51fc1"),f(e,"class","timeline-preview svelte-l51fc1"),j(e,"mobile",i[1])},m(u,c){w(u,e,c),_(e,t),_(e,o),_(e,r),a&&a.m(r,null),_(e,s),l&&l.m(e,null)},p(u,[c]){c&3064&&n!==(n=`width: ${u[3]}px; height: ${u[4]}px; background-image: url(${u[5]}); background-size: ${u[6]}px ${u[7]}px; background-position: ${u[8]}px ${u[9]}px; transform: translateY(${u[11]%180?-35:0}px) rotate(${u[11]}deg);`)&&f(t,"style",n),u[10]?a?a.p(u,c):(a=mm(u),a.c(),a.m(r,null)):a&&(a.d(1),a=null),u[2]?l&&(l.d(1),l=null):l?l.p(u,c):(l=pm(u),l.c(),l.m(e,null)),c&2&&j(e,"mobile",u[1])},i:me,o:me,d(u){u&&y(e),a&&a.d(),l&&l.d()}}}var Or=150;function dv(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=ot().ui.rotateAlpha;D(i,h,W=>t(11,n=W));let C,g,S,k,F,T,v,E;function H(){let W=a.frameWidth,ne=a.frameHeight;return W>Or?(ne=ne/W*Or,W=Or):ne>Or&&(W=W/ne*Or,ne=Or),{width:W,height:ne}}function U(W){let ne;a.isUV?ne=Math.floor(u*W/a.frequency):ne=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*W)));let de=Math.floor(ne/a.countPerImage),q=Math.floor(ne%a.countPerImage/a.countPerRow),X=ne%a.countPerRow,oe=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&de===Math.floor(a.countTotal/a.countPerImage)&&(oe=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&oe++);let K=a.countPerRow;!a.isUV&&de===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(K=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let ce=C*K,z=g*oe,x=-X*C,P=-q*g;return{imgSrc:a.links[de],imgWidth:ce,imgHeight:z,imgOffsetX:x,imgOffsetY:P}}return i.$$set=W=>{"time"in W&&t(0,o=W.time),"isMobile"in W&&t(1,r=W.isMobile),"videoEpisodes"in W&&t(13,s=W.videoEpisodes),"previewThumbsData"in W&&t(14,a=W.previewThumbsData),"progress"in W&&t(15,l=W.progress),"duration"in W&&t(16,u=W.duration),"isInteractive"in W&&t(2,c=W.isInteractive)},i.$$.update=()=>{i.$$.dirty&32768&&t(5,{imgSrc:S,imgWidth:k,imgHeight:F,imgOffsetX:T,imgOffsetY:v}=U(l),S,(t(6,k),t(15,l)),(t(7,F),t(15,l)),(t(8,T),t(15,l)),(t(9,v),t(15,l))),i.$$.dirty&106496&&t(10,E=ll(l,u,s))},t(3,{width:C,height:g}=H(),C,t(4,g)),[o,r,c,C,g,S,k,F,T,v,E,n,h,s,a,l,u]}var Iu=class extends N{constructor(e){super(),O(this,e,dv,fv,B,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},av)}},_m=Iu;function mv(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 pv(i){let e,t;return{c(){e=I("span"),t=qe(i[8]),f(e,"class","time svelte-5lzly8")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o[0]&256&&Ge(t,n[8])},i:me,o:me,d(n){n&&y(e)}}}function _v(i){let e,t;return e=new _m({props:{time:i[8],isMobile:i[11],videoEpisodes:i[4],previewThumbsData:i[22],progress:i[9],duration:i[2],isInteractive:i[24]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function hv(i){let e,t,n,o,r=[_v,pv],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=Je()},m(l,u){s[e].m(l,u),w(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&&y(n),s[e].d(l)}}}function gv(i){let e,t,n,o,r,s=[i[10]],a={$$slots:{default:[hv]},$$scope:{ctx:i}};for(let c=0;c<s.length;c+=1)a=se(a,s[c]);e=new dm({props:a});function l(c){i[43](c)}let u={isActiveLive:i[12],isMobile:i[11],ariaLabel:G("aria_timeline"),ariaValueMin:0,ariaValueMax:i[2],ariaValueNow:Math.round(i[7]*100),ariaValueText:G("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 Nr({props:u}),ve.push(()=>ze(n,"ref",l)),{c(){R(e.$$.fragment),t=Y(),R(n.$$.fragment)},m(c,m){L(e,c,m),w(c,t,m),L(n,c,m),r=!0},p(c,m){let h=m[0]&1024?He(s,[Vo(c[10])]):{};m[0]&2838|m[1]&524288&&(h.$$scope={dirty:m,ctx:c}),e.$set(h);let C={};m[0]&4096&&(C.isActiveLive=c[12]),m[0]&2048&&(C.isMobile=c[11]),m[0]&4&&(C.ariaValueMax=c[2]),m[0]&128&&(C.ariaValueNow=Math.round(c[7]*100)),m[0]&96&&(C.ariaValueText=G("aria_timeline_value",{position:c[6],duration:c[5]})),m[0]&8192&&(C.loadedProgress=c[13]),m[0]&128&&(C.filledProgress=c[7]),m[0]&128&&(C.handleProgress=c[7]),m[0]&16&&(C.videoEpisodes=c[4]),m[0]&16384&&(C.disabled=c[14].has("TIMELINE")),m[0]&8&&(C.hideHandel=c[3]),!o&&m[0]&1&&(o=!0,C.ref=c[0],Ue(()=>o=!1)),n.$set(C)},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&&y(t),V(e,c),V(n,c)}}}function bv(i,e,t){var fe;let n,o,r,s,a,l,u,c,m,h,C,{showTimeline:g=!1}=e,{ref:S=void 0}=e,k=ot(),F=Dt(),T=k.state.bufferedProgress$;D(i,T,Se=>t(13,h=Se));let v=k.state.positionWithScrubbing$;D(i,v,Se=>t(41,l=Se));let E=k.state.duration$;D(i,E,Se=>t(2,r=Se));let H=k.state.isLive$;D(i,H,Se=>t(1,o=Se));let U=k.state.isActiveLive$;D(i,U,Se=>t(12,m=Se));let W=k.ui.isMobile;D(i,W,Se=>t(11,c=Se));let ne=F.features.episodes?k.actions.internal.getVideoEpisodes():void 0,de=k.actions.internal.getPreviewThumbsData(),q=k.state.interactiveEpisodes$;D(i,q,Se=>t(42,u=Se));let X=k.state.isInteractive,oe=k.state.isInteractiveTime$;D(i,oe,Se=>t(3,s=Se));let K=k.state.isInteractiveExpectation$;D(i,K,Se=>t(40,a=Se));let ce=k.actions.internal.correctSeekTimeToInteractive,z=(fe=k.callbacks)==null?void 0:fe.onDisabledTimelineClick,x=k.ui.controls.disabledControls$;D(i,x,Se=>t(14,C=Se));let P,J,le,Ae,ee=!1,ge="",Pe=0,Te=0,Ie=0,rt;function Ee(Se){return!ce||!X?Se:ce(Se*r)/r}function We(Se){k.actions.internal.startScrubbing(Ee(Se))}function $(Se){s||k.actions.internal.progressScrubbing(Ee(Se))}function _e(Se){k.actions.internal.completeScrubbing(Ee(Se)),t(36,ee=!1)}function Ce(Se,et,Ne){at(Se,et,Ne),t(36,ee=!0)}function xe(Se,et,Ne){at(Se,et,Ne),t(36,ee=!0)}function st(){t(36,ee=!1)}function at(Se,et,Ne){t(9,Ie=Ee(Se)),t(37,Pe=et),Ne&&t(38,Te=Ne),t(8,ge=nt(Se))}function nt(Se){let et=Fn((o?1-Se:Se)*r);return o?`-${et}`:et}function $e(Se){S=Se,t(0,S)}return i.$$set=Se=>{"showTimeline"in Se&&t(35,g=Se.showTimeline),"ref"in Se&&t(0,S=Se.ref)},i.$$.update=()=>{i.$$.dirty[1]&2048&&t(4,P=X?u:ne),i.$$.dirty[0]&4&&t(5,J=Fn(r)),i.$$.dirty[1]&1024&&t(6,le=Fn(l)),i.$$.dirty[0]&4|i.$$.dirty[1]&1024&&t(7,Ae=l/r),i.$$.dirty[0]&8|i.$$.dirty[1]&512&&t(39,rt=a||s),i.$$.dirty[0]&2|i.$$.dirty[1]&496&&t(10,n={containerWidth:Te,translateXPx:Pe,translateYPx:X&&de?-36:-16,active:ee&&g&&!rt,pointer:!F.features.timelinePreview||!de||o})},[S,o,r,s,P,J,le,Ae,ge,Ie,n,c,m,h,C,F,T,v,E,H,U,W,de,q,X,oe,K,z,x,We,$,_e,Ce,xe,st,g,ee,Pe,Te,rt,a,l,u,$e]}var Pu=class extends N{constructor(e){super(),O(this,e,bv,gv,B,{showTimeline:35,ref:0},mv,[-1,-1])}},hm=Pu;function vv(i){let e,t;return e=new Nr({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:G("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){R(e.$$.fragment)},m(n,o){L(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=G("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){V(e,n)}}}function yv(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=ot().ui.isMobile;D(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=Fn(r)),i.$$.dirty&64&&t(2,u=Fn(o)),i.$$.dirty&65&&t(3,c=o/r)},[r,l,u,c,n,a,o]}var Eu=class extends N{constructor(e){super(),O(this,e,yv,vv,B,{position:6,duration:0})}},al=Eu;function wv(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 kv(i){let e;return{c(){e=I("div"),f(e,"class","timeline-stub svelte-1gqonyf"),j(e,"mobile",i[3])},m(t,n){w(t,e,n)},p(t,n){n&8&&j(e,"mobile",t[3])},i:me,o:me,d(t){t&&y(e)}}}function Cv(i){let e,t,n,o,r=[Tv,Sv],s=[];function a(l,u){return l[1]?0:1}return t=a(i,-1),n=s[t]=r[t](i),{c(){e=I("div"),n.c(),f(e,"class","timeline svelte-1gqonyf"),j(e,"mobile",i[3])},m(l,u){w(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)&&j(e,"mobile",l[3])},i(l){o||(d(n),o=!0)},o(l){p(n),o=!1},d(l){l&&y(e),s[t].d()}}}function Sv(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 hm({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function Tv(i){let e,t;return e=new al({props:{position:i[4],duration:i[5]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Iv(i){let e,t,n,o,r=[Cv,kv],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=Je()},m(l,u){s[e].m(l,u),w(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&&y(n),s[e].d(l)}}}function Pv(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=ot(),C=h.state.isLive$;D(i,C,v=>t(13,n=v));let g=h.ads.duration;D(i,g,v=>t(5,s=v));let S=h.ads.position;D(i,S,v=>t(4,r=v));let k=h.ui.isMobile;D(i,k,v=>t(3,o=v));let F;function T(v){m=v,t(0,m)}return i.$$set=v=>{"isAds"in v&&t(1,a=v.isAds),"canRewindLive"in v&&t(10,l=v.canRewindLive),"isRewindableLive"in v&&t(11,u=v.isRewindableLive),"isHidden"in v&&t(12,c=v.isHidden),"ref"in v&&t(0,m=v.ref)},i.$$.update=()=>{i.$$.dirty&15362&&t(2,F=!c&&(!n||n&&l&&u||a))},[m,a,F,o,r,s,C,g,S,k,l,u,c,n,T]}var Au=class extends N{constructor(e){super(),O(this,e,Pv,Iv,B,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},wv)}},ul=Au;import{noop as Vv}from"@vkontakte/videoplayer-shared";function Ev(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=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("path"),n=M("path"),o=M("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"),we(e,u)},m(c,m){w(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),we(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&&y(e),a&&a.d(c)}}}function Av(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Mu=class extends N{constructor(e){super(),O(this,e,Av,Ev,B,{})}},gm=Mu;function Mv(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function Lv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Lu=class extends N{constructor(e){super(),O(this,e,Lv,Mv,B,{})}},bm=Lu;function Rv(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 Bv(i){let e,t,n,o;e=new gm({});function r(l,u){if(l[4]==="FULL")return Ov;if(l[4]==="COUNT")return Dv}let s=r(i,-1),a=s&&s(i);return{c(){R(e.$$.fragment),t=Y(),a&&a.c(),n=Je()},m(l,u){L(e,l,u),w(l,t,u),a&&a.m(l,u),w(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&&(y(t),y(n)),V(e,l),a&&a.d(l)}}}function Nv(i){let e,t,n,o,r,s;return r=new bm({}),{c(){e=I("span"),t=qe(i[2]),n=Y(),o=I("div"),R(r.$$.fragment),f(e,"class","text mobile svelte-1yhs2ga"),f(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,l){w(a,e,l),_(e,t),w(a,n,l),w(a,o,l),L(r,o,null),s=!0},p(a,l){(!s||l&4)&&Ge(t,a[2])},i(a){s||(d(r.$$.fragment,a),s=!0)},o(a){p(r.$$.fragment,a),s=!1},d(a){a&&(y(e),y(n),y(o)),V(r)}}}function Dv(i){let e,t=i[0].length+"",n;return{c(){e=I("span"),n=qe(t),f(e,"class","text count svelte-1yhs2ga")},m(o,r){w(o,e,r),_(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&Ge(n,t)},d(o){o&&y(e)}}}function Ov(i){let e,t;return{c(){e=I("span"),t=qe(i[2]),f(e,"class","text svelte-1yhs2ga")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&4&&Ge(t,n[2])},d(n){n&&y(e)}}}function Fv(i){let e,t,n,o,r=[Nv,Bv],s=[];function a(l,u){return l[6]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Je()},m(l,u){s[e].m(l,u),w(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&&y(n),s[e].d(l)}}}function Hv(i){let e,t,n;function o(s){i[19](s)}let r={className:"w-max btn-full-opacity "+(i[6]?"px-0":""),testId:"btn-episodes",click:i[12],disabled:!i[7],ariaExpanded:i[3],ariaLabel:i[5],$$slots:{default:[Fv]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&64&&(l.className="w-max btn-full-opacity "+(s[6]?"px-0":"")),a&8&&(l.ariaExpanded=s[3]),a&32&&(l.ariaLabel=s[5]),a&8388693&&(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){V(e,s)}}}function qv(i,e,t){var q,X,oe;let n,o,r,s,a,l,{position:u=0}=e,{duration:c=0}=e,{timeCodes:m=[]}=e,h=ot(),C=(X=(q=h.callbacks)==null?void 0:q.onEpisodeChanged)!=null?X:Vv,g=!!((oe=h.callbacks)!=null&&oe.onEpisodeClicked),S=h.ui.currentGridType$;D(i,S,K=>t(18,a=K));let k=h.ui.episodes.openedByKeyboard$;D(i,k,K=>t(17,s=K));let F=h.ui.episodes.panelOpened$;D(i,F,K=>t(3,r=K));let T=h.ui.isMobile;D(i,T,K=>t(6,l=K));let v,E=K=>{var z,x,P;if(!!((z=h.callbacks)!=null&&z.onEpisodeClicked)){let J=Er(K);k.set(J),F.set(!0),(P=(x=h.callbacks)==null?void 0:x.onEpisodeClicked)==null||P.call(x,J)}},H,U,W,ne=(K,ce,z)=>pt(this,null,function*(){yield eo(),(K==null?void 0:K.getAttribute("aria-expanded"))==="false"&&ce&&!z&&(k.set(!1),K.focus())});function de(K){v=K,t(1,v)}return i.$$set=K=>{"position"in K&&t(13,u=K.position),"duration"in K&&t(14,c=K.duration),"timeCodes"in K&&t(0,m=K.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576&&t(16,n=u/c),i.$$.dirty&114689){let K=ll(n,c,m);K&&(H==null?void 0:H.text)!==K.text&&(C(K),t(15,H=K))}i.$$.dirty&32768&&t(2,o=(H==null?void 0:H.text)||""),i.$$.dirty&262144&&(hi(a,"xl")?t(4,U="FULL"):hi(a,"m")&&tm(a,"xl")?t(4,U="COUNT"):t(4,U="SHORT")),i.$$.dirty&4&&t(5,W=`${G("tooltip_episodes")}: ${o}`),i.$$.dirty&131082&&ne(v,s,r)},[m,v,o,r,U,W,l,g,S,k,F,T,E,u,c,H,n,s,a,de]}var Vu=class extends N{constructor(e){super(),O(this,e,qv,Hv,B,{position:13,duration:14,timeCodes:0},Rv)}},cl=Vu;import{debounceFn as C3}from"@vkontakte/videoplayer-shared";import{ChromecastState as Yv,PlaybackState as ns,Player as Qv,VideoFormat as os}from"@vkontakte/videoplayer-core";import{assertNonNullable as Hn,clientChecker as Zv,getHighestQuality as Xv,InterfaceLanguage as Jv,isInvariantQuality as $v,isNonNullable as e4,loadVKLangPack as t4,Logger as i4,map as n4,merge as o4,Observable as r4,Subject as gl,Subscription as Fu,Tracer as s4,ValueSubject as l4,VideoQuality as a4}from"@vkontakte/videoplayer-shared";import{SeekAction as Ho}from"@vkontakte/videoplayer-statistics";import"@vkontakte/videoplayer-interactive";import{addScript as Uv,assertNonNullable as Ei,Subject as $i,clearVideoElement as zv}from"@vkontakte/videoplayer-shared";var vm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var Wv="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",fl=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 $i,loadStarted$:new $i,loadEnded$:new $i,loadError$:new $i,ready$:new $i,slotRequested$:new $i,started$:new $i,timeRemained$:new $i,paused$:new $i,resumed$:new $i,ended$:new $i,empty$:new $i,skipped$:new $i,clicked$:new $i,closed$:new $i,error$:new $i};this.loadAdman=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()};Uv(Wv,e,this.loadTimeout).then(()=>{window.AdmanHTML?(t(),this.events.loadEnded$.next()):(window.admanAsyncInit=r,o=window.setTimeout(r,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,t)=>{Ei(this.adsState),Ei(this.playerState),Ei(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"}),Ye(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.onAdTimeRemained=e=>{Ei(this.adsState),this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()};this.onAdPaused=()=>{this.stopWatchDog(),Ei(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{Ei(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing"),this.startWatchDog()};this.onAdMidrollPoint=()=>{Ei(this.adman),Ei(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.log({message:"could not start midroll"}),this.onAdError()}};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=()=>{var e;this.log({message:"ad clicked"}),(e=this.videoElement)==null||e.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=()=>{this.log({message:"ad error"}),this.events.error$.next(),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout,this.runtimeTimeout=t.runtimeTimeout}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0),this.events.loadError$.next()}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,C=this.playerState&&Ye(this.playerState.vsid);C&&(h=parseInt(C,36));let g=Qe(yt(Qe({dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:vm(t,n),puid11:o?0:1,preview:m},h?{request_id:h}:{}),{duration:c}),u);m||delete g.preview;let S={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(S),this.adman=k,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(S)}`})}catch(k){this.log({message:"could not init adman"}),this.onAdError()}}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}Ei(this.actions),Ei(this.adsState),Ei(this.playerState);let t=this.currentAdSection==="postroll";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"})),this.actions.switchFromAdsToVideo(!t)}togglePlay(){Ei(this.adsState),this.log({message:"toggle play"});let e=Ye(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}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(t){this.log({message:"could not set ad volume"}),this.onAdError()}this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(t){this.log({message:"could not set ad fullscreen"}),this.onAdError()}}startPreroll(){if(Ei(this.adman),!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.log({message:"could not start preroll"}),this.onAdError()}}}startPostroll(){Ei(this.adman),Ei(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(e){this.log({message:"could not start postroll"}),this.onAdError()}}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError(),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){Ei(this.adman),this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(e){this.onAdError(),this.log({message:"could not resume ad"})}}pause(){Ei(this.adman),this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(e){this.onAdError(),this.log({message:"could not pause ad"})}}skip(){Ei(this.adman),this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(e){this.log({message:"could not skip ad"}),this.onAdError()}}setPosition(e,t){var n;(n=this.adman)==null||n.setPosition(Math.floor(e),Math.floor(t))}destroy(){var e;this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.destroy(),this.videoElement&&zv(this.videoElement),this.isDestroyed=!0}};var ym=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 Ru=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let t=[],n=e.split(this.twoLinesRegExp);for(let o of n){let r={startTime:0,endTime:0,texts:[],lang:""},s=o.split(this.oneLineRegExp);for(let a of s)if(!r.startTime&&!r.endTime){let l=new dl,{startTime:u,endTime:c}=l.parse(a);r.startTime=u,r.endTime=c}else if(a.trim()!==""){let l=new Bu,{texts:u}=l.parse(a);r.texts=[...r.texts,...u]}(r.startTime||r.endTime)&&r.texts.length>0&&t.push(r)}return t}},dl=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}},Bu=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 dl;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}},wm=Ru;import{isNonNullable as Nu}from"@vkontakte/videoplayer-shared";var Fo,ti,Du=0,Ou=!1,km=(i,e=0,t=0)=>i<e&&i<t,ml=(i,e=0,t=0)=>i>=e&&i<=t,Kv=(i,e=0,t=0)=>i>e&&i>t,Cm=(i,e,t,n=!1)=>{var a;let o=(a=t.find(({lang:l})=>l===e.value))==null?void 0:a.subtitles;if(n){let l=o==null?void 0:o.find(({startTime:u,endTime:c})=>ml(i,u,c));return l?yt(Qe({},l),{lang:e.value}):void 0}let r=i>=Du,s=i<Du;if(Du=i,s&&(Ou=!1),Nu(Fo)&&ml(i,Fo.startTime,Fo.endTime)&&Fo.lang===e.value)return Fo;if(!Nu(ti)&&(o!=null&&o.length)&&!Ou){let l=o.find(({startTime:u,endTime:c})=>ml(i,u,c)||r&&km(i,u,c));ti=l&&yt(Qe({},l),{lang:e.value}),Fo=void 0,!Nu(ti)&&o[o.length-1].endTime<i&&(Ou=!0);return}else{if(ml(i,ti==null?void 0:ti.startTime,ti==null?void 0:ti.endTime))return Fo=ti,ti=void 0,Fo;(r&&Kv(i,ti==null?void 0:ti.startTime,ti==null?void 0:ti.endTime)||s&&km(i,ti==null?void 0:ti.startTime,ti==null?void 0:ti.endTime))&&(ti=void 0)}};var Sm={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"},xv={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"},pl=i=>{var e,t;return(t=(e=Sm[i])!=null?e:Sm[xv[i]])!=null?t:void 0};import{Subscription as jv}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-statistics";var _l=class{constructor(e,t=new jv){this.oneStat=e;this.statSubscription=t}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var hl=(t=>(t.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",t.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",t))(hl||{});var Tm=({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:C,player:g,disabledControls:S,isInteractive:k,interactiveRanges$:F,isInteractiveTime$:T,replayInteractive:v,stopPlayer:E,hasInteractiveBranches:H,playPrevChapterDisabledTooltip:U,additionalButtons:W,additionalSettingsMenuItems:ne,additionalContextMenuItems:de,looped:q=!1,statistics:X,saveRate:oe})=>{var _s,hs,gs,bs;let K=yt(Qe({},C),{configName:[...(_s=C.configName)!=null?_s:[],"ui"],isAudioDisabled:s,live:yt(Qe({},(hs=C.live)!=null?hs:{}),{isLiveCatchUpMode:!!o})}),ce=h,z=s4.createRootTracer(ce.features.saveTraceInfoToFile),x=z.createComponentTracer("Store"),P=g||new Qv(K,z),J=new i4,le=new fl(J,{loadTimeout:ce.ads.loadTimeout,initTimeout:ce.ads.initTimeout,runtimeTimeout:ce.ads.runtimeTimeout}),Ae=sr.getInstance(),ee=u==null?void 0:u.pictureInPictureApi,ge=u==null?void 0:u.annotationsApi,Pe=J.createComponentLog("Store"),Te,Ie,rt={},Ee=new Is,We=X?Pt(X.oneStat.vsid$):jn(void 0),$=Oe(Ro()),_e=(gs=ee==null?void 0:ee.info.isActive$)!=null?gs:new l4(!1),Ce=ee==null?void 0:ee.info.type,xe=Oe(0),st=Oe([]),at=o4(P.events.fatalError$,P.events.managedError$).subscribe(b=>st.update(A=>[...A,b])),nt=jn(!1,b=>{let A=P.events.fatalError$.subscribe(()=>b(!0));return()=>A.unsubscribe()}),$e=b=>pt(void 0,null,function*(){var Me;let A=Object.values(Jv).includes(b);if(ce.downloadVKLanguages&&(A&&ce.updateBuiltinLanguages||!ha(b))){let lt;try{lt=yield t4(b,Kf,xf)}catch(mt){(Me=X==null?void 0:X.oneStat)==null||Me.logError({errorType:"VKLangPack",fatal:!1}),Ae==null||Ae.report(mt,{errorType:"VKLangPack",fatal:!1})}lt&&(_a({language:b,pack:lt,fallback:ce.defaultLanguage}),fe.set(b))}ha(b)&&fe.set(b)}),fe=Oe(i),Se=Oe(e);$e(i);let et=(b,A)=>{let re=Ye(fe);return ga(re,b,A,ce.defaultLanguage)},Ne=Oe("thumb"),tt=(()=>{let b=ei([nt,Ne],([A,re])=>A?"crashed":re);return yt(Qe({},b),{is:A=>Ye(b)===A})})(),Fe=(()=>{let b=Oe(new Set(S));return yt(Qe({},b),{add:A=>{b.update(re=>new Set([...re].concat(A)))},remove:A=>{b.update(re=>{let Me=[...re];return new Set(Array.isArray(A)?Me.filter(lt=>!A.includes(lt)):Me.filter(lt=>lt!==A))})},includes:A=>{let re=Ye(b);return Array.isArray(A)?A.every(Me=>re.has(Me)):re.has(A)}})})();x.log("create store"),Pe({message:"create store"});let ct=b=>{let A=b.container;A.append(P.experimental.element$.getValue()),Et=new MutationObserver(re=>{let{removedNodes:Me}=re[0];Me.length&&A.append(P.experimental.element$.getValue())}),Et.observe(A,{childList:!0})},dt=b=>{Pe({message:`init video, config: ${JSON.stringify(b)}`}),k?ct(b):P.initVideo(b),x.log("init video",{isInteractive:k}),b.subtitles&&P.setExternalTextTracks(b.subtitles),Te=b},he=new gl,_t=b=>he.next(b),kt=new gl,Ct=new gl,Ze=new gl,Et=null,Vt={actionRewind$:kt,actionSeek$:Ct,inPiP$:_e,inFullscreen$:new r4(b=>$.subscribe(A=>b.next(A))),actionSetSubtitle$:Ze,nextMovie$:he};if(X){let{oneStat:b,statSubscription:A}=X;k||A.add(b.attachTo(P)),A.add(b.attachToUi(Vt)),A.add(b.attachToAds(le.events)),b.authorize(r).catch(re=>{Pe({message:`onestat auth error ${String(re)}`})})}if(Ae){let b=new Fu,A=(re,Me)=>b.add(re.subscribe(Me));if(A(P.events.managedError$,re=>{Ae.logIError(re)}),A(P.events.fatalError$,re=>{Ae.logIError(re,!0)}),X){let{oneStat:re}=X;A(re.experimental.error$,Me=>{Ae.logIError(Me)})}Ae.sentrySubscription.add(b)}let ri=()=>{Zv.isIOS&&Ie&&Md(Ie)},Ut=new Fu().add(P.experimental.element$.subscribe(b=>{b&&(Ie=b,b.classList.add("player-media"),ar(ee)&&(ee.updateVideoElement(),ee.registryEventHandlers()),k&&b.setAttribute("pip","false"))})).add(P.events.ended$.subscribe(()=>{var b;ri(),(b=l==null?void 0:l.onEnded)==null||b.call(l)})).add(P.events.started$.subscribe(()=>pt(void 0,null,function*(){var A,re;ar(ee)&&(yield ee==null?void 0:ee.revealPictureInPicture());let b=P.info.muted$.getValue();(A=l==null?void 0:l.onStarted)==null||A.call(l),(re=rt.onStarted)==null||re.call(rt,b)}))).add(P.events.willSeek$.subscribe(({from:b,to:A})=>{var re;(re=l==null?void 0:l.onSeek)==null||re.call(l,b,A)})).add(P.events.autoplaySoundProhibited$.subscribe(()=>{var b;(b=l==null?void 0:l.onAutoplaySoundProhibited)==null||b.call(l)})).add(P.info.position$.subscribe(b=>{var re;let A=P.info.duration$.getValue();isFinite(A)&&A>0&&((re=l==null?void 0:l.onTimeupdate)==null||re.call(l,A,b),le.setPosition(b,A))})).add(P.events.fatalError$.subscribe(()=>{var b;(b=l==null?void 0:l.onCrashed)==null||b.call(l)})).add(P.events.loadedMetadata$.subscribe(()=>{Tt.state.loadedMetadata$.set(!0)})).add(P.info.is3DVideo$.subscribe(b=>{Tt.ui.is3DVideo.set(b)})).add(P.info.isEnded$.subscribe(b=>{k&&(b?(T!=null&&T.getValue()&&Fe.add(Ss),Fe.add("PLAY_BUTTON")):Fe.remove("PLAY_BUTTON"))})).add(P.info.liveTime$.subscribe(b=>{var A;(A=l==null?void 0:l.onLiveTime)==null||A.call(l,b)})).add(P.info.isStalled$.subscribe(b=>{var A;(A=l==null?void 0:l.onStalledChanged)==null||A.call(l,b)})).add(le.events.loadStarted$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onLoadStarted)==null?void 0:A.call(b)})).add(le.events.loadEnded$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onLoadEnded)==null?void 0:A.call(b)})).add(le.events.loadError$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onLoadError)==null?void 0:A.call(b)})).add(le.events.init$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onInit)==null?void 0:A.call(b)})).add(le.events.ready$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onReady)==null?void 0:A.call(b)})).add(le.events.started$.subscribe(b=>{var A,re;return(re=(A=l==null?void 0:l.adsInfo)==null?void 0:A.onStarted)==null?void 0:re.call(A,b)})).add(le.events.timeRemained$.subscribe(b=>{var A,re;return(re=(A=l==null?void 0:l.adsInfo)==null?void 0:A.onTimeRemained)==null?void 0:re.call(A,b)})).add(le.events.ended$.subscribe(b=>{var A,re;return(re=(A=l==null?void 0:l.adsInfo)==null?void 0:A.onCompleted)==null?void 0:re.call(A,b)})).add(le.events.empty$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onEmpty)==null?void 0:A.call(b)})).add(le.events.clicked$.subscribe(b=>{var A,re;return(re=(A=l==null?void 0:l.adsInfo)==null?void 0:A.onClicked)==null?void 0:re.call(A,b)})).add(le.events.closed$.subscribe(b=>{var A,re;return(re=(A=l==null?void 0:l.adsInfo)==null?void 0:A.onClosed)==null?void 0:re.call(A,b)})).add(le.events.error$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onError)==null?void 0:A.call(b)})),zt=new Fu,Qt=()=>{zt.add(P.events.log$.subscribe(b=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${b.component}`,b.message)})).add(J.log$.subscribe(b=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${b.component}.`,b.message)}))},Wt=()=>{zt.unsubscribe()},Ke=(b,A)=>{x.log("start camera manual rotation",{mx:b,my:A}),P.startCameraManualRotation(b,A)},Xe=(b=!1)=>{x.log("stop camera manual rotation",{immediate:b}),P.stopCameraManualRotation(b)},It=(b,A,re)=>{x.log("move camera focus px",{xpx:b,ypx:A,dt:re}),P.moveCameraFocusPX(b,A,re)},pe=()=>{P.holdCamera()},Zt=()=>{P.releaseCamera()},At=jn(P.info.position$.getValue(),b=>{let A,re,Me=()=>{let lt=P.info.playbackState$.getValue(),mt=P.info.isLive$.getValue(),Rt=P.info.duration$.getValue(),Z=P.info.position$.getValue();if([ns.PLAYING,ns.PAUSED].includes(lt)){let gt=mt?Z-Rt:P.getExactTime();gt!==re&&b(gt),re=gt}A=requestAnimationFrame(Me)};return Me(),()=>cancelAnimationFrame(A)}),ii=Pt(_e),Ot=Pt(P.info.playbackState$),xt=Pt(P.info.currentBuffer$),si=Pt(P.info.isEnded$),Mt=Pt(P.info.isLive$),ni=ce.features.playbackRate?Pt(P.info.canChangePlaybackSpeed$):jn(!1),Xt=Pt(P.info.liveBufferTime$),dn=Pt(P.info.volume$),Bt=Pt(P.info.muted$),qi=sa(P.info.autoQualityLimits$.pipe(n4(({max:b})=>b!==void 0)),((bs=P.info.autoQualityLimits$.getValue())==null?void 0:bs.max)!==void 0),en=Pt(P.info.autoQualityLimitingAvailable$),gi=Pt(P.info.availableQualities$),wi=Pt(P.info.availableQualitiesFps$),De=Pt(P.info.chromecastState$),it=Pt(P.info.chromecastDeviceName$),St=Pt(P.info.currentFormat$),bi=Pt(P.info.throughputEstimation$),ki=Pt(P.info.videoBitrate$),tn=Pt(P.info.intrinsicVideoSize$),Ai=Pt(P.info.duration$),mn=Pt(P.info.isAudioAvailable$),mi=null,Ui=P.info.isBuffering$,zi=jn(Ui.getValue(),b=>{let A=Ui.subscribe(re=>{re&&mi===null?mi=window.setTimeout(()=>{b(Ui.getValue()),mi=null},ce.loaderDelay):b(re)});return()=>{A.unsubscribe(),mi&&clearTimeout(mi)}}),Ht=()=>{mi&&clearTimeout(mi),mi=null},Ci=ei([Ai,Mt],([b,A])=>A?-b:b),ui=ei([Ot],([b])=>b===ns.PLAYING),Kt=Pt(P.info.atLiveEdge$),In=Pt(P.info.atLiveDurationEdge$),vi=Pt(P.info.position$),pn=ei([vi,Ai],([b,A])=>isFinite(b)&&isFinite(A)&&!!A),Pn=ei([De],([b])=>b===Yv.CONNECTED),nn=Pt(P.info.availableVideoStreams$),_n=ce.features.audioLanguages?Pt(P.info.availableAudioStreams$):jn([]),Si=Pt(P.info.currentVideoStream$),on=Pt(P.info.currentAudioStream$),jt=b=>{b.language&&ma(b.language),P.setVideoStream(b)},qn=b=>{b.language&&ma(b.language),P.setAudioStream(b)},Wi=b=>{let A;if(b.length===1&&(A=b.at(0)),A!=null||(A=b.find(Me=>"isDefault"in Me&&Me.isDefault)),A)return A;let re=bd();return re&&(A=b.find(({language:Me})=>re===Me)),A!=null||(A=b.at(0)),A},Ki=!1;Ut.add(P.info.availableAudioStreams$.subscribe(b=>{if(!Ki&&b.length){let A=Wi(b);A&&(P.setAudioStream(A),Ki=!0)}}));let xi=!1;Ut.add(P.info.availableVideoStreams$.subscribe(b=>{if(!xi&&b.length){let A=Wi(b);A&&(P.setVideoStream(A),xi=!0)}}));let yi=Oe(void 0),Mi=Pt(P.info.isAutoQualityEnabled$,b=>b&&yi.set(void 0)),rn=Pt(P.info.currentQuality$,()=>yi.set(void 0)),sn=ei([yi,rn],([b,A])=>b!=null?b:A),Ti=ei([gi,wi,Mi,sn,St],([b,A,re,Me,lt])=>{let mt=[];lt!==os.MPEG&&mt.push({value:"auto",displayValue:et("auto_quality_option"),selected:re});let Rt=b.filter(Z=>!$v(Z));for(let Z of Rt){let gt=A[Z];mt.push({value:Z,displayValue:`${Z}${gt?ym(gt):""}`,selected:re?!1:Z===Me})}return mt}),Ii=Pt(P.info.currentPlaybackRate$),ci=ei([Ii,Kt,In],([b,A,re])=>{let Me=re||k?1:ce.controls.playbackRateMin,lt=A?1:ce.controls.playbackRateMax,mt=ce.controls.playbackRateStep,Rt=[];for(let Z=Me;Z<=lt;Z+=mt)Rt.push({value:Z,displayValue:Z===1?et("playback_rate_1"):et("playback_rate",{multiplier:Z.toString(10)}),selected:b===Z});return Rt}),Gt={displayValue:et("subtitles_off"),value:"off"},qt=Oe(Qe({},Gt)),Li=ce.features.subtitles?Pt(P.info.availableTextTracks$):jn([]),Vi=rd(),ln=ei([Li,qt],([b,A],re)=>{var mt;let Me=[],lt=b.find(({language:Rt})=>Rt===A.value);if(lt!=null&&lt.url){let[,Rt]=(mt=Vi.find(lt.url))!=null?mt:[];if(Rt){re(Rt);return}Ee.download(lt.url).then(Z=>{if(!Z||Ee.isDestroyed())return;let gt=new wm,co=lt.language,z_=!!lt.isAuto,W_=gt.parse(Z);co&&Me.push({lang:co,subtitles:W_,isAuto:z_}),Vi.add(lt.url,Me),Ye(qt).value===A.value&&re(Me)}).catch(Z=>{var gt;(gt=X==null?void 0:X.oneStat)==null||gt.logError({errorType:"Subtitles download",fatal:!1}),Ae==null||Ae.report(Z,{errorType:"Subtitles download",fatal:!1})})}re(Me)}),ut=ei([Ii,ui,qt],([b,A,re],Me)=>{let Rt;if(P.info.isLive$.getValue()&&A&&re.value!==Gt.value){let gt=()=>{let co=1e3/(3*b);Rt=setTimeout(gt,co),Me(Date.now())};return gt(),()=>clearTimeout(Rt)}}),Ri=ei([Li,qt],([b,A])=>{if(!b.length)return[];let re=[];for(let{language:Me,isAuto:lt}of b){let mt=Me&&pl(Me);Me&&mt&&re.push({displayValue:lt?et("subtitles_auto",{language:mt}):mt,value:Me,selected:(A==null?void 0:A.value)===Me,isAuto:lt})}return re.length?(re.unshift(yt(Qe({},Gt),{selected:(A==null?void 0:A.value)===Gt.value})),re):[]}),fi={available:[],prev:[]},Bi=ei([At,qt,ln,ut],([b,A,re,Me])=>{var mt,Rt;let lt=P.info.isLive$.getValue();if(lt&&fi.prev!==re){let Z=re.find(({lang:co})=>co===A.value),gt=fi.prev.find(({lang:co})=>co===A.value);if(Z){let co=yt(Qe({},Z),{subtitles:[...(mt=gt==null?void 0:gt.subtitles)!=null?mt:[],...Z.subtitles]});fi.available=[co],fi.prev=re}}if(A&&A.value!==Gt.value){let Z=lt?(Rt=Ie==null?void 0:Ie.currentTime)!=null?Rt:0:b,gt=lt?fi.available:re;return Cm(Z,A,gt,lt)}}),Ni=ei([Bi],([b])=>b!=null&&b.texts?b.texts:[]),je=Oe(!0),Un=ei([xt,Ci,vi,Xt],([b,A,re,Me])=>{var Z;let lt=(Z=b==null?void 0:b.end)!=null?Z:0;if(!Me)return lt/A;let Rt=-re+Me-A;return(lt-Rt)/A}),an=Pt(P.info.availableSources$),En=ei([an],([b])=>Object.keys((b==null?void 0:b[os.MPEG])||{}).length>0),hn=()=>{var re,Me,lt;let b=Object.keys(((Me=(re=P.info.availableSources$)==null?void 0:re.getValue())==null?void 0:Me[os.MPEG])||{}),A=Xv(b)||a4.Q_144P;return(lt=Te.sources[os.MPEG])==null?void 0:lt[A]},ji=()=>{var A;let b=hn();if(b)x.log("download video",{url:b}),id(b,((A=Te==null?void 0:Te.meta)==null?void 0:A.title)||"video");else{let re="There is no URL for download video";x.log("download video",{message:re}),Pe({message:re})}},Gi=()=>{Pe({message:"toggle muted"});let b=P.info.muted$.getValue(),A=P.info.volume$.getValue(),re=A===0||b,Me=!re;x.log("toggle muted",{muted:b,volume:A,soundIsOff:re,nextValue:Me}),Mn(Me)},Yi=()=>{x.log("close settings menu"),Tt.ui.settingsMenuVisible.set(!1)},gn=b=>{x.log("open settings menu",{wasOpenedByKeyboard:b}),Tt.ui.settingsMenuOpenedByKeyboard.set(!!b),Tt.ui.settingsMenuVisible.set(!0)},pi=b=>{Ye(Tt.ui.settingsMenuVisible)?Yi():gn(b)},An=(b,A=b,re=!1)=>{var mt,Rt,Z;let Me=!re,lt=P.info.muted$.getValue();Pe({message:`set volume, volume: ${b}, preferredVolume: ${A}, internalCall: ${Me}`}),x.log("set volume",{volume:b,preferredVolume:A,internalCall:Me}),P.setVolume(b),le.setVolume(b),Me&&((mt=l==null?void 0:l.onVolumeChange)==null||mt.call(l,b)),ua(A),lt?(P.setMuted(!1),Me&&((Rt=l==null?void 0:l.onUnmute)==null||Rt.call(l)),Es(!1)):!lt&&b===0&&(P.setMuted(!0),Me&&((Z=l==null?void 0:l.onMute)==null||Z.call(l)),Es(!0))},Mn=(b,A=!1)=>{var lt,mt,Rt,Z;let re=!A,Me=P.info.volume$.getValue();if(Pe({message:`set muted, currentVolume: ${Me}, mute: ${b}, internalCall: ${re}`}),x.log("set muted",{mute:b,currentVolume:Me,internalCall:re}),P.setMuted(b),le.setVolume(b?0:Me),Es(b),re&&(b?(lt=l==null?void 0:l.onMute)==null||lt.call(l):(mt=l==null?void 0:l.onUnmute)==null||mt.call(l)),Me===0){let gt=(Rt=Ps())!=null?Rt:ce.volumeDefault;gt===0&&(gt=ce.volumeMinRestore,ua(gt)),P.setVolume(gt),le.setVolume(gt),re&&((Z=l==null?void 0:l.onVolumeChange)==null||Z.call(l,gt))}},Ln=Oe(!1),bn=b=>{x.log("set looped",{isLooped:b}),Ln.set(b),P.setLooped(b)};bn(q);let vn=()=>{var b,A;(A=(b=l==null?void 0:l.uiInfo)==null?void 0:b.onReportProblem)==null||A.call(b)},Vn=b=>{Pe({message:`set autoplayNextEnabled, value: ${b}`}),x.log("set autoplay next enabled",{autoplayNextEnabled:b}),Tt.ui.autoplayNextEnabled$.set(b),wd(b)},yn=()=>{P.prepare()},zn=()=>{Hn(Tt);let b=Ye(Tt.ui.controls.disabledControls$),A=Ye(Tt.playerPhase),re={playerPhase:A,isInteractive:k,isVideoEnded:!1,action:"none"};if(b.has("PLAY_BUTTON"))return;if(Pe({message:"toggle play"}),A==="ads"){re.action="play",x.log("toggle adman play",re),le.togglePlay();return}let Me=()=>{var mt;Pe({message:"toggle play, call player.play"}),re.action="play",P.play(),(mt=l==null?void 0:l.onPlay)==null||mt.call(l)},lt=()=>{var mt;Pe({message:"toggle play, call player.pause"}),re.action="pause",P.pause(),(mt=l==null?void 0:l.onPause)==null||mt.call(l)};if(P.info.isEnded$.getValue()){if(Pe({message:"toggle play, video ended, seek to 0"}),kt.next(),Ct.next(Ho.REWIND),k){v==null||v();return}P.seekTime(0),Me()}else P.info.playbackState$.getValue()!==ns.PLAYING?Me():lt();x.log("toggle play",re)},Di=b=>{Pe({message:`set quality, quality: ${b}`}),x.log("set quality",{quality:b}),P.setAutoQuality(b==="auto"),b!=="auto"?(md(t,b),yi.set(b),P.setQuality(b)):ca()},un=b=>{Pe({message:`set trafficSavingEnabled, value: ${b}`}),x.log("set traffic saving enabled",{trafficSavingEnabled:b}),P.setAutoQualityLimits({max:b?ce.trafficSavingLimit:void 0}),hd(b)},oi=b=>{x.log("set playback rate",{playbackRate:b}),P.setPlaybackRate(b),ce.features.saveRate&&oe&&!P.info.isLive$.getValue()&&vd(b)},oo=()=>{let b=Ye(ci),A=b.findIndex(({selected:Me})=>Me);if(A===b.length-1)return;let re=b[A+1];oi(re.value)},ro=()=>{let b=Ye(ci),A=b.findIndex(({selected:Me})=>Me);if(A===0)return;let re=b[A-1];oi(re.value)},Wn=b=>{x.log("set subtitles",Qe({},b)),b&&b.value!==Gt.value&&Ze.next(b.isAuto?b.value+"_auto":b.value),qt.set(b)},di=()=>{x.log("toggle subtitles");let b=Ye(Ri),A=Ye(qt),re=Ye(fe);if((A==null?void 0:A.value)===Gt.value){let Me=b.filter(lt=>lt.value!==Gt.value).find(lt=>lt.value===re)||b[1];Wn(Me!=null?Me:Qe({},Gt))}else Wn(yt(Qe({},Gt),{selected:!1}))},cn=(b,A,re=!0)=>{var Me;if(Pe({message:`seek to time, time: ${b}`}),x.log("seek to time",{time:b,action:A,forcePrecise:re}),Ct.next(A),P.info.isLive$.getValue()){let lt=P.info.duration$.getValue(),mt=Math.min(0,lt+b);P.seekTime(mt,re)}else{if(T!=null&&T.getValue())return;P.info.isEnded$.getValue()&&(Pe({message:"seek after ended, call callbacks.onPlay"}),(Me=l==null?void 0:l.onPlay)==null||Me.call(l)),P.seekTime(gr(b),re)}},Qn=b=>{Pe({message:`seek to episode start time: ${b}`}),x.log("seek to episode start time",{time:b}),cn(b,Ho.EPISODE,!0)},Kn=(b,A)=>{Pe({message:`seek to percent, percent: ${b}`}),x.log("seek to percent",{percent:b,action:A});let re=Math.round(Ye(Ci)*b);cn(re,A,!1)},so=b=>{Pe({message:`seek external, time: ${b}`}),x.log("seek external",{time:b}),Ct.next(Ho.UNKNOWN),P.seekTime(P.info.isLive$.getValue()?-b:b)},Zn=b=>{var Me,lt;let A=(Me=b.max)!=null?Me:"none",re=(lt=b.min)!=null?lt:"none";Pe({message:`set auto quality limitation. Max: ${A}. Min: ${re}`}),x.log("set auto quality limits",{max:A,min:re}),P.setAutoQualityLimits(b)},Xn=b=>{Pe({message:`seek external to episode start time: ${b}`}),x.log("seek external to episode start time",{time:b}),cn(b,Ho.EPISODE,!0)},wn=b=>{Pe({message:`set playback rate to: ${b}`}),x.log("set playback rate external",{playbackRate:b}),P.setPlaybackRate(b)},xn=Oe(void 0),kn=Oe(!1),lo=b=>{Pe({message:`start scrubbing, progress: ${b}`}),x.log("start scrubbing",{progress:b}),kn.set(!0),ie(b)},ie=b=>{xn.set(b)},bt,Qi,Oi=()=>{xn.set(void 0),kn.set(!1)},te=()=>{clearTimeout(Qi),clearTimeout(bt),bt=window.setTimeout(()=>{Oi()},500),Ie==null||Ie.removeEventListener("seeked",te)},Fi=b=>{Pe({message:`complete scrubbing, progress: ${b}`}),x.log("complete scrubbing",{progress:b}),Kn(b,Ho.SLIDER),Ye(Tt.ui.isMobile)&&Ye(Tt.state.currentFormat$)===os.HLS?(Ie==null||Ie.addEventListener("seeked",te),Qi=window.setTimeout(()=>{te()},300)):Oi()},zo=ei([At,Ci,xn],([b,A,re],Me)=>{Me(e4(re)?re*A:b)}),Io=Oe({width:0,height:0}),Po=ei([Io],([{width:b}],A)=>{let re=im(b);A(re)}),_o=Oe(!1),ho=W.filter(b=>nd(b)),pr=ei([Po,_o],([b,A])=>A?ho.filter(re=>!re.hideOnMobile):ho.filter(re=>{var Me;return!((Me=re.hideOnDesktopGridTypes)!=null&&Me.includes(b))})),Zi=Oe(W.filter(b=>od(b))),go=ei([Zi,Po],([b,A])=>b.filter(re=>{var Me;return!((Me=re.hideOnDesktopGridTypes)!=null&&Me.includes(A))})),Jn=ei([go,pr],([b,A])=>[...ce.features.additionalButtonsDesktopControlPanelRight?b.filter(re=>re.type==="desktop-control-panel-right"):[],...ce.features.additionalButtons?A.map((re,Me)=>{var lt;return{id:Me,weight:Me,type:"desktop-control-panel-right",testId:re.testId,icon:re.iconUrl,onClick:re.onClick,ariaLabel:(lt=re.ariaLabel)!=null?lt:re.tooltip,tooltipText:re.tooltip}}):[]]),fn=Oe(ne),Eo=ei([fn],([b])=>ce.features.additionalSettingsMenuItems?b.map(A=>A.type==="SWITCH"?yt(Qe({},A),{onClick:A.onChangeEnabled}):A):[]),Wo=(b,A)=>{let re=Ye(Zi).map(Me=>Me.id!==b?Me:Qe(Qe({},Me),A));Zi.set(re)},Ko=b=>{let A=Ye(Zi);if(A.some(re=>re.id===b.id)){Pe({message:`Additional button with id: "${b.id}" was exist! Can't add more with the same id`});return}A.push(b),Zi.set(A)},xo=b=>{let A=Ye(Zi);if(!A.some(re=>re.id===b)){Pe({message:`Can't find additional button with id: "${b}"! Can't remove item with this id`});return}A=A.filter(re=>re.id!==b),Zi.set(A)},jo=(b,A)=>{let re=Ye(fn).map(Me=>Me.id!==b?Me:Qe(Qe({},Me),A));fn.set(re)},Go=b=>{let A=Ye(fn);if(A.some(re=>re.id===b.id)){Pe({message:`Settings menu item with id: "${b.id}" was exist! Can't add more with the same id`});return}A.push(b),fn.set(A)},Yo=b=>{let A=Ye(fn);if(!A.some(re=>re.id===b)){Pe({message:`Can't find settings menu item with id: "${b}"! Can't remove item with this id`});return}A=A.filter(re=>re.id!==b),fn.set(A)},Rn=Oe(de),Qo=ei([Rn],([b])=>ce.features.additionalContextMenuItems?b:[]),Zo=(b,A)=>{let re=Ye(Rn).map(Me=>Me.id!==b?Me:Qe(Qe({},Me),A));Rn.set(re)},Xo=b=>{let A=Ye(Rn);if(A.some(re=>re.id===b.id)){Pe({message:`Context menu item with id: "${b.id}" was exist! Can't add more with the same id`});return}A.push(b),Rn.set(A)},Q=b=>{let A=Ye(Rn);if(!A.some(re=>re.id===b)){Pe({message:`Can't find context menu item with id: "${b}"! Can't remove item with this id`});return}A=A.filter(re=>re.id!==b),Rn.set(A)},Lt=ei([_o,nt],([b,A],re)=>{re(b&&A)}),Xi=()=>{Ct.next(Ho.LIVE),Pe({message:"switch to active live"}),x.log("switch to active live"),P.seekTime(0),P.info.playbackState$.getValue()!==ns.PLAYING&&Tt.actions.internal.togglePlay()},Hi=()=>{x.log("skip adman"),le.skip()},ao=(b=!0)=>{Hn(Tt),Pe({message:`switch from ads to video, callPlay: ${b}`}),x.log("switch from ads to video",{callPlay:b}),Ne.set("video"),b&&P.play()},Cn=()=>{Hn(Tt),Pe({message:"switch from video to ads"}),x.log("switch from video to ads"),Tt.actions.internal.pause(),ri(),Ne.set("ads")},uo=b=>{Hn(Tt);let A=b?"LiveWaitingStart":"thumb";x.log("set live waiting start",{state:b,playerPhase:A}),Ne.set(A)},Jo=b=>{Hn(Tt);let A=b?"LiveWaitingRecover":"thumb";x.log("set live waiting recover",{state:b,playerPhase:A}),Ne.set(A)},bo=b=>{Hn(Tt);let A=b?"LiveWaitingRecord":"thumb";x.log("set live waiting record",{state:b,playerPhase:A}),Ne.set(A)},_r=()=>(Hn(Tt),x.log("get debug text data"),ed(P,Te,Tt)),Wr=()=>(Hn(Tt),JSON.stringify(z.getFinishedSpans())),Kr=()=>(Hn(Tt),td(P,Te,Tt)),xr=()=>Ie,jr=()=>{Pe({message:"toggle chromecast"}),x.log("toggle chromecast"),P.toggleChromecast()},hr=b=>{var re;if(Hn(Tt),P.info.isEnded$.getValue())return;let A=!b;if(Ye(Tt.playerPhase)==="ads"){Pe({message:`pause ads, internalCall: ${A}`}),x.log("pause ads",{internalCall:A}),le.pause();return}Pe({message:`pause video, internalCall: ${A}`}),x.log("pause video",{internalCall:A}),A&&((re=l==null?void 0:l.onPause)==null||re.call(l)),P.pause()},Yt=b=>{var re;Hn(Tt);let A=!b;if(Ye(Tt.playerPhase)==="ads"){Pe({message:`play ads, internalCall: ${A}`}),x.log("play ads",{internalCall:A}),le.play();return}Pe({message:`play video, internalCall: ${A}`}),x.log("play video",{internalCall:A}),A&&((re=l==null?void 0:l.onPlay)==null||re.call(l)),P.play()},Bn=b=>{Hn(Tt);let A=!b;if(Ye(Tt.playerPhase)==="ads"){Pe({message:"player cannot be stopped during ads via external method"});return}Pe({message:`player will be stopped, internalCall: ${A}`}),E==null||E()},Ao=(b,A)=>{Hn(Tt),Pe({message:`first start, show ads: ${b}, internalCall: ${!A}`}),x.log("first start",{showAds:b,external:A}),b?Ne.set("ads"):(Ne.set("video"),A?P.play():Tt.actions.internal.togglePlay())},$o=()=>(Pe({message:"getting time codes"}),c),Gr=()=>{let b=$o();if(!b||[0,1].includes(b.length))return;let A=P.info.position$.getValue();return b.find(re=>re.time>A)},Yl=b=>{let A=b;A||(A=Gr());let re=P.info.position$.getValue();x.log("seek to next episode",Qe({currentTime:re},A)),A&&(Pe({message:"seek to next episode"}),cn(A.time,Ho.EPISODE,!0))},ps=()=>{let b=$o();if(!b||[0,1].includes(b.length))return;let A=P.info.position$.getValue(),re=b.findIndex(lt=>lt.time>A),Me=re===-1?b.length-2:re-2;if(!(Me<0))return b[Me]},Yr=b=>{let A=b;A||(A=ps());let re=P.info.position$.getValue();x.log("seek to prev episode",Qe({currentTime:re},A)),A&&(Pe({message:"seek to prev episode"}),cn(A.time,Ho.EPISODE,!0))},Ql=()=>(Pe({message:"getting preview thumbs data"}),x.log("get preview thumbs data",Qe({},m)),m),Zl=()=>pt(void 0,null,function*(){let b=ee==null?void 0:ee.isActive(),A="none";ee!=null&&ee.isActive()?(A="remove",yield ee==null?void 0:ee.remove()):(A="request",yield ee==null?void 0:ee.request()),x.log("toggle picture in picture",{isActive:b,action:A})}),Xl=(b=-90)=>{x.log("rotate video",{alphaDiff:b}),xe.update(A=>A+b)},Mo=Oe([]);F==null||F.subscribe(b=>{let A=[];for(let re=0;re<b.length;re++){let{range:[Me,lt],subjects:mt}=b[re];re===0&&Me!==0&&A.push({time:0,text:"",interactive:!1,completed:!0}),A.push({time:Me/1e3,text:"",interactive:!0,completed:!mt.length}),lt!==1/0&&A.push({time:lt/1e3,text:"",interactive:!1,completed:!0})}Mo.set(A)});let Qr=Oe(!1);T==null||T.subscribe(b=>{b&&Ye(kn)&&Oi()});let gr=b=>{if(!k)return b;let A=Ye(Mo),re=Ye(Ci),lt=Ye(vi)/re,mt=A.find(Rt=>Rt.interactive&&!Rt.completed&&Rt.time>lt);return typeof(mt==null?void 0:mt.time)=="number"?Math.min(b,mt.time-.05):b},Sn=()=>{Tt.ui.episodes.panelOpened$.set(!1)},Nn=()=>{x.log("destroy store"),clearTimeout(Qi),clearTimeout(bt),Ut.unsubscribe(),zt.unsubscribe(),P.destroy(),le.destroy(),X==null||X.destroy(),Ae==null||Ae.destroy(),at.unsubscribe(),Et==null||Et.disconnect(),Et=null,Ee.destroy()},Tt={interfaceLanguage$:fe,isCyrillicRelatedInterface$:Se,initVideo:dt,videoId:t,isClip:n,playerPhase:tt,vsid:We,state:{positionExact$:At,positionWithScrubbing$:zo,duration$:Ci,playbackState$:Ot,isPlaying$:ui,isLoaderVisible:zi,bufferedProgress$:Un,isLive$:Mt,canChangePlaybackSpeed$:ni,isActiveLive$:Kt,isOldestAvailableLive$:In,isRewindableLive$:pn,isEnded$:si,muted$:Bt,volume$:dn,trafficSavingEnabled$:qi,autoQualityLimitingAvailable$:en,availableVideoStreams$:nn,availableAudioStreams$:_n,videoStream$:Si,audioStream$:on,currentQuality$:sn,isAutoQualityEnabled$:Mi,availableQualities$:Ti,currentPlaybackRate$:Ii,availablePlaybackRates$:ci,currentSubtitle$:qt,availableSubtitlesList$:Ri,currentSubtitleCaptions$:Ni,isAutoSubtitleCaptionVisible$:je,chromecastState$:De,chromecastDeviceName$:it,chromecastConnected$:Pn,currentFormat$:St,throughputEstimation$:bi,videoBitrate$:ki,videoSize$:tn,errorLog$:st,crashed$:nt,isAudioAvailable$:mn,isAudioDisabled:!!s,canDownload:ce.features.download&&!!a,availableSources$:an,hasMpegSources$:En,isInteractive:k,showInteractiveGraph:ce.features.interactiveGraph,showSeekToInteractive:ce.features.seekToInteractive,showPlayPrevChapter:ce.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ce.features.interactiveTimeIndicator&&!!Ye(Mo).length,interactiveEpisodes$:Mo,isInteractiveTime$:T?Pt(T):Oe(!1),graphIsOpened$:Oe(!1),isInteractiveExpectation$:Qr,hasInteractiveBranches:H,playPrevChapterDisabledTooltip:U,looped$:Ln,loadedMetadata$:Oe(!1)},ui:{controlsVisible:Oe(!1),touched:Oe(!1),controls:{prevButton:Oe(void 0),playButton:Oe(void 0),replayButton:Oe(void 0),nextButton:Oe(void 0),playPrevChapterButton:Oe(void 0),seekToInteractiveButton:Oe(void 0),interactiveGraphButton:Oe(void 0),liveButton:Oe(void 0),time:Oe(void 0),episodes:Oe(void 0),volume:Oe(void 0),subtitles:Oe(void 0),settings:Oe(void 0),context:Oe(void 0),chromecast:Oe(void 0),pip:Oe(void 0),fullscreen:Oe(void 0),vkLogo:Oe(void 0),interactiveTimeIndicator:Oe(void 0),timeline:Oe(void 0),autoplayNextToggle:Oe(void 0),additionalButtons:W.length?W.reduce(b=>[...b,Oe(void 0)],[]):[],disabledControls$:Fe},modals:{hotKeyMap:{show:Oe(!1),data:Oe({title:"",closeBtnText:"",groups:[]})}},isFullscreen:$,rotateAlpha:xe,isAutoplay:Oe(!1),debugPanelVisible:Oe(!1),episodes:{panelOpened$:Oe(!1),openedByKeyboard$:Oe(!1)},contextMenu:{visible$:Oe(!1),btnRef$:Oe(void 0),openedByBtnKeyboard$:Oe(!1),openedByHotKey$:Oe(!1),lastActiveElem$:Oe(void 0),showContextMenuBtn$:Oe(!1),position$:Oe({top:0,left:0})},playerSize:Io,isMobile:_o,mobileNotReportControlHidden$:Lt,mobileUnmuteButtonExpanded:Oe(!1),mobileUnmuteButtonVisible:Oe(!1),icon3DVideoVisible:Oe(!1),settingsMenuVisible:Oe(!1),settingsMenuOpenedByKeyboard:Oe(!1),scrubbingInProgress:kn,is3DVideo:Oe(!1),isPictureInPictureActive$:ii,pictureInPictureType$:jn(Ce),currentGridType$:Po,additionalButtonsDeprecated$:pr,additionalDesktopControlPanelRightButtons$:Jn,additionalSettingsMenuItems$:Eo,additionalContextMenuItems$:Qo,interactiveHideMobileControls:Oe(!1),overlayContainer$:Oe(void 0),startedByKeyboard$:Oe(!1),autoplayNextEnabled$:Oe(!1)},ads:{position:Oe(0),duration:Oe(0),playbackState:Oe("inactive"),canSkip:Oe(!1),secondsToWatchBeforeSkip:Oe(0),postrollPassed:Oe(!1)},webApi:{pictureInPictureApi:ee,annotationsApi:ge},actions:{internal:{preload:yn,firstStart:b=>Ao(b,!1),play:()=>Yt(!1),pause:()=>hr(!1),togglePlay:zn,toggleMuted:Gi,toggleSettingsMenu:pi,openSettingsMenu:gn,closeSettingsMenu:Yi,setVolume:An,setVideoStream:jt,setAudioStream:qn,setQuality:Di,setTrafficSavingEnabled:b=>un(b),setPlaybackRate:oi,incrementPlaybackRate:oo,decrementPlaybackRate:ro,setSubtitle:Wn,toggleSubtitle:di,togglePictureInPicture:Zl,startScrubbing:lo,progressScrubbing:ie,completeScrubbing:Fi,toggleChromecast:jr,switchToActiveLive:Xi,switchFromAdsToVideo:ao,switchFromVideoToAds:Cn,skipAd:Hi,setLiveWaitingStart:uo,setLiveWaitingRecover:Jo,setLiveWaitingRecord:bo,getDebugTextData:_r,getTraceTextData:Wr,getDebugPanelData:Kr,getVideoElement:xr,seekTime:(b,A,re)=>cn(b,A,re),clearDelayedBufferingCheckTimeout:Ht,seekEpisodeStartTime:Qn,seekToPercent:Kn,getNextEpisode:Gr,seekToNextEpisode:Yl,getPrevEpisode:ps,seekToPrevEpisode:Yr,startLogging:Qt,stopLogging:Wt,startCameraManualRotation:Ke,stopCameraManualRotation:Xe,moveCameraFocusPX:It,holdCamera:pe,releaseCamera:Zt,getVideoEpisodes:$o,getPreviewThumbsData:Ql,downloadVideo:ji,addLanguage:_a,setLanguage:$e,nextMovie:_t,videoRotate:Xl,correctSeekTimeToInteractive:gr,replayInteractive:v,setLooped:bn,reportProblem:vn,setAutoplayNextEnabled:Vn},external:{firstStart:b=>Ao(b,!0),play:()=>Yt(!0),pause:()=>hr(!0),stop:()=>Bn(!0),seekTime:b=>so(b),seekEpisodeStartTime:b=>Xn(b),setPlaybackRate:b=>wn(b),setAutoQualityLimits:b=>Zn(b),setMuted:b=>Mn(b,!0),setVolume:b=>An(b,b,!0),returnFocusToEpisodes:Sn,updateAdditionalSettingsItem:jo,addAdditionalSettingsItem:Go,removeAdditionalSettingsItem:Yo,updateAdditionalContextItem:Zo,addAdditionalContextItem:Xo,removeAdditionalContextItem:Q,updateAdditionalButton:Wo,addAdditionalButton:Ko,removeAdditionalButton:xo}},callbacks:l,setUiCallbacks:b=>{rt=Qe({},b)},getAdmanWrapper:()=>le,getLogger:()=>J,destroy:Nn};return Tt};var vl=(i,e,t,n)=>{var a;if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"],s=i.getBoundingClientRect();for(let[l,u]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(l)){let c=(a=t[l])==null?void 0:a.getBoundingClientRect(),m=(n||r.includes(l))&&!!c&&!!(c.right-c.left);u.set({positionStartX:0,positionEndX:0,left:m?Math.round(c.left-s.left):0,right:m?Math.round(c.right-s.left):0,top:m?Math.round(c.top-s.top):0,bottom:m?Math.round(c.bottom-s.top):0,isDisplayed:m})}};var yl=(i,e,t)=>pt(void 0,null,function*(){yield eo(),e&&t&&(t.focus(),i.set(!1))});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:"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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function c4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Hu=class extends N{constructor(e){super(),O(this,e,c4,u4,B,{})}},Im=Hu;function f4(i){let e,t;return e=new Im({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function d4(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:[f4]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function m4(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,s=ot(),a=s.ui.contextMenu.visible$;D(i,a,F=>t(3,n=F));let l=s.ui.contextMenu.openedByBtnKeyboard$,u=s.ui.contextMenu.showContextMenuBtn$,c=s.ui.contextMenu.position$,m=s.ui.contextMenu.btnRef$,h,C=F=>{let T=Er(F),v=Xd(h);c.set(v),l.set(T),a.set(!n)},g=()=>{u.set(!0)},S=()=>{u.set(!1)};function k(F){h=F,t(2,h)}return i.$$set=F=>{"disabled"in F&&t(0,o=F.disabled),"ariaLabel"in F&&t(1,r=F.ariaLabel)},i.$$.update=()=>{i.$$.dirty&4&&h&&m.set(h)},[o,r,h,n,a,C,g,S,k]}var qu=class extends N{constructor(e){super(),O(this,e,m4,d4,B,{disabled:0,ariaLabel:1})}},Pm=qu;function p4(i){be(i,"svelte-17imlp9",".interactive-episode-icon-animated.svelte-17imlp9{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.invisible.svelte-17imlp9{opacity:0;visibility:hidden}.fullscreen.svelte-17imlp9:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.svelte-17imlp9{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.svelte-17imlp9{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.svelte-17imlp9{top:40px;right:16px}}@keyframes svelte-17imlp9-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-17imlp9{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-17imlp9-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.svelte-17imlp9{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.svelte-17imlp9{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.svelte-17imlp9{display:none}")}function _4(i){let e,t;return e=new nl({props:{completed:!0}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function h4(i){let e,t,n,o,r,s,a,l,u,c;function m(C){i[22](C)}let h={tooltipContent:G("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[_4]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new Ji({props:h}),ve.push(()=>ze(t,"ref",m)),t.$on("click",i[14]),{c(){e=I("div"),R(t.$$.fragment),o=Y(),r=I("div"),s=Y(),a=I("div"),f(r,"class","ref-block svelte-17imlp9"),j(r,"hidden",i[1]),f(a,"class","pulse svelte-17imlp9"),j(a,"paused",i[4]),f(e,"class","interactive-episode-icon-animated svelte-17imlp9"),j(e,"mobile",i[2]),j(e,"fullscreen",i[6]),j(e,"invisible",i[1])},m(C,g){w(C,e,g),L(t,e,null),_(e,o),_(e,r),i[23](r),_(e,s),_(e,a),i[24](a),l=!0,u||(c=[ke(e,"mousemove",vt(i[21])),ke(e,"mouseleave",i[15])],u=!0)},p(C,g){let S={};g[0]&32&&(S.tooltipActive=C[5]),g[1]&1&&(S.$$scope={dirty:g,ctx:C}),!n&&g[0]&1&&(n=!0,S.ref=C[0],Ue(()=>n=!1)),t.$set(S),(!l||g[0]&2)&&j(r,"hidden",C[1]),(!l||g[0]&16)&&j(a,"paused",C[4]),(!l||g[0]&4)&&j(e,"mobile",C[2]),(!l||g[0]&64)&&j(e,"fullscreen",C[6]),(!l||g[0]&2)&&j(e,"invisible",C[1])},i(C){l||(d(t.$$.fragment,C),l=!0)},o(C){p(t.$$.fragment,C),l=!1},d(C){C&&y(e),V(t),i[23](null),i[24](null),u=!1,ft(c)}}}function g4(i,e,t){var J;let n,o,r,s,a,l,{ref:u=void 0}=e,c,m=ot(),h=On(),{interactiveControlsOpacity$:C}=h;D(i,C,le=>t(18,o=le));let g=m.ui.isMobile;D(i,g,le=>t(2,a=le));let S=m.ui.isFullscreen;D(i,S,le=>t(6,l=le));let k=m.state.isInteractiveTime$;D(i,k,le=>t(19,r=le));let F=h.showInteractiveTimeIndicatorTooltip$;D(i,F,le=>t(17,n=le));let T=m.ui.controlsVisible;D(i,T,le=>t(20,s=le));let v=(J=m.callbacks)==null?void 0:J.onInteractiveTimeIndicatorClick,E,H,U,W=()=>{t(4,U=!0)},ne=()=>{de(),c==null||c.addEventListener("animationiteration",W,{once:!0})},de=()=>{t(4,U=!1),c==null||c.removeEventListener("animationiteration",W)},q=le=>{F.set(le)},X,oe=()=>{H||(F.set(!0),v==null||v())};$n(()=>{F.clearTimeout(),de()});let K=()=>{F.set(!1)};function ce(le){Dn.call(this,i,le)}function z(le){u=le,t(0,u)}function x(le){ve[le?"unshift":"push"](()=>{u=le,t(0,u)})}function P(le){ve[le?"unshift":"push"](()=>{c=le,t(3,c)})}return i.$$set=le=>{"ref"in le&&t(0,u=le.ref)},i.$$.update=()=>{i.$$.dirty[0]&1048580&&t(16,E=!a&&s),i.$$.dirty[0]&851968&&t(1,H=!r||!!o||E),i.$$.dirty[0]&2&&t(4,U=H),i.$$.dirty[0]&131074&&t(5,X=n&&!H),i.$$.dirty[0]&131072&&(n?ne():de())},[u,H,a,c,U,X,l,C,g,S,k,F,T,q,oe,K,E,n,o,r,s,ce,z,x,P]}var Uu=class extends N{constructor(e){super(),O(this,e,g4,h4,B,{ref:0},p4,[-1,-1])}},wl=Uu;function b4(i){var a;let e,t,n,o=[(a=i[2])!=null?a:{}];var r=i[1];function s(l,u){var m;let c={};for(let h=0;h<o.length;h+=1)c=se(c,o[h]);return u!==void 0&&u&4&&(c=se(c,He(o,[Vo((m=l[2])!=null?m:{})]))),{props:c}}return r&&(e=Ft(r,s(i))),{c(){e&&R(e.$$.fragment),t=Je()},m(l,u){e&&L(e,l,u),w(l,t,u),n=!0},p(l,u){var c;if(u&2&&r!==(r=l[1])){if(e){ae();let m=e;p(m.$$.fragment,1,0,()=>{V(m,1)}),ue()}r?(e=Ft(r,s(l,u)),R(e.$$.fragment),d(e.$$.fragment,1),L(e,t.parentNode,t)):e=null}else if(r){let m=u&4?He(o,[Vo((c=l[2])!=null?c:{})]):{};e.$set(m)}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&p(e.$$.fragment,l),n=!1},d(l){l&&y(t),e&&V(e,l)}}}function v4(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:[b4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Ji({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function y4(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 zu=class extends N{constructor(e){super(),O(this,e,y4,v4,B,{buttonComponent:1,buttonComponentProps:2,tooltipText:3,disabledTooltipContent:4,disabled:5,className:6,ref:0})}},Wu=zu;var To={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};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:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function C4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ku=class extends N{constructor(e){super(),O(this,e,C4,k4,B,{})}},Em=Ku;function S4(i){let e,t;return e=new Em({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function T4(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 xu=class extends N{constructor(e){super(),O(this,e,T4,S4,B,{isPrev:0,isMobile:2})}},Am=xu;function I4(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 Mm(i){let e;return{c(){e=I("div"),f(e,"class","icon-background-mobile svelte-xtk2k4")},m(t,n){w(t,e,n)},d(t){t&&y(e)}}}function P4(i){let e,t,n,o=i[1]&&Mm(i);return t=new Am({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){o&&o.c(),e=Y(),R(t.$$.fragment)},m(r,s){o&&o.m(r,s),w(r,e,s),L(t,r,s),n=!0},p(r,s){r[1]?o||(o=Mm(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&&y(e),o&&o.d(r),V(t,r)}}}function E4(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:[P4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function A4(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"?G("tooltip_previous"):G("tooltip_next"))},[n,o,r,s,a,l,u]}var ju=class extends N{constructor(e){super(),O(this,e,A4,E4,B,{ref:0,isMobile:1,disabled:2,type:3,click:4},I4)}},Fr=ju;function M4(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function L4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Gu=class extends N{constructor(e){super(),O(this,e,L4,M4,B,{})}},kl=Gu;import{noop as V4}from"@vkontakte/videoplayer-shared";function R4(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 Lm(i){let e;return{c(){e=I("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){w(t,e,n)},d(t){t&&y(e)}}}function B4(i){let e,t,n,o,r=i[1]&&Lm(i);return n=new kl({}),{c(){r&&r.c(),e=Y(),t=I("div"),R(n.$$.fragment),f(t,"class","svelte-1ot3duq"),j(t,"mobile",i[1])},m(s,a){r&&r.m(s,a),w(s,e,a),w(s,t,a),L(n,t,null),o=!0},p(s,a){s[1]?r||(r=Lm(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!o||a&2)&&j(t,"mobile",s[1])},i(s){o||(d(n.$$.fragment,s),o=!0)},o(s){p(n.$$.fragment,s),o=!1},d(s){s&&(y(e),y(t)),r&&r.d(s),V(n)}}}function N4(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:G("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:fo.KeyK,$$slots:{default:[B4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function D4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:s=""}=e,{click:a=V4}=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 Yu=class extends N{constructor(e){super(),O(this,e,D4,N4,B,{ref:0,isMobile:1,disabled:2,className:3,click:4},R4)}},rs=Yu;function O4(i){let e,t;return{c(){e=M("svg"),t=M("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){w(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&&y(e)}}}function F4(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 Qu=class extends N{constructor(e){super(),O(this,e,F4,O4,B,{width:0,height:1,viewBox:2,fill:3})}},qo=Qu;function H4(i){let e,t;return{c(){e=M("svg"),t=M("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){w(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&&y(e)}}}function q4(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 Zu=class extends N{constructor(e){super(),O(this,e,q4,H4,B,{width:0,height:1,viewBox:2,fill:3})}},Hr=Zu;import{noop as U4}from"@vkontakte/videoplayer-shared";function z4(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 Vm(i){let e;return{c(){e=I("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){w(t,e,n)},d(t){t&&y(e)}}}function W4(i){let e,t,n,o,r=i[1]&&Vm(i);var s=i[8];function a(l,u){return{}}return s&&(n=Ft(s,a(i))),{c(){r&&r.c(),e=Y(),t=I("div"),n&&R(n.$$.fragment),f(t,"class","svelte-1ot3duq"),j(t,"mobile",i[1])},m(l,u){r&&r.m(l,u),w(l,e,u),w(l,t,u),n&&L(n,t,null),o=!0},p(l,u){if(l[1]?r||(r=Vm(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,()=>{V(c,1)}),ue()}s?(n=Ft(s,a(l,u)),R(n.$$.fragment),d(n.$$.fragment,1),L(n,t,null)):n=null}(!o||u&2)&&j(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&&(y(e),y(t)),r&&r.d(l),n&&V(n)}}}function K4(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:[W4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function x4(i,e,t){let n,o,{fakeIsPlaying$:r}=On();D(i,r,T=>t(12,o=T));let{ref:s=void 0}=e,{isMobile:a=!1}=e,{isPlaying:l=!1}=e,{disabled:u=!1}=e,{className:c=""}=e,{click:m=U4}=e,{toggle:h}=r,C,g,S,k;function F(T){s=T,t(0,s)}return i.$$set=T=>{"ref"in T&&t(0,s=T.ref),"isMobile"in T&&t(1,a=T.isMobile),"isPlaying"in T&&t(10,l=T.isPlaying),"disabled"in T&&t(2,u=T.disabled),"className"in T&&t(3,c=T.className),"click"in T&&t(4,m=T.click)},i.$$.update=()=>{i.$$.dirty&4096&&t(5,g=o!==null),i.$$.dirty&5152&&t(11,S=g?o:l),i.$$.dirty&2048&&t(7,k=S?G("tooltip_pause"):G("tooltip_play")),i.$$.dirty&2048&&t(8,n=S?Hr:qo)},t(6,C=h),[s,a,u,c,m,g,C,k,n,r,l,S,o,F]}var Xu=class extends N{constructor(e){super(),O(this,e,x4,K4,B,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},z4)}},ss=Xu;function j4(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function G4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ju=class extends N{constructor(e){super(),O(this,e,G4,j4,B,{})}},Rm=Ju;function Y4(i){let e,t;return e=new Rm({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Q4(i){let e,t,n;function o(s){i[4](s)}let r={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:G("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[Y4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function Z4(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 $u=class extends N{constructor(e){super(),O(this,e,Z4,Q4,B,{ref:0,hidden:1,disabled:2,click:3})}},Cl=$u;function X4(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=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("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"),we(e,l)},m(u,c){w(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),we(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&&y(e),s&&s.d(u)}}}function J4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ec=class extends N{constructor(e){super(),O(this,e,J4,X4,B,{})}},Bm=ec;function $4(i){let e,t;return e=new Bm({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function e3(i){let e,t,n;function o(s){i[4](s)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:G("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[$4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function t3(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 N{constructor(e){super(),O(this,e,t3,e3,B,{ref:0,hidden:1,disabled:2,click:3})}},Sl=tc;function i3(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=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("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"),we(e,l)},m(u,c){w(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),we(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&&y(e),s&&s.d(u)}}}function n3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ic=class extends N{constructor(e){super(),O(this,e,n3,i3,B,{})}},Nm=ic;function o3(i){be(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function r3(i){let e,t;return e=new Nm({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function s3(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var nc=class extends N{constructor(e){super(),O(this,e,s3,r3,B,{isOpened:0},o3)}},Dm=nc;function l3(i){let e,t;return e=new Dm({props:{isOpened:!!i[3]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function a3(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:[l3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function u3(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?G("tooltip_interactive_graph_on"):G("tooltip_interactive_graph_off"))},[n,o,r,s,a,l,u]}var oc=class extends N{constructor(e){super(),O(this,e,u3,a3,B,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Tl=oc;import{PlaybackState as rc}from"@vkontakte/videoplayer-core";function c3(i){let e,t;return e=new qs({props:{isActive:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function f3(i){let e,t;return e=new ht({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===rc.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[c3]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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]===rc.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){V(e,n)}}}function d3(i,e,t){let n,{isMobile:o=!1}=e,{isLiveActive:r=!1}=e,{ariaLabel:s=""}=e,a=ot(),l=a.state.playbackState$;D(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===rc.PAUSED&&c()})},[o,r,s,n,m,l]}var sc=class extends N{constructor(e){super(),O(this,e,d3,f3,B,{isMobile:0,isLiveActive:1,ariaLabel:2})}},Il=sc;import{noop as Om}from"@vkontakte/videoplayer-shared";function m3(i){let e,t,n,o;return{c(){e=I("img"),f(e,"class","icon"),vo(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){w(r,e,s),n||(o=ke(e,"error",i[2]),n=!0)},p(r,s){s&1&&!vo(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&y(e),n=!1,o()}}}function p3(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner"></div>',f(e,"class","icon icon-error-stub")},m(t,n){w(t,e,n)},p:me,d(t){t&&y(e)}}}function _3(i){let e;function t(r,s){return r[1]?p3:m3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Je()},m(r,s){o.m(r,s),w(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&&y(e),o.d(r)}}}function h3(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 lc=class extends N{constructor(e){super(),O(this,e,h3,_3,B,{icon:0})}},qr=lc;function g3(i){let e,t;return e=new qr({props:{icon:i[3]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function b3(i){var n;let e,t;return e=new ht({props:{className:i[8],ariaLabel:i[4],click:i[7],disabled:i[9],testId:(n=i[2])!=null?n:i[1],$$slots:{default:[g3]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(o,r){L(e,o,r),t=!0},p(o,r){var a;let s={};r&256&&(s.className=o[8]),r&16&&(s.ariaLabel=o[4]),r&128&&(s.click=o[7]),r&512&&(s.disabled=o[9]),r&6&&(s.testId=(a=o[2])!=null?a:o[1]),r&8200&&(s.$$scope={dirty:r,ctx:o}),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){V(e,o)}}}function v3(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:[b3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Ji({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function y3(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:C=Om}=e,{ref:g}=e;function S(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,C=k.onClick),"ref"in k&&t(0,g=k.ref)},i.$$.update=()=>{i.$$.dirty&128&&t(11,n=C===Om),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,C,r,o,h,n,S]}var ac=class extends N{constructor(e){super(),O(this,e,y3,v3,B,{id:1,testId:2,icon:3,ariaLabel:4,tooltipText:5,disabledTooltipContent:6,disabled:10,onClick:7,ref:0})}},Fm=ac;var Hm=i=>!!i.buttonComponent;var Uo={vkLogo:100,volume:200,subtitles:300,settings:400,context:500,fullscreen:600,chromecast:700};function S3(i){be(i,"svelte-ips4nw",".wrapper-bottom.svelte-ips4nw.svelte-ips4nw{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-ips4nw>.svelte-ips4nw{pointer-events:auto}.controls.svelte-ips4nw.svelte-ips4nw{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-ips4nw.svelte-ips4nw,.controls-right.svelte-ips4nw.svelte-ips4nw{display:flex;align-content:center}.controls-left.svelte-ips4nw.svelte-ips4nw{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-ips4nw > *:not(:first-child),.controls-right.svelte-ips4nw > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-ips4nw.svelte-ips4nw{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-ips4nw.svelte-ips4nw{transition:none}")}function Um(i,e,t){let n=i.slice();return n[203]=e[t],n[204]=e,n[205]=t,n}function zm(i,e,t){let n=i.slice();return n[203]=e[t],n[206]=e,n[207]=t,n}function Wm(i){let e,t,n;function o(s){i[167](s,i[203])}let r={buttonComponent:i[203].buttonComponent,buttonComponentProps:i[203].buttonComponentProps,tooltipText:i[203].tooltipText,disabledTooltipContent:i[203].disabledTooltipContent,disabled:i[203].disabled,className:i[203].className};return i[10][i[203].id]!==void 0&&(r.ref=i[10][i[203].id]),e=new Wu({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&2048&&(l.buttonComponent=i[203].buttonComponent),a[0]&2048&&(l.buttonComponentProps=i[203].buttonComponentProps),a[0]&2048&&(l.tooltipText=i[203].tooltipText),a[0]&2048&&(l.disabledTooltipContent=i[203].disabledTooltipContent),a[0]&2048&&(l.disabled=i[203].disabled),a[0]&2048&&(l.className=i[203].className),!t&&a[0]&3072&&(t=!0,l.ref=i[10][i[203].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){V(e,s)}}}function Km(i){let e,t,n;function o(s){i[168](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 il({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function xm(i){let e,t;return e=new cl({props:{position:i[34],duration:i[36],timeCodes:i[50]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function T3(i){let e,t,n=i[8]&&xm(i);return{c(){n&&n.c(),e=Je()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,r){o[8]?n?(n.p(o,r),r[0]&256&&d(n,1)):(n=xm(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&&y(e),n&&n.d(o)}}}function I3(i){let e,t,n;function o(s){i[172](s,i[203])}let r={id:i[203].id,testId:i[203].testId,icon:i[203].icon,ariaLabel:i[203].ariaLabel,tooltipText:i[203].tooltipText,disabledTooltipContent:i[203].disabledTooltipContent,disabled:!!i[203].disabled,onClick:i[203].onClick};return i[10][i[203].id]!==void 0&&(r.ref=i[10][i[203].id]),e=new Fm({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&4096&&(l.id=i[203].id),a[0]&4096&&(l.testId=i[203].testId),a[0]&4096&&(l.icon=i[203].icon),a[0]&4096&&(l.ariaLabel=i[203].ariaLabel),a[0]&4096&&(l.tooltipText=i[203].tooltipText),a[0]&4096&&(l.disabledTooltipContent=i[203].disabledTooltipContent),a[0]&4096&&(l.disabled=!!i[203].disabled),a[0]&4096&&(l.onClick=i[203].onClick),!t&&a[0]&5120&&(t=!0,l.ref=i[10][i[203].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){V(e,s)}}}function P3(i){let e,t,n;function o(s){i[171](s,i[203])}let r={buttonComponent:i[203].buttonComponent,buttonComponentProps:i[203].buttonComponentProps,tooltipText:i[203].tooltipText,disabledTooltipContent:i[203].disabledTooltipContent,disabled:i[203].disabled,className:i[203].className};return i[10][i[203].id]!==void 0&&(r.ref=i[10][i[203].id]),e=new Wu({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&4096&&(l.buttonComponent=i[203].buttonComponent),a[0]&4096&&(l.buttonComponentProps=i[203].buttonComponentProps),a[0]&4096&&(l.tooltipText=i[203].tooltipText),a[0]&4096&&(l.disabledTooltipContent=i[203].disabledTooltipContent),a[0]&4096&&(l.disabled=i[203].disabled),a[0]&4096&&(l.className=i[203].className),!t&&a[0]&5120&&(t=!0,l.ref=i[10][i[203].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){V(e,s)}}}function jm(i){let e,t,n,o,r,s=[P3,I3],a=[];function l(u,c){return c[0]&4096&&(e=null),e==null&&(e=!!Hm(u[203])),e?0:1}return t=l(i,[-1,-1,-1,-1,-1,-1,-1]),n=a[t]=s[t](i),{c(){n.c(),o=Je()},m(u,c){a[t].m(u,c),w(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&&y(o),a[t].d(u)}}}function E3(i){let e,t,n;function o(s){i[175](s)}let r={};return i[10].interactiveTimeIndicator!==void 0&&(r.ref=i[10].interactiveTimeIndicator),e=new wl({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function A3(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T;function v(z){i[166](z)}let E={isHidden:!i[14],isAds:i[5],canRewindLive:i[6],isRewindableLive:i[13]};i[10].timeline!==void 0&&(E.ref=i[10].timeline),t=new ul({props:E}),ve.push(()=>ze(t,"ref",v));let H=wt(i[11]),U=[];for(let z=0;z<H.length;z+=1)U[z]=Wm(zm(i,H,z));let W=z=>p(U[z],1,1,()=>{U[z]=null}),ne=i[7]&&Km(i);function de(z){i[169](z)}let q={className:"w-max",disabled:!i[8],tooltipContent:G("tooltip_episodes"),$$slots:{default:[T3]},$$scope:{ctx:i}};i[10].episodes!==void 0&&(q.ref=i[10].episodes),u=new Ji({props:q}),ve.push(()=>ze(u,"ref",de));let X=wt(i[12]),oe=[];for(let z=0;z<X.length;z+=1)oe[z]=jm(Um(i,X,z));let K=z=>p(oe[z],1,1,()=>{oe[z]=null}),ce=i[67]&&E3(i);return{c(){e=I("div"),R(t.$$.fragment),o=Y(),r=I("div"),s=I("div");for(let z=0;z<U.length;z+=1)U[z].c();a=Y(),ne&&ne.c(),l=Y(),R(u.$$.fragment),h=Y(),C=I("div");for(let z=0;z<oe.length;z+=1)oe[z].c();g=Y(),ce&&ce.c(),S=Je(),f(s,"class","controls-left svelte-ips4nw"),f(C,"class","controls-right svelte-ips4nw"),f(r,"class","controls svelte-ips4nw"),f(e,"class","wrapper-bottom svelte-ips4nw"),j(e,"hidden",i[2]),j(e,"controls-hidden",!i[4]),j(e,"no-smooth",i[3])},m(z,x){w(z,e,x),L(t,e,null),_(e,o),_(e,r),_(r,s);for(let P=0;P<U.length;P+=1)U[P]&&U[P].m(s,null);_(s,a),ne&&ne.m(s,null),_(s,l),L(u,s,null),_(r,h),_(r,C);for(let P=0;P<oe.length;P+=1)oe[P]&&oe[P].m(C,null);i[173](r),i[174](e),w(z,g,x),ce&&ce.m(z,x),w(z,S,x),k=!0,F||(T=[br(m=Rr.call(null,s)),ke(s,"fd:resize",i[170])],F=!0)},p(z,x){let P={};if(x[0]&16384&&(P.isHidden=!z[14]),x[0]&32&&(P.isAds=z[5]),x[0]&64&&(P.canRewindLive=z[6]),x[0]&8192&&(P.isRewindableLive=z[13]),!n&&x[0]&1024&&(n=!0,P.ref=z[10].timeline,Ue(()=>n=!1)),t.$set(P),x[0]&3072){H=wt(z[11]);let le;for(le=0;le<H.length;le+=1){let Ae=zm(z,H,le);U[le]?(U[le].p(Ae,x),d(U[le],1)):(U[le]=Wm(Ae),U[le].c(),d(U[le],1),U[le].m(s,a))}for(ae(),le=H.length;le<U.length;le+=1)W(le);ue()}z[7]?ne?(ne.p(z,x),x[0]&128&&d(ne,1)):(ne=Km(z),ne.c(),d(ne,1),ne.m(s,l)):ne&&(ae(),p(ne,1,1,()=>{ne=null}),ue());let J={};if(x[0]&256&&(J.disabled=!z[8]),x[0]&256|x[1]&40|x[6]&4194304&&(J.$$scope={dirty:x,ctx:z}),!c&&x[0]&1024&&(c=!0,J.ref=z[10].episodes,Ue(()=>c=!1)),u.$set(J),x[0]&5120){X=wt(z[12]);let le;for(le=0;le<X.length;le+=1){let Ae=Um(z,X,le);oe[le]?(oe[le].p(Ae,x),d(oe[le],1)):(oe[le]=jm(Ae),oe[le].c(),d(oe[le],1),oe[le].m(C,null))}for(ae(),le=X.length;le<oe.length;le+=1)K(le);ue()}(!k||x[0]&4)&&j(e,"hidden",z[2]),(!k||x[0]&16)&&j(e,"controls-hidden",!z[4]),(!k||x[0]&8)&&j(e,"no-smooth",z[3]),z[67]&&ce.p(z,x)},i(z){if(!k){d(t.$$.fragment,z);for(let x=0;x<H.length;x+=1)d(U[x]);d(ne),d(u.$$.fragment,z);for(let x=0;x<X.length;x+=1)d(oe[x]);d(ce),k=!0}},o(z){p(t.$$.fragment,z),U=U.filter(Boolean);for(let x=0;x<U.length;x+=1)p(U[x]);p(ne),p(u.$$.fragment,z),oe=oe.filter(Boolean);for(let x=0;x<oe.length;x+=1)p(oe[x]);p(ce),k=!1},d(z){z&&(y(e),y(g),y(S)),V(t),li(U,z),ne&&ne.d(),V(u),li(oe,z),i[173](null),i[174](null),ce&&ce.d(z),F=!1,ft(T)}}}function M3(i,e,t){var mt,Rt;let n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,de,q,X,oe,K,ce,z,x,P,J,le,Ae,ee,ge,Pe,Te,Ie,rt,Ee=me,We=()=>(Ee(),Ee=$t(q,Z=>t(137,rt=Z)),q),$,_e=me,Ce=()=>(_e(),_e=$t(de,Z=>t(138,$=Z)),de),xe,st=me,at=()=>(st(),st=$t(ne,Z=>t(139,xe=Z)),ne),nt,$e=me,fe=()=>($e(),$e=$t(W,Z=>t(140,nt=Z)),W),Se,et=me,Ne=()=>(et(),et=$t(U,Z=>t(141,Se=Z)),U),tt,Fe=me,ct=()=>(Fe(),Fe=$t(H,Z=>t(142,tt=Z)),H),dt,he=me,_t=()=>(he(),he=$t(E,Z=>t(143,dt=Z)),E),kt,Ct=me,Ze=()=>(Ct(),Ct=$t(v,Z=>t(144,kt=Z)),v),Et,Vt=me,ri=()=>(Vt(),Vt=$t(T,Z=>t(145,Et=Z)),T),Ut,zt=me,Qt=()=>(zt(),zt=$t(F,Z=>t(146,Ut=Z)),F),Wt,Ke=me,Xe=()=>(Ke(),Ke=$t(k,Z=>t(147,Wt=Z)),k),It,pe=me,Zt=()=>(pe(),pe=$t(S,Z=>t(148,It=Z)),S),At,ii=me,Ot=()=>(ii(),ii=$t(g,Z=>t(149,At=Z)),g),xt,si=me,Mt=()=>(si(),si=$t(C,Z=>t(150,xt=Z)),C),ni,Xt=me,dn=()=>(Xt(),Xt=$t(h,Z=>t(151,ni=Z)),h),Bt,qi=me,en=()=>(qi(),qi=$t(m,Z=>t(152,Bt=Z)),m),gi,wi=me,De=()=>(wi(),wi=$t(c,Z=>t(153,gi=Z)),c),it,St,bi,ki,tn,Ai,mn,mi,Ui,zi,Ht,Ci,ui,Kt,In,vi,pn;i.$$.on_destroy.push(()=>Ee()),i.$$.on_destroy.push(()=>_e()),i.$$.on_destroy.push(()=>st()),i.$$.on_destroy.push(()=>$e()),i.$$.on_destroy.push(()=>et()),i.$$.on_destroy.push(()=>Fe()),i.$$.on_destroy.push(()=>he()),i.$$.on_destroy.push(()=>Ct()),i.$$.on_destroy.push(()=>Vt()),i.$$.on_destroy.push(()=>zt()),i.$$.on_destroy.push(()=>Ke()),i.$$.on_destroy.push(()=>pe()),i.$$.on_destroy.push(()=>ii()),i.$$.on_destroy.push(()=>si()),i.$$.on_destroy.push(()=>Xt()),i.$$.on_destroy.push(()=>qi()),i.$$.on_destroy.push(()=>wi());let{bottomHidden:Pn}=e,{bottomNoSmooth:nn}=e,{showControls:_n}=e,{playerControlsWrapperRef:Si=void 0}=e,{playerControlsRef:on=void 0}=e,{isAds:jt=!1}=e,{canRewindLive:qn}=e,{logoClickable:Wi}=e,{logoHidden:Ki}=e,{logoTargetUrl:xi=""}=e,{showNextPrevButtons:yi}=e,{nextButtonActive:Mi}=e,{prevButtonActive:rn}=e,{isOneVideoPlaylist:sn=!1}=e,{customFullscreenSupported:Ti=!0}=e,{playNextVideo:Ii}=e,{playPrevVideo:ci}=e,{repeatPlaylist:Gt}=e,{toggleFullscreen:qt}=e,{seekToInteractive:Li}=e,{playPrevChapter:Vi}=e,{fakeIsPlaying$:ln}=On();D(i,ln,Z=>t(130,J=Z));let ut=ot(),Ri=On(),fi=Dt(),Bi=ut.actions.internal.toggleMuted,Ni=ut.actions.internal.togglePlay,je=ut.actions.internal.pause,Un=ut.actions.internal.toggleSubtitle,an=(mt=ut.callbacks)==null?void 0:mt.onAudioDoesNotExistHint,En=(Rt=ut.callbacks)==null?void 0:Rt.onAudioDisabledHint,hn=ut.state.duration$;D(i,hn,Z=>t(36,pn=Z));let ji=ut.state.positionWithScrubbing$;D(i,ji,Z=>t(34,In=Z));let Gi=ut.state.playbackState$;D(i,Gi,Z=>t(127,z=Z));let Yi=ut.state.isAudioAvailable$;D(i,Yi,Z=>t(176,le=Z));let gn=ut.state.isAudioDisabled,pi=ut.state.isEnded$;D(i,pi,Z=>t(162,zi=Z));let An=ut.state.isLive$;D(i,An,Z=>t(156,ki=Z));let Mn=ut.state.isActiveLive$;D(i,Mn,Z=>t(155,St=Z));let Ln=ut.state.isRewindableLive$;D(i,Ln,Z=>t(13,bi=Z));let bn=ut.ui.isPictureInPictureActive$;D(i,bn,Z=>t(158,Ai=Z));let vn=ut.ui.pictureInPictureType$;D(i,vn,Z=>t(157,tn=Z));let Vn=ut.ui.settingsMenuVisible;D(i,Vn,Z=>t(126,ce=Z));let yn=ut.ui.settingsMenuOpenedByKeyboard;D(i,yn,Z=>t(132,ee=Z));let zn=ut.ui.controls,Di=ut.actions.internal.getVideoEpisodes(),un=ut.state.chromecastState$;D(i,un,Z=>t(124,oe=Z));let oi=ut.state.availableSubtitlesList$;D(i,oi,Z=>t(161,Ui=Z));let oo=ut.state.currentSubtitle$;D(i,oo,Z=>t(163,Ht=Z));let ro=zn.disabledControls$;D(i,ro,Z=>t(165,ui=Z));let Wn=ut.ui.contextMenu.visible$;D(i,Wn,Z=>t(154,it=Z));let di=ut.ui.contextMenu.showContextMenuBtn$;D(i,di,Z=>t(159,mn=Z));let cn=ut.ui.contextMenu.openedByBtnKeyboard$;D(i,cn,Z=>t(160,mi=Z));let Qn=ut.ui.startedByKeyboard$;D(i,Qn,Z=>t(131,Ae=Z));let Kn=ut.ads.duration;D(i,Kn,Z=>t(35,vi=Z));let so=ut.ads.position;D(i,so,Z=>t(33,Kt=Z));let Zn=ut.ads.playbackState;D(i,Zn,Z=>t(164,Ci=Z));let Xn=ut.ui.isFullscreen;D(i,Xn,Z=>t(125,K=Z));let wn=ut.ui.playerSize;D(i,wn,Z=>t(135,Te=Z));let xn=ut.ui.currentGridType$;D(i,xn,Z=>t(136,Ie=Z));let kn=ut.ui.additionalDesktopControlPanelRightButtons$;D(i,kn,Z=>t(123,X=Z));let lo=ut.actions.internal.getVideoElement,ie=ut.actions.internal.replayInteractive,bt=ut.state.isInteractive,Qi=ut.state.isInteractiveTime$;D(i,Qi,Z=>t(134,Pe=Z));let Oi=ut.state.showInteractiveGraph,te=ut.state.showSeekToInteractive,Fi=ut.state.showPlayPrevChapter,zo=ut.state.showInteractiveTimeIndicator,Io=ut.state.playPrevChapterDisabledTooltip,Po=Ri.seekToInteractiveDisabledTooltip$;D(i,Po,Z=>t(129,P=Z));let _o=Ri.graphIsOpened$;D(i,_o,Z=>t(128,x=Z));let ho=fi.features.interactiveResponsiveUi,pr=()=>ut.actions.internal.toggleChromecast(),Zi,go,Jn,fn,Eo,Wo,Ko,xo,jo,Go,Yo,Rn,Qo,Zo,Xo,Q,Lt,Xi,Hi,ao,Cn,uo,Jo,bo="",_r=(Z,gt)=>{if(!Z){t(105,bo=G("tooltip_live"));return}gt===uc.PAUSED&&t(105,bo=G("tooltip_play"))},Wr,Kr,xr,jr,hr,Yt={},Bn,Ao,$o,Gr,Yl=C3(vl,260),ps,Yr=Oe();D(i,Yr,Z=>t(133,ge=Z));let Ql;function Zl(){Do({isAudioDisabled:gn,audioDisabledHintCallback:En,isAudioAvailable:le,audioIsNotExistHintCallback:an})&&Bi()}let Xl=bt?ie:sn?Ni:Gt,Mo,Qr,gr,Sn=[],Nn=[];function Tt(Z){i.$$.not_equal(Yt.timeline,Z)&&(Yt.timeline=Z,t(10,Yt))}function _s(Z,gt){i.$$.not_equal(Yt[gt.id],Z)&&(Yt[gt.id]=Z,t(10,Yt))}function hs(Z){i.$$.not_equal(Yt.time,Z)&&(Yt.time=Z,t(10,Yt))}function gs(Z){i.$$.not_equal(Yt.episodes,Z)&&(Yt.episodes=Z,t(10,Yt))}let bs=Z=>{t(9,hr=Z.target.clientWidth)};function b(Z,gt){i.$$.not_equal(Yt[gt.id],Z)&&(Yt[gt.id]=Z,t(10,Yt))}function A(Z,gt){i.$$.not_equal(Yt[gt.id],Z)&&(Yt[gt.id]=Z,t(10,Yt))}function re(Z){ve[Z?"unshift":"push"](()=>{on=Z,t(1,on)})}function Me(Z){ve[Z?"unshift":"push"](()=>{Si=Z,t(0,Si)})}function lt(Z){i.$$.not_equal(Yt.interactiveTimeIndicator,Z)&&(Yt.interactiveTimeIndicator=Z,t(10,Yt))}return i.$$set=Z=>{"bottomHidden"in Z&&t(2,Pn=Z.bottomHidden),"bottomNoSmooth"in Z&&t(3,nn=Z.bottomNoSmooth),"showControls"in Z&&t(4,_n=Z.showControls),"playerControlsWrapperRef"in Z&&t(0,Si=Z.playerControlsWrapperRef),"playerControlsRef"in Z&&t(1,on=Z.playerControlsRef),"isAds"in Z&&t(5,jt=Z.isAds),"canRewindLive"in Z&&t(6,qn=Z.canRewindLive),"logoClickable"in Z&&t(71,Wi=Z.logoClickable),"logoHidden"in Z&&t(72,Ki=Z.logoHidden),"logoTargetUrl"in Z&&t(73,xi=Z.logoTargetUrl),"showNextPrevButtons"in Z&&t(74,yi=Z.showNextPrevButtons),"nextButtonActive"in Z&&t(75,Mi=Z.nextButtonActive),"prevButtonActive"in Z&&t(76,rn=Z.prevButtonActive),"isOneVideoPlaylist"in Z&&t(77,sn=Z.isOneVideoPlaylist),"customFullscreenSupported"in Z&&t(78,Ti=Z.customFullscreenSupported),"playNextVideo"in Z&&t(79,Ii=Z.playNextVideo),"playPrevVideo"in Z&&t(80,ci=Z.playPrevVideo),"repeatPlaylist"in Z&&t(81,Gt=Z.repeatPlaylist),"toggleFullscreen"in Z&&t(82,qt=Z.toggleFullscreen),"seekToInteractive"in Z&&t(83,Li=Z.seekToInteractive),"playPrevChapter"in Z&&t(84,Vi=Z.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&1024&&t(121,n=ui.has("EPISODE_BUTTON")),i.$$.dirty[5]&1024&&t(116,o=ui.has("GRAPH_BUTTON")),i.$$.dirty[5]&1024&&t(117,r=ui.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[5]&1024&&t(119,s=ui.has("PLAY_BUTTON")),i.$$.dirty[5]&1024&&t(120,a=ui.has("REPLAY_BUTTON")),i.$$.dirty[5]&1024&&t(118,l=ui.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[0]&32|i.$$.dirty[4]&8|i.$$.dirty[5]&512&&t(85,Zi=jt?Ci==="playing":z===uc.PLAYING),i.$$.dirty[5]&256&&t(86,go=Ht.value!=="off"),i.$$.dirty[0]&32|i.$$.dirty[5]&128&&t(122,u=zi&&!jt||bt),i.$$.dirty[3]&536870912|i.$$.dirty[4]&4096&&t(87,Jn=ho?u&&hi(Ie,"m"):u),i.$$.dirty[0]&32|i.$$.dirty[5]&128&&t(88,fn=!zi||bt||jt),i.$$.dirty[4]&4096&&t(89,Eo=hi(Ie,"m")),i.$$.dirty[0]&32|i.$$.dirty[2]&12288|i.$$.dirty[4]&4096&&t(90,Wo=yi&&hi(Ie,"m")&&!jt&&Mi),i.$$.dirty[0]&32|i.$$.dirty[2]&20480|i.$$.dirty[4]&4096&&t(91,Ko=yi&&hi(Ie,"m")&&!jt&&rn),i.$$.dirty[0]&32|i.$$.dirty[5]&2&&t(92,xo=!jt&&!!ki),i.$$.dirty[4]&4097|i.$$.dirty[5]&12&&t(93,jo=oe!==qm.NOT_AVAILABLE&&!(Ai&&tn===1)&&hi(Ie,"m")&&!bt),i.$$.dirty[4]&4096|i.$$.dirty[5]&64&&t(94,Go=Ui.length>0&&hi(Ie,"m")),i.$$.dirty[5]&48&&t(95,Yo=mi||mn),i.$$.dirty[0]&32|i.$$.dirty[4]&4096&&t(96,Rn=hi(Ie,"s")&&!jt),i.$$.dirty[0]&32|i.$$.dirty[2]&1024&&t(97,Qo=!Ki&&!jt),i.$$.dirty[2]&66560|i.$$.dirty[4]&4096|i.$$.dirty[5]&12&&t(98,Zo=fi.features.fullscreen&&(Ki||hi(Ie,ho?"xs":"s"))&&!(Ai&&tn===1)&&(bt?Ti:!0)),i.$$.dirty[0]&32|i.$$.dirty[5]&2&&t(7,Xo=(!ki||jt)&&!(fi.features.interactiveHideTime&&bt)),i.$$.dirty[4]&2048&&t(14,Q=Te.width>100),i.$$.dirty[4]&4096&&t(99,Lt=Oi&&hi(Ie,"m")),i.$$.dirty[4]&4096&&t(100,Xi=ho?te&&hi(Ie,"s"):te),i.$$.dirty[4]&4096&&t(101,Hi=ho?Fi&&hi(Ie,"s"):Fi),i.$$.dirty[0]&32|i.$$.dirty[2]&134217728|i.$$.dirty[3]&268435456|i.$$.dirty[5]&2&&t(8,ao=!jt&&!ki&&!!(Di!=null&&Di.length)&&Eo&&!n),i.$$.dirty[0]&8192|i.$$.dirty[5]&1&&t(102,Cn=!bi||St),i.$$.dirty[4]&16&&t(103,uo=x?G("tooltip_interactive_graph_on"):G("tooltip_interactive_graph_off")),i.$$.dirty[4]&1073741824&&t(104,Jo=it?G("aria_label_context_menu_close"):G("aria_label_context_menu_open")),i.$$.dirty[3]&512|i.$$.dirty[4]&8&&_r(Cn,z),i.$$.dirty[2]&16777216&&t(107,Kr=go?G("tooltip_subtitles_on"):G("tooltip_subtitles_off")),i.$$.dirty[4]&2&&t(108,xr=K?G("tooltip_fullscreen_on"):G("tooltip_fullscreen_off")),i.$$.dirty[4]&1&&t(109,jr=oe===qm.CONNECTED?G("tooltip_chromecast_on"):G("tooltip_chromecast_off")),i.$$.dirty[3]&1073741824|i.$$.dirty[4]&1073733632&&t(110,Bn={prevButton:gi?gi.right-gi.left:0,replayButton:Bt?Bt.right-Bt.left:0,playButton:ni?ni.right-ni.left:0,nextButton:xt?xt.right-xt.left:0,playPrevChapterButton:At?At.right-At.left:0,seekToInteractiveButton:It?It.right-It.left:0,interactiveGraphButton:Wt?Wt.right-Wt.left:0,liveButton:Ut?Ut.right-Ut.left:0,time:Et?Et.right-Et.left:0,episodes:kt?kt.right-kt.left:0,vkLogo:dt?dt.right-dt.left:0,volume:tt?tt.right-tt.left:0,subtitles:Se?Se.right-Se.left:0,settings:nt?nt.right-nt.left:0,context:xe?xe.right-xe.left:0,fullscreen:$?$.right-$.left:0,chromecast:rt?rt.right-rt.left:0,additionalButtons:X.length?X.reduce(Z=>[...Z,40],[]):[]}),i.$$.dirty[3]&393216&&(!Ao||Ao<Bn.time)&&t(111,Ao=Bn.time),i.$$.dirty[0]&896|i.$$.dirty[3]&393216|i.$$.dirty[4]&4096){let Z=0;ao&&(hi(Ie,"xl")?Z=Bn.time:Z=60);let gt=Bn.prevButton+Bn.playButton+Bn.nextButton+Bn.seekToInteractiveButton+Bn.interactiveGraphButton+Bn.liveButton+Ao+Z;t(112,$o=Xo&&hr>=gt)}i.$$.dirty[3]&524288|i.$$.dirty[4]&4096&&t(15,Gr=$o&&hi(Ie,"m")),i.$$.dirty[0]&1040|i.$$.dirty[4]&3072&&Yl(lo(),zn,Yt,_n),i.$$.dirty[4]&516&&ge&&Ar(ge,ce,yn),i.$$.dirty[4]&260&&po(ps,ce,ee),i.$$.dirty[4]&128&&yl(Qn,Ae,Ql),i.$$.dirty[4]&64&&t(113,Mo=J!==null),i.$$.dirty[2]&8388608|i.$$.dirty[3]&1048576|i.$$.dirty[4]&64&&t(114,Qr=Mo?J:Zi),i.$$.dirty[3]&2097152&&t(115,gr=Qr?G("tooltip_pause"):G("tooltip_play")),i.$$.dirty[0]&2048|i.$$.dirty[2]&1994809344|i.$$.dirty[3]&264247232|i.$$.dirty[4]&56&&(t(11,Sn=[]),Ko&&Sn.push({id:"prevButton",type:"desktop-control-panel-left",weight:To.prevButton,buttonComponent:Fr,buttonComponentProps:{disabled:!rn,type:"prev",click:ci},tooltipText:G("tooltip_previous"),disabled:!rn}),Jn&&Sn.push({id:"replayButton",type:"desktop-control-panel-left",weight:To.replayButton,buttonComponent:rs,buttonComponentProps:{disabled:a,click:Xl},tooltipText:G("tooltip_restart"),disabled:a}),fn&&Sn.push({id:"playButton",type:"desktop-control-panel-left",weight:To.playButton,buttonComponent:ss,buttonComponentProps:{disabled:s,isPlaying:Zi,click:Ni},tooltipText:gr,disabled:s}),Wo&&Sn.push({id:"nextButton",type:"desktop-control-panel-left",weight:To.nextButton,buttonComponent:Fr,buttonComponentProps:{disabled:!Mi,type:"next",click:Ii},tooltipText:G("tooltip_next"),disabled:!Mi}),bt&&(Hi&&Sn.push({id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:To.playPrevChapterButton,buttonComponent:Cl,buttonComponentProps:{disabled:l,click:Vi},tooltipText:G("tooltip_interactive_go_back"),disabledTooltipContent:Io,disabled:l}),Xi&&Sn.push({id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:To.seekToInteractiveButton,buttonComponent:Sl,buttonComponentProps:{disabled:r,click:Li},tooltipText:G("tooltip_interactive_seek"),disabled:r,disabledTooltipContent:G(P)}),Lt&&Sn.push({id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:To.interactiveGraphButton,buttonComponent:Tl,buttonComponentProps:{disabled:o,click:_o.toggle,graphIsOpened:x},tooltipText:uo})),xo&&Sn.push({id:"liveButton",type:"desktop-control-panel-left",weight:To.liveButton,buttonComponent:Il,buttonComponentProps:{isLiveActive:Cn,ariaLabel:bo},tooltipText:bo,disabled:Cn&&z===uc.PLAYING}),t(11,Sn=Sn.sort(cr))),i.$$.dirty[0]&4096|i.$$.dirty[2]&17828352|i.$$.dirty[3]&1073866815|i.$$.dirty[4]&7&&(t(12,Nn=[]),Qo&&Nn.push({id:"vkLogo",type:"desktop-control-panel-right",weight:Uo.vkLogo,buttonComponent:rl,buttonComponentProps:{targetUrl:xi,logoClickable:Wi,click:je},tooltipText:Wr,disabledTooltipContent:"",disabled:!Wi}),Nn.push({id:"volume",type:"desktop-control-panel-right",weight:Uo.volume,buttonComponent:om,buttonComponentProps:{click:Zl}}),Go&&Nn.push({id:"subtitles",type:"desktop-control-panel-right",weight:Uo.subtitles,buttonComponent:W1,buttonComponentProps:{isSubtitlesEnabled:go,click:Un},tooltipText:Kr}),Rn&&Nn.push({id:"settings",type:"desktop-control-panel-right",weight:Uo.settings,buttonComponent:is,buttonComponentProps:{ref$:Yr},tooltipText:ce?void 0:G("tooltip_settings_off")}),fi.features.contextMenuButton&&Nn.push({id:"context",type:"desktop-control-panel-right",weight:Uo.context,buttonComponent:Pm,buttonComponentProps:{click:qt},className:Yo?"":"out-of-view",tooltipText:Jo}),Zo&&Nn.push({id:"fullscreen",type:"desktop-control-panel-right",weight:Uo.fullscreen,buttonComponent:ol,buttonComponentProps:{isFullscreen:K,click:qt},tooltipText:xr}),jo&&Nn.push({id:"chromecast",type:"desktop-control-panel-right",weight:Uo.chromecast,buttonComponent:sl,buttonComponentProps:{state:oe,click:pr},tooltipText:jr}),t(12,Nn=[...Nn,...X].sort(cr)))},t(106,Wr=fi.logoType==="vk_video"?G("tooltip_vk_video_logo"):G("tooltip_vk_logo")),De(t(32,{prevButton:c,replayButton:m,playButton:h,nextButton:C,playPrevChapterButton:g,seekToInteractiveButton:S,interactiveGraphButton:k,liveButton:F,time:T,episodes:v,vkLogo:E,volume:H,subtitles:U,settings:W,context:ne,fullscreen:de,chromecast:q}=zn,c,en(t(31,m)),dn(t(30,h)),Mt(t(29,C)),Ot(t(28,g)),Zt(t(27,S)),Xe(t(26,k)),Qt(t(25,F)),ri(t(24,T)),Ze(t(23,v)),_t(t(22,E)),ct(t(21,H)),Ne(t(20,U)),fe(t(19,W)),at(t(18,ne)),Ce(t(17,de)),We(t(16,q)))),[Si,on,Pn,nn,_n,jt,qn,Xo,ao,hr,Yt,Sn,Nn,bi,Q,Gr,q,de,ne,W,U,H,E,v,T,F,k,S,g,C,h,m,c,Kt,In,vi,pn,ln,hn,ji,Gi,Yi,pi,An,Mn,Ln,bn,vn,Vn,yn,Di,un,oi,oo,ro,Wn,di,cn,Qn,Kn,so,Zn,Xn,wn,xn,kn,Qi,zo,Po,_o,Yr,Wi,Ki,xi,yi,Mi,rn,sn,Ti,Ii,ci,Gt,qt,Li,Vi,Zi,go,Jn,fn,Eo,Wo,Ko,xo,jo,Go,Yo,Rn,Qo,Zo,Lt,Xi,Hi,Cn,uo,Jo,bo,Wr,Kr,xr,jr,Bn,Ao,$o,Mo,Qr,gr,o,r,l,s,a,n,u,X,oe,K,ce,z,x,P,J,Ae,ee,ge,Pe,Te,Ie,rt,$,xe,nt,Se,tt,dt,kt,Et,Ut,Wt,It,At,xt,ni,Bt,gi,it,St,ki,tn,Ai,mn,mi,Ui,zi,Ht,Ci,ui,Tt,_s,hs,gs,bs,b,A,re,Me,lt]}var cc=class extends N{constructor(e){super(),O(this,e,M3,A3,B,{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,isOneVideoPlaylist:77,customFullscreenSupported:78,playNextVideo:79,playPrevVideo:80,repeatPlaylist:81,toggleFullscreen:82,seekToInteractive:83,playPrevChapter:84},S3,[-1,-1,-1,-1,-1,-1,-1])}},Gm=cc;import{ChromecastState as ip,PlaybackState as np}from"@vkontakte/videoplayer-core";import{noop as Ym}from"@vkontakte/videoplayer-shared";function L3(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 V3(i){let e,t,n,o;return{c(){e=I("img"),f(e,"class","icon svelte-1aqpg2x"),vo(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){w(r,e,s),n||(o=ke(e,"error",i[7]),n=!0)},p(r,s){s&1&&!vo(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&y(e),n=!1,o()}}}function R3(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner svelte-1aqpg2x"></div>',f(e,"class","icon icon-error-stub svelte-1aqpg2x")},m(t,n){w(t,e,n)},p:me,d(t){t&&y(e)}}}function B3(i){let e;function t(r,s){return r[5]?R3:V3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Je()},m(r,s){o.m(r,s),w(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&&y(e),o.d(r)}}}function N3(i){let e,t;return e=new ht({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[B3]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function D3(i,e,t){let n,o,r,{iconUrl:s}=e,{ariaLabel:a}=e,{disabled:l=!1}=e,{testId:u}=e,{onClick:c=Ym}=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===Ym),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 N{constructor(e){super(),O(this,e,D3,N3,B,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},L3)}},Qm=dc;function O3(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=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("g"),n=M("path"),o=M("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"),we(e,u)},m(c,m){w(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),we(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&&y(e),a&&a.d(c)}}}function F3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var mc=class extends N{constructor(e){super(),O(this,e,F3,O3,B,{})}},Zm=mc;import{noop as H3}from"@vkontakte/videoplayer-shared";function q3(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 Xm(i){let e;return{c(){e=I("span"),e.textContent=`${G("mobile_unmute")}`,f(e,"class","text svelte-6gmlbk")},m(t,n){w(t,e,n)},d(t){t&&y(e)}}}function U3(i){let e,t,n,o;var r=i[4];function s(l,u){return{}}r&&(t=Ft(r,s(i)));let a=i[1]&&Xm(i);return{c(){e=I("div"),t&&R(t.$$.fragment),n=Y(),a&&a.c(),f(e,"class","container svelte-6gmlbk"),f(e,"aria-hidden","true"),j(e,"expanded",i[1])},m(l,u){w(l,e,u),t&&L(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,()=>{V(c,1)}),ue()}r?(t=Ft(r,s(l,u)),R(t.$$.fragment),d(t.$$.fragment,1),L(t,e,n)):t=null}l[1]?a||(a=Xm(l),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&j(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&&y(e),t&&V(t),a&&a.d()}}}function z3(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:[U3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function W3(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=H3}=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?G("tooltip_volume"):G("tooltip_volume_muted")),i.$$.dirty&2&&t(4,l=o?dr:Zm)},[s,o,r,a,l,n,u]}var pc=class extends N{constructor(e){super(),O(this,e,W3,z3,B,{muted:5,expanded:1,click:2,ref:0},q3)}},_c=pc;function K3(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=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("path"),n=M("path"),o=M("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"),we(e,u)},m(c,m){w(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),we(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&&y(e),a&&a.d(c)}}}function x3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var hc=class extends N{constructor(e){super(),O(this,e,x3,K3,B,{})}},Jm=hc;function j3(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 G3(i){let e,t;return e=new Jm({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Y3(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 gc=class extends N{constructor(e){super(),O(this,e,Y3,G3,B,{isActive:0},j3)}},$m=gc;import{noop as Q3}from"@vkontakte/videoplayer-shared";function Z3(i){let e,t;return e=new $m({props:{isActive:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function X3(i){let e,t,n;function o(s){i[3](s)}let r={testId:"btn-pip",ariaLabel:G("menu_pip"),click:i[2],$$slots:{default:[Z3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function J3(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=Q3}=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 bc=class extends N{constructor(e){super(),O(this,e,J3,X3,B,{ref:0,isPictureInPictureActive:1,click:2})}},ep=bc;function $3(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 e5(i){let e,t;return e=new Hr({props:{width:"14",height:"14"}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function t5(i){let e,t;return e=new qo({props:{width:"14",height:"14",fill:"#000"}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function i5(i){let e,t,n,o,r,s=[t5,e5],a=[];function l(u,c){return u[1]?0:1}return n=l(i,-1),o=a[n]=s[n](i),{c(){e=I("span"),t=I("span"),o.c(),f(t,"class","toggler svelte-sty291"),j(t,"enabled",i[1]),f(e,"class","gutter svelte-sty291")},m(u,c){w(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)&&j(t,"enabled",u[1])},i(u){r||(d(o),r=!0)},o(u){p(o),r=!1},d(u){u&&y(e),a[n].d()}}}function n5(i){let e,t,n;function o(s){i[4](s)}let r={click:i[3],$$slots:{default:[i5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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){V(e,s)}}}function o5(i,e,t){let n,{ref:o=void 0}=e,r=ot(),s=r.ui.autoplayNextEnabled$;D(i,s,c=>t(1,n=c));let a=r.actions.internal.setAutoplayNextEnabled;function l(){a(!n)}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 vc=class extends N{constructor(e){super(),O(this,e,o5,n5,B,{ref:0},$3)}},tp=vc;import{debounceFn as r5}from"@vkontakte/videoplayer-shared";function s5(i){be(i,"svelte-s4hj64",".wrapper-bottom.svelte-s4hj64.svelte-s4hj64{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-s4hj64>.svelte-s4hj64{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-s4hj64.svelte-s4hj64{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-s4hj64.svelte-s4hj64{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.svelte-s4hj64.svelte-s4hj64{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.svelte-s4hj64.svelte-s4hj64{position:absolute;top:4px;left:8px}.wrapper-middle-left.svelte-s4hj64.svelte-s4hj64,.wrapper-middle-left-second.svelte-s4hj64.svelte-s4hj64,.wrapper-middle-right.svelte-s4hj64.svelte-s4hj64{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-s4hj64.svelte-s4hj64{left:12px}.wrapper-middle-left-second.svelte-s4hj64.svelte-s4hj64{left:64px}.wrapper-middle-right.svelte-s4hj64.svelte-s4hj64{right:12px}.controls.svelte-s4hj64.svelte-s4hj64{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-s4hj64 > *:not(:first-child){margin-left:8px}.hidden.svelte-s4hj64.svelte-s4hj64{visibility:hidden;opacity:0}.controls-hidden.svelte-s4hj64.svelte-s4hj64{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-s4hj64.svelte-s4hj64{transition:none}.overlay-mobile.svelte-s4hj64.svelte-s4hj64{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-s4hj64.svelte-s4hj64{top:16px}.wrapper-top-left.fullscreen.svelte-s4hj64.svelte-s4hj64{top:16px}.controls-wrapper.fullscreen.svelte-s4hj64.svelte-s4hj64{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-s4hj64.svelte-s4hj64{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-s4hj64.svelte-s4hj64{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-s4hj64.svelte-s4hj64{left:44px}.wrapper-middle-left-second.fullscreen.svelte-s4hj64.svelte-s4hj64{left:96px}.wrapper-middle-right.fullscreen.svelte-s4hj64.svelte-s4hj64{right:44px}.controls-wrapper.fullscreen.svelte-s4hj64.svelte-s4hj64{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 rp(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v=(!i[46]||i[48])&&sp(i),E=wt(i[51]),H=[];for(let P=0;P<E.length;P+=1)H[P]=lp(op(i,E,P));let U=P=>p(H[P],1,1,()=>{H[P]=null}),W=i[58].features.autoplayNext&&i[9]&&ap(i),ne=i[31]&&up(i),de=i[32]&&cp(i),q=i[52]&&fp(i),X=i[34]&&dp(i),oe=i[28]&&mp(i),K=i[27]&&pp(i),ce=i[26]&&_p(i),z=i[29]&&hp(i),x=i[93]&&!i[22]&&gp(i);return{c(){e=I("div"),t=Y(),n=I("div"),v&&v.c(),o=Y(),r=I("div");for(let P=0;P<H.length;P+=1)H[P].c();s=Y(),W&&W.c(),a=Y(),ne&&ne.c(),l=Y(),de&&de.c(),u=Y(),q&&q.c(),c=Y(),X&&X.c(),m=Y(),h=I("div"),oe&&oe.c(),C=Y(),K&&K.c(),g=Y(),ce&&ce.c(),S=Y(),z&&z.c(),k=Y(),x&&x.c(),F=Je(),f(e,"class","overlay-mobile svelte-s4hj64"),j(e,"hidden",!i[37]),f(n,"class","wrapper-top-left svelte-s4hj64"),j(n,"hidden",!i[4]),j(n,"fullscreen",i[47]),f(r,"class","wrapper-top-right svelte-s4hj64"),j(r,"hidden",!i[4]&&!i[20]),j(r,"fullscreen",i[47]),f(h,"class","wrapper-middle svelte-s4hj64"),j(h,"hidden",!i[4]||i[22])},m(P,J){w(P,e,J),w(P,t,J),w(P,n,J),v&&v.m(n,null),w(P,o,J),w(P,r,J);for(let le=0;le<H.length;le+=1)H[le]&&H[le].m(r,null);_(r,s),W&&W.m(r,null),_(r,a),ne&&ne.m(r,null),_(r,l),de&&de.m(r,null),_(r,u),q&&q.m(r,null),_(r,c),X&&X.m(r,null),w(P,m,J),w(P,h,J),oe&&oe.m(h,null),_(h,C),K&&K.m(h,null),_(h,g),ce&&ce.m(h,null),_(h,S),z&&z.m(h,null),w(P,k,J),x&&x.m(P,J),w(P,F,J),T=!0},p(P,J){if((!T||J[1]&64)&&j(e,"hidden",!P[37]),!P[46]||P[48]?v?(v.p(P,J),J[1]&163840&&d(v,1)):(v=sp(P),v.c(),d(v,1),v.m(n,null)):v&&(ae(),p(v,1,1,()=>{v=null}),ue()),(!T||J[0]&16)&&j(n,"hidden",!P[4]),(!T||J[1]&65536)&&j(n,"fullscreen",P[47]),J[1]&1048576){E=wt(P[51]);let le;for(le=0;le<E.length;le+=1){let Ae=op(P,E,le);H[le]?(H[le].p(Ae,J),d(H[le],1)):(H[le]=lp(Ae),H[le].c(),d(H[le],1),H[le].m(r,s))}for(ae(),le=E.length;le<H.length;le+=1)U(le);ue()}P[58].features.autoplayNext&&P[9]?W?(W.p(P,J),J[0]&512&&d(W,1)):(W=ap(P),W.c(),d(W,1),W.m(r,a)):W&&(ae(),p(W,1,1,()=>{W=null}),ue()),P[31]?ne?(ne.p(P,J),J[1]&1&&d(ne,1)):(ne=up(P),ne.c(),d(ne,1),ne.m(r,l)):ne&&(ae(),p(ne,1,1,()=>{ne=null}),ue()),P[32]?de?(de.p(P,J),J[1]&2&&d(de,1)):(de=cp(P),de.c(),d(de,1),de.m(r,u)):de&&(ae(),p(de,1,1,()=>{de=null}),ue()),P[52]?q?(q.p(P,J),J[1]&2097152&&d(q,1)):(q=fp(P),q.c(),d(q,1),q.m(r,c)):q&&(ae(),p(q,1,1,()=>{q=null}),ue()),P[34]?X?(X.p(P,J),J[1]&8&&d(X,1)):(X=dp(P),X.c(),d(X,1),X.m(r,null)):X&&(ae(),p(X,1,1,()=>{X=null}),ue()),(!T||J[0]&1048592)&&j(r,"hidden",!P[4]&&!P[20]),(!T||J[1]&65536)&&j(r,"fullscreen",P[47]),P[28]?oe?(oe.p(P,J),J[0]&268435456&&d(oe,1)):(oe=mp(P),oe.c(),d(oe,1),oe.m(h,C)):oe&&(ae(),p(oe,1,1,()=>{oe=null}),ue()),P[27]?K?(K.p(P,J),J[0]&134217728&&d(K,1)):(K=pp(P),K.c(),d(K,1),K.m(h,g)):K&&(ae(),p(K,1,1,()=>{K=null}),ue()),P[26]?ce?(ce.p(P,J),J[0]&67108864&&d(ce,1)):(ce=_p(P),ce.c(),d(ce,1),ce.m(h,S)):ce&&(ae(),p(ce,1,1,()=>{ce=null}),ue()),P[29]?z?(z.p(P,J),J[0]&536870912&&d(z,1)):(z=hp(P),z.c(),d(z,1),z.m(h,null)):z&&(ae(),p(z,1,1,()=>{z=null}),ue()),(!T||J[0]&4194320)&&j(h,"hidden",!P[4]||P[22]),P[93]&&!P[22]?x?(x.p(P,J),J[0]&4194304&&d(x,1)):(x=gp(P),x.c(),d(x,1),x.m(F.parentNode,F)):x&&(ae(),p(x,1,1,()=>{x=null}),ue())},i(P){if(!T){d(v);for(let J=0;J<E.length;J+=1)d(H[J]);d(W),d(ne),d(de),d(q),d(X),d(oe),d(K),d(ce),d(z),d(x),T=!0}},o(P){p(v),H=H.filter(Boolean);for(let J=0;J<H.length;J+=1)p(H[J]);p(W),p(ne),p(de),p(q),p(X),p(oe),p(K),p(ce),p(z),p(x),T=!1},d(P){P&&(y(e),y(t),y(n),y(o),y(r),y(m),y(h),y(k),y(F)),v&&v.d(),li(H,P),W&&W.d(),ne&&ne.d(),de&&de.d(),q&&q.d(),X&&X.d(),oe&&oe.d(),K&&K.d(),ce&&ce.d(),z&&z.d(),x&&x.d(P)}}}function sp(i){let e,t,n;function o(s){i[132](s)}let r={muted:i[49],expanded:i[46]&&!i[66]&&i[50],click:i[102]};return i[16].volume!==void 0&&(r.ref=i[16].volume),e=new _c({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[1]&262144&&(l.muted=s[49]),a[1]&557056&&(l.expanded=s[46]&&!s[66]&&s[50]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function lp(i){var n;let e,t;return e=new Qm({props:{iconUrl:i[171],ariaLabel:(n=i[172])!=null?n:i[175],testId:i[173],onClick:i[174]}}),{c(){R(e.$$.fragment)},m(o,r){L(e,o,r),t=!0},p(o,r){var a;let s={};r[1]&1048576&&(s.iconUrl=o[171]),r[1]&1048576&&(s.ariaLabel=(a=o[172])!=null?a:o[175]),r[1]&1048576&&(s.testId=o[173]),r[1]&1048576&&(s.onClick=o[174]),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){V(e,o)}}}function ap(i){let e,t,n;function o(s){i[133](s)}let r={};return i[16].autoplayNextToggle!==void 0&&(r.ref=i[16].autoplayNextToggle),e=new tp({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function up(i){let e,t,n;function o(s){i[134](s)}let r={isMobile:!0,click:i[100],state:i[21]};return i[16].chromecast!==void 0&&(r.ref=i[16].chromecast),e=new sl({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&2097152&&(l.state=s[21]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function cp(i){let e,t,n;function o(s){i[135](s)}let r={click:i[101],isPictureInPictureActive:i[19]};return i[16].pip!==void 0&&(r.ref=i[16].pip),e=new ep({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&524288&&(l.isPictureInPictureActive=s[19]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function fp(i){let e,t;return e=new is({props:{ref$:i[104]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function dp(i){let e,t,n;function o(s){i[136](s)}let r={click:i[60],targetUrl:i[8],logoClickable:i[7]};return i[16].vkLogo!==void 0&&(r.ref=i[16].vkLogo),e=new rl({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(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]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function mp(i){let e,t,n;function o(s){i[137](s)}let r={click:i[11],type:"prev",isMobile:!0};return i[16].prevButton!==void 0&&(r.ref=i[16].prevButton),e=new Fr({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&2048&&(l.click=s[11]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function pp(i){let e,t,n;function o(s){i[138](s)}let r={disabled:i[44],click:i[59],isMobile:!0,isPlaying:i[24]};return i[16].playButton!==void 0&&(r.ref=i[16].playButton),e=new ss({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[1]&8192&&(l.disabled=s[44]),a[0]&16777216&&(l.isPlaying=s[24]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function _p(i){let e,t,n;function o(s){i[139](s)}let r={disabled:i[43],click:i[103],isMobile:!0};return i[16].replayButton!==void 0&&(r.ref=i[16].replayButton),e=new rs({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[1]&4096&&(l.disabled=s[43]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function hp(i){let e,t,n;function o(s){i[140](s)}let r={click:i[10],type:"next",isMobile:!0};return i[16].nextButton!==void 0&&(r.ref=i[16].nextButton),e=new Fr({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&1024&&(l.click=s[10]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function gp(i){let e,t,n,o,r=i[96]&&l5(i),s=i[39]&&bp(i),a=i[95]&&a5(i);return{c(){r&&r.c(),e=Y(),s&&s.c(),t=Y(),a&&a.c(),n=Je()},m(l,u){r&&r.m(l,u),w(l,e,u),s&&s.m(l,u),w(l,t,u),a&&a.m(l,u),w(l,n,u),o=!0},p(l,u){l[96]&&r.p(l,u),l[39]?s?(s.p(l,u),u[1]&256&&d(s,1)):(s=bp(l),s.c(),d(s,1),s.m(t.parentNode,t)):s&&(ae(),p(s,1,1,()=>{s=null}),ue()),l[95]&&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&&(y(e),y(t),y(n)),r&&r.d(l),s&&s.d(l),a&&a.d(l)}}}function l5(i){let e,t,n,o,r,s;function a(u){i[141](u)}let l={hidden:!i[4],disabled:i[42],click:i[14]};return i[16].playPrevChapterButton!==void 0&&(l.ref=i[16].playPrevChapterButton),t=new Cl({props:l}),ve.push(()=>ze(t,"ref",a)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","wrapper-middle-left svelte-s4hj64"),j(e,"fullscreen",i[47]),j(e,"hidden",!i[4])},m(u,c){w(u,e,c),L(t,e,null),o=!0,r||(s=ke(e,"click",i[105]),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]&65536&&(n=!0,m.ref=u[16].playPrevChapterButton,Ue(()=>n=!1)),t.$set(m),(!o||c[1]&65536)&&j(e,"fullscreen",u[47]),(!o||c[0]&16)&&j(e,"hidden",!u[4])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){p(t.$$.fragment,u),o=!1},d(u){u&&y(e),V(t),r=!1,s()}}}function bp(i){let e,t,n,o,r;function s(l){i[142](l)}let a={hidden:!i[4]&&!i[53],disabled:i[45],click:i[99].toggle,graphIsOpened:i[53]};return i[16].interactiveGraphButton!==void 0&&(a.ref=i[16].interactiveGraphButton),t=new Tl({props:a}),ve.push(()=>ze(t,"ref",s)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class",o=Lf(i[96]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-s4hj64"),j(e,"fullscreen",i[47]),j(e,"hidden",!i[4]&&!i[53])},m(l,u){w(l,e,u),L(t,e,null),r=!0},p(l,u){let c={};u[0]&16|u[1]&4194304&&(c.hidden=!l[4]&&!l[53]),u[1]&16384&&(c.disabled=l[45]),u[1]&4194304&&(c.graphIsOpened=l[53]),!n&&u[0]&65536&&(n=!0,c.ref=l[16].interactiveGraphButton,Ue(()=>n=!1)),t.$set(c),(!r||u[1]&65536)&&j(e,"fullscreen",l[47]),(!r||u[0]&16|u[1]&4194304)&&j(e,"hidden",!l[4]&&!l[53])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){p(t.$$.fragment,l),r=!1},d(l){l&&y(e),V(t)}}}function a5(i){let e,t,n,o,r,s;function a(u){i[143](u)}let l={hidden:!i[4],disabled:i[41],click:i[13]};return i[16].seekToInteractiveButton!==void 0&&(l.ref=i[16].seekToInteractiveButton),t=new Sl({props:l}),ve.push(()=>ze(t,"ref",a)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","wrapper-middle-right svelte-s4hj64"),j(e,"fullscreen",i[47]),j(e,"hidden",!i[4])},m(u,c){w(u,e,c),L(t,e,null),o=!0,r||(s=ke(e,"click",i[106]),r=!0)},p(u,c){let m={};c[0]&16&&(m.hidden=!u[4]),c[1]&1024&&(m.disabled=u[41]),c[0]&8192&&(m.click=u[13]),!n&&c[0]&65536&&(n=!0,m.ref=u[16].seekToInteractiveButton,Ue(()=>n=!1)),t.$set(m),(!o||c[1]&65536)&&j(e,"fullscreen",u[47]),(!o||c[0]&16)&&j(e,"hidden",!u[4])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){p(t.$$.fragment,u),o=!1},d(u){u&&y(e),V(t),r=!1,s()}}}function vp(i){let e,t,n,o,r,s=i[48]&&yp(i),a=i[25]&&wp(i);return o=new al({props:{position:i[54],duration:i[55]}}),{c(){s&&s.c(),e=Y(),a&&a.c(),t=Y(),n=I("div"),R(o.$$.fragment),f(n,"class","wrapper-bottom ads-timeline-mobile svelte-s4hj64"),j(n,"fullscreen",i[47])},m(l,u){s&&s.m(l,u),w(l,e,u),a&&a.m(l,u),w(l,t,u),w(l,n,u),L(o,n,null),r=!0},p(l,u){l[48]?s?(s.p(l,u),u[1]&131072&&d(s,1)):(s=yp(l),s.c(),d(s,1),s.m(e.parentNode,e)):s&&(ae(),p(s,1,1,()=>{s=null}),ue()),l[25]?a?(a.p(l,u),u[0]&33554432&&d(a,1)):(a=wp(l),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(ae(),p(a,1,1,()=>{a=null}),ue());let c={};u[1]&8388608&&(c.position=l[54]),u[1]&16777216&&(c.duration=l[55]),o.$set(c),(!r||u[1]&65536)&&j(n,"fullscreen",l[47])},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&&(y(e),y(t),y(n)),s&&s.d(l),a&&a.d(l),V(o)}}}function yp(i){let e,t,n,o;function r(a){i[144](a)}let s={muted:i[49],expanded:!1,click:i[102]};return i[16].volume!==void 0&&(s.ref=i[16].volume),t=new _c({props:s}),ve.push(()=>ze(t,"ref",r)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","wrapper-top-right svelte-s4hj64"),j(e,"fullscreen",i[47])},m(a,l){w(a,e,l),L(t,e,null),o=!0},p(a,l){let u={};l[1]&262144&&(u.muted=a[49]),!n&&l[0]&65536&&(n=!0,u.ref=a[16].volume,Ue(()=>n=!1)),t.$set(u),(!o||l[1]&65536)&&j(e,"fullscreen",a[47])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&y(e),V(t)}}}function wp(i){let e,t,n,o;function r(a){i[145](a)}let s={disabled:i[44],click:i[59],isMobile:!0,isPlaying:!i[25]};return i[16].playButton!==void 0&&(s.ref=i[16].playButton),t=new ss({props:s}),ve.push(()=>ze(t,"ref",r)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","wrapper-middle svelte-s4hj64")},m(a,l){w(a,e,l),L(t,e,null),o=!0},p(a,l){let u={};l[1]&8192&&(u.disabled=a[44]),l[0]&33554432&&(u.isPlaying=!a[25]),!n&&l[0]&65536&&(n=!0,u.ref=a[16].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&&y(e),V(t)}}}function u5(i){let e,t,n;function o(s){i[146](s)}let r={disabled:i[43],$$slots:{default:[c5]},$$scope:{ctx:i}};return i[16].replayButton!==void 0&&(r.ref=i[16].replayButton),e=new Ji({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[1]&4096&&(l.disabled=s[43]),a[1]&4096|a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function c5(i){let e,t;return e=new rs({props:{disabled:i[43],click:i[92]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&4096&&(r.disabled=n[43]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function kp(i){let e,t,n;function o(s){i[147](s)}let r={$$slots:{default:[f5]},$$scope:{ctx:i}};return i[16].liveButton!==void 0&&(r.ref=i[16].liveButton),e=new Ji({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&32768|a[1]&512|a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function f5(i){let e,t;return e=new Il({props:{isLiveActive:i[15],isMobile:!0,ariaLabel:i[40]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&32768&&(r.isLiveActive=n[15]),o[1]&512&&(r.ariaLabel=n[40]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Cp(i){let e,t,n;function o(s){i[148](s)}let r={showDuration:i[30],position:i[5]?i[54]:i[56],duration:i[5]?i[55]:i[57],isMobile:!0};return i[16].time!==void 0&&(r.ref=i[16].time),e=new il({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&1073741824&&(l.showDuration=s[30]),a[0]&32|a[1]&41943040&&(l.position=s[5]?s[54]:s[56]),a[0]&32|a[1]&83886080&&(l.duration=s[5]?s[55]:s[57]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function Sp(i){let e,t,n,o;return n=new cl({props:{position:i[56],duration:i[57],timeCodes:i[80]}}),{c(){e=I("div"),e.textContent="\xB7",t=Y(),R(n.$$.fragment),f(e,"aria-hidden","true")},m(r,s){w(r,e,s),w(r,t,s),L(n,r,s),o=!0},p(r,s){let a={};s[1]&33554432&&(a.position=r[56]),s[1]&67108864&&(a.duration=r[57]),n.$set(a)},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){p(n.$$.fragment,r),o=!1},d(r){r&&(y(e),y(t)),V(n,r)}}}function d5(i){let e,t,n=i[38]&&Sp(i);return{c(){n&&n.c(),e=Je()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,r){o[38]?n?(n.p(o,r),r[1]&128&&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&&y(e),n&&n.d(o)}}}function Tp(i){let e,t,n;function o(s){i[150](s)}let r={$$slots:{default:[m5]},$$scope:{ctx:i}};return i[16].settings!==void 0&&(r.ref=i[16].settings),e=new Ji({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function m5(i){let e,t;return e=new is({props:{ref$:i[104]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Ip(i){let e,t,n;function o(s){i[151](s)}let r={$$slots:{default:[p5]},$$scope:{ctx:i}};return i[16].fullscreen!==void 0&&(r.ref=i[16].fullscreen),e=new Ji({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&4096|a[1]&65536|a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function p5(i){let e,t;return e=new ol({props:{click:i[12],isFullscreen:i[47]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4096&&(r.click=n[12]),o[1]&65536&&(r.isFullscreen=n[47]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function _5(i){let e,t,n;function o(s){i[155](s)}let r={};return i[16].interactiveTimeIndicator!==void 0&&(r.ref=i[16].interactiveTimeIndicator),e=new wl({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&65536&&(t=!0,l.ref=s[16].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){V(e,s)}}}function h5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v=!i[5]&&rp(i),E=i[5]&&i[23]!=="inactive"&&vp(i),H=i[93]&&u5(i),U=!i[5]&&i[18]&&kp(i),W=i[36]&&Cp(i);function ne(z){i[149](z)}let de={className:"w-max",disabled:!i[38],$$slots:{default:[d5]},$$scope:{ctx:i}};i[16].episodes!==void 0&&(de.ref=i[16].episodes),u=new Ji({props:de}),ve.push(()=>ze(u,"ref",ne));let q=i[33]&&Tp(i),X=i[35]&&Ip(i);function oe(z){i[153](z)}let K={isAds:i[5],canRewindLive:i[6],isRewindableLive:i[17]};i[16].timeline!==void 0&&(K.ref=i[16].timeline),g=new ul({props:K}),ve.push(()=>ze(g,"ref",oe));let ce=i[97]&&_5(i);return{c(){v&&v.c(),e=Y(),E&&E.c(),t=Y(),n=I("div"),o=I("div"),r=I("div"),H&&H.c(),s=Y(),U&&U.c(),a=Y(),W&&W.c(),l=Y(),R(u.$$.fragment),m=Y(),q&&q.c(),h=Y(),X&&X.c(),C=Y(),R(g.$$.fragment),k=Y(),ce&&ce.c(),F=Je(),f(r,"class","controls svelte-s4hj64"),j(r,"mobile",!0),f(o,"class","controls-wrapper svelte-s4hj64"),j(o,"fullscreen",i[47]),f(n,"class","wrapper-bottom svelte-s4hj64"),j(n,"hidden",i[2]),j(n,"controls-hidden",!i[4]),j(n,"no-smooth",i[3]),j(n,"mobile",!0)},m(z,x){v&&v.m(z,x),w(z,e,x),E&&E.m(z,x),w(z,t,x),w(z,n,x),_(n,o),_(o,r),H&&H.m(r,null),_(r,s),U&&U.m(r,null),_(r,a),W&&W.m(r,null),_(r,l),L(u,r,null),_(r,m),q&&q.m(r,null),_(r,h),X&&X.m(r,null),i[152](r),_(o,C),L(g,o,null),i[154](n),w(z,k,x),ce&&ce.m(z,x),w(z,F,x),T=!0},p(z,x){z[5]?v&&(ae(),p(v,1,1,()=>{v=null}),ue()):v?(v.p(z,x),x[0]&32&&d(v,1)):(v=rp(z),v.c(),d(v,1),v.m(e.parentNode,e)),z[5]&&z[23]!=="inactive"?E?(E.p(z,x),x[0]&8388640&&d(E,1)):(E=vp(z),E.c(),d(E,1),E.m(t.parentNode,t)):E&&(ae(),p(E,1,1,()=>{E=null}),ue()),z[93]&&H.p(z,x),!z[5]&&z[18]?U?(U.p(z,x),x[0]&262176&&d(U,1)):(U=kp(z),U.c(),d(U,1),U.m(r,a)):U&&(ae(),p(U,1,1,()=>{U=null}),ue()),z[36]?W?(W.p(z,x),x[1]&32&&d(W,1)):(W=Cp(z),W.c(),d(W,1),W.m(r,l)):W&&(ae(),p(W,1,1,()=>{W=null}),ue());let P={};x[1]&128&&(P.disabled=!z[38]),x[1]&100663424|x[5]&8388608&&(P.$$scope={dirty:x,ctx:z}),!c&&x[0]&65536&&(c=!0,P.ref=z[16].episodes,Ue(()=>c=!1)),u.$set(P),z[33]?q?(q.p(z,x),x[1]&4&&d(q,1)):(q=Tp(z),q.c(),d(q,1),q.m(r,h)):q&&(ae(),p(q,1,1,()=>{q=null}),ue()),z[35]?X?(X.p(z,x),x[1]&16&&d(X,1)):(X=Ip(z),X.c(),d(X,1),X.m(r,null)):X&&(ae(),p(X,1,1,()=>{X=null}),ue());let J={};x[0]&32&&(J.isAds=z[5]),x[0]&64&&(J.canRewindLive=z[6]),x[0]&131072&&(J.isRewindableLive=z[17]),!S&&x[0]&65536&&(S=!0,J.ref=z[16].timeline,Ue(()=>S=!1)),g.$set(J),(!T||x[1]&65536)&&j(o,"fullscreen",z[47]),(!T||x[0]&4)&&j(n,"hidden",z[2]),(!T||x[0]&16)&&j(n,"controls-hidden",!z[4]),(!T||x[0]&8)&&j(n,"no-smooth",z[3]),z[97]&&ce.p(z,x)},i(z){T||(d(v),d(E),d(H),d(U),d(W),d(u.$$.fragment,z),d(q),d(X),d(g.$$.fragment,z),d(ce),T=!0)},o(z){p(v),p(E),p(H),p(U),p(W),p(u.$$.fragment,z),p(q),p(X),p(g.$$.fragment,z),p(ce),T=!1},d(z){z&&(y(e),y(t),y(n),y(k),y(F)),v&&v.d(z),E&&E.d(z),H&&H.d(),U&&U.d(),W&&W.d(),V(u),q&&q.d(),X&&X.d(),i[152](null),V(g),i[154](null),ce&&ce.d(z)}}}function g5(i,e,t){var Qi,Oi;let n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,de,q,X,oe,K,ce,z,x,P,J,le,Ae,ee,ge,Pe,Te,Ie,{bottomHidden:rt}=e,{bottomNoSmooth:Ee}=e,{showControls:We}=e,{playerControlsWrapperRef:$=void 0}=e,{playerControlsRef:_e=void 0}=e,{isAds:Ce=!1}=e,{canRewindLive:xe}=e,{logoClickable:st}=e,{logoHidden:at}=e,{logoTargetUrl:nt=""}=e,{showNextPrevButtons:$e}=e,{nextButtonActive:fe}=e,{prevButtonActive:Se}=e,{isOneVideoPlaylist:et=!1}=e,{customFullscreenSupported:Ne=!0}=e,{playNextVideo:tt}=e,{playPrevVideo:Fe}=e,{repeatPlaylist:ct}=e,{toggleFullscreen:dt}=e,{seekToInteractive:he}=e,{playPrevChapter:_t}=e,{onDisabledPlayPrevChapterClick:kt}=e,{onDisabledSeekToInteractiveClick:Ct}=e,Ze=ot(),Et=On(),Vt=Dt(),ri=Ze.actions.internal.toggleMuted,Ut=Ze.actions.internal.togglePlay,zt=Ze.actions.internal.pause,Qt=(Qi=Ze.callbacks)==null?void 0:Qi.onAudioDoesNotExistHint,Wt=(Oi=Ze.callbacks)==null?void 0:Oi.onAudioDisabledHint,Ke=Ze.playerPhase;D(i,Ke,te=>t(128,de=te));let Xe=Ze.state.duration$;D(i,Xe,te=>t(57,Ie=te));let It=Ze.state.positionWithScrubbing$;D(i,It,te=>t(56,Te=te));let pe=Ze.state.playbackState$;D(i,pe,te=>t(122,C=te));let Zt=Ze.state.isAudioAvailable$;D(i,Zt,te=>t(46,g=te));let At=Ze.state.isAudioDisabled,ii=Ze.state.isEnded$;D(i,ii,te=>t(129,X=te));let Ot=Ze.state.isLive$;D(i,Ot,te=>t(18,E=te));let xt=Ze.state.muted$;D(i,xt,te=>t(49,P=te));let si=Ze.state.isActiveLive$;D(i,si,te=>t(126,T=te));let Mt=Ze.state.isRewindableLive$;D(i,Mt,te=>t(17,v=te));let ni=Ze.ui.scrubbingInProgress;D(i,ni,te=>t(22,q=te));let Xt=Ze.ui.mobileNotReportControlHidden$;D(i,Xt,te=>t(20,W=te));let dn=Ze.ui.isPictureInPictureActive$;D(i,dn,te=>t(19,U=te));let Bt=Ze.ui.pictureInPictureType$;D(i,Bt,te=>t(127,H=te));let qi=Ze.ui.mobileUnmuteButtonExpanded;D(i,qi,te=>t(50,J=te));let en=Ze.ui.mobileUnmuteButtonVisible;D(i,en,te=>t(48,x=te));let gi=Ze.ui.settingsMenuVisible;D(i,gi,te=>t(120,m=te));let wi=Ze.ui.settingsMenuOpenedByKeyboard;D(i,wi,te=>t(119,c=te));let De=Ze.ui.controls,it=Ze.actions.internal.getVideoEpisodes(),St=Ze.webApi.pictureInPictureApi,bi=Ze.state.chromecastState$;D(i,bi,te=>t(21,ne=te));let ki=Ze.state.crashed$;D(i,ki,te=>t(52,Ae=te));let tn=De.disabledControls$;D(i,tn,te=>t(130,K=te));let Ai=Ze.ui.startedByKeyboard$;D(i,Ai,te=>t(118,u=te));let mn=Ze.ui.currentGridType$;D(i,mn,te=>t(125,F=te));let mi=Ze.ads.duration;D(i,mi,te=>t(55,Pe=te));let Ui=Ze.ads.position;D(i,Ui,te=>t(54,ge=te));let zi=Ze.ads.playbackState;D(i,zi,te=>t(23,oe=te));let Ht=Ze.ui.isFullscreen;D(i,Ht,te=>t(47,z=te));let Ci=Ze.ui.playerSize;D(i,Ci,te=>t(124,k=te));let ui=Ze.ui.additionalButtonsDeprecated$;D(i,ui,te=>t(51,le=te));let Kt=Ze.actions.internal.getVideoElement,In=Ze.actions.internal.replayInteractive,vi=Ze.state.isInteractive,pn=Ze.state.isInteractiveTime$;D(i,pn,te=>t(123,S=te));let Pn=Ze.state.showInteractiveGraph,nn=Ze.state.showSeekToInteractive,_n=Ze.state.showPlayPrevChapter,Si=Ze.state.showInteractiveTimeIndicator,on=Et.seekToInteractiveDisabledTooltip$;D(i,on,te=>t(131,ce=te));let jt=Et.graphIsOpened$;D(i,jt,te=>t(53,ee=te));let qn,Wi,Ki,xi,yi,Mi,rn,sn,Ti,Ii,ci,Gt,qt,Li,Vi,ln,ut,Ri,fi,Bi,Ni,je={},Un=r5(vl,260),an=()=>Ze.actions.internal.toggleChromecast();function En(){Do({isAudioDisabled:At,audioDisabledHintCallback:Wt,isAudioAvailable:g,audioIsNotExistHintCallback:Qt})&&ri()}function hn(){return pt(this,null,function*(){St!=null&&St.isActive()?yield St==null?void 0:St.remove():yield St==null?void 0:St.request()})}function ji(){!At&&g&&en.set(!1),En()}let Gi=et?Ut:ct,Yi="",gn=(te,Fi)=>{if(!te){t(40,Yi=G("tooltip_live"));return}Fi===np.PAUSED&&t(40,Yi=G("tooltip_play"))},pi,An=Oe();D(i,An,te=>t(121,h=te));let Mn=()=>{l&&kt(qn)},Ln=()=>{r&&Ct(Wi)};function bn(te){i.$$.not_equal(je.volume,te)&&(je.volume=te,t(16,je))}function vn(te){i.$$.not_equal(je.autoplayNextToggle,te)&&(je.autoplayNextToggle=te,t(16,je))}function Vn(te){i.$$.not_equal(je.chromecast,te)&&(je.chromecast=te,t(16,je))}function yn(te){i.$$.not_equal(je.pip,te)&&(je.pip=te,t(16,je))}function zn(te){i.$$.not_equal(je.vkLogo,te)&&(je.vkLogo=te,t(16,je))}function Di(te){i.$$.not_equal(je.prevButton,te)&&(je.prevButton=te,t(16,je))}function un(te){i.$$.not_equal(je.playButton,te)&&(je.playButton=te,t(16,je))}function oi(te){i.$$.not_equal(je.replayButton,te)&&(je.replayButton=te,t(16,je))}function oo(te){i.$$.not_equal(je.nextButton,te)&&(je.nextButton=te,t(16,je))}function ro(te){i.$$.not_equal(je.playPrevChapterButton,te)&&(je.playPrevChapterButton=te,t(16,je))}function Wn(te){i.$$.not_equal(je.interactiveGraphButton,te)&&(je.interactiveGraphButton=te,t(16,je))}function di(te){i.$$.not_equal(je.seekToInteractiveButton,te)&&(je.seekToInteractiveButton=te,t(16,je))}function cn(te){i.$$.not_equal(je.volume,te)&&(je.volume=te,t(16,je))}function Qn(te){i.$$.not_equal(je.playButton,te)&&(je.playButton=te,t(16,je))}function Kn(te){i.$$.not_equal(je.replayButton,te)&&(je.replayButton=te,t(16,je))}function so(te){i.$$.not_equal(je.liveButton,te)&&(je.liveButton=te,t(16,je))}function Zn(te){i.$$.not_equal(je.time,te)&&(je.time=te,t(16,je))}function Xn(te){i.$$.not_equal(je.episodes,te)&&(je.episodes=te,t(16,je))}function wn(te){i.$$.not_equal(je.settings,te)&&(je.settings=te,t(16,je))}function xn(te){i.$$.not_equal(je.fullscreen,te)&&(je.fullscreen=te,t(16,je))}function kn(te){ve[te?"unshift":"push"](()=>{_e=te,t(1,_e)})}function lo(te){i.$$.not_equal(je.timeline,te)&&(je.timeline=te,t(16,je))}function ie(te){ve[te?"unshift":"push"](()=>{$=te,t(0,$)})}function bt(te){i.$$.not_equal(je.interactiveTimeIndicator,te)&&(je.interactiveTimeIndicator=te,t(16,je))}return i.$$set=te=>{"bottomHidden"in te&&t(2,rt=te.bottomHidden),"bottomNoSmooth"in te&&t(3,Ee=te.bottomNoSmooth),"showControls"in te&&t(4,We=te.showControls),"playerControlsWrapperRef"in te&&t(0,$=te.playerControlsWrapperRef),"playerControlsRef"in te&&t(1,_e=te.playerControlsRef),"isAds"in te&&t(5,Ce=te.isAds),"canRewindLive"in te&&t(6,xe=te.canRewindLive),"logoClickable"in te&&t(7,st=te.logoClickable),"logoHidden"in te&&t(107,at=te.logoHidden),"logoTargetUrl"in te&&t(8,nt=te.logoTargetUrl),"showNextPrevButtons"in te&&t(9,$e=te.showNextPrevButtons),"nextButtonActive"in te&&t(108,fe=te.nextButtonActive),"prevButtonActive"in te&&t(109,Se=te.prevButtonActive),"isOneVideoPlaylist"in te&&t(110,et=te.isOneVideoPlaylist),"customFullscreenSupported"in te&&t(111,Ne=te.customFullscreenSupported),"playNextVideo"in te&&t(10,tt=te.playNextVideo),"playPrevVideo"in te&&t(11,Fe=te.playPrevVideo),"repeatPlaylist"in te&&t(112,ct=te.repeatPlaylist),"toggleFullscreen"in te&&t(12,dt=te.toggleFullscreen),"seekToInteractive"in te&&t(13,he=te.seekToInteractive),"playPrevChapter"in te&&t(14,_t=te.playPrevChapter),"onDisabledPlayPrevChapterClick"in te&&t(113,kt=te.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in te&&t(114,Ct=te.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&128&&(Wi=G(ce)),i.$$.dirty[4]&64&&t(117,n=K.has("EPISODE_BUTTON")),i.$$.dirty[4]&64&&t(45,o=K.has("GRAPH_BUTTON")),i.$$.dirty[4]&64&&t(41,r=K.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[4]&64&&t(44,s=K.has("PLAY_BUTTON")),i.$$.dirty[4]&64&&t(43,a=K.has("REPLAY_BUTTON")),i.$$.dirty[4]&64&&t(42,l=K.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[3]&536870912&&t(24,Ki=C===np.PLAYING),i.$$.dirty[0]&8388608&&t(25,xi=oe==="paused"),i.$$.dirty[0]&32|i.$$.dirty[4]&32&&t(26,yi=X&&!Ce&&!vi),i.$$.dirty[0]&32|i.$$.dirty[4]&32&&t(27,Mi=!X||Ce),i.$$.dirty[0]&544|i.$$.dirty[3]&65536&&t(28,rn=$e&&!Ce&&Se),i.$$.dirty[0]&544|i.$$.dirty[3]&32768&&t(29,sn=$e&&!Ce&&fe),i.$$.dirty[4]&1&&t(115,Ti=k.width>300),i.$$.dirty[4]&1&&t(30,Ii=k.width>400),i.$$.dirty[0]&4194304&&t(116,ci=q),i.$$.dirty[0]&3670016|i.$$.dirty[4]&8&&t(31,Gt=ne!==ip.NOT_AVAILABLE&&!(U&&H===1)&&!W&&!vi),i.$$.dirty[0]&3145728|i.$$.dirty[3]&8388608|i.$$.dirty[4]&24){let te=de==="LiveWaitingStart";t(32,qt=!!St&&ne!==ip.CONNECTED&&!W&&(H===1&&te||!te)&&!ci&&!vi)}i.$$.dirty[3]&8388608|i.$$.dirty[4]&2&&t(33,Li=!ci&&hi(F,"s")),i.$$.dirty[3]&16384|i.$$.dirty[4]&1&&t(34,Vi=!at&&k.width>350),i.$$.dirty[0]&524288|i.$$.dirty[3]&8650752|i.$$.dirty[4]&8&&t(35,ln=Vt.features.fullscreen&&!(U&&H===1)&&(vi?Ne:!0)&&!ci),i.$$.dirty[0]&262176|i.$$.dirty[3]&8388608|i.$$.dirty[4]&1&&t(36,ut=(!E||Ce)&&k.width>260&&!ci&&!(Vt.features.interactiveHideTime&&vi)),i.$$.dirty[0]&16|i.$$.dirty[3]&134217728&&t(37,Ri=m||We),i.$$.dirty[0]&262176|i.$$.dirty[3]&29360128&&t(38,fi=!Ce&&!E&&!!(it!=null&&it.length)&&Ti&&!n&&!ci),i.$$.dirty[0]&131072|i.$$.dirty[4]&4&&t(15,Bi=!v||T),i.$$.dirty[4]&2&&t(39,Ni=Pn&&hi(F,"m")),i.$$.dirty[0]&65552|i.$$.dirty[3]&1073741824|i.$$.dirty[4]&1&&Un(Kt(),De,je,We),i.$$.dirty[0]&32768|i.$$.dirty[3]&536870912&&gn(Bi,C),i.$$.dirty[3]&402653184&&h&&Ar(h,m,wi),i.$$.dirty[3]&201326592&&po(pi,m,c),i.$$.dirty[0]&65536|i.$$.dirty[3]&33554432&&yl(Ai,u,je.playButton)},qn=G(Ze.state.playPrevChapterDisabledTooltip),[$,_e,rt,Ee,We,Ce,xe,st,nt,$e,tt,Fe,dt,he,_t,Bi,je,v,E,U,W,ne,q,oe,Ki,xi,yi,Mi,rn,sn,Ii,Gt,qt,Li,Vi,ln,ut,Ri,fi,Ni,Yi,r,l,a,s,o,g,z,x,P,J,le,Ae,ee,ge,Pe,Te,Ie,Vt,Ut,zt,Ke,Xe,It,pe,Zt,At,ii,Ot,xt,si,Mt,ni,Xt,dn,Bt,qi,en,gi,wi,it,bi,ki,tn,Ai,mn,mi,Ui,zi,Ht,Ci,ui,In,vi,pn,nn,_n,Si,on,jt,an,hn,ji,Gi,An,Mn,Ln,at,fe,Se,et,Ne,ct,kt,Ct,Ti,ci,n,u,c,m,h,C,S,k,F,T,H,de,X,K,ce,bn,vn,Vn,yn,zn,Di,un,oi,oo,ro,Wn,di,cn,Qn,Kn,so,Zn,Xn,wn,xn,kn,lo,ie,bt]}var yc=class extends N{constructor(e){super(),O(this,e,g5,h5,B,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:7,logoHidden:107,logoTargetUrl:8,showNextPrevButtons:9,nextButtonActive:108,prevButtonActive:109,isOneVideoPlaylist:110,customFullscreenSupported:111,playNextVideo:10,playPrevVideo:11,repeatPlaylist:112,toggleFullscreen:12,seekToInteractive:13,playPrevChapter:14,onDisabledPlayPrevChapterClick:113,onDisabledSeekToInteractiveClick:114},s5,[-1,-1,-1,-1,-1,-1])}},Pp=yc;function Ap(i){let e,t,n,o,r=[v5,b5],s=[];function a(l,u){return l[24]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Je()},m(l,u){s[e].m(l,u),w(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&&y(n),s[e].d(l)}}}function b5(i){let e,t,n,o;function r(l){i[28](l)}function s(l){i[29](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[11],prevButtonActive:i[12],isOneVideoPlaylist:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],seekToInteractive:i[19],playPrevChapter:i[20]};return i[0]!==void 0&&(a.playerControlsWrapperRef=i[0]),i[1]!==void 0&&(a.playerControlsRef=i[1]),e=new Gm({props:a}),ve.push(()=>ze(e,"playerControlsWrapperRef",r)),ve.push(()=>ze(e,"playerControlsRef",s)),{c(){R(e.$$.fragment)},m(l,u){L(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&2048&&(c.nextButtonActive=l[11]),u&4096&&(c.prevButtonActive=l[12]),u&8192&&(c.isOneVideoPlaylist=l[13]),u&16384&&(c.customFullscreenSupported=l[14]),u&32768&&(c.playNextVideo=l[15]),u&65536&&(c.playPrevVideo=l[16]),u&131072&&(c.repeatPlaylist=l[17]),u&262144&&(c.toggleFullscreen=l[18]),u&524288&&(c.seekToInteractive=l[19]),u&1048576&&(c.playPrevChapter=l[20]),!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){V(e,l)}}}function v5(i){let e,t,n,o;function r(l){i[26](l)}function s(l){i[27](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[11],prevButtonActive:i[12],isOneVideoPlaylist:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],seekToInteractive:i[19],playPrevChapter:i[20],onDisabledPlayPrevChapterClick:i[21],onDisabledSeekToInteractiveClick:i[22]};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(){R(e.$$.fragment)},m(l,u){L(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&2048&&(c.nextButtonActive=l[11]),u&4096&&(c.prevButtonActive=l[12]),u&8192&&(c.isOneVideoPlaylist=l[13]),u&16384&&(c.customFullscreenSupported=l[14]),u&32768&&(c.playNextVideo=l[15]),u&65536&&(c.playPrevVideo=l[16]),u&131072&&(c.repeatPlaylist=l[17]),u&262144&&(c.toggleFullscreen=l[18]),u&524288&&(c.seekToInteractive=l[19]),u&1048576&&(c.playPrevChapter=l[20]),u&2097152&&(c.onDisabledPlayPrevChapterClick=l[21]),u&4194304&&(c.onDisabledSeekToInteractiveClick=l[22]),!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){V(e,l)}}}function y5(i){let e,t,n=i[23]&&Ap(i);return{c(){n&&n.c(),e=Je()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,[r]){o[23]?n?(n.p(o,r),r&8388608&&d(n,1)):(n=Ap(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&&y(e),n&&n.d(o)}}}function w5(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:C=""}=e,{showNextPrevButtons:g}=e,{nextButtonActive:S}=e,{prevButtonActive:k}=e,{isOneVideoPlaylist:F=!1}=e,{customFullscreenSupported:T=!0}=e,{playNextVideo:v}=e,{playPrevVideo:E}=e,{repeatPlaylist:H}=e,{toggleFullscreen:U}=e,{seekToInteractive:W}=e,{playPrevChapter:ne}=e,{onDisabledPlayPrevChapterClick:de=Ep}=e,{onDisabledSeekToInteractiveClick:q=Ep}=e,oe=ot().ui.isMobile;D(i,oe,J=>t(24,n=J));let K=!1;Nt(()=>{let J=setTimeout(()=>t(23,K=!0),0);return()=>clearTimeout(J)});function ce(J){a=J,t(0,a)}function z(J){l=J,t(1,l)}function x(J){a=J,t(0,a)}function P(J){l=J,t(1,l)}return i.$$set=J=>{"bottomHidden"in J&&t(2,o=J.bottomHidden),"bottomNoSmooth"in J&&t(3,r=J.bottomNoSmooth),"showControls"in J&&t(4,s=J.showControls),"playerControlsWrapperRef"in J&&t(0,a=J.playerControlsWrapperRef),"playerControlsRef"in J&&t(1,l=J.playerControlsRef),"isAds"in J&&t(5,u=J.isAds),"canRewindLive"in J&&t(6,c=J.canRewindLive),"logoClickable"in J&&t(7,m=J.logoClickable),"logoHidden"in J&&t(8,h=J.logoHidden),"logoTargetUrl"in J&&t(9,C=J.logoTargetUrl),"showNextPrevButtons"in J&&t(10,g=J.showNextPrevButtons),"nextButtonActive"in J&&t(11,S=J.nextButtonActive),"prevButtonActive"in J&&t(12,k=J.prevButtonActive),"isOneVideoPlaylist"in J&&t(13,F=J.isOneVideoPlaylist),"customFullscreenSupported"in J&&t(14,T=J.customFullscreenSupported),"playNextVideo"in J&&t(15,v=J.playNextVideo),"playPrevVideo"in J&&t(16,E=J.playPrevVideo),"repeatPlaylist"in J&&t(17,H=J.repeatPlaylist),"toggleFullscreen"in J&&t(18,U=J.toggleFullscreen),"seekToInteractive"in J&&t(19,W=J.seekToInteractive),"playPrevChapter"in J&&t(20,ne=J.playPrevChapter),"onDisabledPlayPrevChapterClick"in J&&t(21,de=J.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in J&&t(22,q=J.onDisabledSeekToInteractiveClick)},[a,l,o,r,s,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,de,q,K,n,oe,ce,z,x,P]}var wc=class extends N{constructor(e){super(),O(this,e,w5,y5,B,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:7,logoHidden:8,logoTargetUrl:9,showNextPrevButtons:10,nextButtonActive:11,prevButtonActive:12,isOneVideoPlaylist:13,customFullscreenSupported:14,playNextVideo:15,playPrevVideo:16,repeatPlaylist:17,toggleFullscreen:18,seekToInteractive:19,playPrevChapter:20,onDisabledPlayPrevChapterClick:21,onDisabledSeekToInteractiveClick:22})}},Pl=wc;function k5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S=i[2].default,k=Le(S,i,i[1],null),F=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],T={};for(let v=0;v<F.length;v+=1)T=se(T,F[v]);return{c(){e=M("svg"),k&&k.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),s=M("filter"),a=M("feFlood"),l=M("feColorMatrix"),u=M("feOffset"),c=M("feGaussianBlur"),m=M("feColorMatrix"),h=M("feBlend"),C=M("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(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_2260_100684"),f(C,"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"),we(e,T)},m(v,E){w(v,e,E),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,C),g=!0},p(v,[E]){k&&k.p&&(!g||E&2)&&Re(k,S,v,v[1],g?Ve(S,v[1],E,null):Be(v[1]),null),we(e,T=He(F,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},E&1&&v[0]]))},i(v){g||(d(k,v),g=!0)},o(v){p(k,v),g=!1},d(v){v&&y(e),k&&k.d(v)}}}function C5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var kc=class extends N{constructor(e){super(),O(this,e,C5,k5,B,{})}},Mp=kc;function S5(i){let e,t;return e=new Mp({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function T5(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 Cc=class extends N{constructor(e){super(),O(this,e,T5,S5,B,{reversed:1})}},Lp=Cc;function I5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F=i[2].default,T=Le(F,i,i[1],null),v=[{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]],E={};for(let H=0;H<v.length;H+=1)E=se(E,v[H]);return{c(){e=M("svg"),T&&T.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),s=M("clipPath"),a=M("path"),l=M("filter"),u=M("feFlood"),c=M("feColorMatrix"),m=M("feOffset"),h=M("feGaussianBlur"),C=M("feColorMatrix"),g=M("feBlend"),S=M("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(C,"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(S,"in","SourceGraphic"),f(S,"in2","effect1_dropShadow_2260_104204"),f(S,"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"),we(e,E)},m(H,U){w(H,e,U),T&&T.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,C),_(l,g),_(l,S),k=!0},p(H,[U]){T&&T.p&&(!k||U&2)&&Re(T,F,H,H[1],k?Ve(F,H[1],U,null):Be(H[1]),null),we(e,E=He(v,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},U&1&&H[0]]))},i(H){k||(d(T,H),k=!0)},o(H){p(T,H),k=!1},d(H){H&&y(e),T&&T.d(H)}}}function P5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Sc=class extends N{constructor(e){super(),O(this,e,P5,I5,B,{})}},Vp=Sc;function E5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T=i[2].default,v=Le(T,i,i[1],null),E=[{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]],H={};for(let U=0;U<E.length;U+=1)H=se(H,E[U]);return{c(){e=M("svg"),v&&v.c(),t=M("g"),n=M("path"),o=M("path"),r=M("path"),s=M("defs"),a=M("clipPath"),l=M("path"),u=M("filter"),c=M("feFlood"),m=M("feColorMatrix"),h=M("feOffset"),C=M("feGaussianBlur"),g=M("feColorMatrix"),S=M("feBlend"),k=M("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(C,"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(S,"in2","BackgroundImageFix"),f(S,"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"),we(e,H)},m(U,W){w(U,e,W),v&&v.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,C),_(u,g),_(u,S),_(u,k),F=!0},p(U,[W]){v&&v.p&&(!F||W&2)&&Re(v,T,U,U[1],F?Ve(T,U[1],W,null):Be(U[1]),null),we(e,H=He(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},W&1&&U[0]]))},i(U){F||(d(v,U),F=!0)},o(U){p(v,U),F=!1},d(U){U&&y(e),v&&v.d(U)}}}function A5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Tc=class extends N{constructor(e){super(),O(this,e,A5,E5,B,{})}},Rp=Tc;function M5(i){let e,t;return e=new Vp({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function L5(i){let e,t;return e=new Rp({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function V5(i){let e,t,n,o,r=[L5,M5],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=Je()},m(l,u){s[e].m(l,u),w(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&&y(n),s[e].d(l)}}}function R5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Ic=class extends N{constructor(e){super(),O(this,e,R5,V5,B,{isOff:0})}},Pc=Ic;function B5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S=i[2].default,k=Le(S,i,i[1],null),F=[{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]],T={};for(let v=0;v<F.length;v+=1)T=se(T,F[v]);return{c(){e=M("svg"),k&&k.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),s=M("filter"),a=M("feFlood"),l=M("feColorMatrix"),u=M("feOffset"),c=M("feGaussianBlur"),m=M("feColorMatrix"),h=M("feBlend"),C=M("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(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_2260_106627"),f(C,"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"),we(e,T)},m(v,E){w(v,e,E),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,C),g=!0},p(v,[E]){k&&k.p&&(!g||E&2)&&Re(k,S,v,v[1],g?Ve(S,v[1],E,null):Be(v[1]),null),we(e,T=He(F,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},E&1&&v[0]]))},i(v){g||(d(k,v),g=!0)},o(v){p(k,v),g=!1},d(v){v&&y(e),k&&k.d(v)}}}function N5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ec=class extends N{constructor(e){super(),O(this,e,N5,B5,B,{})}},Bp=Ec;function D5(i){let e,t;return e=new Bp({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function O5(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 Ac=class extends N{constructor(e){super(),O(this,e,O5,D5,B,{reversed:1})}},Np=Ac;function F5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S=i[2].default,k=Le(S,i,i[1],null),F=[{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]],T={};for(let v=0;v<F.length;v+=1)T=se(T,F[v]);return{c(){e=M("svg"),k&&k.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),s=M("filter"),a=M("feFlood"),l=M("feColorMatrix"),u=M("feOffset"),c=M("feGaussianBlur"),m=M("feColorMatrix"),h=M("feBlend"),C=M("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(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_2340_106922"),f(C,"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"),we(e,T)},m(v,E){w(v,e,E),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,C),g=!0},p(v,[E]){k&&k.p&&(!g||E&2)&&Re(k,S,v,v[1],g?Ve(S,v[1],E,null):Be(v[1]),null),we(e,T=He(F,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},E&1&&v[0]]))},i(v){g||(d(k,v),g=!0)},o(v){p(k,v),g=!1},d(v){v&&y(e),k&&k.d(v)}}}function H5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Mc=class extends N{constructor(e){super(),O(this,e,H5,F5,B,{})}},Dp=Mc;function q5(i){let e,t;return e=new Dp({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function U5(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 Lc=class extends N{constructor(e){super(),O(this,e,U5,q5,B,{reversed:1})}},Op=Lc;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 Fp(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,C,g,S,k,F=t&&Hp(i),T=i[4]==="PAUSE"&&qp(i),v=i[4]==="PLAY"&&Up(i),E=i[4]==="REPLAY"&&zp(i),H=i[4]==="SUBTITLES_OFF"&&Wp(i),U=i[4]==="SUBTITLES_ON"&&Kp(i),W=u&&xp(i),ne=m&&jp(i),de=i[4]==="MUTE"&&Gp(i),q=i[4]==="VOLUME"&&Yp(i),X=i[5]&&Qp(i);return{c(){e=I("div"),F&&F.c(),n=Y(),T&&T.c(),o=Y(),v&&v.c(),r=Y(),E&&E.c(),s=Y(),H&&H.c(),a=Y(),U&&U.c(),l=Y(),W&&W.c(),c=Y(),ne&&ne.c(),h=Y(),de&&de.c(),C=Y(),q&&q.c(),g=Y(),X&&X.c(),S=Je(),f(e,"class","svelte-1ad3n06")},m(oe,K){w(oe,e,K),F&&F.m(e,null),_(e,n),T&&T.m(e,null),_(e,o),v&&v.m(e,null),_(e,r),E&&E.m(e,null),_(e,s),H&&H.m(e,null),_(e,a),U&&U.m(e,null),_(e,l),W&&W.m(e,null),_(e,c),ne&&ne.m(e,null),_(e,h),de&&de.m(e,null),_(e,C),q&&q.m(e,null),w(oe,g,K),X&&X.m(oe,K),w(oe,S,K),k=!0},p(oe,K){K&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(oe[4])),t?F?(F.p(oe,K),K&16&&d(F,1)):(F=Hp(oe),F.c(),d(F,1),F.m(e,n)):F&&(ae(),p(F,1,1,()=>{F=null}),ue()),oe[4]==="PAUSE"?T?K&16&&d(T,1):(T=qp(oe),T.c(),d(T,1),T.m(e,o)):T&&(ae(),p(T,1,1,()=>{T=null}),ue()),oe[4]==="PLAY"?v?K&16&&d(v,1):(v=Up(oe),v.c(),d(v,1),v.m(e,r)):v&&(ae(),p(v,1,1,()=>{v=null}),ue()),oe[4]==="REPLAY"?E?K&16&&d(E,1):(E=zp(oe),E.c(),d(E,1),E.m(e,s)):E&&(ae(),p(E,1,1,()=>{E=null}),ue()),oe[4]==="SUBTITLES_OFF"?H?K&16&&d(H,1):(H=Wp(oe),H.c(),d(H,1),H.m(e,a)):H&&(ae(),p(H,1,1,()=>{H=null}),ue()),oe[4]==="SUBTITLES_ON"?U?K&16&&d(U,1):(U=Kp(oe),U.c(),d(U,1),U.m(e,l)):U&&(ae(),p(U,1,1,()=>{U=null}),ue()),K&16&&(u=["RATE_DOWN","RATE_UP"].includes(oe[4])),u?W?(W.p(oe,K),K&16&&d(W,1)):(W=xp(oe),W.c(),d(W,1),W.m(e,c)):W&&(ae(),p(W,1,1,()=>{W=null}),ue()),K&16&&(m=["EPISODE_PREV","EPISODE_NEXT"].includes(oe[4])),m?ne?(ne.p(oe,K),K&16&&d(ne,1)):(ne=jp(oe),ne.c(),d(ne,1),ne.m(e,h)):ne&&(ae(),p(ne,1,1,()=>{ne=null}),ue()),oe[4]==="MUTE"?de?K&16&&d(de,1):(de=Gp(oe),de.c(),d(de,1),de.m(e,C)):de&&(ae(),p(de,1,1,()=>{de=null}),ue()),oe[4]==="VOLUME"?q?K&16&&d(q,1):(q=Yp(oe),q.c(),d(q,1),q.m(e,null)):q&&(ae(),p(q,1,1,()=>{q=null}),ue()),oe[5]?X?X.p(oe,K):(X=Qp(oe),X.c(),X.m(S.parentNode,S)):X&&(X.d(1),X=null)},i(oe){k||(d(F),d(T),d(v),d(E),d(H),d(U),d(W),d(ne),d(de),d(q),k=!0)},o(oe){p(F),p(T),p(v),p(E),p(H),p(U),p(W),p(ne),p(de),p(q),k=!1},d(oe){oe&&(y(e),y(g),y(S)),F&&F.d(),T&&T.d(),v&&v.d(),E&&E.d(),H&&H.d(),U&&U.d(),W&&W.d(),ne&&ne.d(),de&&de.d(),q&&q.d(),X&&X.d(oe)}}}function Hp(i){let e,t;return e=new Lp({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function qp(i){let e,t;return e=new Hr({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Up(i){let e,t;return e=new qo({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function zp(i){let e,t;return e=new kl({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Wp(i){let e,t;return e=new Pc({props:{isOff:!0}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Kp(i){let e,t;return e=new Pc({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function xp(i){let e,t;return e=new Np({props:{reversed:i[4]==="RATE_UP"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function jp(i){let e,t;return e=new Op({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Gp(i){let e,t;return e=new dr({props:{volume:0}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Yp(i){let e,t;return e=new dr({props:{volume:1}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Qp(i){let e,t;return{c(){e=I("span"),t=qe(i[5]),f(e,"class","hot-key-helpers-text svelte-1ad3n06")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&32&&Ge(t,n[5])},d(n){n&&y(e)}}}function W5(i){let e,t,n=!i[1]&&i[4]&&Fp(i);return{c(){e=I("div"),n&&n.c(),f(e,"class","hot-key-helpers-container svelte-1ad3n06"),j(e,"hidden",i[1]),j(e,"hot-key-helpers-container--left",i[2]),j(e,"hot-key-helpers-container--right",i[3])},m(o,r){w(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=Fp(o),n.c(),d(n,1),n.m(e,null)):n&&(ae(),p(n,1,1,()=>{n=null}),ue()),(!t||r&2)&&j(e,"hidden",o[1]),(!t||r&4)&&j(e,"hot-key-helpers-container--left",o[2]),(!t||r&8)&&j(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d()}}}function K5(i,e,t){let n,o=me,r=()=>(o(),o=$t(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==null?void 0:n.type)==="BACKWARD_SEEK"),t(3,u=(n==null?void 0:n.type)==="FORWARD_SEEK"),t(4,c=n==null?void 0:n.type),n!=null&&n.t?t(5,m=G(n.t.key,{value:n.t.value||""})):t(5,m=n==null?void 0:n.text))},[s,a,l,u,c,m,n]}var Vc=class extends N{constructor(e){super(),O(this,e,K5,W5,B,{data:0},z5)}},Zp=Vc;function x5(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function j5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Rc=class extends N{constructor(e){super(),O(this,e,j5,x5,B,{})}},Xp=Rc;function G5(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function Y5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Bc=class extends N{constructor(e){super(),O(this,e,Y5,G5,B,{})}},Jp=Bc;function Q5(i){let e,t;return e=new Jp({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Z5(i){let e,t;return e=new Xp({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function X5(i){let e,t,n,o,r=[Z5,Q5],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=Je()},m(l,u){s[e].m(l,u),w(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&&y(n),s[e].d(l)}}}function J5(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 Nc=class extends N{constructor(e){super(),O(this,e,J5,X5,B,{direction:3})}},mr=Nc;function $5(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 e6(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v;return r=new mr({props:{direction:"up"}}),l=new mr({props:{direction:"up"}}),h=new mr({props:{direction:"up"}}),S=new mr({props:{direction:"up"}}),{c(){e=I("div"),t=I("div"),n=I("div"),o=I("div"),R(r.$$.fragment),s=Y(),a=I("div"),R(l.$$.fragment),u=Y(),c=I("div"),m=I("div"),R(h.$$.fragment),C=Y(),g=I("div"),R(S.$$.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=G("aria_label_spherical_control")),j(e,"m-shifted",i[0])},m(E,H){w(E,e,H),_(e,t),_(t,n),_(n,o),L(r,o,null),_(n,s),_(n,a),L(l,a,null),_(t,u),_(t,c),_(c,m),L(h,m,null),_(c,C),_(c,g),L(S,g,null),F=!0,T||(v=[ke(o,"mousedown",i[1]),ke(o,"mouseup",i[5]),ke(o,"mouseleave",i[5]),ke(a,"mousedown",i[3]),ke(a,"mouseup",i[5]),ke(a,"mouseleave",i[5]),ke(m,"mousedown",i[4]),ke(m,"mouseup",i[5]),ke(m,"mouseleave",i[5]),ke(g,"mousedown",i[2]),ke(g,"mouseup",i[5]),ke(g,"mouseleave",i[5]),ke(e,"keydown",i[6]),ke(e,"keyup",i[7])],T=!0)},p(E,[H]){(!F||H&1)&&j(e,"m-shifted",E[0])},i(E){F||(d(r.$$.fragment,E),d(l.$$.fragment,E),d(h.$$.fragment,E),d(S.$$.fragment,E),F=!0)},o(E){p(r.$$.fragment,E),p(l.$$.fragment,E),p(h.$$.fragment,E),p(S.$$.fragment,E),F=!1},d(E){E&&y(e),V(r),V(l),V(h),V(S),T=!1,ft(v)}}}function t6(i,e,t){let{isShifted:n=!1}=e,o=ot(),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=C=>{if(r.has(C.code))switch(C.preventDefault(),C.stopPropagation(),C.code){case"ArrowUp":s();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":l();break}},h=C=>{r.has(C.code)&&(C.preventDefault(),C.stopPropagation(),c())};return i.$$set=C=>{"isShifted"in C&&t(0,n=C.isShifted)},[n,s,a,l,u,c,m,h]}var Dc=class extends N{constructor(e){super(),O(this,e,t6,e6,B,{isShifted:0},$5)}},El=Dc;function i6(i){be(i,"svelte-ovfyp5",".subtitles-container.svelte-ovfyp5.svelte-ovfyp5{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.svelte-ovfyp5.svelte-ovfyp5{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.svelte-ovfyp5.svelte-ovfyp5{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.svelte-ovfyp5.svelte-ovfyp5{bottom:8%}.subtitles-container.auto.svelte-ovfyp5 .subtitles-caption.svelte-ovfyp5{left:24%;right:24%}.caption.svelte-ovfyp5.svelte-ovfyp5{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.svelte-ovfyp5 .caption.svelte-ovfyp5{width:100%}.caption-line.svelte-ovfyp5.svelte-ovfyp5{display:block;text-align:center}.subtitles-container.auto.svelte-ovfyp5 .caption-line.svelte-ovfyp5{text-align:left}.caption-segment.svelte-ovfyp5.svelte-ovfyp5{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function $p(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function e0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function t0(i){let e,t;function n(s,a){return s[7]&&s[8]?r6:s[5]?o6:n6}let o=n(i,-1),r=o(i);return{c(){e=I("div"),t=I("span"),r.c(),f(t,"class","caption svelte-ovfyp5"),f(e,"class","subtitles-caption svelte-ovfyp5"),j(e,"mobile",i[3])},m(s,a){w(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&8&&j(e,"mobile",s[3])},d(s){s&&y(e),r.d()}}}function n6(i){let e,t=wt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=i0($p(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=Je()},m(o,r){for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(o,r);w(o,e,r)},p(o,r){if(r&18){t=wt(o[1]);let s;for(s=0;s<t.length;s+=1){let a=$p(o,t,s);n[s]?n[s].p(a,r):(n[s]=i0(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&&y(e),li(n,o)}}}function o6(i){let e,t,n=wt(i[6]),o=[];for(let r=0;r<n.length;r+=1)o[r]=o0(e0(i,n,r));return{c(){e=I("span"),t=I("span");for(let r=0;r<o.length;r+=1)o[r].c();f(t,"class","caption-segment svelte-ovfyp5"),_i(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,s){w(r,e,s),_(e,t);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(r,s){if(s&68){n=wt(r[6]);let a;for(a=0;a<n.length;a+=1){let l=e0(r,n,a);o[a]?o[a].p(l,s):(o[a]=o0(l),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}s&16&&_i(t,"font-size",r[4]+"px")},d(r){r&&y(e),li(o,r)}}}function r6(i){let e,t,n=G("subtitles_auto_caption")+"",o;return{c(){e=I("span"),t=I("span"),o=qe(n),f(t,"class","caption-segment svelte-ovfyp5"),_i(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,s){w(r,e,s),_(e,t),_(t,o)},p(r,s){s&16&&_i(t,"font-size",r[4]+"px")},d(r){r&&y(e)}}}function i0(i){let e,t,n=i[16]+"",o,r;return{c(){e=I("span"),t=I("span"),o=qe(n),r=Y(),f(t,"class","caption-segment svelte-ovfyp5"),_i(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(s,a){w(s,e,a),_(e,t),_(t,o),_(e,r)},p(s,a){a&2&&n!==(n=s[16]+"")&&Ge(o,n),a&16&&_i(t,"font-size",s[4]+"px")},d(s){s&&y(e)}}}function n0(i){let e=i[16]+"",t;return{c(){t=qe(e)},m(n,o){w(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Ge(t,e)},d(n){n&&y(t)}}}function o0(i){let e,t=(!i[17]||i[17]<=i[2])&&n0(i);return{c(){t&&t.c(),e=Je()},m(n,o){t&&t.m(n,o),w(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=n0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&y(e),t&&t.d(n)}}}function s6(i){let e,t=i[1].length>0&&t0(i);return{c(){e=I("div"),t&&t.c(),f(e,"class","subtitles-container svelte-ovfyp5"),j(e,"shifted",i[0]),j(e,"auto",i[5]&&!i[8])},m(n,o){w(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=t0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&j(e,"shifted",n[0]),o&288&&j(e,"auto",n[5]&&!n[8])},i:me,o:me,d(n){n&&y(e),t&&t.d()}}}function l6(i,e,t){let n,o,{shifted:r}=e,{captions:s}=e,{position:a}=e,{playerSize:l}=e,{isMobile:u=!1}=e,c=ot(),m=Dt(),h=c.state.currentSubtitle$;D(i,h,v=>t(12,n=v));let C=c.state.isAutoSubtitleCaptionVisible$;D(i,C,v=>t(8,o=v));let g,S,k,F,T;return Nt(()=>{T=window.setTimeout(()=>{C.set(!1)},m.autoSubtitlesTimeout)}),$n(()=>{window.clearTimeout(T)}),i.$$set=v=>{"shifted"in v&&t(0,r=v.shifted),"captions"in v&&t(1,s=v.captions),"position"in v&&t(2,a=v.position),"playerSize"in v&&t(11,l=v.playerSize),"isMobile"in v&&t(3,u=v.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048){let v=l.width*.02;t(4,g=v<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:v)}i.$$.dirty&2&&t(5,S=s.some(v=>v.type==="timestamp")),i.$$.dirty&2&&t(6,k=s.reduce((v,{type:E,value:H})=>(E==="timestamp"?v.push({timeAppeared:Number(H),value:""}):v.length===0?v.push({value:String(H)}):v[v.length-1].value=String(H),v),[])),i.$$.dirty&4096&&t(7,F=!!n.isAuto)},[r,s,a,u,g,S,k,F,o,h,C,l,n]}var Oc=class extends N{constructor(e){super(),O(this,e,l6,s6,B,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},i6)}},Al=Oc;function a6(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 r0(i){let e,t,n;return{c(){e=I("div"),t=qe("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=qe(i[1]),f(e,"class","text svelte-raurnb")},m(o,r){w(o,e,r),_(e,t),_(e,n)},p(o,r){r&2&&Ge(n,o[1])},d(o){o&&y(e)}}}function u6(i){let e,t,n,o,r,s,a=i[1]&&r0(i);return{c(){e=I("div"),t=I("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=Y(),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]||""}')`),j(e,"bgCover",i[2].features.previewNoEmptySpace)},m(l,u){w(l,e,u),_(e,t),_(e,n),a&&a.m(e,null),r||(s=ke(e,"click",i[3]),r=!0)},p(l,[u]){l[1]?a?a.p(l,u):(a=r0(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&&y(e),a&&a.d(),r=!1,s()}}}function c6(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e,r=Dt();function s(a){Dn.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 Fc=class extends N{constructor(e){super(),O(this,e,c6,u6,B,{thumbUrl:0,chromecastDeviceName:1},a6)}},Ml=Fc;function f6(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function d6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Hc=class extends N{constructor(e){super(),O(this,e,d6,f6,B,{})}},s0=Hc;function m6(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 p6(i){let e,t,n;return t=new s0({}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","container svelte-13zpvm8")},m(o,r){w(o,e,r),L(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&&y(e),V(t)}}}var qc=class extends N{constructor(e){super(),O(this,e,null,p6,B,{},m6)}},Ll=qc;function _6(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 h6(i){let e,t,n,o,r,s,a,l,u,c;return r=new qo({}),{c(){e=I("div"),t=I("div"),n=I("div"),o=Y(),R(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=G("tooltip_play")),f(e,"class","container svelte-1xnh9dd"),f(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),j(e,"hidden",i[1]),j(e,"bgCover",i[4].features.previewNoEmptySpace)},m(m,h){w(m,e,h),_(e,t),_(t,n),_(t,o),L(r,t,null),l=!0,u||(c=[ke(t,"keydown",i[3]),ke(e,"click",vt(function(){Jt(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)&&j(e,"hidden",i[1])},i(m){l||(d(r.$$.fragment,m),l=!0)},o(m){p(r.$$.fragment,m),l=!1},d(m){m&&y(e),V(r),u=!1,ft(c)}}}function g6(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,s=ot(),a=Dt(),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 Uc=class extends N{constructor(e){super(),O(this,e,g6,h6,B,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},_6)}get handlePressKey(){return this.$$.ctx[3]}},Vl=Uc;function b6(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 v6(i){let e,t;return{c(){e=I("div"),t=qe(i[0]),f(e,"class","title svelte-1bcvcf2"),G(e,"hidden",i[1])},m(n,o){w(n,e,o),_(e,t)},p(n,[o]){o&1&&Ge(t,n[0]),o&2&&G(e,"hidden",n[1])},i:me,o:me,d(n){n&&y(e)}}}function y6(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 zc=class extends N{constructor(e){super(),O(this,e,y6,v6,B,{title:0,isHidden:1},b6)}},l0=zc;function w6(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 a0(i){let e,t,n,o,r,s,a;return{c(){e=I("div"),t=I("span"),n=qe(i[0]),o=Y(),r=I("span"),r.textContent=`${j("waiting_live_day_value")}`,s=Y(),a=I("span"),a.textContent=`${j("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){w(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),w(l,s,u),w(l,a,u)},p(l,u){u&1&&Ge(n,l[0])},d(l){l&&(y(e),y(s),y(a))}}}function u0(i){let e,t,n,o,r,s,a;return{c(){e=I("div"),t=I("span"),n=qe(i[1]),o=Y(),r=I("span"),r.textContent=`${j("waiting_live_hour_value")}`,s=Y(),a=I("span"),a.textContent=`${j("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){w(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),w(l,s,u),w(l,a,u)},p(l,u){u&2&&Ge(n,l[1])},d(l){l&&(y(e),y(s),y(a))}}}function c0(i){let e,t,n,o,r,s,a;return{c(){e=I("div"),t=I("span"),n=qe(i[2]),o=Y(),r=I("span"),r.textContent=`${j("waiting_live_minute_value")}`,s=Y(),a=I("span"),a.textContent=`${j("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){w(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),w(l,s,u),w(l,a,u)},p(l,u){u&4&&Ge(n,l[2])},d(l){l&&(y(e),y(s),y(a))}}}function f0(i){let e,t,n,o,r;return{c(){e=I("div"),t=I("span"),n=qe(i[3]),o=Y(),r=I("span"),r.textContent=`${j("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){w(s,e,a),_(e,t),_(t,n),_(e,o),_(e,r)},p(s,a){a&8&&Ge(n,s[3])},d(s){s&&y(e)}}}function k6(i){let e,t,n,o,r=i[0]&&a0(i),s=i[1]&&u0(i),a=i[2]&&c0(i),l=i[3]&&f0(i);return{c(){e=I("div"),r&&r.c(),t=Y(),s&&s.c(),n=Y(),a&&a.c(),o=Y(),l&&l.c(),f(e,"class","timer__container svelte-1qpxtfg")},m(u,c){w(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=a0(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?s?s.p(u,c):(s=u0(u),s.c(),s.m(e,n)):s&&(s.d(1),s=null),u[2]?a?a.p(u,c):(a=c0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?l?l.p(u,c):(l=f0(u),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i:me,o:me,d(u){u&&y(e),r&&r.d(),s&&s.d(),a&&a.d(),l&&l.d()}}}function C6(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,s,a,l,u,c=C=>String(C).padStart(2,"0"),m=C=>{let g=Math.floor(C/86400);g&&(C-=g*86400,t(0,r=c(g)));let S=Math.floor(C/3600);t(1,s=c(S));let k=Math.floor(C/60)%60;t(2,a=c(k));let F=C%60;t(3,l=c(F))},h=()=>{let C=Math.floor(Date.now()/1e3),g=n-C;m(g),g>=1?u=requestAnimationFrame(h):o()};return Nt(()=>{u=requestAnimationFrame(h)}),$n(()=>{cancelAnimationFrame(u)}),i.$$set=C=>{"startTime"in C&&t(4,n=C.startTime),"onTimerOver"in C&&t(5,o=C.onTimerOver)},[r,s,a,l,n,o]}var Wc=class extends N{constructor(e){super(),O(this,e,C6,k6,B,{startTime:4,onTimerOver:5},w6)}},d0=Wc;function S6(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=se(c,u[m]);return{c(){e=M("svg"),l&&l.c(),t=M("path"),n=M("path"),o=M("path"),r=M("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"),_i(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"),_i(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"),_i(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"),_i(r,"opacity",".986"),we(e,c)},m(m,h){w(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),we(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&&y(e),l&&l.d(m)}}}function T6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Kc=class extends N{constructor(e){super(),O(this,e,T6,S6,B,{})}},m0=Kc;function I6(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 P6(i){let e,t,n,o,r;return o=new d0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=I("div"),t=I("span"),t.textContent=`${j("waiting_live_timer_title")}`,n=Y(),R(o.$$.fragment),f(t,"class","timer__title svelte-15pewff"),f(e,"class","waiting-timer timer svelte-15pewff")},m(s,a){w(s,e,a),_(e,t),_(e,n),L(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&&y(e),V(o)}}}function E6(i){let e,t,n,o,r,s;return n=new m0({}),{c(){e=I("div"),t=I("div"),R(n.$$.fragment),o=Y(),r=I("span"),r.textContent=`${j("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){w(a,e,l),_(e,t),L(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&&y(e),V(n)}}}function A6(i){let e,t,n,o,r,s=[E6,P6],a=[];function l(u,c){return u[2]?0:1}return t=l(i,-1),n=a[t]=s[t](i),{c(){e=I("div"),n.c(),f(e,"class","waiting-container svelte-15pewff"),f(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,c){w(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&&y(e),a[t].d()}}}function M6(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 xc=class extends N{constructor(e){super(),O(this,e,M6,A6,B,{thumbUrl:0,startTime:1},I6)}},Rl=xc;function L6(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 V6(i){let e,t,n,o,r,s,a,l;return n=new Vr({props:{style:"position: static; transform: translate(0, 0)"}}),{c(){e=I("div"),t=I("div"),R(n.$$.fragment),o=Y(),r=I("p"),s=qe(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){w(u,e,c),_(e,t),L(n,t,null),_(t,o),_(t,r),_(r,s),l=!0},p(u,[c]){(!l||c&2)&&Ge(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&&y(e),V(n)}}}function R6(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:j("waiting_live_recover_title"),record:j("waiting_record_title")};t(1,r=s[o]||"")}},[n,r,o]}var jc=class extends N{constructor(e){super(),O(this,e,R6,V6,B,{thumbUrl:0,kind:2},L6)}},Ur=jc;var Bl=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),Nl=(i,e)=>{var s;if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=(s=pl(t))!=null?s:t),n&&t&&o){let a=e.filter(l=>l.label===n&&l.language===t);if(a.length===1)return j("audio_stream_display_language_label",{language:o,label:n});{let l=Bl(i,a);return j("audio_stream_display_language_label_index",{language:o,label:n,index:l})}}if(n){let a=e.filter(l=>l.label===n);if(a.length===1)return n;{let l=Bl(i,a);return j("audio_stream_display_label_index",{label:n,index:l})}}if(t&&o){let a=e.filter(l=>l.language===t);if(a.length===1)return o;{let l=Bl(i,a);return j("audio_stream_display_language_index",{language:o,index:l})}}let r=Bl(i,e);return j("audio_stream_display_unknown",{index:r})};function B6(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function N6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Gc=class extends N{constructor(e){super(),O(this,e,N6,B6,B,{})}},p0=Gc;function D6(i){be(i,"svelte-124aexk",".select-icon.svelte-124aexk{margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px}")}function _0(i){let e,t,n;return t=new p0({}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","select-icon svelte-124aexk")},m(o,r){w(o,e,r),L(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&&y(e),V(t)}}}function O6(i){var o;let e,t=((o=i[1].label)!=null?o:i[1].value)+"",n;return{c(){e=I("div"),n=qe(t),f(e,"class","menu-item-value"),G(e,"submenu-value-mobile",i[0])},m(r,s){w(r,e,s),_(e,n)},p(r,s){var a;s&2&&t!==(t=((a=r[1].label)!=null?a:r[1].value)+"")&&Ge(n,t),s&1&&G(e,"submenu-value-mobile",r[0])},i:me,o:me,d(r){r&&y(e)}}}function F6(i){var a;let e,t,n,o=[(a=i[1].valueComponentParams)!=null?a:{}];var r=i[1].valueComponent;function s(l,u){var m;let c={};for(let h=0;h<o.length;h+=1)c=se(c,o[h]);return u!==void 0&&u&2&&(c=se(c,He(o,[Vo((m=l[1].valueComponentParams)!=null?m:{})]))),{props:c}}return r&&(e=Ot(r,s(i))),{c(){e&&R(e.$$.fragment),t=Je()},m(l,u){e&&L(e,l,u),w(l,t,u),n=!0},p(l,u){var c;if(u&2&&r!==(r=l[1].valueComponent)){if(e){ae();let m=e;p(m.$$.fragment,1,0,()=>{V(m,1)}),ue()}r?(e=Ot(r,s(l,u)),R(e.$$.fragment),d(e.$$.fragment,1),L(e,t.parentNode,t)):e=null}else if(r){let m=u&2?He(o,[Vo((c=l[1].valueComponentParams)!=null?c:{})]):{};e.$set(m)}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&p(e.$$.fragment,l),n=!1},d(l){l&&y(t),e&&V(e,l)}}}function H6(i){let e,t,n,o,r,s,a,l,u,c=i[1].selected&&_0(i),m=[F6,O6],h=[];function C(g,S){return g[1].valueComponent?0:1}return n=C(i,-1),o=h[n]=m[n](i),{c(){var g,S,k;e=I("li"),c&&c.c(),t=Y(),o.c(),f(e,"class","item"),f(e,"data-value",r=(g=i[1].dataValue)!=null?g:i[1].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=(k=(S=i[1].ariaLabel)!=null?S:i[1].label)!=null?k:i[1].value.toString()),G(e,"mobile",i[0])},m(g,S){w(g,e,S),c&&c.m(e,null),_(e,t),h[n].m(e,null),a=!0,l||(u=[ke(e,"click",vt(i[4])),ke(e,"keydown",i[5])],l=!0)},p(g,[S]){var F,T,v;g[1].selected?c?S&2&&d(c,1):(c=_0(g),c.c(),d(c,1),c.m(e,t)):c&&(ae(),p(c,1,1,()=>{c=null}),ue());let k=n;n=C(g,S),n===k?h[n].p(g,S):(ae(),p(h[k],1,1,()=>{h[k]=null}),ue(),o=h[n],o?o.p(g,S):(o=h[n]=m[n](g),o.c()),d(o,1),o.m(e,null)),(!a||S&2&&r!==(r=(F=g[1].dataValue)!=null?F:g[1].value))&&f(e,"data-value",r),(!a||S&2&&s!==(s=(v=(T=g[1].ariaLabel)!=null?T:g[1].label)!=null?v:g[1].value.toString()))&&f(e,"aria-label",s),(!a||S&1)&&G(e,"mobile",g[0])},i(g){a||(d(c),d(o),a=!0)},o(g){p(c),p(o),a=!1},d(g){g&&y(e),c&&c.d(),h[n].d(),l=!1,ft(u)}}}function q6(i,e,t){let{isMobile:n=!1}=e,{item:o}=e,{selectItem:r}=e,s=(u,c)=>{Mr(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 Yc=class extends N{constructor(e){super(),O(this,e,q6,H6,B,{isMobile:0,item:1,selectItem:2},D6)}},h0=Yc;var no={"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 z6(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 g0(i,e,t){let n=i.slice();return n[23]=e[t],n}function b0(i){let e,t;return e=new h0({props:{item:i[23],isMobile:i[2],selectItem:i[7]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&64&&(r.item=n[23]),o&4&&(r.isMobile=n[2]),o&128&&(r.selectItem=n[7]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function W6(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g;o=new mr({props:{direction:"left"}});let S=wt(i[6]),k=[];for(let T=0;T<S.length;T+=1)k[T]=b0(g0(i,S,T));let F=T=>p(k[T],1,1,()=>{k[T]=null});return{c(){var T;e=I("div"),t=I("ul"),n=I("li"),R(o.$$.fragment),r=Y(),s=I("div"),a=qe(i[5]),l=Y();for(let v=0;v<k.length;v+=1)k[v].c();f(n,"class","item header svelte-1mrc4z3"),f(n,"role","menuitem"),f(n,"tabindex","0"),f(n,"data-testid","return-to-settings-menu"),f(n,"aria-label",i[4]),G(n,"mobile",i[2]),f(t,"class","items"),f(t,"role","menu"),f(t,"style",u=i[13]((T=i[9])==null?void 0:T.clientHeight)),G(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`),G(e,"desktop",!i[2]),G(e,"mobile",i[2])},m(T,v){w(T,e,v),_(e,t),_(t,n),L(o,n,null),_(n,r),_(n,s),_(s,a),i[18](n),_(t,l);for(let E=0;E<k.length;E+=1)k[E]&&k[E].m(t,null);i[19](t),h=!0,C||(g=[ke(n,"click",vt(function(){Jt(i[3])&&i[3].apply(this,arguments)})),ke(t,"keydown",i[12])],C=!0)},p(T,[v]){var E;if(i=T,(!h||v&32)&&Ge(a,i[5]),(!h||v&16)&&f(n,"aria-label",i[4]),(!h||v&4)&&G(n,"mobile",i[2]),v&196){S=wt(i[6]);let H;for(H=0;H<S.length;H+=1){let U=g0(i,S,H);k[H]?(k[H].p(U,v),d(k[H],1)):(k[H]=b0(U),k[H].c(),d(k[H],1),k[H].m(t,null))}for(ae(),H=S.length;H<k.length;H+=1)F(H);ue()}(!h||v&512&&u!==(u=i[13]((E=i[9])==null?void 0:E.clientHeight)))&&f(t,"style",u),(!h||v&4)&&G(t,"mobile",i[2]),(!h||v&2&&c!==(c=`sub-menu-${i[1]}`))&&f(e,"data-testid",c),(!h||v&256&&m!==(m=`min-width: ${i[8]}px`))&&f(e,"style",m),(!h||v&4)&&G(e,"desktop",!i[2]),(!h||v&4)&&G(e,"mobile",i[2])},i(T){if(!h){d(o.$$.fragment,T);for(let v=0;v<S.length;v+=1)d(k[v]);h=!0}},o(T){p(o.$$.fragment,T),k=k.filter(Boolean);for(let v=0;v<k.length;v+=1)p(k[v]);h=!1},d(T){T&&y(e),V(o),i[18](null),li(k,T),i[19](null),C=!1,ft(g)}}}function K6(i,e,t){let n,o,{id:r}=e,{isMobile:s=!1}=e,{playerControlsHeight:a=0}=e,{returnFromSubMenu:l}=e,{ariaLabelReturnFromSubMenu:u=j("aria_label_submenu_back")}=e,{title:c}=e,{listRef:m}=e,{closeSettingsMenu:h}=e,{backToMainSettings:C}=e,{itemIdReturnCase:g}=e,{items:S}=e,{selectItem:k}=e,{minWidth:F}=e,T=ot(),v=T.ui.isFullscreen;D(i,v,q=>t(21,o=q));let E=T.ui.playerSize;D(i,E,q=>t(20,n=q));let H,U=q=>{Qd(q,C,{itemIdReturnCase:g,id:r},h)},W=(q=0)=>s&&o?`max-height: ${Math.round(n.height*.6)}px`:s?"":`max-height: ${n.height-32-q-a}px; overflow: auto;`;function ne(q){ve[q?"unshift":"push"](()=>{H=q,t(9,H)})}function de(q){ve[q?"unshift":"push"](()=>{m=q,t(0,m)})}return i.$$set=q=>{"id"in q&&t(1,r=q.id),"isMobile"in q&&t(2,s=q.isMobile),"playerControlsHeight"in q&&t(14,a=q.playerControlsHeight),"returnFromSubMenu"in q&&t(3,l=q.returnFromSubMenu),"ariaLabelReturnFromSubMenu"in q&&t(4,u=q.ariaLabelReturnFromSubMenu),"title"in q&&t(5,c=q.title),"listRef"in q&&t(0,m=q.listRef),"closeSettingsMenu"in q&&t(15,h=q.closeSettingsMenu),"backToMainSettings"in q&&t(16,C=q.backToMainSettings),"itemIdReturnCase"in q&&t(17,g=q.itemIdReturnCase),"items"in q&&t(6,S=q.items),"selectItem"in q&&t(7,k=q.selectItem),"minWidth"in q&&t(8,F=q.minWidth)},[m,r,s,l,u,c,S,k,F,H,v,E,U,W,a,h,C,g,ne,de]}var Qc=class extends N{constructor(e){super(),O(this,e,K6,W6,B,{id:1,isMobile:2,playerControlsHeight:14,returnFromSubMenu:3,ariaLabelReturnFromSubMenu:4,title:5,listRef:0,closeSettingsMenu:15,backToMainSettings:16,itemIdReturnCase:17,items:6,selectItem:7,minWidth:8},z6)}},v0=Qc;import{noop as x6}from"@vkontakte/videoplayer-shared";function j6(i){be(i,"svelte-1ikfjte",".value.svelte-1ikfjte{position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis}")}function G6(i){let e,t,n;var o=i[8];function r(s,a){return{}}return o&&(e=Ot(o,r(i))),{c(){e&&R(e.$$.fragment),t=Je()},m(s,a){e&&L(e,s,a),w(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,()=>{V(l,1)}),ue()}o?(e=Ot(o,r(s,a)),R(e.$$.fragment),d(e.$$.fragment,1),L(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&&y(t),e&&V(e,s)}}}function Y6(i){let e,t;return e=new qr({props:{icon:i[8]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Q6(i){let e,t;return{c(){e=I("div"),t=qe(i[6]),f(e,"class","value svelte-1ikfjte")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&64&&Ge(t,n[6])},i:me,o:me,d(n){n&&y(e)}}}function Z6(i){let e,t,n;var o=i[7];function r(s,a){return{}}return o&&(e=Ot(o,r(i))),{c(){e&&R(e.$$.fragment),t=Je()},m(s,a){e&&L(e,s,a),w(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,()=>{V(l,1)}),ue()}o?(e=Ot(o,r(s,a)),R(e.$$.fragment),d(e.$$.fragment,1),L(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&&y(t),e&&V(e,s)}}}function X6(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g=[Y6,G6],S=[];function k(E,H){return typeof E[8]=="string"?0:1}n=k(i,-1),o=S[n]=g[n](i);let F=[Z6,Q6],T=[];function v(E,H){return E[7]?0:1}return u=v(i,-1),c=T[u]=F[u](i),{c(){e=I("li"),t=I("div"),o.c(),r=Y(),s=I("div"),a=qe(i[4]),l=Y(),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]),G(e,"mobile",i[2])},m(E,H){w(E,e,H),_(e,t),S[n].m(t,null),_(e,r),_(e,s),_(s,a),_(e,l),T[u].m(e,null),i[11](e),m=!0,h||(C=[ke(e,"click",vt(function(){Jt(i[3])&&i[3].apply(this,arguments)})),ke(e,"keydown",i[9])],h=!0)},p(E,[H]){i=E;let U=n;n=k(i,H),n===U?S[n].p(i,H):(ae(),p(S[U],1,1,()=>{S[U]=null}),ue(),o=S[n],o?o.p(i,H):(o=S[n]=g[n](i),o.c()),d(o,1),o.m(t,null)),(!m||H&16)&&Ge(a,i[4]);let W=u;u=v(i,H),u===W?T[u].p(i,H):(ae(),p(T[W],1,1,()=>{T[W]=null}),ue(),c=T[u],c?c.p(i,H):(c=T[u]=F[u](i),c.c()),d(c,1),c.m(e,null)),(!m||H&32)&&f(e,"aria-label",i[5]),(!m||H&2)&&f(e,"data-testid",i[1]),(!m||H&4)&&G(e,"mobile",i[2])},i(E){m||(d(o),d(c),m=!0)},o(E){p(o),p(c),m=!1},d(E){E&&y(e),S[n].d(),T[u].d(),i[11](null),h=!1,ft(C)}}}function J6(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:r=x6}=e,{getSubItemForFocus:s}=e,{label:a}=e,{ariaLabel:l}=e,{value:u}=e,{valueComponent:c=void 0}=e,{ref:m}=e,{icon:h}=e,C=S=>Yd(S,r,s);function g(S){ve[S?"unshift":"push"](()=>{m=S,t(0,m)})}return i.$$set=S=>{"id"in S&&t(1,n=S.id),"isMobile"in S&&t(2,o=S.isMobile),"onClick"in S&&t(3,r=S.onClick),"getSubItemForFocus"in S&&t(10,s=S.getSubItemForFocus),"label"in S&&t(4,a=S.label),"ariaLabel"in S&&t(5,l=S.ariaLabel),"value"in S&&t(6,u=S.value),"valueComponent"in S&&t(7,c=S.valueComponent),"ref"in S&&t(0,m=S.ref),"icon"in S&&t(8,h=S.icon)},[m,n,o,r,a,l,u,c,h,C,s,g]}var Xc=class extends N{constructor(e){super(),O(this,e,J6,X6,B,{id:1,isMobile:2,onClick:3,getSubItemForFocus:10,label:4,ariaLabel:5,value:6,valueComponent:7,ref:0,icon:8},j6)}},y0=Xc;function $6(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function e8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Jc=class extends N{constructor(e){super(),O(this,e,e8,$6,B,{})}},w0=Jc;function t8(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function i8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var $c=class extends N{constructor(e){super(),O(this,e,i8,t8,B,{})}},k0=$c;function n8(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=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("g"),n=M("path"),o=M("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"),we(e,u)},m(c,m){w(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),we(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&&y(e),a&&a.d(c)}}}function o8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ef=class extends N{constructor(e){super(),O(this,e,o8,n8,B,{})}},C0=ef;function r8(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function s8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var tf=class extends N{constructor(e){super(),O(this,e,s8,r8,B,{})}},S0=tf;function l8(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function a8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var nf=class extends N{constructor(e){super(),O(this,e,a8,l8,B,{})}},of=nf;function u8(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function c8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var rf=class extends N{constructor(e){super(),O(this,e,c8,u8,B,{})}},T0=rf;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:"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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function d8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var sf=class extends N{constructor(e){super(),O(this,e,d8,f8,B,{})}},I0=sf;import"@vkontakte/videoplayer-core";function m8(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 P0(i){let e,t,n;var o=i[3];function r(s,a){return{}}return o&&(t=Ot(o,r(i))),{c(){e=I("div"),t&&R(t.$$.fragment),f(e,"class","quality-icon svelte-1a7qwh6")},m(s,a){w(s,e,a),t&&L(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,()=>{V(l,1)}),ue()}o?(t=Ot(o,r(s,a)),R(t.$$.fragment),d(t.$$.fragment,1),L(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&&y(e),t&&V(t)}}}function p8(i){let e,t,n,o,r,s=i[3]&&!i[1]&&P0(i);return{c(){e=I("div"),t=I("span"),n=qe(i[0]),o=Y(),s&&s.c(),f(t,"class","svelte-1a7qwh6"),f(e,"class","menu-item-value svelte-1a7qwh6"),G(e,"sub",i[2])},m(a,l){w(a,e,l),_(e,t),_(t,n),_(e,o),s&&s.m(e,null),r=!0},p(a,[l]){(!r||l&1)&&Ge(n,a[0]),a[3]&&!a[1]?s?(s.p(a,l),l&10&&d(s,1)):(s=P0(a),s.c(),d(s,1),s.m(e,null)):s&&(ae(),p(s,1,1,()=>{s=null}),ue()),(!r||l&4)&&G(e,"sub",a[2])},i(a){r||(d(s),r=!0)},o(a){p(s),r=!1},d(a){a&&y(e),s&&s.d()}}}function _8(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=$s(o))},[r,s,a,n,o]}var lf=class extends N{constructor(e){super(),O(this,e,_8,p8,B,{quality:4,label:0,isMobile:1,isSubCase:2},m8)}},Dl=lf;import{VideoQuality as h8}from"@vkontakte/videoplayer-core";var Ol=(i,e,t)=>{if(!i)return"...";let n=e.find(r=>r.value===i),o=n?n.displayValue:i;return t?i===h8.INVARIANT?j("auto_quality_invariant"):j("auto_quality",{actual:o}):o};function g8(i){be(i,"svelte-vk2gx4",".menu-item-value-wrapper.svelte-vk2gx4{right:-22px;position:relative}")}function b8(i){let e,t,n;return t=new Dl({props:{quality:i[0],label:i[1],isMobile:i[2]}}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","menu-item-value-wrapper svelte-vk2gx4")},m(o,r){w(o,e,r),L(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&&y(e),V(t)}}}function v8(i,e,t){let n,o,r,s,a=ot(),l=a.state.currentQuality$;D(i,l,C=>t(0,r=C));let u=a.state.availableQualities$;D(i,u,C=>t(8,o=C));let c=a.state.isAutoQualityEnabled$;D(i,c,C=>t(7,n=C));let m=a.ui.isMobile;D(i,m,C=>t(2,s=C));let h;return i.$$.update=()=>{i.$$.dirty&385&&t(1,h=Ol(r,o,n))},[r,h,s,l,u,c,m,n,o]}var af=class extends N{constructor(e){super(),O(this,e,v8,b8,B,{},g8)}},E0=af;import{noop as A0}from"@vkontakte/videoplayer-shared";function y8(i){let e,t,n;var o=i[4];function r(s,a){return{}}return o&&(e=Ot(o,r(i))),{c(){e&&R(e.$$.fragment),t=Je()},m(s,a){e&&L(e,s,a),w(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,()=>{V(l,1)}),ue()}o?(e=Ot(o,r(s,a)),R(e.$$.fragment),d(e.$$.fragment,1),L(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&&y(t),e&&V(e,s)}}}function w8(i){let e;function t(r,s){return r[5]?C8:k8}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Je()},m(r,s){o.m(r,s),w(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&&y(e),o.d(r)}}}function k8(i){let e,t,n,o;return{c(){e=I("img"),f(e,"class","icon"),vo(e.src,t=i[4])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){w(r,e,s),n||(o=ke(e,"error",i[6]),n=!0)},p(r,s){s&16&&!vo(e.src,t=r[4])&&f(e,"src",t)},d(r){r&&y(e),n=!1,o()}}}function C8(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner"></div>',f(e,"class","icon icon-error-stub")},m(t,n){w(t,e,n)},p:me,d(t){t&&y(e)}}}function S8(i){let e,t,n,o,r,s,a,l,u,c,m,h=[w8,y8],C=[];function g(S,k){return typeof S[4]=="string"?0:1}return n=g(i,-1),o=C[n]=h[n](i),{c(){var S;e=I("li"),t=I("div"),o.c(),r=Y(),s=I("div"),a=qe(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=(S=i[3])!=null?S:i[2]),f(e,"data-testid",i[0]),G(e,"mobile",i[1])},m(S,k){w(S,e,k),_(e,t),C[n].m(t,null),_(e,r),_(e,s),_(s,a),u=!0,c||(m=[ke(e,"click",vt(i[7])),ke(e,"keydown",i[8])],c=!0)},p(S,[k]){var T;let F=n;n=g(S,k),n===F?C[n].p(S,k):(ae(),p(C[F],1,1,()=>{C[F]=null}),ue(),o=C[n],o?o.p(S,k):(o=C[n]=h[n](S),o.c()),d(o,1),o.m(t,null)),(!u||k&4)&&Ge(a,S[2]),(!u||k&12&&l!==(l=(T=S[3])!=null?T:S[2]))&&f(e,"aria-label",l),(!u||k&1)&&f(e,"data-testid",S[0]),(!u||k&2)&&G(e,"mobile",S[1])},i(S){u||(d(o),u=!0)},o(S){p(o),u=!1},d(S){S&&y(e),C[n].d(),c=!1,ft(m)}}}function T8(i,e,t){let n,{id:o}=e,{isMobile:r=!1}=e,{onClick:s=A0}=e,{closeSettings:a=A0}=e,{label:l}=e,{ariaLabel:u}=e,{icon:c}=e,m=()=>{t(5,n=!0)},h=()=>{s(),a()},C=g=>{Mr(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,C,s,a]}var uf=class extends N{constructor(e){super(),O(this,e,T8,S8,B,{id:0,isMobile:1,onClick:9,closeSettings:10,label:2,ariaLabel:3,icon:4})}},M0=uf;import{noop as A8}from"@vkontakte/videoplayer-shared";function I8(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 P8(i){let e,t,n,o;return{c(){e=I("div"),t=I("div"),n=Y(),o=I("div"),f(t,"class","toggle svelte-17wbjko"),G(t,"on",i[0]),f(o,"class","toggle-label svelte-17wbjko"),f(e,"class","toggle_wrap svelte-17wbjko")},m(r,s){w(r,e,s),_(e,t),_(e,n),_(e,o)},p(r,[s]){s&1&&G(t,"on",r[0])},i:me,o:me,d(r){r&&y(e)}}}function E8(i,e,t){let{enabled:n=!1}=e;return i.$$set=o=>{"enabled"in o&&t(0,n=o.enabled)},[n]}var cf=class extends N{constructor(e){super(),O(this,e,E8,P8,B,{enabled:0},I8)}},L0=cf;function M8(i){let e,t,n;var o=i[4];function r(s,a){return{}}return o&&(e=Ot(o,r(i))),{c(){e&&R(e.$$.fragment),t=Je()},m(s,a){e&&L(e,s,a),w(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,()=>{V(l,1)}),ue()}o?(e=Ot(o,r(s,a)),R(e.$$.fragment),d(e.$$.fragment,1),L(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&&y(t),e&&V(e,s)}}}function L8(i){let e,t;return e=new qr({props:{icon:i[4]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function V8(i){let e,t,n,o,r,s,a,l,u,c,m=[L8,M8],h=[];function C(g,S){return typeof g[4]=="string"?0:1}return n=C(i,-1),o=h[n]=m[n](i),u=new L0({props:{enabled:i[5]}}),{c(){e=I("div"),t=I("div"),o.c(),r=Y(),s=I("div"),a=qe(i[2]),l=Y(),R(u.$$.fragment),f(t,"class","icon-wrapper"),f(s,"class","label"),f(e,"class","switch-wrapper"),G(e,"mobile",i[1])},m(g,S){w(g,e,S),_(e,t),h[n].m(t,null),_(e,r),_(e,s),_(s,a),_(e,l),L(u,e,null),c=!0},p(g,S){let k=n;n=C(g,S),n===k?h[n].p(g,S):(ae(),p(h[k],1,1,()=>{h[k]=null}),ue(),o=h[n],o?o.p(g,S):(o=h[n]=m[n](g),o.c()),d(o,1),o.m(t,null)),(!c||S&4)&&Ge(a,g[2]);let F={};S&32&&(F.enabled=g[5]),u.$set(F),(!c||S&2)&&G(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&&y(e),h[n].d(),V(u)}}}function R8(i){let e,t,n,o,r,s;return t=new Br({props:{content:i[6],isMobile:i[1],placement:"left",translateX:10,isFullWidthWrapper:!0,maxTooltipWidth:i[7],$$slots:{default:[V8]},$$scope:{ctx:i}}}),{c(){var a;e=I("li"),R(t.$$.fragment),f(e,"class","item switch-item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",n=(a=i[3])!=null?a:i[2]),f(e,"data-testid",i[0]),G(e,"mobile",i[1])},m(a,l){w(a,e,l),L(t,e,null),o=!0,r||(s=[ke(e,"click",vt(i[9])),ke(e,"keydown",i[8])],r=!0)},p(a,[l]){var c;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=(c=a[3])!=null?c:a[2]))&&f(e,"aria-label",n),(!o||l&1)&&f(e,"data-testid",a[0]),(!o||l&2)&&G(e,"mobile",a[1])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&y(e),V(t),r=!1,ft(s)}}}function B8(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:r=A8}=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=>{Zd(g,u,S=>r(S))},C=()=>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,C,r]}var ff=class extends N{constructor(e){super(),O(this,e,B8,R8,B,{id:0,isMobile:1,onClick:10,label:2,ariaLabel:3,icon:4,enabled:5,tooltipText:6,maxTooltipWidth:7})}},V0=ff;import{isValidURL as N8}from"@vkontakte/videoplayer-shared";function D8(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 B0(i,e,t){let n=i.slice();return n[89]=e[t],n[90]=e,n[91]=t,n}function N0(i,e,t){let n=i.slice();return n[89]=e[t],n[92]=e,n[93]=t,n}function D0(i){let e,t,n,o,r,s,a,l=i[5]&&O0(i),u=wt(i[4]),c=[];for(let h=0;h<u.length;h+=1)c[h]=F0(N0(i,u,h));let m=h=>p(c[h],1,1,()=>{c[h]=null});return{c(){e=I("div"),l&&l.c(),t=Y(),n=I("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[34]()),G(n,"mobile",i[5]),f(e,"class","settings-menu menu svelte-1t2c6ej"),f(e,"data-testid","settings-menu"),G(e,"desktop",!i[5]),G(e,"mobile",i[5]),G(e,"hidden",!i[7])},m(h,C){w(h,e,C),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[68](n),r=!0,s||(a=[ke(e,"keydown",i[36]),ke(e,"mouseenter",i[32]),ke(e,"mouseleave",i[33])],s=!0)},p(h,C){if(h[5]?l?l.p(h,C):(l=O0(h),l.c(),l.m(e,t)):l&&(l.d(1),l=null),C[0]&1610612788){u=wt(h[4]);let g;for(g=0;g<u.length;g+=1){let S=N0(h,u,g);c[g]?(c[g].p(S,C),d(c[g],1)):(c[g]=F0(S),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||C[0]&32)&&G(n,"mobile",h[5]),(!r||C[0]&32)&&G(e,"desktop",!h[5]),(!r||C[0]&32)&&G(e,"mobile",h[5]),(!r||C[0]&128)&&G(e,"hidden",!h[7])},i(h){if(!r){for(let C=0;C<u.length;C+=1)d(c[C]);r=!0}},o(h){c=c.filter(Boolean);for(let C=0;C<c.length;C+=1)p(c[C]);r=!1},d(h){h&&y(e),l&&l.d(),li(c,h),i[68](null),s=!1,ft(a)}}}function O0(i){let e,t,n,o,r,s;return{c(){e=I("div"),t=I("div"),t.textContent=`${j("submenu_settings")}`,n=Y(),o=I("div"),f(o,"class","close svelte-1t2c6ej"),f(e,"class","item header svelte-1t2c6ej"),G(e,"mobile",i[5])},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),r||(s=ke(o,"click",vt(i[30])),r=!0)},p(a,l){l[0]&32&&G(e,"mobile",a[5])},d(a){a&&y(e),r=!1,s()}}}function O8(i){let e,t;return e=new V0({props:{isMobile:i[5],id:i[89].id,onClick:i[89].onClick,icon:i[89].icon,label:i[89].label,ariaLabel:i[89].ariaLabel,enabled:i[89].enabled,tooltipText:i[89].tooltipText,maxTooltipWidth:i[89].maxTooltipWidth}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&32&&(r.isMobile=n[5]),o[0]&16&&(r.id=n[89].id),o[0]&16&&(r.onClick=n[89].onClick),o[0]&16&&(r.icon=n[89].icon),o[0]&16&&(r.label=n[89].label),o[0]&16&&(r.ariaLabel=n[89].ariaLabel),o[0]&16&&(r.enabled=n[89].enabled),o[0]&16&&(r.tooltipText=n[89].tooltipText),o[0]&16&&(r.maxTooltipWidth=n[89].maxTooltipWidth),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function F8(i){let e,t;return e=new M0({props:{isMobile:i[5],id:i[89].id,onClick:i[89].onClick,icon:i[89].icon,label:i[89].label,ariaLabel:i[89].ariaLabel,closeSettings:i[30]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&32&&(r.isMobile=n[5]),o[0]&16&&(r.id=n[89].id),o[0]&16&&(r.onClick=n[89].onClick),o[0]&16&&(r.icon=n[89].icon),o[0]&16&&(r.label=n[89].label),o[0]&16&&(r.ariaLabel=n[89].ariaLabel),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function H8(i){let e,t,n;function o(){return i[66](i[89])}function r(a){i[67](a,i[89])}let s={isMobile:i[5],id:i[89].id,icon:i[89].icon,label:i[89].label,ariaLabel:i[89].ariaLabel,value:i[89].value,valueComponent:i[89].valueComponent,onClick:o,getSubItemForFocus:i[89].getSubItemForFocus};return i[2][i[89].id]!==void 0&&(s.ref=i[2][i[89].id]),e=new y0({props:s}),ve.push(()=>ze(e,"ref",r)),{c(){R(e.$$.fragment)},m(a,l){L(e,a,l),n=!0},p(a,l){i=a;let u={};l[0]&32&&(u.isMobile=i[5]),l[0]&16&&(u.id=i[89].id),l[0]&16&&(u.icon=i[89].icon),l[0]&16&&(u.label=i[89].label),l[0]&16&&(u.ariaLabel=i[89].ariaLabel),l[0]&16&&(u.value=i[89].value),l[0]&16&&(u.valueComponent=i[89].valueComponent),l[0]&16&&(u.onClick=o),l[0]&16&&(u.getSubItemForFocus=i[89].getSubItemForFocus),!t&&l[0]&20&&(t=!0,u.ref=i[2][i[89].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){V(e,a)}}}function F0(i){let e,t,n,o,r=[H8,F8,O8],s=[];function a(l,u){return l[89].type==="OPEN_SUB_MENU"?0:l[89].type==="CLICK"?1:l[89].type==="SWITCH"?2:-1}return~(e=a(i,[-1,-1,-1,-1]))&&(t=s[e]=r[e](i)),{c(){t&&t.c(),n=Je()},m(l,u){~e&&s[e].m(l,u),w(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&&y(n),~e&&s[e].d(l)}}}function H0(i){var s,a;let e,t,n;function o(l){i[69](l,i[89])}let r={isMobile:i[5],playerControlsHeight:i[1],returnFromSubMenu:(s=i[89].subMenu.returnFromSubMenu)!=null?s:i[31],id:i[89].id,title:i[89].subMenu.title,closeSettingsMenu:i[89].subMenu.closeSettingsMenu,backToMainSettings:i[89].subMenu.backToMainSettings,itemIdReturnCase:i[89].subMenu.itemIdReturnCase,items:i[89].subMenu.items,selectItem:i[89].subMenu.selectItem,minWidth:(a=i[89].subMenu.minWidth)!=null?a:137};return i[3][i[89].id]!==void 0&&(r.listRef=i[3][i[89].id]),e=new v0({props:r}),ve.push(()=>ze(e,"listRef",o)),{c(){R(e.$$.fragment)},m(l,u){L(e,l,u),n=!0},p(l,u){var m,h;i=l;let c={};u[0]&32&&(c.isMobile=i[5]),u[0]&2&&(c.playerControlsHeight=i[1]),u[0]&16&&(c.returnFromSubMenu=(m=i[89].subMenu.returnFromSubMenu)!=null?m:i[31]),u[0]&16&&(c.id=i[89].id),u[0]&16&&(c.title=i[89].subMenu.title),u[0]&16&&(c.closeSettingsMenu=i[89].subMenu.closeSettingsMenu),u[0]&16&&(c.backToMainSettings=i[89].subMenu.backToMainSettings),u[0]&16&&(c.itemIdReturnCase=i[89].subMenu.itemIdReturnCase),u[0]&16&&(c.items=i[89].subMenu.items),u[0]&16&&(c.selectItem=i[89].subMenu.selectItem),u[0]&16&&(c.minWidth=(h=i[89].subMenu.minWidth)!=null?h:137),!t&&u[0]&24&&(t=!0,c.listRef=i[3][i[89].id],Ue(()=>t=!1)),e.$set(c)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){V(e,l)}}}function q0(i){var o;let e,t,n=i[89].type==="OPEN_SUB_MENU"&&((o=i[89].subMenu)==null?void 0:o.show)&&H0(i);return{c(){n&&n.c(),e=Je()},m(r,s){n&&n.m(r,s),w(r,e,s),t=!0},p(r,s){var a;r[89].type==="OPEN_SUB_MENU"&&((a=r[89].subMenu)!=null&&a.show)?n?(n.p(r,s),s[0]&16&&d(n,1)):(n=H0(r),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),p(n,1,1,()=>{n=null}),ue())},i(r){t||(d(n),t=!0)},o(r){p(n),t=!1},d(r){r&&y(e),n&&n.d(r)}}}function q8(i){let e,t,n,o=i[6]&&D0(i),r=wt(i[4]),s=[];for(let l=0;l<r.length;l+=1)s[l]=q0(B0(i,r,l));let a=l=>p(s[l],1,1,()=>{s[l]=null});return{c(){e=I("div"),o&&o.c(),t=Y();for(let l=0;l<s.length;l+=1)s[l].c();f(e,"class","settings-menu-container svelte-1t2c6ej"),G(e,"hidden",!i[6]),G(e,"mobile",i[5])},m(l,u){w(l,e,u),o&&o.m(e,null),_(e,t);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(e,null);n=!0},p(l,u){if(l[6]?o?(o.p(l,u),u[0]&64&&d(o,1)):(o=D0(l),o.c(),d(o,1),o.m(e,t)):o&&(ae(),p(o,1,1,()=>{o=null}),ue()),u[0]&58|u[1]&1){r=wt(l[4]);let c;for(c=0;c<r.length;c+=1){let m=B0(l,r,c);s[c]?(s[c].p(m,u),d(s[c],1)):(s[c]=q0(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()}(!n||u[0]&64)&&G(e,"hidden",!l[6]),(!n||u[0]&32)&&G(e,"mobile",l[5])},i(l){if(!n){d(o);for(let u=0;u<r.length;u+=1)d(s[u]);n=!0}},o(l){p(o),s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)p(s[u]);n=!1},d(l){l&&y(e),o&&o.d(),li(s,l)}}}function U8(i,e,t){let n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,de,q,{ref:X=void 0}=e,{supportLink:oe}=e,{playerControlsHeight:K=0}=e,{returnFocus:ce}=e,z=ot(),x=Yt(),P=z.state.audioStream$;D(i,P,De=>t(57,k=De));let J=z.state.availableAudioStreams$;D(i,J,De=>t(56,S=De));let le=z.state.currentQuality$;D(i,le,De=>t(60,v=De));let Ae=z.state.availableQualities$;D(i,Ae,De=>t(58,F=De));let ee=z.state.autoQualityLimitingAvailable$;D(i,ee,De=>t(64,W=De));let ge=z.state.isAutoQualityEnabled$;D(i,ge,De=>t(61,E=De));let Ee=z.state.currentPlaybackRate$;D(i,Ee,De=>t(55,g=De));let Te=z.state.availablePlaybackRates$;D(i,Te,De=>t(54,C=De));let Ie=z.state.currentSubtitle$;D(i,Ie,De=>t(53,h=De));let rt=z.state.availableSubtitlesList$;D(i,rt,De=>t(51,c=De));let Pe=z.state.canDownload,We=z.state.hasMpegSources$;D(i,We,De=>t(65,ne=De));let $=z.ui.settingsMenuVisible;D(i,$,De=>t(6,q=De));let _e=z.ui.settingsMenuOpenedByKeyboard;D(i,_e,De=>t(71,r=De));let Ce=z.ui.isMobile;D(i,Ce,De=>t(5,s=De));let xe=z.ui.mobileNotReportControlHidden$;D(i,xe,De=>t(62,H=De));let st=z.state.canChangePlaybackSpeed$;D(i,st,De=>t(63,U=De));let at=z.state.trafficSavingEnabled$;D(i,at,De=>t(50,u=De));let nt=z.ui.playerSize;D(i,nt,De=>t(72,de=De));let $e=z.ui.debugPanelVisible;D(i,$e,De=>t(49,l=De));let fe=z.state.isInteractiveTime$,Se=z.ui.additionalSettingsMenuItems$;D(i,Se,De=>t(48,a=De));let et=z.actions.internal.downloadVideo,Ne=z.actions.internal.closeSettingsMenu,tt=!0,Fe=Oe({});D(i,Fe,De=>t(52,m=De));let ct=!1;function dt(De){t(7,tt=!1);let it=m;it[De]=!0,Fe.set(it)}function he(){r||ce==null||ce(),Vt(),Ne(),ct=!1}function pt(De){z.actions.internal.setQuality(De),he()}function kt(De){z.actions.internal.setAudioStream(De),he()}function Ct(De){z.actions.internal.setTrafficSavingEnabled(De)}function Ze(De){z.actions.internal.setPlaybackRate(De),he()}function Et(De){z.actions.internal.setSubtitle(De),he()}function Vt(){t(7,tt=!0);let De=m;Object.keys(De).forEach(it=>{De[it]=!1}),Fe.set(De)}function ri(){et()}function qt(){N8(oe)&&window.open(oe,"_blank"),z.actions.internal.reportProblem(),z.actions.internal.pause()}function Ut(){Pr(z.actions.internal.getDebugTextData())}let Qt=()=>{let De=z.actions.internal.getTraceTextData(),it=new Blob([...De],{type:"application/json"}),St=window.URL.createObjectURL(it);rr(St,"vk_player_trace_info","json")};function zt(){$e.set(!l)}function Ke(){ct=!0}function Xe(){ct=!1}function It(){return s?`max-height: ${Math.round(de.height*.6)}px`:`max-height: ${de.height-32-K}px; overflow: auto;`}let pe,Zt,At,ii,Dt,Kt,si,Mt=Oe();D(i,Mt,De=>t(59,T=De));let ni={},Xt={},dn=De=>{zs(De,Ne)},Bt=[];Nt(()=>{let De=fe.subscribe(it=>{it&&!s&&!ct&&!r&&he()});return()=>{De()}});let qi=De=>dt(De.id);function en(De,it){i.$$.not_equal(ni[it.id],De)&&(ni[it.id]=De,t(2,ni))}function gi(De){ve[De?"unshift":"push"](()=>{X=De,t(0,X)})}function wi(De,it){i.$$.not_equal(Xt[it.id],De)&&(Xt[it.id]=De,t(3,Xt))}return i.$$set=De=>{"ref"in De&&t(0,X=De.ref),"supportLink"in De&&t(37,oe=De.supportLink),"playerControlsHeight"in De&&t(1,K=De.playerControlsHeight),"returnFocus"in De&&t(38,ce=De.returnFocus)},i.$$.update=()=>{var De;if(i.$$.dirty[0]&64&&q&&Vt(),i.$$.dirty[1]&1744830464&&t(46,n=Ol(v,F,E)),i.$$.dirty[2]&9&&t(39,pe=Pe&&ne&&!H),i.$$.dirty[2]&5&&t(40,Zt=x.features.trafficSaving&&!H&&W),i.$$.dirty[1]&1048576|i.$$.dirty[2]&1&&t(41,At=c.length>0&&!H),i.$$.dirty[2]&3&&t(42,ii=!!U&&!H),i.$$.dirty[1]&33554432|i.$$.dirty[2]&1&&t(43,Dt=x.features.audioLanguages&&S.length>=2&&!H),i.$$.dirty[2]&1&&t(47,o=!H),i.$$.dirty[1]&1610612736&&t(44,Kt=E?j("auto_quality_option"):v),i.$$.dirty[1]&25165824&&t(45,si=(De=C.find(it=>it.value===g))==null?void 0:De.displayValue),i.$$.dirty[0]&4|i.$$.dirty[1]&268435456){let it=T;it&&(Gd(ni[it]),Mt.set(void 0))}i.$$.dirty[0]&56|i.$$.dirty[1]&268435200&&(t(4,Bt=[]),o&&Bt.push({id:"quality-settings",weight:no["quality-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let it=F.findIndex(St=>St.selected);return Xt["quality-settings"].children[it+1]},ariaLabel:j("aria_label_menu_quality",{actual:Kt}),icon:el,label:j("menu_quality"),value:n,valueComponent:E0,subMenu:{show:m["quality-settings"],title:j("submenu_quality"),closeSettingsMenu:Ne,backToMainSettings:Vt,itemIdReturnCase:Mt,selectItem:pt,items:F.map(it=>({value:it.value,valueComponent:Dl,valueComponentParams:{quality:it.value,label:it.displayValue,isMobile:s,isSubCase:!0},selected:it.selected,label:it.displayValue}))}}),Dt&&Bt.push({id:"audio-language-settings",weight:no["audio-language-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let it=S.findIndex(St=>St.id===(k==null?void 0:k.id));return Xt["audio-language-settings"].children[it+1]},ariaLabel:j("aria_label_menu_audio_languages",{actual:Nl(k,S)}),icon:S0,label:j("menu_audio_languages"),value:Nl(k,S),subMenu:{show:m["audio-language-settings"],title:j("submenu_audio_languages"),closeSettingsMenu:Ne,backToMainSettings:Vt,itemIdReturnCase:Mt,selectItem:kt,items:S.map(it=>({value:it,dataValue:it.id,selected:it.id===(k==null?void 0:k.id),label:Nl(it,S)}))}}),ii&&Bt.push({id:"playback-rate-settings",weight:no["playback-rate-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let it=C.findIndex(St=>St.selected);return Xt["playback-rate-settings"].children[it+1]},ariaLabel:j("aria_label_menu_rate",{actual:si}),icon:C0,label:j("menu_playback_rate"),value:`${g}x`,subMenu:{show:m["playback-rate-settings"],title:j("submenu_playback_rate"),closeSettingsMenu:Ne,backToMainSettings:Vt,itemIdReturnCase:Mt,selectItem:Ze,items:C.map(it=>({value:it.value,selected:it.selected,label:it.displayValue}))}}),At&&Bt.push({id:"subtitles-settings",weight:no["subtitles-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let it=c.findIndex(St=>St.selected);return Xt["subtitles-settings"].children[it+1]},ariaLabel:j("aria_label_menu_subtitle",{actual:h.displayValue}),icon:tl,label:j("subtitles_caption"),value:h.displayValue,subMenu:{show:m["subtitles-settings"],minWidth:164,title:j("subtitles_caption"),closeSettingsMenu:Ne,backToMainSettings:Vt,itemIdReturnCase:Mt,selectItem:Et,items:c.map(it=>({value:it,selected:it.selected,label:it.displayValue}))}}),Zt&&Bt.push({id:"traffic-saving-settings",weight:no["traffic-saving-settings"],type:"SWITCH",onClick:Ct,ariaLabel:u?j("aria_label_submenu_traffic_saving_off"):`${j("aria_label_submenu_traffic_saving_on")}. ${j("traffic_saving_helper_text")}`,icon:k0,label:j("menu_traffic_saving"),enabled:u,tooltipText:j("traffic_saving_helper_text"),maxTooltipWidth:175}),pe&&Bt.push({id:"download",weight:no.download,type:"CLICK",onClick:ri,label:j("download_video_caption"),ariaLabel:j("aria_label_menu_download"),icon:w0}),x.showSupport&&Bt.push({id:"report",weight:no.report,type:"CLICK",onClick:qt,label:j("menu_report"),ariaLabel:`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`,icon:I0,isHiddenFor:["desktop"]}),Bt.push({id:"copy-data",weight:no["copy-data"],type:"CLICK",onClick:Ut,label:j("menu_copy_debug"),ariaLabel:j("menu_copy_debug"),icon:of,isHiddenFor:["desktop"]}),x.features.saveTraceInfoToFile&&Bt.push({id:"save-trace-info",weight:no["save-trace-info"],type:"CLICK",onClick:Qt,label:j("menu_save_debug"),ariaLabel:j("menu_save_debug"),icon:of,isHiddenFor:["desktop"]}),Bt.push({id:"debug-info",weight:no["debug-info"],type:"CLICK",onClick:zt,label:l?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"),ariaLabel:j("menu_debug_overlay"),icon:T0,isHiddenFor:["desktop"]}),t(4,Bt=[...Bt,...a.map(it=>yt(Qe({},it),{isAdditional:!0}))].filter(it=>{var St,bi,ki;return!((St=it.isHiddenFor)!=null&&St.length)||!((bi=it.isHiddenFor)!=null&&bi.includes("desktop"))&&!s||!((ki=it.isHiddenFor)!=null&&ki.includes("mobile"))&&s}).sort(cr)))},[X,K,ni,Xt,Bt,s,q,tt,P,J,le,Ae,ee,ge,Ee,Te,Ie,rt,We,$,_e,Ce,xe,st,at,nt,$e,Se,Fe,dt,he,Vt,Ke,Xe,It,Mt,dn,oe,ce,pe,Zt,At,ii,Dt,Kt,si,n,o,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,qi,en,gi,wi]}var df=class extends N{constructor(e){super(),O(this,e,U8,q8,B,{ref:0,supportLink:37,playerControlsHeight:1,returnFocus:38},D8,[-1,-1,-1,-1])}},Fl=df;var{window:z8}=er;function K8(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 z0(i){var n;let e,t;return e=new Rl({props:{thumbUrl:i[3],startTime:(n=i[4])==null?void 0:n.startTime}}),{c(){R(e.$$.fragment)},m(o,r){L(e,o,r),t=!0},p(o,r){var a;let s={};r[0]&8&&(s.thumbUrl=o[3]),r[0]&16&&(s.startTime=(a=o[4])==null?void 0:a.startTime),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){V(e,o)}}}function W0(i){let e,t;return e=new Ur({props:{kind:"recover",thumbUrl:i[3]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function K0(i){let e,t;return e=new Ur({props:{kind:"record",thumbUrl:i[3]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function x0(i){let e,t,n;return t=new Hs({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","ads-container svelte-13f9p53"),G(e,"hidden",i[38]!=="ads")},m(o,r){w(o,e,r),L(t,e,null),n=!0},p(o,r){let s={};r[0]&256&&(s.adsSlotId=o[8]),r[0]&512&&(s.adsParams=o[9]),r[0]&1024&&(s.adsPreviewParam=o[10]),r[0]&2048&&(s.duration=o[11]),t.$set(s),(!n||r[1]&128)&&G(e,"hidden",o[38]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),V(t)}}}function j0(i){let e,t;return e=new S1({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){R(e.$$.fragment)},m(n,o){L(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]&8388608&&(r.playNextVideo=n[23]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function G0(i){let e,t;return e=new l0({props:{title:i[2],isHidden:!i[36]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.title=n[2]),o[1]&32&&(r.isHidden=!n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Y0(i){let e,t;return e=new El({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&160&&(r.isShifted=n[38]==="video"&&n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Q0(i){let e,t,n;return t=new As({props:{"aria-label":j("video360")}}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","spherical-video-icon svelte-13f9p53")},m(o,r){w(o,e,r),L(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&&y(e),V(t)}}}function Z0(i){let e,t;return e=new Ml({props:{thumbUrl:i[3],chromecastDeviceName:i[55]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),o[1]&16777216&&(r.chromecastDeviceName=n[55]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function X0(i){let e,t;return e=new Al({props:{shifted:i[36],captions:i[57],position:i[58],playerSize:i[34]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&32&&(r.shifted=n[36]),o[1]&67108864&&(r.captions=n[57]),o[1]&134217728&&(r.position=n[58]),o[1]&8&&(r.playerSize=n[34]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function J0(i){let e,t,n,o,r;return t=new Ll({}),{c(){e=I("div"),R(t.$$.fragment)},m(s,a){w(s,e,a),L(t,e,null),n=!0,o||(r=[ke(e,"contextmenu",ai(i[110])),ke(e,"click",vt(i[121]))],o=!0)},p:me,i(s){n||(d(t.$$.fragment,s),n=!0)},o(s){p(t.$$.fragment,s),n=!1},d(s){s&&y(e),V(t),o=!1,ft(r)}}}function $0(i){let e,t,n,o;function r(l){i[161](l)}function s(l){i[162](l)}let a={bottomHidden:i[38]==="thumb"||i[38]==="LiveWaitingStart"||i[38]==="LiveWaitingRecover"||i[38]==="LiveWaitingRecord",bottomNoSmooth:i[51],showControls:i[36],isAds:i[38]==="ads",canRewindLive:i[6]&&i[59]!==0,logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[14],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],customFullscreenSupported:r_,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[108],seekToInteractive:i[26],playPrevChapter:i[27]};return i[41]!==void 0&&(a.playerControlsWrapperRef=i[41]),i[42]!==void 0&&(a.playerControlsRef=i[42]),e=new Pl({props:a}),ve.push(()=>ze(e,"playerControlsWrapperRef",r)),ve.push(()=>ze(e,"playerControlsRef",s)),{c(){R(e.$$.fragment)},m(l,u){L(e,l,u),o=!0},p(l,u){let c={};u[1]&128&&(c.bottomHidden=l[38]==="thumb"||l[38]==="LiveWaitingStart"||l[38]==="LiveWaitingRecover"||l[38]==="LiveWaitingRecord"),u[1]&1048576&&(c.bottomNoSmooth=l[51]),u[1]&32&&(c.showControls=l[36]),u[1]&128&&(c.isAds=l[38]==="ads"),u[0]&64|u[1]&268435456&&(c.canRewindLive=l[6]&&l[59]!==0),u[0]&4096&&(c.logoClickable=l[12]),u[0]&8192&&(c.logoHidden=l[13]),u[0]&16384&&(c.logoTargetUrl=l[14]),u[0]&32768&&(c.showNextPrevButtons=l[15]),u[0]&65536&&(c.nextButtonActive=l[16]),u[0]&131072&&(c.prevButtonActive=l[17]),u[0]&1048576&&(c.isOneVideoPlaylist=l[20]),u[0]&8388608&&(c.playNextVideo=l[23]),u[0]&16777216&&(c.playPrevVideo=l[24]),u[0]&33554432&&(c.repeatPlaylist=l[25]),u[0]&67108864&&(c.seekToInteractive=l[26]),u[0]&134217728&&(c.playPrevChapter=l[27]),!t&&u[1]&1024&&(t=!0,c.playerControlsWrapperRef=l[41],Ue(()=>t=!1)),!n&&u[1]&2048&&(n=!0,c.playerControlsRef=l[42],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){V(e,l)}}}function e_(i){var a;let e,t,n,o;function r(l){i[164](l)}let s={supportLink:i[21],playerControlsHeight:(a=i[42])==null?void 0:a.clientHeight,returnFocus:i[163]};return i[29]!==void 0&&(s.ref=i[29]),t=new Fl({props:s}),ve.push(()=>ze(t,"ref",r)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","settings-menu svelte-13f9p53")},m(l,u){w(l,e,u),L(t,e,null),o=!0},p(l,u){var m;let c={};u[0]&2097152&&(c.supportLink=l[21]),u[1]&2048&&(c.playerControlsHeight=(m=l[42])==null?void 0:m.clientHeight),u[1]&262144&&(c.returnFocus=l[163]),!n&&u[0]&536870912&&(n=!0,c.ref=l[29],Ue(()=>n=!1)),t.$set(c)},i(l){o||(d(t.$$.fragment,l),o=!0)},o(l){p(t.$$.fragment,l),o=!1},d(l){l&&y(e),V(t)}}}function t_(i){let e,t;return e=new Vr({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function i_(i){let e,t;return e=new B1({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function n_(i){let e,t;return e=new Gs({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function o_(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,de,q;e=new Vl({props:{hidden:i[38]!=="thumb"||i[37]||i[94]&&i[5],thumbUrl:i[3],startVideo:i[28]}});let X=i[38]==="LiveWaitingStart"&&z0(i),oe=i[38]==="LiveWaitingRecover"&&W0(i),K=i[38]==="LiveWaitingRecord"&&K0(i),ce=i[7]&&i[22]&&x0(i),z=i[31]&&i[18]&&i[19]&&j0(i),x=i[45]&&G0(i),P=i[50]&&Y0(i),J=i[54]&&Q0(i),le=i[39]&&Z0(i),Ae=i[56].value!=="off"&&X0(i),ee=i[37]&&J0(i),ge=i[22]&&$0(i),Ee=!i[39]&&i[38]!=="ads"&&e_(i);k=new Us({props:{isLive:i[60],isHidden:!i[44],isPlaying:i[52],position:i[58],duration:i[61]}}),T=new Zp({props:{data:i[105]}});function Te($){i[166]($)}let Ie={supportLink:i[21],returnFocus:i[165],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[62]};i[32]!==void 0&&(Ie.menuElementRef=i[32]),E=new o1({props:Ie}),ve.push(()=>ze(E,"menuElementRef",Te));let rt=i[43]&&t_(i),Pe=i[63]&&i_(i),We=i[64]&&n_(i);return{c(){R(e.$$.fragment),t=Y(),X&&X.c(),n=Y(),oe&&oe.c(),o=Y(),K&&K.c(),r=Y(),ce&&ce.c(),s=Y(),z&&z.c(),a=Y(),x&&x.c(),l=Y(),P&&P.c(),u=Y(),J&&J.c(),c=Y(),le&&le.c(),m=Y(),Ae&&Ae.c(),h=Y(),ee&&ee.c(),C=Y(),ge&&ge.c(),g=Y(),Ee&&Ee.c(),S=Y(),R(k.$$.fragment),F=Y(),R(T.$$.fragment),v=Y(),R(E.$$.fragment),U=Y(),rt&&rt.c(),W=Y(),Pe&&Pe.c(),ne=Y(),We&&We.c(),de=Je()},m($,_e){L(e,$,_e),w($,t,_e),X&&X.m($,_e),w($,n,_e),oe&&oe.m($,_e),w($,o,_e),K&&K.m($,_e),w($,r,_e),ce&&ce.m($,_e),w($,s,_e),z&&z.m($,_e),w($,a,_e),x&&x.m($,_e),w($,l,_e),P&&P.m($,_e),w($,u,_e),J&&J.m($,_e),w($,c,_e),le&&le.m($,_e),w($,m,_e),Ae&&Ae.m($,_e),w($,h,_e),ee&&ee.m($,_e),w($,C,_e),ge&&ge.m($,_e),w($,g,_e),Ee&&Ee.m($,_e),w($,S,_e),L(k,$,_e),w($,F,_e),L(T,$,_e),w($,v,_e),L(E,$,_e),w($,U,_e),rt&&rt.m($,_e),w($,W,_e),Pe&&Pe.m($,_e),w($,ne,_e),We&&We.m($,_e),w($,de,_e),q=!0},p($,_e){let Ce={};_e[0]&32|_e[1]&192&&(Ce.hidden=$[38]!=="thumb"||$[37]||$[94]&&$[5]),_e[0]&8&&(Ce.thumbUrl=$[3]),_e[0]&268435456&&(Ce.startVideo=$[28]),e.$set(Ce),$[38]==="LiveWaitingStart"?X?(X.p($,_e),_e[1]&128&&d(X,1)):(X=z0($),X.c(),d(X,1),X.m(n.parentNode,n)):X&&(ae(),p(X,1,1,()=>{X=null}),ue()),$[38]==="LiveWaitingRecover"?oe?(oe.p($,_e),_e[1]&128&&d(oe,1)):(oe=W0($),oe.c(),d(oe,1),oe.m(o.parentNode,o)):oe&&(ae(),p(oe,1,1,()=>{oe=null}),ue()),$[38]==="LiveWaitingRecord"?K?(K.p($,_e),_e[1]&128&&d(K,1)):(K=K0($),K.c(),d(K,1),K.m(r.parentNode,r)):K&&(ae(),p(K,1,1,()=>{K=null}),ue()),$[7]&&$[22]?ce?(ce.p($,_e),_e[0]&4194432&&d(ce,1)):(ce=x0($),ce.c(),d(ce,1),ce.m(s.parentNode,s)):ce&&(ae(),p(ce,1,1,()=>{ce=null}),ue()),$[31]&&$[18]&&$[19]?z?(z.p($,_e),_e[0]&786432|_e[1]&1&&d(z,1)):(z=j0($),z.c(),d(z,1),z.m(a.parentNode,a)):z&&(ae(),p(z,1,1,()=>{z=null}),ue()),$[45]?x?(x.p($,_e),_e[1]&16384&&d(x,1)):(x=G0($),x.c(),d(x,1),x.m(l.parentNode,l)):x&&(ae(),p(x,1,1,()=>{x=null}),ue()),$[50]?P?(P.p($,_e),_e[1]&524288&&d(P,1)):(P=Y0($),P.c(),d(P,1),P.m(u.parentNode,u)):P&&(ae(),p(P,1,1,()=>{P=null}),ue()),$[54]?J?_e[1]&8388608&&d(J,1):(J=Q0($),J.c(),d(J,1),J.m(c.parentNode,c)):J&&(ae(),p(J,1,1,()=>{J=null}),ue()),$[39]?le?(le.p($,_e),_e[1]&256&&d(le,1)):(le=Z0($),le.c(),d(le,1),le.m(m.parentNode,m)):le&&(ae(),p(le,1,1,()=>{le=null}),ue()),$[56].value!=="off"?Ae?(Ae.p($,_e),_e[1]&33554432&&d(Ae,1)):(Ae=X0($),Ae.c(),d(Ae,1),Ae.m(h.parentNode,h)):Ae&&(ae(),p(Ae,1,1,()=>{Ae=null}),ue()),$[37]?ee?(ee.p($,_e),_e[1]&64&&d(ee,1)):(ee=J0($),ee.c(),d(ee,1),ee.m(C.parentNode,C)):ee&&(ae(),p(ee,1,1,()=>{ee=null}),ue()),$[22]?ge?(ge.p($,_e),_e[0]&4194304&&d(ge,1)):(ge=$0($),ge.c(),d(ge,1),ge.m(g.parentNode,g)):ge&&(ae(),p(ge,1,1,()=>{ge=null}),ue()),!$[39]&&$[38]!=="ads"?Ee?(Ee.p($,_e),_e[1]&384&&d(Ee,1)):(Ee=e_($),Ee.c(),d(Ee,1),Ee.m(S.parentNode,S)):Ee&&(ae(),p(Ee,1,1,()=>{Ee=null}),ue());let xe={};_e[1]&536870912&&(xe.isLive=$[60]),_e[1]&8192&&(xe.isHidden=!$[44]),_e[1]&2097152&&(xe.isPlaying=$[52]),_e[1]&134217728&&(xe.position=$[58]),_e[1]&1073741824&&(xe.duration=$[61]),k.$set(xe);let st={};_e[0]&2097152&&(st.supportLink=$[21]),_e[1]&262144&&(st.returnFocus=$[165]),_e[1]&4&&(st.visible=$[33]),_e[1]&512&&(st.playerContainerRef=$[40]),_e[1]&1024&&(st.controlsContainerRef=$[41]),_e[2]&1&&(st.position=$[62]),!H&&_e[1]&2&&(H=!0,st.menuElementRef=$[32],Ue(()=>H=!1)),E.$set(st),$[43]?rt?_e[1]&4096&&d(rt,1):(rt=t_($),rt.c(),d(rt,1),rt.m(W.parentNode,W)):rt&&(ae(),p(rt,1,1,()=>{rt=null}),ue()),$[63]?Pe?_e[2]&2&&d(Pe,1):(Pe=i_($),Pe.c(),d(Pe,1),Pe.m(ne.parentNode,ne)):Pe&&(ae(),p(Pe,1,1,()=>{Pe=null}),ue()),$[64]?We?_e[2]&4&&d(We,1):(We=n_($),We.c(),d(We,1),We.m(de.parentNode,de)):We&&(ae(),p(We,1,1,()=>{We=null}),ue())},i($){q||(d(e.$$.fragment,$),d(X),d(oe),d(K),d(ce),d(z),d(x),d(P),d(J),d(le),d(Ae),d(ee),d(ge),d(Ee),d(k.$$.fragment,$),d(T.$$.fragment,$),d(E.$$.fragment,$),d(rt),d(Pe),d(We),q=!0)},o($){p(e.$$.fragment,$),p(X),p(oe),p(K),p(ce),p(z),p(x),p(P),p(J),p(le),p(Ae),p(ee),p(ge),p(Ee),p(k.$$.fragment,$),p(T.$$.fragment,$),p(E.$$.fragment,$),p(rt),p(Pe),p(We),q=!1},d($){$&&(y(t),y(n),y(o),y(r),y(s),y(a),y(l),y(u),y(c),y(m),y(h),y(C),y(g),y(S),y(F),y(v),y(U),y(W),y(ne),y(de)),V(e,$),X&&X.d($),oe&&oe.d($),K&&K.d($),ce&&ce.d($),z&&z.d($),x&&x.d($),P&&P.d($),J&&J.d($),le&&le.d($),Ae&&Ae.d($),ee&&ee.d($),ge&&ge.d($),Ee&&Ee.d($),V(k,$),V(T,$),V(E,$),rt&&rt.d($),Pe&&Pe.d($),We&&We.d($)}}}function x8(i){let e,t,n,o,r=i[53],s,a,l,u,c=o_(i);return{c(){e=I("div"),t=I("div"),o=Y(),c.c(),s=Je(),f(t,"class","video-container svelte-13f9p53"),f(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[47]})`),f(t,"data-testid","video-container"),f(t,"data-is-playing",i[52]),G(t,"fast-rotate",!i[1].isSmoothVideoRotate),f(e,"class","video-wrapper svelte-13f9p53"),G(e,"hidden",i[38]!=="video"),G(e,"nocursor",i[46])},m(m,h){w(m,e,h),_(e,t),i[160](t),w(m,o,h),c.m(m,h),w(m,s,h),a=!0,l||(u=[ke(e,"contextmenu",ai(i[110])),ke(e,"mousedown",ai(i[115])),ke(e,"mouseup",ai(i[116])),ke(e,"click",ai(i[118])),ke(e,"dblclick",ai(i[117]))],l=!0)},p(m,h){(!a||h[1]&65552&&n!==(n=`transform: rotate(${m[35]}deg) scale(${m[47]})`))&&f(t,"style",n),(!a||h[1]&2097152)&&f(t,"data-is-playing",m[52]),(!a||h[0]&2)&&G(t,"fast-rotate",!m[1].isSmoothVideoRotate),(!a||h[1]&128)&&G(e,"hidden",m[38]!=="video"),(!a||h[1]&32768)&&G(e,"nocursor",m[46]),h[1]&4194304&&B(r,r=m[53])?(ae(),p(c,1,1,me),ue(),c=o_(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&&(y(e),y(o),y(s)),i[160](null),c.d(m),l=!1,ft(u)}}}function j8(i){let e,t,n,o,r,s,a,l={toggleFullscreen:i[108],hideContextMenu:i[109],showHotKeyHelpers:i[119],showKeyMap:i[120],isAds:i[38]==="ads",fakePlayButtonHandler:i[48]?i[107]:void 0,$$slots:{default:[x8]},$$scope:{ctx:i}};return t=new T1({props:l}),i[167](t),{c(){e=I("div"),R(t.$$.fragment),n=Y(),o=I("div"),f(o,"class","overlay-container"),f(e,"class","player-wrapper svelte-13f9p53")},m(u,c){w(u,e,c),L(t,e,null),_(e,n),_(e,o),i[168](o),i[169](e),r=!0,s||(a=[ke(z8,"blur",i[109]),ke(e,"mouseenter",i[111]),ke(e,"mouseleave",i[113]),ke(e,"mousemove",i[114]),ke(e,"click",i[122],!0),ke(e,"focusin",i[112],!0)],s=!0)},p(u,c){let m={};c[1]&128&&(m.isAds=u[38]==="ads"),c[1]&131072&&(m.fakePlayButtonHandler=u[48]?u[107]:void 0),c[0]&1073741823|c[1]&2147352575|c[2]&7|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&&y(e),i[167](null),V(t),i[168](null),i[169](null),s=!1,ft(a)}}}var r_=!0;function pf(i){return i?i.offsetTop+pf(i.offsetParent):0}function s_(i){return i?i.offsetLeft+s_(i.offsetParent):0}function G8(i,e,t){let n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,de,q,X,oe,K,ce,z,x,P,J,le,Ae,ee,ge,Ee,Te,Ie,rt,Pe,We,$,_e,{store:Ce}=e,{uiConfig:xe}=e,{title:st}=e,{thumbUrl:at}=e,{videoContainer:nt}=e,{interactiveContainer:$e}=e,{live:fe}=e,{autoplay:Se}=e,{canRewindLive:et}=e,{showAds:Ne}=e,{adsSlotId:tt=void 0}=e,{adsParams:Fe=void 0}=e,{adsPreviewParam:ct=void 0}=e,{duration:dt=void 0}=e,{logoClickable:he}=e,{logoHidden:pt}=e,{logoTargetUrl:kt=""}=e,{showNextPrevButtons:Ct=!1}=e,{nextButtonActive:Ze=!1}=e,{prevButtonActive:Et=!1}=e,{endScreenVideoTitle:Vt=void 0}=e,{endScreenVideoThumb:ri=void 0}=e,{isOneVideoPlaylist:qt=!1}=e,{supportLink:Ut}=e,{shadowRootContainer:Qt=void 0}=e,{outerContainerRef:zt=void 0}=e,{playerStarted:Ke=!1}=e,{fullScreenTarget:Xe=void 0}=e,{showMiniTimer:It=!1}=e,{showEndScreen:pe=!0}=e,{playNextVideo:Zt=mf}=e,{playPrevVideo:At=mf}=e,{repeatPlaylist:ii=mf}=e,{seekToInteractive:Dt}=e,{playPrevChapter:Kt}=e,{firstStart:si}=e,Mt=Ce.getLogger().createComponentLog("Root component"),ni=Ce.interfaceLanguage$;D(i,ni,Q=>t(53,le=Q));let Xt=Ce.state.playbackState$;D(i,Xt,Q=>t(157,z=Q));let dn=Ce.ads.playbackState;D(i,dn,Q=>t(158,x=Q));let Bt=Ce.state.positionWithScrubbing$;D(i,Bt,Q=>t(58,Te=Q));let qi=Ce.state.duration$;D(i,qi,Q=>t(61,Pe=Q));let en=Ce.playerPhase;D(i,en,Q=>t(38,q=Q));let gi=Ce.ui.isFullscreen;D(i,gi,Q=>t(147,S=Q));let wi=Ce.ui.controlsVisible;D(i,wi,Q=>t(36,H=Q));let De=Ce.ui.settingsMenuVisible;D(i,De,Q=>t(145,u=Q));let it=Ce.ui.settingsMenuOpenedByKeyboard;D(i,it,Q=>t(144,l=Q));let St=Ce.ui.scrubbingInProgress;D(i,St,Q=>t(149,v=Q));let bi=Ce.ui.contextMenu.visible$;D(i,bi,Q=>t(33,n=Q));let ki=Ce.ui.debugPanelVisible;D(i,ki,Q=>t(64,_e=Q));let tn=Ce.state.isLoaderVisible;D(i,tn,Q=>t(159,P=Q));let Ai=Ce.state.isEnded$;D(i,Ai,Q=>t(146,m=Q));let mn=Ce.state.chromecastConnected$;D(i,mn,Q=>t(39,K=Q));let mi=Ce.state.chromecastDeviceName$;D(i,mi,Q=>t(55,ee=Q));let Ui=Ce.ads.postrollPassed;D(i,Ui,Q=>t(152,ne=Q));let zi=Ce.state.isLive$;D(i,zi,Q=>t(60,rt=Q));let Ft=Ce.state.isPlaying$;D(i,Ft,Q=>t(52,J=Q));let Ci=Ce.state.crashed$;D(i,Ci,Q=>t(37,W=Q));let ui=Ce.webApi.annotationsApi,Wt=Ce.webApi.pictureInPictureApi,In=Ce.state.currentSubtitle$;D(i,In,Q=>t(56,ge=Q));let vi=Ce.state.currentSubtitleCaptions$;D(i,vi,Q=>t(57,Ee=Q));let pn=Ce.state.duration$;D(i,pn,Q=>t(59,Ie=Q));let Pn=Ce.state.graphIsOpened$;D(i,Pn,Q=>t(153,de=Q));let nn=Ce.ui.playerSize;D(i,nn,Q=>t(34,C=Q));let _n=Ce.ui.is3DVideo;D(i,_n,Q=>t(50,h=Q));let Si=Ce.ui.icon3DVideoVisible;D(i,Si,Q=>t(54,Ae=Q));let on=Ce.ui.rotateAlpha;D(i,on,Q=>t(35,T=Q));let xt=Ce.state.isInteractive,qn=Ce.state.isInteractiveTime$;D(i,qn,Q=>t(150,E=Q));let Wi=Ce.state.isInteractiveExpectation$;D(i,Wi,Q=>t(156,ce=Q));let Ki=Ce.state.hasInteractiveBranches,xi=Ce.ui.touched;D(i,xi,Q=>t(154,X=Q));let yi=Ce.ui.modals.hotKeyMap.data;D(i,yi,Q=>t(176,c=Q));let Mi=Ce.ui.modals.hotKeyMap.show;D(i,Mi,Q=>t(63,$=Q));let rn=Ce.ui.overlayContainer$,sn=Ce.ui.controls.interactiveTimeIndicator;D(i,sn,Q=>t(177,g=Q));let Ti=Ce.state.showInteractiveTimeIndicator,Ii=Ce.ui.contextMenu.position$;D(i,Ii,Q=>t(62,We=Q));let ci=Ce.actions.internal.closeSettingsMenu,{fakeIsPlaying$:jt}=On();D(i,jt,Q=>t(148,F=Q));let Ht,Li,Vi,ln,ut,Ri,fi;yi.set(Rd());let Bi,Ni,je=Oe(!1);D(i,je,Q=>t(51,k=Q));let Un,an=Oe(!1);D(i,an,Q=>t(155,oe=Q));let En=Oe(),hn=Oe(!1);D(i,hn,Q=>t(151,U=Q));let ji=!1,Gi=!1,Yi=!1,gn=!(Se&&!xe.controls.showOnStartupAtAutoplay),pi,An,Mn,Ln,bn,vn=!1,Vn,yn=!1,{toggle:zn}=jt,Di=!1,un=null,oi;Wt==null||Wt.setContext(Zr());let oo=()=>{Se&&!xt&&xe.controls.showOnStartupAtAutoplay&&di(xe.controls.hideTimeout)};Ce.setUiCallbacks({onStarted:oo});let ro=()=>{window.clearTimeout(ut),an.set(!1)},Wn=()=>{window.clearTimeout(Ri),En.set(null)},di=Q=>{ro(),an.set(!0),ut=window.setTimeout(()=>an.set(!1),Q);let Lt=Q-100;Un=window.setTimeout(()=>{k&&je.set(!1)},Lt>0?Lt:Q)},cn=(Q,Lt)=>{Wn(),En.set(Lt),Ri=window.setTimeout(()=>En.set(null),Q)},Qn=_n.subscribe(Q=>{Si.set(Q),Q&&(window.clearTimeout(fi),fi=window.setTimeout(()=>Si.set(!1),xe.controls.hide360IconTimeout))}),Kn=()=>mt(this,null,function*(){var Lt,Xi,Hi,ao;let Q=Ro();if(Q){let Cn=es(),uo=Zn();Q=Cn===uo||Cn===Qt}if(Q){di(xe.controls.hideTimeoutFullscreen);try{yield Wt==null?void 0:Wt.remove()}catch(Cn){Mt({message:String(Cn)})}}gi.set(Q),Ce.getAdmanWrapper().setFullscreen(Q),S?(Xi=(Lt=Ce.callbacks)==null?void 0:Lt.onFullscreenEnter)==null||Xi.call(Lt):(ao=(Hi=Ce.callbacks)==null?void 0:Hi.onFullscreenExit)==null||ao.call(Hi)}),so=Q=>{let Lt=Q;nn.set({width:Lt.target.width,height:Lt.target.height})};Nt(()=>{var Lt;return Os(Kn),xe.features.annotationsInside&&(ui==null||ui.init(Ht)),ar(Wt)&&(Wt==null||Wt.assignPlayerContainer(Ht),Wt==null||Wt.registryExternalEventHandlers({resize:so})),$e&&((Lt=nt.parentElement)==null||Lt.insertBefore($e,nt.nextSibling)),()=>{window.clearTimeout(ut),window.clearTimeout(Un),window.clearTimeout(Ri),window.clearTimeout(fi),Qn(),Wt==null||Wt.dispose(),Fs(Kn)}});let Zn=()=>{let Q=xe.features.fullscreenInternalTargetPlayerContainer||!zt?Ht:zt,Lt=Q.getRootNode(),Xi=Lt instanceof ShadowRoot?Lt.host:Lt,Hi=Xe instanceof HTMLElement&&Xe.contains(Xi);return xe.allowChangingFullscreenTarget&&Xe&&Hi?Xe:Q},Xn=()=>mt(this,null,function*(){Ro()?(yield Ds(document),Mt({message:"exit fullscreen"})):(Mt({message:"request fullscreen"}),yield Ns(Zn()))}),wn=()=>{ci(),bi.set(!1)},xn=Q=>{bi.set(!0),Ii.set({left:Q.clientX,top:Q.clientY})};function kn(){hn.set(!0),xt||di(xe.controls.hideTimeoutCursor)}function lo(){xt||(je.set(!0),di(xe.controls.hideTimeoutCursor))}function ie(){hn.set(!1),t(135,Gi=!1),t(134,ji=!1),Di=!1,Ce.actions.internal.releaseCamera()}function bt(Q){if(g&&Ti){let Lt=Q.currentTarget,Xi=pf(Lt),Hi=s_(Lt),ao=Q.pageX-Hi,Cn=Q.pageY-Xi,{left:uo,bottom:Jo,right:bo}=g,_r=bo-uo;return ao>=uo-_r&&Cn<=Jo+_r}}function Qi(Q){if(Ht){let Lt=pf(Q.currentTarget),Xi=C.height,Hi=Q.pageY-Lt;if(bt(Q)){t(135,Gi=!1);return}Hi<40?t(135,Gi=!0):Hi>Xi-40?t(134,ji=!0):(t(135,Gi=!1),u||t(134,ji=!1))}}function Oi(Q){Qi(Q),pi||di(xe.controls.hideTimeoutCursor),h&&Di&&un&&Ce.actions.internal.moveCameraFocusPX(un.clientX-Q.clientX,un.clientY-Q.clientY,Q.timeStamp-un.timeStamp),un=Q}let te=Q=>{Q.button===0&&(Di=!0,Ce.actions.internal.holdCamera()),di(xe.controls.hideTimeoutCursor)},Fi=Q=>{Q.button===0&&(un=Q,Di=!1,Ce.actions.internal.releaseCamera()),di(xe.controls.hideTimeoutCursor)},zo=()=>{r_&&(Mt({message:"double click on video"}),Xn(),di(xe.controls.hideTimeoutCursor))},Io=()=>{if(n||u){wn();return}if(!(m&&!Ki)){if(yn)return zn();if(oi==null||oi.focus(),!Ke){si(),di(xe.controls.hideTimeoutCursor);return}Ce.actions.internal.togglePlay(),di(xe.controls.hideTimeoutCursor)}},Po=Q=>{wn(),xi.set(!0),di(xe.controls.hideTimeout),Q&&cn(xe.controls.hideHotKeyHelpers,Q)},_o=()=>{var Q,Lt;wn(),(Q=Ce.callbacks)!=null&&Q.onOpenHotKeyMap?(Lt=Ce.callbacks)==null||Lt.onOpenHotKeyMap(c):Mi.update(Xi=>!Xi)},ho=()=>{if(n||u){wn();return}},pr=()=>{xi.set(!0)},Zi=Ce.ui.contextMenu.openedByBtnKeyboard$;D(i,Zi,Q=>t(143,a=Q));let go=Ce.ui.contextMenu.btnRef$;D(i,go,Q=>t(142,s=Q));let Jn,fn=Ce.ui.contextMenu.openedByHotKey$;D(i,fn,Q=>t(141,r=Q));let Eo=Ce.ui.contextMenu.lastActiveElem$;D(i,Eo,Q=>t(140,o=Q));function Wo(Q){ve[Q?"unshift":"push"](()=>{nt=Q,t(0,nt)})}function Ko(Q){Li=Q,t(41,Li)}function xo(Q){Vi=Q,t(42,Vi)}let jo=()=>oi==null?void 0:oi.focus();function Go(Q){ln=Q,t(29,ln)}let Yo=()=>oi==null?void 0:oi.focus();function Rn(Q){Jn=Q,t(32,Jn)}function Qo(Q){ve[Q?"unshift":"push"](()=>{oi=Q,t(49,oi)})}function Zo(Q){ve[Q?"unshift":"push"](()=>{Ni=Q,t(30,Ni)})}function Xo(Q){ve[Q?"unshift":"push"](()=>{Ht=Q,t(40,Ht)})}return i.$$set=Q=>{"store"in Q&&t(127,Ce=Q.store),"uiConfig"in Q&&t(1,xe=Q.uiConfig),"title"in Q&&t(2,st=Q.title),"thumbUrl"in Q&&t(3,at=Q.thumbUrl),"videoContainer"in Q&&t(0,nt=Q.videoContainer),"interactiveContainer"in Q&&t(128,$e=Q.interactiveContainer),"live"in Q&&t(4,fe=Q.live),"autoplay"in Q&&t(5,Se=Q.autoplay),"canRewindLive"in Q&&t(6,et=Q.canRewindLive),"showAds"in Q&&t(7,Ne=Q.showAds),"adsSlotId"in Q&&t(8,tt=Q.adsSlotId),"adsParams"in Q&&t(9,Fe=Q.adsParams),"adsPreviewParam"in Q&&t(10,ct=Q.adsPreviewParam),"duration"in Q&&t(11,dt=Q.duration),"logoClickable"in Q&&t(12,he=Q.logoClickable),"logoHidden"in Q&&t(13,pt=Q.logoHidden),"logoTargetUrl"in Q&&t(14,kt=Q.logoTargetUrl),"showNextPrevButtons"in Q&&t(15,Ct=Q.showNextPrevButtons),"nextButtonActive"in Q&&t(16,Ze=Q.nextButtonActive),"prevButtonActive"in Q&&t(17,Et=Q.prevButtonActive),"endScreenVideoTitle"in Q&&t(18,Vt=Q.endScreenVideoTitle),"endScreenVideoThumb"in Q&&t(19,ri=Q.endScreenVideoThumb),"isOneVideoPlaylist"in Q&&t(20,qt=Q.isOneVideoPlaylist),"supportLink"in Q&&t(21,Ut=Q.supportLink),"shadowRootContainer"in Q&&t(129,Qt=Q.shadowRootContainer),"outerContainerRef"in Q&&t(130,zt=Q.outerContainerRef),"playerStarted"in Q&&t(22,Ke=Q.playerStarted),"fullScreenTarget"in Q&&t(131,Xe=Q.fullScreenTarget),"showMiniTimer"in Q&&t(132,It=Q.showMiniTimer),"showEndScreen"in Q&&t(133,pe=Q.showEndScreen),"playNextVideo"in Q&&t(23,Zt=Q.playNextVideo),"playPrevVideo"in Q&&t(24,At=Q.playPrevVideo),"repeatPlaylist"in Q&&t(25,ii=Q.repeatPlaylist),"seekToInteractive"in Q&&t(26,Dt=Q.seekToInteractive),"playPrevChapter"in Q&&t(27,Kt=Q.playPrevChapter),"firstStart"in Q&&t(28,si=Q.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[5]&24&&t(43,Bi=(q==="video"&&P||q==="ads"&&x==="inactive")&&!W),i.$$.dirty[0]&1073741824&&rn.set(Ni),i.$$.dirty[4]&8192|i.$$.dirty[5]&4&&(t(136,Yi=gn&&z!==W8.PLAYING),gn||t(137,gn=!0)),i.$$.dirty[4]&69213184|i.$$.dirty[5]&2&&t(138,pi=E&&!u&&!(ji||Gi)&&!(Yi&&!ce)),i.$$.dirty[1]&448|i.$$.dirty[4]&35672064|i.$$.dirty[5]&1&&wi.set((Yi||u||v||K||oe)&&!pi&&(q==="video"||q==="ads")&&!W),i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&1073742080&&t(44,An=xe.features.thumbTimer&&It&&q==="video"&&!H&&!W&&!xt&&(xe.hideThumbTimerAfterTouch&&!X||!xe.hideThumbTimerAfterTouch)),i.$$.dirty[1]&128|i.$$.dirty[4]&545259520&&t(45,Mn=q==="video"&&!de&&S),i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&272630272&&t(31,Ln=pe&&(Ne&&ne||!Ne)&&m&&!W),i.$$.dirty[1]&33|i.$$.dirty[4]&201326592&&t(46,bn=U&&!(H||Ln)&&!E),i.$$.dirty[0]&2|i.$$.dirty[4]&100696064&&(!v&&vn&&!E&&di(xe.controls.hideTimeoutCursor),t(139,vn=v)),i.$$.dirty[0]&1|i.$$.dirty[1]&24&&t(47,Vn=nt&&T%180?C.height/C.width:1),i.$$.dirty[4]&16777216&&t(48,yn=F!==null),i.$$.dirty[0]&536870912|i.$$.dirty[4]&3145728&&po(ln,u,l),i.$$.dirty[1]&6|i.$$.dirty[4]&524288&&po(Jn,n,a),i.$$.dirty[1]&4|i.$$.dirty[4]&262144){let Q=s;Q&&Ar(Q,n,Zi)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&131072&&po(Jn,n,r),i.$$.dirty[1]&4|i.$$.dirty[4]&65536){let Q=o;Q&&jd(Q,n,fn)}},[nt,xe,st,at,fe,Se,et,Ne,tt,Fe,ct,dt,he,pt,kt,Ct,Ze,Et,Vt,ri,qt,Ut,Ke,Zt,At,ii,Dt,Kt,si,ln,Ni,Ln,Jn,n,C,T,H,W,q,K,Ht,Li,Vi,Bi,An,Mn,bn,Vn,yn,oi,h,k,J,le,Ae,ee,ge,Ee,Te,Ie,rt,Pe,We,$,_e,ni,Xt,dn,Bt,qi,en,gi,wi,De,it,St,bi,ki,tn,Ai,mn,mi,Ui,zi,Ft,Ci,In,vi,pn,Pn,nn,_n,Si,on,xt,qn,Wi,xi,yi,Mi,sn,Ii,jt,je,an,En,hn,zn,Xn,wn,xn,kn,lo,ie,Oi,te,Fi,zo,Io,Po,_o,ho,pr,Zi,go,fn,Eo,Ce,$e,Qt,zt,Xe,It,pe,ji,Gi,Yi,gn,pi,vn,o,r,s,a,l,u,m,S,F,v,E,U,ne,de,X,oe,ce,z,x,P,Wo,Ko,xo,jo,Go,Yo,Rn,Qo,Zo,Xo]}var _f=class extends N{constructor(e){super(),O(this,e,G8,j8,B,{store:127,uiConfig:1,title:2,thumbUrl:3,videoContainer:0,interactiveContainer:128,live:4,autoplay:5,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,logoTargetUrl:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:129,outerContainerRef:130,playerStarted:22,fullScreenTarget:131,showMiniTimer:132,showEndScreen:133,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,playPrevChapter:27,firstStart:28},K8,[-1,-1,-1,-1,-1,-1,-1])}},l_=_f;import{PlaybackState as $8}from"@vkontakte/videoplayer-core";import{clientChecker as Hl,noop as ql}from"@vkontakte/videoplayer-shared";function Y8(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 a_(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k=j("doubletap_seek_step",{seconds:i[2].toFixed(0)})+"",F;return{c(){e=I("div"),n=Y(),o=I("div"),r=I("div"),s=I("div"),l=Y(),u=I("div"),m=Y(),h=I("div"),g=Y(),S=I("p"),F=qe(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",C="triangle "+i[0]+" svelte-nhq2ld"),f(r,"class","triangles-wrapper svelte-nhq2ld"),f(S,"class","step-caption svelte-nhq2ld"),f(o,"class","info svelte-nhq2ld")},m(T,v){w(T,e,v),w(T,n,v),w(T,o,v),_(o,r),_(r,s),_(r,l),_(r,u),_(r,m),_(r,h),_(o,g),_(o,S),_(S,F)},p(T,v){v&1&&t!==(t="semicircle "+T[0]+" svelte-nhq2ld")&&f(e,"class",t),v&1&&a!==(a="triangle "+T[0]+" svelte-nhq2ld")&&f(s,"class",a),v&1&&c!==(c="triangle "+T[0]+" svelte-nhq2ld")&&f(u,"class",c),v&1&&C!==(C="triangle "+T[0]+" svelte-nhq2ld")&&f(h,"class",C),v&4&&k!==(k=j("doubletap_seek_step",{seconds:T[2].toFixed(0)})+"")&&Ge(F,k)},d(T){T&&(y(e),y(n),y(o))}}}function Q8(i){let e,t,n,o,r=i[1]&&a_(i);return{c(){e=I("div"),r&&r.c(),f(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(s,a){w(s,e,a),r&&r.m(e,null),n||(o=ke(e,"click",vt(i[3]())),n=!0)},p(s,[a]){s[1]?r?r.p(s,a):(r=a_(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&&y(e),r&&r.d(),n=!1,o()}}}function Z8(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 $n(()=>{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 hf=class extends N{constructor(e){super(),O(this,e,Z8,Q8,B,{side:0,seekStep:4,handleSingleFirstClick:5,handleSecondClick:6},Y8)}},gf=hf;function X8(i,e,t){let n,{playNextVideo:o}=e,s=ot().ui.autoplayNextEnabled$;return D(i,s,a=>t(2,n=a)),Nt(()=>{n&&o()}),i.$$set=a=>{"playNextVideo"in a&&t(1,o=a.playNextVideo)},[s,o]}var bf=class extends N{constructor(e){super(),O(this,e,X8,null,B,{playNextVideo:1})}},u_=bf;var{window:J8}=er;function ey(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 c_(i){let e,t,n,o=i[47]&&f_(i),r=i[48]&&d_(i);return{c(){o&&o.c(),e=Y(),r&&r.c(),t=Je()},m(s,a){o&&o.m(s,a),w(s,e,a),r&&r.m(s,a),w(s,t,a),n=!0},p(s,a){s[47]?o?(o.p(s,a),a[1]&65536&&d(o,1)):(o=f_(s),o.c(),d(o,1),o.m(e.parentNode,e)):o&&(ae(),p(o,1,1,()=>{o=null}),ue()),s[48]?r?(r.p(s,a),a[1]&131072&&d(r,1)):(r=d_(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&&(y(e),y(t)),o&&o.d(s),r&&r.d(s)}}}function f_(i){let e,t;return e=new gf({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[103],handleSecondClick:i[136]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function d_(i){let e,t;return e=new gf({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[103],handleSecondClick:i[137]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function m_(i){var n;let e,t;return e=new Rl({props:{thumbUrl:i[2],startTime:(n=i[3])==null?void 0:n.startTime}}),{c(){R(e.$$.fragment)},m(o,r){L(e,o,r),t=!0},p(o,r){var a;let s={};r[0]&4&&(s.thumbUrl=o[2]),r[0]&8&&(s.startTime=(a=o[3])==null?void 0:a.startTime),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){V(e,o)}}}function p_(i){let e,t;return e=new Ur({props:{kind:"recover",thumbUrl:i[2]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function __(i){let e,t;return e=new Ur({props:{kind:"record",thumbUrl:i[2]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function h_(i){let e,t,n;return t=new Hs({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","ads-container svelte-dtyj47"),G(e,"hidden",i[37]!=="ads")},m(o,r){w(o,e,r),L(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]&64)&&G(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&&y(e),V(t)}}}function g_(i){let e,t;return e=new u_({props:{playNextVideo:i[22]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4194304&&(r.playNextVideo=n[22]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function b_(i){let e,t;return e=new El({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function v_(i){let e,t,n;return t=new As({props:{"aria-label":j("video360")}}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","spherical-video-icon svelte-dtyj47")},m(o,r){w(o,e,r),L(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&&y(e),V(t)}}}function y_(i){let e,t;return e=new Ml({props:{thumbUrl:i[2],chromecastDeviceName:i[55]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),o[1]&16777216&&(r.chromecastDeviceName=n[55]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function w_(i){let e,t;return e=new Al({props:{shifted:i[31],captions:i[57],position:i[33],playerSize:i[34],isMobile:!0}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&1&&(r.shifted=n[31]),o[1]&67108864&&(r.captions=n[57]),o[1]&4&&(r.position=n[33]),o[1]&8&&(r.playerSize=n[34]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function k_(i){let e,t,n,o,r;return t=new Ll({}),{c(){e=I("div"),R(t.$$.fragment)},m(s,a){w(s,e,a),L(t,e,null),n=!0,o||(r=ke(e,"click",vt(i[104])),o=!0)},p:me,i(s){n||(d(t.$$.fragment,s),n=!0)},o(s){p(t.$$.fragment,s),n=!1},d(s){s&&y(e),V(t),o=!1,r()}}}function C_(i){let e,t,n,o;function r(l){i[138](l)}function s(l){i[139](l)}let a={bottomHidden:i[37]==="thumb"||i[37]==="LiveWaitingStart"||i[37]==="LiveWaitingRecover"||i[37]==="LiveWaitingRecord"||i[37]==="ads",showControls:i[31],bottomNoSmooth:i[49],isAds:i[37]==="ads",canRewindLive:i[5]&&i[58]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showNextPrevButtons:i[14],nextButtonActive:i[15],prevButtonActive:i[16],isOneVideoPlaylist:i[19],customFullscreenSupported:i[43],playNextVideo:i[22],playPrevVideo:i[23],repeatPlaylist:i[24],toggleFullscreen:i[101],seekToInteractive:i[25],playPrevChapter:i[26],onDisabledPlayPrevChapterClick:i[107],onDisabledSeekToInteractiveClick:i[108]};return i[40]!==void 0&&(a.playerControlsWrapperRef=i[40]),i[41]!==void 0&&(a.playerControlsRef=i[41]),e=new Pl({props:a}),ve.push(()=>ze(e,"playerControlsWrapperRef",r)),ve.push(()=>ze(e,"playerControlsRef",s)),{c(){R(e.$$.fragment)},m(l,u){L(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"||l[37]==="ads"),u[1]&1&&(c.showControls=l[31]),u[1]&262144&&(c.bottomNoSmooth=l[49]),u[1]&64&&(c.isAds=l[37]==="ads"),u[0]&32|u[1]&134217728&&(c.canRewindLive=l[5]&&l[58]!==0),u[0]&2048&&(c.logoClickable=l[11]),u[0]&4096&&(c.logoHidden=l[12]),u[0]&8192&&(c.logoTargetUrl=l[13]),u[0]&16384&&(c.showNextPrevButtons=l[14]),u[0]&32768&&(c.nextButtonActive=l[15]),u[0]&65536&&(c.prevButtonActive=l[16]),u[0]&524288&&(c.isOneVideoPlaylist=l[19]),u[1]&4096&&(c.customFullscreenSupported=l[43]),u[0]&4194304&&(c.playNextVideo=l[22]),u[0]&8388608&&(c.playPrevVideo=l[23]),u[0]&16777216&&(c.repeatPlaylist=l[24]),u[0]&33554432&&(c.seekToInteractive=l[25]),u[0]&67108864&&(c.playPrevChapter=l[26]),!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){V(e,l)}}}function S_(i){let e,t,n,o;function r(a){i[140](a)}let s={supportLink:i[20],returnFocus:ql};return i[28]!==void 0&&(s.ref=i[28]),t=new Fl({props:s}),ve.push(()=>ze(t,"ref",r)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","settings-mobile svelte-dtyj47")},m(a,l){w(a,e,l),L(t,e,null),o=!0},p(a,l){let u={};l[0]&1048576&&(u.supportLink=a[20]),!n&&l[0]&268435456&&(n=!0,u.ref=a[28],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&&y(e),V(t)}}}function T_(i){let e,t;return e=new Vr({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function I_(i){let e,t;return e=new Gs({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function P_(i){let e,t,n=i[5]&&i[82]&&!i[52].has("TIMELINE"),o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H;e=new Vl({props:{hidden:i[37]!=="thumb"||i[36]||i[93]&&i[4],thumbUrl:i[2],startVideo:i[27]}});let U=n&&c_(i),W=i[37]==="LiveWaitingStart"&&m_(i),ne=i[37]==="LiveWaitingRecover"&&p_(i),de=i[37]==="LiveWaitingRecord"&&__(i),q=i[6]&&i[21]&&h_(i),X=i[45]&&i[17]&&i[18]&&g_(i),oe=i[53]&&b_(i),K=i[54]&&v_(i),ce=i[38]&&y_(i),z=i[56].value!=="off"&&w_(i),x=i[36]&&k_(i),P=i[21]&&C_(i),J=i[30]&&S_(i);F=new Us({props:{isLive:i[59],isHidden:!i[44],isPlaying:i[50],position:i[33],duration:i[32]}});let le=i[42]&&T_(i),Ae=i[60]&&I_(i);return{c(){R(e.$$.fragment),t=Y(),U&&U.c(),o=Y(),W&&W.c(),r=Y(),ne&&ne.c(),s=Y(),de&&de.c(),a=Y(),q&&q.c(),l=Y(),X&&X.c(),u=Y(),oe&&oe.c(),c=Y(),K&&K.c(),m=Y(),ce&&ce.c(),h=Y(),z&&z.c(),C=Y(),x&&x.c(),g=Y(),P&&P.c(),S=Y(),J&&J.c(),k=Y(),R(F.$$.fragment),T=Y(),le&&le.c(),v=Y(),Ae&&Ae.c(),E=Je()},m(ee,ge){L(e,ee,ge),w(ee,t,ge),U&&U.m(ee,ge),w(ee,o,ge),W&&W.m(ee,ge),w(ee,r,ge),ne&&ne.m(ee,ge),w(ee,s,ge),de&&de.m(ee,ge),w(ee,a,ge),q&&q.m(ee,ge),w(ee,l,ge),X&&X.m(ee,ge),w(ee,u,ge),oe&&oe.m(ee,ge),w(ee,c,ge),K&&K.m(ee,ge),w(ee,m,ge),ce&&ce.m(ee,ge),w(ee,h,ge),z&&z.m(ee,ge),w(ee,C,ge),x&&x.m(ee,ge),w(ee,g,ge),P&&P.m(ee,ge),w(ee,S,ge),J&&J.m(ee,ge),w(ee,k,ge),L(F,ee,ge),w(ee,T,ge),le&&le.m(ee,ge),w(ee,v,ge),Ae&&Ae.m(ee,ge),w(ee,E,ge),H=!0},p(ee,ge){let Ee={};ge[0]&16|ge[1]&96&&(Ee.hidden=ee[37]!=="thumb"||ee[36]||ee[93]&&ee[4]),ge[0]&4&&(Ee.thumbUrl=ee[2]),ge[0]&134217728&&(Ee.startVideo=ee[27]),e.$set(Ee),ge[0]&32|ge[1]&2097152&&(n=ee[5]&&ee[82]&&!ee[52].has("TIMELINE")),n?U?(U.p(ee,ge),ge[0]&32|ge[1]&2097152&&d(U,1)):(U=c_(ee),U.c(),d(U,1),U.m(o.parentNode,o)):U&&(ae(),p(U,1,1,()=>{U=null}),ue()),ee[37]==="LiveWaitingStart"?W?(W.p(ee,ge),ge[1]&64&&d(W,1)):(W=m_(ee),W.c(),d(W,1),W.m(r.parentNode,r)):W&&(ae(),p(W,1,1,()=>{W=null}),ue()),ee[37]==="LiveWaitingRecover"?ne?(ne.p(ee,ge),ge[1]&64&&d(ne,1)):(ne=p_(ee),ne.c(),d(ne,1),ne.m(s.parentNode,s)):ne&&(ae(),p(ne,1,1,()=>{ne=null}),ue()),ee[37]==="LiveWaitingRecord"?de?(de.p(ee,ge),ge[1]&64&&d(de,1)):(de=__(ee),de.c(),d(de,1),de.m(a.parentNode,a)):de&&(ae(),p(de,1,1,()=>{de=null}),ue()),ee[6]&&ee[21]?q?(q.p(ee,ge),ge[0]&2097216&&d(q,1)):(q=h_(ee),q.c(),d(q,1),q.m(l.parentNode,l)):q&&(ae(),p(q,1,1,()=>{q=null}),ue()),ee[45]&&ee[17]&&ee[18]?X?(X.p(ee,ge),ge[0]&393216|ge[1]&16384&&d(X,1)):(X=g_(ee),X.c(),d(X,1),X.m(u.parentNode,u)):X&&(ae(),p(X,1,1,()=>{X=null}),ue()),ee[53]?oe?ge[1]&4194304&&d(oe,1):(oe=b_(ee),oe.c(),d(oe,1),oe.m(c.parentNode,c)):oe&&(ae(),p(oe,1,1,()=>{oe=null}),ue()),ee[54]?K?ge[1]&8388608&&d(K,1):(K=v_(ee),K.c(),d(K,1),K.m(m.parentNode,m)):K&&(ae(),p(K,1,1,()=>{K=null}),ue()),ee[38]?ce?(ce.p(ee,ge),ge[1]&128&&d(ce,1)):(ce=y_(ee),ce.c(),d(ce,1),ce.m(h.parentNode,h)):ce&&(ae(),p(ce,1,1,()=>{ce=null}),ue()),ee[56].value!=="off"?z?(z.p(ee,ge),ge[1]&33554432&&d(z,1)):(z=w_(ee),z.c(),d(z,1),z.m(C.parentNode,C)):z&&(ae(),p(z,1,1,()=>{z=null}),ue()),ee[36]?x?(x.p(ee,ge),ge[1]&32&&d(x,1)):(x=k_(ee),x.c(),d(x,1),x.m(g.parentNode,g)):x&&(ae(),p(x,1,1,()=>{x=null}),ue()),ee[21]?P?(P.p(ee,ge),ge[0]&2097152&&d(P,1)):(P=C_(ee),P.c(),d(P,1),P.m(S.parentNode,S)):P&&(ae(),p(P,1,1,()=>{P=null}),ue()),ee[30]?J?(J.p(ee,ge),ge[0]&1073741824&&d(J,1)):(J=S_(ee),J.c(),d(J,1),J.m(k.parentNode,k)):J&&(ae(),p(J,1,1,()=>{J=null}),ue());let Te={};ge[1]&268435456&&(Te.isLive=ee[59]),ge[1]&8192&&(Te.isHidden=!ee[44]),ge[1]&524288&&(Te.isPlaying=ee[50]),ge[1]&4&&(Te.position=ee[33]),ge[1]&2&&(Te.duration=ee[32]),F.$set(Te),ee[42]?le?ge[1]&2048&&d(le,1):(le=T_(ee),le.c(),d(le,1),le.m(v.parentNode,v)):le&&(ae(),p(le,1,1,()=>{le=null}),ue()),ee[60]?Ae?ge[1]&536870912&&d(Ae,1):(Ae=I_(ee),Ae.c(),d(Ae,1),Ae.m(E.parentNode,E)):Ae&&(ae(),p(Ae,1,1,()=>{Ae=null}),ue())},i(ee){H||(d(e.$$.fragment,ee),d(U),d(W),d(ne),d(de),d(q),d(X),d(oe),d(K),d(ce),d(z),d(x),d(P),d(J),d(F.$$.fragment,ee),d(le),d(Ae),H=!0)},o(ee){p(e.$$.fragment,ee),p(U),p(W),p(ne),p(de),p(q),p(X),p(oe),p(K),p(ce),p(z),p(x),p(P),p(J),p(F.$$.fragment,ee),p(le),p(Ae),H=!1},d(ee){ee&&(y(t),y(o),y(r),y(s),y(a),y(l),y(u),y(c),y(m),y(h),y(C),y(g),y(S),y(k),y(T),y(v),y(E)),V(e,ee),U&&U.d(ee),W&&W.d(ee),ne&&ne.d(ee),de&&de.d(ee),q&&q.d(ee),X&&X.d(ee),oe&&oe.d(ee),K&&K.d(ee),ce&&ce.d(ee),z&&z.d(ee),x&&x.d(ee),P&&P.d(ee),J&&J.d(ee),V(F,ee),le&&le.d(ee),Ae&&Ae.d(ee)}}}function ty(i){let e,t,n,o,r,s=i[51],a,l,u,c,m,h,C=P_(i);return{c(){e=I("div"),t=I("div"),n=I("div"),r=Y(),C.c(),a=Y(),l=I("div"),f(n,"class","video-container svelte-dtyj47"),f(n,"style",o=`transform: rotate(${i[35]}deg) scale(${i[46]})`),f(n,"data-testid","video-container"),f(n,"data-is-playing",i[50]),G(n,"fast-rotate",!i[1].isSmoothVideoRotate),f(t,"class","video-wrapper svelte-dtyj47"),G(t,"hidden",i[37]!=="video"),f(l,"class","overlay-container"),f(e,"class","player-wrapper svelte-dtyj47"),f(e,"role","region"),f(e,"aria-label",u=j("aria_label_video_player")),f(e,"tabindex","-1")},m(g,S){w(g,e,S),_(e,t),_(t,n),i[135](n),_(e,r),C.m(e,null),_(e,a),_(e,l),i[141](l),i[142](e),c=!0,m||(h=[ke(J8,"blur",i[102]),ke(t,"click",ai(i[103])),ke(e,"click",i[105],!0),ke(e,"focusin",i[106],!0)],m=!0)},p(g,S){(!c||S[1]&32784&&o!==(o=`transform: rotate(${g[35]}deg) scale(${g[46]})`))&&f(n,"style",o),(!c||S[1]&524288)&&f(n,"data-is-playing",g[50]),(!c||S[0]&2)&&G(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!c||S[1]&64)&&G(t,"hidden",g[37]!=="video"),S[1]&1048576&&B(s,s=g[51])?(ae(),p(C,1,1,me),ue(),C=P_(g),C.c(),d(C,1),C.m(e,a)):C.p(g,S)},i(g){c||(d(C),c=!0)},o(g){p(C),c=!1},d(g){g&&y(e),i[135](null),C.d(g),i[141](null),i[142](null),m=!1,ft(h)}}}function iy(i,e,t){var kn,lo;let n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,de,q,X,oe,K,ce,z,x,P,J,le,Ae,ee,ge,Ee,{store:Te}=e,{uiConfig:Ie}=e,{thumbUrl:rt}=e,{videoContainer:Pe}=e,{interactiveContainer:We}=e,{live:$}=e,{autoplay:_e}=e,{canRewindLive:Ce}=e,{showAds:xe}=e,{adsSlotId:st=void 0}=e,{adsParams:at=void 0}=e,{adsPreviewParam:nt=void 0}=e,{duration:$e=void 0}=e,{logoClickable:fe}=e,{logoHidden:Se}=e,{logoTargetUrl:et=""}=e,{showNextPrevButtons:Ne=!1}=e,{nextButtonActive:tt=!1}=e,{prevButtonActive:Fe=!1}=e,{endScreenVideoTitle:ct=void 0}=e,{endScreenVideoThumb:dt=void 0}=e,{isOneVideoPlaylist:he=!1}=e,{supportLink:pt}=e,{shadowRootContainer:kt=void 0}=e,{outerContainerRef:Ct=void 0}=e,{showMiniTimer:Ze=!1}=e,{fullScreenTarget:Et=void 0}=e,{playerStarted:Vt=!1}=e,{showEndScreen:ri=!0}=e,{playNextVideo:qt=ql}=e,{playPrevVideo:Ut=ql}=e,{repeatPlaylist:Qt=ql}=e,{seekToInteractive:zt}=e,{playPrevChapter:Ke}=e,{firstStart:Xe}=e,{seekTime:It}=e,pe=Te.getLogger().createComponentLog("Root component"),Zt=Te.interfaceLanguage$;D(i,Zt,ie=>t(51,ce=ie));let At=Te.state.playbackState$;D(i,At,ie=>t(132,q=ie));let ii=Te.ads.playbackState;D(i,ii,ie=>t(133,X=ie));let Dt=Te.state.positionWithScrubbing$;D(i,Dt,ie=>t(33,l=ie));let Kt=Te.state.duration$;D(i,Kt,ie=>t(32,a=ie));let si=Te.playerPhase;D(i,si,ie=>t(37,U=ie));let Mt=Te.ui.isFullscreen;D(i,Mt,ie=>t(148,c=ie));let ni=Te.ui.controlsVisible;D(i,ni,ie=>t(31,r=ie));let Xt=Te.ui.interactiveHideMobileControls;D(i,Xt,ie=>t(124,g=ie));let dn=Te.ui.settingsMenuVisible;D(i,dn,ie=>t(30,o=ie));let Bt=Te.ui.settingsMenuOpenedByKeyboard;D(i,Bt,ie=>t(122,n=ie));let qi=Te.ui.scrubbingInProgress;D(i,qi,ie=>t(125,k=ie));let en=Te.ui.debugPanelVisible;D(i,en,ie=>t(60,Ee=ie));let gi=Te.state.isLoaderVisible;D(i,gi,ie=>t(134,oe=ie));let wi=Te.state.isEnded$;D(i,wi,ie=>t(127,v=ie));let De=Te.state.chromecastConnected$;D(i,De,ie=>t(38,W=ie));let it=Te.state.chromecastDeviceName$;D(i,it,ie=>t(55,J=ie));let St=Te.ads.postrollPassed;D(i,St,ie=>t(128,E=ie));let bi=Te.ui.mobileUnmuteButtonExpanded,ki=Te.ui.mobileUnmuteButtonVisible,tn=Te.state.isLive$;D(i,tn,ie=>t(59,ge=ie));let Ai=Te.state.isPlaying$;D(i,Ai,ie=>t(50,K=ie));let mn=Te.state.isActiveLive$;D(i,mn,ie=>t(123,u=ie));let mi=Te.state.isRewindableLive$,Ui=Te.state.crashed$;D(i,Ui,ie=>t(36,T=ie));let zi=Te.webApi.annotationsApi,Ft=Te.webApi.pictureInPictureApi,Ci=Te.state.videoSize$;D(i,Ci,ie=>t(149,h=ie));let ui=Te.state.currentSubtitle$;D(i,ui,ie=>t(56,le=ie));let Wt=Te.state.currentSubtitleCaptions$;D(i,Wt,ie=>t(57,Ae=ie));let In=Te.state.duration$;D(i,In,ie=>t(58,ee=ie));let vi=Te.state.graphIsOpened$;D(i,vi,ie=>t(131,de=ie));let pn=Te.ui.playerSize;D(i,pn,ie=>t(34,m=ie));let Pn=Te.ui.is3DVideo;D(i,Pn,ie=>t(53,x=ie));let nn=Te.ui.icon3DVideoVisible;D(i,nn,ie=>t(54,P=ie));let _n=Te.ui.rotateAlpha;D(i,_n,ie=>t(35,S=ie));let Si=Te.state.isInteractive,on=Te.state.isInteractiveTime$;D(i,on,ie=>t(126,F=ie));let xt=Te.state.isInteractiveExpectation$;D(i,xt,ie=>t(130,ne=ie));let qn=Te.state.hasInteractiveBranches,Wi=Te.ui.controls.disabledControls$;D(i,Wi,ie=>t(52,z=ie));let Ki=Te.ui.touched;D(i,Ki,ie=>t(129,H=ie));let xi=Te.ui.overlayContainer$,yi=Te.state.loadedMetadata$;D(i,yi,ie=>t(147,s=ie));let Mi=Te.actions.internal.closeSettingsMenu,rn=(kn=Te.callbacks)==null?void 0:kn.onDisabledPlayPrevChapterClick,sn=(lo=Te.callbacks)==null?void 0:lo.onDisabledSeekToInteractiveClick,Ti,Ii,ci,jt,Ht,Li,Vi,ln,ut,Ri=Oe(!1);D(i,Ri,ie=>t(49,C=ie));let fi,Bi=!1,Ni,je=!1,Un,an=!0,En,hn,ji=!1,Gi;Ft==null||Ft.setContext(Zr());let Yi=ie=>{clearTimeout(Li),ie&&(ki.set(!0),bi.set(!0),Li=window.setTimeout(()=>{bi.set(!1)},Ie.controls.collapseMobileUnmute),Si||pi(Ie.controls.hideTimeoutMobile))};Te.setUiCallbacks({onStarted:Yi});let gn=()=>{window.clearTimeout(Ht),t(117,Bi=!1),g&&Xt.set(!1)},pi=ie=>{gn(),t(117,Bi=!0),Ht=window.setTimeout(()=>t(117,Bi=!1),ie);let bt=ie-100;fi=window.setTimeout(()=>{C&&Ri.set(!1)},bt>0?bt:ie)},An=Pn.subscribe(ie=>{nn.set(ie),ie&&(window.clearTimeout(Vi),Vi=window.setTimeout(()=>nn.set(!1),Ie.controls.hide360IconTimeout))}),Mn=()=>mt(this,null,function*(){var bt,Qi,Oi,te;let ie=Ro();if(ie){let Fi=es(),zo=yn(),Io=Hl.isSamsungBrowser&&Fi===kt;ie=Fi===zo||Io}if(ie){pi(Ie.controls.hideTimeoutFullscreen);try{yield Ft==null?void 0:Ft.remove()}catch(Fi){pe({message:String(Fi)})}try{let Fi=h!=null&&h.width&&(h!=null&&h.height)?h:m;yield Ld(Fi)}catch(Fi){pe({message:String(Fi)})}}Mt.set(ie),Te.getAdmanWrapper().setFullscreen(ie),c?(Qi=(bt=Te.callbacks)==null?void 0:bt.onFullscreenEnter)==null||Qi.call(bt):(te=(Oi=Te.callbacks)==null?void 0:Oi.onFullscreenExit)==null||te.call(Oi)}),Ln=ie=>{let bt=ie;pn.set({width:bt.target.width,height:bt.target.height})};Nt(()=>{var bt;return Os(Mn),Ie.features.annotationsInside&&(zi==null||zi.init(Ti)),ar(Ft)&&(Ft==null||Ft.assignPlayerContainer(Ti),Ft==null||Ft.registryExternalEventHandlers({resize:Ln})),t(43,an=!Hl.isIphoneOrOldIpad),We&&((bt=Pe.parentElement)==null||bt.insertBefore(We,Pe.nextSibling)),()=>{window.clearTimeout(Ht),window.clearTimeout(fi),window.clearTimeout(Li),window.clearTimeout(Vi),An(),Ft==null||Ft.dispose(),Fs(Mn)}});let bn=!0,vn=!0,Vn=ie=>{let bt=l+(ie==="forward"?1:-1)*Ie.controls.seekStepMobile/1e3;bt<0?(t(47,bn=!1),bt=0):bt>=a&&(t(48,vn=!1),bt=a),t(119,je=!0),It(bt)},yn=()=>{let ie=Hl.isIOS||Ie.features.fullscreenInternalTargetPlayerContainer||!Ct?Ti:Ct,bt=ie.getRootNode(),Qi=bt instanceof ShadowRoot?bt.host:bt,Oi=Et instanceof HTMLElement&&Et.contains(Qi);return Ie.allowChangingFullscreenTarget&&Et&&Oi?Et:ie},zn=()=>mt(this,null,function*(){if(Ro())yield Ds(document),pe({message:"exit fullscreen"});else{if(pe({message:"request fullscreen"}),Hl.isIOS&&!s)return;yield Ns(yn())}}),Di=()=>{Mi()},un=()=>{if(o){Di();return}if(!Vt){Xe(),pi(Ie.controls.hideTimeoutCursor);return}t(119,je=!1),r?gn():pi(Ie.controls.hideTimeoutMobile)},oi=()=>{if(o){Di();return}},oo=()=>{Ki.set(!0)},ro=()=>{Si||(Ri.set(!0),pi(Ie.controls.hideTimeoutCursor))},Wn=ie=>{rn&&(rn(ie),pi(Ie.controls.hideTimeoutMobile))},di=ie=>{sn&&(sn(ie),pi(Ie.controls.hideTimeoutMobile))};function cn(ie){ve[ie?"unshift":"push"](()=>{Pe=ie,t(0,Pe)})}let Qn=()=>Vn("backward"),Kn=()=>Vn("forward");function so(ie){Ii=ie,t(40,Ii)}function Zn(ie){ci=ie,t(41,ci)}function Xn(ie){jt=ie,t(28,jt)}function wn(ie){ve[ie?"unshift":"push"](()=>{ut=ie,t(29,ut)})}function xn(ie){ve[ie?"unshift":"push"](()=>{Ti=ie,t(39,Ti)})}return i.$$set=ie=>{"store"in ie&&t(109,Te=ie.store),"uiConfig"in ie&&t(1,Ie=ie.uiConfig),"thumbUrl"in ie&&t(2,rt=ie.thumbUrl),"videoContainer"in ie&&t(0,Pe=ie.videoContainer),"interactiveContainer"in ie&&t(110,We=ie.interactiveContainer),"live"in ie&&t(3,$=ie.live),"autoplay"in ie&&t(4,_e=ie.autoplay),"canRewindLive"in ie&&t(5,Ce=ie.canRewindLive),"showAds"in ie&&t(6,xe=ie.showAds),"adsSlotId"in ie&&t(7,st=ie.adsSlotId),"adsParams"in ie&&t(8,at=ie.adsParams),"adsPreviewParam"in ie&&t(9,nt=ie.adsPreviewParam),"duration"in ie&&t(10,$e=ie.duration),"logoClickable"in ie&&t(11,fe=ie.logoClickable),"logoHidden"in ie&&t(12,Se=ie.logoHidden),"logoTargetUrl"in ie&&t(13,et=ie.logoTargetUrl),"showNextPrevButtons"in ie&&t(14,Ne=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(15,tt=ie.nextButtonActive),"prevButtonActive"in ie&&t(16,Fe=ie.prevButtonActive),"endScreenVideoTitle"in ie&&t(17,ct=ie.endScreenVideoTitle),"endScreenVideoThumb"in ie&&t(18,dt=ie.endScreenVideoThumb),"isOneVideoPlaylist"in ie&&t(19,he=ie.isOneVideoPlaylist),"supportLink"in ie&&t(20,pt=ie.supportLink),"shadowRootContainer"in ie&&t(111,kt=ie.shadowRootContainer),"outerContainerRef"in ie&&t(112,Ct=ie.outerContainerRef),"showMiniTimer"in ie&&t(113,Ze=ie.showMiniTimer),"fullScreenTarget"in ie&&t(114,Et=ie.fullScreenTarget),"playerStarted"in ie&&t(21,Vt=ie.playerStarted),"showEndScreen"in ie&&t(115,ri=ie.showEndScreen),"playNextVideo"in ie&&t(22,qt=ie.playNextVideo),"playPrevVideo"in ie&&t(23,Ut=ie.playPrevVideo),"repeatPlaylist"in ie&&t(24,Qt=ie.repeatPlaylist),"seekToInteractive"in ie&&t(25,zt=ie.seekToInteractive),"playPrevChapter"in ie&&t(26,Ke=ie.playPrevChapter),"firstStart"in ie&&t(27,Xe=ie.firstStart),"seekTime"in ie&&t(116,It=ie.seekTime)},i.$$.update=()=>{i.$$.dirty[1]&96|i.$$.dirty[4]&1536&&t(42,ln=(U==="video"&&oe||U==="ads"&&X==="inactive")&&!T),i.$$.dirty[0]&536870912&&xi.set(ut),i.$$.dirty[4]&256&&t(118,Ni=q!==$8.PLAYING),i.$$.dirty[3]&50331648|i.$$.dirty[4]&201&&t(120,Un=de||g||!Bi&&(v&&!!qn||Ni&&ne)),i.$$.dirty[0]&1073741824|i.$$.dirty[1]&224|i.$$.dirty[3]&251658240|i.$$.dirty[4]&2&&ni.set((Ni||o||k||W||Bi&&!je)&&!Un&&U==="video"&&!T),i.$$.dirty[0]&2|i.$$.dirty[1]&97|i.$$.dirty[3]&1048576|i.$$.dirty[4]&32&&t(44,En=Ie.features.thumbTimer&&Ze&&U==="video"&&!r&&!T&&!Si&&(Ie.hideThumbTimerAfterTouch&&!H||!Ie.hideThumbTimerAfterTouch)),i.$$.dirty[0]&64|i.$$.dirty[1]&32|i.$$.dirty[3]&4194304|i.$$.dirty[4]&24&&t(45,hn=ri&&(xe&&E||!xe)&&v&&!T),i.$$.dirty[0]&2|i.$$.dirty[3]&268435456|i.$$.dirty[4]&6&&(!k&&ji&&!F&&pi(Ie.controls.hideTimeoutMobile),t(121,ji=k)),i.$$.dirty[0]&1|i.$$.dirty[1]&24&&t(46,Gi=Pe&&S%180?m.height/m.width:1),i.$$.dirty[1]&6|i.$$.dirty[3]&1073741824&&(t(47,bn=l>0),t(48,vn=!u&&l<a)),i.$$.dirty[0]&1342177280|i.$$.dirty[3]&536870912&&po(jt,o,n)},[Pe,Ie,rt,$,_e,Ce,xe,st,at,nt,$e,fe,Se,et,Ne,tt,Fe,ct,dt,he,pt,Vt,qt,Ut,Qt,zt,Ke,Xe,jt,ut,o,r,a,l,m,S,T,U,W,Ti,Ii,ci,ln,an,En,hn,Gi,bn,vn,C,K,ce,z,x,P,J,le,Ae,ee,ge,Ee,Zt,At,ii,Dt,Kt,si,Mt,ni,Xt,dn,Bt,qi,en,gi,wi,De,it,St,tn,Ai,mn,mi,Ui,Ci,ui,Wt,In,vi,pn,Pn,nn,_n,Si,on,xt,Wi,Ki,yi,Ri,Vn,zn,Di,un,oi,oo,ro,Wn,di,Te,We,kt,Ct,Ze,Et,ri,It,Bi,Ni,je,Un,ji,n,u,g,k,F,v,E,H,ne,de,q,X,oe,cn,Qn,Kn,so,Zn,Xn,wn,xn]}var vf=class extends N{constructor(e){super(),O(this,e,iy,ty,B,{store:109,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:110,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,shadowRootContainer:111,outerContainerRef:112,showMiniTimer:113,fullScreenTarget:114,playerStarted:21,showEndScreen:115,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,playPrevChapter:26,firstStart:27,seekTime:116},ey,[-1,-1,-1,-1,-1,-1])}},E_=vf;function ly(i){be(i,"svelte-w727va",`.root.svelte-w727va{--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 v6(i){let e,t;return{c(){e=I("div"),t=qe(i[0]),f(e,"class","title svelte-1bcvcf2"),j(e,"hidden",i[1])},m(n,o){w(n,e,o),_(e,t)},p(n,[o]){o&1&&Ge(t,n[0]),o&2&&j(e,"hidden",n[1])},i:me,o:me,d(n){n&&y(e)}}}function y6(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 zc=class extends N{constructor(e){super(),O(this,e,y6,v6,B,{title:0,isHidden:1},b6)}},l0=zc;function w6(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 a0(i){let e,t,n,o,r,s,a;return{c(){e=I("div"),t=I("span"),n=qe(i[0]),o=Y(),r=I("span"),r.textContent=`${G("waiting_live_day_value")}`,s=Y(),a=I("span"),a.textContent=`${G("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){w(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),w(l,s,u),w(l,a,u)},p(l,u){u&1&&Ge(n,l[0])},d(l){l&&(y(e),y(s),y(a))}}}function u0(i){let e,t,n,o,r,s,a;return{c(){e=I("div"),t=I("span"),n=qe(i[1]),o=Y(),r=I("span"),r.textContent=`${G("waiting_live_hour_value")}`,s=Y(),a=I("span"),a.textContent=`${G("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){w(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),w(l,s,u),w(l,a,u)},p(l,u){u&2&&Ge(n,l[1])},d(l){l&&(y(e),y(s),y(a))}}}function c0(i){let e,t,n,o,r,s,a;return{c(){e=I("div"),t=I("span"),n=qe(i[2]),o=Y(),r=I("span"),r.textContent=`${G("waiting_live_minute_value")}`,s=Y(),a=I("span"),a.textContent=`${G("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){w(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),w(l,s,u),w(l,a,u)},p(l,u){u&4&&Ge(n,l[2])},d(l){l&&(y(e),y(s),y(a))}}}function f0(i){let e,t,n,o,r;return{c(){e=I("div"),t=I("span"),n=qe(i[3]),o=Y(),r=I("span"),r.textContent=`${G("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){w(s,e,a),_(e,t),_(t,n),_(e,o),_(e,r)},p(s,a){a&8&&Ge(n,s[3])},d(s){s&&y(e)}}}function k6(i){let e,t,n,o,r=i[0]&&a0(i),s=i[1]&&u0(i),a=i[2]&&c0(i),l=i[3]&&f0(i);return{c(){e=I("div"),r&&r.c(),t=Y(),s&&s.c(),n=Y(),a&&a.c(),o=Y(),l&&l.c(),f(e,"class","timer__container svelte-1qpxtfg")},m(u,c){w(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=a0(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?s?s.p(u,c):(s=u0(u),s.c(),s.m(e,n)):s&&(s.d(1),s=null),u[2]?a?a.p(u,c):(a=c0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?l?l.p(u,c):(l=f0(u),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i:me,o:me,d(u){u&&y(e),r&&r.d(),s&&s.d(),a&&a.d(),l&&l.d()}}}function C6(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,s,a,l,u,c=C=>String(C).padStart(2,"0"),m=C=>{let g=Math.floor(C/86400);g&&(C-=g*86400,t(0,r=c(g)));let S=Math.floor(C/3600);t(1,s=c(S));let k=Math.floor(C/60)%60;t(2,a=c(k));let F=C%60;t(3,l=c(F))},h=()=>{let C=Math.floor(Date.now()/1e3),g=n-C;m(g),g>=1?u=requestAnimationFrame(h):o()};return Nt(()=>{u=requestAnimationFrame(h)}),$n(()=>{cancelAnimationFrame(u)}),i.$$set=C=>{"startTime"in C&&t(4,n=C.startTime),"onTimerOver"in C&&t(5,o=C.onTimerOver)},[r,s,a,l,n,o]}var Wc=class extends N{constructor(e){super(),O(this,e,C6,k6,B,{startTime:4,onTimerOver:5},w6)}},d0=Wc;function S6(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=se(c,u[m]);return{c(){e=M("svg"),l&&l.c(),t=M("path"),n=M("path"),o=M("path"),r=M("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"),_i(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"),_i(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"),_i(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"),_i(r,"opacity",".986"),we(e,c)},m(m,h){w(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),we(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&&y(e),l&&l.d(m)}}}function T6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Kc=class extends N{constructor(e){super(),O(this,e,T6,S6,B,{})}},m0=Kc;function I6(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 P6(i){let e,t,n,o,r;return o=new d0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=I("div"),t=I("span"),t.textContent=`${G("waiting_live_timer_title")}`,n=Y(),R(o.$$.fragment),f(t,"class","timer__title svelte-15pewff"),f(e,"class","waiting-timer timer svelte-15pewff")},m(s,a){w(s,e,a),_(e,t),_(e,n),L(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&&y(e),V(o)}}}function E6(i){let e,t,n,o,r,s;return n=new m0({}),{c(){e=I("div"),t=I("div"),R(n.$$.fragment),o=Y(),r=I("span"),r.textContent=`${G("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){w(a,e,l),_(e,t),L(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&&y(e),V(n)}}}function A6(i){let e,t,n,o,r,s=[E6,P6],a=[];function l(u,c){return u[2]?0:1}return t=l(i,-1),n=a[t]=s[t](i),{c(){e=I("div"),n.c(),f(e,"class","waiting-container svelte-15pewff"),f(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,c){w(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&&y(e),a[t].d()}}}function M6(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 xc=class extends N{constructor(e){super(),O(this,e,M6,A6,B,{thumbUrl:0,startTime:1},I6)}},Rl=xc;function L6(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 V6(i){let e,t,n,o,r,s,a,l;return n=new Vr({props:{style:"position: static; transform: translate(0, 0)"}}),{c(){e=I("div"),t=I("div"),R(n.$$.fragment),o=Y(),r=I("p"),s=qe(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){w(u,e,c),_(e,t),L(n,t,null),_(t,o),_(t,r),_(r,s),l=!0},p(u,[c]){(!l||c&2)&&Ge(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&&y(e),V(n)}}}function R6(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:G("waiting_live_recover_title"),record:G("waiting_record_title")};t(1,r=s[o]||"")}},[n,r,o]}var jc=class extends N{constructor(e){super(),O(this,e,R6,V6,B,{thumbUrl:0,kind:2},L6)}},Ur=jc;var Bl=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),Nl=(i,e)=>{var s;if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=(s=pl(t))!=null?s:t),n&&t&&o){let a=e.filter(l=>l.label===n&&l.language===t);if(a.length===1)return G("audio_stream_display_language_label",{language:o,label:n});{let l=Bl(i,a);return G("audio_stream_display_language_label_index",{language:o,label:n,index:l})}}if(n){let a=e.filter(l=>l.label===n);if(a.length===1)return n;{let l=Bl(i,a);return G("audio_stream_display_label_index",{label:n,index:l})}}if(t&&o){let a=e.filter(l=>l.language===t);if(a.length===1)return o;{let l=Bl(i,a);return G("audio_stream_display_language_index",{language:o,index:l})}}let r=Bl(i,e);return G("audio_stream_display_unknown",{index:r})};function B6(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function N6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Gc=class extends N{constructor(e){super(),O(this,e,N6,B6,B,{})}},p0=Gc;function D6(i){be(i,"svelte-124aexk",".select-icon.svelte-124aexk{margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px}")}function _0(i){let e,t,n;return t=new p0({}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","select-icon svelte-124aexk")},m(o,r){w(o,e,r),L(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&&y(e),V(t)}}}function O6(i){var o;let e,t=((o=i[1].label)!=null?o:i[1].value)+"",n;return{c(){e=I("div"),n=qe(t),f(e,"class","menu-item-value"),j(e,"submenu-value-mobile",i[0])},m(r,s){w(r,e,s),_(e,n)},p(r,s){var a;s&2&&t!==(t=((a=r[1].label)!=null?a:r[1].value)+"")&&Ge(n,t),s&1&&j(e,"submenu-value-mobile",r[0])},i:me,o:me,d(r){r&&y(e)}}}function F6(i){var a;let e,t,n,o=[(a=i[1].valueComponentParams)!=null?a:{}];var r=i[1].valueComponent;function s(l,u){var m;let c={};for(let h=0;h<o.length;h+=1)c=se(c,o[h]);return u!==void 0&&u&2&&(c=se(c,He(o,[Vo((m=l[1].valueComponentParams)!=null?m:{})]))),{props:c}}return r&&(e=Ft(r,s(i))),{c(){e&&R(e.$$.fragment),t=Je()},m(l,u){e&&L(e,l,u),w(l,t,u),n=!0},p(l,u){var c;if(u&2&&r!==(r=l[1].valueComponent)){if(e){ae();let m=e;p(m.$$.fragment,1,0,()=>{V(m,1)}),ue()}r?(e=Ft(r,s(l,u)),R(e.$$.fragment),d(e.$$.fragment,1),L(e,t.parentNode,t)):e=null}else if(r){let m=u&2?He(o,[Vo((c=l[1].valueComponentParams)!=null?c:{})]):{};e.$set(m)}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&p(e.$$.fragment,l),n=!1},d(l){l&&y(t),e&&V(e,l)}}}function H6(i){let e,t,n,o,r,s,a,l,u,c=i[1].selected&&_0(i),m=[F6,O6],h=[];function C(g,S){return g[1].valueComponent?0:1}return n=C(i,-1),o=h[n]=m[n](i),{c(){var g,S,k;e=I("li"),c&&c.c(),t=Y(),o.c(),f(e,"class","item"),f(e,"data-value",r=(g=i[1].dataValue)!=null?g:i[1].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=(k=(S=i[1].ariaLabel)!=null?S:i[1].label)!=null?k:i[1].value.toString()),j(e,"mobile",i[0])},m(g,S){w(g,e,S),c&&c.m(e,null),_(e,t),h[n].m(e,null),a=!0,l||(u=[ke(e,"click",vt(i[4])),ke(e,"keydown",i[5])],l=!0)},p(g,[S]){var F,T,v;g[1].selected?c?S&2&&d(c,1):(c=_0(g),c.c(),d(c,1),c.m(e,t)):c&&(ae(),p(c,1,1,()=>{c=null}),ue());let k=n;n=C(g,S),n===k?h[n].p(g,S):(ae(),p(h[k],1,1,()=>{h[k]=null}),ue(),o=h[n],o?o.p(g,S):(o=h[n]=m[n](g),o.c()),d(o,1),o.m(e,null)),(!a||S&2&&r!==(r=(F=g[1].dataValue)!=null?F:g[1].value))&&f(e,"data-value",r),(!a||S&2&&s!==(s=(v=(T=g[1].ariaLabel)!=null?T:g[1].label)!=null?v:g[1].value.toString()))&&f(e,"aria-label",s),(!a||S&1)&&j(e,"mobile",g[0])},i(g){a||(d(c),d(o),a=!0)},o(g){p(c),p(o),a=!1},d(g){g&&y(e),c&&c.d(),h[n].d(),l=!1,ft(u)}}}function q6(i,e,t){let{isMobile:n=!1}=e,{item:o}=e,{selectItem:r}=e,s=(u,c)=>{Mr(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 Yc=class extends N{constructor(e){super(),O(this,e,q6,H6,B,{isMobile:0,item:1,selectItem:2},D6)}},h0=Yc;var no={"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 z6(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 g0(i,e,t){let n=i.slice();return n[23]=e[t],n}function b0(i){let e,t;return e=new h0({props:{item:i[23],isMobile:i[2],selectItem:i[7]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&64&&(r.item=n[23]),o&4&&(r.isMobile=n[2]),o&128&&(r.selectItem=n[7]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function W6(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g;o=new mr({props:{direction:"left"}});let S=wt(i[6]),k=[];for(let T=0;T<S.length;T+=1)k[T]=b0(g0(i,S,T));let F=T=>p(k[T],1,1,()=>{k[T]=null});return{c(){var T;e=I("div"),t=I("ul"),n=I("li"),R(o.$$.fragment),r=Y(),s=I("div"),a=qe(i[5]),l=Y();for(let v=0;v<k.length;v+=1)k[v].c();f(n,"class","item header svelte-1mrc4z3"),f(n,"role","menuitem"),f(n,"tabindex","0"),f(n,"data-testid","return-to-settings-menu"),f(n,"aria-label",i[4]),j(n,"mobile",i[2]),f(t,"class","items"),f(t,"role","menu"),f(t,"style",u=i[13]((T=i[9])==null?void 0:T.clientHeight)),j(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`),j(e,"desktop",!i[2]),j(e,"mobile",i[2])},m(T,v){w(T,e,v),_(e,t),_(t,n),L(o,n,null),_(n,r),_(n,s),_(s,a),i[18](n),_(t,l);for(let E=0;E<k.length;E+=1)k[E]&&k[E].m(t,null);i[19](t),h=!0,C||(g=[ke(n,"click",vt(function(){Jt(i[3])&&i[3].apply(this,arguments)})),ke(t,"keydown",i[12])],C=!0)},p(T,[v]){var E;if(i=T,(!h||v&32)&&Ge(a,i[5]),(!h||v&16)&&f(n,"aria-label",i[4]),(!h||v&4)&&j(n,"mobile",i[2]),v&196){S=wt(i[6]);let H;for(H=0;H<S.length;H+=1){let U=g0(i,S,H);k[H]?(k[H].p(U,v),d(k[H],1)):(k[H]=b0(U),k[H].c(),d(k[H],1),k[H].m(t,null))}for(ae(),H=S.length;H<k.length;H+=1)F(H);ue()}(!h||v&512&&u!==(u=i[13]((E=i[9])==null?void 0:E.clientHeight)))&&f(t,"style",u),(!h||v&4)&&j(t,"mobile",i[2]),(!h||v&2&&c!==(c=`sub-menu-${i[1]}`))&&f(e,"data-testid",c),(!h||v&256&&m!==(m=`min-width: ${i[8]}px`))&&f(e,"style",m),(!h||v&4)&&j(e,"desktop",!i[2]),(!h||v&4)&&j(e,"mobile",i[2])},i(T){if(!h){d(o.$$.fragment,T);for(let v=0;v<S.length;v+=1)d(k[v]);h=!0}},o(T){p(o.$$.fragment,T),k=k.filter(Boolean);for(let v=0;v<k.length;v+=1)p(k[v]);h=!1},d(T){T&&y(e),V(o),i[18](null),li(k,T),i[19](null),C=!1,ft(g)}}}function K6(i,e,t){let n,o,{id:r}=e,{isMobile:s=!1}=e,{playerControlsHeight:a=0}=e,{returnFromSubMenu:l}=e,{ariaLabelReturnFromSubMenu:u=G("aria_label_submenu_back")}=e,{title:c}=e,{listRef:m}=e,{closeSettingsMenu:h}=e,{backToMainSettings:C}=e,{itemIdReturnCase:g}=e,{items:S}=e,{selectItem:k}=e,{minWidth:F}=e,T=ot(),v=T.ui.isFullscreen;D(i,v,q=>t(21,o=q));let E=T.ui.playerSize;D(i,E,q=>t(20,n=q));let H,U=q=>{Qd(q,C,{itemIdReturnCase:g,id:r},h)},W=(q=0)=>s&&o?`max-height: ${Math.round(n.height*.6)}px`:s?"":`max-height: ${n.height-32-q-a}px; overflow: auto;`;function ne(q){ve[q?"unshift":"push"](()=>{H=q,t(9,H)})}function de(q){ve[q?"unshift":"push"](()=>{m=q,t(0,m)})}return i.$$set=q=>{"id"in q&&t(1,r=q.id),"isMobile"in q&&t(2,s=q.isMobile),"playerControlsHeight"in q&&t(14,a=q.playerControlsHeight),"returnFromSubMenu"in q&&t(3,l=q.returnFromSubMenu),"ariaLabelReturnFromSubMenu"in q&&t(4,u=q.ariaLabelReturnFromSubMenu),"title"in q&&t(5,c=q.title),"listRef"in q&&t(0,m=q.listRef),"closeSettingsMenu"in q&&t(15,h=q.closeSettingsMenu),"backToMainSettings"in q&&t(16,C=q.backToMainSettings),"itemIdReturnCase"in q&&t(17,g=q.itemIdReturnCase),"items"in q&&t(6,S=q.items),"selectItem"in q&&t(7,k=q.selectItem),"minWidth"in q&&t(8,F=q.minWidth)},[m,r,s,l,u,c,S,k,F,H,v,E,U,W,a,h,C,g,ne,de]}var Qc=class extends N{constructor(e){super(),O(this,e,K6,W6,B,{id:1,isMobile:2,playerControlsHeight:14,returnFromSubMenu:3,ariaLabelReturnFromSubMenu:4,title:5,listRef:0,closeSettingsMenu:15,backToMainSettings:16,itemIdReturnCase:17,items:6,selectItem:7,minWidth:8},z6)}},v0=Qc;import{noop as x6}from"@vkontakte/videoplayer-shared";function j6(i){be(i,"svelte-1ikfjte",".value.svelte-1ikfjte{position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis}")}function G6(i){let e,t,n;var o=i[8];function r(s,a){return{}}return o&&(e=Ft(o,r(i))),{c(){e&&R(e.$$.fragment),t=Je()},m(s,a){e&&L(e,s,a),w(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,()=>{V(l,1)}),ue()}o?(e=Ft(o,r(s,a)),R(e.$$.fragment),d(e.$$.fragment,1),L(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&&y(t),e&&V(e,s)}}}function Y6(i){let e,t;return e=new qr({props:{icon:i[8]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function Q6(i){let e,t;return{c(){e=I("div"),t=qe(i[6]),f(e,"class","value svelte-1ikfjte")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&64&&Ge(t,n[6])},i:me,o:me,d(n){n&&y(e)}}}function Z6(i){let e,t,n;var o=i[7];function r(s,a){return{}}return o&&(e=Ft(o,r(i))),{c(){e&&R(e.$$.fragment),t=Je()},m(s,a){e&&L(e,s,a),w(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,()=>{V(l,1)}),ue()}o?(e=Ft(o,r(s,a)),R(e.$$.fragment),d(e.$$.fragment,1),L(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&&y(t),e&&V(e,s)}}}function X6(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g=[Y6,G6],S=[];function k(E,H){return typeof E[8]=="string"?0:1}n=k(i,-1),o=S[n]=g[n](i);let F=[Z6,Q6],T=[];function v(E,H){return E[7]?0:1}return u=v(i,-1),c=T[u]=F[u](i),{c(){e=I("li"),t=I("div"),o.c(),r=Y(),s=I("div"),a=qe(i[4]),l=Y(),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]),j(e,"mobile",i[2])},m(E,H){w(E,e,H),_(e,t),S[n].m(t,null),_(e,r),_(e,s),_(s,a),_(e,l),T[u].m(e,null),i[11](e),m=!0,h||(C=[ke(e,"click",vt(function(){Jt(i[3])&&i[3].apply(this,arguments)})),ke(e,"keydown",i[9])],h=!0)},p(E,[H]){i=E;let U=n;n=k(i,H),n===U?S[n].p(i,H):(ae(),p(S[U],1,1,()=>{S[U]=null}),ue(),o=S[n],o?o.p(i,H):(o=S[n]=g[n](i),o.c()),d(o,1),o.m(t,null)),(!m||H&16)&&Ge(a,i[4]);let W=u;u=v(i,H),u===W?T[u].p(i,H):(ae(),p(T[W],1,1,()=>{T[W]=null}),ue(),c=T[u],c?c.p(i,H):(c=T[u]=F[u](i),c.c()),d(c,1),c.m(e,null)),(!m||H&32)&&f(e,"aria-label",i[5]),(!m||H&2)&&f(e,"data-testid",i[1]),(!m||H&4)&&j(e,"mobile",i[2])},i(E){m||(d(o),d(c),m=!0)},o(E){p(o),p(c),m=!1},d(E){E&&y(e),S[n].d(),T[u].d(),i[11](null),h=!1,ft(C)}}}function J6(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:r=x6}=e,{getSubItemForFocus:s}=e,{label:a}=e,{ariaLabel:l}=e,{value:u}=e,{valueComponent:c=void 0}=e,{ref:m}=e,{icon:h}=e,C=S=>Yd(S,r,s);function g(S){ve[S?"unshift":"push"](()=>{m=S,t(0,m)})}return i.$$set=S=>{"id"in S&&t(1,n=S.id),"isMobile"in S&&t(2,o=S.isMobile),"onClick"in S&&t(3,r=S.onClick),"getSubItemForFocus"in S&&t(10,s=S.getSubItemForFocus),"label"in S&&t(4,a=S.label),"ariaLabel"in S&&t(5,l=S.ariaLabel),"value"in S&&t(6,u=S.value),"valueComponent"in S&&t(7,c=S.valueComponent),"ref"in S&&t(0,m=S.ref),"icon"in S&&t(8,h=S.icon)},[m,n,o,r,a,l,u,c,h,C,s,g]}var Xc=class extends N{constructor(e){super(),O(this,e,J6,X6,B,{id:1,isMobile:2,onClick:3,getSubItemForFocus:10,label:4,ariaLabel:5,value:6,valueComponent:7,ref:0,icon:8},j6)}},y0=Xc;function $6(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function e8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Jc=class extends N{constructor(e){super(),O(this,e,e8,$6,B,{})}},w0=Jc;function t8(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function i8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var $c=class extends N{constructor(e){super(),O(this,e,i8,t8,B,{})}},k0=$c;function n8(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=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("g"),n=M("path"),o=M("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"),we(e,u)},m(c,m){w(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),we(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&&y(e),a&&a.d(c)}}}function o8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ef=class extends N{constructor(e){super(),O(this,e,o8,n8,B,{})}},C0=ef;function r8(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function s8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var tf=class extends N{constructor(e){super(),O(this,e,s8,r8,B,{})}},S0=tf;function l8(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function a8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var nf=class extends N{constructor(e){super(),O(this,e,a8,l8,B,{})}},of=nf;function u8(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function c8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var rf=class extends N{constructor(e){super(),O(this,e,c8,u8,B,{})}},T0=rf;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:"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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function d8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var sf=class extends N{constructor(e){super(),O(this,e,d8,f8,B,{})}},I0=sf;import"@vkontakte/videoplayer-core";function m8(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 P0(i){let e,t,n;var o=i[3];function r(s,a){return{}}return o&&(t=Ft(o,r(i))),{c(){e=I("div"),t&&R(t.$$.fragment),f(e,"class","quality-icon svelte-1a7qwh6")},m(s,a){w(s,e,a),t&&L(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,()=>{V(l,1)}),ue()}o?(t=Ft(o,r(s,a)),R(t.$$.fragment),d(t.$$.fragment,1),L(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&&y(e),t&&V(t)}}}function p8(i){let e,t,n,o,r,s=i[3]&&!i[1]&&P0(i);return{c(){e=I("div"),t=I("span"),n=qe(i[0]),o=Y(),s&&s.c(),f(t,"class","svelte-1a7qwh6"),f(e,"class","menu-item-value svelte-1a7qwh6"),j(e,"sub",i[2])},m(a,l){w(a,e,l),_(e,t),_(t,n),_(e,o),s&&s.m(e,null),r=!0},p(a,[l]){(!r||l&1)&&Ge(n,a[0]),a[3]&&!a[1]?s?(s.p(a,l),l&10&&d(s,1)):(s=P0(a),s.c(),d(s,1),s.m(e,null)):s&&(ae(),p(s,1,1,()=>{s=null}),ue()),(!r||l&4)&&j(e,"sub",a[2])},i(a){r||(d(s),r=!0)},o(a){p(s),r=!1},d(a){a&&y(e),s&&s.d()}}}function _8(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=$s(o))},[r,s,a,n,o]}var lf=class extends N{constructor(e){super(),O(this,e,_8,p8,B,{quality:4,label:0,isMobile:1,isSubCase:2},m8)}},Dl=lf;import{VideoQuality as h8}from"@vkontakte/videoplayer-core";var Ol=(i,e,t)=>{if(!i)return"...";let n=e.find(r=>r.value===i),o=n?n.displayValue:i;return t?i===h8.INVARIANT?G("auto_quality_invariant"):G("auto_quality",{actual:o}):o};function g8(i){be(i,"svelte-vk2gx4",".menu-item-value-wrapper.svelte-vk2gx4{right:-22px;position:relative}")}function b8(i){let e,t,n;return t=new Dl({props:{quality:i[0],label:i[1],isMobile:i[2]}}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","menu-item-value-wrapper svelte-vk2gx4")},m(o,r){w(o,e,r),L(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&&y(e),V(t)}}}function v8(i,e,t){let n,o,r,s,a=ot(),l=a.state.currentQuality$;D(i,l,C=>t(0,r=C));let u=a.state.availableQualities$;D(i,u,C=>t(8,o=C));let c=a.state.isAutoQualityEnabled$;D(i,c,C=>t(7,n=C));let m=a.ui.isMobile;D(i,m,C=>t(2,s=C));let h;return i.$$.update=()=>{i.$$.dirty&385&&t(1,h=Ol(r,o,n))},[r,h,s,l,u,c,m,n,o]}var af=class extends N{constructor(e){super(),O(this,e,v8,b8,B,{},g8)}},E0=af;import{noop as A0}from"@vkontakte/videoplayer-shared";function y8(i){let e,t,n;var o=i[4];function r(s,a){return{}}return o&&(e=Ft(o,r(i))),{c(){e&&R(e.$$.fragment),t=Je()},m(s,a){e&&L(e,s,a),w(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,()=>{V(l,1)}),ue()}o?(e=Ft(o,r(s,a)),R(e.$$.fragment),d(e.$$.fragment,1),L(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&&y(t),e&&V(e,s)}}}function w8(i){let e;function t(r,s){return r[5]?C8:k8}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Je()},m(r,s){o.m(r,s),w(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&&y(e),o.d(r)}}}function k8(i){let e,t,n,o;return{c(){e=I("img"),f(e,"class","icon"),vo(e.src,t=i[4])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){w(r,e,s),n||(o=ke(e,"error",i[6]),n=!0)},p(r,s){s&16&&!vo(e.src,t=r[4])&&f(e,"src",t)},d(r){r&&y(e),n=!1,o()}}}function C8(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner"></div>',f(e,"class","icon icon-error-stub")},m(t,n){w(t,e,n)},p:me,d(t){t&&y(e)}}}function S8(i){let e,t,n,o,r,s,a,l,u,c,m,h=[w8,y8],C=[];function g(S,k){return typeof S[4]=="string"?0:1}return n=g(i,-1),o=C[n]=h[n](i),{c(){var S;e=I("li"),t=I("div"),o.c(),r=Y(),s=I("div"),a=qe(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=(S=i[3])!=null?S:i[2]),f(e,"data-testid",i[0]),j(e,"mobile",i[1])},m(S,k){w(S,e,k),_(e,t),C[n].m(t,null),_(e,r),_(e,s),_(s,a),u=!0,c||(m=[ke(e,"click",vt(i[7])),ke(e,"keydown",i[8])],c=!0)},p(S,[k]){var T;let F=n;n=g(S,k),n===F?C[n].p(S,k):(ae(),p(C[F],1,1,()=>{C[F]=null}),ue(),o=C[n],o?o.p(S,k):(o=C[n]=h[n](S),o.c()),d(o,1),o.m(t,null)),(!u||k&4)&&Ge(a,S[2]),(!u||k&12&&l!==(l=(T=S[3])!=null?T:S[2]))&&f(e,"aria-label",l),(!u||k&1)&&f(e,"data-testid",S[0]),(!u||k&2)&&j(e,"mobile",S[1])},i(S){u||(d(o),u=!0)},o(S){p(o),u=!1},d(S){S&&y(e),C[n].d(),c=!1,ft(m)}}}function T8(i,e,t){let n,{id:o}=e,{isMobile:r=!1}=e,{onClick:s=A0}=e,{closeSettings:a=A0}=e,{label:l}=e,{ariaLabel:u}=e,{icon:c}=e,m=()=>{t(5,n=!0)},h=()=>{s(),a()},C=g=>{Mr(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,C,s,a]}var uf=class extends N{constructor(e){super(),O(this,e,T8,S8,B,{id:0,isMobile:1,onClick:9,closeSettings:10,label:2,ariaLabel:3,icon:4})}},M0=uf;import{noop as A8}from"@vkontakte/videoplayer-shared";function I8(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 P8(i){let e,t,n,o;return{c(){e=I("div"),t=I("div"),n=Y(),o=I("div"),f(t,"class","toggle svelte-17wbjko"),j(t,"on",i[0]),f(o,"class","toggle-label svelte-17wbjko"),f(e,"class","toggle_wrap svelte-17wbjko")},m(r,s){w(r,e,s),_(e,t),_(e,n),_(e,o)},p(r,[s]){s&1&&j(t,"on",r[0])},i:me,o:me,d(r){r&&y(e)}}}function E8(i,e,t){let{enabled:n=!1}=e;return i.$$set=o=>{"enabled"in o&&t(0,n=o.enabled)},[n]}var cf=class extends N{constructor(e){super(),O(this,e,E8,P8,B,{enabled:0},I8)}},L0=cf;function M8(i){let e,t,n;var o=i[4];function r(s,a){return{}}return o&&(e=Ft(o,r(i))),{c(){e&&R(e.$$.fragment),t=Je()},m(s,a){e&&L(e,s,a),w(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,()=>{V(l,1)}),ue()}o?(e=Ft(o,r(s,a)),R(e.$$.fragment),d(e.$$.fragment,1),L(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&&y(t),e&&V(e,s)}}}function L8(i){let e,t;return e=new qr({props:{icon:i[4]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function V8(i){let e,t,n,o,r,s,a,l,u,c,m=[L8,M8],h=[];function C(g,S){return typeof g[4]=="string"?0:1}return n=C(i,-1),o=h[n]=m[n](i),u=new L0({props:{enabled:i[5]}}),{c(){e=I("div"),t=I("div"),o.c(),r=Y(),s=I("div"),a=qe(i[2]),l=Y(),R(u.$$.fragment),f(t,"class","icon-wrapper"),f(s,"class","label"),f(e,"class","switch-wrapper"),j(e,"mobile",i[1])},m(g,S){w(g,e,S),_(e,t),h[n].m(t,null),_(e,r),_(e,s),_(s,a),_(e,l),L(u,e,null),c=!0},p(g,S){let k=n;n=C(g,S),n===k?h[n].p(g,S):(ae(),p(h[k],1,1,()=>{h[k]=null}),ue(),o=h[n],o?o.p(g,S):(o=h[n]=m[n](g),o.c()),d(o,1),o.m(t,null)),(!c||S&4)&&Ge(a,g[2]);let F={};S&32&&(F.enabled=g[5]),u.$set(F),(!c||S&2)&&j(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&&y(e),h[n].d(),V(u)}}}function R8(i){let e,t,n,o,r,s;return t=new Br({props:{content:i[6],isMobile:i[1],placement:"left",translateX:10,isFullWidthWrapper:!0,maxTooltipWidth:i[7],$$slots:{default:[V8]},$$scope:{ctx:i}}}),{c(){var a;e=I("li"),R(t.$$.fragment),f(e,"class","item switch-item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",n=(a=i[3])!=null?a:i[2]),f(e,"data-testid",i[0]),j(e,"mobile",i[1])},m(a,l){w(a,e,l),L(t,e,null),o=!0,r||(s=[ke(e,"click",vt(i[9])),ke(e,"keydown",i[8])],r=!0)},p(a,[l]){var c;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=(c=a[3])!=null?c:a[2]))&&f(e,"aria-label",n),(!o||l&1)&&f(e,"data-testid",a[0]),(!o||l&2)&&j(e,"mobile",a[1])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&y(e),V(t),r=!1,ft(s)}}}function B8(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:r=A8}=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=>{Zd(g,u,S=>r(S))},C=()=>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,C,r]}var ff=class extends N{constructor(e){super(),O(this,e,B8,R8,B,{id:0,isMobile:1,onClick:10,label:2,ariaLabel:3,icon:4,enabled:5,tooltipText:6,maxTooltipWidth:7})}},V0=ff;import{isValidURL as N8}from"@vkontakte/videoplayer-shared";function D8(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 B0(i,e,t){let n=i.slice();return n[89]=e[t],n[90]=e,n[91]=t,n}function N0(i,e,t){let n=i.slice();return n[89]=e[t],n[92]=e,n[93]=t,n}function D0(i){let e,t,n,o,r,s,a,l=i[5]&&O0(i),u=wt(i[4]),c=[];for(let h=0;h<u.length;h+=1)c[h]=F0(N0(i,u,h));let m=h=>p(c[h],1,1,()=>{c[h]=null});return{c(){e=I("div"),l&&l.c(),t=Y(),n=I("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[34]()),j(n,"mobile",i[5]),f(e,"class","settings-menu menu svelte-1t2c6ej"),f(e,"data-testid","settings-menu"),j(e,"desktop",!i[5]),j(e,"mobile",i[5]),j(e,"hidden",!i[7])},m(h,C){w(h,e,C),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[68](n),r=!0,s||(a=[ke(e,"keydown",i[36]),ke(e,"mouseenter",i[32]),ke(e,"mouseleave",i[33])],s=!0)},p(h,C){if(h[5]?l?l.p(h,C):(l=O0(h),l.c(),l.m(e,t)):l&&(l.d(1),l=null),C[0]&1610612788){u=wt(h[4]);let g;for(g=0;g<u.length;g+=1){let S=N0(h,u,g);c[g]?(c[g].p(S,C),d(c[g],1)):(c[g]=F0(S),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||C[0]&32)&&j(n,"mobile",h[5]),(!r||C[0]&32)&&j(e,"desktop",!h[5]),(!r||C[0]&32)&&j(e,"mobile",h[5]),(!r||C[0]&128)&&j(e,"hidden",!h[7])},i(h){if(!r){for(let C=0;C<u.length;C+=1)d(c[C]);r=!0}},o(h){c=c.filter(Boolean);for(let C=0;C<c.length;C+=1)p(c[C]);r=!1},d(h){h&&y(e),l&&l.d(),li(c,h),i[68](null),s=!1,ft(a)}}}function O0(i){let e,t,n,o,r,s;return{c(){e=I("div"),t=I("div"),t.textContent=`${G("submenu_settings")}`,n=Y(),o=I("div"),f(o,"class","close svelte-1t2c6ej"),f(e,"class","item header svelte-1t2c6ej"),j(e,"mobile",i[5])},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),r||(s=ke(o,"click",vt(i[30])),r=!0)},p(a,l){l[0]&32&&j(e,"mobile",a[5])},d(a){a&&y(e),r=!1,s()}}}function O8(i){let e,t;return e=new V0({props:{isMobile:i[5],id:i[89].id,onClick:i[89].onClick,icon:i[89].icon,label:i[89].label,ariaLabel:i[89].ariaLabel,enabled:i[89].enabled,tooltipText:i[89].tooltipText,maxTooltipWidth:i[89].maxTooltipWidth}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&32&&(r.isMobile=n[5]),o[0]&16&&(r.id=n[89].id),o[0]&16&&(r.onClick=n[89].onClick),o[0]&16&&(r.icon=n[89].icon),o[0]&16&&(r.label=n[89].label),o[0]&16&&(r.ariaLabel=n[89].ariaLabel),o[0]&16&&(r.enabled=n[89].enabled),o[0]&16&&(r.tooltipText=n[89].tooltipText),o[0]&16&&(r.maxTooltipWidth=n[89].maxTooltipWidth),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function F8(i){let e,t;return e=new M0({props:{isMobile:i[5],id:i[89].id,onClick:i[89].onClick,icon:i[89].icon,label:i[89].label,ariaLabel:i[89].ariaLabel,closeSettings:i[30]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&32&&(r.isMobile=n[5]),o[0]&16&&(r.id=n[89].id),o[0]&16&&(r.onClick=n[89].onClick),o[0]&16&&(r.icon=n[89].icon),o[0]&16&&(r.label=n[89].label),o[0]&16&&(r.ariaLabel=n[89].ariaLabel),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function H8(i){let e,t,n;function o(){return i[66](i[89])}function r(a){i[67](a,i[89])}let s={isMobile:i[5],id:i[89].id,icon:i[89].icon,label:i[89].label,ariaLabel:i[89].ariaLabel,value:i[89].value,valueComponent:i[89].valueComponent,onClick:o,getSubItemForFocus:i[89].getSubItemForFocus};return i[2][i[89].id]!==void 0&&(s.ref=i[2][i[89].id]),e=new y0({props:s}),ve.push(()=>ze(e,"ref",r)),{c(){R(e.$$.fragment)},m(a,l){L(e,a,l),n=!0},p(a,l){i=a;let u={};l[0]&32&&(u.isMobile=i[5]),l[0]&16&&(u.id=i[89].id),l[0]&16&&(u.icon=i[89].icon),l[0]&16&&(u.label=i[89].label),l[0]&16&&(u.ariaLabel=i[89].ariaLabel),l[0]&16&&(u.value=i[89].value),l[0]&16&&(u.valueComponent=i[89].valueComponent),l[0]&16&&(u.onClick=o),l[0]&16&&(u.getSubItemForFocus=i[89].getSubItemForFocus),!t&&l[0]&20&&(t=!0,u.ref=i[2][i[89].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){V(e,a)}}}function F0(i){let e,t,n,o,r=[H8,F8,O8],s=[];function a(l,u){return l[89].type==="OPEN_SUB_MENU"?0:l[89].type==="CLICK"?1:l[89].type==="SWITCH"?2:-1}return~(e=a(i,[-1,-1,-1,-1]))&&(t=s[e]=r[e](i)),{c(){t&&t.c(),n=Je()},m(l,u){~e&&s[e].m(l,u),w(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&&y(n),~e&&s[e].d(l)}}}function H0(i){var s,a;let e,t,n;function o(l){i[69](l,i[89])}let r={isMobile:i[5],playerControlsHeight:i[1],returnFromSubMenu:(s=i[89].subMenu.returnFromSubMenu)!=null?s:i[31],id:i[89].id,title:i[89].subMenu.title,closeSettingsMenu:i[89].subMenu.closeSettingsMenu,backToMainSettings:i[89].subMenu.backToMainSettings,itemIdReturnCase:i[89].subMenu.itemIdReturnCase,items:i[89].subMenu.items,selectItem:i[89].subMenu.selectItem,minWidth:(a=i[89].subMenu.minWidth)!=null?a:137};return i[3][i[89].id]!==void 0&&(r.listRef=i[3][i[89].id]),e=new v0({props:r}),ve.push(()=>ze(e,"listRef",o)),{c(){R(e.$$.fragment)},m(l,u){L(e,l,u),n=!0},p(l,u){var m,h;i=l;let c={};u[0]&32&&(c.isMobile=i[5]),u[0]&2&&(c.playerControlsHeight=i[1]),u[0]&16&&(c.returnFromSubMenu=(m=i[89].subMenu.returnFromSubMenu)!=null?m:i[31]),u[0]&16&&(c.id=i[89].id),u[0]&16&&(c.title=i[89].subMenu.title),u[0]&16&&(c.closeSettingsMenu=i[89].subMenu.closeSettingsMenu),u[0]&16&&(c.backToMainSettings=i[89].subMenu.backToMainSettings),u[0]&16&&(c.itemIdReturnCase=i[89].subMenu.itemIdReturnCase),u[0]&16&&(c.items=i[89].subMenu.items),u[0]&16&&(c.selectItem=i[89].subMenu.selectItem),u[0]&16&&(c.minWidth=(h=i[89].subMenu.minWidth)!=null?h:137),!t&&u[0]&24&&(t=!0,c.listRef=i[3][i[89].id],Ue(()=>t=!1)),e.$set(c)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){V(e,l)}}}function q0(i){var o;let e,t,n=i[89].type==="OPEN_SUB_MENU"&&((o=i[89].subMenu)==null?void 0:o.show)&&H0(i);return{c(){n&&n.c(),e=Je()},m(r,s){n&&n.m(r,s),w(r,e,s),t=!0},p(r,s){var a;r[89].type==="OPEN_SUB_MENU"&&((a=r[89].subMenu)!=null&&a.show)?n?(n.p(r,s),s[0]&16&&d(n,1)):(n=H0(r),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),p(n,1,1,()=>{n=null}),ue())},i(r){t||(d(n),t=!0)},o(r){p(n),t=!1},d(r){r&&y(e),n&&n.d(r)}}}function q8(i){let e,t,n,o=i[6]&&D0(i),r=wt(i[4]),s=[];for(let l=0;l<r.length;l+=1)s[l]=q0(B0(i,r,l));let a=l=>p(s[l],1,1,()=>{s[l]=null});return{c(){e=I("div"),o&&o.c(),t=Y();for(let l=0;l<s.length;l+=1)s[l].c();f(e,"class","settings-menu-container svelte-1t2c6ej"),j(e,"hidden",!i[6]),j(e,"mobile",i[5])},m(l,u){w(l,e,u),o&&o.m(e,null),_(e,t);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(e,null);n=!0},p(l,u){if(l[6]?o?(o.p(l,u),u[0]&64&&d(o,1)):(o=D0(l),o.c(),d(o,1),o.m(e,t)):o&&(ae(),p(o,1,1,()=>{o=null}),ue()),u[0]&58|u[1]&1){r=wt(l[4]);let c;for(c=0;c<r.length;c+=1){let m=B0(l,r,c);s[c]?(s[c].p(m,u),d(s[c],1)):(s[c]=q0(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()}(!n||u[0]&64)&&j(e,"hidden",!l[6]),(!n||u[0]&32)&&j(e,"mobile",l[5])},i(l){if(!n){d(o);for(let u=0;u<r.length;u+=1)d(s[u]);n=!0}},o(l){p(o),s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)p(s[u]);n=!1},d(l){l&&y(e),o&&o.d(),li(s,l)}}}function U8(i,e,t){let n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,de,q,{ref:X=void 0}=e,{supportLink:oe}=e,{playerControlsHeight:K=0}=e,{returnFocus:ce}=e,z=ot(),x=Dt(),P=z.state.audioStream$;D(i,P,De=>t(57,k=De));let J=z.state.availableAudioStreams$;D(i,J,De=>t(56,S=De));let le=z.state.currentQuality$;D(i,le,De=>t(60,v=De));let Ae=z.state.availableQualities$;D(i,Ae,De=>t(58,F=De));let ee=z.state.autoQualityLimitingAvailable$;D(i,ee,De=>t(64,W=De));let ge=z.state.isAutoQualityEnabled$;D(i,ge,De=>t(61,E=De));let Pe=z.state.currentPlaybackRate$;D(i,Pe,De=>t(55,g=De));let Te=z.state.availablePlaybackRates$;D(i,Te,De=>t(54,C=De));let Ie=z.state.currentSubtitle$;D(i,Ie,De=>t(53,h=De));let rt=z.state.availableSubtitlesList$;D(i,rt,De=>t(51,c=De));let Ee=z.state.canDownload,We=z.state.hasMpegSources$;D(i,We,De=>t(65,ne=De));let $=z.ui.settingsMenuVisible;D(i,$,De=>t(6,q=De));let _e=z.ui.settingsMenuOpenedByKeyboard;D(i,_e,De=>t(71,r=De));let Ce=z.ui.isMobile;D(i,Ce,De=>t(5,s=De));let xe=z.ui.mobileNotReportControlHidden$;D(i,xe,De=>t(62,H=De));let st=z.state.canChangePlaybackSpeed$;D(i,st,De=>t(63,U=De));let at=z.state.trafficSavingEnabled$;D(i,at,De=>t(50,u=De));let nt=z.ui.playerSize;D(i,nt,De=>t(72,de=De));let $e=z.ui.debugPanelVisible;D(i,$e,De=>t(49,l=De));let fe=z.state.isInteractiveTime$,Se=z.ui.additionalSettingsMenuItems$;D(i,Se,De=>t(48,a=De));let et=z.actions.internal.downloadVideo,Ne=z.actions.internal.closeSettingsMenu,tt=!0,Fe=Oe({});D(i,Fe,De=>t(52,m=De));let ct=!1;function dt(De){t(7,tt=!1);let it=m;it[De]=!0,Fe.set(it)}function he(){r||ce==null||ce(),Vt(),Ne(),ct=!1}function _t(De){z.actions.internal.setQuality(De),he()}function kt(De){z.actions.internal.setAudioStream(De),he()}function Ct(De){z.actions.internal.setTrafficSavingEnabled(De)}function Ze(De){z.actions.internal.setPlaybackRate(De),he()}function Et(De){z.actions.internal.setSubtitle(De),he()}function Vt(){t(7,tt=!0);let De=m;Object.keys(De).forEach(it=>{De[it]=!1}),Fe.set(De)}function ri(){et()}function Ut(){N8(oe)&&window.open(oe,"_blank"),z.actions.internal.reportProblem(),z.actions.internal.pause()}function zt(){Pr(z.actions.internal.getDebugTextData())}let Qt=()=>{let De=z.actions.internal.getTraceTextData(),it=new Blob([...De],{type:"application/json"}),St=window.URL.createObjectURL(it);rr(St,"vk_player_trace_info","json")};function Wt(){$e.set(!l)}function Ke(){ct=!0}function Xe(){ct=!1}function It(){return s?`max-height: ${Math.round(de.height*.6)}px`:`max-height: ${de.height-32-K}px; overflow: auto;`}let pe,Zt,At,ii,Ot,xt,si,Mt=Oe();D(i,Mt,De=>t(59,T=De));let ni={},Xt={},dn=De=>{zs(De,Ne)},Bt=[];Nt(()=>{let De=fe.subscribe(it=>{it&&!s&&!ct&&!r&&he()});return()=>{De()}});let qi=De=>dt(De.id);function en(De,it){i.$$.not_equal(ni[it.id],De)&&(ni[it.id]=De,t(2,ni))}function gi(De){ve[De?"unshift":"push"](()=>{X=De,t(0,X)})}function wi(De,it){i.$$.not_equal(Xt[it.id],De)&&(Xt[it.id]=De,t(3,Xt))}return i.$$set=De=>{"ref"in De&&t(0,X=De.ref),"supportLink"in De&&t(37,oe=De.supportLink),"playerControlsHeight"in De&&t(1,K=De.playerControlsHeight),"returnFocus"in De&&t(38,ce=De.returnFocus)},i.$$.update=()=>{var De;if(i.$$.dirty[0]&64&&q&&Vt(),i.$$.dirty[1]&1744830464&&t(46,n=Ol(v,F,E)),i.$$.dirty[2]&9&&t(39,pe=Ee&&ne&&!H),i.$$.dirty[2]&5&&t(40,Zt=x.features.trafficSaving&&!H&&W),i.$$.dirty[1]&1048576|i.$$.dirty[2]&1&&t(41,At=c.length>0&&!H),i.$$.dirty[2]&3&&t(42,ii=!!U&&!H),i.$$.dirty[1]&33554432|i.$$.dirty[2]&1&&t(43,Ot=x.features.audioLanguages&&S.length>=2&&!H),i.$$.dirty[2]&1&&t(47,o=!H),i.$$.dirty[1]&1610612736&&t(44,xt=E?G("auto_quality_option"):v),i.$$.dirty[1]&25165824&&t(45,si=(De=C.find(it=>it.value===g))==null?void 0:De.displayValue),i.$$.dirty[0]&4|i.$$.dirty[1]&268435456){let it=T;it&&(Gd(ni[it]),Mt.set(void 0))}i.$$.dirty[0]&56|i.$$.dirty[1]&268435200&&(t(4,Bt=[]),o&&Bt.push({id:"quality-settings",weight:no["quality-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let it=F.findIndex(St=>St.selected);return Xt["quality-settings"].children[it+1]},ariaLabel:G("aria_label_menu_quality",{actual:xt}),icon:el,label:G("menu_quality"),value:n,valueComponent:E0,subMenu:{show:m["quality-settings"],title:G("submenu_quality"),closeSettingsMenu:Ne,backToMainSettings:Vt,itemIdReturnCase:Mt,selectItem:_t,items:F.map(it=>({value:it.value,valueComponent:Dl,valueComponentParams:{quality:it.value,label:it.displayValue,isMobile:s,isSubCase:!0},selected:it.selected,label:it.displayValue}))}}),Ot&&Bt.push({id:"audio-language-settings",weight:no["audio-language-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let it=S.findIndex(St=>St.id===(k==null?void 0:k.id));return Xt["audio-language-settings"].children[it+1]},ariaLabel:G("aria_label_menu_audio_languages",{actual:Nl(k,S)}),icon:S0,label:G("menu_audio_languages"),value:Nl(k,S),subMenu:{show:m["audio-language-settings"],title:G("submenu_audio_languages"),closeSettingsMenu:Ne,backToMainSettings:Vt,itemIdReturnCase:Mt,selectItem:kt,items:S.map(it=>({value:it,dataValue:it.id,selected:it.id===(k==null?void 0:k.id),label:Nl(it,S)}))}}),ii&&Bt.push({id:"playback-rate-settings",weight:no["playback-rate-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let it=C.findIndex(St=>St.selected);return Xt["playback-rate-settings"].children[it+1]},ariaLabel:G("aria_label_menu_rate",{actual:si}),icon:C0,label:G("menu_playback_rate"),value:`${g}x`,subMenu:{show:m["playback-rate-settings"],title:G("submenu_playback_rate"),closeSettingsMenu:Ne,backToMainSettings:Vt,itemIdReturnCase:Mt,selectItem:Ze,items:C.map(it=>({value:it.value,selected:it.selected,label:it.displayValue}))}}),At&&Bt.push({id:"subtitles-settings",weight:no["subtitles-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let it=c.findIndex(St=>St.selected);return Xt["subtitles-settings"].children[it+1]},ariaLabel:G("aria_label_menu_subtitle",{actual:h.displayValue}),icon:tl,label:G("subtitles_caption"),value:h.displayValue,subMenu:{show:m["subtitles-settings"],minWidth:164,title:G("subtitles_caption"),closeSettingsMenu:Ne,backToMainSettings:Vt,itemIdReturnCase:Mt,selectItem:Et,items:c.map(it=>({value:it,selected:it.selected,label:it.displayValue}))}}),Zt&&Bt.push({id:"traffic-saving-settings",weight:no["traffic-saving-settings"],type:"SWITCH",onClick:Ct,ariaLabel:u?G("aria_label_submenu_traffic_saving_off"):`${G("aria_label_submenu_traffic_saving_on")}. ${G("traffic_saving_helper_text")}`,icon:k0,label:G("menu_traffic_saving"),enabled:u,tooltipText:G("traffic_saving_helper_text"),maxTooltipWidth:175}),pe&&Bt.push({id:"download",weight:no.download,type:"CLICK",onClick:ri,label:G("download_video_caption"),ariaLabel:G("aria_label_menu_download"),icon:w0}),x.showSupport&&Bt.push({id:"report",weight:no.report,type:"CLICK",onClick:Ut,label:G("menu_report"),ariaLabel:`${G("menu_report")}. ${G("aria_label_new_tab_alert")}`,icon:I0,isHiddenFor:["desktop"]}),Bt.push({id:"copy-data",weight:no["copy-data"],type:"CLICK",onClick:zt,label:G("menu_copy_debug"),ariaLabel:G("menu_copy_debug"),icon:of,isHiddenFor:["desktop"]}),x.features.saveTraceInfoToFile&&Bt.push({id:"save-trace-info",weight:no["save-trace-info"],type:"CLICK",onClick:Qt,label:G("menu_save_debug"),ariaLabel:G("menu_save_debug"),icon:of,isHiddenFor:["desktop"]}),Bt.push({id:"debug-info",weight:no["debug-info"],type:"CLICK",onClick:Wt,label:l?G("aria_label_menu_debug_overlay_disable"):G("aria_label_menu_debug_overlay_enable"),ariaLabel:G("menu_debug_overlay"),icon:T0,isHiddenFor:["desktop"]}),t(4,Bt=[...Bt,...a.map(it=>yt(Qe({},it),{isAdditional:!0}))].filter(it=>{var St,bi,ki;return!((St=it.isHiddenFor)!=null&&St.length)||!((bi=it.isHiddenFor)!=null&&bi.includes("desktop"))&&!s||!((ki=it.isHiddenFor)!=null&&ki.includes("mobile"))&&s}).sort(cr)))},[X,K,ni,Xt,Bt,s,q,tt,P,J,le,Ae,ee,ge,Pe,Te,Ie,rt,We,$,_e,Ce,xe,st,at,nt,$e,Se,Fe,dt,he,Vt,Ke,Xe,It,Mt,dn,oe,ce,pe,Zt,At,ii,Ot,xt,si,n,o,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,qi,en,gi,wi]}var df=class extends N{constructor(e){super(),O(this,e,U8,q8,B,{ref:0,supportLink:37,playerControlsHeight:1,returnFocus:38},D8,[-1,-1,-1,-1])}},Fl=df;var{window:z8}=er;function K8(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 z0(i){var n;let e,t;return e=new Rl({props:{thumbUrl:i[3],startTime:(n=i[4])==null?void 0:n.startTime}}),{c(){R(e.$$.fragment)},m(o,r){L(e,o,r),t=!0},p(o,r){var a;let s={};r[0]&8&&(s.thumbUrl=o[3]),r[0]&16&&(s.startTime=(a=o[4])==null?void 0:a.startTime),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){V(e,o)}}}function W0(i){let e,t;return e=new Ur({props:{kind:"recover",thumbUrl:i[3]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function K0(i){let e,t;return e=new Ur({props:{kind:"record",thumbUrl:i[3]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function x0(i){let e,t,n;return t=new Hs({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","ads-container svelte-13f9p53"),j(e,"hidden",i[38]!=="ads")},m(o,r){w(o,e,r),L(t,e,null),n=!0},p(o,r){let s={};r[0]&256&&(s.adsSlotId=o[8]),r[0]&512&&(s.adsParams=o[9]),r[0]&1024&&(s.adsPreviewParam=o[10]),r[0]&2048&&(s.duration=o[11]),t.$set(s),(!n||r[1]&128)&&j(e,"hidden",o[38]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),V(t)}}}function j0(i){let e,t;return e=new S1({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){R(e.$$.fragment)},m(n,o){L(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]&8388608&&(r.playNextVideo=n[23]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function G0(i){let e,t;return e=new l0({props:{title:i[2],isHidden:!i[36]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.title=n[2]),o[1]&32&&(r.isHidden=!n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Y0(i){let e,t;return e=new El({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&160&&(r.isShifted=n[38]==="video"&&n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Q0(i){let e,t,n;return t=new As({props:{"aria-label":G("video360")}}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","spherical-video-icon svelte-13f9p53")},m(o,r){w(o,e,r),L(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&&y(e),V(t)}}}function Z0(i){let e,t;return e=new Ml({props:{thumbUrl:i[3],chromecastDeviceName:i[55]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),o[1]&16777216&&(r.chromecastDeviceName=n[55]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function X0(i){let e,t;return e=new Al({props:{shifted:i[36],captions:i[57],position:i[58],playerSize:i[34]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&32&&(r.shifted=n[36]),o[1]&67108864&&(r.captions=n[57]),o[1]&134217728&&(r.position=n[58]),o[1]&8&&(r.playerSize=n[34]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function J0(i){let e,t,n,o,r;return t=new Ll({}),{c(){e=I("div"),R(t.$$.fragment)},m(s,a){w(s,e,a),L(t,e,null),n=!0,o||(r=[ke(e,"contextmenu",ai(i[110])),ke(e,"click",vt(i[121]))],o=!0)},p:me,i(s){n||(d(t.$$.fragment,s),n=!0)},o(s){p(t.$$.fragment,s),n=!1},d(s){s&&y(e),V(t),o=!1,ft(r)}}}function $0(i){let e,t,n,o;function r(l){i[161](l)}function s(l){i[162](l)}let a={bottomHidden:i[38]==="thumb"||i[38]==="LiveWaitingStart"||i[38]==="LiveWaitingRecover"||i[38]==="LiveWaitingRecord",bottomNoSmooth:i[51],showControls:i[36],isAds:i[38]==="ads",canRewindLive:i[6]&&i[59]!==0,logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[14],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],customFullscreenSupported:r_,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[108],seekToInteractive:i[26],playPrevChapter:i[27]};return i[41]!==void 0&&(a.playerControlsWrapperRef=i[41]),i[42]!==void 0&&(a.playerControlsRef=i[42]),e=new Pl({props:a}),ve.push(()=>ze(e,"playerControlsWrapperRef",r)),ve.push(()=>ze(e,"playerControlsRef",s)),{c(){R(e.$$.fragment)},m(l,u){L(e,l,u),o=!0},p(l,u){let c={};u[1]&128&&(c.bottomHidden=l[38]==="thumb"||l[38]==="LiveWaitingStart"||l[38]==="LiveWaitingRecover"||l[38]==="LiveWaitingRecord"),u[1]&1048576&&(c.bottomNoSmooth=l[51]),u[1]&32&&(c.showControls=l[36]),u[1]&128&&(c.isAds=l[38]==="ads"),u[0]&64|u[1]&268435456&&(c.canRewindLive=l[6]&&l[59]!==0),u[0]&4096&&(c.logoClickable=l[12]),u[0]&8192&&(c.logoHidden=l[13]),u[0]&16384&&(c.logoTargetUrl=l[14]),u[0]&32768&&(c.showNextPrevButtons=l[15]),u[0]&65536&&(c.nextButtonActive=l[16]),u[0]&131072&&(c.prevButtonActive=l[17]),u[0]&1048576&&(c.isOneVideoPlaylist=l[20]),u[0]&8388608&&(c.playNextVideo=l[23]),u[0]&16777216&&(c.playPrevVideo=l[24]),u[0]&33554432&&(c.repeatPlaylist=l[25]),u[0]&67108864&&(c.seekToInteractive=l[26]),u[0]&134217728&&(c.playPrevChapter=l[27]),!t&&u[1]&1024&&(t=!0,c.playerControlsWrapperRef=l[41],Ue(()=>t=!1)),!n&&u[1]&2048&&(n=!0,c.playerControlsRef=l[42],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){V(e,l)}}}function e_(i){var a;let e,t,n,o;function r(l){i[164](l)}let s={supportLink:i[21],playerControlsHeight:(a=i[42])==null?void 0:a.clientHeight,returnFocus:i[163]};return i[29]!==void 0&&(s.ref=i[29]),t=new Fl({props:s}),ve.push(()=>ze(t,"ref",r)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","settings-menu svelte-13f9p53")},m(l,u){w(l,e,u),L(t,e,null),o=!0},p(l,u){var m;let c={};u[0]&2097152&&(c.supportLink=l[21]),u[1]&2048&&(c.playerControlsHeight=(m=l[42])==null?void 0:m.clientHeight),u[1]&262144&&(c.returnFocus=l[163]),!n&&u[0]&536870912&&(n=!0,c.ref=l[29],Ue(()=>n=!1)),t.$set(c)},i(l){o||(d(t.$$.fragment,l),o=!0)},o(l){p(t.$$.fragment,l),o=!1},d(l){l&&y(e),V(t)}}}function t_(i){let e,t;return e=new Vr({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function i_(i){let e,t;return e=new B1({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function n_(i){let e,t;return e=new Gs({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function o_(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,de,q;e=new Vl({props:{hidden:i[38]!=="thumb"||i[37]||i[94]&&i[5],thumbUrl:i[3],startVideo:i[28]}});let X=i[38]==="LiveWaitingStart"&&z0(i),oe=i[38]==="LiveWaitingRecover"&&W0(i),K=i[38]==="LiveWaitingRecord"&&K0(i),ce=i[7]&&i[22]&&x0(i),z=i[31]&&i[18]&&i[19]&&j0(i),x=i[45]&&G0(i),P=i[50]&&Y0(i),J=i[54]&&Q0(i),le=i[39]&&Z0(i),Ae=i[56].value!=="off"&&X0(i),ee=i[37]&&J0(i),ge=i[22]&&$0(i),Pe=!i[39]&&i[38]!=="ads"&&e_(i);k=new Us({props:{isLive:i[60],isHidden:!i[44],isPlaying:i[52],position:i[58],duration:i[61]}}),T=new Zp({props:{data:i[105]}});function Te($){i[166]($)}let Ie={supportLink:i[21],returnFocus:i[165],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[62]};i[32]!==void 0&&(Ie.menuElementRef=i[32]),E=new o1({props:Ie}),ve.push(()=>ze(E,"menuElementRef",Te));let rt=i[43]&&t_(i),Ee=i[63]&&i_(i),We=i[64]&&n_(i);return{c(){R(e.$$.fragment),t=Y(),X&&X.c(),n=Y(),oe&&oe.c(),o=Y(),K&&K.c(),r=Y(),ce&&ce.c(),s=Y(),z&&z.c(),a=Y(),x&&x.c(),l=Y(),P&&P.c(),u=Y(),J&&J.c(),c=Y(),le&&le.c(),m=Y(),Ae&&Ae.c(),h=Y(),ee&&ee.c(),C=Y(),ge&&ge.c(),g=Y(),Pe&&Pe.c(),S=Y(),R(k.$$.fragment),F=Y(),R(T.$$.fragment),v=Y(),R(E.$$.fragment),U=Y(),rt&&rt.c(),W=Y(),Ee&&Ee.c(),ne=Y(),We&&We.c(),de=Je()},m($,_e){L(e,$,_e),w($,t,_e),X&&X.m($,_e),w($,n,_e),oe&&oe.m($,_e),w($,o,_e),K&&K.m($,_e),w($,r,_e),ce&&ce.m($,_e),w($,s,_e),z&&z.m($,_e),w($,a,_e),x&&x.m($,_e),w($,l,_e),P&&P.m($,_e),w($,u,_e),J&&J.m($,_e),w($,c,_e),le&&le.m($,_e),w($,m,_e),Ae&&Ae.m($,_e),w($,h,_e),ee&&ee.m($,_e),w($,C,_e),ge&&ge.m($,_e),w($,g,_e),Pe&&Pe.m($,_e),w($,S,_e),L(k,$,_e),w($,F,_e),L(T,$,_e),w($,v,_e),L(E,$,_e),w($,U,_e),rt&&rt.m($,_e),w($,W,_e),Ee&&Ee.m($,_e),w($,ne,_e),We&&We.m($,_e),w($,de,_e),q=!0},p($,_e){let Ce={};_e[0]&32|_e[1]&192&&(Ce.hidden=$[38]!=="thumb"||$[37]||$[94]&&$[5]),_e[0]&8&&(Ce.thumbUrl=$[3]),_e[0]&268435456&&(Ce.startVideo=$[28]),e.$set(Ce),$[38]==="LiveWaitingStart"?X?(X.p($,_e),_e[1]&128&&d(X,1)):(X=z0($),X.c(),d(X,1),X.m(n.parentNode,n)):X&&(ae(),p(X,1,1,()=>{X=null}),ue()),$[38]==="LiveWaitingRecover"?oe?(oe.p($,_e),_e[1]&128&&d(oe,1)):(oe=W0($),oe.c(),d(oe,1),oe.m(o.parentNode,o)):oe&&(ae(),p(oe,1,1,()=>{oe=null}),ue()),$[38]==="LiveWaitingRecord"?K?(K.p($,_e),_e[1]&128&&d(K,1)):(K=K0($),K.c(),d(K,1),K.m(r.parentNode,r)):K&&(ae(),p(K,1,1,()=>{K=null}),ue()),$[7]&&$[22]?ce?(ce.p($,_e),_e[0]&4194432&&d(ce,1)):(ce=x0($),ce.c(),d(ce,1),ce.m(s.parentNode,s)):ce&&(ae(),p(ce,1,1,()=>{ce=null}),ue()),$[31]&&$[18]&&$[19]?z?(z.p($,_e),_e[0]&786432|_e[1]&1&&d(z,1)):(z=j0($),z.c(),d(z,1),z.m(a.parentNode,a)):z&&(ae(),p(z,1,1,()=>{z=null}),ue()),$[45]?x?(x.p($,_e),_e[1]&16384&&d(x,1)):(x=G0($),x.c(),d(x,1),x.m(l.parentNode,l)):x&&(ae(),p(x,1,1,()=>{x=null}),ue()),$[50]?P?(P.p($,_e),_e[1]&524288&&d(P,1)):(P=Y0($),P.c(),d(P,1),P.m(u.parentNode,u)):P&&(ae(),p(P,1,1,()=>{P=null}),ue()),$[54]?J?_e[1]&8388608&&d(J,1):(J=Q0($),J.c(),d(J,1),J.m(c.parentNode,c)):J&&(ae(),p(J,1,1,()=>{J=null}),ue()),$[39]?le?(le.p($,_e),_e[1]&256&&d(le,1)):(le=Z0($),le.c(),d(le,1),le.m(m.parentNode,m)):le&&(ae(),p(le,1,1,()=>{le=null}),ue()),$[56].value!=="off"?Ae?(Ae.p($,_e),_e[1]&33554432&&d(Ae,1)):(Ae=X0($),Ae.c(),d(Ae,1),Ae.m(h.parentNode,h)):Ae&&(ae(),p(Ae,1,1,()=>{Ae=null}),ue()),$[37]?ee?(ee.p($,_e),_e[1]&64&&d(ee,1)):(ee=J0($),ee.c(),d(ee,1),ee.m(C.parentNode,C)):ee&&(ae(),p(ee,1,1,()=>{ee=null}),ue()),$[22]?ge?(ge.p($,_e),_e[0]&4194304&&d(ge,1)):(ge=$0($),ge.c(),d(ge,1),ge.m(g.parentNode,g)):ge&&(ae(),p(ge,1,1,()=>{ge=null}),ue()),!$[39]&&$[38]!=="ads"?Pe?(Pe.p($,_e),_e[1]&384&&d(Pe,1)):(Pe=e_($),Pe.c(),d(Pe,1),Pe.m(S.parentNode,S)):Pe&&(ae(),p(Pe,1,1,()=>{Pe=null}),ue());let xe={};_e[1]&536870912&&(xe.isLive=$[60]),_e[1]&8192&&(xe.isHidden=!$[44]),_e[1]&2097152&&(xe.isPlaying=$[52]),_e[1]&134217728&&(xe.position=$[58]),_e[1]&1073741824&&(xe.duration=$[61]),k.$set(xe);let st={};_e[0]&2097152&&(st.supportLink=$[21]),_e[1]&262144&&(st.returnFocus=$[165]),_e[1]&4&&(st.visible=$[33]),_e[1]&512&&(st.playerContainerRef=$[40]),_e[1]&1024&&(st.controlsContainerRef=$[41]),_e[2]&1&&(st.position=$[62]),!H&&_e[1]&2&&(H=!0,st.menuElementRef=$[32],Ue(()=>H=!1)),E.$set(st),$[43]?rt?_e[1]&4096&&d(rt,1):(rt=t_($),rt.c(),d(rt,1),rt.m(W.parentNode,W)):rt&&(ae(),p(rt,1,1,()=>{rt=null}),ue()),$[63]?Ee?_e[2]&2&&d(Ee,1):(Ee=i_($),Ee.c(),d(Ee,1),Ee.m(ne.parentNode,ne)):Ee&&(ae(),p(Ee,1,1,()=>{Ee=null}),ue()),$[64]?We?_e[2]&4&&d(We,1):(We=n_($),We.c(),d(We,1),We.m(de.parentNode,de)):We&&(ae(),p(We,1,1,()=>{We=null}),ue())},i($){q||(d(e.$$.fragment,$),d(X),d(oe),d(K),d(ce),d(z),d(x),d(P),d(J),d(le),d(Ae),d(ee),d(ge),d(Pe),d(k.$$.fragment,$),d(T.$$.fragment,$),d(E.$$.fragment,$),d(rt),d(Ee),d(We),q=!0)},o($){p(e.$$.fragment,$),p(X),p(oe),p(K),p(ce),p(z),p(x),p(P),p(J),p(le),p(Ae),p(ee),p(ge),p(Pe),p(k.$$.fragment,$),p(T.$$.fragment,$),p(E.$$.fragment,$),p(rt),p(Ee),p(We),q=!1},d($){$&&(y(t),y(n),y(o),y(r),y(s),y(a),y(l),y(u),y(c),y(m),y(h),y(C),y(g),y(S),y(F),y(v),y(U),y(W),y(ne),y(de)),V(e,$),X&&X.d($),oe&&oe.d($),K&&K.d($),ce&&ce.d($),z&&z.d($),x&&x.d($),P&&P.d($),J&&J.d($),le&&le.d($),Ae&&Ae.d($),ee&&ee.d($),ge&&ge.d($),Pe&&Pe.d($),V(k,$),V(T,$),V(E,$),rt&&rt.d($),Ee&&Ee.d($),We&&We.d($)}}}function x8(i){let e,t,n,o,r=i[53],s,a,l,u,c=o_(i);return{c(){e=I("div"),t=I("div"),o=Y(),c.c(),s=Je(),f(t,"class","video-container svelte-13f9p53"),f(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[47]})`),f(t,"data-testid","video-container"),f(t,"data-is-playing",i[52]),j(t,"fast-rotate",!i[1].isSmoothVideoRotate),f(e,"class","video-wrapper svelte-13f9p53"),j(e,"hidden",i[38]!=="video"),j(e,"nocursor",i[46])},m(m,h){w(m,e,h),_(e,t),i[160](t),w(m,o,h),c.m(m,h),w(m,s,h),a=!0,l||(u=[ke(e,"contextmenu",ai(i[110])),ke(e,"mousedown",ai(i[115])),ke(e,"mouseup",ai(i[116])),ke(e,"click",ai(i[118])),ke(e,"dblclick",ai(i[117]))],l=!0)},p(m,h){(!a||h[1]&65552&&n!==(n=`transform: rotate(${m[35]}deg) scale(${m[47]})`))&&f(t,"style",n),(!a||h[1]&2097152)&&f(t,"data-is-playing",m[52]),(!a||h[0]&2)&&j(t,"fast-rotate",!m[1].isSmoothVideoRotate),(!a||h[1]&128)&&j(e,"hidden",m[38]!=="video"),(!a||h[1]&32768)&&j(e,"nocursor",m[46]),h[1]&4194304&&B(r,r=m[53])?(ae(),p(c,1,1,me),ue(),c=o_(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&&(y(e),y(o),y(s)),i[160](null),c.d(m),l=!1,ft(u)}}}function j8(i){let e,t,n,o,r,s,a,l={toggleFullscreen:i[108],hideContextMenu:i[109],showHotKeyHelpers:i[119],showKeyMap:i[120],isAds:i[38]==="ads",fakePlayButtonHandler:i[48]?i[107]:void 0,$$slots:{default:[x8]},$$scope:{ctx:i}};return t=new T1({props:l}),i[167](t),{c(){e=I("div"),R(t.$$.fragment),n=Y(),o=I("div"),f(o,"class","overlay-container"),f(e,"class","player-wrapper svelte-13f9p53")},m(u,c){w(u,e,c),L(t,e,null),_(e,n),_(e,o),i[168](o),i[169](e),r=!0,s||(a=[ke(z8,"blur",i[109]),ke(e,"mouseenter",i[111]),ke(e,"mouseleave",i[113]),ke(e,"mousemove",i[114]),ke(e,"click",i[122],!0),ke(e,"focusin",i[112],!0)],s=!0)},p(u,c){let m={};c[1]&128&&(m.isAds=u[38]==="ads"),c[1]&131072&&(m.fakePlayButtonHandler=u[48]?u[107]:void 0),c[0]&1073741823|c[1]&2147352575|c[2]&7|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&&y(e),i[167](null),V(t),i[168](null),i[169](null),s=!1,ft(a)}}}var r_=!0;function pf(i){return i?i.offsetTop+pf(i.offsetParent):0}function s_(i){return i?i.offsetLeft+s_(i.offsetParent):0}function G8(i,e,t){let n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,de,q,X,oe,K,ce,z,x,P,J,le,Ae,ee,ge,Pe,Te,Ie,rt,Ee,We,$,_e,{store:Ce}=e,{uiConfig:xe}=e,{title:st}=e,{thumbUrl:at}=e,{videoContainer:nt}=e,{interactiveContainer:$e}=e,{live:fe}=e,{autoplay:Se}=e,{canRewindLive:et}=e,{showAds:Ne}=e,{adsSlotId:tt=void 0}=e,{adsParams:Fe=void 0}=e,{adsPreviewParam:ct=void 0}=e,{duration:dt=void 0}=e,{logoClickable:he}=e,{logoHidden:_t}=e,{logoTargetUrl:kt=""}=e,{showNextPrevButtons:Ct=!1}=e,{nextButtonActive:Ze=!1}=e,{prevButtonActive:Et=!1}=e,{endScreenVideoTitle:Vt=void 0}=e,{endScreenVideoThumb:ri=void 0}=e,{isOneVideoPlaylist:Ut=!1}=e,{supportLink:zt}=e,{shadowRootContainer:Qt=void 0}=e,{outerContainerRef:Wt=void 0}=e,{playerStarted:Ke=!1}=e,{fullScreenTarget:Xe=void 0}=e,{showMiniTimer:It=!1}=e,{showEndScreen:pe=!0}=e,{playNextVideo:Zt=mf}=e,{playPrevVideo:At=mf}=e,{repeatPlaylist:ii=mf}=e,{seekToInteractive:Ot}=e,{playPrevChapter:xt}=e,{firstStart:si}=e,Mt=Ce.getLogger().createComponentLog("Root component"),ni=Ce.interfaceLanguage$;D(i,ni,Q=>t(53,le=Q));let Xt=Ce.state.playbackState$;D(i,Xt,Q=>t(157,z=Q));let dn=Ce.ads.playbackState;D(i,dn,Q=>t(158,x=Q));let Bt=Ce.state.positionWithScrubbing$;D(i,Bt,Q=>t(58,Te=Q));let qi=Ce.state.duration$;D(i,qi,Q=>t(61,Ee=Q));let en=Ce.playerPhase;D(i,en,Q=>t(38,q=Q));let gi=Ce.ui.isFullscreen;D(i,gi,Q=>t(147,S=Q));let wi=Ce.ui.controlsVisible;D(i,wi,Q=>t(36,H=Q));let De=Ce.ui.settingsMenuVisible;D(i,De,Q=>t(145,u=Q));let it=Ce.ui.settingsMenuOpenedByKeyboard;D(i,it,Q=>t(144,l=Q));let St=Ce.ui.scrubbingInProgress;D(i,St,Q=>t(149,v=Q));let bi=Ce.ui.contextMenu.visible$;D(i,bi,Q=>t(33,n=Q));let ki=Ce.ui.debugPanelVisible;D(i,ki,Q=>t(64,_e=Q));let tn=Ce.state.isLoaderVisible;D(i,tn,Q=>t(159,P=Q));let Ai=Ce.state.isEnded$;D(i,Ai,Q=>t(146,m=Q));let mn=Ce.state.chromecastConnected$;D(i,mn,Q=>t(39,K=Q));let mi=Ce.state.chromecastDeviceName$;D(i,mi,Q=>t(55,ee=Q));let Ui=Ce.ads.postrollPassed;D(i,Ui,Q=>t(152,ne=Q));let zi=Ce.state.isLive$;D(i,zi,Q=>t(60,rt=Q));let Ht=Ce.state.isPlaying$;D(i,Ht,Q=>t(52,J=Q));let Ci=Ce.state.crashed$;D(i,Ci,Q=>t(37,W=Q));let ui=Ce.webApi.annotationsApi,Kt=Ce.webApi.pictureInPictureApi,In=Ce.state.currentSubtitle$;D(i,In,Q=>t(56,ge=Q));let vi=Ce.state.currentSubtitleCaptions$;D(i,vi,Q=>t(57,Pe=Q));let pn=Ce.state.duration$;D(i,pn,Q=>t(59,Ie=Q));let Pn=Ce.state.graphIsOpened$;D(i,Pn,Q=>t(153,de=Q));let nn=Ce.ui.playerSize;D(i,nn,Q=>t(34,C=Q));let _n=Ce.ui.is3DVideo;D(i,_n,Q=>t(50,h=Q));let Si=Ce.ui.icon3DVideoVisible;D(i,Si,Q=>t(54,Ae=Q));let on=Ce.ui.rotateAlpha;D(i,on,Q=>t(35,T=Q));let jt=Ce.state.isInteractive,qn=Ce.state.isInteractiveTime$;D(i,qn,Q=>t(150,E=Q));let Wi=Ce.state.isInteractiveExpectation$;D(i,Wi,Q=>t(156,ce=Q));let Ki=Ce.state.hasInteractiveBranches,xi=Ce.ui.touched;D(i,xi,Q=>t(154,X=Q));let yi=Ce.ui.modals.hotKeyMap.data;D(i,yi,Q=>t(176,c=Q));let Mi=Ce.ui.modals.hotKeyMap.show;D(i,Mi,Q=>t(63,$=Q));let rn=Ce.ui.overlayContainer$,sn=Ce.ui.controls.interactiveTimeIndicator;D(i,sn,Q=>t(177,g=Q));let Ti=Ce.state.showInteractiveTimeIndicator,Ii=Ce.ui.contextMenu.position$;D(i,Ii,Q=>t(62,We=Q));let ci=Ce.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Gt}=On();D(i,Gt,Q=>t(148,F=Q));let qt,Li,Vi,ln,ut,Ri,fi;yi.set(Rd());let Bi,Ni,je=Oe(!1);D(i,je,Q=>t(51,k=Q));let Un,an=Oe(!1);D(i,an,Q=>t(155,oe=Q));let En=Oe(),hn=Oe(!1);D(i,hn,Q=>t(151,U=Q));let ji=!1,Gi=!1,Yi=!1,gn=!(Se&&!xe.controls.showOnStartupAtAutoplay),pi,An,Mn,Ln,bn,vn=!1,Vn,yn=!1,{toggle:zn}=Gt,Di=!1,un=null,oi;Kt==null||Kt.setContext(Zr());let oo=()=>{Se&&!jt&&xe.controls.showOnStartupAtAutoplay&&di(xe.controls.hideTimeout)};Ce.setUiCallbacks({onStarted:oo});let ro=()=>{window.clearTimeout(ut),an.set(!1)},Wn=()=>{window.clearTimeout(Ri),En.set(null)},di=Q=>{ro(),an.set(!0),ut=window.setTimeout(()=>an.set(!1),Q);let Lt=Q-100;Un=window.setTimeout(()=>{k&&je.set(!1)},Lt>0?Lt:Q)},cn=(Q,Lt)=>{Wn(),En.set(Lt),Ri=window.setTimeout(()=>En.set(null),Q)},Qn=_n.subscribe(Q=>{Si.set(Q),Q&&(window.clearTimeout(fi),fi=window.setTimeout(()=>Si.set(!1),xe.controls.hide360IconTimeout))}),Kn=()=>pt(this,null,function*(){var Lt,Xi,Hi,ao;let Q=Ro();if(Q){let Cn=es(),uo=Zn();Q=Cn===uo||Cn===Qt}if(Q){di(xe.controls.hideTimeoutFullscreen);try{yield Kt==null?void 0:Kt.remove()}catch(Cn){Mt({message:String(Cn)})}}gi.set(Q),Ce.getAdmanWrapper().setFullscreen(Q),S?(Xi=(Lt=Ce.callbacks)==null?void 0:Lt.onFullscreenEnter)==null||Xi.call(Lt):(ao=(Hi=Ce.callbacks)==null?void 0:Hi.onFullscreenExit)==null||ao.call(Hi)}),so=Q=>{let Lt=Q;nn.set({width:Lt.target.width,height:Lt.target.height})};Nt(()=>{var Lt;return Os(Kn),xe.features.annotationsInside&&(ui==null||ui.init(qt)),ar(Kt)&&(Kt==null||Kt.assignPlayerContainer(qt),Kt==null||Kt.registryExternalEventHandlers({resize:so})),$e&&((Lt=nt.parentElement)==null||Lt.insertBefore($e,nt.nextSibling)),()=>{window.clearTimeout(ut),window.clearTimeout(Un),window.clearTimeout(Ri),window.clearTimeout(fi),Qn(),Kt==null||Kt.dispose(),Fs(Kn)}});let Zn=()=>{let Q=xe.features.fullscreenInternalTargetPlayerContainer||!Wt?qt:Wt,Lt=Q.getRootNode(),Xi=Lt instanceof ShadowRoot?Lt.host:Lt,Hi=Xe instanceof HTMLElement&&Xe.contains(Xi);return xe.allowChangingFullscreenTarget&&Xe&&Hi?Xe:Q},Xn=()=>pt(this,null,function*(){Ro()?(yield Ds(document),Mt({message:"exit fullscreen"})):(Mt({message:"request fullscreen"}),yield Ns(Zn()))}),wn=()=>{ci(),bi.set(!1)},xn=Q=>{bi.set(!0),Ii.set({left:Q.clientX,top:Q.clientY})};function kn(){hn.set(!0),jt||di(xe.controls.hideTimeoutCursor)}function lo(){jt||(je.set(!0),di(xe.controls.hideTimeoutCursor))}function ie(){hn.set(!1),t(135,Gi=!1),t(134,ji=!1),Di=!1,Ce.actions.internal.releaseCamera()}function bt(Q){if(g&&Ti){let Lt=Q.currentTarget,Xi=pf(Lt),Hi=s_(Lt),ao=Q.pageX-Hi,Cn=Q.pageY-Xi,{left:uo,bottom:Jo,right:bo}=g,_r=bo-uo;return ao>=uo-_r&&Cn<=Jo+_r}}function Qi(Q){if(qt){let Lt=pf(Q.currentTarget),Xi=C.height,Hi=Q.pageY-Lt;if(bt(Q)){t(135,Gi=!1);return}Hi<40?t(135,Gi=!0):Hi>Xi-40?t(134,ji=!0):(t(135,Gi=!1),u||t(134,ji=!1))}}function Oi(Q){Qi(Q),pi||di(xe.controls.hideTimeoutCursor),h&&Di&&un&&Ce.actions.internal.moveCameraFocusPX(un.clientX-Q.clientX,un.clientY-Q.clientY,Q.timeStamp-un.timeStamp),un=Q}let te=Q=>{Q.button===0&&(Di=!0,Ce.actions.internal.holdCamera()),di(xe.controls.hideTimeoutCursor)},Fi=Q=>{Q.button===0&&(un=Q,Di=!1,Ce.actions.internal.releaseCamera()),di(xe.controls.hideTimeoutCursor)},zo=()=>{r_&&(Mt({message:"double click on video"}),Xn(),di(xe.controls.hideTimeoutCursor))},Io=()=>{if(n||u){wn();return}if(!(m&&!Ki)){if(yn)return zn();if(oi==null||oi.focus(),!Ke){si(),di(xe.controls.hideTimeoutCursor);return}Ce.actions.internal.togglePlay(),di(xe.controls.hideTimeoutCursor)}},Po=Q=>{wn(),xi.set(!0),di(xe.controls.hideTimeout),Q&&cn(xe.controls.hideHotKeyHelpers,Q)},_o=()=>{var Q,Lt;wn(),(Q=Ce.callbacks)!=null&&Q.onOpenHotKeyMap?(Lt=Ce.callbacks)==null||Lt.onOpenHotKeyMap(c):Mi.update(Xi=>!Xi)},ho=()=>{if(n||u){wn();return}},pr=()=>{xi.set(!0)},Zi=Ce.ui.contextMenu.openedByBtnKeyboard$;D(i,Zi,Q=>t(143,a=Q));let go=Ce.ui.contextMenu.btnRef$;D(i,go,Q=>t(142,s=Q));let Jn,fn=Ce.ui.contextMenu.openedByHotKey$;D(i,fn,Q=>t(141,r=Q));let Eo=Ce.ui.contextMenu.lastActiveElem$;D(i,Eo,Q=>t(140,o=Q));function Wo(Q){ve[Q?"unshift":"push"](()=>{nt=Q,t(0,nt)})}function Ko(Q){Li=Q,t(41,Li)}function xo(Q){Vi=Q,t(42,Vi)}let jo=()=>oi==null?void 0:oi.focus();function Go(Q){ln=Q,t(29,ln)}let Yo=()=>oi==null?void 0:oi.focus();function Rn(Q){Jn=Q,t(32,Jn)}function Qo(Q){ve[Q?"unshift":"push"](()=>{oi=Q,t(49,oi)})}function Zo(Q){ve[Q?"unshift":"push"](()=>{Ni=Q,t(30,Ni)})}function Xo(Q){ve[Q?"unshift":"push"](()=>{qt=Q,t(40,qt)})}return i.$$set=Q=>{"store"in Q&&t(127,Ce=Q.store),"uiConfig"in Q&&t(1,xe=Q.uiConfig),"title"in Q&&t(2,st=Q.title),"thumbUrl"in Q&&t(3,at=Q.thumbUrl),"videoContainer"in Q&&t(0,nt=Q.videoContainer),"interactiveContainer"in Q&&t(128,$e=Q.interactiveContainer),"live"in Q&&t(4,fe=Q.live),"autoplay"in Q&&t(5,Se=Q.autoplay),"canRewindLive"in Q&&t(6,et=Q.canRewindLive),"showAds"in Q&&t(7,Ne=Q.showAds),"adsSlotId"in Q&&t(8,tt=Q.adsSlotId),"adsParams"in Q&&t(9,Fe=Q.adsParams),"adsPreviewParam"in Q&&t(10,ct=Q.adsPreviewParam),"duration"in Q&&t(11,dt=Q.duration),"logoClickable"in Q&&t(12,he=Q.logoClickable),"logoHidden"in Q&&t(13,_t=Q.logoHidden),"logoTargetUrl"in Q&&t(14,kt=Q.logoTargetUrl),"showNextPrevButtons"in Q&&t(15,Ct=Q.showNextPrevButtons),"nextButtonActive"in Q&&t(16,Ze=Q.nextButtonActive),"prevButtonActive"in Q&&t(17,Et=Q.prevButtonActive),"endScreenVideoTitle"in Q&&t(18,Vt=Q.endScreenVideoTitle),"endScreenVideoThumb"in Q&&t(19,ri=Q.endScreenVideoThumb),"isOneVideoPlaylist"in Q&&t(20,Ut=Q.isOneVideoPlaylist),"supportLink"in Q&&t(21,zt=Q.supportLink),"shadowRootContainer"in Q&&t(129,Qt=Q.shadowRootContainer),"outerContainerRef"in Q&&t(130,Wt=Q.outerContainerRef),"playerStarted"in Q&&t(22,Ke=Q.playerStarted),"fullScreenTarget"in Q&&t(131,Xe=Q.fullScreenTarget),"showMiniTimer"in Q&&t(132,It=Q.showMiniTimer),"showEndScreen"in Q&&t(133,pe=Q.showEndScreen),"playNextVideo"in Q&&t(23,Zt=Q.playNextVideo),"playPrevVideo"in Q&&t(24,At=Q.playPrevVideo),"repeatPlaylist"in Q&&t(25,ii=Q.repeatPlaylist),"seekToInteractive"in Q&&t(26,Ot=Q.seekToInteractive),"playPrevChapter"in Q&&t(27,xt=Q.playPrevChapter),"firstStart"in Q&&t(28,si=Q.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[5]&24&&t(43,Bi=(q==="video"&&P||q==="ads"&&x==="inactive")&&!W),i.$$.dirty[0]&1073741824&&rn.set(Ni),i.$$.dirty[4]&8192|i.$$.dirty[5]&4&&(t(136,Yi=gn&&z!==W8.PLAYING),gn||t(137,gn=!0)),i.$$.dirty[4]&69213184|i.$$.dirty[5]&2&&t(138,pi=E&&!u&&!(ji||Gi)&&!(Yi&&!ce)),i.$$.dirty[1]&448|i.$$.dirty[4]&35672064|i.$$.dirty[5]&1&&wi.set((Yi||u||v||K||oe)&&!pi&&(q==="video"||q==="ads")&&!W),i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&1073742080&&t(44,An=xe.features.thumbTimer&&It&&q==="video"&&!H&&!W&&!jt&&(xe.hideThumbTimerAfterTouch&&!X||!xe.hideThumbTimerAfterTouch)),i.$$.dirty[1]&128|i.$$.dirty[4]&545259520&&t(45,Mn=q==="video"&&!de&&S),i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&272630272&&t(31,Ln=pe&&(Ne&&ne||!Ne)&&m&&!W),i.$$.dirty[1]&33|i.$$.dirty[4]&201326592&&t(46,bn=U&&!(H||Ln)&&!E),i.$$.dirty[0]&2|i.$$.dirty[4]&100696064&&(!v&&vn&&!E&&di(xe.controls.hideTimeoutCursor),t(139,vn=v)),i.$$.dirty[0]&1|i.$$.dirty[1]&24&&t(47,Vn=nt&&T%180?C.height/C.width:1),i.$$.dirty[4]&16777216&&t(48,yn=F!==null),i.$$.dirty[0]&536870912|i.$$.dirty[4]&3145728&&po(ln,u,l),i.$$.dirty[1]&6|i.$$.dirty[4]&524288&&po(Jn,n,a),i.$$.dirty[1]&4|i.$$.dirty[4]&262144){let Q=s;Q&&Ar(Q,n,Zi)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&131072&&po(Jn,n,r),i.$$.dirty[1]&4|i.$$.dirty[4]&65536){let Q=o;Q&&jd(Q,n,fn)}},[nt,xe,st,at,fe,Se,et,Ne,tt,Fe,ct,dt,he,_t,kt,Ct,Ze,Et,Vt,ri,Ut,zt,Ke,Zt,At,ii,Ot,xt,si,ln,Ni,Ln,Jn,n,C,T,H,W,q,K,qt,Li,Vi,Bi,An,Mn,bn,Vn,yn,oi,h,k,J,le,Ae,ee,ge,Pe,Te,Ie,rt,Ee,We,$,_e,ni,Xt,dn,Bt,qi,en,gi,wi,De,it,St,bi,ki,tn,Ai,mn,mi,Ui,zi,Ht,Ci,In,vi,pn,Pn,nn,_n,Si,on,jt,qn,Wi,xi,yi,Mi,sn,Ii,Gt,je,an,En,hn,zn,Xn,wn,xn,kn,lo,ie,Oi,te,Fi,zo,Io,Po,_o,ho,pr,Zi,go,fn,Eo,Ce,$e,Qt,Wt,Xe,It,pe,ji,Gi,Yi,gn,pi,vn,o,r,s,a,l,u,m,S,F,v,E,U,ne,de,X,oe,ce,z,x,P,Wo,Ko,xo,jo,Go,Yo,Rn,Qo,Zo,Xo]}var _f=class extends N{constructor(e){super(),O(this,e,G8,j8,B,{store:127,uiConfig:1,title:2,thumbUrl:3,videoContainer:0,interactiveContainer:128,live:4,autoplay:5,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,logoTargetUrl:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:129,outerContainerRef:130,playerStarted:22,fullScreenTarget:131,showMiniTimer:132,showEndScreen:133,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,playPrevChapter:27,firstStart:28},K8,[-1,-1,-1,-1,-1,-1,-1])}},l_=_f;import{PlaybackState as $8}from"@vkontakte/videoplayer-core";import{clientChecker as Hl,noop as ql}from"@vkontakte/videoplayer-shared";function Y8(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 a_(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k=G("doubletap_seek_step",{seconds:i[2].toFixed(0)})+"",F;return{c(){e=I("div"),n=Y(),o=I("div"),r=I("div"),s=I("div"),l=Y(),u=I("div"),m=Y(),h=I("div"),g=Y(),S=I("p"),F=qe(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",C="triangle "+i[0]+" svelte-nhq2ld"),f(r,"class","triangles-wrapper svelte-nhq2ld"),f(S,"class","step-caption svelte-nhq2ld"),f(o,"class","info svelte-nhq2ld")},m(T,v){w(T,e,v),w(T,n,v),w(T,o,v),_(o,r),_(r,s),_(r,l),_(r,u),_(r,m),_(r,h),_(o,g),_(o,S),_(S,F)},p(T,v){v&1&&t!==(t="semicircle "+T[0]+" svelte-nhq2ld")&&f(e,"class",t),v&1&&a!==(a="triangle "+T[0]+" svelte-nhq2ld")&&f(s,"class",a),v&1&&c!==(c="triangle "+T[0]+" svelte-nhq2ld")&&f(u,"class",c),v&1&&C!==(C="triangle "+T[0]+" svelte-nhq2ld")&&f(h,"class",C),v&4&&k!==(k=G("doubletap_seek_step",{seconds:T[2].toFixed(0)})+"")&&Ge(F,k)},d(T){T&&(y(e),y(n),y(o))}}}function Q8(i){let e,t,n,o,r=i[1]&&a_(i);return{c(){e=I("div"),r&&r.c(),f(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(s,a){w(s,e,a),r&&r.m(e,null),n||(o=ke(e,"click",vt(i[3]())),n=!0)},p(s,[a]){s[1]?r?r.p(s,a):(r=a_(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&&y(e),r&&r.d(),n=!1,o()}}}function Z8(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 $n(()=>{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 hf=class extends N{constructor(e){super(),O(this,e,Z8,Q8,B,{side:0,seekStep:4,handleSingleFirstClick:5,handleSecondClick:6},Y8)}},gf=hf;function X8(i,e,t){let n,{playNextVideo:o}=e,s=ot().ui.autoplayNextEnabled$;return D(i,s,a=>t(2,n=a)),Nt(()=>{n&&o()}),i.$$set=a=>{"playNextVideo"in a&&t(1,o=a.playNextVideo)},[s,o]}var bf=class extends N{constructor(e){super(),O(this,e,X8,null,B,{playNextVideo:1})}},u_=bf;var{window:J8}=er;function ey(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 c_(i){let e,t,n,o=i[47]&&f_(i),r=i[48]&&d_(i);return{c(){o&&o.c(),e=Y(),r&&r.c(),t=Je()},m(s,a){o&&o.m(s,a),w(s,e,a),r&&r.m(s,a),w(s,t,a),n=!0},p(s,a){s[47]?o?(o.p(s,a),a[1]&65536&&d(o,1)):(o=f_(s),o.c(),d(o,1),o.m(e.parentNode,e)):o&&(ae(),p(o,1,1,()=>{o=null}),ue()),s[48]?r?(r.p(s,a),a[1]&131072&&d(r,1)):(r=d_(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&&(y(e),y(t)),o&&o.d(s),r&&r.d(s)}}}function f_(i){let e,t;return e=new gf({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[103],handleSecondClick:i[136]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function d_(i){let e,t;return e=new gf({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[103],handleSecondClick:i[137]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function m_(i){var n;let e,t;return e=new Rl({props:{thumbUrl:i[2],startTime:(n=i[3])==null?void 0:n.startTime}}),{c(){R(e.$$.fragment)},m(o,r){L(e,o,r),t=!0},p(o,r){var a;let s={};r[0]&4&&(s.thumbUrl=o[2]),r[0]&8&&(s.startTime=(a=o[3])==null?void 0:a.startTime),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){V(e,o)}}}function p_(i){let e,t;return e=new Ur({props:{kind:"recover",thumbUrl:i[2]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function __(i){let e,t;return e=new Ur({props:{kind:"record",thumbUrl:i[2]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function h_(i){let e,t,n;return t=new Hs({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","ads-container svelte-dtyj47"),j(e,"hidden",i[37]!=="ads")},m(o,r){w(o,e,r),L(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]&64)&&j(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&&y(e),V(t)}}}function g_(i){let e,t;return e=new u_({props:{playNextVideo:i[22]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4194304&&(r.playNextVideo=n[22]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function b_(i){let e,t;return e=new El({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function v_(i){let e,t,n;return t=new As({props:{"aria-label":G("video360")}}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","spherical-video-icon svelte-dtyj47")},m(o,r){w(o,e,r),L(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&&y(e),V(t)}}}function y_(i){let e,t;return e=new Ml({props:{thumbUrl:i[2],chromecastDeviceName:i[55]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),o[1]&16777216&&(r.chromecastDeviceName=n[55]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function w_(i){let e,t;return e=new Al({props:{shifted:i[31],captions:i[57],position:i[33],playerSize:i[34],isMobile:!0}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&1&&(r.shifted=n[31]),o[1]&67108864&&(r.captions=n[57]),o[1]&4&&(r.position=n[33]),o[1]&8&&(r.playerSize=n[34]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function k_(i){let e,t,n,o,r;return t=new Ll({}),{c(){e=I("div"),R(t.$$.fragment)},m(s,a){w(s,e,a),L(t,e,null),n=!0,o||(r=ke(e,"click",vt(i[104])),o=!0)},p:me,i(s){n||(d(t.$$.fragment,s),n=!0)},o(s){p(t.$$.fragment,s),n=!1},d(s){s&&y(e),V(t),o=!1,r()}}}function C_(i){let e,t,n,o;function r(l){i[138](l)}function s(l){i[139](l)}let a={bottomHidden:i[37]==="thumb"||i[37]==="LiveWaitingStart"||i[37]==="LiveWaitingRecover"||i[37]==="LiveWaitingRecord"||i[37]==="ads",showControls:i[31],bottomNoSmooth:i[49],isAds:i[37]==="ads",canRewindLive:i[5]&&i[58]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showNextPrevButtons:i[14],nextButtonActive:i[15],prevButtonActive:i[16],isOneVideoPlaylist:i[19],customFullscreenSupported:i[43],playNextVideo:i[22],playPrevVideo:i[23],repeatPlaylist:i[24],toggleFullscreen:i[101],seekToInteractive:i[25],playPrevChapter:i[26],onDisabledPlayPrevChapterClick:i[107],onDisabledSeekToInteractiveClick:i[108]};return i[40]!==void 0&&(a.playerControlsWrapperRef=i[40]),i[41]!==void 0&&(a.playerControlsRef=i[41]),e=new Pl({props:a}),ve.push(()=>ze(e,"playerControlsWrapperRef",r)),ve.push(()=>ze(e,"playerControlsRef",s)),{c(){R(e.$$.fragment)},m(l,u){L(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"||l[37]==="ads"),u[1]&1&&(c.showControls=l[31]),u[1]&262144&&(c.bottomNoSmooth=l[49]),u[1]&64&&(c.isAds=l[37]==="ads"),u[0]&32|u[1]&134217728&&(c.canRewindLive=l[5]&&l[58]!==0),u[0]&2048&&(c.logoClickable=l[11]),u[0]&4096&&(c.logoHidden=l[12]),u[0]&8192&&(c.logoTargetUrl=l[13]),u[0]&16384&&(c.showNextPrevButtons=l[14]),u[0]&32768&&(c.nextButtonActive=l[15]),u[0]&65536&&(c.prevButtonActive=l[16]),u[0]&524288&&(c.isOneVideoPlaylist=l[19]),u[1]&4096&&(c.customFullscreenSupported=l[43]),u[0]&4194304&&(c.playNextVideo=l[22]),u[0]&8388608&&(c.playPrevVideo=l[23]),u[0]&16777216&&(c.repeatPlaylist=l[24]),u[0]&33554432&&(c.seekToInteractive=l[25]),u[0]&67108864&&(c.playPrevChapter=l[26]),!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){V(e,l)}}}function S_(i){let e,t,n,o;function r(a){i[140](a)}let s={supportLink:i[20],returnFocus:ql};return i[28]!==void 0&&(s.ref=i[28]),t=new Fl({props:s}),ve.push(()=>ze(t,"ref",r)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","settings-mobile svelte-dtyj47")},m(a,l){w(a,e,l),L(t,e,null),o=!0},p(a,l){let u={};l[0]&1048576&&(u.supportLink=a[20]),!n&&l[0]&268435456&&(n=!0,u.ref=a[28],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&&y(e),V(t)}}}function T_(i){let e,t;return e=new Vr({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function I_(i){let e,t;return e=new Gs({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function P_(i){let e,t,n=i[5]&&i[82]&&!i[52].has("TIMELINE"),o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H;e=new Vl({props:{hidden:i[37]!=="thumb"||i[36]||i[93]&&i[4],thumbUrl:i[2],startVideo:i[27]}});let U=n&&c_(i),W=i[37]==="LiveWaitingStart"&&m_(i),ne=i[37]==="LiveWaitingRecover"&&p_(i),de=i[37]==="LiveWaitingRecord"&&__(i),q=i[6]&&i[21]&&h_(i),X=i[45]&&i[17]&&i[18]&&g_(i),oe=i[53]&&b_(i),K=i[54]&&v_(i),ce=i[38]&&y_(i),z=i[56].value!=="off"&&w_(i),x=i[36]&&k_(i),P=i[21]&&C_(i),J=i[30]&&S_(i);F=new Us({props:{isLive:i[59],isHidden:!i[44],isPlaying:i[50],position:i[33],duration:i[32]}});let le=i[42]&&T_(i),Ae=i[60]&&I_(i);return{c(){R(e.$$.fragment),t=Y(),U&&U.c(),o=Y(),W&&W.c(),r=Y(),ne&&ne.c(),s=Y(),de&&de.c(),a=Y(),q&&q.c(),l=Y(),X&&X.c(),u=Y(),oe&&oe.c(),c=Y(),K&&K.c(),m=Y(),ce&&ce.c(),h=Y(),z&&z.c(),C=Y(),x&&x.c(),g=Y(),P&&P.c(),S=Y(),J&&J.c(),k=Y(),R(F.$$.fragment),T=Y(),le&&le.c(),v=Y(),Ae&&Ae.c(),E=Je()},m(ee,ge){L(e,ee,ge),w(ee,t,ge),U&&U.m(ee,ge),w(ee,o,ge),W&&W.m(ee,ge),w(ee,r,ge),ne&&ne.m(ee,ge),w(ee,s,ge),de&&de.m(ee,ge),w(ee,a,ge),q&&q.m(ee,ge),w(ee,l,ge),X&&X.m(ee,ge),w(ee,u,ge),oe&&oe.m(ee,ge),w(ee,c,ge),K&&K.m(ee,ge),w(ee,m,ge),ce&&ce.m(ee,ge),w(ee,h,ge),z&&z.m(ee,ge),w(ee,C,ge),x&&x.m(ee,ge),w(ee,g,ge),P&&P.m(ee,ge),w(ee,S,ge),J&&J.m(ee,ge),w(ee,k,ge),L(F,ee,ge),w(ee,T,ge),le&&le.m(ee,ge),w(ee,v,ge),Ae&&Ae.m(ee,ge),w(ee,E,ge),H=!0},p(ee,ge){let Pe={};ge[0]&16|ge[1]&96&&(Pe.hidden=ee[37]!=="thumb"||ee[36]||ee[93]&&ee[4]),ge[0]&4&&(Pe.thumbUrl=ee[2]),ge[0]&134217728&&(Pe.startVideo=ee[27]),e.$set(Pe),ge[0]&32|ge[1]&2097152&&(n=ee[5]&&ee[82]&&!ee[52].has("TIMELINE")),n?U?(U.p(ee,ge),ge[0]&32|ge[1]&2097152&&d(U,1)):(U=c_(ee),U.c(),d(U,1),U.m(o.parentNode,o)):U&&(ae(),p(U,1,1,()=>{U=null}),ue()),ee[37]==="LiveWaitingStart"?W?(W.p(ee,ge),ge[1]&64&&d(W,1)):(W=m_(ee),W.c(),d(W,1),W.m(r.parentNode,r)):W&&(ae(),p(W,1,1,()=>{W=null}),ue()),ee[37]==="LiveWaitingRecover"?ne?(ne.p(ee,ge),ge[1]&64&&d(ne,1)):(ne=p_(ee),ne.c(),d(ne,1),ne.m(s.parentNode,s)):ne&&(ae(),p(ne,1,1,()=>{ne=null}),ue()),ee[37]==="LiveWaitingRecord"?de?(de.p(ee,ge),ge[1]&64&&d(de,1)):(de=__(ee),de.c(),d(de,1),de.m(a.parentNode,a)):de&&(ae(),p(de,1,1,()=>{de=null}),ue()),ee[6]&&ee[21]?q?(q.p(ee,ge),ge[0]&2097216&&d(q,1)):(q=h_(ee),q.c(),d(q,1),q.m(l.parentNode,l)):q&&(ae(),p(q,1,1,()=>{q=null}),ue()),ee[45]&&ee[17]&&ee[18]?X?(X.p(ee,ge),ge[0]&393216|ge[1]&16384&&d(X,1)):(X=g_(ee),X.c(),d(X,1),X.m(u.parentNode,u)):X&&(ae(),p(X,1,1,()=>{X=null}),ue()),ee[53]?oe?ge[1]&4194304&&d(oe,1):(oe=b_(ee),oe.c(),d(oe,1),oe.m(c.parentNode,c)):oe&&(ae(),p(oe,1,1,()=>{oe=null}),ue()),ee[54]?K?ge[1]&8388608&&d(K,1):(K=v_(ee),K.c(),d(K,1),K.m(m.parentNode,m)):K&&(ae(),p(K,1,1,()=>{K=null}),ue()),ee[38]?ce?(ce.p(ee,ge),ge[1]&128&&d(ce,1)):(ce=y_(ee),ce.c(),d(ce,1),ce.m(h.parentNode,h)):ce&&(ae(),p(ce,1,1,()=>{ce=null}),ue()),ee[56].value!=="off"?z?(z.p(ee,ge),ge[1]&33554432&&d(z,1)):(z=w_(ee),z.c(),d(z,1),z.m(C.parentNode,C)):z&&(ae(),p(z,1,1,()=>{z=null}),ue()),ee[36]?x?(x.p(ee,ge),ge[1]&32&&d(x,1)):(x=k_(ee),x.c(),d(x,1),x.m(g.parentNode,g)):x&&(ae(),p(x,1,1,()=>{x=null}),ue()),ee[21]?P?(P.p(ee,ge),ge[0]&2097152&&d(P,1)):(P=C_(ee),P.c(),d(P,1),P.m(S.parentNode,S)):P&&(ae(),p(P,1,1,()=>{P=null}),ue()),ee[30]?J?(J.p(ee,ge),ge[0]&1073741824&&d(J,1)):(J=S_(ee),J.c(),d(J,1),J.m(k.parentNode,k)):J&&(ae(),p(J,1,1,()=>{J=null}),ue());let Te={};ge[1]&268435456&&(Te.isLive=ee[59]),ge[1]&8192&&(Te.isHidden=!ee[44]),ge[1]&524288&&(Te.isPlaying=ee[50]),ge[1]&4&&(Te.position=ee[33]),ge[1]&2&&(Te.duration=ee[32]),F.$set(Te),ee[42]?le?ge[1]&2048&&d(le,1):(le=T_(ee),le.c(),d(le,1),le.m(v.parentNode,v)):le&&(ae(),p(le,1,1,()=>{le=null}),ue()),ee[60]?Ae?ge[1]&536870912&&d(Ae,1):(Ae=I_(ee),Ae.c(),d(Ae,1),Ae.m(E.parentNode,E)):Ae&&(ae(),p(Ae,1,1,()=>{Ae=null}),ue())},i(ee){H||(d(e.$$.fragment,ee),d(U),d(W),d(ne),d(de),d(q),d(X),d(oe),d(K),d(ce),d(z),d(x),d(P),d(J),d(F.$$.fragment,ee),d(le),d(Ae),H=!0)},o(ee){p(e.$$.fragment,ee),p(U),p(W),p(ne),p(de),p(q),p(X),p(oe),p(K),p(ce),p(z),p(x),p(P),p(J),p(F.$$.fragment,ee),p(le),p(Ae),H=!1},d(ee){ee&&(y(t),y(o),y(r),y(s),y(a),y(l),y(u),y(c),y(m),y(h),y(C),y(g),y(S),y(k),y(T),y(v),y(E)),V(e,ee),U&&U.d(ee),W&&W.d(ee),ne&&ne.d(ee),de&&de.d(ee),q&&q.d(ee),X&&X.d(ee),oe&&oe.d(ee),K&&K.d(ee),ce&&ce.d(ee),z&&z.d(ee),x&&x.d(ee),P&&P.d(ee),J&&J.d(ee),V(F,ee),le&&le.d(ee),Ae&&Ae.d(ee)}}}function ty(i){let e,t,n,o,r,s=i[51],a,l,u,c,m,h,C=P_(i);return{c(){e=I("div"),t=I("div"),n=I("div"),r=Y(),C.c(),a=Y(),l=I("div"),f(n,"class","video-container svelte-dtyj47"),f(n,"style",o=`transform: rotate(${i[35]}deg) scale(${i[46]})`),f(n,"data-testid","video-container"),f(n,"data-is-playing",i[50]),j(n,"fast-rotate",!i[1].isSmoothVideoRotate),f(t,"class","video-wrapper svelte-dtyj47"),j(t,"hidden",i[37]!=="video"),f(l,"class","overlay-container"),f(e,"class","player-wrapper svelte-dtyj47"),f(e,"role","region"),f(e,"aria-label",u=G("aria_label_video_player")),f(e,"tabindex","-1")},m(g,S){w(g,e,S),_(e,t),_(t,n),i[135](n),_(e,r),C.m(e,null),_(e,a),_(e,l),i[141](l),i[142](e),c=!0,m||(h=[ke(J8,"blur",i[102]),ke(t,"click",ai(i[103])),ke(e,"click",i[105],!0),ke(e,"focusin",i[106],!0)],m=!0)},p(g,S){(!c||S[1]&32784&&o!==(o=`transform: rotate(${g[35]}deg) scale(${g[46]})`))&&f(n,"style",o),(!c||S[1]&524288)&&f(n,"data-is-playing",g[50]),(!c||S[0]&2)&&j(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!c||S[1]&64)&&j(t,"hidden",g[37]!=="video"),S[1]&1048576&&B(s,s=g[51])?(ae(),p(C,1,1,me),ue(),C=P_(g),C.c(),d(C,1),C.m(e,a)):C.p(g,S)},i(g){c||(d(C),c=!0)},o(g){p(C),c=!1},d(g){g&&y(e),i[135](null),C.d(g),i[141](null),i[142](null),m=!1,ft(h)}}}function iy(i,e,t){var kn,lo;let n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,de,q,X,oe,K,ce,z,x,P,J,le,Ae,ee,ge,Pe,{store:Te}=e,{uiConfig:Ie}=e,{thumbUrl:rt}=e,{videoContainer:Ee}=e,{interactiveContainer:We}=e,{live:$}=e,{autoplay:_e}=e,{canRewindLive:Ce}=e,{showAds:xe}=e,{adsSlotId:st=void 0}=e,{adsParams:at=void 0}=e,{adsPreviewParam:nt=void 0}=e,{duration:$e=void 0}=e,{logoClickable:fe}=e,{logoHidden:Se}=e,{logoTargetUrl:et=""}=e,{showNextPrevButtons:Ne=!1}=e,{nextButtonActive:tt=!1}=e,{prevButtonActive:Fe=!1}=e,{endScreenVideoTitle:ct=void 0}=e,{endScreenVideoThumb:dt=void 0}=e,{isOneVideoPlaylist:he=!1}=e,{supportLink:_t}=e,{shadowRootContainer:kt=void 0}=e,{outerContainerRef:Ct=void 0}=e,{showMiniTimer:Ze=!1}=e,{fullScreenTarget:Et=void 0}=e,{playerStarted:Vt=!1}=e,{showEndScreen:ri=!0}=e,{playNextVideo:Ut=ql}=e,{playPrevVideo:zt=ql}=e,{repeatPlaylist:Qt=ql}=e,{seekToInteractive:Wt}=e,{playPrevChapter:Ke}=e,{firstStart:Xe}=e,{seekTime:It}=e,pe=Te.getLogger().createComponentLog("Root component"),Zt=Te.interfaceLanguage$;D(i,Zt,ie=>t(51,ce=ie));let At=Te.state.playbackState$;D(i,At,ie=>t(132,q=ie));let ii=Te.ads.playbackState;D(i,ii,ie=>t(133,X=ie));let Ot=Te.state.positionWithScrubbing$;D(i,Ot,ie=>t(33,l=ie));let xt=Te.state.duration$;D(i,xt,ie=>t(32,a=ie));let si=Te.playerPhase;D(i,si,ie=>t(37,U=ie));let Mt=Te.ui.isFullscreen;D(i,Mt,ie=>t(148,c=ie));let ni=Te.ui.controlsVisible;D(i,ni,ie=>t(31,r=ie));let Xt=Te.ui.interactiveHideMobileControls;D(i,Xt,ie=>t(124,g=ie));let dn=Te.ui.settingsMenuVisible;D(i,dn,ie=>t(30,o=ie));let Bt=Te.ui.settingsMenuOpenedByKeyboard;D(i,Bt,ie=>t(122,n=ie));let qi=Te.ui.scrubbingInProgress;D(i,qi,ie=>t(125,k=ie));let en=Te.ui.debugPanelVisible;D(i,en,ie=>t(60,Pe=ie));let gi=Te.state.isLoaderVisible;D(i,gi,ie=>t(134,oe=ie));let wi=Te.state.isEnded$;D(i,wi,ie=>t(127,v=ie));let De=Te.state.chromecastConnected$;D(i,De,ie=>t(38,W=ie));let it=Te.state.chromecastDeviceName$;D(i,it,ie=>t(55,J=ie));let St=Te.ads.postrollPassed;D(i,St,ie=>t(128,E=ie));let bi=Te.ui.mobileUnmuteButtonExpanded,ki=Te.ui.mobileUnmuteButtonVisible,tn=Te.state.isLive$;D(i,tn,ie=>t(59,ge=ie));let Ai=Te.state.isPlaying$;D(i,Ai,ie=>t(50,K=ie));let mn=Te.state.isActiveLive$;D(i,mn,ie=>t(123,u=ie));let mi=Te.state.isRewindableLive$,Ui=Te.state.crashed$;D(i,Ui,ie=>t(36,T=ie));let zi=Te.webApi.annotationsApi,Ht=Te.webApi.pictureInPictureApi,Ci=Te.state.videoSize$;D(i,Ci,ie=>t(149,h=ie));let ui=Te.state.currentSubtitle$;D(i,ui,ie=>t(56,le=ie));let Kt=Te.state.currentSubtitleCaptions$;D(i,Kt,ie=>t(57,Ae=ie));let In=Te.state.duration$;D(i,In,ie=>t(58,ee=ie));let vi=Te.state.graphIsOpened$;D(i,vi,ie=>t(131,de=ie));let pn=Te.ui.playerSize;D(i,pn,ie=>t(34,m=ie));let Pn=Te.ui.is3DVideo;D(i,Pn,ie=>t(53,x=ie));let nn=Te.ui.icon3DVideoVisible;D(i,nn,ie=>t(54,P=ie));let _n=Te.ui.rotateAlpha;D(i,_n,ie=>t(35,S=ie));let Si=Te.state.isInteractive,on=Te.state.isInteractiveTime$;D(i,on,ie=>t(126,F=ie));let jt=Te.state.isInteractiveExpectation$;D(i,jt,ie=>t(130,ne=ie));let qn=Te.state.hasInteractiveBranches,Wi=Te.ui.controls.disabledControls$;D(i,Wi,ie=>t(52,z=ie));let Ki=Te.ui.touched;D(i,Ki,ie=>t(129,H=ie));let xi=Te.ui.overlayContainer$,yi=Te.state.loadedMetadata$;D(i,yi,ie=>t(147,s=ie));let Mi=Te.actions.internal.closeSettingsMenu,rn=(kn=Te.callbacks)==null?void 0:kn.onDisabledPlayPrevChapterClick,sn=(lo=Te.callbacks)==null?void 0:lo.onDisabledSeekToInteractiveClick,Ti,Ii,ci,Gt,qt,Li,Vi,ln,ut,Ri=Oe(!1);D(i,Ri,ie=>t(49,C=ie));let fi,Bi=!1,Ni,je=!1,Un,an=!0,En,hn,ji=!1,Gi;Ht==null||Ht.setContext(Zr());let Yi=ie=>{clearTimeout(Li),ie&&(ki.set(!0),bi.set(!0),Li=window.setTimeout(()=>{bi.set(!1)},Ie.controls.collapseMobileUnmute),Si||pi(Ie.controls.hideTimeoutMobile))};Te.setUiCallbacks({onStarted:Yi});let gn=()=>{window.clearTimeout(qt),t(117,Bi=!1),g&&Xt.set(!1)},pi=ie=>{gn(),t(117,Bi=!0),qt=window.setTimeout(()=>t(117,Bi=!1),ie);let bt=ie-100;fi=window.setTimeout(()=>{C&&Ri.set(!1)},bt>0?bt:ie)},An=Pn.subscribe(ie=>{nn.set(ie),ie&&(window.clearTimeout(Vi),Vi=window.setTimeout(()=>nn.set(!1),Ie.controls.hide360IconTimeout))}),Mn=()=>pt(this,null,function*(){var bt,Qi,Oi,te;let ie=Ro();if(ie){let Fi=es(),zo=yn(),Io=Hl.isSamsungBrowser&&Fi===kt;ie=Fi===zo||Io}if(ie){pi(Ie.controls.hideTimeoutFullscreen);try{yield Ht==null?void 0:Ht.remove()}catch(Fi){pe({message:String(Fi)})}try{let Fi=h!=null&&h.width&&(h!=null&&h.height)?h:m;yield Ld(Fi)}catch(Fi){pe({message:String(Fi)})}}Mt.set(ie),Te.getAdmanWrapper().setFullscreen(ie),c?(Qi=(bt=Te.callbacks)==null?void 0:bt.onFullscreenEnter)==null||Qi.call(bt):(te=(Oi=Te.callbacks)==null?void 0:Oi.onFullscreenExit)==null||te.call(Oi)}),Ln=ie=>{let bt=ie;pn.set({width:bt.target.width,height:bt.target.height})};Nt(()=>{var bt;return Os(Mn),Ie.features.annotationsInside&&(zi==null||zi.init(Ti)),ar(Ht)&&(Ht==null||Ht.assignPlayerContainer(Ti),Ht==null||Ht.registryExternalEventHandlers({resize:Ln})),t(43,an=!Hl.isIphoneOrOldIpad),We&&((bt=Ee.parentElement)==null||bt.insertBefore(We,Ee.nextSibling)),()=>{window.clearTimeout(qt),window.clearTimeout(fi),window.clearTimeout(Li),window.clearTimeout(Vi),An(),Ht==null||Ht.dispose(),Fs(Mn)}});let bn=!0,vn=!0,Vn=ie=>{let bt=l+(ie==="forward"?1:-1)*Ie.controls.seekStepMobile/1e3;bt<0?(t(47,bn=!1),bt=0):bt>=a&&(t(48,vn=!1),bt=a),t(119,je=!0),It(bt)},yn=()=>{let ie=Hl.isIOS||Ie.features.fullscreenInternalTargetPlayerContainer||!Ct?Ti:Ct,bt=ie.getRootNode(),Qi=bt instanceof ShadowRoot?bt.host:bt,Oi=Et instanceof HTMLElement&&Et.contains(Qi);return Ie.allowChangingFullscreenTarget&&Et&&Oi?Et:ie},zn=()=>pt(this,null,function*(){if(Ro())yield Ds(document),pe({message:"exit fullscreen"});else{if(pe({message:"request fullscreen"}),Hl.isIOS&&!s)return;yield Ns(yn())}}),Di=()=>{Mi()},un=()=>{if(o){Di();return}if(!Vt){Xe(),pi(Ie.controls.hideTimeoutCursor);return}t(119,je=!1),r?gn():pi(Ie.controls.hideTimeoutMobile)},oi=()=>{if(o){Di();return}},oo=()=>{Ki.set(!0)},ro=()=>{Si||(Ri.set(!0),pi(Ie.controls.hideTimeoutCursor))},Wn=ie=>{rn&&(rn(ie),pi(Ie.controls.hideTimeoutMobile))},di=ie=>{sn&&(sn(ie),pi(Ie.controls.hideTimeoutMobile))};function cn(ie){ve[ie?"unshift":"push"](()=>{Ee=ie,t(0,Ee)})}let Qn=()=>Vn("backward"),Kn=()=>Vn("forward");function so(ie){Ii=ie,t(40,Ii)}function Zn(ie){ci=ie,t(41,ci)}function Xn(ie){Gt=ie,t(28,Gt)}function wn(ie){ve[ie?"unshift":"push"](()=>{ut=ie,t(29,ut)})}function xn(ie){ve[ie?"unshift":"push"](()=>{Ti=ie,t(39,Ti)})}return i.$$set=ie=>{"store"in ie&&t(109,Te=ie.store),"uiConfig"in ie&&t(1,Ie=ie.uiConfig),"thumbUrl"in ie&&t(2,rt=ie.thumbUrl),"videoContainer"in ie&&t(0,Ee=ie.videoContainer),"interactiveContainer"in ie&&t(110,We=ie.interactiveContainer),"live"in ie&&t(3,$=ie.live),"autoplay"in ie&&t(4,_e=ie.autoplay),"canRewindLive"in ie&&t(5,Ce=ie.canRewindLive),"showAds"in ie&&t(6,xe=ie.showAds),"adsSlotId"in ie&&t(7,st=ie.adsSlotId),"adsParams"in ie&&t(8,at=ie.adsParams),"adsPreviewParam"in ie&&t(9,nt=ie.adsPreviewParam),"duration"in ie&&t(10,$e=ie.duration),"logoClickable"in ie&&t(11,fe=ie.logoClickable),"logoHidden"in ie&&t(12,Se=ie.logoHidden),"logoTargetUrl"in ie&&t(13,et=ie.logoTargetUrl),"showNextPrevButtons"in ie&&t(14,Ne=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(15,tt=ie.nextButtonActive),"prevButtonActive"in ie&&t(16,Fe=ie.prevButtonActive),"endScreenVideoTitle"in ie&&t(17,ct=ie.endScreenVideoTitle),"endScreenVideoThumb"in ie&&t(18,dt=ie.endScreenVideoThumb),"isOneVideoPlaylist"in ie&&t(19,he=ie.isOneVideoPlaylist),"supportLink"in ie&&t(20,_t=ie.supportLink),"shadowRootContainer"in ie&&t(111,kt=ie.shadowRootContainer),"outerContainerRef"in ie&&t(112,Ct=ie.outerContainerRef),"showMiniTimer"in ie&&t(113,Ze=ie.showMiniTimer),"fullScreenTarget"in ie&&t(114,Et=ie.fullScreenTarget),"playerStarted"in ie&&t(21,Vt=ie.playerStarted),"showEndScreen"in ie&&t(115,ri=ie.showEndScreen),"playNextVideo"in ie&&t(22,Ut=ie.playNextVideo),"playPrevVideo"in ie&&t(23,zt=ie.playPrevVideo),"repeatPlaylist"in ie&&t(24,Qt=ie.repeatPlaylist),"seekToInteractive"in ie&&t(25,Wt=ie.seekToInteractive),"playPrevChapter"in ie&&t(26,Ke=ie.playPrevChapter),"firstStart"in ie&&t(27,Xe=ie.firstStart),"seekTime"in ie&&t(116,It=ie.seekTime)},i.$$.update=()=>{i.$$.dirty[1]&96|i.$$.dirty[4]&1536&&t(42,ln=(U==="video"&&oe||U==="ads"&&X==="inactive")&&!T),i.$$.dirty[0]&536870912&&xi.set(ut),i.$$.dirty[4]&256&&t(118,Ni=q!==$8.PLAYING),i.$$.dirty[3]&50331648|i.$$.dirty[4]&201&&t(120,Un=de||g||!Bi&&(v&&!!qn||Ni&&ne)),i.$$.dirty[0]&1073741824|i.$$.dirty[1]&224|i.$$.dirty[3]&251658240|i.$$.dirty[4]&2&&ni.set((Ni||o||k||W||Bi&&!je)&&!Un&&U==="video"&&!T),i.$$.dirty[0]&2|i.$$.dirty[1]&97|i.$$.dirty[3]&1048576|i.$$.dirty[4]&32&&t(44,En=Ie.features.thumbTimer&&Ze&&U==="video"&&!r&&!T&&!Si&&(Ie.hideThumbTimerAfterTouch&&!H||!Ie.hideThumbTimerAfterTouch)),i.$$.dirty[0]&64|i.$$.dirty[1]&32|i.$$.dirty[3]&4194304|i.$$.dirty[4]&24&&t(45,hn=ri&&(xe&&E||!xe)&&v&&!T),i.$$.dirty[0]&2|i.$$.dirty[3]&268435456|i.$$.dirty[4]&6&&(!k&&ji&&!F&&pi(Ie.controls.hideTimeoutMobile),t(121,ji=k)),i.$$.dirty[0]&1|i.$$.dirty[1]&24&&t(46,Gi=Ee&&S%180?m.height/m.width:1),i.$$.dirty[1]&6|i.$$.dirty[3]&1073741824&&(t(47,bn=l>0),t(48,vn=!u&&l<a)),i.$$.dirty[0]&1342177280|i.$$.dirty[3]&536870912&&po(Gt,o,n)},[Ee,Ie,rt,$,_e,Ce,xe,st,at,nt,$e,fe,Se,et,Ne,tt,Fe,ct,dt,he,_t,Vt,Ut,zt,Qt,Wt,Ke,Xe,Gt,ut,o,r,a,l,m,S,T,U,W,Ti,Ii,ci,ln,an,En,hn,Gi,bn,vn,C,K,ce,z,x,P,J,le,Ae,ee,ge,Pe,Zt,At,ii,Ot,xt,si,Mt,ni,Xt,dn,Bt,qi,en,gi,wi,De,it,St,tn,Ai,mn,mi,Ui,Ci,ui,Kt,In,vi,pn,Pn,nn,_n,Si,on,jt,Wi,Ki,yi,Ri,Vn,zn,Di,un,oi,oo,ro,Wn,di,Te,We,kt,Ct,Ze,Et,ri,It,Bi,Ni,je,Un,ji,n,u,g,k,F,v,E,H,ne,de,q,X,oe,cn,Qn,Kn,so,Zn,Xn,wn,xn]}var vf=class extends N{constructor(e){super(),O(this,e,iy,ty,B,{store:109,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:110,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,shadowRootContainer:111,outerContainerRef:112,showMiniTimer:113,fullScreenTarget:114,playerStarted:21,showEndScreen:115,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,playPrevChapter:26,firstStart:27,seekTime:116},ey,[-1,-1,-1,-1,-1,-1])}},E_=vf;function ly(i){be(i,"svelte-w727va",`.root.svelte-w727va{--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 @@ var K_=Object.defineProperty,x_=Object.defineProperties;var j_=Object.getOwnProp
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;--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 ay(i){let e,t,n;function o(s){i[62](s)}let r={store:i[0],uiConfig:i[35],title:i[1],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[36],showNextPrevButtons:i[15],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[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],playPrevChapter:i[30],firstStart:i[38],showEndScreen:i[31]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new l_({props:r}),ve.push(()=>ze(e,"videoContainer",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&1&&(l.store=s[0]),a[0]&2&&(l.title=s[1]),a[0]&4&&(l.thumbUrl=s[2]),a[0]&8&&(l.interactiveContainer=s[3]),a[0]&16&&(l.live=s[4]),a[0]&32&&(l.autoplay=s[5]),a[0]&64&&(l.canRewindLive=s[6]),a[0]&128&&(l.showAds=s[7]),a[0]&256&&(l.adsSlotId=s[8]),a[0]&512&&(l.adsParams=s[9]),a[0]&1024&&(l.adsPreviewParam=s[10]),a[0]&2048&&(l.duration=s[11]),a[0]&4096&&(l.logoClickable=s[12]),a[0]&8192&&(l.logoHidden=s[13]),a[0]&32768&&(l.showNextPrevButtons=s[15]),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]&8&&(l.playerStarted=s[34]),a[0]&67108864&&(l.playNextVideo=s[26]),a[0]&134217728&&(l.playPrevVideo=s[27]),a[0]&268435456&&(l.repeatPlaylist=s[28]),a[0]&536870912&&(l.seekToInteractive=s[29]),a[0]&1073741824&&(l.playPrevChapter=s[30]),a[1]&1&&(l.showEndScreen=s[31]),!t&&a[1]&4&&(t=!0,l.videoContainer=s[33],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){V(e,s)}}}function uy(i){let e,t,n;function o(s){i[61](s)}let r={store:i[0],uiConfig:i[35],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[36],showNextPrevButtons:i[15],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[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],playPrevChapter:i[30],firstStart:i[38],seekTime:i[32],showEndScreen:i[31]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new E_({props:r}),ve.push(()=>ze(e,"videoContainer",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&1&&(l.store=s[0]),a[0]&4&&(l.thumbUrl=s[2]),a[0]&8&&(l.interactiveContainer=s[3]),a[0]&16&&(l.live=s[4]),a[0]&32&&(l.autoplay=s[5]),a[0]&64&&(l.canRewindLive=s[6]),a[0]&128&&(l.showAds=s[7]),a[0]&256&&(l.adsSlotId=s[8]),a[0]&512&&(l.adsParams=s[9]),a[0]&1024&&(l.adsPreviewParam=s[10]),a[0]&2048&&(l.duration=s[11]),a[0]&4096&&(l.logoClickable=s[12]),a[0]&8192&&(l.logoHidden=s[13]),a[0]&32768&&(l.showNextPrevButtons=s[15]),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]&8&&(l.playerStarted=s[34]),a[0]&67108864&&(l.playNextVideo=s[26]),a[0]&134217728&&(l.playPrevVideo=s[27]),a[0]&268435456&&(l.repeatPlaylist=s[28]),a[0]&536870912&&(l.seekToInteractive=s[29]),a[0]&1073741824&&(l.playPrevChapter=s[30]),a[1]&1&&(l.showEndScreen=s[31]),!t&&a[1]&4&&(t=!0,l.videoContainer=s[33],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){V(e,s)}}}function cy(i){let e,t,n,o,r=[uy,ay],s=[];function a(l,u){return l[14]?0:1}return t=a(i,[-1,-1,-1]),n=s[t]=r[t](i),{c(){e=I("div"),n.c(),f(e,"class","root svelte-w727va")},m(l,u){w(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&&y(e),s[t].d()}}}function fy(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:C}=e,{live:g}=e,{preload:S}=e,{autoplay:k}=e,{volume:F=void 0}=e,{muted:T=void 0}=e,{fromTime:v}=e,{canRewindLive:E}=e,{showAds:H}=e,{adsSlotId:U=void 0}=e,{adsParams:W=void 0}=e,{adsPreviewParam:ne=void 0}=e,{duration:de=void 0}=e,{logoClickable:q}=e,{logoHidden:X}=e,{isMobile:oe}=e,{showNextPrevButtons:K=!1}=e,{nextButtonActive:ce=!1}=e,{prevButtonActive:z=!1}=e,{endScreenVideoTitle:x=void 0}=e,{endScreenVideoThumb:P=void 0}=e,{isOneVideoPlaylist:J=!1}=e,{supportLink:le}=e,{shadowRootContainer:Ae=void 0}=e,{outerContainerRef:ee=void 0}=e,{fullScreenTarget:ge=void 0}=e,{failoverHosts:Ee=void 0}=e,{showMiniTimer:Te=!1}=e,{saveRate:Ie}=e,{playNextVideo:rt=ls}=e,{playPrevVideo:Pe=ls}=e,{repeatPlaylist:We=ls}=e,{seekToInteractive:$=ls}=e,{playPrevChapter:_e=ls}=e,{volumeMultiplier:Ce}=e,{showEndScreen:xe=!0}=e,{subscribers:st,stores:at}=s;Wf(l);let nt=Yt(),$e=l.logoLink,fe=r.ui.debugPanelVisible,Se=r.ui.playerSize,et=r.state.isLive$;D(i,et,pe=>t(64,n=pe));let tt=r.state.isInteractive&&ry.isAndroid,Fe,ct=null,dt=!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}),$f(r,at);let he=(pe=!1)=>{t(34,dt=!0),pe?r.actions.external.firstStart(H):r.actions.internal.firstStart(H)};function pt(pe){var si;let Zt=o||pe;Zt&&r.initVideo({container:Fe,sources:Zt,failoverHosts:Ee,subtitles:C,volumeMultiplier:Ce});let At=ny.get(Jr)==="true";fe.set(At),v>0&&r.actions.external.seekTime(v);let ii=oe?nt.volumeDefault:(si=F!=null?F:Ps())!=null?si:nt.volumeDefault,Dt=T!=null?T:_d();if(r.actions.external.setVolume(ii),r.actions.external.setMuted(Dt),r.getAdmanWrapper().setInitialVolume(Dt?0:ii),nt.features.trafficSaving){let Mt=gd();Mt&&r.actions.internal.setTrafficSavingEnabled(Mt)}if(nt.features.saveRate&&Ie){let Mt=yd();Mt&&!n&&r.actions.internal.setPlaybackRate(Mt)}if(nt.features.autoplayNext){let Mt=kd();Mt&&r.actions.internal.setAutoplayNextEnabled(Mt)}let Kt=pd(r.videoId);Kt&&r.actions.internal.setQuality(Kt),r.ui.isAutoplay.set(k),k?he():S&&nt.features.preload&&r.actions.internal.preload()}let kt=pe=>{if(window.ResizeObserver){let Zt,At;ct=new ResizeObserver(oy(ii=>{let Dt=ii[0];if(Dt){if(Dt.contentBoxSize){let Kt=Array.isArray(Dt.contentBoxSize)?Dt.contentBoxSize[0]:Dt.contentBoxSize;Zt=Kt.inlineSize,At=Kt.blockSize}else Dt.contentRect&&(Zt=Dt.contentRect.width,At=Dt.contentRect.height);Se.set({width:Zt,height:At})}},300)),ct.observe(pe)}Se.set({width:pe.clientWidth,height:pe.clientHeight})},Ct=()=>{document.hidden&&r.actions.external.stop()};Nt(()=>{tt&&document.addEventListener("visibilitychange",Ct),kt(Fe);let pe=st.map(At=>At.init({store:r,microStores:at,config:a,interactiveController:h}));if((g==null?void 0:g.status)==="upcoming"){r.actions.internal.setLiveWaitingStart(!0);return}if((g==null?void 0:g.status)==="waiting"){r.actions.internal.setLiveWaitingRecover(!0);return}if(((g==null?void 0:g.status)==="finished"||(g==null?void 0:g.status)==="postlive")&&!Object.keys(o||[]).length){r.actions.internal.setLiveWaitingRecord(!0);return}return pt(),()=>{tt&&document.removeEventListener("visibilitychange",Ct),ct==null||ct.disconnect(),pe.forEach(At=>At.unsubscribe()),r.destroy()}});function Ze(){dt?r.actions.external.play():he(!0)}function Et(){r.actions.external.pause()}function Vt(pe){oe||r.actions.external.setMuted(pe)}function ri(pe){oe||pe>=0&&pe<=1&&r.actions.external.setVolume(pe)}function qt(pe){r.actions.internal.seekTime(pe,sy.UNKNOWN)}function Ut(pe){r.actions.external.seekEpisodeStartTime(pe)}function Qt(){r.actions.external.returnFocusToEpisodes()}function zt(pe){r.actions.external.setPlaybackRate(pe)}function Ke(pe){r.actions.external.setAutoQualityLimits(pe)}function Xe(pe){Fe=pe,t(33,Fe)}function It(pe){Fe=pe,t(33,Fe)}return i.$$set=pe=>{"sources"in pe&&t(39,o=pe.sources),"store"in pe&&t(0,r=pe.store),"microStoresRoot"in pe&&t(40,s=pe.microStoresRoot),"videoConfig"in pe&&t(41,a=pe.videoConfig),"uiConfig"in pe&&t(42,l=pe.uiConfig),"title"in pe&&t(1,u=pe.title),"thumbUrl"in pe&&t(2,c=pe.thumbUrl),"interactiveContainer"in pe&&t(3,m=pe.interactiveContainer),"interactiveController"in pe&&t(43,h=pe.interactiveController),"subtitles"in pe&&t(44,C=pe.subtitles),"live"in pe&&t(4,g=pe.live),"preload"in pe&&t(45,S=pe.preload),"autoplay"in pe&&t(5,k=pe.autoplay),"volume"in pe&&t(46,F=pe.volume),"muted"in pe&&t(47,T=pe.muted),"fromTime"in pe&&t(48,v=pe.fromTime),"canRewindLive"in pe&&t(6,E=pe.canRewindLive),"showAds"in pe&&t(7,H=pe.showAds),"adsSlotId"in pe&&t(8,U=pe.adsSlotId),"adsParams"in pe&&t(9,W=pe.adsParams),"adsPreviewParam"in pe&&t(10,ne=pe.adsPreviewParam),"duration"in pe&&t(11,de=pe.duration),"logoClickable"in pe&&t(12,q=pe.logoClickable),"logoHidden"in pe&&t(13,X=pe.logoHidden),"isMobile"in pe&&t(14,oe=pe.isMobile),"showNextPrevButtons"in pe&&t(15,K=pe.showNextPrevButtons),"nextButtonActive"in pe&&t(16,ce=pe.nextButtonActive),"prevButtonActive"in pe&&t(17,z=pe.prevButtonActive),"endScreenVideoTitle"in pe&&t(18,x=pe.endScreenVideoTitle),"endScreenVideoThumb"in pe&&t(19,P=pe.endScreenVideoThumb),"isOneVideoPlaylist"in pe&&t(20,J=pe.isOneVideoPlaylist),"supportLink"in pe&&t(21,le=pe.supportLink),"shadowRootContainer"in pe&&t(22,Ae=pe.shadowRootContainer),"outerContainerRef"in pe&&t(23,ee=pe.outerContainerRef),"fullScreenTarget"in pe&&t(24,ge=pe.fullScreenTarget),"failoverHosts"in pe&&t(49,Ee=pe.failoverHosts),"showMiniTimer"in pe&&t(25,Te=pe.showMiniTimer),"saveRate"in pe&&t(50,Ie=pe.saveRate),"playNextVideo"in pe&&t(26,rt=pe.playNextVideo),"playPrevVideo"in pe&&t(27,Pe=pe.playPrevVideo),"repeatPlaylist"in pe&&t(28,We=pe.repeatPlaylist),"seekToInteractive"in pe&&t(29,$=pe.seekToInteractive),"playPrevChapter"in pe&&t(30,_e=pe.playPrevChapter),"volumeMultiplier"in pe&&t(51,Ce=pe.volumeMultiplier),"showEndScreen"in pe&&t(31,xe=pe.showEndScreen)},i.$$.update=()=>{i.$$.dirty[0]&16385&&r.ui.isMobile.set(oe)},[r,u,c,m,g,k,E,H,U,W,ne,de,q,X,oe,K,ce,z,x,P,J,le,Ae,ee,ge,Te,rt,Pe,We,$,_e,xe,qt,Fe,dt,nt,$e,et,he,o,s,a,l,h,C,S,F,T,v,Ee,Ie,Ce,pt,Ze,Et,Vt,ri,Ut,Qt,zt,Ke,Xe,It]}var yf=class extends N{constructor(e){super(),O(this,e,fy,cy,B,{sources:39,store:0,microStoresRoot:40,videoConfig:41,uiConfig:42,title:1,thumbUrl:2,interactiveContainer:3,interactiveController:43,subtitles:44,live:4,preload:45,autoplay:5,volume:46,muted:47,fromTime:48,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,isMobile:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:22,outerContainerRef:23,fullScreenTarget:24,failoverHosts:49,showMiniTimer:25,saveRate:50,playNextVideo:26,playPrevVideo:27,repeatPlaylist:28,seekToInteractive:29,playPrevChapter:30,volumeMultiplier:51,showEndScreen:31,initVideo:52,play:53,pause:54,setMuted:55,setVolume:56,seekTime:32,seekEpisodeStartTime:57,returnFocusToEpisodes:58,setPlaybackRate:59,setAutoQualityLimits:60},ly,[-1,-1,-1])}get initVideo(){return this.$$.ctx[52]}get play(){return this.$$.ctx[53]}get pause(){return this.$$.ctx[54]}get setMuted(){return this.$$.ctx[55]}get setVolume(){return this.$$.ctx[56]}get seekTime(){return this.$$.ctx[32]}get seekEpisodeStartTime(){return this.$$.ctx[57]}get returnFocusToEpisodes(){return this.$$.ctx[58]}get setPlaybackRate(){return this.$$.ctx[59]}get setAutoQualityLimits(){return this.$$.ctx[60]}},A_=yf;function dy(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function my(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var wf=class extends N{constructor(e){super(),O(this,e,my,dy,B,{})}},M_=wf;function py(i){let e,t;return e=new M_({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function _y(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 kf=class extends N{constructor(e){super(),O(this,e,_y,py,B,{isWhite:1})}},L_=kf;function hy(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 V_(i){let e,t;return{c(){e=I("div"),t=qe(i[0]),f(e,"class","title svelte-1y9fytq")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&1&&Ge(t,n[0])},d(n){n&&y(e)}}}function R_(i){let e,t;return e=new L_({props:{isWhite:!!i[1]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function gy(i){let e,t,n,o,r=i[0]&&V_(i),s=(!i[0]||!i[1])&&R_(i);return{c(){e=I("div"),r&&r.c(),t=Y(),s&&s.c(),f(e,"class","playerStub svelte-1y9fytq"),f(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,l){w(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=V_(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=R_(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&&y(e),r&&r.d(),s&&s.d()}}}function by(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 Cf=class extends N{constructor(e){super(),O(this,e,by,gy,B,{title:0,thumbUrl:1},hy)}},B_=Cf;import{cloneDeepWith as qy,InterfaceLanguage as Uy,clientChecker as zy,isMobile as Wy,isNonNullable as Pf,Logger as Ky,Subscription as xy}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";import{OneStat as jy}from"@vkontakte/videoplayer-statistics";import{Logger as vy,Subscription as yy}from"@vkontakte/videoplayer-shared";var Ul=class{constructor(){this.subscription=new yy,this.logger=new vy,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){var t,n;if(this.isSupported())for(let[o,r]of e)try{(n=(t=navigator.mediaSession).setActionHandler)==null||n.call(t,o,r)}catch(s){throw new Error(`The media session action "${o}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||this.subscription.add(e.state.positionExact$.subscribe(t=>{var r,s;let n=Ye(e.state.currentPlaybackRate$),o=Ye(e.state.duration$);if(!(!isFinite(t)||!isFinite(o)))try{(s=(r=navigator.mediaSession).setPositionState)==null||s.call(r,{position:t,playbackRate:n,duration:o})}catch(a){this.log({message:`MediaSession setPositionState can't call with position: ${t} and duration: ${o}`})}}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as Iy,clientChecker as Py,detectEmbed as Ey}from"@vkontakte/videoplayer-shared";function wy(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=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("g"),n=M("path"),o=M("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"),we(e,u)},m(c,m){w(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),we(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&&y(e),a&&a.d(c)}}}function ky(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Sf=class extends N{constructor(e){super(),O(this,e,ky,wy,B,{})}},N_=Sf;function Cy(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 Sy(i){let e,t,n,o,r,s,a;return n=new N_({}),{c(){e=I("div"),t=I("div"),R(n.$$.fragment),o=Y(),r=I("span"),s=qe(i[0]),f(t,"class","dummy-image svelte-1pbsod4"),G(t,"desktop",!i[1]),f(r,"class","title svelte-1pbsod4"),f(e,"class","player-pip-dummy svelte-1pbsod4"),G(e,"is-pip-api",i[2])},m(l,u){w(l,e,u),_(e,t),L(n,t,null),_(e,o),_(e,r),_(r,s),a=!0},p(l,[u]){(!a||u&2)&&G(t,"desktop",!l[1]),(!a||u&1)&&Ge(s,l[0])},i(l){a||(d(n.$$.fragment,l),a=!0)},o(l){p(n.$$.fragment,l),a=!1},d(l){l&&y(e),V(n)}}}function Ty(i,e,t){let n,o,r=ot(),s=!!r.webApi.pictureInPictureApi,a=r.interfaceLanguage$;D(i,a,c=>t(5,n=c));let l=r.ui.isMobile;D(i,l,c=>t(1,o=c));let u;return i.$$.update=()=>{i.$$.dirty&32&&t(0,u=n&&j("pip_dummy_title"))},[u,o,s,a,l,n]}var Tf=class extends N{constructor(e){super(),O(this,e,Ty,Sy,B,{},Cy)}},D_=Tf;var Ay=460,My=280,as=class{constructor(){this.info={isActive$:new Iy(!1),type:1}}isSupported(){let{isEmbed:e}=Ey();return"documentPictureInPicture"in window&&!Py.isYandex&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}request(){return mt(this,null,function*(){var r,s;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:Ay,height:My,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(l=>l.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 D_({target:this.playerParentShadowRoot,context:this.svelteContext}),(r=this.pipWindow)==null||r.document.body.append(n),this.info.isActive$.next(!0),(s=this.pipWindow)==null||s.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return mt(this,null,function*(){return new Promise(e=>{var t;(t=documentPictureInPicture.window)==null||t.close(),e()})})}dispose(){return mt(this,null,function*(){yield this.remove()})}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function O_(i){return i instanceof as}var zl=class{static getLatestSupportedVersion(){let e=new lr,t=new as;if(t.isSupported())return t;if(e.isSupported())return e}};function Wl(i,e){var o,r;let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let s of t)n[s]=(r=(o=e[s])!=null?o:i[s])!=null?r:void 0;return n}var F_="Inner error. Unexpectedly root annotation container null reference exception",H_="Annotation with such name already exists",q_="Annotation with such name does not exist";var zr=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as Ly,Subscription as Vy,throttleFn as Ry}from"@vkontakte/videoplayer-shared";var By="1",Ny=100,Kl=class{constructor(){this.annotations=new Map;this.subscriptions=new Vy}init(e){this.rootAnnotationsContainer=e;let t=Ry(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},Ny);this.subscriptions.add(Ly(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){var n;if(!this.rootAnnotationsContainer)throw new zr(F_);if(this.annotations.has(e))throw new zr(H_);t.style.zIndex=(n=t.style.zIndex)!=null?n:By,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 zr(q_);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(){}};import{assertNonNullable as xl,Subscription as Dy}from"@vkontakte/videoplayer-shared";var Yn=class{init({store:e,microStores:t,interactiveController:n,config:o}){return xl(e),xl(t),xl(o),o.interactiveData&&xl(n),this.subscription=new Dy,this.subscription}};var us=class extends Yn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=yt(Qe({},Oe(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 cs=class extends Yn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=yt(Qe({},Oe(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=Ye(c),h=()=>m&&Ye(u);return n.add(u.subscribe(C=>{if(!m)return;let g=Ye(s);Ye(l)?this.state$.set(C):g!==null&&this.state$.set(!g||C)})),n.add(l.subscribe(C=>{this.state$.set(!C||h())})),n.add(s.subscribe(C=>{if(C===null)return;let g=Ye(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!C)})),n}};var fs=class extends Yn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Oe("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}};import{combine as Oy}from"@vkontakte/videoplayer-shared";var If=Oe(!1),jl=null,ds=class extends Yn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=yt(Qe({},If),{set:(t,n=!1)=>{t!==Ye(If)&&(this.clearTimeout(),If.set(t),!t&&jl&&(jl=!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=>{Ye(s)&&m&&this.state$.set(!1)}));let c=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return n.add(Oy({isPlaying$:a,isInteractiveTime$:s,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:h,interactiveTimeIndicator:C})=>{var g,S;if(!(!m||!(C!=null&&C.isDisplayed))){if(!h)return this.state$.set(!1);c.tooltipHelpHintActive&&jl===null&&(jl=!0,c.tooltipHelpHintActive=!1,this.state$.set(!0),(S=(g=o.callbacks)==null?void 0:g.onInteractiveTimeIndicatorHintDeactivated)==null||S.call(g))}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as Fy,noop as Hy}from"@vkontakte/videoplayer-shared";var ms=class extends Yn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=yt(Qe({},Oe(null)),{toggle:Hy});this.checkIfShouldHide=t=>Dr(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(Ye(s)))return;let a=Ye(this.state$),{isEnded$:l,playbackState$:u}=o.state,{disabledControls$:c}=o.ui.controls,m=Ye(l),h=Ye(u);a?(this.state$.set(!1),r==null||r.toggleGraphView(!1),c.remove(ra),!m&&this.graphMadePause&&o.actions.internal.play()):(this.graphMadePause=h==="playing",this.state$.set(!0),r==null||r.toggleGraphView(!0),c.add(ra),!m&&this.graphMadePause&&o.actions.internal.pause())},n.add(Fy({graphIsOpened:this.state$,currentGridType:s}).subscribe(({graphIsOpened:a,currentGridType:l})=>{this.checkIfShouldHide(l)&&a&&(r==null||r.toggleGraphView(!1),this.state$.set(!1))})),n}};var U_=()=>[us,cs,fs,ds,ms].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:yt(Qe({},e),{[n.stateName]:n.state$})}},{subscribers:[],stores:{}});var Gy={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Uy.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:Wy(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0},Gl=class extends HTMLElement{constructor(){var t;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.createOneStat=(t,n={})=>{var v,E,H,U;let{albumId:o,statPlace:r,statUserSalt:s,statTrackCode:a,refreshStatAuthToken:l,autoplay:u,isMobile:c,refDomain:m,deviceId:h,interactiveData:C}=Wl(this.videoConfig,n),g=(v=C==null?void 0:C.projectInfo)==null?void 0:v.pid,S=(H=(E=this.interactiveController)==null?void 0:E.state.isReplay$.getValue())!=null?H:!1;S&&(this.prevIsid=void 0);let{unitedVideoId:k,isClip:F=!1}=t;if(this.uiConfig.features.statistics&&k)return new jy(Qe({movieId:k,albumId:o,place:r,trackCode:a,autoplay:(U=u&&!this.interactiveController)!=null?U:!1,mobile:c,clip:F,refDomain:m,deviceId:h},g&&(!this.isInited||S)&&{projectId:Number(g)}),Qe({refreshAuthToken:l,userSalt:s,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))};this.logger=new Ky,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new xy,this.graphMadePause=!1,(t=window==null?void 0:window.videoPlayerConfig)!=null&&t.debugLogs&&this.subscription.add(this.logger.log$.subscribe(n=>{console.log("%c player web component ","background:#77dd77;",`${n.component}`,n.message)}))}connectedCallback(){var o,r;if(this.isInited)return;this.initPlayerRootContainers();let t=(o=this.getAttribute("stub-title"))!=null?o:void 0,n=(r=this.getAttribute("stub-thumb-url"))!=null?r:void 0;this.svelteStubComponent=new B_({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){var t,n,o,r,s,a;(t=this.annotationsApi)==null||t.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),(o=this.svelteRootComponent)==null||o.$destroy(),(r=this.svelteStubComponent)==null||r.$destroy(),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(a=this.interactiveController)==null||a.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.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:!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){var o;let n=(o=this.store)==null?void 0:o.ui.controls.disabledControls$;return(n==null?void 0:n.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){var pt,kt,Ct,Ze,Et,Vt,ri,qt,Ut,Qt,zt;if(!this.videoConfig)return;let{albumId:r,statPlace:s,statAuthToken:a,preload:l,autoplay:u,volume:c,muted:m,fromTime:h,canRewindLive:C,supportLink:g,showAds:S,adsSlotId:k,adsParams:F={},adsPreviewParam:T,interfaceLanguage:v,isCyrillicRelatedInterface:E,logoClickable:H,logoHidden:U,isMobile:W,isAudioDisabled:ne,isLiveCatchUpMode:de,fullScreenTarget:q,failoverHosts:X,canDownload:oe,callbacks:K,interactiveData:ce,showThumbTimer:z,additionalButtons:x=[],additionalSettingsMenuItems:P=[],additionalContextMenuItems:J=[],repeat:le,saveRate:Ae,volumeMultiplier:ee,showEndScreen:ge}=Wl(this.videoConfig,n),{sources:Ee,title:Te,thumbUrl:Ie,unitedVideoId:rt,isClip:Pe=!1,duration:We,adsParams:$={},videoEpisodes:_e,previewThumbsData:Ce,subtitles:xe,live:st}=t,at=Qe(Qe({},F),$),nt=this.getNextVideoInfo(),$e={sources:Ee,title:Te,thumbUrl:Ie,subtitles:xe,unitedVideoId:rt,isClip:Pe,live:st,albumId:r,statPlace:s,autoplay:u,muted:m,volume:c,fromTime:h,canRewindLive:C,showAds:S,adsSlotId:k,adsParams:at,adsPreviewParam:T,duration:We,logoClickable:H,logoHidden:U,isMobile:W,repeat:le,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:nt.nextVideoTitle,endScreenVideoThumb:nt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},fe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify($e)}`});let Se=(pt=this.interactiveController)==null?void 0:pt.state.statistics$.getValue(),et=(Se==null?void 0:Se.oneStat)||this.createOneStat(t,n);et&&(this.statistics=new _l(et,Se==null?void 0:Se.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new sr(this.uiConfig.sentry,{version:Tr,env:Ts},{movieId:rt,albumId:r,place:s,autoplay:(kt=u&&!this.interactiveController)!=null?kt:!1,mobile:W,clip:Pe}),this.interactiveController&&((Ze=this.prevIsid)!=null||(this.prevIsid=(Ct=this.statistics)==null?void 0:Ct.oneStat.isid$.getValue())),this.sentry=Qe(Qe({},this.sentry),sr.getInstance());let tt=!!ce,Fe=[],ct="tooltip_interactive_go_back_disabled_first";if(tt&&this.interactiveController){let Ke=this.interactiveController.state.isInitialChapter$.getValue(),Xe=this.interactiveController.getHistoryState();Ke&&Fe.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Fe.push("SEEK_TO_INTERACTIVE_BUTTON"),Xe.hasPrevChapter$.getValue()||(Fe.push("PLAY_PREV_CHAPTER_BUTTON"),Ke||(Xe.isGoBackLimited$.getValue()?ct="tooltip_interactive_go_back_disabled_limit":ct="tooltip_interactive_go_back_disabled"))}let dt=()=>{var Xe;this.isInited=!1,this.prevIsid=void 0;let Ke=(o==null?void 0:o.info.isEnded$.getValue())&&((Xe=this.interactiveController)==null?void 0:Xe.state.isEndChapter$.getValue());K.onReplayInteractiveVideo&&!Ke?K.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Tm({player:o,interfaceLanguage:v,isCyrillicRelatedInterface:E,videoId:rt,isClip:Pe,isLiveCatchUpMode:de,isAudioDisabled:ne,statAuthToken:a,callbacks:K,webApi:fe,videoEpisodes:_e,previewThumbsData:Ce,canDownload:oe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Fe,isInteractive:tt,saveRate:Ae,interactiveRanges$:(Et=this.interactiveController)==null?void 0:Et.state.interactiveRanges$,isInteractiveTime$:(Vt=this.interactiveController)==null?void 0:Vt.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:dt,playPrevChapterDisabledTooltip:ct,hasInteractiveBranches:!!((qt=(ri=this.interactiveController)==null?void 0:ri.getChapterBranches())!=null&&qt.length),additionalButtons:this.uiConfig.features.additionalButtons?x:[],additionalSettingsMenuItems:P!=null?P:[],additionalContextMenuItems:J!=null?J:[],looped:le&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:he}=this.microStoresRoot=U_();this.subscription.add(this.store.state.currentFormat$.subscribe(Ke=>{var Xe;return(Xe=K==null?void 0:K.onCurrentFormatChanged)==null?void 0:Xe.call(K,Ke)})),this.subscription.add(he.interactiveControlsOpacity$.subscribe(Ke=>{var Xe;Ke!==null&&((Xe=this==null?void 0:this.interactiveController)==null||Xe.setDisabledControls(Ke))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Ke=>{var Xe;return(Xe=K==null?void 0:K.onThroughputEstimationChanged)==null?void 0:Xe.call(K,Ke)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Ke=>{var Xe;return(Xe=K==null?void 0:K.onTrafficSavingEnabledChanged)==null?void 0:Xe.call(K,Ke)})),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ke=>{var Xe;return(Xe=K==null?void 0:K.onCurrentPlaybackRateChanged)==null?void 0:Xe.call(K,Ke)})),this.subscription.add(this.store.state.volume$.subscribe(Ke=>{var Xe;return(Xe=K==null?void 0:K.onVolumeChange)==null?void 0:Xe.call(K,Ke)})),this.subscription.add(this.store.state.muted$.subscribe(Ke=>{var Xe,It;return Ke?(Xe=K==null?void 0:K.onMute)==null?void 0:Xe.call(K):(It=K==null?void 0:K.onUnmute)==null?void 0:It.call(K)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Ke=>{var Xe;return(Xe=K==null?void 0:K.onVideoBitrateChanged)==null?void 0:Xe.call(K,Ke)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Ke=>{var It;let Xe=(It=this.store)==null?void 0:It.ui.controls.disabledControls$;Xe&&(Ke&&!Xe.includes($r)&&Xe.add($r),Ke||Xe.remove($r))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(Ke=>mt(this,null,function*(){var It;if(!zy.isSamsungBrowser||!Ke||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((It=this.videoConfig)==null?void 0:It.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Ke=>{var Xe;return(Xe=K==null?void 0:K.onVSIDChanged)==null?void 0:Xe.call(K,Ke)})),this.initMediaSession(),this.svelteRootComponent=new A_({target:this.playerContainer,props:{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ee,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Te,thumbUrl:Ie,subtitles:xe,live:st,preload:l,autoplay:u,muted:m,volume:c,fromTime:h,canRewindLive:C,supportLink:g,showAds:S,adsSlotId:k,adsParams:at,adsPreviewParam:T,duration:We,logoClickable:H,logoHidden:U,isMobile:W,failoverHosts:X,fullScreenTarget:q,saveRate:Ae,shadowRootContainer:this.shadowRootContainer,showMiniTimer:z,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:nt.nextVideoTitle,endScreenVideoThumb:nt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ee,showEndScreen:ge}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(zt=(Qt=(Ut=this.videoConfig)==null?void 0:Ut.callbacks)==null?void 0:Qt.onInited)==null||zt.call(Qt))}addPlayerInfoSubscriptions(){var r;let t=this.store;if(!t)return;let n=(r=this.videoConfig)==null?void 0:r.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(s=>{var a;return(a=n.onPlayerPhaseChanged)==null?void 0:a.call(n,s)})).add(t.state.playbackState$.subscribe(s=>{var a;return(a=n.onPlaybackStateChanged)==null?void 0:a.call(n,s)})).add(t.state.isLive$.subscribe(s=>{var a;return(a=n.onIsLiveChanged)==null?void 0:a.call(n,s)})).add(t.state.isActiveLive$.subscribe(s=>{var a;return(a=n.onIsActiveLiveChanged)==null?void 0:a.call(n,s)})).add(t.state.isAudioAvailable$.subscribe(s=>{var a;return(a=n.onIsAudioAvailableChanged)==null?void 0:a.call(n,s)})).add(t.state.currentQuality$.subscribe(s=>{var a;return(a=n.onCurrentQualityChanged)==null?void 0:a.call(n,s)})).add(t.state.availableQualities$.subscribe(s=>{var a;return(a=n.onAvailableQualitiesChanged)==null?void 0:a.call(n,s.map(({value:l})=>l).filter(l=>l!=="auto"))})).add(t.state.availableAudioStreams$.subscribe(s=>{s.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(t.ui.isPictureInPictureActive$.subscribe(s=>{var a,l;return s?(a=n.onPiPEnter)==null?void 0:a.call(n):(l=n.onPiPExit)==null?void 0:l.call(n)}));let o=n==null?void 0:n.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(s=>{var a;return(a=o.onControlsVisibleChanged)==null?void 0:a.call(o,s)})).add(t.ui.isMobile.subscribe(s=>{var a;return(a=o.onIsMobileChanged)==null?void 0:a.call(o,s)})).add(t.ui.playerSize.subscribe(s=>{var a;return(a=o.onPlayerSizeChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.prevButton.subscribe(s=>{var a;return(a=o.onPrevButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.playButton.subscribe(s=>{var a;return(a=o.onPlayButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.replayButton.subscribe(s=>{var a;return(a=o.onReplayButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.nextButton.subscribe(s=>{var a;return(a=o.onNextButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.playPrevChapterButton.subscribe(s=>{var a;return(a=o.onPlayPrevChapterChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.seekToInteractiveButton.subscribe(s=>{var a;return(a=o.onSeekToInteractiveButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.interactiveGraphButton.subscribe(s=>{var a;return(a=o.onGraphButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.liveButton.subscribe(s=>{var a;return(a=o.onLiveButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.time.subscribe(s=>{var a;return(a=o.onTimeUpdateChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.episodes.subscribe(s=>{var a;return(a=o.onEpisodesChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.subtitles.subscribe(s=>{var a;return(a=o.onSubtitlesChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.settings.subscribe(s=>{var a;return(a=o.onSettingsChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.fullscreen.subscribe(s=>{var a;return(a=o.onFullscreenChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.chromecast.subscribe(s=>{var a;return(a=o.onChromecastChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.pip.subscribe(s=>{var a;return(a=o.onPipChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.vkLogo.subscribe(s=>{var a;return(a=o.onVkLogoChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.interactiveTimeIndicator.subscribe(s=>{var a;return(a=o.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.timeline.subscribe(s=>{var a;return(a=o.onTimelineChanged)==null?void 0:a.call(o,s)}))}playNextVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch(o){this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch(o){this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){var r;if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&Pf(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){var t;(t=this.interactiveController)==null||t.playPrevChapter()}seekToInteractive(){var n;let t=(n=this.interactiveController)==null?void 0:n.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}initInteractives(){return mt(this,null,function*(){var t,n,o,r;if((t=this.videoConfig)!=null&&t.interactiveData)try{let{Interactives:s,EVENT_NAMES:a,CustomError:l}=yield import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let u=(n=this.store)==null?void 0:n.interfaceLanguage$,c=u?Ye(u):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:h,historyApi:C,videoLoader:g}=this.videoConfig.interactiveData;this.interactiveController=new s({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:c,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:h,historyApi:C,vkVideoLoader:g,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat});let{isInteractiveExpectation$:S,isSeekable$:k}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(k.subscribe(T=>{if(!this.isInited)return;let v=this.store;T?v.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):v.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(S.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let F=!0;if(this.interactiveController.on(a.playerChanged,T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=yt(Qe({},T.config),{title:(m==null?void 0:m.title)||T.config.title});let v=F?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,v),F&&(F=!1)}),this.interactiveController.on(a.interactives,({type:T,actionType:v})=>{var H,U,W,ne;if(!this.store)return;let E=S.getValue();if(T==="action-choice"&&v==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Ss)),T==="action-choice-canceled"){let de=Ye(this.store.state.isPlaying$)||E;if((H=this.videoConfig)!=null&&H.isMobile&&de){this.store.ui.interactiveHideMobileControls.set(!0);return}(ne=(U=this.videoConfig)==null?void 0:(W=U.callbacks).onDisabledInteractiveClick)==null||ne.call(W)}}),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(v=>{var E,H,U;v.length&&((U=(H=(E=this.videoConfig)==null?void 0:E.callbacks)==null?void 0:H.onInteractiveHistoryChanged)==null||U.call(H,v))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,v,E,H;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(H=(v=this.videoConfig)==null?void 0:(E=v.callbacks).onInteractiveTimeIndicatorClick)==null||H.call(E)})),this.interactiveController.on(a.errors,T=>{this.log({message:T.toString()})})}catch(s){this.log({message:s.message})}})}initPlayer(t,n={}){var o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W;if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=Wl(Gy,qy(t,ne=>ne instanceof HTMLElement?ne:void 0)),this.uiConfig=zf((o=n.ui)!=null?o:{}),this.coreConfig=(r=n.core)!=null?r:{configName:[]},this.statisticsConfig=(s=n.statistics)!=null?s:{},this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},Pf(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(u=(l=this.uiConfig.features.mediaSession)!=null?l:this.videoConfig.isMediaSessionEnabled)!=null?u:!0),Pf(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(m=(c=this.uiConfig.features.pip)!=null?c:this.videoConfig.isPictureInPictureEnabled)!=null?m:!0,this.uiConfig.features.dpip=(C=(h=this.uiConfig.features.dpip)!=null?h:this.videoConfig.isPictureInPictureEnabled)!=null?C:!0),this.videoConfig.isMobile=(g=this.uiConfig.isMobile)!=null?g:this.videoConfig.isMobile,(S=this.videoConfig).autoplay&&(S.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(k=this.uiConfig.ads.enable)!=null?k:this.videoConfig.showAds,this.videoConfig.adsSlotId=(F=this.uiConfig.ads.slot)!=null?F:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(T=this.uiConfig.ads.preview)!=null?T:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((v=this.uiConfig.showLogo)!=null?v:!this.videoConfig.logoHidden),(E=this.videoConfig).canRewindLive&&(E.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(H=this.videoConfig.supportLink)!=null?H:this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=zl.getLatestSupportedVersion():this.pictureInPictureApi=new lr),this.mediaSessionApi=this.uiConfig.features.mediaSession?new Ul:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Kl:void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(U=this.svelteStubComponent)==null||U.$destroy(),(W=this.svelteRootComponent)==null||W.$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[0]),O_(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){var o;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();(o=this.svelteRootComponent)==null||o.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){var t,n;this.mediaSessionApi&&((t=this.unsubscribePlayerPhaseSubscription)==null||t.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(n=this.store)==null?void 0:n.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}=Qe({},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(){var t,n,o,r;this.isControlDisabled("PLAY_BUTTON")||(t=this.store)!=null&&t.playerPhase.is("LiveWaitingStart")||(n=this.store)!=null&&n.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var t;this.log({message:"pause"}),(t=this.svelteRootComponent)==null||t.pause()}stop(){var o,r,s;if(!this.videoConfig)return;this.log({message:"stop"});let t=!!this.interactiveController;t&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0),(o=this.svelteStubComponent)==null||o.$destroy(),(r=this.mediaSessionApi)==null||r.destroy();let n=this.videoConfig.videos[0];n&&((s=this.svelteRootComponent)==null||s.$destroy(),t?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(n))}setMuted(t){var n;this.log({message:`set muted, muted: ${t}`}),(n=this.svelteRootComponent)==null||n.setMuted(t)}setVolume(t){var n;this.log({message:`set volume, volume: ${t}`}),(n=this.svelteRootComponent)==null||n.setVolume(t)}setRepeat(t){var n;this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,(n=this.svelteRootComponent)==null||n.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){var n;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekTime(t))}seekEpisodeStartTime(t){var n;this.log({message:`seek episode start time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekEpisodeStartTime(t)}returnFocusToEpisodes(){var t;this.log({message:"return focus to episodes button"}),(t=this.svelteRootComponent)==null||t.returnFocusToEpisodes()}setPlaybackRate(t){var n;this.log({message:`set playback rate to: ${t}`}),(n=this.svelteRootComponent)==null||n.setPlaybackRate(t)}setAutoQualityLimits(t){var n,o,r;this.log({message:`set auto quality limitation. Max: ${(n=t.max)!=null?n:"none"}. Min: ${(o=t.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(t)}addLanguage(t){var n;(n=this.store)==null||n.actions.internal.addLanguage(t)}setLanguage(t){return mt(this,null,function*(){var n;yield(n=this.store)==null?void 0:n.actions.internal.setLanguage(t)})}setLiveStart(t){var n,o,r;this.log({message:"live started"}),(n=this.store)==null||n.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(t,{autoplay:!0})}setLiveWaitingRecover(){var t,n;this.log({message:"live waiting"}),(t=this.store)==null||t.actions.internal.setLiveWaitingRecover(!0),(n=this.store)==null||n.destroy()}setLiveWaitingRecord(){var t,n;this.log({message:"post live"}),(t=this.store)==null||t.actions.internal.setLiveWaitingRecord(!0),(n=this.store)==null||n.destroy()}setLiveEnd(t){var n,o,r;this.log({message:"live ended"}),(n=this.store)==null||n.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingRecord(!1),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){var t,n;return(n=(t=this.statistics)==null?void 0:t.oneStat.getDeviceId())!=null?n:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(t){return mt(this,null,function*(){var n;if(this.interactiveController&&((n=this.store)!=null&&n.state.positionExact$)){let{EVENT_NAMES:o}=yield import("@vkontakte/videoplayer-interactive"),r=Ye(this.store.state.positionExact$),a=Ye(this.store.state.interactiveEpisodes$).find(u=>!u.completed);this.interactiveController.once(o.playerChanged,()=>{a&&r>=a.time?this.seekTime(a.time):this.seekTime(r),t==null||t()});let l=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:l.chapter.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(t,n=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){var t;(t=this.store)==null||t.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(t,n){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(t,n)}addAdditionalSettingsItem(t){var n;(n=this.store)==null||n.actions.external.addAdditionalSettingsItem(t)}removeAdditionalSettingsItem(t){var n;(n=this.store)==null||n.actions.external.removeAdditionalSettingsItem(t)}updateAdditionalContextItem(t,n){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(t,n)}addAdditionalContextItem(t){var n;(n=this.store)==null||n.actions.external.addAdditionalContextItem(t)}removeAdditionalContextItem(t){var n;(n=this.store)==null||n.actions.external.removeAdditionalContextItem(t)}updateAdditionalButton(t,n){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(t,n)}addAdditionalButton(t){var n;(n=this.store)==null||n.actions.external.addAdditionalButton(t)}removeAdditionalButton(t){var n;(n=this.store)==null||n.actions.external.removeAdditionalButton(t)}updateStatContext(t){this.statistics&&this.statistics.oneStat.updateContext(t)}};import{InterfaceLanguage as qz,VKNumericLanguage as Uz,loadVKLangPack as zz}from"@vkontakte/videoplayer-shared";import{VideoQuality as Kz,VideoFormat as xz}from"@vkontakte/videoplayer-core";var Bz=()=>{window.customElements.define("vk-video-player",Gl)};export{hl as ControlButtonType,wo as GridTypes,qz as InterfaceLanguage,Ws as MenuItemType,Tr as VERSION,Uz as VKNumericLanguage,xz as VideoFormat,Kz as VideoQuality,zz as loadVKLangPack,Bz as registerPlayerWebComponent};
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;--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 ay(i){let e,t,n;function o(s){i[62](s)}let r={store:i[0],uiConfig:i[35],title:i[1],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[36],showNextPrevButtons:i[15],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[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],playPrevChapter:i[30],firstStart:i[38],showEndScreen:i[31]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new l_({props:r}),ve.push(()=>ze(e,"videoContainer",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&1&&(l.store=s[0]),a[0]&2&&(l.title=s[1]),a[0]&4&&(l.thumbUrl=s[2]),a[0]&8&&(l.interactiveContainer=s[3]),a[0]&16&&(l.live=s[4]),a[0]&32&&(l.autoplay=s[5]),a[0]&64&&(l.canRewindLive=s[6]),a[0]&128&&(l.showAds=s[7]),a[0]&256&&(l.adsSlotId=s[8]),a[0]&512&&(l.adsParams=s[9]),a[0]&1024&&(l.adsPreviewParam=s[10]),a[0]&2048&&(l.duration=s[11]),a[0]&4096&&(l.logoClickable=s[12]),a[0]&8192&&(l.logoHidden=s[13]),a[0]&32768&&(l.showNextPrevButtons=s[15]),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]&8&&(l.playerStarted=s[34]),a[0]&67108864&&(l.playNextVideo=s[26]),a[0]&134217728&&(l.playPrevVideo=s[27]),a[0]&268435456&&(l.repeatPlaylist=s[28]),a[0]&536870912&&(l.seekToInteractive=s[29]),a[0]&1073741824&&(l.playPrevChapter=s[30]),a[1]&1&&(l.showEndScreen=s[31]),!t&&a[1]&4&&(t=!0,l.videoContainer=s[33],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){V(e,s)}}}function uy(i){let e,t,n;function o(s){i[61](s)}let r={store:i[0],uiConfig:i[35],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[36],showNextPrevButtons:i[15],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[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],playPrevChapter:i[30],firstStart:i[38],seekTime:i[32],showEndScreen:i[31]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new E_({props:r}),ve.push(()=>ze(e,"videoContainer",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&1&&(l.store=s[0]),a[0]&4&&(l.thumbUrl=s[2]),a[0]&8&&(l.interactiveContainer=s[3]),a[0]&16&&(l.live=s[4]),a[0]&32&&(l.autoplay=s[5]),a[0]&64&&(l.canRewindLive=s[6]),a[0]&128&&(l.showAds=s[7]),a[0]&256&&(l.adsSlotId=s[8]),a[0]&512&&(l.adsParams=s[9]),a[0]&1024&&(l.adsPreviewParam=s[10]),a[0]&2048&&(l.duration=s[11]),a[0]&4096&&(l.logoClickable=s[12]),a[0]&8192&&(l.logoHidden=s[13]),a[0]&32768&&(l.showNextPrevButtons=s[15]),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]&8&&(l.playerStarted=s[34]),a[0]&67108864&&(l.playNextVideo=s[26]),a[0]&134217728&&(l.playPrevVideo=s[27]),a[0]&268435456&&(l.repeatPlaylist=s[28]),a[0]&536870912&&(l.seekToInteractive=s[29]),a[0]&1073741824&&(l.playPrevChapter=s[30]),a[1]&1&&(l.showEndScreen=s[31]),!t&&a[1]&4&&(t=!0,l.videoContainer=s[33],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){V(e,s)}}}function cy(i){let e,t,n,o,r=[uy,ay],s=[];function a(l,u){return l[14]?0:1}return t=a(i,[-1,-1,-1]),n=s[t]=r[t](i),{c(){e=I("div"),n.c(),f(e,"class","root svelte-w727va")},m(l,u){w(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&&y(e),s[t].d()}}}function fy(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:C}=e,{live:g}=e,{preload:S}=e,{autoplay:k}=e,{volume:F=void 0}=e,{muted:T=void 0}=e,{fromTime:v}=e,{canRewindLive:E}=e,{showAds:H}=e,{adsSlotId:U=void 0}=e,{adsParams:W=void 0}=e,{adsPreviewParam:ne=void 0}=e,{duration:de=void 0}=e,{logoClickable:q}=e,{logoHidden:X}=e,{isMobile:oe}=e,{showNextPrevButtons:K=!1}=e,{nextButtonActive:ce=!1}=e,{prevButtonActive:z=!1}=e,{endScreenVideoTitle:x=void 0}=e,{endScreenVideoThumb:P=void 0}=e,{isOneVideoPlaylist:J=!1}=e,{supportLink:le}=e,{shadowRootContainer:Ae=void 0}=e,{outerContainerRef:ee=void 0}=e,{fullScreenTarget:ge=void 0}=e,{failoverHosts:Pe=void 0}=e,{showMiniTimer:Te=!1}=e,{saveRate:Ie}=e,{playNextVideo:rt=ls}=e,{playPrevVideo:Ee=ls}=e,{repeatPlaylist:We=ls}=e,{seekToInteractive:$=ls}=e,{playPrevChapter:_e=ls}=e,{volumeMultiplier:Ce}=e,{showEndScreen:xe=!0}=e,{subscribers:st,stores:at}=s;Wf(l);let nt=Dt(),$e=l.logoLink,fe=r.ui.debugPanelVisible,Se=r.ui.playerSize,et=r.state.isLive$;D(i,et,pe=>t(64,n=pe));let tt=r.state.isInteractive&&ry.isAndroid,Fe,ct=null,dt=!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}),$f(r,at);let he=(pe=!1)=>{t(34,dt=!0),pe?r.actions.external.firstStart(H):r.actions.internal.firstStart(H)};function _t(pe){var si;let Zt=o||pe;Zt&&r.initVideo({container:Fe,sources:Zt,failoverHosts:Pe,subtitles:C,volumeMultiplier:Ce});let At=ny.get(Jr)==="true";fe.set(At),v>0&&r.actions.external.seekTime(v);let ii=oe?nt.volumeDefault:(si=F!=null?F:Ps())!=null?si:nt.volumeDefault,Ot=T!=null?T:_d();if(r.actions.external.setVolume(ii),r.actions.external.setMuted(Ot),r.getAdmanWrapper().setInitialVolume(Ot?0:ii),nt.features.trafficSaving){let Mt=gd();Mt&&r.actions.internal.setTrafficSavingEnabled(Mt)}if(nt.features.saveRate&&Ie){let Mt=yd();Mt&&!n&&r.actions.internal.setPlaybackRate(Mt)}if(nt.features.autoplayNext){let Mt=kd();Mt&&r.actions.internal.setAutoplayNextEnabled(Mt)}let xt=pd(r.videoId);xt&&r.actions.internal.setQuality(xt),r.ui.isAutoplay.set(k),k?he():S&&nt.features.preload&&r.actions.internal.preload()}let kt=pe=>{if(window.ResizeObserver){let Zt,At;ct=new ResizeObserver(oy(ii=>{let Ot=ii[0];if(Ot){if(Ot.contentBoxSize){let xt=Array.isArray(Ot.contentBoxSize)?Ot.contentBoxSize[0]:Ot.contentBoxSize;Zt=xt.inlineSize,At=xt.blockSize}else Ot.contentRect&&(Zt=Ot.contentRect.width,At=Ot.contentRect.height);Se.set({width:Zt,height:At})}},300)),ct.observe(pe)}Se.set({width:pe.clientWidth,height:pe.clientHeight})},Ct=()=>{document.hidden&&r.actions.external.stop()};Nt(()=>{tt&&document.addEventListener("visibilitychange",Ct),kt(Fe);let pe=st.map(At=>At.init({store:r,microStores:at,config:a,interactiveController:h}));if((g==null?void 0:g.status)==="upcoming"){r.actions.internal.setLiveWaitingStart(!0);return}if((g==null?void 0:g.status)==="waiting"){r.actions.internal.setLiveWaitingRecover(!0);return}if(((g==null?void 0:g.status)==="finished"||(g==null?void 0:g.status)==="postlive")&&!Object.keys(o||[]).length){r.actions.internal.setLiveWaitingRecord(!0);return}return _t(),()=>{tt&&document.removeEventListener("visibilitychange",Ct),ct==null||ct.disconnect(),pe.forEach(At=>At.unsubscribe()),r.destroy()}});function Ze(){dt?r.actions.external.play():he(!0)}function Et(){r.actions.external.pause()}function Vt(pe){oe||r.actions.external.setMuted(pe)}function ri(pe){oe||pe>=0&&pe<=1&&r.actions.external.setVolume(pe)}function Ut(pe){r.actions.internal.seekTime(pe,sy.UNKNOWN)}function zt(pe){r.actions.external.seekEpisodeStartTime(pe)}function Qt(){r.actions.external.returnFocusToEpisodes()}function Wt(pe){r.actions.external.setPlaybackRate(pe)}function Ke(pe){r.actions.external.setAutoQualityLimits(pe)}function Xe(pe){Fe=pe,t(33,Fe)}function It(pe){Fe=pe,t(33,Fe)}return i.$$set=pe=>{"sources"in pe&&t(39,o=pe.sources),"store"in pe&&t(0,r=pe.store),"microStoresRoot"in pe&&t(40,s=pe.microStoresRoot),"videoConfig"in pe&&t(41,a=pe.videoConfig),"uiConfig"in pe&&t(42,l=pe.uiConfig),"title"in pe&&t(1,u=pe.title),"thumbUrl"in pe&&t(2,c=pe.thumbUrl),"interactiveContainer"in pe&&t(3,m=pe.interactiveContainer),"interactiveController"in pe&&t(43,h=pe.interactiveController),"subtitles"in pe&&t(44,C=pe.subtitles),"live"in pe&&t(4,g=pe.live),"preload"in pe&&t(45,S=pe.preload),"autoplay"in pe&&t(5,k=pe.autoplay),"volume"in pe&&t(46,F=pe.volume),"muted"in pe&&t(47,T=pe.muted),"fromTime"in pe&&t(48,v=pe.fromTime),"canRewindLive"in pe&&t(6,E=pe.canRewindLive),"showAds"in pe&&t(7,H=pe.showAds),"adsSlotId"in pe&&t(8,U=pe.adsSlotId),"adsParams"in pe&&t(9,W=pe.adsParams),"adsPreviewParam"in pe&&t(10,ne=pe.adsPreviewParam),"duration"in pe&&t(11,de=pe.duration),"logoClickable"in pe&&t(12,q=pe.logoClickable),"logoHidden"in pe&&t(13,X=pe.logoHidden),"isMobile"in pe&&t(14,oe=pe.isMobile),"showNextPrevButtons"in pe&&t(15,K=pe.showNextPrevButtons),"nextButtonActive"in pe&&t(16,ce=pe.nextButtonActive),"prevButtonActive"in pe&&t(17,z=pe.prevButtonActive),"endScreenVideoTitle"in pe&&t(18,x=pe.endScreenVideoTitle),"endScreenVideoThumb"in pe&&t(19,P=pe.endScreenVideoThumb),"isOneVideoPlaylist"in pe&&t(20,J=pe.isOneVideoPlaylist),"supportLink"in pe&&t(21,le=pe.supportLink),"shadowRootContainer"in pe&&t(22,Ae=pe.shadowRootContainer),"outerContainerRef"in pe&&t(23,ee=pe.outerContainerRef),"fullScreenTarget"in pe&&t(24,ge=pe.fullScreenTarget),"failoverHosts"in pe&&t(49,Pe=pe.failoverHosts),"showMiniTimer"in pe&&t(25,Te=pe.showMiniTimer),"saveRate"in pe&&t(50,Ie=pe.saveRate),"playNextVideo"in pe&&t(26,rt=pe.playNextVideo),"playPrevVideo"in pe&&t(27,Ee=pe.playPrevVideo),"repeatPlaylist"in pe&&t(28,We=pe.repeatPlaylist),"seekToInteractive"in pe&&t(29,$=pe.seekToInteractive),"playPrevChapter"in pe&&t(30,_e=pe.playPrevChapter),"volumeMultiplier"in pe&&t(51,Ce=pe.volumeMultiplier),"showEndScreen"in pe&&t(31,xe=pe.showEndScreen)},i.$$.update=()=>{i.$$.dirty[0]&16385&&r.ui.isMobile.set(oe)},[r,u,c,m,g,k,E,H,U,W,ne,de,q,X,oe,K,ce,z,x,P,J,le,Ae,ee,ge,Te,rt,Ee,We,$,_e,xe,Ut,Fe,dt,nt,$e,et,he,o,s,a,l,h,C,S,F,T,v,Pe,Ie,Ce,_t,Ze,Et,Vt,ri,zt,Qt,Wt,Ke,Xe,It]}var yf=class extends N{constructor(e){super(),O(this,e,fy,cy,B,{sources:39,store:0,microStoresRoot:40,videoConfig:41,uiConfig:42,title:1,thumbUrl:2,interactiveContainer:3,interactiveController:43,subtitles:44,live:4,preload:45,autoplay:5,volume:46,muted:47,fromTime:48,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,isMobile:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:22,outerContainerRef:23,fullScreenTarget:24,failoverHosts:49,showMiniTimer:25,saveRate:50,playNextVideo:26,playPrevVideo:27,repeatPlaylist:28,seekToInteractive:29,playPrevChapter:30,volumeMultiplier:51,showEndScreen:31,initVideo:52,play:53,pause:54,setMuted:55,setVolume:56,seekTime:32,seekEpisodeStartTime:57,returnFocusToEpisodes:58,setPlaybackRate:59,setAutoQualityLimits:60},ly,[-1,-1,-1])}get initVideo(){return this.$$.ctx[52]}get play(){return this.$$.ctx[53]}get pause(){return this.$$.ctx[54]}get setMuted(){return this.$$.ctx[55]}get setVolume(){return this.$$.ctx[56]}get seekTime(){return this.$$.ctx[32]}get seekEpisodeStartTime(){return this.$$.ctx[57]}get returnFocusToEpisodes(){return this.$$.ctx[58]}get setPlaybackRate(){return this.$$.ctx[59]}get setAutoQualityLimits(){return this.$$.ctx[60]}},A_=yf;function dy(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=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("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"),we(e,a)},m(l,u){w(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),we(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&&y(e),r&&r.d(l)}}}function my(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var wf=class extends N{constructor(e){super(),O(this,e,my,dy,B,{})}},M_=wf;function py(i){let e,t;return e=new M_({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function _y(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 kf=class extends N{constructor(e){super(),O(this,e,_y,py,B,{isWhite:1})}},L_=kf;function hy(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 V_(i){let e,t;return{c(){e=I("div"),t=qe(i[0]),f(e,"class","title svelte-1y9fytq")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&1&&Ge(t,n[0])},d(n){n&&y(e)}}}function R_(i){let e,t;return e=new L_({props:{isWhite:!!i[1]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){V(e,n)}}}function gy(i){let e,t,n,o,r=i[0]&&V_(i),s=(!i[0]||!i[1])&&R_(i);return{c(){e=I("div"),r&&r.c(),t=Y(),s&&s.c(),f(e,"class","playerStub svelte-1y9fytq"),f(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,l){w(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=V_(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=R_(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&&y(e),r&&r.d(),s&&s.d()}}}function by(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 Cf=class extends N{constructor(e){super(),O(this,e,by,gy,B,{title:0,thumbUrl:1},hy)}},B_=Cf;import{cloneDeepWith as qy,InterfaceLanguage as Uy,clientChecker as zy,isMobile as Wy,isNonNullable as Pf,Logger as Ky,Subscription as xy}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";import{OneStat as jy}from"@vkontakte/videoplayer-statistics";import{Logger as vy,Subscription as yy}from"@vkontakte/videoplayer-shared";var Ul=class{constructor(){this.subscription=new yy,this.logger=new vy,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){var t,n;if(this.isSupported())for(let[o,r]of e)try{(n=(t=navigator.mediaSession).setActionHandler)==null||n.call(t,o,r)}catch(s){throw new Error(`The media session action "${o}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||this.subscription.add(e.state.positionExact$.subscribe(t=>{var r,s;let n=Ye(e.state.currentPlaybackRate$),o=Ye(e.state.duration$);if(!(!isFinite(t)||!isFinite(o)))try{(s=(r=navigator.mediaSession).setPositionState)==null||s.call(r,{position:t,playbackRate:n,duration:o})}catch(a){this.log({message:`MediaSession setPositionState can't call with position: ${t} and duration: ${o}`})}}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as Iy,clientChecker as Py,detectEmbed as Ey}from"@vkontakte/videoplayer-shared";function wy(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=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("g"),n=M("path"),o=M("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"),we(e,u)},m(c,m){w(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),we(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&&y(e),a&&a.d(c)}}}function ky(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Sf=class extends N{constructor(e){super(),O(this,e,ky,wy,B,{})}},N_=Sf;function Cy(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 Sy(i){let e,t,n,o,r,s,a;return n=new N_({}),{c(){e=I("div"),t=I("div"),R(n.$$.fragment),o=Y(),r=I("span"),s=qe(i[0]),f(t,"class","dummy-image svelte-1pbsod4"),j(t,"desktop",!i[1]),f(r,"class","title svelte-1pbsod4"),f(e,"class","player-pip-dummy svelte-1pbsod4"),j(e,"is-pip-api",i[2])},m(l,u){w(l,e,u),_(e,t),L(n,t,null),_(e,o),_(e,r),_(r,s),a=!0},p(l,[u]){(!a||u&2)&&j(t,"desktop",!l[1]),(!a||u&1)&&Ge(s,l[0])},i(l){a||(d(n.$$.fragment,l),a=!0)},o(l){p(n.$$.fragment,l),a=!1},d(l){l&&y(e),V(n)}}}function Ty(i,e,t){let n,o,r=ot(),s=!!r.webApi.pictureInPictureApi,a=r.interfaceLanguage$;D(i,a,c=>t(5,n=c));let l=r.ui.isMobile;D(i,l,c=>t(1,o=c));let u;return i.$$.update=()=>{i.$$.dirty&32&&t(0,u=n&&G("pip_dummy_title"))},[u,o,s,a,l,n]}var Tf=class extends N{constructor(e){super(),O(this,e,Ty,Sy,B,{},Cy)}},D_=Tf;var Ay=460,My=280,as=class{constructor(){this.info={isActive$:new Iy(!1),type:1}}isSupported(){let{isEmbed:e}=Ey();return"documentPictureInPicture"in window&&!Py.isYandex&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}request(){return pt(this,null,function*(){var r,s;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:Ay,height:My,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(l=>l.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 D_({target:this.playerParentShadowRoot,context:this.svelteContext}),(r=this.pipWindow)==null||r.document.body.append(n),this.info.isActive$.next(!0),(s=this.pipWindow)==null||s.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return pt(this,null,function*(){return new Promise(e=>{var t;(t=documentPictureInPicture.window)==null||t.close(),e()})})}dispose(){return pt(this,null,function*(){yield this.remove()})}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function O_(i){return i instanceof as}var zl=class{static getLatestSupportedVersion(){let e=new lr,t=new as;if(t.isSupported())return t;if(e.isSupported())return e}};function Wl(i,e){var o,r;let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let s of t)n[s]=(r=(o=e[s])!=null?o:i[s])!=null?r:void 0;return n}var F_="Inner error. Unexpectedly root annotation container null reference exception",H_="Annotation with such name already exists",q_="Annotation with such name does not exist";var zr=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as Ly,Subscription as Vy,throttleFn as Ry}from"@vkontakte/videoplayer-shared";var By="1",Ny=100,Kl=class{constructor(){this.annotations=new Map;this.subscriptions=new Vy}init(e){this.rootAnnotationsContainer=e;let t=Ry(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},Ny);this.subscriptions.add(Ly(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){var n;if(!this.rootAnnotationsContainer)throw new zr(F_);if(this.annotations.has(e))throw new zr(H_);t.style.zIndex=(n=t.style.zIndex)!=null?n:By,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 zr(q_);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(){}};import{assertNonNullable as xl,Subscription as Dy}from"@vkontakte/videoplayer-shared";var Yn=class{init({store:e,microStores:t,interactiveController:n,config:o}){return xl(e),xl(t),xl(o),o.interactiveData&&xl(n),this.subscription=new Dy,this.subscription}};var us=class extends Yn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=yt(Qe({},Oe(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 cs=class extends Yn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=yt(Qe({},Oe(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=Ye(c),h=()=>m&&Ye(u);return n.add(u.subscribe(C=>{if(!m)return;let g=Ye(s);Ye(l)?this.state$.set(C):g!==null&&this.state$.set(!g||C)})),n.add(l.subscribe(C=>{this.state$.set(!C||h())})),n.add(s.subscribe(C=>{if(C===null)return;let g=Ye(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!C)})),n}};var fs=class extends Yn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Oe("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}};import{combine as Oy}from"@vkontakte/videoplayer-shared";var If=Oe(!1),jl=null,ds=class extends Yn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=yt(Qe({},If),{set:(t,n=!1)=>{t!==Ye(If)&&(this.clearTimeout(),If.set(t),!t&&jl&&(jl=!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=>{Ye(s)&&m&&this.state$.set(!1)}));let c=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return n.add(Oy({isPlaying$:a,isInteractiveTime$:s,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:h,interactiveTimeIndicator:C})=>{var g,S;if(!(!m||!(C!=null&&C.isDisplayed))){if(!h)return this.state$.set(!1);c.tooltipHelpHintActive&&jl===null&&(jl=!0,c.tooltipHelpHintActive=!1,this.state$.set(!0),(S=(g=o.callbacks)==null?void 0:g.onInteractiveTimeIndicatorHintDeactivated)==null||S.call(g))}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as Fy,noop as Hy}from"@vkontakte/videoplayer-shared";var ms=class extends Yn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=yt(Qe({},Oe(null)),{toggle:Hy});this.checkIfShouldHide=t=>Dr(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(Ye(s)))return;let a=Ye(this.state$),{isEnded$:l,playbackState$:u}=o.state,{disabledControls$:c}=o.ui.controls,m=Ye(l),h=Ye(u);a?(this.state$.set(!1),r==null||r.toggleGraphView(!1),c.remove(ra),!m&&this.graphMadePause&&o.actions.internal.play()):(this.graphMadePause=h==="playing",this.state$.set(!0),r==null||r.toggleGraphView(!0),c.add(ra),!m&&this.graphMadePause&&o.actions.internal.pause())},n.add(Fy({graphIsOpened:this.state$,currentGridType:s}).subscribe(({graphIsOpened:a,currentGridType:l})=>{this.checkIfShouldHide(l)&&a&&(r==null||r.toggleGraphView(!1),this.state$.set(!1))})),n}};var U_=()=>[us,cs,fs,ds,ms].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:yt(Qe({},e),{[n.stateName]:n.state$})}},{subscribers:[],stores:{}});var Gy={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Uy.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:Wy(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0},Gl=class extends HTMLElement{constructor(){var t;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.createOneStat=(t,n={})=>{var v,E,H,U;let{albumId:o,statPlace:r,statUserSalt:s,statTrackCode:a,refreshStatAuthToken:l,autoplay:u,isMobile:c,refDomain:m,deviceId:h,interactiveData:C}=Wl(this.videoConfig,n),g=(v=C==null?void 0:C.projectInfo)==null?void 0:v.pid,S=(H=(E=this.interactiveController)==null?void 0:E.state.isReplay$.getValue())!=null?H:!1;S&&(this.prevIsid=void 0);let{unitedVideoId:k,isClip:F=!1}=t;if(this.uiConfig.features.statistics&&k)return new jy(Qe({movieId:k,albumId:o,place:r,trackCode:a,autoplay:(U=u&&!this.interactiveController)!=null?U:!1,mobile:c,clip:F,refDomain:m,deviceId:h},g&&(!this.isInited||S)&&{projectId:Number(g)}),Qe({refreshAuthToken:l,userSalt:s,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))};this.logger=new Ky,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new xy,this.graphMadePause=!1,(t=window==null?void 0:window.videoPlayerConfig)!=null&&t.debugLogs&&this.subscription.add(this.logger.log$.subscribe(n=>{console.log("%c player web component ","background:#77dd77;",`${n.component}`,n.message)}))}connectedCallback(){var o,r;if(this.isInited)return;this.initPlayerRootContainers();let t=(o=this.getAttribute("stub-title"))!=null?o:void 0,n=(r=this.getAttribute("stub-thumb-url"))!=null?r:void 0;this.svelteStubComponent=new B_({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){var t,n,o,r,s,a;(t=this.annotationsApi)==null||t.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),(o=this.svelteRootComponent)==null||o.$destroy(),(r=this.svelteStubComponent)==null||r.$destroy(),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(a=this.interactiveController)==null||a.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.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:!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){var o;let n=(o=this.store)==null?void 0:o.ui.controls.disabledControls$;return(n==null?void 0:n.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){var _t,kt,Ct,Ze,Et,Vt,ri,Ut,zt,Qt,Wt;if(!this.videoConfig)return;let{albumId:r,statPlace:s,statAuthToken:a,preload:l,autoplay:u,volume:c,muted:m,fromTime:h,canRewindLive:C,supportLink:g,showAds:S,adsSlotId:k,adsParams:F={},adsPreviewParam:T,interfaceLanguage:v,isCyrillicRelatedInterface:E,logoClickable:H,logoHidden:U,isMobile:W,isAudioDisabled:ne,isLiveCatchUpMode:de,fullScreenTarget:q,failoverHosts:X,canDownload:oe,callbacks:K,interactiveData:ce,showThumbTimer:z,additionalButtons:x=[],additionalSettingsMenuItems:P=[],additionalContextMenuItems:J=[],repeat:le,saveRate:Ae,volumeMultiplier:ee,showEndScreen:ge}=Wl(this.videoConfig,n),{sources:Pe,title:Te,thumbUrl:Ie,unitedVideoId:rt,isClip:Ee=!1,duration:We,adsParams:$={},videoEpisodes:_e,previewThumbsData:Ce,subtitles:xe,live:st}=t,at=Qe(Qe({},F),$),nt=this.getNextVideoInfo(),$e={sources:Pe,title:Te,thumbUrl:Ie,subtitles:xe,unitedVideoId:rt,isClip:Ee,live:st,albumId:r,statPlace:s,autoplay:u,muted:m,volume:c,fromTime:h,canRewindLive:C,showAds:S,adsSlotId:k,adsParams:at,adsPreviewParam:T,duration:We,logoClickable:H,logoHidden:U,isMobile:W,repeat:le,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:nt.nextVideoTitle,endScreenVideoThumb:nt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},fe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify($e)}`});let Se=(_t=this.interactiveController)==null?void 0:_t.state.statistics$.getValue(),et=(Se==null?void 0:Se.oneStat)||this.createOneStat(t,n);et&&(this.statistics=new _l(et,Se==null?void 0:Se.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new sr(this.uiConfig.sentry,{version:Tr,env:Ts},{movieId:rt,albumId:r,place:s,autoplay:(kt=u&&!this.interactiveController)!=null?kt:!1,mobile:W,clip:Ee}),this.interactiveController&&((Ze=this.prevIsid)!=null||(this.prevIsid=(Ct=this.statistics)==null?void 0:Ct.oneStat.isid$.getValue())),this.sentry=Qe(Qe({},this.sentry),sr.getInstance());let tt=!!ce,Fe=[],ct="tooltip_interactive_go_back_disabled_first";if(tt&&this.interactiveController){let Ke=this.interactiveController.state.isInitialChapter$.getValue(),Xe=this.interactiveController.getHistoryState();Ke&&Fe.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Fe.push("SEEK_TO_INTERACTIVE_BUTTON"),Xe.hasPrevChapter$.getValue()||(Fe.push("PLAY_PREV_CHAPTER_BUTTON"),Ke||(Xe.isGoBackLimited$.getValue()?ct="tooltip_interactive_go_back_disabled_limit":ct="tooltip_interactive_go_back_disabled"))}let dt=()=>{var Xe;this.isInited=!1,this.prevIsid=void 0;let Ke=(o==null?void 0:o.info.isEnded$.getValue())&&((Xe=this.interactiveController)==null?void 0:Xe.state.isEndChapter$.getValue());K.onReplayInteractiveVideo&&!Ke?K.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Tm({player:o,interfaceLanguage:v,isCyrillicRelatedInterface:E,videoId:rt,isClip:Ee,isLiveCatchUpMode:de,isAudioDisabled:ne,statAuthToken:a,callbacks:K,webApi:fe,videoEpisodes:_e,previewThumbsData:Ce,canDownload:oe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Fe,isInteractive:tt,saveRate:Ae,interactiveRanges$:(Et=this.interactiveController)==null?void 0:Et.state.interactiveRanges$,isInteractiveTime$:(Vt=this.interactiveController)==null?void 0:Vt.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:dt,playPrevChapterDisabledTooltip:ct,hasInteractiveBranches:!!((Ut=(ri=this.interactiveController)==null?void 0:ri.getChapterBranches())!=null&&Ut.length),additionalButtons:this.uiConfig.features.additionalButtons?x:[],additionalSettingsMenuItems:P!=null?P:[],additionalContextMenuItems:J!=null?J:[],looped:le&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:he}=this.microStoresRoot=U_();this.subscription.add(this.store.state.currentFormat$.subscribe(Ke=>{var Xe;return(Xe=K==null?void 0:K.onCurrentFormatChanged)==null?void 0:Xe.call(K,Ke)})),this.subscription.add(he.interactiveControlsOpacity$.subscribe(Ke=>{var Xe;Ke!==null&&((Xe=this==null?void 0:this.interactiveController)==null||Xe.setDisabledControls(Ke))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Ke=>{var Xe;return(Xe=K==null?void 0:K.onThroughputEstimationChanged)==null?void 0:Xe.call(K,Ke)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Ke=>{var Xe;return(Xe=K==null?void 0:K.onTrafficSavingEnabledChanged)==null?void 0:Xe.call(K,Ke)})),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ke=>{var Xe;return(Xe=K==null?void 0:K.onCurrentPlaybackRateChanged)==null?void 0:Xe.call(K,Ke)})),this.subscription.add(this.store.state.volume$.subscribe(Ke=>{var Xe;return(Xe=K==null?void 0:K.onVolumeChange)==null?void 0:Xe.call(K,Ke)})),this.subscription.add(this.store.state.muted$.subscribe(Ke=>{var Xe,It;return Ke?(Xe=K==null?void 0:K.onMute)==null?void 0:Xe.call(K):(It=K==null?void 0:K.onUnmute)==null?void 0:It.call(K)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Ke=>{var Xe;return(Xe=K==null?void 0:K.onVideoBitrateChanged)==null?void 0:Xe.call(K,Ke)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Ke=>{var It;let Xe=(It=this.store)==null?void 0:It.ui.controls.disabledControls$;Xe&&(Ke&&!Xe.includes($r)&&Xe.add($r),Ke||Xe.remove($r))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(Ke=>pt(this,null,function*(){var It;if(!zy.isSamsungBrowser||!Ke||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((It=this.videoConfig)==null?void 0:It.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Ke=>{var Xe;return(Xe=K==null?void 0:K.onVSIDChanged)==null?void 0:Xe.call(K,Ke)})),this.initMediaSession(),this.svelteRootComponent=new A_({target:this.playerContainer,props:{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Pe,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Te,thumbUrl:Ie,subtitles:xe,live:st,preload:l,autoplay:u,muted:m,volume:c,fromTime:h,canRewindLive:C,supportLink:g,showAds:S,adsSlotId:k,adsParams:at,adsPreviewParam:T,duration:We,logoClickable:H,logoHidden:U,isMobile:W,failoverHosts:X,fullScreenTarget:q,saveRate:Ae,shadowRootContainer:this.shadowRootContainer,showMiniTimer:z,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:nt.nextVideoTitle,endScreenVideoThumb:nt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ee,showEndScreen:ge}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Wt=(Qt=(zt=this.videoConfig)==null?void 0:zt.callbacks)==null?void 0:Qt.onInited)==null||Wt.call(Qt))}addPlayerInfoSubscriptions(){var r;let t=this.store;if(!t)return;let n=(r=this.videoConfig)==null?void 0:r.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(s=>{var a;return(a=n.onPlayerPhaseChanged)==null?void 0:a.call(n,s)})).add(t.state.playbackState$.subscribe(s=>{var a;return(a=n.onPlaybackStateChanged)==null?void 0:a.call(n,s)})).add(t.state.isLive$.subscribe(s=>{var a;return(a=n.onIsLiveChanged)==null?void 0:a.call(n,s)})).add(t.state.isActiveLive$.subscribe(s=>{var a;return(a=n.onIsActiveLiveChanged)==null?void 0:a.call(n,s)})).add(t.state.isAudioAvailable$.subscribe(s=>{var a;return(a=n.onIsAudioAvailableChanged)==null?void 0:a.call(n,s)})).add(t.state.currentQuality$.subscribe(s=>{var a;return(a=n.onCurrentQualityChanged)==null?void 0:a.call(n,s)})).add(t.state.availableQualities$.subscribe(s=>{var a;return(a=n.onAvailableQualitiesChanged)==null?void 0:a.call(n,s.map(({value:l})=>l).filter(l=>l!=="auto"))})).add(t.state.availableAudioStreams$.subscribe(s=>{s.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(t.ui.isPictureInPictureActive$.subscribe(s=>{var a,l;return s?(a=n.onPiPEnter)==null?void 0:a.call(n):(l=n.onPiPExit)==null?void 0:l.call(n)}));let o=n==null?void 0:n.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(s=>{var a;return(a=o.onControlsVisibleChanged)==null?void 0:a.call(o,s)})).add(t.ui.isMobile.subscribe(s=>{var a;return(a=o.onIsMobileChanged)==null?void 0:a.call(o,s)})).add(t.ui.playerSize.subscribe(s=>{var a;return(a=o.onPlayerSizeChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.prevButton.subscribe(s=>{var a;return(a=o.onPrevButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.playButton.subscribe(s=>{var a;return(a=o.onPlayButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.replayButton.subscribe(s=>{var a;return(a=o.onReplayButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.nextButton.subscribe(s=>{var a;return(a=o.onNextButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.playPrevChapterButton.subscribe(s=>{var a;return(a=o.onPlayPrevChapterChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.seekToInteractiveButton.subscribe(s=>{var a;return(a=o.onSeekToInteractiveButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.interactiveGraphButton.subscribe(s=>{var a;return(a=o.onGraphButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.liveButton.subscribe(s=>{var a;return(a=o.onLiveButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.time.subscribe(s=>{var a;return(a=o.onTimeUpdateChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.episodes.subscribe(s=>{var a;return(a=o.onEpisodesChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.subtitles.subscribe(s=>{var a;return(a=o.onSubtitlesChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.settings.subscribe(s=>{var a;return(a=o.onSettingsChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.fullscreen.subscribe(s=>{var a;return(a=o.onFullscreenChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.chromecast.subscribe(s=>{var a;return(a=o.onChromecastChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.pip.subscribe(s=>{var a;return(a=o.onPipChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.vkLogo.subscribe(s=>{var a;return(a=o.onVkLogoChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.interactiveTimeIndicator.subscribe(s=>{var a;return(a=o.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.timeline.subscribe(s=>{var a;return(a=o.onTimelineChanged)==null?void 0:a.call(o,s)}))}playNextVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch(o){this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch(o){this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){var r;if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&Pf(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){var t;(t=this.interactiveController)==null||t.playPrevChapter()}seekToInteractive(){var n;let t=(n=this.interactiveController)==null?void 0:n.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}initInteractives(){return pt(this,null,function*(){var t,n,o,r;if((t=this.videoConfig)!=null&&t.interactiveData)try{let{Interactives:s,EVENT_NAMES:a,CustomError:l}=yield import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let u=(n=this.store)==null?void 0:n.interfaceLanguage$,c=u?Ye(u):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:h,historyApi:C,videoLoader:g}=this.videoConfig.interactiveData;this.interactiveController=new s({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:c,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:h,historyApi:C,vkVideoLoader:g,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat});let{isInteractiveExpectation$:S,isSeekable$:k}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(k.subscribe(T=>{if(!this.isInited)return;let v=this.store;T?v.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):v.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(S.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let F=!0;if(this.interactiveController.on(a.playerChanged,T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=yt(Qe({},T.config),{title:(m==null?void 0:m.title)||T.config.title});let v=F?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,v),F&&(F=!1)}),this.interactiveController.on(a.interactives,({type:T,actionType:v})=>{var H,U,W,ne;if(!this.store)return;let E=S.getValue();if(T==="action-choice"&&v==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Ss)),T==="action-choice-canceled"){let de=Ye(this.store.state.isPlaying$)||E;if((H=this.videoConfig)!=null&&H.isMobile&&de){this.store.ui.interactiveHideMobileControls.set(!0);return}(ne=(U=this.videoConfig)==null?void 0:(W=U.callbacks).onDisabledInteractiveClick)==null||ne.call(W)}}),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(v=>{var E,H,U;v.length&&((U=(H=(E=this.videoConfig)==null?void 0:E.callbacks)==null?void 0:H.onInteractiveHistoryChanged)==null||U.call(H,v))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,v,E,H;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(H=(v=this.videoConfig)==null?void 0:(E=v.callbacks).onInteractiveTimeIndicatorClick)==null||H.call(E)})),this.interactiveController.on(a.errors,T=>{this.log({message:T.toString()})})}catch(s){this.log({message:s.message})}})}initPlayer(t,n={}){var o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W;if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=Wl(Gy,qy(t,ne=>ne instanceof HTMLElement?ne:void 0)),this.uiConfig=zf((o=n.ui)!=null?o:{}),this.coreConfig=(r=n.core)!=null?r:{configName:[]},this.statisticsConfig=(s=n.statistics)!=null?s:{},this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},Pf(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(u=(l=this.uiConfig.features.mediaSession)!=null?l:this.videoConfig.isMediaSessionEnabled)!=null?u:!0),Pf(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(m=(c=this.uiConfig.features.pip)!=null?c:this.videoConfig.isPictureInPictureEnabled)!=null?m:!0,this.uiConfig.features.dpip=(C=(h=this.uiConfig.features.dpip)!=null?h:this.videoConfig.isPictureInPictureEnabled)!=null?C:!0),this.videoConfig.isMobile=(g=this.uiConfig.isMobile)!=null?g:this.videoConfig.isMobile,(S=this.videoConfig).autoplay&&(S.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(k=this.uiConfig.ads.enable)!=null?k:this.videoConfig.showAds,this.videoConfig.adsSlotId=(F=this.uiConfig.ads.slot)!=null?F:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(T=this.uiConfig.ads.preview)!=null?T:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((v=this.uiConfig.showLogo)!=null?v:!this.videoConfig.logoHidden),(E=this.videoConfig).canRewindLive&&(E.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(H=this.videoConfig.supportLink)!=null?H:this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=zl.getLatestSupportedVersion():this.pictureInPictureApi=new lr),this.mediaSessionApi=this.uiConfig.features.mediaSession?new Ul:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Kl:void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(U=this.svelteStubComponent)==null||U.$destroy(),(W=this.svelteRootComponent)==null||W.$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[0]),O_(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){var o;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();(o=this.svelteRootComponent)==null||o.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){var t,n;this.mediaSessionApi&&((t=this.unsubscribePlayerPhaseSubscription)==null||t.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(n=this.store)==null?void 0:n.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}=Qe({},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(){var t,n,o,r;this.isControlDisabled("PLAY_BUTTON")||(t=this.store)!=null&&t.playerPhase.is("LiveWaitingStart")||(n=this.store)!=null&&n.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var t;this.log({message:"pause"}),(t=this.svelteRootComponent)==null||t.pause()}stop(){var o,r,s;if(!this.videoConfig)return;this.log({message:"stop"});let t=!!this.interactiveController;t&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0),(o=this.svelteStubComponent)==null||o.$destroy(),(r=this.mediaSessionApi)==null||r.destroy();let n=this.videoConfig.videos[0];n&&((s=this.svelteRootComponent)==null||s.$destroy(),t?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(n))}setMuted(t){var n;this.log({message:`set muted, muted: ${t}`}),(n=this.svelteRootComponent)==null||n.setMuted(t)}setVolume(t){var n;this.log({message:`set volume, volume: ${t}`}),(n=this.svelteRootComponent)==null||n.setVolume(t)}setRepeat(t){var n;this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,(n=this.svelteRootComponent)==null||n.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){var n;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekTime(t))}seekEpisodeStartTime(t){var n;this.log({message:`seek episode start time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekEpisodeStartTime(t)}returnFocusToEpisodes(){var t;this.log({message:"return focus to episodes button"}),(t=this.svelteRootComponent)==null||t.returnFocusToEpisodes()}setPlaybackRate(t){var n;this.log({message:`set playback rate to: ${t}`}),(n=this.svelteRootComponent)==null||n.setPlaybackRate(t)}setAutoQualityLimits(t){var n,o,r;this.log({message:`set auto quality limitation. Max: ${(n=t.max)!=null?n:"none"}. Min: ${(o=t.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(t)}addLanguage(t){var n;(n=this.store)==null||n.actions.internal.addLanguage(t)}setLanguage(t){return pt(this,null,function*(){var n;yield(n=this.store)==null?void 0:n.actions.internal.setLanguage(t)})}setLiveStart(t){var n,o,r;this.log({message:"live started"}),(n=this.store)==null||n.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(t,{autoplay:!0})}setLiveWaitingRecover(){var t,n;this.log({message:"live waiting"}),(t=this.store)==null||t.actions.internal.setLiveWaitingRecover(!0),(n=this.store)==null||n.destroy()}setLiveWaitingRecord(){var t,n;this.log({message:"post live"}),(t=this.store)==null||t.actions.internal.setLiveWaitingRecord(!0),(n=this.store)==null||n.destroy()}setLiveEnd(t){var n,o,r;this.log({message:"live ended"}),(n=this.store)==null||n.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingRecord(!1),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){var t,n;return(n=(t=this.statistics)==null?void 0:t.oneStat.getDeviceId())!=null?n:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(t){return pt(this,null,function*(){var n;if(this.interactiveController&&((n=this.store)!=null&&n.state.positionExact$)){let{EVENT_NAMES:o}=yield import("@vkontakte/videoplayer-interactive"),r=Ye(this.store.state.positionExact$),a=Ye(this.store.state.interactiveEpisodes$).find(u=>!u.completed);this.interactiveController.once(o.playerChanged,()=>{a&&r>=a.time?this.seekTime(a.time):this.seekTime(r),t==null||t()});let l=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:l.chapter.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(t,n=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){var t;(t=this.store)==null||t.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(t,n){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(t,n)}addAdditionalSettingsItem(t){var n;(n=this.store)==null||n.actions.external.addAdditionalSettingsItem(t)}removeAdditionalSettingsItem(t){var n;(n=this.store)==null||n.actions.external.removeAdditionalSettingsItem(t)}updateAdditionalContextItem(t,n){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(t,n)}addAdditionalContextItem(t){var n;(n=this.store)==null||n.actions.external.addAdditionalContextItem(t)}removeAdditionalContextItem(t){var n;(n=this.store)==null||n.actions.external.removeAdditionalContextItem(t)}updateAdditionalButton(t,n){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(t,n)}addAdditionalButton(t){var n;(n=this.store)==null||n.actions.external.addAdditionalButton(t)}removeAdditionalButton(t){var n;(n=this.store)==null||n.actions.external.removeAdditionalButton(t)}updateStatContext(t){this.statistics&&this.statistics.oneStat.updateContext(t)}};import{InterfaceLanguage as zz,VKNumericLanguage as Wz,loadVKLangPack as Kz}from"@vkontakte/videoplayer-shared";import{VideoQuality as jz,VideoFormat as Gz}from"@vkontakte/videoplayer-core";var Dz=()=>{window.customElements.define("vk-video-player",Gl)};export{hl as ControlButtonType,wo as GridTypes,zz as InterfaceLanguage,Ws as MenuItemType,Tr as VERSION,Wz as VKNumericLanguage,Gz as VideoFormat,jz as VideoQuality,Kz as loadVKLangPack,Dz as registerPlayerWebComponent};