@vkontakte/videoplayer 1.1.46-dev.bf8cc5be.0 → 1.1.46-dev.c704d5be.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 +17 -17
- package/es2015.esm.js +17 -17
- package/es2018.cjs.js +17 -17
- package/es2018.esm.js +17 -17
- package/esnext.cjs.js +16 -16
- package/esnext.esm.js +16 -16
- package/evergreen.esm.js +16 -16
- package/package.json +5 -5
- package/types/config.d.ts +0 -1
- package/types/store/index.d.ts +1 -4
- package/types/store/utils.d.ts +11 -0
package/esnext.cjs.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.46-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.46-dev.c704d5be.0
|
|
3
|
+
* Wed, 09 Oct 2024 10:51:20 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-46/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var ag=Object.create;var pl=Object.defineProperty;var ug=Object.getOwnPropertyDescriptor;var cg=Object.getOwnPropertyNames;var fg=Object.getPrototypeOf,dg=Object.prototype.hasOwnProperty;var mg=(i,e)=>{for(var t in e)pl(i,t,{get:e[t],enumerable:!0})},_f=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of cg(e))!dg.call(i,o)&&o!==t&&pl(i,o,{get:()=>e[o],enumerable:!(n=ug(e,o))||n.enumerable});return i};var gf=(i,e,t)=>(t=i!=null?ag(fg(i)):{},_f(e||!i||!i.__esModule?pl(t,"default",{value:i,enumerable:!0}):t,i)),pg=i=>_f(pl({},"__esModule",{value:!0}),i);var Z8={};mg(Z8,{GridTypes:()=>ao,InterfaceLanguage:()=>Fr.InterfaceLanguage,MenuItemType:()=>$r,VERSION:()=>Fo,VKNumericLanguage:()=>Fr.VKNumericLanguage,VideoFormat:()=>Ws.VideoFormat,VideoQuality:()=>Ws.VideoQuality,loadVKLangPack:()=>Fr.loadVKLangPack,registerPlayerWebComponent:()=>Q8});module.exports=pg(Z8);function ge(){}function re(i,e){for(let t in e)i[t]=e[t];return i}function Gs(i){return i()}function gl(){return Object.create(null)}function ut(i){i.forEach(Gs)}function zt(i){return typeof i=="function"}function B(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var _l;function lo(i,e){return i===e?!0:(_l||(_l=document.createElement("a")),_l.href=e,i===_l.href)}function hf(i){return Object.keys(i).length===0}function Wt(i,...e){if(i==null){for(let n of e)n(void 0);return ge}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Je(i){let e;return Wt(i,t=>e=t)(),e}function O(i,e,t){i.$$.on_destroy.push(Wt(e,t))}function Ee(i,e,t,n){if(i){let o=bf(i,e,t,n);return i[0](o)}}function bf(i,e,t,n){return i[1]&&n?re(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(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 l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Ae(i,e,t,n,o,l){if(o){let r=bf(e,t,n,l);i.p(r,o)}}function Le(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function vf(i){return i??""}function ar(i){return i&&zt(i.destroy)?i.destroy:ge}var Ro=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var hl=class i{_listeners="WeakMap"in Ro?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};hl.entries="WeakMap"in Ro?new WeakMap:void 0;var yf=!1;function kf(){yf=!0}function wf(){yf=!1}function p(i,e){i.appendChild(e)}function Ie(i,e,t){let n=Cf(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,hg(n,o)}}function Cf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function hg(i,e){return p(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function li(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 V(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ne(i){return document.createTextNode(i)}function q(){return Ne(" ")}function tt(){return Ne("")}function Te(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ei(i){return function(e){return e.preventDefault(),i.call(this,e)}}function _t(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(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)c(i,t,e[t])}function Sf(i){return Array.from(i.childNodes)}function xe(i,e){e=""+e,i.data!==e&&(i.data=e)}function ci(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function W(i,e,t){i.classList.toggle(e,!!t)}function If(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Dt(i,e){return new i(e)}var ho;function so(i){ho=i}function ur(){if(!ho)throw new Error("Function called outside component initialization");return ho}function St(i){ur().$$.on_mount.push(i)}function zn(i){ur().$$.on_destroy.push(i)}function cr(i,e){return ur().$$.context.set(i,e),e}function fr(i){return ur().$$.context.get(i)}function Gr(){return ur().$$.context}function Cn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Bo=[];var be=[],mr=[],Ys=[],Pf=Promise.resolve(),Qs=!1;function Zs(){Qs||(Qs=!0,Pf.then(bl))}function Wn(){return Zs(),Pf}function xr(i){mr.push(i)}function Oe(i){Ys.push(i)}var xs=new Set,dr=0;function bl(){if(dr!==0)return;let i=ho;do{try{for(;dr<Bo.length;){let e=Bo[dr];dr++,so(e),Cg(e.$$)}}catch(e){throw Bo.length=0,dr=0,e}for(so(null),Bo.length=0,dr=0;be.length;)be.pop()();for(let e=0;e<mr.length;e+=1){let t=mr[e];xs.has(t)||(xs.add(t),t())}mr.length=0}while(Bo.length);for(;Ys.length;)Ys.pop()();Qs=!1,xs.clear(),so(i)}function Cg(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 Ef(i){let e=[],t=[];mr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),mr=e}var vl=new Set,Do;function ae(){Do={r:0,c:[],p:Do}}function ue(){Do.r||ut(Do.c),Do=Do.p}function d(i,e){i&&i.i&&(vl.delete(i),i.i(e))}function m(i,e,t,n){if(i&&i.o){if(vl.has(i))return;vl.add(i),Do.c.push(()=>{vl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function yt(i){return i?.length!==void 0?i:Array.from(i)}function Ve(i,e){let t={},n={},o={$$scope:1},l=i.length;for(;l--;){let r=i[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in t||(t[r]=void 0);return t}function Yr(i){return typeof i=="object"&&i!==null?i:{}}var Sg=["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"],Ig=new Set([...Sg]);function Fe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function L(i){i&&i.c()}function M(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),xr(()=>{let l=i.$$.on_mount.map(Gs).filter(zt);i.$$.on_destroy?i.$$.on_destroy.push(...l):ut(l),i.$$.on_mount=[]}),o.forEach(xr)}function A(i,e){let t=i.$$;t.fragment!==null&&(Ef(t.after_update),ut(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Pg(i,e){i.$$.dirty[0]===-1&&(Bo.push(i),Zs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function N(i,e,t,n,o,l,r=null,a=[-1]){let s=ho;so(i);let u=i.$$={fragment:null,ctx:[],props:l,update:ge,not_equal:o,bound:gl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:gl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(_,g,...y)=>{let h=y.length?y[0]:g;return u.ctx&&o(u.ctx[_],u.ctx[_]=h)&&(!u.skip_bound&&u.bound[_]&&u.bound[_](h),f&&Pg(i,_)),g}):[],u.update(),f=!0,ut(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){kf();let _=Sf(e.target);u.fragment&&u.fragment.l(_),_.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),M(i,e.target,e.anchor),wf(),bl()}so(s)}var Eg;typeof HTMLElement=="function"&&(Eg=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return()=>{let r;return{c:function(){r=T("slot"),l!=="default"&&c(r,"name",l)},m:function(u,f){v(u,r,f)},d:function(u){u&&b(r)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=If(this);for(let l of this.$$s)l in n&&(t[l]=[e(l)]);for(let l of this.attributes){let r=this.$$g_p(l.name);r in this.$$d||(this.$$d[r]=Xs(r,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:t,$$scope:{ctx:[]}}});let o=()=>{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 r=Xs(l,this.$$d[l],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let l in this.$$l)for(let r of this.$$l[l]){let a=this.$$c.$on(l,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=Xs(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function Xs(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var D=class{$$=void 0;$$set=void 0;$destroy(){A(this,1),this.$destroy=ge}$on(e,t){if(!zt(t))return ge;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&&!hf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Mf="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Mf);var SO=require("@vkontakte/videoplayer-core"),In=require("@vkontakte/videoplayer-shared"),P_=require("@vkontakte/videoplayer-statistics");var pr=require("@vkontakte/videoplayer-shared");var Mg={isMobile:void 0,defaultLanguage:pr.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:pr.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Af=i=>(0,pr.fillWithDefault)(i,Mg),Lf=i=>cr("ui-config",i),Nt=()=>fr("ui-config");var Qr="vk_player_debug_panel_opened";var Vf="videoplayer",Rf="videoplayer";var Xn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Bf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Df=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Nf=new Set(["ShiftRight","ShiftLeft"]);var Of=["TIMELINE"],Zr=[...Of,"GRAPH_BUTTON"],Js=[...Of,"PLAY_BUTTON"],yl=[...Zr,"PLAY_BUTTON"];var ao=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(ao||{}),Oo={xs:0,s:1,m:2,l:3,xl:4};var _r=[];function Rn(i,e){return{subscribe:qe(i,e).subscribe}}function qe(i,e=ge){let t,n=new Set;function o(a){if(B(i,a)&&(i=a,t)){let s=!_r.length;for(let u of n)u[1](),_r.push(u,i);if(s){for(let u=0;u<_r.length;u+=2)_r[u][0](_r[u+1]);_r.length=0}}}function l(a){o(a(i))}function r(a,s=ge){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,l)||ge),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:l,subscribe:r}}function ti(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 l=e.length<2;return Rn(t,(r,a)=>{let s=!1,u=[],f=0,_=ge,g=()=>{if(f)return;_();let h=e(n?u[0]:u,r,a);l?r(h):_=zt(h)?h:ge},y=o.map((h,C)=>Wt(h,w=>{u[C]=w,f&=~(1<<C),s&&g()},()=>{f|=1<<C}));return s=!0,g(),function(){ut(y),_(),s=!1}})}var Xr=require("@vkontakte/videoplayer-shared"),Ff=require("@vkontakte/videoplayer-core"),qf=require("@vkontakte/videoplayer-statistics");var kl="prod",Fo="1.1.46-dev.bf8cc5be.0";var qo=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Hf=Symbol("storeContext"),Uf=Symbol("microStoresContext"),zf=(i,e)=>{cr(Hf,i),cr(Uf,e),kl==="dev"&&(window.app={store:i,microStores:e})},ot=()=>{let i=fr(Hf);return(0,Xr.assertNonNullable)(i,"Store context is empty!"),i},Bn=()=>{let i=fr(Uf);return(0,Xr.assertNonNullable)(i,"MicroStores context is empty!"),i},kt=(i,e)=>$s(i,i.getValue(),e),$s=(i,e,t)=>Rn(e,n=>{let o=i.subscribe(l=>{n(l),t?.(l)});return()=>o.unsubscribe()}),Wf=(i,e,t)=>{let n=i.info,{width:o,height:l}=Je(t.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Fo} (core: ${Ff.VERSION}, stat: ${qf.VERSION}, shared: ${Xr.VERSION})`,f=Je(t.state.errorLog$),_=f.length?`
|
|
7
|
-
`+f.map((F,
|
|
6
|
+
"use strict";var ig=Object.create;var fl=Object.defineProperty;var ng=Object.getOwnPropertyDescriptor;var og=Object.getOwnPropertyNames;var rg=Object.getPrototypeOf,lg=Object.prototype.hasOwnProperty;var sg=(i,e)=>{for(var t in e)fl(i,t,{get:e[t],enumerable:!0})},_f=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of og(e))!lg.call(i,o)&&o!==t&&fl(i,o,{get:()=>e[o],enumerable:!(n=ng(e,o))||n.enumerable});return i};var gf=(i,e,t)=>(t=i!=null?ig(rg(i)):{},_f(e||!i||!i.__esModule?fl(t,"default",{value:i,enumerable:!0}):t,i)),ag=i=>_f(fl({},"__esModule",{value:!0}),i);var x8={};sg(x8,{GridTypes:()=>lo,InterfaceLanguage:()=>zr.InterfaceLanguage,MenuItemType:()=>tl,VERSION:()=>Oo,VKNumericLanguage:()=>zr.VKNumericLanguage,VideoFormat:()=>Us.VideoFormat,VideoQuality:()=>Us.VideoQuality,loadVKLangPack:()=>zr.loadVKLangPack,registerPlayerWebComponent:()=>G8});module.exports=ag(x8);function be(){}function ie(i,e){for(let t in e)i[t]=e[t];return i}function Gs(i){return i()}function ml(){return Object.create(null)}function ct(i){i.forEach(Gs)}function jt(i){return typeof i=="function"}function R(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var dl;function oo(i,e){return i===e?!0:(dl||(dl=document.createElement("a")),dl.href=e,i===dl.href)}function hf(i){return Object.keys(i).length===0}function Gt(i,...e){if(i==null){for(let n of e)n(void 0);return be}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Xe(i){let e;return Gt(i,t=>e=t)(),e}function O(i,e,t){i.$$.on_destroy.push(Gt(e,t))}function Ee(i,e,t,n){if(i){let o=bf(i,e,t,n);return i[0](o)}}function bf(i,e,t,n){return i[1]&&n?ie(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(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 l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Ae(i,e,t,n,o,l){if(o){let r=bf(e,t,n,l);i.p(r,o)}}function Le(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function vf(i){return i??""}function dr(i){return i&&jt(i.destroy)?i.destroy:be}var Vo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var pl=class i{_listeners="WeakMap"in Vo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};pl.entries="WeakMap"in Vo?new WeakMap:void 0;var yf=!1;function kf(){yf=!0}function wf(){yf=!1}function p(i,e){i.appendChild(e)}function Se(i,e,t){let n=Cf(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,fg(n,o)}}function Cf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function fg(i,e){return p(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function ni(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 V(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function De(i){return document.createTextNode(i)}function H(){return De(" ")}function et(){return De("")}function Te(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function $t(i){return function(e){return e.preventDefault(),i.call(this,e)}}function _t(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(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)c(i,t,e[t])}function Sf(i){return Array.from(i.childNodes)}function xe(i,e){e=""+e,i.data!==e&&(i.data=e)}function li(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 If(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ft(i,e){return new i(e)}var go;function ro(i){go=i}function mr(){if(!go)throw new Error("Function called outside component initialization");return go}function St(i){mr().$$.on_mount.push(i)}function Hn(i){mr().$$.on_destroy.push(i)}function pr(i,e){return mr().$$.context.set(i,e),e}function _r(i){return mr().$$.context.get(i)}function Yr(){return mr().$$.context}function Cn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Ro=[];var ve=[],hr=[],Ys=[],Pf=Promise.resolve(),Qs=!1;function Zs(){Qs||(Qs=!0,Pf.then(_l))}function Un(){return Zs(),Pf}function Qr(i){hr.push(i)}function Ne(i){Ys.push(i)}var xs=new Set,gr=0;function _l(){if(gr!==0)return;let i=go;do{try{for(;gr<Ro.length;){let e=Ro[gr];gr++,ro(e),hg(e.$$)}}catch(e){throw Ro.length=0,gr=0,e}for(ro(null),Ro.length=0,gr=0;ve.length;)ve.pop()();for(let e=0;e<hr.length;e+=1){let t=hr[e];xs.has(t)||(xs.add(t),t())}hr.length=0}while(Ro.length);for(;Ys.length;)Ys.pop()();Qs=!1,xs.clear(),ro(i)}function hg(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(Qr)}}function Ef(i){let e=[],t=[];hr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),hr=e}var gl=new Set,Bo;function ae(){Bo={r:0,c:[],p:Bo}}function ue(){Bo.r||ct(Bo.c),Bo=Bo.p}function d(i,e){i&&i.i&&(gl.delete(i),i.i(e))}function m(i,e,t,n){if(i&&i.o){if(gl.has(i))return;gl.add(i),Bo.c.push(()=>{gl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function ht(i){return i?.length!==void 0?i:Array.from(i)}function Be(i,e){let t={},n={},o={$$scope:1},l=i.length;for(;l--;){let r=i[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in t||(t[r]=void 0);return t}function Zr(i){return typeof i=="object"&&i!==null?i:{}}var bg=["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"],vg=new Set([...bg]);function Oe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function A(i){i&&i.c()}function E(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Qr(()=>{let l=i.$$.on_mount.map(Gs).filter(jt);i.$$.on_destroy?i.$$.on_destroy.push(...l):ct(l),i.$$.on_mount=[]}),o.forEach(Qr)}function M(i,e){let t=i.$$;t.fragment!==null&&(Ef(t.after_update),ct(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function kg(i,e){i.$$.dirty[0]===-1&&(Ro.push(i),Zs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function D(i,e,t,n,o,l,r=null,a=[-1]){let s=go;ro(i);let u=i.$$={fragment:null,ctx:[],props:l,update:be,not_equal:o,bound:ml(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:ml(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(_,g,...y)=>{let h=y.length?y[0]:g;return u.ctx&&o(u.ctx[_],u.ctx[_]=h)&&(!u.skip_bound&&u.bound[_]&&u.bound[_](h),f&&kg(i,_)),g}):[],u.update(),f=!0,ct(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){kf();let _=Sf(e.target);u.fragment&&u.fragment.l(_),_.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),E(i,e.target,e.anchor),wf(),_l()}ro(s)}var wg;typeof HTMLElement=="function"&&(wg=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return()=>{let r;return{c:function(){r=I("slot"),l!=="default"&&c(r,"name",l)},m:function(u,f){v(u,r,f)},d:function(u){u&&b(r)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=If(this);for(let l of this.$$s)l in n&&(t[l]=[e(l)]);for(let l of this.attributes){let r=this.$$g_p(l.name);r in this.$$d||(this.$$d[r]=Xs(r,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:t,$$scope:{ctx:[]}}});let o=()=>{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 r=Xs(l,this.$$d[l],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let l in this.$$l)for(let r of this.$$l[l]){let a=this.$$c.$on(l,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=Xs(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function Xs(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var B=class{$$=void 0;$$set=void 0;$destroy(){M(this,1),this.$destroy=be}$on(e,t){if(!jt(t))return be;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&&!hf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Mf="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Mf);var kO=require("@vkontakte/videoplayer-core"),Kn=require("@vkontakte/videoplayer-shared"),I_=require("@vkontakte/videoplayer-statistics");var br=require("@vkontakte/videoplayer-shared");var Cg={isMobile:void 0,defaultLanguage:br.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:br.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Af=i=>(0,br.fillWithDefault)(i,Cg),Lf=i=>pr("ui-config",i),qt=()=>_r("ui-config");var Xr="vk_player_debug_panel_opened";var Vf="videoplayer",Rf="videoplayer";var Zn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Bf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Df=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Nf=new Set(["ShiftRight","ShiftLeft"]);var Of=["TIMELINE"],Jr=[...Of,"GRAPH_BUTTON"],Js=[...Of,"PLAY_BUTTON"],hl=[...Jr,"PLAY_BUTTON"];var lo=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(lo||{}),No={xs:0,s:1,m:2,l:3,xl:4};var vr=[];function Ln(i,e){return{subscribe:Fe(i,e).subscribe}}function Fe(i,e=be){let t,n=new Set;function o(a){if(R(i,a)&&(i=a,t)){let s=!vr.length;for(let u of n)u[1](),vr.push(u,i);if(s){for(let u=0;u<vr.length;u+=2)vr[u][0](vr[u+1]);vr.length=0}}}function l(a){o(a(i))}function r(a,s=be){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,l)||be),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:l,subscribe:r}}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 l=e.length<2;return Ln(t,(r,a)=>{let s=!1,u=[],f=0,_=be,g=()=>{if(f)return;_();let h=e(n?u[0]:u,r,a);l?r(h):_=jt(h)?h:be},y=o.map((h,C)=>Gt(h,w=>{u[C]=w,f&=~(1<<C),s&&g()},()=>{f|=1<<C}));return s=!0,g(),function(){ct(y),_(),s=!1}})}var $r=require("@vkontakte/videoplayer-shared"),Ff=require("@vkontakte/videoplayer-core"),qf=require("@vkontakte/videoplayer-statistics");var bl="prod",Oo="1.1.46-dev.c704d5be.0";var Fo=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Hf=Symbol("storeContext"),Uf=Symbol("microStoresContext"),zf=(i,e)=>{pr(Hf,i),pr(Uf,e),bl==="dev"&&(window.app={store:i,microStores:e})},nt=()=>{let i=_r(Hf);return(0,$r.assertNonNullable)(i,"Store context is empty!"),i},Vn=()=>{let i=_r(Uf);return(0,$r.assertNonNullable)(i,"MicroStores context is empty!"),i},bt=(i,e)=>$s(i,i.getValue(),e),$s=(i,e,t)=>Ln(e,n=>{let o=i.subscribe(l=>{n(l),t?.(l)});return()=>o.unsubscribe()}),Wf=(i,e,t)=>{let n=i.info,{width:o,height:l}=Xe(t.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Oo} (core: ${Ff.VERSION}, stat: ${qf.VERSION}, shared: ${$r.VERSION})`,f=Xe(t.state.errorLog$),_=f.length?`
|
|
7
|
+
`+f.map((F,T)=>{let k=`${T}) Type: ${F.id}
|
|
8
8
|
`,P=`Message: ${F.message} (${F.thrown})
|
|
9
|
-
`,
|
|
10
|
-
`;return k+P+
|
|
11
|
-
`):void 0,g=t.state.isAudioDisabled?"disabled":
|
|
12
|
-
`)},Kf=(i,e,t)=>{let n=i.info,{width:o,height:l}=Je(t.ui.playerSize),r={version:Fo,viewport:`${o}x${l}`,volume:Math.round(Je(t.state.volume$)*100)};r.id=t.videoId,n.currentFormat$.getValue()&&(r.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(r.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(r.videoSize=`${u.width}x${u.height}`);let f=n.currentBuffer$.getValue(),_=n.isLive$.getValue(),g=n.liveBufferTime$.getValue();f&&(_&&g?r.buffer=f.end-g:r.buffer=Math.max(f.end-Je(t.state.positionExact$),0));let y=n.throughputEstimation$.getValue();y&&(r.speed=y);let h=n.videoBitrate$.getValue();h&&(r.bitrate=h);let C=n.currentVideoSegmentLength$.getValue();C&&(r.currentVideoSegmentLength=C);let w=n.currentAudioSegmentLength$.getValue();w&&(r.currentAudioSegmentLength=w);let F=Je(t.vsid);typeof F=="string"&&(r.vsid=F);let I=i.info.currentVideoStream$.getValue()?.codec;I&&(r.videoCodec=I);let k=i.info.currentAudioStream$.getValue()?.codec;k&&(r.audioCodec=k),i.info.currentVideoStream$.getValue()?.hdr&&(r.hdr=!0);let K=i.info.currentAudioStream$.getValue()?.language;return K&&(r.audioLanguage=K),r},jf=(i,e)=>qo(i,e,"mp4");var Ei=require("@vkontakte/videoplayer-shared"),_9=require("@vkontakte/videoplayer-core"),Gf="vk_player_prefer_traffic_saving_enabled",xf="vk_player_preferred_volume",Yf="vk_player_prefer_volume_mute",ea="vk_player_preferred_quality",Qf="vk_player_preferred_stream_language",Zf="vk_player_preferred_rate",Xf=i=>i>1?1:i<0?0:i,ta=i=>Ei.safeStorage.set(xf,Xf(i).toString(10)),wl=()=>{let i=Ei.safeStorage.get(xf);return(0,Ei.isNullable)(i)?void 0:Xf(parseFloat(i))},Jf=(i,e)=>Ei.safeStorage.set(ea,JSON.stringify({videoId:i,value:e})),ia=()=>Ei.safeStorage.remove(ea),$f=i=>{let e=Ei.safeStorage.get(ea);if((0,Ei.isNullable)(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){ia();return}return n},ed=(i,e)=>{e?Ei.safeStorage.set(i,"true"):Ei.safeStorage.remove(i)},td=i=>Ei.safeStorage.get(i)==="true",Cl=i=>ed(Yf,i),id=()=>td(Yf),nd=i=>ed(Gf,i),od=()=>td(Gf),rd=()=>Ei.safeStorage.get(Qf),na=i=>Ei.safeStorage.set(Qf,i),ld=i=>Ei.safeStorage.set(Zf,JSON.stringify({rate:i})),sd=()=>{let i=Ei.safeStorage.get(Zf);if((0,Ei.isNullable)(i))return;let{rate:e}=JSON.parse(i);return e};var i_=require("@vkontakte/videoplayer-core"),Ds=require("@vkontakte/videoplayer-shared");function Ag(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,I=i[2].default,k=Ee(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]],K={};for(let z=0;z<P.length;z+=1)K=re(K,P[z]);return{c(){e=V("svg"),k&&k.c(),t=V("g"),n=V("path"),o=V("path"),l=V("path"),r=V("path"),a=V("path"),s=V("defs"),u=V("filter"),f=V("feFlood"),_=V("feColorMatrix"),g=V("feOffset"),y=V("feGaussianBlur"),h=V("feColorMatrix"),C=V("feBlend"),w=V("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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"),c(l,"fill","#fff"),c(l,"fill-rule","evenodd"),c(l,"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"),c(l,"clip-rule","evenodd"),c(r,"fill","#fff"),c(r,"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"),c(a,"stroke","#000"),c(a,"stroke-linecap","round"),c(a,"stroke-linejoin","round"),c(a,"stroke-opacity",".12"),c(a,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(_,"in","SourceAlpha"),c(_,"result","hardAlpha"),c(_,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(y,"stdDeviation","2.5"),c(h,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(C,"in2","BackgroundImageFix"),c(C,"result","effect1_dropShadow_618_12297"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_618_12297"),c(w,"result","shape"),c(u,"id","a"),c(u,"width","75"),c(u,"height","44"),c(u,"x",".5"),c(u,"y",".5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),ke(e,K)},m(z,H){v(z,e,H),k&&k.m(e,null),p(e,t),p(t,n),p(t,o),p(t,l),p(t,r),p(t,a),p(e,s),p(s,u),p(u,f),p(u,_),p(u,g),p(u,y),p(u,h),p(u,C),p(u,w),F=!0},p(z,[H]){k&&k.p&&(!F||H&2)&&Ae(k,I,z,z[1],F?Me(I,z[1],H,null):Le(z[1]),null),ke(e,K=Ve(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},H&1&&z[0]]))},i(z){F||(d(k,z),F=!0)},o(z){m(k,z),F=!1},d(z){z&&b(e),k&&k.d(z)}}}function Lg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var oa=class extends D{constructor(e){super(),N(this,e,Lg,Ag,B,{})}},Sl=oa;var gr=require("@vkontakte/videoplayer-shared");var Vg={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"},ad=Vg;var Rg={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"},ud=Rg;var uo=new Map;uo.set(gr.InterfaceLanguage.EN,ud);uo.set(gr.InterfaceLanguage.RU,ad);var cd=new Map,ra=({language:i,pack:e,fallback:t})=>{if(uo.has(i)){let n=uo.get(i);uo.set(i,{...n,...e})}else uo.set(i,e);cd.set(i,t)},la=i=>uo.has(i),sa=(i,e,t,n)=>{let l=uo.get(i)?.[e];if((0,gr.isNullable)(l)){let r=cd.get(i)??n;l=(r?uo.get(r):void 0)?.[e]}return(0,gr.isNullable)(l)?e+Object.values(t??{}).join(" "):t?l.replaceAll(/{(\w+?)}/g,(r,a)=>t[a]??""):l},U=(i,e)=>{let{interfaceLanguage$:t}=ot(),n=Je(t),o=Nt();return sa(n,i,e,o.defaultLanguage)};var D9=require("@vkontakte/videoplayer-core");var hr;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(hr||(hr={}));var Bg=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Dg=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Ng=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Il="?",Og="X-Sentry-Auth",Fg=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function qg(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
|
|
13
|
-
`),n,o;for(let l=0;l<t.length;++l){if(n=
|
|
14
|
-
`).filter(t=>!!t)[0]}function Hg(i){try{let e=qg(i);if(e)return e}catch{}return{value:fd(i),type:i&&i.name,stacktrace:{frames:[]}}}function Ug(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var Tl=class{constructor(e){if(e&&e.dsn){let t=Fg.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),l=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(l?"/"+l:"")+"/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:[Hg(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(Og,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Ug(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function dd(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function zg(){return window}var Pl=class i extends Tl{constructor(e,t=zg()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:l=u=>u,blacklistUrls:r=[],ignoreErrors:a=[],release:s=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=l,this.blacklistUrls=r,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=>dd(t,n))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>dd(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch{return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],l=Array.isArray(o)?o:null,r=e[n],a=Array.isArray(r)?r:null;return{...t,[n]:l||a?[...l||[],...a||[]]:{...typeof o!="string"?o:{},...typeof r!="string"?r:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}};var Ho=require("@vkontakte/videoplayer-shared");var El=null,Uo=class{constructor(e,t,n={}){!El&&e.dsn&&(this.sentryClient=new Pl({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Ho.Subscription,this.options=e,this.context=n,El=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),El=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:l,options:r}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:_}=r,{errorType:g,category:y}=t;if((0,Ho.isNonNullable)(y)&&_.includes(y)||(0,Ho.isNonNullable)(g)&&f.includes(g))return;if(Math.random()<=a||(0,Ho.isNonNullable)(y)&&u.includes(y)||(0,Ho.isNonNullable)(g)&&s.includes(g)){Object.keys(t).length&&o.setTags({version:this.version,...t}),(Object.keys(l).length||Object.keys(n).length)&&o.setExtras({...l,...n});try{g&&o.captureMessage(g,t.fatal?hr.fatal:hr.error),o.report(e)}catch(C){console.error(C)}}}static getInstance(){return El}};var Ml=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e?.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Al=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),md=i=>{let e=i;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},Jr=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},bo=()=>!!Jr(),Ll=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},Vl=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},pd=i=>{let e=window.screen;return(async o=>e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject())(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};var aa=require("@vkontakte/videoplayer-shared"),_d=()=>({title:U("hotkey_map_modal_title"),closeBtnText:U("hotkey_map_modal_close_btn_text"),groups:[{title:U("hotkey_map_group_title_common"),items:[{description:U("hotkey_map_item_mute_description"),value:U("hotkey_map_item_mute_value")},{description:U("hotkey_map_item_volume_up_description"),value:U("hotkey_map_item_volume_up_value")},{description:U("hotkey_map_item_volume_down_description"),value:U("hotkey_map_item_volume_down_value")},{description:U("hotkey_map_item_pip_description"),value:U("hotkey_map_item_pip_value")},{description:U("hotkey_map_item_full_screen_description"),value:U("hotkey_map_item_full_screen_value")},{description:U("hotkey_map_item_show_context_menu_description"),value:U("hotkey_map_item_show_context_menu_value")},{description:U("hotkey_map_item_show_hotkey_map_description"),value:U("hotkey_map_item_show_hotkey_map_value")}]},{title:U("hotkey_map_group_title_playback"),items:[{description:U("hotkey_map_item_play_toggle_description"),value:U("hotkey_map_item_play_toggle_value")},{description:U("hotkey_map_item_seek_backward_description"),value:U("hotkey_map_item_seek_backward_value")},{description:U("hotkey_map_item_seek_forward_description"),value:U("hotkey_map_item_seek_forward_value")},{description:U("hotkey_map_item_fast_seek_backward_description"),value:U("hotkey_map_item_fast_seek_backward_value")},{description:U("hotkey_map_item_fast_seek_forward_description"),value:U("hotkey_map_item_fast_seek_forward_value")},{description:U("hotkey_map_item_rate_down_description"),value:U("hotkey_map_item_rate_down_value")},{description:U("hotkey_map_item_rate_up_description"),value:U("hotkey_map_item_rate_up_value")},{description:U("hotkey_map_item_prev_frame_description"),value:U("hotkey_map_item_prev_frame_value")},{description:U("hotkey_map_item_next_frame_description"),value:U("hotkey_map_item_next_frame_value")},{description:U("hotkey_map_item_jump_seek_description"),value:U("hotkey_map_item_jump_seek_value")}]},{title:U("hotkey_map_group_title_subtitles"),items:[{description:U("hotkey_map_item_subtitles_toggle_description"),value:U("hotkey_map_item_subtitles_toggle_value")}]},{title:U("hotkey_map_group_title_episodes"),items:[{description:U("hotkey_map_item_prev_episode_description"),value:aa.clientChecker.isApple?U("hotkey_map_item_prev_episode_mac_value"):U("hotkey_map_item_prev_episode_pc_value")},{description:U("hotkey_map_item_next_episode_description"),value:aa.clientChecker.isApple?U("hotkey_map_item_next_episode_mac_value"):U("hotkey_map_item_next_episode_pc_value")}]}]});var br=require("@vkontakte/videoplayer-shared");var zo=class{constructor(){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,br.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new br.ValueSubject(this.isActive()),type:0}}isSupported(){return document.pictureInPictureEnabled&&!br.clientChecker.isYandex}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){if(!(!this.isSupported()||this.isActive()))try{await this.videoElement?.requestPictureInPicture()}catch{this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&(this.videoElement=this.playerContainer?.querySelector("video"))}registryEventHandlers(){this.videoElement?.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){this.videoElement?.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n?.removeEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.leavepictureinpicture?.(e),this.playerDummyElement?.$destroy()}onResize(e){this.externalEventHandlers.resize?.(e)}};function Wo(i){return i instanceof zo}function Wg(i){let e=ot();return St(()=>{e.getAdmanWrapper().startPostroll()}),[]}var fa=class extends D{constructor(e){super(),N(this,e,Wg,null,B,{})}},gd=fa;var hd=require("@vkontakte/videoplayer-shared");function Kg(i){Ie(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 jg(i){let e=U("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=Ne(e)},m(n,o){v(n,t,o)},p(n,o){o&3&&e!==(e=U("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&xe(t,e)},d(n){n&&b(t)}}}function Gg(i){let e,t=U("skip_ads_now")+"",n,o,l,r,a,s;return{c(){e=T("div"),n=Ne(t),o=q(),l=V("svg"),r=V("path"),c(r,"fill-rule","evenodd"),c(r,"clip-rule","evenodd"),c(r,"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"),c(l,"class","icon svelte-1k4i25s"),c(l,"width","7"),c(l,"height","12"),c(l,"viewBox","0 0 7 12"),c(l,"fill","none"),c(l,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","skip svelte-1k4i25s")},m(u,f){v(u,e,f),p(e,n),p(e,o),p(e,l),p(l,r),a||(s=Te(e,"click",_t(function(){zt(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,f){i=u},d(u){u&&b(e),a=!1,s()}}}function xg(i){let e;function t(l,r){return l[3]?Gg:jg}let n=t(i,-1),o=n(i);return{c(){e=T("div"),o.c(),c(e,"class","container svelte-1k4i25s"),W(e,"container-mobile",i[4]),W(e,"skippable",i[3])},m(l,r){v(l,e,r),o.m(e,null)},p(l,[r]){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e,null))),r&16&&W(e,"container-mobile",l[4]),r&8&&W(e,"skippable",l[3])},i:ge,o:ge,d(l){l&&b(e),o.d()}}}function Yg(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:l=0}=e,{skipAd:r=hd.noop}=e,s=ot().ui.isMobile;O(i,s,f=>t(4,n=f));let u;return i.$$set=f=>{"position"in f&&t(0,o=f.position),"secondsToWatchBeforeSkip"in f&&t(1,l=f.secondsToWatchBeforeSkip),"skipAd"in f&&t(2,r=f.skipAd)},i.$$.update=()=>{i.$$.dirty&3&&t(3,u=o>0&&o>=l)},[o,l,r,u,n,s]}var da=class extends D{constructor(e){super(),N(this,e,Yg,xg,B,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},Kg)}},bd=da;function Qg(i){Ie(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 Zg(i){let e;return{c(){e=T("button"),e.textContent=`${U("visit_advertiser")}`,c(e,"class","svelte-1wy3dql")},m(t,n){v(t,e,n)},p:ge,i:ge,o:ge,d(t){t&&b(e)}}}var ma=class extends D{constructor(e){super(),N(this,e,null,Zg,B,{},Qg)}},vd=ma;function Xg(i){Ie(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(
|
|
9
|
+
`,j=`Trace: ${F.thrown?.stack}
|
|
10
|
+
`;return k+P+j}).join(`
|
|
11
|
+
`):void 0,g=t.state.isAudioDisabled?"disabled":Xe(t.state.isAudioAvailable$)?void 0:"unavailable",y=i.info.currentVideoStream$.getValue(),h=i.info.currentAudioStream$.getValue(),C=[];y&&C.push(`Video: ${y?.codec??""}`+(y?.hdr?" (HDR)":"")),h&&C.push(`Audio: ${h?.codec??""}`+(h?.language?` (${h.language})`:""));let w={Version:u,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),VSID:Xe(t.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${r}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:C.join(", "),Quality:`${s} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:g,Position:`${Xe(t.state.positionExact$)}s`,State:`${Xe(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${l}`,URL:window.location.href,Errors:_};return Object.entries(w).filter(([F,T])=>T!==void 0).map(([F,T])=>`${F}: ${T}`).join(`
|
|
12
|
+
`)},Kf=(i,e,t)=>{let n=i.info,{width:o,height:l}=Xe(t.ui.playerSize),r={version:Oo,viewport:`${o}x${l}`,volume:Math.round(Xe(t.state.volume$)*100)};r.id=t.videoId,n.currentFormat$.getValue()&&(r.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(r.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(r.videoSize=`${u.width}x${u.height}`);let f=n.currentBuffer$.getValue(),_=n.isLive$.getValue(),g=n.liveBufferTime$.getValue();f&&(_&&g?r.buffer=f.end-g:r.buffer=Math.max(f.end-Xe(t.state.positionExact$),0));let y=n.throughputEstimation$.getValue();y&&(r.speed=y);let h=n.videoBitrate$.getValue();h&&(r.bitrate=h);let C=n.currentVideoSegmentLength$.getValue();C&&(r.currentVideoSegmentLength=C);let w=n.currentAudioSegmentLength$.getValue();w&&(r.currentAudioSegmentLength=w);let F=Xe(t.vsid);typeof F=="string"&&(r.vsid=F);let T=i.info.currentVideoStream$.getValue()?.codec;T&&(r.videoCodec=T);let k=i.info.currentAudioStream$.getValue()?.codec;k&&(r.audioCodec=k),i.info.currentVideoStream$.getValue()?.hdr&&(r.hdr=!0);let j=i.info.currentAudioStream$.getValue()?.language;return j&&(r.audioLanguage=j),r},jf=(i,e)=>Fo(i,e,"mp4"),Gf=()=>{let e=[],t=0;return{add:(n,o)=>{e[t]=[n,o],t=(t+1)%10},find:n=>e.find(([o])=>o===n)}},vl=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let t=await fetch(e,{signal:this.destroyController.signal});if(t.ok)return await t.text();throw t}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController?.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var Ii=require("@vkontakte/videoplayer-shared"),d9=require("@vkontakte/videoplayer-core"),xf="vk_player_prefer_traffic_saving_enabled",Yf="vk_player_preferred_volume",Qf="vk_player_prefer_volume_mute",ea="vk_player_preferred_quality",Zf="vk_player_preferred_stream_language",Xf="vk_player_preferred_rate",Jf=i=>i>1?1:i<0?0:i,ta=i=>Ii.safeStorage.set(Yf,Jf(i).toString(10)),yl=()=>{let i=Ii.safeStorage.get(Yf);return(0,Ii.isNullable)(i)?void 0:Jf(parseFloat(i))},$f=(i,e)=>Ii.safeStorage.set(ea,JSON.stringify({videoId:i,value:e})),ia=()=>Ii.safeStorage.remove(ea),ed=i=>{let e=Ii.safeStorage.get(ea);if((0,Ii.isNullable)(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){ia();return}return n},td=(i,e)=>{e?Ii.safeStorage.set(i,"true"):Ii.safeStorage.remove(i)},id=i=>Ii.safeStorage.get(i)==="true",kl=i=>td(Qf,i),nd=()=>id(Qf),od=i=>td(xf,i),rd=()=>id(xf),ld=()=>Ii.safeStorage.get(Zf),na=i=>Ii.safeStorage.set(Zf,i),sd=i=>Ii.safeStorage.set(Xf,JSON.stringify({rate:i})),ad=()=>{let i=Ii.safeStorage.get(Xf);if((0,Ii.isNullable)(i))return;let{rate:e}=JSON.parse(i);return e};var e_=require("@vkontakte/videoplayer-core"),Rs=require("@vkontakte/videoplayer-shared");function Sg(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,T=i[2].default,k=Ee(T,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]],j={};for(let W=0;W<P.length;W+=1)j=ie(j,P[W]);return{c(){e=V("svg"),k&&k.c(),t=V("g"),n=V("path"),o=V("path"),l=V("path"),r=V("path"),a=V("path"),s=V("defs"),u=V("filter"),f=V("feFlood"),_=V("feColorMatrix"),g=V("feOffset"),y=V("feGaussianBlur"),h=V("feColorMatrix"),C=V("feBlend"),w=V("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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"),c(l,"fill","#fff"),c(l,"fill-rule","evenodd"),c(l,"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"),c(l,"clip-rule","evenodd"),c(r,"fill","#fff"),c(r,"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"),c(a,"stroke","#000"),c(a,"stroke-linecap","round"),c(a,"stroke-linejoin","round"),c(a,"stroke-opacity",".12"),c(a,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(_,"in","SourceAlpha"),c(_,"result","hardAlpha"),c(_,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(y,"stdDeviation","2.5"),c(h,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(C,"in2","BackgroundImageFix"),c(C,"result","effect1_dropShadow_618_12297"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_618_12297"),c(w,"result","shape"),c(u,"id","a"),c(u,"width","75"),c(u,"height","44"),c(u,"x",".5"),c(u,"y",".5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),ke(e,j)},m(W,U){v(W,e,U),k&&k.m(e,null),p(e,t),p(t,n),p(t,o),p(t,l),p(t,r),p(t,a),p(e,s),p(s,u),p(u,f),p(u,_),p(u,g),p(u,y),p(u,h),p(u,C),p(u,w),F=!0},p(W,[U]){k&&k.p&&(!F||U&2)&&Ae(k,T,W,W[1],F?Me(T,W[1],U,null):Le(W[1]),null),ke(e,j=Be(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},U&1&&W[0]]))},i(W){F||(d(k,W),F=!0)},o(W){m(k,W),F=!1},d(W){W&&b(e),k&&k.d(W)}}}function Ig(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var oa=class extends B{constructor(e){super(),D(this,e,Ig,Sg,R,{})}},wl=oa;var yr=require("@vkontakte/videoplayer-shared");var Tg={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"},ud=Tg;var Pg={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"},cd=Pg;var so=new Map;so.set(yr.InterfaceLanguage.EN,cd);so.set(yr.InterfaceLanguage.RU,ud);var fd=new Map,ra=({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);fd.set(i,t)},la=i=>so.has(i),sa=(i,e,t,n)=>{let l=so.get(i)?.[e];if((0,yr.isNullable)(l)){let r=fd.get(i)??n;l=(r?so.get(r):void 0)?.[e]}return(0,yr.isNullable)(l)?e+Object.values(t??{}).join(" "):t?l.replaceAll(/{(\w+?)}/g,(r,a)=>t[a]??""):l},z=(i,e)=>{let{interfaceLanguage$:t}=nt(),n=Xe(t),o=qt();return sa(n,i,e,o.defaultLanguage)};var V9=require("@vkontakte/videoplayer-core");var kr;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(kr||(kr={}));var Eg=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Mg=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Ag=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Cl="?",Lg="X-Sentry-Auth",Vg=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Rg(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
|
|
13
|
+
`),n,o;for(let l=0;l<t.length;++l){if(n=Eg.exec(t[l]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||Cl,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=Ag.exec(t[l]))o={filename:n[2],function:n[1]||Cl,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=Mg.exec(t[l]))l===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||Cl,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=Cl),e.push(o)}return e.length?{value:dd(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function dd(i){return(i&&i.message||"No error message").split(`
|
|
14
|
+
`).filter(t=>!!t)[0]}function Bg(i){try{let e=Rg(i);if(e)return e}catch{}return{value:dd(i),type:i&&i.name,stacktrace:{frames:[]}}}function Dg(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var Sl=class{constructor(e){if(e&&e.dsn){let t=Vg.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),l=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(l?"/"+l:"")+"/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:[Bg(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(Lg,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Dg(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function md(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function Ng(){return window}var Il=class i extends Sl{constructor(e,t=Ng()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:l=u=>u,blacklistUrls:r=[],ignoreErrors:a=[],release:s=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=l,this.blacklistUrls=r,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=>md(t,n))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>md(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch{return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],l=Array.isArray(o)?o:null,r=e[n],a=Array.isArray(r)?r:null;return{...t,[n]:l||a?[...l||[],...a||[]]:{...typeof o!="string"?o:{},...typeof r!="string"?r:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}};var qo=require("@vkontakte/videoplayer-shared");var Tl=null,Ho=class{constructor(e,t,n={}){!Tl&&e.dsn&&(this.sentryClient=new Il({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new qo.Subscription,this.options=e,this.context=n,Tl=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),Tl=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:l,options:r}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:_}=r,{errorType:g,category:y}=t;if((0,qo.isNonNullable)(y)&&_.includes(y)||(0,qo.isNonNullable)(g)&&f.includes(g))return;if(Math.random()<=a||(0,qo.isNonNullable)(y)&&u.includes(y)||(0,qo.isNonNullable)(g)&&s.includes(g)){Object.keys(t).length&&o.setTags({version:this.version,...t}),(Object.keys(l).length||Object.keys(n).length)&&o.setExtras({...l,...n});try{g&&o.captureMessage(g,t.fatal?kr.fatal:kr.error),o.report(e)}catch(C){console.error(C)}}}static getInstance(){return Tl}};var Pl=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e?.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},El=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),pd=i=>{let e=i;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},el=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},ho=()=>!!el(),Ml=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},Al=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},_d=i=>{let e=window.screen;return(async o=>e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject())(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};var aa=require("@vkontakte/videoplayer-shared"),gd=()=>({title:z("hotkey_map_modal_title"),closeBtnText:z("hotkey_map_modal_close_btn_text"),groups:[{title:z("hotkey_map_group_title_common"),items:[{description:z("hotkey_map_item_mute_description"),value:z("hotkey_map_item_mute_value")},{description:z("hotkey_map_item_volume_up_description"),value:z("hotkey_map_item_volume_up_value")},{description:z("hotkey_map_item_volume_down_description"),value:z("hotkey_map_item_volume_down_value")},{description:z("hotkey_map_item_pip_description"),value:z("hotkey_map_item_pip_value")},{description:z("hotkey_map_item_full_screen_description"),value:z("hotkey_map_item_full_screen_value")},{description:z("hotkey_map_item_show_context_menu_description"),value:z("hotkey_map_item_show_context_menu_value")},{description:z("hotkey_map_item_show_hotkey_map_description"),value:z("hotkey_map_item_show_hotkey_map_value")}]},{title:z("hotkey_map_group_title_playback"),items:[{description:z("hotkey_map_item_play_toggle_description"),value:z("hotkey_map_item_play_toggle_value")},{description:z("hotkey_map_item_seek_backward_description"),value:z("hotkey_map_item_seek_backward_value")},{description:z("hotkey_map_item_seek_forward_description"),value:z("hotkey_map_item_seek_forward_value")},{description:z("hotkey_map_item_fast_seek_backward_description"),value:z("hotkey_map_item_fast_seek_backward_value")},{description:z("hotkey_map_item_fast_seek_forward_description"),value:z("hotkey_map_item_fast_seek_forward_value")},{description:z("hotkey_map_item_rate_down_description"),value:z("hotkey_map_item_rate_down_value")},{description:z("hotkey_map_item_rate_up_description"),value:z("hotkey_map_item_rate_up_value")},{description:z("hotkey_map_item_prev_frame_description"),value:z("hotkey_map_item_prev_frame_value")},{description:z("hotkey_map_item_next_frame_description"),value:z("hotkey_map_item_next_frame_value")},{description:z("hotkey_map_item_jump_seek_description"),value:z("hotkey_map_item_jump_seek_value")}]},{title:z("hotkey_map_group_title_subtitles"),items:[{description:z("hotkey_map_item_subtitles_toggle_description"),value:z("hotkey_map_item_subtitles_toggle_value")}]},{title:z("hotkey_map_group_title_episodes"),items:[{description:z("hotkey_map_item_prev_episode_description"),value:aa.clientChecker.isApple?z("hotkey_map_item_prev_episode_mac_value"):z("hotkey_map_item_prev_episode_pc_value")},{description:z("hotkey_map_item_next_episode_description"),value:aa.clientChecker.isApple?z("hotkey_map_item_next_episode_mac_value"):z("hotkey_map_item_next_episode_pc_value")}]}]});var wr=require("@vkontakte/videoplayer-shared");var Uo=class{constructor(){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,wr.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new wr.ValueSubject(this.isActive()),type:0}}isSupported(){return document.pictureInPictureEnabled&&!wr.clientChecker.isYandex}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){if(!(!this.isSupported()||this.isActive()))try{await this.videoElement?.requestPictureInPicture()}catch{this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&(this.videoElement=this.playerContainer?.querySelector("video"))}registryEventHandlers(){this.videoElement?.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){this.videoElement?.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n?.removeEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.leavepictureinpicture?.(e),this.playerDummyElement?.$destroy()}onResize(e){this.externalEventHandlers.resize?.(e)}};function zo(i){return i instanceof Uo}function Og(i){let e=nt();return St(()=>{e.getAdmanWrapper().startPostroll()}),[]}var fa=class extends B{constructor(e){super(),D(this,e,Og,null,R,{})}},hd=fa;var bd=require("@vkontakte/videoplayer-shared");function Fg(i){Se(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 qg(i){let e=z("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=De(e)},m(n,o){v(n,t,o)},p(n,o){o&3&&e!==(e=z("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&xe(t,e)},d(n){n&&b(t)}}}function Hg(i){let e,t=z("skip_ads_now")+"",n,o,l,r,a,s;return{c(){e=I("div"),n=De(t),o=H(),l=V("svg"),r=V("path"),c(r,"fill-rule","evenodd"),c(r,"clip-rule","evenodd"),c(r,"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"),c(l,"class","icon svelte-1k4i25s"),c(l,"width","7"),c(l,"height","12"),c(l,"viewBox","0 0 7 12"),c(l,"fill","none"),c(l,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","skip svelte-1k4i25s")},m(u,f){v(u,e,f),p(e,n),p(e,o),p(e,l),p(l,r),a||(s=Te(e,"click",_t(function(){jt(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,f){i=u},d(u){u&&b(e),a=!1,s()}}}function Ug(i){let e;function t(l,r){return l[3]?Hg:qg}let n=t(i,-1),o=n(i);return{c(){e=I("div"),o.c(),c(e,"class","container svelte-1k4i25s"),K(e,"container-mobile",i[4]),K(e,"skippable",i[3])},m(l,r){v(l,e,r),o.m(e,null)},p(l,[r]){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e,null))),r&16&&K(e,"container-mobile",l[4]),r&8&&K(e,"skippable",l[3])},i:be,o:be,d(l){l&&b(e),o.d()}}}function zg(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:l=0}=e,{skipAd:r=bd.noop}=e,s=nt().ui.isMobile;O(i,s,f=>t(4,n=f));let u;return i.$$set=f=>{"position"in f&&t(0,o=f.position),"secondsToWatchBeforeSkip"in f&&t(1,l=f.secondsToWatchBeforeSkip),"skipAd"in f&&t(2,r=f.skipAd)},i.$$.update=()=>{i.$$.dirty&3&&t(3,u=o>0&&o>=l)},[o,l,r,u,n,s]}var da=class extends B{constructor(e){super(),D(this,e,zg,Ug,R,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},Fg)}},vd=da;function Wg(i){Se(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 Kg(i){let e;return{c(){e=I("button"),e.textContent=`${z("visit_advertiser")}`,c(e,"class","svelte-1wy3dql")},m(t,n){v(t,e,n)},p:be,i:be,o:be,d(t){t&&b(e)}}}var ma=class extends B{constructor(e){super(),D(this,e,null,Kg,R,{},Wg)}},yd=ma;function jg(i){Se(i,"svelte-354ajf",`.container.svelte-354ajf{width:100%;height:100%}.top-gradient-mobile.svelte-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
|
|
15
15
|
360deg,
|
|
16
16
|
rgba(0, 0, 0, 0) 0%,
|
|
17
17
|
rgba(0, 0, 0, 0.05) 12%,
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
rgba(0, 0, 0, 0.5) 77%,
|
|
22
22
|
rgba(0, 0, 0, 0.55) 88%,
|
|
23
23
|
rgba(0, 0, 0, 0.65) 100%
|
|
24
|
-
)}`)}function yd(i){let e;return{c(){e=T("div"),c(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function kd(i){let e,t;return e=new bd({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&32&&(l.position=n[5]),o&64&&(l.secondsToWatchBeforeSkip=n[6]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function wd(i){let e,t;return e=new gd({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Cd(i){let e,t;return e=new vd({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Jg(i){let e,t,n,o,l,r,a,s=i[0]&&yd(i),u=i[3]&&kd(i),f=i[7]&&wd(i),_=i[4]&&Cd(i);return{c(){e=T("div"),s&&s.c(),t=q(),n=T("video"),o=q(),u&&u.c(),l=q(),f&&f.c(),r=q(),_&&_.c(),ci(n,"width","100%"),ci(n,"height","100%"),n.playsInline=!0,c(e,"class","container svelte-354ajf")},m(g,y){v(g,e,y),s&&s.m(e,null),p(e,t),p(e,n),i[19](n),p(e,o),u&&u.m(e,null),p(e,l),f&&f.m(e,null),p(e,r),_&&_.m(e,null),i[20](e),a=!0},p(g,[y]){g[0]?s||(s=yd(g),s.c(),s.m(e,t)):s&&(s.d(1),s=null),g[3]?u?(u.p(g,y),y&8&&d(u,1)):(u=kd(g),u.c(),d(u,1),u.m(e,l)):u&&(ae(),m(u,1,1,()=>{u=null}),ue()),g[7]?f?y&128&&d(f,1):(f=wd(g),f.c(),d(f,1),f.m(e,r)):f&&(ae(),m(f,1,1,()=>{f=null}),ue()),g[4]?_?y&16&&d(_,1):(_=Cd(g),_.c(),d(_,1),_.m(e,null)):_&&(ae(),m(_,1,1,()=>{_=null}),ue())},i(g){a||(d(u),d(f),d(_),a=!0)},o(g){m(u),m(f),m(_),a=!1},d(g){g&&b(e),s&&s.d(),i[19](null),u&&u.d(),f&&f.d(),_&&_.d(),i[20](null)}}}function $g(i,e,t){let n,o,l,r,a,{adsSlotId:s=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:f=void 0}=e,{duration:_=0}=e,g=ot(),y=g.state.isEnded$;O(i,y,R=>t(7,a=R));let h=g.ui.isMobile;O(i,h,R=>t(0,o=R));let C,w,F=!1,I=g.ads.playbackState;O(i,I,R=>t(18,n=R));let k=g.ads.canSkip,P=g.ads.position;O(i,P,R=>t(5,l=R));let K=g.ads.secondsToWatchBeforeSkip;O(i,K,R=>t(6,r=R));let z,H;St(()=>{let R=g.getAdmanWrapper();if(!s){R.onAdmanLoadingError();return}let te=new AbortController,le=()=>{te.abort()},{width:ne,height:_e}=Je(g.ui.playerSize),Y=Je(g.ui.isFullscreen),$=Je(g.ui.isAutoplay),E={width:ne,height:_e,isFullscreen:Y,isAutoplay:$,adsContainer:C,adsVideoElement:w,slotId:s,params:u,previewParam:f,duration:_};return window.AdmanHTML?(R.initAdman(E),F=!0):R.loadAdman(te.signal).then(()=>{R.initAdman(E),F=!0}).catch(()=>{R.onAdmanLoadingError()}),()=>{!F&&le()}});function se(R){be[R?"unshift":"push"](()=>{w=R,t(2,w)})}function me(R){be[R?"unshift":"push"](()=>{C=R,t(1,C)})}return i.$$set=R=>{"adsSlotId"in R&&t(14,s=R.adsSlotId),"adsParams"in R&&t(15,u=R.adsParams),"adsPreviewParam"in R&&t(16,f=R.adsPreviewParam),"duration"in R&&t(17,_=R.duration)},i.$$.update=()=>{i.$$.dirty&262144&&t(3,z=k&&n!=="inactive"),i.$$.dirty&262145&&t(4,H=o&&n!=="inactive")},[o,C,w,z,H,l,r,a,g,y,h,I,P,K,s,u,f,_,n,se,me]}var pa=class extends D{constructor(e){super(),N(this,e,$g,Jg,B,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},Xg)}},Rl=pa;var Sn=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(l=>l>9?String(l):`0${l}`).join(":")};function eh(i){let e,t,n,o,l=i[2].default,r=Ee(l,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=re(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("path"),c(t,"fill","none"),c(t,"stroke","#fff"),c(t,"stroke-width","2"),c(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"),c(n,"fill","#f0f2f5"),c(n,"fill-rule","evenodd"),c(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,f){v(u,e,f),r&&r.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ke(e,s=Ve(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function th(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var _a=class extends D{constructor(e){super(),N(this,e,th,eh,B,{})}},Sd=_a;function ih(i){let e,t,n,o,l=i[2].default,r=Ee(l,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=re(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("rect"),n=V("path"),c(t,"width","42"),c(t,"height","20"),c(t,"fill","#FF3347"),c(t,"rx","5"),c(n,"fill","#F2F3F5"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),ke(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ke(e,s=Ve(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function nh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var ga=class extends D{constructor(e){super(),N(this,e,nh,ih,B,{})}},Id=ga;function oh(i){let e,t;return e=new Sd({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function rh(i){let e,t;return e=new Id({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function lh(i){let e,t,n,o,l=[rh,oh],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=tt()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t||(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function sh(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var ha=class extends D{constructor(e){super(),N(this,e,sh,lh,B,{isActive:0})}},Bl=ha;function ah(i){Ie(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 uh(i){let e=Sn(i[4]-i[3])+"",t;return{c(){t=Ne(e)},m(n,o){v(n,t,o)},p(n,o){o&24&&e!==(e=Sn(n[4]-n[3])+"")&&xe(t,e)},i:ge,o:ge,d(n){n&&b(t)}}}function ch(i){let e,t,n;return t=new Bl({props:{isActive:!0}}),{c(){e=T("div"),L(t.$$.fragment),c(e,"class","thumb-timer-live-icon svelte-i7xnqb")},m(o,l){v(o,e,l),M(t,e,null),n=!0},p:ge,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function fh(i){let e,t,n,o,l,r,a,s=[ch,uh],u=[];function f(_,g){return _[1]?0:1}return l=f(i,-1),r=u[l]=s[l](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=q(),o=T("span"),r.c(),c(t,"class","thumb-timer-equalizer svelte-i7xnqb"),c(o,"class","thumb-timer-text svelte-i7xnqb"),c(e,"role","timer"),c(e,"class","thumb-timer svelte-i7xnqb"),c(e,"data-testid","thumb-timer"),W(e,"live",i[1]),W(e,"hidden",i[0]),W(e,"playing",i[2])},m(_,g){v(_,e,g),p(e,t),p(e,n),p(e,o),u[l].m(o,null),a=!0},p(_,[g]){let y=l;l=f(_,g),l===y?u[l].p(_,g):(ae(),m(u[y],1,1,()=>{u[y]=null}),ue(),r=u[l],r?r.p(_,g):(r=u[l]=s[l](_),r.c()),d(r,1),r.m(o,null)),(!a||g&2)&&W(e,"live",_[1]),(!a||g&1)&&W(e,"hidden",_[0]),(!a||g&4)&&W(e,"playing",_[2])},i(_){a||(d(r),a=!0)},o(_){m(r),a=!1},d(_){_&&b(e),u[l].d()}}}function dh(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:l=!1}=e,{position:r}=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,l=s.isPlaying),"position"in s&&t(3,r=s.position),"duration"in s&&t(4,a=s.duration)},[n,o,l,r,a]}var ba=class extends D{constructor(e){super(),N(this,e,dh,fh,B,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},ah)}},Dl=ba;var vr=i=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=i,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};var qd=require("@vkontakte/videoplayer-core");var va=require("@vkontakte/videoplayer-shared"),Jn=i=>{i.stopPropagation(),i.preventDefault()},ph=i=>{let e=i.previousElementSibling;e||(e=i.parentNode?.lastElementChild),e?.focus()},_h=i=>{let e=i.nextElementSibling;e||(e=i.parentNode?.firstElementChild),e?.focus()},gh=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},hh=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},Td=i=>i.code==="Escape",bh=i=>i.code==="ArrowLeft",ya=(i,e=[])=>{let t=i.code;return["Enter","Space",...e].includes(t)},Pd=i=>{if(gh(i)){Jn(i),_h(i.target);return}hh(i)&&(Jn(i),ph(i.target))},yr=i=>!va.clientChecker.isAndroid&&i?.detail===0||va.clientChecker.isAndroid&&i?.pointerType==="",kr=async(i,e,t)=>{await Wn(),i&&!i.classList.contains("opened")&&!e&&Je(t)&&(await Wn(),t.set(!1),i.focus())},Ed=async(i,e,t)=>{await Wn(),i&&!e&&Je(t)&&(t.set(!1),i.focus())},jo=async(i,e,t)=>{await Wn(),!!i&&e&&t&&i.children[0]?.focus()},Md=async i=>{!!i&&setTimeout(()=>{i.focus()},100)},Nl=(i,e)=>{Pd(i),Td(i)&&(Jn(i),e())},Ad=async(i,e,t)=>{ya(i,["ArrowRight"])&&(Jn(i),e(),await Wn(),t()?.focus())},Ld=async(i,e,{itemIdReturnCase:t,id:n},o)=>{if(Pd(i),bh(i)){Jn(i),e(),t.set(n);return}Td(i)&&(Jn(i),o())},wr=(i,e)=>{ya(i)&&(Jn(i),e())},Vd=(i,e,t)=>{if(ya(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))}},Rd=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},Bd=i=>{if(!i)return{top:0,left:0};let e=i.getBoundingClientRect(),t=-58,n=8,o=e.left+n;return{bottom:e.bottom+t,left:o}};var Go=require("@vkontakte/videoplayer-shared");var $r=(n=>(n.OPEN_SUB_MENU="OPEN_SUB_MENU",n.CLICK="CLICK",n.SWITCH="SWITCH",n))($r||{});var Kn={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var ka=require("@vkontakte/videoplayer-shared");function yh(i){Ie(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 kh(i){let e,t,n,o,l;return{c(){e=T("li"),t=Ne(i[1]),c(e,"class","item svelte-1hm4mm9"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",n=i[2]??i[1]),c(e,"data-testid",i[0])},m(r,a){v(r,e,a),p(e,t),o||(l=[Te(e,"click",_t(i[3])),Te(e,"keydown",i[4])],o=!0)},p(r,[a]){a&2&&xe(t,r[1]),a&6&&n!==(n=r[2]??r[1])&&c(e,"aria-label",n),a&1&&c(e,"data-testid",r[0])},i:ge,o:ge,d(r){r&&b(e),o=!1,ut(l)}}}function wh(i,e,t){let{id:n}=e,{onClick:o=ka.noop}=e,{closeContextMenu:l=ka.noop}=e,{label:r}=e,{ariaLabel:a}=e,s=()=>{o(),l()},u=f=>{wr(f,()=>s())};return i.$$set=f=>{"id"in f&&t(0,n=f.id),"onClick"in f&&t(5,o=f.onClick),"closeContextMenu"in f&&t(6,l=f.closeContextMenu),"label"in f&&t(1,r=f.label),"ariaLabel"in f&&t(2,a=f.ariaLabel)},[n,r,a,s,u,o,l]}var wa=class extends D{constructor(e){super(),N(this,e,wh,kh,B,{id:0,onClick:5,closeContextMenu:6,label:1,ariaLabel:2},yh)}},Dd=wa;function Ch(i){Ie(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 Nd(i,e,t){let n=i.slice();return n[52]=e[t],n}function Od(i){let e,t,n,o,l=yt(i[2]),r=[];for(let s=0;s<l.length;s+=1)r[s]=Fd(Nd(i,l,s));let a=s=>m(r[s],1,1,()=>{r[s]=null});return{c(){e=T("ul");for(let s=0;s<r.length;s+=1)r[s].c();c(e,"role","menu"),ci(e,"top",i[4]+"px"),ci(e,"left",i[3]+"px"),c(e,"class","svelte-1p5ukkp")},m(s,u){v(s,e,u);for(let f=0;f<r.length;f+=1)r[f]&&r[f].m(e,null);i[34](e),t=!0,n||(o=[Te(e,"contextmenu",ei(i[33])),Te(e,"keydown",i[13])],n=!0)},p(s,u){if(u[0]&4100){l=yt(s[2]);let f;for(f=0;f<l.length;f+=1){let _=Nd(s,l,f);r[f]?(r[f].p(_,u),d(r[f],1)):(r[f]=Fd(_),r[f].c(),d(r[f],1),r[f].m(e,null))}for(ae(),f=l.length;f<r.length;f+=1)a(f);ue()}(!t||u[0]&16)&&ci(e,"top",s[4]+"px"),(!t||u[0]&8)&&ci(e,"left",s[3]+"px")},i(s){if(!t){for(let u=0;u<l.length;u+=1)d(r[u]);t=!0}},o(s){r=r.filter(Boolean);for(let u=0;u<r.length;u+=1)m(r[u]);t=!1},d(s){s&&b(e),li(r,s),i[34](null),n=!1,ut(o)}}}function Fd(i){let e,t;return e=new Dd({props:{id:i[52].id,label:i[52].label,ariaLabel:i[52].ariaLabel,onClick:i[52].onClick,closeContextMenu:i[12]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.id=n[52].id),o[0]&4&&(l.label=n[52].label),o[0]&4&&(l.ariaLabel=n[52].ariaLabel),o[0]&4&&(l.onClick=n[52].onClick),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Sh(i){let e,t,n=i[1]&&Od(i);return{c(){n&&n.c(),e=tt()},m(o,l){n&&n.m(o,l),v(o,e,l),t=!0},p(o,l){o[1]?n?(n.p(o,l),l[0]&2&&d(n,1)):(n=Od(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),m(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function Ih(i,e,t){let n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,{visible:I=!1}=e,{supportLink:k}=e,{position:P={top:0,left:0}}=e,{playerContainerRef:K=void 0}=e,{controlsContainerRef:z=void 0}=e,{menuElementRef:H=void 0}=e,{returnFocus:se}=e,me=0,R=0,te=ot(),le=Nt(),ne=te.ui.contextMenu.visible$,_e=te.ui.debugPanelVisible;O(i,_e,Ce=>t(28,g=Ce));let Y=te.ui.additionalContextMenuItems$;O(i,Y,Ce=>t(27,_=Ce));let $=te.webApi.pictureInPictureApi,E=te.webApi.pictureInPictureApi?.info.isActive$;O(i,E,Ce=>t(30,C=Ce));let X=te.actions.internal.togglePictureInPicture,oe=te.state.chromecastState$;O(i,oe,Ce=>t(31,w=Ce));let fe=te.state.isLive$;O(i,fe,Ce=>t(32,F=Ce));let Re=te.state.positionExact$;O(i,Re,Ce=>t(35,h=Ce));let Ze=te.state.isInteractive,ce=te.state.looped$;O(i,ce,Ce=>t(29,y=Ce));let Be=()=>{ne.set(!1),se?.()},De=(Ce,Pe)=>{if(!H||!K||!z)return;let ze=H.getBoundingClientRect(),pe=K.getBoundingClientRect();t(3,me=Ce-pe.left),t(4,R=Pe-pe.top),me+ze.width>pe.width&&t(3,me=pe.width-ze.width),R+ze.height>pe.height&&t(4,R=pe.height-ze.height),t(3,me=Math.max(me,0)),t(4,R=Math.max(R,0))},je=()=>{te.actions.internal.videoRotate()},x=()=>{(0,Go.isValidURL)(k)&&window.open(k,"_blank"),te.actions.internal.reportProblem(),te.actions.internal.pause()},de=()=>{let Ce=te.actions.internal.getDebugTextData();if(le.features.saveDebugInfoToFile){let Pe=new Blob([...Ce],{type:"plain/text"}),ze=window.URL.createObjectURL(Pe);qo(ze,"vk_player_debug_info","txt")}else vr(te.actions.internal.getDebugTextData())},Ge=()=>{let Ce=te.actions.internal.getTraceTextData(),Pe=new Blob([...Ce],{type:"application/json"}),ze=window.URL.createObjectURL(Pe);qo(ze,"vk_player_trace_info","json")},ve=()=>{_e.set(!0)},He=async()=>{try{X()}finally{se?.()}},$e=()=>{te.actions.internal.setLooped(!y)},st=()=>{if(l){let Ce=te.callbacks?.onCopyEmbedCodeClicked?.();Ce&&vr(Ce)}},Xe=(Ce=!1)=>{if(te.callbacks?.onCopyVideoLink){let Pe=te.callbacks?.onCopyVideoLink(Ce,h);Pe&&vr(Pe)}},Ye=Ce=>{Nl(Ce,Be)},Ke=[];function Z(Ce){Cn.call(this,i,Ce)}function Ue(Ce){be[Ce?"unshift":"push"](()=>{H=Ce,t(0,H)})}return i.$$set=Ce=>{"visible"in Ce&&t(1,I=Ce.visible),"supportLink"in Ce&&t(14,k=Ce.supportLink),"position"in Ce&&t(15,P=Ce.position),"playerContainerRef"in Ce&&t(16,K=Ce.playerContainerRef),"controlsContainerRef"in Ce&&t(17,z=Ce.controlsContainerRef),"menuElementRef"in Ce&&t(0,H=Ce.menuElementRef),"returnFocus"in Ce&&t(18,se=Ce.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&67108864|i.$$.dirty[1]&2&&t(25,o=n&&!F&&!Ze),i.$$.dirty[1]&1&&t(23,r=$&&w!==qd.ChromecastState.CONNECTED&&!Ze),i.$$.dirty[0]&1073741824&&t(21,s=le.showSupport&&!C),i.$$.dirty[0]&229377&&H&&K&&z){let{top:Ce,left:Pe,bottom:ze,right:pe}=P,J=Pe??0,ft=Ce??0,mt=H.getBoundingClientRect();(0,Go.isNullable)(Pe)&&!(0,Go.isNullable)(pe)&&(J=pe-mt.width),(0,Go.isNullable)(Ce)&&!(0,Go.isNullable)(ze)&&(ft=ze-mt.height),J=Math.max(J,0),ft=Math.max(ft,0),De(J,ft)}i.$$.dirty[0]&1073217540&&(t(2,Ke=[]),n&&Ke.push({id:"copy-link",weight:Kn["copy-link"],label:U("menu_copy_video_link"),onClick:()=>Xe()}),o&&Ke.push({id:"copy-link-timestamp",weight:Kn["copy-link-timestamp"],label:U("menu_copy_video_link_with_timestamp"),onClick:()=>Xe(!0)}),l&&Ke.push({id:"copy-embed-code",weight:Kn["copy-embed-code"],label:U("menu_copy_embed_code"),onClick:st}),r&&Ke.push({id:"pip",weight:Kn.pip,label:U("menu_pip"),onClick:He}),Ke.push({id:"video-loop",weight:Kn["video-loop"],label:y?U("menu_video_loop_off"):U("menu_video_loop_on"),ariaLabel:U("aria_label_menu_loop"),onClick:$e}),a&&Ke.push({id:"rotate",weight:Kn.rotate,label:U("menu_video_rotate"),ariaLabel:U("aria_label_menu_rotate"),onClick:je}),s&&Ke.push({id:"report",weight:Kn.report,label:U("menu_report"),ariaLabel:`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`,onClick:x}),Ke.push({id:"save-debug",weight:Kn["save-debug"],label:f,onClick:de}),u&&Ke.push({id:"save-trace",weight:Kn["save-trace"],label:U("menu_save_debug"),onClick:Ge}),Ke.push({id:"debug-info",weight:Kn["debug-info"],label:U("menu_debug_overlay"),ariaLabel:g?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable"),onClick:ve}),t(2,Ke=[...Ke,..._].sort((Ce,Pe)=>Ce.weight-Pe.weight)))},t(26,n=le.features.copyVideoLink&&te.callbacks?.onCopyVideoLink),t(24,l=!!te.callbacks?.onCopyEmbedCodeClicked),t(22,a=le.features.videoRotate&&!Ze),t(19,u=le.features.saveTraceInfoToFile),t(20,f=le.features.saveDebugInfoToFile?U("menu_save_debug"):U("menu_copy_debug")),[H,I,Ke,me,R,_e,Y,E,oe,fe,Re,ce,Be,Ye,k,P,K,z,se,u,f,s,a,r,l,o,n,_,g,y,C,w,F,Z,Ue]}var Ca=class extends D{constructor(e){super(),N(this,e,Ih,Sh,B,{visible:1,supportLink:14,position:15,playerContainerRef:16,controlsContainerRef:17,menuElementRef:0,returnFocus:18},Ch,[-1,-1])}},Hd=Ca;var Ol=class{constructor(e){this.value=e,this.next=null}};var Cr=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new Ol(e);this.top?(this.top.next=t,this.top=t):(this.top=t,this.bottom=t),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],t=this.bottom;for(;t;)e.push(t.value),t=t.next;return e}};function Th(i){Ie(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function Ph(i){let e,t;return{c(){e=T("div"),t=T("canvas"),c(t,"class","svelte-1ssl9eb"),c(e,"class","container svelte-1ssl9eb")},m(n,o){v(n,e,o),p(e,t),i[3](t)},p:ge,i:ge,o:ge,d(n){n&&b(e),i[3](null)}}}var Sa=16,Ia=120,Ud=60;function Eh(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function Mh(i,e,t){let{values:n=[]}=e,o,l,r=Ia/Ud;St(()=>{t(0,o.width=Ia,o),t(0,o.height=Sa,o),t(2,l=o.getContext("2d"))});function a(s){be[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(l){let u=n[0];for(let _=1;_<n.length;_++)n[_]>u&&(u=n[_]);l.clearRect(0,0,Ia,Sa);let f=Ud-1;for(let _=n.length-1;_>=0;_--){let g=f*r,y=u>0?Sa*(n[_]/u):0;Eh(l,g,0,r,y),s=y+" "+s,f--}}}},[o,n,l,a]}var Ta=class extends D{constructor(e){super(),N(this,e,Mh,Ph,B,{values:1},Th)}},Fl=Ta;var Pa=require("@vkontakte/videoplayer-shared");function Ah(i){Ie(i,"svelte-k5ymwy",".container.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{top:16px;left:16px}button.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{padding:5px}.content.svelte-k5ymwy>div.svelte-k5ymwy>div.svelte-k5ymwy{display:inline-block;text-align:right;width:50px;padding:0 5px}")}function zd(i){let e,t,n,o,l=i[0].id+"",r;return{c(){e=T("div"),t=T("div"),t.textContent="Video id",n=q(),o=T("span"),r=Ne(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),p(e,t),p(e,n),p(e,o),p(o,r)},p(a,s){s&1&&l!==(l=a[0].id+"")&&xe(r,l)},d(a){a&&b(e)}}}function Wd(i){let e,t,n,o,l=i[0].vsid+"",r;return{c(){e=T("div"),t=T("div"),t.textContent="VSID",n=q(),o=T("span"),r=Ne(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),p(e,t),p(e,n),p(e,o),p(o,r)},p(a,s){s&1&&l!==(l=a[0].vsid+"")&&xe(r,l)},d(a){a&&b(e)}}}function Kd(i){let e,t,n,o,l=i[0].provider+"",r;return{c(){e=T("div"),t=T("div"),t.textContent="Provider",n=q(),o=T("span"),r=Ne(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),p(e,t),p(e,n),p(e,o),p(o,r)},p(a,s){s&1&&l!==(l=a[0].provider+"")&&xe(r,l)},d(a){a&&b(e)}}}function jd(i){let e,t,n,o,l,r=(i[0].videoCodec||"")+"",a,s,u=i[0].hdr?"(HDR)":"",f,_,g=(i[0].audioCodec||"")+"",y,h,C=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",w;return{c(){e=T("div"),t=T("div"),t.textContent="Streams",n=q(),o=T("span"),l=Ne("Video: "),a=Ne(r),s=q(),f=Ne(u),_=Ne(`
|
|
24
|
+
)}`)}function kd(i){let e;return{c(){e=I("div"),c(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function wd(i){let e,t;return e=new vd({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&32&&(l.position=n[5]),o&64&&(l.secondsToWatchBeforeSkip=n[6]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Cd(i){let e,t;return e=new hd({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Sd(i){let e,t;return e=new yd({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Gg(i){let e,t,n,o,l,r,a,s=i[0]&&kd(i),u=i[3]&&wd(i),f=i[7]&&Cd(i),_=i[4]&&Sd(i);return{c(){e=I("div"),s&&s.c(),t=H(),n=I("video"),o=H(),u&&u.c(),l=H(),f&&f.c(),r=H(),_&&_.c(),li(n,"width","100%"),li(n,"height","100%"),n.playsInline=!0,c(e,"class","container svelte-354ajf")},m(g,y){v(g,e,y),s&&s.m(e,null),p(e,t),p(e,n),i[19](n),p(e,o),u&&u.m(e,null),p(e,l),f&&f.m(e,null),p(e,r),_&&_.m(e,null),i[20](e),a=!0},p(g,[y]){g[0]?s||(s=kd(g),s.c(),s.m(e,t)):s&&(s.d(1),s=null),g[3]?u?(u.p(g,y),y&8&&d(u,1)):(u=wd(g),u.c(),d(u,1),u.m(e,l)):u&&(ae(),m(u,1,1,()=>{u=null}),ue()),g[7]?f?y&128&&d(f,1):(f=Cd(g),f.c(),d(f,1),f.m(e,r)):f&&(ae(),m(f,1,1,()=>{f=null}),ue()),g[4]?_?y&16&&d(_,1):(_=Sd(g),_.c(),d(_,1),_.m(e,null)):_&&(ae(),m(_,1,1,()=>{_=null}),ue())},i(g){a||(d(u),d(f),d(_),a=!0)},o(g){m(u),m(f),m(_),a=!1},d(g){g&&b(e),s&&s.d(),i[19](null),u&&u.d(),f&&f.d(),_&&_.d(),i[20](null)}}}function xg(i,e,t){let n,o,l,r,a,{adsSlotId:s=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:f=void 0}=e,{duration:_=0}=e,g=nt(),y=g.state.isEnded$;O(i,y,L=>t(7,a=L));let h=g.ui.isMobile;O(i,h,L=>t(0,o=L));let C,w,F=!1,T=g.ads.playbackState;O(i,T,L=>t(18,n=L));let k=g.ads.canSkip,P=g.ads.position;O(i,P,L=>t(5,l=L));let j=g.ads.secondsToWatchBeforeSkip;O(i,j,L=>t(6,r=L));let W,U;St(()=>{let L=g.getAdmanWrapper();if(!s){L.onAdmanLoadingError();return}let ne=new AbortController,oe=()=>{ne.abort()},{width:Z,height:Pe}=Xe(g.ui.playerSize),q=Xe(g.ui.isFullscreen),N=Xe(g.ui.isAutoplay),le={width:Z,height:Pe,isFullscreen:q,isAutoplay:N,adsContainer:C,adsVideoElement:w,slotId:s,params:u,previewParam:f,duration:_};return window.AdmanHTML?(L.initAdman(le),F=!0):L.loadAdman(ne.signal).then(()=>{L.initAdman(le),F=!0}).catch(()=>{L.onAdmanLoadingError()}),()=>{!F&&oe()}});function se(L){ve[L?"unshift":"push"](()=>{w=L,t(2,w)})}function de(L){ve[L?"unshift":"push"](()=>{C=L,t(1,C)})}return i.$$set=L=>{"adsSlotId"in L&&t(14,s=L.adsSlotId),"adsParams"in L&&t(15,u=L.adsParams),"adsPreviewParam"in L&&t(16,f=L.adsPreviewParam),"duration"in L&&t(17,_=L.duration)},i.$$.update=()=>{i.$$.dirty&262144&&t(3,W=k&&n!=="inactive"),i.$$.dirty&262145&&t(4,U=o&&n!=="inactive")},[o,C,w,W,U,l,r,a,g,y,h,T,P,j,s,u,f,_,n,se,de]}var pa=class extends B{constructor(e){super(),D(this,e,xg,Gg,R,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},jg)}},Ll=pa;var Sn=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(l=>l>9?String(l):`0${l}`).join(":")};function Yg(i){let e,t,n,o,l=i[2].default,r=Ee(l,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=ie(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("path"),c(t,"fill","none"),c(t,"stroke","#fff"),c(t,"stroke-width","2"),c(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"),c(n,"fill","#f0f2f5"),c(n,"fill-rule","evenodd"),c(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,f){v(u,e,f),r&&r.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ke(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function Qg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var _a=class extends B{constructor(e){super(),D(this,e,Qg,Yg,R,{})}},Id=_a;function Zg(i){let e,t,n,o,l=i[2].default,r=Ee(l,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=ie(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("rect"),n=V("path"),c(t,"width","42"),c(t,"height","20"),c(t,"fill","#FF3347"),c(t,"rx","5"),c(n,"fill","#F2F3F5"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),ke(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ke(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function Xg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var ga=class extends B{constructor(e){super(),D(this,e,Xg,Zg,R,{})}},Td=ga;function Jg(i){let e,t;return e=new Id({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function $g(i){let e,t;return e=new Td({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function eh(i){let e,t,n,o,l=[$g,Jg],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=et()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t||(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function th(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var ha=class extends B{constructor(e){super(),D(this,e,th,eh,R,{isActive:0})}},Vl=ha;function ih(i){Se(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 nh(i){let e=Sn(i[4]-i[3])+"",t;return{c(){t=De(e)},m(n,o){v(n,t,o)},p(n,o){o&24&&e!==(e=Sn(n[4]-n[3])+"")&&xe(t,e)},i:be,o:be,d(n){n&&b(t)}}}function oh(i){let e,t,n;return t=new Vl({props:{isActive:!0}}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","thumb-timer-live-icon svelte-i7xnqb")},m(o,l){v(o,e,l),E(t,e,null),n=!0},p:be,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function rh(i){let e,t,n,o,l,r,a,s=[oh,nh],u=[];function f(_,g){return _[1]?0:1}return l=f(i,-1),r=u[l]=s[l](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=H(),o=I("span"),r.c(),c(t,"class","thumb-timer-equalizer svelte-i7xnqb"),c(o,"class","thumb-timer-text svelte-i7xnqb"),c(e,"role","timer"),c(e,"class","thumb-timer svelte-i7xnqb"),c(e,"data-testid","thumb-timer"),K(e,"live",i[1]),K(e,"hidden",i[0]),K(e,"playing",i[2])},m(_,g){v(_,e,g),p(e,t),p(e,n),p(e,o),u[l].m(o,null),a=!0},p(_,[g]){let y=l;l=f(_,g),l===y?u[l].p(_,g):(ae(),m(u[y],1,1,()=>{u[y]=null}),ue(),r=u[l],r?r.p(_,g):(r=u[l]=s[l](_),r.c()),d(r,1),r.m(o,null)),(!a||g&2)&&K(e,"live",_[1]),(!a||g&1)&&K(e,"hidden",_[0]),(!a||g&4)&&K(e,"playing",_[2])},i(_){a||(d(r),a=!0)},o(_){m(r),a=!1},d(_){_&&b(e),u[l].d()}}}function lh(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:l=!1}=e,{position:r}=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,l=s.isPlaying),"position"in s&&t(3,r=s.position),"duration"in s&&t(4,a=s.duration)},[n,o,l,r,a]}var ba=class extends B{constructor(e){super(),D(this,e,lh,rh,R,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},ih)}},Rl=ba;var Cr=i=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=i,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};var Hd=require("@vkontakte/videoplayer-core");var va=require("@vkontakte/videoplayer-shared"),Xn=i=>{i.stopPropagation(),i.preventDefault()},ah=i=>{let e=i.previousElementSibling;e||(e=i.parentNode?.lastElementChild),e?.focus()},uh=i=>{let e=i.nextElementSibling;e||(e=i.parentNode?.firstElementChild),e?.focus()},ch=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},fh=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},Pd=i=>i.code==="Escape",dh=i=>i.code==="ArrowLeft",ya=(i,e=[])=>{let t=i.code;return["Enter","Space",...e].includes(t)},Ed=i=>{if(ch(i)){Xn(i),uh(i.target);return}fh(i)&&(Xn(i),ah(i.target))},Sr=i=>!va.clientChecker.isAndroid&&i?.detail===0||va.clientChecker.isAndroid&&i?.pointerType==="",Ir=async(i,e,t)=>{await Un(),i&&!i.classList.contains("opened")&&!e&&Xe(t)&&(await Un(),t.set(!1),i.focus())},Md=async(i,e,t)=>{await Un(),i&&!e&&Xe(t)&&(t.set(!1),i.focus())},Ko=async(i,e,t)=>{await Un(),!!i&&e&&t&&i.children[0]?.focus()},Ad=async i=>{!!i&&setTimeout(()=>{i.focus()},100)},Bl=(i,e)=>{Ed(i),Pd(i)&&(Xn(i),e())},Ld=async(i,e,t)=>{ya(i,["ArrowRight"])&&(Xn(i),e(),await Un(),t()?.focus())},Vd=async(i,e,{itemIdReturnCase:t,id:n},o)=>{if(Ed(i),dh(i)){Xn(i),e(),t.set(n);return}Pd(i)&&(Xn(i),o())},Tr=(i,e)=>{ya(i)&&(Xn(i),e())},Rd=(i,e,t)=>{if(ya(i))Xn(i),t(!e);else{let n=i.code;if(n==="ArrowLeft"&&e){t(!1),Xn(i);return}n==="ArrowRight"&&!e&&(t(!0),Xn(i))}},Bd=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},Dd=i=>{if(!i)return{top:0,left:0};let e=i.getBoundingClientRect(),t=-58,n=8,o=e.left+n;return{bottom:e.bottom+t,left:o}};var jo=require("@vkontakte/videoplayer-shared");var tl=(n=>(n.OPEN_SUB_MENU="OPEN_SUB_MENU",n.CLICK="CLICK",n.SWITCH="SWITCH",n))(tl||{});var zn={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var ka=require("@vkontakte/videoplayer-shared");function ph(i){Se(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 _h(i){let e,t,n,o,l;return{c(){e=I("li"),t=De(i[1]),c(e,"class","item svelte-1hm4mm9"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",n=i[2]??i[1]),c(e,"data-testid",i[0])},m(r,a){v(r,e,a),p(e,t),o||(l=[Te(e,"click",_t(i[3])),Te(e,"keydown",i[4])],o=!0)},p(r,[a]){a&2&&xe(t,r[1]),a&6&&n!==(n=r[2]??r[1])&&c(e,"aria-label",n),a&1&&c(e,"data-testid",r[0])},i:be,o:be,d(r){r&&b(e),o=!1,ct(l)}}}function gh(i,e,t){let{id:n}=e,{onClick:o=ka.noop}=e,{closeContextMenu:l=ka.noop}=e,{label:r}=e,{ariaLabel:a}=e,s=()=>{o(),l()},u=f=>{Tr(f,()=>s())};return i.$$set=f=>{"id"in f&&t(0,n=f.id),"onClick"in f&&t(5,o=f.onClick),"closeContextMenu"in f&&t(6,l=f.closeContextMenu),"label"in f&&t(1,r=f.label),"ariaLabel"in f&&t(2,a=f.ariaLabel)},[n,r,a,s,u,o,l]}var wa=class extends B{constructor(e){super(),D(this,e,gh,_h,R,{id:0,onClick:5,closeContextMenu:6,label:1,ariaLabel:2},ph)}},Nd=wa;function hh(i){Se(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 Od(i,e,t){let n=i.slice();return n[52]=e[t],n}function Fd(i){let e,t,n,o,l=ht(i[2]),r=[];for(let s=0;s<l.length;s+=1)r[s]=qd(Od(i,l,s));let a=s=>m(r[s],1,1,()=>{r[s]=null});return{c(){e=I("ul");for(let s=0;s<r.length;s+=1)r[s].c();c(e,"role","menu"),li(e,"top",i[4]+"px"),li(e,"left",i[3]+"px"),c(e,"class","svelte-1p5ukkp")},m(s,u){v(s,e,u);for(let f=0;f<r.length;f+=1)r[f]&&r[f].m(e,null);i[34](e),t=!0,n||(o=[Te(e,"contextmenu",$t(i[33])),Te(e,"keydown",i[13])],n=!0)},p(s,u){if(u[0]&4100){l=ht(s[2]);let f;for(f=0;f<l.length;f+=1){let _=Od(s,l,f);r[f]?(r[f].p(_,u),d(r[f],1)):(r[f]=qd(_),r[f].c(),d(r[f],1),r[f].m(e,null))}for(ae(),f=l.length;f<r.length;f+=1)a(f);ue()}(!t||u[0]&16)&&li(e,"top",s[4]+"px"),(!t||u[0]&8)&&li(e,"left",s[3]+"px")},i(s){if(!t){for(let u=0;u<l.length;u+=1)d(r[u]);t=!0}},o(s){r=r.filter(Boolean);for(let u=0;u<r.length;u+=1)m(r[u]);t=!1},d(s){s&&b(e),ni(r,s),i[34](null),n=!1,ct(o)}}}function qd(i){let e,t;return e=new Nd({props:{id:i[52].id,label:i[52].label,ariaLabel:i[52].ariaLabel,onClick:i[52].onClick,closeContextMenu:i[12]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.id=n[52].id),o[0]&4&&(l.label=n[52].label),o[0]&4&&(l.ariaLabel=n[52].ariaLabel),o[0]&4&&(l.onClick=n[52].onClick),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function bh(i){let e,t,n=i[1]&&Fd(i);return{c(){n&&n.c(),e=et()},m(o,l){n&&n.m(o,l),v(o,e,l),t=!0},p(o,l){o[1]?n?(n.p(o,l),l[0]&2&&d(n,1)):(n=Fd(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),m(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function vh(i,e,t){let n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,{visible:T=!1}=e,{supportLink:k}=e,{position:P={top:0,left:0}}=e,{playerContainerRef:j=void 0}=e,{controlsContainerRef:W=void 0}=e,{menuElementRef:U=void 0}=e,{returnFocus:se}=e,de=0,L=0,ne=nt(),oe=qt(),Z=ne.ui.contextMenu.visible$,Pe=ne.ui.debugPanelVisible;O(i,Pe,ge=>t(28,g=ge));let q=ne.ui.additionalContextMenuItems$;O(i,q,ge=>t(27,_=ge));let N=ne.webApi.pictureInPictureApi,le=ne.webApi.pictureInPictureApi?.info.isActive$;O(i,le,ge=>t(30,C=ge));let Y=ne.actions.internal.togglePictureInPicture,re=ne.state.chromecastState$;O(i,re,ge=>t(31,w=ge));let ce=ne.state.isLive$;O(i,ce,ge=>t(32,F=ge));let qe=ne.state.positionExact$;O(i,qe,ge=>t(35,h=ge));let Ve=ne.state.isInteractive,we=ne.state.looped$;O(i,we,ge=>t(29,y=ge));let Re=()=>{Z.set(!1),se?.()},Ue=(ge,Ie)=>{if(!U||!j||!W)return;let We=U.getBoundingClientRect(),me=j.getBoundingClientRect();t(3,de=ge-me.left),t(4,L=Ie-me.top),de+We.width>me.width&&t(3,de=me.width-We.width),L+We.height>me.height&&t(4,L=me.height-We.height),t(3,de=Math.max(de,0)),t(4,L=Math.max(L,0))},Ge=()=>{ne.actions.internal.videoRotate()},x=()=>{(0,jo.isValidURL)(k)&&window.open(k,"_blank"),ne.actions.internal.reportProblem(),ne.actions.internal.pause()},fe=()=>{let ge=ne.actions.internal.getDebugTextData();if(oe.features.saveDebugInfoToFile){let Ie=new Blob([...ge],{type:"plain/text"}),We=window.URL.createObjectURL(Ie);Fo(We,"vk_player_debug_info","txt")}else Cr(ne.actions.internal.getDebugTextData())},Ye=()=>{let ge=ne.actions.internal.getTraceTextData(),Ie=new Blob([...ge],{type:"application/json"}),We=window.URL.createObjectURL(Ie);Fo(We,"vk_player_trace_info","json")},_e=()=>{Pe.set(!0)},ze=async()=>{try{Y()}finally{se?.()}},$e=()=>{ne.actions.internal.setLooped(!y)},rt=()=>{if(l){let ge=ne.callbacks?.onCopyEmbedCodeClicked?.();ge&&Cr(ge)}},Je=(ge=!1)=>{if(ne.callbacks?.onCopyVideoLink){let Ie=ne.callbacks?.onCopyVideoLink(ge,h);Ie&&Cr(Ie)}},Ze=ge=>{Bl(ge,Re)},He=[];function J(ge){Cn.call(this,i,ge)}function je(ge){ve[ge?"unshift":"push"](()=>{U=ge,t(0,U)})}return i.$$set=ge=>{"visible"in ge&&t(1,T=ge.visible),"supportLink"in ge&&t(14,k=ge.supportLink),"position"in ge&&t(15,P=ge.position),"playerContainerRef"in ge&&t(16,j=ge.playerContainerRef),"controlsContainerRef"in ge&&t(17,W=ge.controlsContainerRef),"menuElementRef"in ge&&t(0,U=ge.menuElementRef),"returnFocus"in ge&&t(18,se=ge.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&67108864|i.$$.dirty[1]&2&&t(25,o=n&&!F&&!Ve),i.$$.dirty[1]&1&&t(23,r=N&&w!==Hd.ChromecastState.CONNECTED&&!Ve),i.$$.dirty[0]&1073741824&&t(21,s=oe.showSupport&&!C),i.$$.dirty[0]&229377&&U&&j&&W){let{top:ge,left:Ie,bottom:We,right:me}=P,$=Ie??0,dt=ge??0,mt=U.getBoundingClientRect();(0,jo.isNullable)(Ie)&&!(0,jo.isNullable)(me)&&($=me-mt.width),(0,jo.isNullable)(ge)&&!(0,jo.isNullable)(We)&&(dt=We-mt.height),$=Math.max($,0),dt=Math.max(dt,0),Ue($,dt)}i.$$.dirty[0]&1073217540&&(t(2,He=[]),n&&He.push({id:"copy-link",weight:zn["copy-link"],label:z("menu_copy_video_link"),onClick:()=>Je()}),o&&He.push({id:"copy-link-timestamp",weight:zn["copy-link-timestamp"],label:z("menu_copy_video_link_with_timestamp"),onClick:()=>Je(!0)}),l&&He.push({id:"copy-embed-code",weight:zn["copy-embed-code"],label:z("menu_copy_embed_code"),onClick:rt}),r&&He.push({id:"pip",weight:zn.pip,label:z("menu_pip"),onClick:ze}),He.push({id:"video-loop",weight:zn["video-loop"],label:y?z("menu_video_loop_off"):z("menu_video_loop_on"),ariaLabel:z("aria_label_menu_loop"),onClick:$e}),a&&He.push({id:"rotate",weight:zn.rotate,label:z("menu_video_rotate"),ariaLabel:z("aria_label_menu_rotate"),onClick:Ge}),s&&He.push({id:"report",weight:zn.report,label:z("menu_report"),ariaLabel:`${z("menu_report")}. ${z("aria_label_new_tab_alert")}`,onClick:x}),He.push({id:"save-debug",weight:zn["save-debug"],label:f,onClick:fe}),u&&He.push({id:"save-trace",weight:zn["save-trace"],label:z("menu_save_debug"),onClick:Ye}),He.push({id:"debug-info",weight:zn["debug-info"],label:z("menu_debug_overlay"),ariaLabel:g?z("aria_label_menu_debug_overlay_disable"):z("aria_label_menu_debug_overlay_enable"),onClick:_e}),t(2,He=[...He,..._].sort((ge,Ie)=>ge.weight-Ie.weight)))},t(26,n=oe.features.copyVideoLink&&ne.callbacks?.onCopyVideoLink),t(24,l=!!ne.callbacks?.onCopyEmbedCodeClicked),t(22,a=oe.features.videoRotate&&!Ve),t(19,u=oe.features.saveTraceInfoToFile),t(20,f=oe.features.saveDebugInfoToFile?z("menu_save_debug"):z("menu_copy_debug")),[U,T,He,de,L,Pe,q,le,re,ce,qe,we,Re,Ze,k,P,j,W,se,u,f,s,a,r,l,o,n,_,g,y,C,w,F,J,je]}var Ca=class extends B{constructor(e){super(),D(this,e,vh,bh,R,{visible:1,supportLink:14,position:15,playerContainerRef:16,controlsContainerRef:17,menuElementRef:0,returnFocus:18},hh,[-1,-1])}},Ud=Ca;var Dl=class{constructor(e){this.value=e,this.next=null}};var Pr=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new Dl(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 yh(i){Se(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function kh(i){let e,t;return{c(){e=I("div"),t=I("canvas"),c(t,"class","svelte-1ssl9eb"),c(e,"class","container svelte-1ssl9eb")},m(n,o){v(n,e,o),p(e,t),i[3](t)},p:be,i:be,o:be,d(n){n&&b(e),i[3](null)}}}var Sa=16,Ia=120,zd=60;function wh(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function Ch(i,e,t){let{values:n=[]}=e,o,l,r=Ia/zd;St(()=>{t(0,o.width=Ia,o),t(0,o.height=Sa,o),t(2,l=o.getContext("2d"))});function a(s){ve[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(l){let u=n[0];for(let _=1;_<n.length;_++)n[_]>u&&(u=n[_]);l.clearRect(0,0,Ia,Sa);let f=zd-1;for(let _=n.length-1;_>=0;_--){let g=f*r,y=u>0?Sa*(n[_]/u):0;wh(l,g,0,r,y),s=y+" "+s,f--}}}},[o,n,l,a]}var Ta=class extends B{constructor(e){super(),D(this,e,Ch,kh,R,{values:1},yh)}},Nl=Ta;var Pa=require("@vkontakte/videoplayer-shared");function Sh(i){Se(i,"svelte-k5ymwy",".container.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{top:16px;left:16px}button.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{padding:5px}.content.svelte-k5ymwy>div.svelte-k5ymwy>div.svelte-k5ymwy{display:inline-block;text-align:right;width:50px;padding:0 5px}")}function Wd(i){let e,t,n,o,l=i[0].id+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="Video id",n=H(),o=I("span"),r=De(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),p(e,t),p(e,n),p(e,o),p(o,r)},p(a,s){s&1&&l!==(l=a[0].id+"")&&xe(r,l)},d(a){a&&b(e)}}}function Kd(i){let e,t,n,o,l=i[0].vsid+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="VSID",n=H(),o=I("span"),r=De(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),p(e,t),p(e,n),p(e,o),p(o,r)},p(a,s){s&1&&l!==(l=a[0].vsid+"")&&xe(r,l)},d(a){a&&b(e)}}}function jd(i){let e,t,n,o,l=i[0].provider+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="Provider",n=H(),o=I("span"),r=De(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),p(e,t),p(e,n),p(e,o),p(o,r)},p(a,s){s&1&&l!==(l=a[0].provider+"")&&xe(r,l)},d(a){a&&b(e)}}}function Gd(i){let e,t,n,o,l,r=(i[0].videoCodec||"")+"",a,s,u=i[0].hdr?"(HDR)":"",f,_,g=(i[0].audioCodec||"")+"",y,h,C=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",w;return{c(){e=I("div"),t=I("div"),t.textContent="Streams",n=H(),o=I("span"),l=De("Video: "),a=De(r),s=H(),f=De(u),_=De(`
|
|
25
25
|
&
|
|
26
|
-
Audio: `),y=
|
|
27
|
-
}.timer-canvas.svelte-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.svelte-8jhsry{width:22px;height:26px}`)}function Oh(i){let e,t,n,o,l,r,a;return{c(){e=T("div"),t=T("canvas"),n=q(),o=V("svg"),l=V("g"),r=V("g"),a=V("path"),c(t,"class","timer-canvas svelte-8jhsry"),c(t,"width","100"),c(t,"height","100"),c(a,"class","_play"),c(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"),c(a,"fill","#fff"),c(r,"fill-rule","nonzero"),c(l,"fill","none"),c(l,"fill-rule","evenodd"),c(o,"class","timer-play-icon svelte-8jhsry"),c(o,"viewBox","0 0 24 24"),c(o,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","timer svelte-8jhsry")},m(s,u){v(s,e,u),p(e,t),i[2](t),p(e,n),p(e,o),p(o,l),p(l,r),p(r,a)},p:ge,i:ge,o:ge,d(s){s&&b(e),i[2](null)}}}var Fh=5e3;function qh(i,e,t){let{onTimerEnded:n=n1.noop}=e,o;St(()=>{let r,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let s=Date.now(),u=()=>{let f=(Date.now()-s)/Fh;f<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),a.stroke(),r=requestAnimationFrame(u)):n()};return r=requestAnimationFrame(u),()=>{cancelAnimationFrame(r)}});function l(r){be[r?"unshift":"push"](()=>{o=r,t(0,o)})}return i.$$set=r=>{"onTimerEnded"in r&&t(1,n=r.onTimerEnded)},[o,n,l]}var Aa=class extends D{constructor(e){super(),N(this,e,qh,Oh,B,{onTimerEnded:1},Nh)}},o1=Aa;function Hh(i){Ie(i,"svelte-kisfwc",".overlay.svelte-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.svelte-kisfwc{display:flex;justify-content:space-between}.caption.svelte-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.svelte-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-kisfwc{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.svelte-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.svelte-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function r1(i){let e,t;return e=new o1({props:{onTimerEnded:i[2]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.onTimerEnded=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Uh(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,I,k,P,K;a=new i1({}),a.$on("click",i[4]);let z=i[3]&&r1(i);return{c(){e=T("div"),t=q(),n=T("div"),o=T("div"),l=T("div"),l.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",r=q(),L(a.$$.fragment),s=q(),u=T("div"),f=T("div"),_=T("div"),g=T("div"),y=q(),z&&z.c(),C=q(),w=T("div"),F=T("div"),I=Ne(i[0]),c(e,"class","overlay svelte-kisfwc"),c(l,"class","caption svelte-kisfwc"),c(o,"class","top svelte-kisfwc"),c(g,"class","thumb-overlay svelte-kisfwc"),c(_,"class","thumb svelte-kisfwc"),c(_,"style",h=`background-image: url('${i[1]}')`),c(f,"class","column svelte-kisfwc"),c(F,"class","title svelte-kisfwc"),c(w,"class","column svelte-kisfwc"),c(u,"class","row svelte-kisfwc"),c(n,"class","next-video svelte-kisfwc")},m(H,se){v(H,e,se),v(H,t,se),v(H,n,se),p(n,o),p(o,l),p(o,r),M(a,o,null),p(n,s),p(n,u),p(u,f),p(f,_),p(_,g),p(_,y),z&&z.m(_,null),p(u,C),p(u,w),p(w,F),p(F,I),k=!0,P||(K=Te(u,"click",function(){zt(i[2])&&i[2].apply(this,arguments)}),P=!0)},p(H,[se]){i=H,i[3]?z?(z.p(i,se),se&8&&d(z,1)):(z=r1(i),z.c(),d(z,1),z.m(_,null)):z&&(ae(),m(z,1,1,()=>{z=null}),ue()),(!k||se&2&&h!==(h=`background-image: url('${i[1]}')`))&&c(_,"style",h),(!k||se&1)&&xe(I,i[0])},i(H){k||(d(a.$$.fragment,H),d(z),k=!0)},o(H){m(a.$$.fragment,H),m(z),k=!1},d(H){H&&(b(e),b(t),b(n)),A(a),z&&z.d(),P=!1,K()}}}function zh(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:l}=e,r=!0,a=()=>t(3,r=!1);return i.$$set=s=>{"title"in s&&t(0,n=s.title),"thumb"in s&&t(1,o=s.thumb),"playNextVideo"in s&&t(2,l=s.playNextVideo)},[n,o,l,r,a]}var La=class extends D{constructor(e){super(),N(this,e,zh,Uh,B,{title:0,thumb:1,playNextVideo:2},Hh)}},l1=La;var wo=require("@vkontakte/videoplayer-core"),s1=require("@vkontakte/videoplayer-shared"),Ji=require("@vkontakte/videoplayer-statistics");var Va=(i,e)=>Math.min(+(i+e).toFixed(2),1),Ra=(i,e)=>Math.max(+(i-e).toFixed(2),0),Hl=(i,e,t)=>{let n=Va(e,t);e<1&&i.actions.internal.setVolume(n)},Ul=(i,e,t)=>{let n=Ra(e,t);e>0&&i.actions.internal.setVolume(n)};var ko=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e?.(),!1):t?!0:(n?.(),!1);function Kh(i){Ie(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function jh(i){let e,t,n,o,l,r=i[26].default,a=Ee(r,i,i[25],null);return{c(){e=T("div"),a&&a.c(),c(e,"class","keyboard-controls svelte-10kkmxz"),c(e,"tabindex","-1"),c(e,"role","region"),c(e,"aria-label",t=U("aria_label_video_player"))},m(s,u){v(s,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(l=[Te(e,"keyup",i[17]),Te(e,"keydown",i[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Ae(a,r,s,s[25],n?Me(r,s[25],u,null):Le(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){m(a,s),n=!1},d(s){s&&b(e),a&&a.d(s),i[27](null),o=!1,ut(l)}}}function Gh(i,e,t){let n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,{$$slots:I={},$$scope:k}=e,{isAds:P}=e,{hideContextMenu:K}=e,{toggleFullscreen:z}=e,{showHotKeyHelpers:H}=e,{showKeyMap:se}=e,{fakePlayButtonHandler:me}=e,R=ot(),te=Nt(),le=R.getLogger().createComponentLog("KeyboardControls component"),ne=R.state.playbackState$;O(i,ne,J=>t(31,o=J));let _e=R.ads.playbackState;O(i,_e,J=>t(30,n=J));let Y=R.state.positionExact$;O(i,Y,J=>t(41,h=J));let $=R.state.duration$;O(i,$,J=>t(40,y=J));let E=R.state.volume$;O(i,E,J=>t(44,F=J));let X=R.ui.controls.disabledControls$;O(i,X,J=>t(39,g=J));let oe=R.state.muted$;O(i,oe,J=>t(34,a=J));let fe=R.state.currentSubtitle$;O(i,fe,J=>t(33,r=J));let Re=R.state.currentPlaybackRate$;O(i,Re,J=>t(42,C=J));let Ze=R.state.availablePlaybackRates$;O(i,Ze,J=>t(43,w=J));let ce=R.ui.contextMenu.openedByHotKey$,Be=R.ui.contextMenu.lastActiveElem$,De=R.ui.contextMenu.visible$,je=R.ui.contextMenu.position$,x=R.state.isEnded$;O(i,x,J=>t(36,u=J));let de=R.ui.overlayContainer$;O(i,de,J=>t(32,l=J));let Ge=R.callbacks?.onAudioDoesNotExistHint,ve=R.callbacks?.onAudioDisabledHint,He=R.state.isAudioAvailable$;O(i,He,J=>t(35,s=J));let $e=R.state.isAudioDisabled,st=R.state.isInteractiveTime$;O(i,st,J=>t(38,_=J));let{showInteractiveTimeIndicatorTooltip$:Xe}=Bn();O(i,Xe,J=>t(37,f=J));let Ye=0,Ke=!0,Z,Ue=()=>Z?.focus(),Ce=J=>(J!==Ke&&(Ke=J,Ye=0),Ye+=1,(te.controls.seekStepKeyboard+te.controls.seekStepKeyboard*Ye)/1e3),Pe=J=>{let ft=J.target,mt=ft?.getAttribute("role")?.includes("menuitem"),et=ft.classList.contains("btn"),lt=J.code;if(et&<==="Space")return;let Ot=Df.has(lt);if(mt&&Ot)return;let Ct=!Bf.has(lt);if(J.ctrlKey&&Ct||J.altKey&&Ct||J.metaKey)return;let it=mt&<==="Escape";Nf.has(lt)||it||K();let Ft=o===wo.PlaybackState.PLAYING||o===wo.PlaybackState.PAUSED,At=P&&(n==="paused"||n==="playing"),Qt=!At&&!g.has("TIMELINE");if(Ft||At)switch(le({message:`key down, code: ${lt}`}),lt){case"KeyJ":case"ArrowLeft":{if(!Qt)break;if(J.ctrlKey||J.altKey){let ct=R.actions.internal.getPrevEpisode();R.actions.internal.seekToPrevEpisode(ct),ct&&H({type:"EPISODE_PREV",text:ct.text}),J.preventDefault()}else{let ct=J.shiftKey?Ce(!1):te.controls.seekStepKeyboard/1e3,bt=Math.max(h-ct,0);h>0&&(R.actions.internal.seekTime(bt,Ji.SeekAction.DOUBLE_TAP),H({type:"BACKWARD_SEEK",text:ct.toString()}),J.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Qt)break;if(J.ctrlKey||J.altKey){let ct=R.actions.internal.getNextEpisode();R.actions.internal.seekToNextEpisode(ct),ct&&H({type:"EPISODE_NEXT",text:ct.text}),J.preventDefault()}else{let ct=J.shiftKey?Ce(!0):te.controls.seekStepKeyboard/1e3,bt=Math.min(h+ct,y);Math.round(h)<Math.round(y)&&(R.actions.internal.seekTime(bt,Ji.SeekAction.DOUBLE_TAP),H({type:"FORWARD_SEEK",text:ct.toString()}),J.preventDefault())}break}case"ArrowUp":{if(ko({isAudioDisabled:$e,audioDisabledHintCallback:ve,isAudioAvailable:s,audioIsNotExistHintCallback:Ge})){let ct=F,bt=te.controls.volumeStepKeyboard,Zt=ct<=1;if(Hl(R,ct,bt),Zt){let Kt=Math.round(Va(ct,bt)*100).toString();H({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Kt}})}}J.preventDefault();break}case"ArrowDown":{if(ko({isAudioDisabled:$e,audioDisabledHintCallback:ve,isAudioAvailable:s,audioIsNotExistHintCallback:Ge})){let ct=F,bt=te.controls.volumeStepKeyboard,Zt=ct>=0;if(Ul(R,ct,bt),Zt){let Kt=Math.round(Ra(ct,bt)*100).toString();H({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Kt}})}}J.preventDefault();break}case"Comma":{if(J.shiftKey){R.actions.internal.decrementPlaybackRate();let ct=w.find(bt=>bt.value===C);H({type:"RATE_DOWN",text:ct?.displayValue}),J.preventDefault()}else{if(At||o!==wo.PlaybackState.PAUSED)break;let ct=Math.max(h-te.controls.seekStepFrame/1e3,0);h>0&&(H({type:"BACKWARD_SEEK"}),R.actions.internal.clearDelayedBufferingCheckTimeout(),R.actions.internal.seekTime(ct,Ji.SeekAction.DOUBLE_TAP),J.preventDefault())}break}case"Period":{if(J.shiftKey){R.actions.internal.incrementPlaybackRate();let ct=w.find(bt=>bt.value===C);H({type:"RATE_UP",text:ct?.displayValue}),J.preventDefault()}else{if(At||o!==wo.PlaybackState.PAUSED)break;let ct=Math.min(h+te.controls.seekStepFrame/1e3,y);h<y&&(H({type:"FORWARD_SEEK"}),R.actions.internal.clearDelayedBufferingCheckTimeout(),R.actions.internal.seekTime(ct,Ji.SeekAction.DOUBLE_TAP),J.preventDefault())}break}case"KeyK":case"Space":if(!g.has("PLAY_BUTTON"))if(_&&f&&Xe.set(!1),me)me();else{R.actions.internal.togglePlay();let ct="PLAY";o===wo.PlaybackState.PAUSED?ct="PAUSE":u&&(ct="REPLAY"),H({type:ct})}J.preventDefault();break;case"KeyM":{ko({isAudioDisabled:$e,audioDisabledHintCallback:ve,isAudioAvailable:s,audioIsNotExistHintCallback:Ge})&&(H({type:a?"VOLUME":"MUTE"}),R.actions.internal.toggleMuted()),J.preventDefault();break}case"KeyF":z(),J.preventDefault();break;case"KeyC":R.actions.internal.toggleSubtitle(),r.value!=="off"?H({type:"SUBTITLES_ON",text:r?.displayValue}):H({type:"SUBTITLES_OFF"}),J.preventDefault();break;case"KeyI":R.actions.internal.togglePictureInPicture(),J.preventDefault();break;case"Digit1":case"Numpad1":if(J.shiftKey){let ct=Bd(l);je.set(ct),Be.set(ft),ce.set(!0),De.set(!0),J.preventDefault();break}H(),R.actions.internal.seekToPercent(.1,Ji.SeekAction.DOUBLE_TAP),J.preventDefault();break;case"Digit2":case"Numpad2":H(),R.actions.internal.seekToPercent(.2,Ji.SeekAction.DOUBLE_TAP),J.preventDefault();break;case"Digit3":case"Numpad3":H(),R.actions.internal.seekToPercent(.3,Ji.SeekAction.DOUBLE_TAP),J.preventDefault();break;case"Digit4":case"Numpad4":H(),R.actions.internal.seekToPercent(.4,Ji.SeekAction.DOUBLE_TAP),J.preventDefault();break;case"Digit5":case"Numpad5":H(),R.actions.internal.seekToPercent(.5,Ji.SeekAction.DOUBLE_TAP),J.preventDefault();break;case"Digit6":case"Numpad6":H(),R.actions.internal.seekToPercent(.6,Ji.SeekAction.DOUBLE_TAP),J.preventDefault();break;case"Digit7":case"Numpad7":H(),R.actions.internal.seekToPercent(.7,Ji.SeekAction.DOUBLE_TAP),J.preventDefault();break;case"Digit8":case"Numpad8":H(),R.actions.internal.seekToPercent(.8,Ji.SeekAction.DOUBLE_TAP),J.preventDefault();break;case"Digit9":case"Numpad9":H(),R.actions.internal.seekToPercent(.9,Ji.SeekAction.DOUBLE_TAP),J.preventDefault();break;case"Digit0":case"Numpad0":H(),R.actions.internal.seekToPercent(0,Ji.SeekAction.DOUBLE_TAP),J.preventDefault();break;case"Slash":{J.shiftKey&&te.features.hotKeyMapModal&&(se(),J.preventDefault());break}case"ShiftLeft":case"ShiftRight":J.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,s1.checkNever)(lt);break}},ze=J=>{let ft=J.code;if(J.ctrlKey||J.altKey||J.metaKey)return;let mt=o===wo.PlaybackState.PLAYING||o===wo.PlaybackState.PAUSED,et=P&&(n==="paused"||n==="playing");if(mt||et)switch(ft){case"ShiftLeft":case"ShiftRight":Ye=0;break}};function pe(J){be[J?"unshift":"push"](()=>{Z=J,t(0,Z)})}return i.$$set=J=>{"isAds"in J&&t(18,P=J.isAds),"hideContextMenu"in J&&t(19,K=J.hideContextMenu),"toggleFullscreen"in J&&t(20,z=J.toggleFullscreen),"showHotKeyHelpers"in J&&t(21,H=J.showHotKeyHelpers),"showKeyMap"in J&&t(22,se=J.showKeyMap),"fakePlayButtonHandler"in J&&t(23,me=J.fakePlayButtonHandler),"$$scope"in J&&t(25,k=J.$$scope)},[Z,ne,_e,Y,$,E,X,oe,fe,Re,Ze,x,de,He,st,Xe,Pe,ze,P,K,z,H,se,me,Ue,k,I,pe]}var Ba=class extends D{constructor(e){super(),N(this,e,Gh,jh,B,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},Kh,[-1,-1])}get focus(){return this.$$.ctx[24]}},a1=Ba;function xh(i){Ie(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 Yh(i){let e,t,n,o,l,r;return{c(){e=T("div"),t=T("div"),n=q(),o=T("div"),l=q(),r=T("div"),c(t,"class","dot svelte-8nkw5s"),c(o,"class","dot svelte-8nkw5s"),c(r,"class","dot svelte-8nkw5s"),c(e,"class","container svelte-8nkw5s"),c(e,"style",i[0])},m(a,s){v(a,e,s),p(e,t),p(e,n),p(e,o),p(e,l),p(e,r)},p(a,[s]){s&1&&c(e,"style",a[0])},i:ge,o:ge,d(a){a&&b(e)}}}function Qh(i,e,t){let{style:n=""}=e;return i.$$set=o=>{"style"in o&&t(0,n=o.style)},[n]}var Da=class extends D{constructor(e){super(),N(this,e,Qh,Yh,B,{style:0},xh)}},Sr=Da;function Zh(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C=i[2].default,w=Ee(C,i,i[1],null),F=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],I={};for(let k=0;k<F.length;k+=1)I=re(I,F[k]);return{c(){e=V("svg"),w&&w.c(),t=V("g"),n=V("path"),o=V("path"),l=V("defs"),r=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),f=V("feGaussianBlur"),_=V("feColorMatrix"),g=V("feBlend"),y=V("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(_,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2422_111980"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2422_111980"),c(y,"result","shape"),c(r,"id","a"),c(r,"width","23"),c(r,"height","23"),c(r,"x",".5"),c(r,"y",".5"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ke(e,I)},m(k,P){v(k,e,P),w&&w.m(e,null),p(e,t),p(t,n),p(t,o),p(e,l),p(l,r),p(r,a),p(r,s),p(r,u),p(r,f),p(r,_),p(r,g),p(r,y),h=!0},p(k,[P]){w&&w.p&&(!h||P&2)&&Ae(w,C,k,k[1],h?Me(C,k[1],P,null):Le(k[1]),null),ke(e,I=Ve(F,[{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){h||(d(w,k),h=!0)},o(k){m(w,k),h=!1},d(k){k&&b(e),w&&w.d(k)}}}function Xh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Na=class extends D{constructor(e){super(),N(this,e,Xh,Zh,B,{})}},u1=Na;var $n=require("@vkontakte/videoplayer-shared");function Jh(i){Ie(i,"svelte-1anemql",".btn.svelte-1anemql{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center}.w-max.svelte-1anemql{width:100%}.btn--live.svelte-1anemql{padding:10px 4px}.btn-m.svelte-1anemql{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-1anemql{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn.svelte-1anemql:disabled{cursor:default;pointer-events:none}.btn.svelte-1anemql:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-1anemql:not(:disabled):hover{opacity:0.8}.pr-0.svelte-1anemql{padding-right:0}.pl-0.svelte-1anemql{padding-left:0}")}function $h(i){let e,t,n,o,l,r,a,s,u,f,_,g,y=i[14].default,h=Ee(y,i,i[13],null);return{c(){e=T("button"),h&&h.c(),c(e,"class",t="btn "+i[1]+" svelte-1anemql"),c(e,"style",n=i[2]||null),e.disabled=o=i[3]??null,c(e,"aria-hidden",l=i[5]??null),c(e,"aria-label",r=i[6]??null),c(e,"aria-keyshortcuts",a=i[7]??null),c(e,"aria-expanded",s=i[8]??null),c(e,"data-testid",u=i[4]??null),c(e,"tabindex",i[9])},m(C,w){v(C,e,w),h&&h.m(e,null),i[16](e),f=!0,_||(g=[Te(e,"pointerdown",_t(i[15])),Te(e,"click",_t(function(){zt(i[10]===$n.noop?null:i[10])&&(i[10]===$n.noop?null:i[10]).apply(this,arguments)})),Te(e,"focus",ei(function(){zt(i[11]===$n.noop?null:i[11])&&(i[11]===$n.noop?null:i[11]).apply(this,arguments)})),Te(e,"blur",ei(function(){zt(i[12]===$n.noop?null:i[12])&&(i[12]===$n.noop?null:i[12]).apply(this,arguments)}))],_=!0)},p(C,[w]){i=C,h&&h.p&&(!f||w&8192)&&Ae(h,y,i,i[13],f?Me(y,i[13],w,null):Le(i[13]),null),(!f||w&2&&t!==(t="btn "+i[1]+" svelte-1anemql"))&&c(e,"class",t),(!f||w&4&&n!==(n=i[2]||null))&&c(e,"style",n),(!f||w&8&&o!==(o=i[3]??null))&&(e.disabled=o),(!f||w&32&&l!==(l=i[5]??null))&&c(e,"aria-hidden",l),(!f||w&64&&r!==(r=i[6]??null))&&c(e,"aria-label",r),(!f||w&128&&a!==(a=i[7]??null))&&c(e,"aria-keyshortcuts",a),(!f||w&256&&s!==(s=i[8]??null))&&c(e,"aria-expanded",s),(!f||w&16&&u!==(u=i[4]??null))&&c(e,"data-testid",u),(!f||w&512)&&c(e,"tabindex",i[9])},i(C){f||(d(h,C),f=!0)},o(C){m(h,C),f=!1},d(C){C&&b(e),h&&h.d(C),i[16](null),_=!1,ut(g)}}}function e2(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:l=""}=e,{style:r=""}=e,{disabled:a=void 0}=e,{testId:s=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:f=void 0}=e,{ref:_=void 0}=e,{ariaKeyShortCut:g=void 0}=e,{ariaExpanded:y=void 0}=e,{tabIndex:h=0}=e,{click:C=$n.noop}=e,{focus:w=$n.noop}=e,{blur:F=$n.noop}=e;function I(P){Cn.call(this,i,P)}function k(P){be[P?"unshift":"push"](()=>{_=P,t(0,_)})}return i.$$set=P=>{"className"in P&&t(1,l=P.className),"style"in P&&t(2,r=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,f=P.ariaLabel),"ref"in P&&t(0,_=P.ref),"ariaKeyShortCut"in P&&t(7,g=P.ariaKeyShortCut),"ariaExpanded"in P&&t(8,y=P.ariaExpanded),"tabIndex"in P&&t(9,h=P.tabIndex),"click"in P&&t(10,C=P.click),"focus"in P&&t(11,w=P.focus),"blur"in P&&t(12,F=P.blur),"$$scope"in P&&t(13,o=P.$$scope)},[_,l,r,a,s,u,f,g,y,h,C,w,F,o,n,I,k]}var Oa=class extends D{constructor(e){super(),N(this,e,e2,$h,B,{className:1,style:2,disabled:3,testId:4,ariaHidden:5,ariaLabel:6,ref:0,ariaKeyShortCut:7,ariaExpanded:8,tabIndex:9,click:10,focus:11,blur:12},Jh)}},gt=Oa;function t2(i){Ie(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 c1(i){let e,t,n,o,l,r=i[2]&&f1(i);return{c(){e=T("div"),t=T("h3"),n=Ne(i[3]),o=q(),r&&r.c(),c(t,"class","modal-title svelte-1witlsj"),c(e,"class","modal-header svelte-1witlsj")},m(a,s){v(a,e,s),p(e,t),p(t,n),p(e,o),r&&r.m(e,null),l=!0},p(a,s){(!l||s&8)&&xe(n,a[3]),a[2]?r?(r.p(a,s),s&4&&d(r,1)):(r=f1(a),r.c(),d(r,1),r.m(e,null)):r&&(ae(),m(r,1,1,()=>{r=null}),ue())},i(a){l||(d(r),l=!0)},o(a){m(r),l=!1},d(a){a&&b(e),r&&r.d()}}}function f1(i){let e,t;return e=new gt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:U("hotkey_map_modal_close_btn_text"),$$slots:{default:[i2]},$$scope:{ctx:i}}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&1&&(l.click=n[0]),o&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function i2(i){let e,t;return e=new u1({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function n2(i){let e,t,n,o,l,r,a=i[1]&&c1(i),s=i[4].default,u=Ee(s,i,i[5],null);return{c(){e=T("div"),t=T("div"),a&&a.c(),n=q(),o=T("div"),l=T("div"),u&&u.c(),c(l,"class","modal-main svelte-1witlsj"),c(o,"class","modal-scroll svelte-1witlsj"),c(t,"class","modal-container svelte-1witlsj"),c(e,"class","modal-overlay svelte-1witlsj")},m(f,_){v(f,e,_),p(e,t),a&&a.m(t,null),p(t,n),p(t,o),p(o,l),u&&u.m(l,null),r=!0},p(f,[_]){f[1]?a?(a.p(f,_),_&2&&d(a,1)):(a=c1(f),a.c(),d(a,1),a.m(t,n)):a&&(ae(),m(a,1,1,()=>{a=null}),ue()),u&&u.p&&(!r||_&32)&&Ae(u,s,f,f[5],r?Me(s,f[5],_,null):Le(f[5]),null)},i(f){r||(d(a),d(u,f),r=!0)},o(f){m(a),m(u,f),r=!1},d(f){f&&b(e),a&&a.d(),u&&u.d(f)}}}function o2(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:l}=e,{showHeader:r=!0}=e,{showCloseCross:a=!0}=e,{title:s}=e;return i.$$set=u=>{"onClose"in u&&t(0,l=u.onClose),"showHeader"in u&&t(1,r=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)},[l,r,a,s,n,o]}var Fa=class extends D{constructor(e){super(),N(this,e,o2,n2,B,{onClose:0,showHeader:1,showCloseCross:2,title:3},t2)}},d1=Fa;var r2=new Set(["BR"]),qa=i=>{let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let o=t[n],l=o.tagName;r2.has(l)||o.parentElement?.removeChild(o)}return e.innerHTML};function l2(i){Ie(i,"svelte-quklnq",".hot-key-map.svelte-quklnq{color:var(--black);box-sizing:border-box;overflow-x:hidden}.hot-key-map-group.svelte-quklnq{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.svelte-quklnq:last-child{border-bottom:none}.hot-key-map-group-title.svelte-quklnq{color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.hot-key-map-group-title.svelte-quklnq,.hot-key-map-item.svelte-quklnq{padding:12px 0;margin:0;width:100%}.hot-key-map-group-items.svelte-quklnq{box-sizing:border-box;list-style:none;padding:0;margin:0}.hot-key-map-item.svelte-quklnq{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.svelte-quklnq{color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px}.hot-key-map-item-value.svelte-quklnq{color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px}.hot-key-map-item-description.svelte-quklnq,.hot-key-map-item-value.svelte-quklnq{font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}")}function m1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function p1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function _1(i){let e,t,n=qa(i[9])+"",o,l,r=i[10]+"",a,s;return{c(){e=T("li"),t=T("span"),o=q(),l=T("span"),a=Ne(r),s=q(),c(t,"class","hot-key-map-item-description svelte-quklnq"),c(l,"class","hot-key-map-item-value svelte-quklnq"),c(e,"class","hot-key-map-item svelte-quklnq")},m(u,f){v(u,e,f),p(e,t),t.innerHTML=n,p(e,o),p(e,l),p(l,a),p(e,s)},p(u,f){f&1&&n!==(n=qa(u[9])+"")&&(t.innerHTML=n),f&1&&r!==(r=u[10]+"")&&xe(a,r)},d(u){u&&b(e)}}}function g1(i){let e,t,n=i[5]+"",o,l,r,a,s=yt(i[6]),u=[];for(let f=0;f<s.length;f+=1)u[f]=_1(p1(i,s,f));return{c(){e=T("div"),t=T("h5"),o=Ne(n),l=q(),r=T("ul");for(let f=0;f<u.length;f+=1)u[f].c();a=q(),c(t,"class","hot-key-map-group-title svelte-quklnq"),c(r,"class","hot-key-map-group-items svelte-quklnq"),c(e,"class","hot-key-map-group svelte-quklnq")},m(f,_){v(f,e,_),p(e,t),p(t,o),p(e,l),p(e,r);for(let g=0;g<u.length;g+=1)u[g]&&u[g].m(r,null);p(e,a)},p(f,_){if(_&1&&n!==(n=f[5]+"")&&xe(o,n),_&1){s=yt(f[6]);let g;for(g=0;g<s.length;g+=1){let y=p1(f,s,g);u[g]?u[g].p(y,_):(u[g]=_1(y),u[g].c(),u[g].m(r,null))}for(;g<u.length;g+=1)u[g].d(1);u.length=s.length}},d(f){f&&b(e),li(u,f)}}}function s2(i){let e,t=yt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=g1(m1(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","hot-key-map svelte-quklnq")},m(o,l){v(o,e,l);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,l){if(l&1){t=yt(o[0].groups);let r;for(r=0;r<t.length;r+=1){let a=m1(o,t,r);n[r]?n[r].p(a,l):(n[r]=g1(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&b(e),li(n,o)}}}function a2(i){let e,t;return e=new d1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[s2]},$$scope:{ctx:i}}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.title=n[0].title),o&8193&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function u2(i,e,t){let n,o=ot(),{data:l,show:r}=o.ui.modals.hotKeyMap;return O(i,l,s=>t(0,n=s)),[n,l,()=>{r.set(!1)}]}var Ha=class extends D{constructor(e){super(),N(this,e,u2,a2,B,{},l2)}},h1=Ha;var Ps=require("@vkontakte/videoplayer-shared");var zl;function Ir(i){return zl||(zl=new ResizeObserver(e=>{for(let t of e)t.target.dispatchEvent(new CustomEvent("fd:resize"))})),zl.observe(i),{destroy(){zl.unobserve(i)}}}var Zo=require("@vkontakte/videoplayer-core");var xo={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"},b1={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"};var c2=i=>xo[i]??xo[b1[i]]??void 0,Wl=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),Kl=(i,e)=>{if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=c2(t)??t),n&&t&&o){let r=e.filter(a=>a.label===n&&a.language===t);if(r.length===1)return U("audio_stream_display_language_label",{language:o,label:n});{let a=Wl(i,r);return U("audio_stream_display_language_label_index",{language:o,label:n,index:a})}}if(n){let r=e.filter(a=>a.label===n);if(r.length===1)return n;{let a=Wl(i,r);return U("audio_stream_display_label_index",{label:n,index:a})}}if(t&&o){let r=e.filter(a=>a.language===t);if(r.length===1)return o;{let a=Wl(i,r);return U("audio_stream_display_language_index",{language:o,index:a})}}let l=Wl(i,e);return U("audio_stream_display_unknown",{index:l})};function f2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function d2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Ua=class extends D{constructor(e){super(),N(this,e,d2,f2,B,{})}},v1=Ua;function m2(i){Ie(i,"svelte-124aexk",".select-icon.svelte-124aexk{margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px}")}function y1(i){let e,t,n;return t=new v1({}),{c(){e=T("div"),L(t.$$.fragment),c(e,"class","select-icon svelte-124aexk")},m(o,l){v(o,e,l),M(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function p2(i){let e,t=(i[1].label??i[1].value)+"",n;return{c(){e=T("div"),n=Ne(t),c(e,"class","menu-item-value"),W(e,"submenu-value-mobile",i[0])},m(o,l){v(o,e,l),p(e,n)},p(o,l){l&2&&t!==(t=(o[1].label??o[1].value)+"")&&xe(n,t),l&1&&W(e,"submenu-value-mobile",o[0])},i:ge,o:ge,d(o){o&&b(e)}}}function _2(i){let e,t,n,o=[i[1].valueComponentParams??{}];var l=i[1].valueComponent;function r(a,s){let u={};for(let f=0;f<o.length;f+=1)u=re(u,o[f]);return s!==void 0&&s&2&&(u=re(u,Ve(o,[Yr(a[1].valueComponentParams??{})]))),{props:u}}return l&&(e=Dt(l,r(i))),{c(){e&&L(e.$$.fragment),t=tt()},m(a,s){e&&M(e,a,s),v(a,t,s),n=!0},p(a,s){if(s&2&&l!==(l=a[1].valueComponent)){if(e){ae();let u=e;m(u.$$.fragment,1,0,()=>{A(u,1)}),ue()}l?(e=Dt(l,r(a,s)),L(e.$$.fragment),d(e.$$.fragment,1),M(e,t.parentNode,t)):e=null}else if(l){let u=s&2?Ve(o,[Yr(a[1].valueComponentParams??{})]):{};e.$set(u)}},i(a){n||(e&&d(e.$$.fragment,a),n=!0)},o(a){e&&m(e.$$.fragment,a),n=!1},d(a){a&&b(t),e&&A(e,a)}}}function g2(i){let e,t,n,o,l,r,a,s,u,f=i[1].selected&&y1(i),_=[_2,p2],g=[];function y(h,C){return h[1].valueComponent?0:1}return n=y(i,-1),o=g[n]=_[n](i),{c(){e=T("li"),f&&f.c(),t=q(),o.c(),c(e,"class","item"),c(e,"data-value",l=i[1].dataValue??i[1].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",r=i[1].ariaLabel??i[1].label??i[1].value.toString()),W(e,"mobile",i[0])},m(h,C){v(h,e,C),f&&f.m(e,null),p(e,t),g[n].m(e,null),a=!0,s||(u=[Te(e,"click",_t(i[4])),Te(e,"keydown",i[5])],s=!0)},p(h,[C]){h[1].selected?f?C&2&&d(f,1):(f=y1(h),f.c(),d(f,1),f.m(e,t)):f&&(ae(),m(f,1,1,()=>{f=null}),ue());let w=n;n=y(h,C),n===w?g[n].p(h,C):(ae(),m(g[w],1,1,()=>{g[w]=null}),ue(),o=g[n],o?o.p(h,C):(o=g[n]=_[n](h),o.c()),d(o,1),o.m(e,null)),(!a||C&2&&l!==(l=h[1].dataValue??h[1].value))&&c(e,"data-value",l),(!a||C&2&&r!==(r=h[1].ariaLabel??h[1].label??h[1].value.toString()))&&c(e,"aria-label",r),(!a||C&1)&&W(e,"mobile",h[0])},i(h){a||(d(f),d(o),a=!0)},o(h){m(f),m(o),a=!1},d(h){h&&b(e),f&&f.d(),g[n].d(),s=!1,ut(u)}}}function h2(i,e,t){let{isMobile:n=!1}=e,{item:o}=e,{selectItem:l}=e,r=(u,f)=>{wr(u,()=>l(f))},a=()=>l(o.value),s=u=>r(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,l=u.selectItem)},[n,o,l,r,a,s]}var za=class extends D{constructor(e){super(),N(this,e,h2,g2,B,{isMobile:0,item:1,selectItem:2},m2)}},k1=za;function b2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(t,"fill-opacity",".72"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),ke(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function v2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Wa=class extends D{constructor(e){super(),N(this,e,v2,b2,B,{})}},w1=Wa;function y2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function k2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Ka=class extends D{constructor(e){super(),N(this,e,k2,y2,B,{})}},C1=Ka;function w2(i){let e,t;return e=new C1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.style=n[2]),o&1&&(l["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function C2(i){let e,t;return e=new w1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.style=n[2]),o&1&&(l["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function S2(i){let e,t,n,o,l=[C2,w2],r=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=tt()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function I2(i,e,t){let n,{direction:o="left"}=e,l,r;return i.$$set=a=>{"direction"in a&&t(3,o=a.direction)},i.$$.update=()=>{i.$$.dirty&8&&(t(1,l=["up","down"].includes(o)),t(0,r=["right","down"].includes(o))),i.$$.dirty&1&&t(2,n=r?"transform: rotate(180deg);":void 0)},[r,l,n,o]}var ja=class extends D{constructor(e){super(),N(this,e,I2,S2,B,{direction:3})}},Yo=ja;var jn={"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 P2(i){Ie(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 S1(i,e,t){let n=i.slice();return n[23]=e[t],n}function I1(i){let e,t;return e=new k1({props:{item:i[23],isMobile:i[2],selectItem:i[7]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&64&&(l.item=n[23]),o&4&&(l.isMobile=n[2]),o&128&&(l.selectItem=n[7]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function E2(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h;o=new Yo({props:{direction:"left"}});let C=yt(i[6]),w=[];for(let I=0;I<C.length;I+=1)w[I]=I1(S1(i,C,I));let F=I=>m(w[I],1,1,()=>{w[I]=null});return{c(){e=T("div"),t=T("ul"),n=T("li"),L(o.$$.fragment),l=q(),r=T("div"),a=Ne(i[5]),s=q();for(let I=0;I<w.length;I+=1)w[I].c();c(n,"class","item header svelte-1mrc4z3"),c(n,"role","menuitem"),c(n,"tabindex","0"),c(n,"data-testid","return-to-settings-menu"),c(n,"aria-label",i[4]),W(n,"mobile",i[2]),c(t,"class","items"),c(t,"role","menu"),c(t,"style",u=i[13](i[9]?.clientHeight)),W(t,"mobile",i[2]),c(e,"class","sub-menu menu svelte-1mrc4z3"),c(e,"data-testid",f=`sub-menu-${i[1]}`),c(e,"style",_=`min-width: ${i[8]}px`),W(e,"desktop",!i[2]),W(e,"mobile",i[2])},m(I,k){v(I,e,k),p(e,t),p(t,n),M(o,n,null),p(n,l),p(n,r),p(r,a),i[18](n),p(t,s);for(let P=0;P<w.length;P+=1)w[P]&&w[P].m(t,null);i[19](t),g=!0,y||(h=[Te(n,"click",_t(function(){zt(i[3])&&i[3].apply(this,arguments)})),Te(t,"keydown",i[12])],y=!0)},p(I,[k]){if(i=I,(!g||k&32)&&xe(a,i[5]),(!g||k&16)&&c(n,"aria-label",i[4]),(!g||k&4)&&W(n,"mobile",i[2]),k&196){C=yt(i[6]);let P;for(P=0;P<C.length;P+=1){let K=S1(i,C,P);w[P]?(w[P].p(K,k),d(w[P],1)):(w[P]=I1(K),w[P].c(),d(w[P],1),w[P].m(t,null))}for(ae(),P=C.length;P<w.length;P+=1)F(P);ue()}(!g||k&512&&u!==(u=i[13](i[9]?.clientHeight)))&&c(t,"style",u),(!g||k&4)&&W(t,"mobile",i[2]),(!g||k&2&&f!==(f=`sub-menu-${i[1]}`))&&c(e,"data-testid",f),(!g||k&256&&_!==(_=`min-width: ${i[8]}px`))&&c(e,"style",_),(!g||k&4)&&W(e,"desktop",!i[2]),(!g||k&4)&&W(e,"mobile",i[2])},i(I){if(!g){d(o.$$.fragment,I);for(let k=0;k<C.length;k+=1)d(w[k]);g=!0}},o(I){m(o.$$.fragment,I),w=w.filter(Boolean);for(let k=0;k<w.length;k+=1)m(w[k]);g=!1},d(I){I&&b(e),A(o),i[18](null),li(w,I),i[19](null),y=!1,ut(h)}}}function M2(i,e,t){let n,o,{id:l}=e,{isMobile:r=!1}=e,{playerControlsHeight:a=0}=e,{returnFromSubMenu:s}=e,{ariaLabelReturnFromSubMenu:u=U("aria_label_submenu_back")}=e,{title:f}=e,{listRef:_}=e,{closeSettingsMenu:g}=e,{backToMainSettings:y}=e,{itemIdReturnCase:h}=e,{items:C}=e,{selectItem:w}=e,{minWidth:F}=e,I=ot(),k=I.ui.isFullscreen;O(i,k,R=>t(21,o=R));let P=I.ui.playerSize;O(i,P,R=>t(20,n=R));let K,z=R=>{Ld(R,y,{itemIdReturnCase:h,id:l},g)},H=(R=0)=>r&&o?`max-height: ${Math.round(n.height*.6)}px`:r?"":`max-height: ${n.height-32-R-a}px; overflow: auto;`;function se(R){be[R?"unshift":"push"](()=>{K=R,t(9,K)})}function me(R){be[R?"unshift":"push"](()=>{_=R,t(0,_)})}return i.$$set=R=>{"id"in R&&t(1,l=R.id),"isMobile"in R&&t(2,r=R.isMobile),"playerControlsHeight"in R&&t(14,a=R.playerControlsHeight),"returnFromSubMenu"in R&&t(3,s=R.returnFromSubMenu),"ariaLabelReturnFromSubMenu"in R&&t(4,u=R.ariaLabelReturnFromSubMenu),"title"in R&&t(5,f=R.title),"listRef"in R&&t(0,_=R.listRef),"closeSettingsMenu"in R&&t(15,g=R.closeSettingsMenu),"backToMainSettings"in R&&t(16,y=R.backToMainSettings),"itemIdReturnCase"in R&&t(17,h=R.itemIdReturnCase),"items"in R&&t(6,C=R.items),"selectItem"in R&&t(7,w=R.selectItem),"minWidth"in R&&t(8,F=R.minWidth)},[_,l,r,s,u,f,C,w,F,K,k,P,z,H,a,g,y,h,se,me]}var Ga=class extends D{constructor(e){super(),N(this,e,M2,E2,B,{id:1,isMobile:2,playerControlsHeight:14,returnFromSubMenu:3,ariaLabelReturnFromSubMenu:4,title:5,listRef:0,closeSettingsMenu:15,backToMainSettings:16,itemIdReturnCase:17,items:6,selectItem:7,minWidth:8},P2)}},T1=Ga;var P1=require("@vkontakte/videoplayer-shared");function A2(i){let e,t,n,o;return{c(){e=T("img"),c(e,"class","icon"),lo(e.src,t=i[0])||c(e,"src",t),c(e,"aria-hidden","true")},m(l,r){v(l,e,r),n||(o=Te(e,"error",i[2]),n=!0)},p(l,r){r&1&&!lo(e.src,t=l[0])&&c(e,"src",t)},d(l){l&&b(e),n=!1,o()}}}function L2(i){let e;return{c(){e=T("div"),e.innerHTML='<div class="inner"></div>',c(e,"class","icon icon-error-stub")},m(t,n){v(t,e,n)},p:ge,d(t){t&&b(e)}}}function V2(i){let e;function t(l,r){return l[1]?L2:A2}let n=t(i,-1),o=n(i);return{c(){o.c(),e=tt()},m(l,r){o.m(l,r),v(l,e,r)},p(l,[r]){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:ge,o:ge,d(l){l&&b(e),o.d(l)}}}function R2(i,e,t){let n,{icon:o}=e,l=()=>{t(1,n=!0)};return i.$$set=r=>{"icon"in r&&t(0,o=r.icon)},t(1,n=!1),[o,n,l]}var Ya=class extends D{constructor(e){super(),N(this,e,R2,V2,B,{icon:0})}},jl=Ya;function B2(i){Ie(i,"svelte-1ikfjte",".value.svelte-1ikfjte{position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis}")}function D2(i){let e,t,n;var o=i[8];function l(r,a){return{}}return o&&(e=Dt(o,l(i))),{c(){e&&L(e.$$.fragment),t=tt()},m(r,a){e&&M(e,r,a),v(r,t,a),n=!0},p(r,a){if(a&256&&o!==(o=r[8])){if(e){ae();let s=e;m(s.$$.fragment,1,0,()=>{A(s,1)}),ue()}o?(e=Dt(o,l(r,a)),L(e.$$.fragment),d(e.$$.fragment,1),M(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&m(e.$$.fragment,r),n=!1},d(r){r&&b(t),e&&A(e,r)}}}function N2(i){let e,t;return e=new jl({props:{icon:i[8]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&256&&(l.icon=n[8]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function O2(i){let e,t;return{c(){e=T("div"),t=Ne(i[6]),c(e,"class","value svelte-1ikfjte")},m(n,o){v(n,e,o),p(e,t)},p(n,o){o&64&&xe(t,n[6])},i:ge,o:ge,d(n){n&&b(e)}}}function F2(i){let e,t,n;var o=i[7];function l(r,a){return{}}return o&&(e=Dt(o,l(i))),{c(){e&&L(e.$$.fragment),t=tt()},m(r,a){e&&M(e,r,a),v(r,t,a),n=!0},p(r,a){if(a&128&&o!==(o=r[7])){if(e){ae();let s=e;m(s.$$.fragment,1,0,()=>{A(s,1)}),ue()}o?(e=Dt(o,l(r,a)),L(e.$$.fragment),d(e.$$.fragment,1),M(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&m(e.$$.fragment,r),n=!1},d(r){r&&b(t),e&&A(e,r)}}}function q2(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h=[N2,D2],C=[];function w(P,K){return typeof P[8]=="string"?0:1}n=w(i,-1),o=C[n]=h[n](i);let F=[F2,O2],I=[];function k(P,K){return P[7]?0:1}return u=k(i,-1),f=I[u]=F[u](i),{c(){e=T("li"),t=T("div"),o.c(),l=q(),r=T("div"),a=Ne(i[4]),s=q(),f.c(),c(t,"class","icon-wrapper"),c(r,"class","label"),c(e,"class","item"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",i[5]),c(e,"aria-haspopup","true"),c(e,"data-testid",i[1]),W(e,"mobile",i[2])},m(P,K){v(P,e,K),p(e,t),C[n].m(t,null),p(e,l),p(e,r),p(r,a),p(e,s),I[u].m(e,null),i[11](e),_=!0,g||(y=[Te(e,"click",_t(function(){zt(i[3])&&i[3].apply(this,arguments)})),Te(e,"keydown",i[9])],g=!0)},p(P,[K]){i=P;let z=n;n=w(i,K),n===z?C[n].p(i,K):(ae(),m(C[z],1,1,()=>{C[z]=null}),ue(),o=C[n],o?o.p(i,K):(o=C[n]=h[n](i),o.c()),d(o,1),o.m(t,null)),(!_||K&16)&&xe(a,i[4]);let H=u;u=k(i,K),u===H?I[u].p(i,K):(ae(),m(I[H],1,1,()=>{I[H]=null}),ue(),f=I[u],f?f.p(i,K):(f=I[u]=F[u](i),f.c()),d(f,1),f.m(e,null)),(!_||K&32)&&c(e,"aria-label",i[5]),(!_||K&2)&&c(e,"data-testid",i[1]),(!_||K&4)&&W(e,"mobile",i[2])},i(P){_||(d(o),d(f),_=!0)},o(P){m(o),m(f),_=!1},d(P){P&&b(e),C[n].d(),I[u].d(),i[11](null),g=!1,ut(y)}}}function H2(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:l=P1.noop}=e,{getSubItemForFocus:r}=e,{label:a}=e,{ariaLabel:s}=e,{value:u}=e,{valueComponent:f=void 0}=e,{ref:_}=e,{icon:g}=e,y=C=>Ad(C,l,r);function h(C){be[C?"unshift":"push"](()=>{_=C,t(0,_)})}return i.$$set=C=>{"id"in C&&t(1,n=C.id),"isMobile"in C&&t(2,o=C.isMobile),"onClick"in C&&t(3,l=C.onClick),"getSubItemForFocus"in C&&t(10,r=C.getSubItemForFocus),"label"in C&&t(4,a=C.label),"ariaLabel"in C&&t(5,s=C.ariaLabel),"value"in C&&t(6,u=C.value),"valueComponent"in C&&t(7,f=C.valueComponent),"ref"in C&&t(0,_=C.ref),"icon"in C&&t(8,g=C.icon)},[_,n,o,l,a,s,u,f,g,y,r,h]}var Qa=class extends D{constructor(e){super(),N(this,e,H2,q2,B,{id:1,isMobile:2,onClick:3,getSubItemForFocus:10,label:4,ariaLabel:5,value:6,valueComponent:7,ref:0,icon:8},B2)}},E1=Qa;var JS=require("@vkontakte/videoplayer-shared");function U2(i){Ie(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 z2(i){let e,t,n=i[1].default,o=Ee(n,i,i[0],null);return{c(){e=T("div"),o&&o.c(),c(e,"class","pillow svelte-1oe0j8n")},m(l,r){v(l,e,r),o&&o.m(e,null),t=!0},p(l,[r]){o&&o.p&&(!t||r&1)&&Ae(o,n,l,l[0],t?Me(n,l[0],r,null):Le(l[0]),null)},i(l){t||(d(o,l),t=!0)},o(l){m(o,l),t=!1},d(l){l&&b(e),o&&o.d(l)}}}function W2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{"$$scope"in l&&t(0,o=l.$$scope)},[o,n]}var Za=class extends D{constructor(e){super(),N(this,e,W2,z2,B,{},U2)}},M1=Za;var Tr=require("@vkontakte/videoplayer-shared");function K2(i){let e,t,n,o,l=i[2].default,r=Ee(l,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=re(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("path"),c(t,"fill","currentColor"),c(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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),ke(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ke(e,s=Ve(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function j2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Xa=class extends D{constructor(e){super(),N(this,e,j2,K2,B,{})}},A1=Xa;function G2(i){let e,t,n,o,l=i[2].default,r=Ee(l,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=re(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("path"),c(t,"fill","currentColor"),c(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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),ke(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ke(e,s=Ve(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function x2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Ja=class extends D{constructor(e){super(),N(this,e,x2,G2,B,{})}},L1=Ja;function Y2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","currentColor"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function Q2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var $a=class extends D{constructor(e){super(),N(this,e,Q2,Y2,B,{})}},V1=$a;function Z2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","currentColor"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function X2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var eu=class extends D{constructor(e){super(),N(this,e,X2,Z2,B,{})}},Gl=eu;function J2(i){let e,t,n,o,l=i[2].default,r=Ee(l,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=re(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("path"),c(t,"fill","currentColor"),c(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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),ke(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ke(e,s=Ve(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function $2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var tu=class extends D{constructor(e){super(),N(this,e,$2,J2,B,{})}},xl=tu;var Yl=i=>{switch(i){case Tr.VideoQuality.Q_720P:return V1;case Tr.VideoQuality.Q_1080P:return Gl;case Tr.VideoQuality.Q_1440P:return xl;case Tr.VideoQuality.Q_2160P:return A1;case Tr.VideoQuality.Q_4320P:return L1}};function eb(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function tb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var iu=class extends D{constructor(e){super(),N(this,e,tb,eb,B,{})}},R1=iu;function ib(i){let e,t,n,o,l=i[2].default,r=Ee(l,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=re(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(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"),c(n,"class","_full"),ke(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ke(e,s=Ve(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function nb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var nu=class extends D{constructor(e){super(),N(this,e,nb,ib,B,{})}},B1=nu;function ob(i){Ie(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 rb(i){let e,t,n,o,l=i[1]&&D1(i);return n=new B1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=T("div"),l&&l.c(),t=q(),L(n.$$.fragment),c(e,"class","icon svelte-8t5w85"),c(e,"aria-hidden","true"),W(e,"triple",i[2])},m(r,a){v(r,e,a),l&&l.m(e,null),p(e,t),M(n,e,null),o=!0},p(r,a){r[1]?l?(l.p(r,a),a&2&&d(l,1)):(l=D1(r),l.c(),d(l,1),l.m(e,t)):l&&(ae(),m(l,1,1,()=>{l=null}),ue());let s={};a&2&&(s["data-testid"]=r[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&W(e,"triple",r[2])},i(r){o||(d(l),d(n.$$.fragment,r),o=!0)},o(r){m(l),m(n.$$.fragment,r),o=!1},d(r){r&&b(e),l&&l.d(),A(n)}}}function lb(i){let e,t;return e=new R1({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p:ge,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function D1(i){let e,t;return e=new M1({props:{$$slots:{default:[sb]},$$scope:{ctx:i}}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&18&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function sb(i){let e,t,n;var o=i[1];function l(r,a){return{}}return o&&(e=Dt(o,l(i))),{c(){e&&L(e.$$.fragment),t=tt()},m(r,a){e&&M(e,r,a),v(r,t,a),n=!0},p(r,a){if(a&2&&o!==(o=r[1])){if(e){ae();let s=e;m(s.$$.fragment,1,0,()=>{A(s,1)}),ue()}o?(e=Dt(o,l(r,a)),L(e.$$.fragment),d(e.$$.fragment,1),M(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&m(e.$$.fragment,r),n=!1},d(r){r&&b(t),e&&A(e,r)}}}function ab(i){let e,t,n,o,l=[lb,rb],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=tt()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function ub(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:l=void 0}=e,r;return i.$$set=a=>{"isMobile"in a&&t(0,o=a.isMobile),"currentQuality"in a&&t(3,l=a.currentQuality)},i.$$.update=()=>{i.$$.dirty&8&&t(1,n=Yl(l)),i.$$.dirty&2&&t(2,r=!!n&&[Gl,xl].includes(n))},[o,n,r,l]}var ou=class extends D{constructor(e){super(),N(this,e,ub,ab,B,{isMobile:0,currentQuality:3},ob)}},Ql=ou;function cb(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function fb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var ru=class extends D{constructor(e){super(),N(this,e,fb,cb,B,{})}},Zl=ru;function db(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),ke(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function mb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var lu=class extends D{constructor(e){super(),N(this,e,mb,db,B,{})}},N1=lu;function pb(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),ke(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function _b(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var su=class extends D{constructor(e){super(),N(this,e,_b,pb,B,{})}},O1=su;function gb(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,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 f=0;f<s.length;f+=1)u=re(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(o,"fill-rule","nonzero"),c(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"),c(t,"fill","none"),c(t,"fill-rule","evenodd"),ke(e,u)},m(f,_){v(f,e,_),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),l=!0},p(f,[_]){a&&a.p&&(!l||_&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],_,null):Le(f[1]),null),ke(e,u=Ve(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},_&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function hb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var au=class extends D{constructor(e){super(),N(this,e,hb,gb,B,{})}},F1=au;function bb(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function vb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var uu=class extends D{constructor(e){super(),N(this,e,vb,bb,B,{})}},q1=uu;function yb(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),ke(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function kb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var cu=class extends D{constructor(e){super(),N(this,e,kb,yb,B,{})}},fu=cu;function wb(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function Cb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var du=class extends D{constructor(e){super(),N(this,e,Cb,wb,B,{})}},H1=du;function Sb(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),ke(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function Ib(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var mu=class extends D{constructor(e){super(),N(this,e,Ib,Sb,B,{})}},U1=mu;var RI=require("@vkontakte/videoplayer-core");function Tb(i){Ie(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 z1(i){let e,t,n;var o=i[3];function l(r,a){return{}}return o&&(t=Dt(o,l(i))),{c(){e=T("div"),t&&L(t.$$.fragment),c(e,"class","quality-icon svelte-1a7qwh6")},m(r,a){v(r,e,a),t&&M(t,e,null),n=!0},p(r,a){if(a&8&&o!==(o=r[3])){if(t){ae();let s=t;m(s.$$.fragment,1,0,()=>{A(s,1)}),ue()}o?(t=Dt(o,l(r,a)),L(t.$$.fragment),d(t.$$.fragment,1),M(t,e,null)):t=null}},i(r){n||(t&&d(t.$$.fragment,r),n=!0)},o(r){t&&m(t.$$.fragment,r),n=!1},d(r){r&&b(e),t&&A(t)}}}function Pb(i){let e,t,n,o,l,r=i[3]&&!i[1]&&z1(i);return{c(){e=T("div"),t=T("span"),n=Ne(i[0]),o=q(),r&&r.c(),c(t,"class","svelte-1a7qwh6"),c(e,"class","menu-item-value svelte-1a7qwh6"),W(e,"sub",i[2])},m(a,s){v(a,e,s),p(e,t),p(t,n),p(e,o),r&&r.m(e,null),l=!0},p(a,[s]){(!l||s&1)&&xe(n,a[0]),a[3]&&!a[1]?r?(r.p(a,s),s&10&&d(r,1)):(r=z1(a),r.c(),d(r,1),r.m(e,null)):r&&(ae(),m(r,1,1,()=>{r=null}),ue()),(!l||s&4)&&W(e,"sub",a[2])},i(a){l||(d(r),l=!0)},o(a){m(r),l=!1},d(a){a&&b(e),r&&r.d()}}}function Eb(i,e,t){let n,{quality:o}=e,{label:l}=e,{isMobile:r}=e,{isSubCase:a=!1}=e;return i.$$set=s=>{"quality"in s&&t(4,o=s.quality),"label"in s&&t(0,l=s.label),"isMobile"in s&&t(1,r=s.isMobile),"isSubCase"in s&&t(2,a=s.isSubCase)},i.$$.update=()=>{i.$$.dirty&16&&t(3,n=Yl(o))},[l,r,a,n,o]}var pu=class extends D{constructor(e){super(),N(this,e,Eb,Pb,B,{quality:4,label:0,isMobile:1,isSubCase:2},Tb)}},Xl=pu;var W1=require("@vkontakte/videoplayer-core");var Jl=(i,e,t)=>{if(!i)return"...";let n=e.find(l=>l.value===i),o=n?n.displayValue:i;return t?i===W1.VideoQuality.INVARIANT?U("auto_quality_invariant"):U("auto_quality",{actual:o}):o};function Mb(i){Ie(i,"svelte-vk2gx4",".menu-item-value-wrapper.svelte-vk2gx4{right:-22px;position:relative}")}function Ab(i){let e,t,n;return t=new Xl({props:{quality:i[0],label:i[1],isMobile:i[2]}}),{c(){e=T("div"),L(t.$$.fragment),c(e,"class","menu-item-value-wrapper svelte-vk2gx4")},m(o,l){v(o,e,l),M(t,e,null),n=!0},p(o,[l]){let r={};l&1&&(r.quality=o[0]),l&2&&(r.label=o[1]),l&4&&(r.isMobile=o[2]),t.$set(r)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function Lb(i,e,t){let n,o,l,r,a=ot(),s=a.state.currentQuality$;O(i,s,y=>t(0,l=y));let u=a.state.availableQualities$;O(i,u,y=>t(8,o=y));let f=a.state.isAutoQualityEnabled$;O(i,f,y=>t(7,n=y));let _=a.ui.isMobile;O(i,_,y=>t(2,r=y));let g;return i.$$.update=()=>{i.$$.dirty&385&&t(1,g=Jl(l,o,n))},[l,g,r,s,u,f,_,n,o]}var _u=class extends D{constructor(e){super(),N(this,e,Lb,Ab,B,{},Mb)}},K1=_u;var gu=require("@vkontakte/videoplayer-shared");function Vb(i){let e,t,n;var o=i[4];function l(r,a){return{}}return o&&(e=Dt(o,l(i))),{c(){e&&L(e.$$.fragment),t=tt()},m(r,a){e&&M(e,r,a),v(r,t,a),n=!0},p(r,a){if(a&16&&o!==(o=r[4])){if(e){ae();let s=e;m(s.$$.fragment,1,0,()=>{A(s,1)}),ue()}o?(e=Dt(o,l(r,a)),L(e.$$.fragment),d(e.$$.fragment,1),M(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&m(e.$$.fragment,r),n=!1},d(r){r&&b(t),e&&A(e,r)}}}function Rb(i){let e;function t(l,r){return l[5]?Db:Bb}let n=t(i,-1),o=n(i);return{c(){o.c(),e=tt()},m(l,r){o.m(l,r),v(l,e,r)},p(l,r){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:ge,o:ge,d(l){l&&b(e),o.d(l)}}}function Bb(i){let e,t,n,o;return{c(){e=T("img"),c(e,"class","icon"),lo(e.src,t=i[4])||c(e,"src",t),c(e,"aria-hidden","true")},m(l,r){v(l,e,r),n||(o=Te(e,"error",i[6]),n=!0)},p(l,r){r&16&&!lo(e.src,t=l[4])&&c(e,"src",t)},d(l){l&&b(e),n=!1,o()}}}function Db(i){let e;return{c(){e=T("div"),e.innerHTML='<div class="inner"></div>',c(e,"class","icon icon-error-stub")},m(t,n){v(t,e,n)},p:ge,d(t){t&&b(e)}}}function Nb(i){let e,t,n,o,l,r,a,s,u,f,_,g=[Rb,Vb],y=[];function h(C,w){return typeof C[4]=="string"?0:1}return n=h(i,-1),o=y[n]=g[n](i),{c(){e=T("li"),t=T("div"),o.c(),l=q(),r=T("div"),a=Ne(i[2]),c(t,"class","icon-wrapper"),c(r,"class","label"),c(e,"class","item"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[3]??i[2]),c(e,"data-testid",i[0]),W(e,"mobile",i[1])},m(C,w){v(C,e,w),p(e,t),y[n].m(t,null),p(e,l),p(e,r),p(r,a),u=!0,f||(_=[Te(e,"click",_t(i[7])),Te(e,"keydown",i[8])],f=!0)},p(C,[w]){let F=n;n=h(C,w),n===F?y[n].p(C,w):(ae(),m(y[F],1,1,()=>{y[F]=null}),ue(),o=y[n],o?o.p(C,w):(o=y[n]=g[n](C),o.c()),d(o,1),o.m(t,null)),(!u||w&4)&&xe(a,C[2]),(!u||w&12&&s!==(s=C[3]??C[2]))&&c(e,"aria-label",s),(!u||w&1)&&c(e,"data-testid",C[0]),(!u||w&2)&&W(e,"mobile",C[1])},i(C){u||(d(o),u=!0)},o(C){m(o),u=!1},d(C){C&&b(e),y[n].d(),f=!1,ut(_)}}}function Ob(i,e,t){let n,{id:o}=e,{isMobile:l=!1}=e,{onClick:r=gu.noop}=e,{closeSettings:a=gu.noop}=e,{label:s}=e,{ariaLabel:u}=e,{icon:f}=e,_=()=>{t(5,n=!0)},g=()=>{r(),a()},y=h=>{wr(h,()=>g())};return i.$$set=h=>{"id"in h&&t(0,o=h.id),"isMobile"in h&&t(1,l=h.isMobile),"onClick"in h&&t(9,r=h.onClick),"closeSettings"in h&&t(10,a=h.closeSettings),"label"in h&&t(2,s=h.label),"ariaLabel"in h&&t(3,u=h.ariaLabel),"icon"in h&&t(4,f=h.icon)},t(5,n=!1),[o,l,s,u,f,n,_,g,y,r,a]}var hu=class extends D{constructor(e){super(),N(this,e,Ob,Nb,B,{id:0,isMobile:1,onClick:9,closeSettings:10,label:2,ariaLabel:3,icon:4})}},j1=hu;var Z1=require("@vkontakte/videoplayer-shared");function Fb(i){Ie(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 qb(i){let e,t,n,o;return{c(){e=T("div"),t=T("div"),n=q(),o=T("div"),c(t,"class","toggle svelte-17wbjko"),W(t,"on",i[0]),c(o,"class","toggle-label svelte-17wbjko"),c(e,"class","toggle_wrap svelte-17wbjko")},m(l,r){v(l,e,r),p(e,t),p(e,n),p(e,o)},p(l,[r]){r&1&&W(t,"on",l[0])},i:ge,o:ge,d(l){l&&b(e)}}}function Hb(i,e,t){let{enabled:n=!1}=e;return i.$$set=o=>{"enabled"in o&&t(0,n=o.enabled)},[n]}var bu=class extends D{constructor(e){super(),N(this,e,Hb,qb,B,{enabled:0},Fb)}},G1=bu;var Q1=require("@vkontakte/videoplayer-shared");function Ub(i){let e,t,n=i[4].default,o=Ee(n,i,i[3],null);return{c(){e=T("div"),o&&o.c(),c(e,"class","overlay")},m(l,r){v(l,e,r),o&&o.m(e,null),i[5](e),t=!0},p(l,[r]){o&&o.p&&(!t||r&8)&&Ae(o,n,l,l[3],t?Me(n,l[3],r,null):Le(l[3]),null)},i(l){t||(d(o,l),t=!0)},o(l){m(o,l),t=!1},d(l){l&&b(e),o&&o.d(l),i[5](null)}}}function zb(i,e,t){let n,{$$slots:o={},$$scope:l}=e,a=ot().ui.overlayContainer$;O(i,a,g=>t(2,n=g));let s,u=g=>{!g||!s||!g.contains(s)||g.removeChild(s)},f=g=>{!g||!s||g.contains(s)||g.appendChild(s)};St(()=>(f(n),()=>u(n)));function _(g){be[g?"unshift":"push"](()=>{s=g,t(0,s)})}return i.$$set=g=>{"$$scope"in g&&t(3,l=g.$$scope)},i.$$.update=()=>{i.$$.dirty&4&&f(n)},[s,a,n,l,o,_]}var vu=class extends D{constructor(e){super(),N(this,e,zb,Ub,B,{})}},x1=vu;function Wb(i){Ie(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 Y1(i){let e,t;return e=new x1({props:{$$slots:{default:[Kb]},$$scope:{ctx:i}}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&16777445&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Kb(i){let e,t,n,o,l;return{c(){e=T("div"),t=T("div"),n=Ne(i[2]),o=q(),l=T("div"),c(t,"class","content svelte-1jbbzcj"),c(l,"class","tooltip-pointer svelte-1jbbzcj"),c(l,"style",i[7]),c(e,"class","tooltip svelte-1jbbzcj"),c(e,"style",i[6]),W(e,"active",i[0])},m(r,a){v(r,e,a),p(e,t),p(t,n),p(e,o),p(e,l),i[23](e)},p(r,a){a[0]&4&&xe(n,r[2]),a[0]&128&&c(l,"style",r[7]),a[0]&64&&c(e,"style",r[6]),a[0]&1&&W(e,"active",r[0])},d(r){r&&b(e),i[23](null)}}}function jb(i){let e,t,n,o,l,r,a=i[21].default,s=Ee(a,i,i[24],null),u=i[2]&&!i[1]&&Y1(i);return{c(){e=T("div"),s&&s.c(),t=q(),u&&u.c(),n=tt(),c(e,"class","tooltip-wrapper svelte-1jbbzcj"),W(e,"full-width",i[3])},m(f,_){v(f,e,_),s&&s.m(e,null),i[22](e),v(f,t,_),u&&u.m(f,_),v(f,n,_),o=!0,l||(r=[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])],l=!0)},p(f,_){s&&s.p&&(!o||_[0]&16777216)&&Ae(s,a,f,f[24],o?Me(a,f[24],_,null):Le(f[24]),null),(!o||_[0]&8)&&W(e,"full-width",f[3]),f[2]&&!f[1]?u?(u.p(f,_),_[0]&6&&d(u,1)):(u=Y1(f),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(ae(),m(u,1,1,()=>{u=null}),ue())},i(f){o||(d(s,f),d(u),o=!0)},o(f){m(s,f),m(u),o=!1},d(f){f&&(b(e),b(t),b(n)),s&&s.d(f),i[22](null),u&&u.d(f),l=!1,ut(r)}}}var co=5;function Gb(i,e,t){let n,o,{$$slots:l={},$$scope:r}=e,{isMobile:a=!1}=e,{content:s=""}=e,{active:u=!1}=e,{translateX:f=0}=e,{translateY:_=0}=e,{isFullWidthWrapper:g=!1}=e,{maxTooltipWidth:y=void 0}=e,{placement:h="top"}=e,{onVisibilityChange:C=Q1.noop}=e,w,F,I,k=0,P=0,K=0,z=0,H=Nt(),se=ot(),me=se.ui.playerSize;O(i,me,x=>t(27,o=x));let R=se.ui.overlayContainer$;O(i,R,x=>t(26,n=x));let te=se.getLogger().createComponentLog("Tooltip component"),le=()=>{if(!n||!F||!w)return;t(18,P=co);let x=n.getBoundingClientRect(),de=w.getBoundingClientRect(),Ge=de.width,ve=F.clientWidth,He=o.width,$e=(Ge-ve)/2,st=de.left+f-x.left,Xe=st+$e,Ye=de.top+_-x.top,Ke=ve/2-co,Z=Xe<8,Ue=Xe+ve>He-8;Z&&(Xe=8,Ke=st+de.width/2-2.5*co),Ue&&(Xe=He-8-ve,Ke=de.left-x.left+de.width/2-Xe-co),t(19,K=Xe),t(20,z=Ye),t(17,k=Ke)},ne=()=>{!n||!F||!w||t(18,P=-co)},_e=()=>{if(!n||!F||!w)return;t(17,k=co);let x=n.getBoundingClientRect(),de=w.getBoundingClientRect(),Ge=de.height,ve=F.clientHeight,He=(Ge-ve)/2+ve,$e=de.left+f-x.left-F.clientWidth,st=2,Xe=$e-co;Xe<8&&(Xe=8);let Ke=de.top+_-x.top+He,Z=st-He/2,Ue=st-co;t(19,K=Xe),t(20,z=Ke),t(18,P=Z),t(17,k=Ue)},Y=()=>{!n||!F||!w||t(17,k=-co)},$=()=>{switch(h){case"top":le();break;case"bottom":ne();break;case"left":_e();break;default:Y()}},E=()=>{try{if(!n||!w)return;$(),t(0,u=!0)}catch(x){te({message:String(x)})}},X=()=>{t(0,u=!1)},oe=()=>{F&&(I||(I=window.setTimeout(E,H.controls.hideTimeoutTooltips)),u&&E())},fe=()=>{X(),window.clearTimeout(I),I=void 0},Re=(x,de)=>{let Ge="";switch(h){case"top":Ge=`transform: translate(${x}px, ${de}px);`;break;case"bottom":Ge=`transform: translate(${x}px, ${de}px); top: auto; bottom: 100%;`;break;case"left":Ge=`transform: translate(${x}px, ${de}px); left: 0; right: auto;`;break;default:Ge=`transform: translate(${x}px, ${de}px);`}return Ge+=` max-width: ${y===void 0?"auto":`${y}px`};`,Ge},Ze=(x,de)=>{let Ge="";switch(h){case"top":Ge=`transform: translate(${x}px, ${de}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ge=`transform: translate(${x}px, ${de}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ge=`transform: translate(${x}px, ${de}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ge=`transform: translate(${x}px, ${de}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ge},ce,Be;St($),zn(()=>window.clearTimeout(I));function De(x){be[x?"unshift":"push"](()=>{w=x,t(4,w)})}function je(x){be[x?"unshift":"push"](()=>{F=x,t(5,F)})}return i.$$set=x=>{"isMobile"in x&&t(1,a=x.isMobile),"content"in x&&t(2,s=x.content),"active"in x&&t(0,u=x.active),"translateX"in x&&t(12,f=x.translateX),"translateY"in x&&t(13,_=x.translateY),"isFullWidthWrapper"in x&&t(3,g=x.isFullWidthWrapper),"maxTooltipWidth"in x&&t(14,y=x.maxTooltipWidth),"placement"in x&&t(15,h=x.placement),"onVisibilityChange"in x&&t(16,C=x.onVisibilityChange),"$$scope"in x&&t(24,r=x.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&65537&&C(u),i.$$.dirty[0]&1966080&&(t(6,ce=Re(K,z)),t(7,Be=Ze(k,P)))},[u,a,s,g,w,F,ce,Be,me,R,oe,fe,f,_,y,h,C,k,P,K,z,l,De,je,r]}var yu=class extends D{constructor(e){super(),N(this,e,Gb,jb,B,{isMobile:1,content:2,active:0,translateX:12,translateY:13,isFullWidthWrapper:3,maxTooltipWidth:14,placement:15,onVisibilityChange:16},Wb,[-1,-1])}},Pr=yu;function xb(i){let e,t,n;var o=i[4];function l(r,a){return{}}return o&&(e=Dt(o,l(i))),{c(){e&&L(e.$$.fragment),t=tt()},m(r,a){e&&M(e,r,a),v(r,t,a),n=!0},p(r,a){if(a&16&&o!==(o=r[4])){if(e){ae();let s=e;m(s.$$.fragment,1,0,()=>{A(s,1)}),ue()}o?(e=Dt(o,l(r,a)),L(e.$$.fragment),d(e.$$.fragment,1),M(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&m(e.$$.fragment,r),n=!1},d(r){r&&b(t),e&&A(e,r)}}}function Yb(i){let e,t;return e=new jl({props:{icon:i[4]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.icon=n[4]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Qb(i){let e,t,n,o,l,r,a,s,u,f,_=[Yb,xb],g=[];function y(h,C){return typeof h[4]=="string"?0:1}return n=y(i,-1),o=g[n]=_[n](i),u=new G1({props:{enabled:i[5]}}),{c(){e=T("div"),t=T("div"),o.c(),l=q(),r=T("div"),a=Ne(i[2]),s=q(),L(u.$$.fragment),c(t,"class","icon-wrapper"),c(r,"class","label"),c(e,"class","switch-wrapper"),W(e,"mobile",i[1])},m(h,C){v(h,e,C),p(e,t),g[n].m(t,null),p(e,l),p(e,r),p(r,a),p(e,s),M(u,e,null),f=!0},p(h,C){let w=n;n=y(h,C),n===w?g[n].p(h,C):(ae(),m(g[w],1,1,()=>{g[w]=null}),ue(),o=g[n],o?o.p(h,C):(o=g[n]=_[n](h),o.c()),d(o,1),o.m(t,null)),(!f||C&4)&&xe(a,h[2]);let F={};C&32&&(F.enabled=h[5]),u.$set(F),(!f||C&2)&&W(e,"mobile",h[1])},i(h){f||(d(o),d(u.$$.fragment,h),f=!0)},o(h){m(o),m(u.$$.fragment,h),f=!1},d(h){h&&b(e),g[n].d(),A(u)}}}function Zb(i){let e,t,n,o,l,r;return t=new Pr({props:{content:i[6],isMobile:i[1],placement:"left",translateX:10,isFullWidthWrapper:!0,maxTooltipWidth:i[7],$$slots:{default:[Qb]},$$scope:{ctx:i}}}),{c(){e=T("li"),L(t.$$.fragment),c(e,"class","item switch-item"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",n=i[3]??i[2]),c(e,"data-testid",i[0]),W(e,"mobile",i[1])},m(a,s){v(a,e,s),M(t,e,null),o=!0,l||(r=[Te(e,"click",_t(i[9])),Te(e,"keydown",i[8])],l=!0)},p(a,[s]){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=a[3]??a[2]))&&c(e,"aria-label",n),(!o||s&1)&&c(e,"data-testid",a[0]),(!o||s&2)&&W(e,"mobile",a[1])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){m(t.$$.fragment,a),o=!1},d(a){a&&b(e),A(t),l=!1,ut(r)}}}function Xb(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:l=Z1.noop}=e,{label:r}=e,{ariaLabel:a}=e,{icon:s}=e,{enabled:u=!1}=e,{tooltipText:f=void 0}=e,{maxTooltipWidth:_=void 0}=e,g=h=>{Vd(h,u,C=>l(C))},y=()=>l(!u);return i.$$set=h=>{"id"in h&&t(0,n=h.id),"isMobile"in h&&t(1,o=h.isMobile),"onClick"in h&&t(10,l=h.onClick),"label"in h&&t(2,r=h.label),"ariaLabel"in h&&t(3,a=h.ariaLabel),"icon"in h&&t(4,s=h.icon),"enabled"in h&&t(5,u=h.enabled),"tooltipText"in h&&t(6,f=h.tooltipText),"maxTooltipWidth"in h&&t(7,_=h.maxTooltipWidth)},[n,o,r,a,s,u,f,_,g,y,l]}var ku=class extends D{constructor(e){super(),N(this,e,Xb,Zb,B,{id:0,isMobile:1,onClick:10,label:2,ariaLabel:3,icon:4,enabled:5,tooltipText:6,maxTooltipWidth:7})}},X1=ku;var lm=require("@vkontakte/videoplayer-shared");function Jb(i){Ie(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 $1(i,e,t){let n=i.slice();return n[89]=e[t],n[90]=e,n[91]=t,n}function em(i,e,t){let n=i.slice();return n[89]=e[t],n[92]=e,n[93]=t,n}function tm(i){let e,t,n,o,l,r,a,s=i[5]&&im(i),u=yt(i[4]),f=[];for(let g=0;g<u.length;g+=1)f[g]=nm(em(i,u,g));let _=g=>m(f[g],1,1,()=>{f[g]=null});return{c(){e=T("div"),s&&s.c(),t=q(),n=T("ul");for(let g=0;g<f.length;g+=1)f[g].c();c(n,"class","items"),c(n,"role","menu"),c(n,"style",o=i[34]()),W(n,"mobile",i[5]),c(e,"class","settings-menu menu svelte-1t2c6ej"),c(e,"data-testid","settings-menu"),W(e,"desktop",!i[5]),W(e,"mobile",i[5]),W(e,"hidden",!i[7])},m(g,y){v(g,e,y),s&&s.m(e,null),p(e,t),p(e,n);for(let h=0;h<f.length;h+=1)f[h]&&f[h].m(n,null);i[68](n),l=!0,r||(a=[Te(e,"keydown",i[36]),Te(e,"mouseenter",i[32]),Te(e,"mouseleave",i[33])],r=!0)},p(g,y){if(g[5]?s?s.p(g,y):(s=im(g),s.c(),s.m(e,t)):s&&(s.d(1),s=null),y[0]&1610612788){u=yt(g[4]);let h;for(h=0;h<u.length;h+=1){let C=em(g,u,h);f[h]?(f[h].p(C,y),d(f[h],1)):(f[h]=nm(C),f[h].c(),d(f[h],1),f[h].m(n,null))}for(ae(),h=u.length;h<f.length;h+=1)_(h);ue()}(!l||y[0]&32)&&W(n,"mobile",g[5]),(!l||y[0]&32)&&W(e,"desktop",!g[5]),(!l||y[0]&32)&&W(e,"mobile",g[5]),(!l||y[0]&128)&&W(e,"hidden",!g[7])},i(g){if(!l){for(let y=0;y<u.length;y+=1)d(f[y]);l=!0}},o(g){f=f.filter(Boolean);for(let y=0;y<f.length;y+=1)m(f[y]);l=!1},d(g){g&&b(e),s&&s.d(),li(f,g),i[68](null),r=!1,ut(a)}}}function im(i){let e,t,n,o,l,r;return{c(){e=T("div"),t=T("div"),t.textContent=`${U("submenu_settings")}`,n=q(),o=T("div"),c(o,"class","close svelte-1t2c6ej"),c(e,"class","item header svelte-1t2c6ej"),W(e,"mobile",i[5])},m(a,s){v(a,e,s),p(e,t),p(e,n),p(e,o),l||(r=Te(o,"click",_t(i[30])),l=!0)},p(a,s){s[0]&32&&W(e,"mobile",a[5])},d(a){a&&b(e),l=!1,r()}}}function $b(i){let e,t;return e=new X1({props:{isMobile:i[5],id:i[89].id,onClick:i[89].onClick,icon:i[89].icon,label:i[89].label,ariaLabel:i[89].ariaLabel,enabled:i[89].enabled,tooltipText:i[89].tooltipText,maxTooltipWidth:i[89].maxTooltipWidth}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&32&&(l.isMobile=n[5]),o[0]&16&&(l.id=n[89].id),o[0]&16&&(l.onClick=n[89].onClick),o[0]&16&&(l.icon=n[89].icon),o[0]&16&&(l.label=n[89].label),o[0]&16&&(l.ariaLabel=n[89].ariaLabel),o[0]&16&&(l.enabled=n[89].enabled),o[0]&16&&(l.tooltipText=n[89].tooltipText),o[0]&16&&(l.maxTooltipWidth=n[89].maxTooltipWidth),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function ev(i){let e,t;return e=new j1({props:{isMobile:i[5],id:i[89].id,onClick:i[89].onClick,icon:i[89].icon,label:i[89].label,ariaLabel:i[89].ariaLabel,closeSettings:i[30]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&32&&(l.isMobile=n[5]),o[0]&16&&(l.id=n[89].id),o[0]&16&&(l.onClick=n[89].onClick),o[0]&16&&(l.icon=n[89].icon),o[0]&16&&(l.label=n[89].label),o[0]&16&&(l.ariaLabel=n[89].ariaLabel),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function tv(i){let e,t,n;function o(){return i[66](i[89])}function l(a){i[67](a,i[89])}let r={isMobile:i[5],id:i[89].id,icon:i[89].icon,label:i[89].label,ariaLabel:i[89].ariaLabel,value:i[89].value,valueComponent:i[89].valueComponent,onClick:o,getSubItemForFocus:i[89].getSubItemForFocus};return i[2][i[89].id]!==void 0&&(r.ref=i[2][i[89].id]),e=new E1({props:r}),be.push(()=>Fe(e,"ref",l)),{c(){L(e.$$.fragment)},m(a,s){M(e,a,s),n=!0},p(a,s){i=a;let u={};s[0]&32&&(u.isMobile=i[5]),s[0]&16&&(u.id=i[89].id),s[0]&16&&(u.icon=i[89].icon),s[0]&16&&(u.label=i[89].label),s[0]&16&&(u.ariaLabel=i[89].ariaLabel),s[0]&16&&(u.value=i[89].value),s[0]&16&&(u.valueComponent=i[89].valueComponent),s[0]&16&&(u.onClick=o),s[0]&16&&(u.getSubItemForFocus=i[89].getSubItemForFocus),!t&&s[0]&20&&(t=!0,u.ref=i[2][i[89].id],Oe(()=>t=!1)),e.$set(u)},i(a){n||(d(e.$$.fragment,a),n=!0)},o(a){m(e.$$.fragment,a),n=!1},d(a){A(e,a)}}}function nm(i){let e,t,n,o,l=[tv,ev,$b],r=[];function a(s,u){return s[89].type==="OPEN_SUB_MENU"?0:s[89].type==="CLICK"?1:s[89].type==="SWITCH"?2:-1}return~(e=a(i,[-1,-1,-1,-1]))&&(t=r[e]=l[e](i)),{c(){t&&t.c(),n=tt()},m(s,u){~e&&r[e].m(s,u),v(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?~e&&r[e].p(s,u):(t&&(ae(),m(r[f],1,1,()=>{r[f]=null}),ue()),~e?(t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n)):t=null)},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),~e&&r[e].d(s)}}}function om(i){let e,t,n;function o(r){i[69](r,i[89])}let l={isMobile:i[5],playerControlsHeight:i[1],returnFromSubMenu:i[89].subMenu.returnFromSubMenu??i[31],id:i[89].id,title:i[89].subMenu.title,closeSettingsMenu:i[89].subMenu.closeSettingsMenu,backToMainSettings:i[89].subMenu.backToMainSettings,itemIdReturnCase:i[89].subMenu.itemIdReturnCase,items:i[89].subMenu.items,selectItem:i[89].subMenu.selectItem,minWidth:i[89].subMenu.minWidth??137};return i[3][i[89].id]!==void 0&&(l.listRef=i[3][i[89].id]),e=new T1({props:l}),be.push(()=>Fe(e,"listRef",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){i=r;let s={};a[0]&32&&(s.isMobile=i[5]),a[0]&2&&(s.playerControlsHeight=i[1]),a[0]&16&&(s.returnFromSubMenu=i[89].subMenu.returnFromSubMenu??i[31]),a[0]&16&&(s.id=i[89].id),a[0]&16&&(s.title=i[89].subMenu.title),a[0]&16&&(s.closeSettingsMenu=i[89].subMenu.closeSettingsMenu),a[0]&16&&(s.backToMainSettings=i[89].subMenu.backToMainSettings),a[0]&16&&(s.itemIdReturnCase=i[89].subMenu.itemIdReturnCase),a[0]&16&&(s.items=i[89].subMenu.items),a[0]&16&&(s.selectItem=i[89].subMenu.selectItem),a[0]&16&&(s.minWidth=i[89].subMenu.minWidth??137),!t&&a[0]&24&&(t=!0,s.listRef=i[3][i[89].id],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function rm(i){let e,t,n=i[89].type==="OPEN_SUB_MENU"&&i[89].subMenu?.show&&om(i);return{c(){n&&n.c(),e=tt()},m(o,l){n&&n.m(o,l),v(o,e,l),t=!0},p(o,l){o[89].type==="OPEN_SUB_MENU"&&o[89].subMenu?.show?n?(n.p(o,l),l[0]&16&&d(n,1)):(n=om(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),m(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function iv(i){let e,t,n,o=i[6]&&tm(i),l=yt(i[4]),r=[];for(let s=0;s<l.length;s+=1)r[s]=rm($1(i,l,s));let a=s=>m(r[s],1,1,()=>{r[s]=null});return{c(){e=T("div"),o&&o.c(),t=q();for(let s=0;s<r.length;s+=1)r[s].c();c(e,"class","settings-menu-container svelte-1t2c6ej"),W(e,"hidden",!i[6]),W(e,"mobile",i[5])},m(s,u){v(s,e,u),o&&o.m(e,null),p(e,t);for(let f=0;f<r.length;f+=1)r[f]&&r[f].m(e,null);n=!0},p(s,u){if(s[6]?o?(o.p(s,u),u[0]&64&&d(o,1)):(o=tm(s),o.c(),d(o,1),o.m(e,t)):o&&(ae(),m(o,1,1,()=>{o=null}),ue()),u[0]&58|u[1]&1){l=yt(s[4]);let f;for(f=0;f<l.length;f+=1){let _=$1(s,l,f);r[f]?(r[f].p(_,u),d(r[f],1)):(r[f]=rm(_),r[f].c(),d(r[f],1),r[f].m(e,null))}for(ae(),f=l.length;f<r.length;f+=1)a(f);ue()}(!n||u[0]&64)&&W(e,"hidden",!s[6]),(!n||u[0]&32)&&W(e,"mobile",s[5])},i(s){if(!n){d(o);for(let u=0;u<l.length;u+=1)d(r[u]);n=!0}},o(s){m(o),r=r.filter(Boolean);for(let u=0;u<r.length;u+=1)m(r[u]);n=!1},d(s){s&&b(e),o&&o.d(),li(r,s)}}}function nv(i,e,t){let n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,I,k,P,K,z,H,se,me,R,{ref:te=void 0}=e,{supportLink:le}=e,{playerControlsHeight:ne=0}=e,{returnFocus:_e}=e,Y=ot(),$=Nt(),E=Y.state.audioStream$;O(i,E,he=>t(57,w=he));let X=Y.state.availableAudioStreams$;O(i,X,he=>t(56,C=he));let oe=Y.state.currentQuality$;O(i,oe,he=>t(60,k=he));let fe=Y.state.availableQualities$;O(i,fe,he=>t(58,F=he));let Re=Y.state.autoQualityLimitingAvailable$;O(i,Re,he=>t(64,H=he));let Ze=Y.state.isAutoQualityEnabled$;O(i,Ze,he=>t(61,P=he));let ce=Y.state.currentPlaybackRate$;O(i,ce,he=>t(55,h=he));let Be=Y.state.availablePlaybackRates$;O(i,Be,he=>t(54,y=he));let De=Y.state.currentSubtitle$;O(i,De,he=>t(53,g=he));let je=Y.state.availableSubtitlesList$;O(i,je,he=>t(51,f=he));let x=Y.state.canDownload,de=Y.state.hasMpegSources$;O(i,de,he=>t(65,se=he));let Ge=Y.ui.settingsMenuVisible;O(i,Ge,he=>t(6,R=he));let ve=Y.ui.settingsMenuOpenedByKeyboard;O(i,ve,he=>t(71,l=he));let He=Y.ui.isMobile;O(i,He,he=>t(5,r=he));let $e=Y.ui.mobileNotReportControlHidden$;O(i,$e,he=>t(62,K=he));let st=Y.state.canChangePlaybackSpeed$;O(i,st,he=>t(63,z=he));let Xe=Y.state.trafficSavingEnabled$;O(i,Xe,he=>t(50,u=he));let Ye=Y.ui.playerSize;O(i,Ye,he=>t(72,me=he));let Ke=Y.ui.debugPanelVisible;O(i,Ke,he=>t(49,s=he));let Z=Y.state.isInteractiveTime$,Ue=Y.ui.additionalSettingsMenuItems$;O(i,Ue,he=>t(48,a=he));let Ce=Y.actions.internal.downloadVideo,Pe=Y.actions.internal.closeSettingsMenu,ze=!0,pe=qe({});O(i,pe,he=>t(52,_=he));let J=!1;function ft(he){t(7,ze=!1);let pt=_;pt[he]=!0,pe.set(pt)}function mt(){l||_e?.(),Ft(),Pe(),J=!1}function et(he){Y.actions.internal.setQuality(he),mt()}function lt(he){Y.actions.internal.setAudioStream(he),mt()}function Ot(he){Y.actions.internal.setTrafficSavingEnabled(he)}function Ct(he){Y.actions.internal.setPlaybackRate(he),mt()}function it(he){Y.actions.internal.setSubtitle(he),mt()}function Ft(){t(7,ze=!0);let he=_;Object.keys(he).forEach(pt=>{he[pt]=!1}),pe.set(he)}function At(){Ce()}function Qt(){(0,lm.isValidURL)(le)&&window.open(le,"_blank"),Y.actions.internal.reportProblem(),Y.actions.internal.pause()}function ct(){vr(Y.actions.internal.getDebugTextData())}let bt=()=>{let he=Y.actions.internal.getTraceTextData(),pt=new Blob([...he],{type:"application/json"}),fi=window.URL.createObjectURL(pt);qo(fi,"vk_player_trace_info","json")};function Zt(){Ke.set(!s)}function Kt(){J=!0}function Xt(){J=!1}function si(){return r?`max-height: ${Math.round(me.height*.6)}px`:`max-height: ${me.height-32-ne}px; overflow: auto;`}let we,Tt,Et,jt,wt,Ht,Ut,Lt=qe();O(i,Lt,he=>t(59,I=he));let ii={},Jt={},Ci=he=>{Nl(he,Pe)},Pt=[];St(()=>{let he=Z.subscribe(pt=>{pt&&!r&&!J&&!l&&mt()});return()=>{he()}});let pi=he=>ft(he.id);function Mi(he,pt){i.$$.not_equal(ii[pt.id],he)&&(ii[pt.id]=he,t(2,ii))}function _i(he){be[he?"unshift":"push"](()=>{te=he,t(0,te)})}function gi(he,pt){i.$$.not_equal(Jt[pt.id],he)&&(Jt[pt.id]=he,t(3,Jt))}return i.$$set=he=>{"ref"in he&&t(0,te=he.ref),"supportLink"in he&&t(37,le=he.supportLink),"playerControlsHeight"in he&&t(1,ne=he.playerControlsHeight),"returnFocus"in he&&t(38,_e=he.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&64&&R&&Ft(),i.$$.dirty[1]&1744830464&&t(46,n=Jl(k,F,P)),i.$$.dirty[2]&9&&t(39,we=x&&se&&!K),i.$$.dirty[2]&5&&t(40,Tt=$.features.trafficSaving&&!K&&H),i.$$.dirty[1]&1048576|i.$$.dirty[2]&1&&t(41,Et=f.length>0&&!K),i.$$.dirty[2]&3&&t(42,jt=!!z&&!K),i.$$.dirty[1]&33554432|i.$$.dirty[2]&1&&t(43,wt=$.features.audioLanguages&&C.length>=2&&!K),i.$$.dirty[2]&1&&t(47,o=!K),i.$$.dirty[1]&1610612736&&t(44,Ht=P?U("auto_quality_option"):k),i.$$.dirty[1]&25165824&&t(45,Ut=y.find(he=>he.value===h)?.displayValue),i.$$.dirty[0]&4|i.$$.dirty[1]&268435456){let he=I;he&&(Md(ii[he]),Lt.set(void 0))}i.$$.dirty[0]&56|i.$$.dirty[1]&268435200&&(t(4,Pt=[]),o&&Pt.push({id:"quality-settings",weight:jn["quality-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let he=F.findIndex(pt=>pt.selected);return Jt["quality-settings"].children[he+1]},ariaLabel:U("aria_label_menu_quality",{actual:Ht}),icon:Ql,label:U("menu_quality"),value:n,valueComponent:K1,subMenu:{show:_["quality-settings"],title:U("submenu_quality"),closeSettingsMenu:Pe,backToMainSettings:Ft,itemIdReturnCase:Lt,selectItem:et,items:F.map(he=>({value:he.value,valueComponent:Xl,valueComponentParams:{quality:he.value,label:he.displayValue,isMobile:r,isSubCase:!0},selected:he.selected,label:he.displayValue}))}}),wt&&Pt.push({id:"audio-language-settings",weight:jn["audio-language-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let he=C.findIndex(pt=>pt.id===w?.id);return Jt["audio-language-settings"].children[he+1]},ariaLabel:U("aria_label_menu_audio_languages",{actual:Kl(w,C)}),icon:q1,label:U("menu_audio_languages"),value:Kl(w,C),subMenu:{show:_["audio-language-settings"],title:U("submenu_audio_languages"),closeSettingsMenu:Pe,backToMainSettings:Ft,itemIdReturnCase:Lt,selectItem:lt,items:C.map(he=>({value:he,dataValue:he.id,selected:he.id===w?.id,label:Kl(he,C)}))}}),jt&&Pt.push({id:"playback-rate-settings",weight:jn["playback-rate-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let he=y.findIndex(pt=>pt.selected);return Jt["playback-rate-settings"].children[he+1]},ariaLabel:U("aria_label_menu_rate",{actual:Ut}),icon:F1,label:U("menu_playback_rate"),value:`${h}x`,subMenu:{show:_["playback-rate-settings"],title:U("submenu_playback_rate"),closeSettingsMenu:Pe,backToMainSettings:Ft,itemIdReturnCase:Lt,selectItem:Ct,items:y.map(he=>({value:he.value,selected:he.selected,label:he.displayValue}))}}),Et&&Pt.push({id:"subtitles-settings",weight:jn["subtitles-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let he=f.findIndex(pt=>pt.selected);return Jt["subtitles-settings"].children[he+1]},ariaLabel:U("aria_label_menu_subtitle",{actual:g.displayValue}),icon:Zl,label:U("subtitles_caption"),value:g.displayValue,subMenu:{show:_["subtitles-settings"],minWidth:164,title:U("subtitles_caption"),closeSettingsMenu:Pe,backToMainSettings:Ft,itemIdReturnCase:Lt,selectItem:it,items:f.map(he=>({value:he,selected:he.selected,label:he.displayValue}))}}),Tt&&Pt.push({id:"traffic-saving-settings",weight:jn["traffic-saving-settings"],type:"SWITCH",onClick:Ot,ariaLabel:u?U("aria_label_submenu_traffic_saving_off"):`${U("aria_label_submenu_traffic_saving_on")}. ${U("traffic_saving_helper_text")}`,icon:O1,label:U("menu_traffic_saving"),enabled:u,tooltipText:U("traffic_saving_helper_text"),maxTooltipWidth:175}),we&&Pt.push({id:"download",weight:jn.download,type:"CLICK",onClick:At,label:U("download_video_caption"),ariaLabel:U("aria_label_menu_download"),icon:N1}),$.showSupport&&Pt.push({id:"report",weight:jn.report,type:"CLICK",onClick:Qt,label:U("menu_report"),ariaLabel:`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`,icon:U1,isHiddenFor:["desktop"]}),Pt.push({id:"copy-data",weight:jn["copy-data"],type:"CLICK",onClick:ct,label:U("menu_copy_debug"),ariaLabel:U("menu_copy_debug"),icon:fu,isHiddenFor:["desktop"]}),$.features.saveTraceInfoToFile&&Pt.push({id:"save-trace-info",weight:jn["save-trace-info"],type:"CLICK",onClick:bt,label:U("menu_save_debug"),ariaLabel:U("menu_save_debug"),icon:fu,isHiddenFor:["desktop"]}),Pt.push({id:"debug-info",weight:jn["debug-info"],type:"CLICK",onClick:Zt,label:s?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable"),ariaLabel:U("menu_debug_overlay"),icon:H1,isHiddenFor:["desktop"]}),t(4,Pt=[...Pt,...a.map(he=>({...he,isAdditional:!0}))].filter(he=>!he.isHiddenFor?.length||!he.isHiddenFor?.includes("desktop")&&!r||!he.isHiddenFor?.includes("mobile")&&r).sort((he,pt)=>he.weight-pt.weight)))},[te,ne,ii,Jt,Pt,r,R,ze,E,X,oe,fe,Re,Ze,ce,Be,De,je,de,Ge,ve,He,$e,st,Xe,Ye,Ke,Ue,pe,ft,mt,Ft,Kt,Xt,si,Lt,Ci,le,_e,we,Tt,Et,jt,wt,Ht,Ut,n,o,a,s,u,f,_,g,y,h,C,w,F,I,k,P,K,z,H,se,pi,Mi,_i,gi]}var wu=class extends D{constructor(e){super(),N(this,e,nv,iv,B,{ref:0,supportLink:37,playerControlsHeight:1,returnFocus:38},Jb,[-1,-1,-1,-1])}},$l=wu;function ov(i){Ie(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function rv(i){let e,t,n;return t=new Ql({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=T("span"),L(t.$$.fragment),c(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,l){v(o,e,l),M(t,e,null),n=!0},p(o,l){let r={};l&8&&(r.isMobile=o[3]),l&16&&(r.currentQuality=o[4]),t.$set(r)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function lv(i){let e,t,n;function o(r){i[9](r)}let l={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[rv]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"opened":""),a&4&&(s.ariaLabel=r[2]),a&2&&(s.ariaExpanded=r[1]),a&4120&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function sv(i,e,t){let n,o,l,{ref:r=void 0}=e,a=ot(),s=a.state.currentQuality$;O(i,s,C=>t(4,l=C));let u=a.ui.settingsMenuVisible;O(i,u,C=>t(1,n=C));let f=a.actions.internal.toggleSettingsMenu,_=a.ui.isMobile;O(i,_,C=>t(3,o=C));let g;function y(C){let w=yr(C);f(w)}function h(C){r=C,t(0,r)}return i.$$set=C=>{"ref"in C&&t(0,r=C.ref)},i.$$.update=()=>{i.$$.dirty&2&&t(2,g=n?U("tooltip_settings_on"):U("tooltip_settings_off"))},[r,n,g,o,l,s,u,_,y,h]}var Cu=class extends D{constructor(e){super(),N(this,e,sv,lv,B,{ref:0},ov)}},el=Cu;function av(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function uv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Su=class extends D{constructor(e){super(),N(this,e,uv,av,B,{})}},sm=Su;function cv(i){let e,t;return e=new Zl({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function fv(i){let e,t;return e=new sm({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function dv(i){let e,t,n,o,l=[fv,cv],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=tt()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e!==f&&(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t||(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function mv(i){let e,t;return e=new gt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Xn.KeyC,$$slots:{default:[dv]},$$scope:{ctx:i}}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&4&&(l.ariaLabel=n[2]),o&2&&(l.click=n[1]),o&9&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function pv(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,l;return i.$$set=r=>{"isSubtitlesEnabled"in r&&t(0,n=r.isSubtitlesEnabled),"click"in r&&t(1,o=r.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,l=n?U("tooltip_subtitles_on"):U("tooltip_subtitles_off"))},[n,o,l]}var Iu=class extends D{constructor(e){super(),N(this,e,pv,mv,B,{isSubtitlesEnabled:0,click:1})}},am=Iu;function _v(i){Ie(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 um(i){let e,t;return{c(){e=T("span"),t=Ne(i[3]),c(e,"class","duration svelte-19o2urr")},m(n,o){v(n,e,o),p(e,t)},p(n,o){o&8&&xe(t,n[3])},d(n){n&&b(e)}}}function gv(i){let e,t,n,o,l=i[2]&&um(i);return{c(){e=T("div"),t=T("span"),n=Ne(i[4]),o=q(),l&&l.c(),c(t,"class","current svelte-19o2urr"),c(e,"class","time svelte-19o2urr"),W(e,"mobile",i[1])},m(r,a){v(r,e,a),p(e,t),p(t,n),p(e,o),l&&l.m(e,null),i[7](e)},p(r,[a]){a&16&&xe(n,r[4]),r[2]?l?l.p(r,a):(l=um(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&2&&W(e,"mobile",r[1])},i:ge,o:ge,d(r){r&&b(e),l&&l.d(),i[7](null)}}}function hv(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:l}=e,{showDuration:r=!0}=e,{ref:a}=e,s,u;function f(_){be[_?"unshift":"push"](()=>{a=_,t(0,a)})}return i.$$set=_=>{"isMobile"in _&&t(1,n=_.isMobile),"duration"in _&&t(5,o=_.duration),"position"in _&&t(6,l=_.position),"showDuration"in _&&t(2,r=_.showDuration),"ref"in _&&t(0,a=_.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,s=Sn(o)),i.$$.dirty&64&&t(4,u=Sn(l))},[a,n,r,s,u,o,l,f]}var Tu=class extends D{constructor(e){super(),N(this,e,hv,gv,B,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},_v)}},es=Tu;var fo=require("@vkontakte/videoplayer-shared");function bv(i){Ie(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 vv(i){let e,t,n,o,l,r;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),l=V("path"),c(n,"class","wave2 svelte-1n5yyua"),c(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"),c(o,"class","wave1 svelte-1n5yyua"),c(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"),c(l,"class","cross svelte-1n5yyua"),c(l,"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"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(e,"data-value",i[0]),c(e,"data-testid",r="volume-"+i[0]+"-icon"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","icon svelte-1n5yyua"),c(e,"aria-hidden","true")},m(a,s){v(a,e,s),p(e,t),p(t,n),p(t,o),p(t,l)},p(a,[s]){s&1&&c(e,"data-value",a[0]),s&1&&r!==(r="volume-"+a[0]+"-icon")&&c(e,"data-testid",r)},i:ge,o:ge,d(a){a&&b(e)}}}function yv(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,l=(a,s)=>s?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",r;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,r=l(n,o))},[r,n,o]}var Pu=class extends D{constructor(e){super(),N(this,e,yv,vv,B,{volume:1,muted:2},bv)}},Qo=Pu;var Dn=require("@vkontakte/videoplayer-shared");var cm=require("@vkontakte/videoplayer-shared");function kv(i){Ie(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 wv(i){let e,t=i[19].default,n=Ee(t,i,i[24],null);return{c(){n&&n.c()},m(o,l){n&&n.m(o,l),e=!0},p(o,l){n&&n.p&&(!e||l&16777216)&&Ae(n,t,o,o[24],e?Me(t,o[24],l,null):Le(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){m(n,o),e=!1},d(o){n&&n.d(o)}}}function Cv(i){let e,t;return e=new Pr({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[Sv]},$$scope:{ctx:i}}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&2048&&(l.content=n[11]),o&512&&(l.translateX=n[9]),o&1024&&(l.translateY=n[10]),o&16&&(l.isFullWidthWrapper=n[4]),o&32&&(l.active=n[5]),o&64&&(l.placement=n[6]),o&256&&(l.onVisibilityChange=n[8]),o&16777216&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Sv(i){let e,t=i[19].default,n=Ee(t,i,i[24],null);return{c(){n&&n.c()},m(o,l){n&&n.m(o,l),e=!0},p(o,l){n&&n.p&&(!e||l&16777216)&&Ae(n,t,o,o[24],e?Me(t,o[24],l,null):Le(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){m(n,o),e=!1},d(o){n&&n.d(o)}}}function Iv(i){let e,t,n,o,l,r,a,s,u,f=[Cv,wv],_=[];function g(y,h){return y[3]&&y[11]&&!y[12]?0:1}return t=g(i,-1),n=_[t]=f[t](i),{c(){e=T("div"),n.c(),c(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),c(e,"aria-hidden",l=i[7]||null)},m(y,h){v(y,e,h),_[t].m(e,null),i[23](e),a=!0,s||(u=[ar(r=Ir.call(null,e)),Te(e,"fd:resize",i[22]),Te(e,"pointerdown",_t(i[20])),Te(e,"click",_t(i[21]))],s=!0)},p(y,[h]){let C=t;t=g(y,h),t===C?_[t].p(y,h):(ae(),m(_[C],1,1,()=>{_[C]=null}),ue(),n=_[t],n?n.p(y,h):(n=_[t]=f[t](y),n.c()),d(n,1),n.m(e,null)),(!a||h&4&&o!==(o="btn-container "+y[2]+" svelte-p9r045"))&&c(e,"class",o),(!a||h&128&&l!==(l=y[7]||null))&&c(e,"aria-hidden",l)},i(y){a||(d(n),a=!0)},o(y){m(n),a=!1},d(y){y&&b(e),_[t].d(),i[23](null),s=!1,ut(u)}}}function Tv(i,e,t){let n,o,{$$slots:l={},$$scope:r}=e,{className:a=""}=e,{disabled:s=!1}=e,{hasTooltip:u=!0}=e,{ref:f=void 0}=e,{width:_=void 0}=e,{isFullWidthTooltip:g=!0}=e,{tooltipContent:y=""}=e,{tooltipActive:h=!1}=e,{tooltipPlacement:C="top"}=e,{disabledTooltipContent:w=U("tooltip_button_disabled")}=e,{isAriaHidden:F=!1}=e,{onTooltipVisibilityChange:I=cm.noop}=e,{initialTranslateXPx:k=0}=e,{initialTranslateYPx:P=-18}=e,K=ot(),z=K.ui.isMobile;O(i,z,ne=>t(12,o=ne));let H=K.state.graphIsOpened$;O(i,H,ne=>t(18,n=ne));let se;function me(ne){Cn.call(this,i,ne)}function R(ne){Cn.call(this,i,ne)}let te=ne=>{t(1,_=ne.target.clientWidth)};function le(ne){be[ne?"unshift":"push"](()=>{f=ne,t(0,f)})}return i.$$set=ne=>{"className"in ne&&t(2,a=ne.className),"disabled"in ne&&t(15,s=ne.disabled),"hasTooltip"in ne&&t(3,u=ne.hasTooltip),"ref"in ne&&t(0,f=ne.ref),"width"in ne&&t(1,_=ne.width),"isFullWidthTooltip"in ne&&t(4,g=ne.isFullWidthTooltip),"tooltipContent"in ne&&t(16,y=ne.tooltipContent),"tooltipActive"in ne&&t(5,h=ne.tooltipActive),"tooltipPlacement"in ne&&t(6,C=ne.tooltipPlacement),"disabledTooltipContent"in ne&&t(17,w=ne.disabledTooltipContent),"isAriaHidden"in ne&&t(7,F=ne.isAriaHidden),"onTooltipVisibilityChange"in ne&&t(8,I=ne.onTooltipVisibilityChange),"initialTranslateXPx"in ne&&t(9,k=ne.initialTranslateXPx),"initialTranslateYPx"in ne&&t(10,P=ne.initialTranslateYPx),"$$scope"in ne&&t(24,r=ne.$$scope)},i.$$.update=()=>{i.$$.dirty&491520&&(s?t(11,se=n?U("tooltip_disabled_when_graph_on"):w):t(11,se=y))},[f,_,a,u,g,h,C,F,I,k,P,se,o,z,H,s,y,w,n,l,me,R,te,le,r]}var Eu=class extends D{constructor(e){super(),N(this,e,Tv,Iv,B,{className:2,disabled:15,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:16,tooltipActive:5,tooltipPlacement:6,disabledTooltipContent:17,isAriaHidden:7,onTooltipVisibilityChange:8,initialTranslateXPx:9,initialTranslateYPx:10},kv)}},Mt=Eu;function Pv(i){let e,t,n,o,l,r;return{c(){e=V("svg"),t=V("rect"),o=V("path"),c(t,"width","20"),c(t,"height","20"),c(t,"rx","10"),c(t,"fill","white"),c(t,"fill-opacity",n=i[0]?1:.24),c(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"),c(o,"fill",l=i[0]?"var(--interactive-episode-complete)":"white"),c(e,"width","20"),c(e,"height","20"),c(e,"viewBox","0 0 20 20"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid",r=(i[0],"interactive-episode-completed-icon"))},m(a,s){v(a,e,s),p(e,t),p(e,o)},p(a,[s]){s&1&&n!==(n=a[0]?1:.24)&&c(t,"fill-opacity",n),s&1&&l!==(l=a[0]?"var(--interactive-episode-complete)":"white")&&c(o,"fill",l),s&1&&r!==(r=(a[0],"interactive-episode-completed-icon"))&&c(e,"data-testid",r)},i:ge,o:ge,d(a){a&&b(e)}}}function Ev(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var Mu=class extends D{constructor(e){super(),N(this,e,Ev,Pv,B,{completed:0})}},ts=Mu;function Mv(i){Ie(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 Av(i){let e,t,n,o,l,r,a;return t=new ts({props:{completed:!!i[0].completed}}),{c(){e=T("div"),L(t.$$.fragment),c(e,"class","interactive-episode-icon svelte-bklhpe"),c(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),W(e,"disabled",i[1])},m(s,u){v(s,e,u),M(t,e,null),l=!0,r||(a=[ar(o=Ir.call(null,e)),Te(e,"fd:resize",i[3])],r=!0)},p(s,u){let f={};u&1&&(f.completed=!!s[0].completed),t.$set(f),(!l||u&1&&n!==(n=`left: ${s[0].from+s[0].width/2}%`))&&c(e,"style",n),(!l||u&2)&&W(e,"disabled",s[1])},i(s){l||(d(t.$$.fragment,s),l=!0)},o(s){m(t.$$.fragment,s),l=!1},d(s){s&&b(e),A(t),r=!1,ut(a)}}}function Lv(i){let e,t;return e=new Mt({props:{tooltipContent:U(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:[Av]},$$scope:{ctx:i}}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.tooltipContent=U(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(l.disabled=n[1]),o&4&&(l.width=n[2]||0),o&23&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Vv(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,l,r=a=>{t(2,l=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,l,r]}var Au=class extends D{constructor(e){super(),N(this,e,Vv,Lv,B,{videoEpisode:0,disabled:1},Mv)}},fm=Au;function Rv(i){Ie(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 dm(i,e,t){let n=i.slice();return n[3]=e[t],n}function mm(i){let e,t,n,o,l,r,a,s,u;return{c(){e=T("div"),t=T("div"),n=T("div"),l=q(),r=T("div"),s=q(),c(n,"class","video-episode-loaded svelte-1rzxunm"),c(n,"style",o=`transform: translateX(${i[3].loadedWidth/i[3].width*100}%)`),c(r,"class","video-episode-filled svelte-1rzxunm"),c(r,"style",a=`transform: translateX(${i[3].filledWidth/i[3].width*100}%)`),W(r,"mobile",i[1]),c(t,"class","video-episode-inner svelte-1rzxunm"),c(e,"class","video-episode svelte-1rzxunm"),c(e,"style",u=`left: ${i[3].from}%; width: ${i[3].width}%`),W(e,"disabled",i[2]),W(e,"mobile",i[1])},m(f,_){v(f,e,_),p(e,t),p(t,n),p(t,l),p(t,r),p(e,s)},p(f,_){_&1&&o!==(o=`transform: translateX(${f[3].loadedWidth/f[3].width*100}%)`)&&c(n,"style",o),_&1&&a!==(a=`transform: translateX(${f[3].filledWidth/f[3].width*100}%)`)&&c(r,"style",a),_&2&&W(r,"mobile",f[1]),_&1&&u!==(u=`left: ${f[3].from}%; width: ${f[3].width}%`)&&c(e,"style",u),_&4&&W(e,"disabled",f[2]),_&2&&W(e,"mobile",f[1])},d(f){f&&b(e)}}}function Bv(i){let e,t=yt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=mm(dm(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","video-episodes-wrap svelte-1rzxunm")},m(o,l){v(o,e,l);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,[l]){if(l&7){t=yt(o[0]);let r;for(r=0;r<t.length;r+=1){let a=dm(o,t,r);n[r]?n[r].p(a,l):(n[r]=mm(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},i:ge,o:ge,d(o){o&&b(e),li(n,o)}}}function Dv(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e,{disabled:l}=e;return i.$$set=r=>{"videoEpisodes"in r&&t(0,n=r.videoEpisodes),"isMobile"in r&&t(1,o=r.isMobile),"disabled"in r&&t(2,l=r.disabled)},[n,o,l]}var Lu=class extends D{constructor(e){super(),N(this,e,Dv,Bv,B,{videoEpisodes:0,isMobile:1,disabled:2},Rv)}},pm=Lu;function Nv(i){Ie(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 _m(i,e,t){let n=i.slice();return n[50]=e[t],n}function gm(i){let e,t,n=yt(i[21]),o=[];for(let r=0;r<n.length;r+=1)o[r]=bm(_m(i,n,r));let l=r=>m(o[r],1,1,()=>{o[r]=null});return{c(){e=T("div");for(let r=0;r<o.length;r+=1)o[r].c();c(e,"class","interactive-icons svelte-v8ydei"),W(e,"mobile",i[6]),W(e,"hidden",i[6]&&!i[20])},m(r,a){v(r,e,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(e,null);t=!0},p(r,a){if(a[0]&2098176){n=yt(r[21]);let s;for(s=0;s<n.length;s+=1){let u=_m(r,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=bm(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(ae(),s=n.length;s<o.length;s+=1)l(s);ue()}(!t||a[0]&64)&&W(e,"mobile",r[6]),(!t||a[0]&1048640)&&W(e,"hidden",r[6]&&!r[20])},i(r){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)m(o[a]);t=!1},d(r){r&&b(e),li(o,r)}}}function hm(i){let e,t;return e=new fm({props:{videoEpisode:i[50],disabled:i[10]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisode=n[50]),o[0]&1024&&(l.disabled=n[10]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function bm(i){let e,t,n=i[50].interactive&&hm(i);return{c(){n&&n.c(),e=tt()},m(o,l){n&&n.m(o,l),v(o,e,l),t=!0},p(o,l){o[50].interactive?n?(n.p(o,l),l[0]&2097152&&d(n,1)):(n=hm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),m(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function Ov(i){let e,t,n,o,l,r;return{c(){e=T("div"),t=T("div"),o=q(),l=T("div"),c(t,"class","loaded svelte-v8ydei"),c(t,"style",n=`transform: translateX(${i[12]*100}%);`),c(l,"class","filled svelte-v8ydei"),c(l,"style",r=`transform: translateX(${i[13]*100}%);`),W(l,"active-live",i[5]),W(l,"ads",i[7]),c(e,"class","bars svelte-v8ydei")},m(a,s){v(a,e,s),p(e,t),p(e,o),p(e,l)},p(a,s){s[0]&4096&&n!==(n=`transform: translateX(${a[12]*100}%);`)&&c(t,"style",n),s[0]&8192&&r!==(r=`transform: translateX(${a[13]*100}%);`)&&c(l,"style",r),s[0]&32&&W(l,"active-live",a[5]),s[0]&128&&W(l,"ads",a[7])},i:ge,o:ge,d(a){a&&b(e)}}}function Fv(i){let e,t;return e=new pm({props:{videoEpisodes:i[21],disabled:i[10],isMobile:i[6]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisodes=n[21]),o[0]&1024&&(l.disabled=n[10]),o[0]&64&&(l.isMobile=n[6]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function qv(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h=i[9]&&gm(i),C=[Fv,Ov],w=[];function F(I,k){return I[21].length?0:1}return n=F(i,[-1,-1]),o=w[n]=C[n](i),{c(){h&&h.c(),e=q(),t=T("div"),o.c(),l=q(),r=T("div"),a=T("div"),c(a,"class","handle svelte-v8ydei"),W(a,"active-live",i[5]),c(r,"class","handleWrap svelte-v8ydei"),c(r,"style",s=`transform: translateX(${i[14]*100}%);`),W(r,"hidden",i[11]),c(t,"class",u="slider "+i[1]+" svelte-v8ydei"),c(t,"aria-label",i[15]),c(t,"aria-valuemin",i[16]),c(t,"aria-valuemax",i[17]),c(t,"aria-valuenow",i[18]),c(t,"aria-valuetext",i[19]),c(t,"role","slider"),c(t,"tabindex","0"),c(t,"data-testid",f=i[2]??null),W(t,"disabled",i[10]),W(t,"slider-dragging",i[20]),W(t,"hidden",i[3]),W(t,"slider-vertical",i[4]),W(t,"no-handle",i[11]),W(t,"square",i[8])},m(I,k){h&&h.m(I,k),v(I,e,k),v(I,t,k),w[n].m(t,null),p(t,l),p(t,r),p(r,a),i[44](t),_=!0,g||(y=[Te(t,"pointerdown",ei(i[22])),Te(t,"pointermove",ei(i[23])),Te(t,"pointerup",ei(i[24])),Te(t,"pointerenter",ei(i[25])),Te(t,"pointerleave",ei(i[26])),Te(t,"click",_t(i[28])),Te(t,"wheel",i[27])],g=!0)},p(I,k){I[9]?h?(h.p(I,k),k[0]&512&&d(h,1)):(h=gm(I),h.c(),d(h,1),h.m(e.parentNode,e)):h&&(ae(),m(h,1,1,()=>{h=null}),ue());let P=n;n=F(I,k),n===P?w[n].p(I,k):(ae(),m(w[P],1,1,()=>{w[P]=null}),ue(),o=w[n],o?o.p(I,k):(o=w[n]=C[n](I),o.c()),d(o,1),o.m(t,l)),(!_||k[0]&32)&&W(a,"active-live",I[5]),(!_||k[0]&16384&&s!==(s=`transform: translateX(${I[14]*100}%);`))&&c(r,"style",s),(!_||k[0]&2048)&&W(r,"hidden",I[11]),(!_||k[0]&2&&u!==(u="slider "+I[1]+" svelte-v8ydei"))&&c(t,"class",u),(!_||k[0]&32768)&&c(t,"aria-label",I[15]),(!_||k[0]&65536)&&c(t,"aria-valuemin",I[16]),(!_||k[0]&131072)&&c(t,"aria-valuemax",I[17]),(!_||k[0]&262144)&&c(t,"aria-valuenow",I[18]),(!_||k[0]&524288)&&c(t,"aria-valuetext",I[19]),(!_||k[0]&4&&f!==(f=I[2]??null))&&c(t,"data-testid",f),(!_||k[0]&1026)&&W(t,"disabled",I[10]),(!_||k[0]&1048578)&&W(t,"slider-dragging",I[20]),(!_||k[0]&10)&&W(t,"hidden",I[3]),(!_||k[0]&18)&&W(t,"slider-vertical",I[4]),(!_||k[0]&2050)&&W(t,"no-handle",I[11]),(!_||k[0]&258)&&W(t,"square",I[8])},i(I){_||(d(h),d(o),_=!0)},o(I){m(h),m(o),_=!1},d(I){I&&(b(e),b(t)),h&&h.d(I),w[n].d(),i[44](null),g=!1,ut(y)}}}function Hv(i,e,t){let n,o,{ref:l=void 0}=e,{className:r=""}=e,{testId:a=void 0}=e,{isHidden:s=!1}=e,{isVertical:u=!1}=e,{isActiveLive:f=!1}=e,{isMobile:_=!1}=e,{isAds:g=!1}=e,{squareBorders:y=!1}=e,{videoEpisodes:h=[]}=e,{withWheelHandler:C=!1}=e,{isInteractive:w=!1}=e,{disabled:F=!1}=e,{hideHandel:I=!1}=e,k,{onPointerDown:P=Dn.noop}=e,{onHandleMove:K=Dn.noop}=e,{onPointerUp:z=Dn.noop}=e,{onPointerEnter:H=Dn.noop}=e,{onPointerMove:se=Dn.noop}=e,{onPointerLeave:me=Dn.noop}=e,{onWheelUp:R=Dn.noop}=e,{onWheelDown:te=Dn.noop}=e,{onWheelLeft:le=Dn.noop}=e,{onWheelRight:ne=Dn.noop}=e,{onDisabledClick:_e=Dn.noop}=e,{loadedProgress:Y=0}=e,{filledProgress:$=0}=e,{handleProgress:E=0}=e,{ariaLabel:X=""}=e,{ariaValueMin:oe=void 0}=e,{ariaValueMax:fe=void 0}=e,{ariaValueNow:Re=void 0}=e,{ariaValueText:Ze=""}=e,ce=Nt(),Be=!1,De;function je(Z){if(l&&(k=l.getBoundingClientRect()),F||Be||!l)return;t(20,Be=!0);let Ue=st(Z.clientX,Z.clientY);P(Ue),l.setPointerCapture(Z.pointerId)}function x(Z){if(F)return;let Ue=st(Z.clientX,Z.clientY),Ce=Xe(Z.clientX);se(Ue,Ce,k.width),Be&&K(Ue)}function de(Z){if(F||!Be)return;t(20,Be=!1);let Ue=st(Z.clientX,Z.clientY);z(Ue)}function Ge(Z){if(l&&(k=l.getBoundingClientRect()),F)return;let Ue=st(Z.clientX,Z.clientY),Ce=Xe(Z.clientX);H(Ue,Ce,k.width)}function ve(){F||me()}function He(Z){F||C&&(Z.preventDefault(),Z.deltaY<0?R():Z.deltaY>0?te():Z.deltaX>0?ne():le())}function $e(Z){F&&_e(st(Z.clientX,Z.clientY))}function st(Z,Ue){return u?Math.max(0,Math.min(1,(k.height-(Ue-k.top))/k.height)):Math.min(Math.max(Z-k.x,0),k.width)/k.width}function Xe(Z){return Math.min(Math.max(Z-k.x,0),k.width)}function Ye(Z,Ue){let Ce=ce.features.episodesClustering&&!w?ce.episodeMinWidthPc:0,Pe=[],ze=0,pe=0,J=0;for(let et=1;et<h.length;et++)pe=h[et].time/De*100,pe-ze>Ce&&(Pe.push({from:ze,width:Math.max(0,pe-ze),loadedWidth:Math.max(0,Math.min(pe,Z)-ze),filledWidth:Math.max(0,Math.min(pe,Ue)-ze),interactive:h[et-1].interactive,completed:h[et-1].completed}),ze=h[et].time/De*100,J++);let ft={from:ze,width:Math.max(0,100-ze),loadedWidth:Math.max(0,Math.min(Z,100)-ze),filledWidth:Math.max(0,Math.min(Ue,100)-ze),interactive:h[J].interactive,completed:h[J].completed};100-ze<Ce?(J-=1,Pe[J].width+=100-ze,Pe[J].loadedWidth+=Math.max(0,Math.min(Z,100)-ze),Pe[J].filledWidth+=Math.max(0,Math.min(Ue,100)-ze)):Pe[J]=ft;let mt=h[0].time;if(mt!==0){let et=mt/De*100;Pe.unshift({from:0,width:et,loadedWidth:Math.min(et,Z),filledWidth:Math.min(et,Ue)})}return Pe}function Ke(Z){be[Z?"unshift":"push"](()=>{l=Z,t(0,l)})}return i.$$set=Z=>{"ref"in Z&&t(0,l=Z.ref),"className"in Z&&t(1,r=Z.className),"testId"in Z&&t(2,a=Z.testId),"isHidden"in Z&&t(3,s=Z.isHidden),"isVertical"in Z&&t(4,u=Z.isVertical),"isActiveLive"in Z&&t(5,f=Z.isActiveLive),"isMobile"in Z&&t(6,_=Z.isMobile),"isAds"in Z&&t(7,g=Z.isAds),"squareBorders"in Z&&t(8,y=Z.squareBorders),"videoEpisodes"in Z&&t(29,h=Z.videoEpisodes),"withWheelHandler"in Z&&t(30,C=Z.withWheelHandler),"isInteractive"in Z&&t(9,w=Z.isInteractive),"disabled"in Z&&t(10,F=Z.disabled),"hideHandel"in Z&&t(11,I=Z.hideHandel),"onPointerDown"in Z&&t(31,P=Z.onPointerDown),"onHandleMove"in Z&&t(32,K=Z.onHandleMove),"onPointerUp"in Z&&t(33,z=Z.onPointerUp),"onPointerEnter"in Z&&t(34,H=Z.onPointerEnter),"onPointerMove"in Z&&t(35,se=Z.onPointerMove),"onPointerLeave"in Z&&t(36,me=Z.onPointerLeave),"onWheelUp"in Z&&t(37,R=Z.onWheelUp),"onWheelDown"in Z&&t(38,te=Z.onWheelDown),"onWheelLeft"in Z&&t(39,le=Z.onWheelLeft),"onWheelRight"in Z&&t(40,ne=Z.onWheelRight),"onDisabledClick"in Z&&t(41,_e=Z.onDisabledClick),"loadedProgress"in Z&&t(12,Y=Z.loadedProgress),"filledProgress"in Z&&t(13,$=Z.filledProgress),"handleProgress"in Z&&t(14,E=Z.handleProgress),"ariaLabel"in Z&&t(15,X=Z.ariaLabel),"ariaValueMin"in Z&&t(16,oe=Z.ariaValueMin),"ariaValueMax"in Z&&t(17,fe=Z.ariaValueMax),"ariaValueNow"in Z&&t(18,Re=Z.ariaValueNow),"ariaValueText"in Z&&t(19,Ze=Z.ariaValueText)},i.$$.update=()=>{i.$$.dirty[0]&131072&&t(42,De=fe??0),i.$$.dirty[0]&536870912|i.$$.dirty[1]&2048&&t(43,n=h[h.length-1]?.time<De),i.$$.dirty[0]&536883200|i.$$.dirty[1]&6144&&t(21,o=h.length&&n&&De?Ye(Y*100,$*100):[])},[l,r,a,s,u,f,_,g,y,w,F,I,Y,$,E,X,oe,fe,Re,Ze,Be,o,je,x,de,Ge,ve,He,$e,h,C,P,K,z,H,se,me,R,te,le,ne,_e,De,n,Ke]}var Vu=class extends D{constructor(e){super(),N(this,e,Hv,qv,B,{ref:0,className:1,testId:2,isHidden:3,isVertical:4,isActiveLive:5,isMobile:6,isAds:7,squareBorders:8,videoEpisodes:29,withWheelHandler:30,isInteractive:9,disabled:10,hideHandel:11,onPointerDown:31,onHandleMove:32,onPointerUp:33,onPointerEnter:34,onPointerMove:35,onPointerLeave:36,onWheelUp:37,onWheelDown:38,onWheelLeft:39,onWheelRight:40,onDisabledClick:41,loadedProgress:12,filledProgress:13,handleProgress:14,ariaLabel:15,ariaValueMin:16,ariaValueMax:17,ariaValueNow:18,ariaValueText:19},Nv,[-1,-1])}},Er=Vu;var mi=(i,e)=>Oo[i]>=Oo[e],vm=(i,e)=>Oo[i]<Oo[e],is=(i,e)=>Oo[i]<=Oo[e],ym=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function Uv(i){Ie(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 zv(i){let e,t;return e=new Qo({props:{volume:i[3],muted:i[1]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.volume=n[3]),o[0]&2&&(l.muted=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Wv(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:Xn.KeyM,$$slots:{default:[zv]},$$scope:{ctx:i}}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&512&&(l.disabled=n[9]),o[0]&4&&(l.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(l.ariaLabel=n[7]),o[0]&1&&(l.click=n[0]),o[0]&10|o[1]&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function km(i){let e,t,n;return t=new Er({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]:fo.noop,onPointerLeave:i[2]?i[20]:fo.noop,ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(i[8]*100),ariaValueText:`${Math.round(i[8]*100)}%`,filledProgress:i[8],handleProgress:i[8],testId:i[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=T("div"),L(t.$$.fragment),c(e,"class","volumeBar svelte-1l78lz9"),W(e,"volumeBar-vertical",i[2])},m(o,l){v(o,e,l),M(t,e,null),n=!0},p(o,l){let r={};l[0]&4&&(r.className=o[2]?"volumeBar-slider-vertical":""),l[0]&36&&(r.isHidden=o[2]&&!o[5]),l[0]&4&&(r.isVertical=o[2]),l[0]&4&&(r.onPointerEnter=o[2]?o[19]:fo.noop),l[0]&4&&(r.onPointerLeave=o[2]?o[20]:fo.noop),l[0]&256&&(r.ariaValueNow=Math.round(o[8]*100)),l[0]&256&&(r.ariaValueText=`${Math.round(o[8]*100)}%`),l[0]&256&&(r.filledProgress=o[8]),l[0]&256&&(r.handleProgress=o[8]),l[0]&4&&(r.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(r),(!n||l[0]&4)&&W(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function Kv(i){let e,t,n,o,l,r;t=new Pr({props:{content:i[6],translateY:-18,$$slots:{default:[Wv]},$$scope:{ctx:i}}});let a=i[4]&&km(i);return{c(){e=T("div"),L(t.$$.fragment),n=q(),a&&a.c(),c(e,"class","volumeBar-container svelte-1l78lz9"),W(e,"vertical",i[2])},m(s,u){v(s,e,u),M(t,e,null),p(e,n),a&&a.m(e,null),o=!0,l||(r=[Te(e,"mouseenter",function(){zt(i[2]?i[21]:fo.noop)&&(i[2]?i[21]:fo.noop).apply(this,arguments)}),Te(e,"mouseleave",function(){zt(i[2]?i[22]:fo.noop)&&(i[2]?i[22]:fo.noop).apply(this,arguments)}),Te(e,"wheel",ei(i[23]))],l=!0)},p(s,u){i=s;let f={};u[0]&64&&(f.content=i[6]),u[0]&655|u[1]&32&&(f.$$scope={dirty:u,ctx:i}),t.$set(f),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=km(i),a.c(),d(a,1),a.m(e,null)):a&&(ae(),m(a,1,1,()=>{a=null}),ue()),(!o||u[0]&4)&&W(e,"vertical",i[2])},i(s){o||(d(t.$$.fragment,s),d(a),o=!0)},o(s){m(t.$$.fragment,s),m(a),o=!1},d(s){s&&b(e),A(t),a&&a.d(),l=!1,ut(r)}}}function jv(i,e,t){let n,o,l,r,{click:a}=e,s=ot(),u=Nt(),f=s.state.volume$;O(i,f,ce=>t(3,n=ce));let _=s.state.muted$;O(i,_,ce=>t(25,r=ce));let g=s.actions.internal.setVolume,y=s.ui.currentGridType$;O(i,y,ce=>t(24,l=ce));let h=s.callbacks?.onAudioDoesNotExistHint,C=s.callbacks?.onAudioDisabledHint,w=s.state.isAudioAvailable$;O(i,w,ce=>t(4,o=ce));let F=s.state.isAudioDisabled,I=!1,k,P,K,z,H,se,me=1,R=!1,te=!1;function le(ce){me=n,g(ce)}function ne(){Hl(s,n,u.controls.volumeStepWheel)}function _e(){Ul(s,n,u.controls.volumeStepWheel)}function Y(ce){g(ce)}function $(ce){let Be=ce;g(Be,Be===0?me:Be)}function E(){R=!0}function X(){R=!1,Re()}function oe(){clearTimeout(k),t(5,I=!0)}function fe(){Re()}function Re(){k=window.setTimeout(()=>{R||t(5,I=!1)},u.controls.volumeBarTimeout)}function Ze(ce){ce.deltaY<0?ne():ce.deltaY>0&&_e()}return i.$$set=ce=>{"click"in ce&&t(0,a=ce.click)},i.$$.update=()=>{i.$$.dirty[0]&33554448&&t(1,z=!o||r),i.$$.dirty[0]&16777216&&t(2,H=is(l,"s")),i.$$.dirty[0]&6&&(H?t(6,P=""):t(6,P=z?U("tooltip_volume"):U("tooltip_volume_muted")),t(7,K=z?U("tooltip_volume"):U("tooltip_volume_muted"))),i.$$.dirty[0]&10&&t(8,se=z?0:n),i.$$.dirty[0]&16&&(o?t(9,te=F&&!C):t(9,te=!h))},[a,z,H,n,o,I,P,K,se,te,f,_,y,w,le,ne,_e,Y,$,E,X,oe,fe,Ze,l,r]}var Ru=class extends D{constructor(e){super(),N(this,e,jv,Kv,B,{click:0},Uv,[-1,-1])}},wm=Ru;var Im=require("@vkontakte/videoplayer-shared");function Gv(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,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 f=0;f<s.length;f+=1)u=re(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("path"),c(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"),c(n,"class","_exit"),c(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"),c(o,"class","_enter"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),ke(e,u)},m(f,_){v(f,e,_),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),l=!0},p(f,[_]){a&&a.p&&(!l||_&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],_,null):Le(f[1]),null),ke(e,u=Ve(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},_&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function xv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Bu=class extends D{constructor(e){super(),N(this,e,xv,Gv,B,{})}},Cm=Bu;function Yv(i){Ie(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Qv(i){let e,t;return e=new Cm({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Zv(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Du=class extends D{constructor(e){super(),N(this,e,Zv,Qv,B,{isFullscreen:0},Yv)}},Sm=Du;function Xv(i){let e,t;return e=new Sm({props:{isFullscreen:i[0]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&1&&(l.isFullscreen=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Jv(i){let e,t;return e=new gt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Xn.KeyF,$$slots:{default:[Xv]},$$scope:{ctx:i}}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&4&&(l.ariaLabel=n[2]),o&2&&(l.click=n[1]),o&9&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function $v(i,e,t){let{isFullscreen:n=!1}=e,{click:o=Im.noop}=e,l;return i.$$set=r=>{"isFullscreen"in r&&t(0,n=r.isFullscreen),"click"in r&&t(1,o=r.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,l=n?U("tooltip_fullscreen_on"):U("tooltip_fullscreen_off"))},[n,o,l]}var Nu=class extends D{constructor(e){super(),N(this,e,$v,Jv,B,{isFullscreen:0,click:1})}},ns=Nu;function e4(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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.078z"),ke(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function t4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Ou=class extends D{constructor(e){super(),N(this,e,t4,e4,B,{})}},Mr=Ou;function i4(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(t,"d","M8.712 5c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5zm8 0c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38c.164-.087.326-.134.774-.134z"),ke(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function n4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Fu=class extends D{constructor(e){super(),N(this,e,n4,i4,B,{})}},os=Fu;var Pm=require("@vkontakte/videoplayer-shared");function o4(i){Ie(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 Tm(i){let e;return{c(){e=T("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function r4(i){let e,t,n,o,l=i[1]&&Tm(i);var r=i[8];function a(s,u){return{}}return r&&(n=Dt(r,a(i))),{c(){l&&l.c(),e=q(),t=T("div"),n&&L(n.$$.fragment),c(t,"class","svelte-1ot3duq"),W(t,"mobile",i[1])},m(s,u){l&&l.m(s,u),v(s,e,u),v(s,t,u),n&&M(n,t,null),o=!0},p(s,u){if(s[1]?l||(l=Tm(s),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),u&256&&r!==(r=s[8])){if(n){ae();let f=n;m(f.$$.fragment,1,0,()=>{A(f,1)}),ue()}r?(n=Dt(r,a(s,u)),L(n.$$.fragment),d(n.$$.fragment,1),M(n,t,null)):n=null}(!o||u&2)&&W(t,"mobile",s[1])},i(s){o||(n&&d(n.$$.fragment,s),o=!0)},o(s){n&&m(n.$$.fragment,s),o=!1},d(s){s&&(b(e),b(t)),l&&l.d(s),n&&A(n)}}}function l4(i){let e,t,n;function o(r){i[13](r)}let l={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:Xn.KeyK,$$slots:{default:[r4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&10&&(s.className=(r[1]?"btn-m--play":"")+" "+r[3]),a&112&&(s.click=r[5]?r[6]:r[4]),a&4&&(s.disabled=r[2]),a&128&&(s.ariaLabel=r[7]),a&33026&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function s4(i,e,t){let n,o,{fakeIsPlaying$:l}=Bn();O(i,l,I=>t(12,o=I));let{ref:r=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:f=""}=e,{click:_=Pm.noop}=e,{toggle:g}=l,y,h,C,w;function F(I){r=I,t(0,r)}return i.$$set=I=>{"ref"in I&&t(0,r=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,f=I.className),"click"in I&&t(4,_=I.click)},i.$$.update=()=>{i.$$.dirty&4096&&t(5,h=o!==null),i.$$.dirty&5152&&t(11,C=h?o:s),i.$$.dirty&2048&&t(7,w=C?U("tooltip_pause"):U("tooltip_play")),i.$$.dirty&2048&&t(8,n=C?os:Mr)},t(6,y=g),[r,a,u,f,_,h,y,w,n,l,s,C,o,F]}var qu=class extends D{constructor(e){super(),N(this,e,s4,l4,B,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},o4)}},tl=qu;function a4(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function u4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Hu=class extends D{constructor(e){super(),N(this,e,u4,a4,B,{})}},Em=Hu;function c4(i){let e,t;return e=new Em({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&2&&(l.style=n[1]),o&1&&(l["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function f4(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,l;return i.$$set=r=>{"isPrev"in r&&t(0,n=r.isPrev),"isMobile"in r&&t(2,o=r.isMobile)},i.$$.update=()=>{i.$$.dirty&5&&(n&&o?t(1,l="transform: scaleX(-1) scale(1.3333);"):n?t(1,l="transform: scaleX(-1);"):o?t(1,l="transform: scale(1.3333);"):t(1,l=void 0))},[n,l,o]}var Uu=class extends D{constructor(e){super(),N(this,e,f4,c4,B,{isPrev:0,isMobile:2})}},Mm=Uu;function d4(i){let e,t;return e=new Mm({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&8&&(l.isPrev=n[3]==="prev"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function m4(i){let e,t,n;function o(r){i[6](r)}let l={testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[d4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&8&&(s.testId="btn-"+r[3]),a&4&&(s.disabled=r[2]),a&32&&(s.ariaLabel=r[5]),a&16&&(s.click=r[4]),a&138&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function p4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{type:r}=e,{click:a}=e,s;function u(f){n=f,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"isMobile"in f&&t(1,o=f.isMobile),"disabled"in f&&t(2,l=f.disabled),"type"in f&&t(3,r=f.type),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,s=r==="prev"?U("tooltip_previous"):U("tooltip_next"))},[n,o,l,r,a,s,u]}var zu=class extends D{constructor(e){super(),N(this,e,p4,m4,B,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},Ar=zu;function _4(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),ke(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function g4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Wu=class extends D{constructor(e){super(),N(this,e,g4,_4,B,{})}},Am=Wu;function h4(i){let e,t,n,o,l,r,a=i[2].default,s=Ee(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]],f={};for(let _=0;_<u.length;_+=1)f=re(f,u[_]);return{c(){e=V("svg"),s&&s.c(),t=V("path"),n=V("path"),o=V("path"),l=V("path"),c(t,"fill","#fff"),c(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"),c(n,"fill","#fff"),c(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"),c(n,"class","_ru"),c(o,"fill","#fff"),c(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"),c(o,"class","_en"),c(l,"fill","#fff"),c(l,"fill-rule","evenodd"),c(l,"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"),c(l,"clip-rule","evenodd"),ke(e,f)},m(_,g){v(_,e,g),s&&s.m(e,null),p(e,t),p(e,n),p(e,o),p(e,l),r=!0},p(_,[g]){s&&s.p&&(!r||g&2)&&Ae(s,a,_,_[1],r?Me(a,_[1],g,null):Le(_[1]),null),ke(e,f=Ve(u,[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},g&1&&_[0]]))},i(_){r||(d(s,_),r=!0)},o(_){m(s,_),r=!1},d(_){_&&b(e),s&&s.d(_)}}}function b4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Ku=class extends D{constructor(e){super(),N(this,e,b4,h4,B,{})}},Lm=Ku;function v4(i){Ie(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 y4(i){let e,t;return e=new Lm({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.width=n[0]),o&1&&(l.viewBox="0 0 "+(n[0]+1)+" 24"),o&2&&(l["data-testid"]=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}var k4="vk-video-logo-icon--short";function w4(i,e,t){let{short:n=!1}=e,{isCyrillic:o=!0}=e,l,r;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,l=n?21:95),t(1,r=n?k4:"vk-video-logo-icon"),!o&&!n&&(t(0,l=91),t(1,r="vk-video-logo-icon--en")))},[l,r,n,o]}var ju=class extends D{constructor(e){super(),N(this,e,w4,y4,B,{short:2,isCyrillic:3},v4)}},Vm=ju;function S4(i){let e,t;return e=new Am({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p:ge,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function I4(i){let e,t;return e=new Vm({props:{short:i[4],isCyrillic:i[5]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.short=n[4]),o&32&&(l.isCyrillic=n[5]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function T4(i){let e,t,n,o,l=[I4,S4],r=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=tt()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function P4(i){let e,t,n;function o(r){i[14](r)}let l={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:[T4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.disabled=!r[1]),a&4&&(s.testId=r[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(s.ariaLabel=r[3]),a&131124&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function E4(i,e,t){let n,o,l,{ref:r=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:s=""}=e,{click:u}=e,f=Nt(),_=ot(),g=_.ui.currentGridType$;O(i,g,P=>t(12,n=P));let y=_.ui.isMobile;O(i,y,P=>t(13,o=P));let h=_.isCyrillicRelatedInterface$;O(i,h,P=>t(5,l=P));let C,w,F,I=()=>{u(),_.callbacks?.onLogoClicked?_.callbacks?.onLogoClicked():s&&window.open(s,"_blank")};function k(P){r=P,t(0,r)}return i.$$set=P=>{"ref"in P&&t(0,r=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,F=(o||is(n,"l"))&&w)},t(3,C=f.logoType==="vk_video"?U("tooltip_vk_video_logo"):U("tooltip_vk_logo")),t(2,w=f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),[r,a,w,C,F,l,g,y,h,I,s,u,n,o,k]}var Gu=class extends D{constructor(e){super(),N(this,e,E4,P4,B,{ref:0,logoClickable:1,targetUrl:10,click:11})}},rs=Gu;var Bm=require("@vkontakte/videoplayer-core");var xu=require("@vkontakte/videoplayer-core");function M4(i){Ie(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 A4(i){let e,t,n,o,l,r,a,s;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),l=V("path"),r=V("path"),a=V("path"),s=V("path"),c(n,"class","wave wave1 svelte-8z1bf5"),c(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),c(n,"fill","#fff"),c(o,"class","wave wave2 svelte-8z1bf5"),c(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),c(o,"fill","#fff"),c(l,"class","wave wave3 svelte-8z1bf5"),c(l,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),c(l,"fill","#fff"),c(r,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),c(r,"fill","#fff"),c(a,"d","M0 0h24v24H0z"),c(s,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),c(s,"fill","#fff"),W(s,"hidden",!i[1]),c(t,"fill","none"),c(t,"fill-rule","evenodd"),c(e,"width","24"),c(e,"height","24"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid","chromecast-icon"),c(e,"class","svelte-8z1bf5"),W(e,"connecting",i[2])},m(u,f){v(u,e,f),p(e,t),p(t,n),p(t,o),p(t,l),p(t,r),p(t,a),p(t,s)},p(u,f){f&2&&W(s,"hidden",!u[1]),f&4&&W(e,"connecting",u[2])},d(u){u&&b(e)}}}function L4(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,I,k,P,K;return{c(){e=V("svg"),t=V("g"),n=V("mask"),o=V("path"),r=V("path"),a=V("path"),u=V("path"),f=V("defs"),_=V("clipPath"),g=V("path"),h=V("filter"),C=V("feFlood"),w=V("feColorMatrix"),F=V("feOffset"),I=V("feGaussianBlur"),k=V("feColorMatrix"),P=V("feBlend"),K=V("feBlend"),c(o,"fill",l=i[1]?"#2688EB":"#fff"),c(o,"d","M1.1 3.1h22v18h-22z"),c(r,"fill-rule","evenodd"),c(r,"clip-rule","evenodd"),c(r,"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"),c(n,"id","c"),c(n,"maskUnits","userSpaceOnUse"),c(n,"x","1.1"),c(n,"y","3.1"),c(n,"width","22"),c(n,"height","18"),c(n,"fill","#000"),c(a,"fill-rule","evenodd"),c(a,"clip-rule","evenodd"),c(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"),c(a,"fill",s=i[1]?"#2688EB":"#fff"),c(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"),c(u,"fill","#000"),c(u,"fill-opacity",".12"),c(u,"mask","url(#c)"),c(t,"filter","url(#b)"),c(t,"clip-path","url(#a)"),c(g,"fill",y=i[1]?"#2688EB":"#fff"),c(g,"d","M0 0h24v24H0z"),c(_,"id","a"),c(C,"flood-opacity","0"),c(C,"result","BackgroundImageFix"),c(w,"in","SourceAlpha"),c(w,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(w,"result","hardAlpha"),c(I,"stdDeviation","2.5"),c(k,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(P,"in2","BackgroundImageFix"),c(P,"result","effect1_dropShadow_4085_178456"),c(K,"in","SourceGraphic"),c(K,"in2","effect1_dropShadow_4085_178456"),c(K,"result","shape"),c(h,"id","b"),c(h,"x","-3.4"),c(h,"y","-1.4"),c(h,"width","30.8"),c(h,"height","26.802"),c(h,"filterUnits","userSpaceOnUse"),c(h,"color-interpolation-filters","sRGB"),c(e,"width","24"),c(e,"height","24"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid","chromecast-mobile-icon")},m(z,H){v(z,e,H),p(e,t),p(t,n),p(n,o),p(n,r),p(t,a),p(t,u),p(e,f),p(f,_),p(_,g),p(f,h),p(h,C),p(h,w),p(h,F),p(h,I),p(h,k),p(h,P),p(h,K)},p(z,H){H&2&&l!==(l=z[1]?"#2688EB":"#fff")&&c(o,"fill",l),H&2&&s!==(s=z[1]?"#2688EB":"#fff")&&c(a,"fill",s),H&2&&y!==(y=z[1]?"#2688EB":"#fff")&&c(g,"fill",y)},d(z){z&&b(e)}}}function V4(i){let e;function t(l,r){return l[0]?L4:A4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=tt()},m(l,r){o.m(l,r),v(l,e,r)},p(l,[r]){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:ge,o:ge,d(l){l&&b(e),o.d(l)}}}function R4(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,l,r;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,r=o===xu.ChromecastState.CONNECTING),t(1,l=o===xu.ChromecastState.CONNECTED))},[n,l,r,o]}var Yu=class extends D{constructor(e){super(),N(this,e,R4,V4,B,{isMobile:0,state:3},M4)}},Rm=Yu;var Dm=require("@vkontakte/videoplayer-shared");function B4(i){let e,t;return e=new Rm({props:{isMobile:i[1],state:i[2]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&4&&(l.state=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function D4(i){let e,t,n;function o(r){i[5](r)}let l={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[B4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&16&&(s.ariaLabel=r[4]),a&8&&(s.click=r[3]),a&70&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function N4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:l}=e,{click:r=Dm.noop}=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,l=u.state),"click"in u&&t(3,r=u.click)},i.$$.update=()=>{i.$$.dirty&4&&t(4,a=l===Bm.ChromecastState.CONNECTED?U("tooltip_chromecast_on"):U("tooltip_chromecast_off"))},[n,o,l,r,a,s]}var Qu=class extends D{constructor(e){super(),N(this,e,N4,D4,B,{ref:0,isMobile:1,state:2,click:3})}},ls=Qu;var ss=require("@vkontakte/videoplayer-core");function O4(i){let e,t;return e=new Bl({props:{isActive:i[1]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function F4(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]===ss.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[O4]},$$scope:{ctx:i}}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(l.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(l.disabled=n[1]&&n[3]===ss.PlaybackState.PLAYING),o&4&&(l.ariaLabel=n[2]),o&16&&(l.click=n[4]),o&514&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function q4(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:l=!1}=e,{ariaLabel:r=""}=e,a=ot(),s=a.state.playbackState$;O(i,s,g=>t(3,n=g));let u=a.actions.internal.switchToActiveLive,f=a.actions.internal.togglePlay,_;return i.$$set=g=>{"isMobile"in g&&t(0,o=g.isMobile),"isActiveLive"in g&&t(1,l=g.isActiveLive),"ariaLabel"in g&&t(2,r=g.ariaLabel)},i.$$.update=()=>{i.$$.dirty&10&&t(4,_=()=>{if(!l){u();return}n===ss.PlaybackState.PAUSED&&f()})},[o,l,r,n,_,s]}var Zu=class extends D{constructor(e){super(),N(this,e,q4,F4,B,{isMobile:0,isActiveLive:1,ariaLabel:2})}},as=Zu;function H4(i){Ie(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 U4(i){let e,t,n,o,l=i[9].default,r=Ee(l,i,i[8],null);return{c(){e=T("div"),t=T("div"),r&&r.c(),c(t,"class","tooltip svelte-5ygsa2"),W(t,"active",i[0]),W(t,"pointer",i[1]),c(e,"class","tooltip-wrapper svelte-5ygsa2"),c(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(a,s){v(a,e,s),p(e,t),r&&r.m(t,null),i[10](t),i[11](e),o=!0},p(a,[s]){r&&r.p&&(!o||s&256)&&Ae(r,l,a,a[8],o?Me(l,a[8],s,null):Le(a[8]),null),(!o||s&1)&&W(t,"active",a[0]),(!o||s&2)&&W(t,"pointer",a[1]),(!o||s&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&c(e,"style",n)},i(a){o||(d(r,a),o=!0)},o(a){m(r,a),o=!1},d(a){a&&b(e),r&&r.d(a),i[10](null),i[11](null)}}}function z4(i,e,t){let n,{$$slots:o={},$$scope:l}=e,{active:r=!1}=e,{pointer:a=!1}=e,{translateXPx:s=0}=e,{translateYPx:u=0}=e,{containerWidth:f}=e,_,g;function y(w){if(!g)return 0;let{width:F}=g.getBoundingClientRect(),I=F/2;return w<I?I:w>f-I?f-I:w}function h(w){be[w?"unshift":"push"](()=>{g=w,t(4,g)})}function C(w){be[w?"unshift":"push"](()=>{_=w,t(3,_)})}return i.$$set=w=>{"active"in w&&t(0,r=w.active),"pointer"in w&&t(1,a=w.pointer),"translateXPx"in w&&t(6,s=w.translateXPx),"translateYPx"in w&&t(2,u=w.translateYPx),"containerWidth"in w&&t(7,f=w.containerWidth),"$$scope"in w&&t(8,l=w.$$scope)},i.$$.update=()=>{i.$$.dirty&64&&t(5,n=y(s))},[r,a,u,_,g,n,s,f,l,o,h,C]}var Xu=class extends D{constructor(e){super(),N(this,e,z4,U4,B,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},H4)}},Nm=Xu;var us=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function W4(i){Ie(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 Om(i){let e;function t(l,r){return l[2]&&l[10].completed===!1?j4:K4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=tt()},m(l,r){o.m(l,r),v(l,e,r)},p(l,r){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&b(e),o.d(l)}}}function K4(i){let e=(i[10].text||"")+"",t;return{c(){t=Ne(e)},m(n,o){v(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&xe(t,e)},d(n){n&&b(t)}}}function j4(i){let e=U("tooltip_episode_unfinished")+"",t;return{c(){t=Ne(e)},m(n,o){v(n,t,o)},p:ge,d(n){n&&b(t)}}}function Fm(i){let e,t;return{c(){e=T("div"),t=Ne(i[0]),c(e,"class","time svelte-l51fc1")},m(n,o){v(n,e,o),p(e,t)},p(n,o){o&1&&xe(t,n[0])},d(n){n&&b(e)}}}function G4(i){let e,t,n,o,l,r,a=i[10]&&Om(i),s=!i[2]&&Fm(i);return{c(){e=T("div"),t=T("div"),o=q(),l=T("div"),a&&a.c(),r=q(),s&&s.c(),c(t,"class","preview svelte-l51fc1"),c(t,"style",n=`width: ${i[3]}px; height: ${i[4]}px; background-image: url(${i[5]}); background-size: ${i[6]}px ${i[7]}px; background-position: ${i[8]}px ${i[9]}px; transform: translateY(${i[11]%180?-35:0}px) rotate(${i[11]}deg);`),c(l,"class","episode svelte-l51fc1"),c(e,"class","timeline-preview svelte-l51fc1"),W(e,"mobile",i[1])},m(u,f){v(u,e,f),p(e,t),p(e,o),p(e,l),a&&a.m(l,null),p(e,r),s&&s.m(e,null)},p(u,[f]){f&3064&&n!==(n=`width: ${u[3]}px; height: ${u[4]}px; background-image: url(${u[5]}); background-size: ${u[6]}px ${u[7]}px; background-position: ${u[8]}px ${u[9]}px; transform: translateY(${u[11]%180?-35:0}px) rotate(${u[11]}deg);`)&&c(t,"style",n),u[10]?a?a.p(u,f):(a=Om(u),a.c(),a.m(l,null)):a&&(a.d(1),a=null),u[2]?s&&(s.d(1),s=null):s?s.p(u,f):(s=Fm(u),s.c(),s.m(e,null)),f&2&&W(e,"mobile",u[1])},i:ge,o:ge,d(u){u&&b(e),a&&a.d(),s&&s.d()}}}var Lr=150;function x4(i,e,t){let n,{time:o=""}=e,{isMobile:l=!1}=e,{videoEpisodes:r=[]}=e,{previewThumbsData:a}=e,{progress:s=0}=e,{duration:u=0}=e,{isInteractive:f=!1}=e,g=ot().ui.rotateAlpha;O(i,g,H=>t(11,n=H));let y,h,C,w,F,I,k,P;function K(){let H=a.frameWidth,se=a.frameHeight;return H>Lr?(se=se/H*Lr,H=Lr):se>Lr&&(H=H/se*Lr,se=Lr),{width:H,height:se}}function z(H){let se;a.isUV?se=Math.floor(u*H/a.frequency):se=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*H)));let me=Math.floor(se/a.countPerImage),R=Math.floor(se%a.countPerImage/a.countPerRow),te=se%a.countPerRow,le=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&me===Math.floor(a.countTotal/a.countPerImage)&&(le=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&le++);let ne=a.countPerRow;!a.isUV&&me===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(ne=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let _e=y*ne,Y=h*le,$=-te*y,E=-R*h;return{imgSrc:a.links[me],imgWidth:_e,imgHeight:Y,imgOffsetX:$,imgOffsetY:E}}return i.$$set=H=>{"time"in H&&t(0,o=H.time),"isMobile"in H&&t(1,l=H.isMobile),"videoEpisodes"in H&&t(13,r=H.videoEpisodes),"previewThumbsData"in H&&t(14,a=H.previewThumbsData),"progress"in H&&t(15,s=H.progress),"duration"in H&&t(16,u=H.duration),"isInteractive"in H&&t(2,f=H.isInteractive)},i.$$.update=()=>{i.$$.dirty&32768&&t(5,{imgSrc:C,imgWidth:w,imgHeight:F,imgOffsetX:I,imgOffsetY:k}=z(s),C,(t(6,w),t(15,s)),(t(7,F),t(15,s)),(t(8,I),t(15,s)),(t(9,k),t(15,s))),i.$$.dirty&106496&&t(10,P=us(s,u,r))},t(3,{width:y,height:h}=K(),y,t(4,h)),[o,l,f,y,h,C,w,F,I,k,P,n,g,r,a,s,u]}var Ju=class extends D{constructor(e){super(),N(this,e,x4,G4,B,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},W4)}},qm=Ju;function Y4(i){Ie(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 Q4(i){let e,t;return{c(){e=T("span"),t=Ne(i[8]),c(e,"class","time svelte-5lzly8")},m(n,o){v(n,e,o),p(e,t)},p(n,o){o[0]&256&&xe(t,n[8])},i:ge,o:ge,d(n){n&&b(e)}}}function Z4(i){let e,t;return e=new qm({props:{time:i[8],isMobile:i[11],videoEpisodes:i[4],previewThumbsData:i[22],progress:i[9],duration:i[2],isInteractive:i[24]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&256&&(l.time=n[8]),o[0]&2048&&(l.isMobile=n[11]),o[0]&16&&(l.videoEpisodes=n[4]),o[0]&512&&(l.progress=n[9]),o[0]&4&&(l.duration=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function X4(i){let e,t,n,o,l=[Z4,Q4],r=[];function a(s,u){return s[15].features.timelinePreview&&s[22]&&!s[1]?0:1}return e=a(i,[-1,-1]),t=r[e]=l[e](i),{c(){t.c(),n=tt()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function J4(i){let e,t,n,o,l,r=[i[10]],a={$$slots:{default:[X4]},$$scope:{ctx:i}};for(let f=0;f<r.length;f+=1)a=re(a,r[f]);e=new Nm({props:a});function s(f){i[43](f)}let u={isActiveLive:i[12],isMobile:i[11],ariaLabel:U("aria_timeline"),ariaValueMin:0,ariaValueMax:i[2],ariaValueNow:Math.round(i[7]*100),ariaValueText:U("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 Er({props:u}),be.push(()=>Fe(n,"ref",s)),{c(){L(e.$$.fragment),t=q(),L(n.$$.fragment)},m(f,_){M(e,f,_),v(f,t,_),M(n,f,_),l=!0},p(f,_){let g=_[0]&1024?Ve(r,[Yr(f[10])]):{};_[0]&2838|_[1]&524288&&(g.$$scope={dirty:_,ctx:f}),e.$set(g);let y={};_[0]&4096&&(y.isActiveLive=f[12]),_[0]&2048&&(y.isMobile=f[11]),_[0]&4&&(y.ariaValueMax=f[2]),_[0]&128&&(y.ariaValueNow=Math.round(f[7]*100)),_[0]&96&&(y.ariaValueText=U("aria_timeline_value",{position:f[6],duration:f[5]})),_[0]&8192&&(y.loadedProgress=f[13]),_[0]&128&&(y.filledProgress=f[7]),_[0]&128&&(y.handleProgress=f[7]),_[0]&16&&(y.videoEpisodes=f[4]),_[0]&16384&&(y.disabled=f[14].has("TIMELINE")),_[0]&8&&(y.hideHandel=f[3]),!o&&_[0]&1&&(o=!0,y.ref=f[0],Oe(()=>o=!1)),n.$set(y)},i(f){l||(d(e.$$.fragment,f),d(n.$$.fragment,f),l=!0)},o(f){m(e.$$.fragment,f),m(n.$$.fragment,f),l=!1},d(f){f&&b(t),A(e,f),A(n,f)}}}function $4(i,e,t){let n,o,l,r,a,s,u,f,_,g,y,{showTimeline:h=!1}=e,{ref:C=void 0}=e,w=ot(),F=Nt(),I=w.state.bufferedProgress$;O(i,I,Z=>t(13,g=Z));let k=w.state.positionWithScrubbing$;O(i,k,Z=>t(41,s=Z));let P=w.state.duration$;O(i,P,Z=>t(2,l=Z));let K=w.state.isLive$;O(i,K,Z=>t(1,o=Z));let z=w.state.isActiveLive$;O(i,z,Z=>t(12,_=Z));let H=w.ui.isMobile;O(i,H,Z=>t(11,f=Z));let se=F.features.episodes?w.actions.internal.getVideoEpisodes():void 0,me=w.actions.internal.getPreviewThumbsData(),R=w.state.interactiveEpisodes$;O(i,R,Z=>t(42,u=Z));let te=w.state.isInteractive,le=w.state.isInteractiveTime$;O(i,le,Z=>t(3,r=Z));let ne=w.state.isInteractiveExpectation$;O(i,ne,Z=>t(40,a=Z));let _e=w.actions.internal.correctSeekTimeToInteractive,Y=w.callbacks?.onDisabledTimelineClick,$=w.ui.controls.disabledControls$;O(i,$,Z=>t(14,y=Z));let E,X,oe,fe,Re=!1,Ze="",ce=0,Be=0,De=0,je;function x(Z){return!_e||!te?Z:_e(Z*l)/l}function de(Z){w.actions.internal.startScrubbing(x(Z))}function Ge(Z){r||w.actions.internal.progressScrubbing(x(Z))}function ve(Z){w.actions.internal.completeScrubbing(x(Z)),t(36,Re=!1)}function He(Z,Ue,Ce){Xe(Z,Ue,Ce),t(36,Re=!0)}function $e(Z,Ue,Ce){Xe(Z,Ue,Ce),t(36,Re=!0)}function st(){t(36,Re=!1)}function Xe(Z,Ue,Ce){t(9,De=x(Z)),t(37,ce=Ue),Ce&&t(38,Be=Ce),t(8,Ze=Ye(Z))}function Ye(Z){let Ue=Sn((o?1-Z:Z)*l);return o?`-${Ue}`:Ue}function Ke(Z){C=Z,t(0,C)}return i.$$set=Z=>{"showTimeline"in Z&&t(35,h=Z.showTimeline),"ref"in Z&&t(0,C=Z.ref)},i.$$.update=()=>{i.$$.dirty[1]&2048&&t(4,E=te?u:se),i.$$.dirty[0]&4&&t(5,X=Sn(l)),i.$$.dirty[1]&1024&&t(6,oe=Sn(s)),i.$$.dirty[0]&4|i.$$.dirty[1]&1024&&t(7,fe=s/l),i.$$.dirty[0]&8|i.$$.dirty[1]&512&&t(39,je=a||r),i.$$.dirty[0]&2|i.$$.dirty[1]&496&&t(10,n={containerWidth:Be,translateXPx:ce,translateYPx:te&&me?-36:-16,active:Re&&h&&!je,pointer:!F.features.timelinePreview||!me||o})},[C,o,l,r,E,X,oe,fe,Ze,De,n,f,_,g,y,F,I,k,P,K,z,H,me,R,te,le,ne,Y,$,de,Ge,ve,He,$e,st,h,Re,ce,Be,je,a,s,u,Ke]}var $u=class extends D{constructor(e){super(),N(this,e,$4,J4,B,{showTimeline:35,ref:0},Y4,[-1,-1])}},Hm=$u;function e3(i){let e,t;return e=new Er({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:U("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.ariaValueMax=n[0]),o&8&&(l.ariaValueNow=Math.round(n[3]*100)),o&6&&(l.ariaValueText=U("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(l.filledProgress=n[3]),o&16&&(l.squareBorders=n[4]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function t3(i,e,t){let n,{position:o=0}=e,{duration:l=0}=e,a=ot().ui.isMobile;O(i,a,_=>t(4,n=_));let s,u,f;return i.$$set=_=>{"position"in _&&t(6,o=_.position),"duration"in _&&t(0,l=_.duration)},i.$$.update=()=>{i.$$.dirty&1&&t(1,s=Sn(l)),i.$$.dirty&64&&t(2,u=Sn(o)),i.$$.dirty&65&&t(3,f=o/l)},[l,s,u,f,n,a,o]}var ec=class extends D{constructor(e){super(),N(this,e,t3,e3,B,{position:6,duration:0})}},cs=ec;function i3(i){Ie(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 n3(i){let e;return{c(){e=T("div"),c(e,"class","timeline-stub svelte-1gqonyf"),W(e,"mobile",i[3])},m(t,n){v(t,e,n)},p(t,n){n&8&&W(e,"mobile",t[3])},i:ge,o:ge,d(t){t&&b(e)}}}function o3(i){let e,t,n,o,l=[l3,r3],r=[];function a(s,u){return s[1]?0:1}return t=a(i,-1),n=r[t]=l[t](i),{c(){e=T("div"),n.c(),c(e,"class","timeline svelte-1gqonyf"),W(e,"mobile",i[3])},m(s,u){v(s,e,u),r[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?r[t].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),n=r[t],n?n.p(s,u):(n=r[t]=l[t](s),n.c()),d(n,1),n.m(e,null)),(!o||u&8)&&W(e,"mobile",s[3])},i(s){o||(d(n),o=!0)},o(s){m(n),o=!1},d(s){s&&b(e),r[t].d()}}}function r3(i){let e,t,n;function o(r){i[14](r)}let l={showTimeline:i[2]};return i[0]!==void 0&&(l.ref=i[0]),e=new Hm({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a&4&&(s.showTimeline=r[2]),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function l3(i){let e,t;return e=new cs({props:{position:i[4],duration:i[5]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.position=n[4]),o&32&&(l.duration=n[5]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function s3(i){let e,t,n,o,l=[o3,n3],r=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=tt()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function a3(i,e,t){let n,o,l,r,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:f=!1}=e,{ref:_=void 0}=e,g=ot(),y=g.state.isLive$;O(i,y,k=>t(13,n=k));let h=g.ads.duration;O(i,h,k=>t(5,r=k));let C=g.ads.position;O(i,C,k=>t(4,l=k));let w=g.ui.isMobile;O(i,w,k=>t(3,o=k));let F;function I(k){_=k,t(0,_)}return i.$$set=k=>{"isAds"in k&&t(1,a=k.isAds),"canRewindLive"in k&&t(10,s=k.canRewindLive),"isRewindableLive"in k&&t(11,u=k.isRewindableLive),"isHidden"in k&&t(12,f=k.isHidden),"ref"in k&&t(0,_=k.ref)},i.$$.update=()=>{i.$$.dirty&15362&&t(2,F=!f&&(!n||n&&s&&u||a))},[_,a,F,o,l,r,y,h,C,w,s,u,f,n,I]}var tc=class extends D{constructor(e){super(),N(this,e,a3,s3,B,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},i3)}},fs=tc;var Wm=require("@vkontakte/videoplayer-shared");function u3(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,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 f=0;f<s.length;f+=1)u=re(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("path"),n=V("path"),o=V("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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(f,_){v(f,e,_),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),l=!0},p(f,[_]){a&&a.p&&(!l||_&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],_,null):Le(f[1]),null),ke(e,u=Ve(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"},_&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function c3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var ic=class extends D{constructor(e){super(),N(this,e,c3,u3,B,{})}},Um=ic;function f3(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(t,"opacity",".7"),ke(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function d3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var nc=class extends D{constructor(e){super(),N(this,e,d3,f3,B,{})}},zm=nc;function m3(i){Ie(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 p3(i){let e,t,n,o;e=new Um({});function l(s,u){if(s[4]==="FULL")return h3;if(s[4]==="COUNT")return g3}let r=l(i,-1),a=r&&r(i);return{c(){L(e.$$.fragment),t=q(),a&&a.c(),n=tt()},m(s,u){M(e,s,u),v(s,t,u),a&&a.m(s,u),v(s,n,u),o=!0},p(s,u){r===(r=l(s,u))&&a?a.p(s,u):(a&&a.d(1),a=r&&r(s),a&&(a.c(),a.m(n.parentNode,n)))},i(s){o||(d(e.$$.fragment,s),o=!0)},o(s){m(e.$$.fragment,s),o=!1},d(s){s&&(b(t),b(n)),A(e,s),a&&a.d(s)}}}function _3(i){let e,t,n,o,l,r;return l=new zm({}),{c(){e=T("span"),t=Ne(i[2]),n=q(),o=T("div"),L(l.$$.fragment),c(e,"class","text mobile svelte-1yhs2ga"),c(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){v(a,e,s),p(e,t),v(a,n,s),v(a,o,s),M(l,o,null),r=!0},p(a,s){(!r||s&4)&&xe(t,a[2])},i(a){r||(d(l.$$.fragment,a),r=!0)},o(a){m(l.$$.fragment,a),r=!1},d(a){a&&(b(e),b(n),b(o)),A(l)}}}function g3(i){let e,t=i[0].length+"",n;return{c(){e=T("span"),n=Ne(t),c(e,"class","text count svelte-1yhs2ga")},m(o,l){v(o,e,l),p(e,n)},p(o,l){l&1&&t!==(t=o[0].length+"")&&xe(n,t)},d(o){o&&b(e)}}}function h3(i){let e,t;return{c(){e=T("span"),t=Ne(i[2]),c(e,"class","text svelte-1yhs2ga")},m(n,o){v(n,e,o),p(e,t)},p(n,o){o&4&&xe(t,n[2])},d(n){n&&b(e)}}}function b3(i){let e,t,n,o,l=[_3,p3],r=[];function a(s,u){return s[6]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=tt()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function v3(i){let e,t,n;function o(r){i[19](r)}let l={className:"w-max btn-full-opacity "+(i[6]?"px-0":""),testId:"btn-episodes",click:i[12],disabled:!i[7],ariaExpanded:i[3],ariaLabel:i[5],$$slots:{default:[b3]},$$scope:{ctx:i}};return i[1]!==void 0&&(l.ref=i[1]),e=new gt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&64&&(s.className="w-max btn-full-opacity "+(r[6]?"px-0":"")),a&8&&(s.ariaExpanded=r[3]),a&32&&(s.ariaLabel=r[5]),a&8388693&&(s.$$scope={dirty:a,ctx:r}),!t&&a&2&&(t=!0,s.ref=r[1],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function y3(i,e,t){let n,o,l,r,a,s,{position:u=0}=e,{duration:f=0}=e,{timeCodes:_=[]}=e,g=ot(),y=g.callbacks?.onEpisodeChanged??Wm.noop,h=!!g.callbacks?.onEpisodeClicked,C=g.ui.currentGridType$;O(i,C,R=>t(18,a=R));let w=g.ui.episodes.openedByKeyboard$;O(i,w,R=>t(17,r=R));let F=g.ui.episodes.panelOpened$;O(i,F,R=>t(3,l=R));let I=g.ui.isMobile;O(i,I,R=>t(6,s=R));let k,P=R=>{if(!!g.callbacks?.onEpisodeClicked){let le=yr(R);w.set(le),F.set(!0),g.callbacks?.onEpisodeClicked?.(le)}},K,z,H,se=async(R,te,le)=>{await Wn(),R?.getAttribute("aria-expanded")==="false"&&te&&!le&&(w.set(!1),R.focus())};function me(R){k=R,t(1,k)}return i.$$set=R=>{"position"in R&&t(13,u=R.position),"duration"in R&&t(14,f=R.duration),"timeCodes"in R&&t(0,_=R.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576&&t(16,n=u/f),i.$$.dirty&114689){let R=us(n,f,_);R&&K?.text!==R.text&&(y(R),t(15,K=R))}i.$$.dirty&32768&&t(2,o=K?.text||""),i.$$.dirty&262144&&(mi(a,"xl")?t(4,z="FULL"):mi(a,"m")&&vm(a,"xl")?t(4,z="COUNT"):t(4,z="SHORT")),i.$$.dirty&4&&t(5,H=`${U("tooltip_episodes")}: ${o}`),i.$$.dirty&131082&&se(k,r,l)},[_,k,o,l,z,H,s,h,C,w,F,I,P,u,f,K,n,r,a,me]}var oc=class extends D{constructor(e){super(),N(this,e,y3,v3,B,{position:13,duration:14,timeCodes:0},m3)}},ds=oc;function k3(i){let e,t,n,o,l=i[2].default,r=Ee(l,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=re(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(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,f){v(u,e,f),r&&r.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ke(e,s=Ve(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"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function w3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var rc=class extends D{constructor(e){super(),N(this,e,w3,k3,B,{})}},Km=rc;function C3(i){let e,t;return e=new Km({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function S3(i){let e,t,n;function o(r){i[4](r)}let l={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:U("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[C3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&8&&(s.click=r[3]),a&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function I3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=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,l=s.disabled),"click"in s&&t(3,r=s.click)},[n,o,l,r,a]}var lc=class extends D{constructor(e){super(),N(this,e,I3,S3,B,{ref:0,hidden:1,disabled:2,click:3})}},ms=lc;function T3(i){let e,t,n,o,l=i[2].default,r=Ee(l,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=re(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"class","_closed"),c(n,"clip-rule","evenodd"),ke(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ke(e,s=Ve(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function P3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var sc=class extends D{constructor(e){super(),N(this,e,P3,T3,B,{})}},jm=sc;function E3(i){Ie(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function M3(i){let e,t;return e=new jm({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function A3(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var ac=class extends D{constructor(e){super(),N(this,e,A3,M3,B,{isOpened:0},E3)}},Gm=ac;function L3(i){let e,t;return e=new Gm({props:{isOpened:i[3]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&8&&(l.isOpened=n[3]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function V3(i){let e,t,n;function o(r){i[6](r)}let l={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[L3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&32&&(s.ariaLabel=r[5]),a&16&&(s.click=r[4]),a&136&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function R3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{graphIsOpened:r=!1}=e,{click:a}=e,s;function u(f){n=f,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"hidden"in f&&t(1,o=f.hidden),"disabled"in f&&t(2,l=f.disabled),"graphIsOpened"in f&&t(3,r=f.graphIsOpened),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,s=r?U("tooltip_interactive_graph_on"):U("tooltip_interactive_graph_off"))},[n,o,l,r,a,s,u]}var uc=class extends D{constructor(e){super(),N(this,e,R3,V3,B,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},ps=uc;function B3(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function D3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var cc=class extends D{constructor(e){super(),N(this,e,D3,B3,B,{})}},_s=cc;var Ym=require("@vkontakte/videoplayer-shared");function N3(i){Ie(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 xm(i){let e;return{c(){e=T("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function O3(i){let e,t,n,o,l=i[1]&&xm(i);return n=new _s({}),{c(){l&&l.c(),e=q(),t=T("div"),L(n.$$.fragment),c(t,"class","svelte-1ot3duq"),W(t,"mobile",i[1])},m(r,a){l&&l.m(r,a),v(r,e,a),v(r,t,a),M(n,t,null),o=!0},p(r,a){r[1]?l||(l=xm(r),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),(!o||a&2)&&W(t,"mobile",r[1])},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){m(n.$$.fragment,r),o=!1},d(r){r&&(b(e),b(t)),l&&l.d(r),A(n)}}}function F3(i){let e,t,n;function o(r){i[5](r)}let l={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:U("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:Xn.KeyK,$$slots:{default:[O3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&10&&(s.className=(r[1]?"btn-m--play":"")+" "+r[3]),a&4&&(s.disabled=r[2]),a&16&&(s.click=r[4]),a&66&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function q3(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{className:r=""}=e,{click:a=Ym.noop}=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,l=u.disabled),"className"in u&&t(3,r=u.className),"click"in u&&t(4,a=u.click)},[n,o,l,r,a,s]}var fc=class extends D{constructor(e){super(),N(this,e,q3,F3,B,{ref:0,isMobile:1,disabled:2,className:3,click:4},N3)}},il=fc;function H3(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function U3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var dc=class extends D{constructor(e){super(),N(this,e,U3,H3,B,{})}},Qm=dc;function z3(i){let e,t;return e=new Qm({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function W3(i){let e,t,n;function o(r){i[4](r)}let l={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:U("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[z3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&8&&(s.click=r[3]),a&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function K3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=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,l=s.disabled),"click"in s&&t(3,r=s.click)},[n,o,l,r,a]}var mc=class extends D{constructor(e){super(),N(this,e,K3,W3,B,{ref:0,hidden:1,disabled:2,click:3})}},gs=mc;var pc=require("@vkontakte/videoplayer-shared");function j3(i){Ie(i,"svelte-1aqpg2x",".icon.svelte-1aqpg2x{width:24px !important;height:24px !important;;}.inner.svelte-1aqpg2x{width:16px;height:16px;background-color:var(--white)}")}function G3(i){let e,t,n,o;return{c(){e=T("img"),c(e,"class","icon svelte-1aqpg2x"),lo(e.src,t=i[0])||c(e,"src",t),c(e,"aria-hidden","true")},m(l,r){v(l,e,r),n||(o=Te(e,"error",i[7]),n=!0)},p(l,r){r&1&&!lo(e.src,t=l[0])&&c(e,"src",t)},d(l){l&&b(e),n=!1,o()}}}function x3(i){let e;return{c(){e=T("div"),e.innerHTML='<div class="inner svelte-1aqpg2x"></div>',c(e,"class","icon icon-error-stub svelte-1aqpg2x")},m(t,n){v(t,e,n)},p:ge,d(t){t&&b(e)}}}function Y3(i){let e;function t(l,r){return l[5]?x3:G3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=tt()},m(l,r){o.m(l,r),v(l,e,r)},p(l,r){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&b(e),o.d(l)}}}function Q3(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:[Y3]},$$scope:{ctx:i}}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&16&&(l.className=n[4]?"btn-full-opacity":""),o&2&&(l.ariaLabel=n[1]),o&8&&(l.click=n[3]),o&64&&(l.disabled=n[6]),o&4&&(l.testId=n[2]),o&545&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Z3(i,e,t){let n,o,l,{iconUrl:r}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:f=pc.noop}=e,_=()=>{t(5,l=!0)};return i.$$set=g=>{"iconUrl"in g&&t(0,r=g.iconUrl),"ariaLabel"in g&&t(1,a=g.ariaLabel),"disabled"in g&&t(8,s=g.disabled),"testId"in g&&t(2,u=g.testId),"onClick"in g&&t(3,f=g.onClick)},i.$$.update=()=>{i.$$.dirty&8&&t(4,n=f===pc.noop),i.$$.dirty&272&&t(6,o=n||s)},t(5,l=!1),[r,a,u,f,n,l,o,_,s]}var _c=class extends D{constructor(e){super(),N(this,e,Z3,Q3,B,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},j3)}},hs=_c;var Cp=require("@vkontakte/videoplayer-shared");var Fi=require("@vkontakte/videoplayer-core"),dt=require("@vkontakte/videoplayer-shared"),mo=require("@vkontakte/videoplayer-statistics"),OL=require("@vkontakte/videoplayer-interactive");var It=require("@vkontakte/videoplayer-shared");var Zm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var X3="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",bs=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={slotRequested$:new It.Subject,started$:new It.Subject,paused$:new It.Subject,resumed$:new It.Subject,ended$:new It.Subject,skipped$:new It.Subject,clicked$:new It.Subject};this.loadAdman=e=>new Promise((t,n)=>{let o,l=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};(0,It.addScript)(X3,e,this.loadTimeout).then(()=>{window.AdmanHTML?t():(window.admanAsyncInit=l,o=window.setTimeout(l,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};this.onAdStarted=(e,t)=>{(0,It.assertNonNullable)(this.adsState),(0,It.assertNonNullable)(this.playerState),(0,It.assertNonNullable)(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"}),Je(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay),this.startWatchDog()};this.onAdTimeRemained=({currentTime:e})=>{(0,It.assertNonNullable)(this.adsState),this.adsState.position.set(e),this.startWatchDog()};this.onAdPaused=()=>{this.stopWatchDog(),(0,It.assertNonNullable)(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{(0,It.assertNonNullable)(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing"),this.startWatchDog()};this.onAdMidrollPoint=()=>{(0,It.assertNonNullable)(this.adman),(0,It.assertNonNullable)(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch{this.log({message:"could not start midroll"}),this.onAdError()}};this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{this.log({message:"ad clicked"}),this.videoElement?.pause(),this.events.clicked$.next(),this.stopWatchDog()};this.onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout,this.runtimeTimeout=t.runtimeTimeout}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){if(this.adman)return;this.startWatchDog();let{width:t,height:n,isFullscreen:o,isAutoplay:l,adsContainer:r,adsVideoElement:a,slotId:s,params:u={},duration:f,previewParam:_}=e,g,y=this.playerState&&Je(this.playerState.vsid);y&&(g=parseInt(y,36));let h={dl:encodeURIComponent(window.location.href),autoplay:l,player_width:t,player_height:n,puid10:Zm(t,n),puid11:o?0:1,preview:_,...g?{request_id:g}:{},duration:f,...u};_||delete h.preview;let C={slot:s,wrapper:r,videoEl:a,videoQuality:n,params:h,browser:{mobile:!1}};try{let w=new window.AdmanHTML;w.setDebug(!1),w.onReady(this.onAdsReady),w.onStarted(this.onAdStarted),w.onPlayed(this.onAdPlayed),w.onPaused(this.onAdPaused),w.adMidrollPoint(this.onAdMidrollPoint),w.onClosed(this.onAdClosed),w.onSkipped(this.onAdSkipped),w.onClicked(this.onAdClicked),w.onTimeRemained(this.onAdTimeRemained),w.onCompleted(this.onAdCompleted),w.onError(this.onAdError),w.init(C),this.adman=w,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(C)}`})}catch{this.log({message:"could not init adman"}),this.onAdError()}}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}(0,It.assertNonNullable)(this.actions),(0,It.assertNonNullable)(this.adsState),(0,It.assertNonNullable)(this.playerState);let t=this.currentAdSection==="postroll";this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${t}`}),t&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"})),this.actions.switchFromAdsToVideo(!t)}togglePlay(){(0,It.assertNonNullable)(this.adsState),this.log({message:"toggle play"});let e=Je(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){if(this.log({message:`set volume ${e}`}),this.adman)try{this.adman.setVolume(e)}catch{this.log({message:"could not set ad volume"}),this.onAdError()}this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch{this.log({message:"could not set ad fullscreen"}),this.onAdError()}}startPreroll(){if((0,It.assertNonNullable)(this.adman),!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch{this.log({message:"could not start preroll"}),this.onAdError()}}}startPostroll(){(0,It.assertNonNullable)(this.adman),(0,It.assertNonNullable)(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch{this.log({message:"could not start postroll"}),this.onAdError()}}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError(),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){(0,It.assertNonNullable)(this.adman),this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch{this.onAdError(),this.log({message:"could not resume ad"})}}pause(){(0,It.assertNonNullable)(this.adman),this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch{this.onAdError(),this.log({message:"could not pause ad"})}}skip(){(0,It.assertNonNullable)(this.adman),this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch{this.log({message:"could not skip ad"}),this.onAdError()}}setPosition(e,t){this.adman?.setPosition(Math.floor(e),Math.floor(t))}destroy(){this.log({message:"destroy"}),this.stopWatchDog(),this.adman?.destroy(),this.videoElement&&(0,It.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var Xm=i=>{let e=Math.round(i);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var gc=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let t=[],n=e.split(this.twoLinesRegExp);for(let o of n){let l={startTime:0,endTime:0,texts:[],lang:""},r=o.split(this.oneLineRegExp);for(let a of r)if(!l.startTime&&!l.endTime){let s=new vs,{startTime:u,endTime:f}=s.parse(a);l.startTime=u,l.endTime=f}else if(a.trim()!==""){let s=new hc,{texts:u}=s.parse(a);l.texts=[...l.texts,...u]}(l.startTime||l.endTime)&&l.texts.length>0&&t.push(l)}return t}},vs=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 l=Number(e)*60*60,r=Number(t)*60,a=Number(n),s=+`0.${o}`;return l+r+a+s}},hc=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](r){let a=0,s=[];for(;a<r.length;){let u=["<",">"].reduce((f,_)=>{let g=r.indexOf(_,a);return f===-1||f>g?g:f},-1);if(u===-1){s.push(r.substring(a));break}s.push(r.substring(a,u)),a=u+1}return s}}),l=new vs;for(let r of o)l.isTime(r)?t.texts.push({type:"timestamp",value:l.parseTime(r)}):t.texts.push({type:"text",value:r});return t}},Jm=gc;var ks=require("@vkontakte/videoplayer-shared"),Co,Nn,bc=0,vc=!1,$m=(i,e=0,t=0)=>i<e&&i<t,ys=(i,e=0,t=0)=>i>=e&&i<=t,J3=(i,e=0,t=0)=>i>e&&i>t,ep=(i,e,t,n=!1)=>{let o=t.find(({lang:a})=>a===e.value)?.subtitles;if(n){let a=o?.find(({startTime:s,endTime:u})=>ys(i,s,u));return a?{...a,lang:e.value}:void 0}let l=i>=bc,r=i<bc;if(bc=i,r&&(vc=!1),(0,ks.isNonNullable)(Co)&&ys(i,Co.startTime,Co.endTime)&&Co.lang===e.value)return Co;if(!(0,ks.isNonNullable)(Nn)&&o?.length&&!vc){let a=o.find(({startTime:s,endTime:u})=>ys(i,s,u)||l&&$m(i,s,u));Nn=a&&{...a,lang:e.value},Co=void 0,!(0,ks.isNonNullable)(Nn)&&o[o.length-1].endTime<i&&(vc=!0);return}else{if(ys(i,Nn?.startTime,Nn?.endTime))return Co=Nn,Nn=void 0,Co;(l&&J3(i,Nn?.startTime,Nn?.endTime)||r&&$m(i,Nn?.startTime,Nn?.endTime))&&(Nn=void 0)}};var tp=require("@vkontakte/videoplayer-shared"),DL=require("@vkontakte/videoplayer-statistics"),ws=class{constructor(e,t=new tp.Subscription){this.oneStat=e;this.statSubscription=t}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var ip=({interfaceLanguage:i,isCyrillicRelatedInterface:e,videoId:t,isClip:n,isLiveCatchUpMode:o,statAuthToken:l,isAudioDisabled:r,canDownload:a,callbacks:s,webApi:u,videoEpisodes:f,previewThumbsData:_,uiConfig:g,coreConfig:y,player:h,disabledControls:C,isInteractive:w,interactiveRanges$:F,isInteractiveTime$:I,replayInteractive:k,stopPlayer:P,hasInteractiveBranches:K,playPrevChapterDisabledTooltip:z,additionalButtons:H,additionalSettingsMenuItems:se,additionalContextMenuItems:me,looped:R=!1,statistics:te,saveRate:le})=>{let ne={...y,configName:[...y.configName??[],"ui"],isAudioDisabled:r,live:{...y.live??{},isLiveCatchUpMode:!!o}},_e=g,Y=dt.Tracer.createRootTracer(_e.features.saveTraceInfoToFile),$=Y.createComponentTracer("Store"),E=h||new Fi.Player(ne,Y),X=new dt.Logger,oe=new bs(X,{loadTimeout:_e.ads.loadTimeout,initTimeout:_e.ads.initTimeout,runtimeTimeout:_e.ads.runtimeTimeout}),fe=Uo.getInstance(),Re=u?.pictureInPictureApi,Ze=u?.annotationsApi,ce=X.createComponentLog("Store"),Be,De,je={},x=te?kt(te.oneStat.vsid$):Rn(void 0),de=qe(bo()),Ge=Re?.info.isActive$??new dt.ValueSubject(!1),ve=Re?.info.type,He=qe(0),$e=qe([]),st=(0,dt.merge)(E.events.fatalError$,E.events.managedError$).subscribe(S=>$e.update(G=>[...G,S])),Xe=Rn(!1,S=>{let G=E.events.fatalError$.subscribe(()=>S(!0));return()=>G.unsubscribe()}),Ye=async S=>{let G=Object.values(dt.InterfaceLanguage).includes(S);if(_e.downloadVKLanguages&&(G&&_e.updateBuiltinLanguages||!la(S))){let We;try{We=await(0,dt.loadVKLangPack)(S,Vf,Rf)}catch(at){te?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),fe?.report(at,{errorType:"VKLangPack",fatal:!1})}We&&(ra({language:S,pack:We,fallback:_e.defaultLanguage}),Ke.set(S))}la(S)&&Ke.set(S)},Ke=qe(i),Z=qe(e);Ye(i);let Ue=(S,G)=>{let Se=Je(Ke);return sa(Se,S,G,_e.defaultLanguage)},Ce=qe("thumb"),Pe=(()=>{let S=ti([Xe,Ce],([G,Se])=>G?"crashed":Se);return{...S,is:G=>Je(S)===G}})(),ze=(()=>{let S=qe(new Set(C));return{...S,add:G=>{S.update(Se=>new Set([...Se].concat(G)))},remove:G=>{S.update(Se=>{let We=[...Se];return new Set(Array.isArray(G)?We.filter(at=>!G.includes(at)):We.filter(at=>at!==G))})},includes:G=>{let Se=Je(S);return Array.isArray(G)?G.every(We=>Se.has(We)):Se.has(G)}}})();$.log("create store"),ce({message:"create store"});let pe=S=>{let G=S.container;G.append(E.experimental.element$.getValue()),Ct=new MutationObserver(Se=>{let{removedNodes:We}=Se[0];We.length&&G.append(E.experimental.element$.getValue())}),Ct.observe(G,{childList:!0})},J=S=>{ce({message:`init video, config: ${JSON.stringify(S)}`}),w?pe(S):E.initVideo(S),$.log("init video",{isInteractive:w}),S.subtitles&&E.setExternalTextTracks(S.subtitles),Be=S},ft=new dt.Subject,mt=S=>ft.next(S),et=new dt.Subject,lt=new dt.Subject,Ot=new dt.Subject,Ct=null,it={actionRewind$:et,actionSeek$:lt,inPiP$:Ge,inFullscreen$:new dt.Observable(S=>de.subscribe(G=>S.next(G))),actionSetSubtitle$:Ot,nextMovie$:ft};if(te){let{oneStat:S,statSubscription:G}=te;w||G.add(S.attachTo(E)),G.add(S.attachToUi(it)),G.add(S.attachToAds(oe.events)),S.authorize(l).catch(Se=>{ce({message:`onestat auth error ${String(Se)}`})})}if(fe){let S=new dt.Subscription,G=(Se,We)=>S.add(Se.subscribe(We));if(G(E.events.managedError$,Se=>{fe.logIError(Se)}),G(E.events.fatalError$,Se=>{fe.logIError(Se,!0)}),te){let{oneStat:Se}=te;G(Se.experimental.error$,We=>{fe.logIError(We)})}fe.sentrySubscription.add(S)}let Ft=()=>{dt.clientChecker.isIOS&&De&&md(De)},At=new dt.Subscription().add(E.experimental.element$.subscribe(S=>{S&&(De=S,S.classList.add("player-media"),Wo(Re)&&(Re.updateVideoElement(),Re.registryEventHandlers()),w&&S.setAttribute("pip","false"))})).add(E.events.ended$.subscribe(()=>{Ft(),s?.onEnded?.()})).add(E.events.started$.subscribe(async()=>{Wo(Re)&&await Re?.revealPictureInPicture();let S=E.info.muted$.getValue();s?.onStarted?.(),je.onStarted?.(S)})).add(E.events.willSeek$.subscribe(({from:S,to:G})=>{s?.onSeek?.(S,G)})).add(E.info.position$.subscribe(S=>{let G=E.info.duration$.getValue();isFinite(G)&&G>0&&(s?.onTimeupdate?.(G,S),oe.setPosition(S,G))})).add(E.events.fatalError$.subscribe(()=>{s?.onCrashed?.()})).add(E.events.loadedMetadata$.subscribe(()=>{ht.state.loadedMetadata$.set(!0)})).add(E.info.is3DVideo$.subscribe(S=>{ht.ui.is3DVideo.set(S)})).add(E.info.isEnded$.subscribe(S=>{w&&(S?(I?.getValue()&&ze.add(yl),ze.add("PLAY_BUTTON")):ze.remove("PLAY_BUTTON"))})).add(E.info.liveTime$.subscribe(S=>{s?.onLiveTime?.(S)})).add(E.info.isStalled$.subscribe(S=>{s?.onStalledChanged?.(S)})).add(oe.events.started$.subscribe(()=>{s?.adsInfo?.onStarted?.()})).add(oe.events.ended$.subscribe(()=>{s?.adsInfo?.onCompleted?.()})),Qt=new dt.Subscription,ct=()=>{Qt.add(E.events.log$.subscribe(S=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${S.component}`,S.message)})).add(X.log$.subscribe(S=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${S.component}.`,S.message)}))},bt=()=>{Qt.unsubscribe()},Zt=(S,G)=>{$.log("start camera manual rotation",{mx:S,my:G}),E.startCameraManualRotation(S,G)},Kt=(S=!1)=>{$.log("stop camera manual rotation",{immediate:S}),E.stopCameraManualRotation(S)},Xt=(S,G,Se)=>{$.log("move camera focus px",{xpx:S,ypx:G,dt:Se}),E.moveCameraFocusPX(S,G,Se)},si=()=>{E.holdCamera()},we=()=>{E.releaseCamera()},Tt=Rn(E.info.position$.getValue(),S=>{let G,Se,We=()=>{let at=E.info.playbackState$.getValue(),Rt=E.info.isLive$.getValue(),qt=E.info.duration$.getValue(),Bt=E.info.position$.getValue();if([Fi.PlaybackState.PLAYING,Fi.PlaybackState.PAUSED].includes(at)){let wn=Rt?Bt-qt:E.getExactTime();wn!==Se&&S(wn),Se=wn}G=requestAnimationFrame(We)};return We(),()=>cancelAnimationFrame(G)}),Et=kt(Ge),jt=kt(E.info.playbackState$),wt=kt(E.info.currentBuffer$),Ht=kt(E.info.isEnded$),Ut=kt(E.info.isLive$),Lt=_e.features.playbackRate?kt(E.info.canChangePlaybackSpeed$):Rn(!1),ii=kt(E.info.liveBufferTime$),Jt=kt(E.info.volume$),Ci=kt(E.info.muted$),Pt=$s(E.info.autoQualityLimits$.pipe((0,dt.map)(({max:S})=>S!==void 0)),E.info.autoQualityLimits$.getValue()?.max!==void 0),pi=kt(E.info.autoQualityLimitingAvailable$),Mi=kt(E.info.availableQualities$),_i=kt(E.info.availableQualitiesFps$),gi=kt(E.info.chromecastState$),he=kt(E.info.chromecastDeviceName$),pt=kt(E.info.currentFormat$),fi=kt(E.info.throughputEstimation$),Ai=kt(E.info.videoBitrate$),$i=kt(E.info.intrinsicVideoSize$),Hi=kt(E.info.duration$),en=kt(E.info.isAudioAvailable$),$t=null,Li=E.info.isBuffering$,fn=Rn(Li.getValue(),S=>{let G=Li.subscribe(Se=>{Se&&$t===null?$t=window.setTimeout(()=>{S(Li.getValue()),$t=null},_e.loaderDelay):S(Se)});return()=>{G.unsubscribe(),$t&&clearTimeout($t)}}),Gt=()=>{$t&&clearTimeout($t),$t=null},Si=ti([Hi,Ut],([S,G])=>G?-S:S),dn=ti([jt],([S])=>S===Fi.PlaybackState.PLAYING),hi=kt(E.info.atLiveEdge$),tn=kt(E.info.atLiveDurationEdge$),nn=kt(E.info.position$),mn=ti([nn,Hi],([S,G])=>isFinite(S)&&isFinite(G)&&!!G),bi=ti([gi],([S])=>S===Fi.ChromecastState.CONNECTED),Vi=kt(E.info.availableVideoStreams$),on=_e.features.audioLanguages?kt(E.info.availableAudioStreams$):Rn([]),vi=kt(E.info.currentVideoStream$),di=kt(E.info.currentAudioStream$),Ui=S=>{S.language&&na(S.language),E.setVideoStream(S)},Tn=S=>{S.language&&na(S.language),E.setAudioStream(S)},Ri=S=>{let G;if(S.length===1&&(G=S.at(0)),G??=S.find(We=>"isDefault"in We&&We.isDefault),G)return G;let Se=rd();return Se&&(G=S.find(({language:We})=>Se===We)),G??=S.at(0),G},rn=!1;At.add(E.info.availableAudioStreams$.subscribe(S=>{if(!rn&&S.length){let G=Ri(S);G&&(E.setAudioStream(G),rn=!0)}}));let Ii=!1;At.add(E.info.availableVideoStreams$.subscribe(S=>{if(!Ii&&S.length){let G=Ri(S);G&&(E.setVideoStream(G),Ii=!0)}}));let yi=qe(void 0),zi=kt(E.info.isAutoQualityEnabled$,S=>S&&yi.set(void 0)),pn=kt(E.info.currentQuality$,()=>yi.set(void 0)),ln=ti([yi,pn],([S,G])=>S??G),ki=ti([Mi,_i,zi,ln,pt],([S,G,Se,We,at])=>{let Rt=[];at!==Fi.VideoFormat.MPEG&&Rt.push({value:"auto",displayValue:Ue("auto_quality_option"),selected:Se});let qt=S.filter(Bt=>!(0,dt.isInvariantQuality)(Bt));for(let Bt of qt){let wn=G[Bt];Rt.push({value:Bt,displayValue:`${Bt}${wn?Xm(wn):""}`,selected:Se?!1:Bt===We})}return Rt}),Ti=kt(E.info.currentPlaybackRate$),ai=ti([Ti,hi,tn],([S,G,Se])=>{let We=Se||w?1:_e.controls.playbackRateMin,at=G?1:_e.controls.playbackRateMax,Rt=_e.controls.playbackRateStep,qt=[];for(let Bt=We;Bt<=at;Bt+=Rt)qt.push({value:Bt,displayValue:Bt===1?Ue("playback_rate_1"):Ue("playback_rate",{multiplier:Bt.toString(10)}),selected:S===Bt});return qt}),Bi=_e.features.subtitles?kt(E.info.availableTextTracks$):Rn([]),ui=ti([Bi],([S],G)=>{if(!S.length){G([]);return}let Se=[],We=[];for(let at of S)at.url&&Se.push(fetch(at.url));Promise.allSettled(Se).then(at=>{for(let[Rt,qt]of at.entries())qt.status==="fulfilled"&&qt.value.ok&&qt.value.text().then(Bt=>{let wn=new Jm,sr=S[Rt].language,Ks=!!S[Rt].isAuto,ml=wn.parse(Bt);sr&&ml&&We.push({lang:sr,subtitles:ml,isAuto:Ks}),Rt===at.length-1&&G(We)})})}),xt={displayValue:Ue("subtitles_off"),value:"off"},ni=qe({...xt}),Di=ti([Ti,dn,ni],([S,G,Se],We)=>{let qt;if(E.info.isLive$.getValue()&&G&&Se.value!==xt.value){let wn=()=>{let sr=1e3/(3*S);qt=setTimeout(wn,sr),We(Date.now())};return wn(),()=>clearTimeout(qt)}}),Wi=ti([ui,ni],([S,G])=>{if(S?.length>0){let Se=[{...xt,selected:G?.value===xt.value}];for(let{lang:We,isAuto:at}of S)xo[We]&&Se.push({displayValue:at?Ue("subtitles_auto",{language:xo[We]}):xo[We],value:We,selected:G?.value===We,isAuto:at});return Se}else return[]}),nt={available:[],prev:[]},Ni=ti([Tt,ni,ui,Di],([S,G,Se,We])=>{let at=E.info.isLive$.getValue();if(at&&Se&&nt.prev!==Se){let Rt=Se.find(({lang:Bt})=>Bt===G.value),qt=nt.prev.find(({lang:Bt})=>Bt===G.value);if(Rt){let Bt={...Rt,subtitles:[...qt?.subtitles??[],...Rt.subtitles]};nt.available=[Bt],nt.prev=Se}}if(G&&G.value!==xt.value){let Rt=at?De?.currentTime??0:S,qt=at?nt.available:Se;return ep(Rt,G,qt,at)}}),oi=ti([Ni],([S])=>S?.texts?S.texts:[]),sn=qe(!0),Qe=ti([wt,Si,nn,ii],([S,G,Se,We])=>{let at=S?.end??0;if(!We)return at/G;let qt=-Se+We-G;return(at-qt)/G}),an=kt(E.info.availableSources$),_n=ti([an],([S])=>Object.keys(S?.[Fi.VideoFormat.MPEG]||{}).length>0),Ki=()=>{let S=Object.keys(E.info.availableSources$?.getValue()?.[Fi.VideoFormat.MPEG]||{}),G=(0,dt.getHighestQuality)(S)||dt.VideoQuality.Q_144P;return Be.sources[Fi.VideoFormat.MPEG]?.[G]},ji=()=>{let S=Ki();if(S)$.log("download video",{url:S}),jf(S,Be?.meta?.title||"video");else{let G="There is no URL for download video";$.log("download video",{message:G}),ce({message:G})}},gn=()=>{ce({message:"toggle muted"});let S=E.info.muted$.getValue(),G=E.info.volume$.getValue(),Se=G===0||S,We=!Se;$.log("toggle muted",{muted:S,volume:G,soundIsOff:Se,nextValue:We}),Pi(We)},Gi=()=>{$.log("close settings menu"),ht.ui.settingsMenuVisible.set(!1)},Yt=S=>{$.log("open settings menu",{wasOpenedByKeyboard:S}),ht.ui.settingsMenuOpenedByKeyboard.set(!!S),ht.ui.settingsMenuVisible.set(!0)},On=S=>{Je(ht.ui.settingsMenuVisible)?Gi():Yt(S)},Oi=(S,G=S,Se=!1)=>{let We=!Se,at=E.info.muted$.getValue();ce({message:`set volume, volume: ${S}, preferredVolume: ${G}, internalCall: ${We}`}),$.log("set volume",{volume:S,preferredVolume:G,internalCall:We}),E.setVolume(S),oe.setVolume(S),We&&s?.onVolumeChange?.(S),ta(G),at?(E.setMuted(!1),We&&s?.onUnmute?.(),Cl(!1)):!at&&S===0&&(E.setMuted(!0),We&&s?.onMute?.(),Cl(!0))},Pi=(S,G=!1)=>{let Se=!G,We=E.info.volume$.getValue();if(ce({message:`set muted, currentVolume: ${We}, mute: ${S}, internalCall: ${Se}`}),$.log("set muted",{mute:S,currentVolume:We,internalCall:Se}),E.setMuted(S),oe.setVolume(S?0:We),Cl(S),Se&&(S?s?.onMute?.():s?.onUnmute?.()),We===0){let at=wl()??_e.volumeDefault;at===0&&(at=_e.volumeMinRestore,ta(at)),E.setVolume(at),oe.setVolume(at),Se&&s?.onVolumeChange?.(at)}},un=qe(!1),xi=S=>{$.log("set looped",{isLooped:S}),un.set(S),E.setLooped(S)};xi(R);let hn=()=>{s?.uiInfo?.onReportProblem?.()},bn=()=>{E.prepare()},Fn=()=>{(0,dt.assertNonNullable)(ht);let S=Je(ht.ui.controls.disabledControls$),G=Je(ht.playerPhase),Se={playerPhase:G,isInteractive:w,isVideoEnded:!1,action:"none"};if(S.has("PLAY_BUTTON"))return;if(ce({message:"toggle play"}),G==="ads"){Se.action="play",$.log("toggle adman play",Se),oe.togglePlay();return}let We=()=>{ce({message:"toggle play, call player.play"}),Se.action="play",E.play(),s?.onPlay?.()},at=()=>{ce({message:"toggle play, call player.pause"}),Se.action="pause",E.pause(),s?.onPause?.()};if(E.info.isEnded$.getValue()){if(ce({message:"toggle play, video ended, seek to 0"}),et.next(),lt.next(mo.SeekAction.REWIND),w){k?.();return}E.seekTime(0),We()}else E.info.playbackState$.getValue()!==Fi.PlaybackState.PLAYING?We():at();$.log("toggle play",Se)},Yi=S=>{ce({message:`set quality, quality: ${S}`}),$.log("set quality",{quality:S}),E.setAutoQuality(S==="auto"),S!=="auto"?(Jf(t,S),yi.set(S),E.setQuality(S)):ia()},Qi=S=>{ce({message:`set trafficSavingEnabled, value: ${S}`}),$.log("set traffic saving enabled",{trafficSavingEnabled:S}),E.setAutoQualityLimits({max:S?_e.trafficSavingLimit:void 0}),nd(S)},wi=S=>{$.log("set playback rate",{playbackRate:S}),E.setPlaybackRate(S),_e.features.saveRate&&le&&!E.info.isLive$.getValue()&&ld(S)},qn=()=>{let S=Je(ai),G=S.findIndex(({selected:We})=>We);if(G===S.length-1)return;let Se=S[G+1];wi(Se.value)},Gn=()=>{let S=Je(ai),G=S.findIndex(({selected:We})=>We);if(G===0)return;let Se=S[G-1];wi(Se.value)},Pn=S=>{$.log("set subtitles",{...S}),S&&S.value!==xt.value&&Ot.next(S.isAuto?S.value+"_auto":S.value),ni.set(S)},ri=()=>{$.log("toggle subtitles");let S=Je(Wi),G=Je(ni),Se=Je(Ke);if(G?.value===xt.value){let We=S.filter(at=>at.value!==xt.value).find(at=>at.value===Se)||S[1];Pn(We??{...xt})}else Pn({...xt,selected:!1})},Zi=(S,G,Se=!0)=>{if(ce({message:`seek to time, time: ${S}`}),$.log("seek to time",{time:S,action:G,forcePrecise:Se}),lt.next(G),E.info.isLive$.getValue()){let We=E.info.duration$.getValue(),at=Math.min(0,We+S);E.seekTime(at,Se)}else{if(I?.getValue())return;E.seekTime(cn(S),Se)}},xn=S=>{ce({message:`seek to episode start time: ${S}`}),$.log("seek to episode start time",{time:S}),Zi(S,mo.SeekAction.EPISODE,!0)},En=(S,G)=>{ce({message:`seek to percent, percent: ${S}`}),$.log("seek to percent",{percent:S,action:G});let Se=Math.round(Je(Si)*S);Zi(Se,G,!1)},Yn=S=>{ce({message:`seek external, time: ${S}`}),$.log("seek external",{time:S}),lt.next(mo.SeekAction.UNKNOWN),E.seekTime(E.info.isLive$.getValue()?-S:S)},Hn=S=>{let G=S.max??"none",Se=S.min??"none";ce({message:`set auto quality limitation. Max: ${G}. Min: ${Se}`}),$.log("set auto quality limits",{max:G,min:Se}),E.setAutoQualityLimits(S)},Mn=S=>{ce({message:`seek external to episode start time: ${S}`}),$.log("seek external to episode start time",{time:S}),Zi(S,mo.SeekAction.EPISODE,!0)},ie=S=>{ce({message:`set playback rate to: ${S}`}),$.log("set playback rate external",{playbackRate:S}),E.setPlaybackRate(S)},vt=qe(void 0),Xi=qe(!1),An=S=>{ce({message:`start scrubbing, progress: ${S}`}),$.log("start scrubbing",{progress:S}),Xi.set(!0),to(S)},to=S=>{vt.set(S)},Qn,Zn,io=()=>{vt.set(void 0),Xi.set(!1)},no=()=>{clearTimeout(Zn),clearTimeout(Qn),Qn=window.setTimeout(()=>{io()},500),De?.removeEventListener("seeked",no)},vn=S=>{ce({message:`complete scrubbing, progress: ${S}`}),$.log("complete scrubbing",{progress:S}),En(S,mo.SeekAction.SLIDER),Je(ht.ui.isMobile)&&Je(ht.state.currentFormat$)===Fi.VideoFormat.HLS?(De?.addEventListener("seeked",no),Zn=window.setTimeout(()=>{no()},300)):io()},ee=ti([Tt,Si,vt],([S,G,Se],We)=>{We((0,dt.isNonNullable)(Se)?Se*G:S)}),oo=qe({width:0,height:0}),So=ti([oo],([{width:S}],G)=>{let Se=ym(S);G(Se)}),_o=qe(!1),qr=ti([So,_o],([S,G])=>G?H.filter(Se=>!Se.hideOnMobile):H.filter(Se=>!Se.hideOnDesktopGridTypes?.includes(S))),Ln=qe(se),Io=ti([Ln],([S])=>_e.features.additionalSettingsMenuItems?S.map(G=>G.type==="SWITCH"?{...G,onClick:G.onChangeEnabled}:G):[]),To=(S,G)=>{let Se=Je(Ln).map(We=>We.id!==S?We:{...We,...G});Ln.set(Se)},yn=S=>{let G=Je(Ln);if(G.some(Se=>Se.id===S.id)){ce({message:`Settings menu item with id: "${S.id}" was exist! Can't add more with the same id`});return}G.push(S),Ln.set(G)},Po=S=>{let G=Je(Ln);if(!G.some(Se=>Se.id===S)){ce({message:`Can't find settings menu item with id: "${S}"! Can't remove item with this id`});return}G=G.filter(Se=>Se.id!==S),Ln.set(G)},kn=qe(me),Eo=ti([kn],([S])=>_e.features.additionalContextMenuItems?S:[]),Xo=(S,G)=>{let Se=Je(kn).map(We=>We.id!==S?We:{...We,...G});kn.set(Se)},Jo=S=>{let G=Je(kn);if(G.some(Se=>Se.id===S.id)){ce({message:`Context menu item with id: "${S.id}" was exist! Can't add more with the same id`});return}G.push(S),kn.set(G)},Mo=S=>{let G=Je(kn);if(!G.some(Se=>Se.id===S)){ce({message:`Can't find context menu item with id: "${S}"! Can't remove item with this id`});return}G=G.filter(Se=>Se.id!==S),kn.set(G)},$o=ti([_o,Xe],([S,G],Se)=>{Se(S&&G)}),er=()=>{lt.next(mo.SeekAction.LIVE),ce({message:"switch to active live"}),$.log("switch to active live"),E.seekTime(0),E.info.playbackState$.getValue()!==Fi.PlaybackState.PLAYING&&ht.actions.internal.togglePlay()},tr=()=>{$.log("skip adman"),oe.skip()},ir=(S=!0)=>{(0,dt.assertNonNullable)(ht),ce({message:`switch from ads to video, callPlay: ${S}`}),$.log("switch from ads to video",{callPlay:S}),Ce.set("video"),S&&E.play()},j=()=>{(0,dt.assertNonNullable)(ht),ce({message:"switch from video to ads"}),$.log("switch from video to ads"),ht.actions.internal.pause(),Ft(),Ce.set("ads")},Vt=S=>{(0,dt.assertNonNullable)(ht);let G=S?"LiveWaitingStart":"thumb";$.log("set live waiting start",{state:S,playerPhase:G}),Ce.set(G)},Vn=S=>{(0,dt.assertNonNullable)(ht);let G=S?"LiveWaitingRecover":"thumb";$.log("set live waiting recover",{state:S,playerPhase:G}),Ce.set(G)},Un=S=>{(0,dt.assertNonNullable)(ht);let G=S?"LiveWaitingRecord":"thumb";$.log("set live waiting record",{state:S,playerPhase:G}),Ce.set(G)},Ao=()=>((0,dt.assertNonNullable)(ht),$.log("get debug text data"),Wf(E,Be,ht)),nr=()=>((0,dt.assertNonNullable)(ht),JSON.stringify(Y.getFinishedSpans())),Lo=()=>((0,dt.assertNonNullable)(ht),Kf(E,Be,ht)),or=()=>De,rr=()=>{ce({message:"toggle chromecast"}),$.log("toggle chromecast"),E.toggleChromecast()},ro=S=>{if((0,dt.assertNonNullable)(ht),E.info.isEnded$.getValue())return;let G=!S;if(Je(ht.playerPhase)==="ads"){ce({message:`pause ads, internalCall: ${G}`}),$.log("pause ads",{internalCall:G}),oe.pause();return}ce({message:`pause video, internalCall: ${G}`}),$.log("pause video",{internalCall:G}),G&&s?.onPause?.(),E.pause()},Hr=S=>{(0,dt.assertNonNullable)(ht);let G=!S;if(Je(ht.playerPhase)==="ads"){ce({message:`play ads, internalCall: ${G}`}),$.log("play ads",{internalCall:G}),oe.play();return}ce({message:`play video, internalCall: ${G}`}),$.log("play video",{internalCall:G}),G&&s?.onPlay?.(),E.play()},Ur=S=>{(0,dt.assertNonNullable)(ht);let G=!S;if(Je(ht.playerPhase)==="ads"){ce({message:"player cannot be stopped during ads via external method"});return}ce({message:`player will be stopped, internalCall: ${G}`}),P?.()},zr=(S,G)=>{(0,dt.assertNonNullable)(ht),ce({message:`first start, show ads: ${S}, internalCall: ${!G}`}),$.log("first start",{showAds:S,external:G}),S?Ce.set("ads"):(Ce.set("video"),G?E.play():ht.actions.internal.togglePlay())},lr=()=>(ce({message:"getting time codes"}),f),Wr=()=>{let S=lr();if(!S||[0,1].includes(S.length))return;let G=E.info.position$.getValue();return S.find(Se=>Se.time>G)},Kr=S=>{let G=S;G||(G=Wr());let Se=E.info.position$.getValue();$.log("seek to next episode",{currentTime:Se,...G}),G&&(ce({message:"seek to next episode"}),Zi(G.time,mo.SeekAction.EPISODE,!0))},al=()=>{let S=lr();if(!S||[0,1].includes(S.length))return;let G=E.info.position$.getValue(),Se=S.findIndex(at=>at.time>G),We=Se===-1?S.length-2:Se-2;if(!(We<0))return S[We]},ul=S=>{let G=S;G||(G=al());let Se=E.info.position$.getValue();$.log("seek to prev episode",{currentTime:Se,...G}),G&&(ce({message:"seek to prev episode"}),Zi(G.time,mo.SeekAction.EPISODE,!0))},cl=()=>(ce({message:"getting preview thumbs data"}),$.log("get preview thumbs data",{..._}),_),fl=async()=>{let S=Re?.isActive(),G="none";Re?.isActive()?(G="remove",await Re?.remove()):(G="request",await Re?.request()),$.log("toggle picture in picture",{isActive:S,action:G})},dl=(S=-90)=>{$.log("rotate video",{alphaDiff:S}),He.update(G=>G+S)},go=qe([]);F?.subscribe(S=>{let G=[];for(let Se=0;Se<S.length;Se++){let{range:[We,at],subjects:Rt}=S[Se];Se===0&&We!==0&&G.push({time:0,text:"",interactive:!1,completed:!0}),G.push({time:We/1e3,text:"",interactive:!0,completed:!Rt.length}),at!==1/0&&G.push({time:at/1e3,text:"",interactive:!1,completed:!0})}go.set(G)});let rt=qe(!1);I?.subscribe(S=>{S&&Je(Xi)&&io()});let cn=S=>{if(!w)return S;let G=Je(go),Se=Je(Si),at=Je(nn)/Se,Rt=G.find(qt=>qt.interactive&&!qt.completed&&qt.time>at);return typeof Rt?.time=="number"?Math.min(S,Rt.time-.05):S},Vo=()=>{ht.ui.episodes.panelOpened$.set(!1)},jr=()=>{$.log("destroy store"),clearTimeout(Zn),clearTimeout(Qn),At.unsubscribe(),Qt.unsubscribe(),E.destroy(),oe.destroy(),te?.destroy(),fe?.destroy(),st.unsubscribe(),Ct?.disconnect(),Ct=null},ht={interfaceLanguage$:Ke,isCyrillicRelatedInterface$:Z,initVideo:J,videoId:t,isClip:n,playerPhase:Pe,vsid:x,state:{positionExact$:Tt,positionWithScrubbing$:ee,duration$:Si,playbackState$:jt,isPlaying$:dn,isLoaderVisible:fn,bufferedProgress$:Qe,isLive$:Ut,canChangePlaybackSpeed$:Lt,isActiveLive$:hi,isOldestAvailableLive$:tn,isRewindableLive$:mn,isEnded$:Ht,muted$:Ci,volume$:Jt,trafficSavingEnabled$:Pt,autoQualityLimitingAvailable$:pi,availableVideoStreams$:Vi,availableAudioStreams$:on,videoStream$:vi,audioStream$:di,currentQuality$:ln,isAutoQualityEnabled$:zi,availableQualities$:ki,currentPlaybackRate$:Ti,availablePlaybackRates$:ai,currentSubtitle$:ni,availableSubtitlesList$:Wi,currentSubtitleCaptions$:oi,isAutoSubtitleCaptionVisible$:sn,chromecastState$:gi,chromecastDeviceName$:he,chromecastConnected$:bi,currentFormat$:pt,throughputEstimation$:fi,videoBitrate$:Ai,videoSize$:$i,errorLog$:$e,crashed$:Xe,isAudioAvailable$:en,isAudioDisabled:!!r,canDownload:_e.features.download&&!!a,availableSources$:an,hasMpegSources$:_n,isInteractive:w,showInteractiveGraph:_e.features.interactiveGraph,showSeekToInteractive:_e.features.seekToInteractive,showPlayPrevChapter:_e.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:_e.features.interactiveTimeIndicator&&!!Je(go).length,interactiveEpisodes$:go,isInteractiveTime$:I?kt(I):qe(!1),graphIsOpened$:qe(!1),isInteractiveExpectation$:rt,hasInteractiveBranches:K,playPrevChapterDisabledTooltip:z,looped$:un,loadedMetadata$:qe(!1)},ui:{controlsVisible:qe(!1),touched:qe(!1),controls:{prevButton:qe(void 0),playButton:qe(void 0),replayButton:qe(void 0),nextButton:qe(void 0),playPrevChapterButton:qe(void 0),seekToInteractiveButton:qe(void 0),interactiveGraphButton:qe(void 0),liveButton:qe(void 0),time:qe(void 0),episodes:qe(void 0),volume:qe(void 0),subtitles:qe(void 0),settings:qe(void 0),context:qe(void 0),chromecast:qe(void 0),pip:qe(void 0),fullscreen:qe(void 0),vkLogo:qe(void 0),interactiveTimeIndicator:qe(void 0),timeline:qe(void 0),additionalButtons:H.length?H.reduce(S=>[...S,qe(void 0)],[]):[],disabledControls$:ze},modals:{hotKeyMap:{show:qe(!1),data:qe({title:"",closeBtnText:"",groups:[]})}},isFullscreen:de,rotateAlpha:He,isAutoplay:qe(!1),debugPanelVisible:qe(!1),episodes:{panelOpened$:qe(!1),openedByKeyboard$:qe(!1)},contextMenu:{visible$:qe(!1),btnRef$:qe(void 0),openedByBtnKeyboard$:qe(!1),openedByHotKey$:qe(!1),lastActiveElem$:qe(void 0),showContextMenuBtn$:qe(!1),position$:qe({top:0,left:0})},playerSize:oo,isMobile:_o,mobileNotReportControlHidden$:$o,mobileUnmuteButtonExpanded:qe(!1),mobileUnmuteButtonVisible:qe(!1),icon3DVideoVisible:qe(!1),settingsMenuVisible:qe(!1),settingsMenuOpenedByKeyboard:qe(!1),scrubbingInProgress:Xi,is3DVideo:qe(!1),isPictureInPictureActive$:Et,pictureInPictureType$:Rn(ve),currentGridType$:So,additionalButtons$:qr,additionalSettingsMenuItems$:Io,additionalContextMenuItems$:Eo,interactiveHideMobileControls:qe(!1),overlayContainer$:qe(void 0),startedByKeyboard$:qe(!1)},ads:{position:qe(0),duration:qe(0),playbackState:qe("inactive"),canSkip:qe(!1),secondsToWatchBeforeSkip:qe(0),postrollPassed:qe(!1)},webApi:{pictureInPictureApi:Re,annotationsApi:Ze},actions:{internal:{preload:bn,firstStart:S=>zr(S,!1),pause:()=>ro(!1),togglePlay:Fn,toggleMuted:gn,toggleSettingsMenu:On,openSettingsMenu:Yt,closeSettingsMenu:Gi,setVolume:Oi,setVideoStream:Ui,setAudioStream:Tn,setQuality:Yi,setTrafficSavingEnabled:S=>Qi(S),setPlaybackRate:wi,incrementPlaybackRate:qn,decrementPlaybackRate:Gn,setSubtitle:Pn,toggleSubtitle:ri,togglePictureInPicture:fl,startScrubbing:An,progressScrubbing:to,completeScrubbing:vn,toggleChromecast:rr,switchToActiveLive:er,switchFromAdsToVideo:ir,switchFromVideoToAds:j,skipAd:tr,setLiveWaitingStart:Vt,setLiveWaitingRecover:Vn,setLiveWaitingRecord:Un,getDebugTextData:Ao,getTraceTextData:nr,getDebugPanelData:Lo,getVideoElement:or,seekTime:(S,G,Se)=>Zi(S,G,Se),clearDelayedBufferingCheckTimeout:Gt,seekEpisodeStartTime:xn,seekToPercent:En,getNextEpisode:Wr,seekToNextEpisode:Kr,getPrevEpisode:al,seekToPrevEpisode:ul,startLogging:ct,stopLogging:bt,startCameraManualRotation:Zt,stopCameraManualRotation:Kt,moveCameraFocusPX:Xt,holdCamera:si,releaseCamera:we,getVideoEpisodes:lr,getPreviewThumbsData:cl,downloadVideo:ji,addLanguage:ra,setLanguage:Ye,nextMovie:mt,videoRotate:dl,correctSeekTimeToInteractive:cn,replayInteractive:k,setLooped:xi,reportProblem:hn},external:{firstStart:S=>zr(S,!0),play:()=>Hr(!0),pause:()=>ro(!0),stop:()=>Ur(!0),seekTime:S=>Yn(S),seekEpisodeStartTime:S=>Mn(S),setPlaybackRate:S=>ie(S),setAutoQualityLimits:S=>Hn(S),setMuted:S=>Pi(S,!0),setVolume:S=>Oi(S,S,!0),returnFocusToEpisodes:Vo,updateAdditionalSettingsItem:To,addAdditionalSettingsItem:yn,removeAdditionalSettingsItem:Po,updateAdditionalContextItem:Xo,addAdditionalContextItem:Jo,removeAdditionalContextItem:Mo}},callbacks:s,setUiCallbacks:S=>{je={...S}},getAdmanWrapper:()=>oe,getLogger:()=>X,destroy:jr};return ht};var Ss=(i,e,t,n)=>{if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],l=["interactiveTimeIndicator"],r=i.getBoundingClientRect();for(let[a,s]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(a)){let u=t[a]?.getBoundingClientRect(),f=(n||l.includes(a))&&!!u&&!!(u.right-u.left);s.set({positionStartX:0,positionEndX:0,left:f?Math.round(u.left-r.left):0,right:f?Math.round(u.right-r.left):0,top:f?Math.round(u.top-r.top):0,bottom:f?Math.round(u.bottom-r.top):0,isDisplayed:f})}};var Is=async(i,e,t)=>{await Wn(),e&&t&&(t.focus(),i.set(!1))};function e5(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function t5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var yc=class extends D{constructor(e){super(),N(this,e,t5,e5,B,{})}},np=yc;function i5(i){let e,t;return e=new np({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function n5(i){let e,t,n;function o(r){i[8](r)}let l={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:[i5]},$$scope:{ctx:i}};return i[2]!==void 0&&(l.ref=i[2]),e=new gt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&8&&(s.className=r[3]?"opened":""),a&1&&(s.disabled=r[0]),a&2&&(s.ariaLabel=r[1]),a&8&&(s.ariaExpanded=r[3]),a&16384&&(s.$$scope={dirty:a,ctx:r}),!t&&a&4&&(t=!0,s.ref=r[2],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function o5(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:l=""}=e,r=ot(),a=r.ui.contextMenu.visible$;O(i,a,F=>t(3,n=F));let s=r.ui.contextMenu.openedByBtnKeyboard$,u=r.ui.contextMenu.showContextMenuBtn$,f=r.ui.contextMenu.position$,_=r.ui.contextMenu.btnRef$,g,y=F=>{let I=yr(F),k=Rd(g);f.set(k),s.set(I),a.set(!n)},h=()=>{u.set(!0)},C=()=>{u.set(!1)};function w(F){g=F,t(2,g)}return i.$$set=F=>{"disabled"in F&&t(0,o=F.disabled),"ariaLabel"in F&&t(1,l=F.ariaLabel)},i.$$.update=()=>{i.$$.dirty&4&&g&&_.set(g)},[o,l,g,n,a,y,h,C,w]}var kc=class extends D{constructor(e){super(),N(this,e,o5,n5,B,{disabled:0,ariaLabel:1})}},op=kc;function r5(i){Ie(i,"svelte-17imlp9",".interactive-episode-icon-animated.svelte-17imlp9{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.invisible.svelte-17imlp9{opacity:0;visibility:hidden}.fullscreen.svelte-17imlp9:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.svelte-17imlp9{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.svelte-17imlp9{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.svelte-17imlp9{top:40px;right:16px}}@keyframes svelte-17imlp9-pulse{0%{transform:scale(1);border-width:1px;opacity:0}10%{opacity:1}50%{transform:scale(1.5);border-width:1px;opacity:0.5}100%{transform:scale(1.5);border-width:0.5px;opacity:0}}.pulse.svelte-17imlp9{display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);animation:1s svelte-17imlp9-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.svelte-17imlp9{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.svelte-17imlp9{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.svelte-17imlp9{display:none}")}function l5(i){let e,t;return e=new ts({props:{completed:!0}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p:ge,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function s5(i){let e,t,n,o,l,r,a,s,u,f;function _(y){i[22](y)}let g={tooltipContent:U("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[l5]},$$scope:{ctx:i}};return i[0]!==void 0&&(g.ref=i[0]),t=new Mt({props:g}),be.push(()=>Fe(t,"ref",_)),t.$on("click",i[14]),{c(){e=T("div"),L(t.$$.fragment),o=q(),l=T("div"),r=q(),a=T("div"),c(l,"class","ref-block svelte-17imlp9"),W(l,"hidden",i[1]),c(a,"class","pulse svelte-17imlp9"),W(a,"paused",i[4]),c(e,"class","interactive-episode-icon-animated svelte-17imlp9"),W(e,"mobile",i[2]),W(e,"fullscreen",i[6]),W(e,"invisible",i[1])},m(y,h){v(y,e,h),M(t,e,null),p(e,o),p(e,l),i[23](l),p(e,r),p(e,a),i[24](a),s=!0,u||(f=[Te(e,"mousemove",_t(i[21])),Te(e,"mouseleave",i[15])],u=!0)},p(y,h){let C={};h[0]&32&&(C.tooltipActive=y[5]),h[1]&1&&(C.$$scope={dirty:h,ctx:y}),!n&&h[0]&1&&(n=!0,C.ref=y[0],Oe(()=>n=!1)),t.$set(C),(!s||h[0]&2)&&W(l,"hidden",y[1]),(!s||h[0]&16)&&W(a,"paused",y[4]),(!s||h[0]&4)&&W(e,"mobile",y[2]),(!s||h[0]&64)&&W(e,"fullscreen",y[6]),(!s||h[0]&2)&&W(e,"invisible",y[1])},i(y){s||(d(t.$$.fragment,y),s=!0)},o(y){m(t.$$.fragment,y),s=!1},d(y){y&&b(e),A(t),i[23](null),i[24](null),u=!1,ut(f)}}}function a5(i,e,t){let n,o,l,r,a,s,{ref:u=void 0}=e,f,_=ot(),g=Bn(),{interactiveControlsOpacity$:y}=g;O(i,y,X=>t(18,o=X));let h=_.ui.isMobile;O(i,h,X=>t(2,a=X));let C=_.ui.isFullscreen;O(i,C,X=>t(6,s=X));let w=_.state.isInteractiveTime$;O(i,w,X=>t(19,l=X));let F=g.showInteractiveTimeIndicatorTooltip$;O(i,F,X=>t(17,n=X));let I=_.ui.controlsVisible;O(i,I,X=>t(20,r=X));let k=_.callbacks?.onInteractiveTimeIndicatorClick,P,K,z,H=()=>{t(4,z=!0)},se=()=>{me(),f?.addEventListener("animationiteration",H,{once:!0})},me=()=>{t(4,z=!1),f?.removeEventListener("animationiteration",H)},R=X=>{F.set(X)},te,le=()=>{K||(F.set(!0),k?.())};zn(()=>{F.clearTimeout(),me()});let ne=()=>{F.set(!1)};function _e(X){Cn.call(this,i,X)}function Y(X){u=X,t(0,u)}function $(X){be[X?"unshift":"push"](()=>{u=X,t(0,u)})}function E(X){be[X?"unshift":"push"](()=>{f=X,t(3,f)})}return i.$$set=X=>{"ref"in X&&t(0,u=X.ref)},i.$$.update=()=>{i.$$.dirty[0]&1048580&&t(16,P=!a&&r),i.$$.dirty[0]&851968&&t(1,K=!l||!!o||P),i.$$.dirty[0]&2&&t(4,z=K),i.$$.dirty[0]&131074&&t(5,te=n&&!K),i.$$.dirty[0]&131072&&(n?se():me())},[u,K,a,f,z,te,s,y,h,C,w,F,I,R,le,ne,P,n,o,l,r,_e,Y,$,E]}var wc=class extends D{constructor(e){super(),N(this,e,a5,s5,B,{ref:0},r5,[-1,-1])}},Ts=wc;function c5(i){Ie(i,"svelte-ips4nw",".wrapper-bottom.svelte-ips4nw.svelte-ips4nw{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box}.wrapper-bottom.svelte-ips4nw>.svelte-ips4nw{pointer-events:auto}.controls.svelte-ips4nw.svelte-ips4nw{width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box}.controls-left.svelte-ips4nw.svelte-ips4nw,.controls-right.svelte-ips4nw.svelte-ips4nw{display:flex;align-content:center}.controls-left.svelte-ips4nw.svelte-ips4nw{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-ips4nw > *:not(:first-child),.controls-right.svelte-ips4nw > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-ips4nw.svelte-ips4nw{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-ips4nw.svelte-ips4nw{transition:none}.settings-menu.svelte-ips4nw.svelte-ips4nw{bottom:57px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}")}function rp(i,e,t){let n=i.slice();return n[215]=e[t].iconUrl,n[216]=e[t].ariaLabel,n[217]=e[t].testId,n[218]=e[t].onClick,n[219]=e[t].tooltip,n}function lp(i){let e,t,n;function o(r){i[175](r)}let l={disabled:!i[9],tooltipContent:U("tooltip_previous"),$$slots:{default:[f5]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(l.ref=i[23].prevButton),e=new Mt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&512&&(s.disabled=!r[9]),a[0]&4608|a[7]&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].prevButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function f5(i){let e,t;return e=new Ar({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&4096&&(l.click=n[12]),o[0]&512&&(l.disabled=!n[9]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function sp(i){let e,t,n;function o(r){i[176](r)}let l={disabled:i[77],tooltipContent:U("tooltip_restart"),$$slots:{default:[d5]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(l.ref=i[23].replayButton),e=new Mt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[2]&32768&&(s.disabled=r[77]),a[2]&32768|a[7]&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].replayButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function d5(i){let e,t;return e=new il({props:{click:i[128],disabled:i[77]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[2]&32768&&(l.disabled=n[77]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function ap(i){let e,t,n;function o(r){i[178](r)}let l={tooltipContent:i[50],disabled:i[78],$$slots:{default:[m5]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(l.ref=i[23].playButton),e=new Mt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&524288&&(s.tooltipContent=r[50]),a[2]&65536&&(s.disabled=r[78]),a[0]&67108864|a[1]&8|a[2]&65536|a[7]&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].playButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function m5(i){let e,t,n;function o(r){i[177](r)}let l={isMobile:!1,isPlaying:i[34],click:i[88],disabled:i[78]};return i[26]!==void 0&&(l.ref=i[26]),e=new tl({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&8&&(s.isPlaying=r[34]),a[2]&65536&&(s.disabled=r[78]),!t&&a[0]&67108864&&(t=!0,s.ref=r[26],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function up(i){let e,t,n;function o(r){i[179](r)}let l={disabled:!i[8],tooltipContent:U("tooltip_next"),$$slots:{default:[p5]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(l.ref=i[23].nextButton),e=new Mt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&256&&(s.disabled=!r[8]),a[0]&2304|a[7]&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].nextButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function p5(i){let e,t;return e=new Ar({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&2048&&(l.click=n[11]),o[0]&256&&(l.disabled=!n[8]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function _5(i){let e,t,n,o,l=i[48]&&cp(i),r=i[47]&&fp(i),a=i[46]&&dp(i);return{c(){l&&l.c(),e=q(),r&&r.c(),t=q(),a&&a.c(),n=tt()},m(s,u){l&&l.m(s,u),v(s,e,u),r&&r.m(s,u),v(s,t,u),a&&a.m(s,u),v(s,n,u),o=!0},p(s,u){s[48]?l?(l.p(s,u),u[1]&131072&&d(l,1)):(l=cp(s),l.c(),d(l,1),l.m(e.parentNode,e)):l&&(ae(),m(l,1,1,()=>{l=null}),ue()),s[47]?r?(r.p(s,u),u[1]&65536&&d(r,1)):(r=fp(s),r.c(),d(r,1),r.m(t.parentNode,t)):r&&(ae(),m(r,1,1,()=>{r=null}),ue()),s[46]?a?(a.p(s,u),u[1]&32768&&d(a,1)):(a=dp(s),a.c(),d(a,1),a.m(n.parentNode,n)):a&&(ae(),m(a,1,1,()=>{a=null}),ue())},i(s){o||(d(l),d(r),d(a),o=!0)},o(s){m(l),m(r),m(a),o=!1},d(s){s&&(b(e),b(t),b(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function cp(i){let e,t,n;function o(r){i[180](r)}let l={disabled:i[76],tooltipContent:U("tooltip_interactive_go_back"),disabledTooltipContent:U(i[124]),$$slots:{default:[g5]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(l.ref=i[23].playPrevChapterButton),e=new Mt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[2]&16384&&(s.disabled=r[76]),a[0]&131072|a[2]&16384|a[7]&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].playPrevChapterButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function g5(i){let e,t;return e=new gs({props:{disabled:i[76],click:i[17]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[2]&16384&&(l.disabled=n[76]),o[0]&131072&&(l.click=n[17]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function fp(i){let e,t,n;function o(r){i[181](r)}let l={disabled:i[79],tooltipContent:U("tooltip_interactive_seek"),disabledTooltipContent:U(i[81]),$$slots:{default:[h5]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(l.ref=i[23].seekToInteractiveButton),e=new Mt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[2]&131072&&(s.disabled=r[79]),a[2]&524288&&(s.disabledTooltipContent=U(r[81])),a[0]&32768|a[2]&131072|a[7]&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].seekToInteractiveButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function h5(i){let e,t;return e=new ms({props:{disabled:i[79],click:i[15]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[2]&131072&&(l.disabled=n[79]),o[0]&32768&&(l.click=n[15]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function dp(i){let e,t,n;function o(r){i[182](r)}let l={tooltipContent:i[51],disabled:i[80],$$slots:{default:[b5]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(l.ref=i[23].interactiveGraphButton),e=new Mt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&1048576&&(s.tooltipContent=r[51]),a[2]&262144&&(s.disabled=r[80]),a[0]&65536|a[1]&1|a[2]&262144|a[7]&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].interactiveGraphButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function b5(i){let e,t;return e=new ps({props:{click:i[16],graphIsOpened:i[31],disabled:i[80]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&65536&&(l.click=n[16]),o[1]&1&&(l.graphIsOpened=n[31]),o[2]&262144&&(l.disabled=n[80]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function mp(i){let e,t,n;function o(r){i[183](r)}let l={tooltipContent:i[53],$$slots:{default:[v5]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(l.ref=i[23].liveButton),e=new Mt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&4194304&&(s.tooltipContent=r[53]),a[0]&2097152|a[1]&4194304|a[7]&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].liveButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function v5(i){let e,t;return e=new as({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[53]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.isActiveLive=n[21]),o[1]&4194304&&(l.ariaLabel=n[53]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function pp(i){let e,t,n;function o(r){i[184](r)}let l={isMobile:!1,showDuration:i[58],position:i[4]?i[82]:i[83],duration:i[4]?i[84]:i[85]};return i[23].time!==void 0&&(l.ref=i[23].time),e=new es({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&134217728&&(s.showDuration=r[58]),a[0]&16|a[2]&3145728&&(s.position=r[4]?r[82]:r[83]),a[0]&16|a[2]&12582912&&(s.duration=r[4]?r[84]:r[85]),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].time,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function _p(i){let e,t;return e=new ds({props:{position:i[83],duration:i[85],timeCodes:i[104]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[2]&2097152&&(l.position=n[83]),o[2]&8388608&&(l.duration=n[85]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function y5(i){let e,t,n=i[20]&&_p(i);return{c(){n&&n.c(),e=tt()},m(o,l){n&&n.m(o,l),v(o,e,l),t=!0},p(o,l){o[20]?n?(n.p(o,l),l[0]&1048576&&d(n,1)):(n=_p(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),m(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function k5(i){let e,t;return e=new hs({props:{iconUrl:i[215],ariaLabel:i[216]??i[219],testId:i[217],onClick:i[218]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&268435456&&(l.iconUrl=n[215]),o[0]&268435456&&(l.ariaLabel=n[216]??n[219]),o[0]&268435456&&(l.testId=n[217]),o[0]&268435456&&(l.onClick=n[218]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function gp(i){let e,t;return e=new Mt({props:{tooltipContent:i[219],width:40,$$slots:{default:[k5]},$$scope:{ctx:i}}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&268435456&&(l.tooltipContent=n[219]),o[0]&268435456|o[7]&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function hp(i){let e,t,n;function o(r){i[187](r)}let l={disabled:!i[6],tooltipContent:i[54],disabledTooltipContent:"",$$slots:{default:[w5]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(l.ref=i[23].vkLogo),e=new Mt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&64&&(s.disabled=!r[6]),a[1]&8388608&&(s.tooltipContent=r[54]),a[0]&192|a[7]&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].vkLogo,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function w5(i){let e,t;return e=new rs({props:{click:i[89],targetUrl:i[7],logoClickable:i[6]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&128&&(l.targetUrl=n[7]),o[0]&64&&(l.logoClickable=n[6]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function C5(i){let e,t;return e=new wm({props:{click:i[127]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p:ge,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function bp(i){let e,t,n;function o(r){i[189](r)}let l={tooltipContent:i[55],$$slots:{default:[S5]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(l.ref=i[23].subtitles),e=new Mt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&16777216&&(s.tooltipContent=r[55]),a[0]&262144|a[7]&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].subtitles,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function S5(i){let e,t;return e=new am({props:{isSubtitlesEnabled:i[18],click:i[90]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&262144&&(l.isSubtitlesEnabled=n[18]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function vp(i){let e,t,n,o;function l(a){i[190](a)}let r={supportLink:i[10],playerControlsHeight:i[49]?.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(r.ref=i[24]),t=new $l({props:r}),be.push(()=>Fe(t,"ref",l)),{c(){e=T("div"),L(t.$$.fragment),c(e,"class","settings-menu svelte-ips4nw")},m(a,s){v(a,e,s),M(t,e,null),o=!0},p(a,s){let u={};s[0]&1024&&(u.supportLink=a[10]),s[1]&262144&&(u.playerControlsHeight=a[49]?.clientHeight),s[0]&16384&&(u.returnFocus=a[14]),!n&&s[0]&16777216&&(n=!0,u.ref=a[24],Oe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){m(t.$$.fragment,a),o=!1},d(a){a&&b(e),A(t)}}}function yp(i){let e,t,n;function o(r){i[192](r)}let l={tooltipContent:i[27]?void 0:U("tooltip_settings_off"),$$slots:{default:[I5]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(l.ref=i[23].settings),e=new Mt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&134217728&&(s.tooltipContent=r[27]?void 0:U("tooltip_settings_off")),a[0]&33554432|a[7]&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].settings,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function I5(i){let e,t,n;function o(r){i[191](r)}let l={};return i[25]!==void 0&&(l.ref=i[25]),e=new el({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&33554432&&(t=!0,s.ref=r[25],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function T5(i){let e,t,n;function o(r){i[193](r)}let l={className:i[41]?"":"out-of-view",tooltipContent:i[52],$$slots:{default:[P5]},$$scope:{ctx:i}};return i[23].context!==void 0&&(l.ref=i[23].context),e=new Mt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&1024&&(s.className=r[41]?"":"out-of-view"),a[1]&2097152&&(s.tooltipContent=r[52]),a[1]&2097152|a[7]&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].context,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function P5(i){let e,t;return e=new op({props:{ariaLabel:i[52]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[1]&2097152&&(l.ariaLabel=n[52]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function kp(i){let e,t,n;function o(r){i[194](r)}let l={tooltipContent:i[56],$$slots:{default:[E5]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(l.ref=i[23].fullscreen),e=new Mt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&33554432&&(s.tooltipContent=r[56]),a[0]&1073750016|a[7]&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].fullscreen,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function E5(i){let e,t;return e=new ns({props:{click:i[13],isFullscreen:i[30]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&8192&&(l.click=n[13]),o[0]&1073741824&&(l.isFullscreen=n[30]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function wp(i){let e,t,n;function o(r){i[195](r)}let l={tooltipContent:i[57],$$slots:{default:[M5]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(l.ref=i[23].chromecast),e=new Mt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&67108864&&(s.tooltipContent=r[57]),a[0]&536870912|a[7]&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].chromecast,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function M5(i){let e,t;return e=new ls({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&536870912&&(l.state=n[29]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function A5(i){let e,t,n;function o(r){i[198](r)}let l={};return i[23].interactiveTimeIndicator!==void 0&&(l.ref=i[23].interactiveTimeIndicator),e=new Ts({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&8388608&&(t=!0,s.ref=r[23].interactiveTimeIndicator,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function L5(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,I,k,P,K,z,H,se,me,R,te,le,ne,_e,Y,$,E;function X(pe){i[174](pe)}let oe={isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]};i[23].timeline!==void 0&&(oe.ref=i[23].timeline),t=new fs({props:oe}),be.push(()=>Fe(t,"ref",X));let fe=i[38]&&lp(i),Re=i[35]&&sp(i),Ze=i[36]&&ap(i),ce=i[37]&&up(i),Be=i[120]&&_5(i),De=!i[4]&&i[33]&&mp(i),je=i[19]&&pp(i);function x(pe){i[185](pe)}let de={className:"w-max",disabled:!i[20],tooltipContent:U("tooltip_episodes"),$$slots:{default:[y5]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(de.ref=i[23].episodes),h=new Mt({props:de}),be.push(()=>Fe(h,"ref",x));let Ge=yt(i[28]),ve=[];for(let pe=0;pe<Ge.length;pe+=1)ve[pe]=gp(rp(i,Ge,pe));let He=pe=>m(ve[pe],1,1,()=>{ve[pe]=null}),$e=i[43]&&!i[4]&&hp(i);function st(pe){i[188](pe)}let Xe={$$slots:{default:[C5]},$$scope:{ctx:i}};i[23].volume!==void 0&&(Xe.ref=i[23].volume),K=new Mt({props:Xe}),be.push(()=>Fe(K,"ref",st));let Ye=i[40]&&bp(i),Ke=!i[86]&&!i[4]&&vp(i),Z=i[42]&&!i[4]&&yp(i),Ue=i[87].features.contextMenuButton&&T5(i),Ce=i[44]&&kp(i),Pe=i[39]&&wp(i),ze=i[122]&&A5(i);return{c(){e=T("div"),L(t.$$.fragment),o=q(),l=T("div"),r=T("div"),fe&&fe.c(),a=q(),Re&&Re.c(),s=q(),Ze&&Ze.c(),u=q(),ce&&ce.c(),f=q(),Be&&Be.c(),_=q(),De&&De.c(),g=q(),je&&je.c(),y=q(),L(h.$$.fragment),F=q(),I=T("div");for(let pe=0;pe<ve.length;pe+=1)ve[pe].c();k=q(),$e&&$e.c(),P=q(),L(K.$$.fragment),H=q(),Ye&&Ye.c(),se=q(),Ke&&Ke.c(),me=q(),Z&&Z.c(),R=q(),Ue&&Ue.c(),te=q(),Ce&&Ce.c(),le=q(),Pe&&Pe.c(),ne=q(),ze&&ze.c(),_e=tt(),c(r,"class","controls-left svelte-ips4nw"),c(I,"class","controls-right svelte-ips4nw"),c(l,"class","controls svelte-ips4nw"),c(e,"class","wrapper-bottom svelte-ips4nw"),W(e,"hidden",i[1]),W(e,"controls-hidden",!i[3]),W(e,"no-smooth",i[2])},m(pe,J){v(pe,e,J),M(t,e,null),p(e,o),p(e,l),p(l,r),fe&&fe.m(r,null),p(r,a),Re&&Re.m(r,null),p(r,s),Ze&&Ze.m(r,null),p(r,u),ce&&ce.m(r,null),p(r,f),Be&&Be.m(r,null),p(r,_),De&&De.m(r,null),p(r,g),je&&je.m(r,null),p(r,y),M(h,r,null),p(l,F),p(l,I);for(let ft=0;ft<ve.length;ft+=1)ve[ft]&&ve[ft].m(I,null);p(I,k),$e&&$e.m(I,null),p(I,P),M(K,I,null),p(I,H),Ye&&Ye.m(I,null),p(I,se),Ke&&Ke.m(I,null),p(I,me),Z&&Z.m(I,null),p(I,R),Ue&&Ue.m(I,null),p(I,te),Ce&&Ce.m(I,null),p(I,le),Pe&&Pe.m(I,null),i[196](l),i[197](e),v(pe,ne,J),ze&&ze.m(pe,J),v(pe,_e,J),Y=!0,$||(E=[ar(w=Ir.call(null,r)),Te(r,"fd:resize",i[186])],$=!0)},p(pe,J){let ft={};J[1]&16384&&(ft.isHidden=!pe[45]),J[0]&16&&(ft.isAds=pe[4]),J[0]&32&&(ft.canRewindLive=pe[5]),J[1]&2&&(ft.isRewindableLive=pe[32]),!n&&J[0]&8388608&&(n=!0,ft.ref=pe[23].timeline,Oe(()=>n=!1)),t.$set(ft),pe[38]?fe?(fe.p(pe,J),J[1]&128&&d(fe,1)):(fe=lp(pe),fe.c(),d(fe,1),fe.m(r,a)):fe&&(ae(),m(fe,1,1,()=>{fe=null}),ue()),pe[35]?Re?(Re.p(pe,J),J[1]&16&&d(Re,1)):(Re=sp(pe),Re.c(),d(Re,1),Re.m(r,s)):Re&&(ae(),m(Re,1,1,()=>{Re=null}),ue()),pe[36]?Ze?(Ze.p(pe,J),J[1]&32&&d(Ze,1)):(Ze=ap(pe),Ze.c(),d(Ze,1),Ze.m(r,u)):Ze&&(ae(),m(Ze,1,1,()=>{Ze=null}),ue()),pe[37]?ce?(ce.p(pe,J),J[1]&64&&d(ce,1)):(ce=up(pe),ce.c(),d(ce,1),ce.m(r,f)):ce&&(ae(),m(ce,1,1,()=>{ce=null}),ue()),pe[120]&&Be.p(pe,J),!pe[4]&&pe[33]?De?(De.p(pe,J),J[0]&16|J[1]&4&&d(De,1)):(De=mp(pe),De.c(),d(De,1),De.m(r,g)):De&&(ae(),m(De,1,1,()=>{De=null}),ue()),pe[19]?je?(je.p(pe,J),J[0]&524288&&d(je,1)):(je=pp(pe),je.c(),d(je,1),je.m(r,y)):je&&(ae(),m(je,1,1,()=>{je=null}),ue());let mt={};if(J[0]&1048576&&(mt.disabled=!pe[20]),J[0]&1048576|J[2]&10485760|J[7]&32&&(mt.$$scope={dirty:J,ctx:pe}),!C&&J[0]&8388608&&(C=!0,mt.ref=pe[23].episodes,Oe(()=>C=!1)),h.$set(mt),J[0]&268435456){Ge=yt(pe[28]);let lt;for(lt=0;lt<Ge.length;lt+=1){let Ot=rp(pe,Ge,lt);ve[lt]?(ve[lt].p(Ot,J),d(ve[lt],1)):(ve[lt]=gp(Ot),ve[lt].c(),d(ve[lt],1),ve[lt].m(I,k))}for(ae(),lt=Ge.length;lt<ve.length;lt+=1)He(lt);ue()}pe[43]&&!pe[4]?$e?($e.p(pe,J),J[0]&16|J[1]&4096&&d($e,1)):($e=hp(pe),$e.c(),d($e,1),$e.m(I,P)):$e&&(ae(),m($e,1,1,()=>{$e=null}),ue());let et={};J[7]&32&&(et.$$scope={dirty:J,ctx:pe}),!z&&J[0]&8388608&&(z=!0,et.ref=pe[23].volume,Oe(()=>z=!1)),K.$set(et),pe[40]?Ye?(Ye.p(pe,J),J[1]&512&&d(Ye,1)):(Ye=bp(pe),Ye.c(),d(Ye,1),Ye.m(I,se)):Ye&&(ae(),m(Ye,1,1,()=>{Ye=null}),ue()),!pe[86]&&!pe[4]?Ke?(Ke.p(pe,J),J[0]&16|J[2]&16777216&&d(Ke,1)):(Ke=vp(pe),Ke.c(),d(Ke,1),Ke.m(I,me)):Ke&&(ae(),m(Ke,1,1,()=>{Ke=null}),ue()),pe[42]&&!pe[4]?Z?(Z.p(pe,J),J[0]&16|J[1]&2048&&d(Z,1)):(Z=yp(pe),Z.c(),d(Z,1),Z.m(I,R)):Z&&(ae(),m(Z,1,1,()=>{Z=null}),ue()),pe[87].features.contextMenuButton&&Ue.p(pe,J),pe[44]?Ce?(Ce.p(pe,J),J[1]&8192&&d(Ce,1)):(Ce=kp(pe),Ce.c(),d(Ce,1),Ce.m(I,le)):Ce&&(ae(),m(Ce,1,1,()=>{Ce=null}),ue()),pe[39]?Pe?(Pe.p(pe,J),J[1]&256&&d(Pe,1)):(Pe=wp(pe),Pe.c(),d(Pe,1),Pe.m(I,null)):Pe&&(ae(),m(Pe,1,1,()=>{Pe=null}),ue()),(!Y||J[0]&2)&&W(e,"hidden",pe[1]),(!Y||J[0]&8)&&W(e,"controls-hidden",!pe[3]),(!Y||J[0]&4)&&W(e,"no-smooth",pe[2]),pe[122]&&ze.p(pe,J)},i(pe){if(!Y){d(t.$$.fragment,pe),d(fe),d(Re),d(Ze),d(ce),d(Be),d(De),d(je),d(h.$$.fragment,pe);for(let J=0;J<Ge.length;J+=1)d(ve[J]);d($e),d(K.$$.fragment,pe),d(Ye),d(Ke),d(Z),d(Ue),d(Ce),d(Pe),d(ze),Y=!0}},o(pe){m(t.$$.fragment,pe),m(fe),m(Re),m(Ze),m(ce),m(Be),m(De),m(je),m(h.$$.fragment,pe),ve=ve.filter(Boolean);for(let J=0;J<ve.length;J+=1)m(ve[J]);m($e),m(K.$$.fragment,pe),m(Ye),m(Ke),m(Z),m(Ue),m(Ce),m(Pe),m(ze),Y=!1},d(pe){pe&&(b(e),b(ne),b(_e)),A(t),fe&&fe.d(),Re&&Re.d(),Ze&&Ze.d(),ce&&ce.d(),Be&&Be.d(),De&&De.d(),je&&je.d(),A(h),li(ve,pe),$e&&$e.d(),A(K),Ye&&Ye.d(),Ke&&Ke.d(),Z&&Z.d(),Ue&&Ue.d(),Ce&&Ce.d(),Pe&&Pe.d(),i[196](null),i[197](null),ze&&ze.d(pe),$=!1,ut(E)}}}function V5(i,e,t){let n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,I,k,P,K,z,H,se,me,R,te,le,ne,_e,Y,$,E,X,oe,fe=ge,Re=()=>(fe(),fe=Wt(R,Q=>t(145,oe=Q)),R),Ze,ce=ge,Be=()=>(ce(),ce=Wt(me,Q=>t(146,Ze=Q)),me),De,je=ge,x=()=>(je(),je=Wt(se,Q=>t(147,De=Q)),se),de,Ge=ge,ve=()=>(Ge(),Ge=Wt(H,Q=>t(148,de=Q)),H),He,$e=ge,st=()=>($e(),$e=Wt(z,Q=>t(149,He=Q)),z),Xe,Ye=ge,Ke=()=>(Ye(),Ye=Wt(K,Q=>t(150,Xe=Q)),K),Z,Ue=ge,Ce=()=>(Ue(),Ue=Wt(P,Q=>t(151,Z=Q)),P),Pe,ze=ge,pe=()=>(ze(),ze=Wt(k,Q=>t(152,Pe=Q)),k),J,ft=ge,mt=()=>(ft(),ft=Wt(I,Q=>t(153,J=Q)),I),et,lt=ge,Ot=()=>(lt(),lt=Wt(F,Q=>t(154,et=Q)),F),Ct,it=ge,Ft=()=>(it(),it=Wt(w,Q=>t(155,Ct=Q)),w),At,Qt=ge,ct=()=>(Qt(),Qt=Wt(C,Q=>t(156,At=Q)),C),bt,Zt=ge,Kt=()=>(Zt(),Zt=Wt(h,Q=>t(157,bt=Q)),h),Xt,si=ge,we=()=>(si(),si=Wt(y,Q=>t(158,Xt=Q)),y),Tt,Et=ge,jt=()=>(Et(),Et=Wt(g,Q=>t(159,Tt=Q)),g),wt,Ht=ge,Ut=()=>(Ht(),Ht=Wt(_,Q=>t(160,wt=Q)),_),Lt,ii=ge,Jt=()=>(ii(),ii=Wt(f,Q=>t(161,Lt=Q)),f),Ci,Pt,pi,Mi,_i,gi,he,pt,fi,Ai,$i,Hi,en,$t,Li,fn,Gt,Si,dn,hi,tn,nn,mn;i.$$.on_destroy.push(()=>fe()),i.$$.on_destroy.push(()=>ce()),i.$$.on_destroy.push(()=>je()),i.$$.on_destroy.push(()=>Ge()),i.$$.on_destroy.push(()=>$e()),i.$$.on_destroy.push(()=>Ye()),i.$$.on_destroy.push(()=>Ue()),i.$$.on_destroy.push(()=>ze()),i.$$.on_destroy.push(()=>ft()),i.$$.on_destroy.push(()=>lt()),i.$$.on_destroy.push(()=>it()),i.$$.on_destroy.push(()=>Qt()),i.$$.on_destroy.push(()=>Zt()),i.$$.on_destroy.push(()=>si()),i.$$.on_destroy.push(()=>Et()),i.$$.on_destroy.push(()=>Ht()),i.$$.on_destroy.push(()=>ii());let{bottomHidden:bi}=e,{bottomNoSmooth:Vi}=e,{showControls:on}=e,{controlsElementRef:vi=void 0}=e,{isAds:di=!1}=e,{canRewindLive:Ui}=e,{logoClickable:Tn}=e,{logoHidden:Ri}=e,{logoTargetUrl:rn=""}=e,{showNextPrevButtons:Ii}=e,{nextButtonActive:yi}=e,{prevButtonActive:zi}=e,{isOneVideoPlaylist:pn=!1}=e,{supportLink:ln}=e,{customFullscreenSupported:ki=!0}=e,{playNextVideo:Ti}=e,{playPrevVideo:ai}=e,{repeatPlaylist:Bi}=e,{toggleFullscreen:ui}=e,{returnFocus:xt}=e,{seekToInteractive:ni}=e,{toggleGraph:Di}=e,{playPrevChapter:Wi}=e,nt=ot(),Ni=Bn(),oi=Nt(),sn=nt.actions.internal.toggleMuted,Qe=nt.actions.internal.togglePlay,an=nt.actions.internal.pause,_n=nt.actions.internal.toggleSubtitle,Ki=nt.callbacks?.onAudioDoesNotExistHint,ji=nt.callbacks?.onAudioDisabledHint,gn=nt.state.duration$;O(i,gn,Q=>t(85,nn=Q));let Gi=nt.state.positionWithScrubbing$;O(i,Gi,Q=>t(83,hi=Q));let Yt=nt.state.playbackState$;O(i,Yt,Q=>t(162,pi=Q));let On=nt.state.chromecastConnected$;O(i,On,Q=>t(86,mn=Q));let Oi=nt.state.isAudioAvailable$;O(i,Oi,Q=>t(199,te=Q));let Pi=nt.state.isAudioDisabled,un=nt.state.isEnded$;O(i,un,Q=>t(170,$t=Q));let xi=nt.state.isLive$;O(i,xi,Q=>t(33,pt=Q));let hn=nt.state.isActiveLive$;O(i,hn,Q=>t(164,gi=Q));let bn=nt.state.isRewindableLive$;O(i,bn,Q=>t(32,he=Q));let Fn=nt.ui.isPictureInPictureActive$;O(i,Fn,Q=>t(166,Ai=Q));let Yi=nt.ui.pictureInPictureType$;O(i,Yi,Q=>t(165,fi=Q));let Qi=nt.ui.settingsMenuVisible;O(i,Qi,Q=>t(27,_e=Q));let wi=nt.ui.settingsMenuOpenedByKeyboard;O(i,wi,Q=>t(141,ne=Q));let qn=nt.ui.controls,Gn=nt.actions.internal.getVideoEpisodes(),Pn=nt.state.chromecastState$;O(i,Pn,Q=>t(29,Ci=Q));let ri=nt.state.availableSubtitlesList$;O(i,ri,Q=>t(169,en=Q));let Zi=nt.state.currentSubtitle$;O(i,Zi,Q=>t(171,Li=Q));let xn=qn.disabledControls$;O(i,xn,Q=>t(173,Gt=Q));let En=nt.ui.contextMenu.visible$;O(i,En,Q=>t(163,Mi=Q));let Yn=nt.ui.contextMenu.showContextMenuBtn$;O(i,Yn,Q=>t(167,$i=Q));let Hn=nt.ui.contextMenu.openedByBtnKeyboard$;O(i,Hn,Q=>t(168,Hi=Q));let Mn=nt.ui.startedByKeyboard$;O(i,Mn,Q=>t(140,le=Q));let ie=nt.ads.duration;O(i,ie,Q=>t(84,tn=Q));let vt=nt.ads.position;O(i,vt,Q=>t(82,dn=Q));let Xi=nt.ads.playbackState;O(i,Xi,Q=>t(172,fn=Q));let An=nt.ui.isFullscreen;O(i,An,Q=>t(30,Pt=Q));let to=nt.ui.playerSize;O(i,to,Q=>t(143,$=Q));let Qn=nt.ui.currentGridType$;O(i,Qn,Q=>t(144,E=Q));let Zn=nt.ui.additionalButtons$;O(i,Zn,Q=>t(28,X=Q));let io=nt.actions.internal.getVideoElement,no=nt.actions.internal.replayInteractive,vn=nt.state.isInteractive,ee=nt.state.isInteractiveTime$;O(i,ee,Q=>t(142,Y=Q));let oo=nt.state.showInteractiveGraph,So=nt.state.showSeekToInteractive,_o=nt.state.showPlayPrevChapter,qr=nt.state.showInteractiveTimeIndicator,Ln=nt.state.graphIsOpened$;O(i,Ln,Q=>t(31,_i=Q));let Io=nt.state.playPrevChapterDisabledTooltip,To=Ni.seekToInteractiveDisabledTooltip$;O(i,To,Q=>t(81,Si=Q));let yn=oi.features.interactiveResponsiveUi,Po=()=>nt.actions.internal.toggleChromecast(),kn,Eo,Xo,Jo,Mo,$o,er,tr,ir,j,Vt,Vn,Un,Ao,nr,Lo,or,rr,ro,Hr,Ur,zr,lr,Wr,Kr="",al=(Q,js)=>{if(!Q){t(53,Kr=U("tooltip_live"));return}js===Zo.PlaybackState.PAUSED&&t(53,Kr=U("tooltip_play"))},ul,cl,fl,dl,go,rt={},cn,Vo,jr,ht,S=(0,Cp.debounceFn)(Ss,260),G,Se,We;function at(){ko({isAudioDisabled:Pi,audioDisabledHintCallback:ji,isAudioAvailable:te,audioIsNotExistHintCallback:Ki})&&sn()}let Rt=vn?no:pn?Qe:Bi;function qt(Q){i.$$.not_equal(rt.timeline,Q)&&(rt.timeline=Q,t(23,rt))}function Bt(Q){i.$$.not_equal(rt.prevButton,Q)&&(rt.prevButton=Q,t(23,rt))}function wn(Q){i.$$.not_equal(rt.replayButton,Q)&&(rt.replayButton=Q,t(23,rt))}function sr(Q){We=Q,t(26,We)}function Ks(Q){i.$$.not_equal(rt.playButton,Q)&&(rt.playButton=Q,t(23,rt))}function ml(Q){i.$$.not_equal(rt.nextButton,Q)&&(rt.nextButton=Q,t(23,rt))}function W_(Q){i.$$.not_equal(rt.playPrevChapterButton,Q)&&(rt.playPrevChapterButton=Q,t(23,rt))}function K_(Q){i.$$.not_equal(rt.seekToInteractiveButton,Q)&&(rt.seekToInteractiveButton=Q,t(23,rt))}function j_(Q){i.$$.not_equal(rt.interactiveGraphButton,Q)&&(rt.interactiveGraphButton=Q,t(23,rt))}function G_(Q){i.$$.not_equal(rt.liveButton,Q)&&(rt.liveButton=Q,t(23,rt))}function x_(Q){i.$$.not_equal(rt.time,Q)&&(rt.time=Q,t(23,rt))}function Y_(Q){i.$$.not_equal(rt.episodes,Q)&&(rt.episodes=Q,t(23,rt))}let Q_=Q=>{t(22,go=Q.target.clientWidth)};function Z_(Q){i.$$.not_equal(rt.vkLogo,Q)&&(rt.vkLogo=Q,t(23,rt))}function X_(Q){i.$$.not_equal(rt.volume,Q)&&(rt.volume=Q,t(23,rt))}function J_(Q){i.$$.not_equal(rt.subtitles,Q)&&(rt.subtitles=Q,t(23,rt))}function $_(Q){G=Q,t(24,G)}function eg(Q){Se=Q,t(25,Se)}function tg(Q){i.$$.not_equal(rt.settings,Q)&&(rt.settings=Q,t(23,rt))}function ig(Q){i.$$.not_equal(rt.context,Q)&&(rt.context=Q,t(23,rt))}function ng(Q){i.$$.not_equal(rt.fullscreen,Q)&&(rt.fullscreen=Q,t(23,rt))}function og(Q){i.$$.not_equal(rt.chromecast,Q)&&(rt.chromecast=Q,t(23,rt))}function rg(Q){be[Q?"unshift":"push"](()=>{Hr=Q,t(49,Hr)})}function lg(Q){be[Q?"unshift":"push"](()=>{vi=Q,t(0,vi)})}function sg(Q){i.$$.not_equal(rt.interactiveTimeIndicator,Q)&&(rt.interactiveTimeIndicator=Q,t(23,rt))}return i.$$set=Q=>{"bottomHidden"in Q&&t(1,bi=Q.bottomHidden),"bottomNoSmooth"in Q&&t(2,Vi=Q.bottomNoSmooth),"showControls"in Q&&t(3,on=Q.showControls),"controlsElementRef"in Q&&t(0,vi=Q.controlsElementRef),"isAds"in Q&&t(4,di=Q.isAds),"canRewindLive"in Q&&t(5,Ui=Q.canRewindLive),"logoClickable"in Q&&t(6,Tn=Q.logoClickable),"logoHidden"in Q&&t(129,Ri=Q.logoHidden),"logoTargetUrl"in Q&&t(7,rn=Q.logoTargetUrl),"showNextPrevButtons"in Q&&t(130,Ii=Q.showNextPrevButtons),"nextButtonActive"in Q&&t(8,yi=Q.nextButtonActive),"prevButtonActive"in Q&&t(9,zi=Q.prevButtonActive),"isOneVideoPlaylist"in Q&&t(131,pn=Q.isOneVideoPlaylist),"supportLink"in Q&&t(10,ln=Q.supportLink),"customFullscreenSupported"in Q&&t(132,ki=Q.customFullscreenSupported),"playNextVideo"in Q&&t(11,Ti=Q.playNextVideo),"playPrevVideo"in Q&&t(12,ai=Q.playPrevVideo),"repeatPlaylist"in Q&&t(133,Bi=Q.repeatPlaylist),"toggleFullscreen"in Q&&t(13,ui=Q.toggleFullscreen),"returnFocus"in Q&&t(14,xt=Q.returnFocus),"seekToInteractive"in Q&&t(15,ni=Q.seekToInteractive),"toggleGraph"in Q&&t(16,Di=Q.toggleGraph),"playPrevChapter"in Q&&t(17,Wi=Q.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&262144&&t(138,n=Gt.has("EPISODE_BUTTON")),i.$$.dirty[5]&262144&&t(80,o=Gt.has("GRAPH_BUTTON")),i.$$.dirty[5]&262144&&t(79,l=Gt.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[5]&262144&&t(78,r=Gt.has("PLAY_BUTTON")),i.$$.dirty[5]&262144&&t(77,a=Gt.has("REPLAY_BUTTON")),i.$$.dirty[5]&262144&&t(76,s=Gt.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[0]&16|i.$$.dirty[5]&131200&&t(34,kn=di?fn==="playing":pi===Zo.PlaybackState.PLAYING),i.$$.dirty[5]&65536&&t(18,Eo=Li.value!=="off"),i.$$.dirty[0]&16|i.$$.dirty[5]&32768&&t(139,u=$t&&!di||vn),i.$$.dirty[4]&1081344&&t(35,Xo=yn?u&&mi(E,"m"):u),i.$$.dirty[0]&16|i.$$.dirty[5]&32768&&t(36,Jo=!$t||vn||di),i.$$.dirty[4]&1048576&&t(134,Mo=mi(E,"m")),i.$$.dirty[0]&272|i.$$.dirty[4]&1048640&&t(37,$o=Ii&&mi(E,"m")&&!di&&yi),i.$$.dirty[0]&528|i.$$.dirty[4]&1048640&&t(38,er=Ii&&mi(E,"m")&&!di&&zi),i.$$.dirty[0]&536870912|i.$$.dirty[4]&1048576|i.$$.dirty[5]&3072&&t(39,tr=Ci!==Zo.ChromecastState.NOT_AVAILABLE&&!(Ai&&fi===1)&&mi(E,"m")&&!vn),i.$$.dirty[4]&1048576|i.$$.dirty[5]&16384&&t(40,ir=en.length>0&&mi(E,"m")),i.$$.dirty[5]&12288&&t(41,j=Hi||$i),i.$$.dirty[4]&1048576&&t(42,Vt=mi(E,"s")),i.$$.dirty[4]&32&&t(43,Vn=!Ri),i.$$.dirty[4]&1048864|i.$$.dirty[5]&3072&&t(44,Un=oi.features.fullscreen&&(Ri||mi(E,yn?"xs":"s"))&&!(Ai&&fi===1)&&(vn?ki:!0)),i.$$.dirty[0]&16|i.$$.dirty[1]&4&&t(19,Ao=(!pt||di)&&!(oi.features.interactiveHideTime&&vn)),i.$$.dirty[4]&524288&&t(45,nr=$.width>100),i.$$.dirty[4]&1048576&&t(46,Lo=yn?oo&&mi(E,"m"):oo),i.$$.dirty[4]&1048576&&t(47,or=yn?So&&mi(E,"s"):So),i.$$.dirty[4]&1048576&&t(48,rr=yn?_o&&mi(E,"s"):_o),i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408&&t(20,ro=!di&&!pt&&!!Gn?.length&&Mo&&!n),i.$$.dirty[1]&2|i.$$.dirty[5]&512&&t(21,Ur=!he||gi),i.$$.dirty[5]&128&&t(50,zr=pi===Zo.PlaybackState.PLAYING?U("tooltip_pause"):U("tooltip_play")),i.$$.dirty[1]&1&&t(51,lr=_i?U("tooltip_interactive_graph_on"):U("tooltip_interactive_graph_off")),i.$$.dirty[5]&256&&t(52,Wr=Mi?U("aria_label_context_menu_close"):U("aria_label_context_menu_open")),i.$$.dirty[0]&2097152|i.$$.dirty[5]&128&&al(Ur,pi),i.$$.dirty[0]&262144&&t(55,cl=Eo?U("tooltip_subtitles_on"):U("tooltip_subtitles_off")),i.$$.dirty[0]&1073741824&&t(56,fl=Pt?U("tooltip_fullscreen_on"):U("tooltip_fullscreen_off")),i.$$.dirty[0]&536870912&&t(57,dl=Ci===Zo.ChromecastState.CONNECTED?U("tooltip_chromecast_on"):U("tooltip_chromecast_off")),i.$$.dirty[0]&268435456|i.$$.dirty[4]&2145386496|i.$$.dirty[5]&127&&t(135,cn={prevButton:Lt?Lt.right-Lt.left:0,replayButton:wt?wt.right-wt.left:0,playButton:Tt?Tt.right-Tt.left:0,nextButton:Xt?Xt.right-Xt.left:0,playPrevChapterButton:bt?bt.right-bt.left:0,seekToInteractiveButton:At?At.right-At.left:0,interactiveGraphButton:Ct?Ct.right-Ct.left:0,liveButton:et?et.right-et.left:0,time:J?J.right-J.left:0,episodes:Pe?Pe.right-Pe.left:0,vkLogo:Z?Z.right-Z.left:0,volume:Xe?Xe.right-Xe.left:0,subtitles:He?He.right-He.left:0,settings:de?de.right-de.left:0,context:De?De.right-De.left:0,fullscreen:Ze?Ze.right-Ze.left:0,chromecast:oe?oe.right-oe.left:0,additionalButtons:X.length?X.reduce(Q=>[...Q,40],[]):[]}),i.$$.dirty[4]&6144&&(!Vo||Vo<cn.time)&&t(136,Vo=cn.time),i.$$.dirty[0]&5767168|i.$$.dirty[4]&1054720){let Q=0;ro&&(mi(E,"xl")?Q=cn.time:Q=60);let js=cn.prevButton+cn.playButton+cn.nextButton+cn.seekToInteractiveButton+cn.interactiveGraphButton+cn.liveButton+Vo+Q;t(137,jr=Ao&&go>=js)}i.$$.dirty[4]&1056768&&t(58,ht=jr&&mi(E,"m")),i.$$.dirty[0]&8388616|i.$$.dirty[4]&786432&&S(io(),qn,rt,on),i.$$.dirty[0]&167772160&&kr(Se,_e,wi),i.$$.dirty[0]&150994944|i.$$.dirty[4]&131072&&jo(G,_e,ne),i.$$.dirty[0]&67108864|i.$$.dirty[4]&65536&&Is(Mn,le,We)},t(54,ul=oi.logoType==="vk_video"?U("tooltip_vk_video_logo"):U("tooltip_vk_logo")),Jt(t(75,{prevButton:f,replayButton:_,playButton:g,nextButton:y,playPrevChapterButton:h,seekToInteractiveButton:C,interactiveGraphButton:w,liveButton:F,time:I,episodes:k,vkLogo:P,volume:K,subtitles:z,settings:H,context:se,fullscreen:me,chromecast:R}=qn,f,Ut(t(74,_)),jt(t(73,g)),we(t(72,y)),Kt(t(71,h)),ct(t(70,C)),Ft(t(69,w)),Ot(t(68,F)),mt(t(67,I)),pe(t(66,k)),Ce(t(65,P)),Ke(t(64,K)),st(t(63,z)),ve(t(62,H)),x(t(61,se)),Be(t(60,me)),Re(t(59,R)))),[vi,bi,Vi,on,di,Ui,Tn,rn,yi,zi,ln,Ti,ai,ui,xt,ni,Di,Wi,Eo,Ao,ro,Ur,go,rt,G,Se,We,_e,X,Ci,Pt,_i,he,pt,kn,Xo,Jo,$o,er,tr,ir,j,Vt,Vn,Un,nr,Lo,or,rr,Hr,zr,lr,Wr,Kr,ul,cl,fl,dl,ht,R,me,se,H,z,K,P,k,I,F,w,C,h,y,g,_,f,s,a,r,l,o,Si,dn,hi,tn,nn,mn,oi,Qe,an,_n,gn,Gi,Yt,On,Oi,un,xi,hn,bn,Fn,Yi,Qi,wi,Gn,Pn,ri,Zi,xn,En,Yn,Hn,Mn,ie,vt,Xi,An,to,Qn,Zn,vn,ee,qr,Ln,Io,To,Po,at,Rt,Ri,Ii,pn,ki,Bi,Mo,cn,Vo,jr,n,u,le,ne,Y,$,E,oe,Ze,De,de,He,Xe,Z,Pe,J,et,Ct,At,bt,Xt,Tt,wt,Lt,pi,Mi,gi,fi,Ai,$i,Hi,en,$t,Li,fn,Gt,qt,Bt,wn,sr,Ks,ml,W_,K_,j_,G_,x_,Y_,Q_,Z_,X_,J_,$_,eg,tg,ig,ng,og,rg,lg,sg]}var Cc=class extends D{constructor(e){super(),N(this,e,V5,L5,B,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:129,logoTargetUrl:7,showNextPrevButtons:130,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:131,supportLink:10,customFullscreenSupported:132,playNextVideo:11,playPrevVideo:12,repeatPlaylist:133,toggleFullscreen:13,returnFocus:14,seekToInteractive:15,toggleGraph:16,playPrevChapter:17},c5,[-1,-1,-1,-1,-1,-1,-1,-1])}},Sp=Cc;var Vr=require("@vkontakte/videoplayer-core");function R5(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,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 f=0;f<s.length;f+=1)u=re(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(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"),c(t,"fill","none"),c(t,"fill-rule","evenodd"),ke(e,u)},m(f,_){v(f,e,_),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),l=!0},p(f,[_]){a&&a.p&&(!l||_&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],_,null):Le(f[1]),null),ke(e,u=Ve(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},_&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function B5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Ic=class extends D{constructor(e){super(),N(this,e,B5,R5,B,{})}},Ip=Ic;var Pp=require("@vkontakte/videoplayer-shared");function D5(i){Ie(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 Tp(i){let e;return{c(){e=T("span"),e.textContent=`${U("mobile_unmute")}`,c(e,"class","text svelte-6gmlbk")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function N5(i){let e,t,n,o;var l=i[4];function r(s,u){return{}}l&&(t=Dt(l,r(i)));let a=i[1]&&Tp(i);return{c(){e=T("div"),t&&L(t.$$.fragment),n=q(),a&&a.c(),c(e,"class","container svelte-6gmlbk"),c(e,"aria-hidden","true"),W(e,"expanded",i[1])},m(s,u){v(s,e,u),t&&M(t,e,null),p(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&l!==(l=s[4])){if(t){ae();let f=t;m(f.$$.fragment,1,0,()=>{A(f,1)}),ue()}l?(t=Dt(l,r(s,u)),L(t.$$.fragment),d(t.$$.fragment,1),M(t,e,n)):t=null}s[1]?a||(a=Tp(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&W(e,"expanded",s[1])},i(s){o||(t&&d(t.$$.fragment,s),o=!0)},o(s){t&&m(t.$$.fragment,s),o=!1},d(s){s&&b(e),t&&A(t),a&&a.d()}}}function O5(i){let e,t,n;function o(r){i[6](r)}let l={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[N5]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.testId=r[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(s.click=r[2]),a&8&&(s.ariaLabel=r[3]),a&146&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function F5(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:l=Pp.noop}=e,{ref:r=void 0}=e,a,s;function u(f){r=f,t(0,r)}return i.$$set=f=>{"muted"in f&&t(5,n=f.muted),"expanded"in f&&t(1,o=f.expanded),"click"in f&&t(2,l=f.click),"ref"in f&&t(0,r=f.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,a=n?U("tooltip_volume"):U("tooltip_volume_muted")),i.$$.dirty&2&&t(4,s=o?Qo:Ip)},[r,o,l,a,s,n,u]}var Tc=class extends D{constructor(e){super(),N(this,e,F5,O5,B,{muted:5,expanded:1,click:2,ref:0},D5)}},Pc=Tc;function q5(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,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 f=0;f<s.length;f+=1)u=re(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("path"),n=V("path"),o=V("path"),c(t,"fill","currentColor"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","currentColor"),c(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"),c(n,"class","hidden-not-active"),c(o,"fill","currentColor"),c(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"),c(o,"class","hidden-active"),ke(e,u)},m(f,_){v(f,e,_),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),l=!0},p(f,[_]){a&&a.p&&(!l||_&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],_,null):Le(f[1]),null),ke(e,u=Ve(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},_&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function H5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Ec=class extends D{constructor(e){super(),N(this,e,H5,q5,B,{})}},Ep=Ec;function U5(i){Ie(i,"svelte-tmam00",'svg[data-testid="pip-icon--active"] .hidden-active,svg[data-testid="pip-icon"] .hidden-not-active{visibility:hidden;opacity:0}')}function z5(i){let e,t;return e=new Ep({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&2&&(l.style=n[1]),o&1&&(l["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function W5(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=l=>{"isActive"in l&&t(0,o=l.isActive)},i.$$.update=()=>{i.$$.dirty&1&&t(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var Mc=class extends D{constructor(e){super(),N(this,e,W5,z5,B,{isActive:0},U5)}},Mp=Mc;var Ap=require("@vkontakte/videoplayer-shared");function K5(i){let e,t;return e=new Mp({props:{isActive:i[1]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function j5(i){let e,t,n;function o(r){i[3](r)}let l={testId:"btn-pip",ariaLabel:U("menu_pip"),click:i[2],$$slots:{default:[K5]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&4&&(s.click=r[2]),a&18&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function G5(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:l=Ap.noop}=e;function r(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,l=a.click)},[n,o,l,r]}var Ac=class extends D{constructor(e){super(),N(this,e,G5,j5,B,{ref:0,isPictureInPictureActive:1,click:2})}},Lp=Ac;var e0=require("@vkontakte/videoplayer-shared");function x5(i){Ie(i,"svelte-17qsgob",".wrapper-bottom.svelte-17qsgob.svelte-17qsgob{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-17qsgob>.svelte-17qsgob{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-17qsgob.svelte-17qsgob{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-17qsgob.svelte-17qsgob{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.svelte-17qsgob.svelte-17qsgob{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.svelte-17qsgob.svelte-17qsgob{position:absolute;top:4px;left:8px}.wrapper-middle-left.svelte-17qsgob.svelte-17qsgob,.wrapper-middle-left-second.svelte-17qsgob.svelte-17qsgob,.wrapper-middle-right.svelte-17qsgob.svelte-17qsgob{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-17qsgob.svelte-17qsgob{left:12px}.wrapper-middle-left-second.svelte-17qsgob.svelte-17qsgob{left:64px}.wrapper-middle-right.svelte-17qsgob.svelte-17qsgob{right:12px}.controls.svelte-17qsgob.svelte-17qsgob{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-17qsgob > *:not(:first-child){margin-left:8px}.hidden.svelte-17qsgob.svelte-17qsgob{visibility:hidden;opacity:0}.controls-hidden.svelte-17qsgob.svelte-17qsgob{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-17qsgob.svelte-17qsgob{transition:none}.settings-mobile.svelte-17qsgob.svelte-17qsgob{position:absolute;z-index:var(--mobile-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%}.overlay-mobile.svelte-17qsgob.svelte-17qsgob{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-17qsgob.svelte-17qsgob{top:16px}.wrapper-top-left.fullscreen.svelte-17qsgob.svelte-17qsgob{top:16px}.controls-wrapper.fullscreen.svelte-17qsgob.svelte-17qsgob{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-17qsgob.svelte-17qsgob{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-17qsgob.svelte-17qsgob{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-17qsgob.svelte-17qsgob{left:44px}.wrapper-middle-left-second.fullscreen.svelte-17qsgob.svelte-17qsgob{left:96px}.wrapper-middle-right.fullscreen.svelte-17qsgob.svelte-17qsgob{right:44px}.controls-wrapper.fullscreen.svelte-17qsgob.svelte-17qsgob{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function Vp(i,e,t){let n=i.slice();return n[172]=e[t].iconUrl,n[173]=e[t].ariaLabel,n[174]=e[t].testId,n[175]=e[t].onClick,n[176]=e[t].tooltip,n}function Rp(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,I=(!i[51]||i[53])&&Bp(i),k=yt(i[56]),P=[];for(let Y=0;Y<k.length;Y+=1)P[Y]=Dp(Vp(i,k,Y));let K=Y=>m(P[Y],1,1,()=>{P[Y]=null}),z=i[36]&&Np(i),H=i[37]&&Op(i),se=i[57]&&Fp(i),me=i[39]&&qp(i),R=i[8]&&Hp(i),te=i[34]&&Up(i),le=i[33]&&zp(i),ne=i[8]&&Wp(i),_e=i[97]&&!i[29]&&Kp(i);return{c(){e=T("div"),t=q(),n=T("div"),I&&I.c(),o=q(),l=T("div");for(let Y=0;Y<P.length;Y+=1)P[Y].c();r=q(),z&&z.c(),a=q(),H&&H.c(),s=q(),se&&se.c(),u=q(),me&&me.c(),f=q(),_=T("div"),R&&R.c(),g=q(),te&&te.c(),y=q(),le&&le.c(),h=q(),ne&&ne.c(),C=q(),_e&&_e.c(),w=tt(),c(e,"class","overlay-mobile svelte-17qsgob"),W(e,"hidden",!i[42]),c(n,"class","wrapper-top-left svelte-17qsgob"),W(n,"hidden",!i[3]),W(n,"fullscreen",i[52]),c(l,"class","wrapper-top-right svelte-17qsgob"),W(l,"hidden",!i[3]&&!i[27]),W(l,"fullscreen",i[52]),c(_,"class","wrapper-middle svelte-17qsgob"),W(_,"hidden",!i[3]||i[29])},m(Y,$){v(Y,e,$),v(Y,t,$),v(Y,n,$),I&&I.m(n,null),v(Y,o,$),v(Y,l,$);for(let E=0;E<P.length;E+=1)P[E]&&P[E].m(l,null);p(l,r),z&&z.m(l,null),p(l,a),H&&H.m(l,null),p(l,s),se&&se.m(l,null),p(l,u),me&&me.m(l,null),v(Y,f,$),v(Y,_,$),R&&R.m(_,null),p(_,g),te&&te.m(_,null),p(_,y),le&&le.m(_,null),p(_,h),ne&&ne.m(_,null),v(Y,C,$),_e&&_e.m(Y,$),v(Y,w,$),F=!0},p(Y,$){if((!F||$[1]&2048)&&W(e,"hidden",!Y[42]),!Y[51]||Y[53]?I?(I.p(Y,$),$[1]&5242880&&d(I,1)):(I=Bp(Y),I.c(),d(I,1),I.m(n,null)):I&&(ae(),m(I,1,1,()=>{I=null}),ue()),(!F||$[0]&8)&&W(n,"hidden",!Y[3]),(!F||$[1]&2097152)&&W(n,"fullscreen",Y[52]),$[1]&33554432){k=yt(Y[56]);let E;for(E=0;E<k.length;E+=1){let X=Vp(Y,k,E);P[E]?(P[E].p(X,$),d(P[E],1)):(P[E]=Dp(X),P[E].c(),d(P[E],1),P[E].m(l,r))}for(ae(),E=k.length;E<P.length;E+=1)K(E);ue()}Y[36]?z?(z.p(Y,$),$[1]&32&&d(z,1)):(z=Np(Y),z.c(),d(z,1),z.m(l,a)):z&&(ae(),m(z,1,1,()=>{z=null}),ue()),Y[37]?H?(H.p(Y,$),$[1]&64&&d(H,1)):(H=Op(Y),H.c(),d(H,1),H.m(l,s)):H&&(ae(),m(H,1,1,()=>{H=null}),ue()),Y[57]?se?(se.p(Y,$),$[1]&67108864&&d(se,1)):(se=Fp(Y),se.c(),d(se,1),se.m(l,u)):se&&(ae(),m(se,1,1,()=>{se=null}),ue()),Y[39]?me?(me.p(Y,$),$[1]&256&&d(me,1)):(me=qp(Y),me.c(),d(me,1),me.m(l,null)):me&&(ae(),m(me,1,1,()=>{me=null}),ue()),(!F||$[0]&134217736)&&W(l,"hidden",!Y[3]&&!Y[27]),(!F||$[1]&2097152)&&W(l,"fullscreen",Y[52]),Y[8]?R?(R.p(Y,$),$[0]&256&&d(R,1)):(R=Hp(Y),R.c(),d(R,1),R.m(_,g)):R&&(ae(),m(R,1,1,()=>{R=null}),ue()),Y[34]?te?(te.p(Y,$),$[1]&8&&d(te,1)):(te=Up(Y),te.c(),d(te,1),te.m(_,y)):te&&(ae(),m(te,1,1,()=>{te=null}),ue()),Y[33]?le?(le.p(Y,$),$[1]&4&&d(le,1)):(le=zp(Y),le.c(),d(le,1),le.m(_,h)):le&&(ae(),m(le,1,1,()=>{le=null}),ue()),Y[8]?ne?(ne.p(Y,$),$[0]&256&&d(ne,1)):(ne=Wp(Y),ne.c(),d(ne,1),ne.m(_,null)):ne&&(ae(),m(ne,1,1,()=>{ne=null}),ue()),(!F||$[0]&536870920)&&W(_,"hidden",!Y[3]||Y[29]),Y[97]&&!Y[29]?_e?(_e.p(Y,$),$[0]&536870912&&d(_e,1)):(_e=Kp(Y),_e.c(),d(_e,1),_e.m(w.parentNode,w)):_e&&(ae(),m(_e,1,1,()=>{_e=null}),ue())},i(Y){if(!F){d(I);for(let $=0;$<k.length;$+=1)d(P[$]);d(z),d(H),d(se),d(me),d(R),d(te),d(le),d(ne),d(_e),F=!0}},o(Y){m(I),P=P.filter(Boolean);for(let $=0;$<P.length;$+=1)m(P[$]);m(z),m(H),m(se),m(me),m(R),m(te),m(le),m(ne),m(_e),F=!1},d(Y){Y&&(b(e),b(t),b(n),b(o),b(l),b(f),b(_),b(C),b(w)),I&&I.d(),li(P,Y),z&&z.d(),H&&H.d(),se&&se.d(),me&&me.d(),R&&R.d(),te&&te.d(),le&&le.d(),ne&&ne.d(),_e&&_e.d(Y)}}}function Bp(i){let e,t,n;function o(r){i[132](r)}let l={muted:i[54],expanded:i[51]&&!i[70]&&i[55],click:i[107]};return i[20].volume!==void 0&&(l.ref=i[20].volume),e=new Pc({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&8388608&&(s.muted=r[54]),a[1]&17825792&&(s.expanded=r[51]&&!r[70]&&r[55]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].volume,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function Dp(i){let e,t;return e=new hs({props:{iconUrl:i[172],ariaLabel:i[173]??i[176],testId:i[174],onClick:i[175]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[1]&33554432&&(l.iconUrl=n[172]),o[1]&33554432&&(l.ariaLabel=n[173]??n[176]),o[1]&33554432&&(l.testId=n[174]),o[1]&33554432&&(l.onClick=n[175]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Np(i){let e,t,n;function o(r){i[133](r)}let l={isMobile:!0,click:i[105],state:i[28]};return i[20].chromecast!==void 0&&(l.ref=i[20].chromecast),e=new ls({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&268435456&&(s.state=r[28]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].chromecast,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function Op(i){let e,t,n;function o(r){i[134](r)}let l={click:i[106],isPictureInPictureActive:i[26]};return i[20].pip!==void 0&&(l.ref=i[20].pip),e=new Lp({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&67108864&&(s.isPictureInPictureActive=r[26]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].pip,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function Fp(i){let e,t,n;function o(r){i[135](r)}let l={};return i[22]!==void 0&&(l.ref=i[22]),e=new el({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=r[22],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function qp(i){let e,t,n;function o(r){i[136](r)}let l={click:i[64],targetUrl:i[7],logoClickable:i[6]};return i[20].vkLogo!==void 0&&(l.ref=i[20].vkLogo),e=new rs({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&128&&(s.targetUrl=r[7]),a[0]&64&&(s.logoClickable=r[6]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].vkLogo,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function Hp(i){let e,t,n;function o(r){i[137](r)}let l={click:i[13],type:"prev",disabled:!i[10],isMobile:!0};return i[20].prevButton!==void 0&&(l.ref=i[20].prevButton),e=new Ar({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&8192&&(s.click=r[13]),a[0]&1024&&(s.disabled=!r[10]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].prevButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function Up(i){let e,t,n;function o(r){i[138](r)}let l={disabled:i[49],click:i[63],isMobile:!0,isPlaying:i[31]};return i[20].playButton!==void 0&&(l.ref=i[20].playButton),e=new tl({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&262144&&(s.disabled=r[49]),a[1]&1&&(s.isPlaying=r[31]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].playButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function zp(i){let e,t,n;function o(r){i[139](r)}let l={disabled:i[48],click:i[108],isMobile:!0};return i[20].replayButton!==void 0&&(l.ref=i[20].replayButton),e=new il({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.disabled=r[48]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].replayButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function Wp(i){let e,t,n;function o(r){i[140](r)}let l={click:i[12],type:"next",disabled:!i[9],isMobile:!0};return i[20].nextButton!==void 0&&(l.ref=i[20].nextButton),e=new Ar({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&4096&&(s.click=r[12]),a[0]&512&&(s.disabled=!r[9]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].nextButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function Kp(i){let e,t,n,o,l=i[101]&&Y5(i),r=i[99]&&Q5(i),a=i[100]&&Z5(i);return{c(){l&&l.c(),e=q(),r&&r.c(),t=q(),a&&a.c(),n=tt()},m(s,u){l&&l.m(s,u),v(s,e,u),r&&r.m(s,u),v(s,t,u),a&&a.m(s,u),v(s,n,u),o=!0},p(s,u){s[101]&&l.p(s,u),s[99]&&r.p(s,u),s[100]&&a.p(s,u)},i(s){o||(d(l),d(r),d(a),o=!0)},o(s){m(l),m(r),m(a),o=!1},d(s){s&&(b(e),b(t),b(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function Y5(i){let e,t,n,o,l,r;function a(u){i[141](u)}let s={hidden:!i[3],disabled:i[47],click:i[18]};return i[20].playPrevChapterButton!==void 0&&(s.ref=i[20].playPrevChapterButton),t=new gs({props:s}),be.push(()=>Fe(t,"ref",a)),{c(){e=T("div"),L(t.$$.fragment),c(e,"class","wrapper-middle-left svelte-17qsgob"),W(e,"fullscreen",i[52]),W(e,"hidden",!i[3])},m(u,f){v(u,e,f),M(t,e,null),o=!0,l||(r=Te(e,"click",i[109]),l=!0)},p(u,f){let _={};f[0]&8&&(_.hidden=!u[3]),f[1]&65536&&(_.disabled=u[47]),f[0]&262144&&(_.click=u[18]),!n&&f[0]&1048576&&(n=!0,_.ref=u[20].playPrevChapterButton,Oe(()=>n=!1)),t.$set(_),(!o||f[1]&2097152)&&W(e,"fullscreen",u[52]),(!o||f[0]&8)&&W(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){m(t.$$.fragment,u),o=!1},d(u){u&&b(e),A(t),l=!1,r()}}}function Q5(i){let e,t,n,o,l;function r(s){i[142](s)}let a={hidden:!i[3]&&!i[58],disabled:i[50],click:i[17],graphIsOpened:i[58]};return i[20].interactiveGraphButton!==void 0&&(a.ref=i[20].interactiveGraphButton),t=new ps({props:a}),be.push(()=>Fe(t,"ref",r)),{c(){e=T("div"),L(t.$$.fragment),c(e,"class",o=vf(i[101]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-17qsgob"),W(e,"fullscreen",i[52]),W(e,"hidden",!i[3]&&!i[58])},m(s,u){v(s,e,u),M(t,e,null),l=!0},p(s,u){let f={};u[0]&8|u[1]&134217728&&(f.hidden=!s[3]&&!s[58]),u[1]&524288&&(f.disabled=s[50]),u[0]&131072&&(f.click=s[17]),u[1]&134217728&&(f.graphIsOpened=s[58]),!n&&u[0]&1048576&&(n=!0,f.ref=s[20].interactiveGraphButton,Oe(()=>n=!1)),t.$set(f),(!l||u[1]&2097152)&&W(e,"fullscreen",s[52]),(!l||u[0]&8|u[1]&134217728)&&W(e,"hidden",!s[3]&&!s[58])},i(s){l||(d(t.$$.fragment,s),l=!0)},o(s){m(t.$$.fragment,s),l=!1},d(s){s&&b(e),A(t)}}}function Z5(i){let e,t,n,o,l,r;function a(u){i[143](u)}let s={hidden:!i[3],disabled:i[46],click:i[16]};return i[20].seekToInteractiveButton!==void 0&&(s.ref=i[20].seekToInteractiveButton),t=new ms({props:s}),be.push(()=>Fe(t,"ref",a)),{c(){e=T("div"),L(t.$$.fragment),c(e,"class","wrapper-middle-right svelte-17qsgob"),W(e,"fullscreen",i[52]),W(e,"hidden",!i[3])},m(u,f){v(u,e,f),M(t,e,null),o=!0,l||(r=Te(e,"click",i[110]),l=!0)},p(u,f){let _={};f[0]&8&&(_.hidden=!u[3]),f[1]&32768&&(_.disabled=u[46]),f[0]&65536&&(_.click=u[16]),!n&&f[0]&1048576&&(n=!0,_.ref=u[20].seekToInteractiveButton,Oe(()=>n=!1)),t.$set(_),(!o||f[1]&2097152)&&W(e,"fullscreen",u[52]),(!o||f[0]&8)&&W(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){m(t.$$.fragment,u),o=!1},d(u){u&&b(e),A(t),l=!1,r()}}}function jp(i){let e,t,n,o,l,r=i[53]&&Gp(i),a=i[32]&&xp(i);return o=new cs({props:{position:i[59],duration:i[60]}}),{c(){r&&r.c(),e=q(),a&&a.c(),t=q(),n=T("div"),L(o.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile svelte-17qsgob"),W(n,"fullscreen",i[52])},m(s,u){r&&r.m(s,u),v(s,e,u),a&&a.m(s,u),v(s,t,u),v(s,n,u),M(o,n,null),l=!0},p(s,u){s[53]?r?(r.p(s,u),u[1]&4194304&&d(r,1)):(r=Gp(s),r.c(),d(r,1),r.m(e.parentNode,e)):r&&(ae(),m(r,1,1,()=>{r=null}),ue()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=xp(s),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(ae(),m(a,1,1,()=>{a=null}),ue());let f={};u[1]&268435456&&(f.position=s[59]),u[1]&536870912&&(f.duration=s[60]),o.$set(f),(!l||u[1]&2097152)&&W(n,"fullscreen",s[52])},i(s){l||(d(r),d(a),d(o.$$.fragment,s),l=!0)},o(s){m(r),m(a),m(o.$$.fragment,s),l=!1},d(s){s&&(b(e),b(t),b(n)),r&&r.d(s),a&&a.d(s),A(o)}}}function Gp(i){let e,t,n,o;function l(a){i[144](a)}let r={muted:i[54],expanded:!1,click:i[107]};return i[20].volume!==void 0&&(r.ref=i[20].volume),t=new Pc({props:r}),be.push(()=>Fe(t,"ref",l)),{c(){e=T("div"),L(t.$$.fragment),c(e,"class","wrapper-top-right svelte-17qsgob"),W(e,"fullscreen",i[52])},m(a,s){v(a,e,s),M(t,e,null),o=!0},p(a,s){let u={};s[1]&8388608&&(u.muted=a[54]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].volume,Oe(()=>n=!1)),t.$set(u),(!o||s[1]&2097152)&&W(e,"fullscreen",a[52])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){m(t.$$.fragment,a),o=!1},d(a){a&&b(e),A(t)}}}function xp(i){let e,t,n,o;function l(a){i[145](a)}let r={disabled:i[49],click:i[63],isMobile:!0,isPlaying:!i[32]};return i[20].playButton!==void 0&&(r.ref=i[20].playButton),t=new tl({props:r}),be.push(()=>Fe(t,"ref",l)),{c(){e=T("div"),L(t.$$.fragment),c(e,"class","wrapper-middle svelte-17qsgob")},m(a,s){v(a,e,s),M(t,e,null),o=!0},p(a,s){let u={};s[1]&262144&&(u.disabled=a[49]),s[1]&2&&(u.isPlaying=!a[32]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].playButton,Oe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){m(t.$$.fragment,a),o=!1},d(a){a&&b(e),A(t)}}}function X5(i){let e,t,n;function o(r){i[146](r)}let l={disabled:i[48],$$slots:{default:[J5]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(l.ref=i[20].replayButton),e=new Mt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.disabled=r[48]),a[1]&131072|a[5]&16777216&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].replayButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function J5(i){let e,t;return e=new il({props:{disabled:i[48],click:i[96]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[1]&131072&&(l.disabled=n[48]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Yp(i){let e,t,n;function o(r){i[147](r)}let l={$$slots:{default:[$5]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(l.ref=i[20].liveButton),e=new Mt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&524288|a[1]&16384|a[5]&16777216&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].liveButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function $5(i){let e,t;return e=new as({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&524288&&(l.isActiveLive=n[19]),o[1]&16384&&(l.ariaLabel=n[45]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Qp(i){let e,t,n;function o(r){i[148](r)}let l={showDuration:i[35],position:i[4]?i[59]:i[61],duration:i[4]?i[60]:i[62],isMobile:!0};return i[20].time!==void 0&&(l.ref=i[20].time),e=new es({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&16&&(s.showDuration=r[35]),a[0]&16|a[1]&1342177280&&(s.position=r[4]?r[59]:r[61]),a[0]&16|a[1]&536870912|a[2]&1&&(s.duration=r[4]?r[60]:r[62]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].time,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function Zp(i){let e,t,n,o;return n=new ds({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=T("div"),e.textContent="\xB7",t=q(),L(n.$$.fragment),c(e,"aria-hidden","true")},m(l,r){v(l,e,r),v(l,t,r),M(n,l,r),o=!0},p(l,r){let a={};r[1]&1073741824&&(a.position=l[61]),r[2]&1&&(a.duration=l[62]),n.$set(a)},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){m(n.$$.fragment,l),o=!1},d(l){l&&(b(e),b(t)),A(n,l)}}}function e6(i){let e,t,n=i[43]&&Zp(i);return{c(){n&&n.c(),e=tt()},m(o,l){n&&n.m(o,l),v(o,e,l),t=!0},p(o,l){o[43]?n?(n.p(o,l),l[1]&4096&&d(n,1)):(n=Zp(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),m(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function Xp(i){let e,t,n;function o(r){i[151](r)}let l={$$slots:{default:[t6]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(l.ref=i[20].settings),e=new Mt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&4194304|a[5]&16777216&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].settings,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function t6(i){let e,t,n;function o(r){i[150](r)}let l={};return i[22]!==void 0&&(l.ref=i[22]),e=new el({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=r[22],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function Jp(i){let e,t,n;function o(r){i[152](r)}let l={$$slots:{default:[i6]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(l.ref=i[20].fullscreen),e=new Mt({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&16384|a[1]&2097152|a[5]&16777216&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].fullscreen,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function i6(i){let e,t;return e=new ns({props:{click:i[14],isFullscreen:i[52]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&16384&&(l.click=n[14]),o[1]&2097152&&(l.isFullscreen=n[52]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function $p(i){let e,t,n,o;function l(a){i[156](a)}let r={supportLink:i[11],returnFocus:i[15]};return i[21]!==void 0&&(r.ref=i[21]),t=new $l({props:r}),be.push(()=>Fe(t,"ref",l)),{c(){e=T("div"),L(t.$$.fragment),c(e,"class","settings-mobile svelte-17qsgob")},m(a,s){v(a,e,s),M(t,e,null),o=!0},p(a,s){let u={};s[0]&2048&&(u.supportLink=a[11]),s[0]&32768&&(u.returnFocus=a[15]),!n&&s[0]&2097152&&(n=!0,u.ref=a[21],Oe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){m(t.$$.fragment,a),o=!1},d(a){a&&b(e),A(t)}}}function n6(i){let e,t,n;function o(r){i[157](r)}let l={};return i[20].interactiveTimeIndicator!==void 0&&(l.ref=i[20].interactiveTimeIndicator),e=new Ts({props:l}),be.push(()=>Fe(e,"ref",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&1048576&&(t=!0,s.ref=r[20].interactiveTimeIndicator,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function o6(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,I,k,P=!i[4]&&Rp(i),K=i[4]&&i[30]!=="inactive"&&jp(i),z=i[97]&&X5(i),H=!i[4]&&i[25]&&Yp(i),se=i[41]&&Qp(i);function me(E){i[149](E)}let R={className:"w-max",disabled:!i[43],$$slots:{default:[e6]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(R.ref=i[20].episodes),u=new Mt({props:R}),be.push(()=>Fe(u,"ref",me));let te=i[38]&&Xp(i),le=i[40]&&Jp(i);function ne(E){i[154](E)}let _e={isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]};i[20].timeline!==void 0&&(_e.ref=i[20].timeline),h=new fs({props:_e}),be.push(()=>Fe(h,"ref",ne));let Y=i[23]&&$p(i),$=i[102]&&n6(i);return{c(){P&&P.c(),e=q(),K&&K.c(),t=q(),n=T("div"),o=T("div"),l=T("div"),z&&z.c(),r=q(),H&&H.c(),a=q(),se&&se.c(),s=q(),L(u.$$.fragment),_=q(),te&&te.c(),g=q(),le&&le.c(),y=q(),L(h.$$.fragment),w=q(),Y&&Y.c(),F=q(),$&&$.c(),I=tt(),c(l,"class","controls svelte-17qsgob"),W(l,"mobile",!0),c(o,"class","controls-wrapper svelte-17qsgob"),W(o,"fullscreen",i[52]),c(n,"class","wrapper-bottom svelte-17qsgob"),W(n,"hidden",i[1]),W(n,"controls-hidden",!i[3]),W(n,"no-smooth",i[2]),W(n,"mobile",!0)},m(E,X){P&&P.m(E,X),v(E,e,X),K&&K.m(E,X),v(E,t,X),v(E,n,X),p(n,o),p(o,l),z&&z.m(l,null),p(l,r),H&&H.m(l,null),p(l,a),se&&se.m(l,null),p(l,s),M(u,l,null),p(l,_),te&&te.m(l,null),p(l,g),le&&le.m(l,null),i[153](l),p(o,y),M(h,o,null),i[155](n),v(E,w,X),Y&&Y.m(E,X),v(E,F,X),$&&$.m(E,X),v(E,I,X),k=!0},p(E,X){E[4]?P&&(ae(),m(P,1,1,()=>{P=null}),ue()):P?(P.p(E,X),X[0]&16&&d(P,1)):(P=Rp(E),P.c(),d(P,1),P.m(e.parentNode,e)),E[4]&&E[30]!=="inactive"?K?(K.p(E,X),X[0]&1073741840&&d(K,1)):(K=jp(E),K.c(),d(K,1),K.m(t.parentNode,t)):K&&(ae(),m(K,1,1,()=>{K=null}),ue()),E[97]&&z.p(E,X),!E[4]&&E[25]?H?(H.p(E,X),X[0]&33554448&&d(H,1)):(H=Yp(E),H.c(),d(H,1),H.m(l,a)):H&&(ae(),m(H,1,1,()=>{H=null}),ue()),E[41]?se?(se.p(E,X),X[1]&1024&&d(se,1)):(se=Qp(E),se.c(),d(se,1),se.m(l,s)):se&&(ae(),m(se,1,1,()=>{se=null}),ue());let oe={};X[1]&4096&&(oe.disabled=!E[43]),X[1]&1073745920|X[2]&1|X[5]&16777216&&(oe.$$scope={dirty:X,ctx:E}),!f&&X[0]&1048576&&(f=!0,oe.ref=E[20].episodes,Oe(()=>f=!1)),u.$set(oe),E[38]?te?(te.p(E,X),X[1]&128&&d(te,1)):(te=Xp(E),te.c(),d(te,1),te.m(l,g)):te&&(ae(),m(te,1,1,()=>{te=null}),ue()),E[40]?le?(le.p(E,X),X[1]&512&&d(le,1)):(le=Jp(E),le.c(),d(le,1),le.m(l,null)):le&&(ae(),m(le,1,1,()=>{le=null}),ue());let fe={};X[0]&16&&(fe.isAds=E[4]),X[0]&32&&(fe.canRewindLive=E[5]),X[0]&16777216&&(fe.isRewindableLive=E[24]),!C&&X[0]&1048576&&(C=!0,fe.ref=E[20].timeline,Oe(()=>C=!1)),h.$set(fe),(!k||X[1]&2097152)&&W(o,"fullscreen",E[52]),(!k||X[0]&2)&&W(n,"hidden",E[1]),(!k||X[0]&8)&&W(n,"controls-hidden",!E[3]),(!k||X[0]&4)&&W(n,"no-smooth",E[2]),E[23]?Y?(Y.p(E,X),X[0]&8388608&&d(Y,1)):(Y=$p(E),Y.c(),d(Y,1),Y.m(F.parentNode,F)):Y&&(ae(),m(Y,1,1,()=>{Y=null}),ue()),E[102]&&$.p(E,X)},i(E){k||(d(P),d(K),d(z),d(H),d(se),d(u.$$.fragment,E),d(te),d(le),d(h.$$.fragment,E),d(Y),d($),k=!0)},o(E){m(P),m(K),m(z),m(H),m(se),m(u.$$.fragment,E),m(te),m(le),m(h.$$.fragment,E),m(Y),m($),k=!1},d(E){E&&(b(e),b(t),b(n),b(w),b(F),b(I)),P&&P.d(E),K&&K.d(E),z&&z.d(),H&&H.d(),se&&se.d(),A(u),te&&te.d(),le&&le.d(),i[153](null),A(h),i[155](null),Y&&Y.d(E),$&&$.d(E)}}}function r6(i,e,t){let n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,I,k,P,K,z,H,se,me,R,te,le,ne,_e,Y,$,E,X,oe,fe,Re,Ze,ce,Be,{bottomHidden:De}=e,{bottomNoSmooth:je}=e,{showControls:x}=e,{controlsElementRef:de=void 0}=e,{isAds:Ge=!1}=e,{canRewindLive:ve}=e,{logoClickable:He}=e,{logoHidden:$e}=e,{logoTargetUrl:st=""}=e,{showNextPrevButtons:Xe}=e,{nextButtonActive:Ye}=e,{prevButtonActive:Ke}=e,{isOneVideoPlaylist:Z=!1}=e,{supportLink:Ue}=e,{customFullscreenSupported:Ce=!0}=e,{playNextVideo:Pe}=e,{playPrevVideo:ze}=e,{repeatPlaylist:pe}=e,{toggleFullscreen:J}=e,{returnFocus:ft}=e,{seekToInteractive:mt}=e,{toggleGraph:et}=e,{playPrevChapter:lt}=e,{onDisabledPlayPrevChapterClick:Ot}=e,{onDisabledSeekToInteractiveClick:Ct}=e,it=ot(),Ft=Bn(),At=Nt(),Qt=it.actions.internal.toggleMuted,ct=it.actions.internal.togglePlay,bt=it.actions.internal.pause,Zt=it.callbacks?.onAudioDoesNotExistHint,Kt=it.callbacks?.onAudioDisabledHint,Xt=it.playerPhase;O(i,Xt,ee=>t(128,se=ee));let si=it.state.duration$;O(i,si,ee=>t(62,Be=ee));let we=it.state.positionWithScrubbing$;O(i,we,ee=>t(61,ce=ee));let Tt=it.state.playbackState$;O(i,Tt,ee=>t(122,g=ee));let Et=it.state.isAudioAvailable$;O(i,Et,ee=>t(51,y=ee));let jt=it.state.isAudioDisabled,wt=it.state.isEnded$;O(i,wt,ee=>t(129,R=ee));let Ht=it.state.isLive$;O(i,Ht,ee=>t(25,I=ee));let Ut=it.state.muted$;O(i,Ut,ee=>t(54,$=ee));let Lt=it.state.isActiveLive$;O(i,Lt,ee=>t(125,w=ee));let ii=it.state.isRewindableLive$;O(i,ii,ee=>t(24,F=ee));let Jt=it.ui.scrubbingInProgress;O(i,Jt,ee=>t(29,me=ee));let Ci=it.ui.mobileNotReportControlHidden$;O(i,Ci,ee=>t(27,z=ee));let Pt=it.ui.isPictureInPictureActive$;O(i,Pt,ee=>t(26,P=ee));let pi=it.ui.pictureInPictureType$;O(i,pi,ee=>t(126,k=ee));let Mi=it.ui.mobileUnmuteButtonExpanded;O(i,Mi,ee=>t(55,E=ee));let _i=it.ui.mobileUnmuteButtonVisible;O(i,_i,ee=>t(53,Y=ee));let gi=it.ui.settingsMenuVisible;O(i,gi,ee=>t(23,_=ee));let he=it.ui.settingsMenuOpenedByKeyboard;O(i,he,ee=>t(121,f=ee));let pt=it.ui.controls,fi=it.actions.internal.getVideoEpisodes(),Ai=it.webApi.pictureInPictureApi,$i=it.state.chromecastState$;O(i,$i,ee=>t(28,H=ee));let Hi=it.state.crashed$;O(i,Hi,ee=>t(57,oe=ee));let en=pt.disabledControls$;O(i,en,ee=>t(130,le=ee));let $t=it.ui.startedByKeyboard$;O(i,$t,ee=>t(120,u=ee));let Li=it.ui.currentGridType$;O(i,Li,ee=>t(127,K=ee));let fn=it.ads.duration;O(i,fn,ee=>t(60,Ze=ee));let Gt=it.ads.position;O(i,Gt,ee=>t(59,Re=ee));let Si=it.ads.playbackState;O(i,Si,ee=>t(30,te=ee));let dn=it.ui.isFullscreen;O(i,dn,ee=>t(52,_e=ee));let hi=it.ui.playerSize;O(i,hi,ee=>t(124,C=ee));let tn=it.ui.additionalButtons$;O(i,tn,ee=>t(56,X=ee));let nn=it.actions.internal.getVideoElement,mn=it.actions.internal.replayInteractive,bi=it.state.isInteractive,Vi=it.state.isInteractiveTime$;O(i,Vi,ee=>t(123,h=ee));let on=it.state.showInteractiveGraph,vi=it.state.showSeekToInteractive,di=it.state.showPlayPrevChapter,Ui=it.state.showInteractiveTimeIndicator,Tn=it.state.graphIsOpened$;O(i,Tn,ee=>t(58,fe=ee));let Ri=Ft.seekToInteractiveDisabledTooltip$;O(i,Ri,ee=>t(131,ne=ee));let rn,Ii,yi,zi,pn,ln,ki,Ti,ai,Bi,ui,xt,ni,Di,Wi,nt,Ni,oi,sn,Qe={},an=(0,e0.debounceFn)(Ss,260),_n=()=>it.actions.internal.toggleChromecast();function Ki(){ko({isAudioDisabled:jt,audioDisabledHintCallback:Kt,isAudioAvailable:y,audioIsNotExistHintCallback:Zt})&&Qt()}async function ji(){Ai?.isActive()?await Ai?.remove():await Ai?.request()}function gn(){!jt&&y&&_i.set(!1),Ki()}let Gi=Z?ct:pe,Yt="",On=(ee,oo)=>{if(!ee){t(45,Yt=U("tooltip_live"));return}oo===Vr.PlaybackState.PAUSED&&t(45,Yt=U("tooltip_play"))},Oi,Pi,un=()=>{s&&Ot(rn)},xi=()=>{l&&Ct(Ii)};function hn(ee){i.$$.not_equal(Qe.volume,ee)&&(Qe.volume=ee,t(20,Qe))}function bn(ee){i.$$.not_equal(Qe.chromecast,ee)&&(Qe.chromecast=ee,t(20,Qe))}function Fn(ee){i.$$.not_equal(Qe.pip,ee)&&(Qe.pip=ee,t(20,Qe))}function Yi(ee){Pi=ee,t(22,Pi)}function Qi(ee){i.$$.not_equal(Qe.vkLogo,ee)&&(Qe.vkLogo=ee,t(20,Qe))}function wi(ee){i.$$.not_equal(Qe.prevButton,ee)&&(Qe.prevButton=ee,t(20,Qe))}function qn(ee){i.$$.not_equal(Qe.playButton,ee)&&(Qe.playButton=ee,t(20,Qe))}function Gn(ee){i.$$.not_equal(Qe.replayButton,ee)&&(Qe.replayButton=ee,t(20,Qe))}function Pn(ee){i.$$.not_equal(Qe.nextButton,ee)&&(Qe.nextButton=ee,t(20,Qe))}function ri(ee){i.$$.not_equal(Qe.playPrevChapterButton,ee)&&(Qe.playPrevChapterButton=ee,t(20,Qe))}function Zi(ee){i.$$.not_equal(Qe.interactiveGraphButton,ee)&&(Qe.interactiveGraphButton=ee,t(20,Qe))}function xn(ee){i.$$.not_equal(Qe.seekToInteractiveButton,ee)&&(Qe.seekToInteractiveButton=ee,t(20,Qe))}function En(ee){i.$$.not_equal(Qe.volume,ee)&&(Qe.volume=ee,t(20,Qe))}function Yn(ee){i.$$.not_equal(Qe.playButton,ee)&&(Qe.playButton=ee,t(20,Qe))}function Hn(ee){i.$$.not_equal(Qe.replayButton,ee)&&(Qe.replayButton=ee,t(20,Qe))}function Mn(ee){i.$$.not_equal(Qe.liveButton,ee)&&(Qe.liveButton=ee,t(20,Qe))}function ie(ee){i.$$.not_equal(Qe.time,ee)&&(Qe.time=ee,t(20,Qe))}function vt(ee){i.$$.not_equal(Qe.episodes,ee)&&(Qe.episodes=ee,t(20,Qe))}function Xi(ee){Pi=ee,t(22,Pi)}function An(ee){i.$$.not_equal(Qe.settings,ee)&&(Qe.settings=ee,t(20,Qe))}function to(ee){i.$$.not_equal(Qe.fullscreen,ee)&&(Qe.fullscreen=ee,t(20,Qe))}function Qn(ee){be[ee?"unshift":"push"](()=>{oi=ee,t(44,oi)})}function Zn(ee){i.$$.not_equal(Qe.timeline,ee)&&(Qe.timeline=ee,t(20,Qe))}function io(ee){be[ee?"unshift":"push"](()=>{de=ee,t(0,de)})}function no(ee){Oi=ee,t(21,Oi)}function vn(ee){i.$$.not_equal(Qe.interactiveTimeIndicator,ee)&&(Qe.interactiveTimeIndicator=ee,t(20,Qe))}return i.$$set=ee=>{"bottomHidden"in ee&&t(1,De=ee.bottomHidden),"bottomNoSmooth"in ee&&t(2,je=ee.bottomNoSmooth),"showControls"in ee&&t(3,x=ee.showControls),"controlsElementRef"in ee&&t(0,de=ee.controlsElementRef),"isAds"in ee&&t(4,Ge=ee.isAds),"canRewindLive"in ee&&t(5,ve=ee.canRewindLive),"logoClickable"in ee&&t(6,He=ee.logoClickable),"logoHidden"in ee&&t(111,$e=ee.logoHidden),"logoTargetUrl"in ee&&t(7,st=ee.logoTargetUrl),"showNextPrevButtons"in ee&&t(8,Xe=ee.showNextPrevButtons),"nextButtonActive"in ee&&t(9,Ye=ee.nextButtonActive),"prevButtonActive"in ee&&t(10,Ke=ee.prevButtonActive),"isOneVideoPlaylist"in ee&&t(112,Z=ee.isOneVideoPlaylist),"supportLink"in ee&&t(11,Ue=ee.supportLink),"customFullscreenSupported"in ee&&t(113,Ce=ee.customFullscreenSupported),"playNextVideo"in ee&&t(12,Pe=ee.playNextVideo),"playPrevVideo"in ee&&t(13,ze=ee.playPrevVideo),"repeatPlaylist"in ee&&t(114,pe=ee.repeatPlaylist),"toggleFullscreen"in ee&&t(14,J=ee.toggleFullscreen),"returnFocus"in ee&&t(15,ft=ee.returnFocus),"seekToInteractive"in ee&&t(16,mt=ee.seekToInteractive),"toggleGraph"in ee&&t(17,et=ee.toggleGraph),"playPrevChapter"in ee&&t(18,lt=ee.playPrevChapter),"onDisabledPlayPrevChapterClick"in ee&&t(115,Ot=ee.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ee&&t(116,Ct=ee.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&128&&(Ii=U(ne)),i.$$.dirty[4]&64&&t(119,n=le.has("EPISODE_BUTTON")),i.$$.dirty[4]&64&&t(50,o=le.has("GRAPH_BUTTON")),i.$$.dirty[4]&64&&t(46,l=le.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[4]&64&&t(49,r=le.has("PLAY_BUTTON")),i.$$.dirty[4]&64&&t(48,a=le.has("REPLAY_BUTTON")),i.$$.dirty[4]&64&&t(47,s=le.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[3]&536870912&&t(31,yi=g===Vr.PlaybackState.PLAYING),i.$$.dirty[0]&1073741824&&t(32,zi=te==="paused"),i.$$.dirty[0]&16|i.$$.dirty[4]&32&&t(33,pn=R&&!Ge&&!bi),i.$$.dirty[0]&16|i.$$.dirty[4]&32&&t(34,ln=!R||Ge),i.$$.dirty[4]&1&&t(117,ki=C.width>300),i.$$.dirty[4]&1&&t(35,Ti=C.width>400),i.$$.dirty[0]&536870912&&t(118,ai=me),i.$$.dirty[0]&469762048|i.$$.dirty[4]&4&&t(36,Bi=H!==Vr.ChromecastState.NOT_AVAILABLE&&!(P&&k===1)&&!z&&!bi),i.$$.dirty[0]&402653184|i.$$.dirty[3]&33554432|i.$$.dirty[4]&20){let ee=se==="LiveWaitingStart";t(37,ui=!!Ai&&H!==Vr.ChromecastState.CONNECTED&&!z&&(k===1&&ee||!ee)&&!ai&&!bi)}i.$$.dirty[3]&33554432|i.$$.dirty[4]&8&&t(38,xt=!ai&&mi(K,"s")),i.$$.dirty[3]&262144|i.$$.dirty[4]&1&&t(39,ni=!$e&&C.width>350),i.$$.dirty[0]&67108864|i.$$.dirty[3]&34603008|i.$$.dirty[4]&4&&t(40,Di=At.features.fullscreen&&!(P&&k===1)&&(bi?Ce:!0)&&!ai),i.$$.dirty[0]&33554448|i.$$.dirty[3]&33554432|i.$$.dirty[4]&1&&t(41,Wi=(!I||Ge)&&C.width>260&&!ai&&!(At.features.interactiveHideTime&&bi)),i.$$.dirty[0]&8388616&&t(42,nt=_||x),i.$$.dirty[0]&33554448|i.$$.dirty[3]&117440512&&t(43,Ni=!Ge&&!I&&!!fi?.length&&ki&&!n&&!ai),i.$$.dirty[0]&16777216|i.$$.dirty[4]&2&&t(19,sn=!F||w),i.$$.dirty[0]&1048584|i.$$.dirty[3]&1073741824|i.$$.dirty[4]&1&&an(nn(),pt,Qe,x),i.$$.dirty[0]&524288|i.$$.dirty[3]&536870912&&On(sn,g),i.$$.dirty[0]&12582912&&kr(Pi,_,he),i.$$.dirty[0]&10485760|i.$$.dirty[3]&268435456&&jo(Oi,_,f),i.$$.dirty[0]&1048576|i.$$.dirty[3]&134217728&&Is($t,u,Qe.playButton)},rn=U(it.state.playPrevChapterDisabledTooltip),[de,De,je,x,Ge,ve,He,st,Xe,Ye,Ke,Ue,Pe,ze,J,ft,mt,et,lt,sn,Qe,Oi,Pi,_,F,I,P,z,H,me,te,yi,zi,pn,ln,Ti,Bi,ui,xt,ni,Di,Wi,nt,Ni,oi,Yt,l,s,a,r,o,y,_e,Y,$,E,X,oe,fe,Re,Ze,ce,Be,ct,bt,Xt,si,we,Tt,Et,jt,wt,Ht,Ut,Lt,ii,Jt,Ci,Pt,pi,Mi,_i,gi,he,fi,$i,Hi,en,$t,Li,fn,Gt,Si,dn,hi,tn,mn,bi,Vi,on,vi,di,Ui,Tn,Ri,_n,ji,gn,Gi,un,xi,$e,Z,Ce,pe,Ot,Ct,ki,ai,n,u,f,g,h,C,w,k,K,se,R,le,ne,hn,bn,Fn,Yi,Qi,wi,qn,Gn,Pn,ri,Zi,xn,En,Yn,Hn,Mn,ie,vt,Xi,An,to,Qn,Zn,io,no,vn]}var Lc=class extends D{constructor(e){super(),N(this,e,r6,o6,B,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:111,logoTargetUrl:7,showNextPrevButtons:8,nextButtonActive:9,prevButtonActive:10,isOneVideoPlaylist:112,supportLink:11,customFullscreenSupported:113,playNextVideo:12,playPrevVideo:13,repeatPlaylist:114,toggleFullscreen:14,returnFocus:15,seekToInteractive:16,toggleGraph:17,playPrevChapter:18,onDisabledPlayPrevChapterClick:115,onDisabledSeekToInteractiveClick:116},x5,[-1,-1,-1,-1,-1,-1])}},t0=Lc;function i0(i){let e,t,n,o,l=[s6,l6],r=[];function a(s,u){return s[26]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=tt()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function l6(i){let e,t,n;function o(r){i[29](r)}let l={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22]};return i[0]!==void 0&&(l.controlsElementRef=i[0]),e=new Sp({props:l}),be.push(()=>Fe(e,"controlsElementRef",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a&2&&(s.bottomHidden=r[1]),a&4&&(s.bottomNoSmooth=r[2]),a&8&&(s.showControls=r[3]),a&16&&(s.isAds=r[4]),a&32&&(s.canRewindLive=r[5]),a&64&&(s.logoClickable=r[6]),a&128&&(s.logoHidden=r[7]),a&256&&(s.logoTargetUrl=r[8]),a&512&&(s.showNextPrevButtons=r[9]),a&1024&&(s.nextButtonActive=r[10]),a&2048&&(s.prevButtonActive=r[11]),a&4096&&(s.isOneVideoPlaylist=r[12]),a&8192&&(s.supportLink=r[13]),a&16384&&(s.customFullscreenSupported=r[14]),a&32768&&(s.playNextVideo=r[15]),a&65536&&(s.playPrevVideo=r[16]),a&131072&&(s.repeatPlaylist=r[17]),a&262144&&(s.toggleFullscreen=r[18]),a&524288&&(s.returnFocus=r[19]),a&1048576&&(s.seekToInteractive=r[20]),a&2097152&&(s.toggleGraph=r[21]),a&4194304&&(s.playPrevChapter=r[22]),!t&&a&1&&(t=!0,s.controlsElementRef=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function s6(i){let e,t,n;function o(r){i[28](r)}let l={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22],onDisabledPlayPrevChapterClick:i[23],onDisabledSeekToInteractiveClick:i[24]};return i[0]!==void 0&&(l.controlsElementRef=i[0]),e=new t0({props:l}),be.push(()=>Fe(e,"controlsElementRef",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a&2&&(s.bottomHidden=r[1]),a&4&&(s.bottomNoSmooth=r[2]),a&8&&(s.showControls=r[3]),a&16&&(s.isAds=r[4]),a&32&&(s.canRewindLive=r[5]),a&64&&(s.logoClickable=r[6]),a&128&&(s.logoHidden=r[7]),a&256&&(s.logoTargetUrl=r[8]),a&512&&(s.showNextPrevButtons=r[9]),a&1024&&(s.nextButtonActive=r[10]),a&2048&&(s.prevButtonActive=r[11]),a&4096&&(s.isOneVideoPlaylist=r[12]),a&8192&&(s.supportLink=r[13]),a&16384&&(s.customFullscreenSupported=r[14]),a&32768&&(s.playNextVideo=r[15]),a&65536&&(s.playPrevVideo=r[16]),a&131072&&(s.repeatPlaylist=r[17]),a&262144&&(s.toggleFullscreen=r[18]),a&524288&&(s.returnFocus=r[19]),a&1048576&&(s.seekToInteractive=r[20]),a&2097152&&(s.toggleGraph=r[21]),a&4194304&&(s.playPrevChapter=r[22]),a&8388608&&(s.onDisabledPlayPrevChapterClick=r[23]),a&16777216&&(s.onDisabledSeekToInteractiveClick=r[24]),!t&&a&1&&(t=!0,s.controlsElementRef=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function a6(i){let e,t,n=i[25]&&i0(i);return{c(){n&&n.c(),e=tt()},m(o,l){n&&n.m(o,l),v(o,e,l),t=!0},p(o,[l]){o[25]?n?(n.p(o,l),l&33554432&&d(n,1)):(n=i0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),m(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function u6(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:l=!1}=e,{showControls:r}=e,{controlsElementRef:a=void 0}=e,{isAds:s=!1}=e,{canRewindLive:u}=e,{logoClickable:f}=e,{logoHidden:_}=e,{logoTargetUrl:g=""}=e,{showNextPrevButtons:y}=e,{nextButtonActive:h}=e,{prevButtonActive:C}=e,{isOneVideoPlaylist:w=!1}=e,{supportLink:F}=e,{customFullscreenSupported:I=!0}=e,{playNextVideo:k}=e,{playPrevVideo:P}=e,{repeatPlaylist:K}=e,{toggleFullscreen:z}=e,{returnFocus:H=Ps.noop}=e,{seekToInteractive:se}=e,{toggleGraph:me}=e,{playPrevChapter:R}=e,{onDisabledPlayPrevChapterClick:te=Ps.noop}=e,{onDisabledSeekToInteractiveClick:le=Ps.noop}=e,_e=ot().ui.isMobile;O(i,_e,X=>t(26,n=X));let Y=!1;St(()=>{let X=setTimeout(()=>t(25,Y=!0),0);return()=>clearTimeout(X)});function $(X){a=X,t(0,a)}function E(X){a=X,t(0,a)}return i.$$set=X=>{"bottomHidden"in X&&t(1,o=X.bottomHidden),"bottomNoSmooth"in X&&t(2,l=X.bottomNoSmooth),"showControls"in X&&t(3,r=X.showControls),"controlsElementRef"in X&&t(0,a=X.controlsElementRef),"isAds"in X&&t(4,s=X.isAds),"canRewindLive"in X&&t(5,u=X.canRewindLive),"logoClickable"in X&&t(6,f=X.logoClickable),"logoHidden"in X&&t(7,_=X.logoHidden),"logoTargetUrl"in X&&t(8,g=X.logoTargetUrl),"showNextPrevButtons"in X&&t(9,y=X.showNextPrevButtons),"nextButtonActive"in X&&t(10,h=X.nextButtonActive),"prevButtonActive"in X&&t(11,C=X.prevButtonActive),"isOneVideoPlaylist"in X&&t(12,w=X.isOneVideoPlaylist),"supportLink"in X&&t(13,F=X.supportLink),"customFullscreenSupported"in X&&t(14,I=X.customFullscreenSupported),"playNextVideo"in X&&t(15,k=X.playNextVideo),"playPrevVideo"in X&&t(16,P=X.playPrevVideo),"repeatPlaylist"in X&&t(17,K=X.repeatPlaylist),"toggleFullscreen"in X&&t(18,z=X.toggleFullscreen),"returnFocus"in X&&t(19,H=X.returnFocus),"seekToInteractive"in X&&t(20,se=X.seekToInteractive),"toggleGraph"in X&&t(21,me=X.toggleGraph),"playPrevChapter"in X&&t(22,R=X.playPrevChapter),"onDisabledPlayPrevChapterClick"in X&&t(23,te=X.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in X&&t(24,le=X.onDisabledSeekToInteractiveClick)},[a,o,l,r,s,u,f,_,g,y,h,C,w,F,I,k,P,K,z,H,se,me,R,te,le,Y,n,_e,$,E]}var Vc=class extends D{constructor(e){super(),N(this,e,u6,a6,B,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:7,logoTargetUrl:8,showNextPrevButtons:9,nextButtonActive:10,prevButtonActive:11,isOneVideoPlaylist:12,supportLink:13,customFullscreenSupported:14,playNextVideo:15,playPrevVideo:16,repeatPlaylist:17,toggleFullscreen:18,returnFocus:19,seekToInteractive:20,toggleGraph:21,playPrevChapter:22,onDisabledPlayPrevChapterClick:23,onDisabledSeekToInteractiveClick:24})}},Es=Vc;function c6(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C=i[2].default,w=Ee(C,i,i[1],null),F=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],I={};for(let k=0;k<F.length;k+=1)I=re(I,F[k]);return{c(){e=V("svg"),w&&w.c(),t=V("g"),n=V("path"),o=V("path"),l=V("defs"),r=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),f=V("feGaussianBlur"),_=V("feColorMatrix"),g=V("feBlend"),y=V("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(_,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2260_100684"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2260_100684"),c(y,"result","shape"),c(r,"id","a"),c(r,"width","43.996"),c(r,"height","49.5"),c(r,"x","2.5"),c(r,"y","0"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ke(e,I)},m(k,P){v(k,e,P),w&&w.m(e,null),p(e,t),p(t,n),p(t,o),p(e,l),p(l,r),p(r,a),p(r,s),p(r,u),p(r,f),p(r,_),p(r,g),p(r,y),h=!0},p(k,[P]){w&&w.p&&(!h||P&2)&&Ae(w,C,k,k[1],h?Me(C,k[1],P,null):Le(k[1]),null),ke(e,I=Ve(F,[{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){h||(d(w,k),h=!0)},o(k){m(w,k),h=!1},d(k){k&&b(e),w&&w.d(k)}}}function f6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Rc=class extends D{constructor(e){super(),N(this,e,f6,c6,B,{})}},n0=Rc;function d6(i){let e,t;return e=new n0({props:{style:i[0]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function m6(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Bc=class extends D{constructor(e){super(),N(this,e,m6,d6,B,{reversed:1})}},o0=Bc;function p6(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C,w,F=i[2].default,I=Ee(F,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 K=0;K<k.length;K+=1)P=re(P,k[K]);return{c(){e=V("svg"),I&&I.c(),t=V("g"),n=V("path"),o=V("path"),l=V("defs"),r=V("clipPath"),a=V("path"),s=V("filter"),u=V("feFlood"),f=V("feColorMatrix"),_=V("feOffset"),g=V("feGaussianBlur"),y=V("feColorMatrix"),h=V("feBlend"),C=V("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"clip-path","url(#c)"),c(t,"filter","url(#a)"),c(a,"fill","#fff"),c(a,"d","M0 0h48v48H0z"),c(r,"id","c"),c(u,"flood-opacity","0"),c(u,"result","BackgroundImageFix"),c(f,"in","SourceAlpha"),c(f,"result","hardAlpha"),c(f,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(g,"stdDeviation","2.5"),c(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2260_104204"),c(C,"in","SourceGraphic"),c(C,"in2","effect1_dropShadow_2260_104204"),c(C,"result","shape"),c(s,"id","a"),c(s,"width","51"),c(s,"height","45"),c(s,"x","-1.5"),c(s,"y","1.5"),c(s,"color-interpolation-filters","sRGB"),c(s,"filterUnits","userSpaceOnUse"),ke(e,P)},m(K,z){v(K,e,z),I&&I.m(e,null),p(e,t),p(t,n),p(t,o),p(e,l),p(l,r),p(r,a),p(l,s),p(s,u),p(s,f),p(s,_),p(s,g),p(s,y),p(s,h),p(s,C),w=!0},p(K,[z]){I&&I.p&&(!w||z&2)&&Ae(I,F,K,K[1],w?Me(F,K[1],z,null):Le(K[1]),null),ke(e,P=Ve(k,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},z&1&&K[0]]))},i(K){w||(d(I,K),w=!0)},o(K){m(I,K),w=!1},d(K){K&&b(e),I&&I.d(K)}}}function _6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Dc=class extends D{constructor(e){super(),N(this,e,_6,p6,B,{})}},r0=Dc;function g6(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,I=i[2].default,k=Ee(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]],K={};for(let z=0;z<P.length;z+=1)K=re(K,P[z]);return{c(){e=V("svg"),k&&k.c(),t=V("g"),n=V("path"),o=V("path"),l=V("path"),r=V("defs"),a=V("clipPath"),s=V("path"),u=V("filter"),f=V("feFlood"),_=V("feColorMatrix"),g=V("feOffset"),y=V("feGaussianBlur"),h=V("feColorMatrix"),C=V("feBlend"),w=V("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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"),c(l,"stroke","#000"),c(l,"stroke-opacity",".12"),c(l,"stroke-width",".5"),c(l,"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"),c(t,"clip-path","url(#c)"),c(t,"filter","url(#a)"),c(s,"fill","#fff"),c(s,"d","M0 0h48v48H0z"),c(a,"id","c"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(_,"in","SourceAlpha"),c(_,"result","hardAlpha"),c(_,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(y,"stdDeviation","2.5"),c(h,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(C,"in2","BackgroundImageFix"),c(C,"result","effect1_dropShadow_2260_104293"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2260_104293"),c(w,"result","shape"),c(u,"id","a"),c(u,"width","51"),c(u,"height","51"),c(u,"x","-1.5"),c(u,"y","-1.5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),ke(e,K)},m(z,H){v(z,e,H),k&&k.m(e,null),p(e,t),p(t,n),p(t,o),p(t,l),p(e,r),p(r,a),p(a,s),p(r,u),p(u,f),p(u,_),p(u,g),p(u,y),p(u,h),p(u,C),p(u,w),F=!0},p(z,[H]){k&&k.p&&(!F||H&2)&&Ae(k,I,z,z[1],F?Me(I,z[1],H,null):Le(z[1]),null),ke(e,K=Ve(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},H&1&&z[0]]))},i(z){F||(d(k,z),F=!0)},o(z){m(k,z),F=!1},d(z){z&&b(e),k&&k.d(z)}}}function h6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Nc=class extends D{constructor(e){super(),N(this,e,h6,g6,B,{})}},l0=Nc;function b6(i){let e,t;return e=new r0({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function v6(i){let e,t;return e=new l0({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function y6(i){let e,t,n,o,l=[v6,b6],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=tt()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t||(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function k6(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Oc=class extends D{constructor(e){super(),N(this,e,k6,y6,B,{isOff:0})}},Fc=Oc;function w6(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C=i[2].default,w=Ee(C,i,i[1],null),F=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},i[0]],I={};for(let k=0;k<F.length;k+=1)I=re(I,F[k]);return{c(){e=V("svg"),w&&w.c(),t=V("g"),n=V("path"),o=V("path"),l=V("defs"),r=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),f=V("feGaussianBlur"),_=V("feColorMatrix"),g=V("feBlend"),y=V("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(_,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2260_106627"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2260_106627"),c(y,"result","shape"),c(r,"id","a"),c(r,"width","40.098"),c(r,"height","27.785"),c(r,"x","3.402"),c(r,"y","10.105"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ke(e,I)},m(k,P){v(k,e,P),w&&w.m(e,null),p(e,t),p(t,n),p(t,o),p(e,l),p(l,r),p(r,a),p(r,s),p(r,u),p(r,f),p(r,_),p(r,g),p(r,y),h=!0},p(k,[P]){w&&w.p&&(!h||P&2)&&Ae(w,C,k,k[1],h?Me(C,k[1],P,null):Le(k[1]),null),ke(e,I=Ve(F,[{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){h||(d(w,k),h=!0)},o(k){m(w,k),h=!1},d(k){k&&b(e),w&&w.d(k)}}}function C6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var qc=class extends D{constructor(e){super(),N(this,e,C6,w6,B,{})}},s0=qc;function S6(i){let e,t;return e=new s0({props:{style:i[0]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function I6(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Hc=class extends D{constructor(e){super(),N(this,e,I6,S6,B,{reversed:1})}},a0=Hc;function T6(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C=i[2].default,w=Ee(C,i,i[1],null),F=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},i[0]],I={};for(let k=0;k<F.length;k+=1)I=re(I,F[k]);return{c(){e=V("svg"),w&&w.c(),t=V("g"),n=V("path"),o=V("path"),l=V("defs"),r=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),f=V("feGaussianBlur"),_=V("feColorMatrix"),g=V("feBlend"),y=V("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(_,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2340_106922"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2340_106922"),c(y,"result","shape"),c(r,"id","a"),c(r,"width","37"),c(r,"height","37"),c(r,"x","5.5"),c(r,"y","5.5"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ke(e,I)},m(k,P){v(k,e,P),w&&w.m(e,null),p(e,t),p(t,n),p(t,o),p(e,l),p(l,r),p(r,a),p(r,s),p(r,u),p(r,f),p(r,_),p(r,g),p(r,y),h=!0},p(k,[P]){w&&w.p&&(!h||P&2)&&Ae(w,C,k,k[1],h?Me(C,k[1],P,null):Le(k[1]),null),ke(e,I=Ve(F,[{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){h||(d(w,k),h=!0)},o(k){m(w,k),h=!1},d(k){k&&b(e),w&&w.d(k)}}}function P6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Uc=class extends D{constructor(e){super(),N(this,e,P6,T6,B,{})}},u0=Uc;function E6(i){let e,t;return e=new u0({props:{style:i[0]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function M6(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var zc=class extends D{constructor(e){super(),N(this,e,M6,E6,B,{reversed:1})}},c0=zc;function A6(i){Ie(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 f0(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,l,r,a,s,u=["RATE_DOWN","RATE_UP"].includes(i[4]),f,_=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),g,y,h,C,w,F=t&&d0(i),I=i[4]==="PAUSE"&&m0(i),k=i[4]==="PLAY"&&p0(i),P=i[4]==="REPLAY"&&_0(i),K=i[4]==="SUBTITLES_OFF"&&g0(i),z=i[4]==="SUBTITLES_ON"&&h0(i),H=u&&b0(i),se=_&&v0(i),me=i[4]==="MUTE"&&y0(i),R=i[4]==="VOLUME"&&k0(i),te=i[5]&&w0(i);return{c(){e=T("div"),F&&F.c(),n=q(),I&&I.c(),o=q(),k&&k.c(),l=q(),P&&P.c(),r=q(),K&&K.c(),a=q(),z&&z.c(),s=q(),H&&H.c(),f=q(),se&&se.c(),g=q(),me&&me.c(),y=q(),R&&R.c(),h=q(),te&&te.c(),C=tt(),c(e,"class","svelte-1ad3n06")},m(le,ne){v(le,e,ne),F&&F.m(e,null),p(e,n),I&&I.m(e,null),p(e,o),k&&k.m(e,null),p(e,l),P&&P.m(e,null),p(e,r),K&&K.m(e,null),p(e,a),z&&z.m(e,null),p(e,s),H&&H.m(e,null),p(e,f),se&&se.m(e,null),p(e,g),me&&me.m(e,null),p(e,y),R&&R.m(e,null),v(le,h,ne),te&&te.m(le,ne),v(le,C,ne),w=!0},p(le,ne){ne&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(le[4])),t?F?(F.p(le,ne),ne&16&&d(F,1)):(F=d0(le),F.c(),d(F,1),F.m(e,n)):F&&(ae(),m(F,1,1,()=>{F=null}),ue()),le[4]==="PAUSE"?I?ne&16&&d(I,1):(I=m0(le),I.c(),d(I,1),I.m(e,o)):I&&(ae(),m(I,1,1,()=>{I=null}),ue()),le[4]==="PLAY"?k?ne&16&&d(k,1):(k=p0(le),k.c(),d(k,1),k.m(e,l)):k&&(ae(),m(k,1,1,()=>{k=null}),ue()),le[4]==="REPLAY"?P?ne&16&&d(P,1):(P=_0(le),P.c(),d(P,1),P.m(e,r)):P&&(ae(),m(P,1,1,()=>{P=null}),ue()),le[4]==="SUBTITLES_OFF"?K?ne&16&&d(K,1):(K=g0(le),K.c(),d(K,1),K.m(e,a)):K&&(ae(),m(K,1,1,()=>{K=null}),ue()),le[4]==="SUBTITLES_ON"?z?ne&16&&d(z,1):(z=h0(le),z.c(),d(z,1),z.m(e,s)):z&&(ae(),m(z,1,1,()=>{z=null}),ue()),ne&16&&(u=["RATE_DOWN","RATE_UP"].includes(le[4])),u?H?(H.p(le,ne),ne&16&&d(H,1)):(H=b0(le),H.c(),d(H,1),H.m(e,f)):H&&(ae(),m(H,1,1,()=>{H=null}),ue()),ne&16&&(_=["EPISODE_PREV","EPISODE_NEXT"].includes(le[4])),_?se?(se.p(le,ne),ne&16&&d(se,1)):(se=v0(le),se.c(),d(se,1),se.m(e,g)):se&&(ae(),m(se,1,1,()=>{se=null}),ue()),le[4]==="MUTE"?me?ne&16&&d(me,1):(me=y0(le),me.c(),d(me,1),me.m(e,y)):me&&(ae(),m(me,1,1,()=>{me=null}),ue()),le[4]==="VOLUME"?R?ne&16&&d(R,1):(R=k0(le),R.c(),d(R,1),R.m(e,null)):R&&(ae(),m(R,1,1,()=>{R=null}),ue()),le[5]?te?te.p(le,ne):(te=w0(le),te.c(),te.m(C.parentNode,C)):te&&(te.d(1),te=null)},i(le){w||(d(F),d(I),d(k),d(P),d(K),d(z),d(H),d(se),d(me),d(R),w=!0)},o(le){m(F),m(I),m(k),m(P),m(K),m(z),m(H),m(se),m(me),m(R),w=!1},d(le){le&&(b(e),b(h),b(C)),F&&F.d(),I&&I.d(),k&&k.d(),P&&P.d(),K&&K.d(),z&&z.d(),H&&H.d(),se&&se.d(),me&&me.d(),R&&R.d(),te&&te.d(le)}}}function d0(i){let e,t;return e=new o0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="FORWARD_SEEK"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function m0(i){let e,t;return e=new os({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function p0(i){let e,t;return e=new Mr({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function _0(i){let e,t;return e=new _s({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function g0(i){let e,t;return e=new Fc({props:{isOff:!0}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function h0(i){let e,t;return e=new Fc({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function b0(i){let e,t;return e=new a0({props:{reversed:i[4]==="RATE_UP"}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="RATE_UP"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function v0(i){let e,t;return e=new c0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="EPISODE_NEXT"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function y0(i){let e,t;return e=new Qo({props:{volume:0}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function k0(i){let e,t;return e=new Qo({props:{volume:1}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function w0(i){let e,t;return{c(){e=T("span"),t=Ne(i[5]),c(e,"class","hot-key-helpers-text svelte-1ad3n06")},m(n,o){v(n,e,o),p(e,t)},p(n,o){o&32&&xe(t,n[5])},d(n){n&&b(e)}}}function L6(i){let e,t,n=!i[1]&&i[4]&&f0(i);return{c(){e=T("div"),n&&n.c(),c(e,"class","hot-key-helpers-container svelte-1ad3n06"),W(e,"hidden",i[1]),W(e,"hot-key-helpers-container--left",i[2]),W(e,"hot-key-helpers-container--right",i[3])},m(o,l){v(o,e,l),n&&n.m(e,null),t=!0},p(o,[l]){!o[1]&&o[4]?n?(n.p(o,l),l&18&&d(n,1)):(n=f0(o),n.c(),d(n,1),n.m(e,null)):n&&(ae(),m(n,1,1,()=>{n=null}),ue()),(!t||l&2)&&W(e,"hidden",o[1]),(!t||l&4)&&W(e,"hot-key-helpers-container--left",o[2]),(!t||l&8)&&W(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d()}}}function V6(i,e,t){let n,o=ge,l=()=>(o(),o=Wt(r,g=>t(6,n=g)),r);i.$$.on_destroy.push(()=>o());let{data:r}=e;l();let a,s,u,f,_;return i.$$set=g=>{"data"in g&&l(t(0,r=g.data))},i.$$.update=()=>{i.$$.dirty&64&&(t(1,a=!n),t(2,s=n?.type==="BACKWARD_SEEK"),t(3,u=n?.type==="FORWARD_SEEK"),t(4,f=n?.type),n?.t?t(5,_=U(n.t.key,{value:n.t.value||""})):t(5,_=n?.text))},[r,a,s,u,f,_,n]}var Wc=class extends D{constructor(e){super(),N(this,e,V6,L6,B,{data:0},A6)}},C0=Wc;function R6(i){Ie(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 B6(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,I,k;return l=new Yo({props:{direction:"up"}}),s=new Yo({props:{direction:"up"}}),g=new Yo({props:{direction:"up"}}),C=new Yo({props:{direction:"up"}}),{c(){e=T("div"),t=T("div"),n=T("div"),o=T("div"),L(l.$$.fragment),r=q(),a=T("div"),L(s.$$.fragment),u=q(),f=T("div"),_=T("div"),L(g.$$.fragment),y=q(),h=T("div"),L(C.$$.fragment),c(o,"class","button button-up svelte-1yzc86r"),c(a,"class","button button-right svelte-1yzc86r"),c(n,"class","button-row svelte-1yzc86r"),c(_,"class","button button-left svelte-1yzc86r"),c(h,"class","button button-down svelte-1yzc86r"),c(f,"class","button-row svelte-1yzc86r"),c(t,"class","button-block svelte-1yzc86r"),c(t,"aria-hidden","true"),c(e,"class","immersive-controls svelte-1yzc86r"),c(e,"tabindex","0"),c(e,"role","button"),c(e,"aria-label",w=U("aria_label_spherical_control")),W(e,"m-shifted",i[0])},m(P,K){v(P,e,K),p(e,t),p(t,n),p(n,o),M(l,o,null),p(n,r),p(n,a),M(s,a,null),p(t,u),p(t,f),p(f,_),M(g,_,null),p(f,y),p(f,h),M(C,h,null),F=!0,I||(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(_,"mousedown",i[4]),Te(_,"mouseup",i[5]),Te(_,"mouseleave",i[5]),Te(h,"mousedown",i[2]),Te(h,"mouseup",i[5]),Te(h,"mouseleave",i[5]),Te(e,"keydown",i[6]),Te(e,"keyup",i[7])],I=!0)},p(P,[K]){(!F||K&1)&&W(e,"m-shifted",P[0])},i(P){F||(d(l.$$.fragment,P),d(s.$$.fragment,P),d(g.$$.fragment,P),d(C.$$.fragment,P),F=!0)},o(P){m(l.$$.fragment,P),m(s.$$.fragment,P),m(g.$$.fragment,P),m(C.$$.fragment,P),F=!1},d(P){P&&b(e),A(l),A(s),A(g),A(C),I=!1,ut(k)}}}function D6(i,e,t){let{isShifted:n=!1}=e,o=ot(),l=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),r=()=>{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)},f=()=>(o.actions.internal.stopCameraManualRotation(),null),_=y=>{if(l.has(y.code))switch(y.preventDefault(),y.stopPropagation(),y.code){case"ArrowUp":r();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},g=y=>{l.has(y.code)&&(y.preventDefault(),y.stopPropagation(),f())};return i.$$set=y=>{"isShifted"in y&&t(0,n=y.isShifted)},[n,r,a,s,u,f,_,g]}var Kc=class extends D{constructor(e){super(),N(this,e,D6,B6,B,{isShifted:0},R6)}},Ms=Kc;function N6(i){Ie(i,"svelte-ovfyp5",".subtitles-container.svelte-ovfyp5.svelte-ovfyp5{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.svelte-ovfyp5.svelte-ovfyp5{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.svelte-ovfyp5.svelte-ovfyp5{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.svelte-ovfyp5.svelte-ovfyp5{bottom:8%}.subtitles-container.auto.svelte-ovfyp5 .subtitles-caption.svelte-ovfyp5{left:24%;right:24%}.caption.svelte-ovfyp5.svelte-ovfyp5{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.svelte-ovfyp5 .caption.svelte-ovfyp5{width:100%}.caption-line.svelte-ovfyp5.svelte-ovfyp5{display:block;text-align:center}.subtitles-container.auto.svelte-ovfyp5 .caption-line.svelte-ovfyp5{text-align:left}.caption-segment.svelte-ovfyp5.svelte-ovfyp5{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function S0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function I0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function T0(i){let e,t;function n(r,a){return r[7]&&r[8]?q6:r[5]?F6:O6}let o=n(i,-1),l=o(i);return{c(){e=T("div"),t=T("span"),l.c(),c(t,"class","caption svelte-ovfyp5"),c(e,"class","subtitles-caption svelte-ovfyp5"),W(e,"mobile",i[3])},m(r,a){v(r,e,a),p(e,t),l.m(t,null)},p(r,a){o===(o=n(r,a))&&l?l.p(r,a):(l.d(1),l=o(r),l&&(l.c(),l.m(t,null))),a&8&&W(e,"mobile",r[3])},d(r){r&&b(e),l.d()}}}function O6(i){let e,t=yt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=P0(S0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=tt()},m(o,l){for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(o,l);v(o,e,l)},p(o,l){if(l&18){t=yt(o[1]);let r;for(r=0;r<t.length;r+=1){let a=S0(o,t,r);n[r]?n[r].p(a,l):(n[r]=P0(a),n[r].c(),n[r].m(e.parentNode,e))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&b(e),li(n,o)}}}function F6(i){let e,t,n=yt(i[6]),o=[];for(let l=0;l<n.length;l+=1)o[l]=M0(I0(i,n,l));return{c(){e=T("span"),t=T("span");for(let l=0;l<o.length;l+=1)o[l].c();c(t,"class","caption-segment svelte-ovfyp5"),ci(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){v(l,e,r),p(e,t);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(l,r){if(r&68){n=yt(l[6]);let a;for(a=0;a<n.length;a+=1){let s=I0(l,n,a);o[a]?o[a].p(s,r):(o[a]=M0(s),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}r&16&&ci(t,"font-size",l[4]+"px")},d(l){l&&b(e),li(o,l)}}}function q6(i){let e,t,n=U("subtitles_auto_caption")+"",o;return{c(){e=T("span"),t=T("span"),o=Ne(n),c(t,"class","caption-segment svelte-ovfyp5"),ci(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){v(l,e,r),p(e,t),p(t,o)},p(l,r){r&16&&ci(t,"font-size",l[4]+"px")},d(l){l&&b(e)}}}function P0(i){let e,t,n=i[16]+"",o,l;return{c(){e=T("span"),t=T("span"),o=Ne(n),l=q(),c(t,"class","caption-segment svelte-ovfyp5"),ci(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,a){v(r,e,a),p(e,t),p(t,o),p(e,l)},p(r,a){a&2&&n!==(n=r[16]+"")&&xe(o,n),a&16&&ci(t,"font-size",r[4]+"px")},d(r){r&&b(e)}}}function E0(i){let e=i[16]+"",t;return{c(){t=Ne(e)},m(n,o){v(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&xe(t,e)},d(n){n&&b(t)}}}function M0(i){let e,t=(!i[17]||i[17]<=i[2])&&E0(i);return{c(){t&&t.c(),e=tt()},m(n,o){t&&t.m(n,o),v(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=E0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&b(e),t&&t.d(n)}}}function H6(i){let e,t=i[1].length>0&&T0(i);return{c(){e=T("div"),t&&t.c(),c(e,"class","subtitles-container svelte-ovfyp5"),W(e,"shifted",i[0]),W(e,"auto",i[5]&&!i[8])},m(n,o){v(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=T0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&W(e,"shifted",n[0]),o&288&&W(e,"auto",n[5]&&!n[8])},i:ge,o:ge,d(n){n&&b(e),t&&t.d()}}}function U6(i,e,t){let n,o,{shifted:l}=e,{captions:r}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,f=ot(),_=Nt(),g=f.state.currentSubtitle$;O(i,g,k=>t(12,n=k));let y=f.state.isAutoSubtitleCaptionVisible$;O(i,y,k=>t(8,o=k));let h,C,w,F,I;return St(()=>{I=window.setTimeout(()=>{y.set(!1)},_.autoSubtitlesTimeout)}),zn(()=>{window.clearTimeout(I)}),i.$$set=k=>{"shifted"in k&&t(0,l=k.shifted),"captions"in k&&t(1,r=k.captions),"position"in k&&t(2,a=k.position),"playerSize"in k&&t(11,s=k.playerSize),"isMobile"in k&&t(3,u=k.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048){let k=s.width*.02;t(4,h=k<=_.minSubtitlesFontSize?_.minSubtitlesFontSize:k)}i.$$.dirty&2&&t(5,C=r.some(k=>k.type==="timestamp")),i.$$.dirty&2&&t(6,w=r.reduce((k,{type:P,value:K})=>(P==="timestamp"?k.push({timeAppeared:Number(K),value:""}):k.length===0?k.push({value:String(K)}):k[k.length-1].value=String(K),k),[])),i.$$.dirty&4096&&t(7,F=!!n.isAuto)},[l,r,a,u,h,C,w,F,o,g,y,s,n]}var jc=class extends D{constructor(e){super(),N(this,e,U6,H6,B,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},N6)}},As=jc;function z6(i){Ie(i,"svelte-1o62kpz",".wrapper.svelte-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.svelte-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.svelte-1o62kpz{width:50px;height:50px}.text.svelte-1o62kpz{margin-top:20px}")}function A0(i){let e,t,n;return{c(){e=T("div"),t=Ne("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Ne(i[1]),c(e,"class","text svelte-1o62kpz")},m(o,l){v(o,e,l),p(e,t),p(e,n)},p(o,l){l&2&&xe(n,o[1])},d(o){o&&b(e)}}}function W6(i){let e,t,n,o,l,r,a=i[1]&&A0(i);return{c(){e=T("div"),t=T("div"),t.innerHTML='<svg class="icon svelte-1o62kpz" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=q(),a&&a.c(),c(t,"class","icon_wrapper svelte-1o62kpz"),c(e,"class","wrapper svelte-1o62kpz"),c(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${i[0]||""}')`)},m(s,u){v(s,e,u),p(e,t),p(e,n),a&&a.m(e,null),l||(r=Te(e,"click",i[2]),l=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=A0(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]||""}')`)&&c(e,"style",o)},i:ge,o:ge,d(s){s&&b(e),a&&a.d(),l=!1,r()}}}function K6(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function l(r){Cn.call(this,i,r)}return i.$$set=r=>{"thumbUrl"in r&&t(0,n=r.thumbUrl),"chromecastDeviceName"in r&&t(1,o=r.chromecastDeviceName)},[n,o,l]}var Gc=class extends D{constructor(e){super(),N(this,e,K6,W6,B,{thumbUrl:0,chromecastDeviceName:1},z6)}},Ls=Gc;function j6(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function G6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var xc=class extends D{constructor(e){super(),N(this,e,G6,j6,B,{})}},L0=xc;function x6(i){Ie(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 Y6(i){let e,t,n;return t=new L0({}),{c(){e=T("div"),L(t.$$.fragment),c(e,"class","container svelte-13zpvm8")},m(o,l){v(o,e,l),M(t,e,null),n=!0},p:ge,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}var Yc=class extends D{constructor(e){super(),N(this,e,null,Y6,B,{},x6)}},Vs=Yc;function Q6(i){Ie(i,"svelte-17wno3",".container.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:cover;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.svelte-17wno3.svelte-17wno3{opacity:0;visibility:hidden}.playButton.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.svelte-17wno3:hover .playButtonBackground.svelte-17wno3{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.svelte-17wno3 svg{transform:scale(2)}")}function Z6(i){let e,t,n,o,l,r,a,s,u,f;return l=new Mr({}),{c(){e=T("div"),t=T("div"),n=T("div"),o=q(),L(l.$$.fragment),c(n,"class","playButtonBackground svelte-17wno3"),c(t,"class","playButton svelte-17wno3"),c(t,"tabindex","0"),c(t,"role","button"),c(t,"aria-label",r=U("tooltip_play")),c(e,"class","container svelte-17wno3"),c(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),W(e,"hidden",i[1])},m(_,g){v(_,e,g),p(e,t),p(t,n),p(t,o),M(l,t,null),s=!0,u||(f=[Te(t,"keydown",i[3]),Te(e,"click",_t(function(){zt(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(_,[g]){i=_,(!s||g&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&c(e,"style",a),(!s||g&2)&&W(e,"hidden",i[1])},i(_){s||(d(l.$$.fragment,_),s=!0)},o(_){m(l.$$.fragment,_),s=!1},d(_){_&&b(e),A(l),u=!1,ut(f)}}}function X6(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:l}=e,a=ot().ui.startedByKeyboard$,s=u=>{let f=u.code;["Enter","Space"].includes(f)&&(u.stopPropagation(),u.preventDefault(),a.set(!0),l())};return i.$$set=u=>{"thumbUrl"in u&&t(0,n=u.thumbUrl),"hidden"in u&&t(1,o=u.hidden),"startVideo"in u&&t(2,l=u.startVideo)},[n,o,l,s]}var Qc=class extends D{constructor(e){super(),N(this,e,X6,Z6,B,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},Q6)}get handlePressKey(){return this.$$.ctx[3]}},Rs=Qc;function J6(i){Ie(i,"svelte-1bcvcf2",`.title.svelte-1bcvcf2{position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
|
|
26
|
+
Audio: `),y=De(g),h=H(),w=De(C),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(F,T){v(F,e,T),p(e,t),p(e,n),p(e,o),p(o,l),p(o,a),p(o,s),p(o,f),p(o,_),p(o,y),p(o,h),p(o,w)},p(F,T){T&1&&r!==(r=(F[0].videoCodec||"")+"")&&xe(a,r),T&1&&u!==(u=F[0].hdr?"(HDR)":"")&&xe(f,u),T&1&&g!==(g=(F[0].audioCodec||"")+"")&&xe(y,g),T&1&&C!==(C=F[0].audioLanguage?`(${F[0].audioLanguage})`:"")&&xe(w,C)},d(F){F&&b(e)}}}function xd(i){let e,t,n,o,l=i[0].viewport+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="Viewport",n=H(),o=I("span"),r=De(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),p(e,t),p(e,n),p(e,o),p(o,r)},p(a,s){s&1&&l!==(l=a[0].viewport+"")&&xe(r,l)},d(a){a&&b(e)}}}function Yd(i){let e,t,n,o,l=i[0].videoSize+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="Video size",n=H(),o=I("span"),r=De(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),p(e,t),p(e,n),p(e,o),p(o,r)},p(a,s){s&1&&l!==(l=a[0].videoSize+"")&&xe(r,l)},d(a){a&&b(e)}}}function Qd(i){let e,t,n,o,l=i[0].cdn+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="CDN host",n=H(),o=I("span"),r=De(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),p(e,t),p(e,n),p(e,o),p(o,r)},p(a,s){s&1&&l!==(l=a[0].cdn+"")&&xe(r,l)},d(a){a&&b(e)}}}function Zd(i){let e,t,n,o,l=i[0].volume+"",r,a;return{c(){e=I("div"),t=I("div"),t.textContent="Volume",n=H(),o=I("span"),r=De(l),a=De(" %"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(s,u){v(s,e,u),p(e,t),p(e,n),p(e,o),p(o,r),p(o,a)},p(s,u){u&1&&l!==(l=s[0].volume+"")&&xe(r,l)},d(s){s&&b(e)}}}function Xd(i){let e,t,n,o,l=i[0].buffer.toFixed(2)+"",r,a;return{c(){e=I("div"),t=I("div"),t.textContent="Buffer",n=H(),o=I("span"),r=De(l),a=De(" s"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(s,u){v(s,e,u),p(e,t),p(e,n),p(e,o),p(o,r),p(o,a)},p(s,u){u&1&&l!==(l=s[0].buffer.toFixed(2)+"")&&xe(r,l)},d(s){s&&b(e)}}}function Jd(i){let e,t,n,o,l=[{value:i[0].currentVideoSegmentLength,title:"Video:"},{value:i[0].currentAudioSegmentLength,title:"Audio:"}].filter(t1).map(i1).join(" & ")+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="Segment",n=H(),o=I("span"),r=De(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),p(e,t),p(e,n),p(e,o),p(o,r)},p(a,s){s&1&&l!==(l=[{value:a[0].currentVideoSegmentLength,title:"Video:"},{value:a[0].currentAudioSegmentLength,title:"Audio:"}].filter(t1).map(i1).join(" & ")+"")&&xe(r,l)},d(a){a&&b(e)}}}function $d(i){let e,t,n,o,l,r,a=i[0].speed.toFixed(2)+"",s,u,f;return o=new Nl({props:{values:i[5]}}),{c(){e=I("div"),t=I("div"),t.textContent="Network",n=H(),A(o.$$.fragment),l=H(),r=I("span"),s=De(a),u=De(" Kbps"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(_,g){v(_,e,g),p(e,t),p(e,n),E(o,e,null),p(e,l),p(e,r),p(r,s),p(r,u),f=!0},p(_,g){let y={};g&32&&(y.values=_[5]),o.$set(y),(!f||g&1)&&a!==(a=_[0].speed.toFixed(2)+"")&&xe(s,a)},i(_){f||(d(o.$$.fragment,_),f=!0)},o(_){m(o.$$.fragment,_),f=!1},d(_){_&&b(e),M(o)}}}function e1(i){let e,t,n,o,l,r,a=i[0].bitrate.toFixed(2)+"",s,u,f;return o=new Nl({props:{values:i[6]}}),{c(){e=I("div"),t=I("div"),t.textContent="V bitrate",n=H(),A(o.$$.fragment),l=H(),r=I("span"),s=De(a),u=De(" Kbps"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(_,g){v(_,e,g),p(e,t),p(e,n),E(o,e,null),p(e,l),p(e,r),p(r,s),p(r,u),f=!0},p(_,g){let y={};g&64&&(y.values=_[6]),o.$set(y),(!f||g&1)&&a!==(a=_[0].bitrate.toFixed(2)+"")&&xe(s,a)},i(_){f||(d(o.$$.fragment,_),f=!0)},o(_){m(o.$$.fragment,_),f=!1},d(_){_&&b(e),M(o)}}}function Ih(i){let e,t,n,o,l,r,a,s,u=i[0].version+"",f,_,g,y,h,C,w,F,T,k,P,j,W,U,se,de,L,ne,oe,Z,Pe,q,N,le,Y,re,ce,qe,Ve,we,Re,Ue,Ge,x,fe=i[0].id&&Wd(i),Ye=i[0].vsid&&Kd(i),_e=i[0].provider&&jd(i),ze=(i[0].videoCodec||i[0].audioCodec)&&Gd(i),$e=i[0].viewport&&xd(i),rt=i[0].videoSize&&Yd(i),Je=i[0].cdn&&Qd(i),Ze=i[0].volume&&Zd(i),He=i[0].buffer&&Xd(i),J=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&Jd(i),je=i[0].speed&&$d(i),ge=i[0].bitrate&&e1(i);return ce=new Nl({props:{values:i[4]}}),{c(){e=I("div"),t=I("button"),t.textContent="[x]",n=H(),o=I("div"),l=I("div"),r=I("div"),r.textContent="Version",a=H(),s=I("span"),f=De(u),_=H(),fe&&fe.c(),g=H(),Ye&&Ye.c(),y=H(),_e&&_e.c(),h=H(),ze&&ze.c(),C=H(),$e&&$e.c(),w=H(),rt&&rt.c(),F=H(),Je&&Je.c(),T=H(),Ze&&Ze.c(),k=H(),He&&He.c(),P=H(),J&&J.c(),j=H(),W=I("div"),U=I("div"),U.textContent="Dropped",se=H(),de=I("span"),L=De(i[2]),ne=De(" / "),oe=De(i[1]),Z=De(" frames"),Pe=H(),je&&je.c(),q=H(),ge&&ge.c(),N=H(),le=I("div"),Y=I("div"),Y.textContent="FPS",re=H(),A(ce.$$.fragment),qe=H(),Ve=I("span"),we=De(i[3]),c(t,"class","close svelte-k5ymwy"),c(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),c(r,"class","svelte-k5ymwy"),c(l,"class","svelte-k5ymwy"),c(U,"class","svelte-k5ymwy"),c(W,"class","svelte-k5ymwy"),c(Y,"class","svelte-k5ymwy"),c(le,"class","svelte-k5ymwy"),c(o,"class","content svelte-k5ymwy"),c(e,"class","container svelte-k5ymwy"),c(e,"role","region"),c(e,"aria-label",Re=z("aria_label_debug_panel")),K(e,"container-mobile",i[7])},m(Ie,We){v(Ie,e,We),p(e,t),p(e,n),p(e,o),p(o,l),p(l,r),p(l,a),p(l,s),p(s,f),p(o,_),fe&&fe.m(o,null),p(o,g),Ye&&Ye.m(o,null),p(o,y),_e&&_e.m(o,null),p(o,h),ze&&ze.m(o,null),p(o,C),$e&&$e.m(o,null),p(o,w),rt&&rt.m(o,null),p(o,F),Je&&Je.m(o,null),p(o,T),Ze&&Ze.m(o,null),p(o,k),He&&He.m(o,null),p(o,P),J&&J.m(o,null),p(o,j),p(o,W),p(W,U),p(W,se),p(W,de),p(de,L),p(de,ne),p(de,oe),p(de,Z),p(o,Pe),je&&je.m(o,null),p(o,q),ge&&ge.m(o,null),p(o,N),p(o,le),p(le,Y),p(le,re),E(ce,le,null),p(le,qe),p(le,Ve),p(Ve,we),Ue=!0,Ge||(x=Te(t,"click",_t(i[9])),Ge=!0)},p(Ie,[We]){(!Ue||We&1)&&u!==(u=Ie[0].version+"")&&xe(f,u),Ie[0].id?fe?fe.p(Ie,We):(fe=Wd(Ie),fe.c(),fe.m(o,g)):fe&&(fe.d(1),fe=null),Ie[0].vsid?Ye?Ye.p(Ie,We):(Ye=Kd(Ie),Ye.c(),Ye.m(o,y)):Ye&&(Ye.d(1),Ye=null),Ie[0].provider?_e?_e.p(Ie,We):(_e=jd(Ie),_e.c(),_e.m(o,h)):_e&&(_e.d(1),_e=null),Ie[0].videoCodec||Ie[0].audioCodec?ze?ze.p(Ie,We):(ze=Gd(Ie),ze.c(),ze.m(o,C)):ze&&(ze.d(1),ze=null),Ie[0].viewport?$e?$e.p(Ie,We):($e=xd(Ie),$e.c(),$e.m(o,w)):$e&&($e.d(1),$e=null),Ie[0].videoSize?rt?rt.p(Ie,We):(rt=Yd(Ie),rt.c(),rt.m(o,F)):rt&&(rt.d(1),rt=null),Ie[0].cdn?Je?Je.p(Ie,We):(Je=Qd(Ie),Je.c(),Je.m(o,T)):Je&&(Je.d(1),Je=null),Ie[0].volume?Ze?Ze.p(Ie,We):(Ze=Zd(Ie),Ze.c(),Ze.m(o,k)):Ze&&(Ze.d(1),Ze=null),Ie[0].buffer?He?He.p(Ie,We):(He=Xd(Ie),He.c(),He.m(o,P)):He&&(He.d(1),He=null),Ie[0].currentVideoSegmentLength||Ie[0].currentAudioSegmentLength?J?J.p(Ie,We):(J=Jd(Ie),J.c(),J.m(o,j)):J&&(J.d(1),J=null),(!Ue||We&4)&&xe(L,Ie[2]),(!Ue||We&2)&&xe(oe,Ie[1]),Ie[0].speed?je?(je.p(Ie,We),We&1&&d(je,1)):(je=$d(Ie),je.c(),d(je,1),je.m(o,q)):je&&(ae(),m(je,1,1,()=>{je=null}),ue()),Ie[0].bitrate?ge?(ge.p(Ie,We),We&1&&d(ge,1)):(ge=e1(Ie),ge.c(),d(ge,1),ge.m(o,N)):ge&&(ae(),m(ge,1,1,()=>{ge=null}),ue());let me={};We&16&&(me.values=Ie[4]),ce.$set(me),(!Ue||We&8)&&xe(we,Ie[3]),(!Ue||We&128)&&K(e,"container-mobile",Ie[7])},i(Ie){Ue||(d(je),d(ge),d(ce.$$.fragment,Ie),Ue=!0)},o(Ie){m(je),m(ge),m(ce.$$.fragment,Ie),Ue=!1},d(Ie){Ie&&b(e),fe&&fe.d(),Ye&&Ye.d(),_e&&_e.d(),ze&&ze.d(),$e&&$e.d(),rt&&rt.d(),Je&&Je.d(),Ze&&Ze.d(),He&&He.d(),J&&J.d(),je&&je.d(),ge&&ge.d(),M(ce),Ge=!1,x()}}}var t1=({value:i})=>i,i1=({value:i,title:e})=>`${e} ${((i??0)/1e3).toFixed(2)} s`;function Th(i,e,t){let n,o=nt(),l=o.ui.debugPanelVisible,r=o.ui.isMobile;O(i,r,k=>t(7,n=k));let a=()=>{Pa.safeStorage.remove(Xr),l.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),f=0,_=0,g=0,y=new Pr(60),h=new Pr(60),C=new Pr(60),w=[],F=[],T=[];return St(()=>{Pa.safeStorage.set(Xr,"true"),o.actions.internal.startLogging(),u&&(t(2,_=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,f=u.getVideoPlaybackQuality().totalVideoFrames));let k=window.setInterval(()=>{t(0,s=o.actions.internal.getDebugPanelData())},500),P;return u&&(P=window.setInterval(()=>{if(u){t(2,_=u.getVideoPlaybackQuality().droppedVideoFrames);let j=u.getVideoPlaybackQuality().totalVideoFrames;t(3,g=j-f),t(1,f=j),y.push(g),s.speed&&h.push(s.speed),s.bitrate&&C.push(s.bitrate),t(4,w=y.getValuesFromBottom()),t(5,F=h.getValuesFromBottom()),t(6,T=C.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(k),P&&clearInterval(P)}}),[s,f,_,g,w,F,T,n,r,a]}var Ea=class extends B{constructor(e){super(),D(this,e,Th,Ih,R,{},Sh)}},Ol=Ea;function Ph(i){Se(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 Eh(i){let e,t,n;return{c(){e=I("div"),c(e,"class","close svelte-1ome55p")},m(o,l){v(o,e,l),t||(n=Te(e,"click",_t(i[0])),t=!0)},p:be,i:be,o:be,d(o){o&&b(e),t=!1,n()}}}function Mh(i){function e(t){Cn.call(this,i,t)}return[e]}var Ma=class extends B{constructor(e){super(),D(this,e,Mh,Eh,R,{},Ph)}},n1=Ma;var o1=require("@vkontakte/videoplayer-shared");function Ah(i){Se(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 Lh(i){let e,t,n,o,l,r,a;return{c(){e=I("div"),t=I("canvas"),n=H(),o=V("svg"),l=V("g"),r=V("g"),a=V("path"),c(t,"class","timer-canvas svelte-8jhsry"),c(t,"width","100"),c(t,"height","100"),c(a,"class","_play"),c(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"),c(a,"fill","#fff"),c(r,"fill-rule","nonzero"),c(l,"fill","none"),c(l,"fill-rule","evenodd"),c(o,"class","timer-play-icon svelte-8jhsry"),c(o,"viewBox","0 0 24 24"),c(o,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","timer svelte-8jhsry")},m(s,u){v(s,e,u),p(e,t),i[2](t),p(e,n),p(e,o),p(o,l),p(l,r),p(r,a)},p:be,i:be,o:be,d(s){s&&b(e),i[2](null)}}}var Vh=5e3;function Rh(i,e,t){let{onTimerEnded:n=o1.noop}=e,o;St(()=>{let r,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let s=Date.now(),u=()=>{let f=(Date.now()-s)/Vh;f<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),a.stroke(),r=requestAnimationFrame(u)):n()};return r=requestAnimationFrame(u),()=>{cancelAnimationFrame(r)}});function l(r){ve[r?"unshift":"push"](()=>{o=r,t(0,o)})}return i.$$set=r=>{"onTimerEnded"in r&&t(1,n=r.onTimerEnded)},[o,n,l]}var Aa=class extends B{constructor(e){super(),D(this,e,Rh,Lh,R,{onTimerEnded:1},Ah)}},r1=Aa;function Bh(i){Se(i,"svelte-kisfwc",".overlay.svelte-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.svelte-kisfwc{display:flex;justify-content:space-between}.caption.svelte-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.svelte-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-kisfwc{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.svelte-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.svelte-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function l1(i){let e,t;return e=new r1({props:{onTimerEnded:i[2]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.onTimerEnded=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Dh(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,T,k,P,j;a=new n1({}),a.$on("click",i[4]);let W=i[3]&&l1(i);return{c(){e=I("div"),t=H(),n=I("div"),o=I("div"),l=I("div"),l.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",r=H(),A(a.$$.fragment),s=H(),u=I("div"),f=I("div"),_=I("div"),g=I("div"),y=H(),W&&W.c(),C=H(),w=I("div"),F=I("div"),T=De(i[0]),c(e,"class","overlay svelte-kisfwc"),c(l,"class","caption svelte-kisfwc"),c(o,"class","top svelte-kisfwc"),c(g,"class","thumb-overlay svelte-kisfwc"),c(_,"class","thumb svelte-kisfwc"),c(_,"style",h=`background-image: url('${i[1]}')`),c(f,"class","column svelte-kisfwc"),c(F,"class","title svelte-kisfwc"),c(w,"class","column svelte-kisfwc"),c(u,"class","row svelte-kisfwc"),c(n,"class","next-video svelte-kisfwc")},m(U,se){v(U,e,se),v(U,t,se),v(U,n,se),p(n,o),p(o,l),p(o,r),E(a,o,null),p(n,s),p(n,u),p(u,f),p(f,_),p(_,g),p(_,y),W&&W.m(_,null),p(u,C),p(u,w),p(w,F),p(F,T),k=!0,P||(j=Te(u,"click",function(){jt(i[2])&&i[2].apply(this,arguments)}),P=!0)},p(U,[se]){i=U,i[3]?W?(W.p(i,se),se&8&&d(W,1)):(W=l1(i),W.c(),d(W,1),W.m(_,null)):W&&(ae(),m(W,1,1,()=>{W=null}),ue()),(!k||se&2&&h!==(h=`background-image: url('${i[1]}')`))&&c(_,"style",h),(!k||se&1)&&xe(T,i[0])},i(U){k||(d(a.$$.fragment,U),d(W),k=!0)},o(U){m(a.$$.fragment,U),m(W),k=!1},d(U){U&&(b(e),b(t),b(n)),M(a),W&&W.d(),P=!1,j()}}}function Nh(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:l}=e,r=!0,a=()=>t(3,r=!1);return i.$$set=s=>{"title"in s&&t(0,n=s.title),"thumb"in s&&t(1,o=s.thumb),"playNextVideo"in s&&t(2,l=s.playNextVideo)},[n,o,l,r,a]}var La=class extends B{constructor(e){super(),D(this,e,Nh,Dh,R,{title:0,thumb:1,playNextVideo:2},Bh)}},s1=La;var ko=require("@vkontakte/videoplayer-core"),a1=require("@vkontakte/videoplayer-shared"),en=require("@vkontakte/videoplayer-statistics");var Va=(i,e)=>Math.min(+(i+e).toFixed(2),1),Ra=(i,e)=>Math.max(+(i-e).toFixed(2),0),Fl=(i,e,t)=>{let n=Va(e,t);e<1&&i.actions.internal.setVolume(n)},ql=(i,e,t)=>{let n=Ra(e,t);e>0&&i.actions.internal.setVolume(n)};var yo=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e?.(),!1):t?!0:(n?.(),!1);function Fh(i){Se(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function qh(i){let e,t,n,o,l,r=i[26].default,a=Ee(r,i,i[25],null);return{c(){e=I("div"),a&&a.c(),c(e,"class","keyboard-controls svelte-10kkmxz"),c(e,"tabindex","-1"),c(e,"role","region"),c(e,"aria-label",t=z("aria_label_video_player"))},m(s,u){v(s,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(l=[Te(e,"keyup",i[17]),Te(e,"keydown",i[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Ae(a,r,s,s[25],n?Me(r,s[25],u,null):Le(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){m(a,s),n=!1},d(s){s&&b(e),a&&a.d(s),i[27](null),o=!1,ct(l)}}}function Hh(i,e,t){let n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,{$$slots:T={},$$scope:k}=e,{isAds:P}=e,{hideContextMenu:j}=e,{toggleFullscreen:W}=e,{showHotKeyHelpers:U}=e,{showKeyMap:se}=e,{fakePlayButtonHandler:de}=e,L=nt(),ne=qt(),oe=L.getLogger().createComponentLog("KeyboardControls component"),Z=L.state.playbackState$;O(i,Z,$=>t(31,o=$));let Pe=L.ads.playbackState;O(i,Pe,$=>t(30,n=$));let q=L.state.positionExact$;O(i,q,$=>t(41,h=$));let N=L.state.duration$;O(i,N,$=>t(40,y=$));let le=L.state.volume$;O(i,le,$=>t(44,F=$));let Y=L.ui.controls.disabledControls$;O(i,Y,$=>t(39,g=$));let re=L.state.muted$;O(i,re,$=>t(34,a=$));let ce=L.state.currentSubtitle$;O(i,ce,$=>t(33,r=$));let qe=L.state.currentPlaybackRate$;O(i,qe,$=>t(42,C=$));let Ve=L.state.availablePlaybackRates$;O(i,Ve,$=>t(43,w=$));let we=L.ui.contextMenu.openedByHotKey$,Re=L.ui.contextMenu.lastActiveElem$,Ue=L.ui.contextMenu.visible$,Ge=L.ui.contextMenu.position$,x=L.state.isEnded$;O(i,x,$=>t(36,u=$));let fe=L.ui.overlayContainer$;O(i,fe,$=>t(32,l=$));let Ye=L.callbacks?.onAudioDoesNotExistHint,_e=L.callbacks?.onAudioDisabledHint,ze=L.state.isAudioAvailable$;O(i,ze,$=>t(35,s=$));let $e=L.state.isAudioDisabled,rt=L.state.isInteractiveTime$;O(i,rt,$=>t(38,_=$));let{showInteractiveTimeIndicatorTooltip$:Je}=Vn();O(i,Je,$=>t(37,f=$));let Ze=0,He=!0,J,je=()=>J?.focus(),ge=$=>($!==He&&(He=$,Ze=0),Ze+=1,(ne.controls.seekStepKeyboard+ne.controls.seekStepKeyboard*Ze)/1e3),Ie=$=>{let dt=$.target,mt=dt?.getAttribute("role")?.includes("menuitem"),tt=dt.classList.contains("btn"),ut=$.code;if(tt&&ut==="Space")return;let Pt=Df.has(ut);if(mt&&Pt)return;let Tt=!Bf.has(ut);if($.ctrlKey&&Tt||$.altKey&&Tt||$.metaKey)return;let it=mt&&ut==="Escape";Nf.has(ut)||it||j();let Et=o===ko.PlaybackState.PLAYING||o===ko.PlaybackState.PAUSED,Ht=P&&(n==="paused"||n==="playing"),oi=!Ht&&!g.has("TIMELINE");if(Et||Ht)switch(oe({message:`key down, code: ${ut}`}),ut){case"KeyJ":case"ArrowLeft":{if(!oi)break;if($.ctrlKey||$.altKey){let st=L.actions.internal.getPrevEpisode();L.actions.internal.seekToPrevEpisode(st),st&&U({type:"EPISODE_PREV",text:st.text}),$.preventDefault()}else{let st=$.shiftKey?ge(!1):ne.controls.seekStepKeyboard/1e3,vt=Math.max(h-st,0);h>0&&(L.actions.internal.seekTime(vt,en.SeekAction.DOUBLE_TAP),U({type:"BACKWARD_SEEK",text:st.toString()}),$.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!oi)break;if($.ctrlKey||$.altKey){let st=L.actions.internal.getNextEpisode();L.actions.internal.seekToNextEpisode(st),st&&U({type:"EPISODE_NEXT",text:st.text}),$.preventDefault()}else{let st=$.shiftKey?ge(!0):ne.controls.seekStepKeyboard/1e3,vt=Math.min(h+st,y);Math.round(h)<Math.round(y)&&(L.actions.internal.seekTime(vt,en.SeekAction.DOUBLE_TAP),U({type:"FORWARD_SEEK",text:st.toString()}),$.preventDefault())}break}case"ArrowUp":{if(yo({isAudioDisabled:$e,audioDisabledHintCallback:_e,isAudioAvailable:s,audioIsNotExistHintCallback:Ye})){let st=F,vt=ne.controls.volumeStepKeyboard,ri=st<=1;if(Fl(L,st,vt),ri){let pe=Math.round(Va(st,vt)*100).toString();U({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:pe}})}}$.preventDefault();break}case"ArrowDown":{if(yo({isAudioDisabled:$e,audioDisabledHintCallback:_e,isAudioAvailable:s,audioIsNotExistHintCallback:Ye})){let st=F,vt=ne.controls.volumeStepKeyboard,ri=st>=0;if(ql(L,st,vt),ri){let pe=Math.round(Ra(st,vt)*100).toString();U({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:pe}})}}$.preventDefault();break}case"Comma":{if($.shiftKey){L.actions.internal.decrementPlaybackRate();let st=w.find(vt=>vt.value===C);U({type:"RATE_DOWN",text:st?.displayValue}),$.preventDefault()}else{if(Ht||o!==ko.PlaybackState.PAUSED)break;let st=Math.max(h-ne.controls.seekStepFrame/1e3,0);h>0&&(U({type:"BACKWARD_SEEK"}),L.actions.internal.clearDelayedBufferingCheckTimeout(),L.actions.internal.seekTime(st,en.SeekAction.DOUBLE_TAP),$.preventDefault())}break}case"Period":{if($.shiftKey){L.actions.internal.incrementPlaybackRate();let st=w.find(vt=>vt.value===C);U({type:"RATE_UP",text:st?.displayValue}),$.preventDefault()}else{if(Ht||o!==ko.PlaybackState.PAUSED)break;let st=Math.min(h+ne.controls.seekStepFrame/1e3,y);h<y&&(U({type:"FORWARD_SEEK"}),L.actions.internal.clearDelayedBufferingCheckTimeout(),L.actions.internal.seekTime(st,en.SeekAction.DOUBLE_TAP),$.preventDefault())}break}case"KeyK":case"Space":if(!g.has("PLAY_BUTTON"))if(_&&f&&Je.set(!1),de)de();else{L.actions.internal.togglePlay();let st="PLAY";o===ko.PlaybackState.PAUSED?st="PAUSE":u&&(st="REPLAY"),U({type:st})}$.preventDefault();break;case"KeyM":{yo({isAudioDisabled:$e,audioDisabledHintCallback:_e,isAudioAvailable:s,audioIsNotExistHintCallback:Ye})&&(U({type:a?"VOLUME":"MUTE"}),L.actions.internal.toggleMuted()),$.preventDefault();break}case"KeyF":W(),$.preventDefault();break;case"KeyC":L.actions.internal.toggleSubtitle(),r.value!=="off"?U({type:"SUBTITLES_ON",text:r?.displayValue}):U({type:"SUBTITLES_OFF"}),$.preventDefault();break;case"KeyI":L.actions.internal.togglePictureInPicture(),$.preventDefault();break;case"Digit1":case"Numpad1":if($.shiftKey){let st=Dd(l);Ge.set(st),Re.set(dt),we.set(!0),Ue.set(!0),$.preventDefault();break}U(),L.actions.internal.seekToPercent(.1,en.SeekAction.DOUBLE_TAP),$.preventDefault();break;case"Digit2":case"Numpad2":U(),L.actions.internal.seekToPercent(.2,en.SeekAction.DOUBLE_TAP),$.preventDefault();break;case"Digit3":case"Numpad3":U(),L.actions.internal.seekToPercent(.3,en.SeekAction.DOUBLE_TAP),$.preventDefault();break;case"Digit4":case"Numpad4":U(),L.actions.internal.seekToPercent(.4,en.SeekAction.DOUBLE_TAP),$.preventDefault();break;case"Digit5":case"Numpad5":U(),L.actions.internal.seekToPercent(.5,en.SeekAction.DOUBLE_TAP),$.preventDefault();break;case"Digit6":case"Numpad6":U(),L.actions.internal.seekToPercent(.6,en.SeekAction.DOUBLE_TAP),$.preventDefault();break;case"Digit7":case"Numpad7":U(),L.actions.internal.seekToPercent(.7,en.SeekAction.DOUBLE_TAP),$.preventDefault();break;case"Digit8":case"Numpad8":U(),L.actions.internal.seekToPercent(.8,en.SeekAction.DOUBLE_TAP),$.preventDefault();break;case"Digit9":case"Numpad9":U(),L.actions.internal.seekToPercent(.9,en.SeekAction.DOUBLE_TAP),$.preventDefault();break;case"Digit0":case"Numpad0":U(),L.actions.internal.seekToPercent(0,en.SeekAction.DOUBLE_TAP),$.preventDefault();break;case"Slash":{$.shiftKey&&ne.features.hotKeyMapModal&&(se(),$.preventDefault());break}case"ShiftLeft":case"ShiftRight":$.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,a1.checkNever)(ut);break}},We=$=>{let dt=$.code;if($.ctrlKey||$.altKey||$.metaKey)return;let mt=o===ko.PlaybackState.PLAYING||o===ko.PlaybackState.PAUSED,tt=P&&(n==="paused"||n==="playing");if(mt||tt)switch(dt){case"ShiftLeft":case"ShiftRight":Ze=0;break}};function me($){ve[$?"unshift":"push"](()=>{J=$,t(0,J)})}return i.$$set=$=>{"isAds"in $&&t(18,P=$.isAds),"hideContextMenu"in $&&t(19,j=$.hideContextMenu),"toggleFullscreen"in $&&t(20,W=$.toggleFullscreen),"showHotKeyHelpers"in $&&t(21,U=$.showHotKeyHelpers),"showKeyMap"in $&&t(22,se=$.showKeyMap),"fakePlayButtonHandler"in $&&t(23,de=$.fakePlayButtonHandler),"$$scope"in $&&t(25,k=$.$$scope)},[J,Z,Pe,q,N,le,Y,re,ce,qe,Ve,x,fe,ze,rt,Je,Ie,We,P,j,W,U,se,de,je,k,T,me]}var Ba=class extends B{constructor(e){super(),D(this,e,Hh,qh,R,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},Fh,[-1,-1])}get focus(){return this.$$.ctx[24]}},u1=Ba;function Uh(i){Se(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 zh(i){let e,t,n,o,l,r;return{c(){e=I("div"),t=I("div"),n=H(),o=I("div"),l=H(),r=I("div"),c(t,"class","dot svelte-8nkw5s"),c(o,"class","dot svelte-8nkw5s"),c(r,"class","dot svelte-8nkw5s"),c(e,"class","container svelte-8nkw5s"),c(e,"style",i[0])},m(a,s){v(a,e,s),p(e,t),p(e,n),p(e,o),p(e,l),p(e,r)},p(a,[s]){s&1&&c(e,"style",a[0])},i:be,o:be,d(a){a&&b(e)}}}function Wh(i,e,t){let{style:n=""}=e;return i.$$set=o=>{"style"in o&&t(0,n=o.style)},[n]}var Da=class extends B{constructor(e){super(),D(this,e,Wh,zh,R,{style:0},Uh)}},Er=Da;function Kh(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C=i[2].default,w=Ee(C,i,i[1],null),F=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],T={};for(let k=0;k<F.length;k+=1)T=ie(T,F[k]);return{c(){e=V("svg"),w&&w.c(),t=V("g"),n=V("path"),o=V("path"),l=V("defs"),r=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),f=V("feGaussianBlur"),_=V("feColorMatrix"),g=V("feBlend"),y=V("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(_,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2422_111980"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2422_111980"),c(y,"result","shape"),c(r,"id","a"),c(r,"width","23"),c(r,"height","23"),c(r,"x",".5"),c(r,"y",".5"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ke(e,T)},m(k,P){v(k,e,P),w&&w.m(e,null),p(e,t),p(t,n),p(t,o),p(e,l),p(l,r),p(r,a),p(r,s),p(r,u),p(r,f),p(r,_),p(r,g),p(r,y),h=!0},p(k,[P]){w&&w.p&&(!h||P&2)&&Ae(w,C,k,k[1],h?Me(C,k[1],P,null):Le(k[1]),null),ke(e,T=Be(F,[{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){h||(d(w,k),h=!0)},o(k){m(w,k),h=!1},d(k){k&&b(e),w&&w.d(k)}}}function jh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Na=class extends B{constructor(e){super(),D(this,e,jh,Kh,R,{})}},c1=Na;var Jn=require("@vkontakte/videoplayer-shared");function Gh(i){Se(i,"svelte-1anemql",".btn.svelte-1anemql{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center}.w-max.svelte-1anemql{width:100%}.btn--live.svelte-1anemql{padding:10px 4px}.btn-m.svelte-1anemql{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-1anemql{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn.svelte-1anemql:disabled{cursor:default;pointer-events:none}.btn.svelte-1anemql:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-1anemql:not(:disabled):hover{opacity:0.8}.pr-0.svelte-1anemql{padding-right:0}.pl-0.svelte-1anemql{padding-left:0}")}function xh(i){let e,t,n,o,l,r,a,s,u,f,_,g,y=i[14].default,h=Ee(y,i,i[13],null);return{c(){e=I("button"),h&&h.c(),c(e,"class",t="btn "+i[1]+" svelte-1anemql"),c(e,"style",n=i[2]||null),e.disabled=o=i[3]??null,c(e,"aria-hidden",l=i[5]??null),c(e,"aria-label",r=i[6]??null),c(e,"aria-keyshortcuts",a=i[7]??null),c(e,"aria-expanded",s=i[8]??null),c(e,"data-testid",u=i[4]??null),c(e,"tabindex",i[9])},m(C,w){v(C,e,w),h&&h.m(e,null),i[16](e),f=!0,_||(g=[Te(e,"pointerdown",_t(i[15])),Te(e,"click",_t(function(){jt(i[10]===Jn.noop?null:i[10])&&(i[10]===Jn.noop?null:i[10]).apply(this,arguments)})),Te(e,"focus",$t(function(){jt(i[11]===Jn.noop?null:i[11])&&(i[11]===Jn.noop?null:i[11]).apply(this,arguments)})),Te(e,"blur",$t(function(){jt(i[12]===Jn.noop?null:i[12])&&(i[12]===Jn.noop?null:i[12]).apply(this,arguments)}))],_=!0)},p(C,[w]){i=C,h&&h.p&&(!f||w&8192)&&Ae(h,y,i,i[13],f?Me(y,i[13],w,null):Le(i[13]),null),(!f||w&2&&t!==(t="btn "+i[1]+" svelte-1anemql"))&&c(e,"class",t),(!f||w&4&&n!==(n=i[2]||null))&&c(e,"style",n),(!f||w&8&&o!==(o=i[3]??null))&&(e.disabled=o),(!f||w&32&&l!==(l=i[5]??null))&&c(e,"aria-hidden",l),(!f||w&64&&r!==(r=i[6]??null))&&c(e,"aria-label",r),(!f||w&128&&a!==(a=i[7]??null))&&c(e,"aria-keyshortcuts",a),(!f||w&256&&s!==(s=i[8]??null))&&c(e,"aria-expanded",s),(!f||w&16&&u!==(u=i[4]??null))&&c(e,"data-testid",u),(!f||w&512)&&c(e,"tabindex",i[9])},i(C){f||(d(h,C),f=!0)},o(C){m(h,C),f=!1},d(C){C&&b(e),h&&h.d(C),i[16](null),_=!1,ct(g)}}}function Yh(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:l=""}=e,{style:r=""}=e,{disabled:a=void 0}=e,{testId:s=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:f=void 0}=e,{ref:_=void 0}=e,{ariaKeyShortCut:g=void 0}=e,{ariaExpanded:y=void 0}=e,{tabIndex:h=0}=e,{click:C=Jn.noop}=e,{focus:w=Jn.noop}=e,{blur:F=Jn.noop}=e;function T(P){Cn.call(this,i,P)}function k(P){ve[P?"unshift":"push"](()=>{_=P,t(0,_)})}return i.$$set=P=>{"className"in P&&t(1,l=P.className),"style"in P&&t(2,r=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,f=P.ariaLabel),"ref"in P&&t(0,_=P.ref),"ariaKeyShortCut"in P&&t(7,g=P.ariaKeyShortCut),"ariaExpanded"in P&&t(8,y=P.ariaExpanded),"tabIndex"in P&&t(9,h=P.tabIndex),"click"in P&&t(10,C=P.click),"focus"in P&&t(11,w=P.focus),"blur"in P&&t(12,F=P.blur),"$$scope"in P&&t(13,o=P.$$scope)},[_,l,r,a,s,u,f,g,y,h,C,w,F,o,n,T,k]}var Oa=class extends B{constructor(e){super(),D(this,e,Yh,xh,R,{className:1,style:2,disabled:3,testId:4,ariaHidden:5,ariaLabel:6,ref:0,ariaKeyShortCut:7,ariaExpanded:8,tabIndex:9,click:10,focus:11,blur:12},Gh)}},gt=Oa;function Qh(i){Se(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,l,r=i[2]&&d1(i);return{c(){e=I("div"),t=I("h3"),n=De(i[3]),o=H(),r&&r.c(),c(t,"class","modal-title svelte-1witlsj"),c(e,"class","modal-header svelte-1witlsj")},m(a,s){v(a,e,s),p(e,t),p(t,n),p(e,o),r&&r.m(e,null),l=!0},p(a,s){(!l||s&8)&&xe(n,a[3]),a[2]?r?(r.p(a,s),s&4&&d(r,1)):(r=d1(a),r.c(),d(r,1),r.m(e,null)):r&&(ae(),m(r,1,1,()=>{r=null}),ue())},i(a){l||(d(r),l=!0)},o(a){m(r),l=!1},d(a){a&&b(e),r&&r.d()}}}function d1(i){let e,t;return e=new gt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:z("hotkey_map_modal_close_btn_text"),$$slots:{default:[Zh]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&1&&(l.click=n[0]),o&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Zh(i){let e,t;return e=new c1({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Xh(i){let e,t,n,o,l,r,a=i[1]&&f1(i),s=i[4].default,u=Ee(s,i,i[5],null);return{c(){e=I("div"),t=I("div"),a&&a.c(),n=H(),o=I("div"),l=I("div"),u&&u.c(),c(l,"class","modal-main svelte-1witlsj"),c(o,"class","modal-scroll svelte-1witlsj"),c(t,"class","modal-container svelte-1witlsj"),c(e,"class","modal-overlay svelte-1witlsj")},m(f,_){v(f,e,_),p(e,t),a&&a.m(t,null),p(t,n),p(t,o),p(o,l),u&&u.m(l,null),r=!0},p(f,[_]){f[1]?a?(a.p(f,_),_&2&&d(a,1)):(a=f1(f),a.c(),d(a,1),a.m(t,n)):a&&(ae(),m(a,1,1,()=>{a=null}),ue()),u&&u.p&&(!r||_&32)&&Ae(u,s,f,f[5],r?Me(s,f[5],_,null):Le(f[5]),null)},i(f){r||(d(a),d(u,f),r=!0)},o(f){m(a),m(u,f),r=!1},d(f){f&&b(e),a&&a.d(),u&&u.d(f)}}}function Jh(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:l}=e,{showHeader:r=!0}=e,{showCloseCross:a=!0}=e,{title:s}=e;return i.$$set=u=>{"onClose"in u&&t(0,l=u.onClose),"showHeader"in u&&t(1,r=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)},[l,r,a,s,n,o]}var Fa=class extends B{constructor(e){super(),D(this,e,Jh,Xh,R,{onClose:0,showHeader:1,showCloseCross:2,title:3},Qh)}},m1=Fa;var $h=new Set(["BR"]),qa=i=>{let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let o=t[n],l=o.tagName;$h.has(l)||o.parentElement?.removeChild(o)}return e.innerHTML};function e2(i){Se(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 p1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function _1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function g1(i){let e,t,n=qa(i[9])+"",o,l,r=i[10]+"",a,s;return{c(){e=I("li"),t=I("span"),o=H(),l=I("span"),a=De(r),s=H(),c(t,"class","hot-key-map-item-description svelte-quklnq"),c(l,"class","hot-key-map-item-value svelte-quklnq"),c(e,"class","hot-key-map-item svelte-quklnq")},m(u,f){v(u,e,f),p(e,t),t.innerHTML=n,p(e,o),p(e,l),p(l,a),p(e,s)},p(u,f){f&1&&n!==(n=qa(u[9])+"")&&(t.innerHTML=n),f&1&&r!==(r=u[10]+"")&&xe(a,r)},d(u){u&&b(e)}}}function h1(i){let e,t,n=i[5]+"",o,l,r,a,s=ht(i[6]),u=[];for(let f=0;f<s.length;f+=1)u[f]=g1(_1(i,s,f));return{c(){e=I("div"),t=I("h5"),o=De(n),l=H(),r=I("ul");for(let f=0;f<u.length;f+=1)u[f].c();a=H(),c(t,"class","hot-key-map-group-title svelte-quklnq"),c(r,"class","hot-key-map-group-items svelte-quklnq"),c(e,"class","hot-key-map-group svelte-quklnq")},m(f,_){v(f,e,_),p(e,t),p(t,o),p(e,l),p(e,r);for(let g=0;g<u.length;g+=1)u[g]&&u[g].m(r,null);p(e,a)},p(f,_){if(_&1&&n!==(n=f[5]+"")&&xe(o,n),_&1){s=ht(f[6]);let g;for(g=0;g<s.length;g+=1){let y=_1(f,s,g);u[g]?u[g].p(y,_):(u[g]=g1(y),u[g].c(),u[g].m(r,null))}for(;g<u.length;g+=1)u[g].d(1);u.length=s.length}},d(f){f&&b(e),ni(u,f)}}}function t2(i){let e,t=ht(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=h1(p1(i,t,o));return{c(){e=I("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","hot-key-map svelte-quklnq")},m(o,l){v(o,e,l);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,l){if(l&1){t=ht(o[0].groups);let r;for(r=0;r<t.length;r+=1){let a=p1(o,t,r);n[r]?n[r].p(a,l):(n[r]=h1(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&b(e),ni(n,o)}}}function i2(i){let e,t;return e=new m1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[t2]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.title=n[0].title),o&8193&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function n2(i,e,t){let n,o=nt(),{data:l,show:r}=o.ui.modals.hotKeyMap;return O(i,l,s=>t(0,n=s)),[n,l,()=>{r.set(!1)}]}var Ha=class extends B{constructor(e){super(),D(this,e,n2,i2,R,{},e2)}},b1=Ha;var Is=require("@vkontakte/videoplayer-shared");var Hl;function Mr(i){return Hl||(Hl=new ResizeObserver(e=>{for(let t of e)t.target.dispatchEvent(new CustomEvent("fd:resize"))})),Hl.observe(i),{destroy(){Hl.unobserve(i)}}}var Qo=require("@vkontakte/videoplayer-core");var Go={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"},v1={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"};var o2=i=>Go[i]??Go[v1[i]]??void 0,Ul=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),zl=(i,e)=>{if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=o2(t)??t),n&&t&&o){let r=e.filter(a=>a.label===n&&a.language===t);if(r.length===1)return z("audio_stream_display_language_label",{language:o,label:n});{let a=Ul(i,r);return z("audio_stream_display_language_label_index",{language:o,label:n,index:a})}}if(n){let r=e.filter(a=>a.label===n);if(r.length===1)return n;{let a=Ul(i,r);return z("audio_stream_display_label_index",{label:n,index:a})}}if(t&&o){let r=e.filter(a=>a.language===t);if(r.length===1)return o;{let a=Ul(i,r);return z("audio_stream_display_language_index",{language:o,index:a})}}let l=Ul(i,e);return z("audio_stream_display_unknown",{index:l})};function r2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function l2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Ua=class extends B{constructor(e){super(),D(this,e,l2,r2,R,{})}},y1=Ua;function s2(i){Se(i,"svelte-124aexk",".select-icon.svelte-124aexk{margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px}")}function k1(i){let e,t,n;return t=new y1({}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","select-icon svelte-124aexk")},m(o,l){v(o,e,l),E(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function a2(i){let e,t=(i[1].label??i[1].value)+"",n;return{c(){e=I("div"),n=De(t),c(e,"class","menu-item-value"),K(e,"submenu-value-mobile",i[0])},m(o,l){v(o,e,l),p(e,n)},p(o,l){l&2&&t!==(t=(o[1].label??o[1].value)+"")&&xe(n,t),l&1&&K(e,"submenu-value-mobile",o[0])},i:be,o:be,d(o){o&&b(e)}}}function u2(i){let e,t,n,o=[i[1].valueComponentParams??{}];var l=i[1].valueComponent;function r(a,s){let u={};for(let f=0;f<o.length;f+=1)u=ie(u,o[f]);return s!==void 0&&s&2&&(u=ie(u,Be(o,[Zr(a[1].valueComponentParams??{})]))),{props:u}}return l&&(e=Ft(l,r(i))),{c(){e&&A(e.$$.fragment),t=et()},m(a,s){e&&E(e,a,s),v(a,t,s),n=!0},p(a,s){if(s&2&&l!==(l=a[1].valueComponent)){if(e){ae();let u=e;m(u.$$.fragment,1,0,()=>{M(u,1)}),ue()}l?(e=Ft(l,r(a,s)),A(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}else if(l){let u=s&2?Be(o,[Zr(a[1].valueComponentParams??{})]):{};e.$set(u)}},i(a){n||(e&&d(e.$$.fragment,a),n=!0)},o(a){e&&m(e.$$.fragment,a),n=!1},d(a){a&&b(t),e&&M(e,a)}}}function c2(i){let e,t,n,o,l,r,a,s,u,f=i[1].selected&&k1(i),_=[u2,a2],g=[];function y(h,C){return h[1].valueComponent?0:1}return n=y(i,-1),o=g[n]=_[n](i),{c(){e=I("li"),f&&f.c(),t=H(),o.c(),c(e,"class","item"),c(e,"data-value",l=i[1].dataValue??i[1].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",r=i[1].ariaLabel??i[1].label??i[1].value.toString()),K(e,"mobile",i[0])},m(h,C){v(h,e,C),f&&f.m(e,null),p(e,t),g[n].m(e,null),a=!0,s||(u=[Te(e,"click",_t(i[4])),Te(e,"keydown",i[5])],s=!0)},p(h,[C]){h[1].selected?f?C&2&&d(f,1):(f=k1(h),f.c(),d(f,1),f.m(e,t)):f&&(ae(),m(f,1,1,()=>{f=null}),ue());let w=n;n=y(h,C),n===w?g[n].p(h,C):(ae(),m(g[w],1,1,()=>{g[w]=null}),ue(),o=g[n],o?o.p(h,C):(o=g[n]=_[n](h),o.c()),d(o,1),o.m(e,null)),(!a||C&2&&l!==(l=h[1].dataValue??h[1].value))&&c(e,"data-value",l),(!a||C&2&&r!==(r=h[1].ariaLabel??h[1].label??h[1].value.toString()))&&c(e,"aria-label",r),(!a||C&1)&&K(e,"mobile",h[0])},i(h){a||(d(f),d(o),a=!0)},o(h){m(f),m(o),a=!1},d(h){h&&b(e),f&&f.d(),g[n].d(),s=!1,ct(u)}}}function f2(i,e,t){let{isMobile:n=!1}=e,{item:o}=e,{selectItem:l}=e,r=(u,f)=>{Tr(u,()=>l(f))},a=()=>l(o.value),s=u=>r(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,l=u.selectItem)},[n,o,l,r,a,s]}var za=class extends B{constructor(e){super(),D(this,e,f2,c2,R,{isMobile:0,item:1,selectItem:2},s2)}},w1=za;function d2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(t,"fill-opacity",".72"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),ke(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function m2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Wa=class extends B{constructor(e){super(),D(this,e,m2,d2,R,{})}},C1=Wa;function p2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function _2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Ka=class extends B{constructor(e){super(),D(this,e,_2,p2,R,{})}},S1=Ka;function g2(i){let e,t;return e=new S1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.style=n[2]),o&1&&(l["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function h2(i){let e,t;return e=new C1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.style=n[2]),o&1&&(l["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function b2(i){let e,t,n,o,l=[h2,g2],r=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=et()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function v2(i,e,t){let n,{direction:o="left"}=e,l,r;return i.$$set=a=>{"direction"in a&&t(3,o=a.direction)},i.$$.update=()=>{i.$$.dirty&8&&(t(1,l=["up","down"].includes(o)),t(0,r=["right","down"].includes(o))),i.$$.dirty&1&&t(2,n=r?"transform: rotate(180deg);":void 0)},[r,l,n,o]}var ja=class extends B{constructor(e){super(),D(this,e,v2,b2,R,{direction:3})}},xo=ja;var Wn={"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 k2(i){Se(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 I1(i,e,t){let n=i.slice();return n[23]=e[t],n}function T1(i){let e,t;return e=new w1({props:{item:i[23],isMobile:i[2],selectItem:i[7]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&64&&(l.item=n[23]),o&4&&(l.isMobile=n[2]),o&128&&(l.selectItem=n[7]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function w2(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h;o=new xo({props:{direction:"left"}});let C=ht(i[6]),w=[];for(let T=0;T<C.length;T+=1)w[T]=T1(I1(i,C,T));let F=T=>m(w[T],1,1,()=>{w[T]=null});return{c(){e=I("div"),t=I("ul"),n=I("li"),A(o.$$.fragment),l=H(),r=I("div"),a=De(i[5]),s=H();for(let T=0;T<w.length;T+=1)w[T].c();c(n,"class","item header svelte-1mrc4z3"),c(n,"role","menuitem"),c(n,"tabindex","0"),c(n,"data-testid","return-to-settings-menu"),c(n,"aria-label",i[4]),K(n,"mobile",i[2]),c(t,"class","items"),c(t,"role","menu"),c(t,"style",u=i[13](i[9]?.clientHeight)),K(t,"mobile",i[2]),c(e,"class","sub-menu menu svelte-1mrc4z3"),c(e,"data-testid",f=`sub-menu-${i[1]}`),c(e,"style",_=`min-width: ${i[8]}px`),K(e,"desktop",!i[2]),K(e,"mobile",i[2])},m(T,k){v(T,e,k),p(e,t),p(t,n),E(o,n,null),p(n,l),p(n,r),p(r,a),i[18](n),p(t,s);for(let P=0;P<w.length;P+=1)w[P]&&w[P].m(t,null);i[19](t),g=!0,y||(h=[Te(n,"click",_t(function(){jt(i[3])&&i[3].apply(this,arguments)})),Te(t,"keydown",i[12])],y=!0)},p(T,[k]){if(i=T,(!g||k&32)&&xe(a,i[5]),(!g||k&16)&&c(n,"aria-label",i[4]),(!g||k&4)&&K(n,"mobile",i[2]),k&196){C=ht(i[6]);let P;for(P=0;P<C.length;P+=1){let j=I1(i,C,P);w[P]?(w[P].p(j,k),d(w[P],1)):(w[P]=T1(j),w[P].c(),d(w[P],1),w[P].m(t,null))}for(ae(),P=C.length;P<w.length;P+=1)F(P);ue()}(!g||k&512&&u!==(u=i[13](i[9]?.clientHeight)))&&c(t,"style",u),(!g||k&4)&&K(t,"mobile",i[2]),(!g||k&2&&f!==(f=`sub-menu-${i[1]}`))&&c(e,"data-testid",f),(!g||k&256&&_!==(_=`min-width: ${i[8]}px`))&&c(e,"style",_),(!g||k&4)&&K(e,"desktop",!i[2]),(!g||k&4)&&K(e,"mobile",i[2])},i(T){if(!g){d(o.$$.fragment,T);for(let k=0;k<C.length;k+=1)d(w[k]);g=!0}},o(T){m(o.$$.fragment,T),w=w.filter(Boolean);for(let k=0;k<w.length;k+=1)m(w[k]);g=!1},d(T){T&&b(e),M(o),i[18](null),ni(w,T),i[19](null),y=!1,ct(h)}}}function C2(i,e,t){let n,o,{id:l}=e,{isMobile:r=!1}=e,{playerControlsHeight:a=0}=e,{returnFromSubMenu:s}=e,{ariaLabelReturnFromSubMenu:u=z("aria_label_submenu_back")}=e,{title:f}=e,{listRef:_}=e,{closeSettingsMenu:g}=e,{backToMainSettings:y}=e,{itemIdReturnCase:h}=e,{items:C}=e,{selectItem:w}=e,{minWidth:F}=e,T=nt(),k=T.ui.isFullscreen;O(i,k,L=>t(21,o=L));let P=T.ui.playerSize;O(i,P,L=>t(20,n=L));let j,W=L=>{Vd(L,y,{itemIdReturnCase:h,id:l},g)},U=(L=0)=>r&&o?`max-height: ${Math.round(n.height*.6)}px`:r?"":`max-height: ${n.height-32-L-a}px; overflow: auto;`;function se(L){ve[L?"unshift":"push"](()=>{j=L,t(9,j)})}function de(L){ve[L?"unshift":"push"](()=>{_=L,t(0,_)})}return i.$$set=L=>{"id"in L&&t(1,l=L.id),"isMobile"in L&&t(2,r=L.isMobile),"playerControlsHeight"in L&&t(14,a=L.playerControlsHeight),"returnFromSubMenu"in L&&t(3,s=L.returnFromSubMenu),"ariaLabelReturnFromSubMenu"in L&&t(4,u=L.ariaLabelReturnFromSubMenu),"title"in L&&t(5,f=L.title),"listRef"in L&&t(0,_=L.listRef),"closeSettingsMenu"in L&&t(15,g=L.closeSettingsMenu),"backToMainSettings"in L&&t(16,y=L.backToMainSettings),"itemIdReturnCase"in L&&t(17,h=L.itemIdReturnCase),"items"in L&&t(6,C=L.items),"selectItem"in L&&t(7,w=L.selectItem),"minWidth"in L&&t(8,F=L.minWidth)},[_,l,r,s,u,f,C,w,F,j,k,P,W,U,a,g,y,h,se,de]}var Ga=class extends B{constructor(e){super(),D(this,e,C2,w2,R,{id:1,isMobile:2,playerControlsHeight:14,returnFromSubMenu:3,ariaLabelReturnFromSubMenu:4,title:5,listRef:0,closeSettingsMenu:15,backToMainSettings:16,itemIdReturnCase:17,items:6,selectItem:7,minWidth:8},k2)}},P1=Ga;var E1=require("@vkontakte/videoplayer-shared");function S2(i){let e,t,n,o;return{c(){e=I("img"),c(e,"class","icon"),oo(e.src,t=i[0])||c(e,"src",t),c(e,"aria-hidden","true")},m(l,r){v(l,e,r),n||(o=Te(e,"error",i[2]),n=!0)},p(l,r){r&1&&!oo(e.src,t=l[0])&&c(e,"src",t)},d(l){l&&b(e),n=!1,o()}}}function I2(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner"></div>',c(e,"class","icon icon-error-stub")},m(t,n){v(t,e,n)},p:be,d(t){t&&b(e)}}}function T2(i){let e;function t(l,r){return l[1]?I2:S2}let n=t(i,-1),o=n(i);return{c(){o.c(),e=et()},m(l,r){o.m(l,r),v(l,e,r)},p(l,[r]){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:be,o:be,d(l){l&&b(e),o.d(l)}}}function P2(i,e,t){let n,{icon:o}=e,l=()=>{t(1,n=!0)};return i.$$set=r=>{"icon"in r&&t(0,o=r.icon)},t(1,n=!1),[o,n,l]}var Ya=class extends B{constructor(e){super(),D(this,e,P2,T2,R,{icon:0})}},Wl=Ya;function E2(i){Se(i,"svelte-1ikfjte",".value.svelte-1ikfjte{position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis}")}function M2(i){let e,t,n;var o=i[8];function l(r,a){return{}}return o&&(e=Ft(o,l(i))),{c(){e&&A(e.$$.fragment),t=et()},m(r,a){e&&E(e,r,a),v(r,t,a),n=!0},p(r,a){if(a&256&&o!==(o=r[8])){if(e){ae();let s=e;m(s.$$.fragment,1,0,()=>{M(s,1)}),ue()}o?(e=Ft(o,l(r,a)),A(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&m(e.$$.fragment,r),n=!1},d(r){r&&b(t),e&&M(e,r)}}}function A2(i){let e,t;return e=new Wl({props:{icon:i[8]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&256&&(l.icon=n[8]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function L2(i){let e,t;return{c(){e=I("div"),t=De(i[6]),c(e,"class","value svelte-1ikfjte")},m(n,o){v(n,e,o),p(e,t)},p(n,o){o&64&&xe(t,n[6])},i:be,o:be,d(n){n&&b(e)}}}function V2(i){let e,t,n;var o=i[7];function l(r,a){return{}}return o&&(e=Ft(o,l(i))),{c(){e&&A(e.$$.fragment),t=et()},m(r,a){e&&E(e,r,a),v(r,t,a),n=!0},p(r,a){if(a&128&&o!==(o=r[7])){if(e){ae();let s=e;m(s.$$.fragment,1,0,()=>{M(s,1)}),ue()}o?(e=Ft(o,l(r,a)),A(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&m(e.$$.fragment,r),n=!1},d(r){r&&b(t),e&&M(e,r)}}}function R2(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h=[A2,M2],C=[];function w(P,j){return typeof P[8]=="string"?0:1}n=w(i,-1),o=C[n]=h[n](i);let F=[V2,L2],T=[];function k(P,j){return P[7]?0:1}return u=k(i,-1),f=T[u]=F[u](i),{c(){e=I("li"),t=I("div"),o.c(),l=H(),r=I("div"),a=De(i[4]),s=H(),f.c(),c(t,"class","icon-wrapper"),c(r,"class","label"),c(e,"class","item"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",i[5]),c(e,"aria-haspopup","true"),c(e,"data-testid",i[1]),K(e,"mobile",i[2])},m(P,j){v(P,e,j),p(e,t),C[n].m(t,null),p(e,l),p(e,r),p(r,a),p(e,s),T[u].m(e,null),i[11](e),_=!0,g||(y=[Te(e,"click",_t(function(){jt(i[3])&&i[3].apply(this,arguments)})),Te(e,"keydown",i[9])],g=!0)},p(P,[j]){i=P;let W=n;n=w(i,j),n===W?C[n].p(i,j):(ae(),m(C[W],1,1,()=>{C[W]=null}),ue(),o=C[n],o?o.p(i,j):(o=C[n]=h[n](i),o.c()),d(o,1),o.m(t,null)),(!_||j&16)&&xe(a,i[4]);let U=u;u=k(i,j),u===U?T[u].p(i,j):(ae(),m(T[U],1,1,()=>{T[U]=null}),ue(),f=T[u],f?f.p(i,j):(f=T[u]=F[u](i),f.c()),d(f,1),f.m(e,null)),(!_||j&32)&&c(e,"aria-label",i[5]),(!_||j&2)&&c(e,"data-testid",i[1]),(!_||j&4)&&K(e,"mobile",i[2])},i(P){_||(d(o),d(f),_=!0)},o(P){m(o),m(f),_=!1},d(P){P&&b(e),C[n].d(),T[u].d(),i[11](null),g=!1,ct(y)}}}function B2(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:l=E1.noop}=e,{getSubItemForFocus:r}=e,{label:a}=e,{ariaLabel:s}=e,{value:u}=e,{valueComponent:f=void 0}=e,{ref:_}=e,{icon:g}=e,y=C=>Ld(C,l,r);function h(C){ve[C?"unshift":"push"](()=>{_=C,t(0,_)})}return i.$$set=C=>{"id"in C&&t(1,n=C.id),"isMobile"in C&&t(2,o=C.isMobile),"onClick"in C&&t(3,l=C.onClick),"getSubItemForFocus"in C&&t(10,r=C.getSubItemForFocus),"label"in C&&t(4,a=C.label),"ariaLabel"in C&&t(5,s=C.ariaLabel),"value"in C&&t(6,u=C.value),"valueComponent"in C&&t(7,f=C.valueComponent),"ref"in C&&t(0,_=C.ref),"icon"in C&&t(8,g=C.icon)},[_,n,o,l,a,s,u,f,g,y,r,h]}var Qa=class extends B{constructor(e){super(),D(this,e,B2,R2,R,{id:1,isMobile:2,onClick:3,getSubItemForFocus:10,label:4,ariaLabel:5,value:6,valueComponent:7,ref:0,icon:8},E2)}},M1=Qa;var QS=require("@vkontakte/videoplayer-shared");function D2(i){Se(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 N2(i){let e,t,n=i[1].default,o=Ee(n,i,i[0],null);return{c(){e=I("div"),o&&o.c(),c(e,"class","pillow svelte-1oe0j8n")},m(l,r){v(l,e,r),o&&o.m(e,null),t=!0},p(l,[r]){o&&o.p&&(!t||r&1)&&Ae(o,n,l,l[0],t?Me(n,l[0],r,null):Le(l[0]),null)},i(l){t||(d(o,l),t=!0)},o(l){m(o,l),t=!1},d(l){l&&b(e),o&&o.d(l)}}}function O2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{"$$scope"in l&&t(0,o=l.$$scope)},[o,n]}var Za=class extends B{constructor(e){super(),D(this,e,O2,N2,R,{},D2)}},A1=Za;var Ar=require("@vkontakte/videoplayer-shared");function F2(i){let e,t,n,o,l=i[2].default,r=Ee(l,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=ie(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("path"),c(t,"fill","currentColor"),c(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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),ke(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ke(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function q2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Xa=class extends B{constructor(e){super(),D(this,e,q2,F2,R,{})}},L1=Xa;function H2(i){let e,t,n,o,l=i[2].default,r=Ee(l,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=ie(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("path"),c(t,"fill","currentColor"),c(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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),ke(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ke(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function U2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Ja=class extends B{constructor(e){super(),D(this,e,U2,H2,R,{})}},V1=Ja;function z2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","currentColor"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function W2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var $a=class extends B{constructor(e){super(),D(this,e,W2,z2,R,{})}},R1=$a;function K2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","currentColor"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function j2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var eu=class extends B{constructor(e){super(),D(this,e,j2,K2,R,{})}},Kl=eu;function G2(i){let e,t,n,o,l=i[2].default,r=Ee(l,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=ie(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("path"),c(t,"fill","currentColor"),c(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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),ke(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ke(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function x2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var tu=class extends B{constructor(e){super(),D(this,e,x2,G2,R,{})}},jl=tu;var Gl=i=>{switch(i){case Ar.VideoQuality.Q_720P:return R1;case Ar.VideoQuality.Q_1080P:return Kl;case Ar.VideoQuality.Q_1440P:return jl;case Ar.VideoQuality.Q_2160P:return L1;case Ar.VideoQuality.Q_4320P:return V1}};function Y2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function Q2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var iu=class extends B{constructor(e){super(),D(this,e,Q2,Y2,R,{})}},B1=iu;function Z2(i){let e,t,n,o,l=i[2].default,r=Ee(l,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=ie(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(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"),c(n,"class","_full"),ke(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ke(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function X2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var nu=class extends B{constructor(e){super(),D(this,e,X2,Z2,R,{})}},D1=nu;function J2(i){Se(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 $2(i){let e,t,n,o,l=i[1]&&N1(i);return n=new D1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=I("div"),l&&l.c(),t=H(),A(n.$$.fragment),c(e,"class","icon svelte-8t5w85"),c(e,"aria-hidden","true"),K(e,"triple",i[2])},m(r,a){v(r,e,a),l&&l.m(e,null),p(e,t),E(n,e,null),o=!0},p(r,a){r[1]?l?(l.p(r,a),a&2&&d(l,1)):(l=N1(r),l.c(),d(l,1),l.m(e,t)):l&&(ae(),m(l,1,1,()=>{l=null}),ue());let s={};a&2&&(s["data-testid"]=r[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&K(e,"triple",r[2])},i(r){o||(d(l),d(n.$$.fragment,r),o=!0)},o(r){m(l),m(n.$$.fragment,r),o=!1},d(r){r&&b(e),l&&l.d(),M(n)}}}function eb(i){let e,t;return e=new B1({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p:be,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function N1(i){let e,t;return e=new A1({props:{$$slots:{default:[tb]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&18&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function tb(i){let e,t,n;var o=i[1];function l(r,a){return{}}return o&&(e=Ft(o,l(i))),{c(){e&&A(e.$$.fragment),t=et()},m(r,a){e&&E(e,r,a),v(r,t,a),n=!0},p(r,a){if(a&2&&o!==(o=r[1])){if(e){ae();let s=e;m(s.$$.fragment,1,0,()=>{M(s,1)}),ue()}o?(e=Ft(o,l(r,a)),A(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&m(e.$$.fragment,r),n=!1},d(r){r&&b(t),e&&M(e,r)}}}function ib(i){let e,t,n,o,l=[eb,$2],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=et()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function nb(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:l=void 0}=e,r;return i.$$set=a=>{"isMobile"in a&&t(0,o=a.isMobile),"currentQuality"in a&&t(3,l=a.currentQuality)},i.$$.update=()=>{i.$$.dirty&8&&t(1,n=Gl(l)),i.$$.dirty&2&&t(2,r=!!n&&[Kl,jl].includes(n))},[o,n,r,l]}var ou=class extends B{constructor(e){super(),D(this,e,nb,ib,R,{isMobile:0,currentQuality:3},J2)}},xl=ou;function ob(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function rb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var ru=class extends B{constructor(e){super(),D(this,e,rb,ob,R,{})}},Yl=ru;function lb(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),ke(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function sb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var lu=class extends B{constructor(e){super(),D(this,e,sb,lb,R,{})}},O1=lu;function ab(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),ke(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function ub(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var su=class extends B{constructor(e){super(),D(this,e,ub,ab,R,{})}},F1=su;function cb(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,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 f=0;f<s.length;f+=1)u=ie(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(o,"fill-rule","nonzero"),c(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"),c(t,"fill","none"),c(t,"fill-rule","evenodd"),ke(e,u)},m(f,_){v(f,e,_),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),l=!0},p(f,[_]){a&&a.p&&(!l||_&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],_,null):Le(f[1]),null),ke(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},_&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function fb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var au=class extends B{constructor(e){super(),D(this,e,fb,cb,R,{})}},q1=au;function db(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function mb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var uu=class extends B{constructor(e){super(),D(this,e,mb,db,R,{})}},H1=uu;function pb(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),ke(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function _b(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var cu=class extends B{constructor(e){super(),D(this,e,_b,pb,R,{})}},fu=cu;function gb(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function hb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var du=class extends B{constructor(e){super(),D(this,e,hb,gb,R,{})}},U1=du;function bb(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),ke(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function vb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var mu=class extends B{constructor(e){super(),D(this,e,vb,bb,R,{})}},z1=mu;var AI=require("@vkontakte/videoplayer-core");function yb(i){Se(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 W1(i){let e,t,n;var o=i[3];function l(r,a){return{}}return o&&(t=Ft(o,l(i))),{c(){e=I("div"),t&&A(t.$$.fragment),c(e,"class","quality-icon svelte-1a7qwh6")},m(r,a){v(r,e,a),t&&E(t,e,null),n=!0},p(r,a){if(a&8&&o!==(o=r[3])){if(t){ae();let s=t;m(s.$$.fragment,1,0,()=>{M(s,1)}),ue()}o?(t=Ft(o,l(r,a)),A(t.$$.fragment),d(t.$$.fragment,1),E(t,e,null)):t=null}},i(r){n||(t&&d(t.$$.fragment,r),n=!0)},o(r){t&&m(t.$$.fragment,r),n=!1},d(r){r&&b(e),t&&M(t)}}}function kb(i){let e,t,n,o,l,r=i[3]&&!i[1]&&W1(i);return{c(){e=I("div"),t=I("span"),n=De(i[0]),o=H(),r&&r.c(),c(t,"class","svelte-1a7qwh6"),c(e,"class","menu-item-value svelte-1a7qwh6"),K(e,"sub",i[2])},m(a,s){v(a,e,s),p(e,t),p(t,n),p(e,o),r&&r.m(e,null),l=!0},p(a,[s]){(!l||s&1)&&xe(n,a[0]),a[3]&&!a[1]?r?(r.p(a,s),s&10&&d(r,1)):(r=W1(a),r.c(),d(r,1),r.m(e,null)):r&&(ae(),m(r,1,1,()=>{r=null}),ue()),(!l||s&4)&&K(e,"sub",a[2])},i(a){l||(d(r),l=!0)},o(a){m(r),l=!1},d(a){a&&b(e),r&&r.d()}}}function wb(i,e,t){let n,{quality:o}=e,{label:l}=e,{isMobile:r}=e,{isSubCase:a=!1}=e;return i.$$set=s=>{"quality"in s&&t(4,o=s.quality),"label"in s&&t(0,l=s.label),"isMobile"in s&&t(1,r=s.isMobile),"isSubCase"in s&&t(2,a=s.isSubCase)},i.$$.update=()=>{i.$$.dirty&16&&t(3,n=Gl(o))},[l,r,a,n,o]}var pu=class extends B{constructor(e){super(),D(this,e,wb,kb,R,{quality:4,label:0,isMobile:1,isSubCase:2},yb)}},Ql=pu;var K1=require("@vkontakte/videoplayer-core");var Zl=(i,e,t)=>{if(!i)return"...";let n=e.find(l=>l.value===i),o=n?n.displayValue:i;return t?i===K1.VideoQuality.INVARIANT?z("auto_quality_invariant"):z("auto_quality",{actual:o}):o};function Cb(i){Se(i,"svelte-vk2gx4",".menu-item-value-wrapper.svelte-vk2gx4{right:-22px;position:relative}")}function Sb(i){let e,t,n;return t=new Ql({props:{quality:i[0],label:i[1],isMobile:i[2]}}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","menu-item-value-wrapper svelte-vk2gx4")},m(o,l){v(o,e,l),E(t,e,null),n=!0},p(o,[l]){let r={};l&1&&(r.quality=o[0]),l&2&&(r.label=o[1]),l&4&&(r.isMobile=o[2]),t.$set(r)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function Ib(i,e,t){let n,o,l,r,a=nt(),s=a.state.currentQuality$;O(i,s,y=>t(0,l=y));let u=a.state.availableQualities$;O(i,u,y=>t(8,o=y));let f=a.state.isAutoQualityEnabled$;O(i,f,y=>t(7,n=y));let _=a.ui.isMobile;O(i,_,y=>t(2,r=y));let g;return i.$$.update=()=>{i.$$.dirty&385&&t(1,g=Zl(l,o,n))},[l,g,r,s,u,f,_,n,o]}var _u=class extends B{constructor(e){super(),D(this,e,Ib,Sb,R,{},Cb)}},j1=_u;var gu=require("@vkontakte/videoplayer-shared");function Tb(i){let e,t,n;var o=i[4];function l(r,a){return{}}return o&&(e=Ft(o,l(i))),{c(){e&&A(e.$$.fragment),t=et()},m(r,a){e&&E(e,r,a),v(r,t,a),n=!0},p(r,a){if(a&16&&o!==(o=r[4])){if(e){ae();let s=e;m(s.$$.fragment,1,0,()=>{M(s,1)}),ue()}o?(e=Ft(o,l(r,a)),A(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&m(e.$$.fragment,r),n=!1},d(r){r&&b(t),e&&M(e,r)}}}function Pb(i){let e;function t(l,r){return l[5]?Mb:Eb}let n=t(i,-1),o=n(i);return{c(){o.c(),e=et()},m(l,r){o.m(l,r),v(l,e,r)},p(l,r){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:be,o:be,d(l){l&&b(e),o.d(l)}}}function Eb(i){let e,t,n,o;return{c(){e=I("img"),c(e,"class","icon"),oo(e.src,t=i[4])||c(e,"src",t),c(e,"aria-hidden","true")},m(l,r){v(l,e,r),n||(o=Te(e,"error",i[6]),n=!0)},p(l,r){r&16&&!oo(e.src,t=l[4])&&c(e,"src",t)},d(l){l&&b(e),n=!1,o()}}}function Mb(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner"></div>',c(e,"class","icon icon-error-stub")},m(t,n){v(t,e,n)},p:be,d(t){t&&b(e)}}}function Ab(i){let e,t,n,o,l,r,a,s,u,f,_,g=[Pb,Tb],y=[];function h(C,w){return typeof C[4]=="string"?0:1}return n=h(i,-1),o=y[n]=g[n](i),{c(){e=I("li"),t=I("div"),o.c(),l=H(),r=I("div"),a=De(i[2]),c(t,"class","icon-wrapper"),c(r,"class","label"),c(e,"class","item"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[3]??i[2]),c(e,"data-testid",i[0]),K(e,"mobile",i[1])},m(C,w){v(C,e,w),p(e,t),y[n].m(t,null),p(e,l),p(e,r),p(r,a),u=!0,f||(_=[Te(e,"click",_t(i[7])),Te(e,"keydown",i[8])],f=!0)},p(C,[w]){let F=n;n=h(C,w),n===F?y[n].p(C,w):(ae(),m(y[F],1,1,()=>{y[F]=null}),ue(),o=y[n],o?o.p(C,w):(o=y[n]=g[n](C),o.c()),d(o,1),o.m(t,null)),(!u||w&4)&&xe(a,C[2]),(!u||w&12&&s!==(s=C[3]??C[2]))&&c(e,"aria-label",s),(!u||w&1)&&c(e,"data-testid",C[0]),(!u||w&2)&&K(e,"mobile",C[1])},i(C){u||(d(o),u=!0)},o(C){m(o),u=!1},d(C){C&&b(e),y[n].d(),f=!1,ct(_)}}}function Lb(i,e,t){let n,{id:o}=e,{isMobile:l=!1}=e,{onClick:r=gu.noop}=e,{closeSettings:a=gu.noop}=e,{label:s}=e,{ariaLabel:u}=e,{icon:f}=e,_=()=>{t(5,n=!0)},g=()=>{r(),a()},y=h=>{Tr(h,()=>g())};return i.$$set=h=>{"id"in h&&t(0,o=h.id),"isMobile"in h&&t(1,l=h.isMobile),"onClick"in h&&t(9,r=h.onClick),"closeSettings"in h&&t(10,a=h.closeSettings),"label"in h&&t(2,s=h.label),"ariaLabel"in h&&t(3,u=h.ariaLabel),"icon"in h&&t(4,f=h.icon)},t(5,n=!1),[o,l,s,u,f,n,_,g,y,r,a]}var hu=class extends B{constructor(e){super(),D(this,e,Lb,Ab,R,{id:0,isMobile:1,onClick:9,closeSettings:10,label:2,ariaLabel:3,icon:4})}},G1=hu;var X1=require("@vkontakte/videoplayer-shared");function Vb(i){Se(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 Rb(i){let e,t,n,o;return{c(){e=I("div"),t=I("div"),n=H(),o=I("div"),c(t,"class","toggle svelte-17wbjko"),K(t,"on",i[0]),c(o,"class","toggle-label svelte-17wbjko"),c(e,"class","toggle_wrap svelte-17wbjko")},m(l,r){v(l,e,r),p(e,t),p(e,n),p(e,o)},p(l,[r]){r&1&&K(t,"on",l[0])},i:be,o:be,d(l){l&&b(e)}}}function Bb(i,e,t){let{enabled:n=!1}=e;return i.$$set=o=>{"enabled"in o&&t(0,n=o.enabled)},[n]}var bu=class extends B{constructor(e){super(),D(this,e,Bb,Rb,R,{enabled:0},Vb)}},x1=bu;var Z1=require("@vkontakte/videoplayer-shared");function Db(i){let e,t,n=i[4].default,o=Ee(n,i,i[3],null);return{c(){e=I("div"),o&&o.c(),c(e,"class","overlay")},m(l,r){v(l,e,r),o&&o.m(e,null),i[5](e),t=!0},p(l,[r]){o&&o.p&&(!t||r&8)&&Ae(o,n,l,l[3],t?Me(n,l[3],r,null):Le(l[3]),null)},i(l){t||(d(o,l),t=!0)},o(l){m(o,l),t=!1},d(l){l&&b(e),o&&o.d(l),i[5](null)}}}function Nb(i,e,t){let n,{$$slots:o={},$$scope:l}=e,a=nt().ui.overlayContainer$;O(i,a,g=>t(2,n=g));let s,u=g=>{!g||!s||!g.contains(s)||g.removeChild(s)},f=g=>{!g||!s||g.contains(s)||g.appendChild(s)};St(()=>(f(n),()=>u(n)));function _(g){ve[g?"unshift":"push"](()=>{s=g,t(0,s)})}return i.$$set=g=>{"$$scope"in g&&t(3,l=g.$$scope)},i.$$.update=()=>{i.$$.dirty&4&&f(n)},[s,a,n,l,o,_]}var vu=class extends B{constructor(e){super(),D(this,e,Nb,Db,R,{})}},Y1=vu;function Ob(i){Se(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 Q1(i){let e,t;return e=new Y1({props:{$$slots:{default:[Fb]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&16777445&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Fb(i){let e,t,n,o,l;return{c(){e=I("div"),t=I("div"),n=De(i[2]),o=H(),l=I("div"),c(t,"class","content svelte-1jbbzcj"),c(l,"class","tooltip-pointer svelte-1jbbzcj"),c(l,"style",i[7]),c(e,"class","tooltip svelte-1jbbzcj"),c(e,"style",i[6]),K(e,"active",i[0])},m(r,a){v(r,e,a),p(e,t),p(t,n),p(e,o),p(e,l),i[23](e)},p(r,a){a[0]&4&&xe(n,r[2]),a[0]&128&&c(l,"style",r[7]),a[0]&64&&c(e,"style",r[6]),a[0]&1&&K(e,"active",r[0])},d(r){r&&b(e),i[23](null)}}}function qb(i){let e,t,n,o,l,r,a=i[21].default,s=Ee(a,i,i[24],null),u=i[2]&&!i[1]&&Q1(i);return{c(){e=I("div"),s&&s.c(),t=H(),u&&u.c(),n=et(),c(e,"class","tooltip-wrapper svelte-1jbbzcj"),K(e,"full-width",i[3])},m(f,_){v(f,e,_),s&&s.m(e,null),i[22](e),v(f,t,_),u&&u.m(f,_),v(f,n,_),o=!0,l||(r=[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])],l=!0)},p(f,_){s&&s.p&&(!o||_[0]&16777216)&&Ae(s,a,f,f[24],o?Me(a,f[24],_,null):Le(f[24]),null),(!o||_[0]&8)&&K(e,"full-width",f[3]),f[2]&&!f[1]?u?(u.p(f,_),_[0]&6&&d(u,1)):(u=Q1(f),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(ae(),m(u,1,1,()=>{u=null}),ue())},i(f){o||(d(s,f),d(u),o=!0)},o(f){m(s,f),m(u),o=!1},d(f){f&&(b(e),b(t),b(n)),s&&s.d(f),i[22](null),u&&u.d(f),l=!1,ct(r)}}}var ao=5;function Hb(i,e,t){let n,o,{$$slots:l={},$$scope:r}=e,{isMobile:a=!1}=e,{content:s=""}=e,{active:u=!1}=e,{translateX:f=0}=e,{translateY:_=0}=e,{isFullWidthWrapper:g=!1}=e,{maxTooltipWidth:y=void 0}=e,{placement:h="top"}=e,{onVisibilityChange:C=Z1.noop}=e,w,F,T,k=0,P=0,j=0,W=0,U=qt(),se=nt(),de=se.ui.playerSize;O(i,de,x=>t(27,o=x));let L=se.ui.overlayContainer$;O(i,L,x=>t(26,n=x));let ne=se.getLogger().createComponentLog("Tooltip component"),oe=()=>{if(!n||!F||!w)return;t(18,P=ao);let x=n.getBoundingClientRect(),fe=w.getBoundingClientRect(),Ye=fe.width,_e=F.clientWidth,ze=o.width,$e=(Ye-_e)/2,rt=fe.left+f-x.left,Je=rt+$e,Ze=fe.top+_-x.top,He=_e/2-ao,J=Je<8,je=Je+_e>ze-8;J&&(Je=8,He=rt+fe.width/2-2.5*ao),je&&(Je=ze-8-_e,He=fe.left-x.left+fe.width/2-Je-ao),t(19,j=Je),t(20,W=Ze),t(17,k=He)},Z=()=>{!n||!F||!w||t(18,P=-ao)},Pe=()=>{if(!n||!F||!w)return;t(17,k=ao);let x=n.getBoundingClientRect(),fe=w.getBoundingClientRect(),Ye=fe.height,_e=F.clientHeight,ze=(Ye-_e)/2+_e,$e=fe.left+f-x.left-F.clientWidth,rt=2,Je=$e-ao;Je<8&&(Je=8);let He=fe.top+_-x.top+ze,J=rt-ze/2,je=rt-ao;t(19,j=Je),t(20,W=He),t(18,P=J),t(17,k=je)},q=()=>{!n||!F||!w||t(17,k=-ao)},N=()=>{switch(h){case"top":oe();break;case"bottom":Z();break;case"left":Pe();break;default:q()}},le=()=>{try{if(!n||!w)return;N(),t(0,u=!0)}catch(x){ne({message:String(x)})}},Y=()=>{t(0,u=!1)},re=()=>{F&&(T||(T=window.setTimeout(le,U.controls.hideTimeoutTooltips)),u&&le())},ce=()=>{Y(),window.clearTimeout(T),T=void 0},qe=(x,fe)=>{let Ye="";switch(h){case"top":Ye=`transform: translate(${x}px, ${fe}px);`;break;case"bottom":Ye=`transform: translate(${x}px, ${fe}px); top: auto; bottom: 100%;`;break;case"left":Ye=`transform: translate(${x}px, ${fe}px); left: 0; right: auto;`;break;default:Ye=`transform: translate(${x}px, ${fe}px);`}return Ye+=` max-width: ${y===void 0?"auto":`${y}px`};`,Ye},Ve=(x,fe)=>{let Ye="";switch(h){case"top":Ye=`transform: translate(${x}px, ${fe}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ye=`transform: translate(${x}px, ${fe}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ye=`transform: translate(${x}px, ${fe}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ye=`transform: translate(${x}px, ${fe}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ye},we,Re;St(N),Hn(()=>window.clearTimeout(T));function Ue(x){ve[x?"unshift":"push"](()=>{w=x,t(4,w)})}function Ge(x){ve[x?"unshift":"push"](()=>{F=x,t(5,F)})}return i.$$set=x=>{"isMobile"in x&&t(1,a=x.isMobile),"content"in x&&t(2,s=x.content),"active"in x&&t(0,u=x.active),"translateX"in x&&t(12,f=x.translateX),"translateY"in x&&t(13,_=x.translateY),"isFullWidthWrapper"in x&&t(3,g=x.isFullWidthWrapper),"maxTooltipWidth"in x&&t(14,y=x.maxTooltipWidth),"placement"in x&&t(15,h=x.placement),"onVisibilityChange"in x&&t(16,C=x.onVisibilityChange),"$$scope"in x&&t(24,r=x.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&65537&&C(u),i.$$.dirty[0]&1966080&&(t(6,we=qe(j,W)),t(7,Re=Ve(k,P)))},[u,a,s,g,w,F,we,Re,de,L,re,ce,f,_,y,h,C,k,P,j,W,l,Ue,Ge,r]}var yu=class extends B{constructor(e){super(),D(this,e,Hb,qb,R,{isMobile:1,content:2,active:0,translateX:12,translateY:13,isFullWidthWrapper:3,maxTooltipWidth:14,placement:15,onVisibilityChange:16},Ob,[-1,-1])}},Lr=yu;function Ub(i){let e,t,n;var o=i[4];function l(r,a){return{}}return o&&(e=Ft(o,l(i))),{c(){e&&A(e.$$.fragment),t=et()},m(r,a){e&&E(e,r,a),v(r,t,a),n=!0},p(r,a){if(a&16&&o!==(o=r[4])){if(e){ae();let s=e;m(s.$$.fragment,1,0,()=>{M(s,1)}),ue()}o?(e=Ft(o,l(r,a)),A(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&m(e.$$.fragment,r),n=!1},d(r){r&&b(t),e&&M(e,r)}}}function zb(i){let e,t;return e=new Wl({props:{icon:i[4]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.icon=n[4]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Wb(i){let e,t,n,o,l,r,a,s,u,f,_=[zb,Ub],g=[];function y(h,C){return typeof h[4]=="string"?0:1}return n=y(i,-1),o=g[n]=_[n](i),u=new x1({props:{enabled:i[5]}}),{c(){e=I("div"),t=I("div"),o.c(),l=H(),r=I("div"),a=De(i[2]),s=H(),A(u.$$.fragment),c(t,"class","icon-wrapper"),c(r,"class","label"),c(e,"class","switch-wrapper"),K(e,"mobile",i[1])},m(h,C){v(h,e,C),p(e,t),g[n].m(t,null),p(e,l),p(e,r),p(r,a),p(e,s),E(u,e,null),f=!0},p(h,C){let w=n;n=y(h,C),n===w?g[n].p(h,C):(ae(),m(g[w],1,1,()=>{g[w]=null}),ue(),o=g[n],o?o.p(h,C):(o=g[n]=_[n](h),o.c()),d(o,1),o.m(t,null)),(!f||C&4)&&xe(a,h[2]);let F={};C&32&&(F.enabled=h[5]),u.$set(F),(!f||C&2)&&K(e,"mobile",h[1])},i(h){f||(d(o),d(u.$$.fragment,h),f=!0)},o(h){m(o),m(u.$$.fragment,h),f=!1},d(h){h&&b(e),g[n].d(),M(u)}}}function Kb(i){let e,t,n,o,l,r;return t=new Lr({props:{content:i[6],isMobile:i[1],placement:"left",translateX:10,isFullWidthWrapper:!0,maxTooltipWidth:i[7],$$slots:{default:[Wb]},$$scope:{ctx:i}}}),{c(){e=I("li"),A(t.$$.fragment),c(e,"class","item switch-item"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",n=i[3]??i[2]),c(e,"data-testid",i[0]),K(e,"mobile",i[1])},m(a,s){v(a,e,s),E(t,e,null),o=!0,l||(r=[Te(e,"click",_t(i[9])),Te(e,"keydown",i[8])],l=!0)},p(a,[s]){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=a[3]??a[2]))&&c(e,"aria-label",n),(!o||s&1)&&c(e,"data-testid",a[0]),(!o||s&2)&&K(e,"mobile",a[1])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){m(t.$$.fragment,a),o=!1},d(a){a&&b(e),M(t),l=!1,ct(r)}}}function jb(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:l=X1.noop}=e,{label:r}=e,{ariaLabel:a}=e,{icon:s}=e,{enabled:u=!1}=e,{tooltipText:f=void 0}=e,{maxTooltipWidth:_=void 0}=e,g=h=>{Rd(h,u,C=>l(C))},y=()=>l(!u);return i.$$set=h=>{"id"in h&&t(0,n=h.id),"isMobile"in h&&t(1,o=h.isMobile),"onClick"in h&&t(10,l=h.onClick),"label"in h&&t(2,r=h.label),"ariaLabel"in h&&t(3,a=h.ariaLabel),"icon"in h&&t(4,s=h.icon),"enabled"in h&&t(5,u=h.enabled),"tooltipText"in h&&t(6,f=h.tooltipText),"maxTooltipWidth"in h&&t(7,_=h.maxTooltipWidth)},[n,o,r,a,s,u,f,_,g,y,l]}var ku=class extends B{constructor(e){super(),D(this,e,jb,Kb,R,{id:0,isMobile:1,onClick:10,label:2,ariaLabel:3,icon:4,enabled:5,tooltipText:6,maxTooltipWidth:7})}},J1=ku;var sm=require("@vkontakte/videoplayer-shared");function Gb(i){Se(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 em(i,e,t){let n=i.slice();return n[89]=e[t],n[90]=e,n[91]=t,n}function tm(i,e,t){let n=i.slice();return n[89]=e[t],n[92]=e,n[93]=t,n}function im(i){let e,t,n,o,l,r,a,s=i[5]&&nm(i),u=ht(i[4]),f=[];for(let g=0;g<u.length;g+=1)f[g]=om(tm(i,u,g));let _=g=>m(f[g],1,1,()=>{f[g]=null});return{c(){e=I("div"),s&&s.c(),t=H(),n=I("ul");for(let g=0;g<f.length;g+=1)f[g].c();c(n,"class","items"),c(n,"role","menu"),c(n,"style",o=i[34]()),K(n,"mobile",i[5]),c(e,"class","settings-menu menu svelte-1t2c6ej"),c(e,"data-testid","settings-menu"),K(e,"desktop",!i[5]),K(e,"mobile",i[5]),K(e,"hidden",!i[6])},m(g,y){v(g,e,y),s&&s.m(e,null),p(e,t),p(e,n);for(let h=0;h<f.length;h+=1)f[h]&&f[h].m(n,null);i[68](n),l=!0,r||(a=[Te(e,"keydown",i[36]),Te(e,"mouseenter",i[32]),Te(e,"mouseleave",i[33])],r=!0)},p(g,y){if(g[5]?s?s.p(g,y):(s=nm(g),s.c(),s.m(e,t)):s&&(s.d(1),s=null),y[0]&1610612788){u=ht(g[4]);let h;for(h=0;h<u.length;h+=1){let C=tm(g,u,h);f[h]?(f[h].p(C,y),d(f[h],1)):(f[h]=om(C),f[h].c(),d(f[h],1),f[h].m(n,null))}for(ae(),h=u.length;h<f.length;h+=1)_(h);ue()}(!l||y[0]&32)&&K(n,"mobile",g[5]),(!l||y[0]&32)&&K(e,"desktop",!g[5]),(!l||y[0]&32)&&K(e,"mobile",g[5]),(!l||y[0]&64)&&K(e,"hidden",!g[6])},i(g){if(!l){for(let y=0;y<u.length;y+=1)d(f[y]);l=!0}},o(g){f=f.filter(Boolean);for(let y=0;y<f.length;y+=1)m(f[y]);l=!1},d(g){g&&b(e),s&&s.d(),ni(f,g),i[68](null),r=!1,ct(a)}}}function nm(i){let e,t,n,o,l,r;return{c(){e=I("div"),t=I("div"),t.textContent=`${z("submenu_settings")}`,n=H(),o=I("div"),c(o,"class","close svelte-1t2c6ej"),c(e,"class","item header svelte-1t2c6ej"),K(e,"mobile",i[5])},m(a,s){v(a,e,s),p(e,t),p(e,n),p(e,o),l||(r=Te(o,"click",_t(i[30])),l=!0)},p(a,s){s[0]&32&&K(e,"mobile",a[5])},d(a){a&&b(e),l=!1,r()}}}function xb(i){let e,t;return e=new J1({props:{isMobile:i[5],id:i[89].id,onClick:i[89].onClick,icon:i[89].icon,label:i[89].label,ariaLabel:i[89].ariaLabel,enabled:i[89].enabled,tooltipText:i[89].tooltipText,maxTooltipWidth:i[89].maxTooltipWidth}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&32&&(l.isMobile=n[5]),o[0]&16&&(l.id=n[89].id),o[0]&16&&(l.onClick=n[89].onClick),o[0]&16&&(l.icon=n[89].icon),o[0]&16&&(l.label=n[89].label),o[0]&16&&(l.ariaLabel=n[89].ariaLabel),o[0]&16&&(l.enabled=n[89].enabled),o[0]&16&&(l.tooltipText=n[89].tooltipText),o[0]&16&&(l.maxTooltipWidth=n[89].maxTooltipWidth),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Yb(i){let e,t;return e=new G1({props:{isMobile:i[5],id:i[89].id,onClick:i[89].onClick,icon:i[89].icon,label:i[89].label,ariaLabel:i[89].ariaLabel,closeSettings:i[30]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&32&&(l.isMobile=n[5]),o[0]&16&&(l.id=n[89].id),o[0]&16&&(l.onClick=n[89].onClick),o[0]&16&&(l.icon=n[89].icon),o[0]&16&&(l.label=n[89].label),o[0]&16&&(l.ariaLabel=n[89].ariaLabel),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Qb(i){let e,t,n;function o(){return i[66](i[89])}function l(a){i[67](a,i[89])}let r={isMobile:i[5],id:i[89].id,icon:i[89].icon,label:i[89].label,ariaLabel:i[89].ariaLabel,value:i[89].value,valueComponent:i[89].valueComponent,onClick:o,getSubItemForFocus:i[89].getSubItemForFocus};return i[2][i[89].id]!==void 0&&(r.ref=i[2][i[89].id]),e=new M1({props:r}),ve.push(()=>Oe(e,"ref",l)),{c(){A(e.$$.fragment)},m(a,s){E(e,a,s),n=!0},p(a,s){i=a;let u={};s[0]&32&&(u.isMobile=i[5]),s[0]&16&&(u.id=i[89].id),s[0]&16&&(u.icon=i[89].icon),s[0]&16&&(u.label=i[89].label),s[0]&16&&(u.ariaLabel=i[89].ariaLabel),s[0]&16&&(u.value=i[89].value),s[0]&16&&(u.valueComponent=i[89].valueComponent),s[0]&16&&(u.onClick=o),s[0]&16&&(u.getSubItemForFocus=i[89].getSubItemForFocus),!t&&s[0]&20&&(t=!0,u.ref=i[2][i[89].id],Ne(()=>t=!1)),e.$set(u)},i(a){n||(d(e.$$.fragment,a),n=!0)},o(a){m(e.$$.fragment,a),n=!1},d(a){M(e,a)}}}function om(i){let e,t,n,o,l=[Qb,Yb,xb],r=[];function a(s,u){return s[89].type==="OPEN_SUB_MENU"?0:s[89].type==="CLICK"?1:s[89].type==="SWITCH"?2:-1}return~(e=a(i,[-1,-1,-1,-1]))&&(t=r[e]=l[e](i)),{c(){t&&t.c(),n=et()},m(s,u){~e&&r[e].m(s,u),v(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?~e&&r[e].p(s,u):(t&&(ae(),m(r[f],1,1,()=>{r[f]=null}),ue()),~e?(t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n)):t=null)},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),~e&&r[e].d(s)}}}function rm(i){let e,t,n;function o(r){i[69](r,i[89])}let l={isMobile:i[5],playerControlsHeight:i[1],returnFromSubMenu:i[89].subMenu.returnFromSubMenu??i[31],id:i[89].id,title:i[89].subMenu.title,closeSettingsMenu:i[89].subMenu.closeSettingsMenu,backToMainSettings:i[89].subMenu.backToMainSettings,itemIdReturnCase:i[89].subMenu.itemIdReturnCase,items:i[89].subMenu.items,selectItem:i[89].subMenu.selectItem,minWidth:i[89].subMenu.minWidth??137};return i[3][i[89].id]!==void 0&&(l.listRef=i[3][i[89].id]),e=new P1({props:l}),ve.push(()=>Oe(e,"listRef",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){i=r;let s={};a[0]&32&&(s.isMobile=i[5]),a[0]&2&&(s.playerControlsHeight=i[1]),a[0]&16&&(s.returnFromSubMenu=i[89].subMenu.returnFromSubMenu??i[31]),a[0]&16&&(s.id=i[89].id),a[0]&16&&(s.title=i[89].subMenu.title),a[0]&16&&(s.closeSettingsMenu=i[89].subMenu.closeSettingsMenu),a[0]&16&&(s.backToMainSettings=i[89].subMenu.backToMainSettings),a[0]&16&&(s.itemIdReturnCase=i[89].subMenu.itemIdReturnCase),a[0]&16&&(s.items=i[89].subMenu.items),a[0]&16&&(s.selectItem=i[89].subMenu.selectItem),a[0]&16&&(s.minWidth=i[89].subMenu.minWidth??137),!t&&a[0]&24&&(t=!0,s.listRef=i[3][i[89].id],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function lm(i){let e,t,n=i[89].type==="OPEN_SUB_MENU"&&i[89].subMenu?.show&&rm(i);return{c(){n&&n.c(),e=et()},m(o,l){n&&n.m(o,l),v(o,e,l),t=!0},p(o,l){o[89].type==="OPEN_SUB_MENU"&&o[89].subMenu?.show?n?(n.p(o,l),l[0]&16&&d(n,1)):(n=rm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),m(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function Zb(i){let e,t,n,o=i[7]&&im(i),l=ht(i[4]),r=[];for(let s=0;s<l.length;s+=1)r[s]=lm(em(i,l,s));let a=s=>m(r[s],1,1,()=>{r[s]=null});return{c(){e=I("div"),o&&o.c(),t=H();for(let s=0;s<r.length;s+=1)r[s].c();c(e,"class","settings-menu-container svelte-1t2c6ej"),K(e,"hidden",!i[7]),K(e,"mobile",i[5])},m(s,u){v(s,e,u),o&&o.m(e,null),p(e,t);for(let f=0;f<r.length;f+=1)r[f]&&r[f].m(e,null);n=!0},p(s,u){if(s[7]?o?(o.p(s,u),u[0]&128&&d(o,1)):(o=im(s),o.c(),d(o,1),o.m(e,t)):o&&(ae(),m(o,1,1,()=>{o=null}),ue()),u[0]&58|u[1]&1){l=ht(s[4]);let f;for(f=0;f<l.length;f+=1){let _=em(s,l,f);r[f]?(r[f].p(_,u),d(r[f],1)):(r[f]=lm(_),r[f].c(),d(r[f],1),r[f].m(e,null))}for(ae(),f=l.length;f<r.length;f+=1)a(f);ue()}(!n||u[0]&128)&&K(e,"hidden",!s[7]),(!n||u[0]&32)&&K(e,"mobile",s[5])},i(s){if(!n){d(o);for(let u=0;u<l.length;u+=1)d(r[u]);n=!0}},o(s){m(o),r=r.filter(Boolean);for(let u=0;u<r.length;u+=1)m(r[u]);n=!1},d(s){s&&b(e),o&&o.d(),ni(r,s)}}}function Xb(i,e,t){let n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,T,k,P,j,W,U,se,de,L,{ref:ne=void 0}=e,{supportLink:oe}=e,{playerControlsHeight:Z=0}=e,{returnFocus:Pe}=e,q=nt(),N=qt(),le=q.state.audioStream$;O(i,le,he=>t(57,w=he));let Y=q.state.availableAudioStreams$;O(i,Y,he=>t(56,C=he));let re=q.state.currentQuality$;O(i,re,he=>t(60,k=he));let ce=q.state.availableQualities$;O(i,ce,he=>t(58,F=he));let qe=q.state.autoQualityLimitingAvailable$;O(i,qe,he=>t(64,U=he));let Ve=q.state.isAutoQualityEnabled$;O(i,Ve,he=>t(61,P=he));let we=q.state.currentPlaybackRate$;O(i,we,he=>t(55,h=he));let Re=q.state.availablePlaybackRates$;O(i,Re,he=>t(54,y=he));let Ue=q.state.currentSubtitle$;O(i,Ue,he=>t(53,g=he));let Ge=q.state.availableSubtitlesList$;O(i,Ge,he=>t(51,f=he));let x=q.state.canDownload,fe=q.state.hasMpegSources$;O(i,fe,he=>t(65,se=he));let Ye=q.ui.settingsMenuVisible;O(i,Ye,he=>t(7,L=he));let _e=q.ui.settingsMenuOpenedByKeyboard;O(i,_e,he=>t(71,l=he));let ze=q.ui.isMobile;O(i,ze,he=>t(5,r=he));let $e=q.ui.mobileNotReportControlHidden$;O(i,$e,he=>t(62,j=he));let rt=q.state.canChangePlaybackSpeed$;O(i,rt,he=>t(63,W=he));let Je=q.state.trafficSavingEnabled$;O(i,Je,he=>t(50,u=he));let Ze=q.ui.playerSize;O(i,Ze,he=>t(72,de=he));let He=q.ui.debugPanelVisible;O(i,He,he=>t(49,s=he));let J=q.state.isInteractiveTime$,je=q.ui.additionalSettingsMenuItems$;O(i,je,he=>t(48,a=he));let ge=q.actions.internal.downloadVideo,Ie=q.actions.internal.closeSettingsMenu,We=!0,me=Fe({});O(i,me,he=>t(52,_=he));let $=!1;function dt(he){t(6,We=!1);let pt=_;pt[he]=!0,me.set(pt)}function mt(){l||Pe?.(),Et(),Ie(),$=!1}function tt(he){q.actions.internal.setQuality(he),mt()}function ut(he){q.actions.internal.setAudioStream(he),mt()}function Pt(he){q.actions.internal.setTrafficSavingEnabled(he)}function Tt(he){q.actions.internal.setPlaybackRate(he),mt()}function it(he){q.actions.internal.setSubtitle(he),mt()}function Et(){t(6,We=!0);let he=_;Object.keys(he).forEach(pt=>{he[pt]=!1}),me.set(he)}function Ht(){ge()}function oi(){(0,sm.isValidURL)(oe)&&window.open(oe,"_blank"),q.actions.internal.reportProblem(),q.actions.internal.pause()}function st(){Cr(q.actions.internal.getDebugTextData())}let vt=()=>{let he=q.actions.internal.getTraceTextData(),pt=new Blob([...he],{type:"application/json"}),ai=window.URL.createObjectURL(pt);Fo(ai,"vk_player_trace_info","json")};function ri(){He.set(!s)}function pe(){$=!0}function Rt(){$=!1}function Bt(){return r?`max-height: ${Math.round(de.height*.6)}px`:`max-height: ${de.height-32-Z}px; overflow: auto;`}let Lt,wt,Xt,Mt,ui,Ti,Jt,Ut=Fe();O(i,Ut,he=>t(59,T=he));let si={},zt={},Pi=he=>{Bl(he,Ie)},Ct=[];St(()=>{let he=J.subscribe(pt=>{pt&&!r&&!$&&!l&&mt()});return()=>{he()}});let Ei=he=>dt(he.id);function Mi(he,pt){i.$$.not_equal(si[pt.id],he)&&(si[pt.id]=he,t(2,si))}function ci(he){ve[he?"unshift":"push"](()=>{ne=he,t(0,ne)})}function fi(he,pt){i.$$.not_equal(zt[pt.id],he)&&(zt[pt.id]=he,t(3,zt))}return i.$$set=he=>{"ref"in he&&t(0,ne=he.ref),"supportLink"in he&&t(37,oe=he.supportLink),"playerControlsHeight"in he&&t(1,Z=he.playerControlsHeight),"returnFocus"in he&&t(38,Pe=he.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[1]&1744830464&&t(46,n=Zl(k,F,P)),i.$$.dirty[2]&9&&t(39,Lt=x&&se&&!j),i.$$.dirty[2]&5&&t(40,wt=N.features.trafficSaving&&!j&&U),i.$$.dirty[1]&1048576|i.$$.dirty[2]&1&&t(41,Xt=f.length>0&&!j),i.$$.dirty[2]&3&&t(42,Mt=!!W&&!j),i.$$.dirty[1]&33554432|i.$$.dirty[2]&1&&t(43,ui=N.features.audioLanguages&&C.length>=2&&!j),i.$$.dirty[2]&1&&t(47,o=!j),i.$$.dirty[1]&1610612736&&t(44,Ti=P?z("auto_quality_option"):k),i.$$.dirty[1]&25165824&&t(45,Jt=y.find(he=>he.value===h)?.displayValue),i.$$.dirty[0]&4|i.$$.dirty[1]&268435456){let he=T;he&&(Ad(si[he]),Ut.set(void 0))}i.$$.dirty[0]&56|i.$$.dirty[1]&268435200&&(t(4,Ct=[]),o&&Ct.push({id:"quality-settings",weight:Wn["quality-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let he=F.findIndex(pt=>pt.selected);return zt["quality-settings"].children[he+1]},ariaLabel:z("aria_label_menu_quality",{actual:Ti}),icon:xl,label:z("menu_quality"),value:n,valueComponent:j1,subMenu:{show:_["quality-settings"],title:z("submenu_quality"),closeSettingsMenu:Ie,backToMainSettings:Et,itemIdReturnCase:Ut,selectItem:tt,items:F.map(he=>({value:he.value,valueComponent:Ql,valueComponentParams:{quality:he.value,label:he.displayValue,isMobile:r,isSubCase:!0},selected:he.selected,label:he.displayValue}))}}),ui&&Ct.push({id:"audio-language-settings",weight:Wn["audio-language-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let he=C.findIndex(pt=>pt.id===w?.id);return zt["audio-language-settings"].children[he+1]},ariaLabel:z("aria_label_menu_audio_languages",{actual:zl(w,C)}),icon:H1,label:z("menu_audio_languages"),value:zl(w,C),subMenu:{show:_["audio-language-settings"],title:z("submenu_audio_languages"),closeSettingsMenu:Ie,backToMainSettings:Et,itemIdReturnCase:Ut,selectItem:ut,items:C.map(he=>({value:he,dataValue:he.id,selected:he.id===w?.id,label:zl(he,C)}))}}),Mt&&Ct.push({id:"playback-rate-settings",weight:Wn["playback-rate-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let he=y.findIndex(pt=>pt.selected);return zt["playback-rate-settings"].children[he+1]},ariaLabel:z("aria_label_menu_rate",{actual:Jt}),icon:q1,label:z("menu_playback_rate"),value:`${h}x`,subMenu:{show:_["playback-rate-settings"],title:z("submenu_playback_rate"),closeSettingsMenu:Ie,backToMainSettings:Et,itemIdReturnCase:Ut,selectItem:Tt,items:y.map(he=>({value:he.value,selected:he.selected,label:he.displayValue}))}}),Xt&&Ct.push({id:"subtitles-settings",weight:Wn["subtitles-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let he=f.findIndex(pt=>pt.selected);return zt["subtitles-settings"].children[he+1]},ariaLabel:z("aria_label_menu_subtitle",{actual:g.displayValue}),icon:Yl,label:z("subtitles_caption"),value:g.displayValue,subMenu:{show:_["subtitles-settings"],minWidth:164,title:z("subtitles_caption"),closeSettingsMenu:Ie,backToMainSettings:Et,itemIdReturnCase:Ut,selectItem:it,items:f.map(he=>({value:he,selected:he.selected,label:he.displayValue}))}}),wt&&Ct.push({id:"traffic-saving-settings",weight:Wn["traffic-saving-settings"],type:"SWITCH",onClick:Pt,ariaLabel:u?z("aria_label_submenu_traffic_saving_off"):`${z("aria_label_submenu_traffic_saving_on")}. ${z("traffic_saving_helper_text")}`,icon:F1,label:z("menu_traffic_saving"),enabled:u,tooltipText:z("traffic_saving_helper_text"),maxTooltipWidth:175}),Lt&&Ct.push({id:"download",weight:Wn.download,type:"CLICK",onClick:Ht,label:z("download_video_caption"),ariaLabel:z("aria_label_menu_download"),icon:O1}),N.showSupport&&Ct.push({id:"report",weight:Wn.report,type:"CLICK",onClick:oi,label:z("menu_report"),ariaLabel:`${z("menu_report")}. ${z("aria_label_new_tab_alert")}`,icon:z1,isHiddenFor:["desktop"]}),Ct.push({id:"copy-data",weight:Wn["copy-data"],type:"CLICK",onClick:st,label:z("menu_copy_debug"),ariaLabel:z("menu_copy_debug"),icon:fu,isHiddenFor:["desktop"]}),N.features.saveTraceInfoToFile&&Ct.push({id:"save-trace-info",weight:Wn["save-trace-info"],type:"CLICK",onClick:vt,label:z("menu_save_debug"),ariaLabel:z("menu_save_debug"),icon:fu,isHiddenFor:["desktop"]}),Ct.push({id:"debug-info",weight:Wn["debug-info"],type:"CLICK",onClick:ri,label:s?z("aria_label_menu_debug_overlay_disable"):z("aria_label_menu_debug_overlay_enable"),ariaLabel:z("menu_debug_overlay"),icon:U1,isHiddenFor:["desktop"]}),t(4,Ct=[...Ct,...a.map(he=>({...he,isAdditional:!0}))].filter(he=>!he.isHiddenFor?.length||!he.isHiddenFor?.includes("desktop")&&!r||!he.isHiddenFor?.includes("mobile")&&r).sort((he,pt)=>he.weight-pt.weight)))},[ne,Z,si,zt,Ct,r,We,L,le,Y,re,ce,qe,Ve,we,Re,Ue,Ge,fe,Ye,_e,ze,$e,rt,Je,Ze,He,je,me,dt,mt,Et,pe,Rt,Bt,Ut,Pi,oe,Pe,Lt,wt,Xt,Mt,ui,Ti,Jt,n,o,a,s,u,f,_,g,y,h,C,w,F,T,k,P,j,W,U,se,Ei,Mi,ci,fi]}var wu=class extends B{constructor(e){super(),D(this,e,Xb,Zb,R,{ref:0,supportLink:37,playerControlsHeight:1,returnFocus:38},Gb,[-1,-1,-1,-1])}},Xl=wu;function Jb(i){Se(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function $b(i){let e,t,n;return t=new xl({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=I("span"),A(t.$$.fragment),c(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,l){v(o,e,l),E(t,e,null),n=!0},p(o,l){let r={};l&8&&(r.isMobile=o[3]),l&16&&(r.currentQuality=o[4]),t.$set(r)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function ev(i){let e,t,n;function o(r){i[9](r)}let l={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[$b]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"opened":""),a&4&&(s.ariaLabel=r[2]),a&2&&(s.ariaExpanded=r[1]),a&4120&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function tv(i,e,t){let n,o,l,{ref:r=void 0}=e,a=nt(),s=a.state.currentQuality$;O(i,s,C=>t(4,l=C));let u=a.ui.settingsMenuVisible;O(i,u,C=>t(1,n=C));let f=a.actions.internal.toggleSettingsMenu,_=a.ui.isMobile;O(i,_,C=>t(3,o=C));let g;function y(C){let w=Sr(C);f(w)}function h(C){r=C,t(0,r)}return i.$$set=C=>{"ref"in C&&t(0,r=C.ref)},i.$$.update=()=>{i.$$.dirty&2&&t(2,g=n?z("tooltip_settings_on"):z("tooltip_settings_off"))},[r,n,g,o,l,s,u,_,y,h]}var Cu=class extends B{constructor(e){super(),D(this,e,tv,ev,R,{ref:0},Jb)}},il=Cu;function iv(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function nv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Su=class extends B{constructor(e){super(),D(this,e,nv,iv,R,{})}},am=Su;function ov(i){let e,t;return e=new Yl({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function rv(i){let e,t;return e=new am({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function lv(i){let e,t,n,o,l=[rv,ov],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=et()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e!==f&&(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t||(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function sv(i){let e,t;return e=new gt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Zn.KeyC,$$slots:{default:[lv]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&4&&(l.ariaLabel=n[2]),o&2&&(l.click=n[1]),o&9&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function av(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,l;return i.$$set=r=>{"isSubtitlesEnabled"in r&&t(0,n=r.isSubtitlesEnabled),"click"in r&&t(1,o=r.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,l=n?z("tooltip_subtitles_on"):z("tooltip_subtitles_off"))},[n,o,l]}var Iu=class extends B{constructor(e){super(),D(this,e,av,sv,R,{isSubtitlesEnabled:0,click:1})}},um=Iu;function uv(i){Se(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 cm(i){let e,t;return{c(){e=I("span"),t=De(i[3]),c(e,"class","duration svelte-19o2urr")},m(n,o){v(n,e,o),p(e,t)},p(n,o){o&8&&xe(t,n[3])},d(n){n&&b(e)}}}function cv(i){let e,t,n,o,l=i[2]&&cm(i);return{c(){e=I("div"),t=I("span"),n=De(i[4]),o=H(),l&&l.c(),c(t,"class","current svelte-19o2urr"),c(e,"class","time svelte-19o2urr"),K(e,"mobile",i[1])},m(r,a){v(r,e,a),p(e,t),p(t,n),p(e,o),l&&l.m(e,null),i[7](e)},p(r,[a]){a&16&&xe(n,r[4]),r[2]?l?l.p(r,a):(l=cm(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&2&&K(e,"mobile",r[1])},i:be,o:be,d(r){r&&b(e),l&&l.d(),i[7](null)}}}function fv(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:l}=e,{showDuration:r=!0}=e,{ref:a}=e,s,u;function f(_){ve[_?"unshift":"push"](()=>{a=_,t(0,a)})}return i.$$set=_=>{"isMobile"in _&&t(1,n=_.isMobile),"duration"in _&&t(5,o=_.duration),"position"in _&&t(6,l=_.position),"showDuration"in _&&t(2,r=_.showDuration),"ref"in _&&t(0,a=_.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,s=Sn(o)),i.$$.dirty&64&&t(4,u=Sn(l))},[a,n,r,s,u,o,l,f]}var Tu=class extends B{constructor(e){super(),D(this,e,fv,cv,R,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},uv)}},Jl=Tu;var uo=require("@vkontakte/videoplayer-shared");function dv(i){Se(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 mv(i){let e,t,n,o,l,r;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),l=V("path"),c(n,"class","wave2 svelte-1n5yyua"),c(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"),c(o,"class","wave1 svelte-1n5yyua"),c(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"),c(l,"class","cross svelte-1n5yyua"),c(l,"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"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(e,"data-value",i[0]),c(e,"data-testid",r="volume-"+i[0]+"-icon"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","icon svelte-1n5yyua"),c(e,"aria-hidden","true")},m(a,s){v(a,e,s),p(e,t),p(t,n),p(t,o),p(t,l)},p(a,[s]){s&1&&c(e,"data-value",a[0]),s&1&&r!==(r="volume-"+a[0]+"-icon")&&c(e,"data-testid",r)},i:be,o:be,d(a){a&&b(e)}}}function pv(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,l=(a,s)=>s?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",r;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,r=l(n,o))},[r,n,o]}var Pu=class extends B{constructor(e){super(),D(this,e,pv,mv,R,{volume:1,muted:2},dv)}},Yo=Pu;var Rn=require("@vkontakte/videoplayer-shared");var fm=require("@vkontakte/videoplayer-shared");function _v(i){Se(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 gv(i){let e,t=i[19].default,n=Ee(t,i,i[24],null);return{c(){n&&n.c()},m(o,l){n&&n.m(o,l),e=!0},p(o,l){n&&n.p&&(!e||l&16777216)&&Ae(n,t,o,o[24],e?Me(t,o[24],l,null):Le(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){m(n,o),e=!1},d(o){n&&n.d(o)}}}function hv(i){let e,t;return e=new Lr({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[bv]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&2048&&(l.content=n[11]),o&512&&(l.translateX=n[9]),o&1024&&(l.translateY=n[10]),o&16&&(l.isFullWidthWrapper=n[4]),o&32&&(l.active=n[5]),o&64&&(l.placement=n[6]),o&256&&(l.onVisibilityChange=n[8]),o&16777216&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function bv(i){let e,t=i[19].default,n=Ee(t,i,i[24],null);return{c(){n&&n.c()},m(o,l){n&&n.m(o,l),e=!0},p(o,l){n&&n.p&&(!e||l&16777216)&&Ae(n,t,o,o[24],e?Me(t,o[24],l,null):Le(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){m(n,o),e=!1},d(o){n&&n.d(o)}}}function vv(i){let e,t,n,o,l,r,a,s,u,f=[hv,gv],_=[];function g(y,h){return y[3]&&y[11]&&!y[12]?0:1}return t=g(i,-1),n=_[t]=f[t](i),{c(){e=I("div"),n.c(),c(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),c(e,"aria-hidden",l=i[7]||null)},m(y,h){v(y,e,h),_[t].m(e,null),i[23](e),a=!0,s||(u=[dr(r=Mr.call(null,e)),Te(e,"fd:resize",i[22]),Te(e,"pointerdown",_t(i[20])),Te(e,"click",_t(i[21]))],s=!0)},p(y,[h]){let C=t;t=g(y,h),t===C?_[t].p(y,h):(ae(),m(_[C],1,1,()=>{_[C]=null}),ue(),n=_[t],n?n.p(y,h):(n=_[t]=f[t](y),n.c()),d(n,1),n.m(e,null)),(!a||h&4&&o!==(o="btn-container "+y[2]+" svelte-p9r045"))&&c(e,"class",o),(!a||h&128&&l!==(l=y[7]||null))&&c(e,"aria-hidden",l)},i(y){a||(d(n),a=!0)},o(y){m(n),a=!1},d(y){y&&b(e),_[t].d(),i[23](null),s=!1,ct(u)}}}function yv(i,e,t){let n,o,{$$slots:l={},$$scope:r}=e,{className:a=""}=e,{disabled:s=!1}=e,{hasTooltip:u=!0}=e,{ref:f=void 0}=e,{width:_=void 0}=e,{isFullWidthTooltip:g=!0}=e,{tooltipContent:y=""}=e,{tooltipActive:h=!1}=e,{tooltipPlacement:C="top"}=e,{disabledTooltipContent:w=z("tooltip_button_disabled")}=e,{isAriaHidden:F=!1}=e,{onTooltipVisibilityChange:T=fm.noop}=e,{initialTranslateXPx:k=0}=e,{initialTranslateYPx:P=-18}=e,j=nt(),W=j.ui.isMobile;O(i,W,Z=>t(12,o=Z));let U=j.state.graphIsOpened$;O(i,U,Z=>t(18,n=Z));let se;function de(Z){Cn.call(this,i,Z)}function L(Z){Cn.call(this,i,Z)}let ne=Z=>{t(1,_=Z.target.clientWidth)};function oe(Z){ve[Z?"unshift":"push"](()=>{f=Z,t(0,f)})}return i.$$set=Z=>{"className"in Z&&t(2,a=Z.className),"disabled"in Z&&t(15,s=Z.disabled),"hasTooltip"in Z&&t(3,u=Z.hasTooltip),"ref"in Z&&t(0,f=Z.ref),"width"in Z&&t(1,_=Z.width),"isFullWidthTooltip"in Z&&t(4,g=Z.isFullWidthTooltip),"tooltipContent"in Z&&t(16,y=Z.tooltipContent),"tooltipActive"in Z&&t(5,h=Z.tooltipActive),"tooltipPlacement"in Z&&t(6,C=Z.tooltipPlacement),"disabledTooltipContent"in Z&&t(17,w=Z.disabledTooltipContent),"isAriaHidden"in Z&&t(7,F=Z.isAriaHidden),"onTooltipVisibilityChange"in Z&&t(8,T=Z.onTooltipVisibilityChange),"initialTranslateXPx"in Z&&t(9,k=Z.initialTranslateXPx),"initialTranslateYPx"in Z&&t(10,P=Z.initialTranslateYPx),"$$scope"in Z&&t(24,r=Z.$$scope)},i.$$.update=()=>{i.$$.dirty&491520&&(s?t(11,se=n?z("tooltip_disabled_when_graph_on"):w):t(11,se=y))},[f,_,a,u,g,h,C,F,T,k,P,se,o,W,U,s,y,w,n,l,de,L,ne,oe,r]}var Eu=class extends B{constructor(e){super(),D(this,e,yv,vv,R,{className:2,disabled:15,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:16,tooltipActive:5,tooltipPlacement:6,disabledTooltipContent:17,isAriaHidden:7,onTooltipVisibilityChange:8,initialTranslateXPx:9,initialTranslateYPx:10},_v)}},At=Eu;function kv(i){let e,t,n,o,l,r;return{c(){e=V("svg"),t=V("rect"),o=V("path"),c(t,"width","20"),c(t,"height","20"),c(t,"rx","10"),c(t,"fill","white"),c(t,"fill-opacity",n=i[0]?1:.24),c(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"),c(o,"fill",l=i[0]?"var(--interactive-episode-complete)":"white"),c(e,"width","20"),c(e,"height","20"),c(e,"viewBox","0 0 20 20"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid",r=(i[0],"interactive-episode-completed-icon"))},m(a,s){v(a,e,s),p(e,t),p(e,o)},p(a,[s]){s&1&&n!==(n=a[0]?1:.24)&&c(t,"fill-opacity",n),s&1&&l!==(l=a[0]?"var(--interactive-episode-complete)":"white")&&c(o,"fill",l),s&1&&r!==(r=(a[0],"interactive-episode-completed-icon"))&&c(e,"data-testid",r)},i:be,o:be,d(a){a&&b(e)}}}function wv(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var Mu=class extends B{constructor(e){super(),D(this,e,wv,kv,R,{completed:0})}},$l=Mu;function Cv(i){Se(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 Sv(i){let e,t,n,o,l,r,a;return t=new $l({props:{completed:!!i[0].completed}}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","interactive-episode-icon svelte-bklhpe"),c(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),K(e,"disabled",i[1])},m(s,u){v(s,e,u),E(t,e,null),l=!0,r||(a=[dr(o=Mr.call(null,e)),Te(e,"fd:resize",i[3])],r=!0)},p(s,u){let f={};u&1&&(f.completed=!!s[0].completed),t.$set(f),(!l||u&1&&n!==(n=`left: ${s[0].from+s[0].width/2}%`))&&c(e,"style",n),(!l||u&2)&&K(e,"disabled",s[1])},i(s){l||(d(t.$$.fragment,s),l=!0)},o(s){m(t.$$.fragment,s),l=!1},d(s){s&&b(e),M(t),r=!1,ct(a)}}}function Iv(i){let e,t;return e=new At({props:{tooltipContent:z(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:[Sv]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.tooltipContent=z(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(l.disabled=n[1]),o&4&&(l.width=n[2]||0),o&23&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Tv(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,l,r=a=>{t(2,l=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,l,r]}var Au=class extends B{constructor(e){super(),D(this,e,Tv,Iv,R,{videoEpisode:0,disabled:1},Cv)}},dm=Au;function Pv(i){Se(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 mm(i,e,t){let n=i.slice();return n[3]=e[t],n}function pm(i){let e,t,n,o,l,r,a,s,u;return{c(){e=I("div"),t=I("div"),n=I("div"),l=H(),r=I("div"),s=H(),c(n,"class","video-episode-loaded svelte-1rzxunm"),c(n,"style",o=`transform: translateX(${i[3].loadedWidth/i[3].width*100}%)`),c(r,"class","video-episode-filled svelte-1rzxunm"),c(r,"style",a=`transform: translateX(${i[3].filledWidth/i[3].width*100}%)`),K(r,"mobile",i[1]),c(t,"class","video-episode-inner svelte-1rzxunm"),c(e,"class","video-episode svelte-1rzxunm"),c(e,"style",u=`left: ${i[3].from}%; width: ${i[3].width}%`),K(e,"disabled",i[2]),K(e,"mobile",i[1])},m(f,_){v(f,e,_),p(e,t),p(t,n),p(t,l),p(t,r),p(e,s)},p(f,_){_&1&&o!==(o=`transform: translateX(${f[3].loadedWidth/f[3].width*100}%)`)&&c(n,"style",o),_&1&&a!==(a=`transform: translateX(${f[3].filledWidth/f[3].width*100}%)`)&&c(r,"style",a),_&2&&K(r,"mobile",f[1]),_&1&&u!==(u=`left: ${f[3].from}%; width: ${f[3].width}%`)&&c(e,"style",u),_&4&&K(e,"disabled",f[2]),_&2&&K(e,"mobile",f[1])},d(f){f&&b(e)}}}function Ev(i){let e,t=ht(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=pm(mm(i,t,o));return{c(){e=I("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","video-episodes-wrap svelte-1rzxunm")},m(o,l){v(o,e,l);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,[l]){if(l&7){t=ht(o[0]);let r;for(r=0;r<t.length;r+=1){let a=mm(o,t,r);n[r]?n[r].p(a,l):(n[r]=pm(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},i:be,o:be,d(o){o&&b(e),ni(n,o)}}}function Mv(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e,{disabled:l}=e;return i.$$set=r=>{"videoEpisodes"in r&&t(0,n=r.videoEpisodes),"isMobile"in r&&t(1,o=r.isMobile),"disabled"in r&&t(2,l=r.disabled)},[n,o,l]}var Lu=class extends B{constructor(e){super(),D(this,e,Mv,Ev,R,{videoEpisodes:0,isMobile:1,disabled:2},Pv)}},_m=Lu;function Av(i){Se(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 gm(i,e,t){let n=i.slice();return n[50]=e[t],n}function hm(i){let e,t,n=ht(i[21]),o=[];for(let r=0;r<n.length;r+=1)o[r]=vm(gm(i,n,r));let l=r=>m(o[r],1,1,()=>{o[r]=null});return{c(){e=I("div");for(let r=0;r<o.length;r+=1)o[r].c();c(e,"class","interactive-icons svelte-v8ydei"),K(e,"mobile",i[6]),K(e,"hidden",i[6]&&!i[20])},m(r,a){v(r,e,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(e,null);t=!0},p(r,a){if(a[0]&2098176){n=ht(r[21]);let s;for(s=0;s<n.length;s+=1){let u=gm(r,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=vm(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(ae(),s=n.length;s<o.length;s+=1)l(s);ue()}(!t||a[0]&64)&&K(e,"mobile",r[6]),(!t||a[0]&1048640)&&K(e,"hidden",r[6]&&!r[20])},i(r){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)m(o[a]);t=!1},d(r){r&&b(e),ni(o,r)}}}function bm(i){let e,t;return e=new dm({props:{videoEpisode:i[50],disabled:i[10]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisode=n[50]),o[0]&1024&&(l.disabled=n[10]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function vm(i){let e,t,n=i[50].interactive&&bm(i);return{c(){n&&n.c(),e=et()},m(o,l){n&&n.m(o,l),v(o,e,l),t=!0},p(o,l){o[50].interactive?n?(n.p(o,l),l[0]&2097152&&d(n,1)):(n=bm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),m(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function Lv(i){let e,t,n,o,l,r;return{c(){e=I("div"),t=I("div"),o=H(),l=I("div"),c(t,"class","loaded svelte-v8ydei"),c(t,"style",n=`transform: translateX(${i[12]*100}%);`),c(l,"class","filled svelte-v8ydei"),c(l,"style",r=`transform: translateX(${i[13]*100}%);`),K(l,"active-live",i[5]),K(l,"ads",i[7]),c(e,"class","bars svelte-v8ydei")},m(a,s){v(a,e,s),p(e,t),p(e,o),p(e,l)},p(a,s){s[0]&4096&&n!==(n=`transform: translateX(${a[12]*100}%);`)&&c(t,"style",n),s[0]&8192&&r!==(r=`transform: translateX(${a[13]*100}%);`)&&c(l,"style",r),s[0]&32&&K(l,"active-live",a[5]),s[0]&128&&K(l,"ads",a[7])},i:be,o:be,d(a){a&&b(e)}}}function Vv(i){let e,t;return e=new _m({props:{videoEpisodes:i[21],disabled:i[10],isMobile:i[6]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisodes=n[21]),o[0]&1024&&(l.disabled=n[10]),o[0]&64&&(l.isMobile=n[6]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Rv(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h=i[9]&&hm(i),C=[Vv,Lv],w=[];function F(T,k){return T[21].length?0:1}return n=F(i,[-1,-1]),o=w[n]=C[n](i),{c(){h&&h.c(),e=H(),t=I("div"),o.c(),l=H(),r=I("div"),a=I("div"),c(a,"class","handle svelte-v8ydei"),K(a,"active-live",i[5]),c(r,"class","handleWrap svelte-v8ydei"),c(r,"style",s=`transform: translateX(${i[14]*100}%);`),K(r,"hidden",i[11]),c(t,"class",u="slider "+i[1]+" svelte-v8ydei"),c(t,"aria-label",i[15]),c(t,"aria-valuemin",i[16]),c(t,"aria-valuemax",i[17]),c(t,"aria-valuenow",i[18]),c(t,"aria-valuetext",i[19]),c(t,"role","slider"),c(t,"tabindex","0"),c(t,"data-testid",f=i[2]??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(T,k){h&&h.m(T,k),v(T,e,k),v(T,t,k),w[n].m(t,null),p(t,l),p(t,r),p(r,a),i[44](t),_=!0,g||(y=[Te(t,"pointerdown",$t(i[22])),Te(t,"pointermove",$t(i[23])),Te(t,"pointerup",$t(i[24])),Te(t,"pointerenter",$t(i[25])),Te(t,"pointerleave",$t(i[26])),Te(t,"click",_t(i[28])),Te(t,"wheel",i[27])],g=!0)},p(T,k){T[9]?h?(h.p(T,k),k[0]&512&&d(h,1)):(h=hm(T),h.c(),d(h,1),h.m(e.parentNode,e)):h&&(ae(),m(h,1,1,()=>{h=null}),ue());let P=n;n=F(T,k),n===P?w[n].p(T,k):(ae(),m(w[P],1,1,()=>{w[P]=null}),ue(),o=w[n],o?o.p(T,k):(o=w[n]=C[n](T),o.c()),d(o,1),o.m(t,l)),(!_||k[0]&32)&&K(a,"active-live",T[5]),(!_||k[0]&16384&&s!==(s=`transform: translateX(${T[14]*100}%);`))&&c(r,"style",s),(!_||k[0]&2048)&&K(r,"hidden",T[11]),(!_||k[0]&2&&u!==(u="slider "+T[1]+" svelte-v8ydei"))&&c(t,"class",u),(!_||k[0]&32768)&&c(t,"aria-label",T[15]),(!_||k[0]&65536)&&c(t,"aria-valuemin",T[16]),(!_||k[0]&131072)&&c(t,"aria-valuemax",T[17]),(!_||k[0]&262144)&&c(t,"aria-valuenow",T[18]),(!_||k[0]&524288)&&c(t,"aria-valuetext",T[19]),(!_||k[0]&4&&f!==(f=T[2]??null))&&c(t,"data-testid",f),(!_||k[0]&1026)&&K(t,"disabled",T[10]),(!_||k[0]&1048578)&&K(t,"slider-dragging",T[20]),(!_||k[0]&10)&&K(t,"hidden",T[3]),(!_||k[0]&18)&&K(t,"slider-vertical",T[4]),(!_||k[0]&2050)&&K(t,"no-handle",T[11]),(!_||k[0]&258)&&K(t,"square",T[8])},i(T){_||(d(h),d(o),_=!0)},o(T){m(h),m(o),_=!1},d(T){T&&(b(e),b(t)),h&&h.d(T),w[n].d(),i[44](null),g=!1,ct(y)}}}function Bv(i,e,t){let n,o,{ref:l=void 0}=e,{className:r=""}=e,{testId:a=void 0}=e,{isHidden:s=!1}=e,{isVertical:u=!1}=e,{isActiveLive:f=!1}=e,{isMobile:_=!1}=e,{isAds:g=!1}=e,{squareBorders:y=!1}=e,{videoEpisodes:h=[]}=e,{withWheelHandler:C=!1}=e,{isInteractive:w=!1}=e,{disabled:F=!1}=e,{hideHandel:T=!1}=e,k,{onPointerDown:P=Rn.noop}=e,{onHandleMove:j=Rn.noop}=e,{onPointerUp:W=Rn.noop}=e,{onPointerEnter:U=Rn.noop}=e,{onPointerMove:se=Rn.noop}=e,{onPointerLeave:de=Rn.noop}=e,{onWheelUp:L=Rn.noop}=e,{onWheelDown:ne=Rn.noop}=e,{onWheelLeft:oe=Rn.noop}=e,{onWheelRight:Z=Rn.noop}=e,{onDisabledClick:Pe=Rn.noop}=e,{loadedProgress:q=0}=e,{filledProgress:N=0}=e,{handleProgress:le=0}=e,{ariaLabel:Y=""}=e,{ariaValueMin:re=void 0}=e,{ariaValueMax:ce=void 0}=e,{ariaValueNow:qe=void 0}=e,{ariaValueText:Ve=""}=e,we=qt(),Re=!1,Ue;function Ge(J){if(l&&(k=l.getBoundingClientRect()),F||Re||!l)return;t(20,Re=!0);let je=rt(J.clientX,J.clientY);P(je),l.setPointerCapture(J.pointerId)}function x(J){if(F)return;let je=rt(J.clientX,J.clientY),ge=Je(J.clientX);se(je,ge,k.width),Re&&j(je)}function fe(J){if(F||!Re)return;t(20,Re=!1);let je=rt(J.clientX,J.clientY);W(je)}function Ye(J){if(l&&(k=l.getBoundingClientRect()),F)return;let je=rt(J.clientX,J.clientY),ge=Je(J.clientX);U(je,ge,k.width)}function _e(){F||de()}function ze(J){F||C&&(J.preventDefault(),J.deltaY<0?L():J.deltaY>0?ne():J.deltaX>0?Z():oe())}function $e(J){F&&Pe(rt(J.clientX,J.clientY))}function rt(J,je){return u?Math.max(0,Math.min(1,(k.height-(je-k.top))/k.height)):Math.min(Math.max(J-k.x,0),k.width)/k.width}function Je(J){return Math.min(Math.max(J-k.x,0),k.width)}function Ze(J,je){let ge=we.features.episodesClustering&&!w?we.episodeMinWidthPc:0,Ie=[],We=0,me=0,$=0;for(let tt=1;tt<h.length;tt++)me=h[tt].time/Ue*100,me-We>ge&&(Ie.push({from:We,width:Math.max(0,me-We),loadedWidth:Math.max(0,Math.min(me,J)-We),filledWidth:Math.max(0,Math.min(me,je)-We),interactive:h[tt-1].interactive,completed:h[tt-1].completed}),We=h[tt].time/Ue*100,$++);let dt={from:We,width:Math.max(0,100-We),loadedWidth:Math.max(0,Math.min(J,100)-We),filledWidth:Math.max(0,Math.min(je,100)-We),interactive:h[$].interactive,completed:h[$].completed};100-We<ge?($-=1,Ie[$].width+=100-We,Ie[$].loadedWidth+=Math.max(0,Math.min(J,100)-We),Ie[$].filledWidth+=Math.max(0,Math.min(je,100)-We)):Ie[$]=dt;let mt=h[0].time;if(mt!==0){let tt=mt/Ue*100;Ie.unshift({from:0,width:tt,loadedWidth:Math.min(tt,J),filledWidth:Math.min(tt,je)})}return Ie}function He(J){ve[J?"unshift":"push"](()=>{l=J,t(0,l)})}return i.$$set=J=>{"ref"in J&&t(0,l=J.ref),"className"in J&&t(1,r=J.className),"testId"in J&&t(2,a=J.testId),"isHidden"in J&&t(3,s=J.isHidden),"isVertical"in J&&t(4,u=J.isVertical),"isActiveLive"in J&&t(5,f=J.isActiveLive),"isMobile"in J&&t(6,_=J.isMobile),"isAds"in J&&t(7,g=J.isAds),"squareBorders"in J&&t(8,y=J.squareBorders),"videoEpisodes"in J&&t(29,h=J.videoEpisodes),"withWheelHandler"in J&&t(30,C=J.withWheelHandler),"isInteractive"in J&&t(9,w=J.isInteractive),"disabled"in J&&t(10,F=J.disabled),"hideHandel"in J&&t(11,T=J.hideHandel),"onPointerDown"in J&&t(31,P=J.onPointerDown),"onHandleMove"in J&&t(32,j=J.onHandleMove),"onPointerUp"in J&&t(33,W=J.onPointerUp),"onPointerEnter"in J&&t(34,U=J.onPointerEnter),"onPointerMove"in J&&t(35,se=J.onPointerMove),"onPointerLeave"in J&&t(36,de=J.onPointerLeave),"onWheelUp"in J&&t(37,L=J.onWheelUp),"onWheelDown"in J&&t(38,ne=J.onWheelDown),"onWheelLeft"in J&&t(39,oe=J.onWheelLeft),"onWheelRight"in J&&t(40,Z=J.onWheelRight),"onDisabledClick"in J&&t(41,Pe=J.onDisabledClick),"loadedProgress"in J&&t(12,q=J.loadedProgress),"filledProgress"in J&&t(13,N=J.filledProgress),"handleProgress"in J&&t(14,le=J.handleProgress),"ariaLabel"in J&&t(15,Y=J.ariaLabel),"ariaValueMin"in J&&t(16,re=J.ariaValueMin),"ariaValueMax"in J&&t(17,ce=J.ariaValueMax),"ariaValueNow"in J&&t(18,qe=J.ariaValueNow),"ariaValueText"in J&&t(19,Ve=J.ariaValueText)},i.$$.update=()=>{i.$$.dirty[0]&131072&&t(42,Ue=ce??0),i.$$.dirty[0]&536870912|i.$$.dirty[1]&2048&&t(43,n=h[h.length-1]?.time<Ue),i.$$.dirty[0]&536883200|i.$$.dirty[1]&6144&&t(21,o=h.length&&n&&Ue?Ze(q*100,N*100):[])},[l,r,a,s,u,f,_,g,y,w,F,T,q,N,le,Y,re,ce,qe,Ve,Re,o,Ge,x,fe,Ye,_e,ze,$e,h,C,P,j,W,U,se,de,L,ne,oe,Z,Pe,Ue,n,He]}var Vu=class extends B{constructor(e){super(),D(this,e,Bv,Rv,R,{ref:0,className:1,testId:2,isHidden:3,isVertical:4,isActiveLive:5,isMobile:6,isAds:7,squareBorders:8,videoEpisodes:29,withWheelHandler:30,isInteractive:9,disabled:10,hideHandel:11,onPointerDown:31,onHandleMove:32,onPointerUp:33,onPointerEnter:34,onPointerMove:35,onPointerLeave:36,onWheelUp:37,onWheelDown:38,onWheelLeft:39,onWheelRight:40,onDisabledClick:41,loadedProgress:12,filledProgress:13,handleProgress:14,ariaLabel:15,ariaValueMin:16,ariaValueMax:17,ariaValueNow:18,ariaValueText:19},Av,[-1,-1])}},Vr=Vu;var tn=(i,e)=>No[i]>=No[e],ym=(i,e)=>No[i]<No[e],es=(i,e)=>No[i]<=No[e],km=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function Dv(i){Se(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 Nv(i){let e,t;return e=new Yo({props:{volume:i[3],muted:i[1]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.volume=n[3]),o[0]&2&&(l.muted=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Ov(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:Zn.KeyM,$$slots:{default:[Nv]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&512&&(l.disabled=n[9]),o[0]&4&&(l.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(l.ariaLabel=n[7]),o[0]&1&&(l.click=n[0]),o[0]&10|o[1]&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function wm(i){let e,t,n;return t=new Vr({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]:uo.noop,onPointerLeave:i[2]?i[20]:uo.noop,ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(i[8]*100),ariaValueText:`${Math.round(i[8]*100)}%`,filledProgress:i[8],handleProgress:i[8],testId:i[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","volumeBar svelte-1l78lz9"),K(e,"volumeBar-vertical",i[2])},m(o,l){v(o,e,l),E(t,e,null),n=!0},p(o,l){let r={};l[0]&4&&(r.className=o[2]?"volumeBar-slider-vertical":""),l[0]&36&&(r.isHidden=o[2]&&!o[5]),l[0]&4&&(r.isVertical=o[2]),l[0]&4&&(r.onPointerEnter=o[2]?o[19]:uo.noop),l[0]&4&&(r.onPointerLeave=o[2]?o[20]:uo.noop),l[0]&256&&(r.ariaValueNow=Math.round(o[8]*100)),l[0]&256&&(r.ariaValueText=`${Math.round(o[8]*100)}%`),l[0]&256&&(r.filledProgress=o[8]),l[0]&256&&(r.handleProgress=o[8]),l[0]&4&&(r.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(r),(!n||l[0]&4)&&K(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function Fv(i){let e,t,n,o,l,r;t=new Lr({props:{content:i[6],translateY:-18,$$slots:{default:[Ov]},$$scope:{ctx:i}}});let a=i[4]&&wm(i);return{c(){e=I("div"),A(t.$$.fragment),n=H(),a&&a.c(),c(e,"class","volumeBar-container svelte-1l78lz9"),K(e,"vertical",i[2])},m(s,u){v(s,e,u),E(t,e,null),p(e,n),a&&a.m(e,null),o=!0,l||(r=[Te(e,"mouseenter",function(){jt(i[2]?i[21]:uo.noop)&&(i[2]?i[21]:uo.noop).apply(this,arguments)}),Te(e,"mouseleave",function(){jt(i[2]?i[22]:uo.noop)&&(i[2]?i[22]:uo.noop).apply(this,arguments)}),Te(e,"wheel",$t(i[23]))],l=!0)},p(s,u){i=s;let f={};u[0]&64&&(f.content=i[6]),u[0]&655|u[1]&32&&(f.$$scope={dirty:u,ctx:i}),t.$set(f),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=wm(i),a.c(),d(a,1),a.m(e,null)):a&&(ae(),m(a,1,1,()=>{a=null}),ue()),(!o||u[0]&4)&&K(e,"vertical",i[2])},i(s){o||(d(t.$$.fragment,s),d(a),o=!0)},o(s){m(t.$$.fragment,s),m(a),o=!1},d(s){s&&b(e),M(t),a&&a.d(),l=!1,ct(r)}}}function qv(i,e,t){let n,o,l,r,{click:a}=e,s=nt(),u=qt(),f=s.state.volume$;O(i,f,we=>t(3,n=we));let _=s.state.muted$;O(i,_,we=>t(25,r=we));let g=s.actions.internal.setVolume,y=s.ui.currentGridType$;O(i,y,we=>t(24,l=we));let h=s.callbacks?.onAudioDoesNotExistHint,C=s.callbacks?.onAudioDisabledHint,w=s.state.isAudioAvailable$;O(i,w,we=>t(4,o=we));let F=s.state.isAudioDisabled,T=!1,k,P,j,W,U,se,de=1,L=!1,ne=!1;function oe(we){de=n,g(we)}function Z(){Fl(s,n,u.controls.volumeStepWheel)}function Pe(){ql(s,n,u.controls.volumeStepWheel)}function q(we){g(we)}function N(we){let Re=we;g(Re,Re===0?de:Re)}function le(){L=!0}function Y(){L=!1,qe()}function re(){clearTimeout(k),t(5,T=!0)}function ce(){qe()}function qe(){k=window.setTimeout(()=>{L||t(5,T=!1)},u.controls.volumeBarTimeout)}function Ve(we){we.deltaY<0?Z():we.deltaY>0&&Pe()}return i.$$set=we=>{"click"in we&&t(0,a=we.click)},i.$$.update=()=>{i.$$.dirty[0]&33554448&&t(1,W=!o||r),i.$$.dirty[0]&16777216&&t(2,U=es(l,"s")),i.$$.dirty[0]&6&&(U?t(6,P=""):t(6,P=W?z("tooltip_volume"):z("tooltip_volume_muted")),t(7,j=W?z("tooltip_volume"):z("tooltip_volume_muted"))),i.$$.dirty[0]&10&&t(8,se=W?0:n),i.$$.dirty[0]&16&&(o?t(9,ne=F&&!C):t(9,ne=!h))},[a,W,U,n,o,T,P,j,se,ne,f,_,y,w,oe,Z,Pe,q,N,le,Y,re,ce,Ve,l,r]}var Ru=class extends B{constructor(e){super(),D(this,e,qv,Fv,R,{click:0},Dv,[-1,-1])}},Cm=Ru;var Tm=require("@vkontakte/videoplayer-shared");function Hv(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,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 f=0;f<s.length;f+=1)u=ie(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("path"),c(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"),c(n,"class","_exit"),c(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"),c(o,"class","_enter"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),ke(e,u)},m(f,_){v(f,e,_),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),l=!0},p(f,[_]){a&&a.p&&(!l||_&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],_,null):Le(f[1]),null),ke(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},_&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function Uv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Bu=class extends B{constructor(e){super(),D(this,e,Uv,Hv,R,{})}},Sm=Bu;function zv(i){Se(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Wv(i){let e,t;return e=new Sm({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Kv(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Du=class extends B{constructor(e){super(),D(this,e,Kv,Wv,R,{isFullscreen:0},zv)}},Im=Du;function jv(i){let e,t;return e=new Im({props:{isFullscreen:i[0]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&1&&(l.isFullscreen=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Gv(i){let e,t;return e=new gt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Zn.KeyF,$$slots:{default:[jv]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&4&&(l.ariaLabel=n[2]),o&2&&(l.click=n[1]),o&9&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function xv(i,e,t){let{isFullscreen:n=!1}=e,{click:o=Tm.noop}=e,l;return i.$$set=r=>{"isFullscreen"in r&&t(0,n=r.isFullscreen),"click"in r&&t(1,o=r.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,l=n?z("tooltip_fullscreen_on"):z("tooltip_fullscreen_off"))},[n,o,l]}var Nu=class extends B{constructor(e){super(),D(this,e,xv,Gv,R,{isFullscreen:0,click:1})}},ts=Nu;function Yv(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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.078z"),ke(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function Qv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Ou=class extends B{constructor(e){super(),D(this,e,Qv,Yv,R,{})}},Rr=Ou;function Zv(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(t,"d","M8.712 5c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5zm8 0c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38c.164-.087.326-.134.774-.134z"),ke(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function Xv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Fu=class extends B{constructor(e){super(),D(this,e,Xv,Zv,R,{})}},is=Fu;var Em=require("@vkontakte/videoplayer-shared");function Jv(i){Se(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 Pm(i){let e;return{c(){e=I("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function $v(i){let e,t,n,o,l=i[1]&&Pm(i);var r=i[8];function a(s,u){return{}}return r&&(n=Ft(r,a(i))),{c(){l&&l.c(),e=H(),t=I("div"),n&&A(n.$$.fragment),c(t,"class","svelte-1ot3duq"),K(t,"mobile",i[1])},m(s,u){l&&l.m(s,u),v(s,e,u),v(s,t,u),n&&E(n,t,null),o=!0},p(s,u){if(s[1]?l||(l=Pm(s),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),u&256&&r!==(r=s[8])){if(n){ae();let f=n;m(f.$$.fragment,1,0,()=>{M(f,1)}),ue()}r?(n=Ft(r,a(s,u)),A(n.$$.fragment),d(n.$$.fragment,1),E(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&&m(n.$$.fragment,s),o=!1},d(s){s&&(b(e),b(t)),l&&l.d(s),n&&M(n)}}}function e4(i){let e,t,n;function o(r){i[13](r)}let l={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:Zn.KeyK,$$slots:{default:[$v]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&10&&(s.className=(r[1]?"btn-m--play":"")+" "+r[3]),a&112&&(s.click=r[5]?r[6]:r[4]),a&4&&(s.disabled=r[2]),a&128&&(s.ariaLabel=r[7]),a&33026&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function t4(i,e,t){let n,o,{fakeIsPlaying$:l}=Vn();O(i,l,T=>t(12,o=T));let{ref:r=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:f=""}=e,{click:_=Em.noop}=e,{toggle:g}=l,y,h,C,w;function F(T){r=T,t(0,r)}return i.$$set=T=>{"ref"in T&&t(0,r=T.ref),"isMobile"in T&&t(1,a=T.isMobile),"isPlaying"in T&&t(10,s=T.isPlaying),"disabled"in T&&t(2,u=T.disabled),"className"in T&&t(3,f=T.className),"click"in T&&t(4,_=T.click)},i.$$.update=()=>{i.$$.dirty&4096&&t(5,h=o!==null),i.$$.dirty&5152&&t(11,C=h?o:s),i.$$.dirty&2048&&t(7,w=C?z("tooltip_pause"):z("tooltip_play")),i.$$.dirty&2048&&t(8,n=C?is:Rr)},t(6,y=g),[r,a,u,f,_,h,y,w,n,l,s,C,o,F]}var qu=class extends B{constructor(e){super(),D(this,e,t4,e4,R,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},Jv)}},nl=qu;function i4(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function n4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Hu=class extends B{constructor(e){super(),D(this,e,n4,i4,R,{})}},Mm=Hu;function o4(i){let e,t;return e=new Mm({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&2&&(l.style=n[1]),o&1&&(l["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function r4(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,l;return i.$$set=r=>{"isPrev"in r&&t(0,n=r.isPrev),"isMobile"in r&&t(2,o=r.isMobile)},i.$$.update=()=>{i.$$.dirty&5&&(n&&o?t(1,l="transform: scaleX(-1) scale(1.3333);"):n?t(1,l="transform: scaleX(-1);"):o?t(1,l="transform: scale(1.3333);"):t(1,l=void 0))},[n,l,o]}var Uu=class extends B{constructor(e){super(),D(this,e,r4,o4,R,{isPrev:0,isMobile:2})}},Am=Uu;function l4(i){let e,t;return e=new Am({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&8&&(l.isPrev=n[3]==="prev"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function s4(i){let e,t,n;function o(r){i[6](r)}let l={testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[l4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&8&&(s.testId="btn-"+r[3]),a&4&&(s.disabled=r[2]),a&32&&(s.ariaLabel=r[5]),a&16&&(s.click=r[4]),a&138&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function a4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{type:r}=e,{click:a}=e,s;function u(f){n=f,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"isMobile"in f&&t(1,o=f.isMobile),"disabled"in f&&t(2,l=f.disabled),"type"in f&&t(3,r=f.type),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,s=r==="prev"?z("tooltip_previous"):z("tooltip_next"))},[n,o,l,r,a,s,u]}var zu=class extends B{constructor(e){super(),D(this,e,a4,s4,R,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},Br=zu;function u4(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),ke(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function c4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Wu=class extends B{constructor(e){super(),D(this,e,c4,u4,R,{})}},Lm=Wu;function f4(i){let e,t,n,o,l,r,a=i[2].default,s=Ee(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]],f={};for(let _=0;_<u.length;_+=1)f=ie(f,u[_]);return{c(){e=V("svg"),s&&s.c(),t=V("path"),n=V("path"),o=V("path"),l=V("path"),c(t,"fill","#fff"),c(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"),c(n,"fill","#fff"),c(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"),c(n,"class","_ru"),c(o,"fill","#fff"),c(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"),c(o,"class","_en"),c(l,"fill","#fff"),c(l,"fill-rule","evenodd"),c(l,"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"),c(l,"clip-rule","evenodd"),ke(e,f)},m(_,g){v(_,e,g),s&&s.m(e,null),p(e,t),p(e,n),p(e,o),p(e,l),r=!0},p(_,[g]){s&&s.p&&(!r||g&2)&&Ae(s,a,_,_[1],r?Me(a,_[1],g,null):Le(_[1]),null),ke(e,f=Be(u,[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},g&1&&_[0]]))},i(_){r||(d(s,_),r=!0)},o(_){m(s,_),r=!1},d(_){_&&b(e),s&&s.d(_)}}}function d4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Ku=class extends B{constructor(e){super(),D(this,e,d4,f4,R,{})}},Vm=Ku;function m4(i){Se(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 p4(i){let e,t;return e=new Vm({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.width=n[0]),o&1&&(l.viewBox="0 0 "+(n[0]+1)+" 24"),o&2&&(l["data-testid"]=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}var _4="vk-video-logo-icon--short";function g4(i,e,t){let{short:n=!1}=e,{isCyrillic:o=!0}=e,l,r;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,l=n?21:95),t(1,r=n?_4:"vk-video-logo-icon"),!o&&!n&&(t(0,l=91),t(1,r="vk-video-logo-icon--en")))},[l,r,n,o]}var ju=class extends B{constructor(e){super(),D(this,e,g4,p4,R,{short:2,isCyrillic:3},m4)}},Rm=ju;function b4(i){let e,t;return e=new Lm({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p:be,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function v4(i){let e,t;return e=new Rm({props:{short:i[4],isCyrillic:i[5]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.short=n[4]),o&32&&(l.isCyrillic=n[5]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function y4(i){let e,t,n,o,l=[v4,b4],r=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=et()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function k4(i){let e,t,n;function o(r){i[14](r)}let l={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:[y4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.disabled=!r[1]),a&4&&(s.testId=r[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(s.ariaLabel=r[3]),a&131124&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function w4(i,e,t){let n,o,l,{ref:r=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:s=""}=e,{click:u}=e,f=qt(),_=nt(),g=_.ui.currentGridType$;O(i,g,P=>t(12,n=P));let y=_.ui.isMobile;O(i,y,P=>t(13,o=P));let h=_.isCyrillicRelatedInterface$;O(i,h,P=>t(5,l=P));let C,w,F,T=()=>{u(),_.callbacks?.onLogoClicked?_.callbacks?.onLogoClicked():s&&window.open(s,"_blank")};function k(P){r=P,t(0,r)}return i.$$set=P=>{"ref"in P&&t(0,r=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,F=(o||es(n,"l"))&&w)},t(3,C=f.logoType==="vk_video"?z("tooltip_vk_video_logo"):z("tooltip_vk_logo")),t(2,w=f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),[r,a,w,C,F,l,g,y,h,T,s,u,n,o,k]}var Gu=class extends B{constructor(e){super(),D(this,e,w4,k4,R,{ref:0,logoClickable:1,targetUrl:10,click:11})}},ns=Gu;var Dm=require("@vkontakte/videoplayer-core");var xu=require("@vkontakte/videoplayer-core");function C4(i){Se(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 S4(i){let e,t,n,o,l,r,a,s;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),l=V("path"),r=V("path"),a=V("path"),s=V("path"),c(n,"class","wave wave1 svelte-8z1bf5"),c(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),c(n,"fill","#fff"),c(o,"class","wave wave2 svelte-8z1bf5"),c(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),c(o,"fill","#fff"),c(l,"class","wave wave3 svelte-8z1bf5"),c(l,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),c(l,"fill","#fff"),c(r,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),c(r,"fill","#fff"),c(a,"d","M0 0h24v24H0z"),c(s,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),c(s,"fill","#fff"),K(s,"hidden",!i[1]),c(t,"fill","none"),c(t,"fill-rule","evenodd"),c(e,"width","24"),c(e,"height","24"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid","chromecast-icon"),c(e,"class","svelte-8z1bf5"),K(e,"connecting",i[2])},m(u,f){v(u,e,f),p(e,t),p(t,n),p(t,o),p(t,l),p(t,r),p(t,a),p(t,s)},p(u,f){f&2&&K(s,"hidden",!u[1]),f&4&&K(e,"connecting",u[2])},d(u){u&&b(e)}}}function I4(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,T,k,P,j;return{c(){e=V("svg"),t=V("g"),n=V("mask"),o=V("path"),r=V("path"),a=V("path"),u=V("path"),f=V("defs"),_=V("clipPath"),g=V("path"),h=V("filter"),C=V("feFlood"),w=V("feColorMatrix"),F=V("feOffset"),T=V("feGaussianBlur"),k=V("feColorMatrix"),P=V("feBlend"),j=V("feBlend"),c(o,"fill",l=i[1]?"#2688EB":"#fff"),c(o,"d","M1.1 3.1h22v18h-22z"),c(r,"fill-rule","evenodd"),c(r,"clip-rule","evenodd"),c(r,"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"),c(n,"id","c"),c(n,"maskUnits","userSpaceOnUse"),c(n,"x","1.1"),c(n,"y","3.1"),c(n,"width","22"),c(n,"height","18"),c(n,"fill","#000"),c(a,"fill-rule","evenodd"),c(a,"clip-rule","evenodd"),c(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"),c(a,"fill",s=i[1]?"#2688EB":"#fff"),c(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"),c(u,"fill","#000"),c(u,"fill-opacity",".12"),c(u,"mask","url(#c)"),c(t,"filter","url(#b)"),c(t,"clip-path","url(#a)"),c(g,"fill",y=i[1]?"#2688EB":"#fff"),c(g,"d","M0 0h24v24H0z"),c(_,"id","a"),c(C,"flood-opacity","0"),c(C,"result","BackgroundImageFix"),c(w,"in","SourceAlpha"),c(w,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(w,"result","hardAlpha"),c(T,"stdDeviation","2.5"),c(k,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(P,"in2","BackgroundImageFix"),c(P,"result","effect1_dropShadow_4085_178456"),c(j,"in","SourceGraphic"),c(j,"in2","effect1_dropShadow_4085_178456"),c(j,"result","shape"),c(h,"id","b"),c(h,"x","-3.4"),c(h,"y","-1.4"),c(h,"width","30.8"),c(h,"height","26.802"),c(h,"filterUnits","userSpaceOnUse"),c(h,"color-interpolation-filters","sRGB"),c(e,"width","24"),c(e,"height","24"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid","chromecast-mobile-icon")},m(W,U){v(W,e,U),p(e,t),p(t,n),p(n,o),p(n,r),p(t,a),p(t,u),p(e,f),p(f,_),p(_,g),p(f,h),p(h,C),p(h,w),p(h,F),p(h,T),p(h,k),p(h,P),p(h,j)},p(W,U){U&2&&l!==(l=W[1]?"#2688EB":"#fff")&&c(o,"fill",l),U&2&&s!==(s=W[1]?"#2688EB":"#fff")&&c(a,"fill",s),U&2&&y!==(y=W[1]?"#2688EB":"#fff")&&c(g,"fill",y)},d(W){W&&b(e)}}}function T4(i){let e;function t(l,r){return l[0]?I4:S4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=et()},m(l,r){o.m(l,r),v(l,e,r)},p(l,[r]){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:be,o:be,d(l){l&&b(e),o.d(l)}}}function P4(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,l,r;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,r=o===xu.ChromecastState.CONNECTING),t(1,l=o===xu.ChromecastState.CONNECTED))},[n,l,r,o]}var Yu=class extends B{constructor(e){super(),D(this,e,P4,T4,R,{isMobile:0,state:3},C4)}},Bm=Yu;var Nm=require("@vkontakte/videoplayer-shared");function E4(i){let e,t;return e=new Bm({props:{isMobile:i[1],state:i[2]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&4&&(l.state=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function M4(i){let e,t,n;function o(r){i[5](r)}let l={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[E4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&16&&(s.ariaLabel=r[4]),a&8&&(s.click=r[3]),a&70&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function A4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:l}=e,{click:r=Nm.noop}=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,l=u.state),"click"in u&&t(3,r=u.click)},i.$$.update=()=>{i.$$.dirty&4&&t(4,a=l===Dm.ChromecastState.CONNECTED?z("tooltip_chromecast_on"):z("tooltip_chromecast_off"))},[n,o,l,r,a,s]}var Qu=class extends B{constructor(e){super(),D(this,e,A4,M4,R,{ref:0,isMobile:1,state:2,click:3})}},os=Qu;var rs=require("@vkontakte/videoplayer-core");function L4(i){let e,t;return e=new Vl({props:{isActive:i[1]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function V4(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]===rs.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[L4]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(l.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(l.disabled=n[1]&&n[3]===rs.PlaybackState.PLAYING),o&4&&(l.ariaLabel=n[2]),o&16&&(l.click=n[4]),o&514&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function R4(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:l=!1}=e,{ariaLabel:r=""}=e,a=nt(),s=a.state.playbackState$;O(i,s,g=>t(3,n=g));let u=a.actions.internal.switchToActiveLive,f=a.actions.internal.togglePlay,_;return i.$$set=g=>{"isMobile"in g&&t(0,o=g.isMobile),"isActiveLive"in g&&t(1,l=g.isActiveLive),"ariaLabel"in g&&t(2,r=g.ariaLabel)},i.$$.update=()=>{i.$$.dirty&10&&t(4,_=()=>{if(!l){u();return}n===rs.PlaybackState.PAUSED&&f()})},[o,l,r,n,_,s]}var Zu=class extends B{constructor(e){super(),D(this,e,R4,V4,R,{isMobile:0,isActiveLive:1,ariaLabel:2})}},ls=Zu;function B4(i){Se(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 D4(i){let e,t,n,o,l=i[9].default,r=Ee(l,i,i[8],null);return{c(){e=I("div"),t=I("div"),r&&r.c(),c(t,"class","tooltip svelte-5ygsa2"),K(t,"active",i[0]),K(t,"pointer",i[1]),c(e,"class","tooltip-wrapper svelte-5ygsa2"),c(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(a,s){v(a,e,s),p(e,t),r&&r.m(t,null),i[10](t),i[11](e),o=!0},p(a,[s]){r&&r.p&&(!o||s&256)&&Ae(r,l,a,a[8],o?Me(l,a[8],s,null):Le(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);`))&&c(e,"style",n)},i(a){o||(d(r,a),o=!0)},o(a){m(r,a),o=!1},d(a){a&&b(e),r&&r.d(a),i[10](null),i[11](null)}}}function N4(i,e,t){let n,{$$slots:o={},$$scope:l}=e,{active:r=!1}=e,{pointer:a=!1}=e,{translateXPx:s=0}=e,{translateYPx:u=0}=e,{containerWidth:f}=e,_,g;function y(w){if(!g)return 0;let{width:F}=g.getBoundingClientRect(),T=F/2;return w<T?T:w>f-T?f-T:w}function h(w){ve[w?"unshift":"push"](()=>{g=w,t(4,g)})}function C(w){ve[w?"unshift":"push"](()=>{_=w,t(3,_)})}return i.$$set=w=>{"active"in w&&t(0,r=w.active),"pointer"in w&&t(1,a=w.pointer),"translateXPx"in w&&t(6,s=w.translateXPx),"translateYPx"in w&&t(2,u=w.translateYPx),"containerWidth"in w&&t(7,f=w.containerWidth),"$$scope"in w&&t(8,l=w.$$scope)},i.$$.update=()=>{i.$$.dirty&64&&t(5,n=y(s))},[r,a,u,_,g,n,s,f,l,o,h,C]}var Xu=class extends B{constructor(e){super(),D(this,e,N4,D4,R,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},B4)}},Om=Xu;var ss=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function O4(i){Se(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 Fm(i){let e;function t(l,r){return l[2]&&l[10].completed===!1?q4:F4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=et()},m(l,r){o.m(l,r),v(l,e,r)},p(l,r){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&b(e),o.d(l)}}}function F4(i){let e=(i[10].text||"")+"",t;return{c(){t=De(e)},m(n,o){v(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&xe(t,e)},d(n){n&&b(t)}}}function q4(i){let e=z("tooltip_episode_unfinished")+"",t;return{c(){t=De(e)},m(n,o){v(n,t,o)},p:be,d(n){n&&b(t)}}}function qm(i){let e,t;return{c(){e=I("div"),t=De(i[0]),c(e,"class","time svelte-l51fc1")},m(n,o){v(n,e,o),p(e,t)},p(n,o){o&1&&xe(t,n[0])},d(n){n&&b(e)}}}function H4(i){let e,t,n,o,l,r,a=i[10]&&Fm(i),s=!i[2]&&qm(i);return{c(){e=I("div"),t=I("div"),o=H(),l=I("div"),a&&a.c(),r=H(),s&&s.c(),c(t,"class","preview svelte-l51fc1"),c(t,"style",n=`width: ${i[3]}px; height: ${i[4]}px; background-image: url(${i[5]}); background-size: ${i[6]}px ${i[7]}px; background-position: ${i[8]}px ${i[9]}px; transform: translateY(${i[11]%180?-35:0}px) rotate(${i[11]}deg);`),c(l,"class","episode svelte-l51fc1"),c(e,"class","timeline-preview svelte-l51fc1"),K(e,"mobile",i[1])},m(u,f){v(u,e,f),p(e,t),p(e,o),p(e,l),a&&a.m(l,null),p(e,r),s&&s.m(e,null)},p(u,[f]){f&3064&&n!==(n=`width: ${u[3]}px; height: ${u[4]}px; background-image: url(${u[5]}); background-size: ${u[6]}px ${u[7]}px; background-position: ${u[8]}px ${u[9]}px; transform: translateY(${u[11]%180?-35:0}px) rotate(${u[11]}deg);`)&&c(t,"style",n),u[10]?a?a.p(u,f):(a=Fm(u),a.c(),a.m(l,null)):a&&(a.d(1),a=null),u[2]?s&&(s.d(1),s=null):s?s.p(u,f):(s=qm(u),s.c(),s.m(e,null)),f&2&&K(e,"mobile",u[1])},i:be,o:be,d(u){u&&b(e),a&&a.d(),s&&s.d()}}}var Dr=150;function U4(i,e,t){let n,{time:o=""}=e,{isMobile:l=!1}=e,{videoEpisodes:r=[]}=e,{previewThumbsData:a}=e,{progress:s=0}=e,{duration:u=0}=e,{isInteractive:f=!1}=e,g=nt().ui.rotateAlpha;O(i,g,U=>t(11,n=U));let y,h,C,w,F,T,k,P;function j(){let U=a.frameWidth,se=a.frameHeight;return U>Dr?(se=se/U*Dr,U=Dr):se>Dr&&(U=U/se*Dr,se=Dr),{width:U,height:se}}function W(U){let se;a.isUV?se=Math.floor(u*U/a.frequency):se=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*U)));let de=Math.floor(se/a.countPerImage),L=Math.floor(se%a.countPerImage/a.countPerRow),ne=se%a.countPerRow,oe=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&de===Math.floor(a.countTotal/a.countPerImage)&&(oe=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&oe++);let Z=a.countPerRow;!a.isUV&&de===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(Z=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let Pe=y*Z,q=h*oe,N=-ne*y,le=-L*h;return{imgSrc:a.links[de],imgWidth:Pe,imgHeight:q,imgOffsetX:N,imgOffsetY:le}}return i.$$set=U=>{"time"in U&&t(0,o=U.time),"isMobile"in U&&t(1,l=U.isMobile),"videoEpisodes"in U&&t(13,r=U.videoEpisodes),"previewThumbsData"in U&&t(14,a=U.previewThumbsData),"progress"in U&&t(15,s=U.progress),"duration"in U&&t(16,u=U.duration),"isInteractive"in U&&t(2,f=U.isInteractive)},i.$$.update=()=>{i.$$.dirty&32768&&t(5,{imgSrc:C,imgWidth:w,imgHeight:F,imgOffsetX:T,imgOffsetY:k}=W(s),C,(t(6,w),t(15,s)),(t(7,F),t(15,s)),(t(8,T),t(15,s)),(t(9,k),t(15,s))),i.$$.dirty&106496&&t(10,P=ss(s,u,r))},t(3,{width:y,height:h}=j(),y,t(4,h)),[o,l,f,y,h,C,w,F,T,k,P,n,g,r,a,s,u]}var Ju=class extends B{constructor(e){super(),D(this,e,U4,H4,R,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},O4)}},Hm=Ju;function z4(i){Se(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 W4(i){let e,t;return{c(){e=I("span"),t=De(i[8]),c(e,"class","time svelte-5lzly8")},m(n,o){v(n,e,o),p(e,t)},p(n,o){o[0]&256&&xe(t,n[8])},i:be,o:be,d(n){n&&b(e)}}}function K4(i){let e,t;return e=new Hm({props:{time:i[8],isMobile:i[11],videoEpisodes:i[4],previewThumbsData:i[22],progress:i[9],duration:i[2],isInteractive:i[24]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&256&&(l.time=n[8]),o[0]&2048&&(l.isMobile=n[11]),o[0]&16&&(l.videoEpisodes=n[4]),o[0]&512&&(l.progress=n[9]),o[0]&4&&(l.duration=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function j4(i){let e,t,n,o,l=[K4,W4],r=[];function a(s,u){return s[15].features.timelinePreview&&s[22]&&!s[1]?0:1}return e=a(i,[-1,-1]),t=r[e]=l[e](i),{c(){t.c(),n=et()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function G4(i){let e,t,n,o,l,r=[i[10]],a={$$slots:{default:[j4]},$$scope:{ctx:i}};for(let f=0;f<r.length;f+=1)a=ie(a,r[f]);e=new Om({props:a});function s(f){i[43](f)}let u={isActiveLive:i[12],isMobile:i[11],ariaLabel:z("aria_timeline"),ariaValueMin:0,ariaValueMax:i[2],ariaValueNow:Math.round(i[7]*100),ariaValueText:z("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 Vr({props:u}),ve.push(()=>Oe(n,"ref",s)),{c(){A(e.$$.fragment),t=H(),A(n.$$.fragment)},m(f,_){E(e,f,_),v(f,t,_),E(n,f,_),l=!0},p(f,_){let g=_[0]&1024?Be(r,[Zr(f[10])]):{};_[0]&2838|_[1]&524288&&(g.$$scope={dirty:_,ctx:f}),e.$set(g);let y={};_[0]&4096&&(y.isActiveLive=f[12]),_[0]&2048&&(y.isMobile=f[11]),_[0]&4&&(y.ariaValueMax=f[2]),_[0]&128&&(y.ariaValueNow=Math.round(f[7]*100)),_[0]&96&&(y.ariaValueText=z("aria_timeline_value",{position:f[6],duration:f[5]})),_[0]&8192&&(y.loadedProgress=f[13]),_[0]&128&&(y.filledProgress=f[7]),_[0]&128&&(y.handleProgress=f[7]),_[0]&16&&(y.videoEpisodes=f[4]),_[0]&16384&&(y.disabled=f[14].has("TIMELINE")),_[0]&8&&(y.hideHandel=f[3]),!o&&_[0]&1&&(o=!0,y.ref=f[0],Ne(()=>o=!1)),n.$set(y)},i(f){l||(d(e.$$.fragment,f),d(n.$$.fragment,f),l=!0)},o(f){m(e.$$.fragment,f),m(n.$$.fragment,f),l=!1},d(f){f&&b(t),M(e,f),M(n,f)}}}function x4(i,e,t){let n,o,l,r,a,s,u,f,_,g,y,{showTimeline:h=!1}=e,{ref:C=void 0}=e,w=nt(),F=qt(),T=w.state.bufferedProgress$;O(i,T,J=>t(13,g=J));let k=w.state.positionWithScrubbing$;O(i,k,J=>t(41,s=J));let P=w.state.duration$;O(i,P,J=>t(2,l=J));let j=w.state.isLive$;O(i,j,J=>t(1,o=J));let W=w.state.isActiveLive$;O(i,W,J=>t(12,_=J));let U=w.ui.isMobile;O(i,U,J=>t(11,f=J));let se=F.features.episodes?w.actions.internal.getVideoEpisodes():void 0,de=w.actions.internal.getPreviewThumbsData(),L=w.state.interactiveEpisodes$;O(i,L,J=>t(42,u=J));let ne=w.state.isInteractive,oe=w.state.isInteractiveTime$;O(i,oe,J=>t(3,r=J));let Z=w.state.isInteractiveExpectation$;O(i,Z,J=>t(40,a=J));let Pe=w.actions.internal.correctSeekTimeToInteractive,q=w.callbacks?.onDisabledTimelineClick,N=w.ui.controls.disabledControls$;O(i,N,J=>t(14,y=J));let le,Y,re,ce,qe=!1,Ve="",we=0,Re=0,Ue=0,Ge;function x(J){return!Pe||!ne?J:Pe(J*l)/l}function fe(J){w.actions.internal.startScrubbing(x(J))}function Ye(J){r||w.actions.internal.progressScrubbing(x(J))}function _e(J){w.actions.internal.completeScrubbing(x(J)),t(36,qe=!1)}function ze(J,je,ge){Je(J,je,ge),t(36,qe=!0)}function $e(J,je,ge){Je(J,je,ge),t(36,qe=!0)}function rt(){t(36,qe=!1)}function Je(J,je,ge){t(9,Ue=x(J)),t(37,we=je),ge&&t(38,Re=ge),t(8,Ve=Ze(J))}function Ze(J){let je=Sn((o?1-J:J)*l);return o?`-${je}`:je}function He(J){C=J,t(0,C)}return i.$$set=J=>{"showTimeline"in J&&t(35,h=J.showTimeline),"ref"in J&&t(0,C=J.ref)},i.$$.update=()=>{i.$$.dirty[1]&2048&&t(4,le=ne?u:se),i.$$.dirty[0]&4&&t(5,Y=Sn(l)),i.$$.dirty[1]&1024&&t(6,re=Sn(s)),i.$$.dirty[0]&4|i.$$.dirty[1]&1024&&t(7,ce=s/l),i.$$.dirty[0]&8|i.$$.dirty[1]&512&&t(39,Ge=a||r),i.$$.dirty[0]&2|i.$$.dirty[1]&496&&t(10,n={containerWidth:Re,translateXPx:we,translateYPx:ne&&de?-36:-16,active:qe&&h&&!Ge,pointer:!F.features.timelinePreview||!de||o})},[C,o,l,r,le,Y,re,ce,Ve,Ue,n,f,_,g,y,F,T,k,P,j,W,U,de,L,ne,oe,Z,q,N,fe,Ye,_e,ze,$e,rt,h,qe,we,Re,Ge,a,s,u,He]}var $u=class extends B{constructor(e){super(),D(this,e,x4,G4,R,{showTimeline:35,ref:0},z4,[-1,-1])}},Um=$u;function Y4(i){let e,t;return e=new Vr({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:z("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.ariaValueMax=n[0]),o&8&&(l.ariaValueNow=Math.round(n[3]*100)),o&6&&(l.ariaValueText=z("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(l.filledProgress=n[3]),o&16&&(l.squareBorders=n[4]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Q4(i,e,t){let n,{position:o=0}=e,{duration:l=0}=e,a=nt().ui.isMobile;O(i,a,_=>t(4,n=_));let s,u,f;return i.$$set=_=>{"position"in _&&t(6,o=_.position),"duration"in _&&t(0,l=_.duration)},i.$$.update=()=>{i.$$.dirty&1&&t(1,s=Sn(l)),i.$$.dirty&64&&t(2,u=Sn(o)),i.$$.dirty&65&&t(3,f=o/l)},[l,s,u,f,n,a,o]}var ec=class extends B{constructor(e){super(),D(this,e,Q4,Y4,R,{position:6,duration:0})}},as=ec;function Z4(i){Se(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 X4(i){let e;return{c(){e=I("div"),c(e,"class","timeline-stub svelte-1gqonyf"),K(e,"mobile",i[3])},m(t,n){v(t,e,n)},p(t,n){n&8&&K(e,"mobile",t[3])},i:be,o:be,d(t){t&&b(e)}}}function J4(i){let e,t,n,o,l=[e3,$4],r=[];function a(s,u){return s[1]?0:1}return t=a(i,-1),n=r[t]=l[t](i),{c(){e=I("div"),n.c(),c(e,"class","timeline svelte-1gqonyf"),K(e,"mobile",i[3])},m(s,u){v(s,e,u),r[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?r[t].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),n=r[t],n?n.p(s,u):(n=r[t]=l[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){m(n),o=!1},d(s){s&&b(e),r[t].d()}}}function $4(i){let e,t,n;function o(r){i[14](r)}let l={showTimeline:i[2]};return i[0]!==void 0&&(l.ref=i[0]),e=new Um({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a&4&&(s.showTimeline=r[2]),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function e3(i){let e,t;return e=new as({props:{position:i[4],duration:i[5]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.position=n[4]),o&32&&(l.duration=n[5]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function t3(i){let e,t,n,o,l=[J4,X4],r=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=et()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function i3(i,e,t){let n,o,l,r,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:f=!1}=e,{ref:_=void 0}=e,g=nt(),y=g.state.isLive$;O(i,y,k=>t(13,n=k));let h=g.ads.duration;O(i,h,k=>t(5,r=k));let C=g.ads.position;O(i,C,k=>t(4,l=k));let w=g.ui.isMobile;O(i,w,k=>t(3,o=k));let F;function T(k){_=k,t(0,_)}return i.$$set=k=>{"isAds"in k&&t(1,a=k.isAds),"canRewindLive"in k&&t(10,s=k.canRewindLive),"isRewindableLive"in k&&t(11,u=k.isRewindableLive),"isHidden"in k&&t(12,f=k.isHidden),"ref"in k&&t(0,_=k.ref)},i.$$.update=()=>{i.$$.dirty&15362&&t(2,F=!f&&(!n||n&&s&&u||a))},[_,a,F,o,l,r,y,h,C,w,s,u,f,n,T]}var tc=class extends B{constructor(e){super(),D(this,e,i3,t3,R,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},Z4)}},us=tc;var Km=require("@vkontakte/videoplayer-shared");function n3(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,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 f=0;f<s.length;f+=1)u=ie(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("path"),n=V("path"),o=V("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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(f,_){v(f,e,_),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),l=!0},p(f,[_]){a&&a.p&&(!l||_&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],_,null):Le(f[1]),null),ke(e,u=Be(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"},_&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function o3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var ic=class extends B{constructor(e){super(),D(this,e,o3,n3,R,{})}},zm=ic;function r3(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(t,"opacity",".7"),ke(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function l3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var nc=class extends B{constructor(e){super(),D(this,e,l3,r3,R,{})}},Wm=nc;function s3(i){Se(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 a3(i){let e,t,n,o;e=new zm({});function l(s,u){if(s[4]==="FULL")return f3;if(s[4]==="COUNT")return c3}let r=l(i,-1),a=r&&r(i);return{c(){A(e.$$.fragment),t=H(),a&&a.c(),n=et()},m(s,u){E(e,s,u),v(s,t,u),a&&a.m(s,u),v(s,n,u),o=!0},p(s,u){r===(r=l(s,u))&&a?a.p(s,u):(a&&a.d(1),a=r&&r(s),a&&(a.c(),a.m(n.parentNode,n)))},i(s){o||(d(e.$$.fragment,s),o=!0)},o(s){m(e.$$.fragment,s),o=!1},d(s){s&&(b(t),b(n)),M(e,s),a&&a.d(s)}}}function u3(i){let e,t,n,o,l,r;return l=new Wm({}),{c(){e=I("span"),t=De(i[2]),n=H(),o=I("div"),A(l.$$.fragment),c(e,"class","text mobile svelte-1yhs2ga"),c(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){v(a,e,s),p(e,t),v(a,n,s),v(a,o,s),E(l,o,null),r=!0},p(a,s){(!r||s&4)&&xe(t,a[2])},i(a){r||(d(l.$$.fragment,a),r=!0)},o(a){m(l.$$.fragment,a),r=!1},d(a){a&&(b(e),b(n),b(o)),M(l)}}}function c3(i){let e,t=i[0].length+"",n;return{c(){e=I("span"),n=De(t),c(e,"class","text count svelte-1yhs2ga")},m(o,l){v(o,e,l),p(e,n)},p(o,l){l&1&&t!==(t=o[0].length+"")&&xe(n,t)},d(o){o&&b(e)}}}function f3(i){let e,t;return{c(){e=I("span"),t=De(i[2]),c(e,"class","text svelte-1yhs2ga")},m(n,o){v(n,e,o),p(e,t)},p(n,o){o&4&&xe(t,n[2])},d(n){n&&b(e)}}}function d3(i){let e,t,n,o,l=[u3,a3],r=[];function a(s,u){return s[6]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=et()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function m3(i){let e,t,n;function o(r){i[19](r)}let l={className:"w-max btn-full-opacity "+(i[6]?"px-0":""),testId:"btn-episodes",click:i[12],disabled:!i[7],ariaExpanded:i[3],ariaLabel:i[5],$$slots:{default:[d3]},$$scope:{ctx:i}};return i[1]!==void 0&&(l.ref=i[1]),e=new gt({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&64&&(s.className="w-max btn-full-opacity "+(r[6]?"px-0":"")),a&8&&(s.ariaExpanded=r[3]),a&32&&(s.ariaLabel=r[5]),a&8388693&&(s.$$scope={dirty:a,ctx:r}),!t&&a&2&&(t=!0,s.ref=r[1],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function p3(i,e,t){let n,o,l,r,a,s,{position:u=0}=e,{duration:f=0}=e,{timeCodes:_=[]}=e,g=nt(),y=g.callbacks?.onEpisodeChanged??Km.noop,h=!!g.callbacks?.onEpisodeClicked,C=g.ui.currentGridType$;O(i,C,L=>t(18,a=L));let w=g.ui.episodes.openedByKeyboard$;O(i,w,L=>t(17,r=L));let F=g.ui.episodes.panelOpened$;O(i,F,L=>t(3,l=L));let T=g.ui.isMobile;O(i,T,L=>t(6,s=L));let k,P=L=>{if(!!g.callbacks?.onEpisodeClicked){let oe=Sr(L);w.set(oe),F.set(!0),g.callbacks?.onEpisodeClicked?.(oe)}},j,W,U,se=async(L,ne,oe)=>{await Un(),L?.getAttribute("aria-expanded")==="false"&&ne&&!oe&&(w.set(!1),L.focus())};function de(L){k=L,t(1,k)}return i.$$set=L=>{"position"in L&&t(13,u=L.position),"duration"in L&&t(14,f=L.duration),"timeCodes"in L&&t(0,_=L.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576&&t(16,n=u/f),i.$$.dirty&114689){let L=ss(n,f,_);L&&j?.text!==L.text&&(y(L),t(15,j=L))}i.$$.dirty&32768&&t(2,o=j?.text||""),i.$$.dirty&262144&&(tn(a,"xl")?t(4,W="FULL"):tn(a,"m")&&ym(a,"xl")?t(4,W="COUNT"):t(4,W="SHORT")),i.$$.dirty&4&&t(5,U=`${z("tooltip_episodes")}: ${o}`),i.$$.dirty&131082&&se(k,r,l)},[_,k,o,l,W,U,s,h,C,w,F,T,P,u,f,j,n,r,a,de]}var oc=class extends B{constructor(e){super(),D(this,e,p3,m3,R,{position:13,duration:14,timeCodes:0},s3)}},cs=oc;function _3(i){let e,t,n,o,l=i[2].default,r=Ee(l,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=ie(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(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,f){v(u,e,f),r&&r.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ke(e,s=Be(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"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function g3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var rc=class extends B{constructor(e){super(),D(this,e,g3,_3,R,{})}},jm=rc;function h3(i){let e,t;return e=new jm({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function b3(i){let e,t,n;function o(r){i[4](r)}let l={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:z("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[h3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&8&&(s.click=r[3]),a&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function v3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=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,l=s.disabled),"click"in s&&t(3,r=s.click)},[n,o,l,r,a]}var lc=class extends B{constructor(e){super(),D(this,e,v3,b3,R,{ref:0,hidden:1,disabled:2,click:3})}},fs=lc;function y3(i){let e,t,n,o,l=i[2].default,r=Ee(l,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=ie(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"class","_closed"),c(n,"clip-rule","evenodd"),ke(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ke(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function k3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var sc=class extends B{constructor(e){super(),D(this,e,k3,y3,R,{})}},Gm=sc;function w3(i){Se(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function C3(i){let e,t;return e=new Gm({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function S3(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var ac=class extends B{constructor(e){super(),D(this,e,S3,C3,R,{isOpened:0},w3)}},xm=ac;function I3(i){let e,t;return e=new xm({props:{isOpened:i[3]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&8&&(l.isOpened=n[3]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function T3(i){let e,t,n;function o(r){i[6](r)}let l={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[I3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&32&&(s.ariaLabel=r[5]),a&16&&(s.click=r[4]),a&136&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function P3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{graphIsOpened:r=!1}=e,{click:a}=e,s;function u(f){n=f,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"hidden"in f&&t(1,o=f.hidden),"disabled"in f&&t(2,l=f.disabled),"graphIsOpened"in f&&t(3,r=f.graphIsOpened),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,s=r?z("tooltip_interactive_graph_on"):z("tooltip_interactive_graph_off"))},[n,o,l,r,a,s,u]}var uc=class extends B{constructor(e){super(),D(this,e,P3,T3,R,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},ds=uc;function E3(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function M3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var cc=class extends B{constructor(e){super(),D(this,e,M3,E3,R,{})}},ms=cc;var Qm=require("@vkontakte/videoplayer-shared");function A3(i){Se(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=I("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function L3(i){let e,t,n,o,l=i[1]&&Ym(i);return n=new ms({}),{c(){l&&l.c(),e=H(),t=I("div"),A(n.$$.fragment),c(t,"class","svelte-1ot3duq"),K(t,"mobile",i[1])},m(r,a){l&&l.m(r,a),v(r,e,a),v(r,t,a),E(n,t,null),o=!0},p(r,a){r[1]?l||(l=Ym(r),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),(!o||a&2)&&K(t,"mobile",r[1])},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){m(n.$$.fragment,r),o=!1},d(r){r&&(b(e),b(t)),l&&l.d(r),M(n)}}}function V3(i){let e,t,n;function o(r){i[5](r)}let l={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:z("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:Zn.KeyK,$$slots:{default:[L3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&10&&(s.className=(r[1]?"btn-m--play":"")+" "+r[3]),a&4&&(s.disabled=r[2]),a&16&&(s.click=r[4]),a&66&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function R3(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{className:r=""}=e,{click:a=Qm.noop}=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,l=u.disabled),"className"in u&&t(3,r=u.className),"click"in u&&t(4,a=u.click)},[n,o,l,r,a,s]}var fc=class extends B{constructor(e){super(),D(this,e,R3,V3,R,{ref:0,isMobile:1,disabled:2,className:3,click:4},A3)}},ol=fc;function B3(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function D3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var dc=class extends B{constructor(e){super(),D(this,e,D3,B3,R,{})}},Zm=dc;function N3(i){let e,t;return e=new Zm({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function O3(i){let e,t,n;function o(r){i[4](r)}let l={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:z("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[N3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&8&&(s.click=r[3]),a&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function F3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=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,l=s.disabled),"click"in s&&t(3,r=s.click)},[n,o,l,r,a]}var mc=class extends B{constructor(e){super(),D(this,e,F3,O3,R,{ref:0,hidden:1,disabled:2,click:3})}},ps=mc;var pc=require("@vkontakte/videoplayer-shared");function q3(i){Se(i,"svelte-1aqpg2x",".icon.svelte-1aqpg2x{width:24px !important;height:24px !important;;}.inner.svelte-1aqpg2x{width:16px;height:16px;background-color:var(--white)}")}function H3(i){let e,t,n,o;return{c(){e=I("img"),c(e,"class","icon svelte-1aqpg2x"),oo(e.src,t=i[0])||c(e,"src",t),c(e,"aria-hidden","true")},m(l,r){v(l,e,r),n||(o=Te(e,"error",i[7]),n=!0)},p(l,r){r&1&&!oo(e.src,t=l[0])&&c(e,"src",t)},d(l){l&&b(e),n=!1,o()}}}function U3(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner svelte-1aqpg2x"></div>',c(e,"class","icon icon-error-stub svelte-1aqpg2x")},m(t,n){v(t,e,n)},p:be,d(t){t&&b(e)}}}function z3(i){let e;function t(l,r){return l[5]?U3:H3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=et()},m(l,r){o.m(l,r),v(l,e,r)},p(l,r){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&b(e),o.d(l)}}}function W3(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:[z3]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&16&&(l.className=n[4]?"btn-full-opacity":""),o&2&&(l.ariaLabel=n[1]),o&8&&(l.click=n[3]),o&64&&(l.disabled=n[6]),o&4&&(l.testId=n[2]),o&545&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function K3(i,e,t){let n,o,l,{iconUrl:r}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:f=pc.noop}=e,_=()=>{t(5,l=!0)};return i.$$set=g=>{"iconUrl"in g&&t(0,r=g.iconUrl),"ariaLabel"in g&&t(1,a=g.ariaLabel),"disabled"in g&&t(8,s=g.disabled),"testId"in g&&t(2,u=g.testId),"onClick"in g&&t(3,f=g.onClick)},i.$$.update=()=>{i.$$.dirty&8&&t(4,n=f===pc.noop),i.$$.dirty&272&&t(6,o=n||s)},t(5,l=!1),[r,a,u,f,n,l,o,_,s]}var _c=class extends B{constructor(e){super(),D(this,e,K3,W3,R,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},q3)}},_s=_c;var kp=require("@vkontakte/videoplayer-shared");var Oi=require("@vkontakte/videoplayer-core"),ft=require("@vkontakte/videoplayer-shared"),co=require("@vkontakte/videoplayer-statistics"),BL=require("@vkontakte/videoplayer-interactive");var It=require("@vkontakte/videoplayer-shared");var Xm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var j3="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",gs=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={slotRequested$:new It.Subject,started$:new It.Subject,paused$:new It.Subject,resumed$:new It.Subject,ended$:new It.Subject,skipped$:new It.Subject,clicked$:new It.Subject};this.loadAdman=e=>new Promise((t,n)=>{let o,l=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};(0,It.addScript)(j3,e,this.loadTimeout).then(()=>{window.AdmanHTML?t():(window.admanAsyncInit=l,o=window.setTimeout(l,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};this.onAdStarted=(e,t)=>{(0,It.assertNonNullable)(this.adsState),(0,It.assertNonNullable)(this.playerState),(0,It.assertNonNullable)(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"}),Xe(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay),this.startWatchDog()};this.onAdTimeRemained=({currentTime:e})=>{(0,It.assertNonNullable)(this.adsState),this.adsState.position.set(e),this.startWatchDog()};this.onAdPaused=()=>{this.stopWatchDog(),(0,It.assertNonNullable)(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{(0,It.assertNonNullable)(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing"),this.startWatchDog()};this.onAdMidrollPoint=()=>{(0,It.assertNonNullable)(this.adman),(0,It.assertNonNullable)(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch{this.log({message:"could not start midroll"}),this.onAdError()}};this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{this.log({message:"ad clicked"}),this.videoElement?.pause(),this.events.clicked$.next(),this.stopWatchDog()};this.onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout,this.runtimeTimeout=t.runtimeTimeout}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){if(this.adman)return;this.startWatchDog();let{width:t,height:n,isFullscreen:o,isAutoplay:l,adsContainer:r,adsVideoElement:a,slotId:s,params:u={},duration:f,previewParam:_}=e,g,y=this.playerState&&Xe(this.playerState.vsid);y&&(g=parseInt(y,36));let h={dl:encodeURIComponent(window.location.href),autoplay:l,player_width:t,player_height:n,puid10:Xm(t,n),puid11:o?0:1,preview:_,...g?{request_id:g}:{},duration:f,...u};_||delete h.preview;let C={slot:s,wrapper:r,videoEl:a,videoQuality:n,params:h,browser:{mobile:!1}};try{let w=new window.AdmanHTML;w.setDebug(!1),w.onReady(this.onAdsReady),w.onStarted(this.onAdStarted),w.onPlayed(this.onAdPlayed),w.onPaused(this.onAdPaused),w.adMidrollPoint(this.onAdMidrollPoint),w.onClosed(this.onAdClosed),w.onSkipped(this.onAdSkipped),w.onClicked(this.onAdClicked),w.onTimeRemained(this.onAdTimeRemained),w.onCompleted(this.onAdCompleted),w.onError(this.onAdError),w.init(C),this.adman=w,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(C)}`})}catch{this.log({message:"could not init adman"}),this.onAdError()}}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}(0,It.assertNonNullable)(this.actions),(0,It.assertNonNullable)(this.adsState),(0,It.assertNonNullable)(this.playerState);let t=this.currentAdSection==="postroll";this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${t}`}),t&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"})),this.actions.switchFromAdsToVideo(!t)}togglePlay(){(0,It.assertNonNullable)(this.adsState),this.log({message:"toggle play"});let e=Xe(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){if(this.log({message:`set volume ${e}`}),this.adman)try{this.adman.setVolume(e)}catch{this.log({message:"could not set ad volume"}),this.onAdError()}this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch{this.log({message:"could not set ad fullscreen"}),this.onAdError()}}startPreroll(){if((0,It.assertNonNullable)(this.adman),!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch{this.log({message:"could not start preroll"}),this.onAdError()}}}startPostroll(){(0,It.assertNonNullable)(this.adman),(0,It.assertNonNullable)(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch{this.log({message:"could not start postroll"}),this.onAdError()}}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError(),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){(0,It.assertNonNullable)(this.adman),this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch{this.onAdError(),this.log({message:"could not resume ad"})}}pause(){(0,It.assertNonNullable)(this.adman),this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch{this.onAdError(),this.log({message:"could not pause ad"})}}skip(){(0,It.assertNonNullable)(this.adman),this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch{this.log({message:"could not skip ad"}),this.onAdError()}}setPosition(e,t){this.adman?.setPosition(Math.floor(e),Math.floor(t))}destroy(){this.log({message:"destroy"}),this.stopWatchDog(),this.adman?.destroy(),this.videoElement&&(0,It.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var Jm=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 gc=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let t=[],n=e.split(this.twoLinesRegExp);for(let o of n){let l={startTime:0,endTime:0,texts:[],lang:""},r=o.split(this.oneLineRegExp);for(let a of r)if(!l.startTime&&!l.endTime){let s=new hs,{startTime:u,endTime:f}=s.parse(a);l.startTime=u,l.endTime=f}else if(a.trim()!==""){let s=new hc,{texts:u}=s.parse(a);l.texts=[...l.texts,...u]}(l.startTime||l.endTime)&&l.texts.length>0&&t.push(l)}return t}},hs=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 l=Number(e)*60*60,r=Number(t)*60,a=Number(n),s=+`0.${o}`;return l+r+a+s}},hc=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](r){let a=0,s=[];for(;a<r.length;){let u=["<",">"].reduce((f,_)=>{let g=r.indexOf(_,a);return f===-1||f>g?g:f},-1);if(u===-1){s.push(r.substring(a));break}s.push(r.substring(a,u)),a=u+1}return s}}),l=new hs;for(let r of o)l.isTime(r)?t.texts.push({type:"timestamp",value:l.parseTime(r)}):t.texts.push({type:"text",value:r});return t}},$m=gc;var vs=require("@vkontakte/videoplayer-shared"),wo,Bn,bc=0,vc=!1,ep=(i,e=0,t=0)=>i<e&&i<t,bs=(i,e=0,t=0)=>i>=e&&i<=t,G3=(i,e=0,t=0)=>i>e&&i>t,tp=(i,e,t,n=!1)=>{let o=t.find(({lang:a})=>a===e.value)?.subtitles;if(n){let a=o?.find(({startTime:s,endTime:u})=>bs(i,s,u));return a?{...a,lang:e.value}:void 0}let l=i>=bc,r=i<bc;if(bc=i,r&&(vc=!1),(0,vs.isNonNullable)(wo)&&bs(i,wo.startTime,wo.endTime)&&wo.lang===e.value)return wo;if(!(0,vs.isNonNullable)(Bn)&&o?.length&&!vc){let a=o.find(({startTime:s,endTime:u})=>bs(i,s,u)||l&&ep(i,s,u));Bn=a&&{...a,lang:e.value},wo=void 0,!(0,vs.isNonNullable)(Bn)&&o[o.length-1].endTime<i&&(vc=!0);return}else{if(bs(i,Bn?.startTime,Bn?.endTime))return wo=Bn,Bn=void 0,wo;(l&&G3(i,Bn?.startTime,Bn?.endTime)||r&&ep(i,Bn?.startTime,Bn?.endTime))&&(Bn=void 0)}};var ip=require("@vkontakte/videoplayer-shared"),VL=require("@vkontakte/videoplayer-statistics"),ys=class{constructor(e,t=new ip.Subscription){this.oneStat=e;this.statSubscription=t}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var np=({interfaceLanguage:i,isCyrillicRelatedInterface:e,videoId:t,isClip:n,isLiveCatchUpMode:o,statAuthToken:l,isAudioDisabled:r,canDownload:a,callbacks:s,webApi:u,videoEpisodes:f,previewThumbsData:_,uiConfig:g,coreConfig:y,player:h,disabledControls:C,isInteractive:w,interactiveRanges$:F,isInteractiveTime$:T,replayInteractive:k,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:j,additionalButtons:W,additionalSettingsMenuItems:U,additionalContextMenuItems:se,looped:de=!1,statistics:L,saveRate:ne})=>{let oe={...y,configName:[...y.configName??[],"ui"],isAudioDisabled:r,live:{...y.live??{},isLiveCatchUpMode:!!o}},Z=g,Pe=ft.Tracer.createRootTracer(Z.features.saveTraceInfoToFile),q=Pe.createComponentTracer("Store"),N=h||new Oi.Player(oe,Pe),le=new ft.Logger,Y=new gs(le,{loadTimeout:Z.ads.loadTimeout,initTimeout:Z.ads.initTimeout,runtimeTimeout:Z.ads.runtimeTimeout}),re=Ho.getInstance(),ce=u?.pictureInPictureApi,qe=u?.annotationsApi,Ve=le.createComponentLog("Store"),we,Re,Ue={},Ge=new vl,x=L?bt(L.oneStat.vsid$):Ln(void 0),fe=Fe(ho()),Ye=ce?.info.isActive$??new ft.ValueSubject(!1),_e=ce?.info.type,ze=Fe(0),$e=Fe([]),rt=(0,ft.merge)(N.events.fatalError$,N.events.managedError$).subscribe(S=>$e.update(Q=>[...Q,S])),Je=Ln(!1,S=>{let Q=N.events.fatalError$.subscribe(()=>S(!0));return()=>Q.unsubscribe()}),Ze=async S=>{let Q=Object.values(ft.InterfaceLanguage).includes(S);if(Z.downloadVKLanguages&&(Q&&Z.updateBuiltinLanguages||!la(S))){let Ke;try{Ke=await(0,ft.loadVKLangPack)(S,Vf,Rf)}catch(at){L?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),re?.report(at,{errorType:"VKLangPack",fatal:!1})}Ke&&(ra({language:S,pack:Ke,fallback:Z.defaultLanguage}),He.set(S))}la(S)&&He.set(S)},He=Fe(i),J=Fe(e);Ze(i);let je=(S,Q)=>{let Ce=Xe(He);return sa(Ce,S,Q,Z.defaultLanguage)},ge=Fe("thumb"),Ie=(()=>{let S=ei([Je,ge],([Q,Ce])=>Q?"crashed":Ce);return{...S,is:Q=>Xe(S)===Q}})(),We=(()=>{let S=Fe(new Set(C));return{...S,add:Q=>{S.update(Ce=>new Set([...Ce].concat(Q)))},remove:Q=>{S.update(Ce=>{let Ke=[...Ce];return new Set(Array.isArray(Q)?Ke.filter(at=>!Q.includes(at)):Ke.filter(at=>at!==Q))})},includes:Q=>{let Ce=Xe(S);return Array.isArray(Q)?Q.every(Ke=>Ce.has(Ke)):Ce.has(Q)}}})();q.log("create store"),Ve({message:"create store"});let me=S=>{let Q=S.container;Q.append(N.experimental.element$.getValue()),Tt=new MutationObserver(Ce=>{let{removedNodes:Ke}=Ce[0];Ke.length&&Q.append(N.experimental.element$.getValue())}),Tt.observe(Q,{childList:!0})},$=S=>{Ve({message:`init video, config: ${JSON.stringify(S)}`}),w?me(S):N.initVideo(S),q.log("init video",{isInteractive:w}),S.subtitles&&N.setExternalTextTracks(S.subtitles),we=S},dt=new ft.Subject,mt=S=>dt.next(S),tt=new ft.Subject,ut=new ft.Subject,Pt=new ft.Subject,Tt=null,it={actionRewind$:tt,actionSeek$:ut,inPiP$:Ye,inFullscreen$:new ft.Observable(S=>fe.subscribe(Q=>S.next(Q))),actionSetSubtitle$:Pt,nextMovie$:dt};if(L){let{oneStat:S,statSubscription:Q}=L;w||Q.add(S.attachTo(N)),Q.add(S.attachToUi(it)),Q.add(S.attachToAds(Y.events)),S.authorize(l).catch(Ce=>{Ve({message:`onestat auth error ${String(Ce)}`})})}if(re){let S=new ft.Subscription,Q=(Ce,Ke)=>S.add(Ce.subscribe(Ke));if(Q(N.events.managedError$,Ce=>{re.logIError(Ce)}),Q(N.events.fatalError$,Ce=>{re.logIError(Ce,!0)}),L){let{oneStat:Ce}=L;Q(Ce.experimental.error$,Ke=>{re.logIError(Ke)})}re.sentrySubscription.add(S)}let Et=()=>{ft.clientChecker.isIOS&&Re&&pd(Re)},Ht=new ft.Subscription().add(N.experimental.element$.subscribe(S=>{S&&(Re=S,S.classList.add("player-media"),zo(ce)&&(ce.updateVideoElement(),ce.registryEventHandlers()),w&&S.setAttribute("pip","false"))})).add(N.events.ended$.subscribe(()=>{Et(),s?.onEnded?.()})).add(N.events.started$.subscribe(async()=>{zo(ce)&&await ce?.revealPictureInPicture();let S=N.info.muted$.getValue();s?.onStarted?.(),Ue.onStarted?.(S)})).add(N.events.willSeek$.subscribe(({from:S,to:Q})=>{s?.onSeek?.(S,Q)})).add(N.info.position$.subscribe(S=>{let Q=N.info.duration$.getValue();isFinite(Q)&&Q>0&&(s?.onTimeupdate?.(Q,S),Y.setPosition(S,Q))})).add(N.events.fatalError$.subscribe(()=>{s?.onCrashed?.()})).add(N.events.loadedMetadata$.subscribe(()=>{kt.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(S=>{kt.ui.is3DVideo.set(S)})).add(N.info.isEnded$.subscribe(S=>{w&&(S?(T?.getValue()&&We.add(hl),We.add("PLAY_BUTTON")):We.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(S=>{s?.onLiveTime?.(S)})).add(N.info.isStalled$.subscribe(S=>{s?.onStalledChanged?.(S)})).add(Y.events.started$.subscribe(()=>{s?.adsInfo?.onStarted?.()})).add(Y.events.ended$.subscribe(()=>{s?.adsInfo?.onCompleted?.()})),oi=new ft.Subscription,st=()=>{oi.add(N.events.log$.subscribe(S=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${S.component}`,S.message)})).add(le.log$.subscribe(S=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${S.component}.`,S.message)}))},vt=()=>{oi.unsubscribe()},ri=(S,Q)=>{q.log("start camera manual rotation",{mx:S,my:Q}),N.startCameraManualRotation(S,Q)},pe=(S=!1)=>{q.log("stop camera manual rotation",{immediate:S}),N.stopCameraManualRotation(S)},Rt=(S,Q,Ce)=>{q.log("move camera focus px",{xpx:S,ypx:Q,dt:Ce}),N.moveCameraFocusPX(S,Q,Ce)},Bt=()=>{N.holdCamera()},Lt=()=>{N.releaseCamera()},wt=Ln(N.info.position$.getValue(),S=>{let Q,Ce,Ke=()=>{let at=N.info.playbackState$.getValue(),Vt=N.info.isLive$.getValue(),Nt=N.info.duration$.getValue(),Ot=N.info.position$.getValue();if([Oi.PlaybackState.PLAYING,Oi.PlaybackState.PAUSED].includes(at)){let _n=Vt?Ot-Nt:N.getExactTime();_n!==Ce&&S(_n),Ce=_n}Q=requestAnimationFrame(Ke)};return Ke(),()=>cancelAnimationFrame(Q)}),Xt=bt(Ye),Mt=bt(N.info.playbackState$),ui=bt(N.info.currentBuffer$),Ti=bt(N.info.isEnded$),Jt=bt(N.info.isLive$),Ut=Z.features.playbackRate?bt(N.info.canChangePlaybackSpeed$):Ln(!1),si=bt(N.info.liveBufferTime$),zt=bt(N.info.volume$),Pi=bt(N.info.muted$),Ct=$s(N.info.autoQualityLimits$.pipe((0,ft.map)(({max:S})=>S!==void 0)),N.info.autoQualityLimits$.getValue()?.max!==void 0),Ei=bt(N.info.autoQualityLimitingAvailable$),Mi=bt(N.info.availableQualities$),ci=bt(N.info.availableQualitiesFps$),fi=bt(N.info.chromecastState$),he=bt(N.info.chromecastDeviceName$),pt=bt(N.info.currentFormat$),ai=bt(N.info.throughputEstimation$),qi=bt(N.info.videoBitrate$),nn=bt(N.info.intrinsicVideoSize$),Hi=bt(N.info.duration$),Ui=bt(N.info.isAudioAvailable$),ti=null,Ai=N.info.isBuffering$,di=Ln(Ai.getValue(),S=>{let Q=Ai.subscribe(Ce=>{Ce&&ti===null?ti=window.setTimeout(()=>{S(Ai.getValue()),ti=null},Z.loaderDelay):S(Ce)});return()=>{Q.unsubscribe(),ti&&clearTimeout(ti)}}),hi=()=>{ti&&clearTimeout(ti),ti=null},bi=ei([Hi,Jt],([S,Q])=>Q?-S:S),gn=ei([Mt],([S])=>S===Oi.PlaybackState.PLAYING),mi=bt(N.info.atLiveEdge$),on=bt(N.info.atLiveDurationEdge$),rn=bt(N.info.position$),hn=ei([rn,Hi],([S,Q])=>isFinite(S)&&isFinite(Q)&&!!Q),pi=ei([fi],([S])=>S===Oi.ChromecastState.CONNECTED),vi=bt(N.info.availableVideoStreams$),zi=Z.features.audioLanguages?bt(N.info.availableAudioStreams$):Ln([]),xt=bt(N.info.currentVideoStream$),In=bt(N.info.currentAudioStream$),Wi=S=>{S.language&&na(S.language),N.setVideoStream(S)},ln=S=>{S.language&&na(S.language),N.setAudioStream(S)},sn=S=>{let Q;if(S.length===1&&(Q=S.at(0)),Q??=S.find(Ke=>"isDefault"in Ke&&Ke.isDefault),Q)return Q;let Ce=ld();return Ce&&(Q=S.find(({language:Ke})=>Ce===Ke)),Q??=S.at(0),Q},Li=!1;Ht.add(N.info.availableAudioStreams$.subscribe(S=>{if(!Li&&S.length){let Q=sn(S);Q&&(N.setAudioStream(Q),Li=!0)}}));let Vi=!1;Ht.add(N.info.availableVideoStreams$.subscribe(S=>{if(!Vi&&S.length){let Q=sn(S);Q&&(N.setVideoStream(Q),Vi=!0)}}));let _i=Fe(void 0),Ki=bt(N.info.isAutoQualityEnabled$,S=>S&&_i.set(void 0)),Tn=bt(N.info.currentQuality$,()=>_i.set(void 0)),ji=ei([_i,Tn],([S,Q])=>S??Q),yi=ei([Mi,ci,Ki,ji,pt],([S,Q,Ce,Ke,at])=>{let Vt=[];at!==Oi.VideoFormat.MPEG&&Vt.push({value:"auto",displayValue:je("auto_quality_option"),selected:Ce});let Nt=S.filter(Ot=>!(0,ft.isInvariantQuality)(Ot));for(let Ot of Nt){let _n=Q[Ot];Vt.push({value:Ot,displayValue:`${Ot}${_n?Jm(_n):""}`,selected:Ce?!1:Ot===Ke})}return Vt}),ki=bt(N.info.currentPlaybackRate$),ii=ei([ki,mi,on],([S,Q,Ce])=>{let Ke=Ce||w?1:Z.controls.playbackRateMin,at=Q?1:Z.controls.playbackRateMax,Vt=Z.controls.playbackRateStep,Nt=[];for(let Ot=Ke;Ot<=at;Ot+=Vt)Nt.push({value:Ot,displayValue:Ot===1?je("playback_rate_1"):je("playback_rate",{multiplier:Ot.toString(10)}),selected:S===Ot});return Nt}),Kt={displayValue:je("subtitles_off"),value:"off"},Wt=Fe({...Kt}),Gi=Z.features.subtitles?bt(N.info.availableTextTracks$):Ln([]),wi=Gf(),Ri=ei([Gi,Wt],([S,Q],Ce)=>{let Ke=[],at=S.find(({language:Vt})=>Vt===Q.value);if(at?.url){let[,Vt]=wi.find(at.url)??[];if(Vt){Ce(Vt);return}Ge.download(at.url).then(Nt=>{if(!Nt||Ge.isDestroyed())return;let Ot=new $m,_n=at.language,xr=!!at.isAuto,Ks=Ot.parse(Nt);_n&&Ke.push({lang:_n,subtitles:Ks,isAuto:xr}),wi.add(at.url,Ke),Ce(Ke)}).catch(Nt=>{L?.oneStat?.logError({errorType:"Subtitles download",fatal:!1}),re?.report(Nt,{errorType:"Subtitles download",fatal:!1})})}Ce(Ke)}),lt=ei([ki,gn,Wt],([S,Q,Ce],Ke)=>{let Nt;if(N.info.isLive$.getValue()&&Q&&Ce.value!==Kt.value){let _n=()=>{let xr=1e3/(3*S);Nt=setTimeout(_n,xr),Ke(Date.now())};return _n(),()=>clearTimeout(Nt)}}),Ci=ei([Gi,Wt],([S,Q])=>{if(S?.length>0){let Ce=[{...Kt,selected:Q?.value===Kt.value}];for(let{language:Ke,isAuto:at}of S)Ke&&Go[Ke]&&Ce.push({displayValue:at?je("subtitles_auto",{language:Go[Ke]}):Go[Ke],value:Ke,selected:Q?.value===Ke,isAuto:at});return Ce}else return[]}),Yt={available:[],prev:[]},Si=ei([wt,Wt,Ri,lt],([S,Q,Ce,Ke])=>{let at=N.info.isLive$.getValue();if(at&&Yt.prev!==Ce){let Vt=Ce.find(({lang:Ot})=>Ot===Q.value),Nt=Yt.prev.find(({lang:Ot})=>Ot===Q.value);if(Vt){let Ot={...Vt,subtitles:[...Nt?.subtitles??[],...Vt.subtitles]};Yt.available=[Ot],Yt.prev=Ce}}if(Q&&Q.value!==Kt.value){let Vt=at?Re?.currentTime??0:S,Nt=at?Yt.available:Ce;return tp(Vt,Q,Nt,at)}}),xi=ei([Si],([S])=>S?.texts?S.texts:[]),Qe=Fe(!0),bn=ei([ui,bi,rn,si],([S,Q,Ce,Ke])=>{let at=S?.end??0;if(!Ke)return at/Q;let Nt=-Ce+Ke-Q;return(at-Nt)/Q}),an=bt(N.info.availableSources$),Yi=ei([an],([S])=>Object.keys(S?.[Oi.VideoFormat.MPEG]||{}).length>0),Bi=()=>{let S=Object.keys(N.info.availableSources$?.getValue()?.[Oi.VideoFormat.MPEG]||{}),Q=(0,ft.getHighestQuality)(S)||ft.VideoQuality.Q_144P;return we.sources[Oi.VideoFormat.MPEG]?.[Q]},vn=()=>{let S=Bi();if(S)q.log("download video",{url:S}),jf(S,we?.meta?.title||"video");else{let Q="There is no URL for download video";q.log("download video",{message:Q}),Ve({message:Q})}},un=()=>{Ve({message:"toggle muted"});let S=N.info.muted$.getValue(),Q=N.info.volume$.getValue(),Ce=Q===0||S,Ke=!Ce;q.log("toggle muted",{muted:S,volume:Q,soundIsOff:Ce,nextValue:Ke}),fn(Ke)},Qt=()=>{q.log("close settings menu"),kt.ui.settingsMenuVisible.set(!1)},Pn=S=>{q.log("open settings menu",{wasOpenedByKeyboard:S}),kt.ui.settingsMenuOpenedByKeyboard.set(!!S),kt.ui.settingsMenuVisible.set(!0)},cn=S=>{Xe(kt.ui.settingsMenuVisible)?Qt():Pn(S)},gi=(S,Q=S,Ce=!1)=>{let Ke=!Ce,at=N.info.muted$.getValue();Ve({message:`set volume, volume: ${S}, preferredVolume: ${Q}, internalCall: ${Ke}`}),q.log("set volume",{volume:S,preferredVolume:Q,internalCall:Ke}),N.setVolume(S),Y.setVolume(S),Ke&&s?.onVolumeChange?.(S),ta(Q),at?(N.setMuted(!1),Ke&&s?.onUnmute?.(),kl(!1)):!at&&S===0&&(N.setMuted(!0),Ke&&s?.onMute?.(),kl(!0))},fn=(S,Q=!1)=>{let Ce=!Q,Ke=N.info.volume$.getValue();if(Ve({message:`set muted, currentVolume: ${Ke}, mute: ${S}, internalCall: ${Ce}`}),q.log("set muted",{mute:S,currentVolume:Ke,internalCall:Ce}),N.setMuted(S),Y.setVolume(S?0:Ke),kl(S),Ce&&(S?s?.onMute?.():s?.onUnmute?.()),Ke===0){let at=yl()??Z.volumeDefault;at===0&&(at=Z.volumeMinRestore,ta(at)),N.setVolume(at),Y.setVolume(at),Ce&&s?.onVolumeChange?.(at)}},Qi=Fe(!1),dn=S=>{q.log("set looped",{isLooped:S}),Qi.set(S),N.setLooped(S)};dn(de);let yn=()=>{s?.uiInfo?.onReportProblem?.()},Dn=()=>{N.prepare()},Zi=()=>{(0,ft.assertNonNullable)(kt);let S=Xe(kt.ui.controls.disabledControls$),Q=Xe(kt.playerPhase),Ce={playerPhase:Q,isInteractive:w,isVideoEnded:!1,action:"none"};if(S.has("PLAY_BUTTON"))return;if(Ve({message:"toggle play"}),Q==="ads"){Ce.action="play",q.log("toggle adman play",Ce),Y.togglePlay();return}let Ke=()=>{Ve({message:"toggle play, call player.play"}),Ce.action="play",N.play(),s?.onPlay?.()},at=()=>{Ve({message:"toggle play, call player.pause"}),Ce.action="pause",N.pause(),s?.onPause?.()};if(N.info.isEnded$.getValue()){if(Ve({message:"toggle play, video ended, seek to 0"}),tt.next(),ut.next(co.SeekAction.REWIND),w){k?.();return}N.seekTime(0),Ke()}else N.info.playbackState$.getValue()!==Oi.PlaybackState.PLAYING?Ke():at();q.log("toggle play",Ce)},Di=S=>{Ve({message:`set quality, quality: ${S}`}),q.log("set quality",{quality:S}),N.setAutoQuality(S==="auto"),S!=="auto"?($f(t,S),_i.set(S),N.setQuality(S)):ia()},Ni=S=>{Ve({message:`set trafficSavingEnabled, value: ${S}`}),q.log("set traffic saving enabled",{trafficSavingEnabled:S}),N.setAutoQualityLimits({max:S?Z.trafficSavingLimit:void 0}),od(S)},En=S=>{q.log("set playback rate",{playbackRate:S}),N.setPlaybackRate(S),Z.features.saveRate&&ne&&!N.info.isLive$.getValue()&&sd(S)},jn=()=>{let S=Xe(ii),Q=S.findIndex(({selected:Ke})=>Ke);if(Q===S.length-1)return;let Ce=S[Q+1];En(Ce.value)},Gn=()=>{let S=Xe(ii),Q=S.findIndex(({selected:Ke})=>Ke);if(Q===0)return;let Ce=S[Q-1];En(Ce.value)},Zt=S=>{q.log("set subtitles",{...S}),S&&S.value!==Kt.value&&Pt.next(S.isAuto?S.value+"_auto":S.value),Wt.set(S)},xn=()=>{q.log("toggle subtitles");let S=Xe(Ci),Q=Xe(Wt),Ce=Xe(He);if(Q?.value===Kt.value){let Ke=S.filter(at=>at.value!==Kt.value).find(at=>at.value===Ce)||S[1];Zt(Ke??{...Kt})}else Zt({...Kt,selected:!1})},Xi=(S,Q,Ce=!0)=>{if(Ve({message:`seek to time, time: ${S}`}),q.log("seek to time",{time:S,action:Q,forcePrecise:Ce}),ut.next(Q),N.info.isLive$.getValue()){let Ke=N.info.duration$.getValue(),at=Math.min(0,Ke+S);N.seekTime(at,Ce)}else{if(T?.getValue())return;N.seekTime(Lo(S),Ce)}},Nn=S=>{Ve({message:`seek to episode start time: ${S}`}),q.log("seek to episode start time",{time:S}),Xi(S,co.SeekAction.EPISODE,!0)},On=(S,Q)=>{Ve({message:`seek to percent, percent: ${S}`}),q.log("seek to percent",{percent:S,action:Q});let Ce=Math.round(Xe(bi)*S);Xi(Ce,Q,!1)},Mn=S=>{Ve({message:`seek external, time: ${S}`}),q.log("seek external",{time:S}),ut.next(co.SeekAction.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-S:S)},Fn=S=>{let Q=S.max??"none",Ce=S.min??"none";Ve({message:`set auto quality limitation. Max: ${Q}. Min: ${Ce}`}),q.log("set auto quality limits",{max:Q,min:Ce}),N.setAutoQualityLimits(S)},te=S=>{Ve({message:`seek external to episode start time: ${S}`}),q.log("seek external to episode start time",{time:S}),Xi(S,co.SeekAction.EPISODE,!0)},yt=S=>{Ve({message:`set playback rate to: ${S}`}),q.log("set playback rate external",{playbackRate:S}),N.setPlaybackRate(S)},mn=Fe(void 0),Ji=Fe(!1),mo=S=>{Ve({message:`start scrubbing, progress: ${S}`}),q.log("start scrubbing",{progress:S}),Ji.set(!0),eo(S)},eo=S=>{mn.set(S)},to,io,$i=()=>{mn.set(void 0),Ji.set(!1)},Yn=()=>{clearTimeout(io),clearTimeout(to),to=window.setTimeout(()=>{$i()},500),Re?.removeEventListener("seeked",Yn)},ee=S=>{Ve({message:`complete scrubbing, progress: ${S}`}),q.log("complete scrubbing",{progress:S}),On(S,co.SeekAction.SLIDER),Xe(kt.ui.isMobile)&&Xe(kt.state.currentFormat$)===Oi.VideoFormat.HLS?(Re?.addEventListener("seeked",Yn),io=window.setTimeout(()=>{Yn()},300)):$i()},Co=ei([wt,bi,mn],([S,Q,Ce],Ke)=>{Ke((0,ft.isNonNullable)(Ce)?Ce*Q:S)}),Zo=Fe({width:0,height:0}),Xo=ei([Zo],([{width:S}],Q)=>{let Ce=km(S);Q(Ce)}),po=Fe(!1),Wr=ei([Xo,po],([S,Q])=>Q?W.filter(Ce=>!Ce.hideOnMobile):W.filter(Ce=>!Ce.hideOnDesktopGridTypes?.includes(S))),pn=Fe(U),Jo=ei([pn],([S])=>Z.features.additionalSettingsMenuItems?S.map(Q=>Q.type==="SWITCH"?{...Q,onClick:Q.onChangeEnabled}:Q):[]),Qn=(S,Q)=>{let Ce=Xe(pn).map(Ke=>Ke.id!==S?Ke:{...Ke,...Q});pn.set(Ce)},no=S=>{let Q=Xe(pn);if(Q.some(Ce=>Ce.id===S.id)){Ve({message:`Settings menu item with id: "${S.id}" was exist! Can't add more with the same id`});return}Q.push(S),pn.set(Q)},So=S=>{let Q=Xe(pn);if(!Q.some(Ce=>Ce.id===S)){Ve({message:`Can't find settings menu item with id: "${S}"! Can't remove item with this id`});return}Q=Q.filter(Ce=>Ce.id!==S),pn.set(Q)},An=Fe(se),Io=ei([An],([S])=>Z.features.additionalContextMenuItems?S:[]),$o=(S,Q)=>{let Ce=Xe(An).map(Ke=>Ke.id!==S?Ke:{...Ke,...Q});An.set(Ce)},er=S=>{let Q=Xe(An);if(Q.some(Ce=>Ce.id===S.id)){Ve({message:`Context menu item with id: "${S.id}" was exist! Can't add more with the same id`});return}Q.push(S),An.set(Q)},tr=S=>{let Q=Xe(An);if(!Q.some(Ce=>Ce.id===S)){Ve({message:`Can't find context menu item with id: "${S}"! Can't remove item with this id`});return}Q=Q.filter(Ce=>Ce.id!==S),An.set(Q)},ir=ei([po,Je],([S,Q],Ce)=>{Ce(S&&Q)}),nr=()=>{ut.next(co.SeekAction.LIVE),Ve({message:"switch to active live"}),q.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==Oi.PlaybackState.PLAYING&&kt.actions.internal.togglePlay()},or=()=>{q.log("skip adman"),Y.skip()},G=(S=!0)=>{(0,ft.assertNonNullable)(kt),Ve({message:`switch from ads to video, callPlay: ${S}`}),q.log("switch from ads to video",{callPlay:S}),ge.set("video"),S&&N.play()},Dt=()=>{(0,ft.assertNonNullable)(kt),Ve({message:"switch from video to ads"}),q.log("switch from video to ads"),kt.actions.internal.pause(),Et(),ge.set("ads")},kn=S=>{(0,ft.assertNonNullable)(kt);let Q=S?"LiveWaitingStart":"thumb";q.log("set live waiting start",{state:S,playerPhase:Q}),ge.set(Q)},qn=S=>{(0,ft.assertNonNullable)(kt);let Q=S?"LiveWaitingRecover":"thumb";q.log("set live waiting recover",{state:S,playerPhase:Q}),ge.set(Q)},To=S=>{(0,ft.assertNonNullable)(kt);let Q=S?"LiveWaitingRecord":"thumb";q.log("set live waiting record",{state:S,playerPhase:Q}),ge.set(Q)},Po=()=>((0,ft.assertNonNullable)(kt),q.log("get debug text data"),Wf(N,we,kt)),_o=()=>((0,ft.assertNonNullable)(kt),JSON.stringify(Pe.getFinishedSpans())),rr=()=>((0,ft.assertNonNullable)(kt),Kf(N,we,kt)),lr=()=>Re,Eo=()=>{Ve({message:"toggle chromecast"}),q.log("toggle chromecast"),N.toggleChromecast()},sr=S=>{if((0,ft.assertNonNullable)(kt),N.info.isEnded$.getValue())return;let Q=!S;if(Xe(kt.playerPhase)==="ads"){Ve({message:`pause ads, internalCall: ${Q}`}),q.log("pause ads",{internalCall:Q}),Y.pause();return}Ve({message:`pause video, internalCall: ${Q}`}),q.log("pause video",{internalCall:Q}),Q&&s?.onPause?.(),N.pause()},zs=S=>{(0,ft.assertNonNullable)(kt);let Q=!S;if(Xe(kt.playerPhase)==="ads"){Ve({message:`play ads, internalCall: ${Q}`}),q.log("play ads",{internalCall:Q}),Y.play();return}Ve({message:`play video, internalCall: ${Q}`}),q.log("play video",{internalCall:Q}),Q&&s?.onPlay?.(),N.play()},Kr=(S,Q)=>{(0,ft.assertNonNullable)(kt),Ve({message:`first start, show ads: ${S}, internalCall: ${!Q}`}),q.log("first start",{showAds:S,external:Q}),S?ge.set("ads"):(ge.set("video"),Q?N.play():kt.actions.internal.togglePlay())},ar=()=>(Ve({message:"getting time codes"}),f),jr=()=>{let S=ar();if(!S||[0,1].includes(S.length))return;let Q=N.info.position$.getValue();return S.find(Ce=>Ce.time>Q)},cl=S=>{let Q=S;Q||(Q=jr());let Ce=N.info.position$.getValue();q.log("seek to next episode",{currentTime:Ce,...Q}),Q&&(Ve({message:"seek to next episode"}),Xi(Q.time,co.SeekAction.EPISODE,!0))},ur=()=>{let S=ar();if(!S||[0,1].includes(S.length))return;let Q=N.info.position$.getValue(),Ce=S.findIndex(at=>at.time>Q),Ke=Ce===-1?S.length-2:Ce-2;if(!(Ke<0))return S[Ke]},ot=S=>{let Q=S;Q||(Q=ur());let Ce=N.info.position$.getValue();q.log("seek to prev episode",{currentTime:Ce,...Q}),Q&&(Ve({message:"seek to prev episode"}),Xi(Q.time,co.SeekAction.EPISODE,!0))},wn=()=>(Ve({message:"getting preview thumbs data"}),q.log("get preview thumbs data",{..._}),_),Mo=async()=>{let S=ce?.isActive(),Q="none";ce?.isActive()?(Q="remove",await ce?.remove()):(Q="request",await ce?.request()),q.log("toggle picture in picture",{isActive:S,action:Q})},Gr=(S=-90)=>{q.log("rotate video",{alphaDiff:S}),ze.update(Q=>Q+S)},Ao=Fe([]);F?.subscribe(S=>{let Q=[];for(let Ce=0;Ce<S.length;Ce++){let{range:[Ke,at],subjects:Vt}=S[Ce];Ce===0&&Ke!==0&&Q.push({time:0,text:"",interactive:!1,completed:!0}),Q.push({time:Ke/1e3,text:"",interactive:!0,completed:!Vt.length}),at!==1/0&&Q.push({time:at/1e3,text:"",interactive:!1,completed:!0})}Ao.set(Q)});let Ws=Fe(!1);T?.subscribe(S=>{S&&Xe(Ji)&&$i()});let Lo=S=>{if(!w)return S;let Q=Xe(Ao),Ce=Xe(bi),at=Xe(rn)/Ce,Vt=Q.find(Nt=>Nt.interactive&&!Nt.completed&&Nt.time>at);return typeof Vt?.time=="number"?Math.min(S,Vt.time-.05):S},cr=()=>{kt.ui.episodes.panelOpened$.set(!1)},fr=()=>{q.log("destroy store"),clearTimeout(io),clearTimeout(to),Ht.unsubscribe(),oi.unsubscribe(),N.destroy(),Y.destroy(),L?.destroy(),re?.destroy(),rt.unsubscribe(),Tt?.disconnect(),Tt=null,Ge.destroy()},kt={interfaceLanguage$:He,isCyrillicRelatedInterface$:J,initVideo:$,videoId:t,isClip:n,playerPhase:Ie,vsid:x,state:{positionExact$:wt,positionWithScrubbing$:Co,duration$:bi,playbackState$:Mt,isPlaying$:gn,isLoaderVisible:di,bufferedProgress$:bn,isLive$:Jt,canChangePlaybackSpeed$:Ut,isActiveLive$:mi,isOldestAvailableLive$:on,isRewindableLive$:hn,isEnded$:Ti,muted$:Pi,volume$:zt,trafficSavingEnabled$:Ct,autoQualityLimitingAvailable$:Ei,availableVideoStreams$:vi,availableAudioStreams$:zi,videoStream$:xt,audioStream$:In,currentQuality$:ji,isAutoQualityEnabled$:Ki,availableQualities$:yi,currentPlaybackRate$:ki,availablePlaybackRates$:ii,currentSubtitle$:Wt,availableSubtitlesList$:Ci,currentSubtitleCaptions$:xi,isAutoSubtitleCaptionVisible$:Qe,chromecastState$:fi,chromecastDeviceName$:he,chromecastConnected$:pi,currentFormat$:pt,throughputEstimation$:ai,videoBitrate$:qi,videoSize$:nn,errorLog$:$e,crashed$:Je,isAudioAvailable$:Ui,isAudioDisabled:!!r,canDownload:Z.features.download&&!!a,availableSources$:an,hasMpegSources$:Yi,isInteractive:w,showInteractiveGraph:Z.features.interactiveGraph,showSeekToInteractive:Z.features.seekToInteractive,showPlayPrevChapter:Z.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:Z.features.interactiveTimeIndicator&&!!Xe(Ao).length,interactiveEpisodes$:Ao,isInteractiveTime$:T?bt(T):Fe(!1),graphIsOpened$:Fe(!1),isInteractiveExpectation$:Ws,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:j,looped$:Qi,loadedMetadata$:Fe(!1)},ui:{controlsVisible:Fe(!1),touched:Fe(!1),controls:{prevButton:Fe(void 0),playButton:Fe(void 0),replayButton:Fe(void 0),nextButton:Fe(void 0),playPrevChapterButton:Fe(void 0),seekToInteractiveButton:Fe(void 0),interactiveGraphButton:Fe(void 0),liveButton:Fe(void 0),time:Fe(void 0),episodes:Fe(void 0),volume:Fe(void 0),subtitles:Fe(void 0),settings:Fe(void 0),context:Fe(void 0),chromecast:Fe(void 0),pip:Fe(void 0),fullscreen:Fe(void 0),vkLogo:Fe(void 0),interactiveTimeIndicator:Fe(void 0),timeline:Fe(void 0),additionalButtons:W.length?W.reduce(S=>[...S,Fe(void 0)],[]):[],disabledControls$:We},modals:{hotKeyMap:{show:Fe(!1),data:Fe({title:"",closeBtnText:"",groups:[]})}},isFullscreen:fe,rotateAlpha:ze,isAutoplay:Fe(!1),debugPanelVisible:Fe(!1),episodes:{panelOpened$:Fe(!1),openedByKeyboard$:Fe(!1)},contextMenu:{visible$:Fe(!1),btnRef$:Fe(void 0),openedByBtnKeyboard$:Fe(!1),openedByHotKey$:Fe(!1),lastActiveElem$:Fe(void 0),showContextMenuBtn$:Fe(!1),position$:Fe({top:0,left:0})},playerSize:Zo,isMobile:po,mobileNotReportControlHidden$:ir,mobileUnmuteButtonExpanded:Fe(!1),mobileUnmuteButtonVisible:Fe(!1),icon3DVideoVisible:Fe(!1),settingsMenuVisible:Fe(!1),settingsMenuOpenedByKeyboard:Fe(!1),scrubbingInProgress:Ji,is3DVideo:Fe(!1),isPictureInPictureActive$:Xt,pictureInPictureType$:Ln(_e),currentGridType$:Xo,additionalButtons$:Wr,additionalSettingsMenuItems$:Jo,additionalContextMenuItems$:Io,interactiveHideMobileControls:Fe(!1),overlayContainer$:Fe(void 0),startedByKeyboard$:Fe(!1)},ads:{position:Fe(0),duration:Fe(0),playbackState:Fe("inactive"),canSkip:Fe(!1),secondsToWatchBeforeSkip:Fe(0),postrollPassed:Fe(!1)},webApi:{pictureInPictureApi:ce,annotationsApi:qe},actions:{internal:{preload:Dn,firstStart:S=>Kr(S,!1),pause:()=>sr(!1),togglePlay:Zi,toggleMuted:un,toggleSettingsMenu:cn,openSettingsMenu:Pn,closeSettingsMenu:Qt,setVolume:gi,setVideoStream:Wi,setAudioStream:ln,setQuality:Di,setTrafficSavingEnabled:S=>Ni(S),setPlaybackRate:En,incrementPlaybackRate:jn,decrementPlaybackRate:Gn,setSubtitle:Zt,toggleSubtitle:xn,togglePictureInPicture:Mo,startScrubbing:mo,progressScrubbing:eo,completeScrubbing:ee,toggleChromecast:Eo,switchToActiveLive:nr,switchFromAdsToVideo:G,switchFromVideoToAds:Dt,skipAd:or,setLiveWaitingStart:kn,setLiveWaitingRecover:qn,setLiveWaitingRecord:To,getDebugTextData:Po,getTraceTextData:_o,getDebugPanelData:rr,getVideoElement:lr,seekTime:(S,Q,Ce)=>Xi(S,Q,Ce),clearDelayedBufferingCheckTimeout:hi,seekEpisodeStartTime:Nn,seekToPercent:On,getNextEpisode:jr,seekToNextEpisode:cl,getPrevEpisode:ur,seekToPrevEpisode:ot,startLogging:st,stopLogging:vt,startCameraManualRotation:ri,stopCameraManualRotation:pe,moveCameraFocusPX:Rt,holdCamera:Bt,releaseCamera:Lt,getVideoEpisodes:ar,getPreviewThumbsData:wn,downloadVideo:vn,addLanguage:ra,setLanguage:Ze,nextMovie:mt,videoRotate:Gr,correctSeekTimeToInteractive:Lo,replayInteractive:k,setLooped:dn,reportProblem:yn},external:{firstStart:S=>Kr(S,!0),play:()=>zs(!0),pause:()=>sr(!0),seekTime:S=>Mn(S),seekEpisodeStartTime:S=>te(S),setPlaybackRate:S=>yt(S),setAutoQualityLimits:S=>Fn(S),setMuted:S=>fn(S,!0),setVolume:S=>gi(S,S,!0),returnFocusToEpisodes:cr,updateAdditionalSettingsItem:Qn,addAdditionalSettingsItem:no,removeAdditionalSettingsItem:So,updateAdditionalContextItem:$o,addAdditionalContextItem:er,removeAdditionalContextItem:tr}},callbacks:s,setUiCallbacks:S=>{Ue={...S}},getAdmanWrapper:()=>Y,getLogger:()=>le,destroy:fr};return kt};var ws=(i,e,t,n)=>{if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],l=["interactiveTimeIndicator"],r=i.getBoundingClientRect();for(let[a,s]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(a)){let u=t[a]?.getBoundingClientRect(),f=(n||l.includes(a))&&!!u&&!!(u.right-u.left);s.set({positionStartX:0,positionEndX:0,left:f?Math.round(u.left-r.left):0,right:f?Math.round(u.right-r.left):0,top:f?Math.round(u.top-r.top):0,bottom:f?Math.round(u.bottom-r.top):0,isDisplayed:f})}};var Cs=async(i,e,t)=>{await Un(),e&&t&&(t.focus(),i.set(!1))};function Y3(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function Q3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var yc=class extends B{constructor(e){super(),D(this,e,Q3,Y3,R,{})}},op=yc;function Z3(i){let e,t;return e=new op({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function X3(i){let e,t,n;function o(r){i[8](r)}let l={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:[Z3]},$$scope:{ctx:i}};return i[2]!==void 0&&(l.ref=i[2]),e=new gt({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&8&&(s.className=r[3]?"opened":""),a&1&&(s.disabled=r[0]),a&2&&(s.ariaLabel=r[1]),a&8&&(s.ariaExpanded=r[3]),a&16384&&(s.$$scope={dirty:a,ctx:r}),!t&&a&4&&(t=!0,s.ref=r[2],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function J3(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:l=""}=e,r=nt(),a=r.ui.contextMenu.visible$;O(i,a,F=>t(3,n=F));let s=r.ui.contextMenu.openedByBtnKeyboard$,u=r.ui.contextMenu.showContextMenuBtn$,f=r.ui.contextMenu.position$,_=r.ui.contextMenu.btnRef$,g,y=F=>{let T=Sr(F),k=Bd(g);f.set(k),s.set(T),a.set(!n)},h=()=>{u.set(!0)},C=()=>{u.set(!1)};function w(F){g=F,t(2,g)}return i.$$set=F=>{"disabled"in F&&t(0,o=F.disabled),"ariaLabel"in F&&t(1,l=F.ariaLabel)},i.$$.update=()=>{i.$$.dirty&4&&g&&_.set(g)},[o,l,g,n,a,y,h,C,w]}var kc=class extends B{constructor(e){super(),D(this,e,J3,X3,R,{disabled:0,ariaLabel:1})}},rp=kc;function $3(i){Se(i,"svelte-17imlp9",".interactive-episode-icon-animated.svelte-17imlp9{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.invisible.svelte-17imlp9{opacity:0;visibility:hidden}.fullscreen.svelte-17imlp9:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.svelte-17imlp9{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.svelte-17imlp9{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.svelte-17imlp9{top:40px;right:16px}}@keyframes svelte-17imlp9-pulse{0%{transform:scale(1);border-width:1px;opacity:0}10%{opacity:1}50%{transform:scale(1.5);border-width:1px;opacity:0.5}100%{transform:scale(1.5);border-width:0.5px;opacity:0}}.pulse.svelte-17imlp9{display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);animation:1s svelte-17imlp9-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.svelte-17imlp9{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.svelte-17imlp9{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.svelte-17imlp9{display:none}")}function e5(i){let e,t;return e=new $l({props:{completed:!0}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p:be,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function t5(i){let e,t,n,o,l,r,a,s,u,f;function _(y){i[22](y)}let g={tooltipContent:z("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[e5]},$$scope:{ctx:i}};return i[0]!==void 0&&(g.ref=i[0]),t=new At({props:g}),ve.push(()=>Oe(t,"ref",_)),t.$on("click",i[14]),{c(){e=I("div"),A(t.$$.fragment),o=H(),l=I("div"),r=H(),a=I("div"),c(l,"class","ref-block svelte-17imlp9"),K(l,"hidden",i[1]),c(a,"class","pulse svelte-17imlp9"),K(a,"paused",i[4]),c(e,"class","interactive-episode-icon-animated svelte-17imlp9"),K(e,"mobile",i[2]),K(e,"fullscreen",i[6]),K(e,"invisible",i[1])},m(y,h){v(y,e,h),E(t,e,null),p(e,o),p(e,l),i[23](l),p(e,r),p(e,a),i[24](a),s=!0,u||(f=[Te(e,"mousemove",_t(i[21])),Te(e,"mouseleave",i[15])],u=!0)},p(y,h){let C={};h[0]&32&&(C.tooltipActive=y[5]),h[1]&1&&(C.$$scope={dirty:h,ctx:y}),!n&&h[0]&1&&(n=!0,C.ref=y[0],Ne(()=>n=!1)),t.$set(C),(!s||h[0]&2)&&K(l,"hidden",y[1]),(!s||h[0]&16)&&K(a,"paused",y[4]),(!s||h[0]&4)&&K(e,"mobile",y[2]),(!s||h[0]&64)&&K(e,"fullscreen",y[6]),(!s||h[0]&2)&&K(e,"invisible",y[1])},i(y){s||(d(t.$$.fragment,y),s=!0)},o(y){m(t.$$.fragment,y),s=!1},d(y){y&&b(e),M(t),i[23](null),i[24](null),u=!1,ct(f)}}}function i5(i,e,t){let n,o,l,r,a,s,{ref:u=void 0}=e,f,_=nt(),g=Vn(),{interactiveControlsOpacity$:y}=g;O(i,y,Y=>t(18,o=Y));let h=_.ui.isMobile;O(i,h,Y=>t(2,a=Y));let C=_.ui.isFullscreen;O(i,C,Y=>t(6,s=Y));let w=_.state.isInteractiveTime$;O(i,w,Y=>t(19,l=Y));let F=g.showInteractiveTimeIndicatorTooltip$;O(i,F,Y=>t(17,n=Y));let T=_.ui.controlsVisible;O(i,T,Y=>t(20,r=Y));let k=_.callbacks?.onInteractiveTimeIndicatorClick,P,j,W,U=()=>{t(4,W=!0)},se=()=>{de(),f?.addEventListener("animationiteration",U,{once:!0})},de=()=>{t(4,W=!1),f?.removeEventListener("animationiteration",U)},L=Y=>{F.set(Y)},ne,oe=()=>{j||(F.set(!0),k?.())};Hn(()=>{F.clearTimeout(),de()});let Z=()=>{F.set(!1)};function Pe(Y){Cn.call(this,i,Y)}function q(Y){u=Y,t(0,u)}function N(Y){ve[Y?"unshift":"push"](()=>{u=Y,t(0,u)})}function le(Y){ve[Y?"unshift":"push"](()=>{f=Y,t(3,f)})}return i.$$set=Y=>{"ref"in Y&&t(0,u=Y.ref)},i.$$.update=()=>{i.$$.dirty[0]&1048580&&t(16,P=!a&&r),i.$$.dirty[0]&851968&&t(1,j=!l||!!o||P),i.$$.dirty[0]&2&&t(4,W=j),i.$$.dirty[0]&131074&&t(5,ne=n&&!j),i.$$.dirty[0]&131072&&(n?se():de())},[u,j,a,f,W,ne,s,y,h,C,w,F,T,L,oe,Z,P,n,o,l,r,Pe,q,N,le]}var wc=class extends B{constructor(e){super(),D(this,e,i5,t5,R,{ref:0},$3,[-1,-1])}},Ss=wc;function o5(i){Se(i,"svelte-ips4nw",".wrapper-bottom.svelte-ips4nw.svelte-ips4nw{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box}.wrapper-bottom.svelte-ips4nw>.svelte-ips4nw{pointer-events:auto}.controls.svelte-ips4nw.svelte-ips4nw{width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box}.controls-left.svelte-ips4nw.svelte-ips4nw,.controls-right.svelte-ips4nw.svelte-ips4nw{display:flex;align-content:center}.controls-left.svelte-ips4nw.svelte-ips4nw{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-ips4nw > *:not(:first-child),.controls-right.svelte-ips4nw > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-ips4nw.svelte-ips4nw{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-ips4nw.svelte-ips4nw{transition:none}.settings-menu.svelte-ips4nw.svelte-ips4nw{bottom:57px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}")}function lp(i,e,t){let n=i.slice();return n[210]=e[t].iconUrl,n[211]=e[t].ariaLabel,n[212]=e[t].testId,n[213]=e[t].onClick,n[214]=e[t].tooltip,n}function sp(i){let e,t,n;function o(r){i[174](r)}let l={disabled:!i[9],tooltipContent:z("tooltip_previous"),$$slots:{default:[r5]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(l.ref=i[23].prevButton),e=new At({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&512&&(s.disabled=!r[9]),a[0]&4608|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].prevButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function r5(i){let e,t;return e=new Br({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4096&&(l.click=n[12]),o[0]&512&&(l.disabled=!n[9]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function ap(i){let e,t,n;function o(r){i[175](r)}let l={disabled:i[74],tooltipContent:z("tooltip_restart"),$$slots:{default:[l5]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(l.ref=i[23].replayButton),e=new At({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[2]&4096&&(s.disabled=r[74]),a[2]&4096|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].replayButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function l5(i){let e,t;return e=new ol({props:{click:i[128],disabled:i[74]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[2]&4096&&(l.disabled=n[74]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function up(i){let e,t,n;function o(r){i[177](r)}let l={tooltipContent:i[47],disabled:i[75],$$slots:{default:[s5]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(l.ref=i[23].playButton),e=new At({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&65536&&(s.tooltipContent=r[47]),a[2]&8192&&(s.disabled=r[75]),a[0]&67108864|a[1]&8|a[2]&8192|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].playButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function s5(i){let e,t,n;function o(r){i[176](r)}let l={isMobile:!1,isPlaying:i[34],click:i[85],disabled:i[75]};return i[26]!==void 0&&(l.ref=i[26]),e=new nl({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&8&&(s.isPlaying=r[34]),a[2]&8192&&(s.disabled=r[75]),!t&&a[0]&67108864&&(t=!0,s.ref=r[26],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function cp(i){let e,t,n;function o(r){i[178](r)}let l={disabled:!i[8],tooltipContent:z("tooltip_next"),$$slots:{default:[a5]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(l.ref=i[23].nextButton),e=new At({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&256&&(s.disabled=!r[8]),a[0]&2304|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].nextButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function a5(i){let e,t;return e=new Br({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&2048&&(l.click=n[11]),o[0]&256&&(l.disabled=!n[8]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function u5(i){let e,t,n,o,l=i[121]&&c5(i),r=i[120]&&d5(i),a=i[119]&&p5(i);return{c(){l&&l.c(),e=H(),r&&r.c(),t=H(),a&&a.c(),n=et()},m(s,u){l&&l.m(s,u),v(s,e,u),r&&r.m(s,u),v(s,t,u),a&&a.m(s,u),v(s,n,u),o=!0},p(s,u){s[121]&&l.p(s,u),s[120]&&r.p(s,u),s[119]&&a.p(s,u)},i(s){o||(d(l),d(r),d(a),o=!0)},o(s){m(l),m(r),m(a),o=!1},d(s){s&&(b(e),b(t),b(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function c5(i){let e,t,n;function o(r){i[179](r)}let l={disabled:i[73],tooltipContent:z("tooltip_interactive_go_back"),disabledTooltipContent:z(i[124]),$$slots:{default:[f5]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(l.ref=i[23].playPrevChapterButton),e=new At({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[2]&2048&&(s.disabled=r[73]),a[0]&131072|a[2]&2048|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].playPrevChapterButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function f5(i){let e,t;return e=new ps({props:{disabled:i[73],click:i[17]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[2]&2048&&(l.disabled=n[73]),o[0]&131072&&(l.click=n[17]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function d5(i){let e,t,n;function o(r){i[180](r)}let l={disabled:i[76],tooltipContent:z("tooltip_interactive_seek"),disabledTooltipContent:z(i[78]),$$slots:{default:[m5]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(l.ref=i[23].seekToInteractiveButton),e=new At({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[2]&16384&&(s.disabled=r[76]),a[2]&65536&&(s.disabledTooltipContent=z(r[78])),a[0]&32768|a[2]&16384|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].seekToInteractiveButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function m5(i){let e,t;return e=new fs({props:{disabled:i[76],click:i[15]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[2]&16384&&(l.disabled=n[76]),o[0]&32768&&(l.click=n[15]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function p5(i){let e,t,n;function o(r){i[181](r)}let l={tooltipContent:i[48],disabled:i[77],$$slots:{default:[_5]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(l.ref=i[23].interactiveGraphButton),e=new At({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.tooltipContent=r[48]),a[2]&32768&&(s.disabled=r[77]),a[0]&65536|a[1]&1|a[2]&32768|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].interactiveGraphButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function _5(i){let e,t;return e=new ds({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&65536&&(l.click=n[16]),o[1]&1&&(l.graphIsOpened=n[31]),o[2]&32768&&(l.disabled=n[77]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function fp(i){let e,t,n;function o(r){i[182](r)}let l={tooltipContent:i[50],$$slots:{default:[g5]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(l.ref=i[23].liveButton),e=new At({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&524288&&(s.tooltipContent=r[50]),a[0]&2097152|a[1]&524288|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].liveButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function g5(i){let e,t;return e=new ls({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.isActiveLive=n[21]),o[1]&524288&&(l.ariaLabel=n[50]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function dp(i){let e,t,n;function o(r){i[183](r)}let l={isMobile:!1,showDuration:i[55],position:i[4]?i[79]:i[80],duration:i[4]?i[81]:i[82]};return i[23].time!==void 0&&(l.ref=i[23].time),e=new Jl({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&16777216&&(s.showDuration=r[55]),a[0]&16|a[2]&393216&&(s.position=r[4]?r[79]:r[80]),a[0]&16|a[2]&1572864&&(s.duration=r[4]?r[81]:r[82]),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].time,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function mp(i){let e,t;return e=new cs({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[2]&262144&&(l.position=n[80]),o[2]&1048576&&(l.duration=n[82]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function h5(i){let e,t,n=i[20]&&mp(i);return{c(){n&&n.c(),e=et()},m(o,l){n&&n.m(o,l),v(o,e,l),t=!0},p(o,l){o[20]?n?(n.p(o,l),l[0]&1048576&&d(n,1)):(n=mp(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),m(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function b5(i){let e,t;return e=new _s({props:{iconUrl:i[210],ariaLabel:i[211]??i[214],testId:i[212],onClick:i[213]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&268435456&&(l.iconUrl=n[210]),o[0]&268435456&&(l.ariaLabel=n[211]??n[214]),o[0]&268435456&&(l.testId=n[212]),o[0]&268435456&&(l.onClick=n[213]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function pp(i){let e,t;return e=new At({props:{tooltipContent:i[214],width:40,$$slots:{default:[b5]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&268435456&&(l.tooltipContent=n[214]),o[0]&268435456|o[7]&1&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function _p(i){let e,t,n;function o(r){i[186](r)}let l={disabled:!i[6],tooltipContent:i[51],disabledTooltipContent:"",$$slots:{default:[v5]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(l.ref=i[23].vkLogo),e=new At({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&64&&(s.disabled=!r[6]),a[1]&1048576&&(s.tooltipContent=r[51]),a[0]&192|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].vkLogo,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function v5(i){let e,t;return e=new ns({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&128&&(l.targetUrl=n[7]),o[0]&64&&(l.logoClickable=n[6]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function y5(i){let e,t;return e=new Cm({props:{click:i[127]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p:be,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function gp(i){let e,t,n;function o(r){i[188](r)}let l={tooltipContent:i[52],$$slots:{default:[k5]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(l.ref=i[23].subtitles),e=new At({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&2097152&&(s.tooltipContent=r[52]),a[0]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].subtitles,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function k5(i){let e,t;return e=new um({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&262144&&(l.isSubtitlesEnabled=n[18]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function hp(i){let e,t,n,o;function l(a){i[189](a)}let r={supportLink:i[10],playerControlsHeight:i[46]?.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(r.ref=i[24]),t=new Xl({props:r}),ve.push(()=>Oe(t,"ref",l)),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","settings-menu svelte-ips4nw")},m(a,s){v(a,e,s),E(t,e,null),o=!0},p(a,s){let u={};s[0]&1024&&(u.supportLink=a[10]),s[1]&32768&&(u.playerControlsHeight=a[46]?.clientHeight),s[0]&16384&&(u.returnFocus=a[14]),!n&&s[0]&16777216&&(n=!0,u.ref=a[24],Ne(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){m(t.$$.fragment,a),o=!1},d(a){a&&b(e),M(t)}}}function bp(i){let e,t,n;function o(r){i[191](r)}let l={tooltipContent:i[27]?void 0:z("tooltip_settings_off"),$$slots:{default:[w5]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(l.ref=i[23].settings),e=new At({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&134217728&&(s.tooltipContent=r[27]?void 0:z("tooltip_settings_off")),a[0]&33554432|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].settings,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function w5(i){let e,t,n;function o(r){i[190](r)}let l={};return i[25]!==void 0&&(l.ref=i[25]),e=new il({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&33554432&&(t=!0,s.ref=r[25],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function C5(i){let e,t,n;function o(r){i[192](r)}let l={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[S5]},$$scope:{ctx:i}};return i[23].context!==void 0&&(l.ref=i[23].context),e=new At({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&1024&&(s.className=r[41]?"":"out-of-view"),a[1]&262144&&(s.tooltipContent=r[49]),a[1]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].context,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function S5(i){let e,t;return e=new rp({props:{ariaLabel:i[49]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[1]&262144&&(l.ariaLabel=n[49]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function vp(i){let e,t,n;function o(r){i[193](r)}let l={tooltipContent:i[53],$$slots:{default:[I5]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(l.ref=i[23].fullscreen),e=new At({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&4194304&&(s.tooltipContent=r[53]),a[0]&1073750016|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].fullscreen,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function I5(i){let e,t;return e=new ts({props:{click:i[13],isFullscreen:i[30]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&8192&&(l.click=n[13]),o[0]&1073741824&&(l.isFullscreen=n[30]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function yp(i){let e,t,n;function o(r){i[194](r)}let l={tooltipContent:i[54],$$slots:{default:[T5]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(l.ref=i[23].chromecast),e=new At({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&8388608&&(s.tooltipContent=r[54]),a[0]&536870912|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].chromecast,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function T5(i){let e,t;return e=new os({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&536870912&&(l.state=n[29]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function P5(i){let e,t,n;function o(r){i[197](r)}let l={};return i[23].interactiveTimeIndicator!==void 0&&(l.ref=i[23].interactiveTimeIndicator),e=new Ss({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&8388608&&(t=!0,s.ref=r[23].interactiveTimeIndicator,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function E5(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,T,k,P,j,W,U,se,de,L,ne,oe,Z,Pe,q,N,le;function Y(me){i[173](me)}let re={isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]};i[23].timeline!==void 0&&(re.ref=i[23].timeline),t=new us({props:re}),ve.push(()=>Oe(t,"ref",Y));let ce=i[38]&&sp(i),qe=i[35]&&ap(i),Ve=i[36]&&up(i),we=i[37]&&cp(i),Re=i[117]&&u5(i),Ue=!i[4]&&i[33]&&fp(i),Ge=i[19]&&dp(i);function x(me){i[184](me)}let fe={className:"w-max",disabled:!i[20],tooltipContent:z("tooltip_episodes"),$$slots:{default:[h5]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(fe.ref=i[23].episodes),h=new At({props:fe}),ve.push(()=>Oe(h,"ref",x));let Ye=ht(i[28]),_e=[];for(let me=0;me<Ye.length;me+=1)_e[me]=pp(lp(i,Ye,me));let ze=me=>m(_e[me],1,1,()=>{_e[me]=null}),$e=i[43]&&!i[4]&&_p(i);function rt(me){i[187](me)}let Je={$$slots:{default:[y5]},$$scope:{ctx:i}};i[23].volume!==void 0&&(Je.ref=i[23].volume),j=new At({props:Je}),ve.push(()=>Oe(j,"ref",rt));let Ze=i[40]&&gp(i),He=!i[83]&&!i[4]&&hp(i),J=i[42]&&!i[4]&&bp(i),je=i[84].features.contextMenuButton&&C5(i),ge=i[44]&&vp(i),Ie=i[39]&&yp(i),We=i[122]&&P5(i);return{c(){e=I("div"),A(t.$$.fragment),o=H(),l=I("div"),r=I("div"),ce&&ce.c(),a=H(),qe&&qe.c(),s=H(),Ve&&Ve.c(),u=H(),we&&we.c(),f=H(),Re&&Re.c(),_=H(),Ue&&Ue.c(),g=H(),Ge&&Ge.c(),y=H(),A(h.$$.fragment),F=H(),T=I("div");for(let me=0;me<_e.length;me+=1)_e[me].c();k=H(),$e&&$e.c(),P=H(),A(j.$$.fragment),U=H(),Ze&&Ze.c(),se=H(),He&&He.c(),de=H(),J&&J.c(),L=H(),je&&je.c(),ne=H(),ge&&ge.c(),oe=H(),Ie&&Ie.c(),Z=H(),We&&We.c(),Pe=et(),c(r,"class","controls-left svelte-ips4nw"),c(T,"class","controls-right svelte-ips4nw"),c(l,"class","controls svelte-ips4nw"),c(e,"class","wrapper-bottom svelte-ips4nw"),K(e,"hidden",i[1]),K(e,"controls-hidden",!i[3]),K(e,"no-smooth",i[2])},m(me,$){v(me,e,$),E(t,e,null),p(e,o),p(e,l),p(l,r),ce&&ce.m(r,null),p(r,a),qe&&qe.m(r,null),p(r,s),Ve&&Ve.m(r,null),p(r,u),we&&we.m(r,null),p(r,f),Re&&Re.m(r,null),p(r,_),Ue&&Ue.m(r,null),p(r,g),Ge&&Ge.m(r,null),p(r,y),E(h,r,null),p(l,F),p(l,T);for(let dt=0;dt<_e.length;dt+=1)_e[dt]&&_e[dt].m(T,null);p(T,k),$e&&$e.m(T,null),p(T,P),E(j,T,null),p(T,U),Ze&&Ze.m(T,null),p(T,se),He&&He.m(T,null),p(T,de),J&&J.m(T,null),p(T,L),je&&je.m(T,null),p(T,ne),ge&&ge.m(T,null),p(T,oe),Ie&&Ie.m(T,null),i[195](l),i[196](e),v(me,Z,$),We&&We.m(me,$),v(me,Pe,$),q=!0,N||(le=[dr(w=Mr.call(null,r)),Te(r,"fd:resize",i[185])],N=!0)},p(me,$){let dt={};$[1]&16384&&(dt.isHidden=!me[45]),$[0]&16&&(dt.isAds=me[4]),$[0]&32&&(dt.canRewindLive=me[5]),$[1]&2&&(dt.isRewindableLive=me[32]),!n&&$[0]&8388608&&(n=!0,dt.ref=me[23].timeline,Ne(()=>n=!1)),t.$set(dt),me[38]?ce?(ce.p(me,$),$[1]&128&&d(ce,1)):(ce=sp(me),ce.c(),d(ce,1),ce.m(r,a)):ce&&(ae(),m(ce,1,1,()=>{ce=null}),ue()),me[35]?qe?(qe.p(me,$),$[1]&16&&d(qe,1)):(qe=ap(me),qe.c(),d(qe,1),qe.m(r,s)):qe&&(ae(),m(qe,1,1,()=>{qe=null}),ue()),me[36]?Ve?(Ve.p(me,$),$[1]&32&&d(Ve,1)):(Ve=up(me),Ve.c(),d(Ve,1),Ve.m(r,u)):Ve&&(ae(),m(Ve,1,1,()=>{Ve=null}),ue()),me[37]?we?(we.p(me,$),$[1]&64&&d(we,1)):(we=cp(me),we.c(),d(we,1),we.m(r,f)):we&&(ae(),m(we,1,1,()=>{we=null}),ue()),me[117]&&Re.p(me,$),!me[4]&&me[33]?Ue?(Ue.p(me,$),$[0]&16|$[1]&4&&d(Ue,1)):(Ue=fp(me),Ue.c(),d(Ue,1),Ue.m(r,g)):Ue&&(ae(),m(Ue,1,1,()=>{Ue=null}),ue()),me[19]?Ge?(Ge.p(me,$),$[0]&524288&&d(Ge,1)):(Ge=dp(me),Ge.c(),d(Ge,1),Ge.m(r,y)):Ge&&(ae(),m(Ge,1,1,()=>{Ge=null}),ue());let mt={};if($[0]&1048576&&(mt.disabled=!me[20]),$[0]&1048576|$[2]&1310720|$[7]&1&&(mt.$$scope={dirty:$,ctx:me}),!C&&$[0]&8388608&&(C=!0,mt.ref=me[23].episodes,Ne(()=>C=!1)),h.$set(mt),$[0]&268435456){Ye=ht(me[28]);let ut;for(ut=0;ut<Ye.length;ut+=1){let Pt=lp(me,Ye,ut);_e[ut]?(_e[ut].p(Pt,$),d(_e[ut],1)):(_e[ut]=pp(Pt),_e[ut].c(),d(_e[ut],1),_e[ut].m(T,k))}for(ae(),ut=Ye.length;ut<_e.length;ut+=1)ze(ut);ue()}me[43]&&!me[4]?$e?($e.p(me,$),$[0]&16|$[1]&4096&&d($e,1)):($e=_p(me),$e.c(),d($e,1),$e.m(T,P)):$e&&(ae(),m($e,1,1,()=>{$e=null}),ue());let tt={};$[7]&1&&(tt.$$scope={dirty:$,ctx:me}),!W&&$[0]&8388608&&(W=!0,tt.ref=me[23].volume,Ne(()=>W=!1)),j.$set(tt),me[40]?Ze?(Ze.p(me,$),$[1]&512&&d(Ze,1)):(Ze=gp(me),Ze.c(),d(Ze,1),Ze.m(T,se)):Ze&&(ae(),m(Ze,1,1,()=>{Ze=null}),ue()),!me[83]&&!me[4]?He?(He.p(me,$),$[0]&16|$[2]&2097152&&d(He,1)):(He=hp(me),He.c(),d(He,1),He.m(T,de)):He&&(ae(),m(He,1,1,()=>{He=null}),ue()),me[42]&&!me[4]?J?(J.p(me,$),$[0]&16|$[1]&2048&&d(J,1)):(J=bp(me),J.c(),d(J,1),J.m(T,L)):J&&(ae(),m(J,1,1,()=>{J=null}),ue()),me[84].features.contextMenuButton&&je.p(me,$),me[44]?ge?(ge.p(me,$),$[1]&8192&&d(ge,1)):(ge=vp(me),ge.c(),d(ge,1),ge.m(T,oe)):ge&&(ae(),m(ge,1,1,()=>{ge=null}),ue()),me[39]?Ie?(Ie.p(me,$),$[1]&256&&d(Ie,1)):(Ie=yp(me),Ie.c(),d(Ie,1),Ie.m(T,null)):Ie&&(ae(),m(Ie,1,1,()=>{Ie=null}),ue()),(!q||$[0]&2)&&K(e,"hidden",me[1]),(!q||$[0]&8)&&K(e,"controls-hidden",!me[3]),(!q||$[0]&4)&&K(e,"no-smooth",me[2]),me[122]&&We.p(me,$)},i(me){if(!q){d(t.$$.fragment,me),d(ce),d(qe),d(Ve),d(we),d(Re),d(Ue),d(Ge),d(h.$$.fragment,me);for(let $=0;$<Ye.length;$+=1)d(_e[$]);d($e),d(j.$$.fragment,me),d(Ze),d(He),d(J),d(je),d(ge),d(Ie),d(We),q=!0}},o(me){m(t.$$.fragment,me),m(ce),m(qe),m(Ve),m(we),m(Re),m(Ue),m(Ge),m(h.$$.fragment,me),_e=_e.filter(Boolean);for(let $=0;$<_e.length;$+=1)m(_e[$]);m($e),m(j.$$.fragment,me),m(Ze),m(He),m(J),m(je),m(ge),m(Ie),m(We),q=!1},d(me){me&&(b(e),b(Z),b(Pe)),M(t),ce&&ce.d(),qe&&qe.d(),Ve&&Ve.d(),we&&we.d(),Re&&Re.d(),Ue&&Ue.d(),Ge&&Ge.d(),M(h),ni(_e,me),$e&&$e.d(),M(j),Ze&&Ze.d(),He&&He.d(),J&&J.d(),je&&je.d(),ge&&ge.d(),Ie&&Ie.d(),i[195](null),i[196](null),We&&We.d(me),N=!1,ct(le)}}}function M5(i,e,t){let n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,T,k,P,j,W,U,se,de,L,ne,oe,Z,Pe,q,N,le,Y,re=be,ce=()=>(re(),re=Gt(de,X=>t(144,Y=X)),de),qe,Ve=be,we=()=>(Ve(),Ve=Gt(se,X=>t(145,qe=X)),se),Re,Ue=be,Ge=()=>(Ue(),Ue=Gt(U,X=>t(146,Re=X)),U),x,fe=be,Ye=()=>(fe(),fe=Gt(W,X=>t(147,x=X)),W),_e,ze=be,$e=()=>(ze(),ze=Gt(j,X=>t(148,_e=X)),j),rt,Je=be,Ze=()=>(Je(),Je=Gt(P,X=>t(149,rt=X)),P),He,J=be,je=()=>(J(),J=Gt(k,X=>t(150,He=X)),k),ge,Ie=be,We=()=>(Ie(),Ie=Gt(T,X=>t(151,ge=X)),T),me,$=be,dt=()=>($(),$=Gt(F,X=>t(152,me=X)),F),mt,tt=be,ut=()=>(tt(),tt=Gt(w,X=>t(153,mt=X)),w),Pt,Tt=be,it=()=>(Tt(),Tt=Gt(C,X=>t(154,Pt=X)),C),Et,Ht=be,oi=()=>(Ht(),Ht=Gt(h,X=>t(155,Et=X)),h),st,vt=be,ri=()=>(vt(),vt=Gt(y,X=>t(156,st=X)),y),pe,Rt=be,Bt=()=>(Rt(),Rt=Gt(g,X=>t(157,pe=X)),g),Lt,wt=be,Xt=()=>(wt(),wt=Gt(_,X=>t(158,Lt=X)),_),Mt,ui=be,Ti=()=>(ui(),ui=Gt(f,X=>t(159,Mt=X)),f),Jt,Ut=be,si=()=>(Ut(),Ut=Gt(u,X=>t(160,Jt=X)),u),zt,Pi,Ct,Ei,Mi,ci,fi,he,pt,ai,qi,nn,Hi,Ui,ti,Ai,di,hi,bi,gn,mi,on,rn;i.$$.on_destroy.push(()=>re()),i.$$.on_destroy.push(()=>Ve()),i.$$.on_destroy.push(()=>Ue()),i.$$.on_destroy.push(()=>fe()),i.$$.on_destroy.push(()=>ze()),i.$$.on_destroy.push(()=>Je()),i.$$.on_destroy.push(()=>J()),i.$$.on_destroy.push(()=>Ie()),i.$$.on_destroy.push(()=>$()),i.$$.on_destroy.push(()=>tt()),i.$$.on_destroy.push(()=>Tt()),i.$$.on_destroy.push(()=>Ht()),i.$$.on_destroy.push(()=>vt()),i.$$.on_destroy.push(()=>Rt()),i.$$.on_destroy.push(()=>wt()),i.$$.on_destroy.push(()=>ui()),i.$$.on_destroy.push(()=>Ut());let{bottomHidden:hn}=e,{bottomNoSmooth:pi}=e,{showControls:vi}=e,{controlsElementRef:zi=void 0}=e,{isAds:xt=!1}=e,{canRewindLive:In}=e,{logoClickable:Wi}=e,{logoHidden:ln}=e,{logoTargetUrl:sn=""}=e,{showNextPrevButtons:Li}=e,{nextButtonActive:Vi}=e,{prevButtonActive:_i}=e,{isOneVideoPlaylist:Ki=!1}=e,{supportLink:Tn}=e,{customFullscreenSupported:ji=!0}=e,{playNextVideo:yi}=e,{playPrevVideo:ki}=e,{repeatPlaylist:ii}=e,{toggleFullscreen:Kt}=e,{returnFocus:Wt}=e,{seekToInteractive:Gi}=e,{toggleGraph:wi}=e,{playPrevChapter:Ri}=e,lt=nt(),Ci=Vn(),Yt=qt(),Si=lt.actions.internal.toggleMuted,xi=lt.actions.internal.togglePlay,Qe=lt.actions.internal.pause,bn=lt.actions.internal.toggleSubtitle,an=lt.callbacks?.onAudioDoesNotExistHint,Yi=lt.callbacks?.onAudioDisabledHint,Bi=lt.state.duration$;O(i,Bi,X=>t(82,on=X));let vn=lt.state.positionWithScrubbing$;O(i,vn,X=>t(80,gn=X));let un=lt.state.playbackState$;O(i,un,X=>t(161,Ct=X));let Qt=lt.state.chromecastConnected$;O(i,Qt,X=>t(83,rn=X));let Pn=lt.state.isAudioAvailable$;O(i,Pn,X=>t(198,L=X));let cn=lt.state.isAudioDisabled,gi=lt.state.isEnded$;O(i,gi,X=>t(169,Ui=X));let fn=lt.state.isLive$;O(i,fn,X=>t(33,he=X));let Qi=lt.state.isActiveLive$;O(i,Qi,X=>t(163,ci=X));let dn=lt.state.isRewindableLive$;O(i,dn,X=>t(32,fi=X));let yn=lt.ui.isPictureInPictureActive$;O(i,yn,X=>t(165,ai=X));let Dn=lt.ui.pictureInPictureType$;O(i,Dn,X=>t(164,pt=X));let Zi=lt.ui.settingsMenuVisible;O(i,Zi,X=>t(27,Z=X));let Di=lt.ui.settingsMenuOpenedByKeyboard;O(i,Di,X=>t(140,oe=X));let Ni=lt.ui.controls,En=lt.actions.internal.getVideoEpisodes(),jn=lt.state.chromecastState$;O(i,jn,X=>t(29,zt=X));let Gn=lt.state.availableSubtitlesList$;O(i,Gn,X=>t(168,Hi=X));let Zt=lt.state.currentSubtitle$;O(i,Zt,X=>t(170,ti=X));let xn=Ni.disabledControls$;O(i,xn,X=>t(172,di=X));let Xi=lt.ui.contextMenu.visible$;O(i,Xi,X=>t(162,Ei=X));let Nn=lt.ui.contextMenu.showContextMenuBtn$;O(i,Nn,X=>t(166,qi=X));let On=lt.ui.contextMenu.openedByBtnKeyboard$;O(i,On,X=>t(167,nn=X));let Mn=lt.ui.startedByKeyboard$;O(i,Mn,X=>t(139,ne=X));let Fn=lt.ads.duration;O(i,Fn,X=>t(81,mi=X));let te=lt.ads.position;O(i,te,X=>t(79,bi=X));let yt=lt.ads.playbackState;O(i,yt,X=>t(171,Ai=X));let mn=lt.ui.isFullscreen;O(i,mn,X=>t(30,Pi=X));let Ji=lt.ui.playerSize;O(i,Ji,X=>t(142,q=X));let mo=lt.ui.currentGridType$;O(i,mo,X=>t(143,N=X));let eo=lt.ui.additionalButtons$;O(i,eo,X=>t(28,le=X));let to=lt.actions.internal.getVideoElement,io=lt.actions.internal.replayInteractive,$i=lt.state.isInteractive,Yn=lt.state.isInteractiveTime$;O(i,Yn,X=>t(141,Pe=X));let ee=lt.state.showInteractiveGraph,Co=lt.state.showSeekToInteractive,Zo=lt.state.showPlayPrevChapter,Xo=lt.state.showInteractiveTimeIndicator,po=lt.state.graphIsOpened$;O(i,po,X=>t(31,Mi=X));let Wr=lt.state.playPrevChapterDisabledTooltip,pn=Ci.seekToInteractiveDisabledTooltip$;O(i,pn,X=>t(78,hi=X));let Jo=()=>lt.actions.internal.toggleChromecast(),Qn,no,So,An,Io,$o,er,tr,ir,nr,or,G,Dt,kn,qn,To,Po,_o,rr,lr,Eo,sr="",zs=(X,js)=>{if(!X){t(50,sr=z("tooltip_live"));return}js===Qo.PlaybackState.PAUSED&&t(50,sr=z("tooltip_play"))},Kr,ar,jr,cl,ur,ot={},wn,Mo,Gr,Ao,Ws=(0,kp.debounceFn)(ws,260),Lo,cr,fr;function kt(){yo({isAudioDisabled:cn,audioDisabledHintCallback:Yi,isAudioAvailable:L,audioIsNotExistHintCallback:an})&&Si()}let S=$i?io:Ki?xi:ii;function Q(X){i.$$.not_equal(ot.timeline,X)&&(ot.timeline=X,t(23,ot))}function Ce(X){i.$$.not_equal(ot.prevButton,X)&&(ot.prevButton=X,t(23,ot))}function Ke(X){i.$$.not_equal(ot.replayButton,X)&&(ot.replayButton=X,t(23,ot))}function at(X){fr=X,t(26,fr)}function Vt(X){i.$$.not_equal(ot.playButton,X)&&(ot.playButton=X,t(23,ot))}function Nt(X){i.$$.not_equal(ot.nextButton,X)&&(ot.nextButton=X,t(23,ot))}function Ot(X){i.$$.not_equal(ot.playPrevChapterButton,X)&&(ot.playPrevChapterButton=X,t(23,ot))}function _n(X){i.$$.not_equal(ot.seekToInteractiveButton,X)&&(ot.seekToInteractiveButton=X,t(23,ot))}function xr(X){i.$$.not_equal(ot.interactiveGraphButton,X)&&(ot.interactiveGraphButton=X,t(23,ot))}function Ks(X){i.$$.not_equal(ot.liveButton,X)&&(ot.liveButton=X,t(23,ot))}function U_(X){i.$$.not_equal(ot.time,X)&&(ot.time=X,t(23,ot))}function z_(X){i.$$.not_equal(ot.episodes,X)&&(ot.episodes=X,t(23,ot))}let W_=X=>{t(22,ur=X.target.clientWidth)};function K_(X){i.$$.not_equal(ot.vkLogo,X)&&(ot.vkLogo=X,t(23,ot))}function j_(X){i.$$.not_equal(ot.volume,X)&&(ot.volume=X,t(23,ot))}function G_(X){i.$$.not_equal(ot.subtitles,X)&&(ot.subtitles=X,t(23,ot))}function x_(X){Lo=X,t(24,Lo)}function Y_(X){cr=X,t(25,cr)}function Q_(X){i.$$.not_equal(ot.settings,X)&&(ot.settings=X,t(23,ot))}function Z_(X){i.$$.not_equal(ot.context,X)&&(ot.context=X,t(23,ot))}function X_(X){i.$$.not_equal(ot.fullscreen,X)&&(ot.fullscreen=X,t(23,ot))}function J_(X){i.$$.not_equal(ot.chromecast,X)&&(ot.chromecast=X,t(23,ot))}function $_(X){ve[X?"unshift":"push"](()=>{Po=X,t(46,Po)})}function eg(X){ve[X?"unshift":"push"](()=>{zi=X,t(0,zi)})}function tg(X){i.$$.not_equal(ot.interactiveTimeIndicator,X)&&(ot.interactiveTimeIndicator=X,t(23,ot))}return i.$$set=X=>{"bottomHidden"in X&&t(1,hn=X.bottomHidden),"bottomNoSmooth"in X&&t(2,pi=X.bottomNoSmooth),"showControls"in X&&t(3,vi=X.showControls),"controlsElementRef"in X&&t(0,zi=X.controlsElementRef),"isAds"in X&&t(4,xt=X.isAds),"canRewindLive"in X&&t(5,In=X.canRewindLive),"logoClickable"in X&&t(6,Wi=X.logoClickable),"logoHidden"in X&&t(129,ln=X.logoHidden),"logoTargetUrl"in X&&t(7,sn=X.logoTargetUrl),"showNextPrevButtons"in X&&t(130,Li=X.showNextPrevButtons),"nextButtonActive"in X&&t(8,Vi=X.nextButtonActive),"prevButtonActive"in X&&t(9,_i=X.prevButtonActive),"isOneVideoPlaylist"in X&&t(131,Ki=X.isOneVideoPlaylist),"supportLink"in X&&t(10,Tn=X.supportLink),"customFullscreenSupported"in X&&t(132,ji=X.customFullscreenSupported),"playNextVideo"in X&&t(11,yi=X.playNextVideo),"playPrevVideo"in X&&t(12,ki=X.playPrevVideo),"repeatPlaylist"in X&&t(133,ii=X.repeatPlaylist),"toggleFullscreen"in X&&t(13,Kt=X.toggleFullscreen),"returnFocus"in X&&t(14,Wt=X.returnFocus),"seekToInteractive"in X&&t(15,Gi=X.seekToInteractive),"toggleGraph"in X&&t(16,wi=X.toggleGraph),"playPrevChapter"in X&&t(17,Ri=X.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072&&t(138,n=di.has("EPISODE_BUTTON")),i.$$.dirty[5]&131072&&t(77,o=di.has("GRAPH_BUTTON")),i.$$.dirty[5]&131072&&t(76,l=di.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[5]&131072&&t(75,r=di.has("PLAY_BUTTON")),i.$$.dirty[5]&131072&&t(74,a=di.has("REPLAY_BUTTON")),i.$$.dirty[5]&131072&&t(73,s=di.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[0]&16|i.$$.dirty[5]&65600&&t(34,Qn=xt?Ai==="playing":Ct===Qo.PlaybackState.PLAYING),i.$$.dirty[5]&32768&&t(18,no=ti.value!=="off"),i.$$.dirty[0]&16|i.$$.dirty[5]&16384&&t(35,So=Ui&&!xt||$i),i.$$.dirty[0]&16|i.$$.dirty[5]&16384&&t(36,An=!Ui||$i||xt),i.$$.dirty[4]&524288&&t(134,Io=tn(N,"m")),i.$$.dirty[0]&272|i.$$.dirty[4]&524352&&t(37,$o=Li&&tn(N,"m")&&!xt&&Vi),i.$$.dirty[0]&528|i.$$.dirty[4]&524352&&t(38,er=Li&&tn(N,"m")&&!xt&&_i),i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536&&t(39,tr=zt!==Qo.ChromecastState.NOT_AVAILABLE&&!(ai&&pt===1)&&tn(N,"m")&&!$i),i.$$.dirty[4]&524288|i.$$.dirty[5]&8192&&t(40,ir=Hi.length>0&&tn(N,"m")),i.$$.dirty[5]&6144&&t(41,nr=nn||qi),i.$$.dirty[4]&524288&&t(42,or=tn(N,"s")),i.$$.dirty[4]&32&&t(43,G=!ln),i.$$.dirty[4]&524576|i.$$.dirty[5]&1536&&t(44,Dt=Yt.features.fullscreen&&(ln||tn(N,"s"))&&!(ai&&pt===1)&&($i?ji:!0)),i.$$.dirty[0]&16|i.$$.dirty[1]&4&&t(19,kn=(!he||xt)&&!(Yt.features.interactiveHideTime&&$i)),i.$$.dirty[4]&262144&&t(45,qn=q.width>100),i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408&&t(20,To=!xt&&!he&&!!En?.length&&Io&&!n),i.$$.dirty[1]&2|i.$$.dirty[5]&256&&t(21,_o=!fi||ci),i.$$.dirty[5]&64&&t(47,rr=Ct===Qo.PlaybackState.PLAYING?z("tooltip_pause"):z("tooltip_play")),i.$$.dirty[1]&1&&t(48,lr=Mi?z("tooltip_interactive_graph_on"):z("tooltip_interactive_graph_off")),i.$$.dirty[5]&128&&t(49,Eo=Ei?z("aria_label_context_menu_close"):z("aria_label_context_menu_open")),i.$$.dirty[0]&2097152|i.$$.dirty[5]&64&&zs(_o,Ct),i.$$.dirty[0]&262144&&t(52,ar=no?z("tooltip_subtitles_on"):z("tooltip_subtitles_off")),i.$$.dirty[0]&1073741824&&t(53,jr=Pi?z("tooltip_fullscreen_on"):z("tooltip_fullscreen_off")),i.$$.dirty[0]&536870912&&t(54,cl=zt===Qo.ChromecastState.CONNECTED?z("tooltip_chromecast_on"):z("tooltip_chromecast_off")),i.$$.dirty[0]&268435456|i.$$.dirty[4]&2146435072|i.$$.dirty[5]&63&&t(135,wn={prevButton:Jt?Jt.right-Jt.left:0,replayButton:Mt?Mt.right-Mt.left:0,playButton:Lt?Lt.right-Lt.left:0,nextButton:pe?pe.right-pe.left:0,playPrevChapterButton:st?st.right-st.left:0,seekToInteractiveButton:Et?Et.right-Et.left:0,interactiveGraphButton:Pt?Pt.right-Pt.left:0,liveButton:mt?mt.right-mt.left:0,time:me?me.right-me.left:0,episodes:ge?ge.right-ge.left:0,vkLogo:He?He.right-He.left:0,volume:rt?rt.right-rt.left:0,subtitles:_e?_e.right-_e.left:0,settings:x?x.right-x.left:0,context:Re?Re.right-Re.left:0,fullscreen:qe?qe.right-qe.left:0,chromecast:Y?Y.right-Y.left:0,additionalButtons:le.length?le.reduce(X=>[...X,40],[]):[]}),i.$$.dirty[4]&6144&&(!Mo||Mo<wn.time)&&t(136,Mo=wn.time),i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432){let X=0;To&&(tn(N,"xl")?X=wn.time:X=60);let js=wn.prevButton+wn.playButton+wn.nextButton+wn.seekToInteractiveButton+wn.interactiveGraphButton+wn.liveButton+Mo+X;t(137,Gr=kn&&ur>=js)}i.$$.dirty[4]&532480&&t(55,Ao=Gr&&tn(N,"m")),i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216&&Ws(to(),Ni,ot,vi),i.$$.dirty[0]&167772160&&Ir(cr,Z,Di),i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536&&Ko(Lo,Z,oe),i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768&&Cs(Mn,ne,fr)},t(51,Kr=Yt.logoType==="vk_video"?z("tooltip_vk_video_logo"):z("tooltip_vk_logo")),si(t(72,{prevButton:u,replayButton:f,playButton:_,nextButton:g,playPrevChapterButton:y,seekToInteractiveButton:h,interactiveGraphButton:C,liveButton:w,time:F,episodes:T,vkLogo:k,volume:P,subtitles:j,settings:W,context:U,fullscreen:se,chromecast:de}=Ni,u,Ti(t(71,f)),Xt(t(70,_)),Bt(t(69,g)),ri(t(68,y)),oi(t(67,h)),it(t(66,C)),ut(t(65,w)),dt(t(64,F)),We(t(63,T)),je(t(62,k)),Ze(t(61,P)),$e(t(60,j)),Ye(t(59,W)),Ge(t(58,U)),we(t(57,se)),ce(t(56,de)))),[zi,hn,pi,vi,xt,In,Wi,sn,Vi,_i,Tn,yi,ki,Kt,Wt,Gi,wi,Ri,no,kn,To,_o,ur,ot,Lo,cr,fr,Z,le,zt,Pi,Mi,fi,he,Qn,So,An,$o,er,tr,ir,nr,or,G,Dt,qn,Po,rr,lr,Eo,sr,Kr,ar,jr,cl,Ao,de,se,U,W,j,P,k,T,F,w,C,h,y,g,_,f,u,s,a,r,l,o,hi,bi,gn,mi,on,rn,Yt,xi,Qe,bn,Bi,vn,un,Qt,Pn,gi,fn,Qi,dn,yn,Dn,Zi,Di,En,jn,Gn,Zt,xn,Xi,Nn,On,Mn,Fn,te,yt,mn,Ji,mo,eo,$i,Yn,ee,Co,Zo,Xo,po,Wr,pn,Jo,kt,S,ln,Li,Ki,ji,ii,Io,wn,Mo,Gr,n,ne,oe,Pe,q,N,Y,qe,Re,x,_e,rt,He,ge,me,mt,Pt,Et,st,pe,Lt,Mt,Jt,Ct,Ei,ci,pt,ai,qi,nn,Hi,Ui,ti,Ai,di,Q,Ce,Ke,at,Vt,Nt,Ot,_n,xr,Ks,U_,z_,W_,K_,j_,G_,x_,Y_,Q_,Z_,X_,J_,$_,eg,tg]}var Cc=class extends B{constructor(e){super(),D(this,e,M5,E5,R,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:129,logoTargetUrl:7,showNextPrevButtons:130,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:131,supportLink:10,customFullscreenSupported:132,playNextVideo:11,playPrevVideo:12,repeatPlaylist:133,toggleFullscreen:13,returnFocus:14,seekToInteractive:15,toggleGraph:16,playPrevChapter:17},o5,[-1,-1,-1,-1,-1,-1,-1,-1])}},wp=Cc;var Nr=require("@vkontakte/videoplayer-core");function A5(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,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 f=0;f<s.length;f+=1)u=ie(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(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"),c(t,"fill","none"),c(t,"fill-rule","evenodd"),ke(e,u)},m(f,_){v(f,e,_),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),l=!0},p(f,[_]){a&&a.p&&(!l||_&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],_,null):Le(f[1]),null),ke(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},_&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function L5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Ic=class extends B{constructor(e){super(),D(this,e,L5,A5,R,{})}},Cp=Ic;var Ip=require("@vkontakte/videoplayer-shared");function V5(i){Se(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 Sp(i){let e;return{c(){e=I("span"),e.textContent=`${z("mobile_unmute")}`,c(e,"class","text svelte-6gmlbk")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function R5(i){let e,t,n,o;var l=i[4];function r(s,u){return{}}l&&(t=Ft(l,r(i)));let a=i[1]&&Sp(i);return{c(){e=I("div"),t&&A(t.$$.fragment),n=H(),a&&a.c(),c(e,"class","container svelte-6gmlbk"),c(e,"aria-hidden","true"),K(e,"expanded",i[1])},m(s,u){v(s,e,u),t&&E(t,e,null),p(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&l!==(l=s[4])){if(t){ae();let f=t;m(f.$$.fragment,1,0,()=>{M(f,1)}),ue()}l?(t=Ft(l,r(s,u)),A(t.$$.fragment),d(t.$$.fragment,1),E(t,e,n)):t=null}s[1]?a||(a=Sp(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&&m(t.$$.fragment,s),o=!1},d(s){s&&b(e),t&&M(t),a&&a.d()}}}function B5(i){let e,t,n;function o(r){i[6](r)}let l={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[R5]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.testId=r[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(s.click=r[2]),a&8&&(s.ariaLabel=r[3]),a&146&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function D5(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:l=Ip.noop}=e,{ref:r=void 0}=e,a,s;function u(f){r=f,t(0,r)}return i.$$set=f=>{"muted"in f&&t(5,n=f.muted),"expanded"in f&&t(1,o=f.expanded),"click"in f&&t(2,l=f.click),"ref"in f&&t(0,r=f.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,a=n?z("tooltip_volume"):z("tooltip_volume_muted")),i.$$.dirty&2&&t(4,s=o?Yo:Cp)},[r,o,l,a,s,n,u]}var Tc=class extends B{constructor(e){super(),D(this,e,D5,B5,R,{muted:5,expanded:1,click:2,ref:0},V5)}},Pc=Tc;function N5(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,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 f=0;f<s.length;f+=1)u=ie(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("path"),n=V("path"),o=V("path"),c(t,"fill","currentColor"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","currentColor"),c(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"),c(n,"class","hidden-not-active"),c(o,"fill","currentColor"),c(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"),c(o,"class","hidden-active"),ke(e,u)},m(f,_){v(f,e,_),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),l=!0},p(f,[_]){a&&a.p&&(!l||_&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],_,null):Le(f[1]),null),ke(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},_&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function O5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Ec=class extends B{constructor(e){super(),D(this,e,O5,N5,R,{})}},Tp=Ec;function F5(i){Se(i,"svelte-tmam00",'svg[data-testid="pip-icon--active"] .hidden-active,svg[data-testid="pip-icon"] .hidden-not-active{visibility:hidden;opacity:0}')}function q5(i){let e,t;return e=new Tp({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&2&&(l.style=n[1]),o&1&&(l["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function H5(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=l=>{"isActive"in l&&t(0,o=l.isActive)},i.$$.update=()=>{i.$$.dirty&1&&t(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var Mc=class extends B{constructor(e){super(),D(this,e,H5,q5,R,{isActive:0},F5)}},Pp=Mc;var Ep=require("@vkontakte/videoplayer-shared");function U5(i){let e,t;return e=new Pp({props:{isActive:i[1]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function z5(i){let e,t,n;function o(r){i[3](r)}let l={testId:"btn-pip",ariaLabel:z("menu_pip"),click:i[2],$$slots:{default:[U5]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&4&&(s.click=r[2]),a&18&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function W5(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:l=Ep.noop}=e;function r(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,l=a.click)},[n,o,l,r]}var Ac=class extends B{constructor(e){super(),D(this,e,W5,z5,R,{ref:0,isPictureInPictureActive:1,click:2})}},Mp=Ac;var Jp=require("@vkontakte/videoplayer-shared");function K5(i){Se(i,"svelte-17qsgob",".wrapper-bottom.svelte-17qsgob.svelte-17qsgob{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-17qsgob>.svelte-17qsgob{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-17qsgob.svelte-17qsgob{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-17qsgob.svelte-17qsgob{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.svelte-17qsgob.svelte-17qsgob{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.svelte-17qsgob.svelte-17qsgob{position:absolute;top:4px;left:8px}.wrapper-middle-left.svelte-17qsgob.svelte-17qsgob,.wrapper-middle-left-second.svelte-17qsgob.svelte-17qsgob,.wrapper-middle-right.svelte-17qsgob.svelte-17qsgob{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-17qsgob.svelte-17qsgob{left:12px}.wrapper-middle-left-second.svelte-17qsgob.svelte-17qsgob{left:64px}.wrapper-middle-right.svelte-17qsgob.svelte-17qsgob{right:12px}.controls.svelte-17qsgob.svelte-17qsgob{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-17qsgob > *:not(:first-child){margin-left:8px}.hidden.svelte-17qsgob.svelte-17qsgob{visibility:hidden;opacity:0}.controls-hidden.svelte-17qsgob.svelte-17qsgob{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-17qsgob.svelte-17qsgob{transition:none}.settings-mobile.svelte-17qsgob.svelte-17qsgob{position:absolute;z-index:var(--mobile-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%}.overlay-mobile.svelte-17qsgob.svelte-17qsgob{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-17qsgob.svelte-17qsgob{top:16px}.wrapper-top-left.fullscreen.svelte-17qsgob.svelte-17qsgob{top:16px}.controls-wrapper.fullscreen.svelte-17qsgob.svelte-17qsgob{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-17qsgob.svelte-17qsgob{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-17qsgob.svelte-17qsgob{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-17qsgob.svelte-17qsgob{left:44px}.wrapper-middle-left-second.fullscreen.svelte-17qsgob.svelte-17qsgob{left:96px}.wrapper-middle-right.fullscreen.svelte-17qsgob.svelte-17qsgob{right:44px}.controls-wrapper.fullscreen.svelte-17qsgob.svelte-17qsgob{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function Ap(i,e,t){let n=i.slice();return n[172]=e[t].iconUrl,n[173]=e[t].ariaLabel,n[174]=e[t].testId,n[175]=e[t].onClick,n[176]=e[t].tooltip,n}function Lp(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,T=(!i[51]||i[53])&&Vp(i),k=ht(i[56]),P=[];for(let q=0;q<k.length;q+=1)P[q]=Rp(Ap(i,k,q));let j=q=>m(P[q],1,1,()=>{P[q]=null}),W=i[36]&&Bp(i),U=i[37]&&Dp(i),se=i[57]&&Np(i),de=i[39]&&Op(i),L=i[8]&&Fp(i),ne=i[34]&&qp(i),oe=i[33]&&Hp(i),Z=i[8]&&Up(i),Pe=i[97]&&!i[29]&&zp(i);return{c(){e=I("div"),t=H(),n=I("div"),T&&T.c(),o=H(),l=I("div");for(let q=0;q<P.length;q+=1)P[q].c();r=H(),W&&W.c(),a=H(),U&&U.c(),s=H(),se&&se.c(),u=H(),de&&de.c(),f=H(),_=I("div"),L&&L.c(),g=H(),ne&&ne.c(),y=H(),oe&&oe.c(),h=H(),Z&&Z.c(),C=H(),Pe&&Pe.c(),w=et(),c(e,"class","overlay-mobile svelte-17qsgob"),K(e,"hidden",!i[42]),c(n,"class","wrapper-top-left svelte-17qsgob"),K(n,"hidden",!i[3]),K(n,"fullscreen",i[52]),c(l,"class","wrapper-top-right svelte-17qsgob"),K(l,"hidden",!i[3]&&!i[27]),K(l,"fullscreen",i[52]),c(_,"class","wrapper-middle svelte-17qsgob"),K(_,"hidden",!i[3]||i[29])},m(q,N){v(q,e,N),v(q,t,N),v(q,n,N),T&&T.m(n,null),v(q,o,N),v(q,l,N);for(let le=0;le<P.length;le+=1)P[le]&&P[le].m(l,null);p(l,r),W&&W.m(l,null),p(l,a),U&&U.m(l,null),p(l,s),se&&se.m(l,null),p(l,u),de&&de.m(l,null),v(q,f,N),v(q,_,N),L&&L.m(_,null),p(_,g),ne&&ne.m(_,null),p(_,y),oe&&oe.m(_,null),p(_,h),Z&&Z.m(_,null),v(q,C,N),Pe&&Pe.m(q,N),v(q,w,N),F=!0},p(q,N){if((!F||N[1]&2048)&&K(e,"hidden",!q[42]),!q[51]||q[53]?T?(T.p(q,N),N[1]&5242880&&d(T,1)):(T=Vp(q),T.c(),d(T,1),T.m(n,null)):T&&(ae(),m(T,1,1,()=>{T=null}),ue()),(!F||N[0]&8)&&K(n,"hidden",!q[3]),(!F||N[1]&2097152)&&K(n,"fullscreen",q[52]),N[1]&33554432){k=ht(q[56]);let le;for(le=0;le<k.length;le+=1){let Y=Ap(q,k,le);P[le]?(P[le].p(Y,N),d(P[le],1)):(P[le]=Rp(Y),P[le].c(),d(P[le],1),P[le].m(l,r))}for(ae(),le=k.length;le<P.length;le+=1)j(le);ue()}q[36]?W?(W.p(q,N),N[1]&32&&d(W,1)):(W=Bp(q),W.c(),d(W,1),W.m(l,a)):W&&(ae(),m(W,1,1,()=>{W=null}),ue()),q[37]?U?(U.p(q,N),N[1]&64&&d(U,1)):(U=Dp(q),U.c(),d(U,1),U.m(l,s)):U&&(ae(),m(U,1,1,()=>{U=null}),ue()),q[57]?se?(se.p(q,N),N[1]&67108864&&d(se,1)):(se=Np(q),se.c(),d(se,1),se.m(l,u)):se&&(ae(),m(se,1,1,()=>{se=null}),ue()),q[39]?de?(de.p(q,N),N[1]&256&&d(de,1)):(de=Op(q),de.c(),d(de,1),de.m(l,null)):de&&(ae(),m(de,1,1,()=>{de=null}),ue()),(!F||N[0]&134217736)&&K(l,"hidden",!q[3]&&!q[27]),(!F||N[1]&2097152)&&K(l,"fullscreen",q[52]),q[8]?L?(L.p(q,N),N[0]&256&&d(L,1)):(L=Fp(q),L.c(),d(L,1),L.m(_,g)):L&&(ae(),m(L,1,1,()=>{L=null}),ue()),q[34]?ne?(ne.p(q,N),N[1]&8&&d(ne,1)):(ne=qp(q),ne.c(),d(ne,1),ne.m(_,y)):ne&&(ae(),m(ne,1,1,()=>{ne=null}),ue()),q[33]?oe?(oe.p(q,N),N[1]&4&&d(oe,1)):(oe=Hp(q),oe.c(),d(oe,1),oe.m(_,h)):oe&&(ae(),m(oe,1,1,()=>{oe=null}),ue()),q[8]?Z?(Z.p(q,N),N[0]&256&&d(Z,1)):(Z=Up(q),Z.c(),d(Z,1),Z.m(_,null)):Z&&(ae(),m(Z,1,1,()=>{Z=null}),ue()),(!F||N[0]&536870920)&&K(_,"hidden",!q[3]||q[29]),q[97]&&!q[29]?Pe?(Pe.p(q,N),N[0]&536870912&&d(Pe,1)):(Pe=zp(q),Pe.c(),d(Pe,1),Pe.m(w.parentNode,w)):Pe&&(ae(),m(Pe,1,1,()=>{Pe=null}),ue())},i(q){if(!F){d(T);for(let N=0;N<k.length;N+=1)d(P[N]);d(W),d(U),d(se),d(de),d(L),d(ne),d(oe),d(Z),d(Pe),F=!0}},o(q){m(T),P=P.filter(Boolean);for(let N=0;N<P.length;N+=1)m(P[N]);m(W),m(U),m(se),m(de),m(L),m(ne),m(oe),m(Z),m(Pe),F=!1},d(q){q&&(b(e),b(t),b(n),b(o),b(l),b(f),b(_),b(C),b(w)),T&&T.d(),ni(P,q),W&&W.d(),U&&U.d(),se&&se.d(),de&&de.d(),L&&L.d(),ne&&ne.d(),oe&&oe.d(),Z&&Z.d(),Pe&&Pe.d(q)}}}function Vp(i){let e,t,n;function o(r){i[132](r)}let l={muted:i[54],expanded:i[51]&&!i[70]&&i[55],click:i[107]};return i[20].volume!==void 0&&(l.ref=i[20].volume),e=new Pc({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&8388608&&(s.muted=r[54]),a[1]&17825792&&(s.expanded=r[51]&&!r[70]&&r[55]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].volume,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Rp(i){let e,t;return e=new _s({props:{iconUrl:i[172],ariaLabel:i[173]??i[176],testId:i[174],onClick:i[175]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[1]&33554432&&(l.iconUrl=n[172]),o[1]&33554432&&(l.ariaLabel=n[173]??n[176]),o[1]&33554432&&(l.testId=n[174]),o[1]&33554432&&(l.onClick=n[175]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Bp(i){let e,t,n;function o(r){i[133](r)}let l={isMobile:!0,click:i[105],state:i[28]};return i[20].chromecast!==void 0&&(l.ref=i[20].chromecast),e=new os({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&268435456&&(s.state=r[28]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].chromecast,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Dp(i){let e,t,n;function o(r){i[134](r)}let l={click:i[106],isPictureInPictureActive:i[26]};return i[20].pip!==void 0&&(l.ref=i[20].pip),e=new Mp({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&67108864&&(s.isPictureInPictureActive=r[26]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].pip,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Np(i){let e,t,n;function o(r){i[135](r)}let l={};return i[22]!==void 0&&(l.ref=i[22]),e=new il({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=r[22],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Op(i){let e,t,n;function o(r){i[136](r)}let l={click:i[64],targetUrl:i[7],logoClickable:i[6]};return i[20].vkLogo!==void 0&&(l.ref=i[20].vkLogo),e=new ns({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&128&&(s.targetUrl=r[7]),a[0]&64&&(s.logoClickable=r[6]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].vkLogo,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Fp(i){let e,t,n;function o(r){i[137](r)}let l={click:i[13],type:"prev",disabled:!i[10],isMobile:!0};return i[20].prevButton!==void 0&&(l.ref=i[20].prevButton),e=new Br({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&8192&&(s.click=r[13]),a[0]&1024&&(s.disabled=!r[10]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].prevButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function qp(i){let e,t,n;function o(r){i[138](r)}let l={disabled:i[49],click:i[63],isMobile:!0,isPlaying:i[31]};return i[20].playButton!==void 0&&(l.ref=i[20].playButton),e=new nl({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&262144&&(s.disabled=r[49]),a[1]&1&&(s.isPlaying=r[31]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].playButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Hp(i){let e,t,n;function o(r){i[139](r)}let l={disabled:i[48],click:i[108],isMobile:!0};return i[20].replayButton!==void 0&&(l.ref=i[20].replayButton),e=new ol({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.disabled=r[48]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].replayButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Up(i){let e,t,n;function o(r){i[140](r)}let l={click:i[12],type:"next",disabled:!i[9],isMobile:!0};return i[20].nextButton!==void 0&&(l.ref=i[20].nextButton),e=new Br({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&4096&&(s.click=r[12]),a[0]&512&&(s.disabled=!r[9]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].nextButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function zp(i){let e,t,n,o,l=i[101]&&j5(i),r=i[99]&&G5(i),a=i[100]&&x5(i);return{c(){l&&l.c(),e=H(),r&&r.c(),t=H(),a&&a.c(),n=et()},m(s,u){l&&l.m(s,u),v(s,e,u),r&&r.m(s,u),v(s,t,u),a&&a.m(s,u),v(s,n,u),o=!0},p(s,u){s[101]&&l.p(s,u),s[99]&&r.p(s,u),s[100]&&a.p(s,u)},i(s){o||(d(l),d(r),d(a),o=!0)},o(s){m(l),m(r),m(a),o=!1},d(s){s&&(b(e),b(t),b(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function j5(i){let e,t,n,o,l,r;function a(u){i[141](u)}let s={hidden:!i[3],disabled:i[47],click:i[18]};return i[20].playPrevChapterButton!==void 0&&(s.ref=i[20].playPrevChapterButton),t=new ps({props:s}),ve.push(()=>Oe(t,"ref",a)),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","wrapper-middle-left svelte-17qsgob"),K(e,"fullscreen",i[52]),K(e,"hidden",!i[3])},m(u,f){v(u,e,f),E(t,e,null),o=!0,l||(r=Te(e,"click",i[109]),l=!0)},p(u,f){let _={};f[0]&8&&(_.hidden=!u[3]),f[1]&65536&&(_.disabled=u[47]),f[0]&262144&&(_.click=u[18]),!n&&f[0]&1048576&&(n=!0,_.ref=u[20].playPrevChapterButton,Ne(()=>n=!1)),t.$set(_),(!o||f[1]&2097152)&&K(e,"fullscreen",u[52]),(!o||f[0]&8)&&K(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){m(t.$$.fragment,u),o=!1},d(u){u&&b(e),M(t),l=!1,r()}}}function G5(i){let e,t,n,o,l;function r(s){i[142](s)}let a={hidden:!i[3]&&!i[58],disabled:i[50],click:i[17],graphIsOpened:i[58]};return i[20].interactiveGraphButton!==void 0&&(a.ref=i[20].interactiveGraphButton),t=new ds({props:a}),ve.push(()=>Oe(t,"ref",r)),{c(){e=I("div"),A(t.$$.fragment),c(e,"class",o=vf(i[101]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-17qsgob"),K(e,"fullscreen",i[52]),K(e,"hidden",!i[3]&&!i[58])},m(s,u){v(s,e,u),E(t,e,null),l=!0},p(s,u){let f={};u[0]&8|u[1]&134217728&&(f.hidden=!s[3]&&!s[58]),u[1]&524288&&(f.disabled=s[50]),u[0]&131072&&(f.click=s[17]),u[1]&134217728&&(f.graphIsOpened=s[58]),!n&&u[0]&1048576&&(n=!0,f.ref=s[20].interactiveGraphButton,Ne(()=>n=!1)),t.$set(f),(!l||u[1]&2097152)&&K(e,"fullscreen",s[52]),(!l||u[0]&8|u[1]&134217728)&&K(e,"hidden",!s[3]&&!s[58])},i(s){l||(d(t.$$.fragment,s),l=!0)},o(s){m(t.$$.fragment,s),l=!1},d(s){s&&b(e),M(t)}}}function x5(i){let e,t,n,o,l,r;function a(u){i[143](u)}let s={hidden:!i[3],disabled:i[46],click:i[16]};return i[20].seekToInteractiveButton!==void 0&&(s.ref=i[20].seekToInteractiveButton),t=new fs({props:s}),ve.push(()=>Oe(t,"ref",a)),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","wrapper-middle-right svelte-17qsgob"),K(e,"fullscreen",i[52]),K(e,"hidden",!i[3])},m(u,f){v(u,e,f),E(t,e,null),o=!0,l||(r=Te(e,"click",i[110]),l=!0)},p(u,f){let _={};f[0]&8&&(_.hidden=!u[3]),f[1]&32768&&(_.disabled=u[46]),f[0]&65536&&(_.click=u[16]),!n&&f[0]&1048576&&(n=!0,_.ref=u[20].seekToInteractiveButton,Ne(()=>n=!1)),t.$set(_),(!o||f[1]&2097152)&&K(e,"fullscreen",u[52]),(!o||f[0]&8)&&K(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){m(t.$$.fragment,u),o=!1},d(u){u&&b(e),M(t),l=!1,r()}}}function Wp(i){let e,t,n,o,l,r=i[53]&&Kp(i),a=i[32]&&jp(i);return o=new as({props:{position:i[59],duration:i[60]}}),{c(){r&&r.c(),e=H(),a&&a.c(),t=H(),n=I("div"),A(o.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile svelte-17qsgob"),K(n,"fullscreen",i[52])},m(s,u){r&&r.m(s,u),v(s,e,u),a&&a.m(s,u),v(s,t,u),v(s,n,u),E(o,n,null),l=!0},p(s,u){s[53]?r?(r.p(s,u),u[1]&4194304&&d(r,1)):(r=Kp(s),r.c(),d(r,1),r.m(e.parentNode,e)):r&&(ae(),m(r,1,1,()=>{r=null}),ue()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=jp(s),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(ae(),m(a,1,1,()=>{a=null}),ue());let f={};u[1]&268435456&&(f.position=s[59]),u[1]&536870912&&(f.duration=s[60]),o.$set(f),(!l||u[1]&2097152)&&K(n,"fullscreen",s[52])},i(s){l||(d(r),d(a),d(o.$$.fragment,s),l=!0)},o(s){m(r),m(a),m(o.$$.fragment,s),l=!1},d(s){s&&(b(e),b(t),b(n)),r&&r.d(s),a&&a.d(s),M(o)}}}function Kp(i){let e,t,n,o;function l(a){i[144](a)}let r={muted:i[54],expanded:!1,click:i[107]};return i[20].volume!==void 0&&(r.ref=i[20].volume),t=new Pc({props:r}),ve.push(()=>Oe(t,"ref",l)),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","wrapper-top-right svelte-17qsgob"),K(e,"fullscreen",i[52])},m(a,s){v(a,e,s),E(t,e,null),o=!0},p(a,s){let u={};s[1]&8388608&&(u.muted=a[54]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].volume,Ne(()=>n=!1)),t.$set(u),(!o||s[1]&2097152)&&K(e,"fullscreen",a[52])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){m(t.$$.fragment,a),o=!1},d(a){a&&b(e),M(t)}}}function jp(i){let e,t,n,o;function l(a){i[145](a)}let r={disabled:i[49],click:i[63],isMobile:!0,isPlaying:!i[32]};return i[20].playButton!==void 0&&(r.ref=i[20].playButton),t=new nl({props:r}),ve.push(()=>Oe(t,"ref",l)),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","wrapper-middle svelte-17qsgob")},m(a,s){v(a,e,s),E(t,e,null),o=!0},p(a,s){let u={};s[1]&262144&&(u.disabled=a[49]),s[1]&2&&(u.isPlaying=!a[32]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].playButton,Ne(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){m(t.$$.fragment,a),o=!1},d(a){a&&b(e),M(t)}}}function Y5(i){let e,t,n;function o(r){i[146](r)}let l={disabled:i[48],$$slots:{default:[Q5]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(l.ref=i[20].replayButton),e=new At({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.disabled=r[48]),a[1]&131072|a[5]&16777216&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].replayButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Q5(i){let e,t;return e=new ol({props:{disabled:i[48],click:i[96]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[1]&131072&&(l.disabled=n[48]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Gp(i){let e,t,n;function o(r){i[147](r)}let l={$$slots:{default:[Z5]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(l.ref=i[20].liveButton),e=new At({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&524288|a[1]&16384|a[5]&16777216&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].liveButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Z5(i){let e,t;return e=new ls({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&524288&&(l.isActiveLive=n[19]),o[1]&16384&&(l.ariaLabel=n[45]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function xp(i){let e,t,n;function o(r){i[148](r)}let l={showDuration:i[35],position:i[4]?i[59]:i[61],duration:i[4]?i[60]:i[62],isMobile:!0};return i[20].time!==void 0&&(l.ref=i[20].time),e=new Jl({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&16&&(s.showDuration=r[35]),a[0]&16|a[1]&1342177280&&(s.position=r[4]?r[59]:r[61]),a[0]&16|a[1]&536870912|a[2]&1&&(s.duration=r[4]?r[60]:r[62]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].time,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Yp(i){let e,t,n,o;return n=new cs({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=I("div"),e.textContent="\xB7",t=H(),A(n.$$.fragment),c(e,"aria-hidden","true")},m(l,r){v(l,e,r),v(l,t,r),E(n,l,r),o=!0},p(l,r){let a={};r[1]&1073741824&&(a.position=l[61]),r[2]&1&&(a.duration=l[62]),n.$set(a)},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){m(n.$$.fragment,l),o=!1},d(l){l&&(b(e),b(t)),M(n,l)}}}function X5(i){let e,t,n=i[43]&&Yp(i);return{c(){n&&n.c(),e=et()},m(o,l){n&&n.m(o,l),v(o,e,l),t=!0},p(o,l){o[43]?n?(n.p(o,l),l[1]&4096&&d(n,1)):(n=Yp(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),m(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function Qp(i){let e,t,n;function o(r){i[151](r)}let l={$$slots:{default:[J5]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(l.ref=i[20].settings),e=new At({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&4194304|a[5]&16777216&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].settings,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function J5(i){let e,t,n;function o(r){i[150](r)}let l={};return i[22]!==void 0&&(l.ref=i[22]),e=new il({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=r[22],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Zp(i){let e,t,n;function o(r){i[152](r)}let l={$$slots:{default:[$5]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(l.ref=i[20].fullscreen),e=new At({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&16384|a[1]&2097152|a[5]&16777216&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].fullscreen,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function $5(i){let e,t;return e=new ts({props:{click:i[14],isFullscreen:i[52]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&16384&&(l.click=n[14]),o[1]&2097152&&(l.isFullscreen=n[52]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Xp(i){let e,t,n,o;function l(a){i[156](a)}let r={supportLink:i[11],returnFocus:i[15]};return i[21]!==void 0&&(r.ref=i[21]),t=new Xl({props:r}),ve.push(()=>Oe(t,"ref",l)),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","settings-mobile svelte-17qsgob")},m(a,s){v(a,e,s),E(t,e,null),o=!0},p(a,s){let u={};s[0]&2048&&(u.supportLink=a[11]),s[0]&32768&&(u.returnFocus=a[15]),!n&&s[0]&2097152&&(n=!0,u.ref=a[21],Ne(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){m(t.$$.fragment,a),o=!1},d(a){a&&b(e),M(t)}}}function e6(i){let e,t,n;function o(r){i[157](r)}let l={};return i[20].interactiveTimeIndicator!==void 0&&(l.ref=i[20].interactiveTimeIndicator),e=new Ss({props:l}),ve.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&1048576&&(t=!0,s.ref=r[20].interactiveTimeIndicator,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function t6(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,T,k,P=!i[4]&&Lp(i),j=i[4]&&i[30]!=="inactive"&&Wp(i),W=i[97]&&Y5(i),U=!i[4]&&i[25]&&Gp(i),se=i[41]&&xp(i);function de(le){i[149](le)}let L={className:"w-max",disabled:!i[43],$$slots:{default:[X5]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(L.ref=i[20].episodes),u=new At({props:L}),ve.push(()=>Oe(u,"ref",de));let ne=i[38]&&Qp(i),oe=i[40]&&Zp(i);function Z(le){i[154](le)}let Pe={isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]};i[20].timeline!==void 0&&(Pe.ref=i[20].timeline),h=new us({props:Pe}),ve.push(()=>Oe(h,"ref",Z));let q=i[23]&&Xp(i),N=i[102]&&e6(i);return{c(){P&&P.c(),e=H(),j&&j.c(),t=H(),n=I("div"),o=I("div"),l=I("div"),W&&W.c(),r=H(),U&&U.c(),a=H(),se&&se.c(),s=H(),A(u.$$.fragment),_=H(),ne&&ne.c(),g=H(),oe&&oe.c(),y=H(),A(h.$$.fragment),w=H(),q&&q.c(),F=H(),N&&N.c(),T=et(),c(l,"class","controls svelte-17qsgob"),K(l,"mobile",!0),c(o,"class","controls-wrapper svelte-17qsgob"),K(o,"fullscreen",i[52]),c(n,"class","wrapper-bottom svelte-17qsgob"),K(n,"hidden",i[1]),K(n,"controls-hidden",!i[3]),K(n,"no-smooth",i[2]),K(n,"mobile",!0)},m(le,Y){P&&P.m(le,Y),v(le,e,Y),j&&j.m(le,Y),v(le,t,Y),v(le,n,Y),p(n,o),p(o,l),W&&W.m(l,null),p(l,r),U&&U.m(l,null),p(l,a),se&&se.m(l,null),p(l,s),E(u,l,null),p(l,_),ne&&ne.m(l,null),p(l,g),oe&&oe.m(l,null),i[153](l),p(o,y),E(h,o,null),i[155](n),v(le,w,Y),q&&q.m(le,Y),v(le,F,Y),N&&N.m(le,Y),v(le,T,Y),k=!0},p(le,Y){le[4]?P&&(ae(),m(P,1,1,()=>{P=null}),ue()):P?(P.p(le,Y),Y[0]&16&&d(P,1)):(P=Lp(le),P.c(),d(P,1),P.m(e.parentNode,e)),le[4]&&le[30]!=="inactive"?j?(j.p(le,Y),Y[0]&1073741840&&d(j,1)):(j=Wp(le),j.c(),d(j,1),j.m(t.parentNode,t)):j&&(ae(),m(j,1,1,()=>{j=null}),ue()),le[97]&&W.p(le,Y),!le[4]&&le[25]?U?(U.p(le,Y),Y[0]&33554448&&d(U,1)):(U=Gp(le),U.c(),d(U,1),U.m(l,a)):U&&(ae(),m(U,1,1,()=>{U=null}),ue()),le[41]?se?(se.p(le,Y),Y[1]&1024&&d(se,1)):(se=xp(le),se.c(),d(se,1),se.m(l,s)):se&&(ae(),m(se,1,1,()=>{se=null}),ue());let re={};Y[1]&4096&&(re.disabled=!le[43]),Y[1]&1073745920|Y[2]&1|Y[5]&16777216&&(re.$$scope={dirty:Y,ctx:le}),!f&&Y[0]&1048576&&(f=!0,re.ref=le[20].episodes,Ne(()=>f=!1)),u.$set(re),le[38]?ne?(ne.p(le,Y),Y[1]&128&&d(ne,1)):(ne=Qp(le),ne.c(),d(ne,1),ne.m(l,g)):ne&&(ae(),m(ne,1,1,()=>{ne=null}),ue()),le[40]?oe?(oe.p(le,Y),Y[1]&512&&d(oe,1)):(oe=Zp(le),oe.c(),d(oe,1),oe.m(l,null)):oe&&(ae(),m(oe,1,1,()=>{oe=null}),ue());let ce={};Y[0]&16&&(ce.isAds=le[4]),Y[0]&32&&(ce.canRewindLive=le[5]),Y[0]&16777216&&(ce.isRewindableLive=le[24]),!C&&Y[0]&1048576&&(C=!0,ce.ref=le[20].timeline,Ne(()=>C=!1)),h.$set(ce),(!k||Y[1]&2097152)&&K(o,"fullscreen",le[52]),(!k||Y[0]&2)&&K(n,"hidden",le[1]),(!k||Y[0]&8)&&K(n,"controls-hidden",!le[3]),(!k||Y[0]&4)&&K(n,"no-smooth",le[2]),le[23]?q?(q.p(le,Y),Y[0]&8388608&&d(q,1)):(q=Xp(le),q.c(),d(q,1),q.m(F.parentNode,F)):q&&(ae(),m(q,1,1,()=>{q=null}),ue()),le[102]&&N.p(le,Y)},i(le){k||(d(P),d(j),d(W),d(U),d(se),d(u.$$.fragment,le),d(ne),d(oe),d(h.$$.fragment,le),d(q),d(N),k=!0)},o(le){m(P),m(j),m(W),m(U),m(se),m(u.$$.fragment,le),m(ne),m(oe),m(h.$$.fragment,le),m(q),m(N),k=!1},d(le){le&&(b(e),b(t),b(n),b(w),b(F),b(T)),P&&P.d(le),j&&j.d(le),W&&W.d(),U&&U.d(),se&&se.d(),M(u),ne&&ne.d(),oe&&oe.d(),i[153](null),M(h),i[155](null),q&&q.d(le),N&&N.d(le)}}}function i6(i,e,t){let n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,T,k,P,j,W,U,se,de,L,ne,oe,Z,Pe,q,N,le,Y,re,ce,qe,Ve,we,Re,{bottomHidden:Ue}=e,{bottomNoSmooth:Ge}=e,{showControls:x}=e,{controlsElementRef:fe=void 0}=e,{isAds:Ye=!1}=e,{canRewindLive:_e}=e,{logoClickable:ze}=e,{logoHidden:$e}=e,{logoTargetUrl:rt=""}=e,{showNextPrevButtons:Je}=e,{nextButtonActive:Ze}=e,{prevButtonActive:He}=e,{isOneVideoPlaylist:J=!1}=e,{supportLink:je}=e,{customFullscreenSupported:ge=!0}=e,{playNextVideo:Ie}=e,{playPrevVideo:We}=e,{repeatPlaylist:me}=e,{toggleFullscreen:$}=e,{returnFocus:dt}=e,{seekToInteractive:mt}=e,{toggleGraph:tt}=e,{playPrevChapter:ut}=e,{onDisabledPlayPrevChapterClick:Pt}=e,{onDisabledSeekToInteractiveClick:Tt}=e,it=nt(),Et=Vn(),Ht=qt(),oi=it.actions.internal.toggleMuted,st=it.actions.internal.togglePlay,vt=it.actions.internal.pause,ri=it.callbacks?.onAudioDoesNotExistHint,pe=it.callbacks?.onAudioDisabledHint,Rt=it.playerPhase;O(i,Rt,ee=>t(128,se=ee));let Bt=it.state.duration$;O(i,Bt,ee=>t(62,Re=ee));let Lt=it.state.positionWithScrubbing$;O(i,Lt,ee=>t(61,we=ee));let wt=it.state.playbackState$;O(i,wt,ee=>t(122,g=ee));let Xt=it.state.isAudioAvailable$;O(i,Xt,ee=>t(51,y=ee));let Mt=it.state.isAudioDisabled,ui=it.state.isEnded$;O(i,ui,ee=>t(129,L=ee));let Ti=it.state.isLive$;O(i,Ti,ee=>t(25,T=ee));let Jt=it.state.muted$;O(i,Jt,ee=>t(54,N=ee));let Ut=it.state.isActiveLive$;O(i,Ut,ee=>t(125,w=ee));let si=it.state.isRewindableLive$;O(i,si,ee=>t(24,F=ee));let zt=it.ui.scrubbingInProgress;O(i,zt,ee=>t(29,de=ee));let Pi=it.ui.mobileNotReportControlHidden$;O(i,Pi,ee=>t(27,W=ee));let Ct=it.ui.isPictureInPictureActive$;O(i,Ct,ee=>t(26,P=ee));let Ei=it.ui.pictureInPictureType$;O(i,Ei,ee=>t(126,k=ee));let Mi=it.ui.mobileUnmuteButtonExpanded;O(i,Mi,ee=>t(55,le=ee));let ci=it.ui.mobileUnmuteButtonVisible;O(i,ci,ee=>t(53,q=ee));let fi=it.ui.settingsMenuVisible;O(i,fi,ee=>t(23,_=ee));let he=it.ui.settingsMenuOpenedByKeyboard;O(i,he,ee=>t(121,f=ee));let pt=it.ui.controls,ai=it.actions.internal.getVideoEpisodes(),qi=it.webApi.pictureInPictureApi,nn=it.state.chromecastState$;O(i,nn,ee=>t(28,U=ee));let Hi=it.state.crashed$;O(i,Hi,ee=>t(57,re=ee));let Ui=pt.disabledControls$;O(i,Ui,ee=>t(130,oe=ee));let ti=it.ui.startedByKeyboard$;O(i,ti,ee=>t(120,u=ee));let Ai=it.ui.currentGridType$;O(i,Ai,ee=>t(127,j=ee));let di=it.ads.duration;O(i,di,ee=>t(60,Ve=ee));let hi=it.ads.position;O(i,hi,ee=>t(59,qe=ee));let bi=it.ads.playbackState;O(i,bi,ee=>t(30,ne=ee));let gn=it.ui.isFullscreen;O(i,gn,ee=>t(52,Pe=ee));let mi=it.ui.playerSize;O(i,mi,ee=>t(124,C=ee));let on=it.ui.additionalButtons$;O(i,on,ee=>t(56,Y=ee));let rn=it.actions.internal.getVideoElement,hn=it.actions.internal.replayInteractive,pi=it.state.isInteractive,vi=it.state.isInteractiveTime$;O(i,vi,ee=>t(123,h=ee));let zi=it.state.showInteractiveGraph,xt=it.state.showSeekToInteractive,In=it.state.showPlayPrevChapter,Wi=it.state.showInteractiveTimeIndicator,ln=it.state.graphIsOpened$;O(i,ln,ee=>t(58,ce=ee));let sn=Et.seekToInteractiveDisabledTooltip$;O(i,sn,ee=>t(131,Z=ee));let Li,Vi,_i,Ki,Tn,ji,yi,ki,ii,Kt,Wt,Gi,wi,Ri,lt,Ci,Yt,Si,xi,Qe={},bn=(0,Jp.debounceFn)(ws,260),an=()=>it.actions.internal.toggleChromecast();function Yi(){yo({isAudioDisabled:Mt,audioDisabledHintCallback:pe,isAudioAvailable:y,audioIsNotExistHintCallback:ri})&&oi()}async function Bi(){qi?.isActive()?await qi?.remove():await qi?.request()}function vn(){!Mt&&y&&ci.set(!1),Yi()}let un=J?st:me,Qt="",Pn=(ee,Co)=>{if(!ee){t(45,Qt=z("tooltip_live"));return}Co===Nr.PlaybackState.PAUSED&&t(45,Qt=z("tooltip_play"))},cn,gi,fn=()=>{s&&Pt(Li)},Qi=()=>{l&&Tt(Vi)};function dn(ee){i.$$.not_equal(Qe.volume,ee)&&(Qe.volume=ee,t(20,Qe))}function yn(ee){i.$$.not_equal(Qe.chromecast,ee)&&(Qe.chromecast=ee,t(20,Qe))}function Dn(ee){i.$$.not_equal(Qe.pip,ee)&&(Qe.pip=ee,t(20,Qe))}function Zi(ee){gi=ee,t(22,gi)}function Di(ee){i.$$.not_equal(Qe.vkLogo,ee)&&(Qe.vkLogo=ee,t(20,Qe))}function Ni(ee){i.$$.not_equal(Qe.prevButton,ee)&&(Qe.prevButton=ee,t(20,Qe))}function En(ee){i.$$.not_equal(Qe.playButton,ee)&&(Qe.playButton=ee,t(20,Qe))}function jn(ee){i.$$.not_equal(Qe.replayButton,ee)&&(Qe.replayButton=ee,t(20,Qe))}function Gn(ee){i.$$.not_equal(Qe.nextButton,ee)&&(Qe.nextButton=ee,t(20,Qe))}function Zt(ee){i.$$.not_equal(Qe.playPrevChapterButton,ee)&&(Qe.playPrevChapterButton=ee,t(20,Qe))}function xn(ee){i.$$.not_equal(Qe.interactiveGraphButton,ee)&&(Qe.interactiveGraphButton=ee,t(20,Qe))}function Xi(ee){i.$$.not_equal(Qe.seekToInteractiveButton,ee)&&(Qe.seekToInteractiveButton=ee,t(20,Qe))}function Nn(ee){i.$$.not_equal(Qe.volume,ee)&&(Qe.volume=ee,t(20,Qe))}function On(ee){i.$$.not_equal(Qe.playButton,ee)&&(Qe.playButton=ee,t(20,Qe))}function Mn(ee){i.$$.not_equal(Qe.replayButton,ee)&&(Qe.replayButton=ee,t(20,Qe))}function Fn(ee){i.$$.not_equal(Qe.liveButton,ee)&&(Qe.liveButton=ee,t(20,Qe))}function te(ee){i.$$.not_equal(Qe.time,ee)&&(Qe.time=ee,t(20,Qe))}function yt(ee){i.$$.not_equal(Qe.episodes,ee)&&(Qe.episodes=ee,t(20,Qe))}function mn(ee){gi=ee,t(22,gi)}function Ji(ee){i.$$.not_equal(Qe.settings,ee)&&(Qe.settings=ee,t(20,Qe))}function mo(ee){i.$$.not_equal(Qe.fullscreen,ee)&&(Qe.fullscreen=ee,t(20,Qe))}function eo(ee){ve[ee?"unshift":"push"](()=>{Si=ee,t(44,Si)})}function to(ee){i.$$.not_equal(Qe.timeline,ee)&&(Qe.timeline=ee,t(20,Qe))}function io(ee){ve[ee?"unshift":"push"](()=>{fe=ee,t(0,fe)})}function $i(ee){cn=ee,t(21,cn)}function Yn(ee){i.$$.not_equal(Qe.interactiveTimeIndicator,ee)&&(Qe.interactiveTimeIndicator=ee,t(20,Qe))}return i.$$set=ee=>{"bottomHidden"in ee&&t(1,Ue=ee.bottomHidden),"bottomNoSmooth"in ee&&t(2,Ge=ee.bottomNoSmooth),"showControls"in ee&&t(3,x=ee.showControls),"controlsElementRef"in ee&&t(0,fe=ee.controlsElementRef),"isAds"in ee&&t(4,Ye=ee.isAds),"canRewindLive"in ee&&t(5,_e=ee.canRewindLive),"logoClickable"in ee&&t(6,ze=ee.logoClickable),"logoHidden"in ee&&t(111,$e=ee.logoHidden),"logoTargetUrl"in ee&&t(7,rt=ee.logoTargetUrl),"showNextPrevButtons"in ee&&t(8,Je=ee.showNextPrevButtons),"nextButtonActive"in ee&&t(9,Ze=ee.nextButtonActive),"prevButtonActive"in ee&&t(10,He=ee.prevButtonActive),"isOneVideoPlaylist"in ee&&t(112,J=ee.isOneVideoPlaylist),"supportLink"in ee&&t(11,je=ee.supportLink),"customFullscreenSupported"in ee&&t(113,ge=ee.customFullscreenSupported),"playNextVideo"in ee&&t(12,Ie=ee.playNextVideo),"playPrevVideo"in ee&&t(13,We=ee.playPrevVideo),"repeatPlaylist"in ee&&t(114,me=ee.repeatPlaylist),"toggleFullscreen"in ee&&t(14,$=ee.toggleFullscreen),"returnFocus"in ee&&t(15,dt=ee.returnFocus),"seekToInteractive"in ee&&t(16,mt=ee.seekToInteractive),"toggleGraph"in ee&&t(17,tt=ee.toggleGraph),"playPrevChapter"in ee&&t(18,ut=ee.playPrevChapter),"onDisabledPlayPrevChapterClick"in ee&&t(115,Pt=ee.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ee&&t(116,Tt=ee.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&128&&(Vi=z(Z)),i.$$.dirty[4]&64&&t(119,n=oe.has("EPISODE_BUTTON")),i.$$.dirty[4]&64&&t(50,o=oe.has("GRAPH_BUTTON")),i.$$.dirty[4]&64&&t(46,l=oe.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[4]&64&&t(49,r=oe.has("PLAY_BUTTON")),i.$$.dirty[4]&64&&t(48,a=oe.has("REPLAY_BUTTON")),i.$$.dirty[4]&64&&t(47,s=oe.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[3]&536870912&&t(31,_i=g===Nr.PlaybackState.PLAYING),i.$$.dirty[0]&1073741824&&t(32,Ki=ne==="paused"),i.$$.dirty[0]&16|i.$$.dirty[4]&32&&t(33,Tn=L&&!Ye&&!pi),i.$$.dirty[0]&16|i.$$.dirty[4]&32&&t(34,ji=!L||Ye),i.$$.dirty[4]&1&&t(117,yi=C.width>300),i.$$.dirty[4]&1&&t(35,ki=C.width>400),i.$$.dirty[0]&536870912&&t(118,ii=de),i.$$.dirty[0]&469762048|i.$$.dirty[4]&4&&t(36,Kt=U!==Nr.ChromecastState.NOT_AVAILABLE&&!(P&&k===1)&&!W&&!pi),i.$$.dirty[0]&402653184|i.$$.dirty[3]&33554432|i.$$.dirty[4]&20){let ee=se==="LiveWaitingStart";t(37,Wt=!!qi&&U!==Nr.ChromecastState.CONNECTED&&!W&&(k===1&&ee||!ee)&&!ii&&!pi)}i.$$.dirty[3]&33554432|i.$$.dirty[4]&8&&t(38,Gi=!ii&&tn(j,"s")),i.$$.dirty[3]&262144|i.$$.dirty[4]&1&&t(39,wi=!$e&&C.width>350),i.$$.dirty[0]&67108864|i.$$.dirty[3]&34603008|i.$$.dirty[4]&4&&t(40,Ri=Ht.features.fullscreen&&!(P&&k===1)&&(pi?ge:!0)&&!ii),i.$$.dirty[0]&33554448|i.$$.dirty[3]&33554432|i.$$.dirty[4]&1&&t(41,lt=(!T||Ye)&&C.width>260&&!ii&&!(Ht.features.interactiveHideTime&&pi)),i.$$.dirty[0]&8388616&&t(42,Ci=_||x),i.$$.dirty[0]&33554448|i.$$.dirty[3]&117440512&&t(43,Yt=!Ye&&!T&&!!ai?.length&&yi&&!n&&!ii),i.$$.dirty[0]&16777216|i.$$.dirty[4]&2&&t(19,xi=!F||w),i.$$.dirty[0]&1048584|i.$$.dirty[3]&1073741824|i.$$.dirty[4]&1&&bn(rn(),pt,Qe,x),i.$$.dirty[0]&524288|i.$$.dirty[3]&536870912&&Pn(xi,g),i.$$.dirty[0]&12582912&&Ir(gi,_,he),i.$$.dirty[0]&10485760|i.$$.dirty[3]&268435456&&Ko(cn,_,f),i.$$.dirty[0]&1048576|i.$$.dirty[3]&134217728&&Cs(ti,u,Qe.playButton)},Li=z(it.state.playPrevChapterDisabledTooltip),[fe,Ue,Ge,x,Ye,_e,ze,rt,Je,Ze,He,je,Ie,We,$,dt,mt,tt,ut,xi,Qe,cn,gi,_,F,T,P,W,U,de,ne,_i,Ki,Tn,ji,ki,Kt,Wt,Gi,wi,Ri,lt,Ci,Yt,Si,Qt,l,s,a,r,o,y,Pe,q,N,le,Y,re,ce,qe,Ve,we,Re,st,vt,Rt,Bt,Lt,wt,Xt,Mt,ui,Ti,Jt,Ut,si,zt,Pi,Ct,Ei,Mi,ci,fi,he,ai,nn,Hi,Ui,ti,Ai,di,hi,bi,gn,mi,on,hn,pi,vi,zi,xt,In,Wi,ln,sn,an,Bi,vn,un,fn,Qi,$e,J,ge,me,Pt,Tt,yi,ii,n,u,f,g,h,C,w,k,j,se,L,oe,Z,dn,yn,Dn,Zi,Di,Ni,En,jn,Gn,Zt,xn,Xi,Nn,On,Mn,Fn,te,yt,mn,Ji,mo,eo,to,io,$i,Yn]}var Lc=class extends B{constructor(e){super(),D(this,e,i6,t6,R,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:111,logoTargetUrl:7,showNextPrevButtons:8,nextButtonActive:9,prevButtonActive:10,isOneVideoPlaylist:112,supportLink:11,customFullscreenSupported:113,playNextVideo:12,playPrevVideo:13,repeatPlaylist:114,toggleFullscreen:14,returnFocus:15,seekToInteractive:16,toggleGraph:17,playPrevChapter:18,onDisabledPlayPrevChapterClick:115,onDisabledSeekToInteractiveClick:116},K5,[-1,-1,-1,-1,-1,-1])}},$p=Lc;function e0(i){let e,t,n,o,l=[o6,n6],r=[];function a(s,u){return s[26]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=et()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function n6(i){let e,t,n;function o(r){i[29](r)}let l={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22]};return i[0]!==void 0&&(l.controlsElementRef=i[0]),e=new wp({props:l}),ve.push(()=>Oe(e,"controlsElementRef",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a&2&&(s.bottomHidden=r[1]),a&4&&(s.bottomNoSmooth=r[2]),a&8&&(s.showControls=r[3]),a&16&&(s.isAds=r[4]),a&32&&(s.canRewindLive=r[5]),a&64&&(s.logoClickable=r[6]),a&128&&(s.logoHidden=r[7]),a&256&&(s.logoTargetUrl=r[8]),a&512&&(s.showNextPrevButtons=r[9]),a&1024&&(s.nextButtonActive=r[10]),a&2048&&(s.prevButtonActive=r[11]),a&4096&&(s.isOneVideoPlaylist=r[12]),a&8192&&(s.supportLink=r[13]),a&16384&&(s.customFullscreenSupported=r[14]),a&32768&&(s.playNextVideo=r[15]),a&65536&&(s.playPrevVideo=r[16]),a&131072&&(s.repeatPlaylist=r[17]),a&262144&&(s.toggleFullscreen=r[18]),a&524288&&(s.returnFocus=r[19]),a&1048576&&(s.seekToInteractive=r[20]),a&2097152&&(s.toggleGraph=r[21]),a&4194304&&(s.playPrevChapter=r[22]),!t&&a&1&&(t=!0,s.controlsElementRef=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function o6(i){let e,t,n;function o(r){i[28](r)}let l={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22],onDisabledPlayPrevChapterClick:i[23],onDisabledSeekToInteractiveClick:i[24]};return i[0]!==void 0&&(l.controlsElementRef=i[0]),e=new $p({props:l}),ve.push(()=>Oe(e,"controlsElementRef",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a&2&&(s.bottomHidden=r[1]),a&4&&(s.bottomNoSmooth=r[2]),a&8&&(s.showControls=r[3]),a&16&&(s.isAds=r[4]),a&32&&(s.canRewindLive=r[5]),a&64&&(s.logoClickable=r[6]),a&128&&(s.logoHidden=r[7]),a&256&&(s.logoTargetUrl=r[8]),a&512&&(s.showNextPrevButtons=r[9]),a&1024&&(s.nextButtonActive=r[10]),a&2048&&(s.prevButtonActive=r[11]),a&4096&&(s.isOneVideoPlaylist=r[12]),a&8192&&(s.supportLink=r[13]),a&16384&&(s.customFullscreenSupported=r[14]),a&32768&&(s.playNextVideo=r[15]),a&65536&&(s.playPrevVideo=r[16]),a&131072&&(s.repeatPlaylist=r[17]),a&262144&&(s.toggleFullscreen=r[18]),a&524288&&(s.returnFocus=r[19]),a&1048576&&(s.seekToInteractive=r[20]),a&2097152&&(s.toggleGraph=r[21]),a&4194304&&(s.playPrevChapter=r[22]),a&8388608&&(s.onDisabledPlayPrevChapterClick=r[23]),a&16777216&&(s.onDisabledSeekToInteractiveClick=r[24]),!t&&a&1&&(t=!0,s.controlsElementRef=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function r6(i){let e,t,n=i[25]&&e0(i);return{c(){n&&n.c(),e=et()},m(o,l){n&&n.m(o,l),v(o,e,l),t=!0},p(o,[l]){o[25]?n?(n.p(o,l),l&33554432&&d(n,1)):(n=e0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),m(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function l6(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:l=!1}=e,{showControls:r}=e,{controlsElementRef:a=void 0}=e,{isAds:s=!1}=e,{canRewindLive:u}=e,{logoClickable:f}=e,{logoHidden:_}=e,{logoTargetUrl:g=""}=e,{showNextPrevButtons:y}=e,{nextButtonActive:h}=e,{prevButtonActive:C}=e,{isOneVideoPlaylist:w=!1}=e,{supportLink:F}=e,{customFullscreenSupported:T=!0}=e,{playNextVideo:k}=e,{playPrevVideo:P}=e,{repeatPlaylist:j}=e,{toggleFullscreen:W}=e,{returnFocus:U=Is.noop}=e,{seekToInteractive:se}=e,{toggleGraph:de}=e,{playPrevChapter:L}=e,{onDisabledPlayPrevChapterClick:ne=Is.noop}=e,{onDisabledSeekToInteractiveClick:oe=Is.noop}=e,Pe=nt().ui.isMobile;O(i,Pe,Y=>t(26,n=Y));let q=!1;St(()=>{let Y=setTimeout(()=>t(25,q=!0),0);return()=>clearTimeout(Y)});function N(Y){a=Y,t(0,a)}function le(Y){a=Y,t(0,a)}return i.$$set=Y=>{"bottomHidden"in Y&&t(1,o=Y.bottomHidden),"bottomNoSmooth"in Y&&t(2,l=Y.bottomNoSmooth),"showControls"in Y&&t(3,r=Y.showControls),"controlsElementRef"in Y&&t(0,a=Y.controlsElementRef),"isAds"in Y&&t(4,s=Y.isAds),"canRewindLive"in Y&&t(5,u=Y.canRewindLive),"logoClickable"in Y&&t(6,f=Y.logoClickable),"logoHidden"in Y&&t(7,_=Y.logoHidden),"logoTargetUrl"in Y&&t(8,g=Y.logoTargetUrl),"showNextPrevButtons"in Y&&t(9,y=Y.showNextPrevButtons),"nextButtonActive"in Y&&t(10,h=Y.nextButtonActive),"prevButtonActive"in Y&&t(11,C=Y.prevButtonActive),"isOneVideoPlaylist"in Y&&t(12,w=Y.isOneVideoPlaylist),"supportLink"in Y&&t(13,F=Y.supportLink),"customFullscreenSupported"in Y&&t(14,T=Y.customFullscreenSupported),"playNextVideo"in Y&&t(15,k=Y.playNextVideo),"playPrevVideo"in Y&&t(16,P=Y.playPrevVideo),"repeatPlaylist"in Y&&t(17,j=Y.repeatPlaylist),"toggleFullscreen"in Y&&t(18,W=Y.toggleFullscreen),"returnFocus"in Y&&t(19,U=Y.returnFocus),"seekToInteractive"in Y&&t(20,se=Y.seekToInteractive),"toggleGraph"in Y&&t(21,de=Y.toggleGraph),"playPrevChapter"in Y&&t(22,L=Y.playPrevChapter),"onDisabledPlayPrevChapterClick"in Y&&t(23,ne=Y.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in Y&&t(24,oe=Y.onDisabledSeekToInteractiveClick)},[a,o,l,r,s,u,f,_,g,y,h,C,w,F,T,k,P,j,W,U,se,de,L,ne,oe,q,n,Pe,N,le]}var Vc=class extends B{constructor(e){super(),D(this,e,l6,r6,R,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:7,logoTargetUrl:8,showNextPrevButtons:9,nextButtonActive:10,prevButtonActive:11,isOneVideoPlaylist:12,supportLink:13,customFullscreenSupported:14,playNextVideo:15,playPrevVideo:16,repeatPlaylist:17,toggleFullscreen:18,returnFocus:19,seekToInteractive:20,toggleGraph:21,playPrevChapter:22,onDisabledPlayPrevChapterClick:23,onDisabledSeekToInteractiveClick:24})}},Ts=Vc;function s6(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C=i[2].default,w=Ee(C,i,i[1],null),F=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],T={};for(let k=0;k<F.length;k+=1)T=ie(T,F[k]);return{c(){e=V("svg"),w&&w.c(),t=V("g"),n=V("path"),o=V("path"),l=V("defs"),r=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),f=V("feGaussianBlur"),_=V("feColorMatrix"),g=V("feBlend"),y=V("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(_,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2260_100684"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2260_100684"),c(y,"result","shape"),c(r,"id","a"),c(r,"width","43.996"),c(r,"height","49.5"),c(r,"x","2.5"),c(r,"y","0"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ke(e,T)},m(k,P){v(k,e,P),w&&w.m(e,null),p(e,t),p(t,n),p(t,o),p(e,l),p(l,r),p(r,a),p(r,s),p(r,u),p(r,f),p(r,_),p(r,g),p(r,y),h=!0},p(k,[P]){w&&w.p&&(!h||P&2)&&Ae(w,C,k,k[1],h?Me(C,k[1],P,null):Le(k[1]),null),ke(e,T=Be(F,[{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){h||(d(w,k),h=!0)},o(k){m(w,k),h=!1},d(k){k&&b(e),w&&w.d(k)}}}function a6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Rc=class extends B{constructor(e){super(),D(this,e,a6,s6,R,{})}},t0=Rc;function u6(i){let e,t;return e=new t0({props:{style:i[0]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function c6(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Bc=class extends B{constructor(e){super(),D(this,e,c6,u6,R,{reversed:1})}},i0=Bc;function f6(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C,w,F=i[2].default,T=Ee(F,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 j=0;j<k.length;j+=1)P=ie(P,k[j]);return{c(){e=V("svg"),T&&T.c(),t=V("g"),n=V("path"),o=V("path"),l=V("defs"),r=V("clipPath"),a=V("path"),s=V("filter"),u=V("feFlood"),f=V("feColorMatrix"),_=V("feOffset"),g=V("feGaussianBlur"),y=V("feColorMatrix"),h=V("feBlend"),C=V("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"clip-path","url(#c)"),c(t,"filter","url(#a)"),c(a,"fill","#fff"),c(a,"d","M0 0h48v48H0z"),c(r,"id","c"),c(u,"flood-opacity","0"),c(u,"result","BackgroundImageFix"),c(f,"in","SourceAlpha"),c(f,"result","hardAlpha"),c(f,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(g,"stdDeviation","2.5"),c(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2260_104204"),c(C,"in","SourceGraphic"),c(C,"in2","effect1_dropShadow_2260_104204"),c(C,"result","shape"),c(s,"id","a"),c(s,"width","51"),c(s,"height","45"),c(s,"x","-1.5"),c(s,"y","1.5"),c(s,"color-interpolation-filters","sRGB"),c(s,"filterUnits","userSpaceOnUse"),ke(e,P)},m(j,W){v(j,e,W),T&&T.m(e,null),p(e,t),p(t,n),p(t,o),p(e,l),p(l,r),p(r,a),p(l,s),p(s,u),p(s,f),p(s,_),p(s,g),p(s,y),p(s,h),p(s,C),w=!0},p(j,[W]){T&&T.p&&(!w||W&2)&&Ae(T,F,j,j[1],w?Me(F,j[1],W,null):Le(j[1]),null),ke(e,P=Be(k,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},W&1&&j[0]]))},i(j){w||(d(T,j),w=!0)},o(j){m(T,j),w=!1},d(j){j&&b(e),T&&T.d(j)}}}function d6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Dc=class extends B{constructor(e){super(),D(this,e,d6,f6,R,{})}},n0=Dc;function m6(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,T=i[2].default,k=Ee(T,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]],j={};for(let W=0;W<P.length;W+=1)j=ie(j,P[W]);return{c(){e=V("svg"),k&&k.c(),t=V("g"),n=V("path"),o=V("path"),l=V("path"),r=V("defs"),a=V("clipPath"),s=V("path"),u=V("filter"),f=V("feFlood"),_=V("feColorMatrix"),g=V("feOffset"),y=V("feGaussianBlur"),h=V("feColorMatrix"),C=V("feBlend"),w=V("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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"),c(l,"stroke","#000"),c(l,"stroke-opacity",".12"),c(l,"stroke-width",".5"),c(l,"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"),c(t,"clip-path","url(#c)"),c(t,"filter","url(#a)"),c(s,"fill","#fff"),c(s,"d","M0 0h48v48H0z"),c(a,"id","c"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(_,"in","SourceAlpha"),c(_,"result","hardAlpha"),c(_,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(y,"stdDeviation","2.5"),c(h,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(C,"in2","BackgroundImageFix"),c(C,"result","effect1_dropShadow_2260_104293"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2260_104293"),c(w,"result","shape"),c(u,"id","a"),c(u,"width","51"),c(u,"height","51"),c(u,"x","-1.5"),c(u,"y","-1.5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),ke(e,j)},m(W,U){v(W,e,U),k&&k.m(e,null),p(e,t),p(t,n),p(t,o),p(t,l),p(e,r),p(r,a),p(a,s),p(r,u),p(u,f),p(u,_),p(u,g),p(u,y),p(u,h),p(u,C),p(u,w),F=!0},p(W,[U]){k&&k.p&&(!F||U&2)&&Ae(k,T,W,W[1],F?Me(T,W[1],U,null):Le(W[1]),null),ke(e,j=Be(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},U&1&&W[0]]))},i(W){F||(d(k,W),F=!0)},o(W){m(k,W),F=!1},d(W){W&&b(e),k&&k.d(W)}}}function p6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Nc=class extends B{constructor(e){super(),D(this,e,p6,m6,R,{})}},o0=Nc;function _6(i){let e,t;return e=new n0({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function g6(i){let e,t;return e=new o0({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function h6(i){let e,t,n,o,l=[g6,_6],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=et()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t||(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function b6(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Oc=class extends B{constructor(e){super(),D(this,e,b6,h6,R,{isOff:0})}},Fc=Oc;function v6(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C=i[2].default,w=Ee(C,i,i[1],null),F=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},i[0]],T={};for(let k=0;k<F.length;k+=1)T=ie(T,F[k]);return{c(){e=V("svg"),w&&w.c(),t=V("g"),n=V("path"),o=V("path"),l=V("defs"),r=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),f=V("feGaussianBlur"),_=V("feColorMatrix"),g=V("feBlend"),y=V("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(_,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2260_106627"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2260_106627"),c(y,"result","shape"),c(r,"id","a"),c(r,"width","40.098"),c(r,"height","27.785"),c(r,"x","3.402"),c(r,"y","10.105"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ke(e,T)},m(k,P){v(k,e,P),w&&w.m(e,null),p(e,t),p(t,n),p(t,o),p(e,l),p(l,r),p(r,a),p(r,s),p(r,u),p(r,f),p(r,_),p(r,g),p(r,y),h=!0},p(k,[P]){w&&w.p&&(!h||P&2)&&Ae(w,C,k,k[1],h?Me(C,k[1],P,null):Le(k[1]),null),ke(e,T=Be(F,[{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){h||(d(w,k),h=!0)},o(k){m(w,k),h=!1},d(k){k&&b(e),w&&w.d(k)}}}function y6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var qc=class extends B{constructor(e){super(),D(this,e,y6,v6,R,{})}},r0=qc;function k6(i){let e,t;return e=new r0({props:{style:i[0]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function w6(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Hc=class extends B{constructor(e){super(),D(this,e,w6,k6,R,{reversed:1})}},l0=Hc;function C6(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C=i[2].default,w=Ee(C,i,i[1],null),F=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},i[0]],T={};for(let k=0;k<F.length;k+=1)T=ie(T,F[k]);return{c(){e=V("svg"),w&&w.c(),t=V("g"),n=V("path"),o=V("path"),l=V("defs"),r=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),f=V("feGaussianBlur"),_=V("feColorMatrix"),g=V("feBlend"),y=V("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(_,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2340_106922"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2340_106922"),c(y,"result","shape"),c(r,"id","a"),c(r,"width","37"),c(r,"height","37"),c(r,"x","5.5"),c(r,"y","5.5"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ke(e,T)},m(k,P){v(k,e,P),w&&w.m(e,null),p(e,t),p(t,n),p(t,o),p(e,l),p(l,r),p(r,a),p(r,s),p(r,u),p(r,f),p(r,_),p(r,g),p(r,y),h=!0},p(k,[P]){w&&w.p&&(!h||P&2)&&Ae(w,C,k,k[1],h?Me(C,k[1],P,null):Le(k[1]),null),ke(e,T=Be(F,[{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){h||(d(w,k),h=!0)},o(k){m(w,k),h=!1},d(k){k&&b(e),w&&w.d(k)}}}function S6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Uc=class extends B{constructor(e){super(),D(this,e,S6,C6,R,{})}},s0=Uc;function I6(i){let e,t;return e=new s0({props:{style:i[0]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function T6(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var zc=class extends B{constructor(e){super(),D(this,e,T6,I6,R,{reversed:1})}},a0=zc;function P6(i){Se(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 u0(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,l,r,a,s,u=["RATE_DOWN","RATE_UP"].includes(i[4]),f,_=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),g,y,h,C,w,F=t&&c0(i),T=i[4]==="PAUSE"&&f0(i),k=i[4]==="PLAY"&&d0(i),P=i[4]==="REPLAY"&&m0(i),j=i[4]==="SUBTITLES_OFF"&&p0(i),W=i[4]==="SUBTITLES_ON"&&_0(i),U=u&&g0(i),se=_&&h0(i),de=i[4]==="MUTE"&&b0(i),L=i[4]==="VOLUME"&&v0(i),ne=i[5]&&y0(i);return{c(){e=I("div"),F&&F.c(),n=H(),T&&T.c(),o=H(),k&&k.c(),l=H(),P&&P.c(),r=H(),j&&j.c(),a=H(),W&&W.c(),s=H(),U&&U.c(),f=H(),se&&se.c(),g=H(),de&&de.c(),y=H(),L&&L.c(),h=H(),ne&&ne.c(),C=et(),c(e,"class","svelte-1ad3n06")},m(oe,Z){v(oe,e,Z),F&&F.m(e,null),p(e,n),T&&T.m(e,null),p(e,o),k&&k.m(e,null),p(e,l),P&&P.m(e,null),p(e,r),j&&j.m(e,null),p(e,a),W&&W.m(e,null),p(e,s),U&&U.m(e,null),p(e,f),se&&se.m(e,null),p(e,g),de&&de.m(e,null),p(e,y),L&&L.m(e,null),v(oe,h,Z),ne&&ne.m(oe,Z),v(oe,C,Z),w=!0},p(oe,Z){Z&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(oe[4])),t?F?(F.p(oe,Z),Z&16&&d(F,1)):(F=c0(oe),F.c(),d(F,1),F.m(e,n)):F&&(ae(),m(F,1,1,()=>{F=null}),ue()),oe[4]==="PAUSE"?T?Z&16&&d(T,1):(T=f0(oe),T.c(),d(T,1),T.m(e,o)):T&&(ae(),m(T,1,1,()=>{T=null}),ue()),oe[4]==="PLAY"?k?Z&16&&d(k,1):(k=d0(oe),k.c(),d(k,1),k.m(e,l)):k&&(ae(),m(k,1,1,()=>{k=null}),ue()),oe[4]==="REPLAY"?P?Z&16&&d(P,1):(P=m0(oe),P.c(),d(P,1),P.m(e,r)):P&&(ae(),m(P,1,1,()=>{P=null}),ue()),oe[4]==="SUBTITLES_OFF"?j?Z&16&&d(j,1):(j=p0(oe),j.c(),d(j,1),j.m(e,a)):j&&(ae(),m(j,1,1,()=>{j=null}),ue()),oe[4]==="SUBTITLES_ON"?W?Z&16&&d(W,1):(W=_0(oe),W.c(),d(W,1),W.m(e,s)):W&&(ae(),m(W,1,1,()=>{W=null}),ue()),Z&16&&(u=["RATE_DOWN","RATE_UP"].includes(oe[4])),u?U?(U.p(oe,Z),Z&16&&d(U,1)):(U=g0(oe),U.c(),d(U,1),U.m(e,f)):U&&(ae(),m(U,1,1,()=>{U=null}),ue()),Z&16&&(_=["EPISODE_PREV","EPISODE_NEXT"].includes(oe[4])),_?se?(se.p(oe,Z),Z&16&&d(se,1)):(se=h0(oe),se.c(),d(se,1),se.m(e,g)):se&&(ae(),m(se,1,1,()=>{se=null}),ue()),oe[4]==="MUTE"?de?Z&16&&d(de,1):(de=b0(oe),de.c(),d(de,1),de.m(e,y)):de&&(ae(),m(de,1,1,()=>{de=null}),ue()),oe[4]==="VOLUME"?L?Z&16&&d(L,1):(L=v0(oe),L.c(),d(L,1),L.m(e,null)):L&&(ae(),m(L,1,1,()=>{L=null}),ue()),oe[5]?ne?ne.p(oe,Z):(ne=y0(oe),ne.c(),ne.m(C.parentNode,C)):ne&&(ne.d(1),ne=null)},i(oe){w||(d(F),d(T),d(k),d(P),d(j),d(W),d(U),d(se),d(de),d(L),w=!0)},o(oe){m(F),m(T),m(k),m(P),m(j),m(W),m(U),m(se),m(de),m(L),w=!1},d(oe){oe&&(b(e),b(h),b(C)),F&&F.d(),T&&T.d(),k&&k.d(),P&&P.d(),j&&j.d(),W&&W.d(),U&&U.d(),se&&se.d(),de&&de.d(),L&&L.d(),ne&&ne.d(oe)}}}function c0(i){let e,t;return e=new i0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="FORWARD_SEEK"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function f0(i){let e,t;return e=new is({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function d0(i){let e,t;return e=new Rr({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function m0(i){let e,t;return e=new ms({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function p0(i){let e,t;return e=new Fc({props:{isOff:!0}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function _0(i){let e,t;return e=new Fc({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function g0(i){let e,t;return e=new l0({props:{reversed:i[4]==="RATE_UP"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="RATE_UP"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function h0(i){let e,t;return e=new a0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="EPISODE_NEXT"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function b0(i){let e,t;return e=new Yo({props:{volume:0}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function v0(i){let e,t;return e=new Yo({props:{volume:1}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function y0(i){let e,t;return{c(){e=I("span"),t=De(i[5]),c(e,"class","hot-key-helpers-text svelte-1ad3n06")},m(n,o){v(n,e,o),p(e,t)},p(n,o){o&32&&xe(t,n[5])},d(n){n&&b(e)}}}function E6(i){let e,t,n=!i[1]&&i[4]&&u0(i);return{c(){e=I("div"),n&&n.c(),c(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,l){v(o,e,l),n&&n.m(e,null),t=!0},p(o,[l]){!o[1]&&o[4]?n?(n.p(o,l),l&18&&d(n,1)):(n=u0(o),n.c(),d(n,1),n.m(e,null)):n&&(ae(),m(n,1,1,()=>{n=null}),ue()),(!t||l&2)&&K(e,"hidden",o[1]),(!t||l&4)&&K(e,"hot-key-helpers-container--left",o[2]),(!t||l&8)&&K(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d()}}}function M6(i,e,t){let n,o=be,l=()=>(o(),o=Gt(r,g=>t(6,n=g)),r);i.$$.on_destroy.push(()=>o());let{data:r}=e;l();let a,s,u,f,_;return i.$$set=g=>{"data"in g&&l(t(0,r=g.data))},i.$$.update=()=>{i.$$.dirty&64&&(t(1,a=!n),t(2,s=n?.type==="BACKWARD_SEEK"),t(3,u=n?.type==="FORWARD_SEEK"),t(4,f=n?.type),n?.t?t(5,_=z(n.t.key,{value:n.t.value||""})):t(5,_=n?.text))},[r,a,s,u,f,_,n]}var Wc=class extends B{constructor(e){super(),D(this,e,M6,E6,R,{data:0},P6)}},k0=Wc;function A6(i){Se(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 L6(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,T,k;return l=new xo({props:{direction:"up"}}),s=new xo({props:{direction:"up"}}),g=new xo({props:{direction:"up"}}),C=new xo({props:{direction:"up"}}),{c(){e=I("div"),t=I("div"),n=I("div"),o=I("div"),A(l.$$.fragment),r=H(),a=I("div"),A(s.$$.fragment),u=H(),f=I("div"),_=I("div"),A(g.$$.fragment),y=H(),h=I("div"),A(C.$$.fragment),c(o,"class","button button-up svelte-1yzc86r"),c(a,"class","button button-right svelte-1yzc86r"),c(n,"class","button-row svelte-1yzc86r"),c(_,"class","button button-left svelte-1yzc86r"),c(h,"class","button button-down svelte-1yzc86r"),c(f,"class","button-row svelte-1yzc86r"),c(t,"class","button-block svelte-1yzc86r"),c(t,"aria-hidden","true"),c(e,"class","immersive-controls svelte-1yzc86r"),c(e,"tabindex","0"),c(e,"role","button"),c(e,"aria-label",w=z("aria_label_spherical_control")),K(e,"m-shifted",i[0])},m(P,j){v(P,e,j),p(e,t),p(t,n),p(n,o),E(l,o,null),p(n,r),p(n,a),E(s,a,null),p(t,u),p(t,f),p(f,_),E(g,_,null),p(f,y),p(f,h),E(C,h,null),F=!0,T||(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(_,"mousedown",i[4]),Te(_,"mouseup",i[5]),Te(_,"mouseleave",i[5]),Te(h,"mousedown",i[2]),Te(h,"mouseup",i[5]),Te(h,"mouseleave",i[5]),Te(e,"keydown",i[6]),Te(e,"keyup",i[7])],T=!0)},p(P,[j]){(!F||j&1)&&K(e,"m-shifted",P[0])},i(P){F||(d(l.$$.fragment,P),d(s.$$.fragment,P),d(g.$$.fragment,P),d(C.$$.fragment,P),F=!0)},o(P){m(l.$$.fragment,P),m(s.$$.fragment,P),m(g.$$.fragment,P),m(C.$$.fragment,P),F=!1},d(P){P&&b(e),M(l),M(s),M(g),M(C),T=!1,ct(k)}}}function V6(i,e,t){let{isShifted:n=!1}=e,o=nt(),l=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),r=()=>{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)},f=()=>(o.actions.internal.stopCameraManualRotation(),null),_=y=>{if(l.has(y.code))switch(y.preventDefault(),y.stopPropagation(),y.code){case"ArrowUp":r();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},g=y=>{l.has(y.code)&&(y.preventDefault(),y.stopPropagation(),f())};return i.$$set=y=>{"isShifted"in y&&t(0,n=y.isShifted)},[n,r,a,s,u,f,_,g]}var Kc=class extends B{constructor(e){super(),D(this,e,V6,L6,R,{isShifted:0},A6)}},Ps=Kc;function R6(i){Se(i,"svelte-ovfyp5",".subtitles-container.svelte-ovfyp5.svelte-ovfyp5{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.svelte-ovfyp5.svelte-ovfyp5{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.svelte-ovfyp5.svelte-ovfyp5{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.svelte-ovfyp5.svelte-ovfyp5{bottom:8%}.subtitles-container.auto.svelte-ovfyp5 .subtitles-caption.svelte-ovfyp5{left:24%;right:24%}.caption.svelte-ovfyp5.svelte-ovfyp5{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.svelte-ovfyp5 .caption.svelte-ovfyp5{width:100%}.caption-line.svelte-ovfyp5.svelte-ovfyp5{display:block;text-align:center}.subtitles-container.auto.svelte-ovfyp5 .caption-line.svelte-ovfyp5{text-align:left}.caption-segment.svelte-ovfyp5.svelte-ovfyp5{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function w0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function C0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function S0(i){let e,t;function n(r,a){return r[7]&&r[8]?N6:r[5]?D6:B6}let o=n(i,-1),l=o(i);return{c(){e=I("div"),t=I("span"),l.c(),c(t,"class","caption svelte-ovfyp5"),c(e,"class","subtitles-caption svelte-ovfyp5"),K(e,"mobile",i[3])},m(r,a){v(r,e,a),p(e,t),l.m(t,null)},p(r,a){o===(o=n(r,a))&&l?l.p(r,a):(l.d(1),l=o(r),l&&(l.c(),l.m(t,null))),a&8&&K(e,"mobile",r[3])},d(r){r&&b(e),l.d()}}}function B6(i){let e,t=ht(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=I0(w0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=et()},m(o,l){for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(o,l);v(o,e,l)},p(o,l){if(l&18){t=ht(o[1]);let r;for(r=0;r<t.length;r+=1){let a=w0(o,t,r);n[r]?n[r].p(a,l):(n[r]=I0(a),n[r].c(),n[r].m(e.parentNode,e))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&b(e),ni(n,o)}}}function D6(i){let e,t,n=ht(i[6]),o=[];for(let l=0;l<n.length;l+=1)o[l]=P0(C0(i,n,l));return{c(){e=I("span"),t=I("span");for(let l=0;l<o.length;l+=1)o[l].c();c(t,"class","caption-segment svelte-ovfyp5"),li(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){v(l,e,r),p(e,t);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(l,r){if(r&68){n=ht(l[6]);let a;for(a=0;a<n.length;a+=1){let s=C0(l,n,a);o[a]?o[a].p(s,r):(o[a]=P0(s),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}r&16&&li(t,"font-size",l[4]+"px")},d(l){l&&b(e),ni(o,l)}}}function N6(i){let e,t,n=z("subtitles_auto_caption")+"",o;return{c(){e=I("span"),t=I("span"),o=De(n),c(t,"class","caption-segment svelte-ovfyp5"),li(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){v(l,e,r),p(e,t),p(t,o)},p(l,r){r&16&&li(t,"font-size",l[4]+"px")},d(l){l&&b(e)}}}function I0(i){let e,t,n=i[16]+"",o,l;return{c(){e=I("span"),t=I("span"),o=De(n),l=H(),c(t,"class","caption-segment svelte-ovfyp5"),li(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,a){v(r,e,a),p(e,t),p(t,o),p(e,l)},p(r,a){a&2&&n!==(n=r[16]+"")&&xe(o,n),a&16&&li(t,"font-size",r[4]+"px")},d(r){r&&b(e)}}}function T0(i){let e=i[16]+"",t;return{c(){t=De(e)},m(n,o){v(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&xe(t,e)},d(n){n&&b(t)}}}function P0(i){let e,t=(!i[17]||i[17]<=i[2])&&T0(i);return{c(){t&&t.c(),e=et()},m(n,o){t&&t.m(n,o),v(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=T0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&b(e),t&&t.d(n)}}}function O6(i){let e,t=i[1].length>0&&S0(i);return{c(){e=I("div"),t&&t.c(),c(e,"class","subtitles-container svelte-ovfyp5"),K(e,"shifted",i[0]),K(e,"auto",i[5]&&!i[8])},m(n,o){v(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=S0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&K(e,"shifted",n[0]),o&288&&K(e,"auto",n[5]&&!n[8])},i:be,o:be,d(n){n&&b(e),t&&t.d()}}}function F6(i,e,t){let n,o,{shifted:l}=e,{captions:r}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,f=nt(),_=qt(),g=f.state.currentSubtitle$;O(i,g,k=>t(12,n=k));let y=f.state.isAutoSubtitleCaptionVisible$;O(i,y,k=>t(8,o=k));let h,C,w,F,T;return St(()=>{T=window.setTimeout(()=>{y.set(!1)},_.autoSubtitlesTimeout)}),Hn(()=>{window.clearTimeout(T)}),i.$$set=k=>{"shifted"in k&&t(0,l=k.shifted),"captions"in k&&t(1,r=k.captions),"position"in k&&t(2,a=k.position),"playerSize"in k&&t(11,s=k.playerSize),"isMobile"in k&&t(3,u=k.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048){let k=s.width*.02;t(4,h=k<=_.minSubtitlesFontSize?_.minSubtitlesFontSize:k)}i.$$.dirty&2&&t(5,C=r.some(k=>k.type==="timestamp")),i.$$.dirty&2&&t(6,w=r.reduce((k,{type:P,value:j})=>(P==="timestamp"?k.push({timeAppeared:Number(j),value:""}):k.length===0?k.push({value:String(j)}):k[k.length-1].value=String(j),k),[])),i.$$.dirty&4096&&t(7,F=!!n.isAuto)},[l,r,a,u,h,C,w,F,o,g,y,s,n]}var jc=class extends B{constructor(e){super(),D(this,e,F6,O6,R,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},R6)}},Es=jc;function q6(i){Se(i,"svelte-1o62kpz",".wrapper.svelte-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.svelte-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.svelte-1o62kpz{width:50px;height:50px}.text.svelte-1o62kpz{margin-top:20px}")}function E0(i){let e,t,n;return{c(){e=I("div"),t=De("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=De(i[1]),c(e,"class","text svelte-1o62kpz")},m(o,l){v(o,e,l),p(e,t),p(e,n)},p(o,l){l&2&&xe(n,o[1])},d(o){o&&b(e)}}}function H6(i){let e,t,n,o,l,r,a=i[1]&&E0(i);return{c(){e=I("div"),t=I("div"),t.innerHTML='<svg class="icon svelte-1o62kpz" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=H(),a&&a.c(),c(t,"class","icon_wrapper svelte-1o62kpz"),c(e,"class","wrapper svelte-1o62kpz"),c(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${i[0]||""}')`)},m(s,u){v(s,e,u),p(e,t),p(e,n),a&&a.m(e,null),l||(r=Te(e,"click",i[2]),l=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=E0(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]||""}')`)&&c(e,"style",o)},i:be,o:be,d(s){s&&b(e),a&&a.d(),l=!1,r()}}}function U6(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function l(r){Cn.call(this,i,r)}return i.$$set=r=>{"thumbUrl"in r&&t(0,n=r.thumbUrl),"chromecastDeviceName"in r&&t(1,o=r.chromecastDeviceName)},[n,o,l]}var Gc=class extends B{constructor(e){super(),D(this,e,U6,H6,R,{thumbUrl:0,chromecastDeviceName:1},q6)}},Ms=Gc;function z6(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function W6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var xc=class extends B{constructor(e){super(),D(this,e,W6,z6,R,{})}},M0=xc;function K6(i){Se(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 j6(i){let e,t,n;return t=new M0({}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","container svelte-13zpvm8")},m(o,l){v(o,e,l),E(t,e,null),n=!0},p:be,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}var Yc=class extends B{constructor(e){super(),D(this,e,null,j6,R,{},K6)}},As=Yc;function G6(i){Se(i,"svelte-17wno3",".container.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:cover;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.svelte-17wno3.svelte-17wno3{opacity:0;visibility:hidden}.playButton.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.svelte-17wno3:hover .playButtonBackground.svelte-17wno3{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.svelte-17wno3 svg{transform:scale(2)}")}function x6(i){let e,t,n,o,l,r,a,s,u,f;return l=new Rr({}),{c(){e=I("div"),t=I("div"),n=I("div"),o=H(),A(l.$$.fragment),c(n,"class","playButtonBackground svelte-17wno3"),c(t,"class","playButton svelte-17wno3"),c(t,"tabindex","0"),c(t,"role","button"),c(t,"aria-label",r=z("tooltip_play")),c(e,"class","container svelte-17wno3"),c(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),K(e,"hidden",i[1])},m(_,g){v(_,e,g),p(e,t),p(t,n),p(t,o),E(l,t,null),s=!0,u||(f=[Te(t,"keydown",i[3]),Te(e,"click",_t(function(){jt(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(_,[g]){i=_,(!s||g&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&c(e,"style",a),(!s||g&2)&&K(e,"hidden",i[1])},i(_){s||(d(l.$$.fragment,_),s=!0)},o(_){m(l.$$.fragment,_),s=!1},d(_){_&&b(e),M(l),u=!1,ct(f)}}}function Y6(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:l}=e,a=nt().ui.startedByKeyboard$,s=u=>{let f=u.code;["Enter","Space"].includes(f)&&(u.stopPropagation(),u.preventDefault(),a.set(!0),l())};return i.$$set=u=>{"thumbUrl"in u&&t(0,n=u.thumbUrl),"hidden"in u&&t(1,o=u.hidden),"startVideo"in u&&t(2,l=u.startVideo)},[n,o,l,s]}var Qc=class extends B{constructor(e){super(),D(this,e,Y6,x6,R,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},G6)}get handlePressKey(){return this.$$.ctx[3]}},Ls=Qc;function Q6(i){Se(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 $6(i){let e,t;return{c(){e=T("div"),t=Ne(i[0]),c(e,"class","title svelte-1bcvcf2"),W(e,"hidden",i[1])},m(n,o){v(n,e,o),p(e,t)},p(n,[o]){o&1&&xe(t,n[0]),o&2&&W(e,"hidden",n[1])},i:ge,o:ge,d(n){n&&b(e)}}}function e8(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=l=>{"title"in l&&t(0,n=l.title),"isHidden"in l&&t(1,o=l.isHidden)},[n,o]}var Zc=class extends D{constructor(e){super(),N(this,e,e8,$6,B,{title:0,isHidden:1},J6)}},V0=Zc;function t8(i){Ie(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 R0(i){let e,t,n,o,l,r,a;return{c(){e=T("div"),t=T("span"),n=Ne(i[0]),o=q(),l=T("span"),l.textContent=`${U("waiting_live_day_value")}`,r=q(),a=T("span"),a.textContent=`${U("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){v(s,e,u),p(e,t),p(t,n),p(e,o),p(e,l),v(s,r,u),v(s,a,u)},p(s,u){u&1&&xe(n,s[0])},d(s){s&&(b(e),b(r),b(a))}}}function B0(i){let e,t,n,o,l,r,a;return{c(){e=T("div"),t=T("span"),n=Ne(i[1]),o=q(),l=T("span"),l.textContent=`${U("waiting_live_hour_value")}`,r=q(),a=T("span"),a.textContent=`${U("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){v(s,e,u),p(e,t),p(t,n),p(e,o),p(e,l),v(s,r,u),v(s,a,u)},p(s,u){u&2&&xe(n,s[1])},d(s){s&&(b(e),b(r),b(a))}}}function D0(i){let e,t,n,o,l,r,a;return{c(){e=T("div"),t=T("span"),n=Ne(i[2]),o=q(),l=T("span"),l.textContent=`${U("waiting_live_minute_value")}`,r=q(),a=T("span"),a.textContent=`${U("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){v(s,e,u),p(e,t),p(t,n),p(e,o),p(e,l),v(s,r,u),v(s,a,u)},p(s,u){u&4&&xe(n,s[2])},d(s){s&&(b(e),b(r),b(a))}}}function N0(i){let e,t,n,o,l;return{c(){e=T("div"),t=T("span"),n=Ne(i[3]),o=q(),l=T("span"),l.textContent=`${U("waiting_live_second_value")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg")},m(r,a){v(r,e,a),p(e,t),p(t,n),p(e,o),p(e,l)},p(r,a){a&8&&xe(n,r[3])},d(r){r&&b(e)}}}function i8(i){let e,t,n,o,l=i[0]&&R0(i),r=i[1]&&B0(i),a=i[2]&&D0(i),s=i[3]&&N0(i);return{c(){e=T("div"),l&&l.c(),t=q(),r&&r.c(),n=q(),a&&a.c(),o=q(),s&&s.c(),c(e,"class","timer__container svelte-1qpxtfg")},m(u,f){v(u,e,f),l&&l.m(e,null),p(e,t),r&&r.m(e,null),p(e,n),a&&a.m(e,null),p(e,o),s&&s.m(e,null)},p(u,[f]){u[0]?l?l.p(u,f):(l=R0(u),l.c(),l.m(e,t)):l&&(l.d(1),l=null),u[1]?r?r.p(u,f):(r=B0(u),r.c(),r.m(e,n)):r&&(r.d(1),r=null),u[2]?a?a.p(u,f):(a=D0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,f):(s=N0(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:ge,o:ge,d(u){u&&b(e),l&&l.d(),r&&r.d(),a&&a.d(),s&&s.d()}}}function n8(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,l,r,a,s,u,f=y=>String(y).padStart(2,"0"),_=y=>{let h=Math.floor(y/86400);h&&(y-=h*86400,t(0,l=f(h)));let C=Math.floor(y/3600);t(1,r=f(C));let w=Math.floor(y/60)%60;t(2,a=f(w));let F=y%60;t(3,s=f(F))},g=()=>{let y=Math.floor(Date.now()/1e3),h=n-y;_(h),h>=1?u=requestAnimationFrame(g):o()};return St(()=>{u=requestAnimationFrame(g)}),zn(()=>{cancelAnimationFrame(u)}),i.$$set=y=>{"startTime"in y&&t(4,n=y.startTime),"onTimerOver"in y&&t(5,o=y.onTimerOver)},[l,r,a,s,n,o]}var Xc=class extends D{constructor(e){super(),N(this,e,n8,i8,B,{startTime:4,onTimerOver:5},t8)}},O0=Xc;function o8(i){let e,t,n,o,l,r,a=i[2].default,s=Ee(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]],f={};for(let _=0;_<u.length;_+=1)f=re(f,u[_]);return{c(){e=V("svg"),s&&s.c(),t=V("path"),n=V("path"),o=V("path"),l=V("path"),c(t,"fill","#fefffe"),c(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"),ci(t,"opacity",".965"),c(n,"fill","#fefffe"),c(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"),ci(n,"opacity",".965"),c(o,"fill","#fefffe"),c(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"),ci(o,"opacity",".985"),c(l,"fill","#fefffe"),c(l,"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"),ci(l,"opacity",".986"),ke(e,f)},m(_,g){v(_,e,g),s&&s.m(e,null),p(e,t),p(e,n),p(e,o),p(e,l),r=!0},p(_,[g]){s&&s.p&&(!r||g&2)&&Ae(s,a,_,_[1],r?Me(a,_[1],g,null):Le(_[1]),null),ke(e,f=Ve(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"},g&1&&_[0]]))},i(_){r||(d(s,_),r=!0)},o(_){m(s,_),r=!1},d(_){_&&b(e),s&&s.d(_)}}}function r8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Jc=class extends D{constructor(e){super(),N(this,e,r8,o8,B,{})}},F0=Jc;function l8(i){Ie(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 s8(i){let e,t,n,o,l;return o=new O0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=T("div"),t=T("span"),t.textContent=`${U("waiting_live_timer_title")}`,n=q(),L(o.$$.fragment),c(t,"class","timer__title svelte-15pewff"),c(e,"class","waiting-timer timer svelte-15pewff")},m(r,a){v(r,e,a),p(e,t),p(e,n),M(o,e,null),l=!0},p(r,a){let s={};a&2&&(s.startTime=r[1]||0),a&4&&(s.onTimerOver=r[3]),o.$set(s)},i(r){l||(d(o.$$.fragment,r),l=!0)},o(r){m(o.$$.fragment,r),l=!1},d(r){r&&b(e),A(o)}}}function a8(i){let e,t,n,o,l,r;return n=new F0({}),{c(){e=T("div"),t=T("div"),L(n.$$.fragment),o=q(),l=T("span"),l.textContent=`${U("waiting_live_upcoming_title")}`,c(t,"class","upcoming-icon svelte-15pewff"),c(l,"class","upcoming__title svelte-15pewff"),c(e,"class","upcoming svelte-15pewff")},m(a,s){v(a,e,s),p(e,t),M(n,t,null),p(e,o),p(e,l),r=!0},p:ge,i(a){r||(d(n.$$.fragment,a),r=!0)},o(a){m(n.$$.fragment,a),r=!1},d(a){a&&b(e),A(n)}}}function u8(i){let e,t,n,o,l,r=[a8,s8],a=[];function s(u,f){return u[2]?0:1}return t=s(i,-1),n=a[t]=r[t](i),{c(){e=T("div"),n.c(),c(e,"class","waiting-container svelte-15pewff"),c(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,f){v(u,e,f),a[t].m(e,null),l=!0},p(u,[f]){let _=t;t=s(u,f),t===_?a[t].p(u,f):(ae(),m(a[_],1,1,()=>{a[_]=null}),ue(),n=a[t],n?n.p(u,f):(n=a[t]=r[t](u),n.c()),d(n,1),n.m(e,null)),(!l||f&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&c(e,"style",o)},i(u){l||(d(n),l=!0)},o(u){m(n),l=!1},d(u){u&&b(e),a[t].d()}}}function c8(i,e,t){let n,{thumbUrl:o}=e,{startTime:l}=e,r=()=>t(2,n=!0);return i.$$set=a=>{"thumbUrl"in a&&t(0,o=a.thumbUrl),"startTime"in a&&t(1,l=a.startTime)},i.$$.update=()=>{i.$$.dirty&2&&t(2,n=l===void 0||l<Math.floor(Date.now()/1e3))},[o,l,n,r]}var $c=class extends D{constructor(e){super(),N(this,e,c8,u8,B,{thumbUrl:0,startTime:1},l8)}},Bs=$c;function f8(i){Ie(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 d8(i){let e,t,n,o,l,r,a,s;return n=new Sr({props:{style:"position: static; transform: translate(0, 0)"}}),{c(){e=T("div"),t=T("div"),L(n.$$.fragment),o=q(),l=T("p"),r=Ne(i[1]),c(l,"class","waiting-title svelte-xvqwsa"),c(t,"class","waiting-caption svelte-xvqwsa"),c(e,"class","waiting-container svelte-xvqwsa"),c(e,"style",a=`background-image: url('${i[0]}')`)},m(u,f){v(u,e,f),p(e,t),M(n,t,null),p(t,o),p(t,l),p(l,r),s=!0},p(u,[f]){(!s||f&2)&&xe(r,u[1]),(!s||f&1&&a!==(a=`background-image: url('${u[0]}')`))&&c(e,"style",a)},i(u){s||(d(n.$$.fragment,u),s=!0)},o(u){m(n.$$.fragment,u),s=!1},d(u){u&&b(e),A(n)}}}function m8(i,e,t){let{thumbUrl:n=""}=e,{kind:o}=e,l;return i.$$set=r=>{"thumbUrl"in r&&t(0,n=r.thumbUrl),"kind"in r&&t(2,o=r.kind)},i.$$.update=()=>{if(i.$$.dirty&4){let r={recover:U("waiting_live_recover_title"),record:U("waiting_record_title")};t(1,l=r[o]||"")}},[n,l,o]}var ef=class extends D{constructor(e){super(),N(this,e,m8,d8,B,{thumbUrl:0,kind:2},f8)}},Rr=ef;var{window:p8}=Ro;function _8(i){Ie(i,"svelte-12e19rp",".player-wrapper.svelte-12e19rp{position:absolute;width:100%;height:100%}.player-wrapper.svelte-12e19rp .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-12e19rp{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-12e19rp,.video-container.svelte-12e19rp,.ads-container.svelte-12e19rp{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-12e19rp{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-12e19rp{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-12e19rp{transition:none}.nocursor.svelte-12e19rp{cursor:none}.ads-container.svelte-12e19rp{z-index:var(--ads-container-z-index);background:var(--black)}")}function H0(i){let e,t;return e=new Bs({props:{thumbUrl:i[3],startTime:i[4]?.startTime}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[0]&16&&(l.startTime=n[4]?.startTime),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function U0(i){let e,t;return e=new Rr({props:{kind:"recover",thumbUrl:i[3]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function z0(i){let e,t;return e=new Rr({props:{kind:"record",thumbUrl:i[3]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function W0(i){let e,t,n;return t=new Rl({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=T("div"),L(t.$$.fragment),c(e,"class","ads-container svelte-12e19rp"),W(e,"hidden",i[38]!=="ads")},m(o,l){v(o,e,l),M(t,e,null),n=!0},p(o,l){let r={};l[0]&256&&(r.adsSlotId=o[8]),l[0]&512&&(r.adsParams=o[9]),l[0]&1024&&(r.adsPreviewParam=o[10]),l[0]&2048&&(r.duration=o[11]),t.$set(r),(!n||l[1]&128)&&W(e,"hidden",o[38]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function K0(i){let e,t;return e=new l1({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&262144&&(l.title=n[18]),o[0]&524288&&(l.thumb=n[19]),o[0]&8388608&&(l.playNextVideo=n[23]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function j0(i){let e,t;return e=new V0({props:{title:i[2],isHidden:!i[36]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.title=n[2]),o[1]&32&&(l.isHidden=!n[36]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function G0(i){let e,t;return e=new Ms({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[1]&160&&(l.isShifted=n[38]==="video"&&n[36]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function x0(i){let e,t,n;return t=new Sl({props:{"aria-label":U("video360")}}),{c(){e=T("div"),L(t.$$.fragment),c(e,"class","spherical-video-icon svelte-12e19rp")},m(o,l){v(o,e,l),M(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function Y0(i){let e,t;return e=new Ls({props:{thumbUrl:i[3],chromecastDeviceName:i[54]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[1]&8388608&&(l.chromecastDeviceName=n[54]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Q0(i){let e,t;return e=new As({props:{shifted:i[36],captions:i[56],position:i[57],playerSize:i[34]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[1]&32&&(l.shifted=n[36]),o[1]&33554432&&(l.captions=n[56]),o[1]&67108864&&(l.position=n[57]),o[1]&8&&(l.playerSize=n[34]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Z0(i){let e,t,n,o,l;return t=new Vs({}),{c(){e=T("div"),L(t.$$.fragment)},m(r,a){v(r,e,a),M(t,e,null),n=!0,o||(l=[Te(e,"contextmenu",ei(i[108])),Te(e,"click",_t(i[119]))],o=!0)},p:ge,i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){m(t.$$.fragment,r),n=!1},d(r){r&&b(e),A(t),o=!1,ut(l)}}}function X0(i){let e,t,n;function o(r){i[159](r)}let l={bottomHidden:i[38]==="thumb"||i[38]==="LiveWaitingStart"||i[38]==="LiveWaitingRecover"||i[38]==="LiveWaitingRecord",bottomNoSmooth:i[50],showControls:i[36],isAds:i[38]==="ads",canRewindLive:i[6]&&i[58]!==0,logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[14],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],supportLink:i[21],customFullscreenSupported:n_,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[106],returnFocus:i[158],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};return i[41]!==void 0&&(l.controlsElementRef=i[41]),e=new Es({props:l}),be.push(()=>Fe(e,"controlsElementRef",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&128&&(s.bottomHidden=r[38]==="thumb"||r[38]==="LiveWaitingStart"||r[38]==="LiveWaitingRecover"||r[38]==="LiveWaitingRecord"),a[1]&524288&&(s.bottomNoSmooth=r[50]),a[1]&32&&(s.showControls=r[36]),a[1]&128&&(s.isAds=r[38]==="ads"),a[0]&64|a[1]&134217728&&(s.canRewindLive=r[6]&&r[58]!==0),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&16384&&(s.logoTargetUrl=r[14]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&8388608&&(s.playNextVideo=r[23]),a[0]&16777216&&(s.playPrevVideo=r[24]),a[0]&33554432&&(s.repeatPlaylist=r[25]),a[1]&131072&&(s.returnFocus=r[158]),a[0]&67108864&&(s.seekToInteractive=r[26]),a[0]&134217728&&(s.toggleGraph=r[27]),a[0]&268435456&&(s.playPrevChapter=r[28]),!t&&a[1]&1024&&(t=!0,s.controlsElementRef=r[41],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function J0(i){let e,t;return e=new Sr({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function $0(i){let e,t;return e=new h1({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function e_(i){let e,t;return e=new ql({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function t_(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,I,k,P,K,z,H,se,me;e=new Rs({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let R=i[38]==="LiveWaitingStart"&&H0(i),te=i[38]==="LiveWaitingRecover"&&U0(i),le=i[38]==="LiveWaitingRecord"&&z0(i),ne=i[7]&&i[22]&&W0(i),_e=i[31]&&i[18]&&i[19]&&K0(i),Y=i[44]&&j0(i),$=i[49]&&G0(i),E=i[53]&&x0(i),X=i[39]&&Y0(i),oe=i[55].value!=="off"&&Q0(i),fe=i[37]&&Z0(i),Re=i[22]&&X0(i);C=new Dl({props:{isLive:i[59],isHidden:!i[43],isPlaying:i[51],position:i[57],duration:i[60]}}),F=new C0({props:{data:i[103]}});function Ze(x){i[161](x)}let ce={supportLink:i[21],returnFocus:i[160],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(ce.menuElementRef=i[32]),k=new Hd({props:ce}),be.push(()=>Fe(k,"menuElementRef",Ze));let Be=i[42]&&J0(i),De=i[62]&&$0(i),je=i[63]&&e_(i);return{c(){L(e.$$.fragment),t=q(),R&&R.c(),n=q(),te&&te.c(),o=q(),le&&le.c(),l=q(),ne&&ne.c(),r=q(),_e&&_e.c(),a=q(),Y&&Y.c(),s=q(),$&&$.c(),u=q(),E&&E.c(),f=q(),X&&X.c(),_=q(),oe&&oe.c(),g=q(),fe&&fe.c(),y=q(),Re&&Re.c(),h=q(),L(C.$$.fragment),w=q(),L(F.$$.fragment),I=q(),L(k.$$.fragment),K=q(),Be&&Be.c(),z=q(),De&&De.c(),H=q(),je&&je.c(),se=tt()},m(x,de){M(e,x,de),v(x,t,de),R&&R.m(x,de),v(x,n,de),te&&te.m(x,de),v(x,o,de),le&&le.m(x,de),v(x,l,de),ne&&ne.m(x,de),v(x,r,de),_e&&_e.m(x,de),v(x,a,de),Y&&Y.m(x,de),v(x,s,de),$&&$.m(x,de),v(x,u,de),E&&E.m(x,de),v(x,f,de),X&&X.m(x,de),v(x,_,de),oe&&oe.m(x,de),v(x,g,de),fe&&fe.m(x,de),v(x,y,de),Re&&Re.m(x,de),v(x,h,de),M(C,x,de),v(x,w,de),M(F,x,de),v(x,I,de),M(k,x,de),v(x,K,de),Be&&Be.m(x,de),v(x,z,de),De&&De.m(x,de),v(x,H,de),je&&je.m(x,de),v(x,se,de),me=!0},p(x,de){let Ge={};de[0]&32|de[1]&192&&(Ge.hidden=x[38]!=="thumb"||x[37]||x[92]&&x[5]),de[0]&8&&(Ge.thumbUrl=x[3]),de[0]&536870912&&(Ge.startVideo=x[29]),e.$set(Ge),x[38]==="LiveWaitingStart"?R?(R.p(x,de),de[1]&128&&d(R,1)):(R=H0(x),R.c(),d(R,1),R.m(n.parentNode,n)):R&&(ae(),m(R,1,1,()=>{R=null}),ue()),x[38]==="LiveWaitingRecover"?te?(te.p(x,de),de[1]&128&&d(te,1)):(te=U0(x),te.c(),d(te,1),te.m(o.parentNode,o)):te&&(ae(),m(te,1,1,()=>{te=null}),ue()),x[38]==="LiveWaitingRecord"?le?(le.p(x,de),de[1]&128&&d(le,1)):(le=z0(x),le.c(),d(le,1),le.m(l.parentNode,l)):le&&(ae(),m(le,1,1,()=>{le=null}),ue()),x[7]&&x[22]?ne?(ne.p(x,de),de[0]&4194432&&d(ne,1)):(ne=W0(x),ne.c(),d(ne,1),ne.m(r.parentNode,r)):ne&&(ae(),m(ne,1,1,()=>{ne=null}),ue()),x[31]&&x[18]&&x[19]?_e?(_e.p(x,de),de[0]&786432|de[1]&1&&d(_e,1)):(_e=K0(x),_e.c(),d(_e,1),_e.m(a.parentNode,a)):_e&&(ae(),m(_e,1,1,()=>{_e=null}),ue()),x[44]?Y?(Y.p(x,de),de[1]&8192&&d(Y,1)):(Y=j0(x),Y.c(),d(Y,1),Y.m(s.parentNode,s)):Y&&(ae(),m(Y,1,1,()=>{Y=null}),ue()),x[49]?$?($.p(x,de),de[1]&262144&&d($,1)):($=G0(x),$.c(),d($,1),$.m(u.parentNode,u)):$&&(ae(),m($,1,1,()=>{$=null}),ue()),x[53]?E?de[1]&4194304&&d(E,1):(E=x0(x),E.c(),d(E,1),E.m(f.parentNode,f)):E&&(ae(),m(E,1,1,()=>{E=null}),ue()),x[39]?X?(X.p(x,de),de[1]&256&&d(X,1)):(X=Y0(x),X.c(),d(X,1),X.m(_.parentNode,_)):X&&(ae(),m(X,1,1,()=>{X=null}),ue()),x[55].value!=="off"?oe?(oe.p(x,de),de[1]&16777216&&d(oe,1)):(oe=Q0(x),oe.c(),d(oe,1),oe.m(g.parentNode,g)):oe&&(ae(),m(oe,1,1,()=>{oe=null}),ue()),x[37]?fe?(fe.p(x,de),de[1]&64&&d(fe,1)):(fe=Z0(x),fe.c(),d(fe,1),fe.m(y.parentNode,y)):fe&&(ae(),m(fe,1,1,()=>{fe=null}),ue()),x[22]?Re?(Re.p(x,de),de[0]&4194304&&d(Re,1)):(Re=X0(x),Re.c(),d(Re,1),Re.m(h.parentNode,h)):Re&&(ae(),m(Re,1,1,()=>{Re=null}),ue());let ve={};de[1]&268435456&&(ve.isLive=x[59]),de[1]&4096&&(ve.isHidden=!x[43]),de[1]&1048576&&(ve.isPlaying=x[51]),de[1]&67108864&&(ve.position=x[57]),de[1]&536870912&&(ve.duration=x[60]),C.$set(ve);let He={};de[0]&2097152&&(He.supportLink=x[21]),de[1]&131072&&(He.returnFocus=x[160]),de[1]&4&&(He.visible=x[33]),de[1]&512&&(He.playerContainerRef=x[40]),de[1]&1024&&(He.controlsContainerRef=x[41]),de[1]&1073741824&&(He.position=x[61]),!P&&de[1]&2&&(P=!0,He.menuElementRef=x[32],Oe(()=>P=!1)),k.$set(He),x[42]?Be?de[1]&2048&&d(Be,1):(Be=J0(x),Be.c(),d(Be,1),Be.m(z.parentNode,z)):Be&&(ae(),m(Be,1,1,()=>{Be=null}),ue()),x[62]?De?de[2]&1&&d(De,1):(De=$0(x),De.c(),d(De,1),De.m(H.parentNode,H)):De&&(ae(),m(De,1,1,()=>{De=null}),ue()),x[63]?je?de[2]&2&&d(je,1):(je=e_(x),je.c(),d(je,1),je.m(se.parentNode,se)):je&&(ae(),m(je,1,1,()=>{je=null}),ue())},i(x){me||(d(e.$$.fragment,x),d(R),d(te),d(le),d(ne),d(_e),d(Y),d($),d(E),d(X),d(oe),d(fe),d(Re),d(C.$$.fragment,x),d(F.$$.fragment,x),d(k.$$.fragment,x),d(Be),d(De),d(je),me=!0)},o(x){m(e.$$.fragment,x),m(R),m(te),m(le),m(ne),m(_e),m(Y),m($),m(E),m(X),m(oe),m(fe),m(Re),m(C.$$.fragment,x),m(F.$$.fragment,x),m(k.$$.fragment,x),m(Be),m(De),m(je),me=!1},d(x){x&&(b(t),b(n),b(o),b(l),b(r),b(a),b(s),b(u),b(f),b(_),b(g),b(y),b(h),b(w),b(I),b(K),b(z),b(H),b(se)),A(e,x),R&&R.d(x),te&&te.d(x),le&&le.d(x),ne&&ne.d(x),_e&&_e.d(x),Y&&Y.d(x),$&&$.d(x),E&&E.d(x),X&&X.d(x),oe&&oe.d(x),fe&&fe.d(x),Re&&Re.d(x),A(C,x),A(F,x),A(k,x),Be&&Be.d(x),De&&De.d(x),je&&je.d(x)}}}function g8(i){let e,t,n,o,l=i[52],r,a,s,u,f=t_(i);return{c(){e=T("div"),t=T("div"),o=q(),f.c(),r=tt(),c(t,"class","video-container svelte-12e19rp"),c(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),c(t,"data-testid","video-container"),c(t,"data-is-playing",i[51]),W(t,"fast-rotate",!i[1].isSmoothVideoRotate),c(e,"class","video-wrapper svelte-12e19rp"),W(e,"hidden",i[38]!=="video"),W(e,"nocursor",i[45])},m(_,g){v(_,e,g),p(e,t),i[157](t),v(_,o,g),f.m(_,g),v(_,r,g),a=!0,s||(u=[Te(e,"contextmenu",ei(i[108])),Te(e,"mousedown",ei(i[113])),Te(e,"mouseup",ei(i[114])),Te(e,"click",ei(i[116])),Te(e,"dblclick",ei(i[115]))],s=!0)},p(_,g){(!a||g[1]&32784&&n!==(n=`transform: rotate(${_[35]}deg) scale(${_[46]})`))&&c(t,"style",n),(!a||g[1]&1048576)&&c(t,"data-is-playing",_[51]),(!a||g[0]&2)&&W(t,"fast-rotate",!_[1].isSmoothVideoRotate),(!a||g[1]&128)&&W(e,"hidden",_[38]!=="video"),(!a||g[1]&16384)&&W(e,"nocursor",_[45]),g[1]&2097152&&B(l,l=_[52])?(ae(),m(f,1,1,ge),ue(),f=t_(_),f.c(),d(f,1),f.m(r.parentNode,r)):f.p(_,g)},i(_){a||(d(f),a=!0)},o(_){m(f),a=!1},d(_){_&&(b(e),b(o),b(r)),i[157](null),f.d(_),s=!1,ut(u)}}}function h8(i){let e,t,n,o,l,r,a,s={toggleFullscreen:i[106],hideContextMenu:i[107],showHotKeyHelpers:i[117],showKeyMap:i[118],isAds:i[38]==="ads",fakePlayButtonHandler:i[47]?i[105]:void 0,$$slots:{default:[g8]},$$scope:{ctx:i}};return t=new a1({props:s}),i[162](t),{c(){e=T("div"),L(t.$$.fragment),n=q(),o=T("div"),c(o,"class","overlay-container"),c(e,"class","player-wrapper svelte-12e19rp")},m(u,f){v(u,e,f),M(t,e,null),p(e,n),p(e,o),i[163](o),i[164](e),l=!0,r||(a=[Te(p8,"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)],r=!0)},p(u,f){let _={};f[1]&128&&(_.isAds=u[38]==="ads"),f[1]&65536&&(_.fakePlayButtonHandler=u[47]?u[105]:void 0),f[0]&1073741823|f[1]&2147418111|f[2]&3|f[6]&32&&(_.$$scope={dirty:f,ctx:u}),t.$set(_)},i(u){l||(d(t.$$.fragment,u),l=!0)},o(u){m(t.$$.fragment,u),l=!1},d(u){u&&b(e),i[162](null),A(t),i[163](null),i[164](null),r=!1,ut(a)}}}var n_=!0;function tf(i){return i?i.offsetTop+tf(i.offsetParent):0}function o_(i){return i?i.offsetLeft+o_(i.offsetParent):0}function b8(i,e,t){let n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,I,k,P,K,z,H,se,me,R,te,le,ne,_e,Y,$,E,X,oe,fe,Re,Ze,ce,Be,De,je,x,de,Ge,{store:ve}=e,{uiConfig:He}=e,{title:$e}=e,{thumbUrl:st}=e,{videoContainer:Xe}=e,{interactiveContainer:Ye}=e,{live:Ke}=e,{autoplay:Z}=e,{canRewindLive:Ue}=e,{showAds:Ce}=e,{adsSlotId:Pe=void 0}=e,{adsParams:ze=void 0}=e,{adsPreviewParam:pe=void 0}=e,{duration:J=void 0}=e,{logoClickable:ft}=e,{logoHidden:mt}=e,{logoTargetUrl:et=""}=e,{showNextPrevButtons:lt=!1}=e,{nextButtonActive:Ot=!1}=e,{prevButtonActive:Ct=!1}=e,{endScreenVideoTitle:it=void 0}=e,{endScreenVideoThumb:Ft=void 0}=e,{isOneVideoPlaylist:At=!1}=e,{supportLink:Qt}=e,{shadowRootContainer:ct=void 0}=e,{outerContainerRef:bt=void 0}=e,{playerStarted:Zt=!1}=e,{fullScreenTarget:Kt=void 0}=e,{showMiniTimer:Xt=!1}=e,{showEndScreen:si=!0}=e,{playNextVideo:we=Ds.noop}=e,{playPrevVideo:Tt=Ds.noop}=e,{repeatPlaylist:Et=Ds.noop}=e,{seekToInteractive:jt}=e,{toggleGraph:wt}=e,{playPrevChapter:Ht}=e,{firstStart:Ut}=e,Lt=ve.getLogger().createComponentLog("Root component"),ii=ve.interfaceLanguage$;O(i,ii,j=>t(52,X=j));let Jt=ve.state.playbackState$;O(i,Jt,j=>t(154,_e=j));let Ci=ve.ads.playbackState;O(i,Ci,j=>t(155,Y=j));let Pt=ve.state.positionWithScrubbing$;O(i,Pt,j=>t(57,ce=j));let pi=ve.state.duration$;O(i,pi,j=>t(60,je=j));let Mi=ve.playerPhase;O(i,Mi,j=>t(38,me=j));let _i=ve.ui.isFullscreen;O(i,_i,j=>t(144,h=j));let gi=ve.ui.controlsVisible;O(i,gi,j=>t(36,P=j));let he=ve.ui.settingsMenuVisible;O(i,he,j=>t(142,s=j));let pt=ve.ui.scrubbingInProgress;O(i,pt,j=>t(146,I=j));let fi=ve.ui.contextMenu.visible$;O(i,fi,j=>t(33,n=j));let Ai=ve.ui.debugPanelVisible;O(i,Ai,j=>t(63,Ge=j));let $i=ve.state.isLoaderVisible;O(i,$i,j=>t(156,$=j));let Hi=ve.state.isEnded$;O(i,Hi,j=>t(143,f=j));let en=ve.state.chromecastConnected$;O(i,en,j=>t(39,le=j));let $t=ve.state.chromecastDeviceName$;O(i,$t,j=>t(54,fe=j));let Li=ve.ads.postrollPassed;O(i,Li,j=>t(149,H=j));let fn=ve.state.isLive$;O(i,fn,j=>t(59,De=j));let Gt=ve.state.isPlaying$;O(i,Gt,j=>t(51,E=j));let Si=ve.state.crashed$;O(i,Si,j=>t(37,z=j));let dn=ve.webApi.annotationsApi,hi=ve.webApi.pictureInPictureApi,tn=ve.state.currentSubtitle$;O(i,tn,j=>t(55,Re=j));let nn=ve.state.currentSubtitleCaptions$;O(i,nn,j=>t(56,Ze=j));let mn=ve.state.duration$;O(i,mn,j=>t(58,Be=j));let bi=ve.state.graphIsOpened$;O(i,bi,j=>t(150,se=j));let Vi=ve.ui.playerSize;O(i,Vi,j=>t(34,g=j));let on=ve.ui.is3DVideo;O(i,on,j=>t(49,_=j));let vi=ve.ui.icon3DVideoVisible;O(i,vi,j=>t(53,oe=j));let di=ve.ui.rotateAlpha;O(i,di,j=>t(35,F=j));let Ui=ve.state.isInteractive,Tn=ve.state.isInteractiveTime$;O(i,Tn,j=>t(147,k=j));let Ri=ve.state.isInteractiveExpectation$;O(i,Ri,j=>t(153,ne=j));let rn=ve.state.hasInteractiveBranches,Ii=ve.ui.touched;O(i,Ii,j=>t(151,R=j));let yi=ve.ui.modals.hotKeyMap.data;O(i,yi,j=>t(171,u=j));let zi=ve.ui.modals.hotKeyMap.show;O(i,zi,j=>t(62,de=j));let pn=ve.ui.overlayContainer$,ln=ve.ui.controls.interactiveTimeIndicator;O(i,ln,j=>t(172,y=j));let ki=ve.state.showInteractiveTimeIndicator,Ti=ve.ui.contextMenu.position$;O(i,Ti,j=>t(61,x=j));let ai=ve.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Bi}=Bn();O(i,Bi,j=>t(145,w=j));let ui,xt,ni,Di,Wi;yi.set(_d());let nt,Ni,oi=qe(!1);O(i,oi,j=>t(50,C=j));let sn,Qe=qe(!1);O(i,Qe,j=>t(152,te=j));let an=qe(),_n=qe(!1);O(i,_n,j=>t(148,K=j));let Ki=!1,ji=!1,gn=!1,Gi=!(Z&&!He.controls.showOnStartupAtAutoplay),Yt,On,Oi,Pi,un,xi=!1,hn,bn=!1,{toggle:Fn}=Bi,Yi=!1,Qi=null,wi;hi?.setContext(Gr());let qn=()=>{Z&&!Ui&&He.controls.showOnStartupAtAutoplay&&ri(He.controls.hideTimeout)};ve.setUiCallbacks({onStarted:qn});let Gn=()=>{window.clearTimeout(ni),Qe.set(!1)},Pn=()=>{window.clearTimeout(Di),an.set(null)},ri=j=>{Gn(),Qe.set(!0),ni=window.setTimeout(()=>Qe.set(!1),j);let Vt=j-100;sn=window.setTimeout(()=>{C&&oi.set(!1)},Vt>0?Vt:j)},Zi=(j,Vt)=>{Pn(),an.set(Vt),Di=window.setTimeout(()=>an.set(null),j)},xn=on.subscribe(j=>{vi.set(j),j&&(window.clearTimeout(Wi),Wi=window.setTimeout(()=>vi.set(!1),He.controls.hide360IconTimeout))}),En=async()=>{let j=bo();if(j){let Vt=Jr(),Vn=Hn();j=Vt===Vn||Vt===ct}if(j){ri(He.controls.hideTimeoutFullscreen);try{await hi?.remove()}catch(Vt){Lt({message:String(Vt)})}}_i.set(j),ve.getAdmanWrapper().setFullscreen(j),h?ve.callbacks?.onFullscreenEnter?.():ve.callbacks?.onFullscreenExit?.()},Yn=j=>{let Vt=j;Vi.set({width:Vt.target.width,height:Vt.target.height})};St(()=>(Ll(En),He.features.annotationsInside&&dn?.init(ui),Wo(hi)&&(hi?.assignPlayerContainer(ui),hi?.registryExternalEventHandlers({resize:Yn})),Ye&&Xe.parentElement?.insertBefore(Ye,Xe.nextSibling),()=>{window.clearTimeout(ni),window.clearTimeout(sn),window.clearTimeout(Di),window.clearTimeout(Wi),xn(),hi?.dispose(),Vl(En)}));let Hn=()=>{let j=He.features.fullscreenInternalTargetPlayerContainer||!bt?ui:bt,Vt=j.getRootNode(),Vn=Vt instanceof ShadowRoot?Vt.host:Vt,Un=Kt instanceof HTMLElement&&Kt.contains(Vn);return He.allowChangingFullscreenTarget&&Kt&&Un?Kt:j},Mn=async()=>{bo()?(await Al(document),Lt({message:"exit fullscreen"})):(Lt({message:"request fullscreen"}),await Ml(Hn()))},ie=()=>{ai(),fi.set(!1)},vt=j=>{fi.set(!0),Ti.set({left:j.clientX,top:j.clientY})};function Xi(){_n.set(!0),Ui||ri(He.controls.hideTimeoutCursor)}function An(){Ui||(oi.set(!0),ri(He.controls.hideTimeoutCursor))}function to(){_n.set(!1),t(133,ji=!1),t(132,Ki=!1),Yi=!1,ve.actions.internal.releaseCamera()}function Qn(j){if(y&&ki){let Vt=j.currentTarget,Vn=tf(Vt),Un=o_(Vt),Ao=j.pageX-Un,nr=j.pageY-Vn,{left:Lo,bottom:or,right:rr}=y,ro=rr-Lo;return Ao>=Lo-ro&&nr<=or+ro}}function Zn(j){if(ui){let Vt=tf(j.currentTarget),Vn=g.height,Un=j.pageY-Vt;if(Qn(j)){t(133,ji=!1);return}Un<40?t(133,ji=!0):Un>Vn-40?t(132,Ki=!0):(t(133,ji=!1),s||t(132,Ki=!1))}}function io(j){Zn(j),Yt||ri(He.controls.hideTimeoutCursor),_&&Yi&&Qi&&ve.actions.internal.moveCameraFocusPX(Qi.clientX-j.clientX,Qi.clientY-j.clientY,j.timeStamp-Qi.timeStamp),Qi=j}let no=j=>{j.button===0&&(Yi=!0,ve.actions.internal.holdCamera()),ri(He.controls.hideTimeoutCursor)},vn=j=>{j.button===0&&(Qi=j,Yi=!1,ve.actions.internal.releaseCamera()),ri(He.controls.hideTimeoutCursor)},ee=()=>{n_&&(Lt({message:"double click on video"}),Mn(),ri(He.controls.hideTimeoutCursor))},oo=()=>{if(n||s){ie();return}if(!(f&&!rn)){if(bn)return Fn();if(wi?.focus(),!Zt){Ut(),ri(He.controls.hideTimeoutCursor);return}ve.actions.internal.togglePlay(),ri(He.controls.hideTimeoutCursor)}},So=j=>{ie(),Ii.set(!0),ri(He.controls.hideTimeout),j&&Zi(He.controls.hideHotKeyHelpers,j)},_o=()=>{ie(),ve.callbacks?.onOpenHotKeyMap?ve.callbacks?.onOpenHotKeyMap(u):zi.update(j=>!j)},qr=()=>{if(n||s){ie();return}},Ln=()=>{Ii.set(!0)},Io=ve.ui.contextMenu.openedByBtnKeyboard$;O(i,Io,j=>t(141,a=j));let To=ve.ui.contextMenu.btnRef$;O(i,To,j=>t(140,r=j));let yn,Po=ve.ui.contextMenu.openedByHotKey$;O(i,Po,j=>t(139,l=j));let kn=ve.ui.contextMenu.lastActiveElem$;O(i,kn,j=>t(138,o=j));function Eo(j){be[j?"unshift":"push"](()=>{Xe=j,t(0,Xe)})}let Xo=()=>wi?.focus();function Jo(j){xt=j,t(41,xt)}let Mo=()=>wi?.focus();function $o(j){yn=j,t(32,yn)}function er(j){be[j?"unshift":"push"](()=>{wi=j,t(48,wi)})}function tr(j){be[j?"unshift":"push"](()=>{Ni=j,t(30,Ni)})}function ir(j){be[j?"unshift":"push"](()=>{ui=j,t(40,ui)})}return i.$$set=j=>{"store"in j&&t(125,ve=j.store),"uiConfig"in j&&t(1,He=j.uiConfig),"title"in j&&t(2,$e=j.title),"thumbUrl"in j&&t(3,st=j.thumbUrl),"videoContainer"in j&&t(0,Xe=j.videoContainer),"interactiveContainer"in j&&t(126,Ye=j.interactiveContainer),"live"in j&&t(4,Ke=j.live),"autoplay"in j&&t(5,Z=j.autoplay),"canRewindLive"in j&&t(6,Ue=j.canRewindLive),"showAds"in j&&t(7,Ce=j.showAds),"adsSlotId"in j&&t(8,Pe=j.adsSlotId),"adsParams"in j&&t(9,ze=j.adsParams),"adsPreviewParam"in j&&t(10,pe=j.adsPreviewParam),"duration"in j&&t(11,J=j.duration),"logoClickable"in j&&t(12,ft=j.logoClickable),"logoHidden"in j&&t(13,mt=j.logoHidden),"logoTargetUrl"in j&&t(14,et=j.logoTargetUrl),"showNextPrevButtons"in j&&t(15,lt=j.showNextPrevButtons),"nextButtonActive"in j&&t(16,Ot=j.nextButtonActive),"prevButtonActive"in j&&t(17,Ct=j.prevButtonActive),"endScreenVideoTitle"in j&&t(18,it=j.endScreenVideoTitle),"endScreenVideoThumb"in j&&t(19,Ft=j.endScreenVideoThumb),"isOneVideoPlaylist"in j&&t(20,At=j.isOneVideoPlaylist),"supportLink"in j&&t(21,Qt=j.supportLink),"shadowRootContainer"in j&&t(127,ct=j.shadowRootContainer),"outerContainerRef"in j&&t(128,bt=j.outerContainerRef),"playerStarted"in j&&t(22,Zt=j.playerStarted),"fullScreenTarget"in j&&t(129,Kt=j.fullScreenTarget),"showMiniTimer"in j&&t(130,Xt=j.showMiniTimer),"showEndScreen"in j&&t(131,si=j.showEndScreen),"playNextVideo"in j&&t(23,we=j.playNextVideo),"playPrevVideo"in j&&t(24,Tt=j.playPrevVideo),"repeatPlaylist"in j&&t(25,Et=j.repeatPlaylist),"seekToInteractive"in j&&t(26,jt=j.seekToInteractive),"toggleGraph"in j&&t(27,wt=j.toggleGraph),"playPrevChapter"in j&&t(28,Ht=j.playPrevChapter),"firstStart"in j&&t(29,Ut=j.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[5]&3&&t(42,nt=(me==="video"&&$||me==="ads"&&Y==="inactive")&&!z),i.$$.dirty[0]&1073741824&&pn.set(Ni),i.$$.dirty[4]&1073743872&&(t(134,gn=Gi&&_e!==i_.PlaybackState.PLAYING),Gi||t(135,Gi=!0)),i.$$.dirty[4]&545523456&&t(136,Yt=k&&!s&&!(Ki||ji)&&!(gn&&!ne)),i.$$.dirty[1]&448|i.$$.dirty[4]&272897024&&gi.set((gn||s||I||le||te)&&!Yt&&(me==="video"||me==="ads")&&!z),i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&134217792&&t(43,On=He.features.thumbTimer&&Xt&&me==="video"&&!P&&!z&&!Ui&&(He.hideThumbTimerAfterTouch&&!R||!He.hideThumbTimerAfterTouch)),i.$$.dirty[1]&128|i.$$.dirty[4]&68157440&&t(44,Oi=me==="video"&&!se&&h),i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&34078848&&t(31,Pi=si&&(Ce&&H||!Ce)&&f&&!z),i.$$.dirty[1]&33|i.$$.dirty[4]&25165824&&t(45,un=K&&!(P||Pi)&&!k),i.$$.dirty[0]&2|i.$$.dirty[4]&12591104&&(!I&&xi&&!k&&ri(He.controls.hideTimeoutCursor),t(137,xi=I)),i.$$.dirty[0]&1|i.$$.dirty[1]&24&&t(46,hn=Xe&&F%180?g.height/g.width:1),i.$$.dirty[4]&2097152&&t(47,bn=w!==null),i.$$.dirty[1]&6|i.$$.dirty[4]&131072&&jo(yn,n,a),i.$$.dirty[1]&4|i.$$.dirty[4]&65536){let j=r;j&&kr(j,n,Io)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&32768&&jo(yn,n,l),i.$$.dirty[1]&4|i.$$.dirty[4]&16384){let j=o;j&&Ed(j,n,Po)}},[Xe,He,$e,st,Ke,Z,Ue,Ce,Pe,ze,pe,J,ft,mt,et,lt,Ot,Ct,it,Ft,At,Qt,Zt,we,Tt,Et,jt,wt,Ht,Ut,Ni,Pi,yn,n,g,F,P,z,me,le,ui,xt,nt,On,Oi,un,hn,bn,wi,_,C,E,X,oe,fe,Re,Ze,ce,Be,De,je,x,de,Ge,ii,Jt,Ci,Pt,pi,Mi,_i,gi,he,pt,fi,Ai,$i,Hi,en,$t,Li,fn,Gt,Si,tn,nn,mn,bi,Vi,on,vi,di,Ui,Tn,Ri,Ii,yi,zi,ln,Ti,Bi,oi,Qe,an,_n,Fn,Mn,ie,vt,Xi,An,to,io,no,vn,ee,oo,So,_o,qr,Ln,Io,To,Po,kn,ve,Ye,ct,bt,Kt,Xt,si,Ki,ji,gn,Gi,Yt,xi,o,l,r,a,s,f,h,w,I,k,K,H,se,R,te,ne,_e,Y,$,Eo,Xo,Jo,Mo,$o,er,tr,ir]}var nf=class extends D{constructor(e){super(),N(this,e,b8,h8,B,{store:125,uiConfig:1,title:2,thumbUrl:3,videoContainer:0,interactiveContainer:126,live:4,autoplay:5,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,logoTargetUrl:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:127,outerContainerRef:128,playerStarted:22,fullScreenTarget:129,showMiniTimer:130,showEndScreen:131,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},_8,[-1,-1,-1,-1,-1,-1,-1])}},r_=nf;var I_=require("@vkontakte/videoplayer-core"),po=require("@vkontakte/videoplayer-shared");function v8(i){Ie(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 l_(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C,w=U("doubletap_seek_step",{seconds:i[2].toFixed(0)})+"",F;return{c(){e=T("div"),n=q(),o=T("div"),l=T("div"),r=T("div"),s=q(),u=T("div"),_=q(),g=T("div"),h=q(),C=T("p"),F=Ne(w),c(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),c(r,"class",a="triangle "+i[0]+" svelte-nhq2ld"),c(u,"class",f="triangle "+i[0]+" svelte-nhq2ld"),c(g,"class",y="triangle "+i[0]+" svelte-nhq2ld"),c(l,"class","triangles-wrapper svelte-nhq2ld"),c(C,"class","step-caption svelte-nhq2ld"),c(o,"class","info svelte-nhq2ld")},m(I,k){v(I,e,k),v(I,n,k),v(I,o,k),p(o,l),p(l,r),p(l,s),p(l,u),p(l,_),p(l,g),p(o,h),p(o,C),p(C,F)},p(I,k){k&1&&t!==(t="semicircle "+I[0]+" svelte-nhq2ld")&&c(e,"class",t),k&1&&a!==(a="triangle "+I[0]+" svelte-nhq2ld")&&c(r,"class",a),k&1&&f!==(f="triangle "+I[0]+" svelte-nhq2ld")&&c(u,"class",f),k&1&&y!==(y="triangle "+I[0]+" svelte-nhq2ld")&&c(g,"class",y),k&4&&w!==(w=U("doubletap_seek_step",{seconds:I[2].toFixed(0)})+"")&&xe(F,w)},d(I){I&&(b(e),b(n),b(o))}}}function y8(i){let e,t,n,o,l=i[1]&&l_(i);return{c(){e=T("div"),l&&l.c(),c(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(r,a){v(r,e,a),l&&l.m(e,null),n||(o=Te(e,"click",_t(i[3]())),n=!0)},p(r,[a]){r[1]?l?l.p(r,a):(l=l_(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&1&&t!==(t="double-click-area "+r[0]+" svelte-nhq2ld")&&c(e,"class",t)},i:ge,o:ge,d(r){r&&b(e),l&&l.d(),n=!1,o()}}}function k8(i,e,t){let{side:n}=e,{seekStep:o=0}=e,{handleSingleFirstClick:l}=e,{handleSecondClick:r}=e,a=!1,s=0,u=0,f=o,_=()=>()=>{u+=1,t(2,f=o*(u-1)),u===1?l():(t(1,a=!0),r()),window.clearTimeout(s),s=window.setTimeout(()=>{u=0,t(1,a=!1)},300)};return zn(()=>{window.clearTimeout(s)}),i.$$set=g=>{"side"in g&&t(0,n=g.side),"seekStep"in g&&t(4,o=g.seekStep),"handleSingleFirstClick"in g&&t(5,l=g.handleSingleFirstClick),"handleSecondClick"in g&&t(6,r=g.handleSecondClick)},[n,a,f,_,o,l,r]}var of=class extends D{constructor(e){super(),N(this,e,k8,y8,B,{side:0,seekStep:4,handleSingleFirstClick:5,handleSecondClick:6},v8)}},rf=of;function w8(i,e,t){let{playNextVideo:n}=e;return St(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var lf=class extends D{constructor(e){super(),N(this,e,w8,null,B,{playNextVideo:0})}},s_=lf;var{window:C8}=Ro;function S8(i){Ie(i,"svelte-6x5lql",".player-wrapper.svelte-6x5lql{position:absolute;width:100%;height:100%}.player-wrapper.svelte-6x5lql .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-6x5lql{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-6x5lql,.video-container.svelte-6x5lql,.ads-container.svelte-6x5lql{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-6x5lql{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-6x5lql{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-6x5lql{transition:none}.ads-container.svelte-6x5lql{z-index:var(--ads-container-z-index);background:var(--black)}")}function a_(i){let e,t,n,o=i[45]&&u_(i),l=i[46]&&c_(i);return{c(){o&&o.c(),e=q(),l&&l.c(),t=tt()},m(r,a){o&&o.m(r,a),v(r,e,a),l&&l.m(r,a),v(r,t,a),n=!0},p(r,a){r[45]?o?(o.p(r,a),a[1]&16384&&d(o,1)):(o=u_(r),o.c(),d(o,1),o.m(e.parentNode,e)):o&&(ae(),m(o,1,1,()=>{o=null}),ue()),r[46]?l?(l.p(r,a),a[1]&32768&&d(l,1)):(l=c_(r),l.c(),d(l,1),l.m(t.parentNode,t)):l&&(ae(),m(l,1,1,()=>{l=null}),ue())},i(r){n||(d(o),d(l),n=!0)},o(r){m(o),m(l),n=!1},d(r){r&&(b(e),b(t)),o&&o.d(r),l&&l.d(r)}}}function u_(i){let e,t;return e=new rf({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[133]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&2&&(l.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function c_(i){let e,t;return e=new rf({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[134]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&2&&(l.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function f_(i){let e,t;return e=new Bs({props:{thumbUrl:i[2],startTime:i[3]?.startTime}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[0]&8&&(l.startTime=n[3]?.startTime),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function d_(i){let e,t;return e=new Rr({props:{kind:"recover",thumbUrl:i[2]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function m_(i){let e,t;return e=new Rr({props:{kind:"record",thumbUrl:i[2]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function p_(i){let e,t,n;return t=new Rl({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=T("div"),L(t.$$.fragment),c(e,"class","ads-container svelte-6x5lql"),W(e,"hidden",i[36]!=="ads")},m(o,l){v(o,e,l),M(t,e,null),n=!0},p(o,l){let r={};l[0]&128&&(r.adsSlotId=o[7]),l[0]&256&&(r.adsParams=o[8]),l[0]&512&&(r.adsPreviewParam=o[9]),l[0]&1024&&(r.duration=o[10]),t.$set(r),(!n||l[1]&32)&&W(e,"hidden",o[36]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function __(i){let e,t;return e=new s_({props:{playNextVideo:i[22]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&4194304&&(l.playNextVideo=n[22]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function g_(i){let e,t;return e=new Ms({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function h_(i){let e,t,n;return t=new Sl({props:{"aria-label":U("video360")}}),{c(){e=T("div"),L(t.$$.fragment),c(e,"class","spherical-video-icon svelte-6x5lql")},m(o,l){v(o,e,l),M(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),A(t)}}}function b_(i){let e,t;return e=new Ls({props:{thumbUrl:i[2],chromecastDeviceName:i[53]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[1]&4194304&&(l.chromecastDeviceName=n[53]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function v_(i){let e,t;return e=new As({props:{shifted:i[30],captions:i[55],position:i[32],playerSize:i[33],isMobile:!0}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&1073741824&&(l.shifted=n[30]),o[1]&16777216&&(l.captions=n[55]),o[1]&2&&(l.position=n[32]),o[1]&4&&(l.playerSize=n[33]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function y_(i){let e,t,n,o,l;return t=new Vs({}),{c(){e=T("div"),L(t.$$.fragment)},m(r,a){v(r,e,a),M(t,e,null),n=!0,o||(l=Te(e,"click",_t(i[101])),o=!0)},p:ge,i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){m(t.$$.fragment,r),n=!1},d(r){r&&b(e),A(t),o=!1,l()}}}function k_(i){let e,t,n;function o(r){i[135](r)}let l={bottomHidden:i[36]==="thumb"||i[36]==="LiveWaitingStart"||i[36]==="LiveWaitingRecover"||i[36]==="LiveWaitingRecord"||i[36]==="ads",showControls:i[30],bottomNoSmooth:i[47],isAds:i[36]==="ads",canRewindLive:i[5]&&i[56]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showNextPrevButtons:i[14],nextButtonActive:i[15],prevButtonActive:i[16],isOneVideoPlaylist:i[19],supportLink:i[20],customFullscreenSupported:i[41],playNextVideo:i[22],playPrevVideo:i[23],repeatPlaylist:i[24],toggleFullscreen:i[98],seekToInteractive:i[25],toggleGraph:i[26],playPrevChapter:i[27],onDisabledPlayPrevChapterClick:i[104],onDisabledSeekToInteractiveClick:i[105]};return i[39]!==void 0&&(l.controlsElementRef=i[39]),e=new Es({props:l}),be.push(()=>Fe(e,"controlsElementRef",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&32&&(s.bottomHidden=r[36]==="thumb"||r[36]==="LiveWaitingStart"||r[36]==="LiveWaitingRecover"||r[36]==="LiveWaitingRecord"||r[36]==="ads"),a[0]&1073741824&&(s.showControls=r[30]),a[1]&65536&&(s.bottomNoSmooth=r[47]),a[1]&32&&(s.isAds=r[36]==="ads"),a[0]&32|a[1]&33554432&&(s.canRewindLive=r[5]&&r[56]!==0),a[0]&2048&&(s.logoClickable=r[11]),a[0]&4096&&(s.logoHidden=r[12]),a[0]&8192&&(s.logoTargetUrl=r[13]),a[0]&16384&&(s.showNextPrevButtons=r[14]),a[0]&32768&&(s.nextButtonActive=r[15]),a[0]&65536&&(s.prevButtonActive=r[16]),a[0]&524288&&(s.isOneVideoPlaylist=r[19]),a[0]&1048576&&(s.supportLink=r[20]),a[1]&1024&&(s.customFullscreenSupported=r[41]),a[0]&4194304&&(s.playNextVideo=r[22]),a[0]&8388608&&(s.playPrevVideo=r[23]),a[0]&16777216&&(s.repeatPlaylist=r[24]),a[0]&33554432&&(s.seekToInteractive=r[25]),a[0]&67108864&&(s.toggleGraph=r[26]),a[0]&134217728&&(s.playPrevChapter=r[27]),!t&&a[1]&256&&(t=!0,s.controlsElementRef=r[39],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function w_(i){let e,t;return e=new Sr({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function C_(i){let e,t;return e=new ql({}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function S_(i){let e,t,n=i[5]&&i[79]&&!i[50].has("TIMELINE"),o,l,r,a,s,u,f,_,g,y,h,C,w,F,I,k,P;e=new Rs({props:{hidden:i[36]!=="thumb"||i[35]||i[90]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let K=n&&a_(i),z=i[36]==="LiveWaitingStart"&&f_(i),H=i[36]==="LiveWaitingRecover"&&d_(i),se=i[36]==="LiveWaitingRecord"&&m_(i),me=i[6]&&i[21]&&p_(i),R=i[43]&&i[17]&&i[18]&&__(i),te=i[51]&&g_(i),le=i[52]&&h_(i),ne=i[37]&&b_(i),_e=i[54].value!=="off"&&v_(i),Y=i[35]&&y_(i),$=i[21]&&k_(i);w=new Dl({props:{isLive:i[57],isHidden:!i[42],isPlaying:i[48],position:i[32],duration:i[31]}});let E=i[40]&&w_(i),X=i[58]&&C_(i);return{c(){L(e.$$.fragment),t=q(),K&&K.c(),o=q(),z&&z.c(),l=q(),H&&H.c(),r=q(),se&&se.c(),a=q(),me&&me.c(),s=q(),R&&R.c(),u=q(),te&&te.c(),f=q(),le&&le.c(),_=q(),ne&&ne.c(),g=q(),_e&&_e.c(),y=q(),Y&&Y.c(),h=q(),$&&$.c(),C=q(),L(w.$$.fragment),F=q(),E&&E.c(),I=q(),X&&X.c(),k=tt()},m(oe,fe){M(e,oe,fe),v(oe,t,fe),K&&K.m(oe,fe),v(oe,o,fe),z&&z.m(oe,fe),v(oe,l,fe),H&&H.m(oe,fe),v(oe,r,fe),se&&se.m(oe,fe),v(oe,a,fe),me&&me.m(oe,fe),v(oe,s,fe),R&&R.m(oe,fe),v(oe,u,fe),te&&te.m(oe,fe),v(oe,f,fe),le&&le.m(oe,fe),v(oe,_,fe),ne&&ne.m(oe,fe),v(oe,g,fe),_e&&_e.m(oe,fe),v(oe,y,fe),Y&&Y.m(oe,fe),v(oe,h,fe),$&&$.m(oe,fe),v(oe,C,fe),M(w,oe,fe),v(oe,F,fe),E&&E.m(oe,fe),v(oe,I,fe),X&&X.m(oe,fe),v(oe,k,fe),P=!0},p(oe,fe){let Re={};fe[0]&16|fe[1]&48&&(Re.hidden=oe[36]!=="thumb"||oe[35]||oe[90]&&oe[4]),fe[0]&4&&(Re.thumbUrl=oe[2]),fe[0]&268435456&&(Re.startVideo=oe[28]),e.$set(Re),fe[0]&32|fe[1]&524288&&(n=oe[5]&&oe[79]&&!oe[50].has("TIMELINE")),n?K?(K.p(oe,fe),fe[0]&32|fe[1]&524288&&d(K,1)):(K=a_(oe),K.c(),d(K,1),K.m(o.parentNode,o)):K&&(ae(),m(K,1,1,()=>{K=null}),ue()),oe[36]==="LiveWaitingStart"?z?(z.p(oe,fe),fe[1]&32&&d(z,1)):(z=f_(oe),z.c(),d(z,1),z.m(l.parentNode,l)):z&&(ae(),m(z,1,1,()=>{z=null}),ue()),oe[36]==="LiveWaitingRecover"?H?(H.p(oe,fe),fe[1]&32&&d(H,1)):(H=d_(oe),H.c(),d(H,1),H.m(r.parentNode,r)):H&&(ae(),m(H,1,1,()=>{H=null}),ue()),oe[36]==="LiveWaitingRecord"?se?(se.p(oe,fe),fe[1]&32&&d(se,1)):(se=m_(oe),se.c(),d(se,1),se.m(a.parentNode,a)):se&&(ae(),m(se,1,1,()=>{se=null}),ue()),oe[6]&&oe[21]?me?(me.p(oe,fe),fe[0]&2097216&&d(me,1)):(me=p_(oe),me.c(),d(me,1),me.m(s.parentNode,s)):me&&(ae(),m(me,1,1,()=>{me=null}),ue()),oe[43]&&oe[17]&&oe[18]?R?(R.p(oe,fe),fe[0]&393216|fe[1]&4096&&d(R,1)):(R=__(oe),R.c(),d(R,1),R.m(u.parentNode,u)):R&&(ae(),m(R,1,1,()=>{R=null}),ue()),oe[51]?te?fe[1]&1048576&&d(te,1):(te=g_(oe),te.c(),d(te,1),te.m(f.parentNode,f)):te&&(ae(),m(te,1,1,()=>{te=null}),ue()),oe[52]?le?fe[1]&2097152&&d(le,1):(le=h_(oe),le.c(),d(le,1),le.m(_.parentNode,_)):le&&(ae(),m(le,1,1,()=>{le=null}),ue()),oe[37]?ne?(ne.p(oe,fe),fe[1]&64&&d(ne,1)):(ne=b_(oe),ne.c(),d(ne,1),ne.m(g.parentNode,g)):ne&&(ae(),m(ne,1,1,()=>{ne=null}),ue()),oe[54].value!=="off"?_e?(_e.p(oe,fe),fe[1]&8388608&&d(_e,1)):(_e=v_(oe),_e.c(),d(_e,1),_e.m(y.parentNode,y)):_e&&(ae(),m(_e,1,1,()=>{_e=null}),ue()),oe[35]?Y?(Y.p(oe,fe),fe[1]&16&&d(Y,1)):(Y=y_(oe),Y.c(),d(Y,1),Y.m(h.parentNode,h)):Y&&(ae(),m(Y,1,1,()=>{Y=null}),ue()),oe[21]?$?($.p(oe,fe),fe[0]&2097152&&d($,1)):($=k_(oe),$.c(),d($,1),$.m(C.parentNode,C)):$&&(ae(),m($,1,1,()=>{$=null}),ue());let Ze={};fe[1]&67108864&&(Ze.isLive=oe[57]),fe[1]&2048&&(Ze.isHidden=!oe[42]),fe[1]&131072&&(Ze.isPlaying=oe[48]),fe[1]&2&&(Ze.position=oe[32]),fe[1]&1&&(Ze.duration=oe[31]),w.$set(Ze),oe[40]?E?fe[1]&512&&d(E,1):(E=w_(oe),E.c(),d(E,1),E.m(I.parentNode,I)):E&&(ae(),m(E,1,1,()=>{E=null}),ue()),oe[58]?X?fe[1]&134217728&&d(X,1):(X=C_(oe),X.c(),d(X,1),X.m(k.parentNode,k)):X&&(ae(),m(X,1,1,()=>{X=null}),ue())},i(oe){P||(d(e.$$.fragment,oe),d(K),d(z),d(H),d(se),d(me),d(R),d(te),d(le),d(ne),d(_e),d(Y),d($),d(w.$$.fragment,oe),d(E),d(X),P=!0)},o(oe){m(e.$$.fragment,oe),m(K),m(z),m(H),m(se),m(me),m(R),m(te),m(le),m(ne),m(_e),m(Y),m($),m(w.$$.fragment,oe),m(E),m(X),P=!1},d(oe){oe&&(b(t),b(o),b(l),b(r),b(a),b(s),b(u),b(f),b(_),b(g),b(y),b(h),b(C),b(F),b(I),b(k)),A(e,oe),K&&K.d(oe),z&&z.d(oe),H&&H.d(oe),se&&se.d(oe),me&&me.d(oe),R&&R.d(oe),te&&te.d(oe),le&&le.d(oe),ne&&ne.d(oe),_e&&_e.d(oe),Y&&Y.d(oe),$&&$.d(oe),A(w,oe),E&&E.d(oe),X&&X.d(oe)}}}function I8(i){let e,t,n,o,l,r=i[49],a,s,u,f,_,g,y=S_(i);return{c(){e=T("div"),t=T("div"),n=T("div"),l=q(),y.c(),a=q(),s=T("div"),c(n,"class","video-container svelte-6x5lql"),c(n,"style",o=`transform: rotate(${i[34]}deg) scale(${i[44]})`),c(n,"data-testid","video-container"),c(n,"data-is-playing",i[48]),W(n,"fast-rotate",!i[1].isSmoothVideoRotate),c(t,"class","video-wrapper svelte-6x5lql"),W(t,"hidden",i[36]!=="video"),c(s,"class","overlay-container"),c(e,"class","player-wrapper svelte-6x5lql"),c(e,"role","region"),c(e,"aria-label",u=U("aria_label_video_player")),c(e,"tabindex","-1")},m(h,C){v(h,e,C),p(e,t),p(t,n),i[132](n),p(e,l),y.m(e,null),p(e,a),p(e,s),i[136](s),i[137](e),f=!0,_||(g=[Te(C8,"blur",i[99]),Te(t,"click",ei(i[100])),Te(e,"click",i[102],!0),Te(e,"focusin",i[103],!0)],_=!0)},p(h,C){(!f||C[1]&8200&&o!==(o=`transform: rotate(${h[34]}deg) scale(${h[44]})`))&&c(n,"style",o),(!f||C[1]&131072)&&c(n,"data-is-playing",h[48]),(!f||C[0]&2)&&W(n,"fast-rotate",!h[1].isSmoothVideoRotate),(!f||C[1]&32)&&W(t,"hidden",h[36]!=="video"),C[1]&262144&&B(r,r=h[49])?(ae(),m(y,1,1,ge),ue(),y=S_(h),y.c(),d(y,1),y.m(e,a)):y.p(h,C)},i(h){f||(d(y),f=!0)},o(h){m(y),f=!1},d(h){h&&b(e),i[132](null),y.d(h),i[136](null),i[137](null),_=!1,ut(g)}}}function T8(i,e,t){let n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,I,k,P,K,z,H,se,me,R,te,le,ne,_e,Y,$,E,X,oe,fe,Re,Ze,{store:ce}=e,{uiConfig:Be}=e,{thumbUrl:De}=e,{videoContainer:je}=e,{interactiveContainer:x}=e,{live:de}=e,{autoplay:Ge}=e,{canRewindLive:ve}=e,{showAds:He}=e,{adsSlotId:$e=void 0}=e,{adsParams:st=void 0}=e,{adsPreviewParam:Xe=void 0}=e,{duration:Ye=void 0}=e,{logoClickable:Ke}=e,{logoHidden:Z}=e,{logoTargetUrl:Ue=""}=e,{showNextPrevButtons:Ce=!1}=e,{nextButtonActive:Pe=!1}=e,{prevButtonActive:ze=!1}=e,{endScreenVideoTitle:pe=void 0}=e,{endScreenVideoThumb:J=void 0}=e,{isOneVideoPlaylist:ft=!1}=e,{supportLink:mt}=e,{shadowRootContainer:et=void 0}=e,{outerContainerRef:lt=void 0}=e,{showMiniTimer:Ot=!1}=e,{fullScreenTarget:Ct=void 0}=e,{playerStarted:it=!1}=e,{showEndScreen:Ft=!0}=e,{playNextVideo:At=po.noop}=e,{playPrevVideo:Qt=po.noop}=e,{repeatPlaylist:ct=po.noop}=e,{seekToInteractive:bt}=e,{toggleGraph:Zt}=e,{playPrevChapter:Kt}=e,{firstStart:Xt}=e,{seekTime:si}=e,we=ce.getLogger().createComponentLog("Root component"),Tt=ce.interfaceLanguage$;O(i,Tt,ie=>t(49,ne=ie));let Et=ce.state.playbackState$;O(i,Et,ie=>t(129,me=ie));let jt=ce.ads.playbackState;O(i,jt,ie=>t(130,R=ie));let wt=ce.state.positionWithScrubbing$;O(i,wt,ie=>t(32,a=ie));let Ht=ce.state.duration$;O(i,Ht,ie=>t(31,r=ie));let Ut=ce.playerPhase;O(i,Ut,ie=>t(36,K=ie));let Lt=ce.ui.isFullscreen;O(i,Lt,ie=>t(143,u=ie));let ii=ce.ui.controlsVisible;O(i,ii,ie=>t(30,o=ie));let Jt=ce.ui.interactiveHideMobileControls;O(i,Jt,ie=>t(121,y=ie));let Ci=ce.ui.settingsMenuVisible;O(i,Ci,ie=>t(119,n=ie));let Pt=ce.ui.scrubbingInProgress;O(i,Pt,ie=>t(122,C=ie));let pi=ce.ui.debugPanelVisible;O(i,pi,ie=>t(58,Ze=ie));let Mi=ce.state.isLoaderVisible;O(i,Mi,ie=>t(131,te=ie));let _i=ce.state.isEnded$;O(i,_i,ie=>t(124,I=ie));let gi=ce.state.chromecastConnected$;O(i,gi,ie=>t(37,z=ie));let he=ce.state.chromecastDeviceName$;O(i,he,ie=>t(53,E=ie));let pt=ce.ads.postrollPassed;O(i,pt,ie=>t(125,k=ie));let fi=ce.ui.mobileUnmuteButtonExpanded,Ai=ce.ui.mobileUnmuteButtonVisible,$i=ce.state.isLive$;O(i,$i,ie=>t(57,Re=ie));let Hi=ce.state.isPlaying$;O(i,Hi,ie=>t(48,le=ie));let en=ce.state.isActiveLive$;O(i,en,ie=>t(120,s=ie));let $t=ce.state.isRewindableLive$,Li=ce.state.crashed$;O(i,Li,ie=>t(35,F=ie));let fn=ce.webApi.annotationsApi,Gt=ce.webApi.pictureInPictureApi,Si=ce.state.videoSize$;O(i,Si,ie=>t(144,_=ie));let dn=ce.state.currentSubtitle$;O(i,dn,ie=>t(54,X=ie));let hi=ce.state.currentSubtitleCaptions$;O(i,hi,ie=>t(55,oe=ie));let tn=ce.state.duration$;O(i,tn,ie=>t(56,fe=ie));let nn=ce.state.graphIsOpened$;O(i,nn,ie=>t(128,se=ie));let mn=ce.ui.playerSize;O(i,mn,ie=>t(33,f=ie));let bi=ce.ui.is3DVideo;O(i,bi,ie=>t(51,Y=ie));let Vi=ce.ui.icon3DVideoVisible;O(i,Vi,ie=>t(52,$=ie));let on=ce.ui.rotateAlpha;O(i,on,ie=>t(34,h=ie));let vi=ce.state.isInteractive,di=ce.state.isInteractiveTime$;O(i,di,ie=>t(123,w=ie));let Ui=ce.state.isInteractiveExpectation$;O(i,Ui,ie=>t(127,H=ie));let Tn=ce.state.hasInteractiveBranches,Ri=ce.ui.controls.disabledControls$;O(i,Ri,ie=>t(50,_e=ie));let rn=ce.ui.touched;O(i,rn,ie=>t(126,P=ie));let Ii=ce.ui.overlayContainer$,yi=ce.state.loadedMetadata$;O(i,yi,ie=>t(142,l=ie));let zi=ce.actions.internal.closeSettingsMenu,pn=ce.callbacks?.onDisabledPlayPrevChapterClick,ln=ce.callbacks?.onDisabledSeekToInteractiveClick,ki,Ti,ai,Bi,ui,xt,ni,Di=qe(!1);O(i,Di,ie=>t(47,g=ie));let Wi,nt=!1,Ni,oi=!1,sn,Qe=!0,an,_n,Ki=!1,ji;Gt?.setContext(Gr());let gn=ie=>{clearTimeout(Bi),ie&&(Ai.set(!0),fi.set(!0),Bi=window.setTimeout(()=>{fi.set(!1)},Be.controls.collapseMobileUnmute),vi||Yt(Be.controls.hideTimeoutMobile))};ce.setUiCallbacks({onStarted:gn});let Gi=()=>{window.clearTimeout(ai),t(114,nt=!1),y&&Jt.set(!1)},Yt=ie=>{Gi(),t(114,nt=!0),ai=window.setTimeout(()=>t(114,nt=!1),ie);let vt=ie-100;Wi=window.setTimeout(()=>{g&&Di.set(!1)},vt>0?vt:ie)},On=bi.subscribe(ie=>{Vi.set(ie),ie&&(window.clearTimeout(ui),ui=window.setTimeout(()=>Vi.set(!1),Be.controls.hide360IconTimeout))}),Oi=async()=>{let ie=bo();if(ie){let vt=Jr(),Xi=bn(),An=po.clientChecker.isSamsungBrowser&&vt===et;ie=vt===Xi||An}if(ie){Yt(Be.controls.hideTimeoutFullscreen);try{await Gt?.remove()}catch(vt){we({message:String(vt)})}try{let vt=_?.width&&_?.height?_:f;await pd(vt)}catch(vt){we({message:String(vt)})}}Lt.set(ie),ce.getAdmanWrapper().setFullscreen(ie),u?ce.callbacks?.onFullscreenEnter?.():ce.callbacks?.onFullscreenExit?.()},Pi=ie=>{let vt=ie;mn.set({width:vt.target.width,height:vt.target.height})};St(()=>(Ll(Oi),Be.features.annotationsInside&&fn?.init(ki),Wo(Gt)&&(Gt?.assignPlayerContainer(ki),Gt?.registryExternalEventHandlers({resize:Pi})),t(41,Qe=!po.clientChecker.isIphoneOrOldIpad),x&&je.parentElement?.insertBefore(x,je.nextSibling),()=>{window.clearTimeout(ai),window.clearTimeout(Wi),window.clearTimeout(Bi),window.clearTimeout(ui),On(),Gt?.dispose(),Vl(Oi)}));let un=!0,xi=!0,hn=ie=>{let vt=a+(ie==="forward"?1:-1)*Be.controls.seekStepMobile/1e3;vt<0?(t(45,un=!1),vt=0):vt>=r&&(t(46,xi=!1),vt=r),t(116,oi=!0),si(vt)},bn=()=>{let ie=po.clientChecker.isIOS||Be.features.fullscreenInternalTargetPlayerContainer||!lt?ki:lt,vt=ie.getRootNode(),Xi=vt instanceof ShadowRoot?vt.host:vt,An=Ct instanceof HTMLElement&&Ct.contains(Xi);return Be.allowChangingFullscreenTarget&&Ct&&An?Ct:ie},Fn=async()=>{if(bo())await Al(document),we({message:"exit fullscreen"});else{if(we({message:"request fullscreen"}),po.clientChecker.isIOS&&!l)return;await Ml(bn())}},Yi=()=>{zi()},Qi=()=>{if(n){Yi();return}if(!it){Xt(),Yt(Be.controls.hideTimeoutCursor);return}t(116,oi=!1),o?Gi():Yt(Be.controls.hideTimeoutMobile)},wi=()=>{if(n){Yi();return}},qn=()=>{rn.set(!0)},Gn=()=>{vi||(Di.set(!0),Yt(Be.controls.hideTimeoutCursor))},Pn=ie=>{pn&&(pn(ie),Yt(Be.controls.hideTimeoutMobile))},ri=ie=>{ln&&(ln(ie),Yt(Be.controls.hideTimeoutMobile))};function Zi(ie){be[ie?"unshift":"push"](()=>{je=ie,t(0,je)})}let xn=()=>hn("backward"),En=()=>hn("forward");function Yn(ie){Ti=ie,t(39,Ti)}function Hn(ie){be[ie?"unshift":"push"](()=>{ni=ie,t(29,ni)})}function Mn(ie){be[ie?"unshift":"push"](()=>{ki=ie,t(38,ki)})}return i.$$set=ie=>{"store"in ie&&t(106,ce=ie.store),"uiConfig"in ie&&t(1,Be=ie.uiConfig),"thumbUrl"in ie&&t(2,De=ie.thumbUrl),"videoContainer"in ie&&t(0,je=ie.videoContainer),"interactiveContainer"in ie&&t(107,x=ie.interactiveContainer),"live"in ie&&t(3,de=ie.live),"autoplay"in ie&&t(4,Ge=ie.autoplay),"canRewindLive"in ie&&t(5,ve=ie.canRewindLive),"showAds"in ie&&t(6,He=ie.showAds),"adsSlotId"in ie&&t(7,$e=ie.adsSlotId),"adsParams"in ie&&t(8,st=ie.adsParams),"adsPreviewParam"in ie&&t(9,Xe=ie.adsPreviewParam),"duration"in ie&&t(10,Ye=ie.duration),"logoClickable"in ie&&t(11,Ke=ie.logoClickable),"logoHidden"in ie&&t(12,Z=ie.logoHidden),"logoTargetUrl"in ie&&t(13,Ue=ie.logoTargetUrl),"showNextPrevButtons"in ie&&t(14,Ce=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(15,Pe=ie.nextButtonActive),"prevButtonActive"in ie&&t(16,ze=ie.prevButtonActive),"endScreenVideoTitle"in ie&&t(17,pe=ie.endScreenVideoTitle),"endScreenVideoThumb"in ie&&t(18,J=ie.endScreenVideoThumb),"isOneVideoPlaylist"in ie&&t(19,ft=ie.isOneVideoPlaylist),"supportLink"in ie&&t(20,mt=ie.supportLink),"shadowRootContainer"in ie&&t(108,et=ie.shadowRootContainer),"outerContainerRef"in ie&&t(109,lt=ie.outerContainerRef),"showMiniTimer"in ie&&t(110,Ot=ie.showMiniTimer),"fullScreenTarget"in ie&&t(111,Ct=ie.fullScreenTarget),"playerStarted"in ie&&t(21,it=ie.playerStarted),"showEndScreen"in ie&&t(112,Ft=ie.showEndScreen),"playNextVideo"in ie&&t(22,At=ie.playNextVideo),"playPrevVideo"in ie&&t(23,Qt=ie.playPrevVideo),"repeatPlaylist"in ie&&t(24,ct=ie.repeatPlaylist),"seekToInteractive"in ie&&t(25,bt=ie.seekToInteractive),"toggleGraph"in ie&&t(26,Zt=ie.toggleGraph),"playPrevChapter"in ie&&t(27,Kt=ie.playPrevChapter),"firstStart"in ie&&t(28,Xt=ie.firstStart),"seekTime"in ie&&t(113,si=ie.seekTime)},i.$$.update=()=>{i.$$.dirty[1]&48|i.$$.dirty[4]&192&&t(40,xt=(K==="video"&&te||K==="ads"&&R==="inactive")&&!F),i.$$.dirty[0]&536870912&&Ii.set(ni),i.$$.dirty[4]&32&&t(115,Ni=me!==I_.PlaybackState.PLAYING),i.$$.dirty[3]&274726912|i.$$.dirty[4]&25&&t(117,sn=se||y||!nt&&(I&&!!Tn||Ni&&H)),i.$$.dirty[1]&112|i.$$.dirty[3]&635437056&&ii.set((Ni||n||C||z||nt&&!oi)&&!sn&&K==="video"&&!F),i.$$.dirty[0]&1073741826|i.$$.dirty[1]&48|i.$$.dirty[3]&131072|i.$$.dirty[4]&4&&t(42,an=Be.features.thumbTimer&&Ot&&K==="video"&&!o&&!F&&!vi&&(Be.hideThumbTimerAfterTouch&&!P||!Be.hideThumbTimerAfterTouch)),i.$$.dirty[0]&64|i.$$.dirty[1]&16|i.$$.dirty[3]&524288|i.$$.dirty[4]&3&&t(43,_n=Ft&&(He&&k||!He)&&I&&!F),i.$$.dirty[0]&2|i.$$.dirty[3]&1644167168&&(!C&&Ki&&!w&&Yt(Be.controls.hideTimeoutMobile),t(118,Ki=C)),i.$$.dirty[0]&1|i.$$.dirty[1]&12&&t(44,ji=je&&h%180?f.height/f.width:1),i.$$.dirty[1]&3|i.$$.dirty[3]&134217728&&(t(45,un=a>0),t(46,xi=!s&&a<r))},[je,Be,De,de,Ge,ve,He,$e,st,Xe,Ye,Ke,Z,Ue,Ce,Pe,ze,pe,J,ft,mt,it,At,Qt,ct,bt,Zt,Kt,Xt,ni,o,r,a,f,h,F,K,z,ki,Ti,xt,Qe,an,_n,ji,un,xi,g,le,ne,_e,Y,$,E,X,oe,fe,Re,Ze,Tt,Et,jt,wt,Ht,Ut,Lt,ii,Jt,Ci,Pt,pi,Mi,_i,gi,he,pt,$i,Hi,en,$t,Li,Si,dn,hi,tn,nn,mn,bi,Vi,on,vi,di,Ui,Ri,rn,yi,Di,hn,Fn,Yi,Qi,wi,qn,Gn,Pn,ri,ce,x,et,lt,Ot,Ct,Ft,si,nt,Ni,oi,sn,Ki,n,s,y,C,w,I,k,P,H,se,me,R,te,Zi,xn,En,Yn,Hn,Mn]}var sf=class extends D{constructor(e){super(),N(this,e,T8,I8,B,{store:106,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:107,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,shadowRootContainer:108,outerContainerRef:109,showMiniTimer:110,fullScreenTarget:111,playerStarted:21,showEndScreen:112,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:113},S8,[-1,-1,-1,-1,-1,-1])}},T_=sf;function P8(i){Ie(i,"svelte-6h4ol6",`.root.svelte-6h4ol6{--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 Z6(i){let e,t;return{c(){e=I("div"),t=De(i[0]),c(e,"class","title svelte-1bcvcf2"),K(e,"hidden",i[1])},m(n,o){v(n,e,o),p(e,t)},p(n,[o]){o&1&&xe(t,n[0]),o&2&&K(e,"hidden",n[1])},i:be,o:be,d(n){n&&b(e)}}}function X6(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=l=>{"title"in l&&t(0,n=l.title),"isHidden"in l&&t(1,o=l.isHidden)},[n,o]}var Zc=class extends B{constructor(e){super(),D(this,e,X6,Z6,R,{title:0,isHidden:1},Q6)}},A0=Zc;function J6(i){Se(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 L0(i){let e,t,n,o,l,r,a;return{c(){e=I("div"),t=I("span"),n=De(i[0]),o=H(),l=I("span"),l.textContent=`${z("waiting_live_day_value")}`,r=H(),a=I("span"),a.textContent=`${z("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){v(s,e,u),p(e,t),p(t,n),p(e,o),p(e,l),v(s,r,u),v(s,a,u)},p(s,u){u&1&&xe(n,s[0])},d(s){s&&(b(e),b(r),b(a))}}}function V0(i){let e,t,n,o,l,r,a;return{c(){e=I("div"),t=I("span"),n=De(i[1]),o=H(),l=I("span"),l.textContent=`${z("waiting_live_hour_value")}`,r=H(),a=I("span"),a.textContent=`${z("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){v(s,e,u),p(e,t),p(t,n),p(e,o),p(e,l),v(s,r,u),v(s,a,u)},p(s,u){u&2&&xe(n,s[1])},d(s){s&&(b(e),b(r),b(a))}}}function R0(i){let e,t,n,o,l,r,a;return{c(){e=I("div"),t=I("span"),n=De(i[2]),o=H(),l=I("span"),l.textContent=`${z("waiting_live_minute_value")}`,r=H(),a=I("span"),a.textContent=`${z("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){v(s,e,u),p(e,t),p(t,n),p(e,o),p(e,l),v(s,r,u),v(s,a,u)},p(s,u){u&4&&xe(n,s[2])},d(s){s&&(b(e),b(r),b(a))}}}function B0(i){let e,t,n,o,l;return{c(){e=I("div"),t=I("span"),n=De(i[3]),o=H(),l=I("span"),l.textContent=`${z("waiting_live_second_value")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg")},m(r,a){v(r,e,a),p(e,t),p(t,n),p(e,o),p(e,l)},p(r,a){a&8&&xe(n,r[3])},d(r){r&&b(e)}}}function $6(i){let e,t,n,o,l=i[0]&&L0(i),r=i[1]&&V0(i),a=i[2]&&R0(i),s=i[3]&&B0(i);return{c(){e=I("div"),l&&l.c(),t=H(),r&&r.c(),n=H(),a&&a.c(),o=H(),s&&s.c(),c(e,"class","timer__container svelte-1qpxtfg")},m(u,f){v(u,e,f),l&&l.m(e,null),p(e,t),r&&r.m(e,null),p(e,n),a&&a.m(e,null),p(e,o),s&&s.m(e,null)},p(u,[f]){u[0]?l?l.p(u,f):(l=L0(u),l.c(),l.m(e,t)):l&&(l.d(1),l=null),u[1]?r?r.p(u,f):(r=V0(u),r.c(),r.m(e,n)):r&&(r.d(1),r=null),u[2]?a?a.p(u,f):(a=R0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,f):(s=B0(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:be,o:be,d(u){u&&b(e),l&&l.d(),r&&r.d(),a&&a.d(),s&&s.d()}}}function e8(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,l,r,a,s,u,f=y=>String(y).padStart(2,"0"),_=y=>{let h=Math.floor(y/86400);h&&(y-=h*86400,t(0,l=f(h)));let C=Math.floor(y/3600);t(1,r=f(C));let w=Math.floor(y/60)%60;t(2,a=f(w));let F=y%60;t(3,s=f(F))},g=()=>{let y=Math.floor(Date.now()/1e3),h=n-y;_(h),h>=1?u=requestAnimationFrame(g):o()};return St(()=>{u=requestAnimationFrame(g)}),Hn(()=>{cancelAnimationFrame(u)}),i.$$set=y=>{"startTime"in y&&t(4,n=y.startTime),"onTimerOver"in y&&t(5,o=y.onTimerOver)},[l,r,a,s,n,o]}var Xc=class extends B{constructor(e){super(),D(this,e,e8,$6,R,{startTime:4,onTimerOver:5},J6)}},D0=Xc;function t8(i){let e,t,n,o,l,r,a=i[2].default,s=Ee(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]],f={};for(let _=0;_<u.length;_+=1)f=ie(f,u[_]);return{c(){e=V("svg"),s&&s.c(),t=V("path"),n=V("path"),o=V("path"),l=V("path"),c(t,"fill","#fefffe"),c(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"),li(t,"opacity",".965"),c(n,"fill","#fefffe"),c(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"),li(n,"opacity",".965"),c(o,"fill","#fefffe"),c(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"),li(o,"opacity",".985"),c(l,"fill","#fefffe"),c(l,"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"),li(l,"opacity",".986"),ke(e,f)},m(_,g){v(_,e,g),s&&s.m(e,null),p(e,t),p(e,n),p(e,o),p(e,l),r=!0},p(_,[g]){s&&s.p&&(!r||g&2)&&Ae(s,a,_,_[1],r?Me(a,_[1],g,null):Le(_[1]),null),ke(e,f=Be(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"},g&1&&_[0]]))},i(_){r||(d(s,_),r=!0)},o(_){m(s,_),r=!1},d(_){_&&b(e),s&&s.d(_)}}}function i8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Jc=class extends B{constructor(e){super(),D(this,e,i8,t8,R,{})}},N0=Jc;function n8(i){Se(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 o8(i){let e,t,n,o,l;return o=new D0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=I("div"),t=I("span"),t.textContent=`${z("waiting_live_timer_title")}`,n=H(),A(o.$$.fragment),c(t,"class","timer__title svelte-15pewff"),c(e,"class","waiting-timer timer svelte-15pewff")},m(r,a){v(r,e,a),p(e,t),p(e,n),E(o,e,null),l=!0},p(r,a){let s={};a&2&&(s.startTime=r[1]||0),a&4&&(s.onTimerOver=r[3]),o.$set(s)},i(r){l||(d(o.$$.fragment,r),l=!0)},o(r){m(o.$$.fragment,r),l=!1},d(r){r&&b(e),M(o)}}}function r8(i){let e,t,n,o,l,r;return n=new N0({}),{c(){e=I("div"),t=I("div"),A(n.$$.fragment),o=H(),l=I("span"),l.textContent=`${z("waiting_live_upcoming_title")}`,c(t,"class","upcoming-icon svelte-15pewff"),c(l,"class","upcoming__title svelte-15pewff"),c(e,"class","upcoming svelte-15pewff")},m(a,s){v(a,e,s),p(e,t),E(n,t,null),p(e,o),p(e,l),r=!0},p:be,i(a){r||(d(n.$$.fragment,a),r=!0)},o(a){m(n.$$.fragment,a),r=!1},d(a){a&&b(e),M(n)}}}function l8(i){let e,t,n,o,l,r=[r8,o8],a=[];function s(u,f){return u[2]?0:1}return t=s(i,-1),n=a[t]=r[t](i),{c(){e=I("div"),n.c(),c(e,"class","waiting-container svelte-15pewff"),c(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,f){v(u,e,f),a[t].m(e,null),l=!0},p(u,[f]){let _=t;t=s(u,f),t===_?a[t].p(u,f):(ae(),m(a[_],1,1,()=>{a[_]=null}),ue(),n=a[t],n?n.p(u,f):(n=a[t]=r[t](u),n.c()),d(n,1),n.m(e,null)),(!l||f&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&c(e,"style",o)},i(u){l||(d(n),l=!0)},o(u){m(n),l=!1},d(u){u&&b(e),a[t].d()}}}function s8(i,e,t){let n,{thumbUrl:o}=e,{startTime:l}=e,r=()=>t(2,n=!0);return i.$$set=a=>{"thumbUrl"in a&&t(0,o=a.thumbUrl),"startTime"in a&&t(1,l=a.startTime)},i.$$.update=()=>{i.$$.dirty&2&&t(2,n=l===void 0||l<Math.floor(Date.now()/1e3))},[o,l,n,r]}var $c=class extends B{constructor(e){super(),D(this,e,s8,l8,R,{thumbUrl:0,startTime:1},n8)}},Vs=$c;function a8(i){Se(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 u8(i){let e,t,n,o,l,r,a,s;return n=new Er({props:{style:"position: static; transform: translate(0, 0)"}}),{c(){e=I("div"),t=I("div"),A(n.$$.fragment),o=H(),l=I("p"),r=De(i[1]),c(l,"class","waiting-title svelte-xvqwsa"),c(t,"class","waiting-caption svelte-xvqwsa"),c(e,"class","waiting-container svelte-xvqwsa"),c(e,"style",a=`background-image: url('${i[0]}')`)},m(u,f){v(u,e,f),p(e,t),E(n,t,null),p(t,o),p(t,l),p(l,r),s=!0},p(u,[f]){(!s||f&2)&&xe(r,u[1]),(!s||f&1&&a!==(a=`background-image: url('${u[0]}')`))&&c(e,"style",a)},i(u){s||(d(n.$$.fragment,u),s=!0)},o(u){m(n.$$.fragment,u),s=!1},d(u){u&&b(e),M(n)}}}function c8(i,e,t){let{thumbUrl:n=""}=e,{kind:o}=e,l;return i.$$set=r=>{"thumbUrl"in r&&t(0,n=r.thumbUrl),"kind"in r&&t(2,o=r.kind)},i.$$.update=()=>{if(i.$$.dirty&4){let r={recover:z("waiting_live_recover_title"),record:z("waiting_record_title")};t(1,l=r[o]||"")}},[n,l,o]}var ef=class extends B{constructor(e){super(),D(this,e,c8,u8,R,{thumbUrl:0,kind:2},a8)}},Or=ef;var{window:f8}=Vo;function d8(i){Se(i,"svelte-12e19rp",".player-wrapper.svelte-12e19rp{position:absolute;width:100%;height:100%}.player-wrapper.svelte-12e19rp .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-12e19rp{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-12e19rp,.video-container.svelte-12e19rp,.ads-container.svelte-12e19rp{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-12e19rp{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-12e19rp{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-12e19rp{transition:none}.nocursor.svelte-12e19rp{cursor:none}.ads-container.svelte-12e19rp{z-index:var(--ads-container-z-index);background:var(--black)}")}function F0(i){let e,t;return e=new Vs({props:{thumbUrl:i[3],startTime:i[4]?.startTime}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[0]&16&&(l.startTime=n[4]?.startTime),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function q0(i){let e,t;return e=new Or({props:{kind:"recover",thumbUrl:i[3]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function H0(i){let e,t;return e=new Or({props:{kind:"record",thumbUrl:i[3]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function U0(i){let e,t,n;return t=new Ll({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","ads-container svelte-12e19rp"),K(e,"hidden",i[38]!=="ads")},m(o,l){v(o,e,l),E(t,e,null),n=!0},p(o,l){let r={};l[0]&256&&(r.adsSlotId=o[8]),l[0]&512&&(r.adsParams=o[9]),l[0]&1024&&(r.adsPreviewParam=o[10]),l[0]&2048&&(r.duration=o[11]),t.$set(r),(!n||l[1]&128)&&K(e,"hidden",o[38]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function z0(i){let e,t;return e=new s1({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&262144&&(l.title=n[18]),o[0]&524288&&(l.thumb=n[19]),o[0]&8388608&&(l.playNextVideo=n[23]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function W0(i){let e,t;return e=new A0({props:{title:i[2],isHidden:!i[36]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.title=n[2]),o[1]&32&&(l.isHidden=!n[36]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function K0(i){let e,t;return e=new Ps({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[1]&160&&(l.isShifted=n[38]==="video"&&n[36]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function j0(i){let e,t,n;return t=new wl({props:{"aria-label":z("video360")}}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","spherical-video-icon svelte-12e19rp")},m(o,l){v(o,e,l),E(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function G0(i){let e,t;return e=new Ms({props:{thumbUrl:i[3],chromecastDeviceName:i[54]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[1]&8388608&&(l.chromecastDeviceName=n[54]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function x0(i){let e,t;return e=new Es({props:{shifted:i[36],captions:i[56],position:i[57],playerSize:i[34]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[1]&32&&(l.shifted=n[36]),o[1]&33554432&&(l.captions=n[56]),o[1]&67108864&&(l.position=n[57]),o[1]&8&&(l.playerSize=n[34]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Y0(i){let e,t,n,o,l;return t=new As({}),{c(){e=I("div"),A(t.$$.fragment)},m(r,a){v(r,e,a),E(t,e,null),n=!0,o||(l=[Te(e,"contextmenu",$t(i[108])),Te(e,"click",_t(i[119]))],o=!0)},p:be,i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){m(t.$$.fragment,r),n=!1},d(r){r&&b(e),M(t),o=!1,ct(l)}}}function Q0(i){let e,t,n;function o(r){i[159](r)}let l={bottomHidden:i[38]==="thumb"||i[38]==="LiveWaitingStart"||i[38]==="LiveWaitingRecover"||i[38]==="LiveWaitingRecord",bottomNoSmooth:i[50],showControls:i[36],isAds:i[38]==="ads",canRewindLive:i[6]&&i[58]!==0,logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[14],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],supportLink:i[21],customFullscreenSupported:t_,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[106],returnFocus:i[158],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};return i[41]!==void 0&&(l.controlsElementRef=i[41]),e=new Ts({props:l}),ve.push(()=>Oe(e,"controlsElementRef",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&128&&(s.bottomHidden=r[38]==="thumb"||r[38]==="LiveWaitingStart"||r[38]==="LiveWaitingRecover"||r[38]==="LiveWaitingRecord"),a[1]&524288&&(s.bottomNoSmooth=r[50]),a[1]&32&&(s.showControls=r[36]),a[1]&128&&(s.isAds=r[38]==="ads"),a[0]&64|a[1]&134217728&&(s.canRewindLive=r[6]&&r[58]!==0),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&16384&&(s.logoTargetUrl=r[14]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&8388608&&(s.playNextVideo=r[23]),a[0]&16777216&&(s.playPrevVideo=r[24]),a[0]&33554432&&(s.repeatPlaylist=r[25]),a[1]&131072&&(s.returnFocus=r[158]),a[0]&67108864&&(s.seekToInteractive=r[26]),a[0]&134217728&&(s.toggleGraph=r[27]),a[0]&268435456&&(s.playPrevChapter=r[28]),!t&&a[1]&1024&&(t=!0,s.controlsElementRef=r[41],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Z0(i){let e,t;return e=new Er({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function X0(i){let e,t;return e=new b1({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function J0(i){let e,t;return e=new Ol({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function $0(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,T,k,P,j,W,U,se,de;e=new Ls({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let L=i[38]==="LiveWaitingStart"&&F0(i),ne=i[38]==="LiveWaitingRecover"&&q0(i),oe=i[38]==="LiveWaitingRecord"&&H0(i),Z=i[7]&&i[22]&&U0(i),Pe=i[31]&&i[18]&&i[19]&&z0(i),q=i[44]&&W0(i),N=i[49]&&K0(i),le=i[53]&&j0(i),Y=i[39]&&G0(i),re=i[55].value!=="off"&&x0(i),ce=i[37]&&Y0(i),qe=i[22]&&Q0(i);C=new Rl({props:{isLive:i[59],isHidden:!i[43],isPlaying:i[51],position:i[57],duration:i[60]}}),F=new k0({props:{data:i[103]}});function Ve(x){i[161](x)}let we={supportLink:i[21],returnFocus:i[160],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(we.menuElementRef=i[32]),k=new Ud({props:we}),ve.push(()=>Oe(k,"menuElementRef",Ve));let Re=i[42]&&Z0(i),Ue=i[62]&&X0(i),Ge=i[63]&&J0(i);return{c(){A(e.$$.fragment),t=H(),L&&L.c(),n=H(),ne&&ne.c(),o=H(),oe&&oe.c(),l=H(),Z&&Z.c(),r=H(),Pe&&Pe.c(),a=H(),q&&q.c(),s=H(),N&&N.c(),u=H(),le&&le.c(),f=H(),Y&&Y.c(),_=H(),re&&re.c(),g=H(),ce&&ce.c(),y=H(),qe&&qe.c(),h=H(),A(C.$$.fragment),w=H(),A(F.$$.fragment),T=H(),A(k.$$.fragment),j=H(),Re&&Re.c(),W=H(),Ue&&Ue.c(),U=H(),Ge&&Ge.c(),se=et()},m(x,fe){E(e,x,fe),v(x,t,fe),L&&L.m(x,fe),v(x,n,fe),ne&&ne.m(x,fe),v(x,o,fe),oe&&oe.m(x,fe),v(x,l,fe),Z&&Z.m(x,fe),v(x,r,fe),Pe&&Pe.m(x,fe),v(x,a,fe),q&&q.m(x,fe),v(x,s,fe),N&&N.m(x,fe),v(x,u,fe),le&&le.m(x,fe),v(x,f,fe),Y&&Y.m(x,fe),v(x,_,fe),re&&re.m(x,fe),v(x,g,fe),ce&&ce.m(x,fe),v(x,y,fe),qe&&qe.m(x,fe),v(x,h,fe),E(C,x,fe),v(x,w,fe),E(F,x,fe),v(x,T,fe),E(k,x,fe),v(x,j,fe),Re&&Re.m(x,fe),v(x,W,fe),Ue&&Ue.m(x,fe),v(x,U,fe),Ge&&Ge.m(x,fe),v(x,se,fe),de=!0},p(x,fe){let Ye={};fe[0]&32|fe[1]&192&&(Ye.hidden=x[38]!=="thumb"||x[37]||x[92]&&x[5]),fe[0]&8&&(Ye.thumbUrl=x[3]),fe[0]&536870912&&(Ye.startVideo=x[29]),e.$set(Ye),x[38]==="LiveWaitingStart"?L?(L.p(x,fe),fe[1]&128&&d(L,1)):(L=F0(x),L.c(),d(L,1),L.m(n.parentNode,n)):L&&(ae(),m(L,1,1,()=>{L=null}),ue()),x[38]==="LiveWaitingRecover"?ne?(ne.p(x,fe),fe[1]&128&&d(ne,1)):(ne=q0(x),ne.c(),d(ne,1),ne.m(o.parentNode,o)):ne&&(ae(),m(ne,1,1,()=>{ne=null}),ue()),x[38]==="LiveWaitingRecord"?oe?(oe.p(x,fe),fe[1]&128&&d(oe,1)):(oe=H0(x),oe.c(),d(oe,1),oe.m(l.parentNode,l)):oe&&(ae(),m(oe,1,1,()=>{oe=null}),ue()),x[7]&&x[22]?Z?(Z.p(x,fe),fe[0]&4194432&&d(Z,1)):(Z=U0(x),Z.c(),d(Z,1),Z.m(r.parentNode,r)):Z&&(ae(),m(Z,1,1,()=>{Z=null}),ue()),x[31]&&x[18]&&x[19]?Pe?(Pe.p(x,fe),fe[0]&786432|fe[1]&1&&d(Pe,1)):(Pe=z0(x),Pe.c(),d(Pe,1),Pe.m(a.parentNode,a)):Pe&&(ae(),m(Pe,1,1,()=>{Pe=null}),ue()),x[44]?q?(q.p(x,fe),fe[1]&8192&&d(q,1)):(q=W0(x),q.c(),d(q,1),q.m(s.parentNode,s)):q&&(ae(),m(q,1,1,()=>{q=null}),ue()),x[49]?N?(N.p(x,fe),fe[1]&262144&&d(N,1)):(N=K0(x),N.c(),d(N,1),N.m(u.parentNode,u)):N&&(ae(),m(N,1,1,()=>{N=null}),ue()),x[53]?le?fe[1]&4194304&&d(le,1):(le=j0(x),le.c(),d(le,1),le.m(f.parentNode,f)):le&&(ae(),m(le,1,1,()=>{le=null}),ue()),x[39]?Y?(Y.p(x,fe),fe[1]&256&&d(Y,1)):(Y=G0(x),Y.c(),d(Y,1),Y.m(_.parentNode,_)):Y&&(ae(),m(Y,1,1,()=>{Y=null}),ue()),x[55].value!=="off"?re?(re.p(x,fe),fe[1]&16777216&&d(re,1)):(re=x0(x),re.c(),d(re,1),re.m(g.parentNode,g)):re&&(ae(),m(re,1,1,()=>{re=null}),ue()),x[37]?ce?(ce.p(x,fe),fe[1]&64&&d(ce,1)):(ce=Y0(x),ce.c(),d(ce,1),ce.m(y.parentNode,y)):ce&&(ae(),m(ce,1,1,()=>{ce=null}),ue()),x[22]?qe?(qe.p(x,fe),fe[0]&4194304&&d(qe,1)):(qe=Q0(x),qe.c(),d(qe,1),qe.m(h.parentNode,h)):qe&&(ae(),m(qe,1,1,()=>{qe=null}),ue());let _e={};fe[1]&268435456&&(_e.isLive=x[59]),fe[1]&4096&&(_e.isHidden=!x[43]),fe[1]&1048576&&(_e.isPlaying=x[51]),fe[1]&67108864&&(_e.position=x[57]),fe[1]&536870912&&(_e.duration=x[60]),C.$set(_e);let ze={};fe[0]&2097152&&(ze.supportLink=x[21]),fe[1]&131072&&(ze.returnFocus=x[160]),fe[1]&4&&(ze.visible=x[33]),fe[1]&512&&(ze.playerContainerRef=x[40]),fe[1]&1024&&(ze.controlsContainerRef=x[41]),fe[1]&1073741824&&(ze.position=x[61]),!P&&fe[1]&2&&(P=!0,ze.menuElementRef=x[32],Ne(()=>P=!1)),k.$set(ze),x[42]?Re?fe[1]&2048&&d(Re,1):(Re=Z0(x),Re.c(),d(Re,1),Re.m(W.parentNode,W)):Re&&(ae(),m(Re,1,1,()=>{Re=null}),ue()),x[62]?Ue?fe[2]&1&&d(Ue,1):(Ue=X0(x),Ue.c(),d(Ue,1),Ue.m(U.parentNode,U)):Ue&&(ae(),m(Ue,1,1,()=>{Ue=null}),ue()),x[63]?Ge?fe[2]&2&&d(Ge,1):(Ge=J0(x),Ge.c(),d(Ge,1),Ge.m(se.parentNode,se)):Ge&&(ae(),m(Ge,1,1,()=>{Ge=null}),ue())},i(x){de||(d(e.$$.fragment,x),d(L),d(ne),d(oe),d(Z),d(Pe),d(q),d(N),d(le),d(Y),d(re),d(ce),d(qe),d(C.$$.fragment,x),d(F.$$.fragment,x),d(k.$$.fragment,x),d(Re),d(Ue),d(Ge),de=!0)},o(x){m(e.$$.fragment,x),m(L),m(ne),m(oe),m(Z),m(Pe),m(q),m(N),m(le),m(Y),m(re),m(ce),m(qe),m(C.$$.fragment,x),m(F.$$.fragment,x),m(k.$$.fragment,x),m(Re),m(Ue),m(Ge),de=!1},d(x){x&&(b(t),b(n),b(o),b(l),b(r),b(a),b(s),b(u),b(f),b(_),b(g),b(y),b(h),b(w),b(T),b(j),b(W),b(U),b(se)),M(e,x),L&&L.d(x),ne&&ne.d(x),oe&&oe.d(x),Z&&Z.d(x),Pe&&Pe.d(x),q&&q.d(x),N&&N.d(x),le&&le.d(x),Y&&Y.d(x),re&&re.d(x),ce&&ce.d(x),qe&&qe.d(x),M(C,x),M(F,x),M(k,x),Re&&Re.d(x),Ue&&Ue.d(x),Ge&&Ge.d(x)}}}function m8(i){let e,t,n,o,l=i[52],r,a,s,u,f=$0(i);return{c(){e=I("div"),t=I("div"),o=H(),f.c(),r=et(),c(t,"class","video-container svelte-12e19rp"),c(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),c(t,"data-testid","video-container"),c(t,"data-is-playing",i[51]),K(t,"fast-rotate",!i[1].isSmoothVideoRotate),c(e,"class","video-wrapper svelte-12e19rp"),K(e,"hidden",i[38]!=="video"),K(e,"nocursor",i[45])},m(_,g){v(_,e,g),p(e,t),i[157](t),v(_,o,g),f.m(_,g),v(_,r,g),a=!0,s||(u=[Te(e,"contextmenu",$t(i[108])),Te(e,"mousedown",$t(i[113])),Te(e,"mouseup",$t(i[114])),Te(e,"click",$t(i[116])),Te(e,"dblclick",$t(i[115]))],s=!0)},p(_,g){(!a||g[1]&32784&&n!==(n=`transform: rotate(${_[35]}deg) scale(${_[46]})`))&&c(t,"style",n),(!a||g[1]&1048576)&&c(t,"data-is-playing",_[51]),(!a||g[0]&2)&&K(t,"fast-rotate",!_[1].isSmoothVideoRotate),(!a||g[1]&128)&&K(e,"hidden",_[38]!=="video"),(!a||g[1]&16384)&&K(e,"nocursor",_[45]),g[1]&2097152&&R(l,l=_[52])?(ae(),m(f,1,1,be),ue(),f=$0(_),f.c(),d(f,1),f.m(r.parentNode,r)):f.p(_,g)},i(_){a||(d(f),a=!0)},o(_){m(f),a=!1},d(_){_&&(b(e),b(o),b(r)),i[157](null),f.d(_),s=!1,ct(u)}}}function p8(i){let e,t,n,o,l,r,a,s={toggleFullscreen:i[106],hideContextMenu:i[107],showHotKeyHelpers:i[117],showKeyMap:i[118],isAds:i[38]==="ads",fakePlayButtonHandler:i[47]?i[105]:void 0,$$slots:{default:[m8]},$$scope:{ctx:i}};return t=new u1({props:s}),i[162](t),{c(){e=I("div"),A(t.$$.fragment),n=H(),o=I("div"),c(o,"class","overlay-container"),c(e,"class","player-wrapper svelte-12e19rp")},m(u,f){v(u,e,f),E(t,e,null),p(e,n),p(e,o),i[163](o),i[164](e),l=!0,r||(a=[Te(f8,"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)],r=!0)},p(u,f){let _={};f[1]&128&&(_.isAds=u[38]==="ads"),f[1]&65536&&(_.fakePlayButtonHandler=u[47]?u[105]:void 0),f[0]&1073741823|f[1]&2147418111|f[2]&3|f[6]&32&&(_.$$scope={dirty:f,ctx:u}),t.$set(_)},i(u){l||(d(t.$$.fragment,u),l=!0)},o(u){m(t.$$.fragment,u),l=!1},d(u){u&&b(e),i[162](null),M(t),i[163](null),i[164](null),r=!1,ct(a)}}}var t_=!0;function tf(i){return i?i.offsetTop+tf(i.offsetParent):0}function i_(i){return i?i.offsetLeft+i_(i.offsetParent):0}function _8(i,e,t){let n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,T,k,P,j,W,U,se,de,L,ne,oe,Z,Pe,q,N,le,Y,re,ce,qe,Ve,we,Re,Ue,Ge,x,fe,Ye,{store:_e}=e,{uiConfig:ze}=e,{title:$e}=e,{thumbUrl:rt}=e,{videoContainer:Je}=e,{interactiveContainer:Ze}=e,{live:He}=e,{autoplay:J}=e,{canRewindLive:je}=e,{showAds:ge}=e,{adsSlotId:Ie=void 0}=e,{adsParams:We=void 0}=e,{adsPreviewParam:me=void 0}=e,{duration:$=void 0}=e,{logoClickable:dt}=e,{logoHidden:mt}=e,{logoTargetUrl:tt=""}=e,{showNextPrevButtons:ut=!1}=e,{nextButtonActive:Pt=!1}=e,{prevButtonActive:Tt=!1}=e,{endScreenVideoTitle:it=void 0}=e,{endScreenVideoThumb:Et=void 0}=e,{isOneVideoPlaylist:Ht=!1}=e,{supportLink:oi}=e,{shadowRootContainer:st=void 0}=e,{outerContainerRef:vt=void 0}=e,{playerStarted:ri=!1}=e,{fullScreenTarget:pe=void 0}=e,{showMiniTimer:Rt=!1}=e,{showEndScreen:Bt=!0}=e,{playNextVideo:Lt=Rs.noop}=e,{playPrevVideo:wt=Rs.noop}=e,{repeatPlaylist:Xt=Rs.noop}=e,{seekToInteractive:Mt}=e,{toggleGraph:ui}=e,{playPrevChapter:Ti}=e,{firstStart:Jt}=e,Ut=_e.getLogger().createComponentLog("Root component"),si=_e.interfaceLanguage$;O(i,si,G=>t(52,Y=G));let zt=_e.state.playbackState$;O(i,zt,G=>t(154,Pe=G));let Pi=_e.ads.playbackState;O(i,Pi,G=>t(155,q=G));let Ct=_e.state.positionWithScrubbing$;O(i,Ct,G=>t(57,we=G));let Ei=_e.state.duration$;O(i,Ei,G=>t(60,Ge=G));let Mi=_e.playerPhase;O(i,Mi,G=>t(38,de=G));let ci=_e.ui.isFullscreen;O(i,ci,G=>t(144,h=G));let fi=_e.ui.controlsVisible;O(i,fi,G=>t(36,P=G));let he=_e.ui.settingsMenuVisible;O(i,he,G=>t(142,s=G));let pt=_e.ui.scrubbingInProgress;O(i,pt,G=>t(146,T=G));let ai=_e.ui.contextMenu.visible$;O(i,ai,G=>t(33,n=G));let qi=_e.ui.debugPanelVisible;O(i,qi,G=>t(63,Ye=G));let nn=_e.state.isLoaderVisible;O(i,nn,G=>t(156,N=G));let Hi=_e.state.isEnded$;O(i,Hi,G=>t(143,f=G));let Ui=_e.state.chromecastConnected$;O(i,Ui,G=>t(39,oe=G));let ti=_e.state.chromecastDeviceName$;O(i,ti,G=>t(54,ce=G));let Ai=_e.ads.postrollPassed;O(i,Ai,G=>t(149,U=G));let di=_e.state.isLive$;O(i,di,G=>t(59,Ue=G));let hi=_e.state.isPlaying$;O(i,hi,G=>t(51,le=G));let bi=_e.state.crashed$;O(i,bi,G=>t(37,W=G));let gn=_e.webApi.annotationsApi,mi=_e.webApi.pictureInPictureApi,on=_e.state.currentSubtitle$;O(i,on,G=>t(55,qe=G));let rn=_e.state.currentSubtitleCaptions$;O(i,rn,G=>t(56,Ve=G));let hn=_e.state.duration$;O(i,hn,G=>t(58,Re=G));let pi=_e.state.graphIsOpened$;O(i,pi,G=>t(150,se=G));let vi=_e.ui.playerSize;O(i,vi,G=>t(34,g=G));let zi=_e.ui.is3DVideo;O(i,zi,G=>t(49,_=G));let xt=_e.ui.icon3DVideoVisible;O(i,xt,G=>t(53,re=G));let In=_e.ui.rotateAlpha;O(i,In,G=>t(35,F=G));let Wi=_e.state.isInteractive,ln=_e.state.isInteractiveTime$;O(i,ln,G=>t(147,k=G));let sn=_e.state.isInteractiveExpectation$;O(i,sn,G=>t(153,Z=G));let Li=_e.state.hasInteractiveBranches,Vi=_e.ui.touched;O(i,Vi,G=>t(151,L=G));let _i=_e.ui.modals.hotKeyMap.data;O(i,_i,G=>t(171,u=G));let Ki=_e.ui.modals.hotKeyMap.show;O(i,Ki,G=>t(62,fe=G));let Tn=_e.ui.overlayContainer$,ji=_e.ui.controls.interactiveTimeIndicator;O(i,ji,G=>t(172,y=G));let yi=_e.state.showInteractiveTimeIndicator,ki=_e.ui.contextMenu.position$;O(i,ki,G=>t(61,x=G));let ii=_e.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Kt}=Vn();O(i,Kt,G=>t(145,w=G));let Wt,Gi,wi,Ri,lt;_i.set(gd());let Ci,Yt,Si=Fe(!1);O(i,Si,G=>t(50,C=G));let xi,Qe=Fe(!1);O(i,Qe,G=>t(152,ne=G));let bn=Fe(),an=Fe(!1);O(i,an,G=>t(148,j=G));let Yi=!1,Bi=!1,vn=!1,un=!(J&&!ze.controls.showOnStartupAtAutoplay),Qt,Pn,cn,gi,fn,Qi=!1,dn,yn=!1,{toggle:Dn}=Kt,Zi=!1,Di=null,Ni;mi?.setContext(Yr());let En=()=>{J&&!Wi&&ze.controls.showOnStartupAtAutoplay&&Zt(ze.controls.hideTimeout)};_e.setUiCallbacks({onStarted:En});let jn=()=>{window.clearTimeout(wi),Qe.set(!1)},Gn=()=>{window.clearTimeout(Ri),bn.set(null)},Zt=G=>{jn(),Qe.set(!0),wi=window.setTimeout(()=>Qe.set(!1),G);let Dt=G-100;xi=window.setTimeout(()=>{C&&Si.set(!1)},Dt>0?Dt:G)},xn=(G,Dt)=>{Gn(),bn.set(Dt),Ri=window.setTimeout(()=>bn.set(null),G)},Xi=zi.subscribe(G=>{xt.set(G),G&&(window.clearTimeout(lt),lt=window.setTimeout(()=>xt.set(!1),ze.controls.hide360IconTimeout))}),Nn=async()=>{let G=ho();if(G){let Dt=el(),kn=Mn();G=Dt===kn||Dt===st}if(G){Zt(ze.controls.hideTimeoutFullscreen);try{await mi?.remove()}catch(Dt){Ut({message:String(Dt)})}}ci.set(G),_e.getAdmanWrapper().setFullscreen(G),h?_e.callbacks?.onFullscreenEnter?.():_e.callbacks?.onFullscreenExit?.()},On=G=>{let Dt=G;vi.set({width:Dt.target.width,height:Dt.target.height})};St(()=>(Ml(Nn),ze.features.annotationsInside&&gn?.init(Wt),zo(mi)&&(mi?.assignPlayerContainer(Wt),mi?.registryExternalEventHandlers({resize:On})),Ze&&Je.parentElement?.insertBefore(Ze,Je.nextSibling),()=>{window.clearTimeout(wi),window.clearTimeout(xi),window.clearTimeout(Ri),window.clearTimeout(lt),Xi(),mi?.dispose(),Al(Nn)}));let Mn=()=>{let G=ze.features.fullscreenInternalTargetPlayerContainer||!vt?Wt:vt,Dt=G.getRootNode(),kn=Dt instanceof ShadowRoot?Dt.host:Dt,qn=pe instanceof HTMLElement&&pe.contains(kn);return ze.allowChangingFullscreenTarget&&pe&&qn?pe:G},Fn=async()=>{ho()?(await El(document),Ut({message:"exit fullscreen"})):(Ut({message:"request fullscreen"}),await Pl(Mn()))},te=()=>{ii(),ai.set(!1)},yt=G=>{ai.set(!0),ki.set({left:G.clientX,top:G.clientY})};function mn(){an.set(!0),Wi||Zt(ze.controls.hideTimeoutCursor)}function Ji(){Wi||(Si.set(!0),Zt(ze.controls.hideTimeoutCursor))}function mo(){an.set(!1),t(133,Bi=!1),t(132,Yi=!1),Zi=!1,_e.actions.internal.releaseCamera()}function eo(G){if(y&&yi){let Dt=G.currentTarget,kn=tf(Dt),qn=i_(Dt),To=G.pageX-qn,Po=G.pageY-kn,{left:_o,bottom:rr,right:lr}=y,Eo=lr-_o;return To>=_o-Eo&&Po<=rr+Eo}}function to(G){if(Wt){let Dt=tf(G.currentTarget),kn=g.height,qn=G.pageY-Dt;if(eo(G)){t(133,Bi=!1);return}qn<40?t(133,Bi=!0):qn>kn-40?t(132,Yi=!0):(t(133,Bi=!1),s||t(132,Yi=!1))}}function io(G){to(G),Qt||Zt(ze.controls.hideTimeoutCursor),_&&Zi&&Di&&_e.actions.internal.moveCameraFocusPX(Di.clientX-G.clientX,Di.clientY-G.clientY,G.timeStamp-Di.timeStamp),Di=G}let $i=G=>{G.button===0&&(Zi=!0,_e.actions.internal.holdCamera()),Zt(ze.controls.hideTimeoutCursor)},Yn=G=>{G.button===0&&(Di=G,Zi=!1,_e.actions.internal.releaseCamera()),Zt(ze.controls.hideTimeoutCursor)},ee=()=>{t_&&(Ut({message:"double click on video"}),Fn(),Zt(ze.controls.hideTimeoutCursor))},Co=()=>{if(n||s){te();return}if(!(f&&!Li)){if(yn)return Dn();if(Ni?.focus(),!ri){Jt(),Zt(ze.controls.hideTimeoutCursor);return}_e.actions.internal.togglePlay(),Zt(ze.controls.hideTimeoutCursor)}},Zo=G=>{te(),Vi.set(!0),Zt(ze.controls.hideTimeout),G&&xn(ze.controls.hideHotKeyHelpers,G)},Xo=()=>{te(),_e.callbacks?.onOpenHotKeyMap?_e.callbacks?.onOpenHotKeyMap(u):Ki.update(G=>!G)},po=()=>{if(n||s){te();return}},Wr=()=>{Vi.set(!0)},pn=_e.ui.contextMenu.openedByBtnKeyboard$;O(i,pn,G=>t(141,a=G));let Jo=_e.ui.contextMenu.btnRef$;O(i,Jo,G=>t(140,r=G));let Qn,no=_e.ui.contextMenu.openedByHotKey$;O(i,no,G=>t(139,l=G));let So=_e.ui.contextMenu.lastActiveElem$;O(i,So,G=>t(138,o=G));function An(G){ve[G?"unshift":"push"](()=>{Je=G,t(0,Je)})}let Io=()=>Ni?.focus();function $o(G){Gi=G,t(41,Gi)}let er=()=>Ni?.focus();function tr(G){Qn=G,t(32,Qn)}function ir(G){ve[G?"unshift":"push"](()=>{Ni=G,t(48,Ni)})}function nr(G){ve[G?"unshift":"push"](()=>{Yt=G,t(30,Yt)})}function or(G){ve[G?"unshift":"push"](()=>{Wt=G,t(40,Wt)})}return i.$$set=G=>{"store"in G&&t(125,_e=G.store),"uiConfig"in G&&t(1,ze=G.uiConfig),"title"in G&&t(2,$e=G.title),"thumbUrl"in G&&t(3,rt=G.thumbUrl),"videoContainer"in G&&t(0,Je=G.videoContainer),"interactiveContainer"in G&&t(126,Ze=G.interactiveContainer),"live"in G&&t(4,He=G.live),"autoplay"in G&&t(5,J=G.autoplay),"canRewindLive"in G&&t(6,je=G.canRewindLive),"showAds"in G&&t(7,ge=G.showAds),"adsSlotId"in G&&t(8,Ie=G.adsSlotId),"adsParams"in G&&t(9,We=G.adsParams),"adsPreviewParam"in G&&t(10,me=G.adsPreviewParam),"duration"in G&&t(11,$=G.duration),"logoClickable"in G&&t(12,dt=G.logoClickable),"logoHidden"in G&&t(13,mt=G.logoHidden),"logoTargetUrl"in G&&t(14,tt=G.logoTargetUrl),"showNextPrevButtons"in G&&t(15,ut=G.showNextPrevButtons),"nextButtonActive"in G&&t(16,Pt=G.nextButtonActive),"prevButtonActive"in G&&t(17,Tt=G.prevButtonActive),"endScreenVideoTitle"in G&&t(18,it=G.endScreenVideoTitle),"endScreenVideoThumb"in G&&t(19,Et=G.endScreenVideoThumb),"isOneVideoPlaylist"in G&&t(20,Ht=G.isOneVideoPlaylist),"supportLink"in G&&t(21,oi=G.supportLink),"shadowRootContainer"in G&&t(127,st=G.shadowRootContainer),"outerContainerRef"in G&&t(128,vt=G.outerContainerRef),"playerStarted"in G&&t(22,ri=G.playerStarted),"fullScreenTarget"in G&&t(129,pe=G.fullScreenTarget),"showMiniTimer"in G&&t(130,Rt=G.showMiniTimer),"showEndScreen"in G&&t(131,Bt=G.showEndScreen),"playNextVideo"in G&&t(23,Lt=G.playNextVideo),"playPrevVideo"in G&&t(24,wt=G.playPrevVideo),"repeatPlaylist"in G&&t(25,Xt=G.repeatPlaylist),"seekToInteractive"in G&&t(26,Mt=G.seekToInteractive),"toggleGraph"in G&&t(27,ui=G.toggleGraph),"playPrevChapter"in G&&t(28,Ti=G.playPrevChapter),"firstStart"in G&&t(29,Jt=G.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[5]&3&&t(42,Ci=(de==="video"&&N||de==="ads"&&q==="inactive")&&!W),i.$$.dirty[0]&1073741824&&Tn.set(Yt),i.$$.dirty[4]&1073743872&&(t(134,vn=un&&Pe!==e_.PlaybackState.PLAYING),un||t(135,un=!0)),i.$$.dirty[4]&545523456&&t(136,Qt=k&&!s&&!(Yi||Bi)&&!(vn&&!Z)),i.$$.dirty[1]&448|i.$$.dirty[4]&272897024&&fi.set((vn||s||T||oe||ne)&&!Qt&&(de==="video"||de==="ads")&&!W),i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&134217792&&t(43,Pn=ze.features.thumbTimer&&Rt&&de==="video"&&!P&&!W&&!Wi&&(ze.hideThumbTimerAfterTouch&&!L||!ze.hideThumbTimerAfterTouch)),i.$$.dirty[1]&128|i.$$.dirty[4]&68157440&&t(44,cn=de==="video"&&!se&&h),i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&34078848&&t(31,gi=Bt&&(ge&&U||!ge)&&f&&!W),i.$$.dirty[1]&33|i.$$.dirty[4]&25165824&&t(45,fn=j&&!(P||gi)&&!k),i.$$.dirty[0]&2|i.$$.dirty[4]&12591104&&(!T&&Qi&&!k&&Zt(ze.controls.hideTimeoutCursor),t(137,Qi=T)),i.$$.dirty[0]&1|i.$$.dirty[1]&24&&t(46,dn=Je&&F%180?g.height/g.width:1),i.$$.dirty[4]&2097152&&t(47,yn=w!==null),i.$$.dirty[1]&6|i.$$.dirty[4]&131072&&Ko(Qn,n,a),i.$$.dirty[1]&4|i.$$.dirty[4]&65536){let G=r;G&&Ir(G,n,pn)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&32768&&Ko(Qn,n,l),i.$$.dirty[1]&4|i.$$.dirty[4]&16384){let G=o;G&&Md(G,n,no)}},[Je,ze,$e,rt,He,J,je,ge,Ie,We,me,$,dt,mt,tt,ut,Pt,Tt,it,Et,Ht,oi,ri,Lt,wt,Xt,Mt,ui,Ti,Jt,Yt,gi,Qn,n,g,F,P,W,de,oe,Wt,Gi,Ci,Pn,cn,fn,dn,yn,Ni,_,C,le,Y,re,ce,qe,Ve,we,Re,Ue,Ge,x,fe,Ye,si,zt,Pi,Ct,Ei,Mi,ci,fi,he,pt,ai,qi,nn,Hi,Ui,ti,Ai,di,hi,bi,on,rn,hn,pi,vi,zi,xt,In,Wi,ln,sn,Vi,_i,Ki,ji,ki,Kt,Si,Qe,bn,an,Dn,Fn,te,yt,mn,Ji,mo,io,$i,Yn,ee,Co,Zo,Xo,po,Wr,pn,Jo,no,So,_e,Ze,st,vt,pe,Rt,Bt,Yi,Bi,vn,un,Qt,Qi,o,l,r,a,s,f,h,w,T,k,j,U,se,L,ne,Z,Pe,q,N,An,Io,$o,er,tr,ir,nr,or]}var nf=class extends B{constructor(e){super(),D(this,e,_8,p8,R,{store:125,uiConfig:1,title:2,thumbUrl:3,videoContainer:0,interactiveContainer:126,live:4,autoplay:5,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,logoTargetUrl:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:127,outerContainerRef:128,playerStarted:22,fullScreenTarget:129,showMiniTimer:130,showEndScreen:131,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},d8,[-1,-1,-1,-1,-1,-1,-1])}},n_=nf;var C_=require("@vkontakte/videoplayer-core"),fo=require("@vkontakte/videoplayer-shared");function g8(i){Se(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 o_(i){let e,t,n,o,l,r,a,s,u,f,_,g,y,h,C,w=z("doubletap_seek_step",{seconds:i[2].toFixed(0)})+"",F;return{c(){e=I("div"),n=H(),o=I("div"),l=I("div"),r=I("div"),s=H(),u=I("div"),_=H(),g=I("div"),h=H(),C=I("p"),F=De(w),c(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),c(r,"class",a="triangle "+i[0]+" svelte-nhq2ld"),c(u,"class",f="triangle "+i[0]+" svelte-nhq2ld"),c(g,"class",y="triangle "+i[0]+" svelte-nhq2ld"),c(l,"class","triangles-wrapper svelte-nhq2ld"),c(C,"class","step-caption svelte-nhq2ld"),c(o,"class","info svelte-nhq2ld")},m(T,k){v(T,e,k),v(T,n,k),v(T,o,k),p(o,l),p(l,r),p(l,s),p(l,u),p(l,_),p(l,g),p(o,h),p(o,C),p(C,F)},p(T,k){k&1&&t!==(t="semicircle "+T[0]+" svelte-nhq2ld")&&c(e,"class",t),k&1&&a!==(a="triangle "+T[0]+" svelte-nhq2ld")&&c(r,"class",a),k&1&&f!==(f="triangle "+T[0]+" svelte-nhq2ld")&&c(u,"class",f),k&1&&y!==(y="triangle "+T[0]+" svelte-nhq2ld")&&c(g,"class",y),k&4&&w!==(w=z("doubletap_seek_step",{seconds:T[2].toFixed(0)})+"")&&xe(F,w)},d(T){T&&(b(e),b(n),b(o))}}}function h8(i){let e,t,n,o,l=i[1]&&o_(i);return{c(){e=I("div"),l&&l.c(),c(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(r,a){v(r,e,a),l&&l.m(e,null),n||(o=Te(e,"click",_t(i[3]())),n=!0)},p(r,[a]){r[1]?l?l.p(r,a):(l=o_(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&1&&t!==(t="double-click-area "+r[0]+" svelte-nhq2ld")&&c(e,"class",t)},i:be,o:be,d(r){r&&b(e),l&&l.d(),n=!1,o()}}}function b8(i,e,t){let{side:n}=e,{seekStep:o=0}=e,{handleSingleFirstClick:l}=e,{handleSecondClick:r}=e,a=!1,s=0,u=0,f=o,_=()=>()=>{u+=1,t(2,f=o*(u-1)),u===1?l():(t(1,a=!0),r()),window.clearTimeout(s),s=window.setTimeout(()=>{u=0,t(1,a=!1)},300)};return Hn(()=>{window.clearTimeout(s)}),i.$$set=g=>{"side"in g&&t(0,n=g.side),"seekStep"in g&&t(4,o=g.seekStep),"handleSingleFirstClick"in g&&t(5,l=g.handleSingleFirstClick),"handleSecondClick"in g&&t(6,r=g.handleSecondClick)},[n,a,f,_,o,l,r]}var of=class extends B{constructor(e){super(),D(this,e,b8,h8,R,{side:0,seekStep:4,handleSingleFirstClick:5,handleSecondClick:6},g8)}},rf=of;function v8(i,e,t){let{playNextVideo:n}=e;return St(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var lf=class extends B{constructor(e){super(),D(this,e,v8,null,R,{playNextVideo:0})}},r_=lf;var{window:y8}=Vo;function k8(i){Se(i,"svelte-6x5lql",".player-wrapper.svelte-6x5lql{position:absolute;width:100%;height:100%}.player-wrapper.svelte-6x5lql .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-6x5lql{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-6x5lql,.video-container.svelte-6x5lql,.ads-container.svelte-6x5lql{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-6x5lql{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-6x5lql{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-6x5lql{transition:none}.ads-container.svelte-6x5lql{z-index:var(--ads-container-z-index);background:var(--black)}")}function l_(i){let e,t,n,o=i[45]&&s_(i),l=i[46]&&a_(i);return{c(){o&&o.c(),e=H(),l&&l.c(),t=et()},m(r,a){o&&o.m(r,a),v(r,e,a),l&&l.m(r,a),v(r,t,a),n=!0},p(r,a){r[45]?o?(o.p(r,a),a[1]&16384&&d(o,1)):(o=s_(r),o.c(),d(o,1),o.m(e.parentNode,e)):o&&(ae(),m(o,1,1,()=>{o=null}),ue()),r[46]?l?(l.p(r,a),a[1]&32768&&d(l,1)):(l=a_(r),l.c(),d(l,1),l.m(t.parentNode,t)):l&&(ae(),m(l,1,1,()=>{l=null}),ue())},i(r){n||(d(o),d(l),n=!0)},o(r){m(o),m(l),n=!1},d(r){r&&(b(e),b(t)),o&&o.d(r),l&&l.d(r)}}}function s_(i){let e,t;return e=new rf({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[133]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&2&&(l.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function a_(i){let e,t;return e=new rf({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[134]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&2&&(l.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function u_(i){let e,t;return e=new Vs({props:{thumbUrl:i[2],startTime:i[3]?.startTime}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[0]&8&&(l.startTime=n[3]?.startTime),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function c_(i){let e,t;return e=new Or({props:{kind:"recover",thumbUrl:i[2]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function f_(i){let e,t;return e=new Or({props:{kind:"record",thumbUrl:i[2]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function d_(i){let e,t,n;return t=new Ll({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","ads-container svelte-6x5lql"),K(e,"hidden",i[36]!=="ads")},m(o,l){v(o,e,l),E(t,e,null),n=!0},p(o,l){let r={};l[0]&128&&(r.adsSlotId=o[7]),l[0]&256&&(r.adsParams=o[8]),l[0]&512&&(r.adsPreviewParam=o[9]),l[0]&1024&&(r.duration=o[10]),t.$set(r),(!n||l[1]&32)&&K(e,"hidden",o[36]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function m_(i){let e,t;return e=new r_({props:{playNextVideo:i[22]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4194304&&(l.playNextVideo=n[22]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function p_(i){let e,t;return e=new Ps({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function __(i){let e,t,n;return t=new wl({props:{"aria-label":z("video360")}}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","spherical-video-icon svelte-6x5lql")},m(o,l){v(o,e,l),E(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function g_(i){let e,t;return e=new Ms({props:{thumbUrl:i[2],chromecastDeviceName:i[53]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[1]&4194304&&(l.chromecastDeviceName=n[53]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function h_(i){let e,t;return e=new Es({props:{shifted:i[30],captions:i[55],position:i[32],playerSize:i[33],isMobile:!0}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&1073741824&&(l.shifted=n[30]),o[1]&16777216&&(l.captions=n[55]),o[1]&2&&(l.position=n[32]),o[1]&4&&(l.playerSize=n[33]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function b_(i){let e,t,n,o,l;return t=new As({}),{c(){e=I("div"),A(t.$$.fragment)},m(r,a){v(r,e,a),E(t,e,null),n=!0,o||(l=Te(e,"click",_t(i[101])),o=!0)},p:be,i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){m(t.$$.fragment,r),n=!1},d(r){r&&b(e),M(t),o=!1,l()}}}function v_(i){let e,t,n;function o(r){i[135](r)}let l={bottomHidden:i[36]==="thumb"||i[36]==="LiveWaitingStart"||i[36]==="LiveWaitingRecover"||i[36]==="LiveWaitingRecord"||i[36]==="ads",showControls:i[30],bottomNoSmooth:i[47],isAds:i[36]==="ads",canRewindLive:i[5]&&i[56]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showNextPrevButtons:i[14],nextButtonActive:i[15],prevButtonActive:i[16],isOneVideoPlaylist:i[19],supportLink:i[20],customFullscreenSupported:i[41],playNextVideo:i[22],playPrevVideo:i[23],repeatPlaylist:i[24],toggleFullscreen:i[98],seekToInteractive:i[25],toggleGraph:i[26],playPrevChapter:i[27],onDisabledPlayPrevChapterClick:i[104],onDisabledSeekToInteractiveClick:i[105]};return i[39]!==void 0&&(l.controlsElementRef=i[39]),e=new Ts({props:l}),ve.push(()=>Oe(e,"controlsElementRef",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&32&&(s.bottomHidden=r[36]==="thumb"||r[36]==="LiveWaitingStart"||r[36]==="LiveWaitingRecover"||r[36]==="LiveWaitingRecord"||r[36]==="ads"),a[0]&1073741824&&(s.showControls=r[30]),a[1]&65536&&(s.bottomNoSmooth=r[47]),a[1]&32&&(s.isAds=r[36]==="ads"),a[0]&32|a[1]&33554432&&(s.canRewindLive=r[5]&&r[56]!==0),a[0]&2048&&(s.logoClickable=r[11]),a[0]&4096&&(s.logoHidden=r[12]),a[0]&8192&&(s.logoTargetUrl=r[13]),a[0]&16384&&(s.showNextPrevButtons=r[14]),a[0]&32768&&(s.nextButtonActive=r[15]),a[0]&65536&&(s.prevButtonActive=r[16]),a[0]&524288&&(s.isOneVideoPlaylist=r[19]),a[0]&1048576&&(s.supportLink=r[20]),a[1]&1024&&(s.customFullscreenSupported=r[41]),a[0]&4194304&&(s.playNextVideo=r[22]),a[0]&8388608&&(s.playPrevVideo=r[23]),a[0]&16777216&&(s.repeatPlaylist=r[24]),a[0]&33554432&&(s.seekToInteractive=r[25]),a[0]&67108864&&(s.toggleGraph=r[26]),a[0]&134217728&&(s.playPrevChapter=r[27]),!t&&a[1]&256&&(t=!0,s.controlsElementRef=r[39],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function y_(i){let e,t;return e=new Er({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function k_(i){let e,t;return e=new Ol({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function w_(i){let e,t,n=i[5]&&i[79]&&!i[50].has("TIMELINE"),o,l,r,a,s,u,f,_,g,y,h,C,w,F,T,k,P;e=new Ls({props:{hidden:i[36]!=="thumb"||i[35]||i[90]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let j=n&&l_(i),W=i[36]==="LiveWaitingStart"&&u_(i),U=i[36]==="LiveWaitingRecover"&&c_(i),se=i[36]==="LiveWaitingRecord"&&f_(i),de=i[6]&&i[21]&&d_(i),L=i[43]&&i[17]&&i[18]&&m_(i),ne=i[51]&&p_(i),oe=i[52]&&__(i),Z=i[37]&&g_(i),Pe=i[54].value!=="off"&&h_(i),q=i[35]&&b_(i),N=i[21]&&v_(i);w=new Rl({props:{isLive:i[57],isHidden:!i[42],isPlaying:i[48],position:i[32],duration:i[31]}});let le=i[40]&&y_(i),Y=i[58]&&k_(i);return{c(){A(e.$$.fragment),t=H(),j&&j.c(),o=H(),W&&W.c(),l=H(),U&&U.c(),r=H(),se&&se.c(),a=H(),de&&de.c(),s=H(),L&&L.c(),u=H(),ne&&ne.c(),f=H(),oe&&oe.c(),_=H(),Z&&Z.c(),g=H(),Pe&&Pe.c(),y=H(),q&&q.c(),h=H(),N&&N.c(),C=H(),A(w.$$.fragment),F=H(),le&&le.c(),T=H(),Y&&Y.c(),k=et()},m(re,ce){E(e,re,ce),v(re,t,ce),j&&j.m(re,ce),v(re,o,ce),W&&W.m(re,ce),v(re,l,ce),U&&U.m(re,ce),v(re,r,ce),se&&se.m(re,ce),v(re,a,ce),de&&de.m(re,ce),v(re,s,ce),L&&L.m(re,ce),v(re,u,ce),ne&&ne.m(re,ce),v(re,f,ce),oe&&oe.m(re,ce),v(re,_,ce),Z&&Z.m(re,ce),v(re,g,ce),Pe&&Pe.m(re,ce),v(re,y,ce),q&&q.m(re,ce),v(re,h,ce),N&&N.m(re,ce),v(re,C,ce),E(w,re,ce),v(re,F,ce),le&&le.m(re,ce),v(re,T,ce),Y&&Y.m(re,ce),v(re,k,ce),P=!0},p(re,ce){let qe={};ce[0]&16|ce[1]&48&&(qe.hidden=re[36]!=="thumb"||re[35]||re[90]&&re[4]),ce[0]&4&&(qe.thumbUrl=re[2]),ce[0]&268435456&&(qe.startVideo=re[28]),e.$set(qe),ce[0]&32|ce[1]&524288&&(n=re[5]&&re[79]&&!re[50].has("TIMELINE")),n?j?(j.p(re,ce),ce[0]&32|ce[1]&524288&&d(j,1)):(j=l_(re),j.c(),d(j,1),j.m(o.parentNode,o)):j&&(ae(),m(j,1,1,()=>{j=null}),ue()),re[36]==="LiveWaitingStart"?W?(W.p(re,ce),ce[1]&32&&d(W,1)):(W=u_(re),W.c(),d(W,1),W.m(l.parentNode,l)):W&&(ae(),m(W,1,1,()=>{W=null}),ue()),re[36]==="LiveWaitingRecover"?U?(U.p(re,ce),ce[1]&32&&d(U,1)):(U=c_(re),U.c(),d(U,1),U.m(r.parentNode,r)):U&&(ae(),m(U,1,1,()=>{U=null}),ue()),re[36]==="LiveWaitingRecord"?se?(se.p(re,ce),ce[1]&32&&d(se,1)):(se=f_(re),se.c(),d(se,1),se.m(a.parentNode,a)):se&&(ae(),m(se,1,1,()=>{se=null}),ue()),re[6]&&re[21]?de?(de.p(re,ce),ce[0]&2097216&&d(de,1)):(de=d_(re),de.c(),d(de,1),de.m(s.parentNode,s)):de&&(ae(),m(de,1,1,()=>{de=null}),ue()),re[43]&&re[17]&&re[18]?L?(L.p(re,ce),ce[0]&393216|ce[1]&4096&&d(L,1)):(L=m_(re),L.c(),d(L,1),L.m(u.parentNode,u)):L&&(ae(),m(L,1,1,()=>{L=null}),ue()),re[51]?ne?ce[1]&1048576&&d(ne,1):(ne=p_(re),ne.c(),d(ne,1),ne.m(f.parentNode,f)):ne&&(ae(),m(ne,1,1,()=>{ne=null}),ue()),re[52]?oe?ce[1]&2097152&&d(oe,1):(oe=__(re),oe.c(),d(oe,1),oe.m(_.parentNode,_)):oe&&(ae(),m(oe,1,1,()=>{oe=null}),ue()),re[37]?Z?(Z.p(re,ce),ce[1]&64&&d(Z,1)):(Z=g_(re),Z.c(),d(Z,1),Z.m(g.parentNode,g)):Z&&(ae(),m(Z,1,1,()=>{Z=null}),ue()),re[54].value!=="off"?Pe?(Pe.p(re,ce),ce[1]&8388608&&d(Pe,1)):(Pe=h_(re),Pe.c(),d(Pe,1),Pe.m(y.parentNode,y)):Pe&&(ae(),m(Pe,1,1,()=>{Pe=null}),ue()),re[35]?q?(q.p(re,ce),ce[1]&16&&d(q,1)):(q=b_(re),q.c(),d(q,1),q.m(h.parentNode,h)):q&&(ae(),m(q,1,1,()=>{q=null}),ue()),re[21]?N?(N.p(re,ce),ce[0]&2097152&&d(N,1)):(N=v_(re),N.c(),d(N,1),N.m(C.parentNode,C)):N&&(ae(),m(N,1,1,()=>{N=null}),ue());let Ve={};ce[1]&67108864&&(Ve.isLive=re[57]),ce[1]&2048&&(Ve.isHidden=!re[42]),ce[1]&131072&&(Ve.isPlaying=re[48]),ce[1]&2&&(Ve.position=re[32]),ce[1]&1&&(Ve.duration=re[31]),w.$set(Ve),re[40]?le?ce[1]&512&&d(le,1):(le=y_(re),le.c(),d(le,1),le.m(T.parentNode,T)):le&&(ae(),m(le,1,1,()=>{le=null}),ue()),re[58]?Y?ce[1]&134217728&&d(Y,1):(Y=k_(re),Y.c(),d(Y,1),Y.m(k.parentNode,k)):Y&&(ae(),m(Y,1,1,()=>{Y=null}),ue())},i(re){P||(d(e.$$.fragment,re),d(j),d(W),d(U),d(se),d(de),d(L),d(ne),d(oe),d(Z),d(Pe),d(q),d(N),d(w.$$.fragment,re),d(le),d(Y),P=!0)},o(re){m(e.$$.fragment,re),m(j),m(W),m(U),m(se),m(de),m(L),m(ne),m(oe),m(Z),m(Pe),m(q),m(N),m(w.$$.fragment,re),m(le),m(Y),P=!1},d(re){re&&(b(t),b(o),b(l),b(r),b(a),b(s),b(u),b(f),b(_),b(g),b(y),b(h),b(C),b(F),b(T),b(k)),M(e,re),j&&j.d(re),W&&W.d(re),U&&U.d(re),se&&se.d(re),de&&de.d(re),L&&L.d(re),ne&&ne.d(re),oe&&oe.d(re),Z&&Z.d(re),Pe&&Pe.d(re),q&&q.d(re),N&&N.d(re),M(w,re),le&&le.d(re),Y&&Y.d(re)}}}function w8(i){let e,t,n,o,l,r=i[49],a,s,u,f,_,g,y=w_(i);return{c(){e=I("div"),t=I("div"),n=I("div"),l=H(),y.c(),a=H(),s=I("div"),c(n,"class","video-container svelte-6x5lql"),c(n,"style",o=`transform: rotate(${i[34]}deg) scale(${i[44]})`),c(n,"data-testid","video-container"),c(n,"data-is-playing",i[48]),K(n,"fast-rotate",!i[1].isSmoothVideoRotate),c(t,"class","video-wrapper svelte-6x5lql"),K(t,"hidden",i[36]!=="video"),c(s,"class","overlay-container"),c(e,"class","player-wrapper svelte-6x5lql"),c(e,"role","region"),c(e,"aria-label",u=z("aria_label_video_player")),c(e,"tabindex","-1")},m(h,C){v(h,e,C),p(e,t),p(t,n),i[132](n),p(e,l),y.m(e,null),p(e,a),p(e,s),i[136](s),i[137](e),f=!0,_||(g=[Te(y8,"blur",i[99]),Te(t,"click",$t(i[100])),Te(e,"click",i[102],!0),Te(e,"focusin",i[103],!0)],_=!0)},p(h,C){(!f||C[1]&8200&&o!==(o=`transform: rotate(${h[34]}deg) scale(${h[44]})`))&&c(n,"style",o),(!f||C[1]&131072)&&c(n,"data-is-playing",h[48]),(!f||C[0]&2)&&K(n,"fast-rotate",!h[1].isSmoothVideoRotate),(!f||C[1]&32)&&K(t,"hidden",h[36]!=="video"),C[1]&262144&&R(r,r=h[49])?(ae(),m(y,1,1,be),ue(),y=w_(h),y.c(),d(y,1),y.m(e,a)):y.p(h,C)},i(h){f||(d(y),f=!0)},o(h){m(y),f=!1},d(h){h&&b(e),i[132](null),y.d(h),i[136](null),i[137](null),_=!1,ct(g)}}}function C8(i,e,t){let n,o,l,r,a,s,u,f,_,g,y,h,C,w,F,T,k,P,j,W,U,se,de,L,ne,oe,Z,Pe,q,N,le,Y,re,ce,qe,Ve,{store:we}=e,{uiConfig:Re}=e,{thumbUrl:Ue}=e,{videoContainer:Ge}=e,{interactiveContainer:x}=e,{live:fe}=e,{autoplay:Ye}=e,{canRewindLive:_e}=e,{showAds:ze}=e,{adsSlotId:$e=void 0}=e,{adsParams:rt=void 0}=e,{adsPreviewParam:Je=void 0}=e,{duration:Ze=void 0}=e,{logoClickable:He}=e,{logoHidden:J}=e,{logoTargetUrl:je=""}=e,{showNextPrevButtons:ge=!1}=e,{nextButtonActive:Ie=!1}=e,{prevButtonActive:We=!1}=e,{endScreenVideoTitle:me=void 0}=e,{endScreenVideoThumb:$=void 0}=e,{isOneVideoPlaylist:dt=!1}=e,{supportLink:mt}=e,{shadowRootContainer:tt=void 0}=e,{outerContainerRef:ut=void 0}=e,{showMiniTimer:Pt=!1}=e,{fullScreenTarget:Tt=void 0}=e,{playerStarted:it=!1}=e,{showEndScreen:Et=!0}=e,{playNextVideo:Ht=fo.noop}=e,{playPrevVideo:oi=fo.noop}=e,{repeatPlaylist:st=fo.noop}=e,{seekToInteractive:vt}=e,{toggleGraph:ri}=e,{playPrevChapter:pe}=e,{firstStart:Rt}=e,{seekTime:Bt}=e,Lt=we.getLogger().createComponentLog("Root component"),wt=we.interfaceLanguage$;O(i,wt,te=>t(49,Z=te));let Xt=we.state.playbackState$;O(i,Xt,te=>t(129,de=te));let Mt=we.ads.playbackState;O(i,Mt,te=>t(130,L=te));let ui=we.state.positionWithScrubbing$;O(i,ui,te=>t(32,a=te));let Ti=we.state.duration$;O(i,Ti,te=>t(31,r=te));let Jt=we.playerPhase;O(i,Jt,te=>t(36,j=te));let Ut=we.ui.isFullscreen;O(i,Ut,te=>t(143,u=te));let si=we.ui.controlsVisible;O(i,si,te=>t(30,o=te));let zt=we.ui.interactiveHideMobileControls;O(i,zt,te=>t(121,y=te));let Pi=we.ui.settingsMenuVisible;O(i,Pi,te=>t(119,n=te));let Ct=we.ui.scrubbingInProgress;O(i,Ct,te=>t(122,C=te));let Ei=we.ui.debugPanelVisible;O(i,Ei,te=>t(58,Ve=te));let Mi=we.state.isLoaderVisible;O(i,Mi,te=>t(131,ne=te));let ci=we.state.isEnded$;O(i,ci,te=>t(124,T=te));let fi=we.state.chromecastConnected$;O(i,fi,te=>t(37,W=te));let he=we.state.chromecastDeviceName$;O(i,he,te=>t(53,le=te));let pt=we.ads.postrollPassed;O(i,pt,te=>t(125,k=te));let ai=we.ui.mobileUnmuteButtonExpanded,qi=we.ui.mobileUnmuteButtonVisible,nn=we.state.isLive$;O(i,nn,te=>t(57,qe=te));let Hi=we.state.isPlaying$;O(i,Hi,te=>t(48,oe=te));let Ui=we.state.isActiveLive$;O(i,Ui,te=>t(120,s=te));let ti=we.state.isRewindableLive$,Ai=we.state.crashed$;O(i,Ai,te=>t(35,F=te));let di=we.webApi.annotationsApi,hi=we.webApi.pictureInPictureApi,bi=we.state.videoSize$;O(i,bi,te=>t(144,_=te));let gn=we.state.currentSubtitle$;O(i,gn,te=>t(54,Y=te));let mi=we.state.currentSubtitleCaptions$;O(i,mi,te=>t(55,re=te));let on=we.state.duration$;O(i,on,te=>t(56,ce=te));let rn=we.state.graphIsOpened$;O(i,rn,te=>t(128,se=te));let hn=we.ui.playerSize;O(i,hn,te=>t(33,f=te));let pi=we.ui.is3DVideo;O(i,pi,te=>t(51,q=te));let vi=we.ui.icon3DVideoVisible;O(i,vi,te=>t(52,N=te));let zi=we.ui.rotateAlpha;O(i,zi,te=>t(34,h=te));let xt=we.state.isInteractive,In=we.state.isInteractiveTime$;O(i,In,te=>t(123,w=te));let Wi=we.state.isInteractiveExpectation$;O(i,Wi,te=>t(127,U=te));let ln=we.state.hasInteractiveBranches,sn=we.ui.controls.disabledControls$;O(i,sn,te=>t(50,Pe=te));let Li=we.ui.touched;O(i,Li,te=>t(126,P=te));let Vi=we.ui.overlayContainer$,_i=we.state.loadedMetadata$;O(i,_i,te=>t(142,l=te));let Ki=we.actions.internal.closeSettingsMenu,Tn=we.callbacks?.onDisabledPlayPrevChapterClick,ji=we.callbacks?.onDisabledSeekToInteractiveClick,yi,ki,ii,Kt,Wt,Gi,wi,Ri=Fe(!1);O(i,Ri,te=>t(47,g=te));let lt,Ci=!1,Yt,Si=!1,xi,Qe=!0,bn,an,Yi=!1,Bi;hi?.setContext(Yr());let vn=te=>{clearTimeout(Kt),te&&(qi.set(!0),ai.set(!0),Kt=window.setTimeout(()=>{ai.set(!1)},Re.controls.collapseMobileUnmute),xt||Qt(Re.controls.hideTimeoutMobile))};we.setUiCallbacks({onStarted:vn});let un=()=>{window.clearTimeout(ii),t(114,Ci=!1),y&&zt.set(!1)},Qt=te=>{un(),t(114,Ci=!0),ii=window.setTimeout(()=>t(114,Ci=!1),te);let yt=te-100;lt=window.setTimeout(()=>{g&&Ri.set(!1)},yt>0?yt:te)},Pn=pi.subscribe(te=>{vi.set(te),te&&(window.clearTimeout(Wt),Wt=window.setTimeout(()=>vi.set(!1),Re.controls.hide360IconTimeout))}),cn=async()=>{let te=ho();if(te){let yt=el(),mn=yn(),Ji=fo.clientChecker.isSamsungBrowser&&yt===tt;te=yt===mn||Ji}if(te){Qt(Re.controls.hideTimeoutFullscreen);try{await hi?.remove()}catch(yt){Lt({message:String(yt)})}try{let yt=_?.width&&_?.height?_:f;await _d(yt)}catch(yt){Lt({message:String(yt)})}}Ut.set(te),we.getAdmanWrapper().setFullscreen(te),u?we.callbacks?.onFullscreenEnter?.():we.callbacks?.onFullscreenExit?.()},gi=te=>{let yt=te;hn.set({width:yt.target.width,height:yt.target.height})};St(()=>(Ml(cn),Re.features.annotationsInside&&di?.init(yi),zo(hi)&&(hi?.assignPlayerContainer(yi),hi?.registryExternalEventHandlers({resize:gi})),t(41,Qe=!fo.clientChecker.isIphoneOrOldIpad),x&&Ge.parentElement?.insertBefore(x,Ge.nextSibling),()=>{window.clearTimeout(ii),window.clearTimeout(lt),window.clearTimeout(Kt),window.clearTimeout(Wt),Pn(),hi?.dispose(),Al(cn)}));let fn=!0,Qi=!0,dn=te=>{let yt=a+(te==="forward"?1:-1)*Re.controls.seekStepMobile/1e3;yt<0?(t(45,fn=!1),yt=0):yt>=r&&(t(46,Qi=!1),yt=r),t(116,Si=!0),Bt(yt)},yn=()=>{let te=fo.clientChecker.isIOS||Re.features.fullscreenInternalTargetPlayerContainer||!ut?yi:ut,yt=te.getRootNode(),mn=yt instanceof ShadowRoot?yt.host:yt,Ji=Tt instanceof HTMLElement&&Tt.contains(mn);return Re.allowChangingFullscreenTarget&&Tt&&Ji?Tt:te},Dn=async()=>{if(ho())await El(document),Lt({message:"exit fullscreen"});else{if(Lt({message:"request fullscreen"}),fo.clientChecker.isIOS&&!l)return;await Pl(yn())}},Zi=()=>{Ki()},Di=()=>{if(n){Zi();return}if(!it){Rt(),Qt(Re.controls.hideTimeoutCursor);return}t(116,Si=!1),o?un():Qt(Re.controls.hideTimeoutMobile)},Ni=()=>{if(n){Zi();return}},En=()=>{Li.set(!0)},jn=()=>{xt||(Ri.set(!0),Qt(Re.controls.hideTimeoutCursor))},Gn=te=>{Tn&&(Tn(te),Qt(Re.controls.hideTimeoutMobile))},Zt=te=>{ji&&(ji(te),Qt(Re.controls.hideTimeoutMobile))};function xn(te){ve[te?"unshift":"push"](()=>{Ge=te,t(0,Ge)})}let Xi=()=>dn("backward"),Nn=()=>dn("forward");function On(te){ki=te,t(39,ki)}function Mn(te){ve[te?"unshift":"push"](()=>{wi=te,t(29,wi)})}function Fn(te){ve[te?"unshift":"push"](()=>{yi=te,t(38,yi)})}return i.$$set=te=>{"store"in te&&t(106,we=te.store),"uiConfig"in te&&t(1,Re=te.uiConfig),"thumbUrl"in te&&t(2,Ue=te.thumbUrl),"videoContainer"in te&&t(0,Ge=te.videoContainer),"interactiveContainer"in te&&t(107,x=te.interactiveContainer),"live"in te&&t(3,fe=te.live),"autoplay"in te&&t(4,Ye=te.autoplay),"canRewindLive"in te&&t(5,_e=te.canRewindLive),"showAds"in te&&t(6,ze=te.showAds),"adsSlotId"in te&&t(7,$e=te.adsSlotId),"adsParams"in te&&t(8,rt=te.adsParams),"adsPreviewParam"in te&&t(9,Je=te.adsPreviewParam),"duration"in te&&t(10,Ze=te.duration),"logoClickable"in te&&t(11,He=te.logoClickable),"logoHidden"in te&&t(12,J=te.logoHidden),"logoTargetUrl"in te&&t(13,je=te.logoTargetUrl),"showNextPrevButtons"in te&&t(14,ge=te.showNextPrevButtons),"nextButtonActive"in te&&t(15,Ie=te.nextButtonActive),"prevButtonActive"in te&&t(16,We=te.prevButtonActive),"endScreenVideoTitle"in te&&t(17,me=te.endScreenVideoTitle),"endScreenVideoThumb"in te&&t(18,$=te.endScreenVideoThumb),"isOneVideoPlaylist"in te&&t(19,dt=te.isOneVideoPlaylist),"supportLink"in te&&t(20,mt=te.supportLink),"shadowRootContainer"in te&&t(108,tt=te.shadowRootContainer),"outerContainerRef"in te&&t(109,ut=te.outerContainerRef),"showMiniTimer"in te&&t(110,Pt=te.showMiniTimer),"fullScreenTarget"in te&&t(111,Tt=te.fullScreenTarget),"playerStarted"in te&&t(21,it=te.playerStarted),"showEndScreen"in te&&t(112,Et=te.showEndScreen),"playNextVideo"in te&&t(22,Ht=te.playNextVideo),"playPrevVideo"in te&&t(23,oi=te.playPrevVideo),"repeatPlaylist"in te&&t(24,st=te.repeatPlaylist),"seekToInteractive"in te&&t(25,vt=te.seekToInteractive),"toggleGraph"in te&&t(26,ri=te.toggleGraph),"playPrevChapter"in te&&t(27,pe=te.playPrevChapter),"firstStart"in te&&t(28,Rt=te.firstStart),"seekTime"in te&&t(113,Bt=te.seekTime)},i.$$.update=()=>{i.$$.dirty[1]&48|i.$$.dirty[4]&192&&t(40,Gi=(j==="video"&&ne||j==="ads"&&L==="inactive")&&!F),i.$$.dirty[0]&536870912&&Vi.set(wi),i.$$.dirty[4]&32&&t(115,Yt=de!==C_.PlaybackState.PLAYING),i.$$.dirty[3]&274726912|i.$$.dirty[4]&25&&t(117,xi=se||y||!Ci&&(T&&!!ln||Yt&&U)),i.$$.dirty[1]&112|i.$$.dirty[3]&635437056&&si.set((Yt||n||C||W||Ci&&!Si)&&!xi&&j==="video"&&!F),i.$$.dirty[0]&1073741826|i.$$.dirty[1]&48|i.$$.dirty[3]&131072|i.$$.dirty[4]&4&&t(42,bn=Re.features.thumbTimer&&Pt&&j==="video"&&!o&&!F&&!xt&&(Re.hideThumbTimerAfterTouch&&!P||!Re.hideThumbTimerAfterTouch)),i.$$.dirty[0]&64|i.$$.dirty[1]&16|i.$$.dirty[3]&524288|i.$$.dirty[4]&3&&t(43,an=Et&&(ze&&k||!ze)&&T&&!F),i.$$.dirty[0]&2|i.$$.dirty[3]&1644167168&&(!C&&Yi&&!w&&Qt(Re.controls.hideTimeoutMobile),t(118,Yi=C)),i.$$.dirty[0]&1|i.$$.dirty[1]&12&&t(44,Bi=Ge&&h%180?f.height/f.width:1),i.$$.dirty[1]&3|i.$$.dirty[3]&134217728&&(t(45,fn=a>0),t(46,Qi=!s&&a<r))},[Ge,Re,Ue,fe,Ye,_e,ze,$e,rt,Je,Ze,He,J,je,ge,Ie,We,me,$,dt,mt,it,Ht,oi,st,vt,ri,pe,Rt,wi,o,r,a,f,h,F,j,W,yi,ki,Gi,Qe,bn,an,Bi,fn,Qi,g,oe,Z,Pe,q,N,le,Y,re,ce,qe,Ve,wt,Xt,Mt,ui,Ti,Jt,Ut,si,zt,Pi,Ct,Ei,Mi,ci,fi,he,pt,nn,Hi,Ui,ti,Ai,bi,gn,mi,on,rn,hn,pi,vi,zi,xt,In,Wi,sn,Li,_i,Ri,dn,Dn,Zi,Di,Ni,En,jn,Gn,Zt,we,x,tt,ut,Pt,Tt,Et,Bt,Ci,Yt,Si,xi,Yi,n,s,y,C,w,T,k,P,U,se,de,L,ne,xn,Xi,Nn,On,Mn,Fn]}var sf=class extends B{constructor(e){super(),D(this,e,C8,w8,R,{store:106,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:107,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,shadowRootContainer:108,outerContainerRef:109,showMiniTimer:110,fullScreenTarget:111,playerStarted:21,showEndScreen:112,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:113},k8,[-1,-1,-1,-1,-1,-1])}},S_=sf;function S8(i){Se(i,"svelte-6h4ol6",`.root.svelte-6h4ol6{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0, 0, 0, 0.40);--white-alpha-24:rgba(255, 255, 255, 0.24);--white-alpha-72:rgba(255, 255, 255, 0.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left:4px;--focused:var(--white);--focused-element-shadow:inset 0 0 0 2px var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0, 0, 0, 0.5);--big-play-hover-bg-color:rgba(0, 0, 0, 0.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:rgba(92, 156, 230, 1);--slider-height:5px;--slider-video-episode-gap:1.5px;--slider-radius:calc(var(--slider-height) / 2);--slider-handle-size:13px;--slider-bg:rgba(255, 255, 255, 0.4);--slider-loaded-bg:rgba(255, 255, 255, 0.4);--slider-filled-bg:var(--white);--slider-filled-active-live-bg:var(--red);--slider-filled-ads:rgba(103, 165, 235, 1);--slider-disabled-color:rgba(248, 248, 248, 0.31);--controls-gradient:linear-gradient(
|
|
35
35
|
180deg,
|
|
36
36
|
rgba(0, 0, 0, 0.00) 0%,
|
|
37
37
|
rgba(0, 0, 0, 0.01) 6.67%,
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
rgba(0, 0, 0, 0.96) 86.67%,
|
|
50
50
|
rgba(0, 0, 0, 0.99) 93.33%,
|
|
51
51
|
#000 100%
|
|
52
|
-
);--timeline-preview-shadow:rgba(0, 0, 0, 0.08);--timeline-preview-bg:rgba(34, 34, 34, 1);--settings-bg:rgba(0, 0, 0, 0.72);--settings-item-bg-hover:rgba(255, 255, 255, 0.08);--settings-radius:8px;--mobile-settings-bg:#2C2D2E;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--mobile-settings-menu-z-index:1;--thumb-timer-z-index:2;--debug-panel-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 E8(i){let e,t,n;function o(r){i[62](r)}let l={store:i[0],uiConfig:i[36],title:i[1],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[37],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[35],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[39],showEndScreen:i[32]};return i[34]!==void 0&&(l.videoContainer=i[34]),e=new r_({props:l}),be.push(()=>Fe(e,"videoContainer",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&2&&(s.title=r[1]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&16&&(s.playerStarted=r[35]),a[0]&67108864&&(s.playNextVideo=r[26]),a[0]&134217728&&(s.playPrevVideo=r[27]),a[0]&268435456&&(s.repeatPlaylist=r[28]),a[0]&536870912&&(s.seekToInteractive=r[29]),a[0]&1073741824&&(s.toggleGraph=r[30]),a[1]&1&&(s.playPrevChapter=r[31]),a[1]&2&&(s.showEndScreen=r[32]),!t&&a[1]&8&&(t=!0,s.videoContainer=r[34],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function M8(i){let e,t,n;function o(r){i[61](r)}let l={store:i[0],uiConfig:i[36],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[37],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[35],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[39],seekTime:i[33],showEndScreen:i[32]};return i[34]!==void 0&&(l.videoContainer=i[34]),e=new T_({props:l}),be.push(()=>Fe(e,"videoContainer",o)),{c(){L(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&16&&(s.playerStarted=r[35]),a[0]&67108864&&(s.playNextVideo=r[26]),a[0]&134217728&&(s.playPrevVideo=r[27]),a[0]&268435456&&(s.repeatPlaylist=r[28]),a[0]&536870912&&(s.seekToInteractive=r[29]),a[0]&1073741824&&(s.toggleGraph=r[30]),a[1]&1&&(s.playPrevChapter=r[31]),a[1]&2&&(s.showEndScreen=r[32]),!t&&a[1]&8&&(t=!0,s.videoContainer=r[34],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){A(e,r)}}}function A8(i){let e,t,n,o,l=[M8,E8],r=[];function a(s,u){return s[14]?0:1}return t=a(i,[-1,-1,-1]),n=r[t]=l[t](i),{c(){e=T("div"),n.c(),c(e,"class","root svelte-6h4ol6")},m(s,u){v(s,e,u),r[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?r[t].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),n=r[t],n?n.p(s,u):(n=r[t]=l[t](s),n.c()),d(n,1),n.m(e,null))},i(s){o||(d(n),o=!0)},o(s){m(n),o=!1},d(s){s&&b(e),r[t].d()}}}function L8(i,e,t){let n,{sources:o}=e,{store:l}=e,{microStoresRoot:r}=e,{videoConfig:a}=e,{uiConfig:s}=e,{title:u}=e,{thumbUrl:f}=e,{interactiveContainer:_}=e,{subtitles:g}=e,{live:y}=e,{preload:h}=e,{autoplay:C}=e,{volume:w=void 0}=e,{muted:F=void 0}=e,{fromTime:I}=e,{canRewindLive:k}=e,{showAds:P}=e,{adsSlotId:K=void 0}=e,{adsParams:z=void 0}=e,{adsPreviewParam:H=void 0}=e,{duration:se=void 0}=e,{logoClickable:me}=e,{logoHidden:R}=e,{isMobile:te}=e,{showNextPrevButtons:le=!1}=e,{nextButtonActive:ne=!1}=e,{prevButtonActive:_e=!1}=e,{endScreenVideoTitle:Y=void 0}=e,{endScreenVideoThumb:$=void 0}=e,{isOneVideoPlaylist:E=!1}=e,{supportLink:X}=e,{shadowRootContainer:oe=void 0}=e,{outerContainerRef:fe=void 0}=e,{fullScreenTarget:Re=void 0}=e,{failoverHosts:Ze=void 0}=e,{showMiniTimer:ce=!1}=e,{saveRate:Be}=e,{playNextVideo:De=In.noop}=e,{playPrevVideo:je=In.noop}=e,{repeatPlaylist:x=In.noop}=e,{seekToInteractive:de=In.noop}=e,{toggleGraph:Ge=In.noop}=e,{playPrevChapter:ve=In.noop}=e,{volumeMultiplier:He}=e,{showEndScreen:$e=!0}=e,{subscribers:st,stores:Xe}=r;Lf(s);let Ye=Nt(),Ke=s.logoLink,Z=l.ui.debugPanelVisible,Ue=l.ui.playerSize,Ce=l.state.isLive$;O(i,Ce,we=>t(64,n=we));let ze=l.state.isInteractive&&In.clientChecker.isAndroid,pe,J=null,ft=!1;l.getAdmanWrapper().init({switchFromAdsToVideo:l.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:l.actions.internal.switchFromVideoToAds,setMuted:l.actions.external.setMuted},l.ads,{isMobile:l.ui.isMobile,mobileUnmuteButtonVisible:l.ui.mobileUnmuteButtonVisible,vsid:l.vsid}),zf(l,Xe);let mt=(we=!1)=>{t(35,ft=!0),we?l.actions.external.firstStart(P):l.actions.internal.firstStart(P)};function et(we){let Tt=o||we;Tt&&l.initVideo({container:pe,sources:Tt,failoverHosts:Ze,subtitles:g,volumeMultiplier:He});let Et=In.safeStorage.get(Qr)==="true";Z.set(Et),I>0&&l.actions.external.seekTime(I);let jt=te?Ye.volumeDefault:w??wl()??Ye.volumeDefault,wt=F??id();if(l.actions.external.setVolume(jt),l.actions.external.setMuted(wt),l.getAdmanWrapper().setInitialVolume(wt?0:jt),Ye.features.trafficSaving){let Ut=od();Ut&&l.actions.internal.setTrafficSavingEnabled(Ut)}if(Ye.features.saveRate&&Be){let Ut=sd();Ut&&!n&&l.actions.internal.setPlaybackRate(Ut)}let Ht=$f(l.videoId);Ht&&l.actions.internal.setQuality(Ht),l.ui.isAutoplay.set(C),C?mt():h&&Ye.features.preload&&l.actions.internal.preload()}let lt=we=>{if(window.ResizeObserver){let Tt,Et;J=new ResizeObserver((0,In.throttleFn)(jt=>{let wt=jt[0];if(wt){if(wt.contentBoxSize){let Ht=Array.isArray(wt.contentBoxSize)?wt.contentBoxSize[0]:wt.contentBoxSize;Tt=Ht.inlineSize,Et=Ht.blockSize}else wt.contentRect&&(Tt=wt.contentRect.width,Et=wt.contentRect.height);Ue.set({width:Tt,height:Et})}},300)),J.observe(we)}Ue.set({width:we.clientWidth,height:we.clientHeight})},Ot=()=>{document.hidden&&l.actions.external.stop()};St(()=>{ze&&document.addEventListener("visibilitychange",Ot),lt(pe);let we=st.map(Et=>Et.init({store:l,microStores:Xe,config:a}));if(y?.status==="upcoming"){l.actions.internal.setLiveWaitingStart(!0);return}if(y?.status==="waiting"){l.actions.internal.setLiveWaitingRecover(!0);return}if((y?.status==="finished"||y?.status==="postlive")&&!Object.keys(o||[]).length){l.actions.internal.setLiveWaitingRecord(!0);return}return et(),()=>{ze&&document.removeEventListener("visibilitychange",Ot),J?.disconnect(),we.forEach(Et=>Et.unsubscribe()),l.destroy()}});function Ct(){ft?l.actions.external.play():mt(!0)}function it(){l.actions.external.pause()}function Ft(we){te||l.actions.external.setMuted(we)}function At(we){te||we>=0&&we<=1&&l.actions.external.setVolume(we)}function Qt(we){l.actions.internal.seekTime(we,P_.SeekAction.UNKNOWN)}function ct(we){l.actions.external.seekEpisodeStartTime(we)}function bt(){l.actions.external.returnFocusToEpisodes()}function Zt(we){l.actions.external.setPlaybackRate(we)}function Kt(we){l.actions.external.setAutoQualityLimits(we)}function Xt(we){pe=we,t(34,pe)}function si(we){pe=we,t(34,pe)}return i.$$set=we=>{"sources"in we&&t(40,o=we.sources),"store"in we&&t(0,l=we.store),"microStoresRoot"in we&&t(41,r=we.microStoresRoot),"videoConfig"in we&&t(42,a=we.videoConfig),"uiConfig"in we&&t(43,s=we.uiConfig),"title"in we&&t(1,u=we.title),"thumbUrl"in we&&t(2,f=we.thumbUrl),"interactiveContainer"in we&&t(3,_=we.interactiveContainer),"subtitles"in we&&t(44,g=we.subtitles),"live"in we&&t(4,y=we.live),"preload"in we&&t(45,h=we.preload),"autoplay"in we&&t(5,C=we.autoplay),"volume"in we&&t(46,w=we.volume),"muted"in we&&t(47,F=we.muted),"fromTime"in we&&t(48,I=we.fromTime),"canRewindLive"in we&&t(6,k=we.canRewindLive),"showAds"in we&&t(7,P=we.showAds),"adsSlotId"in we&&t(8,K=we.adsSlotId),"adsParams"in we&&t(9,z=we.adsParams),"adsPreviewParam"in we&&t(10,H=we.adsPreviewParam),"duration"in we&&t(11,se=we.duration),"logoClickable"in we&&t(12,me=we.logoClickable),"logoHidden"in we&&t(13,R=we.logoHidden),"isMobile"in we&&t(14,te=we.isMobile),"showNextPrevButtons"in we&&t(15,le=we.showNextPrevButtons),"nextButtonActive"in we&&t(16,ne=we.nextButtonActive),"prevButtonActive"in we&&t(17,_e=we.prevButtonActive),"endScreenVideoTitle"in we&&t(18,Y=we.endScreenVideoTitle),"endScreenVideoThumb"in we&&t(19,$=we.endScreenVideoThumb),"isOneVideoPlaylist"in we&&t(20,E=we.isOneVideoPlaylist),"supportLink"in we&&t(21,X=we.supportLink),"shadowRootContainer"in we&&t(22,oe=we.shadowRootContainer),"outerContainerRef"in we&&t(23,fe=we.outerContainerRef),"fullScreenTarget"in we&&t(24,Re=we.fullScreenTarget),"failoverHosts"in we&&t(49,Ze=we.failoverHosts),"showMiniTimer"in we&&t(25,ce=we.showMiniTimer),"saveRate"in we&&t(50,Be=we.saveRate),"playNextVideo"in we&&t(26,De=we.playNextVideo),"playPrevVideo"in we&&t(27,je=we.playPrevVideo),"repeatPlaylist"in we&&t(28,x=we.repeatPlaylist),"seekToInteractive"in we&&t(29,de=we.seekToInteractive),"toggleGraph"in we&&t(30,Ge=we.toggleGraph),"playPrevChapter"in we&&t(31,ve=we.playPrevChapter),"volumeMultiplier"in we&&t(51,He=we.volumeMultiplier),"showEndScreen"in we&&t(32,$e=we.showEndScreen)},i.$$.update=()=>{i.$$.dirty[0]&16385&&l.ui.isMobile.set(te)},[l,u,f,_,y,C,k,P,K,z,H,se,me,R,te,le,ne,_e,Y,$,E,X,oe,fe,Re,ce,De,je,x,de,Ge,ve,$e,Qt,pe,ft,Ye,Ke,Ce,mt,o,r,a,s,g,h,w,F,I,Ze,Be,He,et,Ct,it,Ft,At,ct,bt,Zt,Kt,Xt,si]}var af=class extends D{constructor(e){super(),N(this,e,L8,A8,B,{sources:40,store:0,microStoresRoot:41,videoConfig:42,uiConfig:43,title:1,thumbUrl:2,interactiveContainer:3,subtitles:44,live:4,preload:45,autoplay:5,volume:46,muted:47,fromTime:48,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,isMobile:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:22,outerContainerRef:23,fullScreenTarget:24,failoverHosts:49,showMiniTimer:25,saveRate:50,playNextVideo:26,playPrevVideo:27,repeatPlaylist:28,seekToInteractive:29,toggleGraph:30,playPrevChapter:31,volumeMultiplier:51,showEndScreen:32,initVideo:52,play:53,pause:54,setMuted:55,setVolume:56,seekTime:33,seekEpisodeStartTime:57,returnFocusToEpisodes:58,setPlaybackRate:59,setAutoQualityLimits:60},P8,[-1,-1,-1])}get initVideo(){return this.$$.ctx[52]}get play(){return this.$$.ctx[53]}get pause(){return this.$$.ctx[54]}get setMuted(){return this.$$.ctx[55]}get setVolume(){return this.$$.ctx[56]}get seekTime(){return this.$$.ctx[33]}get seekEpisodeStartTime(){return this.$$.ctx[57]}get returnFocusToEpisodes(){return this.$$.ctx[58]}get setPlaybackRate(){return this.$$.ctx[59]}get setAutoQualityLimits(){return this.$$.ctx[60]}},E_=af;function V8(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=re(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","currentColor"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Ve(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function R8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var uf=class extends D{constructor(e){super(),N(this,e,R8,V8,B,{})}},M_=uf;function B8(i){let e,t;return e=new M_({props:{style:i[0]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function D8(i,e,t){let n,{isWhite:o=!1}=e;return i.$$set=l=>{"isWhite"in l&&t(1,o=l.isWhite)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var cf=class extends D{constructor(e){super(),N(this,e,D8,B8,B,{isWhite:1})}},A_=cf;function N8(i){Ie(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 L_(i){let e,t;return{c(){e=T("div"),t=Ne(i[0]),c(e,"class","title svelte-1y9fytq")},m(n,o){v(n,e,o),p(e,t)},p(n,o){o&1&&xe(t,n[0])},d(n){n&&b(e)}}}function V_(i){let e,t;return e=new A_({props:{isWhite:!!i[1]}}),{c(){L(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isWhite=!!n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function O8(i){let e,t,n,o,l=i[0]&&L_(i),r=(!i[0]||!i[1])&&V_(i);return{c(){e=T("div"),l&&l.c(),t=q(),r&&r.c(),c(e,"class","playerStub svelte-1y9fytq"),c(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){v(a,e,s),l&&l.m(e,null),p(e,t),r&&r.m(e,null),o=!0},p(a,[s]){a[0]?l?l.p(a,s):(l=L_(a),l.c(),l.m(e,t)):l&&(l.d(1),l=null),!a[0]||!a[1]?r?(r.p(a,s),s&3&&d(r,1)):(r=V_(a),r.c(),d(r,1),r.m(e,null)):r&&(ae(),m(r,1,1,()=>{r=null}),ue()),(!o||s&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&c(e,"style",n)},i(a){o||(d(r),o=!0)},o(a){m(r),o=!1},d(a){a&&b(e),l&&l.d(),r&&r.d()}}}function F8(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=l=>{"title"in l&&t(0,n=l.title),"thumbUrl"in l&&t(1,o=l.thumbUrl)},[n,o]}var ff=class extends D{constructor(e){super(),N(this,e,F8,O8,B,{title:0,thumbUrl:1},N8)}},R_=ff;var qi=require("@vkontakte/videoplayer-shared"),FF=require("@vkontakte/videoplayer-core"),z_=require("@vkontakte/videoplayer-statistics");var Os=require("@vkontakte/videoplayer-shared"),Ns=class{constructor(){this.subscription=new Os.Subscription,this.logger=new Os.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:t="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:t,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",t=>null],["seekbackward",t=>null],["seekforward",t=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(let[t,n]of e)try{navigator.mediaSession.setActionHandler?.(t,n)}catch{throw new Error(`The media session action "${t}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||this.subscription.add(e.state.positionExact$.subscribe(t=>{let n=Je(e.state.currentPlaybackRate$),o=Je(e.state.duration$);if(!(!isFinite(t)||!isFinite(o)))try{navigator.mediaSession.setPositionState?.({position:t,playbackRate:n,duration:o})}catch{this.log({message:`MediaSession setPositionState can't call with position: ${t} and duration: ${o}`})}}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var Br=require("@vkontakte/videoplayer-shared");function q8(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,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 f=0;f<s.length;f+=1)u=re(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("path"),c(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"),c(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"),c(t,"fill","#fff"),ke(e,u)},m(f,_){v(f,e,_),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),l=!0},p(f,[_]){a&&a.p&&(!l||_&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],_,null):Le(f[1]),null),ke(e,u=Ve(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"},_&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function H8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=re(re({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var df=class extends D{constructor(e){super(),N(this,e,H8,q8,B,{})}},B_=df;function U8(i){Ie(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 z8(i){let e,t,n,o,l,r,a;return n=new B_({}),{c(){e=T("div"),t=T("div"),L(n.$$.fragment),o=q(),l=T("span"),r=Ne(i[0]),c(t,"class","dummy-image svelte-1pbsod4"),W(t,"desktop",!i[1]),c(l,"class","title svelte-1pbsod4"),c(e,"class","player-pip-dummy svelte-1pbsod4"),W(e,"is-pip-api",i[2])},m(s,u){v(s,e,u),p(e,t),M(n,t,null),p(e,o),p(e,l),p(l,r),a=!0},p(s,[u]){(!a||u&2)&&W(t,"desktop",!s[1]),(!a||u&1)&&xe(r,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){m(n.$$.fragment,s),a=!1},d(s){s&&b(e),A(n)}}}function W8(i,e,t){let n,o,l=ot(),r=!!l.webApi.pictureInPictureApi,a=l.interfaceLanguage$;O(i,a,f=>t(5,n=f));let s=l.ui.isMobile;O(i,s,f=>t(1,o=f));let u;return i.$$.update=()=>{i.$$.dirty&32&&t(0,u=n&&U("pip_dummy_title"))},[u,o,r,a,s,n]}var mf=class extends D{constructor(e){super(),N(this,e,W8,z8,B,{},U8)}},D_=mf;var K8=460,j8=280,nl=class{constructor(){this.info={isActive$:new Br.ValueSubject(!1),type:1}}isSupported(){let{isEmbed:e}=(0,Br.detectEmbed)();return"documentPictureInPicture"in window&&!Br.clientChecker.isYandex&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:K8,height:j8,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(r=>r.cssText).join(" ")).filter(Boolean).join(`
|
|
53
|
-
`),t=document.createElement("style");t.textContent=e;let n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(t),o.append(this.playerDomElement),this.playerDummyElement=new D_({target:this.playerParentShadowRoot,context:this.svelteContext}),this.pipWindow?.document.body.append(n),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",l=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{documentPictureInPicture.window?.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function N_(i){return i instanceof nl}var Fs=class{static getLatestSupportedVersion(){let e=new zo,t=new nl;if(t.isSupported())return t;if(e.isSupported())return e}};function qs(i,e){let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let o of t)n[o]=e[o]??i[o]??void 0;return n}var O_="Inner error. Unexpectedly root annotation container null reference exception",F_="Annotation with such name already exists",q_="Annotation with such name does not exist";var Dr=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Nr=require("@vkontakte/videoplayer-shared"),G8="1",x8=100,Hs=class{constructor(){this.annotations=new Map;this.subscriptions=new Nr.Subscription}init(e){this.rootAnnotationsContainer=e;let t=(0,Nr.throttleFn)(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},x8);this.subscriptions.add((0,Nr.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},t()})),this.mutationObserver=new MutationObserver(t),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,t){if(!this.rootAnnotationsContainer)throw new Dr(O_);if(this.annotations.has(e))throw new Dr(F_);t.style.zIndex=t.style.zIndex??G8,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 Dr(q_);return t}remove(e){let t=this.get(e);this.annotations.delete(e)&&t.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,t,n){let o=e.offsetTop,l=e.offsetLeft,r=e.offsetWidth,a=e.offsetHeight;return o<0||l<0||l+r>t||o+a>n}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Or=require("@vkontakte/videoplayer-shared"),eo=class{init({store:e,microStores:t,config:n}){return(0,Or.assertNonNullable)(e),(0,Or.assertNonNullable)(t),(0,Or.assertNonNullable)(n),this.subscription=new Or.Subscription,this.subscription}};var ol=class extends eo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...qe(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(l=>{this.state$.set(l?!0:null)})),n}};var rl=class extends eo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...qe(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{microStores:o,store:l}=t,{fakeIsPlaying$:r}=o,{isInteractiveExpectation$:a,isPlaying$:s}=l.state,{controlsVisible:u,isMobile:f}=l.ui,_=Je(f),g=()=>_&&Je(u);return n.add(u.subscribe(y=>{if(!_)return;let h=Je(r);Je(s)?this.state$.set(y):h!==null&&this.state$.set(!h||y)})),n.add(s.subscribe(y=>{this.state$.set(!y||g())})),n.add(r.subscribe(y=>{if(y===null)return;let h=Je(a);if(g()){this.state$.set(!0);return}h&&this.state$.set(!y)})),n}};var ll=class extends eo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=qe("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.state.interactiveEpisodes$.subscribe(l=>{l.length&&(l.every(r=>r.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};var H_=require("@vkontakte/videoplayer-shared"),pf=qe(!1),Us=null,sl=class extends eo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...pf,set:(t,n=!1)=>{t!==Je(pf)&&(this.clearTimeout(),pf.set(t),!t&&Us&&(Us=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(t){let n=super.init(t),{store:o,config:l}=t,{isInteractiveTime$:r,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(_=>{Je(r)&&_&&this.state$.set(!1)}));let f=l?.interactiveData||{tooltipHelpHintActive:!1};return n.add((0,H_.combine)({isPlaying$:a,isInteractiveTime$:r,interactiveTimeIndicator:u}).subscribe(({isPlaying$:_,isInteractiveTime$:g,interactiveTimeIndicator:y})=>{if(!(!_||!y?.isDisplayed)){if(!g)return this.state$.set(!1);f.tooltipHelpHintActive&&Us===null&&(Us=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),o.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var U_=()=>[ol,rl,ll,sl].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var Y8={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:qi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:(0,qi.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0},zs=class extends HTMLElement{constructor(){super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.createOneStat=(t,n={})=>{let{albumId:o,statPlace:l,statUserSalt:r,statTrackCode:a,refreshStatAuthToken:s,autoplay:u,isMobile:f,refDomain:_,deviceId:g,interactiveData:y}=qs(this.videoConfig,n),h=y?.projectInfo?.pid,C=this.interactiveController?.state.isReplay$.getValue()??!1;C&&(this.prevIsid=void 0);let{unitedVideoId:w,isClip:F=!1}=t;if(this.uiConfig.features.statistics&&w)return new z_.OneStat({movieId:w,albumId:o,place:l,trackCode:a,autoplay:(u&&!this.interactiveController)??!1,mobile:f,clip:F,refDomain:_,deviceId:g,...h&&(!this.isInited||C)&&{projectId:Number(h)}},{refreshAuthToken:s,userSalt:r,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})};this.logger=new qi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new qi.Subscription,this.graphMadePause=!1,window?.videoPlayerConfig?.debugLogs&&this.subscription.add(this.logger.log$.subscribe(t=>{console.log("%c player web component ","background:#77dd77;",`${t.component}`,t.message)}))}connectedCallback(){if(this.isInited)return;this.initPlayerRootContainers();let t=this.getAttribute("stub-title")??void 0,n=this.getAttribute("stub-thumb-url")??void 0;this.svelteStubComponent=new R_({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){this.annotationsApi?.destroy(),this.mediaSessionApi?.destroy(),this.svelteRootComponent?.$destroy(),this.svelteStubComponent?.$destroy(),this.subscription.unsubscribe(),this.unsubscribePlayerPhaseSubscription?.(),this.interactiveController?.destroy()}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(t){return this.store?.ui.controls.disabledControls$?.includes(t)||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){if(!this.videoConfig)return;let{albumId:l,statPlace:r,statAuthToken:a,preload:s,autoplay:u,volume:f,muted:_,fromTime:g,canRewindLive:y,supportLink:h,showAds:C,adsSlotId:w,adsParams:F={},adsPreviewParam:I,interfaceLanguage:k,isCyrillicRelatedInterface:P,logoClickable:K,logoHidden:z,isMobile:H,isAudioDisabled:se,isLiveCatchUpMode:me,fullScreenTarget:R,failoverHosts:te,canDownload:le,callbacks:ne,interactiveData:_e,showThumbTimer:Y,additionalButtons:$=[],additionalSettingsMenuItems:E=[],additionalContextMenuItems:X=[],repeat:oe,saveRate:fe,volumeMultiplier:Re,showEndScreen:Ze}=qs(this.videoConfig,n),{sources:ce,title:Be,thumbUrl:De,unitedVideoId:je,isClip:x=!1,duration:de,adsParams:Ge={},videoEpisodes:ve,previewThumbsData:He,subtitles:$e,live:st}=t,Xe={...F,...Ge},Ye=this.getNextVideoInfo(),Ke={sources:ce,title:Be,thumbUrl:De,subtitles:$e,unitedVideoId:je,isClip:x,live:st,albumId:l,statPlace:r,autoplay:u,muted:_,volume:f,fromTime:g,canRewindLive:y,showAds:C,adsSlotId:w,adsParams:Xe,adsPreviewParam:I,duration:de,logoClickable:K,logoHidden:z,isMobile:H,repeat:oe,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ye.nextVideoTitle,endScreenVideoThumb:Ye.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Z={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Ke)}`});let Ue=this.interactiveController?.state.statistics$.getValue(),Ce=Ue?.oneStat||this.createOneStat(t,n);Ce&&(this.statistics=new ws(Ce,Ue?.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Uo(this.uiConfig.sentry,{version:Fo,env:kl},{movieId:je,albumId:l,place:r,autoplay:(u&&!this.interactiveController)??!1,mobile:H,clip:x}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...Uo.getInstance()};let ze=!!_e,pe=[],J="tooltip_interactive_go_back_disabled_first";if(ze&&this.interactiveController){let et=this.interactiveController.state.isInitialChapter$.getValue(),lt=this.interactiveController.getHistoryState();et&&pe.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||pe.push("SEEK_TO_INTERACTIVE_BUTTON"),lt.hasPrevChapter$.getValue()||(pe.push("PLAY_PREV_CHAPTER_BUTTON"),et||(lt.isGoBackLimited$.getValue()?J="tooltip_interactive_go_back_disabled_limit":J="tooltip_interactive_go_back_disabled"))}let ft=()=>{this.isInited=!1,this.prevIsid=void 0;let et=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();ne.onReplayInteractiveVideo&&!et?ne.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=ip({player:o,interfaceLanguage:k,isCyrillicRelatedInterface:P,videoId:je,isClip:x,isLiveCatchUpMode:me,isAudioDisabled:se,statAuthToken:a,callbacks:ne,webApi:Z,videoEpisodes:ve,previewThumbsData:He,canDownload:le,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:pe,isInteractive:ze,saveRate:fe,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ft,playPrevChapterDisabledTooltip:J,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?$:[],additionalSettingsMenuItems:E??[],additionalContextMenuItems:X??[],looped:oe&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:mt}=this.microStoresRoot=U_();this.subscription.add(this.store.state.currentFormat$.subscribe(et=>ne?.onCurrentFormatChanged?.(et))),this.subscription.add(mt.interactiveControlsOpacity$.subscribe(et=>{et!==null&&this?.interactiveController?.setDisabledControls(et)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(et=>ne?.onThroughputEstimationChanged?.(et))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(et=>ne?.onTrafficSavingEnabledChanged?.(et))),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(et=>ne?.onCurrentPlaybackRateChanged?.(et))),this.subscription.add(this.store.state.volume$.subscribe(et=>ne?.onVolumeChange?.(et))),this.subscription.add(this.store.state.muted$.subscribe(et=>et?ne?.onMute?.():ne?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(et=>ne?.onVideoBitrateChanged?.(et))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(et=>{let lt=this.store?.ui.controls.disabledControls$;lt&&(et&&!lt.includes(Zr)&<.add(Zr),et||lt.remove(Zr))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async et=>{if(!qi.clientChecker.isSamsungBrowser||!et||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(et=>ne?.onVSIDChanged?.(et))),this.initMediaSession(),this.svelteRootComponent=new E_({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:ce,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Be,thumbUrl:De,subtitles:$e,live:st,preload:s,autoplay:u,muted:_,volume:f,fromTime:g,canRewindLive:y,supportLink:h,showAds:C,adsSlotId:w,adsParams:Xe,adsPreviewParam:I,duration:de,logoClickable:K,logoHidden:z,isMobile:H,failoverHosts:te,fullScreenTarget:R,saveRate:fe,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Y,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ye.nextVideoTitle,endScreenVideoThumb:Ye.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph(),volumeMultiplier:Re,showEndScreen:Ze}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.())}addPlayerInfoSubscriptions(){let t=this.store;if(!t)return;let n=this.videoConfig?.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(l=>n.onPlayerPhaseChanged?.(l))).add(t.state.playbackState$.subscribe(l=>n.onPlaybackStateChanged?.(l))).add(t.state.isLive$.subscribe(l=>n.onIsLiveChanged?.(l))).add(t.state.isActiveLive$.subscribe(l=>n.onIsActiveLiveChanged?.(l))).add(t.state.isAudioAvailable$.subscribe(l=>n.onIsAudioAvailableChanged?.(l))).add(t.state.currentQuality$.subscribe(l=>n.onCurrentQualityChanged?.(l))).add(t.state.availableQualities$.subscribe(l=>n.onAvailableQualitiesChanged?.(l.map(({value:r})=>r).filter(r=>r!=="auto")))).add(t.state.availableAudioStreams$.subscribe(l=>{l.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(t.ui.isPictureInPictureActive$.subscribe(l=>l?n.onPiPEnter?.():n.onPiPExit?.()));let o=n?.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(l=>o.onControlsVisibleChanged?.(l))).add(t.ui.isMobile.subscribe(l=>o.onIsMobileChanged?.(l))).add(t.ui.playerSize.subscribe(l=>o.onPlayerSizeChanged?.(l))).add(t.ui.controls.prevButton.subscribe(l=>o.onPrevButtonChanged?.(l))).add(t.ui.controls.playButton.subscribe(l=>o.onPlayButtonChanged?.(l))).add(t.ui.controls.replayButton.subscribe(l=>o.onReplayButtonChanged?.(l))).add(t.ui.controls.nextButton.subscribe(l=>o.onNextButtonChanged?.(l))).add(t.ui.controls.playPrevChapterButton.subscribe(l=>o.onPlayPrevChapterChanged?.(l))).add(t.ui.controls.seekToInteractiveButton.subscribe(l=>o.onSeekToInteractiveButtonChanged?.(l))).add(t.ui.controls.interactiveGraphButton.subscribe(l=>o.onGraphButtonChanged?.(l))).add(t.ui.controls.liveButton.subscribe(l=>o.onLiveButtonChanged?.(l))).add(t.ui.controls.time.subscribe(l=>o.onTimeUpdateChanged?.(l))).add(t.ui.controls.episodes.subscribe(l=>o.onEpisodesChanged?.(l))).add(t.ui.controls.subtitles.subscribe(l=>o.onSubtitlesChanged?.(l))).add(t.ui.controls.settings.subscribe(l=>o.onSettingsChanged?.(l))).add(t.ui.controls.fullscreen.subscribe(l=>o.onFullscreenChanged?.(l))).add(t.ui.controls.chromecast.subscribe(l=>o.onChromecastChanged?.(l))).add(t.ui.controls.pip.subscribe(l=>o.onPipChanged?.(l))).add(t.ui.controls.vkLogo.subscribe(l=>o.onVkLogoChanged?.(l))).add(t.ui.controls.interactiveTimeIndicator.subscribe(l=>o.onInteractiveTimeIndicatorChanged?.(l))).add(t.ui.controls.timeline.subscribe(l=>o.onTimelineChanged?.(l)))}playNextVideo(){if(!this.videoConfig)return;let t=!0;if(this.videoConfig.callbacks?.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch{this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){if(!this.videoConfig)return;let t=!0;if(this.videoConfig.callbacks?.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch{this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&(0,qi.isNonNullable)(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),this.svelteRootComponent?.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let t=this.interactiveController?.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}toggleGraph(){if(!this.isInited)return;let t=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:l}=t.state,{disabledControls$:r}=t.ui.controls,a=Je(n),s=Je(o);Je(l)?(l.set(!1),this.interactiveController?.toggleGraphView(!1),r.remove(Js),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",l.set(!0),this.interactiveController?.toggleGraphView(!0),r.add(Js),!a&&this.graphMadePause&&this.pause())}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:t,EVENT_NAMES:n,CustomError:o}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let l=this.store?.interfaceLanguage$,r=l?Je(l):this.videoConfig.interfaceLanguage,{projectInfo:a,initChapterId:s,historyApi:u,videoLoader:f}=this.videoConfig.interactiveData;this.interactiveController=new t({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:r,graph:this.uiConfig.features.interactiveGraph,projectInfo:a,initChapterId:s,historyApi:u,vkVideoLoader:f,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat});let{isInteractiveExpectation$:_,isSeekable$:g}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(g.subscribe(h=>{if(!this.isInited)return;let C=this.store;h?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(_.subscribe(h=>{this.store&&this.store.state.isInteractiveExpectation$.set(h)}));let y=!0;if(this.interactiveController.on(n.playerChanged,h=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...h.config,title:a?.title||h.config.title};let C=y?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(h.player,C),y&&(y=!1)}),this.interactiveController.on(n.interactives,({type:h,actionType:C})=>{if(!this.store)return;let w=_.getValue();if(h==="action-choice"&&C==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(yl)),h==="action-choice-canceled"){let F=Je(this.store.state.isPlaying$)||w;if(this.videoConfig?.isMobile&&F){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let h=this.interactiveController.getHistoryState();this.subscription.add(h.history$.subscribe(C=>{C.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(C)}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),this.videoConfig?.callbacks.onInteractiveTimeIndicatorClick?.()})),this.interactiveController.on(n.errors,h=>{this.log({message:h.toString()})})}catch(t){this.log({message:t.message})}}initPlayer(t,n={}){if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=qs(Y8,(0,qi.cloneDeepWith)(t,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=Af(n.ui??{}),this.coreConfig=n.core??{configName:[]},this.statisticsConfig=n.statistics??{},this.sentry={config:this.uiConfig.sentry??{}},(0,qi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.uiConfig.features.mediaSession??this.videoConfig.isMediaSessionEnabled??!0),(0,qi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.videoConfig.isMobile=this.uiConfig.isMobile??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=Fs.getLatestSupportedVersion():this.pictureInPictureApi=new zo),this.mediaSessionApi=this.uiConfig.features.mediaSession?new Ns:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Hs:void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.svelteStubComponent?.$destroy(),this.svelteRootComponent?.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0),t.interactiveData?this.initInteractives():this.createPlayer(t.videos[0]),N_(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();this.svelteRootComponent?.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(t=>{t==="video"?this.setupMediaSessionForVideo():t==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",l=>this.seekTime(l.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let t="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:t}),this.mediaSessionApi.updateActionHandlers(n),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}play(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("LiveWaitingStart")||this.store?.playerPhase.is("LiveWaitingRecover")||this.store?.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){if(!this.videoConfig)return;this.log({message:"stop"});let t=!!this.interactiveController;t&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0),this.svelteStubComponent?.$destroy(),this.mediaSessionApi?.destroy();let n=this.videoConfig.videos[0];n&&(this.svelteRootComponent?.$destroy(),t?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(n))}setMuted(t){this.log({message:`set muted, muted: ${t}`}),this.svelteRootComponent?.setMuted(t)}setVolume(t){this.log({message:`set volume, volume: ${t}`}),this.svelteRootComponent?.setVolume(t)}setRepeat(t){this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,this.svelteRootComponent?.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),this.svelteRootComponent?.seekTime(t))}seekEpisodeStartTime(t){this.log({message:`seek episode start time, time: ${t}`}),this.svelteRootComponent?.seekEpisodeStartTime(t)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(t){this.log({message:`set playback rate to: ${t}`}),this.svelteRootComponent?.setPlaybackRate(t)}setAutoQualityLimits(t){this.log({message:`set auto quality limitation. Max: ${t.max??"none"}. Min: ${t.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(t)}addLanguage(t){this.store?.actions.internal.addLanguage(t)}async setLanguage(t){await this.store?.actions.internal.setLanguage(t)}setLiveStart(t){this.log({message:"live started"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingStart(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(t,{autoplay:!0})}setLiveWaitingRecover(){this.log({message:"live waiting"}),this.store?.actions.internal.setLiveWaitingRecover(!0),this.store?.destroy()}setLiveWaitingRecord(){this.log({message:"post live"}),this.store?.actions.internal.setLiveWaitingRecord(!0),this.store?.destroy()}setLiveEnd(t){this.log({message:"live ended"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingRecord(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){return this.statistics?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(t){if(this.interactiveController&&this.store?.state.positionExact$){let{EVENT_NAMES:n}=await import("@vkontakte/videoplayer-interactive"),o=Je(this.store.state.positionExact$),r=Je(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.once(n.playerChanged,()=>{r&&o>=r.time?this.seekTime(r.time):this.seekTime(o),t?.()});let a=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:a.chapter.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(t,n=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(t,n){this.store?.actions.external.updateAdditionalSettingsItem(t,n)}addAdditionalSettingsItem(t){this.store?.actions.external.addAdditionalSettingsItem(t)}removeAdditionalSettingsItem(t){this.store?.actions.external.removeAdditionalSettingsItem(t)}updateAdditionalContextItem(t,n){this.store?.actions.external.updateAdditionalContextItem(t,n)}addAdditionalContextItem(t){this.store?.actions.external.addAdditionalContextItem(t)}removeAdditionalContextItem(t){this.store?.actions.external.removeAdditionalContextItem(t)}updateStatContext(t){this.statistics&&this.statistics.oneStat.updateContext(t)}};var Fr=require("@vkontakte/videoplayer-shared"),Ws=require("@vkontakte/videoplayer-core"),Q8=()=>{window.customElements.define("vk-video-player",zs)};
|
|
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;--mobile-settings-menu-z-index:1;--thumb-timer-z-index:2;--debug-panel-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 I8(i){let e,t,n;function o(r){i[62](r)}let l={store:i[0],uiConfig:i[36],title:i[1],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[37],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[35],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[39],showEndScreen:i[32]};return i[34]!==void 0&&(l.videoContainer=i[34]),e=new n_({props:l}),ve.push(()=>Oe(e,"videoContainer",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&2&&(s.title=r[1]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&16&&(s.playerStarted=r[35]),a[0]&67108864&&(s.playNextVideo=r[26]),a[0]&134217728&&(s.playPrevVideo=r[27]),a[0]&268435456&&(s.repeatPlaylist=r[28]),a[0]&536870912&&(s.seekToInteractive=r[29]),a[0]&1073741824&&(s.toggleGraph=r[30]),a[1]&1&&(s.playPrevChapter=r[31]),a[1]&2&&(s.showEndScreen=r[32]),!t&&a[1]&8&&(t=!0,s.videoContainer=r[34],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function T8(i){let e,t,n;function o(r){i[61](r)}let l={store:i[0],uiConfig:i[36],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[37],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[35],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[39],seekTime:i[33],showEndScreen:i[32]};return i[34]!==void 0&&(l.videoContainer=i[34]),e=new S_({props:l}),ve.push(()=>Oe(e,"videoContainer",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&16&&(s.playerStarted=r[35]),a[0]&67108864&&(s.playNextVideo=r[26]),a[0]&134217728&&(s.playPrevVideo=r[27]),a[0]&268435456&&(s.repeatPlaylist=r[28]),a[0]&536870912&&(s.seekToInteractive=r[29]),a[0]&1073741824&&(s.toggleGraph=r[30]),a[1]&1&&(s.playPrevChapter=r[31]),a[1]&2&&(s.showEndScreen=r[32]),!t&&a[1]&8&&(t=!0,s.videoContainer=r[34],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function P8(i){let e,t,n,o,l=[T8,I8],r=[];function a(s,u){return s[14]?0:1}return t=a(i,[-1,-1,-1]),n=r[t]=l[t](i),{c(){e=I("div"),n.c(),c(e,"class","root svelte-6h4ol6")},m(s,u){v(s,e,u),r[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?r[t].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),n=r[t],n?n.p(s,u):(n=r[t]=l[t](s),n.c()),d(n,1),n.m(e,null))},i(s){o||(d(n),o=!0)},o(s){m(n),o=!1},d(s){s&&b(e),r[t].d()}}}function E8(i,e,t){let n,{sources:o}=e,{store:l}=e,{microStoresRoot:r}=e,{videoConfig:a}=e,{uiConfig:s}=e,{title:u}=e,{thumbUrl:f}=e,{interactiveContainer:_}=e,{subtitles:g}=e,{live:y}=e,{preload:h}=e,{autoplay:C}=e,{volume:w=void 0}=e,{muted:F=void 0}=e,{fromTime:T}=e,{canRewindLive:k}=e,{showAds:P}=e,{adsSlotId:j=void 0}=e,{adsParams:W=void 0}=e,{adsPreviewParam:U=void 0}=e,{duration:se=void 0}=e,{logoClickable:de}=e,{logoHidden:L}=e,{isMobile:ne}=e,{showNextPrevButtons:oe=!1}=e,{nextButtonActive:Z=!1}=e,{prevButtonActive:Pe=!1}=e,{endScreenVideoTitle:q=void 0}=e,{endScreenVideoThumb:N=void 0}=e,{isOneVideoPlaylist:le=!1}=e,{supportLink:Y}=e,{shadowRootContainer:re=void 0}=e,{outerContainerRef:ce=void 0}=e,{fullScreenTarget:qe=void 0}=e,{failoverHosts:Ve=void 0}=e,{showMiniTimer:we=!1}=e,{saveRate:Re}=e,{playNextVideo:Ue=Kn.noop}=e,{playPrevVideo:Ge=Kn.noop}=e,{repeatPlaylist:x=Kn.noop}=e,{seekToInteractive:fe=Kn.noop}=e,{toggleGraph:Ye=Kn.noop}=e,{playPrevChapter:_e=Kn.noop}=e,{volumeMultiplier:ze}=e,{showEndScreen:$e=!0}=e,{subscribers:rt,stores:Je}=r;Lf(s);let Ze=qt(),He=s.logoLink,J=l.ui.debugPanelVisible,je=l.ui.playerSize,ge=l.state.isLive$;O(i,ge,pe=>t(64,n=pe));let Ie,We=null,me=!1;l.getAdmanWrapper().init({switchFromAdsToVideo:l.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:l.actions.internal.switchFromVideoToAds,setMuted:l.actions.external.setMuted},l.ads,{isMobile:l.ui.isMobile,mobileUnmuteButtonVisible:l.ui.mobileUnmuteButtonVisible,vsid:l.vsid}),zf(l,Je);let $=(pe=!1)=>{t(35,me=!0),pe?l.actions.external.firstStart(P):l.actions.internal.firstStart(P)};function dt(pe){let Rt=o||pe;Rt&&l.initVideo({container:Ie,sources:Rt,failoverHosts:Ve,subtitles:g,volumeMultiplier:ze});let Bt=Kn.safeStorage.get(Xr)==="true";J.set(Bt),T>0&&l.actions.external.seekTime(T);let Lt=ne?Ze.volumeDefault:w??yl()??Ze.volumeDefault,wt=F??nd();if(l.actions.external.setVolume(Lt),l.actions.external.setMuted(wt),l.getAdmanWrapper().setInitialVolume(wt?0:Lt),Ze.features.trafficSaving){let Mt=rd();Mt&&l.actions.internal.setTrafficSavingEnabled(Mt)}if(Ze.features.saveRate&&Re){let Mt=ad();Mt&&!n&&l.actions.internal.setPlaybackRate(Mt)}let Xt=ed(l.videoId);Xt&&l.actions.internal.setQuality(Xt),l.ui.isAutoplay.set(C),C?$():h&&Ze.features.preload&&l.actions.internal.preload()}let mt=pe=>{if(window.ResizeObserver){let Rt,Bt;We=new ResizeObserver((0,Kn.throttleFn)(Lt=>{let wt=Lt[0];if(wt){if(wt.contentBoxSize){let Xt=Array.isArray(wt.contentBoxSize)?wt.contentBoxSize[0]:wt.contentBoxSize;Rt=Xt.inlineSize,Bt=Xt.blockSize}else wt.contentRect&&(Rt=wt.contentRect.width,Bt=wt.contentRect.height);je.set({width:Rt,height:Bt})}},300)),We.observe(pe)}je.set({width:pe.clientWidth,height:pe.clientHeight})};St(()=>{mt(Ie);let pe=rt.map(Bt=>Bt.init({store:l,microStores:Je,config:a}));if(y?.status==="upcoming"){l.actions.internal.setLiveWaitingStart(!0);return}if(y?.status==="waiting"){l.actions.internal.setLiveWaitingRecover(!0);return}if((y?.status==="finished"||y?.status==="postlive")&&!Object.keys(o||[]).length){l.actions.internal.setLiveWaitingRecord(!0);return}return dt(),()=>{We?.disconnect(),pe.forEach(Bt=>Bt.unsubscribe()),l.destroy()}});function tt(){me?l.actions.external.play():$(!0)}function ut(){l.actions.external.pause()}function Pt(pe){ne||l.actions.external.setMuted(pe)}function Tt(pe){ne||pe>=0&&pe<=1&&l.actions.external.setVolume(pe)}function it(pe){l.actions.internal.seekTime(pe,I_.SeekAction.UNKNOWN)}function Et(pe){l.actions.external.seekEpisodeStartTime(pe)}function Ht(){l.actions.external.returnFocusToEpisodes()}function oi(pe){l.actions.external.setPlaybackRate(pe)}function st(pe){l.actions.external.setAutoQualityLimits(pe)}function vt(pe){Ie=pe,t(34,Ie)}function ri(pe){Ie=pe,t(34,Ie)}return i.$$set=pe=>{"sources"in pe&&t(40,o=pe.sources),"store"in pe&&t(0,l=pe.store),"microStoresRoot"in pe&&t(41,r=pe.microStoresRoot),"videoConfig"in pe&&t(42,a=pe.videoConfig),"uiConfig"in pe&&t(43,s=pe.uiConfig),"title"in pe&&t(1,u=pe.title),"thumbUrl"in pe&&t(2,f=pe.thumbUrl),"interactiveContainer"in pe&&t(3,_=pe.interactiveContainer),"subtitles"in pe&&t(44,g=pe.subtitles),"live"in pe&&t(4,y=pe.live),"preload"in pe&&t(45,h=pe.preload),"autoplay"in pe&&t(5,C=pe.autoplay),"volume"in pe&&t(46,w=pe.volume),"muted"in pe&&t(47,F=pe.muted),"fromTime"in pe&&t(48,T=pe.fromTime),"canRewindLive"in pe&&t(6,k=pe.canRewindLive),"showAds"in pe&&t(7,P=pe.showAds),"adsSlotId"in pe&&t(8,j=pe.adsSlotId),"adsParams"in pe&&t(9,W=pe.adsParams),"adsPreviewParam"in pe&&t(10,U=pe.adsPreviewParam),"duration"in pe&&t(11,se=pe.duration),"logoClickable"in pe&&t(12,de=pe.logoClickable),"logoHidden"in pe&&t(13,L=pe.logoHidden),"isMobile"in pe&&t(14,ne=pe.isMobile),"showNextPrevButtons"in pe&&t(15,oe=pe.showNextPrevButtons),"nextButtonActive"in pe&&t(16,Z=pe.nextButtonActive),"prevButtonActive"in pe&&t(17,Pe=pe.prevButtonActive),"endScreenVideoTitle"in pe&&t(18,q=pe.endScreenVideoTitle),"endScreenVideoThumb"in pe&&t(19,N=pe.endScreenVideoThumb),"isOneVideoPlaylist"in pe&&t(20,le=pe.isOneVideoPlaylist),"supportLink"in pe&&t(21,Y=pe.supportLink),"shadowRootContainer"in pe&&t(22,re=pe.shadowRootContainer),"outerContainerRef"in pe&&t(23,ce=pe.outerContainerRef),"fullScreenTarget"in pe&&t(24,qe=pe.fullScreenTarget),"failoverHosts"in pe&&t(49,Ve=pe.failoverHosts),"showMiniTimer"in pe&&t(25,we=pe.showMiniTimer),"saveRate"in pe&&t(50,Re=pe.saveRate),"playNextVideo"in pe&&t(26,Ue=pe.playNextVideo),"playPrevVideo"in pe&&t(27,Ge=pe.playPrevVideo),"repeatPlaylist"in pe&&t(28,x=pe.repeatPlaylist),"seekToInteractive"in pe&&t(29,fe=pe.seekToInteractive),"toggleGraph"in pe&&t(30,Ye=pe.toggleGraph),"playPrevChapter"in pe&&t(31,_e=pe.playPrevChapter),"volumeMultiplier"in pe&&t(51,ze=pe.volumeMultiplier),"showEndScreen"in pe&&t(32,$e=pe.showEndScreen)},i.$$.update=()=>{i.$$.dirty[0]&16385&&l.ui.isMobile.set(ne)},[l,u,f,_,y,C,k,P,j,W,U,se,de,L,ne,oe,Z,Pe,q,N,le,Y,re,ce,qe,we,Ue,Ge,x,fe,Ye,_e,$e,it,Ie,me,Ze,He,ge,$,o,r,a,s,g,h,w,F,T,Ve,Re,ze,dt,tt,ut,Pt,Tt,Et,Ht,oi,st,vt,ri]}var af=class extends B{constructor(e){super(),D(this,e,E8,P8,R,{sources:40,store:0,microStoresRoot:41,videoConfig:42,uiConfig:43,title:1,thumbUrl:2,interactiveContainer:3,subtitles:44,live:4,preload:45,autoplay:5,volume:46,muted:47,fromTime:48,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,isMobile:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:22,outerContainerRef:23,fullScreenTarget:24,failoverHosts:49,showMiniTimer:25,saveRate:50,playNextVideo:26,playPrevVideo:27,repeatPlaylist:28,seekToInteractive:29,toggleGraph:30,playPrevChapter:31,volumeMultiplier:51,showEndScreen:32,initVideo:52,play:53,pause:54,setMuted:55,setVolume:56,seekTime:33,seekEpisodeStartTime:57,returnFocusToEpisodes:58,setPlaybackRate:59,setAutoQualityLimits:60},S8,[-1,-1,-1])}get initVideo(){return this.$$.ctx[52]}get play(){return this.$$.ctx[53]}get pause(){return this.$$.ctx[54]}get setMuted(){return this.$$.ctx[55]}get setVolume(){return this.$$.ctx[56]}get seekTime(){return this.$$.ctx[33]}get seekEpisodeStartTime(){return this.$$.ctx[57]}get returnFocusToEpisodes(){return this.$$.ctx[58]}get setPlaybackRate(){return this.$$.ctx[59]}get setAutoQualityLimits(){return this.$$.ctx[60]}},T_=af;function M8(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{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<r.length;s+=1)a=ie(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","currentColor"),c(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){v(s,e,u),l&&l.m(e,null),p(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{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(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function A8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var uf=class extends B{constructor(e){super(),D(this,e,A8,M8,R,{})}},P_=uf;function L8(i){let e,t;return e=new P_({props:{style:i[0]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function V8(i,e,t){let n,{isWhite:o=!1}=e;return i.$$set=l=>{"isWhite"in l&&t(1,o=l.isWhite)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var cf=class extends B{constructor(e){super(),D(this,e,V8,L8,R,{isWhite:1})}},E_=cf;function R8(i){Se(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 M_(i){let e,t;return{c(){e=I("div"),t=De(i[0]),c(e,"class","title svelte-1y9fytq")},m(n,o){v(n,e,o),p(e,t)},p(n,o){o&1&&xe(t,n[0])},d(n){n&&b(e)}}}function A_(i){let e,t;return e=new E_({props:{isWhite:!!i[1]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isWhite=!!n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function B8(i){let e,t,n,o,l=i[0]&&M_(i),r=(!i[0]||!i[1])&&A_(i);return{c(){e=I("div"),l&&l.c(),t=H(),r&&r.c(),c(e,"class","playerStub svelte-1y9fytq"),c(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){v(a,e,s),l&&l.m(e,null),p(e,t),r&&r.m(e,null),o=!0},p(a,[s]){a[0]?l?l.p(a,s):(l=M_(a),l.c(),l.m(e,t)):l&&(l.d(1),l=null),!a[0]||!a[1]?r?(r.p(a,s),s&3&&d(r,1)):(r=A_(a),r.c(),d(r,1),r.m(e,null)):r&&(ae(),m(r,1,1,()=>{r=null}),ue()),(!o||s&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&c(e,"style",n)},i(a){o||(d(r),o=!0)},o(a){m(r),o=!1},d(a){a&&b(e),l&&l.d(),r&&r.d()}}}function D8(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=l=>{"title"in l&&t(0,n=l.title),"thumbUrl"in l&&t(1,o=l.thumbUrl)},[n,o]}var ff=class extends B{constructor(e){super(),D(this,e,D8,B8,R,{title:0,thumbUrl:1},R8)}},L_=ff;var Fi=require("@vkontakte/videoplayer-shared"),DF=require("@vkontakte/videoplayer-core"),H_=require("@vkontakte/videoplayer-statistics");var Ds=require("@vkontakte/videoplayer-shared"),Bs=class{constructor(){this.subscription=new Ds.Subscription,this.logger=new Ds.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:t="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:t,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",t=>null],["seekbackward",t=>null],["seekforward",t=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(let[t,n]of e)try{navigator.mediaSession.setActionHandler?.(t,n)}catch{throw new Error(`The media session action "${t}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||this.subscription.add(e.state.positionExact$.subscribe(t=>{let n=Xe(e.state.currentPlaybackRate$),o=Xe(e.state.duration$);if(!(!isFinite(t)||!isFinite(o)))try{navigator.mediaSession.setPositionState?.({position:t,playbackRate:n,duration:o})}catch{this.log({message:`MediaSession setPositionState can't call with position: ${t} and duration: ${o}`})}}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var Fr=require("@vkontakte/videoplayer-shared");function N8(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,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 f=0;f<s.length;f+=1)u=ie(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("path"),c(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"),c(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"),c(t,"fill","#fff"),ke(e,u)},m(f,_){v(f,e,_),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),l=!0},p(f,[_]){a&&a.p&&(!l||_&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],_,null):Le(f[1]),null),ke(e,u=Be(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"},_&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function O8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ie(ie({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var df=class extends B{constructor(e){super(),D(this,e,O8,N8,R,{})}},V_=df;function F8(i){Se(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 q8(i){let e,t,n,o,l,r,a;return n=new V_({}),{c(){e=I("div"),t=I("div"),A(n.$$.fragment),o=H(),l=I("span"),r=De(i[0]),c(t,"class","dummy-image svelte-1pbsod4"),K(t,"desktop",!i[1]),c(l,"class","title svelte-1pbsod4"),c(e,"class","player-pip-dummy svelte-1pbsod4"),K(e,"is-pip-api",i[2])},m(s,u){v(s,e,u),p(e,t),E(n,t,null),p(e,o),p(e,l),p(l,r),a=!0},p(s,[u]){(!a||u&2)&&K(t,"desktop",!s[1]),(!a||u&1)&&xe(r,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){m(n.$$.fragment,s),a=!1},d(s){s&&b(e),M(n)}}}function H8(i,e,t){let n,o,l=nt(),r=!!l.webApi.pictureInPictureApi,a=l.interfaceLanguage$;O(i,a,f=>t(5,n=f));let s=l.ui.isMobile;O(i,s,f=>t(1,o=f));let u;return i.$$.update=()=>{i.$$.dirty&32&&t(0,u=n&&z("pip_dummy_title"))},[u,o,r,a,s,n]}var mf=class extends B{constructor(e){super(),D(this,e,H8,q8,R,{},F8)}},R_=mf;var U8=460,z8=280,rl=class{constructor(){this.info={isActive$:new Fr.ValueSubject(!1),type:1}}isSupported(){let{isEmbed:e}=(0,Fr.detectEmbed)();return"documentPictureInPicture"in window&&!Fr.clientChecker.isYandex&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:U8,height:z8,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(r=>r.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 R_({target:this.playerParentShadowRoot,context:this.svelteContext}),this.pipWindow?.document.body.append(n),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",l=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{documentPictureInPicture.window?.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function B_(i){return i instanceof rl}var Ns=class{static getLatestSupportedVersion(){let e=new Uo,t=new rl;if(t.isSupported())return t;if(e.isSupported())return e}};function Os(i,e){let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let o of t)n[o]=e[o]??i[o]??void 0;return n}var D_="Inner error. Unexpectedly root annotation container null reference exception",N_="Annotation with such name already exists",O_="Annotation with such name does not exist";var qr=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Hr=require("@vkontakte/videoplayer-shared"),W8="1",K8=100,Fs=class{constructor(){this.annotations=new Map;this.subscriptions=new Hr.Subscription}init(e){this.rootAnnotationsContainer=e;let t=(0,Hr.throttleFn)(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},K8);this.subscriptions.add((0,Hr.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},t()})),this.mutationObserver=new MutationObserver(t),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,t){if(!this.rootAnnotationsContainer)throw new qr(D_);if(this.annotations.has(e))throw new qr(N_);t.style.zIndex=t.style.zIndex??W8,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(O_);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,l=e.offsetLeft,r=e.offsetWidth,a=e.offsetHeight;return o<0||l<0||l+r>t||o+a>n}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Ur=require("@vkontakte/videoplayer-shared"),$n=class{init({store:e,microStores:t,config:n}){return(0,Ur.assertNonNullable)(e),(0,Ur.assertNonNullable)(t),(0,Ur.assertNonNullable)(n),this.subscription=new Ur.Subscription,this.subscription}};var ll=class extends $n{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...Fe(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(l=>{this.state$.set(l?!0:null)})),n}};var sl=class extends $n{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...Fe(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{microStores:o,store:l}=t,{fakeIsPlaying$:r}=o,{isInteractiveExpectation$:a,isPlaying$:s}=l.state,{controlsVisible:u,isMobile:f}=l.ui,_=Xe(f),g=()=>_&&Xe(u);return n.add(u.subscribe(y=>{if(!_)return;let h=Xe(r);Xe(s)?this.state$.set(y):h!==null&&this.state$.set(!h||y)})),n.add(s.subscribe(y=>{this.state$.set(!y||g())})),n.add(r.subscribe(y=>{if(y===null)return;let h=Xe(a);if(g()){this.state$.set(!0);return}h&&this.state$.set(!y)})),n}};var al=class extends $n{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Fe("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.state.interactiveEpisodes$.subscribe(l=>{l.length&&(l.every(r=>r.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};var F_=require("@vkontakte/videoplayer-shared"),pf=Fe(!1),qs=null,ul=class extends $n{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...pf,set:(t,n=!1)=>{t!==Xe(pf)&&(this.clearTimeout(),pf.set(t),!t&&qs&&(qs=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(t){let n=super.init(t),{store:o,config:l}=t,{isInteractiveTime$:r,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(_=>{Xe(r)&&_&&this.state$.set(!1)}));let f=l?.interactiveData||{tooltipHelpHintActive:!1};return n.add((0,F_.combine)({isPlaying$:a,isInteractiveTime$:r,interactiveTimeIndicator:u}).subscribe(({isPlaying$:_,isInteractiveTime$:g,interactiveTimeIndicator:y})=>{if(!(!_||!y?.isDisplayed)){if(!g)return this.state$.set(!1);f.tooltipHelpHintActive&&qs===null&&(qs=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),o.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var q_=()=>[ll,sl,al,ul].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var j8={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Fi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:(0,Fi.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0},Hs=class extends HTMLElement{constructor(){super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.createOneStat=(t,n={})=>{let{albumId:o,statPlace:l,statUserSalt:r,statTrackCode:a,refreshStatAuthToken:s,autoplay:u,isMobile:f,refDomain:_,deviceId:g,interactiveData:y}=Os(this.videoConfig,n),h=y?.projectInfo?.pid,{unitedVideoId:C,isClip:w=!1}=t;if(this.uiConfig.features.statistics&&C)return new H_.OneStat({movieId:C,albumId:o,place:l,trackCode:a,autoplay:(u&&!this.interactiveController)??!1,mobile:f,clip:w,refDomain:_,deviceId:g,...h&&!this.isInited&&{projectId:Number(h)}},{refreshAuthToken:s,userSalt:r,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})};this.logger=new Fi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Fi.Subscription,this.graphMadePause=!1,window?.videoPlayerConfig?.debugLogs&&this.subscription.add(this.logger.log$.subscribe(t=>{console.log("%c player web component ","background:#77dd77;",`${t.component}`,t.message)}))}connectedCallback(){if(this.isInited)return;this.initPlayerRootContainers();let t=this.getAttribute("stub-title")??void 0,n=this.getAttribute("stub-thumb-url")??void 0;this.svelteStubComponent=new L_({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){this.annotationsApi?.destroy(),this.mediaSessionApi?.destroy(),this.svelteRootComponent?.$destroy(),this.svelteStubComponent?.$destroy(),this.subscription.unsubscribe(),this.unsubscribePlayerPhaseSubscription?.(),this.interactiveController?.destroy()}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(t){return this.store?.ui.controls.disabledControls$?.includes(t)||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){if(!this.videoConfig)return;let{albumId:l,statPlace:r,statAuthToken:a,preload:s,autoplay:u,volume:f,muted:_,fromTime:g,canRewindLive:y,supportLink:h,showAds:C,adsSlotId:w,adsParams:F={},adsPreviewParam:T,interfaceLanguage:k,isCyrillicRelatedInterface:P,logoClickable:j,logoHidden:W,isMobile:U,isAudioDisabled:se,isLiveCatchUpMode:de,fullScreenTarget:L,failoverHosts:ne,canDownload:oe,callbacks:Z,interactiveData:Pe,showThumbTimer:q,additionalButtons:N=[],additionalSettingsMenuItems:le=[],additionalContextMenuItems:Y=[],repeat:re,saveRate:ce,volumeMultiplier:qe,showEndScreen:Ve}=Os(this.videoConfig,n),{sources:we,title:Re,thumbUrl:Ue,unitedVideoId:Ge,isClip:x=!1,duration:fe,adsParams:Ye={},videoEpisodes:_e,previewThumbsData:ze,subtitles:$e,live:rt}=t,Je={...F,...Ye},Ze=this.getNextVideoInfo(),He={sources:we,title:Re,thumbUrl:Ue,subtitles:$e,unitedVideoId:Ge,isClip:x,live:rt,albumId:l,statPlace:r,autoplay:u,muted:_,volume:f,fromTime:g,canRewindLive:y,showAds:C,adsSlotId:w,adsParams:Je,adsPreviewParam:T,duration:fe,logoClickable:j,logoHidden:W,isMobile:U,repeat:re,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ze.nextVideoTitle,endScreenVideoThumb:Ze.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},J={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(He)}`});let je=this.interactiveController?.state.statistics$.getValue(),ge=je?.oneStat||this.createOneStat(t,n);ge&&(this.statistics=new ys(ge,je?.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Ho(this.uiConfig.sentry,{version:Oo,env:bl},{movieId:Ge,albumId:l,place:r,autoplay:(u&&!this.interactiveController)??!1,mobile:U,clip:x}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...Ho.getInstance()};let We=!!Pe,me=[],$="tooltip_interactive_go_back_disabled_first";if(We&&this.interactiveController){let tt=this.interactiveController.state.isInitialChapter$.getValue(),ut=this.interactiveController.getHistoryState();tt&&me.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||me.push("SEEK_TO_INTERACTIVE_BUTTON"),ut.hasPrevChapter$.getValue()||(me.push("PLAY_PREV_CHAPTER_BUTTON"),tt||(ut.isGoBackLimited$.getValue()?$="tooltip_interactive_go_back_disabled_limit":$="tooltip_interactive_go_back_disabled"))}let dt=()=>{this.isInited=!1,this.prevIsid=void 0;let tt=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();Z.onReplayInteractiveVideo&&!tt?Z.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=np({player:o,interfaceLanguage:k,isCyrillicRelatedInterface:P,videoId:Ge,isClip:x,isLiveCatchUpMode:de,isAudioDisabled:se,statAuthToken:a,callbacks:Z,webApi:J,videoEpisodes:_e,previewThumbsData:ze,canDownload:oe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:me,isInteractive:We,saveRate:ce,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,replayInteractive:dt,playPrevChapterDisabledTooltip:$,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?N:[],additionalSettingsMenuItems:le??[],additionalContextMenuItems:Y??[],looped:re&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:mt}=this.microStoresRoot=q_();this.subscription.add(this.store.state.currentFormat$.subscribe(tt=>Z?.onCurrentFormatChanged?.(tt))),this.subscription.add(mt.interactiveControlsOpacity$.subscribe(tt=>{tt!==null&&this?.interactiveController?.setDisabledControls(tt)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(tt=>Z?.onThroughputEstimationChanged?.(tt))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(tt=>Z?.onTrafficSavingEnabledChanged?.(tt))),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(tt=>Z?.onCurrentPlaybackRateChanged?.(tt))),this.subscription.add(this.store.state.volume$.subscribe(tt=>Z?.onVolumeChange?.(tt))),this.subscription.add(this.store.state.muted$.subscribe(tt=>tt?Z?.onMute?.():Z?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(tt=>Z?.onVideoBitrateChanged?.(tt))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(tt=>{let ut=this.store?.ui.controls.disabledControls$;ut&&(tt&&!ut.includes(Jr)&&ut.add(Jr),tt||ut.remove(Jr))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async tt=>{if(!Fi.clientChecker.isSamsungBrowser||!tt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(tt=>Z?.onVSIDChanged?.(tt))),this.initMediaSession(),this.svelteRootComponent=new T_({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:we,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Re,thumbUrl:Ue,subtitles:$e,live:rt,preload:s,autoplay:u,muted:_,volume:f,fromTime:g,canRewindLive:y,supportLink:h,showAds:C,adsSlotId:w,adsParams:Je,adsPreviewParam:T,duration:fe,logoClickable:j,logoHidden:W,isMobile:U,failoverHosts:ne,fullScreenTarget:L,saveRate:ce,shadowRootContainer:this.shadowRootContainer,showMiniTimer:q,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ze.nextVideoTitle,endScreenVideoThumb:Ze.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph(),volumeMultiplier:qe,showEndScreen:Ve}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.())}addPlayerInfoSubscriptions(){let t=this.store;if(!t)return;let n=this.videoConfig?.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(l=>n.onPlayerPhaseChanged?.(l))).add(t.state.playbackState$.subscribe(l=>n.onPlaybackStateChanged?.(l))).add(t.state.isLive$.subscribe(l=>n.onIsLiveChanged?.(l))).add(t.state.isActiveLive$.subscribe(l=>n.onIsActiveLiveChanged?.(l))).add(t.state.isAudioAvailable$.subscribe(l=>n.onIsAudioAvailableChanged?.(l))).add(t.state.currentQuality$.subscribe(l=>n.onCurrentQualityChanged?.(l))).add(t.state.availableQualities$.subscribe(l=>n.onAvailableQualitiesChanged?.(l.map(({value:r})=>r).filter(r=>r!=="auto")))).add(t.state.availableAudioStreams$.subscribe(l=>{l.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(t.ui.isPictureInPictureActive$.subscribe(l=>l?n.onPiPEnter?.():n.onPiPExit?.()));let o=n?.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(l=>o.onControlsVisibleChanged?.(l))).add(t.ui.isMobile.subscribe(l=>o.onIsMobileChanged?.(l))).add(t.ui.playerSize.subscribe(l=>o.onPlayerSizeChanged?.(l))).add(t.ui.controls.prevButton.subscribe(l=>o.onPrevButtonChanged?.(l))).add(t.ui.controls.playButton.subscribe(l=>o.onPlayButtonChanged?.(l))).add(t.ui.controls.replayButton.subscribe(l=>o.onReplayButtonChanged?.(l))).add(t.ui.controls.nextButton.subscribe(l=>o.onNextButtonChanged?.(l))).add(t.ui.controls.playPrevChapterButton.subscribe(l=>o.onPlayPrevChapterChanged?.(l))).add(t.ui.controls.seekToInteractiveButton.subscribe(l=>o.onSeekToInteractiveButtonChanged?.(l))).add(t.ui.controls.interactiveGraphButton.subscribe(l=>o.onGraphButtonChanged?.(l))).add(t.ui.controls.liveButton.subscribe(l=>o.onLiveButtonChanged?.(l))).add(t.ui.controls.time.subscribe(l=>o.onTimeUpdateChanged?.(l))).add(t.ui.controls.episodes.subscribe(l=>o.onEpisodesChanged?.(l))).add(t.ui.controls.subtitles.subscribe(l=>o.onSubtitlesChanged?.(l))).add(t.ui.controls.settings.subscribe(l=>o.onSettingsChanged?.(l))).add(t.ui.controls.fullscreen.subscribe(l=>o.onFullscreenChanged?.(l))).add(t.ui.controls.chromecast.subscribe(l=>o.onChromecastChanged?.(l))).add(t.ui.controls.pip.subscribe(l=>o.onPipChanged?.(l))).add(t.ui.controls.vkLogo.subscribe(l=>o.onVkLogoChanged?.(l))).add(t.ui.controls.interactiveTimeIndicator.subscribe(l=>o.onInteractiveTimeIndicatorChanged?.(l))).add(t.ui.controls.timeline.subscribe(l=>o.onTimelineChanged?.(l)))}playNextVideo(){if(!this.videoConfig)return;let t=!0;if(this.videoConfig.callbacks?.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch{this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){if(!this.videoConfig)return;let t=!0;if(this.videoConfig.callbacks?.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch{this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&(0,Fi.isNonNullable)(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),this.svelteRootComponent?.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let t=this.interactiveController?.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}toggleGraph(){if(!this.isInited)return;let t=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:l}=t.state,{disabledControls$:r}=t.ui.controls,a=Xe(n),s=Xe(o);Xe(l)?(l.set(!1),this.interactiveController?.toggleGraphView(!1),r.remove(Js),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",l.set(!0),this.interactiveController?.toggleGraphView(!0),r.add(Js),!a&&this.graphMadePause&&this.pause())}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:t,EVENT_NAMES:n,CustomError:o}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let l=this.store?.interfaceLanguage$,r=l?Xe(l):this.videoConfig.interfaceLanguage,{projectInfo:a,initChapterId:s,historyApi:u,videoLoader:f}=this.videoConfig.interactiveData;this.interactiveController=new t({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:r,graph:this.uiConfig.features.interactiveGraph,projectInfo:a,initChapterId:s,historyApi:u,vkVideoLoader:f,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat});let{isInteractiveExpectation$:_,isSeekable$:g}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(g.subscribe(h=>{if(!this.isInited)return;let C=this.store;h?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(_.subscribe(h=>{this.store&&this.store.state.isInteractiveExpectation$.set(h)}));let y=!0;if(this.interactiveController.on(n.playerChanged,h=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...h.config,title:a?.title||h.config.title};let C=y?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(h.player,C),y&&(y=!1)}),this.interactiveController.on(n.interactives,({type:h,actionType:C})=>{if(!this.store)return;let w=_.getValue();if(h==="action-choice"&&C==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(hl)),h==="action-choice-canceled"){let F=Xe(this.store.state.isPlaying$)||w;if(this.videoConfig?.isMobile&&F){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let h=this.interactiveController.getHistoryState();this.subscription.add(h.history$.subscribe(C=>{C.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(C)}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),this.videoConfig?.callbacks.onInteractiveTimeIndicatorClick?.()})),this.interactiveController.on(n.errors,h=>{this.log({message:h.toString()})})}catch(t){this.log({message:t.message})}}initPlayer(t,n={}){if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=Os(j8,(0,Fi.cloneDeepWith)(t,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=Af(n.ui??{}),this.coreConfig=n.core??{configName:[]},this.statisticsConfig=n.statistics??{},this.sentry={config:this.uiConfig.sentry??{}},(0,Fi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.uiConfig.features.mediaSession??this.videoConfig.isMediaSessionEnabled??!0),(0,Fi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.videoConfig.isMobile=this.uiConfig.isMobile??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=Ns.getLatestSupportedVersion():this.pictureInPictureApi=new Uo),this.mediaSessionApi=this.uiConfig.features.mediaSession?new Bs:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Fs:void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.svelteStubComponent?.$destroy(),this.svelteRootComponent?.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0),t.interactiveData?this.initInteractives():this.createPlayer(t.videos[0]),B_(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();this.svelteRootComponent?.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(t=>{t==="video"?this.setupMediaSessionForVideo():t==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",l=>this.seekTime(l.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let t="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:t}),this.mediaSessionApi.updateActionHandlers(n),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}play(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("LiveWaitingStart")||this.store?.playerPhase.is("LiveWaitingRecover")||this.store?.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){if(!this.videoConfig)return;this.log({message:"stop"}),this.svelteStubComponent?.$destroy(),this.mediaSessionApi?.destroy();let t=this.videoConfig.videos[0];t&&(this.svelteRootComponent?.$destroy(),this.createPlayer(t))}setMuted(t){this.log({message:`set muted, muted: ${t}`}),this.svelteRootComponent?.setMuted(t)}setVolume(t){this.log({message:`set volume, volume: ${t}`}),this.svelteRootComponent?.setVolume(t)}setRepeat(t){this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,this.svelteRootComponent?.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),this.svelteRootComponent?.seekTime(t))}seekEpisodeStartTime(t){this.log({message:`seek episode start time, time: ${t}`}),this.svelteRootComponent?.seekEpisodeStartTime(t)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(t){this.log({message:`set playback rate to: ${t}`}),this.svelteRootComponent?.setPlaybackRate(t)}setAutoQualityLimits(t){this.log({message:`set auto quality limitation. Max: ${t.max??"none"}. Min: ${t.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(t)}addLanguage(t){this.store?.actions.internal.addLanguage(t)}async setLanguage(t){await this.store?.actions.internal.setLanguage(t)}setLiveStart(t){this.log({message:"live started"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingStart(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(t,{autoplay:!0})}setLiveWaitingRecover(){this.log({message:"live waiting"}),this.store?.actions.internal.setLiveWaitingRecover(!0),this.store?.destroy()}setLiveWaitingRecord(){this.log({message:"post live"}),this.store?.actions.internal.setLiveWaitingRecord(!0),this.store?.destroy()}setLiveEnd(t){this.log({message:"live ended"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingRecord(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){return this.statistics?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(t){if(this.interactiveController&&this.store?.state.positionExact$){let{EVENT_NAMES:n}=await import("@vkontakte/videoplayer-interactive"),o=Xe(this.store.state.positionExact$),r=Xe(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.once(n.playerChanged,()=>{r&&o>=r.time?this.seekTime(r.time):this.seekTime(o),t?.()});let a=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:a.chapter.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(t,n=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(t,n){this.store?.actions.external.updateAdditionalSettingsItem(t,n)}addAdditionalSettingsItem(t){this.store?.actions.external.addAdditionalSettingsItem(t)}removeAdditionalSettingsItem(t){this.store?.actions.external.removeAdditionalSettingsItem(t)}updateAdditionalContextItem(t,n){this.store?.actions.external.updateAdditionalContextItem(t,n)}addAdditionalContextItem(t){this.store?.actions.external.addAdditionalContextItem(t)}removeAdditionalContextItem(t){this.store?.actions.external.removeAdditionalContextItem(t)}updateStatContext(t){this.statistics&&this.statistics.oneStat.updateContext(t)}};var zr=require("@vkontakte/videoplayer-shared"),Us=require("@vkontakte/videoplayer-core"),G8=()=>{window.customElements.define("vk-video-player",Hs)};
|