@vkontakte/videoplayer 1.1.54-dev.11a53745.0 → 1.1.54-dev.2b69b64d.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.cjs.js +16 -16
- package/es2015.esm.js +17 -17
- package/es2018.cjs.js +16 -16
- package/es2018.esm.js +17 -17
- package/esnext.cjs.js +12 -12
- package/esnext.esm.js +12 -12
- package/evergreen.esm.js +12 -12
- package/package.json +5 -5
- package/types/VKVideoPlayer/index.d.ts +2 -0
- package/types/store/index.d.ts +1 -3
- package/types/store/micro/pictureInPicture.d.ts +11 -0
- package/types/types/index.d.ts +12 -0
- package/types/utils/webAPI/pictureInPictureApi/documentPictureInPictureApi.d.ts +13 -1
- package/types/utils/webAPI/pictureInPictureApi/pictureInPictureApi.d.ts +13 -1
- package/types/utils/webAPI/pictureInPictureApi/pictureInPictureApiFactory.d.ts +2 -2
package/es2018.esm.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.54-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.54-dev.2b69b64d.0
|
|
3
|
+
* Mon, 13 Jan 2025 12:50:49 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-54/doc/
|
|
5
5
|
*/
|
|
6
|
-
var ph=Object.defineProperty;var _h=(i,e,t)=>e in i?ph(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Ni=(i,e,t)=>_h(i,typeof e!="symbol"?e+"":e,t);function _e(){}function le(i,e){for(let t in e)i[t]=e[t];return i}function ua(i){return i()}function Cs(){return Object.create(null)}function ct(i){i.forEach(ua)}function Qt(i){return typeof i=="function"}function N(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var ks;function To(i,e){return i===e?!0:(ks||(ks=document.createElement("a")),ks.href=e,i===ks.href)}function qf(i){return Object.keys(i).length===0}function Xt(i,...e){if(i==null){for(let n of e)n(void 0);return _e}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function qe(i){let e;return Xt(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push(Xt(e,t))}function Le(i,e,t,n){if(i){let o=Uf(i,e,t,n);return i[0](o)}}function Uf(i,e,t,n){return i[1]&&n?le(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=Uf(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 ke(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function zf(i){return i==null?"":i}function hr(i){return i&&Qt(i.destroy)?i.destroy:_e}var Xr=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Ss=class i{constructor(e){Ni(this,"_listeners","WeakMap"in Xr?new WeakMap:void 0);Ni(this,"_observer");Ni(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)})}};Ss.entries="WeakMap"in Xr?new WeakMap:void 0;var Wf=!1;function Kf(){Wf=!0}function jf(){Wf=!1}function _(i,e){i.appendChild(e)}function ye(i,e,t){let n=Gf(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,bh(n,o)}}function Gf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function bh(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 ui(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 B(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Oe(i){return document.createTextNode(i)}function G(){return Oe(" ")}function Xe(){return Oe("")}function Te(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ci(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 Ce(i,e){for(let t in e)f(i,t,e[t])}function Yf(i){return Array.from(i.childNodes)}function We(i,e){e=""+e,i.data!==e&&(i.data=e)}function fi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function K(i,e,t){i.classList.toggle(e,!!t)}function Qf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function xt(i,e){return new i(e)}var xo;function Io(i){xo=i}function gr(){if(!xo)throw new Error("Function called outside component initialization");return xo}function Ct(i){gr().$$.on_mount.push(i)}function Vn(i){gr().$$.on_destroy.push(i)}function br(i,e){return gr().$$.context.set(i,e),e}function vr(i){return gr().$$.context.get(i)}function Jr(){return gr().$$.context}function Rn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var $o=[];var we=[],wr=[],fa=[],Xf=Promise.resolve(),da=!1;function ma(){da||(da=!0,Xf.then(dt))}function mn(){return ma(),Xf}function $r(i){wr.push(i)}function Ue(i){fa.push(i)}var ca=new Set,yr=0;function dt(){if(yr!==0)return;let i=xo;do{try{for(;yr<$o.length;){let e=$o[yr];yr++,Io(e),Sh(e.$$)}}catch(e){throw $o.length=0,yr=0,e}for(Io(null),$o.length=0,yr=0;we.length;)we.pop()();for(let e=0;e<wr.length;e+=1){let t=wr[e];ca.has(t)||(ca.add(t),t())}wr.length=0}while($o.length);for(;fa.length;)fa.pop()();da=!1,ca.clear(),Io(i)}function Sh(i){if(i.fragment!==null){i.update(),ct(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach($r)}}function Jf(i){let e=[],t=[];wr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),wr=e}var Ts=new Set,er;function ue(){er={r:0,c:[],p:er}}function ce(){er.r||ct(er.c),er=er.p}function d(i,e){i&&i.i&&(Ts.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Ts.has(i))return;Ts.add(i),er.c.push(()=>{Ts.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 $f(i,e){p(i,1,1,()=>{e.delete(i.key)})}function ed(i,e,t,n,o,r,s,a,l,u,c,m){let h=i.length,v=r.length,g=h,T={};for(;g--;)T[i[g].key]=g;let C=[],A=new Map,S=new Map,k=[];for(g=v;g--;){let M=m(o,r,g),Z=t(M),ae=s.get(Z);ae?n&&k.push(()=>ae.p(M,e)):(ae=u(Z,M),ae.c()),A.set(Z,C[g]=ae),Z in T&&S.set(Z,Math.abs(g-T[Z]))}let P=new Set,H=new Set;function x(M){d(M,1),M.m(a,c),s.set(M.key,M),c=M.first,v--}for(;h&&v;){let M=C[v-1],Z=i[h-1],ae=M.key,Q=Z.key;M===Z?(c=M.first,h--,v--):A.has(Q)?!s.has(ae)||P.has(ae)?x(M):H.has(Q)?h--:S.get(ae)>S.get(Q)?(H.add(ae),x(M)):(P.add(Q),h--):(l(Z,s),h--)}for(;h--;){let M=i[h];A.has(M.key)||l(M,s)}for(;v;)x(C[v-1]);return ct(k),C}function xe(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 Ho(i){return typeof i=="object"&&i!==null?i:{}}var Th=["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"],Ih=new Set([...Th]);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),$r(()=>{let r=i.$$.on_mount.map(ua).filter(Qt);i.$$.on_destroy?i.$$.on_destroy.push(...r):ct(r),i.$$.on_mount=[]}),o.forEach($r)}function V(i,e){let t=i.$$;t.fragment!==null&&(Jf(t.after_update),ct(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Eh(i,e){i.$$.dirty[0]===-1&&($o.push(i),ma(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function F(i,e,t,n,o,r,s=null,a=[-1]){let l=xo;Io(i);let u=i.$$={fragment:null,ctx:[],props:r,update:_e,not_equal:o,bound:Cs(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Cs(),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,...v)=>{let g=v.length?v[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&Eh(i,m)),h}):[],u.update(),c=!0,ct(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Kf();let m=Yf(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),jf(),dt()}Io(l)}var Ah;typeof HTMLElement=="function"&&(Ah=class extends HTMLElement{constructor(e,t,n){super();Ni(this,"$$ctor");Ni(this,"$$s");Ni(this,"$$c");Ni(this,"$$cn",!1);Ni(this,"$$d",{});Ni(this,"$$r",!1);Ni(this,"$$p_d",{});Ni(this,"$$l",{});Ni(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))}}async connectedCallback(){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(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Qf(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]=pa(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:{...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=pa(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]=pa(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 pa(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 O=class{constructor(){Ni(this,"$$");Ni(this,"$$set")}$destroy(){V(this,1),this.$destroy=_e}$on(e,t){if(!Qt(t))return _e;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&&!qf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var td="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(td);import"@vkontakte/videoplayer-core/es2018";import{noop as J_,safeStorage as Oy,throttleFn as Fy,clientChecker as xy}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Hy}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as Mh,fillWithDefault as Lh,VideoQuality as Vh}from"@vkontakte/videoplayer-shared/es2018";var Rh={isMobile:void 0,defaultLanguage:Mh.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:Vh.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},id=i=>Lh(i,Rh),nd=i=>br("ui-config",i),Mt=()=>vr("ui-config");var es="vk_player_debug_panel_opened";var od="videoplayer",rd="videoplayer";var ho={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},sd=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),ld=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),ad=new Set(["ShiftRight","ShiftLeft"]);var ud=["TIMELINE"],ts=[...ud,"GRAPH_BUTTON"],_a=[...ud,"PLAY_BUTTON"],Is=[...ts,"PLAY_BUTTON"];var go=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(go||{}),ir={xs:0,s:1,m:2,l:3,xl:4};var kr=[];function Wn(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=_e){let t,n=new Set;function o(a){if(N(i,a)&&(i=a,t)){let l=!kr.length;for(let u of n)u[1](),kr.push(u,i);if(l){for(let u=0;u<kr.length;u+=2)kr[u][0](kr[u+1]);kr.length=0}}}function r(a){o(a(i))}function s(a,l=_e){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||_e),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function Jt(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 Wn(t,(s,a)=>{let l=!1,u=[],c=0,m=_e,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=Qt(g)?g:_e},v=o.map((g,T)=>Xt(g,C=>{u[T]=C,c&=~(1<<T),l&&h()},()=>{c|=1<<T}));return l=!0,h(),function(){ct(v),m(),l=!1}})}import{assertNonNullable as cd,VERSION as Bh}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as Nh}from"@vkontakte/videoplayer-core/es2018";import{VERSION as Dh}from"@vkontakte/videoplayer-statistics/es2018";var Ps="prod",Cr="1.1.54-dev.11a53745.0";var nr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var fd=Symbol("storeContext"),dd=Symbol("microStoresContext"),md=(i,e)=>{br(fd,i),br(dd,e),Ps==="dev"&&(window.app={store:i,microStores:e})},it=()=>{let i=vr(fd);return cd(i,"Store context is empty!"),i},Bn=()=>{let i=vr(dd);return cd(i,"MicroStores context is empty!"),i},Tt=(i,e)=>ha(i,i.getValue(),e),ha=(i,e,t)=>Wn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),pd=(i,e,t)=>{var A,S,k,P,H,x;let n=i.info,{width:o,height:r}=qe(t.ui.playerSize),s=(S=(A=n.throughputEstimation$.getValue())==null?void 0:A.toFixed(0))!=null?S:0,a=(P=(k=n.rttEstimation$.getValue())==null?void 0:k.toFixed(0))!=null?P:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Cr} (core: ${Nh}, stat: ${Dh}, shared: ${Bh})`,c=qe(t.state.errorLog$),m=c.length?`
|
|
7
|
-
`+c.map((
|
|
8
|
-
`,Q=`Message: ${
|
|
9
|
-
`,
|
|
10
|
-
`;return ae+Q+
|
|
11
|
-
`):void 0,h=t.state.isAudioDisabled?"disabled":
|
|
12
|
-
`)},_d=(i,e,t)=>{var M,Z,ae,Q;let n=i.info,{width:o,height:r}=qe(t.ui.playerSize),s={version:Cr,viewport:`${o}x${r}`,volume:Math.round(qe(t.state.volume$)*100)};s.id=t.videoId,n.currentFormat$.getValue()&&(s.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(s.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(s.videoSize=`${u.width}x${u.height}`);let c=n.currentBuffer$.getValue(),m=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();c&&(m&&h?s.buffer=c.end-h:s.buffer=Math.max(c.end-qe(t.state.positionExact$),0));let v=n.throughputEstimation$.getValue();v&&(s.speed=v);let g=n.videoBitrate$.getValue();g&&(s.bitrate=g);let T=n.liveLatency$.getValue();T&&(s.liveLatency=T);let C=n.currentVideoSegmentLength$.getValue();C&&(s.currentVideoSegmentLength=C);let A=n.currentAudioSegmentLength$.getValue();A&&(s.currentAudioSegmentLength=A);let S=qe(t.vsid);typeof S=="string"&&(s.vsid=S);let k=(M=i.info.currentVideoStream$.getValue())==null?void 0:M.codec;k&&(s.videoCodec=k);let P=(Z=i.info.currentAudioStream$.getValue())==null?void 0:Z.codec;P&&(s.audioCodec=P),((ae=i.info.currentVideoStream$.getValue())==null?void 0:ae.hdr)&&(s.hdr=!0);let x=(Q=i.info.currentAudioStream$.getValue())==null?void 0:Q.language;return x&&(s.audioLanguage=x),s},hd=(i,e)=>nr(i,e,"mp4"),gd=i=>!i.type,bd=i=>!!i.type,vd=()=>{let e=[],t=0;return{add:(n,o)=>{e[t]=[n,o],t=(t+1)%10},find:n=>e.find(([o])=>o===n)}},Es=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let t=await fetch(e,{signal:this.destroyController.signal});if(t.ok)return await t.text();throw t}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as ga,safeStorage as Kn}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var yd="vk_player_prefer_traffic_saving_enabled",wd="vk_player_preferred_volume",kd="vk_player_prefer_volume_mute",ba="vk_player_preferred_quality",Cd="vk_player_preferred_stream_language",Sd="vk_player_preferred_rate",Td="vk_player_preferred_autoplay_next",Id=i=>i>1?1:i<0?0:i,va=i=>Kn.set(wd,Id(i).toString(10)),As=()=>{let i=Kn.get(wd);return ga(i)?void 0:Id(parseFloat(i))},Pd=(i,e)=>Kn.set(ba,JSON.stringify({videoId:i,value:e})),ya=()=>Kn.remove(ba),Ed=i=>{let e=Kn.get(ba);if(ga(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){ya();return}return n},wa=(i,e)=>{e?Kn.set(i,"true"):Kn.remove(i)},ka=i=>Kn.get(i)==="true",Ms=i=>wa(kd,i),Ad=()=>ka(kd),Md=i=>wa(yd,i),Ld=()=>ka(yd),Vd=()=>Kn.get(Cd),Ca=i=>Kn.set(Cd,i),Rd=i=>Kn.set(Sd,JSON.stringify({rate:i})),Bd=()=>{let i=Kn.get(Sd);if(ga(i))return;let{rate:e}=JSON.parse(i);return e},Nd=i=>wa(Td,i),Dd=()=>ka(Td);import{PlaybackState as by}from"@vkontakte/videoplayer-core/es2018";function Oh(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,T,C,A,S=i[2].default,k=Le(S,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],H={};for(let x=0;x<P.length;x+=1)H=le(H,P[x]);return{c(){e=B("svg"),k&&k.c(),t=B("g"),n=B("path"),o=B("path"),r=B("path"),s=B("path"),a=B("path"),l=B("defs"),u=B("filter"),c=B("feFlood"),m=B("feColorMatrix"),h=B("feOffset"),v=B("feGaussianBlur"),g=B("feColorMatrix"),T=B("feBlend"),C=B("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(v,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(T,"in2","BackgroundImageFix"),f(T,"result","effect1_dropShadow_618_12297"),f(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_618_12297"),f(C,"result","shape"),f(u,"id","a"),f(u,"width","75"),f(u,"height","44"),f(u,"x",".5"),f(u,"y",".5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),Ce(e,H)},m(x,M){w(x,e,M),k&&k.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,v),_(u,g),_(u,T),_(u,C),A=!0},p(x,[M]){k&&k.p&&(!A||M&2)&&Re(k,S,x,x[1],A?Ve(S,x[1],M,null):Be(x[1]),null),Ce(e,H=xe(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},M&1&&x[0]]))},i(x){A||(d(k,x),A=!0)},o(x){p(k,x),A=!1},d(x){x&&y(e),k&&k.d(x)}}}function Fh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var Sa=class extends O{constructor(e){super(),F(this,e,Fh,Oh,N,{})}},Ls=Sa;import{isNullable as xd,InterfaceLanguage as Hd}from"@vkontakte/videoplayer-shared/es2018";var xh={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443 \u0447\u0435\u0440\u0435\u0437 {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E"},Od=xh;var Hh={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Ads can be skipped in {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video"},Fd=Hh;var Po=new Map;Po.set(Hd.EN,Fd);Po.set(Hd.RU,Od);var qd=new Map,Ta=({language:i,pack:e,fallback:t})=>{if(Po.has(i)){let n=Po.get(i);Po.set(i,{...n,...e})}else Po.set(i,e);qd.set(i,t)},Ia=i=>Po.has(i),Pa=(i,e,t,n)=>{var s;let o=Po.get(i),r=o==null?void 0:o[e];if(xd(r)){let a=(s=qd.get(i))!=null?s:n,l=a?Po.get(a):void 0;r=l==null?void 0:l[e]}return xd(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}=it(),n=qe(t),o=Mt();return Pa(n,i,e,o.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var Sr;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(Sr||(Sr={}));var qh=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Uh=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,zh=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Vs="?",Wh="X-Sentry-Auth",Kh=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function jh(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
|
|
13
|
-
`),n,o;for(let r=0;r<t.length;++r){if(n=
|
|
14
|
-
`).filter(t=>!!t)[0]}function Gh(i){try{let e=jh(i);if(e)return e}catch(e){}return{value:Ud(i),type:i&&i.name,stacktrace:{frames:[]}}}function Yh(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var Rs=class{constructor(e){if(e&&e.dsn){let t=Kh.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),r=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(r?"/"+r:"")+"/api/"+o.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[Gh(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(Wh,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Yh(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function zd(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function Qh(){return window}var Bs=class i extends Rs{constructor(e,t=Qh()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:r=u=>u,blacklistUrls:s=[],ignoreErrors:a=[],release:l=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=r,this.blacklistUrls=s,this.ignoreErrors=a,this.release=l}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new i({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send({...this.getRequestBlank(),message:e,level:t})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(t=>this.ignoreErrors.some(n=>zd(t,n))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>zd(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{...t,[n]:r||a?[...r||[],...a||[]]:{...typeof o!="string"?o:{},...typeof s!="string"?s:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}};import{isNonNullable as Ns,Subscription as Zh}from"@vkontakte/videoplayer-shared/es2018";var Ds=null,or=class{constructor(e,t,n={}){!Ds&&e.dsn&&(this.sentryClient=new Bs({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Zh,this.options=e,this.context=n,Ds=this)}destroy(){var e,t;(e=this.sentryClient)==null||e.destroy(),(t=this.sentrySubscription)==null||t.unsubscribe(),Ds=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:v}=t;if(Ns(v)&&m.includes(v)||Ns(h)&&c.includes(h))return;if(Math.random()<=a||Ns(v)&&u.includes(v)||Ns(h)&&l.includes(h)){Object.keys(t).length&&o.setTags({version:this.version,...t}),(Object.keys(r).length||Object.keys(n).length)&&o.setExtras({...r,...n});try{h&&o.captureMessage(h,t.fatal?Sr.fatal:Sr.error),o.report(e)}catch(T){console.error(T)}}}static getInstance(){return Ds}};var Os=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()},Fs=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Wd=i=>{let e=i;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},is=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},qo=()=>!!is(),xs=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},Hs=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},Kd=i=>{let e=window.screen;return(async o=>e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject())(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};import{clientChecker as jd}from"@vkontakte/videoplayer-shared/es2018";var Gd=()=>({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:jd.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:jd.isApple?j("hotkey_map_item_next_episode_mac_value"):j("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as Xh,clientChecker as Jh,ValueSubject as $h}from"@vkontakte/videoplayer-shared/es2018";var rr=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:Xh(this.onResize.bind(this),300)};this.info={isActive$:new $h(this.isActive()),type:0}}isSupported(){return document.pictureInPictureEnabled&&!Jh.isYandex}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(t){this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await 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={...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)}async dispose(){this.unregistryEventHandlers(),await 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 sr(i){return i instanceof rr}function eg(i){let e=it();return Ct(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Ma=class extends O{constructor(e){super(),F(this,e,eg,null,N,{})}},Yd=Ma;import{noop as tg}from"@vkontakte/videoplayer-shared/es2018";function ig(i){ye(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 ng(i){let e=j("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=Oe(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)})+"")&&We(t,e)},d(n){n&&y(t)}}}function og(i){let e,t=j("skip_ads_now")+"",n,o,r,s,a,l;return{c(){e=I("div"),n=Oe(t),o=G(),r=B("svg"),s=B("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=Te(e,"click",vt(function(){Qt(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,c){i=u},d(u){u&&y(e),a=!1,l()}}}function rg(i){let e;function t(r,s){return r[3]?og:ng}let n=t(i,-1),o=n(i);return{c(){e=I("div"),o.c(),f(e,"class","container svelte-1k4i25s"),K(e,"container-mobile",i[4]),K(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&&K(e,"container-mobile",r[4]),s&8&&K(e,"skippable",r[3])},i:_e,o:_e,d(r){r&&y(e),o.d()}}}function sg(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:s=tg}=e,l=it().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 La=class extends O{constructor(e){super(),F(this,e,sg,rg,N,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},ig)}},Qd=La;function lg(i){ye(i,"svelte-1wy3dql","button.svelte-1wy3dql{position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black}")}function ag(i){let e;return{c(){e=I("button"),e.textContent=`${j("visit_advertiser")}`,f(e,"class","svelte-1wy3dql")},m(t,n){w(t,e,n)},p:_e,i:_e,o:_e,d(t){t&&y(e)}}}var Va=class extends O{constructor(e){super(),F(this,e,null,ag,N,{},lg)}},Zd=Va;function ug(i){ye(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(
|
|
6
|
+
var gh=Object.defineProperty;var bh=(i,e,t)=>e in i?gh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Ri=(i,e,t)=>bh(i,typeof e!="symbol"?e+"":e,t);function _e(){}function le(i,e){for(let t in e)i[t]=e[t];return i}function ua(i){return i()}function Cs(){return Object.create(null)}function ut(i){i.forEach(ua)}function Qt(i){return typeof i=="function"}function D(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var ks;function ko(i,e){return i===e?!0:(ks||(ks=document.createElement("a")),ks.href=e,i===ks.href)}function Uf(i){return Object.keys(i).length===0}function $t(i,...e){if(i==null){for(let n of e)n(void 0);return _e}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ue(i){let e;return $t(i,t=>e=t)(),e}function B(i,e,t){i.$$.on_destroy.push($t(e,t))}function Ve(i,e,t,n){if(i){let o=zf(i,e,t,n);return i[0](o)}}function zf(i,e,t,n){return i[1]&&n?le(t.ctx.slice(),i[1](n(e))):t.ctx}function Re(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Be(i,e,t,n,o,r){if(o){let l=zf(e,t,n,r);i.p(l,o)}}function Ne(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function we(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Wf(i){return i==null?"":i}function hr(i){return i&&Qt(i.destroy)?i.destroy:_e}var Qr=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Ss=class i{constructor(e){Ri(this,"_listeners","WeakMap"in Qr?new WeakMap:void 0);Ri(this,"_observer");Ri(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)})}};Ss.entries="WeakMap"in Qr?new WeakMap:void 0;var Kf=!1;function jf(){Kf=!0}function Gf(){Kf=!1}function _(i,e){i.appendChild(e)}function ve(i,e,t){let n=Yf(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,wh(n,o)}}function Yf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function wh(i,e){return _(i.head||i,e),e.sheet}function k(i,e,t){i.insertBefore(e,t||null)}function w(i){i.parentNode&&i.parentNode.removeChild(i)}function di(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function N(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Oe(i){return document.createTextNode(i)}function G(){return Oe(" ")}function Je(){return Oe("")}function Se(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function mi(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 ke(i,e){for(let t in e)f(i,t,e[t])}function Qf(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function pi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function K(i,e,t){i.classList.toggle(e,!!t)}function Zf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Dt(i,e){return new i(e)}var Do;function Co(i){Do=i}function gr(){if(!Do)throw new Error("Function called outside component initialization");return Do}function Ct(i){gr().$$.on_mount.push(i)}function Rn(i){gr().$$.on_destroy.push(i)}function br(i,e){return gr().$$.context.set(i,e),e}function vr(i){return gr().$$.context.get(i)}function Zr(){return gr().$$.context}function Bn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Xo=[];var ye=[],wr=[],fa=[],Jf=Promise.resolve(),da=!1;function ma(){da||(da=!0,Jf.then(mt))}function fn(){return ma(),Jf}function Xr(i){wr.push(i)}function ze(i){fa.push(i)}var ca=new Set,yr=0;function mt(){if(yr!==0)return;let i=Do;do{try{for(;yr<Xo.length;){let e=Xo[yr];yr++,Co(e),Ph(e.$$)}}catch(e){throw Xo.length=0,yr=0,e}for(Co(null),Xo.length=0,yr=0;ye.length;)ye.pop()();for(let e=0;e<wr.length;e+=1){let t=wr[e];ca.has(t)||(ca.add(t),t())}wr.length=0}while(Xo.length);for(;fa.length;)fa.pop()();da=!1,ca.clear(),Co(i)}function Ph(i){if(i.fragment!==null){i.update(),ut(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Xr)}}function $f(i){let e=[],t=[];wr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),wr=e}var Ts=new Set,Jo;function ce(){Jo={r:0,c:[],p:Jo}}function fe(){Jo.r||ut(Jo.c),Jo=Jo.p}function d(i,e){i&&i.i&&(Ts.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Ts.has(i))return;Ts.add(i),Jo.c.push(()=>{Ts.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 ed(i,e){p(i,1,1,()=>{e.delete(i.key)})}function td(i,e,t,n,o,r,l,a,s,u,c,m){let h=i.length,v=r.length,g=h,S={};for(;g--;)S[i[g].key]=g;let y=[],A=new Map,I=new Map,C=[];for(g=v;g--;){let V=m(o,r,g),Z=t(V),ae=l.get(Z);ae?n&&C.push(()=>ae.p(V,e)):(ae=u(Z,V),ae.c()),A.set(Z,y[g]=ae),Z in S&&I.set(Z,Math.abs(g-S[Z]))}let P=new Set,U=new Set;function x(V){d(V,1),V.m(a,c),l.set(V.key,V),c=V.first,v--}for(;h&&v;){let V=y[v-1],Z=i[h-1],ae=V.key,Q=Z.key;V===Z?(c=V.first,h--,v--):A.has(Q)?!l.has(ae)||P.has(ae)?x(V):U.has(Q)?h--:I.get(ae)>I.get(Q)?(U.add(ae),x(V)):(P.add(Q),h--):(s(Z,l),h--)}for(;h--;){let V=i[h];A.has(V.key)||s(V,l)}for(;v;)x(y[v-1]);return ut(C),y}function He(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function Oo(i){return typeof i=="object"&&i!==null?i:{}}var Eh=["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"],Ah=new Set([...Eh]);function We(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 M(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Xr(()=>{let r=i.$$.on_mount.map(ua).filter(Qt);i.$$.on_destroy?i.$$.on_destroy.push(...r):ut(r),i.$$.on_mount=[]}),o.forEach(Xr)}function L(i,e){let t=i.$$;t.fragment!==null&&($f(t.after_update),ut(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&&(Xo.push(i),ma(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function F(i,e,t,n,o,r,l=null,a=[-1]){let s=Do;Co(i);let u=i.$$={fragment:null,ctx:[],props:r,update:_e,not_equal:o,bound:Cs(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Cs(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...v)=>{let g=v.length?v[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,ut(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){jf();let m=Qf(e.target);u.fragment&&u.fragment.l(m),m.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),M(i,e.target,e.anchor),Gf(),mt()}Co(s)}var Vh;typeof HTMLElement=="function"&&(Vh=class extends HTMLElement{constructor(e,t,n){super();Ri(this,"$$ctor");Ri(this,"$$s");Ri(this,"$$c");Ri(this,"$$cn",!1);Ri(this,"$$d",{});Ri(this,"$$r",!1);Ri(this,"$$p_d",{});Ri(this,"$$l",{});Ri(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))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(l){return()=>{let a;return{c:function(){a=T("slot"),l!=="default"&&f(a,"name",l)},m:function(c,m){k(c,a,m)},d:function(c){c&&w(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Zf(this);for(let l of this.$$s)l in o&&(n[l]=[t(l)]);for(let l of this.attributes){let a=this.$$g_p(l.name);a in this.$$d||(this.$$d[a]=pa(a,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let a=pa(l,this.$$d[l],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let l in this.$$l)for(let a of this.$$l[l]){let s=this.$$c.$on(l,a);this.$$l_u.set(a,s)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=pa(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 pa(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 O=class{constructor(){Ri(this,"$$");Ri(this,"$$set")}$destroy(){L(this,1),this.$destroy=_e}$on(e,t){if(!Qt(t))return _e;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&&!Uf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var id="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(id);import"@vkontakte/videoplayer-core/es2018";import{noop as $_,safeStorage as Fy,throttleFn as xy,clientChecker as Hy}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as qy}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as Rh,fillWithDefault as Bh,VideoQuality as Nh}from"@vkontakte/videoplayer-shared/es2018";var Dh={isMobile:void 0,defaultLanguage:Rh.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:Nh.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},nd=i=>Bh(i,Dh),od=i=>br("ui-config",i),Mt=()=>vr("ui-config");var Jr="vk_player_debug_panel_opened";var rd="videoplayer",sd="videoplayer";var mo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ld=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),ad=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),ud=new Set(["ShiftRight","ShiftLeft"]);var cd=["TIMELINE"],$r=[...cd,"GRAPH_BUTTON"],_a=[...cd,"PLAY_BUTTON"],Is=[...$r,"PLAY_BUTTON"];var po=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(po||{}),er={xs:0,s:1,m:2,l:3,xl:4};var kr=[];function Jn(i,e){return{subscribe:Me(i,e).subscribe}}function Me(i,e=_e){let t,n=new Set;function o(a){if(D(i,a)&&(i=a,t)){let s=!kr.length;for(let u of n)u[1](),kr.push(u,i);if(s){for(let u=0;u<kr.length;u+=2)kr[u][0](kr[u+1]);kr.length=0}}}function r(a){o(a(i))}function l(a,s=_e){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||_e),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}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,(l,a)=>{let s=!1,u=[],c=0,m=_e,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Qt(g)?g:_e},v=o.map((g,S)=>$t(g,y=>{u[S]=y,c&=~(1<<S),s&&h()},()=>{c|=1<<S}));return s=!0,h(),function(){ut(v),m(),s=!1}})}import{assertNonNullable as fd,VERSION as Oh}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as Fh}from"@vkontakte/videoplayer-core/es2018";import{VERSION as xh}from"@vkontakte/videoplayer-statistics/es2018";var Ps="prod",Cr="1.1.54-dev.2b69b64d.0";var tr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var dd=Symbol("storeContext"),md=Symbol("microStoresContext"),pd=(i,e)=>{br(dd,i),br(md,e),Ps==="dev"&&(window.app={store:i,microStores:e})},it=()=>{let i=vr(dd);return fd(i,"Store context is empty!"),i},dn=()=>{let i=vr(md);return fd(i,"MicroStores context is empty!"),i},Et=(i,e)=>ha(i,i.getValue(),e),ha=(i,e,t)=>Jn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),_d=(i,e,t)=>{var A,I,C,P,U,x;let n=i.info,{width:o,height:r}=Ue(t.ui.playerSize),l=(I=(A=n.throughputEstimation$.getValue())==null?void 0:A.toFixed(0))!=null?I:0,a=(P=(C=n.rttEstimation$.getValue())==null?void 0:C.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Cr} (core: ${Fh}, stat: ${xh}, shared: ${Oh})`,c=Ue(t.state.errorLog$),m=c.length?`
|
|
7
|
+
`+c.map((V,Z)=>{var q;let ae=`${Z}) Type: ${V.id}
|
|
8
|
+
`,Q=`Message: ${V.message} (${V.thrown})
|
|
9
|
+
`,ue=`Trace: ${(q=V.thrown)==null?void 0:q.stack}
|
|
10
|
+
`;return ae+Q+ue}).join(`
|
|
11
|
+
`):void 0,h=t.state.isAudioDisabled?"disabled":Ue(t.state.isAudioAvailable$)?void 0:"unavailable",v=i.info.currentVideoStream$.getValue(),g=i.info.currentAudioStream$.getValue(),S=[];v&&S.push(`Video: ${(U=v==null?void 0:v.codec)!=null?U:""}`+(v!=null&&v.hdr?" (HDR)":"")),g&&S.push(`Audio: ${(x=g==null?void 0:g.codec)!=null?x:""}`+(g!=null&&g.language?` (${g.language})`:""));let y={Version:u,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),VSID:Ue(t.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${l}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:S.join(", "),Quality:`${s} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:h,Position:`${Ue(t.state.positionExact$)}s`,State:`${Ue(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${r}`,URL:window.location.href,Errors:m};return Object.entries(y).filter(([V,Z])=>Z!==void 0).map(([V,Z])=>`${V}: ${Z}`).join(`
|
|
12
|
+
`)},hd=(i,e,t)=>{var V,Z,ae,Q;let n=i.info,{width:o,height:r}=Ue(t.ui.playerSize),l={version:Cr,viewport:`${o}x${r}`,volume:Math.round(Ue(t.state.volume$)*100)};l.id=t.videoId,n.currentFormat$.getValue()&&(l.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(l.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let c=n.currentBuffer$.getValue(),m=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();c&&(m&&h?l.buffer=c.end-h:l.buffer=Math.max(c.end-Ue(t.state.positionExact$),0));let v=n.throughputEstimation$.getValue();v&&(l.speed=v);let g=n.videoBitrate$.getValue();g&&(l.bitrate=g);let S=n.liveLatency$.getValue();S&&(l.liveLatency=S);let y=n.currentVideoSegmentLength$.getValue();y&&(l.currentVideoSegmentLength=y);let A=n.currentAudioSegmentLength$.getValue();A&&(l.currentAudioSegmentLength=A);let I=Ue(t.vsid);typeof I=="string"&&(l.vsid=I);let C=(V=i.info.currentVideoStream$.getValue())==null?void 0:V.codec;C&&(l.videoCodec=C);let P=(Z=i.info.currentAudioStream$.getValue())==null?void 0:Z.codec;P&&(l.audioCodec=P),((ae=i.info.currentVideoStream$.getValue())==null?void 0:ae.hdr)&&(l.hdr=!0);let x=(Q=i.info.currentAudioStream$.getValue())==null?void 0:Q.language;return x&&(l.audioLanguage=x),l},gd=(i,e)=>tr(i,e,"mp4"),bd=i=>!i.type,vd=i=>!!i.type,yd=()=>{let e=[],t=0;return{add:(n,o)=>{e[t]=[n,o],t=(t+1)%10},find:n=>e.find(([o])=>o===n)}},Es=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let t=await fetch(e,{signal:this.destroyController.signal});if(t.ok)return await t.text();throw t}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as ga,safeStorage as zn}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var wd="vk_player_prefer_traffic_saving_enabled",kd="vk_player_preferred_volume",Cd="vk_player_prefer_volume_mute",ba="vk_player_preferred_quality",Sd="vk_player_preferred_stream_language",Td="vk_player_preferred_rate",Id="vk_player_preferred_autoplay_next",Pd=i=>i>1?1:i<0?0:i,va=i=>zn.set(kd,Pd(i).toString(10)),As=()=>{let i=zn.get(kd);return ga(i)?void 0:Pd(parseFloat(i))},Ed=(i,e)=>zn.set(ba,JSON.stringify({videoId:i,value:e})),ya=()=>zn.remove(ba),Ad=i=>{let e=zn.get(ba);if(ga(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){ya();return}return n},wa=(i,e)=>{e?zn.set(i,"true"):zn.remove(i)},ka=i=>zn.get(i)==="true",Ms=i=>wa(Cd,i),Md=()=>ka(Cd),Ld=i=>wa(wd,i),Vd=()=>ka(wd),Rd=()=>zn.get(Sd),Ca=i=>zn.set(Sd,i),Bd=i=>zn.set(Td,JSON.stringify({rate:i})),Nd=()=>{let i=zn.get(Td);if(ga(i))return;let{rate:e}=JSON.parse(i);return e},Dd=i=>wa(Id,i),Od=()=>ka(Id);import{PlaybackState as vy}from"@vkontakte/videoplayer-core/es2018";function Hh(i){let e,t,n,o,r,l,a,s,u,c,m,h,v,g,S,y,A,I=i[2].default,C=Ve(I,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],U={};for(let x=0;x<P.length;x+=1)U=le(U,P[x]);return{c(){e=N("svg"),C&&C.c(),t=N("g"),n=N("path"),o=N("path"),r=N("path"),l=N("path"),a=N("path"),s=N("defs"),u=N("filter"),c=N("feFlood"),m=N("feColorMatrix"),h=N("feOffset"),v=N("feGaussianBlur"),g=N("feColorMatrix"),S=N("feBlend"),y=N("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(l,"fill","#fff"),f(l,"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(v,"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(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_618_12297"),f(y,"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"),ke(e,U)},m(x,V){k(x,e,V),C&&C.m(e,null),_(e,t),_(t,n),_(t,o),_(t,r),_(t,l),_(t,a),_(e,s),_(s,u),_(u,c),_(u,m),_(u,h),_(u,v),_(u,g),_(u,S),_(u,y),A=!0},p(x,[V]){C&&C.p&&(!A||V&2)&&Be(C,I,x,x[1],A?Re(I,x[1],V,null):Ne(x[1]),null),ke(e,U=He(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},V&1&&x[0]]))},i(x){A||(d(C,x),A=!0)},o(x){p(C,x),A=!1},d(x){x&&w(e),C&&C.d(x)}}}function qh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Sa=class extends O{constructor(e){super(),F(this,e,qh,Hh,D,{})}},Ls=Sa;import{isNullable as Hd,InterfaceLanguage as qd}from"@vkontakte/videoplayer-shared/es2018";var Uh={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443 \u0447\u0435\u0440\u0435\u0437 {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E"},Fd=Uh;var zh={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Ads can be skipped in {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video"},xd=zh;var So=new Map;So.set(qd.EN,xd);So.set(qd.RU,Fd);var Ud=new Map,Ta=({language:i,pack:e,fallback:t})=>{if(So.has(i)){let n=So.get(i);So.set(i,{...n,...e})}else So.set(i,e);Ud.set(i,t)},Ia=i=>So.has(i),Pa=(i,e,t,n)=>{var l;let o=So.get(i),r=o==null?void 0:o[e];if(Hd(r)){let a=(l=Ud.get(i))!=null?l:n,s=a?So.get(a):void 0;r=s==null?void 0:s[e]}return Hd(r)?e+Object.values(t!=null?t:{}).join(" "):t?r.replaceAll(/{(\w+?)}/g,(a,s)=>{var u;return(u=t[s])!=null?u:""}):r},j=(i,e)=>{let{interfaceLanguage$:t}=it(),n=Ue(t),o=Mt();return Pa(n,i,e,o.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var Sr;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(Sr||(Sr={}));var Wh=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Kh=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,jh=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Vs="?",Gh="X-Sentry-Auth",Yh=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Qh(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
|
|
13
|
+
`),n,o;for(let r=0;r<t.length;++r){if(n=Wh.exec(t[r]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||Vs,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=jh.exec(t[r]))o={filename:n[2],function:n[1]||Vs,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=Kh.exec(t[r]))r===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||Vs,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=Vs),e.push(o)}return e.length?{value:zd(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function zd(i){return(i&&i.message||"No error message").split(`
|
|
14
|
+
`).filter(t=>!!t)[0]}function Zh(i){try{let e=Qh(i);if(e)return e}catch(e){}return{value:zd(i),type:i&&i.name,stacktrace:{frames:[]}}}function Xh(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var Rs=class{constructor(e){if(e&&e.dsn){let t=Yh.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),r=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(r?"/"+r:"")+"/api/"+o.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[Zh(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(Gh,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Xh(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Wd(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function Jh(){return window}var Bs=class i extends Rs{constructor(e,t=Jh()){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:l=[],ignoreErrors:a=[],release:s=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=r,this.blacklistUrls=l,this.ignoreErrors=a,this.release=s}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new i({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send({...this.getRequestBlank(),message:e,level:t})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(t=>this.ignoreErrors.some(n=>Wd(t,n))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>Wd(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,l=e[n],a=Array.isArray(l)?l:null;return{...t,[n]:r||a?[...r||[],...a||[]]:{...typeof o!="string"?o:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}};import{isNonNullable as Ns,Subscription as $h}from"@vkontakte/videoplayer-shared/es2018";var Ds=null,ir=class{constructor(e,t,n={}){!Ds&&e.dsn&&(this.sentryClient=new Bs({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new $h,this.options=e,this.context=n,Ds=this)}destroy(){var e,t;(e=this.sentryClient)==null||e.destroy(),(t=this.sentrySubscription)==null||t.unsubscribe(),Ds=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:l}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:c,blackErrorCategoryList:m}=l,{errorType:h,category:v}=t;if(Ns(v)&&m.includes(v)||Ns(h)&&c.includes(h))return;if(Math.random()<=a||Ns(v)&&u.includes(v)||Ns(h)&&s.includes(h)){Object.keys(t).length&&o.setTags({version:this.version,...t}),(Object.keys(r).length||Object.keys(n).length)&&o.setExtras({...r,...n});try{h&&o.captureMessage(h,t.fatal?Sr.fatal:Sr.error),o.report(e)}catch(S){console.error(S)}}}static getInstance(){return Ds}};var Os=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()},Fs=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Kd=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},Fo=()=>!!es(),xs=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},Hs=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},jd=i=>{let e=window.screen;return(async o=>e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject())(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};import{clientChecker as Gd}from"@vkontakte/videoplayer-shared/es2018";var Yd=()=>({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:Gd.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:Gd.isApple?j("hotkey_map_item_next_episode_mac_value"):j("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as eg,ValueSubject as Ea}from"@vkontakte/videoplayer-shared/es2018";var nr=class{constructor({enabled:e=!0}={enabled:!0}){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:eg(this.onResize.bind(this),300)};this.info={isActive$:new Ea(!1),isEnabled$:new Ea(!1),type:0};this.info.isEnabled$=new Ea(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(t){this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await 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={...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)}async dispose(){this.unregistryEventHandlers(),await 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,l;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),(l=this.playerDummyElement)==null||l.$destroy()}onResize(e){var t,n;(n=(t=this.externalEventHandlers).resize)==null||n.call(t,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function or(i){return i instanceof nr}function tg(i){let e=it();return Ct(()=>{e.getAdmanWrapper().startPostroll()}),[]}var La=class extends O{constructor(e){super(),F(this,e,tg,null,D,{})}},Qd=La;import{noop as ig}from"@vkontakte/videoplayer-shared/es2018";function ng(i){ve(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 og(i){let e=j("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=Oe(e)},m(n,o){k(n,t,o)},p(n,o){o&3&&e!==(e=j("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Ke(t,e)},d(n){n&&w(t)}}}function rg(i){let e,t=j("skip_ads_now")+"",n,o,r,l,a,s;return{c(){e=T("div"),n=Oe(t),o=G(),r=N("svg"),l=N("path"),f(l,"fill-rule","evenodd"),f(l,"clip-rule","evenodd"),f(l,"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){k(u,e,c),_(e,n),_(e,o),_(e,r),_(r,l),a||(s=Se(e,"click",vt(function(){Qt(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,c){i=u},d(u){u&&w(e),a=!1,s()}}}function sg(i){let e;function t(r,l){return r[3]?rg:og}let n=t(i,-1),o=n(i);return{c(){e=T("div"),o.c(),f(e,"class","container svelte-1k4i25s"),K(e,"container-mobile",i[4]),K(e,"skippable",i[3])},m(r,l){k(r,e,l),o.m(e,null)},p(r,[l]){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e,null))),l&16&&K(e,"container-mobile",r[4]),l&8&&K(e,"skippable",r[3])},i:_e,o:_e,d(r){r&&w(e),o.d()}}}function lg(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:l=ig}=e,s=it().ui.isMobile;B(i,s,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,l=c.skipAd)},i.$$.update=()=>{i.$$.dirty&3&&t(3,u=o>0&&o>=r)},[o,r,l,u,n,s]}var Va=class extends O{constructor(e){super(),F(this,e,lg,sg,D,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},ng)}},Zd=Va;function ag(i){ve(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 ug(i){let e;return{c(){e=T("button"),e.textContent=`${j("visit_advertiser")}`,f(e,"class","svelte-1wy3dql")},m(t,n){k(t,e,n)},p:_e,i:_e,o:_e,d(t){t&&w(e)}}}var Ra=class extends O{constructor(e){super(),F(this,e,null,ug,D,{},ag)}},Xd=Ra;function cg(i){ve(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 ph=Object.defineProperty;var _h=(i,e,t)=>e in i?ph(i,e,{enumerable:!0,config
|
|
|
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 Xd(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 Jd(i){let e,t;return e=new Qd({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 $d(i){let e,t;return e=new Yd({}),{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 e1(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 cg(i){let e,t,n,o,r,s,a,l=i[0]&&Xd(i),u=i[4]&&Jd(i),c=i[7]&&$d(i),m=i[3]&&e1(i);return{c(){e=I("div"),l&&l.c(),t=G(),n=I("video"),o=G(),u&&u.c(),r=G(),c&&c.c(),s=G(),m&&m.c(),fi(n,"width","100%"),fi(n,"height","100%"),n.playsInline=!0,f(e,"class","container svelte-354ajf")},m(h,v){w(h,e,v),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,[v]){h[0]?l||(l=Xd(h),l.c(),l.m(e,t)):l&&(l.d(1),l=null),h[4]?u?(u.p(h,v),v&16&&d(u,1)):(u=Jd(h),u.c(),d(u,1),u.m(e,r)):u&&(ue(),p(u,1,1,()=>{u=null}),ce()),h[7]?c?v&128&&d(c,1):(c=$d(h),c.c(),d(c,1),c.m(e,s)):c&&(ue(),p(c,1,1,()=>{c=null}),ce()),h[3]?m?v&8&&d(m,1):(m=e1(h),m.c(),d(m,1),m.m(e,null)):m&&(ue(),p(m,1,1,()=>{m=null}),ce())},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 fg(i,e,t){let n,o,r,s,a,l,u,{adsSlotId:c=void 0}=e,{adsParams:m=void 0}=e,{adsPreviewParam:h=void 0}=e,{duration:v=0}=e,g=it(),T=Mt(),C=g.state.isEnded$;D(i,C,W=>t(7,u=W));let A=g.ui.isMobile;D(i,A,W=>t(0,s=W));let S=T.ads.isMobileGoToSiteButton,k,P,H=!1,x=g.ads.playbackState;D(i,x,W=>t(18,r=W));let M=g.ads.canSkip,Z=g.ads.position;D(i,Z,W=>t(5,a=W));let ae=g.ads.secondsToWatchBeforeSkip;D(i,ae,W=>t(6,l=W)),Ct(()=>{let W=g.getAdmanWrapper();if(!c){W.onAdmanLoadingError();return}let q=re=>{W.initAdman(re),H=!0},ve=new AbortController,z=()=>{ve.abort()},{width:ie,height:U}=qe(g.ui.playerSize),pe=qe(g.ui.isFullscreen),se=qe(g.ui.isAutoplay),X={width:ie,height:U,isFullscreen:pe,isAutoplay:se,adsContainer:k,adsVideoElement:P,slotId:c,params:m,previewParam:h,duration:v};return window.AdmanHTML?q(X):W.loadAdman(ve.signal).then(()=>{q(X)}).catch(()=>{W.onAdmanLoadingError()}),()=>{!H&&z()}});function Q(W){we[W?"unshift":"push"](()=>{P=W,t(2,P)})}function ee(W){we[W?"unshift":"push"](()=>{k=W,t(1,k)})}return i.$$set=W=>{"adsSlotId"in W&&t(14,c=W.adsSlotId),"adsParams"in W&&t(15,m=W.adsParams),"adsPreviewParam"in W&&t(16,h=W.adsPreviewParam),"duration"in W&&t(17,v=W.duration)},i.$$.update=()=>{i.$$.dirty&262144&&t(4,n=M&&r!=="inactive"),i.$$.dirty&262145&&t(3,o=s&&r!=="inactive"&&S)},[s,k,P,o,n,a,l,u,g,C,A,x,Z,ae,c,m,h,v,r,Q,ee]}var Ra=class extends O{constructor(e){super(),F(this,e,fg,cg,N,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},ug)}},qs=Ra;var Nn=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);e-=n*60;let o=[n,e].map(r=>String(r).padStart(2,"0")).join(":");return t>0&&(o=`${t}:${o}`),o};function dg(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=le(l,a[u]);return{c(){e=B("svg"),s&&s.c(),t=B("path"),n=B("path"),f(t,"fill","none"),f(t,"stroke","#fff"),f(t,"stroke-width","2"),f(t,"d","M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"),f(n,"fill","#f0f2f5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"),Ce(e,l)},m(u,c){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),Ce(e,l=xe(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 mg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var Ba=class extends O{constructor(e){super(),F(this,e,mg,dg,N,{})}},t1=Ba;function pg(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=le(l,a[u]);return{c(){e=B("svg"),s&&s.c(),t=B("rect"),n=B("path"),f(t,"width","42"),f(t,"height","20"),f(t,"fill","#FF3347"),f(t,"rx","5"),f(n,"fill","#F2F3F5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z"),f(n,"clip-rule","evenodd"),Ce(e,l)},m(u,c){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),Ce(e,l=xe(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 _g(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var Na=class extends O{constructor(e){super(),F(this,e,_g,pg,N,{})}},i1=Na;function hg(i){let e,t;return e=new t1({}),{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 gg(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 bg(i){let e,t,n,o,r=[gg,hg],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=Xe()},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&&(ue(),p(s[c],1,1,()=>{s[c]=null}),ce(),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 vg(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Da=class extends O{constructor(e){super(),F(this,e,vg,bg,N,{isActive:0})}},Us=Da;function yg(i){ye(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 wg(i){let e=Nn(i[4]-i[3])+"",t;return{c(){t=Oe(e)},m(n,o){w(n,t,o)},p(n,o){o&24&&e!==(e=Nn(n[4]-n[3])+"")&&We(t,e)},i:_e,o:_e,d(n){n&&y(t)}}}function kg(i){let e,t,n;return t=new Us({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:_e,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 Cg(i){let e,t,n,o,r,s,a,l=[kg,wg],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=G(),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"),K(e,"live",i[1]),K(e,"hidden",i[0]),K(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 v=r;r=c(m,h),r===v?u[r].p(m,h):(ue(),p(u[v],1,1,()=>{u[v]=null}),ce(),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)&&K(e,"live",m[1]),(!a||h&1)&&K(e,"hidden",m[0]),(!a||h&4)&&K(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 Sg(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 Oa=class extends O{constructor(e){super(),F(this,e,Sg,Cg,N,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},yg)}},zs=Oa;var Tr=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 Ng}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as n1}from"@vkontakte/videoplayer-shared/es2018";var jn=i=>{i.stopPropagation(),i.preventDefault()},Ig=i=>{var t;let e=i.previousElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.lastElementChild),e==null||e.focus()},Pg=i=>{var t;let e=i.nextElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.firstElementChild),e==null||e.focus()},Eg=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},Ag=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},o1=i=>i.code==="Escape",Mg=i=>i.code==="ArrowLeft",ns=(i,e=[])=>{let t=i.code;return["Enter","Space",...e].includes(t)},r1=i=>{if(Eg(i)){jn(i),Pg(i.target);return}Ag(i)&&(jn(i),Ig(i.target))},Ir=i=>!n1.isAndroid&&(i==null?void 0:i.detail)===0||n1.isAndroid&&(i==null?void 0:i.pointerType)==="",Pr=async(i,e,t)=>{await mn(),i&&!i.classList.contains("opened")&&!e&&qe(t)&&(await mn(),t.set(!1),i.focus())},s1=async(i,e,t)=>{await mn(),i&&!e&&qe(t)&&(t.set(!1),i.focus())},bo=async(i,e,t)=>{var o;await mn(),!!i&&e&&t&&((o=i.children[0])==null||o.focus())},l1=async(i,e)=>{setTimeout(()=>{let t=i[e];!!t&&t.focus()},100)},Ws=(i,e)=>{r1(i),o1(i)&&(jn(i),e())},Ks=async(i,e,t)=>{if(ns(i,["ArrowRight"])){jn(i),e(),await mn();let n=t();n==null||n.focus()}},a1=async(i,e,{itemIdReturnCase:t,id:n},o)=>{if(r1(i),Mg(i)){jn(i),e(),t.set(n);return}o1(i)&&(jn(i),o())},Er=(i,e)=>{ns(i)&&(jn(i),e())},u1=(i,e,t)=>{if(ns(i))jn(i),t(!e);else{let n=i.code;if(n==="ArrowLeft"&&e){t(!1),jn(i);return}n==="ArrowRight"&&!e&&(t(!0),jn(i))}},c1=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},f1=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 Gs,isValidURL as Dg}from"@vkontakte/videoplayer-shared/es2018";var js=(n=>(n.OPEN_SUB_MENU="OPEN_SUB_MENU",n.CLICK="CLICK",n.SWITCH="SWITCH",n))(js||{});var io={"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 d1}from"@vkontakte/videoplayer-shared/es2018";function Vg(i){ye(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 Rg(i){let e,t,n,o,r;return{c(){var s;e=I("li"),t=Oe(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=[Te(e,"click",vt(i[3])),Te(e,"keydown",i[4])],o=!0)},p(s,[a]){var l;a&2&&We(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:_e,o:_e,d(s){s&&y(e),o=!1,ct(r)}}}function Bg(i,e,t){let{id:n}=e,{onClick:o=d1}=e,{closeContextMenu:r=d1}=e,{label:s}=e,{ariaLabel:a}=e,l=()=>{o(),r()},u=c=>{Er(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 Fa=class extends O{constructor(e){super(),F(this,e,Bg,Rg,N,{id:0,onClick:5,closeContextMenu:6,label:1,ariaLabel:2},Vg)}},m1=Fa;var ar=(i,e)=>i.weight-e.weight;function Og(i){ye(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 p1(i,e,t){let n=i.slice();return n[52]=e[t],n}function _1(i){let e,t,n,o,r=wt(i[2]),s=[];for(let l=0;l<r.length;l+=1)s[l]=h1(p1(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"),fi(e,"top",i[4]+"px"),fi(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=[Te(e,"contextmenu",ci(i[33])),Te(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=p1(l,r,c);s[c]?(s[c].p(m,u),d(s[c],1)):(s[c]=h1(m),s[c].c(),d(s[c],1),s[c].m(e,null))}for(ue(),c=r.length;c<s.length;c+=1)a(c);ce()}(!t||u[0]&16)&&fi(e,"top",l[4]+"px"),(!t||u[0]&8)&&fi(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),ui(s,l),i[34](null),n=!1,ct(o)}}}function h1(i){let e,t;return e=new m1({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 Fg(i){let e,t,n=i[1]&&_1(i);return{c(){n&&n.c(),e=Xe()},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=_1(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ue(),p(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function xg(i,e,t){var De,st,Qe;let n,o,r,s,a,l,u,c,m,h,v,g,T,C,A,{visible:S=!1}=e,{supportLink:k}=e,{position:P={top:0,left:0}}=e,{playerContainerRef:H=void 0}=e,{controlsContainerRef:x=void 0}=e,{menuElementRef:M=void 0}=e,{returnFocus:Z}=e,ae=0,Q=0,ee=it(),W=Mt(),q=ee.ui.contextMenu.visible$,ve=ee.ui.debugPanelVisible;D(i,ve,he=>t(28,h=he));let z=ee.ui.additionalContextMenuItems$;D(i,z,he=>t(27,m=he));let ie=ee.webApi.pictureInPictureApi,U=(De=ee.webApi.pictureInPictureApi)==null?void 0:De.info.isActive$;D(i,U,he=>t(30,T=he));let pe=ee.actions.internal.togglePictureInPicture,se=ee.state.chromecastState$;D(i,se,he=>t(31,C=he));let X=ee.state.isLive$;D(i,X,he=>t(32,A=he));let re=ee.state.positionExact$;D(i,re,he=>t(35,g=he));let oe=ee.state.isInteractive,Ye=ee.state.looped$;D(i,Ye,he=>t(29,v=he));let Fe=()=>{q.set(!1),Z==null||Z()},Pe=(he,Ke)=>{if(!M||!H||!x)return;let ft=M.getBoundingClientRect(),be=H.getBoundingClientRect();t(3,ae=he-be.left),t(4,Q=Ke-be.top),ae+ft.width>be.width&&t(3,ae=be.width-ft.width),Q+ft.height>be.height&&t(4,Q=be.height-ft.height),t(3,ae=Math.max(ae,0)),t(4,Q=Math.max(Q,0))},Se=()=>{ee.actions.internal.videoRotate()},Ae=()=>{Dg(k)&&window.open(k,"_blank"),ee.actions.internal.reportProblem(),ee.actions.internal.pause()},He=()=>{let he=ee.actions.internal.getDebugTextData();if(W.features.saveDebugInfoToFile){let Ke=new Blob([...he],{type:"plain/text"}),ft=window.URL.createObjectURL(Ke);nr(ft,"vk_player_debug_info","txt")}else Tr(ee.actions.internal.getDebugTextData())},J=()=>{let he=ee.actions.internal.getTraceTextData(),Ke=new Blob([...he],{type:"application/json"}),ft=window.URL.createObjectURL(Ke);nr(ft,"vk_player_trace_info","json")},ge=()=>{ve.set(!0)},Ie=async()=>{try{pe()}finally{Z==null||Z()}},Ge=()=>{ee.actions.internal.setLooped(!v)},nt=()=>{var he,Ke;if(r){let ft=(Ke=(he=ee.callbacks)==null?void 0:he.onCopyEmbedCodeClicked)==null?void 0:Ke.call(he);ft&&Tr(ft)}},lt=(he=!1)=>{var Ke,ft;if((Ke=ee.callbacks)!=null&&Ke.onCopyVideoLink){let be=(ft=ee.callbacks)==null?void 0:ft.onCopyVideoLink(he,g);be&&Tr(be)}},ut=he=>{Ws(he,Fe)},et=[];function me(he){Rn.call(this,i,he)}function tt(he){we[he?"unshift":"push"](()=>{M=he,t(0,M)})}return i.$$set=he=>{"visible"in he&&t(1,S=he.visible),"supportLink"in he&&t(14,k=he.supportLink),"position"in he&&t(15,P=he.position),"playerContainerRef"in he&&t(16,H=he.playerContainerRef),"controlsContainerRef"in he&&t(17,x=he.controlsContainerRef),"menuElementRef"in he&&t(0,M=he.menuElementRef),"returnFocus"in he&&t(18,Z=he.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&67108864|i.$$.dirty[1]&2&&t(25,o=n&&!A&&!oe),i.$$.dirty[1]&1&&t(23,s=ie&&C!==Ng.CONNECTED&&!oe),i.$$.dirty[0]&1073741824&&t(21,l=W.showSupport&&!T),i.$$.dirty[0]&229377&&M&&H&&x){let{top:he,left:Ke,bottom:ft,right:be}=P,pt=Ke!=null?Ke:0,yt=he!=null?he:0,Ze=M.getBoundingClientRect();Gs(Ke)&&!Gs(be)&&(pt=be-Ze.width),Gs(he)&&!Gs(ft)&&(yt=ft-Ze.height),pt=Math.max(pt,0),yt=Math.max(yt,0),Pe(pt,yt)}i.$$.dirty[0]&1073217540&&(t(2,et=[]),n&&et.push({id:"copy-link",weight:io["copy-link"],label:j("menu_copy_video_link"),onClick:()=>lt()}),o&&et.push({id:"copy-link-timestamp",weight:io["copy-link-timestamp"],label:j("menu_copy_video_link_with_timestamp"),onClick:()=>lt(!0)}),r&&et.push({id:"copy-embed-code",weight:io["copy-embed-code"],label:j("menu_copy_embed_code"),onClick:nt}),s&&et.push({id:"pip",weight:io.pip,label:j("menu_pip"),onClick:Ie}),et.push({id:"video-loop",weight:io["video-loop"],label:v?j("menu_video_loop_off"):j("menu_video_loop_on"),ariaLabel:j("aria_label_menu_loop"),onClick:Ge}),a&&et.push({id:"rotate",weight:io.rotate,label:j("menu_video_rotate"),ariaLabel:j("aria_label_menu_rotate"),onClick:Se}),l&&et.push({id:"report",weight:io.report,label:j("menu_report"),ariaLabel:`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`,onClick:Ae}),et.push({id:"save-debug",weight:io["save-debug"],label:c,onClick:He}),u&&et.push({id:"save-trace",weight:io["save-trace"],label:j("menu_save_debug"),onClick:J}),et.push({id:"debug-info",weight:io["debug-info"],label:j("menu_debug_overlay"),ariaLabel:h?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"),onClick:ge}),t(2,et=[...et,...m].sort(ar)))},t(26,n=W.features.copyVideoLink&&((st=ee.callbacks)==null?void 0:st.onCopyVideoLink)),t(24,r=!!((Qe=ee.callbacks)!=null&&Qe.onCopyEmbedCodeClicked)),t(22,a=W.features.videoRotate&&!oe),t(19,u=W.features.saveTraceInfoToFile),t(20,c=W.features.saveDebugInfoToFile?j("menu_save_debug"):j("menu_copy_debug")),[M,S,et,ae,Q,ve,z,U,se,X,re,Ye,Fe,ut,k,P,H,x,Z,u,c,l,a,s,r,o,n,m,h,v,T,C,A,me,tt]}var xa=class extends O{constructor(e){super(),F(this,e,xg,Fg,N,{visible:1,supportLink:14,position:15,playerContainerRef:16,controlsContainerRef:17,menuElementRef:0,returnFocus:18},Og,[-1,-1])}},g1=xa;var Ys=class{constructor(e){this.value=e,this.next=null}};var Ar=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new Ys(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 Hg(i){ye(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function qg(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:_e,i:_e,o:_e,d(n){n&&y(e),i[3](null)}}}var Ha=16,qa=120,b1=60;function Ug(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function zg(i,e,t){let{values:n=[]}=e,o,r,s=qa/b1;Ct(()=>{t(0,o.width=qa,o),t(0,o.height=Ha,o),t(2,r=o.getContext("2d"))});function a(l){we[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,qa,Ha);let c=b1-1;for(let m=n.length-1;m>=0;m--){let h=c*s,v=u>0?Ha*(n[m]/u):0;Ug(r,h,0,s,v),l=v+" "+l,c--}}}},[o,n,r,a]}var Ua=class extends O{constructor(e){super(),F(this,e,zg,qg,N,{values:1},Hg)}},Qs=Ua;import{safeStorage as v1}from"@vkontakte/videoplayer-shared/es2018";function Wg(i){ye(i,"svelte-12aksxn",".container.svelte-12aksxn.svelte-12aksxn.svelte-12aksxn{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.svelte-12aksxn.svelte-12aksxn.svelte-12aksxn{top:16px;left:16px}button.svelte-12aksxn.svelte-12aksxn.svelte-12aksxn{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.svelte-12aksxn.svelte-12aksxn.svelte-12aksxn{padding:5px}.content.svelte-12aksxn>div.svelte-12aksxn>div.svelte-12aksxn{display:inline-block;text-align:right;width:60px;padding:0 5px}")}function y1(i){let e,t,n,o,r=i[0].id+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="Video id",n=G(),o=I("span"),s=Oe(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},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+"")&&We(s,r)},d(a){a&&y(e)}}}function w1(i){let e,t,n,o,r=i[0].vsid+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="VSID",n=G(),o=I("span"),s=Oe(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},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+"")&&We(s,r)},d(a){a&&y(e)}}}function k1(i){let e,t,n,o,r=i[0].provider+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="Provider",n=G(),o=I("span"),s=Oe(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},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+"")&&We(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||"")+"",v,g,T=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",C;return{c(){e=I("div"),t=I("div"),t.textContent="Streams",n=G(),o=I("span"),r=Oe("Video: "),a=Oe(s),l=G(),c=Oe(u),m=Oe(`
|
|
24
|
+
)}`)}function Jd(i){let e;return{c(){e=T("div"),f(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){k(t,e,n)},d(t){t&&w(e)}}}function $d(i){let e,t;return e=new Zd({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function e1(i){let e,t;return e=new Qd({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function t1(i){let e,t;return e=new Xd({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function fg(i){let e,t,n,o,r,l,a,s=i[0]&&Jd(i),u=i[4]&&$d(i),c=i[7]&&e1(i),m=i[3]&&t1(i);return{c(){e=T("div"),s&&s.c(),t=G(),n=T("video"),o=G(),u&&u.c(),r=G(),c&&c.c(),l=G(),m&&m.c(),pi(n,"width","100%"),pi(n,"height","100%"),n.playsInline=!0,f(e,"class","container svelte-354ajf")},m(h,v){k(h,e,v),s&&s.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,l),m&&m.m(e,null),i[20](e),a=!0},p(h,[v]){h[0]?s||(s=Jd(h),s.c(),s.m(e,t)):s&&(s.d(1),s=null),h[4]?u?(u.p(h,v),v&16&&d(u,1)):(u=$d(h),u.c(),d(u,1),u.m(e,r)):u&&(ce(),p(u,1,1,()=>{u=null}),fe()),h[7]?c?v&128&&d(c,1):(c=e1(h),c.c(),d(c,1),c.m(e,l)):c&&(ce(),p(c,1,1,()=>{c=null}),fe()),h[3]?m?v&8&&d(m,1):(m=t1(h),m.c(),d(m,1),m.m(e,null)):m&&(ce(),p(m,1,1,()=>{m=null}),fe())},i(h){a||(d(u),d(c),d(m),a=!0)},o(h){p(u),p(c),p(m),a=!1},d(h){h&&w(e),s&&s.d(),i[19](null),u&&u.d(),c&&c.d(),m&&m.d(),i[20](null)}}}function dg(i,e,t){let n,o,r,l,a,s,u,{adsSlotId:c=void 0}=e,{adsParams:m=void 0}=e,{adsPreviewParam:h=void 0}=e,{duration:v=0}=e,g=it(),S=Mt(),y=g.state.isEnded$;B(i,y,q=>t(7,u=q));let A=g.ui.isMobile;B(i,A,q=>t(0,l=q));let I=S.ads.isMobileGoToSiteButton,C,P,U=!1,x=g.ads.playbackState;B(i,x,q=>t(18,r=q));let V=g.ads.canSkip,Z=g.ads.position;B(i,Z,q=>t(5,a=q));let ae=g.ads.secondsToWatchBeforeSkip;B(i,ae,q=>t(6,s=q)),Ct(()=>{let q=g.getAdmanWrapper();if(!c){q.onAdmanLoadingError();return}let H=re=>{q.initAdman(re),U=!0},be=new AbortController,W=()=>{be.abort()},{width:te,height:z}=Ue(g.ui.playerSize),pe=Ue(g.ui.isFullscreen),se=Ue(g.ui.isAutoplay),X={width:te,height:z,isFullscreen:pe,isAutoplay:se,adsContainer:C,adsVideoElement:P,slotId:c,params:m,previewParam:h,duration:v};return window.AdmanHTML?H(X):q.loadAdman(be.signal).then(()=>{H(X)}).catch(()=>{q.onAdmanLoadingError()}),()=>{!U&&W()}});function Q(q){ye[q?"unshift":"push"](()=>{P=q,t(2,P)})}function ue(q){ye[q?"unshift":"push"](()=>{C=q,t(1,C)})}return i.$$set=q=>{"adsSlotId"in q&&t(14,c=q.adsSlotId),"adsParams"in q&&t(15,m=q.adsParams),"adsPreviewParam"in q&&t(16,h=q.adsPreviewParam),"duration"in q&&t(17,v=q.duration)},i.$$.update=()=>{i.$$.dirty&262144&&t(4,n=V&&r!=="inactive"),i.$$.dirty&262145&&t(3,o=l&&r!=="inactive"&&I)},[l,C,P,o,n,a,s,u,g,y,A,x,Z,ae,c,m,h,v,r,Q,ue]}var Ba=class extends O{constructor(e){super(),F(this,e,dg,fg,D,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},cg)}},qs=Ba;var Nn=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);e-=n*60;let o=[n,e].map(r=>String(r).padStart(2,"0")).join(":");return t>0&&(o=`${t}:${o}`),o};function mg(i){let e,t,n,o,r=i[2].default,l=Ve(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]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("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"),ke(e,s)},m(u,c){k(u,e,c),l&&l.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Be(l,r,u,u[1],o?Re(r,u[1],c,null):Ne(u[1]),null),ke(e,s=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(l,u),o=!0)},o(u){p(l,u),o=!1},d(u){u&&w(e),l&&l.d(u)}}}function pg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Na=class extends O{constructor(e){super(),F(this,e,pg,mg,D,{})}},i1=Na;function _g(i){let e,t,n,o,r=i[2].default,l=Ve(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]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("rect"),n=N("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"),ke(e,s)},m(u,c){k(u,e,c),l&&l.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Be(l,r,u,u[1],o?Re(r,u[1],c,null):Ne(u[1]),null),ke(e,s=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(l,u),o=!0)},o(u){p(l,u),o=!1},d(u){u&&w(e),l&&l.d(u)}}}function hg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Da=class extends O{constructor(e){super(),F(this,e,hg,_g,D,{})}},n1=Da;function gg(i){let e,t;return e=new i1({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function bg(i){let e,t;return e=new n1({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function vg(i){let e,t,n,o,r=[bg,gg],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=Je()},m(s,u){l[e].m(s,u),k(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e!==c&&(ce(),p(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){p(t),o=!1},d(s){s&&w(n),l[e].d(s)}}}function yg(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Oa=class extends O{constructor(e){super(),F(this,e,yg,vg,D,{isActive:0})}},Us=Oa;function wg(i){ve(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 kg(i){let e=Nn(i[4]-i[3])+"",t;return{c(){t=Oe(e)},m(n,o){k(n,t,o)},p(n,o){o&24&&e!==(e=Nn(n[4]-n[3])+"")&&Ke(t,e)},i:_e,o:_e,d(n){n&&w(t)}}}function Cg(i){let e,t,n;return t=new Us({props:{isActive:!0}}),{c(){e=T("div"),R(t.$$.fragment),f(e,"class","thumb-timer-live-icon svelte-i7xnqb")},m(o,r){k(o,e,r),M(t,e,null),n=!0},p:_e,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),L(t)}}}function Sg(i){let e,t,n,o,r,l,a,s=[Cg,kg],u=[];function c(m,h){return m[1]?0:1}return r=c(i,-1),l=u[r]=s[r](i),{c(){e=T("div"),t=T("div"),t.innerHTML='<div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div>',n=G(),o=T("span"),l.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"),K(e,"live",i[1]),K(e,"hidden",i[0]),K(e,"playing",i[2])},m(m,h){k(m,e,h),_(e,t),_(e,n),_(e,o),u[r].m(o,null),a=!0},p(m,[h]){let v=r;r=c(m,h),r===v?u[r].p(m,h):(ce(),p(u[v],1,1,()=>{u[v]=null}),fe(),l=u[r],l?l.p(m,h):(l=u[r]=s[r](m),l.c()),d(l,1),l.m(o,null)),(!a||h&2)&&K(e,"live",m[1]),(!a||h&1)&&K(e,"hidden",m[0]),(!a||h&4)&&K(e,"playing",m[2])},i(m){a||(d(l),a=!0)},o(m){p(l),a=!1},d(m){m&&w(e),u[r].d()}}}function Tg(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:r=!1}=e,{position:l}=e,{duration:a}=e;return i.$$set=s=>{"isHidden"in s&&t(0,n=s.isHidden),"isLive"in s&&t(1,o=s.isLive),"isPlaying"in s&&t(2,r=s.isPlaying),"position"in s&&t(3,l=s.position),"duration"in s&&t(4,a=s.duration)},[n,o,r,l,a]}var Fa=class extends O{constructor(e){super(),F(this,e,Tg,Sg,D,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},wg)}},zs=Fa;var Tr=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 Dg}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as o1}from"@vkontakte/videoplayer-shared/es2018";var Wn=i=>{i.stopPropagation(),i.preventDefault()},Pg=i=>{var t;let e=i.previousElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.lastElementChild),e==null||e.focus()},Eg=i=>{var t;let e=i.nextElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.firstElementChild),e==null||e.focus()},Ag=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},Mg=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},r1=i=>i.code==="Escape",Lg=i=>i.code==="ArrowLeft",ts=(i,e=[])=>{let t=i.code;return["Enter","Space",...e].includes(t)},s1=i=>{if(Ag(i)){Wn(i),Eg(i.target);return}Mg(i)&&(Wn(i),Pg(i.target))},Ir=i=>!o1.isAndroid&&(i==null?void 0:i.detail)===0||o1.isAndroid&&(i==null?void 0:i.pointerType)==="",Pr=async(i,e,t)=>{await fn(),i&&!i.classList.contains("opened")&&!e&&Ue(t)&&(await fn(),t.set(!1),i.focus())},l1=async(i,e,t)=>{await fn(),i&&!e&&Ue(t)&&(t.set(!1),i.focus())},_o=async(i,e,t)=>{var o;await fn(),!!i&&e&&t&&((o=i.children[0])==null||o.focus())},a1=async(i,e)=>{setTimeout(()=>{let t=i[e];!!t&&t.focus()},100)},Ws=(i,e)=>{s1(i),r1(i)&&(Wn(i),e())},Ks=async(i,e,t)=>{if(ts(i,["ArrowRight"])){Wn(i),e(),await fn();let n=t();n==null||n.focus()}},u1=async(i,e,{itemIdReturnCase:t,id:n},o)=>{if(s1(i),Lg(i)){Wn(i),e(),t.set(n);return}r1(i)&&(Wn(i),o())},Er=(i,e)=>{ts(i)&&(Wn(i),e())},c1=(i,e,t)=>{if(ts(i))Wn(i),t(!e);else{let n=i.code;if(n==="ArrowLeft"&&e){t(!1),Wn(i);return}n==="ArrowRight"&&!e&&(t(!0),Wn(i))}},f1=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},d1=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 Gs,isValidURL as Og}from"@vkontakte/videoplayer-shared/es2018";var js=(n=>(n.OPEN_SUB_MENU="OPEN_SUB_MENU",n.CLICK="CLICK",n.SWITCH="SWITCH",n))(js||{});var $n={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};import{noop as m1}from"@vkontakte/videoplayer-shared/es2018";function Rg(i){ve(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 Bg(i){let e,t,n,o,r;return{c(){var l;e=T("li"),t=Oe(i[1]),f(e,"class","item svelte-1hm4mm9"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",n=(l=i[2])!=null?l:i[1]),f(e,"data-testid",i[0])},m(l,a){k(l,e,a),_(e,t),o||(r=[Se(e,"click",vt(i[3])),Se(e,"keydown",i[4])],o=!0)},p(l,[a]){var s;a&2&&Ke(t,l[1]),a&6&&n!==(n=(s=l[2])!=null?s:l[1])&&f(e,"aria-label",n),a&1&&f(e,"data-testid",l[0])},i:_e,o:_e,d(l){l&&w(e),o=!1,ut(r)}}}function Ng(i,e,t){let{id:n}=e,{onClick:o=m1}=e,{closeContextMenu:r=m1}=e,{label:l}=e,{ariaLabel:a}=e,s=()=>{o(),r()},u=c=>{Er(c,()=>s())};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,l=c.label),"ariaLabel"in c&&t(2,a=c.ariaLabel)},[n,l,a,s,u,o,r]}var xa=class extends O{constructor(e){super(),F(this,e,Ng,Bg,D,{id:0,onClick:5,closeContextMenu:6,label:1,ariaLabel:2},Rg)}},p1=xa;var sr=(i,e)=>i.weight-e.weight;function Fg(i){ve(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 _1(i,e,t){let n=i.slice();return n[54]=e[t],n}function h1(i){let e,t,n,o,r=wt(i[2]),l=[];for(let s=0;s<r.length;s+=1)l[s]=g1(_1(i,r,s));let a=s=>p(l[s],1,1,()=>{l[s]=null});return{c(){e=T("ul");for(let s=0;s<l.length;s+=1)l[s].c();f(e,"role","menu"),pi(e,"top",i[4]+"px"),pi(e,"left",i[3]+"px"),f(e,"class","svelte-1p5ukkp")},m(s,u){k(s,e,u);for(let c=0;c<l.length;c+=1)l[c]&&l[c].m(e,null);i[36](e),t=!0,n||(o=[Se(e,"contextmenu",mi(i[35])),Se(e,"keydown",i[14])],n=!0)},p(s,u){if(u[0]&8196){r=wt(s[2]);let c;for(c=0;c<r.length;c+=1){let m=_1(s,r,c);l[c]?(l[c].p(m,u),d(l[c],1)):(l[c]=g1(m),l[c].c(),d(l[c],1),l[c].m(e,null))}for(ce(),c=r.length;c<l.length;c+=1)a(c);fe()}(!t||u[0]&16)&&pi(e,"top",s[4]+"px"),(!t||u[0]&8)&&pi(e,"left",s[3]+"px")},i(s){if(!t){for(let u=0;u<r.length;u+=1)d(l[u]);t=!0}},o(s){l=l.filter(Boolean);for(let u=0;u<l.length;u+=1)p(l[u]);t=!1},d(s){s&&w(e),di(l,s),i[36](null),n=!1,ut(o)}}}function g1(i){let e,t;return e=new p1({props:{id:i[54].id,label:i[54].label,ariaLabel:i[54].ariaLabel,onClick:i[54].onClick,closeContextMenu:i[13]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.id=n[54].id),o[0]&4&&(r.label=n[54].label),o[0]&4&&(r.ariaLabel=n[54].ariaLabel),o[0]&4&&(r.onClick=n[54].onClick),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function xg(i){let e,t,n=i[1]&&h1(i);return{c(){n&&n.c(),e=Je()},m(o,r){n&&n.m(o,r),k(o,e,r),t=!0},p(o,r){o[1]?n?(n.p(o,r),r[0]&2&&d(n,1)):(n=h1(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),p(n,1,1,()=>{n=null}),fe())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function Hg(i,e,t){var je,xe;let n,o,r,l,a,s,u,c,m,h,v,g,S,y,A,I,{visible:C=!1}=e,{supportLink:P}=e,{position:U={top:0,left:0}}=e,{playerContainerRef:x=void 0}=e,{controlsContainerRef:V=void 0}=e,{menuElementRef:Z=void 0}=e,{returnFocus:ae}=e,Q=0,ue=0,q=it(),{pictureInPicture$:H}=dn(),be=Mt(),W=q.ui.contextMenu.visible$,te=q.ui.debugPanelVisible;B(i,te,Pe=>t(29,h=Pe));let z=q.ui.additionalContextMenuItems$;B(i,z,Pe=>t(28,m=Pe));let pe=q.actions.internal.togglePictureInPicture,se=q.state.chromecastState$;B(i,se,Pe=>t(32,y=Pe));let X=q.state.isLive$;B(i,X,Pe=>t(34,I=Pe));let re=q.state.positionExact$;B(i,re,Pe=>t(37,g=Pe));let oe=q.state.isInteractive,Ze=q.state.looped$;B(i,Ze,Pe=>t(30,v=Pe));let{isEnabled$:Fe,isActive$:Ie}=H;B(i,Fe,Pe=>t(33,A=Pe)),B(i,Ie,Pe=>t(31,S=Pe));let Ce=()=>{W.set(!1),ae==null||ae()},Ae=(Pe,ft)=>{if(!Z||!x||!V)return;let ge=Z.getBoundingClientRect(),dt=x.getBoundingClientRect();t(3,Q=Pe-dt.left),t(4,ue=ft-dt.top),Q+ge.width>dt.width&&t(3,Q=dt.width-ge.width),ue+ge.height>dt.height&&t(4,ue=dt.height-ge.height),t(3,Q=Math.max(Q,0)),t(4,ue=Math.max(ue,0))},qe=()=>{q.actions.internal.videoRotate()},J=()=>{Og(P)&&window.open(P,"_blank"),q.actions.internal.reportProblem(),q.actions.internal.pause()},he=()=>{let Pe=q.actions.internal.getDebugTextData();if(be.features.saveDebugInfoToFile){let ft=new Blob([...Pe],{type:"plain/text"}),ge=window.URL.createObjectURL(ft);tr(ge,"vk_player_debug_info","txt")}else Tr(q.actions.internal.getDebugTextData())},Te=()=>{let Pe=q.actions.internal.getTraceTextData(),ft=new Blob([...Pe],{type:"application/json"}),ge=window.URL.createObjectURL(ft);tr(ge,"vk_player_trace_info","json")},Ye=()=>{te.set(!0)},nt=async()=>{try{pe()}finally{ae==null||ae()}},st=()=>{q.actions.internal.setLooped(!v)},at=()=>{var Pe,ft;if(r){let ge=(ft=(Pe=q.callbacks)==null?void 0:Pe.onCopyEmbedCodeClicked)==null?void 0:ft.call(Pe);ge&&Tr(ge)}},ct=(Pe=!1)=>{var ft,ge;if((ft=q.callbacks)!=null&&ft.onCopyVideoLink){let dt=(ge=q.callbacks)==null?void 0:ge.onCopyVideoLink(Pe,g);dt&&Tr(dt)}},me=Pe=>{Ws(Pe,Ce)},Qe=[];function De(Pe){Bn.call(this,i,Pe)}function lt(Pe){ye[Pe?"unshift":"push"](()=>{Z=Pe,t(0,Z)})}return i.$$set=Pe=>{"visible"in Pe&&t(1,C=Pe.visible),"supportLink"in Pe&&t(15,P=Pe.supportLink),"position"in Pe&&t(16,U=Pe.position),"playerContainerRef"in Pe&&t(17,x=Pe.playerContainerRef),"controlsContainerRef"in Pe&&t(18,V=Pe.controlsContainerRef),"menuElementRef"in Pe&&t(0,Z=Pe.menuElementRef),"returnFocus"in Pe&&t(19,ae=Pe.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&134217728|i.$$.dirty[1]&8&&t(26,o=n&&!I&&!oe),i.$$.dirty[1]&6&&t(24,l=A&&y!==Dg.CONNECTED&&!oe),i.$$.dirty[1]&1&&t(22,s=be.showSupport&&!S),i.$$.dirty[0]&458753&&Z&&x&&V){let{top:Pe,left:ft,bottom:ge,right:dt}=U,bt=ft!=null?ft:0,Xe=Pe!=null?Pe:0,yt=Z.getBoundingClientRect();Gs(ft)&&!Gs(dt)&&(bt=dt-yt.width),Gs(Pe)&&!Gs(ge)&&(Xe=ge-yt.height),bt=Math.max(bt,0),Xe=Math.max(Xe,0),Ae(bt,Xe)}i.$$.dirty[0]&2146435076&&(t(2,Qe=[]),n&&Qe.push({id:"copy-link",weight:$n["copy-link"],label:j("menu_copy_video_link"),onClick:()=>ct()}),o&&Qe.push({id:"copy-link-timestamp",weight:$n["copy-link-timestamp"],label:j("menu_copy_video_link_with_timestamp"),onClick:()=>ct(!0)}),r&&Qe.push({id:"copy-embed-code",weight:$n["copy-embed-code"],label:j("menu_copy_embed_code"),onClick:at}),l&&Qe.push({id:"pip",weight:$n.pip,label:j("menu_pip"),onClick:nt}),Qe.push({id:"video-loop",weight:$n["video-loop"],label:v?j("menu_video_loop_off"):j("menu_video_loop_on"),ariaLabel:j("aria_label_menu_loop"),onClick:st}),a&&Qe.push({id:"rotate",weight:$n.rotate,label:j("menu_video_rotate"),ariaLabel:j("aria_label_menu_rotate"),onClick:qe}),s&&Qe.push({id:"report",weight:$n.report,label:j("menu_report"),ariaLabel:`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`,onClick:J}),Qe.push({id:"save-debug",weight:$n["save-debug"],label:c,onClick:he}),u&&Qe.push({id:"save-trace",weight:$n["save-trace"],label:j("menu_save_debug"),onClick:Te}),Qe.push({id:"debug-info",weight:$n["debug-info"],label:j("menu_debug_overlay"),ariaLabel:h?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"),onClick:Ye}),t(2,Qe=[...Qe,...m].sort(sr)))},t(27,n=be.features.copyVideoLink&&((je=q.callbacks)==null?void 0:je.onCopyVideoLink)),t(25,r=!!((xe=q.callbacks)!=null&&xe.onCopyEmbedCodeClicked)),t(23,a=be.features.videoRotate&&!oe),t(20,u=be.features.saveTraceInfoToFile),t(21,c=be.features.saveDebugInfoToFile?j("menu_save_debug"):j("menu_copy_debug")),[Z,C,Qe,Q,ue,te,z,se,X,re,Ze,Fe,Ie,Ce,me,P,U,x,V,ae,u,c,s,a,l,r,o,n,m,h,v,S,y,A,I,De,lt]}var Ha=class extends O{constructor(e){super(),F(this,e,Hg,xg,D,{visible:1,supportLink:15,position:16,playerContainerRef:17,controlsContainerRef:18,menuElementRef:0,returnFocus:19},Fg,[-1,-1])}},b1=Ha;var Ys=class{constructor(e){this.value=e,this.next=null}};var Ar=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new Ys(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 qg(i){ve(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function Ug(i){let e,t;return{c(){e=T("div"),t=T("canvas"),f(t,"class","svelte-1ssl9eb"),f(e,"class","container svelte-1ssl9eb")},m(n,o){k(n,e,o),_(e,t),i[3](t)},p:_e,i:_e,o:_e,d(n){n&&w(e),i[3](null)}}}var qa=16,Ua=120,v1=60;function zg(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function Wg(i,e,t){let{values:n=[]}=e,o,r,l=Ua/v1;Ct(()=>{t(0,o.width=Ua,o),t(0,o.height=qa,o),t(2,r=o.getContext("2d"))});function a(s){ye[s?"unshift":"push"](()=>{o=s,t(0,o)})}return i.$$set=s=>{"values"in s&&t(1,n=s.values)},i.$$.update=()=>{if(i.$$.dirty&6){let s="";if(r){let u=n[0];for(let m=1;m<n.length;m++)n[m]>u&&(u=n[m]);r.clearRect(0,0,Ua,qa);let c=v1-1;for(let m=n.length-1;m>=0;m--){let h=c*l,v=u>0?qa*(n[m]/u):0;zg(r,h,0,l,v),s=v+" "+s,c--}}}},[o,n,r,a]}var za=class extends O{constructor(e){super(),F(this,e,Wg,Ug,D,{values:1},qg)}},Qs=za;import{safeStorage as y1}from"@vkontakte/videoplayer-shared/es2018";function Kg(i){ve(i,"svelte-12aksxn",".container.svelte-12aksxn.svelte-12aksxn.svelte-12aksxn{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.svelte-12aksxn.svelte-12aksxn.svelte-12aksxn{top:16px;left:16px}button.svelte-12aksxn.svelte-12aksxn.svelte-12aksxn{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.svelte-12aksxn.svelte-12aksxn.svelte-12aksxn{padding:5px}.content.svelte-12aksxn>div.svelte-12aksxn>div.svelte-12aksxn{display:inline-block;text-align:right;width:60px;padding:0 5px}")}function w1(i){let e,t,n,o,r=i[0].id+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Video id",n=G(),o=T("span"),l=Oe(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(a,s){k(a,e,s),_(e,t),_(e,n),_(e,o),_(o,l)},p(a,s){s&1&&r!==(r=a[0].id+"")&&Ke(l,r)},d(a){a&&w(e)}}}function k1(i){let e,t,n,o,r=i[0].vsid+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="VSID",n=G(),o=T("span"),l=Oe(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(a,s){k(a,e,s),_(e,t),_(e,n),_(e,o),_(o,l)},p(a,s){s&1&&r!==(r=a[0].vsid+"")&&Ke(l,r)},d(a){a&&w(e)}}}function C1(i){let e,t,n,o,r=i[0].provider+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Provider",n=G(),o=T("span"),l=Oe(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(a,s){k(a,e,s),_(e,t),_(e,n),_(e,o),_(o,l)},p(a,s){s&1&&r!==(r=a[0].provider+"")&&Ke(l,r)},d(a){a&&w(e)}}}function S1(i){let e,t,n,o,r,l=(i[0].videoCodec||"")+"",a,s,u=i[0].hdr?"(HDR)":"",c,m,h=(i[0].audioCodec||"")+"",v,g,S=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",y;return{c(){e=T("div"),t=T("div"),t.textContent="Streams",n=G(),o=T("span"),r=Oe("Video: "),a=Oe(l),s=G(),c=Oe(u),m=Oe(`
|
|
25
25
|
&
|
|
26
|
-
Audio: `),v=Oe(h),g=G(),C=Oe(T),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(A,S){w(A,e,S),_(e,t),_(e,n),_(e,o),_(o,r),_(o,a),_(o,l),_(o,c),_(o,m),_(o,v),_(o,g),_(o,C)},p(A,S){S&1&&s!==(s=(A[0].videoCodec||"")+"")&&We(a,s),S&1&&u!==(u=A[0].hdr?"(HDR)":"")&&We(c,u),S&1&&h!==(h=(A[0].audioCodec||"")+"")&&We(v,h),S&1&&T!==(T=A[0].audioLanguage?`(${A[0].audioLanguage})`:"")&&We(C,T)},d(A){A&&y(e)}}}function S1(i){let e,t,n,o,r=i[0].viewport+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="Viewport",n=G(),o=I("span"),s=Oe(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},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+"")&&We(s,r)},d(a){a&&y(e)}}}function T1(i){let e,t,n,o,r=i[0].videoSize+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="Video size",n=G(),o=I("span"),s=Oe(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},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+"")&&We(s,r)},d(a){a&&y(e)}}}function I1(i){let e,t,n,o,r=i[0].cdn+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="CDN host",n=G(),o=I("span"),s=Oe(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},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+"")&&We(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=G(),o=I("span"),s=Oe(r),a=Oe(" %"),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},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+"")&&We(s,r)},d(l){l&&y(e)}}}function E1(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=G(),o=I("span"),s=Oe(r),a=Oe(" s"),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},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)+"")&&We(s,r)},d(l){l&&y(e)}}}function A1(i){let e,t,n,o,r=i[0].liveLatency.toFixed(2)+"",s,a;return{c(){e=I("div"),t=I("div"),t.textContent="Live latency",n=G(),o=I("span"),s=Oe(r),a=Oe(" s"),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},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].liveLatency.toFixed(2)+"")&&We(s,r)},d(l){l&&y(e)}}}function M1(i){let e,t,n,o,r=[{value:i[0].currentVideoSegmentLength,title:"Video:"},{value:i[0].currentAudioSegmentLength,title:"Audio:"}].filter(R1).map(B1).join(" & ")+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="Segment",n=G(),o=I("span"),s=Oe(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},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(R1).map(B1).join(" & ")+"")&&We(s,r)},d(a){a&&y(e)}}}function L1(i){let e,t,n,o,r,s,a=i[0].speed.toFixed(2)+"",l,u,c;return o=new Qs({props:{values:i[5]}}),{c(){e=I("div"),t=I("div"),t.textContent="Network",n=G(),R(o.$$.fragment),r=G(),s=I("span"),l=Oe(a),u=Oe(" Kbps"),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},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 v={};h&32&&(v.values=m[5]),o.$set(v),(!c||h&1)&&a!==(a=m[0].speed.toFixed(2)+"")&&We(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 V1(i){let e,t,n,o,r,s,a=i[0].bitrate.toFixed(2)+"",l,u,c;return o=new Qs({props:{values:i[6]}}),{c(){e=I("div"),t=I("div"),t.textContent="V bitrate",n=G(),R(o.$$.fragment),r=G(),s=I("span"),l=Oe(a),u=Oe(" Kbps"),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},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 v={};h&64&&(v.values=m[6]),o.$set(v),(!c||h&1)&&a!==(a=m[0].bitrate.toFixed(2)+"")&&We(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 Kg(i){let e,t,n,o,r,s,a,l,u=i[0].version+"",c,m,h,v,g,T,C,A,S,k,P,H,x,M,Z,ae,Q,ee,W,q,ve,z,ie,U,pe,se,X,re,oe,Ye,Fe,Pe,Se,Ae,He,J=i[0].id&&y1(i),ge=i[0].vsid&&w1(i),Ie=i[0].provider&&k1(i),Ge=(i[0].videoCodec||i[0].audioCodec)&&C1(i),nt=i[0].viewport&&S1(i),lt=i[0].videoSize&&T1(i),ut=i[0].cdn&&I1(i),et=i[0].volume&&P1(i),me=i[0].buffer&&E1(i),tt=i[0].liveLatency&&A1(i),De=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&M1(i),st=i[0].speed&&L1(i),Qe=i[0].bitrate&&V1(i);return re=new Qs({props:{values:i[4]}}),{c(){e=I("div"),t=I("button"),t.textContent="[x]",n=G(),o=I("div"),r=I("div"),s=I("div"),s.textContent="Version",a=G(),l=I("span"),c=Oe(u),m=G(),J&&J.c(),h=G(),ge&&ge.c(),v=G(),Ie&&Ie.c(),g=G(),Ge&&Ge.c(),T=G(),nt&&nt.c(),C=G(),lt&<.c(),A=G(),ut&&ut.c(),S=G(),et&&et.c(),k=G(),me&&me.c(),P=G(),tt&&tt.c(),H=G(),De&&De.c(),x=G(),M=I("div"),Z=I("div"),Z.textContent="Dropped",ae=G(),Q=I("span"),ee=Oe(i[2]),W=Oe(" / "),q=Oe(i[1]),ve=Oe(" frames"),z=G(),st&&st.c(),ie=G(),Qe&&Qe.c(),U=G(),pe=I("div"),se=I("div"),se.textContent="FPS",X=G(),R(re.$$.fragment),oe=G(),Ye=I("span"),Fe=Oe(i[3]),f(t,"class","close svelte-12aksxn"),f(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),f(s,"class","svelte-12aksxn"),f(r,"class","svelte-12aksxn"),f(Z,"class","svelte-12aksxn"),f(M,"class","svelte-12aksxn"),f(se,"class","svelte-12aksxn"),f(pe,"class","svelte-12aksxn"),f(o,"class","content svelte-12aksxn"),f(e,"class","container svelte-12aksxn"),f(e,"role","region"),f(e,"aria-label",Pe=j("aria_label_debug_panel")),K(e,"container-mobile",i[7])},m(he,Ke){w(he,e,Ke),_(e,t),_(e,n),_(e,o),_(o,r),_(r,s),_(r,a),_(r,l),_(l,c),_(o,m),J&&J.m(o,null),_(o,h),ge&&ge.m(o,null),_(o,v),Ie&&Ie.m(o,null),_(o,g),Ge&&Ge.m(o,null),_(o,T),nt&&nt.m(o,null),_(o,C),lt&<.m(o,null),_(o,A),ut&&ut.m(o,null),_(o,S),et&&et.m(o,null),_(o,k),me&&me.m(o,null),_(o,P),tt&&tt.m(o,null),_(o,H),De&&De.m(o,null),_(o,x),_(o,M),_(M,Z),_(M,ae),_(M,Q),_(Q,ee),_(Q,W),_(Q,q),_(Q,ve),_(o,z),st&&st.m(o,null),_(o,ie),Qe&&Qe.m(o,null),_(o,U),_(o,pe),_(pe,se),_(pe,X),L(re,pe,null),_(pe,oe),_(pe,Ye),_(Ye,Fe),Se=!0,Ae||(He=Te(t,"click",vt(i[9])),Ae=!0)},p(he,[Ke]){(!Se||Ke&1)&&u!==(u=he[0].version+"")&&We(c,u),he[0].id?J?J.p(he,Ke):(J=y1(he),J.c(),J.m(o,h)):J&&(J.d(1),J=null),he[0].vsid?ge?ge.p(he,Ke):(ge=w1(he),ge.c(),ge.m(o,v)):ge&&(ge.d(1),ge=null),he[0].provider?Ie?Ie.p(he,Ke):(Ie=k1(he),Ie.c(),Ie.m(o,g)):Ie&&(Ie.d(1),Ie=null),he[0].videoCodec||he[0].audioCodec?Ge?Ge.p(he,Ke):(Ge=C1(he),Ge.c(),Ge.m(o,T)):Ge&&(Ge.d(1),Ge=null),he[0].viewport?nt?nt.p(he,Ke):(nt=S1(he),nt.c(),nt.m(o,C)):nt&&(nt.d(1),nt=null),he[0].videoSize?lt?lt.p(he,Ke):(lt=T1(he),lt.c(),lt.m(o,A)):lt&&(lt.d(1),lt=null),he[0].cdn?ut?ut.p(he,Ke):(ut=I1(he),ut.c(),ut.m(o,S)):ut&&(ut.d(1),ut=null),he[0].volume?et?et.p(he,Ke):(et=P1(he),et.c(),et.m(o,k)):et&&(et.d(1),et=null),he[0].buffer?me?me.p(he,Ke):(me=E1(he),me.c(),me.m(o,P)):me&&(me.d(1),me=null),he[0].liveLatency?tt?tt.p(he,Ke):(tt=A1(he),tt.c(),tt.m(o,H)):tt&&(tt.d(1),tt=null),he[0].currentVideoSegmentLength||he[0].currentAudioSegmentLength?De?De.p(he,Ke):(De=M1(he),De.c(),De.m(o,x)):De&&(De.d(1),De=null),(!Se||Ke&4)&&We(ee,he[2]),(!Se||Ke&2)&&We(q,he[1]),he[0].speed?st?(st.p(he,Ke),Ke&1&&d(st,1)):(st=L1(he),st.c(),d(st,1),st.m(o,ie)):st&&(ue(),p(st,1,1,()=>{st=null}),ce()),he[0].bitrate?Qe?(Qe.p(he,Ke),Ke&1&&d(Qe,1)):(Qe=V1(he),Qe.c(),d(Qe,1),Qe.m(o,U)):Qe&&(ue(),p(Qe,1,1,()=>{Qe=null}),ce());let ft={};Ke&16&&(ft.values=he[4]),re.$set(ft),(!Se||Ke&8)&&We(Fe,he[3]),(!Se||Ke&128)&&K(e,"container-mobile",he[7])},i(he){Se||(d(st),d(Qe),d(re.$$.fragment,he),Se=!0)},o(he){p(st),p(Qe),p(re.$$.fragment,he),Se=!1},d(he){he&&y(e),J&&J.d(),ge&&ge.d(),Ie&&Ie.d(),Ge&&Ge.d(),nt&&nt.d(),lt&<.d(),ut&&ut.d(),et&&et.d(),me&&me.d(),tt&&tt.d(),De&&De.d(),st&&st.d(),Qe&&Qe.d(),V(re),Ae=!1,He()}}}var R1=({value:i})=>i,B1=({value:i,title:e})=>`${e} ${((i!=null?i:0)/1e3).toFixed(2)} s`;function jg(i,e,t){let n,o=it(),r=o.ui.debugPanelVisible,s=o.ui.isMobile;D(i,s,k=>t(7,n=k));let a=()=>{v1.remove(es),r.set(!1)},l=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),c=0,m=0,h=0,v=new Ar(60),g=new Ar(60),T=new Ar(60),C=[],A=[],S=[];return Ct(()=>{v1.set(es,"true"),o.actions.internal.startLogging(),u&&(t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,c=u.getVideoPlaybackQuality().totalVideoFrames));let k=window.setInterval(()=>{t(0,l=o.actions.internal.getDebugPanelData())},500),P;return u&&(P=window.setInterval(()=>{if(u){t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames);let H=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=H-c),t(1,c=H),v.push(h),l.speed&&g.push(l.speed),l.bitrate&&T.push(l.bitrate),t(4,C=v.getValuesFromBottom()),t(5,A=g.getValuesFromBottom()),t(6,S=T.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(k),P&&clearInterval(P)}}),[l,c,m,h,C,A,S,n,s,a]}var za=class extends O{constructor(e){super(),F(this,e,jg,Kg,N,{},Wg)}},Zs=za;function Gg(i){ye(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 Yg(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=Te(e,"click",vt(i[0])),t=!0)},p:_e,i:_e,o:_e,d(o){o&&y(e),t=!1,n()}}}function Qg(i){function e(t){Rn.call(this,i,t)}return[e]}var Wa=class extends O{constructor(e){super(),F(this,e,Qg,Yg,N,{},Gg)}},Xs=Wa;import{noop as Zg}from"@vkontakte/videoplayer-shared/es2018";function Xg(i){ye(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 Jg(i){let e,t,n,o,r,s,a;return{c(){e=I("div"),t=I("canvas"),n=G(),o=B("svg"),r=B("g"),s=B("g"),a=B("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[3](t),_(e,n),_(e,o),_(o,r),_(r,s),_(s,a)},p:_e,i:_e,o:_e,d(l){l&&y(e),i[3](null)}}}var $g=5e3;function e2(i,e,t){let{isRunning:n=!0}=e,{onTimerEnded:o=Zg}=e,r,s,a,l,u,c=()=>{n&&(u=(Date.now()-a)/$g,u<1?(s==null||s.clearRect(0,0,100,100),s==null||s.beginPath(),s==null||s.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),s==null||s.stroke(),l=requestAnimationFrame(c)):o())};Ct(()=>{if(s=r.getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{cancelAnimationFrame(l)}});function m(h){we[h?"unshift":"push"](()=>{r=h,t(0,r)})}return i.$$set=h=>{"isRunning"in h&&t(1,n=h.isRunning),"onTimerEnded"in h&&t(2,o=h.onTimerEnded)},i.$$.update=()=>{i.$$.dirty&2&&n&&(a=Date.now(),l=requestAnimationFrame(c))},[r,n,o,m]}var Ka=class extends O{constructor(e){super(),F(this,e,e2,Jg,N,{isRunning:1,onTimerEnded:2},Xg)}},Js=Ka;function t2(i){ye(i,"svelte-149n6j1",".overlay.svelte-149n6j1{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-149n6j1{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.svelte-149n6j1{display:flex;justify-content:space-between}.caption.svelte-149n6j1{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-149n6j1{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%}.column.svelte-149n6j1{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-149n6j1{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.svelte-149n6j1{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.svelte-149n6j1{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function i2(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,T,C,A,S,k,P,H,x;return a=new Xs({}),a.$on("click",i[6]),g=new Js({props:{isRunning:i[2],onTimerEnded:i[5]}}),{c(){e=I("div"),t=G(),n=I("div"),o=I("div"),r=I("div"),r.textContent=`${j("end_screen_next_video")}`,s=G(),R(a.$$.fragment),l=G(),u=I("div"),c=I("div"),m=I("div"),h=I("div"),v=G(),R(g.$$.fragment),C=G(),A=I("div"),S=I("div"),k=Oe(i[0]),f(e,"class","overlay svelte-149n6j1"),f(r,"class","caption svelte-149n6j1"),f(o,"class","top svelte-149n6j1"),f(h,"class","thumb-overlay svelte-149n6j1"),f(m,"class","thumb svelte-149n6j1"),f(m,"style",T=`background-image: url('${i[1]}')`),f(c,"class","column svelte-149n6j1"),f(S,"class","title svelte-149n6j1"),f(A,"class","column svelte-149n6j1"),f(u,"class","row svelte-149n6j1"),f(n,"class","next-video svelte-149n6j1")},m(M,Z){w(M,e,Z),w(M,t,Z),w(M,n,Z),_(n,o),_(o,r),_(o,s),L(a,o,null),_(n,l),_(n,u),_(u,c),_(c,m),_(m,h),_(m,v),L(g,m,null),_(u,C),_(u,A),_(A,S),_(S,k),P=!0,H||(x=Te(u,"click",i[4]),H=!0)},p(M,[Z]){let ae={};Z&4&&(ae.isRunning=M[2]),g.$set(ae),(!P||Z&2&&T!==(T=`background-image: url('${M[1]}')`))&&f(m,"style",T),(!P||Z&1)&&We(k,M[0])},i(M){P||(d(a.$$.fragment,M),d(g.$$.fragment,M),P=!0)},o(M){p(a.$$.fragment,M),p(g.$$.fragment,M),P=!1},d(M){M&&(y(e),y(t),y(n)),V(a),V(g),H=!1,x()}}}function n2(i,e,t){let n,{title:o}=e,{thumb:r}=e,{clickCloseIcon:s}=e,a=it(),l=a.ui.timerNextVideoRunning$;D(i,l,C=>t(2,n=C));let u=a.actions.internal.nextVideoClick,c=a.actions.internal.nextVideoAnnouncementClick,m=a.actions.internal.nextVideoAnnouncementAuto,h=a.actions.internal.nextVideoAnnouncementCancel,v=()=>{u(!1),c()},g=()=>{u(!1),m()},T=()=>{s(),h()};return i.$$set=C=>{"title"in C&&t(0,o=C.title),"thumb"in C&&t(1,r=C.thumb),"clickCloseIcon"in C&&t(7,s=C.clickCloseIcon)},[o,r,n,l,v,g,T,s]}var ja=class extends O{constructor(e){super(),F(this,e,n2,i2,N,{title:0,thumb:1,clickCloseIcon:7},t2)}},N1=ja;import{PlaybackState as ur}from"@vkontakte/videoplayer-core/es2018";import{checkNever as r2}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as kn}from"@vkontakte/videoplayer-statistics/es2018";var Ga=(i,e)=>Math.min(+(i+e).toFixed(2),1),Ya=(i,e)=>Math.max(+(i-e).toFixed(2),0),$s=(i,e,t)=>{let n=Ga(e,t);e<1&&i.actions.internal.setVolume(n)},el=(i,e,t)=>{let n=Ya(e,t);e>0&&i.actions.internal.setVolume(n)};var Wo=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e==null||e(),!1):t?!0:(n==null||n(),!1);function s2(i){ye(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function l2(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=[Te(e,"keyup",i[17]),Te(e,"keydown",i[16])],o=!0)},p(l,u){a&&a.p&&(!n||u[0]&33554432)&&Re(a,s,l,l[25],n?Ve(s,l[25],u,null):Be(l[25]),null)},i(l){n||(d(a,l),n=!0)},o(l){p(a,l),n=!1},d(l){l&&y(e),a&&a.d(l),i[27](null),o=!1,ct(r)}}}function a2(i,e,t){var Ke,ft;let n,o,r,s,a,l,u,c,m,h,v,g,T,C,A,{$$slots:S={},$$scope:k}=e,{isAds:P}=e,{hideContextMenu:H}=e,{toggleFullscreen:x}=e,{showHotKeyHelpers:M}=e,{showKeyMap:Z}=e,{fakePlayButtonHandler:ae}=e,Q=it(),ee=Mt(),W=Q.getLogger().createComponentLog("KeyboardControls component"),q=Q.state.playbackState$;D(i,q,be=>t(31,o=be));let ve=Q.ads.playbackState;D(i,ve,be=>t(30,n=be));let z=Q.state.positionExact$;D(i,z,be=>t(41,g=be));let ie=Q.state.duration$;D(i,ie,be=>t(40,v=be));let U=Q.state.volume$;D(i,U,be=>t(44,A=be));let pe=Q.ui.controls.disabledControls$;D(i,pe,be=>t(39,h=be));let se=Q.state.muted$;D(i,se,be=>t(34,a=be));let X=Q.state.currentSubtitle$;D(i,X,be=>t(33,s=be));let re=Q.state.currentPlaybackRate$;D(i,re,be=>t(42,T=be));let oe=Q.state.availablePlaybackRates$;D(i,oe,be=>t(43,C=be));let Ye=Q.ui.contextMenu.openedByHotKey$,Fe=Q.ui.contextMenu.lastActiveElem$,Pe=Q.ui.contextMenu.visible$,Se=Q.ui.contextMenu.position$,Ae=Q.state.isEnded$;D(i,Ae,be=>t(36,u=be));let He=Q.ui.overlayContainer$;D(i,He,be=>t(32,r=be));let J=(Ke=Q.callbacks)==null?void 0:Ke.onAudioDoesNotExistHint,ge=(ft=Q.callbacks)==null?void 0:ft.onAudioDisabledHint,Ie=Q.state.isAudioAvailable$;D(i,Ie,be=>t(35,l=be));let Ge=Q.state.isAudioDisabled,nt=Q.state.isInteractiveTime$;D(i,nt,be=>t(38,m=be));let{showInteractiveTimeIndicatorTooltip$:lt}=Bn();D(i,lt,be=>t(37,c=be));let ut=0,et=!0,me,tt=()=>me==null?void 0:me.focus(),De=be=>(be!==et&&(et=be,ut=0),ut+=1,(ee.controls.seekStepKeyboard+ee.controls.seekStepKeyboard*ut)/1e3),st=be=>{var Nt;let pt=be.target,yt=(Nt=pt==null?void 0:pt.getAttribute("role"))==null?void 0:Nt.includes("menuitem"),Ze=pt.classList.contains("btn"),It=be.code;if(Ze&&It==="Space")return;let Rt=ld.has(It);if(yt&&Rt)return;let Ft=!sd.has(It);if(be.ctrlKey&&Ft||be.altKey&&Ft||be.metaKey)return;let ti=yt&&It==="Escape";ad.has(It)||ti||H();let Bt=o===ur.PLAYING||o===ur.PAUSED,Kt=P&&(n==="paused"||n==="playing"),Gt=!Kt&&!h.has("TIMELINE");if(Bt||Kt)switch(W({message:`key down, code: ${It}`}),It){case"KeyJ":case"ArrowLeft":{if(!Gt)break;if(be.ctrlKey||be.altKey){let ot=Q.actions.internal.getPrevEpisode();Q.actions.internal.seekToPrevEpisode(ot),ot&&M({type:"EPISODE_PREV",text:ot.text}),be.preventDefault()}else{let ot=be.shiftKey?De(!1):ee.controls.seekStepKeyboard/1e3,St=Math.max(g-ot,0);g>0&&(Q.actions.internal.seekTime(St,kn.DOUBLE_TAP),M({type:"BACKWARD_SEEK",text:ot.toString()}),be.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Gt)break;if(be.ctrlKey||be.altKey){let ot=Q.actions.internal.getNextEpisode();Q.actions.internal.seekToNextEpisode(ot),ot&&M({type:"EPISODE_NEXT",text:ot.text}),be.preventDefault()}else{let ot=be.shiftKey?De(!0):ee.controls.seekStepKeyboard/1e3,St=Math.min(g+ot,v);Math.round(g)<Math.round(v)&&(Q.actions.internal.seekTime(St,kn.DOUBLE_TAP),M({type:"FORWARD_SEEK",text:ot.toString()}),be.preventDefault())}break}case"ArrowUp":{if(Wo({isAudioDisabled:Ge,audioDisabledHintCallback:ge,isAudioAvailable:l,audioIsNotExistHintCallback:J})){let ot=A,St=ee.controls.volumeStepKeyboard,Lt=ot<=1;if($s(Q,ot,St),Lt){let fe=Math.round(Ga(ot,St)*100).toString();M({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:fe}})}}be.preventDefault();break}case"ArrowDown":{if(Wo({isAudioDisabled:Ge,audioDisabledHintCallback:ge,isAudioAvailable:l,audioIsNotExistHintCallback:J})){let ot=A,St=ee.controls.volumeStepKeyboard,Lt=ot>=0;if(el(Q,ot,St),Lt){let fe=Math.round(Ya(ot,St)*100).toString();M({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:fe}})}}be.preventDefault();break}case"Comma":{if(be.shiftKey){Q.actions.internal.decrementPlaybackRate();let ot=C.find(St=>St.value===T);M({type:"RATE_DOWN",text:ot==null?void 0:ot.displayValue}),be.preventDefault()}else{if(Kt||o!==ur.PAUSED)break;let ot=Math.max(g-ee.controls.seekStepFrame/1e3,0);g>0&&(M({type:"BACKWARD_SEEK"}),Q.actions.internal.clearDelayedBufferingCheckTimeout(),Q.actions.internal.seekTime(ot,kn.DOUBLE_TAP),be.preventDefault())}break}case"Period":{if(be.shiftKey){Q.actions.internal.incrementPlaybackRate();let ot=C.find(St=>St.value===T);M({type:"RATE_UP",text:ot==null?void 0:ot.displayValue}),be.preventDefault()}else{if(Kt||o!==ur.PAUSED)break;let ot=Math.min(g+ee.controls.seekStepFrame/1e3,v);g<v&&(M({type:"FORWARD_SEEK"}),Q.actions.internal.clearDelayedBufferingCheckTimeout(),Q.actions.internal.seekTime(ot,kn.DOUBLE_TAP),be.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(m&&c&<.set(!1),ae)ae();else{Q.actions.internal.togglePlay();let ot="PLAY";o===ur.PAUSED?ot="PAUSE":u&&(ot="REPLAY"),M({type:ot})}be.preventDefault();break;case"KeyM":{Wo({isAudioDisabled:Ge,audioDisabledHintCallback:ge,isAudioAvailable:l,audioIsNotExistHintCallback:J})&&(M({type:a?"VOLUME":"MUTE"}),Q.actions.internal.toggleMuted()),be.preventDefault();break}case"KeyF":x(),be.preventDefault();break;case"KeyC":Q.actions.internal.toggleSubtitle(),s.value!=="off"?M({type:"SUBTITLES_ON",text:s==null?void 0:s.displayValue}):M({type:"SUBTITLES_OFF"}),be.preventDefault();break;case"KeyI":Q.actions.internal.togglePictureInPicture(),be.preventDefault();break;case"Digit1":case"Numpad1":if(be.shiftKey){let ot=f1(r);Se.set(ot),Fe.set(pt),Ye.set(!0),Pe.set(!0),be.preventDefault();break}M(),Q.actions.internal.seekToPercent(.1,kn.DOUBLE_TAP),be.preventDefault();break;case"Digit2":case"Numpad2":M(),Q.actions.internal.seekToPercent(.2,kn.DOUBLE_TAP),be.preventDefault();break;case"Digit3":case"Numpad3":M(),Q.actions.internal.seekToPercent(.3,kn.DOUBLE_TAP),be.preventDefault();break;case"Digit4":case"Numpad4":M(),Q.actions.internal.seekToPercent(.4,kn.DOUBLE_TAP),be.preventDefault();break;case"Digit5":case"Numpad5":M(),Q.actions.internal.seekToPercent(.5,kn.DOUBLE_TAP),be.preventDefault();break;case"Digit6":case"Numpad6":M(),Q.actions.internal.seekToPercent(.6,kn.DOUBLE_TAP),be.preventDefault();break;case"Digit7":case"Numpad7":M(),Q.actions.internal.seekToPercent(.7,kn.DOUBLE_TAP),be.preventDefault();break;case"Digit8":case"Numpad8":M(),Q.actions.internal.seekToPercent(.8,kn.DOUBLE_TAP),be.preventDefault();break;case"Digit9":case"Numpad9":M(),Q.actions.internal.seekToPercent(.9,kn.DOUBLE_TAP),be.preventDefault();break;case"Digit0":case"Numpad0":M(),Q.actions.internal.seekToPercent(0,kn.DOUBLE_TAP),be.preventDefault();break;case"Slash":{be.shiftKey&&ee.features.hotKeyMapModal&&(Z(),be.preventDefault());break}case"ShiftLeft":case"ShiftRight":be.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:r2(It);break}},Qe=be=>{let pt=be.code;if(be.ctrlKey||be.altKey||be.metaKey)return;let yt=o===ur.PLAYING||o===ur.PAUSED,Ze=P&&(n==="paused"||n==="playing");if(yt||Ze)switch(pt){case"ShiftLeft":case"ShiftRight":ut=0;break}};function he(be){we[be?"unshift":"push"](()=>{me=be,t(0,me)})}return i.$$set=be=>{"isAds"in be&&t(18,P=be.isAds),"hideContextMenu"in be&&t(19,H=be.hideContextMenu),"toggleFullscreen"in be&&t(20,x=be.toggleFullscreen),"showHotKeyHelpers"in be&&t(21,M=be.showHotKeyHelpers),"showKeyMap"in be&&t(22,Z=be.showKeyMap),"fakePlayButtonHandler"in be&&t(23,ae=be.fakePlayButtonHandler),"$$scope"in be&&t(25,k=be.$$scope)},[me,q,ve,z,ie,U,pe,se,X,re,oe,Ae,He,Ie,nt,lt,st,Qe,P,H,x,M,Z,ae,tt,k,S,he]}var Qa=class extends O{constructor(e){super(),F(this,e,a2,l2,N,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},s2,[-1,-1])}get focus(){return this.$$.ctx[24]}},D1=Qa;function u2(i){ye(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 c2(i){let e,t,n,o,r,s;return{c(){e=I("div"),t=I("div"),n=G(),o=I("div"),r=G(),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:_e,o:_e,d(a){a&&y(e)}}}function f2(i,e,t){let{style:n=""}=e;return i.$$set=o=>{"style"in o&&t(0,n=o.style)},[n]}var Za=class extends O{constructor(e){super(),F(this,e,f2,c2,N,{style:0},u2)}},Mr=Za;function d2(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,T=i[2].default,C=Le(T,i,i[1],null),A=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],S={};for(let k=0;k<A.length;k+=1)S=le(S,A[k]);return{c(){e=B("svg"),C&&C.c(),t=B("g"),n=B("path"),o=B("path"),r=B("defs"),s=B("filter"),a=B("feFlood"),l=B("feColorMatrix"),u=B("feOffset"),c=B("feGaussianBlur"),m=B("feColorMatrix"),h=B("feBlend"),v=B("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(v,"in","SourceGraphic"),f(v,"in2","effect1_dropShadow_2422_111980"),f(v,"result","shape"),f(s,"id","a"),f(s,"width","23"),f(s,"height","23"),f(s,"x",".5"),f(s,"y",".5"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),Ce(e,S)},m(k,P){w(k,e,P),C&&C.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,v),g=!0},p(k,[P]){C&&C.p&&(!g||P&2)&&Re(C,T,k,k[1],g?Ve(T,k[1],P,null):Be(k[1]),null),Ce(e,S=xe(A,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},P&1&&k[0]]))},i(k){g||(d(C,k),g=!0)},o(k){p(C,k),g=!1},d(k){k&&y(e),C&&C.d(k)}}}function m2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var Xa=class extends O{constructor(e){super(),F(this,e,m2,d2,N,{})}},O1=Xa;import{noop as Eo}from"@vkontakte/videoplayer-shared/es2018";function p2(i){ye(i,"svelte-wr0kwr",".btn.svelte-wr0kwr{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center}.w-max.svelte-wr0kwr{width:100%}.btn--live.svelte-wr0kwr{padding:10px 4px}.btn-jc-l.svelte-wr0kwr{justify-content:left}.btn-m.svelte-wr0kwr{position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.btn-m--play.svelte-wr0kwr{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn-m--play.svelte-wr0kwr svg{transform:scale(2)}.btn-m--prev.svelte-wr0kwr,.btn-m--next.svelte-wr0kwr{position:absolute;width:50px;height:50px}.btn-m--prev.svelte-wr0kwr{right:calc(100% + 35px)}.btn-m--next.svelte-wr0kwr{left:calc(100% + 35px)}.btn.svelte-wr0kwr:disabled{cursor:default;pointer-events:none}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-wr0kwr:not(:disabled):hover{opacity:0.8}.pr-0.svelte-wr0kwr{padding-right:0}.pl-0.svelte-wr0kwr{padding-left:0}")}function _2(i){let e,t,n,o,r,s,a,l,u,c,m,h,v=i[14].default,g=Le(v,i,i[13],null);return{c(){var T,C,A,S,k,P;e=I("button"),g&&g.c(),f(e,"class",t="btn "+i[1]+" svelte-wr0kwr"),f(e,"style",n=i[2]||null),e.disabled=o=(T=i[3])!=null?T:null,f(e,"aria-hidden",r=(C=i[5])!=null?C:null),f(e,"aria-label",s=(A=i[6])!=null?A:null),f(e,"aria-keyshortcuts",a=(S=i[7])!=null?S:null),f(e,"aria-expanded",l=(k=i[8])!=null?k:null),f(e,"data-testid",u=(P=i[4])!=null?P:null),f(e,"tabindex",i[9])},m(T,C){w(T,e,C),g&&g.m(e,null),i[16](e),c=!0,m||(h=[Te(e,"pointerdown",vt(i[15])),Te(e,"click",vt(function(){Qt(i[10]===Eo?null:i[10])&&(i[10]===Eo?null:i[10]).apply(this,arguments)})),Te(e,"focus",ci(function(){Qt(i[11]===Eo?null:i[11])&&(i[11]===Eo?null:i[11]).apply(this,arguments)})),Te(e,"blur",ci(function(){Qt(i[12]===Eo?null:i[12])&&(i[12]===Eo?null:i[12]).apply(this,arguments)}))],m=!0)},p(T,[C]){var A,S,k,P,H,x;i=T,g&&g.p&&(!c||C&8192)&&Re(g,v,i,i[13],c?Ve(v,i[13],C,null):Be(i[13]),null),(!c||C&2&&t!==(t="btn "+i[1]+" svelte-wr0kwr"))&&f(e,"class",t),(!c||C&4&&n!==(n=i[2]||null))&&f(e,"style",n),(!c||C&8&&o!==(o=(A=i[3])!=null?A:null))&&(e.disabled=o),(!c||C&32&&r!==(r=(S=i[5])!=null?S:null))&&f(e,"aria-hidden",r),(!c||C&64&&s!==(s=(k=i[6])!=null?k:null))&&f(e,"aria-label",s),(!c||C&128&&a!==(a=(P=i[7])!=null?P:null))&&f(e,"aria-keyshortcuts",a),(!c||C&256&&l!==(l=(H=i[8])!=null?H:null))&&f(e,"aria-expanded",l),(!c||C&16&&u!==(u=(x=i[4])!=null?x:null))&&f(e,"data-testid",u),(!c||C&512)&&f(e,"tabindex",i[9])},i(T){c||(d(g,T),c=!0)},o(T){p(g,T),c=!1},d(T){T&&y(e),g&&g.d(T),i[16](null),m=!1,ct(h)}}}function h2(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:v=void 0}=e,{tabIndex:g=0}=e,{click:T=Eo}=e,{focus:C=Eo}=e,{blur:A=Eo}=e;function S(P){Rn.call(this,i,P)}function k(P){we[P?"unshift":"push"](()=>{m=P,t(0,m)})}return i.$$set=P=>{"className"in P&&t(1,r=P.className),"style"in P&&t(2,s=P.style),"disabled"in P&&t(3,a=P.disabled),"testId"in P&&t(4,l=P.testId),"ariaHidden"in P&&t(5,u=P.ariaHidden),"ariaLabel"in P&&t(6,c=P.ariaLabel),"ref"in P&&t(0,m=P.ref),"ariaKeyShortCut"in P&&t(7,h=P.ariaKeyShortCut),"ariaExpanded"in P&&t(8,v=P.ariaExpanded),"tabIndex"in P&&t(9,g=P.tabIndex),"click"in P&&t(10,T=P.click),"focus"in P&&t(11,C=P.focus),"blur"in P&&t(12,A=P.blur),"$$scope"in P&&t(13,o=P.$$scope)},[m,r,s,a,l,u,c,h,v,g,T,C,A,o,n,S,k]}var Ja=class extends O{constructor(e){super(),F(this,e,h2,_2,N,{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},p2)}},bt=Ja;function g2(i){ye(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 F1(i){let e,t,n,o,r,s=i[2]&&x1(i);return{c(){e=I("div"),t=I("h3"),n=Oe(i[3]),o=G(),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)&&We(n,a[3]),a[2]?s?(s.p(a,l),l&4&&d(s,1)):(s=x1(a),s.c(),d(s,1),s.m(e,null)):s&&(ue(),p(s,1,1,()=>{s=null}),ce())},i(a){r||(d(s),r=!0)},o(a){p(s),r=!1},d(a){a&&y(e),s&&s.d()}}}function x1(i){let e,t;return e=new bt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:j("hotkey_map_modal_close_btn_text"),$$slots:{default:[b2]},$$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 b2(i){let e,t;return e=new O1({}),{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 v2(i){let e,t,n,o,r,s,a=i[1]&&F1(i),l=i[4].default,u=Le(l,i,i[5],null);return{c(){e=I("div"),t=I("div"),a&&a.c(),n=G(),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=F1(c),a.c(),d(a,1),a.m(t,n)):a&&(ue(),p(a,1,1,()=>{a=null}),ce()),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 y2(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 $a=class extends O{constructor(e){super(),F(this,e,y2,v2,N,{onClose:0,showHeader:1,showCloseCross:2,title:3},g2)}},H1=$a;var w2=new Set(["BR"]),eu=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;w2.has(s)||(o=r.parentElement)==null||o.removeChild(r)}return e.innerHTML};function k2(i){ye(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 q1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function U1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function z1(i){let e,t,n=eu(i[9])+"",o,r,s=i[10]+"",a,l;return{c(){e=I("li"),t=I("span"),o=G(),r=I("span"),a=Oe(s),l=G(),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=eu(u[9])+"")&&(t.innerHTML=n),c&1&&s!==(s=u[10]+"")&&We(a,s)},d(u){u&&y(e)}}}function W1(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]=z1(U1(i,l,c));return{c(){e=I("div"),t=I("h5"),o=Oe(n),r=G(),s=I("ul");for(let c=0;c<u.length;c+=1)u[c].c();a=G(),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]+"")&&We(o,n),m&1){l=wt(c[6]);let h;for(h=0;h<l.length;h+=1){let v=U1(c,l,h);u[h]?u[h].p(v,m):(u[h]=z1(v),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),ui(u,c)}}}function C2(i){let e,t=wt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=W1(q1(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=q1(o,t,s);n[s]?n[s].p(a,r):(n[s]=W1(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),ui(n,o)}}}function S2(i){let e,t;return e=new H1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[C2]},$$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 T2(i,e,t){let n,o=it(),{data:r,show:s}=o.ui.modals.hotKeyMap;return D(i,r,l=>t(0,n=l)),[n,r,()=>{s.set(!1)}]}var tu=class extends O{constructor(e){super(),F(this,e,T2,S2,N,{},k2)}},K1=tu;import{noop as zp}from"@vkontakte/videoplayer-shared/es2018";var tl;function Lr(i){return tl||(tl=new ResizeObserver(e=>{for(let t of e)t.target.dispatchEvent(new CustomEvent("fd:resize"))})),tl.observe(i),{destroy(){tl.unobserve(i)}}}import{ChromecastState as tp,PlaybackState as bc}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";function I2(i){ye(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 P2(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 E2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var iu=class extends O{constructor(e){super(),F(this,e,E2,P2,N,{},I2)}},j1=iu;import{VideoQuality as os}from"@vkontakte/videoplayer-shared/es2018";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=le(l,a[u]);return{c(){e=B("svg"),s&&s.c(),t=B("path"),n=B("path"),f(t,"fill","currentColor"),f(t,"d","M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z"),f(n,"clip-rule","evenodd"),Ce(e,l)},m(u,c){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),Ce(e,l=xe(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 M2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var nu=class extends O{constructor(e){super(),F(this,e,M2,A2,N,{})}},G1=nu;function L2(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=le(l,a[u]);return{c(){e=B("svg"),s&&s.c(),t=B("path"),n=B("path"),f(t,"fill","currentColor"),f(t,"d","M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524"),f(n,"clip-rule","evenodd"),Ce(e,l)},m(u,c){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),Ce(e,l=xe(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 V2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var ou=class extends O{constructor(e){super(),F(this,e,V2,L2,N,{})}},Y1=ou;function R2(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=le(a,s[l]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),f(t,"fill","currentColor"),f(t,"d","M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"),Ce(e,a)},m(l,u){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),Ce(e,a=xe(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 B2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var ru=class extends O{constructor(e){super(),F(this,e,B2,R2,N,{})}},Q1=ru;function N2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=le(a,s[l]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),f(t,"fill","currentColor"),f(t,"d","M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"),Ce(e,a)},m(l,u){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),Ce(e,a=xe(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 D2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var su=class extends O{constructor(e){super(),F(this,e,D2,N2,N,{})}},il=su;function O2(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=le(l,a[u]);return{c(){e=B("svg"),s&&s.c(),t=B("path"),n=B("path"),f(t,"fill","currentColor"),f(t,"d","M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02"),f(n,"clip-rule","evenodd"),Ce(e,l)},m(u,c){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),Ce(e,l=xe(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 F2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var lu=class extends O{constructor(e){super(),F(this,e,F2,O2,N,{})}},nl=lu;var ol=i=>{switch(i){case os.Q_720P:return Q1;case os.Q_1080P:return il;case os.Q_1440P:return nl;case os.Q_2160P:return G1;case os.Q_4320P:return Y1}};function x2(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=le(a,s[l]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),f(t,"fill","#fff"),f(t,"d","M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"),Ce(e,a)},m(l,u){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),Ce(e,a=xe(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 H2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var au=class extends O{constructor(e){super(),F(this,e,H2,x2,N,{})}},Z1=au;function q2(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=le(l,a[u]);return{c(){e=B("svg"),s&&s.c(),t=B("path"),n=B("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"),f(n,"class","_full"),Ce(e,l)},m(u,c){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),Ce(e,l=xe(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 U2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var uu=class extends O{constructor(e){super(),F(this,e,U2,q2,N,{})}},X1=uu;function z2(i){ye(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 W2(i){let e,t,n,o,r=i[1]&&J1(i);return n=new X1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=I("div"),r&&r.c(),t=G(),R(n.$$.fragment),f(e,"class","icon svelte-8t5w85"),f(e,"aria-hidden","true"),K(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=J1(s),r.c(),d(r,1),r.m(e,t)):r&&(ue(),p(r,1,1,()=>{r=null}),ce());let l={};a&2&&(l["data-testid"]=s[1]?"settings-icon--labeled":"settings-icon"),n.$set(l),(!o||a&4)&&K(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 K2(i){let e,t;return e=new Z1({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:_e,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function J1(i){let e,t;return e=new j1({props:{$$slots:{default:[j2]},$$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 j2(i){let e,t,n;var o=i[1];function r(s,a){return{}}return o&&(e=xt(o,r(i))),{c(){e&&R(e.$$.fragment),t=Xe()},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){ue();let l=e;p(l.$$.fragment,1,0,()=>{V(l,1)}),ce()}o?(e=xt(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 G2(i){let e,t,n,o,r=[K2,W2],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=Xe()},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):(ue(),p(s[c],1,1,()=>{s[c]=null}),ce(),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 Y2(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=ol(r)),i.$$.dirty&2&&t(2,s=!!n&&[il,nl].includes(n))},[o,n,s,r]}var cu=class extends O{constructor(e){super(),F(this,e,Y2,G2,N,{isMobile:0,currentQuality:3},z2)}},rl=cu;function Q2(i){ye(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function Z2(i){let e,t,n;return t=new rl({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 X2(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:[Z2]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),we.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&16408&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function J2(i,e,t){let n,o,r,{ref$:s}=e,a=it(),l=a.state.currentQuality$;D(i,l,A=>t(4,r=A));let u=a.ui.settingsMenu.visible$;D(i,u,A=>t(1,n=A));let c=a.actions.internal.openSettingsMenu,m=a.actions.internal.closeSettingsMenu,h=a.ui.isMobile;D(i,h,A=>t(3,o=A));let v,g;async function T(A){let S=Ir(A);n?m():c(S,mn)}function C(A){v=A,t(0,v)}return i.$$set=A=>{"ref$"in A&&t(9,s=A.ref$)},i.$$.update=()=>{i.$$.dirty&513&&s&&s.set(v),i.$$.dirty&2&&t(2,g=n?j("tooltip_settings_on"):j("tooltip_settings_off"))},[v,n,g,o,r,l,u,h,T,s,C]}var fu=class extends O{constructor(e){super(),F(this,e,J2,X2,N,{ref$:9},Q2)}},rs=fu;function $2(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=le(a,s[l]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),f(t,"fill","#fff"),f(t,"d","M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"),Ce(e,a)},m(l,u){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),Ce(e,a=xe(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 eb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var du=class extends O{constructor(e){super(),F(this,e,eb,$2,N,{})}},$1=du;function tb(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=le(a,s[l]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),f(t,"fill","#fff"),f(t,"d","M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"),Ce(e,a)},m(l,u){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),Ce(e,a=xe(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 ib(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var mu=class extends O{constructor(e){super(),F(this,e,ib,tb,N,{})}},sl=mu;function nb(i){let e,t;return e=new sl({}),{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 ob(i){let e,t;return e=new $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 rb(i){let e,t,n,o,r=[ob,nb],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=Xe()},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&&(ue(),p(s[c],1,1,()=>{s[c]=null}),ce(),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 sb(i){let e,t;return e=new bt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:ho.KeyC,$$slots:{default:[rb]},$$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 lb(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 pu=class extends O{constructor(e){super(),F(this,e,lb,sb,N,{isSubtitlesEnabled:0,click:1})}},em=pu;function ab(i){ye(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 tm(i){let e,t;return{c(){e=I("span"),t=Oe(i[3]),f(e,"class","duration svelte-19o2urr")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&8&&We(t,n[3])},d(n){n&&y(e)}}}function ub(i){let e,t,n,o,r=i[2]&&tm(i);return{c(){e=I("div"),t=I("span"),n=Oe(i[4]),o=G(),r&&r.c(),f(t,"class","current svelte-19o2urr"),f(e,"class","time svelte-19o2urr"),K(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&&We(n,s[4]),s[2]?r?r.p(s,a):(r=tm(s),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&K(e,"mobile",s[1])},i:_e,o:_e,d(s){s&&y(e),r&&r.d(),i[7](null)}}}function cb(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){we[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=Nn(o)),i.$$.dirty&64&&t(4,u=Nn(r))},[a,n,s,l,u,o,r,c]}var _u=class extends O{constructor(e){super(),F(this,e,cb,ub,N,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},ab)}},ll=_u;import{noop as jo}from"@vkontakte/videoplayer-shared/es2018";function fb(i){ye(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 db(i){let e,t,n,o,r,s;return{c(){e=B("svg"),t=B("g"),n=B("path"),o=B("path"),r=B("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:_e,o:_e,d(a){a&&y(e)}}}function mb(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 hu=class extends O{constructor(e){super(),F(this,e,mb,db,N,{volume:1,muted:2},fb)}},cr=hu;import{isNonNullable as am,noop as no}from"@vkontakte/videoplayer-shared/es2018";import{noop as wb}from"@vkontakte/videoplayer-shared/es2018";import{noop as hb}from"@vkontakte/videoplayer-shared/es2018";function pb(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 _b(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=it().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)};Ct(()=>(c(n),()=>u(n)));function m(h){we[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 gu=class extends O{constructor(e){super(),F(this,e,_b,pb,N,{})}},im=gu;function gb(i){ye(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 nm(i){let e,t;return e=new im({props:{$$slots:{default:[bb]},$$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 bb(i){let e,t,n,o,r;return{c(){e=I("div"),t=I("div"),n=Oe(i[2]),o=G(),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]),K(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&&We(n,s[2]),a[0]&128&&f(r,"style",s[7]),a[0]&64&&f(e,"style",s[6]),a[0]&1&&K(e,"active",s[0])},d(s){s&&y(e),i[23](null)}}}function vb(i){let e,t,n,o,r,s,a=i[21].default,l=Le(a,i,i[24],null),u=i[2]&&!i[1]&&nm(i);return{c(){e=I("div"),l&&l.c(),t=G(),u&&u.c(),n=Xe(),f(e,"class","tooltip-wrapper svelte-1jbbzcj"),K(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=[Te(e,"mouseenter",i[10]),Te(e,"mousemove",i[10]),Te(e,"mouseleave",i[11]),Te(e,"mousedown",i[11]),Te(e,"mouseup",i[10])],r=!0)},p(c,m){l&&l.p&&(!o||m[0]&16777216)&&Re(l,a,c,c[24],o?Ve(a,c[24],m,null):Be(c[24]),null),(!o||m[0]&8)&&K(e,"full-width",c[3]),c[2]&&!c[1]?u?(u.p(c,m),m[0]&6&&d(u,1)):(u=nm(c),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(ue(),p(u,1,1,()=>{u=null}),ce())},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,ct(s)}}}var Ao=5;function yb(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:v=void 0}=e,{placement:g="top"}=e,{onVisibilityChange:T=hb}=e,C,A,S,k=0,P=0,H=0,x=0,M=Mt(),Z=it(),ae=Z.ui.playerSize;D(i,ae,Ae=>t(27,o=Ae));let Q=Z.ui.overlayContainer$;D(i,Q,Ae=>t(26,n=Ae));let ee=Z.getLogger().createComponentLog("Tooltip component"),W=()=>{if(!n||!A||!C)return;t(18,P=Ao);let Ae=n.getBoundingClientRect(),He=C.getBoundingClientRect(),J=He.width,ge=A.clientWidth,Ie=o.width,Ge=(J-ge)/2,nt=He.left+c-Ae.left,lt=nt+Ge,ut=He.top+m-Ae.top,et=ge/2-Ao,me=lt<8,tt=lt+ge>Ie-8;me&&(lt=8,et=nt+He.width/2-2.5*Ao),tt&&(lt=Ie-8-ge,et=He.left-Ae.left+He.width/2-lt-Ao),t(19,H=lt),t(20,x=ut),t(17,k=et)},q=()=>{!n||!A||!C||t(18,P=-Ao)},ve=()=>{if(!n||!A||!C)return;t(17,k=Ao);let Ae=n.getBoundingClientRect(),He=C.getBoundingClientRect(),J=He.height,ge=A.clientHeight,Ie=(J-ge)/2+ge,Ge=He.left+c-Ae.left-A.clientWidth,nt=2,lt=Ge-Ao;lt<8&&(lt=8);let et=He.top+m-Ae.top+Ie,me=nt-Ie/2,tt=nt-Ao;t(19,H=lt),t(20,x=et),t(18,P=me),t(17,k=tt)},z=()=>{!n||!A||!C||t(17,k=-Ao)},ie=()=>{switch(g){case"top":W();break;case"bottom":q();break;case"left":ve();break;default:z()}},U=()=>{try{if(!n||!C)return;ie(),t(0,u=!0)}catch(Ae){ee({message:String(Ae)})}},pe=()=>{t(0,u=!1)},se=()=>{A&&(S||(S=window.setTimeout(U,M.controls.hideTimeoutTooltips)),u&&U())},X=()=>{pe(),window.clearTimeout(S),S=void 0},re=(Ae,He)=>{let J="";switch(g){case"top":J=`transform: translate(${Ae}px, ${He}px);`;break;case"bottom":J=`transform: translate(${Ae}px, ${He}px); top: auto; bottom: 100%;`;break;case"left":J=`transform: translate(${Ae}px, ${He}px); left: 0; right: auto;`;break;default:J=`transform: translate(${Ae}px, ${He}px);`}return J+=` max-width: ${v===void 0?"auto":`${v}px`};`,J},oe=(Ae,He)=>{let J="";switch(g){case"top":J=`transform: translate(${Ae}px, ${He}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":J=`transform: translate(${Ae}px, ${He}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":J=`transform: translate(${Ae}px, ${He}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:J=`transform: translate(${Ae}px, ${He}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return J},Ye,Fe;Ct(ie),Vn(()=>window.clearTimeout(S));function Pe(Ae){we[Ae?"unshift":"push"](()=>{C=Ae,t(4,C)})}function Se(Ae){we[Ae?"unshift":"push"](()=>{A=Ae,t(5,A)})}return i.$$set=Ae=>{"isMobile"in Ae&&t(1,a=Ae.isMobile),"content"in Ae&&t(2,l=Ae.content),"active"in Ae&&t(0,u=Ae.active),"translateX"in Ae&&t(12,c=Ae.translateX),"translateY"in Ae&&t(13,m=Ae.translateY),"isFullWidthWrapper"in Ae&&t(3,h=Ae.isFullWidthWrapper),"maxTooltipWidth"in Ae&&t(14,v=Ae.maxTooltipWidth),"placement"in Ae&&t(15,g=Ae.placement),"onVisibilityChange"in Ae&&t(16,T=Ae.onVisibilityChange),"$$scope"in Ae&&t(24,s=Ae.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&65537&&T(u),i.$$.dirty[0]&1966080&&(t(6,Ye=re(H,x)),t(7,Fe=oe(k,P)))},[u,a,l,h,C,A,Ye,Fe,ae,Q,se,X,c,m,v,g,T,k,P,H,x,r,Pe,Se,s]}var bu=class extends O{constructor(e){super(),F(this,e,yb,vb,N,{isMobile:1,content:2,active:0,translateX:12,translateY:13,isFullWidthWrapper:3,maxTooltipWidth:14,placement:15,onVisibilityChange:16},gb,[-1,-1])}},Vr=bu;function kb(i){ye(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 Cb(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 Sb(i){let e,t;return e=new Vr({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[Tb]},$$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 Tb(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 Ib(i){let e,t,n,o,r,s,a,l,u,c=[Sb,Cb],m=[];function h(v,g){return v[3]&&v[11]&&!v[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(v,g){w(v,e,g),m[t].m(e,null),i[23](e),a=!0,l||(u=[hr(s=Lr.call(null,e)),Te(e,"fd:resize",i[22]),Te(e,"pointerdown",vt(i[20])),Te(e,"click",vt(i[21]))],l=!0)},p(v,[g]){let T=t;t=h(v,g),t===T?m[t].p(v,g):(ue(),p(m[T],1,1,()=>{m[T]=null}),ce(),n=m[t],n?n.p(v,g):(n=m[t]=c[t](v),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+v[2]+" svelte-p9r045"))&&f(e,"class",o),(!a||g&128&&r!==(r=v[7]||null))&&f(e,"aria-hidden",r)},i(v){a||(d(n),a=!0)},o(v){p(n),a=!1},d(v){v&&y(e),m[t].d(),i[23](null),l=!1,ct(u)}}}function Pb(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:v=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:T="top"}=e,{disabledTooltipContent:C=j("tooltip_button_disabled")}=e,{isAriaHidden:A=!1}=e,{onTooltipVisibilityChange:S=wb}=e,{initialTranslateXPx:k=0}=e,{initialTranslateYPx:P=-18}=e,H=it(),x=H.ui.isMobile;D(i,x,q=>t(12,o=q));let M=H.state.graphIsOpened$;D(i,M,q=>t(18,n=q));let Z;function ae(q){Rn.call(this,i,q)}function Q(q){Rn.call(this,i,q)}let ee=q=>{t(1,m=q.target.clientWidth)};function W(q){we[q?"unshift":"push"](()=>{c=q,t(0,c)})}return i.$$set=q=>{"className"in q&&t(2,a=q.className),"disabled"in q&&t(15,l=q.disabled),"hasTooltip"in q&&t(3,u=q.hasTooltip),"ref"in q&&t(0,c=q.ref),"width"in q&&t(1,m=q.width),"isFullWidthTooltip"in q&&t(4,h=q.isFullWidthTooltip),"tooltipContent"in q&&t(16,v=q.tooltipContent),"tooltipActive"in q&&t(5,g=q.tooltipActive),"tooltipPlacement"in q&&t(6,T=q.tooltipPlacement),"disabledTooltipContent"in q&&t(17,C=q.disabledTooltipContent),"isAriaHidden"in q&&t(7,A=q.isAriaHidden),"onTooltipVisibilityChange"in q&&t(8,S=q.onTooltipVisibilityChange),"initialTranslateXPx"in q&&t(9,k=q.initialTranslateXPx),"initialTranslateYPx"in q&&t(10,P=q.initialTranslateYPx),"$$scope"in q&&t(24,s=q.$$scope)},i.$$.update=()=>{i.$$.dirty&491520&&(l?t(11,Z=n?j("tooltip_disabled_when_graph_on"):C):t(11,Z=v))},[c,m,a,u,h,g,T,A,S,k,P,Z,o,x,M,l,v,C,n,r,ae,Q,ee,W,s]}var vu=class extends O{constructor(e){super(),F(this,e,Pb,Ib,N,{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},kb)}},$i=vu;function Eb(i){let e,t,n,o,r,s;return{c(){e=B("svg"),t=B("rect"),o=B("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:_e,o:_e,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 yu=class extends O{constructor(e){super(),F(this,e,Ab,Eb,N,{completed:0})}},al=yu;function Mb(i){ye(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 Lb(i){let e,t,n,o,r,s,a;return t=new al({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}%`),K(e,"disabled",i[1])},m(l,u){w(l,e,u),L(t,e,null),r=!0,s||(a=[hr(o=Lr.call(null,e)),Te(e,"fd:resize",i[3])],s=!0)},p(l,u){let c={};u&1&&(c.completed=!!l[0].completed),t.$set(c),(!r||u&1&&n!==(n=`left: ${l[0].from+l[0].width/2}%`))&&f(e,"style",n),(!r||u&2)&&K(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,ct(a)}}}function Vb(i){let e,t;return e=new $i({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:[Lb]},$$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 Rb(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 wu=class extends O{constructor(e){super(),F(this,e,Rb,Vb,N,{videoEpisode:0,disabled:1},Mb)}},om=wu;function Bb(i){ye(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 rm(i,e,t){let n=i.slice();return n[3]=e[t],n}function sm(i){let e,t,n,o,r,s,a,l,u;return{c(){e=I("div"),t=I("div"),n=I("div"),r=G(),s=I("div"),l=G(),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}%)`),K(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}%`),K(e,"disabled",i[2]),K(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&&K(s,"mobile",c[1]),m&1&&u!==(u=`left: ${c[3].from}%; width: ${c[3].width}%`)&&f(e,"style",u),m&4&&K(e,"disabled",c[2]),m&2&&K(e,"mobile",c[1])},d(c){c&&y(e)}}}function Nb(i){let e,t=wt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=sm(rm(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=rm(o,t,s);n[s]?n[s].p(a,r):(n[s]=sm(a),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},i:_e,o:_e,d(o){o&&y(e),ui(n,o)}}}function Db(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 ku=class extends O{constructor(e){super(),F(this,e,Db,Nb,N,{videoEpisodes:0,isMobile:1,disabled:2},Bb)}},lm=ku;function Ob(i){ye(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 um(i,e,t){let n=i.slice();return n[50]=e[t],n}function cm(i){let e,t,n=wt(i[21]),o=[];for(let s=0;s<n.length;s+=1)o[s]=dm(um(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"),K(e,"mobile",i[6]),K(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=um(s,n,l);o[l]?(o[l].p(u,a),d(o[l],1)):(o[l]=dm(u),o[l].c(),d(o[l],1),o[l].m(e,null))}for(ue(),l=n.length;l<o.length;l+=1)r(l);ce()}(!t||a[0]&64)&&K(e,"mobile",s[6]),(!t||a[0]&1048640)&&K(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),ui(o,s)}}}function fm(i){let e,t;return e=new om({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 dm(i){let e,t,n=i[50].interactive&&fm(i);return{c(){n&&n.c(),e=Xe()},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=fm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ue(),p(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function Fb(i){let e,t,n,o,r,s;return{c(){e=I("div"),t=I("div"),o=G(),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}%);`),K(r,"active-live",i[5]),K(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&&K(r,"active-live",a[5]),l[0]&128&&K(r,"ads",a[7])},i:_e,o:_e,d(a){a&&y(e)}}}function xb(i){let e,t;return e=new lm({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 Hb(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g=i[9]&&cm(i),T=[xb,Fb],C=[];function A(S,k){return S[21].length?0:1}return n=A(i,[-1,-1]),o=C[n]=T[n](i),{c(){var S;g&&g.c(),e=G(),t=I("div"),o.c(),r=G(),s=I("div"),a=I("div"),f(a,"class","handle svelte-v8ydei"),K(a,"active-live",i[5]),f(s,"class","handleWrap svelte-v8ydei"),f(s,"style",l=`transform: translateX(${i[14]*100}%);`),K(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=(S=i[2])!=null?S:null),K(t,"disabled",i[10]),K(t,"slider-dragging",i[20]),K(t,"hidden",i[3]),K(t,"slider-vertical",i[4]),K(t,"no-handle",i[11]),K(t,"square",i[8])},m(S,k){g&&g.m(S,k),w(S,e,k),w(S,t,k),C[n].m(t,null),_(t,r),_(t,s),_(s,a),i[44](t),m=!0,h||(v=[Te(t,"pointerdown",ci(i[22])),Te(t,"pointermove",ci(i[23])),Te(t,"pointerup",ci(i[24])),Te(t,"pointerenter",ci(i[25])),Te(t,"pointerleave",ci(i[26])),Te(t,"click",vt(i[28])),Te(t,"wheel",i[27])],h=!0)},p(S,k){var H;S[9]?g?(g.p(S,k),k[0]&512&&d(g,1)):(g=cm(S),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(ue(),p(g,1,1,()=>{g=null}),ce());let P=n;n=A(S,k),n===P?C[n].p(S,k):(ue(),p(C[P],1,1,()=>{C[P]=null}),ce(),o=C[n],o?o.p(S,k):(o=C[n]=T[n](S),o.c()),d(o,1),o.m(t,r)),(!m||k[0]&32)&&K(a,"active-live",S[5]),(!m||k[0]&16384&&l!==(l=`transform: translateX(${S[14]*100}%);`))&&f(s,"style",l),(!m||k[0]&2048)&&K(s,"hidden",S[11]),(!m||k[0]&2&&u!==(u="slider "+S[1]+" svelte-v8ydei"))&&f(t,"class",u),(!m||k[0]&32768)&&f(t,"aria-label",S[15]),(!m||k[0]&65536)&&f(t,"aria-valuemin",S[16]),(!m||k[0]&131072)&&f(t,"aria-valuemax",S[17]),(!m||k[0]&262144)&&f(t,"aria-valuenow",S[18]),(!m||k[0]&524288)&&f(t,"aria-valuetext",S[19]),(!m||k[0]&4&&c!==(c=(H=S[2])!=null?H:null))&&f(t,"data-testid",c),(!m||k[0]&1026)&&K(t,"disabled",S[10]),(!m||k[0]&1048578)&&K(t,"slider-dragging",S[20]),(!m||k[0]&10)&&K(t,"hidden",S[3]),(!m||k[0]&18)&&K(t,"slider-vertical",S[4]),(!m||k[0]&2050)&&K(t,"no-handle",S[11]),(!m||k[0]&258)&&K(t,"square",S[8])},i(S){m||(d(g),d(o),m=!0)},o(S){p(g),p(o),m=!1},d(S){S&&(y(e),y(t)),g&&g.d(S),C[n].d(),i[44](null),h=!1,ct(v)}}}function qb(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:v=!1}=e,{videoEpisodes:g=[]}=e,{withWheelHandler:T=!1}=e,{isInteractive:C=!1}=e,{disabled:A=!1}=e,{hideHandel:S=!1}=e,k,{onPointerDown:P=no}=e,{onHandleMove:H=no}=e,{onPointerUp:x=no}=e,{onPointerEnter:M=no}=e,{onPointerMove:Z=no}=e,{onPointerLeave:ae=no}=e,{onWheelUp:Q=no}=e,{onWheelDown:ee=no}=e,{onWheelLeft:W=no}=e,{onWheelRight:q=no}=e,{onDisabledClick:ve=no}=e,{loadedProgress:z=0}=e,{filledProgress:ie=0}=e,{handleProgress:U=0}=e,{ariaLabel:pe=""}=e,{ariaValueMin:se=void 0}=e,{ariaValueMax:X=void 0}=e,{ariaValueNow:re=void 0}=e,{ariaValueText:oe=""}=e,Ye=Mt(),Fe=!1,Pe;function Se(me){if(r&&(k=r.getBoundingClientRect()),A||Fe||!r)return;t(20,Fe=!0);let tt=nt(me.clientX,me.clientY);P(tt),r.setPointerCapture(me.pointerId)}function Ae(me){if(A)return;let tt=nt(me.clientX,me.clientY),De=lt(me.clientX);Z(tt,De,k.width),Fe&&H(tt)}function He(me){if(A||!Fe)return;t(20,Fe=!1);let tt=nt(me.clientX,me.clientY);x(tt)}function J(me){if(r&&(k=r.getBoundingClientRect()),A)return;let tt=nt(me.clientX,me.clientY),De=lt(me.clientX);M(tt,De,k.width)}function ge(){A||ae()}function Ie(me){A||T&&(me.preventDefault(),me.deltaY<0?Q():me.deltaY>0?ee():me.deltaX>0?q():W())}function Ge(me){A&&ve(nt(me.clientX,me.clientY))}function nt(me,tt){return u?Math.max(0,Math.min(1,(k.height-(tt-k.top))/k.height)):Math.min(Math.max(me-k.x,0),k.width)/k.width}function lt(me){return Math.min(Math.max(me-k.x,0),k.width)}function ut(me,tt){let De=Ye.features.episodesClustering&&!C?Ye.episodeMinWidthPc:0,st=[],Qe=g[0].time/Pe*100,he=0,Ke=0;for(let pt=1;pt<g.length;pt++)he=g[pt].time/Pe*100,he-Qe>De&&(st.push({from:Qe,width:Math.max(0,he-Qe),loadedWidth:Math.max(0,Math.min(he,me)-Qe),filledWidth:Math.max(0,Math.min(he,tt)-Qe),interactive:g[pt-1].interactive,completed:g[pt-1].completed}),Qe=g[pt].time/Pe*100,Ke++);let ft={from:Qe,width:Math.max(0,100-Qe),loadedWidth:Math.max(0,Math.min(me,100)-Qe),filledWidth:Math.max(0,Math.min(tt,100)-Qe),interactive:g[Ke].interactive,completed:g[Ke].completed};100-Qe<De?(Ke-=1,st[Ke].width+=100-Qe,st[Ke].loadedWidth+=Math.max(0,Math.min(me,100)-Qe),st[Ke].filledWidth+=Math.max(0,Math.min(tt,100)-Qe)):st[Ke]=ft;let be=g[0].time;if(be!==0){let pt=be/Pe*100;st.unshift({from:0,width:pt,loadedWidth:Math.min(pt,me),filledWidth:Math.min(pt,tt)})}return st}function et(me){we[me?"unshift":"push"](()=>{r=me,t(0,r)})}return i.$$set=me=>{"ref"in me&&t(0,r=me.ref),"className"in me&&t(1,s=me.className),"testId"in me&&t(2,a=me.testId),"isHidden"in me&&t(3,l=me.isHidden),"isVertical"in me&&t(4,u=me.isVertical),"isActiveLive"in me&&t(5,c=me.isActiveLive),"isMobile"in me&&t(6,m=me.isMobile),"isAds"in me&&t(7,h=me.isAds),"squareBorders"in me&&t(8,v=me.squareBorders),"videoEpisodes"in me&&t(29,g=me.videoEpisodes),"withWheelHandler"in me&&t(30,T=me.withWheelHandler),"isInteractive"in me&&t(9,C=me.isInteractive),"disabled"in me&&t(10,A=me.disabled),"hideHandel"in me&&t(11,S=me.hideHandel),"onPointerDown"in me&&t(31,P=me.onPointerDown),"onHandleMove"in me&&t(32,H=me.onHandleMove),"onPointerUp"in me&&t(33,x=me.onPointerUp),"onPointerEnter"in me&&t(34,M=me.onPointerEnter),"onPointerMove"in me&&t(35,Z=me.onPointerMove),"onPointerLeave"in me&&t(36,ae=me.onPointerLeave),"onWheelUp"in me&&t(37,Q=me.onWheelUp),"onWheelDown"in me&&t(38,ee=me.onWheelDown),"onWheelLeft"in me&&t(39,W=me.onWheelLeft),"onWheelRight"in me&&t(40,q=me.onWheelRight),"onDisabledClick"in me&&t(41,ve=me.onDisabledClick),"loadedProgress"in me&&t(12,z=me.loadedProgress),"filledProgress"in me&&t(13,ie=me.filledProgress),"handleProgress"in me&&t(14,U=me.handleProgress),"ariaLabel"in me&&t(15,pe=me.ariaLabel),"ariaValueMin"in me&&t(16,se=me.ariaValueMin),"ariaValueMax"in me&&t(17,X=me.ariaValueMax),"ariaValueNow"in me&&t(18,re=me.ariaValueNow),"ariaValueText"in me&&t(19,oe=me.ariaValueText)},i.$$.update=()=>{var me;i.$$.dirty[0]&131072&&t(42,Pe=X!=null?X:0),i.$$.dirty[0]&536870912|i.$$.dirty[1]&2048&&t(43,n=am(g)&&((me=g[g.length-1])==null?void 0:me.time)<Pe),i.$$.dirty[0]&536883200|i.$$.dirty[1]&6144&&t(21,o=am(g)&&g.length&&n&&Pe?ut(z*100,ie*100):[])},[r,s,a,l,u,c,m,h,v,C,A,S,z,ie,U,pe,se,X,re,oe,Fe,o,Se,Ae,He,J,ge,Ie,Ge,g,T,P,H,x,M,Z,ae,Q,ee,W,q,ve,Pe,n,et]}var Cu=class extends O{constructor(e){super(),F(this,e,qb,Hb,N,{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},Ob,[-1,-1])}},Rr=Cu;var bi=(i,e)=>ir[i]>=ir[e],mm=(i,e)=>ir[i]<ir[e],Ko=(i,e)=>ir[i]<=ir[e],pm=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function Ub(i){ye(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 zb(i){let e,t;return e=new cr({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 Wb(i){let e,t;return e=new bt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:ho.KeyM,$$slots:{default:[zb]},$$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]&16&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function _m(i){let e,t,n;return t=new Rr({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]:jo,onPointerLeave:i[2]?i[20]:jo,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"),K(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]:jo),r[0]&4&&(s.onPointerLeave=o[2]?o[20]:jo),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)&&K(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 Kb(i){let e,t,n,o,r,s;t=new Vr({props:{content:i[6],translateY:-18,$$slots:{default:[Wb]},$$scope:{ctx:i}}});let a=i[4]&&_m(i);return{c(){e=I("div"),R(t.$$.fragment),n=G(),a&&a.c(),f(e,"class","volumeBar-container svelte-1l78lz9"),K(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=[Te(e,"mouseenter",function(){Qt(i[2]?i[21]:jo)&&(i[2]?i[21]:jo).apply(this,arguments)}),Te(e,"mouseleave",function(){Qt(i[2]?i[22]:jo)&&(i[2]?i[22]:jo).apply(this,arguments)}),Te(e,"wheel",ci(i[23]))],r=!0)},p(l,u){i=l;let c={};u[0]&64&&(c.content=i[6]),u[0]&655|u[1]&16&&(c.$$scope={dirty:u,ctx:i}),t.$set(c),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=_m(i),a.c(),d(a,1),a.m(e,null)):a&&(ue(),p(a,1,1,()=>{a=null}),ce()),(!o||u[0]&4)&&K(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,ct(s)}}}function jb(i,e,t){var oe,Ye;let n,o,r,s,{click:a}=e,l=it(),u=Mt(),c=l.state.volume$;D(i,c,Fe=>t(3,n=Fe));let m=l.state.muted$;D(i,m,Fe=>t(25,s=Fe));let h=l.actions.internal.setVolume,v=l.ui.currentGridType$;D(i,v,Fe=>t(24,r=Fe));let g=(oe=l.callbacks)==null?void 0:oe.onAudioDoesNotExistHint,T=(Ye=l.callbacks)==null?void 0:Ye.onAudioDisabledHint,C=l.state.isAudioAvailable$;D(i,C,Fe=>t(4,o=Fe));let A=l.state.isAudioDisabled,S=!1,k,P,H,x,M,Z,ae=!1,Q=!1;function ee(Fe){h(Fe)}function W(){$s(l,n,u.controls.volumeStepWheel)}function q(){el(l,n,u.controls.volumeStepWheel)}function ve(Fe){h(Fe)}function z(Fe){let Pe=Fe,Se=Pe===0?u.volumeMinRestore:Pe;h(Pe,Se)}function ie(){ae=!0}function U(){ae=!1,X()}function pe(){clearTimeout(k),t(5,S=!0)}function se(){X()}function X(){k=window.setTimeout(()=>{ae||t(5,S=!1)},u.controls.volumeBarTimeout)}function re(Fe){Fe.deltaY<0?W():Fe.deltaY>0&&q()}return i.$$set=Fe=>{"click"in Fe&&t(0,a=Fe.click)},i.$$.update=()=>{i.$$.dirty[0]&33554448&&t(1,x=!o||s),i.$$.dirty[0]&16777216&&t(2,M=Ko(r,"s")),i.$$.dirty[0]&6&&(M?t(6,P=""):t(6,P=x?j("tooltip_volume"):j("tooltip_volume_muted")),t(7,H=x?j("tooltip_volume"):j("tooltip_volume_muted"))),i.$$.dirty[0]&10&&t(8,Z=x?0:n),i.$$.dirty[0]&16&&(o?t(9,Q=A&&!T):t(9,Q=!g))},[a,x,M,n,o,S,P,H,Z,Q,c,m,v,C,ee,W,q,ve,z,ie,U,pe,se,re,r,s]}var Su=class extends O{constructor(e){super(),F(this,e,jb,Kb,N,{click:0},Ub,[-1,-1])}},hm=Su;import{noop as Jb}from"@vkontakte/videoplayer-shared/es2018";function Gb(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=le(u,l[c]);return{c(){e=B("svg"),a&&a.c(),t=B("g"),n=B("path"),o=B("path"),f(n,"d","M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z"),f(n,"class","_exit"),f(o,"d","M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"),f(o,"class","_enter"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),Ce(e,u)},m(c,m){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),Ce(e,u=xe(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 Yb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var Tu=class extends O{constructor(e){super(),F(this,e,Yb,Gb,N,{})}},gm=Tu;function Qb(i){ye(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Zb(i){let e,t;return e=new gm({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 Xb(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Iu=class extends O{constructor(e){super(),F(this,e,Xb,Zb,N,{isFullscreen:0},Qb)}},bm=Iu;function $b(i){let e,t;return e=new bm({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 ev(i){let e,t;return e=new bt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:ho.KeyF,$$slots:{default:[$b]},$$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 tv(i,e,t){let{isFullscreen:n=!1}=e,{click:o=Jb}=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 Pu=class extends O{constructor(e){super(),F(this,e,tv,ev,N,{isFullscreen:0,click:1})}},ul=Pu;function iv(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=le(a,s[l]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z"),f(t,"clip-rule","evenodd"),Ce(e,a)},m(l,u){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),Ce(e,a=xe(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 nv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var Eu=class extends O{constructor(e){super(),F(this,e,nv,iv,N,{})}},vm=Eu;function ov(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=le(c,u[m]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),n=B("path"),o=B("path"),r=B("path"),f(t,"fill","#fff"),f(t,"d","M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"),f(n,"fill","#fff"),f(n,"d","M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35"),f(n,"class","_ru"),f(o,"fill","#fff"),f(o,"d","M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635"),f(o,"class","_en"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"d","M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"),f(r,"clip-rule","evenodd"),Ce(e,c)},m(m,h){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),Ce(e,c=xe(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 rv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var Au=class extends O{constructor(e){super(),F(this,e,rv,ov,N,{})}},ym=Au;function sv(i){ye(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 lv(i){let e,t;return e=new ym({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 av="vk-video-logo-icon--short";function uv(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?av:"vk-video-logo-icon"),!o&&!n&&(t(0,r=91),t(1,s="vk-video-logo-icon--en")))},[r,s,n,o]}var Mu=class extends O{constructor(e){super(),F(this,e,uv,lv,N,{short:2,isCyrillic:3},sv)}},wm=Mu;function fv(i){let e,t;return e=new vm({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:_e,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;return e=new wm({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 mv(i){let e,t,n,o,r=[dv,fv],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=Xe()},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):(ue(),p(s[c],1,1,()=>{s[c]=null}),ce(),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){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:[mv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),we.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 _v(i,e,t){let n,o,r,{ref:s=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:l=""}=e,{click:u}=e,c=Mt(),m=it(),h=m.ui.currentGridType$;D(i,h,P=>t(12,n=P));let v=m.ui.isMobile;D(i,v,P=>t(13,o=P));let g=m.isCyrillicRelatedInterface$;D(i,g,P=>t(5,r=P));let T,C,A,S=()=>{var P,H;u(),(P=m.callbacks)!=null&&P.onLogoClicked?(H=m.callbacks)==null||H.onLogoClicked():l&&window.open(l,"_blank")};function k(P){s=P,t(0,s)}return i.$$set=P=>{"ref"in P&&t(0,s=P.ref),"logoClickable"in P&&t(1,a=P.logoClickable),"targetUrl"in P&&t(10,l=P.targetUrl),"click"in P&&t(11,u=P.click)},i.$$.update=()=>{i.$$.dirty&12292&&t(4,A=(o||Ko(n,"l"))&&C)},t(3,T=c.logoType==="vk_video"?j("tooltip_vk_video_logo"):j("tooltip_vk_logo")),t(2,C=c.logoType==="vk_video"||c.logoType==="vk_video_mobile"),[s,a,C,T,A,r,h,v,g,S,l,u,n,o,k]}var Lu=class extends O{constructor(e){super(),F(this,e,_v,pv,N,{ref:0,logoClickable:1,targetUrl:10,click:11})}},cl=Lu;import{ChromecastState as wv}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as km}from"@vkontakte/videoplayer-core/es2018";function hv(i){ye(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 gv(i){let e,t,n,o,r,s,a,l;return{c(){e=B("svg"),t=B("g"),n=B("path"),o=B("path"),r=B("path"),s=B("path"),a=B("path"),l=B("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"),K(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"),K(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&&K(l,"hidden",!u[1]),c&4&&K(e,"connecting",u[2])},d(u){u&&y(e)}}}function bv(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,T,C,A,S,k,P,H;return{c(){e=B("svg"),t=B("g"),n=B("mask"),o=B("path"),s=B("path"),a=B("path"),u=B("path"),c=B("defs"),m=B("clipPath"),h=B("path"),g=B("filter"),T=B("feFlood"),C=B("feColorMatrix"),A=B("feOffset"),S=B("feGaussianBlur"),k=B("feColorMatrix"),P=B("feBlend"),H=B("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",v=i[1]?"#2688EB":"#fff"),f(h,"d","M0 0h24v24H0z"),f(m,"id","a"),f(T,"flood-opacity","0"),f(T,"result","BackgroundImageFix"),f(C,"in","SourceAlpha"),f(C,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(C,"result","hardAlpha"),f(S,"stdDeviation","2.5"),f(k,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(P,"in2","BackgroundImageFix"),f(P,"result","effect1_dropShadow_4085_178456"),f(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(x,M){w(x,e,M),_(e,t),_(t,n),_(n,o),_(n,s),_(t,a),_(t,u),_(e,c),_(c,m),_(m,h),_(c,g),_(g,T),_(g,C),_(g,A),_(g,S),_(g,k),_(g,P),_(g,H)},p(x,M){M&2&&r!==(r=x[1]?"#2688EB":"#fff")&&f(o,"fill",r),M&2&&l!==(l=x[1]?"#2688EB":"#fff")&&f(a,"fill",l),M&2&&v!==(v=x[1]?"#2688EB":"#fff")&&f(h,"fill",v)},d(x){x&&y(e)}}}function vv(i){let e;function t(r,s){return r[0]?bv:gv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Xe()},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:_e,o:_e,d(r){r&&y(e),o.d(r)}}}function yv(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===km.CONNECTING),t(1,r=o===km.CONNECTED))},[n,r,s,o]}var Vu=class extends O{constructor(e){super(),F(this,e,yv,vv,N,{isMobile:0,state:3},hv)}},Cm=Vu;import{noop as kv}from"@vkontakte/videoplayer-shared/es2018";function Cv(i){let e,t;return e=new Cm({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 Sv(i){let e,t,n;function o(s){i[5](s)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[Cv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),we.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 Tv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:s=kv}=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===wv.CONNECTED?j("tooltip_chromecast_on"):j("tooltip_chromecast_off"))},[n,o,r,s,a,l]}var Ru=class extends O{constructor(e){super(),F(this,e,Tv,Sv,N,{ref:0,isMobile:1,state:2,click:3})}},fl=Ru;function Iv(i){ye(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 Pv(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"),K(t,"active",i[0]),K(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)&&K(t,"active",a[0]),(!o||l&2)&&K(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 Ev(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 v(C){if(!h)return 0;let{width:A}=h.getBoundingClientRect(),S=A/2;return C<S?S:C>c-S?c-S:C}function g(C){we[C?"unshift":"push"](()=>{h=C,t(4,h)})}function T(C){we[C?"unshift":"push"](()=>{m=C,t(3,m)})}return i.$$set=C=>{"active"in C&&t(0,s=C.active),"pointer"in C&&t(1,a=C.pointer),"translateXPx"in C&&t(6,l=C.translateXPx),"translateYPx"in C&&t(2,u=C.translateYPx),"containerWidth"in C&&t(7,c=C.containerWidth),"$$scope"in C&&t(8,r=C.$$scope)},i.$$.update=()=>{i.$$.dirty&64&&t(5,n=v(l))},[s,a,u,m,h,n,l,c,r,o,g,T]}var Bu=class extends O{constructor(e){super(),F(this,e,Ev,Pv,N,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},Iv)}},Sm=Bu;var dl=(i,e,t)=>t.filter(n=>n.time<=i*e).pop();function Av(i){ye(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 Tm(i){let e,t;return{c(){e=I("div"),f(e,"class","preview svelte-l51fc1"),f(e,"style",t=`width: ${i[3]}px; height: ${i[4]}px; background-image: url(${i[5]}); background-size: ${i[6]}px ${i[7]}px; background-position: ${i[8]}px ${i[9]}px; transform: translateY(${i[11]%180?-35:0}px) rotate(${i[11]}deg);`)},m(n,o){w(n,e,o)},p(n,o){o&3064&&t!==(t=`width: ${n[3]}px; height: ${n[4]}px; background-image: url(${n[5]}); background-size: ${n[6]}px ${n[7]}px; background-position: ${n[8]}px ${n[9]}px; transform: translateY(${n[11]%180?-35:0}px) rotate(${n[11]}deg);`)&&f(e,"style",t)},d(n){n&&y(e)}}}function Im(i){let e;function t(r,s){return r[2]&&r[10].completed===!1?Lv:Mv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Xe()},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 Mv(i){let e=(i[10].text||"")+"",t;return{c(){t=Oe(e)},m(n,o){w(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&We(t,e)},d(n){n&&y(t)}}}function Lv(i){let e=j("tooltip_episode_unfinished")+"",t;return{c(){t=Oe(e)},m(n,o){w(n,t,o)},p:_e,d(n){n&&y(t)}}}function Pm(i){let e,t;return{c(){e=I("div"),t=Oe(i[0]),f(e,"class","time svelte-l51fc1")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&1&&We(t,n[0])},d(n){n&&y(e)}}}function Vv(i){let e,t,n,o,r=i[5]&&Tm(i),s=i[10]&&Im(i),a=!i[2]&&Pm(i);return{c(){e=I("div"),r&&r.c(),t=G(),n=I("div"),s&&s.c(),o=G(),a&&a.c(),f(n,"class","episode svelte-l51fc1"),f(e,"class","timeline-preview svelte-l51fc1"),K(e,"mobile",i[1])},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),_(e,n),s&&s.m(n,null),_(e,o),a&&a.m(e,null)},p(l,[u]){l[5]?r?r.p(l,u):(r=Tm(l),r.c(),r.m(e,t)):r&&(r.d(1),r=null),l[10]?s?s.p(l,u):(s=Im(l),s.c(),s.m(n,null)):s&&(s.d(1),s=null),l[2]?a&&(a.d(1),a=null):a?a.p(l,u):(a=Pm(l),a.c(),a.m(e,null)),u&2&&K(e,"mobile",l[1])},i:_e,o:_e,d(l){l&&y(e),r&&r.d(),s&&s.d(),a&&a.d()}}}var Br=150;function Rv(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=it().ui.rotateAlpha;D(i,h,M=>t(11,n=M));let v,g,T,C,A,S,k,P;function H(){let M=a.frameWidth,Z=a.frameHeight;return M>Br?(Z=Z/M*Br,M=Br):Z>Br&&(M=M/Z*Br,Z=Br),{width:M,height:Z}}function x(M){let Z;a.isUV?Z=Math.floor(u*M/a.frequency):Z=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*M)));let ae=Math.floor(Z/a.countPerImage),Q=Math.floor(Z%a.countPerImage/a.countPerRow),ee=Z%a.countPerRow,W=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&ae===Math.floor(a.countTotal/a.countPerImage)&&(W=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&W++);let q=a.countPerRow;!a.isUV&&ae===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(q=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let ve=v*q,z=g*W,ie=-ee*v,U=-Q*g;return{imgSrc:a.links[ae],imgWidth:ve,imgHeight:z,imgOffsetX:ie,imgOffsetY:U}}return i.$$set=M=>{"time"in M&&t(0,o=M.time),"isMobile"in M&&t(1,r=M.isMobile),"videoEpisodes"in M&&t(13,s=M.videoEpisodes),"previewThumbsData"in M&&t(14,a=M.previewThumbsData),"progress"in M&&t(15,l=M.progress),"duration"in M&&t(16,u=M.duration),"isInteractive"in M&&t(2,c=M.isInteractive)},i.$$.update=()=>{i.$$.dirty&32768&&t(5,{imgSrc:T,imgWidth:C,imgHeight:A,imgOffsetX:S,imgOffsetY:k}=x(l),T,(t(6,C),t(15,l)),(t(7,A),t(15,l)),(t(8,S),t(15,l)),(t(9,k),t(15,l))),i.$$.dirty&106496&&t(10,P=dl(l,u,s))},t(3,{width:v,height:g}=H(),v,t(4,g)),[o,r,c,v,g,T,C,A,S,k,P,n,h,s,a,l,u]}var Nu=class extends O{constructor(e){super(),F(this,e,Rv,Vv,N,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},Av)}},Em=Nu;function Bv(i){ye(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 Nv(i){let e,t;return{c(){e=I("span"),t=Oe(i[8]),f(e,"class","time svelte-5lzly8")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o[0]&256&&We(t,n[8])},i:_e,o:_e,d(n){n&&y(e)}}}function Dv(i){let e,t;return e=new Em({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 Ov(i){let e,t,n,o,r=[Dv,Nv],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=Xe()},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):(ue(),p(s[c],1,1,()=>{s[c]=null}),ce(),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 Fv(i){let e,t,n,o,r,s=[i[10]],a={$$slots:{default:[Ov]},$$scope:{ctx:i}};for(let c=0;c<s.length;c+=1)a=le(a,s[c]);e=new Sm({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 Rr({props:u}),we.push(()=>ze(n,"ref",l)),{c(){R(e.$$.fragment),t=G(),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?xe(s,[Ho(c[10])]):{};m[0]&2838|m[1]&1048576&&(h.$$scope={dirty:m,ctx:c}),e.$set(h);let v={};m[0]&4096&&(v.isActiveLive=c[12]),m[0]&2048&&(v.isMobile=c[11]),m[0]&4&&(v.ariaValueMax=c[2]),m[0]&128&&(v.ariaValueNow=Math.round(c[7]*100)),m[0]&96&&(v.ariaValueText=j("aria_timeline_value",{position:c[6],duration:c[5]})),m[0]&8192&&(v.loadedProgress=c[13]),m[0]&128&&(v.filledProgress=c[7]),m[0]&128&&(v.handleProgress=c[7]),m[0]&16&&(v.videoEpisodes=c[4]),m[0]&16384&&(v.disabled=c[14].has("TIMELINE")),m[0]&8&&(v.hideHandel=c[3]),!o&&m[0]&1&&(o=!0,v.ref=c[0],Ue(()=>o=!1)),n.$set(v)},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 xv(i,e,t){var tt;let n,o,r,s,a,l,u,c,m,h,v,{showTimeline:g=!1}=e,{ref:T=void 0}=e,C=it(),A=Mt(),S=C.state.bufferedProgress$;D(i,S,De=>t(13,h=De));let k=C.state.positionWithScrubbing$;D(i,k,De=>t(41,l=De));let P=C.state.duration$;D(i,P,De=>t(2,r=De));let H=C.state.isLive$;D(i,H,De=>t(1,o=De));let x=C.state.isActiveLive$;D(i,x,De=>t(12,m=De));let M=C.ui.isMobile;D(i,M,De=>t(11,c=De));let Z=A.features.episodes?C.actions.internal.getVideoEpisodes():void 0,ae=C.actions.internal.getPreviewThumbsData(),Q=C.state.interactiveEpisodes$;D(i,Q,De=>t(42,u=De));let ee=C.state.isInteractive,W=C.state.isInteractiveTime$;D(i,W,De=>t(3,s=De));let q=C.state.isInteractiveExpectation$;D(i,q,De=>t(40,a=De));let ve=C.actions.internal.correctSeekTimeToInteractive,z=(tt=C.callbacks)==null?void 0:tt.onDisabledTimelineClick,ie=C.ui.controls.disabledControls$;D(i,ie,De=>t(14,v=De));let U=A.features.interactiveResponsiveUi,pe,se,X,re,oe=!1,Ye="",Fe=0,Pe=0,Se=0,Ae;function He(De){return!ve||!ee?De:ve(De*r)/r}function J(De){C.actions.internal.startScrubbing(He(De))}function ge(De){s||C.actions.internal.progressScrubbing(He(De))}function Ie(De){C.actions.internal.completeScrubbing(He(De)),t(36,oe=!1)}function Ge(De,st,Qe){ut(De,st,Qe),t(36,oe=!0)}function nt(De,st,Qe){ut(De,st,Qe),t(36,oe=!0)}function lt(){t(36,oe=!1)}function ut(De,st,Qe){t(9,Se=He(De)),t(37,Fe=st),Qe&&t(38,Pe=Qe),t(8,Ye=et(De))}function et(De){let st=Nn((o?1-De:De)*r);return o?`-${st}`:st}function me(De){T=De,t(0,T)}return i.$$set=De=>{"showTimeline"in De&&t(35,g=De.showTimeline),"ref"in De&&t(0,T=De.ref)},i.$$.update=()=>{i.$$.dirty[1]&2048&&t(4,pe=ee?u:Z),i.$$.dirty[0]&4&&t(5,se=Nn(r)),i.$$.dirty[1]&1024&&t(6,X=Nn(l)),i.$$.dirty[0]&4|i.$$.dirty[1]&1024&&t(7,re=l/r),i.$$.dirty[0]&8|i.$$.dirty[1]&512&&t(39,Ae=a||s),i.$$.dirty[0]&2|i.$$.dirty[1]&496&&t(10,n={containerWidth:Pe,translateXPx:Fe,translateYPx:ee&&ae?-36:-16,active:oe&&g&&!Ae&&!U,pointer:!A.features.timelinePreview||!ae||o})},[T,o,r,s,pe,se,X,re,Ye,Se,n,c,m,h,v,A,S,k,P,H,x,M,ae,Q,ee,W,q,z,ie,J,ge,Ie,Ge,nt,lt,g,oe,Fe,Pe,Ae,a,l,u,me]}var Du=class extends O{constructor(e){super(),F(this,e,xv,Fv,N,{showTimeline:35,ref:0},Bv,[-1,-1])}},Am=Du;function Hv(i){let e,t;return e=new Rr({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 qv(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=it().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=Nn(r)),i.$$.dirty&64&&t(2,u=Nn(o)),i.$$.dirty&65&&t(3,c=o/r)},[r,l,u,c,n,a,o]}var Ou=class extends O{constructor(e){super(),F(this,e,qv,Hv,N,{position:6,duration:0})}},ml=Ou;function Uv(i){ye(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 zv(i){let e;return{c(){e=I("div"),f(e,"class","timeline-stub svelte-1gqonyf"),K(e,"mobile",i[3])},m(t,n){w(t,e,n)},p(t,n){n&8&&K(e,"mobile",t[3])},i:_e,o:_e,d(t){t&&y(e)}}}function Wv(i){let e,t,n,o,r=[jv,Kv],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"),K(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):(ue(),p(s[c],1,1,()=>{s[c]=null}),ce(),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)&&K(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 Kv(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 Am({props:r}),we.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 jv(i){let e,t;return e=new ml({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 Gv(i){let e,t,n,o,r=[Wv,zv],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=Xe()},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):(ue(),p(s[c],1,1,()=>{s[c]=null}),ce(),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 Yv(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=it(),v=h.state.isLive$;D(i,v,k=>t(13,n=k));let g=h.ads.duration;D(i,g,k=>t(5,s=k));let T=h.ads.position;D(i,T,k=>t(4,r=k));let C=h.ui.isMobile;D(i,C,k=>t(3,o=k));let A;function S(k){m=k,t(0,m)}return i.$$set=k=>{"isAds"in k&&t(1,a=k.isAds),"canRewindLive"in k&&t(10,l=k.canRewindLive),"isRewindableLive"in k&&t(11,u=k.isRewindableLive),"isHidden"in k&&t(12,c=k.isHidden),"ref"in k&&t(0,m=k.ref)},i.$$.update=()=>{i.$$.dirty&15362&&t(2,A=!c&&(!n||n&&l&&u||a))},[m,a,A,o,r,s,v,g,T,C,l,u,c,n,S]}var Fu=class extends O{constructor(e){super(),F(this,e,Yv,Gv,N,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},Uv)}},pl=Fu;import{noop as $v}from"@vkontakte/videoplayer-shared/es2018";function Qv(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=le(u,l[c]);return{c(){e=B("svg"),a&&a.c(),t=B("path"),n=B("path"),o=B("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"),Ce(e,u)},m(c,m){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),Ce(e,u=xe(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 Zv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var xu=class extends O{constructor(e){super(),F(this,e,Zv,Qv,N,{})}},Mm=xu;function Xv(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=le(a,s[l]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708"),f(t,"clip-rule","evenodd"),f(t,"opacity",".7"),Ce(e,a)},m(l,u){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),Ce(e,a=xe(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 Jv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var Hu=class extends O{constructor(e){super(),F(this,e,Jv,Xv,N,{})}},Lm=Hu;function e4(i){ye(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 Vm(i){let e,t,n;function o(s){i[19](s)}let r={className:"w-max btn-full-opacity btn-jc-l "+(i[7]?"px-0":""),testId:"btn-episodes",click:i[13],disabled:!i[8],ariaExpanded:i[4],ariaLabel:i[6],$$slots:{default:[r4]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new bt({props:r}),we.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a&128&&(l.className="w-max btn-full-opacity btn-jc-l "+(s[7]?"px-0":"")),a&16&&(l.ariaExpanded=s[4]),a&64&&(l.ariaLabel=s[6]),a&8388777&&(l.$$scope={dirty:a,ctx:s}),!t&&a&2&&(t=!0,l.ref=s[1],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function t4(i){let e,t,n,o;e=new Mm({});function r(l,u){if(l[5]==="FULL")return o4;if(l[5]==="COUNT")return n4}let s=r(i,-1),a=s&&s(i);return{c(){R(e.$$.fragment),t=G(),a&&a.c(),n=Xe()},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 i4(i){let e,t,n,o,r,s;return r=new Lm({}),{c(){e=I("span"),t=Oe(i[3]),n=G(),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&8)&&We(t,a[3])},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 n4(i){let e,t=i[0].length+"",n;return{c(){e=I("span"),n=Oe(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+"")&&We(n,t)},d(o){o&&y(e)}}}function o4(i){let e,t;return{c(){e=I("span"),t=Oe(i[3]),f(e,"class","text svelte-1yhs2ga")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&8&&We(t,n[3])},d(n){n&&y(e)}}}function r4(i){let e,t,n,o,r=[i4,t4],s=[];function a(l,u){return l[7]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Xe()},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):(ue(),p(s[c],1,1,()=>{s[c]=null}),ce(),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 s4(i){let e,t,n=i[2]&&Vm(i);return{c(){n&&n.c(),e=Xe()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,[r]){o[2]?n?(n.p(o,r),r&4&&d(n,1)):(n=Vm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ue(),p(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function l4(i,e,t){var Q,ee,W;let n,o,r,s,{position:a=0}=e,{duration:l=0}=e,{timeCodes:u=[]}=e,c=it(),m=(ee=(Q=c.callbacks)==null?void 0:Q.onEpisodeChanged)!=null?ee:$v,h=!!((W=c.callbacks)!=null&&W.onEpisodeClicked),v=c.ui.currentGridType$;D(i,v,q=>t(18,r=q));let g=c.ui.episodes.openedByKeyboard$;D(i,g,q=>t(17,o=q));let T=c.ui.episodes.panelOpened$;D(i,T,q=>t(4,n=q));let C=c.ui.isMobile;D(i,C,q=>t(7,s=q));let A,S=q=>{var z,ie,U;if(!!((z=c.callbacks)!=null&&z.onEpisodeClicked)){let pe=Ir(q);g.set(pe),T.set(!0),(U=(ie=c.callbacks)==null?void 0:ie.onEpisodeClicked)==null||U.call(ie,pe)}},k=null,P=0,H="",x,M,Z=async(q,ve,z)=>{await mn(),(q==null?void 0:q.getAttribute("aria-expanded"))==="false"&&ve&&!z&&(g.set(!1),q.focus())};function ae(q){A=q,t(1,A)}return i.$$set=q=>{"position"in q&&t(14,a=q.position),"duration"in q&&t(15,l=q.duration),"timeCodes"in q&&t(0,u=q.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&49152&&t(16,P=a/l),i.$$.dirty&98309){let q=dl(P,l,u);q?(k==null?void 0:k.time)!==q.time&&(m(q),t(2,k=q)):t(2,k=null)}i.$$.dirty&4&&t(3,H=(k==null?void 0:k.text)||""),i.$$.dirty&262144&&(bi(r,"xl")?t(5,x="FULL"):bi(r,"m")&&mm(r,"xl")?t(5,x="COUNT"):t(5,x="SHORT")),i.$$.dirty&8&&t(6,M=`${j("tooltip_episodes")}: ${H}`),i.$$.dirty&131090&&Z(A,o,n)},[u,A,k,H,n,x,M,s,h,v,g,T,C,S,a,l,P,o,r,ae]}var qu=class extends O{constructor(e){super(),F(this,e,l4,s4,N,{position:14,duration:15,timeCodes:0},e4)}},_l=qu;import{debounceFn as W3}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as _4,PlaybackState as ss,Player as h4,VideoFormat as ls}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as Dn,clientChecker as g4,getHighestQuality as b4,InterfaceLanguage as v4,isInvariantQuality as y4,isNonNullable as w4,loadVKLangPack as k4,Logger as C4,map as S4,merge as T4,Observable as I4,Subject as kl,Subscription as Gu,Tracer as P4,ValueSubject as E4,VideoQuality as A4}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Mo}from"@vkontakte/videoplayer-statistics/es2018";import"@vkontakte/videoplayer-interactive/es2018";import{addScript as a4,Subject as en,clearVideoElement as u4}from"@vkontakte/videoplayer-shared/es2018";var Rm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var c4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",hl=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 en,loadStarted$:new en,loadEnded$:new en,loadError$:new en,ready$:new en,slotRequested$:new en,started$:new en,timeRemained$:new en,paused$:new en,resumed$:new en,ended$:new en,empty$:new en,skipped$:new en,clicked$:new en,closed$:new en,error$:new en};this.loadAdman=e=>this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e);this.loadAdmanMailRu=e=>new Promise((t,n)=>{let o;this.events.loadStarted$.next();let r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?(t(),this.events.loadEnded$.next()):n()};a4(c4,e,this.loadTimeout).then(()=>{window.AdmanHTML?(t(),this.events.loadEnded$.next()):(window.admanAsyncInit=r,o=window.setTimeout(r,this.initTimeout))}).catch(()=>{n(),clearTimeout(o)})});this.loadAdmanNPM=e=>new Promise((t,n)=>{let o;this.events.loadStarted$.next();let r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?(t(),this.events.loadEnded$.next()):n()},s=()=>{a=!0,n()},a=!1,l=window.setTimeout(s,this.loadTimeout);e.addEventListener("abort",s),e.aborted&&s(),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{a||(window.AdmanHTML?(t(),this.events.loadEnded$.next()):(window.admanAsyncInit=r,o=window.setTimeout(r,this.initTimeout)))},s).finally(()=>{clearTimeout(o),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,t)=>{this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(t)}`}),this.events.started$.next(e),t.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),qe(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{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=(e="ad error")=>{this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout,this.runtimeTimeout=t.runtimeTimeout,this.useAdmanFromNPM=t.useAdmanFromNPM}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){if(this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:t,height:n,isFullscreen:o,isAutoplay:r,adsContainer:s,adsVideoElement:a,slotId:l,params:u={},duration:c,previewParam:m}=e,h,v=this.playerState&&qe(this.playerState.vsid);v&&(h=parseInt(v,36));let g={dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:Rm(t,n),puid11:o?0:1,preview:m,...h?{request_id:h}:{},duration:c,...u};m||delete g.preview;let T={slot:l,wrapper:s,videoEl:a,videoQuality:n,params:g,browser:{mobile:!1}};try{let C=new window.AdmanHTML;C.setDebug(!1),C.onReady(this.onAdsReady),C.onStarted(this.onAdStarted),C.onPlayed(this.onAdPlayed),C.onPaused(this.onAdPaused),C.adMidrollPoint(this.onAdMidrollPoint),C.onClosed(this.onAdClosed),C.onSkipped(this.onAdSkipped),C.onClicked(this.onAdClicked),C.onTimeRemained(this.onAdTimeRemained),C.onCompleted(this.onAdCompleted),C.onError(this.onAdError),C.init(T),this.adman=C,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(T)}`})}catch(C){this.onAdError("could not init adman")}}switchToVideo(e=!1){var n,o;if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let t=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${t}`}),t&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let r="Switch to video: Adman state was not updated correctly";this.log({message:r}),this.events.error$.next(r)}(o=(n=this.actions).switchFromAdsToVideo)==null||o.call(n,!t)}}togglePlay(){if(this.adsState){this.log({message:"toggle play"});let e=qe(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){if(this.log({message:`set volume ${e}`}),this.adman)try{this.adman.setVolume(e)}catch(t){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(t){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){if(this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(e){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){if(this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(e){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){if(this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(e){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){if(this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(e){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}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&&u4(this.videoElement),this.isDestroyed=!0}};var Bm=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 Uu=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,t){let n=[],o=e.split(this.twoLinesRegExp);for(let r of o){let s={startTime:0,endTime:0,texts:[],lang:t},a=r.split(this.oneLineRegExp);for(let l of a)if(!s.startTime&&!s.endTime){let u=new gl,{startTime:c,endTime:m}=u.parse(l);s.startTime=c,s.endTime=m}else if(l.trim()!==""){let u=new zu,{texts:c}=u.parse(l);s.texts=[...s.texts,...c]}(s.startTime||s.endTime)&&s.texts.length>0&&n.push(s)}return n}},gl=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}},zu=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 gl;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}},Nm=Uu;import{isNonNullable as Wu}from"@vkontakte/videoplayer-shared/es2018";var fr,$t,Ku=0,ju=!1,Dm="",Om=(i,e=0,t=0)=>i<e&&i<t,bl=(i,e=0,t=0)=>i>=e&&i<=t,f4=(i,e=0,t=0)=>i>e&&i>t,Fm=(i,e,t,n=!1)=>{var a;let o=(a=t.find(({id:l})=>l===e.value))==null?void 0:a.subtitles;if(n)return o==null?void 0:o.find(({startTime:u,endTime:c})=>bl(i,u,c));let r=i>=Ku,s=i<Ku;if(Ku=i,s&&(ju=!1),Wu(fr)&&bl(i,fr.startTime,fr.endTime)&&Dm===e.value)return fr;if(!Wu($t)&&(o!=null&&o.length)&&!ju){$t=o.find(({startTime:u,endTime:c})=>bl(i,u,c)||r&&Om(i,u,c)),fr=void 0,!Wu($t)&&o[o.length-1].endTime<i&&(ju=!0);return}else{if(bl(i,$t==null?void 0:$t.startTime,$t==null?void 0:$t.endTime))return fr=$t,$t=void 0,Dm=e.value,fr;(r&&f4(i,$t==null?void 0:$t.startTime,$t==null?void 0:$t.endTime)||s&&Om(i,$t==null?void 0:$t.startTime,$t==null?void 0:$t.endTime))&&($t=void 0)}};var xm={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"},d4={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"},vl=i=>{var e,t;return(t=(e=xm[i])!=null?e:xm[d4[i]])!=null?t:void 0};import{Subscription as m4}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var yl=class{constructor(e,t=new m4){this.oneStat=e;this.statSubscription=t}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var wl=(t=>(t.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",t.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",t))(wl||{});var vo=i=>i!=null?i:0,Nr=(i,e)=>{var o,r;let t=(o=i==null?void 0:i.getBoundingClientRect)==null?void 0:o.call(i),n=(r=e==null?void 0:e.getBoundingClientRect)==null?void 0:r.call(e);return{top:Math.round(vo(t==null?void 0:t.top)-vo(n==null?void 0:n.top)),left:Math.round(vo(t==null?void 0:t.left)-vo(n==null?void 0:n.left)),bottom:Math.round(vo(t==null?void 0:t.bottom)-vo(n==null?void 0:n.top)),right:Math.round(vo(t==null?void 0:t.right)-vo(n==null?void 0:n.left))}},Dr=i=>{var t;let e=(t=i==null?void 0:i.getBoundingClientRect)==null?void 0:t.call(i);return{width:vo(e==null?void 0:e.width),height:vo(e==null?void 0:e.height)}};var Hm=({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:v,player:g,disabledControls:T,isInteractive:C,interactiveRanges$:A,isInteractiveTime$:S,replayInteractive:k,stopPlayer:P,hasInteractiveBranches:H,playPrevChapterDisabledTooltip:x,additionalButtons:M,additionalSettingsMenuItems:Z,additionalContextMenuItems:ae,playPrevVideo:Q,playNextVideo:ee,looped:W=!1,statistics:q,saveRate:ve,internalsExposure:z})=>{var Of,Ff,xf,Hf;let ie={...v,configName:[...(Of=v.configName)!=null?Of:[],"ui"],isAudioDisabled:s,live:{...(Ff=v.live)!=null?Ff:{},isLiveCatchUpMode:!!o}},U=h,pe=P4.createRootTracer(U.features.saveTraceInfoToFile),se=pe.createComponentTracer("Store"),X=g||new h4(ie,pe);z==null||z.expose({corePlayer:X});let re=new C4,oe=new hl(re,{loadTimeout:U.ads.loadTimeout,initTimeout:U.ads.initTimeout,runtimeTimeout:U.ads.runtimeTimeout,useAdmanFromNPM:U.ads.useAdmanFromNPM}),Ye=or.getInstance(),Fe=u==null?void 0:u.pictureInPictureApi,Pe=u==null?void 0:u.annotationsApi,Se=re.createComponentLog("Store"),Ae,He,J={},ge=new Es,Ie=q?Tt(q.oneStat.vsid$):Wn(void 0),Ge=Ne(qo()),nt=(xf=Fe==null?void 0:Fe.info.isActive$)!=null?xf:new E4(!1),lt=Fe==null?void 0:Fe.info.type,ut=Ne(0),et=Ne([]),me=T4(X.events.fatalError$,X.events.managedError$).subscribe(b=>et.update(E=>[...E,b])),tt=Wn(!1,b=>{let E=X.events.fatalError$.subscribe(()=>b(!0));return()=>E.unsubscribe()}),De=async b=>{var Ee;let E=Object.values(v4).includes(b);if(U.downloadVKLanguages&&(E&&U.updateBuiltinLanguages||!Ia(b))){let Je;try{Je=await k4(b,od,rd)}catch(mt){(Ee=q==null?void 0:q.oneStat)==null||Ee.logError({errorType:"VKLangPack",fatal:!1}),Ye==null||Ye.report(mt,{errorType:"VKLangPack",fatal:!1})}Je&&(Ta({language:b,pack:Je,fallback:U.defaultLanguage}),st.set(b))}Ia(b)&&st.set(b)},st=Ne(i),Qe=Ne(e);De(i);let he=(b,E)=>{let $=qe(st);return Pa($,b,E,U.defaultLanguage)},Ke=Ne("thumb"),ft=(()=>{let b=Jt([tt,Ke],([E,$])=>E?"crashed":$);return{...b,is:E=>qe(b)===E}})(),be=(()=>{let b=Ne(new Set(T));return{...b,add:E=>{b.update($=>new Set([...$].concat(E)))},remove:E=>{b.update($=>{let Ee=[...$];return new Set(Array.isArray(E)?Ee.filter(Je=>!E.includes(Je)):Ee.filter(Je=>Je!==E))})},includes:E=>{let $=qe(b);return Array.isArray(E)?E.every(Ee=>$.has(Ee)):$.has(E)}}})();se.log("create store"),Se({message:"create store"});let pt=b=>{let E=b.container;E.append(X.experimental.element$.getValue()),Bt=new MutationObserver($=>{let{removedNodes:Ee}=$[0];Ee.length&&E.append(X.experimental.element$.getValue())}),Bt.observe(E,{childList:!0})},yt=b=>{Se({message:`init video, config: ${JSON.stringify(b)}`}),C?pt(b):X.initVideo(b),se.log("init video",{isInteractive:C}),b.subtitles&&X.setExternalTextTracks(b.subtitles),Ae=b},Ze=new kl,It=b=>Ze.next(b),Rt=new kl,Ft=new kl,ti=new kl,Bt=null,Kt={actionRewind$:Rt,actionSeek$:Ft,inPiP$:nt,inFullscreen$:new I4(b=>Ge.subscribe(E=>b.next(E))),actionSetSubtitle$:ti,nextMovie$:Ze};if(q){let{oneStat:b,statSubscription:E}=q;C||E.add(b.attachTo(X)),E.add(b.attachToUi(Kt)),E.add(b.attachToAds(oe.events)),b.authorize(r).catch($=>{Se({message:`onestat auth error ${String($)}`})})}if(Ye){let b=new Gu,E=($,Ee)=>b.add($.subscribe(Ee));if(E(X.events.managedError$,$=>{Ye.logIError($)}),E(X.events.fatalError$,$=>{Ye.logIError($,!0)}),q){let{oneStat:$}=q;E($.experimental.error$,Ee=>{Ye.logIError(Ee)})}Ye.sentrySubscription.add(b)}let Gt=()=>{g4.isIOS&&He&&Wd(He).catch(b=>{Se({message:`exitIosSafariFullscreen failed: ${b}`})})},Nt=new Gu().add(X.experimental.element$.subscribe(b=>{b&&(He=b,b.classList.add("player-media"),sr(Fe)&&(Fe.updateVideoElement(),Fe.registryEventHandlers()),C&&b.setAttribute("pip","false"))})).add(X.events.ended$.subscribe(()=>{var b;Gt(),(b=l==null?void 0:l.onEnded)==null||b.call(l)})).add(X.events.looped$.subscribe(()=>{var b;(b=l==null?void 0:l.onLooped)==null||b.call(l)})).add(X.events.started$.subscribe(async()=>{var E,$;sr(Fe)&&await(Fe==null?void 0:Fe.revealPictureInPicture());let b=X.info.muted$.getValue();(E=l==null?void 0:l.onStarted)==null||E.call(l),($=J.onStarted)==null||$.call(J,b)})).add(X.events.willSeek$.subscribe(({from:b,to:E})=>{var $;($=l==null?void 0:l.onSeek)==null||$.call(l,b,E)})).add(X.events.autoplaySoundProhibited$.subscribe(()=>{var b;(b=l==null?void 0:l.onAutoplaySoundProhibited)==null||b.call(l)})).add(X.info.position$.subscribe(b=>{var $;let E=X.info.duration$.getValue();isFinite(E)&&E>0&&(($=l==null?void 0:l.onTimeupdate)==null||$.call(l,E,b),oe.setPosition(b,E))})).add(X.events.fatalError$.subscribe(()=>{var b;(b=l==null?void 0:l.onCrashed)==null||b.call(l)})).add(X.events.loadedMetadata$.subscribe(()=>{_t.state.loadedMetadata$.set(!0)})).add(X.info.is3DVideo$.subscribe(b=>{_t.ui.is3DVideo.set(b)})).add(X.info.isEnded$.subscribe(b=>{C&&(b?(S!=null&&S.getValue()&&be.add(Is),be.add("PLAY_BUTTON")):be.remove("PLAY_BUTTON"))})).add(X.info.liveTime$.subscribe(b=>{var E;(E=l==null?void 0:l.onLiveTime)==null||E.call(l,b)})).add(X.info.isStalled$.subscribe(b=>{var E;(E=l==null?void 0:l.onStalledChanged)==null||E.call(l,b)})).add(oe.events.loadStarted$.subscribe(()=>{var b,E;return(E=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onLoadStarted)==null?void 0:E.call(b)})).add(oe.events.loadEnded$.subscribe(()=>{var b,E;return(E=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onLoadEnded)==null?void 0:E.call(b)})).add(oe.events.loadError$.subscribe(()=>{var b,E;return(E=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onLoadError)==null?void 0:E.call(b)})).add(oe.events.init$.subscribe(()=>{var b,E;return(E=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onInit)==null?void 0:E.call(b)})).add(oe.events.ready$.subscribe(()=>{var b,E;return(E=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onReady)==null?void 0:E.call(b)})).add(oe.events.started$.subscribe(b=>{var E,$;return($=(E=l==null?void 0:l.adsInfo)==null?void 0:E.onStarted)==null?void 0:$.call(E,b)})).add(oe.events.timeRemained$.subscribe(b=>{var E,$;return($=(E=l==null?void 0:l.adsInfo)==null?void 0:E.onTimeRemained)==null?void 0:$.call(E,b)})).add(oe.events.ended$.subscribe(b=>{var E,$;return($=(E=l==null?void 0:l.adsInfo)==null?void 0:E.onCompleted)==null?void 0:$.call(E,b)})).add(oe.events.empty$.subscribe(()=>{var b,E;return(E=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onEmpty)==null?void 0:E.call(b)})).add(oe.events.clicked$.subscribe(b=>{var E,$;return($=(E=l==null?void 0:l.adsInfo)==null?void 0:E.onClicked)==null?void 0:$.call(E,b)})).add(oe.events.closed$.subscribe(b=>{var E,$;return($=(E=l==null?void 0:l.adsInfo)==null?void 0:E.onClosed)==null?void 0:$.call(E,b)})).add(oe.events.error$.subscribe(b=>{var E,$;return($=(E=l==null?void 0:l.adsInfo)==null?void 0:E.onError)==null?void 0:$.call(E,b)})).add(oe.events.paused$.subscribe(()=>{var b,E;return(E=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onPaused)==null?void 0:E.call(b)})).add(oe.events.resumed$.subscribe(()=>{var b,E;return(E=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onResumed)==null?void 0:E.call(b)})),ot=new Gu,St=()=>{ot.add(X.events.log$.subscribe(b=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${b.component}`,b.message)})).add(re.log$.subscribe(b=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${b.component}.`,b.message)}))},Lt=()=>{ot.unsubscribe()},fe=(b,E)=>{se.log("start camera manual rotation",{mx:b,my:E}),X.startCameraManualRotation(b,E)},$e=(b=!1)=>{se.log("stop camera manual rotation",{immediate:b}),X.stopCameraManualRotation(b)},kt=(b,E,$)=>{se.log("move camera focus px",{xpx:b,ypx:E,dt:$}),X.moveCameraFocusPX(b,E,$)},ii=()=>{X.holdCamera()},Ut=()=>{X.releaseCamera()},Dt=Wn(X.info.position$.getValue(),b=>{let E,$,Ee=()=>{let Je=X.info.playbackState$.getValue(),mt=X.info.isLive$.getValue(),ht=X.info.duration$.getValue(),gt=X.info.position$.getValue();if([ss.PLAYING,ss.PAUSED].includes(Je)){let At=mt?gt-ht:X.getExactTime();At!==$&&b(At),$=At}E=requestAnimationFrame(Ee)};return Ee(),()=>cancelAnimationFrame(E)}),ni=Tt(nt),zt=Tt(X.info.playbackState$),di=Tt(X.info.currentBuffer$),Ti=Tt(X.info.isEnded$),Di=Tt(X.info.isLive$),_i=U.features.playbackRate?Tt(X.info.canChangePlaybackSpeed$):Wn(!1),vi=Tt(X.info.liveBufferTime$),yi=Tt(X.info.volume$),Ht=Tt(X.info.muted$),Ui=ha(X.info.autoQualityLimits$.pipe(S4(({max:b})=>b!==void 0)),((Hf=X.info.autoQualityLimits$.getValue())==null?void 0:Hf.max)!==void 0),qt=Tt(X.info.autoQualityLimitingAvailable$),ei=Tt(X.info.availableQualities$),Ii=Tt(X.info.availableQualitiesFps$),Zt=Tt(X.info.chromecastState$),Pi=Tt(X.info.chromecastDeviceName$),Ei=Tt(X.info.currentFormat$),Me=Tt(X.info.throughputEstimation$),rt=Tt(X.info.videoBitrate$),Wt=Tt(X.info.intrinsicVideoSize$),wi=Tt(X.info.duration$),Et=Tt(X.info.isAudioAvailable$),oi=null,Ot=X.info.isBuffering$,ki=Wn(Ot.getValue(),b=>{let E=Ot.subscribe($=>{$&&oi===null?oi=window.setTimeout(()=>{b(Ot.getValue()),oi=null},U.loaderDelay):b($)});return()=>{E.unsubscribe(),oi&&clearTimeout(oi)}}),Cn=()=>{oi&&clearTimeout(oi),oi=null},zi=Jt([wi,Di],([b,E])=>E?-b:b),pn=Jt([zt],([b])=>b===ss.PLAYING),mi=Tt(X.info.atLiveEdge$),Oi=Tt(X.info.atLiveDurationEdge$),Wi=Tt(X.info.position$),tn=Jt([Wi,wi],([b,E])=>isFinite(b)&&isFinite(E)&&!!E),Fi=Jt([Zt],([b])=>b===_4.CONNECTED),_n=Tt(X.info.availableVideoStreams$),ri=U.features.audioLanguages?Tt(X.info.availableAudioStreams$):Wn([]),On=Tt(X.info.currentVideoStream$),Ai=Tt(X.info.currentAudioStream$),nn=b=>{b.language&&Ca(b.language),X.setVideoStream(b)},on=b=>{b.language&&Ca(b.language),X.setAudioStream(b)},rn=b=>{let E;if(b.length===1&&(E=b.at(0)),E!=null||(E=b.find(Ee=>"isDefault"in Ee&&Ee.isDefault)),E)return E;let $=Vd();return $&&(E=b.find(({language:Ee})=>$===Ee)),E!=null||(E=b.at(0)),E},Ki=!1;Nt.add(X.info.availableAudioStreams$.subscribe(b=>{if(!Ki&&b.length){let E=rn(b);E&&(X.setAudioStream(E),Ki=!0)}}));let ji=!1;Nt.add(X.info.availableVideoStreams$.subscribe(b=>{if(!ji&&b.length){let E=rn(b);E&&(X.setVideoStream(E),ji=!0)}}));let Mi=Ne(void 0),Ci=Tt(X.info.isAutoQualityEnabled$,b=>b&&Mi.set(void 0)),xi=Tt(X.info.currentQuality$,()=>Mi.set(void 0)),si=Jt([Mi,xi],([b,E])=>b!=null?b:E),pi=Jt([ei,Ii,Ci,si,Ei],([b,E,$,Ee,Je])=>{let mt=[];Je!==ls.MPEG&&mt.push({value:"auto",displayValue:he("auto_quality_option"),selected:$});let ht=b.filter(gt=>!y4(gt));for(let gt of ht){let At=E[gt];mt.push({value:gt,displayValue:`${gt}${At?Bm(At):""}`,selected:$?!1:gt===Ee})}return mt}),at=Tt(X.info.currentPlaybackRate$),Li=Jt([at,mi,Oi],([b,E,$])=>{let Ee=$||C?1:U.controls.playbackRateMin,Je=E?1:U.controls.playbackRateMax,mt=U.controls.playbackRateStep,ht=[];for(let gt=Ee;gt<=Je;gt+=mt)ht.push({value:gt,displayValue:gt===1?he("playback_rate_1"):he("playback_rate",{multiplier:gt.toString(10)}),selected:b===gt});return ht}),jt={displayValue:he("subtitles_off"),value:"off"},hi=Ne({...jt}),Vi=U.features.subtitles?Tt(X.info.availableTextTracks$):Wn([]),sn=vd(),hn=Jt([Vi,hi],([b,E],$)=>{var mt;let Ee=[],Je=b.find(({id:ht})=>ht===E.value);if(Je!=null&&Je.url){let[,ht]=(mt=sn.find(Je.url))!=null?mt:[];if(ht){$(ht);return}ge.download(Je.url).then(gt=>{if(!gt||ge.isDestroyed())return;let At=new Nm,Fo=Je.language;if(Fo){let dh=!!Je.isAuto,mh=At.parse(gt,Fo);Ee.push({lang:Fo,subtitles:mh,isAuto:dh,id:Je.id})}sn.add(Je.url,Ee),qe(hi).value===E.value&&$(Ee)}).catch(gt=>{var At;(At=q==null?void 0:q.oneStat)==null||At.logError({errorType:"Subtitles download",fatal:!1}),Ye==null||Ye.report(gt,{errorType:"Subtitles download",fatal:!1})})}$(Ee)}),Ri=Jt([at,pn,hi],([b,E,$],Ee)=>{let ht;if(X.info.isLive$.getValue()&&E&&$.value!==jt.value){let At=()=>{let Fo=1e3/(3*b);ht=setTimeout(At,Fo),Ee(Date.now())};return At(),()=>clearTimeout(ht)}}),Gi=Jt([Vi,hi],([b,E])=>{if(!b.length)return[];let $=[];for(let{language:Ee,isAuto:Je,id:mt}of b){let ht=Ee&&vl(Ee);Ee&&ht&&$.push({displayValue:Je?he("subtitles_auto",{language:ht}):ht,value:mt,selected:(E==null?void 0:E.value)===mt,isAuto:Je})}return $.length?($.unshift({...jt,selected:(E==null?void 0:E.value)===jt.value}),$):[]}),li={available:[],prev:[]},je=()=>{var E,$;let b=X.experimental.getCurrentTime$.getValue();return($=(E=b==null?void 0:b())!=null?E:He==null?void 0:He.currentTime)!=null?$:0},gn=Jt([Dt,hi,hn,Ri],([b,E,$,Ee])=>{var mt;let Je=X.info.isLive$.getValue();if(Je&&li.prev!==$){let ht=$.find(({id:At})=>At===E.value),gt=li.prev.find(({id:At})=>At===E.value);if(ht){let At={...ht,subtitles:[...(mt=gt==null?void 0:gt.subtitles)!=null?mt:[],...ht.subtitles]};li.available=[At],li.prev=$}}if(E&&E.value!==jt.value){let ht=Je?je():b,gt=Je?li.available:$;return Fm(ht,E,gt,Je)}}),ln=Jt([gn],([b])=>b!=null&&b.texts?b.texts:[]),Yi=Ne(!0),an=Jt([di,zi,Wi,vi],([b,E,$,Ee])=>{var gt;let Je=(gt=b==null?void 0:b.end)!=null?gt:0;if(!Ee)return Je/E;let ht=-$+Ee-E;return(Je-ht)/E}),Qi=Tt(X.info.availableSources$),Zi=Jt([Qi],([b])=>Object.keys((b==null?void 0:b[ls.MPEG])||{}).length>0),Yn=()=>{var $,Ee,Je;let b=Object.keys(((Ee=($=X.info.availableSources$)==null?void 0:$.getValue())==null?void 0:Ee[ls.MPEG])||{}),E=b4(b)||A4.Q_144P;return(Je=Ae.sources[ls.MPEG])==null?void 0:Je[E]},Fn=()=>{var E;let b=Yn();if(b)se.log("download video",{url:b}),hd(b,((E=Ae==null?void 0:Ae.meta)==null?void 0:E.title)||"video");else{let $="There is no URL for download video";se.log("download video",{message:$}),Se({message:$})}},gi=()=>{Se({message:"toggle muted"});let b=X.info.muted$.getValue(),E=X.info.volume$.getValue(),$=E===0||b,Ee=!$;se.log("toggle muted",{muted:b,volume:E,soundIsOff:$,nextValue:Ee}),vn(Ee)},xn=()=>{var b;if(_t.ui.settingsMenu.visible$.set(!1),!qe(_t.ui.settingsSubMenu.visible$)){let E=qe(_t.ui.settingsMenu.ref$);if((b=l==null?void 0:l.uiInfo)!=null&&b.onSettingsMenu&&E){let Ee=Dr(E),Je={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:Ee,position:Je,name:"settings"})}}se.log("close settings menu")},bn=async(b,E=()=>Promise.resolve())=>{var Je;_t.ui.settingsMenu.openedByBtnKeyboard$.set(!!b),_t.ui.settingsMenu.visible$.set(!0),await E();let $=qe(_t.ui.settingsMenu.ref$),Ee=Oo();if((Je=l==null?void 0:l.uiInfo)!=null&&Je.onSettingsMenu&&$&&Ee){let ht=Dr($),gt=Nr($,Ee);l.uiInfo.onSettingsMenu({visible:!0,size:ht,position:gt,name:"settings"})}se.log("open settings menu",{wasOpenedByKeyboard:b})},Sn=(b,E=!1)=>{var mt;_t.ui.settingsSubMenu.visible$.set(!1);let $=qe(_t.ui.settingsMenu.ref$),Ee=Oo(),Je=qe(_t.ui.settingsMenu.visible$);if((mt=l==null?void 0:l.uiInfo)!=null&&mt.onSettingsMenu&&$&&Ee)if(Je&&!E){let gt=Dr($),At=Nr($,Ee);l.uiInfo.onSettingsMenu({visible:!0,size:gt,position:At,name:"settings"})}else{let gt=Dr(b),At={top:0,left:0,bottom:0,right:0},Fo=qe(_t.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:gt,position:At,name:Fo})}se.log("close settings sub menu")},un=(b,E)=>{var Ee;_t.ui.settingsSubMenu.visible$.set(!0),_t.ui.settingsSubMenu.ref$.set(E),_t.ui.settingsSubMenu.name$.set(b);let $=Oo();if((Ee=l==null?void 0:l.uiInfo)!=null&&Ee.onSettingsMenu&&E&&$){let mt=Dr(E),ht=Nr(E,$);l.uiInfo.onSettingsMenu({visible:!0,name:b,size:mt,position:ht})}se.log("open settings sub menu",{name:b})},cn=(b,E=b,$=!1)=>{var mt,ht,gt;let Ee=!$,Je=X.info.muted$.getValue();Se({message:`set volume, volume: ${b}, preferredVolume: ${E}, internalCall: ${Ee}`}),se.log("set volume",{volume:b,preferredVolume:E,internalCall:Ee}),X.setVolume(b),oe.setVolume(b),Ee&&((mt=l==null?void 0:l.onVolumeChange)==null||mt.call(l,b)),va(E),Je?(X.setMuted(!1),Ee&&((ht=l==null?void 0:l.onUnmute)==null||ht.call(l)),Ms(!1)):!Je&&b===0&&(X.setMuted(!0),Ee&&((gt=l==null?void 0:l.onMute)==null||gt.call(l)),Ms(!0))},vn=(b,E=!1)=>{var Je,mt,ht,gt;let $=!E,Ee=X.info.volume$.getValue();if(Se({message:`set muted, currentVolume: ${Ee}, mute: ${b}, internalCall: ${$}`}),se.log("set muted",{mute:b,currentVolume:Ee,internalCall:$}),X.setMuted(b),oe.setVolume(b?0:Ee),Ms(b),$&&(b?(Je=l==null?void 0:l.onMute)==null||Je.call(l):(mt=l==null?void 0:l.onUnmute)==null||mt.call(l)),Ee===0){let At=(ht=As())!=null?ht:U.volumeDefault;At===0&&(At=U.volumeMinRestore,va(At)),X.setVolume(At),oe.setVolume(At),$&&((gt=l==null?void 0:l.onVolumeChange)==null||gt.call(l,At))}},Hi=Ne(!1),Xi=b=>{se.log("set looped",{isLooped:b}),Hi.set(b),X.setLooped(b)};Xi(W);let Hn=()=>{var b,E;(E=(b=l==null?void 0:l.uiInfo)==null?void 0:b.onReportProblem)==null||E.call(b)},ro=(b,E=!1)=>{var $;Se({message:`set autoplayNextEnabled, value: ${b}`}),se.log("set autoplay next enabled",{autoplayNextEnabled:b}),_t.ui.autoplayNextEnabled$.set(b),Nd(b),E&&(($=l==null?void 0:l.onSetAutoplayNextEnabled)==null||$.call(l,b))},so=b=>{Se({message:`set timerNextVideoRunning, value: ${b}`}),se.log("set timer next video running",{timerNextVideoRunning:b}),_t.ui.timerNextVideoRunning$.set(b)},ai=(b=!0)=>{var $;let E=!0;if(b&&(l!=null&&l.onPrevVideoClick))try{E=($=l==null?void 0:l.onPrevVideoClick)==null?void 0:$.call(l)}catch(Ee){Se({message:"onPrevVideoClick callback failed to execute"})}E&&Q()},lo=(b=!0)=>{var $;let E=!0;if(b&&(l!=null&&l.onNextVideoClick))try{E=($=l==null?void 0:l.onNextVideoClick)==null?void 0:$.call(l)}catch(Ee){Se({message:"onNextVideoClick callback failed to execute"})}E&&ee()},ao=()=>{var b;(b=l==null?void 0:l.onNextVideoAnnouncementClick)==null||b.call(l)},Qn=()=>{var b;(b=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||b.call(l)},uo=()=>{var b;(b=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||b.call(l)},co=()=>{X.prepare()},Zn=()=>{Dn(_t);let b=qe(_t.ui.controls.disabledControls$),E=qe(_t.playerPhase),$={playerPhase:E,isInteractive:C,isVideoEnded:!1,action:"none"};if(b.has("PLAY_BUTTON"))return;if(Se({message:"toggle play"}),E==="ads"){$.action="play",se.log("toggle adman play",$),oe.togglePlay();return}let Ee=()=>{var mt;Se({message:"toggle play, call player.play"}),$.action="play",X.play(),(mt=l==null?void 0:l.onPlay)==null||mt.call(l)},Je=()=>{var mt;Se({message:"toggle play, call player.pause"}),$.action="pause",X.pause(),(mt=l==null?void 0:l.onPause)==null||mt.call(l)};if(X.info.isEnded$.getValue()){if(Se({message:"toggle play, video ended, seek to 0"}),Rt.next(),Ft.next(Mo.REWIND),C){k==null||k();return}X.seekTime(0),Ee()}else X.info.playbackState$.getValue()!==ss.PLAYING?Ee():Je();se.log("toggle play",$)},Xn=b=>{Se({message:`set quality, quality: ${b}`}),se.log("set quality",{quality:b}),X.setAutoQuality(b==="auto"),b!=="auto"?(Pd(t,b),Mi.set(b),X.setQuality(b)):ya()},Tn=b=>{Se({message:`set trafficSavingEnabled, value: ${b}`}),se.log("set traffic saving enabled",{trafficSavingEnabled:b}),X.setAutoQualityLimits({max:b?U.trafficSavingLimit:void 0}),Md(b)},Jn=b=>{se.log("set playback rate",{playbackRate:b}),X.setPlaybackRate(b),U.features.saveRate&&ve&&!X.info.isLive$.getValue()&&Rd(b)},yo=()=>{let b=qe(Li),E=b.findIndex(({selected:Ee})=>Ee);if(E===b.length-1)return;let $=b[E+1];Jn($.value)},wo=()=>{let b=qe(Li),E=b.findIndex(({selected:Ee})=>Ee);if(E===0)return;let $=b[E-1];Jn($.value)},qi=(b={...jt,selected:!1})=>{se.log("set subtitles",{...b}),b&&b.value!==jt.value&&ti.next(b.isAuto?b.value+"_auto":b.value),hi.set(b)},$n=()=>{se.log("toggle subtitles");let b=qe(Gi),E=qe(hi),$=qe(st);if((E==null?void 0:E.value)===jt.value){let Ee=b.filter(Je=>Je.value!==jt.value).find(Je=>Je.value===$)||b[1];qi(Ee)}else qi()},fn=(b,E,$=!0)=>{var Ee;if(Se({message:`seek to time, time: ${b}`}),se.log("seek to time",{time:b,action:E,forcePrecise:$}),Ft.next(E),X.info.isLive$.getValue()){let Je=X.info.duration$.getValue(),mt=Math.min(0,Je+b);X.seekTime(mt,$)}else{if(S!=null&&S.getValue())return;X.info.isEnded$.getValue()&&(Se({message:"seek after ended, call callbacks.onPlay"}),(Ee=l==null?void 0:l.onPlay)==null||Ee.call(l)),X.seekTime(Zr(b),$)}},te=b=>{Se({message:`seek to episode start time: ${b}`}),se.log("seek to episode start time",{time:b}),fn(b,Mo.EPISODE,!0)},Vt=(b,E)=>{Se({message:`seek to percent, percent: ${b}`}),se.log("seek to percent",{percent:b,action:E});let $=qe(zi)*b;fn($,E,!1)},ne=b=>{Se({message:`seek external, time: ${b}`}),se.log("seek external",{time:b}),Ft.next(Mo.UNKNOWN),X.seekTime(X.info.isLive$.getValue()?-b:b)},yn=b=>{var Ee,Je;let E=(Ee=b.max)!=null?Ee:"none",$=(Je=b.min)!=null?Je:"none";Se({message:`set auto quality limitation. Max: ${E}. Min: ${$}`}),se.log("set auto quality limits",{max:E,min:$}),X.setAutoQualityLimits(b)},ko=b=>{Se({message:`seek external to episode start time: ${b}`}),se.log("seek external to episode start time",{time:b}),fn(b,Mo.EPISODE,!0)},Ji=b=>{Se({message:`set playback rate to: ${b}`}),se.log("set playback rate external",{playbackRate:b}),X.setPlaybackRate(b)},qn=Ne(void 0),fo=Ne(!1),Vo=b=>{Se({message:`start scrubbing, progress: ${b}`}),se.log("start scrubbing",{progress:b}),fo.set(!0),eo(b)},eo=b=>{qn.set(b)},mo,In,to=()=>{qn.set(void 0),fo.set(!1)},po=()=>{clearTimeout(In),clearTimeout(mo),mo=window.setTimeout(()=>{to()},500),He==null||He.removeEventListener("seeked",po)},Qo=b=>{Se({message:`complete scrubbing, progress: ${b}`}),se.log("complete scrubbing",{progress:b}),Vt(b,Mo.SLIDER),qe(_t.ui.isMobile)&&qe(_t.state.currentFormat$)===ls.HLS?(He==null||He.addEventListener("seeked",po),In=window.setTimeout(()=>{po()},300)):to()},Zo=Jt([Dt,zi,qn],([b,E,$],Ee)=>{Ee(w4($)?$*E:b)}),Ro=Ne({width:0,height:0}),Co=Jt([Ro],([{width:b}],E)=>{let $=pm(b);E($)}),So=Ne(!1),Bo=M.filter(b=>gd(b)),No=Jt([Co,So],([b,E])=>E?Bo.filter($=>!$.hideOnMobile):Bo.filter($=>{var Ee;return!((Ee=$.hideOnDesktopGridTypes)!=null&&Ee.includes(b))})),Pn=Ne(M.filter(b=>bd(b))),Xo=Jt([Pn,Co],([b,E])=>b.filter($=>{var Ee;return!((Ee=$.hideOnDesktopGridTypes)!=null&&Ee.includes(E))})),mr=Jt([Xo,No],([b,E])=>[...U.features.additionalButtonsDesktopControlPanelRight?b.filter($=>$.type==="desktop-control-panel-right"):[],...U.features.additionalButtons?E.map(($,Ee)=>{var Je;return{id:Ee,weight:Ee,type:"desktop-control-panel-right",testId:$.testId,icon:$.iconUrl,onClick:$.onClick,ariaLabel:(Je=$.ariaLabel)!=null?Je:$.tooltip,tooltipText:$.tooltip}}):[]]),En=Ne(Z),Y=Jt([En],([b])=>U.features.additionalSettingsMenuItems?b.map(E=>E.type==="SWITCH"?{...E,onClick:E.onChangeEnabled}:E):[]),Pt=(b,E)=>{let $=qe(Pn).map(Ee=>Ee.id!==b?Ee:{...Ee,...E});Pn.set($)},Bi=b=>{let E=qe(Pn);if(E.some($=>$.id===b.id)){Se({message:`Additional button with id: "${b.id}" was exist! Can't add more with the same id`});return}E.push(b),Pn.set(E)},Si=b=>{let E=qe(Pn);if(!E.some($=>$.id===b)){Se({message:`Can't find additional button with id: "${b}"! Can't remove item with this id`});return}E=E.filter($=>$.id!==b),Pn.set(E)},_o=b=>{Ft.next(Mo.LIVE),Se({message:"live switch to low latency "+b}),se.log("live switch to low latency "+b),X.setLiveLowLatency(b)},Un=(b,E)=>{let $=qe(En).map(Ee=>Ee.id!==b?Ee:{...Ee,...E});En.set($)},zn=b=>{let E=qe(En);if(E.some($=>$.id===b.id)){Se({message:`Settings menu item with id: "${b.id}" was exist! Can't add more with the same id`});return}E.push(b),En.set(E)},Ur=b=>{let E=qe(En);if(!E.some($=>$.id===b)){Se({message:`Can't find settings menu item with id: "${b}"! Can't remove item with this id`});return}E=E.filter($=>$.id!==b),En.set(E)},An=Ne(ae),Do=Jt([An],([b])=>U.features.additionalContextMenuItems?b:[]),zr=(b,E)=>{let $=qe(An).map(Ee=>Ee.id!==b?Ee:{...Ee,...E});An.set($)},Wr=b=>{let E=qe(An);if(E.some($=>$.id===b.id)){Se({message:`Context menu item with id: "${b.id}" was exist! Can't add more with the same id`});return}E.push(b),An.set(E)},Kr=b=>{let E=qe(An);if(!E.some($=>$.id===b)){Se({message:`Can't find context menu item with id: "${b}"! Can't remove item with this id`});return}E=E.filter($=>$.id!==b),An.set(E)},Yt=Jt([So,tt],([b,E],$)=>{$(b&&E)}),Mn=()=>{Ft.next(Mo.LIVE),Se({message:"switch to active live"}),se.log("switch to active live"),X.seekTime(0),X.info.playbackState$.getValue()!==ss.PLAYING&&_t.actions.internal.togglePlay()},Jo=()=>{se.log("skip adman"),oe.skip()},jr=(b=!0)=>{Dn(_t),Se({message:`switch from ads to video, callPlay: ${b}`}),se.log("switch from ads to video",{callPlay:b}),Ke.set("video"),b&&X.play()},gs=()=>{Dn(_t),Se({message:"switch from video to ads"}),se.log("switch from video to ads"),_t.actions.internal.pause(),Gt(),Ke.set("ads")},$l=b=>{Dn(_t);let E=b?"LiveWaitingStart":"thumb";se.log("set live waiting start",{state:b,playerPhase:E}),Ke.set(E)},ea=b=>{Dn(_t);let E=b?"LiveWaitingRecover":"thumb";se.log("set live waiting recover",{state:b,playerPhase:E}),Ke.set(E)},Gr=b=>{Dn(_t);let E=b?"LiveWaitingRecord":"thumb";se.log("set live waiting record",{state:b,playerPhase:E}),Ke.set(E)},ta=()=>(Dn(_t),se.log("get debug text data"),pd(X,Ae,_t)),ia=()=>(Dn(_t),JSON.stringify(pe.getFinishedSpans())),na=()=>(Dn(_t),_d(X,Ae,_t)),Oo=()=>He,Yr=()=>{Se({message:"toggle chromecast"}),se.log("toggle chromecast"),X.toggleChromecast()},pr=b=>{var $;if(Dn(_t),X.info.isEnded$.getValue())return;let E=!b;if(qe(_t.playerPhase)==="ads"){Se({message:`pause ads, internalCall: ${E}`}),se.log("pause ads",{internalCall:E}),oe.pause();return}Se({message:`pause video, internalCall: ${E}`}),se.log("pause video",{internalCall:E}),E&&(($=l==null?void 0:l.onPause)==null||$.call(l)),X.pause()},dn=b=>{var $;Dn(_t);let E=!b;if(qe(_t.playerPhase)==="ads"){Se({message:`play ads, internalCall: ${E}`}),se.log("play ads",{internalCall:E}),oe.play();return}Se({message:`play video, internalCall: ${E}`}),se.log("play video",{internalCall:E}),E&&(($=l==null?void 0:l.onPlay)==null||$.call(l)),X.play()},Ln=b=>{Dn(_t);let E=!b;if(qe(_t.playerPhase)==="ads"){Se({message:"player cannot be stopped during ads via external method"});return}Se({message:`player will be stopped, internalCall: ${E}`}),P==null||P()},bs=(b,E)=>{Dn(_t),Se({message:`first start, show ads: ${b}, internalCall: ${!E}`}),se.log("first start",{showAds:b,external:E}),b?Ke.set("ads"):(Ke.set("video"),E?X.play():_t.actions.internal.togglePlay())},Qr=()=>(Se({message:"getting time codes"}),c),vs=()=>{let b=Qr();if(!b||[0,1].includes(b.length))return;let E=X.info.position$.getValue();return b.find($=>$.time>E)},oa=b=>{let E=b;E||(E=vs());let $=X.info.position$.getValue();se.log("seek to next episode",{currentTime:$,...E}),E&&(Se({message:"seek to next episode"}),fn(E.time,Mo.EPISODE,!0))},ys=()=>{let b=Qr();if(!b||[0,1].includes(b.length))return;let E=X.info.position$.getValue(),$=b.findIndex(Je=>Je.time>E),Ee=$===-1?b.length-2:$-2;if(!(Ee<0))return b[Ee]},ra=b=>{let E=b;E||(E=ys());let $=X.info.position$.getValue();se.log("seek to prev episode",{currentTime:$,...E}),E&&(Se({message:"seek to prev episode"}),fn(E.time,Mo.EPISODE,!0))},sa=()=>(Se({message:"getting preview thumbs data"}),se.log("get preview thumbs data",{...m}),m),la=async()=>{let b=Fe==null?void 0:Fe.isActive(),E="none";Fe!=null&&Fe.isActive()?(E="remove",await(Fe==null?void 0:Fe.remove())):(E="request",await(Fe==null?void 0:Fe.request())),se.log("toggle picture in picture",{isActive:b,action:E})},aa=(b=-90)=>{se.log("rotate video",{alphaDiff:b}),ut.update(E=>E+b)},_r=Ne([]);A==null||A.subscribe(b=>{let E=[];for(let $=0;$<b.length;$++){let{range:[Ee,Je],subjects:mt}=b[$];$===0&&Ee!==0&&E.push({time:0,text:"",interactive:!1,completed:!0}),E.push({time:Ee/1e3,text:"",interactive:!0,completed:!mt.length}),Je!==1/0&&E.push({time:Je/1e3,text:"",interactive:!1,completed:!0})}_r.set(E)});let ws=Ne(!1);S==null||S.subscribe(b=>{b&&qe(fo)&&to()});let Zr=b=>{if(!C)return b;let E=qe(_r),$=qe(zi),Je=qe(Wi)/$,mt=E.find(ht=>ht.interactive&&!ht.completed&&ht.time>Je);return typeof(mt==null?void 0:mt.time)=="number"?Math.min(b,mt.time-.05):b},de=()=>{_t.ui.episodes.panelOpened$.set(!1)},wn=()=>{se.log("destroy store"),clearTimeout(In),clearTimeout(mo),Nt.unsubscribe(),ot.unsubscribe(),X.destroy(),oe.destroy(),q==null||q.destroy(),Ye==null||Ye.destroy(),me.unsubscribe(),Bt==null||Bt.disconnect(),Bt=null,ge.destroy()},_t={interfaceLanguage$:st,isCyrillicRelatedInterface$:Qe,initVideo:yt,videoId:t,isClip:n,playerPhase:ft,vsid:Ie,state:{positionExact$:Dt,positionWithScrubbing$:Zo,duration$:zi,playbackState$:zt,isPlaying$:pn,isLoaderVisible:ki,bufferedProgress$:an,isLive$:Di,canChangePlaybackSpeed$:_i,isActiveLive$:mi,isOldestAvailableLive$:Oi,isRewindableLive$:tn,isEnded$:Ti,muted$:Ht,volume$:yi,trafficSavingEnabled$:Ui,autoQualityLimitingAvailable$:qt,availableVideoStreams$:_n,availableAudioStreams$:ri,videoStream$:On,audioStream$:Ai,currentQuality$:si,isAutoQualityEnabled$:Ci,availableQualities$:pi,currentPlaybackRate$:at,availablePlaybackRates$:Li,currentSubtitle$:hi,availableTextTracks$:Vi,availableSubtitlesList$:Gi,currentSubtitleCaptions$:ln,isAutoSubtitleCaptionVisible$:Yi,chromecastState$:Zt,chromecastDeviceName$:Pi,chromecastConnected$:Fi,currentFormat$:Ei,throughputEstimation$:Me,videoBitrate$:rt,videoSize$:Wt,errorLog$:et,crashed$:tt,isAudioAvailable$:Et,isAudioDisabled:!!s,canDownload:U.features.download&&!!a,availableSources$:Qi,hasMpegSources$:Zi,isInteractive:C,showInteractiveGraph:U.features.interactiveGraph,showSeekToInteractive:U.features.seekToInteractive,showPlayPrevChapter:U.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:U.features.interactiveTimeIndicator&&!!qe(_r).length,interactiveEpisodes$:_r,isInteractiveTime$:S?Tt(S):Ne(!1),graphIsOpened$:Ne(!1),isInteractiveExpectation$:ws,hasInteractiveBranches:H,playPrevChapterDisabledTooltip:x,looped$:Hi,loadedMetadata$:Ne(!1)},ui:{controlsVisible:Ne(!1),touched:Ne(!1),controls:{prevButton:Ne(void 0),playButton:Ne(void 0),replayButton:Ne(void 0),nextButton:Ne(void 0),playPrevChapterButton:Ne(void 0),seekToInteractiveButton:Ne(void 0),interactiveGraphButton:Ne(void 0),liveButton:Ne(void 0),time:Ne(void 0),episodes:Ne(void 0),volume:Ne(void 0),subtitles:Ne(void 0),settings:Ne(void 0),context:Ne(void 0),chromecast:Ne(void 0),pip:Ne(void 0),fullscreen:Ne(void 0),vkLogo:Ne(void 0),interactiveTimeIndicator:Ne(void 0),timeline:Ne(void 0),autoplayNextToggle:Ne(void 0),additionalButtons:M.length?M.reduce(b=>[...b,Ne(void 0)],[]):[],disabledControls$:be},modals:{hotKeyMap:{show:Ne(!1),data:Ne({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ge,rotateAlpha:ut,isAutoplay:Ne(!1),debugPanelVisible:Ne(!1),episodes:{panelOpened$:Ne(!1),openedByKeyboard$:Ne(!1)},contextMenu:{visible$:Ne(!1),btnRef$:Ne(void 0),openedByBtnKeyboard$:Ne(!1),openedByHotKey$:Ne(!1),lastActiveElem$:Ne(void 0),showContextMenuBtn$:Ne(!1),position$:Ne({top:0,left:0})},playerSize:Ro,isMobile:So,mobileNotReportControlHidden$:Yt,mobileUnmuteButtonExpanded:Ne(!1),mobileUnmuteButtonVisible:Ne(!1),icon3DVideoVisible:Ne(!1),scrubbingInProgress:fo,is3DVideo:Ne(!1),isPictureInPictureActive$:ni,pictureInPictureType$:Wn(lt),currentGridType$:Co,additionalButtonsDeprecated$:No,additionalDesktopControlPanelRightButtons$:mr,additionalSettingsMenuItems$:Y,additionalContextMenuItems$:Do,interactiveHideMobileControls:Ne(!1),overlayContainer$:Ne(void 0),startedByKeyboard$:Ne(!1),autoplayNextEnabled$:Ne(!1),timerNextVideoRunning$:Ne(!0),settingsMenu:{visible$:Ne(!1),ref$:Ne(void 0),openedByBtnKeyboard$:Ne(!1)},settingsSubMenu:{visible$:Ne(!1),ref$:Ne(void 0),name$:Ne(void 0)}},ads:{position:Ne(0),duration:Ne(0),playbackState:Ne("inactive"),canSkip:Ne(!1),secondsToWatchBeforeSkip:Ne(0),postrollPassed:Ne(!1)},webApi:{pictureInPictureApi:Fe,annotationsApi:Pe},actions:{internal:{preload:co,firstStart:b=>bs(b,!1),play:()=>dn(!1),pause:()=>pr(!1),togglePlay:Zn,toggleMuted:gi,openSettingsMenu:bn,closeSettingsMenu:xn,openSettingsSubMenu:un,closeSettingsSubMenu:Sn,setVolume:cn,setVideoStream:nn,setAudioStream:on,setQuality:Xn,setTrafficSavingEnabled:b=>Tn(b),setPlaybackRate:Jn,incrementPlaybackRate:yo,decrementPlaybackRate:wo,setSubtitle:qi,toggleSubtitle:$n,togglePictureInPicture:la,startScrubbing:Vo,progressScrubbing:eo,completeScrubbing:Qo,toggleChromecast:Yr,switchToActiveLive:Mn,switchFromAdsToVideo:jr,switchFromVideoToAds:gs,skipAd:Jo,setLiveWaitingStart:$l,setLiveWaitingRecover:ea,setLiveWaitingRecord:Gr,getDebugTextData:ta,getTraceTextData:ia,getDebugPanelData:na,getVideoElement:Oo,seekTime:(b,E,$)=>fn(b,E,$),clearDelayedBufferingCheckTimeout:Cn,seekEpisodeStartTime:te,seekToPercent:Vt,getNextEpisode:vs,seekToNextEpisode:oa,getPrevEpisode:ys,seekToPrevEpisode:ra,startLogging:St,stopLogging:Lt,startCameraManualRotation:fe,stopCameraManualRotation:$e,moveCameraFocusPX:kt,holdCamera:ii,releaseCamera:Ut,getVideoEpisodes:Qr,getPreviewThumbsData:sa,downloadVideo:Fn,addLanguage:Ta,setLanguage:De,nextMovie:It,videoRotate:aa,correctSeekTimeToInteractive:Zr,replayInteractive:k,setLooped:Xi,reportProblem:Hn,setAutoplayNextEnabled:ro,setTimerNextVideoRunning:so,prevVideoClick:ai,nextVideoClick:lo,nextVideoAnnouncementClick:ao,nextVideoAnnouncementAuto:Qn,nextVideoAnnouncementCancel:uo},external:{firstStart:b=>bs(b,!0),play:()=>dn(!0),pause:()=>pr(!0),stop:()=>Ln(!0),seekTime:b=>ne(b),seekEpisodeStartTime:b=>ko(b),setPlaybackRate:b=>Ji(b),setAutoQualityLimits:b=>yn(b),setMuted:b=>vn(b,!0),setVolume:b=>cn(b,b,!0),returnFocusToEpisodes:de,updateAdditionalSettingsItem:Un,addAdditionalSettingsItem:zn,removeAdditionalSettingsItem:Ur,updateAdditionalContextItem:zr,addAdditionalContextItem:Wr,removeAdditionalContextItem:Kr,updateAdditionalButton:Pt,addAdditionalButton:Bi,removeAdditionalButton:Si,setLiveLowLatency:_o}},callbacks:l,setUiCallbacks:b=>{J={...b}},getAdmanWrapper:()=>oe,getLogger:()=>re,destroy:wn};return _t};var Sl=(i,e,t,n)=>{var s;if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"];for(let[a,l]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(a)){let u=(s=t[a])==null?void 0:s.getBoundingClientRect(),c=(n||r.includes(a))&&!!u&&!!(u.right-u.left),{top:m,left:h,bottom:v,right:g}=Nr(t[a],i);l.set({positionStartX:0,positionEndX:0,left:c?h:0,right:c?g:0,top:c?m:0,bottom:c?v:0,isDisplayed:c})}};var Tl=async(i,e,t)=>{await mn(),e&&t&&(t.focus(),i.set(!1))};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":"dots-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=le(a,s[l]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),f(t,"fill","#fff"),f(t,"d","M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"),Ce(e,a)},m(l,u){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),Ce(e,a=xe(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 L4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var Yu=class extends O{constructor(e){super(),F(this,e,L4,M4,N,{})}},qm=Yu;function V4(i){let e,t;return e=new qm({}),{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 R4(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:[V4]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new bt({props:r}),we.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 B4(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,s=it(),a=s.ui.contextMenu.visible$;D(i,a,A=>t(3,n=A));let l=s.ui.contextMenu.openedByBtnKeyboard$,u=s.ui.contextMenu.showContextMenuBtn$,c=s.ui.contextMenu.position$,m=s.ui.contextMenu.btnRef$,h,v=A=>{let S=Ir(A),k=c1(h);c.set(k),l.set(S),a.set(!n)},g=()=>{u.set(!0)},T=()=>{u.set(!1)};function C(A){h=A,t(2,h)}return i.$$set=A=>{"disabled"in A&&t(0,o=A.disabled),"ariaLabel"in A&&t(1,r=A.ariaLabel)},i.$$.update=()=>{i.$$.dirty&4&&h&&m.set(h)},[o,r,h,n,a,v,g,T,C]}var Qu=class extends O{constructor(e){super(),F(this,e,B4,R4,N,{disabled:0,ariaLabel:1})}},Um=Qu;function N4(i){ye(i,"svelte-od3veb",".interactive-episode-icon-animated.svelte-od3veb{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.interactive-episode-icon-animated.icon-small.svelte-od3veb{width:28px;height:28px}.invisible.svelte-od3veb{opacity:0;visibility:hidden}.fullscreen.svelte-od3veb:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.svelte-od3veb{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.svelte-od3veb{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb{top:40px;right:16px}}@keyframes svelte-od3veb-pulse{0%{transform:scale(1);border-width:1px;opacity:0}10%{opacity:1}50%{transform:scale(1.5);border-width:1px;opacity:0.5}100%{transform:scale(1.5);border-width:0.5px;opacity:0}}.pulse.svelte-od3veb{display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);animation:1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.svelte-od3veb{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.svelte-od3veb{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.svelte-od3veb{display:none}")}function D4(i){let e,t;return e=new al({props:{completed:!0}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:_e,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function O4(i){let e,t,n,o,r,s,a,l,u,c;function m(v){i[25](v)}let h={tooltipContent:j("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[6],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[15],$$slots:{default:[D4]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new $i({props:h}),we.push(()=>ze(t,"ref",m)),t.$on("click",i[16]),{c(){e=I("div"),R(t.$$.fragment),o=G(),r=I("div"),s=G(),a=I("div"),f(r,"class","ref-block svelte-od3veb"),K(r,"hidden",i[1]),f(a,"class","pulse svelte-od3veb"),K(a,"paused",i[5]),f(e,"class","interactive-episode-icon-animated svelte-od3veb"),K(e,"mobile",i[2]),K(e,"fullscreen",i[7]),K(e,"invisible",i[1]),K(e,"icon-small",i[4])},m(v,g){w(v,e,g),L(t,e,null),_(e,o),_(e,r),i[26](r),_(e,s),_(e,a),i[27](a),l=!0,u||(c=[Te(e,"mousemove",vt(i[24])),Te(e,"mouseleave",i[17])],u=!0)},p(v,g){let T={};g[0]&64&&(T.tooltipActive=v[6]),g[1]&8&&(T.$$scope={dirty:g,ctx:v}),!n&&g[0]&1&&(n=!0,T.ref=v[0],Ue(()=>n=!1)),t.$set(T),(!l||g[0]&2)&&K(r,"hidden",v[1]),(!l||g[0]&32)&&K(a,"paused",v[5]),(!l||g[0]&4)&&K(e,"mobile",v[2]),(!l||g[0]&128)&&K(e,"fullscreen",v[7]),(!l||g[0]&2)&&K(e,"invisible",v[1]),(!l||g[0]&16)&&K(e,"icon-small",v[4])},i(v){l||(d(t.$$.fragment,v),l=!0)},o(v){p(t.$$.fragment,v),l=!1},d(v){v&&y(e),V(t),i[26](null),i[27](null),u=!1,ct(c)}}}function F4(i,e,t){var re;let n,o,r,s,a,l,u,{ref:c=void 0}=e,m,h=it(),v=Bn(),{interactiveControlsOpacity$:g}=v;D(i,g,oe=>t(20,o=oe));let T=h.ui.isMobile;D(i,T,oe=>t(2,l=oe));let C=h.ui.isFullscreen;D(i,C,oe=>t(7,u=oe));let A=h.state.isInteractiveTime$;D(i,A,oe=>t(21,r=oe));let S=v.showInteractiveTimeIndicatorTooltip$;D(i,S,oe=>t(19,n=oe));let k=h.ui.controlsVisible;D(i,k,oe=>t(23,a=oe));let P=(re=h.callbacks)==null?void 0:re.onInteractiveTimeIndicatorClick,H=h.ui.currentGridType$;D(i,H,oe=>t(22,s=oe));let x,M,Z,ae,Q=()=>{t(5,ae=!0)},ee=()=>{W(),m==null||m.addEventListener("animationiteration",Q,{once:!0})},W=()=>{t(5,ae=!1),m==null||m.removeEventListener("animationiteration",Q)},q=oe=>{S.set(oe)},ve,z=()=>{Z||(S.set(!0),P==null||P())};Vn(()=>{S.clearTimeout(),W()});let ie=()=>{S.set(!1)};function U(oe){Rn.call(this,i,oe)}function pe(oe){c=oe,t(0,c)}function se(oe){we[oe?"unshift":"push"](()=>{c=oe,t(0,c)})}function X(oe){we[oe?"unshift":"push"](()=>{m=oe,t(3,m)})}return i.$$set=oe=>{"ref"in oe&&t(0,c=oe.ref)},i.$$.update=()=>{i.$$.dirty[0]&8388612&&t(18,x=!l&&a),i.$$.dirty[0]&4194304&&t(4,M=Ko(s,"s")),i.$$.dirty[0]&3407872&&t(1,Z=!r||!!o||x),i.$$.dirty[0]&2&&t(5,ae=Z),i.$$.dirty[0]&524290&&t(6,ve=n&&!Z),i.$$.dirty[0]&524288&&(n?ee():W())},[c,Z,l,m,M,ae,ve,u,g,T,C,A,S,k,H,q,z,ie,x,n,o,r,s,a,U,pe,se,X]}var Zu=class extends O{constructor(e){super(),F(this,e,F4,O4,N,{ref:0},N4,[-1,-1])}},Il=Zu;function x4(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=le(c,o[h]);return u!==void 0&&u&4&&(c=le(c,xe(o,[Ho((m=l[2])!=null?m:{})]))),{props:c}}return r&&(e=xt(r,s(i))),{c(){e&&R(e.$$.fragment),t=Xe()},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){ue();let m=e;p(m.$$.fragment,1,0,()=>{V(m,1)}),ce()}r?(e=xt(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?xe(o,[Ho((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 H4(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:[x4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new $i({props:r}),we.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 q4(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 Xu=class extends O{constructor(e){super(),F(this,e,q4,H4,N,{buttonComponent:1,buttonComponentProps:2,tooltipText:3,disabledTooltipContent:4,disabled:5,className:6,ref:0})}},Ju=Xu;var Lo={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};function z4(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=le(a,s[l]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),f(t,"fill","#fff"),f(t,"d","M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"),Ce(e,a)},m(l,u){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),Ce(e,a=xe(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 W4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var $u=class extends O{constructor(e){super(),F(this,e,W4,z4,N,{})}},zm=$u;function K4(i){let e,t;return e=new zm({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 j4(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 ec=class extends O{constructor(e){super(),F(this,e,j4,K4,N,{isPrev:0,isMobile:2})}},Wm=ec;function G4(i){ye(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 Km(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 Y4(i){let e,t,n,o=i[1]&&Km(i);return t=new Wm({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){o&&o.c(),e=G(),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=Km(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 Q4(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:[Y4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),we.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 Z4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{type:s}=e,{click:a}=e,l;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"isMobile"in c&&t(1,o=c.isMobile),"disabled"in c&&t(2,r=c.disabled),"type"in c&&t(3,s=c.type),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,l=s==="prev"?j("tooltip_previous"):j("tooltip_next"))},[n,o,r,s,a,l,u]}var tc=class extends O{constructor(e){super(),F(this,e,Z4,Q4,N,{ref:0,isMobile:1,disabled:2,type:3,click:4},G4)}},Or=tc;function X4(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=le(a,s[l]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),f(t,"fill","#fff"),f(t,"d","M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.67.67 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"),Ce(e,a)},m(l,u){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),Ce(e,a=xe(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 J4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var ic=class extends O{constructor(e){super(),F(this,e,J4,X4,N,{})}},Pl=ic;import{noop as $4}from"@vkontakte/videoplayer-shared/es2018";function e3(i){ye(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 jm(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 t3(i){let e,t,n,o,r=i[1]&&jm(i);return n=new Pl({}),{c(){r&&r.c(),e=G(),t=I("div"),R(n.$$.fragment),f(t,"class","svelte-1ot3duq"),K(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=jm(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!o||a&2)&&K(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 i3(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:ho.KeyK,$$slots:{default:[t3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),we.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 n3(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:s=""}=e,{click:a=$4}=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 nc=class extends O{constructor(e){super(),F(this,e,n3,i3,N,{ref:0,isMobile:1,disabled:2,className:3,click:4},e3)}},as=nc;function o3(i){let e,t;return{c(){e=B("svg"),t=B("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:_e,o:_e,d(n){n&&y(e)}}}function r3(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 oc=class extends O{constructor(e){super(),F(this,e,r3,o3,N,{width:0,height:1,viewBox:2,fill:3})}},Go=oc;function s3(i){let e,t;return{c(){e=B("svg"),t=B("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:_e,o:_e,d(n){n&&y(e)}}}function l3(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 rc=class extends O{constructor(e){super(),F(this,e,l3,s3,N,{width:0,height:1,viewBox:2,fill:3})}},Fr=rc;import{noop as a3}from"@vkontakte/videoplayer-shared/es2018";function u3(i){ye(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 Gm(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 c3(i){let e,t,n,o,r=i[1]&&Gm(i);var s=i[8];function a(l,u){return{}}return s&&(n=xt(s,a(i))),{c(){r&&r.c(),e=G(),t=I("div"),n&&R(n.$$.fragment),f(t,"class","svelte-1ot3duq"),K(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=Gm(l),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u&256&&s!==(s=l[8])){if(n){ue();let c=n;p(c.$$.fragment,1,0,()=>{V(c,1)}),ce()}s?(n=xt(s,a(l,u)),R(n.$$.fragment),d(n.$$.fragment,1),L(n,t,null)):n=null}(!o||u&2)&&K(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 f3(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:ho.KeyK,$$slots:{default:[c3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),we.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 d3(i,e,t){let n,o,{fakeIsPlaying$:r}=Bn();D(i,r,S=>t(12,o=S));let{ref:s=void 0}=e,{isMobile:a=!1}=e,{isPlaying:l=!1}=e,{disabled:u=!1}=e,{className:c=""}=e,{click:m=a3}=e,{toggle:h}=r,v,g,T,C;function A(S){s=S,t(0,s)}return i.$$set=S=>{"ref"in S&&t(0,s=S.ref),"isMobile"in S&&t(1,a=S.isMobile),"isPlaying"in S&&t(10,l=S.isPlaying),"disabled"in S&&t(2,u=S.disabled),"className"in S&&t(3,c=S.className),"click"in S&&t(4,m=S.click)},i.$$.update=()=>{i.$$.dirty&4096&&t(5,g=o!==null),i.$$.dirty&5152&&t(11,T=g?o:l),i.$$.dirty&2048&&t(7,C=T?j("tooltip_pause"):j("tooltip_play")),i.$$.dirty&2048&&t(8,n=T?Fr:Go)},t(6,v=h),[s,a,u,c,m,g,v,C,n,r,l,T,o,A]}var sc=class extends O{constructor(e){super(),F(this,e,d3,f3,N,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},u3)}},us=sc;function m3(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=le(a,s[l]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),f(t,"fill","#fff"),f(t,"d","M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"),Ce(e,a)},m(l,u){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),Ce(e,a=xe(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 p3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var lc=class extends O{constructor(e){super(),F(this,e,p3,m3,N,{})}},Ym=lc;function _3(i){let e,t;return e=new Ym({}),{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 h3(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:[_3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),we.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 g3(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 ac=class extends O{constructor(e){super(),F(this,e,g3,h3,N,{ref:0,hidden:1,disabled:2,click:3})}},El=ac;function b3(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=le(l,a[u]);return{c(){e=B("svg"),s&&s.c(),t=B("path"),n=B("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"),Ce(e,l)},m(u,c){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),Ce(e,l=xe(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 v3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var uc=class extends O{constructor(e){super(),F(this,e,v3,b3,N,{})}},Qm=uc;function y3(i){let e,t;return e=new Qm({}),{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 w3(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:[y3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),we.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 k3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:s}=e;function a(l){n=l,t(0,n)}return i.$$set=l=>{"ref"in l&&t(0,n=l.ref),"hidden"in l&&t(1,o=l.hidden),"disabled"in l&&t(2,r=l.disabled),"click"in l&&t(3,s=l.click)},[n,o,r,s,a]}var cc=class extends O{constructor(e){super(),F(this,e,k3,w3,N,{ref:0,hidden:1,disabled:2,click:3})}},Al=cc;function C3(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=le(l,a[u]);return{c(){e=B("svg"),s&&s.c(),t=B("path"),n=B("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z"),f(n,"class","_closed"),f(n,"clip-rule","evenodd"),Ce(e,l)},m(u,c){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),Ce(e,l=xe(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 S3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var fc=class extends O{constructor(e){super(),F(this,e,S3,C3,N,{})}},Zm=fc;function T3(i){ye(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function I3(i){let e,t;return e=new Zm({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 P3(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var dc=class extends O{constructor(e){super(),F(this,e,P3,I3,N,{isOpened:0},T3)}},Xm=dc;function E3(i){let e,t;return e=new Xm({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:[E3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),we.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 M3(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 mc=class extends O{constructor(e){super(),F(this,e,M3,A3,N,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Ml=mc;import{PlaybackState as pc}from"@vkontakte/videoplayer-core/es2018";function L3(i){let e,t;return e=new Us({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 V3(i){let e,t;return e=new bt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===pc.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[L3]},$$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]===pc.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 R3(i,e,t){let n,{isMobile:o=!1}=e,{isLiveActive:r=!1}=e,{ariaLabel:s=""}=e,a=it(),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===pc.PAUSED&&c()})},[o,r,s,n,m,l]}var _c=class extends O{constructor(e){super(),F(this,e,R3,V3,N,{isMobile:0,isLiveActive:1,ariaLabel:2})}},Ll=_c;import{noop as Jm}from"@vkontakte/videoplayer-shared/es2018";function B3(i){let e,t,n,o;return{c(){e=I("img"),f(e,"class","icon"),To(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){w(r,e,s),n||(o=Te(e,"error",i[2]),n=!0)},p(r,s){s&1&&!To(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&y(e),n=!1,o()}}}function N3(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:_e,d(t){t&&y(e)}}}function D3(i){let e;function t(r,s){return r[1]?N3:B3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Xe()},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:_e,o:_e,d(r){r&&y(e),o.d(r)}}}function O3(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 hc=class extends O{constructor(e){super(),F(this,e,O3,D3,N,{icon:0})}},xr=hc;function F3(i){let e,t;return e=new xr({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 x3(i){var n;let e,t;return e=new bt({props:{className:i[8],ariaLabel:i[4],click:i[7],disabled:i[9],testId:(n=i[2])!=null?n:i[1],$$slots:{default:[F3]},$$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 H3(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:[x3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new $i({props:r}),we.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 q3(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:v=Jm}=e,{ref:g}=e;function T(C){g=C,t(0,g)}return i.$$set=C=>{"id"in C&&t(1,s=C.id),"testId"in C&&t(2,a=C.testId),"icon"in C&&t(3,l=C.icon),"ariaLabel"in C&&t(4,u=C.ariaLabel),"tooltipText"in C&&t(5,c=C.tooltipText),"disabledTooltipContent"in C&&t(6,m=C.disabledTooltipContent),"disabled"in C&&t(10,h=C.disabled),"onClick"in C&&t(7,v=C.onClick),"ref"in C&&t(0,g=C.ref)},i.$$.update=()=>{i.$$.dirty&128&&t(11,n=v===Jm),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,v,r,o,h,n,T]}var gc=class extends O{constructor(e){super(),F(this,e,q3,H3,N,{id:1,testId:2,icon:3,ariaLabel:4,tooltipText:5,disabledTooltipContent:6,disabled:10,onClick:7,ref:0})}},$m=gc;var ep=i=>!!i.buttonComponent;var Yo={vkLogo:100,volume:200,subtitles:300,settings:400,context:500,fullscreen:600,chromecast:700};function K3(i){ye(i,"svelte-1iedtj3",".wrapper-bottom.svelte-1iedtj3.svelte-1iedtj3{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box}.wrapper-bottom.svelte-1iedtj3>.svelte-1iedtj3{pointer-events:auto}.controls.svelte-1iedtj3.svelte-1iedtj3{width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box}.controls-left.svelte-1iedtj3.svelte-1iedtj3,.controls-right.svelte-1iedtj3.svelte-1iedtj3{display:flex;align-content:center}.controls-left.svelte-1iedtj3.svelte-1iedtj3{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-1iedtj3 > *:not(:first-child),.controls-right.svelte-1iedtj3 > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-1iedtj3.svelte-1iedtj3{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-1iedtj3.svelte-1iedtj3{transition:none}")}function ip(i,e,t){let n=i.slice();return n[201]=e[t],n[202]=e,n[203]=t,n}function np(i,e,t){let n=i.slice();return n[201]=e[t],n[204]=e,n[205]=t,n}function op(i){let e,t,n;function o(s){i[163](s,i[201])}let r={buttonComponent:i[201].buttonComponent,buttonComponentProps:i[201].buttonComponentProps,tooltipText:i[201].tooltipText,disabledTooltipContent:i[201].disabledTooltipContent,disabled:i[201].disabled,className:i[201].className};return i[10][i[201].id]!==void 0&&(r.ref=i[10][i[201].id]),e=new Ju({props:r}),we.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[201].buttonComponent),a[0]&2048&&(l.buttonComponentProps=i[201].buttonComponentProps),a[0]&2048&&(l.tooltipText=i[201].tooltipText),a[0]&2048&&(l.disabledTooltipContent=i[201].disabledTooltipContent),a[0]&2048&&(l.disabled=i[201].disabled),a[0]&2048&&(l.className=i[201].className),!t&&a[0]&3072&&(t=!0,l.ref=i[10][i[201].id],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function rp(i){let e,t,n;function o(s){i[164](s)}let r={isMobile:!1,showDuration:i[15],position:i[5]?i[33]:i[34],duration:i[5]?i[35]:i[36]};return i[10].time!==void 0&&(r.ref=i[10].time),e=new ll({props:r}),we.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 sp(i){let e,t;return e=new _l({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 j3(i){let e,t,n=i[8]&&sp(i);return{c(){n&&n.c(),e=Xe()},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=sp(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ue(),p(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function G3(i){let e,t,n;function o(s){i[168](s,i[201])}let r={id:i[201].id,testId:i[201].testId,icon:i[201].icon,ariaLabel:i[201].ariaLabel,tooltipText:i[201].tooltipText,disabledTooltipContent:i[201].disabledTooltipContent,disabled:!!i[201].disabled,onClick:i[201].onClick};return i[10][i[201].id]!==void 0&&(r.ref=i[10][i[201].id]),e=new $m({props:r}),we.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[201].id),a[0]&4096&&(l.testId=i[201].testId),a[0]&4096&&(l.icon=i[201].icon),a[0]&4096&&(l.ariaLabel=i[201].ariaLabel),a[0]&4096&&(l.tooltipText=i[201].tooltipText),a[0]&4096&&(l.disabledTooltipContent=i[201].disabledTooltipContent),a[0]&4096&&(l.disabled=!!i[201].disabled),a[0]&4096&&(l.onClick=i[201].onClick),!t&&a[0]&5120&&(t=!0,l.ref=i[10][i[201].id],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Y3(i){let e,t,n;function o(s){i[167](s,i[201])}let r={buttonComponent:i[201].buttonComponent,buttonComponentProps:i[201].buttonComponentProps,tooltipText:i[201].tooltipText,disabledTooltipContent:i[201].disabledTooltipContent,disabled:i[201].disabled,className:i[201].className};return i[10][i[201].id]!==void 0&&(r.ref=i[10][i[201].id]),e=new Ju({props:r}),we.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[201].buttonComponent),a[0]&4096&&(l.buttonComponentProps=i[201].buttonComponentProps),a[0]&4096&&(l.tooltipText=i[201].tooltipText),a[0]&4096&&(l.disabledTooltipContent=i[201].disabledTooltipContent),a[0]&4096&&(l.disabled=i[201].disabled),a[0]&4096&&(l.className=i[201].className),!t&&a[0]&5120&&(t=!0,l.ref=i[10][i[201].id],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function lp(i){let e,t,n,o,r,s=[Y3,G3],a=[];function l(u,c){return c[0]&4096&&(e=null),e==null&&(e=!!ep(u[201])),e?0:1}return t=l(i,[-1,-1,-1,-1,-1,-1,-1]),n=a[t]=s[t](i),{c(){n.c(),o=Xe()},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):(ue(),p(a[m],1,1,()=>{a[m]=null}),ce(),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 Q3(i){let e,t,n;function o(s){i[171](s)}let r={};return i[10].interactiveTimeIndicator!==void 0&&(r.ref=i[10].interactiveTimeIndicator),e=new Il({props:r}),we.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 Z3(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,T,C,A,S;function k(z){i[162](z)}let P={isHidden:!i[14],isAds:i[5],canRewindLive:i[6],isRewindableLive:i[13]};i[10].timeline!==void 0&&(P.ref=i[10].timeline),t=new pl({props:P}),we.push(()=>ze(t,"ref",k));let H=wt(i[11]),x=[];for(let z=0;z<H.length;z+=1)x[z]=op(np(i,H,z));let M=z=>p(x[z],1,1,()=>{x[z]=null}),Z=i[7]&&rp(i);function ae(z){i[165](z)}let Q={className:"w-max",disabled:!i[8],tooltipContent:j("tooltip_episodes"),$$slots:{default:[j3]},$$scope:{ctx:i}};i[10].episodes!==void 0&&(Q.ref=i[10].episodes),u=new $i({props:Q}),we.push(()=>ze(u,"ref",ae));let ee=wt(i[12]),W=[];for(let z=0;z<ee.length;z+=1)W[z]=lp(ip(i,ee,z));let q=z=>p(W[z],1,1,()=>{W[z]=null}),ve=i[67]&&Q3(i);return{c(){e=I("div"),R(t.$$.fragment),o=G(),r=I("div"),s=I("div");for(let z=0;z<x.length;z+=1)x[z].c();a=G(),Z&&Z.c(),l=G(),R(u.$$.fragment),h=G(),v=I("div");for(let z=0;z<W.length;z+=1)W[z].c();g=G(),ve&&ve.c(),T=Xe(),f(s,"class","controls-left svelte-1iedtj3"),f(v,"class","controls-right svelte-1iedtj3"),f(r,"class","controls svelte-1iedtj3"),f(e,"class","wrapper-bottom svelte-1iedtj3"),K(e,"hidden",i[2]),K(e,"controls-hidden",!i[4]),K(e,"no-smooth",i[3])},m(z,ie){w(z,e,ie),L(t,e,null),_(e,o),_(e,r),_(r,s);for(let U=0;U<x.length;U+=1)x[U]&&x[U].m(s,null);_(s,a),Z&&Z.m(s,null),_(s,l),L(u,s,null),_(r,h),_(r,v);for(let U=0;U<W.length;U+=1)W[U]&&W[U].m(v,null);i[169](r),i[170](e),w(z,g,ie),ve&&ve.m(z,ie),w(z,T,ie),C=!0,A||(S=[hr(m=Lr.call(null,s)),Te(s,"fd:resize",i[166])],A=!0)},p(z,ie){let U={};if(ie[0]&16384&&(U.isHidden=!z[14]),ie[0]&32&&(U.isAds=z[5]),ie[0]&64&&(U.canRewindLive=z[6]),ie[0]&8192&&(U.isRewindableLive=z[13]),!n&&ie[0]&1024&&(n=!0,U.ref=z[10].timeline,Ue(()=>n=!1)),t.$set(U),ie[0]&3072){H=wt(z[11]);let se;for(se=0;se<H.length;se+=1){let X=np(z,H,se);x[se]?(x[se].p(X,ie),d(x[se],1)):(x[se]=op(X),x[se].c(),d(x[se],1),x[se].m(s,a))}for(ue(),se=H.length;se<x.length;se+=1)M(se);ce()}z[7]?Z?(Z.p(z,ie),ie[0]&128&&d(Z,1)):(Z=rp(z),Z.c(),d(Z,1),Z.m(s,l)):Z&&(ue(),p(Z,1,1,()=>{Z=null}),ce());let pe={};if(ie[0]&256&&(pe.disabled=!z[8]),ie[0]&256|ie[1]&40|ie[6]&1048576&&(pe.$$scope={dirty:ie,ctx:z}),!c&&ie[0]&1024&&(c=!0,pe.ref=z[10].episodes,Ue(()=>c=!1)),u.$set(pe),ie[0]&5120){ee=wt(z[12]);let se;for(se=0;se<ee.length;se+=1){let X=ip(z,ee,se);W[se]?(W[se].p(X,ie),d(W[se],1)):(W[se]=lp(X),W[se].c(),d(W[se],1),W[se].m(v,null))}for(ue(),se=ee.length;se<W.length;se+=1)q(se);ce()}(!C||ie[0]&4)&&K(e,"hidden",z[2]),(!C||ie[0]&16)&&K(e,"controls-hidden",!z[4]),(!C||ie[0]&8)&&K(e,"no-smooth",z[3]),z[67]&&ve.p(z,ie)},i(z){if(!C){d(t.$$.fragment,z);for(let ie=0;ie<H.length;ie+=1)d(x[ie]);d(Z),d(u.$$.fragment,z);for(let ie=0;ie<ee.length;ie+=1)d(W[ie]);d(ve),C=!0}},o(z){p(t.$$.fragment,z),x=x.filter(Boolean);for(let ie=0;ie<x.length;ie+=1)p(x[ie]);p(Z),p(u.$$.fragment,z),W=W.filter(Boolean);for(let ie=0;ie<W.length;ie+=1)p(W[ie]);p(ve),C=!1},d(z){z&&(y(e),y(g),y(T)),V(t),ui(x,z),Z&&Z.d(),V(u),ui(W,z),i[169](null),i[170](null),ve&&ve.d(z),A=!1,ct(S)}}}function X3(i,e,t){var ws,Zr;let n,o,r,s,a,l,u,c,m,h,v,g,T,C,A,S,k,P,H,x,M,Z,ae,Q,ee,W,q,ve,z,ie,U,pe,se,X,re,oe,Ye,Fe,Pe,Se,Ae=_e,He=()=>(Ae(),Ae=Xt(Q,de=>t(133,Se=de)),Q),J,ge=_e,Ie=()=>(ge(),ge=Xt(ae,de=>t(134,J=de)),ae),Ge,nt=_e,lt=()=>(nt(),nt=Xt(Z,de=>t(135,Ge=de)),Z),ut,et=_e,me=()=>(et(),et=Xt(M,de=>t(136,ut=de)),M),tt,De=_e,st=()=>(De(),De=Xt(x,de=>t(137,tt=de)),x),Qe,he=_e,Ke=()=>(he(),he=Xt(H,de=>t(138,Qe=de)),H),ft,be=_e,pt=()=>(be(),be=Xt(P,de=>t(139,ft=de)),P),yt,Ze=_e,It=()=>(Ze(),Ze=Xt(k,de=>t(140,yt=de)),k),Rt,Ft=_e,ti=()=>(Ft(),Ft=Xt(S,de=>t(141,Rt=de)),S),Bt,Kt=_e,Gt=()=>(Kt(),Kt=Xt(A,de=>t(142,Bt=de)),A),Nt,ot=_e,St=()=>(ot(),ot=Xt(C,de=>t(143,Nt=de)),C),Lt,fe=_e,$e=()=>(fe(),fe=Xt(T,de=>t(144,Lt=de)),T),kt,ii=_e,Ut=()=>(ii(),ii=Xt(g,de=>t(145,kt=de)),g),Dt,ni=_e,zt=()=>(ni(),ni=Xt(v,de=>t(146,Dt=de)),v),di,Ti=_e,Di=()=>(Ti(),Ti=Xt(h,de=>t(147,di=de)),h),_i,vi=_e,yi=()=>(vi(),vi=Xt(m,de=>t(148,_i=de)),m),Ht,Ui=_e,qt=()=>(Ui(),Ui=Xt(c,de=>t(149,Ht=de)),c),ei,Ii,Zt,Pi,Ei,Me,rt,Wt,wi,Et,oi,Ot,ki,Cn,zi,pn,mi;i.$$.on_destroy.push(()=>Ae()),i.$$.on_destroy.push(()=>ge()),i.$$.on_destroy.push(()=>nt()),i.$$.on_destroy.push(()=>et()),i.$$.on_destroy.push(()=>De()),i.$$.on_destroy.push(()=>he()),i.$$.on_destroy.push(()=>be()),i.$$.on_destroy.push(()=>Ze()),i.$$.on_destroy.push(()=>Ft()),i.$$.on_destroy.push(()=>Kt()),i.$$.on_destroy.push(()=>ot()),i.$$.on_destroy.push(()=>fe()),i.$$.on_destroy.push(()=>ii()),i.$$.on_destroy.push(()=>ni()),i.$$.on_destroy.push(()=>Ti()),i.$$.on_destroy.push(()=>vi()),i.$$.on_destroy.push(()=>Ui());let{bottomHidden:Oi}=e,{bottomNoSmooth:Wi}=e,{showControls:tn}=e,{playerControlsWrapperRef:Fi=void 0}=e,{playerControlsRef:_n=void 0}=e,{isAds:ri=!1}=e,{canRewindLive:On}=e,{logoClickable:Ai}=e,{logoHidden:nn}=e,{logoTargetUrl:on=""}=e,{showNextPrevButtons:rn}=e,{nextButtonActive:Ki}=e,{prevButtonActive:ji}=e,{customFullscreenSupported:Mi=!0}=e,{toggleFullscreen:Ci}=e,{seekToInteractive:xi}=e,{playPrevChapter:si}=e,{fakeIsPlaying$:pi}=Bn();D(i,pi,de=>t(126,pe=de));let at=it(),Li=Bn(),jt=Mt(),hi=at.actions.internal.toggleMuted,Vi=at.actions.internal.togglePlay,sn=at.actions.internal.pause,hn=at.actions.internal.toggleSubtitle,Ri=(ws=at.callbacks)==null?void 0:ws.onAudioDoesNotExistHint,Gi=(Zr=at.callbacks)==null?void 0:Zr.onAudioDisabledHint,li=at.state.duration$;D(i,li,de=>t(36,mi=de));let je=at.state.positionWithScrubbing$;D(i,je,de=>t(34,zi=de));let gn=at.state.playbackState$;D(i,gn,de=>t(123,z=de));let ln=at.state.isAudioAvailable$;D(i,ln,de=>t(172,se=de));let Yi=at.state.isAudioDisabled,an=at.state.isEnded$;D(i,an,de=>t(158,Et=de));let Qi=at.state.isLive$;D(i,Qi,de=>t(152,Pi=de));let Zi=at.state.isActiveLive$;D(i,Zi,de=>t(151,Ii=de));let Yn=at.state.isRewindableLive$;D(i,Yn,de=>t(13,Zt=de));let Fn=at.ui.isPictureInPictureActive$;D(i,Fn,de=>t(154,Me=de));let gi=at.ui.pictureInPictureType$;D(i,gi,de=>t(153,Ei=de));let xn=at.ui.settingsMenu.visible$;D(i,xn,de=>t(122,ve=de));let bn=at.ui.settingsMenu.openedByBtnKeyboard$;D(i,bn,de=>t(128,re=de));let Sn=at.ui.controls,un=at.actions.internal.getVideoEpisodes(),cn=at.state.chromecastState$;D(i,cn,de=>t(120,W=de));let vn=at.state.availableSubtitlesList$;D(i,vn,de=>t(157,wi=de));let Hi=at.state.currentSubtitle$;D(i,Hi,de=>t(159,oi=de));let Xi=Sn.disabledControls$;D(i,Xi,de=>t(161,ki=de));let Hn=at.ui.contextMenu.visible$;D(i,Hn,de=>t(150,ei=de));let ro=at.ui.contextMenu.showContextMenuBtn$;D(i,ro,de=>t(155,rt=de));let so=at.ui.contextMenu.openedByBtnKeyboard$;D(i,so,de=>t(156,Wt=de));let ai=at.ui.startedByKeyboard$;D(i,ai,de=>t(127,X=de));let lo=at.ads.duration;D(i,lo,de=>t(35,pn=de));let ao=at.ads.position;D(i,ao,de=>t(33,Cn=de));let Qn=at.ads.playbackState;D(i,Qn,de=>t(160,Ot=de));let uo=at.ui.isFullscreen;D(i,uo,de=>t(121,q=de));let co=at.ui.playerSize;D(i,co,de=>t(131,Fe=de));let Zn=at.ui.currentGridType$;D(i,Zn,de=>t(132,Pe=de));let Xn=at.ui.additionalDesktopControlPanelRightButtons$;D(i,Xn,de=>t(119,ee=de));let Tn=at.actions.internal.getVideoElement,Jn=at.actions.internal.replayInteractive,yo=at.actions.internal.prevVideoClick,wo=at.actions.internal.nextVideoClick,qi=at.state.isInteractive,$n=at.state.isInteractiveTime$;D(i,$n,de=>t(130,Ye=de));let fn=at.state.showInteractiveGraph,te=at.state.showSeekToInteractive,Vt=at.state.showPlayPrevChapter,ne=at.state.showInteractiveTimeIndicator,yn=at.state.playPrevChapterDisabledTooltip,ko=Li.seekToInteractiveDisabledTooltip$;D(i,ko,de=>t(125,U=de));let Ji=Li.graphIsOpened$;D(i,Ji,de=>t(124,ie=de));let qn=jt.features.interactiveResponsiveUi,fo=()=>at.actions.internal.toggleChromecast(),Vo,eo,mo,In,to,po,Qo,Zo,Ro,Co,So,Bo,No,Pn,Xo,mr,En,Y,Pt,Bi,Si,_o,Un,zn="",Ur=(de,wn)=>{if(!de){t(101,zn=j("tooltip_live"));return}wn===bc.PAUSED&&t(101,zn=j("tooltip_play"))},An,Do,zr,Wr,Kr,Yt={},Mn,Jo,jr,gs,$l=W3(Sl,260),ea,Gr=Ne();D(i,Gr,de=>t(129,oe=de));let ta;function ia(){Wo({isAudioDisabled:Yi,audioDisabledHintCallback:Gi,isAudioAvailable:se,audioIsNotExistHintCallback:Ri})&&hi()}let na=qi?Jn:Vi,Oo,Yr,pr,dn=[],Ln=[];function bs(de){i.$$.not_equal(Yt.timeline,de)&&(Yt.timeline=de,t(10,Yt))}function Qr(de,wn){i.$$.not_equal(Yt[wn.id],de)&&(Yt[wn.id]=de,t(10,Yt))}function vs(de){i.$$.not_equal(Yt.time,de)&&(Yt.time=de,t(10,Yt))}function oa(de){i.$$.not_equal(Yt.episodes,de)&&(Yt.episodes=de,t(10,Yt))}let ys=de=>{t(9,Kr=de.target.clientWidth)};function ra(de,wn){i.$$.not_equal(Yt[wn.id],de)&&(Yt[wn.id]=de,t(10,Yt))}function sa(de,wn){i.$$.not_equal(Yt[wn.id],de)&&(Yt[wn.id]=de,t(10,Yt))}function la(de){we[de?"unshift":"push"](()=>{_n=de,t(1,_n)})}function aa(de){we[de?"unshift":"push"](()=>{Fi=de,t(0,Fi)})}function _r(de){i.$$.not_equal(Yt.interactiveTimeIndicator,de)&&(Yt.interactiveTimeIndicator=de,t(10,Yt))}return i.$$set=de=>{"bottomHidden"in de&&t(2,Oi=de.bottomHidden),"bottomNoSmooth"in de&&t(3,Wi=de.bottomNoSmooth),"showControls"in de&&t(4,tn=de.showControls),"playerControlsWrapperRef"in de&&t(0,Fi=de.playerControlsWrapperRef),"playerControlsRef"in de&&t(1,_n=de.playerControlsRef),"isAds"in de&&t(5,ri=de.isAds),"canRewindLive"in de&&t(6,On=de.canRewindLive),"logoClickable"in de&&t(71,Ai=de.logoClickable),"logoHidden"in de&&t(72,nn=de.logoHidden),"logoTargetUrl"in de&&t(73,on=de.logoTargetUrl),"showNextPrevButtons"in de&&t(74,rn=de.showNextPrevButtons),"nextButtonActive"in de&&t(75,Ki=de.nextButtonActive),"prevButtonActive"in de&&t(76,ji=de.prevButtonActive),"customFullscreenSupported"in de&&t(77,Mi=de.customFullscreenSupported),"toggleFullscreen"in de&&t(78,Ci=de.toggleFullscreen),"seekToInteractive"in de&&t(79,xi=de.seekToInteractive),"playPrevChapter"in de&&t(80,si=de.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&64&&t(117,n=ki.has("EPISODE_BUTTON")),i.$$.dirty[5]&64&&t(112,o=ki.has("GRAPH_BUTTON")),i.$$.dirty[5]&64&&t(113,r=ki.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[5]&64&&t(115,s=ki.has("PLAY_BUTTON")),i.$$.dirty[5]&64&&t(116,a=ki.has("REPLAY_BUTTON")),i.$$.dirty[5]&64&&t(114,l=ki.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[0]&32|i.$$.dirty[3]&1073741824|i.$$.dirty[5]&32&&t(81,Vo=ri?Ot==="playing":z===bc.PLAYING),i.$$.dirty[5]&16&&t(82,eo=oi.value!=="off"),i.$$.dirty[0]&32|i.$$.dirty[5]&8&&t(118,u=Et&&!ri||qi),i.$$.dirty[3]&33554432|i.$$.dirty[4]&256&&t(83,mo=qn?u&&bi(Pe,"m"):u),i.$$.dirty[0]&32|i.$$.dirty[5]&8&&t(84,In=!Et||qi||ri),i.$$.dirty[4]&256&&t(85,to=bi(Pe,"m")),i.$$.dirty[0]&32|i.$$.dirty[2]&12288|i.$$.dirty[4]&256&&t(86,po=rn&&bi(Pe,"m")&&!ri&&Ki),i.$$.dirty[0]&32|i.$$.dirty[2]&20480|i.$$.dirty[4]&256&&t(87,Qo=rn&&bi(Pe,"m")&&!ri&&ji),i.$$.dirty[0]&32|i.$$.dirty[4]&268435456&&t(88,Zo=!ri&&!!Pi),i.$$.dirty[3]&134217728|i.$$.dirty[4]&1610612992&&t(89,Ro=W!==tp.NOT_AVAILABLE&&!(Me&&Ei===1)&&bi(Pe,"m")&&!qi),i.$$.dirty[4]&256|i.$$.dirty[5]&4&&t(90,Co=wi.length>0&&bi(Pe,"m")),i.$$.dirty[5]&3&&t(91,So=Wt||rt),i.$$.dirty[0]&32|i.$$.dirty[4]&256&&t(92,Bo=bi(Pe,"s")&&!ri),i.$$.dirty[0]&32|i.$$.dirty[2]&1024&&t(93,No=!nn&&!ri),i.$$.dirty[2]&33792|i.$$.dirty[4]&1610612992&&t(94,Pn=jt.features.fullscreen&&(nn||bi(Pe,qn?"xs":"s"))&&!(Me&&Ei===1)&&(qi?Mi:!0)),i.$$.dirty[0]&32|i.$$.dirty[4]&268435456&&t(7,Xo=(!Pi||ri)&&!(jt.features.interactiveHideTime&&qi)),i.$$.dirty[4]&128&&t(14,mr=Fe.width>100),i.$$.dirty[4]&256&&t(95,En=fn&&bi(Pe,"m")),i.$$.dirty[4]&256&&t(96,Y=qn?te&&bi(Pe,"s"):te),i.$$.dirty[4]&256&&t(97,Pt=qn?Vt&&bi(Pe,"s"):Vt),i.$$.dirty[0]&32|i.$$.dirty[2]&8388608|i.$$.dirty[3]&16777216|i.$$.dirty[4]&268435456&&t(8,Bi=!ri&&!Pi&&!!(un!=null&&un.length)&&to&&!n),i.$$.dirty[0]&8192|i.$$.dirty[4]&134217728&&t(98,Si=!Zt||Ii),i.$$.dirty[4]&1&&t(99,_o=ie?j("tooltip_interactive_graph_on"):j("tooltip_interactive_graph_off")),i.$$.dirty[4]&67108864&&t(100,Un=ei?j("aria_label_context_menu_close"):j("aria_label_context_menu_open")),i.$$.dirty[3]&1073741856&&Ur(Si,z),i.$$.dirty[2]&1048576&&t(103,Do=eo?j("tooltip_subtitles_on"):j("tooltip_subtitles_off")),i.$$.dirty[3]&268435456&&t(104,zr=q?j("tooltip_fullscreen_on"):j("tooltip_fullscreen_off")),i.$$.dirty[3]&134217728&&t(105,Wr=W===tp.CONNECTED?j("tooltip_chromecast_on"):j("tooltip_chromecast_off")),i.$$.dirty[3]&67108864|i.$$.dirty[4]&67108352&&t(106,Mn={prevButton:Ht?Ht.right-Ht.left:0,replayButton:_i?_i.right-_i.left:0,playButton:di?di.right-di.left:0,nextButton:Dt?Dt.right-Dt.left:0,playPrevChapterButton:kt?kt.right-kt.left:0,seekToInteractiveButton:Lt?Lt.right-Lt.left:0,interactiveGraphButton:Nt?Nt.right-Nt.left:0,liveButton:Bt?Bt.right-Bt.left:0,time:Rt?Rt.right-Rt.left:0,episodes:yt?yt.right-yt.left:0,vkLogo:ft?ft.right-ft.left:0,volume:Qe?Qe.right-Qe.left:0,subtitles:tt?tt.right-tt.left:0,settings:ut?ut.right-ut.left:0,context:Ge?Ge.right-Ge.left:0,fullscreen:J?J.right-J.left:0,chromecast:Se?Se.right-Se.left:0,additionalButtons:ee.length?ee.reduce(de=>[...de,40],[]):[]}),i.$$.dirty[3]&24576&&(!Jo||Jo<Mn.time)&&t(107,Jo=Mn.time),i.$$.dirty[0]&896|i.$$.dirty[3]&24576|i.$$.dirty[4]&256){let de=0;Bi&&(bi(Pe,"xl")?de=Mn.time:de=60);let wn=Mn.prevButton+Mn.playButton+Mn.nextButton+Mn.seekToInteractiveButton+Mn.interactiveGraphButton+Mn.liveButton+Jo+de;t(108,jr=Xo&&Kr>=wn)}i.$$.dirty[3]&32768|i.$$.dirty[4]&256&&t(15,gs=jr&&bi(Pe,"m")),i.$$.dirty[0]&1040|i.$$.dirty[4]&192&&$l(Tn(),Sn,Yt,tn),i.$$.dirty[3]&536870912|i.$$.dirty[4]&32&&oe&&Pr(oe,ve,bn),i.$$.dirty[3]&536870912|i.$$.dirty[4]&16&&bo(ea,ve,re),i.$$.dirty[4]&8&&Tl(ai,X,ta),i.$$.dirty[4]&4&&t(109,Oo=pe!==null),i.$$.dirty[2]&524288|i.$$.dirty[3]&65536|i.$$.dirty[4]&4&&t(110,Yr=Oo?pe:Vo),i.$$.dirty[3]&131072&&t(111,pr=Yr?j("tooltip_pause"):j("tooltip_play")),i.$$.dirty[0]&2048|i.$$.dirty[2]&124674048|i.$$.dirty[3]&1090257276|i.$$.dirty[4]&3&&(t(11,dn=[]),Qo&&dn.push({id:"prevButton",type:"desktop-control-panel-left",weight:Lo.prevButton,buttonComponent:Or,buttonComponentProps:{disabled:!ji,type:"prev",click:yo.bind(null,!0)},tooltipText:j("tooltip_previous"),disabled:!ji}),mo&&dn.push({id:"replayButton",type:"desktop-control-panel-left",weight:Lo.replayButton,buttonComponent:as,buttonComponentProps:{disabled:a,click:na},tooltipText:j("tooltip_restart"),disabled:a}),In&&dn.push({id:"playButton",type:"desktop-control-panel-left",weight:Lo.playButton,buttonComponent:us,buttonComponentProps:{disabled:s,isPlaying:Vo,click:Vi},tooltipText:pr,disabled:s}),po&&dn.push({id:"nextButton",type:"desktop-control-panel-left",weight:Lo.nextButton,buttonComponent:Or,buttonComponentProps:{disabled:!Ki,type:"next",click:wo.bind(null,!0)},tooltipText:j("tooltip_next"),disabled:!Ki}),qi&&(Pt&&dn.push({id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Lo.playPrevChapterButton,buttonComponent:El,buttonComponentProps:{disabled:l,click:si},tooltipText:j("tooltip_interactive_go_back"),disabledTooltipContent:j(yn),disabled:l}),Y&&dn.push({id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Lo.seekToInteractiveButton,buttonComponent:Al,buttonComponentProps:{disabled:r,click:xi},tooltipText:j("tooltip_interactive_seek"),disabled:r,disabledTooltipContent:j(U)}),En&&dn.push({id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Lo.interactiveGraphButton,buttonComponent:Ml,buttonComponentProps:{disabled:o,click:Ji.toggle,graphIsOpened:ie},tooltipText:_o})),Zo&&dn.push({id:"liveButton",type:"desktop-control-panel-left",weight:Lo.liveButton,buttonComponent:Ll,buttonComponentProps:{isLiveActive:Si,ariaLabel:zn},tooltipText:zn,disabled:Si&&z===bc.PLAYING}),t(11,dn=dn.sort(ar))),i.$$.dirty[0]&4096|i.$$.dirty[2]&2014382592|i.$$.dirty[3]&1006640771&&(t(12,Ln=[]),No&&Ln.push({id:"vkLogo",type:"desktop-control-panel-right",weight:Yo.vkLogo,buttonComponent:cl,buttonComponentProps:{targetUrl:on,logoClickable:Ai,click:sn},tooltipText:An,disabledTooltipContent:"",disabled:!Ai}),Ln.push({id:"volume",type:"desktop-control-panel-right",weight:Yo.volume,buttonComponent:hm,buttonComponentProps:{click:ia}}),Co&&Ln.push({id:"subtitles",type:"desktop-control-panel-right",weight:Yo.subtitles,buttonComponent:em,buttonComponentProps:{isSubtitlesEnabled:eo,click:hn},tooltipText:Do}),Bo&&Ln.push({id:"settings",type:"desktop-control-panel-right",weight:Yo.settings,buttonComponent:rs,buttonComponentProps:{ref$:Gr},tooltipText:ve?void 0:j("tooltip_settings_off")}),jt.features.contextMenuButton&&Ln.push({id:"context",type:"desktop-control-panel-right",weight:Yo.context,buttonComponent:Um,buttonComponentProps:{click:Ci},className:So?"":"out-of-view",tooltipText:Un}),Pn&&Ln.push({id:"fullscreen",type:"desktop-control-panel-right",weight:Yo.fullscreen,buttonComponent:ul,buttonComponentProps:{isFullscreen:q,click:Ci},tooltipText:zr}),Ro&&Ln.push({id:"chromecast",type:"desktop-control-panel-right",weight:Yo.chromecast,buttonComponent:fl,buttonComponentProps:{state:W,click:fo},tooltipText:Wr}),t(12,Ln=[...Ln,...ee].sort(ar)))},t(102,An=jt.logoType==="vk_video"?j("tooltip_vk_video_logo"):j("tooltip_vk_logo")),qt(t(32,{prevButton:c,replayButton:m,playButton:h,nextButton:v,playPrevChapterButton:g,seekToInteractiveButton:T,interactiveGraphButton:C,liveButton:A,time:S,episodes:k,vkLogo:P,volume:H,subtitles:x,settings:M,context:Z,fullscreen:ae,chromecast:Q}=Sn,c,yi(t(31,m)),Di(t(30,h)),zt(t(29,v)),Ut(t(28,g)),$e(t(27,T)),St(t(26,C)),Gt(t(25,A)),ti(t(24,S)),It(t(23,k)),pt(t(22,P)),Ke(t(21,H)),st(t(20,x)),me(t(19,M)),lt(t(18,Z)),Ie(t(17,ae)),He(t(16,Q)))),[Fi,_n,Oi,Wi,tn,ri,On,Xo,Bi,Kr,Yt,dn,Ln,Zt,mr,gs,Q,ae,Z,M,x,H,P,k,S,A,C,T,g,v,h,m,c,Cn,zi,pn,mi,pi,li,je,gn,ln,an,Qi,Zi,Yn,Fn,gi,xn,bn,un,cn,vn,Hi,Xi,Hn,ro,so,ai,lo,ao,Qn,uo,co,Zn,Xn,$n,ne,ko,Ji,Gr,Ai,nn,on,rn,Ki,ji,Mi,Ci,xi,si,Vo,eo,mo,In,to,po,Qo,Zo,Ro,Co,So,Bo,No,Pn,En,Y,Pt,Si,_o,Un,zn,An,Do,zr,Wr,Mn,Jo,jr,Oo,Yr,pr,o,r,l,s,a,n,u,ee,W,q,ve,z,ie,U,pe,X,re,oe,Ye,Fe,Pe,Se,J,Ge,ut,tt,Qe,ft,yt,Rt,Bt,Nt,Lt,kt,Dt,di,_i,Ht,ei,Ii,Pi,Ei,Me,rt,Wt,wi,Et,oi,Ot,ki,bs,Qr,vs,oa,ys,ra,sa,la,aa,_r]}var vc=class extends O{constructor(e){super(),F(this,e,X3,Z3,N,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:71,logoHidden:72,logoTargetUrl:73,showNextPrevButtons:74,nextButtonActive:75,prevButtonActive:76,customFullscreenSupported:77,toggleFullscreen:78,seekToInteractive:79,playPrevChapter:80},K3,[-1,-1,-1,-1,-1,-1,-1])}},ap=vc;import{ChromecastState as gp,PlaybackState as bp}from"@vkontakte/videoplayer-core/es2018";import{noop as up}from"@vkontakte/videoplayer-shared/es2018";function J3(i){ye(i,"svelte-1aqpg2x",".icon.svelte-1aqpg2x{width:24px !important;height:24px !important;;}.inner.svelte-1aqpg2x{width:16px;height:16px;background-color:var(--white)}")}function $3(i){let e,t,n,o;return{c(){e=I("img"),f(e,"class","icon svelte-1aqpg2x"),To(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){w(r,e,s),n||(o=Te(e,"error",i[7]),n=!0)},p(r,s){s&1&&!To(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&y(e),n=!1,o()}}}function e5(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:_e,d(t){t&&y(e)}}}function t5(i){let e;function t(r,s){return r[5]?e5:$3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Xe()},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 i5(i){let e,t;return e=new bt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[t5]},$$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 n5(i,e,t){let n,o,r,{iconUrl:s}=e,{ariaLabel:a}=e,{disabled:l=!1}=e,{testId:u}=e,{onClick:c=up}=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===up),i.$$.dirty&272&&t(6,o=n||l)},t(5,r=!1),[s,a,u,c,n,r,o,m,l]}var wc=class extends O{constructor(e){super(),F(this,e,n5,i5,N,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},J3)}},cp=wc;function o5(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=le(u,l[c]);return{c(){e=B("svg"),a&&a.c(),t=B("g"),n=B("path"),o=B("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"d","M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),Ce(e,u)},m(c,m){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),Ce(e,u=xe(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 r5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var kc=class extends O{constructor(e){super(),F(this,e,r5,o5,N,{})}},fp=kc;import{noop as s5}from"@vkontakte/videoplayer-shared/es2018";function l5(i){ye(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 dp(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 a5(i){let e,t,n,o;var r=i[4];function s(l,u){return{}}r&&(t=xt(r,s(i)));let a=i[1]&&dp(i);return{c(){e=I("div"),t&&R(t.$$.fragment),n=G(),a&&a.c(),f(e,"class","container svelte-6gmlbk"),f(e,"aria-hidden","true"),K(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){ue();let c=t;p(c.$$.fragment,1,0,()=>{V(c,1)}),ce()}r?(t=xt(r,s(l,u)),R(t.$$.fragment),d(t.$$.fragment,1),L(t,e,n)):t=null}l[1]?a||(a=dp(l),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&K(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 u5(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:[a5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),we.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 c5(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=s5}=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?cr:fp)},[s,o,r,a,l,n,u]}var Cc=class extends O{constructor(e){super(),F(this,e,c5,u5,N,{muted:5,expanded:1,click:2,ref:0},l5)}},Sc=Cc;function f5(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=le(u,l[c]);return{c(){e=B("svg"),a&&a.c(),t=B("path"),n=B("path"),o=B("path"),f(t,"fill","currentColor"),f(t,"d","M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z"),f(t,"clip-rule","evenodd"),f(n,"fill","currentColor"),f(n,"d","m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z"),f(n,"class","hidden-not-active"),f(o,"fill","currentColor"),f(o,"d","m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z"),f(o,"class","hidden-active"),Ce(e,u)},m(c,m){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),Ce(e,u=xe(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 d5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var Tc=class extends O{constructor(e){super(),F(this,e,d5,f5,N,{})}},mp=Tc;function m5(i){ye(i,"svelte-tmam00",'svg[data-testid="pip-icon--active"] .hidden-active,svg[data-testid="pip-icon"] .hidden-not-active{visibility:hidden;opacity:0}')}function p5(i){let e,t;return e=new mp({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 _5(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 Ic=class extends O{constructor(e){super(),F(this,e,_5,p5,N,{isActive:0},m5)}},pp=Ic;import{noop as h5}from"@vkontakte/videoplayer-shared/es2018";function g5(i){let e,t;return e=new pp({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 b5(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:[g5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),we.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 v5(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=h5}=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 Pc=class extends O{constructor(e){super(),F(this,e,v5,b5,N,{ref:0,isPictureInPictureActive:1,click:2})}},_p=Pc;function y5(i){ye(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 w5(i){let e,t;return e=new Fr({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 k5(i){let e,t;return e=new Go({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 C5(i){let e,t,n,o,r,s=[k5,w5],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"),K(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&&(ue(),p(a[m],1,1,()=>{a[m]=null}),ce(),o=a[n],o||(o=a[n]=s[n](u),o.c()),d(o,1),o.m(t,null)),(!r||c&2)&&K(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 S5(i){let e,t,n;function o(s){i[4](s)}let r={click:i[3],$$slots:{default:[C5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),we.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 T5(i,e,t){let n,{ref:o=void 0}=e,r=it(),s=r.ui.autoplayNextEnabled$;D(i,s,c=>t(1,n=c));let a=r.actions.internal.setAutoplayNextEnabled;function l(){a(!n,!0)}function u(c){o=c,t(0,o)}return i.$$set=c=>{"ref"in c&&t(0,o=c.ref)},[o,n,s,l,u]}var Ec=class extends O{constructor(e){super(),F(this,e,T5,S5,N,{ref:0},y5)}},hp=Ec;import{debounceFn as I5}from"@vkontakte/videoplayer-shared/es2018";function P5(i){ye(i,"svelte-1afsgkw",".wrapper-bottom.svelte-1afsgkw.svelte-1afsgkw{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px}.wrapper-bottom.svelte-1afsgkw>.svelte-1afsgkw{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-1afsgkw.svelte-1afsgkw{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-1afsgkw.svelte-1afsgkw{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index)}.wrapper-top-right.svelte-1afsgkw.svelte-1afsgkw{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index)}.wrapper-top-left.svelte-1afsgkw.svelte-1afsgkw{position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index)}.wrapper-middle-left.svelte-1afsgkw.svelte-1afsgkw,.wrapper-middle-left-second.svelte-1afsgkw.svelte-1afsgkw,.wrapper-middle-right.svelte-1afsgkw.svelte-1afsgkw{position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.wrapper-middle-left.svelte-1afsgkw.svelte-1afsgkw{left:12px}.wrapper-middle-left-second.svelte-1afsgkw.svelte-1afsgkw{left:64px}.wrapper-middle-right.svelte-1afsgkw.svelte-1afsgkw{right:12px}.controls.svelte-1afsgkw.svelte-1afsgkw{width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box}.controls.svelte-1afsgkw > *:not(:first-child){margin-left:8px}.hidden.svelte-1afsgkw.svelte-1afsgkw{visibility:hidden;opacity:0}.controls-hidden.svelte-1afsgkw.svelte-1afsgkw{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-1afsgkw.svelte-1afsgkw{transition:none}.overlay-mobile.svelte-1afsgkw.svelte-1afsgkw{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration)}@media screen and (orientation: portrait){.wrapper-top-right.fullscreen.svelte-1afsgkw.svelte-1afsgkw{top:16px}.wrapper-top-left.fullscreen.svelte-1afsgkw.svelte-1afsgkw{top:16px}.controls-wrapper.fullscreen.svelte-1afsgkw.svelte-1afsgkw{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-1afsgkw.svelte-1afsgkw{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-1afsgkw.svelte-1afsgkw{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-1afsgkw.svelte-1afsgkw{left:44px}.wrapper-middle-left-second.fullscreen.svelte-1afsgkw.svelte-1afsgkw{left:96px}.wrapper-middle-right.fullscreen.svelte-1afsgkw.svelte-1afsgkw{right:44px}.controls-wrapper.fullscreen.svelte-1afsgkw.svelte-1afsgkw{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function vp(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 yp(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,T,C,A,S,k=(!i[47]||i[49])&&wp(i),P=wt(i[52]),H=[];for(let U=0;U<P.length;U+=1)H[U]=kp(vp(i,P,U));let x=U=>p(H[U],1,1,()=>{H[U]=null}),M=i[9]&&!i[11]&&Cp(i),Z=i[32]&&Sp(i),ae=i[33]&&Tp(i),Q=i[53]&&Ip(i),ee=i[35]&&Pp(i),W=i[29]&&Ep(i),q=i[28]&&Ap(i),ve=i[27]&&Mp(i),z=i[30]&&Lp(i),ie=i[95]&&!i[23]&&Vp(i);return{c(){e=I("div"),t=G(),n=I("div"),k&&k.c(),o=G(),r=I("div");for(let U=0;U<H.length;U+=1)H[U].c();s=G(),M&&M.c(),a=G(),Z&&Z.c(),l=G(),ae&&ae.c(),u=G(),Q&&Q.c(),c=G(),ee&&ee.c(),m=G(),h=I("div"),W&&W.c(),v=G(),q&&q.c(),g=G(),ve&&ve.c(),T=G(),z&&z.c(),C=G(),ie&&ie.c(),A=Xe(),f(e,"class","overlay-mobile svelte-1afsgkw"),K(e,"hidden",!i[38]),f(n,"class","wrapper-top-left svelte-1afsgkw"),K(n,"hidden",!i[4]),K(n,"fullscreen",i[48]),f(r,"class","wrapper-top-right svelte-1afsgkw"),K(r,"hidden",!i[4]&&!i[21]),K(r,"fullscreen",i[48]),f(h,"class","wrapper-middle svelte-1afsgkw"),K(h,"hidden",!i[4]||i[23]||i[12]&&i[10])},m(U,pe){w(U,e,pe),w(U,t,pe),w(U,n,pe),k&&k.m(n,null),w(U,o,pe),w(U,r,pe);for(let se=0;se<H.length;se+=1)H[se]&&H[se].m(r,null);_(r,s),M&&M.m(r,null),_(r,a),Z&&Z.m(r,null),_(r,l),ae&&ae.m(r,null),_(r,u),Q&&Q.m(r,null),_(r,c),ee&&ee.m(r,null),w(U,m,pe),w(U,h,pe),W&&W.m(h,null),_(h,v),q&&q.m(h,null),_(h,g),ve&&ve.m(h,null),_(h,T),z&&z.m(h,null),w(U,C,pe),ie&&ie.m(U,pe),w(U,A,pe),S=!0},p(U,pe){if((!S||pe[1]&128)&&K(e,"hidden",!U[38]),!U[47]||U[49]?k?(k.p(U,pe),pe[1]&327680&&d(k,1)):(k=wp(U),k.c(),d(k,1),k.m(n,null)):k&&(ue(),p(k,1,1,()=>{k=null}),ce()),(!S||pe[0]&16)&&K(n,"hidden",!U[4]),(!S||pe[1]&131072)&&K(n,"fullscreen",U[48]),pe[1]&2097152){P=wt(U[52]);let se;for(se=0;se<P.length;se+=1){let X=vp(U,P,se);H[se]?(H[se].p(X,pe),d(H[se],1)):(H[se]=kp(X),H[se].c(),d(H[se],1),H[se].m(r,s))}for(ue(),se=P.length;se<H.length;se+=1)x(se);ce()}U[9]&&!U[11]?M?(M.p(U,pe),pe[0]&2560&&d(M,1)):(M=Cp(U),M.c(),d(M,1),M.m(r,a)):M&&(ue(),p(M,1,1,()=>{M=null}),ce()),U[32]?Z?(Z.p(U,pe),pe[1]&2&&d(Z,1)):(Z=Sp(U),Z.c(),d(Z,1),Z.m(r,l)):Z&&(ue(),p(Z,1,1,()=>{Z=null}),ce()),U[33]?ae?(ae.p(U,pe),pe[1]&4&&d(ae,1)):(ae=Tp(U),ae.c(),d(ae,1),ae.m(r,u)):ae&&(ue(),p(ae,1,1,()=>{ae=null}),ce()),U[53]?Q?(Q.p(U,pe),pe[1]&4194304&&d(Q,1)):(Q=Ip(U),Q.c(),d(Q,1),Q.m(r,c)):Q&&(ue(),p(Q,1,1,()=>{Q=null}),ce()),U[35]?ee?(ee.p(U,pe),pe[1]&16&&d(ee,1)):(ee=Pp(U),ee.c(),d(ee,1),ee.m(r,null)):ee&&(ue(),p(ee,1,1,()=>{ee=null}),ce()),(!S||pe[0]&2097168)&&K(r,"hidden",!U[4]&&!U[21]),(!S||pe[1]&131072)&&K(r,"fullscreen",U[48]),U[29]?W?(W.p(U,pe),pe[0]&536870912&&d(W,1)):(W=Ep(U),W.c(),d(W,1),W.m(h,v)):W&&(ue(),p(W,1,1,()=>{W=null}),ce()),U[28]?q?(q.p(U,pe),pe[0]&268435456&&d(q,1)):(q=Ap(U),q.c(),d(q,1),q.m(h,g)):q&&(ue(),p(q,1,1,()=>{q=null}),ce()),U[27]?ve?(ve.p(U,pe),pe[0]&134217728&&d(ve,1)):(ve=Mp(U),ve.c(),d(ve,1),ve.m(h,T)):ve&&(ue(),p(ve,1,1,()=>{ve=null}),ce()),U[30]?z?(z.p(U,pe),pe[0]&1073741824&&d(z,1)):(z=Lp(U),z.c(),d(z,1),z.m(h,null)):z&&(ue(),p(z,1,1,()=>{z=null}),ce()),(!S||pe[0]&8393744)&&K(h,"hidden",!U[4]||U[23]||U[12]&&U[10]),U[95]&&!U[23]?ie?(ie.p(U,pe),pe[0]&8388608&&d(ie,1)):(ie=Vp(U),ie.c(),d(ie,1),ie.m(A.parentNode,A)):ie&&(ue(),p(ie,1,1,()=>{ie=null}),ce())},i(U){if(!S){d(k);for(let pe=0;pe<P.length;pe+=1)d(H[pe]);d(M),d(Z),d(ae),d(Q),d(ee),d(W),d(q),d(ve),d(z),d(ie),S=!0}},o(U){p(k),H=H.filter(Boolean);for(let pe=0;pe<H.length;pe+=1)p(H[pe]);p(M),p(Z),p(ae),p(Q),p(ee),p(W),p(q),p(ve),p(z),p(ie),S=!1},d(U){U&&(y(e),y(t),y(n),y(o),y(r),y(m),y(h),y(C),y(A)),k&&k.d(),ui(H,U),M&&M.d(),Z&&Z.d(),ae&&ae.d(),Q&&Q.d(),ee&&ee.d(),W&&W.d(),q&&q.d(),ve&&ve.d(),z&&z.d(),ie&&ie.d(U)}}}function wp(i){let e,t,n;function o(s){i[131](s)}let r={muted:i[50],expanded:i[47]&&!i[68]&&i[51],click:i[104]};return i[17].volume!==void 0&&(r.ref=i[17].volume),e=new Sc({props:r}),we.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]&524288&&(l.muted=s[50]),a[1]&1114112&&(l.expanded=s[47]&&!s[68]&&s[51]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].volume,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function kp(i){var n;let e,t;return e=new cp({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]&2097152&&(s.iconUrl=o[171]),r[1]&2097152&&(s.ariaLabel=(a=o[172])!=null?a:o[175]),r[1]&2097152&&(s.testId=o[173]),r[1]&2097152&&(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 Cp(i){let e,t,n;function o(s){i[132](s)}let r={};return i[17].autoplayNextToggle!==void 0&&(r.ref=i[17].autoplayNextToggle),e=new hp({props:r}),we.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]&131072&&(t=!0,l.ref=s[17].autoplayNextToggle,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Sp(i){let e,t,n;function o(s){i[133](s)}let r={isMobile:!0,click:i[102],state:i[22]};return i[17].chromecast!==void 0&&(r.ref=i[17].chromecast),e=new fl({props:r}),we.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]&4194304&&(l.state=s[22]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].chromecast,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Tp(i){let e,t,n;function o(s){i[134](s)}let r={click:i[103],isPictureInPictureActive:i[20]};return i[17].pip!==void 0&&(r.ref=i[17].pip),e=new _p({props:r}),we.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]&1048576&&(l.isPictureInPictureActive=s[20]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].pip,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Ip(i){let e,t;return e=new rs({props:{ref$:i[105]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:_e,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Pp(i){let e,t,n;function o(s){i[135](s)}let r={click:i[60],targetUrl:i[8],logoClickable:i[7]};return i[17].vkLogo!==void 0&&(r.ref=i[17].vkLogo),e=new cl({props:r}),we.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]&131072&&(t=!0,l.ref=s[17].vkLogo,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Ep(i){let e,t,n;function o(s){i[136](s)}let r={click:i[61].bind(null,!0),type:"prev",isMobile:!0};return i[17].prevButton!==void 0&&(r.ref=i[17].prevButton),e=new Or({props:r}),we.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]&131072&&(t=!0,l.ref=s[17].prevButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Ap(i){let e,t,n;function o(s){i[137](s)}let r={disabled:i[45],click:i[59],isMobile:!0,isPlaying:i[25]};return i[17].playButton!==void 0&&(r.ref=i[17].playButton),e=new us({props:r}),we.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]&16384&&(l.disabled=s[45]),a[0]&33554432&&(l.isPlaying=s[25]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].playButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Mp(i){let e,t,n;function o(s){i[138](s)}let r={disabled:i[44],click:i[59],isMobile:!0};return i[17].replayButton!==void 0&&(r.ref=i[17].replayButton),e=new as({props:r}),we.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]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].replayButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Lp(i){let e,t,n;function o(s){i[139](s)}let r={click:i[62].bind(null,!0),type:"next",isMobile:!0};return i[17].nextButton!==void 0&&(r.ref=i[17].nextButton),e=new Or({props:r}),we.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]&131072&&(t=!0,l.ref=s[17].nextButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Vp(i){let e,t,n,o,r=i[98]&&E5(i),s=i[40]&&Rp(i),a=i[97]&&A5(i);return{c(){r&&r.c(),e=G(),s&&s.c(),t=G(),a&&a.c(),n=Xe()},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[98]&&r.p(l,u),l[40]?s?(s.p(l,u),u[1]&512&&d(s,1)):(s=Rp(l),s.c(),d(s,1),s.m(t.parentNode,t)):s&&(ue(),p(s,1,1,()=>{s=null}),ce()),l[97]&&a.p(l,u)},i(l){o||(d(r),d(s),d(a),o=!0)},o(l){p(r),p(s),p(a),o=!1},d(l){l&&(y(e),y(t),y(n)),r&&r.d(l),s&&s.d(l),a&&a.d(l)}}}function E5(i){let e,t,n,o,r,s;function a(u){i[140](u)}let l={hidden:!i[4],disabled:i[43],click:i[15]};return i[17].playPrevChapterButton!==void 0&&(l.ref=i[17].playPrevChapterButton),t=new El({props:l}),we.push(()=>ze(t,"ref",a)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","wrapper-middle-left svelte-1afsgkw"),K(e,"fullscreen",i[48]),K(e,"hidden",!i[4])},m(u,c){w(u,e,c),L(t,e,null),o=!0,r||(s=Te(e,"click",i[106]),r=!0)},p(u,c){let m={};c[0]&16&&(m.hidden=!u[4]),c[1]&4096&&(m.disabled=u[43]),c[0]&32768&&(m.click=u[15]),!n&&c[0]&131072&&(n=!0,m.ref=u[17].playPrevChapterButton,Ue(()=>n=!1)),t.$set(m),(!o||c[1]&131072)&&K(e,"fullscreen",u[48]),(!o||c[0]&16)&&K(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 Rp(i){let e,t,n,o,r;function s(l){i[141](l)}let a={hidden:!i[4]&&!i[54],disabled:i[46],click:i[101].toggle,graphIsOpened:i[54]};return i[17].interactiveGraphButton!==void 0&&(a.ref=i[17].interactiveGraphButton),t=new Ml({props:a}),we.push(()=>ze(t,"ref",s)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class",o=zf(i[98]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-1afsgkw"),K(e,"fullscreen",i[48]),K(e,"hidden",!i[4]&&!i[54])},m(l,u){w(l,e,u),L(t,e,null),r=!0},p(l,u){let c={};u[0]&16|u[1]&8388608&&(c.hidden=!l[4]&&!l[54]),u[1]&32768&&(c.disabled=l[46]),u[1]&8388608&&(c.graphIsOpened=l[54]),!n&&u[0]&131072&&(n=!0,c.ref=l[17].interactiveGraphButton,Ue(()=>n=!1)),t.$set(c),(!r||u[1]&131072)&&K(e,"fullscreen",l[48]),(!r||u[0]&16|u[1]&8388608)&&K(e,"hidden",!l[4]&&!l[54])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){p(t.$$.fragment,l),r=!1},d(l){l&&y(e),V(t)}}}function A5(i){let e,t,n,o,r,s;function a(u){i[142](u)}let l={hidden:!i[4],disabled:i[42],click:i[14]};return i[17].seekToInteractiveButton!==void 0&&(l.ref=i[17].seekToInteractiveButton),t=new Al({props:l}),we.push(()=>ze(t,"ref",a)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","wrapper-middle-right svelte-1afsgkw"),K(e,"fullscreen",i[48]),K(e,"hidden",!i[4])},m(u,c){w(u,e,c),L(t,e,null),o=!0,r||(s=Te(e,"click",i[107]),r=!0)},p(u,c){let m={};c[0]&16&&(m.hidden=!u[4]),c[1]&2048&&(m.disabled=u[42]),c[0]&16384&&(m.click=u[14]),!n&&c[0]&131072&&(n=!0,m.ref=u[17].seekToInteractiveButton,Ue(()=>n=!1)),t.$set(m),(!o||c[1]&131072)&&K(e,"fullscreen",u[48]),(!o||c[0]&16)&&K(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,s=i[49]&&Np(i),a=i[26]&&Dp(i);return o=new ml({props:{position:i[55],duration:i[56]}}),{c(){s&&s.c(),e=G(),a&&a.c(),t=G(),n=I("div"),R(o.$$.fragment),f(n,"class","wrapper-bottom ads-timeline-mobile svelte-1afsgkw"),K(n,"fullscreen",i[48])},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[49]?s?(s.p(l,u),u[1]&262144&&d(s,1)):(s=Np(l),s.c(),d(s,1),s.m(e.parentNode,e)):s&&(ue(),p(s,1,1,()=>{s=null}),ce()),l[26]?a?(a.p(l,u),u[0]&67108864&&d(a,1)):(a=Dp(l),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(ue(),p(a,1,1,()=>{a=null}),ce());let c={};u[1]&16777216&&(c.position=l[55]),u[1]&33554432&&(c.duration=l[56]),o.$set(c),(!r||u[1]&131072)&&K(n,"fullscreen",l[48])},i(l){r||(d(s),d(a),d(o.$$.fragment,l),r=!0)},o(l){p(s),p(a),p(o.$$.fragment,l),r=!1},d(l){l&&(y(e),y(t),y(n)),s&&s.d(l),a&&a.d(l),V(o)}}}function Np(i){let e,t,n,o;function r(a){i[143](a)}let s={muted:i[50],expanded:!1,click:i[104]};return i[17].volume!==void 0&&(s.ref=i[17].volume),t=new Sc({props:s}),we.push(()=>ze(t,"ref",r)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","wrapper-top-right svelte-1afsgkw"),K(e,"fullscreen",i[48])},m(a,l){w(a,e,l),L(t,e,null),o=!0},p(a,l){let u={};l[1]&524288&&(u.muted=a[50]),!n&&l[0]&131072&&(n=!0,u.ref=a[17].volume,Ue(()=>n=!1)),t.$set(u),(!o||l[1]&131072)&&K(e,"fullscreen",a[48])},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 Dp(i){let e,t,n,o;function r(a){i[144](a)}let s={disabled:i[45],click:i[59],isMobile:!0,isPlaying:!i[26]};return i[17].playButton!==void 0&&(s.ref=i[17].playButton),t=new us({props:s}),we.push(()=>ze(t,"ref",r)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","wrapper-middle svelte-1afsgkw")},m(a,l){w(a,e,l),L(t,e,null),o=!0},p(a,l){let u={};l[1]&16384&&(u.disabled=a[45]),l[0]&67108864&&(u.isPlaying=!a[26]),!n&&l[0]&131072&&(n=!0,u.ref=a[17].playButton,Ue(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&y(e),V(t)}}}function M5(i){let e,t,n;function o(s){i[145](s)}let r={disabled:i[44],$$slots:{default:[L5]},$$scope:{ctx:i}};return i[17].replayButton!==void 0&&(r.ref=i[17].replayButton),e=new $i({props:r}),we.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[1]&8192|a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&131072&&(t=!0,l.ref=s[17].replayButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function L5(i){let e,t;return e=new as({props:{disabled:i[44],click:i[94]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&8192&&(r.disabled=n[44]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Op(i){let e,t,n;function o(s){i[146](s)}let r={$$slots:{default:[V5]},$$scope:{ctx:i}};return i[17].liveButton!==void 0&&(r.ref=i[17].liveButton),e=new $i({props:r}),we.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]&65536|a[1]&1024|a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&131072&&(t=!0,l.ref=s[17].liveButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function V5(i){let e,t;return e=new Ll({props:{isLiveActive:i[16],isMobile:!0,ariaLabel:i[41]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&65536&&(r.isLiveActive=n[16]),o[1]&1024&&(r.ariaLabel=n[41]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Fp(i){let e,t,n;function o(s){i[147](s)}let r={showDuration:i[31],position:i[5]?i[55]:i[57],duration:i[5]?i[56]:i[58],isMobile:!0};return i[17].time!==void 0&&(r.ref=i[17].time),e=new ll({props:r}),we.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]&1&&(l.showDuration=s[31]),a[0]&32|a[1]&83886080&&(l.position=s[5]?s[55]:s[57]),a[0]&32|a[1]&167772160&&(l.duration=s[5]?s[56]:s[58]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].time,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function xp(i){let e,t,n,o;return n=new _l({props:{position:i[57],duration:i[58],timeCodes:i[82]}}),{c(){e=I("div"),e.textContent="\xB7",t=G(),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]&67108864&&(a.position=r[57]),s[1]&134217728&&(a.duration=r[58]),n.$set(a)},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){p(n.$$.fragment,r),o=!1},d(r){r&&(y(e),y(t)),V(n,r)}}}function R5(i){let e,t,n=i[39]&&xp(i);return{c(){n&&n.c(),e=Xe()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,r){o[39]?n?(n.p(o,r),r[1]&256&&d(n,1)):(n=xp(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ue(),p(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function Hp(i){let e,t,n;function o(s){i[149](s)}let r={$$slots:{default:[B5]},$$scope:{ctx:i}};return i[17].settings!==void 0&&(r.ref=i[17].settings),e=new $i({props:r}),we.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]&131072&&(t=!0,l.ref=s[17].settings,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function B5(i){let e,t;return e=new rs({props:{ref$:i[105]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:_e,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,n;function o(s){i[150](s)}let r={$$slots:{default:[N5]},$$scope:{ctx:i}};return i[17].fullscreen!==void 0&&(r.ref=i[17].fullscreen),e=new $i({props:r}),we.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]&8192|a[1]&131072|a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&131072&&(t=!0,l.ref=s[17].fullscreen,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function N5(i){let e,t;return e=new ul({props:{click:i[13],isFullscreen:i[48]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&8192&&(r.click=n[13]),o[1]&131072&&(r.isFullscreen=n[48]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function D5(i){let e,t,n;function o(s){i[154](s)}let r={};return i[17].interactiveTimeIndicator!==void 0&&(r.ref=i[17].interactiveTimeIndicator),e=new Il({props:r}),we.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]&131072&&(t=!0,l.ref=s[17].interactiveTimeIndicator,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function O5(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,T,C,A,S,k=!i[5]&&yp(i),P=i[5]&&i[24]!=="inactive"&&Bp(i),H=i[95]&&M5(i),x=!i[5]&&i[19]&&Op(i),M=i[37]&&Fp(i);function Z(z){i[148](z)}let ae={className:"w-max",disabled:!i[39],$$slots:{default:[R5]},$$scope:{ctx:i}};i[17].episodes!==void 0&&(ae.ref=i[17].episodes),u=new $i({props:ae}),we.push(()=>ze(u,"ref",Z));let Q=i[34]&&Hp(i),ee=i[36]&&qp(i);function W(z){i[152](z)}let q={isAds:i[5],canRewindLive:i[6],isRewindableLive:i[18]};i[17].timeline!==void 0&&(q.ref=i[17].timeline),g=new pl({props:q}),we.push(()=>ze(g,"ref",W));let ve=i[99]&&D5(i);return{c(){k&&k.c(),e=G(),P&&P.c(),t=G(),n=I("div"),o=I("div"),r=I("div"),H&&H.c(),s=G(),x&&x.c(),a=G(),M&&M.c(),l=G(),R(u.$$.fragment),m=G(),Q&&Q.c(),h=G(),ee&&ee.c(),v=G(),R(g.$$.fragment),C=G(),ve&&ve.c(),A=Xe(),f(r,"class","controls svelte-1afsgkw"),K(r,"mobile",!0),f(o,"class","controls-wrapper svelte-1afsgkw"),K(o,"fullscreen",i[48]),f(n,"class","wrapper-bottom svelte-1afsgkw"),K(n,"hidden",i[2]),K(n,"controls-hidden",!i[4]),K(n,"no-smooth",i[3]),K(n,"mobile",!0)},m(z,ie){k&&k.m(z,ie),w(z,e,ie),P&&P.m(z,ie),w(z,t,ie),w(z,n,ie),_(n,o),_(o,r),H&&H.m(r,null),_(r,s),x&&x.m(r,null),_(r,a),M&&M.m(r,null),_(r,l),L(u,r,null),_(r,m),Q&&Q.m(r,null),_(r,h),ee&&ee.m(r,null),i[151](r),_(o,v),L(g,o,null),i[153](n),w(z,C,ie),ve&&ve.m(z,ie),w(z,A,ie),S=!0},p(z,ie){z[5]?k&&(ue(),p(k,1,1,()=>{k=null}),ce()):k?(k.p(z,ie),ie[0]&32&&d(k,1)):(k=yp(z),k.c(),d(k,1),k.m(e.parentNode,e)),z[5]&&z[24]!=="inactive"?P?(P.p(z,ie),ie[0]&16777248&&d(P,1)):(P=Bp(z),P.c(),d(P,1),P.m(t.parentNode,t)):P&&(ue(),p(P,1,1,()=>{P=null}),ce()),z[95]&&H.p(z,ie),!z[5]&&z[19]?x?(x.p(z,ie),ie[0]&524320&&d(x,1)):(x=Op(z),x.c(),d(x,1),x.m(r,a)):x&&(ue(),p(x,1,1,()=>{x=null}),ce()),z[37]?M?(M.p(z,ie),ie[1]&64&&d(M,1)):(M=Fp(z),M.c(),d(M,1),M.m(r,l)):M&&(ue(),p(M,1,1,()=>{M=null}),ce());let U={};ie[1]&256&&(U.disabled=!z[39]),ie[1]&201326848|ie[5]&8388608&&(U.$$scope={dirty:ie,ctx:z}),!c&&ie[0]&131072&&(c=!0,U.ref=z[17].episodes,Ue(()=>c=!1)),u.$set(U),z[34]?Q?(Q.p(z,ie),ie[1]&8&&d(Q,1)):(Q=Hp(z),Q.c(),d(Q,1),Q.m(r,h)):Q&&(ue(),p(Q,1,1,()=>{Q=null}),ce()),z[36]?ee?(ee.p(z,ie),ie[1]&32&&d(ee,1)):(ee=qp(z),ee.c(),d(ee,1),ee.m(r,null)):ee&&(ue(),p(ee,1,1,()=>{ee=null}),ce());let pe={};ie[0]&32&&(pe.isAds=z[5]),ie[0]&64&&(pe.canRewindLive=z[6]),ie[0]&262144&&(pe.isRewindableLive=z[18]),!T&&ie[0]&131072&&(T=!0,pe.ref=z[17].timeline,Ue(()=>T=!1)),g.$set(pe),(!S||ie[1]&131072)&&K(o,"fullscreen",z[48]),(!S||ie[0]&4)&&K(n,"hidden",z[2]),(!S||ie[0]&16)&&K(n,"controls-hidden",!z[4]),(!S||ie[0]&8)&&K(n,"no-smooth",z[3]),z[99]&&ve.p(z,ie)},i(z){S||(d(k),d(P),d(H),d(x),d(M),d(u.$$.fragment,z),d(Q),d(ee),d(g.$$.fragment,z),d(ve),S=!0)},o(z){p(k),p(P),p(H),p(x),p(M),p(u.$$.fragment,z),p(Q),p(ee),p(g.$$.fragment,z),p(ve),S=!1},d(z){z&&(y(e),y(t),y(n),y(C),y(A)),k&&k.d(z),P&&P.d(z),H&&H.d(),x&&x.d(),M&&M.d(),V(u),Q&&Q.d(),ee&&ee.d(),i[151](null),V(g),i[153](null),ve&&ve.d(z)}}}function F5(i,e,t){var te,Vt;let n,o,r,s,a,l,u,c,m,h,v,g,T,C,A,S,k,P,H,x,M,Z,ae,Q,ee,W,q,ve,z,ie,U,pe,se,X,re,oe,Ye,Fe,Pe,{bottomHidden:Se}=e,{bottomNoSmooth:Ae}=e,{showControls:He}=e,{playerControlsWrapperRef:J=void 0}=e,{playerControlsRef:ge=void 0}=e,{isAds:Ie=!1}=e,{canRewindLive:Ge}=e,{logoClickable:nt}=e,{logoHidden:lt}=e,{logoTargetUrl:ut=""}=e,{showAutoplayNext:et}=e,{showNextPrevButtons:me}=e,{nextButtonActive:tt}=e,{prevButtonActive:De}=e,{isOneVideoPlaylist:st=!1}=e,{customFullscreenSupported:Qe=!0}=e,{endScreenShown:he}=e,{toggleFullscreen:Ke}=e,{seekToInteractive:ft}=e,{playPrevChapter:be}=e,{onDisabledPlayPrevChapterClick:pt}=e,{onDisabledSeekToInteractiveClick:yt}=e,Ze=it(),It=Bn(),Rt=Mt(),Ft=Ze.actions.internal.toggleMuted,ti=Ze.actions.internal.togglePlay,Bt=Ze.actions.internal.pause,Kt=Ze.actions.internal.prevVideoClick,Gt=Ze.actions.internal.nextVideoClick,Nt=(te=Ze.callbacks)==null?void 0:te.onAudioDoesNotExistHint,ot=(Vt=Ze.callbacks)==null?void 0:Vt.onAudioDisabledHint,St=Ze.playerPhase;D(i,St,ne=>t(127,ae=ne));let Lt=Ze.state.duration$;D(i,Lt,ne=>t(58,Pe=ne));let fe=Ze.state.positionWithScrubbing$;D(i,fe,ne=>t(57,Fe=ne));let $e=Ze.state.playbackState$;D(i,$e,ne=>t(121,v=ne));let kt=Ze.state.isAudioAvailable$;D(i,kt,ne=>t(47,g=ne));let ii=Ze.state.isAudioDisabled,Ut=Ze.state.isEnded$;D(i,Ut,ne=>t(128,ee=ne));let Dt=Ze.state.isLive$;D(i,Dt,ne=>t(19,P=ne));let ni=Ze.state.muted$;D(i,ni,ne=>t(50,U=ne));let zt=Ze.state.isActiveLive$;D(i,zt,ne=>t(125,S=ne));let di=Ze.state.isRewindableLive$;D(i,di,ne=>t(18,k=ne));let Ti=Ze.ui.scrubbingInProgress;D(i,Ti,ne=>t(23,Q=ne));let Di=Ze.ui.mobileNotReportControlHidden$;D(i,Di,ne=>t(21,M=ne));let _i=Ze.ui.isPictureInPictureActive$;D(i,_i,ne=>t(20,x=ne));let vi=Ze.ui.pictureInPictureType$;D(i,vi,ne=>t(126,H=ne));let yi=Ze.ui.mobileUnmuteButtonExpanded;D(i,yi,ne=>t(51,pe=ne));let Ht=Ze.ui.mobileUnmuteButtonVisible;D(i,Ht,ne=>t(49,ie=ne));let Ui=Ze.ui.settingsMenu.visible$;D(i,Ui,ne=>t(119,m=ne));let qt=Ze.ui.settingsMenu.openedByBtnKeyboard$;D(i,qt,ne=>t(118,c=ne));let ei=Ze.ui.controls,Ii=Ze.actions.internal.getVideoEpisodes(),Zt=Ze.webApi.pictureInPictureApi,Pi=Ze.state.chromecastState$;D(i,Pi,ne=>t(22,Z=ne));let Ei=Ze.state.crashed$;D(i,Ei,ne=>t(53,X=ne));let Me=ei.disabledControls$;D(i,Me,ne=>t(129,q=ne));let rt=Ze.ui.startedByKeyboard$;D(i,rt,ne=>t(117,u=ne));let Wt=Ze.ui.currentGridType$;D(i,Wt,ne=>t(124,A=ne));let wi=Ze.ads.duration;D(i,wi,ne=>t(56,Ye=ne));let Et=Ze.ads.position;D(i,Et,ne=>t(55,oe=ne));let oi=Ze.ads.playbackState;D(i,oi,ne=>t(24,W=ne));let Ot=Ze.ui.isFullscreen;D(i,Ot,ne=>t(48,z=ne));let ki=Ze.ui.playerSize;D(i,ki,ne=>t(123,C=ne));let Cn=Ze.ui.additionalButtonsDeprecated$;D(i,Cn,ne=>t(52,se=ne));let zi=Ze.actions.internal.getVideoElement,pn=Ze.actions.internal.replayInteractive,mi=Ze.state.isInteractive,Oi=Ze.state.isInteractiveTime$;D(i,Oi,ne=>t(122,T=ne));let Wi=Ze.state.showInteractiveGraph,tn=Ze.state.showSeekToInteractive,Fi=Ze.state.showPlayPrevChapter,_n=Ze.state.showInteractiveTimeIndicator,ri=It.seekToInteractiveDisabledTooltip$;D(i,ri,ne=>t(130,ve=ne));let On=It.graphIsOpened$;D(i,On,ne=>t(54,re=ne));let Ai,nn,on,rn,Ki,ji,Mi,Ci,xi,si,pi,at,Li,jt,hi,Vi,sn,hn,Ri,Gi,li,je={},gn=I5(Sl,260),ln=()=>Ze.actions.internal.toggleChromecast();function Yi(){Wo({isAudioDisabled:ii,audioDisabledHintCallback:ot,isAudioAvailable:g,audioIsNotExistHintCallback:Nt})&&Ft()}async function an(){Zt!=null&&Zt.isActive()?await(Zt==null?void 0:Zt.remove()):await(Zt==null?void 0:Zt.request())}function Qi(){!ii&&g&&Ht.set(!1),Yi()}let Zi="",Yn=(ne,yn)=>{if(!ne){t(41,Zi=j("tooltip_live"));return}yn===bp.PAUSED&&t(41,Zi=j("tooltip_play"))},Fn,gi=Ne();D(i,gi,ne=>t(120,h=ne));let xn=()=>{l&&pt(Ai)},bn=()=>{r&&yt(nn)};function Sn(ne){i.$$.not_equal(je.volume,ne)&&(je.volume=ne,t(17,je))}function un(ne){i.$$.not_equal(je.autoplayNextToggle,ne)&&(je.autoplayNextToggle=ne,t(17,je))}function cn(ne){i.$$.not_equal(je.chromecast,ne)&&(je.chromecast=ne,t(17,je))}function vn(ne){i.$$.not_equal(je.pip,ne)&&(je.pip=ne,t(17,je))}function Hi(ne){i.$$.not_equal(je.vkLogo,ne)&&(je.vkLogo=ne,t(17,je))}function Xi(ne){i.$$.not_equal(je.prevButton,ne)&&(je.prevButton=ne,t(17,je))}function Hn(ne){i.$$.not_equal(je.playButton,ne)&&(je.playButton=ne,t(17,je))}function ro(ne){i.$$.not_equal(je.replayButton,ne)&&(je.replayButton=ne,t(17,je))}function so(ne){i.$$.not_equal(je.nextButton,ne)&&(je.nextButton=ne,t(17,je))}function ai(ne){i.$$.not_equal(je.playPrevChapterButton,ne)&&(je.playPrevChapterButton=ne,t(17,je))}function lo(ne){i.$$.not_equal(je.interactiveGraphButton,ne)&&(je.interactiveGraphButton=ne,t(17,je))}function ao(ne){i.$$.not_equal(je.seekToInteractiveButton,ne)&&(je.seekToInteractiveButton=ne,t(17,je))}function Qn(ne){i.$$.not_equal(je.volume,ne)&&(je.volume=ne,t(17,je))}function uo(ne){i.$$.not_equal(je.playButton,ne)&&(je.playButton=ne,t(17,je))}function co(ne){i.$$.not_equal(je.replayButton,ne)&&(je.replayButton=ne,t(17,je))}function Zn(ne){i.$$.not_equal(je.liveButton,ne)&&(je.liveButton=ne,t(17,je))}function Xn(ne){i.$$.not_equal(je.time,ne)&&(je.time=ne,t(17,je))}function Tn(ne){i.$$.not_equal(je.episodes,ne)&&(je.episodes=ne,t(17,je))}function Jn(ne){i.$$.not_equal(je.settings,ne)&&(je.settings=ne,t(17,je))}function yo(ne){i.$$.not_equal(je.fullscreen,ne)&&(je.fullscreen=ne,t(17,je))}function wo(ne){we[ne?"unshift":"push"](()=>{ge=ne,t(1,ge)})}function qi(ne){i.$$.not_equal(je.timeline,ne)&&(je.timeline=ne,t(17,je))}function $n(ne){we[ne?"unshift":"push"](()=>{J=ne,t(0,J)})}function fn(ne){i.$$.not_equal(je.interactiveTimeIndicator,ne)&&(je.interactiveTimeIndicator=ne,t(17,je))}return i.$$set=ne=>{"bottomHidden"in ne&&t(2,Se=ne.bottomHidden),"bottomNoSmooth"in ne&&t(3,Ae=ne.bottomNoSmooth),"showControls"in ne&&t(4,He=ne.showControls),"playerControlsWrapperRef"in ne&&t(0,J=ne.playerControlsWrapperRef),"playerControlsRef"in ne&&t(1,ge=ne.playerControlsRef),"isAds"in ne&&t(5,Ie=ne.isAds),"canRewindLive"in ne&&t(6,Ge=ne.canRewindLive),"logoClickable"in ne&&t(7,nt=ne.logoClickable),"logoHidden"in ne&&t(108,lt=ne.logoHidden),"logoTargetUrl"in ne&&t(8,ut=ne.logoTargetUrl),"showAutoplayNext"in ne&&t(9,et=ne.showAutoplayNext),"showNextPrevButtons"in ne&&t(10,me=ne.showNextPrevButtons),"nextButtonActive"in ne&&t(109,tt=ne.nextButtonActive),"prevButtonActive"in ne&&t(110,De=ne.prevButtonActive),"isOneVideoPlaylist"in ne&&t(11,st=ne.isOneVideoPlaylist),"customFullscreenSupported"in ne&&t(111,Qe=ne.customFullscreenSupported),"endScreenShown"in ne&&t(12,he=ne.endScreenShown),"toggleFullscreen"in ne&&t(13,Ke=ne.toggleFullscreen),"seekToInteractive"in ne&&t(14,ft=ne.seekToInteractive),"playPrevChapter"in ne&&t(15,be=ne.playPrevChapter),"onDisabledPlayPrevChapterClick"in ne&&t(112,pt=ne.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ne&&t(113,yt=ne.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&64&&(nn=j(ve)),i.$$.dirty[4]&32&&t(116,n=q.has("EPISODE_BUTTON")),i.$$.dirty[4]&32&&t(46,o=q.has("GRAPH_BUTTON")),i.$$.dirty[4]&32&&t(42,r=q.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[4]&32&&t(45,s=q.has("PLAY_BUTTON")),i.$$.dirty[4]&32&&t(44,a=q.has("REPLAY_BUTTON")),i.$$.dirty[4]&32&&t(43,l=q.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[3]&268435456&&t(25,on=v===bp.PLAYING),i.$$.dirty[0]&16777216&&t(26,rn=W==="paused"),i.$$.dirty[0]&32|i.$$.dirty[4]&16&&t(27,Ki=ee&&!Ie&&!mi),i.$$.dirty[0]&32|i.$$.dirty[4]&16&&t(28,ji=!ee||Ie),i.$$.dirty[0]&1056|i.$$.dirty[3]&131072&&t(29,Mi=me&&!Ie&&De),i.$$.dirty[0]&1056|i.$$.dirty[3]&65536&&t(30,Ci=me&&!Ie&&tt),i.$$.dirty[3]&1073741824&&t(114,xi=C.width>300),i.$$.dirty[3]&1073741824&&t(31,si=C.width>400),i.$$.dirty[0]&8388608&&t(115,pi=Q),i.$$.dirty[0]&7340032|i.$$.dirty[4]&4&&t(32,at=Z!==gp.NOT_AVAILABLE&&!(x&&H===1)&&!M&&!mi),i.$$.dirty[0]&6291456|i.$$.dirty[3]&4194304|i.$$.dirty[4]&12){let ne=ae==="LiveWaitingStart";t(33,Li=!!Zt&&Z!==gp.CONNECTED&&!M&&(H===1&&ne||!ne)&&!pi&&!mi)}i.$$.dirty[3]&4194304|i.$$.dirty[4]&1&&t(34,jt=!pi&&bi(A,"s")),i.$$.dirty[3]&1073774592&&t(35,hi=!lt&&C.width>350),i.$$.dirty[0]&1048576|i.$$.dirty[3]&4456448|i.$$.dirty[4]&4&&t(36,Vi=Rt.features.fullscreen&&!(x&&H===1)&&(mi?Qe:!0)&&!pi),i.$$.dirty[0]&524320|i.$$.dirty[3]&1077936128&&t(37,sn=(!P||Ie)&&C.width>260&&!pi&&!(Rt.features.interactiveHideTime&&mi)),i.$$.dirty[0]&16|i.$$.dirty[3]&67108864&&t(38,hn=m||He),i.$$.dirty[0]&524320|i.$$.dirty[3]&14680064&&t(39,Ri=!Ie&&!P&&!!(Ii!=null&&Ii.length)&&xi&&!n&&!pi),i.$$.dirty[0]&262144|i.$$.dirty[4]&2&&t(16,Gi=!k||S),i.$$.dirty[4]&1&&t(40,li=Wi&&bi(A,"m")),i.$$.dirty[0]&131088|i.$$.dirty[3]&1610612736&&gn(zi(),ei,je,He),i.$$.dirty[0]&65536|i.$$.dirty[3]&268435456&&Yn(Gi,v),i.$$.dirty[3]&201326592&&h&&Pr(h,m,qt),i.$$.dirty[3]&100663296&&bo(Fn,m,c),i.$$.dirty[0]&131072|i.$$.dirty[3]&16777216&&Tl(rt,u,je.playButton)},Ai=j(Ze.state.playPrevChapterDisabledTooltip),[J,ge,Se,Ae,He,Ie,Ge,nt,ut,et,me,st,he,Ke,ft,be,Gi,je,k,P,x,M,Z,Q,W,on,rn,Ki,ji,Mi,Ci,si,at,Li,jt,hi,Vi,sn,hn,Ri,li,Zi,r,l,a,s,o,g,z,ie,U,pe,se,X,re,oe,Ye,Fe,Pe,ti,Bt,Kt,Gt,St,Lt,fe,$e,kt,ii,Ut,Dt,ni,zt,di,Ti,Di,_i,vi,yi,Ht,Ui,qt,Ii,Pi,Ei,Me,rt,Wt,wi,Et,oi,Ot,ki,Cn,pn,mi,Oi,tn,Fi,_n,ri,On,ln,an,Qi,gi,xn,bn,lt,tt,De,Qe,pt,yt,xi,pi,n,u,c,m,h,v,T,C,A,S,H,ae,ee,q,ve,Sn,un,cn,vn,Hi,Xi,Hn,ro,so,ai,lo,ao,Qn,uo,co,Zn,Xn,Tn,Jn,yo,wo,qi,$n,fn]}var Ac=class extends O{constructor(e){super(),F(this,e,F5,O5,N,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:7,logoHidden:108,logoTargetUrl:8,showAutoplayNext:9,showNextPrevButtons:10,nextButtonActive:109,prevButtonActive:110,isOneVideoPlaylist:11,customFullscreenSupported:111,endScreenShown:12,toggleFullscreen:13,seekToInteractive:14,playPrevChapter:15,onDisabledPlayPrevChapterClick:112,onDisabledSeekToInteractiveClick:113},P5,[-1,-1,-1,-1,-1,-1])}},Up=Ac;function Wp(i){let e,t,n,o,r=[H5,x5],s=[];function a(l,u){return l[23]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Xe()},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):(ue(),p(s[c],1,1,()=>{s[c]=null}),ce(),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 x5(i){let e,t,n,o;function r(l){i[27](l)}function s(l){i[28](l)}let a={bottomHidden:i[2],bottomNoSmooth:i[3],showControls:i[4],isAds:i[5],canRewindLive:i[6],logoClickable:i[7],logoHidden:i[8],logoTargetUrl:i[9],showNextPrevButtons:i[10],nextButtonActive:i[12],prevButtonActive:i[13],customFullscreenSupported:i[15],toggleFullscreen:i[17],seekToInteractive:i[18],playPrevChapter:i[19]};return i[0]!==void 0&&(a.playerControlsWrapperRef=i[0]),i[1]!==void 0&&(a.playerControlsRef=i[1]),e=new ap({props:a}),we.push(()=>ze(e,"playerControlsWrapperRef",r)),we.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&4096&&(c.nextButtonActive=l[12]),u&8192&&(c.prevButtonActive=l[13]),u&32768&&(c.customFullscreenSupported=l[15]),u&131072&&(c.toggleFullscreen=l[17]),u&262144&&(c.seekToInteractive=l[18]),u&524288&&(c.playPrevChapter=l[19]),!t&&u&1&&(t=!0,c.playerControlsWrapperRef=l[0],Ue(()=>t=!1)),!n&&u&2&&(n=!0,c.playerControlsRef=l[1],Ue(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){V(e,l)}}}function H5(i){let e,t,n,o;function r(l){i[25](l)}function s(l){i[26](l)}let a={bottomHidden:i[2],bottomNoSmooth:i[3],showControls:i[4],isAds:i[5],canRewindLive:i[6],logoClickable:i[7],logoHidden:i[8],logoTargetUrl:i[9],showAutoplayNext:i[11],showNextPrevButtons:i[10],nextButtonActive:i[12],prevButtonActive:i[13],isOneVideoPlaylist:i[14],customFullscreenSupported:i[15],endScreenShown:i[16],toggleFullscreen:i[17],seekToInteractive:i[18],playPrevChapter:i[19],onDisabledPlayPrevChapterClick:i[20],onDisabledSeekToInteractiveClick:i[21]};return i[0]!==void 0&&(a.playerControlsWrapperRef=i[0]),i[1]!==void 0&&(a.playerControlsRef=i[1]),e=new Up({props:a}),we.push(()=>ze(e,"playerControlsWrapperRef",r)),we.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&2048&&(c.showAutoplayNext=l[11]),u&1024&&(c.showNextPrevButtons=l[10]),u&4096&&(c.nextButtonActive=l[12]),u&8192&&(c.prevButtonActive=l[13]),u&16384&&(c.isOneVideoPlaylist=l[14]),u&32768&&(c.customFullscreenSupported=l[15]),u&65536&&(c.endScreenShown=l[16]),u&131072&&(c.toggleFullscreen=l[17]),u&262144&&(c.seekToInteractive=l[18]),u&524288&&(c.playPrevChapter=l[19]),u&1048576&&(c.onDisabledPlayPrevChapterClick=l[20]),u&2097152&&(c.onDisabledSeekToInteractiveClick=l[21]),!t&&u&1&&(t=!0,c.playerControlsWrapperRef=l[0],Ue(()=>t=!1)),!n&&u&2&&(n=!0,c.playerControlsRef=l[1],Ue(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){V(e,l)}}}function q5(i){let e,t,n=i[22]&&Wp(i);return{c(){n&&n.c(),e=Xe()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,[r]){o[22]?n?(n.p(o,r),r&4194304&&d(n,1)):(n=Wp(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ue(),p(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function U5(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:v=""}=e,{showNextPrevButtons:g}=e,{showAutoplayNext:T=!1}=e,{nextButtonActive:C}=e,{prevButtonActive:A}=e,{isOneVideoPlaylist:S=!1}=e,{customFullscreenSupported:k=!0}=e,{endScreenShown:P=!1}=e,{toggleFullscreen:H}=e,{seekToInteractive:x}=e,{playPrevChapter:M}=e,{onDisabledPlayPrevChapterClick:Z=zp}=e,{onDisabledSeekToInteractiveClick:ae=zp}=e,ee=it().ui.isMobile;D(i,ee,U=>t(23,n=U));let W=!1;Ct(()=>{let U=setTimeout(()=>t(22,W=!0),0);return()=>clearTimeout(U)});function q(U){a=U,t(0,a)}function ve(U){l=U,t(1,l)}function z(U){a=U,t(0,a)}function ie(U){l=U,t(1,l)}return i.$$set=U=>{"bottomHidden"in U&&t(2,o=U.bottomHidden),"bottomNoSmooth"in U&&t(3,r=U.bottomNoSmooth),"showControls"in U&&t(4,s=U.showControls),"playerControlsWrapperRef"in U&&t(0,a=U.playerControlsWrapperRef),"playerControlsRef"in U&&t(1,l=U.playerControlsRef),"isAds"in U&&t(5,u=U.isAds),"canRewindLive"in U&&t(6,c=U.canRewindLive),"logoClickable"in U&&t(7,m=U.logoClickable),"logoHidden"in U&&t(8,h=U.logoHidden),"logoTargetUrl"in U&&t(9,v=U.logoTargetUrl),"showNextPrevButtons"in U&&t(10,g=U.showNextPrevButtons),"showAutoplayNext"in U&&t(11,T=U.showAutoplayNext),"nextButtonActive"in U&&t(12,C=U.nextButtonActive),"prevButtonActive"in U&&t(13,A=U.prevButtonActive),"isOneVideoPlaylist"in U&&t(14,S=U.isOneVideoPlaylist),"customFullscreenSupported"in U&&t(15,k=U.customFullscreenSupported),"endScreenShown"in U&&t(16,P=U.endScreenShown),"toggleFullscreen"in U&&t(17,H=U.toggleFullscreen),"seekToInteractive"in U&&t(18,x=U.seekToInteractive),"playPrevChapter"in U&&t(19,M=U.playPrevChapter),"onDisabledPlayPrevChapterClick"in U&&t(20,Z=U.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in U&&t(21,ae=U.onDisabledSeekToInteractiveClick)},[a,l,o,r,s,u,c,m,h,v,g,T,C,A,S,k,P,H,x,M,Z,ae,W,n,ee,q,ve,z,ie]}var Mc=class extends O{constructor(e){super(),F(this,e,U5,q5,N,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:7,logoHidden:8,logoTargetUrl:9,showNextPrevButtons:10,showAutoplayNext:11,nextButtonActive:12,prevButtonActive:13,isOneVideoPlaylist:14,customFullscreenSupported:15,endScreenShown:16,toggleFullscreen:17,seekToInteractive:18,playPrevChapter:19,onDisabledPlayPrevChapterClick:20,onDisabledSeekToInteractiveClick:21})}},Vl=Mc;function z5(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,T=i[2].default,C=Le(T,i,i[1],null),A=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],S={};for(let k=0;k<A.length;k+=1)S=le(S,A[k]);return{c(){e=B("svg"),C&&C.c(),t=B("g"),n=B("path"),o=B("path"),r=B("defs"),s=B("filter"),a=B("feFlood"),l=B("feColorMatrix"),u=B("feOffset"),c=B("feGaussianBlur"),m=B("feColorMatrix"),h=B("feBlend"),v=B("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(v,"in","SourceGraphic"),f(v,"in2","effect1_dropShadow_2260_100684"),f(v,"result","shape"),f(s,"id","a"),f(s,"width","43.996"),f(s,"height","49.5"),f(s,"x","2.5"),f(s,"y","0"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),Ce(e,S)},m(k,P){w(k,e,P),C&&C.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,v),g=!0},p(k,[P]){C&&C.p&&(!g||P&2)&&Re(C,T,k,k[1],g?Ve(T,k[1],P,null):Be(k[1]),null),Ce(e,S=xe(A,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},P&1&&k[0]]))},i(k){g||(d(C,k),g=!0)},o(k){p(C,k),g=!1},d(k){k&&y(e),C&&C.d(k)}}}function W5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var Lc=class extends O{constructor(e){super(),F(this,e,W5,z5,N,{})}},Kp=Lc;function K5(i){let e,t;return e=new Kp({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 j5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Vc=class extends O{constructor(e){super(),F(this,e,j5,K5,N,{reversed:1})}},jp=Vc;function G5(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,T,C,A=i[2].default,S=Le(A,i,i[1],null),k=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},i[0]],P={};for(let H=0;H<k.length;H+=1)P=le(P,k[H]);return{c(){e=B("svg"),S&&S.c(),t=B("g"),n=B("path"),o=B("path"),r=B("defs"),s=B("clipPath"),a=B("path"),l=B("filter"),u=B("feFlood"),c=B("feColorMatrix"),m=B("feOffset"),h=B("feGaussianBlur"),v=B("feColorMatrix"),g=B("feBlend"),T=B("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(v,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(g,"in2","BackgroundImageFix"),f(g,"result","effect1_dropShadow_2260_104204"),f(T,"in","SourceGraphic"),f(T,"in2","effect1_dropShadow_2260_104204"),f(T,"result","shape"),f(l,"id","a"),f(l,"width","51"),f(l,"height","45"),f(l,"x","-1.5"),f(l,"y","1.5"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),Ce(e,P)},m(H,x){w(H,e,x),S&&S.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,v),_(l,g),_(l,T),C=!0},p(H,[x]){S&&S.p&&(!C||x&2)&&Re(S,A,H,H[1],C?Ve(A,H[1],x,null):Be(H[1]),null),Ce(e,P=xe(k,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},x&1&&H[0]]))},i(H){C||(d(S,H),C=!0)},o(H){p(S,H),C=!1},d(H){H&&y(e),S&&S.d(H)}}}function Y5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var Rc=class extends O{constructor(e){super(),F(this,e,Y5,G5,N,{})}},Gp=Rc;function Q5(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,T,C,A,S=i[2].default,k=Le(S,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},i[0]],H={};for(let x=0;x<P.length;x+=1)H=le(H,P[x]);return{c(){e=B("svg"),k&&k.c(),t=B("g"),n=B("path"),o=B("path"),r=B("path"),s=B("defs"),a=B("clipPath"),l=B("path"),u=B("filter"),c=B("feFlood"),m=B("feColorMatrix"),h=B("feOffset"),v=B("feGaussianBlur"),g=B("feColorMatrix"),T=B("feBlend"),C=B("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(v,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(T,"in2","BackgroundImageFix"),f(T,"result","effect1_dropShadow_2260_104293"),f(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_2260_104293"),f(C,"result","shape"),f(u,"id","a"),f(u,"width","51"),f(u,"height","51"),f(u,"x","-1.5"),f(u,"y","-1.5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),Ce(e,H)},m(x,M){w(x,e,M),k&&k.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,v),_(u,g),_(u,T),_(u,C),A=!0},p(x,[M]){k&&k.p&&(!A||M&2)&&Re(k,S,x,x[1],A?Ve(S,x[1],M,null):Be(x[1]),null),Ce(e,H=xe(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},M&1&&x[0]]))},i(x){A||(d(k,x),A=!0)},o(x){p(k,x),A=!1},d(x){x&&y(e),k&&k.d(x)}}}function Z5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var Bc=class extends O{constructor(e){super(),F(this,e,Z5,Q5,N,{})}},Yp=Bc;function X5(i){let e,t;return e=new Gp({}),{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 J5(i){let e,t;return e=new Yp({}),{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 $5(i){let e,t,n,o,r=[J5,X5],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Xe()},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&&(ue(),p(s[c],1,1,()=>{s[c]=null}),ce(),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 e6(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Nc=class extends O{constructor(e){super(),F(this,e,e6,$5,N,{isOff:0})}},Dc=Nc;function t6(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,T=i[2].default,C=Le(T,i,i[1],null),A=[{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]],S={};for(let k=0;k<A.length;k+=1)S=le(S,A[k]);return{c(){e=B("svg"),C&&C.c(),t=B("g"),n=B("path"),o=B("path"),r=B("defs"),s=B("filter"),a=B("feFlood"),l=B("feColorMatrix"),u=B("feOffset"),c=B("feGaussianBlur"),m=B("feColorMatrix"),h=B("feBlend"),v=B("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(v,"in","SourceGraphic"),f(v,"in2","effect1_dropShadow_2260_106627"),f(v,"result","shape"),f(s,"id","a"),f(s,"width","40.098"),f(s,"height","27.785"),f(s,"x","3.402"),f(s,"y","10.105"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),Ce(e,S)},m(k,P){w(k,e,P),C&&C.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,v),g=!0},p(k,[P]){C&&C.p&&(!g||P&2)&&Re(C,T,k,k[1],g?Ve(T,k[1],P,null):Be(k[1]),null),Ce(e,S=xe(A,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},P&1&&k[0]]))},i(k){g||(d(C,k),g=!0)},o(k){p(C,k),g=!1},d(k){k&&y(e),C&&C.d(k)}}}function i6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var Oc=class extends O{constructor(e){super(),F(this,e,i6,t6,N,{})}},Qp=Oc;function n6(i){let e,t;return e=new Qp({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 o6(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 Fc=class extends O{constructor(e){super(),F(this,e,o6,n6,N,{reversed:1})}},Zp=Fc;function r6(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,T=i[2].default,C=Le(T,i,i[1],null),A=[{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]],S={};for(let k=0;k<A.length;k+=1)S=le(S,A[k]);return{c(){e=B("svg"),C&&C.c(),t=B("g"),n=B("path"),o=B("path"),r=B("defs"),s=B("filter"),a=B("feFlood"),l=B("feColorMatrix"),u=B("feOffset"),c=B("feGaussianBlur"),m=B("feColorMatrix"),h=B("feBlend"),v=B("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(v,"in","SourceGraphic"),f(v,"in2","effect1_dropShadow_2340_106922"),f(v,"result","shape"),f(s,"id","a"),f(s,"width","37"),f(s,"height","37"),f(s,"x","5.5"),f(s,"y","5.5"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),Ce(e,S)},m(k,P){w(k,e,P),C&&C.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,v),g=!0},p(k,[P]){C&&C.p&&(!g||P&2)&&Re(C,T,k,k[1],g?Ve(T,k[1],P,null):Be(k[1]),null),Ce(e,S=xe(A,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},P&1&&k[0]]))},i(k){g||(d(C,k),g=!0)},o(k){p(C,k),g=!1},d(k){k&&y(e),C&&C.d(k)}}}function s6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var xc=class extends O{constructor(e){super(),F(this,e,s6,r6,N,{})}},Xp=xc;function l6(i){let e,t;return e=new Xp({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 a6(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 Hc=class extends O{constructor(e){super(),F(this,e,a6,l6,N,{reversed:1})}},Jp=Hc;function u6(i){ye(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 $p(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,v,g,T,C,A=t&&e0(i),S=i[4]==="PAUSE"&&t0(i),k=i[4]==="PLAY"&&i0(i),P=i[4]==="REPLAY"&&n0(i),H=i[4]==="SUBTITLES_OFF"&&o0(i),x=i[4]==="SUBTITLES_ON"&&r0(i),M=u&&s0(i),Z=m&&l0(i),ae=i[4]==="MUTE"&&a0(i),Q=i[4]==="VOLUME"&&u0(i),ee=i[5]&&c0(i);return{c(){e=I("div"),A&&A.c(),n=G(),S&&S.c(),o=G(),k&&k.c(),r=G(),P&&P.c(),s=G(),H&&H.c(),a=G(),x&&x.c(),l=G(),M&&M.c(),c=G(),Z&&Z.c(),h=G(),ae&&ae.c(),v=G(),Q&&Q.c(),g=G(),ee&&ee.c(),T=Xe(),f(e,"class","svelte-1ad3n06")},m(W,q){w(W,e,q),A&&A.m(e,null),_(e,n),S&&S.m(e,null),_(e,o),k&&k.m(e,null),_(e,r),P&&P.m(e,null),_(e,s),H&&H.m(e,null),_(e,a),x&&x.m(e,null),_(e,l),M&&M.m(e,null),_(e,c),Z&&Z.m(e,null),_(e,h),ae&&ae.m(e,null),_(e,v),Q&&Q.m(e,null),w(W,g,q),ee&&ee.m(W,q),w(W,T,q),C=!0},p(W,q){q&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(W[4])),t?A?(A.p(W,q),q&16&&d(A,1)):(A=e0(W),A.c(),d(A,1),A.m(e,n)):A&&(ue(),p(A,1,1,()=>{A=null}),ce()),W[4]==="PAUSE"?S?q&16&&d(S,1):(S=t0(W),S.c(),d(S,1),S.m(e,o)):S&&(ue(),p(S,1,1,()=>{S=null}),ce()),W[4]==="PLAY"?k?q&16&&d(k,1):(k=i0(W),k.c(),d(k,1),k.m(e,r)):k&&(ue(),p(k,1,1,()=>{k=null}),ce()),W[4]==="REPLAY"?P?q&16&&d(P,1):(P=n0(W),P.c(),d(P,1),P.m(e,s)):P&&(ue(),p(P,1,1,()=>{P=null}),ce()),W[4]==="SUBTITLES_OFF"?H?q&16&&d(H,1):(H=o0(W),H.c(),d(H,1),H.m(e,a)):H&&(ue(),p(H,1,1,()=>{H=null}),ce()),W[4]==="SUBTITLES_ON"?x?q&16&&d(x,1):(x=r0(W),x.c(),d(x,1),x.m(e,l)):x&&(ue(),p(x,1,1,()=>{x=null}),ce()),q&16&&(u=["RATE_DOWN","RATE_UP"].includes(W[4])),u?M?(M.p(W,q),q&16&&d(M,1)):(M=s0(W),M.c(),d(M,1),M.m(e,c)):M&&(ue(),p(M,1,1,()=>{M=null}),ce()),q&16&&(m=["EPISODE_PREV","EPISODE_NEXT"].includes(W[4])),m?Z?(Z.p(W,q),q&16&&d(Z,1)):(Z=l0(W),Z.c(),d(Z,1),Z.m(e,h)):Z&&(ue(),p(Z,1,1,()=>{Z=null}),ce()),W[4]==="MUTE"?ae?q&16&&d(ae,1):(ae=a0(W),ae.c(),d(ae,1),ae.m(e,v)):ae&&(ue(),p(ae,1,1,()=>{ae=null}),ce()),W[4]==="VOLUME"?Q?q&16&&d(Q,1):(Q=u0(W),Q.c(),d(Q,1),Q.m(e,null)):Q&&(ue(),p(Q,1,1,()=>{Q=null}),ce()),W[5]?ee?ee.p(W,q):(ee=c0(W),ee.c(),ee.m(T.parentNode,T)):ee&&(ee.d(1),ee=null)},i(W){C||(d(A),d(S),d(k),d(P),d(H),d(x),d(M),d(Z),d(ae),d(Q),C=!0)},o(W){p(A),p(S),p(k),p(P),p(H),p(x),p(M),p(Z),p(ae),p(Q),C=!1},d(W){W&&(y(e),y(g),y(T)),A&&A.d(),S&&S.d(),k&&k.d(),P&&P.d(),H&&H.d(),x&&x.d(),M&&M.d(),Z&&Z.d(),ae&&ae.d(),Q&&Q.d(),ee&&ee.d(W)}}}function e0(i){let e,t;return e=new jp({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 t0(i){let e,t;return e=new Fr({}),{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 i0(i){let e,t;return e=new Go({}),{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 n0(i){let e,t;return e=new Pl({}),{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 o0(i){let e,t;return e=new Dc({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 r0(i){let e,t;return e=new Dc({}),{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 s0(i){let e,t;return e=new Zp({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 l0(i){let e,t;return e=new Jp({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 a0(i){let e,t;return e=new cr({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 u0(i){let e,t;return e=new cr({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 c0(i){let e,t;return{c(){e=I("span"),t=Oe(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&&We(t,n[5])},d(n){n&&y(e)}}}function c6(i){let e,t,n=!i[1]&&i[4]&&$p(i);return{c(){e=I("div"),n&&n.c(),f(e,"class","hot-key-helpers-container svelte-1ad3n06"),K(e,"hidden",i[1]),K(e,"hot-key-helpers-container--left",i[2]),K(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=$p(o),n.c(),d(n,1),n.m(e,null)):n&&(ue(),p(n,1,1,()=>{n=null}),ce()),(!t||r&2)&&K(e,"hidden",o[1]),(!t||r&4)&&K(e,"hot-key-helpers-container--left",o[2]),(!t||r&8)&&K(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 f6(i,e,t){let n,o=_e,r=()=>(o(),o=Xt(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 qc=class extends O{constructor(e){super(),F(this,e,f6,c6,N,{data:0},u6)}},f0=qc;function d6(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=le(a,s[l]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),f(t,"fill","#fff"),f(t,"fill-opacity",".72"),f(t,"fill-rule","evenodd"),f(t,"d","M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272"),f(t,"clip-rule","evenodd"),Ce(e,a)},m(l,u){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),Ce(e,a=xe(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 m6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var Uc=class extends O{constructor(e){super(),F(this,e,m6,d6,N,{})}},d0=Uc;function p6(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=le(a,s[l]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),f(t,"fill","#fff"),f(t,"d","m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"),Ce(e,a)},m(l,u){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),Ce(e,a=xe(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 _6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var zc=class extends O{constructor(e){super(),F(this,e,_6,p6,N,{})}},m0=zc;function h6(i){let e,t;return e=new m0({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 g6(i){let e,t;return e=new d0({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 b6(i){let e,t,n,o,r=[g6,h6],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=Xe()},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):(ue(),p(s[c],1,1,()=>{s[c]=null}),ce(),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 v6(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 Wc=class extends O{constructor(e){super(),F(this,e,v6,b6,N,{direction:3})}},dr=Wc;function y6(i){ye(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 w6(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,T,C,A,S,k;return r=new dr({props:{direction:"up"}}),l=new dr({props:{direction:"up"}}),h=new dr({props:{direction:"up"}}),T=new dr({props:{direction:"up"}}),{c(){e=I("div"),t=I("div"),n=I("div"),o=I("div"),R(r.$$.fragment),s=G(),a=I("div"),R(l.$$.fragment),u=G(),c=I("div"),m=I("div"),R(h.$$.fragment),v=G(),g=I("div"),R(T.$$.fragment),f(o,"class","button button-up svelte-1yzc86r"),f(a,"class","button button-right svelte-1yzc86r"),f(n,"class","button-row svelte-1yzc86r"),f(m,"class","button button-left svelte-1yzc86r"),f(g,"class","button button-down svelte-1yzc86r"),f(c,"class","button-row svelte-1yzc86r"),f(t,"class","button-block svelte-1yzc86r"),f(t,"aria-hidden","true"),f(e,"class","immersive-controls svelte-1yzc86r"),f(e,"tabindex","0"),f(e,"role","button"),f(e,"aria-label",C=j("aria_label_spherical_control")),K(e,"m-shifted",i[0])},m(P,H){w(P,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,v),_(c,g),L(T,g,null),A=!0,S||(k=[Te(o,"mousedown",i[1]),Te(o,"mouseup",i[5]),Te(o,"mouseleave",i[5]),Te(a,"mousedown",i[3]),Te(a,"mouseup",i[5]),Te(a,"mouseleave",i[5]),Te(m,"mousedown",i[4]),Te(m,"mouseup",i[5]),Te(m,"mouseleave",i[5]),Te(g,"mousedown",i[2]),Te(g,"mouseup",i[5]),Te(g,"mouseleave",i[5]),Te(e,"keydown",i[6]),Te(e,"keyup",i[7])],S=!0)},p(P,[H]){(!A||H&1)&&K(e,"m-shifted",P[0])},i(P){A||(d(r.$$.fragment,P),d(l.$$.fragment,P),d(h.$$.fragment,P),d(T.$$.fragment,P),A=!0)},o(P){p(r.$$.fragment,P),p(l.$$.fragment,P),p(h.$$.fragment,P),p(T.$$.fragment,P),A=!1},d(P){P&&y(e),V(r),V(l),V(h),V(T),S=!1,ct(k)}}}function k6(i,e,t){let{isShifted:n=!1}=e,o=it(),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=v=>{if(r.has(v.code))switch(v.preventDefault(),v.stopPropagation(),v.code){case"ArrowUp":s();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":l();break}},h=v=>{r.has(v.code)&&(v.preventDefault(),v.stopPropagation(),c())};return i.$$set=v=>{"isShifted"in v&&t(0,n=v.isShifted)},[n,s,a,l,u,c,m,h]}var Kc=class extends O{constructor(e){super(),F(this,e,k6,w6,N,{isShifted:0},y6)}},Rl=Kc;import{ValueSubject as _0,Subscription as C6,filterChanged as S6,filter as T6}from"@vkontakte/videoplayer-shared/es2018";var p0=(i=1e3)=>{let e=null,t=()=>{e&&(clearTimeout(e),e=null)};return{add:n=>{t(),e=setTimeout(n,i)},clear:t}};var Bl=class{constructor(){this.flickeringTimeout=p0(1e3);this.subscriptions=new C6;this.isAuto=!1;this.isLive=!1;this.captions$=new _0([]);this.captionsPrepared$=new _0([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(T6(()=>this.isEnabled()),S6()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let t=[],n=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";n&&t.push([{value:String(e[0].value),timeAppeared:null}]),t.push(e.reduce((o,{type:r,value:s},a)=>(n&&!a||(r==="timestamp"?o.push({timeAppeared:Number(s),value:""}):o.length===0?o.push({value:String(s)}):o[o.length-1].value=String(s)),o),[])),this.captionsPrepared$.next(t)}};function I6(i){ye(i,"svelte-c2x749",".subtitles-container.svelte-c2x749.svelte-c2x749{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.svelte-c2x749.svelte-c2x749{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.svelte-c2x749.svelte-c2x749{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.svelte-c2x749.svelte-c2x749{bottom:8%}.subtitles-container.auto.svelte-c2x749 .subtitles-caption.svelte-c2x749{left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin)}.caption.svelte-c2x749.svelte-c2x749{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.svelte-c2x749 .caption.svelte-c2x749{width:100%}.caption-line.svelte-c2x749.svelte-c2x749{display:block;text-align:center}.subtitles-container.auto.svelte-c2x749 .caption-line.svelte-c2x749{text-align:left}.caption-segment.svelte-c2x749.svelte-c2x749{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function h0(i,e,t){let n=i.slice();return n[22]=e[t].value,n}function g0(i,e,t){let n=i.slice();return n[19]=e[t],n}function b0(i,e,t){let n=i.slice();return n[22]=e[t].value,n[23]=e[t].timeAppeared,n}function v0(i){let e,t;function n(s,a){var l;return s[4]&&s[9]?A6:s[4]&&((l=s[7])!=null&&l.length)?E6:P6}let o=n(i,-1),r=o(i);return{c(){e=I("div"),t=I("span"),r.c(),f(t,"class","caption svelte-c2x749"),f(e,"class","subtitles-caption svelte-c2x749"),fi(e,"--subtitles-caption-margin",i[8]+"%"),K(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&256&&fi(e,"--subtitles-caption-margin",s[8]+"%"),a&8&&K(e,"mobile",s[3])},d(s){s&&y(e),r.d()}}}function P6(i){let e,t=wt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=y0(h0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=Xe()},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&66){t=wt(o[1]);let s;for(s=0;s<t.length;s+=1){let a=h0(o,t,s);n[s]?n[s].p(a,r):(n[s]=y0(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),ui(n,o)}}}function E6(i){let e,t=wt(i[7]),n=[];for(let o=0;o<t.length;o+=1)n[o]=C0(g0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=Xe()},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&196){t=wt(o[7]);let s;for(s=0;s<t.length;s+=1){let a=g0(o,t,s);n[s]?n[s].p(a,r):(n[s]=C0(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),ui(n,o)}}}function A6(i){let e,t,n=j("subtitles_auto_caption")+"",o;return{c(){e=I("span"),t=I("span"),o=Oe(n),f(t,"class","caption-segment svelte-c2x749"),fi(t,"font-size",i[6]+"px"),f(e,"class","caption-line svelte-c2x749")},m(r,s){w(r,e,s),_(e,t),_(t,o)},p(r,s){s&64&&fi(t,"font-size",r[6]+"px")},d(r){r&&y(e)}}}function y0(i){let e,t,n=i[22]+"",o,r;return{c(){e=I("span"),t=I("span"),o=Oe(n),r=G(),f(t,"class","caption-segment svelte-c2x749"),fi(t,"font-size",i[6]+"px"),f(e,"class","caption-line svelte-c2x749")},m(s,a){w(s,e,a),_(e,t),_(t,o),_(e,r)},p(s,a){a&2&&n!==(n=s[22]+"")&&We(o,n),a&64&&fi(t,"font-size",s[6]+"px")},d(s){s&&y(e)}}}function w0(i){let e=i[22]+"",t;return{c(){t=Oe(e)},m(n,o){w(n,t,o)},p(n,o){o&128&&e!==(e=n[22]+"")&&We(t,e)},d(n){n&&y(t)}}}function k0(i){let e,t=(!i[23]||i[23]<=i[2])&&w0(i);return{c(){t&&t.c(),e=Xe()},m(n,o){t&&t.m(n,o),w(n,e,o)},p(n,o){!n[23]||n[23]<=n[2]?t?t.p(n,o):(t=w0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&y(e),t&&t.d(n)}}}function C0(i){let e,t,n,o=wt(i[19]),r=[];for(let s=0;s<o.length;s+=1)r[s]=k0(b0(i,o,s));return{c(){e=I("span"),t=I("span");for(let s=0;s<r.length;s+=1)r[s].c();n=G(),f(t,"class","caption-segment svelte-c2x749"),fi(t,"font-size",i[6]+"px"),f(e,"class","caption-line svelte-c2x749")},m(s,a){w(s,e,a),_(e,t);for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(t,null);_(e,n)},p(s,a){if(a&132){o=wt(s[19]);let l;for(l=0;l<o.length;l+=1){let u=b0(s,o,l);r[l]?r[l].p(u,a):(r[l]=k0(u),r[l].c(),r[l].m(t,null))}for(;l<r.length;l+=1)r[l].d(1);r.length=o.length}a&64&&fi(t,"font-size",s[6]+"px")},d(s){s&&y(e),ui(r,s)}}}function M6(i){var o;let e,t=!!(i[1].length||(o=i[7])!=null&&o.length),n=t&&v0(i);return{c(){e=I("div"),n&&n.c(),f(e,"class","subtitles-container svelte-c2x749"),K(e,"shifted",i[0]),K(e,"auto",i[4]&&!i[5]&&!i[9])},m(r,s){w(r,e,s),n&&n.m(e,null)},p(r,[s]){var a;s&130&&(t=!!(r[1].length||(a=r[7])!=null&&a.length)),t?n?n.p(r,s):(n=v0(r),n.c(),n.m(e,null)):n&&(n.d(1),n=null),s&1&&K(e,"shifted",r[0]),s&560&&K(e,"auto",r[4]&&!r[5]&&!r[9])},i:_e,o:_e,d(r){r&&y(e),n&&n.d()}}}function L6(i,e,t){let n,o,r,s,a,l,{shifted:u}=e,{captions:c}=e,{position:m}=e,{playerSize:h}=e,{isMobile:v=!1}=e,g=it(),T=Mt(),C=g.state.currentSubtitle$;D(i,C,x=>t(16,a=x));let A=g.state.isAutoSubtitleCaptionVisible$;D(i,A,x=>t(9,l=x));let S=g.state.isLive$;D(i,S,x=>t(15,s=x));let k,P=null,H;return Ct(()=>{t(14,P=new Bl().subscribe());let x=P.captionsPrepared$.subscribe(M=>{t(7,H=M)});return()=>{P==null||P.destroy(),x.unsubscribe()}}),Ct(()=>{if(n){let x=window.setTimeout(()=>{A.set(!1)},T.autoSubtitlesTimeout);return()=>{window.clearTimeout(x)}}else A.set(!1)}),i.$$set=x=>{"shifted"in x&&t(0,u=x.shifted),"captions"in x&&t(1,c=x.captions),"position"in x&&t(2,m=x.position),"playerSize"in x&&t(13,h=x.playerSize),"isMobile"in x&&t(3,v=x.isMobile)},i.$$.update=()=>{if(i.$$.dirty&65536&&t(4,n=!!a.isAuto),i.$$.dirty&32768&&t(5,o=!!s),i.$$.dirty&8192){let x=h.width*.02;t(6,k=x<=T.minSubtitlesFontSize?T.minSubtitlesFontSize:x)}i.$$.dirty&16434&&(P==null||P.setIsAuto(n),P==null||P.setIsLive(o),P==null||P.setCaptions(c)),i.$$.dirty&8192&&t(8,r=h.width<400?10:h.width<550?14:24)},[u,c,m,v,n,o,k,H,r,l,C,A,S,h,P,s,a]}var jc=class extends O{constructor(e){super(),F(this,e,L6,M6,N,{shifted:0,captions:1,position:2,playerSize:13,isMobile:3},I6)}},Nl=jc;function V6(i){ye(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 S0(i){let e,t,n;return{c(){e=I("div"),t=Oe("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Oe(i[1]),f(e,"class","text svelte-raurnb")},m(o,r){w(o,e,r),_(e,t),_(e,n)},p(o,r){r&2&&We(n,o[1])},d(o){o&&y(e)}}}function R6(i){let e,t,n,o,r,s,a=i[1]&&S0(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=G(),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]||""}')`),K(e,"bgCover",i[2].features.previewNoEmptySpace)},m(l,u){w(l,e,u),_(e,t),_(e,n),a&&a.m(e,null),r||(s=Te(e,"click",i[3]),r=!0)},p(l,[u]){l[1]?a?a.p(l,u):(a=S0(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:_e,o:_e,d(l){l&&y(e),a&&a.d(),r=!1,s()}}}function B6(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e,r=Mt();function s(a){Rn.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 Gc=class extends O{constructor(e){super(),F(this,e,B6,R6,N,{thumbUrl:0,chromecastDeviceName:1},V6)}},Dl=Gc;function N6(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=le(a,s[l]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"),Ce(e,a)},m(l,u){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),Ce(e,a=xe(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=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var Yc=class extends O{constructor(e){super(),F(this,e,D6,N6,N,{})}},T0=Yc;function O6(i){ye(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 F6(i){let e,t,n;return t=new T0({}),{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:_e,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 O{constructor(e){super(),F(this,e,null,F6,N,{},O6)}},Ol=Qc;function x6(i){ye(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 Go({}),{c(){e=I("div"),t=I("div"),n=I("div"),o=G(),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=j("tooltip_play")),f(e,"class","container svelte-1xnh9dd"),f(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),K(e,"hidden",i[1]),K(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=[Te(t,"keydown",i[3]),Te(e,"click",vt(function(){Qt(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)&&K(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,ct(c)}}}function q6(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,s=it(),a=Mt(),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 Zc=class extends O{constructor(e){super(),F(this,e,q6,H6,N,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},x6)}get handlePressKey(){return this.$$.ctx[3]}},Fl=Zc;function U6(i){ye(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: `),v=Oe(h),g=G(),y=Oe(S),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(A,I){k(A,e,I),_(e,t),_(e,n),_(e,o),_(o,r),_(o,a),_(o,s),_(o,c),_(o,m),_(o,v),_(o,g),_(o,y)},p(A,I){I&1&&l!==(l=(A[0].videoCodec||"")+"")&&Ke(a,l),I&1&&u!==(u=A[0].hdr?"(HDR)":"")&&Ke(c,u),I&1&&h!==(h=(A[0].audioCodec||"")+"")&&Ke(v,h),I&1&&S!==(S=A[0].audioLanguage?`(${A[0].audioLanguage})`:"")&&Ke(y,S)},d(A){A&&w(e)}}}function T1(i){let e,t,n,o,r=i[0].viewport+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Viewport",n=G(),o=T("span"),l=Oe(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(a,s){k(a,e,s),_(e,t),_(e,n),_(e,o),_(o,l)},p(a,s){s&1&&r!==(r=a[0].viewport+"")&&Ke(l,r)},d(a){a&&w(e)}}}function I1(i){let e,t,n,o,r=i[0].videoSize+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Video size",n=G(),o=T("span"),l=Oe(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(a,s){k(a,e,s),_(e,t),_(e,n),_(e,o),_(o,l)},p(a,s){s&1&&r!==(r=a[0].videoSize+"")&&Ke(l,r)},d(a){a&&w(e)}}}function P1(i){let e,t,n,o,r=i[0].cdn+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="CDN host",n=G(),o=T("span"),l=Oe(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(a,s){k(a,e,s),_(e,t),_(e,n),_(e,o),_(o,l)},p(a,s){s&1&&r!==(r=a[0].cdn+"")&&Ke(l,r)},d(a){a&&w(e)}}}function E1(i){let e,t,n,o,r=i[0].volume+"",l,a;return{c(){e=T("div"),t=T("div"),t.textContent="Volume",n=G(),o=T("span"),l=Oe(r),a=Oe(" %"),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(s,u){k(s,e,u),_(e,t),_(e,n),_(e,o),_(o,l),_(o,a)},p(s,u){u&1&&r!==(r=s[0].volume+"")&&Ke(l,r)},d(s){s&&w(e)}}}function A1(i){let e,t,n,o,r=i[0].buffer.toFixed(2)+"",l,a;return{c(){e=T("div"),t=T("div"),t.textContent="Buffer",n=G(),o=T("span"),l=Oe(r),a=Oe(" s"),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(s,u){k(s,e,u),_(e,t),_(e,n),_(e,o),_(o,l),_(o,a)},p(s,u){u&1&&r!==(r=s[0].buffer.toFixed(2)+"")&&Ke(l,r)},d(s){s&&w(e)}}}function M1(i){let e,t,n,o,r=i[0].liveLatency.toFixed(2)+"",l,a;return{c(){e=T("div"),t=T("div"),t.textContent="Live latency",n=G(),o=T("span"),l=Oe(r),a=Oe(" s"),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(s,u){k(s,e,u),_(e,t),_(e,n),_(e,o),_(o,l),_(o,a)},p(s,u){u&1&&r!==(r=s[0].liveLatency.toFixed(2)+"")&&Ke(l,r)},d(s){s&&w(e)}}}function L1(i){let e,t,n,o,r=[{value:i[0].currentVideoSegmentLength,title:"Video:"},{value:i[0].currentAudioSegmentLength,title:"Audio:"}].filter(B1).map(N1).join(" & ")+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Segment",n=G(),o=T("span"),l=Oe(r),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(a,s){k(a,e,s),_(e,t),_(e,n),_(e,o),_(o,l)},p(a,s){s&1&&r!==(r=[{value:a[0].currentVideoSegmentLength,title:"Video:"},{value:a[0].currentAudioSegmentLength,title:"Audio:"}].filter(B1).map(N1).join(" & ")+"")&&Ke(l,r)},d(a){a&&w(e)}}}function V1(i){let e,t,n,o,r,l,a=i[0].speed.toFixed(2)+"",s,u,c;return o=new Qs({props:{values:i[5]}}),{c(){e=T("div"),t=T("div"),t.textContent="Network",n=G(),R(o.$$.fragment),r=G(),l=T("span"),s=Oe(a),u=Oe(" Kbps"),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(m,h){k(m,e,h),_(e,t),_(e,n),M(o,e,null),_(e,r),_(e,l),_(l,s),_(l,u),c=!0},p(m,h){let v={};h&32&&(v.values=m[5]),o.$set(v),(!c||h&1)&&a!==(a=m[0].speed.toFixed(2)+"")&&Ke(s,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){p(o.$$.fragment,m),c=!1},d(m){m&&w(e),L(o)}}}function R1(i){let e,t,n,o,r,l,a=i[0].bitrate.toFixed(2)+"",s,u,c;return o=new Qs({props:{values:i[6]}}),{c(){e=T("div"),t=T("div"),t.textContent="V bitrate",n=G(),R(o.$$.fragment),r=G(),l=T("span"),s=Oe(a),u=Oe(" Kbps"),f(t,"class","svelte-12aksxn"),f(e,"class","svelte-12aksxn")},m(m,h){k(m,e,h),_(e,t),_(e,n),M(o,e,null),_(e,r),_(e,l),_(l,s),_(l,u),c=!0},p(m,h){let v={};h&64&&(v.values=m[6]),o.$set(v),(!c||h&1)&&a!==(a=m[0].bitrate.toFixed(2)+"")&&Ke(s,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){p(o.$$.fragment,m),c=!1},d(m){m&&w(e),L(o)}}}function jg(i){let e,t,n,o,r,l,a,s,u=i[0].version+"",c,m,h,v,g,S,y,A,I,C,P,U,x,V,Z,ae,Q,ue,q,H,be,W,te,z,pe,se,X,re,oe,Ze,Fe,Ie,Ce,Ae,qe,J=i[0].id&&w1(i),he=i[0].vsid&&k1(i),Te=i[0].provider&&C1(i),Ye=(i[0].videoCodec||i[0].audioCodec)&&S1(i),nt=i[0].viewport&&T1(i),st=i[0].videoSize&&I1(i),at=i[0].cdn&&P1(i),ct=i[0].volume&&E1(i),me=i[0].buffer&&A1(i),Qe=i[0].liveLatency&&M1(i),De=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&L1(i),lt=i[0].speed&&V1(i),je=i[0].bitrate&&R1(i);return re=new Qs({props:{values:i[4]}}),{c(){e=T("div"),t=T("button"),t.textContent="[x]",n=G(),o=T("div"),r=T("div"),l=T("div"),l.textContent="Version",a=G(),s=T("span"),c=Oe(u),m=G(),J&&J.c(),h=G(),he&&he.c(),v=G(),Te&&Te.c(),g=G(),Ye&&Ye.c(),S=G(),nt&&nt.c(),y=G(),st&&st.c(),A=G(),at&&at.c(),I=G(),ct&&ct.c(),C=G(),me&&me.c(),P=G(),Qe&&Qe.c(),U=G(),De&&De.c(),x=G(),V=T("div"),Z=T("div"),Z.textContent="Dropped",ae=G(),Q=T("span"),ue=Oe(i[2]),q=Oe(" / "),H=Oe(i[1]),be=Oe(" frames"),W=G(),lt&<.c(),te=G(),je&&je.c(),z=G(),pe=T("div"),se=T("div"),se.textContent="FPS",X=G(),R(re.$$.fragment),oe=G(),Ze=T("span"),Fe=Oe(i[3]),f(t,"class","close svelte-12aksxn"),f(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),f(l,"class","svelte-12aksxn"),f(r,"class","svelte-12aksxn"),f(Z,"class","svelte-12aksxn"),f(V,"class","svelte-12aksxn"),f(se,"class","svelte-12aksxn"),f(pe,"class","svelte-12aksxn"),f(o,"class","content svelte-12aksxn"),f(e,"class","container svelte-12aksxn"),f(e,"role","region"),f(e,"aria-label",Ie=j("aria_label_debug_panel")),K(e,"container-mobile",i[7])},m(xe,Pe){k(xe,e,Pe),_(e,t),_(e,n),_(e,o),_(o,r),_(r,l),_(r,a),_(r,s),_(s,c),_(o,m),J&&J.m(o,null),_(o,h),he&&he.m(o,null),_(o,v),Te&&Te.m(o,null),_(o,g),Ye&&Ye.m(o,null),_(o,S),nt&&nt.m(o,null),_(o,y),st&&st.m(o,null),_(o,A),at&&at.m(o,null),_(o,I),ct&&ct.m(o,null),_(o,C),me&&me.m(o,null),_(o,P),Qe&&Qe.m(o,null),_(o,U),De&&De.m(o,null),_(o,x),_(o,V),_(V,Z),_(V,ae),_(V,Q),_(Q,ue),_(Q,q),_(Q,H),_(Q,be),_(o,W),lt&<.m(o,null),_(o,te),je&&je.m(o,null),_(o,z),_(o,pe),_(pe,se),_(pe,X),M(re,pe,null),_(pe,oe),_(pe,Ze),_(Ze,Fe),Ce=!0,Ae||(qe=Se(t,"click",vt(i[9])),Ae=!0)},p(xe,[Pe]){(!Ce||Pe&1)&&u!==(u=xe[0].version+"")&&Ke(c,u),xe[0].id?J?J.p(xe,Pe):(J=w1(xe),J.c(),J.m(o,h)):J&&(J.d(1),J=null),xe[0].vsid?he?he.p(xe,Pe):(he=k1(xe),he.c(),he.m(o,v)):he&&(he.d(1),he=null),xe[0].provider?Te?Te.p(xe,Pe):(Te=C1(xe),Te.c(),Te.m(o,g)):Te&&(Te.d(1),Te=null),xe[0].videoCodec||xe[0].audioCodec?Ye?Ye.p(xe,Pe):(Ye=S1(xe),Ye.c(),Ye.m(o,S)):Ye&&(Ye.d(1),Ye=null),xe[0].viewport?nt?nt.p(xe,Pe):(nt=T1(xe),nt.c(),nt.m(o,y)):nt&&(nt.d(1),nt=null),xe[0].videoSize?st?st.p(xe,Pe):(st=I1(xe),st.c(),st.m(o,A)):st&&(st.d(1),st=null),xe[0].cdn?at?at.p(xe,Pe):(at=P1(xe),at.c(),at.m(o,I)):at&&(at.d(1),at=null),xe[0].volume?ct?ct.p(xe,Pe):(ct=E1(xe),ct.c(),ct.m(o,C)):ct&&(ct.d(1),ct=null),xe[0].buffer?me?me.p(xe,Pe):(me=A1(xe),me.c(),me.m(o,P)):me&&(me.d(1),me=null),xe[0].liveLatency?Qe?Qe.p(xe,Pe):(Qe=M1(xe),Qe.c(),Qe.m(o,U)):Qe&&(Qe.d(1),Qe=null),xe[0].currentVideoSegmentLength||xe[0].currentAudioSegmentLength?De?De.p(xe,Pe):(De=L1(xe),De.c(),De.m(o,x)):De&&(De.d(1),De=null),(!Ce||Pe&4)&&Ke(ue,xe[2]),(!Ce||Pe&2)&&Ke(H,xe[1]),xe[0].speed?lt?(lt.p(xe,Pe),Pe&1&&d(lt,1)):(lt=V1(xe),lt.c(),d(lt,1),lt.m(o,te)):lt&&(ce(),p(lt,1,1,()=>{lt=null}),fe()),xe[0].bitrate?je?(je.p(xe,Pe),Pe&1&&d(je,1)):(je=R1(xe),je.c(),d(je,1),je.m(o,z)):je&&(ce(),p(je,1,1,()=>{je=null}),fe());let ft={};Pe&16&&(ft.values=xe[4]),re.$set(ft),(!Ce||Pe&8)&&Ke(Fe,xe[3]),(!Ce||Pe&128)&&K(e,"container-mobile",xe[7])},i(xe){Ce||(d(lt),d(je),d(re.$$.fragment,xe),Ce=!0)},o(xe){p(lt),p(je),p(re.$$.fragment,xe),Ce=!1},d(xe){xe&&w(e),J&&J.d(),he&&he.d(),Te&&Te.d(),Ye&&Ye.d(),nt&&nt.d(),st&&st.d(),at&&at.d(),ct&&ct.d(),me&&me.d(),Qe&&Qe.d(),De&&De.d(),lt&<.d(),je&&je.d(),L(re),Ae=!1,qe()}}}var B1=({value:i})=>i,N1=({value:i,title:e})=>`${e} ${((i!=null?i:0)/1e3).toFixed(2)} s`;function Gg(i,e,t){let n,o=it(),r=o.ui.debugPanelVisible,l=o.ui.isMobile;B(i,l,C=>t(7,n=C));let a=()=>{y1.remove(Jr),r.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),c=0,m=0,h=0,v=new Ar(60),g=new Ar(60),S=new Ar(60),y=[],A=[],I=[];return Ct(()=>{y1.set(Jr,"true"),o.actions.internal.startLogging(),u&&(t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,c=u.getVideoPlaybackQuality().totalVideoFrames));let C=window.setInterval(()=>{t(0,s=o.actions.internal.getDebugPanelData())},500),P;return u&&(P=window.setInterval(()=>{if(u){t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames);let U=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=U-c),t(1,c=U),v.push(h),s.speed&&g.push(s.speed),s.bitrate&&S.push(s.bitrate),t(4,y=v.getValuesFromBottom()),t(5,A=g.getValuesFromBottom()),t(6,I=S.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(C),P&&clearInterval(P)}}),[s,c,m,h,y,A,I,n,l,a]}var Wa=class extends O{constructor(e){super(),F(this,e,Gg,jg,D,{},Kg)}},Zs=Wa;function Yg(i){ve(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 Qg(i){let e,t,n;return{c(){e=T("div"),f(e,"class","close svelte-1ome55p")},m(o,r){k(o,e,r),t||(n=Se(e,"click",vt(i[0])),t=!0)},p:_e,i:_e,o:_e,d(o){o&&w(e),t=!1,n()}}}function Zg(i){function e(t){Bn.call(this,i,t)}return[e]}var Ka=class extends O{constructor(e){super(),F(this,e,Zg,Qg,D,{},Yg)}},Xs=Ka;import{noop as Xg}from"@vkontakte/videoplayer-shared/es2018";function Jg(i){ve(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 $g(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("canvas"),n=G(),o=N("svg"),r=N("g"),l=N("g"),a=N("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(l,"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(s,u){k(s,e,u),_(e,t),i[3](t),_(e,n),_(e,o),_(o,r),_(r,l),_(l,a)},p:_e,i:_e,o:_e,d(s){s&&w(e),i[3](null)}}}var eb=5e3;function tb(i,e,t){let{isRunning:n=!0}=e,{onTimerEnded:o=Xg}=e,r,l,a,s,u,c=()=>{n&&(u=(Date.now()-a)/eb,u<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),l==null||l.stroke(),s=requestAnimationFrame(c)):o())};Ct(()=>{if(l=r.getContext("2d"),!!l)return l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff",()=>{cancelAnimationFrame(s)}});function m(h){ye[h?"unshift":"push"](()=>{r=h,t(0,r)})}return i.$$set=h=>{"isRunning"in h&&t(1,n=h.isRunning),"onTimerEnded"in h&&t(2,o=h.onTimerEnded)},i.$$.update=()=>{i.$$.dirty&2&&n&&(a=Date.now(),s=requestAnimationFrame(c))},[r,n,o,m]}var ja=class extends O{constructor(e){super(),F(this,e,tb,$g,D,{isRunning:1,onTimerEnded:2},Jg)}},Js=ja;function ib(i){ve(i,"svelte-149n6j1",".overlay.svelte-149n6j1{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-149n6j1{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.svelte-149n6j1{display:flex;justify-content:space-between}.caption.svelte-149n6j1{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-149n6j1{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%}.column.svelte-149n6j1{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-149n6j1{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.svelte-149n6j1{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.svelte-149n6j1{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function nb(i){let e,t,n,o,r,l,a,s,u,c,m,h,v,g,S,y,A,I,C,P,U,x;return a=new Xs({}),a.$on("click",i[6]),g=new Js({props:{isRunning:i[2],onTimerEnded:i[5]}}),{c(){e=T("div"),t=G(),n=T("div"),o=T("div"),r=T("div"),r.textContent=`${j("end_screen_next_video")}`,l=G(),R(a.$$.fragment),s=G(),u=T("div"),c=T("div"),m=T("div"),h=T("div"),v=G(),R(g.$$.fragment),y=G(),A=T("div"),I=T("div"),C=Oe(i[0]),f(e,"class","overlay svelte-149n6j1"),f(r,"class","caption svelte-149n6j1"),f(o,"class","top svelte-149n6j1"),f(h,"class","thumb-overlay svelte-149n6j1"),f(m,"class","thumb svelte-149n6j1"),f(m,"style",S=`background-image: url('${i[1]}')`),f(c,"class","column svelte-149n6j1"),f(I,"class","title svelte-149n6j1"),f(A,"class","column svelte-149n6j1"),f(u,"class","row svelte-149n6j1"),f(n,"class","next-video svelte-149n6j1")},m(V,Z){k(V,e,Z),k(V,t,Z),k(V,n,Z),_(n,o),_(o,r),_(o,l),M(a,o,null),_(n,s),_(n,u),_(u,c),_(c,m),_(m,h),_(m,v),M(g,m,null),_(u,y),_(u,A),_(A,I),_(I,C),P=!0,U||(x=Se(u,"click",i[4]),U=!0)},p(V,[Z]){let ae={};Z&4&&(ae.isRunning=V[2]),g.$set(ae),(!P||Z&2&&S!==(S=`background-image: url('${V[1]}')`))&&f(m,"style",S),(!P||Z&1)&&Ke(C,V[0])},i(V){P||(d(a.$$.fragment,V),d(g.$$.fragment,V),P=!0)},o(V){p(a.$$.fragment,V),p(g.$$.fragment,V),P=!1},d(V){V&&(w(e),w(t),w(n)),L(a),L(g),U=!1,x()}}}function ob(i,e,t){let n,{title:o}=e,{thumb:r}=e,{clickCloseIcon:l}=e,a=it(),s=a.ui.timerNextVideoRunning$;B(i,s,y=>t(2,n=y));let u=a.actions.internal.nextVideoClick,c=a.actions.internal.nextVideoAnnouncementClick,m=a.actions.internal.nextVideoAnnouncementAuto,h=a.actions.internal.nextVideoAnnouncementCancel,v=()=>{u(!1),c()},g=()=>{u(!1),m()},S=()=>{l(),h()};return i.$$set=y=>{"title"in y&&t(0,o=y.title),"thumb"in y&&t(1,r=y.thumb),"clickCloseIcon"in y&&t(7,l=y.clickCloseIcon)},[o,r,n,s,v,g,S,l]}var Ga=class extends O{constructor(e){super(),F(this,e,ob,nb,D,{title:0,thumb:1,clickCloseIcon:7},ib)}},D1=Ga;import{PlaybackState as lr}from"@vkontakte/videoplayer-core/es2018";import{checkNever as sb}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Sn}from"@vkontakte/videoplayer-statistics/es2018";var Ya=(i,e)=>Math.min(+(i+e).toFixed(2),1),Qa=(i,e)=>Math.max(+(i-e).toFixed(2),0),$s=(i,e,t)=>{let n=Ya(e,t);e<1&&i.actions.internal.setVolume(n)},el=(i,e,t)=>{let n=Qa(e,t);e>0&&i.actions.internal.setVolume(n)};var qo=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e==null||e(),!1):t?!0:(n==null||n(),!1);function lb(i){ve(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function ab(i){let e,t,n,o,r,l=i[26].default,a=Ve(l,i,i[25],null);return{c(){e=T("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(s,u){k(s,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(r=[Se(e,"keyup",i[17]),Se(e,"keydown",i[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Be(a,l,s,s[25],n?Re(l,s[25],u,null):Ne(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){p(a,s),n=!1},d(s){s&&w(e),a&&a.d(s),i[27](null),o=!1,ut(r)}}}function ub(i,e,t){var Pe,ft;let n,o,r,l,a,s,u,c,m,h,v,g,S,y,A,{$$slots:I={},$$scope:C}=e,{isAds:P}=e,{hideContextMenu:U}=e,{toggleFullscreen:x}=e,{showHotKeyHelpers:V}=e,{showKeyMap:Z}=e,{fakePlayButtonHandler:ae}=e,Q=it(),ue=Mt(),q=Q.getLogger().createComponentLog("KeyboardControls component"),H=Q.state.playbackState$;B(i,H,ge=>t(31,o=ge));let be=Q.ads.playbackState;B(i,be,ge=>t(30,n=ge));let W=Q.state.positionExact$;B(i,W,ge=>t(41,g=ge));let te=Q.state.duration$;B(i,te,ge=>t(40,v=ge));let z=Q.state.volume$;B(i,z,ge=>t(44,A=ge));let pe=Q.ui.controls.disabledControls$;B(i,pe,ge=>t(39,h=ge));let se=Q.state.muted$;B(i,se,ge=>t(34,a=ge));let X=Q.state.currentSubtitle$;B(i,X,ge=>t(33,l=ge));let re=Q.state.currentPlaybackRate$;B(i,re,ge=>t(42,S=ge));let oe=Q.state.availablePlaybackRates$;B(i,oe,ge=>t(43,y=ge));let Ze=Q.ui.contextMenu.openedByHotKey$,Fe=Q.ui.contextMenu.lastActiveElem$,Ie=Q.ui.contextMenu.visible$,Ce=Q.ui.contextMenu.position$,Ae=Q.state.isEnded$;B(i,Ae,ge=>t(36,u=ge));let qe=Q.ui.overlayContainer$;B(i,qe,ge=>t(32,r=ge));let J=(Pe=Q.callbacks)==null?void 0:Pe.onAudioDoesNotExistHint,he=(ft=Q.callbacks)==null?void 0:ft.onAudioDisabledHint,Te=Q.state.isAudioAvailable$;B(i,Te,ge=>t(35,s=ge));let Ye=Q.state.isAudioDisabled,nt=Q.state.isInteractiveTime$;B(i,nt,ge=>t(38,m=ge));let{showInteractiveTimeIndicatorTooltip$:st}=dn();B(i,st,ge=>t(37,c=ge));let at=0,ct=!0,me,Qe=()=>me==null?void 0:me.focus(),De=ge=>(ge!==ct&&(ct=ge,at=0),at+=1,(ue.controls.seekStepKeyboard+ue.controls.seekStepKeyboard*at)/1e3),lt=ge=>{var Vt;let dt=ge.target,bt=(Vt=dt==null?void 0:dt.getAttribute("role"))==null?void 0:Vt.includes("menuitem"),Xe=dt.classList.contains("btn"),yt=ge.code;if(Xe&&yt==="Space")return;let Tt=ad.has(yt);if(bt&&Tt)return;let Kt=!ld.has(yt);if(ge.ctrlKey&&Kt||ge.altKey&&Kt||ge.metaKey)return;let Ut=bt&&yt==="Escape";ud.has(yt)||Ut||U();let jt=o===lr.PLAYING||o===lr.PAUSED,Ht=P&&(n==="paused"||n==="playing"),zt=!Ht&&!h.has("TIMELINE");if(jt||Ht)switch(q({message:`key down, code: ${yt}`}),yt){case"KeyJ":case"ArrowLeft":{if(!zt)break;if(ge.ctrlKey||ge.altKey){let ot=Q.actions.internal.getPrevEpisode();Q.actions.internal.seekToPrevEpisode(ot),ot&&V({type:"EPISODE_PREV",text:ot.text}),ge.preventDefault()}else{let ot=ge.shiftKey?De(!1):ue.controls.seekStepKeyboard/1e3,St=Math.max(g-ot,0);g>0&&(Q.actions.internal.seekTime(St,Sn.DOUBLE_TAP),V({type:"BACKWARD_SEEK",text:ot.toString()}),ge.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!zt)break;if(ge.ctrlKey||ge.altKey){let ot=Q.actions.internal.getNextEpisode();Q.actions.internal.seekToNextEpisode(ot),ot&&V({type:"EPISODE_NEXT",text:ot.text}),ge.preventDefault()}else{let ot=ge.shiftKey?De(!0):ue.controls.seekStepKeyboard/1e3,St=Math.min(g+ot,v);Math.round(g)<Math.round(v)&&(Q.actions.internal.seekTime(St,Sn.DOUBLE_TAP),V({type:"FORWARD_SEEK",text:ot.toString()}),ge.preventDefault())}break}case"ArrowUp":{if(qo({isAudioDisabled:Ye,audioDisabledHintCallback:he,isAudioAvailable:s,audioIsNotExistHintCallback:J})){let ot=A,St=ue.controls.volumeStepKeyboard,Lt=ot<=1;if($s(Q,ot,St),Lt){let de=Math.round(Ya(ot,St)*100).toString();V({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:de}})}}ge.preventDefault();break}case"ArrowDown":{if(qo({isAudioDisabled:Ye,audioDisabledHintCallback:he,isAudioAvailable:s,audioIsNotExistHintCallback:J})){let ot=A,St=ue.controls.volumeStepKeyboard,Lt=ot>=0;if(el(Q,ot,St),Lt){let de=Math.round(Qa(ot,St)*100).toString();V({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:de}})}}ge.preventDefault();break}case"Comma":{if(ge.shiftKey){Q.actions.internal.decrementPlaybackRate();let ot=y.find(St=>St.value===S);V({type:"RATE_DOWN",text:ot==null?void 0:ot.displayValue}),ge.preventDefault()}else{if(Ht||o!==lr.PAUSED)break;let ot=Math.max(g-ue.controls.seekStepFrame/1e3,0);g>0&&(V({type:"BACKWARD_SEEK"}),Q.actions.internal.clearDelayedBufferingCheckTimeout(),Q.actions.internal.seekTime(ot,Sn.DOUBLE_TAP),ge.preventDefault())}break}case"Period":{if(ge.shiftKey){Q.actions.internal.incrementPlaybackRate();let ot=y.find(St=>St.value===S);V({type:"RATE_UP",text:ot==null?void 0:ot.displayValue}),ge.preventDefault()}else{if(Ht||o!==lr.PAUSED)break;let ot=Math.min(g+ue.controls.seekStepFrame/1e3,v);g<v&&(V({type:"FORWARD_SEEK"}),Q.actions.internal.clearDelayedBufferingCheckTimeout(),Q.actions.internal.seekTime(ot,Sn.DOUBLE_TAP),ge.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(m&&c&&st.set(!1),ae)ae();else{Q.actions.internal.togglePlay();let ot="PLAY";o===lr.PAUSED?ot="PAUSE":u&&(ot="REPLAY"),V({type:ot})}ge.preventDefault();break;case"KeyM":{qo({isAudioDisabled:Ye,audioDisabledHintCallback:he,isAudioAvailable:s,audioIsNotExistHintCallback:J})&&(V({type:a?"VOLUME":"MUTE"}),Q.actions.internal.toggleMuted()),ge.preventDefault();break}case"KeyF":x(),ge.preventDefault();break;case"KeyC":Q.actions.internal.toggleSubtitle(),l.value!=="off"?V({type:"SUBTITLES_ON",text:l==null?void 0:l.displayValue}):V({type:"SUBTITLES_OFF"}),ge.preventDefault();break;case"KeyI":Q.actions.internal.togglePictureInPicture(),ge.preventDefault();break;case"Digit1":case"Numpad1":if(ge.shiftKey){let ot=d1(r);Ce.set(ot),Fe.set(dt),Ze.set(!0),Ie.set(!0),ge.preventDefault();break}V(),Q.actions.internal.seekToPercent(.1,Sn.DOUBLE_TAP),ge.preventDefault();break;case"Digit2":case"Numpad2":V(),Q.actions.internal.seekToPercent(.2,Sn.DOUBLE_TAP),ge.preventDefault();break;case"Digit3":case"Numpad3":V(),Q.actions.internal.seekToPercent(.3,Sn.DOUBLE_TAP),ge.preventDefault();break;case"Digit4":case"Numpad4":V(),Q.actions.internal.seekToPercent(.4,Sn.DOUBLE_TAP),ge.preventDefault();break;case"Digit5":case"Numpad5":V(),Q.actions.internal.seekToPercent(.5,Sn.DOUBLE_TAP),ge.preventDefault();break;case"Digit6":case"Numpad6":V(),Q.actions.internal.seekToPercent(.6,Sn.DOUBLE_TAP),ge.preventDefault();break;case"Digit7":case"Numpad7":V(),Q.actions.internal.seekToPercent(.7,Sn.DOUBLE_TAP),ge.preventDefault();break;case"Digit8":case"Numpad8":V(),Q.actions.internal.seekToPercent(.8,Sn.DOUBLE_TAP),ge.preventDefault();break;case"Digit9":case"Numpad9":V(),Q.actions.internal.seekToPercent(.9,Sn.DOUBLE_TAP),ge.preventDefault();break;case"Digit0":case"Numpad0":V(),Q.actions.internal.seekToPercent(0,Sn.DOUBLE_TAP),ge.preventDefault();break;case"Slash":{ge.shiftKey&&ue.features.hotKeyMapModal&&(Z(),ge.preventDefault());break}case"ShiftLeft":case"ShiftRight":ge.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:sb(yt);break}},je=ge=>{let dt=ge.code;if(ge.ctrlKey||ge.altKey||ge.metaKey)return;let bt=o===lr.PLAYING||o===lr.PAUSED,Xe=P&&(n==="paused"||n==="playing");if(bt||Xe)switch(dt){case"ShiftLeft":case"ShiftRight":at=0;break}};function xe(ge){ye[ge?"unshift":"push"](()=>{me=ge,t(0,me)})}return i.$$set=ge=>{"isAds"in ge&&t(18,P=ge.isAds),"hideContextMenu"in ge&&t(19,U=ge.hideContextMenu),"toggleFullscreen"in ge&&t(20,x=ge.toggleFullscreen),"showHotKeyHelpers"in ge&&t(21,V=ge.showHotKeyHelpers),"showKeyMap"in ge&&t(22,Z=ge.showKeyMap),"fakePlayButtonHandler"in ge&&t(23,ae=ge.fakePlayButtonHandler),"$$scope"in ge&&t(25,C=ge.$$scope)},[me,H,be,W,te,z,pe,se,X,re,oe,Ae,qe,Te,nt,st,lt,je,P,U,x,V,Z,ae,Qe,C,I,xe]}var Za=class extends O{constructor(e){super(),F(this,e,ub,ab,D,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},lb,[-1,-1])}get focus(){return this.$$.ctx[24]}},O1=Za;function cb(i){ve(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 fb(i){let e,t,n,o,r,l;return{c(){e=T("div"),t=T("div"),n=G(),o=T("div"),r=G(),l=T("div"),f(t,"class","dot svelte-8nkw5s"),f(o,"class","dot svelte-8nkw5s"),f(l,"class","dot svelte-8nkw5s"),f(e,"class","container svelte-8nkw5s"),f(e,"style",i[0])},m(a,s){k(a,e,s),_(e,t),_(e,n),_(e,o),_(e,r),_(e,l)},p(a,[s]){s&1&&f(e,"style",a[0])},i:_e,o:_e,d(a){a&&w(e)}}}function db(i,e,t){let{style:n=""}=e;return i.$$set=o=>{"style"in o&&t(0,n=o.style)},[n]}var Xa=class extends O{constructor(e){super(),F(this,e,db,fb,D,{style:0},cb)}},Mr=Xa;function mb(i){let e,t,n,o,r,l,a,s,u,c,m,h,v,g,S=i[2].default,y=Ve(S,i,i[1],null),A=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],I={};for(let C=0;C<A.length;C+=1)I=le(I,A[C]);return{c(){e=N("svg"),y&&y.c(),t=N("g"),n=N("path"),o=N("path"),r=N("defs"),l=N("filter"),a=N("feFlood"),s=N("feColorMatrix"),u=N("feOffset"),c=N("feGaussianBlur"),m=N("feColorMatrix"),h=N("feBlend"),v=N("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(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"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(v,"in","SourceGraphic"),f(v,"in2","effect1_dropShadow_2422_111980"),f(v,"result","shape"),f(l,"id","a"),f(l,"width","23"),f(l,"height","23"),f(l,"x",".5"),f(l,"y",".5"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),ke(e,I)},m(C,P){k(C,e,P),y&&y.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,l),_(l,a),_(l,s),_(l,u),_(l,c),_(l,m),_(l,h),_(l,v),g=!0},p(C,[P]){y&&y.p&&(!g||P&2)&&Be(y,S,C,C[1],g?Re(S,C[1],P,null):Ne(C[1]),null),ke(e,I=He(A,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},P&1&&C[0]]))},i(C){g||(d(y,C),g=!0)},o(C){p(y,C),g=!1},d(C){C&&w(e),y&&y.d(C)}}}function pb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Ja=class extends O{constructor(e){super(),F(this,e,pb,mb,D,{})}},F1=Ja;import{noop as To}from"@vkontakte/videoplayer-shared/es2018";function _b(i){ve(i,"svelte-wr0kwr",".btn.svelte-wr0kwr{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center}.w-max.svelte-wr0kwr{width:100%}.btn--live.svelte-wr0kwr{padding:10px 4px}.btn-jc-l.svelte-wr0kwr{justify-content:left}.btn-m.svelte-wr0kwr{position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.btn-m--play.svelte-wr0kwr{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn-m--play.svelte-wr0kwr svg{transform:scale(2)}.btn-m--prev.svelte-wr0kwr,.btn-m--next.svelte-wr0kwr{position:absolute;width:50px;height:50px}.btn-m--prev.svelte-wr0kwr{right:calc(100% + 35px)}.btn-m--next.svelte-wr0kwr{left:calc(100% + 35px)}.btn.svelte-wr0kwr:disabled{cursor:default;pointer-events:none}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-wr0kwr:not(:disabled):hover{opacity:0.8}.pr-0.svelte-wr0kwr{padding-right:0}.pl-0.svelte-wr0kwr{padding-left:0}")}function hb(i){let e,t,n,o,r,l,a,s,u,c,m,h,v=i[14].default,g=Ve(v,i,i[13],null);return{c(){var S,y,A,I,C,P;e=T("button"),g&&g.c(),f(e,"class",t="btn "+i[1]+" svelte-wr0kwr"),f(e,"style",n=i[2]||null),e.disabled=o=(S=i[3])!=null?S:null,f(e,"aria-hidden",r=(y=i[5])!=null?y:null),f(e,"aria-label",l=(A=i[6])!=null?A:null),f(e,"aria-keyshortcuts",a=(I=i[7])!=null?I:null),f(e,"aria-expanded",s=(C=i[8])!=null?C:null),f(e,"data-testid",u=(P=i[4])!=null?P:null),f(e,"tabindex",i[9])},m(S,y){k(S,e,y),g&&g.m(e,null),i[16](e),c=!0,m||(h=[Se(e,"pointerdown",vt(i[15])),Se(e,"click",vt(function(){Qt(i[10]===To?null:i[10])&&(i[10]===To?null:i[10]).apply(this,arguments)})),Se(e,"focus",mi(function(){Qt(i[11]===To?null:i[11])&&(i[11]===To?null:i[11]).apply(this,arguments)})),Se(e,"blur",mi(function(){Qt(i[12]===To?null:i[12])&&(i[12]===To?null:i[12]).apply(this,arguments)}))],m=!0)},p(S,[y]){var A,I,C,P,U,x;i=S,g&&g.p&&(!c||y&8192)&&Be(g,v,i,i[13],c?Re(v,i[13],y,null):Ne(i[13]),null),(!c||y&2&&t!==(t="btn "+i[1]+" svelte-wr0kwr"))&&f(e,"class",t),(!c||y&4&&n!==(n=i[2]||null))&&f(e,"style",n),(!c||y&8&&o!==(o=(A=i[3])!=null?A:null))&&(e.disabled=o),(!c||y&32&&r!==(r=(I=i[5])!=null?I:null))&&f(e,"aria-hidden",r),(!c||y&64&&l!==(l=(C=i[6])!=null?C:null))&&f(e,"aria-label",l),(!c||y&128&&a!==(a=(P=i[7])!=null?P:null))&&f(e,"aria-keyshortcuts",a),(!c||y&256&&s!==(s=(U=i[8])!=null?U:null))&&f(e,"aria-expanded",s),(!c||y&16&&u!==(u=(x=i[4])!=null?x:null))&&f(e,"data-testid",u),(!c||y&512)&&f(e,"tabindex",i[9])},i(S){c||(d(g,S),c=!0)},o(S){p(g,S),c=!1},d(S){S&&w(e),g&&g.d(S),i[16](null),m=!1,ut(h)}}}function gb(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:r=""}=e,{style:l=""}=e,{disabled:a=void 0}=e,{testId:s=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:c=void 0}=e,{ref:m=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:v=void 0}=e,{tabIndex:g=0}=e,{click:S=To}=e,{focus:y=To}=e,{blur:A=To}=e;function I(P){Bn.call(this,i,P)}function C(P){ye[P?"unshift":"push"](()=>{m=P,t(0,m)})}return i.$$set=P=>{"className"in P&&t(1,r=P.className),"style"in P&&t(2,l=P.style),"disabled"in P&&t(3,a=P.disabled),"testId"in P&&t(4,s=P.testId),"ariaHidden"in P&&t(5,u=P.ariaHidden),"ariaLabel"in P&&t(6,c=P.ariaLabel),"ref"in P&&t(0,m=P.ref),"ariaKeyShortCut"in P&&t(7,h=P.ariaKeyShortCut),"ariaExpanded"in P&&t(8,v=P.ariaExpanded),"tabIndex"in P&&t(9,g=P.tabIndex),"click"in P&&t(10,S=P.click),"focus"in P&&t(11,y=P.focus),"blur"in P&&t(12,A=P.blur),"$$scope"in P&&t(13,o=P.$$scope)},[m,r,l,a,s,u,c,h,v,g,S,y,A,o,n,I,C]}var $a=class extends O{constructor(e){super(),F(this,e,gb,hb,D,{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},_b)}},gt=$a;function bb(i){ve(i,"svelte-1witlsj",".modal-overlay.svelte-1witlsj{position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center}.modal-container.svelte-1witlsj{display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px}.modal-header.svelte-1witlsj{box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24)}.modal-title.svelte-1witlsj{margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.modal-scroll.svelte-1witlsj{overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%}.modal-scroll.svelte-1witlsj::-webkit-scrollbar{width:8px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track{box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.svelte-1witlsj{margin:-8px -4px 0 0}")}function x1(i){let e,t,n,o,r,l=i[2]&&H1(i);return{c(){e=T("div"),t=T("h3"),n=Oe(i[3]),o=G(),l&&l.c(),f(t,"class","modal-title svelte-1witlsj"),f(e,"class","modal-header svelte-1witlsj")},m(a,s){k(a,e,s),_(e,t),_(t,n),_(e,o),l&&l.m(e,null),r=!0},p(a,s){(!r||s&8)&&Ke(n,a[3]),a[2]?l?(l.p(a,s),s&4&&d(l,1)):(l=H1(a),l.c(),d(l,1),l.m(e,null)):l&&(ce(),p(l,1,1,()=>{l=null}),fe())},i(a){r||(d(l),r=!0)},o(a){p(l),r=!1},d(a){a&&w(e),l&&l.d()}}}function H1(i){let e,t;return e=new gt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:j("hotkey_map_modal_close_btn_text"),$$slots:{default:[vb]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function vb(i){let e,t;return e=new F1({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function yb(i){let e,t,n,o,r,l,a=i[1]&&x1(i),s=i[4].default,u=Ve(s,i,i[5],null);return{c(){e=T("div"),t=T("div"),a&&a.c(),n=G(),o=T("div"),r=T("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){k(c,e,m),_(e,t),a&&a.m(t,null),_(t,n),_(t,o),_(o,r),u&&u.m(r,null),l=!0},p(c,[m]){c[1]?a?(a.p(c,m),m&2&&d(a,1)):(a=x1(c),a.c(),d(a,1),a.m(t,n)):a&&(ce(),p(a,1,1,()=>{a=null}),fe()),u&&u.p&&(!l||m&32)&&Be(u,s,c,c[5],l?Re(s,c[5],m,null):Ne(c[5]),null)},i(c){l||(d(a),d(u,c),l=!0)},o(c){p(a),p(u,c),l=!1},d(c){c&&w(e),a&&a.d(),u&&u.d(c)}}}function wb(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:r}=e,{showHeader:l=!0}=e,{showCloseCross:a=!0}=e,{title:s}=e;return i.$$set=u=>{"onClose"in u&&t(0,r=u.onClose),"showHeader"in u&&t(1,l=u.showHeader),"showCloseCross"in u&&t(2,a=u.showCloseCross),"title"in u&&t(3,s=u.title),"$$scope"in u&&t(5,o=u.$$scope)},[r,l,a,s,n,o]}var eu=class extends O{constructor(e){super(),F(this,e,wb,yb,D,{onClose:0,showHeader:1,showCloseCross:2,title:3},bb)}},q1=eu;var kb=new Set(["BR"]),tu=i=>{var o;let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let r=t[n],l=r.tagName;kb.has(l)||(o=r.parentElement)==null||o.removeChild(r)}return e.innerHTML};function Cb(i){ve(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 U1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function z1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function W1(i){let e,t,n=tu(i[9])+"",o,r,l=i[10]+"",a,s;return{c(){e=T("li"),t=T("span"),o=G(),r=T("span"),a=Oe(l),s=G(),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){k(u,e,c),_(e,t),t.innerHTML=n,_(e,o),_(e,r),_(r,a),_(e,s)},p(u,c){c&1&&n!==(n=tu(u[9])+"")&&(t.innerHTML=n),c&1&&l!==(l=u[10]+"")&&Ke(a,l)},d(u){u&&w(e)}}}function K1(i){let e,t,n=i[5]+"",o,r,l,a,s=wt(i[6]),u=[];for(let c=0;c<s.length;c+=1)u[c]=W1(z1(i,s,c));return{c(){e=T("div"),t=T("h5"),o=Oe(n),r=G(),l=T("ul");for(let c=0;c<u.length;c+=1)u[c].c();a=G(),f(t,"class","hot-key-map-group-title svelte-quklnq"),f(l,"class","hot-key-map-group-items svelte-quklnq"),f(e,"class","hot-key-map-group svelte-quklnq")},m(c,m){k(c,e,m),_(e,t),_(t,o),_(e,r),_(e,l);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(l,null);_(e,a)},p(c,m){if(m&1&&n!==(n=c[5]+"")&&Ke(o,n),m&1){s=wt(c[6]);let h;for(h=0;h<s.length;h+=1){let v=z1(c,s,h);u[h]?u[h].p(v,m):(u[h]=W1(v),u[h].c(),u[h].m(l,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=s.length}},d(c){c&&w(e),di(u,c)}}}function Sb(i){let e,t=wt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=K1(U1(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","hot-key-map svelte-quklnq")},m(o,r){k(o,e,r);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,r){if(r&1){t=wt(o[0].groups);let l;for(l=0;l<t.length;l+=1){let a=U1(o,t,l);n[l]?n[l].p(a,r):(n[l]=K1(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&w(e),di(n,o)}}}function Tb(i){let e,t;return e=new q1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[Sb]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function Ib(i,e,t){let n,o=it(),{data:r,show:l}=o.ui.modals.hotKeyMap;return B(i,r,s=>t(0,n=s)),[n,r,()=>{l.set(!1)}]}var iu=class extends O{constructor(e){super(),F(this,e,Ib,Tb,D,{},Cb)}},j1=iu;import{noop as Wp}from"@vkontakte/videoplayer-shared/es2018";var tl;function Lr(i){return tl||(tl=new ResizeObserver(e=>{for(let t of e)t.target.dispatchEvent(new CustomEvent("fd:resize"))})),tl.observe(i),{destroy(){tl.unobserve(i)}}}import{ChromecastState as ip,PlaybackState as vc}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";function Pb(i){ve(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 Eb(i){let e,t,n=i[1].default,o=Ve(n,i,i[0],null);return{c(){e=T("div"),o&&o.c(),f(e,"class","pillow svelte-1oe0j8n")},m(r,l){k(r,e,l),o&&o.m(e,null),t=!0},p(r,[l]){o&&o.p&&(!t||l&1)&&Be(o,n,r,r[0],t?Re(n,r[0],l,null):Ne(r[0]),null)},i(r){t||(d(o,r),t=!0)},o(r){p(o,r),t=!1},d(r){r&&w(e),o&&o.d(r)}}}function Ab(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var nu=class extends O{constructor(e){super(),F(this,e,Ab,Eb,D,{},Pb)}},G1=nu;import{VideoQuality as is}from"@vkontakte/videoplayer-shared/es2018";function Mb(i){let e,t,n,o,r=i[2].default,l=Ve(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("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"),ke(e,s)},m(u,c){k(u,e,c),l&&l.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Be(l,r,u,u[1],o?Re(r,u[1],c,null):Ne(u[1]),null),ke(e,s=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(l,u),o=!0)},o(u){p(l,u),o=!1},d(u){u&&w(e),l&&l.d(u)}}}function Lb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var ou=class extends O{constructor(e){super(),F(this,e,Lb,Mb,D,{})}},Y1=ou;function Vb(i){let e,t,n,o,r=i[2].default,l=Ve(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("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"),ke(e,s)},m(u,c){k(u,e,c),l&&l.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Be(l,r,u,u[1],o?Re(r,u[1],c,null):Ne(u[1]),null),ke(e,s=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(l,u),o=!0)},o(u){p(l,u),o=!1},d(u){u&&w(e),l&&l.d(u)}}}function Rb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var ru=class extends O{constructor(e){super(),F(this,e,Rb,Vb,D,{})}},Q1=ru;function Bb(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("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"),ke(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),_(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,s,s[1],n?Re(o,s[1],u,null):Ne(s[1]),null),ke(e,a=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){p(r,s),n=!1},d(s){s&&w(e),r&&r.d(s)}}}function Nb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var su=class extends O{constructor(e){super(),F(this,e,Nb,Bb,D,{})}},Z1=su;function Db(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("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"),ke(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),_(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,s,s[1],n?Re(o,s[1],u,null):Ne(s[1]),null),ke(e,a=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){p(r,s),n=!1},d(s){s&&w(e),r&&r.d(s)}}}function Ob(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var lu=class extends O{constructor(e){super(),F(this,e,Ob,Db,D,{})}},il=lu;function Fb(i){let e,t,n,o,r=i[2].default,l=Ve(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("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"),ke(e,s)},m(u,c){k(u,e,c),l&&l.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Be(l,r,u,u[1],o?Re(r,u[1],c,null):Ne(u[1]),null),ke(e,s=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(l,u),o=!0)},o(u){p(l,u),o=!1},d(u){u&&w(e),l&&l.d(u)}}}function xb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var au=class extends O{constructor(e){super(),F(this,e,xb,Fb,D,{})}},nl=au;var ol=i=>{switch(i){case is.Q_720P:return Z1;case is.Q_1080P:return il;case is.Q_1440P:return nl;case is.Q_2160P:return Y1;case is.Q_4320P:return Q1}};function Hb(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("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"),ke(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),_(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,s,s[1],n?Re(o,s[1],u,null):Ne(s[1]),null),ke(e,a=He(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){p(r,s),n=!1},d(s){s&&w(e),r&&r.d(s)}}}function qb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var uu=class extends O{constructor(e){super(),F(this,e,qb,Hb,D,{})}},X1=uu;function Ub(i){let e,t,n,o,r=i[2].default,l=Ve(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]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("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"),ke(e,s)},m(u,c){k(u,e,c),l&&l.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Be(l,r,u,u[1],o?Re(r,u[1],c,null):Ne(u[1]),null),ke(e,s=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(l,u),o=!0)},o(u){p(l,u),o=!1},d(u){u&&w(e),l&&l.d(u)}}}function zb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var cu=class extends O{constructor(e){super(),F(this,e,zb,Ub,D,{})}},J1=cu;function Wb(i){ve(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 Kb(i){let e,t,n,o,r=i[1]&&$1(i);return n=new J1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=T("div"),r&&r.c(),t=G(),R(n.$$.fragment),f(e,"class","icon svelte-8t5w85"),f(e,"aria-hidden","true"),K(e,"triple",i[2])},m(l,a){k(l,e,a),r&&r.m(e,null),_(e,t),M(n,e,null),o=!0},p(l,a){l[1]?r?(r.p(l,a),a&2&&d(r,1)):(r=$1(l),r.c(),d(r,1),r.m(e,t)):r&&(ce(),p(r,1,1,()=>{r=null}),fe());let s={};a&2&&(s["data-testid"]=l[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&K(e,"triple",l[2])},i(l){o||(d(r),d(n.$$.fragment,l),o=!0)},o(l){p(r),p(n.$$.fragment,l),o=!1},d(l){l&&w(e),r&&r.d(),L(n)}}}function jb(i){let e,t;return e=new X1({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p:_e,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function $1(i){let e,t;return e=new G1({props:{$$slots:{default:[Gb]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function Gb(i){let e,t,n;var o=i[1];function r(l,a){return{}}return o&&(e=Dt(o,r(i))),{c(){e&&R(e.$$.fragment),t=Je()},m(l,a){e&&M(e,l,a),k(l,t,a),n=!0},p(l,a){if(a&2&&o!==(o=l[1])){if(e){ce();let s=e;p(s.$$.fragment,1,0,()=>{L(s,1)}),fe()}o?(e=Dt(o,r(l,a)),R(e.$$.fragment),d(e.$$.fragment,1),M(e,t.parentNode,t)):e=null}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&p(e.$$.fragment,l),n=!1},d(l){l&&w(t),e&&L(e,l)}}}function Yb(i){let e,t,n,o,r=[jb,Kb],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=Je()},m(s,u){l[e].m(s,u),k(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ce(),p(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){p(t),o=!1},d(s){s&&w(n),l[e].d(s)}}}function Qb(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:r=void 0}=e,l;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=ol(r)),i.$$.dirty&2&&t(2,l=!!n&&[il,nl].includes(n))},[o,n,l,r]}var fu=class extends O{constructor(e){super(),F(this,e,Qb,Yb,D,{isMobile:0,currentQuality:3},Wb)}},rl=fu;function Zb(i){ve(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function Xb(i){let e,t,n;return t=new rl({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=T("span"),R(t.$$.fragment),f(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){k(o,e,r),M(t,e,null),n=!0},p(o,r){let l={};r&8&&(l.isMobile=o[3]),r&16&&(l.currentQuality=o[4]),t.$set(l)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),L(t)}}}function Jb(i){let e,t,n;function o(l){i[10](l)}let r={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[Xb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"opened":""),a&4&&(s.ariaLabel=l[2]),a&2&&(s.ariaExpanded=l[1]),a&16408&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function $b(i,e,t){let n,o,r,{ref$:l}=e,a=it(),s=a.state.currentQuality$;B(i,s,A=>t(4,r=A));let u=a.ui.settingsMenu.visible$;B(i,u,A=>t(1,n=A));let c=a.actions.internal.openSettingsMenu,m=a.actions.internal.closeSettingsMenu,h=a.ui.isMobile;B(i,h,A=>t(3,o=A));let v,g;async function S(A){let I=Ir(A);n?m():c(I,fn)}function y(A){v=A,t(0,v)}return i.$$set=A=>{"ref$"in A&&t(9,l=A.ref$)},i.$$.update=()=>{i.$$.dirty&513&&l&&l.set(v),i.$$.dirty&2&&t(2,g=n?j("tooltip_settings_on"):j("tooltip_settings_off"))},[v,n,g,o,r,s,u,h,S,l,y]}var du=class extends O{constructor(e){super(),F(this,e,$b,Jb,D,{ref$:9},Zb)}},ns=du;function e2(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("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"),ke(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),_(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,s,s[1],n?Re(o,s[1],u,null):Ne(s[1]),null),ke(e,a=He(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){p(r,s),n=!1},d(s){s&&w(e),r&&r.d(s)}}}function t2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var mu=class extends O{constructor(e){super(),F(this,e,t2,e2,D,{})}},em=mu;function i2(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("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"),ke(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),_(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,s,s[1],n?Re(o,s[1],u,null):Ne(s[1]),null),ke(e,a=He(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){p(r,s),n=!1},d(s){s&&w(e),r&&r.d(s)}}}function n2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var pu=class extends O{constructor(e){super(),F(this,e,n2,i2,D,{})}},sl=pu;function o2(i){let e,t;return e=new sl({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function r2(i){let e,t;return e=new em({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function s2(i){let e,t,n,o,r=[r2,o2],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=Je()},m(s,u){l[e].m(s,u),k(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e!==c&&(ce(),p(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){p(t),o=!1},d(s){s&&w(n),l[e].d(s)}}}function l2(i){let e,t;return e=new gt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:mo.KeyC,$$slots:{default:[s2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function a2(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,r;return i.$$set=l=>{"isSubtitlesEnabled"in l&&t(0,n=l.isSubtitlesEnabled),"click"in l&&t(1,o=l.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=n?j("tooltip_subtitles_on"):j("tooltip_subtitles_off"))},[n,o,r]}var _u=class extends O{constructor(e){super(),F(this,e,a2,l2,D,{isSubtitlesEnabled:0,click:1})}},tm=_u;function u2(i){ve(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 im(i){let e,t;return{c(){e=T("span"),t=Oe(i[3]),f(e,"class","duration svelte-19o2urr")},m(n,o){k(n,e,o),_(e,t)},p(n,o){o&8&&Ke(t,n[3])},d(n){n&&w(e)}}}function c2(i){let e,t,n,o,r=i[2]&&im(i);return{c(){e=T("div"),t=T("span"),n=Oe(i[4]),o=G(),r&&r.c(),f(t,"class","current svelte-19o2urr"),f(e,"class","time svelte-19o2urr"),K(e,"mobile",i[1])},m(l,a){k(l,e,a),_(e,t),_(t,n),_(e,o),r&&r.m(e,null),i[7](e)},p(l,[a]){a&16&&Ke(n,l[4]),l[2]?r?r.p(l,a):(r=im(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&K(e,"mobile",l[1])},i:_e,o:_e,d(l){l&&w(e),r&&r.d(),i[7](null)}}}function f2(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:r}=e,{showDuration:l=!0}=e,{ref:a}=e,s,u;function c(m){ye[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,l=m.showDuration),"ref"in m&&t(0,a=m.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,s=Nn(o)),i.$$.dirty&64&&t(4,u=Nn(r))},[a,n,l,s,u,o,r,c]}var hu=class extends O{constructor(e){super(),F(this,e,f2,c2,D,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},u2)}},ll=hu;import{noop as zo}from"@vkontakte/videoplayer-shared/es2018";function d2(i){ve(i,"svelte-1n5yyua",".icon.svelte-1n5yyua.svelte-1n5yyua{display:block;width:24px;height:24px}.icon.svelte-1n5yyua .cross.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .wave1.svelte-1n5yyua,.icon[data-value='off'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .cross.svelte-1n5yyua{visibility:visible}.icon[data-value='mid'].svelte-1n5yyua .wave2.svelte-1n5yyua,.icon[data-value='min'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}")}function m2(i){let e,t,n,o,r,l;return{c(){e=N("svg"),t=N("g"),n=N("path"),o=N("path"),r=N("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",l="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,s){k(a,e,s),_(e,t),_(t,n),_(t,o),_(t,r)},p(a,[s]){s&1&&f(e,"data-value",a[0]),s&1&&l!==(l="volume-"+a[0]+"-icon")&&f(e,"data-testid",l)},i:_e,o:_e,d(a){a&&w(e)}}}function p2(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,r=(a,s)=>s?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",l;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,l=r(n,o))},[l,n,o]}var gu=class extends O{constructor(e){super(),F(this,e,p2,m2,D,{volume:1,muted:2},d2)}},ar=gu;import{isNonNullable as um,noop as eo}from"@vkontakte/videoplayer-shared/es2018";import{noop as k2}from"@vkontakte/videoplayer-shared/es2018";import{noop as g2}from"@vkontakte/videoplayer-shared/es2018";function _2(i){let e,t,n=i[4].default,o=Ve(n,i,i[3],null);return{c(){e=T("div"),o&&o.c(),f(e,"class","overlay")},m(r,l){k(r,e,l),o&&o.m(e,null),i[5](e),t=!0},p(r,[l]){o&&o.p&&(!t||l&8)&&Be(o,n,r,r[3],t?Re(n,r[3],l,null):Ne(r[3]),null)},i(r){t||(d(o,r),t=!0)},o(r){p(o,r),t=!1},d(r){r&&w(e),o&&o.d(r),i[5](null)}}}function h2(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=it().ui.overlayContainer$;B(i,a,h=>t(2,n=h));let s,u=h=>{!h||!s||!h.contains(s)||h.removeChild(s)},c=h=>{!h||!s||h.contains(s)||h.appendChild(s)};Ct(()=>(c(n),()=>u(n)));function m(h){ye[h?"unshift":"push"](()=>{s=h,t(0,s)})}return i.$$set=h=>{"$$scope"in h&&t(3,r=h.$$scope)},i.$$.update=()=>{i.$$.dirty&4&&c(n)},[s,a,n,r,o,m]}var bu=class extends O{constructor(e){super(),F(this,e,h2,_2,D,{})}},nm=bu;function b2(i){ve(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 om(i){let e,t;return e=new nm({props:{$$slots:{default:[v2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function v2(i){let e,t,n,o,r;return{c(){e=T("div"),t=T("div"),n=Oe(i[2]),o=G(),r=T("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]),K(e,"active",i[0])},m(l,a){k(l,e,a),_(e,t),_(t,n),_(e,o),_(e,r),i[23](e)},p(l,a){a[0]&4&&Ke(n,l[2]),a[0]&128&&f(r,"style",l[7]),a[0]&64&&f(e,"style",l[6]),a[0]&1&&K(e,"active",l[0])},d(l){l&&w(e),i[23](null)}}}function y2(i){let e,t,n,o,r,l,a=i[21].default,s=Ve(a,i,i[24],null),u=i[2]&&!i[1]&&om(i);return{c(){e=T("div"),s&&s.c(),t=G(),u&&u.c(),n=Je(),f(e,"class","tooltip-wrapper svelte-1jbbzcj"),K(e,"full-width",i[3])},m(c,m){k(c,e,m),s&&s.m(e,null),i[22](e),k(c,t,m),u&&u.m(c,m),k(c,n,m),o=!0,r||(l=[Se(e,"mouseenter",i[10]),Se(e,"mousemove",i[10]),Se(e,"mouseleave",i[11]),Se(e,"mousedown",i[11]),Se(e,"mouseup",i[10])],r=!0)},p(c,m){s&&s.p&&(!o||m[0]&16777216)&&Be(s,a,c,c[24],o?Re(a,c[24],m,null):Ne(c[24]),null),(!o||m[0]&8)&&K(e,"full-width",c[3]),c[2]&&!c[1]?u?(u.p(c,m),m[0]&6&&d(u,1)):(u=om(c),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(ce(),p(u,1,1,()=>{u=null}),fe())},i(c){o||(d(s,c),d(u),o=!0)},o(c){p(s,c),p(u),o=!1},d(c){c&&(w(e),w(t),w(n)),s&&s.d(c),i[22](null),u&&u.d(c),r=!1,ut(l)}}}var Io=5;function w2(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{isMobile:a=!1}=e,{content:s=""}=e,{active:u=!1}=e,{translateX:c=0}=e,{translateY:m=0}=e,{isFullWidthWrapper:h=!1}=e,{maxTooltipWidth:v=void 0}=e,{placement:g="top"}=e,{onVisibilityChange:S=g2}=e,y,A,I,C=0,P=0,U=0,x=0,V=Mt(),Z=it(),ae=Z.ui.playerSize;B(i,ae,Ae=>t(27,o=Ae));let Q=Z.ui.overlayContainer$;B(i,Q,Ae=>t(26,n=Ae));let ue=Z.getLogger().createComponentLog("Tooltip component"),q=()=>{if(!n||!A||!y)return;t(18,P=Io);let Ae=n.getBoundingClientRect(),qe=y.getBoundingClientRect(),J=qe.width,he=A.clientWidth,Te=o.width,Ye=(J-he)/2,nt=qe.left+c-Ae.left,st=nt+Ye,at=qe.top+m-Ae.top,ct=he/2-Io,me=st<8,Qe=st+he>Te-8;me&&(st=8,ct=nt+qe.width/2-2.5*Io),Qe&&(st=Te-8-he,ct=qe.left-Ae.left+qe.width/2-st-Io),t(19,U=st),t(20,x=at),t(17,C=ct)},H=()=>{!n||!A||!y||t(18,P=-Io)},be=()=>{if(!n||!A||!y)return;t(17,C=Io);let Ae=n.getBoundingClientRect(),qe=y.getBoundingClientRect(),J=qe.height,he=A.clientHeight,Te=(J-he)/2+he,Ye=qe.left+c-Ae.left-A.clientWidth,nt=2,st=Ye-Io;st<8&&(st=8);let ct=qe.top+m-Ae.top+Te,me=nt-Te/2,Qe=nt-Io;t(19,U=st),t(20,x=ct),t(18,P=me),t(17,C=Qe)},W=()=>{!n||!A||!y||t(17,C=-Io)},te=()=>{switch(g){case"top":q();break;case"bottom":H();break;case"left":be();break;default:W()}},z=()=>{try{if(!n||!y)return;te(),t(0,u=!0)}catch(Ae){ue({message:String(Ae)})}},pe=()=>{t(0,u=!1)},se=()=>{A&&(I||(I=window.setTimeout(z,V.controls.hideTimeoutTooltips)),u&&z())},X=()=>{pe(),window.clearTimeout(I),I=void 0},re=(Ae,qe)=>{let J="";switch(g){case"top":J=`transform: translate(${Ae}px, ${qe}px);`;break;case"bottom":J=`transform: translate(${Ae}px, ${qe}px); top: auto; bottom: 100%;`;break;case"left":J=`transform: translate(${Ae}px, ${qe}px); left: 0; right: auto;`;break;default:J=`transform: translate(${Ae}px, ${qe}px);`}return J+=` max-width: ${v===void 0?"auto":`${v}px`};`,J},oe=(Ae,qe)=>{let J="";switch(g){case"top":J=`transform: translate(${Ae}px, ${qe}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":J=`transform: translate(${Ae}px, ${qe}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":J=`transform: translate(${Ae}px, ${qe}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:J=`transform: translate(${Ae}px, ${qe}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return J},Ze,Fe;Ct(te),Rn(()=>window.clearTimeout(I));function Ie(Ae){ye[Ae?"unshift":"push"](()=>{y=Ae,t(4,y)})}function Ce(Ae){ye[Ae?"unshift":"push"](()=>{A=Ae,t(5,A)})}return i.$$set=Ae=>{"isMobile"in Ae&&t(1,a=Ae.isMobile),"content"in Ae&&t(2,s=Ae.content),"active"in Ae&&t(0,u=Ae.active),"translateX"in Ae&&t(12,c=Ae.translateX),"translateY"in Ae&&t(13,m=Ae.translateY),"isFullWidthWrapper"in Ae&&t(3,h=Ae.isFullWidthWrapper),"maxTooltipWidth"in Ae&&t(14,v=Ae.maxTooltipWidth),"placement"in Ae&&t(15,g=Ae.placement),"onVisibilityChange"in Ae&&t(16,S=Ae.onVisibilityChange),"$$scope"in Ae&&t(24,l=Ae.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&65537&&S(u),i.$$.dirty[0]&1966080&&(t(6,Ze=re(U,x)),t(7,Fe=oe(C,P)))},[u,a,s,h,y,A,Ze,Fe,ae,Q,se,X,c,m,v,g,S,C,P,U,x,r,Ie,Ce,l]}var vu=class extends O{constructor(e){super(),F(this,e,w2,y2,D,{isMobile:1,content:2,active:0,translateX:12,translateY:13,isFullWidthWrapper:3,maxTooltipWidth:14,placement:15,onVisibilityChange:16},b2,[-1,-1])}},Vr=vu;function C2(i){ve(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 S2(i){let e,t=i[19].default,n=Ve(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)&&Be(n,t,o,o[24],e?Re(t,o[24],r,null):Ne(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 T2(i){let e,t;return e=new Vr({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[I2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function I2(i){let e,t=i[19].default,n=Ve(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)&&Be(n,t,o,o[24],e?Re(t,o[24],r,null):Ne(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 P2(i){let e,t,n,o,r,l,a,s,u,c=[T2,S2],m=[];function h(v,g){return v[3]&&v[11]&&!v[12]?0:1}return t=h(i,-1),n=m[t]=c[t](i),{c(){e=T("div"),n.c(),f(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),f(e,"aria-hidden",r=i[7]||null)},m(v,g){k(v,e,g),m[t].m(e,null),i[23](e),a=!0,s||(u=[hr(l=Lr.call(null,e)),Se(e,"fd:resize",i[22]),Se(e,"pointerdown",vt(i[20])),Se(e,"click",vt(i[21]))],s=!0)},p(v,[g]){let S=t;t=h(v,g),t===S?m[t].p(v,g):(ce(),p(m[S],1,1,()=>{m[S]=null}),fe(),n=m[t],n?n.p(v,g):(n=m[t]=c[t](v),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+v[2]+" svelte-p9r045"))&&f(e,"class",o),(!a||g&128&&r!==(r=v[7]||null))&&f(e,"aria-hidden",r)},i(v){a||(d(n),a=!0)},o(v){p(n),a=!1},d(v){v&&w(e),m[t].d(),i[23](null),s=!1,ut(u)}}}function E2(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{className:a=""}=e,{disabled:s=!1}=e,{hasTooltip:u=!0}=e,{ref:c=void 0}=e,{width:m=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:v=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:S="top"}=e,{disabledTooltipContent:y=j("tooltip_button_disabled")}=e,{isAriaHidden:A=!1}=e,{onTooltipVisibilityChange:I=k2}=e,{initialTranslateXPx:C=0}=e,{initialTranslateYPx:P=-18}=e,U=it(),x=U.ui.isMobile;B(i,x,H=>t(12,o=H));let V=U.state.graphIsOpened$;B(i,V,H=>t(18,n=H));let Z;function ae(H){Bn.call(this,i,H)}function Q(H){Bn.call(this,i,H)}let ue=H=>{t(1,m=H.target.clientWidth)};function q(H){ye[H?"unshift":"push"](()=>{c=H,t(0,c)})}return i.$$set=H=>{"className"in H&&t(2,a=H.className),"disabled"in H&&t(15,s=H.disabled),"hasTooltip"in H&&t(3,u=H.hasTooltip),"ref"in H&&t(0,c=H.ref),"width"in H&&t(1,m=H.width),"isFullWidthTooltip"in H&&t(4,h=H.isFullWidthTooltip),"tooltipContent"in H&&t(16,v=H.tooltipContent),"tooltipActive"in H&&t(5,g=H.tooltipActive),"tooltipPlacement"in H&&t(6,S=H.tooltipPlacement),"disabledTooltipContent"in H&&t(17,y=H.disabledTooltipContent),"isAriaHidden"in H&&t(7,A=H.isAriaHidden),"onTooltipVisibilityChange"in H&&t(8,I=H.onTooltipVisibilityChange),"initialTranslateXPx"in H&&t(9,C=H.initialTranslateXPx),"initialTranslateYPx"in H&&t(10,P=H.initialTranslateYPx),"$$scope"in H&&t(24,l=H.$$scope)},i.$$.update=()=>{i.$$.dirty&491520&&(s?t(11,Z=n?j("tooltip_disabled_when_graph_on"):y):t(11,Z=v))},[c,m,a,u,h,g,S,A,I,C,P,Z,o,x,V,s,v,y,n,r,ae,Q,ue,q,l]}var yu=class extends O{constructor(e){super(),F(this,e,E2,P2,D,{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},C2)}},Yi=yu;function A2(i){let e,t,n,o,r,l;return{c(){e=N("svg"),t=N("rect"),o=N("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",l=(i[0],"interactive-episode-completed-icon"))},m(a,s){k(a,e,s),_(e,t),_(e,o)},p(a,[s]){s&1&&n!==(n=a[0]?1:.24)&&f(t,"fill-opacity",n),s&1&&r!==(r=a[0]?"var(--interactive-episode-complete)":"white")&&f(o,"fill",r),s&1&&l!==(l=(a[0],"interactive-episode-completed-icon"))&&f(e,"data-testid",l)},i:_e,o:_e,d(a){a&&w(e)}}}function M2(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var wu=class extends O{constructor(e){super(),F(this,e,M2,A2,D,{completed:0})}},al=wu;function L2(i){ve(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 V2(i){let e,t,n,o,r,l,a;return t=new al({props:{completed:!!i[0].completed}}),{c(){e=T("div"),R(t.$$.fragment),f(e,"class","interactive-episode-icon svelte-bklhpe"),f(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),K(e,"disabled",i[1])},m(s,u){k(s,e,u),M(t,e,null),r=!0,l||(a=[hr(o=Lr.call(null,e)),Se(e,"fd:resize",i[3])],l=!0)},p(s,u){let c={};u&1&&(c.completed=!!s[0].completed),t.$set(c),(!r||u&1&&n!==(n=`left: ${s[0].from+s[0].width/2}%`))&&f(e,"style",n),(!r||u&2)&&K(e,"disabled",s[1])},i(s){r||(d(t.$$.fragment,s),r=!0)},o(s){p(t.$$.fragment,s),r=!1},d(s){s&&w(e),L(t),l=!1,ut(a)}}}function R2(i){let e,t;return e=new Yi({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:[V2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function B2(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,r,l=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,l]}var ku=class extends O{constructor(e){super(),F(this,e,B2,R2,D,{videoEpisode:0,disabled:1},L2)}},rm=ku;function N2(i){ve(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 sm(i,e,t){let n=i.slice();return n[3]=e[t],n}function lm(i){let e,t,n,o,r,l,a,s,u;return{c(){e=T("div"),t=T("div"),n=T("div"),r=G(),l=T("div"),s=G(),f(n,"class","video-episode-loaded svelte-1rzxunm"),f(n,"style",o=`transform: translateX(${i[3].loadedWidth/i[3].width*100}%)`),f(l,"class","video-episode-filled svelte-1rzxunm"),f(l,"style",a=`transform: translateX(${i[3].filledWidth/i[3].width*100}%)`),K(l,"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}%`),K(e,"disabled",i[2]),K(e,"mobile",i[1])},m(c,m){k(c,e,m),_(e,t),_(t,n),_(t,r),_(t,l),_(e,s)},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(l,"style",a),m&2&&K(l,"mobile",c[1]),m&1&&u!==(u=`left: ${c[3].from}%; width: ${c[3].width}%`)&&f(e,"style",u),m&4&&K(e,"disabled",c[2]),m&2&&K(e,"mobile",c[1])},d(c){c&&w(e)}}}function D2(i){let e,t=wt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=lm(sm(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","video-episodes-wrap svelte-1rzxunm")},m(o,r){k(o,e,r);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,[r]){if(r&7){t=wt(o[0]);let l;for(l=0;l<t.length;l+=1){let a=sm(o,t,l);n[l]?n[l].p(a,r):(n[l]=lm(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},i:_e,o:_e,d(o){o&&w(e),di(n,o)}}}function O2(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e,{disabled:r}=e;return i.$$set=l=>{"videoEpisodes"in l&&t(0,n=l.videoEpisodes),"isMobile"in l&&t(1,o=l.isMobile),"disabled"in l&&t(2,r=l.disabled)},[n,o,r]}var Cu=class extends O{constructor(e){super(),F(this,e,O2,D2,D,{videoEpisodes:0,isMobile:1,disabled:2},N2)}},am=Cu;function F2(i){ve(i,"svelte-v8ydei",".interactive-icons.svelte-v8ydei.svelte-v8ydei{position:absolute;width:calc(100% - 20px);top:-28px}.interactive-icons.mobile.svelte-v8ydei.svelte-v8ydei{top:-10px}.slider.svelte-v8ydei.svelte-v8ydei{position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent}.no-handle.svelte-v8ydei.svelte-v8ydei{cursor:default}.slider.svelte-v8ydei.svelte-v8ydei:before{content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2)}.bars.svelte-v8ydei.svelte-v8ydei{position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg)}.loaded.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.filled.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}.slider.square.svelte-v8ydei.svelte-v8ydei,.slider.square.svelte-v8ydei>.bars.svelte-v8ydei,.slider.square.svelte-v8ydei .loaded.svelte-v8ydei,.slider.square.svelte-v8ydei .filled.svelte-v8ydei{border-radius:unset}.filled.active-live.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.filled.ads.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-ads)}.handleWrap.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%}.handle.svelte-v8ydei.svelte-v8ydei{position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-filled-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform}.handle.active-live.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.slider.svelte-v8ydei:hover .handle.svelte-v8ydei,.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{transform:scale(1.3)}.slider-vertical.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.slider.disabled.svelte-v8ydei.svelte-v8ydei{cursor:default;opacity:0.4}")}function cm(i,e,t){let n=i.slice();return n[50]=e[t],n}function fm(i){let e,t,n=wt(i[21]),o=[];for(let l=0;l<n.length;l+=1)o[l]=mm(cm(i,n,l));let r=l=>p(o[l],1,1,()=>{o[l]=null});return{c(){e=T("div");for(let l=0;l<o.length;l+=1)o[l].c();f(e,"class","interactive-icons svelte-v8ydei"),K(e,"mobile",i[6]),K(e,"hidden",i[6]&&!i[20])},m(l,a){k(l,e,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(e,null);t=!0},p(l,a){if(a[0]&2098176){n=wt(l[21]);let s;for(s=0;s<n.length;s+=1){let u=cm(l,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=mm(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(ce(),s=n.length;s<o.length;s+=1)r(s);fe()}(!t||a[0]&64)&&K(e,"mobile",l[6]),(!t||a[0]&1048640)&&K(e,"hidden",l[6]&&!l[20])},i(l){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(l){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)p(o[a]);t=!1},d(l){l&&w(e),di(o,l)}}}function dm(i){let e,t;return e=new rm({props:{videoEpisode:i[50],disabled:i[10]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function mm(i){let e,t,n=i[50].interactive&&dm(i);return{c(){n&&n.c(),e=Je()},m(o,r){n&&n.m(o,r),k(o,e,r),t=!0},p(o,r){o[50].interactive?n?(n.p(o,r),r[0]&2097152&&d(n,1)):(n=dm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),p(n,1,1,()=>{n=null}),fe())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function x2(i){let e,t,n,o,r,l;return{c(){e=T("div"),t=T("div"),o=G(),r=T("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",l=`transform: translateX(${i[13]*100}%);`),K(r,"active-live",i[5]),K(r,"ads",i[7]),f(e,"class","bars svelte-v8ydei")},m(a,s){k(a,e,s),_(e,t),_(e,o),_(e,r)},p(a,s){s[0]&4096&&n!==(n=`transform: translateX(${a[12]*100}%);`)&&f(t,"style",n),s[0]&8192&&l!==(l=`transform: translateX(${a[13]*100}%);`)&&f(r,"style",l),s[0]&32&&K(r,"active-live",a[5]),s[0]&128&&K(r,"ads",a[7])},i:_e,o:_e,d(a){a&&w(e)}}}function H2(i){let e,t;return e=new am({props:{videoEpisodes:i[21],disabled:i[10],isMobile:i[6]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function q2(i){let e,t,n,o,r,l,a,s,u,c,m,h,v,g=i[9]&&fm(i),S=[H2,x2],y=[];function A(I,C){return I[21].length?0:1}return n=A(i,[-1,-1]),o=y[n]=S[n](i),{c(){var I;g&&g.c(),e=G(),t=T("div"),o.c(),r=G(),l=T("div"),a=T("div"),f(a,"class","handle svelte-v8ydei"),K(a,"active-live",i[5]),f(l,"class","handleWrap svelte-v8ydei"),f(l,"style",s=`transform: translateX(${i[14]*100}%);`),K(l,"hidden",i[11]),f(t,"class",u="slider "+i[1]+" svelte-v8ydei"),f(t,"aria-label",i[15]),f(t,"aria-valuemin",i[16]),f(t,"aria-valuemax",i[17]),f(t,"aria-valuenow",i[18]),f(t,"aria-valuetext",i[19]),f(t,"role","slider"),f(t,"tabindex","0"),f(t,"data-testid",c=(I=i[2])!=null?I:null),K(t,"disabled",i[10]),K(t,"slider-dragging",i[20]),K(t,"hidden",i[3]),K(t,"slider-vertical",i[4]),K(t,"no-handle",i[11]),K(t,"square",i[8])},m(I,C){g&&g.m(I,C),k(I,e,C),k(I,t,C),y[n].m(t,null),_(t,r),_(t,l),_(l,a),i[44](t),m=!0,h||(v=[Se(t,"pointerdown",mi(i[22])),Se(t,"pointermove",mi(i[23])),Se(t,"pointerup",mi(i[24])),Se(t,"pointerenter",mi(i[25])),Se(t,"pointerleave",mi(i[26])),Se(t,"click",vt(i[28])),Se(t,"wheel",i[27])],h=!0)},p(I,C){var U;I[9]?g?(g.p(I,C),C[0]&512&&d(g,1)):(g=fm(I),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(ce(),p(g,1,1,()=>{g=null}),fe());let P=n;n=A(I,C),n===P?y[n].p(I,C):(ce(),p(y[P],1,1,()=>{y[P]=null}),fe(),o=y[n],o?o.p(I,C):(o=y[n]=S[n](I),o.c()),d(o,1),o.m(t,r)),(!m||C[0]&32)&&K(a,"active-live",I[5]),(!m||C[0]&16384&&s!==(s=`transform: translateX(${I[14]*100}%);`))&&f(l,"style",s),(!m||C[0]&2048)&&K(l,"hidden",I[11]),(!m||C[0]&2&&u!==(u="slider "+I[1]+" svelte-v8ydei"))&&f(t,"class",u),(!m||C[0]&32768)&&f(t,"aria-label",I[15]),(!m||C[0]&65536)&&f(t,"aria-valuemin",I[16]),(!m||C[0]&131072)&&f(t,"aria-valuemax",I[17]),(!m||C[0]&262144)&&f(t,"aria-valuenow",I[18]),(!m||C[0]&524288)&&f(t,"aria-valuetext",I[19]),(!m||C[0]&4&&c!==(c=(U=I[2])!=null?U:null))&&f(t,"data-testid",c),(!m||C[0]&1026)&&K(t,"disabled",I[10]),(!m||C[0]&1048578)&&K(t,"slider-dragging",I[20]),(!m||C[0]&10)&&K(t,"hidden",I[3]),(!m||C[0]&18)&&K(t,"slider-vertical",I[4]),(!m||C[0]&2050)&&K(t,"no-handle",I[11]),(!m||C[0]&258)&&K(t,"square",I[8])},i(I){m||(d(g),d(o),m=!0)},o(I){p(g),p(o),m=!1},d(I){I&&(w(e),w(t)),g&&g.d(I),y[n].d(),i[44](null),h=!1,ut(v)}}}function U2(i,e,t){let n,o,{ref:r=void 0}=e,{className:l=""}=e,{testId:a=void 0}=e,{isHidden:s=!1}=e,{isVertical:u=!1}=e,{isActiveLive:c=!1}=e,{isMobile:m=!1}=e,{isAds:h=!1}=e,{squareBorders:v=!1}=e,{videoEpisodes:g=[]}=e,{withWheelHandler:S=!1}=e,{isInteractive:y=!1}=e,{disabled:A=!1}=e,{hideHandel:I=!1}=e,C,{onPointerDown:P=eo}=e,{onHandleMove:U=eo}=e,{onPointerUp:x=eo}=e,{onPointerEnter:V=eo}=e,{onPointerMove:Z=eo}=e,{onPointerLeave:ae=eo}=e,{onWheelUp:Q=eo}=e,{onWheelDown:ue=eo}=e,{onWheelLeft:q=eo}=e,{onWheelRight:H=eo}=e,{onDisabledClick:be=eo}=e,{loadedProgress:W=0}=e,{filledProgress:te=0}=e,{handleProgress:z=0}=e,{ariaLabel:pe=""}=e,{ariaValueMin:se=void 0}=e,{ariaValueMax:X=void 0}=e,{ariaValueNow:re=void 0}=e,{ariaValueText:oe=""}=e,Ze=Mt(),Fe=!1,Ie;function Ce(me){if(r&&(C=r.getBoundingClientRect()),A||Fe||!r)return;t(20,Fe=!0);let Qe=nt(me.clientX,me.clientY);P(Qe),r.setPointerCapture(me.pointerId)}function Ae(me){if(A)return;let Qe=nt(me.clientX,me.clientY),De=st(me.clientX);Z(Qe,De,C.width),Fe&&U(Qe)}function qe(me){if(A||!Fe)return;t(20,Fe=!1);let Qe=nt(me.clientX,me.clientY);x(Qe)}function J(me){if(r&&(C=r.getBoundingClientRect()),A)return;let Qe=nt(me.clientX,me.clientY),De=st(me.clientX);V(Qe,De,C.width)}function he(){A||ae()}function Te(me){A||S&&(me.preventDefault(),me.deltaY<0?Q():me.deltaY>0?ue():me.deltaX>0?H():q())}function Ye(me){A&&be(nt(me.clientX,me.clientY))}function nt(me,Qe){return u?Math.max(0,Math.min(1,(C.height-(Qe-C.top))/C.height)):Math.min(Math.max(me-C.x,0),C.width)/C.width}function st(me){return Math.min(Math.max(me-C.x,0),C.width)}function at(me,Qe){let De=Ze.features.episodesClustering&&!y?Ze.episodeMinWidthPc:0,lt=[],je=g[0].time/Ie*100,xe=0,Pe=0;for(let dt=1;dt<g.length;dt++)xe=g[dt].time/Ie*100,xe-je>De&&(lt.push({from:je,width:Math.max(0,xe-je),loadedWidth:Math.max(0,Math.min(xe,me)-je),filledWidth:Math.max(0,Math.min(xe,Qe)-je),interactive:g[dt-1].interactive,completed:g[dt-1].completed}),je=g[dt].time/Ie*100,Pe++);let ft={from:je,width:Math.max(0,100-je),loadedWidth:Math.max(0,Math.min(me,100)-je),filledWidth:Math.max(0,Math.min(Qe,100)-je),interactive:g[Pe].interactive,completed:g[Pe].completed};100-je<De?(Pe-=1,lt[Pe].width+=100-je,lt[Pe].loadedWidth+=Math.max(0,Math.min(me,100)-je),lt[Pe].filledWidth+=Math.max(0,Math.min(Qe,100)-je)):lt[Pe]=ft;let ge=g[0].time;if(ge!==0){let dt=ge/Ie*100;lt.unshift({from:0,width:dt,loadedWidth:Math.min(dt,me),filledWidth:Math.min(dt,Qe)})}return lt}function ct(me){ye[me?"unshift":"push"](()=>{r=me,t(0,r)})}return i.$$set=me=>{"ref"in me&&t(0,r=me.ref),"className"in me&&t(1,l=me.className),"testId"in me&&t(2,a=me.testId),"isHidden"in me&&t(3,s=me.isHidden),"isVertical"in me&&t(4,u=me.isVertical),"isActiveLive"in me&&t(5,c=me.isActiveLive),"isMobile"in me&&t(6,m=me.isMobile),"isAds"in me&&t(7,h=me.isAds),"squareBorders"in me&&t(8,v=me.squareBorders),"videoEpisodes"in me&&t(29,g=me.videoEpisodes),"withWheelHandler"in me&&t(30,S=me.withWheelHandler),"isInteractive"in me&&t(9,y=me.isInteractive),"disabled"in me&&t(10,A=me.disabled),"hideHandel"in me&&t(11,I=me.hideHandel),"onPointerDown"in me&&t(31,P=me.onPointerDown),"onHandleMove"in me&&t(32,U=me.onHandleMove),"onPointerUp"in me&&t(33,x=me.onPointerUp),"onPointerEnter"in me&&t(34,V=me.onPointerEnter),"onPointerMove"in me&&t(35,Z=me.onPointerMove),"onPointerLeave"in me&&t(36,ae=me.onPointerLeave),"onWheelUp"in me&&t(37,Q=me.onWheelUp),"onWheelDown"in me&&t(38,ue=me.onWheelDown),"onWheelLeft"in me&&t(39,q=me.onWheelLeft),"onWheelRight"in me&&t(40,H=me.onWheelRight),"onDisabledClick"in me&&t(41,be=me.onDisabledClick),"loadedProgress"in me&&t(12,W=me.loadedProgress),"filledProgress"in me&&t(13,te=me.filledProgress),"handleProgress"in me&&t(14,z=me.handleProgress),"ariaLabel"in me&&t(15,pe=me.ariaLabel),"ariaValueMin"in me&&t(16,se=me.ariaValueMin),"ariaValueMax"in me&&t(17,X=me.ariaValueMax),"ariaValueNow"in me&&t(18,re=me.ariaValueNow),"ariaValueText"in me&&t(19,oe=me.ariaValueText)},i.$$.update=()=>{var me;i.$$.dirty[0]&131072&&t(42,Ie=X!=null?X:0),i.$$.dirty[0]&536870912|i.$$.dirty[1]&2048&&t(43,n=um(g)&&((me=g[g.length-1])==null?void 0:me.time)<Ie),i.$$.dirty[0]&536883200|i.$$.dirty[1]&6144&&t(21,o=um(g)&&g.length&&n&&Ie?at(W*100,te*100):[])},[r,l,a,s,u,c,m,h,v,y,A,I,W,te,z,pe,se,X,re,oe,Fe,o,Ce,Ae,qe,J,he,Te,Ye,g,S,P,U,x,V,Z,ae,Q,ue,q,H,be,Ie,n,ct]}var Su=class extends O{constructor(e){super(),F(this,e,U2,q2,D,{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},F2,[-1,-1])}},Rr=Su;var vi=(i,e)=>er[i]>=er[e],pm=(i,e)=>er[i]<er[e],Uo=(i,e)=>er[i]<=er[e],_m=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function z2(i){ve(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 W2(i){let e,t;return e=new ar({props:{volume:i[3],muted:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function K2(i){let e,t;return e=new gt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:mo.KeyM,$$slots:{default:[W2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let r={};o[0]&512&&(r.disabled=n[9]),o[0]&4&&(r.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(r.ariaLabel=n[7]),o[0]&1&&(r.click=n[0]),o[0]&10|o[1]&16&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function hm(i){let e,t,n;return t=new Rr({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]:zo,onPointerLeave:i[2]?i[20]:zo,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=T("div"),R(t.$$.fragment),f(e,"class","volumeBar svelte-1l78lz9"),K(e,"volumeBar-vertical",i[2])},m(o,r){k(o,e,r),M(t,e,null),n=!0},p(o,r){let l={};r[0]&4&&(l.className=o[2]?"volumeBar-slider-vertical":""),r[0]&36&&(l.isHidden=o[2]&&!o[5]),r[0]&4&&(l.isVertical=o[2]),r[0]&4&&(l.onPointerEnter=o[2]?o[19]:zo),r[0]&4&&(l.onPointerLeave=o[2]?o[20]:zo),r[0]&256&&(l.ariaValueNow=Math.round(o[8]*100)),r[0]&256&&(l.ariaValueText=`${Math.round(o[8]*100)}%`),r[0]&256&&(l.filledProgress=o[8]),r[0]&256&&(l.handleProgress=o[8]),r[0]&4&&(l.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(l),(!n||r[0]&4)&&K(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&&w(e),L(t)}}}function j2(i){let e,t,n,o,r,l;t=new Vr({props:{content:i[6],translateY:-18,$$slots:{default:[K2]},$$scope:{ctx:i}}});let a=i[4]&&hm(i);return{c(){e=T("div"),R(t.$$.fragment),n=G(),a&&a.c(),f(e,"class","volumeBar-container svelte-1l78lz9"),K(e,"vertical",i[2])},m(s,u){k(s,e,u),M(t,e,null),_(e,n),a&&a.m(e,null),o=!0,r||(l=[Se(e,"mouseenter",function(){Qt(i[2]?i[21]:zo)&&(i[2]?i[21]:zo).apply(this,arguments)}),Se(e,"mouseleave",function(){Qt(i[2]?i[22]:zo)&&(i[2]?i[22]:zo).apply(this,arguments)}),Se(e,"wheel",mi(i[23]))],r=!0)},p(s,u){i=s;let c={};u[0]&64&&(c.content=i[6]),u[0]&655|u[1]&16&&(c.$$scope={dirty:u,ctx:i}),t.$set(c),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=hm(i),a.c(),d(a,1),a.m(e,null)):a&&(ce(),p(a,1,1,()=>{a=null}),fe()),(!o||u[0]&4)&&K(e,"vertical",i[2])},i(s){o||(d(t.$$.fragment,s),d(a),o=!0)},o(s){p(t.$$.fragment,s),p(a),o=!1},d(s){s&&w(e),L(t),a&&a.d(),r=!1,ut(l)}}}function G2(i,e,t){var oe,Ze;let n,o,r,l,{click:a}=e,s=it(),u=Mt(),c=s.state.volume$;B(i,c,Fe=>t(3,n=Fe));let m=s.state.muted$;B(i,m,Fe=>t(25,l=Fe));let h=s.actions.internal.setVolume,v=s.ui.currentGridType$;B(i,v,Fe=>t(24,r=Fe));let g=(oe=s.callbacks)==null?void 0:oe.onAudioDoesNotExistHint,S=(Ze=s.callbacks)==null?void 0:Ze.onAudioDisabledHint,y=s.state.isAudioAvailable$;B(i,y,Fe=>t(4,o=Fe));let A=s.state.isAudioDisabled,I=!1,C,P,U,x,V,Z,ae=!1,Q=!1;function ue(Fe){h(Fe)}function q(){$s(s,n,u.controls.volumeStepWheel)}function H(){el(s,n,u.controls.volumeStepWheel)}function be(Fe){h(Fe)}function W(Fe){let Ie=Fe,Ce=Ie===0?u.volumeMinRestore:Ie;h(Ie,Ce)}function te(){ae=!0}function z(){ae=!1,X()}function pe(){clearTimeout(C),t(5,I=!0)}function se(){X()}function X(){C=window.setTimeout(()=>{ae||t(5,I=!1)},u.controls.volumeBarTimeout)}function re(Fe){Fe.deltaY<0?q():Fe.deltaY>0&&H()}return i.$$set=Fe=>{"click"in Fe&&t(0,a=Fe.click)},i.$$.update=()=>{i.$$.dirty[0]&33554448&&t(1,x=!o||l),i.$$.dirty[0]&16777216&&t(2,V=Uo(r,"s")),i.$$.dirty[0]&6&&(V?t(6,P=""):t(6,P=x?j("tooltip_volume"):j("tooltip_volume_muted")),t(7,U=x?j("tooltip_volume"):j("tooltip_volume_muted"))),i.$$.dirty[0]&10&&t(8,Z=x?0:n),i.$$.dirty[0]&16&&(o?t(9,Q=A&&!S):t(9,Q=!g))},[a,x,V,n,o,I,P,U,Z,Q,c,m,v,y,ue,q,H,be,W,te,z,pe,se,re,r,l]}var Tu=class extends O{constructor(e){super(),F(this,e,G2,j2,D,{click:0},z2,[-1,-1])}},gm=Tu;import{noop as $2}from"@vkontakte/videoplayer-shared/es2018";function Y2(i){let e,t,n,o,r,l=i[2].default,a=Ve(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=le(u,s[c]);return{c(){e=N("svg"),a&&a.c(),t=N("g"),n=N("path"),o=N("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"),ke(e,u)},m(c,m){k(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)&&Be(a,l,c,c[1],r?Re(l,c[1],m,null):Ne(c[1]),null),ke(e,u=He(s,[{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&&w(e),a&&a.d(c)}}}function Q2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Iu=class extends O{constructor(e){super(),F(this,e,Q2,Y2,D,{})}},bm=Iu;function Z2(i){ve(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function X2(i){let e,t;return e=new bm({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function J2(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Pu=class extends O{constructor(e){super(),F(this,e,J2,X2,D,{isFullscreen:0},Z2)}},vm=Pu;function ev(i){let e,t;return e=new vm({props:{isFullscreen:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function tv(i){let e,t;return e=new gt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:mo.KeyF,$$slots:{default:[ev]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function iv(i,e,t){let{isFullscreen:n=!1}=e,{click:o=$2}=e,r;return i.$$set=l=>{"isFullscreen"in l&&t(0,n=l.isFullscreen),"click"in l&&t(1,o=l.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=n?j("tooltip_fullscreen_on"):j("tooltip_fullscreen_off"))},[n,o,r]}var Eu=class extends O{constructor(e){super(),F(this,e,iv,tv,D,{isFullscreen:0,click:1})}},ul=Eu;function nv(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("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"),ke(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),_(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,s,s[1],n?Re(o,s[1],u,null):Ne(s[1]),null),ke(e,a=He(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){p(r,s),n=!1},d(s){s&&w(e),r&&r.d(s)}}}function ov(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Au=class extends O{constructor(e){super(),F(this,e,ov,nv,D,{})}},ym=Au;function rv(i){let e,t,n,o,r,l,a=i[2].default,s=Ve(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=le(c,u[m]);return{c(){e=N("svg"),s&&s.c(),t=N("path"),n=N("path"),o=N("path"),r=N("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"),ke(e,c)},m(m,h){k(m,e,h),s&&s.m(e,null),_(e,t),_(e,n),_(e,o),_(e,r),l=!0},p(m,[h]){s&&s.p&&(!l||h&2)&&Be(s,a,m,m[1],l?Re(a,m[1],h,null):Ne(m[1]),null),ke(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){l||(d(s,m),l=!0)},o(m){p(s,m),l=!1},d(m){m&&w(e),s&&s.d(m)}}}function sv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Mu=class extends O{constructor(e){super(),F(this,e,sv,rv,D,{})}},wm=Mu;function lv(i){ve(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 av(i){let e,t;return e=new wm({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}var uv="vk-video-logo-icon--short";function cv(i,e,t){let{short:n=!1}=e,{isCyrillic:o=!0}=e,r,l;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,l=n?uv:"vk-video-logo-icon"),!o&&!n&&(t(0,r=91),t(1,l="vk-video-logo-icon--en")))},[r,l,n,o]}var Lu=class extends O{constructor(e){super(),F(this,e,cv,av,D,{short:2,isCyrillic:3},lv)}},km=Lu;function dv(i){let e,t;return e=new ym({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p:_e,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function mv(i){let e,t;return e=new km({props:{short:i[4],isCyrillic:i[5]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function pv(i){let e,t,n,o,r=[mv,dv],l=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=Je()},m(s,u){l[e].m(s,u),k(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ce(),p(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){p(t),o=!1},d(s){s&&w(n),l[e].d(s)}}}function _v(i){let e,t,n;function o(l){i[14](l)}let r={className:"btn-full-opacity",disabled:!i[1],click:i[9],testId:i[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[3],$$slots:{default:[pv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.disabled=!l[1]),a&4&&(s.testId=l[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(s.ariaLabel=l[3]),a&131124&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function hv(i,e,t){let n,o,r,{ref:l=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:s=""}=e,{click:u}=e,c=Mt(),m=it(),h=m.ui.currentGridType$;B(i,h,P=>t(12,n=P));let v=m.ui.isMobile;B(i,v,P=>t(13,o=P));let g=m.isCyrillicRelatedInterface$;B(i,g,P=>t(5,r=P));let S,y,A,I=()=>{var P,U;u(),(P=m.callbacks)!=null&&P.onLogoClicked?(U=m.callbacks)==null||U.onLogoClicked():s&&window.open(s,"_blank")};function C(P){l=P,t(0,l)}return i.$$set=P=>{"ref"in P&&t(0,l=P.ref),"logoClickable"in P&&t(1,a=P.logoClickable),"targetUrl"in P&&t(10,s=P.targetUrl),"click"in P&&t(11,u=P.click)},i.$$.update=()=>{i.$$.dirty&12292&&t(4,A=(o||Uo(n,"l"))&&y)},t(3,S=c.logoType==="vk_video"?j("tooltip_vk_video_logo"):j("tooltip_vk_logo")),t(2,y=c.logoType==="vk_video"||c.logoType==="vk_video_mobile"),[l,a,y,S,A,r,h,v,g,I,s,u,n,o,C]}var Vu=class extends O{constructor(e){super(),F(this,e,hv,_v,D,{ref:0,logoClickable:1,targetUrl:10,click:11})}},cl=Vu;import{ChromecastState as kv}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as Cm}from"@vkontakte/videoplayer-core/es2018";function gv(i){ve(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 bv(i){let e,t,n,o,r,l,a,s;return{c(){e=N("svg"),t=N("g"),n=N("path"),o=N("path"),r=N("path"),l=N("path"),a=N("path"),s=N("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(l,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),f(l,"fill","#fff"),f(a,"d","M0 0h24v24H0z"),f(s,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),f(s,"fill","#fff"),K(s,"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"),K(e,"connecting",i[2])},m(u,c){k(u,e,c),_(e,t),_(t,n),_(t,o),_(t,r),_(t,l),_(t,a),_(t,s)},p(u,c){c&2&&K(s,"hidden",!u[1]),c&4&&K(e,"connecting",u[2])},d(u){u&&w(e)}}}function vv(i){let e,t,n,o,r,l,a,s,u,c,m,h,v,g,S,y,A,I,C,P,U;return{c(){e=N("svg"),t=N("g"),n=N("mask"),o=N("path"),l=N("path"),a=N("path"),u=N("path"),c=N("defs"),m=N("clipPath"),h=N("path"),g=N("filter"),S=N("feFlood"),y=N("feColorMatrix"),A=N("feOffset"),I=N("feGaussianBlur"),C=N("feColorMatrix"),P=N("feBlend"),U=N("feBlend"),f(o,"fill",r=i[1]?"#2688EB":"#fff"),f(o,"d","M1.1 3.1h22v18h-22z"),f(l,"fill-rule","evenodd"),f(l,"clip-rule","evenodd"),f(l,"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",s=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",v=i[1]?"#2688EB":"#fff"),f(h,"d","M0 0h24v24H0z"),f(m,"id","a"),f(S,"flood-opacity","0"),f(S,"result","BackgroundImageFix"),f(y,"in","SourceAlpha"),f(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(y,"result","hardAlpha"),f(I,"stdDeviation","2.5"),f(C,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(P,"in2","BackgroundImageFix"),f(P,"result","effect1_dropShadow_4085_178456"),f(U,"in","SourceGraphic"),f(U,"in2","effect1_dropShadow_4085_178456"),f(U,"result","shape"),f(g,"id","b"),f(g,"x","-3.4"),f(g,"y","-1.4"),f(g,"width","30.8"),f(g,"height","26.802"),f(g,"filterUnits","userSpaceOnUse"),f(g,"color-interpolation-filters","sRGB"),f(e,"width","24"),f(e,"height","24"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-mobile-icon")},m(x,V){k(x,e,V),_(e,t),_(t,n),_(n,o),_(n,l),_(t,a),_(t,u),_(e,c),_(c,m),_(m,h),_(c,g),_(g,S),_(g,y),_(g,A),_(g,I),_(g,C),_(g,P),_(g,U)},p(x,V){V&2&&r!==(r=x[1]?"#2688EB":"#fff")&&f(o,"fill",r),V&2&&s!==(s=x[1]?"#2688EB":"#fff")&&f(a,"fill",s),V&2&&v!==(v=x[1]?"#2688EB":"#fff")&&f(h,"fill",v)},d(x){x&&w(e)}}}function yv(i){let e;function t(r,l){return r[0]?vv:bv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Je()},m(r,l){o.m(r,l),k(r,e,l)},p(r,[l]){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:_e,o:_e,d(r){r&&w(e),o.d(r)}}}function wv(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,r,l;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,l=o===Cm.CONNECTING),t(1,r=o===Cm.CONNECTED))},[n,r,l,o]}var Ru=class extends O{constructor(e){super(),F(this,e,wv,yv,D,{isMobile:0,state:3},gv)}},Sm=Ru;import{noop as Cv}from"@vkontakte/videoplayer-shared/es2018";function Sv(i){let e,t;return e=new Sm({props:{isMobile:i[1],state:i[2]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function Tv(i){let e,t,n;function o(l){i[5](l)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[Sv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,[a]){let s={};a&16&&(s.ariaLabel=l[4]),a&8&&(s.click=l[3]),a&70&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Iv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:l=Cv}=e,a;function s(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,l=u.click)},i.$$.update=()=>{i.$$.dirty&4&&t(4,a=r===kv.CONNECTED?j("tooltip_chromecast_on"):j("tooltip_chromecast_off"))},[n,o,r,l,a,s]}var Bu=class extends O{constructor(e){super(),F(this,e,Iv,Tv,D,{ref:0,isMobile:1,state:2,click:3})}},fl=Bu;function Pv(i){ve(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 Ev(i){let e,t,n,o,r=i[9].default,l=Ve(r,i,i[8],null);return{c(){e=T("div"),t=T("div"),l&&l.c(),f(t,"class","tooltip svelte-5ygsa2"),K(t,"active",i[0]),K(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,s){k(a,e,s),_(e,t),l&&l.m(t,null),i[10](t),i[11](e),o=!0},p(a,[s]){l&&l.p&&(!o||s&256)&&Be(l,r,a,a[8],o?Re(r,a[8],s,null):Ne(a[8]),null),(!o||s&1)&&K(t,"active",a[0]),(!o||s&2)&&K(t,"pointer",a[1]),(!o||s&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&f(e,"style",n)},i(a){o||(d(l,a),o=!0)},o(a){p(l,a),o=!1},d(a){a&&w(e),l&&l.d(a),i[10](null),i[11](null)}}}function Av(i,e,t){let n,{$$slots:o={},$$scope:r}=e,{active:l=!1}=e,{pointer:a=!1}=e,{translateXPx:s=0}=e,{translateYPx:u=0}=e,{containerWidth:c}=e,m,h;function v(y){if(!h)return 0;let{width:A}=h.getBoundingClientRect(),I=A/2;return y<I?I:y>c-I?c-I:y}function g(y){ye[y?"unshift":"push"](()=>{h=y,t(4,h)})}function S(y){ye[y?"unshift":"push"](()=>{m=y,t(3,m)})}return i.$$set=y=>{"active"in y&&t(0,l=y.active),"pointer"in y&&t(1,a=y.pointer),"translateXPx"in y&&t(6,s=y.translateXPx),"translateYPx"in y&&t(2,u=y.translateYPx),"containerWidth"in y&&t(7,c=y.containerWidth),"$$scope"in y&&t(8,r=y.$$scope)},i.$$.update=()=>{i.$$.dirty&64&&t(5,n=v(s))},[l,a,u,m,h,n,s,c,r,o,g,S]}var Nu=class extends O{constructor(e){super(),F(this,e,Av,Ev,D,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},Pv)}},Tm=Nu;var dl=(i,e,t)=>t.filter(n=>n.time<=i*e).pop();function Mv(i){ve(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 Im(i){let e,t;return{c(){e=T("div"),f(e,"class","preview svelte-l51fc1"),f(e,"style",t=`width: ${i[3]}px; height: ${i[4]}px; background-image: url(${i[5]}); background-size: ${i[6]}px ${i[7]}px; background-position: ${i[8]}px ${i[9]}px; transform: translateY(${i[11]%180?-35:0}px) rotate(${i[11]}deg);`)},m(n,o){k(n,e,o)},p(n,o){o&3064&&t!==(t=`width: ${n[3]}px; height: ${n[4]}px; background-image: url(${n[5]}); background-size: ${n[6]}px ${n[7]}px; background-position: ${n[8]}px ${n[9]}px; transform: translateY(${n[11]%180?-35:0}px) rotate(${n[11]}deg);`)&&f(e,"style",t)},d(n){n&&w(e)}}}function Pm(i){let e;function t(r,l){return r[2]&&r[10].completed===!1?Vv:Lv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Je()},m(r,l){o.m(r,l),k(r,e,l)},p(r,l){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&w(e),o.d(r)}}}function Lv(i){let e=(i[10].text||"")+"",t;return{c(){t=Oe(e)},m(n,o){k(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Ke(t,e)},d(n){n&&w(t)}}}function Vv(i){let e=j("tooltip_episode_unfinished")+"",t;return{c(){t=Oe(e)},m(n,o){k(n,t,o)},p:_e,d(n){n&&w(t)}}}function Em(i){let e,t;return{c(){e=T("div"),t=Oe(i[0]),f(e,"class","time svelte-l51fc1")},m(n,o){k(n,e,o),_(e,t)},p(n,o){o&1&&Ke(t,n[0])},d(n){n&&w(e)}}}function Rv(i){let e,t,n,o,r=i[5]&&Im(i),l=i[10]&&Pm(i),a=!i[2]&&Em(i);return{c(){e=T("div"),r&&r.c(),t=G(),n=T("div"),l&&l.c(),o=G(),a&&a.c(),f(n,"class","episode svelte-l51fc1"),f(e,"class","timeline-preview svelte-l51fc1"),K(e,"mobile",i[1])},m(s,u){k(s,e,u),r&&r.m(e,null),_(e,t),_(e,n),l&&l.m(n,null),_(e,o),a&&a.m(e,null)},p(s,[u]){s[5]?r?r.p(s,u):(r=Im(s),r.c(),r.m(e,t)):r&&(r.d(1),r=null),s[10]?l?l.p(s,u):(l=Pm(s),l.c(),l.m(n,null)):l&&(l.d(1),l=null),s[2]?a&&(a.d(1),a=null):a?a.p(s,u):(a=Em(s),a.c(),a.m(e,null)),u&2&&K(e,"mobile",s[1])},i:_e,o:_e,d(s){s&&w(e),r&&r.d(),l&&l.d(),a&&a.d()}}}var Br=150;function Bv(i,e,t){let n,{time:o=""}=e,{isMobile:r=!1}=e,{videoEpisodes:l=[]}=e,{previewThumbsData:a}=e,{progress:s=0}=e,{duration:u=0}=e,{isInteractive:c=!1}=e,h=it().ui.rotateAlpha;B(i,h,V=>t(11,n=V));let v,g,S,y,A,I,C,P;function U(){let V=a.frameWidth,Z=a.frameHeight;return V>Br?(Z=Z/V*Br,V=Br):Z>Br&&(V=V/Z*Br,Z=Br),{width:V,height:Z}}function x(V){let Z;a.isUV?Z=Math.floor(u*V/a.frequency):Z=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*V)));let ae=Math.floor(Z/a.countPerImage),Q=Math.floor(Z%a.countPerImage/a.countPerRow),ue=Z%a.countPerRow,q=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&ae===Math.floor(a.countTotal/a.countPerImage)&&(q=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&q++);let H=a.countPerRow;!a.isUV&&ae===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(H=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let be=v*H,W=g*q,te=-ue*v,z=-Q*g;return{imgSrc:a.links[ae],imgWidth:be,imgHeight:W,imgOffsetX:te,imgOffsetY:z}}return i.$$set=V=>{"time"in V&&t(0,o=V.time),"isMobile"in V&&t(1,r=V.isMobile),"videoEpisodes"in V&&t(13,l=V.videoEpisodes),"previewThumbsData"in V&&t(14,a=V.previewThumbsData),"progress"in V&&t(15,s=V.progress),"duration"in V&&t(16,u=V.duration),"isInteractive"in V&&t(2,c=V.isInteractive)},i.$$.update=()=>{i.$$.dirty&32768&&t(5,{imgSrc:S,imgWidth:y,imgHeight:A,imgOffsetX:I,imgOffsetY:C}=x(s),S,(t(6,y),t(15,s)),(t(7,A),t(15,s)),(t(8,I),t(15,s)),(t(9,C),t(15,s))),i.$$.dirty&106496&&t(10,P=dl(s,u,l))},t(3,{width:v,height:g}=U(),v,t(4,g)),[o,r,c,v,g,S,y,A,I,C,P,n,h,l,a,s,u]}var Du=class extends O{constructor(e){super(),F(this,e,Bv,Rv,D,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},Mv)}},Am=Du;function Nv(i){ve(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 Dv(i){let e,t;return{c(){e=T("span"),t=Oe(i[8]),f(e,"class","time svelte-5lzly8")},m(n,o){k(n,e,o),_(e,t)},p(n,o){o[0]&256&&Ke(t,n[8])},i:_e,o:_e,d(n){n&&w(e)}}}function Ov(i){let e,t;return e=new Am({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){M(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){L(e,n)}}}function Fv(i){let e,t,n,o,r=[Ov,Dv],l=[];function a(s,u){return s[15].features.timelinePreview&&s[22]&&!s[1]?0:1}return e=a(i,[-1,-1]),t=l[e]=r[e](i),{c(){t.c(),n=Je()},m(s,u){l[e].m(s,u),k(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ce(),p(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){p(t),o=!1},d(s){s&&w(n),l[e].d(s)}}}function xv(i){let e,t,n,o,r,l=[i[10]],a={$$slots:{default:[Fv]},$$scope:{ctx:i}};for(let c=0;c<l.length;c+=1)a=le(a,l[c]);e=new Tm({props:a});function s(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 Rr({props:u}),ye.push(()=>We(n,"ref",s)),{c(){R(e.$$.fragment),t=G(),R(n.$$.fragment)},m(c,m){M(e,c,m),k(c,t,m),M(n,c,m),r=!0},p(c,m){let h=m[0]&1024?He(l,[Oo(c[10])]):{};m[0]&2838|m[1]&1048576&&(h.$$scope={dirty:m,ctx:c}),e.$set(h);let v={};m[0]&4096&&(v.isActiveLive=c[12]),m[0]&2048&&(v.isMobile=c[11]),m[0]&4&&(v.ariaValueMax=c[2]),m[0]&128&&(v.ariaValueNow=Math.round(c[7]*100)),m[0]&96&&(v.ariaValueText=j("aria_timeline_value",{position:c[6],duration:c[5]})),m[0]&8192&&(v.loadedProgress=c[13]),m[0]&128&&(v.filledProgress=c[7]),m[0]&128&&(v.handleProgress=c[7]),m[0]&16&&(v.videoEpisodes=c[4]),m[0]&16384&&(v.disabled=c[14].has("TIMELINE")),m[0]&8&&(v.hideHandel=c[3]),!o&&m[0]&1&&(o=!0,v.ref=c[0],ze(()=>o=!1)),n.$set(v)},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&&w(t),L(e,c),L(n,c)}}}function Hv(i,e,t){var Qe;let n,o,r,l,a,s,u,c,m,h,v,{showTimeline:g=!1}=e,{ref:S=void 0}=e,y=it(),A=Mt(),I=y.state.bufferedProgress$;B(i,I,De=>t(13,h=De));let C=y.state.positionWithScrubbing$;B(i,C,De=>t(41,s=De));let P=y.state.duration$;B(i,P,De=>t(2,r=De));let U=y.state.isLive$;B(i,U,De=>t(1,o=De));let x=y.state.isActiveLive$;B(i,x,De=>t(12,m=De));let V=y.ui.isMobile;B(i,V,De=>t(11,c=De));let Z=A.features.episodes?y.actions.internal.getVideoEpisodes():void 0,ae=y.actions.internal.getPreviewThumbsData(),Q=y.state.interactiveEpisodes$;B(i,Q,De=>t(42,u=De));let ue=y.state.isInteractive,q=y.state.isInteractiveTime$;B(i,q,De=>t(3,l=De));let H=y.state.isInteractiveExpectation$;B(i,H,De=>t(40,a=De));let be=y.actions.internal.correctSeekTimeToInteractive,W=(Qe=y.callbacks)==null?void 0:Qe.onDisabledTimelineClick,te=y.ui.controls.disabledControls$;B(i,te,De=>t(14,v=De));let z=A.features.interactiveResponsiveUi,pe,se,X,re,oe=!1,Ze="",Fe=0,Ie=0,Ce=0,Ae;function qe(De){return!be||!ue?De:be(De*r)/r}function J(De){y.actions.internal.startScrubbing(qe(De))}function he(De){l||y.actions.internal.progressScrubbing(qe(De))}function Te(De){y.actions.internal.completeScrubbing(qe(De)),t(36,oe=!1)}function Ye(De,lt,je){at(De,lt,je),t(36,oe=!0)}function nt(De,lt,je){at(De,lt,je),t(36,oe=!0)}function st(){t(36,oe=!1)}function at(De,lt,je){t(9,Ce=qe(De)),t(37,Fe=lt),je&&t(38,Ie=je),t(8,Ze=ct(De))}function ct(De){let lt=Nn((o?1-De:De)*r);return o?`-${lt}`:lt}function me(De){S=De,t(0,S)}return i.$$set=De=>{"showTimeline"in De&&t(35,g=De.showTimeline),"ref"in De&&t(0,S=De.ref)},i.$$.update=()=>{i.$$.dirty[1]&2048&&t(4,pe=ue?u:Z),i.$$.dirty[0]&4&&t(5,se=Nn(r)),i.$$.dirty[1]&1024&&t(6,X=Nn(s)),i.$$.dirty[0]&4|i.$$.dirty[1]&1024&&t(7,re=s/r),i.$$.dirty[0]&8|i.$$.dirty[1]&512&&t(39,Ae=a||l),i.$$.dirty[0]&2|i.$$.dirty[1]&496&&t(10,n={containerWidth:Ie,translateXPx:Fe,translateYPx:ue&&ae?-36:-16,active:oe&&g&&!Ae&&!z,pointer:!A.features.timelinePreview||!ae||o})},[S,o,r,l,pe,se,X,re,Ze,Ce,n,c,m,h,v,A,I,C,P,U,x,V,ae,Q,ue,q,H,W,te,J,he,Te,Ye,nt,st,g,oe,Fe,Ie,Ae,a,s,u,me]}var Ou=class extends O{constructor(e){super(),F(this,e,Hv,xv,D,{showTimeline:35,ref:0},Nv,[-1,-1])}},Mm=Ou;function qv(i){let e,t;return e=new Rr({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){M(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){L(e,n)}}}function Uv(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=it().ui.isMobile;B(i,a,m=>t(4,n=m));let s,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,s=Nn(r)),i.$$.dirty&64&&t(2,u=Nn(o)),i.$$.dirty&65&&t(3,c=o/r)},[r,s,u,c,n,a,o]}var Fu=class extends O{constructor(e){super(),F(this,e,Uv,qv,D,{position:6,duration:0})}},ml=Fu;function zv(i){ve(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 Wv(i){let e;return{c(){e=T("div"),f(e,"class","timeline-stub svelte-1gqonyf"),K(e,"mobile",i[3])},m(t,n){k(t,e,n)},p(t,n){n&8&&K(e,"mobile",t[3])},i:_e,o:_e,d(t){t&&w(e)}}}function Kv(i){let e,t,n,o,r=[Gv,jv],l=[];function a(s,u){return s[1]?0:1}return t=a(i,-1),n=l[t]=r[t](i),{c(){e=T("div"),n.c(),f(e,"class","timeline svelte-1gqonyf"),K(e,"mobile",i[3])},m(s,u){k(s,e,u),l[t].m(e,null),o=!0},p(s,u){let c=t;t=a(s,u),t===c?l[t].p(s,u):(ce(),p(l[c],1,1,()=>{l[c]=null}),fe(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null)),(!o||u&8)&&K(e,"mobile",s[3])},i(s){o||(d(n),o=!0)},o(s){p(n),o=!1},d(s){s&&w(e),l[t].d()}}}function jv(i){let e,t,n;function o(l){i[14](l)}let r={showTimeline:i[2]};return i[0]!==void 0&&(r.ref=i[0]),e=new Mm({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,a){let s={};a&4&&(s.showTimeline=l[2]),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Gv(i){let e,t;return e=new ml({props:{position:i[4],duration:i[5]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function Yv(i){let e,t,n,o,r=[Kv,Wv],l=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=Je()},m(s,u){l[e].m(s,u),k(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ce(),p(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){p(t),o=!1},d(s){s&&w(n),l[e].d(s)}}}function Qv(i,e,t){let n,o,r,l,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:c=!1}=e,{ref:m=void 0}=e,h=it(),v=h.state.isLive$;B(i,v,C=>t(13,n=C));let g=h.ads.duration;B(i,g,C=>t(5,l=C));let S=h.ads.position;B(i,S,C=>t(4,r=C));let y=h.ui.isMobile;B(i,y,C=>t(3,o=C));let A;function I(C){m=C,t(0,m)}return i.$$set=C=>{"isAds"in C&&t(1,a=C.isAds),"canRewindLive"in C&&t(10,s=C.canRewindLive),"isRewindableLive"in C&&t(11,u=C.isRewindableLive),"isHidden"in C&&t(12,c=C.isHidden),"ref"in C&&t(0,m=C.ref)},i.$$.update=()=>{i.$$.dirty&15362&&t(2,A=!c&&(!n||n&&s&&u||a))},[m,a,A,o,r,l,v,g,S,y,s,u,c,n,I]}var xu=class extends O{constructor(e){super(),F(this,e,Qv,Yv,D,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},zv)}},pl=xu;import{noop as e4}from"@vkontakte/videoplayer-shared/es2018";function Zv(i){let e,t,n,o,r,l=i[2].default,a=Ve(l,i,i[1],null),s=[{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<s.length;c+=1)u=le(u,s[c]);return{c(){e=N("svg"),a&&a.c(),t=N("path"),n=N("path"),o=N("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"),ke(e,u)},m(c,m){k(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)&&Be(a,l,c,c[1],r?Re(l,c[1],m,null):Ne(c[1]),null),ke(e,u=He(s,[{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&&w(e),a&&a.d(c)}}}function Xv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Hu=class extends O{constructor(e){super(),F(this,e,Xv,Zv,D,{})}},Lm=Hu;function Jv(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("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"),ke(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),_(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,s,s[1],n?Re(o,s[1],u,null):Ne(s[1]),null),ke(e,a=He(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){p(r,s),n=!1},d(s){s&&w(e),r&&r.d(s)}}}function $v(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var qu=class extends O{constructor(e){super(),F(this,e,$v,Jv,D,{})}},Vm=qu;function t4(i){ve(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 Rm(i){let e,t,n;function o(l){i[19](l)}let r={className:"w-max btn-full-opacity btn-jc-l "+(i[7]?"px-0":""),testId:"btn-episodes",click:i[13],disabled:!i[8],ariaExpanded:i[4],ariaLabel:i[6],$$slots:{default:[s4]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new gt({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,a){let s={};a&128&&(s.className="w-max btn-full-opacity btn-jc-l "+(l[7]?"px-0":"")),a&16&&(s.ariaExpanded=l[4]),a&64&&(s.ariaLabel=l[6]),a&8388777&&(s.$$scope={dirty:a,ctx:l}),!t&&a&2&&(t=!0,s.ref=l[1],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function i4(i){let e,t,n,o;e=new Lm({});function r(s,u){if(s[5]==="FULL")return r4;if(s[5]==="COUNT")return o4}let l=r(i,-1),a=l&&l(i);return{c(){R(e.$$.fragment),t=G(),a&&a.c(),n=Je()},m(s,u){M(e,s,u),k(s,t,u),a&&a.m(s,u),k(s,n,u),o=!0},p(s,u){l===(l=r(s,u))&&a?a.p(s,u):(a&&a.d(1),a=l&&l(s),a&&(a.c(),a.m(n.parentNode,n)))},i(s){o||(d(e.$$.fragment,s),o=!0)},o(s){p(e.$$.fragment,s),o=!1},d(s){s&&(w(t),w(n)),L(e,s),a&&a.d(s)}}}function n4(i){let e,t,n,o,r,l;return r=new Vm({}),{c(){e=T("span"),t=Oe(i[3]),n=G(),o=T("div"),R(r.$$.fragment),f(e,"class","text mobile svelte-1yhs2ga"),f(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){k(a,e,s),_(e,t),k(a,n,s),k(a,o,s),M(r,o,null),l=!0},p(a,s){(!l||s&8)&&Ke(t,a[3])},i(a){l||(d(r.$$.fragment,a),l=!0)},o(a){p(r.$$.fragment,a),l=!1},d(a){a&&(w(e),w(n),w(o)),L(r)}}}function o4(i){let e,t=i[0].length+"",n;return{c(){e=T("span"),n=Oe(t),f(e,"class","text count svelte-1yhs2ga")},m(o,r){k(o,e,r),_(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&Ke(n,t)},d(o){o&&w(e)}}}function r4(i){let e,t;return{c(){e=T("span"),t=Oe(i[3]),f(e,"class","text svelte-1yhs2ga")},m(n,o){k(n,e,o),_(e,t)},p(n,o){o&8&&Ke(t,n[3])},d(n){n&&w(e)}}}function s4(i){let e,t,n,o,r=[n4,i4],l=[];function a(s,u){return s[7]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=Je()},m(s,u){l[e].m(s,u),k(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ce(),p(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){p(t),o=!1},d(s){s&&w(n),l[e].d(s)}}}function l4(i){let e,t,n=i[2]&&Rm(i);return{c(){n&&n.c(),e=Je()},m(o,r){n&&n.m(o,r),k(o,e,r),t=!0},p(o,[r]){o[2]?n?(n.p(o,r),r&4&&d(n,1)):(n=Rm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),p(n,1,1,()=>{n=null}),fe())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function a4(i,e,t){var Q,ue,q;let n,o,r,l,{position:a=0}=e,{duration:s=0}=e,{timeCodes:u=[]}=e,c=it(),m=(ue=(Q=c.callbacks)==null?void 0:Q.onEpisodeChanged)!=null?ue:e4,h=!!((q=c.callbacks)!=null&&q.onEpisodeClicked),v=c.ui.currentGridType$;B(i,v,H=>t(18,r=H));let g=c.ui.episodes.openedByKeyboard$;B(i,g,H=>t(17,o=H));let S=c.ui.episodes.panelOpened$;B(i,S,H=>t(4,n=H));let y=c.ui.isMobile;B(i,y,H=>t(7,l=H));let A,I=H=>{var W,te,z;if(!!((W=c.callbacks)!=null&&W.onEpisodeClicked)){let pe=Ir(H);g.set(pe),S.set(!0),(z=(te=c.callbacks)==null?void 0:te.onEpisodeClicked)==null||z.call(te,pe)}},C=null,P=0,U="",x,V,Z=async(H,be,W)=>{await fn(),(H==null?void 0:H.getAttribute("aria-expanded"))==="false"&&be&&!W&&(g.set(!1),H.focus())};function ae(H){A=H,t(1,A)}return i.$$set=H=>{"position"in H&&t(14,a=H.position),"duration"in H&&t(15,s=H.duration),"timeCodes"in H&&t(0,u=H.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&49152&&t(16,P=a/s),i.$$.dirty&98309){let H=dl(P,s,u);H?(C==null?void 0:C.time)!==H.time&&(m(H),t(2,C=H)):t(2,C=null)}i.$$.dirty&4&&t(3,U=(C==null?void 0:C.text)||""),i.$$.dirty&262144&&(vi(r,"xl")?t(5,x="FULL"):vi(r,"m")&&pm(r,"xl")?t(5,x="COUNT"):t(5,x="SHORT")),i.$$.dirty&8&&t(6,V=`${j("tooltip_episodes")}: ${U}`),i.$$.dirty&131090&&Z(A,o,n)},[u,A,C,U,n,x,V,l,h,v,g,S,y,I,a,s,P,o,r,ae]}var Uu=class extends O{constructor(e){super(),F(this,e,a4,l4,D,{position:14,duration:15,timeCodes:0},t4)}},_l=Uu;import{debounceFn as K3}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as h4,PlaybackState as os,Player as g4,VideoFormat as rs}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as Dn,clientChecker as b4,getHighestQuality as v4,InterfaceLanguage as y4,isInvariantQuality as w4,isNonNullable as k4,loadVKLangPack as C4,Logger as S4,map as T4,merge as I4,Observable as P4,Subject as kl,Subscription as Yu,Tracer as E4,ValueSubject as A4,VideoQuality as M4}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Po}from"@vkontakte/videoplayer-statistics/es2018";import"@vkontakte/videoplayer-interactive/es2018";import{addScript as u4,Subject as Qi,clearVideoElement as c4}from"@vkontakte/videoplayer-shared/es2018";var Bm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var f4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",hl=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 Qi,loadStarted$:new Qi,loadEnded$:new Qi,loadError$:new Qi,ready$:new Qi,slotRequested$:new Qi,started$:new Qi,timeRemained$:new Qi,paused$:new Qi,resumed$:new Qi,ended$:new Qi,empty$:new Qi,skipped$:new Qi,clicked$:new Qi,closed$:new Qi,error$:new Qi};this.loadAdman=e=>this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e);this.loadAdmanMailRu=e=>new Promise((t,n)=>{let o;this.events.loadStarted$.next();let r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?(t(),this.events.loadEnded$.next()):n()};u4(f4,e,this.loadTimeout).then(()=>{window.AdmanHTML?(t(),this.events.loadEnded$.next()):(window.admanAsyncInit=r,o=window.setTimeout(r,this.initTimeout))}).catch(()=>{n(),clearTimeout(o)})});this.loadAdmanNPM=e=>new Promise((t,n)=>{let o;this.events.loadStarted$.next();let r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?(t(),this.events.loadEnded$.next()):n()},l=()=>{a=!0,n()},a=!1,s=window.setTimeout(l,this.loadTimeout);e.addEventListener("abort",l),e.aborted&&l(),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{a||(window.AdmanHTML?(t(),this.events.loadEnded$.next()):(window.admanAsyncInit=r,o=window.setTimeout(r,this.initTimeout)))},l).finally(()=>{clearTimeout(o),clearTimeout(s),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,t)=>{this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(t)}`}),this.events.started$.next(e),t.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),Ue(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{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=(e="ad error")=>{this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout,this.runtimeTimeout=t.runtimeTimeout,this.useAdmanFromNPM=t.useAdmanFromNPM}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){if(this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:t,height:n,isFullscreen:o,isAutoplay:r,adsContainer:l,adsVideoElement:a,slotId:s,params:u={},duration:c,previewParam:m}=e,h,v=this.playerState&&Ue(this.playerState.vsid);v&&(h=parseInt(v,36));let g={dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:Bm(t,n),puid11:o?0:1,preview:m,...h?{request_id:h}:{},duration:c,...u};m||delete g.preview;let S={slot:s,wrapper:l,videoEl:a,videoQuality:n,params:g,browser:{mobile:!1}};try{let y=new window.AdmanHTML;y.setDebug(!1),y.onReady(this.onAdsReady),y.onStarted(this.onAdStarted),y.onPlayed(this.onAdPlayed),y.onPaused(this.onAdPaused),y.adMidrollPoint(this.onAdMidrollPoint),y.onClosed(this.onAdClosed),y.onSkipped(this.onAdSkipped),y.onClicked(this.onAdClicked),y.onTimeRemained(this.onAdTimeRemained),y.onCompleted(this.onAdCompleted),y.onError(this.onAdError),y.init(S),this.adman=y,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(S)}`})}catch(y){this.onAdError("could not init adman")}}switchToVideo(e=!1){var n,o;if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let t=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${t}`}),t&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let r="Switch to video: Adman state was not updated correctly";this.log({message:r}),this.events.error$.next(r)}(o=(n=this.actions).switchFromAdsToVideo)==null||o.call(n,!t)}}togglePlay(){if(this.adsState){this.log({message:"toggle play"});let e=Ue(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){if(this.log({message:`set volume ${e}`}),this.adman)try{this.adman.setVolume(e)}catch(t){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(t){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){if(this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(e){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){if(this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(e){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){if(this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(e){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){if(this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(e){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}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&&c4(this.videoElement),this.isDestroyed=!0}};var Nm=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 zu=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,t){let n=[],o=e.split(this.twoLinesRegExp);for(let r of o){let l={startTime:0,endTime:0,texts:[],lang:t},a=r.split(this.oneLineRegExp);for(let s of a)if(!l.startTime&&!l.endTime){let u=new gl,{startTime:c,endTime:m}=u.parse(s);l.startTime=c,l.endTime=m}else if(s.trim()!==""){let u=new Wu,{texts:c}=u.parse(s);l.texts=[...l.texts,...c]}(l.startTime||l.endTime)&&l.texts.length>0&&n.push(l)}return n}},gl=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,l=Number(t)*60,a=Number(n),s=+`0.${o}`;return r+l+a+s}},Wu=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let a=0,s=[];for(;a<l.length;){let u=["<",">"].reduce((c,m)=>{let h=l.indexOf(m,a);return c===-1||c>h?h:c},-1);if(u===-1){s.push(l.substring(a));break}s.push(l.substring(a,u)),a=u+1}return s}}),r=new gl;for(let l of o)r.isTime(l)?t.texts.push({type:"timestamp",value:r.parseTime(l)}):t.texts.push({type:"text",value:l});return t}},Dm=zu;import{isNonNullable as Ku}from"@vkontakte/videoplayer-shared/es2018";var ur,ti,ju=0,Gu=!1,Om="",Fm=(i,e=0,t=0)=>i<e&&i<t,bl=(i,e=0,t=0)=>i>=e&&i<=t,d4=(i,e=0,t=0)=>i>e&&i>t,xm=(i,e,t,n=!1)=>{var a;let o=(a=t.find(({id:s})=>s===e.value))==null?void 0:a.subtitles;if(n)return o==null?void 0:o.find(({startTime:u,endTime:c})=>bl(i,u,c));let r=i>=ju,l=i<ju;if(ju=i,l&&(Gu=!1),Ku(ur)&&bl(i,ur.startTime,ur.endTime)&&Om===e.value)return ur;if(!Ku(ti)&&(o!=null&&o.length)&&!Gu){ti=o.find(({startTime:u,endTime:c})=>bl(i,u,c)||r&&Fm(i,u,c)),ur=void 0,!Ku(ti)&&o[o.length-1].endTime<i&&(Gu=!0);return}else{if(bl(i,ti==null?void 0:ti.startTime,ti==null?void 0:ti.endTime))return ur=ti,ti=void 0,Om=e.value,ur;(r&&d4(i,ti==null?void 0:ti.startTime,ti==null?void 0:ti.endTime)||l&&Fm(i,ti==null?void 0:ti.startTime,ti==null?void 0:ti.endTime))&&(ti=void 0)}};var Hm={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"},m4={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"},vl=i=>{var e,t;return(t=(e=Hm[i])!=null?e:Hm[m4[i]])!=null?t:void 0};import{Subscription as p4}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var yl=class{constructor(e,t=new p4){this.oneStat=e;this.statSubscription=t}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var wl=(t=>(t.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",t.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",t))(wl||{});var ho=i=>i!=null?i:0,Nr=(i,e)=>{var o,r;let t=(o=i==null?void 0:i.getBoundingClientRect)==null?void 0:o.call(i),n=(r=e==null?void 0:e.getBoundingClientRect)==null?void 0:r.call(e);return{top:Math.round(ho(t==null?void 0:t.top)-ho(n==null?void 0:n.top)),left:Math.round(ho(t==null?void 0:t.left)-ho(n==null?void 0:n.left)),bottom:Math.round(ho(t==null?void 0:t.bottom)-ho(n==null?void 0:n.top)),right:Math.round(ho(t==null?void 0:t.right)-ho(n==null?void 0:n.left))}},Dr=i=>{var t;let e=(t=i==null?void 0:i.getBoundingClientRect)==null?void 0:t.call(i);return{width:ho(e==null?void 0:e.width),height:ho(e==null?void 0:e.height)}};var qm=({interfaceLanguage:i,isCyrillicRelatedInterface:e,videoId:t,isClip:n,isLiveCatchUpMode:o,statAuthToken:r,isAudioDisabled:l,canDownload:a,callbacks:s,webApi:u,videoEpisodes:c,previewThumbsData:m,uiConfig:h,coreConfig:v,player:g,disabledControls:S,isInteractive:y,interactiveRanges$:A,isInteractiveTime$:I,replayInteractive:C,stopPlayer:P,hasInteractiveBranches:U,playPrevChapterDisabledTooltip:x,additionalButtons:V,additionalSettingsMenuItems:Z,additionalContextMenuItems:ae,playPrevVideo:Q,playNextVideo:ue,looped:q=!1,statistics:H,saveRate:be,internalsExposure:W})=>{var cn,xf,Hf,qf;let te={...v,configName:[...(cn=v.configName)!=null?cn:[],"ui"],isAudioDisabled:l,live:{...(xf=v.live)!=null?xf:{},isLiveCatchUpMode:!!o}},z=h,pe=E4.createRootTracer(z.features.saveTraceInfoToFile),se=pe.createComponentTracer("Store"),X=g||new g4(te,pe);W==null||W.expose({corePlayer:X});let re=new S4,oe=new hl(re,{loadTimeout:z.ads.loadTimeout,initTimeout:z.ads.initTimeout,runtimeTimeout:z.ads.runtimeTimeout,useAdmanFromNPM:z.ads.useAdmanFromNPM}),Ze=ir.getInstance(),Fe=u==null?void 0:u.pictureInPictureApi,Ie=u==null?void 0:u.annotationsApi,Ce=re.createComponentLog("Store"),Ae,qe,J={},he=new Es,Te=H?Et(H.oneStat.vsid$):Jn(void 0),Ye=Me(Fo()),nt=(Hf=Fe==null?void 0:Fe.info.isActive$)!=null?Hf:new A4(!1),st=Me(0),at=Me([]),ct=I4(X.events.fatalError$,X.events.managedError$).subscribe(b=>at.update(E=>[...E,b])),me=Jn(!1,b=>{let E=X.events.fatalError$.subscribe(()=>b(!0));return()=>E.unsubscribe()}),Qe=async b=>{var Ee;let E=Object.values(y4).includes(b);if(z.downloadVKLanguages&&(E&&z.updateBuiltinLanguages||!Ia(b))){let $e;try{$e=await C4(b,rd,sd)}catch(pt){(Ee=H==null?void 0:H.oneStat)==null||Ee.logError({errorType:"VKLangPack",fatal:!1}),Ze==null||Ze.report(pt,{errorType:"VKLangPack",fatal:!1})}$e&&(Ta({language:b,pack:$e,fallback:z.defaultLanguage}),De.set(b))}Ia(b)&&De.set(b)},De=Me(i),lt=Me(e);Qe(i);let je=(b,E)=>{let $=Ue(De);return Pa($,b,E,z.defaultLanguage)},xe=Me("thumb"),Pe=(()=>{let b=ei([me,xe],([E,$])=>E?"crashed":$);return{...b,is:E=>Ue(b)===E}})(),ft=(()=>{let b=Me(new Set(S));return{...b,add:E=>{b.update($=>new Set([...$].concat(E)))},remove:E=>{b.update($=>{let Ee=[...$];return new Set(Array.isArray(E)?Ee.filter($e=>!E.includes($e)):Ee.filter($e=>$e!==E))})},includes:E=>{let $=Ue(b);return Array.isArray(E)?E.every(Ee=>$.has(Ee)):$.has(E)}}})();se.log("create store"),Ce({message:"create store"});let ge=b=>{let E=b.container;E.append(X.experimental.element$.getValue()),Ut=new MutationObserver($=>{let{removedNodes:Ee}=$[0];Ee.length&&E.append(X.experimental.element$.getValue())}),Ut.observe(E,{childList:!0})},dt=b=>{Ce({message:`init video, config: ${JSON.stringify(b)}`}),y?ge(b):X.initVideo(b),se.log("init video",{isInteractive:y}),b.subtitles&&X.setExternalTextTracks(b.subtitles),Ae=b},bt=new kl,Xe=b=>bt.next(b),yt=new kl,Tt=new kl,Kt=new kl,Ut=null,jt={actionRewind$:yt,actionSeek$:Tt,inPiP$:nt,inFullscreen$:new P4(b=>Ye.subscribe(E=>b.next(E))),actionSetSubtitle$:Kt,nextMovie$:bt};if(H){let{oneStat:b,statSubscription:E}=H;y||E.add(b.attachTo(X)),E.add(b.attachToUi(jt)),E.add(b.attachToAds(oe.events)),b.authorize(r).catch($=>{Ce({message:`onestat auth error ${String($)}`})})}if(Ze){let b=new Yu,E=($,Ee)=>b.add($.subscribe(Ee));if(E(X.events.managedError$,$=>{Ze.logIError($)}),E(X.events.fatalError$,$=>{Ze.logIError($,!0)}),H){let{oneStat:$}=H;E($.experimental.error$,Ee=>{Ze.logIError(Ee)})}Ze.sentrySubscription.add(b)}let Ht=()=>{b4.isIOS&&qe&&Kd(qe).catch(b=>{Ce({message:`exitIosSafariFullscreen failed: ${b}`})})},zt=new Yu().add(X.experimental.element$.subscribe(b=>{b&&(qe=b,b.classList.add("player-media"),or(Fe)&&(Fe.updateVideoElement(),Fe.registryEventHandlers()),y&&b.setAttribute("pip","false"))})).add(X.events.ended$.subscribe(()=>{var b;Ht(),(b=s==null?void 0:s.onEnded)==null||b.call(s)})).add(X.events.looped$.subscribe(()=>{var b;(b=s==null?void 0:s.onLooped)==null||b.call(s)})).add(X.events.started$.subscribe(async()=>{var E,$;or(Fe)&&await(Fe==null?void 0:Fe.revealPictureInPicture());let b=X.info.muted$.getValue();(E=s==null?void 0:s.onStarted)==null||E.call(s),($=J.onStarted)==null||$.call(J,b)})).add(X.events.willSeek$.subscribe(({from:b,to:E})=>{var $;($=s==null?void 0:s.onSeek)==null||$.call(s,b,E)})).add(X.events.autoplaySoundProhibited$.subscribe(()=>{var b;(b=s==null?void 0:s.onAutoplaySoundProhibited)==null||b.call(s)})).add(X.info.position$.subscribe(b=>{var $;let E=X.info.duration$.getValue();isFinite(E)&&E>0&&(($=s==null?void 0:s.onTimeupdate)==null||$.call(s,E,b),oe.setPosition(b,E))})).add(X.events.fatalError$.subscribe(()=>{var b;(b=s==null?void 0:s.onCrashed)==null||b.call(s)})).add(X.events.loadedMetadata$.subscribe(()=>{ee.state.loadedMetadata$.set(!0)})).add(X.info.is3DVideo$.subscribe(b=>{ee.ui.is3DVideo.set(b)})).add(X.info.isEnded$.subscribe(b=>{y&&(b?(I!=null&&I.getValue()&&ft.add(Is),ft.add("PLAY_BUTTON")):ft.remove("PLAY_BUTTON"))})).add(X.info.liveTime$.subscribe(b=>{var E;(E=s==null?void 0:s.onLiveTime)==null||E.call(s,b)})).add(X.info.isStalled$.subscribe(b=>{var E;(E=s==null?void 0:s.onStalledChanged)==null||E.call(s,b)})).add(oe.events.loadStarted$.subscribe(()=>{var b,E;return(E=(b=s==null?void 0:s.adsInfo)==null?void 0:b.onLoadStarted)==null?void 0:E.call(b)})).add(oe.events.loadEnded$.subscribe(()=>{var b,E;return(E=(b=s==null?void 0:s.adsInfo)==null?void 0:b.onLoadEnded)==null?void 0:E.call(b)})).add(oe.events.loadError$.subscribe(()=>{var b,E;return(E=(b=s==null?void 0:s.adsInfo)==null?void 0:b.onLoadError)==null?void 0:E.call(b)})).add(oe.events.init$.subscribe(()=>{var b,E;return(E=(b=s==null?void 0:s.adsInfo)==null?void 0:b.onInit)==null?void 0:E.call(b)})).add(oe.events.ready$.subscribe(()=>{var b,E;return(E=(b=s==null?void 0:s.adsInfo)==null?void 0:b.onReady)==null?void 0:E.call(b)})).add(oe.events.started$.subscribe(b=>{var E,$;return($=(E=s==null?void 0:s.adsInfo)==null?void 0:E.onStarted)==null?void 0:$.call(E,b)})).add(oe.events.timeRemained$.subscribe(b=>{var E,$;return($=(E=s==null?void 0:s.adsInfo)==null?void 0:E.onTimeRemained)==null?void 0:$.call(E,b)})).add(oe.events.ended$.subscribe(b=>{var E,$;return($=(E=s==null?void 0:s.adsInfo)==null?void 0:E.onCompleted)==null?void 0:$.call(E,b)})).add(oe.events.empty$.subscribe(()=>{var b,E;return(E=(b=s==null?void 0:s.adsInfo)==null?void 0:b.onEmpty)==null?void 0:E.call(b)})).add(oe.events.clicked$.subscribe(b=>{var E,$;return($=(E=s==null?void 0:s.adsInfo)==null?void 0:E.onClicked)==null?void 0:$.call(E,b)})).add(oe.events.closed$.subscribe(b=>{var E,$;return($=(E=s==null?void 0:s.adsInfo)==null?void 0:E.onClosed)==null?void 0:$.call(E,b)})).add(oe.events.error$.subscribe(b=>{var E,$;return($=(E=s==null?void 0:s.adsInfo)==null?void 0:E.onError)==null?void 0:$.call(E,b)})).add(oe.events.paused$.subscribe(()=>{var b,E;return(E=(b=s==null?void 0:s.adsInfo)==null?void 0:b.onPaused)==null?void 0:E.call(b)})).add(oe.events.resumed$.subscribe(()=>{var b,E;return(E=(b=s==null?void 0:s.adsInfo)==null?void 0:b.onResumed)==null?void 0:E.call(b)})),Vt=new Yu,ot=()=>{Vt.add(X.events.log$.subscribe(b=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${b.component}`,b.message)})).add(re.log$.subscribe(b=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${b.component}.`,b.message)}))},St=()=>{Vt.unsubscribe()},Lt=(b,E)=>{se.log("start camera manual rotation",{mx:b,my:E}),X.startCameraManualRotation(b,E)},de=(b=!1)=>{se.log("stop camera manual rotation",{immediate:b}),X.stopCameraManualRotation(b)},et=(b,E,$)=>{se.log("move camera focus px",{xpx:b,ypx:E,dt:$}),X.moveCameraFocusPX(b,E,$)},kt=()=>{X.holdCamera()},ri=()=>{X.releaseCamera()},Bt=Jn(X.info.position$.getValue(),b=>{let E,$,Ee=()=>{let $e=X.info.playbackState$.getValue(),pt=X.info.isLive$.getValue(),_t=X.info.duration$.getValue(),ht=X.info.position$.getValue();if([os.PLAYING,os.PAUSED].includes($e)){let At=pt?ht-_t:X.getExactTime();At!==$&&b(At),$=At}E=requestAnimationFrame(Ee)};return Ee(),()=>cancelAnimationFrame(E)}),Nt=Et(X.info.playbackState$),si=Et(X.info.currentBuffer$),Wt=Et(X.info.isEnded$),li=Et(X.info.isLive$),Ti=z.features.playbackRate?Et(X.info.canChangePlaybackSpeed$):Jn(!1),Fi=Et(X.info.liveBufferTime$),_i=Et(X.info.volume$),yi=Et(X.info.muted$),wi=ha(X.info.autoQualityLimits$.pipe(T4(({max:b})=>b!==void 0)),((qf=X.info.autoQualityLimits$.getValue())==null?void 0:qf.max)!==void 0),Ot=Et(X.info.autoQualityLimitingAvailable$),xi=Et(X.info.availableQualities$),Ft=Et(X.info.availableQualitiesFps$),Zt=Et(X.info.chromecastState$),Ii=Et(X.info.chromecastDeviceName$),Xt=Et(X.info.currentFormat$),Pi=Et(X.info.throughputEstimation$),Bi=Et(X.info.videoBitrate$),Le=Et(X.info.intrinsicVideoSize$),tt=Et(X.info.duration$),qt=Et(X.info.isAudioAvailable$),Gt=null,It=X.info.isBuffering$,Zi=Jn(It.getValue(),b=>{let E=It.subscribe($=>{$&&Gt===null?Gt=window.setTimeout(()=>{b(It.getValue()),Gt=null},z.loaderDelay):b($)});return()=>{E.unsubscribe(),Gt&&clearTimeout(Gt)}}),xt=()=>{Gt&&clearTimeout(Gt),Gt=null},ii=ei([tt,li],([b,E])=>E?-b:b),mn=ei([Nt],([b])=>b===os.PLAYING),In=Et(X.info.atLiveEdge$),pn=Et(X.info.atLiveDurationEdge$),ai=Et(X.info.position$),Hi=ei([ai,tt],([b,E])=>isFinite(b)&&isFinite(E)&&!!E),_n=ei([Zt],([b])=>b===h4.CONNECTED),Xi=Et(X.info.availableVideoStreams$),Ni=z.features.audioLanguages?Et(X.info.availableAudioStreams$):Jn([]),hn=Et(X.info.currentVideoStream$),ui=Et(X.info.currentAudioStream$),On=b=>{b.language&&Ca(b.language),X.setVideoStream(b)},Ei=b=>{b.language&&Ca(b.language),X.setAudioStream(b)},qi=b=>{let E;if(b.length===1&&(E=b.at(0)),E!=null||(E=b.find(Ee=>"isDefault"in Ee&&Ee.isDefault)),E)return E;let $=Rd();return $&&(E=b.find(({language:Ee})=>$===Ee)),E!=null||(E=b.at(0)),E},Ui=!1;zt.add(X.info.availableAudioStreams$.subscribe(b=>{if(!Ui&&b.length){let E=qi(b);E&&(X.setAudioStream(E),Ui=!0)}}));let Ji=!1;zt.add(X.info.availableVideoStreams$.subscribe(b=>{if(!Ji&&b.length){let E=qi(b);E&&(X.setVideoStream(E),Ji=!0)}}));let Ai=Me(void 0),zi=Et(X.info.isAutoQualityEnabled$,b=>b&&Ai.set(void 0)),$i=Et(X.info.currentQuality$,()=>Ai.set(void 0)),ki=ei([Ai,$i],([b,E])=>b!=null?b:E),Di=ei([xi,Ft,zi,ki,Xt],([b,E,$,Ee,$e])=>{let pt=[];$e!==rs.MPEG&&pt.push({value:"auto",displayValue:je("auto_quality_option"),selected:$});let _t=b.filter(ht=>!w4(ht));for(let ht of _t){let At=E[ht];pt.push({value:ht,displayValue:`${ht}${At?Nm(At):""}`,selected:$?!1:ht===Ee})}return pt}),ni=Et(X.info.currentPlaybackRate$),oi=ei([ni,In,pn],([b,E,$])=>{let Ee=$||y?1:z.controls.playbackRateMin,$e=E?1:z.controls.playbackRateMax,pt=z.controls.playbackRateStep,_t=[];for(let ht=Ee;ht<=$e;ht+=pt)_t.push({value:ht,displayValue:ht===1?je("playback_rate_1"):je("playback_rate",{multiplier:ht.toString(10)}),selected:b===ht});return _t}),rt={displayValue:je("subtitles_off"),value:"off"},Jt=Me({...rt}),hi=z.features.subtitles?Et(X.info.availableTextTracks$):Jn([]),gn=yd(),Wi=ei([hi,Jt],([b,E],$)=>{var pt;let Ee=[],$e=b.find(({id:_t})=>_t===E.value);if($e!=null&&$e.url){let[,_t]=(pt=gn.find($e.url))!=null?pt:[];if(_t){$(_t);return}he.download($e.url).then(ht=>{if(!ht||he.isDestroyed())return;let At=new Dm,No=$e.language;if(No){let _h=!!$e.isAuto,hh=At.parse(ht,No);Ee.push({lang:No,subtitles:hh,isAuto:_h,id:$e.id})}gn.add($e.url,Ee),Ue(Jt).value===E.value&&$(Ee)}).catch(ht=>{var At;(At=H==null?void 0:H.oneStat)==null||At.logError({errorType:"Subtitles download",fatal:!1}),Ze==null||Ze.report(ht,{errorType:"Subtitles download",fatal:!1})})}$(Ee)}),bn=ei([ni,mn,Jt],([b,E,$],Ee)=>{let _t;if(X.info.isLive$.getValue()&&E&&$.value!==rt.value){let At=()=>{let No=1e3/(3*b);_t=setTimeout(At,No),Ee(Date.now())};return At(),()=>clearTimeout(_t)}}),en=ei([hi,Jt],([b,E])=>{if(!b.length)return[];let $=[];for(let{language:Ee,isAuto:$e,id:pt}of b){let _t=Ee&&vl(Ee);Ee&&_t&&$.push({displayValue:$e?je("subtitles_auto",{language:_t}):_t,value:pt,selected:(E==null?void 0:E.value)===pt,isAuto:$e})}return $.length?($.unshift({...rt,selected:(E==null?void 0:E.value)===rt.value}),$):[]}),ci={available:[],prev:[]},tn=()=>{var E,$;let b=X.experimental.getCurrentTime$.getValue();return($=(E=b==null?void 0:b())!=null?E:qe==null?void 0:qe.currentTime)!=null?$:0},Mi=ei([Bt,Jt,Wi,bn],([b,E,$,Ee])=>{var pt;let $e=X.info.isLive$.getValue();if($e&&ci.prev!==$){let _t=$.find(({id:At})=>At===E.value),ht=ci.prev.find(({id:At})=>At===E.value);if(_t){let At={..._t,subtitles:[...(pt=ht==null?void 0:ht.subtitles)!=null?pt:[],..._t.subtitles]};ci.available=[At],ci.prev=$}}if(E&&E.value!==rt.value){let _t=$e?tn():b,ht=$e?ci.available:$;return xm(_t,E,ht,$e)}}),Ge=ei([Mi],([b])=>b!=null&&b.texts?b.texts:[]),vn=Me(!0),nn=ei([si,ii,ai,Fi],([b,E,$,Ee])=>{var ht;let $e=(ht=b==null?void 0:b.end)!=null?ht:0;if(!Ee)return $e/E;let _t=-$+Ee-E;return($e-_t)/E}),Oi=Et(X.info.availableSources$),on=ei([Oi],([b])=>Object.keys((b==null?void 0:b[rs.MPEG])||{}).length>0),rn=()=>{var $,Ee,$e;let b=Object.keys(((Ee=($=X.info.availableSources$)==null?void 0:$.getValue())==null?void 0:Ee[rs.MPEG])||{}),E=v4(b)||M4.Q_144P;return($e=Ae.sources[rs.MPEG])==null?void 0:$e[E]},Ki=()=>{var E;let b=rn();if(b)se.log("download video",{url:b}),gd(b,((E=Ae==null?void 0:Ae.meta)==null?void 0:E.title)||"video");else{let $="There is no URL for download video";se.log("download video",{message:$}),Ce({message:$})}},Kn=()=>{Ce({message:"toggle muted"});let b=X.info.muted$.getValue(),E=X.info.volume$.getValue(),$=E===0||b,Ee=!$;se.log("toggle muted",{muted:b,volume:E,soundIsOff:$,nextValue:Ee}),ji(Ee)},Fn=()=>{var b;if(ee.ui.settingsMenu.visible$.set(!1),!Ue(ee.ui.settingsSubMenu.visible$)){let E=Ue(ee.ui.settingsMenu.ref$);if((b=s==null?void 0:s.uiInfo)!=null&&b.onSettingsMenu&&E){let Ee=Dr(E),$e={top:0,left:0,bottom:0,right:0};s.uiInfo.onSettingsMenu({visible:!1,size:Ee,position:$e,name:"settings"})}}se.log("close settings menu")},gi=async(b,E=()=>Promise.resolve())=>{var $e;ee.ui.settingsMenu.openedByBtnKeyboard$.set(!!b),ee.ui.settingsMenu.visible$.set(!0),await E();let $=Ue(ee.ui.settingsMenu.ref$),Ee=dr();if(($e=s==null?void 0:s.uiInfo)!=null&&$e.onSettingsMenu&&$&&Ee){let _t=Dr($),ht=Nr($,Ee);s.uiInfo.onSettingsMenu({visible:!0,size:_t,position:ht,name:"settings"})}se.log("open settings menu",{wasOpenedByKeyboard:b})},xn=(b,E=!1)=>{var pt;ee.ui.settingsSubMenu.visible$.set(!1);let $=Ue(ee.ui.settingsMenu.ref$),Ee=dr(),$e=Ue(ee.ui.settingsMenu.visible$);if((pt=s==null?void 0:s.uiInfo)!=null&&pt.onSettingsMenu&&$&&Ee)if($e&&!E){let ht=Dr($),At=Nr($,Ee);s.uiInfo.onSettingsMenu({visible:!0,size:ht,position:At,name:"settings"})}else{let ht=Dr(b),At={top:0,left:0,bottom:0,right:0},No=Ue(ee.ui.settingsSubMenu.name$);s.uiInfo.onSettingsMenu({visible:!1,size:ht,position:At,name:No})}se.log("close settings sub menu")},yn=(b,E)=>{var Ee;ee.ui.settingsSubMenu.visible$.set(!0),ee.ui.settingsSubMenu.ref$.set(E),ee.ui.settingsSubMenu.name$.set(b);let $=dr();if((Ee=s==null?void 0:s.uiInfo)!=null&&Ee.onSettingsMenu&&E&&$){let pt=Dr(E),_t=Nr(E,$);s.uiInfo.onSettingsMenu({visible:!0,name:b,size:pt,position:_t})}se.log("open settings sub menu",{name:b})},wn=(b,E=b,$=!1)=>{var pt,_t,ht;let Ee=!$,$e=X.info.muted$.getValue();Ce({message:`set volume, volume: ${b}, preferredVolume: ${E}, internalCall: ${Ee}`}),se.log("set volume",{volume:b,preferredVolume:E,internalCall:Ee}),X.setVolume(b),oe.setVolume(b),Ee&&((pt=s==null?void 0:s.onVolumeChange)==null||pt.call(s,b)),va(E),$e?(X.setMuted(!1),Ee&&((_t=s==null?void 0:s.onUnmute)==null||_t.call(s)),Ms(!1)):!$e&&b===0&&(X.setMuted(!0),Ee&&((ht=s==null?void 0:s.onMute)==null||ht.call(s)),Ms(!0))},ji=(b,E=!1)=>{var $e,pt,_t,ht;let $=!E,Ee=X.info.volume$.getValue();if(Ce({message:`set muted, currentVolume: ${Ee}, mute: ${b}, internalCall: ${$}`}),se.log("set muted",{mute:b,currentVolume:Ee,internalCall:$}),X.setMuted(b),oe.setVolume(b?0:Ee),Ms(b),$&&(b?($e=s==null?void 0:s.onMute)==null||$e.call(s):(pt=s==null?void 0:s.onUnmute)==null||pt.call(s)),Ee===0){let At=(_t=As())!=null?_t:z.volumeDefault;At===0&&(At=z.volumeMinRestore,va(At)),X.setVolume(At),oe.setVolume(At),$&&((ht=s==null?void 0:s.onVolumeChange)==null||ht.call(s,At))}},sn=Me(!1),kn=b=>{se.log("set looped",{isLooped:b}),sn.set(b),X.setLooped(b)};kn(q);let Gi=()=>{var b,E;(E=(b=s==null?void 0:s.uiInfo)==null?void 0:b.onReportProblem)==null||E.call(b)},ln=(b,E=!1)=>{var $;Ce({message:`set autoplayNextEnabled, value: ${b}`}),se.log("set autoplay next enabled",{autoplayNextEnabled:b}),ee.ui.autoplayNextEnabled$.set(b),Dd(b),E&&(($=s==null?void 0:s.onSetAutoplayNextEnabled)==null||$.call(s,b))},Hn=b=>{Ce({message:`set timerNextVideoRunning, value: ${b}`}),se.log("set timer next video running",{timerNextVideoRunning:b}),ee.ui.timerNextVideoRunning$.set(b)},io=(b=!0)=>{var $;let E=!0;if(b&&(s!=null&&s.onPrevVideoClick))try{E=($=s==null?void 0:s.onPrevVideoClick)==null?void 0:$.call(s)}catch(Ee){Ce({message:"onPrevVideoClick callback failed to execute"})}E&&Q()},no=(b=!0)=>{var $;let E=!0;if(b&&(s!=null&&s.onNextVideoClick))try{E=($=s==null?void 0:s.onNextVideoClick)==null?void 0:$.call(s)}catch(Ee){Ce({message:"onNextVideoClick callback failed to execute"})}E&&ue()},fi=()=>{var b;(b=s==null?void 0:s.onNextVideoAnnouncementClick)==null||b.call(s)},oo=()=>{var b;(b=s==null?void 0:s.onNextVideoAnnouncementAuto)==null||b.call(s)},ro=()=>{var b;(b=s==null?void 0:s.onNextVideoAnnouncementCancel)==null||b.call(s)},jn=()=>{X.prepare()},so=()=>{Dn(ee);let b=Ue(ee.ui.controls.disabledControls$),E=Ue(ee.playerPhase),$={playerPhase:E,isInteractive:y,isVideoEnded:!1,action:"none"};if(b.has("PLAY_BUTTON"))return;if(Ce({message:"toggle play"}),E==="ads"){$.action="play",se.log("toggle adman play",$),oe.togglePlay();return}let Ee=()=>{var pt;Ce({message:"toggle play, call player.play"}),$.action="play",X.play(),(pt=s==null?void 0:s.onPlay)==null||pt.call(s)},$e=()=>{var pt;Ce({message:"toggle play, call player.pause"}),$.action="pause",X.pause(),(pt=s==null?void 0:s.onPause)==null||pt.call(s)};if(X.info.isEnded$.getValue()){if(Ce({message:"toggle play, video ended, seek to 0"}),yt.next(),Tt.next(Po.REWIND),y){C==null||C();return}X.seekTime(0),Ee()}else X.info.playbackState$.getValue()!==os.PLAYING?Ee():$e();se.log("toggle play",$)},lo=b=>{Ce({message:`set quality, quality: ${b}`}),se.log("set quality",{quality:b}),X.setAutoQuality(b==="auto"),b!=="auto"?(Ed(t,b),Ai.set(b),X.setQuality(b)):ya()},Gn=b=>{Ce({message:`set trafficSavingEnabled, value: ${b}`}),se.log("set traffic saving enabled",{trafficSavingEnabled:b}),X.setAutoQualityLimits({max:b?z.trafficSavingLimit:void 0}),Ld(b)},Pn=b=>{se.log("set playback rate",{playbackRate:b}),X.setPlaybackRate(b),z.features.saveRate&&be&&!X.info.isLive$.getValue()&&Bd(b)},En=()=>{let b=Ue(oi),E=b.findIndex(({selected:Ee})=>Ee);if(E===b.length-1)return;let $=b[E+1];Pn($.value)},go=()=>{let b=Ue(oi),E=b.findIndex(({selected:Ee})=>Ee);if(E===0)return;let $=b[E-1];Pn($.value)},Yn=(b={...rt,selected:!1})=>{se.log("set subtitles",{...b}),b&&b.value!==rt.value&&Kt.next(b.isAuto?b.value+"_auto":b.value),Jt.set(b)},bo=()=>{se.log("toggle subtitles");let b=Ue(en),E=Ue(Jt),$=Ue(De);if((E==null?void 0:E.value)===rt.value){let Ee=b.filter($e=>$e.value!==rt.value).find($e=>$e.value===$)||b[1];Yn(Ee)}else Yn()},bi=(b,E,$=!0)=>{var Ee;if(Ce({message:`seek to time, time: ${b}`}),se.log("seek to time",{time:b,action:E,forcePrecise:$}),Tt.next(E),X.info.isLive$.getValue()){let $e=X.info.duration$.getValue(),pt=Math.min(0,$e+b);X.seekTime(pt,$)}else{if(I!=null&&I.getValue())return;X.info.isEnded$.getValue()&&(Ce({message:"seek after ended, call callbacks.onPlay"}),(Ee=s==null?void 0:s.onPlay)==null||Ee.call(s)),X.seekTime(vs(b),$)}},Qn=b=>{Ce({message:`seek to episode start time: ${b}`}),se.log("seek to episode start time",{time:b}),bi(b,Po.EPISODE,!0)},Zn=(b,E)=>{Ce({message:`seek to percent, percent: ${b}`}),se.log("seek to percent",{percent:b,action:E});let $=Ue(ii)*b;bi($,E,!1)},ie=b=>{Ce({message:`seek external, time: ${b}`}),se.log("seek external",{time:b}),Tt.next(Po.UNKNOWN),X.seekTime(X.info.isLive$.getValue()?-b:b)},Rt=b=>{var Ee,$e;let E=(Ee=b.max)!=null?Ee:"none",$=($e=b.min)!=null?$e:"none";Ce({message:`set auto quality limitation. Max: ${E}. Min: ${$}`}),se.log("set auto quality limits",{max:E,min:$}),X.setAutoQualityLimits(b)},ne=b=>{Ce({message:`seek external to episode start time: ${b}`}),se.log("seek external to episode start time",{time:b}),bi(b,Po.EPISODE,!0)},Cn=b=>{Ce({message:`set playback rate to: ${b}`}),se.log("set playback rate external",{playbackRate:b}),X.setPlaybackRate(b)},Xn=Me(void 0),Ci=Me(!1),ao=b=>{Ce({message:`start scrubbing, progress: ${b}`}),se.log("start scrubbing",{progress:b}),Ci.set(!0),Ao(b)},Ao=b=>{Xn.set(b)},uo,qn,co=()=>{Xn.set(void 0),Ci.set(!1)},An=()=>{clearTimeout(qn),clearTimeout(uo),uo=window.setTimeout(()=>{co()},500),qe==null||qe.removeEventListener("seeked",An)},vo=b=>{Ce({message:`complete scrubbing, progress: ${b}`}),se.log("complete scrubbing",{progress:b}),Zn(b,Po.SLIDER),Ue(ee.ui.isMobile)&&Ue(ee.state.currentFormat$)===rs.HLS?(qe==null||qe.addEventListener("seeked",An),qn=window.setTimeout(()=>{An()},300)):co()},Mo=ei([Bt,ii,Xn],([b,E,$],Ee)=>{Ee(k4($)?$*E:b)}),Lo=Me({width:0,height:0}),yo=ei([Lo],([{width:b}],E)=>{let $=_m(b);E($)}),wo=Me(!1),Vo=V.filter(b=>bd(b)),Ro=ei([yo,wo],([b,E])=>E?Vo.filter($=>!$.hideOnMobile):Vo.filter($=>{var Ee;return!((Ee=$.hideOnDesktopGridTypes)!=null&&Ee.includes(b))})),Mn=Me(V.filter(b=>vd(b))),jo=ei([Mn,yo],([b,E])=>b.filter($=>{var Ee;return!((Ee=$.hideOnDesktopGridTypes)!=null&&Ee.includes(E))})),Go=ei([jo,Ro],([b,E])=>[...z.features.additionalButtonsDesktopControlPanelRight?b.filter($=>$.type==="desktop-control-panel-right"):[],...z.features.additionalButtons?E.map(($,Ee)=>{var $e;return{id:Ee,weight:Ee,type:"desktop-control-panel-right",testId:$.testId,icon:$.iconUrl,onClick:$.onClick,ariaLabel:($e=$.ariaLabel)!=null?$e:$.tooltip,tooltipText:$.tooltip}}):[]]),Ln=Me(Z),fr=ei([Ln],([b])=>z.features.additionalSettingsMenuItems?b.map(E=>E.type==="SWITCH"?{...E,onClick:E.onChangeEnabled}:E):[]),Yo=(b,E)=>{let $=Ue(Mn).map(Ee=>Ee.id!==b?Ee:{...Ee,...E});Mn.set($)},Y=b=>{let E=Ue(Mn);if(E.some($=>$.id===b.id)){Ce({message:`Additional button with id: "${b.id}" was exist! Can't add more with the same id`});return}E.push(b),Mn.set(E)},Pt=b=>{let E=Ue(Mn);if(!E.some($=>$.id===b)){Ce({message:`Can't find additional button with id: "${b}"! Can't remove item with this id`});return}E=E.filter($=>$.id!==b),Mn.set(E)},Li=b=>{Tt.next(Po.LIVE),Ce({message:"live switch to low latency "+b}),se.log("live switch to low latency "+b),X.setLiveLowLatency(b)},Si=(b,E)=>{let $=Ue(Ln).map(Ee=>Ee.id!==b?Ee:{...Ee,...E});Ln.set($)},fo=b=>{let E=Ue(Ln);if(E.some($=>$.id===b.id)){Ce({message:`Settings menu item with id: "${b.id}" was exist! Can't add more with the same id`});return}E.push(b),Ln.set(E)},Un=b=>{let E=Ue(Ln);if(!E.some($=>$.id===b)){Ce({message:`Can't find settings menu item with id: "${b}"! Can't remove item with this id`});return}E=E.filter($=>$.id!==b),Ln.set(E)},Vi=Me(ae),Ur=ei([Vi],([b])=>z.features.additionalContextMenuItems?b:[]),Qo=(b,E)=>{let $=Ue(Vi).map(Ee=>Ee.id!==b?Ee:{...Ee,...E});Vi.set($)},Bo=b=>{let E=Ue(Vi);if(E.some($=>$.id===b.id)){Ce({message:`Context menu item with id: "${b.id}" was exist! Can't add more with the same id`});return}E.push(b),Vi.set(E)},zr=b=>{let E=Ue(Vi);if(!E.some($=>$.id===b)){Ce({message:`Can't find context menu item with id: "${b}"! Can't remove item with this id`});return}E=E.filter($=>$.id!==b),Vi.set(E)},Wr=ei([wo,me],([b,E],$)=>{$(b&&E)}),Kr=()=>{Tt.next(Po.LIVE),Ce({message:"switch to active live"}),se.log("switch to active live"),X.seekTime(0),X.info.playbackState$.getValue()!==os.PLAYING&&ee.actions.internal.togglePlay()},Yt=()=>{se.log("skip adman"),oe.skip()},Vn=(b=!0)=>{Dn(ee),Ce({message:`switch from ads to video, callPlay: ${b}`}),se.log("switch from ads to video",{callPlay:b}),xe.set("video"),b&&X.play()},Zo=()=>{Dn(ee),Ce({message:"switch from video to ads"}),se.log("switch from video to ads"),ee.actions.internal.pause(),Ht(),xe.set("ads")},jr=b=>{Dn(ee);let E=b?"LiveWaitingStart":"thumb";se.log("set live waiting start",{state:b,playerPhase:E}),xe.set(E)},hs=b=>{Dn(ee);let E=b?"LiveWaitingRecover":"thumb";se.log("set live waiting recover",{state:b,playerPhase:E}),xe.set(E)},$l=b=>{Dn(ee);let E=b?"LiveWaitingRecord":"thumb";se.log("set live waiting record",{state:b,playerPhase:E}),xe.set(E)},ea=()=>(Dn(ee),se.log("get debug text data"),_d(X,Ae,ee)),Gr=()=>(Dn(ee),JSON.stringify(pe.getFinishedSpans())),ta=()=>(Dn(ee),hd(X,Ae,ee)),dr=()=>qe,ia=()=>{Ce({message:"toggle chromecast"}),se.log("toggle chromecast"),X.toggleChromecast()},mr=b=>{var $;if(Dn(ee),X.info.isEnded$.getValue())return;let E=!b;if(Ue(ee.playerPhase)==="ads"){Ce({message:`pause ads, internalCall: ${E}`}),se.log("pause ads",{internalCall:E}),oe.pause();return}Ce({message:`pause video, internalCall: ${E}`}),se.log("pause video",{internalCall:E}),E&&(($=s==null?void 0:s.onPause)==null||$.call(s)),X.pause()},pr=b=>{var $;Dn(ee);let E=!b;if(Ue(ee.playerPhase)==="ads"){Ce({message:`play ads, internalCall: ${E}`}),se.log("play ads",{internalCall:E}),oe.play();return}Ce({message:`play video, internalCall: ${E}`}),se.log("play video",{internalCall:E}),E&&(($=s==null?void 0:s.onPlay)==null||$.call(s)),X.play()},Yr=b=>{Dn(ee);let E=!b;if(Ue(ee.playerPhase)==="ads"){Ce({message:"player cannot be stopped during ads via external method"});return}Ce({message:`player will be stopped, internalCall: ${E}`}),P==null||P()},an=(b,E)=>{Dn(ee),Ce({message:`first start, show ads: ${b}, internalCall: ${!E}`}),se.log("first start",{showAds:b,external:E}),b?xe.set("ads"):(xe.set("video"),E?X.play():ee.actions.internal.togglePlay())},un=()=>(Ce({message:"getting time codes"}),c),gs=()=>{let b=un();if(!b||[0,1].includes(b.length))return;let E=X.info.position$.getValue();return b.find($=>$.time>E)},na=b=>{let E=b;E||(E=gs());let $=X.info.position$.getValue();se.log("seek to next episode",{currentTime:$,...E}),E&&(Ce({message:"seek to next episode"}),bi(E.time,Po.EPISODE,!0))},bs=()=>{let b=un();if(!b||[0,1].includes(b.length))return;let E=X.info.position$.getValue(),$=b.findIndex($e=>$e.time>E),Ee=$===-1?b.length-2:$-2;if(!(Ee<0))return b[Ee]},oa=b=>{let E=b;E||(E=bs());let $=X.info.position$.getValue();se.log("seek to prev episode",{currentTime:$,...E}),E&&(Ce({message:"seek to prev episode"}),bi(E.time,Po.EPISODE,!0))},ra=()=>(Ce({message:"getting preview thumbs data"}),se.log("get preview thumbs data",{...m}),m),sa=async()=>{let b=Fe==null?void 0:Fe.isActive(),E="none";Fe!=null&&Fe.isActive()?(E="remove",await(Fe==null?void 0:Fe.remove())):(E="request",await(Fe==null?void 0:Fe.request())),se.log("toggle picture in picture",{isActive:b,action:E})},la=(b=-90)=>{se.log("rotate video",{alphaDiff:b}),st.update(E=>E+b)},_r=Me([]);A==null||A.subscribe(b=>{let E=[];for(let $=0;$<b.length;$++){let{range:[Ee,$e],subjects:pt}=b[$];$===0&&Ee!==0&&E.push({time:0,text:"",interactive:!1,completed:!0}),E.push({time:Ee/1e3,text:"",interactive:!0,completed:!pt.length}),$e!==1/0&&E.push({time:$e/1e3,text:"",interactive:!1,completed:!0})}_r.set(E)});let aa=Me(!1);I==null||I.subscribe(b=>{b&&Ue(Ci)&&co()});let vs=b=>{if(!y)return b;let E=Ue(_r),$=Ue(ii),$e=Ue(ai)/$,pt=E.find(_t=>_t.interactive&&!_t.completed&&_t.time>$e);return typeof(pt==null?void 0:pt.time)=="number"?Math.min(b,pt.time-.05):b},ys=()=>{ee.ui.episodes.panelOpened$.set(!1)},ws=()=>{se.log("destroy store"),clearTimeout(qn),clearTimeout(uo),zt.unsubscribe(),Vt.unsubscribe(),X.destroy(),oe.destroy(),H==null||H.destroy(),Ze==null||Ze.destroy(),ct.unsubscribe(),Ut==null||Ut.disconnect(),Ut=null,he.destroy()},ee={interfaceLanguage$:De,isCyrillicRelatedInterface$:lt,initVideo:dt,videoId:t,isClip:n,playerPhase:Pe,vsid:Te,state:{positionExact$:Bt,positionWithScrubbing$:Mo,duration$:ii,playbackState$:Nt,isPlaying$:mn,isLoaderVisible:Zi,bufferedProgress$:nn,isLive$:li,canChangePlaybackSpeed$:Ti,isActiveLive$:In,isOldestAvailableLive$:pn,isRewindableLive$:Hi,isEnded$:Wt,muted$:yi,volume$:_i,trafficSavingEnabled$:wi,autoQualityLimitingAvailable$:Ot,availableVideoStreams$:Xi,availableAudioStreams$:Ni,videoStream$:hn,audioStream$:ui,currentQuality$:ki,isAutoQualityEnabled$:zi,availableQualities$:Di,currentPlaybackRate$:ni,availablePlaybackRates$:oi,currentSubtitle$:Jt,availableTextTracks$:hi,availableSubtitlesList$:en,currentSubtitleCaptions$:Ge,isAutoSubtitleCaptionVisible$:vn,chromecastState$:Zt,chromecastDeviceName$:Ii,chromecastConnected$:_n,currentFormat$:Xt,throughputEstimation$:Pi,videoBitrate$:Bi,videoSize$:Le,errorLog$:at,crashed$:me,isAudioAvailable$:qt,isAudioDisabled:!!l,canDownload:z.features.download&&!!a,availableSources$:Oi,hasMpegSources$:on,isInteractive:y,showInteractiveGraph:z.features.interactiveGraph,showSeekToInteractive:z.features.seekToInteractive,showPlayPrevChapter:z.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:z.features.interactiveTimeIndicator&&!!Ue(_r).length,interactiveEpisodes$:_r,isInteractiveTime$:I?Et(I):Me(!1),graphIsOpened$:Me(!1),isInteractiveExpectation$:aa,hasInteractiveBranches:U,playPrevChapterDisabledTooltip:x,looped$:sn,loadedMetadata$:Me(!1)},ui:{controlsVisible:Me(!1),touched:Me(!1),controls:{prevButton:Me(void 0),playButton:Me(void 0),replayButton:Me(void 0),nextButton:Me(void 0),playPrevChapterButton:Me(void 0),seekToInteractiveButton:Me(void 0),interactiveGraphButton:Me(void 0),liveButton:Me(void 0),time:Me(void 0),episodes:Me(void 0),volume:Me(void 0),subtitles:Me(void 0),settings:Me(void 0),context:Me(void 0),chromecast:Me(void 0),pip:Me(void 0),fullscreen:Me(void 0),vkLogo:Me(void 0),interactiveTimeIndicator:Me(void 0),timeline:Me(void 0),autoplayNextToggle:Me(void 0),additionalButtons:V.length?V.reduce(b=>[...b,Me(void 0)],[]):[],disabledControls$:ft},modals:{hotKeyMap:{show:Me(!1),data:Me({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ye,rotateAlpha:st,isAutoplay:Me(!1),debugPanelVisible:Me(!1),episodes:{panelOpened$:Me(!1),openedByKeyboard$:Me(!1)},contextMenu:{visible$:Me(!1),btnRef$:Me(void 0),openedByBtnKeyboard$:Me(!1),openedByHotKey$:Me(!1),lastActiveElem$:Me(void 0),showContextMenuBtn$:Me(!1),position$:Me({top:0,left:0})},playerSize:Lo,isMobile:wo,mobileNotReportControlHidden$:Wr,mobileUnmuteButtonExpanded:Me(!1),mobileUnmuteButtonVisible:Me(!1),icon3DVideoVisible:Me(!1),scrubbingInProgress:Ci,is3DVideo:Me(!1),currentGridType$:yo,additionalButtonsDeprecated$:Ro,additionalDesktopControlPanelRightButtons$:Go,additionalSettingsMenuItems$:fr,additionalContextMenuItems$:Ur,interactiveHideMobileControls:Me(!1),overlayContainer$:Me(void 0),startedByKeyboard$:Me(!1),autoplayNextEnabled$:Me(!1),timerNextVideoRunning$:Me(!0),settingsMenu:{visible$:Me(!1),ref$:Me(void 0),openedByBtnKeyboard$:Me(!1)},settingsSubMenu:{visible$:Me(!1),ref$:Me(void 0),name$:Me(void 0)}},ads:{position:Me(0),duration:Me(0),playbackState:Me("inactive"),canSkip:Me(!1),secondsToWatchBeforeSkip:Me(0),postrollPassed:Me(!1)},webApi:{pictureInPictureApi:Fe,annotationsApi:Ie},actions:{internal:{preload:jn,firstStart:b=>an(b,!1),play:()=>pr(!1),pause:()=>mr(!1),togglePlay:so,toggleMuted:Kn,openSettingsMenu:gi,closeSettingsMenu:Fn,openSettingsSubMenu:yn,closeSettingsSubMenu:xn,setVolume:wn,setVideoStream:On,setAudioStream:Ei,setQuality:lo,setTrafficSavingEnabled:b=>Gn(b),setPlaybackRate:Pn,incrementPlaybackRate:En,decrementPlaybackRate:go,setSubtitle:Yn,toggleSubtitle:bo,togglePictureInPicture:sa,startScrubbing:ao,progressScrubbing:Ao,completeScrubbing:vo,toggleChromecast:ia,switchToActiveLive:Kr,switchFromAdsToVideo:Vn,switchFromVideoToAds:Zo,skipAd:Yt,setLiveWaitingStart:jr,setLiveWaitingRecover:hs,setLiveWaitingRecord:$l,getDebugTextData:ea,getTraceTextData:Gr,getDebugPanelData:ta,getVideoElement:dr,seekTime:(b,E,$)=>bi(b,E,$),clearDelayedBufferingCheckTimeout:xt,seekEpisodeStartTime:Qn,seekToPercent:Zn,getNextEpisode:gs,seekToNextEpisode:na,getPrevEpisode:bs,seekToPrevEpisode:oa,startLogging:ot,stopLogging:St,startCameraManualRotation:Lt,stopCameraManualRotation:de,moveCameraFocusPX:et,holdCamera:kt,releaseCamera:ri,getVideoEpisodes:un,getPreviewThumbsData:ra,downloadVideo:Ki,addLanguage:Ta,setLanguage:Qe,nextMovie:Xe,videoRotate:la,correctSeekTimeToInteractive:vs,replayInteractive:C,setLooped:kn,reportProblem:Gi,setAutoplayNextEnabled:ln,setTimerNextVideoRunning:Hn,prevVideoClick:io,nextVideoClick:no,nextVideoAnnouncementClick:fi,nextVideoAnnouncementAuto:oo,nextVideoAnnouncementCancel:ro},external:{firstStart:b=>an(b,!0),play:()=>pr(!0),pause:()=>mr(!0),stop:()=>Yr(!0),seekTime:b=>ie(b),seekEpisodeStartTime:b=>ne(b),setPlaybackRate:b=>Cn(b),setAutoQualityLimits:b=>Rt(b),setMuted:b=>ji(b,!0),setVolume:b=>wn(b,b,!0),returnFocusToEpisodes:ys,updateAdditionalSettingsItem:Si,addAdditionalSettingsItem:fo,removeAdditionalSettingsItem:Un,updateAdditionalContextItem:Qo,addAdditionalContextItem:Bo,removeAdditionalContextItem:zr,updateAdditionalButton:Yo,addAdditionalButton:Y,removeAdditionalButton:Pt,setLiveLowLatency:Li}},callbacks:s,setUiCallbacks:b=>{J={...b}},getAdmanWrapper:()=>oe,getLogger:()=>re,destroy:ws};return ee};var Sl=(i,e,t,n)=>{var l;if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"];for(let[a,s]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(a)){let u=(l=t[a])==null?void 0:l.getBoundingClientRect(),c=(n||r.includes(a))&&!!u&&!!(u.right-u.left),{top:m,left:h,bottom:v,right:g}=Nr(t[a],i);s.set({positionStartX:0,positionEndX:0,left:c?h:0,right:c?g:0,top:c?m:0,bottom:c?v:0,isDisplayed:c})}};var Tl=async(i,e,t)=>{await fn(),e&&t&&(t.focus(),i.set(!1))};function L4(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("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"),ke(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),_(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,s,s[1],n?Re(o,s[1],u,null):Ne(s[1]),null),ke(e,a=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){p(r,s),n=!1},d(s){s&&w(e),r&&r.d(s)}}}function V4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Qu=class extends O{constructor(e){super(),F(this,e,V4,L4,D,{})}},Um=Qu;function R4(i){let e,t;return e=new Um({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function B4(i){let e,t,n;function o(l){i[8](l)}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:[R4]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new gt({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,[a]){let s={};a&8&&(s.className=l[3]?"opened":""),a&1&&(s.disabled=l[0]),a&2&&(s.ariaLabel=l[1]),a&8&&(s.ariaExpanded=l[3]),a&16384&&(s.$$scope={dirty:a,ctx:l}),!t&&a&4&&(t=!0,s.ref=l[2],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function N4(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,l=it(),a=l.ui.contextMenu.visible$;B(i,a,A=>t(3,n=A));let s=l.ui.contextMenu.openedByBtnKeyboard$,u=l.ui.contextMenu.showContextMenuBtn$,c=l.ui.contextMenu.position$,m=l.ui.contextMenu.btnRef$,h,v=A=>{let I=Ir(A),C=f1(h);c.set(C),s.set(I),a.set(!n)},g=()=>{u.set(!0)},S=()=>{u.set(!1)};function y(A){h=A,t(2,h)}return i.$$set=A=>{"disabled"in A&&t(0,o=A.disabled),"ariaLabel"in A&&t(1,r=A.ariaLabel)},i.$$.update=()=>{i.$$.dirty&4&&h&&m.set(h)},[o,r,h,n,a,v,g,S,y]}var Zu=class extends O{constructor(e){super(),F(this,e,N4,B4,D,{disabled:0,ariaLabel:1})}},zm=Zu;function D4(i){ve(i,"svelte-od3veb",".interactive-episode-icon-animated.svelte-od3veb{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.interactive-episode-icon-animated.icon-small.svelte-od3veb{width:28px;height:28px}.invisible.svelte-od3veb{opacity:0;visibility:hidden}.fullscreen.svelte-od3veb:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.svelte-od3veb{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.svelte-od3veb{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb{top:40px;right:16px}}@keyframes svelte-od3veb-pulse{0%{transform:scale(1);border-width:1px;opacity:0}10%{opacity:1}50%{transform:scale(1.5);border-width:1px;opacity:0.5}100%{transform:scale(1.5);border-width:0.5px;opacity:0}}.pulse.svelte-od3veb{display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);animation:1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.svelte-od3veb{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.svelte-od3veb{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.svelte-od3veb{display:none}")}function O4(i){let e,t;return e=new al({props:{completed:!0}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p:_e,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function F4(i){let e,t,n,o,r,l,a,s,u,c;function m(v){i[25](v)}let h={tooltipContent:j("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[6],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[15],$$slots:{default:[O4]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new Yi({props:h}),ye.push(()=>We(t,"ref",m)),t.$on("click",i[16]),{c(){e=T("div"),R(t.$$.fragment),o=G(),r=T("div"),l=G(),a=T("div"),f(r,"class","ref-block svelte-od3veb"),K(r,"hidden",i[1]),f(a,"class","pulse svelte-od3veb"),K(a,"paused",i[5]),f(e,"class","interactive-episode-icon-animated svelte-od3veb"),K(e,"mobile",i[2]),K(e,"fullscreen",i[7]),K(e,"invisible",i[1]),K(e,"icon-small",i[4])},m(v,g){k(v,e,g),M(t,e,null),_(e,o),_(e,r),i[26](r),_(e,l),_(e,a),i[27](a),s=!0,u||(c=[Se(e,"mousemove",vt(i[24])),Se(e,"mouseleave",i[17])],u=!0)},p(v,g){let S={};g[0]&64&&(S.tooltipActive=v[6]),g[1]&8&&(S.$$scope={dirty:g,ctx:v}),!n&&g[0]&1&&(n=!0,S.ref=v[0],ze(()=>n=!1)),t.$set(S),(!s||g[0]&2)&&K(r,"hidden",v[1]),(!s||g[0]&32)&&K(a,"paused",v[5]),(!s||g[0]&4)&&K(e,"mobile",v[2]),(!s||g[0]&128)&&K(e,"fullscreen",v[7]),(!s||g[0]&2)&&K(e,"invisible",v[1]),(!s||g[0]&16)&&K(e,"icon-small",v[4])},i(v){s||(d(t.$$.fragment,v),s=!0)},o(v){p(t.$$.fragment,v),s=!1},d(v){v&&w(e),L(t),i[26](null),i[27](null),u=!1,ut(c)}}}function x4(i,e,t){var re;let n,o,r,l,a,s,u,{ref:c=void 0}=e,m,h=it(),v=dn(),{interactiveControlsOpacity$:g}=v;B(i,g,oe=>t(20,o=oe));let S=h.ui.isMobile;B(i,S,oe=>t(2,s=oe));let y=h.ui.isFullscreen;B(i,y,oe=>t(7,u=oe));let A=h.state.isInteractiveTime$;B(i,A,oe=>t(21,r=oe));let I=v.showInteractiveTimeIndicatorTooltip$;B(i,I,oe=>t(19,n=oe));let C=h.ui.controlsVisible;B(i,C,oe=>t(23,a=oe));let P=(re=h.callbacks)==null?void 0:re.onInteractiveTimeIndicatorClick,U=h.ui.currentGridType$;B(i,U,oe=>t(22,l=oe));let x,V,Z,ae,Q=()=>{t(5,ae=!0)},ue=()=>{q(),m==null||m.addEventListener("animationiteration",Q,{once:!0})},q=()=>{t(5,ae=!1),m==null||m.removeEventListener("animationiteration",Q)},H=oe=>{I.set(oe)},be,W=()=>{Z||(I.set(!0),P==null||P())};Rn(()=>{I.clearTimeout(),q()});let te=()=>{I.set(!1)};function z(oe){Bn.call(this,i,oe)}function pe(oe){c=oe,t(0,c)}function se(oe){ye[oe?"unshift":"push"](()=>{c=oe,t(0,c)})}function X(oe){ye[oe?"unshift":"push"](()=>{m=oe,t(3,m)})}return i.$$set=oe=>{"ref"in oe&&t(0,c=oe.ref)},i.$$.update=()=>{i.$$.dirty[0]&8388612&&t(18,x=!s&&a),i.$$.dirty[0]&4194304&&t(4,V=Uo(l,"s")),i.$$.dirty[0]&3407872&&t(1,Z=!r||!!o||x),i.$$.dirty[0]&2&&t(5,ae=Z),i.$$.dirty[0]&524290&&t(6,be=n&&!Z),i.$$.dirty[0]&524288&&(n?ue():q())},[c,Z,s,m,V,ae,be,u,g,S,y,A,I,C,U,H,W,te,x,n,o,r,l,a,z,pe,se,X]}var Xu=class extends O{constructor(e){super(),F(this,e,x4,F4,D,{ref:0},D4,[-1,-1])}},Il=Xu;function H4(i){var a;let e,t,n,o=[(a=i[2])!=null?a:{}];var r=i[1];function l(s,u){var m;let c={};for(let h=0;h<o.length;h+=1)c=le(c,o[h]);return u!==void 0&&u&4&&(c=le(c,He(o,[Oo((m=s[2])!=null?m:{})]))),{props:c}}return r&&(e=Dt(r,l(i))),{c(){e&&R(e.$$.fragment),t=Je()},m(s,u){e&&M(e,s,u),k(s,t,u),n=!0},p(s,u){var c;if(u&2&&r!==(r=s[1])){if(e){ce();let m=e;p(m.$$.fragment,1,0,()=>{L(m,1)}),fe()}r?(e=Dt(r,l(s,u)),R(e.$$.fragment),d(e.$$.fragment,1),M(e,t.parentNode,t)):e=null}else if(r){let m=u&4?He(o,[Oo((c=s[2])!=null?c:{})]):{};e.$set(m)}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&w(t),e&&L(e,s)}}}function q4(i){let e,t,n;function o(l){i[7](l)}let r={disabled:i[5],tooltipContent:i[3],disabledTooltipContent:i[4],className:i[6],$$slots:{default:[H4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Yi({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,[a]){let s={};a&32&&(s.disabled=l[5]),a&8&&(s.tooltipContent=l[3]),a&16&&(s.disabledTooltipContent=l[4]),a&64&&(s.className=l[6]),a&262&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function U4(i,e,t){let{buttonComponent:n}=e,{buttonComponentProps:o}=e,{tooltipText:r}=e,{disabledTooltipContent:l}=e,{disabled:a=!1}=e,{className:s=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,l=m.disabledTooltipContent),"disabled"in m&&t(5,a=m.disabled),"className"in m&&t(6,s=m.className),"ref"in m&&t(0,u=m.ref)},[u,n,o,r,l,a,s,c]}var Ju=class extends O{constructor(e){super(),F(this,e,U4,q4,D,{buttonComponent:1,buttonComponentProps:2,tooltipText:3,disabledTooltipContent:4,disabled:5,className:6,ref:0})}},$u=Ju;var Eo={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};function W4(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("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"),ke(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),_(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,s,s[1],n?Re(o,s[1],u,null):Ne(s[1]),null),ke(e,a=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){p(r,s),n=!1},d(s){s&&w(e),r&&r.d(s)}}}function K4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var ec=class extends O{constructor(e){super(),F(this,e,K4,W4,D,{})}},Wm=ec;function j4(i){let e,t;return e=new Wm({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function G4(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,r;return i.$$set=l=>{"isPrev"in l&&t(0,n=l.isPrev),"isMobile"in l&&t(2,o=l.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 tc=class extends O{constructor(e){super(),F(this,e,G4,j4,D,{isPrev:0,isMobile:2})}},Km=tc;function Y4(i){ve(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 jm(i){let e;return{c(){e=T("div"),f(e,"class","icon-background-mobile svelte-xtk2k4")},m(t,n){k(t,e,n)},d(t){t&&w(e)}}}function Q4(i){let e,t,n,o=i[1]&&jm(i);return t=new Km({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){o&&o.c(),e=G(),R(t.$$.fragment)},m(r,l){o&&o.m(r,l),k(r,e,l),M(t,r,l),n=!0},p(r,l){r[1]?o||(o=jm(r),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);let a={};l&2&&(a.isMobile=r[1]),l&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&&w(e),o&&o.d(r),L(t,r)}}}function Z4(i){let e,t,n;function o(l){i[6](l)}let r={className:`btn-${i[1]?"m":"d"}--${i[3]}`,testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[Q4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,[a]){let s={};a&10&&(s.className=`btn-${l[1]?"m":"d"}--${l[3]}`),a&8&&(s.testId="btn-"+l[3]),a&4&&(s.disabled=l[2]),a&32&&(s.ariaLabel=l[5]),a&16&&(s.click=l[4]),a&138&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function X4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{type:l}=e,{click:a}=e,s;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,l=c.type),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,s=l==="prev"?j("tooltip_previous"):j("tooltip_next"))},[n,o,r,l,a,s,u]}var ic=class extends O{constructor(e){super(),F(this,e,X4,Z4,D,{ref:0,isMobile:1,disabled:2,type:3,click:4},Y4)}},Or=ic;function J4(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("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"),ke(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),_(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,s,s[1],n?Re(o,s[1],u,null):Ne(s[1]),null),ke(e,a=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){p(r,s),n=!1},d(s){s&&w(e),r&&r.d(s)}}}function $4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var nc=class extends O{constructor(e){super(),F(this,e,$4,J4,D,{})}},Pl=nc;import{noop as e3}from"@vkontakte/videoplayer-shared/es2018";function t3(i){ve(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 Gm(i){let e;return{c(){e=T("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){k(t,e,n)},d(t){t&&w(e)}}}function i3(i){let e,t,n,o,r=i[1]&&Gm(i);return n=new Pl({}),{c(){r&&r.c(),e=G(),t=T("div"),R(n.$$.fragment),f(t,"class","svelte-1ot3duq"),K(t,"mobile",i[1])},m(l,a){r&&r.m(l,a),k(l,e,a),k(l,t,a),M(n,t,null),o=!0},p(l,a){l[1]?r||(r=Gm(l),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!o||a&2)&&K(t,"mobile",l[1])},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){p(n.$$.fragment,l),o=!1},d(l){l&&(w(e),w(t)),r&&r.d(l),L(n)}}}function n3(i){let e,t,n;function o(l){i[5](l)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:j("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:mo.KeyK,$$slots:{default:[i3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,[a]){let s={};a&10&&(s.className=(l[1]?"btn-m--play":"")+" "+l[3]),a&4&&(s.disabled=l[2]),a&16&&(s.click=l[4]),a&66&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function o3(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:l=""}=e,{click:a=e3}=e;function s(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,l=u.className),"click"in u&&t(4,a=u.click)},[n,o,r,l,a,s]}var oc=class extends O{constructor(e){super(),F(this,e,o3,n3,D,{ref:0,isMobile:1,disabled:2,className:3,click:4},t3)}},ss=oc;function r3(i){let e,t;return{c(){e=N("svg"),t=N("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){k(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:_e,o:_e,d(n){n&&w(e)}}}function s3(i,e,t){let{width:n="24"}=e,{height:o="24"}=e,{viewBox:r="0 0 24 24"}=e,{fill:l="#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,l=a.fill)},[n,o,r,l]}var rc=class extends O{constructor(e){super(),F(this,e,s3,r3,D,{width:0,height:1,viewBox:2,fill:3})}},Wo=rc;function l3(i){let e,t;return{c(){e=N("svg"),t=N("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){k(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:_e,o:_e,d(n){n&&w(e)}}}function a3(i,e,t){let{width:n="24"}=e,{height:o="24"}=e,{viewBox:r="0 0 24 24"}=e,{fill:l="#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,l=a.fill)},[n,o,r,l]}var sc=class extends O{constructor(e){super(),F(this,e,a3,l3,D,{width:0,height:1,viewBox:2,fill:3})}},Fr=sc;import{noop as u3}from"@vkontakte/videoplayer-shared/es2018";function c3(i){ve(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 Ym(i){let e;return{c(){e=T("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){k(t,e,n)},d(t){t&&w(e)}}}function f3(i){let e,t,n,o,r=i[1]&&Ym(i);var l=i[8];function a(s,u){return{}}return l&&(n=Dt(l,a(i))),{c(){r&&r.c(),e=G(),t=T("div"),n&&R(n.$$.fragment),f(t,"class","svelte-1ot3duq"),K(t,"mobile",i[1])},m(s,u){r&&r.m(s,u),k(s,e,u),k(s,t,u),n&&M(n,t,null),o=!0},p(s,u){if(s[1]?r||(r=Ym(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u&256&&l!==(l=s[8])){if(n){ce();let c=n;p(c.$$.fragment,1,0,()=>{L(c,1)}),fe()}l?(n=Dt(l,a(s,u)),R(n.$$.fragment),d(n.$$.fragment,1),M(n,t,null)):n=null}(!o||u&2)&&K(t,"mobile",s[1])},i(s){o||(n&&d(n.$$.fragment,s),o=!0)},o(s){n&&p(n.$$.fragment,s),o=!1},d(s){s&&(w(e),w(t)),r&&r.d(s),n&&L(n)}}}function d3(i){let e,t,n;function o(l){i[13](l)}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:mo.KeyK,$$slots:{default:[f3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,[a]){let s={};a&10&&(s.className=(l[1]?"btn-m--play":"")+" "+l[3]),a&112&&(s.click=l[5]?l[6]:l[4]),a&4&&(s.disabled=l[2]),a&128&&(s.ariaLabel=l[7]),a&33026&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function m3(i,e,t){let n,o,{fakeIsPlaying$:r}=dn();B(i,r,I=>t(12,o=I));let{ref:l=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:c=""}=e,{click:m=u3}=e,{toggle:h}=r,v,g,S,y;function A(I){l=I,t(0,l)}return i.$$set=I=>{"ref"in I&&t(0,l=I.ref),"isMobile"in I&&t(1,a=I.isMobile),"isPlaying"in I&&t(10,s=I.isPlaying),"disabled"in I&&t(2,u=I.disabled),"className"in I&&t(3,c=I.className),"click"in I&&t(4,m=I.click)},i.$$.update=()=>{i.$$.dirty&4096&&t(5,g=o!==null),i.$$.dirty&5152&&t(11,S=g?o:s),i.$$.dirty&2048&&t(7,y=S?j("tooltip_pause"):j("tooltip_play")),i.$$.dirty&2048&&t(8,n=S?Fr:Wo)},t(6,v=h),[l,a,u,c,m,g,v,y,n,r,s,S,o,A]}var lc=class extends O{constructor(e){super(),F(this,e,m3,d3,D,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},c3)}},ls=lc;function p3(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("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"),ke(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),_(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,s,s[1],n?Re(o,s[1],u,null):Ne(s[1]),null),ke(e,a=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){p(r,s),n=!1},d(s){s&&w(e),r&&r.d(s)}}}function _3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var ac=class extends O{constructor(e){super(),F(this,e,_3,p3,D,{})}},Qm=ac;function h3(i){let e,t;return e=new Qm({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function g3(i){let e,t,n;function o(l){i[4](l)}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:[h3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&8&&(s.click=l[3]),a&32&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function b3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:l}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,r=s.disabled),"click"in s&&t(3,l=s.click)},[n,o,r,l,a]}var uc=class extends O{constructor(e){super(),F(this,e,b3,g3,D,{ref:0,hidden:1,disabled:2,click:3})}},El=uc;function v3(i){let e,t,n,o,r=i[2].default,l=Ve(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]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("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"),ke(e,s)},m(u,c){k(u,e,c),l&&l.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Be(l,r,u,u[1],o?Re(r,u[1],c,null):Ne(u[1]),null),ke(e,s=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(l,u),o=!0)},o(u){p(l,u),o=!1},d(u){u&&w(e),l&&l.d(u)}}}function y3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var cc=class extends O{constructor(e){super(),F(this,e,y3,v3,D,{})}},Zm=cc;function w3(i){let e,t;return e=new Zm({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function k3(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:j("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[w3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&8&&(s.click=l[3]),a&32&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function C3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:l}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,r=s.disabled),"click"in s&&t(3,l=s.click)},[n,o,r,l,a]}var fc=class extends O{constructor(e){super(),F(this,e,C3,k3,D,{ref:0,hidden:1,disabled:2,click:3})}},Al=fc;function S3(i){let e,t,n,o,r=i[2].default,l=Ve(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]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("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"),ke(e,s)},m(u,c){k(u,e,c),l&&l.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Be(l,r,u,u[1],o?Re(r,u[1],c,null):Ne(u[1]),null),ke(e,s=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(l,u),o=!0)},o(u){p(l,u),o=!1},d(u){u&&w(e),l&&l.d(u)}}}function T3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var dc=class extends O{constructor(e){super(),F(this,e,T3,S3,D,{})}},Xm=dc;function I3(i){ve(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function P3(i){let e,t;return e=new Xm({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function E3(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var mc=class extends O{constructor(e){super(),F(this,e,E3,P3,D,{isOpened:0},I3)}},Jm=mc;function A3(i){let e,t;return e=new Jm({props:{isOpened:!!i[3]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function M3(i){let e,t,n;function o(l){i[6](l)}let r={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[A3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&32&&(s.ariaLabel=l[5]),a&16&&(s.click=l[4]),a&136&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function L3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{graphIsOpened:l=!1}=e,{click:a}=e,s;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,l=c.graphIsOpened),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,s=l?j("tooltip_interactive_graph_on"):j("tooltip_interactive_graph_off"))},[n,o,r,l,a,s,u]}var pc=class extends O{constructor(e){super(),F(this,e,L3,M3,D,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Ml=pc;import{PlaybackState as _c}from"@vkontakte/videoplayer-core/es2018";function V3(i){let e,t;return e=new Us({props:{isActive:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function R3(i){let e,t;return e=new gt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===_c.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[V3]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){M(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]===_c.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){L(e,n)}}}function B3(i,e,t){let n,{isMobile:o=!1}=e,{isLiveActive:r=!1}=e,{ariaLabel:l=""}=e,a=it(),s=a.state.playbackState$;B(i,s,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,l=h.ariaLabel)},i.$$.update=()=>{i.$$.dirty&10&&t(4,m=()=>{if(!r){u();return}n===_c.PAUSED&&c()})},[o,r,l,n,m,s]}var hc=class extends O{constructor(e){super(),F(this,e,B3,R3,D,{isMobile:0,isLiveActive:1,ariaLabel:2})}},Ll=hc;import{noop as $m}from"@vkontakte/videoplayer-shared/es2018";function N3(i){let e,t,n,o;return{c(){e=T("img"),f(e,"class","icon"),ko(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,l){k(r,e,l),n||(o=Se(e,"error",i[2]),n=!0)},p(r,l){l&1&&!ko(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&w(e),n=!1,o()}}}function D3(i){let e;return{c(){e=T("div"),e.innerHTML='<div class="inner"></div>',f(e,"class","icon icon-error-stub")},m(t,n){k(t,e,n)},p:_e,d(t){t&&w(e)}}}function O3(i){let e;function t(r,l){return r[1]?D3:N3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Je()},m(r,l){o.m(r,l),k(r,e,l)},p(r,[l]){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:_e,o:_e,d(r){r&&w(e),o.d(r)}}}function F3(i,e,t){let n,{icon:o}=e,r=()=>{t(1,n=!0)};return i.$$set=l=>{"icon"in l&&t(0,o=l.icon)},t(1,n=!1),[o,n,r]}var gc=class extends O{constructor(e){super(),F(this,e,F3,O3,D,{icon:0})}},xr=gc;function x3(i){let e,t;return e=new xr({props:{icon:i[3]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function H3(i){var n;let e,t;return e=new gt({props:{className:i[8],ariaLabel:i[4],click:i[7],disabled:i[9],testId:(n=i[2])!=null?n:i[1],$$slots:{default:[x3]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(o,r){M(e,o,r),t=!0},p(o,r){var a;let l={};r&256&&(l.className=o[8]),r&16&&(l.ariaLabel=o[4]),r&128&&(l.click=o[7]),r&512&&(l.disabled=o[9]),r&6&&(l.testId=(a=o[2])!=null?a:o[1]),r&8200&&(l.$$scope={dirty:r,ctx:o}),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){L(e,o)}}}function q3(i){let e,t,n;function o(l){i[12](l)}let r={disabled:i[9],tooltipContent:i[5],disabledTooltipContent:i[6],width:40,$$slots:{default:[H3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Yi({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,[a]){let s={};a&512&&(s.disabled=l[9]),a&32&&(s.tooltipContent=l[5]),a&64&&(s.disabledTooltipContent=l[6]),a&9118&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function U3(i,e,t){let n,o,r,{id:l}=e,{testId:a}=e,{icon:s}=e,{ariaLabel:u}=e,{tooltipText:c}=e,{disabledTooltipContent:m}=e,{disabled:h=!1}=e,{onClick:v=$m}=e,{ref:g}=e;function S(y){g=y,t(0,g)}return i.$$set=y=>{"id"in y&&t(1,l=y.id),"testId"in y&&t(2,a=y.testId),"icon"in y&&t(3,s=y.icon),"ariaLabel"in y&&t(4,u=y.ariaLabel),"tooltipText"in y&&t(5,c=y.tooltipText),"disabledTooltipContent"in y&&t(6,m=y.disabledTooltipContent),"disabled"in y&&t(10,h=y.disabled),"onClick"in y&&t(7,v=y.onClick),"ref"in y&&t(0,g=y.ref)},i.$$.update=()=>{i.$$.dirty&128&&t(11,n=v===$m),i.$$.dirty&3072&&t(9,o=n||h),i.$$.dirty&2048&&t(8,r=n?"btn-full-opacity":"")},[g,l,a,s,u,c,m,v,r,o,h,n,S]}var bc=class extends O{constructor(e){super(),F(this,e,U3,q3,D,{id:1,testId:2,icon:3,ariaLabel:4,tooltipText:5,disabledTooltipContent:6,disabled:10,onClick:7,ref:0})}},ep=bc;var tp=i=>!!i.buttonComponent;var Ko={vkLogo:100,volume:200,subtitles:300,settings:400,context:500,fullscreen:600,chromecast:700};function j3(i){ve(i,"svelte-1iedtj3",".wrapper-bottom.svelte-1iedtj3.svelte-1iedtj3{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box}.wrapper-bottom.svelte-1iedtj3>.svelte-1iedtj3{pointer-events:auto}.controls.svelte-1iedtj3.svelte-1iedtj3{width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box}.controls-left.svelte-1iedtj3.svelte-1iedtj3,.controls-right.svelte-1iedtj3.svelte-1iedtj3{display:flex;align-content:center}.controls-left.svelte-1iedtj3.svelte-1iedtj3{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-1iedtj3 > *:not(:first-child),.controls-right.svelte-1iedtj3 > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-1iedtj3.svelte-1iedtj3{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-1iedtj3.svelte-1iedtj3{transition:none}")}function np(i,e,t){let n=i.slice();return n[201]=e[t],n[202]=e,n[203]=t,n}function op(i,e,t){let n=i.slice();return n[201]=e[t],n[204]=e,n[205]=t,n}function rp(i){let e,t,n;function o(l){i[163](l,i[201])}let r={buttonComponent:i[201].buttonComponent,buttonComponentProps:i[201].buttonComponentProps,tooltipText:i[201].tooltipText,disabledTooltipContent:i[201].disabledTooltipContent,disabled:i[201].disabled,className:i[201].className};return i[10][i[201].id]!==void 0&&(r.ref=i[10][i[201].id]),e=new $u({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,a){i=l;let s={};a[0]&2048&&(s.buttonComponent=i[201].buttonComponent),a[0]&2048&&(s.buttonComponentProps=i[201].buttonComponentProps),a[0]&2048&&(s.tooltipText=i[201].tooltipText),a[0]&2048&&(s.disabledTooltipContent=i[201].disabledTooltipContent),a[0]&2048&&(s.disabled=i[201].disabled),a[0]&2048&&(s.className=i[201].className),!t&&a[0]&3072&&(t=!0,s.ref=i[10][i[201].id],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function sp(i){let e,t,n;function o(l){i[164](l)}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 ll({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,a){let s={};a[0]&32768&&(s.showDuration=l[15]),a[0]&32|a[1]&12&&(s.position=l[5]?l[33]:l[34]),a[0]&32|a[1]&48&&(s.duration=l[5]?l[35]:l[36]),!t&&a[0]&1024&&(t=!0,s.ref=l[10].time,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function lp(i){let e,t;return e=new _l({props:{position:i[34],duration:i[36],timeCodes:i[50]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function G3(i){let e,t,n=i[8]&&lp(i);return{c(){n&&n.c(),e=Je()},m(o,r){n&&n.m(o,r),k(o,e,r),t=!0},p(o,r){o[8]?n?(n.p(o,r),r[0]&256&&d(n,1)):(n=lp(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),p(n,1,1,()=>{n=null}),fe())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function Y3(i){let e,t,n;function o(l){i[168](l,i[201])}let r={id:i[201].id,testId:i[201].testId,icon:i[201].icon,ariaLabel:i[201].ariaLabel,tooltipText:i[201].tooltipText,disabledTooltipContent:i[201].disabledTooltipContent,disabled:!!i[201].disabled,onClick:i[201].onClick};return i[10][i[201].id]!==void 0&&(r.ref=i[10][i[201].id]),e=new ep({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,a){i=l;let s={};a[0]&4096&&(s.id=i[201].id),a[0]&4096&&(s.testId=i[201].testId),a[0]&4096&&(s.icon=i[201].icon),a[0]&4096&&(s.ariaLabel=i[201].ariaLabel),a[0]&4096&&(s.tooltipText=i[201].tooltipText),a[0]&4096&&(s.disabledTooltipContent=i[201].disabledTooltipContent),a[0]&4096&&(s.disabled=!!i[201].disabled),a[0]&4096&&(s.onClick=i[201].onClick),!t&&a[0]&5120&&(t=!0,s.ref=i[10][i[201].id],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Q3(i){let e,t,n;function o(l){i[167](l,i[201])}let r={buttonComponent:i[201].buttonComponent,buttonComponentProps:i[201].buttonComponentProps,tooltipText:i[201].tooltipText,disabledTooltipContent:i[201].disabledTooltipContent,disabled:i[201].disabled,className:i[201].className};return i[10][i[201].id]!==void 0&&(r.ref=i[10][i[201].id]),e=new $u({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,a){i=l;let s={};a[0]&4096&&(s.buttonComponent=i[201].buttonComponent),a[0]&4096&&(s.buttonComponentProps=i[201].buttonComponentProps),a[0]&4096&&(s.tooltipText=i[201].tooltipText),a[0]&4096&&(s.disabledTooltipContent=i[201].disabledTooltipContent),a[0]&4096&&(s.disabled=i[201].disabled),a[0]&4096&&(s.className=i[201].className),!t&&a[0]&5120&&(t=!0,s.ref=i[10][i[201].id],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function ap(i){let e,t,n,o,r,l=[Q3,Y3],a=[];function s(u,c){return c[0]&4096&&(e=null),e==null&&(e=!!tp(u[201])),e?0:1}return t=s(i,[-1,-1,-1,-1,-1,-1,-1]),n=a[t]=l[t](i),{c(){n.c(),o=Je()},m(u,c){a[t].m(u,c),k(u,o,c),r=!0},p(u,c){let m=t;t=s(u,c),t===m?a[t].p(u,c):(ce(),p(a[m],1,1,()=>{a[m]=null}),fe(),n=a[t],n?n.p(u,c):(n=a[t]=l[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&&w(o),a[t].d(u)}}}function Z3(i){let e,t,n;function o(l){i[171](l)}let r={};return i[10].interactiveTimeIndicator!==void 0&&(r.ref=i[10].interactiveTimeIndicator),e=new Il({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&1024&&(t=!0,s.ref=l[10].interactiveTimeIndicator,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function X3(i){let e,t,n,o,r,l,a,s,u,c,m,h,v,g,S,y,A,I;function C(W){i[162](W)}let P={isHidden:!i[14],isAds:i[5],canRewindLive:i[6],isRewindableLive:i[13]};i[10].timeline!==void 0&&(P.ref=i[10].timeline),t=new pl({props:P}),ye.push(()=>We(t,"ref",C));let U=wt(i[11]),x=[];for(let W=0;W<U.length;W+=1)x[W]=rp(op(i,U,W));let V=W=>p(x[W],1,1,()=>{x[W]=null}),Z=i[7]&&sp(i);function ae(W){i[165](W)}let Q={className:"w-max",disabled:!i[8],tooltipContent:j("tooltip_episodes"),$$slots:{default:[G3]},$$scope:{ctx:i}};i[10].episodes!==void 0&&(Q.ref=i[10].episodes),u=new Yi({props:Q}),ye.push(()=>We(u,"ref",ae));let ue=wt(i[12]),q=[];for(let W=0;W<ue.length;W+=1)q[W]=ap(np(i,ue,W));let H=W=>p(q[W],1,1,()=>{q[W]=null}),be=i[67]&&Z3(i);return{c(){e=T("div"),R(t.$$.fragment),o=G(),r=T("div"),l=T("div");for(let W=0;W<x.length;W+=1)x[W].c();a=G(),Z&&Z.c(),s=G(),R(u.$$.fragment),h=G(),v=T("div");for(let W=0;W<q.length;W+=1)q[W].c();g=G(),be&&be.c(),S=Je(),f(l,"class","controls-left svelte-1iedtj3"),f(v,"class","controls-right svelte-1iedtj3"),f(r,"class","controls svelte-1iedtj3"),f(e,"class","wrapper-bottom svelte-1iedtj3"),K(e,"hidden",i[2]),K(e,"controls-hidden",!i[4]),K(e,"no-smooth",i[3])},m(W,te){k(W,e,te),M(t,e,null),_(e,o),_(e,r),_(r,l);for(let z=0;z<x.length;z+=1)x[z]&&x[z].m(l,null);_(l,a),Z&&Z.m(l,null),_(l,s),M(u,l,null),_(r,h),_(r,v);for(let z=0;z<q.length;z+=1)q[z]&&q[z].m(v,null);i[169](r),i[170](e),k(W,g,te),be&&be.m(W,te),k(W,S,te),y=!0,A||(I=[hr(m=Lr.call(null,l)),Se(l,"fd:resize",i[166])],A=!0)},p(W,te){let z={};if(te[0]&16384&&(z.isHidden=!W[14]),te[0]&32&&(z.isAds=W[5]),te[0]&64&&(z.canRewindLive=W[6]),te[0]&8192&&(z.isRewindableLive=W[13]),!n&&te[0]&1024&&(n=!0,z.ref=W[10].timeline,ze(()=>n=!1)),t.$set(z),te[0]&3072){U=wt(W[11]);let se;for(se=0;se<U.length;se+=1){let X=op(W,U,se);x[se]?(x[se].p(X,te),d(x[se],1)):(x[se]=rp(X),x[se].c(),d(x[se],1),x[se].m(l,a))}for(ce(),se=U.length;se<x.length;se+=1)V(se);fe()}W[7]?Z?(Z.p(W,te),te[0]&128&&d(Z,1)):(Z=sp(W),Z.c(),d(Z,1),Z.m(l,s)):Z&&(ce(),p(Z,1,1,()=>{Z=null}),fe());let pe={};if(te[0]&256&&(pe.disabled=!W[8]),te[0]&256|te[1]&40|te[6]&1048576&&(pe.$$scope={dirty:te,ctx:W}),!c&&te[0]&1024&&(c=!0,pe.ref=W[10].episodes,ze(()=>c=!1)),u.$set(pe),te[0]&5120){ue=wt(W[12]);let se;for(se=0;se<ue.length;se+=1){let X=np(W,ue,se);q[se]?(q[se].p(X,te),d(q[se],1)):(q[se]=ap(X),q[se].c(),d(q[se],1),q[se].m(v,null))}for(ce(),se=ue.length;se<q.length;se+=1)H(se);fe()}(!y||te[0]&4)&&K(e,"hidden",W[2]),(!y||te[0]&16)&&K(e,"controls-hidden",!W[4]),(!y||te[0]&8)&&K(e,"no-smooth",W[3]),W[67]&&be.p(W,te)},i(W){if(!y){d(t.$$.fragment,W);for(let te=0;te<U.length;te+=1)d(x[te]);d(Z),d(u.$$.fragment,W);for(let te=0;te<ue.length;te+=1)d(q[te]);d(be),y=!0}},o(W){p(t.$$.fragment,W),x=x.filter(Boolean);for(let te=0;te<x.length;te+=1)p(x[te]);p(Z),p(u.$$.fragment,W),q=q.filter(Boolean);for(let te=0;te<q.length;te+=1)p(q[te]);p(be),y=!1},d(W){W&&(w(e),w(g),w(S)),L(t),di(x,W),Z&&Z.d(),L(u),di(q,W),i[169](null),i[170](null),be&&be.d(W),A=!1,ut(I)}}}function J3(i,e,t){var ys,ws;let n,o,r,l,a,s,u,c,m,h,v,g,S,y,A,I,C,P,U,x,V,Z,ae,Q,ue,q,H,be,W,te,z,pe,se,X,re,oe,Ze,Fe,Ie,Ce,Ae=_e,qe=()=>(Ae(),Ae=$t(Q,ee=>t(133,Ce=ee)),Q),J,he=_e,Te=()=>(he(),he=$t(ae,ee=>t(134,J=ee)),ae),Ye,nt=_e,st=()=>(nt(),nt=$t(Z,ee=>t(135,Ye=ee)),Z),at,ct=_e,me=()=>(ct(),ct=$t(V,ee=>t(136,at=ee)),V),Qe,De=_e,lt=()=>(De(),De=$t(x,ee=>t(137,Qe=ee)),x),je,xe=_e,Pe=()=>(xe(),xe=$t(U,ee=>t(138,je=ee)),U),ft,ge=_e,dt=()=>(ge(),ge=$t(P,ee=>t(139,ft=ee)),P),bt,Xe=_e,yt=()=>(Xe(),Xe=$t(C,ee=>t(140,bt=ee)),C),Tt,Kt=_e,Ut=()=>(Kt(),Kt=$t(I,ee=>t(141,Tt=ee)),I),jt,Ht=_e,zt=()=>(Ht(),Ht=$t(A,ee=>t(142,jt=ee)),A),Vt,ot=_e,St=()=>(ot(),ot=$t(y,ee=>t(143,Vt=ee)),y),Lt,de=_e,et=()=>(de(),de=$t(S,ee=>t(144,Lt=ee)),S),kt,ri=_e,Bt=()=>(ri(),ri=$t(g,ee=>t(145,kt=ee)),g),Nt,si=_e,Wt=()=>(si(),si=$t(v,ee=>t(146,Nt=ee)),v),li,Ti=_e,Fi=()=>(Ti(),Ti=$t(h,ee=>t(147,li=ee)),h),_i,yi=_e,wi=()=>(yi(),yi=$t(m,ee=>t(148,_i=ee)),m),Ot,xi=_e,Ft=()=>(xi(),xi=$t(c,ee=>t(149,Ot=ee)),c),Zt,Ii,Xt,Pi,Bi,Le,tt,qt,Gt,It,Zi,xt,ii,mn,In,pn,ai;i.$$.on_destroy.push(()=>Ae()),i.$$.on_destroy.push(()=>he()),i.$$.on_destroy.push(()=>nt()),i.$$.on_destroy.push(()=>ct()),i.$$.on_destroy.push(()=>De()),i.$$.on_destroy.push(()=>xe()),i.$$.on_destroy.push(()=>ge()),i.$$.on_destroy.push(()=>Xe()),i.$$.on_destroy.push(()=>Kt()),i.$$.on_destroy.push(()=>Ht()),i.$$.on_destroy.push(()=>ot()),i.$$.on_destroy.push(()=>de()),i.$$.on_destroy.push(()=>ri()),i.$$.on_destroy.push(()=>si()),i.$$.on_destroy.push(()=>Ti()),i.$$.on_destroy.push(()=>yi()),i.$$.on_destroy.push(()=>xi());let{bottomHidden:Hi}=e,{bottomNoSmooth:_n}=e,{showControls:Xi}=e,{playerControlsWrapperRef:Ni=void 0}=e,{playerControlsRef:hn=void 0}=e,{isAds:ui=!1}=e,{canRewindLive:On}=e,{logoClickable:Ei}=e,{logoHidden:qi}=e,{logoTargetUrl:Ui=""}=e,{showNextPrevButtons:Ji}=e,{nextButtonActive:Ai}=e,{prevButtonActive:zi}=e,{customFullscreenSupported:$i=!0}=e,{toggleFullscreen:ki}=e,{seekToInteractive:Di}=e,{playPrevChapter:ni}=e,{fakeIsPlaying$:oi}=dn();B(i,oi,ee=>t(126,pe=ee));let rt=it(),Jt=dn(),hi=Mt(),gn=rt.actions.internal.toggleMuted,Wi=rt.actions.internal.togglePlay,bn=rt.actions.internal.pause,en=rt.actions.internal.toggleSubtitle,ci=(ys=rt.callbacks)==null?void 0:ys.onAudioDoesNotExistHint,tn=(ws=rt.callbacks)==null?void 0:ws.onAudioDisabledHint,Mi=rt.state.duration$;B(i,Mi,ee=>t(36,ai=ee));let Ge=rt.state.positionWithScrubbing$;B(i,Ge,ee=>t(34,In=ee));let vn=rt.state.playbackState$;B(i,vn,ee=>t(123,W=ee));let nn=rt.state.isAudioAvailable$;B(i,nn,ee=>t(172,se=ee));let Oi=rt.state.isAudioDisabled,on=rt.state.isEnded$;B(i,on,ee=>t(158,It=ee));let rn=rt.state.isLive$;B(i,rn,ee=>t(152,Pi=ee));let Ki=rt.state.isActiveLive$;B(i,Ki,ee=>t(151,Ii=ee));let Kn=rt.state.isRewindableLive$;B(i,Kn,ee=>t(13,Xt=ee));let{isActive$:Fn,type$:gi}=Jt.pictureInPicture$;B(i,Fn,ee=>t(154,Le=ee)),B(i,gi,ee=>t(153,Bi=ee));let xn=rt.ui.settingsMenu.visible$;B(i,xn,ee=>t(122,be=ee));let yn=rt.ui.settingsMenu.openedByBtnKeyboard$;B(i,yn,ee=>t(128,re=ee));let wn=rt.ui.controls,ji=rt.actions.internal.getVideoEpisodes(),sn=rt.state.chromecastState$;B(i,sn,ee=>t(120,q=ee));let kn=rt.state.availableSubtitlesList$;B(i,kn,ee=>t(157,Gt=ee));let Gi=rt.state.currentSubtitle$;B(i,Gi,ee=>t(159,Zi=ee));let ln=wn.disabledControls$;B(i,ln,ee=>t(161,ii=ee));let Hn=rt.ui.contextMenu.visible$;B(i,Hn,ee=>t(150,Zt=ee));let io=rt.ui.contextMenu.showContextMenuBtn$;B(i,io,ee=>t(155,tt=ee));let no=rt.ui.contextMenu.openedByBtnKeyboard$;B(i,no,ee=>t(156,qt=ee));let fi=rt.ui.startedByKeyboard$;B(i,fi,ee=>t(127,X=ee));let oo=rt.ads.duration;B(i,oo,ee=>t(35,pn=ee));let ro=rt.ads.position;B(i,ro,ee=>t(33,mn=ee));let jn=rt.ads.playbackState;B(i,jn,ee=>t(160,xt=ee));let so=rt.ui.isFullscreen;B(i,so,ee=>t(121,H=ee));let lo=rt.ui.playerSize;B(i,lo,ee=>t(131,Fe=ee));let Gn=rt.ui.currentGridType$;B(i,Gn,ee=>t(132,Ie=ee));let Pn=rt.ui.additionalDesktopControlPanelRightButtons$;B(i,Pn,ee=>t(119,ue=ee));let En=rt.actions.internal.getVideoElement,go=rt.actions.internal.replayInteractive,Yn=rt.actions.internal.prevVideoClick,bo=rt.actions.internal.nextVideoClick,bi=rt.state.isInteractive,Qn=rt.state.isInteractiveTime$;B(i,Qn,ee=>t(130,Ze=ee));let Zn=rt.state.showInteractiveGraph,ie=rt.state.showSeekToInteractive,Rt=rt.state.showPlayPrevChapter,ne=rt.state.showInteractiveTimeIndicator,Cn=rt.state.playPrevChapterDisabledTooltip,Xn=Jt.seekToInteractiveDisabledTooltip$;B(i,Xn,ee=>t(125,z=ee));let Ci=Jt.graphIsOpened$;B(i,Ci,ee=>t(124,te=ee));let ao=hi.features.interactiveResponsiveUi,Ao=()=>rt.actions.internal.toggleChromecast(),uo,qn,co,An,vo,Mo,Lo,yo,wo,Vo,Ro,Mn,jo,Go,Ln,fr,Yo,Y,Pt,Li,Si,fo,Un,Vi="",Ur=(ee,cn)=>{if(!ee){t(101,Vi=j("tooltip_live"));return}cn===vc.PAUSED&&t(101,Vi=j("tooltip_play"))},Qo,Bo,zr,Wr,Kr,Yt={},Vn,Zo,jr,hs,$l=K3(Sl,260),ea,Gr=Me();B(i,Gr,ee=>t(129,oe=ee));let ta;function dr(){qo({isAudioDisabled:Oi,audioDisabledHintCallback:tn,isAudioAvailable:se,audioIsNotExistHintCallback:ci})&&gn()}let ia=bi?go:Wi,mr,pr,Yr,an=[],un=[];function gs(ee){i.$$.not_equal(Yt.timeline,ee)&&(Yt.timeline=ee,t(10,Yt))}function na(ee,cn){i.$$.not_equal(Yt[cn.id],ee)&&(Yt[cn.id]=ee,t(10,Yt))}function bs(ee){i.$$.not_equal(Yt.time,ee)&&(Yt.time=ee,t(10,Yt))}function oa(ee){i.$$.not_equal(Yt.episodes,ee)&&(Yt.episodes=ee,t(10,Yt))}let ra=ee=>{t(9,Kr=ee.target.clientWidth)};function sa(ee,cn){i.$$.not_equal(Yt[cn.id],ee)&&(Yt[cn.id]=ee,t(10,Yt))}function la(ee,cn){i.$$.not_equal(Yt[cn.id],ee)&&(Yt[cn.id]=ee,t(10,Yt))}function _r(ee){ye[ee?"unshift":"push"](()=>{hn=ee,t(1,hn)})}function aa(ee){ye[ee?"unshift":"push"](()=>{Ni=ee,t(0,Ni)})}function vs(ee){i.$$.not_equal(Yt.interactiveTimeIndicator,ee)&&(Yt.interactiveTimeIndicator=ee,t(10,Yt))}return i.$$set=ee=>{"bottomHidden"in ee&&t(2,Hi=ee.bottomHidden),"bottomNoSmooth"in ee&&t(3,_n=ee.bottomNoSmooth),"showControls"in ee&&t(4,Xi=ee.showControls),"playerControlsWrapperRef"in ee&&t(0,Ni=ee.playerControlsWrapperRef),"playerControlsRef"in ee&&t(1,hn=ee.playerControlsRef),"isAds"in ee&&t(5,ui=ee.isAds),"canRewindLive"in ee&&t(6,On=ee.canRewindLive),"logoClickable"in ee&&t(71,Ei=ee.logoClickable),"logoHidden"in ee&&t(72,qi=ee.logoHidden),"logoTargetUrl"in ee&&t(73,Ui=ee.logoTargetUrl),"showNextPrevButtons"in ee&&t(74,Ji=ee.showNextPrevButtons),"nextButtonActive"in ee&&t(75,Ai=ee.nextButtonActive),"prevButtonActive"in ee&&t(76,zi=ee.prevButtonActive),"customFullscreenSupported"in ee&&t(77,$i=ee.customFullscreenSupported),"toggleFullscreen"in ee&&t(78,ki=ee.toggleFullscreen),"seekToInteractive"in ee&&t(79,Di=ee.seekToInteractive),"playPrevChapter"in ee&&t(80,ni=ee.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&64&&t(117,n=ii.has("EPISODE_BUTTON")),i.$$.dirty[5]&64&&t(112,o=ii.has("GRAPH_BUTTON")),i.$$.dirty[5]&64&&t(113,r=ii.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[5]&64&&t(115,l=ii.has("PLAY_BUTTON")),i.$$.dirty[5]&64&&t(116,a=ii.has("REPLAY_BUTTON")),i.$$.dirty[5]&64&&t(114,s=ii.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[0]&32|i.$$.dirty[3]&1073741824|i.$$.dirty[5]&32&&t(81,uo=ui?xt==="playing":W===vc.PLAYING),i.$$.dirty[5]&16&&t(82,qn=Zi.value!=="off"),i.$$.dirty[0]&32|i.$$.dirty[5]&8&&t(118,u=It&&!ui||bi),i.$$.dirty[3]&33554432|i.$$.dirty[4]&256&&t(83,co=ao?u&&vi(Ie,"m"):u),i.$$.dirty[0]&32|i.$$.dirty[5]&8&&t(84,An=!It||bi||ui),i.$$.dirty[4]&256&&t(85,vo=vi(Ie,"m")),i.$$.dirty[0]&32|i.$$.dirty[2]&12288|i.$$.dirty[4]&256&&t(86,Mo=Ji&&vi(Ie,"m")&&!ui&&Ai),i.$$.dirty[0]&32|i.$$.dirty[2]&20480|i.$$.dirty[4]&256&&t(87,Lo=Ji&&vi(Ie,"m")&&!ui&&zi),i.$$.dirty[0]&32|i.$$.dirty[4]&268435456&&t(88,yo=!ui&&!!Pi),i.$$.dirty[3]&134217728|i.$$.dirty[4]&1610612992&&t(89,wo=q!==ip.NOT_AVAILABLE&&!(Le&&Bi===1)&&vi(Ie,"m")&&!bi),i.$$.dirty[4]&256|i.$$.dirty[5]&4&&t(90,Vo=Gt.length>0&&vi(Ie,"m")),i.$$.dirty[5]&3&&t(91,Ro=qt||tt),i.$$.dirty[0]&32|i.$$.dirty[4]&256&&t(92,Mn=vi(Ie,"s")&&!ui),i.$$.dirty[0]&32|i.$$.dirty[2]&1024&&t(93,jo=!qi&&!ui),i.$$.dirty[2]&33792|i.$$.dirty[4]&1610612992&&t(94,Go=hi.features.fullscreen&&(qi||vi(Ie,ao?"xs":"s"))&&!(Le&&Bi===1)&&(bi?$i:!0)),i.$$.dirty[0]&32|i.$$.dirty[4]&268435456&&t(7,Ln=(!Pi||ui)&&!(hi.features.interactiveHideTime&&bi)),i.$$.dirty[4]&128&&t(14,fr=Fe.width>100),i.$$.dirty[4]&256&&t(95,Yo=Zn&&vi(Ie,"m")),i.$$.dirty[4]&256&&t(96,Y=ao?ie&&vi(Ie,"s"):ie),i.$$.dirty[4]&256&&t(97,Pt=ao?Rt&&vi(Ie,"s"):Rt),i.$$.dirty[0]&32|i.$$.dirty[2]&8388608|i.$$.dirty[3]&16777216|i.$$.dirty[4]&268435456&&t(8,Li=!ui&&!Pi&&!!(ji!=null&&ji.length)&&vo&&!n),i.$$.dirty[0]&8192|i.$$.dirty[4]&134217728&&t(98,Si=!Xt||Ii),i.$$.dirty[4]&1&&t(99,fo=te?j("tooltip_interactive_graph_on"):j("tooltip_interactive_graph_off")),i.$$.dirty[4]&67108864&&t(100,Un=Zt?j("aria_label_context_menu_close"):j("aria_label_context_menu_open")),i.$$.dirty[3]&1073741856&&Ur(Si,W),i.$$.dirty[2]&1048576&&t(103,Bo=qn?j("tooltip_subtitles_on"):j("tooltip_subtitles_off")),i.$$.dirty[3]&268435456&&t(104,zr=H?j("tooltip_fullscreen_on"):j("tooltip_fullscreen_off")),i.$$.dirty[3]&134217728&&t(105,Wr=q===ip.CONNECTED?j("tooltip_chromecast_on"):j("tooltip_chromecast_off")),i.$$.dirty[3]&67108864|i.$$.dirty[4]&67108352&&t(106,Vn={prevButton:Ot?Ot.right-Ot.left:0,replayButton:_i?_i.right-_i.left:0,playButton:li?li.right-li.left:0,nextButton:Nt?Nt.right-Nt.left:0,playPrevChapterButton:kt?kt.right-kt.left:0,seekToInteractiveButton:Lt?Lt.right-Lt.left:0,interactiveGraphButton:Vt?Vt.right-Vt.left:0,liveButton:jt?jt.right-jt.left:0,time:Tt?Tt.right-Tt.left:0,episodes:bt?bt.right-bt.left:0,vkLogo:ft?ft.right-ft.left:0,volume:je?je.right-je.left:0,subtitles:Qe?Qe.right-Qe.left:0,settings:at?at.right-at.left:0,context:Ye?Ye.right-Ye.left:0,fullscreen:J?J.right-J.left:0,chromecast:Ce?Ce.right-Ce.left:0,additionalButtons:ue.length?ue.reduce(ee=>[...ee,40],[]):[]}),i.$$.dirty[3]&24576&&(!Zo||Zo<Vn.time)&&t(107,Zo=Vn.time),i.$$.dirty[0]&896|i.$$.dirty[3]&24576|i.$$.dirty[4]&256){let ee=0;Li&&(vi(Ie,"xl")?ee=Vn.time:ee=60);let cn=Vn.prevButton+Vn.playButton+Vn.nextButton+Vn.seekToInteractiveButton+Vn.interactiveGraphButton+Vn.liveButton+Zo+ee;t(108,jr=Ln&&Kr>=cn)}i.$$.dirty[3]&32768|i.$$.dirty[4]&256&&t(15,hs=jr&&vi(Ie,"m")),i.$$.dirty[0]&1040|i.$$.dirty[4]&192&&$l(En(),wn,Yt,Xi),i.$$.dirty[3]&536870912|i.$$.dirty[4]&32&&oe&&Pr(oe,be,yn),i.$$.dirty[3]&536870912|i.$$.dirty[4]&16&&_o(ea,be,re),i.$$.dirty[4]&8&&Tl(fi,X,ta),i.$$.dirty[4]&4&&t(109,mr=pe!==null),i.$$.dirty[2]&524288|i.$$.dirty[3]&65536|i.$$.dirty[4]&4&&t(110,pr=mr?pe:uo),i.$$.dirty[3]&131072&&t(111,Yr=pr?j("tooltip_pause"):j("tooltip_play")),i.$$.dirty[0]&2048|i.$$.dirty[2]&124674048|i.$$.dirty[3]&1090257276|i.$$.dirty[4]&3&&(t(11,an=[]),Lo&&an.push({id:"prevButton",type:"desktop-control-panel-left",weight:Eo.prevButton,buttonComponent:Or,buttonComponentProps:{disabled:!zi,type:"prev",click:Yn.bind(null,!0)},tooltipText:j("tooltip_previous"),disabled:!zi}),co&&an.push({id:"replayButton",type:"desktop-control-panel-left",weight:Eo.replayButton,buttonComponent:ss,buttonComponentProps:{disabled:a,click:ia},tooltipText:j("tooltip_restart"),disabled:a}),An&&an.push({id:"playButton",type:"desktop-control-panel-left",weight:Eo.playButton,buttonComponent:ls,buttonComponentProps:{disabled:l,isPlaying:uo,click:Wi},tooltipText:Yr,disabled:l}),Mo&&an.push({id:"nextButton",type:"desktop-control-panel-left",weight:Eo.nextButton,buttonComponent:Or,buttonComponentProps:{disabled:!Ai,type:"next",click:bo.bind(null,!0)},tooltipText:j("tooltip_next"),disabled:!Ai}),bi&&(Pt&&an.push({id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Eo.playPrevChapterButton,buttonComponent:El,buttonComponentProps:{disabled:s,click:ni},tooltipText:j("tooltip_interactive_go_back"),disabledTooltipContent:j(Cn),disabled:s}),Y&&an.push({id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Eo.seekToInteractiveButton,buttonComponent:Al,buttonComponentProps:{disabled:r,click:Di},tooltipText:j("tooltip_interactive_seek"),disabled:r,disabledTooltipContent:j(z)}),Yo&&an.push({id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Eo.interactiveGraphButton,buttonComponent:Ml,buttonComponentProps:{disabled:o,click:Ci.toggle,graphIsOpened:te},tooltipText:fo})),yo&&an.push({id:"liveButton",type:"desktop-control-panel-left",weight:Eo.liveButton,buttonComponent:Ll,buttonComponentProps:{isLiveActive:Si,ariaLabel:Vi},tooltipText:Vi,disabled:Si&&W===vc.PLAYING}),t(11,an=an.sort(sr))),i.$$.dirty[0]&4096|i.$$.dirty[2]&2014382592|i.$$.dirty[3]&1006640771&&(t(12,un=[]),jo&&un.push({id:"vkLogo",type:"desktop-control-panel-right",weight:Ko.vkLogo,buttonComponent:cl,buttonComponentProps:{targetUrl:Ui,logoClickable:Ei,click:bn},tooltipText:Qo,disabledTooltipContent:"",disabled:!Ei}),un.push({id:"volume",type:"desktop-control-panel-right",weight:Ko.volume,buttonComponent:gm,buttonComponentProps:{click:dr}}),Vo&&un.push({id:"subtitles",type:"desktop-control-panel-right",weight:Ko.subtitles,buttonComponent:tm,buttonComponentProps:{isSubtitlesEnabled:qn,click:en},tooltipText:Bo}),Mn&&un.push({id:"settings",type:"desktop-control-panel-right",weight:Ko.settings,buttonComponent:ns,buttonComponentProps:{ref$:Gr},tooltipText:be?void 0:j("tooltip_settings_off")}),hi.features.contextMenuButton&&un.push({id:"context",type:"desktop-control-panel-right",weight:Ko.context,buttonComponent:zm,buttonComponentProps:{click:ki},className:Ro?"":"out-of-view",tooltipText:Un}),Go&&un.push({id:"fullscreen",type:"desktop-control-panel-right",weight:Ko.fullscreen,buttonComponent:ul,buttonComponentProps:{isFullscreen:H,click:ki},tooltipText:zr}),wo&&un.push({id:"chromecast",type:"desktop-control-panel-right",weight:Ko.chromecast,buttonComponent:fl,buttonComponentProps:{state:q,click:Ao},tooltipText:Wr}),t(12,un=[...un,...ue].sort(sr)))},t(102,Qo=hi.logoType==="vk_video"?j("tooltip_vk_video_logo"):j("tooltip_vk_logo")),Ft(t(32,{prevButton:c,replayButton:m,playButton:h,nextButton:v,playPrevChapterButton:g,seekToInteractiveButton:S,interactiveGraphButton:y,liveButton:A,time:I,episodes:C,vkLogo:P,volume:U,subtitles:x,settings:V,context:Z,fullscreen:ae,chromecast:Q}=wn,c,wi(t(31,m)),Fi(t(30,h)),Wt(t(29,v)),Bt(t(28,g)),et(t(27,S)),St(t(26,y)),zt(t(25,A)),Ut(t(24,I)),yt(t(23,C)),dt(t(22,P)),Pe(t(21,U)),lt(t(20,x)),me(t(19,V)),st(t(18,Z)),Te(t(17,ae)),qe(t(16,Q)))),[Ni,hn,Hi,_n,Xi,ui,On,Ln,Li,Kr,Yt,an,un,Xt,fr,hs,Q,ae,Z,V,x,U,P,C,I,A,y,S,g,v,h,m,c,mn,In,pn,ai,oi,Mi,Ge,vn,nn,on,rn,Ki,Kn,Fn,gi,xn,yn,ji,sn,kn,Gi,ln,Hn,io,no,fi,oo,ro,jn,so,lo,Gn,Pn,Qn,ne,Xn,Ci,Gr,Ei,qi,Ui,Ji,Ai,zi,$i,ki,Di,ni,uo,qn,co,An,vo,Mo,Lo,yo,wo,Vo,Ro,Mn,jo,Go,Yo,Y,Pt,Si,fo,Un,Vi,Qo,Bo,zr,Wr,Vn,Zo,jr,mr,pr,Yr,o,r,s,l,a,n,u,ue,q,H,be,W,te,z,pe,X,re,oe,Ze,Fe,Ie,Ce,J,Ye,at,Qe,je,ft,bt,Tt,jt,Vt,Lt,kt,Nt,li,_i,Ot,Zt,Ii,Pi,Bi,Le,tt,qt,Gt,It,Zi,xt,ii,gs,na,bs,oa,ra,sa,la,_r,aa,vs]}var yc=class extends O{constructor(e){super(),F(this,e,J3,X3,D,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:71,logoHidden:72,logoTargetUrl:73,showNextPrevButtons:74,nextButtonActive:75,prevButtonActive:76,customFullscreenSupported:77,toggleFullscreen:78,seekToInteractive:79,playPrevChapter:80},j3,[-1,-1,-1,-1,-1,-1,-1])}},up=yc;import{ChromecastState as bp,PlaybackState as vp}from"@vkontakte/videoplayer-core/es2018";import{noop as cp}from"@vkontakte/videoplayer-shared/es2018";function $3(i){ve(i,"svelte-1aqpg2x",".icon.svelte-1aqpg2x{width:24px !important;height:24px !important;;}.inner.svelte-1aqpg2x{width:16px;height:16px;background-color:var(--white)}")}function e5(i){let e,t,n,o;return{c(){e=T("img"),f(e,"class","icon svelte-1aqpg2x"),ko(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,l){k(r,e,l),n||(o=Se(e,"error",i[7]),n=!0)},p(r,l){l&1&&!ko(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&w(e),n=!1,o()}}}function t5(i){let e;return{c(){e=T("div"),e.innerHTML='<div class="inner svelte-1aqpg2x"></div>',f(e,"class","icon icon-error-stub svelte-1aqpg2x")},m(t,n){k(t,e,n)},p:_e,d(t){t&&w(e)}}}function i5(i){let e;function t(r,l){return r[5]?t5:e5}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Je()},m(r,l){o.m(r,l),k(r,e,l)},p(r,l){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&w(e),o.d(r)}}}function n5(i){let e,t;return e=new gt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[i5]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function o5(i,e,t){let n,o,r,{iconUrl:l}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:c=cp}=e,m=()=>{t(5,r=!0)};return i.$$set=h=>{"iconUrl"in h&&t(0,l=h.iconUrl),"ariaLabel"in h&&t(1,a=h.ariaLabel),"disabled"in h&&t(8,s=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===cp),i.$$.dirty&272&&t(6,o=n||s)},t(5,r=!1),[l,a,u,c,n,r,o,m,s]}var kc=class extends O{constructor(e){super(),F(this,e,o5,n5,D,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},$3)}},fp=kc;function r5(i){let e,t,n,o,r,l=i[2].default,a=Ve(l,i,i[1],null),s=[{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<s.length;c+=1)u=le(u,s[c]);return{c(){e=N("svg"),a&&a.c(),t=N("g"),n=N("path"),o=N("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"),ke(e,u)},m(c,m){k(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)&&Be(a,l,c,c[1],r?Re(l,c[1],m,null):Ne(c[1]),null),ke(e,u=He(s,[{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&&w(e),a&&a.d(c)}}}function s5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Cc=class extends O{constructor(e){super(),F(this,e,s5,r5,D,{})}},dp=Cc;import{noop as l5}from"@vkontakte/videoplayer-shared/es2018";function a5(i){ve(i,"svelte-6gmlbk",".container.svelte-6gmlbk{display:flex;align-items:center}.expanded.svelte-6gmlbk{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.text.svelte-6gmlbk{font-size:15px;margin-left:8px}")}function mp(i){let e;return{c(){e=T("span"),e.textContent=`${j("mobile_unmute")}`,f(e,"class","text svelte-6gmlbk")},m(t,n){k(t,e,n)},d(t){t&&w(e)}}}function u5(i){let e,t,n,o;var r=i[4];function l(s,u){return{}}r&&(t=Dt(r,l(i)));let a=i[1]&&mp(i);return{c(){e=T("div"),t&&R(t.$$.fragment),n=G(),a&&a.c(),f(e,"class","container svelte-6gmlbk"),f(e,"aria-hidden","true"),K(e,"expanded",i[1])},m(s,u){k(s,e,u),t&&M(t,e,null),_(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&r!==(r=s[4])){if(t){ce();let c=t;p(c.$$.fragment,1,0,()=>{L(c,1)}),fe()}r?(t=Dt(r,l(s,u)),R(t.$$.fragment),d(t.$$.fragment,1),M(t,e,n)):t=null}s[1]?a||(a=mp(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&K(e,"expanded",s[1])},i(s){o||(t&&d(t.$$.fragment,s),o=!0)},o(s){t&&p(t.$$.fragment,s),o=!1},d(s){s&&w(e),t&&L(t),a&&a.d()}}}function c5(i){let e,t,n;function o(l){i[6](l)}let r={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[u5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.testId=l[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(s.click=l[2]),a&8&&(s.ariaLabel=l[3]),a&146&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function f5(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=l5}=e,{ref:l=void 0}=e,a,s;function u(c){l=c,t(0,l)}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,l=c.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,a=n?j("tooltip_volume"):j("tooltip_volume_muted")),i.$$.dirty&2&&t(4,s=o?ar:dp)},[l,o,r,a,s,n,u]}var Sc=class extends O{constructor(e){super(),F(this,e,f5,c5,D,{muted:5,expanded:1,click:2,ref:0},a5)}},Tc=Sc;function d5(i){let e,t,n,o,r,l=i[2].default,a=Ve(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=le(u,s[c]);return{c(){e=N("svg"),a&&a.c(),t=N("path"),n=N("path"),o=N("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"),ke(e,u)},m(c,m){k(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)&&Be(a,l,c,c[1],r?Re(l,c[1],m,null):Ne(c[1]),null),ke(e,u=He(s,[{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&&w(e),a&&a.d(c)}}}function m5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Ic=class extends O{constructor(e){super(),F(this,e,m5,d5,D,{})}},pp=Ic;function p5(i){ve(i,"svelte-tmam00",'svg[data-testid="pip-icon--active"] .hidden-active,svg[data-testid="pip-icon"] .hidden-not-active{visibility:hidden;opacity:0}')}function _5(i){let e,t;return e=new pp({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function h5(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 Pc=class extends O{constructor(e){super(),F(this,e,h5,_5,D,{isActive:0},p5)}},_p=Pc;import{noop as g5}from"@vkontakte/videoplayer-shared/es2018";function b5(i){let e,t;return e=new _p({props:{isActive:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function v5(i){let e,t,n;function o(l){i[3](l)}let r={testId:"btn-pip",ariaLabel:j("menu_pip"),click:i[2],$$slots:{default:[b5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,[a]){let s={};a&4&&(s.click=l[2]),a&18&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function y5(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=g5}=e;function l(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,l]}var Ec=class extends O{constructor(e){super(),F(this,e,y5,v5,D,{ref:0,isPictureInPictureActive:1,click:2})}},hp=Ec;function w5(i){ve(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 k5(i){let e,t;return e=new Fr({props:{width:"14",height:"14"}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function C5(i){let e,t;return e=new Wo({props:{width:"14",height:"14",fill:"#000"}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function S5(i){let e,t,n,o,r,l=[C5,k5],a=[];function s(u,c){return u[1]?0:1}return n=s(i,-1),o=a[n]=l[n](i),{c(){e=T("span"),t=T("span"),o.c(),f(t,"class","toggler svelte-sty291"),K(t,"enabled",i[1]),f(e,"class","gutter svelte-sty291")},m(u,c){k(u,e,c),_(e,t),a[n].m(t,null),r=!0},p(u,c){let m=n;n=s(u,c),n!==m&&(ce(),p(a[m],1,1,()=>{a[m]=null}),fe(),o=a[n],o||(o=a[n]=l[n](u),o.c()),d(o,1),o.m(t,null)),(!r||c&2)&&K(t,"enabled",u[1])},i(u){r||(d(o),r=!0)},o(u){p(o),r=!1},d(u){u&&w(e),a[n].d()}}}function T5(i){let e,t,n;function o(l){i[4](l)}let r={click:i[3],$$slots:{default:[S5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,[a]){let s={};a&130&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function I5(i,e,t){let n,{ref:o=void 0}=e,r=it(),l=r.ui.autoplayNextEnabled$;B(i,l,c=>t(1,n=c));let a=r.actions.internal.setAutoplayNextEnabled;function s(){a(!n,!0)}function u(c){o=c,t(0,o)}return i.$$set=c=>{"ref"in c&&t(0,o=c.ref)},[o,n,l,s,u]}var Ac=class extends O{constructor(e){super(),F(this,e,I5,T5,D,{ref:0},w5)}},gp=Ac;import{debounceFn as P5}from"@vkontakte/videoplayer-shared/es2018";function E5(i){ve(i,"svelte-1afsgkw",".wrapper-bottom.svelte-1afsgkw.svelte-1afsgkw{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px}.wrapper-bottom.svelte-1afsgkw>.svelte-1afsgkw{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-1afsgkw.svelte-1afsgkw{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-1afsgkw.svelte-1afsgkw{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index)}.wrapper-top-right.svelte-1afsgkw.svelte-1afsgkw{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index)}.wrapper-top-left.svelte-1afsgkw.svelte-1afsgkw{position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index)}.wrapper-middle-left.svelte-1afsgkw.svelte-1afsgkw,.wrapper-middle-left-second.svelte-1afsgkw.svelte-1afsgkw,.wrapper-middle-right.svelte-1afsgkw.svelte-1afsgkw{position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.wrapper-middle-left.svelte-1afsgkw.svelte-1afsgkw{left:12px}.wrapper-middle-left-second.svelte-1afsgkw.svelte-1afsgkw{left:64px}.wrapper-middle-right.svelte-1afsgkw.svelte-1afsgkw{right:12px}.controls.svelte-1afsgkw.svelte-1afsgkw{width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box}.controls.svelte-1afsgkw > *:not(:first-child){margin-left:8px}.hidden.svelte-1afsgkw.svelte-1afsgkw{visibility:hidden;opacity:0}.controls-hidden.svelte-1afsgkw.svelte-1afsgkw{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-1afsgkw.svelte-1afsgkw{transition:none}.overlay-mobile.svelte-1afsgkw.svelte-1afsgkw{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration)}@media screen and (orientation: portrait){.wrapper-top-right.fullscreen.svelte-1afsgkw.svelte-1afsgkw{top:16px}.wrapper-top-left.fullscreen.svelte-1afsgkw.svelte-1afsgkw{top:16px}.controls-wrapper.fullscreen.svelte-1afsgkw.svelte-1afsgkw{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-1afsgkw.svelte-1afsgkw{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-1afsgkw.svelte-1afsgkw{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-1afsgkw.svelte-1afsgkw{left:44px}.wrapper-middle-left-second.fullscreen.svelte-1afsgkw.svelte-1afsgkw{left:96px}.wrapper-middle-right.fullscreen.svelte-1afsgkw.svelte-1afsgkw{right:44px}.controls-wrapper.fullscreen.svelte-1afsgkw.svelte-1afsgkw{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function yp(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 wp(i){let e,t,n,o,r,l,a,s,u,c,m,h,v,g,S,y,A,I,C=(!i[47]||i[49])&&kp(i),P=wt(i[52]),U=[];for(let z=0;z<P.length;z+=1)U[z]=Cp(yp(i,P,z));let x=z=>p(U[z],1,1,()=>{U[z]=null}),V=i[9]&&!i[11]&&Sp(i),Z=i[32]&&Tp(i),ae=i[33]&&Ip(i),Q=i[53]&&Pp(i),ue=i[35]&&Ep(i),q=i[29]&&Ap(i),H=i[28]&&Mp(i),be=i[27]&&Lp(i),W=i[30]&&Vp(i),te=i[95]&&!i[23]&&Rp(i);return{c(){e=T("div"),t=G(),n=T("div"),C&&C.c(),o=G(),r=T("div");for(let z=0;z<U.length;z+=1)U[z].c();l=G(),V&&V.c(),a=G(),Z&&Z.c(),s=G(),ae&&ae.c(),u=G(),Q&&Q.c(),c=G(),ue&&ue.c(),m=G(),h=T("div"),q&&q.c(),v=G(),H&&H.c(),g=G(),be&&be.c(),S=G(),W&&W.c(),y=G(),te&&te.c(),A=Je(),f(e,"class","overlay-mobile svelte-1afsgkw"),K(e,"hidden",!i[38]),f(n,"class","wrapper-top-left svelte-1afsgkw"),K(n,"hidden",!i[4]),K(n,"fullscreen",i[48]),f(r,"class","wrapper-top-right svelte-1afsgkw"),K(r,"hidden",!i[4]&&!i[21]),K(r,"fullscreen",i[48]),f(h,"class","wrapper-middle svelte-1afsgkw"),K(h,"hidden",!i[4]||i[23]||i[12]&&i[10])},m(z,pe){k(z,e,pe),k(z,t,pe),k(z,n,pe),C&&C.m(n,null),k(z,o,pe),k(z,r,pe);for(let se=0;se<U.length;se+=1)U[se]&&U[se].m(r,null);_(r,l),V&&V.m(r,null),_(r,a),Z&&Z.m(r,null),_(r,s),ae&&ae.m(r,null),_(r,u),Q&&Q.m(r,null),_(r,c),ue&&ue.m(r,null),k(z,m,pe),k(z,h,pe),q&&q.m(h,null),_(h,v),H&&H.m(h,null),_(h,g),be&&be.m(h,null),_(h,S),W&&W.m(h,null),k(z,y,pe),te&&te.m(z,pe),k(z,A,pe),I=!0},p(z,pe){if((!I||pe[1]&128)&&K(e,"hidden",!z[38]),!z[47]||z[49]?C?(C.p(z,pe),pe[1]&327680&&d(C,1)):(C=kp(z),C.c(),d(C,1),C.m(n,null)):C&&(ce(),p(C,1,1,()=>{C=null}),fe()),(!I||pe[0]&16)&&K(n,"hidden",!z[4]),(!I||pe[1]&131072)&&K(n,"fullscreen",z[48]),pe[1]&2097152){P=wt(z[52]);let se;for(se=0;se<P.length;se+=1){let X=yp(z,P,se);U[se]?(U[se].p(X,pe),d(U[se],1)):(U[se]=Cp(X),U[se].c(),d(U[se],1),U[se].m(r,l))}for(ce(),se=P.length;se<U.length;se+=1)x(se);fe()}z[9]&&!z[11]?V?(V.p(z,pe),pe[0]&2560&&d(V,1)):(V=Sp(z),V.c(),d(V,1),V.m(r,a)):V&&(ce(),p(V,1,1,()=>{V=null}),fe()),z[32]?Z?(Z.p(z,pe),pe[1]&2&&d(Z,1)):(Z=Tp(z),Z.c(),d(Z,1),Z.m(r,s)):Z&&(ce(),p(Z,1,1,()=>{Z=null}),fe()),z[33]?ae?(ae.p(z,pe),pe[1]&4&&d(ae,1)):(ae=Ip(z),ae.c(),d(ae,1),ae.m(r,u)):ae&&(ce(),p(ae,1,1,()=>{ae=null}),fe()),z[53]?Q?(Q.p(z,pe),pe[1]&4194304&&d(Q,1)):(Q=Pp(z),Q.c(),d(Q,1),Q.m(r,c)):Q&&(ce(),p(Q,1,1,()=>{Q=null}),fe()),z[35]?ue?(ue.p(z,pe),pe[1]&16&&d(ue,1)):(ue=Ep(z),ue.c(),d(ue,1),ue.m(r,null)):ue&&(ce(),p(ue,1,1,()=>{ue=null}),fe()),(!I||pe[0]&2097168)&&K(r,"hidden",!z[4]&&!z[21]),(!I||pe[1]&131072)&&K(r,"fullscreen",z[48]),z[29]?q?(q.p(z,pe),pe[0]&536870912&&d(q,1)):(q=Ap(z),q.c(),d(q,1),q.m(h,v)):q&&(ce(),p(q,1,1,()=>{q=null}),fe()),z[28]?H?(H.p(z,pe),pe[0]&268435456&&d(H,1)):(H=Mp(z),H.c(),d(H,1),H.m(h,g)):H&&(ce(),p(H,1,1,()=>{H=null}),fe()),z[27]?be?(be.p(z,pe),pe[0]&134217728&&d(be,1)):(be=Lp(z),be.c(),d(be,1),be.m(h,S)):be&&(ce(),p(be,1,1,()=>{be=null}),fe()),z[30]?W?(W.p(z,pe),pe[0]&1073741824&&d(W,1)):(W=Vp(z),W.c(),d(W,1),W.m(h,null)):W&&(ce(),p(W,1,1,()=>{W=null}),fe()),(!I||pe[0]&8393744)&&K(h,"hidden",!z[4]||z[23]||z[12]&&z[10]),z[95]&&!z[23]?te?(te.p(z,pe),pe[0]&8388608&&d(te,1)):(te=Rp(z),te.c(),d(te,1),te.m(A.parentNode,A)):te&&(ce(),p(te,1,1,()=>{te=null}),fe())},i(z){if(!I){d(C);for(let pe=0;pe<P.length;pe+=1)d(U[pe]);d(V),d(Z),d(ae),d(Q),d(ue),d(q),d(H),d(be),d(W),d(te),I=!0}},o(z){p(C),U=U.filter(Boolean);for(let pe=0;pe<U.length;pe+=1)p(U[pe]);p(V),p(Z),p(ae),p(Q),p(ue),p(q),p(H),p(be),p(W),p(te),I=!1},d(z){z&&(w(e),w(t),w(n),w(o),w(r),w(m),w(h),w(y),w(A)),C&&C.d(),di(U,z),V&&V.d(),Z&&Z.d(),ae&&ae.d(),Q&&Q.d(),ue&&ue.d(),q&&q.d(),H&&H.d(),be&&be.d(),W&&W.d(),te&&te.d(z)}}}function kp(i){let e,t,n;function o(l){i[131](l)}let r={muted:i[50],expanded:i[47]&&!i[68]&&i[51],click:i[104]};return i[17].volume!==void 0&&(r.ref=i[17].volume),e=new Tc({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,a){let s={};a[1]&524288&&(s.muted=l[50]),a[1]&1114112&&(s.expanded=l[47]&&!l[68]&&l[51]),!t&&a[0]&131072&&(t=!0,s.ref=l[17].volume,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Cp(i){var n;let e,t;return e=new fp({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){M(e,o,r),t=!0},p(o,r){var a;let l={};r[1]&2097152&&(l.iconUrl=o[171]),r[1]&2097152&&(l.ariaLabel=(a=o[172])!=null?a:o[175]),r[1]&2097152&&(l.testId=o[173]),r[1]&2097152&&(l.onClick=o[174]),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){L(e,o)}}}function Sp(i){let e,t,n;function o(l){i[132](l)}let r={};return i[17].autoplayNextToggle!==void 0&&(r.ref=i[17].autoplayNextToggle),e=new gp({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&131072&&(t=!0,s.ref=l[17].autoplayNextToggle,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Tp(i){let e,t,n;function o(l){i[133](l)}let r={isMobile:!0,click:i[102],state:i[22]};return i[17].chromecast!==void 0&&(r.ref=i[17].chromecast),e=new fl({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,a){let s={};a[0]&4194304&&(s.state=l[22]),!t&&a[0]&131072&&(t=!0,s.ref=l[17].chromecast,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Ip(i){let e,t,n;function o(l){i[134](l)}let r={click:i[103],isPictureInPictureActive:i[20]};return i[17].pip!==void 0&&(r.ref=i[17].pip),e=new hp({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,a){let s={};a[0]&1048576&&(s.isPictureInPictureActive=l[20]),!t&&a[0]&131072&&(t=!0,s.ref=l[17].pip,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Pp(i){let e,t;return e=new ns({props:{ref$:i[105]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p:_e,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Ep(i){let e,t,n;function o(l){i[135](l)}let r={click:i[60],targetUrl:i[8],logoClickable:i[7]};return i[17].vkLogo!==void 0&&(r.ref=i[17].vkLogo),e=new cl({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,a){let s={};a[0]&256&&(s.targetUrl=l[8]),a[0]&128&&(s.logoClickable=l[7]),!t&&a[0]&131072&&(t=!0,s.ref=l[17].vkLogo,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Ap(i){let e,t,n;function o(l){i[136](l)}let r={click:i[61].bind(null,!0),type:"prev",isMobile:!0};return i[17].prevButton!==void 0&&(r.ref=i[17].prevButton),e=new Or({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&131072&&(t=!0,s.ref=l[17].prevButton,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Mp(i){let e,t,n;function o(l){i[137](l)}let r={disabled:i[45],click:i[59],isMobile:!0,isPlaying:i[25]};return i[17].playButton!==void 0&&(r.ref=i[17].playButton),e=new ls({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,a){let s={};a[1]&16384&&(s.disabled=l[45]),a[0]&33554432&&(s.isPlaying=l[25]),!t&&a[0]&131072&&(t=!0,s.ref=l[17].playButton,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Lp(i){let e,t,n;function o(l){i[138](l)}let r={disabled:i[44],click:i[59],isMobile:!0};return i[17].replayButton!==void 0&&(r.ref=i[17].replayButton),e=new ss({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,a){let s={};a[1]&8192&&(s.disabled=l[44]),!t&&a[0]&131072&&(t=!0,s.ref=l[17].replayButton,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Vp(i){let e,t,n;function o(l){i[139](l)}let r={click:i[62].bind(null,!0),type:"next",isMobile:!0};return i[17].nextButton!==void 0&&(r.ref=i[17].nextButton),e=new Or({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&131072&&(t=!0,s.ref=l[17].nextButton,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Rp(i){let e,t,n,o,r=i[98]&&A5(i),l=i[40]&&Bp(i),a=i[97]&&M5(i);return{c(){r&&r.c(),e=G(),l&&l.c(),t=G(),a&&a.c(),n=Je()},m(s,u){r&&r.m(s,u),k(s,e,u),l&&l.m(s,u),k(s,t,u),a&&a.m(s,u),k(s,n,u),o=!0},p(s,u){s[98]&&r.p(s,u),s[40]?l?(l.p(s,u),u[1]&512&&d(l,1)):(l=Bp(s),l.c(),d(l,1),l.m(t.parentNode,t)):l&&(ce(),p(l,1,1,()=>{l=null}),fe()),s[97]&&a.p(s,u)},i(s){o||(d(r),d(l),d(a),o=!0)},o(s){p(r),p(l),p(a),o=!1},d(s){s&&(w(e),w(t),w(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function A5(i){let e,t,n,o,r,l;function a(u){i[140](u)}let s={hidden:!i[4],disabled:i[43],click:i[15]};return i[17].playPrevChapterButton!==void 0&&(s.ref=i[17].playPrevChapterButton),t=new El({props:s}),ye.push(()=>We(t,"ref",a)),{c(){e=T("div"),R(t.$$.fragment),f(e,"class","wrapper-middle-left svelte-1afsgkw"),K(e,"fullscreen",i[48]),K(e,"hidden",!i[4])},m(u,c){k(u,e,c),M(t,e,null),o=!0,r||(l=Se(e,"click",i[106]),r=!0)},p(u,c){let m={};c[0]&16&&(m.hidden=!u[4]),c[1]&4096&&(m.disabled=u[43]),c[0]&32768&&(m.click=u[15]),!n&&c[0]&131072&&(n=!0,m.ref=u[17].playPrevChapterButton,ze(()=>n=!1)),t.$set(m),(!o||c[1]&131072)&&K(e,"fullscreen",u[48]),(!o||c[0]&16)&&K(e,"hidden",!u[4])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){p(t.$$.fragment,u),o=!1},d(u){u&&w(e),L(t),r=!1,l()}}}function Bp(i){let e,t,n,o,r;function l(s){i[141](s)}let a={hidden:!i[4]&&!i[54],disabled:i[46],click:i[101].toggle,graphIsOpened:i[54]};return i[17].interactiveGraphButton!==void 0&&(a.ref=i[17].interactiveGraphButton),t=new Ml({props:a}),ye.push(()=>We(t,"ref",l)),{c(){e=T("div"),R(t.$$.fragment),f(e,"class",o=Wf(i[98]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-1afsgkw"),K(e,"fullscreen",i[48]),K(e,"hidden",!i[4]&&!i[54])},m(s,u){k(s,e,u),M(t,e,null),r=!0},p(s,u){let c={};u[0]&16|u[1]&8388608&&(c.hidden=!s[4]&&!s[54]),u[1]&32768&&(c.disabled=s[46]),u[1]&8388608&&(c.graphIsOpened=s[54]),!n&&u[0]&131072&&(n=!0,c.ref=s[17].interactiveGraphButton,ze(()=>n=!1)),t.$set(c),(!r||u[1]&131072)&&K(e,"fullscreen",s[48]),(!r||u[0]&16|u[1]&8388608)&&K(e,"hidden",!s[4]&&!s[54])},i(s){r||(d(t.$$.fragment,s),r=!0)},o(s){p(t.$$.fragment,s),r=!1},d(s){s&&w(e),L(t)}}}function M5(i){let e,t,n,o,r,l;function a(u){i[142](u)}let s={hidden:!i[4],disabled:i[42],click:i[14]};return i[17].seekToInteractiveButton!==void 0&&(s.ref=i[17].seekToInteractiveButton),t=new Al({props:s}),ye.push(()=>We(t,"ref",a)),{c(){e=T("div"),R(t.$$.fragment),f(e,"class","wrapper-middle-right svelte-1afsgkw"),K(e,"fullscreen",i[48]),K(e,"hidden",!i[4])},m(u,c){k(u,e,c),M(t,e,null),o=!0,r||(l=Se(e,"click",i[107]),r=!0)},p(u,c){let m={};c[0]&16&&(m.hidden=!u[4]),c[1]&2048&&(m.disabled=u[42]),c[0]&16384&&(m.click=u[14]),!n&&c[0]&131072&&(n=!0,m.ref=u[17].seekToInteractiveButton,ze(()=>n=!1)),t.$set(m),(!o||c[1]&131072)&&K(e,"fullscreen",u[48]),(!o||c[0]&16)&&K(e,"hidden",!u[4])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){p(t.$$.fragment,u),o=!1},d(u){u&&w(e),L(t),r=!1,l()}}}function Np(i){let e,t,n,o,r,l=i[49]&&Dp(i),a=i[26]&&Op(i);return o=new ml({props:{position:i[55],duration:i[56]}}),{c(){l&&l.c(),e=G(),a&&a.c(),t=G(),n=T("div"),R(o.$$.fragment),f(n,"class","wrapper-bottom ads-timeline-mobile svelte-1afsgkw"),K(n,"fullscreen",i[48])},m(s,u){l&&l.m(s,u),k(s,e,u),a&&a.m(s,u),k(s,t,u),k(s,n,u),M(o,n,null),r=!0},p(s,u){s[49]?l?(l.p(s,u),u[1]&262144&&d(l,1)):(l=Dp(s),l.c(),d(l,1),l.m(e.parentNode,e)):l&&(ce(),p(l,1,1,()=>{l=null}),fe()),s[26]?a?(a.p(s,u),u[0]&67108864&&d(a,1)):(a=Op(s),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(ce(),p(a,1,1,()=>{a=null}),fe());let c={};u[1]&16777216&&(c.position=s[55]),u[1]&33554432&&(c.duration=s[56]),o.$set(c),(!r||u[1]&131072)&&K(n,"fullscreen",s[48])},i(s){r||(d(l),d(a),d(o.$$.fragment,s),r=!0)},o(s){p(l),p(a),p(o.$$.fragment,s),r=!1},d(s){s&&(w(e),w(t),w(n)),l&&l.d(s),a&&a.d(s),L(o)}}}function Dp(i){let e,t,n,o;function r(a){i[143](a)}let l={muted:i[50],expanded:!1,click:i[104]};return i[17].volume!==void 0&&(l.ref=i[17].volume),t=new Tc({props:l}),ye.push(()=>We(t,"ref",r)),{c(){e=T("div"),R(t.$$.fragment),f(e,"class","wrapper-top-right svelte-1afsgkw"),K(e,"fullscreen",i[48])},m(a,s){k(a,e,s),M(t,e,null),o=!0},p(a,s){let u={};s[1]&524288&&(u.muted=a[50]),!n&&s[0]&131072&&(n=!0,u.ref=a[17].volume,ze(()=>n=!1)),t.$set(u),(!o||s[1]&131072)&&K(e,"fullscreen",a[48])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&w(e),L(t)}}}function Op(i){let e,t,n,o;function r(a){i[144](a)}let l={disabled:i[45],click:i[59],isMobile:!0,isPlaying:!i[26]};return i[17].playButton!==void 0&&(l.ref=i[17].playButton),t=new ls({props:l}),ye.push(()=>We(t,"ref",r)),{c(){e=T("div"),R(t.$$.fragment),f(e,"class","wrapper-middle svelte-1afsgkw")},m(a,s){k(a,e,s),M(t,e,null),o=!0},p(a,s){let u={};s[1]&16384&&(u.disabled=a[45]),s[0]&67108864&&(u.isPlaying=!a[26]),!n&&s[0]&131072&&(n=!0,u.ref=a[17].playButton,ze(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&w(e),L(t)}}}function L5(i){let e,t,n;function o(l){i[145](l)}let r={disabled:i[44],$$slots:{default:[V5]},$$scope:{ctx:i}};return i[17].replayButton!==void 0&&(r.ref=i[17].replayButton),e=new Yi({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,a){let s={};a[1]&8192&&(s.disabled=l[44]),a[1]&8192|a[5]&8388608&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&131072&&(t=!0,s.ref=l[17].replayButton,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function V5(i){let e,t;return e=new ss({props:{disabled:i[44],click:i[94]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let r={};o[1]&8192&&(r.disabled=n[44]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Fp(i){let e,t,n;function o(l){i[146](l)}let r={$$slots:{default:[R5]},$$scope:{ctx:i}};return i[17].liveButton!==void 0&&(r.ref=i[17].liveButton),e=new Yi({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,a){let s={};a[0]&65536|a[1]&1024|a[5]&8388608&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&131072&&(t=!0,s.ref=l[17].liveButton,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function R5(i){let e,t;return e=new Ll({props:{isLiveActive:i[16],isMobile:!0,ariaLabel:i[41]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let r={};o[0]&65536&&(r.isLiveActive=n[16]),o[1]&1024&&(r.ariaLabel=n[41]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function xp(i){let e,t,n;function o(l){i[147](l)}let r={showDuration:i[31],position:i[5]?i[55]:i[57],duration:i[5]?i[56]:i[58],isMobile:!0};return i[17].time!==void 0&&(r.ref=i[17].time),e=new ll({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,a){let s={};a[1]&1&&(s.showDuration=l[31]),a[0]&32|a[1]&83886080&&(s.position=l[5]?l[55]:l[57]),a[0]&32|a[1]&167772160&&(s.duration=l[5]?l[56]:l[58]),!t&&a[0]&131072&&(t=!0,s.ref=l[17].time,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Hp(i){let e,t,n,o;return n=new _l({props:{position:i[57],duration:i[58],timeCodes:i[82]}}),{c(){e=T("div"),e.textContent="\xB7",t=G(),R(n.$$.fragment),f(e,"aria-hidden","true")},m(r,l){k(r,e,l),k(r,t,l),M(n,r,l),o=!0},p(r,l){let a={};l[1]&67108864&&(a.position=r[57]),l[1]&134217728&&(a.duration=r[58]),n.$set(a)},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){p(n.$$.fragment,r),o=!1},d(r){r&&(w(e),w(t)),L(n,r)}}}function B5(i){let e,t,n=i[39]&&Hp(i);return{c(){n&&n.c(),e=Je()},m(o,r){n&&n.m(o,r),k(o,e,r),t=!0},p(o,r){o[39]?n?(n.p(o,r),r[1]&256&&d(n,1)):(n=Hp(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),p(n,1,1,()=>{n=null}),fe())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function qp(i){let e,t,n;function o(l){i[149](l)}let r={$$slots:{default:[N5]},$$scope:{ctx:i}};return i[17].settings!==void 0&&(r.ref=i[17].settings),e=new Yi({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,a){let s={};a[5]&8388608&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&131072&&(t=!0,s.ref=l[17].settings,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function N5(i){let e,t;return e=new ns({props:{ref$:i[105]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p:_e,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Up(i){let e,t,n;function o(l){i[150](l)}let r={$$slots:{default:[D5]},$$scope:{ctx:i}};return i[17].fullscreen!==void 0&&(r.ref=i[17].fullscreen),e=new Yi({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,a){let s={};a[0]&8192|a[1]&131072|a[5]&8388608&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&131072&&(t=!0,s.ref=l[17].fullscreen,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function D5(i){let e,t;return e=new ul({props:{click:i[13],isFullscreen:i[48]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let r={};o[0]&8192&&(r.click=n[13]),o[1]&131072&&(r.isFullscreen=n[48]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function O5(i){let e,t,n;function o(l){i[154](l)}let r={};return i[17].interactiveTimeIndicator!==void 0&&(r.ref=i[17].interactiveTimeIndicator),e=new Il({props:r}),ye.push(()=>We(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&131072&&(t=!0,s.ref=l[17].interactiveTimeIndicator,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function F5(i){let e,t,n,o,r,l,a,s,u,c,m,h,v,g,S,y,A,I,C=!i[5]&&wp(i),P=i[5]&&i[24]!=="inactive"&&Np(i),U=i[95]&&L5(i),x=!i[5]&&i[19]&&Fp(i),V=i[37]&&xp(i);function Z(W){i[148](W)}let ae={className:"w-max",disabled:!i[39],$$slots:{default:[B5]},$$scope:{ctx:i}};i[17].episodes!==void 0&&(ae.ref=i[17].episodes),u=new Yi({props:ae}),ye.push(()=>We(u,"ref",Z));let Q=i[34]&&qp(i),ue=i[36]&&Up(i);function q(W){i[152](W)}let H={isAds:i[5],canRewindLive:i[6],isRewindableLive:i[18]};i[17].timeline!==void 0&&(H.ref=i[17].timeline),g=new pl({props:H}),ye.push(()=>We(g,"ref",q));let be=i[99]&&O5(i);return{c(){C&&C.c(),e=G(),P&&P.c(),t=G(),n=T("div"),o=T("div"),r=T("div"),U&&U.c(),l=G(),x&&x.c(),a=G(),V&&V.c(),s=G(),R(u.$$.fragment),m=G(),Q&&Q.c(),h=G(),ue&&ue.c(),v=G(),R(g.$$.fragment),y=G(),be&&be.c(),A=Je(),f(r,"class","controls svelte-1afsgkw"),K(r,"mobile",!0),f(o,"class","controls-wrapper svelte-1afsgkw"),K(o,"fullscreen",i[48]),f(n,"class","wrapper-bottom svelte-1afsgkw"),K(n,"hidden",i[2]),K(n,"controls-hidden",!i[4]),K(n,"no-smooth",i[3]),K(n,"mobile",!0)},m(W,te){C&&C.m(W,te),k(W,e,te),P&&P.m(W,te),k(W,t,te),k(W,n,te),_(n,o),_(o,r),U&&U.m(r,null),_(r,l),x&&x.m(r,null),_(r,a),V&&V.m(r,null),_(r,s),M(u,r,null),_(r,m),Q&&Q.m(r,null),_(r,h),ue&&ue.m(r,null),i[151](r),_(o,v),M(g,o,null),i[153](n),k(W,y,te),be&&be.m(W,te),k(W,A,te),I=!0},p(W,te){W[5]?C&&(ce(),p(C,1,1,()=>{C=null}),fe()):C?(C.p(W,te),te[0]&32&&d(C,1)):(C=wp(W),C.c(),d(C,1),C.m(e.parentNode,e)),W[5]&&W[24]!=="inactive"?P?(P.p(W,te),te[0]&16777248&&d(P,1)):(P=Np(W),P.c(),d(P,1),P.m(t.parentNode,t)):P&&(ce(),p(P,1,1,()=>{P=null}),fe()),W[95]&&U.p(W,te),!W[5]&&W[19]?x?(x.p(W,te),te[0]&524320&&d(x,1)):(x=Fp(W),x.c(),d(x,1),x.m(r,a)):x&&(ce(),p(x,1,1,()=>{x=null}),fe()),W[37]?V?(V.p(W,te),te[1]&64&&d(V,1)):(V=xp(W),V.c(),d(V,1),V.m(r,s)):V&&(ce(),p(V,1,1,()=>{V=null}),fe());let z={};te[1]&256&&(z.disabled=!W[39]),te[1]&201326848|te[5]&8388608&&(z.$$scope={dirty:te,ctx:W}),!c&&te[0]&131072&&(c=!0,z.ref=W[17].episodes,ze(()=>c=!1)),u.$set(z),W[34]?Q?(Q.p(W,te),te[1]&8&&d(Q,1)):(Q=qp(W),Q.c(),d(Q,1),Q.m(r,h)):Q&&(ce(),p(Q,1,1,()=>{Q=null}),fe()),W[36]?ue?(ue.p(W,te),te[1]&32&&d(ue,1)):(ue=Up(W),ue.c(),d(ue,1),ue.m(r,null)):ue&&(ce(),p(ue,1,1,()=>{ue=null}),fe());let pe={};te[0]&32&&(pe.isAds=W[5]),te[0]&64&&(pe.canRewindLive=W[6]),te[0]&262144&&(pe.isRewindableLive=W[18]),!S&&te[0]&131072&&(S=!0,pe.ref=W[17].timeline,ze(()=>S=!1)),g.$set(pe),(!I||te[1]&131072)&&K(o,"fullscreen",W[48]),(!I||te[0]&4)&&K(n,"hidden",W[2]),(!I||te[0]&16)&&K(n,"controls-hidden",!W[4]),(!I||te[0]&8)&&K(n,"no-smooth",W[3]),W[99]&&be.p(W,te)},i(W){I||(d(C),d(P),d(U),d(x),d(V),d(u.$$.fragment,W),d(Q),d(ue),d(g.$$.fragment,W),d(be),I=!0)},o(W){p(C),p(P),p(U),p(x),p(V),p(u.$$.fragment,W),p(Q),p(ue),p(g.$$.fragment,W),p(be),I=!1},d(W){W&&(w(e),w(t),w(n),w(y),w(A)),C&&C.d(W),P&&P.d(W),U&&U.d(),x&&x.d(),V&&V.d(),L(u),Q&&Q.d(),ue&&ue.d(),i[151](null),L(g),i[153](null),be&&be.d(W)}}}function x5(i,e,t){var ie,Rt;let n,o,r,l,a,s,u,c,m,h,v,g,S,y,A,I,C,P,U,x,V,Z,ae,Q,ue,q,H,be,W,te,z,pe,se,X,re,oe,Ze,Fe,Ie,{bottomHidden:Ce}=e,{bottomNoSmooth:Ae}=e,{showControls:qe}=e,{playerControlsWrapperRef:J=void 0}=e,{playerControlsRef:he=void 0}=e,{isAds:Te=!1}=e,{canRewindLive:Ye}=e,{logoClickable:nt}=e,{logoHidden:st}=e,{logoTargetUrl:at=""}=e,{showAutoplayNext:ct}=e,{showNextPrevButtons:me}=e,{nextButtonActive:Qe}=e,{prevButtonActive:De}=e,{isOneVideoPlaylist:lt=!1}=e,{customFullscreenSupported:je=!0}=e,{endScreenShown:xe}=e,{toggleFullscreen:Pe}=e,{seekToInteractive:ft}=e,{playPrevChapter:ge}=e,{onDisabledPlayPrevChapterClick:dt}=e,{onDisabledSeekToInteractiveClick:bt}=e,Xe=it(),yt=dn(),Tt=Mt(),Kt=Xe.actions.internal.toggleMuted,Ut=Xe.actions.internal.togglePlay,jt=Xe.actions.internal.pause,Ht=Xe.actions.internal.prevVideoClick,zt=Xe.actions.internal.nextVideoClick,Vt=(ie=Xe.callbacks)==null?void 0:ie.onAudioDoesNotExistHint,ot=(Rt=Xe.callbacks)==null?void 0:Rt.onAudioDisabledHint,St=Xe.playerPhase;B(i,St,ne=>t(127,ae=ne));let Lt=Xe.state.duration$;B(i,Lt,ne=>t(58,Ie=ne));let de=Xe.state.positionWithScrubbing$;B(i,de,ne=>t(57,Fe=ne));let et=Xe.state.playbackState$;B(i,et,ne=>t(121,v=ne));let kt=Xe.state.isAudioAvailable$;B(i,kt,ne=>t(47,g=ne));let ri=Xe.state.isAudioDisabled,Bt=Xe.state.isEnded$;B(i,Bt,ne=>t(128,ue=ne));let Nt=Xe.state.isLive$;B(i,Nt,ne=>t(19,P=ne));let si=Xe.state.muted$;B(i,si,ne=>t(50,z=ne));let Wt=Xe.state.isActiveLive$;B(i,Wt,ne=>t(125,I=ne));let li=Xe.state.isRewindableLive$;B(i,li,ne=>t(18,C=ne));let Ti=Xe.ui.scrubbingInProgress;B(i,Ti,ne=>t(23,Q=ne));let Fi=Xe.ui.mobileNotReportControlHidden$;B(i,Fi,ne=>t(21,V=ne));let{isActive$:_i,type$:yi}=yt.pictureInPicture$;B(i,_i,ne=>t(20,x=ne)),B(i,yi,ne=>t(126,U=ne));let wi=Xe.ui.mobileUnmuteButtonExpanded;B(i,wi,ne=>t(51,pe=ne));let Ot=Xe.ui.mobileUnmuteButtonVisible;B(i,Ot,ne=>t(49,te=ne));let xi=Xe.ui.settingsMenu.visible$;B(i,xi,ne=>t(119,m=ne));let Ft=Xe.ui.settingsMenu.openedByBtnKeyboard$;B(i,Ft,ne=>t(118,c=ne));let Zt=Xe.ui.controls,Ii=Xe.actions.internal.getVideoEpisodes(),Xt=Xe.webApi.pictureInPictureApi,Pi=Xe.state.chromecastState$;B(i,Pi,ne=>t(22,Z=ne));let Bi=Xe.state.crashed$;B(i,Bi,ne=>t(53,X=ne));let Le=Zt.disabledControls$;B(i,Le,ne=>t(129,H=ne));let tt=Xe.ui.startedByKeyboard$;B(i,tt,ne=>t(117,u=ne));let qt=Xe.ui.currentGridType$;B(i,qt,ne=>t(124,A=ne));let Gt=Xe.ads.duration;B(i,Gt,ne=>t(56,Ze=ne));let It=Xe.ads.position;B(i,It,ne=>t(55,oe=ne));let Zi=Xe.ads.playbackState;B(i,Zi,ne=>t(24,q=ne));let xt=Xe.ui.isFullscreen;B(i,xt,ne=>t(48,W=ne));let ii=Xe.ui.playerSize;B(i,ii,ne=>t(123,y=ne));let mn=Xe.ui.additionalButtonsDeprecated$;B(i,mn,ne=>t(52,se=ne));let In=Xe.actions.internal.getVideoElement,pn=Xe.actions.internal.replayInteractive,ai=Xe.state.isInteractive,Hi=Xe.state.isInteractiveTime$;B(i,Hi,ne=>t(122,S=ne));let _n=Xe.state.showInteractiveGraph,Xi=Xe.state.showSeekToInteractive,Ni=Xe.state.showPlayPrevChapter,hn=Xe.state.showInteractiveTimeIndicator,ui=yt.seekToInteractiveDisabledTooltip$;B(i,ui,ne=>t(130,be=ne));let On=yt.graphIsOpened$;B(i,On,ne=>t(54,re=ne));let Ei,qi,Ui,Ji,Ai,zi,$i,ki,Di,ni,oi,rt,Jt,hi,gn,Wi,bn,en,ci,tn,Mi,Ge={},vn=P5(Sl,260),nn=()=>Xe.actions.internal.toggleChromecast();function Oi(){qo({isAudioDisabled:ri,audioDisabledHintCallback:ot,isAudioAvailable:g,audioIsNotExistHintCallback:Vt})&&Kt()}async function on(){Xt!=null&&Xt.isActive()?await(Xt==null?void 0:Xt.remove()):await(Xt==null?void 0:Xt.request())}function rn(){!ri&&g&&Ot.set(!1),Oi()}let Ki="",Kn=(ne,Cn)=>{if(!ne){t(41,Ki=j("tooltip_live"));return}Cn===vp.PAUSED&&t(41,Ki=j("tooltip_play"))},Fn,gi=Me();B(i,gi,ne=>t(120,h=ne));let xn=()=>{s&&dt(Ei)},yn=()=>{r&&bt(qi)};function wn(ne){i.$$.not_equal(Ge.volume,ne)&&(Ge.volume=ne,t(17,Ge))}function ji(ne){i.$$.not_equal(Ge.autoplayNextToggle,ne)&&(Ge.autoplayNextToggle=ne,t(17,Ge))}function sn(ne){i.$$.not_equal(Ge.chromecast,ne)&&(Ge.chromecast=ne,t(17,Ge))}function kn(ne){i.$$.not_equal(Ge.pip,ne)&&(Ge.pip=ne,t(17,Ge))}function Gi(ne){i.$$.not_equal(Ge.vkLogo,ne)&&(Ge.vkLogo=ne,t(17,Ge))}function ln(ne){i.$$.not_equal(Ge.prevButton,ne)&&(Ge.prevButton=ne,t(17,Ge))}function Hn(ne){i.$$.not_equal(Ge.playButton,ne)&&(Ge.playButton=ne,t(17,Ge))}function io(ne){i.$$.not_equal(Ge.replayButton,ne)&&(Ge.replayButton=ne,t(17,Ge))}function no(ne){i.$$.not_equal(Ge.nextButton,ne)&&(Ge.nextButton=ne,t(17,Ge))}function fi(ne){i.$$.not_equal(Ge.playPrevChapterButton,ne)&&(Ge.playPrevChapterButton=ne,t(17,Ge))}function oo(ne){i.$$.not_equal(Ge.interactiveGraphButton,ne)&&(Ge.interactiveGraphButton=ne,t(17,Ge))}function ro(ne){i.$$.not_equal(Ge.seekToInteractiveButton,ne)&&(Ge.seekToInteractiveButton=ne,t(17,Ge))}function jn(ne){i.$$.not_equal(Ge.volume,ne)&&(Ge.volume=ne,t(17,Ge))}function so(ne){i.$$.not_equal(Ge.playButton,ne)&&(Ge.playButton=ne,t(17,Ge))}function lo(ne){i.$$.not_equal(Ge.replayButton,ne)&&(Ge.replayButton=ne,t(17,Ge))}function Gn(ne){i.$$.not_equal(Ge.liveButton,ne)&&(Ge.liveButton=ne,t(17,Ge))}function Pn(ne){i.$$.not_equal(Ge.time,ne)&&(Ge.time=ne,t(17,Ge))}function En(ne){i.$$.not_equal(Ge.episodes,ne)&&(Ge.episodes=ne,t(17,Ge))}function go(ne){i.$$.not_equal(Ge.settings,ne)&&(Ge.settings=ne,t(17,Ge))}function Yn(ne){i.$$.not_equal(Ge.fullscreen,ne)&&(Ge.fullscreen=ne,t(17,Ge))}function bo(ne){ye[ne?"unshift":"push"](()=>{he=ne,t(1,he)})}function bi(ne){i.$$.not_equal(Ge.timeline,ne)&&(Ge.timeline=ne,t(17,Ge))}function Qn(ne){ye[ne?"unshift":"push"](()=>{J=ne,t(0,J)})}function Zn(ne){i.$$.not_equal(Ge.interactiveTimeIndicator,ne)&&(Ge.interactiveTimeIndicator=ne,t(17,Ge))}return i.$$set=ne=>{"bottomHidden"in ne&&t(2,Ce=ne.bottomHidden),"bottomNoSmooth"in ne&&t(3,Ae=ne.bottomNoSmooth),"showControls"in ne&&t(4,qe=ne.showControls),"playerControlsWrapperRef"in ne&&t(0,J=ne.playerControlsWrapperRef),"playerControlsRef"in ne&&t(1,he=ne.playerControlsRef),"isAds"in ne&&t(5,Te=ne.isAds),"canRewindLive"in ne&&t(6,Ye=ne.canRewindLive),"logoClickable"in ne&&t(7,nt=ne.logoClickable),"logoHidden"in ne&&t(108,st=ne.logoHidden),"logoTargetUrl"in ne&&t(8,at=ne.logoTargetUrl),"showAutoplayNext"in ne&&t(9,ct=ne.showAutoplayNext),"showNextPrevButtons"in ne&&t(10,me=ne.showNextPrevButtons),"nextButtonActive"in ne&&t(109,Qe=ne.nextButtonActive),"prevButtonActive"in ne&&t(110,De=ne.prevButtonActive),"isOneVideoPlaylist"in ne&&t(11,lt=ne.isOneVideoPlaylist),"customFullscreenSupported"in ne&&t(111,je=ne.customFullscreenSupported),"endScreenShown"in ne&&t(12,xe=ne.endScreenShown),"toggleFullscreen"in ne&&t(13,Pe=ne.toggleFullscreen),"seekToInteractive"in ne&&t(14,ft=ne.seekToInteractive),"playPrevChapter"in ne&&t(15,ge=ne.playPrevChapter),"onDisabledPlayPrevChapterClick"in ne&&t(112,dt=ne.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ne&&t(113,bt=ne.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&64&&(qi=j(be)),i.$$.dirty[4]&32&&t(116,n=H.has("EPISODE_BUTTON")),i.$$.dirty[4]&32&&t(46,o=H.has("GRAPH_BUTTON")),i.$$.dirty[4]&32&&t(42,r=H.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[4]&32&&t(45,l=H.has("PLAY_BUTTON")),i.$$.dirty[4]&32&&t(44,a=H.has("REPLAY_BUTTON")),i.$$.dirty[4]&32&&t(43,s=H.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[3]&268435456&&t(25,Ui=v===vp.PLAYING),i.$$.dirty[0]&16777216&&t(26,Ji=q==="paused"),i.$$.dirty[0]&32|i.$$.dirty[4]&16&&t(27,Ai=ue&&!Te&&!ai),i.$$.dirty[0]&32|i.$$.dirty[4]&16&&t(28,zi=!ue||Te),i.$$.dirty[0]&1056|i.$$.dirty[3]&131072&&t(29,$i=me&&!Te&&De),i.$$.dirty[0]&1056|i.$$.dirty[3]&65536&&t(30,ki=me&&!Te&&Qe),i.$$.dirty[3]&1073741824&&t(114,Di=y.width>300),i.$$.dirty[3]&1073741824&&t(31,ni=y.width>400),i.$$.dirty[0]&8388608&&t(115,oi=Q),i.$$.dirty[0]&7340032|i.$$.dirty[4]&4&&t(32,rt=Z!==bp.NOT_AVAILABLE&&!(x&&U===1)&&!V&&!ai),i.$$.dirty[0]&6291456|i.$$.dirty[3]&4194304|i.$$.dirty[4]&12){let ne=ae==="LiveWaitingStart";t(33,Jt=!!Xt&&Z!==bp.CONNECTED&&!V&&(U===1&&ne||!ne)&&!oi&&!ai)}i.$$.dirty[3]&4194304|i.$$.dirty[4]&1&&t(34,hi=!oi&&vi(A,"s")),i.$$.dirty[3]&1073774592&&t(35,gn=!st&&y.width>350),i.$$.dirty[0]&1048576|i.$$.dirty[3]&4456448|i.$$.dirty[4]&4&&t(36,Wi=Tt.features.fullscreen&&!(x&&U===1)&&(ai?je:!0)&&!oi),i.$$.dirty[0]&524320|i.$$.dirty[3]&1077936128&&t(37,bn=(!P||Te)&&y.width>260&&!oi&&!(Tt.features.interactiveHideTime&&ai)),i.$$.dirty[0]&16|i.$$.dirty[3]&67108864&&t(38,en=m||qe),i.$$.dirty[0]&524320|i.$$.dirty[3]&14680064&&t(39,ci=!Te&&!P&&!!(Ii!=null&&Ii.length)&&Di&&!n&&!oi),i.$$.dirty[0]&262144|i.$$.dirty[4]&2&&t(16,tn=!C||I),i.$$.dirty[4]&1&&t(40,Mi=_n&&vi(A,"m")),i.$$.dirty[0]&131088|i.$$.dirty[3]&1610612736&&vn(In(),Zt,Ge,qe),i.$$.dirty[0]&65536|i.$$.dirty[3]&268435456&&Kn(tn,v),i.$$.dirty[3]&201326592&&h&&Pr(h,m,Ft),i.$$.dirty[3]&100663296&&_o(Fn,m,c),i.$$.dirty[0]&131072|i.$$.dirty[3]&16777216&&Tl(tt,u,Ge.playButton)},Ei=j(Xe.state.playPrevChapterDisabledTooltip),[J,he,Ce,Ae,qe,Te,Ye,nt,at,ct,me,lt,xe,Pe,ft,ge,tn,Ge,C,P,x,V,Z,Q,q,Ui,Ji,Ai,zi,$i,ki,ni,rt,Jt,hi,gn,Wi,bn,en,ci,Mi,Ki,r,s,a,l,o,g,W,te,z,pe,se,X,re,oe,Ze,Fe,Ie,Ut,jt,Ht,zt,St,Lt,de,et,kt,ri,Bt,Nt,si,Wt,li,Ti,Fi,_i,yi,wi,Ot,xi,Ft,Ii,Pi,Bi,Le,tt,qt,Gt,It,Zi,xt,ii,mn,pn,ai,Hi,Xi,Ni,hn,ui,On,nn,on,rn,gi,xn,yn,st,Qe,De,je,dt,bt,Di,oi,n,u,c,m,h,v,S,y,A,I,U,ae,ue,H,be,wn,ji,sn,kn,Gi,ln,Hn,io,no,fi,oo,ro,jn,so,lo,Gn,Pn,En,go,Yn,bo,bi,Qn,Zn]}var Mc=class extends O{constructor(e){super(),F(this,e,x5,F5,D,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:7,logoHidden:108,logoTargetUrl:8,showAutoplayNext:9,showNextPrevButtons:10,nextButtonActive:109,prevButtonActive:110,isOneVideoPlaylist:11,customFullscreenSupported:111,endScreenShown:12,toggleFullscreen:13,seekToInteractive:14,playPrevChapter:15,onDisabledPlayPrevChapterClick:112,onDisabledSeekToInteractiveClick:113},E5,[-1,-1,-1,-1,-1,-1])}},zp=Mc;function Kp(i){let e,t,n,o,r=[q5,H5],l=[];function a(s,u){return s[23]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=Je()},m(s,u){l[e].m(s,u),k(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ce(),p(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){p(t),o=!1},d(s){s&&w(n),l[e].d(s)}}}function H5(i){let e,t,n,o;function r(s){i[27](s)}function l(s){i[28](s)}let a={bottomHidden:i[2],bottomNoSmooth:i[3],showControls:i[4],isAds:i[5],canRewindLive:i[6],logoClickable:i[7],logoHidden:i[8],logoTargetUrl:i[9],showNextPrevButtons:i[10],nextButtonActive:i[12],prevButtonActive:i[13],customFullscreenSupported:i[15],toggleFullscreen:i[17],seekToInteractive:i[18],playPrevChapter:i[19]};return i[0]!==void 0&&(a.playerControlsWrapperRef=i[0]),i[1]!==void 0&&(a.playerControlsRef=i[1]),e=new up({props:a}),ye.push(()=>We(e,"playerControlsWrapperRef",r)),ye.push(()=>We(e,"playerControlsRef",l)),{c(){R(e.$$.fragment)},m(s,u){M(e,s,u),o=!0},p(s,u){let c={};u&4&&(c.bottomHidden=s[2]),u&8&&(c.bottomNoSmooth=s[3]),u&16&&(c.showControls=s[4]),u&32&&(c.isAds=s[5]),u&64&&(c.canRewindLive=s[6]),u&128&&(c.logoClickable=s[7]),u&256&&(c.logoHidden=s[8]),u&512&&(c.logoTargetUrl=s[9]),u&1024&&(c.showNextPrevButtons=s[10]),u&4096&&(c.nextButtonActive=s[12]),u&8192&&(c.prevButtonActive=s[13]),u&32768&&(c.customFullscreenSupported=s[15]),u&131072&&(c.toggleFullscreen=s[17]),u&262144&&(c.seekToInteractive=s[18]),u&524288&&(c.playPrevChapter=s[19]),!t&&u&1&&(t=!0,c.playerControlsWrapperRef=s[0],ze(()=>t=!1)),!n&&u&2&&(n=!0,c.playerControlsRef=s[1],ze(()=>n=!1)),e.$set(c)},i(s){o||(d(e.$$.fragment,s),o=!0)},o(s){p(e.$$.fragment,s),o=!1},d(s){L(e,s)}}}function q5(i){let e,t,n,o;function r(s){i[25](s)}function l(s){i[26](s)}let a={bottomHidden:i[2],bottomNoSmooth:i[3],showControls:i[4],isAds:i[5],canRewindLive:i[6],logoClickable:i[7],logoHidden:i[8],logoTargetUrl:i[9],showAutoplayNext:i[11],showNextPrevButtons:i[10],nextButtonActive:i[12],prevButtonActive:i[13],isOneVideoPlaylist:i[14],customFullscreenSupported:i[15],endScreenShown:i[16],toggleFullscreen:i[17],seekToInteractive:i[18],playPrevChapter:i[19],onDisabledPlayPrevChapterClick:i[20],onDisabledSeekToInteractiveClick:i[21]};return i[0]!==void 0&&(a.playerControlsWrapperRef=i[0]),i[1]!==void 0&&(a.playerControlsRef=i[1]),e=new zp({props:a}),ye.push(()=>We(e,"playerControlsWrapperRef",r)),ye.push(()=>We(e,"playerControlsRef",l)),{c(){R(e.$$.fragment)},m(s,u){M(e,s,u),o=!0},p(s,u){let c={};u&4&&(c.bottomHidden=s[2]),u&8&&(c.bottomNoSmooth=s[3]),u&16&&(c.showControls=s[4]),u&32&&(c.isAds=s[5]),u&64&&(c.canRewindLive=s[6]),u&128&&(c.logoClickable=s[7]),u&256&&(c.logoHidden=s[8]),u&512&&(c.logoTargetUrl=s[9]),u&2048&&(c.showAutoplayNext=s[11]),u&1024&&(c.showNextPrevButtons=s[10]),u&4096&&(c.nextButtonActive=s[12]),u&8192&&(c.prevButtonActive=s[13]),u&16384&&(c.isOneVideoPlaylist=s[14]),u&32768&&(c.customFullscreenSupported=s[15]),u&65536&&(c.endScreenShown=s[16]),u&131072&&(c.toggleFullscreen=s[17]),u&262144&&(c.seekToInteractive=s[18]),u&524288&&(c.playPrevChapter=s[19]),u&1048576&&(c.onDisabledPlayPrevChapterClick=s[20]),u&2097152&&(c.onDisabledSeekToInteractiveClick=s[21]),!t&&u&1&&(t=!0,c.playerControlsWrapperRef=s[0],ze(()=>t=!1)),!n&&u&2&&(n=!0,c.playerControlsRef=s[1],ze(()=>n=!1)),e.$set(c)},i(s){o||(d(e.$$.fragment,s),o=!0)},o(s){p(e.$$.fragment,s),o=!1},d(s){L(e,s)}}}function U5(i){let e,t,n=i[22]&&Kp(i);return{c(){n&&n.c(),e=Je()},m(o,r){n&&n.m(o,r),k(o,e,r),t=!0},p(o,[r]){o[22]?n?(n.p(o,r),r&4194304&&d(n,1)):(n=Kp(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),p(n,1,1,()=>{n=null}),fe())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function z5(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:r=!1}=e,{showControls:l}=e,{playerControlsWrapperRef:a=void 0}=e,{playerControlsRef:s=void 0}=e,{isAds:u=!1}=e,{canRewindLive:c}=e,{logoClickable:m}=e,{logoHidden:h}=e,{logoTargetUrl:v=""}=e,{showNextPrevButtons:g}=e,{showAutoplayNext:S=!1}=e,{nextButtonActive:y}=e,{prevButtonActive:A}=e,{isOneVideoPlaylist:I=!1}=e,{customFullscreenSupported:C=!0}=e,{endScreenShown:P=!1}=e,{toggleFullscreen:U}=e,{seekToInteractive:x}=e,{playPrevChapter:V}=e,{onDisabledPlayPrevChapterClick:Z=Wp}=e,{onDisabledSeekToInteractiveClick:ae=Wp}=e,ue=it().ui.isMobile;B(i,ue,z=>t(23,n=z));let q=!1;Ct(()=>{let z=setTimeout(()=>t(22,q=!0),0);return()=>clearTimeout(z)});function H(z){a=z,t(0,a)}function be(z){s=z,t(1,s)}function W(z){a=z,t(0,a)}function te(z){s=z,t(1,s)}return i.$$set=z=>{"bottomHidden"in z&&t(2,o=z.bottomHidden),"bottomNoSmooth"in z&&t(3,r=z.bottomNoSmooth),"showControls"in z&&t(4,l=z.showControls),"playerControlsWrapperRef"in z&&t(0,a=z.playerControlsWrapperRef),"playerControlsRef"in z&&t(1,s=z.playerControlsRef),"isAds"in z&&t(5,u=z.isAds),"canRewindLive"in z&&t(6,c=z.canRewindLive),"logoClickable"in z&&t(7,m=z.logoClickable),"logoHidden"in z&&t(8,h=z.logoHidden),"logoTargetUrl"in z&&t(9,v=z.logoTargetUrl),"showNextPrevButtons"in z&&t(10,g=z.showNextPrevButtons),"showAutoplayNext"in z&&t(11,S=z.showAutoplayNext),"nextButtonActive"in z&&t(12,y=z.nextButtonActive),"prevButtonActive"in z&&t(13,A=z.prevButtonActive),"isOneVideoPlaylist"in z&&t(14,I=z.isOneVideoPlaylist),"customFullscreenSupported"in z&&t(15,C=z.customFullscreenSupported),"endScreenShown"in z&&t(16,P=z.endScreenShown),"toggleFullscreen"in z&&t(17,U=z.toggleFullscreen),"seekToInteractive"in z&&t(18,x=z.seekToInteractive),"playPrevChapter"in z&&t(19,V=z.playPrevChapter),"onDisabledPlayPrevChapterClick"in z&&t(20,Z=z.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in z&&t(21,ae=z.onDisabledSeekToInteractiveClick)},[a,s,o,r,l,u,c,m,h,v,g,S,y,A,I,C,P,U,x,V,Z,ae,q,n,ue,H,be,W,te]}var Lc=class extends O{constructor(e){super(),F(this,e,z5,U5,D,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:7,logoHidden:8,logoTargetUrl:9,showNextPrevButtons:10,showAutoplayNext:11,nextButtonActive:12,prevButtonActive:13,isOneVideoPlaylist:14,customFullscreenSupported:15,endScreenShown:16,toggleFullscreen:17,seekToInteractive:18,playPrevChapter:19,onDisabledPlayPrevChapterClick:20,onDisabledSeekToInteractiveClick:21})}},Vl=Lc;function W5(i){let e,t,n,o,r,l,a,s,u,c,m,h,v,g,S=i[2].default,y=Ve(S,i,i[1],null),A=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],I={};for(let C=0;C<A.length;C+=1)I=le(I,A[C]);return{c(){e=N("svg"),y&&y.c(),t=N("g"),n=N("path"),o=N("path"),r=N("defs"),l=N("filter"),a=N("feFlood"),s=N("feColorMatrix"),u=N("feOffset"),c=N("feGaussianBlur"),m=N("feColorMatrix"),h=N("feBlend"),v=N("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(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"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(v,"in","SourceGraphic"),f(v,"in2","effect1_dropShadow_2260_100684"),f(v,"result","shape"),f(l,"id","a"),f(l,"width","43.996"),f(l,"height","49.5"),f(l,"x","2.5"),f(l,"y","0"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),ke(e,I)},m(C,P){k(C,e,P),y&&y.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,l),_(l,a),_(l,s),_(l,u),_(l,c),_(l,m),_(l,h),_(l,v),g=!0},p(C,[P]){y&&y.p&&(!g||P&2)&&Be(y,S,C,C[1],g?Re(S,C[1],P,null):Ne(C[1]),null),ke(e,I=He(A,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},P&1&&C[0]]))},i(C){g||(d(y,C),g=!0)},o(C){p(y,C),g=!1},d(C){C&&w(e),y&&y.d(C)}}}function K5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Vc=class extends O{constructor(e){super(),F(this,e,K5,W5,D,{})}},jp=Vc;function j5(i){let e,t;return e=new jp({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function G5(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 Rc=class extends O{constructor(e){super(),F(this,e,G5,j5,D,{reversed:1})}},Gp=Rc;function Y5(i){let e,t,n,o,r,l,a,s,u,c,m,h,v,g,S,y,A=i[2].default,I=Ve(A,i,i[1],null),C=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},i[0]],P={};for(let U=0;U<C.length;U+=1)P=le(P,C[U]);return{c(){e=N("svg"),I&&I.c(),t=N("g"),n=N("path"),o=N("path"),r=N("defs"),l=N("clipPath"),a=N("path"),s=N("filter"),u=N("feFlood"),c=N("feColorMatrix"),m=N("feOffset"),h=N("feGaussianBlur"),v=N("feColorMatrix"),g=N("feBlend"),S=N("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(l,"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(v,"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(s,"id","a"),f(s,"width","51"),f(s,"height","45"),f(s,"x","-1.5"),f(s,"y","1.5"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),ke(e,P)},m(U,x){k(U,e,x),I&&I.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,l),_(l,a),_(r,s),_(s,u),_(s,c),_(s,m),_(s,h),_(s,v),_(s,g),_(s,S),y=!0},p(U,[x]){I&&I.p&&(!y||x&2)&&Be(I,A,U,U[1],y?Re(A,U[1],x,null):Ne(U[1]),null),ke(e,P=He(C,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},x&1&&U[0]]))},i(U){y||(d(I,U),y=!0)},o(U){p(I,U),y=!1},d(U){U&&w(e),I&&I.d(U)}}}function Q5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Bc=class extends O{constructor(e){super(),F(this,e,Q5,Y5,D,{})}},Yp=Bc;function Z5(i){let e,t,n,o,r,l,a,s,u,c,m,h,v,g,S,y,A,I=i[2].default,C=Ve(I,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},i[0]],U={};for(let x=0;x<P.length;x+=1)U=le(U,P[x]);return{c(){e=N("svg"),C&&C.c(),t=N("g"),n=N("path"),o=N("path"),r=N("path"),l=N("defs"),a=N("clipPath"),s=N("path"),u=N("filter"),c=N("feFlood"),m=N("feColorMatrix"),h=N("feOffset"),v=N("feGaussianBlur"),g=N("feColorMatrix"),S=N("feBlend"),y=N("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(s,"fill","#fff"),f(s,"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(v,"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(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2260_104293"),f(y,"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"),ke(e,U)},m(x,V){k(x,e,V),C&&C.m(e,null),_(e,t),_(t,n),_(t,o),_(t,r),_(e,l),_(l,a),_(a,s),_(l,u),_(u,c),_(u,m),_(u,h),_(u,v),_(u,g),_(u,S),_(u,y),A=!0},p(x,[V]){C&&C.p&&(!A||V&2)&&Be(C,I,x,x[1],A?Re(I,x[1],V,null):Ne(x[1]),null),ke(e,U=He(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},V&1&&x[0]]))},i(x){A||(d(C,x),A=!0)},o(x){p(C,x),A=!1},d(x){x&&w(e),C&&C.d(x)}}}function X5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Nc=class extends O{constructor(e){super(),F(this,e,X5,Z5,D,{})}},Qp=Nc;function J5(i){let e,t;return e=new Yp({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function $5(i){let e,t;return e=new Qp({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function e6(i){let e,t,n,o,r=[$5,J5],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=Je()},m(s,u){l[e].m(s,u),k(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e!==c&&(ce(),p(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){p(t),o=!1},d(s){s&&w(n),l[e].d(s)}}}function t6(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Dc=class extends O{constructor(e){super(),F(this,e,t6,e6,D,{isOff:0})}},Oc=Dc;function i6(i){let e,t,n,o,r,l,a,s,u,c,m,h,v,g,S=i[2].default,y=Ve(S,i,i[1],null),A=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},i[0]],I={};for(let C=0;C<A.length;C+=1)I=le(I,A[C]);return{c(){e=N("svg"),y&&y.c(),t=N("g"),n=N("path"),o=N("path"),r=N("defs"),l=N("filter"),a=N("feFlood"),s=N("feColorMatrix"),u=N("feOffset"),c=N("feGaussianBlur"),m=N("feColorMatrix"),h=N("feBlend"),v=N("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(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"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(v,"in","SourceGraphic"),f(v,"in2","effect1_dropShadow_2260_106627"),f(v,"result","shape"),f(l,"id","a"),f(l,"width","40.098"),f(l,"height","27.785"),f(l,"x","3.402"),f(l,"y","10.105"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),ke(e,I)},m(C,P){k(C,e,P),y&&y.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,l),_(l,a),_(l,s),_(l,u),_(l,c),_(l,m),_(l,h),_(l,v),g=!0},p(C,[P]){y&&y.p&&(!g||P&2)&&Be(y,S,C,C[1],g?Re(S,C[1],P,null):Ne(C[1]),null),ke(e,I=He(A,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},P&1&&C[0]]))},i(C){g||(d(y,C),g=!0)},o(C){p(y,C),g=!1},d(C){C&&w(e),y&&y.d(C)}}}function n6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Fc=class extends O{constructor(e){super(),F(this,e,n6,i6,D,{})}},Zp=Fc;function o6(i){let e,t;return e=new Zp({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function r6(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 xc=class extends O{constructor(e){super(),F(this,e,r6,o6,D,{reversed:1})}},Xp=xc;function s6(i){let e,t,n,o,r,l,a,s,u,c,m,h,v,g,S=i[2].default,y=Ve(S,i,i[1],null),A=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},i[0]],I={};for(let C=0;C<A.length;C+=1)I=le(I,A[C]);return{c(){e=N("svg"),y&&y.c(),t=N("g"),n=N("path"),o=N("path"),r=N("defs"),l=N("filter"),a=N("feFlood"),s=N("feColorMatrix"),u=N("feOffset"),c=N("feGaussianBlur"),m=N("feColorMatrix"),h=N("feBlend"),v=N("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(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"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(v,"in","SourceGraphic"),f(v,"in2","effect1_dropShadow_2340_106922"),f(v,"result","shape"),f(l,"id","a"),f(l,"width","37"),f(l,"height","37"),f(l,"x","5.5"),f(l,"y","5.5"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),ke(e,I)},m(C,P){k(C,e,P),y&&y.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,l),_(l,a),_(l,s),_(l,u),_(l,c),_(l,m),_(l,h),_(l,v),g=!0},p(C,[P]){y&&y.p&&(!g||P&2)&&Be(y,S,C,C[1],g?Re(S,C[1],P,null):Ne(C[1]),null),ke(e,I=He(A,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},P&1&&C[0]]))},i(C){g||(d(y,C),g=!0)},o(C){p(y,C),g=!1},d(C){C&&w(e),y&&y.d(C)}}}function l6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Hc=class extends O{constructor(e){super(),F(this,e,l6,s6,D,{})}},Jp=Hc;function a6(i){let e,t;return e=new Jp({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function u6(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 qc=class extends O{constructor(e){super(),F(this,e,u6,a6,D,{reversed:1})}},$p=qc;function c6(i){ve(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 e0(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,r,l,a,s,u=["RATE_DOWN","RATE_UP"].includes(i[4]),c,m=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),h,v,g,S,y,A=t&&t0(i),I=i[4]==="PAUSE"&&i0(i),C=i[4]==="PLAY"&&n0(i),P=i[4]==="REPLAY"&&o0(i),U=i[4]==="SUBTITLES_OFF"&&r0(i),x=i[4]==="SUBTITLES_ON"&&s0(i),V=u&&l0(i),Z=m&&a0(i),ae=i[4]==="MUTE"&&u0(i),Q=i[4]==="VOLUME"&&c0(i),ue=i[5]&&f0(i);return{c(){e=T("div"),A&&A.c(),n=G(),I&&I.c(),o=G(),C&&C.c(),r=G(),P&&P.c(),l=G(),U&&U.c(),a=G(),x&&x.c(),s=G(),V&&V.c(),c=G(),Z&&Z.c(),h=G(),ae&&ae.c(),v=G(),Q&&Q.c(),g=G(),ue&&ue.c(),S=Je(),f(e,"class","svelte-1ad3n06")},m(q,H){k(q,e,H),A&&A.m(e,null),_(e,n),I&&I.m(e,null),_(e,o),C&&C.m(e,null),_(e,r),P&&P.m(e,null),_(e,l),U&&U.m(e,null),_(e,a),x&&x.m(e,null),_(e,s),V&&V.m(e,null),_(e,c),Z&&Z.m(e,null),_(e,h),ae&&ae.m(e,null),_(e,v),Q&&Q.m(e,null),k(q,g,H),ue&&ue.m(q,H),k(q,S,H),y=!0},p(q,H){H&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(q[4])),t?A?(A.p(q,H),H&16&&d(A,1)):(A=t0(q),A.c(),d(A,1),A.m(e,n)):A&&(ce(),p(A,1,1,()=>{A=null}),fe()),q[4]==="PAUSE"?I?H&16&&d(I,1):(I=i0(q),I.c(),d(I,1),I.m(e,o)):I&&(ce(),p(I,1,1,()=>{I=null}),fe()),q[4]==="PLAY"?C?H&16&&d(C,1):(C=n0(q),C.c(),d(C,1),C.m(e,r)):C&&(ce(),p(C,1,1,()=>{C=null}),fe()),q[4]==="REPLAY"?P?H&16&&d(P,1):(P=o0(q),P.c(),d(P,1),P.m(e,l)):P&&(ce(),p(P,1,1,()=>{P=null}),fe()),q[4]==="SUBTITLES_OFF"?U?H&16&&d(U,1):(U=r0(q),U.c(),d(U,1),U.m(e,a)):U&&(ce(),p(U,1,1,()=>{U=null}),fe()),q[4]==="SUBTITLES_ON"?x?H&16&&d(x,1):(x=s0(q),x.c(),d(x,1),x.m(e,s)):x&&(ce(),p(x,1,1,()=>{x=null}),fe()),H&16&&(u=["RATE_DOWN","RATE_UP"].includes(q[4])),u?V?(V.p(q,H),H&16&&d(V,1)):(V=l0(q),V.c(),d(V,1),V.m(e,c)):V&&(ce(),p(V,1,1,()=>{V=null}),fe()),H&16&&(m=["EPISODE_PREV","EPISODE_NEXT"].includes(q[4])),m?Z?(Z.p(q,H),H&16&&d(Z,1)):(Z=a0(q),Z.c(),d(Z,1),Z.m(e,h)):Z&&(ce(),p(Z,1,1,()=>{Z=null}),fe()),q[4]==="MUTE"?ae?H&16&&d(ae,1):(ae=u0(q),ae.c(),d(ae,1),ae.m(e,v)):ae&&(ce(),p(ae,1,1,()=>{ae=null}),fe()),q[4]==="VOLUME"?Q?H&16&&d(Q,1):(Q=c0(q),Q.c(),d(Q,1),Q.m(e,null)):Q&&(ce(),p(Q,1,1,()=>{Q=null}),fe()),q[5]?ue?ue.p(q,H):(ue=f0(q),ue.c(),ue.m(S.parentNode,S)):ue&&(ue.d(1),ue=null)},i(q){y||(d(A),d(I),d(C),d(P),d(U),d(x),d(V),d(Z),d(ae),d(Q),y=!0)},o(q){p(A),p(I),p(C),p(P),p(U),p(x),p(V),p(Z),p(ae),p(Q),y=!1},d(q){q&&(w(e),w(g),w(S)),A&&A.d(),I&&I.d(),C&&C.d(),P&&P.d(),U&&U.d(),x&&x.d(),V&&V.d(),Z&&Z.d(),ae&&ae.d(),Q&&Q.d(),ue&&ue.d(q)}}}function t0(i){let e,t;return e=new Gp({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function i0(i){let e,t;return e=new Fr({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function n0(i){let e,t;return e=new Wo({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function o0(i){let e,t;return e=new Pl({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function r0(i){let e,t;return e=new Oc({props:{isOff:!0}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function s0(i){let e,t;return e=new Oc({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function l0(i){let e,t;return e=new Xp({props:{reversed:i[4]==="RATE_UP"}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function a0(i){let e,t;return e=new $p({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function u0(i){let e,t;return e=new ar({props:{volume:0}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function c0(i){let e,t;return e=new ar({props:{volume:1}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function f0(i){let e,t;return{c(){e=T("span"),t=Oe(i[5]),f(e,"class","hot-key-helpers-text svelte-1ad3n06")},m(n,o){k(n,e,o),_(e,t)},p(n,o){o&32&&Ke(t,n[5])},d(n){n&&w(e)}}}function f6(i){let e,t,n=!i[1]&&i[4]&&e0(i);return{c(){e=T("div"),n&&n.c(),f(e,"class","hot-key-helpers-container svelte-1ad3n06"),K(e,"hidden",i[1]),K(e,"hot-key-helpers-container--left",i[2]),K(e,"hot-key-helpers-container--right",i[3])},m(o,r){k(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=e0(o),n.c(),d(n,1),n.m(e,null)):n&&(ce(),p(n,1,1,()=>{n=null}),fe()),(!t||r&2)&&K(e,"hidden",o[1]),(!t||r&4)&&K(e,"hot-key-helpers-container--left",o[2]),(!t||r&8)&&K(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&w(e),n&&n.d()}}}function d6(i,e,t){let n,o=_e,r=()=>(o(),o=$t(l,h=>t(6,n=h)),l);i.$$.on_destroy.push(()=>o());let{data:l}=e;r();let a,s,u,c,m;return i.$$set=h=>{"data"in h&&r(t(0,l=h.data))},i.$$.update=()=>{i.$$.dirty&64&&(t(1,a=!n),t(2,s=(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))},[l,a,s,u,c,m,n]}var Uc=class extends O{constructor(e){super(),F(this,e,d6,f6,D,{data:0},c6)}},d0=Uc;function m6(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("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"),ke(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),_(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,s,s[1],n?Re(o,s[1],u,null):Ne(s[1]),null),ke(e,a=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){p(r,s),n=!1},d(s){s&&w(e),r&&r.d(s)}}}function p6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var zc=class extends O{constructor(e){super(),F(this,e,p6,m6,D,{})}},m0=zc;function _6(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("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"),ke(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),_(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,s,s[1],n?Re(o,s[1],u,null):Ne(s[1]),null),ke(e,a=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){p(r,s),n=!1},d(s){s&&w(e),r&&r.d(s)}}}function h6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Wc=class extends O{constructor(e){super(),F(this,e,h6,_6,D,{})}},p0=Wc;function g6(i){let e,t;return e=new p0({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function b6(i){let e,t;return e=new m0({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function v6(i){let e,t,n,o,r=[b6,g6],l=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=Je()},m(s,u){l[e].m(s,u),k(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ce(),p(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){p(t),o=!1},d(s){s&&w(n),l[e].d(s)}}}function y6(i,e,t){let n,{direction:o="left"}=e,r,l;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,l=["right","down"].includes(o))),i.$$.dirty&1&&t(2,n=l?"transform: rotate(180deg);":void 0)},[l,r,n,o]}var Kc=class extends O{constructor(e){super(),F(this,e,y6,v6,D,{direction:3})}},cr=Kc;function w6(i){ve(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 k6(i){let e,t,n,o,r,l,a,s,u,c,m,h,v,g,S,y,A,I,C;return r=new cr({props:{direction:"up"}}),s=new cr({props:{direction:"up"}}),h=new cr({props:{direction:"up"}}),S=new cr({props:{direction:"up"}}),{c(){e=T("div"),t=T("div"),n=T("div"),o=T("div"),R(r.$$.fragment),l=G(),a=T("div"),R(s.$$.fragment),u=G(),c=T("div"),m=T("div"),R(h.$$.fragment),v=G(),g=T("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",y=j("aria_label_spherical_control")),K(e,"m-shifted",i[0])},m(P,U){k(P,e,U),_(e,t),_(t,n),_(n,o),M(r,o,null),_(n,l),_(n,a),M(s,a,null),_(t,u),_(t,c),_(c,m),M(h,m,null),_(c,v),_(c,g),M(S,g,null),A=!0,I||(C=[Se(o,"mousedown",i[1]),Se(o,"mouseup",i[5]),Se(o,"mouseleave",i[5]),Se(a,"mousedown",i[3]),Se(a,"mouseup",i[5]),Se(a,"mouseleave",i[5]),Se(m,"mousedown",i[4]),Se(m,"mouseup",i[5]),Se(m,"mouseleave",i[5]),Se(g,"mousedown",i[2]),Se(g,"mouseup",i[5]),Se(g,"mouseleave",i[5]),Se(e,"keydown",i[6]),Se(e,"keyup",i[7])],I=!0)},p(P,[U]){(!A||U&1)&&K(e,"m-shifted",P[0])},i(P){A||(d(r.$$.fragment,P),d(s.$$.fragment,P),d(h.$$.fragment,P),d(S.$$.fragment,P),A=!0)},o(P){p(r.$$.fragment,P),p(s.$$.fragment,P),p(h.$$.fragment,P),p(S.$$.fragment,P),A=!1},d(P){P&&w(e),L(r),L(s),L(h),L(S),I=!1,ut(C)}}}function C6(i,e,t){let{isShifted:n=!1}=e,o=it(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),l=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},s=()=>{o.actions.internal.startCameraManualRotation(1,0)},u=()=>{o.actions.internal.startCameraManualRotation(-1,0)},c=()=>(o.actions.internal.stopCameraManualRotation(),null),m=v=>{if(r.has(v.code))switch(v.preventDefault(),v.stopPropagation(),v.code){case"ArrowUp":l();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},h=v=>{r.has(v.code)&&(v.preventDefault(),v.stopPropagation(),c())};return i.$$set=v=>{"isShifted"in v&&t(0,n=v.isShifted)},[n,l,a,s,u,c,m,h]}var jc=class extends O{constructor(e){super(),F(this,e,C6,k6,D,{isShifted:0},w6)}},Rl=jc;import{ValueSubject as h0,Subscription as S6,filterChanged as T6,filter as I6}from"@vkontakte/videoplayer-shared/es2018";var _0=(i=1e3)=>{let e=null,t=()=>{e&&(clearTimeout(e),e=null)};return{add:n=>{t(),e=setTimeout(n,i)},clear:t}};var Bl=class{constructor(){this.flickeringTimeout=_0(1e3);this.subscriptions=new S6;this.isAuto=!1;this.isLive=!1;this.captions$=new h0([]);this.captionsPrepared$=new h0([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(I6(()=>this.isEnabled()),T6()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let t=[],n=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";n&&t.push([{value:String(e[0].value),timeAppeared:null}]),t.push(e.reduce((o,{type:r,value:l},a)=>(n&&!a||(r==="timestamp"?o.push({timeAppeared:Number(l),value:""}):o.length===0?o.push({value:String(l)}):o[o.length-1].value=String(l)),o),[])),this.captionsPrepared$.next(t)}};function P6(i){ve(i,"svelte-c2x749",".subtitles-container.svelte-c2x749.svelte-c2x749{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.svelte-c2x749.svelte-c2x749{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.svelte-c2x749.svelte-c2x749{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.svelte-c2x749.svelte-c2x749{bottom:8%}.subtitles-container.auto.svelte-c2x749 .subtitles-caption.svelte-c2x749{left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin)}.caption.svelte-c2x749.svelte-c2x749{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.svelte-c2x749 .caption.svelte-c2x749{width:100%}.caption-line.svelte-c2x749.svelte-c2x749{display:block;text-align:center}.subtitles-container.auto.svelte-c2x749 .caption-line.svelte-c2x749{text-align:left}.caption-segment.svelte-c2x749.svelte-c2x749{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function g0(i,e,t){let n=i.slice();return n[22]=e[t].value,n}function b0(i,e,t){let n=i.slice();return n[19]=e[t],n}function v0(i,e,t){let n=i.slice();return n[22]=e[t].value,n[23]=e[t].timeAppeared,n}function y0(i){let e,t;function n(l,a){var s;return l[4]&&l[9]?M6:l[4]&&((s=l[7])!=null&&s.length)?A6:E6}let o=n(i,-1),r=o(i);return{c(){e=T("div"),t=T("span"),r.c(),f(t,"class","caption svelte-c2x749"),f(e,"class","subtitles-caption svelte-c2x749"),pi(e,"--subtitles-caption-margin",i[8]+"%"),K(e,"mobile",i[3])},m(l,a){k(l,e,a),_(e,t),r.m(t,null)},p(l,a){o===(o=n(l,a))&&r?r.p(l,a):(r.d(1),r=o(l),r&&(r.c(),r.m(t,null))),a&256&&pi(e,"--subtitles-caption-margin",l[8]+"%"),a&8&&K(e,"mobile",l[3])},d(l){l&&w(e),r.d()}}}function E6(i){let e,t=wt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=w0(g0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=Je()},m(o,r){for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(o,r);k(o,e,r)},p(o,r){if(r&66){t=wt(o[1]);let l;for(l=0;l<t.length;l+=1){let a=g0(o,t,l);n[l]?n[l].p(a,r):(n[l]=w0(a),n[l].c(),n[l].m(e.parentNode,e))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&w(e),di(n,o)}}}function A6(i){let e,t=wt(i[7]),n=[];for(let o=0;o<t.length;o+=1)n[o]=S0(b0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=Je()},m(o,r){for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(o,r);k(o,e,r)},p(o,r){if(r&196){t=wt(o[7]);let l;for(l=0;l<t.length;l+=1){let a=b0(o,t,l);n[l]?n[l].p(a,r):(n[l]=S0(a),n[l].c(),n[l].m(e.parentNode,e))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&w(e),di(n,o)}}}function M6(i){let e,t,n=j("subtitles_auto_caption")+"",o;return{c(){e=T("span"),t=T("span"),o=Oe(n),f(t,"class","caption-segment svelte-c2x749"),pi(t,"font-size",i[6]+"px"),f(e,"class","caption-line svelte-c2x749")},m(r,l){k(r,e,l),_(e,t),_(t,o)},p(r,l){l&64&&pi(t,"font-size",r[6]+"px")},d(r){r&&w(e)}}}function w0(i){let e,t,n=i[22]+"",o,r;return{c(){e=T("span"),t=T("span"),o=Oe(n),r=G(),f(t,"class","caption-segment svelte-c2x749"),pi(t,"font-size",i[6]+"px"),f(e,"class","caption-line svelte-c2x749")},m(l,a){k(l,e,a),_(e,t),_(t,o),_(e,r)},p(l,a){a&2&&n!==(n=l[22]+"")&&Ke(o,n),a&64&&pi(t,"font-size",l[6]+"px")},d(l){l&&w(e)}}}function k0(i){let e=i[22]+"",t;return{c(){t=Oe(e)},m(n,o){k(n,t,o)},p(n,o){o&128&&e!==(e=n[22]+"")&&Ke(t,e)},d(n){n&&w(t)}}}function C0(i){let e,t=(!i[23]||i[23]<=i[2])&&k0(i);return{c(){t&&t.c(),e=Je()},m(n,o){t&&t.m(n,o),k(n,e,o)},p(n,o){!n[23]||n[23]<=n[2]?t?t.p(n,o):(t=k0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&w(e),t&&t.d(n)}}}function S0(i){let e,t,n,o=wt(i[19]),r=[];for(let l=0;l<o.length;l+=1)r[l]=C0(v0(i,o,l));return{c(){e=T("span"),t=T("span");for(let l=0;l<r.length;l+=1)r[l].c();n=G(),f(t,"class","caption-segment svelte-c2x749"),pi(t,"font-size",i[6]+"px"),f(e,"class","caption-line svelte-c2x749")},m(l,a){k(l,e,a),_(e,t);for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(t,null);_(e,n)},p(l,a){if(a&132){o=wt(l[19]);let s;for(s=0;s<o.length;s+=1){let u=v0(l,o,s);r[s]?r[s].p(u,a):(r[s]=C0(u),r[s].c(),r[s].m(t,null))}for(;s<r.length;s+=1)r[s].d(1);r.length=o.length}a&64&&pi(t,"font-size",l[6]+"px")},d(l){l&&w(e),di(r,l)}}}function L6(i){var o;let e,t=!!(i[1].length||(o=i[7])!=null&&o.length),n=t&&y0(i);return{c(){e=T("div"),n&&n.c(),f(e,"class","subtitles-container svelte-c2x749"),K(e,"shifted",i[0]),K(e,"auto",i[4]&&!i[5]&&!i[9])},m(r,l){k(r,e,l),n&&n.m(e,null)},p(r,[l]){var a;l&130&&(t=!!(r[1].length||(a=r[7])!=null&&a.length)),t?n?n.p(r,l):(n=y0(r),n.c(),n.m(e,null)):n&&(n.d(1),n=null),l&1&&K(e,"shifted",r[0]),l&560&&K(e,"auto",r[4]&&!r[5]&&!r[9])},i:_e,o:_e,d(r){r&&w(e),n&&n.d()}}}function V6(i,e,t){let n,o,r,l,a,s,{shifted:u}=e,{captions:c}=e,{position:m}=e,{playerSize:h}=e,{isMobile:v=!1}=e,g=it(),S=Mt(),y=g.state.currentSubtitle$;B(i,y,x=>t(16,a=x));let A=g.state.isAutoSubtitleCaptionVisible$;B(i,A,x=>t(9,s=x));let I=g.state.isLive$;B(i,I,x=>t(15,l=x));let C,P=null,U;return Ct(()=>{t(14,P=new Bl().subscribe());let x=P.captionsPrepared$.subscribe(V=>{t(7,U=V)});return()=>{P==null||P.destroy(),x.unsubscribe()}}),Ct(()=>{if(n){let x=window.setTimeout(()=>{A.set(!1)},S.autoSubtitlesTimeout);return()=>{window.clearTimeout(x)}}else A.set(!1)}),i.$$set=x=>{"shifted"in x&&t(0,u=x.shifted),"captions"in x&&t(1,c=x.captions),"position"in x&&t(2,m=x.position),"playerSize"in x&&t(13,h=x.playerSize),"isMobile"in x&&t(3,v=x.isMobile)},i.$$.update=()=>{if(i.$$.dirty&65536&&t(4,n=!!a.isAuto),i.$$.dirty&32768&&t(5,o=!!l),i.$$.dirty&8192){let x=h.width*.02;t(6,C=x<=S.minSubtitlesFontSize?S.minSubtitlesFontSize:x)}i.$$.dirty&16434&&(P==null||P.setIsAuto(n),P==null||P.setIsLive(o),P==null||P.setCaptions(c)),i.$$.dirty&8192&&t(8,r=h.width<400?10:h.width<550?14:24)},[u,c,m,v,n,o,C,U,r,s,y,A,I,h,P,l,a]}var Gc=class extends O{constructor(e){super(),F(this,e,V6,L6,D,{shifted:0,captions:1,position:2,playerSize:13,isMobile:3},P6)}},Nl=Gc;function R6(i){ve(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 T0(i){let e,t,n;return{c(){e=T("div"),t=Oe("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Oe(i[1]),f(e,"class","text svelte-raurnb")},m(o,r){k(o,e,r),_(e,t),_(e,n)},p(o,r){r&2&&Ke(n,o[1])},d(o){o&&w(e)}}}function B6(i){let e,t,n,o,r,l,a=i[1]&&T0(i);return{c(){e=T("div"),t=T("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=G(),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]||""}')`),K(e,"bgCover",i[2].features.previewNoEmptySpace)},m(s,u){k(s,e,u),_(e,t),_(e,n),a&&a.m(e,null),r||(l=Se(e,"click",i[3]),r=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=T0(s),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('${s[0]||""}')`)&&f(e,"style",o)},i:_e,o:_e,d(s){s&&w(e),a&&a.d(),r=!1,l()}}}function N6(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e,r=Mt();function l(a){Bn.call(this,i,a)}return i.$$set=a=>{"thumbUrl"in a&&t(0,n=a.thumbUrl),"chromecastDeviceName"in a&&t(1,o=a.chromecastDeviceName)},[n,o,r,l]}var Yc=class extends O{constructor(e){super(),F(this,e,N6,B6,D,{thumbUrl:0,chromecastDeviceName:1},R6)}},Dl=Yc;function D6(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("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"),ke(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),_(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,s,s[1],n?Re(o,s[1],u,null):Ne(s[1]),null),ke(e,a=He(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){p(r,s),n=!1},d(s){s&&w(e),r&&r.d(s)}}}function O6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Qc=class extends O{constructor(e){super(),F(this,e,O6,D6,D,{})}},I0=Qc;function F6(i){ve(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 x6(i){let e,t,n;return t=new I0({}),{c(){e=T("div"),R(t.$$.fragment),f(e,"class","container svelte-13zpvm8")},m(o,r){k(o,e,r),M(t,e,null),n=!0},p:_e,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),L(t)}}}var Zc=class extends O{constructor(e){super(),F(this,e,null,x6,D,{},F6)}},Ol=Zc;function H6(i){ve(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 q6(i){let e,t,n,o,r,l,a,s,u,c;return r=new Wo({}),{c(){e=T("div"),t=T("div"),n=T("div"),o=G(),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",l=j("tooltip_play")),f(e,"class","container svelte-1xnh9dd"),f(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),K(e,"hidden",i[1]),K(e,"bgCover",i[4].features.previewNoEmptySpace)},m(m,h){k(m,e,h),_(e,t),_(t,n),_(t,o),M(r,t,null),s=!0,u||(c=[Se(t,"keydown",i[3]),Se(e,"click",vt(function(){Qt(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(m,[h]){i=m,(!s||h&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&f(e,"style",a),(!s||h&2)&&K(e,"hidden",i[1])},i(m){s||(d(r.$$.fragment,m),s=!0)},o(m){p(r.$$.fragment,m),s=!1},d(m){m&&w(e),L(r),u=!1,ut(c)}}}function U6(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,l=it(),a=Mt(),s=l.ui.startedByKeyboard$,u=c=>{let m=c.code;["Enter","Space"].includes(m)&&(c.stopPropagation(),c.preventDefault(),s.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 Xc=class extends O{constructor(e){super(),F(this,e,U6,q6,D,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},H6)}get handlePressKey(){return this.$$.ctx[3]}},Fl=Xc;function z6(i){ve(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 z6(i){let e,t;return{c(){e=I("div"),t=Oe(i[0]),f(e,"class","title svelte-1bcvcf2"),K(e,"hidden",i[1])},m(n,o){w(n,e,o),_(e,t)},p(n,[o]){o&1&&We(t,n[0]),o&2&&K(e,"hidden",n[1])},i:_e,o:_e,d(n){n&&y(e)}}}function W6(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 Xc=class extends O{constructor(e){super(),F(this,e,W6,z6,N,{title:0,isHidden:1},U6)}},I0=Xc;function K6(i){ye(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 P0(i){let e,t,n,o,r,s,a;return{c(){e=I("div"),t=I("span"),n=Oe(i[0]),o=G(),r=I("span"),r.textContent=`${j("waiting_live_day_value")}`,s=G(),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&&We(n,l[0])},d(l){l&&(y(e),y(s),y(a))}}}function E0(i){let e,t,n,o,r,s,a;return{c(){e=I("div"),t=I("span"),n=Oe(i[1]),o=G(),r=I("span"),r.textContent=`${j("waiting_live_hour_value")}`,s=G(),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&&We(n,l[1])},d(l){l&&(y(e),y(s),y(a))}}}function A0(i){let e,t,n,o,r,s,a;return{c(){e=I("div"),t=I("span"),n=Oe(i[2]),o=G(),r=I("span"),r.textContent=`${j("waiting_live_minute_value")}`,s=G(),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&&We(n,l[2])},d(l){l&&(y(e),y(s),y(a))}}}function M0(i){let e,t,n,o,r;return{c(){e=I("div"),t=I("span"),n=Oe(i[3]),o=G(),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&&We(n,s[3])},d(s){s&&y(e)}}}function j6(i){let e,t,n,o,r=i[0]&&P0(i),s=i[1]&&E0(i),a=i[2]&&A0(i),l=i[3]&&M0(i);return{c(){e=I("div"),r&&r.c(),t=G(),s&&s.c(),n=G(),a&&a.c(),o=G(),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=P0(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?s?s.p(u,c):(s=E0(u),s.c(),s.m(e,n)):s&&(s.d(1),s=null),u[2]?a?a.p(u,c):(a=A0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?l?l.p(u,c):(l=M0(u),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i:_e,o:_e,d(u){u&&y(e),r&&r.d(),s&&s.d(),a&&a.d(),l&&l.d()}}}function G6(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,s,a,l,u,c=v=>String(v).padStart(2,"0"),m=v=>{let g=Math.floor(v/86400);g&&(v-=g*86400,t(0,r=c(g)));let T=Math.floor(v/3600);t(1,s=c(T));let C=Math.floor(v/60)%60;t(2,a=c(C));let A=v%60;t(3,l=c(A))},h=()=>{let v=Math.floor(Date.now()/1e3),g=n-v;m(g),g>=1?u=requestAnimationFrame(h):o()};return Ct(()=>{u=requestAnimationFrame(h)}),Vn(()=>{cancelAnimationFrame(u)}),i.$$set=v=>{"startTime"in v&&t(4,n=v.startTime),"onTimerOver"in v&&t(5,o=v.onTimerOver)},[r,s,a,l,n,o]}var Jc=class extends O{constructor(e){super(),F(this,e,G6,j6,N,{startTime:4,onTimerOver:5},K6)}},L0=Jc;function Y6(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=le(c,u[m]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),n=B("path"),o=B("path"),r=B("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"),fi(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"),fi(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"),fi(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"),fi(r,"opacity",".986"),Ce(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),Ce(e,c=xe(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 Q6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var $c=class extends O{constructor(e){super(),F(this,e,Q6,Y6,N,{})}},V0=$c;function Z6(i){ye(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 X6(i){let e,t,n,o,r;return o=new L0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=I("div"),t=I("span"),t.textContent=`${j("waiting_live_timer_title")}`,n=G(),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 J6(i){let e,t,n,o,r,s;return n=new V0({}),{c(){e=I("div"),t=I("div"),R(n.$$.fragment),o=G(),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:_e,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 $6(i){let e,t,n,o,r,s=[J6,X6],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):(ue(),p(a[m],1,1,()=>{a[m]=null}),ce(),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 e8(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 ef=class extends O{constructor(e){super(),F(this,e,e8,$6,N,{thumbUrl:0,startTime:1},Z6)}},xl=ef;function t8(i){ye(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 i8(i){let e,t,n,o,r,s,a,l;return n=new Mr({props:{style:"position: static; transform: translate(0, 0)"}}),{c(){e=I("div"),t=I("div"),R(n.$$.fragment),o=G(),r=I("p"),s=Oe(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)&&We(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 n8(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 tf=class extends O{constructor(e){super(),F(this,e,n8,i8,N,{thumbUrl:0,kind:2},t8)}},Hr=tf;var Hl=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),ql=(i,e)=>{var s;if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=(s=vl(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=Hl(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=Hl(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=Hl(i,a);return j("audio_stream_display_language_index",{language:o,index:l})}}let r=Hl(i,e);return j("audio_stream_display_unknown",{index:r})};function o8(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=le(a,s[l]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),f(t,"fill","#fff"),f(t,"d","M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"),Ce(e,a)},m(l,u){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),Ce(e,a=xe(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 r8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var nf=class extends O{constructor(e){super(),F(this,e,r8,o8,N,{})}},R0=nf;function s8(i){ye(i,"svelte-124aexk",".select-icon.svelte-124aexk{margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px}")}function B0(i){let e,t,n;return t=new R0({}),{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 l8(i){var o;let e,t=((o=i[1].label)!=null?o:i[1].value)+"",n;return{c(){e=I("div"),n=Oe(t),f(e,"class","menu-item-value"),K(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)+"")&&We(n,t),s&1&&K(e,"submenu-value-mobile",r[0])},i:_e,o:_e,d(r){r&&y(e)}}}function a8(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=le(c,o[h]);return u!==void 0&&u&2&&(c=le(c,xe(o,[Ho((m=l[1].valueComponentParams)!=null?m:{})]))),{props:c}}return r&&(e=xt(r,s(i))),{c(){e&&R(e.$$.fragment),t=Xe()},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){ue();let m=e;p(m.$$.fragment,1,0,()=>{V(m,1)}),ce()}r?(e=xt(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?xe(o,[Ho((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 u8(i){let e,t,n,o,r,s,a,l,u,c=i[1].selected&&B0(i),m=[a8,l8],h=[];function v(g,T){return g[1].valueComponent?0:1}return n=v(i,-1),o=h[n]=m[n](i),{c(){var g,T,C;e=I("li"),c&&c.c(),t=G(),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=(C=(T=i[1].ariaLabel)!=null?T:i[1].label)!=null?C:i[1].value.toString()),K(e,"mobile",i[0])},m(g,T){w(g,e,T),c&&c.m(e,null),_(e,t),h[n].m(e,null),a=!0,l||(u=[Te(e,"click",vt(i[4])),Te(e,"keydown",i[5])],l=!0)},p(g,[T]){var A,S,k;g[1].selected?c?T&2&&d(c,1):(c=B0(g),c.c(),d(c,1),c.m(e,t)):c&&(ue(),p(c,1,1,()=>{c=null}),ce());let C=n;n=v(g,T),n===C?h[n].p(g,T):(ue(),p(h[C],1,1,()=>{h[C]=null}),ce(),o=h[n],o?o.p(g,T):(o=h[n]=m[n](g),o.c()),d(o,1),o.m(e,null)),(!a||T&2&&r!==(r=(A=g[1].dataValue)!=null?A:g[1].value))&&f(e,"data-value",r),(!a||T&2&&s!==(s=(k=(S=g[1].ariaLabel)!=null?S:g[1].label)!=null?k:g[1].value.toString()))&&f(e,"aria-label",s),(!a||T&1)&&K(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,ct(u)}}}function c8(i,e,t){let{isMobile:n=!1}=e,{item:o}=e,{selectItem:r}=e,s=(u,c)=>{Er(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 of=class extends O{constructor(e){super(),F(this,e,c8,u8,N,{isMobile:0,item:1,selectItem:2},s8)}},N0=of;function f8(i){let e,t,n=i[2].label+"",o,r,s,a,l;return{c(){var u;e=I("li"),t=I("div"),o=Oe(n),f(t,"class","menu-item-value"),K(t,"submenu-value-mobile",i[1]),f(e,"class","item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",r=(u=i[2].ariaLabel)!=null?u:i[2].label),f(e,"aria-haspopup","true"),f(e,"data-testid",s=i[2].id),K(e,"mobile",i[1])},m(u,c){w(u,e,c),_(e,t),_(t,o),i[6](e),a||(l=[Te(e,"click",vt(function(){Qt(i[3])&&i[3].apply(this,arguments)})),Te(e,"keydown",function(){Qt(i[4])&&i[4].apply(this,arguments)})],a=!0)},p(u,[c]){var m;i=u,c&4&&n!==(n=i[2].label+"")&&We(o,n),c&2&&K(t,"submenu-value-mobile",i[1]),c&4&&r!==(r=(m=i[2].ariaLabel)!=null?m:i[2].label)&&f(e,"aria-label",r),c&4&&s!==(s=i[2].id)&&f(e,"data-testid",s),c&2&&K(e,"mobile",i[1])},i:_e,o:_e,d(u){u&&y(e),i[6](null),a=!1,ct(l)}}}function d8(i,e,t){let n,o,{isMobile:r=!1}=e,{item:s}=e,{openSubMenuList:a}=e,{refMenuItems:l}=e;function u(c){we[c?"unshift":"push"](()=>{l[s.id]=c,t(0,l)})}return i.$$set=c=>{"isMobile"in c&&t(1,r=c.isMobile),"item"in c&&t(2,s=c.item),"openSubMenuList"in c&&t(5,a=c.openSubMenuList),"refMenuItems"in c&&t(0,l=c.refMenuItems)},i.$$.update=()=>{i.$$.dirty&36&&t(3,n=()=>a(s.subMenuId)),i.$$.dirty&12&&t(4,o=c=>Ks(c,n,s.getSubItemForFocus))},[l,r,s,n,o,a,u]}var rf=class extends O{constructor(e){super(),F(this,e,d8,f8,N,{isMobile:1,item:2,openSubMenuList:5,refMenuItems:0})}},D0=rf;var oo={"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 _8(i){ye(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 O0(i,e,t){let n=i.slice();return n[25]=e[t],n}function h8(i){let e,t;return e=new D0({props:{isMobile:i[2],item:i[25],openSubMenuList:i[6],refMenuItems:i[9]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.isMobile=n[2]),o&128&&(r.item=n[25]),o&64&&(r.openSubMenuList=n[6]),o&512&&(r.refMenuItems=n[9]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function g8(i){let e,t;return e=new N0({props:{item:i[25],isMobile:i[2],selectItem:i[25].selectItem}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&128&&(r.item=n[25]),o&4&&(r.isMobile=n[2]),o&128&&(r.selectItem=n[25].selectItem),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function F0(i){let e,t,n,o,r=[g8,h8],s=[];function a(l,u){return l[25].type==="SELECT_VALUE"?0:l[25].type==="OPEN_SUB_MENU"?1:-1}return~(e=a(i,-1))&&(t=s[e]=r[e](i)),{c(){t&&t.c(),n=Xe()},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&&(ue(),p(s[c],1,1,()=>{s[c]=null}),ce()),~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 b8(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g;o=new dr({props:{direction:"left"}});let T=wt(i[7]),C=[];for(let S=0;S<T.length;S+=1)C[S]=F0(O0(i,T,S));let A=S=>p(C[S],1,1,()=>{C[S]=null});return{c(){var S;e=I("div"),t=I("ul"),n=I("li"),R(o.$$.fragment),r=G(),s=I("div"),a=Oe(i[5]),l=G();for(let k=0;k<C.length;k+=1)C[k].c();f(n,"class","item header back svelte-1mrc4z3"),f(n,"role","menuitem"),f(n,"tabindex","0"),f(n,"data-testid","return-to-settings-menu"),f(n,"aria-label",i[4]),K(n,"mobile",i[2]),f(t,"class","items"),f(t,"role","menu"),f(t,"style",u=i[15]((S=i[10])==null?void 0:S.clientHeight)),K(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`),K(e,"desktop",!i[2]),K(e,"mobile",i[2])},m(S,k){w(S,e,k),_(e,t),_(t,n),L(o,n,null),_(n,r),_(n,s),_(s,a),i[20](n),_(t,l);for(let P=0;P<C.length;P+=1)C[P]&&C[P].m(t,null);i[21](t),h=!0,v||(g=[Te(n,"click",vt(function(){Qt(i[3])&&i[3].apply(this,arguments)})),Te(n,"keydown",i[14]),Te(t,"keydown",i[13])],v=!0)},p(S,[k]){var P;if(i=S,(!h||k&32)&&We(a,i[5]),(!h||k&16)&&f(n,"aria-label",i[4]),(!h||k&4)&&K(n,"mobile",i[2]),k&708){T=wt(i[7]);let H;for(H=0;H<T.length;H+=1){let x=O0(i,T,H);C[H]?(C[H].p(x,k),d(C[H],1)):(C[H]=F0(x),C[H].c(),d(C[H],1),C[H].m(t,null))}for(ue(),H=T.length;H<C.length;H+=1)A(H);ce()}(!h||k&1024&&u!==(u=i[15]((P=i[10])==null?void 0:P.clientHeight)))&&f(t,"style",u),(!h||k&4)&&K(t,"mobile",i[2]),(!h||k&2&&c!==(c=`sub-menu-${i[1]}`))&&f(e,"data-testid",c),(!h||k&256&&m!==(m=`min-width: ${i[8]}px`))&&f(e,"style",m),(!h||k&4)&&K(e,"desktop",!i[2]),(!h||k&4)&&K(e,"mobile",i[2])},i(S){if(!h){d(o.$$.fragment,S);for(let k=0;k<T.length;k+=1)d(C[k]);h=!0}},o(S){p(o.$$.fragment,S),C=C.filter(Boolean);for(let k=0;k<C.length;k+=1)p(C[k]);h=!1},d(S){S&&y(e),V(o),i[20](null),ui(C,S),i[21](null),v=!1,ct(g)}}}function v8(i,e,t){let n,o,{id:r}=e,{parentItemId:s}=e,{isMobile:a=!1}=e,{playerControlsHeight:l=0}=e,{returnFromSubMenu:u}=e,{ariaLabelReturnFromSubMenu:c=j("aria_label_submenu_back")}=e,{title:m}=e,{listRef:h}=e,{closeSettingsMenu:v}=e,{openSubMenuList:g}=e,{itemIdReturnCase:T}=e,{items:C}=e,{minWidth:A}=e,{refMenuItems:S}=e,k=it(),P=k.ui.isFullscreen;D(i,P,W=>t(23,o=W));let H=k.ui.playerSize;D(i,H,W=>t(22,n=W));let x,M=W=>{a1(W,u,{itemIdReturnCase:T,id:s},v)},Z=W=>{ns(W)&&(jn(W),u(),T.set(s))},ae=(W=0)=>a&&o?`max-height: ${Math.round(n.height*.6)}px`:a?"":`max-height: ${n.height-32-W-l}px; overflow: auto;`;function Q(W){we[W?"unshift":"push"](()=>{x=W,t(10,x)})}function ee(W){we[W?"unshift":"push"](()=>{h=W,t(0,h)})}return i.$$set=W=>{"id"in W&&t(1,r=W.id),"parentItemId"in W&&t(16,s=W.parentItemId),"isMobile"in W&&t(2,a=W.isMobile),"playerControlsHeight"in W&&t(17,l=W.playerControlsHeight),"returnFromSubMenu"in W&&t(3,u=W.returnFromSubMenu),"ariaLabelReturnFromSubMenu"in W&&t(4,c=W.ariaLabelReturnFromSubMenu),"title"in W&&t(5,m=W.title),"listRef"in W&&t(0,h=W.listRef),"closeSettingsMenu"in W&&t(18,v=W.closeSettingsMenu),"openSubMenuList"in W&&t(6,g=W.openSubMenuList),"itemIdReturnCase"in W&&t(19,T=W.itemIdReturnCase),"items"in W&&t(7,C=W.items),"minWidth"in W&&t(8,A=W.minWidth),"refMenuItems"in W&&t(9,S=W.refMenuItems)},[h,r,a,u,c,m,g,C,A,S,x,P,H,M,Z,ae,s,l,v,T,Q,ee]}var sf=class extends O{constructor(e){super(),F(this,e,v8,b8,N,{id:1,parentItemId:16,isMobile:2,playerControlsHeight:17,returnFromSubMenu:3,ariaLabelReturnFromSubMenu:4,title:5,listRef:0,closeSettingsMenu:18,openSubMenuList:6,itemIdReturnCase:19,items:7,minWidth:8,refMenuItems:9},_8)}},x0=sf;import{noop as y8}from"@vkontakte/videoplayer-shared/es2018";function w8(i){ye(i,"svelte-1ikfjte",".value.svelte-1ikfjte{position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis}")}function k8(i){let e,t,n;var o=i[8];function r(s,a){return{}}return o&&(e=xt(o,r(i))),{c(){e&&R(e.$$.fragment),t=Xe()},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){ue();let l=e;p(l.$$.fragment,1,0,()=>{V(l,1)}),ce()}o?(e=xt(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 C8(i){let e,t;return e=new xr({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 S8(i){let e,t;return{c(){e=I("div"),t=Oe(i[6]),f(e,"class","value svelte-1ikfjte")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&64&&We(t,n[6])},i:_e,o:_e,d(n){n&&y(e)}}}function T8(i){let e,t,n;var o=i[7];function r(s,a){return{}}return o&&(e=xt(o,r(i))),{c(){e&&R(e.$$.fragment),t=Xe()},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){ue();let l=e;p(l.$$.fragment,1,0,()=>{V(l,1)}),ce()}o?(e=xt(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 I8(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g=[C8,k8],T=[];function C(P,H){return typeof P[8]=="string"?0:1}n=C(i,-1),o=T[n]=g[n](i);let A=[T8,S8],S=[];function k(P,H){return P[7]?0:1}return u=k(i,-1),c=S[u]=A[u](i),{c(){e=I("li"),t=I("div"),o.c(),r=G(),s=I("div"),a=Oe(i[4]),l=G(),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]),K(e,"mobile",i[2])},m(P,H){w(P,e,H),_(e,t),T[n].m(t,null),_(e,r),_(e,s),_(s,a),_(e,l),S[u].m(e,null),i[11](e),m=!0,h||(v=[Te(e,"click",vt(function(){Qt(i[3])&&i[3].apply(this,arguments)})),Te(e,"keydown",i[9])],h=!0)},p(P,[H]){i=P;let x=n;n=C(i,H),n===x?T[n].p(i,H):(ue(),p(T[x],1,1,()=>{T[x]=null}),ce(),o=T[n],o?o.p(i,H):(o=T[n]=g[n](i),o.c()),d(o,1),o.m(t,null)),(!m||H&16)&&We(a,i[4]);let M=u;u=k(i,H),u===M?S[u].p(i,H):(ue(),p(S[M],1,1,()=>{S[M]=null}),ce(),c=S[u],c?c.p(i,H):(c=S[u]=A[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)&&K(e,"mobile",i[2])},i(P){m||(d(o),d(c),m=!0)},o(P){p(o),p(c),m=!1},d(P){P&&y(e),T[n].d(),S[u].d(),i[11](null),h=!1,ct(v)}}}function P8(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:r=y8}=e,{getSubItemForFocus:s}=e,{label:a}=e,{ariaLabel:l}=e,{value:u}=e,{valueComponent:c=void 0}=e,{ref:m}=e,{icon:h}=e,v=T=>Ks(T,r,s);function g(T){we[T?"unshift":"push"](()=>{m=T,t(0,m)})}return i.$$set=T=>{"id"in T&&t(1,n=T.id),"isMobile"in T&&t(2,o=T.isMobile),"onClick"in T&&t(3,r=T.onClick),"getSubItemForFocus"in T&&t(10,s=T.getSubItemForFocus),"label"in T&&t(4,a=T.label),"ariaLabel"in T&&t(5,l=T.ariaLabel),"value"in T&&t(6,u=T.value),"valueComponent"in T&&t(7,c=T.valueComponent),"ref"in T&&t(0,m=T.ref),"icon"in T&&t(8,h=T.icon)},[m,n,o,r,a,l,u,c,h,v,s,g]}var af=class extends O{constructor(e){super(),F(this,e,P8,I8,N,{id:1,isMobile:2,onClick:3,getSubItemForFocus:10,label:4,ariaLabel:5,value:6,valueComponent:7,ref:0,icon:8},w8)}},H0=af;function E8(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=le(a,s[l]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18"),f(t,"clip-rule","evenodd"),Ce(e,a)},m(l,u){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),Ce(e,a=xe(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 A8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var uf=class extends O{constructor(e){super(),F(this,e,A8,E8,N,{})}},q0=uf;function M8(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=le(a,s[l]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z"),f(t,"clip-rule","evenodd"),Ce(e,a)},m(l,u){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),Ce(e,a=xe(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 L8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var cf=class extends O{constructor(e){super(),F(this,e,L8,M8,N,{})}},U0=cf;function V8(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=le(u,l[c]);return{c(){e=B("svg"),a&&a.c(),t=B("g"),n=B("path"),o=B("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"fill-rule","nonzero"),f(o,"d","M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),Ce(e,u)},m(c,m){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),Ce(e,u=xe(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 R8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var ff=class extends O{constructor(e){super(),F(this,e,R8,V8,N,{})}},z0=ff;function B8(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=le(a,s[l]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),f(t,"fill","#fff"),f(t,"d","M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"),Ce(e,a)},m(l,u){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),Ce(e,a=xe(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 N8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var df=class extends O{constructor(e){super(),F(this,e,N8,B8,N,{})}},W0=df;function D8(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"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=le(a,s[l]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492"),f(t,"clip-rule","evenodd"),Ce(e,a)},m(l,u){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),Ce(e,a=xe(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 O8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var mf=class extends O{constructor(e){super(),F(this,e,O8,D8,N,{})}},pf=mf;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":"info-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=le(a,s[l]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),f(t,"fill","#fff"),f(t,"d","M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"),Ce(e,a)},m(l,u){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),Ce(e,a=xe(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 x8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var _f=class extends O{constructor(e){super(),F(this,e,x8,F8,N,{})}},K0=_f;function H8(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=le(a,s[l]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z"),f(t,"clip-rule","evenodd"),Ce(e,a)},m(l,u){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),Ce(e,a=xe(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 q8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var hf=class extends O{constructor(e){super(),F(this,e,q8,H8,N,{})}},j0=hf;import"@vkontakte/videoplayer-core/es2018";function U8(i){ye(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 G0(i){let e,t,n;var o=i[3];function r(s,a){return{}}return o&&(t=xt(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){ue();let l=t;p(l.$$.fragment,1,0,()=>{V(l,1)}),ce()}o?(t=xt(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 z8(i){let e,t,n,o,r,s=i[3]&&!i[1]&&G0(i);return{c(){e=I("div"),t=I("span"),n=Oe(i[0]),o=G(),s&&s.c(),f(t,"class","svelte-1a7qwh6"),f(e,"class","menu-item-value svelte-1a7qwh6"),K(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)&&We(n,a[0]),a[3]&&!a[1]?s?(s.p(a,l),l&10&&d(s,1)):(s=G0(a),s.c(),d(s,1),s.m(e,null)):s&&(ue(),p(s,1,1,()=>{s=null}),ce()),(!r||l&4)&&K(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 W8(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=ol(o))},[r,s,a,n,o]}var gf=class extends O{constructor(e){super(),F(this,e,W8,z8,N,{quality:4,label:0,isMobile:1,isSubCase:2},U8)}},Ul=gf;import{VideoQuality as K8}from"@vkontakte/videoplayer-core/es2018";var zl=(i,e,t)=>{if(!i)return"...";let n=e.find(r=>r.value===i),o=n?n.displayValue:i;return t?i===K8.INVARIANT?j("auto_quality_invariant"):j("auto_quality",{actual:o}):o};function j8(i){ye(i,"svelte-vk2gx4",".menu-item-value-wrapper.svelte-vk2gx4{right:-22px;position:relative}")}function G8(i){let e,t,n;return t=new Ul({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 Y8(i,e,t){let n,o,r,s,a=it(),l=a.state.currentQuality$;D(i,l,v=>t(0,r=v));let u=a.state.availableQualities$;D(i,u,v=>t(8,o=v));let c=a.state.isAutoQualityEnabled$;D(i,c,v=>t(7,n=v));let m=a.ui.isMobile;D(i,m,v=>t(2,s=v));let h;return i.$$.update=()=>{i.$$.dirty&385&&t(1,h=zl(r,o,n))},[r,h,s,l,u,c,m,n,o]}var bf=class extends O{constructor(e){super(),F(this,e,Y8,G8,N,{},j8)}},Y0=bf;import{noop as Q0}from"@vkontakte/videoplayer-shared/es2018";function Q8(i){let e,t,n;var o=i[4];function r(s,a){return{}}return o&&(e=xt(o,r(i))),{c(){e&&R(e.$$.fragment),t=Xe()},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){ue();let l=e;p(l.$$.fragment,1,0,()=>{V(l,1)}),ce()}o?(e=xt(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 Z8(i){let e;function t(r,s){return r[5]?J8:X8}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Xe()},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:_e,o:_e,d(r){r&&y(e),o.d(r)}}}function X8(i){let e,t,n,o;return{c(){e=I("img"),f(e,"class","icon"),To(e.src,t=i[4])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){w(r,e,s),n||(o=Te(e,"error",i[6]),n=!0)},p(r,s){s&16&&!To(e.src,t=r[4])&&f(e,"src",t)},d(r){r&&y(e),n=!1,o()}}}function J8(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:_e,d(t){t&&y(e)}}}function $8(i){let e,t,n,o,r,s,a,l,u,c,m,h=[Z8,Q8],v=[];function g(T,C){return typeof T[4]=="string"?0:1}return n=g(i,-1),o=v[n]=h[n](i),{c(){var T;e=I("li"),t=I("div"),o.c(),r=G(),s=I("div"),a=Oe(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=(T=i[3])!=null?T:i[2]),f(e,"data-testid",i[0]),K(e,"mobile",i[1])},m(T,C){w(T,e,C),_(e,t),v[n].m(t,null),_(e,r),_(e,s),_(s,a),u=!0,c||(m=[Te(e,"click",vt(i[7])),Te(e,"keydown",i[8])],c=!0)},p(T,[C]){var S;let A=n;n=g(T,C),n===A?v[n].p(T,C):(ue(),p(v[A],1,1,()=>{v[A]=null}),ce(),o=v[n],o?o.p(T,C):(o=v[n]=h[n](T),o.c()),d(o,1),o.m(t,null)),(!u||C&4)&&We(a,T[2]),(!u||C&12&&l!==(l=(S=T[3])!=null?S:T[2]))&&f(e,"aria-label",l),(!u||C&1)&&f(e,"data-testid",T[0]),(!u||C&2)&&K(e,"mobile",T[1])},i(T){u||(d(o),u=!0)},o(T){p(o),u=!1},d(T){T&&y(e),v[n].d(),c=!1,ct(m)}}}function ey(i,e,t){let n,{id:o}=e,{isMobile:r=!1}=e,{onClick:s=Q0}=e,{closeSettings:a=Q0}=e,{label:l}=e,{ariaLabel:u}=e,{icon:c}=e,m=()=>{t(5,n=!0)},h=()=>{s(),a()},v=g=>{Er(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,v,s,a]}var vf=class extends O{constructor(e){super(),F(this,e,ey,$8,N,{id:0,isMobile:1,onClick:9,closeSettings:10,label:2,ariaLabel:3,icon:4})}},Z0=vf;import{noop as oy}from"@vkontakte/videoplayer-shared/es2018";function ty(i){ye(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 iy(i){let e,t,n,o;return{c(){e=I("div"),t=I("div"),n=G(),o=I("div"),f(t,"class","toggle svelte-17wbjko"),K(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&&K(t,"on",r[0])},i:_e,o:_e,d(r){r&&y(e)}}}function ny(i,e,t){let{enabled:n=!1}=e;return i.$$set=o=>{"enabled"in o&&t(0,n=o.enabled)},[n]}var yf=class extends O{constructor(e){super(),F(this,e,ny,iy,N,{enabled:0},ty)}},X0=yf;function ry(i){let e,t,n;var o=i[4];function r(s,a){return{}}return o&&(e=xt(o,r(i))),{c(){e&&R(e.$$.fragment),t=Xe()},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){ue();let l=e;p(l.$$.fragment,1,0,()=>{V(l,1)}),ce()}o?(e=xt(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 sy(i){let e,t;return e=new xr({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 ly(i){let e,t,n,o,r,s,a,l,u,c,m=[sy,ry],h=[];function v(g,T){return typeof g[4]=="string"?0:1}return n=v(i,-1),o=h[n]=m[n](i),u=new X0({props:{enabled:i[5]}}),{c(){e=I("div"),t=I("div"),o.c(),r=G(),s=I("div"),a=Oe(i[2]),l=G(),R(u.$$.fragment),f(t,"class","icon-wrapper"),f(s,"class","label"),f(e,"class","switch-wrapper"),K(e,"mobile",i[1])},m(g,T){w(g,e,T),_(e,t),h[n].m(t,null),_(e,r),_(e,s),_(s,a),_(e,l),L(u,e,null),c=!0},p(g,T){let C=n;n=v(g,T),n===C?h[n].p(g,T):(ue(),p(h[C],1,1,()=>{h[C]=null}),ce(),o=h[n],o?o.p(g,T):(o=h[n]=m[n](g),o.c()),d(o,1),o.m(t,null)),(!c||T&4)&&We(a,g[2]);let A={};T&32&&(A.enabled=g[5]),u.$set(A),(!c||T&2)&&K(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 ay(i){let e,t,n,o,r,s;return t=new Vr({props:{content:i[6],isMobile:i[1],placement:"left",translateX:10,isFullWidthWrapper:!0,maxTooltipWidth:i[7],$$slots:{default:[ly]},$$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]),K(e,"mobile",i[1])},m(a,l){w(a,e,l),L(t,e,null),o=!0,r||(s=[Te(e,"click",vt(i[9])),Te(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)&&K(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,ct(s)}}}function uy(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:r=oy}=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=>{u1(g,u,T=>r(T))},v=()=>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,v,r]}var wf=class extends O{constructor(e){super(),F(this,e,uy,ay,N,{id:0,isMobile:1,onClick:10,label:2,ariaLabel:3,icon:4,enabled:5,tooltipText:6,maxTooltipWidth:7})}},J0=wf;import{isValidURL as cy}from"@vkontakte/videoplayer-shared/es2018";function fy(i){ye(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 e_(i,e,t){let n=i.slice();return n[95]=e[t],n[96]=e,n[97]=t,n}function t_(i,e,t){let n=i.slice();return n[95]=e[t],n[98]=e,n[99]=t,n}function i_(i){let e,t,n,o,r,s,a,l=i[6]&&n_(i),u=wt(i[4]),c=[];for(let h=0;h<u.length;h+=1)c[h]=o_(t_(i,u,h));let m=h=>p(c[h],1,1,()=>{c[h]=null});return{c(){e=I("div"),l&&l.c(),t=G(),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[35]()),K(n,"mobile",i[6]),f(e,"class","settings-menu menu svelte-1t2c6ej"),f(e,"data-testid","settings-menu"),K(e,"desktop",!i[6]),K(e,"mobile",i[6]),K(e,"hidden",!i[8])},m(h,v){w(h,e,v),l&&l.m(e,null),_(e,t),_(e,n);for(let g=0;g<c.length;g+=1)c[g]&&c[g].m(n,null);i[70](n),r=!0,s||(a=[Te(e,"keydown",i[37]),Te(e,"mouseenter",i[33]),Te(e,"mouseleave",i[34])],s=!0)},p(h,v){if(h[6]?l?l.p(h,v):(l=n_(h),l.c(),l.m(e,t)):l&&(l.d(1),l=null),v[0]&1073741908|v[1]&1){u=wt(h[4]);let g;for(g=0;g<u.length;g+=1){let T=t_(h,u,g);c[g]?(c[g].p(T,v),d(c[g],1)):(c[g]=o_(T),c[g].c(),d(c[g],1),c[g].m(n,null))}for(ue(),g=u.length;g<c.length;g+=1)m(g);ce()}(!r||v[0]&64)&&K(n,"mobile",h[6]),(!r||v[0]&64)&&K(e,"desktop",!h[6]),(!r||v[0]&64)&&K(e,"mobile",h[6]),(!r||v[0]&256)&&K(e,"hidden",!h[8])},i(h){if(!r){for(let v=0;v<u.length;v+=1)d(c[v]);r=!0}},o(h){c=c.filter(Boolean);for(let v=0;v<c.length;v+=1)p(c[v]);r=!1},d(h){h&&y(e),l&&l.d(),ui(c,h),i[70](null),s=!1,ct(a)}}}function n_(i){let e,t,n,o,r,s;return{c(){e=I("div"),t=I("div"),t.textContent=`${j("submenu_settings")}`,n=G(),o=I("div"),f(o,"class","close svelte-1t2c6ej"),f(e,"class","item header svelte-1t2c6ej"),K(e,"mobile",i[6])},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),r||(s=Te(o,"click",vt(i[31])),r=!0)},p(a,l){l[0]&64&&K(e,"mobile",a[6])},d(a){a&&y(e),r=!1,s()}}}function dy(i){let e,t;return e=new J0({props:{isMobile:i[6],id:i[95].id,onClick:i[95].onClick,icon:i[95].icon,label:i[95].label,ariaLabel:i[95].ariaLabel,enabled:i[95].enabled,tooltipText:i[95].tooltipText,maxTooltipWidth:i[95].maxTooltipWidth}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&64&&(r.isMobile=n[6]),o[0]&16&&(r.id=n[95].id),o[0]&16&&(r.onClick=n[95].onClick),o[0]&16&&(r.icon=n[95].icon),o[0]&16&&(r.label=n[95].label),o[0]&16&&(r.ariaLabel=n[95].ariaLabel),o[0]&16&&(r.enabled=n[95].enabled),o[0]&16&&(r.tooltipText=n[95].tooltipText),o[0]&16&&(r.maxTooltipWidth=n[95].maxTooltipWidth),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function my(i){let e,t;return e=new Z0({props:{isMobile:i[6],id:i[95].id,onClick:i[95].onClick,icon:i[95].icon,label:i[95].label,ariaLabel:i[95].ariaLabel,closeSettings:i[31]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&64&&(r.isMobile=n[6]),o[0]&16&&(r.id=n[95].id),o[0]&16&&(r.onClick=n[95].onClick),o[0]&16&&(r.icon=n[95].icon),o[0]&16&&(r.label=n[95].label),o[0]&16&&(r.ariaLabel=n[95].ariaLabel),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function py(i){let e,t,n;function o(){return i[68](i[95])}function r(a){i[69](a,i[95])}let s={isMobile:i[6],id:i[95].id,icon:i[95].icon,label:i[95].label,ariaLabel:i[95].ariaLabel,value:i[95].value,valueComponent:i[95].valueComponent,onClick:o,getSubItemForFocus:i[95].getSubItemForFocus};return i[2][i[95].id]!==void 0&&(s.ref=i[2][i[95].id]),e=new H0({props:s}),we.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]&64&&(u.isMobile=i[6]),l[0]&16&&(u.id=i[95].id),l[0]&16&&(u.icon=i[95].icon),l[0]&16&&(u.label=i[95].label),l[0]&16&&(u.ariaLabel=i[95].ariaLabel),l[0]&16&&(u.value=i[95].value),l[0]&16&&(u.valueComponent=i[95].valueComponent),l[0]&16&&(u.onClick=o),l[0]&16&&(u.getSubItemForFocus=i[95].getSubItemForFocus),!t&&l[0]&20&&(t=!0,u.ref=i[2][i[95].id],Ue(()=>t=!1)),e.$set(u)},i(a){n||(d(e.$$.fragment,a),n=!0)},o(a){p(e.$$.fragment,a),n=!1},d(a){V(e,a)}}}function o_(i){let e,t,n,o,r=[py,my,dy],s=[];function a(l,u){return l[95].type==="OPEN_SUB_MENU"?0:l[95].type==="CLICK"?1:l[95].type==="SWITCH"?2:-1}return~(e=a(i,[-1,-1,-1,-1]))&&(t=s[e]=r[e](i)),{c(){t&&t.c(),n=Xe()},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&&(ue(),p(s[c],1,1,()=>{s[c]=null}),ce()),~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 r_(i,e){var l,u;let t,n,o,r;function s(c){e[71](c,e[95])}let a={isMobile:e[6],playerControlsHeight:e[1],itemIdReturnCase:e[36],returnFromSubMenu:(l=e[95].returnFromSubMenu)!=null?l:e[32].bind(null,!1),id:e[95].id,parentItemId:e[95].parentItemId,title:e[95].title,closeSettingsMenu:e[95].closeSettingsMenu,openSubMenuList:e[30],items:e[95].items,minWidth:(u=e[95].minWidth)!=null?u:137,refMenuItems:e[2]};return e[3][e[95].id]!==void 0&&(a.listRef=e[3][e[95].id]),n=new x0({props:a}),we.push(()=>ze(n,"listRef",s)),{key:i,first:null,c(){t=Xe(),R(n.$$.fragment),this.first=t},m(c,m){w(c,t,m),L(n,c,m),r=!0},p(c,m){var v,g;e=c;let h={};m[0]&64&&(h.isMobile=e[6]),m[0]&2&&(h.playerControlsHeight=e[1]),m[0]&32&&(h.returnFromSubMenu=(v=e[95].returnFromSubMenu)!=null?v:e[32].bind(null,!1)),m[0]&32&&(h.id=e[95].id),m[0]&32&&(h.parentItemId=e[95].parentItemId),m[0]&32&&(h.title=e[95].title),m[0]&32&&(h.closeSettingsMenu=e[95].closeSettingsMenu),m[0]&32&&(h.items=e[95].items),m[0]&32&&(h.minWidth=(g=e[95].minWidth)!=null?g:137),m[0]&4&&(h.refMenuItems=e[2]),!o&&m[0]&40&&(o=!0,h.listRef=e[3][e[95].id],Ue(()=>o=!1)),n.$set(h)},i(c){r||(d(n.$$.fragment,c),r=!0)},o(c){p(n.$$.fragment,c),r=!1},d(c){c&&y(t),V(n,c)}}}function _y(i){let e,t,n=[],o=new Map,r,s=i[7]&&i_(i),a=wt(i[5]),l=u=>u[95].id;for(let u=0;u<a.length;u+=1){let c=e_(i,a,u),m=l(c);o.set(m,n[u]=r_(m,c))}return{c(){e=I("div"),s&&s.c(),t=G();for(let u=0;u<n.length;u+=1)n[u].c();f(e,"class","settings-menu-container svelte-1t2c6ej"),K(e,"hidden",!i[7]),K(e,"mobile",i[6])},m(u,c){w(u,e,c),s&&s.m(e,null),_(e,t);for(let m=0;m<n.length;m+=1)n[m]&&n[m].m(e,null);r=!0},p(u,c){u[7]?s?(s.p(u,c),c[0]&128&&d(s,1)):(s=i_(u),s.c(),d(s,1),s.m(e,t)):s&&(ue(),p(s,1,1,()=>{s=null}),ce()),c[0]&1073741934|c[1]&34&&(a=wt(u[5]),ue(),n=ed(n,c,l,1,u,a,o,e,$f,r_,null,e_),ce()),(!r||c[0]&128)&&K(e,"hidden",!u[7]),(!r||c[0]&64)&&K(e,"mobile",u[6])},i(u){if(!r){d(s);for(let c=0;c<a.length;c+=1)d(n[c]);r=!0}},o(u){p(s);for(let c=0;c<n.length;c+=1)p(n[c]);r=!1},d(u){u&&y(e),s&&s.d();for(let c=0;c<n.length;c+=1)n[c].d()}}}function hy(i,e,t){let n,o,r,s,a,l,u,c,m,h,v,g,T,C,A,S,k,P,H,x,M,Z,ae,Q,{ref:ee=void 0}=e,{supportLink:W}=e,{playerControlsHeight:q=0}=e,{returnFocus:ve}=e,z=it(),ie=Mt(),U=z.state.audioStream$;D(i,U,Me=>t(54,m=Me));let pe=z.state.availableAudioStreams$;D(i,pe,Me=>t(53,c=Me));let se=z.state.currentQuality$;D(i,se,Me=>t(62,k=Me));let X=z.state.availableQualities$;D(i,X,Me=>t(55,h=Me));let re=z.state.autoQualityLimitingAvailable$;D(i,re,Me=>t(66,M=Me));let oe=z.state.isAutoQualityEnabled$;D(i,oe,Me=>t(63,P=Me));let Ye=z.state.currentPlaybackRate$;D(i,Ye,Me=>t(60,A=Me));let Fe=z.state.availablePlaybackRates$;D(i,Fe,Me=>t(52,u=Me));let Pe=z.state.currentSubtitle$;D(i,Pe,Me=>t(59,C=Me));let Se=z.state.availableSubtitlesList$;D(i,Se,Me=>t(50,a=Me));let Ae=z.state.canDownload,He=z.state.hasMpegSources$;D(i,He,Me=>t(67,Z=Me));let J=z.ui.settingsMenu.visible$;D(i,J,Me=>t(7,Q=Me));let ge=z.ui.settingsMenu.openedByBtnKeyboard$;D(i,ge,Me=>t(73,r=Me));let Ie=z.ui.settingsMenu.ref$,Ge=z.ui.isMobile;D(i,Ge,Me=>t(6,s=Me));let nt=z.ui.mobileNotReportControlHidden$;D(i,nt,Me=>t(64,H=Me));let lt=z.state.canChangePlaybackSpeed$;D(i,lt,Me=>t(65,x=Me));let ut=z.state.trafficSavingEnabled$;D(i,ut,Me=>t(58,T=Me));let et=z.ui.playerSize;D(i,et,Me=>t(74,ae=Me));let me=z.ui.debugPanelVisible;D(i,me,Me=>t(57,g=Me));let tt=z.state.isInteractiveTime$,De=z.ui.additionalSettingsMenuItems$;D(i,De,Me=>t(56,v=Me));let st=z.actions.internal.downloadVideo,Qe=z.actions.internal.closeSettingsMenu,he=z.actions.internal.openSettingsSubMenu,Ke=z.actions.internal.closeSettingsSubMenu,ft=!0,be=Ne({});D(i,be,Me=>t(51,l=Me));let pt="",yt=!1;async function Ze(Me){t(8,ft=!1),t(40,pt=Me);let rt=Gt();rt[Me]=!0,be.set(rt),await mn(),he(Me,Ht[Me])}function It(){r||ve==null||ve(),Qe(),Nt(!0),yt=!1}function Rt(Me){z.actions.internal.setQuality(Me),It()}function Ft(Me){z.actions.internal.setAudioStream(Me),It()}function ti(Me){z.actions.internal.setTrafficSavingEnabled(Me)}function Bt(Me){z.actions.internal.setPlaybackRate(Me),It()}function Kt(Me){z.actions.internal.setSubtitle(Me),It()}function Gt(){let Me=l;return Object.keys(Me).forEach(rt=>{Me[rt]=!1}),Me}function Nt(Me=!1){t(8,ft=!0);let rt=Gt();be.set(rt),Ke(Ht[pt],Me),t(40,pt="")}function ot(){st()}function St(){cy(W)&&window.open(W,"_blank"),z.actions.internal.reportProblem(),z.actions.internal.pause()}function Lt(){Tr(z.actions.internal.getDebugTextData())}let fe=()=>{let Me=z.actions.internal.getTraceTextData(),rt=new Blob([...Me],{type:"application/json"}),Wt=window.URL.createObjectURL(rt);nr(Wt,"vk_player_trace_info","json")};function $e(){me.set(!g)}function kt(){yt=!0}function ii(){yt=!1}function Ut(){return s?`max-height: ${Math.round(ae.height*.6)}px`:`max-height: ${ae.height-32-q}px; overflow: auto;`}let Dt,ni,zt,di,Ti,Di,_i,vi=Ne();D(i,vi,Me=>t(61,S=Me));let yi={},Ht={},Ui=Me=>{Ws(Me,Qe)},qt=[],ei=[];Ct(()=>{let Me=tt.subscribe(rt=>{rt&&!s&&!yt&&!r&&It()});return()=>{Me()}});let Ii=Me=>Ze(Me.subMenuId);function Zt(Me,rt){i.$$.not_equal(yi[rt.id],Me)&&(yi[rt.id]=Me,t(2,yi))}function Pi(Me){we[Me?"unshift":"push"](()=>{ee=Me,t(0,ee)})}function Ei(Me,rt){i.$$.not_equal(Ht[rt.id],Me)&&(Ht[rt.id]=Me,t(3,Ht))}return i.$$set=Me=>{"ref"in Me&&t(0,ee=Me.ref),"supportLink"in Me&&t(38,W=Me.supportLink),"playerControlsHeight"in Me&&t(1,q=Me.playerControlsHeight),"returnFocus"in Me&&t(39,ve=Me.returnFocus)},i.$$.update=()=>{var Me;if(i.$$.dirty[0]&128|i.$$.dirty[1]&512&&!Q&&pt&&Nt(),i.$$.dirty[0]&1&&ee&&Ie.set(ee),i.$$.dirty[1]&16777216|i.$$.dirty[2]&3&&t(48,n=zl(k,h,P)),i.$$.dirty[2]&36&&t(41,Dt=Ae&&Z&&!H),i.$$.dirty[2]&20&&t(42,ni=ie.features.trafficSaving&&!H&&M),i.$$.dirty[1]&524288|i.$$.dirty[2]&4&&t(43,zt=a.length>0&&!H),i.$$.dirty[2]&12&&t(44,di=!!x&&!H),i.$$.dirty[1]&4194304|i.$$.dirty[2]&4&&t(45,Ti=ie.features.audioLanguages&&c.length>=2&&!H),i.$$.dirty[2]&4&&t(49,o=!H),i.$$.dirty[2]&3&&t(46,Di=P?j("auto_quality_option"):k),i.$$.dirty[1]&538968064&&t(47,_i=(Me=u.find(rt=>rt.value===A))==null?void 0:Me.displayValue),i.$$.dirty[0]&4|i.$$.dirty[1]&1073741824){let rt=S;rt&&(l1(yi,rt),vi.set(void 0))}i.$$.dirty[0]&88|i.$$.dirty[1]&1072692224&&(t(4,qt=[]),o&&qt.push({id:"quality-settings",weight:oo["quality-settings"],type:"OPEN_SUB_MENU",subMenuId:"quality-sub",getSubItemForFocus:()=>{let rt=h.findIndex(Wt=>Wt.selected);return Ht["quality-sub"].children[rt+1]},ariaLabel:j("aria_label_menu_quality",{actual:Di}),icon:rl,label:j("menu_quality"),value:n,valueComponent:Y0}),Ti&&qt.push({id:"audio-language-settings",weight:oo["audio-language-settings"],type:"OPEN_SUB_MENU",subMenuId:"audio-language-sub",getSubItemForFocus:()=>{let rt=c.findIndex(Wt=>Wt.id===(m==null?void 0:m.id));return Ht["audio-language-sub"].children[rt+1]},ariaLabel:j("aria_label_menu_audio_languages",{actual:ql(m,c)}),icon:W0,label:j("menu_audio_languages"),value:ql(m,c)}),di&&qt.push({id:"playback-rate-settings",weight:oo["playback-rate-settings"],type:"OPEN_SUB_MENU",subMenuId:"playback-rate-sub",getSubItemForFocus:()=>{let rt=u.findIndex(Wt=>Wt.selected);return Ht["playback-rate-sub"].children[rt+1]},ariaLabel:j("aria_label_menu_rate",{actual:_i}),icon:z0,label:j("menu_playback_rate"),value:`${A}x`}),zt&&qt.push({id:"subtitles-settings",weight:oo["subtitles-settings"],type:"OPEN_SUB_MENU",subMenuId:"subtitles-sub",getSubItemForFocus:()=>{let rt=a.findIndex(Wt=>Wt.selected);return Ht["subtitles-sub"].children[rt+1]},ariaLabel:j("aria_label_menu_subtitle",{actual:C.displayValue}),icon:sl,label:j("subtitles_caption"),value:C.displayValue}),ni&&qt.push({id:"traffic-saving-settings",weight:oo["traffic-saving-settings"],type:"SWITCH",onClick:ti,ariaLabel:T?j("aria_label_submenu_traffic_saving_off"):`${j("aria_label_submenu_traffic_saving_on")}. ${j("traffic_saving_helper_text")}`,icon:U0,label:j("menu_traffic_saving"),enabled:T,tooltipText:j("traffic_saving_helper_text"),maxTooltipWidth:175}),Dt&&qt.push({id:"download",weight:oo.download,type:"CLICK",onClick:ot,label:j("download_video_caption"),ariaLabel:j("aria_label_menu_download"),icon:q0}),ie.showSupport&&qt.push({id:"report",weight:oo.report,type:"CLICK",onClick:St,label:j("menu_report"),ariaLabel:`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`,icon:j0,isHiddenFor:["desktop"]}),qt.push({id:"copy-data",weight:oo["copy-data"],type:"CLICK",onClick:Lt,label:j("menu_copy_debug"),ariaLabel:j("menu_copy_debug"),icon:pf,isHiddenFor:["desktop"]}),ie.features.saveTraceInfoToFile&&qt.push({id:"save-trace-info",weight:oo["save-trace-info"],type:"CLICK",onClick:fe,label:j("menu_save_debug"),ariaLabel:j("menu_save_debug"),icon:pf,isHiddenFor:["desktop"]}),qt.push({id:"debug-info",weight:oo["debug-info"],type:"CLICK",onClick:$e,label:g?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"),ariaLabel:j("menu_debug_overlay"),icon:K0,isHiddenFor:["desktop"]}),t(4,qt=[...qt,...v.map(rt=>({...rt,isAdditional:!0}))].filter(rt=>{var Wt,wi,Et;return!((Wt=rt.isHiddenFor)!=null&&Wt.length)||!((wi=rt.isHiddenFor)!=null&&wi.includes("desktop"))&&!s||!((Et=rt.isHiddenFor)!=null&&Et.includes("mobile"))&&s}).sort(ar))),i.$$.dirty[0]&96|i.$$.dirty[1]&33030144&&(t(5,ei=[]),l["quality-sub"]&&ei.push({id:"quality-sub",parentItemId:"quality-settings",title:j("submenu_quality"),closeSettingsMenu:Qe,items:[...h.map(rt=>({type:"SELECT_VALUE",value:rt.value,valueComponent:Ul,valueComponentParams:{quality:rt.value,label:rt.displayValue,isMobile:s,isSubCase:!0},selectItem:Rt,selected:rt.selected,label:rt.displayValue}))]}),l["audio-language-sub"]&&ei.push({id:"audio-language-sub",parentItemId:"audio-language-settings",title:j("submenu_audio_languages"),closeSettingsMenu:Qe,items:c.map(rt=>({type:"SELECT_VALUE",value:rt,dataValue:rt.id,selectItem:Ft,selected:rt.id===(m==null?void 0:m.id),label:ql(rt,c)}))}),l["playback-rate-sub"]&&ei.push({id:"playback-rate-sub",parentItemId:"playback-rate-settings",title:j("submenu_playback_rate"),closeSettingsMenu:Qe,items:u.map(rt=>({type:"SELECT_VALUE",value:rt.value,selectItem:Bt,selected:rt.selected,label:rt.displayValue}))}),l["subtitles-sub"]&&ei.push({id:"subtitles-sub",parentItemId:"subtitles-settings",minWidth:164,title:j("subtitles_caption"),closeSettingsMenu:Qe,items:a.map(rt=>({type:"SELECT_VALUE",value:rt,selectItem:Kt,selected:rt.selected,label:rt.displayValue}))}))},[ee,q,yi,Ht,qt,ei,s,Q,ft,U,pe,se,X,re,oe,Ye,Fe,Pe,Se,He,J,ge,Ge,nt,lt,ut,et,me,De,be,Ze,It,Nt,kt,ii,Ut,vi,Ui,W,ve,pt,Dt,ni,zt,di,Ti,Di,_i,n,o,a,l,u,c,m,h,v,g,T,C,A,S,k,P,H,x,M,Z,Ii,Zt,Pi,Ei]}var kf=class extends O{constructor(e){super(),F(this,e,hy,_y,N,{ref:0,supportLink:38,playerControlsHeight:1,returnFocus:39},fy,[-1,-1,-1,-1])}},Wl=kf;var{window:gy}=Xr;function vy(i){ye(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 l_(i){var n;let e,t;return e=new xl({props:{thumbUrl:i[4],startTime:(n=i[5])==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]&16&&(s.thumbUrl=o[4]),r[0]&32&&(s.startTime=(a=o[5])==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 a_(i){let e,t;return e=new Hr({props:{kind:"recover",thumbUrl:i[4]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&16&&(r.thumbUrl=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function u_(i){let e,t;return e=new Hr({props:{kind:"record",thumbUrl:i[4]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&16&&(r.thumbUrl=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function c_(i){let e,t,n;return t=new qs({props:{adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12]}}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","ads-container svelte-13f9p53"),K(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]&512&&(s.adsSlotId=o[9]),r[0]&1024&&(s.adsParams=o[10]),r[0]&2048&&(s.adsPreviewParam=o[11]),r[0]&4096&&(s.duration=o[12]),t.$set(s),(!n||r[1]&64)&&K(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 f_(i){let e,t;return e=new N1({props:{title:i[18],thumb:i[19],clickCloseIcon:i[159]}}),{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]&536870912&&(r.clickCloseIcon=n[159]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function d_(i){let e,t;return e=new I0({props:{title:i[3],isHidden:!i[35]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.title=n[3]),o[1]&16&&(r.isHidden=!n[35]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function m_(i){let e,t;return e=new Rl({props:{isShifted:i[37]==="video"&&i[35]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&80&&(r.isShifted=n[37]==="video"&&n[35]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function p_(i){let e,t,n;return t=new Ls({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 __(i){let e,t;return e=new Dl({props:{thumbUrl:i[4],chromecastDeviceName:i[53]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&16&&(r.thumbUrl=n[4]),o[1]&4194304&&(r.chromecastDeviceName=n[53]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function h_(i){let e,t;return e=new Nl({props:{shifted:i[35],captions:i[55],position:i[56],playerSize:i[33]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&16&&(r.shifted=n[35]),o[1]&16777216&&(r.captions=n[55]),o[1]&33554432&&(r.position=n[56]),o[1]&4&&(r.playerSize=n[33]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function g_(i){let e,t,n,o,r;return t=new Ol({}),{c(){e=I("div"),R(t.$$.fragment)},m(s,a){w(s,e,a),L(t,e,null),n=!0,o||(r=[Te(e,"contextmenu",ci(i[108])),Te(e,"click",vt(i[119]))],o=!0)},p:_e,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,ct(r)}}}function b_(i){let e,t,n,o;function r(l){i[160](l)}function s(l){i[161](l)}let a={bottomHidden:i[37]==="thumb"||i[37]==="LiveWaitingStart"||i[37]==="LiveWaitingRecover"||i[37]==="LiveWaitingRecord",bottomNoSmooth:i[49],showControls:i[35],isAds:i[37]==="ads",canRewindLive:i[7]&&i[57]!==0,logoClickable:i[13],logoHidden:i[14],logoTargetUrl:i[15],showNextPrevButtons:i[23],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],customFullscreenSupported:S_,toggleFullscreen:i[106],seekToInteractive:i[24],playPrevChapter:i[25]};return i[40]!==void 0&&(a.playerControlsWrapperRef=i[40]),i[41]!==void 0&&(a.playerControlsRef=i[41]),e=new Vl({props:a}),we.push(()=>ze(e,"playerControlsWrapperRef",r)),we.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"),u[1]&262144&&(c.bottomNoSmooth=l[49]),u[1]&16&&(c.showControls=l[35]),u[1]&64&&(c.isAds=l[37]==="ads"),u[0]&128|u[1]&67108864&&(c.canRewindLive=l[7]&&l[57]!==0),u[0]&8192&&(c.logoClickable=l[13]),u[0]&16384&&(c.logoHidden=l[14]),u[0]&32768&&(c.logoTargetUrl=l[15]),u[0]&8388608&&(c.showNextPrevButtons=l[23]),u[0]&65536&&(c.nextButtonActive=l[16]),u[0]&131072&&(c.prevButtonActive=l[17]),u[0]&1048576&&(c.isOneVideoPlaylist=l[20]),u[0]&16777216&&(c.seekToInteractive=l[24]),u[0]&33554432&&(c.playPrevChapter=l[25]),!t&&u[1]&512&&(t=!0,c.playerControlsWrapperRef=l[40],Ue(()=>t=!1)),!n&&u[1]&1024&&(n=!0,c.playerControlsRef=l[41],Ue(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){V(e,l)}}}function v_(i){var a;let e,t,n,o;function r(l){i[163](l)}let s={supportLink:i[21],playerControlsHeight:(a=i[41])==null?void 0:a.clientHeight,returnFocus:i[162]};return i[27]!==void 0&&(s.ref=i[27]),t=new Wl({props:s}),we.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]&1024&&(c.playerControlsHeight=(m=l[41])==null?void 0:m.clientHeight),u[0]&2&&(c.returnFocus=l[162]),!n&&u[0]&134217728&&(n=!0,c.ref=l[27],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 y_(i){let e,t;return e=new Mr({}),{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 w_(i){let e,t;return e=new K1({}),{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 k_(i){let e,t;return e=new Zs({}),{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 C_(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,T,C,A,S,k,P,H,x,M,Z,ae,Q;e=new Fl({props:{hidden:i[37]!=="thumb"||i[36]||i[92]&&i[6],thumbUrl:i[4],startVideo:i[26]}});let ee=i[37]==="LiveWaitingStart"&&l_(i),W=i[37]==="LiveWaitingRecover"&&a_(i),q=i[37]==="LiveWaitingRecord"&&u_(i),ve=i[8]&&i[22]&&c_(i),z=i[30]&&i[18]&&i[19]&&f_(i),ie=i[44]&&d_(i),U=i[48]&&m_(i),pe=i[52]&&p_(i),se=i[38]&&__(i),X=i[54].value!=="off"&&h_(i),re=i[36]&&g_(i),oe=i[22]&&b_(i),Ye=!i[38]&&i[37]!=="ads"&&v_(i);C=new zs({props:{isLive:i[58],isHidden:!i[43],isPlaying:i[50],position:i[56],duration:i[59]}}),S=new f0({props:{data:i[103]}});function Fe(J){i[165](J)}let Pe={supportLink:i[21],returnFocus:i[164],visible:i[32],playerContainerRef:i[39],controlsContainerRef:i[40],position:i[60]};i[31]!==void 0&&(Pe.menuElementRef=i[31]),P=new g1({props:Pe}),we.push(()=>ze(P,"menuElementRef",Fe));let Se=i[42]&&y_(i),Ae=i[61]&&w_(i),He=i[62]&&k_(i);return{c(){R(e.$$.fragment),t=G(),ee&&ee.c(),n=G(),W&&W.c(),o=G(),q&&q.c(),r=G(),ve&&ve.c(),s=G(),z&&z.c(),a=G(),ie&&ie.c(),l=G(),U&&U.c(),u=G(),pe&&pe.c(),c=G(),se&&se.c(),m=G(),X&&X.c(),h=G(),re&&re.c(),v=G(),oe&&oe.c(),g=G(),Ye&&Ye.c(),T=G(),R(C.$$.fragment),A=G(),R(S.$$.fragment),k=G(),R(P.$$.fragment),x=G(),Se&&Se.c(),M=G(),Ae&&Ae.c(),Z=G(),He&&He.c(),ae=Xe()},m(J,ge){L(e,J,ge),w(J,t,ge),ee&&ee.m(J,ge),w(J,n,ge),W&&W.m(J,ge),w(J,o,ge),q&&q.m(J,ge),w(J,r,ge),ve&&ve.m(J,ge),w(J,s,ge),z&&z.m(J,ge),w(J,a,ge),ie&&ie.m(J,ge),w(J,l,ge),U&&U.m(J,ge),w(J,u,ge),pe&&pe.m(J,ge),w(J,c,ge),se&&se.m(J,ge),w(J,m,ge),X&&X.m(J,ge),w(J,h,ge),re&&re.m(J,ge),w(J,v,ge),oe&&oe.m(J,ge),w(J,g,ge),Ye&&Ye.m(J,ge),w(J,T,ge),L(C,J,ge),w(J,A,ge),L(S,J,ge),w(J,k,ge),L(P,J,ge),w(J,x,ge),Se&&Se.m(J,ge),w(J,M,ge),Ae&&Ae.m(J,ge),w(J,Z,ge),He&&He.m(J,ge),w(J,ae,ge),Q=!0},p(J,ge){let Ie={};ge[0]&64|ge[1]&96&&(Ie.hidden=J[37]!=="thumb"||J[36]||J[92]&&J[6]),ge[0]&16&&(Ie.thumbUrl=J[4]),ge[0]&67108864&&(Ie.startVideo=J[26]),e.$set(Ie),J[37]==="LiveWaitingStart"?ee?(ee.p(J,ge),ge[1]&64&&d(ee,1)):(ee=l_(J),ee.c(),d(ee,1),ee.m(n.parentNode,n)):ee&&(ue(),p(ee,1,1,()=>{ee=null}),ce()),J[37]==="LiveWaitingRecover"?W?(W.p(J,ge),ge[1]&64&&d(W,1)):(W=a_(J),W.c(),d(W,1),W.m(o.parentNode,o)):W&&(ue(),p(W,1,1,()=>{W=null}),ce()),J[37]==="LiveWaitingRecord"?q?(q.p(J,ge),ge[1]&64&&d(q,1)):(q=u_(J),q.c(),d(q,1),q.m(r.parentNode,r)):q&&(ue(),p(q,1,1,()=>{q=null}),ce()),J[8]&&J[22]?ve?(ve.p(J,ge),ge[0]&4194560&&d(ve,1)):(ve=c_(J),ve.c(),d(ve,1),ve.m(s.parentNode,s)):ve&&(ue(),p(ve,1,1,()=>{ve=null}),ce()),J[30]&&J[18]&&J[19]?z?(z.p(J,ge),ge[0]&1074528256&&d(z,1)):(z=f_(J),z.c(),d(z,1),z.m(a.parentNode,a)):z&&(ue(),p(z,1,1,()=>{z=null}),ce()),J[44]?ie?(ie.p(J,ge),ge[1]&8192&&d(ie,1)):(ie=d_(J),ie.c(),d(ie,1),ie.m(l.parentNode,l)):ie&&(ue(),p(ie,1,1,()=>{ie=null}),ce()),J[48]?U?(U.p(J,ge),ge[1]&131072&&d(U,1)):(U=m_(J),U.c(),d(U,1),U.m(u.parentNode,u)):U&&(ue(),p(U,1,1,()=>{U=null}),ce()),J[52]?pe?ge[1]&2097152&&d(pe,1):(pe=p_(J),pe.c(),d(pe,1),pe.m(c.parentNode,c)):pe&&(ue(),p(pe,1,1,()=>{pe=null}),ce()),J[38]?se?(se.p(J,ge),ge[1]&128&&d(se,1)):(se=__(J),se.c(),d(se,1),se.m(m.parentNode,m)):se&&(ue(),p(se,1,1,()=>{se=null}),ce()),J[54].value!=="off"?X?(X.p(J,ge),ge[1]&8388608&&d(X,1)):(X=h_(J),X.c(),d(X,1),X.m(h.parentNode,h)):X&&(ue(),p(X,1,1,()=>{X=null}),ce()),J[36]?re?(re.p(J,ge),ge[1]&32&&d(re,1)):(re=g_(J),re.c(),d(re,1),re.m(v.parentNode,v)):re&&(ue(),p(re,1,1,()=>{re=null}),ce()),J[22]?oe?(oe.p(J,ge),ge[0]&4194304&&d(oe,1)):(oe=b_(J),oe.c(),d(oe,1),oe.m(g.parentNode,g)):oe&&(ue(),p(oe,1,1,()=>{oe=null}),ce()),!J[38]&&J[37]!=="ads"?Ye?(Ye.p(J,ge),ge[1]&192&&d(Ye,1)):(Ye=v_(J),Ye.c(),d(Ye,1),Ye.m(T.parentNode,T)):Ye&&(ue(),p(Ye,1,1,()=>{Ye=null}),ce());let Ge={};ge[1]&134217728&&(Ge.isLive=J[58]),ge[1]&4096&&(Ge.isHidden=!J[43]),ge[1]&524288&&(Ge.isPlaying=J[50]),ge[1]&33554432&&(Ge.position=J[56]),ge[1]&268435456&&(Ge.duration=J[59]),C.$set(Ge);let nt={};ge[0]&2097152&&(nt.supportLink=J[21]),ge[0]&2&&(nt.returnFocus=J[164]),ge[1]&2&&(nt.visible=J[32]),ge[1]&256&&(nt.playerContainerRef=J[39]),ge[1]&512&&(nt.controlsContainerRef=J[40]),ge[1]&536870912&&(nt.position=J[60]),!H&&ge[1]&1&&(H=!0,nt.menuElementRef=J[31],Ue(()=>H=!1)),P.$set(nt),J[42]?Se?ge[1]&2048&&d(Se,1):(Se=y_(J),Se.c(),d(Se,1),Se.m(M.parentNode,M)):Se&&(ue(),p(Se,1,1,()=>{Se=null}),ce()),J[61]?Ae?ge[1]&1073741824&&d(Ae,1):(Ae=w_(J),Ae.c(),d(Ae,1),Ae.m(Z.parentNode,Z)):Ae&&(ue(),p(Ae,1,1,()=>{Ae=null}),ce()),J[62]?He?ge[2]&1&&d(He,1):(He=k_(J),He.c(),d(He,1),He.m(ae.parentNode,ae)):He&&(ue(),p(He,1,1,()=>{He=null}),ce())},i(J){Q||(d(e.$$.fragment,J),d(ee),d(W),d(q),d(ve),d(z),d(ie),d(U),d(pe),d(se),d(X),d(re),d(oe),d(Ye),d(C.$$.fragment,J),d(S.$$.fragment,J),d(P.$$.fragment,J),d(Se),d(Ae),d(He),Q=!0)},o(J){p(e.$$.fragment,J),p(ee),p(W),p(q),p(ve),p(z),p(ie),p(U),p(pe),p(se),p(X),p(re),p(oe),p(Ye),p(C.$$.fragment,J),p(S.$$.fragment,J),p(P.$$.fragment,J),p(Se),p(Ae),p(He),Q=!1},d(J){J&&(y(t),y(n),y(o),y(r),y(s),y(a),y(l),y(u),y(c),y(m),y(h),y(v),y(g),y(T),y(A),y(k),y(x),y(M),y(Z),y(ae)),V(e,J),ee&&ee.d(J),W&&W.d(J),q&&q.d(J),ve&&ve.d(J),z&&z.d(J),ie&&ie.d(J),U&&U.d(J),pe&&pe.d(J),se&&se.d(J),X&&X.d(J),re&&re.d(J),oe&&oe.d(J),Ye&&Ye.d(J),V(C,J),V(S,J),V(P,J),Se&&Se.d(J),Ae&&Ae.d(J),He&&He.d(J)}}}function yy(i){let e,t,n,o,r=i[51],s,a,l,u,c=C_(i);return{c(){e=I("div"),t=I("div"),o=G(),c.c(),s=Xe(),f(t,"class","video-container svelte-13f9p53"),f(t,"style",n=`transform: rotate(${i[34]}deg) scale(${i[46]})`),f(t,"data-testid","video-container"),f(t,"data-is-playing",i[50]),K(t,"fast-rotate",!i[2].isSmoothVideoRotate),f(e,"class","video-wrapper svelte-13f9p53"),K(e,"hidden",i[37]!=="video"),K(e,"nocursor",i[45])},m(m,h){w(m,e,h),_(e,t),i[158](t),w(m,o,h),c.m(m,h),w(m,s,h),a=!0,l||(u=[Te(e,"contextmenu",ci(i[108])),Te(e,"mousedown",ci(i[113])),Te(e,"mouseup",ci(i[114])),Te(e,"click",ci(i[116])),Te(e,"dblclick",ci(i[115]))],l=!0)},p(m,h){(!a||h[1]&32776&&n!==(n=`transform: rotate(${m[34]}deg) scale(${m[46]})`))&&f(t,"style",n),(!a||h[1]&524288)&&f(t,"data-is-playing",m[50]),(!a||h[0]&4)&&K(t,"fast-rotate",!m[2].isSmoothVideoRotate),(!a||h[1]&64)&&K(e,"hidden",m[37]!=="video"),(!a||h[1]&16384)&&K(e,"nocursor",m[45]),h[1]&1048576&&N(r,r=m[51])?(ue(),p(c,1,1,_e),ce(),c=C_(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[158](null),c.d(m),l=!1,ct(u)}}}function wy(i){let e,t,n,o,r,s,a,l={toggleFullscreen:i[106],hideContextMenu:i[107],showHotKeyHelpers:i[117],showKeyMap:i[118],isAds:i[37]==="ads",fakePlayButtonHandler:i[47]?i[105]:void 0,$$slots:{default:[yy]},$$scope:{ctx:i}};return t=new D1({props:l}),i[166](t),{c(){e=I("div"),R(t.$$.fragment),n=G(),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[167](o),i[168](e),r=!0,s||(a=[Te(gy,"blur",i[107]),Te(e,"mouseenter",i[109]),Te(e,"mouseleave",i[111]),Te(e,"mousemove",i[112]),Te(e,"click",i[120],!0),Te(e,"focusin",i[110],!0)],s=!0)},p(u,c){let m={};c[1]&64&&(m.isAds=u[37]==="ads"),c[1]&65536&&(m.fakePlayButtonHandler=u[47]?u[105]:void 0),c[0]&1879048191|c[1]&2147418111|c[2]&1|c[6]&1024&&(m.$$scope={dirty:c,ctx:u}),t.$set(m)},i(u){r||(d(t.$$.fragment,u),r=!0)},o(u){p(t.$$.fragment,u),r=!1},d(u){u&&y(e),i[166](null),V(t),i[167](null),i[168](null),s=!1,ct(a)}}}var S_=!0;function Cf(i){return i?i.offsetTop+Cf(i.offsetParent):0}function T_(i){return i?i.offsetLeft+T_(i.offsetParent):0}function ky(i,e,t){let n,o,r,s,a,l,u,c,m,h,v,g,T,C,A,S,k,P,H,x,M,Z,ae,Q,ee,W,q,ve,z,ie,U,pe,se,X,re,oe,Ye,Fe,Pe,Se,Ae,He,J,ge,{store:Ie}=e,{uiConfig:Ge}=e,{title:nt}=e,{thumbUrl:lt}=e,{videoContainer:ut}=e,{interactiveContainer:et}=e,{live:me}=e,{autoplay:tt}=e,{canRewindLive:De}=e,{showAds:st}=e,{adsSlotId:Qe=void 0}=e,{adsParams:he=void 0}=e,{adsPreviewParam:Ke=void 0}=e,{duration:ft=void 0}=e,{logoClickable:be}=e,{logoHidden:pt}=e,{logoTargetUrl:yt=""}=e,{nextButtonActive:Ze=!1}=e,{prevButtonActive:It=!1}=e,{endScreenVideoTitle:Rt=void 0}=e,{endScreenVideoThumb:Ft=void 0}=e,{isOneVideoPlaylist:ti=!1}=e,{supportLink:Bt}=e,{shadowRootContainer:Kt=void 0}=e,{outerContainerRef:Gt=void 0}=e,{playerStarted:Nt=!1}=e,{fullScreenTarget:ot=void 0}=e,{showMiniTimer:St=!1}=e,{showEndScreen:Lt}=e,{showNextPrevButtons:fe}=e,{keyboardControls:$e}=e,{seekToInteractive:kt}=e,{playPrevChapter:ii}=e,{firstStart:Ut}=e,Dt=Ie.getLogger().createComponentLog("Root component"),ni=Ie.interfaceLanguage$;D(i,ni,Y=>t(51,se=Y));let zt=Ie.state.playbackState$;D(i,zt,Y=>t(155,z=Y));let di=Ie.ads.playbackState;D(i,di,Y=>t(156,ie=Y));let Ti=Ie.state.positionWithScrubbing$;D(i,Ti,Y=>t(56,Fe=Y));let Di=Ie.state.duration$;D(i,Di,Y=>t(59,Ae=Y));let _i=Ie.playerPhase;D(i,_i,Y=>t(37,Q=Y));let vi=Ie.ui.isFullscreen;D(i,vi,Y=>t(145,T=Y));let yi=Ie.ui.controlsVisible;D(i,yi,Y=>t(35,H=Y));let Ht=Ie.ui.settingsMenu.visible$;D(i,Ht,Y=>t(143,u=Y));let Ui=Ie.ui.settingsMenu.openedByBtnKeyboard$;D(i,Ui,Y=>t(142,l=Y));let qt=Ie.ui.scrubbingInProgress;D(i,qt,Y=>t(147,k=Y));let ei=Ie.ui.contextMenu.visible$;D(i,ei,Y=>t(32,n=Y));let Ii=Ie.ui.debugPanelVisible;D(i,Ii,Y=>t(62,ge=Y));let Zt=Ie.state.isLoaderVisible;D(i,Zt,Y=>t(157,U=Y));let Pi=Ie.state.isEnded$;D(i,Pi,Y=>t(144,m=Y));let Ei=Ie.state.chromecastConnected$;D(i,Ei,Y=>t(38,q=Y));let Me=Ie.state.chromecastDeviceName$;D(i,Me,Y=>t(53,re=Y));let rt=Ie.ads.postrollPassed;D(i,rt,Y=>t(150,Z=Y));let Wt=Ie.state.isLive$;D(i,Wt,Y=>t(58,Se=Y));let wi=Ie.state.isPlaying$;D(i,wi,Y=>t(50,pe=Y));let Et=Ie.state.crashed$;D(i,Et,Y=>t(36,M=Y));let oi=Ie.webApi.annotationsApi,Ot=Ie.webApi.pictureInPictureApi,ki=Ie.state.currentSubtitle$;D(i,ki,Y=>t(54,oe=Y));let Cn=Ie.state.currentSubtitleCaptions$;D(i,Cn,Y=>t(55,Ye=Y));let zi=Ie.state.duration$;D(i,zi,Y=>t(57,Pe=Y));let pn=Ie.state.graphIsOpened$;D(i,pn,Y=>t(151,ae=Y));let mi=Ie.ui.playerSize;D(i,mi,Y=>t(33,v=Y));let Oi=Ie.ui.is3DVideo;D(i,Oi,Y=>t(48,h=Y));let Wi=Ie.ui.icon3DVideoVisible;D(i,Wi,Y=>t(52,X=Y));let tn=Ie.ui.rotateAlpha;D(i,tn,Y=>t(34,S=Y));let Fi=Ie.state.isInteractive,_n=Ie.state.isInteractiveTime$;D(i,_n,Y=>t(148,P=Y));let ri=Ie.state.isInteractiveExpectation$;D(i,ri,Y=>t(154,ve=Y));let On=Ie.state.hasInteractiveBranches,Ai=Ie.ui.touched;D(i,Ai,Y=>t(152,ee=Y));let nn=Ie.ui.modals.hotKeyMap.data;D(i,nn,Y=>t(175,c=Y));let on=Ie.ui.modals.hotKeyMap.show;D(i,on,Y=>t(61,J=Y));let rn=Ie.ui.overlayContainer$,Ki=Ie.ui.controls.interactiveTimeIndicator;D(i,Ki,Y=>t(176,g=Y));let ji=Ie.state.showInteractiveTimeIndicator,Mi=Ie.ui.contextMenu.position$;D(i,Mi,Y=>t(60,He=Y));let Ci=Ie.actions.internal.closeSettingsMenu,{fakeIsPlaying$:xi}=Bn();D(i,xi,Y=>t(146,A=Y));let si,pi,at,Li,jt,hi,Vi;nn.set(Gd());let sn,hn,Ri=Ne(!1);D(i,Ri,Y=>t(49,C=Y));let Gi,li=Ne(!1);D(i,li,Y=>t(153,W=Y));let je=Ne(),gn=Ne(!1);D(i,gn,Y=>t(149,x=Y));let ln=!1,Yi=!1,an=!1,Qi=!(tt&&!Ge.controls.showOnStartupAtAutoplay),Zi,Yn,Fn,gi=!1,xn,bn,Sn=!1,un,cn=!1,{toggle:vn}=xi,Hi=!1,Xi=null;Ot==null||Ot.setContext(Jr());let Hn=()=>{tt&&!Fi&&Ge.controls.showOnStartupAtAutoplay&&ai(Ge.controls.hideTimeout)};Ie.setUiCallbacks({onStarted:Hn});let ro=()=>{window.clearTimeout(jt),li.set(!1)},so=()=>{window.clearTimeout(hi),je.set(null)},ai=Y=>{ro(),li.set(!0),jt=window.setTimeout(()=>li.set(!1),Y);let Pt=Y-100;Gi=window.setTimeout(()=>{C&&Ri.set(!1)},Pt>0?Pt:Y)},lo=(Y,Pt)=>{so(),je.set(Pt),hi=window.setTimeout(()=>je.set(null),Y)},ao=Oi.subscribe(Y=>{Wi.set(Y),Y&&(window.clearTimeout(Vi),Vi=window.setTimeout(()=>Wi.set(!1),Ge.controls.hide360IconTimeout))}),Qn=async()=>{var Pt,Bi,Si,_o;let Y=qo();if(Y){let Un=is(),zn=Zn();Y=Un===zn||Un===Kt}if(Y){ai(Ge.controls.hideTimeoutFullscreen);try{await(Ot==null?void 0:Ot.remove())}catch(Un){Dt({message:String(Un)})}}vi.set(Y),Ie.getAdmanWrapper().setFullscreen(Y),T?(Bi=(Pt=Ie.callbacks)==null?void 0:Pt.onFullscreenEnter)==null||Bi.call(Pt):(_o=(Si=Ie.callbacks)==null?void 0:Si.onFullscreenExit)==null||_o.call(Si)},uo=Y=>{let{width:Pt,height:Bi}=Y.target;mi.set({width:Pt,height:Bi})},co=()=>{let{width:Y,height:Pt}=si.getBoundingClientRect();mi.set({width:Y,height:Pt})};Ct(()=>{var Pt;return xs(Qn),Ge.features.annotationsInside&&(oi==null||oi.init(si)),sr(Ot)&&(Ot==null||Ot.assignPlayerContainer(si),Ot==null||Ot.registryExternalEventHandlers({resize:uo,leavepictureinpicture:co})),et&&((Pt=ut.parentElement)==null||Pt.insertBefore(et,ut.nextSibling)),()=>{window.clearTimeout(jt),window.clearTimeout(Gi),window.clearTimeout(hi),window.clearTimeout(Vi),ao(),Ot==null||Ot.dispose(),Hs(Qn)}});let Zn=()=>{let Y=Ge.features.fullscreenInternalTargetPlayerContainer||!Gt?si:Gt,Pt=Y.getRootNode(),Bi=Pt instanceof ShadowRoot?Pt.host:Pt,Si=ot instanceof HTMLElement&&ot.contains(Bi);return Ge.allowChangingFullscreenTarget&&ot&&Si?ot:Y},Xn=async()=>{qo()?(await Fs(document),Dt({message:"exit fullscreen"})):(Dt({message:"request fullscreen"}),await Os(Zn()))},Tn=()=>{Ci(),ei.set(!1)},Jn=Y=>{ei.set(!0),Mi.set({left:Y.clientX,top:Y.clientY})};function yo(){gn.set(!0),Fi||ai(Ge.controls.hideTimeoutCursor)}function wo(){Fi||(Ri.set(!0),ai(Ge.controls.hideTimeoutCursor))}function qi(){gn.set(!1),t(133,Yi=!1),t(132,ln=!1),Hi=!1,Ie.actions.internal.releaseCamera()}function $n(Y){if(g&&ji){let Pt=Y.currentTarget,Bi=Cf(Pt),Si=T_(Pt),_o=Y.pageX-Si,Un=Y.pageY-Bi,{left:zn,bottom:Ur,right:An}=g,Do=An-zn;return _o>=zn-Do&&Un<=Ur+Do}}function fn(Y){if(si){let Pt=Cf(Y.currentTarget),Bi=v.height,Si=Y.pageY-Pt;if($n(Y)){t(133,Yi=!1);return}Si<40?t(133,Yi=!0):Si>Bi-40?t(132,ln=!0):(t(133,Yi=!1),u||t(132,ln=!1))}}function te(Y){fn(Y),Zi||ai(Ge.controls.hideTimeoutCursor),h&&Hi&&Xi&&Ie.actions.internal.moveCameraFocusPX(Xi.clientX-Y.clientX,Xi.clientY-Y.clientY,Y.timeStamp-Xi.timeStamp),Xi=Y}let Vt=Y=>{Y.button===0&&(Hi=!0,Ie.actions.internal.holdCamera()),ai(Ge.controls.hideTimeoutCursor)},ne=Y=>{Y.button===0&&(Xi=Y,Hi=!1,Ie.actions.internal.releaseCamera()),ai(Ge.controls.hideTimeoutCursor)},yn=()=>{S_&&(Dt({message:"double click on video"}),Xn(),ai(Ge.controls.hideTimeoutCursor))},ko=()=>{if(n||u){Tn();return}if(!(m&&!On)){if(cn)return vn();if($e==null||$e.focus(),!Nt){Ut(),ai(Ge.controls.hideTimeoutCursor);return}Ie.actions.internal.togglePlay(),ai(Ge.controls.hideTimeoutCursor)}},Ji=Y=>{Tn(),Ai.set(!0),ai(Ge.controls.hideTimeout),Y&&lo(Ge.controls.hideHotKeyHelpers,Y)},qn=()=>{var Y,Pt;Tn(),(Y=Ie.callbacks)!=null&&Y.onOpenHotKeyMap?(Pt=Ie.callbacks)==null||Pt.onOpenHotKeyMap(c):on.update(Bi=>!Bi)},fo=()=>{if(n||u){Tn();return}},Vo=()=>{Ai.set(!0)},eo=Ie.ui.contextMenu.openedByBtnKeyboard$;D(i,eo,Y=>t(141,a=Y));let mo=Ie.ui.contextMenu.btnRef$;D(i,mo,Y=>t(140,s=Y));let In,to=Ie.ui.contextMenu.openedByHotKey$;D(i,to,Y=>t(139,r=Y));let po=Ie.ui.contextMenu.lastActiveElem$;D(i,po,Y=>t(138,o=Y));function Qo(Y){we[Y?"unshift":"push"](()=>{ut=Y,t(0,ut)})}let Zo=()=>t(29,gi=!0);function Ro(Y){pi=Y,t(40,pi)}function Co(Y){at=Y,t(41,at)}let So=()=>$e==null?void 0:$e.focus();function Bo(Y){Li=Y,t(27,Li)}let No=()=>$e==null?void 0:$e.focus();function Pn(Y){In=Y,t(31,In)}function Xo(Y){we[Y?"unshift":"push"](()=>{$e=Y,t(1,$e)})}function mr(Y){we[Y?"unshift":"push"](()=>{hn=Y,t(28,hn)})}function En(Y){we[Y?"unshift":"push"](()=>{si=Y,t(39,si)})}return i.$$set=Y=>{"store"in Y&&t(125,Ie=Y.store),"uiConfig"in Y&&t(2,Ge=Y.uiConfig),"title"in Y&&t(3,nt=Y.title),"thumbUrl"in Y&&t(4,lt=Y.thumbUrl),"videoContainer"in Y&&t(0,ut=Y.videoContainer),"interactiveContainer"in Y&&t(126,et=Y.interactiveContainer),"live"in Y&&t(5,me=Y.live),"autoplay"in Y&&t(6,tt=Y.autoplay),"canRewindLive"in Y&&t(7,De=Y.canRewindLive),"showAds"in Y&&t(8,st=Y.showAds),"adsSlotId"in Y&&t(9,Qe=Y.adsSlotId),"adsParams"in Y&&t(10,he=Y.adsParams),"adsPreviewParam"in Y&&t(11,Ke=Y.adsPreviewParam),"duration"in Y&&t(12,ft=Y.duration),"logoClickable"in Y&&t(13,be=Y.logoClickable),"logoHidden"in Y&&t(14,pt=Y.logoHidden),"logoTargetUrl"in Y&&t(15,yt=Y.logoTargetUrl),"nextButtonActive"in Y&&t(16,Ze=Y.nextButtonActive),"prevButtonActive"in Y&&t(17,It=Y.prevButtonActive),"endScreenVideoTitle"in Y&&t(18,Rt=Y.endScreenVideoTitle),"endScreenVideoThumb"in Y&&t(19,Ft=Y.endScreenVideoThumb),"isOneVideoPlaylist"in Y&&t(20,ti=Y.isOneVideoPlaylist),"supportLink"in Y&&t(21,Bt=Y.supportLink),"shadowRootContainer"in Y&&t(127,Kt=Y.shadowRootContainer),"outerContainerRef"in Y&&t(128,Gt=Y.outerContainerRef),"playerStarted"in Y&&t(22,Nt=Y.playerStarted),"fullScreenTarget"in Y&&t(129,ot=Y.fullScreenTarget),"showMiniTimer"in Y&&t(130,St=Y.showMiniTimer),"showEndScreen"in Y&&t(131,Lt=Y.showEndScreen),"showNextPrevButtons"in Y&&t(23,fe=Y.showNextPrevButtons),"keyboardControls"in Y&&t(1,$e=Y.keyboardControls),"seekToInteractive"in Y&&t(24,kt=Y.seekToInteractive),"playPrevChapter"in Y&&t(25,ii=Y.playPrevChapter),"firstStart"in Y&&t(26,Ut=Y.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&96|i.$$.dirty[5]&6&&t(42,sn=(Q==="video"&&U||Q==="ads"&&ie==="inactive")&&!M),i.$$.dirty[0]&268435456&&rn.set(hn),i.$$.dirty[4]&2048|i.$$.dirty[5]&1&&(t(134,an=Qi&&z!==by.PLAYING),Qi||t(135,Qi=!0)),i.$$.dirty[4]&1091045120&&t(136,Zi=P&&!u&&!(ln||Yi)&&!(an&&!ve)),i.$$.dirty[1]&224|i.$$.dirty[4]&545788928&&yi.set((an||u||k||q||W)&&!Zi&&(Q==="video"||Q==="ads")&&!M),i.$$.dirty[0]&4|i.$$.dirty[1]&112|i.$$.dirty[4]&268435520&&t(43,Yn=Ge.features.thumbTimer&&St&&Q==="video"&&!H&&!M&&!Fi&&(Ge.hideThumbTimerAfterTouch&&!ee||!Ge.hideThumbTimerAfterTouch)),i.$$.dirty[1]&64|i.$$.dirty[4]&136314880&&t(44,Fn=Q==="video"&&!ae&&T),i.$$.dirty[0]&536871168|i.$$.dirty[1]&32|i.$$.dirty[4]&68157568&&t(30,xn=Lt&&(st&&Z||!st)&&m&&!M&&!gi),i.$$.dirty[0]&1073741824|i.$$.dirty[1]&16|i.$$.dirty[4]&50331648&&t(45,bn=x&&!(H||xn)&&!P),i.$$.dirty[0]&4|i.$$.dirty[4]&25174016&&(!k&&Sn&&!P&&ai(Ge.controls.hideTimeoutCursor),t(137,Sn=k)),i.$$.dirty[0]&1|i.$$.dirty[1]&12&&t(46,un=ut&&S%180?v.height/v.width:1),i.$$.dirty[4]&4194304&&t(47,cn=A!==null),i.$$.dirty[0]&134217728|i.$$.dirty[4]&786432&&bo(Li,u,l),i.$$.dirty[1]&3|i.$$.dirty[4]&131072&&bo(In,n,a),i.$$.dirty[1]&2|i.$$.dirty[4]&65536){let Y=s;Y&&Pr(Y,n,eo)}if(i.$$.dirty[1]&3|i.$$.dirty[4]&32768&&bo(In,n,r),i.$$.dirty[1]&2|i.$$.dirty[4]&16384){let Y=o;Y&&s1(Y,n,to)}},[ut,$e,Ge,nt,lt,me,tt,De,st,Qe,he,Ke,ft,be,pt,yt,Ze,It,Rt,Ft,ti,Bt,Nt,fe,kt,ii,Ut,Li,hn,gi,xn,In,n,v,S,H,M,Q,q,si,pi,at,sn,Yn,Fn,bn,un,cn,h,C,pe,se,X,re,oe,Ye,Fe,Pe,Se,Ae,He,J,ge,ni,zt,di,Ti,Di,_i,vi,yi,Ht,Ui,qt,ei,Ii,Zt,Pi,Ei,Me,rt,Wt,wi,Et,ki,Cn,zi,pn,mi,Oi,Wi,tn,Fi,_n,ri,Ai,nn,on,Ki,Mi,xi,Ri,li,je,gn,vn,Xn,Tn,Jn,yo,wo,qi,te,Vt,ne,yn,ko,Ji,qn,fo,Vo,eo,mo,to,po,Ie,et,Kt,Gt,ot,St,Lt,ln,Yi,an,Qi,Zi,Sn,o,r,s,a,l,u,m,T,A,k,P,x,Z,ae,ee,W,ve,z,ie,U,Qo,Zo,Ro,Co,So,Bo,No,Pn,Xo,mr,En]}var Sf=class extends O{constructor(e){super(),F(this,e,ky,wy,N,{store:125,uiConfig:2,title:3,thumbUrl:4,videoContainer:0,interactiveContainer:126,live:5,autoplay:6,canRewindLive:7,showAds:8,adsSlotId:9,adsParams:10,adsPreviewParam:11,duration:12,logoClickable:13,logoHidden:14,logoTargetUrl:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:127,outerContainerRef:128,playerStarted:22,fullScreenTarget:129,showMiniTimer:130,showEndScreen:131,showNextPrevButtons:23,keyboardControls:1,seekToInteractive:24,playPrevChapter:25,firstStart:26},vy,[-1,-1,-1,-1,-1,-1,-1])}},I_=Sf;import{PlaybackState as Vy}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as cs,noop as Ry}from"@vkontakte/videoplayer-shared/es2018";function Cy(i){ye(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 P_(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,T,C=j("doubletap_seek_step",{seconds:i[2].toFixed(0)})+"",A;return{c(){e=I("div"),n=G(),o=I("div"),r=I("div"),s=I("div"),l=G(),u=I("div"),m=G(),h=I("div"),g=G(),T=I("p"),A=Oe(C),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",v="triangle "+i[0]+" svelte-nhq2ld"),f(r,"class","triangles-wrapper svelte-nhq2ld"),f(T,"class","step-caption svelte-nhq2ld"),f(o,"class","info svelte-nhq2ld")},m(S,k){w(S,e,k),w(S,n,k),w(S,o,k),_(o,r),_(r,s),_(r,l),_(r,u),_(r,m),_(r,h),_(o,g),_(o,T),_(T,A)},p(S,k){k&1&&t!==(t="semicircle "+S[0]+" svelte-nhq2ld")&&f(e,"class",t),k&1&&a!==(a="triangle "+S[0]+" svelte-nhq2ld")&&f(s,"class",a),k&1&&c!==(c="triangle "+S[0]+" svelte-nhq2ld")&&f(u,"class",c),k&1&&v!==(v="triangle "+S[0]+" svelte-nhq2ld")&&f(h,"class",v),k&4&&C!==(C=j("doubletap_seek_step",{seconds:S[2].toFixed(0)})+"")&&We(A,C)},d(S){S&&(y(e),y(n),y(o))}}}function Sy(i){let e,t,n,o,r=i[1]&&P_(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=Te(e,"click",vt(i[3]())),n=!0)},p(s,[a]){s[1]?r?r.p(s,a):(r=P_(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:_e,o:_e,d(s){s&&y(e),r&&r.d(),n=!1,o()}}}function Ty(i,e,t){let{side:n}=e,{seekStep:o=0}=e,{handleSingleFirstClick:r}=e,{handleSecondClick:s}=e,a=!1,l=0,u=0,c=o,m=()=>()=>{u+=1,t(2,c=o*(u-1)),u===1?r():(t(1,a=!0),s()),window.clearTimeout(l),l=window.setTimeout(()=>{u=0,t(1,a=!1)},300)};return Vn(()=>{window.clearTimeout(l)}),i.$$set=h=>{"side"in h&&t(0,n=h.side),"seekStep"in h&&t(4,o=h.seekStep),"handleSingleFirstClick"in h&&t(5,r=h.handleSingleFirstClick),"handleSecondClick"in h&&t(6,s=h.handleSecondClick)},[n,a,c,m,o,r,s]}var Tf=class extends O{constructor(e){super(),F(this,e,Ty,Sy,N,{side:0,seekStep:4,handleSingleFirstClick:5,handleSecondClick:6},Cy)}},If=Tf;function Iy(i){ye(i,"svelte-1qdxi6t",".overlay.svelte-1qdxi6t{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-1qdxi6t{position:absolute;top:50%;left:50%;z-index:var(--end-screen-mobile-z-index);transform:translate(-50%, -50%);display:flex;flex-direction:column;max-width:362px;min-width:320px;margin:0 auto;padding-bottom:12px}.top.svelte-1qdxi6t{display:flex;justify-content:space-between}.caption.svelte-1qdxi6t{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-1qdxi6t{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%}.column.svelte-1qdxi6t{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-1qdxi6t{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.svelte-1qdxi6t{width:100%;height:100%;position:absolute}.thumb-overlay.withOpacity.svelte-1qdxi6t{background:var(--black);opacity:0.3}.title.svelte-1qdxi6t{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function E_(i){let e,t,n,o,r,s=(i[3]?j("end_screen_next_video"):j("end_screen_recommended_video"))+"",a,l,u,c,m,h,v,g,T,C,A,S,k,P,H,x,M;u=new Xs({}),u.$on("click",i[9]);let Z=i[3]&&A_(i);return{c(){e=I("div"),t=G(),n=I("div"),o=I("div"),r=I("div"),a=Oe(s),l=G(),R(u.$$.fragment),c=G(),m=I("div"),h=I("div"),v=I("div"),g=I("div"),T=G(),Z&&Z.c(),A=G(),S=I("div"),k=I("div"),P=Oe(i[0]),f(e,"class","overlay svelte-1qdxi6t"),f(r,"class","caption svelte-1qdxi6t"),f(o,"class","top svelte-1qdxi6t"),f(g,"class","thumb-overlay svelte-1qdxi6t"),K(g,"withOpacity",i[3]),f(v,"class","thumb svelte-1qdxi6t"),f(v,"style",C=`background-image: url('${i[1]}')`),f(h,"class","column svelte-1qdxi6t"),f(k,"class","title svelte-1qdxi6t"),f(S,"class","column svelte-1qdxi6t"),f(m,"class","row svelte-1qdxi6t"),f(n,"class","next-video svelte-1qdxi6t")},m(ae,Q){w(ae,e,Q),w(ae,t,Q),w(ae,n,Q),_(n,o),_(o,r),_(r,a),_(o,l),L(u,o,null),_(n,c),_(n,m),_(m,h),_(h,v),_(v,g),_(v,T),Z&&Z.m(v,null),_(m,A),_(m,S),_(S,k),_(k,P),H=!0,x||(M=Te(m,"click",i[7]),x=!0)},p(ae,Q){(!H||Q&8)&&s!==(s=(ae[3]?j("end_screen_next_video"):j("end_screen_recommended_video"))+"")&&We(a,s),(!H||Q&8)&&K(g,"withOpacity",ae[3]),ae[3]?Z?(Z.p(ae,Q),Q&8&&d(Z,1)):(Z=A_(ae),Z.c(),d(Z,1),Z.m(v,null)):Z&&(ue(),p(Z,1,1,()=>{Z=null}),ce()),(!H||Q&2&&C!==(C=`background-image: url('${ae[1]}')`))&&f(v,"style",C),(!H||Q&1)&&We(P,ae[0])},i(ae){H||(d(u.$$.fragment,ae),d(Z),H=!0)},o(ae){p(u.$$.fragment,ae),p(Z),H=!1},d(ae){ae&&(y(e),y(t),y(n)),V(u),Z&&Z.d(),x=!1,M()}}}function A_(i){let e,t;return e=new Js({props:{isRunning:i[4],onTimerEnded:i[8]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.isRunning=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Py(i){let e,t,n=!i[2]&&E_(i);return{c(){n&&n.c(),e=Xe()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,[r]){o[2]?n&&(ue(),p(n,1,1,()=>{n=null}),ce()):n?(n.p(o,r),r&4&&d(n,1)):(n=E_(o),n.c(),d(n,1),n.m(e.parentNode,e))},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function Ey(i,e,t){let n,o,{title:r}=e,{thumb:s}=e,{isHide:a}=e,{clickCloseIcon:l}=e,u=it(),c=u.ui.autoplayNextEnabled$;D(i,c,k=>t(3,n=k));let m=u.ui.timerNextVideoRunning$;D(i,m,k=>t(4,o=k));let h=u.actions.internal.nextVideoClick,v=u.actions.internal.nextVideoAnnouncementClick,g=u.actions.internal.nextVideoAnnouncementAuto,T=u.actions.internal.nextVideoAnnouncementCancel,C=()=>{h(!1),v()},A=()=>{h(!1),g()},S=()=>{l(),T()};return Ct(()=>{a&&n&&(h(!1),g())}),i.$$set=k=>{"title"in k&&t(0,r=k.title),"thumb"in k&&t(1,s=k.thumb),"isHide"in k&&t(2,a=k.isHide),"clickCloseIcon"in k&&t(10,l=k.clickCloseIcon)},i.$$.update=()=>{i.$$.dirty&8&&(n||T())},[r,s,a,n,o,c,m,C,A,S,l]}var Pf=class extends O{constructor(e){super(),F(this,e,Ey,Py,N,{title:0,thumb:1,isHide:2,clickCloseIcon:10},Iy)}},M_=Pf;import{clientChecker as Ay}from"@vkontakte/videoplayer-shared/es2018";var L_=({getFullscreenTarget:i,fullScreenChangeHandler:e})=>{let t=null,n;Ct(()=>{Ay.isIOS&&(n=setTimeout(()=>{let r=i().querySelector("video");if(!r)return;let s=()=>e(!0),a=()=>e(!1);r.addEventListener("webkitbeginfullscreen",s),r.addEventListener("webkitendfullscreen",a),t=()=>{r.removeEventListener("webkitbeginfullscreen",s),r.removeEventListener("webkitendfullscreen",a)}},0))}),Vn(()=>{t==null||t(),clearTimeout(n)})};import{VideoFormat as My}from"@vkontakte/videoplayer-core/es2018";var Kl=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,t=!1){let n=document.createElement("track");n.setAttribute("src",e.url),n.setAttribute("id",e.id),e.label&&n.setAttribute("label",e.label),e.language&&n.setAttribute("srclang",e.language),t&&(n.track.mode="showing"),this.video.appendChild(n)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let t=this.getTracksArray().find(n=>n.id===e.id);t&&(t.src=e.url)}getCurrentShowingId(){var e,t;return(t=(e=this.getTracksArray().find(n=>n.track.mode==="showing"))==null?void 0:e.id)!=null?t:null}};import{clientChecker as Ly}from"@vkontakte/videoplayer-shared/es2018";var V_=({store:i,getFullscreenTarget:e})=>{let{isFullscreen:t}=i.ui,{setSubtitle:n}=i.actions.internal,{currentSubtitle$:o,availableSubtitlesList$:r,currentFormat$:s,availableTextTracks$:a}=i.state,l=null,u=()=>e().querySelector("video"),c=()=>Ly.isIOS&&qe(s)===My.DASH_LIVE_CMAF,m=()=>{l==null||l(),l=null},h=v=>{if(m(),!c()||!v)return;let g=u();if(!g)return;let T=new Kl(g),C=qe(a),A=qe(r),S=qe(o);for(let H of C)A.some(M=>M.value===H.id)&&T.attach(H,S.value===H.id);let k=a.subscribe(H=>{for(let x of H)T.updateSrc(x)}),P=()=>{let H=T.getCurrentShowingId();n(qe(r).find(x=>x.value===H))};g.textTracks.addEventListener("change",P),l=()=>{k(),T.detachAll(),g.textTracks.removeEventListener("change",P)}};Ct(()=>t.subscribe(h)),Vn(m)};function By(i){ye(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 R_(i){let e,t,n,o=i[48]&&B_(i),r=i[49]&&N_(i);return{c(){o&&o.c(),e=G(),r&&r.c(),t=Xe()},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[48]?o?(o.p(s,a),a[1]&131072&&d(o,1)):(o=B_(s),o.c(),d(o,1),o.m(e.parentNode,e)):o&&(ue(),p(o,1,1,()=>{o=null}),ce()),s[49]?r?(r.p(s,a),a[1]&262144&&d(r,1)):(r=N_(s),r.c(),d(r,1),r.m(t.parentNode,t)):r&&(ue(),p(r,1,1,()=>{r=null}),ce())},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 B_(i){let e,t;return e=new If({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[105],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 N_(i){let e,t;return e=new If({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[105],handleSecondClick:i[138]}}),{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){var n;let e,t;return e=new xl({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 O_(i){let e,t;return e=new Hr({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 F_(i){let e,t;return e=new Hr({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 x_(i){let e,t,n;return t=new qs({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"),K(e,"hidden",i[39]!=="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]&256)&&K(e,"hidden",o[39]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),V(t)}}}function H_(i){let e,t;return e=new M_({props:{title:i[16],thumb:i[17],isHide:!i[21]&&i[22]&&i[38],clickCloseIcon:i[139]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&65536&&(r.title=n[16]),o[0]&131072&&(r.thumb=n[17]),o[0]&6291456|o[1]&128&&(r.isHide=!n[21]&&n[22]&&n[38]),o[0]&536870912&&(r.clickCloseIcon=n[139]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function q_(i){let e,t;return e=new Rl({}),{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 U_(i){let e,t,n;return t=new Ls({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 z_(i){let e,t;return e=new Dl({props:{thumbUrl:i[2],chromecastDeviceName:i[56]}}),{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]&33554432&&(r.chromecastDeviceName=n[56]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function W_(i){let e,t;return e=new Nl({props:{shifted:i[32],captions:i[58],position:i[34],playerSize:i[35],isMobile:!0}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&2&&(r.shifted=n[32]),o[1]&134217728&&(r.captions=n[58]),o[1]&8&&(r.position=n[34]),o[1]&16&&(r.playerSize=n[35]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function K_(i){let e,t,n,o,r;return t=new Ol({}),{c(){e=I("div"),R(t.$$.fragment)},m(s,a){w(s,e,a),L(t,e,null),n=!0,o||(r=Te(e,"click",vt(i[106])),o=!0)},p:_e,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 j_(i){let e,t,n,o;function r(l){i[140](l)}function s(l){i[141](l)}let a={bottomHidden:i[39]==="thumb"||i[39]==="LiveWaitingStart"||i[39]==="LiveWaitingRecover"||i[39]==="LiveWaitingRecord"||i[39]==="ads",showControls:i[32],bottomNoSmooth:i[50],isAds:i[39]==="ads",canRewindLive:i[5]&&i[59]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showAutoplayNext:i[22],showNextPrevButtons:i[23],nextButtonActive:i[14],prevButtonActive:i[15],isOneVideoPlaylist:i[18],customFullscreenSupported:i[45],endScreenShown:i[30],toggleFullscreen:i[103],seekToInteractive:i[24],playPrevChapter:i[25],onDisabledPlayPrevChapterClick:i[109],onDisabledSeekToInteractiveClick:i[110]};return i[42]!==void 0&&(a.playerControlsWrapperRef=i[42]),i[43]!==void 0&&(a.playerControlsRef=i[43]),e=new Vl({props:a}),we.push(()=>ze(e,"playerControlsWrapperRef",r)),we.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]&256&&(c.bottomHidden=l[39]==="thumb"||l[39]==="LiveWaitingStart"||l[39]==="LiveWaitingRecover"||l[39]==="LiveWaitingRecord"||l[39]==="ads"),u[1]&2&&(c.showControls=l[32]),u[1]&524288&&(c.bottomNoSmooth=l[50]),u[1]&256&&(c.isAds=l[39]==="ads"),u[0]&32|u[1]&268435456&&(c.canRewindLive=l[5]&&l[59]!==0),u[0]&2048&&(c.logoClickable=l[11]),u[0]&4096&&(c.logoHidden=l[12]),u[0]&8192&&(c.logoTargetUrl=l[13]),u[0]&4194304&&(c.showAutoplayNext=l[22]),u[0]&8388608&&(c.showNextPrevButtons=l[23]),u[0]&16384&&(c.nextButtonActive=l[14]),u[0]&32768&&(c.prevButtonActive=l[15]),u[0]&262144&&(c.isOneVideoPlaylist=l[18]),u[1]&16384&&(c.customFullscreenSupported=l[45]),u[0]&1073741824&&(c.endScreenShown=l[30]),u[0]&16777216&&(c.seekToInteractive=l[24]),u[0]&33554432&&(c.playPrevChapter=l[25]),!t&&u[1]&2048&&(t=!0,c.playerControlsWrapperRef=l[42],Ue(()=>t=!1)),!n&&u[1]&4096&&(n=!0,c.playerControlsRef=l[43],Ue(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){V(e,l)}}}function G_(i){let e,t,n,o;function r(a){i[142](a)}let s={supportLink:i[19],returnFocus:Ry};return i[27]!==void 0&&(s.ref=i[27]),t=new Wl({props:s}),we.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]&524288&&(u.supportLink=a[19]),!n&&l[0]&134217728&&(n=!0,u.ref=a[27],Ue(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&y(e),V(t)}}}function Y_(i){let e,t;return e=new Mr({}),{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 Q_(i){let e,t;return e=new Zs({}),{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 Z_(i){let e,t,n=i[5]&&i[83]&&!i[53].has("TIMELINE"),o,r,s,a,l,u,c,m,h,v,g,T,C,A,S,k,P,H;e=new Fl({props:{hidden:i[39]!=="thumb"||i[37]||i[94]&&i[4],thumbUrl:i[2],startVideo:i[26]}});let x=n&&R_(i),M=i[39]==="LiveWaitingStart"&&D_(i),Z=i[39]==="LiveWaitingRecover"&&O_(i),ae=i[39]==="LiveWaitingRecord"&&F_(i),Q=i[6]&&i[20]&&x_(i),ee=i[30]&&i[16]&&i[17]&&H_(i),W=i[54]&&q_(i),q=i[55]&&U_(i),ve=i[40]&&z_(i),z=i[57].value!=="off"&&W_(i),ie=i[37]&&K_(i),U=i[20]&&j_(i),pe=i[31]&&G_(i);A=new zs({props:{isLive:i[60],isHidden:!i[46],isPlaying:i[51],position:i[34],duration:i[33]}});let se=i[44]&&Y_(i),X=i[61]&&Q_(i);return{c(){R(e.$$.fragment),t=G(),x&&x.c(),o=G(),M&&M.c(),r=G(),Z&&Z.c(),s=G(),ae&&ae.c(),a=G(),Q&&Q.c(),l=G(),ee&&ee.c(),u=G(),W&&W.c(),c=G(),q&&q.c(),m=G(),ve&&ve.c(),h=G(),z&&z.c(),v=G(),ie&&ie.c(),g=G(),U&&U.c(),T=G(),pe&&pe.c(),C=G(),R(A.$$.fragment),S=G(),se&&se.c(),k=G(),X&&X.c(),P=Xe()},m(re,oe){L(e,re,oe),w(re,t,oe),x&&x.m(re,oe),w(re,o,oe),M&&M.m(re,oe),w(re,r,oe),Z&&Z.m(re,oe),w(re,s,oe),ae&&ae.m(re,oe),w(re,a,oe),Q&&Q.m(re,oe),w(re,l,oe),ee&&ee.m(re,oe),w(re,u,oe),W&&W.m(re,oe),w(re,c,oe),q&&q.m(re,oe),w(re,m,oe),ve&&ve.m(re,oe),w(re,h,oe),z&&z.m(re,oe),w(re,v,oe),ie&&ie.m(re,oe),w(re,g,oe),U&&U.m(re,oe),w(re,T,oe),pe&&pe.m(re,oe),w(re,C,oe),L(A,re,oe),w(re,S,oe),se&&se.m(re,oe),w(re,k,oe),X&&X.m(re,oe),w(re,P,oe),H=!0},p(re,oe){let Ye={};oe[0]&16|oe[1]&320&&(Ye.hidden=re[39]!=="thumb"||re[37]||re[94]&&re[4]),oe[0]&4&&(Ye.thumbUrl=re[2]),oe[0]&67108864&&(Ye.startVideo=re[26]),e.$set(Ye),oe[0]&32|oe[1]&4194304&&(n=re[5]&&re[83]&&!re[53].has("TIMELINE")),n?x?(x.p(re,oe),oe[0]&32|oe[1]&4194304&&d(x,1)):(x=R_(re),x.c(),d(x,1),x.m(o.parentNode,o)):x&&(ue(),p(x,1,1,()=>{x=null}),ce()),re[39]==="LiveWaitingStart"?M?(M.p(re,oe),oe[1]&256&&d(M,1)):(M=D_(re),M.c(),d(M,1),M.m(r.parentNode,r)):M&&(ue(),p(M,1,1,()=>{M=null}),ce()),re[39]==="LiveWaitingRecover"?Z?(Z.p(re,oe),oe[1]&256&&d(Z,1)):(Z=O_(re),Z.c(),d(Z,1),Z.m(s.parentNode,s)):Z&&(ue(),p(Z,1,1,()=>{Z=null}),ce()),re[39]==="LiveWaitingRecord"?ae?(ae.p(re,oe),oe[1]&256&&d(ae,1)):(ae=F_(re),ae.c(),d(ae,1),ae.m(a.parentNode,a)):ae&&(ue(),p(ae,1,1,()=>{ae=null}),ce()),re[6]&&re[20]?Q?(Q.p(re,oe),oe[0]&1048640&&d(Q,1)):(Q=x_(re),Q.c(),d(Q,1),Q.m(l.parentNode,l)):Q&&(ue(),p(Q,1,1,()=>{Q=null}),ce()),re[30]&&re[16]&&re[17]?ee?(ee.p(re,oe),oe[0]&1073938432&&d(ee,1)):(ee=H_(re),ee.c(),d(ee,1),ee.m(u.parentNode,u)):ee&&(ue(),p(ee,1,1,()=>{ee=null}),ce()),re[54]?W?oe[1]&8388608&&d(W,1):(W=q_(re),W.c(),d(W,1),W.m(c.parentNode,c)):W&&(ue(),p(W,1,1,()=>{W=null}),ce()),re[55]?q?oe[1]&16777216&&d(q,1):(q=U_(re),q.c(),d(q,1),q.m(m.parentNode,m)):q&&(ue(),p(q,1,1,()=>{q=null}),ce()),re[40]?ve?(ve.p(re,oe),oe[1]&512&&d(ve,1)):(ve=z_(re),ve.c(),d(ve,1),ve.m(h.parentNode,h)):ve&&(ue(),p(ve,1,1,()=>{ve=null}),ce()),re[57].value!=="off"?z?(z.p(re,oe),oe[1]&67108864&&d(z,1)):(z=W_(re),z.c(),d(z,1),z.m(v.parentNode,v)):z&&(ue(),p(z,1,1,()=>{z=null}),ce()),re[37]?ie?(ie.p(re,oe),oe[1]&64&&d(ie,1)):(ie=K_(re),ie.c(),d(ie,1),ie.m(g.parentNode,g)):ie&&(ue(),p(ie,1,1,()=>{ie=null}),ce()),re[20]?U?(U.p(re,oe),oe[0]&1048576&&d(U,1)):(U=j_(re),U.c(),d(U,1),U.m(T.parentNode,T)):U&&(ue(),p(U,1,1,()=>{U=null}),ce()),re[31]?pe?(pe.p(re,oe),oe[1]&1&&d(pe,1)):(pe=G_(re),pe.c(),d(pe,1),pe.m(C.parentNode,C)):pe&&(ue(),p(pe,1,1,()=>{pe=null}),ce());let Fe={};oe[1]&536870912&&(Fe.isLive=re[60]),oe[1]&32768&&(Fe.isHidden=!re[46]),oe[1]&1048576&&(Fe.isPlaying=re[51]),oe[1]&8&&(Fe.position=re[34]),oe[1]&4&&(Fe.duration=re[33]),A.$set(Fe),re[44]?se?oe[1]&8192&&d(se,1):(se=Y_(re),se.c(),d(se,1),se.m(k.parentNode,k)):se&&(ue(),p(se,1,1,()=>{se=null}),ce()),re[61]?X?oe[1]&1073741824&&d(X,1):(X=Q_(re),X.c(),d(X,1),X.m(P.parentNode,P)):X&&(ue(),p(X,1,1,()=>{X=null}),ce())},i(re){H||(d(e.$$.fragment,re),d(x),d(M),d(Z),d(ae),d(Q),d(ee),d(W),d(q),d(ve),d(z),d(ie),d(U),d(pe),d(A.$$.fragment,re),d(se),d(X),H=!0)},o(re){p(e.$$.fragment,re),p(x),p(M),p(Z),p(ae),p(Q),p(ee),p(W),p(q),p(ve),p(z),p(ie),p(U),p(pe),p(A.$$.fragment,re),p(se),p(X),H=!1},d(re){re&&(y(t),y(o),y(r),y(s),y(a),y(l),y(u),y(c),y(m),y(h),y(v),y(g),y(T),y(C),y(S),y(k),y(P)),V(e,re),x&&x.d(re),M&&M.d(re),Z&&Z.d(re),ae&&ae.d(re),Q&&Q.d(re),ee&&ee.d(re),W&&W.d(re),q&&q.d(re),ve&&ve.d(re),z&&z.d(re),ie&&ie.d(re),U&&U.d(re),pe&&pe.d(re),V(A,re),se&&se.d(re),X&&X.d(re)}}}function Ny(i){let e,t,n,o,r,s=i[52],a,l,u,c,m,h,v=Z_(i);return{c(){e=I("div"),t=I("div"),n=I("div"),r=G(),v.c(),a=G(),l=I("div"),f(n,"class","video-container svelte-dtyj47"),f(n,"style",o=`transform: rotate(${i[36]}deg) scale(${i[47]})`),f(n,"data-testid","video-container"),f(n,"data-is-playing",i[51]),K(n,"fast-rotate",!i[1].isSmoothVideoRotate),f(t,"class","video-wrapper svelte-dtyj47"),K(t,"hidden",i[39]!=="video"),f(l,"class","overlay-container"),f(e,"class","player-wrapper svelte-dtyj47"),f(e,"role","region"),f(e,"aria-label",u=j("aria_label_video_player")),f(e,"tabindex","-1")},m(g,T){w(g,e,T),_(e,t),_(t,n),i[136](n),_(e,r),v.m(e,null),_(e,a),_(e,l),i[143](l),i[144](e),c=!0,m||(h=[Te(window,"blur",i[104]),Te(t,"click",ci(i[105])),Te(e,"click",i[107],!0),Te(e,"focusin",i[108],!0)],m=!0)},p(g,T){(!c||T[1]&65568&&o!==(o=`transform: rotate(${g[36]}deg) scale(${g[47]})`))&&f(n,"style",o),(!c||T[1]&1048576)&&f(n,"data-is-playing",g[51]),(!c||T[0]&2)&&K(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!c||T[1]&256)&&K(t,"hidden",g[39]!=="video"),T[1]&2097152&&N(s,s=g[52])?(ue(),p(v,1,1,_e),ce(),v=Z_(g),v.c(),d(v,1),v.m(e,a)):v.p(g,T)},i(g){c||(d(v),c=!0)},o(g){p(v),c=!1},d(g){g&&y(e),i[136](null),v.d(g),i[143](null),i[144](null),m=!1,ct(h)}}}function Dy(i,e,t){var $n,fn;let n,o,r,s,a,l,u,c,m,h,v,g,T,C,A,S,k,P,H,x,M,Z,ae,Q,ee,W,q,ve,z,ie,U,pe,se,X,re,oe,Ye,Fe,{store:Pe}=e,{uiConfig:Se}=e,{thumbUrl:Ae}=e,{videoContainer:He}=e,{interactiveContainer:J}=e,{live:ge}=e,{autoplay:Ie}=e,{canRewindLive:Ge}=e,{showAds:nt}=e,{adsSlotId:lt=void 0}=e,{adsParams:ut=void 0}=e,{adsPreviewParam:et=void 0}=e,{duration:me=void 0}=e,{logoClickable:tt}=e,{logoHidden:De}=e,{logoTargetUrl:st=""}=e,{nextButtonActive:Qe=!1}=e,{prevButtonActive:he=!1}=e,{endScreenVideoTitle:Ke=void 0}=e,{endScreenVideoThumb:ft=void 0}=e,{isOneVideoPlaylist:be=!1}=e,{supportLink:pt}=e,{shadowRootContainer:yt=void 0}=e,{outerContainerRef:Ze=void 0}=e,{showMiniTimer:It=!1}=e,{fullScreenTarget:Rt=void 0}=e,{playerStarted:Ft=!1}=e,{showEndScreen:ti}=e,{showAutoplayNext:Bt}=e,{showNextPrevButtons:Kt}=e,{seekToInteractive:Gt}=e,{playPrevChapter:Nt}=e,{firstStart:ot}=e,{seekTime:St}=e,Lt=Pe.getLogger().createComponentLog("Root component"),fe=Pe.interfaceLanguage$;D(i,fe,te=>t(52,z=te));let $e=Pe.state.playbackState$;D(i,$e,te=>t(133,ee=te));let kt=Pe.ads.playbackState;D(i,kt,te=>t(134,W=te));let ii=Pe.state.positionWithScrubbing$;D(i,ii,te=>t(34,l=te));let Ut=Pe.state.duration$;D(i,Ut,te=>t(33,a=te));let Dt=Pe.playerPhase;D(i,Dt,te=>t(39,M=te));let ni=Pe.ui.isFullscreen;D(i,ni,te=>t(150,c=te));let zt=Pe.ui.controlsVisible;D(i,zt,te=>t(32,r=te));let di=Pe.ui.interactiveHideMobileControls;D(i,di,te=>t(125,g=te));let Ti=Pe.ui.settingsMenu.visible$;D(i,Ti,te=>t(31,o=te));let Di=Pe.ui.settingsMenu.openedByBtnKeyboard$;D(i,Di,te=>t(123,n=te));let _i=Pe.ui.scrubbingInProgress;D(i,_i,te=>t(126,C=te));let vi=Pe.ui.debugPanelVisible;D(i,vi,te=>t(61,Fe=te));let yi=Pe.state.isLoaderVisible;D(i,yi,te=>t(135,q=te));let Ht=Pe.state.isEnded$;D(i,Ht,te=>t(128,k=te));let Ui=Pe.state.chromecastConnected$;D(i,Ui,te=>t(40,Z=te));let qt=Pe.state.chromecastDeviceName$;D(i,qt,te=>t(56,se=te));let ei=Pe.ads.postrollPassed;D(i,ei,te=>t(129,P=te));let Ii=Pe.ui.mobileUnmuteButtonExpanded,Zt=Pe.ui.mobileUnmuteButtonVisible,Pi=Pe.state.isLive$;D(i,Pi,te=>t(60,Ye=te));let Ei=Pe.state.isPlaying$;D(i,Ei,te=>t(51,ve=te));let Me=Pe.state.isActiveLive$;D(i,Me,te=>t(124,u=te));let rt=Pe.state.isRewindableLive$,Wt=Pe.state.crashed$;D(i,Wt,te=>t(37,S=te));let wi=Pe.webApi.annotationsApi,Et=Pe.webApi.pictureInPictureApi,oi=Pe.state.videoSize$;D(i,oi,te=>t(151,h=te));let Ot=Pe.state.currentSubtitle$;D(i,Ot,te=>t(57,X=te));let ki=Pe.state.currentSubtitleCaptions$;D(i,ki,te=>t(58,re=te));let Cn=Pe.state.duration$;D(i,Cn,te=>t(59,oe=te));let zi=Pe.state.graphIsOpened$;D(i,zi,te=>t(132,Q=te));let pn=Pe.ui.playerSize;D(i,pn,te=>t(35,m=te));let mi=Pe.ui.is3DVideo;D(i,mi,te=>t(54,U=te));let Oi=Pe.ui.icon3DVideoVisible;D(i,Oi,te=>t(55,pe=te));let Wi=Pe.ui.rotateAlpha;D(i,Wi,te=>t(36,T=te));let tn=Pe.state.isInteractive,Fi=Pe.state.isInteractiveTime$;D(i,Fi,te=>t(127,A=te));let _n=Pe.state.isInteractiveExpectation$;D(i,_n,te=>t(131,ae=te));let ri=Pe.state.hasInteractiveBranches,On=Pe.ui.controls.disabledControls$;D(i,On,te=>t(53,ie=te));let Ai=Pe.ui.touched;D(i,Ai,te=>t(130,x=te));let nn=Pe.ui.overlayContainer$,on=Pe.ui.autoplayNextEnabled$;D(i,on,te=>t(38,H=te));let rn=Pe.state.loadedMetadata$;D(i,rn,te=>t(149,s=te));let Ki=Pe.actions.internal.closeSettingsMenu,ji=($n=Pe.callbacks)==null?void 0:$n.onDisabledPlayPrevChapterClick,Mi=(fn=Pe.callbacks)==null?void 0:fn.onDisabledSeekToInteractiveClick,Ci,xi,si,pi,at,Li,jt,hi,Vi,sn=Ne(!1);D(i,sn,te=>t(50,v=te));let hn,Ri=!1,Gi,li=!1,je,gn=!0,ln,Yi=!1,an,Qi=!1,Zi;Et==null||Et.setContext(Jr());let Yn=te=>{clearTimeout(Li),te&&(Zt.set(!0),Ii.set(!0),Li=setTimeout(()=>{Ii.set(!1)},Se.controls.collapseMobileUnmute),tn||gi(Se.controls.hideTimeoutMobile))};Pe.setUiCallbacks({onStarted:Yn});let Fn=()=>{clearTimeout(at),t(118,Ri=!1),g&&di.set(!1)},gi=te=>{Fn(),t(118,Ri=!0),at=setTimeout(()=>t(118,Ri=!1),te);let Vt=te-100;hn=setTimeout(()=>{v&&sn.set(!1)},Vt>0?Vt:te)},xn=mi.subscribe(te=>{Oi.set(te),te&&(clearTimeout(jt),jt=setTimeout(()=>Oi.set(!1),Se.controls.hide360IconTimeout))}),bn=async(te=qo())=>{var Vt,ne,yn,ko;if(te&&!cs.isIOS){let Ji=is(),qn=Hi(),fo=cs.isSamsungBrowser&&Ji===yt;te=Ji===qn||fo}if(te){gi(Se.controls.hideTimeoutFullscreen);try{await(Et==null?void 0:Et.remove())}catch(Ji){Lt({message:String(Ji)})}try{let Ji=h!=null&&h.width&&(h!=null&&h.height)?h:m;await Kd(Ji)}catch(Ji){Lt({message:String(Ji)})}}ni.set(te),Pe.getAdmanWrapper().setFullscreen(te),c?(ne=(Vt=Pe.callbacks)==null?void 0:Vt.onFullscreenEnter)==null||ne.call(Vt):(ko=(yn=Pe.callbacks)==null?void 0:yn.onFullscreenExit)==null||ko.call(yn)},Sn=te=>{let Vt=te;pn.set({width:Vt.target.width,height:Vt.target.height})};Ct(()=>{var te;return xs(bn),Se.features.annotationsInside&&(wi==null||wi.init(Ci)),sr(Et)&&(Et==null||Et.assignPlayerContainer(Ci),Et==null||Et.registryExternalEventHandlers({resize:Sn})),t(45,gn=!cs.isIphoneOrOldIpad),J&&((te=He.parentElement)==null||te.insertBefore(J,He.nextSibling)),()=>{clearTimeout(at),clearTimeout(hn),clearTimeout(Li),clearTimeout(jt),xn(),Et==null||Et.dispose(),Hs(bn)}});let un=!0,cn=!0,vn=te=>{let Vt=l+(te==="forward"?1:-1)*Se.controls.seekStepMobile/1e3;Vt<0?(t(48,un=!1),Vt=0):Vt>=a&&(t(49,cn=!1),Vt=a),t(120,li=!0),St(Vt)},Hi=()=>{let te=cs.isIOS||Se.features.fullscreenInternalTargetPlayerContainer||!Ze?Ci:Ze,Vt=te.getRootNode(),ne=Vt instanceof ShadowRoot?Vt.host:Vt,yn=Rt instanceof HTMLElement&&Rt.contains(ne);return Se.allowChangingFullscreenTarget&&Rt&&yn?Rt:te},Xi=async()=>{try{if(qo())await Fs(document),Lt({message:"exit fullscreen"});else{if(Lt({message:"request fullscreen"}),cs.isIOS&&!s)return;await Os(Hi())}}catch(te){Lt({message:String(te)})}},Hn=()=>{Ki()},ro=()=>{if(o){Hn();return}if(!Ft){ot(),gi(Se.controls.hideTimeoutCursor);return}t(120,li=!1),r?Fn():gi(Se.controls.hideTimeoutMobile)},so=()=>{if(o){Hn();return}},ai=()=>{Ai.set(!0)},lo=()=>{tn||(sn.set(!0),gi(Se.controls.hideTimeoutCursor))},ao=te=>{ji&&(ji(te),gi(Se.controls.hideTimeoutMobile))},Qn=te=>{Mi&&(Mi(te),gi(Se.controls.hideTimeoutMobile))};L_({fullScreenChangeHandler:bn,getFullscreenTarget:Hi}),V_({store:Pe,getFullscreenTarget:Hi});function uo(te){we[te?"unshift":"push"](()=>{He=te,t(0,He)})}let co=()=>vn("backward"),Zn=()=>vn("forward"),Xn=()=>t(29,Yi=!0);function Tn(te){xi=te,t(42,xi)}function Jn(te){si=te,t(43,si)}function yo(te){pi=te,t(27,pi)}function wo(te){we[te?"unshift":"push"](()=>{Vi=te,t(28,Vi)})}function qi(te){we[te?"unshift":"push"](()=>{Ci=te,t(41,Ci)})}return i.$$set=te=>{"store"in te&&t(111,Pe=te.store),"uiConfig"in te&&t(1,Se=te.uiConfig),"thumbUrl"in te&&t(2,Ae=te.thumbUrl),"videoContainer"in te&&t(0,He=te.videoContainer),"interactiveContainer"in te&&t(112,J=te.interactiveContainer),"live"in te&&t(3,ge=te.live),"autoplay"in te&&t(4,Ie=te.autoplay),"canRewindLive"in te&&t(5,Ge=te.canRewindLive),"showAds"in te&&t(6,nt=te.showAds),"adsSlotId"in te&&t(7,lt=te.adsSlotId),"adsParams"in te&&t(8,ut=te.adsParams),"adsPreviewParam"in te&&t(9,et=te.adsPreviewParam),"duration"in te&&t(10,me=te.duration),"logoClickable"in te&&t(11,tt=te.logoClickable),"logoHidden"in te&&t(12,De=te.logoHidden),"logoTargetUrl"in te&&t(13,st=te.logoTargetUrl),"nextButtonActive"in te&&t(14,Qe=te.nextButtonActive),"prevButtonActive"in te&&t(15,he=te.prevButtonActive),"endScreenVideoTitle"in te&&t(16,Ke=te.endScreenVideoTitle),"endScreenVideoThumb"in te&&t(17,ft=te.endScreenVideoThumb),"isOneVideoPlaylist"in te&&t(18,be=te.isOneVideoPlaylist),"supportLink"in te&&t(19,pt=te.supportLink),"shadowRootContainer"in te&&t(113,yt=te.shadowRootContainer),"outerContainerRef"in te&&t(114,Ze=te.outerContainerRef),"showMiniTimer"in te&&t(115,It=te.showMiniTimer),"fullScreenTarget"in te&&t(116,Rt=te.fullScreenTarget),"playerStarted"in te&&t(20,Ft=te.playerStarted),"showEndScreen"in te&&t(21,ti=te.showEndScreen),"showAutoplayNext"in te&&t(22,Bt=te.showAutoplayNext),"showNextPrevButtons"in te&&t(23,Kt=te.showNextPrevButtons),"seekToInteractive"in te&&t(24,Gt=te.seekToInteractive),"playPrevChapter"in te&&t(25,Nt=te.playPrevChapter),"firstStart"in te&&t(26,ot=te.firstStart),"seekTime"in te&&t(117,St=te.seekTime)},i.$$.update=()=>{i.$$.dirty[1]&320|i.$$.dirty[4]&3072&&t(44,hi=(M==="video"&&q||M==="ads"&&W==="inactive")&&!S),i.$$.dirty[0]&268435456&&nn.set(Vi),i.$$.dirty[4]&512&&t(119,Gi=ee!==Vy.PLAYING),i.$$.dirty[3]&100663296|i.$$.dirty[4]&402&&t(121,je=Q||g||!Ri&&(k&&!!ri||Gi&&ae)),i.$$.dirty[0]&543359040|i.$$.dirty[1]&192|i.$$.dirty[4]&48&&t(30,an=(ti||Bt&&H)&&!!Ke&&!!ft&&(nt&&P||!nt)&&k&&!S&&!Yi),i.$$.dirty[0]&1073741824|i.$$.dirty[1]&833|i.$$.dirty[3]&503316480|i.$$.dirty[4]&20&&zt.set((Gi||o||C||Z||!an&&(k||Ri&&!li))&&!je&&M==="video"&&!S),i.$$.dirty[0]&2|i.$$.dirty[1]&322|i.$$.dirty[3]&4194304|i.$$.dirty[4]&64&&t(46,ln=Se.features.thumbTimer&&It&&M==="video"&&!r&&!S&&!tn&&(Se.hideThumbTimerAfterTouch&&!x||!Se.hideThumbTimerAfterTouch)),i.$$.dirty[0]&2|i.$$.dirty[3]&536870912|i.$$.dirty[4]&12&&(!C&&Qi&&!A&&gi(Se.controls.hideTimeoutMobile),t(122,Qi=C)),i.$$.dirty[0]&1|i.$$.dirty[1]&48&&t(47,Zi=He&&T%180?m.height/m.width:1),i.$$.dirty[1]&12|i.$$.dirty[4]&1&&(t(48,un=l>0),t(49,cn=!u&&l<a)),i.$$.dirty[0]&134217728|i.$$.dirty[1]&1|i.$$.dirty[3]&1073741824&&bo(pi,o,n)},[He,Se,Ae,ge,Ie,Ge,nt,lt,ut,et,me,tt,De,st,Qe,he,Ke,ft,be,pt,Ft,ti,Bt,Kt,Gt,Nt,ot,pi,Vi,Yi,an,o,r,a,l,m,T,S,H,M,Z,Ci,xi,si,hi,gn,ln,Zi,un,cn,v,ve,z,ie,U,pe,se,X,re,oe,Ye,Fe,fe,$e,kt,ii,Ut,Dt,ni,zt,di,Ti,Di,_i,vi,yi,Ht,Ui,qt,ei,Pi,Ei,Me,rt,Wt,oi,Ot,ki,Cn,zi,pn,mi,Oi,Wi,tn,Fi,_n,On,Ai,on,rn,sn,vn,Xi,Hn,ro,so,ai,lo,ao,Qn,Pe,J,yt,Ze,It,Rt,St,Ri,Gi,li,je,Qi,n,u,g,C,A,k,P,x,ae,Q,ee,W,q,uo,co,Zn,Xn,Tn,Jn,yo,wo,qi]}var Ef=class extends O{constructor(e){super(),F(this,e,Dy,Ny,N,{store:111,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:112,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,nextButtonActive:14,prevButtonActive:15,endScreenVideoTitle:16,endScreenVideoThumb:17,isOneVideoPlaylist:18,supportLink:19,shadowRootContainer:113,outerContainerRef:114,showMiniTimer:115,fullScreenTarget:116,playerStarted:20,showEndScreen:21,showAutoplayNext:22,showNextPrevButtons:23,seekToInteractive:24,playPrevChapter:25,firstStart:26,seekTime:117},By,[-1,-1,-1,-1,-1,-1])}},X_=Ef;function qy(i){ye(i,"svelte-zbipwr",`.root.svelte-zbipwr{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0, 0, 0, 0.40);--white-alpha-24:rgba(255, 255, 255, 0.24);--white-alpha-72:rgba(255, 255, 255, 0.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left:4px;--focused:var(--white);--focused-element-shadow:inset 0 0 0 2px var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0, 0, 0, 0.5);--big-play-hover-bg-color:rgba(0, 0, 0, 0.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:rgba(92, 156, 230, 1);--slider-height:5px;--slider-video-episode-gap:1.5px;--slider-radius:calc(var(--slider-height) / 2);--slider-handle-size:13px;--slider-bg:rgba(255, 255, 255, 0.4);--slider-loaded-bg:rgba(255, 255, 255, 0.4);--slider-filled-bg:var(--white);--slider-filled-active-live-bg:var(--red);--slider-filled-ads:rgba(103, 165, 235, 1);--slider-disabled-color:rgba(248, 248, 248, 0.31);--controls-gradient:linear-gradient(
|
|
34
|
+
)}.hidden.svelte-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function W6(i){let e,t;return{c(){e=T("div"),t=Oe(i[0]),f(e,"class","title svelte-1bcvcf2"),K(e,"hidden",i[1])},m(n,o){k(n,e,o),_(e,t)},p(n,[o]){o&1&&Ke(t,n[0]),o&2&&K(e,"hidden",n[1])},i:_e,o:_e,d(n){n&&w(e)}}}function K6(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 Jc=class extends O{constructor(e){super(),F(this,e,K6,W6,D,{title:0,isHidden:1},z6)}},P0=Jc;function j6(i){ve(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 E0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=Oe(i[0]),o=G(),r=T("span"),r.textContent=`${j("waiting_live_day_value")}`,l=G(),a=T("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(s,u){k(s,e,u),_(e,t),_(t,n),_(e,o),_(e,r),k(s,l,u),k(s,a,u)},p(s,u){u&1&&Ke(n,s[0])},d(s){s&&(w(e),w(l),w(a))}}}function A0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=Oe(i[1]),o=G(),r=T("span"),r.textContent=`${j("waiting_live_hour_value")}`,l=G(),a=T("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(s,u){k(s,e,u),_(e,t),_(t,n),_(e,o),_(e,r),k(s,l,u),k(s,a,u)},p(s,u){u&2&&Ke(n,s[1])},d(s){s&&(w(e),w(l),w(a))}}}function M0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=Oe(i[2]),o=G(),r=T("span"),r.textContent=`${j("waiting_live_minute_value")}`,l=G(),a=T("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(s,u){k(s,e,u),_(e,t),_(t,n),_(e,o),_(e,r),k(s,l,u),k(s,a,u)},p(s,u){u&4&&Ke(n,s[2])},d(s){s&&(w(e),w(l),w(a))}}}function L0(i){let e,t,n,o,r;return{c(){e=T("div"),t=T("span"),n=Oe(i[3]),o=G(),r=T("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(l,a){k(l,e,a),_(e,t),_(t,n),_(e,o),_(e,r)},p(l,a){a&8&&Ke(n,l[3])},d(l){l&&w(e)}}}function G6(i){let e,t,n,o,r=i[0]&&E0(i),l=i[1]&&A0(i),a=i[2]&&M0(i),s=i[3]&&L0(i);return{c(){e=T("div"),r&&r.c(),t=G(),l&&l.c(),n=G(),a&&a.c(),o=G(),s&&s.c(),f(e,"class","timer__container svelte-1qpxtfg")},m(u,c){k(u,e,c),r&&r.m(e,null),_(e,t),l&&l.m(e,null),_(e,n),a&&a.m(e,null),_(e,o),s&&s.m(e,null)},p(u,[c]){u[0]?r?r.p(u,c):(r=E0(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?l?l.p(u,c):(l=A0(u),l.c(),l.m(e,n)):l&&(l.d(1),l=null),u[2]?a?a.p(u,c):(a=M0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,c):(s=L0(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:_e,o:_e,d(u){u&&w(e),r&&r.d(),l&&l.d(),a&&a.d(),s&&s.d()}}}function Y6(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,l,a,s,u,c=v=>String(v).padStart(2,"0"),m=v=>{let g=Math.floor(v/86400);g&&(v-=g*86400,t(0,r=c(g)));let S=Math.floor(v/3600);t(1,l=c(S));let y=Math.floor(v/60)%60;t(2,a=c(y));let A=v%60;t(3,s=c(A))},h=()=>{let v=Math.floor(Date.now()/1e3),g=n-v;m(g),g>=1?u=requestAnimationFrame(h):o()};return Ct(()=>{u=requestAnimationFrame(h)}),Rn(()=>{cancelAnimationFrame(u)}),i.$$set=v=>{"startTime"in v&&t(4,n=v.startTime),"onTimerOver"in v&&t(5,o=v.onTimerOver)},[r,l,a,s,n,o]}var $c=class extends O{constructor(e){super(),F(this,e,Y6,G6,D,{startTime:4,onTimerOver:5},j6)}},V0=$c;function Q6(i){let e,t,n,o,r,l,a=i[2].default,s=Ve(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=le(c,u[m]);return{c(){e=N("svg"),s&&s.c(),t=N("path"),n=N("path"),o=N("path"),r=N("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"),pi(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"),pi(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"),pi(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"),pi(r,"opacity",".986"),ke(e,c)},m(m,h){k(m,e,h),s&&s.m(e,null),_(e,t),_(e,n),_(e,o),_(e,r),l=!0},p(m,[h]){s&&s.p&&(!l||h&2)&&Be(s,a,m,m[1],l?Re(a,m[1],h,null):Ne(m[1]),null),ke(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){l||(d(s,m),l=!0)},o(m){p(s,m),l=!1},d(m){m&&w(e),s&&s.d(m)}}}function Z6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var ef=class extends O{constructor(e){super(),F(this,e,Z6,Q6,D,{})}},R0=ef;function X6(i){ve(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 J6(i){let e,t,n,o,r;return o=new V0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=T("div"),t=T("span"),t.textContent=`${j("waiting_live_timer_title")}`,n=G(),R(o.$$.fragment),f(t,"class","timer__title svelte-15pewff"),f(e,"class","waiting-timer timer svelte-15pewff")},m(l,a){k(l,e,a),_(e,t),_(e,n),M(o,e,null),r=!0},p(l,a){let s={};a&2&&(s.startTime=l[1]||0),a&4&&(s.onTimerOver=l[3]),o.$set(s)},i(l){r||(d(o.$$.fragment,l),r=!0)},o(l){p(o.$$.fragment,l),r=!1},d(l){l&&w(e),L(o)}}}function $6(i){let e,t,n,o,r,l;return n=new R0({}),{c(){e=T("div"),t=T("div"),R(n.$$.fragment),o=G(),r=T("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,s){k(a,e,s),_(e,t),M(n,t,null),_(e,o),_(e,r),l=!0},p:_e,i(a){l||(d(n.$$.fragment,a),l=!0)},o(a){p(n.$$.fragment,a),l=!1},d(a){a&&w(e),L(n)}}}function e8(i){let e,t,n,o,r,l=[$6,J6],a=[];function s(u,c){return u[2]?0:1}return t=s(i,-1),n=a[t]=l[t](i),{c(){e=T("div"),n.c(),f(e,"class","waiting-container svelte-15pewff"),f(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,c){k(u,e,c),a[t].m(e,null),r=!0},p(u,[c]){let m=t;t=s(u,c),t===m?a[t].p(u,c):(ce(),p(a[m],1,1,()=>{a[m]=null}),fe(),n=a[t],n?n.p(u,c):(n=a[t]=l[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&&w(e),a[t].d()}}}function t8(i,e,t){let n,{thumbUrl:o}=e,{startTime:r}=e,l=()=>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,l]}var tf=class extends O{constructor(e){super(),F(this,e,t8,e8,D,{thumbUrl:0,startTime:1},X6)}},xl=tf;function i8(i){ve(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 n8(i){let e,t,n,o,r,l,a,s;return n=new Mr({props:{style:"position: static; transform: translate(0, 0)"}}),{c(){e=T("div"),t=T("div"),R(n.$$.fragment),o=G(),r=T("p"),l=Oe(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){k(u,e,c),_(e,t),M(n,t,null),_(t,o),_(t,r),_(r,l),s=!0},p(u,[c]){(!s||c&2)&&Ke(l,u[1]),(!s||c&1&&a!==(a=`background-image: url('${u[0]}')`))&&f(e,"style",a)},i(u){s||(d(n.$$.fragment,u),s=!0)},o(u){p(n.$$.fragment,u),s=!1},d(u){u&&w(e),L(n)}}}function o8(i,e,t){let{thumbUrl:n=""}=e,{kind:o}=e,r;return i.$$set=l=>{"thumbUrl"in l&&t(0,n=l.thumbUrl),"kind"in l&&t(2,o=l.kind)},i.$$.update=()=>{if(i.$$.dirty&4){let l={recover:j("waiting_live_recover_title"),record:j("waiting_record_title")};t(1,r=l[o]||"")}},[n,r,o]}var nf=class extends O{constructor(e){super(),F(this,e,o8,n8,D,{thumbUrl:0,kind:2},i8)}},Hr=nf;var Hl=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),ql=(i,e)=>{var l;if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=(l=vl(t))!=null?l:t),n&&t&&o){let a=e.filter(s=>s.label===n&&s.language===t);if(a.length===1)return j("audio_stream_display_language_label",{language:o,label:n});{let s=Hl(i,a);return j("audio_stream_display_language_label_index",{language:o,label:n,index:s})}}if(n){let a=e.filter(s=>s.label===n);if(a.length===1)return n;{let s=Hl(i,a);return j("audio_stream_display_label_index",{label:n,index:s})}}if(t&&o){let a=e.filter(s=>s.language===t);if(a.length===1)return o;{let s=Hl(i,a);return j("audio_stream_display_language_index",{language:o,index:s})}}let r=Hl(i,e);return j("audio_stream_display_unknown",{index:r})};function r8(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("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"),ke(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),_(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,s,s[1],n?Re(o,s[1],u,null):Ne(s[1]),null),ke(e,a=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){p(r,s),n=!1},d(s){s&&w(e),r&&r.d(s)}}}function s8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var of=class extends O{constructor(e){super(),F(this,e,s8,r8,D,{})}},B0=of;function l8(i){ve(i,"svelte-124aexk",".select-icon.svelte-124aexk{margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px}")}function N0(i){let e,t,n;return t=new B0({}),{c(){e=T("div"),R(t.$$.fragment),f(e,"class","select-icon svelte-124aexk")},m(o,r){k(o,e,r),M(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&&w(e),L(t)}}}function a8(i){var o;let e,t=((o=i[1].label)!=null?o:i[1].value)+"",n;return{c(){e=T("div"),n=Oe(t),f(e,"class","menu-item-value"),K(e,"submenu-value-mobile",i[0])},m(r,l){k(r,e,l),_(e,n)},p(r,l){var a;l&2&&t!==(t=((a=r[1].label)!=null?a:r[1].value)+"")&&Ke(n,t),l&1&&K(e,"submenu-value-mobile",r[0])},i:_e,o:_e,d(r){r&&w(e)}}}function u8(i){var a;let e,t,n,o=[(a=i[1].valueComponentParams)!=null?a:{}];var r=i[1].valueComponent;function l(s,u){var m;let c={};for(let h=0;h<o.length;h+=1)c=le(c,o[h]);return u!==void 0&&u&2&&(c=le(c,He(o,[Oo((m=s[1].valueComponentParams)!=null?m:{})]))),{props:c}}return r&&(e=Dt(r,l(i))),{c(){e&&R(e.$$.fragment),t=Je()},m(s,u){e&&M(e,s,u),k(s,t,u),n=!0},p(s,u){var c;if(u&2&&r!==(r=s[1].valueComponent)){if(e){ce();let m=e;p(m.$$.fragment,1,0,()=>{L(m,1)}),fe()}r?(e=Dt(r,l(s,u)),R(e.$$.fragment),d(e.$$.fragment,1),M(e,t.parentNode,t)):e=null}else if(r){let m=u&2?He(o,[Oo((c=s[1].valueComponentParams)!=null?c:{})]):{};e.$set(m)}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&w(t),e&&L(e,s)}}}function c8(i){let e,t,n,o,r,l,a,s,u,c=i[1].selected&&N0(i),m=[u8,a8],h=[];function v(g,S){return g[1].valueComponent?0:1}return n=v(i,-1),o=h[n]=m[n](i),{c(){var g,S,y;e=T("li"),c&&c.c(),t=G(),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",l=(y=(S=i[1].ariaLabel)!=null?S:i[1].label)!=null?y:i[1].value.toString()),K(e,"mobile",i[0])},m(g,S){k(g,e,S),c&&c.m(e,null),_(e,t),h[n].m(e,null),a=!0,s||(u=[Se(e,"click",vt(i[4])),Se(e,"keydown",i[5])],s=!0)},p(g,[S]){var A,I,C;g[1].selected?c?S&2&&d(c,1):(c=N0(g),c.c(),d(c,1),c.m(e,t)):c&&(ce(),p(c,1,1,()=>{c=null}),fe());let y=n;n=v(g,S),n===y?h[n].p(g,S):(ce(),p(h[y],1,1,()=>{h[y]=null}),fe(),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=(A=g[1].dataValue)!=null?A:g[1].value))&&f(e,"data-value",r),(!a||S&2&&l!==(l=(C=(I=g[1].ariaLabel)!=null?I:g[1].label)!=null?C:g[1].value.toString()))&&f(e,"aria-label",l),(!a||S&1)&&K(e,"mobile",g[0])},i(g){a||(d(c),d(o),a=!0)},o(g){p(c),p(o),a=!1},d(g){g&&w(e),c&&c.d(),h[n].d(),s=!1,ut(u)}}}function f8(i,e,t){let{isMobile:n=!1}=e,{item:o}=e,{selectItem:r}=e,l=(u,c)=>{Er(u,()=>r(c))},a=()=>r(o.value),s=u=>l(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,l,a,s]}var rf=class extends O{constructor(e){super(),F(this,e,f8,c8,D,{isMobile:0,item:1,selectItem:2},l8)}},D0=rf;function d8(i){let e,t,n=i[2].label+"",o,r,l,a,s;return{c(){var u;e=T("li"),t=T("div"),o=Oe(n),f(t,"class","menu-item-value"),K(t,"submenu-value-mobile",i[1]),f(e,"class","item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",r=(u=i[2].ariaLabel)!=null?u:i[2].label),f(e,"aria-haspopup","true"),f(e,"data-testid",l=i[2].id),K(e,"mobile",i[1])},m(u,c){k(u,e,c),_(e,t),_(t,o),i[6](e),a||(s=[Se(e,"click",vt(function(){Qt(i[3])&&i[3].apply(this,arguments)})),Se(e,"keydown",function(){Qt(i[4])&&i[4].apply(this,arguments)})],a=!0)},p(u,[c]){var m;i=u,c&4&&n!==(n=i[2].label+"")&&Ke(o,n),c&2&&K(t,"submenu-value-mobile",i[1]),c&4&&r!==(r=(m=i[2].ariaLabel)!=null?m:i[2].label)&&f(e,"aria-label",r),c&4&&l!==(l=i[2].id)&&f(e,"data-testid",l),c&2&&K(e,"mobile",i[1])},i:_e,o:_e,d(u){u&&w(e),i[6](null),a=!1,ut(s)}}}function m8(i,e,t){let n,o,{isMobile:r=!1}=e,{item:l}=e,{openSubMenuList:a}=e,{refMenuItems:s}=e;function u(c){ye[c?"unshift":"push"](()=>{s[l.id]=c,t(0,s)})}return i.$$set=c=>{"isMobile"in c&&t(1,r=c.isMobile),"item"in c&&t(2,l=c.item),"openSubMenuList"in c&&t(5,a=c.openSubMenuList),"refMenuItems"in c&&t(0,s=c.refMenuItems)},i.$$.update=()=>{i.$$.dirty&36&&t(3,n=()=>a(l.subMenuId)),i.$$.dirty&12&&t(4,o=c=>Ks(c,n,l.getSubItemForFocus))},[s,r,l,n,o,a,u]}var sf=class extends O{constructor(e){super(),F(this,e,m8,d8,D,{isMobile:1,item:2,openSubMenuList:5,refMenuItems:0})}},O0=sf;var to={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};function h8(i){ve(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 F0(i,e,t){let n=i.slice();return n[25]=e[t],n}function g8(i){let e,t;return e=new O0({props:{isMobile:i[2],item:i[25],openSubMenuList:i[6],refMenuItems:i[9]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.isMobile=n[2]),o&128&&(r.item=n[25]),o&64&&(r.openSubMenuList=n[6]),o&512&&(r.refMenuItems=n[9]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function b8(i){let e,t;return e=new D0({props:{item:i[25],isMobile:i[2],selectItem:i[25].selectItem}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let r={};o&128&&(r.item=n[25]),o&4&&(r.isMobile=n[2]),o&128&&(r.selectItem=n[25].selectItem),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function x0(i){let e,t,n,o,r=[b8,g8],l=[];function a(s,u){return s[25].type==="SELECT_VALUE"?0:s[25].type==="OPEN_SUB_MENU"?1:-1}return~(e=a(i,-1))&&(t=l[e]=r[e](i)),{c(){t&&t.c(),n=Je()},m(s,u){~e&&l[e].m(s,u),k(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?~e&&l[e].p(s,u):(t&&(ce(),p(l[c],1,1,()=>{l[c]=null}),fe()),~e?(t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n)):t=null)},i(s){o||(d(t),o=!0)},o(s){p(t),o=!1},d(s){s&&w(n),~e&&l[e].d(s)}}}function v8(i){let e,t,n,o,r,l,a,s,u,c,m,h,v,g;o=new cr({props:{direction:"left"}});let S=wt(i[7]),y=[];for(let I=0;I<S.length;I+=1)y[I]=x0(F0(i,S,I));let A=I=>p(y[I],1,1,()=>{y[I]=null});return{c(){var I;e=T("div"),t=T("ul"),n=T("li"),R(o.$$.fragment),r=G(),l=T("div"),a=Oe(i[5]),s=G();for(let C=0;C<y.length;C+=1)y[C].c();f(n,"class","item header back svelte-1mrc4z3"),f(n,"role","menuitem"),f(n,"tabindex","0"),f(n,"data-testid","return-to-settings-menu"),f(n,"aria-label",i[4]),K(n,"mobile",i[2]),f(t,"class","items"),f(t,"role","menu"),f(t,"style",u=i[15]((I=i[10])==null?void 0:I.clientHeight)),K(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`),K(e,"desktop",!i[2]),K(e,"mobile",i[2])},m(I,C){k(I,e,C),_(e,t),_(t,n),M(o,n,null),_(n,r),_(n,l),_(l,a),i[20](n),_(t,s);for(let P=0;P<y.length;P+=1)y[P]&&y[P].m(t,null);i[21](t),h=!0,v||(g=[Se(n,"click",vt(function(){Qt(i[3])&&i[3].apply(this,arguments)})),Se(n,"keydown",i[14]),Se(t,"keydown",i[13])],v=!0)},p(I,[C]){var P;if(i=I,(!h||C&32)&&Ke(a,i[5]),(!h||C&16)&&f(n,"aria-label",i[4]),(!h||C&4)&&K(n,"mobile",i[2]),C&708){S=wt(i[7]);let U;for(U=0;U<S.length;U+=1){let x=F0(i,S,U);y[U]?(y[U].p(x,C),d(y[U],1)):(y[U]=x0(x),y[U].c(),d(y[U],1),y[U].m(t,null))}for(ce(),U=S.length;U<y.length;U+=1)A(U);fe()}(!h||C&1024&&u!==(u=i[15]((P=i[10])==null?void 0:P.clientHeight)))&&f(t,"style",u),(!h||C&4)&&K(t,"mobile",i[2]),(!h||C&2&&c!==(c=`sub-menu-${i[1]}`))&&f(e,"data-testid",c),(!h||C&256&&m!==(m=`min-width: ${i[8]}px`))&&f(e,"style",m),(!h||C&4)&&K(e,"desktop",!i[2]),(!h||C&4)&&K(e,"mobile",i[2])},i(I){if(!h){d(o.$$.fragment,I);for(let C=0;C<S.length;C+=1)d(y[C]);h=!0}},o(I){p(o.$$.fragment,I),y=y.filter(Boolean);for(let C=0;C<y.length;C+=1)p(y[C]);h=!1},d(I){I&&w(e),L(o),i[20](null),di(y,I),i[21](null),v=!1,ut(g)}}}function y8(i,e,t){let n,o,{id:r}=e,{parentItemId:l}=e,{isMobile:a=!1}=e,{playerControlsHeight:s=0}=e,{returnFromSubMenu:u}=e,{ariaLabelReturnFromSubMenu:c=j("aria_label_submenu_back")}=e,{title:m}=e,{listRef:h}=e,{closeSettingsMenu:v}=e,{openSubMenuList:g}=e,{itemIdReturnCase:S}=e,{items:y}=e,{minWidth:A}=e,{refMenuItems:I}=e,C=it(),P=C.ui.isFullscreen;B(i,P,q=>t(23,o=q));let U=C.ui.playerSize;B(i,U,q=>t(22,n=q));let x,V=q=>{u1(q,u,{itemIdReturnCase:S,id:l},v)},Z=q=>{ts(q)&&(Wn(q),u(),S.set(l))},ae=(q=0)=>a&&o?`max-height: ${Math.round(n.height*.6)}px`:a?"":`max-height: ${n.height-32-q-s}px; overflow: auto;`;function Q(q){ye[q?"unshift":"push"](()=>{x=q,t(10,x)})}function ue(q){ye[q?"unshift":"push"](()=>{h=q,t(0,h)})}return i.$$set=q=>{"id"in q&&t(1,r=q.id),"parentItemId"in q&&t(16,l=q.parentItemId),"isMobile"in q&&t(2,a=q.isMobile),"playerControlsHeight"in q&&t(17,s=q.playerControlsHeight),"returnFromSubMenu"in q&&t(3,u=q.returnFromSubMenu),"ariaLabelReturnFromSubMenu"in q&&t(4,c=q.ariaLabelReturnFromSubMenu),"title"in q&&t(5,m=q.title),"listRef"in q&&t(0,h=q.listRef),"closeSettingsMenu"in q&&t(18,v=q.closeSettingsMenu),"openSubMenuList"in q&&t(6,g=q.openSubMenuList),"itemIdReturnCase"in q&&t(19,S=q.itemIdReturnCase),"items"in q&&t(7,y=q.items),"minWidth"in q&&t(8,A=q.minWidth),"refMenuItems"in q&&t(9,I=q.refMenuItems)},[h,r,a,u,c,m,g,y,A,I,x,P,U,V,Z,ae,l,s,v,S,Q,ue]}var lf=class extends O{constructor(e){super(),F(this,e,y8,v8,D,{id:1,parentItemId:16,isMobile:2,playerControlsHeight:17,returnFromSubMenu:3,ariaLabelReturnFromSubMenu:4,title:5,listRef:0,closeSettingsMenu:18,openSubMenuList:6,itemIdReturnCase:19,items:7,minWidth:8,refMenuItems:9},h8)}},H0=lf;import{noop as w8}from"@vkontakte/videoplayer-shared/es2018";function k8(i){ve(i,"svelte-1ikfjte",".value.svelte-1ikfjte{position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis}")}function C8(i){let e,t,n;var o=i[8];function r(l,a){return{}}return o&&(e=Dt(o,r(i))),{c(){e&&R(e.$$.fragment),t=Je()},m(l,a){e&&M(e,l,a),k(l,t,a),n=!0},p(l,a){if(a&256&&o!==(o=l[8])){if(e){ce();let s=e;p(s.$$.fragment,1,0,()=>{L(s,1)}),fe()}o?(e=Dt(o,r(l,a)),R(e.$$.fragment),d(e.$$.fragment,1),M(e,t.parentNode,t)):e=null}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&p(e.$$.fragment,l),n=!1},d(l){l&&w(t),e&&L(e,l)}}}function S8(i){let e,t;return e=new xr({props:{icon:i[8]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function T8(i){let e,t;return{c(){e=T("div"),t=Oe(i[6]),f(e,"class","value svelte-1ikfjte")},m(n,o){k(n,e,o),_(e,t)},p(n,o){o&64&&Ke(t,n[6])},i:_e,o:_e,d(n){n&&w(e)}}}function I8(i){let e,t,n;var o=i[7];function r(l,a){return{}}return o&&(e=Dt(o,r(i))),{c(){e&&R(e.$$.fragment),t=Je()},m(l,a){e&&M(e,l,a),k(l,t,a),n=!0},p(l,a){if(a&128&&o!==(o=l[7])){if(e){ce();let s=e;p(s.$$.fragment,1,0,()=>{L(s,1)}),fe()}o?(e=Dt(o,r(l,a)),R(e.$$.fragment),d(e.$$.fragment,1),M(e,t.parentNode,t)):e=null}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&p(e.$$.fragment,l),n=!1},d(l){l&&w(t),e&&L(e,l)}}}function P8(i){let e,t,n,o,r,l,a,s,u,c,m,h,v,g=[S8,C8],S=[];function y(P,U){return typeof P[8]=="string"?0:1}n=y(i,-1),o=S[n]=g[n](i);let A=[I8,T8],I=[];function C(P,U){return P[7]?0:1}return u=C(i,-1),c=I[u]=A[u](i),{c(){e=T("li"),t=T("div"),o.c(),r=G(),l=T("div"),a=Oe(i[4]),s=G(),c.c(),f(t,"class","icon-wrapper"),f(l,"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]),K(e,"mobile",i[2])},m(P,U){k(P,e,U),_(e,t),S[n].m(t,null),_(e,r),_(e,l),_(l,a),_(e,s),I[u].m(e,null),i[11](e),m=!0,h||(v=[Se(e,"click",vt(function(){Qt(i[3])&&i[3].apply(this,arguments)})),Se(e,"keydown",i[9])],h=!0)},p(P,[U]){i=P;let x=n;n=y(i,U),n===x?S[n].p(i,U):(ce(),p(S[x],1,1,()=>{S[x]=null}),fe(),o=S[n],o?o.p(i,U):(o=S[n]=g[n](i),o.c()),d(o,1),o.m(t,null)),(!m||U&16)&&Ke(a,i[4]);let V=u;u=C(i,U),u===V?I[u].p(i,U):(ce(),p(I[V],1,1,()=>{I[V]=null}),fe(),c=I[u],c?c.p(i,U):(c=I[u]=A[u](i),c.c()),d(c,1),c.m(e,null)),(!m||U&32)&&f(e,"aria-label",i[5]),(!m||U&2)&&f(e,"data-testid",i[1]),(!m||U&4)&&K(e,"mobile",i[2])},i(P){m||(d(o),d(c),m=!0)},o(P){p(o),p(c),m=!1},d(P){P&&w(e),S[n].d(),I[u].d(),i[11](null),h=!1,ut(v)}}}function E8(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:r=w8}=e,{getSubItemForFocus:l}=e,{label:a}=e,{ariaLabel:s}=e,{value:u}=e,{valueComponent:c=void 0}=e,{ref:m}=e,{icon:h}=e,v=S=>Ks(S,r,l);function g(S){ye[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,l=S.getSubItemForFocus),"label"in S&&t(4,a=S.label),"ariaLabel"in S&&t(5,s=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,s,u,c,h,v,l,g]}var uf=class extends O{constructor(e){super(),F(this,e,E8,P8,D,{id:1,isMobile:2,onClick:3,getSubItemForFocus:10,label:4,ariaLabel:5,value:6,valueComponent:7,ref:0,icon:8},k8)}},q0=uf;function A8(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("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"),ke(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),_(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,s,s[1],n?Re(o,s[1],u,null):Ne(s[1]),null),ke(e,a=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){p(r,s),n=!1},d(s){s&&w(e),r&&r.d(s)}}}function M8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var cf=class extends O{constructor(e){super(),F(this,e,M8,A8,D,{})}},U0=cf;function L8(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("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"),ke(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),_(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,s,s[1],n?Re(o,s[1],u,null):Ne(s[1]),null),ke(e,a=He(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){p(r,s),n=!1},d(s){s&&w(e),r&&r.d(s)}}}function V8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var ff=class extends O{constructor(e){super(),F(this,e,V8,L8,D,{})}},z0=ff;function R8(i){let e,t,n,o,r,l=i[2].default,a=Ve(l,i,i[1],null),s=[{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<s.length;c+=1)u=le(u,s[c]);return{c(){e=N("svg"),a&&a.c(),t=N("g"),n=N("path"),o=N("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"),ke(e,u)},m(c,m){k(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)&&Be(a,l,c,c[1],r?Re(l,c[1],m,null):Ne(c[1]),null),ke(e,u=He(s,[{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&&w(e),a&&a.d(c)}}}function B8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var df=class extends O{constructor(e){super(),F(this,e,B8,R8,D,{})}},W0=df;function N8(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("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"),ke(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),_(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,s,s[1],n?Re(o,s[1],u,null):Ne(s[1]),null),ke(e,a=He(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){p(r,s),n=!1},d(s){s&&w(e),r&&r.d(s)}}}function D8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var mf=class extends O{constructor(e){super(),F(this,e,D8,N8,D,{})}},K0=mf;function O8(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("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"),ke(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),_(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,s,s[1],n?Re(o,s[1],u,null):Ne(s[1]),null),ke(e,a=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){p(r,s),n=!1},d(s){s&&w(e),r&&r.d(s)}}}function F8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var pf=class extends O{constructor(e){super(),F(this,e,F8,O8,D,{})}},_f=pf;function x8(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("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"),ke(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),_(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,s,s[1],n?Re(o,s[1],u,null):Ne(s[1]),null),ke(e,a=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){p(r,s),n=!1},d(s){s&&w(e),r&&r.d(s)}}}function H8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var hf=class extends O{constructor(e){super(),F(this,e,H8,x8,D,{})}},j0=hf;function q8(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("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"),ke(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),_(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,s,s[1],n?Re(o,s[1],u,null):Ne(s[1]),null),ke(e,a=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){p(r,s),n=!1},d(s){s&&w(e),r&&r.d(s)}}}function U8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var gf=class extends O{constructor(e){super(),F(this,e,U8,q8,D,{})}},G0=gf;import"@vkontakte/videoplayer-core/es2018";function z8(i){ve(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 Y0(i){let e,t,n;var o=i[3];function r(l,a){return{}}return o&&(t=Dt(o,r(i))),{c(){e=T("div"),t&&R(t.$$.fragment),f(e,"class","quality-icon svelte-1a7qwh6")},m(l,a){k(l,e,a),t&&M(t,e,null),n=!0},p(l,a){if(a&8&&o!==(o=l[3])){if(t){ce();let s=t;p(s.$$.fragment,1,0,()=>{L(s,1)}),fe()}o?(t=Dt(o,r(l,a)),R(t.$$.fragment),d(t.$$.fragment,1),M(t,e,null)):t=null}},i(l){n||(t&&d(t.$$.fragment,l),n=!0)},o(l){t&&p(t.$$.fragment,l),n=!1},d(l){l&&w(e),t&&L(t)}}}function W8(i){let e,t,n,o,r,l=i[3]&&!i[1]&&Y0(i);return{c(){e=T("div"),t=T("span"),n=Oe(i[0]),o=G(),l&&l.c(),f(t,"class","svelte-1a7qwh6"),f(e,"class","menu-item-value svelte-1a7qwh6"),K(e,"sub",i[2])},m(a,s){k(a,e,s),_(e,t),_(t,n),_(e,o),l&&l.m(e,null),r=!0},p(a,[s]){(!r||s&1)&&Ke(n,a[0]),a[3]&&!a[1]?l?(l.p(a,s),s&10&&d(l,1)):(l=Y0(a),l.c(),d(l,1),l.m(e,null)):l&&(ce(),p(l,1,1,()=>{l=null}),fe()),(!r||s&4)&&K(e,"sub",a[2])},i(a){r||(d(l),r=!0)},o(a){p(l),r=!1},d(a){a&&w(e),l&&l.d()}}}function K8(i,e,t){let n,{quality:o}=e,{label:r}=e,{isMobile:l}=e,{isSubCase:a=!1}=e;return i.$$set=s=>{"quality"in s&&t(4,o=s.quality),"label"in s&&t(0,r=s.label),"isMobile"in s&&t(1,l=s.isMobile),"isSubCase"in s&&t(2,a=s.isSubCase)},i.$$.update=()=>{i.$$.dirty&16&&t(3,n=ol(o))},[r,l,a,n,o]}var bf=class extends O{constructor(e){super(),F(this,e,K8,W8,D,{quality:4,label:0,isMobile:1,isSubCase:2},z8)}},Ul=bf;import{VideoQuality as j8}from"@vkontakte/videoplayer-core/es2018";var zl=(i,e,t)=>{if(!i)return"...";let n=e.find(r=>r.value===i),o=n?n.displayValue:i;return t?i===j8.INVARIANT?j("auto_quality_invariant"):j("auto_quality",{actual:o}):o};function G8(i){ve(i,"svelte-vk2gx4",".menu-item-value-wrapper.svelte-vk2gx4{right:-22px;position:relative}")}function Y8(i){let e,t,n;return t=new Ul({props:{quality:i[0],label:i[1],isMobile:i[2]}}),{c(){e=T("div"),R(t.$$.fragment),f(e,"class","menu-item-value-wrapper svelte-vk2gx4")},m(o,r){k(o,e,r),M(t,e,null),n=!0},p(o,[r]){let l={};r&1&&(l.quality=o[0]),r&2&&(l.label=o[1]),r&4&&(l.isMobile=o[2]),t.$set(l)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),L(t)}}}function Q8(i,e,t){let n,o,r,l,a=it(),s=a.state.currentQuality$;B(i,s,v=>t(0,r=v));let u=a.state.availableQualities$;B(i,u,v=>t(8,o=v));let c=a.state.isAutoQualityEnabled$;B(i,c,v=>t(7,n=v));let m=a.ui.isMobile;B(i,m,v=>t(2,l=v));let h;return i.$$.update=()=>{i.$$.dirty&385&&t(1,h=zl(r,o,n))},[r,h,l,s,u,c,m,n,o]}var vf=class extends O{constructor(e){super(),F(this,e,Q8,Y8,D,{},G8)}},Q0=vf;import{noop as Z0}from"@vkontakte/videoplayer-shared/es2018";function Z8(i){let e,t,n;var o=i[4];function r(l,a){return{}}return o&&(e=Dt(o,r(i))),{c(){e&&R(e.$$.fragment),t=Je()},m(l,a){e&&M(e,l,a),k(l,t,a),n=!0},p(l,a){if(a&16&&o!==(o=l[4])){if(e){ce();let s=e;p(s.$$.fragment,1,0,()=>{L(s,1)}),fe()}o?(e=Dt(o,r(l,a)),R(e.$$.fragment),d(e.$$.fragment,1),M(e,t.parentNode,t)):e=null}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&p(e.$$.fragment,l),n=!1},d(l){l&&w(t),e&&L(e,l)}}}function X8(i){let e;function t(r,l){return r[5]?$8:J8}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Je()},m(r,l){o.m(r,l),k(r,e,l)},p(r,l){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:_e,o:_e,d(r){r&&w(e),o.d(r)}}}function J8(i){let e,t,n,o;return{c(){e=T("img"),f(e,"class","icon"),ko(e.src,t=i[4])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,l){k(r,e,l),n||(o=Se(e,"error",i[6]),n=!0)},p(r,l){l&16&&!ko(e.src,t=r[4])&&f(e,"src",t)},d(r){r&&w(e),n=!1,o()}}}function $8(i){let e;return{c(){e=T("div"),e.innerHTML='<div class="inner"></div>',f(e,"class","icon icon-error-stub")},m(t,n){k(t,e,n)},p:_e,d(t){t&&w(e)}}}function ey(i){let e,t,n,o,r,l,a,s,u,c,m,h=[X8,Z8],v=[];function g(S,y){return typeof S[4]=="string"?0:1}return n=g(i,-1),o=v[n]=h[n](i),{c(){var S;e=T("li"),t=T("div"),o.c(),r=G(),l=T("div"),a=Oe(i[2]),f(t,"class","icon-wrapper"),f(l,"class","label"),f(e,"class","item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=(S=i[3])!=null?S:i[2]),f(e,"data-testid",i[0]),K(e,"mobile",i[1])},m(S,y){k(S,e,y),_(e,t),v[n].m(t,null),_(e,r),_(e,l),_(l,a),u=!0,c||(m=[Se(e,"click",vt(i[7])),Se(e,"keydown",i[8])],c=!0)},p(S,[y]){var I;let A=n;n=g(S,y),n===A?v[n].p(S,y):(ce(),p(v[A],1,1,()=>{v[A]=null}),fe(),o=v[n],o?o.p(S,y):(o=v[n]=h[n](S),o.c()),d(o,1),o.m(t,null)),(!u||y&4)&&Ke(a,S[2]),(!u||y&12&&s!==(s=(I=S[3])!=null?I:S[2]))&&f(e,"aria-label",s),(!u||y&1)&&f(e,"data-testid",S[0]),(!u||y&2)&&K(e,"mobile",S[1])},i(S){u||(d(o),u=!0)},o(S){p(o),u=!1},d(S){S&&w(e),v[n].d(),c=!1,ut(m)}}}function ty(i,e,t){let n,{id:o}=e,{isMobile:r=!1}=e,{onClick:l=Z0}=e,{closeSettings:a=Z0}=e,{label:s}=e,{ariaLabel:u}=e,{icon:c}=e,m=()=>{t(5,n=!0)},h=()=>{l(),a()},v=g=>{Er(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,l=g.onClick),"closeSettings"in g&&t(10,a=g.closeSettings),"label"in g&&t(2,s=g.label),"ariaLabel"in g&&t(3,u=g.ariaLabel),"icon"in g&&t(4,c=g.icon)},t(5,n=!1),[o,r,s,u,c,n,m,h,v,l,a]}var yf=class extends O{constructor(e){super(),F(this,e,ty,ey,D,{id:0,isMobile:1,onClick:9,closeSettings:10,label:2,ariaLabel:3,icon:4})}},X0=yf;import{noop as ry}from"@vkontakte/videoplayer-shared/es2018";function iy(i){ve(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 ny(i){let e,t,n,o;return{c(){e=T("div"),t=T("div"),n=G(),o=T("div"),f(t,"class","toggle svelte-17wbjko"),K(t,"on",i[0]),f(o,"class","toggle-label svelte-17wbjko"),f(e,"class","toggle_wrap svelte-17wbjko")},m(r,l){k(r,e,l),_(e,t),_(e,n),_(e,o)},p(r,[l]){l&1&&K(t,"on",r[0])},i:_e,o:_e,d(r){r&&w(e)}}}function oy(i,e,t){let{enabled:n=!1}=e;return i.$$set=o=>{"enabled"in o&&t(0,n=o.enabled)},[n]}var wf=class extends O{constructor(e){super(),F(this,e,oy,ny,D,{enabled:0},iy)}},J0=wf;function sy(i){let e,t,n;var o=i[4];function r(l,a){return{}}return o&&(e=Dt(o,r(i))),{c(){e&&R(e.$$.fragment),t=Je()},m(l,a){e&&M(e,l,a),k(l,t,a),n=!0},p(l,a){if(a&16&&o!==(o=l[4])){if(e){ce();let s=e;p(s.$$.fragment,1,0,()=>{L(s,1)}),fe()}o?(e=Dt(o,r(l,a)),R(e.$$.fragment),d(e.$$.fragment,1),M(e,t.parentNode,t)):e=null}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&p(e.$$.fragment,l),n=!1},d(l){l&&w(t),e&&L(e,l)}}}function ly(i){let e,t;return e=new xr({props:{icon:i[4]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function ay(i){let e,t,n,o,r,l,a,s,u,c,m=[ly,sy],h=[];function v(g,S){return typeof g[4]=="string"?0:1}return n=v(i,-1),o=h[n]=m[n](i),u=new J0({props:{enabled:i[5]}}),{c(){e=T("div"),t=T("div"),o.c(),r=G(),l=T("div"),a=Oe(i[2]),s=G(),R(u.$$.fragment),f(t,"class","icon-wrapper"),f(l,"class","label"),f(e,"class","switch-wrapper"),K(e,"mobile",i[1])},m(g,S){k(g,e,S),_(e,t),h[n].m(t,null),_(e,r),_(e,l),_(l,a),_(e,s),M(u,e,null),c=!0},p(g,S){let y=n;n=v(g,S),n===y?h[n].p(g,S):(ce(),p(h[y],1,1,()=>{h[y]=null}),fe(),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)&&Ke(a,g[2]);let A={};S&32&&(A.enabled=g[5]),u.$set(A),(!c||S&2)&&K(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&&w(e),h[n].d(),L(u)}}}function uy(i){let e,t,n,o,r,l;return t=new Vr({props:{content:i[6],isMobile:i[1],placement:"left",translateX:10,isFullWidthWrapper:!0,maxTooltipWidth:i[7],$$slots:{default:[ay]},$$scope:{ctx:i}}}),{c(){var a;e=T("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]),K(e,"mobile",i[1])},m(a,s){k(a,e,s),M(t,e,null),o=!0,r||(l=[Se(e,"click",vt(i[9])),Se(e,"keydown",i[8])],r=!0)},p(a,[s]){var c;let u={};s&64&&(u.content=a[6]),s&2&&(u.isMobile=a[1]),s&128&&(u.maxTooltipWidth=a[7]),s&2102&&(u.$$scope={dirty:s,ctx:a}),t.$set(u),(!o||s&12&&n!==(n=(c=a[3])!=null?c:a[2]))&&f(e,"aria-label",n),(!o||s&1)&&f(e,"data-testid",a[0]),(!o||s&2)&&K(e,"mobile",a[1])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&w(e),L(t),r=!1,ut(l)}}}function cy(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:r=ry}=e,{label:l}=e,{ariaLabel:a}=e,{icon:s}=e,{enabled:u=!1}=e,{tooltipText:c=void 0}=e,{maxTooltipWidth:m=void 0}=e,h=g=>{c1(g,u,S=>r(S))},v=()=>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,l=g.label),"ariaLabel"in g&&t(3,a=g.ariaLabel),"icon"in g&&t(4,s=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,l,a,s,u,c,m,h,v,r]}var kf=class extends O{constructor(e){super(),F(this,e,cy,uy,D,{id:0,isMobile:1,onClick:10,label:2,ariaLabel:3,icon:4,enabled:5,tooltipText:6,maxTooltipWidth:7})}},$0=kf;import{isValidURL as fy}from"@vkontakte/videoplayer-shared/es2018";function dy(i){ve(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 t_(i,e,t){let n=i.slice();return n[95]=e[t],n[96]=e,n[97]=t,n}function i_(i,e,t){let n=i.slice();return n[95]=e[t],n[98]=e,n[99]=t,n}function n_(i){let e,t,n,o,r,l,a,s=i[6]&&o_(i),u=wt(i[4]),c=[];for(let h=0;h<u.length;h+=1)c[h]=r_(i_(i,u,h));let m=h=>p(c[h],1,1,()=>{c[h]=null});return{c(){e=T("div"),s&&s.c(),t=G(),n=T("ul");for(let h=0;h<c.length;h+=1)c[h].c();f(n,"class","items"),f(n,"role","menu"),f(n,"style",o=i[35]()),K(n,"mobile",i[6]),f(e,"class","settings-menu menu svelte-1t2c6ej"),f(e,"data-testid","settings-menu"),K(e,"desktop",!i[6]),K(e,"mobile",i[6]),K(e,"hidden",!i[8])},m(h,v){k(h,e,v),s&&s.m(e,null),_(e,t),_(e,n);for(let g=0;g<c.length;g+=1)c[g]&&c[g].m(n,null);i[70](n),r=!0,l||(a=[Se(e,"keydown",i[37]),Se(e,"mouseenter",i[33]),Se(e,"mouseleave",i[34])],l=!0)},p(h,v){if(h[6]?s?s.p(h,v):(s=o_(h),s.c(),s.m(e,t)):s&&(s.d(1),s=null),v[0]&1073741908|v[1]&1){u=wt(h[4]);let g;for(g=0;g<u.length;g+=1){let S=i_(h,u,g);c[g]?(c[g].p(S,v),d(c[g],1)):(c[g]=r_(S),c[g].c(),d(c[g],1),c[g].m(n,null))}for(ce(),g=u.length;g<c.length;g+=1)m(g);fe()}(!r||v[0]&64)&&K(n,"mobile",h[6]),(!r||v[0]&64)&&K(e,"desktop",!h[6]),(!r||v[0]&64)&&K(e,"mobile",h[6]),(!r||v[0]&256)&&K(e,"hidden",!h[8])},i(h){if(!r){for(let v=0;v<u.length;v+=1)d(c[v]);r=!0}},o(h){c=c.filter(Boolean);for(let v=0;v<c.length;v+=1)p(c[v]);r=!1},d(h){h&&w(e),s&&s.d(),di(c,h),i[70](null),l=!1,ut(a)}}}function o_(i){let e,t,n,o,r,l;return{c(){e=T("div"),t=T("div"),t.textContent=`${j("submenu_settings")}`,n=G(),o=T("div"),f(o,"class","close svelte-1t2c6ej"),f(e,"class","item header svelte-1t2c6ej"),K(e,"mobile",i[6])},m(a,s){k(a,e,s),_(e,t),_(e,n),_(e,o),r||(l=Se(o,"click",vt(i[31])),r=!0)},p(a,s){s[0]&64&&K(e,"mobile",a[6])},d(a){a&&w(e),r=!1,l()}}}function my(i){let e,t;return e=new $0({props:{isMobile:i[6],id:i[95].id,onClick:i[95].onClick,icon:i[95].icon,label:i[95].label,ariaLabel:i[95].ariaLabel,enabled:i[95].enabled,tooltipText:i[95].tooltipText,maxTooltipWidth:i[95].maxTooltipWidth}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let r={};o[0]&64&&(r.isMobile=n[6]),o[0]&16&&(r.id=n[95].id),o[0]&16&&(r.onClick=n[95].onClick),o[0]&16&&(r.icon=n[95].icon),o[0]&16&&(r.label=n[95].label),o[0]&16&&(r.ariaLabel=n[95].ariaLabel),o[0]&16&&(r.enabled=n[95].enabled),o[0]&16&&(r.tooltipText=n[95].tooltipText),o[0]&16&&(r.maxTooltipWidth=n[95].maxTooltipWidth),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function py(i){let e,t;return e=new X0({props:{isMobile:i[6],id:i[95].id,onClick:i[95].onClick,icon:i[95].icon,label:i[95].label,ariaLabel:i[95].ariaLabel,closeSettings:i[31]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let r={};o[0]&64&&(r.isMobile=n[6]),o[0]&16&&(r.id=n[95].id),o[0]&16&&(r.onClick=n[95].onClick),o[0]&16&&(r.icon=n[95].icon),o[0]&16&&(r.label=n[95].label),o[0]&16&&(r.ariaLabel=n[95].ariaLabel),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function _y(i){let e,t,n;function o(){return i[68](i[95])}function r(a){i[69](a,i[95])}let l={isMobile:i[6],id:i[95].id,icon:i[95].icon,label:i[95].label,ariaLabel:i[95].ariaLabel,value:i[95].value,valueComponent:i[95].valueComponent,onClick:o,getSubItemForFocus:i[95].getSubItemForFocus};return i[2][i[95].id]!==void 0&&(l.ref=i[2][i[95].id]),e=new q0({props:l}),ye.push(()=>We(e,"ref",r)),{c(){R(e.$$.fragment)},m(a,s){M(e,a,s),n=!0},p(a,s){i=a;let u={};s[0]&64&&(u.isMobile=i[6]),s[0]&16&&(u.id=i[95].id),s[0]&16&&(u.icon=i[95].icon),s[0]&16&&(u.label=i[95].label),s[0]&16&&(u.ariaLabel=i[95].ariaLabel),s[0]&16&&(u.value=i[95].value),s[0]&16&&(u.valueComponent=i[95].valueComponent),s[0]&16&&(u.onClick=o),s[0]&16&&(u.getSubItemForFocus=i[95].getSubItemForFocus),!t&&s[0]&20&&(t=!0,u.ref=i[2][i[95].id],ze(()=>t=!1)),e.$set(u)},i(a){n||(d(e.$$.fragment,a),n=!0)},o(a){p(e.$$.fragment,a),n=!1},d(a){L(e,a)}}}function r_(i){let e,t,n,o,r=[_y,py,my],l=[];function a(s,u){return s[95].type==="OPEN_SUB_MENU"?0:s[95].type==="CLICK"?1:s[95].type==="SWITCH"?2:-1}return~(e=a(i,[-1,-1,-1,-1]))&&(t=l[e]=r[e](i)),{c(){t&&t.c(),n=Je()},m(s,u){~e&&l[e].m(s,u),k(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?~e&&l[e].p(s,u):(t&&(ce(),p(l[c],1,1,()=>{l[c]=null}),fe()),~e?(t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n)):t=null)},i(s){o||(d(t),o=!0)},o(s){p(t),o=!1},d(s){s&&w(n),~e&&l[e].d(s)}}}function s_(i,e){var s,u;let t,n,o,r;function l(c){e[71](c,e[95])}let a={isMobile:e[6],playerControlsHeight:e[1],itemIdReturnCase:e[36],returnFromSubMenu:(s=e[95].returnFromSubMenu)!=null?s:e[32].bind(null,!1),id:e[95].id,parentItemId:e[95].parentItemId,title:e[95].title,closeSettingsMenu:e[95].closeSettingsMenu,openSubMenuList:e[30],items:e[95].items,minWidth:(u=e[95].minWidth)!=null?u:137,refMenuItems:e[2]};return e[3][e[95].id]!==void 0&&(a.listRef=e[3][e[95].id]),n=new H0({props:a}),ye.push(()=>We(n,"listRef",l)),{key:i,first:null,c(){t=Je(),R(n.$$.fragment),this.first=t},m(c,m){k(c,t,m),M(n,c,m),r=!0},p(c,m){var v,g;e=c;let h={};m[0]&64&&(h.isMobile=e[6]),m[0]&2&&(h.playerControlsHeight=e[1]),m[0]&32&&(h.returnFromSubMenu=(v=e[95].returnFromSubMenu)!=null?v:e[32].bind(null,!1)),m[0]&32&&(h.id=e[95].id),m[0]&32&&(h.parentItemId=e[95].parentItemId),m[0]&32&&(h.title=e[95].title),m[0]&32&&(h.closeSettingsMenu=e[95].closeSettingsMenu),m[0]&32&&(h.items=e[95].items),m[0]&32&&(h.minWidth=(g=e[95].minWidth)!=null?g:137),m[0]&4&&(h.refMenuItems=e[2]),!o&&m[0]&40&&(o=!0,h.listRef=e[3][e[95].id],ze(()=>o=!1)),n.$set(h)},i(c){r||(d(n.$$.fragment,c),r=!0)},o(c){p(n.$$.fragment,c),r=!1},d(c){c&&w(t),L(n,c)}}}function hy(i){let e,t,n=[],o=new Map,r,l=i[7]&&n_(i),a=wt(i[5]),s=u=>u[95].id;for(let u=0;u<a.length;u+=1){let c=t_(i,a,u),m=s(c);o.set(m,n[u]=s_(m,c))}return{c(){e=T("div"),l&&l.c(),t=G();for(let u=0;u<n.length;u+=1)n[u].c();f(e,"class","settings-menu-container svelte-1t2c6ej"),K(e,"hidden",!i[7]),K(e,"mobile",i[6])},m(u,c){k(u,e,c),l&&l.m(e,null),_(e,t);for(let m=0;m<n.length;m+=1)n[m]&&n[m].m(e,null);r=!0},p(u,c){u[7]?l?(l.p(u,c),c[0]&128&&d(l,1)):(l=n_(u),l.c(),d(l,1),l.m(e,t)):l&&(ce(),p(l,1,1,()=>{l=null}),fe()),c[0]&1073741934|c[1]&34&&(a=wt(u[5]),ce(),n=td(n,c,s,1,u,a,o,e,ed,s_,null,t_),fe()),(!r||c[0]&128)&&K(e,"hidden",!u[7]),(!r||c[0]&64)&&K(e,"mobile",u[6])},i(u){if(!r){d(l);for(let c=0;c<a.length;c+=1)d(n[c]);r=!0}},o(u){p(l);for(let c=0;c<n.length;c+=1)p(n[c]);r=!1},d(u){u&&w(e),l&&l.d();for(let c=0;c<n.length;c+=1)n[c].d()}}}function gy(i,e,t){let n,o,r,l,a,s,u,c,m,h,v,g,S,y,A,I,C,P,U,x,V,Z,ae,Q,{ref:ue=void 0}=e,{supportLink:q}=e,{playerControlsHeight:H=0}=e,{returnFocus:be}=e,W=it(),te=Mt(),z=W.state.audioStream$;B(i,z,Le=>t(54,m=Le));let pe=W.state.availableAudioStreams$;B(i,pe,Le=>t(53,c=Le));let se=W.state.currentQuality$;B(i,se,Le=>t(62,C=Le));let X=W.state.availableQualities$;B(i,X,Le=>t(55,h=Le));let re=W.state.autoQualityLimitingAvailable$;B(i,re,Le=>t(66,V=Le));let oe=W.state.isAutoQualityEnabled$;B(i,oe,Le=>t(63,P=Le));let Ze=W.state.currentPlaybackRate$;B(i,Ze,Le=>t(60,A=Le));let Fe=W.state.availablePlaybackRates$;B(i,Fe,Le=>t(52,u=Le));let Ie=W.state.currentSubtitle$;B(i,Ie,Le=>t(59,y=Le));let Ce=W.state.availableSubtitlesList$;B(i,Ce,Le=>t(50,a=Le));let Ae=W.state.canDownload,qe=W.state.hasMpegSources$;B(i,qe,Le=>t(67,Z=Le));let J=W.ui.settingsMenu.visible$;B(i,J,Le=>t(7,Q=Le));let he=W.ui.settingsMenu.openedByBtnKeyboard$;B(i,he,Le=>t(73,r=Le));let Te=W.ui.settingsMenu.ref$,Ye=W.ui.isMobile;B(i,Ye,Le=>t(6,l=Le));let nt=W.ui.mobileNotReportControlHidden$;B(i,nt,Le=>t(64,U=Le));let st=W.state.canChangePlaybackSpeed$;B(i,st,Le=>t(65,x=Le));let at=W.state.trafficSavingEnabled$;B(i,at,Le=>t(58,S=Le));let ct=W.ui.playerSize;B(i,ct,Le=>t(74,ae=Le));let me=W.ui.debugPanelVisible;B(i,me,Le=>t(57,g=Le));let Qe=W.state.isInteractiveTime$,De=W.ui.additionalSettingsMenuItems$;B(i,De,Le=>t(56,v=Le));let lt=W.actions.internal.downloadVideo,je=W.actions.internal.closeSettingsMenu,xe=W.actions.internal.openSettingsSubMenu,Pe=W.actions.internal.closeSettingsSubMenu,ft=!0,ge=Me({});B(i,ge,Le=>t(51,s=Le));let dt="",bt=!1;async function Xe(Le){t(8,ft=!1),t(40,dt=Le);let tt=zt();tt[Le]=!0,ge.set(tt),await fn(),xe(Le,Ot[Le])}function yt(){r||be==null||be(),je(),Vt(!0),bt=!1}function Tt(Le){W.actions.internal.setQuality(Le),yt()}function Kt(Le){W.actions.internal.setAudioStream(Le),yt()}function Ut(Le){W.actions.internal.setTrafficSavingEnabled(Le)}function jt(Le){W.actions.internal.setPlaybackRate(Le),yt()}function Ht(Le){W.actions.internal.setSubtitle(Le),yt()}function zt(){let Le=s;return Object.keys(Le).forEach(tt=>{Le[tt]=!1}),Le}function Vt(Le=!1){t(8,ft=!0);let tt=zt();ge.set(tt),Pe(Ot[dt],Le),t(40,dt="")}function ot(){lt()}function St(){fy(q)&&window.open(q,"_blank"),W.actions.internal.reportProblem(),W.actions.internal.pause()}function Lt(){Tr(W.actions.internal.getDebugTextData())}let de=()=>{let Le=W.actions.internal.getTraceTextData(),tt=new Blob([...Le],{type:"application/json"}),qt=window.URL.createObjectURL(tt);tr(qt,"vk_player_trace_info","json")};function et(){me.set(!g)}function kt(){bt=!0}function ri(){bt=!1}function Bt(){return l?`max-height: ${Math.round(ae.height*.6)}px`:`max-height: ${ae.height-32-H}px; overflow: auto;`}let Nt,si,Wt,li,Ti,Fi,_i,yi=Me();B(i,yi,Le=>t(61,I=Le));let wi={},Ot={},xi=Le=>{Ws(Le,je)},Ft=[],Zt=[];Ct(()=>{let Le=Qe.subscribe(tt=>{tt&&!l&&!bt&&!r&&yt()});return()=>{Le()}});let Ii=Le=>Xe(Le.subMenuId);function Xt(Le,tt){i.$$.not_equal(wi[tt.id],Le)&&(wi[tt.id]=Le,t(2,wi))}function Pi(Le){ye[Le?"unshift":"push"](()=>{ue=Le,t(0,ue)})}function Bi(Le,tt){i.$$.not_equal(Ot[tt.id],Le)&&(Ot[tt.id]=Le,t(3,Ot))}return i.$$set=Le=>{"ref"in Le&&t(0,ue=Le.ref),"supportLink"in Le&&t(38,q=Le.supportLink),"playerControlsHeight"in Le&&t(1,H=Le.playerControlsHeight),"returnFocus"in Le&&t(39,be=Le.returnFocus)},i.$$.update=()=>{var Le;if(i.$$.dirty[0]&128|i.$$.dirty[1]&512&&!Q&&dt&&Vt(),i.$$.dirty[0]&1&&ue&&Te.set(ue),i.$$.dirty[1]&16777216|i.$$.dirty[2]&3&&t(48,n=zl(C,h,P)),i.$$.dirty[2]&36&&t(41,Nt=Ae&&Z&&!U),i.$$.dirty[2]&20&&t(42,si=te.features.trafficSaving&&!U&&V),i.$$.dirty[1]&524288|i.$$.dirty[2]&4&&t(43,Wt=a.length>0&&!U),i.$$.dirty[2]&12&&t(44,li=!!x&&!U),i.$$.dirty[1]&4194304|i.$$.dirty[2]&4&&t(45,Ti=te.features.audioLanguages&&c.length>=2&&!U),i.$$.dirty[2]&4&&t(49,o=!U),i.$$.dirty[2]&3&&t(46,Fi=P?j("auto_quality_option"):C),i.$$.dirty[1]&538968064&&t(47,_i=(Le=u.find(tt=>tt.value===A))==null?void 0:Le.displayValue),i.$$.dirty[0]&4|i.$$.dirty[1]&1073741824){let tt=I;tt&&(a1(wi,tt),yi.set(void 0))}i.$$.dirty[0]&88|i.$$.dirty[1]&1072692224&&(t(4,Ft=[]),o&&Ft.push({id:"quality-settings",weight:to["quality-settings"],type:"OPEN_SUB_MENU",subMenuId:"quality-sub",getSubItemForFocus:()=>{let tt=h.findIndex(qt=>qt.selected);return Ot["quality-sub"].children[tt+1]},ariaLabel:j("aria_label_menu_quality",{actual:Fi}),icon:rl,label:j("menu_quality"),value:n,valueComponent:Q0}),Ti&&Ft.push({id:"audio-language-settings",weight:to["audio-language-settings"],type:"OPEN_SUB_MENU",subMenuId:"audio-language-sub",getSubItemForFocus:()=>{let tt=c.findIndex(qt=>qt.id===(m==null?void 0:m.id));return Ot["audio-language-sub"].children[tt+1]},ariaLabel:j("aria_label_menu_audio_languages",{actual:ql(m,c)}),icon:K0,label:j("menu_audio_languages"),value:ql(m,c)}),li&&Ft.push({id:"playback-rate-settings",weight:to["playback-rate-settings"],type:"OPEN_SUB_MENU",subMenuId:"playback-rate-sub",getSubItemForFocus:()=>{let tt=u.findIndex(qt=>qt.selected);return Ot["playback-rate-sub"].children[tt+1]},ariaLabel:j("aria_label_menu_rate",{actual:_i}),icon:W0,label:j("menu_playback_rate"),value:`${A}x`}),Wt&&Ft.push({id:"subtitles-settings",weight:to["subtitles-settings"],type:"OPEN_SUB_MENU",subMenuId:"subtitles-sub",getSubItemForFocus:()=>{let tt=a.findIndex(qt=>qt.selected);return Ot["subtitles-sub"].children[tt+1]},ariaLabel:j("aria_label_menu_subtitle",{actual:y.displayValue}),icon:sl,label:j("subtitles_caption"),value:y.displayValue}),si&&Ft.push({id:"traffic-saving-settings",weight:to["traffic-saving-settings"],type:"SWITCH",onClick:Ut,ariaLabel:S?j("aria_label_submenu_traffic_saving_off"):`${j("aria_label_submenu_traffic_saving_on")}. ${j("traffic_saving_helper_text")}`,icon:z0,label:j("menu_traffic_saving"),enabled:S,tooltipText:j("traffic_saving_helper_text"),maxTooltipWidth:175}),Nt&&Ft.push({id:"download",weight:to.download,type:"CLICK",onClick:ot,label:j("download_video_caption"),ariaLabel:j("aria_label_menu_download"),icon:U0}),te.showSupport&&Ft.push({id:"report",weight:to.report,type:"CLICK",onClick:St,label:j("menu_report"),ariaLabel:`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`,icon:G0,isHiddenFor:["desktop"]}),Ft.push({id:"copy-data",weight:to["copy-data"],type:"CLICK",onClick:Lt,label:j("menu_copy_debug"),ariaLabel:j("menu_copy_debug"),icon:_f,isHiddenFor:["desktop"]}),te.features.saveTraceInfoToFile&&Ft.push({id:"save-trace-info",weight:to["save-trace-info"],type:"CLICK",onClick:de,label:j("menu_save_debug"),ariaLabel:j("menu_save_debug"),icon:_f,isHiddenFor:["desktop"]}),Ft.push({id:"debug-info",weight:to["debug-info"],type:"CLICK",onClick:et,label:g?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"),ariaLabel:j("menu_debug_overlay"),icon:j0,isHiddenFor:["desktop"]}),t(4,Ft=[...Ft,...v.map(tt=>({...tt,isAdditional:!0}))].filter(tt=>{var qt,Gt,It;return!((qt=tt.isHiddenFor)!=null&&qt.length)||!((Gt=tt.isHiddenFor)!=null&&Gt.includes("desktop"))&&!l||!((It=tt.isHiddenFor)!=null&&It.includes("mobile"))&&l}).sort(sr))),i.$$.dirty[0]&96|i.$$.dirty[1]&33030144&&(t(5,Zt=[]),s["quality-sub"]&&Zt.push({id:"quality-sub",parentItemId:"quality-settings",title:j("submenu_quality"),closeSettingsMenu:je,items:[...h.map(tt=>({type:"SELECT_VALUE",value:tt.value,valueComponent:Ul,valueComponentParams:{quality:tt.value,label:tt.displayValue,isMobile:l,isSubCase:!0},selectItem:Tt,selected:tt.selected,label:tt.displayValue}))]}),s["audio-language-sub"]&&Zt.push({id:"audio-language-sub",parentItemId:"audio-language-settings",title:j("submenu_audio_languages"),closeSettingsMenu:je,items:c.map(tt=>({type:"SELECT_VALUE",value:tt,dataValue:tt.id,selectItem:Kt,selected:tt.id===(m==null?void 0:m.id),label:ql(tt,c)}))}),s["playback-rate-sub"]&&Zt.push({id:"playback-rate-sub",parentItemId:"playback-rate-settings",title:j("submenu_playback_rate"),closeSettingsMenu:je,items:u.map(tt=>({type:"SELECT_VALUE",value:tt.value,selectItem:jt,selected:tt.selected,label:tt.displayValue}))}),s["subtitles-sub"]&&Zt.push({id:"subtitles-sub",parentItemId:"subtitles-settings",minWidth:164,title:j("subtitles_caption"),closeSettingsMenu:je,items:a.map(tt=>({type:"SELECT_VALUE",value:tt,selectItem:Ht,selected:tt.selected,label:tt.displayValue}))}))},[ue,H,wi,Ot,Ft,Zt,l,Q,ft,z,pe,se,X,re,oe,Ze,Fe,Ie,Ce,qe,J,he,Ye,nt,st,at,ct,me,De,ge,Xe,yt,Vt,kt,ri,Bt,yi,xi,q,be,dt,Nt,si,Wt,li,Ti,Fi,_i,n,o,a,s,u,c,m,h,v,g,S,y,A,I,C,P,U,x,V,Z,Ii,Xt,Pi,Bi]}var Cf=class extends O{constructor(e){super(),F(this,e,gy,hy,D,{ref:0,supportLink:38,playerControlsHeight:1,returnFocus:39},dy,[-1,-1,-1,-1])}},Wl=Cf;var{window:by}=Qr;function yy(i){ve(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 a_(i){var n;let e,t;return e=new xl({props:{thumbUrl:i[4],startTime:(n=i[5])==null?void 0:n.startTime}}),{c(){R(e.$$.fragment)},m(o,r){M(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&16&&(l.thumbUrl=o[4]),r[0]&32&&(l.startTime=(a=o[5])==null?void 0:a.startTime),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){L(e,o)}}}function u_(i){let e,t;return e=new Hr({props:{kind:"recover",thumbUrl:i[4]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let r={};o[0]&16&&(r.thumbUrl=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function c_(i){let e,t;return e=new Hr({props:{kind:"record",thumbUrl:i[4]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let r={};o[0]&16&&(r.thumbUrl=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function f_(i){let e,t,n;return t=new qs({props:{adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12]}}),{c(){e=T("div"),R(t.$$.fragment),f(e,"class","ads-container svelte-13f9p53"),K(e,"hidden",i[37]!=="ads")},m(o,r){k(o,e,r),M(t,e,null),n=!0},p(o,r){let l={};r[0]&512&&(l.adsSlotId=o[9]),r[0]&1024&&(l.adsParams=o[10]),r[0]&2048&&(l.adsPreviewParam=o[11]),r[0]&4096&&(l.duration=o[12]),t.$set(l),(!n||r[1]&64)&&K(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&&w(e),L(t)}}}function d_(i){let e,t;return e=new D1({props:{title:i[18],thumb:i[19],clickCloseIcon:i[159]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let r={};o[0]&262144&&(r.title=n[18]),o[0]&524288&&(r.thumb=n[19]),o[0]&536870912&&(r.clickCloseIcon=n[159]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function m_(i){let e,t;return e=new P0({props:{title:i[3],isHidden:!i[35]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.title=n[3]),o[1]&16&&(r.isHidden=!n[35]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function p_(i){let e,t;return e=new Rl({props:{isShifted:i[37]==="video"&&i[35]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let r={};o[1]&80&&(r.isShifted=n[37]==="video"&&n[35]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function __(i){let e,t,n;return t=new Ls({props:{"aria-label":j("video360")}}),{c(){e=T("div"),R(t.$$.fragment),f(e,"class","spherical-video-icon svelte-13f9p53")},m(o,r){k(o,e,r),M(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&&w(e),L(t)}}}function h_(i){let e,t;return e=new Dl({props:{thumbUrl:i[4],chromecastDeviceName:i[53]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let r={};o[0]&16&&(r.thumbUrl=n[4]),o[1]&4194304&&(r.chromecastDeviceName=n[53]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function g_(i){let e,t;return e=new Nl({props:{shifted:i[35],captions:i[55],position:i[56],playerSize:i[33]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let r={};o[1]&16&&(r.shifted=n[35]),o[1]&16777216&&(r.captions=n[55]),o[1]&33554432&&(r.position=n[56]),o[1]&4&&(r.playerSize=n[33]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function b_(i){let e,t,n,o,r;return t=new Ol({}),{c(){e=T("div"),R(t.$$.fragment)},m(l,a){k(l,e,a),M(t,e,null),n=!0,o||(r=[Se(e,"contextmenu",mi(i[108])),Se(e,"click",vt(i[119]))],o=!0)},p:_e,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){p(t.$$.fragment,l),n=!1},d(l){l&&w(e),L(t),o=!1,ut(r)}}}function v_(i){let e,t,n,o;function r(s){i[160](s)}function l(s){i[161](s)}let a={bottomHidden:i[37]==="thumb"||i[37]==="LiveWaitingStart"||i[37]==="LiveWaitingRecover"||i[37]==="LiveWaitingRecord",bottomNoSmooth:i[49],showControls:i[35],isAds:i[37]==="ads",canRewindLive:i[7]&&i[57]!==0,logoClickable:i[13],logoHidden:i[14],logoTargetUrl:i[15],showNextPrevButtons:i[23],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],customFullscreenSupported:T_,toggleFullscreen:i[106],seekToInteractive:i[24],playPrevChapter:i[25]};return i[40]!==void 0&&(a.playerControlsWrapperRef=i[40]),i[41]!==void 0&&(a.playerControlsRef=i[41]),e=new Vl({props:a}),ye.push(()=>We(e,"playerControlsWrapperRef",r)),ye.push(()=>We(e,"playerControlsRef",l)),{c(){R(e.$$.fragment)},m(s,u){M(e,s,u),o=!0},p(s,u){let c={};u[1]&64&&(c.bottomHidden=s[37]==="thumb"||s[37]==="LiveWaitingStart"||s[37]==="LiveWaitingRecover"||s[37]==="LiveWaitingRecord"),u[1]&262144&&(c.bottomNoSmooth=s[49]),u[1]&16&&(c.showControls=s[35]),u[1]&64&&(c.isAds=s[37]==="ads"),u[0]&128|u[1]&67108864&&(c.canRewindLive=s[7]&&s[57]!==0),u[0]&8192&&(c.logoClickable=s[13]),u[0]&16384&&(c.logoHidden=s[14]),u[0]&32768&&(c.logoTargetUrl=s[15]),u[0]&8388608&&(c.showNextPrevButtons=s[23]),u[0]&65536&&(c.nextButtonActive=s[16]),u[0]&131072&&(c.prevButtonActive=s[17]),u[0]&1048576&&(c.isOneVideoPlaylist=s[20]),u[0]&16777216&&(c.seekToInteractive=s[24]),u[0]&33554432&&(c.playPrevChapter=s[25]),!t&&u[1]&512&&(t=!0,c.playerControlsWrapperRef=s[40],ze(()=>t=!1)),!n&&u[1]&1024&&(n=!0,c.playerControlsRef=s[41],ze(()=>n=!1)),e.$set(c)},i(s){o||(d(e.$$.fragment,s),o=!0)},o(s){p(e.$$.fragment,s),o=!1},d(s){L(e,s)}}}function y_(i){var a;let e,t,n,o;function r(s){i[163](s)}let l={supportLink:i[21],playerControlsHeight:(a=i[41])==null?void 0:a.clientHeight,returnFocus:i[162]};return i[27]!==void 0&&(l.ref=i[27]),t=new Wl({props:l}),ye.push(()=>We(t,"ref",r)),{c(){e=T("div"),R(t.$$.fragment),f(e,"class","settings-menu svelte-13f9p53")},m(s,u){k(s,e,u),M(t,e,null),o=!0},p(s,u){var m;let c={};u[0]&2097152&&(c.supportLink=s[21]),u[1]&1024&&(c.playerControlsHeight=(m=s[41])==null?void 0:m.clientHeight),u[0]&2&&(c.returnFocus=s[162]),!n&&u[0]&134217728&&(n=!0,c.ref=s[27],ze(()=>n=!1)),t.$set(c)},i(s){o||(d(t.$$.fragment,s),o=!0)},o(s){p(t.$$.fragment,s),o=!1},d(s){s&&w(e),L(t)}}}function w_(i){let e,t;return e=new Mr({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function k_(i){let e,t;return e=new j1({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function C_(i){let e,t;return e=new Zs({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function S_(i){let e,t,n,o,r,l,a,s,u,c,m,h,v,g,S,y,A,I,C,P,U,x,V,Z,ae,Q;e=new Fl({props:{hidden:i[37]!=="thumb"||i[36]||i[92]&&i[6],thumbUrl:i[4],startVideo:i[26]}});let ue=i[37]==="LiveWaitingStart"&&a_(i),q=i[37]==="LiveWaitingRecover"&&u_(i),H=i[37]==="LiveWaitingRecord"&&c_(i),be=i[8]&&i[22]&&f_(i),W=i[30]&&i[18]&&i[19]&&d_(i),te=i[44]&&m_(i),z=i[48]&&p_(i),pe=i[52]&&__(i),se=i[38]&&h_(i),X=i[54].value!=="off"&&g_(i),re=i[36]&&b_(i),oe=i[22]&&v_(i),Ze=!i[38]&&i[37]!=="ads"&&y_(i);y=new zs({props:{isLive:i[58],isHidden:!i[43],isPlaying:i[50],position:i[56],duration:i[59]}}),I=new d0({props:{data:i[103]}});function Fe(J){i[165](J)}let Ie={supportLink:i[21],returnFocus:i[164],visible:i[32],playerContainerRef:i[39],controlsContainerRef:i[40],position:i[60]};i[31]!==void 0&&(Ie.menuElementRef=i[31]),P=new b1({props:Ie}),ye.push(()=>We(P,"menuElementRef",Fe));let Ce=i[42]&&w_(i),Ae=i[61]&&k_(i),qe=i[62]&&C_(i);return{c(){R(e.$$.fragment),t=G(),ue&&ue.c(),n=G(),q&&q.c(),o=G(),H&&H.c(),r=G(),be&&be.c(),l=G(),W&&W.c(),a=G(),te&&te.c(),s=G(),z&&z.c(),u=G(),pe&&pe.c(),c=G(),se&&se.c(),m=G(),X&&X.c(),h=G(),re&&re.c(),v=G(),oe&&oe.c(),g=G(),Ze&&Ze.c(),S=G(),R(y.$$.fragment),A=G(),R(I.$$.fragment),C=G(),R(P.$$.fragment),x=G(),Ce&&Ce.c(),V=G(),Ae&&Ae.c(),Z=G(),qe&&qe.c(),ae=Je()},m(J,he){M(e,J,he),k(J,t,he),ue&&ue.m(J,he),k(J,n,he),q&&q.m(J,he),k(J,o,he),H&&H.m(J,he),k(J,r,he),be&&be.m(J,he),k(J,l,he),W&&W.m(J,he),k(J,a,he),te&&te.m(J,he),k(J,s,he),z&&z.m(J,he),k(J,u,he),pe&&pe.m(J,he),k(J,c,he),se&&se.m(J,he),k(J,m,he),X&&X.m(J,he),k(J,h,he),re&&re.m(J,he),k(J,v,he),oe&&oe.m(J,he),k(J,g,he),Ze&&Ze.m(J,he),k(J,S,he),M(y,J,he),k(J,A,he),M(I,J,he),k(J,C,he),M(P,J,he),k(J,x,he),Ce&&Ce.m(J,he),k(J,V,he),Ae&&Ae.m(J,he),k(J,Z,he),qe&&qe.m(J,he),k(J,ae,he),Q=!0},p(J,he){let Te={};he[0]&64|he[1]&96&&(Te.hidden=J[37]!=="thumb"||J[36]||J[92]&&J[6]),he[0]&16&&(Te.thumbUrl=J[4]),he[0]&67108864&&(Te.startVideo=J[26]),e.$set(Te),J[37]==="LiveWaitingStart"?ue?(ue.p(J,he),he[1]&64&&d(ue,1)):(ue=a_(J),ue.c(),d(ue,1),ue.m(n.parentNode,n)):ue&&(ce(),p(ue,1,1,()=>{ue=null}),fe()),J[37]==="LiveWaitingRecover"?q?(q.p(J,he),he[1]&64&&d(q,1)):(q=u_(J),q.c(),d(q,1),q.m(o.parentNode,o)):q&&(ce(),p(q,1,1,()=>{q=null}),fe()),J[37]==="LiveWaitingRecord"?H?(H.p(J,he),he[1]&64&&d(H,1)):(H=c_(J),H.c(),d(H,1),H.m(r.parentNode,r)):H&&(ce(),p(H,1,1,()=>{H=null}),fe()),J[8]&&J[22]?be?(be.p(J,he),he[0]&4194560&&d(be,1)):(be=f_(J),be.c(),d(be,1),be.m(l.parentNode,l)):be&&(ce(),p(be,1,1,()=>{be=null}),fe()),J[30]&&J[18]&&J[19]?W?(W.p(J,he),he[0]&1074528256&&d(W,1)):(W=d_(J),W.c(),d(W,1),W.m(a.parentNode,a)):W&&(ce(),p(W,1,1,()=>{W=null}),fe()),J[44]?te?(te.p(J,he),he[1]&8192&&d(te,1)):(te=m_(J),te.c(),d(te,1),te.m(s.parentNode,s)):te&&(ce(),p(te,1,1,()=>{te=null}),fe()),J[48]?z?(z.p(J,he),he[1]&131072&&d(z,1)):(z=p_(J),z.c(),d(z,1),z.m(u.parentNode,u)):z&&(ce(),p(z,1,1,()=>{z=null}),fe()),J[52]?pe?he[1]&2097152&&d(pe,1):(pe=__(J),pe.c(),d(pe,1),pe.m(c.parentNode,c)):pe&&(ce(),p(pe,1,1,()=>{pe=null}),fe()),J[38]?se?(se.p(J,he),he[1]&128&&d(se,1)):(se=h_(J),se.c(),d(se,1),se.m(m.parentNode,m)):se&&(ce(),p(se,1,1,()=>{se=null}),fe()),J[54].value!=="off"?X?(X.p(J,he),he[1]&8388608&&d(X,1)):(X=g_(J),X.c(),d(X,1),X.m(h.parentNode,h)):X&&(ce(),p(X,1,1,()=>{X=null}),fe()),J[36]?re?(re.p(J,he),he[1]&32&&d(re,1)):(re=b_(J),re.c(),d(re,1),re.m(v.parentNode,v)):re&&(ce(),p(re,1,1,()=>{re=null}),fe()),J[22]?oe?(oe.p(J,he),he[0]&4194304&&d(oe,1)):(oe=v_(J),oe.c(),d(oe,1),oe.m(g.parentNode,g)):oe&&(ce(),p(oe,1,1,()=>{oe=null}),fe()),!J[38]&&J[37]!=="ads"?Ze?(Ze.p(J,he),he[1]&192&&d(Ze,1)):(Ze=y_(J),Ze.c(),d(Ze,1),Ze.m(S.parentNode,S)):Ze&&(ce(),p(Ze,1,1,()=>{Ze=null}),fe());let Ye={};he[1]&134217728&&(Ye.isLive=J[58]),he[1]&4096&&(Ye.isHidden=!J[43]),he[1]&524288&&(Ye.isPlaying=J[50]),he[1]&33554432&&(Ye.position=J[56]),he[1]&268435456&&(Ye.duration=J[59]),y.$set(Ye);let nt={};he[0]&2097152&&(nt.supportLink=J[21]),he[0]&2&&(nt.returnFocus=J[164]),he[1]&2&&(nt.visible=J[32]),he[1]&256&&(nt.playerContainerRef=J[39]),he[1]&512&&(nt.controlsContainerRef=J[40]),he[1]&536870912&&(nt.position=J[60]),!U&&he[1]&1&&(U=!0,nt.menuElementRef=J[31],ze(()=>U=!1)),P.$set(nt),J[42]?Ce?he[1]&2048&&d(Ce,1):(Ce=w_(J),Ce.c(),d(Ce,1),Ce.m(V.parentNode,V)):Ce&&(ce(),p(Ce,1,1,()=>{Ce=null}),fe()),J[61]?Ae?he[1]&1073741824&&d(Ae,1):(Ae=k_(J),Ae.c(),d(Ae,1),Ae.m(Z.parentNode,Z)):Ae&&(ce(),p(Ae,1,1,()=>{Ae=null}),fe()),J[62]?qe?he[2]&1&&d(qe,1):(qe=C_(J),qe.c(),d(qe,1),qe.m(ae.parentNode,ae)):qe&&(ce(),p(qe,1,1,()=>{qe=null}),fe())},i(J){Q||(d(e.$$.fragment,J),d(ue),d(q),d(H),d(be),d(W),d(te),d(z),d(pe),d(se),d(X),d(re),d(oe),d(Ze),d(y.$$.fragment,J),d(I.$$.fragment,J),d(P.$$.fragment,J),d(Ce),d(Ae),d(qe),Q=!0)},o(J){p(e.$$.fragment,J),p(ue),p(q),p(H),p(be),p(W),p(te),p(z),p(pe),p(se),p(X),p(re),p(oe),p(Ze),p(y.$$.fragment,J),p(I.$$.fragment,J),p(P.$$.fragment,J),p(Ce),p(Ae),p(qe),Q=!1},d(J){J&&(w(t),w(n),w(o),w(r),w(l),w(a),w(s),w(u),w(c),w(m),w(h),w(v),w(g),w(S),w(A),w(C),w(x),w(V),w(Z),w(ae)),L(e,J),ue&&ue.d(J),q&&q.d(J),H&&H.d(J),be&&be.d(J),W&&W.d(J),te&&te.d(J),z&&z.d(J),pe&&pe.d(J),se&&se.d(J),X&&X.d(J),re&&re.d(J),oe&&oe.d(J),Ze&&Ze.d(J),L(y,J),L(I,J),L(P,J),Ce&&Ce.d(J),Ae&&Ae.d(J),qe&&qe.d(J)}}}function wy(i){let e,t,n,o,r=i[51],l,a,s,u,c=S_(i);return{c(){e=T("div"),t=T("div"),o=G(),c.c(),l=Je(),f(t,"class","video-container svelte-13f9p53"),f(t,"style",n=`transform: rotate(${i[34]}deg) scale(${i[46]})`),f(t,"data-testid","video-container"),f(t,"data-is-playing",i[50]),K(t,"fast-rotate",!i[2].isSmoothVideoRotate),f(e,"class","video-wrapper svelte-13f9p53"),K(e,"hidden",i[37]!=="video"),K(e,"nocursor",i[45])},m(m,h){k(m,e,h),_(e,t),i[158](t),k(m,o,h),c.m(m,h),k(m,l,h),a=!0,s||(u=[Se(e,"contextmenu",mi(i[108])),Se(e,"mousedown",mi(i[113])),Se(e,"mouseup",mi(i[114])),Se(e,"click",mi(i[116])),Se(e,"dblclick",mi(i[115]))],s=!0)},p(m,h){(!a||h[1]&32776&&n!==(n=`transform: rotate(${m[34]}deg) scale(${m[46]})`))&&f(t,"style",n),(!a||h[1]&524288)&&f(t,"data-is-playing",m[50]),(!a||h[0]&4)&&K(t,"fast-rotate",!m[2].isSmoothVideoRotate),(!a||h[1]&64)&&K(e,"hidden",m[37]!=="video"),(!a||h[1]&16384)&&K(e,"nocursor",m[45]),h[1]&1048576&&D(r,r=m[51])?(ce(),p(c,1,1,_e),fe(),c=S_(m),c.c(),d(c,1),c.m(l.parentNode,l)):c.p(m,h)},i(m){a||(d(c),a=!0)},o(m){p(c),a=!1},d(m){m&&(w(e),w(o),w(l)),i[158](null),c.d(m),s=!1,ut(u)}}}function ky(i){let e,t,n,o,r,l,a,s={toggleFullscreen:i[106],hideContextMenu:i[107],showHotKeyHelpers:i[117],showKeyMap:i[118],isAds:i[37]==="ads",fakePlayButtonHandler:i[47]?i[105]:void 0,$$slots:{default:[wy]},$$scope:{ctx:i}};return t=new O1({props:s}),i[166](t),{c(){e=T("div"),R(t.$$.fragment),n=G(),o=T("div"),f(o,"class","overlay-container"),f(e,"class","player-wrapper svelte-13f9p53")},m(u,c){k(u,e,c),M(t,e,null),_(e,n),_(e,o),i[167](o),i[168](e),r=!0,l||(a=[Se(by,"blur",i[107]),Se(e,"mouseenter",i[109]),Se(e,"mouseleave",i[111]),Se(e,"mousemove",i[112]),Se(e,"click",i[120],!0),Se(e,"focusin",i[110],!0)],l=!0)},p(u,c){let m={};c[1]&64&&(m.isAds=u[37]==="ads"),c[1]&65536&&(m.fakePlayButtonHandler=u[47]?u[105]:void 0),c[0]&1879048191|c[1]&2147418111|c[2]&1|c[6]&1024&&(m.$$scope={dirty:c,ctx:u}),t.$set(m)},i(u){r||(d(t.$$.fragment,u),r=!0)},o(u){p(t.$$.fragment,u),r=!1},d(u){u&&w(e),i[166](null),L(t),i[167](null),i[168](null),l=!1,ut(a)}}}var T_=!0;function Sf(i){return i?i.offsetTop+Sf(i.offsetParent):0}function I_(i){return i?i.offsetLeft+I_(i.offsetParent):0}function Cy(i,e,t){let n,o,r,l,a,s,u,c,m,h,v,g,S,y,A,I,C,P,U,x,V,Z,ae,Q,ue,q,H,be,W,te,z,pe,se,X,re,oe,Ze,Fe,Ie,Ce,Ae,qe,J,he,{store:Te}=e,{uiConfig:Ye}=e,{title:nt}=e,{thumbUrl:st}=e,{videoContainer:at}=e,{interactiveContainer:ct}=e,{live:me}=e,{autoplay:Qe}=e,{canRewindLive:De}=e,{showAds:lt}=e,{adsSlotId:je=void 0}=e,{adsParams:xe=void 0}=e,{adsPreviewParam:Pe=void 0}=e,{duration:ft=void 0}=e,{logoClickable:ge}=e,{logoHidden:dt}=e,{logoTargetUrl:bt=""}=e,{nextButtonActive:Xe=!1}=e,{prevButtonActive:yt=!1}=e,{endScreenVideoTitle:Tt=void 0}=e,{endScreenVideoThumb:Kt=void 0}=e,{isOneVideoPlaylist:Ut=!1}=e,{supportLink:jt}=e,{shadowRootContainer:Ht=void 0}=e,{outerContainerRef:zt=void 0}=e,{playerStarted:Vt=!1}=e,{fullScreenTarget:ot=void 0}=e,{showMiniTimer:St=!1}=e,{showEndScreen:Lt}=e,{showNextPrevButtons:de}=e,{keyboardControls:et}=e,{seekToInteractive:kt}=e,{playPrevChapter:ri}=e,{firstStart:Bt}=e,Nt=Te.getLogger().createComponentLog("Root component"),si=Te.interfaceLanguage$;B(i,si,Y=>t(51,se=Y));let Wt=Te.state.playbackState$;B(i,Wt,Y=>t(155,W=Y));let li=Te.ads.playbackState;B(i,li,Y=>t(156,te=Y));let Ti=Te.state.positionWithScrubbing$;B(i,Ti,Y=>t(56,Fe=Y));let Fi=Te.state.duration$;B(i,Fi,Y=>t(59,Ae=Y));let _i=Te.playerPhase;B(i,_i,Y=>t(37,Q=Y));let yi=Te.ui.isFullscreen;B(i,yi,Y=>t(145,S=Y));let wi=Te.ui.controlsVisible;B(i,wi,Y=>t(35,U=Y));let Ot=Te.ui.settingsMenu.visible$;B(i,Ot,Y=>t(143,u=Y));let xi=Te.ui.settingsMenu.openedByBtnKeyboard$;B(i,xi,Y=>t(142,s=Y));let Ft=Te.ui.scrubbingInProgress;B(i,Ft,Y=>t(147,C=Y));let Zt=Te.ui.contextMenu.visible$;B(i,Zt,Y=>t(32,n=Y));let Ii=Te.ui.debugPanelVisible;B(i,Ii,Y=>t(62,he=Y));let Xt=Te.state.isLoaderVisible;B(i,Xt,Y=>t(157,z=Y));let Pi=Te.state.isEnded$;B(i,Pi,Y=>t(144,m=Y));let Bi=Te.state.chromecastConnected$;B(i,Bi,Y=>t(38,H=Y));let Le=Te.state.chromecastDeviceName$;B(i,Le,Y=>t(53,re=Y));let tt=Te.ads.postrollPassed;B(i,tt,Y=>t(150,Z=Y));let qt=Te.state.isLive$;B(i,qt,Y=>t(58,Ce=Y));let Gt=Te.state.isPlaying$;B(i,Gt,Y=>t(50,pe=Y));let It=Te.state.crashed$;B(i,It,Y=>t(36,V=Y));let Zi=Te.webApi.annotationsApi,xt=Te.webApi.pictureInPictureApi,ii=Te.state.currentSubtitle$;B(i,ii,Y=>t(54,oe=Y));let mn=Te.state.currentSubtitleCaptions$;B(i,mn,Y=>t(55,Ze=Y));let In=Te.state.duration$;B(i,In,Y=>t(57,Ie=Y));let pn=Te.state.graphIsOpened$;B(i,pn,Y=>t(151,ae=Y));let ai=Te.ui.playerSize;B(i,ai,Y=>t(33,v=Y));let Hi=Te.ui.is3DVideo;B(i,Hi,Y=>t(48,h=Y));let _n=Te.ui.icon3DVideoVisible;B(i,_n,Y=>t(52,X=Y));let Xi=Te.ui.rotateAlpha;B(i,Xi,Y=>t(34,I=Y));let Ni=Te.state.isInteractive,hn=Te.state.isInteractiveTime$;B(i,hn,Y=>t(148,P=Y));let ui=Te.state.isInteractiveExpectation$;B(i,ui,Y=>t(154,be=Y));let On=Te.state.hasInteractiveBranches,Ei=Te.ui.touched;B(i,Ei,Y=>t(152,ue=Y));let qi=Te.ui.modals.hotKeyMap.data;B(i,qi,Y=>t(175,c=Y));let Ui=Te.ui.modals.hotKeyMap.show;B(i,Ui,Y=>t(61,J=Y));let Ji=Te.ui.overlayContainer$,Ai=Te.ui.controls.interactiveTimeIndicator;B(i,Ai,Y=>t(176,g=Y));let zi=Te.state.showInteractiveTimeIndicator,$i=Te.ui.contextMenu.position$;B(i,$i,Y=>t(60,qe=Y));let ki=Te.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Di}=dn();B(i,Di,Y=>t(146,A=Y));let ni,oi,rt,Jt,hi,gn,Wi;qi.set(Yd());let bn,en,ci=Me(!1);B(i,ci,Y=>t(49,y=Y));let tn,Mi=Me(!1);B(i,Mi,Y=>t(153,q=Y));let Ge=Me(),vn=Me(!1);B(i,vn,Y=>t(149,x=Y));let nn=!1,Oi=!1,on=!1,rn=!(Qe&&!Ye.controls.showOnStartupAtAutoplay),Ki,Kn,Fn,gi=!1,xn,yn,wn=!1,ji,sn=!1,{toggle:kn}=Di,Gi=!1,ln=null;xt==null||xt.setContext(Zr());let Hn=()=>{Qe&&!Ni&&Ye.controls.showOnStartupAtAutoplay&&fi(Ye.controls.hideTimeout)};Te.setUiCallbacks({onStarted:Hn});let io=()=>{window.clearTimeout(hi),Mi.set(!1)},no=()=>{window.clearTimeout(gn),Ge.set(null)},fi=Y=>{io(),Mi.set(!0),hi=window.setTimeout(()=>Mi.set(!1),Y);let Pt=Y-100;tn=window.setTimeout(()=>{y&&ci.set(!1)},Pt>0?Pt:Y)},oo=(Y,Pt)=>{no(),Ge.set(Pt),gn=window.setTimeout(()=>Ge.set(null),Y)},ro=Hi.subscribe(Y=>{_n.set(Y),Y&&(window.clearTimeout(Wi),Wi=window.setTimeout(()=>_n.set(!1),Ye.controls.hide360IconTimeout))}),jn=async()=>{var Pt,Li,Si,fo;let Y=Fo();if(Y){let Un=es(),Vi=Gn();Y=Un===Vi||Un===Ht}if(Y){fi(Ye.controls.hideTimeoutFullscreen);try{await(xt==null?void 0:xt.remove())}catch(Un){Nt({message:String(Un)})}}yi.set(Y),Te.getAdmanWrapper().setFullscreen(Y),S?(Li=(Pt=Te.callbacks)==null?void 0:Pt.onFullscreenEnter)==null||Li.call(Pt):(fo=(Si=Te.callbacks)==null?void 0:Si.onFullscreenExit)==null||fo.call(Si)},so=Y=>{let{width:Pt,height:Li}=Y.target;ai.set({width:Pt,height:Li})},lo=()=>{let{width:Y,height:Pt}=ni.getBoundingClientRect();ai.set({width:Y,height:Pt})};Ct(()=>{var Pt;return xs(jn),Ye.features.annotationsInside&&(Zi==null||Zi.init(ni)),or(xt)&&(xt==null||xt.assignPlayerContainer(ni),xt==null||xt.registryExternalEventHandlers({resize:so,leavepictureinpicture:lo})),ct&&((Pt=at.parentElement)==null||Pt.insertBefore(ct,at.nextSibling)),()=>{window.clearTimeout(hi),window.clearTimeout(tn),window.clearTimeout(gn),window.clearTimeout(Wi),ro(),xt==null||xt.dispose(),Hs(jn)}});let Gn=()=>{let Y=Ye.features.fullscreenInternalTargetPlayerContainer||!zt?ni:zt,Pt=Y.getRootNode(),Li=Pt instanceof ShadowRoot?Pt.host:Pt,Si=ot instanceof HTMLElement&&ot.contains(Li);return Ye.allowChangingFullscreenTarget&&ot&&Si?ot:Y},Pn=async()=>{Fo()?(await Fs(document),Nt({message:"exit fullscreen"})):(Nt({message:"request fullscreen"}),await Os(Gn()))},En=()=>{ki(),Zt.set(!1)},go=Y=>{Zt.set(!0),$i.set({left:Y.clientX,top:Y.clientY})};function Yn(){vn.set(!0),Ni||fi(Ye.controls.hideTimeoutCursor)}function bo(){Ni||(ci.set(!0),fi(Ye.controls.hideTimeoutCursor))}function bi(){vn.set(!1),t(133,Oi=!1),t(132,nn=!1),Gi=!1,Te.actions.internal.releaseCamera()}function Qn(Y){if(g&&zi){let Pt=Y.currentTarget,Li=Sf(Pt),Si=I_(Pt),fo=Y.pageX-Si,Un=Y.pageY-Li,{left:Vi,bottom:Ur,right:Qo}=g,Bo=Qo-Vi;return fo>=Vi-Bo&&Un<=Ur+Bo}}function Zn(Y){if(ni){let Pt=Sf(Y.currentTarget),Li=v.height,Si=Y.pageY-Pt;if(Qn(Y)){t(133,Oi=!1);return}Si<40?t(133,Oi=!0):Si>Li-40?t(132,nn=!0):(t(133,Oi=!1),u||t(132,nn=!1))}}function ie(Y){Zn(Y),Ki||fi(Ye.controls.hideTimeoutCursor),h&&Gi&&ln&&Te.actions.internal.moveCameraFocusPX(ln.clientX-Y.clientX,ln.clientY-Y.clientY,Y.timeStamp-ln.timeStamp),ln=Y}let Rt=Y=>{Y.button===0&&(Gi=!0,Te.actions.internal.holdCamera()),fi(Ye.controls.hideTimeoutCursor)},ne=Y=>{Y.button===0&&(ln=Y,Gi=!1,Te.actions.internal.releaseCamera()),fi(Ye.controls.hideTimeoutCursor)},Cn=()=>{T_&&(Nt({message:"double click on video"}),Pn(),fi(Ye.controls.hideTimeoutCursor))},Xn=()=>{if(n||u){En();return}if(!(m&&!On)){if(sn)return kn();if(et==null||et.focus(),!Vt){Bt(),fi(Ye.controls.hideTimeoutCursor);return}Te.actions.internal.togglePlay(),fi(Ye.controls.hideTimeoutCursor)}},Ci=Y=>{En(),Ei.set(!0),fi(Ye.controls.hideTimeout),Y&&oo(Ye.controls.hideHotKeyHelpers,Y)},ao=()=>{var Y,Pt;En(),(Y=Te.callbacks)!=null&&Y.onOpenHotKeyMap?(Pt=Te.callbacks)==null||Pt.onOpenHotKeyMap(c):Ui.update(Li=>!Li)},Ao=()=>{if(n||u){En();return}},uo=()=>{Ei.set(!0)},qn=Te.ui.contextMenu.openedByBtnKeyboard$;B(i,qn,Y=>t(141,a=Y));let co=Te.ui.contextMenu.btnRef$;B(i,co,Y=>t(140,l=Y));let An,vo=Te.ui.contextMenu.openedByHotKey$;B(i,vo,Y=>t(139,r=Y));let Mo=Te.ui.contextMenu.lastActiveElem$;B(i,Mo,Y=>t(138,o=Y));function Lo(Y){ye[Y?"unshift":"push"](()=>{at=Y,t(0,at)})}let yo=()=>t(29,gi=!0);function wo(Y){oi=Y,t(40,oi)}function Vo(Y){rt=Y,t(41,rt)}let Ro=()=>et==null?void 0:et.focus();function Mn(Y){Jt=Y,t(27,Jt)}let jo=()=>et==null?void 0:et.focus();function Go(Y){An=Y,t(31,An)}function Ln(Y){ye[Y?"unshift":"push"](()=>{et=Y,t(1,et)})}function fr(Y){ye[Y?"unshift":"push"](()=>{en=Y,t(28,en)})}function Yo(Y){ye[Y?"unshift":"push"](()=>{ni=Y,t(39,ni)})}return i.$$set=Y=>{"store"in Y&&t(125,Te=Y.store),"uiConfig"in Y&&t(2,Ye=Y.uiConfig),"title"in Y&&t(3,nt=Y.title),"thumbUrl"in Y&&t(4,st=Y.thumbUrl),"videoContainer"in Y&&t(0,at=Y.videoContainer),"interactiveContainer"in Y&&t(126,ct=Y.interactiveContainer),"live"in Y&&t(5,me=Y.live),"autoplay"in Y&&t(6,Qe=Y.autoplay),"canRewindLive"in Y&&t(7,De=Y.canRewindLive),"showAds"in Y&&t(8,lt=Y.showAds),"adsSlotId"in Y&&t(9,je=Y.adsSlotId),"adsParams"in Y&&t(10,xe=Y.adsParams),"adsPreviewParam"in Y&&t(11,Pe=Y.adsPreviewParam),"duration"in Y&&t(12,ft=Y.duration),"logoClickable"in Y&&t(13,ge=Y.logoClickable),"logoHidden"in Y&&t(14,dt=Y.logoHidden),"logoTargetUrl"in Y&&t(15,bt=Y.logoTargetUrl),"nextButtonActive"in Y&&t(16,Xe=Y.nextButtonActive),"prevButtonActive"in Y&&t(17,yt=Y.prevButtonActive),"endScreenVideoTitle"in Y&&t(18,Tt=Y.endScreenVideoTitle),"endScreenVideoThumb"in Y&&t(19,Kt=Y.endScreenVideoThumb),"isOneVideoPlaylist"in Y&&t(20,Ut=Y.isOneVideoPlaylist),"supportLink"in Y&&t(21,jt=Y.supportLink),"shadowRootContainer"in Y&&t(127,Ht=Y.shadowRootContainer),"outerContainerRef"in Y&&t(128,zt=Y.outerContainerRef),"playerStarted"in Y&&t(22,Vt=Y.playerStarted),"fullScreenTarget"in Y&&t(129,ot=Y.fullScreenTarget),"showMiniTimer"in Y&&t(130,St=Y.showMiniTimer),"showEndScreen"in Y&&t(131,Lt=Y.showEndScreen),"showNextPrevButtons"in Y&&t(23,de=Y.showNextPrevButtons),"keyboardControls"in Y&&t(1,et=Y.keyboardControls),"seekToInteractive"in Y&&t(24,kt=Y.seekToInteractive),"playPrevChapter"in Y&&t(25,ri=Y.playPrevChapter),"firstStart"in Y&&t(26,Bt=Y.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&96|i.$$.dirty[5]&6&&t(42,bn=(Q==="video"&&z||Q==="ads"&&te==="inactive")&&!V),i.$$.dirty[0]&268435456&&Ji.set(en),i.$$.dirty[4]&2048|i.$$.dirty[5]&1&&(t(134,on=rn&&W!==vy.PLAYING),rn||t(135,rn=!0)),i.$$.dirty[4]&1091045120&&t(136,Ki=P&&!u&&!(nn||Oi)&&!(on&&!be)),i.$$.dirty[1]&224|i.$$.dirty[4]&545788928&&wi.set((on||u||C||H||q)&&!Ki&&(Q==="video"||Q==="ads")&&!V),i.$$.dirty[0]&4|i.$$.dirty[1]&112|i.$$.dirty[4]&268435520&&t(43,Kn=Ye.features.thumbTimer&&St&&Q==="video"&&!U&&!V&&!Ni&&(Ye.hideThumbTimerAfterTouch&&!ue||!Ye.hideThumbTimerAfterTouch)),i.$$.dirty[1]&64|i.$$.dirty[4]&136314880&&t(44,Fn=Q==="video"&&!ae&&S),i.$$.dirty[0]&536871168|i.$$.dirty[1]&32|i.$$.dirty[4]&68157568&&t(30,xn=Lt&&(lt&&Z||!lt)&&m&&!V&&!gi),i.$$.dirty[0]&1073741824|i.$$.dirty[1]&16|i.$$.dirty[4]&50331648&&t(45,yn=x&&!(U||xn)&&!P),i.$$.dirty[0]&4|i.$$.dirty[4]&25174016&&(!C&&wn&&!P&&fi(Ye.controls.hideTimeoutCursor),t(137,wn=C)),i.$$.dirty[0]&1|i.$$.dirty[1]&12&&t(46,ji=at&&I%180?v.height/v.width:1),i.$$.dirty[4]&4194304&&t(47,sn=A!==null),i.$$.dirty[0]&134217728|i.$$.dirty[4]&786432&&_o(Jt,u,s),i.$$.dirty[1]&3|i.$$.dirty[4]&131072&&_o(An,n,a),i.$$.dirty[1]&2|i.$$.dirty[4]&65536){let Y=l;Y&&Pr(Y,n,qn)}if(i.$$.dirty[1]&3|i.$$.dirty[4]&32768&&_o(An,n,r),i.$$.dirty[1]&2|i.$$.dirty[4]&16384){let Y=o;Y&&l1(Y,n,vo)}},[at,et,Ye,nt,st,me,Qe,De,lt,je,xe,Pe,ft,ge,dt,bt,Xe,yt,Tt,Kt,Ut,jt,Vt,de,kt,ri,Bt,Jt,en,gi,xn,An,n,v,I,U,V,Q,H,ni,oi,rt,bn,Kn,Fn,yn,ji,sn,h,y,pe,se,X,re,oe,Ze,Fe,Ie,Ce,Ae,qe,J,he,si,Wt,li,Ti,Fi,_i,yi,wi,Ot,xi,Ft,Zt,Ii,Xt,Pi,Bi,Le,tt,qt,Gt,It,ii,mn,In,pn,ai,Hi,_n,Xi,Ni,hn,ui,Ei,qi,Ui,Ai,$i,Di,ci,Mi,Ge,vn,kn,Pn,En,go,Yn,bo,bi,ie,Rt,ne,Cn,Xn,Ci,ao,Ao,uo,qn,co,vo,Mo,Te,ct,Ht,zt,ot,St,Lt,nn,Oi,on,rn,Ki,wn,o,r,l,a,s,u,m,S,A,C,P,x,Z,ae,ue,q,be,W,te,z,Lo,yo,wo,Vo,Ro,Mn,jo,Go,Ln,fr,Yo]}var Tf=class extends O{constructor(e){super(),F(this,e,Cy,ky,D,{store:125,uiConfig:2,title:3,thumbUrl:4,videoContainer:0,interactiveContainer:126,live:5,autoplay:6,canRewindLive:7,showAds:8,adsSlotId:9,adsParams:10,adsPreviewParam:11,duration:12,logoClickable:13,logoHidden:14,logoTargetUrl:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:127,outerContainerRef:128,playerStarted:22,fullScreenTarget:129,showMiniTimer:130,showEndScreen:131,showNextPrevButtons:23,keyboardControls:1,seekToInteractive:24,playPrevChapter:25,firstStart:26},yy,[-1,-1,-1,-1,-1,-1,-1])}},P_=Tf;import{PlaybackState as Ry}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as as,noop as By}from"@vkontakte/videoplayer-shared/es2018";function Sy(i){ve(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 E_(i){let e,t,n,o,r,l,a,s,u,c,m,h,v,g,S,y=j("doubletap_seek_step",{seconds:i[2].toFixed(0)})+"",A;return{c(){e=T("div"),n=G(),o=T("div"),r=T("div"),l=T("div"),s=G(),u=T("div"),m=G(),h=T("div"),g=G(),S=T("p"),A=Oe(y),f(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),f(l,"class",a="triangle "+i[0]+" svelte-nhq2ld"),f(u,"class",c="triangle "+i[0]+" svelte-nhq2ld"),f(h,"class",v="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(I,C){k(I,e,C),k(I,n,C),k(I,o,C),_(o,r),_(r,l),_(r,s),_(r,u),_(r,m),_(r,h),_(o,g),_(o,S),_(S,A)},p(I,C){C&1&&t!==(t="semicircle "+I[0]+" svelte-nhq2ld")&&f(e,"class",t),C&1&&a!==(a="triangle "+I[0]+" svelte-nhq2ld")&&f(l,"class",a),C&1&&c!==(c="triangle "+I[0]+" svelte-nhq2ld")&&f(u,"class",c),C&1&&v!==(v="triangle "+I[0]+" svelte-nhq2ld")&&f(h,"class",v),C&4&&y!==(y=j("doubletap_seek_step",{seconds:I[2].toFixed(0)})+"")&&Ke(A,y)},d(I){I&&(w(e),w(n),w(o))}}}function Ty(i){let e,t,n,o,r=i[1]&&E_(i);return{c(){e=T("div"),r&&r.c(),f(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(l,a){k(l,e,a),r&&r.m(e,null),n||(o=Se(e,"click",vt(i[3]())),n=!0)},p(l,[a]){l[1]?r?r.p(l,a):(r=E_(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&1&&t!==(t="double-click-area "+l[0]+" svelte-nhq2ld")&&f(e,"class",t)},i:_e,o:_e,d(l){l&&w(e),r&&r.d(),n=!1,o()}}}function Iy(i,e,t){let{side:n}=e,{seekStep:o=0}=e,{handleSingleFirstClick:r}=e,{handleSecondClick:l}=e,a=!1,s=0,u=0,c=o,m=()=>()=>{u+=1,t(2,c=o*(u-1)),u===1?r():(t(1,a=!0),l()),window.clearTimeout(s),s=window.setTimeout(()=>{u=0,t(1,a=!1)},300)};return Rn(()=>{window.clearTimeout(s)}),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,l=h.handleSecondClick)},[n,a,c,m,o,r,l]}var If=class extends O{constructor(e){super(),F(this,e,Iy,Ty,D,{side:0,seekStep:4,handleSingleFirstClick:5,handleSecondClick:6},Sy)}},Pf=If;function Py(i){ve(i,"svelte-1qdxi6t",".overlay.svelte-1qdxi6t{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-1qdxi6t{position:absolute;top:50%;left:50%;z-index:var(--end-screen-mobile-z-index);transform:translate(-50%, -50%);display:flex;flex-direction:column;max-width:362px;min-width:320px;margin:0 auto;padding-bottom:12px}.top.svelte-1qdxi6t{display:flex;justify-content:space-between}.caption.svelte-1qdxi6t{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-1qdxi6t{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%}.column.svelte-1qdxi6t{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-1qdxi6t{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.svelte-1qdxi6t{width:100%;height:100%;position:absolute}.thumb-overlay.withOpacity.svelte-1qdxi6t{background:var(--black);opacity:0.3}.title.svelte-1qdxi6t{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function A_(i){let e,t,n,o,r,l=(i[3]?j("end_screen_next_video"):j("end_screen_recommended_video"))+"",a,s,u,c,m,h,v,g,S,y,A,I,C,P,U,x,V;u=new Xs({}),u.$on("click",i[9]);let Z=i[3]&&M_(i);return{c(){e=T("div"),t=G(),n=T("div"),o=T("div"),r=T("div"),a=Oe(l),s=G(),R(u.$$.fragment),c=G(),m=T("div"),h=T("div"),v=T("div"),g=T("div"),S=G(),Z&&Z.c(),A=G(),I=T("div"),C=T("div"),P=Oe(i[0]),f(e,"class","overlay svelte-1qdxi6t"),f(r,"class","caption svelte-1qdxi6t"),f(o,"class","top svelte-1qdxi6t"),f(g,"class","thumb-overlay svelte-1qdxi6t"),K(g,"withOpacity",i[3]),f(v,"class","thumb svelte-1qdxi6t"),f(v,"style",y=`background-image: url('${i[1]}')`),f(h,"class","column svelte-1qdxi6t"),f(C,"class","title svelte-1qdxi6t"),f(I,"class","column svelte-1qdxi6t"),f(m,"class","row svelte-1qdxi6t"),f(n,"class","next-video svelte-1qdxi6t")},m(ae,Q){k(ae,e,Q),k(ae,t,Q),k(ae,n,Q),_(n,o),_(o,r),_(r,a),_(o,s),M(u,o,null),_(n,c),_(n,m),_(m,h),_(h,v),_(v,g),_(v,S),Z&&Z.m(v,null),_(m,A),_(m,I),_(I,C),_(C,P),U=!0,x||(V=Se(m,"click",i[7]),x=!0)},p(ae,Q){(!U||Q&8)&&l!==(l=(ae[3]?j("end_screen_next_video"):j("end_screen_recommended_video"))+"")&&Ke(a,l),(!U||Q&8)&&K(g,"withOpacity",ae[3]),ae[3]?Z?(Z.p(ae,Q),Q&8&&d(Z,1)):(Z=M_(ae),Z.c(),d(Z,1),Z.m(v,null)):Z&&(ce(),p(Z,1,1,()=>{Z=null}),fe()),(!U||Q&2&&y!==(y=`background-image: url('${ae[1]}')`))&&f(v,"style",y),(!U||Q&1)&&Ke(P,ae[0])},i(ae){U||(d(u.$$.fragment,ae),d(Z),U=!0)},o(ae){p(u.$$.fragment,ae),p(Z),U=!1},d(ae){ae&&(w(e),w(t),w(n)),L(u),Z&&Z.d(),x=!1,V()}}}function M_(i){let e,t;return e=new Js({props:{isRunning:i[4],onTimerEnded:i[8]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.isRunning=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Ey(i){let e,t,n=!i[2]&&A_(i);return{c(){n&&n.c(),e=Je()},m(o,r){n&&n.m(o,r),k(o,e,r),t=!0},p(o,[r]){o[2]?n&&(ce(),p(n,1,1,()=>{n=null}),fe()):n?(n.p(o,r),r&4&&d(n,1)):(n=A_(o),n.c(),d(n,1),n.m(e.parentNode,e))},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function Ay(i,e,t){let n,o,{title:r}=e,{thumb:l}=e,{isHide:a}=e,{clickCloseIcon:s}=e,u=it(),c=u.ui.autoplayNextEnabled$;B(i,c,C=>t(3,n=C));let m=u.ui.timerNextVideoRunning$;B(i,m,C=>t(4,o=C));let h=u.actions.internal.nextVideoClick,v=u.actions.internal.nextVideoAnnouncementClick,g=u.actions.internal.nextVideoAnnouncementAuto,S=u.actions.internal.nextVideoAnnouncementCancel,y=()=>{h(!1),v()},A=()=>{h(!1),g()},I=()=>{s(),S()};return Ct(()=>{a&&n&&(h(!1),g())}),i.$$set=C=>{"title"in C&&t(0,r=C.title),"thumb"in C&&t(1,l=C.thumb),"isHide"in C&&t(2,a=C.isHide),"clickCloseIcon"in C&&t(10,s=C.clickCloseIcon)},i.$$.update=()=>{i.$$.dirty&8&&(n||S())},[r,l,a,n,o,c,m,y,A,I,s]}var Ef=class extends O{constructor(e){super(),F(this,e,Ay,Ey,D,{title:0,thumb:1,isHide:2,clickCloseIcon:10},Py)}},L_=Ef;import{clientChecker as My}from"@vkontakte/videoplayer-shared/es2018";var V_=({getFullscreenTarget:i,fullScreenChangeHandler:e})=>{let t=null,n;Ct(()=>{My.isIOS&&(n=setTimeout(()=>{let r=i().querySelector("video");if(!r)return;let l=()=>e(!0),a=()=>e(!1);r.addEventListener("webkitbeginfullscreen",l),r.addEventListener("webkitendfullscreen",a),t=()=>{r.removeEventListener("webkitbeginfullscreen",l),r.removeEventListener("webkitendfullscreen",a)}},0))}),Rn(()=>{t==null||t(),clearTimeout(n)})};import{VideoFormat as Ly}from"@vkontakte/videoplayer-core/es2018";var Kl=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,t=!1){let n=document.createElement("track");n.setAttribute("src",e.url),n.setAttribute("id",e.id),e.label&&n.setAttribute("label",e.label),e.language&&n.setAttribute("srclang",e.language),t&&(n.track.mode="showing"),this.video.appendChild(n)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let t=this.getTracksArray().find(n=>n.id===e.id);t&&(t.src=e.url)}getCurrentShowingId(){var e,t;return(t=(e=this.getTracksArray().find(n=>n.track.mode==="showing"))==null?void 0:e.id)!=null?t:null}};import{clientChecker as Vy}from"@vkontakte/videoplayer-shared/es2018";var R_=({store:i,getFullscreenTarget:e})=>{let{isFullscreen:t}=i.ui,{setSubtitle:n}=i.actions.internal,{currentSubtitle$:o,availableSubtitlesList$:r,currentFormat$:l,availableTextTracks$:a}=i.state,s=null,u=()=>e().querySelector("video"),c=()=>Vy.isIOS&&Ue(l)===Ly.DASH_LIVE_CMAF,m=()=>{s==null||s(),s=null},h=v=>{if(m(),!c()||!v)return;let g=u();if(!g)return;let S=new Kl(g),y=Ue(a),A=Ue(r),I=Ue(o);for(let U of y)A.some(V=>V.value===U.id)&&S.attach(U,I.value===U.id);let C=a.subscribe(U=>{for(let x of U)S.updateSrc(x)}),P=()=>{let U=S.getCurrentShowingId();n(Ue(r).find(x=>x.value===U))};g.textTracks.addEventListener("change",P),s=()=>{C(),S.detachAll(),g.textTracks.removeEventListener("change",P)}};Ct(()=>t.subscribe(h)),Rn(m)};function Ny(i){ve(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 B_(i){let e,t,n,o=i[48]&&N_(i),r=i[49]&&D_(i);return{c(){o&&o.c(),e=G(),r&&r.c(),t=Je()},m(l,a){o&&o.m(l,a),k(l,e,a),r&&r.m(l,a),k(l,t,a),n=!0},p(l,a){l[48]?o?(o.p(l,a),a[1]&131072&&d(o,1)):(o=N_(l),o.c(),d(o,1),o.m(e.parentNode,e)):o&&(ce(),p(o,1,1,()=>{o=null}),fe()),l[49]?r?(r.p(l,a),a[1]&262144&&d(r,1)):(r=D_(l),r.c(),d(r,1),r.m(t.parentNode,t)):r&&(ce(),p(r,1,1,()=>{r=null}),fe())},i(l){n||(d(o),d(r),n=!0)},o(l){p(o),p(r),n=!1},d(l){l&&(w(e),w(t)),o&&o.d(l),r&&r.d(l)}}}function N_(i){let e,t;return e=new Pf({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[105],handleSecondClick:i[137]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function D_(i){let e,t;return e=new Pf({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[105],handleSecondClick:i[138]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function O_(i){var n;let e,t;return e=new xl({props:{thumbUrl:i[2],startTime:(n=i[3])==null?void 0:n.startTime}}),{c(){R(e.$$.fragment)},m(o,r){M(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&4&&(l.thumbUrl=o[2]),r[0]&8&&(l.startTime=(a=o[3])==null?void 0:a.startTime),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){L(e,o)}}}function F_(i){let e,t;return e=new Hr({props:{kind:"recover",thumbUrl:i[2]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function x_(i){let e,t;return e=new Hr({props:{kind:"record",thumbUrl:i[2]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function H_(i){let e,t,n;return t=new qs({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=T("div"),R(t.$$.fragment),f(e,"class","ads-container svelte-dtyj47"),K(e,"hidden",i[39]!=="ads")},m(o,r){k(o,e,r),M(t,e,null),n=!0},p(o,r){let l={};r[0]&128&&(l.adsSlotId=o[7]),r[0]&256&&(l.adsParams=o[8]),r[0]&512&&(l.adsPreviewParam=o[9]),r[0]&1024&&(l.duration=o[10]),t.$set(l),(!n||r[1]&256)&&K(e,"hidden",o[39]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),L(t)}}}function q_(i){let e,t;return e=new L_({props:{title:i[16],thumb:i[17],isHide:!i[21]&&i[22]&&i[38],clickCloseIcon:i[139]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let r={};o[0]&65536&&(r.title=n[16]),o[0]&131072&&(r.thumb=n[17]),o[0]&6291456|o[1]&128&&(r.isHide=!n[21]&&n[22]&&n[38]),o[0]&536870912&&(r.clickCloseIcon=n[139]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function U_(i){let e,t;return e=new Rl({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function z_(i){let e,t,n;return t=new Ls({props:{"aria-label":j("video360")}}),{c(){e=T("div"),R(t.$$.fragment),f(e,"class","spherical-video-icon svelte-dtyj47")},m(o,r){k(o,e,r),M(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&&w(e),L(t)}}}function W_(i){let e,t;return e=new Dl({props:{thumbUrl:i[2],chromecastDeviceName:i[56]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),o[1]&33554432&&(r.chromecastDeviceName=n[56]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function K_(i){let e,t;return e=new Nl({props:{shifted:i[32],captions:i[58],position:i[34],playerSize:i[35],isMobile:!0}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let r={};o[1]&2&&(r.shifted=n[32]),o[1]&134217728&&(r.captions=n[58]),o[1]&8&&(r.position=n[34]),o[1]&16&&(r.playerSize=n[35]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function j_(i){let e,t,n,o,r;return t=new Ol({}),{c(){e=T("div"),R(t.$$.fragment)},m(l,a){k(l,e,a),M(t,e,null),n=!0,o||(r=Se(e,"click",vt(i[106])),o=!0)},p:_e,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){p(t.$$.fragment,l),n=!1},d(l){l&&w(e),L(t),o=!1,r()}}}function G_(i){let e,t,n,o;function r(s){i[140](s)}function l(s){i[141](s)}let a={bottomHidden:i[39]==="thumb"||i[39]==="LiveWaitingStart"||i[39]==="LiveWaitingRecover"||i[39]==="LiveWaitingRecord"||i[39]==="ads",showControls:i[32],bottomNoSmooth:i[50],isAds:i[39]==="ads",canRewindLive:i[5]&&i[59]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showAutoplayNext:i[22],showNextPrevButtons:i[23],nextButtonActive:i[14],prevButtonActive:i[15],isOneVideoPlaylist:i[18],customFullscreenSupported:i[45],endScreenShown:i[30],toggleFullscreen:i[103],seekToInteractive:i[24],playPrevChapter:i[25],onDisabledPlayPrevChapterClick:i[109],onDisabledSeekToInteractiveClick:i[110]};return i[42]!==void 0&&(a.playerControlsWrapperRef=i[42]),i[43]!==void 0&&(a.playerControlsRef=i[43]),e=new Vl({props:a}),ye.push(()=>We(e,"playerControlsWrapperRef",r)),ye.push(()=>We(e,"playerControlsRef",l)),{c(){R(e.$$.fragment)},m(s,u){M(e,s,u),o=!0},p(s,u){let c={};u[1]&256&&(c.bottomHidden=s[39]==="thumb"||s[39]==="LiveWaitingStart"||s[39]==="LiveWaitingRecover"||s[39]==="LiveWaitingRecord"||s[39]==="ads"),u[1]&2&&(c.showControls=s[32]),u[1]&524288&&(c.bottomNoSmooth=s[50]),u[1]&256&&(c.isAds=s[39]==="ads"),u[0]&32|u[1]&268435456&&(c.canRewindLive=s[5]&&s[59]!==0),u[0]&2048&&(c.logoClickable=s[11]),u[0]&4096&&(c.logoHidden=s[12]),u[0]&8192&&(c.logoTargetUrl=s[13]),u[0]&4194304&&(c.showAutoplayNext=s[22]),u[0]&8388608&&(c.showNextPrevButtons=s[23]),u[0]&16384&&(c.nextButtonActive=s[14]),u[0]&32768&&(c.prevButtonActive=s[15]),u[0]&262144&&(c.isOneVideoPlaylist=s[18]),u[1]&16384&&(c.customFullscreenSupported=s[45]),u[0]&1073741824&&(c.endScreenShown=s[30]),u[0]&16777216&&(c.seekToInteractive=s[24]),u[0]&33554432&&(c.playPrevChapter=s[25]),!t&&u[1]&2048&&(t=!0,c.playerControlsWrapperRef=s[42],ze(()=>t=!1)),!n&&u[1]&4096&&(n=!0,c.playerControlsRef=s[43],ze(()=>n=!1)),e.$set(c)},i(s){o||(d(e.$$.fragment,s),o=!0)},o(s){p(e.$$.fragment,s),o=!1},d(s){L(e,s)}}}function Y_(i){let e,t,n,o;function r(a){i[142](a)}let l={supportLink:i[19],returnFocus:By};return i[27]!==void 0&&(l.ref=i[27]),t=new Wl({props:l}),ye.push(()=>We(t,"ref",r)),{c(){e=T("div"),R(t.$$.fragment),f(e,"class","settings-mobile svelte-dtyj47")},m(a,s){k(a,e,s),M(t,e,null),o=!0},p(a,s){let u={};s[0]&524288&&(u.supportLink=a[19]),!n&&s[0]&134217728&&(n=!0,u.ref=a[27],ze(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&w(e),L(t)}}}function Q_(i){let e,t;return e=new Mr({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Z_(i){let e,t;return e=new Zs({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function X_(i){let e,t,n=i[5]&&i[83]&&!i[53].has("TIMELINE"),o,r,l,a,s,u,c,m,h,v,g,S,y,A,I,C,P,U;e=new Fl({props:{hidden:i[39]!=="thumb"||i[37]||i[94]&&i[4],thumbUrl:i[2],startVideo:i[26]}});let x=n&&B_(i),V=i[39]==="LiveWaitingStart"&&O_(i),Z=i[39]==="LiveWaitingRecover"&&F_(i),ae=i[39]==="LiveWaitingRecord"&&x_(i),Q=i[6]&&i[20]&&H_(i),ue=i[30]&&i[16]&&i[17]&&q_(i),q=i[54]&&U_(i),H=i[55]&&z_(i),be=i[40]&&W_(i),W=i[57].value!=="off"&&K_(i),te=i[37]&&j_(i),z=i[20]&&G_(i),pe=i[31]&&Y_(i);A=new zs({props:{isLive:i[60],isHidden:!i[46],isPlaying:i[51],position:i[34],duration:i[33]}});let se=i[44]&&Q_(i),X=i[61]&&Z_(i);return{c(){R(e.$$.fragment),t=G(),x&&x.c(),o=G(),V&&V.c(),r=G(),Z&&Z.c(),l=G(),ae&&ae.c(),a=G(),Q&&Q.c(),s=G(),ue&&ue.c(),u=G(),q&&q.c(),c=G(),H&&H.c(),m=G(),be&&be.c(),h=G(),W&&W.c(),v=G(),te&&te.c(),g=G(),z&&z.c(),S=G(),pe&&pe.c(),y=G(),R(A.$$.fragment),I=G(),se&&se.c(),C=G(),X&&X.c(),P=Je()},m(re,oe){M(e,re,oe),k(re,t,oe),x&&x.m(re,oe),k(re,o,oe),V&&V.m(re,oe),k(re,r,oe),Z&&Z.m(re,oe),k(re,l,oe),ae&&ae.m(re,oe),k(re,a,oe),Q&&Q.m(re,oe),k(re,s,oe),ue&&ue.m(re,oe),k(re,u,oe),q&&q.m(re,oe),k(re,c,oe),H&&H.m(re,oe),k(re,m,oe),be&&be.m(re,oe),k(re,h,oe),W&&W.m(re,oe),k(re,v,oe),te&&te.m(re,oe),k(re,g,oe),z&&z.m(re,oe),k(re,S,oe),pe&&pe.m(re,oe),k(re,y,oe),M(A,re,oe),k(re,I,oe),se&&se.m(re,oe),k(re,C,oe),X&&X.m(re,oe),k(re,P,oe),U=!0},p(re,oe){let Ze={};oe[0]&16|oe[1]&320&&(Ze.hidden=re[39]!=="thumb"||re[37]||re[94]&&re[4]),oe[0]&4&&(Ze.thumbUrl=re[2]),oe[0]&67108864&&(Ze.startVideo=re[26]),e.$set(Ze),oe[0]&32|oe[1]&4194304&&(n=re[5]&&re[83]&&!re[53].has("TIMELINE")),n?x?(x.p(re,oe),oe[0]&32|oe[1]&4194304&&d(x,1)):(x=B_(re),x.c(),d(x,1),x.m(o.parentNode,o)):x&&(ce(),p(x,1,1,()=>{x=null}),fe()),re[39]==="LiveWaitingStart"?V?(V.p(re,oe),oe[1]&256&&d(V,1)):(V=O_(re),V.c(),d(V,1),V.m(r.parentNode,r)):V&&(ce(),p(V,1,1,()=>{V=null}),fe()),re[39]==="LiveWaitingRecover"?Z?(Z.p(re,oe),oe[1]&256&&d(Z,1)):(Z=F_(re),Z.c(),d(Z,1),Z.m(l.parentNode,l)):Z&&(ce(),p(Z,1,1,()=>{Z=null}),fe()),re[39]==="LiveWaitingRecord"?ae?(ae.p(re,oe),oe[1]&256&&d(ae,1)):(ae=x_(re),ae.c(),d(ae,1),ae.m(a.parentNode,a)):ae&&(ce(),p(ae,1,1,()=>{ae=null}),fe()),re[6]&&re[20]?Q?(Q.p(re,oe),oe[0]&1048640&&d(Q,1)):(Q=H_(re),Q.c(),d(Q,1),Q.m(s.parentNode,s)):Q&&(ce(),p(Q,1,1,()=>{Q=null}),fe()),re[30]&&re[16]&&re[17]?ue?(ue.p(re,oe),oe[0]&1073938432&&d(ue,1)):(ue=q_(re),ue.c(),d(ue,1),ue.m(u.parentNode,u)):ue&&(ce(),p(ue,1,1,()=>{ue=null}),fe()),re[54]?q?oe[1]&8388608&&d(q,1):(q=U_(re),q.c(),d(q,1),q.m(c.parentNode,c)):q&&(ce(),p(q,1,1,()=>{q=null}),fe()),re[55]?H?oe[1]&16777216&&d(H,1):(H=z_(re),H.c(),d(H,1),H.m(m.parentNode,m)):H&&(ce(),p(H,1,1,()=>{H=null}),fe()),re[40]?be?(be.p(re,oe),oe[1]&512&&d(be,1)):(be=W_(re),be.c(),d(be,1),be.m(h.parentNode,h)):be&&(ce(),p(be,1,1,()=>{be=null}),fe()),re[57].value!=="off"?W?(W.p(re,oe),oe[1]&67108864&&d(W,1)):(W=K_(re),W.c(),d(W,1),W.m(v.parentNode,v)):W&&(ce(),p(W,1,1,()=>{W=null}),fe()),re[37]?te?(te.p(re,oe),oe[1]&64&&d(te,1)):(te=j_(re),te.c(),d(te,1),te.m(g.parentNode,g)):te&&(ce(),p(te,1,1,()=>{te=null}),fe()),re[20]?z?(z.p(re,oe),oe[0]&1048576&&d(z,1)):(z=G_(re),z.c(),d(z,1),z.m(S.parentNode,S)):z&&(ce(),p(z,1,1,()=>{z=null}),fe()),re[31]?pe?(pe.p(re,oe),oe[1]&1&&d(pe,1)):(pe=Y_(re),pe.c(),d(pe,1),pe.m(y.parentNode,y)):pe&&(ce(),p(pe,1,1,()=>{pe=null}),fe());let Fe={};oe[1]&536870912&&(Fe.isLive=re[60]),oe[1]&32768&&(Fe.isHidden=!re[46]),oe[1]&1048576&&(Fe.isPlaying=re[51]),oe[1]&8&&(Fe.position=re[34]),oe[1]&4&&(Fe.duration=re[33]),A.$set(Fe),re[44]?se?oe[1]&8192&&d(se,1):(se=Q_(re),se.c(),d(se,1),se.m(C.parentNode,C)):se&&(ce(),p(se,1,1,()=>{se=null}),fe()),re[61]?X?oe[1]&1073741824&&d(X,1):(X=Z_(re),X.c(),d(X,1),X.m(P.parentNode,P)):X&&(ce(),p(X,1,1,()=>{X=null}),fe())},i(re){U||(d(e.$$.fragment,re),d(x),d(V),d(Z),d(ae),d(Q),d(ue),d(q),d(H),d(be),d(W),d(te),d(z),d(pe),d(A.$$.fragment,re),d(se),d(X),U=!0)},o(re){p(e.$$.fragment,re),p(x),p(V),p(Z),p(ae),p(Q),p(ue),p(q),p(H),p(be),p(W),p(te),p(z),p(pe),p(A.$$.fragment,re),p(se),p(X),U=!1},d(re){re&&(w(t),w(o),w(r),w(l),w(a),w(s),w(u),w(c),w(m),w(h),w(v),w(g),w(S),w(y),w(I),w(C),w(P)),L(e,re),x&&x.d(re),V&&V.d(re),Z&&Z.d(re),ae&&ae.d(re),Q&&Q.d(re),ue&&ue.d(re),q&&q.d(re),H&&H.d(re),be&&be.d(re),W&&W.d(re),te&&te.d(re),z&&z.d(re),pe&&pe.d(re),L(A,re),se&&se.d(re),X&&X.d(re)}}}function Dy(i){let e,t,n,o,r,l=i[52],a,s,u,c,m,h,v=X_(i);return{c(){e=T("div"),t=T("div"),n=T("div"),r=G(),v.c(),a=G(),s=T("div"),f(n,"class","video-container svelte-dtyj47"),f(n,"style",o=`transform: rotate(${i[36]}deg) scale(${i[47]})`),f(n,"data-testid","video-container"),f(n,"data-is-playing",i[51]),K(n,"fast-rotate",!i[1].isSmoothVideoRotate),f(t,"class","video-wrapper svelte-dtyj47"),K(t,"hidden",i[39]!=="video"),f(s,"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){k(g,e,S),_(e,t),_(t,n),i[136](n),_(e,r),v.m(e,null),_(e,a),_(e,s),i[143](s),i[144](e),c=!0,m||(h=[Se(window,"blur",i[104]),Se(t,"click",mi(i[105])),Se(e,"click",i[107],!0),Se(e,"focusin",i[108],!0)],m=!0)},p(g,S){(!c||S[1]&65568&&o!==(o=`transform: rotate(${g[36]}deg) scale(${g[47]})`))&&f(n,"style",o),(!c||S[1]&1048576)&&f(n,"data-is-playing",g[51]),(!c||S[0]&2)&&K(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!c||S[1]&256)&&K(t,"hidden",g[39]!=="video"),S[1]&2097152&&D(l,l=g[52])?(ce(),p(v,1,1,_e),fe(),v=X_(g),v.c(),d(v,1),v.m(e,a)):v.p(g,S)},i(g){c||(d(v),c=!0)},o(g){p(v),c=!1},d(g){g&&w(e),i[136](null),v.d(g),i[143](null),i[144](null),m=!1,ut(h)}}}function Oy(i,e,t){var Qn,Zn;let n,o,r,l,a,s,u,c,m,h,v,g,S,y,A,I,C,P,U,x,V,Z,ae,Q,ue,q,H,be,W,te,z,pe,se,X,re,oe,Ze,Fe,{store:Ie}=e,{uiConfig:Ce}=e,{thumbUrl:Ae}=e,{videoContainer:qe}=e,{interactiveContainer:J}=e,{live:he}=e,{autoplay:Te}=e,{canRewindLive:Ye}=e,{showAds:nt}=e,{adsSlotId:st=void 0}=e,{adsParams:at=void 0}=e,{adsPreviewParam:ct=void 0}=e,{duration:me=void 0}=e,{logoClickable:Qe}=e,{logoHidden:De}=e,{logoTargetUrl:lt=""}=e,{nextButtonActive:je=!1}=e,{prevButtonActive:xe=!1}=e,{endScreenVideoTitle:Pe=void 0}=e,{endScreenVideoThumb:ft=void 0}=e,{isOneVideoPlaylist:ge=!1}=e,{supportLink:dt}=e,{shadowRootContainer:bt=void 0}=e,{outerContainerRef:Xe=void 0}=e,{showMiniTimer:yt=!1}=e,{fullScreenTarget:Tt=void 0}=e,{playerStarted:Kt=!1}=e,{showEndScreen:Ut}=e,{showAutoplayNext:jt}=e,{showNextPrevButtons:Ht}=e,{seekToInteractive:zt}=e,{playPrevChapter:Vt}=e,{firstStart:ot}=e,{seekTime:St}=e,Lt=Ie.getLogger().createComponentLog("Root component"),de=Ie.interfaceLanguage$;B(i,de,ie=>t(52,W=ie));let et=Ie.state.playbackState$;B(i,et,ie=>t(133,ue=ie));let kt=Ie.ads.playbackState;B(i,kt,ie=>t(134,q=ie));let ri=Ie.state.positionWithScrubbing$;B(i,ri,ie=>t(34,s=ie));let Bt=Ie.state.duration$;B(i,Bt,ie=>t(33,a=ie));let Nt=Ie.playerPhase;B(i,Nt,ie=>t(39,V=ie));let si=Ie.ui.isFullscreen;B(i,si,ie=>t(150,c=ie));let Wt=Ie.ui.controlsVisible;B(i,Wt,ie=>t(32,r=ie));let li=Ie.ui.interactiveHideMobileControls;B(i,li,ie=>t(125,g=ie));let Ti=Ie.ui.settingsMenu.visible$;B(i,Ti,ie=>t(31,o=ie));let Fi=Ie.ui.settingsMenu.openedByBtnKeyboard$;B(i,Fi,ie=>t(123,n=ie));let _i=Ie.ui.scrubbingInProgress;B(i,_i,ie=>t(126,y=ie));let yi=Ie.ui.debugPanelVisible;B(i,yi,ie=>t(61,Fe=ie));let wi=Ie.state.isLoaderVisible;B(i,wi,ie=>t(135,H=ie));let Ot=Ie.state.isEnded$;B(i,Ot,ie=>t(128,C=ie));let xi=Ie.state.chromecastConnected$;B(i,xi,ie=>t(40,Z=ie));let Ft=Ie.state.chromecastDeviceName$;B(i,Ft,ie=>t(56,se=ie));let Zt=Ie.ads.postrollPassed;B(i,Zt,ie=>t(129,P=ie));let Ii=Ie.ui.mobileUnmuteButtonExpanded,Xt=Ie.ui.mobileUnmuteButtonVisible,Pi=Ie.state.isLive$;B(i,Pi,ie=>t(60,Ze=ie));let Bi=Ie.state.isPlaying$;B(i,Bi,ie=>t(51,be=ie));let Le=Ie.state.isActiveLive$;B(i,Le,ie=>t(124,u=ie));let tt=Ie.state.isRewindableLive$,qt=Ie.state.crashed$;B(i,qt,ie=>t(37,I=ie));let Gt=Ie.webApi.annotationsApi,It=Ie.webApi.pictureInPictureApi,Zi=Ie.state.videoSize$;B(i,Zi,ie=>t(151,h=ie));let xt=Ie.state.currentSubtitle$;B(i,xt,ie=>t(57,X=ie));let ii=Ie.state.currentSubtitleCaptions$;B(i,ii,ie=>t(58,re=ie));let mn=Ie.state.duration$;B(i,mn,ie=>t(59,oe=ie));let In=Ie.state.graphIsOpened$;B(i,In,ie=>t(132,Q=ie));let pn=Ie.ui.playerSize;B(i,pn,ie=>t(35,m=ie));let ai=Ie.ui.is3DVideo;B(i,ai,ie=>t(54,z=ie));let Hi=Ie.ui.icon3DVideoVisible;B(i,Hi,ie=>t(55,pe=ie));let _n=Ie.ui.rotateAlpha;B(i,_n,ie=>t(36,S=ie));let Xi=Ie.state.isInteractive,Ni=Ie.state.isInteractiveTime$;B(i,Ni,ie=>t(127,A=ie));let hn=Ie.state.isInteractiveExpectation$;B(i,hn,ie=>t(131,ae=ie));let ui=Ie.state.hasInteractiveBranches,On=Ie.ui.controls.disabledControls$;B(i,On,ie=>t(53,te=ie));let Ei=Ie.ui.touched;B(i,Ei,ie=>t(130,x=ie));let qi=Ie.ui.overlayContainer$,Ui=Ie.ui.autoplayNextEnabled$;B(i,Ui,ie=>t(38,U=ie));let Ji=Ie.state.loadedMetadata$;B(i,Ji,ie=>t(149,l=ie));let Ai=Ie.actions.internal.closeSettingsMenu,zi=(Qn=Ie.callbacks)==null?void 0:Qn.onDisabledPlayPrevChapterClick,$i=(Zn=Ie.callbacks)==null?void 0:Zn.onDisabledSeekToInteractiveClick,ki,Di,ni,oi,rt,Jt,hi,gn,Wi,bn=Me(!1);B(i,bn,ie=>t(50,v=ie));let en,ci=!1,tn,Mi=!1,Ge,vn=!0,nn,Oi=!1,on,rn=!1,Ki;It==null||It.setContext(Zr());let Kn=ie=>{clearTimeout(Jt),ie&&(Xt.set(!0),Ii.set(!0),Jt=setTimeout(()=>{Ii.set(!1)},Ce.controls.collapseMobileUnmute),Xi||gi(Ce.controls.hideTimeoutMobile))};Ie.setUiCallbacks({onStarted:Kn});let Fn=()=>{clearTimeout(rt),t(118,ci=!1),g&&li.set(!1)},gi=ie=>{Fn(),t(118,ci=!0),rt=setTimeout(()=>t(118,ci=!1),ie);let Rt=ie-100;en=setTimeout(()=>{v&&bn.set(!1)},Rt>0?Rt:ie)},xn=ai.subscribe(ie=>{Hi.set(ie),ie&&(clearTimeout(hi),hi=setTimeout(()=>Hi.set(!1),Ce.controls.hide360IconTimeout))}),yn=async(ie=Fo())=>{var Rt,ne,Cn,Xn;if(ie&&!as.isIOS){let Ci=es(),ao=Gi(),Ao=as.isSamsungBrowser&&Ci===bt;ie=Ci===ao||Ao}if(ie){gi(Ce.controls.hideTimeoutFullscreen);try{await(It==null?void 0:It.remove())}catch(Ci){Lt({message:String(Ci)})}try{let Ci=h!=null&&h.width&&(h!=null&&h.height)?h:m;await jd(Ci)}catch(Ci){Lt({message:String(Ci)})}}si.set(ie),Ie.getAdmanWrapper().setFullscreen(ie),c?(ne=(Rt=Ie.callbacks)==null?void 0:Rt.onFullscreenEnter)==null||ne.call(Rt):(Xn=(Cn=Ie.callbacks)==null?void 0:Cn.onFullscreenExit)==null||Xn.call(Cn)},wn=ie=>{let Rt=ie;pn.set({width:Rt.target.width,height:Rt.target.height})};Ct(()=>{var ie;return xs(yn),Ce.features.annotationsInside&&(Gt==null||Gt.init(ki)),or(It)&&(It==null||It.assignPlayerContainer(ki),It==null||It.registryExternalEventHandlers({resize:wn})),t(45,vn=!as.isIphoneOrOldIpad),J&&((ie=qe.parentElement)==null||ie.insertBefore(J,qe.nextSibling)),()=>{clearTimeout(rt),clearTimeout(en),clearTimeout(Jt),clearTimeout(hi),xn(),It==null||It.dispose(),Hs(yn)}});let ji=!0,sn=!0,kn=ie=>{let Rt=s+(ie==="forward"?1:-1)*Ce.controls.seekStepMobile/1e3;Rt<0?(t(48,ji=!1),Rt=0):Rt>=a&&(t(49,sn=!1),Rt=a),t(120,Mi=!0),St(Rt)},Gi=()=>{let ie=as.isIOS||Ce.features.fullscreenInternalTargetPlayerContainer||!Xe?ki:Xe,Rt=ie.getRootNode(),ne=Rt instanceof ShadowRoot?Rt.host:Rt,Cn=Tt instanceof HTMLElement&&Tt.contains(ne);return Ce.allowChangingFullscreenTarget&&Tt&&Cn?Tt:ie},ln=async()=>{try{if(Fo())await Fs(document),Lt({message:"exit fullscreen"});else{if(Lt({message:"request fullscreen"}),as.isIOS&&!l)return;await Os(Gi())}}catch(ie){Lt({message:String(ie)})}},Hn=()=>{Ai()},io=()=>{if(o){Hn();return}if(!Kt){ot(),gi(Ce.controls.hideTimeoutCursor);return}t(120,Mi=!1),r?Fn():gi(Ce.controls.hideTimeoutMobile)},no=()=>{if(o){Hn();return}},fi=()=>{Ei.set(!0)},oo=()=>{Xi||(bn.set(!0),gi(Ce.controls.hideTimeoutCursor))},ro=ie=>{zi&&(zi(ie),gi(Ce.controls.hideTimeoutMobile))},jn=ie=>{$i&&($i(ie),gi(Ce.controls.hideTimeoutMobile))};V_({fullScreenChangeHandler:yn,getFullscreenTarget:Gi}),R_({store:Ie,getFullscreenTarget:Gi});function so(ie){ye[ie?"unshift":"push"](()=>{qe=ie,t(0,qe)})}let lo=()=>kn("backward"),Gn=()=>kn("forward"),Pn=()=>t(29,Oi=!0);function En(ie){Di=ie,t(42,Di)}function go(ie){ni=ie,t(43,ni)}function Yn(ie){oi=ie,t(27,oi)}function bo(ie){ye[ie?"unshift":"push"](()=>{Wi=ie,t(28,Wi)})}function bi(ie){ye[ie?"unshift":"push"](()=>{ki=ie,t(41,ki)})}return i.$$set=ie=>{"store"in ie&&t(111,Ie=ie.store),"uiConfig"in ie&&t(1,Ce=ie.uiConfig),"thumbUrl"in ie&&t(2,Ae=ie.thumbUrl),"videoContainer"in ie&&t(0,qe=ie.videoContainer),"interactiveContainer"in ie&&t(112,J=ie.interactiveContainer),"live"in ie&&t(3,he=ie.live),"autoplay"in ie&&t(4,Te=ie.autoplay),"canRewindLive"in ie&&t(5,Ye=ie.canRewindLive),"showAds"in ie&&t(6,nt=ie.showAds),"adsSlotId"in ie&&t(7,st=ie.adsSlotId),"adsParams"in ie&&t(8,at=ie.adsParams),"adsPreviewParam"in ie&&t(9,ct=ie.adsPreviewParam),"duration"in ie&&t(10,me=ie.duration),"logoClickable"in ie&&t(11,Qe=ie.logoClickable),"logoHidden"in ie&&t(12,De=ie.logoHidden),"logoTargetUrl"in ie&&t(13,lt=ie.logoTargetUrl),"nextButtonActive"in ie&&t(14,je=ie.nextButtonActive),"prevButtonActive"in ie&&t(15,xe=ie.prevButtonActive),"endScreenVideoTitle"in ie&&t(16,Pe=ie.endScreenVideoTitle),"endScreenVideoThumb"in ie&&t(17,ft=ie.endScreenVideoThumb),"isOneVideoPlaylist"in ie&&t(18,ge=ie.isOneVideoPlaylist),"supportLink"in ie&&t(19,dt=ie.supportLink),"shadowRootContainer"in ie&&t(113,bt=ie.shadowRootContainer),"outerContainerRef"in ie&&t(114,Xe=ie.outerContainerRef),"showMiniTimer"in ie&&t(115,yt=ie.showMiniTimer),"fullScreenTarget"in ie&&t(116,Tt=ie.fullScreenTarget),"playerStarted"in ie&&t(20,Kt=ie.playerStarted),"showEndScreen"in ie&&t(21,Ut=ie.showEndScreen),"showAutoplayNext"in ie&&t(22,jt=ie.showAutoplayNext),"showNextPrevButtons"in ie&&t(23,Ht=ie.showNextPrevButtons),"seekToInteractive"in ie&&t(24,zt=ie.seekToInteractive),"playPrevChapter"in ie&&t(25,Vt=ie.playPrevChapter),"firstStart"in ie&&t(26,ot=ie.firstStart),"seekTime"in ie&&t(117,St=ie.seekTime)},i.$$.update=()=>{i.$$.dirty[1]&320|i.$$.dirty[4]&3072&&t(44,gn=(V==="video"&&H||V==="ads"&&q==="inactive")&&!I),i.$$.dirty[0]&268435456&&qi.set(Wi),i.$$.dirty[4]&512&&t(119,tn=ue!==Ry.PLAYING),i.$$.dirty[3]&100663296|i.$$.dirty[4]&402&&t(121,Ge=Q||g||!ci&&(C&&!!ui||tn&&ae)),i.$$.dirty[0]&543359040|i.$$.dirty[1]&192|i.$$.dirty[4]&48&&t(30,on=(Ut||jt&&U)&&!!Pe&&!!ft&&(nt&&P||!nt)&&C&&!I&&!Oi),i.$$.dirty[0]&1073741824|i.$$.dirty[1]&833|i.$$.dirty[3]&503316480|i.$$.dirty[4]&20&&Wt.set((tn||o||y||Z||!on&&(C||ci&&!Mi))&&!Ge&&V==="video"&&!I),i.$$.dirty[0]&2|i.$$.dirty[1]&322|i.$$.dirty[3]&4194304|i.$$.dirty[4]&64&&t(46,nn=Ce.features.thumbTimer&&yt&&V==="video"&&!r&&!I&&!Xi&&(Ce.hideThumbTimerAfterTouch&&!x||!Ce.hideThumbTimerAfterTouch)),i.$$.dirty[0]&2|i.$$.dirty[3]&536870912|i.$$.dirty[4]&12&&(!y&&rn&&!A&&gi(Ce.controls.hideTimeoutMobile),t(122,rn=y)),i.$$.dirty[0]&1|i.$$.dirty[1]&48&&t(47,Ki=qe&&S%180?m.height/m.width:1),i.$$.dirty[1]&12|i.$$.dirty[4]&1&&(t(48,ji=s>0),t(49,sn=!u&&s<a)),i.$$.dirty[0]&134217728|i.$$.dirty[1]&1|i.$$.dirty[3]&1073741824&&_o(oi,o,n)},[qe,Ce,Ae,he,Te,Ye,nt,st,at,ct,me,Qe,De,lt,je,xe,Pe,ft,ge,dt,Kt,Ut,jt,Ht,zt,Vt,ot,oi,Wi,Oi,on,o,r,a,s,m,S,I,U,V,Z,ki,Di,ni,gn,vn,nn,Ki,ji,sn,v,be,W,te,z,pe,se,X,re,oe,Ze,Fe,de,et,kt,ri,Bt,Nt,si,Wt,li,Ti,Fi,_i,yi,wi,Ot,xi,Ft,Zt,Pi,Bi,Le,tt,qt,Zi,xt,ii,mn,In,pn,ai,Hi,_n,Xi,Ni,hn,On,Ei,Ui,Ji,bn,kn,ln,Hn,io,no,fi,oo,ro,jn,Ie,J,bt,Xe,yt,Tt,St,ci,tn,Mi,Ge,rn,n,u,g,y,A,C,P,x,ae,Q,ue,q,H,so,lo,Gn,Pn,En,go,Yn,bo,bi]}var Af=class extends O{constructor(e){super(),F(this,e,Oy,Dy,D,{store:111,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:112,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,nextButtonActive:14,prevButtonActive:15,endScreenVideoTitle:16,endScreenVideoThumb:17,isOneVideoPlaylist:18,supportLink:19,shadowRootContainer:113,outerContainerRef:114,showMiniTimer:115,fullScreenTarget:116,playerStarted:20,showEndScreen:21,showAutoplayNext:22,showNextPrevButtons:23,seekToInteractive:24,playPrevChapter:25,firstStart:26,seekTime:117},Ny,[-1,-1,-1,-1,-1,-1])}},J_=Af;function Uy(i){ve(i,"svelte-zbipwr",`.root.svelte-zbipwr{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0, 0, 0, 0.40);--white-alpha-24:rgba(255, 255, 255, 0.24);--white-alpha-72:rgba(255, 255, 255, 0.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left:4px;--focused:var(--white);--focused-element-shadow:inset 0 0 0 2px var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0, 0, 0, 0.5);--big-play-hover-bg-color:rgba(0, 0, 0, 0.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:rgba(92, 156, 230, 1);--slider-height:5px;--slider-video-episode-gap:1.5px;--slider-radius:calc(var(--slider-height) / 2);--slider-handle-size:13px;--slider-bg:rgba(255, 255, 255, 0.4);--slider-loaded-bg:rgba(255, 255, 255, 0.4);--slider-filled-bg:var(--white);--slider-filled-active-live-bg:var(--red);--slider-filled-ads:rgba(103, 165, 235, 1);--slider-disabled-color:rgba(248, 248, 248, 0.31);--controls-gradient:linear-gradient(
|
|
35
35
|
180deg,
|
|
36
36
|
rgba(0, 0, 0, 0.00) 0%,
|
|
37
37
|
rgba(0, 0, 0, 0.01) 6.67%,
|
|
@@ -49,5 +49,5 @@ var ph=Object.defineProperty;var _h=(i,e,t)=>e in i?ph(i,e,{enumerable:!0,config
|
|
|
49
49
|
rgba(0, 0, 0, 0.96) 86.67%,
|
|
50
50
|
rgba(0, 0, 0, 0.99) 93.33%,
|
|
51
51
|
#000 100%
|
|
52
|
-
);--timeline-preview-shadow:rgba(0, 0, 0, 0.08);--timeline-preview-bg:rgba(34, 34, 34, 1);--settings-bg:rgba(0, 0, 0, 0.72);--settings-item-bg-hover:rgba(255, 255, 255, 0.08);--settings-radius:8px;--mobile-settings-bg:#2C2D2E;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--end-screen-mobile-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--settings-menu-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;background:var(--black)}*{-webkit-tap-highlight-color:transparent}button{border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}svg:not(.interactiveContainer svg){pointer-events:none}*:focus, *:focus-visible{outline:none}*:focus-visible{box-shadow:var(--focused-element-shadow)}.hidden{visibility:hidden;opacity:0}.overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index)}.out-of-view{position:absolute !important;left:-1000vh !important}.icon.icon-error-stub{display:flex;justify-content:center;align-items:center}`)}function Uy(i){let e,t,n,o;function r(l){i[61](l)}function s(l){i[62](l)}let a={store:i[1],uiConfig:i[34],title:i[2],thumbUrl:i[3],interactiveContainer:i[4],live:i[5],autoplay:i[6],canRewindLive:i[7],showAds:i[8],adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12],logoClickable:i[13],logoHidden:i[14],logoTargetUrl:i[35],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[33],seekToInteractive:i[26],playPrevChapter:i[27],firstStart:i[37],showEndScreen:i[28],showNextPrevButtons:i[30]};return i[32]!==void 0&&(a.videoContainer=i[32]),i[0]!==void 0&&(a.keyboardControls=i[0]),e=new I_({props:a}),we.push(()=>ze(e,"videoContainer",r)),we.push(()=>ze(e,"keyboardControls",s)),{c(){R(e.$$.fragment)},m(l,u){L(e,l,u),o=!0},p(l,u){let c={};u[0]&2&&(c.store=l[1]),u[0]&4&&(c.title=l[2]),u[0]&8&&(c.thumbUrl=l[3]),u[0]&16&&(c.interactiveContainer=l[4]),u[0]&32&&(c.live=l[5]),u[0]&64&&(c.autoplay=l[6]),u[0]&128&&(c.canRewindLive=l[7]),u[0]&256&&(c.showAds=l[8]),u[0]&512&&(c.adsSlotId=l[9]),u[0]&1024&&(c.adsParams=l[10]),u[0]&2048&&(c.adsPreviewParam=l[11]),u[0]&4096&&(c.duration=l[12]),u[0]&8192&&(c.logoClickable=l[13]),u[0]&16384&&(c.logoHidden=l[14]),u[0]&65536&&(c.nextButtonActive=l[16]),u[0]&131072&&(c.prevButtonActive=l[17]),u[0]&262144&&(c.endScreenVideoTitle=l[18]),u[0]&524288&&(c.endScreenVideoThumb=l[19]),u[0]&1048576&&(c.isOneVideoPlaylist=l[20]),u[0]&2097152&&(c.supportLink=l[21]),u[0]&4194304&&(c.shadowRootContainer=l[22]),u[0]&8388608&&(c.outerContainerRef=l[23]),u[0]&16777216&&(c.fullScreenTarget=l[24]),u[0]&33554432&&(c.showMiniTimer=l[25]),u[1]&4&&(c.playerStarted=l[33]),u[0]&67108864&&(c.seekToInteractive=l[26]),u[0]&134217728&&(c.playPrevChapter=l[27]),u[0]&268435456&&(c.showEndScreen=l[28]),u[0]&1073741824&&(c.showNextPrevButtons=l[30]),!t&&u[1]&2&&(t=!0,c.videoContainer=l[32],Ue(()=>t=!1)),!n&&u[0]&1&&(n=!0,c.keyboardControls=l[0],Ue(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){V(e,l)}}}function zy(i){let e,t,n;function o(s){i[60](s)}let r={store:i[1],uiConfig:i[34],thumbUrl:i[3],interactiveContainer:i[4],live:i[5],autoplay:i[6],canRewindLive:i[7],showAds:i[8],adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12],logoClickable:i[13],logoHidden:i[14],logoTargetUrl:i[35],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[33],seekToInteractive:i[26],playPrevChapter:i[27],firstStart:i[37],seekTime:i[31],showEndScreen:i[28],showAutoplayNext:i[29],showNextPrevButtons:i[30]};return i[32]!==void 0&&(r.videoContainer=i[32]),e=new X_({props:r}),we.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]&2&&(l.store=s[1]),a[0]&8&&(l.thumbUrl=s[3]),a[0]&16&&(l.interactiveContainer=s[4]),a[0]&32&&(l.live=s[5]),a[0]&64&&(l.autoplay=s[6]),a[0]&128&&(l.canRewindLive=s[7]),a[0]&256&&(l.showAds=s[8]),a[0]&512&&(l.adsSlotId=s[9]),a[0]&1024&&(l.adsParams=s[10]),a[0]&2048&&(l.adsPreviewParam=s[11]),a[0]&4096&&(l.duration=s[12]),a[0]&8192&&(l.logoClickable=s[13]),a[0]&16384&&(l.logoHidden=s[14]),a[0]&65536&&(l.nextButtonActive=s[16]),a[0]&131072&&(l.prevButtonActive=s[17]),a[0]&262144&&(l.endScreenVideoTitle=s[18]),a[0]&524288&&(l.endScreenVideoThumb=s[19]),a[0]&1048576&&(l.isOneVideoPlaylist=s[20]),a[0]&2097152&&(l.supportLink=s[21]),a[0]&4194304&&(l.shadowRootContainer=s[22]),a[0]&8388608&&(l.outerContainerRef=s[23]),a[0]&16777216&&(l.fullScreenTarget=s[24]),a[0]&33554432&&(l.showMiniTimer=s[25]),a[1]&4&&(l.playerStarted=s[33]),a[0]&67108864&&(l.seekToInteractive=s[26]),a[0]&134217728&&(l.playPrevChapter=s[27]),a[0]&268435456&&(l.showEndScreen=s[28]),a[0]&536870912&&(l.showAutoplayNext=s[29]),a[0]&1073741824&&(l.showNextPrevButtons=s[30]),!t&&a[1]&2&&(t=!0,l.videoContainer=s[32],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Wy(i){let e,t,n,o,r=[zy,Uy],s=[];function a(l,u){return l[15]?0:1}return t=a(i,[-1,-1,-1]),n=s[t]=r[t](i),{c(){e=I("div"),n.c(),f(e,"class","root svelte-zbipwr")},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):(ue(),p(s[c],1,1,()=>{s[c]=null}),ce(),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 Ky(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:v}=e,{live:g}=e,{preload:T}=e,{autoplay:C}=e,{volume:A=void 0}=e,{muted:S=void 0}=e,{fromTime:k}=e,{canRewindLive:P}=e,{showAds:H}=e,{adsSlotId:x=void 0}=e,{adsParams:M=void 0}=e,{adsPreviewParam:Z=void 0}=e,{duration:ae=void 0}=e,{logoClickable:Q}=e,{logoHidden:ee}=e,{isMobile:W}=e,{nextButtonActive:q=!1}=e,{prevButtonActive:ve=!1}=e,{endScreenVideoTitle:z=void 0}=e,{endScreenVideoThumb:ie=void 0}=e,{isOneVideoPlaylist:U=!1}=e,{supportLink:pe}=e,{shadowRootContainer:se=void 0}=e,{outerContainerRef:X=void 0}=e,{fullScreenTarget:re=void 0}=e,{failoverHosts:oe=void 0}=e,{showMiniTimer:Ye=!1}=e,{saveRate:Fe}=e,{seekToInteractive:Pe=J_}=e,{playPrevChapter:Se=J_}=e,{volumeMultiplier:Ae}=e,{showEndScreen:He}=e,{showAutoplayNext:J}=e,{showNextPrevButtons:ge}=e,{keyboardControls:Ie=void 0}=e,{subscribers:Ge,stores:nt}=s;nd(l);let lt=Mt(),ut=l.logoLink,et=r.ui.debugPanelVisible,me=r.ui.playerSize,tt=r.state.isLive$;D(i,tt,fe=>t(64,n=fe));let st=r.state.isInteractive&&xy.isAndroid,Qe,he=null,Ke=!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}),md(r,nt);let ft=(fe=!1)=>{t(33,Ke=!0),fe?r.actions.external.firstStart(H):r.actions.internal.firstStart(H)};function be(fe){var ni;let $e=o||fe;$e&&r.initVideo({container:Qe,sources:$e,failoverHosts:oe,subtitles:v,volumeMultiplier:Ae});let kt=Oy.get(es)==="true";et.set(kt),k>0&&r.actions.external.seekTime(k);let ii=W?lt.volumeDefault:(ni=A!=null?A:As())!=null?ni:lt.volumeDefault,Ut=S!=null?S:Ad();if(r.actions.external.setVolume(ii),r.actions.external.setMuted(Ut),r.getAdmanWrapper().setInitialVolume(Ut?0:ii),lt.features.trafficSaving){let zt=Ld();zt&&r.actions.internal.setTrafficSavingEnabled(zt)}if(lt.features.saveRate&&Fe){let zt=Bd();zt&&!n&&r.actions.internal.setPlaybackRate(zt)}if(J){let zt=Dd();zt&&r.actions.internal.setAutoplayNextEnabled(zt)}let Dt=Ed(r.videoId);Dt&&r.actions.internal.setQuality(Dt),r.ui.isAutoplay.set(C),C?ft():T&<.features.preload&&r.actions.internal.preload()}let pt=fe=>{if(window.ResizeObserver){let $e,kt;he=new ResizeObserver(Fy(ii=>{let Ut=ii[0];if(Ut){if(Ut.contentBoxSize){let Dt=Array.isArray(Ut.contentBoxSize)?Ut.contentBoxSize[0]:Ut.contentBoxSize;$e=Dt.inlineSize,kt=Dt.blockSize}else Ut.contentRect&&($e=Ut.contentRect.width,kt=Ut.contentRect.height);me.set({width:$e,height:kt})}},300)),he.observe(fe)}me.set({width:fe.clientWidth,height:fe.clientHeight})},yt=()=>{document.hidden&&r.actions.external.stop()};Ct(()=>{st&&document.addEventListener("visibilitychange",yt),pt(Qe);let fe=Ge.map(kt=>kt.init({store:r,microStores:nt,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 be(),()=>{st&&document.removeEventListener("visibilitychange",yt),he==null||he.disconnect(),fe.forEach(kt=>kt.unsubscribe()),r.destroy()}});function Ze(){Ke?r.actions.external.play():ft(!0)}function It(){r.actions.external.pause()}function Rt(fe){r.actions.external.setMuted(fe)}function Ft(fe){W||fe>=0&&fe<=1&&r.actions.external.setVolume(fe)}function ti(fe){r.actions.internal.seekTime(fe,Hy.UNKNOWN)}function Bt(fe){r.actions.external.seekEpisodeStartTime(fe)}function Kt(){r.actions.external.returnFocusToEpisodes()}function Gt(fe){r.actions.external.setPlaybackRate(fe)}function Nt(fe){r.actions.external.setAutoQualityLimits(fe)}function ot(fe){Qe=fe,t(32,Qe)}function St(fe){Qe=fe,t(32,Qe)}function Lt(fe){Ie=fe,t(0,Ie)}return i.$$set=fe=>{"sources"in fe&&t(38,o=fe.sources),"store"in fe&&t(1,r=fe.store),"microStoresRoot"in fe&&t(39,s=fe.microStoresRoot),"videoConfig"in fe&&t(40,a=fe.videoConfig),"uiConfig"in fe&&t(41,l=fe.uiConfig),"title"in fe&&t(2,u=fe.title),"thumbUrl"in fe&&t(3,c=fe.thumbUrl),"interactiveContainer"in fe&&t(4,m=fe.interactiveContainer),"interactiveController"in fe&&t(42,h=fe.interactiveController),"subtitles"in fe&&t(43,v=fe.subtitles),"live"in fe&&t(5,g=fe.live),"preload"in fe&&t(44,T=fe.preload),"autoplay"in fe&&t(6,C=fe.autoplay),"volume"in fe&&t(45,A=fe.volume),"muted"in fe&&t(46,S=fe.muted),"fromTime"in fe&&t(47,k=fe.fromTime),"canRewindLive"in fe&&t(7,P=fe.canRewindLive),"showAds"in fe&&t(8,H=fe.showAds),"adsSlotId"in fe&&t(9,x=fe.adsSlotId),"adsParams"in fe&&t(10,M=fe.adsParams),"adsPreviewParam"in fe&&t(11,Z=fe.adsPreviewParam),"duration"in fe&&t(12,ae=fe.duration),"logoClickable"in fe&&t(13,Q=fe.logoClickable),"logoHidden"in fe&&t(14,ee=fe.logoHidden),"isMobile"in fe&&t(15,W=fe.isMobile),"nextButtonActive"in fe&&t(16,q=fe.nextButtonActive),"prevButtonActive"in fe&&t(17,ve=fe.prevButtonActive),"endScreenVideoTitle"in fe&&t(18,z=fe.endScreenVideoTitle),"endScreenVideoThumb"in fe&&t(19,ie=fe.endScreenVideoThumb),"isOneVideoPlaylist"in fe&&t(20,U=fe.isOneVideoPlaylist),"supportLink"in fe&&t(21,pe=fe.supportLink),"shadowRootContainer"in fe&&t(22,se=fe.shadowRootContainer),"outerContainerRef"in fe&&t(23,X=fe.outerContainerRef),"fullScreenTarget"in fe&&t(24,re=fe.fullScreenTarget),"failoverHosts"in fe&&t(48,oe=fe.failoverHosts),"showMiniTimer"in fe&&t(25,Ye=fe.showMiniTimer),"saveRate"in fe&&t(49,Fe=fe.saveRate),"seekToInteractive"in fe&&t(26,Pe=fe.seekToInteractive),"playPrevChapter"in fe&&t(27,Se=fe.playPrevChapter),"volumeMultiplier"in fe&&t(50,Ae=fe.volumeMultiplier),"showEndScreen"in fe&&t(28,He=fe.showEndScreen),"showAutoplayNext"in fe&&t(29,J=fe.showAutoplayNext),"showNextPrevButtons"in fe&&t(30,ge=fe.showNextPrevButtons),"keyboardControls"in fe&&t(0,Ie=fe.keyboardControls)},i.$$.update=()=>{i.$$.dirty[0]&32770&&r.ui.isMobile.set(W)},[Ie,r,u,c,m,g,C,P,H,x,M,Z,ae,Q,ee,W,q,ve,z,ie,U,pe,se,X,re,Ye,Pe,Se,He,J,ge,ti,Qe,Ke,lt,ut,tt,ft,o,s,a,l,h,v,T,A,S,k,oe,Fe,Ae,be,Ze,It,Rt,Ft,Bt,Kt,Gt,Nt,ot,St,Lt]}var Af=class extends O{constructor(e){super(),F(this,e,Ky,Wy,N,{sources:38,store:1,microStoresRoot:39,videoConfig:40,uiConfig:41,title:2,thumbUrl:3,interactiveContainer:4,interactiveController:42,subtitles:43,live:5,preload:44,autoplay:6,volume:45,muted:46,fromTime:47,canRewindLive:7,showAds:8,adsSlotId:9,adsParams:10,adsPreviewParam:11,duration:12,logoClickable:13,logoHidden:14,isMobile:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:22,outerContainerRef:23,fullScreenTarget:24,failoverHosts:48,showMiniTimer:25,saveRate:49,seekToInteractive:26,playPrevChapter:27,volumeMultiplier:50,showEndScreen:28,showAutoplayNext:29,showNextPrevButtons:30,keyboardControls:0,initVideo:51,play:52,pause:53,setMuted:54,setVolume:55,seekTime:31,seekEpisodeStartTime:56,returnFocusToEpisodes:57,setPlaybackRate:58,setAutoQualityLimits:59},qy,[-1,-1,-1])}get sources(){return this.$$.ctx[38]}set sources(e){this.$$set({sources:e}),dt()}get store(){return this.$$.ctx[1]}set store(e){this.$$set({store:e}),dt()}get microStoresRoot(){return this.$$.ctx[39]}set microStoresRoot(e){this.$$set({microStoresRoot:e}),dt()}get videoConfig(){return this.$$.ctx[40]}set videoConfig(e){this.$$set({videoConfig:e}),dt()}get uiConfig(){return this.$$.ctx[41]}set uiConfig(e){this.$$set({uiConfig:e}),dt()}get title(){return this.$$.ctx[2]}set title(e){this.$$set({title:e}),dt()}get thumbUrl(){return this.$$.ctx[3]}set thumbUrl(e){this.$$set({thumbUrl:e}),dt()}get interactiveContainer(){return this.$$.ctx[4]}set interactiveContainer(e){this.$$set({interactiveContainer:e}),dt()}get interactiveController(){return this.$$.ctx[42]}set interactiveController(e){this.$$set({interactiveController:e}),dt()}get subtitles(){return this.$$.ctx[43]}set subtitles(e){this.$$set({subtitles:e}),dt()}get live(){return this.$$.ctx[5]}set live(e){this.$$set({live:e}),dt()}get preload(){return this.$$.ctx[44]}set preload(e){this.$$set({preload:e}),dt()}get autoplay(){return this.$$.ctx[6]}set autoplay(e){this.$$set({autoplay:e}),dt()}get volume(){return this.$$.ctx[45]}set volume(e){this.$$set({volume:e}),dt()}get muted(){return this.$$.ctx[46]}set muted(e){this.$$set({muted:e}),dt()}get fromTime(){return this.$$.ctx[47]}set fromTime(e){this.$$set({fromTime:e}),dt()}get canRewindLive(){return this.$$.ctx[7]}set canRewindLive(e){this.$$set({canRewindLive:e}),dt()}get showAds(){return this.$$.ctx[8]}set showAds(e){this.$$set({showAds:e}),dt()}get adsSlotId(){return this.$$.ctx[9]}set adsSlotId(e){this.$$set({adsSlotId:e}),dt()}get adsParams(){return this.$$.ctx[10]}set adsParams(e){this.$$set({adsParams:e}),dt()}get adsPreviewParam(){return this.$$.ctx[11]}set adsPreviewParam(e){this.$$set({adsPreviewParam:e}),dt()}get duration(){return this.$$.ctx[12]}set duration(e){this.$$set({duration:e}),dt()}get logoClickable(){return this.$$.ctx[13]}set logoClickable(e){this.$$set({logoClickable:e}),dt()}get logoHidden(){return this.$$.ctx[14]}set logoHidden(e){this.$$set({logoHidden:e}),dt()}get isMobile(){return this.$$.ctx[15]}set isMobile(e){this.$$set({isMobile:e}),dt()}get nextButtonActive(){return this.$$.ctx[16]}set nextButtonActive(e){this.$$set({nextButtonActive:e}),dt()}get prevButtonActive(){return this.$$.ctx[17]}set prevButtonActive(e){this.$$set({prevButtonActive:e}),dt()}get endScreenVideoTitle(){return this.$$.ctx[18]}set endScreenVideoTitle(e){this.$$set({endScreenVideoTitle:e}),dt()}get endScreenVideoThumb(){return this.$$.ctx[19]}set endScreenVideoThumb(e){this.$$set({endScreenVideoThumb:e}),dt()}get isOneVideoPlaylist(){return this.$$.ctx[20]}set isOneVideoPlaylist(e){this.$$set({isOneVideoPlaylist:e}),dt()}get supportLink(){return this.$$.ctx[21]}set supportLink(e){this.$$set({supportLink:e}),dt()}get shadowRootContainer(){return this.$$.ctx[22]}set shadowRootContainer(e){this.$$set({shadowRootContainer:e}),dt()}get outerContainerRef(){return this.$$.ctx[23]}set outerContainerRef(e){this.$$set({outerContainerRef:e}),dt()}get fullScreenTarget(){return this.$$.ctx[24]}set fullScreenTarget(e){this.$$set({fullScreenTarget:e}),dt()}get failoverHosts(){return this.$$.ctx[48]}set failoverHosts(e){this.$$set({failoverHosts:e}),dt()}get showMiniTimer(){return this.$$.ctx[25]}set showMiniTimer(e){this.$$set({showMiniTimer:e}),dt()}get saveRate(){return this.$$.ctx[49]}set saveRate(e){this.$$set({saveRate:e}),dt()}get seekToInteractive(){return this.$$.ctx[26]}set seekToInteractive(e){this.$$set({seekToInteractive:e}),dt()}get playPrevChapter(){return this.$$.ctx[27]}set playPrevChapter(e){this.$$set({playPrevChapter:e}),dt()}get volumeMultiplier(){return this.$$.ctx[50]}set volumeMultiplier(e){this.$$set({volumeMultiplier:e}),dt()}get showEndScreen(){return this.$$.ctx[28]}set showEndScreen(e){this.$$set({showEndScreen:e}),dt()}get showAutoplayNext(){return this.$$.ctx[29]}set showAutoplayNext(e){this.$$set({showAutoplayNext:e}),dt()}get showNextPrevButtons(){return this.$$.ctx[30]}set showNextPrevButtons(e){this.$$set({showNextPrevButtons:e}),dt()}get keyboardControls(){return this.$$.ctx[0]}set keyboardControls(e){this.$$set({keyboardControls:e}),dt()}get initVideo(){return this.$$.ctx[51]}get play(){return this.$$.ctx[52]}get pause(){return this.$$.ctx[53]}get setMuted(){return this.$$.ctx[54]}get setVolume(){return this.$$.ctx[55]}get seekTime(){return this.$$.ctx[31]}get seekEpisodeStartTime(){return this.$$.ctx[56]}get returnFocusToEpisodes(){return this.$$.ctx[57]}get setPlaybackRate(){return this.$$.ctx[58]}get setAutoQualityLimits(){return this.$$.ctx[59]}},$_=Af;function jy(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=le(a,s[l]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),f(t,"fill","currentColor"),f(t,"d","M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"),Ce(e,a)},m(l,u){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),Ce(e,a=xe(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 Gy(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var Mf=class extends O{constructor(e){super(),F(this,e,Gy,jy,N,{})}},eh=Mf;function Yy(i){let e,t;return e=new eh({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 Qy(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 Lf=class extends O{constructor(e){super(),F(this,e,Qy,Yy,N,{isWhite:1})}},th=Lf;function Zy(i){ye(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 ih(i){let e,t;return{c(){e=I("div"),t=Oe(i[0]),f(e,"class","title svelte-1y9fytq")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&1&&We(t,n[0])},d(n){n&&y(e)}}}function nh(i){let e,t;return e=new th({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 Xy(i){let e,t,n,o,r=i[0]&&ih(i),s=(!i[0]||!i[1])&&nh(i);return{c(){e=I("div"),r&&r.c(),t=G(),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=ih(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=nh(a),s.c(),d(s,1),s.m(e,null)):s&&(ue(),p(s,1,1,()=>{s=null}),ce()),(!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 Jy(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 Vf=class extends O{constructor(e){super(),F(this,e,Jy,Xy,N,{title:0,thumbUrl:1},Zy)}},oh=Vf;import{cloneDeepWith as y7,InterfaceLanguage as w7,clientChecker as k7,isMobile as C7,isNonNullable as Df,Logger as S7,Subscription as T7,once as I7,InternalsExposure as P7}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";import{OneStat as E7}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as $y,Subscription as e7}from"@vkontakte/videoplayer-shared/es2018";var jl=class{constructor(){this.subscription=new e7,this.logger=new $y,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=qe(e.state.currentPlaybackRate$),o=qe(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 s7,clientChecker as l7,detectEmbed as a7}from"@vkontakte/videoplayer-shared/es2018";function t7(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=le(u,l[c]);return{c(){e=B("svg"),a&&a.c(),t=B("g"),n=B("path"),o=B("path"),f(n,"d","m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"),f(o,"d","M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"),f(t,"fill","#fff"),Ce(e,u)},m(c,m){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),Ce(e,u=xe(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 i7(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ke(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ke(e),[e,o,n]}var Rf=class extends O{constructor(e){super(),F(this,e,i7,t7,N,{})}},rh=Rf;function n7(i){ye(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 o7(i){let e,t,n,o,r,s,a;return n=new rh({}),{c(){e=I("div"),t=I("div"),R(n.$$.fragment),o=G(),r=I("span"),s=Oe(i[0]),f(t,"class","dummy-image svelte-1pbsod4"),K(t,"desktop",!i[1]),f(r,"class","title svelte-1pbsod4"),f(e,"class","player-pip-dummy svelte-1pbsod4"),K(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)&&K(t,"desktop",!l[1]),(!a||u&1)&&We(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 r7(i,e,t){let n,o,r=it(),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 Bf=class extends O{constructor(e){super(),F(this,e,r7,o7,N,{},n7)}},sh=Bf;var u7=460,c7=280,fs=class{constructor(){this.info={isActive$:new s7(!1),type:1}}isSupported(){let{isEmbed:e}=a7();return"documentPictureInPicture"in window&&!l7.isYandex&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}async request(){var r,s;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:u7,height:c7,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 sh({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))})}async remove(){return new Promise(e=>{var t;(t=documentPictureInPicture.window)==null||t.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function lh(i){return i instanceof fs}var Gl=class{static getLatestSupportedVersion(){let e=new rr,t=new fs;if(t.isSupported())return t;if(e.isSupported())return e}};function Yl(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 ah="Inner error. Unexpectedly root annotation container null reference exception",uh="Annotation with such name already exists",ch="Annotation with such name does not exist";var qr=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as f7,Subscription as d7,throttleFn as m7}from"@vkontakte/videoplayer-shared/es2018";var p7="1",_7=100,Ql=class{constructor(){this.annotations=new Map;this.subscriptions=new d7}init(e){this.rootAnnotationsContainer=e;let t=m7(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},_7);this.subscriptions.add(f7(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 qr(ah);if(this.annotations.has(e))throw new qr(uh);t.style.zIndex=(n=t.style.zIndex)!=null?n:p7,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 qr(ch);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 Zl,Subscription as h7}from"@vkontakte/videoplayer-shared/es2018";var Gn=class{init({store:e,microStores:t,interactiveController:n,config:o}){return Zl(e),Zl(t),Zl(o),o.interactiveData&&Zl(n),this.subscription=new h7,this.subscription}};var ds=class extends Gn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...Ne(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(r=>{this.state$.set(r?!0:null)})),n}};var ms=class extends Gn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...Ne(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{microStores:o,store:r}=t,{fakeIsPlaying$:s}=o,{isInteractiveExpectation$:a,isPlaying$:l}=r.state,{controlsVisible:u,isMobile:c}=r.ui,m=qe(c),h=()=>m&&qe(u);return n.add(u.subscribe(v=>{if(!m)return;let g=qe(s);qe(l)?this.state$.set(v):g!==null&&this.state$.set(!g||v)})),n.add(l.subscribe(v=>{this.state$.set(!v||h())})),n.add(s.subscribe(v=>{if(v===null)return;let g=qe(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!v)})),n}};var ps=class extends Gn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Ne("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};import{combine as g7}from"@vkontakte/videoplayer-shared/es2018";var Nf=Ne(!1),Xl=null,_s=class extends Gn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Nf,set:(t,n=!1)=>{t!==qe(Nf)&&(this.clearTimeout(),Nf.set(t),!t&&Xl&&(Xl=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(t){let n=super.init(t),{store:o,config:r}=t,{isInteractiveTime$:s,isPlaying$:a}=o.state,l=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(l.subscribe(m=>{qe(s)&&m&&this.state$.set(!1)}));let c=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return n.add(g7({isPlaying$:a,isInteractiveTime$:s,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:h,interactiveTimeIndicator:v})=>{var g,T;if(!(!m||!(v!=null&&v.isDisplayed))){if(!h)return this.state$.set(!1);c.tooltipHelpHintActive&&Xl===null&&(Xl=!0,c.tooltipHelpHintActive=!1,this.state$.set(!0),(T=(g=o.callbacks)==null?void 0:g.onInteractiveTimeIndicatorHintDeactivated)==null||T.call(g))}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as b7,noop as v7}from"@vkontakte/videoplayer-shared/es2018";var hs=class extends Gn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...Ne(null),toggle:v7};this.checkIfShouldHide=t=>Ko(t,"s")}init(t){let n=super.init(t),{store:o,interactiveController:r}=t,s=o.ui.currentGridType$;return this.state$.toggle=()=>{if(this.checkIfShouldHide(qe(s)))return;let a=qe(this.state$),{isEnded$:l,playbackState$:u}=o.state,{disabledControls$:c}=o.ui.controls,m=qe(l),h=qe(u);a?(this.state$.set(!1),r==null||r.toggleGraphView(!1),c.remove(_a),!m&&this.graphMadePause&&o.actions.internal.play()):(this.graphMadePause=h==="playing",this.state$.set(!0),r==null||r.toggleGraphView(!0),c.add(_a),!m&&this.graphMadePause&&o.actions.internal.pause())},n.add(b7({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 fh=()=>[ds,ms,ps,_s,hs].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var A7={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:w7.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:C7(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Jl=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.internalsExposure=null;this.createOneStat=(t,n={})=>{var k,P,H,x;let{albumId:o,statPlace:r,statUserSalt:s,statTrackCode:a,refreshStatAuthToken:l,autoplay:u,isMobile:c,refDomain:m,deviceId:h,interactiveData:v}=Yl(this.videoConfig,n),g=(k=v==null?void 0:v.projectInfo)==null?void 0:k.pid,T=(H=(P=this.interactiveController)==null?void 0:P.state.isReplay$.getValue())!=null?H:!1;T&&(this.prevIsid=void 0);let{unitedVideoId:C,isClip:A=!1}=t;if(this.uiConfig.features.statistics&&C)return new E7({movieId:C,albumId:o,place:r,trackCode:a,autoplay:(x=u&&!this.interactiveController)!=null?x:!1,mobile:c,clip:A,refDomain:m,deviceId:h,...g&&(!this.isInited||T)&&{projectId:Number(g)}},{refreshAuthToken:l,userSalt:s,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})};this.logger=new S7,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new T7,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 oh({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){var t,n,o,r,s,a,l;(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(),(l=this.internalsExposure)==null||l.destroy()}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(t){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 Ze,It,Rt,Ft,ti,Bt,Kt,Gt,Nt,ot,St,Lt;if(!this.videoConfig)return;let{albumId:r,statPlace:s,statAuthToken:a,preload:l,autoplay:u,volume:c,muted:m,fromTime:h,canRewindLive:v,supportLink:g,showAds:T,adsSlotId:C,adsParams:A={},adsPreviewParam:S,interfaceLanguage:k,isCyrillicRelatedInterface:P,logoClickable:H,logoHidden:x,isMobile:M,isAudioDisabled:Z,isLiveCatchUpMode:ae,fullScreenTarget:Q,failoverHosts:ee,canDownload:W,callbacks:q,interactiveData:ve,showThumbTimer:z,additionalButtons:ie=[],additionalSettingsMenuItems:U=[],additionalContextMenuItems:pe=[],repeat:se,saveRate:X,volumeMultiplier:re,showEndScreen:oe,showAutoplayNext:Ye}=Yl(this.videoConfig,n),{sources:Fe,title:Pe,thumbUrl:Se,unitedVideoId:Ae,isClip:He=!1,duration:J,adsParams:ge={},videoEpisodes:Ie,previewThumbsData:Ge,subtitles:nt,live:lt}=t,ut={...A,...ge},et=this.getNextVideoInfo(),me={sources:Fe,title:Pe,thumbUrl:Se,subtitles:nt,unitedVideoId:Ae,isClip:He,live:lt,albumId:r,statPlace:s,autoplay:u,muted:m,volume:c,fromTime:h,canRewindLive:v,showAds:T,adsSlotId:C,adsParams:ut,adsPreviewParam:S,duration:J,logoClickable:H,logoHidden:x,isMobile:M,repeat:se,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:et.nextVideoTitle,endScreenVideoThumb:et.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},tt={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(me)}`});let De=(Ze=this.interactiveController)==null?void 0:Ze.state.statistics$.getValue(),st=(De==null?void 0:De.oneStat)||this.createOneStat(t,n);st&&(this.statistics=new yl(st,De==null?void 0:De.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new or(this.uiConfig.sentry,{version:Cr,env:Ps},{movieId:Ae,albumId:r,place:s,autoplay:(It=u&&!this.interactiveController)!=null?It:!1,mobile:M,clip:He}),this.interactiveController&&((Ft=this.prevIsid)!=null||(this.prevIsid=(Rt=this.statistics)==null?void 0:Rt.oneStat.isid$.getValue())),this.sentry={...this.sentry,...or.getInstance()};let he=!!ve,Ke=[],ft="tooltip_interactive_go_back_disabled_first";if(he&&this.interactiveController){let fe=this.interactiveController.state.isInitialChapter$.getValue(),$e=this.interactiveController.getHistoryState();fe&&Ke.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Ke.push("SEEK_TO_INTERACTIVE_BUTTON"),$e.hasPrevChapter$.getValue()||(Ke.push("PLAY_PREV_CHAPTER_BUTTON"),fe||($e.isGoBackLimited$.getValue()?ft="tooltip_interactive_go_back_disabled_limit":ft="tooltip_interactive_go_back_disabled"))}let be=()=>{var $e;this.isInited=!1,this.prevIsid=void 0;let fe=(o==null?void 0:o.info.isEnded$.getValue())&&(($e=this.interactiveController)==null?void 0:$e.state.isEndChapter$.getValue());q.onReplayInteractiveVideo&&!fe?q.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Hm({player:o,interfaceLanguage:k,isCyrillicRelatedInterface:P,videoId:Ae,isClip:He,isLiveCatchUpMode:ae,isAudioDisabled:Z,statAuthToken:a,callbacks:q,webApi:tt,videoEpisodes:Ie,previewThumbsData:Ge,canDownload:W,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Ke,isInteractive:he,saveRate:X,interactiveRanges$:(ti=this.interactiveController)==null?void 0:ti.state.interactiveRanges$,isInteractiveTime$:(Bt=this.interactiveController)==null?void 0:Bt.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:be,playPrevChapterDisabledTooltip:ft,hasInteractiveBranches:!!((Gt=(Kt=this.interactiveController)==null?void 0:Kt.getChapterBranches())!=null&&Gt.length),additionalButtons:this.uiConfig.features.additionalButtons?ie:[],additionalSettingsMenuItems:U!=null?U:[],additionalContextMenuItems:pe!=null?pe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:se&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure});let{stores:pt}=this.microStoresRoot=fh();this.subscription.add(this.store.state.currentFormat$.subscribe(fe=>{var $e;return($e=q==null?void 0:q.onCurrentFormatChanged)==null?void 0:$e.call(q,fe)})),this.subscription.add(pt.interactiveControlsOpacity$.subscribe(fe=>{var $e;fe!==null&&(($e=this==null?void 0:this.interactiveController)==null||$e.setDisabledControls(fe))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(fe=>{var $e;return($e=q==null?void 0:q.onThroughputEstimationChanged)==null?void 0:$e.call(q,fe)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(fe=>{var $e;return($e=q==null?void 0:q.onTrafficSavingEnabledChanged)==null?void 0:$e.call(q,fe)}));let yt=!0;this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(fe=>{var $e;yt?yt=!1:($e=q==null?void 0:q.onCurrentPlaybackRateChanged)==null||$e.call(q,fe)})),this.subscription.add(this.store.state.volume$.subscribe(fe=>{var $e;return($e=q==null?void 0:q.onVolumeChange)==null?void 0:$e.call(q,fe)})),this.subscription.add(this.store.state.muted$.subscribe(fe=>{var $e,kt;return fe?($e=q==null?void 0:q.onMute)==null?void 0:$e.call(q):(kt=q==null?void 0:q.onUnmute)==null?void 0:kt.call(q)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(fe=>{var $e;return($e=q==null?void 0:q.onVideoBitrateChanged)==null?void 0:$e.call(q,fe)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(fe=>{var kt;let $e=(kt=this.store)==null?void 0:kt.ui.controls.disabledControls$;$e&&(fe&&!$e.includes(ts)&&$e.add(ts),fe||$e.remove(ts))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async fe=>{var kt;if(!k7.isSamsungBrowser||!fe||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((kt=this.videoConfig)==null?void 0:kt.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(fe=>{var $e;return($e=q==null?void 0:q.onVSIDChanged)==null?void 0:$e.call(q,fe)})),this.initMediaSession(),this.svelteRootComponent=new $_({target:this.playerContainer,props:{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Fe,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Pe,thumbUrl:Se,subtitles:nt,live:lt,preload:l,autoplay:u,muted:m,volume:c,fromTime:h,canRewindLive:v,supportLink:g,showAds:T,adsSlotId:C,adsParams:ut,adsPreviewParam:S,duration:J,logoClickable:H,logoHidden:x,isMobile:M,failoverHosts:ee,fullScreenTarget:Q,saveRate:X,shadowRootContainer:this.shadowRootContainer,showMiniTimer:z,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:et.nextVideoTitle,endScreenVideoThumb:et.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:re,showEndScreen:oe,showAutoplayNext:Ye}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(St=(ot=(Nt=this.videoConfig)==null?void 0:Nt.callbacks)==null?void 0:ot.onInited)==null||St.call(ot)),(Lt=this.internalsExposure)==null||Lt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log})}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(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(t,n=!0){var r;if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&Df(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)}async initInteractives(){var t,n,o,r;if((t=this.videoConfig)!=null&&t.interactiveData)try{let{Interactives:s,EVENT_NAMES:a,CustomError:l}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let u=(n=this.store)==null?void 0:n.interfaceLanguage$,c=u?qe(u):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:h,historyApi:v,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:v,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$:T,isSeekable$:C}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(C.subscribe(S=>{if(!this.isInited)return;let k=this.store;S?k.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):k.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(T.subscribe(S=>{this.store&&this.store.state.isInteractiveExpectation$.set(S)}));let A=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(S=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...S.config,title:(m==null?void 0:m.title)||S.config.title};let k=A?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(S.player,k),A&&(A=!1)})),this.interactiveController.on(a.interactives,({type:S,actionType:k})=>{var H,x,M,Z;if(!this.store)return;let P=T.getValue();if(S==="action-choice"&&k==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Is)),S==="action-choice-canceled"){let ae=qe(this.store.state.isPlaying$)||P;if((H=this.videoConfig)!=null&&H.isMobile&&ae){this.store.ui.interactiveHideMobileControls.set(!0);return}(Z=(x=this.videoConfig)==null?void 0:(M=x.callbacks).onDisabledInteractiveClick)==null||Z.call(M)}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let S=this.interactiveController.getHistoryState();this.subscription.add(S.history$.subscribe(k=>{var P,H,x;k.length&&((x=(H=(P=this.videoConfig)==null?void 0:P.callbacks)==null?void 0:H.onInteractiveHistoryChanged)==null||x.call(H,k))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var S,k,P,H;(S=this.microStoresRoot)==null||S.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(H=(k=this.videoConfig)==null?void 0:(P=k.callbacks).onInteractiveTimeIndicatorClick)==null||H.call(P)})),this.interactiveController.on(a.errors,S=>{this.log({message:S.toString()})})}catch(s){this.log({message:s.message})}}initPlayer(t,n={}){var o,r,s,a,l,u,c,m,h,v,g,T,C,A,S,k,P,H,x,M,Z,ae,Q,ee,W;if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=Yl(A7,y7(t,q=>q instanceof HTMLElement?q:void 0)),this.uiConfig=id((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:{}},this.uiConfig.features.exposeInternalsToGlobal&&((l=this.internalsExposure)!=null||(this.internalsExposure=new P7("UI"))),Df(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(c=(u=this.uiConfig.features.mediaSession)!=null?u:this.videoConfig.isMediaSessionEnabled)!=null?c:!0),Df(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(h=(m=this.uiConfig.features.pip)!=null?m:this.videoConfig.isPictureInPictureEnabled)!=null?h:!0,this.uiConfig.features.dpip=(g=(v=this.uiConfig.features.dpip)!=null?v:this.videoConfig.isPictureInPictureEnabled)!=null?g:!0),this.videoConfig.isMobile=(T=this.uiConfig.isMobile)!=null?T:this.videoConfig.isMobile,(C=this.videoConfig).autoplay&&(C.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(A=this.uiConfig.ads.enable)!=null?A:this.videoConfig.showAds,this.videoConfig.adsSlotId=(S=this.uiConfig.ads.slot)!=null?S:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(k=this.uiConfig.ads.preview)!=null?k:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((P=this.uiConfig.showLogo)!=null?P:!this.videoConfig.logoHidden),(H=this.videoConfig).canRewindLive&&(H.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(x=this.videoConfig.supportLink)!=null?x:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(M=this.uiConfig.features.endScreen)!=null?M:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(Z=this.uiConfig.features.autoplayNext)!=null?Z:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(ae=this.uiConfig.features.nextPrevButtons)!=null?ae:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((Q=this.videoConfig.videos)!=null&&Q[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=Gl.getLatestSupportedVersion():this.pictureInPictureApi=new rr),this.mediaSessionApi=this.uiConfig.features.mediaSession?new jl:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Ql:void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(ee=this.svelteStubComponent)==null||ee.$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[this.currentPlayingVideoIndex]),lh(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}={...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)}async setLanguage(t){var n;await((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})}setLiveLowLatency(t){var n;this.log({message:"live switch to low latency "+t}),(n=this.store)==null||n.actions.external.setLiveLowLatency(t)}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()}async replayInteractiveChapter(t){var n;if(this.interactiveController&&((n=this.store)!=null&&n.state.positionExact$)){let o=qe(this.store.state.positionExact$),s=qe(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe(I7()).subscribe(()=>{s&&o>=s.time?this.seekTime(s.time):this.seekTime(o),t==null||t()});let a=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:a.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)}handleTimerNextVideo(t){var n;(n=this.store)==null||n.actions.internal.setTimerNextVideoRunning(t)}focus(){var t,n,o;(o=(n=(t=this.svelteRootComponent)==null?void 0:t.keyboardControls)==null?void 0:n.focus)==null||o.call(n)}};import{InterfaceLanguage as Hz,VKNumericLanguage as qz,loadVKLangPack as Uz}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as Wz,VideoFormat as Kz}from"@vkontakte/videoplayer-core/es2018";var Bz=()=>{window.customElements.define("vk-video-player",Jl)};export{wl as ControlButtonType,go as GridTypes,Hz as InterfaceLanguage,js as MenuItemType,Cr as VERSION,qz as VKNumericLanguage,Kz as VideoFormat,Wz as VideoQuality,Uz 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;--end-screen-mobile-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--settings-menu-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;background:var(--black)}*{-webkit-tap-highlight-color:transparent}button{border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}svg:not(.interactiveContainer svg){pointer-events:none}*:focus, *:focus-visible{outline:none}*:focus-visible{box-shadow:var(--focused-element-shadow)}.hidden{visibility:hidden;opacity:0}.overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index)}.out-of-view{position:absolute !important;left:-1000vh !important}.icon.icon-error-stub{display:flex;justify-content:center;align-items:center}`)}function zy(i){let e,t,n,o;function r(s){i[61](s)}function l(s){i[62](s)}let a={store:i[1],uiConfig:i[34],title:i[2],thumbUrl:i[3],interactiveContainer:i[4],live:i[5],autoplay:i[6],canRewindLive:i[7],showAds:i[8],adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12],logoClickable:i[13],logoHidden:i[14],logoTargetUrl:i[35],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[33],seekToInteractive:i[26],playPrevChapter:i[27],firstStart:i[37],showEndScreen:i[28],showNextPrevButtons:i[30]};return i[32]!==void 0&&(a.videoContainer=i[32]),i[0]!==void 0&&(a.keyboardControls=i[0]),e=new P_({props:a}),ye.push(()=>We(e,"videoContainer",r)),ye.push(()=>We(e,"keyboardControls",l)),{c(){R(e.$$.fragment)},m(s,u){M(e,s,u),o=!0},p(s,u){let c={};u[0]&2&&(c.store=s[1]),u[0]&4&&(c.title=s[2]),u[0]&8&&(c.thumbUrl=s[3]),u[0]&16&&(c.interactiveContainer=s[4]),u[0]&32&&(c.live=s[5]),u[0]&64&&(c.autoplay=s[6]),u[0]&128&&(c.canRewindLive=s[7]),u[0]&256&&(c.showAds=s[8]),u[0]&512&&(c.adsSlotId=s[9]),u[0]&1024&&(c.adsParams=s[10]),u[0]&2048&&(c.adsPreviewParam=s[11]),u[0]&4096&&(c.duration=s[12]),u[0]&8192&&(c.logoClickable=s[13]),u[0]&16384&&(c.logoHidden=s[14]),u[0]&65536&&(c.nextButtonActive=s[16]),u[0]&131072&&(c.prevButtonActive=s[17]),u[0]&262144&&(c.endScreenVideoTitle=s[18]),u[0]&524288&&(c.endScreenVideoThumb=s[19]),u[0]&1048576&&(c.isOneVideoPlaylist=s[20]),u[0]&2097152&&(c.supportLink=s[21]),u[0]&4194304&&(c.shadowRootContainer=s[22]),u[0]&8388608&&(c.outerContainerRef=s[23]),u[0]&16777216&&(c.fullScreenTarget=s[24]),u[0]&33554432&&(c.showMiniTimer=s[25]),u[1]&4&&(c.playerStarted=s[33]),u[0]&67108864&&(c.seekToInteractive=s[26]),u[0]&134217728&&(c.playPrevChapter=s[27]),u[0]&268435456&&(c.showEndScreen=s[28]),u[0]&1073741824&&(c.showNextPrevButtons=s[30]),!t&&u[1]&2&&(t=!0,c.videoContainer=s[32],ze(()=>t=!1)),!n&&u[0]&1&&(n=!0,c.keyboardControls=s[0],ze(()=>n=!1)),e.$set(c)},i(s){o||(d(e.$$.fragment,s),o=!0)},o(s){p(e.$$.fragment,s),o=!1},d(s){L(e,s)}}}function Wy(i){let e,t,n;function o(l){i[60](l)}let r={store:i[1],uiConfig:i[34],thumbUrl:i[3],interactiveContainer:i[4],live:i[5],autoplay:i[6],canRewindLive:i[7],showAds:i[8],adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12],logoClickable:i[13],logoHidden:i[14],logoTargetUrl:i[35],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[33],seekToInteractive:i[26],playPrevChapter:i[27],firstStart:i[37],seekTime:i[31],showEndScreen:i[28],showAutoplayNext:i[29],showNextPrevButtons:i[30]};return i[32]!==void 0&&(r.videoContainer=i[32]),e=new J_({props:r}),ye.push(()=>We(e,"videoContainer",o)),{c(){R(e.$$.fragment)},m(l,a){M(e,l,a),n=!0},p(l,a){let s={};a[0]&2&&(s.store=l[1]),a[0]&8&&(s.thumbUrl=l[3]),a[0]&16&&(s.interactiveContainer=l[4]),a[0]&32&&(s.live=l[5]),a[0]&64&&(s.autoplay=l[6]),a[0]&128&&(s.canRewindLive=l[7]),a[0]&256&&(s.showAds=l[8]),a[0]&512&&(s.adsSlotId=l[9]),a[0]&1024&&(s.adsParams=l[10]),a[0]&2048&&(s.adsPreviewParam=l[11]),a[0]&4096&&(s.duration=l[12]),a[0]&8192&&(s.logoClickable=l[13]),a[0]&16384&&(s.logoHidden=l[14]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&262144&&(s.endScreenVideoTitle=l[18]),a[0]&524288&&(s.endScreenVideoThumb=l[19]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&4194304&&(s.shadowRootContainer=l[22]),a[0]&8388608&&(s.outerContainerRef=l[23]),a[0]&16777216&&(s.fullScreenTarget=l[24]),a[0]&33554432&&(s.showMiniTimer=l[25]),a[1]&4&&(s.playerStarted=l[33]),a[0]&67108864&&(s.seekToInteractive=l[26]),a[0]&134217728&&(s.playPrevChapter=l[27]),a[0]&268435456&&(s.showEndScreen=l[28]),a[0]&536870912&&(s.showAutoplayNext=l[29]),a[0]&1073741824&&(s.showNextPrevButtons=l[30]),!t&&a[1]&2&&(t=!0,s.videoContainer=l[32],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Ky(i){let e,t,n,o,r=[Wy,zy],l=[];function a(s,u){return s[15]?0:1}return t=a(i,[-1,-1,-1]),n=l[t]=r[t](i),{c(){e=T("div"),n.c(),f(e,"class","root svelte-zbipwr")},m(s,u){k(s,e,u),l[t].m(e,null),o=!0},p(s,u){let c=t;t=a(s,u),t===c?l[t].p(s,u):(ce(),p(l[c],1,1,()=>{l[c]=null}),fe(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null))},i(s){o||(d(n),o=!0)},o(s){p(n),o=!1},d(s){s&&w(e),l[t].d()}}}function jy(i,e,t){let n,{sources:o}=e,{store:r}=e,{microStoresRoot:l}=e,{videoConfig:a}=e,{uiConfig:s}=e,{title:u}=e,{thumbUrl:c}=e,{interactiveContainer:m}=e,{interactiveController:h}=e,{subtitles:v}=e,{live:g}=e,{preload:S}=e,{autoplay:y}=e,{volume:A=void 0}=e,{muted:I=void 0}=e,{fromTime:C}=e,{canRewindLive:P}=e,{showAds:U}=e,{adsSlotId:x=void 0}=e,{adsParams:V=void 0}=e,{adsPreviewParam:Z=void 0}=e,{duration:ae=void 0}=e,{logoClickable:Q}=e,{logoHidden:ue}=e,{isMobile:q}=e,{nextButtonActive:H=!1}=e,{prevButtonActive:be=!1}=e,{endScreenVideoTitle:W=void 0}=e,{endScreenVideoThumb:te=void 0}=e,{isOneVideoPlaylist:z=!1}=e,{supportLink:pe}=e,{shadowRootContainer:se=void 0}=e,{outerContainerRef:X=void 0}=e,{fullScreenTarget:re=void 0}=e,{failoverHosts:oe=void 0}=e,{showMiniTimer:Ze=!1}=e,{saveRate:Fe}=e,{seekToInteractive:Ie=$_}=e,{playPrevChapter:Ce=$_}=e,{volumeMultiplier:Ae}=e,{showEndScreen:qe}=e,{showAutoplayNext:J}=e,{showNextPrevButtons:he}=e,{keyboardControls:Te=void 0}=e,{subscribers:Ye,stores:nt}=l;od(s);let st=Mt(),at=s.logoLink,ct=r.ui.debugPanelVisible,me=r.ui.playerSize,Qe=r.state.isLive$;B(i,Qe,de=>t(64,n=de));let lt=r.state.isInteractive&&Hy.isAndroid,je,xe=null,Pe=!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}),pd(r,nt);let ft=(de=!1)=>{t(33,Pe=!0),de?r.actions.external.firstStart(U):r.actions.internal.firstStart(U)};function ge(de){var si;let et=o||de;et&&r.initVideo({container:je,sources:et,failoverHosts:oe,subtitles:v,volumeMultiplier:Ae});let kt=Fy.get(Jr)==="true";ct.set(kt),C>0&&r.actions.external.seekTime(C);let ri=q?st.volumeDefault:(si=A!=null?A:As())!=null?si:st.volumeDefault,Bt=I!=null?I:Md();if(r.actions.external.setVolume(ri),r.actions.external.setMuted(Bt),r.getAdmanWrapper().setInitialVolume(Bt?0:ri),st.features.trafficSaving){let Wt=Vd();Wt&&r.actions.internal.setTrafficSavingEnabled(Wt)}if(st.features.saveRate&&Fe){let Wt=Nd();Wt&&!n&&r.actions.internal.setPlaybackRate(Wt)}if(J){let Wt=Od();Wt&&r.actions.internal.setAutoplayNextEnabled(Wt)}let Nt=Ad(r.videoId);Nt&&r.actions.internal.setQuality(Nt),r.ui.isAutoplay.set(y),y?ft():S&&st.features.preload&&r.actions.internal.preload()}let dt=de=>{if(window.ResizeObserver){let et,kt;xe=new ResizeObserver(xy(ri=>{let Bt=ri[0];if(Bt){if(Bt.contentBoxSize){let Nt=Array.isArray(Bt.contentBoxSize)?Bt.contentBoxSize[0]:Bt.contentBoxSize;et=Nt.inlineSize,kt=Nt.blockSize}else Bt.contentRect&&(et=Bt.contentRect.width,kt=Bt.contentRect.height);me.set({width:et,height:kt})}},300)),xe.observe(de)}me.set({width:de.clientWidth,height:de.clientHeight})},bt=()=>{document.hidden&&r.actions.external.stop()};Ct(()=>{lt&&document.addEventListener("visibilitychange",bt),dt(je);let de=Ye.map(kt=>kt.init({store:r,microStores:nt,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 ge(),()=>{lt&&document.removeEventListener("visibilitychange",bt),xe==null||xe.disconnect(),de.forEach(kt=>kt.unsubscribe()),r.destroy()}});function Xe(){Pe?r.actions.external.play():ft(!0)}function yt(){r.actions.external.pause()}function Tt(de){r.actions.external.setMuted(de)}function Kt(de){q||de>=0&&de<=1&&r.actions.external.setVolume(de)}function Ut(de){r.actions.internal.seekTime(de,qy.UNKNOWN)}function jt(de){r.actions.external.seekEpisodeStartTime(de)}function Ht(){r.actions.external.returnFocusToEpisodes()}function zt(de){r.actions.external.setPlaybackRate(de)}function Vt(de){r.actions.external.setAutoQualityLimits(de)}function ot(de){je=de,t(32,je)}function St(de){je=de,t(32,je)}function Lt(de){Te=de,t(0,Te)}return i.$$set=de=>{"sources"in de&&t(38,o=de.sources),"store"in de&&t(1,r=de.store),"microStoresRoot"in de&&t(39,l=de.microStoresRoot),"videoConfig"in de&&t(40,a=de.videoConfig),"uiConfig"in de&&t(41,s=de.uiConfig),"title"in de&&t(2,u=de.title),"thumbUrl"in de&&t(3,c=de.thumbUrl),"interactiveContainer"in de&&t(4,m=de.interactiveContainer),"interactiveController"in de&&t(42,h=de.interactiveController),"subtitles"in de&&t(43,v=de.subtitles),"live"in de&&t(5,g=de.live),"preload"in de&&t(44,S=de.preload),"autoplay"in de&&t(6,y=de.autoplay),"volume"in de&&t(45,A=de.volume),"muted"in de&&t(46,I=de.muted),"fromTime"in de&&t(47,C=de.fromTime),"canRewindLive"in de&&t(7,P=de.canRewindLive),"showAds"in de&&t(8,U=de.showAds),"adsSlotId"in de&&t(9,x=de.adsSlotId),"adsParams"in de&&t(10,V=de.adsParams),"adsPreviewParam"in de&&t(11,Z=de.adsPreviewParam),"duration"in de&&t(12,ae=de.duration),"logoClickable"in de&&t(13,Q=de.logoClickable),"logoHidden"in de&&t(14,ue=de.logoHidden),"isMobile"in de&&t(15,q=de.isMobile),"nextButtonActive"in de&&t(16,H=de.nextButtonActive),"prevButtonActive"in de&&t(17,be=de.prevButtonActive),"endScreenVideoTitle"in de&&t(18,W=de.endScreenVideoTitle),"endScreenVideoThumb"in de&&t(19,te=de.endScreenVideoThumb),"isOneVideoPlaylist"in de&&t(20,z=de.isOneVideoPlaylist),"supportLink"in de&&t(21,pe=de.supportLink),"shadowRootContainer"in de&&t(22,se=de.shadowRootContainer),"outerContainerRef"in de&&t(23,X=de.outerContainerRef),"fullScreenTarget"in de&&t(24,re=de.fullScreenTarget),"failoverHosts"in de&&t(48,oe=de.failoverHosts),"showMiniTimer"in de&&t(25,Ze=de.showMiniTimer),"saveRate"in de&&t(49,Fe=de.saveRate),"seekToInteractive"in de&&t(26,Ie=de.seekToInteractive),"playPrevChapter"in de&&t(27,Ce=de.playPrevChapter),"volumeMultiplier"in de&&t(50,Ae=de.volumeMultiplier),"showEndScreen"in de&&t(28,qe=de.showEndScreen),"showAutoplayNext"in de&&t(29,J=de.showAutoplayNext),"showNextPrevButtons"in de&&t(30,he=de.showNextPrevButtons),"keyboardControls"in de&&t(0,Te=de.keyboardControls)},i.$$.update=()=>{i.$$.dirty[0]&32770&&r.ui.isMobile.set(q)},[Te,r,u,c,m,g,y,P,U,x,V,Z,ae,Q,ue,q,H,be,W,te,z,pe,se,X,re,Ze,Ie,Ce,qe,J,he,Ut,je,Pe,st,at,Qe,ft,o,l,a,s,h,v,S,A,I,C,oe,Fe,Ae,ge,Xe,yt,Tt,Kt,jt,Ht,zt,Vt,ot,St,Lt]}var Mf=class extends O{constructor(e){super(),F(this,e,jy,Ky,D,{sources:38,store:1,microStoresRoot:39,videoConfig:40,uiConfig:41,title:2,thumbUrl:3,interactiveContainer:4,interactiveController:42,subtitles:43,live:5,preload:44,autoplay:6,volume:45,muted:46,fromTime:47,canRewindLive:7,showAds:8,adsSlotId:9,adsParams:10,adsPreviewParam:11,duration:12,logoClickable:13,logoHidden:14,isMobile:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:22,outerContainerRef:23,fullScreenTarget:24,failoverHosts:48,showMiniTimer:25,saveRate:49,seekToInteractive:26,playPrevChapter:27,volumeMultiplier:50,showEndScreen:28,showAutoplayNext:29,showNextPrevButtons:30,keyboardControls:0,initVideo:51,play:52,pause:53,setMuted:54,setVolume:55,seekTime:31,seekEpisodeStartTime:56,returnFocusToEpisodes:57,setPlaybackRate:58,setAutoQualityLimits:59},Uy,[-1,-1,-1])}get sources(){return this.$$.ctx[38]}set sources(e){this.$$set({sources:e}),mt()}get store(){return this.$$.ctx[1]}set store(e){this.$$set({store:e}),mt()}get microStoresRoot(){return this.$$.ctx[39]}set microStoresRoot(e){this.$$set({microStoresRoot:e}),mt()}get videoConfig(){return this.$$.ctx[40]}set videoConfig(e){this.$$set({videoConfig:e}),mt()}get uiConfig(){return this.$$.ctx[41]}set uiConfig(e){this.$$set({uiConfig:e}),mt()}get title(){return this.$$.ctx[2]}set title(e){this.$$set({title:e}),mt()}get thumbUrl(){return this.$$.ctx[3]}set thumbUrl(e){this.$$set({thumbUrl:e}),mt()}get interactiveContainer(){return this.$$.ctx[4]}set interactiveContainer(e){this.$$set({interactiveContainer:e}),mt()}get interactiveController(){return this.$$.ctx[42]}set interactiveController(e){this.$$set({interactiveController:e}),mt()}get subtitles(){return this.$$.ctx[43]}set subtitles(e){this.$$set({subtitles:e}),mt()}get live(){return this.$$.ctx[5]}set live(e){this.$$set({live:e}),mt()}get preload(){return this.$$.ctx[44]}set preload(e){this.$$set({preload:e}),mt()}get autoplay(){return this.$$.ctx[6]}set autoplay(e){this.$$set({autoplay:e}),mt()}get volume(){return this.$$.ctx[45]}set volume(e){this.$$set({volume:e}),mt()}get muted(){return this.$$.ctx[46]}set muted(e){this.$$set({muted:e}),mt()}get fromTime(){return this.$$.ctx[47]}set fromTime(e){this.$$set({fromTime:e}),mt()}get canRewindLive(){return this.$$.ctx[7]}set canRewindLive(e){this.$$set({canRewindLive:e}),mt()}get showAds(){return this.$$.ctx[8]}set showAds(e){this.$$set({showAds:e}),mt()}get adsSlotId(){return this.$$.ctx[9]}set adsSlotId(e){this.$$set({adsSlotId:e}),mt()}get adsParams(){return this.$$.ctx[10]}set adsParams(e){this.$$set({adsParams:e}),mt()}get adsPreviewParam(){return this.$$.ctx[11]}set adsPreviewParam(e){this.$$set({adsPreviewParam:e}),mt()}get duration(){return this.$$.ctx[12]}set duration(e){this.$$set({duration:e}),mt()}get logoClickable(){return this.$$.ctx[13]}set logoClickable(e){this.$$set({logoClickable:e}),mt()}get logoHidden(){return this.$$.ctx[14]}set logoHidden(e){this.$$set({logoHidden:e}),mt()}get isMobile(){return this.$$.ctx[15]}set isMobile(e){this.$$set({isMobile:e}),mt()}get nextButtonActive(){return this.$$.ctx[16]}set nextButtonActive(e){this.$$set({nextButtonActive:e}),mt()}get prevButtonActive(){return this.$$.ctx[17]}set prevButtonActive(e){this.$$set({prevButtonActive:e}),mt()}get endScreenVideoTitle(){return this.$$.ctx[18]}set endScreenVideoTitle(e){this.$$set({endScreenVideoTitle:e}),mt()}get endScreenVideoThumb(){return this.$$.ctx[19]}set endScreenVideoThumb(e){this.$$set({endScreenVideoThumb:e}),mt()}get isOneVideoPlaylist(){return this.$$.ctx[20]}set isOneVideoPlaylist(e){this.$$set({isOneVideoPlaylist:e}),mt()}get supportLink(){return this.$$.ctx[21]}set supportLink(e){this.$$set({supportLink:e}),mt()}get shadowRootContainer(){return this.$$.ctx[22]}set shadowRootContainer(e){this.$$set({shadowRootContainer:e}),mt()}get outerContainerRef(){return this.$$.ctx[23]}set outerContainerRef(e){this.$$set({outerContainerRef:e}),mt()}get fullScreenTarget(){return this.$$.ctx[24]}set fullScreenTarget(e){this.$$set({fullScreenTarget:e}),mt()}get failoverHosts(){return this.$$.ctx[48]}set failoverHosts(e){this.$$set({failoverHosts:e}),mt()}get showMiniTimer(){return this.$$.ctx[25]}set showMiniTimer(e){this.$$set({showMiniTimer:e}),mt()}get saveRate(){return this.$$.ctx[49]}set saveRate(e){this.$$set({saveRate:e}),mt()}get seekToInteractive(){return this.$$.ctx[26]}set seekToInteractive(e){this.$$set({seekToInteractive:e}),mt()}get playPrevChapter(){return this.$$.ctx[27]}set playPrevChapter(e){this.$$set({playPrevChapter:e}),mt()}get volumeMultiplier(){return this.$$.ctx[50]}set volumeMultiplier(e){this.$$set({volumeMultiplier:e}),mt()}get showEndScreen(){return this.$$.ctx[28]}set showEndScreen(e){this.$$set({showEndScreen:e}),mt()}get showAutoplayNext(){return this.$$.ctx[29]}set showAutoplayNext(e){this.$$set({showAutoplayNext:e}),mt()}get showNextPrevButtons(){return this.$$.ctx[30]}set showNextPrevButtons(e){this.$$set({showNextPrevButtons:e}),mt()}get keyboardControls(){return this.$$.ctx[0]}set keyboardControls(e){this.$$set({keyboardControls:e}),mt()}get initVideo(){return this.$$.ctx[51]}get play(){return this.$$.ctx[52]}get pause(){return this.$$.ctx[53]}get setMuted(){return this.$$.ctx[54]}get setVolume(){return this.$$.ctx[55]}get seekTime(){return this.$$.ctx[31]}get seekEpisodeStartTime(){return this.$$.ctx[56]}get returnFocusToEpisodes(){return this.$$.ctx[57]}get setPlaybackRate(){return this.$$.ctx[58]}get setAutoQualityLimits(){return this.$$.ctx[59]}},eh=Mf;function Gy(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("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"),ke(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),_(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,s,s[1],n?Re(o,s[1],u,null):Ne(s[1]),null),ke(e,a=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){p(r,s),n=!1},d(s){s&&w(e),r&&r.d(s)}}}function Yy(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Lf=class extends O{constructor(e){super(),F(this,e,Yy,Gy,D,{})}},th=Lf;function Qy(i){let e,t;return e=new th({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function Zy(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 Vf=class extends O{constructor(e){super(),F(this,e,Zy,Qy,D,{isWhite:1})}},ih=Vf;function Xy(i){ve(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 nh(i){let e,t;return{c(){e=T("div"),t=Oe(i[0]),f(e,"class","title svelte-1y9fytq")},m(n,o){k(n,e,o),_(e,t)},p(n,o){o&1&&Ke(t,n[0])},d(n){n&&w(e)}}}function oh(i){let e,t;return e=new ih({props:{isWhite:!!i[1]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){L(e,n)}}}function Jy(i){let e,t,n,o,r=i[0]&&nh(i),l=(!i[0]||!i[1])&&oh(i);return{c(){e=T("div"),r&&r.c(),t=G(),l&&l.c(),f(e,"class","playerStub svelte-1y9fytq"),f(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){k(a,e,s),r&&r.m(e,null),_(e,t),l&&l.m(e,null),o=!0},p(a,[s]){a[0]?r?r.p(a,s):(r=nh(a),r.c(),r.m(e,t)):r&&(r.d(1),r=null),!a[0]||!a[1]?l?(l.p(a,s),s&3&&d(l,1)):(l=oh(a),l.c(),d(l,1),l.m(e,null)):l&&(ce(),p(l,1,1,()=>{l=null}),fe()),(!o||s&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&f(e,"style",n)},i(a){o||(d(l),o=!0)},o(a){p(l),o=!1},d(a){a&&w(e),r&&r.d(),l&&l.d()}}}function $y(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 Rf=class extends O{constructor(e){super(),F(this,e,$y,Jy,D,{title:0,thumbUrl:1},Xy)}},rh=Rf;import{cloneDeepWith as v7,InterfaceLanguage as y7,clientChecker as w7,isMobile as k7,isNonNullable as Ff,Logger as C7,Subscription as ph,once as S7,InternalsExposure as T7}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";import{OneStat as I7}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as e7,Subscription as t7}from"@vkontakte/videoplayer-shared/es2018";var jl=class{constructor(){this.subscription=new t7,this.logger=new e7,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(l){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,l;let n=Ue(e.state.currentPlaybackRate$),o=Ue(e.state.duration$);if(!(!isFinite(t)||!isFinite(o)))try{(l=(r=navigator.mediaSession).setPositionState)==null||l.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 Df,detectEmbed as l7}from"@vkontakte/videoplayer-shared/es2018";function i7(i){let e,t,n,o,r,l=i[2].default,a=Ve(l,i,i[1],null),s=[{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<s.length;c+=1)u=le(u,s[c]);return{c(){e=N("svg"),a&&a.c(),t=N("g"),n=N("path"),o=N("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"),ke(e,u)},m(c,m){k(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)&&Be(a,l,c,c[1],r?Re(l,c[1],m,null):Ne(c[1]),null),ke(e,u=He(s,[{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&&w(e),a&&a.d(c)}}}function n7(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),we(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=we(e),[e,o,n]}var Bf=class extends O{constructor(e){super(),F(this,e,n7,i7,D,{})}},sh=Bf;function o7(i){ve(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 r7(i){let e,t,n,o,r,l,a;return n=new sh({}),{c(){e=T("div"),t=T("div"),R(n.$$.fragment),o=G(),r=T("span"),l=Oe(i[0]),f(t,"class","dummy-image svelte-1pbsod4"),K(t,"desktop",!i[1]),f(r,"class","title svelte-1pbsod4"),f(e,"class","player-pip-dummy svelte-1pbsod4"),K(e,"is-pip-api",i[2])},m(s,u){k(s,e,u),_(e,t),M(n,t,null),_(e,o),_(e,r),_(r,l),a=!0},p(s,[u]){(!a||u&2)&&K(t,"desktop",!s[1]),(!a||u&1)&&Ke(l,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){p(n.$$.fragment,s),a=!1},d(s){s&&w(e),L(n)}}}function s7(i,e,t){let n,o,r=it(),l=!!r.webApi.pictureInPictureApi,a=r.interfaceLanguage$;B(i,a,c=>t(5,n=c));let s=r.ui.isMobile;B(i,s,c=>t(1,o=c));let u;return i.$$.update=()=>{i.$$.dirty&32&&t(0,u=n&&j("pip_dummy_title"))},[u,o,l,a,s,n]}var Nf=class extends O{constructor(e){super(),F(this,e,s7,r7,D,{},o7)}},lh=Nf;var a7=460,u7=280,us=class{constructor({enabled:e=!0}={enabled:!0}){this.info={isActive$:new Df(!1),isEnabled$:new Df(!1),type:1};this.info.isEnabled$=new Df(e)}isSupported(){let{isEmbed:e}=l7();return"documentPictureInPicture"in window&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}async request(){var r,l;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:a7,height:u7,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(s=>s.cssText).join(" ")).filter(Boolean).join(`
|
|
53
|
+
`),t=document.createElement("style");t.textContent=e;let n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(t),o.append(this.playerDomElement),this.playerDummyElement=new lh({target:this.playerParentShadowRoot,context:this.svelteContext}),(r=this.pipWindow)==null||r.document.body.append(n),this.info.isActive$.next(!0),(l=this.pipWindow)==null||l.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{var t;(t=documentPictureInPicture.window)==null||t.close(),e()})}async dispose(){await this.remove()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function ah(i){return i instanceof us}var Gl=class{static getLatestSupportedVersion(e){let t=new nr,n=new us(e);if(n.isSupported())return n;if(t.isSupported())return t}};function Yl(i,e){var o,r;let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let l of t)n[l]=(r=(o=e[l])!=null?o:i[l])!=null?r:void 0;return n}var uh="Inner error. Unexpectedly root annotation container null reference exception",ch="Annotation with such name already exists",fh="Annotation with such name does not exist";var qr=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as c7,Subscription as f7,throttleFn as d7}from"@vkontakte/videoplayer-shared/es2018";var m7="1",p7=100,Ql=class{constructor(){this.annotations=new Map;this.subscriptions=new f7}init(e){this.rootAnnotationsContainer=e;let t=d7(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},p7);this.subscriptions.add(c7(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 qr(uh);if(this.annotations.has(e))throw new qr(ch);t.style.zIndex=(n=t.style.zIndex)!=null?n:m7,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 qr(fh);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,l=e.offsetWidth,a=e.offsetHeight;return o<0||r<0||r+l>t||o+a>n}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as Zl,Subscription as _7}from"@vkontakte/videoplayer-shared/es2018";var Tn=class{init({store:e,microStores:t,interactiveController:n,config:o}){return Zl(e),Zl(t),Zl(o),o.interactiveData&&Zl(n),this.subscription=new _7,this.subscription}};var cs=class extends Tn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...Me(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 fs=class extends Tn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...Me(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{microStores:o,store:r}=t,{fakeIsPlaying$:l}=o,{isInteractiveExpectation$:a,isPlaying$:s}=r.state,{controlsVisible:u,isMobile:c}=r.ui,m=Ue(c),h=()=>m&&Ue(u);return n.add(u.subscribe(v=>{if(!m)return;let g=Ue(l);Ue(s)?this.state$.set(v):g!==null&&this.state$.set(!g||v)})),n.add(s.subscribe(v=>{this.state$.set(!v||h())})),n.add(l.subscribe(v=>{if(v===null)return;let g=Ue(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!v)})),n}};var ds=class extends Tn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Me("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(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};import{combine as h7}from"@vkontakte/videoplayer-shared/es2018";var Of=Me(!1),Xl=null,ms=class extends Tn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Of,set:(t,n=!1)=>{t!==Ue(Of)&&(this.clearTimeout(),Of.set(t),!t&&Xl&&(Xl=!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$:l,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(m=>{Ue(l)&&m&&this.state$.set(!1)}));let c=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return n.add(h7({isPlaying$:a,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:h,interactiveTimeIndicator:v})=>{var g,S;if(!(!m||!(v!=null&&v.isDisplayed))){if(!h)return this.state$.set(!1);c.tooltipHelpHintActive&&Xl===null&&(Xl=!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 g7,noop as b7}from"@vkontakte/videoplayer-shared/es2018";var ps=class extends Tn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...Me(null),toggle:b7};this.checkIfShouldHide=t=>Uo(t,"s")}init(t){let n=super.init(t),{store:o,interactiveController:r}=t,l=o.ui.currentGridType$;return this.state$.toggle=()=>{if(this.checkIfShouldHide(Ue(l)))return;let a=Ue(this.state$),{isEnded$:s,playbackState$:u}=o.state,{disabledControls$:c}=o.ui.controls,m=Ue(s),h=Ue(u);a?(this.state$.set(!1),r==null||r.toggleGraphView(!1),c.remove(_a),!m&&this.graphMadePause&&o.actions.internal.play()):(this.graphMadePause=h==="playing",this.state$.set(!0),r==null||r.toggleGraphView(!0),c.add(_a),!m&&this.graphMadePause&&o.actions.internal.pause())},n.add(g7({graphIsOpened:this.state$,currentGridType:l}).subscribe(({graphIsOpened:a,currentGridType:s})=>{this.checkIfShouldHide(s)&&a&&(r==null||r.toggleGraphView(!1),this.state$.set(!1))})),n}};import{ValueSubject as dh}from"@vkontakte/videoplayer-shared/es2018";var _s=class extends Tn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:Me(!1),isEnabled$:Me(!1),type$:Me(void 0)}}init(t){let n=super.init(t),{store:o}=t,{info:{isActive$:r,isEnabled$:l,type:a}}=o.webApi.pictureInPictureApi||{info:{isActive$:new dh(!1),isEnabled$:new dh(!1)}};return n.add(r.subscribe(s=>{this.state$.isActive$.set(s)})),n.add(l.subscribe(s=>{this.state$.isEnabled$.set(s)})),this.state$.type$.set(a),n}};var mh=()=>[cs,fs,ds,ms,ps,_s].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var P7={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:y7.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:k7(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Jl=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.internalsExposure=null;this.createOneStat=(t,n={})=>{var C,P,U,x;let{albumId:o,statPlace:r,statUserSalt:l,statTrackCode:a,refreshStatAuthToken:s,autoplay:u,isMobile:c,refDomain:m,deviceId:h,interactiveData:v}=Yl(this.videoConfig,n),g=(C=v==null?void 0:v.projectInfo)==null?void 0:C.pid,S=(U=(P=this.interactiveController)==null?void 0:P.state.isReplay$.getValue())!=null?U:!1;S&&(this.prevIsid=void 0);let{unitedVideoId:y,isClip:A=!1}=t;if(this.uiConfig.features.statistics&&y)return new I7({movieId:y,albumId:o,place:r,trackCode:a,autoplay:(x=u&&!this.interactiveController)!=null?x:!1,mobile:c,clip:A,refDomain:m,deviceId:h,...g&&(!this.isInited||S)&&{projectId:Number(g)}},{refreshAuthToken:s,userSalt:l,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})};this.logger=new C7,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new ph,this.interactiveSubscription=new ph,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 rh({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){var t,n,o,r,l,a,s;(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(),(l=this.unsubscribePlayerPhaseSubscription)==null||l.call(this),(a=this.interactiveController)==null||a.destroy(),this.interactiveSubscription.unsubscribe(),(s=this.internalsExposure)==null||s.destroy()}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(t){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 Xe,yt,Tt,Kt,Ut,jt,Ht,zt,Vt,ot,St,Lt;if(!this.videoConfig)return;let{albumId:r,statPlace:l,statAuthToken:a,preload:s,autoplay:u,volume:c,muted:m,fromTime:h,canRewindLive:v,supportLink:g,showAds:S,adsSlotId:y,adsParams:A={},adsPreviewParam:I,interfaceLanguage:C,isCyrillicRelatedInterface:P,logoClickable:U,logoHidden:x,isMobile:V,isAudioDisabled:Z,isLiveCatchUpMode:ae,fullScreenTarget:Q,failoverHosts:ue,canDownload:q,callbacks:H,interactiveData:be,showThumbTimer:W,additionalButtons:te=[],additionalSettingsMenuItems:z=[],additionalContextMenuItems:pe=[],repeat:se,saveRate:X,volumeMultiplier:re,showEndScreen:oe,showAutoplayNext:Ze}=Yl(this.videoConfig,n),{sources:Fe,title:Ie,thumbUrl:Ce,unitedVideoId:Ae,isClip:qe=!1,duration:J,adsParams:he={},videoEpisodes:Te,previewThumbsData:Ye,subtitles:nt,live:st}=t,at={...A,...he},ct=this.getNextVideoInfo(),me={sources:Fe,title:Ie,thumbUrl:Ce,subtitles:nt,unitedVideoId:Ae,isClip:qe,live:st,albumId:r,statPlace:l,autoplay:u,muted:m,volume:c,fromTime:h,canRewindLive:v,showAds:S,adsSlotId:y,adsParams:at,adsPreviewParam:I,duration:J,logoClickable:U,logoHidden:x,isMobile:V,repeat:se,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ct.nextVideoTitle,endScreenVideoThumb:ct.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Qe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(me)}`});let De=(Xe=this.interactiveController)==null?void 0:Xe.state.statistics$.getValue(),lt=(De==null?void 0:De.oneStat)||this.createOneStat(t,n);lt&&(this.statistics=new yl(lt,De==null?void 0:De.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ir(this.uiConfig.sentry,{version:Cr,env:Ps},{movieId:Ae,albumId:r,place:l,autoplay:(yt=u&&!this.interactiveController)!=null?yt:!1,mobile:V,clip:qe}),this.interactiveController&&((Kt=this.prevIsid)!=null||(this.prevIsid=(Tt=this.statistics)==null?void 0:Tt.oneStat.isid$.getValue())),this.sentry={...this.sentry,...ir.getInstance()};let xe=!!be,Pe=[],ft="tooltip_interactive_go_back_disabled_first";if(xe&&this.interactiveController){let de=this.interactiveController.state.isInitialChapter$.getValue(),et=this.interactiveController.getHistoryState();de&&Pe.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Pe.push("SEEK_TO_INTERACTIVE_BUTTON"),et.hasPrevChapter$.getValue()||(Pe.push("PLAY_PREV_CHAPTER_BUTTON"),de||(et.isGoBackLimited$.getValue()?ft="tooltip_interactive_go_back_disabled_limit":ft="tooltip_interactive_go_back_disabled"))}let ge=()=>{var et;this.isInited=!1,this.prevIsid=void 0;let de=(o==null?void 0:o.info.isEnded$.getValue())&&((et=this.interactiveController)==null?void 0:et.state.isEndChapter$.getValue());H.onReplayInteractiveVideo&&!de?H.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=qm({player:o,interfaceLanguage:C,isCyrillicRelatedInterface:P,videoId:Ae,isClip:qe,isLiveCatchUpMode:ae,isAudioDisabled:Z,statAuthToken:a,callbacks:H,webApi:Qe,videoEpisodes:Te,previewThumbsData:Ye,canDownload:q,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Pe,isInteractive:xe,saveRate:X,interactiveRanges$:(Ut=this.interactiveController)==null?void 0:Ut.state.interactiveRanges$,isInteractiveTime$:(jt=this.interactiveController)==null?void 0:jt.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ge,playPrevChapterDisabledTooltip:ft,hasInteractiveBranches:!!((zt=(Ht=this.interactiveController)==null?void 0:Ht.getChapterBranches())!=null&&zt.length),additionalButtons:this.uiConfig.features.additionalButtons?te:[],additionalSettingsMenuItems:z!=null?z:[],additionalContextMenuItems:pe!=null?pe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:se&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure});let{stores:dt}=this.microStoresRoot=mh();this.subscription.add(this.store.state.currentFormat$.subscribe(de=>{var et;return(et=H==null?void 0:H.onCurrentFormatChanged)==null?void 0:et.call(H,de)})),this.subscription.add(dt.interactiveControlsOpacity$.subscribe(de=>{var et;de!==null&&((et=this==null?void 0:this.interactiveController)==null||et.setDisabledControls(de))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(de=>{var et;return(et=H==null?void 0:H.onThroughputEstimationChanged)==null?void 0:et.call(H,de)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(de=>{var et;return(et=H==null?void 0:H.onTrafficSavingEnabledChanged)==null?void 0:et.call(H,de)}));let bt=!0;this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(de=>{var et;bt?bt=!1:(et=H==null?void 0:H.onCurrentPlaybackRateChanged)==null||et.call(H,de)})),this.subscription.add(this.store.state.volume$.subscribe(de=>{var et;return(et=H==null?void 0:H.onVolumeChange)==null?void 0:et.call(H,de)})),this.subscription.add(this.store.state.muted$.subscribe(de=>{var et,kt;return de?(et=H==null?void 0:H.onMute)==null?void 0:et.call(H):(kt=H==null?void 0:H.onUnmute)==null?void 0:kt.call(H)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(de=>{var et;return(et=H==null?void 0:H.onVideoBitrateChanged)==null?void 0:et.call(H,de)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(de=>{var kt;let et=(kt=this.store)==null?void 0:kt.ui.controls.disabledControls$;et&&(de&&!et.includes($r)&&et.add($r),de||et.remove($r))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async de=>{var kt;if(!w7.isSamsungBrowser||!de||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((kt=this.videoConfig)==null?void 0:kt.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(de=>{var et;return(et=H==null?void 0:H.onVSIDChanged)==null?void 0:et.call(H,de)})),this.initMediaSession(),this.svelteRootComponent=new eh({target:this.playerContainer,props:{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Fe,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ie,thumbUrl:Ce,subtitles:nt,live:st,preload:s,autoplay:u,muted:m,volume:c,fromTime:h,canRewindLive:v,supportLink:g,showAds:S,adsSlotId:y,adsParams:at,adsPreviewParam:I,duration:J,logoClickable:U,logoHidden:x,isMobile:V,failoverHosts:ue,fullScreenTarget:Q,saveRate:X,shadowRootContainer:this.shadowRootContainer,showMiniTimer:W,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ct.nextVideoTitle,endScreenVideoThumb:ct.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:re,showEndScreen:oe,showAutoplayNext:Ze}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(St=(ot=(Vt=this.videoConfig)==null?void 0:Vt.callbacks)==null?void 0:ot.onInited)==null||St.call(ot)),(Lt=this.internalsExposure)==null||Lt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log})}addPlayerInfoSubscriptions(){var l,a;let t=this.store,n=(l=this.microStoresRoot)==null?void 0:l.stores;if(!t||!n)return;let o=(a=this.videoConfig)==null?void 0:a.callbacks;o&&this.subscription.add(t.playerPhase.subscribe(s=>{var u;return(u=o.onPlayerPhaseChanged)==null?void 0:u.call(o,s)})).add(t.state.playbackState$.subscribe(s=>{var u;return(u=o.onPlaybackStateChanged)==null?void 0:u.call(o,s)})).add(t.state.isLive$.subscribe(s=>{var u;return(u=o.onIsLiveChanged)==null?void 0:u.call(o,s)})).add(t.state.isActiveLive$.subscribe(s=>{var u;return(u=o.onIsActiveLiveChanged)==null?void 0:u.call(o,s)})).add(t.state.isAudioAvailable$.subscribe(s=>{var u;return(u=o.onIsAudioAvailableChanged)==null?void 0:u.call(o,s)})).add(t.state.currentQuality$.subscribe(s=>{var u;return(u=o.onCurrentQualityChanged)==null?void 0:u.call(o,s)})).add(t.state.availableQualities$.subscribe(s=>{var u;return(u=o.onAvailableQualitiesChanged)==null?void 0:u.call(o,s.map(({value:c})=>c).filter(c=>c!=="auto"))})).add(t.state.availableAudioStreams$.subscribe(s=>{s.length>1&&o.onAudioLanguagesAvailable&&o.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(s=>{var u,c;return s?(u=o.onPiPEnter)==null?void 0:u.call(o):(c=o.onPiPExit)==null?void 0:c.call(o)}));let r=o==null?void 0:o.uiInfo;r&&this.subscription.add(t.ui.controlsVisible.subscribe(s=>{var u;return(u=r.onControlsVisibleChanged)==null?void 0:u.call(r,s)})).add(t.ui.isMobile.subscribe(s=>{var u;return(u=r.onIsMobileChanged)==null?void 0:u.call(r,s)})).add(t.ui.playerSize.subscribe(s=>{var u;return(u=r.onPlayerSizeChanged)==null?void 0:u.call(r,s)})).add(t.ui.controls.prevButton.subscribe(s=>{var u;return(u=r.onPrevButtonChanged)==null?void 0:u.call(r,s)})).add(t.ui.controls.playButton.subscribe(s=>{var u;return(u=r.onPlayButtonChanged)==null?void 0:u.call(r,s)})).add(t.ui.controls.replayButton.subscribe(s=>{var u;return(u=r.onReplayButtonChanged)==null?void 0:u.call(r,s)})).add(t.ui.controls.nextButton.subscribe(s=>{var u;return(u=r.onNextButtonChanged)==null?void 0:u.call(r,s)})).add(t.ui.controls.playPrevChapterButton.subscribe(s=>{var u;return(u=r.onPlayPrevChapterChanged)==null?void 0:u.call(r,s)})).add(t.ui.controls.seekToInteractiveButton.subscribe(s=>{var u;return(u=r.onSeekToInteractiveButtonChanged)==null?void 0:u.call(r,s)})).add(t.ui.controls.interactiveGraphButton.subscribe(s=>{var u;return(u=r.onGraphButtonChanged)==null?void 0:u.call(r,s)})).add(t.ui.controls.liveButton.subscribe(s=>{var u;return(u=r.onLiveButtonChanged)==null?void 0:u.call(r,s)})).add(t.ui.controls.time.subscribe(s=>{var u;return(u=r.onTimeUpdateChanged)==null?void 0:u.call(r,s)})).add(t.ui.controls.episodes.subscribe(s=>{var u;return(u=r.onEpisodesChanged)==null?void 0:u.call(r,s)})).add(t.ui.controls.subtitles.subscribe(s=>{var u;return(u=r.onSubtitlesChanged)==null?void 0:u.call(r,s)})).add(t.ui.controls.settings.subscribe(s=>{var u;return(u=r.onSettingsChanged)==null?void 0:u.call(r,s)})).add(t.ui.controls.fullscreen.subscribe(s=>{var u;return(u=r.onFullscreenChanged)==null?void 0:u.call(r,s)})).add(t.ui.controls.chromecast.subscribe(s=>{var u;return(u=r.onChromecastChanged)==null?void 0:u.call(r,s)})).add(t.ui.controls.pip.subscribe(s=>{var u;return(u=r.onPipChanged)==null?void 0:u.call(r,s)})).add(t.ui.controls.vkLogo.subscribe(s=>{var u;return(u=r.onVkLogoChanged)==null?void 0:u.call(r,s)})).add(t.ui.controls.interactiveTimeIndicator.subscribe(s=>{var u;return(u=r.onInteractiveTimeIndicatorChanged)==null?void 0:u.call(r,s)})).add(t.ui.controls.timeline.subscribe(s=>{var u;return(u=r.onTimelineChanged)==null?void 0:u.call(r,s)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(t,n=!0){var r;if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&Ff(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)}async initInteractives(){var t,n,o,r;if((t=this.videoConfig)!=null&&t.interactiveData)try{let{Interactives:l}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let a=(n=this.store)==null?void 0:n.interfaceLanguage$,s=a?Ue(a):this.videoConfig.interfaceLanguage,{projectInfo:u,initChapterId:c,historyApi:m,videoLoader:h}=this.videoConfig.interactiveData;this.interactiveController=new l({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:s,graph:this.uiConfig.features.interactiveGraph,projectInfo:u,initChapterId:c,historyApi:m,vkVideoLoader:h,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat});let{isInteractiveExpectation$:v,isSeekable$:g}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(g.subscribe(y=>{if(!this.isInited)return;let A=this.store;y?A.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):A.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(v.subscribe(y=>{this.store&&this.store.state.isInteractiveExpectation$.set(y)}));let S=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(y=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...y.config,title:(u==null?void 0:u.title)||y.config.title};let A=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(y.player,A),S&&(S=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:y,actionType:A})=>{var C,P,U,x;if(!this.store)return;let I=v.getValue();if(y==="action-choice"&&A==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Is)),y==="action-choice-canceled"){let V=Ue(this.store.state.isPlaying$)||I;if((C=this.videoConfig)!=null&&C.isMobile&&V){this.store.ui.interactiveHideMobileControls.set(!0);return}(x=(P=this.videoConfig)==null?void 0:(U=P.callbacks).onDisabledInteractiveClick)==null||x.call(U)}})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let y=this.interactiveController.getHistoryState();this.subscription.add(y.history$.subscribe(A=>{var I,C,P;A.length&&((P=(C=(I=this.videoConfig)==null?void 0:I.callbacks)==null?void 0:C.onInteractiveHistoryChanged)==null||P.call(C,A))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var y,A,I,C;(y=this.microStoresRoot)==null||y.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(C=(A=this.videoConfig)==null?void 0:(I=A.callbacks).onInteractiveTimeIndicatorClick)==null||C.call(I)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(y=>{this.log({message:y.toString()})}))}catch(l){this.log({message:l.message})}}initPlayer(t,n={}){var o,r,l,a,s,u,c,m,h,v,g,S,y,A,I,C,P,U,x,V,Z,ae,Q,ue,q;if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");if(this.videoConfig=Yl(P7,v7(t,H=>H instanceof HTMLElement?H:void 0)),this.uiConfig=nd((o=n.ui)!=null?o:{}),this.coreConfig=(r=n.core)!=null?r:{configName:[]},this.statisticsConfig=(l=n.statistics)!=null?l:{},this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((s=this.internalsExposure)!=null||(this.internalsExposure=new T7("UI"))),Ff(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(c=(u=this.uiConfig.features.mediaSession)!=null?u:this.videoConfig.isMediaSessionEnabled)!=null?c:!0),Ff(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(h=(m=this.uiConfig.features.pip)!=null?m:this.videoConfig.isPictureInPictureEnabled)!=null?h:!0,this.uiConfig.features.dpip=(g=(v=this.uiConfig.features.dpip)!=null?v:this.videoConfig.isPictureInPictureEnabled)!=null?g:!0),this.videoConfig.isMobile=(S=this.uiConfig.isMobile)!=null?S:this.videoConfig.isMobile,(y=this.videoConfig).autoplay&&(y.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(A=this.uiConfig.ads.enable)!=null?A:this.videoConfig.showAds,this.videoConfig.adsSlotId=(I=this.uiConfig.ads.slot)!=null?I:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(C=this.uiConfig.ads.preview)!=null?C:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((P=this.uiConfig.showLogo)!=null?P:!this.videoConfig.logoHidden),(U=this.videoConfig).canRewindLive&&(U.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(x=this.videoConfig.supportLink)!=null?x:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(V=this.uiConfig.features.endScreen)!=null?V:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(Z=this.uiConfig.features.autoplayNext)!=null?Z:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(ae=this.uiConfig.features.nextPrevButtons)!=null?ae:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((Q=this.videoConfig.videos)!=null&&Q[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let H={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Gl.getLatestSupportedVersion(H):this.pictureInPictureApi=new nr(H)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new jl:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Ql:void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(ue=this.svelteStubComponent)==null||ue.$destroy(),(q=this.svelteRootComponent)==null||q.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),ah(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}={...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,l;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&&((l=this.svelteRootComponent)==null||l.$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)}setPiPEnabled(t){var n,o;(o=(n=this.store)==null?void 0:n.webApi.pictureInPictureApi)==null||o.setEnabled(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)}async setLanguage(t){var n;await((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})}setLiveLowLatency(t){var n;this.log({message:"live switch to low latency "+t}),(n=this.store)==null||n.actions.external.setLiveLowLatency(t)}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()}async replayInteractiveChapter(t){var n;if(this.interactiveController&&((n=this.store)!=null&&n.state.positionExact$)){let o=Ue(this.store.state.positionExact$),l=Ue(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.events.playerChanged$.pipe(S7()).subscribe(()=>{l&&o>=l.time?this.seekTime(l.time):this.seekTime(o),t==null||t()});let a=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:a.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)}handleTimerNextVideo(t){var n;(n=this.store)==null||n.actions.internal.setTimerNextVideoRunning(t)}focus(){var t,n,o;(o=(n=(t=this.svelteRootComponent)==null?void 0:t.keyboardControls)==null?void 0:n.focus)==null||o.call(n)}};import{InterfaceLanguage as Uz,VKNumericLanguage as zz,loadVKLangPack as Wz}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as jz,VideoFormat as Gz}from"@vkontakte/videoplayer-core/es2018";var Dz=()=>{window.customElements.define("vk-video-player",Jl)};export{wl as ControlButtonType,po as GridTypes,Uz as InterfaceLanguage,js as MenuItemType,Cr as VERSION,zz as VKNumericLanguage,Gz as VideoFormat,jz as VideoQuality,Wz as loadVKLangPack,Dz as registerPlayerWebComponent};
|