@vkontakte/videoplayer 1.1.49-dev.a22b280e.0 → 1.1.49-dev.fad44c86.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 +17 -17
- package/esnext.esm.js +17 -17
- package/evergreen.esm.js +17 -17
- package/package.json +5 -5
- package/types/VKVideoPlayer/index.d.ts +6 -3
- package/types/components/Ads/admanWrapper.d.ts +1 -1
- package/types/store/index.d.ts +19 -5
- package/types/translation/types.d.ts +1 -1
- package/types/types/index.d.ts +13 -2
- package/types/utils/elementHelpers.d.ts +4 -0
package/es2015.esm.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.49-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.49-dev.fad44c86.0
|
|
3
|
+
* Thu, 07 Nov 2024 16:07:34 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-49/doc/
|
|
5
5
|
*/
|
|
6
|
-
var G_=Object.defineProperty,Y_=Object.defineProperties;var Q_=Object.getOwnPropertyDescriptors;var Mf=Object.getOwnPropertySymbols;var Z_=Object.prototype.hasOwnProperty,X_=Object.prototype.propertyIsEnumerable;var ea=(i,e,t)=>e in i?G_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Qe=(i,e)=>{for(var t in e||(e={}))Z_.call(e,t)&&ea(i,t,e[t]);if(Mf)for(var t of Mf(e))X_.call(e,t)&&ea(i,t,e[t]);return i},yt=(i,e)=>Y_(i,Q_(e));var Li=(i,e,t)=>ea(i,typeof e!="symbol"?e+"":e,t);var pt=(i,e,t)=>new Promise((n,o)=>{var r=l=>{try{a(t.next(l))}catch(u){o(u)}},s=l=>{try{a(t.throw(l))}catch(u){o(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,s);a((t=t.apply(i,e)).next())});function me(){}function se(i,e){for(let t in e)i[t]=e[t];return i}function ta(i){return i()}function ws(){return Object.create(null)}function ct(i){i.forEach(ta)}function xt(i){return typeof i=="function"}function R(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var ys;function vo(i,e){return i===e?!0:(ys||(ys=document.createElement("a")),ys.href=e,i===ys.href)}function Lf(i){return Object.keys(i).length===0}function $t(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ye(i){let e;return $t(i,t=>e=t)(),e}function O(i,e,t){i.$$.on_destroy.push($t(e,t))}function Ve(i,e,t,n){if(i){let o=Vf(i,e,t,n);return i[0](o)}}function Vf(i,e,t,n){return i[1]&&n?se(t.ctx.slice(),i[1](n(e))):t.ctx}function Re(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Be(i,e,t,n,o,r){if(o){let s=Vf(e,t,n,r);i.p(s,o)}}function Ne(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Rf(i){return i==null?"":i}function br(i){return i&&xt(i.destroy)?i.destroy:me}var er=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var ks=class i{constructor(e){Li(this,"_listeners","WeakMap"in er?new WeakMap:void 0);Li(this,"_observer");Li(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};ks.entries="WeakMap"in er?new WeakMap:void 0;var Bf=!1;function Nf(){Bf=!0}function Df(){Bf=!1}function _(i,e){i.appendChild(e)}function ve(i,e,t){let n=Of(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,eh(n,o)}}function Of(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function eh(i,e){return _(i.head||i,e),e.sheet}function w(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function mi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function I(i){return document.createElement(i)}function M(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function He(i){return document.createTextNode(i)}function Y(){return He(" ")}function Je(){return He("")}function ke(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ri(i){return function(e){return e.preventDefault(),i.call(this,e)}}function bt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)f(i,t,e[t])}function Ff(i){return Array.from(i.childNodes)}function je(i,e){e=""+e,i.data!==e&&(i.data=e)}function bi(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 Hf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Dt(i,e){return new i(e)}var Lo;function yo(i){Lo=i}function vr(){if(!Lo)throw new Error("Function called outside component initialization");return Lo}function Lt(i){vr().$$.on_mount.push(i)}function eo(i){vr().$$.on_destroy.push(i)}function yr(i,e){return vr().$$.context.set(i,e),e}function wr(i){return vr().$$.context.get(i)}function Zr(){return vr().$$.context}function Dn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var tr=[];var ge=[],Cr=[],na=[],Uf=Promise.resolve(),oa=!1;function ra(){oa||(oa=!0,Uf.then(Cs))}function to(){return ra(),Uf}function Xr(i){Cr.push(i)}function Ue(i){na.push(i)}var ia=new Set,kr=0;function Cs(){if(kr!==0)return;let i=Lo;do{try{for(;kr<tr.length;){let e=tr[kr];kr++,yo(e),sh(e.$$)}}catch(e){throw tr.length=0,kr=0,e}for(yo(null),tr.length=0,kr=0;ge.length;)ge.pop()();for(let e=0;e<Cr.length;e+=1){let t=Cr[e];ia.has(t)||(ia.add(t),t())}Cr.length=0}while(tr.length);for(;na.length;)na.pop()();oa=!1,ia.clear(),yo(i)}function sh(i){if(i.fragment!==null){i.update(),ct(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Xr)}}function zf(i){let e=[],t=[];Cr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Cr=e}var Ss=new Set,ir;function ae(){ir={r:0,c:[],p:ir}}function ue(){ir.r||ct(ir.c),ir=ir.p}function d(i,e){i&&i.i&&(Ss.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Ss.has(i))return;Ss.add(i),ir.c.push(()=>{Ss.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function wt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Wf(i,e){p(i,1,1,()=>{e.delete(i.key)})}function Kf(i,e,t,n,o,r,s,a,l,u,c,m){let h=i.length,C=r.length,g=h,T={};for(;g--;)T[i[g].key]=g;let k=[],H=new Map,S=new Map,v=[];for(g=C;g--;){let F=m(o,r,g),ie=t(F),fe=s.get(ie);fe?n&&v.push(()=>fe.p(F,e)):(fe=u(ie,F),fe.c()),H.set(ie,k[g]=fe),ie in T&&S.set(ie,Math.abs(g-T[ie]))}let E=new Set,q=new Set;function U(F){d(F,1),F.m(a,c),s.set(F.key,F),c=F.first,C--}for(;h&&C;){let F=k[C-1],ie=i[h-1],fe=F.key,G=ie.key;F===ie?(c=F.first,h--,C--):H.has(G)?!s.has(fe)||E.has(fe)?U(F):q.has(G)?h--:S.get(fe)>S.get(G)?(q.add(fe),U(F)):(E.add(G),h--):(l(ie,s),h--)}for(;h--;){let F=i[h];H.has(F.key)||l(F,s)}for(;C;)U(k[C-1]);return ct(v),k}function qe(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Vo(i){return typeof i=="object"&&i!==null?i:{}}var lh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],ah=new Set([...lh]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function B(i){i&&i.c()}function L(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Xr(()=>{let r=i.$$.on_mount.map(ta).filter(xt);i.$$.on_destroy?i.$$.on_destroy.push(...r):ct(r),i.$$.on_mount=[]}),o.forEach(Xr)}function V(i,e){let t=i.$$;t.fragment!==null&&(zf(t.after_update),ct(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function ch(i,e){i.$$.dirty[0]===-1&&(tr.push(i),ra(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function D(i,e,t,n,o,r,s=null,a=[-1]){let l=Lo;yo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:ws(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:ws(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...C)=>{let g=C.length?C[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&ch(i,m)),h}):[],u.update(),c=!0,ct(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Nf();let m=Ff(e.target);u.fragment&&u.fragment.l(m),m.forEach(y)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),L(i,e.target,e.anchor),Df(),Cs()}yo(l)}var fh;typeof HTMLElement=="function"&&(fh=class extends HTMLElement{constructor(e,t,n){super();Li(this,"$$ctor");Li(this,"$$s");Li(this,"$$c");Li(this,"$$cn",!1);Li(this,"$$d",{});Li(this,"$$r",!1);Li(this,"$$p_d",{});Li(this,"$$l",{});Li(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return pt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=I("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){w(c,a,m)},d:function(c){c&&y(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Hf(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=sa(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:yt(Qe({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=sa(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=sa(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function sa(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var N=class{constructor(){Li(this,"$$");Li(this,"$$set")}$destroy(){V(this,1),this.$destroy=me}$on(e,t){if(!xt(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Lf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var xf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(xf);import"@vkontakte/videoplayer-core";import{noop as as,safeStorage as f8,throttleFn as d8,clientChecker as m8}from"@vkontakte/videoplayer-shared";import{SeekAction as p8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as dh,fillWithDefault as mh,VideoQuality as ph}from"@vkontakte/videoplayer-shared";var _h={isMobile:void 0,defaultLanguage:dh.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:ph.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,autoplayNext:!0,previewNoEmptySpace:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},jf=i=>mh(i,_h),Gf=i=>yr("ui-config",i),Vt=()=>wr("ui-config");var Jr="vk_player_debug_panel_opened";var Yf="videoplayer",Qf="videoplayer";var mo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Zf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Xf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Jf=new Set(["ShiftRight","ShiftLeft"]);var $f=["TIMELINE"],$r=[...$f,"GRAPH_BUTTON"],la=[...$f,"PLAY_BUTTON"],Ts=[...$r,"PLAY_BUTTON"];var wo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(wo||{}),or={xs:0,s:1,m:2,l:3,xl:4};var Sr=[];function jn(i,e){return{subscribe:Oe(i,e).subscribe}}function Oe(i,e=me){let t,n=new Set;function o(a){if(R(i,a)&&(i=a,t)){let l=!Sr.length;for(let u of n)u[1](),Sr.push(u,i);if(l){for(let u=0;u<Sr.length;u+=2)Sr[u][0](Sr[u+1]);Sr.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function ei(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return jn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=xt(g)?g:me},C=o.map((g,T)=>$t(g,k=>{u[T]=k,c&=~(1<<T),l&&h()},()=>{c|=1<<T}));return l=!0,h(),function(){ct(C),m(),l=!1}})}import{assertNonNullable as ed,VERSION as hh}from"@vkontakte/videoplayer-shared";import{VERSION as gh}from"@vkontakte/videoplayer-core";import{VERSION as bh}from"@vkontakte/videoplayer-statistics";var Is="prod",Tr="1.1.49-dev.a22b280e.0";var rr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var td=Symbol("storeContext"),id=Symbol("microStoresContext"),nd=(i,e)=>{yr(td,i),yr(id,e),Is==="dev"&&(window.app={store:i,microStores:e})},ot=()=>{let i=wr(td);return ed(i,"Store context is empty!"),i},On=()=>{let i=wr(id);return ed(i,"MicroStores context is empty!"),i},It=(i,e)=>aa(i,i.getValue(),e),aa=(i,e,t)=>jn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),od=(i,e,t)=>{var H,S,v,E,q,U;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s=(S=(H=n.throughputEstimation$.getValue())==null?void 0:H.toFixed(0))!=null?S:0,a=(E=(v=n.rttEstimation$.getValue())==null?void 0:v.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Tr} (core: ${gh}, stat: ${bh}, shared: ${hh})`,c=Ye(t.state.errorLog$),m=c.length?`
|
|
7
|
-
`+c.map((
|
|
8
|
-
`,
|
|
9
|
-
`,
|
|
10
|
-
`;return
|
|
11
|
-
`):void 0,h=t.state.isAudioDisabled?"disabled":
|
|
12
|
-
`)},rd=(i,e,t)=>{var U,F,ie,fe;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s={version:Tr,viewport:`${o}x${r}`,volume:Math.round(Ye(t.state.volume$)*100)};s.id=t.videoId,n.currentFormat$.getValue()&&(s.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(s.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(s.videoSize=`${u.width}x${u.height}`);let c=n.currentBuffer$.getValue(),m=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();c&&(m&&h?s.buffer=c.end-h:s.buffer=Math.max(c.end-Ye(t.state.positionExact$),0));let C=n.throughputEstimation$.getValue();C&&(s.speed=C);let g=n.videoBitrate$.getValue();g&&(s.bitrate=g);let T=n.currentVideoSegmentLength$.getValue();T&&(s.currentVideoSegmentLength=T);let k=n.currentAudioSegmentLength$.getValue();k&&(s.currentAudioSegmentLength=k);let H=Ye(t.vsid);typeof H=="string"&&(s.vsid=H);let S=(U=i.info.currentVideoStream$.getValue())==null?void 0:U.codec;S&&(s.videoCodec=S);let v=(F=i.info.currentAudioStream$.getValue())==null?void 0:F.codec;v&&(s.audioCodec=v),((ie=i.info.currentVideoStream$.getValue())==null?void 0:ie.hdr)&&(s.hdr=!0);let q=(fe=i.info.currentAudioStream$.getValue())==null?void 0:fe.language;return q&&(s.audioLanguage=q),s},sd=(i,e)=>rr(i,e,"mp4"),ld=i=>!i.type,ad=i=>!!i.type,ud=()=>{let e=[],t=0;return{add:(n,o)=>{e[t]=[n,o],t=(t+1)%10},find:n=>e.find(([o])=>o===n)}},Ps=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return pt(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let t=yield fetch(e,{signal:this.destroyController.signal});if(t.ok)return yield t.text();throw t}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as ua,safeStorage as Gn}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";var cd="vk_player_prefer_traffic_saving_enabled",fd="vk_player_preferred_volume",dd="vk_player_prefer_volume_mute",ca="vk_player_preferred_quality",md="vk_player_preferred_stream_language",pd="vk_player_preferred_rate",_d="vk_player_preferred_autoplay_next",hd=i=>i>1?1:i<0?0:i,fa=i=>Gn.set(fd,hd(i).toString(10)),Es=()=>{let i=Gn.get(fd);return ua(i)?void 0:hd(parseFloat(i))},gd=(i,e)=>Gn.set(ca,JSON.stringify({videoId:i,value:e})),da=()=>Gn.remove(ca),bd=i=>{let e=Gn.get(ca);if(ua(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){da();return}return n},ma=(i,e)=>{e?Gn.set(i,"true"):Gn.remove(i)},pa=i=>Gn.get(i)==="true",As=i=>ma(dd,i),vd=()=>pa(dd),yd=i=>ma(cd,i),wd=()=>pa(cd),kd=()=>Gn.get(md),_a=i=>Gn.set(md,i),Cd=i=>Gn.set(pd,JSON.stringify({rate:i})),Sd=()=>{let i=Gn.get(pd);if(ua(i))return;let{rate:e}=JSON.parse(i);return e},Td=i=>ma(_d,i),Id=()=>pa(_d);import{PlaybackState as Xy}from"@vkontakte/videoplayer-core";import{noop as _f}from"@vkontakte/videoplayer-shared";function vh(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,T,k,H,S=i[2].default,v=Ve(S,i,i[1],null),E=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],q={};for(let U=0;U<E.length;U+=1)q=se(q,E[U]);return{c(){e=M("svg"),v&&v.c(),t=M("g"),n=M("path"),o=M("path"),r=M("path"),s=M("path"),a=M("path"),l=M("defs"),u=M("filter"),c=M("feFlood"),m=M("feColorMatrix"),h=M("feOffset"),C=M("feGaussianBlur"),g=M("feColorMatrix"),T=M("feBlend"),k=M("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"d","M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z"),f(r,"clip-rule","evenodd"),f(s,"fill","#fff"),f(s,"d","M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"),f(a,"stroke","#000"),f(a,"stroke-linecap","round"),f(a,"stroke-linejoin","round"),f(a,"stroke-opacity",".12"),f(a,"stroke-width",".5"),f(a,"d","m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"),f(t,"filter","url(#a)"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(C,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(T,"in2","BackgroundImageFix"),f(T,"result","effect1_dropShadow_618_12297"),f(k,"in","SourceGraphic"),f(k,"in2","effect1_dropShadow_618_12297"),f(k,"result","shape"),f(u,"id","a"),f(u,"width","75"),f(u,"height","44"),f(u,"x",".5"),f(u,"y",".5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),we(e,q)},m(U,F){w(U,e,F),v&&v.m(e,null),_(e,t),_(t,n),_(t,o),_(t,r),_(t,s),_(t,a),_(e,l),_(l,u),_(u,c),_(u,m),_(u,h),_(u,C),_(u,g),_(u,T),_(u,k),H=!0},p(U,[F]){v&&v.p&&(!H||F&2)&&Be(v,S,U,U[1],H?Re(S,U[1],F,null):Ne(U[1]),null),we(e,q=qe(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},F&1&&U[0]]))},i(U){H||(d(v,U),H=!0)},o(U){p(v,U),H=!1},d(U){U&&y(e),v&&v.d(U)}}}function yh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ha=class extends N{constructor(e){super(),D(this,e,yh,vh,R,{})}},Ms=ha;import{isNullable as Ad,InterfaceLanguage as Md}from"@vkontakte/videoplayer-shared";var wh={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"},Pd=wh;var kh={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"},Ed=kh;var ko=new Map;ko.set(Md.EN,Ed);ko.set(Md.RU,Pd);var Ld=new Map,ga=({language:i,pack:e,fallback:t})=>{if(ko.has(i)){let n=ko.get(i);ko.set(i,Qe(Qe({},n),e))}else ko.set(i,e);Ld.set(i,t)},ba=i=>ko.has(i),va=(i,e,t,n)=>{var s;let o=ko.get(i),r=o==null?void 0:o[e];if(Ad(r)){let a=(s=Ld.get(i))!=null?s:n,l=a?ko.get(a):void 0;r=l==null?void 0:l[e]}return Ad(r)?e+Object.values(t!=null?t:{}).join(" "):t?r.replaceAll(/{(\w+?)}/g,(a,l)=>{var u;return(u=t[l])!=null?u:""}):r},j=(i,e)=>{let{interfaceLanguage$:t}=ot(),n=Ye(t),o=Vt();return va(n,i,e,o.defaultLanguage)};import"@vkontakte/videoplayer-core";var Ir;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(Ir||(Ir={}));var Ch=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Sh=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Th=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ls="?",Ih="X-Sentry-Auth",Ph=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Eh(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
|
|
13
|
-
`),n,o;for(let r=0;r<t.length;++r){if(n=
|
|
14
|
-
`).filter(t=>!!t)[0]}function Ah(i){try{let e=Eh(i);if(e)return e}catch(e){}return{value:Vd(i),type:i&&i.name,stacktrace:{frames:[]}}}function Mh(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var Vs=class{constructor(e){if(e&&e.dsn){let t=Ph.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),r=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(r?"/"+r:"")+"/api/"+o.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=e&&e.environment}prepare(e){return yt(Qe({},this.getRequestBlank()),{exception:{values:[Ah(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(Ih,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Mh(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Rd(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function Lh(){return window}var Rs=class i extends Vs{constructor(e,t=Lh()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:r=u=>u,blacklistUrls:s=[],ignoreErrors:a=[],release:l=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=r,this.blacklistUrls=s,this.ignoreErrors=a,this.release=l}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",Qe({},e)),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",Qe({},e)),this}setUser(e){return this.setKeyState("user",Qe({},e)),this}clone(){let e=new i(yt(Qe({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){let t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[Qe({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send(yt(Qe({},this.getRequestBlank()),{message:e,level:t}))}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(t=>this.ignoreErrors.some(n=>Rd(t,n))):!1}getRequestBlank(){return Qe(yt(Qe({request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}}},super.getRequestBlank()),{sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"}}),this.state)}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend(Qe({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>Rd(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch(t){return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],r=Array.isArray(o)?o:null,s=e[n],a=Array.isArray(s)?s:null;return yt(Qe({},t),{[n]:r||a?[...r||[],...a||[]]:Qe(Qe({},typeof o!="string"?o:{}),typeof s!="string"?s:{})})},this._state)}setKeyState(e,t){this._state[e]=t}};import{isNonNullable as Bs,Subscription as Vh}from"@vkontakte/videoplayer-shared";var Ns=null,sr=class{constructor(e,t,n={}){!Ns&&e.dsn&&(this.sentryClient=new Rs({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Vh,this.options=e,this.context=n,Ns=this)}destroy(){var e,t;(e=this.sentryClient)==null||e.destroy(),(t=this.sentrySubscription)==null||t.unsubscribe(),Ns=null}logIError(e,t=!1){e.thrown&&this.report(e.thrown,{fatal:t,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,t={},n={}){let{sentryClient:o,context:r,options:s}=this,{sampleRate:a=0,whiteErrorIdList:l,whiteErrorCategoryList:u=[],blackErrorIdList:c,blackErrorCategoryList:m}=s,{errorType:h,category:C}=t;if(Bs(C)&&m.includes(C)||Bs(h)&&c.includes(h))return;if(Math.random()<=a||Bs(C)&&u.includes(C)||Bs(h)&&l.includes(h)){Object.keys(t).length&&o.setTags(Qe({version:this.version},t)),(Object.keys(r).length||Object.keys(n).length)&&o.setExtras(Qe(Qe({},r),n));try{h&&o.captureMessage(h,t.fatal?Ir.fatal:Ir.error),o.report(e)}catch(T){console.error(T)}}}static getInstance(){return Ns}};var Ds=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Os=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Bd=i=>{let e=i;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},es=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},Ro=()=>!!es(),Fs=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},Hs=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},Nd=i=>{let e=window.screen;return(o=>pt(void 0,null,function*(){return e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject()}))(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};import{clientChecker as Dd}from"@vkontakte/videoplayer-shared";var Od=()=>({title:j("hotkey_map_modal_title"),closeBtnText:j("hotkey_map_modal_close_btn_text"),groups:[{title:j("hotkey_map_group_title_common"),items:[{description:j("hotkey_map_item_mute_description"),value:j("hotkey_map_item_mute_value")},{description:j("hotkey_map_item_volume_up_description"),value:j("hotkey_map_item_volume_up_value")},{description:j("hotkey_map_item_volume_down_description"),value:j("hotkey_map_item_volume_down_value")},{description:j("hotkey_map_item_pip_description"),value:j("hotkey_map_item_pip_value")},{description:j("hotkey_map_item_full_screen_description"),value:j("hotkey_map_item_full_screen_value")},{description:j("hotkey_map_item_show_context_menu_description"),value:j("hotkey_map_item_show_context_menu_value")},{description:j("hotkey_map_item_show_hotkey_map_description"),value:j("hotkey_map_item_show_hotkey_map_value")}]},{title:j("hotkey_map_group_title_playback"),items:[{description:j("hotkey_map_item_play_toggle_description"),value:j("hotkey_map_item_play_toggle_value")},{description:j("hotkey_map_item_seek_backward_description"),value:j("hotkey_map_item_seek_backward_value")},{description:j("hotkey_map_item_seek_forward_description"),value:j("hotkey_map_item_seek_forward_value")},{description:j("hotkey_map_item_fast_seek_backward_description"),value:j("hotkey_map_item_fast_seek_backward_value")},{description:j("hotkey_map_item_fast_seek_forward_description"),value:j("hotkey_map_item_fast_seek_forward_value")},{description:j("hotkey_map_item_rate_down_description"),value:j("hotkey_map_item_rate_down_value")},{description:j("hotkey_map_item_rate_up_description"),value:j("hotkey_map_item_rate_up_value")},{description:j("hotkey_map_item_prev_frame_description"),value:j("hotkey_map_item_prev_frame_value")},{description:j("hotkey_map_item_next_frame_description"),value:j("hotkey_map_item_next_frame_value")},{description:j("hotkey_map_item_jump_seek_description"),value:j("hotkey_map_item_jump_seek_value")}]},{title:j("hotkey_map_group_title_subtitles"),items:[{description:j("hotkey_map_item_subtitles_toggle_description"),value:j("hotkey_map_item_subtitles_toggle_value")}]},{title:j("hotkey_map_group_title_episodes"),items:[{description:j("hotkey_map_item_prev_episode_description"),value:Dd.isApple?j("hotkey_map_item_prev_episode_mac_value"):j("hotkey_map_item_prev_episode_pc_value")},{description:j("hotkey_map_item_next_episode_description"),value:Dd.isApple?j("hotkey_map_item_next_episode_mac_value"):j("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as Rh,clientChecker as Bh,ValueSubject as Nh}from"@vkontakte/videoplayer-shared";var lr=class{constructor(){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:Rh(this.onResize.bind(this),300)};this.info={isActive$:new Nh(this.isActive()),type:0}}isSupported(){return document.pictureInPictureEnabled&&!Bh.isYandex}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return pt(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return pt(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(t){this.isRequested=!1}})}remove(){return pt(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,t;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=Qe({},e)}unregistryEventHandlers(){var e,t;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return pt(this,null,function*(){this.unregistryEventHandlers(),yield this.remove()})}onEnterPictureInPicture(e){var o,r;let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).enterpictureinpicture)==null||r.call(o,e))}onLeavePictureInPicture(e){var o,r,s;let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n==null||n.removeEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).leavepictureinpicture)==null||r.call(o,e),(s=this.playerDummyElement)==null||s.$destroy()}onResize(e){var t,n;(n=(t=this.externalEventHandlers).resize)==null||n.call(t,e)}};function ar(i){return i instanceof lr}function Dh(i){let e=ot();return Lt(()=>{e.getAdmanWrapper().startPostroll()}),[]}var ka=class extends N{constructor(e){super(),D(this,e,Dh,null,R,{})}},Fd=ka;import{noop as Oh}from"@vkontakte/videoplayer-shared";function Fh(i){ve(i,"svelte-1k4i25s",".container.svelte-1k4i25s.svelte-1k4i25s{position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s}.container-mobile.svelte-1k4i25s.svelte-1k4i25s{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.svelte-1k4i25s.svelte-1k4i25s{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.svelte-1k4i25s.svelte-1k4i25s{width:86px}.skippable.svelte-1k4i25s.svelte-1k4i25s{cursor:pointer;color:var(--white)}.skippable.svelte-1k4i25s.svelte-1k4i25s:hover{color:rgba(255, 255, 255, .75)}.skippable.svelte-1k4i25s:hover .icon.svelte-1k4i25s{fill:rgba(255, 255, 255, .75)}")}function Hh(i){let e=j("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=He(e)},m(n,o){w(n,t,o)},p(n,o){o&3&&e!==(e=j("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&je(t,e)},d(n){n&&y(t)}}}function qh(i){let e,t=j("skip_ads_now")+"",n,o,r,s,a,l;return{c(){e=I("div"),n=He(t),o=Y(),r=M("svg"),s=M("path"),f(s,"fill-rule","evenodd"),f(s,"clip-rule","evenodd"),f(s,"d","M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"),f(r,"class","icon svelte-1k4i25s"),f(r,"width","7"),f(r,"height","12"),f(r,"viewBox","0 0 7 12"),f(r,"fill","none"),f(r,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","skip svelte-1k4i25s")},m(u,c){w(u,e,c),_(e,n),_(e,o),_(e,r),_(r,s),a||(l=ke(e,"click",bt(function(){xt(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,c){i=u},d(u){u&&y(e),a=!1,l()}}}function Uh(i){let e;function t(r,s){return r[3]?qh:Hh}let n=t(i,-1),o=n(i);return{c(){e=I("div"),o.c(),f(e,"class","container svelte-1k4i25s"),K(e,"container-mobile",i[4]),K(e,"skippable",i[3])},m(r,s){w(r,e,s),o.m(e,null)},p(r,[s]){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e,null))),s&16&&K(e,"container-mobile",r[4]),s&8&&K(e,"skippable",r[3])},i:me,o:me,d(r){r&&y(e),o.d()}}}function zh(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:s=Oh}=e,l=ot().ui.isMobile;O(i,l,c=>t(4,n=c));let u;return i.$$set=c=>{"position"in c&&t(0,o=c.position),"secondsToWatchBeforeSkip"in c&&t(1,r=c.secondsToWatchBeforeSkip),"skipAd"in c&&t(2,s=c.skipAd)},i.$$.update=()=>{i.$$.dirty&3&&t(3,u=o>0&&o>=r)},[o,r,s,u,n,l]}var Ca=class extends N{constructor(e){super(),D(this,e,zh,Uh,R,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},Fh)}},Hd=Ca;function Wh(i){ve(i,"svelte-1wy3dql","button.svelte-1wy3dql{position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black}")}function Kh(i){let e;return{c(){e=I("button"),e.textContent=`${j("visit_advertiser")}`,f(e,"class","svelte-1wy3dql")},m(t,n){w(t,e,n)},p:me,i:me,o:me,d(t){t&&y(e)}}}var Sa=class extends N{constructor(e){super(),D(this,e,null,Kh,R,{},Wh)}},qd=Sa;function xh(i){ve(i,"svelte-354ajf",`.container.svelte-354ajf{width:100%;height:100%}.top-gradient-mobile.svelte-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
|
|
6
|
+
var oh=Object.defineProperty,rh=Object.defineProperties;var sh=Object.getOwnPropertyDescriptors;var Hf=Object.getOwnPropertySymbols;var lh=Object.prototype.hasOwnProperty,ah=Object.prototype.propertyIsEnumerable;var ua=(i,e,t)=>e in i?oh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Xe=(i,e)=>{for(var t in e||(e={}))lh.call(e,t)&&ua(i,t,e[t]);if(Hf)for(var t of Hf(e))ah.call(e,t)&&ua(i,t,e[t]);return i},St=(i,e)=>rh(i,sh(e));var Vi=(i,e,t)=>ua(i,typeof e!="symbol"?e+"":e,t);var mt=(i,e,t)=>new Promise((n,o)=>{var r=l=>{try{a(t.next(l))}catch(u){o(u)}},s=l=>{try{a(t.throw(l))}catch(u){o(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,s);a((t=t.apply(i,e)).next())});function me(){}function re(i,e){for(let t in e)i[t]=e[t];return i}function ca(i){return i()}function Es(){return Object.create(null)}function ut(i){i.forEach(ca)}function ti(i){return typeof i=="function"}function F(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Ps;function To(i,e){return i===e?!0:(Ps||(Ps=document.createElement("a")),Ps.href=e,i===Ps.href)}function qf(i){return Object.keys(i).length===0}function ri(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function je(i){let e;return ri(i,t=>e=t)(),e}function q(i,e,t){i.$$.on_destroy.push(ri(e,t))}function Le(i,e,t,n){if(i){let o=Uf(i,e,t,n);return i[0](o)}}function Uf(i,e,t,n){return i[1]&&n?re(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let s=Uf(e,t,n,r);i.p(s,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ve(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function zf(i){return i==null?"":i}function br(i){return i&&ti(i.destroy)?i.destroy:me}var er=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var As=class i{constructor(e){Vi(this,"_listeners","WeakMap"in er?new WeakMap:void 0);Vi(this,"_observer");Vi(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};As.entries="WeakMap"in er?new WeakMap:void 0;var Wf=!1;function xf(){Wf=!0}function Kf(){Wf=!1}function _(i,e){i.appendChild(e)}function ge(i,e,t){let n=jf(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,fh(n,o)}}function jf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function fh(i,e){return _(i.head||i,e),e.sheet}function k(i,e,t){i.insertBefore(e,t||null)}function w(i){i.parentNode&&i.parentNode.removeChild(i)}function pi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function O(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Oe(i){return document.createTextNode(i)}function Y(){return Oe(" ")}function $e(){return Oe("")}function ke(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ui(i){return function(e){return e.preventDefault(),i.call(this,e)}}function vt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ye(i,e){for(let t in e)f(i,t,e[t])}function Gf(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function vi(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 Yf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ot(i,e){return new i(e)}var Ro;function Io(i){Ro=i}function vr(){if(!Ro)throw new Error("Function called outside component initialization");return Ro}function Ft(i){vr().$$.on_mount.push(i)}function oo(i){vr().$$.on_destroy.push(i)}function yr(i,e){return vr().$$.context.set(i,e),e}function wr(i){return vr().$$.context.get(i)}function ts(){return vr().$$.context}function On(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var tr=[];var be=[],Cr=[],da=[],Zf=Promise.resolve(),ma=!1;function pa(){ma||(ma=!0,Zf.then(dt))}function cn(){return pa(),Zf}function is(i){Cr.push(i)}function Ue(i){da.push(i)}var fa=new Set,kr=0;function dt(){if(kr!==0)return;let i=Ro;do{try{for(;kr<tr.length;){let e=tr[kr];kr++,Io(e),gh(e.$$)}}catch(e){throw tr.length=0,kr=0,e}for(Io(null),tr.length=0,kr=0;be.length;)be.pop()();for(let e=0;e<Cr.length;e+=1){let t=Cr[e];fa.has(t)||(fa.add(t),t())}Cr.length=0}while(tr.length);for(;da.length;)da.pop()();ma=!1,fa.clear(),Io(i)}function gh(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(is)}}function Xf(i){let e=[],t=[];Cr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Cr=e}var Ms=new Set,ir;function se(){ir={r:0,c:[],p:ir}}function le(){ir.r||ut(ir.c),ir=ir.p}function d(i,e){i&&i.i&&(Ms.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Ms.has(i))return;Ms.add(i),ir.c.push(()=>{Ms.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Tt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Jf(i,e){p(i,1,1,()=>{e.delete(i.key)})}function $f(i,e,t,n,o,r,s,a,l,u,c,m){let h=i.length,y=r.length,g=h,I={};for(;g--;)I[i[g].key]=g;let C=[],V=new Map,S=new Map,v=[];for(g=y;g--;){let L=m(o,r,g),J=t(L),ue=s.get(J);ue?n&&v.push(()=>ue.p(L,e)):(ue=u(J,L),ue.c()),V.set(J,C[g]=ue),J in I&&S.set(J,Math.abs(g-I[J]))}let E=new Set,W=new Set;function D(L){d(L,1),L.m(a,c),s.set(L.key,L),c=L.first,y--}for(;h&&y;){let L=C[y-1],J=i[h-1],ue=L.key,Q=J.key;L===J?(c=L.first,h--,y--):V.has(Q)?!s.has(ue)||E.has(ue)?D(L):W.has(Q)?h--:S.get(ue)>S.get(Q)?(W.add(ue),D(L)):(E.add(Q),h--):(l(J,s),h--)}for(;h--;){let L=i[h];V.has(L.key)||l(L,s)}for(;y;)D(C[y-1]);return ut(v),C}function Fe(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Bo(i){return typeof i=="object"&&i!==null?i:{}}var bh=["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"],vh=new Set([...bh]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function N(i){i&&i.c()}function R(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),is(()=>{let r=i.$$.on_mount.map(ca).filter(ti);i.$$.on_destroy?i.$$.on_destroy.push(...r):ut(r),i.$$.on_mount=[]}),o.forEach(is)}function B(i,e){let t=i.$$;t.fragment!==null&&(Xf(t.after_update),ut(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function wh(i,e){i.$$.dirty[0]===-1&&(tr.push(i),pa(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function U(i,e,t,n,o,r,s=null,a=[-1]){let l=Ro;Io(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:Es(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Es(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...y)=>{let g=y.length?y[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&wh(i,m)),h}):[],u.update(),c=!0,ut(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){xf();let m=Gf(e.target);u.fragment&&u.fragment.l(m),m.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),R(i,e.target,e.anchor),Kf(),dt()}Io(l)}var kh;typeof HTMLElement=="function"&&(kh=class extends HTMLElement{constructor(e,t,n){super();Vi(this,"$$ctor");Vi(this,"$$s");Vi(this,"$$c");Vi(this,"$$cn",!1);Vi(this,"$$d",{});Vi(this,"$$r",!1);Vi(this,"$$p_d",{});Vi(this,"$$l",{});Vi(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return mt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=P("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){k(c,a,m)},d:function(c){c&&w(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Yf(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=_a(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:St(Xe({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=_a(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=_a(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function _a(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var H=class{constructor(){Vi(this,"$$");Vi(this,"$$set")}$destroy(){B(this,1),this.$destroy=me}$on(e,t){if(!ti(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!qf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var ed="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ed);import"@vkontakte/videoplayer-core";import{noop as ms,safeStorage as C8,throttleFn as S8,clientChecker as T8}from"@vkontakte/videoplayer-shared";import{SeekAction as I8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as Ch,fillWithDefault as Sh,VideoQuality as Th}from"@vkontakte/videoplayer-shared";var Ih={isMobile:void 0,defaultLanguage:Ch.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:Th.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,autoplayNext:!0,previewNoEmptySpace:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},td=i=>Sh(i,Ih),id=i=>yr("ui-config",i),Bt=()=>wr("ui-config");var ns="vk_player_debug_panel_opened";var nd="videoplayer",od="videoplayer";var go={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},rd=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),sd=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),ld=new Set(["ShiftRight","ShiftLeft"]);var ad=["TIMELINE"],os=[...ad,"GRAPH_BUTTON"],ha=[...ad,"PLAY_BUTTON"],Ls=[...os,"PLAY_BUTTON"];var bo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(bo||{}),or={xs:0,s:1,m:2,l:3,xl:4};var Sr=[];function jn(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=me){let t,n=new Set;function o(a){if(F(i,a)&&(i=a,t)){let l=!Sr.length;for(let u of n)u[1](),Sr.push(u,i);if(l){for(let u=0;u<Sr.length;u+=2)Sr[u][0](Sr[u+1]);Sr.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function si(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return jn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=ti(g)?g:me},y=o.map((g,I)=>ri(g,C=>{u[I]=C,c&=~(1<<I),l&&h()},()=>{c|=1<<I}));return l=!0,h(),function(){ut(y),m(),l=!1}})}import{assertNonNullable as ud,VERSION as Ph}from"@vkontakte/videoplayer-shared";import{VERSION as Eh}from"@vkontakte/videoplayer-core";import{VERSION as Ah}from"@vkontakte/videoplayer-statistics";var Vs="prod",Tr="1.1.49-dev.fad44c86.0";var rr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var cd=Symbol("storeContext"),fd=Symbol("microStoresContext"),dd=(i,e)=>{yr(cd,i),yr(fd,e),Vs==="dev"&&(window.app={store:i,microStores:e})},nt=()=>{let i=wr(cd);return ud(i,"Store context is empty!"),i},Fn=()=>{let i=wr(fd);return ud(i,"MicroStores context is empty!"),i},At=(i,e)=>ga(i,i.getValue(),e),ga=(i,e,t)=>jn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),md=(i,e,t)=>{var V,S,v,E,W,D;let n=i.info,{width:o,height:r}=je(t.ui.playerSize),s=(S=(V=n.throughputEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?S:0,a=(E=(v=n.rttEstimation$.getValue())==null?void 0:v.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Tr} (core: ${Eh}, stat: ${Ah}, shared: ${Ph})`,c=je(t.state.errorLog$),m=c.length?`
|
|
7
|
+
`+c.map((L,J)=>{var X;let ue=`${J}) Type: ${L.id}
|
|
8
|
+
`,Q=`Message: ${L.message} (${L.thrown})
|
|
9
|
+
`,ee=`Trace: ${(X=L.thrown)==null?void 0:X.stack}
|
|
10
|
+
`;return ue+Q+ee}).join(`
|
|
11
|
+
`):void 0,h=t.state.isAudioDisabled?"disabled":je(t.state.isAudioAvailable$)?void 0:"unavailable",y=i.info.currentVideoStream$.getValue(),g=i.info.currentAudioStream$.getValue(),I=[];y&&I.push(`Video: ${(W=y==null?void 0:y.codec)!=null?W:""}`+(y!=null&&y.hdr?" (HDR)":"")),g&&I.push(`Audio: ${(D=g==null?void 0:g.codec)!=null?D:""}`+(g!=null&&g.language?` (${g.language})`:""));let C={Version:u,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),VSID:je(t.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${s}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:I.join(", "),Quality:`${l} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:h,Position:`${je(t.state.positionExact$)}s`,State:`${je(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${r}`,URL:window.location.href,Errors:m};return Object.entries(C).filter(([L,J])=>J!==void 0).map(([L,J])=>`${L}: ${J}`).join(`
|
|
12
|
+
`)},pd=(i,e,t)=>{var D,L,J,ue;let n=i.info,{width:o,height:r}=je(t.ui.playerSize),s={version:Tr,viewport:`${o}x${r}`,volume:Math.round(je(t.state.volume$)*100)};s.id=t.videoId,n.currentFormat$.getValue()&&(s.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(s.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(s.videoSize=`${u.width}x${u.height}`);let c=n.currentBuffer$.getValue(),m=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();c&&(m&&h?s.buffer=c.end-h:s.buffer=Math.max(c.end-je(t.state.positionExact$),0));let y=n.throughputEstimation$.getValue();y&&(s.speed=y);let g=n.videoBitrate$.getValue();g&&(s.bitrate=g);let I=n.currentVideoSegmentLength$.getValue();I&&(s.currentVideoSegmentLength=I);let C=n.currentAudioSegmentLength$.getValue();C&&(s.currentAudioSegmentLength=C);let V=je(t.vsid);typeof V=="string"&&(s.vsid=V);let S=(D=i.info.currentVideoStream$.getValue())==null?void 0:D.codec;S&&(s.videoCodec=S);let v=(L=i.info.currentAudioStream$.getValue())==null?void 0:L.codec;v&&(s.audioCodec=v),((J=i.info.currentVideoStream$.getValue())==null?void 0:J.hdr)&&(s.hdr=!0);let W=(ue=i.info.currentAudioStream$.getValue())==null?void 0:ue.language;return W&&(s.audioLanguage=W),s},_d=(i,e)=>rr(i,e,"mp4"),hd=i=>!i.type,gd=i=>!!i.type,bd=()=>{let e=[],t=0;return{add:(n,o)=>{e[t]=[n,o],t=(t+1)%10},find:n=>e.find(([o])=>o===n)}},Rs=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return mt(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let t=yield fetch(e,{signal:this.destroyController.signal});if(t.ok)return yield t.text();throw t}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as ba,safeStorage as Gn}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";var vd="vk_player_prefer_traffic_saving_enabled",yd="vk_player_preferred_volume",wd="vk_player_prefer_volume_mute",va="vk_player_preferred_quality",kd="vk_player_preferred_stream_language",Cd="vk_player_preferred_rate",Sd="vk_player_preferred_autoplay_next",Td=i=>i>1?1:i<0?0:i,ya=i=>Gn.set(yd,Td(i).toString(10)),Bs=()=>{let i=Gn.get(yd);return ba(i)?void 0:Td(parseFloat(i))},Id=(i,e)=>Gn.set(va,JSON.stringify({videoId:i,value:e})),wa=()=>Gn.remove(va),Pd=i=>{let e=Gn.get(va);if(ba(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){wa();return}return n},ka=(i,e)=>{e?Gn.set(i,"true"):Gn.remove(i)},Ca=i=>Gn.get(i)==="true",Ns=i=>ka(wd,i),Ed=()=>Ca(wd),Ad=i=>ka(vd,i),Md=()=>Ca(vd),Ld=()=>Gn.get(kd),Sa=i=>Gn.set(kd,i),Vd=i=>Gn.set(Cd,JSON.stringify({rate:i})),Rd=()=>{let i=Gn.get(Cd);if(ba(i))return;let{rate:e}=JSON.parse(i);return e},Bd=i=>ka(Sd,i),Nd=()=>Ca(Sd);import{PlaybackState as l8}from"@vkontakte/videoplayer-core";import{noop as Sf}from"@vkontakte/videoplayer-shared";function Mh(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,I,C,V,S=i[2].default,v=Le(S,i,i[1],null),E=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],W={};for(let D=0;D<E.length;D+=1)W=re(W,E[D]);return{c(){e=O("svg"),v&&v.c(),t=O("g"),n=O("path"),o=O("path"),r=O("path"),s=O("path"),a=O("path"),l=O("defs"),u=O("filter"),c=O("feFlood"),m=O("feColorMatrix"),h=O("feOffset"),y=O("feGaussianBlur"),g=O("feColorMatrix"),I=O("feBlend"),C=O("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"d","M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z"),f(r,"clip-rule","evenodd"),f(s,"fill","#fff"),f(s,"d","M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"),f(a,"stroke","#000"),f(a,"stroke-linecap","round"),f(a,"stroke-linejoin","round"),f(a,"stroke-opacity",".12"),f(a,"stroke-width",".5"),f(a,"d","m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"),f(t,"filter","url(#a)"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(y,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(I,"in2","BackgroundImageFix"),f(I,"result","effect1_dropShadow_618_12297"),f(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_618_12297"),f(C,"result","shape"),f(u,"id","a"),f(u,"width","75"),f(u,"height","44"),f(u,"x",".5"),f(u,"y",".5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),ye(e,W)},m(D,L){k(D,e,L),v&&v.m(e,null),_(e,t),_(t,n),_(t,o),_(t,r),_(t,s),_(t,a),_(e,l),_(l,u),_(u,c),_(u,m),_(u,h),_(u,y),_(u,g),_(u,I),_(u,C),V=!0},p(D,[L]){v&&v.p&&(!V||L&2)&&Re(v,S,D,D[1],V?Ve(S,D[1],L,null):Be(D[1]),null),ye(e,W=Fe(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},L&1&&D[0]]))},i(D){V||(d(v,D),V=!0)},o(D){p(v,D),V=!1},d(D){D&&w(e),v&&v.d(D)}}}function Lh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Ta=class extends H{constructor(e){super(),U(this,e,Lh,Mh,F,{})}},Ds=Ta;import{isNullable as Fd,InterfaceLanguage as Hd}from"@vkontakte/videoplayer-shared";var Vh={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443 \u0447\u0435\u0440\u0435\u0437 {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E"},Dd=Vh;var Rh={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Ads can be skipped in {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode",end_screen_next_video:"Next video"},Od=Rh;var Po=new Map;Po.set(Hd.EN,Od);Po.set(Hd.RU,Dd);var qd=new Map,Ia=({language:i,pack:e,fallback:t})=>{if(Po.has(i)){let n=Po.get(i);Po.set(i,Xe(Xe({},n),e))}else Po.set(i,e);qd.set(i,t)},Pa=i=>Po.has(i),Ea=(i,e,t,n)=>{var s;let o=Po.get(i),r=o==null?void 0:o[e];if(Fd(r)){let a=(s=qd.get(i))!=null?s:n,l=a?Po.get(a):void 0;r=l==null?void 0:l[e]}return Fd(r)?e+Object.values(t!=null?t:{}).join(" "):t?r.replaceAll(/{(\w+?)}/g,(a,l)=>{var u;return(u=t[l])!=null?u:""}):r},G=(i,e)=>{let{interfaceLanguage$:t}=nt(),n=je(t),o=Bt();return Ea(n,i,e,o.defaultLanguage)};import"@vkontakte/videoplayer-core";var Ir;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(Ir||(Ir={}));var Bh=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Nh=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Dh=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Os="?",Oh="X-Sentry-Auth",Fh=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Hh(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
|
|
13
|
+
`),n,o;for(let r=0;r<t.length;++r){if(n=Bh.exec(t[r]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||Os,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=Dh.exec(t[r]))o={filename:n[2],function:n[1]||Os,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=Nh.exec(t[r]))r===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||Os,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=Os),e.push(o)}return e.length?{value:Ud(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function Ud(i){return(i&&i.message||"No error message").split(`
|
|
14
|
+
`).filter(t=>!!t)[0]}function qh(i){try{let e=Hh(i);if(e)return e}catch(e){}return{value:Ud(i),type:i&&i.name,stacktrace:{frames:[]}}}function Uh(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var Fs=class{constructor(e){if(e&&e.dsn){let t=Fh.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),r=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(r?"/"+r:"")+"/api/"+o.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=e&&e.environment}prepare(e){return St(Xe({},this.getRequestBlank()),{exception:{values:[qh(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(Oh,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Uh(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function zd(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function zh(){return window}var Hs=class i extends Fs{constructor(e,t=zh()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:r=u=>u,blacklistUrls:s=[],ignoreErrors:a=[],release:l=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=r,this.blacklistUrls=s,this.ignoreErrors=a,this.release=l}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",Xe({},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",Xe({},e)),this}setUser(e){return this.setKeyState("user",Xe({},e)),this}clone(){let e=new i(St(Xe({},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:[Xe({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send(St(Xe({},this.getRequestBlank()),{message:e,level:t}))}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(t=>this.ignoreErrors.some(n=>zd(t,n))):!1}getRequestBlank(){return Xe(St(Xe({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(Xe({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>zd(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch(t){return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],r=Array.isArray(o)?o:null,s=e[n],a=Array.isArray(s)?s:null;return St(Xe({},t),{[n]:r||a?[...r||[],...a||[]]:Xe(Xe({},typeof o!="string"?o:{}),typeof s!="string"?s:{})})},this._state)}setKeyState(e,t){this._state[e]=t}};import{isNonNullable as qs,Subscription as Wh}from"@vkontakte/videoplayer-shared";var Us=null,sr=class{constructor(e,t,n={}){!Us&&e.dsn&&(this.sentryClient=new Hs({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Wh,this.options=e,this.context=n,Us=this)}destroy(){var e,t;(e=this.sentryClient)==null||e.destroy(),(t=this.sentrySubscription)==null||t.unsubscribe(),Us=null}logIError(e,t=!1){e.thrown&&this.report(e.thrown,{fatal:t,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,t={},n={}){let{sentryClient:o,context:r,options:s}=this,{sampleRate:a=0,whiteErrorIdList:l,whiteErrorCategoryList:u=[],blackErrorIdList:c,blackErrorCategoryList:m}=s,{errorType:h,category:y}=t;if(qs(y)&&m.includes(y)||qs(h)&&c.includes(h))return;if(Math.random()<=a||qs(y)&&u.includes(y)||qs(h)&&l.includes(h)){Object.keys(t).length&&o.setTags(Xe({version:this.version},t)),(Object.keys(r).length||Object.keys(n).length)&&o.setExtras(Xe(Xe({},r),n));try{h&&o.captureMessage(h,t.fatal?Ir.fatal:Ir.error),o.report(e)}catch(I){console.error(I)}}}static getInstance(){return Us}};var zs=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Ws=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Wd=i=>{let e=i;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},rs=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},No=()=>!!rs(),xs=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},Ks=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},xd=i=>{let e=window.screen;return(o=>mt(void 0,null,function*(){return e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject()}))(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};import{clientChecker as Kd}from"@vkontakte/videoplayer-shared";var jd=()=>({title:G("hotkey_map_modal_title"),closeBtnText:G("hotkey_map_modal_close_btn_text"),groups:[{title:G("hotkey_map_group_title_common"),items:[{description:G("hotkey_map_item_mute_description"),value:G("hotkey_map_item_mute_value")},{description:G("hotkey_map_item_volume_up_description"),value:G("hotkey_map_item_volume_up_value")},{description:G("hotkey_map_item_volume_down_description"),value:G("hotkey_map_item_volume_down_value")},{description:G("hotkey_map_item_pip_description"),value:G("hotkey_map_item_pip_value")},{description:G("hotkey_map_item_full_screen_description"),value:G("hotkey_map_item_full_screen_value")},{description:G("hotkey_map_item_show_context_menu_description"),value:G("hotkey_map_item_show_context_menu_value")},{description:G("hotkey_map_item_show_hotkey_map_description"),value:G("hotkey_map_item_show_hotkey_map_value")}]},{title:G("hotkey_map_group_title_playback"),items:[{description:G("hotkey_map_item_play_toggle_description"),value:G("hotkey_map_item_play_toggle_value")},{description:G("hotkey_map_item_seek_backward_description"),value:G("hotkey_map_item_seek_backward_value")},{description:G("hotkey_map_item_seek_forward_description"),value:G("hotkey_map_item_seek_forward_value")},{description:G("hotkey_map_item_fast_seek_backward_description"),value:G("hotkey_map_item_fast_seek_backward_value")},{description:G("hotkey_map_item_fast_seek_forward_description"),value:G("hotkey_map_item_fast_seek_forward_value")},{description:G("hotkey_map_item_rate_down_description"),value:G("hotkey_map_item_rate_down_value")},{description:G("hotkey_map_item_rate_up_description"),value:G("hotkey_map_item_rate_up_value")},{description:G("hotkey_map_item_prev_frame_description"),value:G("hotkey_map_item_prev_frame_value")},{description:G("hotkey_map_item_next_frame_description"),value:G("hotkey_map_item_next_frame_value")},{description:G("hotkey_map_item_jump_seek_description"),value:G("hotkey_map_item_jump_seek_value")}]},{title:G("hotkey_map_group_title_subtitles"),items:[{description:G("hotkey_map_item_subtitles_toggle_description"),value:G("hotkey_map_item_subtitles_toggle_value")}]},{title:G("hotkey_map_group_title_episodes"),items:[{description:G("hotkey_map_item_prev_episode_description"),value:Kd.isApple?G("hotkey_map_item_prev_episode_mac_value"):G("hotkey_map_item_prev_episode_pc_value")},{description:G("hotkey_map_item_next_episode_description"),value:Kd.isApple?G("hotkey_map_item_next_episode_mac_value"):G("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as xh,clientChecker as Kh,ValueSubject as jh}from"@vkontakte/videoplayer-shared";var lr=class{constructor(){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:xh(this.onResize.bind(this),300)};this.info={isActive$:new jh(this.isActive()),type:0}}isSupported(){return document.pictureInPictureEnabled&&!Kh.isYandex}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return mt(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return mt(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(t){this.isRequested=!1}})}remove(){return mt(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,t;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=Xe({},e)}unregistryEventHandlers(){var e,t;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return mt(this,null,function*(){this.unregistryEventHandlers(),yield this.remove()})}onEnterPictureInPicture(e){var o,r;let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).enterpictureinpicture)==null||r.call(o,e))}onLeavePictureInPicture(e){var o,r,s;let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n==null||n.removeEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).leavepictureinpicture)==null||r.call(o,e),(s=this.playerDummyElement)==null||s.$destroy()}onResize(e){var t,n;(n=(t=this.externalEventHandlers).resize)==null||n.call(t,e)}};function ar(i){return i instanceof lr}function Gh(i){let e=nt();return Ft(()=>{e.getAdmanWrapper().startPostroll()}),[]}var La=class extends H{constructor(e){super(),U(this,e,Gh,null,F,{})}},Gd=La;import{noop as Yh}from"@vkontakte/videoplayer-shared";function Qh(i){ge(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 Zh(i){let e=G("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=Oe(e)},m(n,o){k(n,t,o)},p(n,o){o&3&&e!==(e=G("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Ke(t,e)},d(n){n&&w(t)}}}function Xh(i){let e,t=G("skip_ads_now")+"",n,o,r,s,a,l;return{c(){e=P("div"),n=Oe(t),o=Y(),r=O("svg"),s=O("path"),f(s,"fill-rule","evenodd"),f(s,"clip-rule","evenodd"),f(s,"d","M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"),f(r,"class","icon svelte-1k4i25s"),f(r,"width","7"),f(r,"height","12"),f(r,"viewBox","0 0 7 12"),f(r,"fill","none"),f(r,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","skip svelte-1k4i25s")},m(u,c){k(u,e,c),_(e,n),_(e,o),_(e,r),_(r,s),a||(l=ke(e,"click",vt(function(){ti(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,c){i=u},d(u){u&&w(e),a=!1,l()}}}function Jh(i){let e;function t(r,s){return r[3]?Xh:Zh}let n=t(i,-1),o=n(i);return{c(){e=P("div"),o.c(),f(e,"class","container svelte-1k4i25s"),K(e,"container-mobile",i[4]),K(e,"skippable",i[3])},m(r,s){k(r,e,s),o.m(e,null)},p(r,[s]){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e,null))),s&16&&K(e,"container-mobile",r[4]),s&8&&K(e,"skippable",r[3])},i:me,o:me,d(r){r&&w(e),o.d()}}}function $h(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:s=Yh}=e,l=nt().ui.isMobile;q(i,l,c=>t(4,n=c));let u;return i.$$set=c=>{"position"in c&&t(0,o=c.position),"secondsToWatchBeforeSkip"in c&&t(1,r=c.secondsToWatchBeforeSkip),"skipAd"in c&&t(2,s=c.skipAd)},i.$$.update=()=>{i.$$.dirty&3&&t(3,u=o>0&&o>=r)},[o,r,s,u,n,l]}var Va=class extends H{constructor(e){super(),U(this,e,$h,Jh,F,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},Qh)}},Yd=Va;function eg(i){ge(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 tg(i){let e;return{c(){e=P("button"),e.textContent=`${G("visit_advertiser")}`,f(e,"class","svelte-1wy3dql")},m(t,n){k(t,e,n)},p:me,i:me,o:me,d(t){t&&w(e)}}}var Ra=class extends H{constructor(e){super(),U(this,e,null,tg,F,{},eg)}},Qd=Ra;function ig(i){ge(i,"svelte-354ajf",`.container.svelte-354ajf{width:100%;height:100%}.top-gradient-mobile.svelte-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
|
|
15
15
|
360deg,
|
|
16
16
|
rgba(0, 0, 0, 0) 0%,
|
|
17
17
|
rgba(0, 0, 0, 0.05) 12%,
|
|
@@ -21,17 +21,17 @@ var G_=Object.defineProperty,Y_=Object.defineProperties;var Q_=Object.getOwnProp
|
|
|
21
21
|
rgba(0, 0, 0, 0.5) 77%,
|
|
22
22
|
rgba(0, 0, 0, 0.55) 88%,
|
|
23
23
|
rgba(0, 0, 0, 0.65) 100%
|
|
24
|
-
)}`)}function Ud(i){let e;return{c(){e=I("div"),f(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){w(t,e,n)},d(t){t&&y(e)}}}function zd(i){let e,t;return e=new Hd({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&32&&(r.position=n[5]),o&64&&(r.secondsToWatchBeforeSkip=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Wd(i){let e,t;return e=new Fd({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Kd(i){let e,t;return e=new qd({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function jh(i){let e,t,n,o,r,s,a,l=i[0]&&Ud(i),u=i[3]&&zd(i),c=i[7]&&Wd(i),m=i[4]&&Kd(i);return{c(){e=I("div"),l&&l.c(),t=Y(),n=I("video"),o=Y(),u&&u.c(),r=Y(),c&&c.c(),s=Y(),m&&m.c(),bi(n,"width","100%"),bi(n,"height","100%"),n.playsInline=!0,f(e,"class","container svelte-354ajf")},m(h,C){w(h,e,C),l&&l.m(e,null),_(e,t),_(e,n),i[19](n),_(e,o),u&&u.m(e,null),_(e,r),c&&c.m(e,null),_(e,s),m&&m.m(e,null),i[20](e),a=!0},p(h,[C]){h[0]?l||(l=Ud(h),l.c(),l.m(e,t)):l&&(l.d(1),l=null),h[3]?u?(u.p(h,C),C&8&&d(u,1)):(u=zd(h),u.c(),d(u,1),u.m(e,r)):u&&(ae(),p(u,1,1,()=>{u=null}),ue()),h[7]?c?C&128&&d(c,1):(c=Wd(h),c.c(),d(c,1),c.m(e,s)):c&&(ae(),p(c,1,1,()=>{c=null}),ue()),h[4]?m?C&16&&d(m,1):(m=Kd(h),m.c(),d(m,1),m.m(e,null)):m&&(ae(),p(m,1,1,()=>{m=null}),ue())},i(h){a||(d(u),d(c),d(m),a=!0)},o(h){p(u),p(c),p(m),a=!1},d(h){h&&y(e),l&&l.d(),i[19](null),u&&u.d(),c&&c.d(),m&&m.d(),i[20](null)}}}function Gh(i,e,t){let n,o,r,s,a,{adsSlotId:l=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:c=void 0}=e,{duration:m=0}=e,h=ot(),C=h.state.isEnded$;O(i,C,G=>t(7,a=G));let g=h.ui.isMobile;O(i,g,G=>t(0,o=G));let T,k,H=!1,S=h.ads.playbackState;O(i,S,G=>t(18,n=G));let v=h.ads.canSkip,E=h.ads.position;O(i,E,G=>t(5,r=G));let q=h.ads.secondsToWatchBeforeSkip;O(i,q,G=>t(6,s=G));let U,F;Lt(()=>{let G=h.getAdmanWrapper();if(!l){G.onAdmanLoadingError();return}let J=new AbortController,Q=()=>{J.abort()},{width:W,height:ce}=Ye(h.ui.playerSize),z=Ye(h.ui.isFullscreen),x=Ye(h.ui.isAutoplay),P={width:W,height:ce,isFullscreen:z,isAutoplay:x,adsContainer:T,adsVideoElement:k,slotId:l,params:u,previewParam:c,duration:m};return window.AdmanHTML?(G.initAdman(P),H=!0):G.loadAdman(J.signal).then(()=>{G.initAdman(P),H=!0}).catch(()=>{G.onAdmanLoadingError()}),()=>{!H&&Q()}});function ie(G){ge[G?"unshift":"push"](()=>{k=G,t(2,k)})}function fe(G){ge[G?"unshift":"push"](()=>{T=G,t(1,T)})}return i.$$set=G=>{"adsSlotId"in G&&t(14,l=G.adsSlotId),"adsParams"in G&&t(15,u=G.adsParams),"adsPreviewParam"in G&&t(16,c=G.adsPreviewParam),"duration"in G&&t(17,m=G.duration)},i.$$.update=()=>{i.$$.dirty&262144&&t(3,U=v&&n!=="inactive"),i.$$.dirty&262145&&t(4,F=o&&n!=="inactive")},[o,T,k,U,F,r,s,a,h,C,g,S,E,q,l,u,c,m,n,ie,fe]}var Ta=class extends N{constructor(e){super(),D(this,e,Gh,jh,R,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},xh)}},qs=Ta;var Fn=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(r=>r>9?String(r):`0${r}`).join(":")};function Yh(i){let e,t,n,o,r=i[2].default,s=Ve(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("path"),f(t,"fill","none"),f(t,"stroke","#fff"),f(t,"stroke-width","2"),f(t,"d","M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"),f(n,"fill","#f0f2f5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"),we(e,l)},m(u,c){w(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Be(s,r,u,u[1],o?Re(r,u[1],c,null):Ne(u[1]),null),we(e,l=qe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&y(e),s&&s.d(u)}}}function Qh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ia=class extends N{constructor(e){super(),D(this,e,Qh,Yh,R,{})}},xd=Ia;function Zh(i){let e,t,n,o,r=i[2].default,s=Ve(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("rect"),n=M("path"),f(t,"width","42"),f(t,"height","20"),f(t,"fill","#FF3347"),f(t,"rx","5"),f(n,"fill","#F2F3F5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z"),f(n,"clip-rule","evenodd"),we(e,l)},m(u,c){w(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Be(s,r,u,u[1],o?Re(r,u[1],c,null):Ne(u[1]),null),we(e,l=qe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&y(e),s&&s.d(u)}}}function Xh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Pa=class extends N{constructor(e){super(),D(this,e,Xh,Zh,R,{})}},jd=Pa;function Jh(i){let e,t;return e=new xd({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function $h(i){let e,t;return e=new jd({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function eg(i){let e,t,n,o,r=[$h,Jh],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Je()},m(l,u){s[e].m(l,u),w(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e!==c&&(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t||(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&y(n),s[e].d(l)}}}function tg(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Ea=class extends N{constructor(e){super(),D(this,e,tg,eg,R,{isActive:0})}},Us=Ea;function ig(i){ve(i,"svelte-i7xnqb",".thumb-timer.svelte-i7xnqb.svelte-i7xnqb{position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;padding:0 7px;border-radius:3px;background:var(--black-alpha-40);color:var(--white);font-size:12.5px;line-height:23px;height:23px;white-space:nowrap;transition:visibility var(--controls-transition-duration), opacity var(--controls-transition-duration)}.thumb-timer.live.svelte-i7xnqb.svelte-i7xnqb{font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red)}.thumb-timer.hidden.svelte-i7xnqb.svelte-i7xnqb{visibility:hidden;opacity:0}.thumb-timer.svelte-i7xnqb.svelte-i7xnqb:after{content:'';display:inline-block;vertical-align:middle;height:100%}.thumb-timer-live-icon.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px}.thumb-timer-equalizer.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px}.live.svelte-i7xnqb .thumb-timer-equalizer.svelte-i7xnqb{margin-top:-2px}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb{width:2px;height:10px;margin-right:2px;background:var(--white);position:absolute;bottom:0;transform-origin:50% 100%;animation:1.5s infinite linear alternate;animation-play-state:paused}.thumb-timer.playing.svelte-i7xnqb .thumb-timer-equalizer .col.svelte-i7xnqb{animation-play-state:running}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(1){left:0;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col1}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(2){left:3px;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col2}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(3){left:6px;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col3}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col1{0%{transform:scaleY(0.1)}25%{transform:scaleY(0.8)}50%{transform:scaleY(0.4)}75%{transform:scaleY(0.6)}100%{transform:scaleY(0.1)}}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(0.3)}50%{transform:scaleY(0.9)}75%{transform:scaleY(0.6)}100%{transform:scaleY(1)}}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col3{0%{transform:scaleY(0.6)}25%{transform:scaleY(0.9)}50%{transform:scaleY(0.1)}75%{transform:scaleY(0.9)}100%{transform:scaleY(0.6)}}.thumb-timer-text.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;text-align:right}")}function ng(i){let e=Fn(i[4]-i[3])+"",t;return{c(){t=He(e)},m(n,o){w(n,t,o)},p(n,o){o&24&&e!==(e=Fn(n[4]-n[3])+"")&&je(t,e)},i:me,o:me,d(n){n&&y(t)}}}function og(i){let e,t,n;return t=new Us({props:{isActive:!0}}),{c(){e=I("div"),B(t.$$.fragment),f(e,"class","thumb-timer-live-icon svelte-i7xnqb")},m(o,r){w(o,e,r),L(t,e,null),n=!0},p:me,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),V(t)}}}function rg(i){let e,t,n,o,r,s,a,l=[og,ng],u=[];function c(m,h){return m[1]?0:1}return r=c(i,-1),s=u[r]=l[r](i),{c(){e=I("div"),t=I("div"),t.innerHTML='<div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div>',n=Y(),o=I("span"),s.c(),f(t,"class","thumb-timer-equalizer svelte-i7xnqb"),f(o,"class","thumb-timer-text svelte-i7xnqb"),f(e,"role","timer"),f(e,"class","thumb-timer svelte-i7xnqb"),f(e,"data-testid","thumb-timer"),K(e,"live",i[1]),K(e,"hidden",i[0]),K(e,"playing",i[2])},m(m,h){w(m,e,h),_(e,t),_(e,n),_(e,o),u[r].m(o,null),a=!0},p(m,[h]){let C=r;r=c(m,h),r===C?u[r].p(m,h):(ae(),p(u[C],1,1,()=>{u[C]=null}),ue(),s=u[r],s?s.p(m,h):(s=u[r]=l[r](m),s.c()),d(s,1),s.m(o,null)),(!a||h&2)&&K(e,"live",m[1]),(!a||h&1)&&K(e,"hidden",m[0]),(!a||h&4)&&K(e,"playing",m[2])},i(m){a||(d(s),a=!0)},o(m){p(s),a=!1},d(m){m&&y(e),u[r].d()}}}function sg(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:r=!1}=e,{position:s}=e,{duration:a}=e;return i.$$set=l=>{"isHidden"in l&&t(0,n=l.isHidden),"isLive"in l&&t(1,o=l.isLive),"isPlaying"in l&&t(2,r=l.isPlaying),"position"in l&&t(3,s=l.position),"duration"in l&&t(4,a=l.duration)},[n,o,r,s,a]}var Aa=class extends N{constructor(e){super(),D(this,e,sg,rg,R,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},ig)}},zs=Aa;var Pr=i=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=i,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};import{ChromecastState as gg}from"@vkontakte/videoplayer-core";import{clientChecker as Gd}from"@vkontakte/videoplayer-shared";var Yn=i=>{i.stopPropagation(),i.preventDefault()},ag=i=>{var t;let e=i.previousElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.lastElementChild),e==null||e.focus()},ug=i=>{var t;let e=i.nextElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.firstElementChild),e==null||e.focus()},cg=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},fg=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},Yd=i=>i.code==="Escape",dg=i=>i.code==="ArrowLeft",ts=(i,e=[])=>{let t=i.code;return["Enter","Space",...e].includes(t)},Qd=i=>{if(cg(i)){Yn(i),ug(i.target);return}fg(i)&&(Yn(i),ag(i.target))},Er=i=>!Gd.isAndroid&&(i==null?void 0:i.detail)===0||Gd.isAndroid&&(i==null?void 0:i.pointerType)==="",Ar=(i,e,t)=>pt(void 0,null,function*(){yield to(),i&&!i.classList.contains("opened")&&!e&&Ye(t)&&(yield to(),t.set(!1),i.focus())}),Zd=(i,e,t)=>pt(void 0,null,function*(){yield to(),i&&!e&&Ye(t)&&(t.set(!1),i.focus())}),po=(i,e,t)=>pt(void 0,null,function*(){var o;yield to(),!!i&&e&&t&&((o=i.children[0])==null||o.focus())}),Xd=(i,e)=>pt(void 0,null,function*(){setTimeout(()=>{let t=i[e];!!t&&t.focus()},100)}),Ws=(i,e)=>{Qd(i),Yd(i)&&(Yn(i),e())},Ks=(i,e,t)=>pt(void 0,null,function*(){if(ts(i,["ArrowRight"])){Yn(i),e(),yield to();let n=t();n==null||n.focus()}}),Jd=(r,s,a,l)=>pt(void 0,[r,s,a,l],function*(i,e,{itemIdReturnCase:t,id:n},o){if(Qd(i),dg(i)){Yn(i),e(),t.set(n);return}Yd(i)&&(Yn(i),o())}),Mr=(i,e)=>{ts(i)&&(Yn(i),e())},$d=(i,e,t)=>{if(ts(i))Yn(i),t(!e);else{let n=i.code;if(n==="ArrowLeft"&&e){t(!1),Yn(i);return}n==="ArrowRight"&&!e&&(t(!0),Yn(i))}},e1=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},t1=i=>{if(!i)return{top:0,left:0};let e=i.getBoundingClientRect(),t=-58,n=8,o=e.left+n;return{bottom:e.bottom+t,left:o}};import{isNullable as js,isValidURL as bg}from"@vkontakte/videoplayer-shared";var xs=(n=>(n.OPEN_SUB_MENU="OPEN_SUB_MENU",n.CLICK="CLICK",n.SWITCH="SWITCH",n))(xs||{});var io={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};import{noop as i1}from"@vkontakte/videoplayer-shared";function pg(i){ve(i,"svelte-1hm4mm9",".item.svelte-1hm4mm9{padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap}.item.svelte-1hm4mm9:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function _g(i){let e,t,n,o,r;return{c(){var s;e=I("li"),t=He(i[1]),f(e,"class","item svelte-1hm4mm9"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",n=(s=i[2])!=null?s:i[1]),f(e,"data-testid",i[0])},m(s,a){w(s,e,a),_(e,t),o||(r=[ke(e,"click",bt(i[3])),ke(e,"keydown",i[4])],o=!0)},p(s,[a]){var l;a&2&&je(t,s[1]),a&6&&n!==(n=(l=s[2])!=null?l:s[1])&&f(e,"aria-label",n),a&1&&f(e,"data-testid",s[0])},i:me,o:me,d(s){s&&y(e),o=!1,ct(r)}}}function hg(i,e,t){let{id:n}=e,{onClick:o=i1}=e,{closeContextMenu:r=i1}=e,{label:s}=e,{ariaLabel:a}=e,l=()=>{o(),r()},u=c=>{Mr(c,()=>l())};return i.$$set=c=>{"id"in c&&t(0,n=c.id),"onClick"in c&&t(5,o=c.onClick),"closeContextMenu"in c&&t(6,r=c.closeContextMenu),"label"in c&&t(1,s=c.label),"ariaLabel"in c&&t(2,a=c.ariaLabel)},[n,s,a,l,u,o,r]}var Ma=class extends N{constructor(e){super(),D(this,e,hg,_g,R,{id:0,onClick:5,closeContextMenu:6,label:1,ariaLabel:2},pg)}},n1=Ma;var cr=(i,e)=>i.weight-e.weight;function vg(i){ve(i,"svelte-1p5ukkp","ul.svelte-1p5ukkp{position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}")}function o1(i,e,t){let n=i.slice();return n[52]=e[t],n}function r1(i){let e,t,n,o,r=wt(i[2]),s=[];for(let l=0;l<r.length;l+=1)s[l]=s1(o1(i,r,l));let a=l=>p(s[l],1,1,()=>{s[l]=null});return{c(){e=I("ul");for(let l=0;l<s.length;l+=1)s[l].c();f(e,"role","menu"),bi(e,"top",i[4]+"px"),bi(e,"left",i[3]+"px"),f(e,"class","svelte-1p5ukkp")},m(l,u){w(l,e,u);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(e,null);i[34](e),t=!0,n||(o=[ke(e,"contextmenu",ri(i[33])),ke(e,"keydown",i[13])],n=!0)},p(l,u){if(u[0]&4100){r=wt(l[2]);let c;for(c=0;c<r.length;c+=1){let m=o1(l,r,c);s[c]?(s[c].p(m,u),d(s[c],1)):(s[c]=s1(m),s[c].c(),d(s[c],1),s[c].m(e,null))}for(ae(),c=r.length;c<s.length;c+=1)a(c);ue()}(!t||u[0]&16)&&bi(e,"top",l[4]+"px"),(!t||u[0]&8)&&bi(e,"left",l[3]+"px")},i(l){if(!t){for(let u=0;u<r.length;u+=1)d(s[u]);t=!0}},o(l){s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)p(s[u]);t=!1},d(l){l&&y(e),mi(s,l),i[34](null),n=!1,ct(o)}}}function s1(i){let e,t;return e=new n1({props:{id:i[52].id,label:i[52].label,ariaLabel:i[52].ariaLabel,onClick:i[52].onClick,closeContextMenu:i[12]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.id=n[52].id),o[0]&4&&(r.label=n[52].label),o[0]&4&&(r.ariaLabel=n[52].ariaLabel),o[0]&4&&(r.onClick=n[52].onClick),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function yg(i){let e,t,n=i[1]&&r1(i);return{c(){n&&n.c(),e=Je()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,r){o[1]?n?(n.p(o,r),r[0]&2&&d(n,1)):(n=r1(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),p(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function wg(i,e,t){var et,De,tt;let n,o,r,s,a,l,u,c,m,h,C,g,T,k,H,{visible:S=!1}=e,{supportLink:v}=e,{position:E={top:0,left:0}}=e,{playerContainerRef:q=void 0}=e,{controlsContainerRef:U=void 0}=e,{menuElementRef:F=void 0}=e,{returnFocus:ie}=e,fe=0,G=0,J=ot(),Q=Vt(),W=J.ui.contextMenu.visible$,ce=J.ui.debugPanelVisible;O(i,ce,Fe=>t(28,h=Fe));let z=J.ui.additionalContextMenuItems$;O(i,z,Fe=>t(27,m=Fe));let x=J.webApi.pictureInPictureApi,P=(et=J.webApi.pictureInPictureApi)==null?void 0:et.info.isActive$;O(i,P,Fe=>t(30,T=Fe));let $=J.actions.internal.togglePictureInPicture,le=J.state.chromecastState$;O(i,le,Fe=>t(31,k=Fe));let Me=J.state.isLive$;O(i,Me,Fe=>t(32,H=Fe));let te=J.state.positionExact$;O(i,te,Fe=>t(35,g=Fe));let be=J.state.isInteractive,Ee=J.state.looped$;O(i,Ee,Fe=>t(29,C=Fe));let Te=()=>{W.set(!1),ie==null||ie()},Ie=(Fe,ft)=>{if(!F||!q||!U)return;let dt=F.getBoundingClientRect(),he=q.getBoundingClientRect();t(3,fe=Fe-he.left),t(4,G=ft-he.top),fe+dt.width>he.width&&t(3,fe=he.width-dt.width),G+dt.height>he.height&&t(4,G=he.height-dt.height),t(3,fe=Math.max(fe,0)),t(4,G=Math.max(G,0))},rt=()=>{J.actions.internal.videoRotate()},Ae=()=>{bg(v)&&window.open(v,"_blank"),J.actions.internal.reportProblem(),J.actions.internal.pause()},We=()=>{let Fe=J.actions.internal.getDebugTextData();if(Q.features.saveDebugInfoToFile){let ft=new Blob([...Fe],{type:"plain/text"}),dt=window.URL.createObjectURL(ft);rr(dt,"vk_player_debug_info","txt")}else Pr(J.actions.internal.getDebugTextData())},ee=()=>{let Fe=J.actions.internal.getTraceTextData(),ft=new Blob([...Fe],{type:"application/json"}),dt=window.URL.createObjectURL(ft);rr(dt,"vk_player_trace_info","json")},pe=()=>{ce.set(!0)},Ce=()=>pt(this,null,function*(){try{$()}finally{ie==null||ie()}}),xe=()=>{J.actions.internal.setLooped(!C)},st=()=>{var Fe,ft;if(r){let dt=(ft=(Fe=J.callbacks)==null?void 0:Fe.onCopyEmbedCodeClicked)==null?void 0:ft.call(Fe);dt&&Pr(dt)}},at=(Fe=!1)=>{var ft,dt;if((ft=J.callbacks)!=null&&ft.onCopyVideoLink){let he=(dt=J.callbacks)==null?void 0:dt.onCopyVideoLink(Fe,g);he&&Pr(he)}},nt=Fe=>{Ws(Fe,Te)},$e=[];function de(Fe){Dn.call(this,i,Fe)}function Se(Fe){ge[Fe?"unshift":"push"](()=>{F=Fe,t(0,F)})}return i.$$set=Fe=>{"visible"in Fe&&t(1,S=Fe.visible),"supportLink"in Fe&&t(14,v=Fe.supportLink),"position"in Fe&&t(15,E=Fe.position),"playerContainerRef"in Fe&&t(16,q=Fe.playerContainerRef),"controlsContainerRef"in Fe&&t(17,U=Fe.controlsContainerRef),"menuElementRef"in Fe&&t(0,F=Fe.menuElementRef),"returnFocus"in Fe&&t(18,ie=Fe.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&67108864|i.$$.dirty[1]&2&&t(25,o=n&&!H&&!be),i.$$.dirty[1]&1&&t(23,s=x&&k!==gg.CONNECTED&&!be),i.$$.dirty[0]&1073741824&&t(21,l=Q.showSupport&&!T),i.$$.dirty[0]&229377&&F&&q&&U){let{top:Fe,left:ft,bottom:dt,right:he}=E,_t=ft!=null?ft:0,kt=Fe!=null?Fe:0,Ct=F.getBoundingClientRect();js(ft)&&!js(he)&&(_t=he-Ct.width),js(Fe)&&!js(dt)&&(kt=dt-Ct.height),_t=Math.max(_t,0),kt=Math.max(kt,0),Ie(_t,kt)}i.$$.dirty[0]&1073217540&&(t(2,$e=[]),n&&$e.push({id:"copy-link",weight:io["copy-link"],label:j("menu_copy_video_link"),onClick:()=>at()}),o&&$e.push({id:"copy-link-timestamp",weight:io["copy-link-timestamp"],label:j("menu_copy_video_link_with_timestamp"),onClick:()=>at(!0)}),r&&$e.push({id:"copy-embed-code",weight:io["copy-embed-code"],label:j("menu_copy_embed_code"),onClick:st}),s&&$e.push({id:"pip",weight:io.pip,label:j("menu_pip"),onClick:Ce}),$e.push({id:"video-loop",weight:io["video-loop"],label:C?j("menu_video_loop_off"):j("menu_video_loop_on"),ariaLabel:j("aria_label_menu_loop"),onClick:xe}),a&&$e.push({id:"rotate",weight:io.rotate,label:j("menu_video_rotate"),ariaLabel:j("aria_label_menu_rotate"),onClick:rt}),l&&$e.push({id:"report",weight:io.report,label:j("menu_report"),ariaLabel:`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`,onClick:Ae}),$e.push({id:"save-debug",weight:io["save-debug"],label:c,onClick:We}),u&&$e.push({id:"save-trace",weight:io["save-trace"],label:j("menu_save_debug"),onClick:ee}),$e.push({id:"debug-info",weight:io["debug-info"],label:j("menu_debug_overlay"),ariaLabel:h?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"),onClick:pe}),t(2,$e=[...$e,...m].sort(cr)))},t(26,n=Q.features.copyVideoLink&&((De=J.callbacks)==null?void 0:De.onCopyVideoLink)),t(24,r=!!((tt=J.callbacks)!=null&&tt.onCopyEmbedCodeClicked)),t(22,a=Q.features.videoRotate&&!be),t(19,u=Q.features.saveTraceInfoToFile),t(20,c=Q.features.saveDebugInfoToFile?j("menu_save_debug"):j("menu_copy_debug")),[F,S,$e,fe,G,ce,z,P,le,Me,te,Ee,Te,nt,v,E,q,U,ie,u,c,l,a,s,r,o,n,m,h,C,T,k,H,de,Se]}var La=class extends N{constructor(e){super(),D(this,e,wg,yg,R,{visible:1,supportLink:14,position:15,playerContainerRef:16,controlsContainerRef:17,menuElementRef:0,returnFocus:18},vg,[-1,-1])}},l1=La;var Gs=class{constructor(e){this.value=e,this.next=null}};var Lr=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new Gs(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 kg(i){ve(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function Cg(i){let e,t;return{c(){e=I("div"),t=I("canvas"),f(t,"class","svelte-1ssl9eb"),f(e,"class","container svelte-1ssl9eb")},m(n,o){w(n,e,o),_(e,t),i[3](t)},p:me,i:me,o:me,d(n){n&&y(e),i[3](null)}}}var Va=16,Ra=120,a1=60;function Sg(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function Tg(i,e,t){let{values:n=[]}=e,o,r,s=Ra/a1;Lt(()=>{t(0,o.width=Ra,o),t(0,o.height=Va,o),t(2,r=o.getContext("2d"))});function a(l){ge[l?"unshift":"push"](()=>{o=l,t(0,o)})}return i.$$set=l=>{"values"in l&&t(1,n=l.values)},i.$$.update=()=>{if(i.$$.dirty&6){let l="";if(r){let u=n[0];for(let m=1;m<n.length;m++)n[m]>u&&(u=n[m]);r.clearRect(0,0,Ra,Va);let c=a1-1;for(let m=n.length-1;m>=0;m--){let h=c*s,C=u>0?Va*(n[m]/u):0;Sg(r,h,0,s,C),l=C+" "+l,c--}}}},[o,n,r,a]}var Ba=class extends N{constructor(e){super(),D(this,e,Tg,Cg,R,{values:1},kg)}},Ys=Ba;import{safeStorage as u1}from"@vkontakte/videoplayer-shared";function Ig(i){ve(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 c1(i){let e,t,n,o,r=i[0].id+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="Video id",n=Y(),o=I("span"),s=He(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].id+"")&&je(s,r)},d(a){a&&y(e)}}}function f1(i){let e,t,n,o,r=i[0].vsid+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="VSID",n=Y(),o=I("span"),s=He(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].vsid+"")&&je(s,r)},d(a){a&&y(e)}}}function d1(i){let e,t,n,o,r=i[0].provider+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="Provider",n=Y(),o=I("span"),s=He(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].provider+"")&&je(s,r)},d(a){a&&y(e)}}}function m1(i){let e,t,n,o,r,s=(i[0].videoCodec||"")+"",a,l,u=i[0].hdr?"(HDR)":"",c,m,h=(i[0].audioCodec||"")+"",C,g,T=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",k;return{c(){e=I("div"),t=I("div"),t.textContent="Streams",n=Y(),o=I("span"),r=He("Video: "),a=He(s),l=Y(),c=He(u),m=He(`
|
|
24
|
+
)}`)}function Zd(i){let e;return{c(){e=P("div"),f(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){k(t,e,n)},d(t){t&&w(e)}}}function Xd(i){let e,t;return e=new Yd({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&32&&(r.position=n[5]),o&64&&(r.secondsToWatchBeforeSkip=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Jd(i){let e,t;return e=new Gd({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function $d(i){let e,t;return e=new Qd({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function ng(i){let e,t,n,o,r,s,a,l=i[0]&&Zd(i),u=i[3]&&Xd(i),c=i[7]&&Jd(i),m=i[4]&&$d(i);return{c(){e=P("div"),l&&l.c(),t=Y(),n=P("video"),o=Y(),u&&u.c(),r=Y(),c&&c.c(),s=Y(),m&&m.c(),vi(n,"width","100%"),vi(n,"height","100%"),n.playsInline=!0,f(e,"class","container svelte-354ajf")},m(h,y){k(h,e,y),l&&l.m(e,null),_(e,t),_(e,n),i[19](n),_(e,o),u&&u.m(e,null),_(e,r),c&&c.m(e,null),_(e,s),m&&m.m(e,null),i[20](e),a=!0},p(h,[y]){h[0]?l||(l=Zd(h),l.c(),l.m(e,t)):l&&(l.d(1),l=null),h[3]?u?(u.p(h,y),y&8&&d(u,1)):(u=Xd(h),u.c(),d(u,1),u.m(e,r)):u&&(se(),p(u,1,1,()=>{u=null}),le()),h[7]?c?y&128&&d(c,1):(c=Jd(h),c.c(),d(c,1),c.m(e,s)):c&&(se(),p(c,1,1,()=>{c=null}),le()),h[4]?m?y&16&&d(m,1):(m=$d(h),m.c(),d(m,1),m.m(e,null)):m&&(se(),p(m,1,1,()=>{m=null}),le())},i(h){a||(d(u),d(c),d(m),a=!0)},o(h){p(u),p(c),p(m),a=!1},d(h){h&&w(e),l&&l.d(),i[19](null),u&&u.d(),c&&c.d(),m&&m.d(),i[20](null)}}}function og(i,e,t){let n,o,r,s,a,{adsSlotId:l=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:c=void 0}=e,{duration:m=0}=e,h=nt(),y=h.state.isEnded$;q(i,y,Q=>t(7,a=Q));let g=h.ui.isMobile;q(i,g,Q=>t(0,o=Q));let I,C,V=!1,S=h.ads.playbackState;q(i,S,Q=>t(18,n=Q));let v=h.ads.canSkip,E=h.ads.position;q(i,E,Q=>t(5,r=Q));let W=h.ads.secondsToWatchBeforeSkip;q(i,W,Q=>t(6,s=Q));let D,L;Ft(()=>{let Q=h.getAdmanWrapper();if(!l){Q.onAdmanLoadingError();return}let ee=$=>{Q.initAdman($),V=!0},X=new AbortController,x=()=>{X.abort()},{width:ce,height:z}=je(h.ui.playerSize),j=je(h.ui.isFullscreen),A=je(h.ui.isAutoplay),de={width:ce,height:z,isFullscreen:j,isAutoplay:A,adsContainer:I,adsVideoElement:C,slotId:l,params:u,previewParam:c,duration:m};return window.AdmanHTML?ee(de):Q.loadAdman(X.signal).then(()=>{ee(de)}).catch(()=>{Q.onAdmanLoadingError()}),()=>{!V&&x()}});function J(Q){be[Q?"unshift":"push"](()=>{C=Q,t(2,C)})}function ue(Q){be[Q?"unshift":"push"](()=>{I=Q,t(1,I)})}return i.$$set=Q=>{"adsSlotId"in Q&&t(14,l=Q.adsSlotId),"adsParams"in Q&&t(15,u=Q.adsParams),"adsPreviewParam"in Q&&t(16,c=Q.adsPreviewParam),"duration"in Q&&t(17,m=Q.duration)},i.$$.update=()=>{i.$$.dirty&262144&&t(3,D=v&&n!=="inactive"),i.$$.dirty&262145&&t(4,L=o&&n!=="inactive")},[o,I,C,D,L,r,s,a,h,y,g,S,E,W,l,u,c,m,n,J,ue]}var Ba=class extends H{constructor(e){super(),U(this,e,og,ng,F,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},ig)}},js=Ba;var Hn=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);e-=n*60;let o=[n,e].map(r=>String(r).padStart(2,"0")).join(":");return t>0&&(o=`${t}:${o}`),o};function rg(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=O("svg"),s&&s.c(),t=O("path"),n=O("path"),f(t,"fill","none"),f(t,"stroke","#fff"),f(t,"stroke-width","2"),f(t,"d","M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"),f(n,"fill","#f0f2f5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"),ye(e,l)},m(u,c){k(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),ye(e,l=Fe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&w(e),s&&s.d(u)}}}function sg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Na=class extends H{constructor(e){super(),U(this,e,sg,rg,F,{})}},e1=Na;function lg(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=O("svg"),s&&s.c(),t=O("rect"),n=O("path"),f(t,"width","42"),f(t,"height","20"),f(t,"fill","#FF3347"),f(t,"rx","5"),f(n,"fill","#F2F3F5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z"),f(n,"clip-rule","evenodd"),ye(e,l)},m(u,c){k(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),ye(e,l=Fe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&w(e),s&&s.d(u)}}}function ag(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Da=class extends H{constructor(e){super(),U(this,e,ag,lg,F,{})}},t1=Da;function ug(i){let e,t;return e=new e1({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function cg(i){let e,t;return e=new t1({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function fg(i){let e,t,n,o,r=[cg,ug],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=$e()},m(l,u){s[e].m(l,u),k(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e!==c&&(se(),p(s[c],1,1,()=>{s[c]=null}),le(),t=s[e],t||(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),s[e].d(l)}}}function dg(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Oa=class extends H{constructor(e){super(),U(this,e,dg,fg,F,{isActive:0})}},Gs=Oa;function mg(i){ge(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 pg(i){let e=Hn(i[4]-i[3])+"",t;return{c(){t=Oe(e)},m(n,o){k(n,t,o)},p(n,o){o&24&&e!==(e=Hn(n[4]-n[3])+"")&&Ke(t,e)},i:me,o:me,d(n){n&&w(t)}}}function _g(i){let e,t,n;return t=new Gs({props:{isActive:!0}}),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","thumb-timer-live-icon svelte-i7xnqb")},m(o,r){k(o,e,r),R(t,e,null),n=!0},p:me,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),B(t)}}}function hg(i){let e,t,n,o,r,s,a,l=[_g,pg],u=[];function c(m,h){return m[1]?0:1}return r=c(i,-1),s=u[r]=l[r](i),{c(){e=P("div"),t=P("div"),t.innerHTML='<div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div>',n=Y(),o=P("span"),s.c(),f(t,"class","thumb-timer-equalizer svelte-i7xnqb"),f(o,"class","thumb-timer-text svelte-i7xnqb"),f(e,"role","timer"),f(e,"class","thumb-timer svelte-i7xnqb"),f(e,"data-testid","thumb-timer"),K(e,"live",i[1]),K(e,"hidden",i[0]),K(e,"playing",i[2])},m(m,h){k(m,e,h),_(e,t),_(e,n),_(e,o),u[r].m(o,null),a=!0},p(m,[h]){let y=r;r=c(m,h),r===y?u[r].p(m,h):(se(),p(u[y],1,1,()=>{u[y]=null}),le(),s=u[r],s?s.p(m,h):(s=u[r]=l[r](m),s.c()),d(s,1),s.m(o,null)),(!a||h&2)&&K(e,"live",m[1]),(!a||h&1)&&K(e,"hidden",m[0]),(!a||h&4)&&K(e,"playing",m[2])},i(m){a||(d(s),a=!0)},o(m){p(s),a=!1},d(m){m&&w(e),u[r].d()}}}function gg(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:r=!1}=e,{position:s}=e,{duration:a}=e;return i.$$set=l=>{"isHidden"in l&&t(0,n=l.isHidden),"isLive"in l&&t(1,o=l.isLive),"isPlaying"in l&&t(2,r=l.isPlaying),"position"in l&&t(3,s=l.position),"duration"in l&&t(4,a=l.duration)},[n,o,r,s,a]}var Fa=class extends H{constructor(e){super(),U(this,e,gg,hg,F,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},mg)}},Ys=Fa;var Pr=i=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=i,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};import{ChromecastState as Eg}from"@vkontakte/videoplayer-core";import{clientChecker as i1}from"@vkontakte/videoplayer-shared";var Yn=i=>{i.stopPropagation(),i.preventDefault()},vg=i=>{var t;let e=i.previousElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.lastElementChild),e==null||e.focus()},yg=i=>{var t;let e=i.nextElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.firstElementChild),e==null||e.focus()},wg=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},kg=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},n1=i=>i.code==="Escape",Cg=i=>i.code==="ArrowLeft",ss=(i,e=[])=>{let t=i.code;return["Enter","Space",...e].includes(t)},o1=i=>{if(wg(i)){Yn(i),yg(i.target);return}kg(i)&&(Yn(i),vg(i.target))},Er=i=>!i1.isAndroid&&(i==null?void 0:i.detail)===0||i1.isAndroid&&(i==null?void 0:i.pointerType)==="",Ar=(i,e,t)=>mt(void 0,null,function*(){yield cn(),i&&!i.classList.contains("opened")&&!e&&je(t)&&(yield cn(),t.set(!1),i.focus())}),r1=(i,e,t)=>mt(void 0,null,function*(){yield cn(),i&&!e&&je(t)&&(t.set(!1),i.focus())}),vo=(i,e,t)=>mt(void 0,null,function*(){var o;yield cn(),!!i&&e&&t&&((o=i.children[0])==null||o.focus())}),s1=(i,e)=>mt(void 0,null,function*(){setTimeout(()=>{let t=i[e];!!t&&t.focus()},100)}),Qs=(i,e)=>{o1(i),n1(i)&&(Yn(i),e())},Zs=(i,e,t)=>mt(void 0,null,function*(){if(ss(i,["ArrowRight"])){Yn(i),e(),yield cn();let n=t();n==null||n.focus()}}),l1=(r,s,a,l)=>mt(void 0,[r,s,a,l],function*(i,e,{itemIdReturnCase:t,id:n},o){if(o1(i),Cg(i)){Yn(i),e(),t.set(n);return}n1(i)&&(Yn(i),o())}),Mr=(i,e)=>{ss(i)&&(Yn(i),e())},a1=(i,e,t)=>{if(ss(i))Yn(i),t(!e);else{let n=i.code;if(n==="ArrowLeft"&&e){t(!1),Yn(i);return}n==="ArrowRight"&&!e&&(t(!0),Yn(i))}},u1=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},c1=i=>{if(!i)return{top:0,left:0};let e=i.getBoundingClientRect(),t=-58,n=8,o=e.left+n;return{bottom:e.bottom+t,left:o}};import{isNullable as Js,isValidURL as Ag}from"@vkontakte/videoplayer-shared";var Xs=(n=>(n.OPEN_SUB_MENU="OPEN_SUB_MENU",n.CLICK="CLICK",n.SWITCH="SWITCH",n))(Xs||{});var ro={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};import{noop as f1}from"@vkontakte/videoplayer-shared";function Tg(i){ge(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 Ig(i){let e,t,n,o,r;return{c(){var s;e=P("li"),t=Oe(i[1]),f(e,"class","item svelte-1hm4mm9"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",n=(s=i[2])!=null?s:i[1]),f(e,"data-testid",i[0])},m(s,a){k(s,e,a),_(e,t),o||(r=[ke(e,"click",vt(i[3])),ke(e,"keydown",i[4])],o=!0)},p(s,[a]){var l;a&2&&Ke(t,s[1]),a&6&&n!==(n=(l=s[2])!=null?l:s[1])&&f(e,"aria-label",n),a&1&&f(e,"data-testid",s[0])},i:me,o:me,d(s){s&&w(e),o=!1,ut(r)}}}function Pg(i,e,t){let{id:n}=e,{onClick:o=f1}=e,{closeContextMenu:r=f1}=e,{label:s}=e,{ariaLabel:a}=e,l=()=>{o(),r()},u=c=>{Mr(c,()=>l())};return i.$$set=c=>{"id"in c&&t(0,n=c.id),"onClick"in c&&t(5,o=c.onClick),"closeContextMenu"in c&&t(6,r=c.closeContextMenu),"label"in c&&t(1,s=c.label),"ariaLabel"in c&&t(2,a=c.ariaLabel)},[n,s,a,l,u,o,r]}var Ha=class extends H{constructor(e){super(),U(this,e,Pg,Ig,F,{id:0,onClick:5,closeContextMenu:6,label:1,ariaLabel:2},Tg)}},d1=Ha;var cr=(i,e)=>i.weight-e.weight;function Mg(i){ge(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 m1(i,e,t){let n=i.slice();return n[52]=e[t],n}function p1(i){let e,t,n,o,r=Tt(i[2]),s=[];for(let l=0;l<r.length;l+=1)s[l]=_1(m1(i,r,l));let a=l=>p(s[l],1,1,()=>{s[l]=null});return{c(){e=P("ul");for(let l=0;l<s.length;l+=1)s[l].c();f(e,"role","menu"),vi(e,"top",i[4]+"px"),vi(e,"left",i[3]+"px"),f(e,"class","svelte-1p5ukkp")},m(l,u){k(l,e,u);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(e,null);i[34](e),t=!0,n||(o=[ke(e,"contextmenu",ui(i[33])),ke(e,"keydown",i[13])],n=!0)},p(l,u){if(u[0]&4100){r=Tt(l[2]);let c;for(c=0;c<r.length;c+=1){let m=m1(l,r,c);s[c]?(s[c].p(m,u),d(s[c],1)):(s[c]=_1(m),s[c].c(),d(s[c],1),s[c].m(e,null))}for(se(),c=r.length;c<s.length;c+=1)a(c);le()}(!t||u[0]&16)&&vi(e,"top",l[4]+"px"),(!t||u[0]&8)&&vi(e,"left",l[3]+"px")},i(l){if(!t){for(let u=0;u<r.length;u+=1)d(s[u]);t=!0}},o(l){s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)p(s[u]);t=!1},d(l){l&&w(e),pi(s,l),i[34](null),n=!1,ut(o)}}}function _1(i){let e,t;return e=new d1({props:{id:i[52].id,label:i[52].label,ariaLabel:i[52].ariaLabel,onClick:i[52].onClick,closeContextMenu:i[12]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.id=n[52].id),o[0]&4&&(r.label=n[52].label),o[0]&4&&(r.ariaLabel=n[52].ariaLabel),o[0]&4&&(r.onClick=n[52].onClick),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Lg(i){let e,t,n=i[1]&&p1(i);return{c(){n&&n.c(),e=$e()},m(o,r){n&&n.m(o,r),k(o,e,r),t=!0},p(o,r){o[1]?n?(n.p(o,r),r[0]&2&&d(n,1)):(n=p1(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(se(),p(n,1,1,()=>{n=null}),le())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function Vg(i,e,t){var Me,De,Qe;let n,o,r,s,a,l,u,c,m,h,y,g,I,C,V,{visible:S=!1}=e,{supportLink:v}=e,{position:E={top:0,left:0}}=e,{playerContainerRef:W=void 0}=e,{controlsContainerRef:D=void 0}=e,{menuElementRef:L=void 0}=e,{returnFocus:J}=e,ue=0,Q=0,ee=nt(),X=Bt(),x=ee.ui.contextMenu.visible$,ce=ee.ui.debugPanelVisible;q(i,ce,He=>t(28,h=He));let z=ee.ui.additionalContextMenuItems$;q(i,z,He=>t(27,m=He));let j=ee.webApi.pictureInPictureApi,A=(Me=ee.webApi.pictureInPictureApi)==null?void 0:Me.info.isActive$;q(i,A,He=>t(30,I=He));let de=ee.actions.internal.togglePictureInPicture,$=ee.state.chromecastState$;q(i,$,He=>t(31,C=He));let Ee=ee.state.isLive$;q(i,Ee,He=>t(32,V=He));let ne=ee.state.positionExact$;q(i,ne,He=>t(35,g=He));let ae=ee.state.isInteractive,Ie=ee.state.looped$;q(i,Ie,He=>t(29,y=He));let Te=()=>{x.set(!1),J==null||J()},Se=(He,ct)=>{if(!L||!W||!D)return;let ft=L.getBoundingClientRect(),he=W.getBoundingClientRect();t(3,ue=He-he.left),t(4,Q=ct-he.top),ue+ft.width>he.width&&t(3,ue=he.width-ft.width),Q+ft.height>he.height&&t(4,Q=he.height-ft.height),t(3,ue=Math.max(ue,0)),t(4,Q=Math.max(Q,0))},rt=()=>{ee.actions.internal.videoRotate()},Pe=()=>{Ag(v)&&window.open(v,"_blank"),ee.actions.internal.reportProblem(),ee.actions.internal.pause()},qe=()=>{let He=ee.actions.internal.getDebugTextData();if(X.features.saveDebugInfoToFile){let ct=new Blob([...He],{type:"plain/text"}),ft=window.URL.createObjectURL(ct);rr(ft,"vk_player_debug_info","txt")}else Pr(ee.actions.internal.getDebugTextData())},te=()=>{let He=ee.actions.internal.getTraceTextData(),ct=new Blob([...He],{type:"application/json"}),ft=window.URL.createObjectURL(ct);rr(ft,"vk_player_trace_info","json")},_e=()=>{ce.set(!0)},Ce=()=>mt(this,null,function*(){try{de()}finally{J==null||J()}}),xe=()=>{ee.actions.internal.setLooped(!y)},ot=()=>{var He,ct;if(r){let ft=(ct=(He=ee.callbacks)==null?void 0:He.onCopyEmbedCodeClicked)==null?void 0:ct.call(He);ft&&Pr(ft)}},at=(He=!1)=>{var ct,ft;if((ct=ee.callbacks)!=null&&ct.onCopyVideoLink){let he=(ft=ee.callbacks)==null?void 0:ft.onCopyVideoLink(He,g);he&&Pr(he)}},st=He=>{Qs(He,Te)},Je=[];function fe(He){On.call(this,i,He)}function Ze(He){be[He?"unshift":"push"](()=>{L=He,t(0,L)})}return i.$$set=He=>{"visible"in He&&t(1,S=He.visible),"supportLink"in He&&t(14,v=He.supportLink),"position"in He&&t(15,E=He.position),"playerContainerRef"in He&&t(16,W=He.playerContainerRef),"controlsContainerRef"in He&&t(17,D=He.controlsContainerRef),"menuElementRef"in He&&t(0,L=He.menuElementRef),"returnFocus"in He&&t(18,J=He.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&67108864|i.$$.dirty[1]&2&&t(25,o=n&&!V&&!ae),i.$$.dirty[1]&1&&t(23,s=j&&C!==Eg.CONNECTED&&!ae),i.$$.dirty[0]&1073741824&&t(21,l=X.showSupport&&!I),i.$$.dirty[0]&229377&&L&&W&&D){let{top:He,left:ct,bottom:ft,right:he}=E,pt=ct!=null?ct:0,yt=He!=null?He:0,It=L.getBoundingClientRect();Js(ct)&&!Js(he)&&(pt=he-It.width),Js(He)&&!Js(ft)&&(yt=ft-It.height),pt=Math.max(pt,0),yt=Math.max(yt,0),Se(pt,yt)}i.$$.dirty[0]&1073217540&&(t(2,Je=[]),n&&Je.push({id:"copy-link",weight:ro["copy-link"],label:G("menu_copy_video_link"),onClick:()=>at()}),o&&Je.push({id:"copy-link-timestamp",weight:ro["copy-link-timestamp"],label:G("menu_copy_video_link_with_timestamp"),onClick:()=>at(!0)}),r&&Je.push({id:"copy-embed-code",weight:ro["copy-embed-code"],label:G("menu_copy_embed_code"),onClick:ot}),s&&Je.push({id:"pip",weight:ro.pip,label:G("menu_pip"),onClick:Ce}),Je.push({id:"video-loop",weight:ro["video-loop"],label:y?G("menu_video_loop_off"):G("menu_video_loop_on"),ariaLabel:G("aria_label_menu_loop"),onClick:xe}),a&&Je.push({id:"rotate",weight:ro.rotate,label:G("menu_video_rotate"),ariaLabel:G("aria_label_menu_rotate"),onClick:rt}),l&&Je.push({id:"report",weight:ro.report,label:G("menu_report"),ariaLabel:`${G("menu_report")}. ${G("aria_label_new_tab_alert")}`,onClick:Pe}),Je.push({id:"save-debug",weight:ro["save-debug"],label:c,onClick:qe}),u&&Je.push({id:"save-trace",weight:ro["save-trace"],label:G("menu_save_debug"),onClick:te}),Je.push({id:"debug-info",weight:ro["debug-info"],label:G("menu_debug_overlay"),ariaLabel:h?G("aria_label_menu_debug_overlay_disable"):G("aria_label_menu_debug_overlay_enable"),onClick:_e}),t(2,Je=[...Je,...m].sort(cr)))},t(26,n=X.features.copyVideoLink&&((De=ee.callbacks)==null?void 0:De.onCopyVideoLink)),t(24,r=!!((Qe=ee.callbacks)!=null&&Qe.onCopyEmbedCodeClicked)),t(22,a=X.features.videoRotate&&!ae),t(19,u=X.features.saveTraceInfoToFile),t(20,c=X.features.saveDebugInfoToFile?G("menu_save_debug"):G("menu_copy_debug")),[L,S,Je,ue,Q,ce,z,A,$,Ee,ne,Ie,Te,st,v,E,W,D,J,u,c,l,a,s,r,o,n,m,h,y,I,C,V,fe,Ze]}var qa=class extends H{constructor(e){super(),U(this,e,Vg,Lg,F,{visible:1,supportLink:14,position:15,playerContainerRef:16,controlsContainerRef:17,menuElementRef:0,returnFocus:18},Mg,[-1,-1])}},h1=qa;var $s=class{constructor(e){this.value=e,this.next=null}};var Lr=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new $s(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 Rg(i){ge(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function Bg(i){let e,t;return{c(){e=P("div"),t=P("canvas"),f(t,"class","svelte-1ssl9eb"),f(e,"class","container svelte-1ssl9eb")},m(n,o){k(n,e,o),_(e,t),i[3](t)},p:me,i:me,o:me,d(n){n&&w(e),i[3](null)}}}var Ua=16,za=120,g1=60;function Ng(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function Dg(i,e,t){let{values:n=[]}=e,o,r,s=za/g1;Ft(()=>{t(0,o.width=za,o),t(0,o.height=Ua,o),t(2,r=o.getContext("2d"))});function a(l){be[l?"unshift":"push"](()=>{o=l,t(0,o)})}return i.$$set=l=>{"values"in l&&t(1,n=l.values)},i.$$.update=()=>{if(i.$$.dirty&6){let l="";if(r){let u=n[0];for(let m=1;m<n.length;m++)n[m]>u&&(u=n[m]);r.clearRect(0,0,za,Ua);let c=g1-1;for(let m=n.length-1;m>=0;m--){let h=c*s,y=u>0?Ua*(n[m]/u):0;Ng(r,h,0,s,y),l=y+" "+l,c--}}}},[o,n,r,a]}var Wa=class extends H{constructor(e){super(),U(this,e,Dg,Bg,F,{values:1},Rg)}},el=Wa;import{safeStorage as b1}from"@vkontakte/videoplayer-shared";function Og(i){ge(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 v1(i){let e,t,n,o,r=i[0].id+"",s;return{c(){e=P("div"),t=P("div"),t.textContent="Video id",n=Y(),o=P("span"),s=Oe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){k(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].id+"")&&Ke(s,r)},d(a){a&&w(e)}}}function y1(i){let e,t,n,o,r=i[0].vsid+"",s;return{c(){e=P("div"),t=P("div"),t.textContent="VSID",n=Y(),o=P("span"),s=Oe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){k(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].vsid+"")&&Ke(s,r)},d(a){a&&w(e)}}}function w1(i){let e,t,n,o,r=i[0].provider+"",s;return{c(){e=P("div"),t=P("div"),t.textContent="Provider",n=Y(),o=P("span"),s=Oe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){k(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].provider+"")&&Ke(s,r)},d(a){a&&w(e)}}}function k1(i){let e,t,n,o,r,s=(i[0].videoCodec||"")+"",a,l,u=i[0].hdr?"(HDR)":"",c,m,h=(i[0].audioCodec||"")+"",y,g,I=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",C;return{c(){e=P("div"),t=P("div"),t.textContent="Streams",n=Y(),o=P("span"),r=Oe("Video: "),a=Oe(s),l=Y(),c=Oe(u),m=Oe(`
|
|
25
25
|
&
|
|
26
|
-
Audio: `),
|
|
27
|
-
}.timer-canvas.svelte-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.svelte-8jhsry{width:22px;height:26px}`)}function Bg(i){let e,t,n,o,r,s,a;return{c(){e=I("div"),t=I("canvas"),n=Y(),o=M("svg"),r=M("g"),s=M("g"),a=M("path"),f(t,"class","timer-canvas svelte-8jhsry"),f(t,"width","100"),f(t,"height","100"),f(a,"class","_play"),f(a,"d","m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z"),f(a,"fill","#fff"),f(s,"fill-rule","nonzero"),f(r,"fill","none"),f(r,"fill-rule","evenodd"),f(o,"class","timer-play-icon svelte-8jhsry"),f(o,"viewBox","0 0 24 24"),f(o,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","timer svelte-8jhsry")},m(l,u){w(l,e,u),_(e,t),i[2](t),_(e,n),_(e,o),_(o,r),_(r,s),_(s,a)},p:me,i:me,o:me,d(l){l&&y(e),i[2](null)}}}var Ng=5e3;function Dg(i,e,t){let{onTimerEnded:n=Vg}=e,o;Lt(()=>{let s,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let l=Date.now(),u=()=>{let c=(Date.now()-l)/Ng;c<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*c),a.stroke(),s=requestAnimationFrame(u)):n()};return s=requestAnimationFrame(u),()=>{cancelAnimationFrame(s)}});function r(s){ge[s?"unshift":"push"](()=>{o=s,t(0,o)})}return i.$$set=s=>{"onTimerEnded"in s&&t(1,n=s.onTimerEnded)},[o,n,r]}var Oa=class extends N{constructor(e){super(),D(this,e,Dg,Bg,R,{onTimerEnded:1},Rg)}},T1=Oa;function Og(i){ve(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 I1(i){let e,t;return e=new T1({props:{onTimerEnded:i[2]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.onTimerEnded=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Fg(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,T,k,H,S,v,E,q;a=new S1({}),a.$on("click",i[4]);let U=i[3]&&I1(i);return{c(){e=I("div"),t=Y(),n=I("div"),o=I("div"),r=I("div"),r.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",s=Y(),B(a.$$.fragment),l=Y(),u=I("div"),c=I("div"),m=I("div"),h=I("div"),C=Y(),U&&U.c(),T=Y(),k=I("div"),H=I("div"),S=He(i[0]),f(e,"class","overlay svelte-kisfwc"),f(r,"class","caption svelte-kisfwc"),f(o,"class","top svelte-kisfwc"),f(h,"class","thumb-overlay svelte-kisfwc"),f(m,"class","thumb svelte-kisfwc"),f(m,"style",g=`background-image: url('${i[1]}')`),f(c,"class","column svelte-kisfwc"),f(H,"class","title svelte-kisfwc"),f(k,"class","column svelte-kisfwc"),f(u,"class","row svelte-kisfwc"),f(n,"class","next-video svelte-kisfwc")},m(F,ie){w(F,e,ie),w(F,t,ie),w(F,n,ie),_(n,o),_(o,r),_(o,s),L(a,o,null),_(n,l),_(n,u),_(u,c),_(c,m),_(m,h),_(m,C),U&&U.m(m,null),_(u,T),_(u,k),_(k,H),_(H,S),v=!0,E||(q=ke(u,"click",function(){xt(i[2])&&i[2].apply(this,arguments)}),E=!0)},p(F,[ie]){i=F,i[3]?U?(U.p(i,ie),ie&8&&d(U,1)):(U=I1(i),U.c(),d(U,1),U.m(m,null)):U&&(ae(),p(U,1,1,()=>{U=null}),ue()),(!v||ie&2&&g!==(g=`background-image: url('${i[1]}')`))&&f(m,"style",g),(!v||ie&1)&&je(S,i[0])},i(F){v||(d(a.$$.fragment,F),d(U),v=!0)},o(F){p(a.$$.fragment,F),p(U),v=!1},d(F){F&&(y(e),y(t),y(n)),V(a),U&&U.d(),E=!1,q()}}}function Hg(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:r}=e,s=!0,a=()=>t(3,s=!1);return i.$$set=l=>{"title"in l&&t(0,n=l.title),"thumb"in l&&t(1,o=l.thumb),"playNextVideo"in l&&t(2,r=l.playNextVideo)},[n,o,r,s,a]}var Fa=class extends N{constructor(e){super(),D(this,e,Hg,Fg,R,{title:0,thumb:1,playNextVideo:2},Og)}},P1=Fa;import{PlaybackState as fr}from"@vkontakte/videoplayer-core";import{checkNever as Ug}from"@vkontakte/videoplayer-shared";import{SeekAction as Tn}from"@vkontakte/videoplayer-statistics";var Ha=(i,e)=>Math.min(+(i+e).toFixed(2),1),qa=(i,e)=>Math.max(+(i-e).toFixed(2),0),Zs=(i,e,t)=>{let n=Ha(e,t);e<1&&i.actions.internal.setVolume(n)},Xs=(i,e,t)=>{let n=qa(e,t);e>0&&i.actions.internal.setVolume(n)};var Do=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e==null||e(),!1):t?!0:(n==null||n(),!1);function zg(i){ve(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function Wg(i){let e,t,n,o,r,s=i[26].default,a=Ve(s,i,i[25],null);return{c(){e=I("div"),a&&a.c(),f(e,"class","keyboard-controls svelte-10kkmxz"),f(e,"tabindex","-1"),f(e,"role","region"),f(e,"aria-label",t=j("aria_label_video_player"))},m(l,u){w(l,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(r=[ke(e,"keyup",i[17]),ke(e,"keydown",i[16])],o=!0)},p(l,u){a&&a.p&&(!n||u[0]&33554432)&&Be(a,s,l,l[25],n?Re(s,l[25],u,null):Ne(l[25]),null)},i(l){n||(d(a,l),n=!0)},o(l){p(a,l),n=!1},d(l){l&&y(e),a&&a.d(l),i[27](null),o=!1,ct(r)}}}function Kg(i,e,t){var ft,dt;let n,o,r,s,a,l,u,c,m,h,C,g,T,k,H,{$$slots:S={},$$scope:v}=e,{isAds:E}=e,{hideContextMenu:q}=e,{toggleFullscreen:U}=e,{showHotKeyHelpers:F}=e,{showKeyMap:ie}=e,{fakePlayButtonHandler:fe}=e,G=ot(),J=Vt(),Q=G.getLogger().createComponentLog("KeyboardControls component"),W=G.state.playbackState$;O(i,W,he=>t(31,o=he));let ce=G.ads.playbackState;O(i,ce,he=>t(30,n=he));let z=G.state.positionExact$;O(i,z,he=>t(41,g=he));let x=G.state.duration$;O(i,x,he=>t(40,C=he));let P=G.state.volume$;O(i,P,he=>t(44,H=he));let $=G.ui.controls.disabledControls$;O(i,$,he=>t(39,h=he));let le=G.state.muted$;O(i,le,he=>t(34,a=he));let Me=G.state.currentSubtitle$;O(i,Me,he=>t(33,s=he));let te=G.state.currentPlaybackRate$;O(i,te,he=>t(42,T=he));let be=G.state.availablePlaybackRates$;O(i,be,he=>t(43,k=he));let Ee=G.ui.contextMenu.openedByHotKey$,Te=G.ui.contextMenu.lastActiveElem$,Ie=G.ui.contextMenu.visible$,rt=G.ui.contextMenu.position$,Ae=G.state.isEnded$;O(i,Ae,he=>t(36,u=he));let We=G.ui.overlayContainer$;O(i,We,he=>t(32,r=he));let ee=(ft=G.callbacks)==null?void 0:ft.onAudioDoesNotExistHint,pe=(dt=G.callbacks)==null?void 0:dt.onAudioDisabledHint,Ce=G.state.isAudioAvailable$;O(i,Ce,he=>t(35,l=he));let xe=G.state.isAudioDisabled,st=G.state.isInteractiveTime$;O(i,st,he=>t(38,m=he));let{showInteractiveTimeIndicatorTooltip$:at}=On();O(i,at,he=>t(37,c=he));let nt=0,$e=!0,de,Se=()=>de==null?void 0:de.focus(),et=he=>(he!==$e&&($e=he,nt=0),nt+=1,(J.controls.seekStepKeyboard+J.controls.seekStepKeyboard*nt)/1e3),De=he=>{var Wt;let _t=he.target,kt=(Wt=_t==null?void 0:_t.getAttribute("role"))==null?void 0:Wt.includes("menuitem"),Ct=_t.classList.contains("btn"),Ze=he.code;if(Ct&&Ze==="Space")return;let Pt=Xf.has(Ze);if(kt&&Pt)return;let qt=!Zf.has(Ze);if(he.ctrlKey&&qt||he.altKey&&qt||he.metaKey)return;let Zt=kt&&Ze==="Escape";Jf.has(Ze)||Zt||q();let Ut=o===fr.PLAYING||o===fr.PAUSED,zt=E&&(n==="paused"||n==="playing"),Xt=!zt&&!h.has("TIMELINE");if(Ut||zt)switch(Q({message:`key down, code: ${Ze}`}),Ze){case"KeyJ":case"ArrowLeft":{if(!Xt)break;if(he.ctrlKey||he.altKey){let Ke=G.actions.internal.getPrevEpisode();G.actions.internal.seekToPrevEpisode(Ke),Ke&&F({type:"EPISODE_PREV",text:Ke.text}),he.preventDefault()}else{let Ke=he.shiftKey?et(!1):J.controls.seekStepKeyboard/1e3,Xe=Math.max(g-Ke,0);g>0&&(G.actions.internal.seekTime(Xe,Tn.DOUBLE_TAP),F({type:"BACKWARD_SEEK",text:Ke.toString()}),he.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Xt)break;if(he.ctrlKey||he.altKey){let Ke=G.actions.internal.getNextEpisode();G.actions.internal.seekToNextEpisode(Ke),Ke&&F({type:"EPISODE_NEXT",text:Ke.text}),he.preventDefault()}else{let Ke=he.shiftKey?et(!0):J.controls.seekStepKeyboard/1e3,Xe=Math.min(g+Ke,C);Math.round(g)<Math.round(C)&&(G.actions.internal.seekTime(Xe,Tn.DOUBLE_TAP),F({type:"FORWARD_SEEK",text:Ke.toString()}),he.preventDefault())}break}case"ArrowUp":{if(Do({isAudioDisabled:xe,audioDisabledHintCallback:pe,isAudioAvailable:l,audioIsNotExistHintCallback:ee})){let Ke=H,Xe=J.controls.volumeStepKeyboard,Tt=Ke<=1;if(Zs(G,Ke,Xe),Tt){let _e=Math.round(Ha(Ke,Xe)*100).toString();F({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:_e}})}}he.preventDefault();break}case"ArrowDown":{if(Do({isAudioDisabled:xe,audioDisabledHintCallback:pe,isAudioAvailable:l,audioIsNotExistHintCallback:ee})){let Ke=H,Xe=J.controls.volumeStepKeyboard,Tt=Ke>=0;if(Xs(G,Ke,Xe),Tt){let _e=Math.round(qa(Ke,Xe)*100).toString();F({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:_e}})}}he.preventDefault();break}case"Comma":{if(he.shiftKey){G.actions.internal.decrementPlaybackRate();let Ke=k.find(Xe=>Xe.value===T);F({type:"RATE_DOWN",text:Ke==null?void 0:Ke.displayValue}),he.preventDefault()}else{if(zt||o!==fr.PAUSED)break;let Ke=Math.max(g-J.controls.seekStepFrame/1e3,0);g>0&&(F({type:"BACKWARD_SEEK"}),G.actions.internal.clearDelayedBufferingCheckTimeout(),G.actions.internal.seekTime(Ke,Tn.DOUBLE_TAP),he.preventDefault())}break}case"Period":{if(he.shiftKey){G.actions.internal.incrementPlaybackRate();let Ke=k.find(Xe=>Xe.value===T);F({type:"RATE_UP",text:Ke==null?void 0:Ke.displayValue}),he.preventDefault()}else{if(zt||o!==fr.PAUSED)break;let Ke=Math.min(g+J.controls.seekStepFrame/1e3,C);g<C&&(F({type:"FORWARD_SEEK"}),G.actions.internal.clearDelayedBufferingCheckTimeout(),G.actions.internal.seekTime(Ke,Tn.DOUBLE_TAP),he.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(m&&c&&at.set(!1),fe)fe();else{G.actions.internal.togglePlay();let Ke="PLAY";o===fr.PAUSED?Ke="PAUSE":u&&(Ke="REPLAY"),F({type:Ke})}he.preventDefault();break;case"KeyM":{Do({isAudioDisabled:xe,audioDisabledHintCallback:pe,isAudioAvailable:l,audioIsNotExistHintCallback:ee})&&(F({type:a?"VOLUME":"MUTE"}),G.actions.internal.toggleMuted()),he.preventDefault();break}case"KeyF":U(),he.preventDefault();break;case"KeyC":G.actions.internal.toggleSubtitle(),s.value!=="off"?F({type:"SUBTITLES_ON",text:s==null?void 0:s.displayValue}):F({type:"SUBTITLES_OFF"}),he.preventDefault();break;case"KeyI":G.actions.internal.togglePictureInPicture(),he.preventDefault();break;case"Digit1":case"Numpad1":if(he.shiftKey){let Ke=t1(r);rt.set(Ke),Te.set(_t),Ee.set(!0),Ie.set(!0),he.preventDefault();break}F(),G.actions.internal.seekToPercent(.1,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit2":case"Numpad2":F(),G.actions.internal.seekToPercent(.2,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit3":case"Numpad3":F(),G.actions.internal.seekToPercent(.3,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit4":case"Numpad4":F(),G.actions.internal.seekToPercent(.4,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit5":case"Numpad5":F(),G.actions.internal.seekToPercent(.5,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit6":case"Numpad6":F(),G.actions.internal.seekToPercent(.6,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit7":case"Numpad7":F(),G.actions.internal.seekToPercent(.7,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit8":case"Numpad8":F(),G.actions.internal.seekToPercent(.8,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit9":case"Numpad9":F(),G.actions.internal.seekToPercent(.9,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit0":case"Numpad0":F(),G.actions.internal.seekToPercent(0,Tn.DOUBLE_TAP),he.preventDefault();break;case"Slash":{he.shiftKey&&J.features.hotKeyMapModal&&(ie(),he.preventDefault());break}case"ShiftLeft":case"ShiftRight":he.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:Ug(Ze);break}},tt=he=>{let _t=he.code;if(he.ctrlKey||he.altKey||he.metaKey)return;let kt=o===fr.PLAYING||o===fr.PAUSED,Ct=E&&(n==="paused"||n==="playing");if(kt||Ct)switch(_t){case"ShiftLeft":case"ShiftRight":nt=0;break}};function Fe(he){ge[he?"unshift":"push"](()=>{de=he,t(0,de)})}return i.$$set=he=>{"isAds"in he&&t(18,E=he.isAds),"hideContextMenu"in he&&t(19,q=he.hideContextMenu),"toggleFullscreen"in he&&t(20,U=he.toggleFullscreen),"showHotKeyHelpers"in he&&t(21,F=he.showHotKeyHelpers),"showKeyMap"in he&&t(22,ie=he.showKeyMap),"fakePlayButtonHandler"in he&&t(23,fe=he.fakePlayButtonHandler),"$$scope"in he&&t(25,v=he.$$scope)},[de,W,ce,z,x,P,$,le,Me,te,be,Ae,We,Ce,st,at,De,tt,E,q,U,F,ie,fe,Se,v,S,Fe]}var Ua=class extends N{constructor(e){super(),D(this,e,Kg,Wg,R,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},zg,[-1,-1])}get focus(){return this.$$.ctx[24]}},E1=Ua;function xg(i){ve(i,"svelte-8nkw5s",".container.svelte-8nkw5s.svelte-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes svelte-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.svelte-8nkw5s.svelte-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:svelte-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.svelte-8nkw5s+.dot.svelte-8nkw5s{margin-left:4px}")}function jg(i){let e,t,n,o,r,s;return{c(){e=I("div"),t=I("div"),n=Y(),o=I("div"),r=Y(),s=I("div"),f(t,"class","dot svelte-8nkw5s"),f(o,"class","dot svelte-8nkw5s"),f(s,"class","dot svelte-8nkw5s"),f(e,"class","container svelte-8nkw5s"),f(e,"style",i[0])},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),_(e,r),_(e,s)},p(a,[l]){l&1&&f(e,"style",a[0])},i:me,o:me,d(a){a&&y(e)}}}function Gg(i,e,t){let{style:n=""}=e;return i.$$set=o=>{"style"in o&&t(0,n=o.style)},[n]}var za=class extends N{constructor(e){super(),D(this,e,Gg,jg,R,{style:0},xg)}},Vr=za;function Yg(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,T=i[2].default,k=Ve(T,i,i[1],null),H=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],S={};for(let v=0;v<H.length;v+=1)S=se(S,H[v]);return{c(){e=M("svg"),k&&k.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),s=M("filter"),a=M("feFlood"),l=M("feColorMatrix"),u=M("feOffset"),c=M("feGaussianBlur"),m=M("feColorMatrix"),h=M("feBlend"),C=M("feBlend"),f(n,"fill","#fff"),f(n,"d","M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2422_111980"),f(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_2422_111980"),f(C,"result","shape"),f(s,"id","a"),f(s,"width","23"),f(s,"height","23"),f(s,"x",".5"),f(s,"y",".5"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),we(e,S)},m(v,E){w(v,e,E),k&&k.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,C),g=!0},p(v,[E]){k&&k.p&&(!g||E&2)&&Be(k,T,v,v[1],g?Re(T,v[1],E,null):Ne(v[1]),null),we(e,S=qe(H,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},E&1&&v[0]]))},i(v){g||(d(k,v),g=!0)},o(v){p(k,v),g=!1},d(v){v&&y(e),k&&k.d(v)}}}function Qg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Wa=class extends N{constructor(e){super(),D(this,e,Qg,Yg,R,{})}},A1=Wa;import{noop as Co}from"@vkontakte/videoplayer-shared";function Zg(i){ve(i,"svelte-wr0kwr",".btn.svelte-wr0kwr{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center}.w-max.svelte-wr0kwr{width:100%}.btn--live.svelte-wr0kwr{padding:10px 4px}.btn-jc-l.svelte-wr0kwr{justify-content:left}.btn-m.svelte-wr0kwr{position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.btn-m--play.svelte-wr0kwr{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn-m--play.svelte-wr0kwr svg{transform:scale(2)}.btn-m--prev.svelte-wr0kwr,.btn-m--next.svelte-wr0kwr{position:absolute;width:50px;height:50px}.btn-m--prev.svelte-wr0kwr{right:calc(100% + 35px)}.btn-m--next.svelte-wr0kwr{left:calc(100% + 35px)}.btn.svelte-wr0kwr:disabled{cursor:default;pointer-events:none}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-wr0kwr:not(:disabled):hover{opacity:0.8}.pr-0.svelte-wr0kwr{padding-right:0}.pl-0.svelte-wr0kwr{padding-left:0}")}function Xg(i){let e,t,n,o,r,s,a,l,u,c,m,h,C=i[14].default,g=Ve(C,i,i[13],null);return{c(){var T,k,H,S,v,E;e=I("button"),g&&g.c(),f(e,"class",t="btn "+i[1]+" svelte-wr0kwr"),f(e,"style",n=i[2]||null),e.disabled=o=(T=i[3])!=null?T:null,f(e,"aria-hidden",r=(k=i[5])!=null?k:null),f(e,"aria-label",s=(H=i[6])!=null?H:null),f(e,"aria-keyshortcuts",a=(S=i[7])!=null?S:null),f(e,"aria-expanded",l=(v=i[8])!=null?v:null),f(e,"data-testid",u=(E=i[4])!=null?E:null),f(e,"tabindex",i[9])},m(T,k){w(T,e,k),g&&g.m(e,null),i[16](e),c=!0,m||(h=[ke(e,"pointerdown",bt(i[15])),ke(e,"click",bt(function(){xt(i[10]===Co?null:i[10])&&(i[10]===Co?null:i[10]).apply(this,arguments)})),ke(e,"focus",ri(function(){xt(i[11]===Co?null:i[11])&&(i[11]===Co?null:i[11]).apply(this,arguments)})),ke(e,"blur",ri(function(){xt(i[12]===Co?null:i[12])&&(i[12]===Co?null:i[12]).apply(this,arguments)}))],m=!0)},p(T,[k]){var H,S,v,E,q,U;i=T,g&&g.p&&(!c||k&8192)&&Be(g,C,i,i[13],c?Re(C,i[13],k,null):Ne(i[13]),null),(!c||k&2&&t!==(t="btn "+i[1]+" svelte-wr0kwr"))&&f(e,"class",t),(!c||k&4&&n!==(n=i[2]||null))&&f(e,"style",n),(!c||k&8&&o!==(o=(H=i[3])!=null?H:null))&&(e.disabled=o),(!c||k&32&&r!==(r=(S=i[5])!=null?S:null))&&f(e,"aria-hidden",r),(!c||k&64&&s!==(s=(v=i[6])!=null?v:null))&&f(e,"aria-label",s),(!c||k&128&&a!==(a=(E=i[7])!=null?E:null))&&f(e,"aria-keyshortcuts",a),(!c||k&256&&l!==(l=(q=i[8])!=null?q:null))&&f(e,"aria-expanded",l),(!c||k&16&&u!==(u=(U=i[4])!=null?U:null))&&f(e,"data-testid",u),(!c||k&512)&&f(e,"tabindex",i[9])},i(T){c||(d(g,T),c=!0)},o(T){p(g,T),c=!1},d(T){T&&y(e),g&&g.d(T),i[16](null),m=!1,ct(h)}}}function Jg(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:r=""}=e,{style:s=""}=e,{disabled:a=void 0}=e,{testId:l=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:c=void 0}=e,{ref:m=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:C=void 0}=e,{tabIndex:g=0}=e,{click:T=Co}=e,{focus:k=Co}=e,{blur:H=Co}=e;function S(E){Dn.call(this,i,E)}function v(E){ge[E?"unshift":"push"](()=>{m=E,t(0,m)})}return i.$$set=E=>{"className"in E&&t(1,r=E.className),"style"in E&&t(2,s=E.style),"disabled"in E&&t(3,a=E.disabled),"testId"in E&&t(4,l=E.testId),"ariaHidden"in E&&t(5,u=E.ariaHidden),"ariaLabel"in E&&t(6,c=E.ariaLabel),"ref"in E&&t(0,m=E.ref),"ariaKeyShortCut"in E&&t(7,h=E.ariaKeyShortCut),"ariaExpanded"in E&&t(8,C=E.ariaExpanded),"tabIndex"in E&&t(9,g=E.tabIndex),"click"in E&&t(10,T=E.click),"focus"in E&&t(11,k=E.focus),"blur"in E&&t(12,H=E.blur),"$$scope"in E&&t(13,o=E.$$scope)},[m,r,s,a,l,u,c,h,C,g,T,k,H,o,n,S,v]}var Ka=class extends N{constructor(e){super(),D(this,e,Jg,Xg,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},Zg)}},ht=Ka;function $g(i){ve(i,"svelte-1witlsj",".modal-overlay.svelte-1witlsj{position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center}.modal-container.svelte-1witlsj{display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px}.modal-header.svelte-1witlsj{box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24)}.modal-title.svelte-1witlsj{margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.modal-scroll.svelte-1witlsj{overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%}.modal-scroll.svelte-1witlsj::-webkit-scrollbar{width:8px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track{box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.svelte-1witlsj{margin:-8px -4px 0 0}")}function M1(i){let e,t,n,o,r,s=i[2]&&L1(i);return{c(){e=I("div"),t=I("h3"),n=He(i[3]),o=Y(),s&&s.c(),f(t,"class","modal-title svelte-1witlsj"),f(e,"class","modal-header svelte-1witlsj")},m(a,l){w(a,e,l),_(e,t),_(t,n),_(e,o),s&&s.m(e,null),r=!0},p(a,l){(!r||l&8)&&je(n,a[3]),a[2]?s?(s.p(a,l),l&4&&d(s,1)):(s=L1(a),s.c(),d(s,1),s.m(e,null)):s&&(ae(),p(s,1,1,()=>{s=null}),ue())},i(a){r||(d(s),r=!0)},o(a){p(s),r=!1},d(a){a&&y(e),s&&s.d()}}}function L1(i){let e,t;return e=new ht({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:j("hotkey_map_modal_close_btn_text"),$$slots:{default:[e2]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.click=n[0]),o&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function e2(i){let e,t;return e=new A1({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function t2(i){let e,t,n,o,r,s,a=i[1]&&M1(i),l=i[4].default,u=Ve(l,i,i[5],null);return{c(){e=I("div"),t=I("div"),a&&a.c(),n=Y(),o=I("div"),r=I("div"),u&&u.c(),f(r,"class","modal-main svelte-1witlsj"),f(o,"class","modal-scroll svelte-1witlsj"),f(t,"class","modal-container svelte-1witlsj"),f(e,"class","modal-overlay svelte-1witlsj")},m(c,m){w(c,e,m),_(e,t),a&&a.m(t,null),_(t,n),_(t,o),_(o,r),u&&u.m(r,null),s=!0},p(c,[m]){c[1]?a?(a.p(c,m),m&2&&d(a,1)):(a=M1(c),a.c(),d(a,1),a.m(t,n)):a&&(ae(),p(a,1,1,()=>{a=null}),ue()),u&&u.p&&(!s||m&32)&&Be(u,l,c,c[5],s?Re(l,c[5],m,null):Ne(c[5]),null)},i(c){s||(d(a),d(u,c),s=!0)},o(c){p(a),p(u,c),s=!1},d(c){c&&y(e),a&&a.d(),u&&u.d(c)}}}function i2(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:r}=e,{showHeader:s=!0}=e,{showCloseCross:a=!0}=e,{title:l}=e;return i.$$set=u=>{"onClose"in u&&t(0,r=u.onClose),"showHeader"in u&&t(1,s=u.showHeader),"showCloseCross"in u&&t(2,a=u.showCloseCross),"title"in u&&t(3,l=u.title),"$$scope"in u&&t(5,o=u.$$scope)},[r,s,a,l,n,o]}var xa=class extends N{constructor(e){super(),D(this,e,i2,t2,R,{onClose:0,showHeader:1,showCloseCross:2,title:3},$g)}},V1=xa;var n2=new Set(["BR"]),ja=i=>{var o;let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let r=t[n],s=r.tagName;n2.has(s)||(o=r.parentElement)==null||o.removeChild(r)}return e.innerHTML};function o2(i){ve(i,"svelte-quklnq",".hot-key-map.svelte-quklnq{color:var(--black);box-sizing:border-box;overflow-x:hidden}.hot-key-map-group.svelte-quklnq{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.svelte-quklnq:last-child{border-bottom:none}.hot-key-map-group-title.svelte-quklnq{color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.hot-key-map-group-title.svelte-quklnq,.hot-key-map-item.svelte-quklnq{padding:12px 0;margin:0;width:100%}.hot-key-map-group-items.svelte-quklnq{box-sizing:border-box;list-style:none;padding:0;margin:0}.hot-key-map-item.svelte-quklnq{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.svelte-quklnq{color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px}.hot-key-map-item-value.svelte-quklnq{color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px}.hot-key-map-item-description.svelte-quklnq,.hot-key-map-item-value.svelte-quklnq{font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}")}function R1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function B1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function N1(i){let e,t,n=ja(i[9])+"",o,r,s=i[10]+"",a,l;return{c(){e=I("li"),t=I("span"),o=Y(),r=I("span"),a=He(s),l=Y(),f(t,"class","hot-key-map-item-description svelte-quklnq"),f(r,"class","hot-key-map-item-value svelte-quklnq"),f(e,"class","hot-key-map-item svelte-quklnq")},m(u,c){w(u,e,c),_(e,t),t.innerHTML=n,_(e,o),_(e,r),_(r,a),_(e,l)},p(u,c){c&1&&n!==(n=ja(u[9])+"")&&(t.innerHTML=n),c&1&&s!==(s=u[10]+"")&&je(a,s)},d(u){u&&y(e)}}}function D1(i){let e,t,n=i[5]+"",o,r,s,a,l=wt(i[6]),u=[];for(let c=0;c<l.length;c+=1)u[c]=N1(B1(i,l,c));return{c(){e=I("div"),t=I("h5"),o=He(n),r=Y(),s=I("ul");for(let c=0;c<u.length;c+=1)u[c].c();a=Y(),f(t,"class","hot-key-map-group-title svelte-quklnq"),f(s,"class","hot-key-map-group-items svelte-quklnq"),f(e,"class","hot-key-map-group svelte-quklnq")},m(c,m){w(c,e,m),_(e,t),_(t,o),_(e,r),_(e,s);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(s,null);_(e,a)},p(c,m){if(m&1&&n!==(n=c[5]+"")&&je(o,n),m&1){l=wt(c[6]);let h;for(h=0;h<l.length;h+=1){let C=B1(c,l,h);u[h]?u[h].p(C,m):(u[h]=N1(C),u[h].c(),u[h].m(s,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=l.length}},d(c){c&&y(e),mi(u,c)}}}function r2(i){let e,t=wt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=D1(R1(i,t,o));return{c(){e=I("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","hot-key-map svelte-quklnq")},m(o,r){w(o,e,r);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(e,null)},p(o,r){if(r&1){t=wt(o[0].groups);let s;for(s=0;s<t.length;s+=1){let a=R1(o,t,s);n[s]?n[s].p(a,r):(n[s]=D1(a),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(o){o&&y(e),mi(n,o)}}}function s2(i){let e,t;return e=new V1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[r2]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.title=n[0].title),o&8193&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function l2(i,e,t){let n,o=ot(),{data:r,show:s}=o.ui.modals.hotKeyMap;return O(i,r,l=>t(0,n=l)),[n,r,()=>{s.set(!1)}]}var Ga=class extends N{constructor(e){super(),D(this,e,l2,s2,R,{},o2)}},O1=Ga;import{noop as Lp}from"@vkontakte/videoplayer-shared";var Js;function Rr(i){return Js||(Js=new ResizeObserver(e=>{for(let t of e)t.target.dispatchEvent(new CustomEvent("fd:resize"))})),Js.observe(i),{destroy(){Js.unobserve(i)}}}import{ChromecastState as Wm,PlaybackState as cc}from"@vkontakte/videoplayer-core";import"@vkontakte/videoplayer-shared";function a2(i){ve(i,"svelte-1oe0j8n",".pillow.svelte-1oe0j8n{background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px}")}function u2(i){let e,t,n=i[1].default,o=Ve(n,i,i[0],null);return{c(){e=I("div"),o&&o.c(),f(e,"class","pillow svelte-1oe0j8n")},m(r,s){w(r,e,s),o&&o.m(e,null),t=!0},p(r,[s]){o&&o.p&&(!t||s&1)&&Be(o,n,r,r[0],t?Re(n,r[0],s,null):Ne(r[0]),null)},i(r){t||(d(o,r),t=!0)},o(r){p(o,r),t=!1},d(r){r&&y(e),o&&o.d(r)}}}function c2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var Ya=class extends N{constructor(e){super(),D(this,e,c2,u2,R,{},a2)}},F1=Ya;import{VideoQuality as is}from"@vkontakte/videoplayer-shared";function f2(i){let e,t,n,o,r=i[2].default,s=Ve(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("path"),f(t,"fill","currentColor"),f(t,"d","M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z"),f(n,"clip-rule","evenodd"),we(e,l)},m(u,c){w(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Be(s,r,u,u[1],o?Re(r,u[1],c,null):Ne(u[1]),null),we(e,l=qe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&y(e),s&&s.d(u)}}}function d2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Qa=class extends N{constructor(e){super(),D(this,e,d2,f2,R,{})}},H1=Qa;function m2(i){let e,t,n,o,r=i[2].default,s=Ve(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("path"),f(t,"fill","currentColor"),f(t,"d","M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524"),f(n,"clip-rule","evenodd"),we(e,l)},m(u,c){w(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Be(s,r,u,u[1],o?Re(r,u[1],c,null):Ne(u[1]),null),we(e,l=qe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&y(e),s&&s.d(u)}}}function p2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Za=class extends N{constructor(e){super(),D(this,e,p2,m2,R,{})}},q1=Za;function _2(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","currentColor"),f(t,"d","M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,l,l[1],n?Re(o,l[1],u,null):Ne(l[1]),null),we(e,a=qe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function h2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Xa=class extends N{constructor(e){super(),D(this,e,h2,_2,R,{})}},U1=Xa;function g2(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","currentColor"),f(t,"d","M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,l,l[1],n?Re(o,l[1],u,null):Ne(l[1]),null),we(e,a=qe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function b2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ja=class extends N{constructor(e){super(),D(this,e,b2,g2,R,{})}},$s=Ja;function v2(i){let e,t,n,o,r=i[2].default,s=Ve(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("path"),f(t,"fill","currentColor"),f(t,"d","M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02"),f(n,"clip-rule","evenodd"),we(e,l)},m(u,c){w(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Be(s,r,u,u[1],o?Re(r,u[1],c,null):Ne(u[1]),null),we(e,l=qe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&y(e),s&&s.d(u)}}}function y2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var $a=class extends N{constructor(e){super(),D(this,e,y2,v2,R,{})}},el=$a;var tl=i=>{switch(i){case is.Q_720P:return U1;case is.Q_1080P:return $s;case is.Q_1440P:return el;case is.Q_2160P:return H1;case is.Q_4320P:return q1}};function w2(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"d","M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,l,l[1],n?Re(o,l[1],u,null):Ne(l[1]),null),we(e,a=qe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function k2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var eu=class extends N{constructor(e){super(),D(this,e,k2,w2,R,{})}},z1=eu;function C2(i){let e,t,n,o,r=i[2].default,s=Ve(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"),f(n,"class","_full"),we(e,l)},m(u,c){w(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Be(s,r,u,u[1],o?Re(r,u[1],c,null):Ne(u[1]),null),we(e,l=qe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&y(e),s&&s.d(u)}}}function S2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var tu=class extends N{constructor(e){super(),D(this,e,S2,C2,R,{})}},W1=tu;function T2(i){ve(i,"svelte-8t5w85",'.icon.svelte-8t5w85{display:flex;position:relative;width:24px;height:24px}.icon.svelte-8t5w85 .pillow{position:absolute;top:1px;right:-9px}.icon.triple.svelte-8t5w85 .pillow{right:-13px}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full{visibility:hidden;opacity:0}')}function I2(i){let e,t,n,o,r=i[1]&&K1(i);return n=new W1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=I("div"),r&&r.c(),t=Y(),B(n.$$.fragment),f(e,"class","icon svelte-8t5w85"),f(e,"aria-hidden","true"),K(e,"triple",i[2])},m(s,a){w(s,e,a),r&&r.m(e,null),_(e,t),L(n,e,null),o=!0},p(s,a){s[1]?r?(r.p(s,a),a&2&&d(r,1)):(r=K1(s),r.c(),d(r,1),r.m(e,t)):r&&(ae(),p(r,1,1,()=>{r=null}),ue());let l={};a&2&&(l["data-testid"]=s[1]?"settings-icon--labeled":"settings-icon"),n.$set(l),(!o||a&4)&&K(e,"triple",s[2])},i(s){o||(d(r),d(n.$$.fragment,s),o=!0)},o(s){p(r),p(n.$$.fragment,s),o=!1},d(s){s&&y(e),r&&r.d(),V(n)}}}function P2(i){let e,t;return e=new z1({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function K1(i){let e,t;return e=new F1({props:{$$slots:{default:[E2]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&18&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function E2(i){let e,t,n;var o=i[1];function r(s,a){return{}}return o&&(e=Dt(o,r(i))),{c(){e&&B(e.$$.fragment),t=Je()},m(s,a){e&&L(e,s,a),w(s,t,a),n=!0},p(s,a){if(a&2&&o!==(o=s[1])){if(e){ae();let l=e;p(l.$$.fragment,1,0,()=>{V(l,1)}),ue()}o?(e=Dt(o,r(s,a)),B(e.$$.fragment),d(e.$$.fragment,1),L(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&y(t),e&&V(e,s)}}}function A2(i){let e,t,n,o,r=[P2,I2],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Je()},m(l,u){s[e].m(l,u),w(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e===c?s[e].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&y(n),s[e].d(l)}}}function M2(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:r=void 0}=e,s;return i.$$set=a=>{"isMobile"in a&&t(0,o=a.isMobile),"currentQuality"in a&&t(3,r=a.currentQuality)},i.$$.update=()=>{i.$$.dirty&8&&t(1,n=tl(r)),i.$$.dirty&2&&t(2,s=!!n&&[$s,el].includes(n))},[o,n,s,r]}var iu=class extends N{constructor(e){super(),D(this,e,M2,A2,R,{isMobile:0,currentQuality:3},T2)}},il=iu;function L2(i){ve(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function V2(i){let e,t,n;return t=new il({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=I("span"),B(t.$$.fragment),f(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){w(o,e,r),L(t,e,null),n=!0},p(o,r){let s={};r&8&&(s.isMobile=o[3]),r&16&&(s.currentQuality=o[4]),t.$set(s)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),V(t)}}}function R2(i){let e,t,n;function o(s){i[10](s)}let r={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[V2]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"opened":""),a&4&&(l.ariaLabel=s[2]),a&2&&(l.ariaExpanded=s[1]),a&8216&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function B2(i,e,t){let n,o,r,{ref$:s}=e,a=ot(),l=a.state.currentQuality$;O(i,l,k=>t(4,r=k));let u=a.ui.settingsMenuVisible;O(i,u,k=>t(1,n=k));let c=a.actions.internal.toggleSettingsMenu,m=a.ui.isMobile;O(i,m,k=>t(3,o=k));let h,C;function g(k){let H=Er(k);c(H)}function T(k){h=k,t(0,h)}return i.$$set=k=>{"ref$"in k&&t(9,s=k.ref$)},i.$$.update=()=>{i.$$.dirty&513&&s&&s.set(h),i.$$.dirty&2&&t(2,C=n?j("tooltip_settings_on"):j("tooltip_settings_off"))},[h,n,C,o,r,l,u,m,g,s,T]}var nu=class extends N{constructor(e){super(),D(this,e,B2,R2,R,{ref$:9},L2)}},ns=nu;function N2(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"d","M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,l,l[1],n?Re(o,l[1],u,null):Ne(l[1]),null),we(e,a=qe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function D2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ou=class extends N{constructor(e){super(),D(this,e,D2,N2,R,{})}},x1=ou;function O2(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"d","M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,l,l[1],n?Re(o,l[1],u,null):Ne(l[1]),null),we(e,a=qe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function F2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ru=class extends N{constructor(e){super(),D(this,e,F2,O2,R,{})}},nl=ru;function H2(i){let e,t;return e=new nl({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function q2(i){let e,t;return e=new x1({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function U2(i){let e,t,n,o,r=[q2,H2],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Je()},m(l,u){s[e].m(l,u),w(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e!==c&&(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t||(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&y(n),s[e].d(l)}}}function z2(i){let e,t;return e=new ht({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:mo.KeyC,$$slots:{default:[U2]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function W2(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,r;return i.$$set=s=>{"isSubtitlesEnabled"in s&&t(0,n=s.isSubtitlesEnabled),"click"in s&&t(1,o=s.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=n?j("tooltip_subtitles_on"):j("tooltip_subtitles_off"))},[n,o,r]}var su=class extends N{constructor(e){super(),D(this,e,W2,z2,R,{isSubtitlesEnabled:0,click:1})}},j1=su;function K2(i){ve(i,"svelte-19o2urr",".time.svelte-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.svelte-19o2urr{padding:0 0 0 8px}.current.svelte-19o2urr{position:relative}.duration.svelte-19o2urr{opacity:0.7}.duration.svelte-19o2urr:before{content:' / ';white-space:pre}")}function G1(i){let e,t;return{c(){e=I("span"),t=He(i[3]),f(e,"class","duration svelte-19o2urr")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&8&&je(t,n[3])},d(n){n&&y(e)}}}function x2(i){let e,t,n,o,r=i[2]&&G1(i);return{c(){e=I("div"),t=I("span"),n=He(i[4]),o=Y(),r&&r.c(),f(t,"class","current svelte-19o2urr"),f(e,"class","time svelte-19o2urr"),K(e,"mobile",i[1])},m(s,a){w(s,e,a),_(e,t),_(t,n),_(e,o),r&&r.m(e,null),i[7](e)},p(s,[a]){a&16&&je(n,s[4]),s[2]?r?r.p(s,a):(r=G1(s),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&K(e,"mobile",s[1])},i:me,o:me,d(s){s&&y(e),r&&r.d(),i[7](null)}}}function j2(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:r}=e,{showDuration:s=!0}=e,{ref:a}=e,l,u;function c(m){ge[m?"unshift":"push"](()=>{a=m,t(0,a)})}return i.$$set=m=>{"isMobile"in m&&t(1,n=m.isMobile),"duration"in m&&t(5,o=m.duration),"position"in m&&t(6,r=m.position),"showDuration"in m&&t(2,s=m.showDuration),"ref"in m&&t(0,a=m.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,l=Fn(o)),i.$$.dirty&64&&t(4,u=Fn(r))},[a,n,s,l,u,o,r,c]}var lu=class extends N{constructor(e){super(),D(this,e,j2,x2,R,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},K2)}},ol=lu;import{noop as Oo}from"@vkontakte/videoplayer-shared";function G2(i){ve(i,"svelte-1n5yyua",".icon.svelte-1n5yyua.svelte-1n5yyua{display:block;width:24px;height:24px}.icon.svelte-1n5yyua .cross.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .wave1.svelte-1n5yyua,.icon[data-value='off'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .cross.svelte-1n5yyua{visibility:visible}.icon[data-value='mid'].svelte-1n5yyua .wave2.svelte-1n5yyua,.icon[data-value='min'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}")}function Y2(i){let e,t,n,o,r,s;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),r=M("path"),f(n,"class","wave2 svelte-1n5yyua"),f(n,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"),f(o,"class","wave1 svelte-1n5yyua"),f(o,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"),f(r,"class","cross svelte-1n5yyua"),f(r,"d","m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(e,"data-value",i[0]),f(e,"data-testid",s="volume-"+i[0]+"-icon"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","icon svelte-1n5yyua"),f(e,"aria-hidden","true")},m(a,l){w(a,e,l),_(e,t),_(t,n),_(t,o),_(t,r)},p(a,[l]){l&1&&f(e,"data-value",a[0]),l&1&&s!==(s="volume-"+a[0]+"-icon")&&f(e,"data-testid",s)},i:me,o:me,d(a){a&&y(e)}}}function Q2(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,r=(a,l)=>l?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",s;return i.$$set=a=>{"volume"in a&&t(1,n=a.volume),"muted"in a&&t(2,o=a.muted)},i.$$.update=()=>{i.$$.dirty&6&&t(0,s=r(n,o))},[s,n,o]}var au=class extends N{constructor(e){super(),D(this,e,Q2,Y2,R,{volume:1,muted:2},G2)}},dr=au;import{noop as no}from"@vkontakte/videoplayer-shared";import{noop as nb}from"@vkontakte/videoplayer-shared";import{noop as J2}from"@vkontakte/videoplayer-shared";function Z2(i){let e,t,n=i[4].default,o=Ve(n,i,i[3],null);return{c(){e=I("div"),o&&o.c(),f(e,"class","overlay")},m(r,s){w(r,e,s),o&&o.m(e,null),i[5](e),t=!0},p(r,[s]){o&&o.p&&(!t||s&8)&&Be(o,n,r,r[3],t?Re(n,r[3],s,null):Ne(r[3]),null)},i(r){t||(d(o,r),t=!0)},o(r){p(o,r),t=!1},d(r){r&&y(e),o&&o.d(r),i[5](null)}}}function X2(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=ot().ui.overlayContainer$;O(i,a,h=>t(2,n=h));let l,u=h=>{!h||!l||!h.contains(l)||h.removeChild(l)},c=h=>{!h||!l||h.contains(l)||h.appendChild(l)};Lt(()=>(c(n),()=>u(n)));function m(h){ge[h?"unshift":"push"](()=>{l=h,t(0,l)})}return i.$$set=h=>{"$$scope"in h&&t(3,r=h.$$scope)},i.$$.update=()=>{i.$$.dirty&4&&c(n)},[l,a,n,r,o,m]}var uu=class extends N{constructor(e){super(),D(this,e,X2,Z2,R,{})}},Y1=uu;function $2(i){ve(i,"svelte-1jbbzcj",'.tooltip-wrapper.svelte-1jbbzcj{display:flex;flex-direction:column;min-width:0}.full-width.svelte-1jbbzcj{width:100%}.tooltip.svelte-1jbbzcj{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.svelte-1jbbzcj{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.svelte-1jbbzcj{opacity:1;visibility:visible}.tooltip-pointer.svelte-1jbbzcj{position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}')}function Q1(i){let e,t;return e=new Y1({props:{$$slots:{default:[eb]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&16777445&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function eb(i){let e,t,n,o,r;return{c(){e=I("div"),t=I("div"),n=He(i[2]),o=Y(),r=I("div"),f(t,"class","content svelte-1jbbzcj"),f(r,"class","tooltip-pointer svelte-1jbbzcj"),f(r,"style",i[7]),f(e,"class","tooltip svelte-1jbbzcj"),f(e,"style",i[6]),K(e,"active",i[0])},m(s,a){w(s,e,a),_(e,t),_(t,n),_(e,o),_(e,r),i[23](e)},p(s,a){a[0]&4&&je(n,s[2]),a[0]&128&&f(r,"style",s[7]),a[0]&64&&f(e,"style",s[6]),a[0]&1&&K(e,"active",s[0])},d(s){s&&y(e),i[23](null)}}}function tb(i){let e,t,n,o,r,s,a=i[21].default,l=Ve(a,i,i[24],null),u=i[2]&&!i[1]&&Q1(i);return{c(){e=I("div"),l&&l.c(),t=Y(),u&&u.c(),n=Je(),f(e,"class","tooltip-wrapper svelte-1jbbzcj"),K(e,"full-width",i[3])},m(c,m){w(c,e,m),l&&l.m(e,null),i[22](e),w(c,t,m),u&&u.m(c,m),w(c,n,m),o=!0,r||(s=[ke(e,"mouseenter",i[10]),ke(e,"mousemove",i[10]),ke(e,"mouseleave",i[11]),ke(e,"mousedown",i[11]),ke(e,"mouseup",i[10])],r=!0)},p(c,m){l&&l.p&&(!o||m[0]&16777216)&&Be(l,a,c,c[24],o?Re(a,c[24],m,null):Ne(c[24]),null),(!o||m[0]&8)&&K(e,"full-width",c[3]),c[2]&&!c[1]?u?(u.p(c,m),m[0]&6&&d(u,1)):(u=Q1(c),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(ae(),p(u,1,1,()=>{u=null}),ue())},i(c){o||(d(l,c),d(u),o=!0)},o(c){p(l,c),p(u),o=!1},d(c){c&&(y(e),y(t),y(n)),l&&l.d(c),i[22](null),u&&u.d(c),r=!1,ct(s)}}}var So=5;function ib(i,e,t){let n,o,{$$slots:r={},$$scope:s}=e,{isMobile:a=!1}=e,{content:l=""}=e,{active:u=!1}=e,{translateX:c=0}=e,{translateY:m=0}=e,{isFullWidthWrapper:h=!1}=e,{maxTooltipWidth:C=void 0}=e,{placement:g="top"}=e,{onVisibilityChange:T=J2}=e,k,H,S,v=0,E=0,q=0,U=0,F=Vt(),ie=ot(),fe=ie.ui.playerSize;O(i,fe,Ae=>t(27,o=Ae));let G=ie.ui.overlayContainer$;O(i,G,Ae=>t(26,n=Ae));let J=ie.getLogger().createComponentLog("Tooltip component"),Q=()=>{if(!n||!H||!k)return;t(18,E=So);let Ae=n.getBoundingClientRect(),We=k.getBoundingClientRect(),ee=We.width,pe=H.clientWidth,Ce=o.width,xe=(ee-pe)/2,st=We.left+c-Ae.left,at=st+xe,nt=We.top+m-Ae.top,$e=pe/2-So,de=at<8,Se=at+pe>Ce-8;de&&(at=8,$e=st+We.width/2-2.5*So),Se&&(at=Ce-8-pe,$e=We.left-Ae.left+We.width/2-at-So),t(19,q=at),t(20,U=nt),t(17,v=$e)},W=()=>{!n||!H||!k||t(18,E=-So)},ce=()=>{if(!n||!H||!k)return;t(17,v=So);let Ae=n.getBoundingClientRect(),We=k.getBoundingClientRect(),ee=We.height,pe=H.clientHeight,Ce=(ee-pe)/2+pe,xe=We.left+c-Ae.left-H.clientWidth,st=2,at=xe-So;at<8&&(at=8);let $e=We.top+m-Ae.top+Ce,de=st-Ce/2,Se=st-So;t(19,q=at),t(20,U=$e),t(18,E=de),t(17,v=Se)},z=()=>{!n||!H||!k||t(17,v=-So)},x=()=>{switch(g){case"top":Q();break;case"bottom":W();break;case"left":ce();break;default:z()}},P=()=>{try{if(!n||!k)return;x(),t(0,u=!0)}catch(Ae){J({message:String(Ae)})}},$=()=>{t(0,u=!1)},le=()=>{H&&(S||(S=window.setTimeout(P,F.controls.hideTimeoutTooltips)),u&&P())},Me=()=>{$(),window.clearTimeout(S),S=void 0},te=(Ae,We)=>{let ee="";switch(g){case"top":ee=`transform: translate(${Ae}px, ${We}px);`;break;case"bottom":ee=`transform: translate(${Ae}px, ${We}px); top: auto; bottom: 100%;`;break;case"left":ee=`transform: translate(${Ae}px, ${We}px); left: 0; right: auto;`;break;default:ee=`transform: translate(${Ae}px, ${We}px);`}return ee+=` max-width: ${C===void 0?"auto":`${C}px`};`,ee},be=(Ae,We)=>{let ee="";switch(g){case"top":ee=`transform: translate(${Ae}px, ${We}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":ee=`transform: translate(${Ae}px, ${We}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":ee=`transform: translate(${Ae}px, ${We}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:ee=`transform: translate(${Ae}px, ${We}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return ee},Ee,Te;Lt(x),eo(()=>window.clearTimeout(S));function Ie(Ae){ge[Ae?"unshift":"push"](()=>{k=Ae,t(4,k)})}function rt(Ae){ge[Ae?"unshift":"push"](()=>{H=Ae,t(5,H)})}return i.$$set=Ae=>{"isMobile"in Ae&&t(1,a=Ae.isMobile),"content"in Ae&&t(2,l=Ae.content),"active"in Ae&&t(0,u=Ae.active),"translateX"in Ae&&t(12,c=Ae.translateX),"translateY"in Ae&&t(13,m=Ae.translateY),"isFullWidthWrapper"in Ae&&t(3,h=Ae.isFullWidthWrapper),"maxTooltipWidth"in Ae&&t(14,C=Ae.maxTooltipWidth),"placement"in Ae&&t(15,g=Ae.placement),"onVisibilityChange"in Ae&&t(16,T=Ae.onVisibilityChange),"$$scope"in Ae&&t(24,s=Ae.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&65537&&T(u),i.$$.dirty[0]&1966080&&(t(6,Ee=te(q,U)),t(7,Te=be(v,E)))},[u,a,l,h,k,H,Ee,Te,fe,G,le,Me,c,m,C,g,T,v,E,q,U,r,Ie,rt,s]}var cu=class extends N{constructor(e){super(),D(this,e,ib,tb,R,{isMobile:1,content:2,active:0,translateX:12,translateY:13,isFullWidthWrapper:3,maxTooltipWidth:14,placement:15,onVisibilityChange:16},$2,[-1,-1])}},Br=cu;function ob(i){ve(i,"svelte-p9r045",".btn-container.svelte-p9r045{position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.svelte-p9r045{width:100%;min-width:0}")}function rb(i){let e,t=i[19].default,n=Ve(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Be(n,t,o,o[24],e?Re(t,o[24],r,null):Ne(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){p(n,o),e=!1},d(o){n&&n.d(o)}}}function sb(i){let e,t;return e=new Br({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[lb]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&2048&&(r.content=n[11]),o&512&&(r.translateX=n[9]),o&1024&&(r.translateY=n[10]),o&16&&(r.isFullWidthWrapper=n[4]),o&32&&(r.active=n[5]),o&64&&(r.placement=n[6]),o&256&&(r.onVisibilityChange=n[8]),o&16777216&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function lb(i){let e,t=i[19].default,n=Ve(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Be(n,t,o,o[24],e?Re(t,o[24],r,null):Ne(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){p(n,o),e=!1},d(o){n&&n.d(o)}}}function ab(i){let e,t,n,o,r,s,a,l,u,c=[sb,rb],m=[];function h(C,g){return C[3]&&C[11]&&!C[12]?0:1}return t=h(i,-1),n=m[t]=c[t](i),{c(){e=I("div"),n.c(),f(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),f(e,"aria-hidden",r=i[7]||null)},m(C,g){w(C,e,g),m[t].m(e,null),i[23](e),a=!0,l||(u=[br(s=Rr.call(null,e)),ke(e,"fd:resize",i[22]),ke(e,"pointerdown",bt(i[20])),ke(e,"click",bt(i[21]))],l=!0)},p(C,[g]){let T=t;t=h(C,g),t===T?m[t].p(C,g):(ae(),p(m[T],1,1,()=>{m[T]=null}),ue(),n=m[t],n?n.p(C,g):(n=m[t]=c[t](C),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+C[2]+" svelte-p9r045"))&&f(e,"class",o),(!a||g&128&&r!==(r=C[7]||null))&&f(e,"aria-hidden",r)},i(C){a||(d(n),a=!0)},o(C){p(n),a=!1},d(C){C&&y(e),m[t].d(),i[23](null),l=!1,ct(u)}}}function ub(i,e,t){let n,o,{$$slots:r={},$$scope:s}=e,{className:a=""}=e,{disabled:l=!1}=e,{hasTooltip:u=!0}=e,{ref:c=void 0}=e,{width:m=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:C=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:T="top"}=e,{disabledTooltipContent:k=j("tooltip_button_disabled")}=e,{isAriaHidden:H=!1}=e,{onTooltipVisibilityChange:S=nb}=e,{initialTranslateXPx:v=0}=e,{initialTranslateYPx:E=-18}=e,q=ot(),U=q.ui.isMobile;O(i,U,W=>t(12,o=W));let F=q.state.graphIsOpened$;O(i,F,W=>t(18,n=W));let ie;function fe(W){Dn.call(this,i,W)}function G(W){Dn.call(this,i,W)}let J=W=>{t(1,m=W.target.clientWidth)};function Q(W){ge[W?"unshift":"push"](()=>{c=W,t(0,c)})}return i.$$set=W=>{"className"in W&&t(2,a=W.className),"disabled"in W&&t(15,l=W.disabled),"hasTooltip"in W&&t(3,u=W.hasTooltip),"ref"in W&&t(0,c=W.ref),"width"in W&&t(1,m=W.width),"isFullWidthTooltip"in W&&t(4,h=W.isFullWidthTooltip),"tooltipContent"in W&&t(16,C=W.tooltipContent),"tooltipActive"in W&&t(5,g=W.tooltipActive),"tooltipPlacement"in W&&t(6,T=W.tooltipPlacement),"disabledTooltipContent"in W&&t(17,k=W.disabledTooltipContent),"isAriaHidden"in W&&t(7,H=W.isAriaHidden),"onTooltipVisibilityChange"in W&&t(8,S=W.onTooltipVisibilityChange),"initialTranslateXPx"in W&&t(9,v=W.initialTranslateXPx),"initialTranslateYPx"in W&&t(10,E=W.initialTranslateYPx),"$$scope"in W&&t(24,s=W.$$scope)},i.$$.update=()=>{i.$$.dirty&491520&&(l?t(11,ie=n?j("tooltip_disabled_when_graph_on"):k):t(11,ie=C))},[c,m,a,u,h,g,T,H,S,v,E,ie,o,U,F,l,C,k,n,r,fe,G,J,Q,s]}var fu=class extends N{constructor(e){super(),D(this,e,ub,ab,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},ob)}},en=fu;function cb(i){let e,t,n,o,r,s;return{c(){e=M("svg"),t=M("rect"),o=M("path"),f(t,"width","20"),f(t,"height","20"),f(t,"rx","10"),f(t,"fill","white"),f(t,"fill-opacity",n=i[0]?1:.24),f(o,"d","M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"),f(o,"fill",r=i[0]?"var(--interactive-episode-complete)":"white"),f(e,"width","20"),f(e,"height","20"),f(e,"viewBox","0 0 20 20"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid",s=(i[0],"interactive-episode-completed-icon"))},m(a,l){w(a,e,l),_(e,t),_(e,o)},p(a,[l]){l&1&&n!==(n=a[0]?1:.24)&&f(t,"fill-opacity",n),l&1&&r!==(r=a[0]?"var(--interactive-episode-complete)":"white")&&f(o,"fill",r),l&1&&s!==(s=(a[0],"interactive-episode-completed-icon"))&&f(e,"data-testid",s)},i:me,o:me,d(a){a&&y(e)}}}function fb(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var du=class extends N{constructor(e){super(),D(this,e,fb,cb,R,{completed:0})}},rl=du;function db(i){ve(i,"svelte-bklhpe",".interactive-episode-icon.svelte-bklhpe{width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default}.interactive-episode-icon.disabled.svelte-bklhpe{pointer-events:none;opacity:0.4}")}function mb(i){let e,t,n,o,r,s,a;return t=new rl({props:{completed:!!i[0].completed}}),{c(){e=I("div"),B(t.$$.fragment),f(e,"class","interactive-episode-icon svelte-bklhpe"),f(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),K(e,"disabled",i[1])},m(l,u){w(l,e,u),L(t,e,null),r=!0,s||(a=[br(o=Rr.call(null,e)),ke(e,"fd:resize",i[3])],s=!0)},p(l,u){let c={};u&1&&(c.completed=!!l[0].completed),t.$set(c),(!r||u&1&&n!==(n=`left: ${l[0].from+l[0].width/2}%`))&&f(e,"style",n),(!r||u&2)&&K(e,"disabled",l[1])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){p(t.$$.fragment,l),r=!1},d(l){l&&y(e),V(t),s=!1,ct(a)}}}function pb(i){let e,t;return e=new en({props:{tooltipContent:j(i[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished"),initialTranslateXPx:-10,initialTranslateYPx:-10,disabled:i[1],width:i[2]||0,isAriaHidden:!0,isFullWidthTooltip:!1,$$slots:{default:[mb]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.tooltipContent=j(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(r.disabled=n[1]),o&4&&(r.width=n[2]||0),o&23&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function _b(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,r,s=a=>{t(2,r=a.target.clientWidth)};return i.$$set=a=>{"videoEpisode"in a&&t(0,n=a.videoEpisode),"disabled"in a&&t(1,o=a.disabled)},[n,o,r,s]}var mu=class extends N{constructor(e){super(),D(this,e,_b,pb,R,{videoEpisode:0,disabled:1},db)}},Z1=mu;function hb(i){ve(i,"svelte-1rzxunm",".video-episodes-wrap.svelte-1rzxunm{position:absolute;width:100%;height:100%}.video-episode.svelte-1rzxunm{position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:-5px;padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s}.video-episode.svelte-1rzxunm:not(.disabled):where(:hover, :active){transform:scaleY(1.5)}.video-episode-inner.svelte-1rzxunm,.video-episode-loaded.svelte-1rzxunm,.video-episode-filled.svelte-1rzxunm{position:absolute;height:var(--slider-height);border-radius:var(--slider-radius)}.video-episode-inner.svelte-1rzxunm{position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg)}.video-episode-loaded.svelte-1rzxunm{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.video-episode-filled.svelte-1rzxunm{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}")}function X1(i,e,t){let n=i.slice();return n[3]=e[t],n}function J1(i){let e,t,n,o,r,s,a,l,u;return{c(){e=I("div"),t=I("div"),n=I("div"),r=Y(),s=I("div"),l=Y(),f(n,"class","video-episode-loaded svelte-1rzxunm"),f(n,"style",o=`transform: translateX(${i[3].loadedWidth/i[3].width*100}%)`),f(s,"class","video-episode-filled svelte-1rzxunm"),f(s,"style",a=`transform: translateX(${i[3].filledWidth/i[3].width*100}%)`),K(s,"mobile",i[1]),f(t,"class","video-episode-inner svelte-1rzxunm"),f(e,"class","video-episode svelte-1rzxunm"),f(e,"style",u=`left: ${i[3].from}%; width: ${i[3].width}%`),K(e,"disabled",i[2]),K(e,"mobile",i[1])},m(c,m){w(c,e,m),_(e,t),_(t,n),_(t,r),_(t,s),_(e,l)},p(c,m){m&1&&o!==(o=`transform: translateX(${c[3].loadedWidth/c[3].width*100}%)`)&&f(n,"style",o),m&1&&a!==(a=`transform: translateX(${c[3].filledWidth/c[3].width*100}%)`)&&f(s,"style",a),m&2&&K(s,"mobile",c[1]),m&1&&u!==(u=`left: ${c[3].from}%; width: ${c[3].width}%`)&&f(e,"style",u),m&4&&K(e,"disabled",c[2]),m&2&&K(e,"mobile",c[1])},d(c){c&&y(e)}}}function gb(i){let e,t=wt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=J1(X1(i,t,o));return{c(){e=I("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","video-episodes-wrap svelte-1rzxunm")},m(o,r){w(o,e,r);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(e,null)},p(o,[r]){if(r&7){t=wt(o[0]);let s;for(s=0;s<t.length;s+=1){let a=X1(o,t,s);n[s]?n[s].p(a,r):(n[s]=J1(a),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},i:me,o:me,d(o){o&&y(e),mi(n,o)}}}function bb(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e,{disabled:r}=e;return i.$$set=s=>{"videoEpisodes"in s&&t(0,n=s.videoEpisodes),"isMobile"in s&&t(1,o=s.isMobile),"disabled"in s&&t(2,r=s.disabled)},[n,o,r]}var pu=class extends N{constructor(e){super(),D(this,e,bb,gb,R,{videoEpisodes:0,isMobile:1,disabled:2},hb)}},$1=pu;function vb(i){ve(i,"svelte-v8ydei",".interactive-icons.svelte-v8ydei.svelte-v8ydei{position:absolute;width:calc(100% - 20px);top:-28px}.interactive-icons.mobile.svelte-v8ydei.svelte-v8ydei{top:-10px}.slider.svelte-v8ydei.svelte-v8ydei{position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent}.no-handle.svelte-v8ydei.svelte-v8ydei{cursor:default}.slider.svelte-v8ydei.svelte-v8ydei:before{content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2)}.bars.svelte-v8ydei.svelte-v8ydei{position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg)}.loaded.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.filled.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}.slider.square.svelte-v8ydei.svelte-v8ydei,.slider.square.svelte-v8ydei>.bars.svelte-v8ydei,.slider.square.svelte-v8ydei .loaded.svelte-v8ydei,.slider.square.svelte-v8ydei .filled.svelte-v8ydei{border-radius:unset}.filled.active-live.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.filled.ads.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-ads)}.handleWrap.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%}.handle.svelte-v8ydei.svelte-v8ydei{position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-filled-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform}.handle.active-live.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.slider.svelte-v8ydei:hover .handle.svelte-v8ydei,.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{transform:scale(1.3)}.slider-vertical.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.slider.disabled.svelte-v8ydei.svelte-v8ydei{cursor:default;opacity:0.4}")}function em(i,e,t){let n=i.slice();return n[50]=e[t],n}function tm(i){let e,t,n=wt(i[21]),o=[];for(let s=0;s<n.length;s+=1)o[s]=nm(em(i,n,s));let r=s=>p(o[s],1,1,()=>{o[s]=null});return{c(){e=I("div");for(let s=0;s<o.length;s+=1)o[s].c();f(e,"class","interactive-icons svelte-v8ydei"),K(e,"mobile",i[6]),K(e,"hidden",i[6]&&!i[20])},m(s,a){w(s,e,a);for(let l=0;l<o.length;l+=1)o[l]&&o[l].m(e,null);t=!0},p(s,a){if(a[0]&2098176){n=wt(s[21]);let l;for(l=0;l<n.length;l+=1){let u=em(s,n,l);o[l]?(o[l].p(u,a),d(o[l],1)):(o[l]=nm(u),o[l].c(),d(o[l],1),o[l].m(e,null))}for(ae(),l=n.length;l<o.length;l+=1)r(l);ue()}(!t||a[0]&64)&&K(e,"mobile",s[6]),(!t||a[0]&1048640)&&K(e,"hidden",s[6]&&!s[20])},i(s){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(s){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)p(o[a]);t=!1},d(s){s&&y(e),mi(o,s)}}}function im(i){let e,t;return e=new Z1({props:{videoEpisode:i[50],disabled:i[10]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisode=n[50]),o[0]&1024&&(r.disabled=n[10]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function nm(i){let e,t,n=i[50].interactive&&im(i);return{c(){n&&n.c(),e=Je()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,r){o[50].interactive?n?(n.p(o,r),r[0]&2097152&&d(n,1)):(n=im(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),p(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function yb(i){let e,t,n,o,r,s;return{c(){e=I("div"),t=I("div"),o=Y(),r=I("div"),f(t,"class","loaded svelte-v8ydei"),f(t,"style",n=`transform: translateX(${i[12]*100}%);`),f(r,"class","filled svelte-v8ydei"),f(r,"style",s=`transform: translateX(${i[13]*100}%);`),K(r,"active-live",i[5]),K(r,"ads",i[7]),f(e,"class","bars svelte-v8ydei")},m(a,l){w(a,e,l),_(e,t),_(e,o),_(e,r)},p(a,l){l[0]&4096&&n!==(n=`transform: translateX(${a[12]*100}%);`)&&f(t,"style",n),l[0]&8192&&s!==(s=`transform: translateX(${a[13]*100}%);`)&&f(r,"style",s),l[0]&32&&K(r,"active-live",a[5]),l[0]&128&&K(r,"ads",a[7])},i:me,o:me,d(a){a&&y(e)}}}function wb(i){let e,t;return e=new $1({props:{videoEpisodes:i[21],disabled:i[10],isMobile:i[6]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisodes=n[21]),o[0]&1024&&(r.disabled=n[10]),o[0]&64&&(r.isMobile=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function kb(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g=i[9]&&tm(i),T=[wb,yb],k=[];function H(S,v){return S[21].length?0:1}return n=H(i,[-1,-1]),o=k[n]=T[n](i),{c(){var S;g&&g.c(),e=Y(),t=I("div"),o.c(),r=Y(),s=I("div"),a=I("div"),f(a,"class","handle svelte-v8ydei"),K(a,"active-live",i[5]),f(s,"class","handleWrap svelte-v8ydei"),f(s,"style",l=`transform: translateX(${i[14]*100}%);`),K(s,"hidden",i[11]),f(t,"class",u="slider "+i[1]+" svelte-v8ydei"),f(t,"aria-label",i[15]),f(t,"aria-valuemin",i[16]),f(t,"aria-valuemax",i[17]),f(t,"aria-valuenow",i[18]),f(t,"aria-valuetext",i[19]),f(t,"role","slider"),f(t,"tabindex","0"),f(t,"data-testid",c=(S=i[2])!=null?S:null),K(t,"disabled",i[10]),K(t,"slider-dragging",i[20]),K(t,"hidden",i[3]),K(t,"slider-vertical",i[4]),K(t,"no-handle",i[11]),K(t,"square",i[8])},m(S,v){g&&g.m(S,v),w(S,e,v),w(S,t,v),k[n].m(t,null),_(t,r),_(t,s),_(s,a),i[44](t),m=!0,h||(C=[ke(t,"pointerdown",ri(i[22])),ke(t,"pointermove",ri(i[23])),ke(t,"pointerup",ri(i[24])),ke(t,"pointerenter",ri(i[25])),ke(t,"pointerleave",ri(i[26])),ke(t,"click",bt(i[28])),ke(t,"wheel",i[27])],h=!0)},p(S,v){var q;S[9]?g?(g.p(S,v),v[0]&512&&d(g,1)):(g=tm(S),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(ae(),p(g,1,1,()=>{g=null}),ue());let E=n;n=H(S,v),n===E?k[n].p(S,v):(ae(),p(k[E],1,1,()=>{k[E]=null}),ue(),o=k[n],o?o.p(S,v):(o=k[n]=T[n](S),o.c()),d(o,1),o.m(t,r)),(!m||v[0]&32)&&K(a,"active-live",S[5]),(!m||v[0]&16384&&l!==(l=`transform: translateX(${S[14]*100}%);`))&&f(s,"style",l),(!m||v[0]&2048)&&K(s,"hidden",S[11]),(!m||v[0]&2&&u!==(u="slider "+S[1]+" svelte-v8ydei"))&&f(t,"class",u),(!m||v[0]&32768)&&f(t,"aria-label",S[15]),(!m||v[0]&65536)&&f(t,"aria-valuemin",S[16]),(!m||v[0]&131072)&&f(t,"aria-valuemax",S[17]),(!m||v[0]&262144)&&f(t,"aria-valuenow",S[18]),(!m||v[0]&524288)&&f(t,"aria-valuetext",S[19]),(!m||v[0]&4&&c!==(c=(q=S[2])!=null?q:null))&&f(t,"data-testid",c),(!m||v[0]&1026)&&K(t,"disabled",S[10]),(!m||v[0]&1048578)&&K(t,"slider-dragging",S[20]),(!m||v[0]&10)&&K(t,"hidden",S[3]),(!m||v[0]&18)&&K(t,"slider-vertical",S[4]),(!m||v[0]&2050)&&K(t,"no-handle",S[11]),(!m||v[0]&258)&&K(t,"square",S[8])},i(S){m||(d(g),d(o),m=!0)},o(S){p(g),p(o),m=!1},d(S){S&&(y(e),y(t)),g&&g.d(S),k[n].d(),i[44](null),h=!1,ct(C)}}}function Cb(i,e,t){let n,o,{ref:r=void 0}=e,{className:s=""}=e,{testId:a=void 0}=e,{isHidden:l=!1}=e,{isVertical:u=!1}=e,{isActiveLive:c=!1}=e,{isMobile:m=!1}=e,{isAds:h=!1}=e,{squareBorders:C=!1}=e,{videoEpisodes:g=[]}=e,{withWheelHandler:T=!1}=e,{isInteractive:k=!1}=e,{disabled:H=!1}=e,{hideHandel:S=!1}=e,v,{onPointerDown:E=no}=e,{onHandleMove:q=no}=e,{onPointerUp:U=no}=e,{onPointerEnter:F=no}=e,{onPointerMove:ie=no}=e,{onPointerLeave:fe=no}=e,{onWheelUp:G=no}=e,{onWheelDown:J=no}=e,{onWheelLeft:Q=no}=e,{onWheelRight:W=no}=e,{onDisabledClick:ce=no}=e,{loadedProgress:z=0}=e,{filledProgress:x=0}=e,{handleProgress:P=0}=e,{ariaLabel:$=""}=e,{ariaValueMin:le=void 0}=e,{ariaValueMax:Me=void 0}=e,{ariaValueNow:te=void 0}=e,{ariaValueText:be=""}=e,Ee=Vt(),Te=!1,Ie;function rt(de){if(r&&(v=r.getBoundingClientRect()),H||Te||!r)return;t(20,Te=!0);let Se=st(de.clientX,de.clientY);E(Se),r.setPointerCapture(de.pointerId)}function Ae(de){if(H)return;let Se=st(de.clientX,de.clientY),et=at(de.clientX);ie(Se,et,v.width),Te&&q(Se)}function We(de){if(H||!Te)return;t(20,Te=!1);let Se=st(de.clientX,de.clientY);U(Se)}function ee(de){if(r&&(v=r.getBoundingClientRect()),H)return;let Se=st(de.clientX,de.clientY),et=at(de.clientX);F(Se,et,v.width)}function pe(){H||fe()}function Ce(de){H||T&&(de.preventDefault(),de.deltaY<0?G():de.deltaY>0?J():de.deltaX>0?W():Q())}function xe(de){H&&ce(st(de.clientX,de.clientY))}function st(de,Se){return u?Math.max(0,Math.min(1,(v.height-(Se-v.top))/v.height)):Math.min(Math.max(de-v.x,0),v.width)/v.width}function at(de){return Math.min(Math.max(de-v.x,0),v.width)}function nt(de,Se){let et=Ee.features.episodesClustering&&!k?Ee.episodeMinWidthPc:0,De=[],tt=0,Fe=0,ft=0;for(let _t=1;_t<g.length;_t++)Fe=g[_t].time/Ie*100,Fe-tt>et&&(De.push({from:tt,width:Math.max(0,Fe-tt),loadedWidth:Math.max(0,Math.min(Fe,de)-tt),filledWidth:Math.max(0,Math.min(Fe,Se)-tt),interactive:g[_t-1].interactive,completed:g[_t-1].completed}),tt=g[_t].time/Ie*100,ft++);let dt={from:tt,width:Math.max(0,100-tt),loadedWidth:Math.max(0,Math.min(de,100)-tt),filledWidth:Math.max(0,Math.min(Se,100)-tt),interactive:g[ft].interactive,completed:g[ft].completed};100-tt<et?(ft-=1,De[ft].width+=100-tt,De[ft].loadedWidth+=Math.max(0,Math.min(de,100)-tt),De[ft].filledWidth+=Math.max(0,Math.min(Se,100)-tt)):De[ft]=dt;let he=g[0].time;if(he!==0){let _t=he/Ie*100;De.unshift({from:0,width:_t,loadedWidth:Math.min(_t,de),filledWidth:Math.min(_t,Se)})}return De}function $e(de){ge[de?"unshift":"push"](()=>{r=de,t(0,r)})}return i.$$set=de=>{"ref"in de&&t(0,r=de.ref),"className"in de&&t(1,s=de.className),"testId"in de&&t(2,a=de.testId),"isHidden"in de&&t(3,l=de.isHidden),"isVertical"in de&&t(4,u=de.isVertical),"isActiveLive"in de&&t(5,c=de.isActiveLive),"isMobile"in de&&t(6,m=de.isMobile),"isAds"in de&&t(7,h=de.isAds),"squareBorders"in de&&t(8,C=de.squareBorders),"videoEpisodes"in de&&t(29,g=de.videoEpisodes),"withWheelHandler"in de&&t(30,T=de.withWheelHandler),"isInteractive"in de&&t(9,k=de.isInteractive),"disabled"in de&&t(10,H=de.disabled),"hideHandel"in de&&t(11,S=de.hideHandel),"onPointerDown"in de&&t(31,E=de.onPointerDown),"onHandleMove"in de&&t(32,q=de.onHandleMove),"onPointerUp"in de&&t(33,U=de.onPointerUp),"onPointerEnter"in de&&t(34,F=de.onPointerEnter),"onPointerMove"in de&&t(35,ie=de.onPointerMove),"onPointerLeave"in de&&t(36,fe=de.onPointerLeave),"onWheelUp"in de&&t(37,G=de.onWheelUp),"onWheelDown"in de&&t(38,J=de.onWheelDown),"onWheelLeft"in de&&t(39,Q=de.onWheelLeft),"onWheelRight"in de&&t(40,W=de.onWheelRight),"onDisabledClick"in de&&t(41,ce=de.onDisabledClick),"loadedProgress"in de&&t(12,z=de.loadedProgress),"filledProgress"in de&&t(13,x=de.filledProgress),"handleProgress"in de&&t(14,P=de.handleProgress),"ariaLabel"in de&&t(15,$=de.ariaLabel),"ariaValueMin"in de&&t(16,le=de.ariaValueMin),"ariaValueMax"in de&&t(17,Me=de.ariaValueMax),"ariaValueNow"in de&&t(18,te=de.ariaValueNow),"ariaValueText"in de&&t(19,be=de.ariaValueText)},i.$$.update=()=>{var de;i.$$.dirty[0]&131072&&t(42,Ie=Me!=null?Me:0),i.$$.dirty[0]&536870912|i.$$.dirty[1]&2048&&t(43,n=((de=g[g.length-1])==null?void 0:de.time)<Ie),i.$$.dirty[0]&536883200|i.$$.dirty[1]&6144&&t(21,o=g.length&&n&&Ie?nt(z*100,x*100):[])},[r,s,a,l,u,c,m,h,C,k,H,S,z,x,P,$,le,Me,te,be,Te,o,rt,Ae,We,ee,pe,Ce,xe,g,T,E,q,U,F,ie,fe,G,J,Q,W,ce,Ie,n,$e]}var _u=class extends N{constructor(e){super(),D(this,e,Cb,kb,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},vb,[-1,-1])}},Nr=_u;var vi=(i,e)=>or[i]>=or[e],om=(i,e)=>or[i]<or[e],Dr=(i,e)=>or[i]<=or[e],rm=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function Sb(i){ve(i,"svelte-1l78lz9",".volumeBar-container.svelte-1l78lz9{display:flex;align-items:center}.volumeBar-container.vertical.svelte-1l78lz9,.vertical.svelte-1l78lz9 .tooltip-wrapper,.vertical.svelte-1l78lz9 .btn{width:40px}.volumeBar.svelte-1l78lz9{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.svelte-1l78lz9{padding:0 8px 0 0;width:0}")}function Tb(i){let e,t;return e=new dr({props:{volume:i[3],muted:i[1]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.volume=n[3]),o[0]&2&&(r.muted=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Ib(i){let e,t;return e=new ht({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:mo.KeyM,$$slots:{default:[Tb]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&512&&(r.disabled=n[9]),o[0]&4&&(r.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(r.ariaLabel=n[7]),o[0]&1&&(r.click=n[0]),o[0]&10|o[1]&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function sm(i){let e,t,n;return t=new Nr({props:{className:i[2]?"volumeBar-slider-vertical":"",isHidden:i[2]&&!i[5],isVertical:i[2],withWheelHandler:!0,onWheelUp:i[15],onWheelDown:i[16],onPointerDown:i[14],onHandleMove:i[17],onPointerUp:i[18],onPointerEnter:i[2]?i[19]:Oo,onPointerLeave:i[2]?i[20]:Oo,ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(i[8]*100),ariaValueText:`${Math.round(i[8]*100)}%`,filledProgress:i[8],handleProgress:i[8],testId:i[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=I("div"),B(t.$$.fragment),f(e,"class","volumeBar svelte-1l78lz9"),K(e,"volumeBar-vertical",i[2])},m(o,r){w(o,e,r),L(t,e,null),n=!0},p(o,r){let s={};r[0]&4&&(s.className=o[2]?"volumeBar-slider-vertical":""),r[0]&36&&(s.isHidden=o[2]&&!o[5]),r[0]&4&&(s.isVertical=o[2]),r[0]&4&&(s.onPointerEnter=o[2]?o[19]:Oo),r[0]&4&&(s.onPointerLeave=o[2]?o[20]:Oo),r[0]&256&&(s.ariaValueNow=Math.round(o[8]*100)),r[0]&256&&(s.ariaValueText=`${Math.round(o[8]*100)}%`),r[0]&256&&(s.filledProgress=o[8]),r[0]&256&&(s.handleProgress=o[8]),r[0]&4&&(s.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(s),(!n||r[0]&4)&&K(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),V(t)}}}function Pb(i){let e,t,n,o,r,s;t=new Br({props:{content:i[6],translateY:-18,$$slots:{default:[Ib]},$$scope:{ctx:i}}});let a=i[4]&&sm(i);return{c(){e=I("div"),B(t.$$.fragment),n=Y(),a&&a.c(),f(e,"class","volumeBar-container svelte-1l78lz9"),K(e,"vertical",i[2])},m(l,u){w(l,e,u),L(t,e,null),_(e,n),a&&a.m(e,null),o=!0,r||(s=[ke(e,"mouseenter",function(){xt(i[2]?i[21]:Oo)&&(i[2]?i[21]:Oo).apply(this,arguments)}),ke(e,"mouseleave",function(){xt(i[2]?i[22]:Oo)&&(i[2]?i[22]:Oo).apply(this,arguments)}),ke(e,"wheel",ri(i[23]))],r=!0)},p(l,u){i=l;let c={};u[0]&64&&(c.content=i[6]),u[0]&655|u[1]&32&&(c.$$scope={dirty:u,ctx:i}),t.$set(c),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=sm(i),a.c(),d(a,1),a.m(e,null)):a&&(ae(),p(a,1,1,()=>{a=null}),ue()),(!o||u[0]&4)&&K(e,"vertical",i[2])},i(l){o||(d(t.$$.fragment,l),d(a),o=!0)},o(l){p(t.$$.fragment,l),p(a),o=!1},d(l){l&&y(e),V(t),a&&a.d(),r=!1,ct(s)}}}function Eb(i,e,t){var Ee,Te;let n,o,r,s,{click:a}=e,l=ot(),u=Vt(),c=l.state.volume$;O(i,c,Ie=>t(3,n=Ie));let m=l.state.muted$;O(i,m,Ie=>t(25,s=Ie));let h=l.actions.internal.setVolume,C=l.ui.currentGridType$;O(i,C,Ie=>t(24,r=Ie));let g=(Ee=l.callbacks)==null?void 0:Ee.onAudioDoesNotExistHint,T=(Te=l.callbacks)==null?void 0:Te.onAudioDisabledHint,k=l.state.isAudioAvailable$;O(i,k,Ie=>t(4,o=Ie));let H=l.state.isAudioDisabled,S=!1,v,E,q,U,F,ie,fe=1,G=!1,J=!1;function Q(Ie){fe=n,h(Ie)}function W(){Zs(l,n,u.controls.volumeStepWheel)}function ce(){Xs(l,n,u.controls.volumeStepWheel)}function z(Ie){h(Ie)}function x(Ie){let rt=Ie;h(rt,rt===0?fe:rt)}function P(){G=!0}function $(){G=!1,te()}function le(){clearTimeout(v),t(5,S=!0)}function Me(){te()}function te(){v=window.setTimeout(()=>{G||t(5,S=!1)},u.controls.volumeBarTimeout)}function be(Ie){Ie.deltaY<0?W():Ie.deltaY>0&&ce()}return i.$$set=Ie=>{"click"in Ie&&t(0,a=Ie.click)},i.$$.update=()=>{i.$$.dirty[0]&33554448&&t(1,U=!o||s),i.$$.dirty[0]&16777216&&t(2,F=Dr(r,"s")),i.$$.dirty[0]&6&&(F?t(6,E=""):t(6,E=U?j("tooltip_volume"):j("tooltip_volume_muted")),t(7,q=U?j("tooltip_volume"):j("tooltip_volume_muted"))),i.$$.dirty[0]&10&&t(8,ie=U?0:n),i.$$.dirty[0]&16&&(o?t(9,J=H&&!T):t(9,J=!g))},[a,U,F,n,o,S,E,q,ie,J,c,m,C,k,Q,W,ce,z,x,P,$,le,Me,be,r,s]}var hu=class extends N{constructor(e){super(),D(this,e,Eb,Pb,R,{click:0},Sb,[-1,-1])}},lm=hu;import{noop as Bb}from"@vkontakte/videoplayer-shared";function Ab(i){let e,t,n,o,r,s=i[2].default,a=Ve(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("g"),n=M("path"),o=M("path"),f(n,"d","M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z"),f(n,"class","_exit"),f(o,"d","M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"),f(o,"class","_enter"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),we(e,u)},m(c,m){w(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Be(a,s,c,c[1],r?Re(s,c[1],m,null):Ne(c[1]),null),we(e,u=qe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&y(e),a&&a.d(c)}}}function Mb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var gu=class extends N{constructor(e){super(),D(this,e,Mb,Ab,R,{})}},am=gu;function Lb(i){ve(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Vb(i){let e,t;return e=new am({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Rb(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var bu=class extends N{constructor(e){super(),D(this,e,Rb,Vb,R,{isFullscreen:0},Lb)}},um=bu;function Nb(i){let e,t;return e=new um({props:{isFullscreen:i[0]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.isFullscreen=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Db(i){let e,t;return e=new ht({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:mo.KeyF,$$slots:{default:[Nb]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Ob(i,e,t){let{isFullscreen:n=!1}=e,{click:o=Bb}=e,r;return i.$$set=s=>{"isFullscreen"in s&&t(0,n=s.isFullscreen),"click"in s&&t(1,o=s.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=n?j("tooltip_fullscreen_on"):j("tooltip_fullscreen_off"))},[n,o,r]}var vu=class extends N{constructor(e){super(),D(this,e,Ob,Db,R,{isFullscreen:0,click:1})}},sl=vu;function Fb(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z"),f(t,"clip-rule","evenodd"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,l,l[1],n?Re(o,l[1],u,null):Ne(l[1]),null),we(e,a=qe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function Hb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var yu=class extends N{constructor(e){super(),D(this,e,Hb,Fb,R,{})}},cm=yu;function qb(i){let e,t,n,o,r,s,a=i[2].default,l=Ve(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],c={};for(let m=0;m<u.length;m+=1)c=se(c,u[m]);return{c(){e=M("svg"),l&&l.c(),t=M("path"),n=M("path"),o=M("path"),r=M("path"),f(t,"fill","#fff"),f(t,"d","M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"),f(n,"fill","#fff"),f(n,"d","M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35"),f(n,"class","_ru"),f(o,"fill","#fff"),f(o,"d","M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635"),f(o,"class","_en"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"d","M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"),f(r,"clip-rule","evenodd"),we(e,c)},m(m,h){w(m,e,h),l&&l.m(e,null),_(e,t),_(e,n),_(e,o),_(e,r),s=!0},p(m,[h]){l&&l.p&&(!s||h&2)&&Be(l,a,m,m[1],s?Re(a,m[1],h,null):Ne(m[1]),null),we(e,c=qe(u,[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},h&1&&m[0]]))},i(m){s||(d(l,m),s=!0)},o(m){p(l,m),s=!1},d(m){m&&y(e),l&&l.d(m)}}}function Ub(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var wu=class extends N{constructor(e){super(),D(this,e,Ub,qb,R,{})}},fm=wu;function zb(i){ve(i,"svelte-1nhjml",'svg[data-testid="vk-video-logo-icon--short"] ._ru,svg[data-testid="vk-video-logo-icon--short"] ._en,svg[data-testid="vk-video-logo-icon"] ._en,svg[data-testid="vk-video-logo-icon--en"] ._ru{visibility:hidden;opacity:0}')}function Wb(i){let e,t;return e=new fm({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.width=n[0]),o&1&&(r.viewBox="0 0 "+(n[0]+1)+" 24"),o&2&&(r["data-testid"]=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}var Kb="vk-video-logo-icon--short";function xb(i,e,t){let{short:n=!1}=e,{isCyrillic:o=!0}=e,r,s;return i.$$set=a=>{"short"in a&&t(2,n=a.short),"isCyrillic"in a&&t(3,o=a.isCyrillic)},i.$$.update=()=>{i.$$.dirty&12&&(t(0,r=n?21:95),t(1,s=n?Kb:"vk-video-logo-icon"),!o&&!n&&(t(0,r=91),t(1,s="vk-video-logo-icon--en")))},[r,s,n,o]}var ku=class extends N{constructor(e){super(),D(this,e,xb,Wb,R,{short:2,isCyrillic:3},zb)}},dm=ku;function Gb(i){let e,t;return e=new cm({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Yb(i){let e,t;return e=new dm({props:{short:i[4],isCyrillic:i[5]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.short=n[4]),o&32&&(r.isCyrillic=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Qb(i){let e,t,n,o,r=[Yb,Gb],s=[];function a(l,u){return l[2]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Je()},m(l,u){s[e].m(l,u),w(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&y(n),s[e].d(l)}}}function Zb(i){let e,t,n;function o(s){i[14](s)}let r={className:"btn-full-opacity",disabled:!i[1],click:i[9],testId:i[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[3],$$slots:{default:[Qb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.disabled=!s[1]),a&4&&(l.testId=s[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(l.ariaLabel=s[3]),a&131124&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Xb(i,e,t){let n,o,r,{ref:s=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:l=""}=e,{click:u}=e,c=Vt(),m=ot(),h=m.ui.currentGridType$;O(i,h,E=>t(12,n=E));let C=m.ui.isMobile;O(i,C,E=>t(13,o=E));let g=m.isCyrillicRelatedInterface$;O(i,g,E=>t(5,r=E));let T,k,H,S=()=>{var E,q;u(),(E=m.callbacks)!=null&&E.onLogoClicked?(q=m.callbacks)==null||q.onLogoClicked():l&&window.open(l,"_blank")};function v(E){s=E,t(0,s)}return i.$$set=E=>{"ref"in E&&t(0,s=E.ref),"logoClickable"in E&&t(1,a=E.logoClickable),"targetUrl"in E&&t(10,l=E.targetUrl),"click"in E&&t(11,u=E.click)},i.$$.update=()=>{i.$$.dirty&12292&&t(4,H=(o||Dr(n,"l"))&&k)},t(3,T=c.logoType==="vk_video"?j("tooltip_vk_video_logo"):j("tooltip_vk_logo")),t(2,k=c.logoType==="vk_video"||c.logoType==="vk_video_mobile"),[s,a,k,T,H,r,h,C,g,S,l,u,n,o,v]}var Cu=class extends N{constructor(e){super(),D(this,e,Xb,Zb,R,{ref:0,logoClickable:1,targetUrl:10,click:11})}},ll=Cu;import{ChromecastState as nv}from"@vkontakte/videoplayer-core";import{ChromecastState as mm}from"@vkontakte/videoplayer-core";function Jb(i){ve(i,"svelte-8z1bf5",".connecting.svelte-8z1bf5 .wave.svelte-8z1bf5{animation-duration:1s;animation-iteration-count:infinite}.connecting.svelte-8z1bf5 .wave1.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave1}.connecting.svelte-8z1bf5 .wave2.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave2}.connecting.svelte-8z1bf5 .wave3.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave3}@keyframes svelte-8z1bf5-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}")}function $b(i){let e,t,n,o,r,s,a,l;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),r=M("path"),s=M("path"),a=M("path"),l=M("path"),f(n,"class","wave wave1 svelte-8z1bf5"),f(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),f(n,"fill","#fff"),f(o,"class","wave wave2 svelte-8z1bf5"),f(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),f(o,"fill","#fff"),f(r,"class","wave wave3 svelte-8z1bf5"),f(r,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),f(r,"fill","#fff"),f(s,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),f(s,"fill","#fff"),f(a,"d","M0 0h24v24H0z"),f(l,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),f(l,"fill","#fff"),K(l,"hidden",!i[1]),f(t,"fill","none"),f(t,"fill-rule","evenodd"),f(e,"width","24"),f(e,"height","24"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-icon"),f(e,"class","svelte-8z1bf5"),K(e,"connecting",i[2])},m(u,c){w(u,e,c),_(e,t),_(t,n),_(t,o),_(t,r),_(t,s),_(t,a),_(t,l)},p(u,c){c&2&&K(l,"hidden",!u[1]),c&4&&K(e,"connecting",u[2])},d(u){u&&y(e)}}}function ev(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,T,k,H,S,v,E,q;return{c(){e=M("svg"),t=M("g"),n=M("mask"),o=M("path"),s=M("path"),a=M("path"),u=M("path"),c=M("defs"),m=M("clipPath"),h=M("path"),g=M("filter"),T=M("feFlood"),k=M("feColorMatrix"),H=M("feOffset"),S=M("feGaussianBlur"),v=M("feColorMatrix"),E=M("feBlend"),q=M("feBlend"),f(o,"fill",r=i[1]?"#2688EB":"#fff"),f(o,"d","M1.1 3.1h22v18h-22z"),f(s,"fill-rule","evenodd"),f(s,"clip-rule","evenodd"),f(s,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),f(n,"id","c"),f(n,"maskUnits","userSpaceOnUse"),f(n,"x","1.1"),f(n,"y","3.1"),f(n,"width","22"),f(n,"height","18"),f(n,"fill","#000"),f(a,"fill-rule","evenodd"),f(a,"clip-rule","evenodd"),f(a,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),f(a,"fill",l=i[1]?"#2688EB":"#fff"),f(u,"d","m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z"),f(u,"fill","#000"),f(u,"fill-opacity",".12"),f(u,"mask","url(#c)"),f(t,"filter","url(#b)"),f(t,"clip-path","url(#a)"),f(h,"fill",C=i[1]?"#2688EB":"#fff"),f(h,"d","M0 0h24v24H0z"),f(m,"id","a"),f(T,"flood-opacity","0"),f(T,"result","BackgroundImageFix"),f(k,"in","SourceAlpha"),f(k,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(k,"result","hardAlpha"),f(S,"stdDeviation","2.5"),f(v,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(E,"in2","BackgroundImageFix"),f(E,"result","effect1_dropShadow_4085_178456"),f(q,"in","SourceGraphic"),f(q,"in2","effect1_dropShadow_4085_178456"),f(q,"result","shape"),f(g,"id","b"),f(g,"x","-3.4"),f(g,"y","-1.4"),f(g,"width","30.8"),f(g,"height","26.802"),f(g,"filterUnits","userSpaceOnUse"),f(g,"color-interpolation-filters","sRGB"),f(e,"width","24"),f(e,"height","24"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-mobile-icon")},m(U,F){w(U,e,F),_(e,t),_(t,n),_(n,o),_(n,s),_(t,a),_(t,u),_(e,c),_(c,m),_(m,h),_(c,g),_(g,T),_(g,k),_(g,H),_(g,S),_(g,v),_(g,E),_(g,q)},p(U,F){F&2&&r!==(r=U[1]?"#2688EB":"#fff")&&f(o,"fill",r),F&2&&l!==(l=U[1]?"#2688EB":"#fff")&&f(a,"fill",l),F&2&&C!==(C=U[1]?"#2688EB":"#fff")&&f(h,"fill",C)},d(U){U&&y(e)}}}function tv(i){let e;function t(r,s){return r[0]?ev:$b}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Je()},m(r,s){o.m(r,s),w(r,e,s)},p(r,[s]){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:me,o:me,d(r){r&&y(e),o.d(r)}}}function iv(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,r,s;return i.$$set=a=>{"isMobile"in a&&t(0,n=a.isMobile),"state"in a&&t(3,o=a.state)},i.$$.update=()=>{i.$$.dirty&8&&(t(2,s=o===mm.CONNECTING),t(1,r=o===mm.CONNECTED))},[n,r,s,o]}var Su=class extends N{constructor(e){super(),D(this,e,iv,tv,R,{isMobile:0,state:3},Jb)}},pm=Su;import{noop as ov}from"@vkontakte/videoplayer-shared";function rv(i){let e,t;return e=new pm({props:{isMobile:i[1],state:i[2]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&4&&(r.state=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function sv(i){let e,t,n;function o(s){i[5](s)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[rv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&16&&(l.ariaLabel=s[4]),a&8&&(l.click=s[3]),a&70&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function lv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:s=ov}=e,a;function l(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"state"in u&&t(2,r=u.state),"click"in u&&t(3,s=u.click)},i.$$.update=()=>{i.$$.dirty&4&&t(4,a=r===nv.CONNECTED?j("tooltip_chromecast_on"):j("tooltip_chromecast_off"))},[n,o,r,s,a,l]}var Tu=class extends N{constructor(e){super(),D(this,e,lv,sv,R,{ref:0,isMobile:1,state:2,click:3})}},al=Tu;function av(i){ve(i,"svelte-5ygsa2",'.tooltip-wrapper.svelte-5ygsa2{position:relative;display:block}.tooltip.svelte-5ygsa2{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.pointer.svelte-5ygsa2:after{position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px)}.tooltip.active.svelte-5ygsa2{opacity:1;visibility:visible}')}function uv(i){let e,t,n,o,r=i[9].default,s=Ve(r,i,i[8],null);return{c(){e=I("div"),t=I("div"),s&&s.c(),f(t,"class","tooltip svelte-5ygsa2"),K(t,"active",i[0]),K(t,"pointer",i[1]),f(e,"class","tooltip-wrapper svelte-5ygsa2"),f(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(a,l){w(a,e,l),_(e,t),s&&s.m(t,null),i[10](t),i[11](e),o=!0},p(a,[l]){s&&s.p&&(!o||l&256)&&Be(s,r,a,a[8],o?Re(r,a[8],l,null):Ne(a[8]),null),(!o||l&1)&&K(t,"active",a[0]),(!o||l&2)&&K(t,"pointer",a[1]),(!o||l&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&f(e,"style",n)},i(a){o||(d(s,a),o=!0)},o(a){p(s,a),o=!1},d(a){a&&y(e),s&&s.d(a),i[10](null),i[11](null)}}}function cv(i,e,t){let n,{$$slots:o={},$$scope:r}=e,{active:s=!1}=e,{pointer:a=!1}=e,{translateXPx:l=0}=e,{translateYPx:u=0}=e,{containerWidth:c}=e,m,h;function C(k){if(!h)return 0;let{width:H}=h.getBoundingClientRect(),S=H/2;return k<S?S:k>c-S?c-S:k}function g(k){ge[k?"unshift":"push"](()=>{h=k,t(4,h)})}function T(k){ge[k?"unshift":"push"](()=>{m=k,t(3,m)})}return i.$$set=k=>{"active"in k&&t(0,s=k.active),"pointer"in k&&t(1,a=k.pointer),"translateXPx"in k&&t(6,l=k.translateXPx),"translateYPx"in k&&t(2,u=k.translateYPx),"containerWidth"in k&&t(7,c=k.containerWidth),"$$scope"in k&&t(8,r=k.$$scope)},i.$$.update=()=>{i.$$.dirty&64&&t(5,n=C(l))},[s,a,u,m,h,n,l,c,r,o,g,T]}var Iu=class extends N{constructor(e){super(),D(this,e,cv,uv,R,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},av)}},_m=Iu;var ul=(i,e,t)=>t.filter(n=>n.time<=i*e).pop();function fv(i){ve(i,"svelte-l51fc1",".timeline-preview.svelte-l51fc1{bottom:18px;border-radius:2px;pointer-events:none}.timeline-preview.mobile.svelte-l51fc1{bottom:72px}.preview.svelte-l51fc1{margin-bottom:10px;background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white)}.episode.svelte-l51fc1{margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500}.time.svelte-l51fc1{font-size:13px;line-height:16px;text-align:center;color:var(--slider-filled-bg);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500}")}function hm(i){let e;function t(r,s){return r[2]&&r[10].completed===!1?mv:dv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Je()},m(r,s){o.m(r,s),w(r,e,s)},p(r,s){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&y(e),o.d(r)}}}function dv(i){let e=(i[10].text||"")+"",t;return{c(){t=He(e)},m(n,o){w(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&je(t,e)},d(n){n&&y(t)}}}function mv(i){let e=j("tooltip_episode_unfinished")+"",t;return{c(){t=He(e)},m(n,o){w(n,t,o)},p:me,d(n){n&&y(t)}}}function gm(i){let e,t;return{c(){e=I("div"),t=He(i[0]),f(e,"class","time svelte-l51fc1")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&1&&je(t,n[0])},d(n){n&&y(e)}}}function pv(i){let e,t,n,o,r,s,a=i[10]&&hm(i),l=!i[2]&&gm(i);return{c(){e=I("div"),t=I("div"),o=Y(),r=I("div"),a&&a.c(),s=Y(),l&&l.c(),f(t,"class","preview svelte-l51fc1"),f(t,"style",n=`width: ${i[3]}px; height: ${i[4]}px; background-image: url(${i[5]}); background-size: ${i[6]}px ${i[7]}px; background-position: ${i[8]}px ${i[9]}px; transform: translateY(${i[11]%180?-35:0}px) rotate(${i[11]}deg);`),f(r,"class","episode svelte-l51fc1"),f(e,"class","timeline-preview svelte-l51fc1"),K(e,"mobile",i[1])},m(u,c){w(u,e,c),_(e,t),_(e,o),_(e,r),a&&a.m(r,null),_(e,s),l&&l.m(e,null)},p(u,[c]){c&3064&&n!==(n=`width: ${u[3]}px; height: ${u[4]}px; background-image: url(${u[5]}); background-size: ${u[6]}px ${u[7]}px; background-position: ${u[8]}px ${u[9]}px; transform: translateY(${u[11]%180?-35:0}px) rotate(${u[11]}deg);`)&&f(t,"style",n),u[10]?a?a.p(u,c):(a=hm(u),a.c(),a.m(r,null)):a&&(a.d(1),a=null),u[2]?l&&(l.d(1),l=null):l?l.p(u,c):(l=gm(u),l.c(),l.m(e,null)),c&2&&K(e,"mobile",u[1])},i:me,o:me,d(u){u&&y(e),a&&a.d(),l&&l.d()}}}var Or=150;function _v(i,e,t){let n,{time:o=""}=e,{isMobile:r=!1}=e,{videoEpisodes:s=[]}=e,{previewThumbsData:a}=e,{progress:l=0}=e,{duration:u=0}=e,{isInteractive:c=!1}=e,h=ot().ui.rotateAlpha;O(i,h,F=>t(11,n=F));let C,g,T,k,H,S,v,E;function q(){let F=a.frameWidth,ie=a.frameHeight;return F>Or?(ie=ie/F*Or,F=Or):ie>Or&&(F=F/ie*Or,ie=Or),{width:F,height:ie}}function U(F){let ie;a.isUV?ie=Math.floor(u*F/a.frequency):ie=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*F)));let fe=Math.floor(ie/a.countPerImage),G=Math.floor(ie%a.countPerImage/a.countPerRow),J=ie%a.countPerRow,Q=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&fe===Math.floor(a.countTotal/a.countPerImage)&&(Q=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&Q++);let W=a.countPerRow;!a.isUV&&fe===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(W=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let ce=C*W,z=g*Q,x=-J*C,P=-G*g;return{imgSrc:a.links[fe],imgWidth:ce,imgHeight:z,imgOffsetX:x,imgOffsetY:P}}return i.$$set=F=>{"time"in F&&t(0,o=F.time),"isMobile"in F&&t(1,r=F.isMobile),"videoEpisodes"in F&&t(13,s=F.videoEpisodes),"previewThumbsData"in F&&t(14,a=F.previewThumbsData),"progress"in F&&t(15,l=F.progress),"duration"in F&&t(16,u=F.duration),"isInteractive"in F&&t(2,c=F.isInteractive)},i.$$.update=()=>{i.$$.dirty&32768&&t(5,{imgSrc:T,imgWidth:k,imgHeight:H,imgOffsetX:S,imgOffsetY:v}=U(l),T,(t(6,k),t(15,l)),(t(7,H),t(15,l)),(t(8,S),t(15,l)),(t(9,v),t(15,l))),i.$$.dirty&106496&&t(10,E=ul(l,u,s))},t(3,{width:C,height:g}=q(),C,t(4,g)),[o,r,c,C,g,T,k,H,S,v,E,n,h,s,a,l,u]}var Pu=class extends N{constructor(e){super(),D(this,e,_v,pv,R,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},fv)}},bm=Pu;function hv(i){ve(i,"svelte-5lzly8",".time.svelte-5lzly8{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}")}function gv(i){let e,t;return{c(){e=I("span"),t=He(i[8]),f(e,"class","time svelte-5lzly8")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o[0]&256&&je(t,n[8])},i:me,o:me,d(n){n&&y(e)}}}function bv(i){let e,t;return e=new bm({props:{time:i[8],isMobile:i[11],videoEpisodes:i[4],previewThumbsData:i[22],progress:i[9],duration:i[2],isInteractive:i[24]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&256&&(r.time=n[8]),o[0]&2048&&(r.isMobile=n[11]),o[0]&16&&(r.videoEpisodes=n[4]),o[0]&512&&(r.progress=n[9]),o[0]&4&&(r.duration=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function vv(i){let e,t,n,o,r=[bv,gv],s=[];function a(l,u){return l[15].features.timelinePreview&&l[22]&&!l[1]?0:1}return e=a(i,[-1,-1]),t=s[e]=r[e](i),{c(){t.c(),n=Je()},m(l,u){s[e].m(l,u),w(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&y(n),s[e].d(l)}}}function yv(i){let e,t,n,o,r,s=[i[10]],a={$$slots:{default:[vv]},$$scope:{ctx:i}};for(let c=0;c<s.length;c+=1)a=se(a,s[c]);e=new _m({props:a});function l(c){i[43](c)}let u={isActiveLive:i[12],isMobile:i[11],ariaLabel:j("aria_timeline"),ariaValueMin:0,ariaValueMax:i[2],ariaValueNow:Math.round(i[7]*100),ariaValueText:j("aria_timeline_value",{position:i[6],duration:i[5]}),loadedProgress:i[13],filledProgress:i[7],handleProgress:i[7],videoEpisodes:i[4],onPointerDown:i[29],onHandleMove:i[30],onPointerMove:i[33],onPointerUp:i[31],onPointerEnter:i[32],onPointerLeave:i[34],onDisabledClick:i[27],isInteractive:i[24],disabled:i[14].has("TIMELINE"),hideHandel:i[3]};return i[0]!==void 0&&(u.ref=i[0]),n=new Nr({props:u}),ge.push(()=>ze(n,"ref",l)),{c(){B(e.$$.fragment),t=Y(),B(n.$$.fragment)},m(c,m){L(e,c,m),w(c,t,m),L(n,c,m),r=!0},p(c,m){let h=m[0]&1024?qe(s,[Vo(c[10])]):{};m[0]&2838|m[1]&524288&&(h.$$scope={dirty:m,ctx:c}),e.$set(h);let C={};m[0]&4096&&(C.isActiveLive=c[12]),m[0]&2048&&(C.isMobile=c[11]),m[0]&4&&(C.ariaValueMax=c[2]),m[0]&128&&(C.ariaValueNow=Math.round(c[7]*100)),m[0]&96&&(C.ariaValueText=j("aria_timeline_value",{position:c[6],duration:c[5]})),m[0]&8192&&(C.loadedProgress=c[13]),m[0]&128&&(C.filledProgress=c[7]),m[0]&128&&(C.handleProgress=c[7]),m[0]&16&&(C.videoEpisodes=c[4]),m[0]&16384&&(C.disabled=c[14].has("TIMELINE")),m[0]&8&&(C.hideHandel=c[3]),!o&&m[0]&1&&(o=!0,C.ref=c[0],Ue(()=>o=!1)),n.$set(C)},i(c){r||(d(e.$$.fragment,c),d(n.$$.fragment,c),r=!0)},o(c){p(e.$$.fragment,c),p(n.$$.fragment,c),r=!1},d(c){c&&y(t),V(e,c),V(n,c)}}}function wv(i,e,t){var de;let n,o,r,s,a,l,u,c,m,h,C,{showTimeline:g=!1}=e,{ref:T=void 0}=e,k=ot(),H=Vt(),S=k.state.bufferedProgress$;O(i,S,Se=>t(13,h=Se));let v=k.state.positionWithScrubbing$;O(i,v,Se=>t(41,l=Se));let E=k.state.duration$;O(i,E,Se=>t(2,r=Se));let q=k.state.isLive$;O(i,q,Se=>t(1,o=Se));let U=k.state.isActiveLive$;O(i,U,Se=>t(12,m=Se));let F=k.ui.isMobile;O(i,F,Se=>t(11,c=Se));let ie=H.features.episodes?k.actions.internal.getVideoEpisodes():void 0,fe=k.actions.internal.getPreviewThumbsData(),G=k.state.interactiveEpisodes$;O(i,G,Se=>t(42,u=Se));let J=k.state.isInteractive,Q=k.state.isInteractiveTime$;O(i,Q,Se=>t(3,s=Se));let W=k.state.isInteractiveExpectation$;O(i,W,Se=>t(40,a=Se));let ce=k.actions.internal.correctSeekTimeToInteractive,z=(de=k.callbacks)==null?void 0:de.onDisabledTimelineClick,x=k.ui.controls.disabledControls$;O(i,x,Se=>t(14,C=Se));let P,$,le,Me,te=!1,be="",Ee=0,Te=0,Ie=0,rt;function Ae(Se){return!ce||!J?Se:ce(Se*r)/r}function We(Se){k.actions.internal.startScrubbing(Ae(Se))}function ee(Se){s||k.actions.internal.progressScrubbing(Ae(Se))}function pe(Se){k.actions.internal.completeScrubbing(Ae(Se)),t(36,te=!1)}function Ce(Se,et,De){at(Se,et,De),t(36,te=!0)}function xe(Se,et,De){at(Se,et,De),t(36,te=!0)}function st(){t(36,te=!1)}function at(Se,et,De){t(9,Ie=Ae(Se)),t(37,Ee=et),De&&t(38,Te=De),t(8,be=nt(Se))}function nt(Se){let et=Fn((o?1-Se:Se)*r);return o?`-${et}`:et}function $e(Se){T=Se,t(0,T)}return i.$$set=Se=>{"showTimeline"in Se&&t(35,g=Se.showTimeline),"ref"in Se&&t(0,T=Se.ref)},i.$$.update=()=>{i.$$.dirty[1]&2048&&t(4,P=J?u:ie),i.$$.dirty[0]&4&&t(5,$=Fn(r)),i.$$.dirty[1]&1024&&t(6,le=Fn(l)),i.$$.dirty[0]&4|i.$$.dirty[1]&1024&&t(7,Me=l/r),i.$$.dirty[0]&8|i.$$.dirty[1]&512&&t(39,rt=a||s),i.$$.dirty[0]&2|i.$$.dirty[1]&496&&t(10,n={containerWidth:Te,translateXPx:Ee,translateYPx:J&&fe?-36:-16,active:te&&g&&!rt,pointer:!H.features.timelinePreview||!fe||o})},[T,o,r,s,P,$,le,Me,be,Ie,n,c,m,h,C,H,S,v,E,q,U,F,fe,G,J,Q,W,z,x,We,ee,pe,Ce,xe,st,g,te,Ee,Te,rt,a,l,u,$e]}var Eu=class extends N{constructor(e){super(),D(this,e,wv,yv,R,{showTimeline:35,ref:0},hv,[-1,-1])}},vm=Eu;function kv(i){let e,t;return e=new Nr({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:j("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.ariaValueMax=n[0]),o&8&&(r.ariaValueNow=Math.round(n[3]*100)),o&6&&(r.ariaValueText=j("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(r.filledProgress=n[3]),o&16&&(r.squareBorders=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Cv(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=ot().ui.isMobile;O(i,a,m=>t(4,n=m));let l,u,c;return i.$$set=m=>{"position"in m&&t(6,o=m.position),"duration"in m&&t(0,r=m.duration)},i.$$.update=()=>{i.$$.dirty&1&&t(1,l=Fn(r)),i.$$.dirty&64&&t(2,u=Fn(o)),i.$$.dirty&65&&t(3,c=o/r)},[r,l,u,c,n,a,o]}var Au=class extends N{constructor(e){super(),D(this,e,Cv,kv,R,{position:6,duration:0})}},cl=Au;function Sv(i){ve(i,"svelte-1gqonyf",".timeline.svelte-1gqonyf{position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box}.timeline.mobile.svelte-1gqonyf{height:16px;padding:6px 12px 7px;margin-top:6px}.timeline-stub.svelte-1gqonyf{width:100%;min-width:20px}.timeline-stub.mobile.svelte-1gqonyf{height:8px}")}function Tv(i){let e;return{c(){e=I("div"),f(e,"class","timeline-stub svelte-1gqonyf"),K(e,"mobile",i[3])},m(t,n){w(t,e,n)},p(t,n){n&8&&K(e,"mobile",t[3])},i:me,o:me,d(t){t&&y(e)}}}function Iv(i){let e,t,n,o,r=[Ev,Pv],s=[];function a(l,u){return l[1]?0:1}return t=a(i,-1),n=s[t]=r[t](i),{c(){e=I("div"),n.c(),f(e,"class","timeline svelte-1gqonyf"),K(e,"mobile",i[3])},m(l,u){w(l,e,u),s[t].m(e,null),o=!0},p(l,u){let c=t;t=a(l,u),t===c?s[t].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),n=s[t],n?n.p(l,u):(n=s[t]=r[t](l),n.c()),d(n,1),n.m(e,null)),(!o||u&8)&&K(e,"mobile",l[3])},i(l){o||(d(n),o=!0)},o(l){p(n),o=!1},d(l){l&&y(e),s[t].d()}}}function Pv(i){let e,t,n;function o(s){i[14](s)}let r={showTimeline:i[2]};return i[0]!==void 0&&(r.ref=i[0]),e=new vm({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a&4&&(l.showTimeline=s[2]),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Ev(i){let e,t;return e=new cl({props:{position:i[4],duration:i[5]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.position=n[4]),o&32&&(r.duration=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Av(i){let e,t,n,o,r=[Iv,Tv],s=[];function a(l,u){return l[2]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Je()},m(l,u){s[e].m(l,u),w(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e===c?s[e].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&y(n),s[e].d(l)}}}function Mv(i,e,t){let n,o,r,s,{isAds:a=!1}=e,{canRewindLive:l}=e,{isRewindableLive:u}=e,{isHidden:c=!1}=e,{ref:m=void 0}=e,h=ot(),C=h.state.isLive$;O(i,C,v=>t(13,n=v));let g=h.ads.duration;O(i,g,v=>t(5,s=v));let T=h.ads.position;O(i,T,v=>t(4,r=v));let k=h.ui.isMobile;O(i,k,v=>t(3,o=v));let H;function S(v){m=v,t(0,m)}return i.$$set=v=>{"isAds"in v&&t(1,a=v.isAds),"canRewindLive"in v&&t(10,l=v.canRewindLive),"isRewindableLive"in v&&t(11,u=v.isRewindableLive),"isHidden"in v&&t(12,c=v.isHidden),"ref"in v&&t(0,m=v.ref)},i.$$.update=()=>{i.$$.dirty&15362&&t(2,H=!c&&(!n||n&&l&&u||a))},[m,a,H,o,r,s,C,g,T,k,l,u,c,n,S]}var Mu=class extends N{constructor(e){super(),D(this,e,Mv,Av,R,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},Sv)}},fl=Mu;import{noop as Nv}from"@vkontakte/videoplayer-shared";function Lv(i){let e,t,n,o,r,s=i[2].default,a=Ve(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("path"),n=M("path"),o=M("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"),we(e,u)},m(c,m){w(c,e,m),a&&a.m(e,null),_(e,t),_(e,n),_(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Be(a,s,c,c[1],r?Re(s,c[1],m,null):Ne(c[1]),null),we(e,u=qe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&y(e),a&&a.d(c)}}}function Vv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Lu=class extends N{constructor(e){super(),D(this,e,Vv,Lv,R,{})}},ym=Lu;function Rv(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708"),f(t,"clip-rule","evenodd"),f(t,"opacity",".7"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,l,l[1],n?Re(o,l[1],u,null):Ne(l[1]),null),we(e,a=qe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function Bv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Vu=class extends N{constructor(e){super(),D(this,e,Bv,Rv,R,{})}},wm=Vu;function Dv(i){ve(i,"svelte-1yhs2ga",".text.svelte-1yhs2ga{padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text.count.svelte-1yhs2ga{overflow:visible}.text.mobile.svelte-1yhs2ga{padding:0 3px 0 4px}.chevron-episodes.svelte-1yhs2ga{margin-bottom:-4px}")}function Ov(i){let e,t,n,o;e=new ym({});function r(l,u){if(l[4]==="FULL")return qv;if(l[4]==="COUNT")return Hv}let s=r(i,-1),a=s&&s(i);return{c(){B(e.$$.fragment),t=Y(),a&&a.c(),n=Je()},m(l,u){L(e,l,u),w(l,t,u),a&&a.m(l,u),w(l,n,u),o=!0},p(l,u){s===(s=r(l,u))&&a?a.p(l,u):(a&&a.d(1),a=s&&s(l),a&&(a.c(),a.m(n.parentNode,n)))},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){l&&(y(t),y(n)),V(e,l),a&&a.d(l)}}}function Fv(i){let e,t,n,o,r,s;return r=new wm({}),{c(){e=I("span"),t=He(i[2]),n=Y(),o=I("div"),B(r.$$.fragment),f(e,"class","text mobile svelte-1yhs2ga"),f(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,l){w(a,e,l),_(e,t),w(a,n,l),w(a,o,l),L(r,o,null),s=!0},p(a,l){(!s||l&4)&&je(t,a[2])},i(a){s||(d(r.$$.fragment,a),s=!0)},o(a){p(r.$$.fragment,a),s=!1},d(a){a&&(y(e),y(n),y(o)),V(r)}}}function Hv(i){let e,t=i[0].length+"",n;return{c(){e=I("span"),n=He(t),f(e,"class","text count svelte-1yhs2ga")},m(o,r){w(o,e,r),_(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&je(n,t)},d(o){o&&y(e)}}}function qv(i){let e,t;return{c(){e=I("span"),t=He(i[2]),f(e,"class","text svelte-1yhs2ga")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&4&&je(t,n[2])},d(n){n&&y(e)}}}function Uv(i){let e,t,n,o,r=[Fv,Ov],s=[];function a(l,u){return l[6]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Je()},m(l,u){s[e].m(l,u),w(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&y(n),s[e].d(l)}}}function zv(i){let e,t,n;function o(s){i[19](s)}let r={className:"w-max btn-full-opacity btn-jc-l "+(i[6]?"px-0":""),testId:"btn-episodes",click:i[12],disabled:!i[7],ariaExpanded:i[3],ariaLabel:i[5],$$slots:{default:[Uv]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&64&&(l.className="w-max btn-full-opacity btn-jc-l "+(s[6]?"px-0":"")),a&8&&(l.ariaExpanded=s[3]),a&32&&(l.ariaLabel=s[5]),a&8388693&&(l.$$scope={dirty:a,ctx:s}),!t&&a&2&&(t=!0,l.ref=s[1],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Wv(i,e,t){var G,J,Q;let n,o,r,s,a,l,{position:u=0}=e,{duration:c=0}=e,{timeCodes:m=[]}=e,h=ot(),C=(J=(G=h.callbacks)==null?void 0:G.onEpisodeChanged)!=null?J:Nv,g=!!((Q=h.callbacks)!=null&&Q.onEpisodeClicked),T=h.ui.currentGridType$;O(i,T,W=>t(18,a=W));let k=h.ui.episodes.openedByKeyboard$;O(i,k,W=>t(17,s=W));let H=h.ui.episodes.panelOpened$;O(i,H,W=>t(3,r=W));let S=h.ui.isMobile;O(i,S,W=>t(6,l=W));let v,E=W=>{var z,x,P;if(!!((z=h.callbacks)!=null&&z.onEpisodeClicked)){let $=Er(W);k.set($),H.set(!0),(P=(x=h.callbacks)==null?void 0:x.onEpisodeClicked)==null||P.call(x,$)}},q,U,F,ie=(W,ce,z)=>pt(this,null,function*(){yield to(),(W==null?void 0:W.getAttribute("aria-expanded"))==="false"&&ce&&!z&&(k.set(!1),W.focus())});function fe(W){v=W,t(1,v)}return i.$$set=W=>{"position"in W&&t(13,u=W.position),"duration"in W&&t(14,c=W.duration),"timeCodes"in W&&t(0,m=W.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576&&t(16,n=u/c),i.$$.dirty&114689){let W=ul(n,c,m);W&&(q==null?void 0:q.text)!==W.text&&(C(W),t(15,q=W))}i.$$.dirty&32768&&t(2,o=(q==null?void 0:q.text)||""),i.$$.dirty&262144&&(vi(a,"xl")?t(4,U="FULL"):vi(a,"m")&&om(a,"xl")?t(4,U="COUNT"):t(4,U="SHORT")),i.$$.dirty&4&&t(5,F=`${j("tooltip_episodes")}: ${o}`),i.$$.dirty&131082&&ie(v,s,r)},[m,v,o,r,U,F,l,g,T,k,H,S,E,u,c,q,n,s,a,fe]}var Ru=class extends N{constructor(e){super(),D(this,e,Wv,zv,R,{position:13,duration:14,timeCodes:0},Dv)}},dl=Ru;import{debounceFn as I3}from"@vkontakte/videoplayer-shared";import{ChromecastState as Xv,PlaybackState as os,Player as Jv,VideoFormat as rs}from"@vkontakte/videoplayer-core";import{assertNonNullable as Hn,clientChecker as $v,getHighestQuality as e4,InterfaceLanguage as t4,isInvariantQuality as i4,isNonNullable as n4,loadVKLangPack as o4,Logger as r4,map as s4,merge as l4,Observable as a4,Subject as vl,Subscription as Hu,Tracer as u4,ValueSubject as c4,VideoQuality as f4}from"@vkontakte/videoplayer-shared";import{SeekAction as Ho}from"@vkontakte/videoplayer-statistics";import"@vkontakte/videoplayer-interactive";import{addScript as Kv,assertNonNullable as Vi,Subject as tn,clearVideoElement as xv}from"@vkontakte/videoplayer-shared";var km=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var jv="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",ml=class{constructor(e,t){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new tn,loadStarted$:new tn,loadEnded$:new tn,loadError$:new tn,ready$:new tn,slotRequested$:new tn,started$:new tn,timeRemained$:new tn,paused$:new tn,resumed$:new tn,ended$:new tn,empty$:new tn,skipped$:new tn,clicked$:new tn,closed$:new tn,error$:new tn};this.loadAdman=e=>new Promise((t,n)=>{let o;this.events.loadStarted$.next();let r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?(t(),this.events.loadEnded$.next()):n()};Kv(jv,e,this.loadTimeout).then(()=>{window.AdmanHTML?(t(),this.events.loadEnded$.next()):(window.admanAsyncInit=r,o=window.setTimeout(r,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,t)=>{Vi(this.adsState),Vi(this.playerState),Vi(this.actions),this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(t)}`}),this.events.started$.next(e),t.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),Ye(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay),this.startWatchDog()};this.onAdTimeRemained=e=>{Vi(this.adsState),this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()};this.onAdPaused=()=>{this.stopWatchDog(),Vi(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{Vi(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing"),this.startWatchDog()};this.onAdMidrollPoint=()=>{Vi(this.adman),Vi(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.log({message:"could not start midroll"}),this.onAdError()}};this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e;this.log({message:"ad clicked"}),(e=this.videoElement)==null||e.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=()=>{this.log({message:"ad error"}),this.events.error$.next(),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout,this.runtimeTimeout=t.runtimeTimeout}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0),this.events.loadError$.next()}initAdman(e){if(this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:t,height:n,isFullscreen:o,isAutoplay:r,adsContainer:s,adsVideoElement:a,slotId:l,params:u={},duration:c,previewParam:m}=e,h,C=this.playerState&&Ye(this.playerState.vsid);C&&(h=parseInt(C,36));let g=Qe(yt(Qe({dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:km(t,n),puid11:o?0:1,preview:m},h?{request_id:h}:{}),{duration:c}),u);m||delete g.preview;let T={slot:l,wrapper:s,videoEl:a,videoQuality:n,params:g,browser:{mobile:!1}};try{let k=new window.AdmanHTML;k.setDebug(!1),k.onReady(this.onAdsReady),k.onStarted(this.onAdStarted),k.onPlayed(this.onAdPlayed),k.onPaused(this.onAdPaused),k.adMidrollPoint(this.onAdMidrollPoint),k.onClosed(this.onAdClosed),k.onSkipped(this.onAdSkipped),k.onClicked(this.onAdClicked),k.onTimeRemained(this.onAdTimeRemained),k.onCompleted(this.onAdCompleted),k.onError(this.onAdError),k.init(T),this.adman=k,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(T)}`})}catch(k){this.log({message:"could not init adman"}),this.onAdError()}}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}Vi(this.actions),Vi(this.adsState),Vi(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(){Vi(this.adsState),this.log({message:"toggle play"});let e=Ye(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){if(this.log({message:`set volume ${e}`}),this.adman)try{this.adman.setVolume(e)}catch(t){this.log({message:"could not set ad volume"}),this.onAdError()}this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(t){this.log({message:"could not set ad fullscreen"}),this.onAdError()}}startPreroll(){if(Vi(this.adman),!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.log({message:"could not start preroll"}),this.onAdError()}}}startPostroll(){Vi(this.adman),Vi(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(e){this.log({message:"could not start postroll"}),this.onAdError()}}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError(),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){Vi(this.adman),this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(e){this.onAdError(),this.log({message:"could not resume ad"})}}pause(){Vi(this.adman),this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(e){this.onAdError(),this.log({message:"could not pause ad"})}}skip(){Vi(this.adman),this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(e){this.log({message:"could not skip ad"}),this.onAdError()}}setPosition(e,t){var n;(n=this.adman)==null||n.setPosition(Math.floor(e),Math.floor(t))}destroy(){var e;this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.destroy(),this.videoElement&&xv(this.videoElement),this.isDestroyed=!0}};var Cm=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 Bu=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let t=[],n=e.split(this.twoLinesRegExp);for(let o of n){let r={startTime:0,endTime:0,texts:[],lang:""},s=o.split(this.oneLineRegExp);for(let a of s)if(!r.startTime&&!r.endTime){let l=new pl,{startTime:u,endTime:c}=l.parse(a);r.startTime=u,r.endTime=c}else if(a.trim()!==""){let l=new Nu,{texts:u}=l.parse(a);r.texts=[...r.texts,...u]}(r.startTime||r.endTime)&&r.texts.length>0&&t.push(r)}return t}},pl=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let t={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(t.startTime=this.calcTime(n[1],n[2],n[3],n[4]),t.endTime=this.calcTime(n[6],n[7],n[8],n[9])),t}parseTime(e){let t=this.timeRegExp.exec(e);return t?this.calcTime(t[1],t[2],t[3],t[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",t="0",n="0",o="0"){let r=Number(e)*60*60,s=Number(t)*60,a=Number(n),l=+`0.${o}`;return r+s+a+l}},Nu=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](s){let a=0,l=[];for(;a<s.length;){let u=["<",">"].reduce((c,m)=>{let h=s.indexOf(m,a);return c===-1||c>h?h:c},-1);if(u===-1){l.push(s.substring(a));break}l.push(s.substring(a,u)),a=u+1}return l}}),r=new pl;for(let s of o)r.isTime(s)?t.texts.push({type:"timestamp",value:r.parseTime(s)}):t.texts.push({type:"text",value:s});return t}},Sm=Bu;import{isNonNullable as Du}from"@vkontakte/videoplayer-shared";var Fo,ti,Ou=0,Fu=!1,Tm=(i,e=0,t=0)=>i<e&&i<t,_l=(i,e=0,t=0)=>i>=e&&i<=t,Gv=(i,e=0,t=0)=>i>e&&i>t,Im=(i,e,t,n=!1)=>{var a;let o=(a=t.find(({lang:l})=>l===e.value))==null?void 0:a.subtitles;if(n){let l=o==null?void 0:o.find(({startTime:u,endTime:c})=>_l(i,u,c));return l?yt(Qe({},l),{lang:e.value}):void 0}let r=i>=Ou,s=i<Ou;if(Ou=i,s&&(Fu=!1),Du(Fo)&&_l(i,Fo.startTime,Fo.endTime)&&Fo.lang===e.value)return Fo;if(!Du(ti)&&(o!=null&&o.length)&&!Fu){let l=o.find(({startTime:u,endTime:c})=>_l(i,u,c)||r&&Tm(i,u,c));ti=l&&yt(Qe({},l),{lang:e.value}),Fo=void 0,!Du(ti)&&o[o.length-1].endTime<i&&(Fu=!0);return}else{if(_l(i,ti==null?void 0:ti.startTime,ti==null?void 0:ti.endTime))return Fo=ti,ti=void 0,Fo;(r&&Gv(i,ti==null?void 0:ti.startTime,ti==null?void 0:ti.endTime)||s&&Tm(i,ti==null?void 0:ti.startTime,ti==null?void 0:ti.endTime))&&(ti=void 0)}};var Pm={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"},Yv={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"},hl=i=>{var e,t;return(t=(e=Pm[i])!=null?e:Pm[Yv[i]])!=null?t:void 0};import{Subscription as Qv}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-statistics";var gl=class{constructor(e,t=new Qv){this.oneStat=e;this.statSubscription=t}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var bl=(t=>(t.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",t.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",t))(bl||{});var Em=({interfaceLanguage:i,isCyrillicRelatedInterface:e,videoId:t,isClip:n,isLiveCatchUpMode:o,statAuthToken:r,isAudioDisabled:s,canDownload:a,callbacks:l,webApi:u,videoEpisodes:c,previewThumbsData:m,uiConfig:h,coreConfig:C,player:g,disabledControls:T,isInteractive:k,interactiveRanges$:H,isInteractiveTime$:S,replayInteractive:v,stopPlayer:E,hasInteractiveBranches:q,playPrevChapterDisabledTooltip:U,additionalButtons:F,additionalSettingsMenuItems:ie,additionalContextMenuItems:fe,looped:G=!1,statistics:J,saveRate:Q})=>{var hs,gs,bs,vs;let W=yt(Qe({},C),{configName:[...(hs=C.configName)!=null?hs:[],"ui"],isAudioDisabled:s,live:yt(Qe({},(gs=C.live)!=null?gs:{}),{isLiveCatchUpMode:!!o})}),ce=h,z=u4.createRootTracer(ce.features.saveTraceInfoToFile),x=z.createComponentTracer("Store"),P=g||new Jv(W,z),$=new r4,le=new ml($,{loadTimeout:ce.ads.loadTimeout,initTimeout:ce.ads.initTimeout,runtimeTimeout:ce.ads.runtimeTimeout}),Me=sr.getInstance(),te=u==null?void 0:u.pictureInPictureApi,be=u==null?void 0:u.annotationsApi,Ee=$.createComponentLog("Store"),Te,Ie,rt={},Ae=new Ps,We=J?It(J.oneStat.vsid$):jn(void 0),ee=Oe(Ro()),pe=(bs=te==null?void 0:te.info.isActive$)!=null?bs:new c4(!1),Ce=te==null?void 0:te.info.type,xe=Oe(0),st=Oe([]),at=l4(P.events.fatalError$,P.events.managedError$).subscribe(b=>st.update(A=>[...A,b])),nt=jn(!1,b=>{let A=P.events.fatalError$.subscribe(()=>b(!0));return()=>A.unsubscribe()}),$e=b=>pt(void 0,null,function*(){var Le;let A=Object.values(t4).includes(b);if(ce.downloadVKLanguages&&(A&&ce.updateBuiltinLanguages||!ba(b))){let lt;try{lt=yield o4(b,Yf,Qf)}catch(mt){(Le=J==null?void 0:J.oneStat)==null||Le.logError({errorType:"VKLangPack",fatal:!1}),Me==null||Me.report(mt,{errorType:"VKLangPack",fatal:!1})}lt&&(ga({language:b,pack:lt,fallback:ce.defaultLanguage}),de.set(b))}ba(b)&&de.set(b)}),de=Oe(i),Se=Oe(e);$e(i);let et=(b,A)=>{let re=Ye(de);return va(re,b,A,ce.defaultLanguage)},De=Oe("thumb"),tt=(()=>{let b=ei([nt,De],([A,re])=>A?"crashed":re);return yt(Qe({},b),{is:A=>Ye(b)===A})})(),Fe=(()=>{let b=Oe(new Set(T));return yt(Qe({},b),{add:A=>{b.update(re=>new Set([...re].concat(A)))},remove:A=>{b.update(re=>{let Le=[...re];return new Set(Array.isArray(A)?Le.filter(lt=>!A.includes(lt)):Le.filter(lt=>lt!==A))})},includes:A=>{let re=Ye(b);return Array.isArray(A)?A.every(Le=>re.has(Le)):re.has(A)}})})();x.log("create store"),Ee({message:"create store"});let ft=b=>{let A=b.container;A.append(P.experimental.element$.getValue()),Pt=new MutationObserver(re=>{let{removedNodes:Le}=re[0];Le.length&&A.append(P.experimental.element$.getValue())}),Pt.observe(A,{childList:!0})},dt=b=>{Ee({message:`init video, config: ${JSON.stringify(b)}`}),k?ft(b):P.initVideo(b),x.log("init video",{isInteractive:k}),b.subtitles&&P.setExternalTextTracks(b.subtitles),Te=b},he=new vl,_t=b=>he.next(b),kt=new vl,Ct=new vl,Ze=new vl,Pt=null,qt={actionRewind$:kt,actionSeek$:Ct,inPiP$:pe,inFullscreen$:new a4(b=>ee.subscribe(A=>b.next(A))),actionSetSubtitle$:Ze,nextMovie$:he};if(J){let{oneStat:b,statSubscription:A}=J;k||A.add(b.attachTo(P)),A.add(b.attachToUi(qt)),A.add(b.attachToAds(le.events)),b.authorize(r).catch(re=>{Ee({message:`onestat auth error ${String(re)}`})})}if(Me){let b=new Hu,A=(re,Le)=>b.add(re.subscribe(Le));if(A(P.events.managedError$,re=>{Me.logIError(re)}),A(P.events.fatalError$,re=>{Me.logIError(re,!0)}),J){let{oneStat:re}=J;A(re.experimental.error$,Le=>{Me.logIError(Le)})}Me.sentrySubscription.add(b)}let Zt=()=>{$v.isIOS&&Ie&&Bd(Ie)},Ut=new Hu().add(P.experimental.element$.subscribe(b=>{b&&(Ie=b,b.classList.add("player-media"),ar(te)&&(te.updateVideoElement(),te.registryEventHandlers()),k&&b.setAttribute("pip","false"))})).add(P.events.ended$.subscribe(()=>{var b;Zt(),(b=l==null?void 0:l.onEnded)==null||b.call(l)})).add(P.events.started$.subscribe(()=>pt(void 0,null,function*(){var A,re;ar(te)&&(yield te==null?void 0:te.revealPictureInPicture());let b=P.info.muted$.getValue();(A=l==null?void 0:l.onStarted)==null||A.call(l),(re=rt.onStarted)==null||re.call(rt,b)}))).add(P.events.willSeek$.subscribe(({from:b,to:A})=>{var re;(re=l==null?void 0:l.onSeek)==null||re.call(l,b,A)})).add(P.events.autoplaySoundProhibited$.subscribe(()=>{var b;(b=l==null?void 0:l.onAutoplaySoundProhibited)==null||b.call(l)})).add(P.info.position$.subscribe(b=>{var re;let A=P.info.duration$.getValue();isFinite(A)&&A>0&&((re=l==null?void 0:l.onTimeupdate)==null||re.call(l,A,b),le.setPosition(b,A))})).add(P.events.fatalError$.subscribe(()=>{var b;(b=l==null?void 0:l.onCrashed)==null||b.call(l)})).add(P.events.loadedMetadata$.subscribe(()=>{St.state.loadedMetadata$.set(!0)})).add(P.info.is3DVideo$.subscribe(b=>{St.ui.is3DVideo.set(b)})).add(P.info.isEnded$.subscribe(b=>{k&&(b?(S!=null&&S.getValue()&&Fe.add(Ts),Fe.add("PLAY_BUTTON")):Fe.remove("PLAY_BUTTON"))})).add(P.info.liveTime$.subscribe(b=>{var A;(A=l==null?void 0:l.onLiveTime)==null||A.call(l,b)})).add(P.info.isStalled$.subscribe(b=>{var A;(A=l==null?void 0:l.onStalledChanged)==null||A.call(l,b)})).add(le.events.loadStarted$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onLoadStarted)==null?void 0:A.call(b)})).add(le.events.loadEnded$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onLoadEnded)==null?void 0:A.call(b)})).add(le.events.loadError$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onLoadError)==null?void 0:A.call(b)})).add(le.events.init$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onInit)==null?void 0:A.call(b)})).add(le.events.ready$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onReady)==null?void 0:A.call(b)})).add(le.events.started$.subscribe(b=>{var A,re;return(re=(A=l==null?void 0:l.adsInfo)==null?void 0:A.onStarted)==null?void 0:re.call(A,b)})).add(le.events.timeRemained$.subscribe(b=>{var A,re;return(re=(A=l==null?void 0:l.adsInfo)==null?void 0:A.onTimeRemained)==null?void 0:re.call(A,b)})).add(le.events.ended$.subscribe(b=>{var A,re;return(re=(A=l==null?void 0:l.adsInfo)==null?void 0:A.onCompleted)==null?void 0:re.call(A,b)})).add(le.events.empty$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onEmpty)==null?void 0:A.call(b)})).add(le.events.clicked$.subscribe(b=>{var A,re;return(re=(A=l==null?void 0:l.adsInfo)==null?void 0:A.onClicked)==null?void 0:re.call(A,b)})).add(le.events.closed$.subscribe(b=>{var A,re;return(re=(A=l==null?void 0:l.adsInfo)==null?void 0:A.onClosed)==null?void 0:re.call(A,b)})).add(le.events.error$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onError)==null?void 0:A.call(b)})),zt=new Hu,Xt=()=>{zt.add(P.events.log$.subscribe(b=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${b.component}`,b.message)})).add($.log$.subscribe(b=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${b.component}.`,b.message)}))},Wt=()=>{zt.unsubscribe()},Ke=(b,A)=>{x.log("start camera manual rotation",{mx:b,my:A}),P.startCameraManualRotation(b,A)},Xe=(b=!1)=>{x.log("stop camera manual rotation",{immediate:b}),P.stopCameraManualRotation(b)},Tt=(b,A,re)=>{x.log("move camera focus px",{xpx:b,ypx:A,dt:re}),P.moveCameraFocusPX(b,A,re)},_e=()=>{P.holdCamera()},Jt=()=>{P.releaseCamera()},Et=jn(P.info.position$.getValue(),b=>{let A,re,Le=()=>{let lt=P.info.playbackState$.getValue(),mt=P.info.isLive$.getValue(),Mt=P.info.duration$.getValue(),X=P.info.position$.getValue();if([os.PLAYING,os.PAUSED].includes(lt)){let gt=mt?X-Mt:P.getExactTime();gt!==re&&b(gt),re=gt}A=requestAnimationFrame(Le)};return Le(),()=>cancelAnimationFrame(A)}),ii=It(pe),Rt=It(P.info.playbackState$),jt=It(P.info.currentBuffer$),oi=It(P.info.isEnded$),Bt=It(P.info.isLive$),si=ce.features.playbackRate?It(P.info.canChangePlaybackSpeed$):jn(!1),li=It(P.info.liveBufferTime$),ai=It(P.info.volume$),Ci=It(P.info.muted$),Nt=aa(P.info.autoQualityLimits$.pipe(s4(({max:b})=>b!==void 0)),((vs=P.info.autoQualityLimits$.getValue())==null?void 0:vs.max)!==void 0),pi=It(P.info.autoQualityLimitingAvailable$),yi=It(P.info.availableQualities$),Si=It(P.info.availableQualitiesFps$),nn=It(P.info.chromecastState$),Ti=It(P.info.chromecastDeviceName$),Pe=It(P.info.currentFormat$),it=It(P.info.throughputEstimation$),Ot=It(P.info.videoBitrate$),Ii=It(P.info.intrinsicVideoSize$),_i=It(P.info.duration$),mn=It(P.info.isAudioAvailable$),hi=null,Wi=P.info.isBuffering$,Ki=jn(Wi.getValue(),b=>{let A=Wi.subscribe(re=>{re&&hi===null?hi=window.setTimeout(()=>{b(Wi.getValue()),hi=null},ce.loaderDelay):b(re)});return()=>{A.unsubscribe(),hi&&clearTimeout(hi)}}),Ft=()=>{hi&&clearTimeout(hi),hi=null},Pi=ei([_i,Bt],([b,A])=>A?-b:b),ui=ei([Rt],([b])=>b===os.PLAYING),Kt=It(P.info.atLiveEdge$),In=It(P.info.atLiveDurationEdge$),wi=It(P.info.position$),pn=ei([wi,_i],([b,A])=>isFinite(b)&&isFinite(A)&&!!A),Pn=ei([nn],([b])=>b===Xv.CONNECTED),on=It(P.info.availableVideoStreams$),_n=ce.features.audioLanguages?It(P.info.availableAudioStreams$):jn([]),Ei=It(P.info.currentVideoStream$),rn=It(P.info.currentAudioStream$),Gt=b=>{b.language&&_a(b.language),P.setVideoStream(b)},qn=b=>{b.language&&_a(b.language),P.setAudioStream(b)},xi=b=>{let A;if(b.length===1&&(A=b.at(0)),A!=null||(A=b.find(Le=>"isDefault"in Le&&Le.isDefault)),A)return A;let re=kd();return re&&(A=b.find(({language:Le})=>re===Le)),A!=null||(A=b.at(0)),A},ji=!1;Ut.add(P.info.availableAudioStreams$.subscribe(b=>{if(!ji&&b.length){let A=xi(b);A&&(P.setAudioStream(A),ji=!0)}}));let Gi=!1;Ut.add(P.info.availableVideoStreams$.subscribe(b=>{if(!Gi&&b.length){let A=xi(b);A&&(P.setVideoStream(A),Gi=!0)}}));let ki=Oe(void 0),Ri=It(P.info.isAutoQualityEnabled$,b=>b&&ki.set(void 0)),sn=It(P.info.currentQuality$,()=>ki.set(void 0)),ln=ei([ki,sn],([b,A])=>b!=null?b:A),Ai=ei([yi,Si,Ri,ln,Pe],([b,A,re,Le,lt])=>{let mt=[];lt!==rs.MPEG&&mt.push({value:"auto",displayValue:et("auto_quality_option"),selected:re});let Mt=b.filter(X=>!i4(X));for(let X of Mt){let gt=A[X];mt.push({value:X,displayValue:`${X}${gt?Cm(gt):""}`,selected:re?!1:X===Le})}return mt}),Mi=It(P.info.currentPlaybackRate$),ci=ei([Mi,Kt,In],([b,A,re])=>{let Le=re||k?1:ce.controls.playbackRateMin,lt=A?1:ce.controls.playbackRateMax,mt=ce.controls.playbackRateStep,Mt=[];for(let X=Le;X<=lt;X+=mt)Mt.push({value:X,displayValue:X===1?et("playback_rate_1"):et("playback_rate",{multiplier:X.toString(10)}),selected:b===X});return Mt}),Yt={displayValue:et("subtitles_off"),value:"off"},Ht=Oe(Qe({},Yt)),Bi=ce.features.subtitles?It(P.info.availableTextTracks$):jn([]),Ni=ud(),an=ei([Bi,Ht],([b,A],re)=>{var mt;let Le=[],lt=b.find(({language:Mt})=>Mt===A.value);if(lt!=null&<.url){let[,Mt]=(mt=Ni.find(lt.url))!=null?mt:[];if(Mt){re(Mt);return}Ae.download(lt.url).then(X=>{if(!X||Ae.isDestroyed())return;let gt=new Sm,fo=lt.language,x_=!!lt.isAuto,j_=gt.parse(X);fo&&Le.push({lang:fo,subtitles:j_,isAuto:x_}),Ni.add(lt.url,Le),Ye(Ht).value===A.value&&re(Le)}).catch(X=>{var gt;(gt=J==null?void 0:J.oneStat)==null||gt.logError({errorType:"Subtitles download",fatal:!1}),Me==null||Me.report(X,{errorType:"Subtitles download",fatal:!1})})}re(Le)}),ut=ei([Mi,ui,Ht],([b,A,re],Le)=>{let Mt;if(P.info.isLive$.getValue()&&A&&re.value!==Yt.value){let gt=()=>{let fo=1e3/(3*b);Mt=setTimeout(gt,fo),Le(Date.now())};return gt(),()=>clearTimeout(Mt)}}),Di=ei([Bi,Ht],([b,A])=>{if((b==null?void 0:b.length)>0){let re=[yt(Qe({},Yt),{selected:(A==null?void 0:A.value)===Yt.value})];for(let{language:Le,isAuto:lt}of b){let mt=Le&&hl(Le);Le&&mt&&re.push({displayValue:lt?et("subtitles_auto",{language:mt}):mt,value:Le,selected:(A==null?void 0:A.value)===Le,isAuto:lt})}return re}else return[]}),fi={available:[],prev:[]},Oi=ei([Et,Ht,an,ut],([b,A,re,Le])=>{var mt,Mt;let lt=P.info.isLive$.getValue();if(lt&&fi.prev!==re){let X=re.find(({lang:fo})=>fo===A.value),gt=fi.prev.find(({lang:fo})=>fo===A.value);if(X){let fo=yt(Qe({},X),{subtitles:[...(mt=gt==null?void 0:gt.subtitles)!=null?mt:[],...X.subtitles]});fi.available=[fo],fi.prev=re}}if(A&&A.value!==Yt.value){let X=lt?(Mt=Ie==null?void 0:Ie.currentTime)!=null?Mt:0:b,gt=lt?fi.available:re;return Im(X,A,gt,lt)}}),Fi=ei([Oi],([b])=>b!=null&&b.texts?b.texts:[]),Ge=Oe(!0),Un=ei([jt,Pi,wi,li],([b,A,re,Le])=>{var X;let lt=(X=b==null?void 0:b.end)!=null?X:0;if(!Le)return lt/A;let Mt=-re+Le-A;return(lt-Mt)/A}),un=It(P.info.availableSources$),En=ei([un],([b])=>Object.keys((b==null?void 0:b[rs.MPEG])||{}).length>0),hn=()=>{var re,Le,lt;let b=Object.keys(((Le=(re=P.info.availableSources$)==null?void 0:re.getValue())==null?void 0:Le[rs.MPEG])||{}),A=e4(b)||f4.Q_144P;return(lt=Te.sources[rs.MPEG])==null?void 0:lt[A]},Yi=()=>{var A;let b=hn();if(b)x.log("download video",{url:b}),sd(b,((A=Te==null?void 0:Te.meta)==null?void 0:A.title)||"video");else{let re="There is no URL for download video";x.log("download video",{message:re}),Ee({message:re})}},Qi=()=>{Ee({message:"toggle muted"});let b=P.info.muted$.getValue(),A=P.info.volume$.getValue(),re=A===0||b,Le=!re;x.log("toggle muted",{muted:b,volume:A,soundIsOff:re,nextValue:Le}),Mn(Le)},Zi=()=>{x.log("close settings menu"),St.ui.settingsMenuVisible.set(!1)},gn=b=>{x.log("open settings menu",{wasOpenedByKeyboard:b}),St.ui.settingsMenuOpenedByKeyboard.set(!!b),St.ui.settingsMenuVisible.set(!0)},gi=b=>{Ye(St.ui.settingsMenuVisible)?Zi():gn(b)},An=(b,A=b,re=!1)=>{var mt,Mt,X;let Le=!re,lt=P.info.muted$.getValue();Ee({message:`set volume, volume: ${b}, preferredVolume: ${A}, internalCall: ${Le}`}),x.log("set volume",{volume:b,preferredVolume:A,internalCall:Le}),P.setVolume(b),le.setVolume(b),Le&&((mt=l==null?void 0:l.onVolumeChange)==null||mt.call(l,b)),fa(A),lt?(P.setMuted(!1),Le&&((Mt=l==null?void 0:l.onUnmute)==null||Mt.call(l)),As(!1)):!lt&&b===0&&(P.setMuted(!0),Le&&((X=l==null?void 0:l.onMute)==null||X.call(l)),As(!0))},Mn=(b,A=!1)=>{var lt,mt,Mt,X;let re=!A,Le=P.info.volume$.getValue();if(Ee({message:`set muted, currentVolume: ${Le}, mute: ${b}, internalCall: ${re}`}),x.log("set muted",{mute:b,currentVolume:Le,internalCall:re}),P.setMuted(b),le.setVolume(b?0:Le),As(b),re&&(b?(lt=l==null?void 0:l.onMute)==null||lt.call(l):(mt=l==null?void 0:l.onUnmute)==null||mt.call(l)),Le===0){let gt=(Mt=Es())!=null?Mt:ce.volumeDefault;gt===0&&(gt=ce.volumeMinRestore,fa(gt)),P.setVolume(gt),le.setVolume(gt),re&&((X=l==null?void 0:l.onVolumeChange)==null||X.call(l,gt))}},Ln=Oe(!1),bn=b=>{x.log("set looped",{isLooped:b}),Ln.set(b),P.setLooped(b)};bn(G);let vn=()=>{var b,A;(A=(b=l==null?void 0:l.uiInfo)==null?void 0:b.onReportProblem)==null||A.call(b)},Vn=b=>{Ee({message:`set autoplayNextEnabled, value: ${b}`}),x.log("set autoplay next enabled",{autoplayNextEnabled:b}),St.ui.autoplayNextEnabled$.set(b),Td(b)},yn=()=>{P.prepare()},zn=()=>{Hn(St);let b=Ye(St.ui.controls.disabledControls$),A=Ye(St.playerPhase),re={playerPhase:A,isInteractive:k,isVideoEnded:!1,action:"none"};if(b.has("PLAY_BUTTON"))return;if(Ee({message:"toggle play"}),A==="ads"){re.action="play",x.log("toggle adman play",re),le.togglePlay();return}let Le=()=>{var mt;Ee({message:"toggle play, call player.play"}),re.action="play",P.play(),(mt=l==null?void 0:l.onPlay)==null||mt.call(l)},lt=()=>{var mt;Ee({message:"toggle play, call player.pause"}),re.action="pause",P.pause(),(mt=l==null?void 0:l.onPause)==null||mt.call(l)};if(P.info.isEnded$.getValue()){if(Ee({message:"toggle play, video ended, seek to 0"}),kt.next(),Ct.next(Ho.REWIND),k){v==null||v();return}P.seekTime(0),Le()}else P.info.playbackState$.getValue()!==os.PLAYING?Le():lt();x.log("toggle play",re)},Hi=b=>{Ee({message:`set quality, quality: ${b}`}),x.log("set quality",{quality:b}),P.setAutoQuality(b==="auto"),b!=="auto"?(gd(t,b),ki.set(b),P.setQuality(b)):da()},cn=b=>{Ee({message:`set trafficSavingEnabled, value: ${b}`}),x.log("set traffic saving enabled",{trafficSavingEnabled:b}),P.setAutoQualityLimits({max:b?ce.trafficSavingLimit:void 0}),yd(b)},ni=b=>{x.log("set playback rate",{playbackRate:b}),P.setPlaybackRate(b),ce.features.saveRate&&Q&&!P.info.isLive$.getValue()&&Cd(b)},ro=()=>{let b=Ye(ci),A=b.findIndex(({selected:Le})=>Le);if(A===b.length-1)return;let re=b[A+1];ni(re.value)},so=()=>{let b=Ye(ci),A=b.findIndex(({selected:Le})=>Le);if(A===0)return;let re=b[A-1];ni(re.value)},Wn=b=>{x.log("set subtitles",Qe({},b)),b&&b.value!==Yt.value&&Ze.next(b.isAuto?b.value+"_auto":b.value),Ht.set(b)},di=()=>{x.log("toggle subtitles");let b=Ye(Di),A=Ye(Ht),re=Ye(de);if((A==null?void 0:A.value)===Yt.value){let Le=b.filter(lt=>lt.value!==Yt.value).find(lt=>lt.value===re)||b[1];Wn(Le!=null?Le:Qe({},Yt))}else Wn(yt(Qe({},Yt),{selected:!1}))},fn=(b,A,re=!0)=>{var Le;if(Ee({message:`seek to time, time: ${b}`}),x.log("seek to time",{time:b,action:A,forcePrecise:re}),Ct.next(A),P.info.isLive$.getValue()){let lt=P.info.duration$.getValue(),mt=Math.min(0,lt+b);P.seekTime(mt,re)}else{if(S!=null&&S.getValue())return;P.info.isEnded$.getValue()&&(Ee({message:"seek after ended, call callbacks.onPlay"}),(Le=l==null?void 0:l.onPlay)==null||Le.call(l)),P.seekTime(gr(b),re)}},Zn=b=>{Ee({message:`seek to episode start time: ${b}`}),x.log("seek to episode start time",{time:b}),fn(b,Ho.EPISODE,!0)},Kn=(b,A)=>{Ee({message:`seek to percent, percent: ${b}`}),x.log("seek to percent",{percent:b,action:A});let re=Math.round(Ye(Pi)*b);fn(re,A,!1)},lo=b=>{Ee({message:`seek external, time: ${b}`}),x.log("seek external",{time:b}),Ct.next(Ho.UNKNOWN),P.seekTime(P.info.isLive$.getValue()?-b:b)},Xn=b=>{var Le,lt;let A=(Le=b.max)!=null?Le:"none",re=(lt=b.min)!=null?lt:"none";Ee({message:`set auto quality limitation. Max: ${A}. Min: ${re}`}),x.log("set auto quality limits",{max:A,min:re}),P.setAutoQualityLimits(b)},Jn=b=>{Ee({message:`seek external to episode start time: ${b}`}),x.log("seek external to episode start time",{time:b}),fn(b,Ho.EPISODE,!0)},wn=b=>{Ee({message:`set playback rate to: ${b}`}),x.log("set playback rate external",{playbackRate:b}),P.setPlaybackRate(b)},xn=Oe(void 0),kn=Oe(!1),ao=b=>{Ee({message:`start scrubbing, progress: ${b}`}),x.log("start scrubbing",{progress:b}),kn.set(!0),oe(b)},oe=b=>{xn.set(b)},vt,Xi,qi=()=>{xn.set(void 0),kn.set(!1)},ne=()=>{clearTimeout(Xi),clearTimeout(vt),vt=window.setTimeout(()=>{qi()},500),Ie==null||Ie.removeEventListener("seeked",ne)},Ui=b=>{Ee({message:`complete scrubbing, progress: ${b}`}),x.log("complete scrubbing",{progress:b}),Kn(b,Ho.SLIDER),Ye(St.ui.isMobile)&&Ye(St.state.currentFormat$)===rs.HLS?(Ie==null||Ie.addEventListener("seeked",ne),Xi=window.setTimeout(()=>{ne()},300)):qi()},zo=ei([Et,Pi,xn],([b,A,re],Le)=>{Le(n4(re)?re*A:b)}),Io=Oe({width:0,height:0}),Po=ei([Io],([{width:b}],A)=>{let re=rm(b);A(re)}),_o=Oe(!1),ho=F.filter(b=>ld(b)),pr=ei([Po,_o],([b,A])=>A?ho.filter(re=>!re.hideOnMobile):ho.filter(re=>{var Le;return!((Le=re.hideOnDesktopGridTypes)!=null&&Le.includes(b))})),Ji=Oe(F.filter(b=>ad(b))),go=ei([Ji,Po],([b,A])=>b.filter(re=>{var Le;return!((Le=re.hideOnDesktopGridTypes)!=null&&Le.includes(A))})),$n=ei([go,pr],([b,A])=>[...ce.features.additionalButtonsDesktopControlPanelRight?b.filter(re=>re.type==="desktop-control-panel-right"):[],...ce.features.additionalButtons?A.map((re,Le)=>{var lt;return{id:Le,weight:Le,type:"desktop-control-panel-right",testId:re.testId,icon:re.iconUrl,onClick:re.onClick,ariaLabel:(lt=re.ariaLabel)!=null?lt:re.tooltip,tooltipText:re.tooltip}}):[]]),dn=Oe(ie),Eo=ei([dn],([b])=>ce.features.additionalSettingsMenuItems?b.map(A=>A.type==="SWITCH"?yt(Qe({},A),{onClick:A.onChangeEnabled}):A):[]),Wo=(b,A)=>{let re=Ye(Ji).map(Le=>Le.id!==b?Le:Qe(Qe({},Le),A));Ji.set(re)},Ko=b=>{let A=Ye(Ji);if(A.some(re=>re.id===b.id)){Ee({message:`Additional button with id: "${b.id}" was exist! Can't add more with the same id`});return}A.push(b),Ji.set(A)},xo=b=>{let A=Ye(Ji);if(!A.some(re=>re.id===b)){Ee({message:`Can't find additional button with id: "${b}"! Can't remove item with this id`});return}A=A.filter(re=>re.id!==b),Ji.set(A)},jo=(b,A)=>{let re=Ye(dn).map(Le=>Le.id!==b?Le:Qe(Qe({},Le),A));dn.set(re)},Go=b=>{let A=Ye(dn);if(A.some(re=>re.id===b.id)){Ee({message:`Settings menu item with id: "${b.id}" was exist! Can't add more with the same id`});return}A.push(b),dn.set(A)},Yo=b=>{let A=Ye(dn);if(!A.some(re=>re.id===b)){Ee({message:`Can't find settings menu item with id: "${b}"! Can't remove item with this id`});return}A=A.filter(re=>re.id!==b),dn.set(A)},Rn=Oe(fe),Qo=ei([Rn],([b])=>ce.features.additionalContextMenuItems?b:[]),Zo=(b,A)=>{let re=Ye(Rn).map(Le=>Le.id!==b?Le:Qe(Qe({},Le),A));Rn.set(re)},Xo=b=>{let A=Ye(Rn);if(A.some(re=>re.id===b.id)){Ee({message:`Context menu item with id: "${b.id}" was exist! Can't add more with the same id`});return}A.push(b),Rn.set(A)},Z=b=>{let A=Ye(Rn);if(!A.some(re=>re.id===b)){Ee({message:`Can't find context menu item with id: "${b}"! Can't remove item with this id`});return}A=A.filter(re=>re.id!==b),Rn.set(A)},At=ei([_o,nt],([b,A],re)=>{re(b&&A)}),$i=()=>{Ct.next(Ho.LIVE),Ee({message:"switch to active live"}),x.log("switch to active live"),P.seekTime(0),P.info.playbackState$.getValue()!==os.PLAYING&&St.actions.internal.togglePlay()},zi=()=>{x.log("skip adman"),le.skip()},uo=(b=!0)=>{Hn(St),Ee({message:`switch from ads to video, callPlay: ${b}`}),x.log("switch from ads to video",{callPlay:b}),De.set("video"),b&&P.play()},Cn=()=>{Hn(St),Ee({message:"switch from video to ads"}),x.log("switch from video to ads"),St.actions.internal.pause(),Zt(),De.set("ads")},co=b=>{Hn(St);let A=b?"LiveWaitingStart":"thumb";x.log("set live waiting start",{state:b,playerPhase:A}),De.set(A)},Jo=b=>{Hn(St);let A=b?"LiveWaitingRecover":"thumb";x.log("set live waiting recover",{state:b,playerPhase:A}),De.set(A)},bo=b=>{Hn(St);let A=b?"LiveWaitingRecord":"thumb";x.log("set live waiting record",{state:b,playerPhase:A}),De.set(A)},_r=()=>(Hn(St),x.log("get debug text data"),od(P,Te,St)),Wr=()=>(Hn(St),JSON.stringify(z.getFinishedSpans())),Kr=()=>(Hn(St),rd(P,Te,St)),xr=()=>Ie,jr=()=>{Ee({message:"toggle chromecast"}),x.log("toggle chromecast"),P.toggleChromecast()},hr=b=>{var re;if(Hn(St),P.info.isEnded$.getValue())return;let A=!b;if(Ye(St.playerPhase)==="ads"){Ee({message:`pause ads, internalCall: ${A}`}),x.log("pause ads",{internalCall:A}),le.pause();return}Ee({message:`pause video, internalCall: ${A}`}),x.log("pause video",{internalCall:A}),A&&((re=l==null?void 0:l.onPause)==null||re.call(l)),P.pause()},Qt=b=>{var re;Hn(St);let A=!b;if(Ye(St.playerPhase)==="ads"){Ee({message:`play ads, internalCall: ${A}`}),x.log("play ads",{internalCall:A}),le.play();return}Ee({message:`play video, internalCall: ${A}`}),x.log("play video",{internalCall:A}),A&&((re=l==null?void 0:l.onPlay)==null||re.call(l)),P.play()},Bn=b=>{Hn(St);let A=!b;if(Ye(St.playerPhase)==="ads"){Ee({message:"player cannot be stopped during ads via external method"});return}Ee({message:`player will be stopped, internalCall: ${A}`}),E==null||E()},Ao=(b,A)=>{Hn(St),Ee({message:`first start, show ads: ${b}, internalCall: ${!A}`}),x.log("first start",{showAds:b,external:A}),b?De.set("ads"):(De.set("video"),A?P.play():St.actions.internal.togglePlay())},$o=()=>(Ee({message:"getting time codes"}),c),Gr=()=>{let b=$o();if(!b||[0,1].includes(b.length))return;let A=P.info.position$.getValue();return b.find(re=>re.time>A)},Zl=b=>{let A=b;A||(A=Gr());let re=P.info.position$.getValue();x.log("seek to next episode",Qe({currentTime:re},A)),A&&(Ee({message:"seek to next episode"}),fn(A.time,Ho.EPISODE,!0))},_s=()=>{let b=$o();if(!b||[0,1].includes(b.length))return;let A=P.info.position$.getValue(),re=b.findIndex(lt=>lt.time>A),Le=re===-1?b.length-2:re-2;if(!(Le<0))return b[Le]},Yr=b=>{let A=b;A||(A=_s());let re=P.info.position$.getValue();x.log("seek to prev episode",Qe({currentTime:re},A)),A&&(Ee({message:"seek to prev episode"}),fn(A.time,Ho.EPISODE,!0))},Xl=()=>(Ee({message:"getting preview thumbs data"}),x.log("get preview thumbs data",Qe({},m)),m),Jl=()=>pt(void 0,null,function*(){let b=te==null?void 0:te.isActive(),A="none";te!=null&&te.isActive()?(A="remove",yield te==null?void 0:te.remove()):(A="request",yield te==null?void 0:te.request()),x.log("toggle picture in picture",{isActive:b,action:A})}),$l=(b=-90)=>{x.log("rotate video",{alphaDiff:b}),xe.update(A=>A+b)},Mo=Oe([]);H==null||H.subscribe(b=>{let A=[];for(let re=0;re<b.length;re++){let{range:[Le,lt],subjects:mt}=b[re];re===0&&Le!==0&&A.push({time:0,text:"",interactive:!1,completed:!0}),A.push({time:Le/1e3,text:"",interactive:!0,completed:!mt.length}),lt!==1/0&&A.push({time:lt/1e3,text:"",interactive:!1,completed:!0})}Mo.set(A)});let Qr=Oe(!1);S==null||S.subscribe(b=>{b&&Ye(kn)&&qi()});let gr=b=>{if(!k)return b;let A=Ye(Mo),re=Ye(Pi),lt=Ye(wi)/re,mt=A.find(Mt=>Mt.interactive&&!Mt.completed&&Mt.time>lt);return typeof(mt==null?void 0:mt.time)=="number"?Math.min(b,mt.time-.05):b},Sn=()=>{St.ui.episodes.panelOpened$.set(!1)},Nn=()=>{x.log("destroy store"),clearTimeout(Xi),clearTimeout(vt),Ut.unsubscribe(),zt.unsubscribe(),P.destroy(),le.destroy(),J==null||J.destroy(),Me==null||Me.destroy(),at.unsubscribe(),Pt==null||Pt.disconnect(),Pt=null,Ae.destroy()},St={interfaceLanguage$:de,isCyrillicRelatedInterface$:Se,initVideo:dt,videoId:t,isClip:n,playerPhase:tt,vsid:We,state:{positionExact$:Et,positionWithScrubbing$:zo,duration$:Pi,playbackState$:Rt,isPlaying$:ui,isLoaderVisible:Ki,bufferedProgress$:Un,isLive$:Bt,canChangePlaybackSpeed$:si,isActiveLive$:Kt,isOldestAvailableLive$:In,isRewindableLive$:pn,isEnded$:oi,muted$:Ci,volume$:ai,trafficSavingEnabled$:Nt,autoQualityLimitingAvailable$:pi,availableVideoStreams$:on,availableAudioStreams$:_n,videoStream$:Ei,audioStream$:rn,currentQuality$:ln,isAutoQualityEnabled$:Ri,availableQualities$:Ai,currentPlaybackRate$:Mi,availablePlaybackRates$:ci,currentSubtitle$:Ht,availableSubtitlesList$:Di,currentSubtitleCaptions$:Fi,isAutoSubtitleCaptionVisible$:Ge,chromecastState$:nn,chromecastDeviceName$:Ti,chromecastConnected$:Pn,currentFormat$:Pe,throughputEstimation$:it,videoBitrate$:Ot,videoSize$:Ii,errorLog$:st,crashed$:nt,isAudioAvailable$:mn,isAudioDisabled:!!s,canDownload:ce.features.download&&!!a,availableSources$:un,hasMpegSources$:En,isInteractive:k,showInteractiveGraph:ce.features.interactiveGraph,showSeekToInteractive:ce.features.seekToInteractive,showPlayPrevChapter:ce.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ce.features.interactiveTimeIndicator&&!!Ye(Mo).length,interactiveEpisodes$:Mo,isInteractiveTime$:S?It(S):Oe(!1),graphIsOpened$:Oe(!1),isInteractiveExpectation$:Qr,hasInteractiveBranches:q,playPrevChapterDisabledTooltip:U,looped$:Ln,loadedMetadata$:Oe(!1)},ui:{controlsVisible:Oe(!1),touched:Oe(!1),controls:{prevButton:Oe(void 0),playButton:Oe(void 0),replayButton:Oe(void 0),nextButton:Oe(void 0),playPrevChapterButton:Oe(void 0),seekToInteractiveButton:Oe(void 0),interactiveGraphButton:Oe(void 0),liveButton:Oe(void 0),time:Oe(void 0),episodes:Oe(void 0),volume:Oe(void 0),subtitles:Oe(void 0),settings:Oe(void 0),context:Oe(void 0),chromecast:Oe(void 0),pip:Oe(void 0),fullscreen:Oe(void 0),vkLogo:Oe(void 0),interactiveTimeIndicator:Oe(void 0),timeline:Oe(void 0),autoplayNextToggle:Oe(void 0),additionalButtons:F.length?F.reduce(b=>[...b,Oe(void 0)],[]):[],disabledControls$:Fe},modals:{hotKeyMap:{show:Oe(!1),data:Oe({title:"",closeBtnText:"",groups:[]})}},isFullscreen:ee,rotateAlpha:xe,isAutoplay:Oe(!1),debugPanelVisible:Oe(!1),episodes:{panelOpened$:Oe(!1),openedByKeyboard$:Oe(!1)},contextMenu:{visible$:Oe(!1),btnRef$:Oe(void 0),openedByBtnKeyboard$:Oe(!1),openedByHotKey$:Oe(!1),lastActiveElem$:Oe(void 0),showContextMenuBtn$:Oe(!1),position$:Oe({top:0,left:0})},playerSize:Io,isMobile:_o,mobileNotReportControlHidden$:At,mobileUnmuteButtonExpanded:Oe(!1),mobileUnmuteButtonVisible:Oe(!1),icon3DVideoVisible:Oe(!1),settingsMenuVisible:Oe(!1),settingsMenuOpenedByKeyboard:Oe(!1),scrubbingInProgress:kn,is3DVideo:Oe(!1),isPictureInPictureActive$:ii,pictureInPictureType$:jn(Ce),currentGridType$:Po,additionalButtonsDeprecated$:pr,additionalDesktopControlPanelRightButtons$:$n,additionalSettingsMenuItems$:Eo,additionalContextMenuItems$:Qo,interactiveHideMobileControls:Oe(!1),overlayContainer$:Oe(void 0),startedByKeyboard$:Oe(!1),autoplayNextEnabled$:Oe(!1)},ads:{position:Oe(0),duration:Oe(0),playbackState:Oe("inactive"),canSkip:Oe(!1),secondsToWatchBeforeSkip:Oe(0),postrollPassed:Oe(!1)},webApi:{pictureInPictureApi:te,annotationsApi:be},actions:{internal:{preload:yn,firstStart:b=>Ao(b,!1),play:()=>Qt(!1),pause:()=>hr(!1),togglePlay:zn,toggleMuted:Qi,toggleSettingsMenu:gi,openSettingsMenu:gn,closeSettingsMenu:Zi,setVolume:An,setVideoStream:Gt,setAudioStream:qn,setQuality:Hi,setTrafficSavingEnabled:b=>cn(b),setPlaybackRate:ni,incrementPlaybackRate:ro,decrementPlaybackRate:so,setSubtitle:Wn,toggleSubtitle:di,togglePictureInPicture:Jl,startScrubbing:ao,progressScrubbing:oe,completeScrubbing:Ui,toggleChromecast:jr,switchToActiveLive:$i,switchFromAdsToVideo:uo,switchFromVideoToAds:Cn,skipAd:zi,setLiveWaitingStart:co,setLiveWaitingRecover:Jo,setLiveWaitingRecord:bo,getDebugTextData:_r,getTraceTextData:Wr,getDebugPanelData:Kr,getVideoElement:xr,seekTime:(b,A,re)=>fn(b,A,re),clearDelayedBufferingCheckTimeout:Ft,seekEpisodeStartTime:Zn,seekToPercent:Kn,getNextEpisode:Gr,seekToNextEpisode:Zl,getPrevEpisode:_s,seekToPrevEpisode:Yr,startLogging:Xt,stopLogging:Wt,startCameraManualRotation:Ke,stopCameraManualRotation:Xe,moveCameraFocusPX:Tt,holdCamera:_e,releaseCamera:Jt,getVideoEpisodes:$o,getPreviewThumbsData:Xl,downloadVideo:Yi,addLanguage:ga,setLanguage:$e,nextMovie:_t,videoRotate:$l,correctSeekTimeToInteractive:gr,replayInteractive:v,setLooped:bn,reportProblem:vn,setAutoplayNextEnabled:Vn},external:{firstStart:b=>Ao(b,!0),play:()=>Qt(!0),pause:()=>hr(!0),stop:()=>Bn(!0),seekTime:b=>lo(b),seekEpisodeStartTime:b=>Jn(b),setPlaybackRate:b=>wn(b),setAutoQualityLimits:b=>Xn(b),setMuted:b=>Mn(b,!0),setVolume:b=>An(b,b,!0),returnFocusToEpisodes:Sn,updateAdditionalSettingsItem:jo,addAdditionalSettingsItem:Go,removeAdditionalSettingsItem:Yo,updateAdditionalContextItem:Zo,addAdditionalContextItem:Xo,removeAdditionalContextItem:Z,updateAdditionalButton:Wo,addAdditionalButton:Ko,removeAdditionalButton:xo}},callbacks:l,setUiCallbacks:b=>{rt=Qe({},b)},getAdmanWrapper:()=>le,getLogger:()=>$,destroy:Nn};return St};var wl=(i,e,t,n)=>{var a;if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"],s=i.getBoundingClientRect();for(let[l,u]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(l)){let c=(a=t[l])==null?void 0:a.getBoundingClientRect(),m=(n||r.includes(l))&&!!c&&!!(c.right-c.left);u.set({positionStartX:0,positionEndX:0,left:m?Math.round(c.left-s.left):0,right:m?Math.round(c.right-s.left):0,top:m?Math.round(c.top-s.top):0,bottom:m?Math.round(c.bottom-s.top):0,isDisplayed:m})}};var kl=(i,e,t)=>pt(void 0,null,function*(){yield to(),e&&t&&(t.focus(),i.set(!1))});function d4(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"d","M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,l,l[1],n?Re(o,l[1],u,null):Ne(l[1]),null),we(e,a=qe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function m4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var qu=class extends N{constructor(e){super(),D(this,e,m4,d4,R,{})}},Am=qu;function p4(i){let e,t;return e=new Am({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function _4(i){let e,t,n;function o(s){i[8](s)}let r={className:i[3]?"opened":"",testId:"btn-context-menu",disabled:i[0],ariaLabel:i[1],click:i[5],focus:i[6],blur:i[7],ariaExpanded:i[3],$$slots:{default:[p4]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&8&&(l.className=s[3]?"opened":""),a&1&&(l.disabled=s[0]),a&2&&(l.ariaLabel=s[1]),a&8&&(l.ariaExpanded=s[3]),a&16384&&(l.$$scope={dirty:a,ctx:s}),!t&&a&4&&(t=!0,l.ref=s[2],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function h4(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,s=ot(),a=s.ui.contextMenu.visible$;O(i,a,H=>t(3,n=H));let l=s.ui.contextMenu.openedByBtnKeyboard$,u=s.ui.contextMenu.showContextMenuBtn$,c=s.ui.contextMenu.position$,m=s.ui.contextMenu.btnRef$,h,C=H=>{let S=Er(H),v=e1(h);c.set(v),l.set(S),a.set(!n)},g=()=>{u.set(!0)},T=()=>{u.set(!1)};function k(H){h=H,t(2,h)}return i.$$set=H=>{"disabled"in H&&t(0,o=H.disabled),"ariaLabel"in H&&t(1,r=H.ariaLabel)},i.$$.update=()=>{i.$$.dirty&4&&h&&m.set(h)},[o,r,h,n,a,C,g,T,k]}var Uu=class extends N{constructor(e){super(),D(this,e,h4,_4,R,{disabled:0,ariaLabel:1})}},Mm=Uu;function g4(i){ve(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 b4(i){let e,t;return e=new rl({props:{completed:!0}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function v4(i){let e,t,n,o,r,s,a,l,u,c;function m(C){i[22](C)}let h={tooltipContent:j("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[b4]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new en({props:h}),ge.push(()=>ze(t,"ref",m)),t.$on("click",i[14]),{c(){e=I("div"),B(t.$$.fragment),o=Y(),r=I("div"),s=Y(),a=I("div"),f(r,"class","ref-block svelte-17imlp9"),K(r,"hidden",i[1]),f(a,"class","pulse svelte-17imlp9"),K(a,"paused",i[4]),f(e,"class","interactive-episode-icon-animated svelte-17imlp9"),K(e,"mobile",i[2]),K(e,"fullscreen",i[6]),K(e,"invisible",i[1])},m(C,g){w(C,e,g),L(t,e,null),_(e,o),_(e,r),i[23](r),_(e,s),_(e,a),i[24](a),l=!0,u||(c=[ke(e,"mousemove",bt(i[21])),ke(e,"mouseleave",i[15])],u=!0)},p(C,g){let T={};g[0]&32&&(T.tooltipActive=C[5]),g[1]&1&&(T.$$scope={dirty:g,ctx:C}),!n&&g[0]&1&&(n=!0,T.ref=C[0],Ue(()=>n=!1)),t.$set(T),(!l||g[0]&2)&&K(r,"hidden",C[1]),(!l||g[0]&16)&&K(a,"paused",C[4]),(!l||g[0]&4)&&K(e,"mobile",C[2]),(!l||g[0]&64)&&K(e,"fullscreen",C[6]),(!l||g[0]&2)&&K(e,"invisible",C[1])},i(C){l||(d(t.$$.fragment,C),l=!0)},o(C){p(t.$$.fragment,C),l=!1},d(C){C&&y(e),V(t),i[23](null),i[24](null),u=!1,ct(c)}}}function y4(i,e,t){var $;let n,o,r,s,a,l,{ref:u=void 0}=e,c,m=ot(),h=On(),{interactiveControlsOpacity$:C}=h;O(i,C,le=>t(18,o=le));let g=m.ui.isMobile;O(i,g,le=>t(2,a=le));let T=m.ui.isFullscreen;O(i,T,le=>t(6,l=le));let k=m.state.isInteractiveTime$;O(i,k,le=>t(19,r=le));let H=h.showInteractiveTimeIndicatorTooltip$;O(i,H,le=>t(17,n=le));let S=m.ui.controlsVisible;O(i,S,le=>t(20,s=le));let v=($=m.callbacks)==null?void 0:$.onInteractiveTimeIndicatorClick,E,q,U,F=()=>{t(4,U=!0)},ie=()=>{fe(),c==null||c.addEventListener("animationiteration",F,{once:!0})},fe=()=>{t(4,U=!1),c==null||c.removeEventListener("animationiteration",F)},G=le=>{H.set(le)},J,Q=()=>{q||(H.set(!0),v==null||v())};eo(()=>{H.clearTimeout(),fe()});let W=()=>{H.set(!1)};function ce(le){Dn.call(this,i,le)}function z(le){u=le,t(0,u)}function x(le){ge[le?"unshift":"push"](()=>{u=le,t(0,u)})}function P(le){ge[le?"unshift":"push"](()=>{c=le,t(3,c)})}return i.$$set=le=>{"ref"in le&&t(0,u=le.ref)},i.$$.update=()=>{i.$$.dirty[0]&1048580&&t(16,E=!a&&s),i.$$.dirty[0]&851968&&t(1,q=!r||!!o||E),i.$$.dirty[0]&2&&t(4,U=q),i.$$.dirty[0]&131074&&t(5,J=n&&!q),i.$$.dirty[0]&131072&&(n?ie():fe())},[u,q,a,c,U,J,l,C,g,T,k,H,S,G,Q,W,E,n,o,r,s,ce,z,x,P]}var zu=class extends N{constructor(e){super(),D(this,e,y4,v4,R,{ref:0},g4,[-1,-1])}},Cl=zu;function w4(i){var a;let e,t,n,o=[(a=i[2])!=null?a:{}];var r=i[1];function s(l,u){var m;let c={};for(let h=0;h<o.length;h+=1)c=se(c,o[h]);return u!==void 0&&u&4&&(c=se(c,qe(o,[Vo((m=l[2])!=null?m:{})]))),{props:c}}return r&&(e=Dt(r,s(i))),{c(){e&&B(e.$$.fragment),t=Je()},m(l,u){e&&L(e,l,u),w(l,t,u),n=!0},p(l,u){var c;if(u&2&&r!==(r=l[1])){if(e){ae();let m=e;p(m.$$.fragment,1,0,()=>{V(m,1)}),ue()}r?(e=Dt(r,s(l,u)),B(e.$$.fragment),d(e.$$.fragment,1),L(e,t.parentNode,t)):e=null}else if(r){let m=u&4?qe(o,[Vo((c=l[2])!=null?c:{})]):{};e.$set(m)}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&p(e.$$.fragment,l),n=!1},d(l){l&&y(t),e&&V(e,l)}}}function k4(i){let e,t,n;function o(s){i[7](s)}let r={disabled:i[5],tooltipContent:i[3],disabledTooltipContent:i[4],className:i[6],$$slots:{default:[w4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new en({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&32&&(l.disabled=s[5]),a&8&&(l.tooltipContent=s[3]),a&16&&(l.disabledTooltipContent=s[4]),a&64&&(l.className=s[6]),a&262&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function C4(i,e,t){let{buttonComponent:n}=e,{buttonComponentProps:o}=e,{tooltipText:r}=e,{disabledTooltipContent:s}=e,{disabled:a=!1}=e,{className:l=void 0}=e,{ref:u}=e;function c(m){u=m,t(0,u)}return i.$$set=m=>{"buttonComponent"in m&&t(1,n=m.buttonComponent),"buttonComponentProps"in m&&t(2,o=m.buttonComponentProps),"tooltipText"in m&&t(3,r=m.tooltipText),"disabledTooltipContent"in m&&t(4,s=m.disabledTooltipContent),"disabled"in m&&t(5,a=m.disabled),"className"in m&&t(6,l=m.className),"ref"in m&&t(0,u=m.ref)},[u,n,o,r,s,a,l,c]}var Wu=class extends N{constructor(e){super(),D(this,e,C4,k4,R,{buttonComponent:1,buttonComponentProps:2,tooltipText:3,disabledTooltipContent:4,disabled:5,className:6,ref:0})}},Ku=Wu;var To={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};function T4(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"d","M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,l,l[1],n?Re(o,l[1],u,null):Ne(l[1]),null),we(e,a=qe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function I4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var xu=class extends N{constructor(e){super(),D(this,e,I4,T4,R,{})}},Lm=xu;function P4(i){let e,t;return e=new Lm({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function E4(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,r;return i.$$set=s=>{"isPrev"in s&&t(0,n=s.isPrev),"isMobile"in s&&t(2,o=s.isMobile)},i.$$.update=()=>{i.$$.dirty&5&&(n&&o?t(1,r="transform: scaleX(-1) scale(1.3333);"):n?t(1,r="transform: scaleX(-1);"):o?t(1,r="transform: scale(1.3333);"):t(1,r=void 0))},[n,r,o]}var ju=class extends N{constructor(e){super(),D(this,e,E4,P4,R,{isPrev:0,isMobile:2})}},Vm=ju;function A4(i){ve(i,"svelte-xtk2k4",".icon-background-mobile.svelte-xtk2k4{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color)}")}function Rm(i){let e;return{c(){e=I("div"),f(e,"class","icon-background-mobile svelte-xtk2k4")},m(t,n){w(t,e,n)},d(t){t&&y(e)}}}function M4(i){let e,t,n,o=i[1]&&Rm(i);return t=new Vm({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){o&&o.c(),e=Y(),B(t.$$.fragment)},m(r,s){o&&o.m(r,s),w(r,e,s),L(t,r,s),n=!0},p(r,s){r[1]?o||(o=Rm(r),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);let a={};s&2&&(a.isMobile=r[1]),s&8&&(a.isPrev=r[3]==="prev"),t.$set(a)},i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){p(t.$$.fragment,r),n=!1},d(r){r&&y(e),o&&o.d(r),V(t,r)}}}function L4(i){let e,t,n;function o(s){i[6](s)}let r={className:`btn-${i[1]?"m":"d"}--${i[3]}`,testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[M4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&10&&(l.className=`btn-${s[1]?"m":"d"}--${s[3]}`),a&8&&(l.testId="btn-"+s[3]),a&4&&(l.disabled=s[2]),a&32&&(l.ariaLabel=s[5]),a&16&&(l.click=s[4]),a&138&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function V4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{type:s}=e,{click:a}=e,l;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"isMobile"in c&&t(1,o=c.isMobile),"disabled"in c&&t(2,r=c.disabled),"type"in c&&t(3,s=c.type),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,l=s==="prev"?j("tooltip_previous"):j("tooltip_next"))},[n,o,r,s,a,l,u]}var Gu=class extends N{constructor(e){super(),D(this,e,V4,L4,R,{ref:0,isMobile:1,disabled:2,type:3,click:4},A4)}},Fr=Gu;function R4(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"d","M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.67.67 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,l,l[1],n?Re(o,l[1],u,null):Ne(l[1]),null),we(e,a=qe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function B4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Yu=class extends N{constructor(e){super(),D(this,e,B4,R4,R,{})}},Sl=Yu;import{noop as N4}from"@vkontakte/videoplayer-shared";function D4(i){ve(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function Bm(i){let e;return{c(){e=I("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){w(t,e,n)},d(t){t&&y(e)}}}function O4(i){let e,t,n,o,r=i[1]&&Bm(i);return n=new Sl({}),{c(){r&&r.c(),e=Y(),t=I("div"),B(n.$$.fragment),f(t,"class","svelte-1ot3duq"),K(t,"mobile",i[1])},m(s,a){r&&r.m(s,a),w(s,e,a),w(s,t,a),L(n,t,null),o=!0},p(s,a){s[1]?r||(r=Bm(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!o||a&2)&&K(t,"mobile",s[1])},i(s){o||(d(n.$$.fragment,s),o=!0)},o(s){p(n.$$.fragment,s),o=!1},d(s){s&&(y(e),y(t)),r&&r.d(s),V(n)}}}function F4(i){let e,t,n;function o(s){i[5](s)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:j("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:mo.KeyK,$$slots:{default:[O4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&10&&(l.className=(s[1]?"btn-m--play":"")+" "+s[3]),a&4&&(l.disabled=s[2]),a&16&&(l.click=s[4]),a&66&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function H4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:s=""}=e,{click:a=N4}=e;function l(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"disabled"in u&&t(2,r=u.disabled),"className"in u&&t(3,s=u.className),"click"in u&&t(4,a=u.click)},[n,o,r,s,a,l]}var Qu=class extends N{constructor(e){super(),D(this,e,H4,F4,R,{ref:0,isMobile:1,disabled:2,className:3,click:4},D4)}},ss=Qu;function q4(i){let e,t;return{c(){e=M("svg"),t=M("path"),f(t,"d","M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"),f(t,"fill",i[3]),f(e,"width",i[0]),f(e,"height",i[1]),f(e,"viewBox",i[2]),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","play-icon")},m(n,o){w(n,e,o),_(e,t)},p(n,[o]){o&8&&f(t,"fill",n[3]),o&1&&f(e,"width",n[0]),o&2&&f(e,"height",n[1]),o&4&&f(e,"viewBox",n[2])},i:me,o:me,d(n){n&&y(e)}}}function U4(i,e,t){let{width:n="24"}=e,{height:o="24"}=e,{viewBox:r="0 0 24 24"}=e,{fill:s="#fff"}=e;return i.$$set=a=>{"width"in a&&t(0,n=a.width),"height"in a&&t(1,o=a.height),"viewBox"in a&&t(2,r=a.viewBox),"fill"in a&&t(3,s=a.fill)},[n,o,r,s]}var Zu=class extends N{constructor(e){super(),D(this,e,U4,q4,R,{width:0,height:1,viewBox:2,fill:3})}},qo=Zu;function z4(i){let e,t;return{c(){e=M("svg"),t=M("path"),f(t,"d","M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"),f(t,"fill",i[3]),f(e,"width",i[0]),f(e,"height",i[1]),f(e,"viewBox",i[2]),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","pause-icon")},m(n,o){w(n,e,o),_(e,t)},p(n,[o]){o&8&&f(t,"fill",n[3]),o&1&&f(e,"width",n[0]),o&2&&f(e,"height",n[1]),o&4&&f(e,"viewBox",n[2])},i:me,o:me,d(n){n&&y(e)}}}function W4(i,e,t){let{width:n="24"}=e,{height:o="24"}=e,{viewBox:r="0 0 24 24"}=e,{fill:s="#fff"}=e;return i.$$set=a=>{"width"in a&&t(0,n=a.width),"height"in a&&t(1,o=a.height),"viewBox"in a&&t(2,r=a.viewBox),"fill"in a&&t(3,s=a.fill)},[n,o,r,s]}var Xu=class extends N{constructor(e){super(),D(this,e,W4,z4,R,{width:0,height:1,viewBox:2,fill:3})}},Hr=Xu;import{noop as K4}from"@vkontakte/videoplayer-shared";function x4(i){ve(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function Nm(i){let e;return{c(){e=I("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){w(t,e,n)},d(t){t&&y(e)}}}function j4(i){let e,t,n,o,r=i[1]&&Nm(i);var s=i[8];function a(l,u){return{}}return s&&(n=Dt(s,a(i))),{c(){r&&r.c(),e=Y(),t=I("div"),n&&B(n.$$.fragment),f(t,"class","svelte-1ot3duq"),K(t,"mobile",i[1])},m(l,u){r&&r.m(l,u),w(l,e,u),w(l,t,u),n&&L(n,t,null),o=!0},p(l,u){if(l[1]?r||(r=Nm(l),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u&256&&s!==(s=l[8])){if(n){ae();let c=n;p(c.$$.fragment,1,0,()=>{V(c,1)}),ue()}s?(n=Dt(s,a(l,u)),B(n.$$.fragment),d(n.$$.fragment,1),L(n,t,null)):n=null}(!o||u&2)&&K(t,"mobile",l[1])},i(l){o||(n&&d(n.$$.fragment,l),o=!0)},o(l){n&&p(n.$$.fragment,l),o=!1},d(l){l&&(y(e),y(t)),r&&r.d(l),n&&V(n)}}}function G4(i){let e,t,n;function o(s){i[13](s)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-play",click:i[5]?i[6]:i[4],disabled:i[2],ariaLabel:i[7],ariaKeyShortCut:mo.KeyK,$$slots:{default:[j4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&10&&(l.className=(s[1]?"btn-m--play":"")+" "+s[3]),a&112&&(l.click=s[5]?s[6]:s[4]),a&4&&(l.disabled=s[2]),a&128&&(l.ariaLabel=s[7]),a&33026&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Y4(i,e,t){let n,o,{fakeIsPlaying$:r}=On();O(i,r,S=>t(12,o=S));let{ref:s=void 0}=e,{isMobile:a=!1}=e,{isPlaying:l=!1}=e,{disabled:u=!1}=e,{className:c=""}=e,{click:m=K4}=e,{toggle:h}=r,C,g,T,k;function H(S){s=S,t(0,s)}return i.$$set=S=>{"ref"in S&&t(0,s=S.ref),"isMobile"in S&&t(1,a=S.isMobile),"isPlaying"in S&&t(10,l=S.isPlaying),"disabled"in S&&t(2,u=S.disabled),"className"in S&&t(3,c=S.className),"click"in S&&t(4,m=S.click)},i.$$.update=()=>{i.$$.dirty&4096&&t(5,g=o!==null),i.$$.dirty&5152&&t(11,T=g?o:l),i.$$.dirty&2048&&t(7,k=T?j("tooltip_pause"):j("tooltip_play")),i.$$.dirty&2048&&t(8,n=T?Hr:qo)},t(6,C=h),[s,a,u,c,m,g,C,k,n,r,l,T,o,H]}var Ju=class extends N{constructor(e){super(),D(this,e,Y4,G4,R,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},x4)}},ls=Ju;function Q4(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"d","M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,l,l[1],n?Re(o,l[1],u,null):Ne(l[1]),null),we(e,a=qe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function Z4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var $u=class extends N{constructor(e){super(),D(this,e,Z4,Q4,R,{})}},Dm=$u;function X4(i){let e,t;return e=new Dm({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function J4(i){let e,t,n;function o(s){i[4](s)}let r={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:j("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[X4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"hidden":""),a&4&&(l.disabled=s[2]),a&8&&(l.click=s[3]),a&32&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function $4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:s}=e;function a(l){n=l,t(0,n)}return i.$$set=l=>{"ref"in l&&t(0,n=l.ref),"hidden"in l&&t(1,o=l.hidden),"disabled"in l&&t(2,r=l.disabled),"click"in l&&t(3,s=l.click)},[n,o,r,s,a]}var ec=class extends N{constructor(e){super(),D(this,e,$4,J4,R,{ref:0,hidden:1,disabled:2,click:3})}},Tl=ec;function e3(i){let e,t,n,o,r=i[2].default,s=Ve(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"),we(e,l)},m(u,c){w(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Be(s,r,u,u[1],o?Re(r,u[1],c,null):Ne(u[1]),null),we(e,l=qe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&y(e),s&&s.d(u)}}}function t3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var tc=class extends N{constructor(e){super(),D(this,e,t3,e3,R,{})}},Om=tc;function i3(i){let e,t;return e=new Om({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function n3(i){let e,t,n;function o(s){i[4](s)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:j("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[i3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"hidden":""),a&4&&(l.disabled=s[2]),a&8&&(l.click=s[3]),a&32&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function o3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:s}=e;function a(l){n=l,t(0,n)}return i.$$set=l=>{"ref"in l&&t(0,n=l.ref),"hidden"in l&&t(1,o=l.hidden),"disabled"in l&&t(2,r=l.disabled),"click"in l&&t(3,s=l.click)},[n,o,r,s,a]}var ic=class extends N{constructor(e){super(),D(this,e,o3,n3,R,{ref:0,hidden:1,disabled:2,click:3})}},Il=ic;function r3(i){let e,t,n,o,r=i[2].default,s=Ve(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z"),f(n,"class","_closed"),f(n,"clip-rule","evenodd"),we(e,l)},m(u,c){w(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Be(s,r,u,u[1],o?Re(r,u[1],c,null):Ne(u[1]),null),we(e,l=qe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&y(e),s&&s.d(u)}}}function s3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var nc=class extends N{constructor(e){super(),D(this,e,s3,r3,R,{})}},Fm=nc;function l3(i){ve(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function a3(i){let e,t;return e=new Fm({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function u3(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var oc=class extends N{constructor(e){super(),D(this,e,u3,a3,R,{isOpened:0},l3)}},Hm=oc;function c3(i){let e,t;return e=new Hm({props:{isOpened:!!i[3]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.isOpened=!!n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function f3(i){let e,t,n;function o(s){i[6](s)}let r={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[c3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"hidden":""),a&4&&(l.disabled=s[2]),a&32&&(l.ariaLabel=s[5]),a&16&&(l.click=s[4]),a&136&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function d3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{graphIsOpened:s=!1}=e,{click:a}=e,l;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"hidden"in c&&t(1,o=c.hidden),"disabled"in c&&t(2,r=c.disabled),"graphIsOpened"in c&&t(3,s=c.graphIsOpened),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,l=s?j("tooltip_interactive_graph_on"):j("tooltip_interactive_graph_off"))},[n,o,r,s,a,l,u]}var rc=class extends N{constructor(e){super(),D(this,e,d3,f3,R,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Pl=rc;import{PlaybackState as sc}from"@vkontakte/videoplayer-core";function m3(i){let e,t;return e=new Us({props:{isActive:i[1]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function p3(i){let e,t;return e=new ht({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===sc.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[m3]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(r.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(r.disabled=n[1]&&n[3]===sc.PLAYING),o&4&&(r.ariaLabel=n[2]),o&16&&(r.click=n[4]),o&514&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function _3(i,e,t){let n,{isMobile:o=!1}=e,{isLiveActive:r=!1}=e,{ariaLabel:s=""}=e,a=ot(),l=a.state.playbackState$;O(i,l,h=>t(3,n=h));let u=a.actions.internal.switchToActiveLive,c=a.actions.internal.togglePlay,m;return i.$$set=h=>{"isMobile"in h&&t(0,o=h.isMobile),"isLiveActive"in h&&t(1,r=h.isLiveActive),"ariaLabel"in h&&t(2,s=h.ariaLabel)},i.$$.update=()=>{i.$$.dirty&10&&t(4,m=()=>{if(!r){u();return}n===sc.PAUSED&&c()})},[o,r,s,n,m,l]}var lc=class extends N{constructor(e){super(),D(this,e,_3,p3,R,{isMobile:0,isLiveActive:1,ariaLabel:2})}},El=lc;import{noop as qm}from"@vkontakte/videoplayer-shared";function h3(i){let e,t,n,o;return{c(){e=I("img"),f(e,"class","icon"),vo(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){w(r,e,s),n||(o=ke(e,"error",i[2]),n=!0)},p(r,s){s&1&&!vo(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&y(e),n=!1,o()}}}function g3(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner"></div>',f(e,"class","icon icon-error-stub")},m(t,n){w(t,e,n)},p:me,d(t){t&&y(e)}}}function b3(i){let e;function t(r,s){return r[1]?g3:h3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Je()},m(r,s){o.m(r,s),w(r,e,s)},p(r,[s]){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:me,o:me,d(r){r&&y(e),o.d(r)}}}function v3(i,e,t){let n,{icon:o}=e,r=()=>{t(1,n=!0)};return i.$$set=s=>{"icon"in s&&t(0,o=s.icon)},t(1,n=!1),[o,n,r]}var ac=class extends N{constructor(e){super(),D(this,e,v3,b3,R,{icon:0})}},qr=ac;function y3(i){let e,t;return e=new qr({props:{icon:i[3]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.icon=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function w3(i){var n;let e,t;return e=new ht({props:{className:i[8],ariaLabel:i[4],click:i[7],disabled:i[9],testId:(n=i[2])!=null?n:i[1],$$slots:{default:[y3]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(o,r){L(e,o,r),t=!0},p(o,r){var a;let s={};r&256&&(s.className=o[8]),r&16&&(s.ariaLabel=o[4]),r&128&&(s.click=o[7]),r&512&&(s.disabled=o[9]),r&6&&(s.testId=(a=o[2])!=null?a:o[1]),r&8200&&(s.$$scope={dirty:r,ctx:o}),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){V(e,o)}}}function k3(i){let e,t,n;function o(s){i[12](s)}let r={disabled:i[9],tooltipContent:i[5],disabledTooltipContent:i[6],width:40,$$slots:{default:[w3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new en({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&512&&(l.disabled=s[9]),a&32&&(l.tooltipContent=s[5]),a&64&&(l.disabledTooltipContent=s[6]),a&9118&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function C3(i,e,t){let n,o,r,{id:s}=e,{testId:a}=e,{icon:l}=e,{ariaLabel:u}=e,{tooltipText:c}=e,{disabledTooltipContent:m}=e,{disabled:h=!1}=e,{onClick:C=qm}=e,{ref:g}=e;function T(k){g=k,t(0,g)}return i.$$set=k=>{"id"in k&&t(1,s=k.id),"testId"in k&&t(2,a=k.testId),"icon"in k&&t(3,l=k.icon),"ariaLabel"in k&&t(4,u=k.ariaLabel),"tooltipText"in k&&t(5,c=k.tooltipText),"disabledTooltipContent"in k&&t(6,m=k.disabledTooltipContent),"disabled"in k&&t(10,h=k.disabled),"onClick"in k&&t(7,C=k.onClick),"ref"in k&&t(0,g=k.ref)},i.$$.update=()=>{i.$$.dirty&128&&t(11,n=C===qm),i.$$.dirty&3072&&t(9,o=n||h),i.$$.dirty&2048&&t(8,r=n?"btn-full-opacity":"")},[g,s,a,l,u,c,m,C,r,o,h,n,T]}var uc=class extends N{constructor(e){super(),D(this,e,C3,k3,R,{id:1,testId:2,icon:3,ariaLabel:4,tooltipText:5,disabledTooltipContent:6,disabled:10,onClick:7,ref:0})}},Um=uc;var zm=i=>!!i.buttonComponent;var Uo={vkLogo:100,volume:200,subtitles:300,settings:400,context:500,fullscreen:600,chromecast:700};function P3(i){ve(i,"svelte-ips4nw",".wrapper-bottom.svelte-ips4nw.svelte-ips4nw{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box}.wrapper-bottom.svelte-ips4nw>.svelte-ips4nw{pointer-events:auto}.controls.svelte-ips4nw.svelte-ips4nw{width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box}.controls-left.svelte-ips4nw.svelte-ips4nw,.controls-right.svelte-ips4nw.svelte-ips4nw{display:flex;align-content:center}.controls-left.svelte-ips4nw.svelte-ips4nw{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-ips4nw > *:not(:first-child),.controls-right.svelte-ips4nw > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-ips4nw.svelte-ips4nw{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-ips4nw.svelte-ips4nw{transition:none}")}function Km(i,e,t){let n=i.slice();return n[203]=e[t],n[204]=e,n[205]=t,n}function xm(i,e,t){let n=i.slice();return n[203]=e[t],n[206]=e,n[207]=t,n}function jm(i){let e,t,n;function o(s){i[167](s,i[203])}let r={buttonComponent:i[203].buttonComponent,buttonComponentProps:i[203].buttonComponentProps,tooltipText:i[203].tooltipText,disabledTooltipContent:i[203].disabledTooltipContent,disabled:i[203].disabled,className:i[203].className};return i[10][i[203].id]!==void 0&&(r.ref=i[10][i[203].id]),e=new Ku({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&2048&&(l.buttonComponent=i[203].buttonComponent),a[0]&2048&&(l.buttonComponentProps=i[203].buttonComponentProps),a[0]&2048&&(l.tooltipText=i[203].tooltipText),a[0]&2048&&(l.disabledTooltipContent=i[203].disabledTooltipContent),a[0]&2048&&(l.disabled=i[203].disabled),a[0]&2048&&(l.className=i[203].className),!t&&a[0]&3072&&(t=!0,l.ref=i[10][i[203].id],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Gm(i){let e,t,n;function o(s){i[168](s)}let r={isMobile:!1,showDuration:i[15],position:i[5]?i[33]:i[34],duration:i[5]?i[35]:i[36]};return i[10].time!==void 0&&(r.ref=i[10].time),e=new ol({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&32768&&(l.showDuration=s[15]),a[0]&32|a[1]&12&&(l.position=s[5]?s[33]:s[34]),a[0]&32|a[1]&48&&(l.duration=s[5]?s[35]:s[36]),!t&&a[0]&1024&&(t=!0,l.ref=s[10].time,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Ym(i){let e,t;return e=new dl({props:{position:i[34],duration:i[36],timeCodes:i[50]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&8&&(r.position=n[34]),o[1]&32&&(r.duration=n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function E3(i){let e,t,n=i[8]&&Ym(i);return{c(){n&&n.c(),e=Je()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,r){o[8]?n?(n.p(o,r),r[0]&256&&d(n,1)):(n=Ym(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),p(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function A3(i){let e,t,n;function o(s){i[172](s,i[203])}let r={id:i[203].id,testId:i[203].testId,icon:i[203].icon,ariaLabel:i[203].ariaLabel,tooltipText:i[203].tooltipText,disabledTooltipContent:i[203].disabledTooltipContent,disabled:!!i[203].disabled,onClick:i[203].onClick};return i[10][i[203].id]!==void 0&&(r.ref=i[10][i[203].id]),e=new Um({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&4096&&(l.id=i[203].id),a[0]&4096&&(l.testId=i[203].testId),a[0]&4096&&(l.icon=i[203].icon),a[0]&4096&&(l.ariaLabel=i[203].ariaLabel),a[0]&4096&&(l.tooltipText=i[203].tooltipText),a[0]&4096&&(l.disabledTooltipContent=i[203].disabledTooltipContent),a[0]&4096&&(l.disabled=!!i[203].disabled),a[0]&4096&&(l.onClick=i[203].onClick),!t&&a[0]&5120&&(t=!0,l.ref=i[10][i[203].id],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function M3(i){let e,t,n;function o(s){i[171](s,i[203])}let r={buttonComponent:i[203].buttonComponent,buttonComponentProps:i[203].buttonComponentProps,tooltipText:i[203].tooltipText,disabledTooltipContent:i[203].disabledTooltipContent,disabled:i[203].disabled,className:i[203].className};return i[10][i[203].id]!==void 0&&(r.ref=i[10][i[203].id]),e=new Ku({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&4096&&(l.buttonComponent=i[203].buttonComponent),a[0]&4096&&(l.buttonComponentProps=i[203].buttonComponentProps),a[0]&4096&&(l.tooltipText=i[203].tooltipText),a[0]&4096&&(l.disabledTooltipContent=i[203].disabledTooltipContent),a[0]&4096&&(l.disabled=i[203].disabled),a[0]&4096&&(l.className=i[203].className),!t&&a[0]&5120&&(t=!0,l.ref=i[10][i[203].id],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Qm(i){let e,t,n,o,r,s=[M3,A3],a=[];function l(u,c){return c[0]&4096&&(e=null),e==null&&(e=!!zm(u[203])),e?0:1}return t=l(i,[-1,-1,-1,-1,-1,-1,-1]),n=a[t]=s[t](i),{c(){n.c(),o=Je()},m(u,c){a[t].m(u,c),w(u,o,c),r=!0},p(u,c){let m=t;t=l(u,c),t===m?a[t].p(u,c):(ae(),p(a[m],1,1,()=>{a[m]=null}),ue(),n=a[t],n?n.p(u,c):(n=a[t]=s[t](u),n.c()),d(n,1),n.m(o.parentNode,o))},i(u){r||(d(n),r=!0)},o(u){p(n),r=!1},d(u){u&&y(o),a[t].d(u)}}}function L3(i){let e,t,n;function o(s){i[175](s)}let r={};return i[10].interactiveTimeIndicator!==void 0&&(r.ref=i[10].interactiveTimeIndicator),e=new Cl({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&1024&&(t=!0,l.ref=s[10].interactiveTimeIndicator,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function V3(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,T,k,H,S;function v(z){i[166](z)}let E={isHidden:!i[14],isAds:i[5],canRewindLive:i[6],isRewindableLive:i[13]};i[10].timeline!==void 0&&(E.ref=i[10].timeline),t=new fl({props:E}),ge.push(()=>ze(t,"ref",v));let q=wt(i[11]),U=[];for(let z=0;z<q.length;z+=1)U[z]=jm(xm(i,q,z));let F=z=>p(U[z],1,1,()=>{U[z]=null}),ie=i[7]&&Gm(i);function fe(z){i[169](z)}let G={className:"w-max",disabled:!i[8],tooltipContent:j("tooltip_episodes"),$$slots:{default:[E3]},$$scope:{ctx:i}};i[10].episodes!==void 0&&(G.ref=i[10].episodes),u=new en({props:G}),ge.push(()=>ze(u,"ref",fe));let J=wt(i[12]),Q=[];for(let z=0;z<J.length;z+=1)Q[z]=Qm(Km(i,J,z));let W=z=>p(Q[z],1,1,()=>{Q[z]=null}),ce=i[67]&&L3(i);return{c(){e=I("div"),B(t.$$.fragment),o=Y(),r=I("div"),s=I("div");for(let z=0;z<U.length;z+=1)U[z].c();a=Y(),ie&&ie.c(),l=Y(),B(u.$$.fragment),h=Y(),C=I("div");for(let z=0;z<Q.length;z+=1)Q[z].c();g=Y(),ce&&ce.c(),T=Je(),f(s,"class","controls-left svelte-ips4nw"),f(C,"class","controls-right svelte-ips4nw"),f(r,"class","controls svelte-ips4nw"),f(e,"class","wrapper-bottom svelte-ips4nw"),K(e,"hidden",i[2]),K(e,"controls-hidden",!i[4]),K(e,"no-smooth",i[3])},m(z,x){w(z,e,x),L(t,e,null),_(e,o),_(e,r),_(r,s);for(let P=0;P<U.length;P+=1)U[P]&&U[P].m(s,null);_(s,a),ie&&ie.m(s,null),_(s,l),L(u,s,null),_(r,h),_(r,C);for(let P=0;P<Q.length;P+=1)Q[P]&&Q[P].m(C,null);i[173](r),i[174](e),w(z,g,x),ce&&ce.m(z,x),w(z,T,x),k=!0,H||(S=[br(m=Rr.call(null,s)),ke(s,"fd:resize",i[170])],H=!0)},p(z,x){let P={};if(x[0]&16384&&(P.isHidden=!z[14]),x[0]&32&&(P.isAds=z[5]),x[0]&64&&(P.canRewindLive=z[6]),x[0]&8192&&(P.isRewindableLive=z[13]),!n&&x[0]&1024&&(n=!0,P.ref=z[10].timeline,Ue(()=>n=!1)),t.$set(P),x[0]&3072){q=wt(z[11]);let le;for(le=0;le<q.length;le+=1){let Me=xm(z,q,le);U[le]?(U[le].p(Me,x),d(U[le],1)):(U[le]=jm(Me),U[le].c(),d(U[le],1),U[le].m(s,a))}for(ae(),le=q.length;le<U.length;le+=1)F(le);ue()}z[7]?ie?(ie.p(z,x),x[0]&128&&d(ie,1)):(ie=Gm(z),ie.c(),d(ie,1),ie.m(s,l)):ie&&(ae(),p(ie,1,1,()=>{ie=null}),ue());let $={};if(x[0]&256&&($.disabled=!z[8]),x[0]&256|x[1]&40|x[6]&4194304&&($.$$scope={dirty:x,ctx:z}),!c&&x[0]&1024&&(c=!0,$.ref=z[10].episodes,Ue(()=>c=!1)),u.$set($),x[0]&5120){J=wt(z[12]);let le;for(le=0;le<J.length;le+=1){let Me=Km(z,J,le);Q[le]?(Q[le].p(Me,x),d(Q[le],1)):(Q[le]=Qm(Me),Q[le].c(),d(Q[le],1),Q[le].m(C,null))}for(ae(),le=J.length;le<Q.length;le+=1)W(le);ue()}(!k||x[0]&4)&&K(e,"hidden",z[2]),(!k||x[0]&16)&&K(e,"controls-hidden",!z[4]),(!k||x[0]&8)&&K(e,"no-smooth",z[3]),z[67]&&ce.p(z,x)},i(z){if(!k){d(t.$$.fragment,z);for(let x=0;x<q.length;x+=1)d(U[x]);d(ie),d(u.$$.fragment,z);for(let x=0;x<J.length;x+=1)d(Q[x]);d(ce),k=!0}},o(z){p(t.$$.fragment,z),U=U.filter(Boolean);for(let x=0;x<U.length;x+=1)p(U[x]);p(ie),p(u.$$.fragment,z),Q=Q.filter(Boolean);for(let x=0;x<Q.length;x+=1)p(Q[x]);p(ce),k=!1},d(z){z&&(y(e),y(g),y(T)),V(t),mi(U,z),ie&&ie.d(),V(u),mi(Q,z),i[173](null),i[174](null),ce&&ce.d(z),H=!1,ct(S)}}}function R3(i,e,t){var mt,Mt;let n,o,r,s,a,l,u,c,m,h,C,g,T,k,H,S,v,E,q,U,F,ie,fe,G,J,Q,W,ce,z,x,P,$,le,Me,te,be,Ee,Te,Ie,rt,Ae=me,We=()=>(Ae(),Ae=$t(G,X=>t(137,rt=X)),G),ee,pe=me,Ce=()=>(pe(),pe=$t(fe,X=>t(138,ee=X)),fe),xe,st=me,at=()=>(st(),st=$t(ie,X=>t(139,xe=X)),ie),nt,$e=me,de=()=>($e(),$e=$t(F,X=>t(140,nt=X)),F),Se,et=me,De=()=>(et(),et=$t(U,X=>t(141,Se=X)),U),tt,Fe=me,ft=()=>(Fe(),Fe=$t(q,X=>t(142,tt=X)),q),dt,he=me,_t=()=>(he(),he=$t(E,X=>t(143,dt=X)),E),kt,Ct=me,Ze=()=>(Ct(),Ct=$t(v,X=>t(144,kt=X)),v),Pt,qt=me,Zt=()=>(qt(),qt=$t(S,X=>t(145,Pt=X)),S),Ut,zt=me,Xt=()=>(zt(),zt=$t(H,X=>t(146,Ut=X)),H),Wt,Ke=me,Xe=()=>(Ke(),Ke=$t(k,X=>t(147,Wt=X)),k),Tt,_e=me,Jt=()=>(_e(),_e=$t(T,X=>t(148,Tt=X)),T),Et,ii=me,Rt=()=>(ii(),ii=$t(g,X=>t(149,Et=X)),g),jt,oi=me,Bt=()=>(oi(),oi=$t(C,X=>t(150,jt=X)),C),si,li=me,ai=()=>(li(),li=$t(h,X=>t(151,si=X)),h),Ci,Nt=me,pi=()=>(Nt(),Nt=$t(m,X=>t(152,Ci=X)),m),yi,Si=me,nn=()=>(Si(),Si=$t(c,X=>t(153,yi=X)),c),Ti,Pe,it,Ot,Ii,_i,mn,hi,Wi,Ki,Ft,Pi,ui,Kt,In,wi,pn;i.$$.on_destroy.push(()=>Ae()),i.$$.on_destroy.push(()=>pe()),i.$$.on_destroy.push(()=>st()),i.$$.on_destroy.push(()=>$e()),i.$$.on_destroy.push(()=>et()),i.$$.on_destroy.push(()=>Fe()),i.$$.on_destroy.push(()=>he()),i.$$.on_destroy.push(()=>Ct()),i.$$.on_destroy.push(()=>qt()),i.$$.on_destroy.push(()=>zt()),i.$$.on_destroy.push(()=>Ke()),i.$$.on_destroy.push(()=>_e()),i.$$.on_destroy.push(()=>ii()),i.$$.on_destroy.push(()=>oi()),i.$$.on_destroy.push(()=>li()),i.$$.on_destroy.push(()=>Nt()),i.$$.on_destroy.push(()=>Si());let{bottomHidden:Pn}=e,{bottomNoSmooth:on}=e,{showControls:_n}=e,{playerControlsWrapperRef:Ei=void 0}=e,{playerControlsRef:rn=void 0}=e,{isAds:Gt=!1}=e,{canRewindLive:qn}=e,{logoClickable:xi}=e,{logoHidden:ji}=e,{logoTargetUrl:Gi=""}=e,{showNextPrevButtons:ki}=e,{nextButtonActive:Ri}=e,{prevButtonActive:sn}=e,{isOneVideoPlaylist:ln=!1}=e,{customFullscreenSupported:Ai=!0}=e,{playNextVideo:Mi}=e,{playPrevVideo:ci}=e,{repeatPlaylist:Yt}=e,{toggleFullscreen:Ht}=e,{seekToInteractive:Bi}=e,{playPrevChapter:Ni}=e,{fakeIsPlaying$:an}=On();O(i,an,X=>t(130,$=X));let ut=ot(),Di=On(),fi=Vt(),Oi=ut.actions.internal.toggleMuted,Fi=ut.actions.internal.togglePlay,Ge=ut.actions.internal.pause,Un=ut.actions.internal.toggleSubtitle,un=(mt=ut.callbacks)==null?void 0:mt.onAudioDoesNotExistHint,En=(Mt=ut.callbacks)==null?void 0:Mt.onAudioDisabledHint,hn=ut.state.duration$;O(i,hn,X=>t(36,pn=X));let Yi=ut.state.positionWithScrubbing$;O(i,Yi,X=>t(34,In=X));let Qi=ut.state.playbackState$;O(i,Qi,X=>t(127,z=X));let Zi=ut.state.isAudioAvailable$;O(i,Zi,X=>t(176,le=X));let gn=ut.state.isAudioDisabled,gi=ut.state.isEnded$;O(i,gi,X=>t(162,Ki=X));let An=ut.state.isLive$;O(i,An,X=>t(156,Ot=X));let Mn=ut.state.isActiveLive$;O(i,Mn,X=>t(155,Pe=X));let Ln=ut.state.isRewindableLive$;O(i,Ln,X=>t(13,it=X));let bn=ut.ui.isPictureInPictureActive$;O(i,bn,X=>t(158,_i=X));let vn=ut.ui.pictureInPictureType$;O(i,vn,X=>t(157,Ii=X));let Vn=ut.ui.settingsMenuVisible;O(i,Vn,X=>t(126,ce=X));let yn=ut.ui.settingsMenuOpenedByKeyboard;O(i,yn,X=>t(132,te=X));let zn=ut.ui.controls,Hi=ut.actions.internal.getVideoEpisodes(),cn=ut.state.chromecastState$;O(i,cn,X=>t(124,Q=X));let ni=ut.state.availableSubtitlesList$;O(i,ni,X=>t(161,Wi=X));let ro=ut.state.currentSubtitle$;O(i,ro,X=>t(163,Ft=X));let so=zn.disabledControls$;O(i,so,X=>t(165,ui=X));let Wn=ut.ui.contextMenu.visible$;O(i,Wn,X=>t(154,Ti=X));let di=ut.ui.contextMenu.showContextMenuBtn$;O(i,di,X=>t(159,mn=X));let fn=ut.ui.contextMenu.openedByBtnKeyboard$;O(i,fn,X=>t(160,hi=X));let Zn=ut.ui.startedByKeyboard$;O(i,Zn,X=>t(131,Me=X));let Kn=ut.ads.duration;O(i,Kn,X=>t(35,wi=X));let lo=ut.ads.position;O(i,lo,X=>t(33,Kt=X));let Xn=ut.ads.playbackState;O(i,Xn,X=>t(164,Pi=X));let Jn=ut.ui.isFullscreen;O(i,Jn,X=>t(125,W=X));let wn=ut.ui.playerSize;O(i,wn,X=>t(135,Te=X));let xn=ut.ui.currentGridType$;O(i,xn,X=>t(136,Ie=X));let kn=ut.ui.additionalDesktopControlPanelRightButtons$;O(i,kn,X=>t(123,J=X));let ao=ut.actions.internal.getVideoElement,oe=ut.actions.internal.replayInteractive,vt=ut.state.isInteractive,Xi=ut.state.isInteractiveTime$;O(i,Xi,X=>t(134,Ee=X));let qi=ut.state.showInteractiveGraph,ne=ut.state.showSeekToInteractive,Ui=ut.state.showPlayPrevChapter,zo=ut.state.showInteractiveTimeIndicator,Io=ut.state.playPrevChapterDisabledTooltip,Po=Di.seekToInteractiveDisabledTooltip$;O(i,Po,X=>t(129,P=X));let _o=Di.graphIsOpened$;O(i,_o,X=>t(128,x=X));let ho=fi.features.interactiveResponsiveUi,pr=()=>ut.actions.internal.toggleChromecast(),Ji,go,$n,dn,Eo,Wo,Ko,xo,jo,Go,Yo,Rn,Qo,Zo,Xo,Z,At,$i,zi,uo,Cn,co,Jo,bo="",_r=(X,gt)=>{if(!X){t(105,bo=j("tooltip_live"));return}gt===cc.PAUSED&&t(105,bo=j("tooltip_play"))},Wr,Kr,xr,jr,hr,Qt={},Bn,Ao,$o,Gr,Zl=I3(wl,260),_s,Yr=Oe();O(i,Yr,X=>t(133,be=X));let Xl;function Jl(){Do({isAudioDisabled:gn,audioDisabledHintCallback:En,isAudioAvailable:le,audioIsNotExistHintCallback:un})&&Oi()}let $l=vt?oe:ln?Fi:Yt,Mo,Qr,gr,Sn=[],Nn=[];function St(X){i.$$.not_equal(Qt.timeline,X)&&(Qt.timeline=X,t(10,Qt))}function hs(X,gt){i.$$.not_equal(Qt[gt.id],X)&&(Qt[gt.id]=X,t(10,Qt))}function gs(X){i.$$.not_equal(Qt.time,X)&&(Qt.time=X,t(10,Qt))}function bs(X){i.$$.not_equal(Qt.episodes,X)&&(Qt.episodes=X,t(10,Qt))}let vs=X=>{t(9,hr=X.target.clientWidth)};function b(X,gt){i.$$.not_equal(Qt[gt.id],X)&&(Qt[gt.id]=X,t(10,Qt))}function A(X,gt){i.$$.not_equal(Qt[gt.id],X)&&(Qt[gt.id]=X,t(10,Qt))}function re(X){ge[X?"unshift":"push"](()=>{rn=X,t(1,rn)})}function Le(X){ge[X?"unshift":"push"](()=>{Ei=X,t(0,Ei)})}function lt(X){i.$$.not_equal(Qt.interactiveTimeIndicator,X)&&(Qt.interactiveTimeIndicator=X,t(10,Qt))}return i.$$set=X=>{"bottomHidden"in X&&t(2,Pn=X.bottomHidden),"bottomNoSmooth"in X&&t(3,on=X.bottomNoSmooth),"showControls"in X&&t(4,_n=X.showControls),"playerControlsWrapperRef"in X&&t(0,Ei=X.playerControlsWrapperRef),"playerControlsRef"in X&&t(1,rn=X.playerControlsRef),"isAds"in X&&t(5,Gt=X.isAds),"canRewindLive"in X&&t(6,qn=X.canRewindLive),"logoClickable"in X&&t(71,xi=X.logoClickable),"logoHidden"in X&&t(72,ji=X.logoHidden),"logoTargetUrl"in X&&t(73,Gi=X.logoTargetUrl),"showNextPrevButtons"in X&&t(74,ki=X.showNextPrevButtons),"nextButtonActive"in X&&t(75,Ri=X.nextButtonActive),"prevButtonActive"in X&&t(76,sn=X.prevButtonActive),"isOneVideoPlaylist"in X&&t(77,ln=X.isOneVideoPlaylist),"customFullscreenSupported"in X&&t(78,Ai=X.customFullscreenSupported),"playNextVideo"in X&&t(79,Mi=X.playNextVideo),"playPrevVideo"in X&&t(80,ci=X.playPrevVideo),"repeatPlaylist"in X&&t(81,Yt=X.repeatPlaylist),"toggleFullscreen"in X&&t(82,Ht=X.toggleFullscreen),"seekToInteractive"in X&&t(83,Bi=X.seekToInteractive),"playPrevChapter"in X&&t(84,Ni=X.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&1024&&t(121,n=ui.has("EPISODE_BUTTON")),i.$$.dirty[5]&1024&&t(116,o=ui.has("GRAPH_BUTTON")),i.$$.dirty[5]&1024&&t(117,r=ui.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[5]&1024&&t(119,s=ui.has("PLAY_BUTTON")),i.$$.dirty[5]&1024&&t(120,a=ui.has("REPLAY_BUTTON")),i.$$.dirty[5]&1024&&t(118,l=ui.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[0]&32|i.$$.dirty[4]&8|i.$$.dirty[5]&512&&t(85,Ji=Gt?Pi==="playing":z===cc.PLAYING),i.$$.dirty[5]&256&&t(86,go=Ft.value!=="off"),i.$$.dirty[0]&32|i.$$.dirty[5]&128&&t(122,u=Ki&&!Gt||vt),i.$$.dirty[3]&536870912|i.$$.dirty[4]&4096&&t(87,$n=ho?u&&vi(Ie,"m"):u),i.$$.dirty[0]&32|i.$$.dirty[5]&128&&t(88,dn=!Ki||vt||Gt),i.$$.dirty[4]&4096&&t(89,Eo=vi(Ie,"m")),i.$$.dirty[0]&32|i.$$.dirty[2]&12288|i.$$.dirty[4]&4096&&t(90,Wo=ki&&vi(Ie,"m")&&!Gt&&Ri),i.$$.dirty[0]&32|i.$$.dirty[2]&20480|i.$$.dirty[4]&4096&&t(91,Ko=ki&&vi(Ie,"m")&&!Gt&&sn),i.$$.dirty[0]&32|i.$$.dirty[5]&2&&t(92,xo=!Gt&&!!Ot),i.$$.dirty[4]&4097|i.$$.dirty[5]&12&&t(93,jo=Q!==Wm.NOT_AVAILABLE&&!(_i&&Ii===1)&&vi(Ie,"m")&&!vt),i.$$.dirty[4]&4096|i.$$.dirty[5]&64&&t(94,Go=Wi.length>0&&vi(Ie,"m")),i.$$.dirty[5]&48&&t(95,Yo=hi||mn),i.$$.dirty[0]&32|i.$$.dirty[4]&4096&&t(96,Rn=vi(Ie,"s")&&!Gt),i.$$.dirty[0]&32|i.$$.dirty[2]&1024&&t(97,Qo=!ji&&!Gt),i.$$.dirty[2]&66560|i.$$.dirty[4]&4096|i.$$.dirty[5]&12&&t(98,Zo=fi.features.fullscreen&&(ji||vi(Ie,ho?"xs":"s"))&&!(_i&&Ii===1)&&(vt?Ai:!0)),i.$$.dirty[0]&32|i.$$.dirty[5]&2&&t(7,Xo=(!Ot||Gt)&&!(fi.features.interactiveHideTime&&vt)),i.$$.dirty[4]&2048&&t(14,Z=Te.width>100),i.$$.dirty[4]&4096&&t(99,At=qi&&vi(Ie,"m")),i.$$.dirty[4]&4096&&t(100,$i=ho?ne&&vi(Ie,"s"):ne),i.$$.dirty[4]&4096&&t(101,zi=ho?Ui&&vi(Ie,"s"):Ui),i.$$.dirty[0]&32|i.$$.dirty[2]&134217728|i.$$.dirty[3]&268435456|i.$$.dirty[5]&2&&t(8,uo=!Gt&&!Ot&&!!(Hi!=null&&Hi.length)&&Eo&&!n),i.$$.dirty[0]&8192|i.$$.dirty[5]&1&&t(102,Cn=!it||Pe),i.$$.dirty[4]&16&&t(103,co=x?j("tooltip_interactive_graph_on"):j("tooltip_interactive_graph_off")),i.$$.dirty[4]&1073741824&&t(104,Jo=Ti?j("aria_label_context_menu_close"):j("aria_label_context_menu_open")),i.$$.dirty[3]&512|i.$$.dirty[4]&8&&_r(Cn,z),i.$$.dirty[2]&16777216&&t(107,Kr=go?j("tooltip_subtitles_on"):j("tooltip_subtitles_off")),i.$$.dirty[4]&2&&t(108,xr=W?j("tooltip_fullscreen_on"):j("tooltip_fullscreen_off")),i.$$.dirty[4]&1&&t(109,jr=Q===Wm.CONNECTED?j("tooltip_chromecast_on"):j("tooltip_chromecast_off")),i.$$.dirty[3]&1073741824|i.$$.dirty[4]&1073733632&&t(110,Bn={prevButton:yi?yi.right-yi.left:0,replayButton:Ci?Ci.right-Ci.left:0,playButton:si?si.right-si.left:0,nextButton:jt?jt.right-jt.left:0,playPrevChapterButton:Et?Et.right-Et.left:0,seekToInteractiveButton:Tt?Tt.right-Tt.left:0,interactiveGraphButton:Wt?Wt.right-Wt.left:0,liveButton:Ut?Ut.right-Ut.left:0,time:Pt?Pt.right-Pt.left:0,episodes:kt?kt.right-kt.left:0,vkLogo:dt?dt.right-dt.left:0,volume:tt?tt.right-tt.left:0,subtitles:Se?Se.right-Se.left:0,settings:nt?nt.right-nt.left:0,context:xe?xe.right-xe.left:0,fullscreen:ee?ee.right-ee.left:0,chromecast:rt?rt.right-rt.left:0,additionalButtons:J.length?J.reduce(X=>[...X,40],[]):[]}),i.$$.dirty[3]&393216&&(!Ao||Ao<Bn.time)&&t(111,Ao=Bn.time),i.$$.dirty[0]&896|i.$$.dirty[3]&393216|i.$$.dirty[4]&4096){let X=0;uo&&(vi(Ie,"xl")?X=Bn.time:X=60);let gt=Bn.prevButton+Bn.playButton+Bn.nextButton+Bn.seekToInteractiveButton+Bn.interactiveGraphButton+Bn.liveButton+Ao+X;t(112,$o=Xo&&hr>=gt)}i.$$.dirty[3]&524288|i.$$.dirty[4]&4096&&t(15,Gr=$o&&vi(Ie,"m")),i.$$.dirty[0]&1040|i.$$.dirty[4]&3072&&Zl(ao(),zn,Qt,_n),i.$$.dirty[4]&516&&be&&Ar(be,ce,yn),i.$$.dirty[4]&260&&po(_s,ce,te),i.$$.dirty[4]&128&&kl(Zn,Me,Xl),i.$$.dirty[4]&64&&t(113,Mo=$!==null),i.$$.dirty[2]&8388608|i.$$.dirty[3]&1048576|i.$$.dirty[4]&64&&t(114,Qr=Mo?$:Ji),i.$$.dirty[3]&2097152&&t(115,gr=Qr?j("tooltip_pause"):j("tooltip_play")),i.$$.dirty[0]&2048|i.$$.dirty[2]&1994809344|i.$$.dirty[3]&264247232|i.$$.dirty[4]&56&&(t(11,Sn=[]),Ko&&Sn.push({id:"prevButton",type:"desktop-control-panel-left",weight:To.prevButton,buttonComponent:Fr,buttonComponentProps:{disabled:!sn,type:"prev",click:ci},tooltipText:j("tooltip_previous"),disabled:!sn}),$n&&Sn.push({id:"replayButton",type:"desktop-control-panel-left",weight:To.replayButton,buttonComponent:ss,buttonComponentProps:{disabled:a,click:$l},tooltipText:j("tooltip_restart"),disabled:a}),dn&&Sn.push({id:"playButton",type:"desktop-control-panel-left",weight:To.playButton,buttonComponent:ls,buttonComponentProps:{disabled:s,isPlaying:Ji,click:Fi},tooltipText:gr,disabled:s}),Wo&&Sn.push({id:"nextButton",type:"desktop-control-panel-left",weight:To.nextButton,buttonComponent:Fr,buttonComponentProps:{disabled:!Ri,type:"next",click:Mi},tooltipText:j("tooltip_next"),disabled:!Ri}),vt&&(zi&&Sn.push({id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:To.playPrevChapterButton,buttonComponent:Tl,buttonComponentProps:{disabled:l,click:Ni},tooltipText:j("tooltip_interactive_go_back"),disabledTooltipContent:Io,disabled:l}),$i&&Sn.push({id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:To.seekToInteractiveButton,buttonComponent:Il,buttonComponentProps:{disabled:r,click:Bi},tooltipText:j("tooltip_interactive_seek"),disabled:r,disabledTooltipContent:j(P)}),At&&Sn.push({id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:To.interactiveGraphButton,buttonComponent:Pl,buttonComponentProps:{disabled:o,click:_o.toggle,graphIsOpened:x},tooltipText:co})),xo&&Sn.push({id:"liveButton",type:"desktop-control-panel-left",weight:To.liveButton,buttonComponent:El,buttonComponentProps:{isLiveActive:Cn,ariaLabel:bo},tooltipText:bo,disabled:Cn&&z===cc.PLAYING}),t(11,Sn=Sn.sort(cr))),i.$$.dirty[0]&4096|i.$$.dirty[2]&17828352|i.$$.dirty[3]&1073866815|i.$$.dirty[4]&7&&(t(12,Nn=[]),Qo&&Nn.push({id:"vkLogo",type:"desktop-control-panel-right",weight:Uo.vkLogo,buttonComponent:ll,buttonComponentProps:{targetUrl:Gi,logoClickable:xi,click:Ge},tooltipText:Wr,disabledTooltipContent:"",disabled:!xi}),Nn.push({id:"volume",type:"desktop-control-panel-right",weight:Uo.volume,buttonComponent:lm,buttonComponentProps:{click:Jl}}),Go&&Nn.push({id:"subtitles",type:"desktop-control-panel-right",weight:Uo.subtitles,buttonComponent:j1,buttonComponentProps:{isSubtitlesEnabled:go,click:Un},tooltipText:Kr}),Rn&&Nn.push({id:"settings",type:"desktop-control-panel-right",weight:Uo.settings,buttonComponent:ns,buttonComponentProps:{ref$:Yr},tooltipText:ce?void 0:j("tooltip_settings_off")}),fi.features.contextMenuButton&&Nn.push({id:"context",type:"desktop-control-panel-right",weight:Uo.context,buttonComponent:Mm,buttonComponentProps:{click:Ht},className:Yo?"":"out-of-view",tooltipText:Jo}),Zo&&Nn.push({id:"fullscreen",type:"desktop-control-panel-right",weight:Uo.fullscreen,buttonComponent:sl,buttonComponentProps:{isFullscreen:W,click:Ht},tooltipText:xr}),jo&&Nn.push({id:"chromecast",type:"desktop-control-panel-right",weight:Uo.chromecast,buttonComponent:al,buttonComponentProps:{state:Q,click:pr},tooltipText:jr}),t(12,Nn=[...Nn,...J].sort(cr)))},t(106,Wr=fi.logoType==="vk_video"?j("tooltip_vk_video_logo"):j("tooltip_vk_logo")),nn(t(32,{prevButton:c,replayButton:m,playButton:h,nextButton:C,playPrevChapterButton:g,seekToInteractiveButton:T,interactiveGraphButton:k,liveButton:H,time:S,episodes:v,vkLogo:E,volume:q,subtitles:U,settings:F,context:ie,fullscreen:fe,chromecast:G}=zn,c,pi(t(31,m)),ai(t(30,h)),Bt(t(29,C)),Rt(t(28,g)),Jt(t(27,T)),Xe(t(26,k)),Xt(t(25,H)),Zt(t(24,S)),Ze(t(23,v)),_t(t(22,E)),ft(t(21,q)),De(t(20,U)),de(t(19,F)),at(t(18,ie)),Ce(t(17,fe)),We(t(16,G)))),[Ei,rn,Pn,on,_n,Gt,qn,Xo,uo,hr,Qt,Sn,Nn,it,Z,Gr,G,fe,ie,F,U,q,E,v,S,H,k,T,g,C,h,m,c,Kt,In,wi,pn,an,hn,Yi,Qi,Zi,gi,An,Mn,Ln,bn,vn,Vn,yn,Hi,cn,ni,ro,so,Wn,di,fn,Zn,Kn,lo,Xn,Jn,wn,xn,kn,Xi,zo,Po,_o,Yr,xi,ji,Gi,ki,Ri,sn,ln,Ai,Mi,ci,Yt,Ht,Bi,Ni,Ji,go,$n,dn,Eo,Wo,Ko,xo,jo,Go,Yo,Rn,Qo,Zo,At,$i,zi,Cn,co,Jo,bo,Wr,Kr,xr,jr,Bn,Ao,$o,Mo,Qr,gr,o,r,l,s,a,n,u,J,Q,W,ce,z,x,P,$,Me,te,be,Ee,Te,Ie,rt,ee,xe,nt,Se,tt,dt,kt,Pt,Ut,Wt,Tt,Et,jt,si,Ci,yi,Ti,Pe,Ot,Ii,_i,mn,hi,Wi,Ki,Ft,Pi,ui,St,hs,gs,bs,vs,b,A,re,Le,lt]}var fc=class extends N{constructor(e){super(),D(this,e,R3,V3,R,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:71,logoHidden:72,logoTargetUrl:73,showNextPrevButtons:74,nextButtonActive:75,prevButtonActive:76,isOneVideoPlaylist:77,customFullscreenSupported:78,playNextVideo:79,playPrevVideo:80,repeatPlaylist:81,toggleFullscreen:82,seekToInteractive:83,playPrevChapter:84},P3,[-1,-1,-1,-1,-1,-1,-1])}},Zm=fc;import{ChromecastState as rp,PlaybackState as sp}from"@vkontakte/videoplayer-core";import{noop as Xm}from"@vkontakte/videoplayer-shared";function B3(i){ve(i,"svelte-1aqpg2x",".icon.svelte-1aqpg2x{width:24px !important;height:24px !important;;}.inner.svelte-1aqpg2x{width:16px;height:16px;background-color:var(--white)}")}function N3(i){let e,t,n,o;return{c(){e=I("img"),f(e,"class","icon svelte-1aqpg2x"),vo(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){w(r,e,s),n||(o=ke(e,"error",i[7]),n=!0)},p(r,s){s&1&&!vo(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&y(e),n=!1,o()}}}function D3(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner svelte-1aqpg2x"></div>',f(e,"class","icon icon-error-stub svelte-1aqpg2x")},m(t,n){w(t,e,n)},p:me,d(t){t&&y(e)}}}function O3(i){let e;function t(r,s){return r[5]?D3:N3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Je()},m(r,s){o.m(r,s),w(r,e,s)},p(r,s){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&y(e),o.d(r)}}}function F3(i){let e,t;return e=new ht({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[O3]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&16&&(r.className=n[4]?"btn-full-opacity":""),o&2&&(r.ariaLabel=n[1]),o&8&&(r.click=n[3]),o&64&&(r.disabled=n[6]),o&4&&(r.testId=n[2]),o&545&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function H3(i,e,t){let n,o,r,{iconUrl:s}=e,{ariaLabel:a}=e,{disabled:l=!1}=e,{testId:u}=e,{onClick:c=Xm}=e,m=()=>{t(5,r=!0)};return i.$$set=h=>{"iconUrl"in h&&t(0,s=h.iconUrl),"ariaLabel"in h&&t(1,a=h.ariaLabel),"disabled"in h&&t(8,l=h.disabled),"testId"in h&&t(2,u=h.testId),"onClick"in h&&t(3,c=h.onClick)},i.$$.update=()=>{i.$$.dirty&8&&t(4,n=c===Xm),i.$$.dirty&272&&t(6,o=n||l)},t(5,r=!1),[s,a,u,c,n,r,o,m,l]}var mc=class extends N{constructor(e){super(),D(this,e,H3,F3,R,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},B3)}},Jm=mc;function q3(i){let e,t,n,o,r,s=i[2].default,a=Ve(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("g"),n=M("path"),o=M("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"d","M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),we(e,u)},m(c,m){w(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Be(a,s,c,c[1],r?Re(s,c[1],m,null):Ne(c[1]),null),we(e,u=qe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&y(e),a&&a.d(c)}}}function U3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var pc=class extends N{constructor(e){super(),D(this,e,U3,q3,R,{})}},$m=pc;import{noop as z3}from"@vkontakte/videoplayer-shared";function W3(i){ve(i,"svelte-6gmlbk",".container.svelte-6gmlbk{display:flex;align-items:center}.expanded.svelte-6gmlbk{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.text.svelte-6gmlbk{font-size:15px;margin-left:8px}")}function ep(i){let e;return{c(){e=I("span"),e.textContent=`${j("mobile_unmute")}`,f(e,"class","text svelte-6gmlbk")},m(t,n){w(t,e,n)},d(t){t&&y(e)}}}function K3(i){let e,t,n,o;var r=i[4];function s(l,u){return{}}r&&(t=Dt(r,s(i)));let a=i[1]&&ep(i);return{c(){e=I("div"),t&&B(t.$$.fragment),n=Y(),a&&a.c(),f(e,"class","container svelte-6gmlbk"),f(e,"aria-hidden","true"),K(e,"expanded",i[1])},m(l,u){w(l,e,u),t&&L(t,e,null),_(e,n),a&&a.m(e,null),o=!0},p(l,u){if(u&16&&r!==(r=l[4])){if(t){ae();let c=t;p(c.$$.fragment,1,0,()=>{V(c,1)}),ue()}r?(t=Dt(r,s(l,u)),B(t.$$.fragment),d(t.$$.fragment,1),L(t,e,n)):t=null}l[1]?a||(a=ep(l),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&K(e,"expanded",l[1])},i(l){o||(t&&d(t.$$.fragment,l),o=!0)},o(l){t&&p(t.$$.fragment,l),o=!1},d(l){l&&y(e),t&&V(t),a&&a.d()}}}function x3(i){let e,t,n;function o(s){i[6](s)}let r={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[K3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.testId=s[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(l.click=s[2]),a&8&&(l.ariaLabel=s[3]),a&146&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function j3(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=z3}=e,{ref:s=void 0}=e,a,l;function u(c){s=c,t(0,s)}return i.$$set=c=>{"muted"in c&&t(5,n=c.muted),"expanded"in c&&t(1,o=c.expanded),"click"in c&&t(2,r=c.click),"ref"in c&&t(0,s=c.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,a=n?j("tooltip_volume"):j("tooltip_volume_muted")),i.$$.dirty&2&&t(4,l=o?dr:$m)},[s,o,r,a,l,n,u]}var _c=class extends N{constructor(e){super(),D(this,e,j3,x3,R,{muted:5,expanded:1,click:2,ref:0},W3)}},hc=_c;function G3(i){let e,t,n,o,r,s=i[2].default,a=Ve(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("path"),n=M("path"),o=M("path"),f(t,"fill","currentColor"),f(t,"d","M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z"),f(t,"clip-rule","evenodd"),f(n,"fill","currentColor"),f(n,"d","m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z"),f(n,"class","hidden-not-active"),f(o,"fill","currentColor"),f(o,"d","m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z"),f(o,"class","hidden-active"),we(e,u)},m(c,m){w(c,e,m),a&&a.m(e,null),_(e,t),_(e,n),_(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Be(a,s,c,c[1],r?Re(s,c[1],m,null):Ne(c[1]),null),we(e,u=qe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&y(e),a&&a.d(c)}}}function Y3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var gc=class extends N{constructor(e){super(),D(this,e,Y3,G3,R,{})}},tp=gc;function Q3(i){ve(i,"svelte-tmam00",'svg[data-testid="pip-icon--active"] .hidden-active,svg[data-testid="pip-icon"] .hidden-not-active{visibility:hidden;opacity:0}')}function Z3(i){let e,t;return e=new tp({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function X3(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=r=>{"isActive"in r&&t(0,o=r.isActive)},i.$$.update=()=>{i.$$.dirty&1&&t(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var bc=class extends N{constructor(e){super(),D(this,e,X3,Z3,R,{isActive:0},Q3)}},ip=bc;import{noop as J3}from"@vkontakte/videoplayer-shared";function $3(i){let e,t;return e=new ip({props:{isActive:i[1]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function e5(i){let e,t,n;function o(s){i[3](s)}let r={testId:"btn-pip",ariaLabel:j("menu_pip"),click:i[2],$$slots:{default:[$3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&4&&(l.click=s[2]),a&18&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function t5(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=J3}=e;function s(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"isPictureInPictureActive"in a&&t(1,o=a.isPictureInPictureActive),"click"in a&&t(2,r=a.click)},[n,o,r,s]}var vc=class extends N{constructor(e){super(),D(this,e,t5,e5,R,{ref:0,isPictureInPictureActive:1,click:2})}},np=vc;function i5(i){ve(i,"svelte-sty291",".gutter.svelte-sty291{--gutterWidth:32px;--gutterHeight:12px;--togglerWidth:18px;--togglerHeight:18px;--togglerGap:calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px}.toggler.svelte-sty291{position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease}.toggler.enabled.svelte-sty291{background-color:var(--white);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}")}function n5(i){let e,t;return e=new Hr({props:{width:"14",height:"14"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function o5(i){let e,t;return e=new qo({props:{width:"14",height:"14",fill:"#000"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function r5(i){let e,t,n,o,r,s=[o5,n5],a=[];function l(u,c){return u[1]?0:1}return n=l(i,-1),o=a[n]=s[n](i),{c(){e=I("span"),t=I("span"),o.c(),f(t,"class","toggler svelte-sty291"),K(t,"enabled",i[1]),f(e,"class","gutter svelte-sty291")},m(u,c){w(u,e,c),_(e,t),a[n].m(t,null),r=!0},p(u,c){let m=n;n=l(u,c),n!==m&&(ae(),p(a[m],1,1,()=>{a[m]=null}),ue(),o=a[n],o||(o=a[n]=s[n](u),o.c()),d(o,1),o.m(t,null)),(!r||c&2)&&K(t,"enabled",u[1])},i(u){r||(d(o),r=!0)},o(u){p(o),r=!1},d(u){u&&y(e),a[n].d()}}}function s5(i){let e,t,n;function o(s){i[4](s)}let r={click:i[3],$$slots:{default:[r5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&130&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function l5(i,e,t){let n,{ref:o=void 0}=e,r=ot(),s=r.ui.autoplayNextEnabled$;O(i,s,c=>t(1,n=c));let a=r.actions.internal.setAutoplayNextEnabled;function l(){a(!n)}function u(c){o=c,t(0,o)}return i.$$set=c=>{"ref"in c&&t(0,o=c.ref)},[o,n,s,l,u]}var yc=class extends N{constructor(e){super(),D(this,e,l5,s5,R,{ref:0},i5)}},op=yc;import{debounceFn as a5}from"@vkontakte/videoplayer-shared";function u5(i){ve(i,"svelte-s4hj64",".wrapper-bottom.svelte-s4hj64.svelte-s4hj64{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px}.wrapper-bottom.svelte-s4hj64>.svelte-s4hj64{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-s4hj64.svelte-s4hj64{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-s4hj64.svelte-s4hj64{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.svelte-s4hj64.svelte-s4hj64{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.svelte-s4hj64.svelte-s4hj64{position:absolute;top:4px;left:8px}.wrapper-middle-left.svelte-s4hj64.svelte-s4hj64,.wrapper-middle-left-second.svelte-s4hj64.svelte-s4hj64,.wrapper-middle-right.svelte-s4hj64.svelte-s4hj64{position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.wrapper-middle-left.svelte-s4hj64.svelte-s4hj64{left:12px}.wrapper-middle-left-second.svelte-s4hj64.svelte-s4hj64{left:64px}.wrapper-middle-right.svelte-s4hj64.svelte-s4hj64{right:12px}.controls.svelte-s4hj64.svelte-s4hj64{width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box}.controls.svelte-s4hj64 > *:not(:first-child){margin-left:8px}.hidden.svelte-s4hj64.svelte-s4hj64{visibility:hidden;opacity:0}.controls-hidden.svelte-s4hj64.svelte-s4hj64{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-s4hj64.svelte-s4hj64{transition:none}.overlay-mobile.svelte-s4hj64.svelte-s4hj64{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration)}@media screen and (orientation: portrait){.wrapper-top-right.fullscreen.svelte-s4hj64.svelte-s4hj64{top:16px}.wrapper-top-left.fullscreen.svelte-s4hj64.svelte-s4hj64{top:16px}.controls-wrapper.fullscreen.svelte-s4hj64.svelte-s4hj64{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-s4hj64.svelte-s4hj64{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-s4hj64.svelte-s4hj64{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-s4hj64.svelte-s4hj64{left:44px}.wrapper-middle-left-second.fullscreen.svelte-s4hj64.svelte-s4hj64{left:96px}.wrapper-middle-right.fullscreen.svelte-s4hj64.svelte-s4hj64{right:44px}.controls-wrapper.fullscreen.svelte-s4hj64.svelte-s4hj64{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function lp(i,e,t){let n=i.slice();return n[171]=e[t].iconUrl,n[172]=e[t].ariaLabel,n[173]=e[t].testId,n[174]=e[t].onClick,n[175]=e[t].tooltip,n}function ap(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,T,k,H,S,v=(!i[46]||i[48])&&up(i),E=wt(i[51]),q=[];for(let P=0;P<E.length;P+=1)q[P]=cp(lp(i,E,P));let U=P=>p(q[P],1,1,()=>{q[P]=null}),F=i[58].features.autoplayNext&&i[9]&&fp(i),ie=i[31]&&dp(i),fe=i[32]&&mp(i),G=i[52]&&pp(i),J=i[34]&&_p(i),Q=i[28]&&hp(i),W=i[27]&&gp(i),ce=i[26]&&bp(i),z=i[29]&&vp(i),x=i[93]&&!i[22]&&yp(i);return{c(){e=I("div"),t=Y(),n=I("div"),v&&v.c(),o=Y(),r=I("div");for(let P=0;P<q.length;P+=1)q[P].c();s=Y(),F&&F.c(),a=Y(),ie&&ie.c(),l=Y(),fe&&fe.c(),u=Y(),G&&G.c(),c=Y(),J&&J.c(),m=Y(),h=I("div"),Q&&Q.c(),C=Y(),W&&W.c(),g=Y(),ce&&ce.c(),T=Y(),z&&z.c(),k=Y(),x&&x.c(),H=Je(),f(e,"class","overlay-mobile svelte-s4hj64"),K(e,"hidden",!i[37]),f(n,"class","wrapper-top-left svelte-s4hj64"),K(n,"hidden",!i[4]),K(n,"fullscreen",i[47]),f(r,"class","wrapper-top-right svelte-s4hj64"),K(r,"hidden",!i[4]&&!i[20]),K(r,"fullscreen",i[47]),f(h,"class","wrapper-middle svelte-s4hj64"),K(h,"hidden",!i[4]||i[22])},m(P,$){w(P,e,$),w(P,t,$),w(P,n,$),v&&v.m(n,null),w(P,o,$),w(P,r,$);for(let le=0;le<q.length;le+=1)q[le]&&q[le].m(r,null);_(r,s),F&&F.m(r,null),_(r,a),ie&&ie.m(r,null),_(r,l),fe&&fe.m(r,null),_(r,u),G&&G.m(r,null),_(r,c),J&&J.m(r,null),w(P,m,$),w(P,h,$),Q&&Q.m(h,null),_(h,C),W&&W.m(h,null),_(h,g),ce&&ce.m(h,null),_(h,T),z&&z.m(h,null),w(P,k,$),x&&x.m(P,$),w(P,H,$),S=!0},p(P,$){if((!S||$[1]&64)&&K(e,"hidden",!P[37]),!P[46]||P[48]?v?(v.p(P,$),$[1]&163840&&d(v,1)):(v=up(P),v.c(),d(v,1),v.m(n,null)):v&&(ae(),p(v,1,1,()=>{v=null}),ue()),(!S||$[0]&16)&&K(n,"hidden",!P[4]),(!S||$[1]&65536)&&K(n,"fullscreen",P[47]),$[1]&1048576){E=wt(P[51]);let le;for(le=0;le<E.length;le+=1){let Me=lp(P,E,le);q[le]?(q[le].p(Me,$),d(q[le],1)):(q[le]=cp(Me),q[le].c(),d(q[le],1),q[le].m(r,s))}for(ae(),le=E.length;le<q.length;le+=1)U(le);ue()}P[58].features.autoplayNext&&P[9]?F?(F.p(P,$),$[0]&512&&d(F,1)):(F=fp(P),F.c(),d(F,1),F.m(r,a)):F&&(ae(),p(F,1,1,()=>{F=null}),ue()),P[31]?ie?(ie.p(P,$),$[1]&1&&d(ie,1)):(ie=dp(P),ie.c(),d(ie,1),ie.m(r,l)):ie&&(ae(),p(ie,1,1,()=>{ie=null}),ue()),P[32]?fe?(fe.p(P,$),$[1]&2&&d(fe,1)):(fe=mp(P),fe.c(),d(fe,1),fe.m(r,u)):fe&&(ae(),p(fe,1,1,()=>{fe=null}),ue()),P[52]?G?(G.p(P,$),$[1]&2097152&&d(G,1)):(G=pp(P),G.c(),d(G,1),G.m(r,c)):G&&(ae(),p(G,1,1,()=>{G=null}),ue()),P[34]?J?(J.p(P,$),$[1]&8&&d(J,1)):(J=_p(P),J.c(),d(J,1),J.m(r,null)):J&&(ae(),p(J,1,1,()=>{J=null}),ue()),(!S||$[0]&1048592)&&K(r,"hidden",!P[4]&&!P[20]),(!S||$[1]&65536)&&K(r,"fullscreen",P[47]),P[28]?Q?(Q.p(P,$),$[0]&268435456&&d(Q,1)):(Q=hp(P),Q.c(),d(Q,1),Q.m(h,C)):Q&&(ae(),p(Q,1,1,()=>{Q=null}),ue()),P[27]?W?(W.p(P,$),$[0]&134217728&&d(W,1)):(W=gp(P),W.c(),d(W,1),W.m(h,g)):W&&(ae(),p(W,1,1,()=>{W=null}),ue()),P[26]?ce?(ce.p(P,$),$[0]&67108864&&d(ce,1)):(ce=bp(P),ce.c(),d(ce,1),ce.m(h,T)):ce&&(ae(),p(ce,1,1,()=>{ce=null}),ue()),P[29]?z?(z.p(P,$),$[0]&536870912&&d(z,1)):(z=vp(P),z.c(),d(z,1),z.m(h,null)):z&&(ae(),p(z,1,1,()=>{z=null}),ue()),(!S||$[0]&4194320)&&K(h,"hidden",!P[4]||P[22]),P[93]&&!P[22]?x?(x.p(P,$),$[0]&4194304&&d(x,1)):(x=yp(P),x.c(),d(x,1),x.m(H.parentNode,H)):x&&(ae(),p(x,1,1,()=>{x=null}),ue())},i(P){if(!S){d(v);for(let $=0;$<E.length;$+=1)d(q[$]);d(F),d(ie),d(fe),d(G),d(J),d(Q),d(W),d(ce),d(z),d(x),S=!0}},o(P){p(v),q=q.filter(Boolean);for(let $=0;$<q.length;$+=1)p(q[$]);p(F),p(ie),p(fe),p(G),p(J),p(Q),p(W),p(ce),p(z),p(x),S=!1},d(P){P&&(y(e),y(t),y(n),y(o),y(r),y(m),y(h),y(k),y(H)),v&&v.d(),mi(q,P),F&&F.d(),ie&&ie.d(),fe&&fe.d(),G&&G.d(),J&&J.d(),Q&&Q.d(),W&&W.d(),ce&&ce.d(),z&&z.d(),x&&x.d(P)}}}function up(i){let e,t,n;function o(s){i[132](s)}let r={muted:i[49],expanded:i[46]&&!i[66]&&i[50],click:i[102]};return i[16].volume!==void 0&&(r.ref=i[16].volume),e=new hc({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[1]&262144&&(l.muted=s[49]),a[1]&557056&&(l.expanded=s[46]&&!s[66]&&s[50]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].volume,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function cp(i){var n;let e,t;return e=new Jm({props:{iconUrl:i[171],ariaLabel:(n=i[172])!=null?n:i[175],testId:i[173],onClick:i[174]}}),{c(){B(e.$$.fragment)},m(o,r){L(e,o,r),t=!0},p(o,r){var a;let s={};r[1]&1048576&&(s.iconUrl=o[171]),r[1]&1048576&&(s.ariaLabel=(a=o[172])!=null?a:o[175]),r[1]&1048576&&(s.testId=o[173]),r[1]&1048576&&(s.onClick=o[174]),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){V(e,o)}}}function fp(i){let e,t,n;function o(s){i[133](s)}let r={};return i[16].autoplayNextToggle!==void 0&&(r.ref=i[16].autoplayNextToggle),e=new op({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&65536&&(t=!0,l.ref=s[16].autoplayNextToggle,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function dp(i){let e,t,n;function o(s){i[134](s)}let r={isMobile:!0,click:i[100],state:i[21]};return i[16].chromecast!==void 0&&(r.ref=i[16].chromecast),e=new al({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&2097152&&(l.state=s[21]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].chromecast,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function mp(i){let e,t,n;function o(s){i[135](s)}let r={click:i[101],isPictureInPictureActive:i[19]};return i[16].pip!==void 0&&(r.ref=i[16].pip),e=new np({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&524288&&(l.isPictureInPictureActive=s[19]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].pip,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function pp(i){let e,t;return e=new ns({props:{ref$:i[104]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function _p(i){let e,t,n;function o(s){i[136](s)}let r={click:i[60],targetUrl:i[8],logoClickable:i[7]};return i[16].vkLogo!==void 0&&(r.ref=i[16].vkLogo),e=new ll({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&256&&(l.targetUrl=s[8]),a[0]&128&&(l.logoClickable=s[7]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].vkLogo,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function hp(i){let e,t,n;function o(s){i[137](s)}let r={click:i[11],type:"prev",isMobile:!0};return i[16].prevButton!==void 0&&(r.ref=i[16].prevButton),e=new Fr({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&2048&&(l.click=s[11]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].prevButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function gp(i){let e,t,n;function o(s){i[138](s)}let r={disabled:i[44],click:i[59],isMobile:!0,isPlaying:i[24]};return i[16].playButton!==void 0&&(r.ref=i[16].playButton),e=new ls({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[1]&8192&&(l.disabled=s[44]),a[0]&16777216&&(l.isPlaying=s[24]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].playButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function bp(i){let e,t,n;function o(s){i[139](s)}let r={disabled:i[43],click:i[103],isMobile:!0};return i[16].replayButton!==void 0&&(r.ref=i[16].replayButton),e=new ss({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[1]&4096&&(l.disabled=s[43]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].replayButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function vp(i){let e,t,n;function o(s){i[140](s)}let r={click:i[10],type:"next",isMobile:!0};return i[16].nextButton!==void 0&&(r.ref=i[16].nextButton),e=new Fr({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&1024&&(l.click=s[10]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].nextButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function yp(i){let e,t,n,o,r=i[96]&&c5(i),s=i[39]&&wp(i),a=i[95]&&f5(i);return{c(){r&&r.c(),e=Y(),s&&s.c(),t=Y(),a&&a.c(),n=Je()},m(l,u){r&&r.m(l,u),w(l,e,u),s&&s.m(l,u),w(l,t,u),a&&a.m(l,u),w(l,n,u),o=!0},p(l,u){l[96]&&r.p(l,u),l[39]?s?(s.p(l,u),u[1]&256&&d(s,1)):(s=wp(l),s.c(),d(s,1),s.m(t.parentNode,t)):s&&(ae(),p(s,1,1,()=>{s=null}),ue()),l[95]&&a.p(l,u)},i(l){o||(d(r),d(s),d(a),o=!0)},o(l){p(r),p(s),p(a),o=!1},d(l){l&&(y(e),y(t),y(n)),r&&r.d(l),s&&s.d(l),a&&a.d(l)}}}function c5(i){let e,t,n,o,r,s;function a(u){i[141](u)}let l={hidden:!i[4],disabled:i[42],click:i[14]};return i[16].playPrevChapterButton!==void 0&&(l.ref=i[16].playPrevChapterButton),t=new Tl({props:l}),ge.push(()=>ze(t,"ref",a)),{c(){e=I("div"),B(t.$$.fragment),f(e,"class","wrapper-middle-left svelte-s4hj64"),K(e,"fullscreen",i[47]),K(e,"hidden",!i[4])},m(u,c){w(u,e,c),L(t,e,null),o=!0,r||(s=ke(e,"click",i[105]),r=!0)},p(u,c){let m={};c[0]&16&&(m.hidden=!u[4]),c[1]&2048&&(m.disabled=u[42]),c[0]&16384&&(m.click=u[14]),!n&&c[0]&65536&&(n=!0,m.ref=u[16].playPrevChapterButton,Ue(()=>n=!1)),t.$set(m),(!o||c[1]&65536)&&K(e,"fullscreen",u[47]),(!o||c[0]&16)&&K(e,"hidden",!u[4])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){p(t.$$.fragment,u),o=!1},d(u){u&&y(e),V(t),r=!1,s()}}}function wp(i){let e,t,n,o,r;function s(l){i[142](l)}let a={hidden:!i[4]&&!i[53],disabled:i[45],click:i[99].toggle,graphIsOpened:i[53]};return i[16].interactiveGraphButton!==void 0&&(a.ref=i[16].interactiveGraphButton),t=new Pl({props:a}),ge.push(()=>ze(t,"ref",s)),{c(){e=I("div"),B(t.$$.fragment),f(e,"class",o=Rf(i[96]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-s4hj64"),K(e,"fullscreen",i[47]),K(e,"hidden",!i[4]&&!i[53])},m(l,u){w(l,e,u),L(t,e,null),r=!0},p(l,u){let c={};u[0]&16|u[1]&4194304&&(c.hidden=!l[4]&&!l[53]),u[1]&16384&&(c.disabled=l[45]),u[1]&4194304&&(c.graphIsOpened=l[53]),!n&&u[0]&65536&&(n=!0,c.ref=l[16].interactiveGraphButton,Ue(()=>n=!1)),t.$set(c),(!r||u[1]&65536)&&K(e,"fullscreen",l[47]),(!r||u[0]&16|u[1]&4194304)&&K(e,"hidden",!l[4]&&!l[53])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){p(t.$$.fragment,l),r=!1},d(l){l&&y(e),V(t)}}}function f5(i){let e,t,n,o,r,s;function a(u){i[143](u)}let l={hidden:!i[4],disabled:i[41],click:i[13]};return i[16].seekToInteractiveButton!==void 0&&(l.ref=i[16].seekToInteractiveButton),t=new Il({props:l}),ge.push(()=>ze(t,"ref",a)),{c(){e=I("div"),B(t.$$.fragment),f(e,"class","wrapper-middle-right svelte-s4hj64"),K(e,"fullscreen",i[47]),K(e,"hidden",!i[4])},m(u,c){w(u,e,c),L(t,e,null),o=!0,r||(s=ke(e,"click",i[106]),r=!0)},p(u,c){let m={};c[0]&16&&(m.hidden=!u[4]),c[1]&1024&&(m.disabled=u[41]),c[0]&8192&&(m.click=u[13]),!n&&c[0]&65536&&(n=!0,m.ref=u[16].seekToInteractiveButton,Ue(()=>n=!1)),t.$set(m),(!o||c[1]&65536)&&K(e,"fullscreen",u[47]),(!o||c[0]&16)&&K(e,"hidden",!u[4])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){p(t.$$.fragment,u),o=!1},d(u){u&&y(e),V(t),r=!1,s()}}}function kp(i){let e,t,n,o,r,s=i[48]&&Cp(i),a=i[25]&&Sp(i);return o=new cl({props:{position:i[54],duration:i[55]}}),{c(){s&&s.c(),e=Y(),a&&a.c(),t=Y(),n=I("div"),B(o.$$.fragment),f(n,"class","wrapper-bottom ads-timeline-mobile svelte-s4hj64"),K(n,"fullscreen",i[47])},m(l,u){s&&s.m(l,u),w(l,e,u),a&&a.m(l,u),w(l,t,u),w(l,n,u),L(o,n,null),r=!0},p(l,u){l[48]?s?(s.p(l,u),u[1]&131072&&d(s,1)):(s=Cp(l),s.c(),d(s,1),s.m(e.parentNode,e)):s&&(ae(),p(s,1,1,()=>{s=null}),ue()),l[25]?a?(a.p(l,u),u[0]&33554432&&d(a,1)):(a=Sp(l),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(ae(),p(a,1,1,()=>{a=null}),ue());let c={};u[1]&8388608&&(c.position=l[54]),u[1]&16777216&&(c.duration=l[55]),o.$set(c),(!r||u[1]&65536)&&K(n,"fullscreen",l[47])},i(l){r||(d(s),d(a),d(o.$$.fragment,l),r=!0)},o(l){p(s),p(a),p(o.$$.fragment,l),r=!1},d(l){l&&(y(e),y(t),y(n)),s&&s.d(l),a&&a.d(l),V(o)}}}function Cp(i){let e,t,n,o;function r(a){i[144](a)}let s={muted:i[49],expanded:!1,click:i[102]};return i[16].volume!==void 0&&(s.ref=i[16].volume),t=new hc({props:s}),ge.push(()=>ze(t,"ref",r)),{c(){e=I("div"),B(t.$$.fragment),f(e,"class","wrapper-top-right svelte-s4hj64"),K(e,"fullscreen",i[47])},m(a,l){w(a,e,l),L(t,e,null),o=!0},p(a,l){let u={};l[1]&262144&&(u.muted=a[49]),!n&&l[0]&65536&&(n=!0,u.ref=a[16].volume,Ue(()=>n=!1)),t.$set(u),(!o||l[1]&65536)&&K(e,"fullscreen",a[47])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&y(e),V(t)}}}function Sp(i){let e,t,n,o;function r(a){i[145](a)}let s={disabled:i[44],click:i[59],isMobile:!0,isPlaying:!i[25]};return i[16].playButton!==void 0&&(s.ref=i[16].playButton),t=new ls({props:s}),ge.push(()=>ze(t,"ref",r)),{c(){e=I("div"),B(t.$$.fragment),f(e,"class","wrapper-middle svelte-s4hj64")},m(a,l){w(a,e,l),L(t,e,null),o=!0},p(a,l){let u={};l[1]&8192&&(u.disabled=a[44]),l[0]&33554432&&(u.isPlaying=!a[25]),!n&&l[0]&65536&&(n=!0,u.ref=a[16].playButton,Ue(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&y(e),V(t)}}}function d5(i){let e,t,n;function o(s){i[146](s)}let r={disabled:i[43],$$slots:{default:[m5]},$$scope:{ctx:i}};return i[16].replayButton!==void 0&&(r.ref=i[16].replayButton),e=new en({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[1]&4096&&(l.disabled=s[43]),a[1]&4096|a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&65536&&(t=!0,l.ref=s[16].replayButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function m5(i){let e,t;return e=new ss({props:{disabled:i[43],click:i[92]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&4096&&(r.disabled=n[43]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Tp(i){let e,t,n;function o(s){i[147](s)}let r={$$slots:{default:[p5]},$$scope:{ctx:i}};return i[16].liveButton!==void 0&&(r.ref=i[16].liveButton),e=new en({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&32768|a[1]&512|a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&65536&&(t=!0,l.ref=s[16].liveButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function p5(i){let e,t;return e=new El({props:{isLiveActive:i[15],isMobile:!0,ariaLabel:i[40]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&32768&&(r.isLiveActive=n[15]),o[1]&512&&(r.ariaLabel=n[40]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Ip(i){let e,t,n;function o(s){i[148](s)}let r={showDuration:i[30],position:i[5]?i[54]:i[56],duration:i[5]?i[55]:i[57],isMobile:!0};return i[16].time!==void 0&&(r.ref=i[16].time),e=new ol({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&1073741824&&(l.showDuration=s[30]),a[0]&32|a[1]&41943040&&(l.position=s[5]?s[54]:s[56]),a[0]&32|a[1]&83886080&&(l.duration=s[5]?s[55]:s[57]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].time,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Pp(i){let e,t,n,o;return n=new dl({props:{position:i[56],duration:i[57],timeCodes:i[80]}}),{c(){e=I("div"),e.textContent="\xB7",t=Y(),B(n.$$.fragment),f(e,"aria-hidden","true")},m(r,s){w(r,e,s),w(r,t,s),L(n,r,s),o=!0},p(r,s){let a={};s[1]&33554432&&(a.position=r[56]),s[1]&67108864&&(a.duration=r[57]),n.$set(a)},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){p(n.$$.fragment,r),o=!1},d(r){r&&(y(e),y(t)),V(n,r)}}}function _5(i){let e,t,n=i[38]&&Pp(i);return{c(){n&&n.c(),e=Je()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,r){o[38]?n?(n.p(o,r),r[1]&128&&d(n,1)):(n=Pp(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),p(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function Ep(i){let e,t,n;function o(s){i[150](s)}let r={$$slots:{default:[h5]},$$scope:{ctx:i}};return i[16].settings!==void 0&&(r.ref=i[16].settings),e=new en({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&65536&&(t=!0,l.ref=s[16].settings,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function h5(i){let e,t;return e=new ns({props:{ref$:i[104]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Ap(i){let e,t,n;function o(s){i[151](s)}let r={$$slots:{default:[g5]},$$scope:{ctx:i}};return i[16].fullscreen!==void 0&&(r.ref=i[16].fullscreen),e=new en({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&4096|a[1]&65536|a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&65536&&(t=!0,l.ref=s[16].fullscreen,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function g5(i){let e,t;return e=new sl({props:{click:i[12],isFullscreen:i[47]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4096&&(r.click=n[12]),o[1]&65536&&(r.isFullscreen=n[47]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function b5(i){let e,t,n;function o(s){i[155](s)}let r={};return i[16].interactiveTimeIndicator!==void 0&&(r.ref=i[16].interactiveTimeIndicator),e=new Cl({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&65536&&(t=!0,l.ref=s[16].interactiveTimeIndicator,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function v5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,T,k,H,S,v=!i[5]&&ap(i),E=i[5]&&i[23]!=="inactive"&&kp(i),q=i[93]&&d5(i),U=!i[5]&&i[18]&&Tp(i),F=i[36]&&Ip(i);function ie(z){i[149](z)}let fe={className:"w-max",disabled:!i[38],$$slots:{default:[_5]},$$scope:{ctx:i}};i[16].episodes!==void 0&&(fe.ref=i[16].episodes),u=new en({props:fe}),ge.push(()=>ze(u,"ref",ie));let G=i[33]&&Ep(i),J=i[35]&&Ap(i);function Q(z){i[153](z)}let W={isAds:i[5],canRewindLive:i[6],isRewindableLive:i[17]};i[16].timeline!==void 0&&(W.ref=i[16].timeline),g=new fl({props:W}),ge.push(()=>ze(g,"ref",Q));let ce=i[97]&&b5(i);return{c(){v&&v.c(),e=Y(),E&&E.c(),t=Y(),n=I("div"),o=I("div"),r=I("div"),q&&q.c(),s=Y(),U&&U.c(),a=Y(),F&&F.c(),l=Y(),B(u.$$.fragment),m=Y(),G&&G.c(),h=Y(),J&&J.c(),C=Y(),B(g.$$.fragment),k=Y(),ce&&ce.c(),H=Je(),f(r,"class","controls svelte-s4hj64"),K(r,"mobile",!0),f(o,"class","controls-wrapper svelte-s4hj64"),K(o,"fullscreen",i[47]),f(n,"class","wrapper-bottom svelte-s4hj64"),K(n,"hidden",i[2]),K(n,"controls-hidden",!i[4]),K(n,"no-smooth",i[3]),K(n,"mobile",!0)},m(z,x){v&&v.m(z,x),w(z,e,x),E&&E.m(z,x),w(z,t,x),w(z,n,x),_(n,o),_(o,r),q&&q.m(r,null),_(r,s),U&&U.m(r,null),_(r,a),F&&F.m(r,null),_(r,l),L(u,r,null),_(r,m),G&&G.m(r,null),_(r,h),J&&J.m(r,null),i[152](r),_(o,C),L(g,o,null),i[154](n),w(z,k,x),ce&&ce.m(z,x),w(z,H,x),S=!0},p(z,x){z[5]?v&&(ae(),p(v,1,1,()=>{v=null}),ue()):v?(v.p(z,x),x[0]&32&&d(v,1)):(v=ap(z),v.c(),d(v,1),v.m(e.parentNode,e)),z[5]&&z[23]!=="inactive"?E?(E.p(z,x),x[0]&8388640&&d(E,1)):(E=kp(z),E.c(),d(E,1),E.m(t.parentNode,t)):E&&(ae(),p(E,1,1,()=>{E=null}),ue()),z[93]&&q.p(z,x),!z[5]&&z[18]?U?(U.p(z,x),x[0]&262176&&d(U,1)):(U=Tp(z),U.c(),d(U,1),U.m(r,a)):U&&(ae(),p(U,1,1,()=>{U=null}),ue()),z[36]?F?(F.p(z,x),x[1]&32&&d(F,1)):(F=Ip(z),F.c(),d(F,1),F.m(r,l)):F&&(ae(),p(F,1,1,()=>{F=null}),ue());let P={};x[1]&128&&(P.disabled=!z[38]),x[1]&100663424|x[5]&8388608&&(P.$$scope={dirty:x,ctx:z}),!c&&x[0]&65536&&(c=!0,P.ref=z[16].episodes,Ue(()=>c=!1)),u.$set(P),z[33]?G?(G.p(z,x),x[1]&4&&d(G,1)):(G=Ep(z),G.c(),d(G,1),G.m(r,h)):G&&(ae(),p(G,1,1,()=>{G=null}),ue()),z[35]?J?(J.p(z,x),x[1]&16&&d(J,1)):(J=Ap(z),J.c(),d(J,1),J.m(r,null)):J&&(ae(),p(J,1,1,()=>{J=null}),ue());let $={};x[0]&32&&($.isAds=z[5]),x[0]&64&&($.canRewindLive=z[6]),x[0]&131072&&($.isRewindableLive=z[17]),!T&&x[0]&65536&&(T=!0,$.ref=z[16].timeline,Ue(()=>T=!1)),g.$set($),(!S||x[1]&65536)&&K(o,"fullscreen",z[47]),(!S||x[0]&4)&&K(n,"hidden",z[2]),(!S||x[0]&16)&&K(n,"controls-hidden",!z[4]),(!S||x[0]&8)&&K(n,"no-smooth",z[3]),z[97]&&ce.p(z,x)},i(z){S||(d(v),d(E),d(q),d(U),d(F),d(u.$$.fragment,z),d(G),d(J),d(g.$$.fragment,z),d(ce),S=!0)},o(z){p(v),p(E),p(q),p(U),p(F),p(u.$$.fragment,z),p(G),p(J),p(g.$$.fragment,z),p(ce),S=!1},d(z){z&&(y(e),y(t),y(n),y(k),y(H)),v&&v.d(z),E&&E.d(z),q&&q.d(),U&&U.d(),F&&F.d(),V(u),G&&G.d(),J&&J.d(),i[152](null),V(g),i[154](null),ce&&ce.d(z)}}}function y5(i,e,t){var Xi,qi;let n,o,r,s,a,l,u,c,m,h,C,g,T,k,H,S,v,E,q,U,F,ie,fe,G,J,Q,W,ce,z,x,P,$,le,Me,te,be,Ee,Te,Ie,{bottomHidden:rt}=e,{bottomNoSmooth:Ae}=e,{showControls:We}=e,{playerControlsWrapperRef:ee=void 0}=e,{playerControlsRef:pe=void 0}=e,{isAds:Ce=!1}=e,{canRewindLive:xe}=e,{logoClickable:st}=e,{logoHidden:at}=e,{logoTargetUrl:nt=""}=e,{showNextPrevButtons:$e}=e,{nextButtonActive:de}=e,{prevButtonActive:Se}=e,{isOneVideoPlaylist:et=!1}=e,{customFullscreenSupported:De=!0}=e,{playNextVideo:tt}=e,{playPrevVideo:Fe}=e,{repeatPlaylist:ft}=e,{toggleFullscreen:dt}=e,{seekToInteractive:he}=e,{playPrevChapter:_t}=e,{onDisabledPlayPrevChapterClick:kt}=e,{onDisabledSeekToInteractiveClick:Ct}=e,Ze=ot(),Pt=On(),qt=Vt(),Zt=Ze.actions.internal.toggleMuted,Ut=Ze.actions.internal.togglePlay,zt=Ze.actions.internal.pause,Xt=(Xi=Ze.callbacks)==null?void 0:Xi.onAudioDoesNotExistHint,Wt=(qi=Ze.callbacks)==null?void 0:qi.onAudioDisabledHint,Ke=Ze.playerPhase;O(i,Ke,ne=>t(128,fe=ne));let Xe=Ze.state.duration$;O(i,Xe,ne=>t(57,Ie=ne));let Tt=Ze.state.positionWithScrubbing$;O(i,Tt,ne=>t(56,Te=ne));let _e=Ze.state.playbackState$;O(i,_e,ne=>t(122,C=ne));let Jt=Ze.state.isAudioAvailable$;O(i,Jt,ne=>t(46,g=ne));let Et=Ze.state.isAudioDisabled,ii=Ze.state.isEnded$;O(i,ii,ne=>t(129,J=ne));let Rt=Ze.state.isLive$;O(i,Rt,ne=>t(18,E=ne));let jt=Ze.state.muted$;O(i,jt,ne=>t(49,P=ne));let oi=Ze.state.isActiveLive$;O(i,oi,ne=>t(126,S=ne));let Bt=Ze.state.isRewindableLive$;O(i,Bt,ne=>t(17,v=ne));let si=Ze.ui.scrubbingInProgress;O(i,si,ne=>t(22,G=ne));let li=Ze.ui.mobileNotReportControlHidden$;O(i,li,ne=>t(20,F=ne));let ai=Ze.ui.isPictureInPictureActive$;O(i,ai,ne=>t(19,U=ne));let Ci=Ze.ui.pictureInPictureType$;O(i,Ci,ne=>t(127,q=ne));let Nt=Ze.ui.mobileUnmuteButtonExpanded;O(i,Nt,ne=>t(50,$=ne));let pi=Ze.ui.mobileUnmuteButtonVisible;O(i,pi,ne=>t(48,x=ne));let yi=Ze.ui.settingsMenuVisible;O(i,yi,ne=>t(120,m=ne));let Si=Ze.ui.settingsMenuOpenedByKeyboard;O(i,Si,ne=>t(119,c=ne));let nn=Ze.ui.controls,Ti=Ze.actions.internal.getVideoEpisodes(),Pe=Ze.webApi.pictureInPictureApi,it=Ze.state.chromecastState$;O(i,it,ne=>t(21,ie=ne));let Ot=Ze.state.crashed$;O(i,Ot,ne=>t(52,Me=ne));let Ii=nn.disabledControls$;O(i,Ii,ne=>t(130,W=ne));let _i=Ze.ui.startedByKeyboard$;O(i,_i,ne=>t(118,u=ne));let mn=Ze.ui.currentGridType$;O(i,mn,ne=>t(125,H=ne));let hi=Ze.ads.duration;O(i,hi,ne=>t(55,Ee=ne));let Wi=Ze.ads.position;O(i,Wi,ne=>t(54,be=ne));let Ki=Ze.ads.playbackState;O(i,Ki,ne=>t(23,Q=ne));let Ft=Ze.ui.isFullscreen;O(i,Ft,ne=>t(47,z=ne));let Pi=Ze.ui.playerSize;O(i,Pi,ne=>t(124,k=ne));let ui=Ze.ui.additionalButtonsDeprecated$;O(i,ui,ne=>t(51,le=ne));let Kt=Ze.actions.internal.getVideoElement,In=Ze.actions.internal.replayInteractive,wi=Ze.state.isInteractive,pn=Ze.state.isInteractiveTime$;O(i,pn,ne=>t(123,T=ne));let Pn=Ze.state.showInteractiveGraph,on=Ze.state.showSeekToInteractive,_n=Ze.state.showPlayPrevChapter,Ei=Ze.state.showInteractiveTimeIndicator,rn=Pt.seekToInteractiveDisabledTooltip$;O(i,rn,ne=>t(131,ce=ne));let Gt=Pt.graphIsOpened$;O(i,Gt,ne=>t(53,te=ne));let qn,xi,ji,Gi,ki,Ri,sn,ln,Ai,Mi,ci,Yt,Ht,Bi,Ni,an,ut,Di,fi,Oi,Fi,Ge={},Un=a5(wl,260),un=()=>Ze.actions.internal.toggleChromecast();function En(){Do({isAudioDisabled:Et,audioDisabledHintCallback:Wt,isAudioAvailable:g,audioIsNotExistHintCallback:Xt})&&Zt()}function hn(){return pt(this,null,function*(){Pe!=null&&Pe.isActive()?yield Pe==null?void 0:Pe.remove():yield Pe==null?void 0:Pe.request()})}function Yi(){!Et&&g&&pi.set(!1),En()}let Qi=et?Ut:ft,Zi="",gn=(ne,Ui)=>{if(!ne){t(40,Zi=j("tooltip_live"));return}Ui===sp.PAUSED&&t(40,Zi=j("tooltip_play"))},gi,An=Oe();O(i,An,ne=>t(121,h=ne));let Mn=()=>{l&&kt(qn)},Ln=()=>{r&&Ct(xi)};function bn(ne){i.$$.not_equal(Ge.volume,ne)&&(Ge.volume=ne,t(16,Ge))}function vn(ne){i.$$.not_equal(Ge.autoplayNextToggle,ne)&&(Ge.autoplayNextToggle=ne,t(16,Ge))}function Vn(ne){i.$$.not_equal(Ge.chromecast,ne)&&(Ge.chromecast=ne,t(16,Ge))}function yn(ne){i.$$.not_equal(Ge.pip,ne)&&(Ge.pip=ne,t(16,Ge))}function zn(ne){i.$$.not_equal(Ge.vkLogo,ne)&&(Ge.vkLogo=ne,t(16,Ge))}function Hi(ne){i.$$.not_equal(Ge.prevButton,ne)&&(Ge.prevButton=ne,t(16,Ge))}function cn(ne){i.$$.not_equal(Ge.playButton,ne)&&(Ge.playButton=ne,t(16,Ge))}function ni(ne){i.$$.not_equal(Ge.replayButton,ne)&&(Ge.replayButton=ne,t(16,Ge))}function ro(ne){i.$$.not_equal(Ge.nextButton,ne)&&(Ge.nextButton=ne,t(16,Ge))}function so(ne){i.$$.not_equal(Ge.playPrevChapterButton,ne)&&(Ge.playPrevChapterButton=ne,t(16,Ge))}function Wn(ne){i.$$.not_equal(Ge.interactiveGraphButton,ne)&&(Ge.interactiveGraphButton=ne,t(16,Ge))}function di(ne){i.$$.not_equal(Ge.seekToInteractiveButton,ne)&&(Ge.seekToInteractiveButton=ne,t(16,Ge))}function fn(ne){i.$$.not_equal(Ge.volume,ne)&&(Ge.volume=ne,t(16,Ge))}function Zn(ne){i.$$.not_equal(Ge.playButton,ne)&&(Ge.playButton=ne,t(16,Ge))}function Kn(ne){i.$$.not_equal(Ge.replayButton,ne)&&(Ge.replayButton=ne,t(16,Ge))}function lo(ne){i.$$.not_equal(Ge.liveButton,ne)&&(Ge.liveButton=ne,t(16,Ge))}function Xn(ne){i.$$.not_equal(Ge.time,ne)&&(Ge.time=ne,t(16,Ge))}function Jn(ne){i.$$.not_equal(Ge.episodes,ne)&&(Ge.episodes=ne,t(16,Ge))}function wn(ne){i.$$.not_equal(Ge.settings,ne)&&(Ge.settings=ne,t(16,Ge))}function xn(ne){i.$$.not_equal(Ge.fullscreen,ne)&&(Ge.fullscreen=ne,t(16,Ge))}function kn(ne){ge[ne?"unshift":"push"](()=>{pe=ne,t(1,pe)})}function ao(ne){i.$$.not_equal(Ge.timeline,ne)&&(Ge.timeline=ne,t(16,Ge))}function oe(ne){ge[ne?"unshift":"push"](()=>{ee=ne,t(0,ee)})}function vt(ne){i.$$.not_equal(Ge.interactiveTimeIndicator,ne)&&(Ge.interactiveTimeIndicator=ne,t(16,Ge))}return i.$$set=ne=>{"bottomHidden"in ne&&t(2,rt=ne.bottomHidden),"bottomNoSmooth"in ne&&t(3,Ae=ne.bottomNoSmooth),"showControls"in ne&&t(4,We=ne.showControls),"playerControlsWrapperRef"in ne&&t(0,ee=ne.playerControlsWrapperRef),"playerControlsRef"in ne&&t(1,pe=ne.playerControlsRef),"isAds"in ne&&t(5,Ce=ne.isAds),"canRewindLive"in ne&&t(6,xe=ne.canRewindLive),"logoClickable"in ne&&t(7,st=ne.logoClickable),"logoHidden"in ne&&t(107,at=ne.logoHidden),"logoTargetUrl"in ne&&t(8,nt=ne.logoTargetUrl),"showNextPrevButtons"in ne&&t(9,$e=ne.showNextPrevButtons),"nextButtonActive"in ne&&t(108,de=ne.nextButtonActive),"prevButtonActive"in ne&&t(109,Se=ne.prevButtonActive),"isOneVideoPlaylist"in ne&&t(110,et=ne.isOneVideoPlaylist),"customFullscreenSupported"in ne&&t(111,De=ne.customFullscreenSupported),"playNextVideo"in ne&&t(10,tt=ne.playNextVideo),"playPrevVideo"in ne&&t(11,Fe=ne.playPrevVideo),"repeatPlaylist"in ne&&t(112,ft=ne.repeatPlaylist),"toggleFullscreen"in ne&&t(12,dt=ne.toggleFullscreen),"seekToInteractive"in ne&&t(13,he=ne.seekToInteractive),"playPrevChapter"in ne&&t(14,_t=ne.playPrevChapter),"onDisabledPlayPrevChapterClick"in ne&&t(113,kt=ne.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ne&&t(114,Ct=ne.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&128&&(xi=j(ce)),i.$$.dirty[4]&64&&t(117,n=W.has("EPISODE_BUTTON")),i.$$.dirty[4]&64&&t(45,o=W.has("GRAPH_BUTTON")),i.$$.dirty[4]&64&&t(41,r=W.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[4]&64&&t(44,s=W.has("PLAY_BUTTON")),i.$$.dirty[4]&64&&t(43,a=W.has("REPLAY_BUTTON")),i.$$.dirty[4]&64&&t(42,l=W.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[3]&536870912&&t(24,ji=C===sp.PLAYING),i.$$.dirty[0]&8388608&&t(25,Gi=Q==="paused"),i.$$.dirty[0]&32|i.$$.dirty[4]&32&&t(26,ki=J&&!Ce&&!wi),i.$$.dirty[0]&32|i.$$.dirty[4]&32&&t(27,Ri=!J||Ce),i.$$.dirty[0]&544|i.$$.dirty[3]&65536&&t(28,sn=$e&&!Ce&&Se),i.$$.dirty[0]&544|i.$$.dirty[3]&32768&&t(29,ln=$e&&!Ce&&de),i.$$.dirty[4]&1&&t(115,Ai=k.width>300),i.$$.dirty[4]&1&&t(30,Mi=k.width>400),i.$$.dirty[0]&4194304&&t(116,ci=G),i.$$.dirty[0]&3670016|i.$$.dirty[4]&8&&t(31,Yt=ie!==rp.NOT_AVAILABLE&&!(U&&q===1)&&!F&&!wi),i.$$.dirty[0]&3145728|i.$$.dirty[3]&8388608|i.$$.dirty[4]&24){let ne=fe==="LiveWaitingStart";t(32,Ht=!!Pe&&ie!==rp.CONNECTED&&!F&&(q===1&&ne||!ne)&&!ci&&!wi)}i.$$.dirty[3]&8388608|i.$$.dirty[4]&2&&t(33,Bi=!ci&&vi(H,"s")),i.$$.dirty[3]&16384|i.$$.dirty[4]&1&&t(34,Ni=!at&&k.width>350),i.$$.dirty[0]&524288|i.$$.dirty[3]&8650752|i.$$.dirty[4]&8&&t(35,an=qt.features.fullscreen&&!(U&&q===1)&&(wi?De:!0)&&!ci),i.$$.dirty[0]&262176|i.$$.dirty[3]&8388608|i.$$.dirty[4]&1&&t(36,ut=(!E||Ce)&&k.width>260&&!ci&&!(qt.features.interactiveHideTime&&wi)),i.$$.dirty[0]&16|i.$$.dirty[3]&134217728&&t(37,Di=m||We),i.$$.dirty[0]&262176|i.$$.dirty[3]&29360128&&t(38,fi=!Ce&&!E&&!!(Ti!=null&&Ti.length)&&Ai&&!n&&!ci),i.$$.dirty[0]&131072|i.$$.dirty[4]&4&&t(15,Oi=!v||S),i.$$.dirty[4]&2&&t(39,Fi=Pn&&vi(H,"m")),i.$$.dirty[0]&65552|i.$$.dirty[3]&1073741824|i.$$.dirty[4]&1&&Un(Kt(),nn,Ge,We),i.$$.dirty[0]&32768|i.$$.dirty[3]&536870912&&gn(Oi,C),i.$$.dirty[3]&402653184&&h&&Ar(h,m,Si),i.$$.dirty[3]&201326592&&po(gi,m,c),i.$$.dirty[0]&65536|i.$$.dirty[3]&33554432&&kl(_i,u,Ge.playButton)},qn=j(Ze.state.playPrevChapterDisabledTooltip),[ee,pe,rt,Ae,We,Ce,xe,st,nt,$e,tt,Fe,dt,he,_t,Oi,Ge,v,E,U,F,ie,G,Q,ji,Gi,ki,Ri,sn,ln,Mi,Yt,Ht,Bi,Ni,an,ut,Di,fi,Fi,Zi,r,l,a,s,o,g,z,x,P,$,le,Me,te,be,Ee,Te,Ie,qt,Ut,zt,Ke,Xe,Tt,_e,Jt,Et,ii,Rt,jt,oi,Bt,si,li,ai,Ci,Nt,pi,yi,Si,Ti,it,Ot,Ii,_i,mn,hi,Wi,Ki,Ft,Pi,ui,In,wi,pn,on,_n,Ei,rn,Gt,un,hn,Yi,Qi,An,Mn,Ln,at,de,Se,et,De,ft,kt,Ct,Ai,ci,n,u,c,m,h,C,T,k,H,S,q,fe,J,W,ce,bn,vn,Vn,yn,zn,Hi,cn,ni,ro,so,Wn,di,fn,Zn,Kn,lo,Xn,Jn,wn,xn,kn,ao,oe,vt]}var wc=class extends N{constructor(e){super(),D(this,e,y5,v5,R,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:7,logoHidden:107,logoTargetUrl:8,showNextPrevButtons:9,nextButtonActive:108,prevButtonActive:109,isOneVideoPlaylist:110,customFullscreenSupported:111,playNextVideo:10,playPrevVideo:11,repeatPlaylist:112,toggleFullscreen:12,seekToInteractive:13,playPrevChapter:14,onDisabledPlayPrevChapterClick:113,onDisabledSeekToInteractiveClick:114},u5,[-1,-1,-1,-1,-1,-1])}},Mp=wc;function Vp(i){let e,t,n,o,r=[k5,w5],s=[];function a(l,u){return l[24]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Je()},m(l,u){s[e].m(l,u),w(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&y(n),s[e].d(l)}}}function w5(i){let e,t,n,o;function r(l){i[28](l)}function s(l){i[29](l)}let a={bottomHidden:i[2],bottomNoSmooth:i[3],showControls:i[4],isAds:i[5],canRewindLive:i[6],logoClickable:i[7],logoHidden:i[8],logoTargetUrl:i[9],showNextPrevButtons:i[10],nextButtonActive:i[11],prevButtonActive:i[12],isOneVideoPlaylist:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],seekToInteractive:i[19],playPrevChapter:i[20]};return i[0]!==void 0&&(a.playerControlsWrapperRef=i[0]),i[1]!==void 0&&(a.playerControlsRef=i[1]),e=new Zm({props:a}),ge.push(()=>ze(e,"playerControlsWrapperRef",r)),ge.push(()=>ze(e,"playerControlsRef",s)),{c(){B(e.$$.fragment)},m(l,u){L(e,l,u),o=!0},p(l,u){let c={};u&4&&(c.bottomHidden=l[2]),u&8&&(c.bottomNoSmooth=l[3]),u&16&&(c.showControls=l[4]),u&32&&(c.isAds=l[5]),u&64&&(c.canRewindLive=l[6]),u&128&&(c.logoClickable=l[7]),u&256&&(c.logoHidden=l[8]),u&512&&(c.logoTargetUrl=l[9]),u&1024&&(c.showNextPrevButtons=l[10]),u&2048&&(c.nextButtonActive=l[11]),u&4096&&(c.prevButtonActive=l[12]),u&8192&&(c.isOneVideoPlaylist=l[13]),u&16384&&(c.customFullscreenSupported=l[14]),u&32768&&(c.playNextVideo=l[15]),u&65536&&(c.playPrevVideo=l[16]),u&131072&&(c.repeatPlaylist=l[17]),u&262144&&(c.toggleFullscreen=l[18]),u&524288&&(c.seekToInteractive=l[19]),u&1048576&&(c.playPrevChapter=l[20]),!t&&u&1&&(t=!0,c.playerControlsWrapperRef=l[0],Ue(()=>t=!1)),!n&&u&2&&(n=!0,c.playerControlsRef=l[1],Ue(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){V(e,l)}}}function k5(i){let e,t,n,o;function r(l){i[26](l)}function s(l){i[27](l)}let a={bottomHidden:i[2],bottomNoSmooth:i[3],showControls:i[4],isAds:i[5],canRewindLive:i[6],logoClickable:i[7],logoHidden:i[8],logoTargetUrl:i[9],showNextPrevButtons:i[10],nextButtonActive:i[11],prevButtonActive:i[12],isOneVideoPlaylist:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],seekToInteractive:i[19],playPrevChapter:i[20],onDisabledPlayPrevChapterClick:i[21],onDisabledSeekToInteractiveClick:i[22]};return i[0]!==void 0&&(a.playerControlsWrapperRef=i[0]),i[1]!==void 0&&(a.playerControlsRef=i[1]),e=new Mp({props:a}),ge.push(()=>ze(e,"playerControlsWrapperRef",r)),ge.push(()=>ze(e,"playerControlsRef",s)),{c(){B(e.$$.fragment)},m(l,u){L(e,l,u),o=!0},p(l,u){let c={};u&4&&(c.bottomHidden=l[2]),u&8&&(c.bottomNoSmooth=l[3]),u&16&&(c.showControls=l[4]),u&32&&(c.isAds=l[5]),u&64&&(c.canRewindLive=l[6]),u&128&&(c.logoClickable=l[7]),u&256&&(c.logoHidden=l[8]),u&512&&(c.logoTargetUrl=l[9]),u&1024&&(c.showNextPrevButtons=l[10]),u&2048&&(c.nextButtonActive=l[11]),u&4096&&(c.prevButtonActive=l[12]),u&8192&&(c.isOneVideoPlaylist=l[13]),u&16384&&(c.customFullscreenSupported=l[14]),u&32768&&(c.playNextVideo=l[15]),u&65536&&(c.playPrevVideo=l[16]),u&131072&&(c.repeatPlaylist=l[17]),u&262144&&(c.toggleFullscreen=l[18]),u&524288&&(c.seekToInteractive=l[19]),u&1048576&&(c.playPrevChapter=l[20]),u&2097152&&(c.onDisabledPlayPrevChapterClick=l[21]),u&4194304&&(c.onDisabledSeekToInteractiveClick=l[22]),!t&&u&1&&(t=!0,c.playerControlsWrapperRef=l[0],Ue(()=>t=!1)),!n&&u&2&&(n=!0,c.playerControlsRef=l[1],Ue(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){V(e,l)}}}function C5(i){let e,t,n=i[23]&&Vp(i);return{c(){n&&n.c(),e=Je()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,[r]){o[23]?n?(n.p(o,r),r&8388608&&d(n,1)):(n=Vp(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),p(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function S5(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:r=!1}=e,{showControls:s}=e,{playerControlsWrapperRef:a=void 0}=e,{playerControlsRef:l=void 0}=e,{isAds:u=!1}=e,{canRewindLive:c}=e,{logoClickable:m}=e,{logoHidden:h}=e,{logoTargetUrl:C=""}=e,{showNextPrevButtons:g}=e,{nextButtonActive:T}=e,{prevButtonActive:k}=e,{isOneVideoPlaylist:H=!1}=e,{customFullscreenSupported:S=!0}=e,{playNextVideo:v}=e,{playPrevVideo:E}=e,{repeatPlaylist:q}=e,{toggleFullscreen:U}=e,{seekToInteractive:F}=e,{playPrevChapter:ie}=e,{onDisabledPlayPrevChapterClick:fe=Lp}=e,{onDisabledSeekToInteractiveClick:G=Lp}=e,Q=ot().ui.isMobile;O(i,Q,$=>t(24,n=$));let W=!1;Lt(()=>{let $=setTimeout(()=>t(23,W=!0),0);return()=>clearTimeout($)});function ce($){a=$,t(0,a)}function z($){l=$,t(1,l)}function x($){a=$,t(0,a)}function P($){l=$,t(1,l)}return i.$$set=$=>{"bottomHidden"in $&&t(2,o=$.bottomHidden),"bottomNoSmooth"in $&&t(3,r=$.bottomNoSmooth),"showControls"in $&&t(4,s=$.showControls),"playerControlsWrapperRef"in $&&t(0,a=$.playerControlsWrapperRef),"playerControlsRef"in $&&t(1,l=$.playerControlsRef),"isAds"in $&&t(5,u=$.isAds),"canRewindLive"in $&&t(6,c=$.canRewindLive),"logoClickable"in $&&t(7,m=$.logoClickable),"logoHidden"in $&&t(8,h=$.logoHidden),"logoTargetUrl"in $&&t(9,C=$.logoTargetUrl),"showNextPrevButtons"in $&&t(10,g=$.showNextPrevButtons),"nextButtonActive"in $&&t(11,T=$.nextButtonActive),"prevButtonActive"in $&&t(12,k=$.prevButtonActive),"isOneVideoPlaylist"in $&&t(13,H=$.isOneVideoPlaylist),"customFullscreenSupported"in $&&t(14,S=$.customFullscreenSupported),"playNextVideo"in $&&t(15,v=$.playNextVideo),"playPrevVideo"in $&&t(16,E=$.playPrevVideo),"repeatPlaylist"in $&&t(17,q=$.repeatPlaylist),"toggleFullscreen"in $&&t(18,U=$.toggleFullscreen),"seekToInteractive"in $&&t(19,F=$.seekToInteractive),"playPrevChapter"in $&&t(20,ie=$.playPrevChapter),"onDisabledPlayPrevChapterClick"in $&&t(21,fe=$.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in $&&t(22,G=$.onDisabledSeekToInteractiveClick)},[a,l,o,r,s,u,c,m,h,C,g,T,k,H,S,v,E,q,U,F,ie,fe,G,W,n,Q,ce,z,x,P]}var kc=class extends N{constructor(e){super(),D(this,e,S5,C5,R,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:7,logoHidden:8,logoTargetUrl:9,showNextPrevButtons:10,nextButtonActive:11,prevButtonActive:12,isOneVideoPlaylist:13,customFullscreenSupported:14,playNextVideo:15,playPrevVideo:16,repeatPlaylist:17,toggleFullscreen:18,seekToInteractive:19,playPrevChapter:20,onDisabledPlayPrevChapterClick:21,onDisabledSeekToInteractiveClick:22})}},Al=kc;function T5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,T=i[2].default,k=Ve(T,i,i[1],null),H=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],S={};for(let v=0;v<H.length;v+=1)S=se(S,H[v]);return{c(){e=M("svg"),k&&k.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),s=M("filter"),a=M("feFlood"),l=M("feColorMatrix"),u=M("feOffset"),c=M("feGaussianBlur"),m=M("feColorMatrix"),h=M("feBlend"),C=M("feBlend"),f(n,"fill","#fff"),f(n,"d","M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_100684"),f(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_2260_100684"),f(C,"result","shape"),f(s,"id","a"),f(s,"width","43.996"),f(s,"height","49.5"),f(s,"x","2.5"),f(s,"y","0"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),we(e,S)},m(v,E){w(v,e,E),k&&k.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,C),g=!0},p(v,[E]){k&&k.p&&(!g||E&2)&&Be(k,T,v,v[1],g?Re(T,v[1],E,null):Ne(v[1]),null),we(e,S=qe(H,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},E&1&&v[0]]))},i(v){g||(d(k,v),g=!0)},o(v){p(k,v),g=!1},d(v){v&&y(e),k&&k.d(v)}}}function I5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Cc=class extends N{constructor(e){super(),D(this,e,I5,T5,R,{})}},Rp=Cc;function P5(i){let e,t;return e=new Rp({props:{style:i[0]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function E5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Sc=class extends N{constructor(e){super(),D(this,e,E5,P5,R,{reversed:1})}},Bp=Sc;function A5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,T,k,H=i[2].default,S=Ve(H,i,i[1],null),v=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},i[0]],E={};for(let q=0;q<v.length;q+=1)E=se(E,v[q]);return{c(){e=M("svg"),S&&S.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),s=M("clipPath"),a=M("path"),l=M("filter"),u=M("feFlood"),c=M("feColorMatrix"),m=M("feOffset"),h=M("feGaussianBlur"),C=M("feColorMatrix"),g=M("feBlend"),T=M("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22"),f(n,"clip-rule","evenodd"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(a,"fill","#fff"),f(a,"d","M0 0h48v48H0z"),f(s,"id","c"),f(u,"flood-opacity","0"),f(u,"result","BackgroundImageFix"),f(c,"in","SourceAlpha"),f(c,"result","hardAlpha"),f(c,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(h,"stdDeviation","2.5"),f(C,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(g,"in2","BackgroundImageFix"),f(g,"result","effect1_dropShadow_2260_104204"),f(T,"in","SourceGraphic"),f(T,"in2","effect1_dropShadow_2260_104204"),f(T,"result","shape"),f(l,"id","a"),f(l,"width","51"),f(l,"height","45"),f(l,"x","-1.5"),f(l,"y","1.5"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),we(e,E)},m(q,U){w(q,e,U),S&&S.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(r,l),_(l,u),_(l,c),_(l,m),_(l,h),_(l,C),_(l,g),_(l,T),k=!0},p(q,[U]){S&&S.p&&(!k||U&2)&&Be(S,H,q,q[1],k?Re(H,q[1],U,null):Ne(q[1]),null),we(e,E=qe(v,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},U&1&&q[0]]))},i(q){k||(d(S,q),k=!0)},o(q){p(S,q),k=!1},d(q){q&&y(e),S&&S.d(q)}}}function M5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Tc=class extends N{constructor(e){super(),D(this,e,M5,A5,R,{})}},Np=Tc;function L5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,T,k,H,S=i[2].default,v=Ve(S,i,i[1],null),E=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},i[0]],q={};for(let U=0;U<E.length;U+=1)q=se(q,E[U]);return{c(){e=M("svg"),v&&v.c(),t=M("g"),n=M("path"),o=M("path"),r=M("path"),s=M("defs"),a=M("clipPath"),l=M("path"),u=M("filter"),c=M("feFlood"),m=M("feColorMatrix"),h=M("feOffset"),C=M("feGaussianBlur"),g=M("feColorMatrix"),T=M("feBlend"),k=M("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"),f(r,"stroke","#000"),f(r,"stroke-opacity",".12"),f(r,"stroke-width",".5"),f(r,"d","M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(l,"fill","#fff"),f(l,"d","M0 0h48v48H0z"),f(a,"id","c"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(C,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(T,"in2","BackgroundImageFix"),f(T,"result","effect1_dropShadow_2260_104293"),f(k,"in","SourceGraphic"),f(k,"in2","effect1_dropShadow_2260_104293"),f(k,"result","shape"),f(u,"id","a"),f(u,"width","51"),f(u,"height","51"),f(u,"x","-1.5"),f(u,"y","-1.5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),we(e,q)},m(U,F){w(U,e,F),v&&v.m(e,null),_(e,t),_(t,n),_(t,o),_(t,r),_(e,s),_(s,a),_(a,l),_(s,u),_(u,c),_(u,m),_(u,h),_(u,C),_(u,g),_(u,T),_(u,k),H=!0},p(U,[F]){v&&v.p&&(!H||F&2)&&Be(v,S,U,U[1],H?Re(S,U[1],F,null):Ne(U[1]),null),we(e,q=qe(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},F&1&&U[0]]))},i(U){H||(d(v,U),H=!0)},o(U){p(v,U),H=!1},d(U){U&&y(e),v&&v.d(U)}}}function V5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ic=class extends N{constructor(e){super(),D(this,e,V5,L5,R,{})}},Dp=Ic;function R5(i){let e,t;return e=new Np({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function B5(i){let e,t;return e=new Dp({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function N5(i){let e,t,n,o,r=[B5,R5],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Je()},m(l,u){s[e].m(l,u),w(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e!==c&&(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t||(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&y(n),s[e].d(l)}}}function D5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Pc=class extends N{constructor(e){super(),D(this,e,D5,N5,R,{isOff:0})}},Ec=Pc;function O5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,T=i[2].default,k=Ve(T,i,i[1],null),H=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},i[0]],S={};for(let v=0;v<H.length;v+=1)S=se(S,H[v]);return{c(){e=M("svg"),k&&k.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),s=M("filter"),a=M("feFlood"),l=M("feColorMatrix"),u=M("feOffset"),c=M("feGaussianBlur"),m=M("feColorMatrix"),h=M("feBlend"),C=M("feBlend"),f(n,"fill","#fff"),f(n,"d","M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_106627"),f(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_2260_106627"),f(C,"result","shape"),f(s,"id","a"),f(s,"width","40.098"),f(s,"height","27.785"),f(s,"x","3.402"),f(s,"y","10.105"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),we(e,S)},m(v,E){w(v,e,E),k&&k.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,C),g=!0},p(v,[E]){k&&k.p&&(!g||E&2)&&Be(k,T,v,v[1],g?Re(T,v[1],E,null):Ne(v[1]),null),we(e,S=qe(H,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},E&1&&v[0]]))},i(v){g||(d(k,v),g=!0)},o(v){p(k,v),g=!1},d(v){v&&y(e),k&&k.d(v)}}}function F5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ac=class extends N{constructor(e){super(),D(this,e,F5,O5,R,{})}},Op=Ac;function H5(i){let e,t;return e=new Op({props:{style:i[0]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function q5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Mc=class extends N{constructor(e){super(),D(this,e,q5,H5,R,{reversed:1})}},Fp=Mc;function U5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,T=i[2].default,k=Ve(T,i,i[1],null),H=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},i[0]],S={};for(let v=0;v<H.length;v+=1)S=se(S,H[v]);return{c(){e=M("svg"),k&&k.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),s=M("filter"),a=M("feFlood"),l=M("feColorMatrix"),u=M("feOffset"),c=M("feGaussianBlur"),m=M("feColorMatrix"),h=M("feBlend"),C=M("feBlend"),f(n,"fill","#fff"),f(n,"d","M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2340_106922"),f(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_2340_106922"),f(C,"result","shape"),f(s,"id","a"),f(s,"width","37"),f(s,"height","37"),f(s,"x","5.5"),f(s,"y","5.5"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),we(e,S)},m(v,E){w(v,e,E),k&&k.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,C),g=!0},p(v,[E]){k&&k.p&&(!g||E&2)&&Be(k,T,v,v[1],g?Re(T,v[1],E,null):Ne(v[1]),null),we(e,S=qe(H,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},E&1&&v[0]]))},i(v){g||(d(k,v),g=!0)},o(v){p(k,v),g=!1},d(v){v&&y(e),k&&k.d(v)}}}function z5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Lc=class extends N{constructor(e){super(),D(this,e,z5,U5,R,{})}},Hp=Lc;function W5(i){let e,t;return e=new Hp({props:{style:i[0]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function K5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Vc=class extends N{constructor(e){super(),D(this,e,K5,W5,R,{reversed:1})}},qp=Vc;function x5(i){ve(i,"svelte-1ad3n06",`.hot-key-helpers-container.svelte-1ad3n06.svelte-1ad3n06{position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;animation:svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box}.hot-key-helpers-container.svelte-1ad3n06>div.svelte-1ad3n06{width:48px;height:48px;display:flex;justify-content:center;align-items:center}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"]{transform:scale(2)}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="pause-icon"]{transform:scale(2.5)}.hot-key-helpers-container--left.svelte-1ad3n06.svelte-1ad3n06{left:calc(25% - 100px)}.hot-key-helpers-container--right.svelte-1ad3n06.svelte-1ad3n06{left:calc(75% - 100px)}.hot-key-helpers-text.svelte-1ad3n06.svelte-1ad3n06{text-align:center;font-feature-settings:'clig' off, 'liga' off;text-shadow:0px 0px 5px rgba(0, 0, 0, 0.16);font-size:15px;font-style:normal;font-weight:600;line-height:20px;letter-spacing:-0.105px;width:100%;max-height:40px;margin-top:4px;display:-webkit-box;text-overflow:ellipsis;white-space:pre-wrap;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.hidden.svelte-1ad3n06.svelte-1ad3n06{visibility:hidden;animation:svelte-1ad3n06-fadeOut ease var(--controls-transition-duration);width:0;height:0}@keyframes svelte-1ad3n06-fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes svelte-1ad3n06-fadeOut{0%{opacity:1}100%{opacity:0}}`)}function Up(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,r,s,a,l,u=["RATE_DOWN","RATE_UP"].includes(i[4]),c,m=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),h,C,g,T,k,H=t&&zp(i),S=i[4]==="PAUSE"&&Wp(i),v=i[4]==="PLAY"&&Kp(i),E=i[4]==="REPLAY"&&xp(i),q=i[4]==="SUBTITLES_OFF"&&jp(i),U=i[4]==="SUBTITLES_ON"&&Gp(i),F=u&&Yp(i),ie=m&&Qp(i),fe=i[4]==="MUTE"&&Zp(i),G=i[4]==="VOLUME"&&Xp(i),J=i[5]&&Jp(i);return{c(){e=I("div"),H&&H.c(),n=Y(),S&&S.c(),o=Y(),v&&v.c(),r=Y(),E&&E.c(),s=Y(),q&&q.c(),a=Y(),U&&U.c(),l=Y(),F&&F.c(),c=Y(),ie&&ie.c(),h=Y(),fe&&fe.c(),C=Y(),G&&G.c(),g=Y(),J&&J.c(),T=Je(),f(e,"class","svelte-1ad3n06")},m(Q,W){w(Q,e,W),H&&H.m(e,null),_(e,n),S&&S.m(e,null),_(e,o),v&&v.m(e,null),_(e,r),E&&E.m(e,null),_(e,s),q&&q.m(e,null),_(e,a),U&&U.m(e,null),_(e,l),F&&F.m(e,null),_(e,c),ie&&ie.m(e,null),_(e,h),fe&&fe.m(e,null),_(e,C),G&&G.m(e,null),w(Q,g,W),J&&J.m(Q,W),w(Q,T,W),k=!0},p(Q,W){W&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(Q[4])),t?H?(H.p(Q,W),W&16&&d(H,1)):(H=zp(Q),H.c(),d(H,1),H.m(e,n)):H&&(ae(),p(H,1,1,()=>{H=null}),ue()),Q[4]==="PAUSE"?S?W&16&&d(S,1):(S=Wp(Q),S.c(),d(S,1),S.m(e,o)):S&&(ae(),p(S,1,1,()=>{S=null}),ue()),Q[4]==="PLAY"?v?W&16&&d(v,1):(v=Kp(Q),v.c(),d(v,1),v.m(e,r)):v&&(ae(),p(v,1,1,()=>{v=null}),ue()),Q[4]==="REPLAY"?E?W&16&&d(E,1):(E=xp(Q),E.c(),d(E,1),E.m(e,s)):E&&(ae(),p(E,1,1,()=>{E=null}),ue()),Q[4]==="SUBTITLES_OFF"?q?W&16&&d(q,1):(q=jp(Q),q.c(),d(q,1),q.m(e,a)):q&&(ae(),p(q,1,1,()=>{q=null}),ue()),Q[4]==="SUBTITLES_ON"?U?W&16&&d(U,1):(U=Gp(Q),U.c(),d(U,1),U.m(e,l)):U&&(ae(),p(U,1,1,()=>{U=null}),ue()),W&16&&(u=["RATE_DOWN","RATE_UP"].includes(Q[4])),u?F?(F.p(Q,W),W&16&&d(F,1)):(F=Yp(Q),F.c(),d(F,1),F.m(e,c)):F&&(ae(),p(F,1,1,()=>{F=null}),ue()),W&16&&(m=["EPISODE_PREV","EPISODE_NEXT"].includes(Q[4])),m?ie?(ie.p(Q,W),W&16&&d(ie,1)):(ie=Qp(Q),ie.c(),d(ie,1),ie.m(e,h)):ie&&(ae(),p(ie,1,1,()=>{ie=null}),ue()),Q[4]==="MUTE"?fe?W&16&&d(fe,1):(fe=Zp(Q),fe.c(),d(fe,1),fe.m(e,C)):fe&&(ae(),p(fe,1,1,()=>{fe=null}),ue()),Q[4]==="VOLUME"?G?W&16&&d(G,1):(G=Xp(Q),G.c(),d(G,1),G.m(e,null)):G&&(ae(),p(G,1,1,()=>{G=null}),ue()),Q[5]?J?J.p(Q,W):(J=Jp(Q),J.c(),J.m(T.parentNode,T)):J&&(J.d(1),J=null)},i(Q){k||(d(H),d(S),d(v),d(E),d(q),d(U),d(F),d(ie),d(fe),d(G),k=!0)},o(Q){p(H),p(S),p(v),p(E),p(q),p(U),p(F),p(ie),p(fe),p(G),k=!1},d(Q){Q&&(y(e),y(g),y(T)),H&&H.d(),S&&S.d(),v&&v.d(),E&&E.d(),q&&q.d(),U&&U.d(),F&&F.d(),ie&&ie.d(),fe&&fe.d(),G&&G.d(),J&&J.d(Q)}}}function zp(i){let e,t;return e=new Bp({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="FORWARD_SEEK"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Wp(i){let e,t;return e=new Hr({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Kp(i){let e,t;return e=new qo({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function xp(i){let e,t;return e=new Sl({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function jp(i){let e,t;return e=new Ec({props:{isOff:!0}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Gp(i){let e,t;return e=new Ec({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Yp(i){let e,t;return e=new Fp({props:{reversed:i[4]==="RATE_UP"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="RATE_UP"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Qp(i){let e,t;return e=new qp({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="EPISODE_NEXT"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Zp(i){let e,t;return e=new dr({props:{volume:0}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Xp(i){let e,t;return e=new dr({props:{volume:1}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Jp(i){let e,t;return{c(){e=I("span"),t=He(i[5]),f(e,"class","hot-key-helpers-text svelte-1ad3n06")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&32&&je(t,n[5])},d(n){n&&y(e)}}}function j5(i){let e,t,n=!i[1]&&i[4]&&Up(i);return{c(){e=I("div"),n&&n.c(),f(e,"class","hot-key-helpers-container svelte-1ad3n06"),K(e,"hidden",i[1]),K(e,"hot-key-helpers-container--left",i[2]),K(e,"hot-key-helpers-container--right",i[3])},m(o,r){w(o,e,r),n&&n.m(e,null),t=!0},p(o,[r]){!o[1]&&o[4]?n?(n.p(o,r),r&18&&d(n,1)):(n=Up(o),n.c(),d(n,1),n.m(e,null)):n&&(ae(),p(n,1,1,()=>{n=null}),ue()),(!t||r&2)&&K(e,"hidden",o[1]),(!t||r&4)&&K(e,"hot-key-helpers-container--left",o[2]),(!t||r&8)&&K(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d()}}}function G5(i,e,t){let n,o=me,r=()=>(o(),o=$t(s,h=>t(6,n=h)),s);i.$$.on_destroy.push(()=>o());let{data:s}=e;r();let a,l,u,c,m;return i.$$set=h=>{"data"in h&&r(t(0,s=h.data))},i.$$.update=()=>{i.$$.dirty&64&&(t(1,a=!n),t(2,l=(n==null?void 0:n.type)==="BACKWARD_SEEK"),t(3,u=(n==null?void 0:n.type)==="FORWARD_SEEK"),t(4,c=n==null?void 0:n.type),n!=null&&n.t?t(5,m=j(n.t.key,{value:n.t.value||""})):t(5,m=n==null?void 0:n.text))},[s,a,l,u,c,m,n]}var Rc=class extends N{constructor(e){super(),D(this,e,G5,j5,R,{data:0},x5)}},$p=Rc;function Y5(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"fill-opacity",".72"),f(t,"fill-rule","evenodd"),f(t,"d","M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272"),f(t,"clip-rule","evenodd"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,l,l[1],n?Re(o,l[1],u,null):Ne(l[1]),null),we(e,a=qe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function Q5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Bc=class extends N{constructor(e){super(),D(this,e,Q5,Y5,R,{})}},e0=Bc;function Z5(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"d","m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,l,l[1],n?Re(o,l[1],u,null):Ne(l[1]),null),we(e,a=qe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function X5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Nc=class extends N{constructor(e){super(),D(this,e,X5,Z5,R,{})}},t0=Nc;function J5(i){let e,t;return e=new t0({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function $5(i){let e,t;return e=new e0({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function e6(i){let e,t,n,o,r=[$5,J5],s=[];function a(l,u){return l[1]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Je()},m(l,u){s[e].m(l,u),w(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e===c?s[e].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&y(n),s[e].d(l)}}}function t6(i,e,t){let n,{direction:o="left"}=e,r,s;return i.$$set=a=>{"direction"in a&&t(3,o=a.direction)},i.$$.update=()=>{i.$$.dirty&8&&(t(1,r=["up","down"].includes(o)),t(0,s=["right","down"].includes(o))),i.$$.dirty&1&&t(2,n=s?"transform: rotate(180deg);":void 0)},[s,r,n,o]}var Dc=class extends N{constructor(e){super(),D(this,e,t6,e6,R,{direction:3})}},mr=Dc;function i6(i){ve(i,"svelte-1yzc86r",".immersive-controls.svelte-1yzc86r{position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn)}.immersive-controls.m-shifted.svelte-1yzc86r{top:50px;left:20px}.button-block.svelte-1yzc86r{width:40px;height:40px;margin:auto auto;transform:rotate(45deg)}.button-row.svelte-1yzc86r{display:flex;flex-direction:row;position:relative}.button.svelte-1yzc86r{width:20px;height:20px;text-align:center;cursor:pointer}.button.svelte-1yzc86r svg{opacity:0.7;transition:opacity linear 0.2s}.button.button-up.svelte-1yzc86r svg{transform:rotate(-45deg) translate(-1px, -1px)}.button.button-right.svelte-1yzc86r svg{transform:rotate(45deg) translate(1px, -1px)}.button.button-down.svelte-1yzc86r svg{transform:rotate(135deg) translate(1px, -3px)}.button.button-left.svelte-1yzc86r svg{transform:rotate(-135deg) translate(-1px, -3px)}.button.svelte-1yzc86r:hover svg{opacity:1}")}function n6(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,T,k,H,S,v;return r=new mr({props:{direction:"up"}}),l=new mr({props:{direction:"up"}}),h=new mr({props:{direction:"up"}}),T=new mr({props:{direction:"up"}}),{c(){e=I("div"),t=I("div"),n=I("div"),o=I("div"),B(r.$$.fragment),s=Y(),a=I("div"),B(l.$$.fragment),u=Y(),c=I("div"),m=I("div"),B(h.$$.fragment),C=Y(),g=I("div"),B(T.$$.fragment),f(o,"class","button button-up svelte-1yzc86r"),f(a,"class","button button-right svelte-1yzc86r"),f(n,"class","button-row svelte-1yzc86r"),f(m,"class","button button-left svelte-1yzc86r"),f(g,"class","button button-down svelte-1yzc86r"),f(c,"class","button-row svelte-1yzc86r"),f(t,"class","button-block svelte-1yzc86r"),f(t,"aria-hidden","true"),f(e,"class","immersive-controls svelte-1yzc86r"),f(e,"tabindex","0"),f(e,"role","button"),f(e,"aria-label",k=j("aria_label_spherical_control")),K(e,"m-shifted",i[0])},m(E,q){w(E,e,q),_(e,t),_(t,n),_(n,o),L(r,o,null),_(n,s),_(n,a),L(l,a,null),_(t,u),_(t,c),_(c,m),L(h,m,null),_(c,C),_(c,g),L(T,g,null),H=!0,S||(v=[ke(o,"mousedown",i[1]),ke(o,"mouseup",i[5]),ke(o,"mouseleave",i[5]),ke(a,"mousedown",i[3]),ke(a,"mouseup",i[5]),ke(a,"mouseleave",i[5]),ke(m,"mousedown",i[4]),ke(m,"mouseup",i[5]),ke(m,"mouseleave",i[5]),ke(g,"mousedown",i[2]),ke(g,"mouseup",i[5]),ke(g,"mouseleave",i[5]),ke(e,"keydown",i[6]),ke(e,"keyup",i[7])],S=!0)},p(E,[q]){(!H||q&1)&&K(e,"m-shifted",E[0])},i(E){H||(d(r.$$.fragment,E),d(l.$$.fragment,E),d(h.$$.fragment,E),d(T.$$.fragment,E),H=!0)},o(E){p(r.$$.fragment,E),p(l.$$.fragment,E),p(h.$$.fragment,E),p(T.$$.fragment,E),H=!1},d(E){E&&y(e),V(r),V(l),V(h),V(T),S=!1,ct(v)}}}function o6(i,e,t){let{isShifted:n=!1}=e,o=ot(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},l=()=>{o.actions.internal.startCameraManualRotation(1,0)},u=()=>{o.actions.internal.startCameraManualRotation(-1,0)},c=()=>(o.actions.internal.stopCameraManualRotation(),null),m=C=>{if(r.has(C.code))switch(C.preventDefault(),C.stopPropagation(),C.code){case"ArrowUp":s();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":l();break}},h=C=>{r.has(C.code)&&(C.preventDefault(),C.stopPropagation(),c())};return i.$$set=C=>{"isShifted"in C&&t(0,n=C.isShifted)},[n,s,a,l,u,c,m,h]}var Oc=class extends N{constructor(e){super(),D(this,e,o6,n6,R,{isShifted:0},i6)}},Ml=Oc;function r6(i){ve(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 i0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function n0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function o0(i){let e,t;function n(s,a){return s[7]&&s[8]?a6:s[5]?l6:s6}let o=n(i,-1),r=o(i);return{c(){e=I("div"),t=I("span"),r.c(),f(t,"class","caption svelte-ovfyp5"),f(e,"class","subtitles-caption svelte-ovfyp5"),K(e,"mobile",i[3])},m(s,a){w(s,e,a),_(e,t),r.m(t,null)},p(s,a){o===(o=n(s,a))&&r?r.p(s,a):(r.d(1),r=o(s),r&&(r.c(),r.m(t,null))),a&8&&K(e,"mobile",s[3])},d(s){s&&y(e),r.d()}}}function s6(i){let e,t=wt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=r0(i0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=Je()},m(o,r){for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(o,r);w(o,e,r)},p(o,r){if(r&18){t=wt(o[1]);let s;for(s=0;s<t.length;s+=1){let a=i0(o,t,s);n[s]?n[s].p(a,r):(n[s]=r0(a),n[s].c(),n[s].m(e.parentNode,e))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(o){o&&y(e),mi(n,o)}}}function l6(i){let e,t,n=wt(i[6]),o=[];for(let r=0;r<n.length;r+=1)o[r]=l0(n0(i,n,r));return{c(){e=I("span"),t=I("span");for(let r=0;r<o.length;r+=1)o[r].c();f(t,"class","caption-segment svelte-ovfyp5"),bi(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,s){w(r,e,s),_(e,t);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(r,s){if(s&68){n=wt(r[6]);let a;for(a=0;a<n.length;a+=1){let l=n0(r,n,a);o[a]?o[a].p(l,s):(o[a]=l0(l),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}s&16&&bi(t,"font-size",r[4]+"px")},d(r){r&&y(e),mi(o,r)}}}function a6(i){let e,t,n=j("subtitles_auto_caption")+"",o;return{c(){e=I("span"),t=I("span"),o=He(n),f(t,"class","caption-segment svelte-ovfyp5"),bi(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,s){w(r,e,s),_(e,t),_(t,o)},p(r,s){s&16&&bi(t,"font-size",r[4]+"px")},d(r){r&&y(e)}}}function r0(i){let e,t,n=i[16]+"",o,r;return{c(){e=I("span"),t=I("span"),o=He(n),r=Y(),f(t,"class","caption-segment svelte-ovfyp5"),bi(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(s,a){w(s,e,a),_(e,t),_(t,o),_(e,r)},p(s,a){a&2&&n!==(n=s[16]+"")&&je(o,n),a&16&&bi(t,"font-size",s[4]+"px")},d(s){s&&y(e)}}}function s0(i){let e=i[16]+"",t;return{c(){t=He(e)},m(n,o){w(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&je(t,e)},d(n){n&&y(t)}}}function l0(i){let e,t=(!i[17]||i[17]<=i[2])&&s0(i);return{c(){t&&t.c(),e=Je()},m(n,o){t&&t.m(n,o),w(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=s0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&y(e),t&&t.d(n)}}}function u6(i){let e,t=i[1].length>0&&o0(i);return{c(){e=I("div"),t&&t.c(),f(e,"class","subtitles-container svelte-ovfyp5"),K(e,"shifted",i[0]),K(e,"auto",i[5]&&!i[8])},m(n,o){w(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=o0(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:me,o:me,d(n){n&&y(e),t&&t.d()}}}function c6(i,e,t){let n,o,{shifted:r}=e,{captions:s}=e,{position:a}=e,{playerSize:l}=e,{isMobile:u=!1}=e,c=ot(),m=Vt(),h=c.state.currentSubtitle$;O(i,h,v=>t(12,n=v));let C=c.state.isAutoSubtitleCaptionVisible$;O(i,C,v=>t(8,o=v));let g,T,k,H,S;return Lt(()=>{S=window.setTimeout(()=>{C.set(!1)},m.autoSubtitlesTimeout)}),eo(()=>{window.clearTimeout(S)}),i.$$set=v=>{"shifted"in v&&t(0,r=v.shifted),"captions"in v&&t(1,s=v.captions),"position"in v&&t(2,a=v.position),"playerSize"in v&&t(11,l=v.playerSize),"isMobile"in v&&t(3,u=v.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048){let v=l.width*.02;t(4,g=v<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:v)}i.$$.dirty&2&&t(5,T=s.some(v=>v.type==="timestamp")),i.$$.dirty&2&&t(6,k=s.reduce((v,{type:E,value:q})=>(E==="timestamp"?v.push({timeAppeared:Number(q),value:""}):v.length===0?v.push({value:String(q)}):v[v.length-1].value=String(q),v),[])),i.$$.dirty&4096&&t(7,H=!!n.isAuto)},[r,s,a,u,g,T,k,H,o,h,C,l,n]}var Fc=class extends N{constructor(e){super(),D(this,e,c6,u6,R,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},r6)}},Ll=Fc;function f6(i){ve(i,"svelte-raurnb",".wrapper.svelte-raurnb{height:100%;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.wrapper.bgCover.svelte-raurnb{background-size:cover}.icon_wrapper.svelte-raurnb{display:flex;flex-direction:column;align-items:center;width:400px}.icon.svelte-raurnb{width:50px;height:50px}.text.svelte-raurnb{margin-top:20px}")}function a0(i){let e,t,n;return{c(){e=I("div"),t=He("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=He(i[1]),f(e,"class","text svelte-raurnb")},m(o,r){w(o,e,r),_(e,t),_(e,n)},p(o,r){r&2&&je(n,o[1])},d(o){o&&y(e)}}}function d6(i){let e,t,n,o,r,s,a=i[1]&&a0(i);return{c(){e=I("div"),t=I("div"),t.innerHTML='<svg class="icon svelte-raurnb" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=Y(),a&&a.c(),f(t,"class","icon_wrapper svelte-raurnb"),f(e,"class","wrapper svelte-raurnb"),f(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${i[0]||""}')`),K(e,"bgCover",i[2].features.previewNoEmptySpace)},m(l,u){w(l,e,u),_(e,t),_(e,n),a&&a.m(e,null),r||(s=ke(e,"click",i[3]),r=!0)},p(l,[u]){l[1]?a?a.p(l,u):(a=a0(l),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&o!==(o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${l[0]||""}')`)&&f(e,"style",o)},i:me,o:me,d(l){l&&y(e),a&&a.d(),r=!1,s()}}}function m6(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e,r=Vt();function s(a){Dn.call(this,i,a)}return i.$$set=a=>{"thumbUrl"in a&&t(0,n=a.thumbUrl),"chromecastDeviceName"in a&&t(1,o=a.chromecastDeviceName)},[n,o,r,s]}var Hc=class extends N{constructor(e){super(),D(this,e,m6,d6,R,{thumbUrl:0,chromecastDeviceName:1},f6)}},Vl=Hc;function p6(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,l,l[1],n?Re(o,l[1],u,null):Ne(l[1]),null),we(e,a=qe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function _6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var qc=class extends N{constructor(e){super(),D(this,e,_6,p6,R,{})}},u0=qc;function h6(i){ve(i,"svelte-13zpvm8",".container.svelte-13zpvm8{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}")}function g6(i){let e,t,n;return t=new u0({}),{c(){e=I("div"),B(t.$$.fragment),f(e,"class","container svelte-13zpvm8")},m(o,r){w(o,e,r),L(t,e,null),n=!0},p:me,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),V(t)}}}var Uc=class extends N{constructor(e){super(),D(this,e,null,g6,R,{},h6)}},Rl=Uc;function b6(i){ve(i,"svelte-1xnh9dd",".container.svelte-1xnh9dd.svelte-1xnh9dd{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.svelte-1xnh9dd.svelte-1xnh9dd{opacity:0;visibility:hidden}.container.bgCover.svelte-1xnh9dd.svelte-1xnh9dd{background-size:cover}.playButton.svelte-1xnh9dd.svelte-1xnh9dd{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.svelte-1xnh9dd.svelte-1xnh9dd{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.svelte-1xnh9dd:hover .playButtonBackground.svelte-1xnh9dd{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.svelte-1xnh9dd svg{transform:scale(2)}")}function v6(i){let e,t,n,o,r,s,a,l,u,c;return r=new qo({}),{c(){e=I("div"),t=I("div"),n=I("div"),o=Y(),B(r.$$.fragment),f(n,"class","playButtonBackground svelte-1xnh9dd"),f(t,"class","playButton svelte-1xnh9dd"),f(t,"tabindex","0"),f(t,"role","button"),f(t,"aria-label",s=j("tooltip_play")),f(e,"class","container svelte-1xnh9dd"),f(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),K(e,"hidden",i[1]),K(e,"bgCover",i[4].features.previewNoEmptySpace)},m(m,h){w(m,e,h),_(e,t),_(t,n),_(t,o),L(r,t,null),l=!0,u||(c=[ke(t,"keydown",i[3]),ke(e,"click",bt(function(){xt(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(m,[h]){i=m,(!l||h&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&f(e,"style",a),(!l||h&2)&&K(e,"hidden",i[1])},i(m){l||(d(r.$$.fragment,m),l=!0)},o(m){p(r.$$.fragment,m),l=!1},d(m){m&&y(e),V(r),u=!1,ct(c)}}}function y6(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,s=ot(),a=Vt(),l=s.ui.startedByKeyboard$,u=c=>{let m=c.code;["Enter","Space"].includes(m)&&(c.stopPropagation(),c.preventDefault(),l.set(!0),r())};return i.$$set=c=>{"thumbUrl"in c&&t(0,n=c.thumbUrl),"hidden"in c&&t(1,o=c.hidden),"startVideo"in c&&t(2,r=c.startVideo)},[n,o,r,u,a]}var zc=class extends N{constructor(e){super(),D(this,e,y6,v6,R,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},b6)}get handlePressKey(){return this.$$.ctx[3]}},Bl=zc;function w6(i){ve(i,"svelte-1bcvcf2",`.title.svelte-1bcvcf2{position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
|
|
26
|
+
Audio: `),y=Oe(h),g=Y(),C=Oe(I),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(V,S){k(V,e,S),_(e,t),_(e,n),_(e,o),_(o,r),_(o,a),_(o,l),_(o,c),_(o,m),_(o,y),_(o,g),_(o,C)},p(V,S){S&1&&s!==(s=(V[0].videoCodec||"")+"")&&Ke(a,s),S&1&&u!==(u=V[0].hdr?"(HDR)":"")&&Ke(c,u),S&1&&h!==(h=(V[0].audioCodec||"")+"")&&Ke(y,h),S&1&&I!==(I=V[0].audioLanguage?`(${V[0].audioLanguage})`:"")&&Ke(C,I)},d(V){V&&w(e)}}}function C1(i){let e,t,n,o,r=i[0].viewport+"",s;return{c(){e=P("div"),t=P("div"),t.textContent="Viewport",n=Y(),o=P("span"),s=Oe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){k(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].viewport+"")&&Ke(s,r)},d(a){a&&w(e)}}}function S1(i){let e,t,n,o,r=i[0].videoSize+"",s;return{c(){e=P("div"),t=P("div"),t.textContent="Video size",n=Y(),o=P("span"),s=Oe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){k(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].videoSize+"")&&Ke(s,r)},d(a){a&&w(e)}}}function T1(i){let e,t,n,o,r=i[0].cdn+"",s;return{c(){e=P("div"),t=P("div"),t.textContent="CDN host",n=Y(),o=P("span"),s=Oe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){k(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].cdn+"")&&Ke(s,r)},d(a){a&&w(e)}}}function I1(i){let e,t,n,o,r=i[0].volume+"",s,a;return{c(){e=P("div"),t=P("div"),t.textContent="Volume",n=Y(),o=P("span"),s=Oe(r),a=Oe(" %"),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(l,u){k(l,e,u),_(e,t),_(e,n),_(e,o),_(o,s),_(o,a)},p(l,u){u&1&&r!==(r=l[0].volume+"")&&Ke(s,r)},d(l){l&&w(e)}}}function P1(i){let e,t,n,o,r=i[0].buffer.toFixed(2)+"",s,a;return{c(){e=P("div"),t=P("div"),t.textContent="Buffer",n=Y(),o=P("span"),s=Oe(r),a=Oe(" s"),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(l,u){k(l,e,u),_(e,t),_(e,n),_(e,o),_(o,s),_(o,a)},p(l,u){u&1&&r!==(r=l[0].buffer.toFixed(2)+"")&&Ke(s,r)},d(l){l&&w(e)}}}function E1(i){let e,t,n,o,r=[{value:i[0].currentVideoSegmentLength,title:"Video:"},{value:i[0].currentAudioSegmentLength,title:"Audio:"}].filter(L1).map(V1).join(" & ")+"",s;return{c(){e=P("div"),t=P("div"),t.textContent="Segment",n=Y(),o=P("span"),s=Oe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){k(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=[{value:a[0].currentVideoSegmentLength,title:"Video:"},{value:a[0].currentAudioSegmentLength,title:"Audio:"}].filter(L1).map(V1).join(" & ")+"")&&Ke(s,r)},d(a){a&&w(e)}}}function A1(i){let e,t,n,o,r,s,a=i[0].speed.toFixed(2)+"",l,u,c;return o=new el({props:{values:i[5]}}),{c(){e=P("div"),t=P("div"),t.textContent="Network",n=Y(),N(o.$$.fragment),r=Y(),s=P("span"),l=Oe(a),u=Oe(" Kbps"),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(m,h){k(m,e,h),_(e,t),_(e,n),R(o,e,null),_(e,r),_(e,s),_(s,l),_(s,u),c=!0},p(m,h){let y={};h&32&&(y.values=m[5]),o.$set(y),(!c||h&1)&&a!==(a=m[0].speed.toFixed(2)+"")&&Ke(l,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){p(o.$$.fragment,m),c=!1},d(m){m&&w(e),B(o)}}}function M1(i){let e,t,n,o,r,s,a=i[0].bitrate.toFixed(2)+"",l,u,c;return o=new el({props:{values:i[6]}}),{c(){e=P("div"),t=P("div"),t.textContent="V bitrate",n=Y(),N(o.$$.fragment),r=Y(),s=P("span"),l=Oe(a),u=Oe(" Kbps"),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(m,h){k(m,e,h),_(e,t),_(e,n),R(o,e,null),_(e,r),_(e,s),_(s,l),_(s,u),c=!0},p(m,h){let y={};h&64&&(y.values=m[6]),o.$set(y),(!c||h&1)&&a!==(a=m[0].bitrate.toFixed(2)+"")&&Ke(l,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){p(o.$$.fragment,m),c=!1},d(m){m&&w(e),B(o)}}}function Fg(i){let e,t,n,o,r,s,a,l,u=i[0].version+"",c,m,h,y,g,I,C,V,S,v,E,W,D,L,J,ue,Q,ee,X,x,ce,z,j,A,de,$,Ee,ne,ae,Ie,Te,Se,rt,Pe,qe=i[0].id&&v1(i),te=i[0].vsid&&y1(i),_e=i[0].provider&&w1(i),Ce=(i[0].videoCodec||i[0].audioCodec)&&k1(i),xe=i[0].viewport&&C1(i),ot=i[0].videoSize&&S1(i),at=i[0].cdn&&T1(i),st=i[0].volume&&I1(i),Je=i[0].buffer&&P1(i),fe=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&E1(i),Ze=i[0].speed&&A1(i),Me=i[0].bitrate&&M1(i);return Ee=new el({props:{values:i[4]}}),{c(){e=P("div"),t=P("button"),t.textContent="[x]",n=Y(),o=P("div"),r=P("div"),s=P("div"),s.textContent="Version",a=Y(),l=P("span"),c=Oe(u),m=Y(),qe&&qe.c(),h=Y(),te&&te.c(),y=Y(),_e&&_e.c(),g=Y(),Ce&&Ce.c(),I=Y(),xe&&xe.c(),C=Y(),ot&&ot.c(),V=Y(),at&&at.c(),S=Y(),st&&st.c(),v=Y(),Je&&Je.c(),E=Y(),fe&&fe.c(),W=Y(),D=P("div"),L=P("div"),L.textContent="Dropped",J=Y(),ue=P("span"),Q=Oe(i[2]),ee=Oe(" / "),X=Oe(i[1]),x=Oe(" frames"),ce=Y(),Ze&&Ze.c(),z=Y(),Me&&Me.c(),j=Y(),A=P("div"),de=P("div"),de.textContent="FPS",$=Y(),N(Ee.$$.fragment),ne=Y(),ae=P("span"),Ie=Oe(i[3]),f(t,"class","close svelte-k5ymwy"),f(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),f(s,"class","svelte-k5ymwy"),f(r,"class","svelte-k5ymwy"),f(L,"class","svelte-k5ymwy"),f(D,"class","svelte-k5ymwy"),f(de,"class","svelte-k5ymwy"),f(A,"class","svelte-k5ymwy"),f(o,"class","content svelte-k5ymwy"),f(e,"class","container svelte-k5ymwy"),f(e,"role","region"),f(e,"aria-label",Te=G("aria_label_debug_panel")),K(e,"container-mobile",i[7])},m(De,Qe){k(De,e,Qe),_(e,t),_(e,n),_(e,o),_(o,r),_(r,s),_(r,a),_(r,l),_(l,c),_(o,m),qe&&qe.m(o,null),_(o,h),te&&te.m(o,null),_(o,y),_e&&_e.m(o,null),_(o,g),Ce&&Ce.m(o,null),_(o,I),xe&&xe.m(o,null),_(o,C),ot&&ot.m(o,null),_(o,V),at&&at.m(o,null),_(o,S),st&&st.m(o,null),_(o,v),Je&&Je.m(o,null),_(o,E),fe&&fe.m(o,null),_(o,W),_(o,D),_(D,L),_(D,J),_(D,ue),_(ue,Q),_(ue,ee),_(ue,X),_(ue,x),_(o,ce),Ze&&Ze.m(o,null),_(o,z),Me&&Me.m(o,null),_(o,j),_(o,A),_(A,de),_(A,$),R(Ee,A,null),_(A,ne),_(A,ae),_(ae,Ie),Se=!0,rt||(Pe=ke(t,"click",vt(i[9])),rt=!0)},p(De,[Qe]){(!Se||Qe&1)&&u!==(u=De[0].version+"")&&Ke(c,u),De[0].id?qe?qe.p(De,Qe):(qe=v1(De),qe.c(),qe.m(o,h)):qe&&(qe.d(1),qe=null),De[0].vsid?te?te.p(De,Qe):(te=y1(De),te.c(),te.m(o,y)):te&&(te.d(1),te=null),De[0].provider?_e?_e.p(De,Qe):(_e=w1(De),_e.c(),_e.m(o,g)):_e&&(_e.d(1),_e=null),De[0].videoCodec||De[0].audioCodec?Ce?Ce.p(De,Qe):(Ce=k1(De),Ce.c(),Ce.m(o,I)):Ce&&(Ce.d(1),Ce=null),De[0].viewport?xe?xe.p(De,Qe):(xe=C1(De),xe.c(),xe.m(o,C)):xe&&(xe.d(1),xe=null),De[0].videoSize?ot?ot.p(De,Qe):(ot=S1(De),ot.c(),ot.m(o,V)):ot&&(ot.d(1),ot=null),De[0].cdn?at?at.p(De,Qe):(at=T1(De),at.c(),at.m(o,S)):at&&(at.d(1),at=null),De[0].volume?st?st.p(De,Qe):(st=I1(De),st.c(),st.m(o,v)):st&&(st.d(1),st=null),De[0].buffer?Je?Je.p(De,Qe):(Je=P1(De),Je.c(),Je.m(o,E)):Je&&(Je.d(1),Je=null),De[0].currentVideoSegmentLength||De[0].currentAudioSegmentLength?fe?fe.p(De,Qe):(fe=E1(De),fe.c(),fe.m(o,W)):fe&&(fe.d(1),fe=null),(!Se||Qe&4)&&Ke(Q,De[2]),(!Se||Qe&2)&&Ke(X,De[1]),De[0].speed?Ze?(Ze.p(De,Qe),Qe&1&&d(Ze,1)):(Ze=A1(De),Ze.c(),d(Ze,1),Ze.m(o,z)):Ze&&(se(),p(Ze,1,1,()=>{Ze=null}),le()),De[0].bitrate?Me?(Me.p(De,Qe),Qe&1&&d(Me,1)):(Me=M1(De),Me.c(),d(Me,1),Me.m(o,j)):Me&&(se(),p(Me,1,1,()=>{Me=null}),le());let He={};Qe&16&&(He.values=De[4]),Ee.$set(He),(!Se||Qe&8)&&Ke(Ie,De[3]),(!Se||Qe&128)&&K(e,"container-mobile",De[7])},i(De){Se||(d(Ze),d(Me),d(Ee.$$.fragment,De),Se=!0)},o(De){p(Ze),p(Me),p(Ee.$$.fragment,De),Se=!1},d(De){De&&w(e),qe&&qe.d(),te&&te.d(),_e&&_e.d(),Ce&&Ce.d(),xe&&xe.d(),ot&&ot.d(),at&&at.d(),st&&st.d(),Je&&Je.d(),fe&&fe.d(),Ze&&Ze.d(),Me&&Me.d(),B(Ee),rt=!1,Pe()}}}var L1=({value:i})=>i,V1=({value:i,title:e})=>`${e} ${((i!=null?i:0)/1e3).toFixed(2)} s`;function Hg(i,e,t){let n,o=nt(),r=o.ui.debugPanelVisible,s=o.ui.isMobile;q(i,s,v=>t(7,n=v));let a=()=>{b1.remove(ns),r.set(!1)},l=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),c=0,m=0,h=0,y=new Lr(60),g=new Lr(60),I=new Lr(60),C=[],V=[],S=[];return Ft(()=>{b1.set(ns,"true"),o.actions.internal.startLogging(),u&&(t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,c=u.getVideoPlaybackQuality().totalVideoFrames));let v=window.setInterval(()=>{t(0,l=o.actions.internal.getDebugPanelData())},500),E;return u&&(E=window.setInterval(()=>{if(u){t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames);let W=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=W-c),t(1,c=W),y.push(h),l.speed&&g.push(l.speed),l.bitrate&&I.push(l.bitrate),t(4,C=y.getValuesFromBottom()),t(5,V=g.getValuesFromBottom()),t(6,S=I.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(v),E&&clearInterval(E)}}),[l,c,m,h,C,V,S,n,s,a]}var xa=class extends H{constructor(e){super(),U(this,e,Hg,Fg,F,{},Og)}},tl=xa;function qg(i){ge(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 Ug(i){let e,t,n;return{c(){e=P("div"),f(e,"class","close svelte-1ome55p")},m(o,r){k(o,e,r),t||(n=ke(e,"click",vt(i[0])),t=!0)},p:me,i:me,o:me,d(o){o&&w(e),t=!1,n()}}}function zg(i){function e(t){On.call(this,i,t)}return[e]}var Ka=class extends H{constructor(e){super(),U(this,e,zg,Ug,F,{},qg)}},il=Ka;import{noop as Wg}from"@vkontakte/videoplayer-shared";function xg(i){ge(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 Kg(i){let e,t,n,o,r,s,a;return{c(){e=P("div"),t=P("canvas"),n=Y(),o=O("svg"),r=O("g"),s=O("g"),a=O("path"),f(t,"class","timer-canvas svelte-8jhsry"),f(t,"width","100"),f(t,"height","100"),f(a,"class","_play"),f(a,"d","m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z"),f(a,"fill","#fff"),f(s,"fill-rule","nonzero"),f(r,"fill","none"),f(r,"fill-rule","evenodd"),f(o,"class","timer-play-icon svelte-8jhsry"),f(o,"viewBox","0 0 24 24"),f(o,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","timer svelte-8jhsry")},m(l,u){k(l,e,u),_(e,t),i[3](t),_(e,n),_(e,o),_(o,r),_(r,s),_(s,a)},p:me,i:me,o:me,d(l){l&&w(e),i[3](null)}}}var R1=5e3;function jg(i,e,t){let{isRunning:n=!0}=e,{onTimerEnded:o=Wg}=e,r,s,a,l,u,c,m=()=>{n&&(l&&c&&(a=Date.now()-c*R1,l=!1),c=(Date.now()-a)/R1,c<1?(s==null||s.clearRect(0,0,100,100),s==null||s.beginPath(),s==null||s.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*c),s==null||s.stroke(),u=requestAnimationFrame(m)):o())};Ft(()=>{if(s=r.getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",a=Date.now(),()=>{cancelAnimationFrame(u)}});function h(y){be[y?"unshift":"push"](()=>{r=y,t(0,r)})}return i.$$set=y=>{"isRunning"in y&&t(1,n=y.isRunning),"onTimerEnded"in y&&t(2,o=y.onTimerEnded)},i.$$.update=()=>{i.$$.dirty&2&&(n?u=requestAnimationFrame(m):l=!0)},[r,n,o,h]}var ja=class extends H{constructor(e){super(),U(this,e,jg,Kg,F,{isRunning:1,onTimerEnded:2},xg)}},nl=ja;function Gg(i){ge(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 B1(i){let e,t;return e=new nl({props:{isRunning:i[3],onTimerEnded:i[6]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.isRunning=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Yg(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,I,C,V,S,v,E,W;a=new il({}),a.$on("click",i[7]);let D=i[2]&&B1(i);return{c(){e=P("div"),t=Y(),n=P("div"),o=P("div"),r=P("div"),r.textContent=`${G("end_screen_next_video")}`,s=Y(),N(a.$$.fragment),l=Y(),u=P("div"),c=P("div"),m=P("div"),h=P("div"),y=Y(),D&&D.c(),I=Y(),C=P("div"),V=P("div"),S=Oe(i[0]),f(e,"class","overlay svelte-kisfwc"),f(r,"class","caption svelte-kisfwc"),f(o,"class","top svelte-kisfwc"),f(h,"class","thumb-overlay svelte-kisfwc"),f(m,"class","thumb svelte-kisfwc"),f(m,"style",g=`background-image: url('${i[1]}')`),f(c,"class","column svelte-kisfwc"),f(V,"class","title svelte-kisfwc"),f(C,"class","column svelte-kisfwc"),f(u,"class","row svelte-kisfwc"),f(n,"class","next-video svelte-kisfwc")},m(L,J){k(L,e,J),k(L,t,J),k(L,n,J),_(n,o),_(o,r),_(o,s),R(a,o,null),_(n,l),_(n,u),_(u,c),_(c,m),_(m,h),_(m,y),D&&D.m(m,null),_(u,I),_(u,C),_(C,V),_(V,S),v=!0,E||(W=ke(u,"click",i[5]),E=!0)},p(L,[J]){L[2]?D?(D.p(L,J),J&4&&d(D,1)):(D=B1(L),D.c(),d(D,1),D.m(m,null)):D&&(se(),p(D,1,1,()=>{D=null}),le()),(!v||J&2&&g!==(g=`background-image: url('${L[1]}')`))&&f(m,"style",g),(!v||J&1)&&Ke(S,L[0])},i(L){v||(d(a.$$.fragment,L),d(D),v=!0)},o(L){p(a.$$.fragment,L),p(D),v=!1},d(L){L&&(w(e),w(t),w(n)),B(a),D&&D.d(),E=!1,W()}}}function Qg(i,e,t){let n,{title:o}=e,{thumb:r}=e,{playNextVideo:s}=e,a=nt(),l=a.ui.timerNextVideoRunning$;q(i,l,C=>t(3,n=C));let u=a.actions.internal.nextVideoAnnouncementClick,c=a.actions.internal.nextVideoAnnouncementAuto,m=a.actions.internal.nextVideoAnnouncementCancel,h=!0,y=()=>{s(),u()},g=()=>{s(),c()},I=()=>{h&&(t(2,h=!1),m())};return i.$$set=C=>{"title"in C&&t(0,o=C.title),"thumb"in C&&t(1,r=C.thumb),"playNextVideo"in C&&t(8,s=C.playNextVideo)},[o,r,h,n,l,y,g,I,s]}var Ga=class extends H{constructor(e){super(),U(this,e,Qg,Yg,F,{title:0,thumb:1,playNextVideo:8},Gg)}},N1=Ga;import{PlaybackState as fr}from"@vkontakte/videoplayer-core";import{checkNever as Xg}from"@vkontakte/videoplayer-shared";import{SeekAction as Tn}from"@vkontakte/videoplayer-statistics";var Ya=(i,e)=>Math.min(+(i+e).toFixed(2),1),Qa=(i,e)=>Math.max(+(i-e).toFixed(2),0),ol=(i,e,t)=>{let n=Ya(e,t);e<1&&i.actions.internal.setVolume(n)},rl=(i,e,t)=>{let n=Qa(e,t);e>0&&i.actions.internal.setVolume(n)};var Fo=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e==null||e(),!1):t?!0:(n==null||n(),!1);function Jg(i){ge(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function $g(i){let e,t,n,o,r,s=i[26].default,a=Le(s,i,i[25],null);return{c(){e=P("div"),a&&a.c(),f(e,"class","keyboard-controls svelte-10kkmxz"),f(e,"tabindex","-1"),f(e,"role","region"),f(e,"aria-label",t=G("aria_label_video_player"))},m(l,u){k(l,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(r=[ke(e,"keyup",i[17]),ke(e,"keydown",i[16])],o=!0)},p(l,u){a&&a.p&&(!n||u[0]&33554432)&&Re(a,s,l,l[25],n?Ve(s,l[25],u,null):Be(l[25]),null)},i(l){n||(d(a,l),n=!0)},o(l){p(a,l),n=!1},d(l){l&&w(e),a&&a.d(l),i[27](null),o=!1,ut(r)}}}function e2(i,e,t){var ct,ft;let n,o,r,s,a,l,u,c,m,h,y,g,I,C,V,{$$slots:S={},$$scope:v}=e,{isAds:E}=e,{hideContextMenu:W}=e,{toggleFullscreen:D}=e,{showHotKeyHelpers:L}=e,{showKeyMap:J}=e,{fakePlayButtonHandler:ue}=e,Q=nt(),ee=Bt(),X=Q.getLogger().createComponentLog("KeyboardControls component"),x=Q.state.playbackState$;q(i,x,he=>t(31,o=he));let ce=Q.ads.playbackState;q(i,ce,he=>t(30,n=he));let z=Q.state.positionExact$;q(i,z,he=>t(41,g=he));let j=Q.state.duration$;q(i,j,he=>t(40,y=he));let A=Q.state.volume$;q(i,A,he=>t(44,V=he));let de=Q.ui.controls.disabledControls$;q(i,de,he=>t(39,h=he));let $=Q.state.muted$;q(i,$,he=>t(34,a=he));let Ee=Q.state.currentSubtitle$;q(i,Ee,he=>t(33,s=he));let ne=Q.state.currentPlaybackRate$;q(i,ne,he=>t(42,I=he));let ae=Q.state.availablePlaybackRates$;q(i,ae,he=>t(43,C=he));let Ie=Q.ui.contextMenu.openedByHotKey$,Te=Q.ui.contextMenu.lastActiveElem$,Se=Q.ui.contextMenu.visible$,rt=Q.ui.contextMenu.position$,Pe=Q.state.isEnded$;q(i,Pe,he=>t(36,u=he));let qe=Q.ui.overlayContainer$;q(i,qe,he=>t(32,r=he));let te=(ct=Q.callbacks)==null?void 0:ct.onAudioDoesNotExistHint,_e=(ft=Q.callbacks)==null?void 0:ft.onAudioDisabledHint,Ce=Q.state.isAudioAvailable$;q(i,Ce,he=>t(35,l=he));let xe=Q.state.isAudioDisabled,ot=Q.state.isInteractiveTime$;q(i,ot,he=>t(38,m=he));let{showInteractiveTimeIndicatorTooltip$:at}=Fn();q(i,at,he=>t(37,c=he));let st=0,Je=!0,fe,Ze=()=>fe==null?void 0:fe.focus(),Me=he=>(he!==Je&&(Je=he,st=0),st+=1,(ee.controls.seekStepKeyboard+ee.controls.seekStepKeyboard*st)/1e3),De=he=>{var Nt;let pt=he.target,yt=(Nt=pt==null?void 0:pt.getAttribute("role"))==null?void 0:Nt.includes("menuitem"),It=pt.classList.contains("btn"),kt=he.code;if(It&&kt==="Space")return;let Ye=sd.has(kt);if(yt&&Ye)return;let Gt=!rd.has(kt);if(he.ctrlKey&&Gt||he.altKey&&Gt||he.metaKey)return;let ii=yt&&kt==="Escape";ld.has(kt)||ii||W();let Kt=o===fr.PLAYING||o===fr.PAUSED,Ht=E&&(n==="paused"||n==="playing"),Yt=!Ht&&!h.has("TIMELINE");if(Kt||Ht)switch(X({message:`key down, code: ${kt}`}),kt){case"KeyJ":case"ArrowLeft":{if(!Yt)break;if(he.ctrlKey||he.altKey){let We=Q.actions.internal.getPrevEpisode();Q.actions.internal.seekToPrevEpisode(We),We&&L({type:"EPISODE_PREV",text:We.text}),he.preventDefault()}else{let We=he.shiftKey?Me(!1):ee.controls.seekStepKeyboard/1e3,et=Math.max(g-We,0);g>0&&(Q.actions.internal.seekTime(et,Tn.DOUBLE_TAP),L({type:"BACKWARD_SEEK",text:We.toString()}),he.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Yt)break;if(he.ctrlKey||he.altKey){let We=Q.actions.internal.getNextEpisode();Q.actions.internal.seekToNextEpisode(We),We&&L({type:"EPISODE_NEXT",text:We.text}),he.preventDefault()}else{let We=he.shiftKey?Me(!0):ee.controls.seekStepKeyboard/1e3,et=Math.min(g+We,y);Math.round(g)<Math.round(y)&&(Q.actions.internal.seekTime(et,Tn.DOUBLE_TAP),L({type:"FORWARD_SEEK",text:We.toString()}),he.preventDefault())}break}case"ArrowUp":{if(Fo({isAudioDisabled:xe,audioDisabledHintCallback:_e,isAudioAvailable:l,audioIsNotExistHintCallback:te})){let We=V,et=ee.controls.volumeStepKeyboard,Pt=We<=1;if(ol(Q,We,et),Pt){let Qt=Math.round(Ya(We,et)*100).toString();L({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Qt}})}}he.preventDefault();break}case"ArrowDown":{if(Fo({isAudioDisabled:xe,audioDisabledHintCallback:_e,isAudioAvailable:l,audioIsNotExistHintCallback:te})){let We=V,et=ee.controls.volumeStepKeyboard,Pt=We>=0;if(rl(Q,We,et),Pt){let Qt=Math.round(Qa(We,et)*100).toString();L({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Qt}})}}he.preventDefault();break}case"Comma":{if(he.shiftKey){Q.actions.internal.decrementPlaybackRate();let We=C.find(et=>et.value===I);L({type:"RATE_DOWN",text:We==null?void 0:We.displayValue}),he.preventDefault()}else{if(Ht||o!==fr.PAUSED)break;let We=Math.max(g-ee.controls.seekStepFrame/1e3,0);g>0&&(L({type:"BACKWARD_SEEK"}),Q.actions.internal.clearDelayedBufferingCheckTimeout(),Q.actions.internal.seekTime(We,Tn.DOUBLE_TAP),he.preventDefault())}break}case"Period":{if(he.shiftKey){Q.actions.internal.incrementPlaybackRate();let We=C.find(et=>et.value===I);L({type:"RATE_UP",text:We==null?void 0:We.displayValue}),he.preventDefault()}else{if(Ht||o!==fr.PAUSED)break;let We=Math.min(g+ee.controls.seekStepFrame/1e3,y);g<y&&(L({type:"FORWARD_SEEK"}),Q.actions.internal.clearDelayedBufferingCheckTimeout(),Q.actions.internal.seekTime(We,Tn.DOUBLE_TAP),he.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(m&&c&&at.set(!1),ue)ue();else{Q.actions.internal.togglePlay();let We="PLAY";o===fr.PAUSED?We="PAUSE":u&&(We="REPLAY"),L({type:We})}he.preventDefault();break;case"KeyM":{Fo({isAudioDisabled:xe,audioDisabledHintCallback:_e,isAudioAvailable:l,audioIsNotExistHintCallback:te})&&(L({type:a?"VOLUME":"MUTE"}),Q.actions.internal.toggleMuted()),he.preventDefault();break}case"KeyF":D(),he.preventDefault();break;case"KeyC":Q.actions.internal.toggleSubtitle(),s.value!=="off"?L({type:"SUBTITLES_ON",text:s==null?void 0:s.displayValue}):L({type:"SUBTITLES_OFF"}),he.preventDefault();break;case"KeyI":Q.actions.internal.togglePictureInPicture(),he.preventDefault();break;case"Digit1":case"Numpad1":if(he.shiftKey){let We=c1(r);rt.set(We),Te.set(pt),Ie.set(!0),Se.set(!0),he.preventDefault();break}L(),Q.actions.internal.seekToPercent(.1,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit2":case"Numpad2":L(),Q.actions.internal.seekToPercent(.2,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit3":case"Numpad3":L(),Q.actions.internal.seekToPercent(.3,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit4":case"Numpad4":L(),Q.actions.internal.seekToPercent(.4,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit5":case"Numpad5":L(),Q.actions.internal.seekToPercent(.5,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit6":case"Numpad6":L(),Q.actions.internal.seekToPercent(.6,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit7":case"Numpad7":L(),Q.actions.internal.seekToPercent(.7,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit8":case"Numpad8":L(),Q.actions.internal.seekToPercent(.8,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit9":case"Numpad9":L(),Q.actions.internal.seekToPercent(.9,Tn.DOUBLE_TAP),he.preventDefault();break;case"Digit0":case"Numpad0":L(),Q.actions.internal.seekToPercent(0,Tn.DOUBLE_TAP),he.preventDefault();break;case"Slash":{he.shiftKey&&ee.features.hotKeyMapModal&&(J(),he.preventDefault());break}case"ShiftLeft":case"ShiftRight":he.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:Xg(kt);break}},Qe=he=>{let pt=he.code;if(he.ctrlKey||he.altKey||he.metaKey)return;let yt=o===fr.PLAYING||o===fr.PAUSED,It=E&&(n==="paused"||n==="playing");if(yt||It)switch(pt){case"ShiftLeft":case"ShiftRight":st=0;break}};function He(he){be[he?"unshift":"push"](()=>{fe=he,t(0,fe)})}return i.$$set=he=>{"isAds"in he&&t(18,E=he.isAds),"hideContextMenu"in he&&t(19,W=he.hideContextMenu),"toggleFullscreen"in he&&t(20,D=he.toggleFullscreen),"showHotKeyHelpers"in he&&t(21,L=he.showHotKeyHelpers),"showKeyMap"in he&&t(22,J=he.showKeyMap),"fakePlayButtonHandler"in he&&t(23,ue=he.fakePlayButtonHandler),"$$scope"in he&&t(25,v=he.$$scope)},[fe,x,ce,z,j,A,de,$,Ee,ne,ae,Pe,qe,Ce,ot,at,De,Qe,E,W,D,L,J,ue,Ze,v,S,He]}var Za=class extends H{constructor(e){super(),U(this,e,e2,$g,F,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},Jg,[-1,-1])}get focus(){return this.$$.ctx[24]}},D1=Za;function t2(i){ge(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 i2(i){let e,t,n,o,r,s;return{c(){e=P("div"),t=P("div"),n=Y(),o=P("div"),r=Y(),s=P("div"),f(t,"class","dot svelte-8nkw5s"),f(o,"class","dot svelte-8nkw5s"),f(s,"class","dot svelte-8nkw5s"),f(e,"class","container svelte-8nkw5s"),f(e,"style",i[0])},m(a,l){k(a,e,l),_(e,t),_(e,n),_(e,o),_(e,r),_(e,s)},p(a,[l]){l&1&&f(e,"style",a[0])},i:me,o:me,d(a){a&&w(e)}}}function n2(i,e,t){let{style:n=""}=e;return i.$$set=o=>{"style"in o&&t(0,n=o.style)},[n]}var Xa=class extends H{constructor(e){super(),U(this,e,n2,i2,F,{style:0},t2)}},Vr=Xa;function o2(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,I=i[2].default,C=Le(I,i,i[1],null),V=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],S={};for(let v=0;v<V.length;v+=1)S=re(S,V[v]);return{c(){e=O("svg"),C&&C.c(),t=O("g"),n=O("path"),o=O("path"),r=O("defs"),s=O("filter"),a=O("feFlood"),l=O("feColorMatrix"),u=O("feOffset"),c=O("feGaussianBlur"),m=O("feColorMatrix"),h=O("feBlend"),y=O("feBlend"),f(n,"fill","#fff"),f(n,"d","M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2422_111980"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2422_111980"),f(y,"result","shape"),f(s,"id","a"),f(s,"width","23"),f(s,"height","23"),f(s,"x",".5"),f(s,"y",".5"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),ye(e,S)},m(v,E){k(v,e,E),C&&C.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,y),g=!0},p(v,[E]){C&&C.p&&(!g||E&2)&&Re(C,I,v,v[1],g?Ve(I,v[1],E,null):Be(v[1]),null),ye(e,S=Fe(V,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},E&1&&v[0]]))},i(v){g||(d(C,v),g=!0)},o(v){p(C,v),g=!1},d(v){v&&w(e),C&&C.d(v)}}}function r2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Ja=class extends H{constructor(e){super(),U(this,e,r2,o2,F,{})}},O1=Ja;import{noop as Eo}from"@vkontakte/videoplayer-shared";function s2(i){ge(i,"svelte-wr0kwr",".btn.svelte-wr0kwr{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center}.w-max.svelte-wr0kwr{width:100%}.btn--live.svelte-wr0kwr{padding:10px 4px}.btn-jc-l.svelte-wr0kwr{justify-content:left}.btn-m.svelte-wr0kwr{position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.btn-m--play.svelte-wr0kwr{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn-m--play.svelte-wr0kwr svg{transform:scale(2)}.btn-m--prev.svelte-wr0kwr,.btn-m--next.svelte-wr0kwr{position:absolute;width:50px;height:50px}.btn-m--prev.svelte-wr0kwr{right:calc(100% + 35px)}.btn-m--next.svelte-wr0kwr{left:calc(100% + 35px)}.btn.svelte-wr0kwr:disabled{cursor:default;pointer-events:none}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-wr0kwr:not(:disabled):hover{opacity:0.8}.pr-0.svelte-wr0kwr{padding-right:0}.pl-0.svelte-wr0kwr{padding-left:0}")}function l2(i){let e,t,n,o,r,s,a,l,u,c,m,h,y=i[14].default,g=Le(y,i,i[13],null);return{c(){var I,C,V,S,v,E;e=P("button"),g&&g.c(),f(e,"class",t="btn "+i[1]+" svelte-wr0kwr"),f(e,"style",n=i[2]||null),e.disabled=o=(I=i[3])!=null?I:null,f(e,"aria-hidden",r=(C=i[5])!=null?C:null),f(e,"aria-label",s=(V=i[6])!=null?V:null),f(e,"aria-keyshortcuts",a=(S=i[7])!=null?S:null),f(e,"aria-expanded",l=(v=i[8])!=null?v:null),f(e,"data-testid",u=(E=i[4])!=null?E:null),f(e,"tabindex",i[9])},m(I,C){k(I,e,C),g&&g.m(e,null),i[16](e),c=!0,m||(h=[ke(e,"pointerdown",vt(i[15])),ke(e,"click",vt(function(){ti(i[10]===Eo?null:i[10])&&(i[10]===Eo?null:i[10]).apply(this,arguments)})),ke(e,"focus",ui(function(){ti(i[11]===Eo?null:i[11])&&(i[11]===Eo?null:i[11]).apply(this,arguments)})),ke(e,"blur",ui(function(){ti(i[12]===Eo?null:i[12])&&(i[12]===Eo?null:i[12]).apply(this,arguments)}))],m=!0)},p(I,[C]){var V,S,v,E,W,D;i=I,g&&g.p&&(!c||C&8192)&&Re(g,y,i,i[13],c?Ve(y,i[13],C,null):Be(i[13]),null),(!c||C&2&&t!==(t="btn "+i[1]+" svelte-wr0kwr"))&&f(e,"class",t),(!c||C&4&&n!==(n=i[2]||null))&&f(e,"style",n),(!c||C&8&&o!==(o=(V=i[3])!=null?V:null))&&(e.disabled=o),(!c||C&32&&r!==(r=(S=i[5])!=null?S:null))&&f(e,"aria-hidden",r),(!c||C&64&&s!==(s=(v=i[6])!=null?v:null))&&f(e,"aria-label",s),(!c||C&128&&a!==(a=(E=i[7])!=null?E:null))&&f(e,"aria-keyshortcuts",a),(!c||C&256&&l!==(l=(W=i[8])!=null?W:null))&&f(e,"aria-expanded",l),(!c||C&16&&u!==(u=(D=i[4])!=null?D:null))&&f(e,"data-testid",u),(!c||C&512)&&f(e,"tabindex",i[9])},i(I){c||(d(g,I),c=!0)},o(I){p(g,I),c=!1},d(I){I&&w(e),g&&g.d(I),i[16](null),m=!1,ut(h)}}}function a2(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:r=""}=e,{style:s=""}=e,{disabled:a=void 0}=e,{testId:l=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:c=void 0}=e,{ref:m=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:y=void 0}=e,{tabIndex:g=0}=e,{click:I=Eo}=e,{focus:C=Eo}=e,{blur:V=Eo}=e;function S(E){On.call(this,i,E)}function v(E){be[E?"unshift":"push"](()=>{m=E,t(0,m)})}return i.$$set=E=>{"className"in E&&t(1,r=E.className),"style"in E&&t(2,s=E.style),"disabled"in E&&t(3,a=E.disabled),"testId"in E&&t(4,l=E.testId),"ariaHidden"in E&&t(5,u=E.ariaHidden),"ariaLabel"in E&&t(6,c=E.ariaLabel),"ref"in E&&t(0,m=E.ref),"ariaKeyShortCut"in E&&t(7,h=E.ariaKeyShortCut),"ariaExpanded"in E&&t(8,y=E.ariaExpanded),"tabIndex"in E&&t(9,g=E.tabIndex),"click"in E&&t(10,I=E.click),"focus"in E&&t(11,C=E.focus),"blur"in E&&t(12,V=E.blur),"$$scope"in E&&t(13,o=E.$$scope)},[m,r,s,a,l,u,c,h,y,g,I,C,V,o,n,S,v]}var $a=class extends H{constructor(e){super(),U(this,e,a2,l2,F,{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},s2)}},bt=$a;function u2(i){ge(i,"svelte-1witlsj",".modal-overlay.svelte-1witlsj{position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center}.modal-container.svelte-1witlsj{display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px}.modal-header.svelte-1witlsj{box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24)}.modal-title.svelte-1witlsj{margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.modal-scroll.svelte-1witlsj{overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%}.modal-scroll.svelte-1witlsj::-webkit-scrollbar{width:8px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track{box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.svelte-1witlsj{margin:-8px -4px 0 0}")}function F1(i){let e,t,n,o,r,s=i[2]&&H1(i);return{c(){e=P("div"),t=P("h3"),n=Oe(i[3]),o=Y(),s&&s.c(),f(t,"class","modal-title svelte-1witlsj"),f(e,"class","modal-header svelte-1witlsj")},m(a,l){k(a,e,l),_(e,t),_(t,n),_(e,o),s&&s.m(e,null),r=!0},p(a,l){(!r||l&8)&&Ke(n,a[3]),a[2]?s?(s.p(a,l),l&4&&d(s,1)):(s=H1(a),s.c(),d(s,1),s.m(e,null)):s&&(se(),p(s,1,1,()=>{s=null}),le())},i(a){r||(d(s),r=!0)},o(a){p(s),r=!1},d(a){a&&w(e),s&&s.d()}}}function H1(i){let e,t;return e=new bt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:G("hotkey_map_modal_close_btn_text"),$$slots:{default:[c2]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.click=n[0]),o&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function c2(i){let e,t;return e=new O1({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function f2(i){let e,t,n,o,r,s,a=i[1]&&F1(i),l=i[4].default,u=Le(l,i,i[5],null);return{c(){e=P("div"),t=P("div"),a&&a.c(),n=Y(),o=P("div"),r=P("div"),u&&u.c(),f(r,"class","modal-main svelte-1witlsj"),f(o,"class","modal-scroll svelte-1witlsj"),f(t,"class","modal-container svelte-1witlsj"),f(e,"class","modal-overlay svelte-1witlsj")},m(c,m){k(c,e,m),_(e,t),a&&a.m(t,null),_(t,n),_(t,o),_(o,r),u&&u.m(r,null),s=!0},p(c,[m]){c[1]?a?(a.p(c,m),m&2&&d(a,1)):(a=F1(c),a.c(),d(a,1),a.m(t,n)):a&&(se(),p(a,1,1,()=>{a=null}),le()),u&&u.p&&(!s||m&32)&&Re(u,l,c,c[5],s?Ve(l,c[5],m,null):Be(c[5]),null)},i(c){s||(d(a),d(u,c),s=!0)},o(c){p(a),p(u,c),s=!1},d(c){c&&w(e),a&&a.d(),u&&u.d(c)}}}function d2(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:r}=e,{showHeader:s=!0}=e,{showCloseCross:a=!0}=e,{title:l}=e;return i.$$set=u=>{"onClose"in u&&t(0,r=u.onClose),"showHeader"in u&&t(1,s=u.showHeader),"showCloseCross"in u&&t(2,a=u.showCloseCross),"title"in u&&t(3,l=u.title),"$$scope"in u&&t(5,o=u.$$scope)},[r,s,a,l,n,o]}var eu=class extends H{constructor(e){super(),U(this,e,d2,f2,F,{onClose:0,showHeader:1,showCloseCross:2,title:3},u2)}},q1=eu;var m2=new Set(["BR"]),tu=i=>{var o;let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let r=t[n],s=r.tagName;m2.has(s)||(o=r.parentElement)==null||o.removeChild(r)}return e.innerHTML};function p2(i){ge(i,"svelte-quklnq",".hot-key-map.svelte-quklnq{color:var(--black);box-sizing:border-box;overflow-x:hidden}.hot-key-map-group.svelte-quklnq{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.svelte-quklnq:last-child{border-bottom:none}.hot-key-map-group-title.svelte-quklnq{color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.hot-key-map-group-title.svelte-quklnq,.hot-key-map-item.svelte-quklnq{padding:12px 0;margin:0;width:100%}.hot-key-map-group-items.svelte-quklnq{box-sizing:border-box;list-style:none;padding:0;margin:0}.hot-key-map-item.svelte-quklnq{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.svelte-quklnq{color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px}.hot-key-map-item-value.svelte-quklnq{color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px}.hot-key-map-item-description.svelte-quklnq,.hot-key-map-item-value.svelte-quklnq{font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}")}function U1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function z1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function W1(i){let e,t,n=tu(i[9])+"",o,r,s=i[10]+"",a,l;return{c(){e=P("li"),t=P("span"),o=Y(),r=P("span"),a=Oe(s),l=Y(),f(t,"class","hot-key-map-item-description svelte-quklnq"),f(r,"class","hot-key-map-item-value svelte-quklnq"),f(e,"class","hot-key-map-item svelte-quklnq")},m(u,c){k(u,e,c),_(e,t),t.innerHTML=n,_(e,o),_(e,r),_(r,a),_(e,l)},p(u,c){c&1&&n!==(n=tu(u[9])+"")&&(t.innerHTML=n),c&1&&s!==(s=u[10]+"")&&Ke(a,s)},d(u){u&&w(e)}}}function x1(i){let e,t,n=i[5]+"",o,r,s,a,l=Tt(i[6]),u=[];for(let c=0;c<l.length;c+=1)u[c]=W1(z1(i,l,c));return{c(){e=P("div"),t=P("h5"),o=Oe(n),r=Y(),s=P("ul");for(let c=0;c<u.length;c+=1)u[c].c();a=Y(),f(t,"class","hot-key-map-group-title svelte-quklnq"),f(s,"class","hot-key-map-group-items svelte-quklnq"),f(e,"class","hot-key-map-group svelte-quklnq")},m(c,m){k(c,e,m),_(e,t),_(t,o),_(e,r),_(e,s);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(s,null);_(e,a)},p(c,m){if(m&1&&n!==(n=c[5]+"")&&Ke(o,n),m&1){l=Tt(c[6]);let h;for(h=0;h<l.length;h+=1){let y=z1(c,l,h);u[h]?u[h].p(y,m):(u[h]=W1(y),u[h].c(),u[h].m(s,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=l.length}},d(c){c&&w(e),pi(u,c)}}}function _2(i){let e,t=Tt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=x1(U1(i,t,o));return{c(){e=P("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","hot-key-map svelte-quklnq")},m(o,r){k(o,e,r);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(e,null)},p(o,r){if(r&1){t=Tt(o[0].groups);let s;for(s=0;s<t.length;s+=1){let a=U1(o,t,s);n[s]?n[s].p(a,r):(n[s]=x1(a),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(o){o&&w(e),pi(n,o)}}}function h2(i){let e,t;return e=new q1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[_2]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.title=n[0].title),o&8193&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function g2(i,e,t){let n,o=nt(),{data:r,show:s}=o.ui.modals.hotKeyMap;return q(i,r,l=>t(0,n=l)),[n,r,()=>{s.set(!1)}]}var iu=class extends H{constructor(e){super(),U(this,e,g2,h2,F,{},p2)}},K1=iu;import{noop as Up}from"@vkontakte/videoplayer-shared";var sl;function Rr(i){return sl||(sl=new ResizeObserver(e=>{for(let t of e)t.target.dispatchEvent(new CustomEvent("fd:resize"))})),sl.observe(i),{destroy(){sl.unobserve(i)}}}import{ChromecastState as $m,PlaybackState as vc}from"@vkontakte/videoplayer-core";import"@vkontakte/videoplayer-shared";function b2(i){ge(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 v2(i){let e,t,n=i[1].default,o=Le(n,i,i[0],null);return{c(){e=P("div"),o&&o.c(),f(e,"class","pillow svelte-1oe0j8n")},m(r,s){k(r,e,s),o&&o.m(e,null),t=!0},p(r,[s]){o&&o.p&&(!t||s&1)&&Re(o,n,r,r[0],t?Ve(n,r[0],s,null):Be(r[0]),null)},i(r){t||(d(o,r),t=!0)},o(r){p(o,r),t=!1},d(r){r&&w(e),o&&o.d(r)}}}function y2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var nu=class extends H{constructor(e){super(),U(this,e,y2,v2,F,{},b2)}},j1=nu;import{VideoQuality as ls}from"@vkontakte/videoplayer-shared";function w2(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=O("svg"),s&&s.c(),t=O("path"),n=O("path"),f(t,"fill","currentColor"),f(t,"d","M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z"),f(n,"clip-rule","evenodd"),ye(e,l)},m(u,c){k(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),ye(e,l=Fe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&w(e),s&&s.d(u)}}}function k2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var ou=class extends H{constructor(e){super(),U(this,e,k2,w2,F,{})}},G1=ou;function C2(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=O("svg"),s&&s.c(),t=O("path"),n=O("path"),f(t,"fill","currentColor"),f(t,"d","M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524"),f(n,"clip-rule","evenodd"),ye(e,l)},m(u,c){k(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),ye(e,l=Fe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&w(e),s&&s.d(u)}}}function S2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var ru=class extends H{constructor(e){super(),U(this,e,S2,C2,F,{})}},Y1=ru;function T2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","currentColor"),f(t,"d","M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function I2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var su=class extends H{constructor(e){super(),U(this,e,I2,T2,F,{})}},Q1=su;function P2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","currentColor"),f(t,"d","M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function E2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var lu=class extends H{constructor(e){super(),U(this,e,E2,P2,F,{})}},ll=lu;function A2(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=O("svg"),s&&s.c(),t=O("path"),n=O("path"),f(t,"fill","currentColor"),f(t,"d","M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02"),f(n,"clip-rule","evenodd"),ye(e,l)},m(u,c){k(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),ye(e,l=Fe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&w(e),s&&s.d(u)}}}function M2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var au=class extends H{constructor(e){super(),U(this,e,M2,A2,F,{})}},al=au;var ul=i=>{switch(i){case ls.Q_720P:return Q1;case ls.Q_1080P:return ll;case ls.Q_1440P:return al;case ls.Q_2160P:return G1;case ls.Q_4320P:return Y1}};function L2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"d","M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function V2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var uu=class extends H{constructor(e){super(),U(this,e,V2,L2,F,{})}},Z1=uu;function R2(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=O("svg"),s&&s.c(),t=O("path"),n=O("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"),f(n,"class","_full"),ye(e,l)},m(u,c){k(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),ye(e,l=Fe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&w(e),s&&s.d(u)}}}function B2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var cu=class extends H{constructor(e){super(),U(this,e,B2,R2,F,{})}},X1=cu;function N2(i){ge(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 D2(i){let e,t,n,o,r=i[1]&&J1(i);return n=new X1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=P("div"),r&&r.c(),t=Y(),N(n.$$.fragment),f(e,"class","icon svelte-8t5w85"),f(e,"aria-hidden","true"),K(e,"triple",i[2])},m(s,a){k(s,e,a),r&&r.m(e,null),_(e,t),R(n,e,null),o=!0},p(s,a){s[1]?r?(r.p(s,a),a&2&&d(r,1)):(r=J1(s),r.c(),d(r,1),r.m(e,t)):r&&(se(),p(r,1,1,()=>{r=null}),le());let l={};a&2&&(l["data-testid"]=s[1]?"settings-icon--labeled":"settings-icon"),n.$set(l),(!o||a&4)&&K(e,"triple",s[2])},i(s){o||(d(r),d(n.$$.fragment,s),o=!0)},o(s){p(r),p(n.$$.fragment,s),o=!1},d(s){s&&w(e),r&&r.d(),B(n)}}}function O2(i){let e,t;return e=new Z1({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function J1(i){let e,t;return e=new j1({props:{$$slots:{default:[F2]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&18&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function F2(i){let e,t,n;var o=i[1];function r(s,a){return{}}return o&&(e=Ot(o,r(i))),{c(){e&&N(e.$$.fragment),t=$e()},m(s,a){e&&R(e,s,a),k(s,t,a),n=!0},p(s,a){if(a&2&&o!==(o=s[1])){if(e){se();let l=e;p(l.$$.fragment,1,0,()=>{B(l,1)}),le()}o?(e=Ot(o,r(s,a)),N(e.$$.fragment),d(e.$$.fragment,1),R(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&w(t),e&&B(e,s)}}}function H2(i){let e,t,n,o,r=[O2,D2],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=$e()},m(l,u){s[e].m(l,u),k(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e===c?s[e].p(l,u):(se(),p(s[c],1,1,()=>{s[c]=null}),le(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),s[e].d(l)}}}function q2(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:r=void 0}=e,s;return i.$$set=a=>{"isMobile"in a&&t(0,o=a.isMobile),"currentQuality"in a&&t(3,r=a.currentQuality)},i.$$.update=()=>{i.$$.dirty&8&&t(1,n=ul(r)),i.$$.dirty&2&&t(2,s=!!n&&[ll,al].includes(n))},[o,n,s,r]}var fu=class extends H{constructor(e){super(),U(this,e,q2,H2,F,{isMobile:0,currentQuality:3},N2)}},cl=fu;function U2(i){ge(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function z2(i){let e,t,n;return t=new cl({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=P("span"),N(t.$$.fragment),f(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){k(o,e,r),R(t,e,null),n=!0},p(o,r){let s={};r&8&&(s.isMobile=o[3]),r&16&&(s.currentQuality=o[4]),t.$set(s)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),B(t)}}}function W2(i){let e,t,n;function o(s){i[10](s)}let r={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[z2]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"opened":""),a&4&&(l.ariaLabel=s[2]),a&2&&(l.ariaExpanded=s[1]),a&16408&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function x2(i,e,t){let n,o,r,{ref$:s}=e,a=nt(),l=a.state.currentQuality$;q(i,l,V=>t(4,r=V));let u=a.ui.settingsMenu.visible$;q(i,u,V=>t(1,n=V));let c=a.actions.internal.openSettingsMenu,m=a.actions.internal.closeSettingsMenu,h=a.ui.isMobile;q(i,h,V=>t(3,o=V));let y,g;function I(V){return mt(this,null,function*(){let S=Er(V);n?m():c(S,cn)})}function C(V){y=V,t(0,y)}return i.$$set=V=>{"ref$"in V&&t(9,s=V.ref$)},i.$$.update=()=>{i.$$.dirty&513&&s&&s.set(y),i.$$.dirty&2&&t(2,g=n?G("tooltip_settings_on"):G("tooltip_settings_off"))},[y,n,g,o,r,l,u,h,I,s,C]}var du=class extends H{constructor(e){super(),U(this,e,x2,W2,F,{ref$:9},U2)}},as=du;function K2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"d","M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function j2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var mu=class extends H{constructor(e){super(),U(this,e,j2,K2,F,{})}},$1=mu;function G2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"d","M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function Y2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var pu=class extends H{constructor(e){super(),U(this,e,Y2,G2,F,{})}},fl=pu;function Q2(i){let e,t;return e=new fl({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Z2(i){let e,t;return e=new $1({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function X2(i){let e,t,n,o,r=[Z2,Q2],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=$e()},m(l,u){s[e].m(l,u),k(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e!==c&&(se(),p(s[c],1,1,()=>{s[c]=null}),le(),t=s[e],t||(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),s[e].d(l)}}}function J2(i){let e,t;return e=new bt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:go.KeyC,$$slots:{default:[X2]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function $2(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,r;return i.$$set=s=>{"isSubtitlesEnabled"in s&&t(0,n=s.isSubtitlesEnabled),"click"in s&&t(1,o=s.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=n?G("tooltip_subtitles_on"):G("tooltip_subtitles_off"))},[n,o,r]}var _u=class extends H{constructor(e){super(),U(this,e,$2,J2,F,{isSubtitlesEnabled:0,click:1})}},em=_u;function eb(i){ge(i,"svelte-19o2urr",".time.svelte-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.svelte-19o2urr{padding:0 0 0 8px}.current.svelte-19o2urr{position:relative}.duration.svelte-19o2urr{opacity:0.7}.duration.svelte-19o2urr:before{content:' / ';white-space:pre}")}function tm(i){let e,t;return{c(){e=P("span"),t=Oe(i[3]),f(e,"class","duration svelte-19o2urr")},m(n,o){k(n,e,o),_(e,t)},p(n,o){o&8&&Ke(t,n[3])},d(n){n&&w(e)}}}function tb(i){let e,t,n,o,r=i[2]&&tm(i);return{c(){e=P("div"),t=P("span"),n=Oe(i[4]),o=Y(),r&&r.c(),f(t,"class","current svelte-19o2urr"),f(e,"class","time svelte-19o2urr"),K(e,"mobile",i[1])},m(s,a){k(s,e,a),_(e,t),_(t,n),_(e,o),r&&r.m(e,null),i[7](e)},p(s,[a]){a&16&&Ke(n,s[4]),s[2]?r?r.p(s,a):(r=tm(s),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&K(e,"mobile",s[1])},i:me,o:me,d(s){s&&w(e),r&&r.d(),i[7](null)}}}function ib(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:r}=e,{showDuration:s=!0}=e,{ref:a}=e,l,u;function c(m){be[m?"unshift":"push"](()=>{a=m,t(0,a)})}return i.$$set=m=>{"isMobile"in m&&t(1,n=m.isMobile),"duration"in m&&t(5,o=m.duration),"position"in m&&t(6,r=m.position),"showDuration"in m&&t(2,s=m.showDuration),"ref"in m&&t(0,a=m.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,l=Hn(o)),i.$$.dirty&64&&t(4,u=Hn(r))},[a,n,s,l,u,o,r,c]}var hu=class extends H{constructor(e){super(),U(this,e,ib,tb,F,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},eb)}},dl=hu;import{noop as qo}from"@vkontakte/videoplayer-shared";function nb(i){ge(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 ob(i){let e,t,n,o,r,s;return{c(){e=O("svg"),t=O("g"),n=O("path"),o=O("path"),r=O("path"),f(n,"class","wave2 svelte-1n5yyua"),f(n,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"),f(o,"class","wave1 svelte-1n5yyua"),f(o,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"),f(r,"class","cross svelte-1n5yyua"),f(r,"d","m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(e,"data-value",i[0]),f(e,"data-testid",s="volume-"+i[0]+"-icon"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","icon svelte-1n5yyua"),f(e,"aria-hidden","true")},m(a,l){k(a,e,l),_(e,t),_(t,n),_(t,o),_(t,r)},p(a,[l]){l&1&&f(e,"data-value",a[0]),l&1&&s!==(s="volume-"+a[0]+"-icon")&&f(e,"data-testid",s)},i:me,o:me,d(a){a&&w(e)}}}function rb(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,r=(a,l)=>l?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",s;return i.$$set=a=>{"volume"in a&&t(1,n=a.volume),"muted"in a&&t(2,o=a.muted)},i.$$.update=()=>{i.$$.dirty&6&&t(0,s=r(n,o))},[s,n,o]}var gu=class extends H{constructor(e){super(),U(this,e,rb,ob,F,{volume:1,muted:2},nb)}},dr=gu;import{noop as so}from"@vkontakte/videoplayer-shared";import{noop as mb}from"@vkontakte/videoplayer-shared";import{noop as ab}from"@vkontakte/videoplayer-shared";function sb(i){let e,t,n=i[4].default,o=Le(n,i,i[3],null);return{c(){e=P("div"),o&&o.c(),f(e,"class","overlay")},m(r,s){k(r,e,s),o&&o.m(e,null),i[5](e),t=!0},p(r,[s]){o&&o.p&&(!t||s&8)&&Re(o,n,r,r[3],t?Ve(n,r[3],s,null):Be(r[3]),null)},i(r){t||(d(o,r),t=!0)},o(r){p(o,r),t=!1},d(r){r&&w(e),o&&o.d(r),i[5](null)}}}function lb(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=nt().ui.overlayContainer$;q(i,a,h=>t(2,n=h));let l,u=h=>{!h||!l||!h.contains(l)||h.removeChild(l)},c=h=>{!h||!l||h.contains(l)||h.appendChild(l)};Ft(()=>(c(n),()=>u(n)));function m(h){be[h?"unshift":"push"](()=>{l=h,t(0,l)})}return i.$$set=h=>{"$$scope"in h&&t(3,r=h.$$scope)},i.$$.update=()=>{i.$$.dirty&4&&c(n)},[l,a,n,r,o,m]}var bu=class extends H{constructor(e){super(),U(this,e,lb,sb,F,{})}},im=bu;function ub(i){ge(i,"svelte-1jbbzcj",'.tooltip-wrapper.svelte-1jbbzcj{display:flex;flex-direction:column;min-width:0}.full-width.svelte-1jbbzcj{width:100%}.tooltip.svelte-1jbbzcj{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.svelte-1jbbzcj{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.svelte-1jbbzcj{opacity:1;visibility:visible}.tooltip-pointer.svelte-1jbbzcj{position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}')}function nm(i){let e,t;return e=new im({props:{$$slots:{default:[cb]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&16777445&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function cb(i){let e,t,n,o,r;return{c(){e=P("div"),t=P("div"),n=Oe(i[2]),o=Y(),r=P("div"),f(t,"class","content svelte-1jbbzcj"),f(r,"class","tooltip-pointer svelte-1jbbzcj"),f(r,"style",i[7]),f(e,"class","tooltip svelte-1jbbzcj"),f(e,"style",i[6]),K(e,"active",i[0])},m(s,a){k(s,e,a),_(e,t),_(t,n),_(e,o),_(e,r),i[23](e)},p(s,a){a[0]&4&&Ke(n,s[2]),a[0]&128&&f(r,"style",s[7]),a[0]&64&&f(e,"style",s[6]),a[0]&1&&K(e,"active",s[0])},d(s){s&&w(e),i[23](null)}}}function fb(i){let e,t,n,o,r,s,a=i[21].default,l=Le(a,i,i[24],null),u=i[2]&&!i[1]&&nm(i);return{c(){e=P("div"),l&&l.c(),t=Y(),u&&u.c(),n=$e(),f(e,"class","tooltip-wrapper svelte-1jbbzcj"),K(e,"full-width",i[3])},m(c,m){k(c,e,m),l&&l.m(e,null),i[22](e),k(c,t,m),u&&u.m(c,m),k(c,n,m),o=!0,r||(s=[ke(e,"mouseenter",i[10]),ke(e,"mousemove",i[10]),ke(e,"mouseleave",i[11]),ke(e,"mousedown",i[11]),ke(e,"mouseup",i[10])],r=!0)},p(c,m){l&&l.p&&(!o||m[0]&16777216)&&Re(l,a,c,c[24],o?Ve(a,c[24],m,null):Be(c[24]),null),(!o||m[0]&8)&&K(e,"full-width",c[3]),c[2]&&!c[1]?u?(u.p(c,m),m[0]&6&&d(u,1)):(u=nm(c),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(se(),p(u,1,1,()=>{u=null}),le())},i(c){o||(d(l,c),d(u),o=!0)},o(c){p(l,c),p(u),o=!1},d(c){c&&(w(e),w(t),w(n)),l&&l.d(c),i[22](null),u&&u.d(c),r=!1,ut(s)}}}var Ao=5;function db(i,e,t){let n,o,{$$slots:r={},$$scope:s}=e,{isMobile:a=!1}=e,{content:l=""}=e,{active:u=!1}=e,{translateX:c=0}=e,{translateY:m=0}=e,{isFullWidthWrapper:h=!1}=e,{maxTooltipWidth:y=void 0}=e,{placement:g="top"}=e,{onVisibilityChange:I=ab}=e,C,V,S,v=0,E=0,W=0,D=0,L=Bt(),J=nt(),ue=J.ui.playerSize;q(i,ue,Pe=>t(27,o=Pe));let Q=J.ui.overlayContainer$;q(i,Q,Pe=>t(26,n=Pe));let ee=J.getLogger().createComponentLog("Tooltip component"),X=()=>{if(!n||!V||!C)return;t(18,E=Ao);let Pe=n.getBoundingClientRect(),qe=C.getBoundingClientRect(),te=qe.width,_e=V.clientWidth,Ce=o.width,xe=(te-_e)/2,ot=qe.left+c-Pe.left,at=ot+xe,st=qe.top+m-Pe.top,Je=_e/2-Ao,fe=at<8,Ze=at+_e>Ce-8;fe&&(at=8,Je=ot+qe.width/2-2.5*Ao),Ze&&(at=Ce-8-_e,Je=qe.left-Pe.left+qe.width/2-at-Ao),t(19,W=at),t(20,D=st),t(17,v=Je)},x=()=>{!n||!V||!C||t(18,E=-Ao)},ce=()=>{if(!n||!V||!C)return;t(17,v=Ao);let Pe=n.getBoundingClientRect(),qe=C.getBoundingClientRect(),te=qe.height,_e=V.clientHeight,Ce=(te-_e)/2+_e,xe=qe.left+c-Pe.left-V.clientWidth,ot=2,at=xe-Ao;at<8&&(at=8);let Je=qe.top+m-Pe.top+Ce,fe=ot-Ce/2,Ze=ot-Ao;t(19,W=at),t(20,D=Je),t(18,E=fe),t(17,v=Ze)},z=()=>{!n||!V||!C||t(17,v=-Ao)},j=()=>{switch(g){case"top":X();break;case"bottom":x();break;case"left":ce();break;default:z()}},A=()=>{try{if(!n||!C)return;j(),t(0,u=!0)}catch(Pe){ee({message:String(Pe)})}},de=()=>{t(0,u=!1)},$=()=>{V&&(S||(S=window.setTimeout(A,L.controls.hideTimeoutTooltips)),u&&A())},Ee=()=>{de(),window.clearTimeout(S),S=void 0},ne=(Pe,qe)=>{let te="";switch(g){case"top":te=`transform: translate(${Pe}px, ${qe}px);`;break;case"bottom":te=`transform: translate(${Pe}px, ${qe}px); top: auto; bottom: 100%;`;break;case"left":te=`transform: translate(${Pe}px, ${qe}px); left: 0; right: auto;`;break;default:te=`transform: translate(${Pe}px, ${qe}px);`}return te+=` max-width: ${y===void 0?"auto":`${y}px`};`,te},ae=(Pe,qe)=>{let te="";switch(g){case"top":te=`transform: translate(${Pe}px, ${qe}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":te=`transform: translate(${Pe}px, ${qe}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":te=`transform: translate(${Pe}px, ${qe}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:te=`transform: translate(${Pe}px, ${qe}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return te},Ie,Te;Ft(j),oo(()=>window.clearTimeout(S));function Se(Pe){be[Pe?"unshift":"push"](()=>{C=Pe,t(4,C)})}function rt(Pe){be[Pe?"unshift":"push"](()=>{V=Pe,t(5,V)})}return i.$$set=Pe=>{"isMobile"in Pe&&t(1,a=Pe.isMobile),"content"in Pe&&t(2,l=Pe.content),"active"in Pe&&t(0,u=Pe.active),"translateX"in Pe&&t(12,c=Pe.translateX),"translateY"in Pe&&t(13,m=Pe.translateY),"isFullWidthWrapper"in Pe&&t(3,h=Pe.isFullWidthWrapper),"maxTooltipWidth"in Pe&&t(14,y=Pe.maxTooltipWidth),"placement"in Pe&&t(15,g=Pe.placement),"onVisibilityChange"in Pe&&t(16,I=Pe.onVisibilityChange),"$$scope"in Pe&&t(24,s=Pe.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&65537&&I(u),i.$$.dirty[0]&1966080&&(t(6,Ie=ne(W,D)),t(7,Te=ae(v,E)))},[u,a,l,h,C,V,Ie,Te,ue,Q,$,Ee,c,m,y,g,I,v,E,W,D,r,Se,rt,s]}var vu=class extends H{constructor(e){super(),U(this,e,db,fb,F,{isMobile:1,content:2,active:0,translateX:12,translateY:13,isFullWidthWrapper:3,maxTooltipWidth:14,placement:15,onVisibilityChange:16},ub,[-1,-1])}},Br=vu;function pb(i){ge(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 _b(i){let e,t=i[19].default,n=Le(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Re(n,t,o,o[24],e?Ve(t,o[24],r,null):Be(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){p(n,o),e=!1},d(o){n&&n.d(o)}}}function hb(i){let e,t;return e=new Br({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[gb]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&2048&&(r.content=n[11]),o&512&&(r.translateX=n[9]),o&1024&&(r.translateY=n[10]),o&16&&(r.isFullWidthWrapper=n[4]),o&32&&(r.active=n[5]),o&64&&(r.placement=n[6]),o&256&&(r.onVisibilityChange=n[8]),o&16777216&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function gb(i){let e,t=i[19].default,n=Le(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Re(n,t,o,o[24],e?Ve(t,o[24],r,null):Be(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){p(n,o),e=!1},d(o){n&&n.d(o)}}}function bb(i){let e,t,n,o,r,s,a,l,u,c=[hb,_b],m=[];function h(y,g){return y[3]&&y[11]&&!y[12]?0:1}return t=h(i,-1),n=m[t]=c[t](i),{c(){e=P("div"),n.c(),f(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),f(e,"aria-hidden",r=i[7]||null)},m(y,g){k(y,e,g),m[t].m(e,null),i[23](e),a=!0,l||(u=[br(s=Rr.call(null,e)),ke(e,"fd:resize",i[22]),ke(e,"pointerdown",vt(i[20])),ke(e,"click",vt(i[21]))],l=!0)},p(y,[g]){let I=t;t=h(y,g),t===I?m[t].p(y,g):(se(),p(m[I],1,1,()=>{m[I]=null}),le(),n=m[t],n?n.p(y,g):(n=m[t]=c[t](y),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+y[2]+" svelte-p9r045"))&&f(e,"class",o),(!a||g&128&&r!==(r=y[7]||null))&&f(e,"aria-hidden",r)},i(y){a||(d(n),a=!0)},o(y){p(n),a=!1},d(y){y&&w(e),m[t].d(),i[23](null),l=!1,ut(u)}}}function vb(i,e,t){let n,o,{$$slots:r={},$$scope:s}=e,{className:a=""}=e,{disabled:l=!1}=e,{hasTooltip:u=!0}=e,{ref:c=void 0}=e,{width:m=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:y=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:I="top"}=e,{disabledTooltipContent:C=G("tooltip_button_disabled")}=e,{isAriaHidden:V=!1}=e,{onTooltipVisibilityChange:S=mb}=e,{initialTranslateXPx:v=0}=e,{initialTranslateYPx:E=-18}=e,W=nt(),D=W.ui.isMobile;q(i,D,x=>t(12,o=x));let L=W.state.graphIsOpened$;q(i,L,x=>t(18,n=x));let J;function ue(x){On.call(this,i,x)}function Q(x){On.call(this,i,x)}let ee=x=>{t(1,m=x.target.clientWidth)};function X(x){be[x?"unshift":"push"](()=>{c=x,t(0,c)})}return i.$$set=x=>{"className"in x&&t(2,a=x.className),"disabled"in x&&t(15,l=x.disabled),"hasTooltip"in x&&t(3,u=x.hasTooltip),"ref"in x&&t(0,c=x.ref),"width"in x&&t(1,m=x.width),"isFullWidthTooltip"in x&&t(4,h=x.isFullWidthTooltip),"tooltipContent"in x&&t(16,y=x.tooltipContent),"tooltipActive"in x&&t(5,g=x.tooltipActive),"tooltipPlacement"in x&&t(6,I=x.tooltipPlacement),"disabledTooltipContent"in x&&t(17,C=x.disabledTooltipContent),"isAriaHidden"in x&&t(7,V=x.isAriaHidden),"onTooltipVisibilityChange"in x&&t(8,S=x.onTooltipVisibilityChange),"initialTranslateXPx"in x&&t(9,v=x.initialTranslateXPx),"initialTranslateYPx"in x&&t(10,E=x.initialTranslateYPx),"$$scope"in x&&t(24,s=x.$$scope)},i.$$.update=()=>{i.$$.dirty&491520&&(l?t(11,J=n?G("tooltip_disabled_when_graph_on"):C):t(11,J=y))},[c,m,a,u,h,g,I,V,S,v,E,J,o,D,L,l,y,C,n,r,ue,Q,ee,X,s]}var yu=class extends H{constructor(e){super(),U(this,e,vb,bb,F,{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},pb)}},Xi=yu;function yb(i){let e,t,n,o,r,s;return{c(){e=O("svg"),t=O("rect"),o=O("path"),f(t,"width","20"),f(t,"height","20"),f(t,"rx","10"),f(t,"fill","white"),f(t,"fill-opacity",n=i[0]?1:.24),f(o,"d","M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"),f(o,"fill",r=i[0]?"var(--interactive-episode-complete)":"white"),f(e,"width","20"),f(e,"height","20"),f(e,"viewBox","0 0 20 20"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid",s=(i[0],"interactive-episode-completed-icon"))},m(a,l){k(a,e,l),_(e,t),_(e,o)},p(a,[l]){l&1&&n!==(n=a[0]?1:.24)&&f(t,"fill-opacity",n),l&1&&r!==(r=a[0]?"var(--interactive-episode-complete)":"white")&&f(o,"fill",r),l&1&&s!==(s=(a[0],"interactive-episode-completed-icon"))&&f(e,"data-testid",s)},i:me,o:me,d(a){a&&w(e)}}}function wb(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var wu=class extends H{constructor(e){super(),U(this,e,wb,yb,F,{completed:0})}},ml=wu;function kb(i){ge(i,"svelte-bklhpe",".interactive-episode-icon.svelte-bklhpe{width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default}.interactive-episode-icon.disabled.svelte-bklhpe{pointer-events:none;opacity:0.4}")}function Cb(i){let e,t,n,o,r,s,a;return t=new ml({props:{completed:!!i[0].completed}}),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","interactive-episode-icon svelte-bklhpe"),f(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),K(e,"disabled",i[1])},m(l,u){k(l,e,u),R(t,e,null),r=!0,s||(a=[br(o=Rr.call(null,e)),ke(e,"fd:resize",i[3])],s=!0)},p(l,u){let c={};u&1&&(c.completed=!!l[0].completed),t.$set(c),(!r||u&1&&n!==(n=`left: ${l[0].from+l[0].width/2}%`))&&f(e,"style",n),(!r||u&2)&&K(e,"disabled",l[1])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){p(t.$$.fragment,l),r=!1},d(l){l&&w(e),B(t),s=!1,ut(a)}}}function Sb(i){let e,t;return e=new Xi({props:{tooltipContent:G(i[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished"),initialTranslateXPx:-10,initialTranslateYPx:-10,disabled:i[1],width:i[2]||0,isAriaHidden:!0,isFullWidthTooltip:!1,$$slots:{default:[Cb]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.tooltipContent=G(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(r.disabled=n[1]),o&4&&(r.width=n[2]||0),o&23&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Tb(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,r,s=a=>{t(2,r=a.target.clientWidth)};return i.$$set=a=>{"videoEpisode"in a&&t(0,n=a.videoEpisode),"disabled"in a&&t(1,o=a.disabled)},[n,o,r,s]}var ku=class extends H{constructor(e){super(),U(this,e,Tb,Sb,F,{videoEpisode:0,disabled:1},kb)}},om=ku;function Ib(i){ge(i,"svelte-1rzxunm",".video-episodes-wrap.svelte-1rzxunm{position:absolute;width:100%;height:100%}.video-episode.svelte-1rzxunm{position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:-5px;padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s}.video-episode.svelte-1rzxunm:not(.disabled):where(:hover, :active){transform:scaleY(1.5)}.video-episode-inner.svelte-1rzxunm,.video-episode-loaded.svelte-1rzxunm,.video-episode-filled.svelte-1rzxunm{position:absolute;height:var(--slider-height);border-radius:var(--slider-radius)}.video-episode-inner.svelte-1rzxunm{position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg)}.video-episode-loaded.svelte-1rzxunm{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.video-episode-filled.svelte-1rzxunm{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}")}function rm(i,e,t){let n=i.slice();return n[3]=e[t],n}function sm(i){let e,t,n,o,r,s,a,l,u;return{c(){e=P("div"),t=P("div"),n=P("div"),r=Y(),s=P("div"),l=Y(),f(n,"class","video-episode-loaded svelte-1rzxunm"),f(n,"style",o=`transform: translateX(${i[3].loadedWidth/i[3].width*100}%)`),f(s,"class","video-episode-filled svelte-1rzxunm"),f(s,"style",a=`transform: translateX(${i[3].filledWidth/i[3].width*100}%)`),K(s,"mobile",i[1]),f(t,"class","video-episode-inner svelte-1rzxunm"),f(e,"class","video-episode svelte-1rzxunm"),f(e,"style",u=`left: ${i[3].from}%; width: ${i[3].width}%`),K(e,"disabled",i[2]),K(e,"mobile",i[1])},m(c,m){k(c,e,m),_(e,t),_(t,n),_(t,r),_(t,s),_(e,l)},p(c,m){m&1&&o!==(o=`transform: translateX(${c[3].loadedWidth/c[3].width*100}%)`)&&f(n,"style",o),m&1&&a!==(a=`transform: translateX(${c[3].filledWidth/c[3].width*100}%)`)&&f(s,"style",a),m&2&&K(s,"mobile",c[1]),m&1&&u!==(u=`left: ${c[3].from}%; width: ${c[3].width}%`)&&f(e,"style",u),m&4&&K(e,"disabled",c[2]),m&2&&K(e,"mobile",c[1])},d(c){c&&w(e)}}}function Pb(i){let e,t=Tt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=sm(rm(i,t,o));return{c(){e=P("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","video-episodes-wrap svelte-1rzxunm")},m(o,r){k(o,e,r);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(e,null)},p(o,[r]){if(r&7){t=Tt(o[0]);let s;for(s=0;s<t.length;s+=1){let a=rm(o,t,s);n[s]?n[s].p(a,r):(n[s]=sm(a),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},i:me,o:me,d(o){o&&w(e),pi(n,o)}}}function Eb(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e,{disabled:r}=e;return i.$$set=s=>{"videoEpisodes"in s&&t(0,n=s.videoEpisodes),"isMobile"in s&&t(1,o=s.isMobile),"disabled"in s&&t(2,r=s.disabled)},[n,o,r]}var Cu=class extends H{constructor(e){super(),U(this,e,Eb,Pb,F,{videoEpisodes:0,isMobile:1,disabled:2},Ib)}},lm=Cu;function Ab(i){ge(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 am(i,e,t){let n=i.slice();return n[50]=e[t],n}function um(i){let e,t,n=Tt(i[21]),o=[];for(let s=0;s<n.length;s+=1)o[s]=fm(am(i,n,s));let r=s=>p(o[s],1,1,()=>{o[s]=null});return{c(){e=P("div");for(let s=0;s<o.length;s+=1)o[s].c();f(e,"class","interactive-icons svelte-v8ydei"),K(e,"mobile",i[6]),K(e,"hidden",i[6]&&!i[20])},m(s,a){k(s,e,a);for(let l=0;l<o.length;l+=1)o[l]&&o[l].m(e,null);t=!0},p(s,a){if(a[0]&2098176){n=Tt(s[21]);let l;for(l=0;l<n.length;l+=1){let u=am(s,n,l);o[l]?(o[l].p(u,a),d(o[l],1)):(o[l]=fm(u),o[l].c(),d(o[l],1),o[l].m(e,null))}for(se(),l=n.length;l<o.length;l+=1)r(l);le()}(!t||a[0]&64)&&K(e,"mobile",s[6]),(!t||a[0]&1048640)&&K(e,"hidden",s[6]&&!s[20])},i(s){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(s){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)p(o[a]);t=!1},d(s){s&&w(e),pi(o,s)}}}function cm(i){let e,t;return e=new om({props:{videoEpisode:i[50],disabled:i[10]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisode=n[50]),o[0]&1024&&(r.disabled=n[10]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function fm(i){let e,t,n=i[50].interactive&&cm(i);return{c(){n&&n.c(),e=$e()},m(o,r){n&&n.m(o,r),k(o,e,r),t=!0},p(o,r){o[50].interactive?n?(n.p(o,r),r[0]&2097152&&d(n,1)):(n=cm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(se(),p(n,1,1,()=>{n=null}),le())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function Mb(i){let e,t,n,o,r,s;return{c(){e=P("div"),t=P("div"),o=Y(),r=P("div"),f(t,"class","loaded svelte-v8ydei"),f(t,"style",n=`transform: translateX(${i[12]*100}%);`),f(r,"class","filled svelte-v8ydei"),f(r,"style",s=`transform: translateX(${i[13]*100}%);`),K(r,"active-live",i[5]),K(r,"ads",i[7]),f(e,"class","bars svelte-v8ydei")},m(a,l){k(a,e,l),_(e,t),_(e,o),_(e,r)},p(a,l){l[0]&4096&&n!==(n=`transform: translateX(${a[12]*100}%);`)&&f(t,"style",n),l[0]&8192&&s!==(s=`transform: translateX(${a[13]*100}%);`)&&f(r,"style",s),l[0]&32&&K(r,"active-live",a[5]),l[0]&128&&K(r,"ads",a[7])},i:me,o:me,d(a){a&&w(e)}}}function Lb(i){let e,t;return e=new lm({props:{videoEpisodes:i[21],disabled:i[10],isMobile:i[6]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisodes=n[21]),o[0]&1024&&(r.disabled=n[10]),o[0]&64&&(r.isMobile=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Vb(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g=i[9]&&um(i),I=[Lb,Mb],C=[];function V(S,v){return S[21].length?0:1}return n=V(i,[-1,-1]),o=C[n]=I[n](i),{c(){var S;g&&g.c(),e=Y(),t=P("div"),o.c(),r=Y(),s=P("div"),a=P("div"),f(a,"class","handle svelte-v8ydei"),K(a,"active-live",i[5]),f(s,"class","handleWrap svelte-v8ydei"),f(s,"style",l=`transform: translateX(${i[14]*100}%);`),K(s,"hidden",i[11]),f(t,"class",u="slider "+i[1]+" svelte-v8ydei"),f(t,"aria-label",i[15]),f(t,"aria-valuemin",i[16]),f(t,"aria-valuemax",i[17]),f(t,"aria-valuenow",i[18]),f(t,"aria-valuetext",i[19]),f(t,"role","slider"),f(t,"tabindex","0"),f(t,"data-testid",c=(S=i[2])!=null?S:null),K(t,"disabled",i[10]),K(t,"slider-dragging",i[20]),K(t,"hidden",i[3]),K(t,"slider-vertical",i[4]),K(t,"no-handle",i[11]),K(t,"square",i[8])},m(S,v){g&&g.m(S,v),k(S,e,v),k(S,t,v),C[n].m(t,null),_(t,r),_(t,s),_(s,a),i[44](t),m=!0,h||(y=[ke(t,"pointerdown",ui(i[22])),ke(t,"pointermove",ui(i[23])),ke(t,"pointerup",ui(i[24])),ke(t,"pointerenter",ui(i[25])),ke(t,"pointerleave",ui(i[26])),ke(t,"click",vt(i[28])),ke(t,"wheel",i[27])],h=!0)},p(S,v){var W;S[9]?g?(g.p(S,v),v[0]&512&&d(g,1)):(g=um(S),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(se(),p(g,1,1,()=>{g=null}),le());let E=n;n=V(S,v),n===E?C[n].p(S,v):(se(),p(C[E],1,1,()=>{C[E]=null}),le(),o=C[n],o?o.p(S,v):(o=C[n]=I[n](S),o.c()),d(o,1),o.m(t,r)),(!m||v[0]&32)&&K(a,"active-live",S[5]),(!m||v[0]&16384&&l!==(l=`transform: translateX(${S[14]*100}%);`))&&f(s,"style",l),(!m||v[0]&2048)&&K(s,"hidden",S[11]),(!m||v[0]&2&&u!==(u="slider "+S[1]+" svelte-v8ydei"))&&f(t,"class",u),(!m||v[0]&32768)&&f(t,"aria-label",S[15]),(!m||v[0]&65536)&&f(t,"aria-valuemin",S[16]),(!m||v[0]&131072)&&f(t,"aria-valuemax",S[17]),(!m||v[0]&262144)&&f(t,"aria-valuenow",S[18]),(!m||v[0]&524288)&&f(t,"aria-valuetext",S[19]),(!m||v[0]&4&&c!==(c=(W=S[2])!=null?W:null))&&f(t,"data-testid",c),(!m||v[0]&1026)&&K(t,"disabled",S[10]),(!m||v[0]&1048578)&&K(t,"slider-dragging",S[20]),(!m||v[0]&10)&&K(t,"hidden",S[3]),(!m||v[0]&18)&&K(t,"slider-vertical",S[4]),(!m||v[0]&2050)&&K(t,"no-handle",S[11]),(!m||v[0]&258)&&K(t,"square",S[8])},i(S){m||(d(g),d(o),m=!0)},o(S){p(g),p(o),m=!1},d(S){S&&(w(e),w(t)),g&&g.d(S),C[n].d(),i[44](null),h=!1,ut(y)}}}function Rb(i,e,t){let n,o,{ref:r=void 0}=e,{className:s=""}=e,{testId:a=void 0}=e,{isHidden:l=!1}=e,{isVertical:u=!1}=e,{isActiveLive:c=!1}=e,{isMobile:m=!1}=e,{isAds:h=!1}=e,{squareBorders:y=!1}=e,{videoEpisodes:g=[]}=e,{withWheelHandler:I=!1}=e,{isInteractive:C=!1}=e,{disabled:V=!1}=e,{hideHandel:S=!1}=e,v,{onPointerDown:E=so}=e,{onHandleMove:W=so}=e,{onPointerUp:D=so}=e,{onPointerEnter:L=so}=e,{onPointerMove:J=so}=e,{onPointerLeave:ue=so}=e,{onWheelUp:Q=so}=e,{onWheelDown:ee=so}=e,{onWheelLeft:X=so}=e,{onWheelRight:x=so}=e,{onDisabledClick:ce=so}=e,{loadedProgress:z=0}=e,{filledProgress:j=0}=e,{handleProgress:A=0}=e,{ariaLabel:de=""}=e,{ariaValueMin:$=void 0}=e,{ariaValueMax:Ee=void 0}=e,{ariaValueNow:ne=void 0}=e,{ariaValueText:ae=""}=e,Ie=Bt(),Te=!1,Se;function rt(fe){if(r&&(v=r.getBoundingClientRect()),V||Te||!r)return;t(20,Te=!0);let Ze=ot(fe.clientX,fe.clientY);E(Ze),r.setPointerCapture(fe.pointerId)}function Pe(fe){if(V)return;let Ze=ot(fe.clientX,fe.clientY),Me=at(fe.clientX);J(Ze,Me,v.width),Te&&W(Ze)}function qe(fe){if(V||!Te)return;t(20,Te=!1);let Ze=ot(fe.clientX,fe.clientY);D(Ze)}function te(fe){if(r&&(v=r.getBoundingClientRect()),V)return;let Ze=ot(fe.clientX,fe.clientY),Me=at(fe.clientX);L(Ze,Me,v.width)}function _e(){V||ue()}function Ce(fe){V||I&&(fe.preventDefault(),fe.deltaY<0?Q():fe.deltaY>0?ee():fe.deltaX>0?x():X())}function xe(fe){V&&ce(ot(fe.clientX,fe.clientY))}function ot(fe,Ze){return u?Math.max(0,Math.min(1,(v.height-(Ze-v.top))/v.height)):Math.min(Math.max(fe-v.x,0),v.width)/v.width}function at(fe){return Math.min(Math.max(fe-v.x,0),v.width)}function st(fe,Ze){let Me=Ie.features.episodesClustering&&!C?Ie.episodeMinWidthPc:0,De=[],Qe=g[0].time/Se*100,He=0,ct=0;for(let pt=1;pt<g.length;pt++)He=g[pt].time/Se*100,He-Qe>Me&&(De.push({from:Qe,width:Math.max(0,He-Qe),loadedWidth:Math.max(0,Math.min(He,fe)-Qe),filledWidth:Math.max(0,Math.min(He,Ze)-Qe),interactive:g[pt-1].interactive,completed:g[pt-1].completed}),Qe=g[pt].time/Se*100,ct++);let ft={from:Qe,width:Math.max(0,100-Qe),loadedWidth:Math.max(0,Math.min(fe,100)-Qe),filledWidth:Math.max(0,Math.min(Ze,100)-Qe),interactive:g[ct].interactive,completed:g[ct].completed};100-Qe<Me?(ct-=1,De[ct].width+=100-Qe,De[ct].loadedWidth+=Math.max(0,Math.min(fe,100)-Qe),De[ct].filledWidth+=Math.max(0,Math.min(Ze,100)-Qe)):De[ct]=ft;let he=g[0].time;if(he!==0){let pt=he/Se*100;De.unshift({from:0,width:pt,loadedWidth:Math.min(pt,fe),filledWidth:Math.min(pt,Ze)})}return De}function Je(fe){be[fe?"unshift":"push"](()=>{r=fe,t(0,r)})}return i.$$set=fe=>{"ref"in fe&&t(0,r=fe.ref),"className"in fe&&t(1,s=fe.className),"testId"in fe&&t(2,a=fe.testId),"isHidden"in fe&&t(3,l=fe.isHidden),"isVertical"in fe&&t(4,u=fe.isVertical),"isActiveLive"in fe&&t(5,c=fe.isActiveLive),"isMobile"in fe&&t(6,m=fe.isMobile),"isAds"in fe&&t(7,h=fe.isAds),"squareBorders"in fe&&t(8,y=fe.squareBorders),"videoEpisodes"in fe&&t(29,g=fe.videoEpisodes),"withWheelHandler"in fe&&t(30,I=fe.withWheelHandler),"isInteractive"in fe&&t(9,C=fe.isInteractive),"disabled"in fe&&t(10,V=fe.disabled),"hideHandel"in fe&&t(11,S=fe.hideHandel),"onPointerDown"in fe&&t(31,E=fe.onPointerDown),"onHandleMove"in fe&&t(32,W=fe.onHandleMove),"onPointerUp"in fe&&t(33,D=fe.onPointerUp),"onPointerEnter"in fe&&t(34,L=fe.onPointerEnter),"onPointerMove"in fe&&t(35,J=fe.onPointerMove),"onPointerLeave"in fe&&t(36,ue=fe.onPointerLeave),"onWheelUp"in fe&&t(37,Q=fe.onWheelUp),"onWheelDown"in fe&&t(38,ee=fe.onWheelDown),"onWheelLeft"in fe&&t(39,X=fe.onWheelLeft),"onWheelRight"in fe&&t(40,x=fe.onWheelRight),"onDisabledClick"in fe&&t(41,ce=fe.onDisabledClick),"loadedProgress"in fe&&t(12,z=fe.loadedProgress),"filledProgress"in fe&&t(13,j=fe.filledProgress),"handleProgress"in fe&&t(14,A=fe.handleProgress),"ariaLabel"in fe&&t(15,de=fe.ariaLabel),"ariaValueMin"in fe&&t(16,$=fe.ariaValueMin),"ariaValueMax"in fe&&t(17,Ee=fe.ariaValueMax),"ariaValueNow"in fe&&t(18,ne=fe.ariaValueNow),"ariaValueText"in fe&&t(19,ae=fe.ariaValueText)},i.$$.update=()=>{var fe;i.$$.dirty[0]&131072&&t(42,Se=Ee!=null?Ee:0),i.$$.dirty[0]&536870912|i.$$.dirty[1]&2048&&t(43,n=((fe=g[g.length-1])==null?void 0:fe.time)<Se),i.$$.dirty[0]&536883200|i.$$.dirty[1]&6144&&t(21,o=g.length&&n&&Se?st(z*100,j*100):[])},[r,s,a,l,u,c,m,h,y,C,V,S,z,j,A,de,$,Ee,ne,ae,Te,o,rt,Pe,qe,te,_e,Ce,xe,g,I,E,W,D,L,J,ue,Q,ee,X,x,ce,Se,n,Je]}var Su=class extends H{constructor(e){super(),U(this,e,Rb,Vb,F,{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},Ab,[-1,-1])}},Nr=Su;var yi=(i,e)=>or[i]>=or[e],dm=(i,e)=>or[i]<or[e],Ho=(i,e)=>or[i]<=or[e],mm=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function Bb(i){ge(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 Nb(i){let e,t;return e=new dr({props:{volume:i[3],muted:i[1]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.volume=n[3]),o[0]&2&&(r.muted=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Db(i){let e,t;return e=new bt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:go.KeyM,$$slots:{default:[Nb]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&512&&(r.disabled=n[9]),o[0]&4&&(r.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(r.ariaLabel=n[7]),o[0]&1&&(r.click=n[0]),o[0]&10|o[1]&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function pm(i){let e,t,n;return t=new Nr({props:{className:i[2]?"volumeBar-slider-vertical":"",isHidden:i[2]&&!i[5],isVertical:i[2],withWheelHandler:!0,onWheelUp:i[15],onWheelDown:i[16],onPointerDown:i[14],onHandleMove:i[17],onPointerUp:i[18],onPointerEnter:i[2]?i[19]:qo,onPointerLeave:i[2]?i[20]:qo,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=P("div"),N(t.$$.fragment),f(e,"class","volumeBar svelte-1l78lz9"),K(e,"volumeBar-vertical",i[2])},m(o,r){k(o,e,r),R(t,e,null),n=!0},p(o,r){let s={};r[0]&4&&(s.className=o[2]?"volumeBar-slider-vertical":""),r[0]&36&&(s.isHidden=o[2]&&!o[5]),r[0]&4&&(s.isVertical=o[2]),r[0]&4&&(s.onPointerEnter=o[2]?o[19]:qo),r[0]&4&&(s.onPointerLeave=o[2]?o[20]:qo),r[0]&256&&(s.ariaValueNow=Math.round(o[8]*100)),r[0]&256&&(s.ariaValueText=`${Math.round(o[8]*100)}%`),r[0]&256&&(s.filledProgress=o[8]),r[0]&256&&(s.handleProgress=o[8]),r[0]&4&&(s.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(s),(!n||r[0]&4)&&K(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),B(t)}}}function Ob(i){let e,t,n,o,r,s;t=new Br({props:{content:i[6],translateY:-18,$$slots:{default:[Db]},$$scope:{ctx:i}}});let a=i[4]&&pm(i);return{c(){e=P("div"),N(t.$$.fragment),n=Y(),a&&a.c(),f(e,"class","volumeBar-container svelte-1l78lz9"),K(e,"vertical",i[2])},m(l,u){k(l,e,u),R(t,e,null),_(e,n),a&&a.m(e,null),o=!0,r||(s=[ke(e,"mouseenter",function(){ti(i[2]?i[21]:qo)&&(i[2]?i[21]:qo).apply(this,arguments)}),ke(e,"mouseleave",function(){ti(i[2]?i[22]:qo)&&(i[2]?i[22]:qo).apply(this,arguments)}),ke(e,"wheel",ui(i[23]))],r=!0)},p(l,u){i=l;let c={};u[0]&64&&(c.content=i[6]),u[0]&655|u[1]&32&&(c.$$scope={dirty:u,ctx:i}),t.$set(c),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=pm(i),a.c(),d(a,1),a.m(e,null)):a&&(se(),p(a,1,1,()=>{a=null}),le()),(!o||u[0]&4)&&K(e,"vertical",i[2])},i(l){o||(d(t.$$.fragment,l),d(a),o=!0)},o(l){p(t.$$.fragment,l),p(a),o=!1},d(l){l&&w(e),B(t),a&&a.d(),r=!1,ut(s)}}}function Fb(i,e,t){var Ie,Te;let n,o,r,s,{click:a}=e,l=nt(),u=Bt(),c=l.state.volume$;q(i,c,Se=>t(3,n=Se));let m=l.state.muted$;q(i,m,Se=>t(25,s=Se));let h=l.actions.internal.setVolume,y=l.ui.currentGridType$;q(i,y,Se=>t(24,r=Se));let g=(Ie=l.callbacks)==null?void 0:Ie.onAudioDoesNotExistHint,I=(Te=l.callbacks)==null?void 0:Te.onAudioDisabledHint,C=l.state.isAudioAvailable$;q(i,C,Se=>t(4,o=Se));let V=l.state.isAudioDisabled,S=!1,v,E,W,D,L,J,ue=1,Q=!1,ee=!1;function X(Se){ue=n,h(Se)}function x(){ol(l,n,u.controls.volumeStepWheel)}function ce(){rl(l,n,u.controls.volumeStepWheel)}function z(Se){h(Se)}function j(Se){let rt=Se;h(rt,rt===0?ue:rt)}function A(){Q=!0}function de(){Q=!1,ne()}function $(){clearTimeout(v),t(5,S=!0)}function Ee(){ne()}function ne(){v=window.setTimeout(()=>{Q||t(5,S=!1)},u.controls.volumeBarTimeout)}function ae(Se){Se.deltaY<0?x():Se.deltaY>0&&ce()}return i.$$set=Se=>{"click"in Se&&t(0,a=Se.click)},i.$$.update=()=>{i.$$.dirty[0]&33554448&&t(1,D=!o||s),i.$$.dirty[0]&16777216&&t(2,L=Ho(r,"s")),i.$$.dirty[0]&6&&(L?t(6,E=""):t(6,E=D?G("tooltip_volume"):G("tooltip_volume_muted")),t(7,W=D?G("tooltip_volume"):G("tooltip_volume_muted"))),i.$$.dirty[0]&10&&t(8,J=D?0:n),i.$$.dirty[0]&16&&(o?t(9,ee=V&&!I):t(9,ee=!g))},[a,D,L,n,o,S,E,W,J,ee,c,m,y,C,X,x,ce,z,j,A,de,$,Ee,ae,r,s]}var Tu=class extends H{constructor(e){super(),U(this,e,Fb,Ob,F,{click:0},Bb,[-1,-1])}},_m=Tu;import{noop as xb}from"@vkontakte/videoplayer-shared";function Hb(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=O("svg"),a&&a.c(),t=O("g"),n=O("path"),o=O("path"),f(n,"d","M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z"),f(n,"class","_exit"),f(o,"d","M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"),f(o,"class","_enter"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),ye(e,u)},m(c,m){k(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),ye(e,u=Fe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&w(e),a&&a.d(c)}}}function qb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Iu=class extends H{constructor(e){super(),U(this,e,qb,Hb,F,{})}},hm=Iu;function Ub(i){ge(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function zb(i){let e,t;return e=new hm({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Wb(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Pu=class extends H{constructor(e){super(),U(this,e,Wb,zb,F,{isFullscreen:0},Ub)}},gm=Pu;function Kb(i){let e,t;return e=new gm({props:{isFullscreen:i[0]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.isFullscreen=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function jb(i){let e,t;return e=new bt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:go.KeyF,$$slots:{default:[Kb]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Gb(i,e,t){let{isFullscreen:n=!1}=e,{click:o=xb}=e,r;return i.$$set=s=>{"isFullscreen"in s&&t(0,n=s.isFullscreen),"click"in s&&t(1,o=s.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=n?G("tooltip_fullscreen_on"):G("tooltip_fullscreen_off"))},[n,o,r]}var Eu=class extends H{constructor(e){super(),U(this,e,Gb,jb,F,{isFullscreen:0,click:1})}},pl=Eu;function Yb(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z"),f(t,"clip-rule","evenodd"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function Qb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Au=class extends H{constructor(e){super(),U(this,e,Qb,Yb,F,{})}},bm=Au;function Zb(i){let e,t,n,o,r,s,a=i[2].default,l=Le(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],c={};for(let m=0;m<u.length;m+=1)c=re(c,u[m]);return{c(){e=O("svg"),l&&l.c(),t=O("path"),n=O("path"),o=O("path"),r=O("path"),f(t,"fill","#fff"),f(t,"d","M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"),f(n,"fill","#fff"),f(n,"d","M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35"),f(n,"class","_ru"),f(o,"fill","#fff"),f(o,"d","M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635"),f(o,"class","_en"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"d","M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"),f(r,"clip-rule","evenodd"),ye(e,c)},m(m,h){k(m,e,h),l&&l.m(e,null),_(e,t),_(e,n),_(e,o),_(e,r),s=!0},p(m,[h]){l&&l.p&&(!s||h&2)&&Re(l,a,m,m[1],s?Ve(a,m[1],h,null):Be(m[1]),null),ye(e,c=Fe(u,[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},h&1&&m[0]]))},i(m){s||(d(l,m),s=!0)},o(m){p(l,m),s=!1},d(m){m&&w(e),l&&l.d(m)}}}function Xb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Mu=class extends H{constructor(e){super(),U(this,e,Xb,Zb,F,{})}},vm=Mu;function Jb(i){ge(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 $b(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(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.width=n[0]),o&1&&(r.viewBox="0 0 "+(n[0]+1)+" 24"),o&2&&(r["data-testid"]=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}var ev="vk-video-logo-icon--short";function tv(i,e,t){let{short:n=!1}=e,{isCyrillic:o=!0}=e,r,s;return i.$$set=a=>{"short"in a&&t(2,n=a.short),"isCyrillic"in a&&t(3,o=a.isCyrillic)},i.$$.update=()=>{i.$$.dirty&12&&(t(0,r=n?21:95),t(1,s=n?ev:"vk-video-logo-icon"),!o&&!n&&(t(0,r=91),t(1,s="vk-video-logo-icon--en")))},[r,s,n,o]}var Lu=class extends H{constructor(e){super(),U(this,e,tv,$b,F,{short:2,isCyrillic:3},Jb)}},ym=Lu;function nv(i){let e,t;return e=new bm({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function ov(i){let e,t;return e=new ym({props:{short:i[4],isCyrillic:i[5]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.short=n[4]),o&32&&(r.isCyrillic=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function rv(i){let e,t,n,o,r=[ov,nv],s=[];function a(l,u){return l[2]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=$e()},m(l,u){s[e].m(l,u),k(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(se(),p(s[c],1,1,()=>{s[c]=null}),le(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),s[e].d(l)}}}function sv(i){let e,t,n;function o(s){i[14](s)}let r={className:"btn-full-opacity",disabled:!i[1],click:i[9],testId:i[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[3],$$slots:{default:[rv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.disabled=!s[1]),a&4&&(l.testId=s[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(l.ariaLabel=s[3]),a&131124&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function lv(i,e,t){let n,o,r,{ref:s=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:l=""}=e,{click:u}=e,c=Bt(),m=nt(),h=m.ui.currentGridType$;q(i,h,E=>t(12,n=E));let y=m.ui.isMobile;q(i,y,E=>t(13,o=E));let g=m.isCyrillicRelatedInterface$;q(i,g,E=>t(5,r=E));let I,C,V,S=()=>{var E,W;u(),(E=m.callbacks)!=null&&E.onLogoClicked?(W=m.callbacks)==null||W.onLogoClicked():l&&window.open(l,"_blank")};function v(E){s=E,t(0,s)}return i.$$set=E=>{"ref"in E&&t(0,s=E.ref),"logoClickable"in E&&t(1,a=E.logoClickable),"targetUrl"in E&&t(10,l=E.targetUrl),"click"in E&&t(11,u=E.click)},i.$$.update=()=>{i.$$.dirty&12292&&t(4,V=(o||Ho(n,"l"))&&C)},t(3,I=c.logoType==="vk_video"?G("tooltip_vk_video_logo"):G("tooltip_vk_logo")),t(2,C=c.logoType==="vk_video"||c.logoType==="vk_video_mobile"),[s,a,C,I,V,r,h,y,g,S,l,u,n,o,v]}var Vu=class extends H{constructor(e){super(),U(this,e,lv,sv,F,{ref:0,logoClickable:1,targetUrl:10,click:11})}},_l=Vu;import{ChromecastState as mv}from"@vkontakte/videoplayer-core";import{ChromecastState as wm}from"@vkontakte/videoplayer-core";function av(i){ge(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 uv(i){let e,t,n,o,r,s,a,l;return{c(){e=O("svg"),t=O("g"),n=O("path"),o=O("path"),r=O("path"),s=O("path"),a=O("path"),l=O("path"),f(n,"class","wave wave1 svelte-8z1bf5"),f(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),f(n,"fill","#fff"),f(o,"class","wave wave2 svelte-8z1bf5"),f(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),f(o,"fill","#fff"),f(r,"class","wave wave3 svelte-8z1bf5"),f(r,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),f(r,"fill","#fff"),f(s,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),f(s,"fill","#fff"),f(a,"d","M0 0h24v24H0z"),f(l,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),f(l,"fill","#fff"),K(l,"hidden",!i[1]),f(t,"fill","none"),f(t,"fill-rule","evenodd"),f(e,"width","24"),f(e,"height","24"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-icon"),f(e,"class","svelte-8z1bf5"),K(e,"connecting",i[2])},m(u,c){k(u,e,c),_(e,t),_(t,n),_(t,o),_(t,r),_(t,s),_(t,a),_(t,l)},p(u,c){c&2&&K(l,"hidden",!u[1]),c&4&&K(e,"connecting",u[2])},d(u){u&&w(e)}}}function cv(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,I,C,V,S,v,E,W;return{c(){e=O("svg"),t=O("g"),n=O("mask"),o=O("path"),s=O("path"),a=O("path"),u=O("path"),c=O("defs"),m=O("clipPath"),h=O("path"),g=O("filter"),I=O("feFlood"),C=O("feColorMatrix"),V=O("feOffset"),S=O("feGaussianBlur"),v=O("feColorMatrix"),E=O("feBlend"),W=O("feBlend"),f(o,"fill",r=i[1]?"#2688EB":"#fff"),f(o,"d","M1.1 3.1h22v18h-22z"),f(s,"fill-rule","evenodd"),f(s,"clip-rule","evenodd"),f(s,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),f(n,"id","c"),f(n,"maskUnits","userSpaceOnUse"),f(n,"x","1.1"),f(n,"y","3.1"),f(n,"width","22"),f(n,"height","18"),f(n,"fill","#000"),f(a,"fill-rule","evenodd"),f(a,"clip-rule","evenodd"),f(a,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),f(a,"fill",l=i[1]?"#2688EB":"#fff"),f(u,"d","m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z"),f(u,"fill","#000"),f(u,"fill-opacity",".12"),f(u,"mask","url(#c)"),f(t,"filter","url(#b)"),f(t,"clip-path","url(#a)"),f(h,"fill",y=i[1]?"#2688EB":"#fff"),f(h,"d","M0 0h24v24H0z"),f(m,"id","a"),f(I,"flood-opacity","0"),f(I,"result","BackgroundImageFix"),f(C,"in","SourceAlpha"),f(C,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(C,"result","hardAlpha"),f(S,"stdDeviation","2.5"),f(v,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(E,"in2","BackgroundImageFix"),f(E,"result","effect1_dropShadow_4085_178456"),f(W,"in","SourceGraphic"),f(W,"in2","effect1_dropShadow_4085_178456"),f(W,"result","shape"),f(g,"id","b"),f(g,"x","-3.4"),f(g,"y","-1.4"),f(g,"width","30.8"),f(g,"height","26.802"),f(g,"filterUnits","userSpaceOnUse"),f(g,"color-interpolation-filters","sRGB"),f(e,"width","24"),f(e,"height","24"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-mobile-icon")},m(D,L){k(D,e,L),_(e,t),_(t,n),_(n,o),_(n,s),_(t,a),_(t,u),_(e,c),_(c,m),_(m,h),_(c,g),_(g,I),_(g,C),_(g,V),_(g,S),_(g,v),_(g,E),_(g,W)},p(D,L){L&2&&r!==(r=D[1]?"#2688EB":"#fff")&&f(o,"fill",r),L&2&&l!==(l=D[1]?"#2688EB":"#fff")&&f(a,"fill",l),L&2&&y!==(y=D[1]?"#2688EB":"#fff")&&f(h,"fill",y)},d(D){D&&w(e)}}}function fv(i){let e;function t(r,s){return r[0]?cv:uv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=$e()},m(r,s){o.m(r,s),k(r,e,s)},p(r,[s]){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:me,o:me,d(r){r&&w(e),o.d(r)}}}function dv(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,r,s;return i.$$set=a=>{"isMobile"in a&&t(0,n=a.isMobile),"state"in a&&t(3,o=a.state)},i.$$.update=()=>{i.$$.dirty&8&&(t(2,s=o===wm.CONNECTING),t(1,r=o===wm.CONNECTED))},[n,r,s,o]}var Ru=class extends H{constructor(e){super(),U(this,e,dv,fv,F,{isMobile:0,state:3},av)}},km=Ru;import{noop as pv}from"@vkontakte/videoplayer-shared";function _v(i){let e,t;return e=new km({props:{isMobile:i[1],state:i[2]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&4&&(r.state=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function hv(i){let e,t,n;function o(s){i[5](s)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[_v]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&16&&(l.ariaLabel=s[4]),a&8&&(l.click=s[3]),a&70&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function gv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:s=pv}=e,a;function l(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"state"in u&&t(2,r=u.state),"click"in u&&t(3,s=u.click)},i.$$.update=()=>{i.$$.dirty&4&&t(4,a=r===mv.CONNECTED?G("tooltip_chromecast_on"):G("tooltip_chromecast_off"))},[n,o,r,s,a,l]}var Bu=class extends H{constructor(e){super(),U(this,e,gv,hv,F,{ref:0,isMobile:1,state:2,click:3})}},hl=Bu;function bv(i){ge(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 vv(i){let e,t,n,o,r=i[9].default,s=Le(r,i,i[8],null);return{c(){e=P("div"),t=P("div"),s&&s.c(),f(t,"class","tooltip svelte-5ygsa2"),K(t,"active",i[0]),K(t,"pointer",i[1]),f(e,"class","tooltip-wrapper svelte-5ygsa2"),f(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(a,l){k(a,e,l),_(e,t),s&&s.m(t,null),i[10](t),i[11](e),o=!0},p(a,[l]){s&&s.p&&(!o||l&256)&&Re(s,r,a,a[8],o?Ve(r,a[8],l,null):Be(a[8]),null),(!o||l&1)&&K(t,"active",a[0]),(!o||l&2)&&K(t,"pointer",a[1]),(!o||l&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&f(e,"style",n)},i(a){o||(d(s,a),o=!0)},o(a){p(s,a),o=!1},d(a){a&&w(e),s&&s.d(a),i[10](null),i[11](null)}}}function yv(i,e,t){let n,{$$slots:o={},$$scope:r}=e,{active:s=!1}=e,{pointer:a=!1}=e,{translateXPx:l=0}=e,{translateYPx:u=0}=e,{containerWidth:c}=e,m,h;function y(C){if(!h)return 0;let{width:V}=h.getBoundingClientRect(),S=V/2;return C<S?S:C>c-S?c-S:C}function g(C){be[C?"unshift":"push"](()=>{h=C,t(4,h)})}function I(C){be[C?"unshift":"push"](()=>{m=C,t(3,m)})}return i.$$set=C=>{"active"in C&&t(0,s=C.active),"pointer"in C&&t(1,a=C.pointer),"translateXPx"in C&&t(6,l=C.translateXPx),"translateYPx"in C&&t(2,u=C.translateYPx),"containerWidth"in C&&t(7,c=C.containerWidth),"$$scope"in C&&t(8,r=C.$$scope)},i.$$.update=()=>{i.$$.dirty&64&&t(5,n=y(l))},[s,a,u,m,h,n,l,c,r,o,g,I]}var Nu=class extends H{constructor(e){super(),U(this,e,yv,vv,F,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},bv)}},Cm=Nu;var gl=(i,e,t)=>t.filter(n=>n.time<=i*e).pop();function wv(i){ge(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 Sm(i){let e,t;return{c(){e=P("div"),f(e,"class","preview svelte-l51fc1"),f(e,"style",t=`width: ${i[3]}px; height: ${i[4]}px; background-image: url(${i[5]}); background-size: ${i[6]}px ${i[7]}px; background-position: ${i[8]}px ${i[9]}px; transform: translateY(${i[11]%180?-35:0}px) rotate(${i[11]}deg);`)},m(n,o){k(n,e,o)},p(n,o){o&3064&&t!==(t=`width: ${n[3]}px; height: ${n[4]}px; background-image: url(${n[5]}); background-size: ${n[6]}px ${n[7]}px; background-position: ${n[8]}px ${n[9]}px; transform: translateY(${n[11]%180?-35:0}px) rotate(${n[11]}deg);`)&&f(e,"style",t)},d(n){n&&w(e)}}}function Tm(i){let e;function t(r,s){return r[2]&&r[10].completed===!1?Cv:kv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=$e()},m(r,s){o.m(r,s),k(r,e,s)},p(r,s){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&w(e),o.d(r)}}}function kv(i){let e=(i[10].text||"")+"",t;return{c(){t=Oe(e)},m(n,o){k(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Ke(t,e)},d(n){n&&w(t)}}}function Cv(i){let e=G("tooltip_episode_unfinished")+"",t;return{c(){t=Oe(e)},m(n,o){k(n,t,o)},p:me,d(n){n&&w(t)}}}function Im(i){let e,t;return{c(){e=P("div"),t=Oe(i[0]),f(e,"class","time svelte-l51fc1")},m(n,o){k(n,e,o),_(e,t)},p(n,o){o&1&&Ke(t,n[0])},d(n){n&&w(e)}}}function Sv(i){let e,t,n,o,r=i[5]&&Sm(i),s=i[10]&&Tm(i),a=!i[2]&&Im(i);return{c(){e=P("div"),r&&r.c(),t=Y(),n=P("div"),s&&s.c(),o=Y(),a&&a.c(),f(n,"class","episode svelte-l51fc1"),f(e,"class","timeline-preview svelte-l51fc1"),K(e,"mobile",i[1])},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),_(e,n),s&&s.m(n,null),_(e,o),a&&a.m(e,null)},p(l,[u]){l[5]?r?r.p(l,u):(r=Sm(l),r.c(),r.m(e,t)):r&&(r.d(1),r=null),l[10]?s?s.p(l,u):(s=Tm(l),s.c(),s.m(n,null)):s&&(s.d(1),s=null),l[2]?a&&(a.d(1),a=null):a?a.p(l,u):(a=Im(l),a.c(),a.m(e,null)),u&2&&K(e,"mobile",l[1])},i:me,o:me,d(l){l&&w(e),r&&r.d(),s&&s.d(),a&&a.d()}}}var Dr=150;function Tv(i,e,t){let n,{time:o=""}=e,{isMobile:r=!1}=e,{videoEpisodes:s=[]}=e,{previewThumbsData:a}=e,{progress:l=0}=e,{duration:u=0}=e,{isInteractive:c=!1}=e,h=nt().ui.rotateAlpha;q(i,h,L=>t(11,n=L));let y,g,I,C,V,S,v,E;function W(){let L=a.frameWidth,J=a.frameHeight;return L>Dr?(J=J/L*Dr,L=Dr):J>Dr&&(L=L/J*Dr,J=Dr),{width:L,height:J}}function D(L){let J;a.isUV?J=Math.floor(u*L/a.frequency):J=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*L)));let ue=Math.floor(J/a.countPerImage),Q=Math.floor(J%a.countPerImage/a.countPerRow),ee=J%a.countPerRow,X=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&ue===Math.floor(a.countTotal/a.countPerImage)&&(X=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&X++);let x=a.countPerRow;!a.isUV&&ue===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(x=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let ce=y*x,z=g*X,j=-ee*y,A=-Q*g;return{imgSrc:a.links[ue],imgWidth:ce,imgHeight:z,imgOffsetX:j,imgOffsetY:A}}return i.$$set=L=>{"time"in L&&t(0,o=L.time),"isMobile"in L&&t(1,r=L.isMobile),"videoEpisodes"in L&&t(13,s=L.videoEpisodes),"previewThumbsData"in L&&t(14,a=L.previewThumbsData),"progress"in L&&t(15,l=L.progress),"duration"in L&&t(16,u=L.duration),"isInteractive"in L&&t(2,c=L.isInteractive)},i.$$.update=()=>{i.$$.dirty&32768&&t(5,{imgSrc:I,imgWidth:C,imgHeight:V,imgOffsetX:S,imgOffsetY:v}=D(l),I,(t(6,C),t(15,l)),(t(7,V),t(15,l)),(t(8,S),t(15,l)),(t(9,v),t(15,l))),i.$$.dirty&106496&&t(10,E=gl(l,u,s))},t(3,{width:y,height:g}=W(),y,t(4,g)),[o,r,c,y,g,I,C,V,S,v,E,n,h,s,a,l,u]}var Du=class extends H{constructor(e){super(),U(this,e,Tv,Sv,F,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},wv)}},Pm=Du;function Iv(i){ge(i,"svelte-5lzly8",".time.svelte-5lzly8{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}")}function Pv(i){let e,t;return{c(){e=P("span"),t=Oe(i[8]),f(e,"class","time svelte-5lzly8")},m(n,o){k(n,e,o),_(e,t)},p(n,o){o[0]&256&&Ke(t,n[8])},i:me,o:me,d(n){n&&w(e)}}}function Ev(i){let e,t;return e=new Pm({props:{time:i[8],isMobile:i[11],videoEpisodes:i[4],previewThumbsData:i[22],progress:i[9],duration:i[2],isInteractive:i[24]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&256&&(r.time=n[8]),o[0]&2048&&(r.isMobile=n[11]),o[0]&16&&(r.videoEpisodes=n[4]),o[0]&512&&(r.progress=n[9]),o[0]&4&&(r.duration=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Av(i){let e,t,n,o,r=[Ev,Pv],s=[];function a(l,u){return l[15].features.timelinePreview&&l[22]&&!l[1]?0:1}return e=a(i,[-1,-1]),t=s[e]=r[e](i),{c(){t.c(),n=$e()},m(l,u){s[e].m(l,u),k(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(se(),p(s[c],1,1,()=>{s[c]=null}),le(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),s[e].d(l)}}}function Mv(i){let e,t,n,o,r,s=[i[10]],a={$$slots:{default:[Av]},$$scope:{ctx:i}};for(let c=0;c<s.length;c+=1)a=re(a,s[c]);e=new Cm({props:a});function l(c){i[43](c)}let u={isActiveLive:i[12],isMobile:i[11],ariaLabel:G("aria_timeline"),ariaValueMin:0,ariaValueMax:i[2],ariaValueNow:Math.round(i[7]*100),ariaValueText:G("aria_timeline_value",{position:i[6],duration:i[5]}),loadedProgress:i[13],filledProgress:i[7],handleProgress:i[7],videoEpisodes:i[4],onPointerDown:i[29],onHandleMove:i[30],onPointerMove:i[33],onPointerUp:i[31],onPointerEnter:i[32],onPointerLeave:i[34],onDisabledClick:i[27],isInteractive:i[24],disabled:i[14].has("TIMELINE"),hideHandel:i[3]};return i[0]!==void 0&&(u.ref=i[0]),n=new Nr({props:u}),be.push(()=>ze(n,"ref",l)),{c(){N(e.$$.fragment),t=Y(),N(n.$$.fragment)},m(c,m){R(e,c,m),k(c,t,m),R(n,c,m),r=!0},p(c,m){let h=m[0]&1024?Fe(s,[Bo(c[10])]):{};m[0]&2838|m[1]&1048576&&(h.$$scope={dirty:m,ctx:c}),e.$set(h);let y={};m[0]&4096&&(y.isActiveLive=c[12]),m[0]&2048&&(y.isMobile=c[11]),m[0]&4&&(y.ariaValueMax=c[2]),m[0]&128&&(y.ariaValueNow=Math.round(c[7]*100)),m[0]&96&&(y.ariaValueText=G("aria_timeline_value",{position:c[6],duration:c[5]})),m[0]&8192&&(y.loadedProgress=c[13]),m[0]&128&&(y.filledProgress=c[7]),m[0]&128&&(y.handleProgress=c[7]),m[0]&16&&(y.videoEpisodes=c[4]),m[0]&16384&&(y.disabled=c[14].has("TIMELINE")),m[0]&8&&(y.hideHandel=c[3]),!o&&m[0]&1&&(o=!0,y.ref=c[0],Ue(()=>o=!1)),n.$set(y)},i(c){r||(d(e.$$.fragment,c),d(n.$$.fragment,c),r=!0)},o(c){p(e.$$.fragment,c),p(n.$$.fragment,c),r=!1},d(c){c&&w(t),B(e,c),B(n,c)}}}function Lv(i,e,t){var Ze;let n,o,r,s,a,l,u,c,m,h,y,{showTimeline:g=!1}=e,{ref:I=void 0}=e,C=nt(),V=Bt(),S=C.state.bufferedProgress$;q(i,S,Me=>t(13,h=Me));let v=C.state.positionWithScrubbing$;q(i,v,Me=>t(41,l=Me));let E=C.state.duration$;q(i,E,Me=>t(2,r=Me));let W=C.state.isLive$;q(i,W,Me=>t(1,o=Me));let D=C.state.isActiveLive$;q(i,D,Me=>t(12,m=Me));let L=C.ui.isMobile;q(i,L,Me=>t(11,c=Me));let J=V.features.episodes?C.actions.internal.getVideoEpisodes():void 0,ue=C.actions.internal.getPreviewThumbsData(),Q=C.state.interactiveEpisodes$;q(i,Q,Me=>t(42,u=Me));let ee=C.state.isInteractive,X=C.state.isInteractiveTime$;q(i,X,Me=>t(3,s=Me));let x=C.state.isInteractiveExpectation$;q(i,x,Me=>t(40,a=Me));let ce=C.actions.internal.correctSeekTimeToInteractive,z=(Ze=C.callbacks)==null?void 0:Ze.onDisabledTimelineClick,j=C.ui.controls.disabledControls$;q(i,j,Me=>t(14,y=Me));let A=V.features.interactiveResponsiveUi,de,$,Ee,ne,ae=!1,Ie="",Te=0,Se=0,rt=0,Pe;function qe(Me){return!ce||!ee?Me:ce(Me*r)/r}function te(Me){C.actions.internal.startScrubbing(qe(Me))}function _e(Me){s||C.actions.internal.progressScrubbing(qe(Me))}function Ce(Me){C.actions.internal.completeScrubbing(qe(Me)),t(36,ae=!1)}function xe(Me,De,Qe){st(Me,De,Qe),t(36,ae=!0)}function ot(Me,De,Qe){st(Me,De,Qe),t(36,ae=!0)}function at(){t(36,ae=!1)}function st(Me,De,Qe){t(9,rt=qe(Me)),t(37,Te=De),Qe&&t(38,Se=Qe),t(8,Ie=Je(Me))}function Je(Me){let De=Hn((o?1-Me:Me)*r);return o?`-${De}`:De}function fe(Me){I=Me,t(0,I)}return i.$$set=Me=>{"showTimeline"in Me&&t(35,g=Me.showTimeline),"ref"in Me&&t(0,I=Me.ref)},i.$$.update=()=>{i.$$.dirty[1]&2048&&t(4,de=ee?u:J),i.$$.dirty[0]&4&&t(5,$=Hn(r)),i.$$.dirty[1]&1024&&t(6,Ee=Hn(l)),i.$$.dirty[0]&4|i.$$.dirty[1]&1024&&t(7,ne=l/r),i.$$.dirty[0]&8|i.$$.dirty[1]&512&&t(39,Pe=a||s),i.$$.dirty[0]&2|i.$$.dirty[1]&496&&t(10,n={containerWidth:Se,translateXPx:Te,translateYPx:ee&&ue?-36:-16,active:ae&&g&&!Pe&&!A,pointer:!V.features.timelinePreview||!ue||o})},[I,o,r,s,de,$,Ee,ne,Ie,rt,n,c,m,h,y,V,S,v,E,W,D,L,ue,Q,ee,X,x,z,j,te,_e,Ce,xe,ot,at,g,ae,Te,Se,Pe,a,l,u,fe]}var Ou=class extends H{constructor(e){super(),U(this,e,Lv,Mv,F,{showTimeline:35,ref:0},Iv,[-1,-1])}},Em=Ou;function Vv(i){let e,t;return e=new Nr({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:G("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.ariaValueMax=n[0]),o&8&&(r.ariaValueNow=Math.round(n[3]*100)),o&6&&(r.ariaValueText=G("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(r.filledProgress=n[3]),o&16&&(r.squareBorders=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Rv(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=nt().ui.isMobile;q(i,a,m=>t(4,n=m));let l,u,c;return i.$$set=m=>{"position"in m&&t(6,o=m.position),"duration"in m&&t(0,r=m.duration)},i.$$.update=()=>{i.$$.dirty&1&&t(1,l=Hn(r)),i.$$.dirty&64&&t(2,u=Hn(o)),i.$$.dirty&65&&t(3,c=o/r)},[r,l,u,c,n,a,o]}var Fu=class extends H{constructor(e){super(),U(this,e,Rv,Vv,F,{position:6,duration:0})}},bl=Fu;function Bv(i){ge(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 Nv(i){let e;return{c(){e=P("div"),f(e,"class","timeline-stub svelte-1gqonyf"),K(e,"mobile",i[3])},m(t,n){k(t,e,n)},p(t,n){n&8&&K(e,"mobile",t[3])},i:me,o:me,d(t){t&&w(e)}}}function Dv(i){let e,t,n,o,r=[Fv,Ov],s=[];function a(l,u){return l[1]?0:1}return t=a(i,-1),n=s[t]=r[t](i),{c(){e=P("div"),n.c(),f(e,"class","timeline svelte-1gqonyf"),K(e,"mobile",i[3])},m(l,u){k(l,e,u),s[t].m(e,null),o=!0},p(l,u){let c=t;t=a(l,u),t===c?s[t].p(l,u):(se(),p(s[c],1,1,()=>{s[c]=null}),le(),n=s[t],n?n.p(l,u):(n=s[t]=r[t](l),n.c()),d(n,1),n.m(e,null)),(!o||u&8)&&K(e,"mobile",l[3])},i(l){o||(d(n),o=!0)},o(l){p(n),o=!1},d(l){l&&w(e),s[t].d()}}}function Ov(i){let e,t,n;function o(s){i[14](s)}let r={showTimeline:i[2]};return i[0]!==void 0&&(r.ref=i[0]),e=new Em({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a&4&&(l.showTimeline=s[2]),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function Fv(i){let e,t;return e=new bl({props:{position:i[4],duration:i[5]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.position=n[4]),o&32&&(r.duration=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Hv(i){let e,t,n,o,r=[Dv,Nv],s=[];function a(l,u){return l[2]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=$e()},m(l,u){s[e].m(l,u),k(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e===c?s[e].p(l,u):(se(),p(s[c],1,1,()=>{s[c]=null}),le(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),s[e].d(l)}}}function qv(i,e,t){let n,o,r,s,{isAds:a=!1}=e,{canRewindLive:l}=e,{isRewindableLive:u}=e,{isHidden:c=!1}=e,{ref:m=void 0}=e,h=nt(),y=h.state.isLive$;q(i,y,v=>t(13,n=v));let g=h.ads.duration;q(i,g,v=>t(5,s=v));let I=h.ads.position;q(i,I,v=>t(4,r=v));let C=h.ui.isMobile;q(i,C,v=>t(3,o=v));let V;function S(v){m=v,t(0,m)}return i.$$set=v=>{"isAds"in v&&t(1,a=v.isAds),"canRewindLive"in v&&t(10,l=v.canRewindLive),"isRewindableLive"in v&&t(11,u=v.isRewindableLive),"isHidden"in v&&t(12,c=v.isHidden),"ref"in v&&t(0,m=v.ref)},i.$$.update=()=>{i.$$.dirty&15362&&t(2,V=!c&&(!n||n&&l&&u||a))},[m,a,V,o,r,s,y,g,I,C,l,u,c,n,S]}var Hu=class extends H{constructor(e){super(),U(this,e,qv,Hv,F,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},Bv)}},vl=Hu;import{noop as Kv}from"@vkontakte/videoplayer-shared";function Uv(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=O("svg"),a&&a.c(),t=O("path"),n=O("path"),o=O("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"),ye(e,u)},m(c,m){k(c,e,m),a&&a.m(e,null),_(e,t),_(e,n),_(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),ye(e,u=Fe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&w(e),a&&a.d(c)}}}function zv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var qu=class extends H{constructor(e){super(),U(this,e,zv,Uv,F,{})}},Am=qu;function Wv(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708"),f(t,"clip-rule","evenodd"),f(t,"opacity",".7"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function xv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Uu=class extends H{constructor(e){super(),U(this,e,xv,Wv,F,{})}},Mm=Uu;function jv(i){ge(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 Lm(i){let e,t,n;function o(s){i[19](s)}let r={className:"w-max btn-full-opacity btn-jc-l "+(i[7]?"px-0":""),testId:"btn-episodes",click:i[13],disabled:!i[8],ariaExpanded:i[4],ariaLabel:i[6],$$slots:{default:[Xv]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new bt({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a&128&&(l.className="w-max btn-full-opacity btn-jc-l "+(s[7]?"px-0":"")),a&16&&(l.ariaExpanded=s[4]),a&64&&(l.ariaLabel=s[6]),a&8388777&&(l.$$scope={dirty:a,ctx:s}),!t&&a&2&&(t=!0,l.ref=s[1],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function Gv(i){let e,t,n,o;e=new Am({});function r(l,u){if(l[5]==="FULL")return Zv;if(l[5]==="COUNT")return Qv}let s=r(i,-1),a=s&&s(i);return{c(){N(e.$$.fragment),t=Y(),a&&a.c(),n=$e()},m(l,u){R(e,l,u),k(l,t,u),a&&a.m(l,u),k(l,n,u),o=!0},p(l,u){s===(s=r(l,u))&&a?a.p(l,u):(a&&a.d(1),a=s&&s(l),a&&(a.c(),a.m(n.parentNode,n)))},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){l&&(w(t),w(n)),B(e,l),a&&a.d(l)}}}function Yv(i){let e,t,n,o,r,s;return r=new Mm({}),{c(){e=P("span"),t=Oe(i[3]),n=Y(),o=P("div"),N(r.$$.fragment),f(e,"class","text mobile svelte-1yhs2ga"),f(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,l){k(a,e,l),_(e,t),k(a,n,l),k(a,o,l),R(r,o,null),s=!0},p(a,l){(!s||l&8)&&Ke(t,a[3])},i(a){s||(d(r.$$.fragment,a),s=!0)},o(a){p(r.$$.fragment,a),s=!1},d(a){a&&(w(e),w(n),w(o)),B(r)}}}function Qv(i){let e,t=i[0].length+"",n;return{c(){e=P("span"),n=Oe(t),f(e,"class","text count svelte-1yhs2ga")},m(o,r){k(o,e,r),_(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&Ke(n,t)},d(o){o&&w(e)}}}function Zv(i){let e,t;return{c(){e=P("span"),t=Oe(i[3]),f(e,"class","text svelte-1yhs2ga")},m(n,o){k(n,e,o),_(e,t)},p(n,o){o&8&&Ke(t,n[3])},d(n){n&&w(e)}}}function Xv(i){let e,t,n,o,r=[Yv,Gv],s=[];function a(l,u){return l[7]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=$e()},m(l,u){s[e].m(l,u),k(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(se(),p(s[c],1,1,()=>{s[c]=null}),le(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),s[e].d(l)}}}function Jv(i){let e,t,n=i[2]&&Lm(i);return{c(){n&&n.c(),e=$e()},m(o,r){n&&n.m(o,r),k(o,e,r),t=!0},p(o,[r]){o[2]?n?(n.p(o,r),r&4&&d(n,1)):(n=Lm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(se(),p(n,1,1,()=>{n=null}),le())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function $v(i,e,t){var Q,ee,X;let n,o,r,s,{position:a=0}=e,{duration:l=0}=e,{timeCodes:u=[]}=e,c=nt(),m=(ee=(Q=c.callbacks)==null?void 0:Q.onEpisodeChanged)!=null?ee:Kv,h=!!((X=c.callbacks)!=null&&X.onEpisodeClicked),y=c.ui.currentGridType$;q(i,y,x=>t(18,r=x));let g=c.ui.episodes.openedByKeyboard$;q(i,g,x=>t(17,o=x));let I=c.ui.episodes.panelOpened$;q(i,I,x=>t(4,n=x));let C=c.ui.isMobile;q(i,C,x=>t(7,s=x));let V,S=x=>{var z,j,A;if(!!((z=c.callbacks)!=null&&z.onEpisodeClicked)){let de=Er(x);g.set(de),I.set(!0),(A=(j=c.callbacks)==null?void 0:j.onEpisodeClicked)==null||A.call(j,de)}},v=null,E=0,W="",D,L,J=(x,ce,z)=>mt(this,null,function*(){yield cn(),(x==null?void 0:x.getAttribute("aria-expanded"))==="false"&&ce&&!z&&(g.set(!1),x.focus())});function ue(x){V=x,t(1,V)}return i.$$set=x=>{"position"in x&&t(14,a=x.position),"duration"in x&&t(15,l=x.duration),"timeCodes"in x&&t(0,u=x.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&49152&&t(16,E=a/l),i.$$.dirty&98309){let x=gl(E,l,u);x?(v==null?void 0:v.time)!==x.time&&(m(x),t(2,v=x)):t(2,v=null)}i.$$.dirty&4&&t(3,W=(v==null?void 0:v.text)||""),i.$$.dirty&262144&&(yi(r,"xl")?t(5,D="FULL"):yi(r,"m")&&dm(r,"xl")?t(5,D="COUNT"):t(5,D="SHORT")),i.$$.dirty&8&&t(6,L=`${G("tooltip_episodes")}: ${W}`),i.$$.dirty&131090&&J(V,o,n)},[u,V,v,W,n,D,L,s,h,y,g,I,C,S,a,l,E,o,r,ue]}var zu=class extends H{constructor(e){super(),U(this,e,$v,Jv,F,{position:14,duration:15,timeCodes:0},jv)}},yl=zu;import{debounceFn as D3}from"@vkontakte/videoplayer-shared";import{ChromecastState as l4,PlaybackState as us,Player as a4,VideoFormat as cs}from"@vkontakte/videoplayer-core";import{assertNonNullable as qn,clientChecker as u4,getHighestQuality as c4,InterfaceLanguage as f4,isInvariantQuality as d4,isNonNullable as m4,loadVKLangPack as p4,Logger as _4,map as h4,merge as g4,Observable as b4,Subject as Pl,Subscription as Yu,Tracer as v4,ValueSubject as y4,VideoQuality as w4}from"@vkontakte/videoplayer-shared";import{SeekAction as zo}from"@vkontakte/videoplayer-statistics";import"@vkontakte/videoplayer-interactive";import{addScript as e4,Subject as Ji,clearVideoElement as t4}from"@vkontakte/videoplayer-shared";var Vm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var i4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",wl=class{constructor(e,t){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new Ji,loadStarted$:new Ji,loadEnded$:new Ji,loadError$:new Ji,ready$:new Ji,slotRequested$:new Ji,started$:new Ji,timeRemained$:new Ji,paused$:new Ji,resumed$:new Ji,ended$:new Ji,empty$:new Ji,skipped$:new Ji,clicked$:new Ji,closed$:new Ji,error$:new Ji};this.loadAdman=e=>new Promise((t,n)=>{let o;this.events.loadStarted$.next();let r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?(t(),this.events.loadEnded$.next()):n()};e4(i4,e,this.loadTimeout).then(()=>{window.AdmanHTML?(t(),this.events.loadEnded$.next()):(window.admanAsyncInit=r,o=window.setTimeout(r,this.initTimeout))}).catch(()=>{n(),clearTimeout(o)})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,t)=>{this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(t)}`}),this.events.started$.next(e),t.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),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.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e;this.log({message:"ad clicked"}),(e=this.videoElement)==null||e.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout,this.runtimeTimeout=t.runtimeTimeout}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){if(this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:t,height:n,isFullscreen:o,isAutoplay:r,adsContainer:s,adsVideoElement:a,slotId:l,params:u={},duration:c,previewParam:m}=e,h,y=this.playerState&&je(this.playerState.vsid);y&&(h=parseInt(y,36));let g=Xe(St(Xe({dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:Vm(t,n),puid11:o?0:1,preview:m},h?{request_id:h}:{}),{duration:c}),u);m||delete g.preview;let I={slot:l,wrapper:s,videoEl:a,videoQuality:n,params:g,browser:{mobile:!1}};try{let C=new window.AdmanHTML;C.setDebug(!1),C.onReady(this.onAdsReady),C.onStarted(this.onAdStarted),C.onPlayed(this.onAdPlayed),C.onPaused(this.onAdPaused),C.adMidrollPoint(this.onAdMidrollPoint),C.onClosed(this.onAdClosed),C.onSkipped(this.onAdSkipped),C.onClicked(this.onAdClicked),C.onTimeRemained(this.onAdTimeRemained),C.onCompleted(this.onAdCompleted),C.onError(this.onAdError),C.init(I),this.adman=C,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(I)}`})}catch(C){this.onAdError("could not init adman")}}switchToVideo(e=!1){var n,o;if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let t=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${t}`}),t&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let r="Switch to video: Adman state was not updated correctly";this.log({message:r}),this.events.error$.next(r)}(o=(n=this.actions).switchFromAdsToVideo)==null||o.call(n,!t)}}togglePlay(){if(this.adsState){this.log({message:"toggle play"});let e=je(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){if(this.log({message:`set volume ${e}`}),this.adman)try{this.adman.setVolume(e)}catch(t){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(t){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){if(this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(e){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){if(this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(e){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){if(this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(e){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){if(this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(e){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,t){var n;(n=this.adman)==null||n.setPosition(Math.floor(e),Math.floor(t))}destroy(){var e;this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.destroy(),this.videoElement&&t4(this.videoElement),this.isDestroyed=!0}};var Rm=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 Wu=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let t=[],n=e.split(this.twoLinesRegExp);for(let o of n){let r={startTime:0,endTime:0,texts:[],lang:""},s=o.split(this.oneLineRegExp);for(let a of s)if(!r.startTime&&!r.endTime){let l=new kl,{startTime:u,endTime:c}=l.parse(a);r.startTime=u,r.endTime=c}else if(a.trim()!==""){let l=new xu,{texts:u}=l.parse(a);r.texts=[...r.texts,...u]}(r.startTime||r.endTime)&&r.texts.length>0&&t.push(r)}return t}},kl=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let t={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(t.startTime=this.calcTime(n[1],n[2],n[3],n[4]),t.endTime=this.calcTime(n[6],n[7],n[8],n[9])),t}parseTime(e){let t=this.timeRegExp.exec(e);return t?this.calcTime(t[1],t[2],t[3],t[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",t="0",n="0",o="0"){let r=Number(e)*60*60,s=Number(t)*60,a=Number(n),l=+`0.${o}`;return r+s+a+l}},xu=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](s){let a=0,l=[];for(;a<s.length;){let u=["<",">"].reduce((c,m)=>{let h=s.indexOf(m,a);return c===-1||c>h?h:c},-1);if(u===-1){l.push(s.substring(a));break}l.push(s.substring(a,u)),a=u+1}return l}}),r=new kl;for(let s of o)r.isTime(s)?t.texts.push({type:"timestamp",value:r.parseTime(s)}):t.texts.push({type:"text",value:s});return t}},Bm=Wu;import{isNonNullable as Ku}from"@vkontakte/videoplayer-shared";var Uo,li,ju=0,Gu=!1,Nm=(i,e=0,t=0)=>i<e&&i<t,Cl=(i,e=0,t=0)=>i>=e&&i<=t,n4=(i,e=0,t=0)=>i>e&&i>t,Dm=(i,e,t,n=!1)=>{var a;let o=(a=t.find(({lang:l})=>l===e.value))==null?void 0:a.subtitles;if(n){let l=o==null?void 0:o.find(({startTime:u,endTime:c})=>Cl(i,u,c));return l?St(Xe({},l),{lang:e.value}):void 0}let r=i>=ju,s=i<ju;if(ju=i,s&&(Gu=!1),Ku(Uo)&&Cl(i,Uo.startTime,Uo.endTime)&&Uo.lang===e.value)return Uo;if(!Ku(li)&&(o!=null&&o.length)&&!Gu){let l=o.find(({startTime:u,endTime:c})=>Cl(i,u,c)||r&&Nm(i,u,c));li=l&&St(Xe({},l),{lang:e.value}),Uo=void 0,!Ku(li)&&o[o.length-1].endTime<i&&(Gu=!0);return}else{if(Cl(i,li==null?void 0:li.startTime,li==null?void 0:li.endTime))return Uo=li,li=void 0,Uo;(r&&n4(i,li==null?void 0:li.startTime,li==null?void 0:li.endTime)||s&&Nm(i,li==null?void 0:li.startTime,li==null?void 0:li.endTime))&&(li=void 0)}};var Om={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"},o4={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"},Sl=i=>{var e,t;return(t=(e=Om[i])!=null?e:Om[o4[i]])!=null?t:void 0};import{Subscription as r4}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-statistics";var Tl=class{constructor(e,t=new r4){this.oneStat=e;this.statSubscription=t}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Il=(t=>(t.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",t.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",t))(Il||{});var yo=i=>i!=null?i:0,Or=(i,e)=>{var o,r;let t=(o=i==null?void 0:i.getBoundingClientRect)==null?void 0:o.call(i),n=(r=e==null?void 0:e.getBoundingClientRect)==null?void 0:r.call(e);return{top:Math.round(yo(t==null?void 0:t.top)-yo(n==null?void 0:n.top)),left:Math.round(yo(t==null?void 0:t.left)-yo(n==null?void 0:n.left)),bottom:Math.round(yo(t==null?void 0:t.bottom)-yo(n==null?void 0:n.top)),right:Math.round(yo(t==null?void 0:t.right)-yo(n==null?void 0:n.left))}},Fr=i=>{var t;let e=(t=i==null?void 0:i.getBoundingClientRect)==null?void 0:t.call(i);return{width:yo(e==null?void 0:e.width),height:yo(e==null?void 0:e.height)}};var Fm=({interfaceLanguage:i,isCyrillicRelatedInterface:e,videoId:t,isClip:n,isLiveCatchUpMode:o,statAuthToken:r,isAudioDisabled:s,canDownload:a,callbacks:l,webApi:u,videoEpisodes:c,previewThumbsData:m,uiConfig:h,coreConfig:y,player:g,disabledControls:I,isInteractive:C,interactiveRanges$:V,isInteractiveTime$:S,replayInteractive:v,stopPlayer:E,hasInteractiveBranches:W,playPrevChapterDisabledTooltip:D,additionalButtons:L,additionalSettingsMenuItems:J,additionalContextMenuItems:ue,looped:Q=!1,statistics:ee,saveRate:X})=>{var Cs,Ss,Ts,Is;let x=St(Xe({},y),{configName:[...(Cs=y.configName)!=null?Cs:[],"ui"],isAudioDisabled:s,live:St(Xe({},(Ss=y.live)!=null?Ss:{}),{isLiveCatchUpMode:!!o})}),ce=h,z=v4.createRootTracer(ce.features.saveTraceInfoToFile),j=z.createComponentTracer("Store"),A=g||new a4(x,z),de=new _4,$=new wl(de,{loadTimeout:ce.ads.loadTimeout,initTimeout:ce.ads.initTimeout,runtimeTimeout:ce.ads.runtimeTimeout}),Ee=sr.getInstance(),ne=u==null?void 0:u.pictureInPictureApi,ae=u==null?void 0:u.annotationsApi,Ie=de.createComponentLog("Store"),Te,Se,rt={},Pe=new Rs,qe=ee?At(ee.oneStat.vsid$):jn(void 0),te=Ne(No()),_e=(Ts=ne==null?void 0:ne.info.isActive$)!=null?Ts:new y4(!1),Ce=ne==null?void 0:ne.info.type,xe=Ne(0),ot=Ne([]),at=g4(A.events.fatalError$,A.events.managedError$).subscribe(b=>ot.update(M=>[...M,b])),st=jn(!1,b=>{let M=A.events.fatalError$.subscribe(()=>b(!0));return()=>M.unsubscribe()}),Je=b=>mt(void 0,null,function*(){var we;let M=Object.values(f4).includes(b);if(ce.downloadVKLanguages&&(M&&ce.updateBuiltinLanguages||!Pa(b))){let tt;try{tt=yield p4(b,nd,od)}catch(_t){(we=ee==null?void 0:ee.oneStat)==null||we.logError({errorType:"VKLangPack",fatal:!1}),Ee==null||Ee.report(_t,{errorType:"VKLangPack",fatal:!1})}tt&&(Ia({language:b,pack:tt,fallback:ce.defaultLanguage}),fe.set(b))}Pa(b)&&fe.set(b)}),fe=Ne(i),Ze=Ne(e);Je(i);let Me=(b,M)=>{let T=je(fe);return Ea(T,b,M,ce.defaultLanguage)},De=Ne("thumb"),Qe=(()=>{let b=si([st,De],([M,T])=>M?"crashed":T);return St(Xe({},b),{is:M=>je(b)===M})})(),He=(()=>{let b=Ne(new Set(I));return St(Xe({},b),{add:M=>{b.update(T=>new Set([...T].concat(M)))},remove:M=>{b.update(T=>{let we=[...T];return new Set(Array.isArray(M)?we.filter(tt=>!M.includes(tt)):we.filter(tt=>tt!==M))})},includes:M=>{let T=je(b);return Array.isArray(M)?M.every(we=>T.has(we)):T.has(M)}})})();j.log("create store"),Ie({message:"create store"});let ct=b=>{let M=b.container;M.append(A.experimental.element$.getValue()),Ye=new MutationObserver(T=>{let{removedNodes:we}=T[0];we.length&&M.append(A.experimental.element$.getValue())}),Ye.observe(M,{childList:!0})},ft=b=>{Ie({message:`init video, config: ${JSON.stringify(b)}`}),C?ct(b):A.initVideo(b),j.log("init video",{isInteractive:C}),b.subtitles&&A.setExternalTextTracks(b.subtitles),Te=b},he=new Pl,pt=b=>he.next(b),yt=new Pl,It=new Pl,kt=new Pl,Ye=null,Gt={actionRewind$:yt,actionSeek$:It,inPiP$:_e,inFullscreen$:new b4(b=>te.subscribe(M=>b.next(M))),actionSetSubtitle$:kt,nextMovie$:he};if(ee){let{oneStat:b,statSubscription:M}=ee;C||M.add(b.attachTo(A)),M.add(b.attachToUi(Gt)),M.add(b.attachToAds($.events)),b.authorize(r).catch(T=>{Ie({message:`onestat auth error ${String(T)}`})})}if(Ee){let b=new Yu,M=(T,we)=>b.add(T.subscribe(we));if(M(A.events.managedError$,T=>{Ee.logIError(T)}),M(A.events.fatalError$,T=>{Ee.logIError(T,!0)}),ee){let{oneStat:T}=ee;M(T.experimental.error$,we=>{Ee.logIError(we)})}Ee.sentrySubscription.add(b)}let ii=()=>{u4.isIOS&&Se&&Wd(Se)},Kt=new Yu().add(A.experimental.element$.subscribe(b=>{b&&(Se=b,b.classList.add("player-media"),ar(ne)&&(ne.updateVideoElement(),ne.registryEventHandlers()),C&&b.setAttribute("pip","false"))})).add(A.events.ended$.subscribe(()=>{var b;ii(),(b=l==null?void 0:l.onEnded)==null||b.call(l)})).add(A.events.looped$.subscribe(()=>{var b;(b=l==null?void 0:l.onLooped)==null||b.call(l)})).add(A.events.started$.subscribe(()=>mt(void 0,null,function*(){var M,T;ar(ne)&&(yield ne==null?void 0:ne.revealPictureInPicture());let b=A.info.muted$.getValue();(M=l==null?void 0:l.onStarted)==null||M.call(l),(T=rt.onStarted)==null||T.call(rt,b)}))).add(A.events.willSeek$.subscribe(({from:b,to:M})=>{var T;(T=l==null?void 0:l.onSeek)==null||T.call(l,b,M)})).add(A.events.autoplaySoundProhibited$.subscribe(()=>{var b;(b=l==null?void 0:l.onAutoplaySoundProhibited)==null||b.call(l)})).add(A.info.position$.subscribe(b=>{var T;let M=A.info.duration$.getValue();isFinite(M)&&M>0&&((T=l==null?void 0:l.onTimeupdate)==null||T.call(l,M,b),$.setPosition(b,M))})).add(A.events.fatalError$.subscribe(()=>{var b;(b=l==null?void 0:l.onCrashed)==null||b.call(l)})).add(A.events.loadedMetadata$.subscribe(()=>{ht.state.loadedMetadata$.set(!0)})).add(A.info.is3DVideo$.subscribe(b=>{ht.ui.is3DVideo.set(b)})).add(A.info.isEnded$.subscribe(b=>{C&&(b?(S!=null&&S.getValue()&&He.add(Ls),He.add("PLAY_BUTTON")):He.remove("PLAY_BUTTON"))})).add(A.info.liveTime$.subscribe(b=>{var M;(M=l==null?void 0:l.onLiveTime)==null||M.call(l,b)})).add(A.info.isStalled$.subscribe(b=>{var M;(M=l==null?void 0:l.onStalledChanged)==null||M.call(l,b)})).add($.events.loadStarted$.subscribe(()=>{var b,M;return(M=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onLoadStarted)==null?void 0:M.call(b)})).add($.events.loadEnded$.subscribe(()=>{var b,M;return(M=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onLoadEnded)==null?void 0:M.call(b)})).add($.events.loadError$.subscribe(()=>{var b,M;return(M=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onLoadError)==null?void 0:M.call(b)})).add($.events.init$.subscribe(()=>{var b,M;return(M=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onInit)==null?void 0:M.call(b)})).add($.events.ready$.subscribe(()=>{var b,M;return(M=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onReady)==null?void 0:M.call(b)})).add($.events.started$.subscribe(b=>{var M,T;return(T=(M=l==null?void 0:l.adsInfo)==null?void 0:M.onStarted)==null?void 0:T.call(M,b)})).add($.events.timeRemained$.subscribe(b=>{var M,T;return(T=(M=l==null?void 0:l.adsInfo)==null?void 0:M.onTimeRemained)==null?void 0:T.call(M,b)})).add($.events.ended$.subscribe(b=>{var M,T;return(T=(M=l==null?void 0:l.adsInfo)==null?void 0:M.onCompleted)==null?void 0:T.call(M,b)})).add($.events.empty$.subscribe(()=>{var b,M;return(M=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onEmpty)==null?void 0:M.call(b)})).add($.events.clicked$.subscribe(b=>{var M,T;return(T=(M=l==null?void 0:l.adsInfo)==null?void 0:M.onClicked)==null?void 0:T.call(M,b)})).add($.events.closed$.subscribe(b=>{var M,T;return(T=(M=l==null?void 0:l.adsInfo)==null?void 0:M.onClosed)==null?void 0:T.call(M,b)})).add($.events.error$.subscribe(b=>{var M,T;return(T=(M=l==null?void 0:l.adsInfo)==null?void 0:M.onError)==null?void 0:T.call(M,b)})),Ht=new Yu,Yt=()=>{Ht.add(A.events.log$.subscribe(b=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${b.component}`,b.message)})).add(de.log$.subscribe(b=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${b.component}.`,b.message)}))},Nt=()=>{Ht.unsubscribe()},We=(b,M)=>{j.log("start camera manual rotation",{mx:b,my:M}),A.startCameraManualRotation(b,M)},et=(b=!1)=>{j.log("stop camera manual rotation",{immediate:b}),A.stopCameraManualRotation(b)},Pt=(b,M,T)=>{j.log("move camera focus px",{xpx:b,ypx:M,dt:T}),A.moveCameraFocusPX(b,M,T)},Qt=()=>{A.holdCamera()},Wt=()=>{A.releaseCamera()},pe=jn(A.info.position$.getValue(),b=>{let M,T,we=()=>{let tt=A.info.playbackState$.getValue(),_t=A.info.isLive$.getValue(),Et=A.info.duration$.getValue(),gt=A.info.position$.getValue();if([us.PLAYING,us.PAUSED].includes(tt)){let Lt=_t?gt-Et:A.getExactTime();Lt!==T&&b(Lt),T=Lt}M=requestAnimationFrame(we)};return we(),()=>cancelAnimationFrame(M)}),Zt=At(_e),Xt=At(A.info.playbackState$),Jt=At(A.info.currentBuffer$),Vt=At(A.info.isEnded$),$t=At(A.info.isLive$),jt=ce.features.playbackRate?At(A.info.canChangePlaybackSpeed$):jn(!1),qt=At(A.info.liveBufferTime$),xi=At(A.info.volume$),_i=At(A.info.muted$),Ti=ga(A.info.autoQualityLimits$.pipe(h4(({max:b})=>b!==void 0)),((Is=A.info.autoQualityLimits$.getValue())==null?void 0:Is.max)!==void 0),Ii=At(A.info.autoQualityLimitingAvailable$),Ut=At(A.info.availableQualities$),Ri=At(A.info.availableQualitiesFps$),Rt=At(A.info.chromecastState$),ci=At(A.info.chromecastDeviceName$),wi=At(A.info.currentFormat$),ni=At(A.info.throughputEstimation$),ki=At(A.info.videoBitrate$),Bi=At(A.info.intrinsicVideoSize$),Ae=At(A.info.duration$),it=At(A.info.isAudioAvailable$),Mt=null,Ci=A.info.isBuffering$,Si=jn(Ci.getValue(),b=>{let M=Ci.subscribe(T=>{T&&Mt===null?Mt=window.setTimeout(()=>{b(Ci.getValue()),Mt=null},ce.loaderDelay):b(T)});return()=>{M.unsubscribe(),Mt&&clearTimeout(Mt)}}),zt=()=>{Mt&&clearTimeout(Mt),Mt=null},Pi=si([Ae,$t],([b,M])=>M?-b:b),hi=si([Xt],([b])=>b===us.PLAYING),$i=At(A.info.atLiveEdge$),xt=At(A.info.atLiveDurationEdge$),fn=At(A.info.position$),Ei=si([fn,Ae],([b,M])=>isFinite(b)&&isFinite(M)&&!!M),dn=si([Rt],([b])=>b===l4.CONNECTED),mn=At(A.info.availableVideoStreams$),pn=ce.features.audioLanguages?At(A.info.availableAudioStreams$):jn([]),Ni=At(A.info.currentVideoStream$),Ki=At(A.info.currentAudioStream$),ai=b=>{b.language&&Sa(b.language),A.setVideoStream(b)},en=b=>{b.language&&Sa(b.language),A.setAudioStream(b)},ji=b=>{let M;if(b.length===1&&(M=b.at(0)),M!=null||(M=b.find(we=>"isDefault"in we&&we.isDefault)),M)return M;let T=Ld();return T&&(M=b.find(({language:we})=>T===we)),M!=null||(M=b.at(0)),M},Di=!1;Kt.add(A.info.availableAudioStreams$.subscribe(b=>{if(!Di&&b.length){let M=ji(b);M&&(A.setAudioStream(M),Di=!0)}}));let In=!1;Kt.add(A.info.availableVideoStreams$.subscribe(b=>{if(!In&&b.length){let M=ji(b);M&&(A.setVideoStream(M),In=!0)}}));let gi=Ne(void 0),Oi=At(A.info.isAutoQualityEnabled$,b=>b&&gi.set(void 0)),Fi=At(A.info.currentQuality$,()=>gi.set(void 0)),_n=si([gi,Fi],([b,M])=>b!=null?b:M),Ai=si([Ut,Ri,Oi,_n,wi],([b,M,T,we,tt])=>{let _t=[];tt!==cs.MPEG&&_t.push({value:"auto",displayValue:Me("auto_quality_option"),selected:T});let Et=b.filter(gt=>!d4(gt));for(let gt of Et){let Lt=M[gt];_t.push({value:gt,displayValue:`${gt}${Lt?Rm(Lt):""}`,selected:T?!1:gt===we})}return _t}),Hi=At(A.info.currentPlaybackRate$),Mi=si([Hi,$i,xt],([b,M,T])=>{let we=T||C?1:ce.controls.playbackRateMin,tt=M?1:ce.controls.playbackRateMax,_t=ce.controls.playbackRateStep,Et=[];for(let gt=we;gt<=tt;gt+=_t)Et.push({value:gt,displayValue:gt===1?Me("playback_rate_1"):Me("playback_rate",{multiplier:gt.toString(10)}),selected:b===gt});return Et}),Dt={displayValue:Me("subtitles_off"),value:"off"},oi=Ne(Xe({},Dt)),fi=ce.features.subtitles?At(A.info.availableTextTracks$):jn([]),qi=bd(),hn=si([fi,oi],([b,M],T)=>{var _t;let we=[],tt=b.find(({language:Et})=>Et===M.value);if(tt!=null&&tt.url){let[,Et]=(_t=qi.find(tt.url))!=null?_t:[];if(Et){T(Et);return}Pe.download(tt.url).then(gt=>{if(!gt||Pe.isDestroyed())return;let Lt=new Bm,Dn=tt.language,ih=!!tt.isAuto,nh=Lt.parse(gt);Dn&&we.push({lang:Dn,subtitles:nh,isAuto:ih}),qi.add(tt.url,we),je(oi).value===M.value&&T(we)}).catch(gt=>{var Lt;(Lt=ee==null?void 0:ee.oneStat)==null||Lt.logError({errorType:"Subtitles download",fatal:!1}),Ee==null||Ee.report(gt,{errorType:"Subtitles download",fatal:!1})})}T(we)}),lt=si([Hi,hi,oi],([b,M,T],we)=>{let Et;if(A.info.isLive$.getValue()&&M&&T.value!==Dt.value){let Lt=()=>{let Dn=1e3/(3*b);Et=setTimeout(Lt,Dn),we(Date.now())};return Lt(),()=>clearTimeout(Et)}}),Ui=si([fi,oi],([b,M])=>{if(!b.length)return[];let T=[];for(let{language:we,isAuto:tt}of b){let _t=we&&Sl(we);we&&_t&&T.push({displayValue:tt?Me("subtitles_auto",{language:_t}):_t,value:we,selected:(M==null?void 0:M.value)===we,isAuto:tt})}return T.length?(T.unshift(St(Xe({},Dt),{selected:(M==null?void 0:M.value)===Dt.value})),T):[]}),di={available:[],prev:[]},zi=si([pe,oi,hn,lt],([b,M,T,we])=>{var _t,Et;let tt=A.info.isLive$.getValue();if(tt&&di.prev!==T){let gt=T.find(({lang:Dn})=>Dn===M.value),Lt=di.prev.find(({lang:Dn})=>Dn===M.value);if(gt){let Dn=St(Xe({},gt),{subtitles:[...(_t=Lt==null?void 0:Lt.subtitles)!=null?_t:[],...gt.subtitles]});di.available=[Dn],di.prev=T}}if(M&&M.value!==Dt.value){let gt=tt?(Et=Se==null?void 0:Se.currentTime)!=null?Et:0:b,Lt=tt?di.available:T;return Dm(gt,M,Lt,tt)}}),Gi=si([zi],([b])=>b!=null&&b.texts?b.texts:[]),Yi=Ne(!0),Ge=si([Jt,Pi,fn,qt],([b,M,T,we])=>{var gt;let tt=(gt=b==null?void 0:b.end)!=null?gt:0;if(!we)return tt/M;let Et=-T+we-M;return(tt-Et)/M}),Un=At(A.info.availableSources$),gn=si([Un],([b])=>Object.keys((b==null?void 0:b[cs.MPEG])||{}).length>0),bn=()=>{var T,we,tt;let b=Object.keys(((we=(T=A.info.availableSources$)==null?void 0:T.getValue())==null?void 0:we[cs.MPEG])||{}),M=c4(b)||w4.Q_144P;return(tt=Te.sources[cs.MPEG])==null?void 0:tt[M]},tn=()=>{var M;let b=bn();if(b)j.log("download video",{url:b}),_d(b,((M=Te==null?void 0:Te.meta)==null?void 0:M.title)||"video");else{let T="There is no URL for download video";j.log("download video",{message:T}),Ie({message:T})}},nn=()=>{Ie({message:"toggle muted"});let b=A.info.muted$.getValue(),M=A.info.volume$.getValue(),T=M===0||b,we=!T;j.log("toggle muted",{muted:b,volume:M,soundIsOff:T,nextValue:we}),zn(we)},on=()=>{var b;if(ht.ui.settingsMenu.visible$.set(!1),!je(ht.ui.settingsSubMenu.visible$)){let M=je(ht.ui.settingsMenu.ref$);if((b=l==null?void 0:l.uiInfo)!=null&&b.onSettingsMenu&&M){let we=Fr(M),tt={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:we,position:tt,name:"settings"})}}j.log("close settings menu")},rn=(b,M=()=>Promise.resolve())=>mt(void 0,null,function*(){var tt;ht.ui.settingsMenu.openedByBtnKeyboard$.set(!!b),ht.ui.settingsMenu.visible$.set(!0),yield M();let T=je(ht.ui.settingsMenu.ref$),we=ho();if((tt=l==null?void 0:l.uiInfo)!=null&&tt.onSettingsMenu&&T&&we){let Et=Fr(T),gt=Or(T,we);l.uiInfo.onSettingsMenu({visible:!0,size:Et,position:gt,name:"settings"})}j.log("open settings menu",{wasOpenedByKeyboard:b})}),bi=(b,M=!1)=>{var _t;ht.ui.settingsSubMenu.visible$.set(!1);let T=je(ht.ui.settingsMenu.ref$),we=ho(),tt=je(ht.ui.settingsMenu.visible$);if((_t=l==null?void 0:l.uiInfo)!=null&&_t.onSettingsMenu&&T&&we)if(tt&&!M){let gt=Fr(T),Lt=Or(T,we);l.uiInfo.onSettingsMenu({visible:!0,size:gt,position:Lt,name:"settings"})}else{let gt=Fr(b),Lt={top:0,left:0,bottom:0,right:0},Dn=je(ht.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:gt,position:Lt,name:Dn})}j.log("close settings sub menu")},Pn=(b,M)=>{var we;ht.ui.settingsSubMenu.visible$.set(!0),ht.ui.settingsSubMenu.ref$.set(M),ht.ui.settingsSubMenu.name$.set(b);let T=ho();if((we=l==null?void 0:l.uiInfo)!=null&&we.onSettingsMenu&&M&&T){let _t=Fr(M),Et=Or(M,T);l.uiInfo.onSettingsMenu({visible:!0,name:b,size:_t,position:Et})}j.log("open settings sub menu",{name:b})},vn=(b,M=b,T=!1)=>{var _t,Et,gt;let we=!T,tt=A.info.muted$.getValue();Ie({message:`set volume, volume: ${b}, preferredVolume: ${M}, internalCall: ${we}`}),j.log("set volume",{volume:b,preferredVolume:M,internalCall:we}),A.setVolume(b),$.setVolume(b),we&&((_t=l==null?void 0:l.onVolumeChange)==null||_t.call(l,b)),ya(M),tt?(A.setMuted(!1),we&&((Et=l==null?void 0:l.onUnmute)==null||Et.call(l)),Ns(!1)):!tt&&b===0&&(A.setMuted(!0),we&&((gt=l==null?void 0:l.onMute)==null||gt.call(l)),Ns(!0))},zn=(b,M=!1)=>{var tt,_t,Et,gt;let T=!M,we=A.info.volume$.getValue();if(Ie({message:`set muted, currentVolume: ${we}, mute: ${b}, internalCall: ${T}`}),j.log("set muted",{mute:b,currentVolume:we,internalCall:T}),A.setMuted(b),$.setVolume(b?0:we),Ns(b),T&&(b?(tt=l==null?void 0:l.onMute)==null||tt.call(l):(_t=l==null?void 0:l.onUnmute)==null||_t.call(l)),we===0){let Lt=(Et=Bs())!=null?Et:ce.volumeDefault;Lt===0&&(Lt=ce.volumeMinRestore,ya(Lt)),A.setVolume(Lt),$.setVolume(Lt),T&&((gt=l==null?void 0:l.onVolumeChange)==null||gt.call(l,Lt))}},sn=Ne(!1),yn=b=>{j.log("set looped",{isLooped:b}),sn.set(b),A.setLooped(b)};yn(Q);let wn=()=>{var b,M;(M=(b=l==null?void 0:l.uiInfo)==null?void 0:b.onReportProblem)==null||M.call(b)},En=b=>{Ie({message:`set autoplayNextEnabled, value: ${b}`}),j.log("set autoplay next enabled",{autoplayNextEnabled:b}),ht.ui.autoplayNextEnabled$.set(b),Bd(b)},An=b=>{Ie({message:`set timerNextVideoRunning, value: ${b}`}),j.log("set timer next video running",{timerNextVideoRunning:b}),ht.ui.timerNextVideoRunning$.set(b)},ln=()=>{var b;(b=l==null?void 0:l.onNextVideoAnnouncementClick)==null||b.call(l)},Mn=()=>{var b;(b=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||b.call(l)},an=()=>{var b;(b=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||b.call(l)},ao=()=>{A.prepare()},uo=()=>{qn(ht);let b=je(ht.ui.controls.disabledControls$),M=je(ht.playerPhase),T={playerPhase:M,isInteractive:C,isVideoEnded:!1,action:"none"};if(b.has("PLAY_BUTTON"))return;if(Ie({message:"toggle play"}),M==="ads"){T.action="play",j.log("toggle adman play",T),$.togglePlay();return}let we=()=>{var _t;Ie({message:"toggle play, call player.play"}),T.action="play",A.play(),(_t=l==null?void 0:l.onPlay)==null||_t.call(l)},tt=()=>{var _t;Ie({message:"toggle play, call player.pause"}),T.action="pause",A.pause(),(_t=l==null?void 0:l.onPause)==null||_t.call(l)};if(A.info.isEnded$.getValue()){if(Ie({message:"toggle play, video ended, seek to 0"}),yt.next(),It.next(zo.REWIND),C){v==null||v();return}A.seekTime(0),we()}else A.info.playbackState$.getValue()!==us.PLAYING?we():tt();j.log("toggle play",T)},co=b=>{Ie({message:`set quality, quality: ${b}`}),j.log("set quality",{quality:b}),A.setAutoQuality(b==="auto"),b!=="auto"?(Id(t,b),gi.set(b),A.setQuality(b)):wa()},mi=b=>{Ie({message:`set trafficSavingEnabled, value: ${b}`}),j.log("set traffic saving enabled",{trafficSavingEnabled:b}),A.setAutoQualityLimits({max:b?ce.trafficSavingLimit:void 0}),Ad(b)},Wn=b=>{j.log("set playback rate",{playbackRate:b}),A.setPlaybackRate(b),ce.features.saveRate&&X&&!A.info.isLive$.getValue()&&Vd(b)},Zn=()=>{let b=je(Mi),M=b.findIndex(({selected:we})=>we);if(M===b.length-1)return;let T=b[M+1];Wn(T.value)},Xn=()=>{let b=je(Mi),M=b.findIndex(({selected:we})=>we);if(M===0)return;let T=b[M-1];Wn(T.value)},xn=b=>{j.log("set subtitles",Xe({},b)),b&&b.value!==Dt.value&&kt.next(b.isAuto?b.value+"_auto":b.value),oi.set(b)},Jn=()=>{j.log("toggle subtitles");let b=je(Ui),M=je(oi),T=je(fe);if((M==null?void 0:M.value)===Dt.value){let we=b.filter(tt=>tt.value!==Dt.value).find(tt=>tt.value===T)||b[1];xn(we!=null?we:Xe({},Dt))}else xn(St(Xe({},Dt),{selected:!1}))},Qi=(b,M,T=!0)=>{var we;if(Ie({message:`seek to time, time: ${b}`}),j.log("seek to time",{time:b,action:M,forcePrecise:T}),It.next(M),A.info.isLive$.getValue()){let tt=A.info.duration$.getValue(),_t=Math.min(0,tt+b);A.seekTime(_t,T)}else{if(S!=null&&S.getValue())return;A.info.isEnded$.getValue()&&(Ie({message:"seek after ended, call callbacks.onPlay"}),(we=l==null?void 0:l.onPlay)==null||we.call(l)),A.seekTime(ks(b),T)}},kn=b=>{Ie({message:`seek to episode start time: ${b}`}),j.log("seek to episode start time",{time:b}),Qi(b,zo.EPISODE,!0)},$n=(b,M)=>{Ie({message:`seek to percent, percent: ${b}`}),j.log("seek to percent",{percent:b,action:M});let T=Math.round(je(Pi)*b);Qi(T,M,!1)},eo=b=>{Ie({message:`seek external, time: ${b}`}),j.log("seek external",{time:b}),It.next(zo.UNKNOWN),A.seekTime(A.info.isLive$.getValue()?-b:b)},fo=b=>{var we,tt;let M=(we=b.max)!=null?we:"none",T=(tt=b.min)!=null?tt:"none";Ie({message:`set auto quality limitation. Max: ${M}. Min: ${T}`}),j.log("set auto quality limits",{max:M,min:T}),A.setAutoQualityLimits(b)},oe=b=>{Ie({message:`seek external to episode start time: ${b}`}),j.log("seek external to episode start time",{time:b}),Qi(b,zo.EPISODE,!0)},Ct=b=>{Ie({message:`set playback rate to: ${b}`}),j.log("set playback rate external",{playbackRate:b}),A.setPlaybackRate(b)},un=Ne(void 0),Li=Ne(!1),Kn=b=>{Ie({message:`start scrubbing, progress: ${b}`}),j.log("start scrubbing",{progress:b}),Li.set(!0),ie(b)},ie=b=>{un.set(b)},to,wo,Lo=()=>{un.set(void 0),Li.set(!1)},ko=()=>{clearTimeout(wo),clearTimeout(to),to=window.setTimeout(()=>{Lo()},500),Se==null||Se.removeEventListener("seeked",ko)},Vo=b=>{Ie({message:`complete scrubbing, progress: ${b}`}),j.log("complete scrubbing",{progress:b}),$n(b,zo.SLIDER),je(ht.ui.isMobile)&&je(ht.state.currentFormat$)===cs.HLS?(Se==null||Se.addEventListener("seeked",ko),wo=window.setTimeout(()=>{ko()},300)):Lo()},xr=si([pe,Pi,un],([b,M,T],we)=>{we(m4(T)?T*M:b)}),io=Ne({width:0,height:0}),no=si([io],([{width:b}],M)=>{let T=mm(b);M(T)}),Ln=Ne(!1),mo=L.filter(b=>hd(b)),Co=si([no,Ln],([b,M])=>M?mo.filter(T=>!T.hideOnMobile):mo.filter(T=>{var we;return!((we=T.hideOnDesktopGridTypes)!=null&&we.includes(b))})),Vn=Ne(L.filter(b=>gd(b))),Ko=si([Vn,no],([b,M])=>b.filter(T=>{var we;return!((we=T.hideOnDesktopGridTypes)!=null&&we.includes(M))})),jo=si([Ko,Co],([b,M])=>[...ce.features.additionalButtonsDesktopControlPanelRight?b.filter(T=>T.type==="desktop-control-panel-right"):[],...ce.features.additionalButtons?M.map((T,we)=>{var tt;return{id:we,weight:we,type:"desktop-control-panel-right",testId:T.testId,icon:T.iconUrl,onClick:T.onClick,ariaLabel:(tt=T.ariaLabel)!=null?tt:T.tooltip,tooltipText:T.tooltip}}):[]]),Rn=Ne(J),Go=si([Rn],([b])=>ce.features.additionalSettingsMenuItems?b.map(M=>M.type==="SWITCH"?St(Xe({},M),{onClick:M.onChangeEnabled}):M):[]),Yo=(b,M)=>{let T=je(Vn).map(we=>we.id!==b?we:Xe(Xe({},we),M));Vn.set(T)},Qo=b=>{let M=je(Vn);if(M.some(T=>T.id===b.id)){Ie({message:`Additional button with id: "${b.id}" was exist! Can't add more with the same id`});return}M.push(b),Vn.set(M)},Zo=b=>{let M=je(Vn);if(!M.some(T=>T.id===b)){Ie({message:`Can't find additional button with id: "${b}"! Can't remove item with this id`});return}M=M.filter(T=>T.id!==b),Vn.set(M)},Xo=(b,M)=>{let T=je(Rn).map(we=>we.id!==b?we:Xe(Xe({},we),M));Rn.set(T)},Jo=b=>{let M=je(Rn);if(M.some(T=>T.id===b.id)){Ie({message:`Settings menu item with id: "${b.id}" was exist! Can't add more with the same id`});return}M.push(b),Rn.set(M)},Z=b=>{let M=je(Rn);if(!M.some(T=>T.id===b)){Ie({message:`Can't find settings menu item with id: "${b}"! Can't remove item with this id`});return}M=M.filter(T=>T.id!==b),Rn.set(M)},wt=Ne(ue),Zi=si([wt],([b])=>ce.features.additionalContextMenuItems?b:[]),Wi=(b,M)=>{let T=je(wt).map(we=>we.id!==b?we:Xe(Xe({},we),M));wt.set(T)},po=b=>{let M=je(wt);if(M.some(T=>T.id===b.id)){Ie({message:`Context menu item with id: "${b.id}" was exist! Can't add more with the same id`});return}M.push(b),wt.set(M)},Cn=b=>{let M=je(wt);if(!M.some(T=>T.id===b)){Ie({message:`Can't find context menu item with id: "${b}"! Can't remove item with this id`});return}M=M.filter(T=>T.id!==b),wt.set(M)},_o=si([Ln,st],([b,M],T)=>{T(b&&M)}),$o=()=>{It.next(zo.LIVE),Ie({message:"switch to active live"}),j.log("switch to active live"),A.seekTime(0),A.info.playbackState$.getValue()!==us.PLAYING&&ht.actions.internal.togglePlay()},So=()=>{j.log("skip adman"),$.skip()},pr=(b=!0)=>{qn(ht),Ie({message:`switch from ads to video, callPlay: ${b}`}),j.log("switch from ads to video",{callPlay:b}),De.set("video"),b&&A.play()},Kr=()=>{qn(ht),Ie({message:"switch from video to ads"}),j.log("switch from video to ads"),ht.actions.internal.pause(),ii(),De.set("ads")},jr=b=>{qn(ht);let M=b?"LiveWaitingStart":"thumb";j.log("set live waiting start",{state:b,playerPhase:M}),De.set(M)},Gr=b=>{qn(ht);let M=b?"LiveWaitingRecover":"thumb";j.log("set live waiting recover",{state:b,playerPhase:M}),De.set(M)},Yr=b=>{qn(ht);let M=b?"LiveWaitingRecord":"thumb";j.log("set live waiting record",{state:b,playerPhase:M}),De.set(M)},Qr=()=>(qn(ht),j.log("get debug text data"),md(A,Te,ht)),ei=()=>(qn(ht),JSON.stringify(z.getFinishedSpans())),Bn=()=>(qn(ht),pd(A,Te,ht)),ho=()=>Se,Zr=()=>{Ie({message:"toggle chromecast"}),j.log("toggle chromecast"),A.toggleChromecast()},Xr=b=>{var T;if(qn(ht),A.info.isEnded$.getValue())return;let M=!b;if(je(ht.playerPhase)==="ads"){Ie({message:`pause ads, internalCall: ${M}`}),j.log("pause ads",{internalCall:M}),$.pause();return}Ie({message:`pause video, internalCall: ${M}`}),j.log("pause video",{internalCall:M}),M&&((T=l==null?void 0:l.onPause)==null||T.call(l)),A.pause()},ys=b=>{var T;qn(ht);let M=!b;if(je(ht.playerPhase)==="ads"){Ie({message:`play ads, internalCall: ${M}`}),j.log("play ads",{internalCall:M}),$.play();return}Ie({message:`play video, internalCall: ${M}`}),j.log("play video",{internalCall:M}),M&&((T=l==null?void 0:l.onPlay)==null||T.call(l)),A.play()},oa=b=>{qn(ht);let M=!b;if(je(ht.playerPhase)==="ads"){Ie({message:"player cannot be stopped during ads via external method"});return}Ie({message:`player will be stopped, internalCall: ${M}`}),E==null||E()},_r=(b,M)=>{qn(ht),Ie({message:`first start, show ads: ${b}, internalCall: ${!M}`}),j.log("first start",{showAds:b,external:M}),b?De.set("ads"):(De.set("video"),M?A.play():ht.actions.internal.togglePlay())},Jr=()=>(Ie({message:"getting time codes"}),c),ws=()=>{let b=Jr();if(!b||[0,1].includes(b.length))return;let M=A.info.position$.getValue();return b.find(T=>T.time>M)},ra=b=>{let M=b;M||(M=ws());let T=A.info.position$.getValue();j.log("seek to next episode",Xe({currentTime:T},M)),M&&(Ie({message:"seek to next episode"}),Qi(M.time,zo.EPISODE,!0))},hr=()=>{let b=Jr();if(!b||[0,1].includes(b.length))return;let M=A.info.position$.getValue(),T=b.findIndex(tt=>tt.time>M),we=T===-1?b.length-2:T-2;if(!(we<0))return b[we]},$r=b=>{let M=b;M||(M=hr());let T=A.info.position$.getValue();j.log("seek to prev episode",Xe({currentTime:T},M)),M&&(Ie({message:"seek to prev episode"}),Qi(M.time,zo.EPISODE,!0))},es=()=>(Ie({message:"getting preview thumbs data"}),j.log("get preview thumbs data",Xe({},m)),m),Sn=()=>mt(void 0,null,function*(){let b=ne==null?void 0:ne.isActive(),M="none";ne!=null&&ne.isActive()?(M="remove",yield ne==null?void 0:ne.remove()):(M="request",yield ne==null?void 0:ne.request()),j.log("toggle picture in picture",{isActive:b,action:M})}),Nn=(b=-90)=>{j.log("rotate video",{alphaDiff:b}),xe.update(M=>M+b)},gr=Ne([]);V==null||V.subscribe(b=>{let M=[];for(let T=0;T<b.length;T++){let{range:[we,tt],subjects:_t}=b[T];T===0&&we!==0&&M.push({time:0,text:"",interactive:!1,completed:!0}),M.push({time:we/1e3,text:"",interactive:!0,completed:!_t.length}),tt!==1/0&&M.push({time:tt/1e3,text:"",interactive:!1,completed:!0})}gr.set(M)});let sa=Ne(!1);S==null||S.subscribe(b=>{b&&je(Li)&&Lo()});let ks=b=>{if(!C)return b;let M=je(gr),T=je(Pi),tt=je(fn)/T,_t=M.find(Et=>Et.interactive&&!Et.completed&&Et.time>tt);return typeof(_t==null?void 0:_t.time)=="number"?Math.min(b,_t.time-.05):b},la=()=>{ht.ui.episodes.panelOpened$.set(!1)},aa=()=>{j.log("destroy store"),clearTimeout(wo),clearTimeout(to),Kt.unsubscribe(),Ht.unsubscribe(),A.destroy(),$.destroy(),ee==null||ee.destroy(),Ee==null||Ee.destroy(),at.unsubscribe(),Ye==null||Ye.disconnect(),Ye=null,Pe.destroy()},ht={interfaceLanguage$:fe,isCyrillicRelatedInterface$:Ze,initVideo:ft,videoId:t,isClip:n,playerPhase:Qe,vsid:qe,state:{positionExact$:pe,positionWithScrubbing$:xr,duration$:Pi,playbackState$:Xt,isPlaying$:hi,isLoaderVisible:Si,bufferedProgress$:Ge,isLive$:$t,canChangePlaybackSpeed$:jt,isActiveLive$:$i,isOldestAvailableLive$:xt,isRewindableLive$:Ei,isEnded$:Vt,muted$:_i,volume$:xi,trafficSavingEnabled$:Ti,autoQualityLimitingAvailable$:Ii,availableVideoStreams$:mn,availableAudioStreams$:pn,videoStream$:Ni,audioStream$:Ki,currentQuality$:_n,isAutoQualityEnabled$:Oi,availableQualities$:Ai,currentPlaybackRate$:Hi,availablePlaybackRates$:Mi,currentSubtitle$:oi,availableSubtitlesList$:Ui,currentSubtitleCaptions$:Gi,isAutoSubtitleCaptionVisible$:Yi,chromecastState$:Rt,chromecastDeviceName$:ci,chromecastConnected$:dn,currentFormat$:wi,throughputEstimation$:ni,videoBitrate$:ki,videoSize$:Bi,errorLog$:ot,crashed$:st,isAudioAvailable$:it,isAudioDisabled:!!s,canDownload:ce.features.download&&!!a,availableSources$:Un,hasMpegSources$:gn,isInteractive:C,showInteractiveGraph:ce.features.interactiveGraph,showSeekToInteractive:ce.features.seekToInteractive,showPlayPrevChapter:ce.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ce.features.interactiveTimeIndicator&&!!je(gr).length,interactiveEpisodes$:gr,isInteractiveTime$:S?At(S):Ne(!1),graphIsOpened$:Ne(!1),isInteractiveExpectation$:sa,hasInteractiveBranches:W,playPrevChapterDisabledTooltip:D,looped$:sn,loadedMetadata$:Ne(!1)},ui:{controlsVisible:Ne(!1),touched:Ne(!1),controls:{prevButton:Ne(void 0),playButton:Ne(void 0),replayButton:Ne(void 0),nextButton:Ne(void 0),playPrevChapterButton:Ne(void 0),seekToInteractiveButton:Ne(void 0),interactiveGraphButton:Ne(void 0),liveButton:Ne(void 0),time:Ne(void 0),episodes:Ne(void 0),volume:Ne(void 0),subtitles:Ne(void 0),settings:Ne(void 0),context:Ne(void 0),chromecast:Ne(void 0),pip:Ne(void 0),fullscreen:Ne(void 0),vkLogo:Ne(void 0),interactiveTimeIndicator:Ne(void 0),timeline:Ne(void 0),autoplayNextToggle:Ne(void 0),additionalButtons:L.length?L.reduce(b=>[...b,Ne(void 0)],[]):[],disabledControls$:He},modals:{hotKeyMap:{show:Ne(!1),data:Ne({title:"",closeBtnText:"",groups:[]})}},isFullscreen:te,rotateAlpha:xe,isAutoplay:Ne(!1),debugPanelVisible:Ne(!1),episodes:{panelOpened$:Ne(!1),openedByKeyboard$:Ne(!1)},contextMenu:{visible$:Ne(!1),btnRef$:Ne(void 0),openedByBtnKeyboard$:Ne(!1),openedByHotKey$:Ne(!1),lastActiveElem$:Ne(void 0),showContextMenuBtn$:Ne(!1),position$:Ne({top:0,left:0})},playerSize:io,isMobile:Ln,mobileNotReportControlHidden$:_o,mobileUnmuteButtonExpanded:Ne(!1),mobileUnmuteButtonVisible:Ne(!1),icon3DVideoVisible:Ne(!1),scrubbingInProgress:Li,is3DVideo:Ne(!1),isPictureInPictureActive$:Zt,pictureInPictureType$:jn(Ce),currentGridType$:no,additionalButtonsDeprecated$:Co,additionalDesktopControlPanelRightButtons$:jo,additionalSettingsMenuItems$:Go,additionalContextMenuItems$:Zi,interactiveHideMobileControls:Ne(!1),overlayContainer$:Ne(void 0),startedByKeyboard$:Ne(!1),autoplayNextEnabled$:Ne(!1),timerNextVideoRunning$:Ne(!0),settingsMenu:{visible$:Ne(!1),ref$:Ne(void 0),openedByBtnKeyboard$:Ne(!1)},settingsSubMenu:{visible$:Ne(!1),ref$:Ne(void 0),name$:Ne(void 0)}},ads:{position:Ne(0),duration:Ne(0),playbackState:Ne("inactive"),canSkip:Ne(!1),secondsToWatchBeforeSkip:Ne(0),postrollPassed:Ne(!1)},webApi:{pictureInPictureApi:ne,annotationsApi:ae},actions:{internal:{preload:ao,firstStart:b=>_r(b,!1),play:()=>ys(!1),pause:()=>Xr(!1),togglePlay:uo,toggleMuted:nn,openSettingsMenu:rn,closeSettingsMenu:on,openSettingsSubMenu:Pn,closeSettingsSubMenu:bi,setVolume:vn,setVideoStream:ai,setAudioStream:en,setQuality:co,setTrafficSavingEnabled:b=>mi(b),setPlaybackRate:Wn,incrementPlaybackRate:Zn,decrementPlaybackRate:Xn,setSubtitle:xn,toggleSubtitle:Jn,togglePictureInPicture:Sn,startScrubbing:Kn,progressScrubbing:ie,completeScrubbing:Vo,toggleChromecast:Zr,switchToActiveLive:$o,switchFromAdsToVideo:pr,switchFromVideoToAds:Kr,skipAd:So,setLiveWaitingStart:jr,setLiveWaitingRecover:Gr,setLiveWaitingRecord:Yr,getDebugTextData:Qr,getTraceTextData:ei,getDebugPanelData:Bn,getVideoElement:ho,seekTime:(b,M,T)=>Qi(b,M,T),clearDelayedBufferingCheckTimeout:zt,seekEpisodeStartTime:kn,seekToPercent:$n,getNextEpisode:ws,seekToNextEpisode:ra,getPrevEpisode:hr,seekToPrevEpisode:$r,startLogging:Yt,stopLogging:Nt,startCameraManualRotation:We,stopCameraManualRotation:et,moveCameraFocusPX:Pt,holdCamera:Qt,releaseCamera:Wt,getVideoEpisodes:Jr,getPreviewThumbsData:es,downloadVideo:tn,addLanguage:Ia,setLanguage:Je,nextMovie:pt,videoRotate:Nn,correctSeekTimeToInteractive:ks,replayInteractive:v,setLooped:yn,reportProblem:wn,setAutoplayNextEnabled:En,setTimerNextVideoRunning:An,nextVideoAnnouncementClick:ln,nextVideoAnnouncementAuto:Mn,nextVideoAnnouncementCancel:an},external:{firstStart:b=>_r(b,!0),play:()=>ys(!0),pause:()=>Xr(!0),stop:()=>oa(!0),seekTime:b=>eo(b),seekEpisodeStartTime:b=>oe(b),setPlaybackRate:b=>Ct(b),setAutoQualityLimits:b=>fo(b),setMuted:b=>zn(b,!0),setVolume:b=>vn(b,b,!0),returnFocusToEpisodes:la,updateAdditionalSettingsItem:Xo,addAdditionalSettingsItem:Jo,removeAdditionalSettingsItem:Z,updateAdditionalContextItem:Wi,addAdditionalContextItem:po,removeAdditionalContextItem:Cn,updateAdditionalButton:Yo,addAdditionalButton:Qo,removeAdditionalButton:Zo}},callbacks:l,setUiCallbacks:b=>{rt=Xe({},b)},getAdmanWrapper:()=>$,getLogger:()=>de,destroy:aa};return ht};var Al=(i,e,t,n)=>{var s;if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"];for(let[a,l]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(a)){let u=(s=t[a])==null?void 0:s.getBoundingClientRect(),c=(n||r.includes(a))&&!!u&&!!(u.right-u.left),{top:m,left:h,bottom:y,right:g}=Or(t[a],i);l.set({positionStartX:0,positionEndX:0,left:c?h:0,right:c?g:0,top:c?m:0,bottom:c?y:0,isDisplayed:c})}};var Ml=(i,e,t)=>mt(void 0,null,function*(){yield cn(),e&&t&&(t.focus(),i.set(!1))});function k4(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"d","M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function C4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Qu=class extends H{constructor(e){super(),U(this,e,C4,k4,F,{})}},Hm=Qu;function S4(i){let e,t;return e=new Hm({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function T4(i){let e,t,n;function o(s){i[8](s)}let r={className:i[3]?"opened":"",testId:"btn-context-menu",disabled:i[0],ariaLabel:i[1],click:i[5],focus:i[6],blur:i[7],ariaExpanded:i[3],$$slots:{default:[S4]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new bt({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&8&&(l.className=s[3]?"opened":""),a&1&&(l.disabled=s[0]),a&2&&(l.ariaLabel=s[1]),a&8&&(l.ariaExpanded=s[3]),a&16384&&(l.$$scope={dirty:a,ctx:s}),!t&&a&4&&(t=!0,l.ref=s[2],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function I4(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,s=nt(),a=s.ui.contextMenu.visible$;q(i,a,V=>t(3,n=V));let l=s.ui.contextMenu.openedByBtnKeyboard$,u=s.ui.contextMenu.showContextMenuBtn$,c=s.ui.contextMenu.position$,m=s.ui.contextMenu.btnRef$,h,y=V=>{let S=Er(V),v=u1(h);c.set(v),l.set(S),a.set(!n)},g=()=>{u.set(!0)},I=()=>{u.set(!1)};function C(V){h=V,t(2,h)}return i.$$set=V=>{"disabled"in V&&t(0,o=V.disabled),"ariaLabel"in V&&t(1,r=V.ariaLabel)},i.$$.update=()=>{i.$$.dirty&4&&h&&m.set(h)},[o,r,h,n,a,y,g,I,C]}var Zu=class extends H{constructor(e){super(),U(this,e,I4,T4,F,{disabled:0,ariaLabel:1})}},qm=Zu;function P4(i){ge(i,"svelte-od3veb",".interactive-episode-icon-animated.svelte-od3veb{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.interactive-episode-icon-animated.icon-small.svelte-od3veb{width:28px;height:28px}.invisible.svelte-od3veb{opacity:0;visibility:hidden}.fullscreen.svelte-od3veb:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.svelte-od3veb{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.svelte-od3veb{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb{top:40px;right:16px}}@keyframes svelte-od3veb-pulse{0%{transform:scale(1);border-width:1px;opacity:0}10%{opacity:1}50%{transform:scale(1.5);border-width:1px;opacity:0.5}100%{transform:scale(1.5);border-width:0.5px;opacity:0}}.pulse.svelte-od3veb{display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);animation:1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.svelte-od3veb{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.svelte-od3veb{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.svelte-od3veb{display:none}")}function E4(i){let e,t;return e=new ml({props:{completed:!0}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function A4(i){let e,t,n,o,r,s,a,l,u,c;function m(y){i[25](y)}let h={tooltipContent:G("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[6],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[15],$$slots:{default:[E4]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new Xi({props:h}),be.push(()=>ze(t,"ref",m)),t.$on("click",i[16]),{c(){e=P("div"),N(t.$$.fragment),o=Y(),r=P("div"),s=Y(),a=P("div"),f(r,"class","ref-block svelte-od3veb"),K(r,"hidden",i[1]),f(a,"class","pulse svelte-od3veb"),K(a,"paused",i[5]),f(e,"class","interactive-episode-icon-animated svelte-od3veb"),K(e,"mobile",i[2]),K(e,"fullscreen",i[7]),K(e,"invisible",i[1]),K(e,"icon-small",i[4])},m(y,g){k(y,e,g),R(t,e,null),_(e,o),_(e,r),i[26](r),_(e,s),_(e,a),i[27](a),l=!0,u||(c=[ke(e,"mousemove",vt(i[24])),ke(e,"mouseleave",i[17])],u=!0)},p(y,g){let I={};g[0]&64&&(I.tooltipActive=y[6]),g[1]&8&&(I.$$scope={dirty:g,ctx:y}),!n&&g[0]&1&&(n=!0,I.ref=y[0],Ue(()=>n=!1)),t.$set(I),(!l||g[0]&2)&&K(r,"hidden",y[1]),(!l||g[0]&32)&&K(a,"paused",y[5]),(!l||g[0]&4)&&K(e,"mobile",y[2]),(!l||g[0]&128)&&K(e,"fullscreen",y[7]),(!l||g[0]&2)&&K(e,"invisible",y[1]),(!l||g[0]&16)&&K(e,"icon-small",y[4])},i(y){l||(d(t.$$.fragment,y),l=!0)},o(y){p(t.$$.fragment,y),l=!1},d(y){y&&w(e),B(t),i[26](null),i[27](null),u=!1,ut(c)}}}function M4(i,e,t){var ne;let n,o,r,s,a,l,u,{ref:c=void 0}=e,m,h=nt(),y=Fn(),{interactiveControlsOpacity$:g}=y;q(i,g,ae=>t(20,o=ae));let I=h.ui.isMobile;q(i,I,ae=>t(2,l=ae));let C=h.ui.isFullscreen;q(i,C,ae=>t(7,u=ae));let V=h.state.isInteractiveTime$;q(i,V,ae=>t(21,r=ae));let S=y.showInteractiveTimeIndicatorTooltip$;q(i,S,ae=>t(19,n=ae));let v=h.ui.controlsVisible;q(i,v,ae=>t(23,a=ae));let E=(ne=h.callbacks)==null?void 0:ne.onInteractiveTimeIndicatorClick,W=h.ui.currentGridType$;q(i,W,ae=>t(22,s=ae));let D,L,J,ue,Q=()=>{t(5,ue=!0)},ee=()=>{X(),m==null||m.addEventListener("animationiteration",Q,{once:!0})},X=()=>{t(5,ue=!1),m==null||m.removeEventListener("animationiteration",Q)},x=ae=>{S.set(ae)},ce,z=()=>{J||(S.set(!0),E==null||E())};oo(()=>{S.clearTimeout(),X()});let j=()=>{S.set(!1)};function A(ae){On.call(this,i,ae)}function de(ae){c=ae,t(0,c)}function $(ae){be[ae?"unshift":"push"](()=>{c=ae,t(0,c)})}function Ee(ae){be[ae?"unshift":"push"](()=>{m=ae,t(3,m)})}return i.$$set=ae=>{"ref"in ae&&t(0,c=ae.ref)},i.$$.update=()=>{i.$$.dirty[0]&8388612&&t(18,D=!l&&a),i.$$.dirty[0]&4194304&&t(4,L=Ho(s,"s")),i.$$.dirty[0]&3407872&&t(1,J=!r||!!o||D),i.$$.dirty[0]&2&&t(5,ue=J),i.$$.dirty[0]&524290&&t(6,ce=n&&!J),i.$$.dirty[0]&524288&&(n?ee():X())},[c,J,l,m,L,ue,ce,u,g,I,C,V,S,v,W,x,z,j,D,n,o,r,s,a,A,de,$,Ee]}var Xu=class extends H{constructor(e){super(),U(this,e,M4,A4,F,{ref:0},P4,[-1,-1])}},Ll=Xu;function L4(i){var a;let e,t,n,o=[(a=i[2])!=null?a:{}];var r=i[1];function s(l,u){var m;let c={};for(let h=0;h<o.length;h+=1)c=re(c,o[h]);return u!==void 0&&u&4&&(c=re(c,Fe(o,[Bo((m=l[2])!=null?m:{})]))),{props:c}}return r&&(e=Ot(r,s(i))),{c(){e&&N(e.$$.fragment),t=$e()},m(l,u){e&&R(e,l,u),k(l,t,u),n=!0},p(l,u){var c;if(u&2&&r!==(r=l[1])){if(e){se();let m=e;p(m.$$.fragment,1,0,()=>{B(m,1)}),le()}r?(e=Ot(r,s(l,u)),N(e.$$.fragment),d(e.$$.fragment,1),R(e,t.parentNode,t)):e=null}else if(r){let m=u&4?Fe(o,[Bo((c=l[2])!=null?c:{})]):{};e.$set(m)}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&p(e.$$.fragment,l),n=!1},d(l){l&&w(t),e&&B(e,l)}}}function V4(i){let e,t,n;function o(s){i[7](s)}let r={disabled:i[5],tooltipContent:i[3],disabledTooltipContent:i[4],className:i[6],$$slots:{default:[L4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Xi({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&32&&(l.disabled=s[5]),a&8&&(l.tooltipContent=s[3]),a&16&&(l.disabledTooltipContent=s[4]),a&64&&(l.className=s[6]),a&262&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function R4(i,e,t){let{buttonComponent:n}=e,{buttonComponentProps:o}=e,{tooltipText:r}=e,{disabledTooltipContent:s}=e,{disabled:a=!1}=e,{className:l=void 0}=e,{ref:u}=e;function c(m){u=m,t(0,u)}return i.$$set=m=>{"buttonComponent"in m&&t(1,n=m.buttonComponent),"buttonComponentProps"in m&&t(2,o=m.buttonComponentProps),"tooltipText"in m&&t(3,r=m.tooltipText),"disabledTooltipContent"in m&&t(4,s=m.disabledTooltipContent),"disabled"in m&&t(5,a=m.disabled),"className"in m&&t(6,l=m.className),"ref"in m&&t(0,u=m.ref)},[u,n,o,r,s,a,l,c]}var Ju=class extends H{constructor(e){super(),U(this,e,R4,V4,F,{buttonComponent:1,buttonComponentProps:2,tooltipText:3,disabledTooltipContent:4,disabled:5,className:6,ref:0})}},$u=Ju;var Mo={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};function N4(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"d","M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function D4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var ec=class extends H{constructor(e){super(),U(this,e,D4,N4,F,{})}},Um=ec;function O4(i){let e,t;return e=new Um({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function F4(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,r;return i.$$set=s=>{"isPrev"in s&&t(0,n=s.isPrev),"isMobile"in s&&t(2,o=s.isMobile)},i.$$.update=()=>{i.$$.dirty&5&&(n&&o?t(1,r="transform: scaleX(-1) scale(1.3333);"):n?t(1,r="transform: scaleX(-1);"):o?t(1,r="transform: scale(1.3333);"):t(1,r=void 0))},[n,r,o]}var tc=class extends H{constructor(e){super(),U(this,e,F4,O4,F,{isPrev:0,isMobile:2})}},zm=tc;function H4(i){ge(i,"svelte-xtk2k4",".icon-background-mobile.svelte-xtk2k4{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color)}")}function Wm(i){let e;return{c(){e=P("div"),f(e,"class","icon-background-mobile svelte-xtk2k4")},m(t,n){k(t,e,n)},d(t){t&&w(e)}}}function q4(i){let e,t,n,o=i[1]&&Wm(i);return t=new zm({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){o&&o.c(),e=Y(),N(t.$$.fragment)},m(r,s){o&&o.m(r,s),k(r,e,s),R(t,r,s),n=!0},p(r,s){r[1]?o||(o=Wm(r),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);let a={};s&2&&(a.isMobile=r[1]),s&8&&(a.isPrev=r[3]==="prev"),t.$set(a)},i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){p(t.$$.fragment,r),n=!1},d(r){r&&w(e),o&&o.d(r),B(t,r)}}}function U4(i){let e,t,n;function o(s){i[6](s)}let r={className:`btn-${i[1]?"m":"d"}--${i[3]}`,testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[q4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&10&&(l.className=`btn-${s[1]?"m":"d"}--${s[3]}`),a&8&&(l.testId="btn-"+s[3]),a&4&&(l.disabled=s[2]),a&32&&(l.ariaLabel=s[5]),a&16&&(l.click=s[4]),a&138&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function z4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{type:s}=e,{click:a}=e,l;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"isMobile"in c&&t(1,o=c.isMobile),"disabled"in c&&t(2,r=c.disabled),"type"in c&&t(3,s=c.type),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,l=s==="prev"?G("tooltip_previous"):G("tooltip_next"))},[n,o,r,s,a,l,u]}var ic=class extends H{constructor(e){super(),U(this,e,z4,U4,F,{ref:0,isMobile:1,disabled:2,type:3,click:4},H4)}},Hr=ic;function W4(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"d","M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.67.67 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function x4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var nc=class extends H{constructor(e){super(),U(this,e,x4,W4,F,{})}},Vl=nc;import{noop as K4}from"@vkontakte/videoplayer-shared";function j4(i){ge(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=P("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){k(t,e,n)},d(t){t&&w(e)}}}function G4(i){let e,t,n,o,r=i[1]&&xm(i);return n=new Vl({}),{c(){r&&r.c(),e=Y(),t=P("div"),N(n.$$.fragment),f(t,"class","svelte-1ot3duq"),K(t,"mobile",i[1])},m(s,a){r&&r.m(s,a),k(s,e,a),k(s,t,a),R(n,t,null),o=!0},p(s,a){s[1]?r||(r=xm(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!o||a&2)&&K(t,"mobile",s[1])},i(s){o||(d(n.$$.fragment,s),o=!0)},o(s){p(n.$$.fragment,s),o=!1},d(s){s&&(w(e),w(t)),r&&r.d(s),B(n)}}}function Y4(i){let e,t,n;function o(s){i[5](s)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:G("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:go.KeyK,$$slots:{default:[G4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&10&&(l.className=(s[1]?"btn-m--play":"")+" "+s[3]),a&4&&(l.disabled=s[2]),a&16&&(l.click=s[4]),a&66&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function Q4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:s=""}=e,{click:a=K4}=e;function l(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"disabled"in u&&t(2,r=u.disabled),"className"in u&&t(3,s=u.className),"click"in u&&t(4,a=u.click)},[n,o,r,s,a,l]}var oc=class extends H{constructor(e){super(),U(this,e,Q4,Y4,F,{ref:0,isMobile:1,disabled:2,className:3,click:4},j4)}},fs=oc;function Z4(i){let e,t;return{c(){e=O("svg"),t=O("path"),f(t,"d","M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"),f(t,"fill",i[3]),f(e,"width",i[0]),f(e,"height",i[1]),f(e,"viewBox",i[2]),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","play-icon")},m(n,o){k(n,e,o),_(e,t)},p(n,[o]){o&8&&f(t,"fill",n[3]),o&1&&f(e,"width",n[0]),o&2&&f(e,"height",n[1]),o&4&&f(e,"viewBox",n[2])},i:me,o:me,d(n){n&&w(e)}}}function X4(i,e,t){let{width:n="24"}=e,{height:o="24"}=e,{viewBox:r="0 0 24 24"}=e,{fill:s="#fff"}=e;return i.$$set=a=>{"width"in a&&t(0,n=a.width),"height"in a&&t(1,o=a.height),"viewBox"in a&&t(2,r=a.viewBox),"fill"in a&&t(3,s=a.fill)},[n,o,r,s]}var rc=class extends H{constructor(e){super(),U(this,e,X4,Z4,F,{width:0,height:1,viewBox:2,fill:3})}},Wo=rc;function J4(i){let e,t;return{c(){e=O("svg"),t=O("path"),f(t,"d","M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"),f(t,"fill",i[3]),f(e,"width",i[0]),f(e,"height",i[1]),f(e,"viewBox",i[2]),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","pause-icon")},m(n,o){k(n,e,o),_(e,t)},p(n,[o]){o&8&&f(t,"fill",n[3]),o&1&&f(e,"width",n[0]),o&2&&f(e,"height",n[1]),o&4&&f(e,"viewBox",n[2])},i:me,o:me,d(n){n&&w(e)}}}function $4(i,e,t){let{width:n="24"}=e,{height:o="24"}=e,{viewBox:r="0 0 24 24"}=e,{fill:s="#fff"}=e;return i.$$set=a=>{"width"in a&&t(0,n=a.width),"height"in a&&t(1,o=a.height),"viewBox"in a&&t(2,r=a.viewBox),"fill"in a&&t(3,s=a.fill)},[n,o,r,s]}var sc=class extends H{constructor(e){super(),U(this,e,$4,J4,F,{width:0,height:1,viewBox:2,fill:3})}},qr=sc;import{noop as e3}from"@vkontakte/videoplayer-shared";function t3(i){ge(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 Km(i){let e;return{c(){e=P("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){k(t,e,n)},d(t){t&&w(e)}}}function i3(i){let e,t,n,o,r=i[1]&&Km(i);var s=i[8];function a(l,u){return{}}return s&&(n=Ot(s,a(i))),{c(){r&&r.c(),e=Y(),t=P("div"),n&&N(n.$$.fragment),f(t,"class","svelte-1ot3duq"),K(t,"mobile",i[1])},m(l,u){r&&r.m(l,u),k(l,e,u),k(l,t,u),n&&R(n,t,null),o=!0},p(l,u){if(l[1]?r||(r=Km(l),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u&256&&s!==(s=l[8])){if(n){se();let c=n;p(c.$$.fragment,1,0,()=>{B(c,1)}),le()}s?(n=Ot(s,a(l,u)),N(n.$$.fragment),d(n.$$.fragment,1),R(n,t,null)):n=null}(!o||u&2)&&K(t,"mobile",l[1])},i(l){o||(n&&d(n.$$.fragment,l),o=!0)},o(l){n&&p(n.$$.fragment,l),o=!1},d(l){l&&(w(e),w(t)),r&&r.d(l),n&&B(n)}}}function n3(i){let e,t,n;function o(s){i[13](s)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-play",click:i[5]?i[6]:i[4],disabled:i[2],ariaLabel:i[7],ariaKeyShortCut:go.KeyK,$$slots:{default:[i3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&10&&(l.className=(s[1]?"btn-m--play":"")+" "+s[3]),a&112&&(l.click=s[5]?s[6]:s[4]),a&4&&(l.disabled=s[2]),a&128&&(l.ariaLabel=s[7]),a&33026&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function o3(i,e,t){let n,o,{fakeIsPlaying$:r}=Fn();q(i,r,S=>t(12,o=S));let{ref:s=void 0}=e,{isMobile:a=!1}=e,{isPlaying:l=!1}=e,{disabled:u=!1}=e,{className:c=""}=e,{click:m=e3}=e,{toggle:h}=r,y,g,I,C;function V(S){s=S,t(0,s)}return i.$$set=S=>{"ref"in S&&t(0,s=S.ref),"isMobile"in S&&t(1,a=S.isMobile),"isPlaying"in S&&t(10,l=S.isPlaying),"disabled"in S&&t(2,u=S.disabled),"className"in S&&t(3,c=S.className),"click"in S&&t(4,m=S.click)},i.$$.update=()=>{i.$$.dirty&4096&&t(5,g=o!==null),i.$$.dirty&5152&&t(11,I=g?o:l),i.$$.dirty&2048&&t(7,C=I?G("tooltip_pause"):G("tooltip_play")),i.$$.dirty&2048&&t(8,n=I?qr:Wo)},t(6,y=h),[s,a,u,c,m,g,y,C,n,r,l,I,o,V]}var lc=class extends H{constructor(e){super(),U(this,e,o3,n3,F,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},t3)}},ds=lc;function r3(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"d","M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function s3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var ac=class extends H{constructor(e){super(),U(this,e,s3,r3,F,{})}},jm=ac;function l3(i){let e,t;return e=new jm({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function a3(i){let e,t,n;function o(s){i[4](s)}let r={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:G("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[l3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"hidden":""),a&4&&(l.disabled=s[2]),a&8&&(l.click=s[3]),a&32&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function u3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:s}=e;function a(l){n=l,t(0,n)}return i.$$set=l=>{"ref"in l&&t(0,n=l.ref),"hidden"in l&&t(1,o=l.hidden),"disabled"in l&&t(2,r=l.disabled),"click"in l&&t(3,s=l.click)},[n,o,r,s,a]}var uc=class extends H{constructor(e){super(),U(this,e,u3,a3,F,{ref:0,hidden:1,disabled:2,click:3})}},Rl=uc;function c3(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=O("svg"),s&&s.c(),t=O("path"),n=O("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"),ye(e,l)},m(u,c){k(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),ye(e,l=Fe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&w(e),s&&s.d(u)}}}function f3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var cc=class extends H{constructor(e){super(),U(this,e,f3,c3,F,{})}},Gm=cc;function d3(i){let e,t;return e=new Gm({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function m3(i){let e,t,n;function o(s){i[4](s)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:G("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[d3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"hidden":""),a&4&&(l.disabled=s[2]),a&8&&(l.click=s[3]),a&32&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function p3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:s}=e;function a(l){n=l,t(0,n)}return i.$$set=l=>{"ref"in l&&t(0,n=l.ref),"hidden"in l&&t(1,o=l.hidden),"disabled"in l&&t(2,r=l.disabled),"click"in l&&t(3,s=l.click)},[n,o,r,s,a]}var fc=class extends H{constructor(e){super(),U(this,e,p3,m3,F,{ref:0,hidden:1,disabled:2,click:3})}},Bl=fc;function _3(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=O("svg"),s&&s.c(),t=O("path"),n=O("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z"),f(n,"class","_closed"),f(n,"clip-rule","evenodd"),ye(e,l)},m(u,c){k(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),ye(e,l=Fe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&w(e),s&&s.d(u)}}}function h3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var dc=class extends H{constructor(e){super(),U(this,e,h3,_3,F,{})}},Ym=dc;function g3(i){ge(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function b3(i){let e,t;return e=new Ym({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function v3(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var mc=class extends H{constructor(e){super(),U(this,e,v3,b3,F,{isOpened:0},g3)}},Qm=mc;function y3(i){let e,t;return e=new Qm({props:{isOpened:!!i[3]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.isOpened=!!n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function w3(i){let e,t,n;function o(s){i[6](s)}let r={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[y3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"hidden":""),a&4&&(l.disabled=s[2]),a&32&&(l.ariaLabel=s[5]),a&16&&(l.click=s[4]),a&136&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function k3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{graphIsOpened:s=!1}=e,{click:a}=e,l;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"hidden"in c&&t(1,o=c.hidden),"disabled"in c&&t(2,r=c.disabled),"graphIsOpened"in c&&t(3,s=c.graphIsOpened),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,l=s?G("tooltip_interactive_graph_on"):G("tooltip_interactive_graph_off"))},[n,o,r,s,a,l,u]}var pc=class extends H{constructor(e){super(),U(this,e,k3,w3,F,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Nl=pc;import{PlaybackState as _c}from"@vkontakte/videoplayer-core";function C3(i){let e,t;return e=new Gs({props:{isActive:i[1]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function S3(i){let e,t;return e=new bt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===_c.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[C3]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(r.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(r.disabled=n[1]&&n[3]===_c.PLAYING),o&4&&(r.ariaLabel=n[2]),o&16&&(r.click=n[4]),o&514&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function T3(i,e,t){let n,{isMobile:o=!1}=e,{isLiveActive:r=!1}=e,{ariaLabel:s=""}=e,a=nt(),l=a.state.playbackState$;q(i,l,h=>t(3,n=h));let u=a.actions.internal.switchToActiveLive,c=a.actions.internal.togglePlay,m;return i.$$set=h=>{"isMobile"in h&&t(0,o=h.isMobile),"isLiveActive"in h&&t(1,r=h.isLiveActive),"ariaLabel"in h&&t(2,s=h.ariaLabel)},i.$$.update=()=>{i.$$.dirty&10&&t(4,m=()=>{if(!r){u();return}n===_c.PAUSED&&c()})},[o,r,s,n,m,l]}var hc=class extends H{constructor(e){super(),U(this,e,T3,S3,F,{isMobile:0,isLiveActive:1,ariaLabel:2})}},Dl=hc;import{noop as Zm}from"@vkontakte/videoplayer-shared";function I3(i){let e,t,n,o;return{c(){e=P("img"),f(e,"class","icon"),To(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){k(r,e,s),n||(o=ke(e,"error",i[2]),n=!0)},p(r,s){s&1&&!To(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&w(e),n=!1,o()}}}function P3(i){let e;return{c(){e=P("div"),e.innerHTML='<div class="inner"></div>',f(e,"class","icon icon-error-stub")},m(t,n){k(t,e,n)},p:me,d(t){t&&w(e)}}}function E3(i){let e;function t(r,s){return r[1]?P3:I3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=$e()},m(r,s){o.m(r,s),k(r,e,s)},p(r,[s]){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:me,o:me,d(r){r&&w(e),o.d(r)}}}function A3(i,e,t){let n,{icon:o}=e,r=()=>{t(1,n=!0)};return i.$$set=s=>{"icon"in s&&t(0,o=s.icon)},t(1,n=!1),[o,n,r]}var gc=class extends H{constructor(e){super(),U(this,e,A3,E3,F,{icon:0})}},Ur=gc;function M3(i){let e,t;return e=new Ur({props:{icon:i[3]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.icon=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function L3(i){var n;let e,t;return e=new bt({props:{className:i[8],ariaLabel:i[4],click:i[7],disabled:i[9],testId:(n=i[2])!=null?n:i[1],$$slots:{default:[M3]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(o,r){R(e,o,r),t=!0},p(o,r){var a;let s={};r&256&&(s.className=o[8]),r&16&&(s.ariaLabel=o[4]),r&128&&(s.click=o[7]),r&512&&(s.disabled=o[9]),r&6&&(s.testId=(a=o[2])!=null?a:o[1]),r&8200&&(s.$$scope={dirty:r,ctx:o}),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){B(e,o)}}}function V3(i){let e,t,n;function o(s){i[12](s)}let r={disabled:i[9],tooltipContent:i[5],disabledTooltipContent:i[6],width:40,$$slots:{default:[L3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Xi({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&512&&(l.disabled=s[9]),a&32&&(l.tooltipContent=s[5]),a&64&&(l.disabledTooltipContent=s[6]),a&9118&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function R3(i,e,t){let n,o,r,{id:s}=e,{testId:a}=e,{icon:l}=e,{ariaLabel:u}=e,{tooltipText:c}=e,{disabledTooltipContent:m}=e,{disabled:h=!1}=e,{onClick:y=Zm}=e,{ref:g}=e;function I(C){g=C,t(0,g)}return i.$$set=C=>{"id"in C&&t(1,s=C.id),"testId"in C&&t(2,a=C.testId),"icon"in C&&t(3,l=C.icon),"ariaLabel"in C&&t(4,u=C.ariaLabel),"tooltipText"in C&&t(5,c=C.tooltipText),"disabledTooltipContent"in C&&t(6,m=C.disabledTooltipContent),"disabled"in C&&t(10,h=C.disabled),"onClick"in C&&t(7,y=C.onClick),"ref"in C&&t(0,g=C.ref)},i.$$.update=()=>{i.$$.dirty&128&&t(11,n=y===Zm),i.$$.dirty&3072&&t(9,o=n||h),i.$$.dirty&2048&&t(8,r=n?"btn-full-opacity":"")},[g,s,a,l,u,c,m,y,r,o,h,n,I]}var bc=class extends H{constructor(e){super(),U(this,e,R3,V3,F,{id:1,testId:2,icon:3,ariaLabel:4,tooltipText:5,disabledTooltipContent:6,disabled:10,onClick:7,ref:0})}},Xm=bc;var Jm=i=>!!i.buttonComponent;var xo={vkLogo:100,volume:200,subtitles:300,settings:400,context:500,fullscreen:600,chromecast:700};function O3(i){ge(i,"svelte-ips4nw",".wrapper-bottom.svelte-ips4nw.svelte-ips4nw{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box}.wrapper-bottom.svelte-ips4nw>.svelte-ips4nw{pointer-events:auto}.controls.svelte-ips4nw.svelte-ips4nw{width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box}.controls-left.svelte-ips4nw.svelte-ips4nw,.controls-right.svelte-ips4nw.svelte-ips4nw{display:flex;align-content:center}.controls-left.svelte-ips4nw.svelte-ips4nw{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-ips4nw > *:not(:first-child),.controls-right.svelte-ips4nw > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-ips4nw.svelte-ips4nw{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-ips4nw.svelte-ips4nw{transition:none}")}function ep(i,e,t){let n=i.slice();return n[203]=e[t],n[204]=e,n[205]=t,n}function tp(i,e,t){let n=i.slice();return n[203]=e[t],n[206]=e,n[207]=t,n}function ip(i){let e,t,n;function o(s){i[167](s,i[203])}let r={buttonComponent:i[203].buttonComponent,buttonComponentProps:i[203].buttonComponentProps,tooltipText:i[203].tooltipText,disabledTooltipContent:i[203].disabledTooltipContent,disabled:i[203].disabled,className:i[203].className};return i[10][i[203].id]!==void 0&&(r.ref=i[10][i[203].id]),e=new $u({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&2048&&(l.buttonComponent=i[203].buttonComponent),a[0]&2048&&(l.buttonComponentProps=i[203].buttonComponentProps),a[0]&2048&&(l.tooltipText=i[203].tooltipText),a[0]&2048&&(l.disabledTooltipContent=i[203].disabledTooltipContent),a[0]&2048&&(l.disabled=i[203].disabled),a[0]&2048&&(l.className=i[203].className),!t&&a[0]&3072&&(t=!0,l.ref=i[10][i[203].id],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function np(i){let e,t,n;function o(s){i[168](s)}let r={isMobile:!1,showDuration:i[15],position:i[5]?i[33]:i[34],duration:i[5]?i[35]:i[36]};return i[10].time!==void 0&&(r.ref=i[10].time),e=new dl({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[0]&32768&&(l.showDuration=s[15]),a[0]&32|a[1]&12&&(l.position=s[5]?s[33]:s[34]),a[0]&32|a[1]&48&&(l.duration=s[5]?s[35]:s[36]),!t&&a[0]&1024&&(t=!0,l.ref=s[10].time,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function op(i){let e,t;return e=new yl({props:{position:i[34],duration:i[36],timeCodes:i[50]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[1]&8&&(r.position=n[34]),o[1]&32&&(r.duration=n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function F3(i){let e,t,n=i[8]&&op(i);return{c(){n&&n.c(),e=$e()},m(o,r){n&&n.m(o,r),k(o,e,r),t=!0},p(o,r){o[8]?n?(n.p(o,r),r[0]&256&&d(n,1)):(n=op(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(se(),p(n,1,1,()=>{n=null}),le())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function H3(i){let e,t,n;function o(s){i[172](s,i[203])}let r={id:i[203].id,testId:i[203].testId,icon:i[203].icon,ariaLabel:i[203].ariaLabel,tooltipText:i[203].tooltipText,disabledTooltipContent:i[203].disabledTooltipContent,disabled:!!i[203].disabled,onClick:i[203].onClick};return i[10][i[203].id]!==void 0&&(r.ref=i[10][i[203].id]),e=new Xm({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&4096&&(l.id=i[203].id),a[0]&4096&&(l.testId=i[203].testId),a[0]&4096&&(l.icon=i[203].icon),a[0]&4096&&(l.ariaLabel=i[203].ariaLabel),a[0]&4096&&(l.tooltipText=i[203].tooltipText),a[0]&4096&&(l.disabledTooltipContent=i[203].disabledTooltipContent),a[0]&4096&&(l.disabled=!!i[203].disabled),a[0]&4096&&(l.onClick=i[203].onClick),!t&&a[0]&5120&&(t=!0,l.ref=i[10][i[203].id],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function q3(i){let e,t,n;function o(s){i[171](s,i[203])}let r={buttonComponent:i[203].buttonComponent,buttonComponentProps:i[203].buttonComponentProps,tooltipText:i[203].tooltipText,disabledTooltipContent:i[203].disabledTooltipContent,disabled:i[203].disabled,className:i[203].className};return i[10][i[203].id]!==void 0&&(r.ref=i[10][i[203].id]),e=new $u({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&4096&&(l.buttonComponent=i[203].buttonComponent),a[0]&4096&&(l.buttonComponentProps=i[203].buttonComponentProps),a[0]&4096&&(l.tooltipText=i[203].tooltipText),a[0]&4096&&(l.disabledTooltipContent=i[203].disabledTooltipContent),a[0]&4096&&(l.disabled=i[203].disabled),a[0]&4096&&(l.className=i[203].className),!t&&a[0]&5120&&(t=!0,l.ref=i[10][i[203].id],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function rp(i){let e,t,n,o,r,s=[q3,H3],a=[];function l(u,c){return c[0]&4096&&(e=null),e==null&&(e=!!Jm(u[203])),e?0:1}return t=l(i,[-1,-1,-1,-1,-1,-1,-1]),n=a[t]=s[t](i),{c(){n.c(),o=$e()},m(u,c){a[t].m(u,c),k(u,o,c),r=!0},p(u,c){let m=t;t=l(u,c),t===m?a[t].p(u,c):(se(),p(a[m],1,1,()=>{a[m]=null}),le(),n=a[t],n?n.p(u,c):(n=a[t]=s[t](u),n.c()),d(n,1),n.m(o.parentNode,o))},i(u){r||(d(n),r=!0)},o(u){p(n),r=!1},d(u){u&&w(o),a[t].d(u)}}}function U3(i){let e,t,n;function o(s){i[175](s)}let r={};return i[10].interactiveTimeIndicator!==void 0&&(r.ref=i[10].interactiveTimeIndicator),e=new Ll({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&1024&&(t=!0,l.ref=s[10].interactiveTimeIndicator,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function z3(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,I,C,V,S;function v(z){i[166](z)}let E={isHidden:!i[14],isAds:i[5],canRewindLive:i[6],isRewindableLive:i[13]};i[10].timeline!==void 0&&(E.ref=i[10].timeline),t=new vl({props:E}),be.push(()=>ze(t,"ref",v));let W=Tt(i[11]),D=[];for(let z=0;z<W.length;z+=1)D[z]=ip(tp(i,W,z));let L=z=>p(D[z],1,1,()=>{D[z]=null}),J=i[7]&&np(i);function ue(z){i[169](z)}let Q={className:"w-max",disabled:!i[8],tooltipContent:G("tooltip_episodes"),$$slots:{default:[F3]},$$scope:{ctx:i}};i[10].episodes!==void 0&&(Q.ref=i[10].episodes),u=new Xi({props:Q}),be.push(()=>ze(u,"ref",ue));let ee=Tt(i[12]),X=[];for(let z=0;z<ee.length;z+=1)X[z]=rp(ep(i,ee,z));let x=z=>p(X[z],1,1,()=>{X[z]=null}),ce=i[67]&&U3(i);return{c(){e=P("div"),N(t.$$.fragment),o=Y(),r=P("div"),s=P("div");for(let z=0;z<D.length;z+=1)D[z].c();a=Y(),J&&J.c(),l=Y(),N(u.$$.fragment),h=Y(),y=P("div");for(let z=0;z<X.length;z+=1)X[z].c();g=Y(),ce&&ce.c(),I=$e(),f(s,"class","controls-left svelte-ips4nw"),f(y,"class","controls-right svelte-ips4nw"),f(r,"class","controls svelte-ips4nw"),f(e,"class","wrapper-bottom svelte-ips4nw"),K(e,"hidden",i[2]),K(e,"controls-hidden",!i[4]),K(e,"no-smooth",i[3])},m(z,j){k(z,e,j),R(t,e,null),_(e,o),_(e,r),_(r,s);for(let A=0;A<D.length;A+=1)D[A]&&D[A].m(s,null);_(s,a),J&&J.m(s,null),_(s,l),R(u,s,null),_(r,h),_(r,y);for(let A=0;A<X.length;A+=1)X[A]&&X[A].m(y,null);i[173](r),i[174](e),k(z,g,j),ce&&ce.m(z,j),k(z,I,j),C=!0,V||(S=[br(m=Rr.call(null,s)),ke(s,"fd:resize",i[170])],V=!0)},p(z,j){let A={};if(j[0]&16384&&(A.isHidden=!z[14]),j[0]&32&&(A.isAds=z[5]),j[0]&64&&(A.canRewindLive=z[6]),j[0]&8192&&(A.isRewindableLive=z[13]),!n&&j[0]&1024&&(n=!0,A.ref=z[10].timeline,Ue(()=>n=!1)),t.$set(A),j[0]&3072){W=Tt(z[11]);let $;for($=0;$<W.length;$+=1){let Ee=tp(z,W,$);D[$]?(D[$].p(Ee,j),d(D[$],1)):(D[$]=ip(Ee),D[$].c(),d(D[$],1),D[$].m(s,a))}for(se(),$=W.length;$<D.length;$+=1)L($);le()}z[7]?J?(J.p(z,j),j[0]&128&&d(J,1)):(J=np(z),J.c(),d(J,1),J.m(s,l)):J&&(se(),p(J,1,1,()=>{J=null}),le());let de={};if(j[0]&256&&(de.disabled=!z[8]),j[0]&256|j[1]&40|j[6]&4194304&&(de.$$scope={dirty:j,ctx:z}),!c&&j[0]&1024&&(c=!0,de.ref=z[10].episodes,Ue(()=>c=!1)),u.$set(de),j[0]&5120){ee=Tt(z[12]);let $;for($=0;$<ee.length;$+=1){let Ee=ep(z,ee,$);X[$]?(X[$].p(Ee,j),d(X[$],1)):(X[$]=rp(Ee),X[$].c(),d(X[$],1),X[$].m(y,null))}for(se(),$=ee.length;$<X.length;$+=1)x($);le()}(!C||j[0]&4)&&K(e,"hidden",z[2]),(!C||j[0]&16)&&K(e,"controls-hidden",!z[4]),(!C||j[0]&8)&&K(e,"no-smooth",z[3]),z[67]&&ce.p(z,j)},i(z){if(!C){d(t.$$.fragment,z);for(let j=0;j<W.length;j+=1)d(D[j]);d(J),d(u.$$.fragment,z);for(let j=0;j<ee.length;j+=1)d(X[j]);d(ce),C=!0}},o(z){p(t.$$.fragment,z),D=D.filter(Boolean);for(let j=0;j<D.length;j+=1)p(D[j]);p(J),p(u.$$.fragment,z),X=X.filter(Boolean);for(let j=0;j<X.length;j+=1)p(X[j]);p(ce),C=!1},d(z){z&&(w(e),w(g),w(I)),B(t),pi(D,z),J&&J.d(),B(u),pi(X,z),i[173](null),i[174](null),ce&&ce.d(z),V=!1,ut(S)}}}function W3(i,e,t){var b,M;let n,o,r,s,a,l,u,c,m,h,y,g,I,C,V,S,v,E,W,D,L,J,ue,Q,ee,X,x,ce,z,j,A,de,$,Ee,ne,ae,Ie,Te,Se,rt,Pe=me,qe=()=>(Pe(),Pe=ri(Q,T=>t(137,rt=T)),Q),te,_e=me,Ce=()=>(_e(),_e=ri(ue,T=>t(138,te=T)),ue),xe,ot=me,at=()=>(ot(),ot=ri(J,T=>t(139,xe=T)),J),st,Je=me,fe=()=>(Je(),Je=ri(L,T=>t(140,st=T)),L),Ze,Me=me,De=()=>(Me(),Me=ri(D,T=>t(141,Ze=T)),D),Qe,He=me,ct=()=>(He(),He=ri(W,T=>t(142,Qe=T)),W),ft,he=me,pt=()=>(he(),he=ri(E,T=>t(143,ft=T)),E),yt,It=me,kt=()=>(It(),It=ri(v,T=>t(144,yt=T)),v),Ye,Gt=me,ii=()=>(Gt(),Gt=ri(S,T=>t(145,Ye=T)),S),Kt,Ht=me,Yt=()=>(Ht(),Ht=ri(V,T=>t(146,Kt=T)),V),Nt,We=me,et=()=>(We(),We=ri(C,T=>t(147,Nt=T)),C),Pt,Qt=me,Wt=()=>(Qt(),Qt=ri(I,T=>t(148,Pt=T)),I),pe,Zt=me,Xt=()=>(Zt(),Zt=ri(g,T=>t(149,pe=T)),g),Jt,Vt=me,$t=()=>(Vt(),Vt=ri(y,T=>t(150,Jt=T)),y),jt,qt=me,xi=()=>(qt(),qt=ri(h,T=>t(151,jt=T)),h),_i,Ti=me,Ii=()=>(Ti(),Ti=ri(m,T=>t(152,_i=T)),m),Ut,Ri=me,Rt=()=>(Ri(),Ri=ri(c,T=>t(153,Ut=T)),c),ci,wi,ni,ki,Bi,Ae,it,Mt,Ci,Si,zt,Pi,hi,$i,xt,fn,Ei;i.$$.on_destroy.push(()=>Pe()),i.$$.on_destroy.push(()=>_e()),i.$$.on_destroy.push(()=>ot()),i.$$.on_destroy.push(()=>Je()),i.$$.on_destroy.push(()=>Me()),i.$$.on_destroy.push(()=>He()),i.$$.on_destroy.push(()=>he()),i.$$.on_destroy.push(()=>It()),i.$$.on_destroy.push(()=>Gt()),i.$$.on_destroy.push(()=>Ht()),i.$$.on_destroy.push(()=>We()),i.$$.on_destroy.push(()=>Qt()),i.$$.on_destroy.push(()=>Zt()),i.$$.on_destroy.push(()=>Vt()),i.$$.on_destroy.push(()=>qt()),i.$$.on_destroy.push(()=>Ti()),i.$$.on_destroy.push(()=>Ri());let{bottomHidden:dn}=e,{bottomNoSmooth:mn}=e,{showControls:pn}=e,{playerControlsWrapperRef:Ni=void 0}=e,{playerControlsRef:Ki=void 0}=e,{isAds:ai=!1}=e,{canRewindLive:en}=e,{logoClickable:ji}=e,{logoHidden:Di}=e,{logoTargetUrl:In=""}=e,{showNextPrevButtons:gi}=e,{nextButtonActive:Oi}=e,{prevButtonActive:Fi}=e,{isOneVideoPlaylist:_n=!1}=e,{customFullscreenSupported:Ai=!0}=e,{playNextVideo:Hi}=e,{playPrevVideo:Mi}=e,{repeatPlaylist:Dt}=e,{toggleFullscreen:oi}=e,{seekToInteractive:fi}=e,{playPrevChapter:qi}=e,{fakeIsPlaying$:hn}=Fn();q(i,hn,T=>t(130,de=T));let lt=nt(),Ui=Fn(),di=Bt(),zi=lt.actions.internal.toggleMuted,Gi=lt.actions.internal.togglePlay,Yi=lt.actions.internal.pause,Ge=lt.actions.internal.toggleSubtitle,Un=(b=lt.callbacks)==null?void 0:b.onAudioDoesNotExistHint,gn=(M=lt.callbacks)==null?void 0:M.onAudioDisabledHint,bn=lt.state.duration$;q(i,bn,T=>t(36,Ei=T));let tn=lt.state.positionWithScrubbing$;q(i,tn,T=>t(34,xt=T));let nn=lt.state.playbackState$;q(i,nn,T=>t(127,z=T));let on=lt.state.isAudioAvailable$;q(i,on,T=>t(176,$=T));let rn=lt.state.isAudioDisabled,bi=lt.state.isEnded$;q(i,bi,T=>t(162,Si=T));let Pn=lt.state.isLive$;q(i,Pn,T=>t(156,ki=T));let vn=lt.state.isActiveLive$;q(i,vn,T=>t(155,wi=T));let zn=lt.state.isRewindableLive$;q(i,zn,T=>t(13,ni=T));let sn=lt.ui.isPictureInPictureActive$;q(i,sn,T=>t(158,Ae=T));let yn=lt.ui.pictureInPictureType$;q(i,yn,T=>t(157,Bi=T));let wn=lt.ui.settingsMenu.visible$;q(i,wn,T=>t(126,ce=T));let En=lt.ui.settingsMenu.openedByBtnKeyboard$;q(i,En,T=>t(132,ne=T));let An=lt.ui.controls,ln=lt.actions.internal.getVideoEpisodes(),Mn=lt.state.chromecastState$;q(i,Mn,T=>t(124,X=T));let an=lt.state.availableSubtitlesList$;q(i,an,T=>t(161,Ci=T));let ao=lt.state.currentSubtitle$;q(i,ao,T=>t(163,zt=T));let uo=An.disabledControls$;q(i,uo,T=>t(165,hi=T));let co=lt.ui.contextMenu.visible$;q(i,co,T=>t(154,ci=T));let mi=lt.ui.contextMenu.showContextMenuBtn$;q(i,mi,T=>t(159,it=T));let Wn=lt.ui.contextMenu.openedByBtnKeyboard$;q(i,Wn,T=>t(160,Mt=T));let Zn=lt.ui.startedByKeyboard$;q(i,Zn,T=>t(131,Ee=T));let Xn=lt.ads.duration;q(i,Xn,T=>t(35,fn=T));let xn=lt.ads.position;q(i,xn,T=>t(33,$i=T));let Jn=lt.ads.playbackState;q(i,Jn,T=>t(164,Pi=T));let Qi=lt.ui.isFullscreen;q(i,Qi,T=>t(125,x=T));let kn=lt.ui.playerSize;q(i,kn,T=>t(135,Te=T));let $n=lt.ui.currentGridType$;q(i,$n,T=>t(136,Se=T));let eo=lt.ui.additionalDesktopControlPanelRightButtons$;q(i,eo,T=>t(123,ee=T));let fo=lt.actions.internal.getVideoElement,oe=lt.actions.internal.replayInteractive,Ct=lt.state.isInteractive,un=lt.state.isInteractiveTime$;q(i,un,T=>t(134,Ie=T));let Li=lt.state.showInteractiveGraph,Kn=lt.state.showSeekToInteractive,ie=lt.state.showPlayPrevChapter,to=lt.state.showInteractiveTimeIndicator,wo=lt.state.playPrevChapterDisabledTooltip,Lo=Ui.seekToInteractiveDisabledTooltip$;q(i,Lo,T=>t(129,A=T));let ko=Ui.graphIsOpened$;q(i,ko,T=>t(128,j=T));let Vo=di.features.interactiveResponsiveUi,xr=()=>lt.actions.internal.toggleChromecast(),io,no,Ln,mo,Co,Vn,Ko,jo,Rn,Go,Yo,Qo,Zo,Xo,Jo,Z,wt,Zi,Wi,po,Cn,_o,$o,So="",pr=(T,we)=>{if(!T){t(105,So=G("tooltip_live"));return}we===vc.PAUSED&&t(105,So=G("tooltip_play"))},Kr,jr,Gr,Yr,Qr,ei={},Bn,ho,Zr,Xr,ys=D3(Al,260),oa,_r=Ne();q(i,_r,T=>t(133,ae=T));let Jr;function ws(){Fo({isAudioDisabled:rn,audioDisabledHintCallback:gn,isAudioAvailable:$,audioIsNotExistHintCallback:Un})&&zi()}let ra=Ct?oe:_n?Gi:Dt,hr,$r,es,Sn=[],Nn=[];function gr(T){i.$$.not_equal(ei.timeline,T)&&(ei.timeline=T,t(10,ei))}function sa(T,we){i.$$.not_equal(ei[we.id],T)&&(ei[we.id]=T,t(10,ei))}function ks(T){i.$$.not_equal(ei.time,T)&&(ei.time=T,t(10,ei))}function la(T){i.$$.not_equal(ei.episodes,T)&&(ei.episodes=T,t(10,ei))}let aa=T=>{t(9,Qr=T.target.clientWidth)};function ht(T,we){i.$$.not_equal(ei[we.id],T)&&(ei[we.id]=T,t(10,ei))}function Cs(T,we){i.$$.not_equal(ei[we.id],T)&&(ei[we.id]=T,t(10,ei))}function Ss(T){be[T?"unshift":"push"](()=>{Ki=T,t(1,Ki)})}function Ts(T){be[T?"unshift":"push"](()=>{Ni=T,t(0,Ni)})}function Is(T){i.$$.not_equal(ei.interactiveTimeIndicator,T)&&(ei.interactiveTimeIndicator=T,t(10,ei))}return i.$$set=T=>{"bottomHidden"in T&&t(2,dn=T.bottomHidden),"bottomNoSmooth"in T&&t(3,mn=T.bottomNoSmooth),"showControls"in T&&t(4,pn=T.showControls),"playerControlsWrapperRef"in T&&t(0,Ni=T.playerControlsWrapperRef),"playerControlsRef"in T&&t(1,Ki=T.playerControlsRef),"isAds"in T&&t(5,ai=T.isAds),"canRewindLive"in T&&t(6,en=T.canRewindLive),"logoClickable"in T&&t(71,ji=T.logoClickable),"logoHidden"in T&&t(72,Di=T.logoHidden),"logoTargetUrl"in T&&t(73,In=T.logoTargetUrl),"showNextPrevButtons"in T&&t(74,gi=T.showNextPrevButtons),"nextButtonActive"in T&&t(75,Oi=T.nextButtonActive),"prevButtonActive"in T&&t(76,Fi=T.prevButtonActive),"isOneVideoPlaylist"in T&&t(77,_n=T.isOneVideoPlaylist),"customFullscreenSupported"in T&&t(78,Ai=T.customFullscreenSupported),"playNextVideo"in T&&t(79,Hi=T.playNextVideo),"playPrevVideo"in T&&t(80,Mi=T.playPrevVideo),"repeatPlaylist"in T&&t(81,Dt=T.repeatPlaylist),"toggleFullscreen"in T&&t(82,oi=T.toggleFullscreen),"seekToInteractive"in T&&t(83,fi=T.seekToInteractive),"playPrevChapter"in T&&t(84,qi=T.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&1024&&t(121,n=hi.has("EPISODE_BUTTON")),i.$$.dirty[5]&1024&&t(116,o=hi.has("GRAPH_BUTTON")),i.$$.dirty[5]&1024&&t(117,r=hi.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[5]&1024&&t(119,s=hi.has("PLAY_BUTTON")),i.$$.dirty[5]&1024&&t(120,a=hi.has("REPLAY_BUTTON")),i.$$.dirty[5]&1024&&t(118,l=hi.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[0]&32|i.$$.dirty[4]&8|i.$$.dirty[5]&512&&t(85,io=ai?Pi==="playing":z===vc.PLAYING),i.$$.dirty[5]&256&&t(86,no=zt.value!=="off"),i.$$.dirty[0]&32|i.$$.dirty[5]&128&&t(122,u=Si&&!ai||Ct),i.$$.dirty[3]&536870912|i.$$.dirty[4]&4096&&t(87,Ln=Vo?u&&yi(Se,"m"):u),i.$$.dirty[0]&32|i.$$.dirty[5]&128&&t(88,mo=!Si||Ct||ai),i.$$.dirty[4]&4096&&t(89,Co=yi(Se,"m")),i.$$.dirty[0]&32|i.$$.dirty[2]&12288|i.$$.dirty[4]&4096&&t(90,Vn=gi&&yi(Se,"m")&&!ai&&Oi),i.$$.dirty[0]&32|i.$$.dirty[2]&20480|i.$$.dirty[4]&4096&&t(91,Ko=gi&&yi(Se,"m")&&!ai&&Fi),i.$$.dirty[0]&32|i.$$.dirty[5]&2&&t(92,jo=!ai&&!!ki),i.$$.dirty[4]&4097|i.$$.dirty[5]&12&&t(93,Rn=X!==$m.NOT_AVAILABLE&&!(Ae&&Bi===1)&&yi(Se,"m")&&!Ct),i.$$.dirty[4]&4096|i.$$.dirty[5]&64&&t(94,Go=Ci.length>0&&yi(Se,"m")),i.$$.dirty[5]&48&&t(95,Yo=Mt||it),i.$$.dirty[0]&32|i.$$.dirty[4]&4096&&t(96,Qo=yi(Se,"s")&&!ai),i.$$.dirty[0]&32|i.$$.dirty[2]&1024&&t(97,Zo=!Di&&!ai),i.$$.dirty[2]&66560|i.$$.dirty[4]&4096|i.$$.dirty[5]&12&&t(98,Xo=di.features.fullscreen&&(Di||yi(Se,Vo?"xs":"s"))&&!(Ae&&Bi===1)&&(Ct?Ai:!0)),i.$$.dirty[0]&32|i.$$.dirty[5]&2&&t(7,Jo=(!ki||ai)&&!(di.features.interactiveHideTime&&Ct)),i.$$.dirty[4]&2048&&t(14,Z=Te.width>100),i.$$.dirty[4]&4096&&t(99,wt=Li&&yi(Se,"m")),i.$$.dirty[4]&4096&&t(100,Zi=Vo?Kn&&yi(Se,"s"):Kn),i.$$.dirty[4]&4096&&t(101,Wi=Vo?ie&&yi(Se,"s"):ie),i.$$.dirty[0]&32|i.$$.dirty[2]&134217728|i.$$.dirty[3]&268435456|i.$$.dirty[5]&2&&t(8,po=!ai&&!ki&&!!(ln!=null&&ln.length)&&Co&&!n),i.$$.dirty[0]&8192|i.$$.dirty[5]&1&&t(102,Cn=!ni||wi),i.$$.dirty[4]&16&&t(103,_o=j?G("tooltip_interactive_graph_on"):G("tooltip_interactive_graph_off")),i.$$.dirty[4]&1073741824&&t(104,$o=ci?G("aria_label_context_menu_close"):G("aria_label_context_menu_open")),i.$$.dirty[3]&512|i.$$.dirty[4]&8&&pr(Cn,z),i.$$.dirty[2]&16777216&&t(107,jr=no?G("tooltip_subtitles_on"):G("tooltip_subtitles_off")),i.$$.dirty[4]&2&&t(108,Gr=x?G("tooltip_fullscreen_on"):G("tooltip_fullscreen_off")),i.$$.dirty[4]&1&&t(109,Yr=X===$m.CONNECTED?G("tooltip_chromecast_on"):G("tooltip_chromecast_off")),i.$$.dirty[3]&1073741824|i.$$.dirty[4]&1073733632&&t(110,Bn={prevButton:Ut?Ut.right-Ut.left:0,replayButton:_i?_i.right-_i.left:0,playButton:jt?jt.right-jt.left:0,nextButton:Jt?Jt.right-Jt.left:0,playPrevChapterButton:pe?pe.right-pe.left:0,seekToInteractiveButton:Pt?Pt.right-Pt.left:0,interactiveGraphButton:Nt?Nt.right-Nt.left:0,liveButton:Kt?Kt.right-Kt.left:0,time:Ye?Ye.right-Ye.left:0,episodes:yt?yt.right-yt.left:0,vkLogo:ft?ft.right-ft.left:0,volume:Qe?Qe.right-Qe.left:0,subtitles:Ze?Ze.right-Ze.left:0,settings:st?st.right-st.left:0,context:xe?xe.right-xe.left:0,fullscreen:te?te.right-te.left:0,chromecast:rt?rt.right-rt.left:0,additionalButtons:ee.length?ee.reduce(T=>[...T,40],[]):[]}),i.$$.dirty[3]&393216&&(!ho||ho<Bn.time)&&t(111,ho=Bn.time),i.$$.dirty[0]&896|i.$$.dirty[3]&393216|i.$$.dirty[4]&4096){let T=0;po&&(yi(Se,"xl")?T=Bn.time:T=60);let we=Bn.prevButton+Bn.playButton+Bn.nextButton+Bn.seekToInteractiveButton+Bn.interactiveGraphButton+Bn.liveButton+ho+T;t(112,Zr=Jo&&Qr>=we)}i.$$.dirty[3]&524288|i.$$.dirty[4]&4096&&t(15,Xr=Zr&&yi(Se,"m")),i.$$.dirty[0]&1040|i.$$.dirty[4]&3072&&ys(fo(),An,ei,pn),i.$$.dirty[4]&516&&ae&&Ar(ae,ce,En),i.$$.dirty[4]&260&&vo(oa,ce,ne),i.$$.dirty[4]&128&&Ml(Zn,Ee,Jr),i.$$.dirty[4]&64&&t(113,hr=de!==null),i.$$.dirty[2]&8388608|i.$$.dirty[3]&1048576|i.$$.dirty[4]&64&&t(114,$r=hr?de:io),i.$$.dirty[3]&2097152&&t(115,es=$r?G("tooltip_pause"):G("tooltip_play")),i.$$.dirty[0]&2048|i.$$.dirty[2]&1994809344|i.$$.dirty[3]&264247232|i.$$.dirty[4]&56&&(t(11,Sn=[]),Ko&&Sn.push({id:"prevButton",type:"desktop-control-panel-left",weight:Mo.prevButton,buttonComponent:Hr,buttonComponentProps:{disabled:!Fi,type:"prev",click:Mi},tooltipText:G("tooltip_previous"),disabled:!Fi}),Ln&&Sn.push({id:"replayButton",type:"desktop-control-panel-left",weight:Mo.replayButton,buttonComponent:fs,buttonComponentProps:{disabled:a,click:ra},tooltipText:G("tooltip_restart"),disabled:a}),mo&&Sn.push({id:"playButton",type:"desktop-control-panel-left",weight:Mo.playButton,buttonComponent:ds,buttonComponentProps:{disabled:s,isPlaying:io,click:Gi},tooltipText:es,disabled:s}),Vn&&Sn.push({id:"nextButton",type:"desktop-control-panel-left",weight:Mo.nextButton,buttonComponent:Hr,buttonComponentProps:{disabled:!Oi,type:"next",click:Hi},tooltipText:G("tooltip_next"),disabled:!Oi}),Ct&&(Wi&&Sn.push({id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Mo.playPrevChapterButton,buttonComponent:Rl,buttonComponentProps:{disabled:l,click:qi},tooltipText:G("tooltip_interactive_go_back"),disabledTooltipContent:wo,disabled:l}),Zi&&Sn.push({id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Mo.seekToInteractiveButton,buttonComponent:Bl,buttonComponentProps:{disabled:r,click:fi},tooltipText:G("tooltip_interactive_seek"),disabled:r,disabledTooltipContent:G(A)}),wt&&Sn.push({id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Mo.interactiveGraphButton,buttonComponent:Nl,buttonComponentProps:{disabled:o,click:ko.toggle,graphIsOpened:j},tooltipText:_o})),jo&&Sn.push({id:"liveButton",type:"desktop-control-panel-left",weight:Mo.liveButton,buttonComponent:Dl,buttonComponentProps:{isLiveActive:Cn,ariaLabel:So},tooltipText:So,disabled:Cn&&z===vc.PLAYING}),t(11,Sn=Sn.sort(cr))),i.$$.dirty[0]&4096|i.$$.dirty[2]&17828352|i.$$.dirty[3]&1073866815|i.$$.dirty[4]&7&&(t(12,Nn=[]),Zo&&Nn.push({id:"vkLogo",type:"desktop-control-panel-right",weight:xo.vkLogo,buttonComponent:_l,buttonComponentProps:{targetUrl:In,logoClickable:ji,click:Yi},tooltipText:Kr,disabledTooltipContent:"",disabled:!ji}),Nn.push({id:"volume",type:"desktop-control-panel-right",weight:xo.volume,buttonComponent:_m,buttonComponentProps:{click:ws}}),Go&&Nn.push({id:"subtitles",type:"desktop-control-panel-right",weight:xo.subtitles,buttonComponent:em,buttonComponentProps:{isSubtitlesEnabled:no,click:Ge},tooltipText:jr}),Qo&&Nn.push({id:"settings",type:"desktop-control-panel-right",weight:xo.settings,buttonComponent:as,buttonComponentProps:{ref$:_r},tooltipText:ce?void 0:G("tooltip_settings_off")}),di.features.contextMenuButton&&Nn.push({id:"context",type:"desktop-control-panel-right",weight:xo.context,buttonComponent:qm,buttonComponentProps:{click:oi},className:Yo?"":"out-of-view",tooltipText:$o}),Xo&&Nn.push({id:"fullscreen",type:"desktop-control-panel-right",weight:xo.fullscreen,buttonComponent:pl,buttonComponentProps:{isFullscreen:x,click:oi},tooltipText:Gr}),Rn&&Nn.push({id:"chromecast",type:"desktop-control-panel-right",weight:xo.chromecast,buttonComponent:hl,buttonComponentProps:{state:X,click:xr},tooltipText:Yr}),t(12,Nn=[...Nn,...ee].sort(cr)))},t(106,Kr=di.logoType==="vk_video"?G("tooltip_vk_video_logo"):G("tooltip_vk_logo")),Rt(t(32,{prevButton:c,replayButton:m,playButton:h,nextButton:y,playPrevChapterButton:g,seekToInteractiveButton:I,interactiveGraphButton:C,liveButton:V,time:S,episodes:v,vkLogo:E,volume:W,subtitles:D,settings:L,context:J,fullscreen:ue,chromecast:Q}=An,c,Ii(t(31,m)),xi(t(30,h)),$t(t(29,y)),Xt(t(28,g)),Wt(t(27,I)),et(t(26,C)),Yt(t(25,V)),ii(t(24,S)),kt(t(23,v)),pt(t(22,E)),ct(t(21,W)),De(t(20,D)),fe(t(19,L)),at(t(18,J)),Ce(t(17,ue)),qe(t(16,Q)))),[Ni,Ki,dn,mn,pn,ai,en,Jo,po,Qr,ei,Sn,Nn,ni,Z,Xr,Q,ue,J,L,D,W,E,v,S,V,C,I,g,y,h,m,c,$i,xt,fn,Ei,hn,bn,tn,nn,on,bi,Pn,vn,zn,sn,yn,wn,En,ln,Mn,an,ao,uo,co,mi,Wn,Zn,Xn,xn,Jn,Qi,kn,$n,eo,un,to,Lo,ko,_r,ji,Di,In,gi,Oi,Fi,_n,Ai,Hi,Mi,Dt,oi,fi,qi,io,no,Ln,mo,Co,Vn,Ko,jo,Rn,Go,Yo,Qo,Zo,Xo,wt,Zi,Wi,Cn,_o,$o,So,Kr,jr,Gr,Yr,Bn,ho,Zr,hr,$r,es,o,r,l,s,a,n,u,ee,X,x,ce,z,j,A,de,Ee,ne,ae,Ie,Te,Se,rt,te,xe,st,Ze,Qe,ft,yt,Ye,Kt,Nt,Pt,pe,Jt,jt,_i,Ut,ci,wi,ki,Bi,Ae,it,Mt,Ci,Si,zt,Pi,hi,gr,sa,ks,la,aa,ht,Cs,Ss,Ts,Is]}var yc=class extends H{constructor(e){super(),U(this,e,W3,z3,F,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:71,logoHidden:72,logoTargetUrl:73,showNextPrevButtons:74,nextButtonActive:75,prevButtonActive:76,isOneVideoPlaylist:77,customFullscreenSupported:78,playNextVideo:79,playPrevVideo:80,repeatPlaylist:81,toggleFullscreen:82,seekToInteractive:83,playPrevChapter:84},O3,[-1,-1,-1,-1,-1,-1,-1])}},sp=yc;import{ChromecastState as _p,PlaybackState as hp}from"@vkontakte/videoplayer-core";import{noop as lp}from"@vkontakte/videoplayer-shared";function x3(i){ge(i,"svelte-1aqpg2x",".icon.svelte-1aqpg2x{width:24px !important;height:24px !important;;}.inner.svelte-1aqpg2x{width:16px;height:16px;background-color:var(--white)}")}function K3(i){let e,t,n,o;return{c(){e=P("img"),f(e,"class","icon svelte-1aqpg2x"),To(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){k(r,e,s),n||(o=ke(e,"error",i[7]),n=!0)},p(r,s){s&1&&!To(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&w(e),n=!1,o()}}}function j3(i){let e;return{c(){e=P("div"),e.innerHTML='<div class="inner svelte-1aqpg2x"></div>',f(e,"class","icon icon-error-stub svelte-1aqpg2x")},m(t,n){k(t,e,n)},p:me,d(t){t&&w(e)}}}function G3(i){let e;function t(r,s){return r[5]?j3:K3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=$e()},m(r,s){o.m(r,s),k(r,e,s)},p(r,s){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&w(e),o.d(r)}}}function Y3(i){let e,t;return e=new bt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[G3]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&16&&(r.className=n[4]?"btn-full-opacity":""),o&2&&(r.ariaLabel=n[1]),o&8&&(r.click=n[3]),o&64&&(r.disabled=n[6]),o&4&&(r.testId=n[2]),o&545&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Q3(i,e,t){let n,o,r,{iconUrl:s}=e,{ariaLabel:a}=e,{disabled:l=!1}=e,{testId:u}=e,{onClick:c=lp}=e,m=()=>{t(5,r=!0)};return i.$$set=h=>{"iconUrl"in h&&t(0,s=h.iconUrl),"ariaLabel"in h&&t(1,a=h.ariaLabel),"disabled"in h&&t(8,l=h.disabled),"testId"in h&&t(2,u=h.testId),"onClick"in h&&t(3,c=h.onClick)},i.$$.update=()=>{i.$$.dirty&8&&t(4,n=c===lp),i.$$.dirty&272&&t(6,o=n||l)},t(5,r=!1),[s,a,u,c,n,r,o,m,l]}var kc=class extends H{constructor(e){super(),U(this,e,Q3,Y3,F,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},x3)}},ap=kc;function Z3(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=O("svg"),a&&a.c(),t=O("g"),n=O("path"),o=O("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"d","M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),ye(e,u)},m(c,m){k(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),ye(e,u=Fe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&w(e),a&&a.d(c)}}}function X3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Cc=class extends H{constructor(e){super(),U(this,e,X3,Z3,F,{})}},up=Cc;import{noop as J3}from"@vkontakte/videoplayer-shared";function $3(i){ge(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 cp(i){let e;return{c(){e=P("span"),e.textContent=`${G("mobile_unmute")}`,f(e,"class","text svelte-6gmlbk")},m(t,n){k(t,e,n)},d(t){t&&w(e)}}}function e5(i){let e,t,n,o;var r=i[4];function s(l,u){return{}}r&&(t=Ot(r,s(i)));let a=i[1]&&cp(i);return{c(){e=P("div"),t&&N(t.$$.fragment),n=Y(),a&&a.c(),f(e,"class","container svelte-6gmlbk"),f(e,"aria-hidden","true"),K(e,"expanded",i[1])},m(l,u){k(l,e,u),t&&R(t,e,null),_(e,n),a&&a.m(e,null),o=!0},p(l,u){if(u&16&&r!==(r=l[4])){if(t){se();let c=t;p(c.$$.fragment,1,0,()=>{B(c,1)}),le()}r?(t=Ot(r,s(l,u)),N(t.$$.fragment),d(t.$$.fragment,1),R(t,e,n)):t=null}l[1]?a||(a=cp(l),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&K(e,"expanded",l[1])},i(l){o||(t&&d(t.$$.fragment,l),o=!0)},o(l){t&&p(t.$$.fragment,l),o=!1},d(l){l&&w(e),t&&B(t),a&&a.d()}}}function t5(i){let e,t,n;function o(s){i[6](s)}let r={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[e5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.testId=s[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(l.click=s[2]),a&8&&(l.ariaLabel=s[3]),a&146&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function i5(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=J3}=e,{ref:s=void 0}=e,a,l;function u(c){s=c,t(0,s)}return i.$$set=c=>{"muted"in c&&t(5,n=c.muted),"expanded"in c&&t(1,o=c.expanded),"click"in c&&t(2,r=c.click),"ref"in c&&t(0,s=c.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,a=n?G("tooltip_volume"):G("tooltip_volume_muted")),i.$$.dirty&2&&t(4,l=o?dr:up)},[s,o,r,a,l,n,u]}var Sc=class extends H{constructor(e){super(),U(this,e,i5,t5,F,{muted:5,expanded:1,click:2,ref:0},$3)}},Tc=Sc;function n5(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=O("svg"),a&&a.c(),t=O("path"),n=O("path"),o=O("path"),f(t,"fill","currentColor"),f(t,"d","M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z"),f(t,"clip-rule","evenodd"),f(n,"fill","currentColor"),f(n,"d","m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z"),f(n,"class","hidden-not-active"),f(o,"fill","currentColor"),f(o,"d","m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z"),f(o,"class","hidden-active"),ye(e,u)},m(c,m){k(c,e,m),a&&a.m(e,null),_(e,t),_(e,n),_(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),ye(e,u=Fe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&w(e),a&&a.d(c)}}}function o5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Ic=class extends H{constructor(e){super(),U(this,e,o5,n5,F,{})}},fp=Ic;function r5(i){ge(i,"svelte-tmam00",'svg[data-testid="pip-icon--active"] .hidden-active,svg[data-testid="pip-icon"] .hidden-not-active{visibility:hidden;opacity:0}')}function s5(i){let e,t;return e=new fp({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function l5(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=r=>{"isActive"in r&&t(0,o=r.isActive)},i.$$.update=()=>{i.$$.dirty&1&&t(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var Pc=class extends H{constructor(e){super(),U(this,e,l5,s5,F,{isActive:0},r5)}},dp=Pc;import{noop as a5}from"@vkontakte/videoplayer-shared";function u5(i){let e,t;return e=new dp({props:{isActive:i[1]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function c5(i){let e,t,n;function o(s){i[3](s)}let r={testId:"btn-pip",ariaLabel:G("menu_pip"),click:i[2],$$slots:{default:[u5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&4&&(l.click=s[2]),a&18&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function f5(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=a5}=e;function s(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"isPictureInPictureActive"in a&&t(1,o=a.isPictureInPictureActive),"click"in a&&t(2,r=a.click)},[n,o,r,s]}var Ec=class extends H{constructor(e){super(),U(this,e,f5,c5,F,{ref:0,isPictureInPictureActive:1,click:2})}},mp=Ec;function d5(i){ge(i,"svelte-sty291",".gutter.svelte-sty291{--gutterWidth:32px;--gutterHeight:12px;--togglerWidth:18px;--togglerHeight:18px;--togglerGap:calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px}.toggler.svelte-sty291{position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease}.toggler.enabled.svelte-sty291{background-color:var(--white);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}")}function m5(i){let e,t;return e=new qr({props:{width:"14",height:"14"}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function p5(i){let e,t;return e=new Wo({props:{width:"14",height:"14",fill:"#000"}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function _5(i){let e,t,n,o,r,s=[p5,m5],a=[];function l(u,c){return u[1]?0:1}return n=l(i,-1),o=a[n]=s[n](i),{c(){e=P("span"),t=P("span"),o.c(),f(t,"class","toggler svelte-sty291"),K(t,"enabled",i[1]),f(e,"class","gutter svelte-sty291")},m(u,c){k(u,e,c),_(e,t),a[n].m(t,null),r=!0},p(u,c){let m=n;n=l(u,c),n!==m&&(se(),p(a[m],1,1,()=>{a[m]=null}),le(),o=a[n],o||(o=a[n]=s[n](u),o.c()),d(o,1),o.m(t,null)),(!r||c&2)&&K(t,"enabled",u[1])},i(u){r||(d(o),r=!0)},o(u){p(o),r=!1},d(u){u&&w(e),a[n].d()}}}function h5(i){let e,t,n;function o(s){i[4](s)}let r={click:i[3],$$slots:{default:[_5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new bt({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&130&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function g5(i,e,t){let n,{ref:o=void 0}=e,r=nt(),s=r.ui.autoplayNextEnabled$;q(i,s,c=>t(1,n=c));let a=r.actions.internal.setAutoplayNextEnabled;function l(){a(!n)}function u(c){o=c,t(0,o)}return i.$$set=c=>{"ref"in c&&t(0,o=c.ref)},[o,n,s,l,u]}var Ac=class extends H{constructor(e){super(),U(this,e,g5,h5,F,{ref:0},d5)}},pp=Ac;import{debounceFn as b5}from"@vkontakte/videoplayer-shared";function v5(i){ge(i,"svelte-s4hj64",".wrapper-bottom.svelte-s4hj64.svelte-s4hj64{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px}.wrapper-bottom.svelte-s4hj64>.svelte-s4hj64{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-s4hj64.svelte-s4hj64{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-s4hj64.svelte-s4hj64{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.svelte-s4hj64.svelte-s4hj64{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.svelte-s4hj64.svelte-s4hj64{position:absolute;top:4px;left:8px}.wrapper-middle-left.svelte-s4hj64.svelte-s4hj64,.wrapper-middle-left-second.svelte-s4hj64.svelte-s4hj64,.wrapper-middle-right.svelte-s4hj64.svelte-s4hj64{position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.wrapper-middle-left.svelte-s4hj64.svelte-s4hj64{left:12px}.wrapper-middle-left-second.svelte-s4hj64.svelte-s4hj64{left:64px}.wrapper-middle-right.svelte-s4hj64.svelte-s4hj64{right:12px}.controls.svelte-s4hj64.svelte-s4hj64{width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box}.controls.svelte-s4hj64 > *:not(:first-child){margin-left:8px}.hidden.svelte-s4hj64.svelte-s4hj64{visibility:hidden;opacity:0}.controls-hidden.svelte-s4hj64.svelte-s4hj64{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-s4hj64.svelte-s4hj64{transition:none}.overlay-mobile.svelte-s4hj64.svelte-s4hj64{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration)}@media screen and (orientation: portrait){.wrapper-top-right.fullscreen.svelte-s4hj64.svelte-s4hj64{top:16px}.wrapper-top-left.fullscreen.svelte-s4hj64.svelte-s4hj64{top:16px}.controls-wrapper.fullscreen.svelte-s4hj64.svelte-s4hj64{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-s4hj64.svelte-s4hj64{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-s4hj64.svelte-s4hj64{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-s4hj64.svelte-s4hj64{left:44px}.wrapper-middle-left-second.fullscreen.svelte-s4hj64.svelte-s4hj64{left:96px}.wrapper-middle-right.fullscreen.svelte-s4hj64.svelte-s4hj64{right:44px}.controls-wrapper.fullscreen.svelte-s4hj64.svelte-s4hj64{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function gp(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 bp(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,I,C,V,S,v=(!i[47]||i[49])&&vp(i),E=Tt(i[52]),W=[];for(let A=0;A<E.length;A+=1)W[A]=yp(gp(i,E,A));let D=A=>p(W[A],1,1,()=>{W[A]=null}),L=i[59].features.autoplayNext&&i[9]&&wp(i),J=i[32]&&kp(i),ue=i[33]&&Cp(i),Q=i[53]&&Sp(i),ee=i[35]&&Tp(i),X=i[29]&&Ip(i),x=i[28]&&Pp(i),ce=i[27]&&Ep(i),z=i[30]&&Ap(i),j=i[94]&&!i[23]&&Mp(i);return{c(){e=P("div"),t=Y(),n=P("div"),v&&v.c(),o=Y(),r=P("div");for(let A=0;A<W.length;A+=1)W[A].c();s=Y(),L&&L.c(),a=Y(),J&&J.c(),l=Y(),ue&&ue.c(),u=Y(),Q&&Q.c(),c=Y(),ee&&ee.c(),m=Y(),h=P("div"),X&&X.c(),y=Y(),x&&x.c(),g=Y(),ce&&ce.c(),I=Y(),z&&z.c(),C=Y(),j&&j.c(),V=$e(),f(e,"class","overlay-mobile svelte-s4hj64"),K(e,"hidden",!i[38]),f(n,"class","wrapper-top-left svelte-s4hj64"),K(n,"hidden",!i[4]),K(n,"fullscreen",i[48]),f(r,"class","wrapper-top-right svelte-s4hj64"),K(r,"hidden",!i[4]&&!i[21]),K(r,"fullscreen",i[48]),f(h,"class","wrapper-middle svelte-s4hj64"),K(h,"hidden",!i[4]||i[23]||i[10]&&i[9])},m(A,de){k(A,e,de),k(A,t,de),k(A,n,de),v&&v.m(n,null),k(A,o,de),k(A,r,de);for(let $=0;$<W.length;$+=1)W[$]&&W[$].m(r,null);_(r,s),L&&L.m(r,null),_(r,a),J&&J.m(r,null),_(r,l),ue&&ue.m(r,null),_(r,u),Q&&Q.m(r,null),_(r,c),ee&&ee.m(r,null),k(A,m,de),k(A,h,de),X&&X.m(h,null),_(h,y),x&&x.m(h,null),_(h,g),ce&&ce.m(h,null),_(h,I),z&&z.m(h,null),k(A,C,de),j&&j.m(A,de),k(A,V,de),S=!0},p(A,de){if((!S||de[1]&128)&&K(e,"hidden",!A[38]),!A[47]||A[49]?v?(v.p(A,de),de[1]&327680&&d(v,1)):(v=vp(A),v.c(),d(v,1),v.m(n,null)):v&&(se(),p(v,1,1,()=>{v=null}),le()),(!S||de[0]&16)&&K(n,"hidden",!A[4]),(!S||de[1]&131072)&&K(n,"fullscreen",A[48]),de[1]&2097152){E=Tt(A[52]);let $;for($=0;$<E.length;$+=1){let Ee=gp(A,E,$);W[$]?(W[$].p(Ee,de),d(W[$],1)):(W[$]=yp(Ee),W[$].c(),d(W[$],1),W[$].m(r,s))}for(se(),$=E.length;$<W.length;$+=1)D($);le()}A[59].features.autoplayNext&&A[9]?L?(L.p(A,de),de[0]&512&&d(L,1)):(L=wp(A),L.c(),d(L,1),L.m(r,a)):L&&(se(),p(L,1,1,()=>{L=null}),le()),A[32]?J?(J.p(A,de),de[1]&2&&d(J,1)):(J=kp(A),J.c(),d(J,1),J.m(r,l)):J&&(se(),p(J,1,1,()=>{J=null}),le()),A[33]?ue?(ue.p(A,de),de[1]&4&&d(ue,1)):(ue=Cp(A),ue.c(),d(ue,1),ue.m(r,u)):ue&&(se(),p(ue,1,1,()=>{ue=null}),le()),A[53]?Q?(Q.p(A,de),de[1]&4194304&&d(Q,1)):(Q=Sp(A),Q.c(),d(Q,1),Q.m(r,c)):Q&&(se(),p(Q,1,1,()=>{Q=null}),le()),A[35]?ee?(ee.p(A,de),de[1]&16&&d(ee,1)):(ee=Tp(A),ee.c(),d(ee,1),ee.m(r,null)):ee&&(se(),p(ee,1,1,()=>{ee=null}),le()),(!S||de[0]&2097168)&&K(r,"hidden",!A[4]&&!A[21]),(!S||de[1]&131072)&&K(r,"fullscreen",A[48]),A[29]?X?(X.p(A,de),de[0]&536870912&&d(X,1)):(X=Ip(A),X.c(),d(X,1),X.m(h,y)):X&&(se(),p(X,1,1,()=>{X=null}),le()),A[28]?x?(x.p(A,de),de[0]&268435456&&d(x,1)):(x=Pp(A),x.c(),d(x,1),x.m(h,g)):x&&(se(),p(x,1,1,()=>{x=null}),le()),A[27]?ce?(ce.p(A,de),de[0]&134217728&&d(ce,1)):(ce=Ep(A),ce.c(),d(ce,1),ce.m(h,I)):ce&&(se(),p(ce,1,1,()=>{ce=null}),le()),A[30]?z?(z.p(A,de),de[0]&1073741824&&d(z,1)):(z=Ap(A),z.c(),d(z,1),z.m(h,null)):z&&(se(),p(z,1,1,()=>{z=null}),le()),(!S||de[0]&8390160)&&K(h,"hidden",!A[4]||A[23]||A[10]&&A[9]),A[94]&&!A[23]?j?(j.p(A,de),de[0]&8388608&&d(j,1)):(j=Mp(A),j.c(),d(j,1),j.m(V.parentNode,V)):j&&(se(),p(j,1,1,()=>{j=null}),le())},i(A){if(!S){d(v);for(let de=0;de<E.length;de+=1)d(W[de]);d(L),d(J),d(ue),d(Q),d(ee),d(X),d(x),d(ce),d(z),d(j),S=!0}},o(A){p(v),W=W.filter(Boolean);for(let de=0;de<W.length;de+=1)p(W[de]);p(L),p(J),p(ue),p(Q),p(ee),p(X),p(x),p(ce),p(z),p(j),S=!1},d(A){A&&(w(e),w(t),w(n),w(o),w(r),w(m),w(h),w(C),w(V)),v&&v.d(),pi(W,A),L&&L.d(),J&&J.d(),ue&&ue.d(),Q&&Q.d(),ee&&ee.d(),X&&X.d(),x&&x.d(),ce&&ce.d(),z&&z.d(),j&&j.d(A)}}}function vp(i){let e,t,n;function o(s){i[133](s)}let r={muted:i[50],expanded:i[47]&&!i[67]&&i[51],click:i[103]};return i[17].volume!==void 0&&(r.ref=i[17].volume),e=new Tc({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[1]&524288&&(l.muted=s[50]),a[1]&1114112&&(l.expanded=s[47]&&!s[67]&&s[51]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].volume,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function yp(i){var n;let e,t;return e=new ap({props:{iconUrl:i[172],ariaLabel:(n=i[173])!=null?n:i[176],testId:i[174],onClick:i[175]}}),{c(){N(e.$$.fragment)},m(o,r){R(e,o,r),t=!0},p(o,r){var a;let s={};r[1]&2097152&&(s.iconUrl=o[172]),r[1]&2097152&&(s.ariaLabel=(a=o[173])!=null?a:o[176]),r[1]&2097152&&(s.testId=o[174]),r[1]&2097152&&(s.onClick=o[175]),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){B(e,o)}}}function wp(i){let e,t,n;function o(s){i[134](s)}let r={};return i[17].autoplayNextToggle!==void 0&&(r.ref=i[17].autoplayNextToggle),e=new pp({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&131072&&(t=!0,l.ref=s[17].autoplayNextToggle,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function kp(i){let e,t,n;function o(s){i[135](s)}let r={isMobile:!0,click:i[101],state:i[22]};return i[17].chromecast!==void 0&&(r.ref=i[17].chromecast),e=new hl({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[0]&4194304&&(l.state=s[22]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].chromecast,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function Cp(i){let e,t,n;function o(s){i[136](s)}let r={click:i[102],isPictureInPictureActive:i[20]};return i[17].pip!==void 0&&(r.ref=i[17].pip),e=new mp({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[0]&1048576&&(l.isPictureInPictureActive=s[20]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].pip,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function Sp(i){let e,t;return e=new as({props:{ref$:i[105]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Tp(i){let e,t,n;function o(s){i[137](s)}let r={click:i[61],targetUrl:i[8],logoClickable:i[7]};return i[17].vkLogo!==void 0&&(r.ref=i[17].vkLogo),e=new _l({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[0]&256&&(l.targetUrl=s[8]),a[0]&128&&(l.logoClickable=s[7]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].vkLogo,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function Ip(i){let e,t,n;function o(s){i[138](s)}let r={click:i[12],type:"prev",isMobile:!0};return i[17].prevButton!==void 0&&(r.ref=i[17].prevButton),e=new Hr({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[0]&4096&&(l.click=s[12]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].prevButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function Pp(i){let e,t,n;function o(s){i[139](s)}let r={disabled:i[45],click:i[60],isMobile:!0,isPlaying:i[25]};return i[17].playButton!==void 0&&(r.ref=i[17].playButton),e=new ds({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[1]&16384&&(l.disabled=s[45]),a[0]&33554432&&(l.isPlaying=s[25]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].playButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function Ep(i){let e,t,n;function o(s){i[140](s)}let r={disabled:i[44],click:i[104],isMobile:!0};return i[17].replayButton!==void 0&&(r.ref=i[17].replayButton),e=new fs({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[1]&8192&&(l.disabled=s[44]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].replayButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function Ap(i){let e,t,n;function o(s){i[141](s)}let r={click:i[11],type:"next",isMobile:!0};return i[17].nextButton!==void 0&&(r.ref=i[17].nextButton),e=new Hr({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[0]&2048&&(l.click=s[11]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].nextButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function Mp(i){let e,t,n,o,r=i[97]&&y5(i),s=i[40]&&Lp(i),a=i[96]&&w5(i);return{c(){r&&r.c(),e=Y(),s&&s.c(),t=Y(),a&&a.c(),n=$e()},m(l,u){r&&r.m(l,u),k(l,e,u),s&&s.m(l,u),k(l,t,u),a&&a.m(l,u),k(l,n,u),o=!0},p(l,u){l[97]&&r.p(l,u),l[40]?s?(s.p(l,u),u[1]&512&&d(s,1)):(s=Lp(l),s.c(),d(s,1),s.m(t.parentNode,t)):s&&(se(),p(s,1,1,()=>{s=null}),le()),l[96]&&a.p(l,u)},i(l){o||(d(r),d(s),d(a),o=!0)},o(l){p(r),p(s),p(a),o=!1},d(l){l&&(w(e),w(t),w(n)),r&&r.d(l),s&&s.d(l),a&&a.d(l)}}}function y5(i){let e,t,n,o,r,s;function a(u){i[142](u)}let l={hidden:!i[4],disabled:i[43],click:i[15]};return i[17].playPrevChapterButton!==void 0&&(l.ref=i[17].playPrevChapterButton),t=new Rl({props:l}),be.push(()=>ze(t,"ref",a)),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","wrapper-middle-left svelte-s4hj64"),K(e,"fullscreen",i[48]),K(e,"hidden",!i[4])},m(u,c){k(u,e,c),R(t,e,null),o=!0,r||(s=ke(e,"click",i[106]),r=!0)},p(u,c){let m={};c[0]&16&&(m.hidden=!u[4]),c[1]&4096&&(m.disabled=u[43]),c[0]&32768&&(m.click=u[15]),!n&&c[0]&131072&&(n=!0,m.ref=u[17].playPrevChapterButton,Ue(()=>n=!1)),t.$set(m),(!o||c[1]&131072)&&K(e,"fullscreen",u[48]),(!o||c[0]&16)&&K(e,"hidden",!u[4])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){p(t.$$.fragment,u),o=!1},d(u){u&&w(e),B(t),r=!1,s()}}}function Lp(i){let e,t,n,o,r;function s(l){i[143](l)}let a={hidden:!i[4]&&!i[54],disabled:i[46],click:i[100].toggle,graphIsOpened:i[54]};return i[17].interactiveGraphButton!==void 0&&(a.ref=i[17].interactiveGraphButton),t=new Nl({props:a}),be.push(()=>ze(t,"ref",s)),{c(){e=P("div"),N(t.$$.fragment),f(e,"class",o=zf(i[97]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-s4hj64"),K(e,"fullscreen",i[48]),K(e,"hidden",!i[4]&&!i[54])},m(l,u){k(l,e,u),R(t,e,null),r=!0},p(l,u){let c={};u[0]&16|u[1]&8388608&&(c.hidden=!l[4]&&!l[54]),u[1]&32768&&(c.disabled=l[46]),u[1]&8388608&&(c.graphIsOpened=l[54]),!n&&u[0]&131072&&(n=!0,c.ref=l[17].interactiveGraphButton,Ue(()=>n=!1)),t.$set(c),(!r||u[1]&131072)&&K(e,"fullscreen",l[48]),(!r||u[0]&16|u[1]&8388608)&&K(e,"hidden",!l[4]&&!l[54])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){p(t.$$.fragment,l),r=!1},d(l){l&&w(e),B(t)}}}function w5(i){let e,t,n,o,r,s;function a(u){i[144](u)}let l={hidden:!i[4],disabled:i[42],click:i[14]};return i[17].seekToInteractiveButton!==void 0&&(l.ref=i[17].seekToInteractiveButton),t=new Bl({props:l}),be.push(()=>ze(t,"ref",a)),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","wrapper-middle-right svelte-s4hj64"),K(e,"fullscreen",i[48]),K(e,"hidden",!i[4])},m(u,c){k(u,e,c),R(t,e,null),o=!0,r||(s=ke(e,"click",i[107]),r=!0)},p(u,c){let m={};c[0]&16&&(m.hidden=!u[4]),c[1]&2048&&(m.disabled=u[42]),c[0]&16384&&(m.click=u[14]),!n&&c[0]&131072&&(n=!0,m.ref=u[17].seekToInteractiveButton,Ue(()=>n=!1)),t.$set(m),(!o||c[1]&131072)&&K(e,"fullscreen",u[48]),(!o||c[0]&16)&&K(e,"hidden",!u[4])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){p(t.$$.fragment,u),o=!1},d(u){u&&w(e),B(t),r=!1,s()}}}function Vp(i){let e,t,n,o,r,s=i[49]&&Rp(i),a=i[26]&&Bp(i);return o=new bl({props:{position:i[55],duration:i[56]}}),{c(){s&&s.c(),e=Y(),a&&a.c(),t=Y(),n=P("div"),N(o.$$.fragment),f(n,"class","wrapper-bottom ads-timeline-mobile svelte-s4hj64"),K(n,"fullscreen",i[48])},m(l,u){s&&s.m(l,u),k(l,e,u),a&&a.m(l,u),k(l,t,u),k(l,n,u),R(o,n,null),r=!0},p(l,u){l[49]?s?(s.p(l,u),u[1]&262144&&d(s,1)):(s=Rp(l),s.c(),d(s,1),s.m(e.parentNode,e)):s&&(se(),p(s,1,1,()=>{s=null}),le()),l[26]?a?(a.p(l,u),u[0]&67108864&&d(a,1)):(a=Bp(l),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(se(),p(a,1,1,()=>{a=null}),le());let c={};u[1]&16777216&&(c.position=l[55]),u[1]&33554432&&(c.duration=l[56]),o.$set(c),(!r||u[1]&131072)&&K(n,"fullscreen",l[48])},i(l){r||(d(s),d(a),d(o.$$.fragment,l),r=!0)},o(l){p(s),p(a),p(o.$$.fragment,l),r=!1},d(l){l&&(w(e),w(t),w(n)),s&&s.d(l),a&&a.d(l),B(o)}}}function Rp(i){let e,t,n,o;function r(a){i[145](a)}let s={muted:i[50],expanded:!1,click:i[103]};return i[17].volume!==void 0&&(s.ref=i[17].volume),t=new Tc({props:s}),be.push(()=>ze(t,"ref",r)),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","wrapper-top-right svelte-s4hj64"),K(e,"fullscreen",i[48])},m(a,l){k(a,e,l),R(t,e,null),o=!0},p(a,l){let u={};l[1]&524288&&(u.muted=a[50]),!n&&l[0]&131072&&(n=!0,u.ref=a[17].volume,Ue(()=>n=!1)),t.$set(u),(!o||l[1]&131072)&&K(e,"fullscreen",a[48])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&w(e),B(t)}}}function Bp(i){let e,t,n,o;function r(a){i[146](a)}let s={disabled:i[45],click:i[60],isMobile:!0,isPlaying:!i[26]};return i[17].playButton!==void 0&&(s.ref=i[17].playButton),t=new ds({props:s}),be.push(()=>ze(t,"ref",r)),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","wrapper-middle svelte-s4hj64")},m(a,l){k(a,e,l),R(t,e,null),o=!0},p(a,l){let u={};l[1]&16384&&(u.disabled=a[45]),l[0]&67108864&&(u.isPlaying=!a[26]),!n&&l[0]&131072&&(n=!0,u.ref=a[17].playButton,Ue(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&w(e),B(t)}}}function k5(i){let e,t,n;function o(s){i[147](s)}let r={disabled:i[44],$$slots:{default:[C5]},$$scope:{ctx:i}};return i[17].replayButton!==void 0&&(r.ref=i[17].replayButton),e=new Xi({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[1]&8192&&(l.disabled=s[44]),a[1]&8192|a[5]&16777216&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&131072&&(t=!0,l.ref=s[17].replayButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function C5(i){let e,t;return e=new fs({props:{disabled:i[44],click:i[93]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[1]&8192&&(r.disabled=n[44]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Np(i){let e,t,n;function o(s){i[148](s)}let r={$$slots:{default:[S5]},$$scope:{ctx:i}};return i[17].liveButton!==void 0&&(r.ref=i[17].liveButton),e=new Xi({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[0]&65536|a[1]&1024|a[5]&16777216&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&131072&&(t=!0,l.ref=s[17].liveButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function S5(i){let e,t;return e=new Dl({props:{isLiveActive:i[16],isMobile:!0,ariaLabel:i[41]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&65536&&(r.isLiveActive=n[16]),o[1]&1024&&(r.ariaLabel=n[41]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Dp(i){let e,t,n;function o(s){i[149](s)}let r={showDuration:i[31],position:i[5]?i[55]:i[57],duration:i[5]?i[56]:i[58],isMobile:!0};return i[17].time!==void 0&&(r.ref=i[17].time),e=new dl({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[1]&1&&(l.showDuration=s[31]),a[0]&32|a[1]&83886080&&(l.position=s[5]?s[55]:s[57]),a[0]&32|a[1]&167772160&&(l.duration=s[5]?s[56]:s[58]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].time,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function Op(i){let e,t,n,o;return n=new yl({props:{position:i[57],duration:i[58],timeCodes:i[81]}}),{c(){e=P("div"),e.textContent="\xB7",t=Y(),N(n.$$.fragment),f(e,"aria-hidden","true")},m(r,s){k(r,e,s),k(r,t,s),R(n,r,s),o=!0},p(r,s){let a={};s[1]&67108864&&(a.position=r[57]),s[1]&134217728&&(a.duration=r[58]),n.$set(a)},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){p(n.$$.fragment,r),o=!1},d(r){r&&(w(e),w(t)),B(n,r)}}}function T5(i){let e,t,n=i[39]&&Op(i);return{c(){n&&n.c(),e=$e()},m(o,r){n&&n.m(o,r),k(o,e,r),t=!0},p(o,r){o[39]?n?(n.p(o,r),r[1]&256&&d(n,1)):(n=Op(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(se(),p(n,1,1,()=>{n=null}),le())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function Fp(i){let e,t,n;function o(s){i[151](s)}let r={$$slots:{default:[I5]},$$scope:{ctx:i}};return i[17].settings!==void 0&&(r.ref=i[17].settings),e=new Xi({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[5]&16777216&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&131072&&(t=!0,l.ref=s[17].settings,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function I5(i){let e,t;return e=new as({props:{ref$:i[105]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Hp(i){let e,t,n;function o(s){i[152](s)}let r={$$slots:{default:[P5]},$$scope:{ctx:i}};return i[17].fullscreen!==void 0&&(r.ref=i[17].fullscreen),e=new Xi({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[0]&8192|a[1]&131072|a[5]&16777216&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&131072&&(t=!0,l.ref=s[17].fullscreen,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function P5(i){let e,t;return e=new pl({props:{click:i[13],isFullscreen:i[48]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&8192&&(r.click=n[13]),o[1]&131072&&(r.isFullscreen=n[48]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function E5(i){let e,t,n;function o(s){i[156](s)}let r={};return i[17].interactiveTimeIndicator!==void 0&&(r.ref=i[17].interactiveTimeIndicator),e=new Ll({props:r}),be.push(()=>ze(e,"ref",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&131072&&(t=!0,l.ref=s[17].interactiveTimeIndicator,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function A5(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,I,C,V,S,v=!i[5]&&bp(i),E=i[5]&&i[24]!=="inactive"&&Vp(i),W=i[94]&&k5(i),D=!i[5]&&i[19]&&Np(i),L=i[37]&&Dp(i);function J(z){i[150](z)}let ue={className:"w-max",disabled:!i[39],$$slots:{default:[T5]},$$scope:{ctx:i}};i[17].episodes!==void 0&&(ue.ref=i[17].episodes),u=new Xi({props:ue}),be.push(()=>ze(u,"ref",J));let Q=i[34]&&Fp(i),ee=i[36]&&Hp(i);function X(z){i[154](z)}let x={isAds:i[5],canRewindLive:i[6],isRewindableLive:i[18]};i[17].timeline!==void 0&&(x.ref=i[17].timeline),g=new vl({props:x}),be.push(()=>ze(g,"ref",X));let ce=i[98]&&E5(i);return{c(){v&&v.c(),e=Y(),E&&E.c(),t=Y(),n=P("div"),o=P("div"),r=P("div"),W&&W.c(),s=Y(),D&&D.c(),a=Y(),L&&L.c(),l=Y(),N(u.$$.fragment),m=Y(),Q&&Q.c(),h=Y(),ee&&ee.c(),y=Y(),N(g.$$.fragment),C=Y(),ce&&ce.c(),V=$e(),f(r,"class","controls svelte-s4hj64"),K(r,"mobile",!0),f(o,"class","controls-wrapper svelte-s4hj64"),K(o,"fullscreen",i[48]),f(n,"class","wrapper-bottom svelte-s4hj64"),K(n,"hidden",i[2]),K(n,"controls-hidden",!i[4]),K(n,"no-smooth",i[3]),K(n,"mobile",!0)},m(z,j){v&&v.m(z,j),k(z,e,j),E&&E.m(z,j),k(z,t,j),k(z,n,j),_(n,o),_(o,r),W&&W.m(r,null),_(r,s),D&&D.m(r,null),_(r,a),L&&L.m(r,null),_(r,l),R(u,r,null),_(r,m),Q&&Q.m(r,null),_(r,h),ee&&ee.m(r,null),i[153](r),_(o,y),R(g,o,null),i[155](n),k(z,C,j),ce&&ce.m(z,j),k(z,V,j),S=!0},p(z,j){z[5]?v&&(se(),p(v,1,1,()=>{v=null}),le()):v?(v.p(z,j),j[0]&32&&d(v,1)):(v=bp(z),v.c(),d(v,1),v.m(e.parentNode,e)),z[5]&&z[24]!=="inactive"?E?(E.p(z,j),j[0]&16777248&&d(E,1)):(E=Vp(z),E.c(),d(E,1),E.m(t.parentNode,t)):E&&(se(),p(E,1,1,()=>{E=null}),le()),z[94]&&W.p(z,j),!z[5]&&z[19]?D?(D.p(z,j),j[0]&524320&&d(D,1)):(D=Np(z),D.c(),d(D,1),D.m(r,a)):D&&(se(),p(D,1,1,()=>{D=null}),le()),z[37]?L?(L.p(z,j),j[1]&64&&d(L,1)):(L=Dp(z),L.c(),d(L,1),L.m(r,l)):L&&(se(),p(L,1,1,()=>{L=null}),le());let A={};j[1]&256&&(A.disabled=!z[39]),j[1]&201326848|j[5]&16777216&&(A.$$scope={dirty:j,ctx:z}),!c&&j[0]&131072&&(c=!0,A.ref=z[17].episodes,Ue(()=>c=!1)),u.$set(A),z[34]?Q?(Q.p(z,j),j[1]&8&&d(Q,1)):(Q=Fp(z),Q.c(),d(Q,1),Q.m(r,h)):Q&&(se(),p(Q,1,1,()=>{Q=null}),le()),z[36]?ee?(ee.p(z,j),j[1]&32&&d(ee,1)):(ee=Hp(z),ee.c(),d(ee,1),ee.m(r,null)):ee&&(se(),p(ee,1,1,()=>{ee=null}),le());let de={};j[0]&32&&(de.isAds=z[5]),j[0]&64&&(de.canRewindLive=z[6]),j[0]&262144&&(de.isRewindableLive=z[18]),!I&&j[0]&131072&&(I=!0,de.ref=z[17].timeline,Ue(()=>I=!1)),g.$set(de),(!S||j[1]&131072)&&K(o,"fullscreen",z[48]),(!S||j[0]&4)&&K(n,"hidden",z[2]),(!S||j[0]&16)&&K(n,"controls-hidden",!z[4]),(!S||j[0]&8)&&K(n,"no-smooth",z[3]),z[98]&&ce.p(z,j)},i(z){S||(d(v),d(E),d(W),d(D),d(L),d(u.$$.fragment,z),d(Q),d(ee),d(g.$$.fragment,z),d(ce),S=!0)},o(z){p(v),p(E),p(W),p(D),p(L),p(u.$$.fragment,z),p(Q),p(ee),p(g.$$.fragment,z),p(ce),S=!1},d(z){z&&(w(e),w(t),w(n),w(C),w(V)),v&&v.d(z),E&&E.d(z),W&&W.d(),D&&D.d(),L&&L.d(),B(u),Q&&Q.d(),ee&&ee.d(),i[153](null),B(g),i[155](null),ce&&ce.d(z)}}}function M5(i,e,t){var Li,Kn;let n,o,r,s,a,l,u,c,m,h,y,g,I,C,V,S,v,E,W,D,L,J,ue,Q,ee,X,x,ce,z,j,A,de,$,Ee,ne,ae,Ie,Te,Se,{bottomHidden:rt}=e,{bottomNoSmooth:Pe}=e,{showControls:qe}=e,{playerControlsWrapperRef:te=void 0}=e,{playerControlsRef:_e=void 0}=e,{isAds:Ce=!1}=e,{canRewindLive:xe}=e,{logoClickable:ot}=e,{logoHidden:at}=e,{logoTargetUrl:st=""}=e,{showNextPrevButtons:Je}=e,{nextButtonActive:fe}=e,{prevButtonActive:Ze}=e,{isOneVideoPlaylist:Me=!1}=e,{customFullscreenSupported:De=!0}=e,{endScreenShown:Qe}=e,{playNextVideo:He}=e,{playPrevVideo:ct}=e,{repeatPlaylist:ft}=e,{toggleFullscreen:he}=e,{seekToInteractive:pt}=e,{playPrevChapter:yt}=e,{onDisabledPlayPrevChapterClick:It}=e,{onDisabledSeekToInteractiveClick:kt}=e,Ye=nt(),Gt=Fn(),ii=Bt(),Kt=Ye.actions.internal.toggleMuted,Ht=Ye.actions.internal.togglePlay,Yt=Ye.actions.internal.pause,Nt=(Li=Ye.callbacks)==null?void 0:Li.onAudioDoesNotExistHint,We=(Kn=Ye.callbacks)==null?void 0:Kn.onAudioDisabledHint,et=Ye.playerPhase;q(i,et,ie=>t(129,ue=ie));let Pt=Ye.state.duration$;q(i,Pt,ie=>t(58,Se=ie));let Qt=Ye.state.positionWithScrubbing$;q(i,Qt,ie=>t(57,Te=ie));let Wt=Ye.state.playbackState$;q(i,Wt,ie=>t(123,y=ie));let pe=Ye.state.isAudioAvailable$;q(i,pe,ie=>t(47,g=ie));let Zt=Ye.state.isAudioDisabled,Xt=Ye.state.isEnded$;q(i,Xt,ie=>t(130,ee=ie));let Jt=Ye.state.isLive$;q(i,Jt,ie=>t(19,E=ie));let Vt=Ye.state.muted$;q(i,Vt,ie=>t(50,A=ie));let $t=Ye.state.isActiveLive$;q(i,$t,ie=>t(127,S=ie));let jt=Ye.state.isRewindableLive$;q(i,jt,ie=>t(18,v=ie));let qt=Ye.ui.scrubbingInProgress;q(i,qt,ie=>t(23,Q=ie));let xi=Ye.ui.mobileNotReportControlHidden$;q(i,xi,ie=>t(21,L=ie));let _i=Ye.ui.isPictureInPictureActive$;q(i,_i,ie=>t(20,D=ie));let Ti=Ye.ui.pictureInPictureType$;q(i,Ti,ie=>t(128,W=ie));let Ii=Ye.ui.mobileUnmuteButtonExpanded;q(i,Ii,ie=>t(51,de=ie));let Ut=Ye.ui.mobileUnmuteButtonVisible;q(i,Ut,ie=>t(49,j=ie));let Ri=Ye.ui.settingsMenu.visible$;q(i,Ri,ie=>t(121,m=ie));let Rt=Ye.ui.settingsMenu.openedByBtnKeyboard$;q(i,Rt,ie=>t(120,c=ie));let ci=Ye.ui.controls,wi=Ye.actions.internal.getVideoEpisodes(),ni=Ye.webApi.pictureInPictureApi,ki=Ye.state.chromecastState$;q(i,ki,ie=>t(22,J=ie));let Bi=Ye.state.crashed$;q(i,Bi,ie=>t(53,Ee=ie));let Ae=ci.disabledControls$;q(i,Ae,ie=>t(131,x=ie));let it=Ye.ui.startedByKeyboard$;q(i,it,ie=>t(119,u=ie));let Mt=Ye.ui.currentGridType$;q(i,Mt,ie=>t(126,V=ie));let Ci=Ye.ads.duration;q(i,Ci,ie=>t(56,Ie=ie));let Si=Ye.ads.position;q(i,Si,ie=>t(55,ae=ie));let zt=Ye.ads.playbackState;q(i,zt,ie=>t(24,X=ie));let Pi=Ye.ui.isFullscreen;q(i,Pi,ie=>t(48,z=ie));let hi=Ye.ui.playerSize;q(i,hi,ie=>t(125,C=ie));let $i=Ye.ui.additionalButtonsDeprecated$;q(i,$i,ie=>t(52,$=ie));let xt=Ye.actions.internal.getVideoElement,fn=Ye.actions.internal.replayInteractive,Ei=Ye.state.isInteractive,dn=Ye.state.isInteractiveTime$;q(i,dn,ie=>t(124,I=ie));let mn=Ye.state.showInteractiveGraph,pn=Ye.state.showSeekToInteractive,Ni=Ye.state.showPlayPrevChapter,Ki=Ye.state.showInteractiveTimeIndicator,ai=Gt.seekToInteractiveDisabledTooltip$;q(i,ai,ie=>t(132,ce=ie));let en=Gt.graphIsOpened$;q(i,en,ie=>t(54,ne=ie));let ji,Di,In,gi,Oi,Fi,_n,Ai,Hi,Mi,Dt,oi,fi,qi,hn,lt,Ui,di,zi,Gi,Yi,Ge={},Un=b5(Al,260),gn=()=>Ye.actions.internal.toggleChromecast();function bn(){Fo({isAudioDisabled:Zt,audioDisabledHintCallback:We,isAudioAvailable:g,audioIsNotExistHintCallback:Nt})&&Kt()}function tn(){return mt(this,null,function*(){ni!=null&&ni.isActive()?yield ni==null?void 0:ni.remove():yield ni==null?void 0:ni.request()})}function nn(){!Zt&&g&&Ut.set(!1),bn()}let on=Me?Ht:ft,rn="",bi=(ie,to)=>{if(!ie){t(41,rn=G("tooltip_live"));return}to===hp.PAUSED&&t(41,rn=G("tooltip_play"))},Pn,vn=Ne();q(i,vn,ie=>t(122,h=ie));let zn=()=>{l&&It(ji)},sn=()=>{r&&kt(Di)};function yn(ie){i.$$.not_equal(Ge.volume,ie)&&(Ge.volume=ie,t(17,Ge))}function wn(ie){i.$$.not_equal(Ge.autoplayNextToggle,ie)&&(Ge.autoplayNextToggle=ie,t(17,Ge))}function En(ie){i.$$.not_equal(Ge.chromecast,ie)&&(Ge.chromecast=ie,t(17,Ge))}function An(ie){i.$$.not_equal(Ge.pip,ie)&&(Ge.pip=ie,t(17,Ge))}function ln(ie){i.$$.not_equal(Ge.vkLogo,ie)&&(Ge.vkLogo=ie,t(17,Ge))}function Mn(ie){i.$$.not_equal(Ge.prevButton,ie)&&(Ge.prevButton=ie,t(17,Ge))}function an(ie){i.$$.not_equal(Ge.playButton,ie)&&(Ge.playButton=ie,t(17,Ge))}function ao(ie){i.$$.not_equal(Ge.replayButton,ie)&&(Ge.replayButton=ie,t(17,Ge))}function uo(ie){i.$$.not_equal(Ge.nextButton,ie)&&(Ge.nextButton=ie,t(17,Ge))}function co(ie){i.$$.not_equal(Ge.playPrevChapterButton,ie)&&(Ge.playPrevChapterButton=ie,t(17,Ge))}function mi(ie){i.$$.not_equal(Ge.interactiveGraphButton,ie)&&(Ge.interactiveGraphButton=ie,t(17,Ge))}function Wn(ie){i.$$.not_equal(Ge.seekToInteractiveButton,ie)&&(Ge.seekToInteractiveButton=ie,t(17,Ge))}function Zn(ie){i.$$.not_equal(Ge.volume,ie)&&(Ge.volume=ie,t(17,Ge))}function Xn(ie){i.$$.not_equal(Ge.playButton,ie)&&(Ge.playButton=ie,t(17,Ge))}function xn(ie){i.$$.not_equal(Ge.replayButton,ie)&&(Ge.replayButton=ie,t(17,Ge))}function Jn(ie){i.$$.not_equal(Ge.liveButton,ie)&&(Ge.liveButton=ie,t(17,Ge))}function Qi(ie){i.$$.not_equal(Ge.time,ie)&&(Ge.time=ie,t(17,Ge))}function kn(ie){i.$$.not_equal(Ge.episodes,ie)&&(Ge.episodes=ie,t(17,Ge))}function $n(ie){i.$$.not_equal(Ge.settings,ie)&&(Ge.settings=ie,t(17,Ge))}function eo(ie){i.$$.not_equal(Ge.fullscreen,ie)&&(Ge.fullscreen=ie,t(17,Ge))}function fo(ie){be[ie?"unshift":"push"](()=>{_e=ie,t(1,_e)})}function oe(ie){i.$$.not_equal(Ge.timeline,ie)&&(Ge.timeline=ie,t(17,Ge))}function Ct(ie){be[ie?"unshift":"push"](()=>{te=ie,t(0,te)})}function un(ie){i.$$.not_equal(Ge.interactiveTimeIndicator,ie)&&(Ge.interactiveTimeIndicator=ie,t(17,Ge))}return i.$$set=ie=>{"bottomHidden"in ie&&t(2,rt=ie.bottomHidden),"bottomNoSmooth"in ie&&t(3,Pe=ie.bottomNoSmooth),"showControls"in ie&&t(4,qe=ie.showControls),"playerControlsWrapperRef"in ie&&t(0,te=ie.playerControlsWrapperRef),"playerControlsRef"in ie&&t(1,_e=ie.playerControlsRef),"isAds"in ie&&t(5,Ce=ie.isAds),"canRewindLive"in ie&&t(6,xe=ie.canRewindLive),"logoClickable"in ie&&t(7,ot=ie.logoClickable),"logoHidden"in ie&&t(108,at=ie.logoHidden),"logoTargetUrl"in ie&&t(8,st=ie.logoTargetUrl),"showNextPrevButtons"in ie&&t(9,Je=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(109,fe=ie.nextButtonActive),"prevButtonActive"in ie&&t(110,Ze=ie.prevButtonActive),"isOneVideoPlaylist"in ie&&t(111,Me=ie.isOneVideoPlaylist),"customFullscreenSupported"in ie&&t(112,De=ie.customFullscreenSupported),"endScreenShown"in ie&&t(10,Qe=ie.endScreenShown),"playNextVideo"in ie&&t(11,He=ie.playNextVideo),"playPrevVideo"in ie&&t(12,ct=ie.playPrevVideo),"repeatPlaylist"in ie&&t(113,ft=ie.repeatPlaylist),"toggleFullscreen"in ie&&t(13,he=ie.toggleFullscreen),"seekToInteractive"in ie&&t(14,pt=ie.seekToInteractive),"playPrevChapter"in ie&&t(15,yt=ie.playPrevChapter),"onDisabledPlayPrevChapterClick"in ie&&t(114,It=ie.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ie&&t(115,kt=ie.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&256&&(Di=G(ce)),i.$$.dirty[4]&128&&t(118,n=x.has("EPISODE_BUTTON")),i.$$.dirty[4]&128&&t(46,o=x.has("GRAPH_BUTTON")),i.$$.dirty[4]&128&&t(42,r=x.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[4]&128&&t(45,s=x.has("PLAY_BUTTON")),i.$$.dirty[4]&128&&t(44,a=x.has("REPLAY_BUTTON")),i.$$.dirty[4]&128&&t(43,l=x.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[3]&1073741824&&t(25,In=y===hp.PLAYING),i.$$.dirty[0]&16777216&&t(26,gi=X==="paused"),i.$$.dirty[0]&32|i.$$.dirty[4]&64&&t(27,Oi=ee&&!Ce&&!Ei),i.$$.dirty[0]&32|i.$$.dirty[4]&64&&t(28,Fi=!ee||Ce),i.$$.dirty[0]&544|i.$$.dirty[3]&131072&&t(29,_n=Je&&!Ce&&Ze),i.$$.dirty[0]&544|i.$$.dirty[3]&65536&&t(30,Ai=Je&&!Ce&&fe),i.$$.dirty[4]&2&&t(116,Hi=C.width>300),i.$$.dirty[4]&2&&t(31,Mi=C.width>400),i.$$.dirty[0]&8388608&&t(117,Dt=Q),i.$$.dirty[0]&7340032|i.$$.dirty[4]&16&&t(32,oi=J!==_p.NOT_AVAILABLE&&!(D&&W===1)&&!L&&!Ei),i.$$.dirty[0]&6291456|i.$$.dirty[3]&16777216|i.$$.dirty[4]&48){let ie=ue==="LiveWaitingStart";t(33,fi=!!ni&&J!==_p.CONNECTED&&!L&&(W===1&&ie||!ie)&&!Dt&&!Ei)}i.$$.dirty[3]&16777216|i.$$.dirty[4]&4&&t(34,qi=!Dt&&yi(V,"s")),i.$$.dirty[3]&32768|i.$$.dirty[4]&2&&t(35,hn=!at&&C.width>350),i.$$.dirty[0]&1048576|i.$$.dirty[3]&17301504|i.$$.dirty[4]&16&&t(36,lt=ii.features.fullscreen&&!(D&&W===1)&&(Ei?De:!0)&&!Dt),i.$$.dirty[0]&524320|i.$$.dirty[3]&16777216|i.$$.dirty[4]&2&&t(37,Ui=(!E||Ce)&&C.width>260&&!Dt&&!(ii.features.interactiveHideTime&&Ei)),i.$$.dirty[0]&16|i.$$.dirty[3]&268435456&&t(38,di=m||qe),i.$$.dirty[0]&524320|i.$$.dirty[3]&58720256&&t(39,zi=!Ce&&!E&&!!(wi!=null&&wi.length)&&Hi&&!n&&!Dt),i.$$.dirty[0]&262144|i.$$.dirty[4]&8&&t(16,Gi=!v||S),i.$$.dirty[4]&4&&t(40,Yi=mn&&yi(V,"m")),i.$$.dirty[0]&131088|i.$$.dirty[4]&3&&Un(xt(),ci,Ge,qe),i.$$.dirty[0]&65536|i.$$.dirty[3]&1073741824&&bi(Gi,y),i.$$.dirty[3]&805306368&&h&&Ar(h,m,Rt),i.$$.dirty[3]&402653184&&vo(Pn,m,c),i.$$.dirty[0]&131072|i.$$.dirty[3]&67108864&&Ml(it,u,Ge.playButton)},ji=G(Ye.state.playPrevChapterDisabledTooltip),[te,_e,rt,Pe,qe,Ce,xe,ot,st,Je,Qe,He,ct,he,pt,yt,Gi,Ge,v,E,D,L,J,Q,X,In,gi,Oi,Fi,_n,Ai,Mi,oi,fi,qi,hn,lt,Ui,di,zi,Yi,rn,r,l,a,s,o,g,z,j,A,de,$,Ee,ne,ae,Ie,Te,Se,ii,Ht,Yt,et,Pt,Qt,Wt,pe,Zt,Xt,Jt,Vt,$t,jt,qt,xi,_i,Ti,Ii,Ut,Ri,Rt,wi,ki,Bi,Ae,it,Mt,Ci,Si,zt,Pi,hi,$i,fn,Ei,dn,pn,Ni,Ki,ai,en,gn,tn,nn,on,vn,zn,sn,at,fe,Ze,Me,De,ft,It,kt,Hi,Dt,n,u,c,m,h,y,I,C,V,S,W,ue,ee,x,ce,yn,wn,En,An,ln,Mn,an,ao,uo,co,mi,Wn,Zn,Xn,xn,Jn,Qi,kn,$n,eo,fo,oe,Ct,un]}var Mc=class extends H{constructor(e){super(),U(this,e,M5,A5,F,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:7,logoHidden:108,logoTargetUrl:8,showNextPrevButtons:9,nextButtonActive:109,prevButtonActive:110,isOneVideoPlaylist:111,customFullscreenSupported:112,endScreenShown:10,playNextVideo:11,playPrevVideo:12,repeatPlaylist:113,toggleFullscreen:13,seekToInteractive:14,playPrevChapter:15,onDisabledPlayPrevChapterClick:114,onDisabledSeekToInteractiveClick:115},v5,[-1,-1,-1,-1,-1,-1])}},qp=Mc;function zp(i){let e,t,n,o,r=[V5,L5],s=[];function a(l,u){return l[25]?0:1}return e=a(i,[-1,-1]),t=s[e]=r[e](i),{c(){t.c(),n=$e()},m(l,u){s[e].m(l,u),k(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(se(),p(s[c],1,1,()=>{s[c]=null}),le(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),s[e].d(l)}}}function L5(i){let e,t,n,o;function r(l){i[29](l)}function s(l){i[30](l)}let a={bottomHidden:i[2],bottomNoSmooth:i[3],showControls:i[4],isAds:i[5],canRewindLive:i[6],logoClickable:i[7],logoHidden:i[8],logoTargetUrl:i[9],showNextPrevButtons:i[10],nextButtonActive:i[11],prevButtonActive:i[12],isOneVideoPlaylist:i[13],customFullscreenSupported:i[14],playNextVideo:i[16],playPrevVideo:i[17],repeatPlaylist:i[18],toggleFullscreen:i[19],seekToInteractive:i[20],playPrevChapter:i[21]};return i[0]!==void 0&&(a.playerControlsWrapperRef=i[0]),i[1]!==void 0&&(a.playerControlsRef=i[1]),e=new sp({props:a}),be.push(()=>ze(e,"playerControlsWrapperRef",r)),be.push(()=>ze(e,"playerControlsRef",s)),{c(){N(e.$$.fragment)},m(l,u){R(e,l,u),o=!0},p(l,u){let c={};u[0]&4&&(c.bottomHidden=l[2]),u[0]&8&&(c.bottomNoSmooth=l[3]),u[0]&16&&(c.showControls=l[4]),u[0]&32&&(c.isAds=l[5]),u[0]&64&&(c.canRewindLive=l[6]),u[0]&128&&(c.logoClickable=l[7]),u[0]&256&&(c.logoHidden=l[8]),u[0]&512&&(c.logoTargetUrl=l[9]),u[0]&1024&&(c.showNextPrevButtons=l[10]),u[0]&2048&&(c.nextButtonActive=l[11]),u[0]&4096&&(c.prevButtonActive=l[12]),u[0]&8192&&(c.isOneVideoPlaylist=l[13]),u[0]&16384&&(c.customFullscreenSupported=l[14]),u[0]&65536&&(c.playNextVideo=l[16]),u[0]&131072&&(c.playPrevVideo=l[17]),u[0]&262144&&(c.repeatPlaylist=l[18]),u[0]&524288&&(c.toggleFullscreen=l[19]),u[0]&1048576&&(c.seekToInteractive=l[20]),u[0]&2097152&&(c.playPrevChapter=l[21]),!t&&u[0]&1&&(t=!0,c.playerControlsWrapperRef=l[0],Ue(()=>t=!1)),!n&&u[0]&2&&(n=!0,c.playerControlsRef=l[1],Ue(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){B(e,l)}}}function V5(i){let e,t,n,o;function r(l){i[27](l)}function s(l){i[28](l)}let a={bottomHidden:i[2],bottomNoSmooth:i[3],showControls:i[4],isAds:i[5],canRewindLive:i[6],logoClickable:i[7],logoHidden:i[8],logoTargetUrl:i[9],showNextPrevButtons:i[10],nextButtonActive:i[11],prevButtonActive:i[12],isOneVideoPlaylist:i[13],customFullscreenSupported:i[14],endScreenShown:i[15],playNextVideo:i[16],playPrevVideo:i[17],repeatPlaylist:i[18],toggleFullscreen:i[19],seekToInteractive:i[20],playPrevChapter:i[21],onDisabledPlayPrevChapterClick:i[22],onDisabledSeekToInteractiveClick:i[23]};return i[0]!==void 0&&(a.playerControlsWrapperRef=i[0]),i[1]!==void 0&&(a.playerControlsRef=i[1]),e=new qp({props:a}),be.push(()=>ze(e,"playerControlsWrapperRef",r)),be.push(()=>ze(e,"playerControlsRef",s)),{c(){N(e.$$.fragment)},m(l,u){R(e,l,u),o=!0},p(l,u){let c={};u[0]&4&&(c.bottomHidden=l[2]),u[0]&8&&(c.bottomNoSmooth=l[3]),u[0]&16&&(c.showControls=l[4]),u[0]&32&&(c.isAds=l[5]),u[0]&64&&(c.canRewindLive=l[6]),u[0]&128&&(c.logoClickable=l[7]),u[0]&256&&(c.logoHidden=l[8]),u[0]&512&&(c.logoTargetUrl=l[9]),u[0]&1024&&(c.showNextPrevButtons=l[10]),u[0]&2048&&(c.nextButtonActive=l[11]),u[0]&4096&&(c.prevButtonActive=l[12]),u[0]&8192&&(c.isOneVideoPlaylist=l[13]),u[0]&16384&&(c.customFullscreenSupported=l[14]),u[0]&32768&&(c.endScreenShown=l[15]),u[0]&65536&&(c.playNextVideo=l[16]),u[0]&131072&&(c.playPrevVideo=l[17]),u[0]&262144&&(c.repeatPlaylist=l[18]),u[0]&524288&&(c.toggleFullscreen=l[19]),u[0]&1048576&&(c.seekToInteractive=l[20]),u[0]&2097152&&(c.playPrevChapter=l[21]),u[0]&4194304&&(c.onDisabledPlayPrevChapterClick=l[22]),u[0]&8388608&&(c.onDisabledSeekToInteractiveClick=l[23]),!t&&u[0]&1&&(t=!0,c.playerControlsWrapperRef=l[0],Ue(()=>t=!1)),!n&&u[0]&2&&(n=!0,c.playerControlsRef=l[1],Ue(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){B(e,l)}}}function R5(i){let e,t,n=i[24]&&zp(i);return{c(){n&&n.c(),e=$e()},m(o,r){n&&n.m(o,r),k(o,e,r),t=!0},p(o,r){o[24]?n?(n.p(o,r),r[0]&16777216&&d(n,1)):(n=zp(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(se(),p(n,1,1,()=>{n=null}),le())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function B5(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:r=!1}=e,{showControls:s}=e,{playerControlsWrapperRef:a=void 0}=e,{playerControlsRef:l=void 0}=e,{isAds:u=!1}=e,{canRewindLive:c}=e,{logoClickable:m}=e,{logoHidden:h}=e,{logoTargetUrl:y=""}=e,{showNextPrevButtons:g}=e,{nextButtonActive:I}=e,{prevButtonActive:C}=e,{isOneVideoPlaylist:V=!1}=e,{customFullscreenSupported:S=!0}=e,{endScreenShown:v=!1}=e,{playNextVideo:E}=e,{playPrevVideo:W}=e,{repeatPlaylist:D}=e,{toggleFullscreen:L}=e,{seekToInteractive:J}=e,{playPrevChapter:ue}=e,{onDisabledPlayPrevChapterClick:Q=Up}=e,{onDisabledSeekToInteractiveClick:ee=Up}=e,x=nt().ui.isMobile;q(i,x,$=>t(25,n=$));let ce=!1;Ft(()=>{let $=setTimeout(()=>t(24,ce=!0),0);return()=>clearTimeout($)});function z($){a=$,t(0,a)}function j($){l=$,t(1,l)}function A($){a=$,t(0,a)}function de($){l=$,t(1,l)}return i.$$set=$=>{"bottomHidden"in $&&t(2,o=$.bottomHidden),"bottomNoSmooth"in $&&t(3,r=$.bottomNoSmooth),"showControls"in $&&t(4,s=$.showControls),"playerControlsWrapperRef"in $&&t(0,a=$.playerControlsWrapperRef),"playerControlsRef"in $&&t(1,l=$.playerControlsRef),"isAds"in $&&t(5,u=$.isAds),"canRewindLive"in $&&t(6,c=$.canRewindLive),"logoClickable"in $&&t(7,m=$.logoClickable),"logoHidden"in $&&t(8,h=$.logoHidden),"logoTargetUrl"in $&&t(9,y=$.logoTargetUrl),"showNextPrevButtons"in $&&t(10,g=$.showNextPrevButtons),"nextButtonActive"in $&&t(11,I=$.nextButtonActive),"prevButtonActive"in $&&t(12,C=$.prevButtonActive),"isOneVideoPlaylist"in $&&t(13,V=$.isOneVideoPlaylist),"customFullscreenSupported"in $&&t(14,S=$.customFullscreenSupported),"endScreenShown"in $&&t(15,v=$.endScreenShown),"playNextVideo"in $&&t(16,E=$.playNextVideo),"playPrevVideo"in $&&t(17,W=$.playPrevVideo),"repeatPlaylist"in $&&t(18,D=$.repeatPlaylist),"toggleFullscreen"in $&&t(19,L=$.toggleFullscreen),"seekToInteractive"in $&&t(20,J=$.seekToInteractive),"playPrevChapter"in $&&t(21,ue=$.playPrevChapter),"onDisabledPlayPrevChapterClick"in $&&t(22,Q=$.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in $&&t(23,ee=$.onDisabledSeekToInteractiveClick)},[a,l,o,r,s,u,c,m,h,y,g,I,C,V,S,v,E,W,D,L,J,ue,Q,ee,ce,n,x,z,j,A,de]}var Lc=class extends H{constructor(e){super(),U(this,e,B5,R5,F,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:7,logoHidden:8,logoTargetUrl:9,showNextPrevButtons:10,nextButtonActive:11,prevButtonActive:12,isOneVideoPlaylist:13,customFullscreenSupported:14,endScreenShown:15,playNextVideo:16,playPrevVideo:17,repeatPlaylist:18,toggleFullscreen:19,seekToInteractive:20,playPrevChapter:21,onDisabledPlayPrevChapterClick:22,onDisabledSeekToInteractiveClick:23},null,[-1,-1])}},Ol=Lc;function N5(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,I=i[2].default,C=Le(I,i,i[1],null),V=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],S={};for(let v=0;v<V.length;v+=1)S=re(S,V[v]);return{c(){e=O("svg"),C&&C.c(),t=O("g"),n=O("path"),o=O("path"),r=O("defs"),s=O("filter"),a=O("feFlood"),l=O("feColorMatrix"),u=O("feOffset"),c=O("feGaussianBlur"),m=O("feColorMatrix"),h=O("feBlend"),y=O("feBlend"),f(n,"fill","#fff"),f(n,"d","M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_100684"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2260_100684"),f(y,"result","shape"),f(s,"id","a"),f(s,"width","43.996"),f(s,"height","49.5"),f(s,"x","2.5"),f(s,"y","0"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),ye(e,S)},m(v,E){k(v,e,E),C&&C.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,y),g=!0},p(v,[E]){C&&C.p&&(!g||E&2)&&Re(C,I,v,v[1],g?Ve(I,v[1],E,null):Be(v[1]),null),ye(e,S=Fe(V,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},E&1&&v[0]]))},i(v){g||(d(C,v),g=!0)},o(v){p(C,v),g=!1},d(v){v&&w(e),C&&C.d(v)}}}function D5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Vc=class extends H{constructor(e){super(),U(this,e,D5,N5,F,{})}},Wp=Vc;function O5(i){let e,t;return e=new Wp({props:{style:i[0]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function F5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Rc=class extends H{constructor(e){super(),U(this,e,F5,O5,F,{reversed:1})}},xp=Rc;function H5(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,I,C,V=i[2].default,S=Le(V,i,i[1],null),v=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},i[0]],E={};for(let W=0;W<v.length;W+=1)E=re(E,v[W]);return{c(){e=O("svg"),S&&S.c(),t=O("g"),n=O("path"),o=O("path"),r=O("defs"),s=O("clipPath"),a=O("path"),l=O("filter"),u=O("feFlood"),c=O("feColorMatrix"),m=O("feOffset"),h=O("feGaussianBlur"),y=O("feColorMatrix"),g=O("feBlend"),I=O("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22"),f(n,"clip-rule","evenodd"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(a,"fill","#fff"),f(a,"d","M0 0h48v48H0z"),f(s,"id","c"),f(u,"flood-opacity","0"),f(u,"result","BackgroundImageFix"),f(c,"in","SourceAlpha"),f(c,"result","hardAlpha"),f(c,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(h,"stdDeviation","2.5"),f(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(g,"in2","BackgroundImageFix"),f(g,"result","effect1_dropShadow_2260_104204"),f(I,"in","SourceGraphic"),f(I,"in2","effect1_dropShadow_2260_104204"),f(I,"result","shape"),f(l,"id","a"),f(l,"width","51"),f(l,"height","45"),f(l,"x","-1.5"),f(l,"y","1.5"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),ye(e,E)},m(W,D){k(W,e,D),S&&S.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(r,l),_(l,u),_(l,c),_(l,m),_(l,h),_(l,y),_(l,g),_(l,I),C=!0},p(W,[D]){S&&S.p&&(!C||D&2)&&Re(S,V,W,W[1],C?Ve(V,W[1],D,null):Be(W[1]),null),ye(e,E=Fe(v,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},D&1&&W[0]]))},i(W){C||(d(S,W),C=!0)},o(W){p(S,W),C=!1},d(W){W&&w(e),S&&S.d(W)}}}function q5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Bc=class extends H{constructor(e){super(),U(this,e,q5,H5,F,{})}},Kp=Bc;function U5(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,I,C,V,S=i[2].default,v=Le(S,i,i[1],null),E=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},i[0]],W={};for(let D=0;D<E.length;D+=1)W=re(W,E[D]);return{c(){e=O("svg"),v&&v.c(),t=O("g"),n=O("path"),o=O("path"),r=O("path"),s=O("defs"),a=O("clipPath"),l=O("path"),u=O("filter"),c=O("feFlood"),m=O("feColorMatrix"),h=O("feOffset"),y=O("feGaussianBlur"),g=O("feColorMatrix"),I=O("feBlend"),C=O("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"),f(r,"stroke","#000"),f(r,"stroke-opacity",".12"),f(r,"stroke-width",".5"),f(r,"d","M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(l,"fill","#fff"),f(l,"d","M0 0h48v48H0z"),f(a,"id","c"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(y,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(I,"in2","BackgroundImageFix"),f(I,"result","effect1_dropShadow_2260_104293"),f(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_2260_104293"),f(C,"result","shape"),f(u,"id","a"),f(u,"width","51"),f(u,"height","51"),f(u,"x","-1.5"),f(u,"y","-1.5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),ye(e,W)},m(D,L){k(D,e,L),v&&v.m(e,null),_(e,t),_(t,n),_(t,o),_(t,r),_(e,s),_(s,a),_(a,l),_(s,u),_(u,c),_(u,m),_(u,h),_(u,y),_(u,g),_(u,I),_(u,C),V=!0},p(D,[L]){v&&v.p&&(!V||L&2)&&Re(v,S,D,D[1],V?Ve(S,D[1],L,null):Be(D[1]),null),ye(e,W=Fe(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},L&1&&D[0]]))},i(D){V||(d(v,D),V=!0)},o(D){p(v,D),V=!1},d(D){D&&w(e),v&&v.d(D)}}}function z5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Nc=class extends H{constructor(e){super(),U(this,e,z5,U5,F,{})}},jp=Nc;function W5(i){let e,t;return e=new Kp({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function x5(i){let e,t;return e=new jp({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function K5(i){let e,t,n,o,r=[x5,W5],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=$e()},m(l,u){s[e].m(l,u),k(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e!==c&&(se(),p(s[c],1,1,()=>{s[c]=null}),le(),t=s[e],t||(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),s[e].d(l)}}}function j5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Dc=class extends H{constructor(e){super(),U(this,e,j5,K5,F,{isOff:0})}},Oc=Dc;function G5(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,I=i[2].default,C=Le(I,i,i[1],null),V=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},i[0]],S={};for(let v=0;v<V.length;v+=1)S=re(S,V[v]);return{c(){e=O("svg"),C&&C.c(),t=O("g"),n=O("path"),o=O("path"),r=O("defs"),s=O("filter"),a=O("feFlood"),l=O("feColorMatrix"),u=O("feOffset"),c=O("feGaussianBlur"),m=O("feColorMatrix"),h=O("feBlend"),y=O("feBlend"),f(n,"fill","#fff"),f(n,"d","M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_106627"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2260_106627"),f(y,"result","shape"),f(s,"id","a"),f(s,"width","40.098"),f(s,"height","27.785"),f(s,"x","3.402"),f(s,"y","10.105"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),ye(e,S)},m(v,E){k(v,e,E),C&&C.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,y),g=!0},p(v,[E]){C&&C.p&&(!g||E&2)&&Re(C,I,v,v[1],g?Ve(I,v[1],E,null):Be(v[1]),null),ye(e,S=Fe(V,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},E&1&&v[0]]))},i(v){g||(d(C,v),g=!0)},o(v){p(C,v),g=!1},d(v){v&&w(e),C&&C.d(v)}}}function Y5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Fc=class extends H{constructor(e){super(),U(this,e,Y5,G5,F,{})}},Gp=Fc;function Q5(i){let e,t;return e=new Gp({props:{style:i[0]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Z5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Hc=class extends H{constructor(e){super(),U(this,e,Z5,Q5,F,{reversed:1})}},Yp=Hc;function X5(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,I=i[2].default,C=Le(I,i,i[1],null),V=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},i[0]],S={};for(let v=0;v<V.length;v+=1)S=re(S,V[v]);return{c(){e=O("svg"),C&&C.c(),t=O("g"),n=O("path"),o=O("path"),r=O("defs"),s=O("filter"),a=O("feFlood"),l=O("feColorMatrix"),u=O("feOffset"),c=O("feGaussianBlur"),m=O("feColorMatrix"),h=O("feBlend"),y=O("feBlend"),f(n,"fill","#fff"),f(n,"d","M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2340_106922"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2340_106922"),f(y,"result","shape"),f(s,"id","a"),f(s,"width","37"),f(s,"height","37"),f(s,"x","5.5"),f(s,"y","5.5"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),ye(e,S)},m(v,E){k(v,e,E),C&&C.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,y),g=!0},p(v,[E]){C&&C.p&&(!g||E&2)&&Re(C,I,v,v[1],g?Ve(I,v[1],E,null):Be(v[1]),null),ye(e,S=Fe(V,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},E&1&&v[0]]))},i(v){g||(d(C,v),g=!0)},o(v){p(C,v),g=!1},d(v){v&&w(e),C&&C.d(v)}}}function J5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var qc=class extends H{constructor(e){super(),U(this,e,J5,X5,F,{})}},Qp=qc;function $5(i){let e,t;return e=new Qp({props:{style:i[0]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function e6(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Uc=class extends H{constructor(e){super(),U(this,e,e6,$5,F,{reversed:1})}},Zp=Uc;function t6(i){ge(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 Xp(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,r,s,a,l,u=["RATE_DOWN","RATE_UP"].includes(i[4]),c,m=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),h,y,g,I,C,V=t&&Jp(i),S=i[4]==="PAUSE"&&$p(i),v=i[4]==="PLAY"&&e0(i),E=i[4]==="REPLAY"&&t0(i),W=i[4]==="SUBTITLES_OFF"&&i0(i),D=i[4]==="SUBTITLES_ON"&&n0(i),L=u&&o0(i),J=m&&r0(i),ue=i[4]==="MUTE"&&s0(i),Q=i[4]==="VOLUME"&&l0(i),ee=i[5]&&a0(i);return{c(){e=P("div"),V&&V.c(),n=Y(),S&&S.c(),o=Y(),v&&v.c(),r=Y(),E&&E.c(),s=Y(),W&&W.c(),a=Y(),D&&D.c(),l=Y(),L&&L.c(),c=Y(),J&&J.c(),h=Y(),ue&&ue.c(),y=Y(),Q&&Q.c(),g=Y(),ee&&ee.c(),I=$e(),f(e,"class","svelte-1ad3n06")},m(X,x){k(X,e,x),V&&V.m(e,null),_(e,n),S&&S.m(e,null),_(e,o),v&&v.m(e,null),_(e,r),E&&E.m(e,null),_(e,s),W&&W.m(e,null),_(e,a),D&&D.m(e,null),_(e,l),L&&L.m(e,null),_(e,c),J&&J.m(e,null),_(e,h),ue&&ue.m(e,null),_(e,y),Q&&Q.m(e,null),k(X,g,x),ee&&ee.m(X,x),k(X,I,x),C=!0},p(X,x){x&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(X[4])),t?V?(V.p(X,x),x&16&&d(V,1)):(V=Jp(X),V.c(),d(V,1),V.m(e,n)):V&&(se(),p(V,1,1,()=>{V=null}),le()),X[4]==="PAUSE"?S?x&16&&d(S,1):(S=$p(X),S.c(),d(S,1),S.m(e,o)):S&&(se(),p(S,1,1,()=>{S=null}),le()),X[4]==="PLAY"?v?x&16&&d(v,1):(v=e0(X),v.c(),d(v,1),v.m(e,r)):v&&(se(),p(v,1,1,()=>{v=null}),le()),X[4]==="REPLAY"?E?x&16&&d(E,1):(E=t0(X),E.c(),d(E,1),E.m(e,s)):E&&(se(),p(E,1,1,()=>{E=null}),le()),X[4]==="SUBTITLES_OFF"?W?x&16&&d(W,1):(W=i0(X),W.c(),d(W,1),W.m(e,a)):W&&(se(),p(W,1,1,()=>{W=null}),le()),X[4]==="SUBTITLES_ON"?D?x&16&&d(D,1):(D=n0(X),D.c(),d(D,1),D.m(e,l)):D&&(se(),p(D,1,1,()=>{D=null}),le()),x&16&&(u=["RATE_DOWN","RATE_UP"].includes(X[4])),u?L?(L.p(X,x),x&16&&d(L,1)):(L=o0(X),L.c(),d(L,1),L.m(e,c)):L&&(se(),p(L,1,1,()=>{L=null}),le()),x&16&&(m=["EPISODE_PREV","EPISODE_NEXT"].includes(X[4])),m?J?(J.p(X,x),x&16&&d(J,1)):(J=r0(X),J.c(),d(J,1),J.m(e,h)):J&&(se(),p(J,1,1,()=>{J=null}),le()),X[4]==="MUTE"?ue?x&16&&d(ue,1):(ue=s0(X),ue.c(),d(ue,1),ue.m(e,y)):ue&&(se(),p(ue,1,1,()=>{ue=null}),le()),X[4]==="VOLUME"?Q?x&16&&d(Q,1):(Q=l0(X),Q.c(),d(Q,1),Q.m(e,null)):Q&&(se(),p(Q,1,1,()=>{Q=null}),le()),X[5]?ee?ee.p(X,x):(ee=a0(X),ee.c(),ee.m(I.parentNode,I)):ee&&(ee.d(1),ee=null)},i(X){C||(d(V),d(S),d(v),d(E),d(W),d(D),d(L),d(J),d(ue),d(Q),C=!0)},o(X){p(V),p(S),p(v),p(E),p(W),p(D),p(L),p(J),p(ue),p(Q),C=!1},d(X){X&&(w(e),w(g),w(I)),V&&V.d(),S&&S.d(),v&&v.d(),E&&E.d(),W&&W.d(),D&&D.d(),L&&L.d(),J&&J.d(),ue&&ue.d(),Q&&Q.d(),ee&&ee.d(X)}}}function Jp(i){let e,t;return e=new xp({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="FORWARD_SEEK"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function $p(i){let e,t;return e=new qr({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function e0(i){let e,t;return e=new Wo({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function t0(i){let e,t;return e=new Vl({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function i0(i){let e,t;return e=new Oc({props:{isOff:!0}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function n0(i){let e,t;return e=new Oc({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function o0(i){let e,t;return e=new Yp({props:{reversed:i[4]==="RATE_UP"}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="RATE_UP"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function r0(i){let e,t;return e=new Zp({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="EPISODE_NEXT"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function s0(i){let e,t;return e=new dr({props:{volume:0}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function l0(i){let e,t;return e=new dr({props:{volume:1}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function a0(i){let e,t;return{c(){e=P("span"),t=Oe(i[5]),f(e,"class","hot-key-helpers-text svelte-1ad3n06")},m(n,o){k(n,e,o),_(e,t)},p(n,o){o&32&&Ke(t,n[5])},d(n){n&&w(e)}}}function i6(i){let e,t,n=!i[1]&&i[4]&&Xp(i);return{c(){e=P("div"),n&&n.c(),f(e,"class","hot-key-helpers-container svelte-1ad3n06"),K(e,"hidden",i[1]),K(e,"hot-key-helpers-container--left",i[2]),K(e,"hot-key-helpers-container--right",i[3])},m(o,r){k(o,e,r),n&&n.m(e,null),t=!0},p(o,[r]){!o[1]&&o[4]?n?(n.p(o,r),r&18&&d(n,1)):(n=Xp(o),n.c(),d(n,1),n.m(e,null)):n&&(se(),p(n,1,1,()=>{n=null}),le()),(!t||r&2)&&K(e,"hidden",o[1]),(!t||r&4)&&K(e,"hot-key-helpers-container--left",o[2]),(!t||r&8)&&K(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&w(e),n&&n.d()}}}function n6(i,e,t){let n,o=me,r=()=>(o(),o=ri(s,h=>t(6,n=h)),s);i.$$.on_destroy.push(()=>o());let{data:s}=e;r();let a,l,u,c,m;return i.$$set=h=>{"data"in h&&r(t(0,s=h.data))},i.$$.update=()=>{i.$$.dirty&64&&(t(1,a=!n),t(2,l=(n==null?void 0:n.type)==="BACKWARD_SEEK"),t(3,u=(n==null?void 0:n.type)==="FORWARD_SEEK"),t(4,c=n==null?void 0:n.type),n!=null&&n.t?t(5,m=G(n.t.key,{value:n.t.value||""})):t(5,m=n==null?void 0:n.text))},[s,a,l,u,c,m,n]}var zc=class extends H{constructor(e){super(),U(this,e,n6,i6,F,{data:0},t6)}},u0=zc;function o6(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"fill-opacity",".72"),f(t,"fill-rule","evenodd"),f(t,"d","M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272"),f(t,"clip-rule","evenodd"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function r6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Wc=class extends H{constructor(e){super(),U(this,e,r6,o6,F,{})}},c0=Wc;function s6(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"d","m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function l6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var xc=class extends H{constructor(e){super(),U(this,e,l6,s6,F,{})}},f0=xc;function a6(i){let e,t;return e=new f0({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function u6(i){let e,t;return e=new c0({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function c6(i){let e,t,n,o,r=[u6,a6],s=[];function a(l,u){return l[1]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=$e()},m(l,u){s[e].m(l,u),k(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e===c?s[e].p(l,u):(se(),p(s[c],1,1,()=>{s[c]=null}),le(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),s[e].d(l)}}}function f6(i,e,t){let n,{direction:o="left"}=e,r,s;return i.$$set=a=>{"direction"in a&&t(3,o=a.direction)},i.$$.update=()=>{i.$$.dirty&8&&(t(1,r=["up","down"].includes(o)),t(0,s=["right","down"].includes(o))),i.$$.dirty&1&&t(2,n=s?"transform: rotate(180deg);":void 0)},[s,r,n,o]}var Kc=class extends H{constructor(e){super(),U(this,e,f6,c6,F,{direction:3})}},mr=Kc;function d6(i){ge(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 m6(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,I,C,V,S,v;return r=new mr({props:{direction:"up"}}),l=new mr({props:{direction:"up"}}),h=new mr({props:{direction:"up"}}),I=new mr({props:{direction:"up"}}),{c(){e=P("div"),t=P("div"),n=P("div"),o=P("div"),N(r.$$.fragment),s=Y(),a=P("div"),N(l.$$.fragment),u=Y(),c=P("div"),m=P("div"),N(h.$$.fragment),y=Y(),g=P("div"),N(I.$$.fragment),f(o,"class","button button-up svelte-1yzc86r"),f(a,"class","button button-right svelte-1yzc86r"),f(n,"class","button-row svelte-1yzc86r"),f(m,"class","button button-left svelte-1yzc86r"),f(g,"class","button button-down svelte-1yzc86r"),f(c,"class","button-row svelte-1yzc86r"),f(t,"class","button-block svelte-1yzc86r"),f(t,"aria-hidden","true"),f(e,"class","immersive-controls svelte-1yzc86r"),f(e,"tabindex","0"),f(e,"role","button"),f(e,"aria-label",C=G("aria_label_spherical_control")),K(e,"m-shifted",i[0])},m(E,W){k(E,e,W),_(e,t),_(t,n),_(n,o),R(r,o,null),_(n,s),_(n,a),R(l,a,null),_(t,u),_(t,c),_(c,m),R(h,m,null),_(c,y),_(c,g),R(I,g,null),V=!0,S||(v=[ke(o,"mousedown",i[1]),ke(o,"mouseup",i[5]),ke(o,"mouseleave",i[5]),ke(a,"mousedown",i[3]),ke(a,"mouseup",i[5]),ke(a,"mouseleave",i[5]),ke(m,"mousedown",i[4]),ke(m,"mouseup",i[5]),ke(m,"mouseleave",i[5]),ke(g,"mousedown",i[2]),ke(g,"mouseup",i[5]),ke(g,"mouseleave",i[5]),ke(e,"keydown",i[6]),ke(e,"keyup",i[7])],S=!0)},p(E,[W]){(!V||W&1)&&K(e,"m-shifted",E[0])},i(E){V||(d(r.$$.fragment,E),d(l.$$.fragment,E),d(h.$$.fragment,E),d(I.$$.fragment,E),V=!0)},o(E){p(r.$$.fragment,E),p(l.$$.fragment,E),p(h.$$.fragment,E),p(I.$$.fragment,E),V=!1},d(E){E&&w(e),B(r),B(l),B(h),B(I),S=!1,ut(v)}}}function p6(i,e,t){let{isShifted:n=!1}=e,o=nt(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},l=()=>{o.actions.internal.startCameraManualRotation(1,0)},u=()=>{o.actions.internal.startCameraManualRotation(-1,0)},c=()=>(o.actions.internal.stopCameraManualRotation(),null),m=y=>{if(r.has(y.code))switch(y.preventDefault(),y.stopPropagation(),y.code){case"ArrowUp":s();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":l();break}},h=y=>{r.has(y.code)&&(y.preventDefault(),y.stopPropagation(),c())};return i.$$set=y=>{"isShifted"in y&&t(0,n=y.isShifted)},[n,s,a,l,u,c,m,h]}var jc=class extends H{constructor(e){super(),U(this,e,p6,m6,F,{isShifted:0},d6)}},Fl=jc;function _6(i){ge(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 d0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function m0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function p0(i){let e,t;function n(s,a){return s[7]&&s[8]?b6:s[5]?g6:h6}let o=n(i,-1),r=o(i);return{c(){e=P("div"),t=P("span"),r.c(),f(t,"class","caption svelte-ovfyp5"),f(e,"class","subtitles-caption svelte-ovfyp5"),K(e,"mobile",i[3])},m(s,a){k(s,e,a),_(e,t),r.m(t,null)},p(s,a){o===(o=n(s,a))&&r?r.p(s,a):(r.d(1),r=o(s),r&&(r.c(),r.m(t,null))),a&8&&K(e,"mobile",s[3])},d(s){s&&w(e),r.d()}}}function h6(i){let e,t=Tt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=_0(d0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=$e()},m(o,r){for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(o,r);k(o,e,r)},p(o,r){if(r&18){t=Tt(o[1]);let s;for(s=0;s<t.length;s+=1){let a=d0(o,t,s);n[s]?n[s].p(a,r):(n[s]=_0(a),n[s].c(),n[s].m(e.parentNode,e))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(o){o&&w(e),pi(n,o)}}}function g6(i){let e,t,n=Tt(i[6]),o=[];for(let r=0;r<n.length;r+=1)o[r]=g0(m0(i,n,r));return{c(){e=P("span"),t=P("span");for(let r=0;r<o.length;r+=1)o[r].c();f(t,"class","caption-segment svelte-ovfyp5"),vi(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,s){k(r,e,s),_(e,t);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(r,s){if(s&68){n=Tt(r[6]);let a;for(a=0;a<n.length;a+=1){let l=m0(r,n,a);o[a]?o[a].p(l,s):(o[a]=g0(l),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}s&16&&vi(t,"font-size",r[4]+"px")},d(r){r&&w(e),pi(o,r)}}}function b6(i){let e,t,n=G("subtitles_auto_caption")+"",o;return{c(){e=P("span"),t=P("span"),o=Oe(n),f(t,"class","caption-segment svelte-ovfyp5"),vi(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,s){k(r,e,s),_(e,t),_(t,o)},p(r,s){s&16&&vi(t,"font-size",r[4]+"px")},d(r){r&&w(e)}}}function _0(i){let e,t,n=i[16]+"",o,r;return{c(){e=P("span"),t=P("span"),o=Oe(n),r=Y(),f(t,"class","caption-segment svelte-ovfyp5"),vi(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(s,a){k(s,e,a),_(e,t),_(t,o),_(e,r)},p(s,a){a&2&&n!==(n=s[16]+"")&&Ke(o,n),a&16&&vi(t,"font-size",s[4]+"px")},d(s){s&&w(e)}}}function h0(i){let e=i[16]+"",t;return{c(){t=Oe(e)},m(n,o){k(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Ke(t,e)},d(n){n&&w(t)}}}function g0(i){let e,t=(!i[17]||i[17]<=i[2])&&h0(i);return{c(){t&&t.c(),e=$e()},m(n,o){t&&t.m(n,o),k(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=h0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&w(e),t&&t.d(n)}}}function v6(i){let e,t=i[1].length>0&&p0(i);return{c(){e=P("div"),t&&t.c(),f(e,"class","subtitles-container svelte-ovfyp5"),K(e,"shifted",i[0]),K(e,"auto",i[5]&&!i[8])},m(n,o){k(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=p0(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:me,o:me,d(n){n&&w(e),t&&t.d()}}}function y6(i,e,t){let n,o,{shifted:r}=e,{captions:s}=e,{position:a}=e,{playerSize:l}=e,{isMobile:u=!1}=e,c=nt(),m=Bt(),h=c.state.currentSubtitle$;q(i,h,v=>t(12,n=v));let y=c.state.isAutoSubtitleCaptionVisible$;q(i,y,v=>t(8,o=v));let g,I,C,V,S;return Ft(()=>{S=window.setTimeout(()=>{y.set(!1)},m.autoSubtitlesTimeout)}),oo(()=>{window.clearTimeout(S)}),i.$$set=v=>{"shifted"in v&&t(0,r=v.shifted),"captions"in v&&t(1,s=v.captions),"position"in v&&t(2,a=v.position),"playerSize"in v&&t(11,l=v.playerSize),"isMobile"in v&&t(3,u=v.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048){let v=l.width*.02;t(4,g=v<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:v)}i.$$.dirty&2&&t(5,I=s.some(v=>v.type==="timestamp")),i.$$.dirty&2&&t(6,C=s.reduce((v,{type:E,value:W})=>(E==="timestamp"?v.push({timeAppeared:Number(W),value:""}):v.length===0?v.push({value:String(W)}):v[v.length-1].value=String(W),v),[])),i.$$.dirty&4096&&t(7,V=!!n.isAuto)},[r,s,a,u,g,I,C,V,o,h,y,l,n]}var Gc=class extends H{constructor(e){super(),U(this,e,y6,v6,F,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},_6)}},Hl=Gc;function w6(i){ge(i,"svelte-raurnb",".wrapper.svelte-raurnb{height:100%;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.wrapper.bgCover.svelte-raurnb{background-size:cover}.icon_wrapper.svelte-raurnb{display:flex;flex-direction:column;align-items:center;width:400px}.icon.svelte-raurnb{width:50px;height:50px}.text.svelte-raurnb{margin-top:20px}")}function b0(i){let e,t,n;return{c(){e=P("div"),t=Oe("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Oe(i[1]),f(e,"class","text svelte-raurnb")},m(o,r){k(o,e,r),_(e,t),_(e,n)},p(o,r){r&2&&Ke(n,o[1])},d(o){o&&w(e)}}}function k6(i){let e,t,n,o,r,s,a=i[1]&&b0(i);return{c(){e=P("div"),t=P("div"),t.innerHTML='<svg class="icon svelte-raurnb" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=Y(),a&&a.c(),f(t,"class","icon_wrapper svelte-raurnb"),f(e,"class","wrapper svelte-raurnb"),f(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${i[0]||""}')`),K(e,"bgCover",i[2].features.previewNoEmptySpace)},m(l,u){k(l,e,u),_(e,t),_(e,n),a&&a.m(e,null),r||(s=ke(e,"click",i[3]),r=!0)},p(l,[u]){l[1]?a?a.p(l,u):(a=b0(l),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&o!==(o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${l[0]||""}')`)&&f(e,"style",o)},i:me,o:me,d(l){l&&w(e),a&&a.d(),r=!1,s()}}}function C6(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e,r=Bt();function s(a){On.call(this,i,a)}return i.$$set=a=>{"thumbUrl"in a&&t(0,n=a.thumbUrl),"chromecastDeviceName"in a&&t(1,o=a.chromecastDeviceName)},[n,o,r,s]}var Yc=class extends H{constructor(e){super(),U(this,e,C6,k6,F,{thumbUrl:0,chromecastDeviceName:1},w6)}},ql=Yc;function S6(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function T6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Qc=class extends H{constructor(e){super(),U(this,e,T6,S6,F,{})}},v0=Qc;function I6(i){ge(i,"svelte-13zpvm8",".container.svelte-13zpvm8{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}")}function P6(i){let e,t,n;return t=new v0({}),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","container svelte-13zpvm8")},m(o,r){k(o,e,r),R(t,e,null),n=!0},p:me,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),B(t)}}}var Zc=class extends H{constructor(e){super(),U(this,e,null,P6,F,{},I6)}},Ul=Zc;function E6(i){ge(i,"svelte-1xnh9dd",".container.svelte-1xnh9dd.svelte-1xnh9dd{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.svelte-1xnh9dd.svelte-1xnh9dd{opacity:0;visibility:hidden}.container.bgCover.svelte-1xnh9dd.svelte-1xnh9dd{background-size:cover}.playButton.svelte-1xnh9dd.svelte-1xnh9dd{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.svelte-1xnh9dd.svelte-1xnh9dd{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.svelte-1xnh9dd:hover .playButtonBackground.svelte-1xnh9dd{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.svelte-1xnh9dd svg{transform:scale(2)}")}function A6(i){let e,t,n,o,r,s,a,l,u,c;return r=new Wo({}),{c(){e=P("div"),t=P("div"),n=P("div"),o=Y(),N(r.$$.fragment),f(n,"class","playButtonBackground svelte-1xnh9dd"),f(t,"class","playButton svelte-1xnh9dd"),f(t,"tabindex","0"),f(t,"role","button"),f(t,"aria-label",s=G("tooltip_play")),f(e,"class","container svelte-1xnh9dd"),f(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),K(e,"hidden",i[1]),K(e,"bgCover",i[4].features.previewNoEmptySpace)},m(m,h){k(m,e,h),_(e,t),_(t,n),_(t,o),R(r,t,null),l=!0,u||(c=[ke(t,"keydown",i[3]),ke(e,"click",vt(function(){ti(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(m,[h]){i=m,(!l||h&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&f(e,"style",a),(!l||h&2)&&K(e,"hidden",i[1])},i(m){l||(d(r.$$.fragment,m),l=!0)},o(m){p(r.$$.fragment,m),l=!1},d(m){m&&w(e),B(r),u=!1,ut(c)}}}function M6(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,s=nt(),a=Bt(),l=s.ui.startedByKeyboard$,u=c=>{let m=c.code;["Enter","Space"].includes(m)&&(c.stopPropagation(),c.preventDefault(),l.set(!0),r())};return i.$$set=c=>{"thumbUrl"in c&&t(0,n=c.thumbUrl),"hidden"in c&&t(1,o=c.hidden),"startVideo"in c&&t(2,r=c.startVideo)},[n,o,r,u,a]}var Xc=class extends H{constructor(e){super(),U(this,e,M6,A6,F,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},E6)}get handlePressKey(){return this.$$.ctx[3]}},zl=Xc;function L6(i){ge(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 k6(i){let e,t;return{c(){e=I("div"),t=He(i[0]),f(e,"class","title svelte-1bcvcf2"),K(e,"hidden",i[1])},m(n,o){w(n,e,o),_(e,t)},p(n,[o]){o&1&&je(t,n[0]),o&2&&K(e,"hidden",n[1])},i:me,o:me,d(n){n&&y(e)}}}function C6(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"isHidden"in r&&t(1,o=r.isHidden)},[n,o]}var Wc=class extends N{constructor(e){super(),D(this,e,C6,k6,R,{title:0,isHidden:1},w6)}},c0=Wc;function S6(i){ve(i,"svelte-1qpxtfg",".timer__container.svelte-1qpxtfg{display:flex;align-items:flex-start;justify-content:center}.cell.svelte-1qpxtfg{display:flex;flex-direction:column;align-items:center;width:62px}.cell__value.svelte-1qpxtfg{font-size:48px;line-height:1.2;font-weight:700}.cell__unit.svelte-1qpxtfg{font-size:14px;line-height:1.2;font-weight:400}.timer__points.svelte-1qpxtfg{display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600}")}function f0(i){let e,t,n,o,r,s,a;return{c(){e=I("div"),t=I("span"),n=He(i[0]),o=Y(),r=I("span"),r.textContent=`${j("waiting_live_day_value")}`,s=Y(),a=I("span"),a.textContent=`${j("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(l,u){w(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),w(l,s,u),w(l,a,u)},p(l,u){u&1&&je(n,l[0])},d(l){l&&(y(e),y(s),y(a))}}}function d0(i){let e,t,n,o,r,s,a;return{c(){e=I("div"),t=I("span"),n=He(i[1]),o=Y(),r=I("span"),r.textContent=`${j("waiting_live_hour_value")}`,s=Y(),a=I("span"),a.textContent=`${j("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(l,u){w(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),w(l,s,u),w(l,a,u)},p(l,u){u&2&&je(n,l[1])},d(l){l&&(y(e),y(s),y(a))}}}function m0(i){let e,t,n,o,r,s,a;return{c(){e=I("div"),t=I("span"),n=He(i[2]),o=Y(),r=I("span"),r.textContent=`${j("waiting_live_minute_value")}`,s=Y(),a=I("span"),a.textContent=`${j("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(l,u){w(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),w(l,s,u),w(l,a,u)},p(l,u){u&4&&je(n,l[2])},d(l){l&&(y(e),y(s),y(a))}}}function p0(i){let e,t,n,o,r;return{c(){e=I("div"),t=I("span"),n=He(i[3]),o=Y(),r=I("span"),r.textContent=`${j("waiting_live_second_value")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg")},m(s,a){w(s,e,a),_(e,t),_(t,n),_(e,o),_(e,r)},p(s,a){a&8&&je(n,s[3])},d(s){s&&y(e)}}}function T6(i){let e,t,n,o,r=i[0]&&f0(i),s=i[1]&&d0(i),a=i[2]&&m0(i),l=i[3]&&p0(i);return{c(){e=I("div"),r&&r.c(),t=Y(),s&&s.c(),n=Y(),a&&a.c(),o=Y(),l&&l.c(),f(e,"class","timer__container svelte-1qpxtfg")},m(u,c){w(u,e,c),r&&r.m(e,null),_(e,t),s&&s.m(e,null),_(e,n),a&&a.m(e,null),_(e,o),l&&l.m(e,null)},p(u,[c]){u[0]?r?r.p(u,c):(r=f0(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?s?s.p(u,c):(s=d0(u),s.c(),s.m(e,n)):s&&(s.d(1),s=null),u[2]?a?a.p(u,c):(a=m0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?l?l.p(u,c):(l=p0(u),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i:me,o:me,d(u){u&&y(e),r&&r.d(),s&&s.d(),a&&a.d(),l&&l.d()}}}function I6(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,s,a,l,u,c=C=>String(C).padStart(2,"0"),m=C=>{let g=Math.floor(C/86400);g&&(C-=g*86400,t(0,r=c(g)));let T=Math.floor(C/3600);t(1,s=c(T));let k=Math.floor(C/60)%60;t(2,a=c(k));let H=C%60;t(3,l=c(H))},h=()=>{let C=Math.floor(Date.now()/1e3),g=n-C;m(g),g>=1?u=requestAnimationFrame(h):o()};return Lt(()=>{u=requestAnimationFrame(h)}),eo(()=>{cancelAnimationFrame(u)}),i.$$set=C=>{"startTime"in C&&t(4,n=C.startTime),"onTimerOver"in C&&t(5,o=C.onTimerOver)},[r,s,a,l,n,o]}var Kc=class extends N{constructor(e){super(),D(this,e,I6,T6,R,{startTime:4,onTimerOver:5},S6)}},_0=Kc;function P6(i){let e,t,n,o,r,s,a=i[2].default,l=Ve(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},i[0]],c={};for(let m=0;m<u.length;m+=1)c=se(c,u[m]);return{c(){e=M("svg"),l&&l.c(),t=M("path"),n=M("path"),o=M("path"),r=M("path"),f(t,"fill","#fefffe"),f(t,"d","M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5"),bi(t,"opacity",".965"),f(n,"fill","#fefffe"),f(n,"d","M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82"),bi(n,"opacity",".965"),f(o,"fill","#fefffe"),f(o,"d","M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84"),bi(o,"opacity",".985"),f(r,"fill","#fefffe"),f(r,"d","M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54"),bi(r,"opacity",".986"),we(e,c)},m(m,h){w(m,e,h),l&&l.m(e,null),_(e,t),_(e,n),_(e,o),_(e,r),s=!0},p(m,[h]){l&&l.p&&(!s||h&2)&&Be(l,a,m,m[1],s?Re(a,m[1],h,null):Ne(m[1]),null),we(e,c=qe(u,[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},h&1&&m[0]]))},i(m){s||(d(l,m),s=!0)},o(m){p(l,m),s=!1},d(m){m&&y(e),l&&l.d(m)}}}function E6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var xc=class extends N{constructor(e){super(),D(this,e,E6,P6,R,{})}},h0=xc;function A6(i){ve(i,"svelte-15pewff",".waiting-container.svelte-15pewff{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat}.waiting-container.svelte-15pewff::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1}.upcoming.svelte-15pewff{position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0}.upcoming-icon.svelte-15pewff{width:20%;max-width:200px;margin-bottom:20px}.upcoming__title.svelte-15pewff{font-size:14px;line-height:1.2;font-weight:400}.waiting-timer.svelte-15pewff{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2}.timer.svelte-15pewff{display:flex;flex-direction:column;align-items:center;justify-content:center}.timer__title.svelte-15pewff{display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400}")}function M6(i){let e,t,n,o,r;return o=new _0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=I("div"),t=I("span"),t.textContent=`${j("waiting_live_timer_title")}`,n=Y(),B(o.$$.fragment),f(t,"class","timer__title svelte-15pewff"),f(e,"class","waiting-timer timer svelte-15pewff")},m(s,a){w(s,e,a),_(e,t),_(e,n),L(o,e,null),r=!0},p(s,a){let l={};a&2&&(l.startTime=s[1]||0),a&4&&(l.onTimerOver=s[3]),o.$set(l)},i(s){r||(d(o.$$.fragment,s),r=!0)},o(s){p(o.$$.fragment,s),r=!1},d(s){s&&y(e),V(o)}}}function L6(i){let e,t,n,o,r,s;return n=new h0({}),{c(){e=I("div"),t=I("div"),B(n.$$.fragment),o=Y(),r=I("span"),r.textContent=`${j("waiting_live_upcoming_title")}`,f(t,"class","upcoming-icon svelte-15pewff"),f(r,"class","upcoming__title svelte-15pewff"),f(e,"class","upcoming svelte-15pewff")},m(a,l){w(a,e,l),_(e,t),L(n,t,null),_(e,o),_(e,r),s=!0},p:me,i(a){s||(d(n.$$.fragment,a),s=!0)},o(a){p(n.$$.fragment,a),s=!1},d(a){a&&y(e),V(n)}}}function V6(i){let e,t,n,o,r,s=[L6,M6],a=[];function l(u,c){return u[2]?0:1}return t=l(i,-1),n=a[t]=s[t](i),{c(){e=I("div"),n.c(),f(e,"class","waiting-container svelte-15pewff"),f(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,c){w(u,e,c),a[t].m(e,null),r=!0},p(u,[c]){let m=t;t=l(u,c),t===m?a[t].p(u,c):(ae(),p(a[m],1,1,()=>{a[m]=null}),ue(),n=a[t],n?n.p(u,c):(n=a[t]=s[t](u),n.c()),d(n,1),n.m(e,null)),(!r||c&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&f(e,"style",o)},i(u){r||(d(n),r=!0)},o(u){p(n),r=!1},d(u){u&&y(e),a[t].d()}}}function R6(i,e,t){let n,{thumbUrl:o}=e,{startTime:r}=e,s=()=>t(2,n=!0);return i.$$set=a=>{"thumbUrl"in a&&t(0,o=a.thumbUrl),"startTime"in a&&t(1,r=a.startTime)},i.$$.update=()=>{i.$$.dirty&2&&t(2,n=r===void 0||r<Math.floor(Date.now()/1e3))},[o,r,n,s]}var jc=class extends N{constructor(e){super(),D(this,e,R6,V6,R,{thumbUrl:0,startTime:1},A6)}},Nl=jc;function B6(i){ve(i,"svelte-xvqwsa",".waiting-container.svelte-xvqwsa{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat}.waiting-container.svelte-xvqwsa::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.4);backdrop-filter:blur(10px)}.waiting-caption.svelte-xvqwsa{position:relative;display:flex;flex-direction:column;align-items:center}.waiting-title.svelte-xvqwsa{margin:0;padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400}")}function N6(i){let e,t,n,o,r,s,a,l;return n=new Vr({props:{style:"position: static; transform: translate(0, 0)"}}),{c(){e=I("div"),t=I("div"),B(n.$$.fragment),o=Y(),r=I("p"),s=He(i[1]),f(r,"class","waiting-title svelte-xvqwsa"),f(t,"class","waiting-caption svelte-xvqwsa"),f(e,"class","waiting-container svelte-xvqwsa"),f(e,"style",a=`background-image: url('${i[0]}')`)},m(u,c){w(u,e,c),_(e,t),L(n,t,null),_(t,o),_(t,r),_(r,s),l=!0},p(u,[c]){(!l||c&2)&&je(s,u[1]),(!l||c&1&&a!==(a=`background-image: url('${u[0]}')`))&&f(e,"style",a)},i(u){l||(d(n.$$.fragment,u),l=!0)},o(u){p(n.$$.fragment,u),l=!1},d(u){u&&y(e),V(n)}}}function D6(i,e,t){let{thumbUrl:n=""}=e,{kind:o}=e,r;return i.$$set=s=>{"thumbUrl"in s&&t(0,n=s.thumbUrl),"kind"in s&&t(2,o=s.kind)},i.$$.update=()=>{if(i.$$.dirty&4){let s={recover:j("waiting_live_recover_title"),record:j("waiting_record_title")};t(1,r=s[o]||"")}},[n,r,o]}var Gc=class extends N{constructor(e){super(),D(this,e,D6,N6,R,{thumbUrl:0,kind:2},B6)}},Ur=Gc;var Dl=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),Ol=(i,e)=>{var s;if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=(s=hl(t))!=null?s:t),n&&t&&o){let a=e.filter(l=>l.label===n&&l.language===t);if(a.length===1)return j("audio_stream_display_language_label",{language:o,label:n});{let l=Dl(i,a);return j("audio_stream_display_language_label_index",{language:o,label:n,index:l})}}if(n){let a=e.filter(l=>l.label===n);if(a.length===1)return n;{let l=Dl(i,a);return j("audio_stream_display_label_index",{label:n,index:l})}}if(t&&o){let a=e.filter(l=>l.language===t);if(a.length===1)return o;{let l=Dl(i,a);return j("audio_stream_display_language_index",{language:o,index:l})}}let r=Dl(i,e);return j("audio_stream_display_unknown",{index:r})};function O6(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"d","M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,l,l[1],n?Re(o,l[1],u,null):Ne(l[1]),null),we(e,a=qe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function F6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Yc=class extends N{constructor(e){super(),D(this,e,F6,O6,R,{})}},g0=Yc;function H6(i){ve(i,"svelte-124aexk",".select-icon.svelte-124aexk{margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px}")}function b0(i){let e,t,n;return t=new g0({}),{c(){e=I("div"),B(t.$$.fragment),f(e,"class","select-icon svelte-124aexk")},m(o,r){w(o,e,r),L(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),V(t)}}}function q6(i){var o;let e,t=((o=i[1].label)!=null?o:i[1].value)+"",n;return{c(){e=I("div"),n=He(t),f(e,"class","menu-item-value"),K(e,"submenu-value-mobile",i[0])},m(r,s){w(r,e,s),_(e,n)},p(r,s){var a;s&2&&t!==(t=((a=r[1].label)!=null?a:r[1].value)+"")&&je(n,t),s&1&&K(e,"submenu-value-mobile",r[0])},i:me,o:me,d(r){r&&y(e)}}}function U6(i){var a;let e,t,n,o=[(a=i[1].valueComponentParams)!=null?a:{}];var r=i[1].valueComponent;function s(l,u){var m;let c={};for(let h=0;h<o.length;h+=1)c=se(c,o[h]);return u!==void 0&&u&2&&(c=se(c,qe(o,[Vo((m=l[1].valueComponentParams)!=null?m:{})]))),{props:c}}return r&&(e=Dt(r,s(i))),{c(){e&&B(e.$$.fragment),t=Je()},m(l,u){e&&L(e,l,u),w(l,t,u),n=!0},p(l,u){var c;if(u&2&&r!==(r=l[1].valueComponent)){if(e){ae();let m=e;p(m.$$.fragment,1,0,()=>{V(m,1)}),ue()}r?(e=Dt(r,s(l,u)),B(e.$$.fragment),d(e.$$.fragment,1),L(e,t.parentNode,t)):e=null}else if(r){let m=u&2?qe(o,[Vo((c=l[1].valueComponentParams)!=null?c:{})]):{};e.$set(m)}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&p(e.$$.fragment,l),n=!1},d(l){l&&y(t),e&&V(e,l)}}}function z6(i){let e,t,n,o,r,s,a,l,u,c=i[1].selected&&b0(i),m=[U6,q6],h=[];function C(g,T){return g[1].valueComponent?0:1}return n=C(i,-1),o=h[n]=m[n](i),{c(){var g,T,k;e=I("li"),c&&c.c(),t=Y(),o.c(),f(e,"class","item"),f(e,"data-value",r=(g=i[1].dataValue)!=null?g:i[1].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=(k=(T=i[1].ariaLabel)!=null?T:i[1].label)!=null?k:i[1].value.toString()),K(e,"mobile",i[0])},m(g,T){w(g,e,T),c&&c.m(e,null),_(e,t),h[n].m(e,null),a=!0,l||(u=[ke(e,"click",bt(i[4])),ke(e,"keydown",i[5])],l=!0)},p(g,[T]){var H,S,v;g[1].selected?c?T&2&&d(c,1):(c=b0(g),c.c(),d(c,1),c.m(e,t)):c&&(ae(),p(c,1,1,()=>{c=null}),ue());let k=n;n=C(g,T),n===k?h[n].p(g,T):(ae(),p(h[k],1,1,()=>{h[k]=null}),ue(),o=h[n],o?o.p(g,T):(o=h[n]=m[n](g),o.c()),d(o,1),o.m(e,null)),(!a||T&2&&r!==(r=(H=g[1].dataValue)!=null?H:g[1].value))&&f(e,"data-value",r),(!a||T&2&&s!==(s=(v=(S=g[1].ariaLabel)!=null?S:g[1].label)!=null?v:g[1].value.toString()))&&f(e,"aria-label",s),(!a||T&1)&&K(e,"mobile",g[0])},i(g){a||(d(c),d(o),a=!0)},o(g){p(c),p(o),a=!1},d(g){g&&y(e),c&&c.d(),h[n].d(),l=!1,ct(u)}}}function W6(i,e,t){let{isMobile:n=!1}=e,{item:o}=e,{selectItem:r}=e,s=(u,c)=>{Mr(u,()=>r(c))},a=()=>r(o.value),l=u=>s(u,o.value);return i.$$set=u=>{"isMobile"in u&&t(0,n=u.isMobile),"item"in u&&t(1,o=u.item),"selectItem"in u&&t(2,r=u.selectItem)},[n,o,r,s,a,l]}var Qc=class extends N{constructor(e){super(),D(this,e,W6,z6,R,{isMobile:0,item:1,selectItem:2},H6)}},v0=Qc;function K6(i){let e,t,n=i[2].label+"",o,r,s,a,l;return{c(){var u;e=I("li"),t=I("div"),o=He(n),f(t,"class","menu-item-value"),K(t,"submenu-value-mobile",i[1]),f(e,"class","item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",r=(u=i[2].ariaLabel)!=null?u:i[2].label),f(e,"aria-haspopup","true"),f(e,"data-testid",s=i[2].id),K(e,"mobile",i[1])},m(u,c){w(u,e,c),_(e,t),_(t,o),i[6](e),a||(l=[ke(e,"click",bt(function(){xt(i[3])&&i[3].apply(this,arguments)})),ke(e,"keydown",function(){xt(i[4])&&i[4].apply(this,arguments)})],a=!0)},p(u,[c]){var m;i=u,c&4&&n!==(n=i[2].label+"")&&je(o,n),c&2&&K(t,"submenu-value-mobile",i[1]),c&4&&r!==(r=(m=i[2].ariaLabel)!=null?m:i[2].label)&&f(e,"aria-label",r),c&4&&s!==(s=i[2].id)&&f(e,"data-testid",s),c&2&&K(e,"mobile",i[1])},i:me,o:me,d(u){u&&y(e),i[6](null),a=!1,ct(l)}}}function x6(i,e,t){let n,o,{isMobile:r=!1}=e,{item:s}=e,{openSubMenuList:a}=e,{refMenuItems:l}=e;function u(c){ge[c?"unshift":"push"](()=>{l[s.id]=c,t(0,l)})}return i.$$set=c=>{"isMobile"in c&&t(1,r=c.isMobile),"item"in c&&t(2,s=c.item),"openSubMenuList"in c&&t(5,a=c.openSubMenuList),"refMenuItems"in c&&t(0,l=c.refMenuItems)},i.$$.update=()=>{i.$$.dirty&36&&t(3,n=()=>a(s.subMenuId)),i.$$.dirty&12&&t(4,o=c=>Ks(c,n,s.getSubItemForFocus))},[l,r,s,n,o,a,u]}var Zc=class extends N{constructor(e){super(),D(this,e,x6,K6,R,{isMobile:1,item:2,openSubMenuList:5,refMenuItems:0})}},y0=Zc;var oo={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};function Y6(i){ve(i,"svelte-1mrc4z3",'.sub-menu.svelte-1mrc4z3.svelte-1mrc4z3{line-height:32px;padding-bottom:0;padding-top:42px}.sub-menu.mobile.svelte-1mrc4z3.svelte-1mrc4z3{padding-top:58px}.sub-menu.svelte-1mrc4z3 .item{padding:0 12px}.sub-menu.svelte-1mrc4z3 .item.mobile{padding:0 14px}.sub-menu.svelte-1mrc4z3 .item.header.svelte-1mrc4z3{padding-top:6px;box-sizing:border-box;width:100%;justify-content:space-between;column-gap:12px;border-bottom:var(--divider-border);position:absolute;top:0}.sub-menu[data-testid="sub-menu-quality-settings"].svelte-1mrc4z3 .header.svelte-1mrc4z3{padding-right:34px}')}function w0(i,e,t){let n=i.slice();return n[25]=e[t],n}function Q6(i){let e,t;return e=new y0({props:{isMobile:i[2],item:i[25],openSubMenuList:i[6],refMenuItems:i[9]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.isMobile=n[2]),o&128&&(r.item=n[25]),o&64&&(r.openSubMenuList=n[6]),o&512&&(r.refMenuItems=n[9]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Z6(i){let e,t;return e=new v0({props:{item:i[25],isMobile:i[2],selectItem:i[25].selectItem}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&128&&(r.item=n[25]),o&4&&(r.isMobile=n[2]),o&128&&(r.selectItem=n[25].selectItem),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function k0(i){let e,t,n,o,r=[Z6,Q6],s=[];function a(l,u){return l[25].type==="SELECT_VALUE"?0:l[25].type==="OPEN_SUB_MENU"?1:-1}return~(e=a(i,-1))&&(t=s[e]=r[e](i)),{c(){t&&t.c(),n=Je()},m(l,u){~e&&s[e].m(l,u),w(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?~e&&s[e].p(l,u):(t&&(ae(),p(s[c],1,1,()=>{s[c]=null}),ue()),~e?(t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n)):t=null)},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&y(n),~e&&s[e].d(l)}}}function X6(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g;o=new mr({props:{direction:"left"}});let T=wt(i[7]),k=[];for(let S=0;S<T.length;S+=1)k[S]=k0(w0(i,T,S));let H=S=>p(k[S],1,1,()=>{k[S]=null});return{c(){var S;e=I("div"),t=I("ul"),n=I("li"),B(o.$$.fragment),r=Y(),s=I("div"),a=He(i[5]),l=Y();for(let v=0;v<k.length;v+=1)k[v].c();f(n,"class","item header back svelte-1mrc4z3"),f(n,"role","menuitem"),f(n,"tabindex","0"),f(n,"data-testid","return-to-settings-menu"),f(n,"aria-label",i[4]),K(n,"mobile",i[2]),f(t,"class","items"),f(t,"role","menu"),f(t,"style",u=i[15]((S=i[10])==null?void 0:S.clientHeight)),K(t,"mobile",i[2]),f(e,"class","sub-menu menu svelte-1mrc4z3"),f(e,"data-testid",c=`sub-menu-${i[1]}`),f(e,"style",m=`min-width: ${i[8]}px`),K(e,"desktop",!i[2]),K(e,"mobile",i[2])},m(S,v){w(S,e,v),_(e,t),_(t,n),L(o,n,null),_(n,r),_(n,s),_(s,a),i[20](n),_(t,l);for(let E=0;E<k.length;E+=1)k[E]&&k[E].m(t,null);i[21](t),h=!0,C||(g=[ke(n,"click",bt(function(){xt(i[3])&&i[3].apply(this,arguments)})),ke(n,"keydown",i[14]),ke(t,"keydown",i[13])],C=!0)},p(S,[v]){var E;if(i=S,(!h||v&32)&&je(a,i[5]),(!h||v&16)&&f(n,"aria-label",i[4]),(!h||v&4)&&K(n,"mobile",i[2]),v&708){T=wt(i[7]);let q;for(q=0;q<T.length;q+=1){let U=w0(i,T,q);k[q]?(k[q].p(U,v),d(k[q],1)):(k[q]=k0(U),k[q].c(),d(k[q],1),k[q].m(t,null))}for(ae(),q=T.length;q<k.length;q+=1)H(q);ue()}(!h||v&1024&&u!==(u=i[15]((E=i[10])==null?void 0:E.clientHeight)))&&f(t,"style",u),(!h||v&4)&&K(t,"mobile",i[2]),(!h||v&2&&c!==(c=`sub-menu-${i[1]}`))&&f(e,"data-testid",c),(!h||v&256&&m!==(m=`min-width: ${i[8]}px`))&&f(e,"style",m),(!h||v&4)&&K(e,"desktop",!i[2]),(!h||v&4)&&K(e,"mobile",i[2])},i(S){if(!h){d(o.$$.fragment,S);for(let v=0;v<T.length;v+=1)d(k[v]);h=!0}},o(S){p(o.$$.fragment,S),k=k.filter(Boolean);for(let v=0;v<k.length;v+=1)p(k[v]);h=!1},d(S){S&&y(e),V(o),i[20](null),mi(k,S),i[21](null),C=!1,ct(g)}}}function J6(i,e,t){let n,o,{id:r}=e,{parentItemId:s}=e,{isMobile:a=!1}=e,{playerControlsHeight:l=0}=e,{returnFromSubMenu:u}=e,{ariaLabelReturnFromSubMenu:c=j("aria_label_submenu_back")}=e,{title:m}=e,{listRef:h}=e,{closeSettingsMenu:C}=e,{openSubMenuList:g}=e,{itemIdReturnCase:T}=e,{items:k}=e,{minWidth:H}=e,{refMenuItems:S}=e,v=ot(),E=v.ui.isFullscreen;O(i,E,Q=>t(23,o=Q));let q=v.ui.playerSize;O(i,q,Q=>t(22,n=Q));let U,F=Q=>{Jd(Q,u,{itemIdReturnCase:T,id:s},C)},ie=Q=>{ts(Q)&&(Yn(Q),u(),T.set(s))},fe=(Q=0)=>a&&o?`max-height: ${Math.round(n.height*.6)}px`:a?"":`max-height: ${n.height-32-Q-l}px; overflow: auto;`;function G(Q){ge[Q?"unshift":"push"](()=>{U=Q,t(10,U)})}function J(Q){ge[Q?"unshift":"push"](()=>{h=Q,t(0,h)})}return i.$$set=Q=>{"id"in Q&&t(1,r=Q.id),"parentItemId"in Q&&t(16,s=Q.parentItemId),"isMobile"in Q&&t(2,a=Q.isMobile),"playerControlsHeight"in Q&&t(17,l=Q.playerControlsHeight),"returnFromSubMenu"in Q&&t(3,u=Q.returnFromSubMenu),"ariaLabelReturnFromSubMenu"in Q&&t(4,c=Q.ariaLabelReturnFromSubMenu),"title"in Q&&t(5,m=Q.title),"listRef"in Q&&t(0,h=Q.listRef),"closeSettingsMenu"in Q&&t(18,C=Q.closeSettingsMenu),"openSubMenuList"in Q&&t(6,g=Q.openSubMenuList),"itemIdReturnCase"in Q&&t(19,T=Q.itemIdReturnCase),"items"in Q&&t(7,k=Q.items),"minWidth"in Q&&t(8,H=Q.minWidth),"refMenuItems"in Q&&t(9,S=Q.refMenuItems)},[h,r,a,u,c,m,g,k,H,S,U,E,q,F,ie,fe,s,l,C,T,G,J]}var Xc=class extends N{constructor(e){super(),D(this,e,J6,X6,R,{id:1,parentItemId:16,isMobile:2,playerControlsHeight:17,returnFromSubMenu:3,ariaLabelReturnFromSubMenu:4,title:5,listRef:0,closeSettingsMenu:18,openSubMenuList:6,itemIdReturnCase:19,items:7,minWidth:8,refMenuItems:9},Y6)}},C0=Xc;import{noop as $6}from"@vkontakte/videoplayer-shared";function ey(i){ve(i,"svelte-1ikfjte",".value.svelte-1ikfjte{position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis}")}function ty(i){let e,t,n;var o=i[8];function r(s,a){return{}}return o&&(e=Dt(o,r(i))),{c(){e&&B(e.$$.fragment),t=Je()},m(s,a){e&&L(e,s,a),w(s,t,a),n=!0},p(s,a){if(a&256&&o!==(o=s[8])){if(e){ae();let l=e;p(l.$$.fragment,1,0,()=>{V(l,1)}),ue()}o?(e=Dt(o,r(s,a)),B(e.$$.fragment),d(e.$$.fragment,1),L(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&y(t),e&&V(e,s)}}}function iy(i){let e,t;return e=new qr({props:{icon:i[8]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&256&&(r.icon=n[8]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function ny(i){let e,t;return{c(){e=I("div"),t=He(i[6]),f(e,"class","value svelte-1ikfjte")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&64&&je(t,n[6])},i:me,o:me,d(n){n&&y(e)}}}function oy(i){let e,t,n;var o=i[7];function r(s,a){return{}}return o&&(e=Dt(o,r(i))),{c(){e&&B(e.$$.fragment),t=Je()},m(s,a){e&&L(e,s,a),w(s,t,a),n=!0},p(s,a){if(a&128&&o!==(o=s[7])){if(e){ae();let l=e;p(l.$$.fragment,1,0,()=>{V(l,1)}),ue()}o?(e=Dt(o,r(s,a)),B(e.$$.fragment),d(e.$$.fragment,1),L(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&y(t),e&&V(e,s)}}}function ry(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g=[iy,ty],T=[];function k(E,q){return typeof E[8]=="string"?0:1}n=k(i,-1),o=T[n]=g[n](i);let H=[oy,ny],S=[];function v(E,q){return E[7]?0:1}return u=v(i,-1),c=S[u]=H[u](i),{c(){e=I("li"),t=I("div"),o.c(),r=Y(),s=I("div"),a=He(i[4]),l=Y(),c.c(),f(t,"class","icon-wrapper"),f(s,"class","label"),f(e,"class","item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",i[5]),f(e,"aria-haspopup","true"),f(e,"data-testid",i[1]),K(e,"mobile",i[2])},m(E,q){w(E,e,q),_(e,t),T[n].m(t,null),_(e,r),_(e,s),_(s,a),_(e,l),S[u].m(e,null),i[11](e),m=!0,h||(C=[ke(e,"click",bt(function(){xt(i[3])&&i[3].apply(this,arguments)})),ke(e,"keydown",i[9])],h=!0)},p(E,[q]){i=E;let U=n;n=k(i,q),n===U?T[n].p(i,q):(ae(),p(T[U],1,1,()=>{T[U]=null}),ue(),o=T[n],o?o.p(i,q):(o=T[n]=g[n](i),o.c()),d(o,1),o.m(t,null)),(!m||q&16)&&je(a,i[4]);let F=u;u=v(i,q),u===F?S[u].p(i,q):(ae(),p(S[F],1,1,()=>{S[F]=null}),ue(),c=S[u],c?c.p(i,q):(c=S[u]=H[u](i),c.c()),d(c,1),c.m(e,null)),(!m||q&32)&&f(e,"aria-label",i[5]),(!m||q&2)&&f(e,"data-testid",i[1]),(!m||q&4)&&K(e,"mobile",i[2])},i(E){m||(d(o),d(c),m=!0)},o(E){p(o),p(c),m=!1},d(E){E&&y(e),T[n].d(),S[u].d(),i[11](null),h=!1,ct(C)}}}function sy(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:r=$6}=e,{getSubItemForFocus:s}=e,{label:a}=e,{ariaLabel:l}=e,{value:u}=e,{valueComponent:c=void 0}=e,{ref:m}=e,{icon:h}=e,C=T=>Ks(T,r,s);function g(T){ge[T?"unshift":"push"](()=>{m=T,t(0,m)})}return i.$$set=T=>{"id"in T&&t(1,n=T.id),"isMobile"in T&&t(2,o=T.isMobile),"onClick"in T&&t(3,r=T.onClick),"getSubItemForFocus"in T&&t(10,s=T.getSubItemForFocus),"label"in T&&t(4,a=T.label),"ariaLabel"in T&&t(5,l=T.ariaLabel),"value"in T&&t(6,u=T.value),"valueComponent"in T&&t(7,c=T.valueComponent),"ref"in T&&t(0,m=T.ref),"icon"in T&&t(8,h=T.icon)},[m,n,o,r,a,l,u,c,h,C,s,g]}var $c=class extends N{constructor(e){super(),D(this,e,sy,ry,R,{id:1,isMobile:2,onClick:3,getSubItemForFocus:10,label:4,ariaLabel:5,value:6,valueComponent:7,ref:0,icon:8},ey)}},S0=$c;function ly(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18"),f(t,"clip-rule","evenodd"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,l,l[1],n?Re(o,l[1],u,null):Ne(l[1]),null),we(e,a=qe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function ay(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ef=class extends N{constructor(e){super(),D(this,e,ay,ly,R,{})}},T0=ef;function uy(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z"),f(t,"clip-rule","evenodd"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,l,l[1],n?Re(o,l[1],u,null):Ne(l[1]),null),we(e,a=qe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function cy(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var tf=class extends N{constructor(e){super(),D(this,e,cy,uy,R,{})}},I0=tf;function fy(i){let e,t,n,o,r,s=i[2].default,a=Ve(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("g"),n=M("path"),o=M("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"fill-rule","nonzero"),f(o,"d","M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),we(e,u)},m(c,m){w(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Be(a,s,c,c[1],r?Re(s,c[1],m,null):Ne(c[1]),null),we(e,u=qe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&y(e),a&&a.d(c)}}}function dy(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var nf=class extends N{constructor(e){super(),D(this,e,dy,fy,R,{})}},P0=nf;function my(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"d","M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,l,l[1],n?Re(o,l[1],u,null):Ne(l[1]),null),we(e,a=qe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function py(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var of=class extends N{constructor(e){super(),D(this,e,py,my,R,{})}},E0=of;function _y(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492"),f(t,"clip-rule","evenodd"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,l,l[1],n?Re(o,l[1],u,null):Ne(l[1]),null),we(e,a=qe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function hy(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var rf=class extends N{constructor(e){super(),D(this,e,hy,_y,R,{})}},sf=rf;function gy(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"d","M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,l,l[1],n?Re(o,l[1],u,null):Ne(l[1]),null),we(e,a=qe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function by(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var lf=class extends N{constructor(e){super(),D(this,e,by,gy,R,{})}},A0=lf;function vy(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z"),f(t,"clip-rule","evenodd"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,l,l[1],n?Re(o,l[1],u,null):Ne(l[1]),null),we(e,a=qe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function yy(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var af=class extends N{constructor(e){super(),D(this,e,yy,vy,R,{})}},M0=af;import"@vkontakte/videoplayer-core";function wy(i){ve(i,"svelte-1a7qwh6",".menu-item-value.svelte-1a7qwh6.svelte-1a7qwh6{position:relative;padding-right:22px}.menu-item-value.svelte-1a7qwh6 span.svelte-1a7qwh6{opacity:0.7}.menu-item-value.sub.svelte-1a7qwh6 span.svelte-1a7qwh6{opacity:1}.quality-icon.svelte-1a7qwh6.svelte-1a7qwh6{position:absolute;top:-8px;right:2px;width:15px}.quality-icon.svelte-1a7qwh6 svg{color:var(--blue-light)}")}function L0(i){let e,t,n;var o=i[3];function r(s,a){return{}}return o&&(t=Dt(o,r(i))),{c(){e=I("div"),t&&B(t.$$.fragment),f(e,"class","quality-icon svelte-1a7qwh6")},m(s,a){w(s,e,a),t&&L(t,e,null),n=!0},p(s,a){if(a&8&&o!==(o=s[3])){if(t){ae();let l=t;p(l.$$.fragment,1,0,()=>{V(l,1)}),ue()}o?(t=Dt(o,r(s,a)),B(t.$$.fragment),d(t.$$.fragment,1),L(t,e,null)):t=null}},i(s){n||(t&&d(t.$$.fragment,s),n=!0)},o(s){t&&p(t.$$.fragment,s),n=!1},d(s){s&&y(e),t&&V(t)}}}function ky(i){let e,t,n,o,r,s=i[3]&&!i[1]&&L0(i);return{c(){e=I("div"),t=I("span"),n=He(i[0]),o=Y(),s&&s.c(),f(t,"class","svelte-1a7qwh6"),f(e,"class","menu-item-value svelte-1a7qwh6"),K(e,"sub",i[2])},m(a,l){w(a,e,l),_(e,t),_(t,n),_(e,o),s&&s.m(e,null),r=!0},p(a,[l]){(!r||l&1)&&je(n,a[0]),a[3]&&!a[1]?s?(s.p(a,l),l&10&&d(s,1)):(s=L0(a),s.c(),d(s,1),s.m(e,null)):s&&(ae(),p(s,1,1,()=>{s=null}),ue()),(!r||l&4)&&K(e,"sub",a[2])},i(a){r||(d(s),r=!0)},o(a){p(s),r=!1},d(a){a&&y(e),s&&s.d()}}}function Cy(i,e,t){let n,{quality:o}=e,{label:r}=e,{isMobile:s}=e,{isSubCase:a=!1}=e;return i.$$set=l=>{"quality"in l&&t(4,o=l.quality),"label"in l&&t(0,r=l.label),"isMobile"in l&&t(1,s=l.isMobile),"isSubCase"in l&&t(2,a=l.isSubCase)},i.$$.update=()=>{i.$$.dirty&16&&t(3,n=tl(o))},[r,s,a,n,o]}var uf=class extends N{constructor(e){super(),D(this,e,Cy,ky,R,{quality:4,label:0,isMobile:1,isSubCase:2},wy)}},Fl=uf;import{VideoQuality as Sy}from"@vkontakte/videoplayer-core";var Hl=(i,e,t)=>{if(!i)return"...";let n=e.find(r=>r.value===i),o=n?n.displayValue:i;return t?i===Sy.INVARIANT?j("auto_quality_invariant"):j("auto_quality",{actual:o}):o};function Ty(i){ve(i,"svelte-vk2gx4",".menu-item-value-wrapper.svelte-vk2gx4{right:-22px;position:relative}")}function Iy(i){let e,t,n;return t=new Fl({props:{quality:i[0],label:i[1],isMobile:i[2]}}),{c(){e=I("div"),B(t.$$.fragment),f(e,"class","menu-item-value-wrapper svelte-vk2gx4")},m(o,r){w(o,e,r),L(t,e,null),n=!0},p(o,[r]){let s={};r&1&&(s.quality=o[0]),r&2&&(s.label=o[1]),r&4&&(s.isMobile=o[2]),t.$set(s)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),V(t)}}}function Py(i,e,t){let n,o,r,s,a=ot(),l=a.state.currentQuality$;O(i,l,C=>t(0,r=C));let u=a.state.availableQualities$;O(i,u,C=>t(8,o=C));let c=a.state.isAutoQualityEnabled$;O(i,c,C=>t(7,n=C));let m=a.ui.isMobile;O(i,m,C=>t(2,s=C));let h;return i.$$.update=()=>{i.$$.dirty&385&&t(1,h=Hl(r,o,n))},[r,h,s,l,u,c,m,n,o]}var cf=class extends N{constructor(e){super(),D(this,e,Py,Iy,R,{},Ty)}},V0=cf;import{noop as R0}from"@vkontakte/videoplayer-shared";function Ey(i){let e,t,n;var o=i[4];function r(s,a){return{}}return o&&(e=Dt(o,r(i))),{c(){e&&B(e.$$.fragment),t=Je()},m(s,a){e&&L(e,s,a),w(s,t,a),n=!0},p(s,a){if(a&16&&o!==(o=s[4])){if(e){ae();let l=e;p(l.$$.fragment,1,0,()=>{V(l,1)}),ue()}o?(e=Dt(o,r(s,a)),B(e.$$.fragment),d(e.$$.fragment,1),L(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&y(t),e&&V(e,s)}}}function Ay(i){let e;function t(r,s){return r[5]?Ly:My}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Je()},m(r,s){o.m(r,s),w(r,e,s)},p(r,s){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:me,o:me,d(r){r&&y(e),o.d(r)}}}function My(i){let e,t,n,o;return{c(){e=I("img"),f(e,"class","icon"),vo(e.src,t=i[4])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){w(r,e,s),n||(o=ke(e,"error",i[6]),n=!0)},p(r,s){s&16&&!vo(e.src,t=r[4])&&f(e,"src",t)},d(r){r&&y(e),n=!1,o()}}}function Ly(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner"></div>',f(e,"class","icon icon-error-stub")},m(t,n){w(t,e,n)},p:me,d(t){t&&y(e)}}}function Vy(i){let e,t,n,o,r,s,a,l,u,c,m,h=[Ay,Ey],C=[];function g(T,k){return typeof T[4]=="string"?0:1}return n=g(i,-1),o=C[n]=h[n](i),{c(){var T;e=I("li"),t=I("div"),o.c(),r=Y(),s=I("div"),a=He(i[2]),f(t,"class","icon-wrapper"),f(s,"class","label"),f(e,"class","item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",l=(T=i[3])!=null?T:i[2]),f(e,"data-testid",i[0]),K(e,"mobile",i[1])},m(T,k){w(T,e,k),_(e,t),C[n].m(t,null),_(e,r),_(e,s),_(s,a),u=!0,c||(m=[ke(e,"click",bt(i[7])),ke(e,"keydown",i[8])],c=!0)},p(T,[k]){var S;let H=n;n=g(T,k),n===H?C[n].p(T,k):(ae(),p(C[H],1,1,()=>{C[H]=null}),ue(),o=C[n],o?o.p(T,k):(o=C[n]=h[n](T),o.c()),d(o,1),o.m(t,null)),(!u||k&4)&&je(a,T[2]),(!u||k&12&&l!==(l=(S=T[3])!=null?S:T[2]))&&f(e,"aria-label",l),(!u||k&1)&&f(e,"data-testid",T[0]),(!u||k&2)&&K(e,"mobile",T[1])},i(T){u||(d(o),u=!0)},o(T){p(o),u=!1},d(T){T&&y(e),C[n].d(),c=!1,ct(m)}}}function Ry(i,e,t){let n,{id:o}=e,{isMobile:r=!1}=e,{onClick:s=R0}=e,{closeSettings:a=R0}=e,{label:l}=e,{ariaLabel:u}=e,{icon:c}=e,m=()=>{t(5,n=!0)},h=()=>{s(),a()},C=g=>{Mr(g,()=>h())};return i.$$set=g=>{"id"in g&&t(0,o=g.id),"isMobile"in g&&t(1,r=g.isMobile),"onClick"in g&&t(9,s=g.onClick),"closeSettings"in g&&t(10,a=g.closeSettings),"label"in g&&t(2,l=g.label),"ariaLabel"in g&&t(3,u=g.ariaLabel),"icon"in g&&t(4,c=g.icon)},t(5,n=!1),[o,r,l,u,c,n,m,h,C,s,a]}var ff=class extends N{constructor(e){super(),D(this,e,Ry,Vy,R,{id:0,isMobile:1,onClick:9,closeSettings:10,label:2,ariaLabel:3,icon:4})}},B0=ff;import{noop as Oy}from"@vkontakte/videoplayer-shared";function By(i){ve(i,"svelte-17wbjko",'.toggle_wrap.svelte-17wbjko{min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none}.toggle.svelte-17wbjko{float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer}.toggle.svelte-17wbjko::after{content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease}.toggle.on.svelte-17wbjko::after{background-color:var(--toggle-color-on);left:13px}.toggle-label.svelte-17wbjko{overflow:hidden}')}function Ny(i){let e,t,n,o;return{c(){e=I("div"),t=I("div"),n=Y(),o=I("div"),f(t,"class","toggle svelte-17wbjko"),K(t,"on",i[0]),f(o,"class","toggle-label svelte-17wbjko"),f(e,"class","toggle_wrap svelte-17wbjko")},m(r,s){w(r,e,s),_(e,t),_(e,n),_(e,o)},p(r,[s]){s&1&&K(t,"on",r[0])},i:me,o:me,d(r){r&&y(e)}}}function Dy(i,e,t){let{enabled:n=!1}=e;return i.$$set=o=>{"enabled"in o&&t(0,n=o.enabled)},[n]}var df=class extends N{constructor(e){super(),D(this,e,Dy,Ny,R,{enabled:0},By)}},N0=df;function Fy(i){let e,t,n;var o=i[4];function r(s,a){return{}}return o&&(e=Dt(o,r(i))),{c(){e&&B(e.$$.fragment),t=Je()},m(s,a){e&&L(e,s,a),w(s,t,a),n=!0},p(s,a){if(a&16&&o!==(o=s[4])){if(e){ae();let l=e;p(l.$$.fragment,1,0,()=>{V(l,1)}),ue()}o?(e=Dt(o,r(s,a)),B(e.$$.fragment),d(e.$$.fragment,1),L(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&y(t),e&&V(e,s)}}}function Hy(i){let e,t;return e=new qr({props:{icon:i[4]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.icon=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function qy(i){let e,t,n,o,r,s,a,l,u,c,m=[Hy,Fy],h=[];function C(g,T){return typeof g[4]=="string"?0:1}return n=C(i,-1),o=h[n]=m[n](i),u=new N0({props:{enabled:i[5]}}),{c(){e=I("div"),t=I("div"),o.c(),r=Y(),s=I("div"),a=He(i[2]),l=Y(),B(u.$$.fragment),f(t,"class","icon-wrapper"),f(s,"class","label"),f(e,"class","switch-wrapper"),K(e,"mobile",i[1])},m(g,T){w(g,e,T),_(e,t),h[n].m(t,null),_(e,r),_(e,s),_(s,a),_(e,l),L(u,e,null),c=!0},p(g,T){let k=n;n=C(g,T),n===k?h[n].p(g,T):(ae(),p(h[k],1,1,()=>{h[k]=null}),ue(),o=h[n],o?o.p(g,T):(o=h[n]=m[n](g),o.c()),d(o,1),o.m(t,null)),(!c||T&4)&&je(a,g[2]);let H={};T&32&&(H.enabled=g[5]),u.$set(H),(!c||T&2)&&K(e,"mobile",g[1])},i(g){c||(d(o),d(u.$$.fragment,g),c=!0)},o(g){p(o),p(u.$$.fragment,g),c=!1},d(g){g&&y(e),h[n].d(),V(u)}}}function Uy(i){let e,t,n,o,r,s;return t=new Br({props:{content:i[6],isMobile:i[1],placement:"left",translateX:10,isFullWidthWrapper:!0,maxTooltipWidth:i[7],$$slots:{default:[qy]},$$scope:{ctx:i}}}),{c(){var a;e=I("li"),B(t.$$.fragment),f(e,"class","item switch-item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",n=(a=i[3])!=null?a:i[2]),f(e,"data-testid",i[0]),K(e,"mobile",i[1])},m(a,l){w(a,e,l),L(t,e,null),o=!0,r||(s=[ke(e,"click",bt(i[9])),ke(e,"keydown",i[8])],r=!0)},p(a,[l]){var c;let u={};l&64&&(u.content=a[6]),l&2&&(u.isMobile=a[1]),l&128&&(u.maxTooltipWidth=a[7]),l&2102&&(u.$$scope={dirty:l,ctx:a}),t.$set(u),(!o||l&12&&n!==(n=(c=a[3])!=null?c:a[2]))&&f(e,"aria-label",n),(!o||l&1)&&f(e,"data-testid",a[0]),(!o||l&2)&&K(e,"mobile",a[1])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&y(e),V(t),r=!1,ct(s)}}}function zy(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:r=Oy}=e,{label:s}=e,{ariaLabel:a}=e,{icon:l}=e,{enabled:u=!1}=e,{tooltipText:c=void 0}=e,{maxTooltipWidth:m=void 0}=e,h=g=>{$d(g,u,T=>r(T))},C=()=>r(!u);return i.$$set=g=>{"id"in g&&t(0,n=g.id),"isMobile"in g&&t(1,o=g.isMobile),"onClick"in g&&t(10,r=g.onClick),"label"in g&&t(2,s=g.label),"ariaLabel"in g&&t(3,a=g.ariaLabel),"icon"in g&&t(4,l=g.icon),"enabled"in g&&t(5,u=g.enabled),"tooltipText"in g&&t(6,c=g.tooltipText),"maxTooltipWidth"in g&&t(7,m=g.maxTooltipWidth)},[n,o,s,a,l,u,c,m,h,C,r]}var mf=class extends N{constructor(e){super(),D(this,e,zy,Uy,R,{id:0,isMobile:1,onClick:10,label:2,ariaLabel:3,icon:4,enabled:5,tooltipText:6,maxTooltipWidth:7})}},D0=mf;import{isValidURL as Wy}from"@vkontakte/videoplayer-shared";function Ky(i){ve(i,"svelte-1t2c6ej",".settings-menu-container.mobile.svelte-1t2c6ej.svelte-1t2c6ej{width:100%}.settings-menu-container.svelte-1t2c6ej ul{margin:0;padding:0;list-style-type:none}.settings-menu-container.svelte-1t2c6ej .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden}.settings-menu-container.svelte-1t2c6ej .menu .item:first-child:not(.mobile){padding-top:6px;border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius)}.settings-menu-container.svelte-1t2c6ej .menu .item:last-child{padding-bottom:6px;border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius)}.settings-menu-container.svelte-1t2c6ej .menu.desktop{position:absolute;right:0;bottom:0}.settings-menu.svelte-1t2c6ej.svelte-1t2c6ej{line-height:40px}.settings-menu.desktop.svelte-1t2c6ej.svelte-1t2c6ej{min-width:300px}.settings-menu-container.svelte-1t2c6ej .menu.mobile{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.settings-menu-container.svelte-1t2c6ej .menu.mobile.hidden{display:none}.settings-menu-container.svelte-1t2c6ej .menu .item:not(.switch-item),.settings-menu-container.svelte-1t2c6ej .menu .switch-wrapper{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative}.settings-menu-container.svelte-1t2c6ej .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.svelte-1t2c6ej .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.svelte-1t2c6ej .item:not(.switch-item),.settings-menu.svelte-1t2c6ej .switch-wrapper{padding:0 32px 0 18px}.settings-menu.svelte-1t2c6ej .item.mobile:not(.switch-item),.settings-menu.svelte-1t2c6ej .switch-wrapper.mobile{padding:0 14px}.settings-menu.svelte-1t2c6ej .icon-wrapper{width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.settings-menu.svelte-1t2c6ej .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.svelte-1t2c6ej .item.header.svelte-1t2c6ej{color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px}.settings-menu-container.svelte-1t2c6ej .items::-webkit-scrollbar{width:8px}.settings-menu-container.svelte-1t2c6ej .items::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.settings-menu-container.svelte-1t2c6ej .items::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.settings-menu-container.svelte-1t2c6ej .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.svelte-1t2c6ej .items.mobile{overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left}.close.svelte-1t2c6ej.svelte-1t2c6ej{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.svelte-1t2c6ej.svelte-1t2c6ej:before,.close.svelte-1t2c6ej.svelte-1t2c6ej:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.svelte-1t2c6ej.svelte-1t2c6ej:before{transform:rotate(45deg)}.close.svelte-1t2c6ej.svelte-1t2c6ej:after{transform:rotate(-45deg)}")}function F0(i,e,t){let n=i.slice();return n[91]=e[t],n[92]=e,n[93]=t,n}function H0(i,e,t){let n=i.slice();return n[91]=e[t],n[94]=e,n[95]=t,n}function q0(i){let e,t,n,o,r,s,a,l=i[6]&&U0(i),u=wt(i[4]),c=[];for(let h=0;h<u.length;h+=1)c[h]=z0(H0(i,u,h));let m=h=>p(c[h],1,1,()=>{c[h]=null});return{c(){e=I("div"),l&&l.c(),t=Y(),n=I("ul");for(let h=0;h<c.length;h+=1)c[h].c();f(n,"class","items"),f(n,"role","menu"),f(n,"style",o=i[35]()),K(n,"mobile",i[6]),f(e,"class","settings-menu menu svelte-1t2c6ej"),f(e,"data-testid","settings-menu"),K(e,"desktop",!i[6]),K(e,"mobile",i[6]),K(e,"hidden",!i[8])},m(h,C){w(h,e,C),l&&l.m(e,null),_(e,t),_(e,n);for(let g=0;g<c.length;g+=1)c[g]&&c[g].m(n,null);i[69](n),r=!0,s||(a=[ke(e,"keydown",i[37]),ke(e,"mouseenter",i[33]),ke(e,"mouseleave",i[34])],s=!0)},p(h,C){if(h[6]?l?l.p(h,C):(l=U0(h),l.c(),l.m(e,t)):l&&(l.d(1),l=null),C[0]&1073741908|C[1]&1){u=wt(h[4]);let g;for(g=0;g<u.length;g+=1){let T=H0(h,u,g);c[g]?(c[g].p(T,C),d(c[g],1)):(c[g]=z0(T),c[g].c(),d(c[g],1),c[g].m(n,null))}for(ae(),g=u.length;g<c.length;g+=1)m(g);ue()}(!r||C[0]&64)&&K(n,"mobile",h[6]),(!r||C[0]&64)&&K(e,"desktop",!h[6]),(!r||C[0]&64)&&K(e,"mobile",h[6]),(!r||C[0]&256)&&K(e,"hidden",!h[8])},i(h){if(!r){for(let C=0;C<u.length;C+=1)d(c[C]);r=!0}},o(h){c=c.filter(Boolean);for(let C=0;C<c.length;C+=1)p(c[C]);r=!1},d(h){h&&y(e),l&&l.d(),mi(c,h),i[69](null),s=!1,ct(a)}}}function U0(i){let e,t,n,o,r,s;return{c(){e=I("div"),t=I("div"),t.textContent=`${j("submenu_settings")}`,n=Y(),o=I("div"),f(o,"class","close svelte-1t2c6ej"),f(e,"class","item header svelte-1t2c6ej"),K(e,"mobile",i[6])},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),r||(s=ke(o,"click",bt(i[31])),r=!0)},p(a,l){l[0]&64&&K(e,"mobile",a[6])},d(a){a&&y(e),r=!1,s()}}}function xy(i){let e,t;return e=new D0({props:{isMobile:i[6],id:i[91].id,onClick:i[91].onClick,icon:i[91].icon,label:i[91].label,ariaLabel:i[91].ariaLabel,enabled:i[91].enabled,tooltipText:i[91].tooltipText,maxTooltipWidth:i[91].maxTooltipWidth}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&64&&(r.isMobile=n[6]),o[0]&16&&(r.id=n[91].id),o[0]&16&&(r.onClick=n[91].onClick),o[0]&16&&(r.icon=n[91].icon),o[0]&16&&(r.label=n[91].label),o[0]&16&&(r.ariaLabel=n[91].ariaLabel),o[0]&16&&(r.enabled=n[91].enabled),o[0]&16&&(r.tooltipText=n[91].tooltipText),o[0]&16&&(r.maxTooltipWidth=n[91].maxTooltipWidth),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function jy(i){let e,t;return e=new B0({props:{isMobile:i[6],id:i[91].id,onClick:i[91].onClick,icon:i[91].icon,label:i[91].label,ariaLabel:i[91].ariaLabel,closeSettings:i[31]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&64&&(r.isMobile=n[6]),o[0]&16&&(r.id=n[91].id),o[0]&16&&(r.onClick=n[91].onClick),o[0]&16&&(r.icon=n[91].icon),o[0]&16&&(r.label=n[91].label),o[0]&16&&(r.ariaLabel=n[91].ariaLabel),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Gy(i){let e,t,n;function o(){return i[67](i[91])}function r(a){i[68](a,i[91])}let s={isMobile:i[6],id:i[91].id,icon:i[91].icon,label:i[91].label,ariaLabel:i[91].ariaLabel,value:i[91].value,valueComponent:i[91].valueComponent,onClick:o,getSubItemForFocus:i[91].getSubItemForFocus};return i[2][i[91].id]!==void 0&&(s.ref=i[2][i[91].id]),e=new S0({props:s}),ge.push(()=>ze(e,"ref",r)),{c(){B(e.$$.fragment)},m(a,l){L(e,a,l),n=!0},p(a,l){i=a;let u={};l[0]&64&&(u.isMobile=i[6]),l[0]&16&&(u.id=i[91].id),l[0]&16&&(u.icon=i[91].icon),l[0]&16&&(u.label=i[91].label),l[0]&16&&(u.ariaLabel=i[91].ariaLabel),l[0]&16&&(u.value=i[91].value),l[0]&16&&(u.valueComponent=i[91].valueComponent),l[0]&16&&(u.onClick=o),l[0]&16&&(u.getSubItemForFocus=i[91].getSubItemForFocus),!t&&l[0]&20&&(t=!0,u.ref=i[2][i[91].id],Ue(()=>t=!1)),e.$set(u)},i(a){n||(d(e.$$.fragment,a),n=!0)},o(a){p(e.$$.fragment,a),n=!1},d(a){V(e,a)}}}function z0(i){let e,t,n,o,r=[Gy,jy,xy],s=[];function a(l,u){return l[91].type==="OPEN_SUB_MENU"?0:l[91].type==="CLICK"?1:l[91].type==="SWITCH"?2:-1}return~(e=a(i,[-1,-1,-1,-1]))&&(t=s[e]=r[e](i)),{c(){t&&t.c(),n=Je()},m(l,u){~e&&s[e].m(l,u),w(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?~e&&s[e].p(l,u):(t&&(ae(),p(s[c],1,1,()=>{s[c]=null}),ue()),~e?(t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n)):t=null)},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&y(n),~e&&s[e].d(l)}}}function W0(i,e){var l,u;let t,n,o,r;function s(c){e[70](c,e[91])}let a={isMobile:e[6],playerControlsHeight:e[1],itemIdReturnCase:e[36],returnFromSubMenu:(l=e[91].returnFromSubMenu)!=null?l:e[32],id:e[91].id,parentItemId:e[91].parentItemId,title:e[91].title,closeSettingsMenu:e[91].closeSettingsMenu,openSubMenuList:e[30],items:e[91].items,minWidth:(u=e[91].minWidth)!=null?u:137,refMenuItems:e[2]};return e[3][e[91].id]!==void 0&&(a.listRef=e[3][e[91].id]),n=new C0({props:a}),ge.push(()=>ze(n,"listRef",s)),{key:i,first:null,c(){t=Je(),B(n.$$.fragment),this.first=t},m(c,m){w(c,t,m),L(n,c,m),r=!0},p(c,m){var C,g;e=c;let h={};m[0]&64&&(h.isMobile=e[6]),m[0]&2&&(h.playerControlsHeight=e[1]),m[0]&32&&(h.returnFromSubMenu=(C=e[91].returnFromSubMenu)!=null?C:e[32]),m[0]&32&&(h.id=e[91].id),m[0]&32&&(h.parentItemId=e[91].parentItemId),m[0]&32&&(h.title=e[91].title),m[0]&32&&(h.closeSettingsMenu=e[91].closeSettingsMenu),m[0]&32&&(h.items=e[91].items),m[0]&32&&(h.minWidth=(g=e[91].minWidth)!=null?g:137),m[0]&4&&(h.refMenuItems=e[2]),!o&&m[0]&40&&(o=!0,h.listRef=e[3][e[91].id],Ue(()=>o=!1)),n.$set(h)},i(c){r||(d(n.$$.fragment,c),r=!0)},o(c){p(n.$$.fragment,c),r=!1},d(c){c&&y(t),V(n,c)}}}function Yy(i){let e,t,n=[],o=new Map,r,s=i[7]&&q0(i),a=wt(i[5]),l=u=>u[91].id;for(let u=0;u<a.length;u+=1){let c=F0(i,a,u),m=l(c);o.set(m,n[u]=W0(m,c))}return{c(){e=I("div"),s&&s.c(),t=Y();for(let u=0;u<n.length;u+=1)n[u].c();f(e,"class","settings-menu-container svelte-1t2c6ej"),K(e,"hidden",!i[7]),K(e,"mobile",i[6])},m(u,c){w(u,e,c),s&&s.m(e,null),_(e,t);for(let m=0;m<n.length;m+=1)n[m]&&n[m].m(e,null);r=!0},p(u,c){u[7]?s?(s.p(u,c),c[0]&128&&d(s,1)):(s=q0(u),s.c(),d(s,1),s.m(e,t)):s&&(ae(),p(s,1,1,()=>{s=null}),ue()),c[0]&1073741934|c[1]&34&&(a=wt(u[5]),ae(),n=Kf(n,c,l,1,u,a,o,e,Wf,W0,null,F0),ue()),(!r||c[0]&128)&&K(e,"hidden",!u[7]),(!r||c[0]&64)&&K(e,"mobile",u[6])},i(u){if(!r){d(s);for(let c=0;c<a.length;c+=1)d(n[c]);r=!0}},o(u){p(s);for(let c=0;c<n.length;c+=1)p(n[c]);r=!1},d(u){u&&y(e),s&&s.d();for(let c=0;c<n.length;c+=1)n[c].d()}}}function Qy(i,e,t){let n,o,r,s,a,l,u,c,m,h,C,g,T,k,H,S,v,E,q,U,F,ie,fe,G,{ref:J=void 0}=e,{supportLink:Q}=e,{playerControlsHeight:W=0}=e,{returnFocus:ce}=e,z=ot(),x=Vt(),P=z.state.audioStream$;O(i,P,Pe=>t(53,m=Pe));let $=z.state.availableAudioStreams$;O(i,$,Pe=>t(52,c=Pe));let le=z.state.currentQuality$;O(i,le,Pe=>t(61,v=Pe));let Me=z.state.availableQualities$;O(i,Me,Pe=>t(54,h=Pe));let te=z.state.autoQualityLimitingAvailable$;O(i,te,Pe=>t(65,F=Pe));let be=z.state.isAutoQualityEnabled$;O(i,be,Pe=>t(62,E=Pe));let Ee=z.state.currentPlaybackRate$;O(i,Ee,Pe=>t(59,H=Pe));let Te=z.state.availablePlaybackRates$;O(i,Te,Pe=>t(51,u=Pe));let Ie=z.state.currentSubtitle$;O(i,Ie,Pe=>t(58,k=Pe));let rt=z.state.availableSubtitlesList$;O(i,rt,Pe=>t(49,a=Pe));let Ae=z.state.canDownload,We=z.state.hasMpegSources$;O(i,We,Pe=>t(66,ie=Pe));let ee=z.ui.settingsMenuVisible;O(i,ee,Pe=>t(7,G=Pe));let pe=z.ui.settingsMenuOpenedByKeyboard;O(i,pe,Pe=>t(72,r=Pe));let Ce=z.ui.isMobile;O(i,Ce,Pe=>t(6,s=Pe));let xe=z.ui.mobileNotReportControlHidden$;O(i,xe,Pe=>t(63,q=Pe));let st=z.state.canChangePlaybackSpeed$;O(i,st,Pe=>t(64,U=Pe));let at=z.state.trafficSavingEnabled$;O(i,at,Pe=>t(57,T=Pe));let nt=z.ui.playerSize;O(i,nt,Pe=>t(73,fe=Pe));let $e=z.ui.debugPanelVisible;O(i,$e,Pe=>t(56,g=Pe));let de=z.state.isInteractiveTime$,Se=z.ui.additionalSettingsMenuItems$;O(i,Se,Pe=>t(55,C=Pe));let et=z.actions.internal.downloadVideo,De=z.actions.internal.closeSettingsMenu,tt=!0,Fe=Oe({});O(i,Fe,Pe=>t(50,l=Pe));let ft=!1;function dt(Pe){t(8,tt=!1);let it=qt();it[Pe]=!0,Fe.set(it)}function he(){r||ce==null||ce(),Zt(),De(),ft=!1}function _t(Pe){z.actions.internal.setQuality(Pe),he()}function kt(Pe){z.actions.internal.setAudioStream(Pe),he()}function Ct(Pe){z.actions.internal.setTrafficSavingEnabled(Pe)}function Ze(Pe){z.actions.internal.setPlaybackRate(Pe),he()}function Pt(Pe){z.actions.internal.setSubtitle(Pe),he()}function qt(){let Pe=l;return Object.keys(Pe).forEach(it=>{Pe[it]=!1}),Pe}function Zt(){t(8,tt=!0);let Pe=qt();Fe.set(Pe)}function Ut(){et()}function zt(){Wy(Q)&&window.open(Q,"_blank"),z.actions.internal.reportProblem(),z.actions.internal.pause()}function Xt(){Pr(z.actions.internal.getDebugTextData())}let Wt=()=>{let Pe=z.actions.internal.getTraceTextData(),it=new Blob([...Pe],{type:"application/json"}),Ot=window.URL.createObjectURL(it);rr(Ot,"vk_player_trace_info","json")};function Ke(){$e.set(!g)}function Xe(){ft=!0}function Tt(){ft=!1}function _e(){return s?`max-height: ${Math.round(fe.height*.6)}px`:`max-height: ${fe.height-32-W}px; overflow: auto;`}let Jt,Et,ii,Rt,jt,oi,Bt,si=Oe();O(i,si,Pe=>t(60,S=Pe));let li={},ai={},Ci=Pe=>{Ws(Pe,De)},Nt=[],pi=[];Lt(()=>{let Pe=de.subscribe(it=>{it&&!s&&!ft&&!r&&he()});return()=>{Pe()}});let yi=Pe=>dt(Pe.subMenuId);function Si(Pe,it){i.$$.not_equal(li[it.id],Pe)&&(li[it.id]=Pe,t(2,li))}function nn(Pe){ge[Pe?"unshift":"push"](()=>{J=Pe,t(0,J)})}function Ti(Pe,it){i.$$.not_equal(ai[it.id],Pe)&&(ai[it.id]=Pe,t(3,ai))}return i.$$set=Pe=>{"ref"in Pe&&t(0,J=Pe.ref),"supportLink"in Pe&&t(38,Q=Pe.supportLink),"playerControlsHeight"in Pe&&t(1,W=Pe.playerControlsHeight),"returnFocus"in Pe&&t(39,ce=Pe.returnFocus)},i.$$.update=()=>{var Pe;if(i.$$.dirty[0]&128&&G&&Zt(),i.$$.dirty[1]&1082130432|i.$$.dirty[2]&1&&t(47,n=Hl(v,h,E)),i.$$.dirty[2]&18&&t(40,Jt=Ae&&ie&&!q),i.$$.dirty[2]&10&&t(41,Et=x.features.trafficSaving&&!q&&F),i.$$.dirty[1]&262144|i.$$.dirty[2]&2&&t(42,ii=a.length>0&&!q),i.$$.dirty[2]&6&&t(43,Rt=!!U&&!q),i.$$.dirty[1]&2097152|i.$$.dirty[2]&2&&t(44,jt=x.features.audioLanguages&&c.length>=2&&!q),i.$$.dirty[2]&2&&t(48,o=!q),i.$$.dirty[1]&1073741824|i.$$.dirty[2]&1&&t(45,oi=E?j("auto_quality_option"):v),i.$$.dirty[1]&269484032&&t(46,Bt=(Pe=u.find(it=>it.value===H))==null?void 0:Pe.displayValue),i.$$.dirty[0]&4|i.$$.dirty[1]&536870912){let it=S;it&&(Xd(li,it),si.set(void 0))}i.$$.dirty[0]&88|i.$$.dirty[1]&536346112&&(t(4,Nt=[]),o&&Nt.push({id:"quality-settings",weight:oo["quality-settings"],type:"OPEN_SUB_MENU",subMenuId:"quality-sub",getSubItemForFocus:()=>{let it=h.findIndex(Ot=>Ot.selected);return ai["quality-sub"].children[it+1]},ariaLabel:j("aria_label_menu_quality",{actual:oi}),icon:il,label:j("menu_quality"),value:n,valueComponent:V0}),jt&&Nt.push({id:"audio-language-settings",weight:oo["audio-language-settings"],type:"OPEN_SUB_MENU",subMenuId:"audio-language-sub",getSubItemForFocus:()=>{let it=c.findIndex(Ot=>Ot.id===(m==null?void 0:m.id));return ai["audio-language-sub"].children[it+1]},ariaLabel:j("aria_label_menu_audio_languages",{actual:Ol(m,c)}),icon:E0,label:j("menu_audio_languages"),value:Ol(m,c)}),Rt&&Nt.push({id:"playback-rate-settings",weight:oo["playback-rate-settings"],type:"OPEN_SUB_MENU",subMenuId:"playback-rate-sub",getSubItemForFocus:()=>{let it=u.findIndex(Ot=>Ot.selected);return ai["playback-rate-sub"].children[it+1]},ariaLabel:j("aria_label_menu_rate",{actual:Bt}),icon:P0,label:j("menu_playback_rate"),value:`${H}x`}),ii&&Nt.push({id:"subtitles-settings",weight:oo["subtitles-settings"],type:"OPEN_SUB_MENU",subMenuId:"subtitles-sub",getSubItemForFocus:()=>{let it=a.findIndex(Ot=>Ot.selected);return ai["subtitles-sub"].children[it+1]},ariaLabel:j("aria_label_menu_subtitle",{actual:k.displayValue}),icon:nl,label:j("subtitles_caption"),value:k.displayValue}),Et&&Nt.push({id:"traffic-saving-settings",weight:oo["traffic-saving-settings"],type:"SWITCH",onClick:Ct,ariaLabel:T?j("aria_label_submenu_traffic_saving_off"):`${j("aria_label_submenu_traffic_saving_on")}. ${j("traffic_saving_helper_text")}`,icon:I0,label:j("menu_traffic_saving"),enabled:T,tooltipText:j("traffic_saving_helper_text"),maxTooltipWidth:175}),Jt&&Nt.push({id:"download",weight:oo.download,type:"CLICK",onClick:Ut,label:j("download_video_caption"),ariaLabel:j("aria_label_menu_download"),icon:T0}),x.showSupport&&Nt.push({id:"report",weight:oo.report,type:"CLICK",onClick:zt,label:j("menu_report"),ariaLabel:`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`,icon:M0,isHiddenFor:["desktop"]}),Nt.push({id:"copy-data",weight:oo["copy-data"],type:"CLICK",onClick:Xt,label:j("menu_copy_debug"),ariaLabel:j("menu_copy_debug"),icon:sf,isHiddenFor:["desktop"]}),x.features.saveTraceInfoToFile&&Nt.push({id:"save-trace-info",weight:oo["save-trace-info"],type:"CLICK",onClick:Wt,label:j("menu_save_debug"),ariaLabel:j("menu_save_debug"),icon:sf,isHiddenFor:["desktop"]}),Nt.push({id:"debug-info",weight:oo["debug-info"],type:"CLICK",onClick:Ke,label:g?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"),ariaLabel:j("menu_debug_overlay"),icon:A0,isHiddenFor:["desktop"]}),t(4,Nt=[...Nt,...C.map(it=>yt(Qe({},it),{isAdditional:!0}))].filter(it=>{var Ot,Ii,_i;return!((Ot=it.isHiddenFor)!=null&&Ot.length)||!((Ii=it.isHiddenFor)!=null&&Ii.includes("desktop"))&&!s||!((_i=it.isHiddenFor)!=null&&_i.includes("mobile"))&&s}).sort(cr))),i.$$.dirty[0]&96|i.$$.dirty[1]&16515072&&(t(5,pi=[]),l["quality-sub"]&&pi.push({id:"quality-sub",parentItemId:"quality-settings",title:j("submenu_quality"),closeSettingsMenu:De,items:[...h.map(it=>({type:"SELECT_VALUE",value:it.value,valueComponent:Fl,valueComponentParams:{quality:it.value,label:it.displayValue,isMobile:s,isSubCase:!0},selectItem:_t,selected:it.selected,label:it.displayValue}))]}),l["audio-language-sub"]&&pi.push({id:"audio-language-sub",parentItemId:"audio-language-settings",title:j("submenu_audio_languages"),closeSettingsMenu:De,items:c.map(it=>({type:"SELECT_VALUE",value:it,dataValue:it.id,selectItem:kt,selected:it.id===(m==null?void 0:m.id),label:Ol(it,c)}))}),l["playback-rate-sub"]&&pi.push({id:"playback-rate-sub",parentItemId:"playback-rate-settings",title:j("submenu_playback_rate"),closeSettingsMenu:De,items:u.map(it=>({type:"SELECT_VALUE",value:it.value,selectItem:Ze,selected:it.selected,label:it.displayValue}))}),l["subtitles-sub"]&&pi.push({id:"subtitles-sub",parentItemId:"subtitles-settings",minWidth:164,title:j("subtitles_caption"),closeSettingsMenu:De,items:a.map(it=>({type:"SELECT_VALUE",value:it,selectItem:Pt,selected:it.selected,label:it.displayValue}))}))},[J,W,li,ai,Nt,pi,s,G,tt,P,$,le,Me,te,be,Ee,Te,Ie,rt,We,ee,pe,Ce,xe,st,at,nt,$e,Se,Fe,dt,he,Zt,Xe,Tt,_e,si,Ci,Q,ce,Jt,Et,ii,Rt,jt,oi,Bt,n,o,a,l,u,c,m,h,C,g,T,k,H,S,v,E,q,U,F,ie,yi,Si,nn,Ti]}var pf=class extends N{constructor(e){super(),D(this,e,Qy,Yy,R,{ref:0,supportLink:38,playerControlsHeight:1,returnFocus:39},Ky,[-1,-1,-1,-1])}},ql=pf;var{window:Zy}=er;function Jy(i){ve(i,"svelte-13f9p53",".player-wrapper.svelte-13f9p53{position:absolute;width:100%;height:100%}.player-wrapper.svelte-13f9p53 .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-13f9p53{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-13f9p53,.video-container.svelte-13f9p53,.ads-container.svelte-13f9p53{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-13f9p53{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-13f9p53{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-13f9p53{transition:none}.nocursor.svelte-13f9p53{cursor:none}.ads-container.svelte-13f9p53{z-index:var(--ads-container-z-index);background:var(--black)}.settings-menu.svelte-13f9p53{position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;transition:opacity 0.2s, visibility 0.2s}")}function x0(i){var n;let e,t;return e=new Nl({props:{thumbUrl:i[3],startTime:(n=i[4])==null?void 0:n.startTime}}),{c(){B(e.$$.fragment)},m(o,r){L(e,o,r),t=!0},p(o,r){var a;let s={};r[0]&8&&(s.thumbUrl=o[3]),r[0]&16&&(s.startTime=(a=o[4])==null?void 0:a.startTime),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){V(e,o)}}}function j0(i){let e,t;return e=new Ur({props:{kind:"recover",thumbUrl:i[3]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function G0(i){let e,t;return e=new Ur({props:{kind:"record",thumbUrl:i[3]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Y0(i){let e,t,n;return t=new qs({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=I("div"),B(t.$$.fragment),f(e,"class","ads-container svelte-13f9p53"),K(e,"hidden",i[38]!=="ads")},m(o,r){w(o,e,r),L(t,e,null),n=!0},p(o,r){let s={};r[0]&256&&(s.adsSlotId=o[8]),r[0]&512&&(s.adsParams=o[9]),r[0]&1024&&(s.adsPreviewParam=o[10]),r[0]&2048&&(s.duration=o[11]),t.$set(s),(!n||r[1]&128)&&K(e,"hidden",o[38]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),V(t)}}}function Q0(i){let e,t;return e=new P1({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&262144&&(r.title=n[18]),o[0]&524288&&(r.thumb=n[19]),o[0]&8388608&&(r.playNextVideo=n[23]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Z0(i){let e,t;return e=new c0({props:{title:i[2],isHidden:!i[36]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.title=n[2]),o[1]&32&&(r.isHidden=!n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function X0(i){let e,t;return e=new Ml({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&160&&(r.isShifted=n[38]==="video"&&n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function J0(i){let e,t,n;return t=new Ms({props:{"aria-label":j("video360")}}),{c(){e=I("div"),B(t.$$.fragment),f(e,"class","spherical-video-icon svelte-13f9p53")},m(o,r){w(o,e,r),L(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),V(t)}}}function $0(i){let e,t;return e=new Vl({props:{thumbUrl:i[3],chromecastDeviceName:i[55]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),o[1]&16777216&&(r.chromecastDeviceName=n[55]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function e_(i){let e,t;return e=new Ll({props:{shifted:i[36],captions:i[57],position:i[58],playerSize:i[34]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&32&&(r.shifted=n[36]),o[1]&67108864&&(r.captions=n[57]),o[1]&134217728&&(r.position=n[58]),o[1]&8&&(r.playerSize=n[34]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function t_(i){let e,t,n,o,r;return t=new Rl({}),{c(){e=I("div"),B(t.$$.fragment)},m(s,a){w(s,e,a),L(t,e,null),n=!0,o||(r=[ke(e,"contextmenu",ri(i[110])),ke(e,"click",bt(i[121]))],o=!0)},p:me,i(s){n||(d(t.$$.fragment,s),n=!0)},o(s){p(t.$$.fragment,s),n=!1},d(s){s&&y(e),V(t),o=!1,ct(r)}}}function i_(i){let e,t,n,o;function r(l){i[161](l)}function s(l){i[162](l)}let a={bottomHidden:i[38]==="thumb"||i[38]==="LiveWaitingStart"||i[38]==="LiveWaitingRecover"||i[38]==="LiveWaitingRecord",bottomNoSmooth:i[51],showControls:i[36],isAds:i[38]==="ads",canRewindLive:i[6]&&i[59]!==0,logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[14],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],customFullscreenSupported:a_,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[108],seekToInteractive:i[26],playPrevChapter:i[27]};return i[41]!==void 0&&(a.playerControlsWrapperRef=i[41]),i[42]!==void 0&&(a.playerControlsRef=i[42]),e=new Al({props:a}),ge.push(()=>ze(e,"playerControlsWrapperRef",r)),ge.push(()=>ze(e,"playerControlsRef",s)),{c(){B(e.$$.fragment)},m(l,u){L(e,l,u),o=!0},p(l,u){let c={};u[1]&128&&(c.bottomHidden=l[38]==="thumb"||l[38]==="LiveWaitingStart"||l[38]==="LiveWaitingRecover"||l[38]==="LiveWaitingRecord"),u[1]&1048576&&(c.bottomNoSmooth=l[51]),u[1]&32&&(c.showControls=l[36]),u[1]&128&&(c.isAds=l[38]==="ads"),u[0]&64|u[1]&268435456&&(c.canRewindLive=l[6]&&l[59]!==0),u[0]&4096&&(c.logoClickable=l[12]),u[0]&8192&&(c.logoHidden=l[13]),u[0]&16384&&(c.logoTargetUrl=l[14]),u[0]&32768&&(c.showNextPrevButtons=l[15]),u[0]&65536&&(c.nextButtonActive=l[16]),u[0]&131072&&(c.prevButtonActive=l[17]),u[0]&1048576&&(c.isOneVideoPlaylist=l[20]),u[0]&8388608&&(c.playNextVideo=l[23]),u[0]&16777216&&(c.playPrevVideo=l[24]),u[0]&33554432&&(c.repeatPlaylist=l[25]),u[0]&67108864&&(c.seekToInteractive=l[26]),u[0]&134217728&&(c.playPrevChapter=l[27]),!t&&u[1]&1024&&(t=!0,c.playerControlsWrapperRef=l[41],Ue(()=>t=!1)),!n&&u[1]&2048&&(n=!0,c.playerControlsRef=l[42],Ue(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){V(e,l)}}}function n_(i){var a;let e,t,n,o;function r(l){i[164](l)}let s={supportLink:i[21],playerControlsHeight:(a=i[42])==null?void 0:a.clientHeight,returnFocus:i[163]};return i[29]!==void 0&&(s.ref=i[29]),t=new ql({props:s}),ge.push(()=>ze(t,"ref",r)),{c(){e=I("div"),B(t.$$.fragment),f(e,"class","settings-menu svelte-13f9p53")},m(l,u){w(l,e,u),L(t,e,null),o=!0},p(l,u){var m;let c={};u[0]&2097152&&(c.supportLink=l[21]),u[1]&2048&&(c.playerControlsHeight=(m=l[42])==null?void 0:m.clientHeight),u[1]&262144&&(c.returnFocus=l[163]),!n&&u[0]&536870912&&(n=!0,c.ref=l[29],Ue(()=>n=!1)),t.$set(c)},i(l){o||(d(t.$$.fragment,l),o=!0)},o(l){p(t.$$.fragment,l),o=!1},d(l){l&&y(e),V(t)}}}function o_(i){let e,t;return e=new Vr({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function r_(i){let e,t;return e=new O1({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function s_(i){let e,t;return e=new Qs({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function l_(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,T,k,H,S,v,E,q,U,F,ie,fe,G;e=new Bl({props:{hidden:i[38]!=="thumb"||i[37]||i[94]&&i[5],thumbUrl:i[3],startVideo:i[28]}});let J=i[38]==="LiveWaitingStart"&&x0(i),Q=i[38]==="LiveWaitingRecover"&&j0(i),W=i[38]==="LiveWaitingRecord"&&G0(i),ce=i[7]&&i[22]&&Y0(i),z=i[31]&&i[18]&&i[19]&&Q0(i),x=i[45]&&Z0(i),P=i[50]&&X0(i),$=i[54]&&J0(i),le=i[39]&&$0(i),Me=i[56].value!=="off"&&e_(i),te=i[37]&&t_(i),be=i[22]&&i_(i),Ee=!i[39]&&i[38]!=="ads"&&n_(i);k=new zs({props:{isLive:i[60],isHidden:!i[44],isPlaying:i[52],position:i[58],duration:i[61]}}),S=new $p({props:{data:i[105]}});function Te(ee){i[166](ee)}let Ie={supportLink:i[21],returnFocus:i[165],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[62]};i[32]!==void 0&&(Ie.menuElementRef=i[32]),E=new l1({props:Ie}),ge.push(()=>ze(E,"menuElementRef",Te));let rt=i[43]&&o_(i),Ae=i[63]&&r_(i),We=i[64]&&s_(i);return{c(){B(e.$$.fragment),t=Y(),J&&J.c(),n=Y(),Q&&Q.c(),o=Y(),W&&W.c(),r=Y(),ce&&ce.c(),s=Y(),z&&z.c(),a=Y(),x&&x.c(),l=Y(),P&&P.c(),u=Y(),$&&$.c(),c=Y(),le&&le.c(),m=Y(),Me&&Me.c(),h=Y(),te&&te.c(),C=Y(),be&&be.c(),g=Y(),Ee&&Ee.c(),T=Y(),B(k.$$.fragment),H=Y(),B(S.$$.fragment),v=Y(),B(E.$$.fragment),U=Y(),rt&&rt.c(),F=Y(),Ae&&Ae.c(),ie=Y(),We&&We.c(),fe=Je()},m(ee,pe){L(e,ee,pe),w(ee,t,pe),J&&J.m(ee,pe),w(ee,n,pe),Q&&Q.m(ee,pe),w(ee,o,pe),W&&W.m(ee,pe),w(ee,r,pe),ce&&ce.m(ee,pe),w(ee,s,pe),z&&z.m(ee,pe),w(ee,a,pe),x&&x.m(ee,pe),w(ee,l,pe),P&&P.m(ee,pe),w(ee,u,pe),$&&$.m(ee,pe),w(ee,c,pe),le&&le.m(ee,pe),w(ee,m,pe),Me&&Me.m(ee,pe),w(ee,h,pe),te&&te.m(ee,pe),w(ee,C,pe),be&&be.m(ee,pe),w(ee,g,pe),Ee&&Ee.m(ee,pe),w(ee,T,pe),L(k,ee,pe),w(ee,H,pe),L(S,ee,pe),w(ee,v,pe),L(E,ee,pe),w(ee,U,pe),rt&&rt.m(ee,pe),w(ee,F,pe),Ae&&Ae.m(ee,pe),w(ee,ie,pe),We&&We.m(ee,pe),w(ee,fe,pe),G=!0},p(ee,pe){let Ce={};pe[0]&32|pe[1]&192&&(Ce.hidden=ee[38]!=="thumb"||ee[37]||ee[94]&&ee[5]),pe[0]&8&&(Ce.thumbUrl=ee[3]),pe[0]&268435456&&(Ce.startVideo=ee[28]),e.$set(Ce),ee[38]==="LiveWaitingStart"?J?(J.p(ee,pe),pe[1]&128&&d(J,1)):(J=x0(ee),J.c(),d(J,1),J.m(n.parentNode,n)):J&&(ae(),p(J,1,1,()=>{J=null}),ue()),ee[38]==="LiveWaitingRecover"?Q?(Q.p(ee,pe),pe[1]&128&&d(Q,1)):(Q=j0(ee),Q.c(),d(Q,1),Q.m(o.parentNode,o)):Q&&(ae(),p(Q,1,1,()=>{Q=null}),ue()),ee[38]==="LiveWaitingRecord"?W?(W.p(ee,pe),pe[1]&128&&d(W,1)):(W=G0(ee),W.c(),d(W,1),W.m(r.parentNode,r)):W&&(ae(),p(W,1,1,()=>{W=null}),ue()),ee[7]&&ee[22]?ce?(ce.p(ee,pe),pe[0]&4194432&&d(ce,1)):(ce=Y0(ee),ce.c(),d(ce,1),ce.m(s.parentNode,s)):ce&&(ae(),p(ce,1,1,()=>{ce=null}),ue()),ee[31]&&ee[18]&&ee[19]?z?(z.p(ee,pe),pe[0]&786432|pe[1]&1&&d(z,1)):(z=Q0(ee),z.c(),d(z,1),z.m(a.parentNode,a)):z&&(ae(),p(z,1,1,()=>{z=null}),ue()),ee[45]?x?(x.p(ee,pe),pe[1]&16384&&d(x,1)):(x=Z0(ee),x.c(),d(x,1),x.m(l.parentNode,l)):x&&(ae(),p(x,1,1,()=>{x=null}),ue()),ee[50]?P?(P.p(ee,pe),pe[1]&524288&&d(P,1)):(P=X0(ee),P.c(),d(P,1),P.m(u.parentNode,u)):P&&(ae(),p(P,1,1,()=>{P=null}),ue()),ee[54]?$?pe[1]&8388608&&d($,1):($=J0(ee),$.c(),d($,1),$.m(c.parentNode,c)):$&&(ae(),p($,1,1,()=>{$=null}),ue()),ee[39]?le?(le.p(ee,pe),pe[1]&256&&d(le,1)):(le=$0(ee),le.c(),d(le,1),le.m(m.parentNode,m)):le&&(ae(),p(le,1,1,()=>{le=null}),ue()),ee[56].value!=="off"?Me?(Me.p(ee,pe),pe[1]&33554432&&d(Me,1)):(Me=e_(ee),Me.c(),d(Me,1),Me.m(h.parentNode,h)):Me&&(ae(),p(Me,1,1,()=>{Me=null}),ue()),ee[37]?te?(te.p(ee,pe),pe[1]&64&&d(te,1)):(te=t_(ee),te.c(),d(te,1),te.m(C.parentNode,C)):te&&(ae(),p(te,1,1,()=>{te=null}),ue()),ee[22]?be?(be.p(ee,pe),pe[0]&4194304&&d(be,1)):(be=i_(ee),be.c(),d(be,1),be.m(g.parentNode,g)):be&&(ae(),p(be,1,1,()=>{be=null}),ue()),!ee[39]&&ee[38]!=="ads"?Ee?(Ee.p(ee,pe),pe[1]&384&&d(Ee,1)):(Ee=n_(ee),Ee.c(),d(Ee,1),Ee.m(T.parentNode,T)):Ee&&(ae(),p(Ee,1,1,()=>{Ee=null}),ue());let xe={};pe[1]&536870912&&(xe.isLive=ee[60]),pe[1]&8192&&(xe.isHidden=!ee[44]),pe[1]&2097152&&(xe.isPlaying=ee[52]),pe[1]&134217728&&(xe.position=ee[58]),pe[1]&1073741824&&(xe.duration=ee[61]),k.$set(xe);let st={};pe[0]&2097152&&(st.supportLink=ee[21]),pe[1]&262144&&(st.returnFocus=ee[165]),pe[1]&4&&(st.visible=ee[33]),pe[1]&512&&(st.playerContainerRef=ee[40]),pe[1]&1024&&(st.controlsContainerRef=ee[41]),pe[2]&1&&(st.position=ee[62]),!q&&pe[1]&2&&(q=!0,st.menuElementRef=ee[32],Ue(()=>q=!1)),E.$set(st),ee[43]?rt?pe[1]&4096&&d(rt,1):(rt=o_(ee),rt.c(),d(rt,1),rt.m(F.parentNode,F)):rt&&(ae(),p(rt,1,1,()=>{rt=null}),ue()),ee[63]?Ae?pe[2]&2&&d(Ae,1):(Ae=r_(ee),Ae.c(),d(Ae,1),Ae.m(ie.parentNode,ie)):Ae&&(ae(),p(Ae,1,1,()=>{Ae=null}),ue()),ee[64]?We?pe[2]&4&&d(We,1):(We=s_(ee),We.c(),d(We,1),We.m(fe.parentNode,fe)):We&&(ae(),p(We,1,1,()=>{We=null}),ue())},i(ee){G||(d(e.$$.fragment,ee),d(J),d(Q),d(W),d(ce),d(z),d(x),d(P),d($),d(le),d(Me),d(te),d(be),d(Ee),d(k.$$.fragment,ee),d(S.$$.fragment,ee),d(E.$$.fragment,ee),d(rt),d(Ae),d(We),G=!0)},o(ee){p(e.$$.fragment,ee),p(J),p(Q),p(W),p(ce),p(z),p(x),p(P),p($),p(le),p(Me),p(te),p(be),p(Ee),p(k.$$.fragment,ee),p(S.$$.fragment,ee),p(E.$$.fragment,ee),p(rt),p(Ae),p(We),G=!1},d(ee){ee&&(y(t),y(n),y(o),y(r),y(s),y(a),y(l),y(u),y(c),y(m),y(h),y(C),y(g),y(T),y(H),y(v),y(U),y(F),y(ie),y(fe)),V(e,ee),J&&J.d(ee),Q&&Q.d(ee),W&&W.d(ee),ce&&ce.d(ee),z&&z.d(ee),x&&x.d(ee),P&&P.d(ee),$&&$.d(ee),le&&le.d(ee),Me&&Me.d(ee),te&&te.d(ee),be&&be.d(ee),Ee&&Ee.d(ee),V(k,ee),V(S,ee),V(E,ee),rt&&rt.d(ee),Ae&&Ae.d(ee),We&&We.d(ee)}}}function $y(i){let e,t,n,o,r=i[53],s,a,l,u,c=l_(i);return{c(){e=I("div"),t=I("div"),o=Y(),c.c(),s=Je(),f(t,"class","video-container svelte-13f9p53"),f(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[47]})`),f(t,"data-testid","video-container"),f(t,"data-is-playing",i[52]),K(t,"fast-rotate",!i[1].isSmoothVideoRotate),f(e,"class","video-wrapper svelte-13f9p53"),K(e,"hidden",i[38]!=="video"),K(e,"nocursor",i[46])},m(m,h){w(m,e,h),_(e,t),i[160](t),w(m,o,h),c.m(m,h),w(m,s,h),a=!0,l||(u=[ke(e,"contextmenu",ri(i[110])),ke(e,"mousedown",ri(i[115])),ke(e,"mouseup",ri(i[116])),ke(e,"click",ri(i[118])),ke(e,"dblclick",ri(i[117]))],l=!0)},p(m,h){(!a||h[1]&65552&&n!==(n=`transform: rotate(${m[35]}deg) scale(${m[47]})`))&&f(t,"style",n),(!a||h[1]&2097152)&&f(t,"data-is-playing",m[52]),(!a||h[0]&2)&&K(t,"fast-rotate",!m[1].isSmoothVideoRotate),(!a||h[1]&128)&&K(e,"hidden",m[38]!=="video"),(!a||h[1]&32768)&&K(e,"nocursor",m[46]),h[1]&4194304&&R(r,r=m[53])?(ae(),p(c,1,1,me),ue(),c=l_(m),c.c(),d(c,1),c.m(s.parentNode,s)):c.p(m,h)},i(m){a||(d(c),a=!0)},o(m){p(c),a=!1},d(m){m&&(y(e),y(o),y(s)),i[160](null),c.d(m),l=!1,ct(u)}}}function e8(i){let e,t,n,o,r,s,a,l={toggleFullscreen:i[108],hideContextMenu:i[109],showHotKeyHelpers:i[119],showKeyMap:i[120],isAds:i[38]==="ads",fakePlayButtonHandler:i[48]?i[107]:void 0,$$slots:{default:[$y]},$$scope:{ctx:i}};return t=new E1({props:l}),i[167](t),{c(){e=I("div"),B(t.$$.fragment),n=Y(),o=I("div"),f(o,"class","overlay-container"),f(e,"class","player-wrapper svelte-13f9p53")},m(u,c){w(u,e,c),L(t,e,null),_(e,n),_(e,o),i[168](o),i[169](e),r=!0,s||(a=[ke(Zy,"blur",i[109]),ke(e,"mouseenter",i[111]),ke(e,"mouseleave",i[113]),ke(e,"mousemove",i[114]),ke(e,"click",i[122],!0),ke(e,"focusin",i[112],!0)],s=!0)},p(u,c){let m={};c[1]&128&&(m.isAds=u[38]==="ads"),c[1]&131072&&(m.fakePlayButtonHandler=u[48]?u[107]:void 0),c[0]&1073741823|c[1]&2147352575|c[2]&7|c[6]&1024&&(m.$$scope={dirty:c,ctx:u}),t.$set(m)},i(u){r||(d(t.$$.fragment,u),r=!0)},o(u){p(t.$$.fragment,u),r=!1},d(u){u&&y(e),i[167](null),V(t),i[168](null),i[169](null),s=!1,ct(a)}}}var a_=!0;function hf(i){return i?i.offsetTop+hf(i.offsetParent):0}function u_(i){return i?i.offsetLeft+u_(i.offsetParent):0}function t8(i,e,t){let n,o,r,s,a,l,u,c,m,h,C,g,T,k,H,S,v,E,q,U,F,ie,fe,G,J,Q,W,ce,z,x,P,$,le,Me,te,be,Ee,Te,Ie,rt,Ae,We,ee,pe,{store:Ce}=e,{uiConfig:xe}=e,{title:st}=e,{thumbUrl:at}=e,{videoContainer:nt}=e,{interactiveContainer:$e}=e,{live:de}=e,{autoplay:Se}=e,{canRewindLive:et}=e,{showAds:De}=e,{adsSlotId:tt=void 0}=e,{adsParams:Fe=void 0}=e,{adsPreviewParam:ft=void 0}=e,{duration:dt=void 0}=e,{logoClickable:he}=e,{logoHidden:_t}=e,{logoTargetUrl:kt=""}=e,{showNextPrevButtons:Ct=!1}=e,{nextButtonActive:Ze=!1}=e,{prevButtonActive:Pt=!1}=e,{endScreenVideoTitle:qt=void 0}=e,{endScreenVideoThumb:Zt=void 0}=e,{isOneVideoPlaylist:Ut=!1}=e,{supportLink:zt}=e,{shadowRootContainer:Xt=void 0}=e,{outerContainerRef:Wt=void 0}=e,{playerStarted:Ke=!1}=e,{fullScreenTarget:Xe=void 0}=e,{showMiniTimer:Tt=!1}=e,{showEndScreen:_e=!0}=e,{playNextVideo:Jt=_f}=e,{playPrevVideo:Et=_f}=e,{repeatPlaylist:ii=_f}=e,{seekToInteractive:Rt}=e,{playPrevChapter:jt}=e,{firstStart:oi}=e,Bt=Ce.getLogger().createComponentLog("Root component"),si=Ce.interfaceLanguage$;O(i,si,Z=>t(53,le=Z));let li=Ce.state.playbackState$;O(i,li,Z=>t(157,z=Z));let ai=Ce.ads.playbackState;O(i,ai,Z=>t(158,x=Z));let Ci=Ce.state.positionWithScrubbing$;O(i,Ci,Z=>t(58,Te=Z));let Nt=Ce.state.duration$;O(i,Nt,Z=>t(61,Ae=Z));let pi=Ce.playerPhase;O(i,pi,Z=>t(38,G=Z));let yi=Ce.ui.isFullscreen;O(i,yi,Z=>t(147,T=Z));let Si=Ce.ui.controlsVisible;O(i,Si,Z=>t(36,q=Z));let nn=Ce.ui.settingsMenuVisible;O(i,nn,Z=>t(145,u=Z));let Ti=Ce.ui.settingsMenuOpenedByKeyboard;O(i,Ti,Z=>t(144,l=Z));let Pe=Ce.ui.scrubbingInProgress;O(i,Pe,Z=>t(149,v=Z));let it=Ce.ui.contextMenu.visible$;O(i,it,Z=>t(33,n=Z));let Ot=Ce.ui.debugPanelVisible;O(i,Ot,Z=>t(64,pe=Z));let Ii=Ce.state.isLoaderVisible;O(i,Ii,Z=>t(159,P=Z));let _i=Ce.state.isEnded$;O(i,_i,Z=>t(146,m=Z));let mn=Ce.state.chromecastConnected$;O(i,mn,Z=>t(39,W=Z));let hi=Ce.state.chromecastDeviceName$;O(i,hi,Z=>t(55,te=Z));let Wi=Ce.ads.postrollPassed;O(i,Wi,Z=>t(152,ie=Z));let Ki=Ce.state.isLive$;O(i,Ki,Z=>t(60,rt=Z));let Ft=Ce.state.isPlaying$;O(i,Ft,Z=>t(52,$=Z));let Pi=Ce.state.crashed$;O(i,Pi,Z=>t(37,F=Z));let ui=Ce.webApi.annotationsApi,Kt=Ce.webApi.pictureInPictureApi,In=Ce.state.currentSubtitle$;O(i,In,Z=>t(56,be=Z));let wi=Ce.state.currentSubtitleCaptions$;O(i,wi,Z=>t(57,Ee=Z));let pn=Ce.state.duration$;O(i,pn,Z=>t(59,Ie=Z));let Pn=Ce.state.graphIsOpened$;O(i,Pn,Z=>t(153,fe=Z));let on=Ce.ui.playerSize;O(i,on,Z=>t(34,C=Z));let _n=Ce.ui.is3DVideo;O(i,_n,Z=>t(50,h=Z));let Ei=Ce.ui.icon3DVideoVisible;O(i,Ei,Z=>t(54,Me=Z));let rn=Ce.ui.rotateAlpha;O(i,rn,Z=>t(35,S=Z));let Gt=Ce.state.isInteractive,qn=Ce.state.isInteractiveTime$;O(i,qn,Z=>t(150,E=Z));let xi=Ce.state.isInteractiveExpectation$;O(i,xi,Z=>t(156,ce=Z));let ji=Ce.state.hasInteractiveBranches,Gi=Ce.ui.touched;O(i,Gi,Z=>t(154,J=Z));let ki=Ce.ui.modals.hotKeyMap.data;O(i,ki,Z=>t(176,c=Z));let Ri=Ce.ui.modals.hotKeyMap.show;O(i,Ri,Z=>t(63,ee=Z));let sn=Ce.ui.overlayContainer$,ln=Ce.ui.controls.interactiveTimeIndicator;O(i,ln,Z=>t(177,g=Z));let Ai=Ce.state.showInteractiveTimeIndicator,Mi=Ce.ui.contextMenu.position$;O(i,Mi,Z=>t(62,We=Z));let ci=Ce.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Yt}=On();O(i,Yt,Z=>t(148,H=Z));let Ht,Bi,Ni,an,ut,Di,fi;ki.set(Od());let Oi,Fi,Ge=Oe(!1);O(i,Ge,Z=>t(51,k=Z));let Un,un=Oe(!1);O(i,un,Z=>t(155,Q=Z));let En=Oe(),hn=Oe(!1);O(i,hn,Z=>t(151,U=Z));let Yi=!1,Qi=!1,Zi=!1,gn=!(Se&&!xe.controls.showOnStartupAtAutoplay),gi,An,Mn,Ln,bn,vn=!1,Vn,yn=!1,{toggle:zn}=Yt,Hi=!1,cn=null,ni;Kt==null||Kt.setContext(Zr());let ro=()=>{Se&&!Gt&&xe.controls.showOnStartupAtAutoplay&&di(xe.controls.hideTimeout)};Ce.setUiCallbacks({onStarted:ro});let so=()=>{window.clearTimeout(ut),un.set(!1)},Wn=()=>{window.clearTimeout(Di),En.set(null)},di=Z=>{so(),un.set(!0),ut=window.setTimeout(()=>un.set(!1),Z);let At=Z-100;Un=window.setTimeout(()=>{k&&Ge.set(!1)},At>0?At:Z)},fn=(Z,At)=>{Wn(),En.set(At),Di=window.setTimeout(()=>En.set(null),Z)},Zn=_n.subscribe(Z=>{Ei.set(Z),Z&&(window.clearTimeout(fi),fi=window.setTimeout(()=>Ei.set(!1),xe.controls.hide360IconTimeout))}),Kn=()=>pt(this,null,function*(){var At,$i,zi,uo;let Z=Ro();if(Z){let Cn=es(),co=Xn();Z=Cn===co||Cn===Xt}if(Z){di(xe.controls.hideTimeoutFullscreen);try{yield Kt==null?void 0:Kt.remove()}catch(Cn){Bt({message:String(Cn)})}}yi.set(Z),Ce.getAdmanWrapper().setFullscreen(Z),T?($i=(At=Ce.callbacks)==null?void 0:At.onFullscreenEnter)==null||$i.call(At):(uo=(zi=Ce.callbacks)==null?void 0:zi.onFullscreenExit)==null||uo.call(zi)}),lo=Z=>{let At=Z;on.set({width:At.target.width,height:At.target.height})};Lt(()=>{var At;return Fs(Kn),xe.features.annotationsInside&&(ui==null||ui.init(Ht)),ar(Kt)&&(Kt==null||Kt.assignPlayerContainer(Ht),Kt==null||Kt.registryExternalEventHandlers({resize:lo})),$e&&((At=nt.parentElement)==null||At.insertBefore($e,nt.nextSibling)),()=>{window.clearTimeout(ut),window.clearTimeout(Un),window.clearTimeout(Di),window.clearTimeout(fi),Zn(),Kt==null||Kt.dispose(),Hs(Kn)}});let Xn=()=>{let Z=xe.features.fullscreenInternalTargetPlayerContainer||!Wt?Ht:Wt,At=Z.getRootNode(),$i=At instanceof ShadowRoot?At.host:At,zi=Xe instanceof HTMLElement&&Xe.contains($i);return xe.allowChangingFullscreenTarget&&Xe&&zi?Xe:Z},Jn=()=>pt(this,null,function*(){Ro()?(yield Os(document),Bt({message:"exit fullscreen"})):(Bt({message:"request fullscreen"}),yield Ds(Xn()))}),wn=()=>{ci(),it.set(!1)},xn=Z=>{it.set(!0),Mi.set({left:Z.clientX,top:Z.clientY})};function kn(){hn.set(!0),Gt||di(xe.controls.hideTimeoutCursor)}function ao(){Gt||(Ge.set(!0),di(xe.controls.hideTimeoutCursor))}function oe(){hn.set(!1),t(135,Qi=!1),t(134,Yi=!1),Hi=!1,Ce.actions.internal.releaseCamera()}function vt(Z){if(g&&Ai){let At=Z.currentTarget,$i=hf(At),zi=u_(At),uo=Z.pageX-zi,Cn=Z.pageY-$i,{left:co,bottom:Jo,right:bo}=g,_r=bo-co;return uo>=co-_r&&Cn<=Jo+_r}}function Xi(Z){if(Ht){let At=hf(Z.currentTarget),$i=C.height,zi=Z.pageY-At;if(vt(Z)){t(135,Qi=!1);return}zi<40?t(135,Qi=!0):zi>$i-40?t(134,Yi=!0):(t(135,Qi=!1),u||t(134,Yi=!1))}}function qi(Z){Xi(Z),gi||di(xe.controls.hideTimeoutCursor),h&&Hi&&cn&&Ce.actions.internal.moveCameraFocusPX(cn.clientX-Z.clientX,cn.clientY-Z.clientY,Z.timeStamp-cn.timeStamp),cn=Z}let ne=Z=>{Z.button===0&&(Hi=!0,Ce.actions.internal.holdCamera()),di(xe.controls.hideTimeoutCursor)},Ui=Z=>{Z.button===0&&(cn=Z,Hi=!1,Ce.actions.internal.releaseCamera()),di(xe.controls.hideTimeoutCursor)},zo=()=>{a_&&(Bt({message:"double click on video"}),Jn(),di(xe.controls.hideTimeoutCursor))},Io=()=>{if(n||u){wn();return}if(!(m&&!ji)){if(yn)return zn();if(ni==null||ni.focus(),!Ke){oi(),di(xe.controls.hideTimeoutCursor);return}Ce.actions.internal.togglePlay(),di(xe.controls.hideTimeoutCursor)}},Po=Z=>{wn(),Gi.set(!0),di(xe.controls.hideTimeout),Z&&fn(xe.controls.hideHotKeyHelpers,Z)},_o=()=>{var Z,At;wn(),(Z=Ce.callbacks)!=null&&Z.onOpenHotKeyMap?(At=Ce.callbacks)==null||At.onOpenHotKeyMap(c):Ri.update($i=>!$i)},ho=()=>{if(n||u){wn();return}},pr=()=>{Gi.set(!0)},Ji=Ce.ui.contextMenu.openedByBtnKeyboard$;O(i,Ji,Z=>t(143,a=Z));let go=Ce.ui.contextMenu.btnRef$;O(i,go,Z=>t(142,s=Z));let $n,dn=Ce.ui.contextMenu.openedByHotKey$;O(i,dn,Z=>t(141,r=Z));let Eo=Ce.ui.contextMenu.lastActiveElem$;O(i,Eo,Z=>t(140,o=Z));function Wo(Z){ge[Z?"unshift":"push"](()=>{nt=Z,t(0,nt)})}function Ko(Z){Bi=Z,t(41,Bi)}function xo(Z){Ni=Z,t(42,Ni)}let jo=()=>ni==null?void 0:ni.focus();function Go(Z){an=Z,t(29,an)}let Yo=()=>ni==null?void 0:ni.focus();function Rn(Z){$n=Z,t(32,$n)}function Qo(Z){ge[Z?"unshift":"push"](()=>{ni=Z,t(49,ni)})}function Zo(Z){ge[Z?"unshift":"push"](()=>{Fi=Z,t(30,Fi)})}function Xo(Z){ge[Z?"unshift":"push"](()=>{Ht=Z,t(40,Ht)})}return i.$$set=Z=>{"store"in Z&&t(127,Ce=Z.store),"uiConfig"in Z&&t(1,xe=Z.uiConfig),"title"in Z&&t(2,st=Z.title),"thumbUrl"in Z&&t(3,at=Z.thumbUrl),"videoContainer"in Z&&t(0,nt=Z.videoContainer),"interactiveContainer"in Z&&t(128,$e=Z.interactiveContainer),"live"in Z&&t(4,de=Z.live),"autoplay"in Z&&t(5,Se=Z.autoplay),"canRewindLive"in Z&&t(6,et=Z.canRewindLive),"showAds"in Z&&t(7,De=Z.showAds),"adsSlotId"in Z&&t(8,tt=Z.adsSlotId),"adsParams"in Z&&t(9,Fe=Z.adsParams),"adsPreviewParam"in Z&&t(10,ft=Z.adsPreviewParam),"duration"in Z&&t(11,dt=Z.duration),"logoClickable"in Z&&t(12,he=Z.logoClickable),"logoHidden"in Z&&t(13,_t=Z.logoHidden),"logoTargetUrl"in Z&&t(14,kt=Z.logoTargetUrl),"showNextPrevButtons"in Z&&t(15,Ct=Z.showNextPrevButtons),"nextButtonActive"in Z&&t(16,Ze=Z.nextButtonActive),"prevButtonActive"in Z&&t(17,Pt=Z.prevButtonActive),"endScreenVideoTitle"in Z&&t(18,qt=Z.endScreenVideoTitle),"endScreenVideoThumb"in Z&&t(19,Zt=Z.endScreenVideoThumb),"isOneVideoPlaylist"in Z&&t(20,Ut=Z.isOneVideoPlaylist),"supportLink"in Z&&t(21,zt=Z.supportLink),"shadowRootContainer"in Z&&t(129,Xt=Z.shadowRootContainer),"outerContainerRef"in Z&&t(130,Wt=Z.outerContainerRef),"playerStarted"in Z&&t(22,Ke=Z.playerStarted),"fullScreenTarget"in Z&&t(131,Xe=Z.fullScreenTarget),"showMiniTimer"in Z&&t(132,Tt=Z.showMiniTimer),"showEndScreen"in Z&&t(133,_e=Z.showEndScreen),"playNextVideo"in Z&&t(23,Jt=Z.playNextVideo),"playPrevVideo"in Z&&t(24,Et=Z.playPrevVideo),"repeatPlaylist"in Z&&t(25,ii=Z.repeatPlaylist),"seekToInteractive"in Z&&t(26,Rt=Z.seekToInteractive),"playPrevChapter"in Z&&t(27,jt=Z.playPrevChapter),"firstStart"in Z&&t(28,oi=Z.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[5]&24&&t(43,Oi=(G==="video"&&P||G==="ads"&&x==="inactive")&&!F),i.$$.dirty[0]&1073741824&&sn.set(Fi),i.$$.dirty[4]&8192|i.$$.dirty[5]&4&&(t(136,Zi=gn&&z!==Xy.PLAYING),gn||t(137,gn=!0)),i.$$.dirty[4]&69213184|i.$$.dirty[5]&2&&t(138,gi=E&&!u&&!(Yi||Qi)&&!(Zi&&!ce)),i.$$.dirty[1]&448|i.$$.dirty[4]&35672064|i.$$.dirty[5]&1&&Si.set((Zi||u||v||W||Q)&&!gi&&(G==="video"||G==="ads")&&!F),i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&1073742080&&t(44,An=xe.features.thumbTimer&&Tt&&G==="video"&&!q&&!F&&!Gt&&(xe.hideThumbTimerAfterTouch&&!J||!xe.hideThumbTimerAfterTouch)),i.$$.dirty[1]&128|i.$$.dirty[4]&545259520&&t(45,Mn=G==="video"&&!fe&&T),i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&272630272&&t(31,Ln=_e&&(De&&ie||!De)&&m&&!F),i.$$.dirty[1]&33|i.$$.dirty[4]&201326592&&t(46,bn=U&&!(q||Ln)&&!E),i.$$.dirty[0]&2|i.$$.dirty[4]&100696064&&(!v&&vn&&!E&&di(xe.controls.hideTimeoutCursor),t(139,vn=v)),i.$$.dirty[0]&1|i.$$.dirty[1]&24&&t(47,Vn=nt&&S%180?C.height/C.width:1),i.$$.dirty[4]&16777216&&t(48,yn=H!==null),i.$$.dirty[0]&536870912|i.$$.dirty[4]&3145728&&po(an,u,l),i.$$.dirty[1]&6|i.$$.dirty[4]&524288&&po($n,n,a),i.$$.dirty[1]&4|i.$$.dirty[4]&262144){let Z=s;Z&&Ar(Z,n,Ji)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&131072&&po($n,n,r),i.$$.dirty[1]&4|i.$$.dirty[4]&65536){let Z=o;Z&&Zd(Z,n,dn)}},[nt,xe,st,at,de,Se,et,De,tt,Fe,ft,dt,he,_t,kt,Ct,Ze,Pt,qt,Zt,Ut,zt,Ke,Jt,Et,ii,Rt,jt,oi,an,Fi,Ln,$n,n,C,S,q,F,G,W,Ht,Bi,Ni,Oi,An,Mn,bn,Vn,yn,ni,h,k,$,le,Me,te,be,Ee,Te,Ie,rt,Ae,We,ee,pe,si,li,ai,Ci,Nt,pi,yi,Si,nn,Ti,Pe,it,Ot,Ii,_i,mn,hi,Wi,Ki,Ft,Pi,In,wi,pn,Pn,on,_n,Ei,rn,Gt,qn,xi,Gi,ki,Ri,ln,Mi,Yt,Ge,un,En,hn,zn,Jn,wn,xn,kn,ao,oe,qi,ne,Ui,zo,Io,Po,_o,ho,pr,Ji,go,dn,Eo,Ce,$e,Xt,Wt,Xe,Tt,_e,Yi,Qi,Zi,gn,gi,vn,o,r,s,a,l,u,m,T,H,v,E,U,ie,fe,J,Q,ce,z,x,P,Wo,Ko,xo,jo,Go,Yo,Rn,Qo,Zo,Xo]}var gf=class extends N{constructor(e){super(),D(this,e,t8,e8,R,{store:127,uiConfig:1,title:2,thumbUrl:3,videoContainer:0,interactiveContainer:128,live:4,autoplay:5,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,logoTargetUrl:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:129,outerContainerRef:130,playerStarted:22,fullScreenTarget:131,showMiniTimer:132,showEndScreen:133,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,playPrevChapter:27,firstStart:28},Jy,[-1,-1,-1,-1,-1,-1,-1])}},c_=gf;import{PlaybackState as l8}from"@vkontakte/videoplayer-core";import{clientChecker as Ul,noop as zl}from"@vkontakte/videoplayer-shared";function i8(i){ve(i,"svelte-nhq2ld",".double-click-area.svelte-nhq2ld{position:absolute;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.svelte-nhq2ld{left:0}.double-click-area.right.svelte-nhq2ld{right:0}.semicircle.svelte-nhq2ld{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.svelte-nhq2ld{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.svelte-nhq2ld{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.svelte-nhq2ld{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.svelte-nhq2ld{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.svelte-nhq2ld{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:svelte-nhq2ld-blink 500ms infinite;opacity:0}.triangle.right.svelte-nhq2ld:nth-child(1),.triangle.left.svelte-nhq2ld:nth-child(3){animation-delay:0ms}.triangle.right.svelte-nhq2ld:nth-child(2),.triangle.left.svelte-nhq2ld:nth-child(2){animation-delay:100ms}.triangle.right.svelte-nhq2ld:nth-child(3),.triangle.left.svelte-nhq2ld:nth-child(1){animation-delay:200ms}@keyframes svelte-nhq2ld-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.svelte-nhq2ld{border-right:8px solid var(--white)}.triangle.right.svelte-nhq2ld{border-left:8px solid var(--white)}.triangle.svelte-nhq2ld:not(:last-child){margin-right:5px}.step-caption.svelte-nhq2ld{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}")}function f_(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,T,k=j("doubletap_seek_step",{seconds:i[2].toFixed(0)})+"",H;return{c(){e=I("div"),n=Y(),o=I("div"),r=I("div"),s=I("div"),l=Y(),u=I("div"),m=Y(),h=I("div"),g=Y(),T=I("p"),H=He(k),f(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),f(s,"class",a="triangle "+i[0]+" svelte-nhq2ld"),f(u,"class",c="triangle "+i[0]+" svelte-nhq2ld"),f(h,"class",C="triangle "+i[0]+" svelte-nhq2ld"),f(r,"class","triangles-wrapper svelte-nhq2ld"),f(T,"class","step-caption svelte-nhq2ld"),f(o,"class","info svelte-nhq2ld")},m(S,v){w(S,e,v),w(S,n,v),w(S,o,v),_(o,r),_(r,s),_(r,l),_(r,u),_(r,m),_(r,h),_(o,g),_(o,T),_(T,H)},p(S,v){v&1&&t!==(t="semicircle "+S[0]+" svelte-nhq2ld")&&f(e,"class",t),v&1&&a!==(a="triangle "+S[0]+" svelte-nhq2ld")&&f(s,"class",a),v&1&&c!==(c="triangle "+S[0]+" svelte-nhq2ld")&&f(u,"class",c),v&1&&C!==(C="triangle "+S[0]+" svelte-nhq2ld")&&f(h,"class",C),v&4&&k!==(k=j("doubletap_seek_step",{seconds:S[2].toFixed(0)})+"")&&je(H,k)},d(S){S&&(y(e),y(n),y(o))}}}function n8(i){let e,t,n,o,r=i[1]&&f_(i);return{c(){e=I("div"),r&&r.c(),f(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(s,a){w(s,e,a),r&&r.m(e,null),n||(o=ke(e,"click",bt(i[3]())),n=!0)},p(s,[a]){s[1]?r?r.p(s,a):(r=f_(s),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&1&&t!==(t="double-click-area "+s[0]+" svelte-nhq2ld")&&f(e,"class",t)},i:me,o:me,d(s){s&&y(e),r&&r.d(),n=!1,o()}}}function o8(i,e,t){let{side:n}=e,{seekStep:o=0}=e,{handleSingleFirstClick:r}=e,{handleSecondClick:s}=e,a=!1,l=0,u=0,c=o,m=()=>()=>{u+=1,t(2,c=o*(u-1)),u===1?r():(t(1,a=!0),s()),window.clearTimeout(l),l=window.setTimeout(()=>{u=0,t(1,a=!1)},300)};return eo(()=>{window.clearTimeout(l)}),i.$$set=h=>{"side"in h&&t(0,n=h.side),"seekStep"in h&&t(4,o=h.seekStep),"handleSingleFirstClick"in h&&t(5,r=h.handleSingleFirstClick),"handleSecondClick"in h&&t(6,s=h.handleSecondClick)},[n,a,c,m,o,r,s]}var bf=class extends N{constructor(e){super(),D(this,e,o8,n8,R,{side:0,seekStep:4,handleSingleFirstClick:5,handleSecondClick:6},i8)}},vf=bf;function r8(i,e,t){let n,{playNextVideo:o}=e,s=ot().ui.autoplayNextEnabled$;return O(i,s,a=>t(2,n=a)),Lt(()=>{n&&o()}),i.$$set=a=>{"playNextVideo"in a&&t(1,o=a.playNextVideo)},[s,o]}var yf=class extends N{constructor(e){super(),D(this,e,r8,null,R,{playNextVideo:1})}},d_=yf;var{window:s8}=er;function a8(i){ve(i,"svelte-dtyj47",".player-wrapper.svelte-dtyj47{position:absolute;width:100%;height:100%}.player-wrapper.svelte-dtyj47 .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-dtyj47{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-dtyj47,.video-container.svelte-dtyj47,.ads-container.svelte-dtyj47{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-dtyj47{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-dtyj47{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-dtyj47{transition:none}.ads-container.svelte-dtyj47{z-index:var(--ads-container-z-index);background:var(--black)}.settings-mobile.svelte-dtyj47{position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%}")}function m_(i){let e,t,n,o=i[47]&&p_(i),r=i[48]&&__(i);return{c(){o&&o.c(),e=Y(),r&&r.c(),t=Je()},m(s,a){o&&o.m(s,a),w(s,e,a),r&&r.m(s,a),w(s,t,a),n=!0},p(s,a){s[47]?o?(o.p(s,a),a[1]&65536&&d(o,1)):(o=p_(s),o.c(),d(o,1),o.m(e.parentNode,e)):o&&(ae(),p(o,1,1,()=>{o=null}),ue()),s[48]?r?(r.p(s,a),a[1]&131072&&d(r,1)):(r=__(s),r.c(),d(r,1),r.m(t.parentNode,t)):r&&(ae(),p(r,1,1,()=>{r=null}),ue())},i(s){n||(d(o),d(r),n=!0)},o(s){p(o),p(r),n=!1},d(s){s&&(y(e),y(t)),o&&o.d(s),r&&r.d(s)}}}function p_(i){let e,t;return e=new vf({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[103],handleSecondClick:i[136]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function __(i){let e,t;return e=new vf({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[103],handleSecondClick:i[137]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function h_(i){var n;let e,t;return e=new Nl({props:{thumbUrl:i[2],startTime:(n=i[3])==null?void 0:n.startTime}}),{c(){B(e.$$.fragment)},m(o,r){L(e,o,r),t=!0},p(o,r){var a;let s={};r[0]&4&&(s.thumbUrl=o[2]),r[0]&8&&(s.startTime=(a=o[3])==null?void 0:a.startTime),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){V(e,o)}}}function g_(i){let e,t;return e=new Ur({props:{kind:"recover",thumbUrl:i[2]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function b_(i){let e,t;return e=new Ur({props:{kind:"record",thumbUrl:i[2]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function v_(i){let e,t,n;return t=new qs({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=I("div"),B(t.$$.fragment),f(e,"class","ads-container svelte-dtyj47"),K(e,"hidden",i[37]!=="ads")},m(o,r){w(o,e,r),L(t,e,null),n=!0},p(o,r){let s={};r[0]&128&&(s.adsSlotId=o[7]),r[0]&256&&(s.adsParams=o[8]),r[0]&512&&(s.adsPreviewParam=o[9]),r[0]&1024&&(s.duration=o[10]),t.$set(s),(!n||r[1]&64)&&K(e,"hidden",o[37]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),V(t)}}}function y_(i){let e,t;return e=new d_({props:{playNextVideo:i[22]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4194304&&(r.playNextVideo=n[22]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function w_(i){let e,t;return e=new Ml({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function k_(i){let e,t,n;return t=new Ms({props:{"aria-label":j("video360")}}),{c(){e=I("div"),B(t.$$.fragment),f(e,"class","spherical-video-icon svelte-dtyj47")},m(o,r){w(o,e,r),L(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),V(t)}}}function C_(i){let e,t;return e=new Vl({props:{thumbUrl:i[2],chromecastDeviceName:i[55]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),o[1]&16777216&&(r.chromecastDeviceName=n[55]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function S_(i){let e,t;return e=new Ll({props:{shifted:i[31],captions:i[57],position:i[33],playerSize:i[34],isMobile:!0}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&1&&(r.shifted=n[31]),o[1]&67108864&&(r.captions=n[57]),o[1]&4&&(r.position=n[33]),o[1]&8&&(r.playerSize=n[34]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function T_(i){let e,t,n,o,r;return t=new Rl({}),{c(){e=I("div"),B(t.$$.fragment)},m(s,a){w(s,e,a),L(t,e,null),n=!0,o||(r=ke(e,"click",bt(i[104])),o=!0)},p:me,i(s){n||(d(t.$$.fragment,s),n=!0)},o(s){p(t.$$.fragment,s),n=!1},d(s){s&&y(e),V(t),o=!1,r()}}}function I_(i){let e,t,n,o;function r(l){i[138](l)}function s(l){i[139](l)}let a={bottomHidden:i[37]==="thumb"||i[37]==="LiveWaitingStart"||i[37]==="LiveWaitingRecover"||i[37]==="LiveWaitingRecord"||i[37]==="ads",showControls:i[31],bottomNoSmooth:i[49],isAds:i[37]==="ads",canRewindLive:i[5]&&i[58]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showNextPrevButtons:i[14],nextButtonActive:i[15],prevButtonActive:i[16],isOneVideoPlaylist:i[19],customFullscreenSupported:i[43],playNextVideo:i[22],playPrevVideo:i[23],repeatPlaylist:i[24],toggleFullscreen:i[101],seekToInteractive:i[25],playPrevChapter:i[26],onDisabledPlayPrevChapterClick:i[107],onDisabledSeekToInteractiveClick:i[108]};return i[40]!==void 0&&(a.playerControlsWrapperRef=i[40]),i[41]!==void 0&&(a.playerControlsRef=i[41]),e=new Al({props:a}),ge.push(()=>ze(e,"playerControlsWrapperRef",r)),ge.push(()=>ze(e,"playerControlsRef",s)),{c(){B(e.$$.fragment)},m(l,u){L(e,l,u),o=!0},p(l,u){let c={};u[1]&64&&(c.bottomHidden=l[37]==="thumb"||l[37]==="LiveWaitingStart"||l[37]==="LiveWaitingRecover"||l[37]==="LiveWaitingRecord"||l[37]==="ads"),u[1]&1&&(c.showControls=l[31]),u[1]&262144&&(c.bottomNoSmooth=l[49]),u[1]&64&&(c.isAds=l[37]==="ads"),u[0]&32|u[1]&134217728&&(c.canRewindLive=l[5]&&l[58]!==0),u[0]&2048&&(c.logoClickable=l[11]),u[0]&4096&&(c.logoHidden=l[12]),u[0]&8192&&(c.logoTargetUrl=l[13]),u[0]&16384&&(c.showNextPrevButtons=l[14]),u[0]&32768&&(c.nextButtonActive=l[15]),u[0]&65536&&(c.prevButtonActive=l[16]),u[0]&524288&&(c.isOneVideoPlaylist=l[19]),u[1]&4096&&(c.customFullscreenSupported=l[43]),u[0]&4194304&&(c.playNextVideo=l[22]),u[0]&8388608&&(c.playPrevVideo=l[23]),u[0]&16777216&&(c.repeatPlaylist=l[24]),u[0]&33554432&&(c.seekToInteractive=l[25]),u[0]&67108864&&(c.playPrevChapter=l[26]),!t&&u[1]&512&&(t=!0,c.playerControlsWrapperRef=l[40],Ue(()=>t=!1)),!n&&u[1]&1024&&(n=!0,c.playerControlsRef=l[41],Ue(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){V(e,l)}}}function P_(i){let e,t,n,o;function r(a){i[140](a)}let s={supportLink:i[20],returnFocus:zl};return i[28]!==void 0&&(s.ref=i[28]),t=new ql({props:s}),ge.push(()=>ze(t,"ref",r)),{c(){e=I("div"),B(t.$$.fragment),f(e,"class","settings-mobile svelte-dtyj47")},m(a,l){w(a,e,l),L(t,e,null),o=!0},p(a,l){let u={};l[0]&1048576&&(u.supportLink=a[20]),!n&&l[0]&268435456&&(n=!0,u.ref=a[28],Ue(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&y(e),V(t)}}}function E_(i){let e,t;return e=new Vr({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function A_(i){let e,t;return e=new Qs({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function M_(i){let e,t,n=i[5]&&i[82]&&!i[52].has("TIMELINE"),o,r,s,a,l,u,c,m,h,C,g,T,k,H,S,v,E,q;e=new Bl({props:{hidden:i[37]!=="thumb"||i[36]||i[93]&&i[4],thumbUrl:i[2],startVideo:i[27]}});let U=n&&m_(i),F=i[37]==="LiveWaitingStart"&&h_(i),ie=i[37]==="LiveWaitingRecover"&&g_(i),fe=i[37]==="LiveWaitingRecord"&&b_(i),G=i[6]&&i[21]&&v_(i),J=i[45]&&i[17]&&i[18]&&y_(i),Q=i[53]&&w_(i),W=i[54]&&k_(i),ce=i[38]&&C_(i),z=i[56].value!=="off"&&S_(i),x=i[36]&&T_(i),P=i[21]&&I_(i),$=i[30]&&P_(i);H=new zs({props:{isLive:i[59],isHidden:!i[44],isPlaying:i[50],position:i[33],duration:i[32]}});let le=i[42]&&E_(i),Me=i[60]&&A_(i);return{c(){B(e.$$.fragment),t=Y(),U&&U.c(),o=Y(),F&&F.c(),r=Y(),ie&&ie.c(),s=Y(),fe&&fe.c(),a=Y(),G&&G.c(),l=Y(),J&&J.c(),u=Y(),Q&&Q.c(),c=Y(),W&&W.c(),m=Y(),ce&&ce.c(),h=Y(),z&&z.c(),C=Y(),x&&x.c(),g=Y(),P&&P.c(),T=Y(),$&&$.c(),k=Y(),B(H.$$.fragment),S=Y(),le&&le.c(),v=Y(),Me&&Me.c(),E=Je()},m(te,be){L(e,te,be),w(te,t,be),U&&U.m(te,be),w(te,o,be),F&&F.m(te,be),w(te,r,be),ie&&ie.m(te,be),w(te,s,be),fe&&fe.m(te,be),w(te,a,be),G&&G.m(te,be),w(te,l,be),J&&J.m(te,be),w(te,u,be),Q&&Q.m(te,be),w(te,c,be),W&&W.m(te,be),w(te,m,be),ce&&ce.m(te,be),w(te,h,be),z&&z.m(te,be),w(te,C,be),x&&x.m(te,be),w(te,g,be),P&&P.m(te,be),w(te,T,be),$&&$.m(te,be),w(te,k,be),L(H,te,be),w(te,S,be),le&&le.m(te,be),w(te,v,be),Me&&Me.m(te,be),w(te,E,be),q=!0},p(te,be){let Ee={};be[0]&16|be[1]&96&&(Ee.hidden=te[37]!=="thumb"||te[36]||te[93]&&te[4]),be[0]&4&&(Ee.thumbUrl=te[2]),be[0]&134217728&&(Ee.startVideo=te[27]),e.$set(Ee),be[0]&32|be[1]&2097152&&(n=te[5]&&te[82]&&!te[52].has("TIMELINE")),n?U?(U.p(te,be),be[0]&32|be[1]&2097152&&d(U,1)):(U=m_(te),U.c(),d(U,1),U.m(o.parentNode,o)):U&&(ae(),p(U,1,1,()=>{U=null}),ue()),te[37]==="LiveWaitingStart"?F?(F.p(te,be),be[1]&64&&d(F,1)):(F=h_(te),F.c(),d(F,1),F.m(r.parentNode,r)):F&&(ae(),p(F,1,1,()=>{F=null}),ue()),te[37]==="LiveWaitingRecover"?ie?(ie.p(te,be),be[1]&64&&d(ie,1)):(ie=g_(te),ie.c(),d(ie,1),ie.m(s.parentNode,s)):ie&&(ae(),p(ie,1,1,()=>{ie=null}),ue()),te[37]==="LiveWaitingRecord"?fe?(fe.p(te,be),be[1]&64&&d(fe,1)):(fe=b_(te),fe.c(),d(fe,1),fe.m(a.parentNode,a)):fe&&(ae(),p(fe,1,1,()=>{fe=null}),ue()),te[6]&&te[21]?G?(G.p(te,be),be[0]&2097216&&d(G,1)):(G=v_(te),G.c(),d(G,1),G.m(l.parentNode,l)):G&&(ae(),p(G,1,1,()=>{G=null}),ue()),te[45]&&te[17]&&te[18]?J?(J.p(te,be),be[0]&393216|be[1]&16384&&d(J,1)):(J=y_(te),J.c(),d(J,1),J.m(u.parentNode,u)):J&&(ae(),p(J,1,1,()=>{J=null}),ue()),te[53]?Q?be[1]&4194304&&d(Q,1):(Q=w_(te),Q.c(),d(Q,1),Q.m(c.parentNode,c)):Q&&(ae(),p(Q,1,1,()=>{Q=null}),ue()),te[54]?W?be[1]&8388608&&d(W,1):(W=k_(te),W.c(),d(W,1),W.m(m.parentNode,m)):W&&(ae(),p(W,1,1,()=>{W=null}),ue()),te[38]?ce?(ce.p(te,be),be[1]&128&&d(ce,1)):(ce=C_(te),ce.c(),d(ce,1),ce.m(h.parentNode,h)):ce&&(ae(),p(ce,1,1,()=>{ce=null}),ue()),te[56].value!=="off"?z?(z.p(te,be),be[1]&33554432&&d(z,1)):(z=S_(te),z.c(),d(z,1),z.m(C.parentNode,C)):z&&(ae(),p(z,1,1,()=>{z=null}),ue()),te[36]?x?(x.p(te,be),be[1]&32&&d(x,1)):(x=T_(te),x.c(),d(x,1),x.m(g.parentNode,g)):x&&(ae(),p(x,1,1,()=>{x=null}),ue()),te[21]?P?(P.p(te,be),be[0]&2097152&&d(P,1)):(P=I_(te),P.c(),d(P,1),P.m(T.parentNode,T)):P&&(ae(),p(P,1,1,()=>{P=null}),ue()),te[30]?$?($.p(te,be),be[0]&1073741824&&d($,1)):($=P_(te),$.c(),d($,1),$.m(k.parentNode,k)):$&&(ae(),p($,1,1,()=>{$=null}),ue());let Te={};be[1]&268435456&&(Te.isLive=te[59]),be[1]&8192&&(Te.isHidden=!te[44]),be[1]&524288&&(Te.isPlaying=te[50]),be[1]&4&&(Te.position=te[33]),be[1]&2&&(Te.duration=te[32]),H.$set(Te),te[42]?le?be[1]&2048&&d(le,1):(le=E_(te),le.c(),d(le,1),le.m(v.parentNode,v)):le&&(ae(),p(le,1,1,()=>{le=null}),ue()),te[60]?Me?be[1]&536870912&&d(Me,1):(Me=A_(te),Me.c(),d(Me,1),Me.m(E.parentNode,E)):Me&&(ae(),p(Me,1,1,()=>{Me=null}),ue())},i(te){q||(d(e.$$.fragment,te),d(U),d(F),d(ie),d(fe),d(G),d(J),d(Q),d(W),d(ce),d(z),d(x),d(P),d($),d(H.$$.fragment,te),d(le),d(Me),q=!0)},o(te){p(e.$$.fragment,te),p(U),p(F),p(ie),p(fe),p(G),p(J),p(Q),p(W),p(ce),p(z),p(x),p(P),p($),p(H.$$.fragment,te),p(le),p(Me),q=!1},d(te){te&&(y(t),y(o),y(r),y(s),y(a),y(l),y(u),y(c),y(m),y(h),y(C),y(g),y(T),y(k),y(S),y(v),y(E)),V(e,te),U&&U.d(te),F&&F.d(te),ie&&ie.d(te),fe&&fe.d(te),G&&G.d(te),J&&J.d(te),Q&&Q.d(te),W&&W.d(te),ce&&ce.d(te),z&&z.d(te),x&&x.d(te),P&&P.d(te),$&&$.d(te),V(H,te),le&&le.d(te),Me&&Me.d(te)}}}function u8(i){let e,t,n,o,r,s=i[51],a,l,u,c,m,h,C=M_(i);return{c(){e=I("div"),t=I("div"),n=I("div"),r=Y(),C.c(),a=Y(),l=I("div"),f(n,"class","video-container svelte-dtyj47"),f(n,"style",o=`transform: rotate(${i[35]}deg) scale(${i[46]})`),f(n,"data-testid","video-container"),f(n,"data-is-playing",i[50]),K(n,"fast-rotate",!i[1].isSmoothVideoRotate),f(t,"class","video-wrapper svelte-dtyj47"),K(t,"hidden",i[37]!=="video"),f(l,"class","overlay-container"),f(e,"class","player-wrapper svelte-dtyj47"),f(e,"role","region"),f(e,"aria-label",u=j("aria_label_video_player")),f(e,"tabindex","-1")},m(g,T){w(g,e,T),_(e,t),_(t,n),i[135](n),_(e,r),C.m(e,null),_(e,a),_(e,l),i[141](l),i[142](e),c=!0,m||(h=[ke(s8,"blur",i[102]),ke(t,"click",ri(i[103])),ke(e,"click",i[105],!0),ke(e,"focusin",i[106],!0)],m=!0)},p(g,T){(!c||T[1]&32784&&o!==(o=`transform: rotate(${g[35]}deg) scale(${g[46]})`))&&f(n,"style",o),(!c||T[1]&524288)&&f(n,"data-is-playing",g[50]),(!c||T[0]&2)&&K(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!c||T[1]&64)&&K(t,"hidden",g[37]!=="video"),T[1]&1048576&&R(s,s=g[51])?(ae(),p(C,1,1,me),ue(),C=M_(g),C.c(),d(C,1),C.m(e,a)):C.p(g,T)},i(g){c||(d(C),c=!0)},o(g){p(C),c=!1},d(g){g&&y(e),i[135](null),C.d(g),i[141](null),i[142](null),m=!1,ct(h)}}}function c8(i,e,t){var kn,ao;let n,o,r,s,a,l,u,c,m,h,C,g,T,k,H,S,v,E,q,U,F,ie,fe,G,J,Q,W,ce,z,x,P,$,le,Me,te,be,Ee,{store:Te}=e,{uiConfig:Ie}=e,{thumbUrl:rt}=e,{videoContainer:Ae}=e,{interactiveContainer:We}=e,{live:ee}=e,{autoplay:pe}=e,{canRewindLive:Ce}=e,{showAds:xe}=e,{adsSlotId:st=void 0}=e,{adsParams:at=void 0}=e,{adsPreviewParam:nt=void 0}=e,{duration:$e=void 0}=e,{logoClickable:de}=e,{logoHidden:Se}=e,{logoTargetUrl:et=""}=e,{showNextPrevButtons:De=!1}=e,{nextButtonActive:tt=!1}=e,{prevButtonActive:Fe=!1}=e,{endScreenVideoTitle:ft=void 0}=e,{endScreenVideoThumb:dt=void 0}=e,{isOneVideoPlaylist:he=!1}=e,{supportLink:_t}=e,{shadowRootContainer:kt=void 0}=e,{outerContainerRef:Ct=void 0}=e,{showMiniTimer:Ze=!1}=e,{fullScreenTarget:Pt=void 0}=e,{playerStarted:qt=!1}=e,{showEndScreen:Zt=!0}=e,{playNextVideo:Ut=zl}=e,{playPrevVideo:zt=zl}=e,{repeatPlaylist:Xt=zl}=e,{seekToInteractive:Wt}=e,{playPrevChapter:Ke}=e,{firstStart:Xe}=e,{seekTime:Tt}=e,_e=Te.getLogger().createComponentLog("Root component"),Jt=Te.interfaceLanguage$;O(i,Jt,oe=>t(51,ce=oe));let Et=Te.state.playbackState$;O(i,Et,oe=>t(132,G=oe));let ii=Te.ads.playbackState;O(i,ii,oe=>t(133,J=oe));let Rt=Te.state.positionWithScrubbing$;O(i,Rt,oe=>t(33,l=oe));let jt=Te.state.duration$;O(i,jt,oe=>t(32,a=oe));let oi=Te.playerPhase;O(i,oi,oe=>t(37,U=oe));let Bt=Te.ui.isFullscreen;O(i,Bt,oe=>t(148,c=oe));let si=Te.ui.controlsVisible;O(i,si,oe=>t(31,r=oe));let li=Te.ui.interactiveHideMobileControls;O(i,li,oe=>t(124,g=oe));let ai=Te.ui.settingsMenuVisible;O(i,ai,oe=>t(30,o=oe));let Ci=Te.ui.settingsMenuOpenedByKeyboard;O(i,Ci,oe=>t(122,n=oe));let Nt=Te.ui.scrubbingInProgress;O(i,Nt,oe=>t(125,k=oe));let pi=Te.ui.debugPanelVisible;O(i,pi,oe=>t(60,Ee=oe));let yi=Te.state.isLoaderVisible;O(i,yi,oe=>t(134,Q=oe));let Si=Te.state.isEnded$;O(i,Si,oe=>t(127,v=oe));let nn=Te.state.chromecastConnected$;O(i,nn,oe=>t(38,F=oe));let Ti=Te.state.chromecastDeviceName$;O(i,Ti,oe=>t(55,$=oe));let Pe=Te.ads.postrollPassed;O(i,Pe,oe=>t(128,E=oe));let it=Te.ui.mobileUnmuteButtonExpanded,Ot=Te.ui.mobileUnmuteButtonVisible,Ii=Te.state.isLive$;O(i,Ii,oe=>t(59,be=oe));let _i=Te.state.isPlaying$;O(i,_i,oe=>t(50,W=oe));let mn=Te.state.isActiveLive$;O(i,mn,oe=>t(123,u=oe));let hi=Te.state.isRewindableLive$,Wi=Te.state.crashed$;O(i,Wi,oe=>t(36,S=oe));let Ki=Te.webApi.annotationsApi,Ft=Te.webApi.pictureInPictureApi,Pi=Te.state.videoSize$;O(i,Pi,oe=>t(149,h=oe));let ui=Te.state.currentSubtitle$;O(i,ui,oe=>t(56,le=oe));let Kt=Te.state.currentSubtitleCaptions$;O(i,Kt,oe=>t(57,Me=oe));let In=Te.state.duration$;O(i,In,oe=>t(58,te=oe));let wi=Te.state.graphIsOpened$;O(i,wi,oe=>t(131,fe=oe));let pn=Te.ui.playerSize;O(i,pn,oe=>t(34,m=oe));let Pn=Te.ui.is3DVideo;O(i,Pn,oe=>t(53,x=oe));let on=Te.ui.icon3DVideoVisible;O(i,on,oe=>t(54,P=oe));let _n=Te.ui.rotateAlpha;O(i,_n,oe=>t(35,T=oe));let Ei=Te.state.isInteractive,rn=Te.state.isInteractiveTime$;O(i,rn,oe=>t(126,H=oe));let Gt=Te.state.isInteractiveExpectation$;O(i,Gt,oe=>t(130,ie=oe));let qn=Te.state.hasInteractiveBranches,xi=Te.ui.controls.disabledControls$;O(i,xi,oe=>t(52,z=oe));let ji=Te.ui.touched;O(i,ji,oe=>t(129,q=oe));let Gi=Te.ui.overlayContainer$,ki=Te.state.loadedMetadata$;O(i,ki,oe=>t(147,s=oe));let Ri=Te.actions.internal.closeSettingsMenu,sn=(kn=Te.callbacks)==null?void 0:kn.onDisabledPlayPrevChapterClick,ln=(ao=Te.callbacks)==null?void 0:ao.onDisabledSeekToInteractiveClick,Ai,Mi,ci,Yt,Ht,Bi,Ni,an,ut,Di=Oe(!1);O(i,Di,oe=>t(49,C=oe));let fi,Oi=!1,Fi,Ge=!1,Un,un=!0,En,hn,Yi=!1,Qi;Ft==null||Ft.setContext(Zr());let Zi=oe=>{clearTimeout(Bi),oe&&(Ot.set(!0),it.set(!0),Bi=window.setTimeout(()=>{it.set(!1)},Ie.controls.collapseMobileUnmute),Ei||gi(Ie.controls.hideTimeoutMobile))};Te.setUiCallbacks({onStarted:Zi});let gn=()=>{window.clearTimeout(Ht),t(117,Oi=!1),g&&li.set(!1)},gi=oe=>{gn(),t(117,Oi=!0),Ht=window.setTimeout(()=>t(117,Oi=!1),oe);let vt=oe-100;fi=window.setTimeout(()=>{C&&Di.set(!1)},vt>0?vt:oe)},An=Pn.subscribe(oe=>{on.set(oe),oe&&(window.clearTimeout(Ni),Ni=window.setTimeout(()=>on.set(!1),Ie.controls.hide360IconTimeout))}),Mn=()=>pt(this,null,function*(){var vt,Xi,qi,ne;let oe=Ro();if(oe){let Ui=es(),zo=yn(),Io=Ul.isSamsungBrowser&&Ui===kt;oe=Ui===zo||Io}if(oe){gi(Ie.controls.hideTimeoutFullscreen);try{yield Ft==null?void 0:Ft.remove()}catch(Ui){_e({message:String(Ui)})}try{let Ui=h!=null&&h.width&&(h!=null&&h.height)?h:m;yield Nd(Ui)}catch(Ui){_e({message:String(Ui)})}}Bt.set(oe),Te.getAdmanWrapper().setFullscreen(oe),c?(Xi=(vt=Te.callbacks)==null?void 0:vt.onFullscreenEnter)==null||Xi.call(vt):(ne=(qi=Te.callbacks)==null?void 0:qi.onFullscreenExit)==null||ne.call(qi)}),Ln=oe=>{let vt=oe;pn.set({width:vt.target.width,height:vt.target.height})};Lt(()=>{var vt;return Fs(Mn),Ie.features.annotationsInside&&(Ki==null||Ki.init(Ai)),ar(Ft)&&(Ft==null||Ft.assignPlayerContainer(Ai),Ft==null||Ft.registryExternalEventHandlers({resize:Ln})),t(43,un=!Ul.isIphoneOrOldIpad),We&&((vt=Ae.parentElement)==null||vt.insertBefore(We,Ae.nextSibling)),()=>{window.clearTimeout(Ht),window.clearTimeout(fi),window.clearTimeout(Bi),window.clearTimeout(Ni),An(),Ft==null||Ft.dispose(),Hs(Mn)}});let bn=!0,vn=!0,Vn=oe=>{let vt=l+(oe==="forward"?1:-1)*Ie.controls.seekStepMobile/1e3;vt<0?(t(47,bn=!1),vt=0):vt>=a&&(t(48,vn=!1),vt=a),t(119,Ge=!0),Tt(vt)},yn=()=>{let oe=Ul.isIOS||Ie.features.fullscreenInternalTargetPlayerContainer||!Ct?Ai:Ct,vt=oe.getRootNode(),Xi=vt instanceof ShadowRoot?vt.host:vt,qi=Pt instanceof HTMLElement&&Pt.contains(Xi);return Ie.allowChangingFullscreenTarget&&Pt&&qi?Pt:oe},zn=()=>pt(this,null,function*(){if(Ro())yield Os(document),_e({message:"exit fullscreen"});else{if(_e({message:"request fullscreen"}),Ul.isIOS&&!s)return;yield Ds(yn())}}),Hi=()=>{Ri()},cn=()=>{if(o){Hi();return}if(!qt){Xe(),gi(Ie.controls.hideTimeoutCursor);return}t(119,Ge=!1),r?gn():gi(Ie.controls.hideTimeoutMobile)},ni=()=>{if(o){Hi();return}},ro=()=>{ji.set(!0)},so=()=>{Ei||(Di.set(!0),gi(Ie.controls.hideTimeoutCursor))},Wn=oe=>{sn&&(sn(oe),gi(Ie.controls.hideTimeoutMobile))},di=oe=>{ln&&(ln(oe),gi(Ie.controls.hideTimeoutMobile))};function fn(oe){ge[oe?"unshift":"push"](()=>{Ae=oe,t(0,Ae)})}let Zn=()=>Vn("backward"),Kn=()=>Vn("forward");function lo(oe){Mi=oe,t(40,Mi)}function Xn(oe){ci=oe,t(41,ci)}function Jn(oe){Yt=oe,t(28,Yt)}function wn(oe){ge[oe?"unshift":"push"](()=>{ut=oe,t(29,ut)})}function xn(oe){ge[oe?"unshift":"push"](()=>{Ai=oe,t(39,Ai)})}return i.$$set=oe=>{"store"in oe&&t(109,Te=oe.store),"uiConfig"in oe&&t(1,Ie=oe.uiConfig),"thumbUrl"in oe&&t(2,rt=oe.thumbUrl),"videoContainer"in oe&&t(0,Ae=oe.videoContainer),"interactiveContainer"in oe&&t(110,We=oe.interactiveContainer),"live"in oe&&t(3,ee=oe.live),"autoplay"in oe&&t(4,pe=oe.autoplay),"canRewindLive"in oe&&t(5,Ce=oe.canRewindLive),"showAds"in oe&&t(6,xe=oe.showAds),"adsSlotId"in oe&&t(7,st=oe.adsSlotId),"adsParams"in oe&&t(8,at=oe.adsParams),"adsPreviewParam"in oe&&t(9,nt=oe.adsPreviewParam),"duration"in oe&&t(10,$e=oe.duration),"logoClickable"in oe&&t(11,de=oe.logoClickable),"logoHidden"in oe&&t(12,Se=oe.logoHidden),"logoTargetUrl"in oe&&t(13,et=oe.logoTargetUrl),"showNextPrevButtons"in oe&&t(14,De=oe.showNextPrevButtons),"nextButtonActive"in oe&&t(15,tt=oe.nextButtonActive),"prevButtonActive"in oe&&t(16,Fe=oe.prevButtonActive),"endScreenVideoTitle"in oe&&t(17,ft=oe.endScreenVideoTitle),"endScreenVideoThumb"in oe&&t(18,dt=oe.endScreenVideoThumb),"isOneVideoPlaylist"in oe&&t(19,he=oe.isOneVideoPlaylist),"supportLink"in oe&&t(20,_t=oe.supportLink),"shadowRootContainer"in oe&&t(111,kt=oe.shadowRootContainer),"outerContainerRef"in oe&&t(112,Ct=oe.outerContainerRef),"showMiniTimer"in oe&&t(113,Ze=oe.showMiniTimer),"fullScreenTarget"in oe&&t(114,Pt=oe.fullScreenTarget),"playerStarted"in oe&&t(21,qt=oe.playerStarted),"showEndScreen"in oe&&t(115,Zt=oe.showEndScreen),"playNextVideo"in oe&&t(22,Ut=oe.playNextVideo),"playPrevVideo"in oe&&t(23,zt=oe.playPrevVideo),"repeatPlaylist"in oe&&t(24,Xt=oe.repeatPlaylist),"seekToInteractive"in oe&&t(25,Wt=oe.seekToInteractive),"playPrevChapter"in oe&&t(26,Ke=oe.playPrevChapter),"firstStart"in oe&&t(27,Xe=oe.firstStart),"seekTime"in oe&&t(116,Tt=oe.seekTime)},i.$$.update=()=>{i.$$.dirty[1]&96|i.$$.dirty[4]&1536&&t(42,an=(U==="video"&&Q||U==="ads"&&J==="inactive")&&!S),i.$$.dirty[0]&536870912&&Gi.set(ut),i.$$.dirty[4]&256&&t(118,Fi=G!==l8.PLAYING),i.$$.dirty[3]&50331648|i.$$.dirty[4]&201&&t(120,Un=fe||g||!Oi&&(v&&!!qn||Fi&&ie)),i.$$.dirty[0]&1073741824|i.$$.dirty[1]&224|i.$$.dirty[3]&251658240|i.$$.dirty[4]&2&&si.set((Fi||o||k||F||Oi&&!Ge)&&!Un&&U==="video"&&!S),i.$$.dirty[0]&2|i.$$.dirty[1]&97|i.$$.dirty[3]&1048576|i.$$.dirty[4]&32&&t(44,En=Ie.features.thumbTimer&&Ze&&U==="video"&&!r&&!S&&!Ei&&(Ie.hideThumbTimerAfterTouch&&!q||!Ie.hideThumbTimerAfterTouch)),i.$$.dirty[0]&64|i.$$.dirty[1]&32|i.$$.dirty[3]&4194304|i.$$.dirty[4]&24&&t(45,hn=Zt&&(xe&&E||!xe)&&v&&!S),i.$$.dirty[0]&2|i.$$.dirty[3]&268435456|i.$$.dirty[4]&6&&(!k&&Yi&&!H&&gi(Ie.controls.hideTimeoutMobile),t(121,Yi=k)),i.$$.dirty[0]&1|i.$$.dirty[1]&24&&t(46,Qi=Ae&&T%180?m.height/m.width:1),i.$$.dirty[1]&6|i.$$.dirty[3]&1073741824&&(t(47,bn=l>0),t(48,vn=!u&&l<a)),i.$$.dirty[0]&1342177280|i.$$.dirty[3]&536870912&&po(Yt,o,n)},[Ae,Ie,rt,ee,pe,Ce,xe,st,at,nt,$e,de,Se,et,De,tt,Fe,ft,dt,he,_t,qt,Ut,zt,Xt,Wt,Ke,Xe,Yt,ut,o,r,a,l,m,T,S,U,F,Ai,Mi,ci,an,un,En,hn,Qi,bn,vn,C,W,ce,z,x,P,$,le,Me,te,be,Ee,Jt,Et,ii,Rt,jt,oi,Bt,si,li,ai,Ci,Nt,pi,yi,Si,nn,Ti,Pe,Ii,_i,mn,hi,Wi,Pi,ui,Kt,In,wi,pn,Pn,on,_n,Ei,rn,Gt,xi,ji,ki,Di,Vn,zn,Hi,cn,ni,ro,so,Wn,di,Te,We,kt,Ct,Ze,Pt,Zt,Tt,Oi,Fi,Ge,Un,Yi,n,u,g,k,H,v,E,q,ie,fe,G,J,Q,fn,Zn,Kn,lo,Xn,Jn,wn,xn]}var wf=class extends N{constructor(e){super(),D(this,e,c8,u8,R,{store:109,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:110,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,shadowRootContainer:111,outerContainerRef:112,showMiniTimer:113,fullScreenTarget:114,playerStarted:21,showEndScreen:115,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,playPrevChapter:26,firstStart:27,seekTime:116},a8,[-1,-1,-1,-1,-1,-1])}},L_=wf;function _8(i){ve(i,"svelte-w727va",`.root.svelte-w727va{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0, 0, 0, 0.40);--white-alpha-24:rgba(255, 255, 255, 0.24);--white-alpha-72:rgba(255, 255, 255, 0.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left:4px;--focused:var(--white);--focused-element-shadow:inset 0 0 0 2px var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0, 0, 0, 0.5);--big-play-hover-bg-color:rgba(0, 0, 0, 0.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:rgba(92, 156, 230, 1);--slider-height:5px;--slider-video-episode-gap:1.5px;--slider-radius:calc(var(--slider-height) / 2);--slider-handle-size:13px;--slider-bg:rgba(255, 255, 255, 0.4);--slider-loaded-bg:rgba(255, 255, 255, 0.4);--slider-filled-bg:var(--white);--slider-filled-active-live-bg:var(--red);--slider-filled-ads:rgba(103, 165, 235, 1);--slider-disabled-color:rgba(248, 248, 248, 0.31);--controls-gradient:linear-gradient(
|
|
34
|
+
)}.hidden.svelte-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function V6(i){let e,t;return{c(){e=P("div"),t=Oe(i[0]),f(e,"class","title svelte-1bcvcf2"),K(e,"hidden",i[1])},m(n,o){k(n,e,o),_(e,t)},p(n,[o]){o&1&&Ke(t,n[0]),o&2&&K(e,"hidden",n[1])},i:me,o:me,d(n){n&&w(e)}}}function R6(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"isHidden"in r&&t(1,o=r.isHidden)},[n,o]}var Jc=class extends H{constructor(e){super(),U(this,e,R6,V6,F,{title:0,isHidden:1},L6)}},y0=Jc;function B6(i){ge(i,"svelte-1qpxtfg",".timer__container.svelte-1qpxtfg{display:flex;align-items:flex-start;justify-content:center}.cell.svelte-1qpxtfg{display:flex;flex-direction:column;align-items:center;width:62px}.cell__value.svelte-1qpxtfg{font-size:48px;line-height:1.2;font-weight:700}.cell__unit.svelte-1qpxtfg{font-size:14px;line-height:1.2;font-weight:400}.timer__points.svelte-1qpxtfg{display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600}")}function w0(i){let e,t,n,o,r,s,a;return{c(){e=P("div"),t=P("span"),n=Oe(i[0]),o=Y(),r=P("span"),r.textContent=`${G("waiting_live_day_value")}`,s=Y(),a=P("span"),a.textContent=`${G("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(l,u){k(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),k(l,s,u),k(l,a,u)},p(l,u){u&1&&Ke(n,l[0])},d(l){l&&(w(e),w(s),w(a))}}}function k0(i){let e,t,n,o,r,s,a;return{c(){e=P("div"),t=P("span"),n=Oe(i[1]),o=Y(),r=P("span"),r.textContent=`${G("waiting_live_hour_value")}`,s=Y(),a=P("span"),a.textContent=`${G("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(l,u){k(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),k(l,s,u),k(l,a,u)},p(l,u){u&2&&Ke(n,l[1])},d(l){l&&(w(e),w(s),w(a))}}}function C0(i){let e,t,n,o,r,s,a;return{c(){e=P("div"),t=P("span"),n=Oe(i[2]),o=Y(),r=P("span"),r.textContent=`${G("waiting_live_minute_value")}`,s=Y(),a=P("span"),a.textContent=`${G("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(l,u){k(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),k(l,s,u),k(l,a,u)},p(l,u){u&4&&Ke(n,l[2])},d(l){l&&(w(e),w(s),w(a))}}}function S0(i){let e,t,n,o,r;return{c(){e=P("div"),t=P("span"),n=Oe(i[3]),o=Y(),r=P("span"),r.textContent=`${G("waiting_live_second_value")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg")},m(s,a){k(s,e,a),_(e,t),_(t,n),_(e,o),_(e,r)},p(s,a){a&8&&Ke(n,s[3])},d(s){s&&w(e)}}}function N6(i){let e,t,n,o,r=i[0]&&w0(i),s=i[1]&&k0(i),a=i[2]&&C0(i),l=i[3]&&S0(i);return{c(){e=P("div"),r&&r.c(),t=Y(),s&&s.c(),n=Y(),a&&a.c(),o=Y(),l&&l.c(),f(e,"class","timer__container svelte-1qpxtfg")},m(u,c){k(u,e,c),r&&r.m(e,null),_(e,t),s&&s.m(e,null),_(e,n),a&&a.m(e,null),_(e,o),l&&l.m(e,null)},p(u,[c]){u[0]?r?r.p(u,c):(r=w0(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?s?s.p(u,c):(s=k0(u),s.c(),s.m(e,n)):s&&(s.d(1),s=null),u[2]?a?a.p(u,c):(a=C0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?l?l.p(u,c):(l=S0(u),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i:me,o:me,d(u){u&&w(e),r&&r.d(),s&&s.d(),a&&a.d(),l&&l.d()}}}function D6(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,s,a,l,u,c=y=>String(y).padStart(2,"0"),m=y=>{let g=Math.floor(y/86400);g&&(y-=g*86400,t(0,r=c(g)));let I=Math.floor(y/3600);t(1,s=c(I));let C=Math.floor(y/60)%60;t(2,a=c(C));let V=y%60;t(3,l=c(V))},h=()=>{let y=Math.floor(Date.now()/1e3),g=n-y;m(g),g>=1?u=requestAnimationFrame(h):o()};return Ft(()=>{u=requestAnimationFrame(h)}),oo(()=>{cancelAnimationFrame(u)}),i.$$set=y=>{"startTime"in y&&t(4,n=y.startTime),"onTimerOver"in y&&t(5,o=y.onTimerOver)},[r,s,a,l,n,o]}var $c=class extends H{constructor(e){super(),U(this,e,D6,N6,F,{startTime:4,onTimerOver:5},B6)}},T0=$c;function O6(i){let e,t,n,o,r,s,a=i[2].default,l=Le(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},i[0]],c={};for(let m=0;m<u.length;m+=1)c=re(c,u[m]);return{c(){e=O("svg"),l&&l.c(),t=O("path"),n=O("path"),o=O("path"),r=O("path"),f(t,"fill","#fefffe"),f(t,"d","M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5"),vi(t,"opacity",".965"),f(n,"fill","#fefffe"),f(n,"d","M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82"),vi(n,"opacity",".965"),f(o,"fill","#fefffe"),f(o,"d","M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84"),vi(o,"opacity",".985"),f(r,"fill","#fefffe"),f(r,"d","M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54"),vi(r,"opacity",".986"),ye(e,c)},m(m,h){k(m,e,h),l&&l.m(e,null),_(e,t),_(e,n),_(e,o),_(e,r),s=!0},p(m,[h]){l&&l.p&&(!s||h&2)&&Re(l,a,m,m[1],s?Ve(a,m[1],h,null):Be(m[1]),null),ye(e,c=Fe(u,[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},h&1&&m[0]]))},i(m){s||(d(l,m),s=!0)},o(m){p(l,m),s=!1},d(m){m&&w(e),l&&l.d(m)}}}function F6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var ef=class extends H{constructor(e){super(),U(this,e,F6,O6,F,{})}},I0=ef;function H6(i){ge(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 q6(i){let e,t,n,o,r;return o=new T0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=P("div"),t=P("span"),t.textContent=`${G("waiting_live_timer_title")}`,n=Y(),N(o.$$.fragment),f(t,"class","timer__title svelte-15pewff"),f(e,"class","waiting-timer timer svelte-15pewff")},m(s,a){k(s,e,a),_(e,t),_(e,n),R(o,e,null),r=!0},p(s,a){let l={};a&2&&(l.startTime=s[1]||0),a&4&&(l.onTimerOver=s[3]),o.$set(l)},i(s){r||(d(o.$$.fragment,s),r=!0)},o(s){p(o.$$.fragment,s),r=!1},d(s){s&&w(e),B(o)}}}function U6(i){let e,t,n,o,r,s;return n=new I0({}),{c(){e=P("div"),t=P("div"),N(n.$$.fragment),o=Y(),r=P("span"),r.textContent=`${G("waiting_live_upcoming_title")}`,f(t,"class","upcoming-icon svelte-15pewff"),f(r,"class","upcoming__title svelte-15pewff"),f(e,"class","upcoming svelte-15pewff")},m(a,l){k(a,e,l),_(e,t),R(n,t,null),_(e,o),_(e,r),s=!0},p:me,i(a){s||(d(n.$$.fragment,a),s=!0)},o(a){p(n.$$.fragment,a),s=!1},d(a){a&&w(e),B(n)}}}function z6(i){let e,t,n,o,r,s=[U6,q6],a=[];function l(u,c){return u[2]?0:1}return t=l(i,-1),n=a[t]=s[t](i),{c(){e=P("div"),n.c(),f(e,"class","waiting-container svelte-15pewff"),f(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,c){k(u,e,c),a[t].m(e,null),r=!0},p(u,[c]){let m=t;t=l(u,c),t===m?a[t].p(u,c):(se(),p(a[m],1,1,()=>{a[m]=null}),le(),n=a[t],n?n.p(u,c):(n=a[t]=s[t](u),n.c()),d(n,1),n.m(e,null)),(!r||c&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&f(e,"style",o)},i(u){r||(d(n),r=!0)},o(u){p(n),r=!1},d(u){u&&w(e),a[t].d()}}}function W6(i,e,t){let n,{thumbUrl:o}=e,{startTime:r}=e,s=()=>t(2,n=!0);return i.$$set=a=>{"thumbUrl"in a&&t(0,o=a.thumbUrl),"startTime"in a&&t(1,r=a.startTime)},i.$$.update=()=>{i.$$.dirty&2&&t(2,n=r===void 0||r<Math.floor(Date.now()/1e3))},[o,r,n,s]}var tf=class extends H{constructor(e){super(),U(this,e,W6,z6,F,{thumbUrl:0,startTime:1},H6)}},Wl=tf;function x6(i){ge(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 K6(i){let e,t,n,o,r,s,a,l;return n=new Vr({props:{style:"position: static; transform: translate(0, 0)"}}),{c(){e=P("div"),t=P("div"),N(n.$$.fragment),o=Y(),r=P("p"),s=Oe(i[1]),f(r,"class","waiting-title svelte-xvqwsa"),f(t,"class","waiting-caption svelte-xvqwsa"),f(e,"class","waiting-container svelte-xvqwsa"),f(e,"style",a=`background-image: url('${i[0]}')`)},m(u,c){k(u,e,c),_(e,t),R(n,t,null),_(t,o),_(t,r),_(r,s),l=!0},p(u,[c]){(!l||c&2)&&Ke(s,u[1]),(!l||c&1&&a!==(a=`background-image: url('${u[0]}')`))&&f(e,"style",a)},i(u){l||(d(n.$$.fragment,u),l=!0)},o(u){p(n.$$.fragment,u),l=!1},d(u){u&&w(e),B(n)}}}function j6(i,e,t){let{thumbUrl:n=""}=e,{kind:o}=e,r;return i.$$set=s=>{"thumbUrl"in s&&t(0,n=s.thumbUrl),"kind"in s&&t(2,o=s.kind)},i.$$.update=()=>{if(i.$$.dirty&4){let s={recover:G("waiting_live_recover_title"),record:G("waiting_record_title")};t(1,r=s[o]||"")}},[n,r,o]}var nf=class extends H{constructor(e){super(),U(this,e,j6,K6,F,{thumbUrl:0,kind:2},x6)}},zr=nf;var xl=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),Kl=(i,e)=>{var s;if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=(s=Sl(t))!=null?s:t),n&&t&&o){let a=e.filter(l=>l.label===n&&l.language===t);if(a.length===1)return G("audio_stream_display_language_label",{language:o,label:n});{let l=xl(i,a);return G("audio_stream_display_language_label_index",{language:o,label:n,index:l})}}if(n){let a=e.filter(l=>l.label===n);if(a.length===1)return n;{let l=xl(i,a);return G("audio_stream_display_label_index",{label:n,index:l})}}if(t&&o){let a=e.filter(l=>l.language===t);if(a.length===1)return o;{let l=xl(i,a);return G("audio_stream_display_language_index",{language:o,index:l})}}let r=xl(i,e);return G("audio_stream_display_unknown",{index:r})};function G6(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"d","M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function Y6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var of=class extends H{constructor(e){super(),U(this,e,Y6,G6,F,{})}},P0=of;function Q6(i){ge(i,"svelte-124aexk",".select-icon.svelte-124aexk{margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px}")}function E0(i){let e,t,n;return t=new P0({}),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","select-icon svelte-124aexk")},m(o,r){k(o,e,r),R(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),B(t)}}}function Z6(i){var o;let e,t=((o=i[1].label)!=null?o:i[1].value)+"",n;return{c(){e=P("div"),n=Oe(t),f(e,"class","menu-item-value"),K(e,"submenu-value-mobile",i[0])},m(r,s){k(r,e,s),_(e,n)},p(r,s){var a;s&2&&t!==(t=((a=r[1].label)!=null?a:r[1].value)+"")&&Ke(n,t),s&1&&K(e,"submenu-value-mobile",r[0])},i:me,o:me,d(r){r&&w(e)}}}function X6(i){var a;let e,t,n,o=[(a=i[1].valueComponentParams)!=null?a:{}];var r=i[1].valueComponent;function s(l,u){var m;let c={};for(let h=0;h<o.length;h+=1)c=re(c,o[h]);return u!==void 0&&u&2&&(c=re(c,Fe(o,[Bo((m=l[1].valueComponentParams)!=null?m:{})]))),{props:c}}return r&&(e=Ot(r,s(i))),{c(){e&&N(e.$$.fragment),t=$e()},m(l,u){e&&R(e,l,u),k(l,t,u),n=!0},p(l,u){var c;if(u&2&&r!==(r=l[1].valueComponent)){if(e){se();let m=e;p(m.$$.fragment,1,0,()=>{B(m,1)}),le()}r?(e=Ot(r,s(l,u)),N(e.$$.fragment),d(e.$$.fragment,1),R(e,t.parentNode,t)):e=null}else if(r){let m=u&2?Fe(o,[Bo((c=l[1].valueComponentParams)!=null?c:{})]):{};e.$set(m)}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&p(e.$$.fragment,l),n=!1},d(l){l&&w(t),e&&B(e,l)}}}function J6(i){let e,t,n,o,r,s,a,l,u,c=i[1].selected&&E0(i),m=[X6,Z6],h=[];function y(g,I){return g[1].valueComponent?0:1}return n=y(i,-1),o=h[n]=m[n](i),{c(){var g,I,C;e=P("li"),c&&c.c(),t=Y(),o.c(),f(e,"class","item"),f(e,"data-value",r=(g=i[1].dataValue)!=null?g:i[1].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=(C=(I=i[1].ariaLabel)!=null?I:i[1].label)!=null?C:i[1].value.toString()),K(e,"mobile",i[0])},m(g,I){k(g,e,I),c&&c.m(e,null),_(e,t),h[n].m(e,null),a=!0,l||(u=[ke(e,"click",vt(i[4])),ke(e,"keydown",i[5])],l=!0)},p(g,[I]){var V,S,v;g[1].selected?c?I&2&&d(c,1):(c=E0(g),c.c(),d(c,1),c.m(e,t)):c&&(se(),p(c,1,1,()=>{c=null}),le());let C=n;n=y(g,I),n===C?h[n].p(g,I):(se(),p(h[C],1,1,()=>{h[C]=null}),le(),o=h[n],o?o.p(g,I):(o=h[n]=m[n](g),o.c()),d(o,1),o.m(e,null)),(!a||I&2&&r!==(r=(V=g[1].dataValue)!=null?V:g[1].value))&&f(e,"data-value",r),(!a||I&2&&s!==(s=(v=(S=g[1].ariaLabel)!=null?S:g[1].label)!=null?v:g[1].value.toString()))&&f(e,"aria-label",s),(!a||I&1)&&K(e,"mobile",g[0])},i(g){a||(d(c),d(o),a=!0)},o(g){p(c),p(o),a=!1},d(g){g&&w(e),c&&c.d(),h[n].d(),l=!1,ut(u)}}}function $6(i,e,t){let{isMobile:n=!1}=e,{item:o}=e,{selectItem:r}=e,s=(u,c)=>{Mr(u,()=>r(c))},a=()=>r(o.value),l=u=>s(u,o.value);return i.$$set=u=>{"isMobile"in u&&t(0,n=u.isMobile),"item"in u&&t(1,o=u.item),"selectItem"in u&&t(2,r=u.selectItem)},[n,o,r,s,a,l]}var rf=class extends H{constructor(e){super(),U(this,e,$6,J6,F,{isMobile:0,item:1,selectItem:2},Q6)}},A0=rf;function ey(i){let e,t,n=i[2].label+"",o,r,s,a,l;return{c(){var u;e=P("li"),t=P("div"),o=Oe(n),f(t,"class","menu-item-value"),K(t,"submenu-value-mobile",i[1]),f(e,"class","item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",r=(u=i[2].ariaLabel)!=null?u:i[2].label),f(e,"aria-haspopup","true"),f(e,"data-testid",s=i[2].id),K(e,"mobile",i[1])},m(u,c){k(u,e,c),_(e,t),_(t,o),i[6](e),a||(l=[ke(e,"click",vt(function(){ti(i[3])&&i[3].apply(this,arguments)})),ke(e,"keydown",function(){ti(i[4])&&i[4].apply(this,arguments)})],a=!0)},p(u,[c]){var m;i=u,c&4&&n!==(n=i[2].label+"")&&Ke(o,n),c&2&&K(t,"submenu-value-mobile",i[1]),c&4&&r!==(r=(m=i[2].ariaLabel)!=null?m:i[2].label)&&f(e,"aria-label",r),c&4&&s!==(s=i[2].id)&&f(e,"data-testid",s),c&2&&K(e,"mobile",i[1])},i:me,o:me,d(u){u&&w(e),i[6](null),a=!1,ut(l)}}}function ty(i,e,t){let n,o,{isMobile:r=!1}=e,{item:s}=e,{openSubMenuList:a}=e,{refMenuItems:l}=e;function u(c){be[c?"unshift":"push"](()=>{l[s.id]=c,t(0,l)})}return i.$$set=c=>{"isMobile"in c&&t(1,r=c.isMobile),"item"in c&&t(2,s=c.item),"openSubMenuList"in c&&t(5,a=c.openSubMenuList),"refMenuItems"in c&&t(0,l=c.refMenuItems)},i.$$.update=()=>{i.$$.dirty&36&&t(3,n=()=>a(s.subMenuId)),i.$$.dirty&12&&t(4,o=c=>Zs(c,n,s.getSubItemForFocus))},[l,r,s,n,o,a,u]}var sf=class extends H{constructor(e){super(),U(this,e,ty,ey,F,{isMobile:1,item:2,openSubMenuList:5,refMenuItems:0})}},M0=sf;var lo={"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 oy(i){ge(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 L0(i,e,t){let n=i.slice();return n[25]=e[t],n}function ry(i){let e,t;return e=new M0({props:{isMobile:i[2],item:i[25],openSubMenuList:i[6],refMenuItems:i[9]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.isMobile=n[2]),o&128&&(r.item=n[25]),o&64&&(r.openSubMenuList=n[6]),o&512&&(r.refMenuItems=n[9]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function sy(i){let e,t;return e=new A0({props:{item:i[25],isMobile:i[2],selectItem:i[25].selectItem}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&128&&(r.item=n[25]),o&4&&(r.isMobile=n[2]),o&128&&(r.selectItem=n[25].selectItem),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function V0(i){let e,t,n,o,r=[sy,ry],s=[];function a(l,u){return l[25].type==="SELECT_VALUE"?0:l[25].type==="OPEN_SUB_MENU"?1:-1}return~(e=a(i,-1))&&(t=s[e]=r[e](i)),{c(){t&&t.c(),n=$e()},m(l,u){~e&&s[e].m(l,u),k(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?~e&&s[e].p(l,u):(t&&(se(),p(s[c],1,1,()=>{s[c]=null}),le()),~e?(t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n)):t=null)},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),~e&&s[e].d(l)}}}function ly(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g;o=new mr({props:{direction:"left"}});let I=Tt(i[7]),C=[];for(let S=0;S<I.length;S+=1)C[S]=V0(L0(i,I,S));let V=S=>p(C[S],1,1,()=>{C[S]=null});return{c(){var S;e=P("div"),t=P("ul"),n=P("li"),N(o.$$.fragment),r=Y(),s=P("div"),a=Oe(i[5]),l=Y();for(let v=0;v<C.length;v+=1)C[v].c();f(n,"class","item header back svelte-1mrc4z3"),f(n,"role","menuitem"),f(n,"tabindex","0"),f(n,"data-testid","return-to-settings-menu"),f(n,"aria-label",i[4]),K(n,"mobile",i[2]),f(t,"class","items"),f(t,"role","menu"),f(t,"style",u=i[15]((S=i[10])==null?void 0:S.clientHeight)),K(t,"mobile",i[2]),f(e,"class","sub-menu menu svelte-1mrc4z3"),f(e,"data-testid",c=`sub-menu-${i[1]}`),f(e,"style",m=`min-width: ${i[8]}px`),K(e,"desktop",!i[2]),K(e,"mobile",i[2])},m(S,v){k(S,e,v),_(e,t),_(t,n),R(o,n,null),_(n,r),_(n,s),_(s,a),i[20](n),_(t,l);for(let E=0;E<C.length;E+=1)C[E]&&C[E].m(t,null);i[21](t),h=!0,y||(g=[ke(n,"click",vt(function(){ti(i[3])&&i[3].apply(this,arguments)})),ke(n,"keydown",i[14]),ke(t,"keydown",i[13])],y=!0)},p(S,[v]){var E;if(i=S,(!h||v&32)&&Ke(a,i[5]),(!h||v&16)&&f(n,"aria-label",i[4]),(!h||v&4)&&K(n,"mobile",i[2]),v&708){I=Tt(i[7]);let W;for(W=0;W<I.length;W+=1){let D=L0(i,I,W);C[W]?(C[W].p(D,v),d(C[W],1)):(C[W]=V0(D),C[W].c(),d(C[W],1),C[W].m(t,null))}for(se(),W=I.length;W<C.length;W+=1)V(W);le()}(!h||v&1024&&u!==(u=i[15]((E=i[10])==null?void 0:E.clientHeight)))&&f(t,"style",u),(!h||v&4)&&K(t,"mobile",i[2]),(!h||v&2&&c!==(c=`sub-menu-${i[1]}`))&&f(e,"data-testid",c),(!h||v&256&&m!==(m=`min-width: ${i[8]}px`))&&f(e,"style",m),(!h||v&4)&&K(e,"desktop",!i[2]),(!h||v&4)&&K(e,"mobile",i[2])},i(S){if(!h){d(o.$$.fragment,S);for(let v=0;v<I.length;v+=1)d(C[v]);h=!0}},o(S){p(o.$$.fragment,S),C=C.filter(Boolean);for(let v=0;v<C.length;v+=1)p(C[v]);h=!1},d(S){S&&w(e),B(o),i[20](null),pi(C,S),i[21](null),y=!1,ut(g)}}}function ay(i,e,t){let n,o,{id:r}=e,{parentItemId:s}=e,{isMobile:a=!1}=e,{playerControlsHeight:l=0}=e,{returnFromSubMenu:u}=e,{ariaLabelReturnFromSubMenu:c=G("aria_label_submenu_back")}=e,{title:m}=e,{listRef:h}=e,{closeSettingsMenu:y}=e,{openSubMenuList:g}=e,{itemIdReturnCase:I}=e,{items:C}=e,{minWidth:V}=e,{refMenuItems:S}=e,v=nt(),E=v.ui.isFullscreen;q(i,E,X=>t(23,o=X));let W=v.ui.playerSize;q(i,W,X=>t(22,n=X));let D,L=X=>{l1(X,u,{itemIdReturnCase:I,id:s},y)},J=X=>{ss(X)&&(Yn(X),u(),I.set(s))},ue=(X=0)=>a&&o?`max-height: ${Math.round(n.height*.6)}px`:a?"":`max-height: ${n.height-32-X-l}px; overflow: auto;`;function Q(X){be[X?"unshift":"push"](()=>{D=X,t(10,D)})}function ee(X){be[X?"unshift":"push"](()=>{h=X,t(0,h)})}return i.$$set=X=>{"id"in X&&t(1,r=X.id),"parentItemId"in X&&t(16,s=X.parentItemId),"isMobile"in X&&t(2,a=X.isMobile),"playerControlsHeight"in X&&t(17,l=X.playerControlsHeight),"returnFromSubMenu"in X&&t(3,u=X.returnFromSubMenu),"ariaLabelReturnFromSubMenu"in X&&t(4,c=X.ariaLabelReturnFromSubMenu),"title"in X&&t(5,m=X.title),"listRef"in X&&t(0,h=X.listRef),"closeSettingsMenu"in X&&t(18,y=X.closeSettingsMenu),"openSubMenuList"in X&&t(6,g=X.openSubMenuList),"itemIdReturnCase"in X&&t(19,I=X.itemIdReturnCase),"items"in X&&t(7,C=X.items),"minWidth"in X&&t(8,V=X.minWidth),"refMenuItems"in X&&t(9,S=X.refMenuItems)},[h,r,a,u,c,m,g,C,V,S,D,E,W,L,J,ue,s,l,y,I,Q,ee]}var lf=class extends H{constructor(e){super(),U(this,e,ay,ly,F,{id:1,parentItemId:16,isMobile:2,playerControlsHeight:17,returnFromSubMenu:3,ariaLabelReturnFromSubMenu:4,title:5,listRef:0,closeSettingsMenu:18,openSubMenuList:6,itemIdReturnCase:19,items:7,minWidth:8,refMenuItems:9},oy)}},R0=lf;import{noop as uy}from"@vkontakte/videoplayer-shared";function cy(i){ge(i,"svelte-1ikfjte",".value.svelte-1ikfjte{position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis}")}function fy(i){let e,t,n;var o=i[8];function r(s,a){return{}}return o&&(e=Ot(o,r(i))),{c(){e&&N(e.$$.fragment),t=$e()},m(s,a){e&&R(e,s,a),k(s,t,a),n=!0},p(s,a){if(a&256&&o!==(o=s[8])){if(e){se();let l=e;p(l.$$.fragment,1,0,()=>{B(l,1)}),le()}o?(e=Ot(o,r(s,a)),N(e.$$.fragment),d(e.$$.fragment,1),R(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&w(t),e&&B(e,s)}}}function dy(i){let e,t;return e=new Ur({props:{icon:i[8]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&256&&(r.icon=n[8]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function my(i){let e,t;return{c(){e=P("div"),t=Oe(i[6]),f(e,"class","value svelte-1ikfjte")},m(n,o){k(n,e,o),_(e,t)},p(n,o){o&64&&Ke(t,n[6])},i:me,o:me,d(n){n&&w(e)}}}function py(i){let e,t,n;var o=i[7];function r(s,a){return{}}return o&&(e=Ot(o,r(i))),{c(){e&&N(e.$$.fragment),t=$e()},m(s,a){e&&R(e,s,a),k(s,t,a),n=!0},p(s,a){if(a&128&&o!==(o=s[7])){if(e){se();let l=e;p(l.$$.fragment,1,0,()=>{B(l,1)}),le()}o?(e=Ot(o,r(s,a)),N(e.$$.fragment),d(e.$$.fragment,1),R(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&w(t),e&&B(e,s)}}}function _y(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g=[dy,fy],I=[];function C(E,W){return typeof E[8]=="string"?0:1}n=C(i,-1),o=I[n]=g[n](i);let V=[py,my],S=[];function v(E,W){return E[7]?0:1}return u=v(i,-1),c=S[u]=V[u](i),{c(){e=P("li"),t=P("div"),o.c(),r=Y(),s=P("div"),a=Oe(i[4]),l=Y(),c.c(),f(t,"class","icon-wrapper"),f(s,"class","label"),f(e,"class","item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",i[5]),f(e,"aria-haspopup","true"),f(e,"data-testid",i[1]),K(e,"mobile",i[2])},m(E,W){k(E,e,W),_(e,t),I[n].m(t,null),_(e,r),_(e,s),_(s,a),_(e,l),S[u].m(e,null),i[11](e),m=!0,h||(y=[ke(e,"click",vt(function(){ti(i[3])&&i[3].apply(this,arguments)})),ke(e,"keydown",i[9])],h=!0)},p(E,[W]){i=E;let D=n;n=C(i,W),n===D?I[n].p(i,W):(se(),p(I[D],1,1,()=>{I[D]=null}),le(),o=I[n],o?o.p(i,W):(o=I[n]=g[n](i),o.c()),d(o,1),o.m(t,null)),(!m||W&16)&&Ke(a,i[4]);let L=u;u=v(i,W),u===L?S[u].p(i,W):(se(),p(S[L],1,1,()=>{S[L]=null}),le(),c=S[u],c?c.p(i,W):(c=S[u]=V[u](i),c.c()),d(c,1),c.m(e,null)),(!m||W&32)&&f(e,"aria-label",i[5]),(!m||W&2)&&f(e,"data-testid",i[1]),(!m||W&4)&&K(e,"mobile",i[2])},i(E){m||(d(o),d(c),m=!0)},o(E){p(o),p(c),m=!1},d(E){E&&w(e),I[n].d(),S[u].d(),i[11](null),h=!1,ut(y)}}}function hy(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:r=uy}=e,{getSubItemForFocus:s}=e,{label:a}=e,{ariaLabel:l}=e,{value:u}=e,{valueComponent:c=void 0}=e,{ref:m}=e,{icon:h}=e,y=I=>Zs(I,r,s);function g(I){be[I?"unshift":"push"](()=>{m=I,t(0,m)})}return i.$$set=I=>{"id"in I&&t(1,n=I.id),"isMobile"in I&&t(2,o=I.isMobile),"onClick"in I&&t(3,r=I.onClick),"getSubItemForFocus"in I&&t(10,s=I.getSubItemForFocus),"label"in I&&t(4,a=I.label),"ariaLabel"in I&&t(5,l=I.ariaLabel),"value"in I&&t(6,u=I.value),"valueComponent"in I&&t(7,c=I.valueComponent),"ref"in I&&t(0,m=I.ref),"icon"in I&&t(8,h=I.icon)},[m,n,o,r,a,l,u,c,h,y,s,g]}var uf=class extends H{constructor(e){super(),U(this,e,hy,_y,F,{id:1,isMobile:2,onClick:3,getSubItemForFocus:10,label:4,ariaLabel:5,value:6,valueComponent:7,ref:0,icon:8},cy)}},B0=uf;function gy(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18"),f(t,"clip-rule","evenodd"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function by(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var cf=class extends H{constructor(e){super(),U(this,e,by,gy,F,{})}},N0=cf;function vy(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z"),f(t,"clip-rule","evenodd"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function yy(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var ff=class extends H{constructor(e){super(),U(this,e,yy,vy,F,{})}},D0=ff;function wy(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=O("svg"),a&&a.c(),t=O("g"),n=O("path"),o=O("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"fill-rule","nonzero"),f(o,"d","M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),ye(e,u)},m(c,m){k(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),ye(e,u=Fe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&w(e),a&&a.d(c)}}}function ky(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var df=class extends H{constructor(e){super(),U(this,e,ky,wy,F,{})}},O0=df;function Cy(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"d","M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function Sy(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var mf=class extends H{constructor(e){super(),U(this,e,Sy,Cy,F,{})}},F0=mf;function Ty(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492"),f(t,"clip-rule","evenodd"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function Iy(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var pf=class extends H{constructor(e){super(),U(this,e,Iy,Ty,F,{})}},_f=pf;function Py(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"d","M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function Ey(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var hf=class extends H{constructor(e){super(),U(this,e,Ey,Py,F,{})}},H0=hf;function Ay(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z"),f(t,"clip-rule","evenodd"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function My(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var gf=class extends H{constructor(e){super(),U(this,e,My,Ay,F,{})}},q0=gf;import"@vkontakte/videoplayer-core";function Ly(i){ge(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 U0(i){let e,t,n;var o=i[3];function r(s,a){return{}}return o&&(t=Ot(o,r(i))),{c(){e=P("div"),t&&N(t.$$.fragment),f(e,"class","quality-icon svelte-1a7qwh6")},m(s,a){k(s,e,a),t&&R(t,e,null),n=!0},p(s,a){if(a&8&&o!==(o=s[3])){if(t){se();let l=t;p(l.$$.fragment,1,0,()=>{B(l,1)}),le()}o?(t=Ot(o,r(s,a)),N(t.$$.fragment),d(t.$$.fragment,1),R(t,e,null)):t=null}},i(s){n||(t&&d(t.$$.fragment,s),n=!0)},o(s){t&&p(t.$$.fragment,s),n=!1},d(s){s&&w(e),t&&B(t)}}}function Vy(i){let e,t,n,o,r,s=i[3]&&!i[1]&&U0(i);return{c(){e=P("div"),t=P("span"),n=Oe(i[0]),o=Y(),s&&s.c(),f(t,"class","svelte-1a7qwh6"),f(e,"class","menu-item-value svelte-1a7qwh6"),K(e,"sub",i[2])},m(a,l){k(a,e,l),_(e,t),_(t,n),_(e,o),s&&s.m(e,null),r=!0},p(a,[l]){(!r||l&1)&&Ke(n,a[0]),a[3]&&!a[1]?s?(s.p(a,l),l&10&&d(s,1)):(s=U0(a),s.c(),d(s,1),s.m(e,null)):s&&(se(),p(s,1,1,()=>{s=null}),le()),(!r||l&4)&&K(e,"sub",a[2])},i(a){r||(d(s),r=!0)},o(a){p(s),r=!1},d(a){a&&w(e),s&&s.d()}}}function Ry(i,e,t){let n,{quality:o}=e,{label:r}=e,{isMobile:s}=e,{isSubCase:a=!1}=e;return i.$$set=l=>{"quality"in l&&t(4,o=l.quality),"label"in l&&t(0,r=l.label),"isMobile"in l&&t(1,s=l.isMobile),"isSubCase"in l&&t(2,a=l.isSubCase)},i.$$.update=()=>{i.$$.dirty&16&&t(3,n=ul(o))},[r,s,a,n,o]}var bf=class extends H{constructor(e){super(),U(this,e,Ry,Vy,F,{quality:4,label:0,isMobile:1,isSubCase:2},Ly)}},jl=bf;import{VideoQuality as By}from"@vkontakte/videoplayer-core";var Gl=(i,e,t)=>{if(!i)return"...";let n=e.find(r=>r.value===i),o=n?n.displayValue:i;return t?i===By.INVARIANT?G("auto_quality_invariant"):G("auto_quality",{actual:o}):o};function Ny(i){ge(i,"svelte-vk2gx4",".menu-item-value-wrapper.svelte-vk2gx4{right:-22px;position:relative}")}function Dy(i){let e,t,n;return t=new jl({props:{quality:i[0],label:i[1],isMobile:i[2]}}),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","menu-item-value-wrapper svelte-vk2gx4")},m(o,r){k(o,e,r),R(t,e,null),n=!0},p(o,[r]){let s={};r&1&&(s.quality=o[0]),r&2&&(s.label=o[1]),r&4&&(s.isMobile=o[2]),t.$set(s)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),B(t)}}}function Oy(i,e,t){let n,o,r,s,a=nt(),l=a.state.currentQuality$;q(i,l,y=>t(0,r=y));let u=a.state.availableQualities$;q(i,u,y=>t(8,o=y));let c=a.state.isAutoQualityEnabled$;q(i,c,y=>t(7,n=y));let m=a.ui.isMobile;q(i,m,y=>t(2,s=y));let h;return i.$$.update=()=>{i.$$.dirty&385&&t(1,h=Gl(r,o,n))},[r,h,s,l,u,c,m,n,o]}var vf=class extends H{constructor(e){super(),U(this,e,Oy,Dy,F,{},Ny)}},z0=vf;import{noop as W0}from"@vkontakte/videoplayer-shared";function Fy(i){let e,t,n;var o=i[4];function r(s,a){return{}}return o&&(e=Ot(o,r(i))),{c(){e&&N(e.$$.fragment),t=$e()},m(s,a){e&&R(e,s,a),k(s,t,a),n=!0},p(s,a){if(a&16&&o!==(o=s[4])){if(e){se();let l=e;p(l.$$.fragment,1,0,()=>{B(l,1)}),le()}o?(e=Ot(o,r(s,a)),N(e.$$.fragment),d(e.$$.fragment,1),R(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&w(t),e&&B(e,s)}}}function Hy(i){let e;function t(r,s){return r[5]?Uy:qy}let n=t(i,-1),o=n(i);return{c(){o.c(),e=$e()},m(r,s){o.m(r,s),k(r,e,s)},p(r,s){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:me,o:me,d(r){r&&w(e),o.d(r)}}}function qy(i){let e,t,n,o;return{c(){e=P("img"),f(e,"class","icon"),To(e.src,t=i[4])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){k(r,e,s),n||(o=ke(e,"error",i[6]),n=!0)},p(r,s){s&16&&!To(e.src,t=r[4])&&f(e,"src",t)},d(r){r&&w(e),n=!1,o()}}}function Uy(i){let e;return{c(){e=P("div"),e.innerHTML='<div class="inner"></div>',f(e,"class","icon icon-error-stub")},m(t,n){k(t,e,n)},p:me,d(t){t&&w(e)}}}function zy(i){let e,t,n,o,r,s,a,l,u,c,m,h=[Hy,Fy],y=[];function g(I,C){return typeof I[4]=="string"?0:1}return n=g(i,-1),o=y[n]=h[n](i),{c(){var I;e=P("li"),t=P("div"),o.c(),r=Y(),s=P("div"),a=Oe(i[2]),f(t,"class","icon-wrapper"),f(s,"class","label"),f(e,"class","item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",l=(I=i[3])!=null?I:i[2]),f(e,"data-testid",i[0]),K(e,"mobile",i[1])},m(I,C){k(I,e,C),_(e,t),y[n].m(t,null),_(e,r),_(e,s),_(s,a),u=!0,c||(m=[ke(e,"click",vt(i[7])),ke(e,"keydown",i[8])],c=!0)},p(I,[C]){var S;let V=n;n=g(I,C),n===V?y[n].p(I,C):(se(),p(y[V],1,1,()=>{y[V]=null}),le(),o=y[n],o?o.p(I,C):(o=y[n]=h[n](I),o.c()),d(o,1),o.m(t,null)),(!u||C&4)&&Ke(a,I[2]),(!u||C&12&&l!==(l=(S=I[3])!=null?S:I[2]))&&f(e,"aria-label",l),(!u||C&1)&&f(e,"data-testid",I[0]),(!u||C&2)&&K(e,"mobile",I[1])},i(I){u||(d(o),u=!0)},o(I){p(o),u=!1},d(I){I&&w(e),y[n].d(),c=!1,ut(m)}}}function Wy(i,e,t){let n,{id:o}=e,{isMobile:r=!1}=e,{onClick:s=W0}=e,{closeSettings:a=W0}=e,{label:l}=e,{ariaLabel:u}=e,{icon:c}=e,m=()=>{t(5,n=!0)},h=()=>{s(),a()},y=g=>{Mr(g,()=>h())};return i.$$set=g=>{"id"in g&&t(0,o=g.id),"isMobile"in g&&t(1,r=g.isMobile),"onClick"in g&&t(9,s=g.onClick),"closeSettings"in g&&t(10,a=g.closeSettings),"label"in g&&t(2,l=g.label),"ariaLabel"in g&&t(3,u=g.ariaLabel),"icon"in g&&t(4,c=g.icon)},t(5,n=!1),[o,r,l,u,c,n,m,h,y,s,a]}var yf=class extends H{constructor(e){super(),U(this,e,Wy,zy,F,{id:0,isMobile:1,onClick:9,closeSettings:10,label:2,ariaLabel:3,icon:4})}},x0=yf;import{noop as Gy}from"@vkontakte/videoplayer-shared";function xy(i){ge(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 Ky(i){let e,t,n,o;return{c(){e=P("div"),t=P("div"),n=Y(),o=P("div"),f(t,"class","toggle svelte-17wbjko"),K(t,"on",i[0]),f(o,"class","toggle-label svelte-17wbjko"),f(e,"class","toggle_wrap svelte-17wbjko")},m(r,s){k(r,e,s),_(e,t),_(e,n),_(e,o)},p(r,[s]){s&1&&K(t,"on",r[0])},i:me,o:me,d(r){r&&w(e)}}}function jy(i,e,t){let{enabled:n=!1}=e;return i.$$set=o=>{"enabled"in o&&t(0,n=o.enabled)},[n]}var wf=class extends H{constructor(e){super(),U(this,e,jy,Ky,F,{enabled:0},xy)}},K0=wf;function Yy(i){let e,t,n;var o=i[4];function r(s,a){return{}}return o&&(e=Ot(o,r(i))),{c(){e&&N(e.$$.fragment),t=$e()},m(s,a){e&&R(e,s,a),k(s,t,a),n=!0},p(s,a){if(a&16&&o!==(o=s[4])){if(e){se();let l=e;p(l.$$.fragment,1,0,()=>{B(l,1)}),le()}o?(e=Ot(o,r(s,a)),N(e.$$.fragment),d(e.$$.fragment,1),R(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&w(t),e&&B(e,s)}}}function Qy(i){let e,t;return e=new Ur({props:{icon:i[4]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.icon=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Zy(i){let e,t,n,o,r,s,a,l,u,c,m=[Qy,Yy],h=[];function y(g,I){return typeof g[4]=="string"?0:1}return n=y(i,-1),o=h[n]=m[n](i),u=new K0({props:{enabled:i[5]}}),{c(){e=P("div"),t=P("div"),o.c(),r=Y(),s=P("div"),a=Oe(i[2]),l=Y(),N(u.$$.fragment),f(t,"class","icon-wrapper"),f(s,"class","label"),f(e,"class","switch-wrapper"),K(e,"mobile",i[1])},m(g,I){k(g,e,I),_(e,t),h[n].m(t,null),_(e,r),_(e,s),_(s,a),_(e,l),R(u,e,null),c=!0},p(g,I){let C=n;n=y(g,I),n===C?h[n].p(g,I):(se(),p(h[C],1,1,()=>{h[C]=null}),le(),o=h[n],o?o.p(g,I):(o=h[n]=m[n](g),o.c()),d(o,1),o.m(t,null)),(!c||I&4)&&Ke(a,g[2]);let V={};I&32&&(V.enabled=g[5]),u.$set(V),(!c||I&2)&&K(e,"mobile",g[1])},i(g){c||(d(o),d(u.$$.fragment,g),c=!0)},o(g){p(o),p(u.$$.fragment,g),c=!1},d(g){g&&w(e),h[n].d(),B(u)}}}function Xy(i){let e,t,n,o,r,s;return t=new Br({props:{content:i[6],isMobile:i[1],placement:"left",translateX:10,isFullWidthWrapper:!0,maxTooltipWidth:i[7],$$slots:{default:[Zy]},$$scope:{ctx:i}}}),{c(){var a;e=P("li"),N(t.$$.fragment),f(e,"class","item switch-item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",n=(a=i[3])!=null?a:i[2]),f(e,"data-testid",i[0]),K(e,"mobile",i[1])},m(a,l){k(a,e,l),R(t,e,null),o=!0,r||(s=[ke(e,"click",vt(i[9])),ke(e,"keydown",i[8])],r=!0)},p(a,[l]){var c;let u={};l&64&&(u.content=a[6]),l&2&&(u.isMobile=a[1]),l&128&&(u.maxTooltipWidth=a[7]),l&2102&&(u.$$scope={dirty:l,ctx:a}),t.$set(u),(!o||l&12&&n!==(n=(c=a[3])!=null?c:a[2]))&&f(e,"aria-label",n),(!o||l&1)&&f(e,"data-testid",a[0]),(!o||l&2)&&K(e,"mobile",a[1])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&w(e),B(t),r=!1,ut(s)}}}function Jy(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:r=Gy}=e,{label:s}=e,{ariaLabel:a}=e,{icon:l}=e,{enabled:u=!1}=e,{tooltipText:c=void 0}=e,{maxTooltipWidth:m=void 0}=e,h=g=>{a1(g,u,I=>r(I))},y=()=>r(!u);return i.$$set=g=>{"id"in g&&t(0,n=g.id),"isMobile"in g&&t(1,o=g.isMobile),"onClick"in g&&t(10,r=g.onClick),"label"in g&&t(2,s=g.label),"ariaLabel"in g&&t(3,a=g.ariaLabel),"icon"in g&&t(4,l=g.icon),"enabled"in g&&t(5,u=g.enabled),"tooltipText"in g&&t(6,c=g.tooltipText),"maxTooltipWidth"in g&&t(7,m=g.maxTooltipWidth)},[n,o,s,a,l,u,c,m,h,y,r]}var kf=class extends H{constructor(e){super(),U(this,e,Jy,Xy,F,{id:0,isMobile:1,onClick:10,label:2,ariaLabel:3,icon:4,enabled:5,tooltipText:6,maxTooltipWidth:7})}},j0=kf;import{isValidURL as $y}from"@vkontakte/videoplayer-shared";function e8(i){ge(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 Y0(i,e,t){let n=i.slice();return n[95]=e[t],n[96]=e,n[97]=t,n}function Q0(i,e,t){let n=i.slice();return n[95]=e[t],n[98]=e,n[99]=t,n}function Z0(i){let e,t,n,o,r,s,a,l=i[6]&&X0(i),u=Tt(i[4]),c=[];for(let h=0;h<u.length;h+=1)c[h]=J0(Q0(i,u,h));let m=h=>p(c[h],1,1,()=>{c[h]=null});return{c(){e=P("div"),l&&l.c(),t=Y(),n=P("ul");for(let h=0;h<c.length;h+=1)c[h].c();f(n,"class","items"),f(n,"role","menu"),f(n,"style",o=i[35]()),K(n,"mobile",i[6]),f(e,"class","settings-menu menu svelte-1t2c6ej"),f(e,"data-testid","settings-menu"),K(e,"desktop",!i[6]),K(e,"mobile",i[6]),K(e,"hidden",!i[8])},m(h,y){k(h,e,y),l&&l.m(e,null),_(e,t),_(e,n);for(let g=0;g<c.length;g+=1)c[g]&&c[g].m(n,null);i[70](n),r=!0,s||(a=[ke(e,"keydown",i[37]),ke(e,"mouseenter",i[33]),ke(e,"mouseleave",i[34])],s=!0)},p(h,y){if(h[6]?l?l.p(h,y):(l=X0(h),l.c(),l.m(e,t)):l&&(l.d(1),l=null),y[0]&1073741908|y[1]&1){u=Tt(h[4]);let g;for(g=0;g<u.length;g+=1){let I=Q0(h,u,g);c[g]?(c[g].p(I,y),d(c[g],1)):(c[g]=J0(I),c[g].c(),d(c[g],1),c[g].m(n,null))}for(se(),g=u.length;g<c.length;g+=1)m(g);le()}(!r||y[0]&64)&&K(n,"mobile",h[6]),(!r||y[0]&64)&&K(e,"desktop",!h[6]),(!r||y[0]&64)&&K(e,"mobile",h[6]),(!r||y[0]&256)&&K(e,"hidden",!h[8])},i(h){if(!r){for(let y=0;y<u.length;y+=1)d(c[y]);r=!0}},o(h){c=c.filter(Boolean);for(let y=0;y<c.length;y+=1)p(c[y]);r=!1},d(h){h&&w(e),l&&l.d(),pi(c,h),i[70](null),s=!1,ut(a)}}}function X0(i){let e,t,n,o,r,s;return{c(){e=P("div"),t=P("div"),t.textContent=`${G("submenu_settings")}`,n=Y(),o=P("div"),f(o,"class","close svelte-1t2c6ej"),f(e,"class","item header svelte-1t2c6ej"),K(e,"mobile",i[6])},m(a,l){k(a,e,l),_(e,t),_(e,n),_(e,o),r||(s=ke(o,"click",vt(i[31])),r=!0)},p(a,l){l[0]&64&&K(e,"mobile",a[6])},d(a){a&&w(e),r=!1,s()}}}function t8(i){let e,t;return e=new j0({props:{isMobile:i[6],id:i[95].id,onClick:i[95].onClick,icon:i[95].icon,label:i[95].label,ariaLabel:i[95].ariaLabel,enabled:i[95].enabled,tooltipText:i[95].tooltipText,maxTooltipWidth:i[95].maxTooltipWidth}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&64&&(r.isMobile=n[6]),o[0]&16&&(r.id=n[95].id),o[0]&16&&(r.onClick=n[95].onClick),o[0]&16&&(r.icon=n[95].icon),o[0]&16&&(r.label=n[95].label),o[0]&16&&(r.ariaLabel=n[95].ariaLabel),o[0]&16&&(r.enabled=n[95].enabled),o[0]&16&&(r.tooltipText=n[95].tooltipText),o[0]&16&&(r.maxTooltipWidth=n[95].maxTooltipWidth),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function i8(i){let e,t;return e=new x0({props:{isMobile:i[6],id:i[95].id,onClick:i[95].onClick,icon:i[95].icon,label:i[95].label,ariaLabel:i[95].ariaLabel,closeSettings:i[31]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&64&&(r.isMobile=n[6]),o[0]&16&&(r.id=n[95].id),o[0]&16&&(r.onClick=n[95].onClick),o[0]&16&&(r.icon=n[95].icon),o[0]&16&&(r.label=n[95].label),o[0]&16&&(r.ariaLabel=n[95].ariaLabel),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function n8(i){let e,t,n;function o(){return i[68](i[95])}function r(a){i[69](a,i[95])}let s={isMobile:i[6],id:i[95].id,icon:i[95].icon,label:i[95].label,ariaLabel:i[95].ariaLabel,value:i[95].value,valueComponent:i[95].valueComponent,onClick:o,getSubItemForFocus:i[95].getSubItemForFocus};return i[2][i[95].id]!==void 0&&(s.ref=i[2][i[95].id]),e=new B0({props:s}),be.push(()=>ze(e,"ref",r)),{c(){N(e.$$.fragment)},m(a,l){R(e,a,l),n=!0},p(a,l){i=a;let u={};l[0]&64&&(u.isMobile=i[6]),l[0]&16&&(u.id=i[95].id),l[0]&16&&(u.icon=i[95].icon),l[0]&16&&(u.label=i[95].label),l[0]&16&&(u.ariaLabel=i[95].ariaLabel),l[0]&16&&(u.value=i[95].value),l[0]&16&&(u.valueComponent=i[95].valueComponent),l[0]&16&&(u.onClick=o),l[0]&16&&(u.getSubItemForFocus=i[95].getSubItemForFocus),!t&&l[0]&20&&(t=!0,u.ref=i[2][i[95].id],Ue(()=>t=!1)),e.$set(u)},i(a){n||(d(e.$$.fragment,a),n=!0)},o(a){p(e.$$.fragment,a),n=!1},d(a){B(e,a)}}}function J0(i){let e,t,n,o,r=[n8,i8,t8],s=[];function a(l,u){return l[95].type==="OPEN_SUB_MENU"?0:l[95].type==="CLICK"?1:l[95].type==="SWITCH"?2:-1}return~(e=a(i,[-1,-1,-1,-1]))&&(t=s[e]=r[e](i)),{c(){t&&t.c(),n=$e()},m(l,u){~e&&s[e].m(l,u),k(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?~e&&s[e].p(l,u):(t&&(se(),p(s[c],1,1,()=>{s[c]=null}),le()),~e?(t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n)):t=null)},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),~e&&s[e].d(l)}}}function $0(i,e){var l,u;let t,n,o,r;function s(c){e[71](c,e[95])}let a={isMobile:e[6],playerControlsHeight:e[1],itemIdReturnCase:e[36],returnFromSubMenu:(l=e[95].returnFromSubMenu)!=null?l:e[32].bind(null,!1),id:e[95].id,parentItemId:e[95].parentItemId,title:e[95].title,closeSettingsMenu:e[95].closeSettingsMenu,openSubMenuList:e[30],items:e[95].items,minWidth:(u=e[95].minWidth)!=null?u:137,refMenuItems:e[2]};return e[3][e[95].id]!==void 0&&(a.listRef=e[3][e[95].id]),n=new R0({props:a}),be.push(()=>ze(n,"listRef",s)),{key:i,first:null,c(){t=$e(),N(n.$$.fragment),this.first=t},m(c,m){k(c,t,m),R(n,c,m),r=!0},p(c,m){var y,g;e=c;let h={};m[0]&64&&(h.isMobile=e[6]),m[0]&2&&(h.playerControlsHeight=e[1]),m[0]&32&&(h.returnFromSubMenu=(y=e[95].returnFromSubMenu)!=null?y:e[32].bind(null,!1)),m[0]&32&&(h.id=e[95].id),m[0]&32&&(h.parentItemId=e[95].parentItemId),m[0]&32&&(h.title=e[95].title),m[0]&32&&(h.closeSettingsMenu=e[95].closeSettingsMenu),m[0]&32&&(h.items=e[95].items),m[0]&32&&(h.minWidth=(g=e[95].minWidth)!=null?g:137),m[0]&4&&(h.refMenuItems=e[2]),!o&&m[0]&40&&(o=!0,h.listRef=e[3][e[95].id],Ue(()=>o=!1)),n.$set(h)},i(c){r||(d(n.$$.fragment,c),r=!0)},o(c){p(n.$$.fragment,c),r=!1},d(c){c&&w(t),B(n,c)}}}function o8(i){let e,t,n=[],o=new Map,r,s=i[7]&&Z0(i),a=Tt(i[5]),l=u=>u[95].id;for(let u=0;u<a.length;u+=1){let c=Y0(i,a,u),m=l(c);o.set(m,n[u]=$0(m,c))}return{c(){e=P("div"),s&&s.c(),t=Y();for(let u=0;u<n.length;u+=1)n[u].c();f(e,"class","settings-menu-container svelte-1t2c6ej"),K(e,"hidden",!i[7]),K(e,"mobile",i[6])},m(u,c){k(u,e,c),s&&s.m(e,null),_(e,t);for(let m=0;m<n.length;m+=1)n[m]&&n[m].m(e,null);r=!0},p(u,c){u[7]?s?(s.p(u,c),c[0]&128&&d(s,1)):(s=Z0(u),s.c(),d(s,1),s.m(e,t)):s&&(se(),p(s,1,1,()=>{s=null}),le()),c[0]&1073741934|c[1]&34&&(a=Tt(u[5]),se(),n=$f(n,c,l,1,u,a,o,e,Jf,$0,null,Y0),le()),(!r||c[0]&128)&&K(e,"hidden",!u[7]),(!r||c[0]&64)&&K(e,"mobile",u[6])},i(u){if(!r){d(s);for(let c=0;c<a.length;c+=1)d(n[c]);r=!0}},o(u){p(s);for(let c=0;c<n.length;c+=1)p(n[c]);r=!1},d(u){u&&w(e),s&&s.d();for(let c=0;c<n.length;c+=1)n[c].d()}}}function r8(i,e,t){let n,o,r,s,a,l,u,c,m,h,y,g,I,C,V,S,v,E,W,D,L,J,ue,Q,{ref:ee=void 0}=e,{supportLink:X}=e,{playerControlsHeight:x=0}=e,{returnFocus:ce}=e,z=nt(),j=Bt(),A=z.state.audioStream$;q(i,A,Ae=>t(54,m=Ae));let de=z.state.availableAudioStreams$;q(i,de,Ae=>t(53,c=Ae));let $=z.state.currentQuality$;q(i,$,Ae=>t(62,v=Ae));let Ee=z.state.availableQualities$;q(i,Ee,Ae=>t(55,h=Ae));let ne=z.state.autoQualityLimitingAvailable$;q(i,ne,Ae=>t(66,L=Ae));let ae=z.state.isAutoQualityEnabled$;q(i,ae,Ae=>t(63,E=Ae));let Ie=z.state.currentPlaybackRate$;q(i,Ie,Ae=>t(60,V=Ae));let Te=z.state.availablePlaybackRates$;q(i,Te,Ae=>t(52,u=Ae));let Se=z.state.currentSubtitle$;q(i,Se,Ae=>t(59,C=Ae));let rt=z.state.availableSubtitlesList$;q(i,rt,Ae=>t(50,a=Ae));let Pe=z.state.canDownload,qe=z.state.hasMpegSources$;q(i,qe,Ae=>t(67,J=Ae));let te=z.ui.settingsMenu.visible$;q(i,te,Ae=>t(7,Q=Ae));let _e=z.ui.settingsMenu.openedByBtnKeyboard$;q(i,_e,Ae=>t(73,r=Ae));let Ce=z.ui.settingsMenu.ref$,xe=z.ui.isMobile;q(i,xe,Ae=>t(6,s=Ae));let ot=z.ui.mobileNotReportControlHidden$;q(i,ot,Ae=>t(64,W=Ae));let at=z.state.canChangePlaybackSpeed$;q(i,at,Ae=>t(65,D=Ae));let st=z.state.trafficSavingEnabled$;q(i,st,Ae=>t(58,I=Ae));let Je=z.ui.playerSize;q(i,Je,Ae=>t(74,ue=Ae));let fe=z.ui.debugPanelVisible;q(i,fe,Ae=>t(57,g=Ae));let Ze=z.state.isInteractiveTime$,Me=z.ui.additionalSettingsMenuItems$;q(i,Me,Ae=>t(56,y=Ae));let De=z.actions.internal.downloadVideo,Qe=z.actions.internal.closeSettingsMenu,He=z.actions.internal.openSettingsSubMenu,ct=z.actions.internal.closeSettingsSubMenu,ft=!0,he=Ne({});q(i,he,Ae=>t(51,l=Ae));let pt="",yt=!1;function It(Ae){return mt(this,null,function*(){t(8,ft=!1),t(40,pt=Ae);let it=Yt();it[Ae]=!0,he.set(it),yield cn(),He(Ae,Ut[Ae])})}function kt(){r||ce==null||ce(),Qe(),Nt(!0),yt=!1}function Ye(Ae){z.actions.internal.setQuality(Ae),kt()}function Gt(Ae){z.actions.internal.setAudioStream(Ae),kt()}function ii(Ae){z.actions.internal.setTrafficSavingEnabled(Ae)}function Kt(Ae){z.actions.internal.setPlaybackRate(Ae),kt()}function Ht(Ae){z.actions.internal.setSubtitle(Ae),kt()}function Yt(){let Ae=l;return Object.keys(Ae).forEach(it=>{Ae[it]=!1}),Ae}function Nt(Ae=!1){t(8,ft=!0);let it=Yt();he.set(it),ct(Ut[pt],Ae),t(40,pt="")}function We(){De()}function et(){$y(X)&&window.open(X,"_blank"),z.actions.internal.reportProblem(),z.actions.internal.pause()}function Pt(){Pr(z.actions.internal.getDebugTextData())}let Qt=()=>{let Ae=z.actions.internal.getTraceTextData(),it=new Blob([...Ae],{type:"application/json"}),Mt=window.URL.createObjectURL(it);rr(Mt,"vk_player_trace_info","json")};function Wt(){fe.set(!g)}function pe(){yt=!0}function Zt(){yt=!1}function Xt(){return s?`max-height: ${Math.round(ue.height*.6)}px`:`max-height: ${ue.height-32-x}px; overflow: auto;`}let Jt,Vt,$t,jt,qt,xi,_i,Ti=Ne();q(i,Ti,Ae=>t(61,S=Ae));let Ii={},Ut={},Ri=Ae=>{Qs(Ae,Qe)},Rt=[],ci=[];Ft(()=>{let Ae=Ze.subscribe(it=>{it&&!s&&!yt&&!r&&kt()});return()=>{Ae()}});let wi=Ae=>It(Ae.subMenuId);function ni(Ae,it){i.$$.not_equal(Ii[it.id],Ae)&&(Ii[it.id]=Ae,t(2,Ii))}function ki(Ae){be[Ae?"unshift":"push"](()=>{ee=Ae,t(0,ee)})}function Bi(Ae,it){i.$$.not_equal(Ut[it.id],Ae)&&(Ut[it.id]=Ae,t(3,Ut))}return i.$$set=Ae=>{"ref"in Ae&&t(0,ee=Ae.ref),"supportLink"in Ae&&t(38,X=Ae.supportLink),"playerControlsHeight"in Ae&&t(1,x=Ae.playerControlsHeight),"returnFocus"in Ae&&t(39,ce=Ae.returnFocus)},i.$$.update=()=>{var Ae;if(i.$$.dirty[0]&128|i.$$.dirty[1]&512&&!Q&&pt&&Nt(),i.$$.dirty[0]&1&&ee&&Ce.set(ee),i.$$.dirty[1]&16777216|i.$$.dirty[2]&3&&t(48,n=Gl(v,h,E)),i.$$.dirty[2]&36&&t(41,Jt=Pe&&J&&!W),i.$$.dirty[2]&20&&t(42,Vt=j.features.trafficSaving&&!W&&L),i.$$.dirty[1]&524288|i.$$.dirty[2]&4&&t(43,$t=a.length>0&&!W),i.$$.dirty[2]&12&&t(44,jt=!!D&&!W),i.$$.dirty[1]&4194304|i.$$.dirty[2]&4&&t(45,qt=j.features.audioLanguages&&c.length>=2&&!W),i.$$.dirty[2]&4&&t(49,o=!W),i.$$.dirty[2]&3&&t(46,xi=E?G("auto_quality_option"):v),i.$$.dirty[1]&538968064&&t(47,_i=(Ae=u.find(it=>it.value===V))==null?void 0:Ae.displayValue),i.$$.dirty[0]&4|i.$$.dirty[1]&1073741824){let it=S;it&&(s1(Ii,it),Ti.set(void 0))}i.$$.dirty[0]&88|i.$$.dirty[1]&1072692224&&(t(4,Rt=[]),o&&Rt.push({id:"quality-settings",weight:lo["quality-settings"],type:"OPEN_SUB_MENU",subMenuId:"quality-sub",getSubItemForFocus:()=>{let it=h.findIndex(Mt=>Mt.selected);return Ut["quality-sub"].children[it+1]},ariaLabel:G("aria_label_menu_quality",{actual:xi}),icon:cl,label:G("menu_quality"),value:n,valueComponent:z0}),qt&&Rt.push({id:"audio-language-settings",weight:lo["audio-language-settings"],type:"OPEN_SUB_MENU",subMenuId:"audio-language-sub",getSubItemForFocus:()=>{let it=c.findIndex(Mt=>Mt.id===(m==null?void 0:m.id));return Ut["audio-language-sub"].children[it+1]},ariaLabel:G("aria_label_menu_audio_languages",{actual:Kl(m,c)}),icon:F0,label:G("menu_audio_languages"),value:Kl(m,c)}),jt&&Rt.push({id:"playback-rate-settings",weight:lo["playback-rate-settings"],type:"OPEN_SUB_MENU",subMenuId:"playback-rate-sub",getSubItemForFocus:()=>{let it=u.findIndex(Mt=>Mt.selected);return Ut["playback-rate-sub"].children[it+1]},ariaLabel:G("aria_label_menu_rate",{actual:_i}),icon:O0,label:G("menu_playback_rate"),value:`${V}x`}),$t&&Rt.push({id:"subtitles-settings",weight:lo["subtitles-settings"],type:"OPEN_SUB_MENU",subMenuId:"subtitles-sub",getSubItemForFocus:()=>{let it=a.findIndex(Mt=>Mt.selected);return Ut["subtitles-sub"].children[it+1]},ariaLabel:G("aria_label_menu_subtitle",{actual:C.displayValue}),icon:fl,label:G("subtitles_caption"),value:C.displayValue}),Vt&&Rt.push({id:"traffic-saving-settings",weight:lo["traffic-saving-settings"],type:"SWITCH",onClick:ii,ariaLabel:I?G("aria_label_submenu_traffic_saving_off"):`${G("aria_label_submenu_traffic_saving_on")}. ${G("traffic_saving_helper_text")}`,icon:D0,label:G("menu_traffic_saving"),enabled:I,tooltipText:G("traffic_saving_helper_text"),maxTooltipWidth:175}),Jt&&Rt.push({id:"download",weight:lo.download,type:"CLICK",onClick:We,label:G("download_video_caption"),ariaLabel:G("aria_label_menu_download"),icon:N0}),j.showSupport&&Rt.push({id:"report",weight:lo.report,type:"CLICK",onClick:et,label:G("menu_report"),ariaLabel:`${G("menu_report")}. ${G("aria_label_new_tab_alert")}`,icon:q0,isHiddenFor:["desktop"]}),Rt.push({id:"copy-data",weight:lo["copy-data"],type:"CLICK",onClick:Pt,label:G("menu_copy_debug"),ariaLabel:G("menu_copy_debug"),icon:_f,isHiddenFor:["desktop"]}),j.features.saveTraceInfoToFile&&Rt.push({id:"save-trace-info",weight:lo["save-trace-info"],type:"CLICK",onClick:Qt,label:G("menu_save_debug"),ariaLabel:G("menu_save_debug"),icon:_f,isHiddenFor:["desktop"]}),Rt.push({id:"debug-info",weight:lo["debug-info"],type:"CLICK",onClick:Wt,label:g?G("aria_label_menu_debug_overlay_disable"):G("aria_label_menu_debug_overlay_enable"),ariaLabel:G("menu_debug_overlay"),icon:H0,isHiddenFor:["desktop"]}),t(4,Rt=[...Rt,...y.map(it=>St(Xe({},it),{isAdditional:!0}))].filter(it=>{var Mt,Ci,Si;return!((Mt=it.isHiddenFor)!=null&&Mt.length)||!((Ci=it.isHiddenFor)!=null&&Ci.includes("desktop"))&&!s||!((Si=it.isHiddenFor)!=null&&Si.includes("mobile"))&&s}).sort(cr))),i.$$.dirty[0]&96|i.$$.dirty[1]&33030144&&(t(5,ci=[]),l["quality-sub"]&&ci.push({id:"quality-sub",parentItemId:"quality-settings",title:G("submenu_quality"),closeSettingsMenu:Qe,items:[...h.map(it=>({type:"SELECT_VALUE",value:it.value,valueComponent:jl,valueComponentParams:{quality:it.value,label:it.displayValue,isMobile:s,isSubCase:!0},selectItem:Ye,selected:it.selected,label:it.displayValue}))]}),l["audio-language-sub"]&&ci.push({id:"audio-language-sub",parentItemId:"audio-language-settings",title:G("submenu_audio_languages"),closeSettingsMenu:Qe,items:c.map(it=>({type:"SELECT_VALUE",value:it,dataValue:it.id,selectItem:Gt,selected:it.id===(m==null?void 0:m.id),label:Kl(it,c)}))}),l["playback-rate-sub"]&&ci.push({id:"playback-rate-sub",parentItemId:"playback-rate-settings",title:G("submenu_playback_rate"),closeSettingsMenu:Qe,items:u.map(it=>({type:"SELECT_VALUE",value:it.value,selectItem:Kt,selected:it.selected,label:it.displayValue}))}),l["subtitles-sub"]&&ci.push({id:"subtitles-sub",parentItemId:"subtitles-settings",minWidth:164,title:G("subtitles_caption"),closeSettingsMenu:Qe,items:a.map(it=>({type:"SELECT_VALUE",value:it,selectItem:Ht,selected:it.selected,label:it.displayValue}))}))},[ee,x,Ii,Ut,Rt,ci,s,Q,ft,A,de,$,Ee,ne,ae,Ie,Te,Se,rt,qe,te,_e,xe,ot,at,st,Je,fe,Me,he,It,kt,Nt,pe,Zt,Xt,Ti,Ri,X,ce,pt,Jt,Vt,$t,jt,qt,xi,_i,n,o,a,l,u,c,m,h,y,g,I,C,V,S,v,E,W,D,L,J,wi,ni,ki,Bi]}var Cf=class extends H{constructor(e){super(),U(this,e,r8,o8,F,{ref:0,supportLink:38,playerControlsHeight:1,returnFocus:39},e8,[-1,-1,-1,-1])}},Yl=Cf;var{window:s8}=er;function a8(i){ge(i,"svelte-13f9p53",".player-wrapper.svelte-13f9p53{position:absolute;width:100%;height:100%}.player-wrapper.svelte-13f9p53 .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-13f9p53{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-13f9p53,.video-container.svelte-13f9p53,.ads-container.svelte-13f9p53{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-13f9p53{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-13f9p53{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-13f9p53{transition:none}.nocursor.svelte-13f9p53{cursor:none}.ads-container.svelte-13f9p53{z-index:var(--ads-container-z-index);background:var(--black)}.settings-menu.svelte-13f9p53{position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;transition:opacity 0.2s, visibility 0.2s}")}function t_(i){var n;let e,t;return e=new Wl({props:{thumbUrl:i[4],startTime:(n=i[5])==null?void 0:n.startTime}}),{c(){N(e.$$.fragment)},m(o,r){R(e,o,r),t=!0},p(o,r){var a;let s={};r[0]&16&&(s.thumbUrl=o[4]),r[0]&32&&(s.startTime=(a=o[5])==null?void 0:a.startTime),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){B(e,o)}}}function i_(i){let e,t;return e=new zr({props:{kind:"recover",thumbUrl:i[4]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&16&&(r.thumbUrl=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function n_(i){let e,t;return e=new zr({props:{kind:"record",thumbUrl:i[4]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&16&&(r.thumbUrl=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function o_(i){let e,t,n;return t=new js({props:{adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12]}}),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","ads-container svelte-13f9p53"),K(e,"hidden",i[39]!=="ads")},m(o,r){k(o,e,r),R(t,e,null),n=!0},p(o,r){let s={};r[0]&512&&(s.adsSlotId=o[9]),r[0]&1024&&(s.adsParams=o[10]),r[0]&2048&&(s.adsPreviewParam=o[11]),r[0]&4096&&(s.duration=o[12]),t.$set(s),(!n||r[1]&256)&&K(e,"hidden",o[39]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),B(t)}}}function r_(i){let e,t;return e=new N1({props:{title:i[19],thumb:i[20],playNextVideo:i[24]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&524288&&(r.title=n[19]),o[0]&1048576&&(r.thumb=n[20]),o[0]&16777216&&(r.playNextVideo=n[24]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function s_(i){let e,t;return e=new y0({props:{title:i[3],isHidden:!i[37]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.title=n[3]),o[1]&64&&(r.isHidden=!n[37]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function l_(i){let e,t;return e=new Fl({props:{isShifted:i[39]==="video"&&i[37]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[1]&320&&(r.isShifted=n[39]==="video"&&n[37]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function a_(i){let e,t,n;return t=new Ds({props:{"aria-label":G("video360")}}),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","spherical-video-icon svelte-13f9p53")},m(o,r){k(o,e,r),R(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),B(t)}}}function u_(i){let e,t;return e=new ql({props:{thumbUrl:i[4],chromecastDeviceName:i[55]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&16&&(r.thumbUrl=n[4]),o[1]&16777216&&(r.chromecastDeviceName=n[55]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function c_(i){let e,t;return e=new Hl({props:{shifted:i[37],captions:i[57],position:i[58],playerSize:i[35]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[1]&64&&(r.shifted=n[37]),o[1]&67108864&&(r.captions=n[57]),o[1]&134217728&&(r.position=n[58]),o[1]&16&&(r.playerSize=n[35]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function f_(i){let e,t,n,o,r;return t=new Ul({}),{c(){e=P("div"),N(t.$$.fragment)},m(s,a){k(s,e,a),R(t,e,null),n=!0,o||(r=[ke(e,"contextmenu",ui(i[110])),ke(e,"click",vt(i[121]))],o=!0)},p:me,i(s){n||(d(t.$$.fragment,s),n=!0)},o(s){p(t.$$.fragment,s),n=!1},d(s){s&&w(e),B(t),o=!1,ut(r)}}}function d_(i){let e,t,n,o;function r(l){i[161](l)}function s(l){i[162](l)}let a={bottomHidden:i[39]==="thumb"||i[39]==="LiveWaitingStart"||i[39]==="LiveWaitingRecover"||i[39]==="LiveWaitingRecord",bottomNoSmooth:i[51],showControls:i[37],isAds:i[39]==="ads",canRewindLive:i[7]&&i[59]!==0,logoClickable:i[13],logoHidden:i[14],logoTargetUrl:i[15],showNextPrevButtons:i[16],nextButtonActive:i[17],prevButtonActive:i[18],isOneVideoPlaylist:i[21],customFullscreenSupported:b_,playNextVideo:i[24],playPrevVideo:i[25],repeatPlaylist:i[26],toggleFullscreen:i[108],seekToInteractive:i[27],playPrevChapter:i[28]};return i[42]!==void 0&&(a.playerControlsWrapperRef=i[42]),i[43]!==void 0&&(a.playerControlsRef=i[43]),e=new Ol({props:a}),be.push(()=>ze(e,"playerControlsWrapperRef",r)),be.push(()=>ze(e,"playerControlsRef",s)),{c(){N(e.$$.fragment)},m(l,u){R(e,l,u),o=!0},p(l,u){let c={};u[1]&256&&(c.bottomHidden=l[39]==="thumb"||l[39]==="LiveWaitingStart"||l[39]==="LiveWaitingRecover"||l[39]==="LiveWaitingRecord"),u[1]&1048576&&(c.bottomNoSmooth=l[51]),u[1]&64&&(c.showControls=l[37]),u[1]&256&&(c.isAds=l[39]==="ads"),u[0]&128|u[1]&268435456&&(c.canRewindLive=l[7]&&l[59]!==0),u[0]&8192&&(c.logoClickable=l[13]),u[0]&16384&&(c.logoHidden=l[14]),u[0]&32768&&(c.logoTargetUrl=l[15]),u[0]&65536&&(c.showNextPrevButtons=l[16]),u[0]&131072&&(c.nextButtonActive=l[17]),u[0]&262144&&(c.prevButtonActive=l[18]),u[0]&2097152&&(c.isOneVideoPlaylist=l[21]),u[0]&16777216&&(c.playNextVideo=l[24]),u[0]&33554432&&(c.playPrevVideo=l[25]),u[0]&67108864&&(c.repeatPlaylist=l[26]),u[0]&134217728&&(c.seekToInteractive=l[27]),u[0]&268435456&&(c.playPrevChapter=l[28]),!t&&u[1]&2048&&(t=!0,c.playerControlsWrapperRef=l[42],Ue(()=>t=!1)),!n&&u[1]&4096&&(n=!0,c.playerControlsRef=l[43],Ue(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){B(e,l)}}}function m_(i){var a;let e,t,n,o;function r(l){i[164](l)}let s={supportLink:i[22],playerControlsHeight:(a=i[43])==null?void 0:a.clientHeight,returnFocus:i[163]};return i[30]!==void 0&&(s.ref=i[30]),t=new Yl({props:s}),be.push(()=>ze(t,"ref",r)),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","settings-menu svelte-13f9p53")},m(l,u){k(l,e,u),R(t,e,null),o=!0},p(l,u){var m;let c={};u[0]&4194304&&(c.supportLink=l[22]),u[1]&4096&&(c.playerControlsHeight=(m=l[43])==null?void 0:m.clientHeight),u[0]&2&&(c.returnFocus=l[163]),!n&&u[0]&1073741824&&(n=!0,c.ref=l[30],Ue(()=>n=!1)),t.$set(c)},i(l){o||(d(t.$$.fragment,l),o=!0)},o(l){p(t.$$.fragment,l),o=!1},d(l){l&&w(e),B(t)}}}function p_(i){let e,t;return e=new Vr({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function __(i){let e,t;return e=new K1({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function h_(i){let e,t;return e=new tl({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function g_(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,I,C,V,S,v,E,W,D,L,J,ue,Q;e=new zl({props:{hidden:i[39]!=="thumb"||i[38]||i[94]&&i[6],thumbUrl:i[4],startVideo:i[29]}});let ee=i[39]==="LiveWaitingStart"&&t_(i),X=i[39]==="LiveWaitingRecover"&&i_(i),x=i[39]==="LiveWaitingRecord"&&n_(i),ce=i[8]&&i[23]&&o_(i),z=i[32]&&i[19]&&i[20]&&r_(i),j=i[46]&&s_(i),A=i[50]&&l_(i),de=i[54]&&a_(i),$=i[40]&&u_(i),Ee=i[56].value!=="off"&&c_(i),ne=i[38]&&f_(i),ae=i[23]&&d_(i),Ie=!i[40]&&i[39]!=="ads"&&m_(i);C=new Ys({props:{isLive:i[60],isHidden:!i[45],isPlaying:i[52],position:i[58],duration:i[61]}}),S=new u0({props:{data:i[105]}});function Te(te){i[166](te)}let Se={supportLink:i[22],returnFocus:i[165],visible:i[34],playerContainerRef:i[41],controlsContainerRef:i[42],position:i[62]};i[33]!==void 0&&(Se.menuElementRef=i[33]),E=new h1({props:Se}),be.push(()=>ze(E,"menuElementRef",Te));let rt=i[44]&&p_(i),Pe=i[63]&&__(i),qe=i[64]&&h_(i);return{c(){N(e.$$.fragment),t=Y(),ee&&ee.c(),n=Y(),X&&X.c(),o=Y(),x&&x.c(),r=Y(),ce&&ce.c(),s=Y(),z&&z.c(),a=Y(),j&&j.c(),l=Y(),A&&A.c(),u=Y(),de&&de.c(),c=Y(),$&&$.c(),m=Y(),Ee&&Ee.c(),h=Y(),ne&&ne.c(),y=Y(),ae&&ae.c(),g=Y(),Ie&&Ie.c(),I=Y(),N(C.$$.fragment),V=Y(),N(S.$$.fragment),v=Y(),N(E.$$.fragment),D=Y(),rt&&rt.c(),L=Y(),Pe&&Pe.c(),J=Y(),qe&&qe.c(),ue=$e()},m(te,_e){R(e,te,_e),k(te,t,_e),ee&&ee.m(te,_e),k(te,n,_e),X&&X.m(te,_e),k(te,o,_e),x&&x.m(te,_e),k(te,r,_e),ce&&ce.m(te,_e),k(te,s,_e),z&&z.m(te,_e),k(te,a,_e),j&&j.m(te,_e),k(te,l,_e),A&&A.m(te,_e),k(te,u,_e),de&&de.m(te,_e),k(te,c,_e),$&&$.m(te,_e),k(te,m,_e),Ee&&Ee.m(te,_e),k(te,h,_e),ne&&ne.m(te,_e),k(te,y,_e),ae&&ae.m(te,_e),k(te,g,_e),Ie&&Ie.m(te,_e),k(te,I,_e),R(C,te,_e),k(te,V,_e),R(S,te,_e),k(te,v,_e),R(E,te,_e),k(te,D,_e),rt&&rt.m(te,_e),k(te,L,_e),Pe&&Pe.m(te,_e),k(te,J,_e),qe&&qe.m(te,_e),k(te,ue,_e),Q=!0},p(te,_e){let Ce={};_e[0]&64|_e[1]&384&&(Ce.hidden=te[39]!=="thumb"||te[38]||te[94]&&te[6]),_e[0]&16&&(Ce.thumbUrl=te[4]),_e[0]&536870912&&(Ce.startVideo=te[29]),e.$set(Ce),te[39]==="LiveWaitingStart"?ee?(ee.p(te,_e),_e[1]&256&&d(ee,1)):(ee=t_(te),ee.c(),d(ee,1),ee.m(n.parentNode,n)):ee&&(se(),p(ee,1,1,()=>{ee=null}),le()),te[39]==="LiveWaitingRecover"?X?(X.p(te,_e),_e[1]&256&&d(X,1)):(X=i_(te),X.c(),d(X,1),X.m(o.parentNode,o)):X&&(se(),p(X,1,1,()=>{X=null}),le()),te[39]==="LiveWaitingRecord"?x?(x.p(te,_e),_e[1]&256&&d(x,1)):(x=n_(te),x.c(),d(x,1),x.m(r.parentNode,r)):x&&(se(),p(x,1,1,()=>{x=null}),le()),te[8]&&te[23]?ce?(ce.p(te,_e),_e[0]&8388864&&d(ce,1)):(ce=o_(te),ce.c(),d(ce,1),ce.m(s.parentNode,s)):ce&&(se(),p(ce,1,1,()=>{ce=null}),le()),te[32]&&te[19]&&te[20]?z?(z.p(te,_e),_e[0]&1572864|_e[1]&2&&d(z,1)):(z=r_(te),z.c(),d(z,1),z.m(a.parentNode,a)):z&&(se(),p(z,1,1,()=>{z=null}),le()),te[46]?j?(j.p(te,_e),_e[1]&32768&&d(j,1)):(j=s_(te),j.c(),d(j,1),j.m(l.parentNode,l)):j&&(se(),p(j,1,1,()=>{j=null}),le()),te[50]?A?(A.p(te,_e),_e[1]&524288&&d(A,1)):(A=l_(te),A.c(),d(A,1),A.m(u.parentNode,u)):A&&(se(),p(A,1,1,()=>{A=null}),le()),te[54]?de?_e[1]&8388608&&d(de,1):(de=a_(te),de.c(),d(de,1),de.m(c.parentNode,c)):de&&(se(),p(de,1,1,()=>{de=null}),le()),te[40]?$?($.p(te,_e),_e[1]&512&&d($,1)):($=u_(te),$.c(),d($,1),$.m(m.parentNode,m)):$&&(se(),p($,1,1,()=>{$=null}),le()),te[56].value!=="off"?Ee?(Ee.p(te,_e),_e[1]&33554432&&d(Ee,1)):(Ee=c_(te),Ee.c(),d(Ee,1),Ee.m(h.parentNode,h)):Ee&&(se(),p(Ee,1,1,()=>{Ee=null}),le()),te[38]?ne?(ne.p(te,_e),_e[1]&128&&d(ne,1)):(ne=f_(te),ne.c(),d(ne,1),ne.m(y.parentNode,y)):ne&&(se(),p(ne,1,1,()=>{ne=null}),le()),te[23]?ae?(ae.p(te,_e),_e[0]&8388608&&d(ae,1)):(ae=d_(te),ae.c(),d(ae,1),ae.m(g.parentNode,g)):ae&&(se(),p(ae,1,1,()=>{ae=null}),le()),!te[40]&&te[39]!=="ads"?Ie?(Ie.p(te,_e),_e[1]&768&&d(Ie,1)):(Ie=m_(te),Ie.c(),d(Ie,1),Ie.m(I.parentNode,I)):Ie&&(se(),p(Ie,1,1,()=>{Ie=null}),le());let xe={};_e[1]&536870912&&(xe.isLive=te[60]),_e[1]&16384&&(xe.isHidden=!te[45]),_e[1]&2097152&&(xe.isPlaying=te[52]),_e[1]&134217728&&(xe.position=te[58]),_e[1]&1073741824&&(xe.duration=te[61]),C.$set(xe);let ot={};_e[0]&4194304&&(ot.supportLink=te[22]),_e[0]&2&&(ot.returnFocus=te[165]),_e[1]&8&&(ot.visible=te[34]),_e[1]&1024&&(ot.playerContainerRef=te[41]),_e[1]&2048&&(ot.controlsContainerRef=te[42]),_e[2]&1&&(ot.position=te[62]),!W&&_e[1]&4&&(W=!0,ot.menuElementRef=te[33],Ue(()=>W=!1)),E.$set(ot),te[44]?rt?_e[1]&8192&&d(rt,1):(rt=p_(te),rt.c(),d(rt,1),rt.m(L.parentNode,L)):rt&&(se(),p(rt,1,1,()=>{rt=null}),le()),te[63]?Pe?_e[2]&2&&d(Pe,1):(Pe=__(te),Pe.c(),d(Pe,1),Pe.m(J.parentNode,J)):Pe&&(se(),p(Pe,1,1,()=>{Pe=null}),le()),te[64]?qe?_e[2]&4&&d(qe,1):(qe=h_(te),qe.c(),d(qe,1),qe.m(ue.parentNode,ue)):qe&&(se(),p(qe,1,1,()=>{qe=null}),le())},i(te){Q||(d(e.$$.fragment,te),d(ee),d(X),d(x),d(ce),d(z),d(j),d(A),d(de),d($),d(Ee),d(ne),d(ae),d(Ie),d(C.$$.fragment,te),d(S.$$.fragment,te),d(E.$$.fragment,te),d(rt),d(Pe),d(qe),Q=!0)},o(te){p(e.$$.fragment,te),p(ee),p(X),p(x),p(ce),p(z),p(j),p(A),p(de),p($),p(Ee),p(ne),p(ae),p(Ie),p(C.$$.fragment,te),p(S.$$.fragment,te),p(E.$$.fragment,te),p(rt),p(Pe),p(qe),Q=!1},d(te){te&&(w(t),w(n),w(o),w(r),w(s),w(a),w(l),w(u),w(c),w(m),w(h),w(y),w(g),w(I),w(V),w(v),w(D),w(L),w(J),w(ue)),B(e,te),ee&&ee.d(te),X&&X.d(te),x&&x.d(te),ce&&ce.d(te),z&&z.d(te),j&&j.d(te),A&&A.d(te),de&&de.d(te),$&&$.d(te),Ee&&Ee.d(te),ne&&ne.d(te),ae&&ae.d(te),Ie&&Ie.d(te),B(C,te),B(S,te),B(E,te),rt&&rt.d(te),Pe&&Pe.d(te),qe&&qe.d(te)}}}function u8(i){let e,t,n,o,r=i[53],s,a,l,u,c=g_(i);return{c(){e=P("div"),t=P("div"),o=Y(),c.c(),s=$e(),f(t,"class","video-container svelte-13f9p53"),f(t,"style",n=`transform: rotate(${i[36]}deg) scale(${i[48]})`),f(t,"data-testid","video-container"),f(t,"data-is-playing",i[52]),K(t,"fast-rotate",!i[2].isSmoothVideoRotate),f(e,"class","video-wrapper svelte-13f9p53"),K(e,"hidden",i[39]!=="video"),K(e,"nocursor",i[47])},m(m,h){k(m,e,h),_(e,t),i[160](t),k(m,o,h),c.m(m,h),k(m,s,h),a=!0,l||(u=[ke(e,"contextmenu",ui(i[110])),ke(e,"mousedown",ui(i[115])),ke(e,"mouseup",ui(i[116])),ke(e,"click",ui(i[118])),ke(e,"dblclick",ui(i[117]))],l=!0)},p(m,h){(!a||h[1]&131104&&n!==(n=`transform: rotate(${m[36]}deg) scale(${m[48]})`))&&f(t,"style",n),(!a||h[1]&2097152)&&f(t,"data-is-playing",m[52]),(!a||h[0]&4)&&K(t,"fast-rotate",!m[2].isSmoothVideoRotate),(!a||h[1]&256)&&K(e,"hidden",m[39]!=="video"),(!a||h[1]&65536)&&K(e,"nocursor",m[47]),h[1]&4194304&&F(r,r=m[53])?(se(),p(c,1,1,me),le(),c=g_(m),c.c(),d(c,1),c.m(s.parentNode,s)):c.p(m,h)},i(m){a||(d(c),a=!0)},o(m){p(c),a=!1},d(m){m&&(w(e),w(o),w(s)),i[160](null),c.d(m),l=!1,ut(u)}}}function c8(i){let e,t,n,o,r,s,a,l={toggleFullscreen:i[108],hideContextMenu:i[109],showHotKeyHelpers:i[119],showKeyMap:i[120],isAds:i[39]==="ads",fakePlayButtonHandler:i[49]?i[107]:void 0,$$slots:{default:[u8]},$$scope:{ctx:i}};return t=new D1({props:l}),i[167](t),{c(){e=P("div"),N(t.$$.fragment),n=Y(),o=P("div"),f(o,"class","overlay-container"),f(e,"class","player-wrapper svelte-13f9p53")},m(u,c){k(u,e,c),R(t,e,null),_(e,n),_(e,o),i[168](o),i[169](e),r=!0,s||(a=[ke(s8,"blur",i[109]),ke(e,"mouseenter",i[111]),ke(e,"mouseleave",i[113]),ke(e,"mousemove",i[114]),ke(e,"click",i[122],!0),ke(e,"focusin",i[112],!0)],s=!0)},p(u,c){let m={};c[1]&256&&(m.isAds=u[39]==="ads"),c[1]&262144&&(m.fakePlayButtonHandler=u[49]?u[107]:void 0),c[0]&2147483647|c[1]&2147221502|c[2]&7|c[6]&1024&&(m.$$scope={dirty:c,ctx:u}),t.$set(m)},i(u){r||(d(t.$$.fragment,u),r=!0)},o(u){p(t.$$.fragment,u),r=!1},d(u){u&&w(e),i[167](null),B(t),i[168](null),i[169](null),s=!1,ut(a)}}}var b_=!0;function Tf(i){return i?i.offsetTop+Tf(i.offsetParent):0}function v_(i){return i?i.offsetLeft+v_(i.offsetParent):0}function f8(i,e,t){let n,o,r,s,a,l,u,c,m,h,y,g,I,C,V,S,v,E,W,D,L,J,ue,Q,ee,X,x,ce,z,j,A,de,$,Ee,ne,ae,Ie,Te,Se,rt,Pe,qe,te,_e,{store:Ce}=e,{uiConfig:xe}=e,{title:ot}=e,{thumbUrl:at}=e,{videoContainer:st}=e,{interactiveContainer:Je}=e,{live:fe}=e,{autoplay:Ze}=e,{canRewindLive:Me}=e,{showAds:De}=e,{adsSlotId:Qe=void 0}=e,{adsParams:He=void 0}=e,{adsPreviewParam:ct=void 0}=e,{duration:ft=void 0}=e,{logoClickable:he}=e,{logoHidden:pt}=e,{logoTargetUrl:yt=""}=e,{showNextPrevButtons:It=!1}=e,{nextButtonActive:kt=!1}=e,{prevButtonActive:Ye=!1}=e,{endScreenVideoTitle:Gt=void 0}=e,{endScreenVideoThumb:ii=void 0}=e,{isOneVideoPlaylist:Kt=!1}=e,{supportLink:Ht}=e,{shadowRootContainer:Yt=void 0}=e,{outerContainerRef:Nt=void 0}=e,{playerStarted:We=!1}=e,{fullScreenTarget:et=void 0}=e,{showMiniTimer:Pt=!1}=e,{showEndScreen:Qt=!0}=e,{keyboardControls:Wt}=e,{playNextVideo:pe=Sf}=e,{playPrevVideo:Zt=Sf}=e,{repeatPlaylist:Xt=Sf}=e,{seekToInteractive:Jt}=e,{playPrevChapter:Vt}=e,{firstStart:$t}=e,jt=Ce.getLogger().createComponentLog("Root component"),qt=Ce.interfaceLanguage$;q(i,qt,Z=>t(53,$=Z));let xi=Ce.state.playbackState$;q(i,xi,Z=>t(157,z=Z));let _i=Ce.ads.playbackState;q(i,_i,Z=>t(158,j=Z));let Ti=Ce.state.positionWithScrubbing$;q(i,Ti,Z=>t(58,Te=Z));let Ii=Ce.state.duration$;q(i,Ii,Z=>t(61,Pe=Z));let Ut=Ce.playerPhase;q(i,Ut,Z=>t(39,Q=Z));let Ri=Ce.ui.isFullscreen;q(i,Ri,Z=>t(147,I=Z));let Rt=Ce.ui.controlsVisible;q(i,Rt,Z=>t(37,W=Z));let ci=Ce.ui.settingsMenu.visible$;q(i,ci,Z=>t(145,u=Z));let wi=Ce.ui.settingsMenu.openedByBtnKeyboard$;q(i,wi,Z=>t(144,l=Z));let ni=Ce.ui.scrubbingInProgress;q(i,ni,Z=>t(149,v=Z));let ki=Ce.ui.contextMenu.visible$;q(i,ki,Z=>t(34,n=Z));let Bi=Ce.ui.debugPanelVisible;q(i,Bi,Z=>t(64,_e=Z));let Ae=Ce.state.isLoaderVisible;q(i,Ae,Z=>t(159,A=Z));let it=Ce.state.isEnded$;q(i,it,Z=>t(146,m=Z));let Mt=Ce.state.chromecastConnected$;q(i,Mt,Z=>t(40,x=Z));let Ci=Ce.state.chromecastDeviceName$;q(i,Ci,Z=>t(55,ne=Z));let Si=Ce.ads.postrollPassed;q(i,Si,Z=>t(152,J=Z));let zt=Ce.state.isLive$;q(i,zt,Z=>t(60,rt=Z));let Pi=Ce.state.isPlaying$;q(i,Pi,Z=>t(52,de=Z));let hi=Ce.state.crashed$;q(i,hi,Z=>t(38,L=Z));let $i=Ce.webApi.annotationsApi,xt=Ce.webApi.pictureInPictureApi,fn=Ce.state.currentSubtitle$;q(i,fn,Z=>t(56,ae=Z));let Ei=Ce.state.currentSubtitleCaptions$;q(i,Ei,Z=>t(57,Ie=Z));let dn=Ce.state.duration$;q(i,dn,Z=>t(59,Se=Z));let mn=Ce.state.graphIsOpened$;q(i,mn,Z=>t(153,ue=Z));let pn=Ce.ui.playerSize;q(i,pn,Z=>t(35,y=Z));let Ni=Ce.ui.is3DVideo;q(i,Ni,Z=>t(50,h=Z));let Ki=Ce.ui.icon3DVideoVisible;q(i,Ki,Z=>t(54,Ee=Z));let ai=Ce.ui.rotateAlpha;q(i,ai,Z=>t(36,S=Z));let en=Ce.state.isInteractive,ji=Ce.state.isInteractiveTime$;q(i,ji,Z=>t(150,E=Z));let Di=Ce.state.isInteractiveExpectation$;q(i,Di,Z=>t(156,ce=Z));let In=Ce.state.hasInteractiveBranches,gi=Ce.ui.touched;q(i,gi,Z=>t(154,ee=Z));let Oi=Ce.ui.modals.hotKeyMap.data;q(i,Oi,Z=>t(176,c=Z));let Fi=Ce.ui.modals.hotKeyMap.show;q(i,Fi,Z=>t(63,te=Z));let _n=Ce.ui.overlayContainer$,Ai=Ce.ui.controls.interactiveTimeIndicator;q(i,Ai,Z=>t(177,g=Z));let Hi=Ce.state.showInteractiveTimeIndicator,Mi=Ce.ui.contextMenu.position$;q(i,Mi,Z=>t(62,qe=Z));let Dt=Ce.actions.internal.closeSettingsMenu,{fakeIsPlaying$:oi}=Fn();q(i,oi,Z=>t(148,V=Z));let fi,qi,hn,lt,Ui,di,zi;Oi.set(jd());let Gi,Yi,Ge=Ne(!1);q(i,Ge,Z=>t(51,C=Z));let Un,gn=Ne(!1);q(i,gn,Z=>t(155,X=Z));let bn=Ne(),tn=Ne(!1);q(i,tn,Z=>t(151,D=Z));let nn=!1,on=!1,rn=!1,bi=!(Ze&&!xe.controls.showOnStartupAtAutoplay),Pn,vn,zn,sn,yn,wn=!1,En,An=!1,{toggle:ln}=oi,Mn=!1,an=null;xt==null||xt.setContext(ts());let ao=()=>{Ze&&!en&&xe.controls.showOnStartupAtAutoplay&&mi(xe.controls.hideTimeout)};Ce.setUiCallbacks({onStarted:ao});let uo=()=>{window.clearTimeout(Ui),gn.set(!1)},co=()=>{window.clearTimeout(di),bn.set(null)},mi=Z=>{uo(),gn.set(!0),Ui=window.setTimeout(()=>gn.set(!1),Z);let wt=Z-100;Un=window.setTimeout(()=>{C&&Ge.set(!1)},wt>0?wt:Z)},Wn=(Z,wt)=>{co(),bn.set(wt),di=window.setTimeout(()=>bn.set(null),Z)},Zn=Ni.subscribe(Z=>{Ki.set(Z),Z&&(window.clearTimeout(zi),zi=window.setTimeout(()=>Ki.set(!1),xe.controls.hide360IconTimeout))}),Xn=()=>mt(this,null,function*(){var wt,Zi,Wi,po;let Z=No();if(Z){let Cn=rs(),_o=Jn();Z=Cn===_o||Cn===Yt}if(Z){mi(xe.controls.hideTimeoutFullscreen);try{yield xt==null?void 0:xt.remove()}catch(Cn){jt({message:String(Cn)})}}Ri.set(Z),Ce.getAdmanWrapper().setFullscreen(Z),I?(Zi=(wt=Ce.callbacks)==null?void 0:wt.onFullscreenEnter)==null||Zi.call(wt):(po=(Wi=Ce.callbacks)==null?void 0:Wi.onFullscreenExit)==null||po.call(Wi)}),xn=Z=>{let wt=Z;pn.set({width:wt.target.width,height:wt.target.height})};Ft(()=>{var wt;return xs(Xn),xe.features.annotationsInside&&($i==null||$i.init(fi)),ar(xt)&&(xt==null||xt.assignPlayerContainer(fi),xt==null||xt.registryExternalEventHandlers({resize:xn})),Je&&((wt=st.parentElement)==null||wt.insertBefore(Je,st.nextSibling)),()=>{window.clearTimeout(Ui),window.clearTimeout(Un),window.clearTimeout(di),window.clearTimeout(zi),Zn(),xt==null||xt.dispose(),Ks(Xn)}});let Jn=()=>{let Z=xe.features.fullscreenInternalTargetPlayerContainer||!Nt?fi:Nt,wt=Z.getRootNode(),Zi=wt instanceof ShadowRoot?wt.host:wt,Wi=et instanceof HTMLElement&&et.contains(Zi);return xe.allowChangingFullscreenTarget&&et&&Wi?et:Z},Qi=()=>mt(this,null,function*(){No()?(yield Ws(document),jt({message:"exit fullscreen"})):(jt({message:"request fullscreen"}),yield zs(Jn()))}),kn=()=>{Dt(),ki.set(!1)},$n=Z=>{ki.set(!0),Mi.set({left:Z.clientX,top:Z.clientY})};function eo(){tn.set(!0),en||mi(xe.controls.hideTimeoutCursor)}function fo(){en||(Ge.set(!0),mi(xe.controls.hideTimeoutCursor))}function oe(){tn.set(!1),t(135,on=!1),t(134,nn=!1),Mn=!1,Ce.actions.internal.releaseCamera()}function Ct(Z){if(g&&Hi){let wt=Z.currentTarget,Zi=Tf(wt),Wi=v_(wt),po=Z.pageX-Wi,Cn=Z.pageY-Zi,{left:_o,bottom:$o,right:So}=g,pr=So-_o;return po>=_o-pr&&Cn<=$o+pr}}function un(Z){if(fi){let wt=Tf(Z.currentTarget),Zi=y.height,Wi=Z.pageY-wt;if(Ct(Z)){t(135,on=!1);return}Wi<40?t(135,on=!0):Wi>Zi-40?t(134,nn=!0):(t(135,on=!1),u||t(134,nn=!1))}}function Li(Z){un(Z),Pn||mi(xe.controls.hideTimeoutCursor),h&&Mn&&an&&Ce.actions.internal.moveCameraFocusPX(an.clientX-Z.clientX,an.clientY-Z.clientY,Z.timeStamp-an.timeStamp),an=Z}let Kn=Z=>{Z.button===0&&(Mn=!0,Ce.actions.internal.holdCamera()),mi(xe.controls.hideTimeoutCursor)},ie=Z=>{Z.button===0&&(an=Z,Mn=!1,Ce.actions.internal.releaseCamera()),mi(xe.controls.hideTimeoutCursor)},to=()=>{b_&&(jt({message:"double click on video"}),Qi(),mi(xe.controls.hideTimeoutCursor))},wo=()=>{if(n||u){kn();return}if(!(m&&!In)){if(An)return ln();if(Wt==null||Wt.focus(),!We){$t(),mi(xe.controls.hideTimeoutCursor);return}Ce.actions.internal.togglePlay(),mi(xe.controls.hideTimeoutCursor)}},Lo=Z=>{kn(),gi.set(!0),mi(xe.controls.hideTimeout),Z&&Wn(xe.controls.hideHotKeyHelpers,Z)},ko=()=>{var Z,wt;kn(),(Z=Ce.callbacks)!=null&&Z.onOpenHotKeyMap?(wt=Ce.callbacks)==null||wt.onOpenHotKeyMap(c):Fi.update(Zi=>!Zi)},Vo=()=>{if(n||u){kn();return}},xr=()=>{gi.set(!0)},io=Ce.ui.contextMenu.openedByBtnKeyboard$;q(i,io,Z=>t(143,a=Z));let no=Ce.ui.contextMenu.btnRef$;q(i,no,Z=>t(142,s=Z));let Ln,mo=Ce.ui.contextMenu.openedByHotKey$;q(i,mo,Z=>t(141,r=Z));let Co=Ce.ui.contextMenu.lastActiveElem$;q(i,Co,Z=>t(140,o=Z));function Vn(Z){be[Z?"unshift":"push"](()=>{st=Z,t(0,st)})}function Ko(Z){qi=Z,t(42,qi)}function jo(Z){hn=Z,t(43,hn)}let Rn=()=>Wt==null?void 0:Wt.focus();function Go(Z){lt=Z,t(30,lt)}let Yo=()=>Wt==null?void 0:Wt.focus();function Qo(Z){Ln=Z,t(33,Ln)}function Zo(Z){be[Z?"unshift":"push"](()=>{Wt=Z,t(1,Wt)})}function Xo(Z){be[Z?"unshift":"push"](()=>{Yi=Z,t(31,Yi)})}function Jo(Z){be[Z?"unshift":"push"](()=>{fi=Z,t(41,fi)})}return i.$$set=Z=>{"store"in Z&&t(127,Ce=Z.store),"uiConfig"in Z&&t(2,xe=Z.uiConfig),"title"in Z&&t(3,ot=Z.title),"thumbUrl"in Z&&t(4,at=Z.thumbUrl),"videoContainer"in Z&&t(0,st=Z.videoContainer),"interactiveContainer"in Z&&t(128,Je=Z.interactiveContainer),"live"in Z&&t(5,fe=Z.live),"autoplay"in Z&&t(6,Ze=Z.autoplay),"canRewindLive"in Z&&t(7,Me=Z.canRewindLive),"showAds"in Z&&t(8,De=Z.showAds),"adsSlotId"in Z&&t(9,Qe=Z.adsSlotId),"adsParams"in Z&&t(10,He=Z.adsParams),"adsPreviewParam"in Z&&t(11,ct=Z.adsPreviewParam),"duration"in Z&&t(12,ft=Z.duration),"logoClickable"in Z&&t(13,he=Z.logoClickable),"logoHidden"in Z&&t(14,pt=Z.logoHidden),"logoTargetUrl"in Z&&t(15,yt=Z.logoTargetUrl),"showNextPrevButtons"in Z&&t(16,It=Z.showNextPrevButtons),"nextButtonActive"in Z&&t(17,kt=Z.nextButtonActive),"prevButtonActive"in Z&&t(18,Ye=Z.prevButtonActive),"endScreenVideoTitle"in Z&&t(19,Gt=Z.endScreenVideoTitle),"endScreenVideoThumb"in Z&&t(20,ii=Z.endScreenVideoThumb),"isOneVideoPlaylist"in Z&&t(21,Kt=Z.isOneVideoPlaylist),"supportLink"in Z&&t(22,Ht=Z.supportLink),"shadowRootContainer"in Z&&t(129,Yt=Z.shadowRootContainer),"outerContainerRef"in Z&&t(130,Nt=Z.outerContainerRef),"playerStarted"in Z&&t(23,We=Z.playerStarted),"fullScreenTarget"in Z&&t(131,et=Z.fullScreenTarget),"showMiniTimer"in Z&&t(132,Pt=Z.showMiniTimer),"showEndScreen"in Z&&t(133,Qt=Z.showEndScreen),"keyboardControls"in Z&&t(1,Wt=Z.keyboardControls),"playNextVideo"in Z&&t(24,pe=Z.playNextVideo),"playPrevVideo"in Z&&t(25,Zt=Z.playPrevVideo),"repeatPlaylist"in Z&&t(26,Xt=Z.repeatPlaylist),"seekToInteractive"in Z&&t(27,Jt=Z.seekToInteractive),"playPrevChapter"in Z&&t(28,Vt=Z.playPrevChapter),"firstStart"in Z&&t(29,$t=Z.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&384|i.$$.dirty[5]&24&&t(44,Gi=(Q==="video"&&A||Q==="ads"&&j==="inactive")&&!L),i.$$.dirty[1]&1&&_n.set(Yi),i.$$.dirty[4]&8192|i.$$.dirty[5]&4&&(t(136,rn=bi&&z!==l8.PLAYING),bi||t(137,bi=!0)),i.$$.dirty[4]&69213184|i.$$.dirty[5]&2&&t(138,Pn=E&&!u&&!(nn||on)&&!(rn&&!ce)),i.$$.dirty[1]&896|i.$$.dirty[4]&35672064|i.$$.dirty[5]&1&&Rt.set((rn||u||v||x||X)&&!Pn&&(Q==="video"||Q==="ads")&&!L),i.$$.dirty[0]&4|i.$$.dirty[1]&448|i.$$.dirty[4]&1073742080&&t(45,vn=xe.features.thumbTimer&&Pt&&Q==="video"&&!W&&!L&&!en&&(xe.hideThumbTimerAfterTouch&&!ee||!xe.hideThumbTimerAfterTouch)),i.$$.dirty[1]&256|i.$$.dirty[4]&545259520&&t(46,zn=Q==="video"&&!ue&&I),i.$$.dirty[0]&256|i.$$.dirty[1]&128|i.$$.dirty[4]&272630272&&t(32,sn=Qt&&(De&&J||!De)&&m&&!L),i.$$.dirty[1]&66|i.$$.dirty[4]&201326592&&t(47,yn=D&&!(W||sn)&&!E),i.$$.dirty[0]&4|i.$$.dirty[4]&100696064&&(!v&&wn&&!E&&mi(xe.controls.hideTimeoutCursor),t(139,wn=v)),i.$$.dirty[0]&1|i.$$.dirty[1]&48&&t(48,En=st&&S%180?y.height/y.width:1),i.$$.dirty[4]&16777216&&t(49,An=V!==null),i.$$.dirty[0]&1073741824|i.$$.dirty[4]&3145728&&vo(lt,u,l),i.$$.dirty[1]&12|i.$$.dirty[4]&524288&&vo(Ln,n,a),i.$$.dirty[1]&8|i.$$.dirty[4]&262144){let Z=s;Z&&Ar(Z,n,io)}if(i.$$.dirty[1]&12|i.$$.dirty[4]&131072&&vo(Ln,n,r),i.$$.dirty[1]&8|i.$$.dirty[4]&65536){let Z=o;Z&&r1(Z,n,mo)}},[st,Wt,xe,ot,at,fe,Ze,Me,De,Qe,He,ct,ft,he,pt,yt,It,kt,Ye,Gt,ii,Kt,Ht,We,pe,Zt,Xt,Jt,Vt,$t,lt,Yi,sn,Ln,n,y,S,W,L,Q,x,fi,qi,hn,Gi,vn,zn,yn,En,An,h,C,de,$,Ee,ne,ae,Ie,Te,Se,rt,Pe,qe,te,_e,qt,xi,_i,Ti,Ii,Ut,Ri,Rt,ci,wi,ni,ki,Bi,Ae,it,Mt,Ci,Si,zt,Pi,hi,fn,Ei,dn,mn,pn,Ni,Ki,ai,en,ji,Di,gi,Oi,Fi,Ai,Mi,oi,Ge,gn,bn,tn,ln,Qi,kn,$n,eo,fo,oe,Li,Kn,ie,to,wo,Lo,ko,Vo,xr,io,no,mo,Co,Ce,Je,Yt,Nt,et,Pt,Qt,nn,on,rn,bi,Pn,wn,o,r,s,a,l,u,m,I,V,v,E,D,J,ue,ee,X,ce,z,j,A,Vn,Ko,jo,Rn,Go,Yo,Qo,Zo,Xo,Jo]}var If=class extends H{constructor(e){super(),U(this,e,f8,c8,F,{store:127,uiConfig:2,title:3,thumbUrl:4,videoContainer:0,interactiveContainer:128,live:5,autoplay:6,canRewindLive:7,showAds:8,adsSlotId:9,adsParams:10,adsPreviewParam:11,duration:12,logoClickable:13,logoHidden:14,logoTargetUrl:15,showNextPrevButtons:16,nextButtonActive:17,prevButtonActive:18,endScreenVideoTitle:19,endScreenVideoThumb:20,isOneVideoPlaylist:21,supportLink:22,shadowRootContainer:129,outerContainerRef:130,playerStarted:23,fullScreenTarget:131,showMiniTimer:132,showEndScreen:133,keyboardControls:1,playNextVideo:24,playPrevVideo:25,repeatPlaylist:26,seekToInteractive:27,playPrevChapter:28,firstStart:29},a8,[-1,-1,-1,-1,-1,-1,-1])}},y_=If;import{PlaybackState as v8}from"@vkontakte/videoplayer-core";import{clientChecker as Ql,noop as Zl}from"@vkontakte/videoplayer-shared";function d8(i){ge(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 w_(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,I,C=G("doubletap_seek_step",{seconds:i[2].toFixed(0)})+"",V;return{c(){e=P("div"),n=Y(),o=P("div"),r=P("div"),s=P("div"),l=Y(),u=P("div"),m=Y(),h=P("div"),g=Y(),I=P("p"),V=Oe(C),f(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),f(s,"class",a="triangle "+i[0]+" svelte-nhq2ld"),f(u,"class",c="triangle "+i[0]+" svelte-nhq2ld"),f(h,"class",y="triangle "+i[0]+" svelte-nhq2ld"),f(r,"class","triangles-wrapper svelte-nhq2ld"),f(I,"class","step-caption svelte-nhq2ld"),f(o,"class","info svelte-nhq2ld")},m(S,v){k(S,e,v),k(S,n,v),k(S,o,v),_(o,r),_(r,s),_(r,l),_(r,u),_(r,m),_(r,h),_(o,g),_(o,I),_(I,V)},p(S,v){v&1&&t!==(t="semicircle "+S[0]+" svelte-nhq2ld")&&f(e,"class",t),v&1&&a!==(a="triangle "+S[0]+" svelte-nhq2ld")&&f(s,"class",a),v&1&&c!==(c="triangle "+S[0]+" svelte-nhq2ld")&&f(u,"class",c),v&1&&y!==(y="triangle "+S[0]+" svelte-nhq2ld")&&f(h,"class",y),v&4&&C!==(C=G("doubletap_seek_step",{seconds:S[2].toFixed(0)})+"")&&Ke(V,C)},d(S){S&&(w(e),w(n),w(o))}}}function m8(i){let e,t,n,o,r=i[1]&&w_(i);return{c(){e=P("div"),r&&r.c(),f(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(s,a){k(s,e,a),r&&r.m(e,null),n||(o=ke(e,"click",vt(i[3]())),n=!0)},p(s,[a]){s[1]?r?r.p(s,a):(r=w_(s),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&1&&t!==(t="double-click-area "+s[0]+" svelte-nhq2ld")&&f(e,"class",t)},i:me,o:me,d(s){s&&w(e),r&&r.d(),n=!1,o()}}}function p8(i,e,t){let{side:n}=e,{seekStep:o=0}=e,{handleSingleFirstClick:r}=e,{handleSecondClick:s}=e,a=!1,l=0,u=0,c=o,m=()=>()=>{u+=1,t(2,c=o*(u-1)),u===1?r():(t(1,a=!0),s()),window.clearTimeout(l),l=window.setTimeout(()=>{u=0,t(1,a=!1)},300)};return oo(()=>{window.clearTimeout(l)}),i.$$set=h=>{"side"in h&&t(0,n=h.side),"seekStep"in h&&t(4,o=h.seekStep),"handleSingleFirstClick"in h&&t(5,r=h.handleSingleFirstClick),"handleSecondClick"in h&&t(6,s=h.handleSecondClick)},[n,a,c,m,o,r,s]}var Pf=class extends H{constructor(e){super(),U(this,e,p8,m8,F,{side:0,seekStep:4,handleSingleFirstClick:5,handleSecondClick:6},d8)}},Ef=Pf;function _8(i){ge(i,"svelte-i9411",".overlay.svelte-i9411{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-i9411{position:absolute;top:50%;left:16px;right:16px;z-index:var(--end-screen-mobile-z-index);transform:translateY(-50%);display:flex;flex-direction:column;max-width:362px;margin:0 auto}.top.svelte-i9411{display:flex;justify-content:space-between}.caption.svelte-i9411{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-i9411{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-i9411{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-i9411{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-i9411{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.svelte-i9411{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function k_(i){let e,t;return e=new nl({props:{isRunning:i[3],onTimerEnded:i[7]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.isRunning=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function h8(i){let e,t,n,o,r,s,a,l,u,c,m,h,y,g,I,C,V,S,v,E,W;a=new il({}),a.$on("click",i[8]);let D=i[2]&&k_(i);return{c(){e=P("div"),t=Y(),n=P("div"),o=P("div"),r=P("div"),r.textContent=`${G("end_screen_next_video")}`,s=Y(),N(a.$$.fragment),l=Y(),u=P("div"),c=P("div"),m=P("div"),h=P("div"),y=Y(),D&&D.c(),I=Y(),C=P("div"),V=P("div"),S=Oe(i[0]),f(e,"class","overlay svelte-i9411"),f(r,"class","caption svelte-i9411"),f(o,"class","top svelte-i9411"),f(h,"class","thumb-overlay svelte-i9411"),f(m,"class","thumb svelte-i9411"),f(m,"style",g=`background-image: url('${i[1]}')`),f(c,"class","column svelte-i9411"),f(V,"class","title svelte-i9411"),f(C,"class","column svelte-i9411"),f(u,"class","row svelte-i9411"),f(n,"class","next-video svelte-i9411")},m(L,J){k(L,e,J),k(L,t,J),k(L,n,J),_(n,o),_(o,r),_(o,s),R(a,o,null),_(n,l),_(n,u),_(u,c),_(c,m),_(m,h),_(m,y),D&&D.m(m,null),_(u,I),_(u,C),_(C,V),_(V,S),v=!0,E||(W=ke(u,"click",i[6]),E=!0)},p(L,[J]){L[2]?D?(D.p(L,J),J&4&&d(D,1)):(D=k_(L),D.c(),d(D,1),D.m(m,null)):D&&(se(),p(D,1,1,()=>{D=null}),le()),(!v||J&2&&g!==(g=`background-image: url('${L[1]}')`))&&f(m,"style",g),(!v||J&1)&&Ke(S,L[0])},i(L){v||(d(a.$$.fragment,L),d(D),v=!0)},o(L){p(a.$$.fragment,L),p(D),v=!1},d(L){L&&(w(e),w(t),w(n)),B(a),D&&D.d(),E=!1,W()}}}function g8(i,e,t){let n,o,{title:r}=e,{thumb:s}=e,{playNextVideo:a}=e,l=nt(),u=l.ui.autoplayNextEnabled$;q(i,u,S=>t(10,n=S));let c=l.ui.timerNextVideoRunning$;q(i,c,S=>t(3,o=S));let m=l.actions.internal.nextVideoAnnouncementClick,h=l.actions.internal.nextVideoAnnouncementAuto,y=l.actions.internal.nextVideoAnnouncementCancel,g,I=()=>{a(),m()},C=()=>{a(),h()},V=()=>{g&&(t(2,g=!1),y())};return i.$$set=S=>{"title"in S&&t(0,r=S.title),"thumb"in S&&t(1,s=S.thumb),"playNextVideo"in S&&t(9,a=S.playNextVideo)},i.$$.update=()=>{i.$$.dirty&1024&&t(2,g=n),i.$$.dirty&1024&&(n||y())},[r,s,g,o,u,c,I,C,V,a,n]}var Af=class extends H{constructor(e){super(),U(this,e,g8,h8,F,{title:0,thumb:1,playNextVideo:9},_8)}},C_=Af;var{window:b8}=er;function y8(i){ge(i,"svelte-dtyj47",".player-wrapper.svelte-dtyj47{position:absolute;width:100%;height:100%}.player-wrapper.svelte-dtyj47 .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-dtyj47{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-dtyj47,.video-container.svelte-dtyj47,.ads-container.svelte-dtyj47{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-dtyj47{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-dtyj47{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-dtyj47{transition:none}.ads-container.svelte-dtyj47{z-index:var(--ads-container-z-index);background:var(--black)}.settings-mobile.svelte-dtyj47{position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%}")}function S_(i){let e,t,n,o=i[47]&&T_(i),r=i[48]&&I_(i);return{c(){o&&o.c(),e=Y(),r&&r.c(),t=$e()},m(s,a){o&&o.m(s,a),k(s,e,a),r&&r.m(s,a),k(s,t,a),n=!0},p(s,a){s[47]?o?(o.p(s,a),a[1]&65536&&d(o,1)):(o=T_(s),o.c(),d(o,1),o.m(e.parentNode,e)):o&&(se(),p(o,1,1,()=>{o=null}),le()),s[48]?r?(r.p(s,a),a[1]&131072&&d(r,1)):(r=I_(s),r.c(),d(r,1),r.m(t.parentNode,t)):r&&(se(),p(r,1,1,()=>{r=null}),le())},i(s){n||(d(o),d(r),n=!0)},o(s){p(o),p(r),n=!1},d(s){s&&(w(e),w(t)),o&&o.d(s),r&&r.d(s)}}}function T_(i){let e,t;return e=new Ef({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[103],handleSecondClick:i[136]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function I_(i){let e,t;return e=new Ef({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[103],handleSecondClick:i[137]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function P_(i){var n;let e,t;return e=new Wl({props:{thumbUrl:i[2],startTime:(n=i[3])==null?void 0:n.startTime}}),{c(){N(e.$$.fragment)},m(o,r){R(e,o,r),t=!0},p(o,r){var a;let s={};r[0]&4&&(s.thumbUrl=o[2]),r[0]&8&&(s.startTime=(a=o[3])==null?void 0:a.startTime),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){B(e,o)}}}function E_(i){let e,t;return e=new zr({props:{kind:"recover",thumbUrl:i[2]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function A_(i){let e,t;return e=new zr({props:{kind:"record",thumbUrl:i[2]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function M_(i){let e,t,n;return t=new js({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","ads-container svelte-dtyj47"),K(e,"hidden",i[37]!=="ads")},m(o,r){k(o,e,r),R(t,e,null),n=!0},p(o,r){let s={};r[0]&128&&(s.adsSlotId=o[7]),r[0]&256&&(s.adsParams=o[8]),r[0]&512&&(s.adsPreviewParam=o[9]),r[0]&1024&&(s.duration=o[10]),t.$set(s),(!n||r[1]&64)&&K(e,"hidden",o[37]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),B(t)}}}function L_(i){let e,t;return e=new C_({props:{title:i[17],thumb:i[18],playNextVideo:i[22]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&131072&&(r.title=n[17]),o[0]&262144&&(r.thumb=n[18]),o[0]&4194304&&(r.playNextVideo=n[22]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function V_(i){let e,t;return e=new Fl({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function R_(i){let e,t,n;return t=new Ds({props:{"aria-label":G("video360")}}),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","spherical-video-icon svelte-dtyj47")},m(o,r){k(o,e,r),R(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),B(t)}}}function B_(i){let e,t;return e=new ql({props:{thumbUrl:i[2],chromecastDeviceName:i[55]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),o[1]&16777216&&(r.chromecastDeviceName=n[55]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function N_(i){let e,t;return e=new Hl({props:{shifted:i[31],captions:i[57],position:i[33],playerSize:i[34],isMobile:!0}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[1]&1&&(r.shifted=n[31]),o[1]&67108864&&(r.captions=n[57]),o[1]&4&&(r.position=n[33]),o[1]&8&&(r.playerSize=n[34]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function D_(i){let e,t,n,o,r;return t=new Ul({}),{c(){e=P("div"),N(t.$$.fragment)},m(s,a){k(s,e,a),R(t,e,null),n=!0,o||(r=ke(e,"click",vt(i[104])),o=!0)},p:me,i(s){n||(d(t.$$.fragment,s),n=!0)},o(s){p(t.$$.fragment,s),n=!1},d(s){s&&w(e),B(t),o=!1,r()}}}function O_(i){let e,t,n,o;function r(l){i[138](l)}function s(l){i[139](l)}let a={bottomHidden:i[37]==="thumb"||i[37]==="LiveWaitingStart"||i[37]==="LiveWaitingRecover"||i[37]==="LiveWaitingRecord"||i[37]==="ads",showControls:i[31],bottomNoSmooth:i[49],isAds:i[37]==="ads",canRewindLive:i[5]&&i[58]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showNextPrevButtons:i[14],nextButtonActive:i[15],prevButtonActive:i[16],isOneVideoPlaylist:i[19],customFullscreenSupported:i[43],endScreenShown:i[45],playNextVideo:i[22],playPrevVideo:i[23],repeatPlaylist:i[24],toggleFullscreen:i[101],seekToInteractive:i[25],playPrevChapter:i[26],onDisabledPlayPrevChapterClick:i[107],onDisabledSeekToInteractiveClick:i[108]};return i[40]!==void 0&&(a.playerControlsWrapperRef=i[40]),i[41]!==void 0&&(a.playerControlsRef=i[41]),e=new Ol({props:a}),be.push(()=>ze(e,"playerControlsWrapperRef",r)),be.push(()=>ze(e,"playerControlsRef",s)),{c(){N(e.$$.fragment)},m(l,u){R(e,l,u),o=!0},p(l,u){let c={};u[1]&64&&(c.bottomHidden=l[37]==="thumb"||l[37]==="LiveWaitingStart"||l[37]==="LiveWaitingRecover"||l[37]==="LiveWaitingRecord"||l[37]==="ads"),u[1]&1&&(c.showControls=l[31]),u[1]&262144&&(c.bottomNoSmooth=l[49]),u[1]&64&&(c.isAds=l[37]==="ads"),u[0]&32|u[1]&134217728&&(c.canRewindLive=l[5]&&l[58]!==0),u[0]&2048&&(c.logoClickable=l[11]),u[0]&4096&&(c.logoHidden=l[12]),u[0]&8192&&(c.logoTargetUrl=l[13]),u[0]&16384&&(c.showNextPrevButtons=l[14]),u[0]&32768&&(c.nextButtonActive=l[15]),u[0]&65536&&(c.prevButtonActive=l[16]),u[0]&524288&&(c.isOneVideoPlaylist=l[19]),u[1]&4096&&(c.customFullscreenSupported=l[43]),u[1]&16384&&(c.endScreenShown=l[45]),u[0]&4194304&&(c.playNextVideo=l[22]),u[0]&8388608&&(c.playPrevVideo=l[23]),u[0]&16777216&&(c.repeatPlaylist=l[24]),u[0]&33554432&&(c.seekToInteractive=l[25]),u[0]&67108864&&(c.playPrevChapter=l[26]),!t&&u[1]&512&&(t=!0,c.playerControlsWrapperRef=l[40],Ue(()=>t=!1)),!n&&u[1]&1024&&(n=!0,c.playerControlsRef=l[41],Ue(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){B(e,l)}}}function F_(i){let e,t,n,o;function r(a){i[140](a)}let s={supportLink:i[20],returnFocus:Zl};return i[28]!==void 0&&(s.ref=i[28]),t=new Yl({props:s}),be.push(()=>ze(t,"ref",r)),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","settings-mobile svelte-dtyj47")},m(a,l){k(a,e,l),R(t,e,null),o=!0},p(a,l){let u={};l[0]&1048576&&(u.supportLink=a[20]),!n&&l[0]&268435456&&(n=!0,u.ref=a[28],Ue(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&w(e),B(t)}}}function H_(i){let e,t;return e=new Vr({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function q_(i){let e,t;return e=new tl({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function U_(i){let e,t,n=i[5]&&i[82]&&!i[52].has("TIMELINE"),o,r,s,a,l,u,c,m,h,y,g,I,C,V,S,v,E,W;e=new zl({props:{hidden:i[37]!=="thumb"||i[36]||i[93]&&i[4],thumbUrl:i[2],startVideo:i[27]}});let D=n&&S_(i),L=i[37]==="LiveWaitingStart"&&P_(i),J=i[37]==="LiveWaitingRecover"&&E_(i),ue=i[37]==="LiveWaitingRecord"&&A_(i),Q=i[6]&&i[21]&&M_(i),ee=i[45]&&i[17]&&i[18]&&L_(i),X=i[53]&&V_(i),x=i[54]&&R_(i),ce=i[38]&&B_(i),z=i[56].value!=="off"&&N_(i),j=i[36]&&D_(i),A=i[21]&&O_(i),de=i[30]&&F_(i);V=new Ys({props:{isLive:i[59],isHidden:!i[44],isPlaying:i[50],position:i[33],duration:i[32]}});let $=i[42]&&H_(i),Ee=i[60]&&q_(i);return{c(){N(e.$$.fragment),t=Y(),D&&D.c(),o=Y(),L&&L.c(),r=Y(),J&&J.c(),s=Y(),ue&&ue.c(),a=Y(),Q&&Q.c(),l=Y(),ee&&ee.c(),u=Y(),X&&X.c(),c=Y(),x&&x.c(),m=Y(),ce&&ce.c(),h=Y(),z&&z.c(),y=Y(),j&&j.c(),g=Y(),A&&A.c(),I=Y(),de&&de.c(),C=Y(),N(V.$$.fragment),S=Y(),$&&$.c(),v=Y(),Ee&&Ee.c(),E=$e()},m(ne,ae){R(e,ne,ae),k(ne,t,ae),D&&D.m(ne,ae),k(ne,o,ae),L&&L.m(ne,ae),k(ne,r,ae),J&&J.m(ne,ae),k(ne,s,ae),ue&&ue.m(ne,ae),k(ne,a,ae),Q&&Q.m(ne,ae),k(ne,l,ae),ee&&ee.m(ne,ae),k(ne,u,ae),X&&X.m(ne,ae),k(ne,c,ae),x&&x.m(ne,ae),k(ne,m,ae),ce&&ce.m(ne,ae),k(ne,h,ae),z&&z.m(ne,ae),k(ne,y,ae),j&&j.m(ne,ae),k(ne,g,ae),A&&A.m(ne,ae),k(ne,I,ae),de&&de.m(ne,ae),k(ne,C,ae),R(V,ne,ae),k(ne,S,ae),$&&$.m(ne,ae),k(ne,v,ae),Ee&&Ee.m(ne,ae),k(ne,E,ae),W=!0},p(ne,ae){let Ie={};ae[0]&16|ae[1]&96&&(Ie.hidden=ne[37]!=="thumb"||ne[36]||ne[93]&&ne[4]),ae[0]&4&&(Ie.thumbUrl=ne[2]),ae[0]&134217728&&(Ie.startVideo=ne[27]),e.$set(Ie),ae[0]&32|ae[1]&2097152&&(n=ne[5]&&ne[82]&&!ne[52].has("TIMELINE")),n?D?(D.p(ne,ae),ae[0]&32|ae[1]&2097152&&d(D,1)):(D=S_(ne),D.c(),d(D,1),D.m(o.parentNode,o)):D&&(se(),p(D,1,1,()=>{D=null}),le()),ne[37]==="LiveWaitingStart"?L?(L.p(ne,ae),ae[1]&64&&d(L,1)):(L=P_(ne),L.c(),d(L,1),L.m(r.parentNode,r)):L&&(se(),p(L,1,1,()=>{L=null}),le()),ne[37]==="LiveWaitingRecover"?J?(J.p(ne,ae),ae[1]&64&&d(J,1)):(J=E_(ne),J.c(),d(J,1),J.m(s.parentNode,s)):J&&(se(),p(J,1,1,()=>{J=null}),le()),ne[37]==="LiveWaitingRecord"?ue?(ue.p(ne,ae),ae[1]&64&&d(ue,1)):(ue=A_(ne),ue.c(),d(ue,1),ue.m(a.parentNode,a)):ue&&(se(),p(ue,1,1,()=>{ue=null}),le()),ne[6]&&ne[21]?Q?(Q.p(ne,ae),ae[0]&2097216&&d(Q,1)):(Q=M_(ne),Q.c(),d(Q,1),Q.m(l.parentNode,l)):Q&&(se(),p(Q,1,1,()=>{Q=null}),le()),ne[45]&&ne[17]&&ne[18]?ee?(ee.p(ne,ae),ae[0]&393216|ae[1]&16384&&d(ee,1)):(ee=L_(ne),ee.c(),d(ee,1),ee.m(u.parentNode,u)):ee&&(se(),p(ee,1,1,()=>{ee=null}),le()),ne[53]?X?ae[1]&4194304&&d(X,1):(X=V_(ne),X.c(),d(X,1),X.m(c.parentNode,c)):X&&(se(),p(X,1,1,()=>{X=null}),le()),ne[54]?x?ae[1]&8388608&&d(x,1):(x=R_(ne),x.c(),d(x,1),x.m(m.parentNode,m)):x&&(se(),p(x,1,1,()=>{x=null}),le()),ne[38]?ce?(ce.p(ne,ae),ae[1]&128&&d(ce,1)):(ce=B_(ne),ce.c(),d(ce,1),ce.m(h.parentNode,h)):ce&&(se(),p(ce,1,1,()=>{ce=null}),le()),ne[56].value!=="off"?z?(z.p(ne,ae),ae[1]&33554432&&d(z,1)):(z=N_(ne),z.c(),d(z,1),z.m(y.parentNode,y)):z&&(se(),p(z,1,1,()=>{z=null}),le()),ne[36]?j?(j.p(ne,ae),ae[1]&32&&d(j,1)):(j=D_(ne),j.c(),d(j,1),j.m(g.parentNode,g)):j&&(se(),p(j,1,1,()=>{j=null}),le()),ne[21]?A?(A.p(ne,ae),ae[0]&2097152&&d(A,1)):(A=O_(ne),A.c(),d(A,1),A.m(I.parentNode,I)):A&&(se(),p(A,1,1,()=>{A=null}),le()),ne[30]?de?(de.p(ne,ae),ae[0]&1073741824&&d(de,1)):(de=F_(ne),de.c(),d(de,1),de.m(C.parentNode,C)):de&&(se(),p(de,1,1,()=>{de=null}),le());let Te={};ae[1]&268435456&&(Te.isLive=ne[59]),ae[1]&8192&&(Te.isHidden=!ne[44]),ae[1]&524288&&(Te.isPlaying=ne[50]),ae[1]&4&&(Te.position=ne[33]),ae[1]&2&&(Te.duration=ne[32]),V.$set(Te),ne[42]?$?ae[1]&2048&&d($,1):($=H_(ne),$.c(),d($,1),$.m(v.parentNode,v)):$&&(se(),p($,1,1,()=>{$=null}),le()),ne[60]?Ee?ae[1]&536870912&&d(Ee,1):(Ee=q_(ne),Ee.c(),d(Ee,1),Ee.m(E.parentNode,E)):Ee&&(se(),p(Ee,1,1,()=>{Ee=null}),le())},i(ne){W||(d(e.$$.fragment,ne),d(D),d(L),d(J),d(ue),d(Q),d(ee),d(X),d(x),d(ce),d(z),d(j),d(A),d(de),d(V.$$.fragment,ne),d($),d(Ee),W=!0)},o(ne){p(e.$$.fragment,ne),p(D),p(L),p(J),p(ue),p(Q),p(ee),p(X),p(x),p(ce),p(z),p(j),p(A),p(de),p(V.$$.fragment,ne),p($),p(Ee),W=!1},d(ne){ne&&(w(t),w(o),w(r),w(s),w(a),w(l),w(u),w(c),w(m),w(h),w(y),w(g),w(I),w(C),w(S),w(v),w(E)),B(e,ne),D&&D.d(ne),L&&L.d(ne),J&&J.d(ne),ue&&ue.d(ne),Q&&Q.d(ne),ee&&ee.d(ne),X&&X.d(ne),x&&x.d(ne),ce&&ce.d(ne),z&&z.d(ne),j&&j.d(ne),A&&A.d(ne),de&&de.d(ne),B(V,ne),$&&$.d(ne),Ee&&Ee.d(ne)}}}function w8(i){let e,t,n,o,r,s=i[51],a,l,u,c,m,h,y=U_(i);return{c(){e=P("div"),t=P("div"),n=P("div"),r=Y(),y.c(),a=Y(),l=P("div"),f(n,"class","video-container svelte-dtyj47"),f(n,"style",o=`transform: rotate(${i[35]}deg) scale(${i[46]})`),f(n,"data-testid","video-container"),f(n,"data-is-playing",i[50]),K(n,"fast-rotate",!i[1].isSmoothVideoRotate),f(t,"class","video-wrapper svelte-dtyj47"),K(t,"hidden",i[37]!=="video"),f(l,"class","overlay-container"),f(e,"class","player-wrapper svelte-dtyj47"),f(e,"role","region"),f(e,"aria-label",u=G("aria_label_video_player")),f(e,"tabindex","-1")},m(g,I){k(g,e,I),_(e,t),_(t,n),i[135](n),_(e,r),y.m(e,null),_(e,a),_(e,l),i[141](l),i[142](e),c=!0,m||(h=[ke(b8,"blur",i[102]),ke(t,"click",ui(i[103])),ke(e,"click",i[105],!0),ke(e,"focusin",i[106],!0)],m=!0)},p(g,I){(!c||I[1]&32784&&o!==(o=`transform: rotate(${g[35]}deg) scale(${g[46]})`))&&f(n,"style",o),(!c||I[1]&524288)&&f(n,"data-is-playing",g[50]),(!c||I[0]&2)&&K(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!c||I[1]&64)&&K(t,"hidden",g[37]!=="video"),I[1]&1048576&&F(s,s=g[51])?(se(),p(y,1,1,me),le(),y=U_(g),y.c(),d(y,1),y.m(e,a)):y.p(g,I)},i(g){c||(d(y),c=!0)},o(g){p(y),c=!1},d(g){g&&w(e),i[135](null),y.d(g),i[141](null),i[142](null),m=!1,ut(h)}}}function k8(i,e,t){var eo,fo;let n,o,r,s,a,l,u,c,m,h,y,g,I,C,V,S,v,E,W,D,L,J,ue,Q,ee,X,x,ce,z,j,A,de,$,Ee,ne,ae,Ie,{store:Te}=e,{uiConfig:Se}=e,{thumbUrl:rt}=e,{videoContainer:Pe}=e,{interactiveContainer:qe}=e,{live:te}=e,{autoplay:_e}=e,{canRewindLive:Ce}=e,{showAds:xe}=e,{adsSlotId:ot=void 0}=e,{adsParams:at=void 0}=e,{adsPreviewParam:st=void 0}=e,{duration:Je=void 0}=e,{logoClickable:fe}=e,{logoHidden:Ze}=e,{logoTargetUrl:Me=""}=e,{showNextPrevButtons:De=!1}=e,{nextButtonActive:Qe=!1}=e,{prevButtonActive:He=!1}=e,{endScreenVideoTitle:ct=void 0}=e,{endScreenVideoThumb:ft=void 0}=e,{isOneVideoPlaylist:he=!1}=e,{supportLink:pt}=e,{shadowRootContainer:yt=void 0}=e,{outerContainerRef:It=void 0}=e,{showMiniTimer:kt=!1}=e,{fullScreenTarget:Ye=void 0}=e,{playerStarted:Gt=!1}=e,{showEndScreen:ii=!0}=e,{playNextVideo:Kt=Zl}=e,{playPrevVideo:Ht=Zl}=e,{repeatPlaylist:Yt=Zl}=e,{seekToInteractive:Nt}=e,{playPrevChapter:We}=e,{firstStart:et}=e,{seekTime:Pt}=e,Qt=Te.getLogger().createComponentLog("Root component"),Wt=Te.interfaceLanguage$;q(i,Wt,oe=>t(51,ce=oe));let pe=Te.state.playbackState$;q(i,pe,oe=>t(132,Q=oe));let Zt=Te.ads.playbackState;q(i,Zt,oe=>t(133,ee=oe));let Xt=Te.state.positionWithScrubbing$;q(i,Xt,oe=>t(33,l=oe));let Jt=Te.state.duration$;q(i,Jt,oe=>t(32,a=oe));let Vt=Te.playerPhase;q(i,Vt,oe=>t(37,D=oe));let $t=Te.ui.isFullscreen;q(i,$t,oe=>t(148,c=oe));let jt=Te.ui.controlsVisible;q(i,jt,oe=>t(31,r=oe));let qt=Te.ui.interactiveHideMobileControls;q(i,qt,oe=>t(124,g=oe));let xi=Te.ui.settingsMenu.visible$;q(i,xi,oe=>t(30,o=oe));let _i=Te.ui.settingsMenu.openedByBtnKeyboard$;q(i,_i,oe=>t(122,n=oe));let Ti=Te.ui.scrubbingInProgress;q(i,Ti,oe=>t(125,C=oe));let Ii=Te.ui.debugPanelVisible;q(i,Ii,oe=>t(60,Ie=oe));let Ut=Te.state.isLoaderVisible;q(i,Ut,oe=>t(134,X=oe));let Ri=Te.state.isEnded$;q(i,Ri,oe=>t(127,v=oe));let Rt=Te.state.chromecastConnected$;q(i,Rt,oe=>t(38,L=oe));let ci=Te.state.chromecastDeviceName$;q(i,ci,oe=>t(55,de=oe));let wi=Te.ads.postrollPassed;q(i,wi,oe=>t(128,E=oe));let ni=Te.ui.mobileUnmuteButtonExpanded,ki=Te.ui.mobileUnmuteButtonVisible,Bi=Te.state.isLive$;q(i,Bi,oe=>t(59,ae=oe));let Ae=Te.state.isPlaying$;q(i,Ae,oe=>t(50,x=oe));let it=Te.state.isActiveLive$;q(i,it,oe=>t(123,u=oe));let Mt=Te.state.isRewindableLive$,Ci=Te.state.crashed$;q(i,Ci,oe=>t(36,S=oe));let Si=Te.webApi.annotationsApi,zt=Te.webApi.pictureInPictureApi,Pi=Te.state.videoSize$;q(i,Pi,oe=>t(149,h=oe));let hi=Te.state.currentSubtitle$;q(i,hi,oe=>t(56,$=oe));let $i=Te.state.currentSubtitleCaptions$;q(i,$i,oe=>t(57,Ee=oe));let xt=Te.state.duration$;q(i,xt,oe=>t(58,ne=oe));let fn=Te.state.graphIsOpened$;q(i,fn,oe=>t(131,ue=oe));let Ei=Te.ui.playerSize;q(i,Ei,oe=>t(34,m=oe));let dn=Te.ui.is3DVideo;q(i,dn,oe=>t(53,j=oe));let mn=Te.ui.icon3DVideoVisible;q(i,mn,oe=>t(54,A=oe));let pn=Te.ui.rotateAlpha;q(i,pn,oe=>t(35,I=oe));let Ni=Te.state.isInteractive,Ki=Te.state.isInteractiveTime$;q(i,Ki,oe=>t(126,V=oe));let ai=Te.state.isInteractiveExpectation$;q(i,ai,oe=>t(130,J=oe));let en=Te.state.hasInteractiveBranches,ji=Te.ui.controls.disabledControls$;q(i,ji,oe=>t(52,z=oe));let Di=Te.ui.touched;q(i,Di,oe=>t(129,W=oe));let In=Te.ui.overlayContainer$,gi=Te.state.loadedMetadata$;q(i,gi,oe=>t(147,s=oe));let Oi=Te.actions.internal.closeSettingsMenu,Fi=(eo=Te.callbacks)==null?void 0:eo.onDisabledPlayPrevChapterClick,_n=(fo=Te.callbacks)==null?void 0:fo.onDisabledSeekToInteractiveClick,Ai,Hi,Mi,Dt,oi,fi,qi,hn,lt,Ui=Ne(!1);q(i,Ui,oe=>t(49,y=oe));let di,zi=!1,Gi,Yi=!1,Ge,Un=!0,gn,bn,tn=!1,nn;zt==null||zt.setContext(ts());let on=oe=>{clearTimeout(fi),oe&&(ki.set(!0),ni.set(!0),fi=window.setTimeout(()=>{ni.set(!1)},Se.controls.collapseMobileUnmute),Ni||bi(Se.controls.hideTimeoutMobile))};Te.setUiCallbacks({onStarted:on});let rn=()=>{window.clearTimeout(oi),t(117,zi=!1),g&&qt.set(!1)},bi=oe=>{rn(),t(117,zi=!0),oi=window.setTimeout(()=>t(117,zi=!1),oe);let Ct=oe-100;di=window.setTimeout(()=>{y&&Ui.set(!1)},Ct>0?Ct:oe)},Pn=dn.subscribe(oe=>{mn.set(oe),oe&&(window.clearTimeout(qi),qi=window.setTimeout(()=>mn.set(!1),Se.controls.hide360IconTimeout))}),vn=()=>mt(this,null,function*(){var Ct,un,Li,Kn;let oe=No();if(oe){let ie=rs(),to=En(),wo=Ql.isSamsungBrowser&&ie===yt;oe=ie===to||wo}if(oe){bi(Se.controls.hideTimeoutFullscreen);try{yield zt==null?void 0:zt.remove()}catch(ie){Qt({message:String(ie)})}try{let ie=h!=null&&h.width&&(h!=null&&h.height)?h:m;yield xd(ie)}catch(ie){Qt({message:String(ie)})}}$t.set(oe),Te.getAdmanWrapper().setFullscreen(oe),c?(un=(Ct=Te.callbacks)==null?void 0:Ct.onFullscreenEnter)==null||un.call(Ct):(Kn=(Li=Te.callbacks)==null?void 0:Li.onFullscreenExit)==null||Kn.call(Li)}),zn=oe=>{let Ct=oe;Ei.set({width:Ct.target.width,height:Ct.target.height})};Ft(()=>{var Ct;return xs(vn),Se.features.annotationsInside&&(Si==null||Si.init(Ai)),ar(zt)&&(zt==null||zt.assignPlayerContainer(Ai),zt==null||zt.registryExternalEventHandlers({resize:zn})),t(43,Un=!Ql.isIphoneOrOldIpad),qe&&((Ct=Pe.parentElement)==null||Ct.insertBefore(qe,Pe.nextSibling)),()=>{window.clearTimeout(oi),window.clearTimeout(di),window.clearTimeout(fi),window.clearTimeout(qi),Pn(),zt==null||zt.dispose(),Ks(vn)}});let sn=!0,yn=!0,wn=oe=>{let Ct=l+(oe==="forward"?1:-1)*Se.controls.seekStepMobile/1e3;Ct<0?(t(47,sn=!1),Ct=0):Ct>=a&&(t(48,yn=!1),Ct=a),t(119,Yi=!0),Pt(Ct)},En=()=>{let oe=Ql.isIOS||Se.features.fullscreenInternalTargetPlayerContainer||!It?Ai:It,Ct=oe.getRootNode(),un=Ct instanceof ShadowRoot?Ct.host:Ct,Li=Ye instanceof HTMLElement&&Ye.contains(un);return Se.allowChangingFullscreenTarget&&Ye&&Li?Ye:oe},An=()=>mt(this,null,function*(){if(No())yield Ws(document),Qt({message:"exit fullscreen"});else{if(Qt({message:"request fullscreen"}),Ql.isIOS&&!s)return;yield zs(En())}}),ln=()=>{Oi()},Mn=()=>{if(o){ln();return}if(!Gt){et(),bi(Se.controls.hideTimeoutCursor);return}t(119,Yi=!1),r?rn():bi(Se.controls.hideTimeoutMobile)},an=()=>{if(o){ln();return}},ao=()=>{Di.set(!0)},uo=()=>{Ni||(Ui.set(!0),bi(Se.controls.hideTimeoutCursor))},co=oe=>{Fi&&(Fi(oe),bi(Se.controls.hideTimeoutMobile))},mi=oe=>{_n&&(_n(oe),bi(Se.controls.hideTimeoutMobile))};function Wn(oe){be[oe?"unshift":"push"](()=>{Pe=oe,t(0,Pe)})}let Zn=()=>wn("backward"),Xn=()=>wn("forward");function xn(oe){Hi=oe,t(40,Hi)}function Jn(oe){Mi=oe,t(41,Mi)}function Qi(oe){Dt=oe,t(28,Dt)}function kn(oe){be[oe?"unshift":"push"](()=>{lt=oe,t(29,lt)})}function $n(oe){be[oe?"unshift":"push"](()=>{Ai=oe,t(39,Ai)})}return i.$$set=oe=>{"store"in oe&&t(109,Te=oe.store),"uiConfig"in oe&&t(1,Se=oe.uiConfig),"thumbUrl"in oe&&t(2,rt=oe.thumbUrl),"videoContainer"in oe&&t(0,Pe=oe.videoContainer),"interactiveContainer"in oe&&t(110,qe=oe.interactiveContainer),"live"in oe&&t(3,te=oe.live),"autoplay"in oe&&t(4,_e=oe.autoplay),"canRewindLive"in oe&&t(5,Ce=oe.canRewindLive),"showAds"in oe&&t(6,xe=oe.showAds),"adsSlotId"in oe&&t(7,ot=oe.adsSlotId),"adsParams"in oe&&t(8,at=oe.adsParams),"adsPreviewParam"in oe&&t(9,st=oe.adsPreviewParam),"duration"in oe&&t(10,Je=oe.duration),"logoClickable"in oe&&t(11,fe=oe.logoClickable),"logoHidden"in oe&&t(12,Ze=oe.logoHidden),"logoTargetUrl"in oe&&t(13,Me=oe.logoTargetUrl),"showNextPrevButtons"in oe&&t(14,De=oe.showNextPrevButtons),"nextButtonActive"in oe&&t(15,Qe=oe.nextButtonActive),"prevButtonActive"in oe&&t(16,He=oe.prevButtonActive),"endScreenVideoTitle"in oe&&t(17,ct=oe.endScreenVideoTitle),"endScreenVideoThumb"in oe&&t(18,ft=oe.endScreenVideoThumb),"isOneVideoPlaylist"in oe&&t(19,he=oe.isOneVideoPlaylist),"supportLink"in oe&&t(20,pt=oe.supportLink),"shadowRootContainer"in oe&&t(111,yt=oe.shadowRootContainer),"outerContainerRef"in oe&&t(112,It=oe.outerContainerRef),"showMiniTimer"in oe&&t(113,kt=oe.showMiniTimer),"fullScreenTarget"in oe&&t(114,Ye=oe.fullScreenTarget),"playerStarted"in oe&&t(21,Gt=oe.playerStarted),"showEndScreen"in oe&&t(115,ii=oe.showEndScreen),"playNextVideo"in oe&&t(22,Kt=oe.playNextVideo),"playPrevVideo"in oe&&t(23,Ht=oe.playPrevVideo),"repeatPlaylist"in oe&&t(24,Yt=oe.repeatPlaylist),"seekToInteractive"in oe&&t(25,Nt=oe.seekToInteractive),"playPrevChapter"in oe&&t(26,We=oe.playPrevChapter),"firstStart"in oe&&t(27,et=oe.firstStart),"seekTime"in oe&&t(116,Pt=oe.seekTime)},i.$$.update=()=>{i.$$.dirty[1]&96|i.$$.dirty[4]&1536&&t(42,hn=(D==="video"&&X||D==="ads"&&ee==="inactive")&&!S),i.$$.dirty[0]&536870912&&In.set(lt),i.$$.dirty[4]&256&&t(118,Gi=Q!==v8.PLAYING),i.$$.dirty[3]&50331648|i.$$.dirty[4]&201&&t(120,Ge=ue||g||!zi&&(v&&!!en||Gi&&J)),i.$$.dirty[0]&1073741824|i.$$.dirty[1]&224|i.$$.dirty[3]&251658240|i.$$.dirty[4]&10&&jt.set((Gi||v||o||C||L||zi&&!Yi)&&!Ge&&D==="video"&&!S),i.$$.dirty[0]&2|i.$$.dirty[1]&97|i.$$.dirty[3]&1048576|i.$$.dirty[4]&32&&t(44,gn=Se.features.thumbTimer&&kt&&D==="video"&&!r&&!S&&!Ni&&(Se.hideThumbTimerAfterTouch&&!W||!Se.hideThumbTimerAfterTouch)),i.$$.dirty[0]&64|i.$$.dirty[1]&32|i.$$.dirty[3]&4194304|i.$$.dirty[4]&24&&t(45,bn=ii&&(xe&&E||!xe)&&v&&!S),i.$$.dirty[0]&2|i.$$.dirty[3]&268435456|i.$$.dirty[4]&6&&(!C&&tn&&!V&&bi(Se.controls.hideTimeoutMobile),t(121,tn=C)),i.$$.dirty[0]&1|i.$$.dirty[1]&24&&t(46,nn=Pe&&I%180?m.height/m.width:1),i.$$.dirty[1]&6|i.$$.dirty[3]&1073741824&&(t(47,sn=l>0),t(48,yn=!u&&l<a)),i.$$.dirty[0]&1342177280|i.$$.dirty[3]&536870912&&vo(Dt,o,n)},[Pe,Se,rt,te,_e,Ce,xe,ot,at,st,Je,fe,Ze,Me,De,Qe,He,ct,ft,he,pt,Gt,Kt,Ht,Yt,Nt,We,et,Dt,lt,o,r,a,l,m,I,S,D,L,Ai,Hi,Mi,hn,Un,gn,bn,nn,sn,yn,y,x,ce,z,j,A,de,$,Ee,ne,ae,Ie,Wt,pe,Zt,Xt,Jt,Vt,$t,jt,qt,xi,_i,Ti,Ii,Ut,Ri,Rt,ci,wi,Bi,Ae,it,Mt,Ci,Pi,hi,$i,xt,fn,Ei,dn,mn,pn,Ni,Ki,ai,ji,Di,gi,Ui,wn,An,ln,Mn,an,ao,uo,co,mi,Te,qe,yt,It,kt,Ye,ii,Pt,zi,Gi,Yi,Ge,tn,n,u,g,C,V,v,E,W,J,ue,Q,ee,X,Wn,Zn,Xn,xn,Jn,Qi,kn,$n]}var Mf=class extends H{constructor(e){super(),U(this,e,k8,w8,F,{store:109,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:110,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,shadowRootContainer:111,outerContainerRef:112,showMiniTimer:113,fullScreenTarget:114,playerStarted:21,showEndScreen:115,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,playPrevChapter:26,firstStart:27,seekTime:116},y8,[-1,-1,-1,-1,-1,-1])}},z_=Mf;function P8(i){ge(i,"svelte-zbipwr",`.root.svelte-zbipwr{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0, 0, 0, 0.40);--white-alpha-24:rgba(255, 255, 255, 0.24);--white-alpha-72:rgba(255, 255, 255, 0.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left:4px;--focused:var(--white);--focused-element-shadow:inset 0 0 0 2px var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0, 0, 0, 0.5);--big-play-hover-bg-color:rgba(0, 0, 0, 0.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:rgba(92, 156, 230, 1);--slider-height:5px;--slider-video-episode-gap:1.5px;--slider-radius:calc(var(--slider-height) / 2);--slider-handle-size:13px;--slider-bg:rgba(255, 255, 255, 0.4);--slider-loaded-bg:rgba(255, 255, 255, 0.4);--slider-filled-bg:var(--white);--slider-filled-active-live-bg:var(--red);--slider-filled-ads:rgba(103, 165, 235, 1);--slider-disabled-color:rgba(248, 248, 248, 0.31);--controls-gradient:linear-gradient(
|
|
35
35
|
180deg,
|
|
36
36
|
rgba(0, 0, 0, 0.00) 0%,
|
|
37
37
|
rgba(0, 0, 0, 0.01) 6.67%,
|
|
@@ -49,5 +49,5 @@ var G_=Object.defineProperty,Y_=Object.defineProperties;var Q_=Object.getOwnProp
|
|
|
49
49
|
rgba(0, 0, 0, 0.96) 86.67%,
|
|
50
50
|
rgba(0, 0, 0, 0.99) 93.33%,
|
|
51
51
|
#000 100%
|
|
52
|
-
);--timeline-preview-shadow:rgba(0, 0, 0, 0.08);--timeline-preview-bg:rgba(34, 34, 34, 1);--settings-bg:rgba(0, 0, 0, 0.72);--settings-item-bg-hover:rgba(255, 255, 255, 0.08);--settings-radius:8px;--mobile-settings-bg:#2C2D2E;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--settings-menu-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;background:var(--black)}*{-webkit-tap-highlight-color:transparent}button{border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}svg:not(.interactiveContainer svg){pointer-events:none}*:focus, *:focus-visible{outline:none}*:focus-visible{box-shadow:var(--focused-element-shadow)}.hidden{visibility:hidden;opacity:0}.overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index)}.out-of-view{position:absolute !important;left:-1000vh !important}.icon.icon-error-stub{display:flex;justify-content:center;align-items:center}`)}function h8(i){let e,t,n;function o(s){i[62](s)}let r={store:i[0],uiConfig:i[35],title:i[1],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[36],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],playPrevChapter:i[30],firstStart:i[38],showEndScreen:i[31]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new c_({props:r}),ge.push(()=>ze(e,"videoContainer",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&1&&(l.store=s[0]),a[0]&2&&(l.title=s[1]),a[0]&4&&(l.thumbUrl=s[2]),a[0]&8&&(l.interactiveContainer=s[3]),a[0]&16&&(l.live=s[4]),a[0]&32&&(l.autoplay=s[5]),a[0]&64&&(l.canRewindLive=s[6]),a[0]&128&&(l.showAds=s[7]),a[0]&256&&(l.adsSlotId=s[8]),a[0]&512&&(l.adsParams=s[9]),a[0]&1024&&(l.adsPreviewParam=s[10]),a[0]&2048&&(l.duration=s[11]),a[0]&4096&&(l.logoClickable=s[12]),a[0]&8192&&(l.logoHidden=s[13]),a[0]&32768&&(l.showNextPrevButtons=s[15]),a[0]&65536&&(l.nextButtonActive=s[16]),a[0]&131072&&(l.prevButtonActive=s[17]),a[0]&262144&&(l.endScreenVideoTitle=s[18]),a[0]&524288&&(l.endScreenVideoThumb=s[19]),a[0]&1048576&&(l.isOneVideoPlaylist=s[20]),a[0]&2097152&&(l.supportLink=s[21]),a[0]&4194304&&(l.shadowRootContainer=s[22]),a[0]&8388608&&(l.outerContainerRef=s[23]),a[0]&16777216&&(l.fullScreenTarget=s[24]),a[0]&33554432&&(l.showMiniTimer=s[25]),a[1]&8&&(l.playerStarted=s[34]),a[0]&67108864&&(l.playNextVideo=s[26]),a[0]&134217728&&(l.playPrevVideo=s[27]),a[0]&268435456&&(l.repeatPlaylist=s[28]),a[0]&536870912&&(l.seekToInteractive=s[29]),a[0]&1073741824&&(l.playPrevChapter=s[30]),a[1]&1&&(l.showEndScreen=s[31]),!t&&a[1]&4&&(t=!0,l.videoContainer=s[33],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function g8(i){let e,t,n;function o(s){i[61](s)}let r={store:i[0],uiConfig:i[35],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[36],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],playPrevChapter:i[30],firstStart:i[38],seekTime:i[32],showEndScreen:i[31]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new L_({props:r}),ge.push(()=>ze(e,"videoContainer",o)),{c(){B(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&1&&(l.store=s[0]),a[0]&4&&(l.thumbUrl=s[2]),a[0]&8&&(l.interactiveContainer=s[3]),a[0]&16&&(l.live=s[4]),a[0]&32&&(l.autoplay=s[5]),a[0]&64&&(l.canRewindLive=s[6]),a[0]&128&&(l.showAds=s[7]),a[0]&256&&(l.adsSlotId=s[8]),a[0]&512&&(l.adsParams=s[9]),a[0]&1024&&(l.adsPreviewParam=s[10]),a[0]&2048&&(l.duration=s[11]),a[0]&4096&&(l.logoClickable=s[12]),a[0]&8192&&(l.logoHidden=s[13]),a[0]&32768&&(l.showNextPrevButtons=s[15]),a[0]&65536&&(l.nextButtonActive=s[16]),a[0]&131072&&(l.prevButtonActive=s[17]),a[0]&262144&&(l.endScreenVideoTitle=s[18]),a[0]&524288&&(l.endScreenVideoThumb=s[19]),a[0]&1048576&&(l.isOneVideoPlaylist=s[20]),a[0]&2097152&&(l.supportLink=s[21]),a[0]&4194304&&(l.shadowRootContainer=s[22]),a[0]&8388608&&(l.outerContainerRef=s[23]),a[0]&16777216&&(l.fullScreenTarget=s[24]),a[0]&33554432&&(l.showMiniTimer=s[25]),a[1]&8&&(l.playerStarted=s[34]),a[0]&67108864&&(l.playNextVideo=s[26]),a[0]&134217728&&(l.playPrevVideo=s[27]),a[0]&268435456&&(l.repeatPlaylist=s[28]),a[0]&536870912&&(l.seekToInteractive=s[29]),a[0]&1073741824&&(l.playPrevChapter=s[30]),a[1]&1&&(l.showEndScreen=s[31]),!t&&a[1]&4&&(t=!0,l.videoContainer=s[33],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function b8(i){let e,t,n,o,r=[g8,h8],s=[];function a(l,u){return l[14]?0:1}return t=a(i,[-1,-1,-1]),n=s[t]=r[t](i),{c(){e=I("div"),n.c(),f(e,"class","root svelte-w727va")},m(l,u){w(l,e,u),s[t].m(e,null),o=!0},p(l,u){let c=t;t=a(l,u),t===c?s[t].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),n=s[t],n?n.p(l,u):(n=s[t]=r[t](l),n.c()),d(n,1),n.m(e,null))},i(l){o||(d(n),o=!0)},o(l){p(n),o=!1},d(l){l&&y(e),s[t].d()}}}function v8(i,e,t){let n,{sources:o}=e,{store:r}=e,{microStoresRoot:s}=e,{videoConfig:a}=e,{uiConfig:l}=e,{title:u}=e,{thumbUrl:c}=e,{interactiveContainer:m}=e,{interactiveController:h}=e,{subtitles:C}=e,{live:g}=e,{preload:T}=e,{autoplay:k}=e,{volume:H=void 0}=e,{muted:S=void 0}=e,{fromTime:v}=e,{canRewindLive:E}=e,{showAds:q}=e,{adsSlotId:U=void 0}=e,{adsParams:F=void 0}=e,{adsPreviewParam:ie=void 0}=e,{duration:fe=void 0}=e,{logoClickable:G}=e,{logoHidden:J}=e,{isMobile:Q}=e,{showNextPrevButtons:W=!1}=e,{nextButtonActive:ce=!1}=e,{prevButtonActive:z=!1}=e,{endScreenVideoTitle:x=void 0}=e,{endScreenVideoThumb:P=void 0}=e,{isOneVideoPlaylist:$=!1}=e,{supportLink:le}=e,{shadowRootContainer:Me=void 0}=e,{outerContainerRef:te=void 0}=e,{fullScreenTarget:be=void 0}=e,{failoverHosts:Ee=void 0}=e,{showMiniTimer:Te=!1}=e,{saveRate:Ie}=e,{playNextVideo:rt=as}=e,{playPrevVideo:Ae=as}=e,{repeatPlaylist:We=as}=e,{seekToInteractive:ee=as}=e,{playPrevChapter:pe=as}=e,{volumeMultiplier:Ce}=e,{showEndScreen:xe=!0}=e,{subscribers:st,stores:at}=s;Gf(l);let nt=Vt(),$e=l.logoLink,de=r.ui.debugPanelVisible,Se=r.ui.playerSize,et=r.state.isLive$;O(i,et,_e=>t(64,n=_e));let tt=r.state.isInteractive&&m8.isAndroid,Fe,ft=null,dt=!1;r.getAdmanWrapper().init({switchFromAdsToVideo:r.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:r.actions.internal.switchFromVideoToAds,setMuted:r.actions.external.setMuted},r.ads,{isMobile:r.ui.isMobile,mobileUnmuteButtonVisible:r.ui.mobileUnmuteButtonVisible,vsid:r.vsid}),nd(r,at);let he=(_e=!1)=>{t(34,dt=!0),_e?r.actions.external.firstStart(q):r.actions.internal.firstStart(q)};function _t(_e){var oi;let Jt=o||_e;Jt&&r.initVideo({container:Fe,sources:Jt,failoverHosts:Ee,subtitles:C,volumeMultiplier:Ce});let Et=f8.get(Jr)==="true";de.set(Et),v>0&&r.actions.external.seekTime(v);let ii=Q?nt.volumeDefault:(oi=H!=null?H:Es())!=null?oi:nt.volumeDefault,Rt=S!=null?S:vd();if(r.actions.external.setVolume(ii),r.actions.external.setMuted(Rt),r.getAdmanWrapper().setInitialVolume(Rt?0:ii),nt.features.trafficSaving){let Bt=wd();Bt&&r.actions.internal.setTrafficSavingEnabled(Bt)}if(nt.features.saveRate&&Ie){let Bt=Sd();Bt&&!n&&r.actions.internal.setPlaybackRate(Bt)}if(nt.features.autoplayNext){let Bt=Id();Bt&&r.actions.internal.setAutoplayNextEnabled(Bt)}let jt=bd(r.videoId);jt&&r.actions.internal.setQuality(jt),r.ui.isAutoplay.set(k),k?he():T&&nt.features.preload&&r.actions.internal.preload()}let kt=_e=>{if(window.ResizeObserver){let Jt,Et;ft=new ResizeObserver(d8(ii=>{let Rt=ii[0];if(Rt){if(Rt.contentBoxSize){let jt=Array.isArray(Rt.contentBoxSize)?Rt.contentBoxSize[0]:Rt.contentBoxSize;Jt=jt.inlineSize,Et=jt.blockSize}else Rt.contentRect&&(Jt=Rt.contentRect.width,Et=Rt.contentRect.height);Se.set({width:Jt,height:Et})}},300)),ft.observe(_e)}Se.set({width:_e.clientWidth,height:_e.clientHeight})},Ct=()=>{document.hidden&&r.actions.external.stop()};Lt(()=>{tt&&document.addEventListener("visibilitychange",Ct),kt(Fe);let _e=st.map(Et=>Et.init({store:r,microStores:at,config:a,interactiveController:h}));if((g==null?void 0:g.status)==="upcoming"){r.actions.internal.setLiveWaitingStart(!0);return}if((g==null?void 0:g.status)==="waiting"){r.actions.internal.setLiveWaitingRecover(!0);return}if(((g==null?void 0:g.status)==="finished"||(g==null?void 0:g.status)==="postlive")&&!Object.keys(o||[]).length){r.actions.internal.setLiveWaitingRecord(!0);return}return _t(),()=>{tt&&document.removeEventListener("visibilitychange",Ct),ft==null||ft.disconnect(),_e.forEach(Et=>Et.unsubscribe()),r.destroy()}});function Ze(){dt?r.actions.external.play():he(!0)}function Pt(){r.actions.external.pause()}function qt(_e){Q||r.actions.external.setMuted(_e)}function Zt(_e){Q||_e>=0&&_e<=1&&r.actions.external.setVolume(_e)}function Ut(_e){r.actions.internal.seekTime(_e,p8.UNKNOWN)}function zt(_e){r.actions.external.seekEpisodeStartTime(_e)}function Xt(){r.actions.external.returnFocusToEpisodes()}function Wt(_e){r.actions.external.setPlaybackRate(_e)}function Ke(_e){r.actions.external.setAutoQualityLimits(_e)}function Xe(_e){Fe=_e,t(33,Fe)}function Tt(_e){Fe=_e,t(33,Fe)}return i.$$set=_e=>{"sources"in _e&&t(39,o=_e.sources),"store"in _e&&t(0,r=_e.store),"microStoresRoot"in _e&&t(40,s=_e.microStoresRoot),"videoConfig"in _e&&t(41,a=_e.videoConfig),"uiConfig"in _e&&t(42,l=_e.uiConfig),"title"in _e&&t(1,u=_e.title),"thumbUrl"in _e&&t(2,c=_e.thumbUrl),"interactiveContainer"in _e&&t(3,m=_e.interactiveContainer),"interactiveController"in _e&&t(43,h=_e.interactiveController),"subtitles"in _e&&t(44,C=_e.subtitles),"live"in _e&&t(4,g=_e.live),"preload"in _e&&t(45,T=_e.preload),"autoplay"in _e&&t(5,k=_e.autoplay),"volume"in _e&&t(46,H=_e.volume),"muted"in _e&&t(47,S=_e.muted),"fromTime"in _e&&t(48,v=_e.fromTime),"canRewindLive"in _e&&t(6,E=_e.canRewindLive),"showAds"in _e&&t(7,q=_e.showAds),"adsSlotId"in _e&&t(8,U=_e.adsSlotId),"adsParams"in _e&&t(9,F=_e.adsParams),"adsPreviewParam"in _e&&t(10,ie=_e.adsPreviewParam),"duration"in _e&&t(11,fe=_e.duration),"logoClickable"in _e&&t(12,G=_e.logoClickable),"logoHidden"in _e&&t(13,J=_e.logoHidden),"isMobile"in _e&&t(14,Q=_e.isMobile),"showNextPrevButtons"in _e&&t(15,W=_e.showNextPrevButtons),"nextButtonActive"in _e&&t(16,ce=_e.nextButtonActive),"prevButtonActive"in _e&&t(17,z=_e.prevButtonActive),"endScreenVideoTitle"in _e&&t(18,x=_e.endScreenVideoTitle),"endScreenVideoThumb"in _e&&t(19,P=_e.endScreenVideoThumb),"isOneVideoPlaylist"in _e&&t(20,$=_e.isOneVideoPlaylist),"supportLink"in _e&&t(21,le=_e.supportLink),"shadowRootContainer"in _e&&t(22,Me=_e.shadowRootContainer),"outerContainerRef"in _e&&t(23,te=_e.outerContainerRef),"fullScreenTarget"in _e&&t(24,be=_e.fullScreenTarget),"failoverHosts"in _e&&t(49,Ee=_e.failoverHosts),"showMiniTimer"in _e&&t(25,Te=_e.showMiniTimer),"saveRate"in _e&&t(50,Ie=_e.saveRate),"playNextVideo"in _e&&t(26,rt=_e.playNextVideo),"playPrevVideo"in _e&&t(27,Ae=_e.playPrevVideo),"repeatPlaylist"in _e&&t(28,We=_e.repeatPlaylist),"seekToInteractive"in _e&&t(29,ee=_e.seekToInteractive),"playPrevChapter"in _e&&t(30,pe=_e.playPrevChapter),"volumeMultiplier"in _e&&t(51,Ce=_e.volumeMultiplier),"showEndScreen"in _e&&t(31,xe=_e.showEndScreen)},i.$$.update=()=>{i.$$.dirty[0]&16385&&r.ui.isMobile.set(Q)},[r,u,c,m,g,k,E,q,U,F,ie,fe,G,J,Q,W,ce,z,x,P,$,le,Me,te,be,Te,rt,Ae,We,ee,pe,xe,Ut,Fe,dt,nt,$e,et,he,o,s,a,l,h,C,T,H,S,v,Ee,Ie,Ce,_t,Ze,Pt,qt,Zt,zt,Xt,Wt,Ke,Xe,Tt]}var kf=class extends N{constructor(e){super(),D(this,e,v8,b8,R,{sources:39,store:0,microStoresRoot:40,videoConfig:41,uiConfig:42,title:1,thumbUrl:2,interactiveContainer:3,interactiveController:43,subtitles:44,live:4,preload:45,autoplay:5,volume:46,muted:47,fromTime:48,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,isMobile:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:22,outerContainerRef:23,fullScreenTarget:24,failoverHosts:49,showMiniTimer:25,saveRate:50,playNextVideo:26,playPrevVideo:27,repeatPlaylist:28,seekToInteractive:29,playPrevChapter:30,volumeMultiplier:51,showEndScreen:31,initVideo:52,play:53,pause:54,setMuted:55,setVolume:56,seekTime:32,seekEpisodeStartTime:57,returnFocusToEpisodes:58,setPlaybackRate:59,setAutoQualityLimits:60},_8,[-1,-1,-1])}get initVideo(){return this.$$.ctx[52]}get play(){return this.$$.ctx[53]}get pause(){return this.$$.ctx[54]}get setMuted(){return this.$$.ctx[55]}get setVolume(){return this.$$.ctx[56]}get seekTime(){return this.$$.ctx[32]}get seekEpisodeStartTime(){return this.$$.ctx[57]}get returnFocusToEpisodes(){return this.$$.ctx[58]}get setPlaybackRate(){return this.$$.ctx[59]}get setAutoQualityLimits(){return this.$$.ctx[60]}},V_=kf;function y8(i){let e,t,n,o=i[2].default,r=Ve(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","currentColor"),f(t,"d","M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Be(r,o,l,l[1],n?Re(o,l[1],u,null):Ne(l[1]),null),we(e,a=qe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function w8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Cf=class extends N{constructor(e){super(),D(this,e,w8,y8,R,{})}},R_=Cf;function k8(i){let e,t;return e=new R_({props:{style:i[0]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function C8(i,e,t){let n,{isWhite:o=!1}=e;return i.$$set=r=>{"isWhite"in r&&t(1,o=r.isWhite)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var Sf=class extends N{constructor(e){super(),D(this,e,C8,k8,R,{isWhite:1})}},B_=Sf;function S8(i){ve(i,"svelte-1y9fytq",".playerStub.svelte-1y9fytq{width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.title.svelte-1y9fytq{position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}")}function N_(i){let e,t;return{c(){e=I("div"),t=He(i[0]),f(e,"class","title svelte-1y9fytq")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&1&&je(t,n[0])},d(n){n&&y(e)}}}function D_(i){let e,t;return e=new B_({props:{isWhite:!!i[1]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isWhite=!!n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function T8(i){let e,t,n,o,r=i[0]&&N_(i),s=(!i[0]||!i[1])&&D_(i);return{c(){e=I("div"),r&&r.c(),t=Y(),s&&s.c(),f(e,"class","playerStub svelte-1y9fytq"),f(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,l){w(a,e,l),r&&r.m(e,null),_(e,t),s&&s.m(e,null),o=!0},p(a,[l]){a[0]?r?r.p(a,l):(r=N_(a),r.c(),r.m(e,t)):r&&(r.d(1),r=null),!a[0]||!a[1]?s?(s.p(a,l),l&3&&d(s,1)):(s=D_(a),s.c(),d(s,1),s.m(e,null)):s&&(ae(),p(s,1,1,()=>{s=null}),ue()),(!o||l&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&f(e,"style",n)},i(a){o||(d(s),o=!0)},o(a){p(s),o=!1},d(a){a&&y(e),r&&r.d(),s&&s.d()}}}function I8(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"thumbUrl"in r&&t(1,o=r.thumbUrl)},[n,o]}var Tf=class extends N{constructor(e){super(),D(this,e,I8,T8,R,{title:0,thumbUrl:1},S8)}},O_=Tf;import{cloneDeepWith as Y8,InterfaceLanguage as Q8,clientChecker as Z8,isMobile as X8,isNonNullable as Af,Logger as J8,Subscription as $8}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";import{OneStat as e7}from"@vkontakte/videoplayer-statistics";import{Logger as P8,Subscription as E8}from"@vkontakte/videoplayer-shared";var Wl=class{constructor(){this.subscription=new E8,this.logger=new P8,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:t="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:t,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",t=>null],["seekbackward",t=>null],["seekforward",t=>null]];this.setActionHandlers(e)}setActionHandlers(e){var t,n;if(this.isSupported())for(let[o,r]of e)try{(n=(t=navigator.mediaSession).setActionHandler)==null||n.call(t,o,r)}catch(s){throw new Error(`The media session action "${o}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||this.subscription.add(e.state.positionExact$.subscribe(t=>{var r,s;let n=Ye(e.state.currentPlaybackRate$),o=Ye(e.state.duration$);if(!(!isFinite(t)||!isFinite(o)))try{(s=(r=navigator.mediaSession).setPositionState)==null||s.call(r,{position:t,playbackRate:n,duration:o})}catch(a){this.log({message:`MediaSession setPositionState can't call with position: ${t} and duration: ${o}`})}}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as B8,clientChecker as N8,detectEmbed as D8}from"@vkontakte/videoplayer-shared";function A8(i){let e,t,n,o,r,s=i[2].default,a=Ve(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("g"),n=M("path"),o=M("path"),f(n,"d","m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"),f(o,"d","M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"),f(t,"fill","#fff"),we(e,u)},m(c,m){w(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Be(a,s,c,c[1],r?Re(s,c[1],m,null):Ne(c[1]),null),we(e,u=qe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&y(e),a&&a.d(c)}}}function M8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var If=class extends N{constructor(e){super(),D(this,e,M8,A8,R,{})}},F_=If;function L8(i){ve(i,"svelte-1pbsod4",".player-pip-dummy.svelte-1pbsod4{width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.player-pip-dummy.is-pip-api.svelte-1pbsod4{position:relative}.dummy-image.svelte-1pbsod4 svg{transform:scale(1.07143)}.dummy-image.desktop.svelte-1pbsod4{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.svelte-1pbsod4{font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center}")}function V8(i){let e,t,n,o,r,s,a;return n=new F_({}),{c(){e=I("div"),t=I("div"),B(n.$$.fragment),o=Y(),r=I("span"),s=He(i[0]),f(t,"class","dummy-image svelte-1pbsod4"),K(t,"desktop",!i[1]),f(r,"class","title svelte-1pbsod4"),f(e,"class","player-pip-dummy svelte-1pbsod4"),K(e,"is-pip-api",i[2])},m(l,u){w(l,e,u),_(e,t),L(n,t,null),_(e,o),_(e,r),_(r,s),a=!0},p(l,[u]){(!a||u&2)&&K(t,"desktop",!l[1]),(!a||u&1)&&je(s,l[0])},i(l){a||(d(n.$$.fragment,l),a=!0)},o(l){p(n.$$.fragment,l),a=!1},d(l){l&&y(e),V(n)}}}function R8(i,e,t){let n,o,r=ot(),s=!!r.webApi.pictureInPictureApi,a=r.interfaceLanguage$;O(i,a,c=>t(5,n=c));let l=r.ui.isMobile;O(i,l,c=>t(1,o=c));let u;return i.$$.update=()=>{i.$$.dirty&32&&t(0,u=n&&j("pip_dummy_title"))},[u,o,s,a,l,n]}var Pf=class extends N{constructor(e){super(),D(this,e,R8,V8,R,{},L8)}},H_=Pf;var O8=460,F8=280,us=class{constructor(){this.info={isActive$:new B8(!1),type:1}}isSupported(){let{isEmbed:e}=D8();return"documentPictureInPicture"in window&&!N8.isYandex&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}request(){return pt(this,null,function*(){var r,s;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:O8,height:F8,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(l=>l.cssText).join(" ")).filter(Boolean).join(`
|
|
53
|
-
`),t=document.createElement("style");t.textContent=e;let n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(t),o.append(this.playerDomElement),this.playerDummyElement=new H_({target:this.playerParentShadowRoot,context:this.svelteContext}),(r=this.pipWindow)==null||r.document.body.append(n),this.info.isActive$.next(!0),(s=this.pipWindow)==null||s.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return pt(this,null,function*(){return new Promise(e=>{var t;(t=documentPictureInPicture.window)==null||t.close(),e()})})}dispose(){return pt(this,null,function*(){yield this.remove()})}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function q_(i){return i instanceof us}var Kl=class{static getLatestSupportedVersion(){let e=new lr,t=new us;if(t.isSupported())return t;if(e.isSupported())return e}};function xl(i,e){var o,r;let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let s of t)n[s]=(r=(o=e[s])!=null?o:i[s])!=null?r:void 0;return n}var U_="Inner error. Unexpectedly root annotation container null reference exception",z_="Annotation with such name already exists",W_="Annotation with such name does not exist";var zr=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as H8,Subscription as q8,throttleFn as U8}from"@vkontakte/videoplayer-shared";var z8="1",W8=100,jl=class{constructor(){this.annotations=new Map;this.subscriptions=new q8}init(e){this.rootAnnotationsContainer=e;let t=U8(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},W8);this.subscriptions.add(H8(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},t()})),this.mutationObserver=new MutationObserver(t),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,t){var n;if(!this.rootAnnotationsContainer)throw new zr(U_);if(this.annotations.has(e))throw new zr(z_);t.style.zIndex=(n=t.style.zIndex)!=null?n:z8,t.style.position="absolute",this.rootAnnotationsContainer.append(t),this.annotations.set(e,t)}get(e){let t=this.annotations.get(e);if(!t)throw new zr(W_);return t}remove(e){let t=this.get(e);this.annotations.delete(e)&&t.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,t,n){let o=e.offsetTop,r=e.offsetLeft,s=e.offsetWidth,a=e.offsetHeight;return o<0||r<0||r+s>t||o+a>n}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as Gl,Subscription as K8}from"@vkontakte/videoplayer-shared";var Qn=class{init({store:e,microStores:t,interactiveController:n,config:o}){return Gl(e),Gl(t),Gl(o),o.interactiveData&&Gl(n),this.subscription=new K8,this.subscription}};var cs=class extends Qn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=yt(Qe({},Oe(null)),{toggle:()=>this.state$.update(t=>!t)})}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(r=>{this.state$.set(r?!0:null)})),n}};var fs=class extends Qn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=yt(Qe({},Oe(null)),{toggle:()=>this.state$.update(t=>!t)})}init(t){let n=super.init(t),{microStores:o,store:r}=t,{fakeIsPlaying$:s}=o,{isInteractiveExpectation$:a,isPlaying$:l}=r.state,{controlsVisible:u,isMobile:c}=r.ui,m=Ye(c),h=()=>m&&Ye(u);return n.add(u.subscribe(C=>{if(!m)return;let g=Ye(s);Ye(l)?this.state$.set(C):g!==null&&this.state$.set(!g||C)})),n.add(l.subscribe(C=>{this.state$.set(!C||h())})),n.add(s.subscribe(C=>{if(C===null)return;let g=Ye(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!C)})),n}};var ds=class extends Qn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Oe("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};import{combine as x8}from"@vkontakte/videoplayer-shared";var Ef=Oe(!1),Yl=null,ms=class extends Qn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=yt(Qe({},Ef),{set:(t,n=!1)=>{t!==Ye(Ef)&&(this.clearTimeout(),Ef.set(t),!t&&Yl&&(Yl=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(t){let n=super.init(t),{store:o,config:r}=t,{isInteractiveTime$:s,isPlaying$:a}=o.state,l=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(l.subscribe(m=>{Ye(s)&&m&&this.state$.set(!1)}));let c=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return n.add(x8({isPlaying$:a,isInteractiveTime$:s,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:h,interactiveTimeIndicator:C})=>{var g,T;if(!(!m||!(C!=null&&C.isDisplayed))){if(!h)return this.state$.set(!1);c.tooltipHelpHintActive&&Yl===null&&(Yl=!0,c.tooltipHelpHintActive=!1,this.state$.set(!0),(T=(g=o.callbacks)==null?void 0:g.onInteractiveTimeIndicatorHintDeactivated)==null||T.call(g))}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as j8,noop as G8}from"@vkontakte/videoplayer-shared";var ps=class extends Qn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=yt(Qe({},Oe(null)),{toggle:G8});this.checkIfShouldHide=t=>Dr(t,"s")}init(t){let n=super.init(t),{store:o,interactiveController:r}=t,s=o.ui.currentGridType$;return this.state$.toggle=()=>{if(this.checkIfShouldHide(Ye(s)))return;let a=Ye(this.state$),{isEnded$:l,playbackState$:u}=o.state,{disabledControls$:c}=o.ui.controls,m=Ye(l),h=Ye(u);a?(this.state$.set(!1),r==null||r.toggleGraphView(!1),c.remove(la),!m&&this.graphMadePause&&o.actions.internal.play()):(this.graphMadePause=h==="playing",this.state$.set(!0),r==null||r.toggleGraphView(!0),c.add(la),!m&&this.graphMadePause&&o.actions.internal.pause())},n.add(j8({graphIsOpened:this.state$,currentGridType:s}).subscribe(({graphIsOpened:a,currentGridType:l})=>{this.checkIfShouldHide(l)&&a&&(r==null||r.toggleGraphView(!1),this.state$.set(!1))})),n}};var K_=()=>[cs,fs,ds,ms,ps].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:yt(Qe({},e),{[n.stateName]:n.state$})}},{subscribers:[],stores:{}});var t7={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Q8.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:X8(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0},Ql=class extends HTMLElement{constructor(){var t;super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.createOneStat=(t,n={})=>{var v,E,q,U;let{albumId:o,statPlace:r,statUserSalt:s,statTrackCode:a,refreshStatAuthToken:l,autoplay:u,isMobile:c,refDomain:m,deviceId:h,interactiveData:C}=xl(this.videoConfig,n),g=(v=C==null?void 0:C.projectInfo)==null?void 0:v.pid,T=(q=(E=this.interactiveController)==null?void 0:E.state.isReplay$.getValue())!=null?q:!1;T&&(this.prevIsid=void 0);let{unitedVideoId:k,isClip:H=!1}=t;if(this.uiConfig.features.statistics&&k)return new e7(Qe({movieId:k,albumId:o,place:r,trackCode:a,autoplay:(U=u&&!this.interactiveController)!=null?U:!1,mobile:c,clip:H,refDomain:m,deviceId:h},g&&(!this.isInited||T)&&{projectId:Number(g)}),Qe({refreshAuthToken:l,userSalt:s,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))};this.logger=new J8,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new $8,this.graphMadePause=!1,(t=window==null?void 0:window.videoPlayerConfig)!=null&&t.debugLogs&&this.subscription.add(this.logger.log$.subscribe(n=>{console.log("%c player web component ","background:#77dd77;",`${n.component}`,n.message)}))}connectedCallback(){var o,r;if(this.isInited)return;this.initPlayerRootContainers();let t=(o=this.getAttribute("stub-title"))!=null?o:void 0,n=(r=this.getAttribute("stub-thumb-url"))!=null?r:void 0;this.svelteStubComponent=new O_({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){var t,n,o,r,s,a;(t=this.annotationsApi)==null||t.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),(o=this.svelteRootComponent)==null||o.$destroy(),(r=this.svelteStubComponent)==null||r.$destroy(),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(a=this.interactiveController)==null||a.destroy()}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(t){var o;let n=(o=this.store)==null?void 0:o.ui.controls.disabledControls$;return(n==null?void 0:n.includes(t))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){var _t,kt,Ct,Ze,Pt,qt,Zt,Ut,zt,Xt,Wt;if(!this.videoConfig)return;let{albumId:r,statPlace:s,statAuthToken:a,preload:l,autoplay:u,volume:c,muted:m,fromTime:h,canRewindLive:C,supportLink:g,showAds:T,adsSlotId:k,adsParams:H={},adsPreviewParam:S,interfaceLanguage:v,isCyrillicRelatedInterface:E,logoClickable:q,logoHidden:U,isMobile:F,isAudioDisabled:ie,isLiveCatchUpMode:fe,fullScreenTarget:G,failoverHosts:J,canDownload:Q,callbacks:W,interactiveData:ce,showThumbTimer:z,additionalButtons:x=[],additionalSettingsMenuItems:P=[],additionalContextMenuItems:$=[],repeat:le,saveRate:Me,volumeMultiplier:te,showEndScreen:be}=xl(this.videoConfig,n),{sources:Ee,title:Te,thumbUrl:Ie,unitedVideoId:rt,isClip:Ae=!1,duration:We,adsParams:ee={},videoEpisodes:pe,previewThumbsData:Ce,subtitles:xe,live:st}=t,at=Qe(Qe({},H),ee),nt=this.getNextVideoInfo(),$e={sources:Ee,title:Te,thumbUrl:Ie,subtitles:xe,unitedVideoId:rt,isClip:Ae,live:st,albumId:r,statPlace:s,autoplay:u,muted:m,volume:c,fromTime:h,canRewindLive:C,showAds:T,adsSlotId:k,adsParams:at,adsPreviewParam:S,duration:We,logoClickable:q,logoHidden:U,isMobile:F,repeat:le,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:nt.nextVideoTitle,endScreenVideoThumb:nt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},de={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify($e)}`});let Se=(_t=this.interactiveController)==null?void 0:_t.state.statistics$.getValue(),et=(Se==null?void 0:Se.oneStat)||this.createOneStat(t,n);et&&(this.statistics=new gl(et,Se==null?void 0:Se.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new sr(this.uiConfig.sentry,{version:Tr,env:Is},{movieId:rt,albumId:r,place:s,autoplay:(kt=u&&!this.interactiveController)!=null?kt:!1,mobile:F,clip:Ae}),this.interactiveController&&((Ze=this.prevIsid)!=null||(this.prevIsid=(Ct=this.statistics)==null?void 0:Ct.oneStat.isid$.getValue())),this.sentry=Qe(Qe({},this.sentry),sr.getInstance());let tt=!!ce,Fe=[],ft="tooltip_interactive_go_back_disabled_first";if(tt&&this.interactiveController){let Ke=this.interactiveController.state.isInitialChapter$.getValue(),Xe=this.interactiveController.getHistoryState();Ke&&Fe.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Fe.push("SEEK_TO_INTERACTIVE_BUTTON"),Xe.hasPrevChapter$.getValue()||(Fe.push("PLAY_PREV_CHAPTER_BUTTON"),Ke||(Xe.isGoBackLimited$.getValue()?ft="tooltip_interactive_go_back_disabled_limit":ft="tooltip_interactive_go_back_disabled"))}let dt=()=>{var Xe;this.isInited=!1,this.prevIsid=void 0;let Ke=(o==null?void 0:o.info.isEnded$.getValue())&&((Xe=this.interactiveController)==null?void 0:Xe.state.isEndChapter$.getValue());W.onReplayInteractiveVideo&&!Ke?W.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Em({player:o,interfaceLanguage:v,isCyrillicRelatedInterface:E,videoId:rt,isClip:Ae,isLiveCatchUpMode:fe,isAudioDisabled:ie,statAuthToken:a,callbacks:W,webApi:de,videoEpisodes:pe,previewThumbsData:Ce,canDownload:Q,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Fe,isInteractive:tt,saveRate:Me,interactiveRanges$:(Pt=this.interactiveController)==null?void 0:Pt.state.interactiveRanges$,isInteractiveTime$:(qt=this.interactiveController)==null?void 0:qt.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:dt,playPrevChapterDisabledTooltip:ft,hasInteractiveBranches:!!((Ut=(Zt=this.interactiveController)==null?void 0:Zt.getChapterBranches())!=null&&Ut.length),additionalButtons:this.uiConfig.features.additionalButtons?x:[],additionalSettingsMenuItems:P!=null?P:[],additionalContextMenuItems:$!=null?$:[],looped:le&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:he}=this.microStoresRoot=K_();this.subscription.add(this.store.state.currentFormat$.subscribe(Ke=>{var Xe;return(Xe=W==null?void 0:W.onCurrentFormatChanged)==null?void 0:Xe.call(W,Ke)})),this.subscription.add(he.interactiveControlsOpacity$.subscribe(Ke=>{var Xe;Ke!==null&&((Xe=this==null?void 0:this.interactiveController)==null||Xe.setDisabledControls(Ke))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Ke=>{var Xe;return(Xe=W==null?void 0:W.onThroughputEstimationChanged)==null?void 0:Xe.call(W,Ke)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Ke=>{var Xe;return(Xe=W==null?void 0:W.onTrafficSavingEnabledChanged)==null?void 0:Xe.call(W,Ke)})),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ke=>{var Xe;return(Xe=W==null?void 0:W.onCurrentPlaybackRateChanged)==null?void 0:Xe.call(W,Ke)})),this.subscription.add(this.store.state.volume$.subscribe(Ke=>{var Xe;return(Xe=W==null?void 0:W.onVolumeChange)==null?void 0:Xe.call(W,Ke)})),this.subscription.add(this.store.state.muted$.subscribe(Ke=>{var Xe,Tt;return Ke?(Xe=W==null?void 0:W.onMute)==null?void 0:Xe.call(W):(Tt=W==null?void 0:W.onUnmute)==null?void 0:Tt.call(W)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Ke=>{var Xe;return(Xe=W==null?void 0:W.onVideoBitrateChanged)==null?void 0:Xe.call(W,Ke)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Ke=>{var Tt;let Xe=(Tt=this.store)==null?void 0:Tt.ui.controls.disabledControls$;Xe&&(Ke&&!Xe.includes($r)&&Xe.add($r),Ke||Xe.remove($r))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(Ke=>pt(this,null,function*(){var Tt;if(!Z8.isSamsungBrowser||!Ke||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((Tt=this.videoConfig)==null?void 0:Tt.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Ke=>{var Xe;return(Xe=W==null?void 0:W.onVSIDChanged)==null?void 0:Xe.call(W,Ke)})),this.initMediaSession(),this.svelteRootComponent=new V_({target:this.playerContainer,props:{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ee,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Te,thumbUrl:Ie,subtitles:xe,live:st,preload:l,autoplay:u,muted:m,volume:c,fromTime:h,canRewindLive:C,supportLink:g,showAds:T,adsSlotId:k,adsParams:at,adsPreviewParam:S,duration:We,logoClickable:q,logoHidden:U,isMobile:F,failoverHosts:J,fullScreenTarget:G,saveRate:Me,shadowRootContainer:this.shadowRootContainer,showMiniTimer:z,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:nt.nextVideoTitle,endScreenVideoThumb:nt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:te,showEndScreen:be}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Wt=(Xt=(zt=this.videoConfig)==null?void 0:zt.callbacks)==null?void 0:Xt.onInited)==null||Wt.call(Xt))}addPlayerInfoSubscriptions(){var r;let t=this.store;if(!t)return;let n=(r=this.videoConfig)==null?void 0:r.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(s=>{var a;return(a=n.onPlayerPhaseChanged)==null?void 0:a.call(n,s)})).add(t.state.playbackState$.subscribe(s=>{var a;return(a=n.onPlaybackStateChanged)==null?void 0:a.call(n,s)})).add(t.state.isLive$.subscribe(s=>{var a;return(a=n.onIsLiveChanged)==null?void 0:a.call(n,s)})).add(t.state.isActiveLive$.subscribe(s=>{var a;return(a=n.onIsActiveLiveChanged)==null?void 0:a.call(n,s)})).add(t.state.isAudioAvailable$.subscribe(s=>{var a;return(a=n.onIsAudioAvailableChanged)==null?void 0:a.call(n,s)})).add(t.state.currentQuality$.subscribe(s=>{var a;return(a=n.onCurrentQualityChanged)==null?void 0:a.call(n,s)})).add(t.state.availableQualities$.subscribe(s=>{var a;return(a=n.onAvailableQualitiesChanged)==null?void 0:a.call(n,s.map(({value:l})=>l).filter(l=>l!=="auto"))})).add(t.state.availableAudioStreams$.subscribe(s=>{s.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(t.ui.isPictureInPictureActive$.subscribe(s=>{var a,l;return s?(a=n.onPiPEnter)==null?void 0:a.call(n):(l=n.onPiPExit)==null?void 0:l.call(n)}));let o=n==null?void 0:n.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(s=>{var a;return(a=o.onControlsVisibleChanged)==null?void 0:a.call(o,s)})).add(t.ui.isMobile.subscribe(s=>{var a;return(a=o.onIsMobileChanged)==null?void 0:a.call(o,s)})).add(t.ui.playerSize.subscribe(s=>{var a;return(a=o.onPlayerSizeChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.prevButton.subscribe(s=>{var a;return(a=o.onPrevButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.playButton.subscribe(s=>{var a;return(a=o.onPlayButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.replayButton.subscribe(s=>{var a;return(a=o.onReplayButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.nextButton.subscribe(s=>{var a;return(a=o.onNextButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.playPrevChapterButton.subscribe(s=>{var a;return(a=o.onPlayPrevChapterChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.seekToInteractiveButton.subscribe(s=>{var a;return(a=o.onSeekToInteractiveButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.interactiveGraphButton.subscribe(s=>{var a;return(a=o.onGraphButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.liveButton.subscribe(s=>{var a;return(a=o.onLiveButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.time.subscribe(s=>{var a;return(a=o.onTimeUpdateChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.episodes.subscribe(s=>{var a;return(a=o.onEpisodesChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.subtitles.subscribe(s=>{var a;return(a=o.onSubtitlesChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.settings.subscribe(s=>{var a;return(a=o.onSettingsChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.fullscreen.subscribe(s=>{var a;return(a=o.onFullscreenChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.chromecast.subscribe(s=>{var a;return(a=o.onChromecastChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.pip.subscribe(s=>{var a;return(a=o.onPipChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.vkLogo.subscribe(s=>{var a;return(a=o.onVkLogoChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.interactiveTimeIndicator.subscribe(s=>{var a;return(a=o.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.timeline.subscribe(s=>{var a;return(a=o.onTimelineChanged)==null?void 0:a.call(o,s)}))}playNextVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch(o){this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch(o){this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){var r;if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&Af(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){var t;(t=this.interactiveController)==null||t.playPrevChapter()}seekToInteractive(){var n;let t=(n=this.interactiveController)==null?void 0:n.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}initInteractives(){return pt(this,null,function*(){var t,n,o,r;if((t=this.videoConfig)!=null&&t.interactiveData)try{let{Interactives:s,EVENT_NAMES:a,CustomError:l}=yield import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let u=(n=this.store)==null?void 0:n.interfaceLanguage$,c=u?Ye(u):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:h,historyApi:C,videoLoader:g}=this.videoConfig.interactiveData;this.interactiveController=new s({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:c,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:h,historyApi:C,vkVideoLoader:g,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat});let{isInteractiveExpectation$:T,isSeekable$:k}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(k.subscribe(S=>{if(!this.isInited)return;let v=this.store;S?v.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):v.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(T.subscribe(S=>{this.store&&this.store.state.isInteractiveExpectation$.set(S)}));let H=!0;if(this.interactiveController.on(a.playerChanged,S=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=yt(Qe({},S.config),{title:(m==null?void 0:m.title)||S.config.title});let v=H?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(S.player,v),H&&(H=!1)}),this.interactiveController.on(a.interactives,({type:S,actionType:v})=>{var q,U,F,ie;if(!this.store)return;let E=T.getValue();if(S==="action-choice"&&v==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Ts)),S==="action-choice-canceled"){let fe=Ye(this.store.state.isPlaying$)||E;if((q=this.videoConfig)!=null&&q.isMobile&&fe){this.store.ui.interactiveHideMobileControls.set(!0);return}(ie=(U=this.videoConfig)==null?void 0:(F=U.callbacks).onDisabledInteractiveClick)==null||ie.call(F)}}),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let S=this.interactiveController.getHistoryState();this.subscription.add(S.history$.subscribe(v=>{var E,q,U;v.length&&((U=(q=(E=this.videoConfig)==null?void 0:E.callbacks)==null?void 0:q.onInteractiveHistoryChanged)==null||U.call(q,v))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var S,v,E,q;(S=this.microStoresRoot)==null||S.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(q=(v=this.videoConfig)==null?void 0:(E=v.callbacks).onInteractiveTimeIndicatorClick)==null||q.call(E)})),this.interactiveController.on(a.errors,S=>{this.log({message:S.toString()})})}catch(s){this.log({message:s.message})}})}initPlayer(t,n={}){var o,r,s,a,l,u,c,m,h,C,g,T,k,H,S,v,E,q,U,F;if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=xl(t7,Y8(t,ie=>ie instanceof HTMLElement?ie:void 0)),this.uiConfig=jf((o=n.ui)!=null?o:{}),this.coreConfig=(r=n.core)!=null?r:{configName:[]},this.statisticsConfig=(s=n.statistics)!=null?s:{},this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},Af(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(u=(l=this.uiConfig.features.mediaSession)!=null?l:this.videoConfig.isMediaSessionEnabled)!=null?u:!0),Af(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(m=(c=this.uiConfig.features.pip)!=null?c:this.videoConfig.isPictureInPictureEnabled)!=null?m:!0,this.uiConfig.features.dpip=(C=(h=this.uiConfig.features.dpip)!=null?h:this.videoConfig.isPictureInPictureEnabled)!=null?C:!0),this.videoConfig.isMobile=(g=this.uiConfig.isMobile)!=null?g:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(k=this.uiConfig.ads.enable)!=null?k:this.videoConfig.showAds,this.videoConfig.adsSlotId=(H=this.uiConfig.ads.slot)!=null?H:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(S=this.uiConfig.ads.preview)!=null?S:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((v=this.uiConfig.showLogo)!=null?v:!this.videoConfig.logoHidden),(E=this.videoConfig).canRewindLive&&(E.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(q=this.videoConfig.supportLink)!=null?q:this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=Kl.getLatestSupportedVersion():this.pictureInPictureApi=new lr),this.mediaSessionApi=this.uiConfig.features.mediaSession?new Wl:void 0,this.annotationsApi=this.uiConfig.features.annotations?new jl:void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(U=this.svelteStubComponent)==null||U.$destroy(),(F=this.svelteRootComponent)==null||F.$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]),q_(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){var o;if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();(o=this.svelteRootComponent)==null||o.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){var t,n;this.mediaSessionApi&&((t=this.unsubscribePlayerPhaseSubscription)==null||t.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(n=this.store)==null?void 0:n.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}=Qe({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let t="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:t}),this.mediaSessionApi.updateActionHandlers(n),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}play(){var t,n,o,r;this.isControlDisabled("PLAY_BUTTON")||(t=this.store)!=null&&t.playerPhase.is("LiveWaitingStart")||(n=this.store)!=null&&n.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var t;this.log({message:"pause"}),(t=this.svelteRootComponent)==null||t.pause()}stop(){var o,r,s;if(!this.videoConfig)return;this.log({message:"stop"});let t=!!this.interactiveController;t&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0),(o=this.svelteStubComponent)==null||o.$destroy(),(r=this.mediaSessionApi)==null||r.destroy();let n=this.videoConfig.videos[0];n&&((s=this.svelteRootComponent)==null||s.$destroy(),t?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(n))}setMuted(t){var n;this.log({message:`set muted, muted: ${t}`}),(n=this.svelteRootComponent)==null||n.setMuted(t)}setVolume(t){var n;this.log({message:`set volume, volume: ${t}`}),(n=this.svelteRootComponent)==null||n.setVolume(t)}setRepeat(t){var n;this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,(n=this.svelteRootComponent)==null||n.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){var n;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekTime(t))}seekEpisodeStartTime(t){var n;this.log({message:`seek episode start time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekEpisodeStartTime(t)}returnFocusToEpisodes(){var t;this.log({message:"return focus to episodes button"}),(t=this.svelteRootComponent)==null||t.returnFocusToEpisodes()}setPlaybackRate(t){var n;this.log({message:`set playback rate to: ${t}`}),(n=this.svelteRootComponent)==null||n.setPlaybackRate(t)}setAutoQualityLimits(t){var n,o,r;this.log({message:`set auto quality limitation. Max: ${(n=t.max)!=null?n:"none"}. Min: ${(o=t.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(t)}addLanguage(t){var n;(n=this.store)==null||n.actions.internal.addLanguage(t)}setLanguage(t){return pt(this,null,function*(){var n;yield(n=this.store)==null?void 0:n.actions.internal.setLanguage(t)})}setLiveStart(t){var n,o,r;this.log({message:"live started"}),(n=this.store)==null||n.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(t,{autoplay:!0})}setLiveWaitingRecover(){var t,n;this.log({message:"live waiting"}),(t=this.store)==null||t.actions.internal.setLiveWaitingRecover(!0),(n=this.store)==null||n.destroy()}setLiveWaitingRecord(){var t,n;this.log({message:"post live"}),(t=this.store)==null||t.actions.internal.setLiveWaitingRecord(!0),(n=this.store)==null||n.destroy()}setLiveEnd(t){var n,o,r;this.log({message:"live ended"}),(n=this.store)==null||n.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingRecord(!1),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){var t,n;return(n=(t=this.statistics)==null?void 0:t.oneStat.getDeviceId())!=null?n:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(t){return pt(this,null,function*(){var n;if(this.interactiveController&&((n=this.store)!=null&&n.state.positionExact$)){let{EVENT_NAMES:o}=yield import("@vkontakte/videoplayer-interactive"),r=Ye(this.store.state.positionExact$),a=Ye(this.store.state.interactiveEpisodes$).find(u=>!u.completed);this.interactiveController.once(o.playerChanged,()=>{a&&r>=a.time?this.seekTime(a.time):this.seekTime(r),t==null||t()});let l=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:l.chapter.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(t,n=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){var t;(t=this.store)==null||t.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(t,n){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(t,n)}addAdditionalSettingsItem(t){var n;(n=this.store)==null||n.actions.external.addAdditionalSettingsItem(t)}removeAdditionalSettingsItem(t){var n;(n=this.store)==null||n.actions.external.removeAdditionalSettingsItem(t)}updateAdditionalContextItem(t,n){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(t,n)}addAdditionalContextItem(t){var n;(n=this.store)==null||n.actions.external.addAdditionalContextItem(t)}removeAdditionalContextItem(t){var n;(n=this.store)==null||n.actions.external.removeAdditionalContextItem(t)}updateAdditionalButton(t,n){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(t,n)}addAdditionalButton(t){var n;(n=this.store)==null||n.actions.external.addAdditionalButton(t)}removeAdditionalButton(t){var n;(n=this.store)==null||n.actions.external.removeAdditionalButton(t)}updateStatContext(t){this.statistics&&this.statistics.oneStat.updateContext(t)}};import{InterfaceLanguage as lW,VKNumericLanguage as aW,loadVKLangPack as uW}from"@vkontakte/videoplayer-shared";import{VideoQuality as fW,VideoFormat as dW}from"@vkontakte/videoplayer-core";var tW=()=>{window.customElements.define("vk-video-player",Ql)};export{bl as ControlButtonType,wo as GridTypes,lW as InterfaceLanguage,xs as MenuItemType,Tr as VERSION,aW as VKNumericLanguage,dW as VideoFormat,fW as VideoQuality,uW as loadVKLangPack,tW as registerPlayerWebComponent};
|
|
52
|
+
);--timeline-preview-shadow:rgba(0, 0, 0, 0.08);--timeline-preview-bg:rgba(34, 34, 34, 1);--settings-bg:rgba(0, 0, 0, 0.72);--settings-item-bg-hover:rgba(255, 255, 255, 0.08);--settings-radius:8px;--mobile-settings-bg:#2C2D2E;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--end-screen-mobile-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--settings-menu-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;background:var(--black)}*{-webkit-tap-highlight-color:transparent}button{border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}svg:not(.interactiveContainer svg){pointer-events:none}*:focus, *:focus-visible{outline:none}*:focus-visible{box-shadow:var(--focused-element-shadow)}.hidden{visibility:hidden;opacity:0}.overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index)}.out-of-view{position:absolute !important;left:-1000vh !important}.icon.icon-error-stub{display:flex;justify-content:center;align-items:center}`)}function E8(i){let e,t,n,o;function r(l){i[63](l)}function s(l){i[64](l)}let a={store:i[1],uiConfig:i[36],title:i[2],thumbUrl:i[3],interactiveContainer:i[4],live:i[5],autoplay:i[6],canRewindLive:i[7],showAds:i[8],adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12],logoClickable:i[13],logoHidden:i[14],logoTargetUrl:i[37],showNextPrevButtons:i[16],nextButtonActive:i[17],prevButtonActive:i[18],endScreenVideoTitle:i[19],endScreenVideoThumb:i[20],isOneVideoPlaylist:i[21],supportLink:i[22],shadowRootContainer:i[23],outerContainerRef:i[24],fullScreenTarget:i[25],showMiniTimer:i[26],playerStarted:i[35],playNextVideo:i[27],playPrevVideo:i[28],repeatPlaylist:i[29],seekToInteractive:i[30],playPrevChapter:i[31],firstStart:i[39],showEndScreen:i[32]};return i[34]!==void 0&&(a.videoContainer=i[34]),i[0]!==void 0&&(a.keyboardControls=i[0]),e=new y_({props:a}),be.push(()=>ze(e,"videoContainer",r)),be.push(()=>ze(e,"keyboardControls",s)),{c(){N(e.$$.fragment)},m(l,u){R(e,l,u),o=!0},p(l,u){let c={};u[0]&2&&(c.store=l[1]),u[0]&4&&(c.title=l[2]),u[0]&8&&(c.thumbUrl=l[3]),u[0]&16&&(c.interactiveContainer=l[4]),u[0]&32&&(c.live=l[5]),u[0]&64&&(c.autoplay=l[6]),u[0]&128&&(c.canRewindLive=l[7]),u[0]&256&&(c.showAds=l[8]),u[0]&512&&(c.adsSlotId=l[9]),u[0]&1024&&(c.adsParams=l[10]),u[0]&2048&&(c.adsPreviewParam=l[11]),u[0]&4096&&(c.duration=l[12]),u[0]&8192&&(c.logoClickable=l[13]),u[0]&16384&&(c.logoHidden=l[14]),u[0]&65536&&(c.showNextPrevButtons=l[16]),u[0]&131072&&(c.nextButtonActive=l[17]),u[0]&262144&&(c.prevButtonActive=l[18]),u[0]&524288&&(c.endScreenVideoTitle=l[19]),u[0]&1048576&&(c.endScreenVideoThumb=l[20]),u[0]&2097152&&(c.isOneVideoPlaylist=l[21]),u[0]&4194304&&(c.supportLink=l[22]),u[0]&8388608&&(c.shadowRootContainer=l[23]),u[0]&16777216&&(c.outerContainerRef=l[24]),u[0]&33554432&&(c.fullScreenTarget=l[25]),u[0]&67108864&&(c.showMiniTimer=l[26]),u[1]&16&&(c.playerStarted=l[35]),u[0]&134217728&&(c.playNextVideo=l[27]),u[0]&268435456&&(c.playPrevVideo=l[28]),u[0]&536870912&&(c.repeatPlaylist=l[29]),u[0]&1073741824&&(c.seekToInteractive=l[30]),u[1]&1&&(c.playPrevChapter=l[31]),u[1]&2&&(c.showEndScreen=l[32]),!t&&u[1]&8&&(t=!0,c.videoContainer=l[34],Ue(()=>t=!1)),!n&&u[0]&1&&(n=!0,c.keyboardControls=l[0],Ue(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){B(e,l)}}}function A8(i){let e,t,n;function o(s){i[62](s)}let r={store:i[1],uiConfig:i[36],thumbUrl:i[3],interactiveContainer:i[4],live:i[5],autoplay:i[6],canRewindLive:i[7],showAds:i[8],adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12],logoClickable:i[13],logoHidden:i[14],logoTargetUrl:i[37],showNextPrevButtons:i[16],nextButtonActive:i[17],prevButtonActive:i[18],endScreenVideoTitle:i[19],endScreenVideoThumb:i[20],isOneVideoPlaylist:i[21],supportLink:i[22],shadowRootContainer:i[23],outerContainerRef:i[24],fullScreenTarget:i[25],showMiniTimer:i[26],playerStarted:i[35],playNextVideo:i[27],playPrevVideo:i[28],repeatPlaylist:i[29],seekToInteractive:i[30],playPrevChapter:i[31],firstStart:i[39],seekTime:i[33],showEndScreen:i[32]};return i[34]!==void 0&&(r.videoContainer=i[34]),e=new z_({props:r}),be.push(()=>ze(e,"videoContainer",o)),{c(){N(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[0]&2&&(l.store=s[1]),a[0]&8&&(l.thumbUrl=s[3]),a[0]&16&&(l.interactiveContainer=s[4]),a[0]&32&&(l.live=s[5]),a[0]&64&&(l.autoplay=s[6]),a[0]&128&&(l.canRewindLive=s[7]),a[0]&256&&(l.showAds=s[8]),a[0]&512&&(l.adsSlotId=s[9]),a[0]&1024&&(l.adsParams=s[10]),a[0]&2048&&(l.adsPreviewParam=s[11]),a[0]&4096&&(l.duration=s[12]),a[0]&8192&&(l.logoClickable=s[13]),a[0]&16384&&(l.logoHidden=s[14]),a[0]&65536&&(l.showNextPrevButtons=s[16]),a[0]&131072&&(l.nextButtonActive=s[17]),a[0]&262144&&(l.prevButtonActive=s[18]),a[0]&524288&&(l.endScreenVideoTitle=s[19]),a[0]&1048576&&(l.endScreenVideoThumb=s[20]),a[0]&2097152&&(l.isOneVideoPlaylist=s[21]),a[0]&4194304&&(l.supportLink=s[22]),a[0]&8388608&&(l.shadowRootContainer=s[23]),a[0]&16777216&&(l.outerContainerRef=s[24]),a[0]&33554432&&(l.fullScreenTarget=s[25]),a[0]&67108864&&(l.showMiniTimer=s[26]),a[1]&16&&(l.playerStarted=s[35]),a[0]&134217728&&(l.playNextVideo=s[27]),a[0]&268435456&&(l.playPrevVideo=s[28]),a[0]&536870912&&(l.repeatPlaylist=s[29]),a[0]&1073741824&&(l.seekToInteractive=s[30]),a[1]&1&&(l.playPrevChapter=s[31]),a[1]&2&&(l.showEndScreen=s[32]),!t&&a[1]&8&&(t=!0,l.videoContainer=s[34],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function M8(i){let e,t,n,o,r=[A8,E8],s=[];function a(l,u){return l[15]?0:1}return t=a(i,[-1,-1,-1]),n=s[t]=r[t](i),{c(){e=P("div"),n.c(),f(e,"class","root svelte-zbipwr")},m(l,u){k(l,e,u),s[t].m(e,null),o=!0},p(l,u){let c=t;t=a(l,u),t===c?s[t].p(l,u):(se(),p(s[c],1,1,()=>{s[c]=null}),le(),n=s[t],n?n.p(l,u):(n=s[t]=r[t](l),n.c()),d(n,1),n.m(e,null))},i(l){o||(d(n),o=!0)},o(l){p(n),o=!1},d(l){l&&w(e),s[t].d()}}}function L8(i,e,t){let n,{sources:o}=e,{store:r}=e,{microStoresRoot:s}=e,{videoConfig:a}=e,{uiConfig:l}=e,{title:u}=e,{thumbUrl:c}=e,{interactiveContainer:m}=e,{interactiveController:h}=e,{subtitles:y}=e,{live:g}=e,{preload:I}=e,{autoplay:C}=e,{volume:V=void 0}=e,{muted:S=void 0}=e,{fromTime:v}=e,{canRewindLive:E}=e,{showAds:W}=e,{adsSlotId:D=void 0}=e,{adsParams:L=void 0}=e,{adsPreviewParam:J=void 0}=e,{duration:ue=void 0}=e,{logoClickable:Q}=e,{logoHidden:ee}=e,{isMobile:X}=e,{showNextPrevButtons:x=!1}=e,{nextButtonActive:ce=!1}=e,{prevButtonActive:z=!1}=e,{endScreenVideoTitle:j=void 0}=e,{endScreenVideoThumb:A=void 0}=e,{isOneVideoPlaylist:de=!1}=e,{supportLink:$}=e,{shadowRootContainer:Ee=void 0}=e,{outerContainerRef:ne=void 0}=e,{fullScreenTarget:ae=void 0}=e,{failoverHosts:Ie=void 0}=e,{showMiniTimer:Te=!1}=e,{saveRate:Se}=e,{playNextVideo:rt=ms}=e,{playPrevVideo:Pe=ms}=e,{repeatPlaylist:qe=ms}=e,{seekToInteractive:te=ms}=e,{playPrevChapter:_e=ms}=e,{volumeMultiplier:Ce}=e,{showEndScreen:xe=!0}=e,{keyboardControls:ot=void 0}=e,{subscribers:at,stores:st}=s;id(l);let Je=Bt(),fe=l.logoLink,Ze=r.ui.debugPanelVisible,Me=r.ui.playerSize,De=r.state.isLive$;q(i,De,pe=>t(66,n=pe));let He=r.state.isInteractive&&T8.isAndroid,ct,ft=null,he=!1;r.getAdmanWrapper().init({switchFromAdsToVideo:r.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:r.actions.internal.switchFromVideoToAds,setMuted:r.actions.external.setMuted},r.ads,{isMobile:r.ui.isMobile,mobileUnmuteButtonVisible:r.ui.mobileUnmuteButtonVisible,vsid:r.vsid}),dd(r,st);let pt=(pe=!1)=>{t(35,he=!0),pe?r.actions.external.firstStart(W):r.actions.internal.firstStart(W)};function yt(pe){var jt;let Zt=o||pe;Zt&&r.initVideo({container:ct,sources:Zt,failoverHosts:Ie,subtitles:y,volumeMultiplier:Ce});let Xt=C8.get(ns)==="true";Ze.set(Xt),v>0&&r.actions.external.seekTime(v);let Jt=X?Je.volumeDefault:(jt=V!=null?V:Bs())!=null?jt:Je.volumeDefault,Vt=S!=null?S:Ed();if(r.actions.external.setVolume(Jt),r.actions.external.setMuted(Vt),r.getAdmanWrapper().setInitialVolume(Vt?0:Jt),Je.features.trafficSaving){let qt=Md();qt&&r.actions.internal.setTrafficSavingEnabled(qt)}if(Je.features.saveRate&&Se){let qt=Rd();qt&&!n&&r.actions.internal.setPlaybackRate(qt)}if(Je.features.autoplayNext){let qt=Nd();qt&&r.actions.internal.setAutoplayNextEnabled(qt)}let $t=Pd(r.videoId);$t&&r.actions.internal.setQuality($t),r.ui.isAutoplay.set(C),C?pt():I&&Je.features.preload&&r.actions.internal.preload()}let It=pe=>{if(window.ResizeObserver){let Zt,Xt;ft=new ResizeObserver(S8(Jt=>{let Vt=Jt[0];if(Vt){if(Vt.contentBoxSize){let $t=Array.isArray(Vt.contentBoxSize)?Vt.contentBoxSize[0]:Vt.contentBoxSize;Zt=$t.inlineSize,Xt=$t.blockSize}else Vt.contentRect&&(Zt=Vt.contentRect.width,Xt=Vt.contentRect.height);Me.set({width:Zt,height:Xt})}},300)),ft.observe(pe)}Me.set({width:pe.clientWidth,height:pe.clientHeight})},kt=()=>{document.hidden&&r.actions.external.stop()};Ft(()=>{He&&document.addEventListener("visibilitychange",kt),It(ct);let pe=at.map(Xt=>Xt.init({store:r,microStores:st,config:a,interactiveController:h}));if((g==null?void 0:g.status)==="upcoming"){r.actions.internal.setLiveWaitingStart(!0);return}if((g==null?void 0:g.status)==="waiting"){r.actions.internal.setLiveWaitingRecover(!0);return}if(((g==null?void 0:g.status)==="finished"||(g==null?void 0:g.status)==="postlive")&&!Object.keys(o||[]).length){r.actions.internal.setLiveWaitingRecord(!0);return}return yt(),()=>{He&&document.removeEventListener("visibilitychange",kt),ft==null||ft.disconnect(),pe.forEach(Xt=>Xt.unsubscribe()),r.destroy()}});function Ye(){he?r.actions.external.play():pt(!0)}function Gt(){r.actions.external.pause()}function ii(pe){X||r.actions.external.setMuted(pe)}function Kt(pe){X||pe>=0&&pe<=1&&r.actions.external.setVolume(pe)}function Ht(pe){r.actions.internal.seekTime(pe,I8.UNKNOWN)}function Yt(pe){r.actions.external.seekEpisodeStartTime(pe)}function Nt(){r.actions.external.returnFocusToEpisodes()}function We(pe){r.actions.external.setPlaybackRate(pe)}function et(pe){r.actions.external.setAutoQualityLimits(pe)}function Pt(pe){ct=pe,t(34,ct)}function Qt(pe){ct=pe,t(34,ct)}function Wt(pe){ot=pe,t(0,ot)}return i.$$set=pe=>{"sources"in pe&&t(40,o=pe.sources),"store"in pe&&t(1,r=pe.store),"microStoresRoot"in pe&&t(41,s=pe.microStoresRoot),"videoConfig"in pe&&t(42,a=pe.videoConfig),"uiConfig"in pe&&t(43,l=pe.uiConfig),"title"in pe&&t(2,u=pe.title),"thumbUrl"in pe&&t(3,c=pe.thumbUrl),"interactiveContainer"in pe&&t(4,m=pe.interactiveContainer),"interactiveController"in pe&&t(44,h=pe.interactiveController),"subtitles"in pe&&t(45,y=pe.subtitles),"live"in pe&&t(5,g=pe.live),"preload"in pe&&t(46,I=pe.preload),"autoplay"in pe&&t(6,C=pe.autoplay),"volume"in pe&&t(47,V=pe.volume),"muted"in pe&&t(48,S=pe.muted),"fromTime"in pe&&t(49,v=pe.fromTime),"canRewindLive"in pe&&t(7,E=pe.canRewindLive),"showAds"in pe&&t(8,W=pe.showAds),"adsSlotId"in pe&&t(9,D=pe.adsSlotId),"adsParams"in pe&&t(10,L=pe.adsParams),"adsPreviewParam"in pe&&t(11,J=pe.adsPreviewParam),"duration"in pe&&t(12,ue=pe.duration),"logoClickable"in pe&&t(13,Q=pe.logoClickable),"logoHidden"in pe&&t(14,ee=pe.logoHidden),"isMobile"in pe&&t(15,X=pe.isMobile),"showNextPrevButtons"in pe&&t(16,x=pe.showNextPrevButtons),"nextButtonActive"in pe&&t(17,ce=pe.nextButtonActive),"prevButtonActive"in pe&&t(18,z=pe.prevButtonActive),"endScreenVideoTitle"in pe&&t(19,j=pe.endScreenVideoTitle),"endScreenVideoThumb"in pe&&t(20,A=pe.endScreenVideoThumb),"isOneVideoPlaylist"in pe&&t(21,de=pe.isOneVideoPlaylist),"supportLink"in pe&&t(22,$=pe.supportLink),"shadowRootContainer"in pe&&t(23,Ee=pe.shadowRootContainer),"outerContainerRef"in pe&&t(24,ne=pe.outerContainerRef),"fullScreenTarget"in pe&&t(25,ae=pe.fullScreenTarget),"failoverHosts"in pe&&t(50,Ie=pe.failoverHosts),"showMiniTimer"in pe&&t(26,Te=pe.showMiniTimer),"saveRate"in pe&&t(51,Se=pe.saveRate),"playNextVideo"in pe&&t(27,rt=pe.playNextVideo),"playPrevVideo"in pe&&t(28,Pe=pe.playPrevVideo),"repeatPlaylist"in pe&&t(29,qe=pe.repeatPlaylist),"seekToInteractive"in pe&&t(30,te=pe.seekToInteractive),"playPrevChapter"in pe&&t(31,_e=pe.playPrevChapter),"volumeMultiplier"in pe&&t(52,Ce=pe.volumeMultiplier),"showEndScreen"in pe&&t(32,xe=pe.showEndScreen),"keyboardControls"in pe&&t(0,ot=pe.keyboardControls)},i.$$.update=()=>{i.$$.dirty[0]&32770&&r.ui.isMobile.set(X)},[ot,r,u,c,m,g,C,E,W,D,L,J,ue,Q,ee,X,x,ce,z,j,A,de,$,Ee,ne,ae,Te,rt,Pe,qe,te,_e,xe,Ht,ct,he,Je,fe,De,pt,o,s,a,l,h,y,I,V,S,v,Ie,Se,Ce,yt,Ye,Gt,ii,Kt,Yt,Nt,We,et,Pt,Qt,Wt]}var Lf=class extends H{constructor(e){super(),U(this,e,L8,M8,F,{sources:40,store:1,microStoresRoot:41,videoConfig:42,uiConfig:43,title:2,thumbUrl:3,interactiveContainer:4,interactiveController:44,subtitles:45,live:5,preload:46,autoplay:6,volume:47,muted:48,fromTime:49,canRewindLive:7,showAds:8,adsSlotId:9,adsParams:10,adsPreviewParam:11,duration:12,logoClickable:13,logoHidden:14,isMobile:15,showNextPrevButtons:16,nextButtonActive:17,prevButtonActive:18,endScreenVideoTitle:19,endScreenVideoThumb:20,isOneVideoPlaylist:21,supportLink:22,shadowRootContainer:23,outerContainerRef:24,fullScreenTarget:25,failoverHosts:50,showMiniTimer:26,saveRate:51,playNextVideo:27,playPrevVideo:28,repeatPlaylist:29,seekToInteractive:30,playPrevChapter:31,volumeMultiplier:52,showEndScreen:32,keyboardControls:0,initVideo:53,play:54,pause:55,setMuted:56,setVolume:57,seekTime:33,seekEpisodeStartTime:58,returnFocusToEpisodes:59,setPlaybackRate:60,setAutoQualityLimits:61},P8,[-1,-1,-1])}get sources(){return this.$$.ctx[40]}set sources(e){this.$$set({sources:e}),dt()}get store(){return this.$$.ctx[1]}set store(e){this.$$set({store:e}),dt()}get microStoresRoot(){return this.$$.ctx[41]}set microStoresRoot(e){this.$$set({microStoresRoot:e}),dt()}get videoConfig(){return this.$$.ctx[42]}set videoConfig(e){this.$$set({videoConfig:e}),dt()}get uiConfig(){return this.$$.ctx[43]}set uiConfig(e){this.$$set({uiConfig:e}),dt()}get title(){return this.$$.ctx[2]}set title(e){this.$$set({title:e}),dt()}get thumbUrl(){return this.$$.ctx[3]}set thumbUrl(e){this.$$set({thumbUrl:e}),dt()}get interactiveContainer(){return this.$$.ctx[4]}set interactiveContainer(e){this.$$set({interactiveContainer:e}),dt()}get interactiveController(){return this.$$.ctx[44]}set interactiveController(e){this.$$set({interactiveController:e}),dt()}get subtitles(){return this.$$.ctx[45]}set subtitles(e){this.$$set({subtitles:e}),dt()}get live(){return this.$$.ctx[5]}set live(e){this.$$set({live:e}),dt()}get preload(){return this.$$.ctx[46]}set preload(e){this.$$set({preload:e}),dt()}get autoplay(){return this.$$.ctx[6]}set autoplay(e){this.$$set({autoplay:e}),dt()}get volume(){return this.$$.ctx[47]}set volume(e){this.$$set({volume:e}),dt()}get muted(){return this.$$.ctx[48]}set muted(e){this.$$set({muted:e}),dt()}get fromTime(){return this.$$.ctx[49]}set fromTime(e){this.$$set({fromTime:e}),dt()}get canRewindLive(){return this.$$.ctx[7]}set canRewindLive(e){this.$$set({canRewindLive:e}),dt()}get showAds(){return this.$$.ctx[8]}set showAds(e){this.$$set({showAds:e}),dt()}get adsSlotId(){return this.$$.ctx[9]}set adsSlotId(e){this.$$set({adsSlotId:e}),dt()}get adsParams(){return this.$$.ctx[10]}set adsParams(e){this.$$set({adsParams:e}),dt()}get adsPreviewParam(){return this.$$.ctx[11]}set adsPreviewParam(e){this.$$set({adsPreviewParam:e}),dt()}get duration(){return this.$$.ctx[12]}set duration(e){this.$$set({duration:e}),dt()}get logoClickable(){return this.$$.ctx[13]}set logoClickable(e){this.$$set({logoClickable:e}),dt()}get logoHidden(){return this.$$.ctx[14]}set logoHidden(e){this.$$set({logoHidden:e}),dt()}get isMobile(){return this.$$.ctx[15]}set isMobile(e){this.$$set({isMobile:e}),dt()}get showNextPrevButtons(){return this.$$.ctx[16]}set showNextPrevButtons(e){this.$$set({showNextPrevButtons:e}),dt()}get nextButtonActive(){return this.$$.ctx[17]}set nextButtonActive(e){this.$$set({nextButtonActive:e}),dt()}get prevButtonActive(){return this.$$.ctx[18]}set prevButtonActive(e){this.$$set({prevButtonActive:e}),dt()}get endScreenVideoTitle(){return this.$$.ctx[19]}set endScreenVideoTitle(e){this.$$set({endScreenVideoTitle:e}),dt()}get endScreenVideoThumb(){return this.$$.ctx[20]}set endScreenVideoThumb(e){this.$$set({endScreenVideoThumb:e}),dt()}get isOneVideoPlaylist(){return this.$$.ctx[21]}set isOneVideoPlaylist(e){this.$$set({isOneVideoPlaylist:e}),dt()}get supportLink(){return this.$$.ctx[22]}set supportLink(e){this.$$set({supportLink:e}),dt()}get shadowRootContainer(){return this.$$.ctx[23]}set shadowRootContainer(e){this.$$set({shadowRootContainer:e}),dt()}get outerContainerRef(){return this.$$.ctx[24]}set outerContainerRef(e){this.$$set({outerContainerRef:e}),dt()}get fullScreenTarget(){return this.$$.ctx[25]}set fullScreenTarget(e){this.$$set({fullScreenTarget:e}),dt()}get failoverHosts(){return this.$$.ctx[50]}set failoverHosts(e){this.$$set({failoverHosts:e}),dt()}get showMiniTimer(){return this.$$.ctx[26]}set showMiniTimer(e){this.$$set({showMiniTimer:e}),dt()}get saveRate(){return this.$$.ctx[51]}set saveRate(e){this.$$set({saveRate:e}),dt()}get playNextVideo(){return this.$$.ctx[27]}set playNextVideo(e){this.$$set({playNextVideo:e}),dt()}get playPrevVideo(){return this.$$.ctx[28]}set playPrevVideo(e){this.$$set({playPrevVideo:e}),dt()}get repeatPlaylist(){return this.$$.ctx[29]}set repeatPlaylist(e){this.$$set({repeatPlaylist:e}),dt()}get seekToInteractive(){return this.$$.ctx[30]}set seekToInteractive(e){this.$$set({seekToInteractive:e}),dt()}get playPrevChapter(){return this.$$.ctx[31]}set playPrevChapter(e){this.$$set({playPrevChapter:e}),dt()}get volumeMultiplier(){return this.$$.ctx[52]}set volumeMultiplier(e){this.$$set({volumeMultiplier:e}),dt()}get showEndScreen(){return this.$$.ctx[32]}set showEndScreen(e){this.$$set({showEndScreen:e}),dt()}get keyboardControls(){return this.$$.ctx[0]}set keyboardControls(e){this.$$set({keyboardControls:e}),dt()}get initVideo(){return this.$$.ctx[53]}get play(){return this.$$.ctx[54]}get pause(){return this.$$.ctx[55]}get setMuted(){return this.$$.ctx[56]}get setVolume(){return this.$$.ctx[57]}get seekTime(){return this.$$.ctx[33]}get seekEpisodeStartTime(){return this.$$.ctx[58]}get returnFocusToEpisodes(){return this.$$.ctx[59]}get setPlaybackRate(){return this.$$.ctx[60]}get setAutoQualityLimits(){return this.$$.ctx[61]}},W_=Lf;function V8(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","currentColor"),f(t,"d","M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function R8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Vf=class extends H{constructor(e){super(),U(this,e,R8,V8,F,{})}},x_=Vf;function B8(i){let e,t;return e=new x_({props:{style:i[0]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function N8(i,e,t){let n,{isWhite:o=!1}=e;return i.$$set=r=>{"isWhite"in r&&t(1,o=r.isWhite)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var Rf=class extends H{constructor(e){super(),U(this,e,N8,B8,F,{isWhite:1})}},K_=Rf;function D8(i){ge(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 j_(i){let e,t;return{c(){e=P("div"),t=Oe(i[0]),f(e,"class","title svelte-1y9fytq")},m(n,o){k(n,e,o),_(e,t)},p(n,o){o&1&&Ke(t,n[0])},d(n){n&&w(e)}}}function G_(i){let e,t;return e=new K_({props:{isWhite:!!i[1]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isWhite=!!n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function O8(i){let e,t,n,o,r=i[0]&&j_(i),s=(!i[0]||!i[1])&&G_(i);return{c(){e=P("div"),r&&r.c(),t=Y(),s&&s.c(),f(e,"class","playerStub svelte-1y9fytq"),f(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,l){k(a,e,l),r&&r.m(e,null),_(e,t),s&&s.m(e,null),o=!0},p(a,[l]){a[0]?r?r.p(a,l):(r=j_(a),r.c(),r.m(e,t)):r&&(r.d(1),r=null),!a[0]||!a[1]?s?(s.p(a,l),l&3&&d(s,1)):(s=G_(a),s.c(),d(s,1),s.m(e,null)):s&&(se(),p(s,1,1,()=>{s=null}),le()),(!o||l&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&f(e,"style",n)},i(a){o||(d(s),o=!0)},o(a){p(s),o=!1},d(a){a&&w(e),r&&r.d(),s&&s.d()}}}function F8(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"thumbUrl"in r&&t(1,o=r.thumbUrl)},[n,o]}var Bf=class extends H{constructor(e){super(),U(this,e,F8,O8,F,{title:0,thumbUrl:1},D8)}},Y_=Bf;import{cloneDeepWith as s7,InterfaceLanguage as l7,clientChecker as a7,isMobile as u7,isNonNullable as Ff,Logger as c7,Subscription as f7,once as d7}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";import{OneStat as m7}from"@vkontakte/videoplayer-statistics";import{Logger as H8,Subscription as q8}from"@vkontakte/videoplayer-shared";var Xl=class{constructor(){this.subscription=new q8,this.logger=new H8,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:t="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:t,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",t=>null],["seekbackward",t=>null],["seekforward",t=>null]];this.setActionHandlers(e)}setActionHandlers(e){var t,n;if(this.isSupported())for(let[o,r]of e)try{(n=(t=navigator.mediaSession).setActionHandler)==null||n.call(t,o,r)}catch(s){throw new Error(`The media session action "${o}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||this.subscription.add(e.state.positionExact$.subscribe(t=>{var r,s;let n=je(e.state.currentPlaybackRate$),o=je(e.state.duration$);if(!(!isFinite(t)||!isFinite(o)))try{(s=(r=navigator.mediaSession).setPositionState)==null||s.call(r,{position:t,playbackRate:n,duration:o})}catch(a){this.log({message:`MediaSession setPositionState can't call with position: ${t} and duration: ${o}`})}}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as j8,clientChecker as G8,detectEmbed as Y8}from"@vkontakte/videoplayer-shared";function U8(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=O("svg"),a&&a.c(),t=O("g"),n=O("path"),o=O("path"),f(n,"d","m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"),f(o,"d","M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"),f(t,"fill","#fff"),ye(e,u)},m(c,m){k(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),ye(e,u=Fe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&w(e),a&&a.d(c)}}}function z8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Nf=class extends H{constructor(e){super(),U(this,e,z8,U8,F,{})}},Q_=Nf;function W8(i){ge(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 x8(i){let e,t,n,o,r,s,a;return n=new Q_({}),{c(){e=P("div"),t=P("div"),N(n.$$.fragment),o=Y(),r=P("span"),s=Oe(i[0]),f(t,"class","dummy-image svelte-1pbsod4"),K(t,"desktop",!i[1]),f(r,"class","title svelte-1pbsod4"),f(e,"class","player-pip-dummy svelte-1pbsod4"),K(e,"is-pip-api",i[2])},m(l,u){k(l,e,u),_(e,t),R(n,t,null),_(e,o),_(e,r),_(r,s),a=!0},p(l,[u]){(!a||u&2)&&K(t,"desktop",!l[1]),(!a||u&1)&&Ke(s,l[0])},i(l){a||(d(n.$$.fragment,l),a=!0)},o(l){p(n.$$.fragment,l),a=!1},d(l){l&&w(e),B(n)}}}function K8(i,e,t){let n,o,r=nt(),s=!!r.webApi.pictureInPictureApi,a=r.interfaceLanguage$;q(i,a,c=>t(5,n=c));let l=r.ui.isMobile;q(i,l,c=>t(1,o=c));let u;return i.$$.update=()=>{i.$$.dirty&32&&t(0,u=n&&G("pip_dummy_title"))},[u,o,s,a,l,n]}var Df=class extends H{constructor(e){super(),U(this,e,K8,x8,F,{},W8)}},Z_=Df;var Q8=460,Z8=280,ps=class{constructor(){this.info={isActive$:new j8(!1),type:1}}isSupported(){let{isEmbed:e}=Y8();return"documentPictureInPicture"in window&&!G8.isYandex&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}request(){return mt(this,null,function*(){var r,s;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:Q8,height:Z8,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(l=>l.cssText).join(" ")).filter(Boolean).join(`
|
|
53
|
+
`),t=document.createElement("style");t.textContent=e;let n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(t),o.append(this.playerDomElement),this.playerDummyElement=new Z_({target:this.playerParentShadowRoot,context:this.svelteContext}),(r=this.pipWindow)==null||r.document.body.append(n),this.info.isActive$.next(!0),(s=this.pipWindow)==null||s.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return mt(this,null,function*(){return new Promise(e=>{var t;(t=documentPictureInPicture.window)==null||t.close(),e()})})}dispose(){return mt(this,null,function*(){yield this.remove()})}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function X_(i){return i instanceof ps}var Jl=class{static getLatestSupportedVersion(){let e=new lr,t=new ps;if(t.isSupported())return t;if(e.isSupported())return e}};function $l(i,e){var o,r;let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let s of t)n[s]=(r=(o=e[s])!=null?o:i[s])!=null?r:void 0;return n}var J_="Inner error. Unexpectedly root annotation container null reference exception",$_="Annotation with such name already exists",eh="Annotation with such name does not exist";var Wr=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as X8,Subscription as J8,throttleFn as $8}from"@vkontakte/videoplayer-shared";var e7="1",t7=100,ea=class{constructor(){this.annotations=new Map;this.subscriptions=new J8}init(e){this.rootAnnotationsContainer=e;let t=$8(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},t7);this.subscriptions.add(X8(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},t()})),this.mutationObserver=new MutationObserver(t),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,t){var n;if(!this.rootAnnotationsContainer)throw new Wr(J_);if(this.annotations.has(e))throw new Wr($_);t.style.zIndex=(n=t.style.zIndex)!=null?n:e7,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 Wr(eh);return t}remove(e){let t=this.get(e);this.annotations.delete(e)&&t.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,t,n){let o=e.offsetTop,r=e.offsetLeft,s=e.offsetWidth,a=e.offsetHeight;return o<0||r<0||r+s>t||o+a>n}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as ta,Subscription as i7}from"@vkontakte/videoplayer-shared";var Qn=class{init({store:e,microStores:t,interactiveController:n,config:o}){return ta(e),ta(t),ta(o),o.interactiveData&&ta(n),this.subscription=new i7,this.subscription}};var _s=class extends Qn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=St(Xe({},Ne(null)),{toggle:()=>this.state$.update(t=>!t)})}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(r=>{this.state$.set(r?!0:null)})),n}};var hs=class extends Qn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=St(Xe({},Ne(null)),{toggle:()=>this.state$.update(t=>!t)})}init(t){let n=super.init(t),{microStores:o,store:r}=t,{fakeIsPlaying$:s}=o,{isInteractiveExpectation$:a,isPlaying$:l}=r.state,{controlsVisible:u,isMobile:c}=r.ui,m=je(c),h=()=>m&&je(u);return n.add(u.subscribe(y=>{if(!m)return;let g=je(s);je(l)?this.state$.set(y):g!==null&&this.state$.set(!g||y)})),n.add(l.subscribe(y=>{this.state$.set(!y||h())})),n.add(s.subscribe(y=>{if(y===null)return;let g=je(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!y)})),n}};var gs=class extends Qn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Ne("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};import{combine as n7}from"@vkontakte/videoplayer-shared";var Of=Ne(!1),ia=null,bs=class extends Qn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=St(Xe({},Of),{set:(t,n=!1)=>{t!==je(Of)&&(this.clearTimeout(),Of.set(t),!t&&ia&&(ia=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(t){let n=super.init(t),{store:o,config:r}=t,{isInteractiveTime$:s,isPlaying$:a}=o.state,l=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(l.subscribe(m=>{je(s)&&m&&this.state$.set(!1)}));let c=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return n.add(n7({isPlaying$:a,isInteractiveTime$:s,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:h,interactiveTimeIndicator:y})=>{var g,I;if(!(!m||!(y!=null&&y.isDisplayed))){if(!h)return this.state$.set(!1);c.tooltipHelpHintActive&&ia===null&&(ia=!0,c.tooltipHelpHintActive=!1,this.state$.set(!0),(I=(g=o.callbacks)==null?void 0:g.onInteractiveTimeIndicatorHintDeactivated)==null||I.call(g))}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as o7,noop as r7}from"@vkontakte/videoplayer-shared";var vs=class extends Qn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=St(Xe({},Ne(null)),{toggle:r7});this.checkIfShouldHide=t=>Ho(t,"s")}init(t){let n=super.init(t),{store:o,interactiveController:r}=t,s=o.ui.currentGridType$;return this.state$.toggle=()=>{if(this.checkIfShouldHide(je(s)))return;let a=je(this.state$),{isEnded$:l,playbackState$:u}=o.state,{disabledControls$:c}=o.ui.controls,m=je(l),h=je(u);a?(this.state$.set(!1),r==null||r.toggleGraphView(!1),c.remove(ha),!m&&this.graphMadePause&&o.actions.internal.play()):(this.graphMadePause=h==="playing",this.state$.set(!0),r==null||r.toggleGraphView(!0),c.add(ha),!m&&this.graphMadePause&&o.actions.internal.pause())},n.add(o7({graphIsOpened:this.state$,currentGridType:s}).subscribe(({graphIsOpened:a,currentGridType:l})=>{this.checkIfShouldHide(l)&&a&&(r==null||r.toggleGraphView(!1),this.state$.set(!1))})),n}};var th=()=>[_s,hs,gs,bs,vs].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:St(Xe({},e),{[n.stateName]:n.state$})}},{subscribers:[],stores:{}});var p7={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:l7.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:u7(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0},na=class extends HTMLElement{constructor(){var t;super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.createOneStat=(t,n={})=>{var v,E,W,D;let{albumId:o,statPlace:r,statUserSalt:s,statTrackCode:a,refreshStatAuthToken:l,autoplay:u,isMobile:c,refDomain:m,deviceId:h,interactiveData:y}=$l(this.videoConfig,n),g=(v=y==null?void 0:y.projectInfo)==null?void 0:v.pid,I=(W=(E=this.interactiveController)==null?void 0:E.state.isReplay$.getValue())!=null?W:!1;I&&(this.prevIsid=void 0);let{unitedVideoId:C,isClip:V=!1}=t;if(this.uiConfig.features.statistics&&C)return new m7(Xe({movieId:C,albumId:o,place:r,trackCode:a,autoplay:(D=u&&!this.interactiveController)!=null?D:!1,mobile:c,clip:V,refDomain:m,deviceId:h},g&&(!this.isInited||I)&&{projectId:Number(g)}),Xe({refreshAuthToken:l,userSalt:s,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))};this.logger=new c7,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new f7,this.graphMadePause=!1,(t=window==null?void 0:window.videoPlayerConfig)!=null&&t.debugLogs&&this.subscription.add(this.logger.log$.subscribe(n=>{console.log("%c player web component ","background:#77dd77;",`${n.component}`,n.message)}))}connectedCallback(){var o,r;if(this.isInited)return;this.initPlayerRootContainers();let t=(o=this.getAttribute("stub-title"))!=null?o:void 0,n=(r=this.getAttribute("stub-thumb-url"))!=null?r:void 0;this.svelteStubComponent=new Y_({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){var t,n,o,r,s,a;(t=this.annotationsApi)==null||t.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),(o=this.svelteRootComponent)==null||o.$destroy(),(r=this.svelteStubComponent)==null||r.$destroy(),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(a=this.interactiveController)==null||a.destroy()}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(t){var o;let n=(o=this.store)==null?void 0:o.ui.controls.disabledControls$;return(n==null?void 0:n.includes(t))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){var pt,yt,It,kt,Ye,Gt,ii,Kt,Ht,Yt,Nt;if(!this.videoConfig)return;let{albumId:r,statPlace:s,statAuthToken:a,preload:l,autoplay:u,volume:c,muted:m,fromTime:h,canRewindLive:y,supportLink:g,showAds:I,adsSlotId:C,adsParams:V={},adsPreviewParam:S,interfaceLanguage:v,isCyrillicRelatedInterface:E,logoClickable:W,logoHidden:D,isMobile:L,isAudioDisabled:J,isLiveCatchUpMode:ue,fullScreenTarget:Q,failoverHosts:ee,canDownload:X,callbacks:x,interactiveData:ce,showThumbTimer:z,additionalButtons:j=[],additionalSettingsMenuItems:A=[],additionalContextMenuItems:de=[],repeat:$,saveRate:Ee,volumeMultiplier:ne,showEndScreen:ae}=$l(this.videoConfig,n),{sources:Ie,title:Te,thumbUrl:Se,unitedVideoId:rt,isClip:Pe=!1,duration:qe,adsParams:te={},videoEpisodes:_e,previewThumbsData:Ce,subtitles:xe,live:ot}=t,at=Xe(Xe({},V),te),st=this.getNextVideoInfo(),Je={sources:Ie,title:Te,thumbUrl:Se,subtitles:xe,unitedVideoId:rt,isClip:Pe,live:ot,albumId:r,statPlace:s,autoplay:u,muted:m,volume:c,fromTime:h,canRewindLive:y,showAds:I,adsSlotId:C,adsParams:at,adsPreviewParam:S,duration:qe,logoClickable:W,logoHidden:D,isMobile:L,repeat:$,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:st.nextVideoTitle,endScreenVideoThumb:st.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},fe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Je)}`});let Ze=(pt=this.interactiveController)==null?void 0:pt.state.statistics$.getValue(),Me=(Ze==null?void 0:Ze.oneStat)||this.createOneStat(t,n);Me&&(this.statistics=new Tl(Me,Ze==null?void 0:Ze.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new sr(this.uiConfig.sentry,{version:Tr,env:Vs},{movieId:rt,albumId:r,place:s,autoplay:(yt=u&&!this.interactiveController)!=null?yt:!1,mobile:L,clip:Pe}),this.interactiveController&&((kt=this.prevIsid)!=null||(this.prevIsid=(It=this.statistics)==null?void 0:It.oneStat.isid$.getValue())),this.sentry=Xe(Xe({},this.sentry),sr.getInstance());let Qe=!!ce,He=[],ct="tooltip_interactive_go_back_disabled_first";if(Qe&&this.interactiveController){let We=this.interactiveController.state.isInitialChapter$.getValue(),et=this.interactiveController.getHistoryState();We&&He.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||He.push("SEEK_TO_INTERACTIVE_BUTTON"),et.hasPrevChapter$.getValue()||(He.push("PLAY_PREV_CHAPTER_BUTTON"),We||(et.isGoBackLimited$.getValue()?ct="tooltip_interactive_go_back_disabled_limit":ct="tooltip_interactive_go_back_disabled"))}let ft=()=>{var et;this.isInited=!1,this.prevIsid=void 0;let We=(o==null?void 0:o.info.isEnded$.getValue())&&((et=this.interactiveController)==null?void 0:et.state.isEndChapter$.getValue());x.onReplayInteractiveVideo&&!We?x.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Fm({player:o,interfaceLanguage:v,isCyrillicRelatedInterface:E,videoId:rt,isClip:Pe,isLiveCatchUpMode:ue,isAudioDisabled:J,statAuthToken:a,callbacks:x,webApi:fe,videoEpisodes:_e,previewThumbsData:Ce,canDownload:X,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:He,isInteractive:Qe,saveRate:Ee,interactiveRanges$:(Ye=this.interactiveController)==null?void 0:Ye.state.interactiveRanges$,isInteractiveTime$:(Gt=this.interactiveController)==null?void 0:Gt.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ft,playPrevChapterDisabledTooltip:ct,hasInteractiveBranches:!!((Kt=(ii=this.interactiveController)==null?void 0:ii.getChapterBranches())!=null&&Kt.length),additionalButtons:this.uiConfig.features.additionalButtons?j:[],additionalSettingsMenuItems:A!=null?A:[],additionalContextMenuItems:de!=null?de:[],looped:$&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:he}=this.microStoresRoot=th();this.subscription.add(this.store.state.currentFormat$.subscribe(We=>{var et;return(et=x==null?void 0:x.onCurrentFormatChanged)==null?void 0:et.call(x,We)})),this.subscription.add(he.interactiveControlsOpacity$.subscribe(We=>{var et;We!==null&&((et=this==null?void 0:this.interactiveController)==null||et.setDisabledControls(We))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(We=>{var et;return(et=x==null?void 0:x.onThroughputEstimationChanged)==null?void 0:et.call(x,We)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(We=>{var et;return(et=x==null?void 0:x.onTrafficSavingEnabledChanged)==null?void 0:et.call(x,We)})),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(We=>{var et;return(et=x==null?void 0:x.onCurrentPlaybackRateChanged)==null?void 0:et.call(x,We)})),this.subscription.add(this.store.state.volume$.subscribe(We=>{var et;return(et=x==null?void 0:x.onVolumeChange)==null?void 0:et.call(x,We)})),this.subscription.add(this.store.state.muted$.subscribe(We=>{var et,Pt;return We?(et=x==null?void 0:x.onMute)==null?void 0:et.call(x):(Pt=x==null?void 0:x.onUnmute)==null?void 0:Pt.call(x)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(We=>{var et;return(et=x==null?void 0:x.onVideoBitrateChanged)==null?void 0:et.call(x,We)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(We=>{var Pt;let et=(Pt=this.store)==null?void 0:Pt.ui.controls.disabledControls$;et&&(We&&!et.includes(os)&&et.add(os),We||et.remove(os))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(We=>mt(this,null,function*(){var Pt;if(!a7.isSamsungBrowser||!We||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((Pt=this.videoConfig)==null?void 0:Pt.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(We=>{var et;return(et=x==null?void 0:x.onVSIDChanged)==null?void 0:et.call(x,We)})),this.initMediaSession(),this.svelteRootComponent=new W_({target:this.playerContainer,props:{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ie,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Te,thumbUrl:Se,subtitles:xe,live:ot,preload:l,autoplay:u,muted:m,volume:c,fromTime:h,canRewindLive:y,supportLink:g,showAds:I,adsSlotId:C,adsParams:at,adsPreviewParam:S,duration:qe,logoClickable:W,logoHidden:D,isMobile:L,failoverHosts:ee,fullScreenTarget:Q,saveRate:Ee,shadowRootContainer:this.shadowRootContainer,showMiniTimer:z,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:st.nextVideoTitle,endScreenVideoThumb:st.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ne,showEndScreen:ae}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Nt=(Yt=(Ht=this.videoConfig)==null?void 0:Ht.callbacks)==null?void 0:Yt.onInited)==null||Nt.call(Yt))}addPlayerInfoSubscriptions(){var r;let t=this.store;if(!t)return;let n=(r=this.videoConfig)==null?void 0:r.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(s=>{var a;return(a=n.onPlayerPhaseChanged)==null?void 0:a.call(n,s)})).add(t.state.playbackState$.subscribe(s=>{var a;return(a=n.onPlaybackStateChanged)==null?void 0:a.call(n,s)})).add(t.state.isLive$.subscribe(s=>{var a;return(a=n.onIsLiveChanged)==null?void 0:a.call(n,s)})).add(t.state.isActiveLive$.subscribe(s=>{var a;return(a=n.onIsActiveLiveChanged)==null?void 0:a.call(n,s)})).add(t.state.isAudioAvailable$.subscribe(s=>{var a;return(a=n.onIsAudioAvailableChanged)==null?void 0:a.call(n,s)})).add(t.state.currentQuality$.subscribe(s=>{var a;return(a=n.onCurrentQualityChanged)==null?void 0:a.call(n,s)})).add(t.state.availableQualities$.subscribe(s=>{var a;return(a=n.onAvailableQualitiesChanged)==null?void 0:a.call(n,s.map(({value:l})=>l).filter(l=>l!=="auto"))})).add(t.state.availableAudioStreams$.subscribe(s=>{s.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(t.ui.isPictureInPictureActive$.subscribe(s=>{var a,l;return s?(a=n.onPiPEnter)==null?void 0:a.call(n):(l=n.onPiPExit)==null?void 0:l.call(n)}));let o=n==null?void 0:n.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(s=>{var a;return(a=o.onControlsVisibleChanged)==null?void 0:a.call(o,s)})).add(t.ui.isMobile.subscribe(s=>{var a;return(a=o.onIsMobileChanged)==null?void 0:a.call(o,s)})).add(t.ui.playerSize.subscribe(s=>{var a;return(a=o.onPlayerSizeChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.prevButton.subscribe(s=>{var a;return(a=o.onPrevButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.playButton.subscribe(s=>{var a;return(a=o.onPlayButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.replayButton.subscribe(s=>{var a;return(a=o.onReplayButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.nextButton.subscribe(s=>{var a;return(a=o.onNextButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.playPrevChapterButton.subscribe(s=>{var a;return(a=o.onPlayPrevChapterChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.seekToInteractiveButton.subscribe(s=>{var a;return(a=o.onSeekToInteractiveButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.interactiveGraphButton.subscribe(s=>{var a;return(a=o.onGraphButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.liveButton.subscribe(s=>{var a;return(a=o.onLiveButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.time.subscribe(s=>{var a;return(a=o.onTimeUpdateChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.episodes.subscribe(s=>{var a;return(a=o.onEpisodesChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.subtitles.subscribe(s=>{var a;return(a=o.onSubtitlesChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.settings.subscribe(s=>{var a;return(a=o.onSettingsChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.fullscreen.subscribe(s=>{var a;return(a=o.onFullscreenChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.chromecast.subscribe(s=>{var a;return(a=o.onChromecastChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.pip.subscribe(s=>{var a;return(a=o.onPipChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.vkLogo.subscribe(s=>{var a;return(a=o.onVkLogoChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.interactiveTimeIndicator.subscribe(s=>{var a;return(a=o.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.timeline.subscribe(s=>{var a;return(a=o.onTimelineChanged)==null?void 0:a.call(o,s)}))}playNextVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch(o){this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch(o){this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){var r;if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&Ff(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){var t;(t=this.interactiveController)==null||t.playPrevChapter()}seekToInteractive(){var n;let t=(n=this.interactiveController)==null?void 0:n.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}initInteractives(){return mt(this,null,function*(){var t,n,o,r;if((t=this.videoConfig)!=null&&t.interactiveData)try{let{Interactives:s,EVENT_NAMES:a,CustomError:l}=yield import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let u=(n=this.store)==null?void 0:n.interfaceLanguage$,c=u?je(u):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:h,historyApi:y,videoLoader:g}=this.videoConfig.interactiveData;this.interactiveController=new s({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:c,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:h,historyApi:y,vkVideoLoader:g,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat});let{isInteractiveExpectation$:I,isSeekable$:C}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(C.subscribe(S=>{if(!this.isInited)return;let v=this.store;S?v.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):v.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(I.subscribe(S=>{this.store&&this.store.state.isInteractiveExpectation$.set(S)}));let V=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(S=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=St(Xe({},S.config),{title:(m==null?void 0:m.title)||S.config.title});let v=V?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(S.player,v),V&&(V=!1)})),this.interactiveController.on(a.interactives,({type:S,actionType:v})=>{var W,D,L,J;if(!this.store)return;let E=I.getValue();if(S==="action-choice"&&v==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Ls)),S==="action-choice-canceled"){let ue=je(this.store.state.isPlaying$)||E;if((W=this.videoConfig)!=null&&W.isMobile&&ue){this.store.ui.interactiveHideMobileControls.set(!0);return}(J=(D=this.videoConfig)==null?void 0:(L=D.callbacks).onDisabledInteractiveClick)==null||J.call(L)}}),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let S=this.interactiveController.getHistoryState();this.subscription.add(S.history$.subscribe(v=>{var E,W,D;v.length&&((D=(W=(E=this.videoConfig)==null?void 0:E.callbacks)==null?void 0:W.onInteractiveHistoryChanged)==null||D.call(W,v))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var S,v,E,W;(S=this.microStoresRoot)==null||S.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(W=(v=this.videoConfig)==null?void 0:(E=v.callbacks).onInteractiveTimeIndicatorClick)==null||W.call(E)})),this.interactiveController.on(a.errors,S=>{this.log({message:S.toString()})})}catch(s){this.log({message:s.message})}})}initPlayer(t,n={}){var o,r,s,a,l,u,c,m,h,y,g,I,C,V,S,v,E,W,D,L,J;if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=$l(p7,s7(t,ue=>ue instanceof HTMLElement?ue:void 0)),this.uiConfig=td((o=n.ui)!=null?o:{}),this.coreConfig=(r=n.core)!=null?r:{configName:[]},this.statisticsConfig=(s=n.statistics)!=null?s:{},this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},Ff(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(u=(l=this.uiConfig.features.mediaSession)!=null?l:this.videoConfig.isMediaSessionEnabled)!=null?u:!0),Ff(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(m=(c=this.uiConfig.features.pip)!=null?c:this.videoConfig.isPictureInPictureEnabled)!=null?m:!0,this.uiConfig.features.dpip=(y=(h=this.uiConfig.features.dpip)!=null?h:this.videoConfig.isPictureInPictureEnabled)!=null?y:!0),this.videoConfig.isMobile=(g=this.uiConfig.isMobile)!=null?g:this.videoConfig.isMobile,(I=this.videoConfig).autoplay&&(I.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(C=this.uiConfig.ads.enable)!=null?C:this.videoConfig.showAds,this.videoConfig.adsSlotId=(V=this.uiConfig.ads.slot)!=null?V:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(S=this.uiConfig.ads.preview)!=null?S:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((v=this.uiConfig.showLogo)!=null?v:!this.videoConfig.logoHidden),(E=this.videoConfig).canRewindLive&&(E.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(W=this.videoConfig.supportLink)!=null?W:this.uiConfig.supportLink,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((D=this.videoConfig.videos)!=null&&D[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=Jl.getLatestSupportedVersion():this.pictureInPictureApi=new lr),this.mediaSessionApi=this.uiConfig.features.mediaSession?new Xl:void 0,this.annotationsApi=this.uiConfig.features.annotations?new ea:void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(L=this.svelteStubComponent)==null||L.$destroy(),(J=this.svelteRootComponent)==null||J.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0),t.interactiveData?this.initInteractives():this.createPlayer(t.videos[this.currentPlayingVideoIndex]),X_(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){var o;if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();(o=this.svelteRootComponent)==null||o.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){var t,n;this.mediaSessionApi&&((t=this.unsubscribePlayerPhaseSubscription)==null||t.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(n=this.store)==null?void 0:n.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}=Xe({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let t="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:t}),this.mediaSessionApi.updateActionHandlers(n),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}play(){var t,n,o,r;this.isControlDisabled("PLAY_BUTTON")||(t=this.store)!=null&&t.playerPhase.is("LiveWaitingStart")||(n=this.store)!=null&&n.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var t;this.log({message:"pause"}),(t=this.svelteRootComponent)==null||t.pause()}stop(){var o,r,s;if(!this.videoConfig)return;this.log({message:"stop"});let t=!!this.interactiveController;t&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0),(o=this.svelteStubComponent)==null||o.$destroy(),(r=this.mediaSessionApi)==null||r.destroy();let n=this.videoConfig.videos[0];n&&((s=this.svelteRootComponent)==null||s.$destroy(),t?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(n))}setMuted(t){var n;this.log({message:`set muted, muted: ${t}`}),(n=this.svelteRootComponent)==null||n.setMuted(t)}setVolume(t){var n;this.log({message:`set volume, volume: ${t}`}),(n=this.svelteRootComponent)==null||n.setVolume(t)}setRepeat(t){var n;this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,(n=this.svelteRootComponent)==null||n.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){var n;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekTime(t))}seekEpisodeStartTime(t){var n;this.log({message:`seek episode start time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekEpisodeStartTime(t)}returnFocusToEpisodes(){var t;this.log({message:"return focus to episodes button"}),(t=this.svelteRootComponent)==null||t.returnFocusToEpisodes()}setPlaybackRate(t){var n;this.log({message:`set playback rate to: ${t}`}),(n=this.svelteRootComponent)==null||n.setPlaybackRate(t)}setAutoQualityLimits(t){var n,o,r;this.log({message:`set auto quality limitation. Max: ${(n=t.max)!=null?n:"none"}. Min: ${(o=t.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(t)}addLanguage(t){var n;(n=this.store)==null||n.actions.internal.addLanguage(t)}setLanguage(t){return mt(this,null,function*(){var n;yield(n=this.store)==null?void 0:n.actions.internal.setLanguage(t)})}setLiveStart(t){var n,o,r;this.log({message:"live started"}),(n=this.store)==null||n.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(t,{autoplay:!0})}setLiveWaitingRecover(){var t,n;this.log({message:"live waiting"}),(t=this.store)==null||t.actions.internal.setLiveWaitingRecover(!0),(n=this.store)==null||n.destroy()}setLiveWaitingRecord(){var t,n;this.log({message:"post live"}),(t=this.store)==null||t.actions.internal.setLiveWaitingRecord(!0),(n=this.store)==null||n.destroy()}setLiveEnd(t){var n,o,r;this.log({message:"live ended"}),(n=this.store)==null||n.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingRecord(!1),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){var t,n;return(n=(t=this.statistics)==null?void 0:t.oneStat.getDeviceId())!=null?n:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(t){return mt(this,null,function*(){var n;if(this.interactiveController&&((n=this.store)!=null&&n.state.positionExact$)){let o=je(this.store.state.positionExact$),s=je(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe(d7()).subscribe(()=>{s&&o>=s.time?this.seekTime(s.time):this.seekTime(o),t==null||t()});let a=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:a.chapter.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(t,n=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){var t;(t=this.store)==null||t.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(t,n){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(t,n)}addAdditionalSettingsItem(t){var n;(n=this.store)==null||n.actions.external.addAdditionalSettingsItem(t)}removeAdditionalSettingsItem(t){var n;(n=this.store)==null||n.actions.external.removeAdditionalSettingsItem(t)}updateAdditionalContextItem(t,n){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(t,n)}addAdditionalContextItem(t){var n;(n=this.store)==null||n.actions.external.addAdditionalContextItem(t)}removeAdditionalContextItem(t){var n;(n=this.store)==null||n.actions.external.removeAdditionalContextItem(t)}updateAdditionalButton(t,n){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(t,n)}addAdditionalButton(t){var n;(n=this.store)==null||n.actions.external.addAdditionalButton(t)}removeAdditionalButton(t){var n;(n=this.store)==null||n.actions.external.removeAdditionalButton(t)}updateStatContext(t){this.statistics&&this.statistics.oneStat.updateContext(t)}handleTimerNextVideo(t){var n;(n=this.store)==null||n.actions.internal.setTimerNextVideoRunning(t)}focus(){var t,n,o;(o=(n=(t=this.svelteRootComponent)==null?void 0:t.keyboardControls)==null?void 0:n.focus)==null||o.call(n)}};import{InterfaceLanguage as RW,VKNumericLanguage as BW,loadVKLangPack as NW}from"@vkontakte/videoplayer-shared";import{VideoQuality as OW,VideoFormat as FW}from"@vkontakte/videoplayer-core";var PW=()=>{window.customElements.define("vk-video-player",na)};export{Il as ControlButtonType,bo as GridTypes,RW as InterfaceLanguage,Xs as MenuItemType,Tr as VERSION,BW as VKNumericLanguage,FW as VideoFormat,OW as VideoQuality,NW as loadVKLangPack,PW as registerPlayerWebComponent};
|