@vkontakte/videoplayer 1.1.44-dev.ba8928f2.0 → 1.1.44-dev.c65c6bd4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015.cjs.js +16 -16
- package/es2015.esm.js +16 -16
- package/es2018.cjs.js +16 -16
- package/es2018.esm.js +16 -16
- package/esnext.cjs.js +12 -12
- package/esnext.esm.js +13 -13
- package/evergreen.esm.js +13 -13
- package/package.json +5 -5
- package/types/types/index.d.ts +1 -0
package/esnext.esm.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.44-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.44-dev.c65c6bd4.0
|
|
3
|
+
* Tue, 24 Sep 2024 10:46:20 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-44/doc/
|
|
5
5
|
*/
|
|
6
|
-
function Se(){}function ue(i,e){for(let t in e)i[t]=e[t];return i}function ds(i){return i()}function Wl(){return Object.create(null)}function tt(i){i.forEach(ds)}function Pi(i){return typeof i=="function"}function F(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Kl;function ms(i,e){return i===e?!0:(Kl||(Kl=document.createElement("a")),Kl.href=e,i===Kl.href)}function Ic(i){return Object.keys(i).length===0}function Ft(i,...e){if(i==null){for(let n of e)n(void 0);return Se}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Je(i){let e;return Ft(i,t=>e=t)(),e}function q(i,e,t){i.$$.on_destroy.push(Ft(e,t))}function Te(i,e,t,n){if(i){let o=Tc(i,e,t,n);return i[0](o)}}function Tc(i,e,t,n){return i[1]&&n?ue(t.ctx.slice(),i[1](n(e))):t.ctx}function Ee(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Ae(i,e,t,n,o,l){if(o){let r=Tc(e,t,n,l);i.p(r,o)}}function Le(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ve(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Ec(i){return i??""}var wo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var jl=class i{_listeners="WeakMap"in wo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};jl.entries="WeakMap"in wo?new WeakMap:void 0;var Ac=!1;function Lc(){Ac=!0}function Mc(){Ac=!1}function m(i,e){i.appendChild(e)}function Pe(i,e,t){let n=Vc(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,__(n,o)}}function Vc(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function __(i,e){return m(i.head||i,e),e.sheet}function C(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function Ii(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 R(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Re(i){return document.createTextNode(i)}function M(){return Re(" ")}function ut(){return Re("")}function _e(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Ht(i){return function(e){return e.preventDefault(),i.call(this,e)}}function ot(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ye(i,e){for(let t in e)c(i,t,e[t])}function Rc(i){return Array.from(i.childNodes)}function We(i,e){e=""+e,i.data!==e&&(i.data=e)}function pi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Gl;function h_(){if(Gl===void 0){Gl=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Gl=!0}}return Gl}function Go(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=P("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=h_(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=_e(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=_e(n.contentWindow,"resize",e),e()}),m(i,n),()=>{(o||l&&n.contentWindow)&&l(),k(n)}}function D(i,e,t){i.classList.toggle(e,!!t)}function Bc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function vn(i,e){return new i(e)}var no;function Zn(i){no=i}function Qo(){if(!no)throw new Error("Function called outside component initialization");return no}function It(i){Qo().$$.on_mount.push(i)}function zn(i){Qo().$$.on_destroy.push(i)}function Yo(i,e){return Qo().$$.context.set(i,e),e}function Zo(i){return Qo().$$.context.get(i)}function kl(){return Qo().$$.context}function Pn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Co=[];var be=[],Jo=[],_s=[],qc=Promise.resolve(),hs=!1;function gs(){hs||(hs=!0,qc.then(Ql))}function Un(){return gs(),qc}function Kn(i){Jo.push(i)}function Ne(i){_s.push(i)}var ps=new Set,Xo=0;function Ql(){if(Xo!==0)return;let i=no;do{try{for(;Xo<Co.length;){let e=Co[Xo];Xo++,Zn(e),w_(e.$$)}}catch(e){throw Co.length=0,Xo=0,e}for(Zn(null),Co.length=0,Xo=0;be.length;)be.pop()();for(let e=0;e<Jo.length;e+=1){let t=Jo[e];ps.has(t)||(ps.add(t),t())}Jo.length=0}while(Co.length);for(;_s.length;)_s.pop()();hs=!1,ps.clear(),Zn(i)}function w_(i){if(i.fragment!==null){i.update(),tt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Kn)}}function Nc(i){let e=[],t=[];Jo.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Jo=e}var Yl=new Set,So;function me(){So={r:0,c:[],p:So}}function pe(){So.r||tt(So.c),So=So.p}function d(i,e){i&&i.i&&(Yl.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(Yl.has(i))return;Yl.add(i),So.c.push(()=>{Yl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function St(i){return i?.length!==void 0?i:Array.from(i)}function Be(i,e){let t={},n={},o={$$scope:1},l=i.length;for(;l--;){let r=i[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in t||(t[r]=void 0);return t}function Oc(i){return typeof i=="object"&&i!==null?i:{}}var C_=["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"],S_=new Set([...C_]);function Oe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function V(i){i&&i.c()}function A(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Kn(()=>{let l=i.$$.on_mount.map(ds).filter(Pi);i.$$.on_destroy?i.$$.on_destroy.push(...l):tt(l),i.$$.on_mount=[]}),o.forEach(Kn)}function L(i,e){let t=i.$$;t.fragment!==null&&(Nc(t.after_update),tt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function I_(i,e){i.$$.dirty[0]===-1&&(Co.push(i),gs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function U(i,e,t,n,o,l,r=null,a=[-1]){let s=no;Zn(i);let u=i.$$={fragment:null,ctx:[],props:l,update:Se,not_equal:o,bound:Wl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Wl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(p,h,...S)=>{let g=S.length?S[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&I_(i,p)),h}):[],u.update(),f=!0,tt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Lc();let p=Rc(e.target);u.fragment&&u.fragment.l(p),p.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),A(i,e.target,e.anchor),Mc(),Ql()}Zn(s)}var T_;typeof HTMLElement=="function"&&(T_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return()=>{let r;return{c:function(){r=P("slot"),l!=="default"&&c(r,"name",l)},m:function(u,f){C(u,r,f)},d:function(u){u&&k(r)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=Bc(this);for(let l of this.$$s)l in n&&(t[l]=[e(l)]);for(let l of this.attributes){let r=this.$$g_p(l.name);r in this.$$d||(this.$$d[r]=bs(r,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let r=bs(l,this.$$d[l],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let l in this.$$l)for(let r of this.$$l[l]){let a=this.$$c.$on(l,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=bs(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function bs(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var H=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=Se}$on(e,t){if(!Pi(t))return Se;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&&!Ic(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Fc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Fc);import"@vkontakte/videoplayer-core";import{noop as _l,safeStorage as O6,throttleFn as F6}from"@vkontakte/videoplayer-shared";import{SeekAction as H6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as E_,fillWithDefault as A_,VideoQuality as L_}from"@vkontakte/videoplayer-shared";var M_={isMobile:void 0,defaultLanguage:E_.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:L_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Hc=i=>A_(i,M_),zc=i=>Yo("ui-config",i),Vt=()=>Zo("ui-config");var wl="vk_player_debug_panel_opened";var Uc="videoplayer",Kc="videoplayer";var Gn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Wc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),jc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Gc=new Set(["ShiftRight","ShiftLeft"]);var Qc=["TIMELINE"],Cl=[...Qc,"GRAPH_BUTTON"],vs=[...Qc,"PLAY_BUTTON"],Zl=[...Cl,"PLAY_BUTTON"];var Io=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(Io||{}),To={xs:0,s:1,m:2,l:3,xl:4};var xo=[];function Rn(i,e){return{subscribe:De(i,e).subscribe}}function De(i,e=Se){let t,n=new Set;function o(a){if(F(i,a)&&(i=a,t)){let s=!xo.length;for(let u of n)u[1](),xo.push(u,i);if(s){for(let u=0;u<xo.length;u+=2)xo[u][0](xo[u+1]);xo.length=0}}}function l(a){o(a(i))}function r(a,s=Se){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,l)||Se),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:l,subscribe:r}}function Ti(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return Rn(t,(r,a)=>{let s=!1,u=[],f=0,p=Se,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=Pi(g)?g:Se},S=o.map((g,w)=>Ft(g,b=>{u[w]=b,f&=~(1<<w),s&&h()},()=>{f|=1<<w}));return s=!0,h(),function(){tt(S),p(),s=!1}})}import{assertNonNullable as Yc,VERSION as V_}from"@vkontakte/videoplayer-shared";import{VERSION as R_}from"@vkontakte/videoplayer-core";import{VERSION as B_}from"@vkontakte/videoplayer-statistics";var Xl="prod",$o="1.1.44-dev.ba8928f2.0";var Eo=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Zc=Symbol("storeContext"),Xc=Symbol("microStoresContext"),Jc=(i,e)=>{Yo(Zc,i),Yo(Xc,e),Xl==="dev"&&(window.app={store:i,microStores:e})},it=()=>{let i=Zo(Zc);return Yc(i,"Store context is empty!"),i},Bn=()=>{let i=Zo(Xc);return Yc(i,"MicroStores context is empty!"),i},bt=(i,e)=>ys(i,i.getValue(),e),ys=(i,e,t)=>Rn(e,n=>{let o=i.subscribe(l=>{n(l),t?.(l)});return()=>o.unsubscribe()}),xc=(i,e,t)=>{let n=i.info,{width:o,height:l}=Je(t.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${$o} (core: ${R_}, stat: ${B_}, shared: ${V_})`,f=Je(t.state.errorLog$),p=f.length?`
|
|
6
|
+
function Se(){}function ce(i,e){for(let t in e)i[t]=e[t];return i}function ds(i){return i()}function Wl(){return Object.create(null)}function it(i){i.forEach(ds)}function Ai(i){return typeof i=="function"}function F(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Kl;function ms(i,e){return i===e?!0:(Kl||(Kl=document.createElement("a")),Kl.href=e,i===Kl.href)}function Ic(i){return Object.keys(i).length===0}function Ft(i,...e){if(i==null){for(let n of e)n(void 0);return Se}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function xe(i){let e;return Ft(i,t=>e=t)(),e}function q(i,e,t){i.$$.on_destroy.push(Ft(e,t))}function Te(i,e,t,n){if(i){let o=Tc(i,e,t,n);return i[0](o)}}function Tc(i,e,t,n){return i[1]&&n?ce(t.ctx.slice(),i[1](n(e))):t.ctx}function Ee(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Ae(i,e,t,n,o,l){if(o){let r=Tc(e,t,n,l);i.p(r,o)}}function Le(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Ec(i){return i??""}var ko=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var jl=class i{_listeners="WeakMap"in ko?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};jl.entries="WeakMap"in ko?new WeakMap:void 0;var Ac=!1;function Lc(){Ac=!0}function Mc(){Ac=!1}function m(i,e){i.appendChild(e)}function Pe(i,e,t){let n=Vc(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,__(n,o)}}function Vc(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function __(i,e){return m(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function Li(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function R(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Re(i){return document.createTextNode(i)}function M(){return Re(" ")}function ut(){return Re("")}function pe(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Ht(i){return function(e){return e.preventDefault(),i.call(this,e)}}function rt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ke(i,e){for(let t in e)c(i,t,e[t])}function Rc(i){return Array.from(i.childNodes)}function We(i,e){e=""+e,i.data!==e&&(i.data=e)}function gi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Gl;function h_(){if(Gl===void 0){Gl=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Gl=!0}}return Gl}function Go(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=P("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=h_(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=pe(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=pe(n.contentWindow,"resize",e),e()}),m(i,n),()=>{(o||l&&n.contentWindow)&&l(),k(n)}}function D(i,e,t){i.classList.toggle(e,!!t)}function Bc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function vn(i,e){return new i(e)}var oo;function Xn(i){oo=i}function Qo(){if(!oo)throw new Error("Function called outside component initialization");return oo}function It(i){Qo().$$.on_mount.push(i)}function Hn(i){Qo().$$.on_destroy.push(i)}function Yo(i,e){return Qo().$$.context.set(i,e),e}function Zo(i){return Qo().$$.context.get(i)}function wl(){return Qo().$$.context}function Pn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var wo=[];var ge=[],Jo=[],_s=[],qc=Promise.resolve(),hs=!1;function gs(){hs||(hs=!0,qc.then(Ql))}function zn(){return gs(),qc}function Un(i){Jo.push(i)}function qe(i){_s.push(i)}var ps=new Set,Xo=0;function Ql(){if(Xo!==0)return;let i=oo;do{try{for(;Xo<wo.length;){let e=wo[Xo];Xo++,Xn(e),w_(e.$$)}}catch(e){throw wo.length=0,Xo=0,e}for(Xn(null),wo.length=0,Xo=0;ge.length;)ge.pop()();for(let e=0;e<Jo.length;e+=1){let t=Jo[e];ps.has(t)||(ps.add(t),t())}Jo.length=0}while(wo.length);for(;_s.length;)_s.pop()();hs=!1,ps.clear(),Xn(i)}function w_(i){if(i.fragment!==null){i.update(),it(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Un)}}function Nc(i){let e=[],t=[];Jo.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Jo=e}var Yl=new Set,So;function de(){So={r:0,c:[],p:So}}function me(){So.r||it(So.c),So=So.p}function d(i,e){i&&i.i&&(Yl.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(Yl.has(i))return;Yl.add(i),So.c.push(()=>{Yl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function kt(i){return i?.length!==void 0?i:Array.from(i)}function Be(i,e){let t={},n={},o={$$scope:1},l=i.length;for(;l--;){let r=i[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in t||(t[r]=void 0);return t}function Oc(i){return typeof i=="object"&&i!==null?i:{}}var S_=["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"],C_=new Set([...S_]);function Ne(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function V(i){i&&i.c()}function A(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Un(()=>{let l=i.$$.on_mount.map(ds).filter(Ai);i.$$.on_destroy?i.$$.on_destroy.push(...l):it(l),i.$$.on_mount=[]}),o.forEach(Un)}function L(i,e){let t=i.$$;t.fragment!==null&&(Nc(t.after_update),it(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function I_(i,e){i.$$.dirty[0]===-1&&(wo.push(i),gs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function U(i,e,t,n,o,l,r=null,a=[-1]){let s=oo;Xn(i);let u=i.$$={fragment:null,ctx:[],props:l,update:Se,not_equal:o,bound:Wl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Wl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(p,h,...C)=>{let g=C.length?C[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&I_(i,p)),h}):[],u.update(),f=!0,it(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Lc();let p=Rc(e.target);u.fragment&&u.fragment.l(p),p.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),A(i,e.target,e.anchor),Mc(),Ql()}Xn(s)}var T_;typeof HTMLElement=="function"&&(T_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return()=>{let r;return{c:function(){r=P("slot"),l!=="default"&&c(r,"name",l)},m:function(u,f){S(u,r,f)},d:function(u){u&&k(r)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=Bc(this);for(let l of this.$$s)l in n&&(t[l]=[e(l)]);for(let l of this.attributes){let r=this.$$g_p(l.name);r in this.$$d||(this.$$d[r]=bs(r,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let r=bs(l,this.$$d[l],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let l in this.$$l)for(let r of this.$$l[l]){let a=this.$$c.$on(l,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=bs(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function bs(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var H=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=Se}$on(e,t){if(!Ai(t))return Se;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&&!Ic(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Fc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Fc);import"@vkontakte/videoplayer-core";import{noop as _l,safeStorage as O6,throttleFn as F6}from"@vkontakte/videoplayer-shared";import{SeekAction as H6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as E_,fillWithDefault as A_,VideoQuality as L_}from"@vkontakte/videoplayer-shared";var M_={isMobile:void 0,defaultLanguage:E_.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:L_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Hc=i=>A_(i,M_),zc=i=>Yo("ui-config",i),Dt=()=>Zo("ui-config");var Sl="vk_player_debug_panel_opened";var Uc="videoplayer",Kc="videoplayer";var Qn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Wc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),jc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Gc=new Set(["ShiftRight","ShiftLeft"]);var Qc=["TIMELINE"],Cl=[...Qc,"GRAPH_BUTTON"],vs=[...Qc,"PLAY_BUTTON"],Zl=[...Cl,"PLAY_BUTTON"];var Po=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(Po||{}),Io={xs:0,s:1,m:2,l:3,xl:4};var xo=[];function Vn(i,e){return{subscribe:De(i,e).subscribe}}function De(i,e=Se){let t,n=new Set;function o(a){if(F(i,a)&&(i=a,t)){let s=!xo.length;for(let u of n)u[1](),xo.push(u,i);if(s){for(let u=0;u<xo.length;u+=2)xo[u][0](xo[u+1]);xo.length=0}}}function l(a){o(a(i))}function r(a,s=Se){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,l)||Se),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:l,subscribe:r}}function Mi(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return Vn(t,(r,a)=>{let s=!1,u=[],f=0,p=Se,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=Ai(g)?g:Se},C=o.map((g,w)=>Ft(g,b=>{u[w]=b,f&=~(1<<w),s&&h()},()=>{f|=1<<w}));return s=!0,h(),function(){it(C),p(),s=!1}})}import{assertNonNullable as Yc,VERSION as V_}from"@vkontakte/videoplayer-shared";import{VERSION as R_}from"@vkontakte/videoplayer-core";import{VERSION as B_}from"@vkontakte/videoplayer-statistics";var Xl="prod",$o="1.1.44-dev.c65c6bd4.0";var To=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Zc=Symbol("storeContext"),Xc=Symbol("microStoresContext"),Jc=(i,e)=>{Yo(Zc,i),Yo(Xc,e),Xl==="dev"&&(window.app={store:i,microStores:e})},ot=()=>{let i=Zo(Zc);return Yc(i,"Store context is empty!"),i},Rn=()=>{let i=Zo(Xc);return Yc(i,"MicroStores context is empty!"),i},gt=(i,e)=>ys(i,i.getValue(),e),ys=(i,e,t)=>Vn(e,n=>{let o=i.subscribe(l=>{n(l),t?.(l)});return()=>o.unsubscribe()}),xc=(i,e,t)=>{let n=i.info,{width:o,height:l}=xe(t.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${$o} (core: ${R_}, stat: ${B_}, shared: ${V_})`,f=xe(t.state.errorLog$),p=f.length?`
|
|
7
7
|
`+f.map((E,v)=>{let y=`${v}) Type: ${E.id}
|
|
8
8
|
`,I=`Message: ${E.message} (${E.thrown})
|
|
9
9
|
`,K=`Trace: ${E.thrown?.stack}
|
|
10
10
|
`;return y+I+K}).join(`
|
|
11
|
-
`):void 0,h=t.state.isAudioDisabled?"disabled":
|
|
12
|
-
`)},$c=(i,e,t)=>{let n=i.info,{width:o,height:l}=Je(t.ui.playerSize),r={version:$o,viewport:`${o}x${l}`,volume:Math.round(Je(t.state.volume$)*100)};r.id=t.videoId,n.currentFormat$.getValue()&&(r.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(r.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(r.videoSize=`${u.width}x${u.height}`);let f=n.currentBuffer$.getValue(),p=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();f&&(p&&h?r.buffer=f.end-h:r.buffer=Math.max(f.end-Je(t.state.positionExact$),0));let S=n.throughputEstimation$.getValue();S&&(r.speed=S);let g=n.videoBitrate$.getValue();g&&(r.bitrate=g);let w=n.currentVideoSegmentLength$.getValue();w&&(r.currentVideoSegmentLength=w);let b=n.currentAudioSegmentLength$.getValue();b&&(r.currentAudioSegmentLength=b);let E=Je(t.vsid);typeof E=="string"&&(r.vsid=E);let v=i.info.currentVideoStream$.getValue()?.codec;v&&(r.videoCodec=v);let y=i.info.currentAudioStream$.getValue()?.codec;y&&(r.audioCodec=y),i.info.currentVideoStream$.getValue()?.hdr&&(r.hdr=!0);let K=i.info.currentAudioStream$.getValue()?.language;return K&&(r.audioLanguage=K),r},ef=(i,e)=>Eo(i,e,"mp4");import{isNullable as ks,safeStorage as Dn}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";var tf="vk_player_prefer_traffic_saving_enabled",nf="vk_player_preferred_volume",of="vk_player_prefer_volume_mute",ws="vk_player_preferred_quality",lf="vk_player_preferred_stream_language",rf="vk_player_preferred_rate",sf=i=>i>1?1:i<0?0:i,Cs=i=>Dn.set(nf,sf(i).toString(10)),Jl=()=>{let i=Dn.get(nf);return ks(i)?void 0:sf(parseFloat(i))},af=(i,e)=>Dn.set(ws,JSON.stringify({videoId:i,value:e})),Ss=()=>Dn.remove(ws),uf=i=>{let e=Dn.get(ws);if(ks(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){Ss();return}return n},cf=(i,e)=>{e?Dn.set(i,"true"):Dn.remove(i)},ff=i=>Dn.get(i)==="true",xl=i=>cf(of,i),df=()=>ff(of),mf=i=>cf(tf,i),pf=()=>ff(tf),_f=()=>Dn.get(lf),Ps=i=>Dn.set(lf,i),hf=i=>Dn.set(rf,JSON.stringify({rate:i})),gf=()=>{let i=Dn.get(rf);if(ks(i))return;let{rate:e}=JSON.parse(i);return e};import{PlaybackState as S6}from"@vkontakte/videoplayer-core";import{noop as uc}from"@vkontakte/videoplayer-shared";function D_(i){let e,t,n,o,l,r,a,s,u,f,p,h,S,g,w,b,E,v=i[2].default,y=Te(v,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],K={};for(let B=0;B<I.length;B+=1)K=ue(K,I[B]);return{c(){e=R("svg"),y&&y.c(),t=R("g"),n=R("path"),o=R("path"),l=R("path"),r=R("path"),a=R("path"),s=R("defs"),u=R("filter"),f=R("feFlood"),p=R("feColorMatrix"),h=R("feOffset"),S=R("feGaussianBlur"),g=R("feColorMatrix"),w=R("feBlend"),b=R("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(n,"d","M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(o,"d","M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"),c(l,"fill","#fff"),c(l,"fill-rule","evenodd"),c(l,"d","M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z"),c(l,"clip-rule","evenodd"),c(r,"fill","#fff"),c(r,"d","M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"),c(a,"stroke","#000"),c(a,"stroke-linecap","round"),c(a,"stroke-linejoin","round"),c(a,"stroke-opacity",".12"),c(a,"stroke-width",".5"),c(a,"d","m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"),c(t,"filter","url(#a)"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(p,"in","SourceAlpha"),c(p,"result","hardAlpha"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(S,"stdDeviation","2.5"),c(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(w,"in2","BackgroundImageFix"),c(w,"result","effect1_dropShadow_618_12297"),c(b,"in","SourceGraphic"),c(b,"in2","effect1_dropShadow_618_12297"),c(b,"result","shape"),c(u,"id","a"),c(u,"width","75"),c(u,"height","44"),c(u,"x",".5"),c(u,"y",".5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),ye(e,K)},m(B,O){C(B,e,O),y&&y.m(e,null),m(e,t),m(t,n),m(t,o),m(t,l),m(t,r),m(t,a),m(e,s),m(s,u),m(u,f),m(u,p),m(u,h),m(u,S),m(u,g),m(u,w),m(u,b),E=!0},p(B,[O]){y&&y.p&&(!E||O&2)&&Ae(y,v,B,B[1],E?Ee(v,B[1],O,null):Le(B[1]),null),ye(e,K=Be(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},O&1&&B[0]]))},i(B){E||(d(y,B),E=!0)},o(B){_(y,B),E=!1},d(B){B&&k(e),y&&y.d(B)}}}function q_(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Is=class extends H{constructor(e){super(),U(this,e,q_,D_,F,{})}},$l=Is;import{isNullable as yf,InterfaceLanguage as kf}from"@vkontakte/videoplayer-shared";var N_={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_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445: {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"},bf=N_;var O_={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_traffic_saving:"Data saving: {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"},vf=O_;var Xn=new Map;Xn.set(kf.EN,vf);Xn.set(kf.RU,bf);var wf=new Map,Ts=({language:i,pack:e,fallback:t})=>{if(Xn.has(i)){let n=Xn.get(i);Xn.set(i,{...n,...e})}else Xn.set(i,e);wf.set(i,t)},Es=i=>Xn.has(i),As=(i,e,t,n)=>{let l=Xn.get(i)?.[e];if(yf(l)){let r=wf.get(i)??n;l=(r?Xn.get(r):void 0)?.[e]}return yf(l)?e+Object.values(t??{}).join(" "):t?l.replaceAll(/{(\w+?)}/g,(r,a)=>t[a]??""):l},N=(i,e)=>{let{interfaceLanguage$:t}=it(),n=Je(t),o=Vt();return As(n,i,e,o.defaultLanguage)};import"@vkontakte/videoplayer-core";var el;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(el||(el={}));var F_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,H_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,z_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,er="?",U_="X-Sentry-Auth",K_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function W_(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
|
|
13
|
-
`),n,o;for(let l=0;l<t.length;++l){if(n=F_.exec(t[l]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||er,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=z_.exec(t[l]))o={filename:n[2],function:n[1]||er,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=H_.exec(t[l]))l===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||er,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=er),e.push(o)}return e.length?{value:
|
|
14
|
-
`).filter(t=>!!t)[0]}function j_(i){try{let e=W_(i);if(e)return e}catch{}return{value:Cf(i),type:i&&i.name,stacktrace:{frames:[]}}}function G_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var tr=class{constructor(e){if(e&&e.dsn){let t=K_.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),l=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(l?"/"+l:"")+"/api/"+o.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[j_(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(U_,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:G_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Sf(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function Q_(){return window}var ir=class i extends tr{constructor(e,t=Q_()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:l=u=>u,blacklistUrls:r=[],ignoreErrors:a=[],release:s=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=l,this.blacklistUrls=r,this.ignoreErrors=a,this.release=s}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new i({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send({...this.getRequestBlank(),message:e,level:t})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(t=>this.ignoreErrors.some(n=>Sf(t,n))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>Sf(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch{return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],l=Array.isArray(o)?o:null,r=e[n],a=Array.isArray(r)?r:null;return{...t,[n]:l||a?[...l||[],...a||[]]:{...typeof o!="string"?o:{},...typeof r!="string"?r:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}};import{isNonNullable as nr,Subscription as Y_}from"@vkontakte/videoplayer-shared";var or=null,Ao=class{constructor(e,t,n={}){!or&&e.dsn&&(this.sentryClient=new ir({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Y_,this.options=e,this.context=n,or=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),or=null}logIError(e,t=!1){e.thrown&&this.report(e.thrown,{fatal:t,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,t={},n={}){let{sentryClient:o,context:l,options:r}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:p}=r,{errorType:h,category:S}=t;if(nr(S)&&p.includes(S)||nr(h)&&f.includes(h))return;if(Math.random()<=a||nr(S)&&u.includes(S)||nr(h)&&s.includes(h)){Object.keys(t).length&&o.setTags({version:this.version,...t}),(Object.keys(l).length||Object.keys(n).length)&&o.setExtras({...l,...n});try{h&&o.captureMessage(h,t.fatal?el.fatal:el.error),o.report(e)}catch(w){console.error(w)}}}static getInstance(){return or}};var lr=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e?.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},rr=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Pf=i=>{let e=i;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},Sl=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},oo=()=>!!Sl(),sr=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},ar=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},If=i=>{let e=window.screen;return(async o=>e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject())(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};import{clientChecker as Tf}from"@vkontakte/videoplayer-shared";var Ef=()=>({title:N("hotkey_map_modal_title"),closeBtnText:N("hotkey_map_modal_close_btn_text"),groups:[{title:N("hotkey_map_group_title_common"),items:[{description:N("hotkey_map_item_mute_description"),value:N("hotkey_map_item_mute_value")},{description:N("hotkey_map_item_volume_up_description"),value:N("hotkey_map_item_volume_up_value")},{description:N("hotkey_map_item_volume_down_description"),value:N("hotkey_map_item_volume_down_value")},{description:N("hotkey_map_item_pip_description"),value:N("hotkey_map_item_pip_value")},{description:N("hotkey_map_item_full_screen_description"),value:N("hotkey_map_item_full_screen_value")},{description:N("hotkey_map_item_show_context_menu_description"),value:N("hotkey_map_item_show_context_menu_value")},{description:N("hotkey_map_item_show_hotkey_map_description"),value:N("hotkey_map_item_show_hotkey_map_value")}]},{title:N("hotkey_map_group_title_playback"),items:[{description:N("hotkey_map_item_play_toggle_description"),value:N("hotkey_map_item_play_toggle_value")},{description:N("hotkey_map_item_seek_backward_description"),value:N("hotkey_map_item_seek_backward_value")},{description:N("hotkey_map_item_seek_forward_description"),value:N("hotkey_map_item_seek_forward_value")},{description:N("hotkey_map_item_fast_seek_backward_description"),value:N("hotkey_map_item_fast_seek_backward_value")},{description:N("hotkey_map_item_fast_seek_forward_description"),value:N("hotkey_map_item_fast_seek_forward_value")},{description:N("hotkey_map_item_rate_down_description"),value:N("hotkey_map_item_rate_down_value")},{description:N("hotkey_map_item_rate_up_description"),value:N("hotkey_map_item_rate_up_value")},{description:N("hotkey_map_item_prev_frame_description"),value:N("hotkey_map_item_prev_frame_value")},{description:N("hotkey_map_item_next_frame_description"),value:N("hotkey_map_item_next_frame_value")},{description:N("hotkey_map_item_jump_seek_description"),value:N("hotkey_map_item_jump_seek_value")}]},{title:N("hotkey_map_group_title_subtitles"),items:[{description:N("hotkey_map_item_subtitles_toggle_description"),value:N("hotkey_map_item_subtitles_toggle_value")}]},{title:N("hotkey_map_group_title_episodes"),items:[{description:N("hotkey_map_item_prev_episode_description"),value:Tf.isApple?N("hotkey_map_item_prev_episode_mac_value"):N("hotkey_map_item_prev_episode_pc_value")},{description:N("hotkey_map_item_next_episode_description"),value:Tf.isApple?N("hotkey_map_item_next_episode_mac_value"):N("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as Z_,clientChecker as X_,ValueSubject as J_}from"@vkontakte/videoplayer-shared";var Lo=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:Z_(this.onResize.bind(this),300)};this.info={isActive$:new J_(this.isActive()),type:0}}isSupported(){return document.pictureInPictureEnabled&&!X_.isYandex}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){if(!(!this.isSupported()||this.isActive()))try{await this.videoElement?.requestPictureInPicture()}catch{this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&(this.videoElement=this.playerContainer?.querySelector("video"))}registryEventHandlers(){this.videoElement?.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){this.videoElement?.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n?.removeEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.leavepictureinpicture?.(e),this.playerDummyElement?.$destroy()}onResize(e){this.externalEventHandlers.resize?.(e)}};function Mo(i){return i instanceof Lo}function x_(i){let e=it();return It(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Vs=class extends H{constructor(e){super(),U(this,e,x_,null,F,{})}},Af=Vs;import{noop as $_}from"@vkontakte/videoplayer-shared";function eh(i){Pe(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 th(i){let e=N("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=Re(e)},m(n,o){C(n,t,o)},p(n,o){o&3&&e!==(e=N("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&We(t,e)},d(n){n&&k(t)}}}function ih(i){let e,t=N("skip_ads_now")+"",n,o,l,r,a,s;return{c(){e=P("div"),n=Re(t),o=M(),l=R("svg"),r=R("path"),c(r,"fill-rule","evenodd"),c(r,"clip-rule","evenodd"),c(r,"d","M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"),c(l,"class","icon svelte-1k4i25s"),c(l,"width","7"),c(l,"height","12"),c(l,"viewBox","0 0 7 12"),c(l,"fill","none"),c(l,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","skip svelte-1k4i25s")},m(u,f){C(u,e,f),m(e,n),m(e,o),m(e,l),m(l,r),a||(s=_e(e,"click",ot(function(){Pi(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,f){i=u},d(u){u&&k(e),a=!1,s()}}}function nh(i){let e;function t(l,r){return l[3]?ih:th}let n=t(i,-1),o=n(i);return{c(){e=P("div"),o.c(),c(e,"class","container svelte-1k4i25s"),D(e,"container-mobile",i[4]),D(e,"skippable",i[3])},m(l,r){C(l,e,r),o.m(e,null)},p(l,[r]){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e,null))),r&16&&D(e,"container-mobile",l[4]),r&8&&D(e,"skippable",l[3])},i:Se,o:Se,d(l){l&&k(e),o.d()}}}function oh(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:l=0}=e,{skipAd:r=$_}=e,s=it().ui.isMobile;q(i,s,f=>t(4,n=f));let u;return i.$$set=f=>{"position"in f&&t(0,o=f.position),"secondsToWatchBeforeSkip"in f&&t(1,l=f.secondsToWatchBeforeSkip),"skipAd"in f&&t(2,r=f.skipAd)},i.$$.update=()=>{i.$$.dirty&3&&t(3,u=o>0&&o>=l)},[o,l,r,u,n,s]}var Rs=class extends H{constructor(e){super(),U(this,e,oh,nh,F,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},eh)}},Lf=Rs;function lh(i){Pe(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 rh(i){let e;return{c(){e=P("button"),e.textContent=`${N("visit_advertiser")}`,c(e,"class","svelte-1wy3dql")},m(t,n){C(t,e,n)},p:Se,i:Se,o:Se,d(t){t&&k(e)}}}var Bs=class extends H{constructor(e){super(),U(this,e,null,rh,F,{},lh)}},Mf=Bs;function sh(i){Pe(i,"svelte-354ajf",`.container.svelte-354ajf{width:100%;height:100%}.top-gradient-mobile.svelte-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
|
|
11
|
+
`):void 0,h=t.state.isAudioDisabled?"disabled":xe(t.state.isAudioAvailable$)?void 0:"unavailable",C=i.info.currentVideoStream$.getValue(),g=i.info.currentAudioStream$.getValue(),w=[];C&&w.push(`Video: ${C?.codec??""}`+(C?.hdr?" (HDR)":"")),g&&w.push(`Audio: ${g?.codec??""}`+(g?.language?` (${g.language})`:""));let b={Version:u,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),VSID:xe(t.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${r}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:w.join(", "),Quality:`${s} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:h,Position:`${xe(t.state.positionExact$)}s`,State:`${xe(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${l}`,URL:window.location.href,Errors:p};return Object.entries(b).filter(([E,v])=>v!==void 0).map(([E,v])=>`${E}: ${v}`).join(`
|
|
12
|
+
`)},$c=(i,e,t)=>{let n=i.info,{width:o,height:l}=xe(t.ui.playerSize),r={version:$o,viewport:`${o}x${l}`,volume:Math.round(xe(t.state.volume$)*100)};r.id=t.videoId,n.currentFormat$.getValue()&&(r.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(r.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(r.videoSize=`${u.width}x${u.height}`);let f=n.currentBuffer$.getValue(),p=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();f&&(p&&h?r.buffer=f.end-h:r.buffer=Math.max(f.end-xe(t.state.positionExact$),0));let C=n.throughputEstimation$.getValue();C&&(r.speed=C);let g=n.videoBitrate$.getValue();g&&(r.bitrate=g);let w=n.currentVideoSegmentLength$.getValue();w&&(r.currentVideoSegmentLength=w);let b=n.currentAudioSegmentLength$.getValue();b&&(r.currentAudioSegmentLength=b);let E=xe(t.vsid);typeof E=="string"&&(r.vsid=E);let v=i.info.currentVideoStream$.getValue()?.codec;v&&(r.videoCodec=v);let y=i.info.currentAudioStream$.getValue()?.codec;y&&(r.audioCodec=y),i.info.currentVideoStream$.getValue()?.hdr&&(r.hdr=!0);let K=i.info.currentAudioStream$.getValue()?.language;return K&&(r.audioLanguage=K),r},ef=(i,e)=>To(i,e,"mp4");import{isNullable as ks,safeStorage as Bn}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";var tf="vk_player_prefer_traffic_saving_enabled",nf="vk_player_preferred_volume",of="vk_player_prefer_volume_mute",ws="vk_player_preferred_quality",lf="vk_player_preferred_stream_language",rf="vk_player_preferred_rate",sf=i=>i>1?1:i<0?0:i,Ss=i=>Bn.set(nf,sf(i).toString(10)),Jl=()=>{let i=Bn.get(nf);return ks(i)?void 0:sf(parseFloat(i))},af=(i,e)=>Bn.set(ws,JSON.stringify({videoId:i,value:e})),Cs=()=>Bn.remove(ws),uf=i=>{let e=Bn.get(ws);if(ks(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){Cs();return}return n},cf=(i,e)=>{e?Bn.set(i,"true"):Bn.remove(i)},ff=i=>Bn.get(i)==="true",xl=i=>cf(of,i),df=()=>ff(of),mf=i=>cf(tf,i),pf=()=>ff(tf),_f=()=>Bn.get(lf),Ps=i=>Bn.set(lf,i),hf=i=>Bn.set(rf,JSON.stringify({rate:i})),gf=()=>{let i=Bn.get(rf);if(ks(i))return;let{rate:e}=JSON.parse(i);return e};import{PlaybackState as C6}from"@vkontakte/videoplayer-core";import{noop as uc}from"@vkontakte/videoplayer-shared";function D_(i){let e,t,n,o,l,r,a,s,u,f,p,h,C,g,w,b,E,v=i[2].default,y=Te(v,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],K={};for(let B=0;B<I.length;B+=1)K=ce(K,I[B]);return{c(){e=R("svg"),y&&y.c(),t=R("g"),n=R("path"),o=R("path"),l=R("path"),r=R("path"),a=R("path"),s=R("defs"),u=R("filter"),f=R("feFlood"),p=R("feColorMatrix"),h=R("feOffset"),C=R("feGaussianBlur"),g=R("feColorMatrix"),w=R("feBlend"),b=R("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(n,"d","M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(o,"d","M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"),c(l,"fill","#fff"),c(l,"fill-rule","evenodd"),c(l,"d","M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z"),c(l,"clip-rule","evenodd"),c(r,"fill","#fff"),c(r,"d","M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"),c(a,"stroke","#000"),c(a,"stroke-linecap","round"),c(a,"stroke-linejoin","round"),c(a,"stroke-opacity",".12"),c(a,"stroke-width",".5"),c(a,"d","m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"),c(t,"filter","url(#a)"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(p,"in","SourceAlpha"),c(p,"result","hardAlpha"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(C,"stdDeviation","2.5"),c(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(w,"in2","BackgroundImageFix"),c(w,"result","effect1_dropShadow_618_12297"),c(b,"in","SourceGraphic"),c(b,"in2","effect1_dropShadow_618_12297"),c(b,"result","shape"),c(u,"id","a"),c(u,"width","75"),c(u,"height","44"),c(u,"x",".5"),c(u,"y",".5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),ke(e,K)},m(B,O){S(B,e,O),y&&y.m(e,null),m(e,t),m(t,n),m(t,o),m(t,l),m(t,r),m(t,a),m(e,s),m(s,u),m(u,f),m(u,p),m(u,h),m(u,C),m(u,g),m(u,w),m(u,b),E=!0},p(B,[O]){y&&y.p&&(!E||O&2)&&Ae(y,v,B,B[1],E?Ee(v,B[1],O,null):Le(B[1]),null),ke(e,K=Be(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},O&1&&B[0]]))},i(B){E||(d(y,B),E=!0)},o(B){_(y,B),E=!1},d(B){B&&k(e),y&&y.d(B)}}}function q_(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Is=class extends H{constructor(e){super(),U(this,e,q_,D_,F,{})}},$l=Is;import{isNullable as yf,InterfaceLanguage as kf}from"@vkontakte/videoplayer-shared";var N_={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_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445: {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"},bf=N_;var O_={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_traffic_saving:"Data saving: {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"},vf=O_;var Jn=new Map;Jn.set(kf.EN,vf);Jn.set(kf.RU,bf);var wf=new Map,Ts=({language:i,pack:e,fallback:t})=>{if(Jn.has(i)){let n=Jn.get(i);Jn.set(i,{...n,...e})}else Jn.set(i,e);wf.set(i,t)},Es=i=>Jn.has(i),As=(i,e,t,n)=>{let l=Jn.get(i)?.[e];if(yf(l)){let r=wf.get(i)??n;l=(r?Jn.get(r):void 0)?.[e]}return yf(l)?e+Object.values(t??{}).join(" "):t?l.replaceAll(/{(\w+?)}/g,(r,a)=>t[a]??""):l},N=(i,e)=>{let{interfaceLanguage$:t}=ot(),n=xe(t),o=Dt();return As(n,i,e,o.defaultLanguage)};import"@vkontakte/videoplayer-core";var el;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(el||(el={}));var F_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,H_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,z_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,er="?",U_="X-Sentry-Auth",K_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function W_(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
|
|
13
|
+
`),n,o;for(let l=0;l<t.length;++l){if(n=F_.exec(t[l]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||er,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=z_.exec(t[l]))o={filename:n[2],function:n[1]||er,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=H_.exec(t[l]))l===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||er,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=er),e.push(o)}return e.length?{value:Sf(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function Sf(i){return(i&&i.message||"No error message").split(`
|
|
14
|
+
`).filter(t=>!!t)[0]}function j_(i){try{let e=W_(i);if(e)return e}catch{}return{value:Sf(i),type:i&&i.name,stacktrace:{frames:[]}}}function G_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var tr=class{constructor(e){if(e&&e.dsn){let t=K_.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),l=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(l?"/"+l:"")+"/api/"+o.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[j_(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(U_,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:G_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Cf(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function Q_(){return window}var ir=class i extends tr{constructor(e,t=Q_()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:l=u=>u,blacklistUrls:r=[],ignoreErrors:a=[],release:s=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=l,this.blacklistUrls=r,this.ignoreErrors=a,this.release=s}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new i({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send({...this.getRequestBlank(),message:e,level:t})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(t=>this.ignoreErrors.some(n=>Cf(t,n))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>Cf(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch{return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],l=Array.isArray(o)?o:null,r=e[n],a=Array.isArray(r)?r:null;return{...t,[n]:l||a?[...l||[],...a||[]]:{...typeof o!="string"?o:{},...typeof r!="string"?r:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}};import{isNonNullable as nr,Subscription as Y_}from"@vkontakte/videoplayer-shared";var or=null,Eo=class{constructor(e,t,n={}){!or&&e.dsn&&(this.sentryClient=new ir({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Y_,this.options=e,this.context=n,or=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),or=null}logIError(e,t=!1){e.thrown&&this.report(e.thrown,{fatal:t,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,t={},n={}){let{sentryClient:o,context:l,options:r}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:p}=r,{errorType:h,category:C}=t;if(nr(C)&&p.includes(C)||nr(h)&&f.includes(h))return;if(Math.random()<=a||nr(C)&&u.includes(C)||nr(h)&&s.includes(h)){Object.keys(t).length&&o.setTags({version:this.version,...t}),(Object.keys(l).length||Object.keys(n).length)&&o.setExtras({...l,...n});try{h&&o.captureMessage(h,t.fatal?el.fatal:el.error),o.report(e)}catch(w){console.error(w)}}}static getInstance(){return or}};var lr=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e?.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},rr=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Pf=i=>{let e=i;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},Pl=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},lo=()=>!!Pl(),sr=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},ar=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},If=i=>{let e=window.screen;return(async o=>e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject())(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};import{clientChecker as Tf}from"@vkontakte/videoplayer-shared";var Ef=()=>({title:N("hotkey_map_modal_title"),closeBtnText:N("hotkey_map_modal_close_btn_text"),groups:[{title:N("hotkey_map_group_title_common"),items:[{description:N("hotkey_map_item_mute_description"),value:N("hotkey_map_item_mute_value")},{description:N("hotkey_map_item_volume_up_description"),value:N("hotkey_map_item_volume_up_value")},{description:N("hotkey_map_item_volume_down_description"),value:N("hotkey_map_item_volume_down_value")},{description:N("hotkey_map_item_pip_description"),value:N("hotkey_map_item_pip_value")},{description:N("hotkey_map_item_full_screen_description"),value:N("hotkey_map_item_full_screen_value")},{description:N("hotkey_map_item_show_context_menu_description"),value:N("hotkey_map_item_show_context_menu_value")},{description:N("hotkey_map_item_show_hotkey_map_description"),value:N("hotkey_map_item_show_hotkey_map_value")}]},{title:N("hotkey_map_group_title_playback"),items:[{description:N("hotkey_map_item_play_toggle_description"),value:N("hotkey_map_item_play_toggle_value")},{description:N("hotkey_map_item_seek_backward_description"),value:N("hotkey_map_item_seek_backward_value")},{description:N("hotkey_map_item_seek_forward_description"),value:N("hotkey_map_item_seek_forward_value")},{description:N("hotkey_map_item_fast_seek_backward_description"),value:N("hotkey_map_item_fast_seek_backward_value")},{description:N("hotkey_map_item_fast_seek_forward_description"),value:N("hotkey_map_item_fast_seek_forward_value")},{description:N("hotkey_map_item_rate_down_description"),value:N("hotkey_map_item_rate_down_value")},{description:N("hotkey_map_item_rate_up_description"),value:N("hotkey_map_item_rate_up_value")},{description:N("hotkey_map_item_prev_frame_description"),value:N("hotkey_map_item_prev_frame_value")},{description:N("hotkey_map_item_next_frame_description"),value:N("hotkey_map_item_next_frame_value")},{description:N("hotkey_map_item_jump_seek_description"),value:N("hotkey_map_item_jump_seek_value")}]},{title:N("hotkey_map_group_title_subtitles"),items:[{description:N("hotkey_map_item_subtitles_toggle_description"),value:N("hotkey_map_item_subtitles_toggle_value")}]},{title:N("hotkey_map_group_title_episodes"),items:[{description:N("hotkey_map_item_prev_episode_description"),value:Tf.isApple?N("hotkey_map_item_prev_episode_mac_value"):N("hotkey_map_item_prev_episode_pc_value")},{description:N("hotkey_map_item_next_episode_description"),value:Tf.isApple?N("hotkey_map_item_next_episode_mac_value"):N("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as Z_,clientChecker as X_,ValueSubject as J_}from"@vkontakte/videoplayer-shared";var Ao=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:Z_(this.onResize.bind(this),300)};this.info={isActive$:new J_(this.isActive()),type:0}}isSupported(){return document.pictureInPictureEnabled&&!X_.isYandex}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){if(!(!this.isSupported()||this.isActive()))try{await this.videoElement?.requestPictureInPicture()}catch{this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&(this.videoElement=this.playerContainer?.querySelector("video"))}registryEventHandlers(){this.videoElement?.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){this.videoElement?.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n?.removeEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.leavepictureinpicture?.(e),this.playerDummyElement?.$destroy()}onResize(e){this.externalEventHandlers.resize?.(e)}};function Lo(i){return i instanceof Ao}function x_(i){let e=ot();return It(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Vs=class extends H{constructor(e){super(),U(this,e,x_,null,F,{})}},Af=Vs;import{noop as $_}from"@vkontakte/videoplayer-shared";function eh(i){Pe(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 th(i){let e=N("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=Re(e)},m(n,o){S(n,t,o)},p(n,o){o&3&&e!==(e=N("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&We(t,e)},d(n){n&&k(t)}}}function ih(i){let e,t=N("skip_ads_now")+"",n,o,l,r,a,s;return{c(){e=P("div"),n=Re(t),o=M(),l=R("svg"),r=R("path"),c(r,"fill-rule","evenodd"),c(r,"clip-rule","evenodd"),c(r,"d","M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"),c(l,"class","icon svelte-1k4i25s"),c(l,"width","7"),c(l,"height","12"),c(l,"viewBox","0 0 7 12"),c(l,"fill","none"),c(l,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","skip svelte-1k4i25s")},m(u,f){S(u,e,f),m(e,n),m(e,o),m(e,l),m(l,r),a||(s=pe(e,"click",rt(function(){Ai(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,f){i=u},d(u){u&&k(e),a=!1,s()}}}function nh(i){let e;function t(l,r){return l[3]?ih:th}let n=t(i,-1),o=n(i);return{c(){e=P("div"),o.c(),c(e,"class","container svelte-1k4i25s"),D(e,"container-mobile",i[4]),D(e,"skippable",i[3])},m(l,r){S(l,e,r),o.m(e,null)},p(l,[r]){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e,null))),r&16&&D(e,"container-mobile",l[4]),r&8&&D(e,"skippable",l[3])},i:Se,o:Se,d(l){l&&k(e),o.d()}}}function oh(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:l=0}=e,{skipAd:r=$_}=e,s=ot().ui.isMobile;q(i,s,f=>t(4,n=f));let u;return i.$$set=f=>{"position"in f&&t(0,o=f.position),"secondsToWatchBeforeSkip"in f&&t(1,l=f.secondsToWatchBeforeSkip),"skipAd"in f&&t(2,r=f.skipAd)},i.$$.update=()=>{i.$$.dirty&3&&t(3,u=o>0&&o>=l)},[o,l,r,u,n,s]}var Rs=class extends H{constructor(e){super(),U(this,e,oh,nh,F,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},eh)}},Lf=Rs;function lh(i){Pe(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 rh(i){let e;return{c(){e=P("button"),e.textContent=`${N("visit_advertiser")}`,c(e,"class","svelte-1wy3dql")},m(t,n){S(t,e,n)},p:Se,i:Se,o:Se,d(t){t&&k(e)}}}var Bs=class extends H{constructor(e){super(),U(this,e,null,rh,F,{},lh)}},Mf=Bs;function sh(i){Pe(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 @@ function Se(){}function ue(i,e){for(let t in e)i[t]=e[t];return i}function ds(i)
|
|
|
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 Vf(i){let e;return{c(){e=P("div"),c(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){C(t,e,n)},d(t){t&&k(e)}}}function Rf(i){let e,t;return e=new Lf({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&32&&(l.position=n[5]),o&64&&(l.secondsToWatchBeforeSkip=n[6]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Bf(i){let e,t;return e=new Af({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Df(i){let e,t;return e=new Mf({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function ah(i){let e,t,n,o,l,r,a,s=i[0]&&Vf(i),u=i[3]&&Rf(i),f=i[7]&&Bf(i),p=i[4]&&Df(i);return{c(){e=P("div"),s&&s.c(),t=M(),n=P("video"),o=M(),u&&u.c(),l=M(),f&&f.c(),r=M(),p&&p.c(),pi(n,"width","100%"),pi(n,"height","100%"),n.playsInline=!0,c(e,"class","container svelte-354ajf")},m(h,S){C(h,e,S),s&&s.m(e,null),m(e,t),m(e,n),i[19](n),m(e,o),u&&u.m(e,null),m(e,l),f&&f.m(e,null),m(e,r),p&&p.m(e,null),i[20](e),a=!0},p(h,[S]){h[0]?s||(s=Vf(h),s.c(),s.m(e,t)):s&&(s.d(1),s=null),h[3]?u?(u.p(h,S),S&8&&d(u,1)):(u=Rf(h),u.c(),d(u,1),u.m(e,l)):u&&(me(),_(u,1,1,()=>{u=null}),pe()),h[7]?f?S&128&&d(f,1):(f=Bf(h),f.c(),d(f,1),f.m(e,r)):f&&(me(),_(f,1,1,()=>{f=null}),pe()),h[4]?p?S&16&&d(p,1):(p=Df(h),p.c(),d(p,1),p.m(e,null)):p&&(me(),_(p,1,1,()=>{p=null}),pe())},i(h){a||(d(u),d(f),d(p),a=!0)},o(h){_(u),_(f),_(p),a=!1},d(h){h&&k(e),s&&s.d(),i[19](null),u&&u.d(),f&&f.d(),p&&p.d(),i[20](null)}}}function uh(i,e,t){let n,o,l,r,a,{adsSlotId:s=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:f=void 0}=e,{duration:p=0}=e,h=it(),S=h.state.isEnded$;q(i,S,G=>t(7,a=G));let g=h.ui.isMobile;q(i,g,G=>t(0,o=G));let w,b,E=!1,v=h.ads.playbackState;q(i,v,G=>t(18,n=G));let y=h.ads.canSkip,I=h.ads.position;q(i,I,G=>t(5,l=G));let K=h.ads.secondsToWatchBeforeSkip;q(i,K,G=>t(6,r=G));let B,O;It(()=>{let G=h.getAdmanWrapper();if(!s){G.onAdmanLoadingError();return}let X=new AbortController,ae=()=>{X.abort()},{width:j,height:z}=Je(h.ui.playerSize),Q=Je(h.ui.isFullscreen),$=Je(h.ui.isAutoplay),W={width:j,height:z,isFullscreen:Q,isAutoplay:$,adsContainer:w,adsVideoElement:b,slotId:s,params:u,previewParam:f,duration:p};return window.AdmanHTML?(G.initAdman(W),E=!0):G.loadAdman(X.signal).then(()=>{G.initAdman(W),E=!0}).catch(()=>{G.onAdmanLoadingError()}),()=>{!E&&ae()}});function ne(G){be[G?"unshift":"push"](()=>{b=G,t(2,b)})}function ge(G){be[G?"unshift":"push"](()=>{w=G,t(1,w)})}return i.$$set=G=>{"adsSlotId"in G&&t(14,s=G.adsSlotId),"adsParams"in G&&t(15,u=G.adsParams),"adsPreviewParam"in G&&t(16,f=G.adsPreviewParam),"duration"in G&&t(17,p=G.duration)},i.$$.update=()=>{i.$$.dirty&262144&&t(3,B=y&&n!=="inactive"),i.$$.dirty&262145&&t(4,O=o&&n!=="inactive")},[o,w,b,B,O,l,r,a,h,S,g,v,I,K,s,u,f,p,n,ne,ge]}var Ds=class extends H{constructor(e){super(),U(this,e,uh,ah,F,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},sh)}},ur=Ds;var In=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(l=>l>9?String(l):`0${l}`).join(":")};function ch(i){let e,t,n,o,l=i[2].default,r=Te(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),t=R("path"),n=R("path"),c(t,"fill","none"),c(t,"stroke","#fff"),c(t,"stroke-width","2"),c(t,"d","M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"),c(n,"fill","#f0f2f5"),c(n,"fill-rule","evenodd"),c(n,"d","M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"),ye(e,s)},m(u,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function fh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var qs=class extends H{constructor(e){super(),U(this,e,fh,ch,F,{})}},qf=qs;function dh(i){let e,t,n,o,l=i[2].default,r=Te(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),t=R("rect"),n=R("path"),c(t,"width","42"),c(t,"height","20"),c(t,"fill","#FF3347"),c(t,"rx","5"),c(n,"fill","#F2F3F5"),c(n,"fill-rule","evenodd"),c(n,"d","M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z"),c(n,"clip-rule","evenodd"),ye(e,s)},m(u,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function mh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ns=class extends H{constructor(e){super(),U(this,e,mh,dh,F,{})}},Nf=Ns;function ph(i){let e,t;return e=new qf({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function _h(i){let e,t;return e=new Nf({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function hh(i){let e,t,n,o,l=[_h,ph],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ut()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),t=r[e],t||(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),r[e].d(s)}}}function gh(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Os=class extends H{constructor(e){super(),U(this,e,gh,hh,F,{isActive:0})}},cr=Os;function bh(i){Pe(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 vh(i){let e=In(i[4]-i[3])+"",t;return{c(){t=Re(e)},m(n,o){C(n,t,o)},p(n,o){o&24&&e!==(e=In(n[4]-n[3])+"")&&We(t,e)},i:Se,o:Se,d(n){n&&k(t)}}}function yh(i){let e,t,n;return t=new cr({props:{isActive:!0}}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","thumb-timer-live-icon svelte-i7xnqb")},m(o,l){C(o,e,l),A(t,e,null),n=!0},p:Se,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function kh(i){let e,t,n,o,l,r,a,s=[yh,vh],u=[];function f(p,h){return p[1]?0:1}return l=f(i,-1),r=u[l]=s[l](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=M(),o=P("span"),r.c(),c(t,"class","thumb-timer-equalizer svelte-i7xnqb"),c(o,"class","thumb-timer-text svelte-i7xnqb"),c(e,"role","timer"),c(e,"class","thumb-timer svelte-i7xnqb"),c(e,"data-testid","thumb-timer"),D(e,"live",i[1]),D(e,"hidden",i[0]),D(e,"playing",i[2])},m(p,h){C(p,e,h),m(e,t),m(e,n),m(e,o),u[l].m(o,null),a=!0},p(p,[h]){let S=l;l=f(p,h),l===S?u[l].p(p,h):(me(),_(u[S],1,1,()=>{u[S]=null}),pe(),r=u[l],r?r.p(p,h):(r=u[l]=s[l](p),r.c()),d(r,1),r.m(o,null)),(!a||h&2)&&D(e,"live",p[1]),(!a||h&1)&&D(e,"hidden",p[0]),(!a||h&4)&&D(e,"playing",p[2])},i(p){a||(d(r),a=!0)},o(p){_(r),a=!1},d(p){p&&k(e),u[l].d()}}}function wh(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:l=!1}=e,{position:r}=e,{duration:a}=e;return i.$$set=s=>{"isHidden"in s&&t(0,n=s.isHidden),"isLive"in s&&t(1,o=s.isLive),"isPlaying"in s&&t(2,l=s.isPlaying),"position"in s&&t(3,r=s.position),"duration"in s&&t(4,a=s.duration)},[n,o,l,r,a]}var Fs=class extends H{constructor(e){super(),U(this,e,wh,kh,F,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},bh)}},fr=Fs;var tl=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 jf}from"@vkontakte/videoplayer-core";import{clientChecker as Of}from"@vkontakte/videoplayer-shared";var Ro=i=>{i.stopPropagation(),i.preventDefault()},Sh=i=>{let e=i.previousElementSibling;e||(e=i.parentNode?.lastElementChild),e?.focus()},Ph=i=>{let e=i.nextElementSibling;e||(e=i.parentNode?.firstElementChild),e?.focus()},Ih=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},Th=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},Ff=i=>i.code==="Escape",Eh=i=>i.code==="ArrowLeft",Hf=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},zf=i=>{if(Ih(i)){Ro(i),Ph(i.target);return}Th(i)&&(Ro(i),Sh(i.target))},nl=i=>!Of.isAndroid&&i?.detail===0||Of.isAndroid&&i?.pointerType==="",ol=async(i,e,t)=>{await Un(),i&&!i.classList.contains("opened")&&!e&&Je(t)&&(await Un(),t.set(!1),i.focus())},Uf=async(i,e,t)=>{await Un(),i&&!e&&Je(t)&&(t.set(!1),i.focus())},Bo=async(i,e,t)=>{await Un(),!!i&&e&&t&&i.children[0]?.focus()},ll=async(i,e,t)=>{!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))},dr=(i,e)=>{zf(i),Ff(i)&&(Ro(i),e())},rl=async(i,e,t)=>{Hf(i,!1)&&(Ro(i),e(),await Un(),t()?.focus())},sl=async(i,e,t,n)=>{if(zf(i),Eh(i)){Ro(i),e(),t.set(!0);return}Ff(i)&&(Ro(i),n())},ti=(i,e)=>{Hf(i)&&(Ro(i),e())},Kf=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},Wf=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 mr,isValidURL as Ah}from"@vkontakte/videoplayer-shared";function Lh(i){Pe(i,"svelte-9tsdtv","ul.svelte-9tsdtv{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}li.svelte-9tsdtv{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}li.svelte-9tsdtv:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function Gf(i){let e,t,n,o,l,r,a,s,u,f,p=(i[10].features.saveDebugInfoToFile?N("menu_save_debug"):N("menu_copy_debug"))+"",h,S,g,w,b,E=N("menu_debug_overlay")+"",v,y,I,K,B=i[10].features.copyVideoLink&&i[9].callbacks?.onCopyVideoLink&&Mh(i),O=i[19]&&Vh(i),ne=i[12]&&i[6]!==jf.CONNECTED&&!i[17]&&Yf(i);function ge(Q,$){return Q[4]?Bh:Rh}let G=ge(i,[-1,-1]),X=G(i),ae=i[10].features.videoRotate&&!i[17]&&Dh(i),j=i[10].showSupport&&!i[7]&&Zf(i),z=i[10].features.saveTraceInfoToFile&&qh(i);return{c(){e=P("ul"),B&&B.c(),t=M(),O&&O.c(),n=M(),ne&&ne.c(),o=M(),l=P("li"),X.c(),a=M(),ae&&ae.c(),s=M(),j&&j.c(),u=M(),f=P("li"),h=Re(p),g=M(),z&&z.c(),w=M(),b=P("li"),v=Re(E),c(l,"tabindex","0"),c(l,"role","menuitem"),c(l,"aria-label",r=N("aria_label_menu_loop")),c(l,"class","svelte-9tsdtv"),c(f,"tabindex","0"),c(f,"role","menuitem"),c(f,"aria-label",S=i[10].features.saveDebugInfoToFile?N("menu_save_debug"):N("menu_copy_debug")),c(f,"class","svelte-9tsdtv"),c(b,"tabindex","0"),c(b,"role","menuitem"),c(b,"aria-label",y=i[8]?N("aria_label_menu_debug_overlay_disable"):N("aria_label_menu_debug_overlay_enable")),c(b,"class","svelte-9tsdtv"),c(e,"role","menu"),pi(e,"top",i[3]+"px"),pi(e,"left",i[2]+"px"),c(e,"class","svelte-9tsdtv")},m(Q,$){C(Q,e,$),B&&B.m(e,null),m(e,t),O&&O.m(e,null),m(e,n),ne&&ne.m(e,null),m(e,o),m(e,l),X.m(l,null),m(e,a),ae&&ae.m(e,null),m(e,s),j&&j.m(e,null),m(e,u),m(e,f),m(f,h),m(e,g),z&&z.m(e,null),m(e,w),m(e,b),m(b,v),i[48](e),I||(K=[_e(l,"click",ot(i[26])),_e(l,"keydown",i[39]),_e(f,"click",ot(i[22])),_e(f,"keydown",i[35]),_e(b,"click",ot(i[24])),_e(b,"keydown",i[37]),_e(e,"contextmenu",Ht(i[45])),_e(e,"keydown",i[29])],I=!0)},p(Q,$){Q[10].features.copyVideoLink&&Q[9].callbacks?.onCopyVideoLink&&B.p(Q,$),Q[19]&&O.p(Q,$),Q[12]&&Q[6]!==jf.CONNECTED&&!Q[17]?ne?ne.p(Q,$):(ne=Yf(Q),ne.c(),ne.m(e,o)):ne&&(ne.d(1),ne=null),G!==(G=ge(Q,$))&&(X.d(1),X=G(Q),X&&(X.c(),X.m(l,null))),Q[10].features.videoRotate&&!Q[17]&&ae.p(Q,$),Q[10].showSupport&&!Q[7]?j?j.p(Q,$):(j=Zf(Q),j.c(),j.m(e,u)):j&&(j.d(1),j=null),Q[10].features.saveTraceInfoToFile&&z.p(Q,$),$[0]&256&&y!==(y=Q[8]?N("aria_label_menu_debug_overlay_disable"):N("aria_label_menu_debug_overlay_enable"))&&c(b,"aria-label",y),$[0]&8&&pi(e,"top",Q[3]+"px"),$[0]&4&&pi(e,"left",Q[2]+"px")},d(Q){Q&&k(e),B&&B.d(),O&&O.d(),ne&&ne.d(),X.d(),ae&&ae.d(),j&&j.d(),z&&z.d(),i[48](null),I=!1,tt(K)}}}function Mh(i){let e,t,n,o,l,r,a=!i[5]&&!i[17]&&Qf(i);return{c(){e=P("li"),e.textContent=`${N("menu_copy_video_link")}`,n=M(),a&&a.c(),o=ut(),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=N("menu_copy_video_link")),c(e,"class","svelte-9tsdtv")},m(s,u){C(s,e,u),C(s,n,u),a&&a.m(s,u),C(s,o,u),l||(r=[_e(e,"click",ot(i[46])),_e(e,"keydown",i[30])],l=!0)},p(s,u){!s[5]&&!s[17]?a?a.p(s,u):(a=Qf(s),a.c(),a.m(o.parentNode,o)):a&&(a.d(1),a=null)},d(s){s&&(k(e),k(n),k(o)),a&&a.d(s),l=!1,tt(r)}}}function Qf(i){let e,t,n,o;return{c(){e=P("li"),e.textContent=`${N("menu_copy_video_link_with_timestamp")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=N("menu_copy_video_link_with_timestamp")),c(e,"class","svelte-9tsdtv")},m(l,r){C(l,e,r),n||(o=[_e(e,"click",ot(i[47])),_e(e,"keydown",i[31])],n=!0)},p:Se,d(l){l&&k(e),n=!1,tt(o)}}}function Vh(i){let e,t,n,o;return{c(){e=P("li"),e.textContent=`${N("menu_copy_embed_code")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=N("menu_copy_embed_code")),c(e,"class","svelte-9tsdtv")},m(l,r){C(l,e,r),n||(o=[_e(e,"click",ot(i[27])),_e(e,"keydown",i[38])],n=!0)},p:Se,d(l){l&&k(e),n=!1,tt(o)}}}function Yf(i){let e,t,n,o;return{c(){e=P("li"),e.textContent=`${N("menu_pip")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=N("menu_pip")),c(e,"class","svelte-9tsdtv")},m(l,r){C(l,e,r),n||(o=[_e(e,"click",ot(i[25])),_e(e,"keydown",i[32])],n=!0)},p:Se,d(l){l&&k(e),n=!1,tt(o)}}}function Rh(i){let e=N("menu_video_loop_on")+"",t;return{c(){t=Re(e)},m(n,o){C(n,t,o)},d(n){n&&k(t)}}}function Bh(i){let e=N("menu_video_loop_off")+"",t;return{c(){t=Re(e)},m(n,o){C(n,t,o)},d(n){n&&k(t)}}}function Dh(i){let e,t,n,o;return{c(){e=P("li"),e.textContent=`${N("menu_video_rotate")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=N("aria_label_menu_rotate")),c(e,"class","svelte-9tsdtv")},m(l,r){C(l,e,r),n||(o=[_e(e,"click",ot(i[20])),_e(e,"keydown",i[33])],n=!0)},p:Se,d(l){l&&k(e),n=!1,tt(o)}}}function Zf(i){let e,t,n,o;return{c(){e=P("li"),e.textContent=`${N("menu_report")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=`${N("menu_report")}. ${N("aria_label_new_tab_alert")}`),c(e,"class","svelte-9tsdtv")},m(l,r){C(l,e,r),n||(o=[_e(e,"click",ot(i[21])),_e(e,"keydown",i[34])],n=!0)},p:Se,d(l){l&&k(e),n=!1,tt(o)}}}function qh(i){let e,t,n,o;return{c(){e=P("li"),e.textContent=`${N("menu_save_debug")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=N("menu_save_debug")),c(e,"class","svelte-9tsdtv")},m(l,r){C(l,e,r),n||(o=[_e(e,"click",ot(i[23])),_e(e,"keydown",i[36])],n=!0)},p:Se,d(l){l&&k(e),n=!1,tt(o)}}}function Nh(i){let e,t=i[1]&&Gf(i);return{c(){t&&t.c(),e=ut()},m(n,o){t&&t.m(n,o),C(n,e,o)},p(n,o){n[1]?t?t.p(n,o):(t=Gf(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:Se,o:Se,d(n){n&&k(e),t&&t.d(n)}}}function Oh(i,e,t){let n,o,l,r,a,s,{visible:u=!1}=e,{supportLink:f}=e,{position:p={top:0,left:0}}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:S=void 0}=e,{menuElementRef:g=void 0}=e,{returnFocus:w}=e,b=0,E=0,v=it(),y=Vt(),I=v.ui.contextMenu.visible$,K=v.ui.debugPanelVisible;q(i,K,re=>t(8,s=re));let B=v.webApi.pictureInPictureApi,O=v.webApi.pictureInPictureApi?.info.isActive$;q(i,O,re=>t(7,a=re));let ne=v.actions.internal.togglePictureInPicture,ge=v.state.chromecastState$;q(i,ge,re=>t(6,r=re));let G=v.state.isLive$;q(i,G,re=>t(5,l=re));let X=v.state.positionExact$;q(i,X,re=>t(49,n=re));let ae=v.state.isInteractive,j=v.state.looped$;q(i,j,re=>t(4,o=re));let z=!!v.callbacks?.onCopyEmbedCodeClicked,Q=()=>{I.set(!1)},$=(re,nt)=>{if(!g||!h||!S)return;let de=g.getBoundingClientRect(),lt=h.getBoundingClientRect();t(2,b=re-lt.left),t(3,E=nt-lt.top),b+de.width>lt.width&&t(2,b=lt.width-de.width),E+de.height>lt.height&&t(3,E=lt.height-de.height),t(2,b=Math.max(b,0)),t(3,E=Math.max(E,0))},W=()=>{Q(),v.actions.internal.videoRotate()},Y=()=>{Ah(f)&&window.open(f,"_blank"),v.actions.internal.reportProblem(),Q(),v.actions.internal.pause()},ie=()=>{let re=v.actions.internal.getDebugTextData();if(y.features.saveDebugInfoToFile){let nt=new Blob([...re],{type:"plain/text"}),de=window.URL.createObjectURL(nt);Eo(de,"vk_player_debug_info","txt")}else tl(v.actions.internal.getDebugTextData());Q(),w?.()},le=()=>{let re=v.actions.internal.getTraceTextData(),nt=new Blob([...re],{type:"application/json"}),de=window.URL.createObjectURL(nt);Eo(de,"vk_player_trace_info","json"),Q(),w?.()},Ve=()=>{K.set(!0),Q(),w?.()},Xe=async()=>{try{ne()}finally{Q(),w?.()}},Ce=()=>{v.actions.internal.setLooped(!o),Q()},Me=()=>{if(z){let re=v.callbacks?.onCopyEmbedCodeClicked?.();re&&tl(re)}Q()},ze=(re=!1)=>{if(v.callbacks?.onCopyVideoLink){let nt=v.callbacks?.onCopyVideoLink(re,n);nt&&tl(nt)}Q()},$e=re=>{dr(re,Q)},ce=re=>{ti(re,()=>ze())},he=re=>{ti(re,()=>ze(!0))},at=re=>{ti(re,()=>Xe())},we=re=>{ti(re,()=>W())},Fe=re=>{ti(re,()=>Y())},ct=re=>{ti(re,()=>ie())},je=re=>{ti(re,()=>le())},Ke=re=>{ti(re,()=>Ve())},Ze=re=>{ti(re,()=>Me())},xe=re=>{ti(re,()=>Ce())};function x(re){Pn.call(this,i,re)}let qe=()=>ze(),He=()=>ze(!0);function fe(re){be[re?"unshift":"push"](()=>{g=re,t(0,g)})}return i.$$set=re=>{"visible"in re&&t(1,u=re.visible),"supportLink"in re&&t(40,f=re.supportLink),"position"in re&&t(41,p=re.position),"playerContainerRef"in re&&t(42,h=re.playerContainerRef),"controlsContainerRef"in re&&t(43,S=re.controlsContainerRef),"menuElementRef"in re&&t(0,g=re.menuElementRef),"returnFocus"in re&&t(44,w=re.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&7168&&g&&h&&S){let{top:re,left:nt,bottom:de,right:lt}=p,rt=nt??0,dt=re??0,vt=g.getBoundingClientRect();mr(nt)&&!mr(lt)&&(rt=lt-vt.width),mr(re)&&!mr(de)&&(dt=de-vt.height),rt=Math.max(rt,0),dt=Math.max(dt,0),$(rt,dt)}},[g,u,b,E,o,l,r,a,s,v,y,K,B,O,ge,G,X,ae,j,z,W,Y,ie,le,Ve,Xe,Ce,Me,ze,$e,ce,he,at,we,Fe,ct,je,Ke,Ze,xe,f,p,h,S,w,x,qe,He,fe]}var Hs=class extends H{constructor(e){super(),U(this,e,Oh,Nh,F,{visible:1,supportLink:40,position:41,playerContainerRef:42,controlsContainerRef:43,menuElementRef:0,returnFocus:44},Lh,[-1,-1])}},Xf=Hs;var pr=class{constructor(e){this.value=e,this.next=null}};var al=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new pr(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 Fh(i){Pe(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function Hh(i){let e,t;return{c(){e=P("div"),t=P("canvas"),c(t,"class","svelte-1ssl9eb"),c(e,"class","container svelte-1ssl9eb")},m(n,o){C(n,e,o),m(e,t),i[3](t)},p:Se,i:Se,o:Se,d(n){n&&k(e),i[3](null)}}}var zs=16,Us=120,Jf=60;function zh(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function Uh(i,e,t){let{values:n=[]}=e,o,l,r=Us/Jf;It(()=>{t(0,o.width=Us,o),t(0,o.height=zs,o),t(2,l=o.getContext("2d"))});function a(s){be[s?"unshift":"push"](()=>{o=s,t(0,o)})}return i.$$set=s=>{"values"in s&&t(1,n=s.values)},i.$$.update=()=>{if(i.$$.dirty&6){let s="";if(l){let u=n[0];for(let p=1;p<n.length;p++)n[p]>u&&(u=n[p]);l.clearRect(0,0,Us,zs);let f=Jf-1;for(let p=n.length-1;p>=0;p--){let h=f*r,S=u>0?zs*(n[p]/u):0;zh(l,h,0,r,S),s=S+" "+s,f--}}}},[o,n,l,a]}var Ks=class extends H{constructor(e){super(),U(this,e,Uh,Hh,F,{values:1},Fh)}},_r=Ks;import{safeStorage as xf}from"@vkontakte/videoplayer-shared";function Kh(i){Pe(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 $f(i){let e,t,n,o,l=i[0].id+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Video id",n=M(),o=P("span"),r=Re(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){C(a,e,s),m(e,t),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].id+"")&&We(r,l)},d(a){a&&k(e)}}}function ed(i){let e,t,n,o,l=i[0].vsid+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="VSID",n=M(),o=P("span"),r=Re(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){C(a,e,s),m(e,t),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].vsid+"")&&We(r,l)},d(a){a&&k(e)}}}function td(i){let e,t,n,o,l=i[0].provider+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Provider",n=M(),o=P("span"),r=Re(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){C(a,e,s),m(e,t),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].provider+"")&&We(r,l)},d(a){a&&k(e)}}}function id(i){let e,t,n,o,l,r=(i[0].videoCodec||"")+"",a,s,u=i[0].hdr?"(HDR)":"",f,p,h=(i[0].audioCodec||"")+"",S,g,w=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",b;return{c(){e=P("div"),t=P("div"),t.textContent="Streams",n=M(),o=P("span"),l=Re("Video: "),a=Re(r),s=M(),f=Re(u),p=Re(`
|
|
24
|
+
)}`)}function Vf(i){let e;return{c(){e=P("div"),c(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){S(t,e,n)},d(t){t&&k(e)}}}function Rf(i){let e,t;return e=new Lf({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&32&&(l.position=n[5]),o&64&&(l.secondsToWatchBeforeSkip=n[6]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Bf(i){let e,t;return e=new Af({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Df(i){let e,t;return e=new Mf({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function ah(i){let e,t,n,o,l,r,a,s=i[0]&&Vf(i),u=i[3]&&Rf(i),f=i[7]&&Bf(i),p=i[4]&&Df(i);return{c(){e=P("div"),s&&s.c(),t=M(),n=P("video"),o=M(),u&&u.c(),l=M(),f&&f.c(),r=M(),p&&p.c(),gi(n,"width","100%"),gi(n,"height","100%"),n.playsInline=!0,c(e,"class","container svelte-354ajf")},m(h,C){S(h,e,C),s&&s.m(e,null),m(e,t),m(e,n),i[19](n),m(e,o),u&&u.m(e,null),m(e,l),f&&f.m(e,null),m(e,r),p&&p.m(e,null),i[20](e),a=!0},p(h,[C]){h[0]?s||(s=Vf(h),s.c(),s.m(e,t)):s&&(s.d(1),s=null),h[3]?u?(u.p(h,C),C&8&&d(u,1)):(u=Rf(h),u.c(),d(u,1),u.m(e,l)):u&&(de(),_(u,1,1,()=>{u=null}),me()),h[7]?f?C&128&&d(f,1):(f=Bf(h),f.c(),d(f,1),f.m(e,r)):f&&(de(),_(f,1,1,()=>{f=null}),me()),h[4]?p?C&16&&d(p,1):(p=Df(h),p.c(),d(p,1),p.m(e,null)):p&&(de(),_(p,1,1,()=>{p=null}),me())},i(h){a||(d(u),d(f),d(p),a=!0)},o(h){_(u),_(f),_(p),a=!1},d(h){h&&k(e),s&&s.d(),i[19](null),u&&u.d(),f&&f.d(),p&&p.d(),i[20](null)}}}function uh(i,e,t){let n,o,l,r,a,{adsSlotId:s=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:f=void 0}=e,{duration:p=0}=e,h=ot(),C=h.state.isEnded$;q(i,C,G=>t(7,a=G));let g=h.ui.isMobile;q(i,g,G=>t(0,o=G));let w,b,E=!1,v=h.ads.playbackState;q(i,v,G=>t(18,n=G));let y=h.ads.canSkip,I=h.ads.position;q(i,I,G=>t(5,l=G));let K=h.ads.secondsToWatchBeforeSkip;q(i,K,G=>t(6,r=G));let B,O;It(()=>{let G=h.getAdmanWrapper();if(!s){G.onAdmanLoadingError();return}let X=new AbortController,ue=()=>{X.abort()},{width:j,height:z}=xe(h.ui.playerSize),Q=xe(h.ui.isFullscreen),$=xe(h.ui.isAutoplay),W={width:j,height:z,isFullscreen:Q,isAutoplay:$,adsContainer:w,adsVideoElement:b,slotId:s,params:u,previewParam:f,duration:p};return window.AdmanHTML?(G.initAdman(W),E=!0):G.loadAdman(X.signal).then(()=>{G.initAdman(W),E=!0}).catch(()=>{G.onAdmanLoadingError()}),()=>{!E&&ue()}});function oe(G){ge[G?"unshift":"push"](()=>{b=G,t(2,b)})}function he(G){ge[G?"unshift":"push"](()=>{w=G,t(1,w)})}return i.$$set=G=>{"adsSlotId"in G&&t(14,s=G.adsSlotId),"adsParams"in G&&t(15,u=G.adsParams),"adsPreviewParam"in G&&t(16,f=G.adsPreviewParam),"duration"in G&&t(17,p=G.duration)},i.$$.update=()=>{i.$$.dirty&262144&&t(3,B=y&&n!=="inactive"),i.$$.dirty&262145&&t(4,O=o&&n!=="inactive")},[o,w,b,B,O,l,r,a,h,C,g,v,I,K,s,u,f,p,n,oe,he]}var Ds=class extends H{constructor(e){super(),U(this,e,uh,ah,F,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},sh)}},ur=Ds;var In=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(l=>l>9?String(l):`0${l}`).join(":")};function ch(i){let e,t,n,o,l=i[2].default,r=Te(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ce(s,a[u]);return{c(){e=R("svg"),r&&r.c(),t=R("path"),n=R("path"),c(t,"fill","none"),c(t,"stroke","#fff"),c(t,"stroke-width","2"),c(t,"d","M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"),c(n,"fill","#f0f2f5"),c(n,"fill-rule","evenodd"),c(n,"d","M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"),ke(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ke(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function fh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var qs=class extends H{constructor(e){super(),U(this,e,fh,ch,F,{})}},qf=qs;function dh(i){let e,t,n,o,l=i[2].default,r=Te(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ce(s,a[u]);return{c(){e=R("svg"),r&&r.c(),t=R("rect"),n=R("path"),c(t,"width","42"),c(t,"height","20"),c(t,"fill","#FF3347"),c(t,"rx","5"),c(n,"fill","#F2F3F5"),c(n,"fill-rule","evenodd"),c(n,"d","M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z"),c(n,"clip-rule","evenodd"),ke(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ke(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function mh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Ns=class extends H{constructor(e){super(),U(this,e,mh,dh,F,{})}},Nf=Ns;function ph(i){let e,t;return e=new qf({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function _h(i){let e,t;return e=new Nf({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function hh(i){let e,t,n,o,l=[_h,ph],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ut()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(de(),_(r[f],1,1,()=>{r[f]=null}),me(),t=r[e],t||(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),r[e].d(s)}}}function gh(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Os=class extends H{constructor(e){super(),U(this,e,gh,hh,F,{isActive:0})}},cr=Os;function bh(i){Pe(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 vh(i){let e=In(i[4]-i[3])+"",t;return{c(){t=Re(e)},m(n,o){S(n,t,o)},p(n,o){o&24&&e!==(e=In(n[4]-n[3])+"")&&We(t,e)},i:Se,o:Se,d(n){n&&k(t)}}}function yh(i){let e,t,n;return t=new cr({props:{isActive:!0}}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","thumb-timer-live-icon svelte-i7xnqb")},m(o,l){S(o,e,l),A(t,e,null),n=!0},p:Se,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function kh(i){let e,t,n,o,l,r,a,s=[yh,vh],u=[];function f(p,h){return p[1]?0:1}return l=f(i,-1),r=u[l]=s[l](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=M(),o=P("span"),r.c(),c(t,"class","thumb-timer-equalizer svelte-i7xnqb"),c(o,"class","thumb-timer-text svelte-i7xnqb"),c(e,"role","timer"),c(e,"class","thumb-timer svelte-i7xnqb"),c(e,"data-testid","thumb-timer"),D(e,"live",i[1]),D(e,"hidden",i[0]),D(e,"playing",i[2])},m(p,h){S(p,e,h),m(e,t),m(e,n),m(e,o),u[l].m(o,null),a=!0},p(p,[h]){let C=l;l=f(p,h),l===C?u[l].p(p,h):(de(),_(u[C],1,1,()=>{u[C]=null}),me(),r=u[l],r?r.p(p,h):(r=u[l]=s[l](p),r.c()),d(r,1),r.m(o,null)),(!a||h&2)&&D(e,"live",p[1]),(!a||h&1)&&D(e,"hidden",p[0]),(!a||h&4)&&D(e,"playing",p[2])},i(p){a||(d(r),a=!0)},o(p){_(r),a=!1},d(p){p&&k(e),u[l].d()}}}function wh(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:l=!1}=e,{position:r}=e,{duration:a}=e;return i.$$set=s=>{"isHidden"in s&&t(0,n=s.isHidden),"isLive"in s&&t(1,o=s.isLive),"isPlaying"in s&&t(2,l=s.isPlaying),"position"in s&&t(3,r=s.position),"duration"in s&&t(4,a=s.duration)},[n,o,l,r,a]}var Fs=class extends H{constructor(e){super(),U(this,e,wh,kh,F,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},bh)}},fr=Fs;var tl=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 jf}from"@vkontakte/videoplayer-core";import{clientChecker as Of}from"@vkontakte/videoplayer-shared";var Vo=i=>{i.stopPropagation(),i.preventDefault()},Ch=i=>{let e=i.previousElementSibling;e||(e=i.parentNode?.lastElementChild),e?.focus()},Ph=i=>{let e=i.nextElementSibling;e||(e=i.parentNode?.firstElementChild),e?.focus()},Ih=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},Th=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},Ff=i=>i.code==="Escape",Eh=i=>i.code==="ArrowLeft",Hf=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},zf=i=>{if(Ih(i)){Vo(i),Ph(i.target);return}Th(i)&&(Vo(i),Ch(i.target))},nl=i=>!Of.isAndroid&&i?.detail===0||Of.isAndroid&&i?.pointerType==="",ol=async(i,e,t)=>{await zn(),i&&!i.classList.contains("opened")&&!e&&xe(t)&&(await zn(),t.set(!1),i.focus())},Uf=async(i,e,t)=>{await zn(),i&&!e&&xe(t)&&(t.set(!1),i.focus())},Ro=async(i,e,t)=>{await zn(),!!i&&e&&t&&i.children[0]?.focus()},ll=async(i,e,t)=>{!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))},dr=(i,e)=>{zf(i),Ff(i)&&(Vo(i),e())},rl=async(i,e,t)=>{Hf(i,!1)&&(Vo(i),e(),await zn(),t()?.focus())},sl=async(i,e,t,n)=>{if(zf(i),Eh(i)){Vo(i),e(),t.set(!0);return}Ff(i)&&(Vo(i),n())},xt=(i,e)=>{Hf(i)&&(Vo(i),e())},Kf=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},Wf=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 mr,isValidURL as Ah}from"@vkontakte/videoplayer-shared";function Lh(i){Pe(i,"svelte-9tsdtv","ul.svelte-9tsdtv{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}li.svelte-9tsdtv{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}li.svelte-9tsdtv:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function Gf(i){let e,t,n,o,l,r,a,s,u,f,p=(i[10].features.saveDebugInfoToFile?N("menu_save_debug"):N("menu_copy_debug"))+"",h,C,g,w,b,E=N("menu_debug_overlay")+"",v,y,I,K,B=i[10].features.copyVideoLink&&i[9].callbacks?.onCopyVideoLink&&Mh(i),O=i[19]&&Vh(i),oe=i[12]&&i[6]!==jf.CONNECTED&&!i[17]&&Yf(i);function he(Q,$){return Q[4]?Bh:Rh}let G=he(i,[-1,-1]),X=G(i),ue=i[10].features.videoRotate&&!i[17]&&Dh(i),j=i[10].showSupport&&!i[7]&&Zf(i),z=i[10].features.saveTraceInfoToFile&&qh(i);return{c(){e=P("ul"),B&&B.c(),t=M(),O&&O.c(),n=M(),oe&&oe.c(),o=M(),l=P("li"),X.c(),a=M(),ue&&ue.c(),s=M(),j&&j.c(),u=M(),f=P("li"),h=Re(p),g=M(),z&&z.c(),w=M(),b=P("li"),v=Re(E),c(l,"tabindex","0"),c(l,"role","menuitem"),c(l,"aria-label",r=N("aria_label_menu_loop")),c(l,"class","svelte-9tsdtv"),c(f,"tabindex","0"),c(f,"role","menuitem"),c(f,"aria-label",C=i[10].features.saveDebugInfoToFile?N("menu_save_debug"):N("menu_copy_debug")),c(f,"class","svelte-9tsdtv"),c(b,"tabindex","0"),c(b,"role","menuitem"),c(b,"aria-label",y=i[8]?N("aria_label_menu_debug_overlay_disable"):N("aria_label_menu_debug_overlay_enable")),c(b,"class","svelte-9tsdtv"),c(e,"role","menu"),gi(e,"top",i[3]+"px"),gi(e,"left",i[2]+"px"),c(e,"class","svelte-9tsdtv")},m(Q,$){S(Q,e,$),B&&B.m(e,null),m(e,t),O&&O.m(e,null),m(e,n),oe&&oe.m(e,null),m(e,o),m(e,l),X.m(l,null),m(e,a),ue&&ue.m(e,null),m(e,s),j&&j.m(e,null),m(e,u),m(e,f),m(f,h),m(e,g),z&&z.m(e,null),m(e,w),m(e,b),m(b,v),i[48](e),I||(K=[pe(l,"click",rt(i[26])),pe(l,"keydown",i[39]),pe(f,"click",rt(i[22])),pe(f,"keydown",i[35]),pe(b,"click",rt(i[24])),pe(b,"keydown",i[37]),pe(e,"contextmenu",Ht(i[45])),pe(e,"keydown",i[29])],I=!0)},p(Q,$){Q[10].features.copyVideoLink&&Q[9].callbacks?.onCopyVideoLink&&B.p(Q,$),Q[19]&&O.p(Q,$),Q[12]&&Q[6]!==jf.CONNECTED&&!Q[17]?oe?oe.p(Q,$):(oe=Yf(Q),oe.c(),oe.m(e,o)):oe&&(oe.d(1),oe=null),G!==(G=he(Q,$))&&(X.d(1),X=G(Q),X&&(X.c(),X.m(l,null))),Q[10].features.videoRotate&&!Q[17]&&ue.p(Q,$),Q[10].showSupport&&!Q[7]?j?j.p(Q,$):(j=Zf(Q),j.c(),j.m(e,u)):j&&(j.d(1),j=null),Q[10].features.saveTraceInfoToFile&&z.p(Q,$),$[0]&256&&y!==(y=Q[8]?N("aria_label_menu_debug_overlay_disable"):N("aria_label_menu_debug_overlay_enable"))&&c(b,"aria-label",y),$[0]&8&&gi(e,"top",Q[3]+"px"),$[0]&4&&gi(e,"left",Q[2]+"px")},d(Q){Q&&k(e),B&&B.d(),O&&O.d(),oe&&oe.d(),X.d(),ue&&ue.d(),j&&j.d(),z&&z.d(),i[48](null),I=!1,it(K)}}}function Mh(i){let e,t,n,o,l,r,a=!i[5]&&!i[17]&&Qf(i);return{c(){e=P("li"),e.textContent=`${N("menu_copy_video_link")}`,n=M(),a&&a.c(),o=ut(),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=N("menu_copy_video_link")),c(e,"class","svelte-9tsdtv")},m(s,u){S(s,e,u),S(s,n,u),a&&a.m(s,u),S(s,o,u),l||(r=[pe(e,"click",rt(i[46])),pe(e,"keydown",i[30])],l=!0)},p(s,u){!s[5]&&!s[17]?a?a.p(s,u):(a=Qf(s),a.c(),a.m(o.parentNode,o)):a&&(a.d(1),a=null)},d(s){s&&(k(e),k(n),k(o)),a&&a.d(s),l=!1,it(r)}}}function Qf(i){let e,t,n,o;return{c(){e=P("li"),e.textContent=`${N("menu_copy_video_link_with_timestamp")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=N("menu_copy_video_link_with_timestamp")),c(e,"class","svelte-9tsdtv")},m(l,r){S(l,e,r),n||(o=[pe(e,"click",rt(i[47])),pe(e,"keydown",i[31])],n=!0)},p:Se,d(l){l&&k(e),n=!1,it(o)}}}function Vh(i){let e,t,n,o;return{c(){e=P("li"),e.textContent=`${N("menu_copy_embed_code")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=N("menu_copy_embed_code")),c(e,"class","svelte-9tsdtv")},m(l,r){S(l,e,r),n||(o=[pe(e,"click",rt(i[27])),pe(e,"keydown",i[38])],n=!0)},p:Se,d(l){l&&k(e),n=!1,it(o)}}}function Yf(i){let e,t,n,o;return{c(){e=P("li"),e.textContent=`${N("menu_pip")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=N("menu_pip")),c(e,"class","svelte-9tsdtv")},m(l,r){S(l,e,r),n||(o=[pe(e,"click",rt(i[25])),pe(e,"keydown",i[32])],n=!0)},p:Se,d(l){l&&k(e),n=!1,it(o)}}}function Rh(i){let e=N("menu_video_loop_on")+"",t;return{c(){t=Re(e)},m(n,o){S(n,t,o)},d(n){n&&k(t)}}}function Bh(i){let e=N("menu_video_loop_off")+"",t;return{c(){t=Re(e)},m(n,o){S(n,t,o)},d(n){n&&k(t)}}}function Dh(i){let e,t,n,o;return{c(){e=P("li"),e.textContent=`${N("menu_video_rotate")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=N("aria_label_menu_rotate")),c(e,"class","svelte-9tsdtv")},m(l,r){S(l,e,r),n||(o=[pe(e,"click",rt(i[20])),pe(e,"keydown",i[33])],n=!0)},p:Se,d(l){l&&k(e),n=!1,it(o)}}}function Zf(i){let e,t,n,o;return{c(){e=P("li"),e.textContent=`${N("menu_report")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=`${N("menu_report")}. ${N("aria_label_new_tab_alert")}`),c(e,"class","svelte-9tsdtv")},m(l,r){S(l,e,r),n||(o=[pe(e,"click",rt(i[21])),pe(e,"keydown",i[34])],n=!0)},p:Se,d(l){l&&k(e),n=!1,it(o)}}}function qh(i){let e,t,n,o;return{c(){e=P("li"),e.textContent=`${N("menu_save_debug")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=N("menu_save_debug")),c(e,"class","svelte-9tsdtv")},m(l,r){S(l,e,r),n||(o=[pe(e,"click",rt(i[23])),pe(e,"keydown",i[36])],n=!0)},p:Se,d(l){l&&k(e),n=!1,it(o)}}}function Nh(i){let e,t=i[1]&&Gf(i);return{c(){t&&t.c(),e=ut()},m(n,o){t&&t.m(n,o),S(n,e,o)},p(n,o){n[1]?t?t.p(n,o):(t=Gf(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:Se,o:Se,d(n){n&&k(e),t&&t.d(n)}}}function Oh(i,e,t){let n,o,l,r,a,s,{visible:u=!1}=e,{supportLink:f}=e,{position:p={top:0,left:0}}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:C=void 0}=e,{menuElementRef:g=void 0}=e,{returnFocus:w}=e,b=0,E=0,v=ot(),y=Dt(),I=v.ui.contextMenu.visible$,K=v.ui.debugPanelVisible;q(i,K,le=>t(8,s=le));let B=v.webApi.pictureInPictureApi,O=v.webApi.pictureInPictureApi?.info.isActive$;q(i,O,le=>t(7,a=le));let oe=v.actions.internal.togglePictureInPicture,he=v.state.chromecastState$;q(i,he,le=>t(6,r=le));let G=v.state.isLive$;q(i,G,le=>t(5,l=le));let X=v.state.positionExact$;q(i,X,le=>t(49,n=le));let ue=v.state.isInteractive,j=v.state.looped$;q(i,j,le=>t(4,o=le));let z=!!v.callbacks?.onCopyEmbedCodeClicked,Q=()=>{I.set(!1)},$=(le,lt)=>{if(!g||!h||!C)return;let be=g.getBoundingClientRect(),Ue=h.getBoundingClientRect();t(2,b=le-Ue.left),t(3,E=lt-Ue.top),b+be.width>Ue.width&&t(2,b=Ue.width-be.width),E+be.height>Ue.height&&t(3,E=Ue.height-be.height),t(2,b=Math.max(b,0)),t(3,E=Math.max(E,0))},W=()=>{Q(),v.actions.internal.videoRotate()},Y=()=>{Ah(f)&&window.open(f,"_blank"),v.actions.internal.reportProblem(),Q(),v.actions.internal.pause()},ie=()=>{let le=v.actions.internal.getDebugTextData();if(y.features.saveDebugInfoToFile){let lt=new Blob([...le],{type:"plain/text"}),be=window.URL.createObjectURL(lt);To(be,"vk_player_debug_info","txt")}else tl(v.actions.internal.getDebugTextData());Q(),w?.()},re=()=>{let le=v.actions.internal.getTraceTextData(),lt=new Blob([...le],{type:"application/json"}),be=window.URL.createObjectURL(lt);To(be,"vk_player_trace_info","json"),Q(),w?.()},Ve=()=>{K.set(!0),Q(),w?.()},Je=async()=>{try{oe()}finally{Q(),w?.()}},Ce=()=>{v.actions.internal.setLooped(!o),Q()},Me=()=>{if(z){let le=v.callbacks?.onCopyEmbedCodeClicked?.();le&&tl(le)}Q()},ze=(le=!1)=>{if(v.callbacks?.onCopyVideoLink){let lt=v.callbacks?.onCopyVideoLink(le,n);lt&&tl(lt)}Q()},$e=le=>{dr(le,Q)},fe=le=>{xt(le,()=>ze())},_e=le=>{xt(le,()=>ze(!0))},at=le=>{xt(le,()=>Je())},we=le=>{xt(le,()=>W())},Fe=le=>{xt(le,()=>Y())},ft=le=>{xt(le,()=>ie())},Ke=le=>{xt(le,()=>re())},Xe=le=>{xt(le,()=>Ve())},je=le=>{xt(le,()=>Me())},et=le=>{xt(le,()=>Ce())};function x(le){Pn.call(this,i,le)}let Oe=()=>ze(),Ge=()=>ze(!0);function se(le){ge[le?"unshift":"push"](()=>{g=le,t(0,g)})}return i.$$set=le=>{"visible"in le&&t(1,u=le.visible),"supportLink"in le&&t(40,f=le.supportLink),"position"in le&&t(41,p=le.position),"playerContainerRef"in le&&t(42,h=le.playerContainerRef),"controlsContainerRef"in le&&t(43,C=le.controlsContainerRef),"menuElementRef"in le&&t(0,g=le.menuElementRef),"returnFocus"in le&&t(44,w=le.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&7168&&g&&h&&C){let{top:le,left:lt,bottom:be,right:Ue}=p,tt=lt??0,dt=le??0,bt=g.getBoundingClientRect();mr(lt)&&!mr(Ue)&&(tt=Ue-bt.width),mr(le)&&!mr(be)&&(dt=be-bt.height),tt=Math.max(tt,0),dt=Math.max(dt,0),$(tt,dt)}},[g,u,b,E,o,l,r,a,s,v,y,K,B,O,he,G,X,ue,j,z,W,Y,ie,re,Ve,Je,Ce,Me,ze,$e,fe,_e,at,we,Fe,ft,Ke,Xe,je,et,f,p,h,C,w,x,Oe,Ge,se]}var Hs=class extends H{constructor(e){super(),U(this,e,Oh,Nh,F,{visible:1,supportLink:40,position:41,playerContainerRef:42,controlsContainerRef:43,menuElementRef:0,returnFocus:44},Lh,[-1,-1])}},Xf=Hs;var pr=class{constructor(e){this.value=e,this.next=null}};var al=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new pr(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 Fh(i){Pe(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function Hh(i){let e,t;return{c(){e=P("div"),t=P("canvas"),c(t,"class","svelte-1ssl9eb"),c(e,"class","container svelte-1ssl9eb")},m(n,o){S(n,e,o),m(e,t),i[3](t)},p:Se,i:Se,o:Se,d(n){n&&k(e),i[3](null)}}}var zs=16,Us=120,Jf=60;function zh(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function Uh(i,e,t){let{values:n=[]}=e,o,l,r=Us/Jf;It(()=>{t(0,o.width=Us,o),t(0,o.height=zs,o),t(2,l=o.getContext("2d"))});function a(s){ge[s?"unshift":"push"](()=>{o=s,t(0,o)})}return i.$$set=s=>{"values"in s&&t(1,n=s.values)},i.$$.update=()=>{if(i.$$.dirty&6){let s="";if(l){let u=n[0];for(let p=1;p<n.length;p++)n[p]>u&&(u=n[p]);l.clearRect(0,0,Us,zs);let f=Jf-1;for(let p=n.length-1;p>=0;p--){let h=f*r,C=u>0?zs*(n[p]/u):0;zh(l,h,0,r,C),s=C+" "+s,f--}}}},[o,n,l,a]}var Ks=class extends H{constructor(e){super(),U(this,e,Uh,Hh,F,{values:1},Fh)}},_r=Ks;import{safeStorage as xf}from"@vkontakte/videoplayer-shared";function Kh(i){Pe(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 $f(i){let e,t,n,o,l=i[0].id+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Video id",n=M(),o=P("span"),r=Re(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){S(a,e,s),m(e,t),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].id+"")&&We(r,l)},d(a){a&&k(e)}}}function ed(i){let e,t,n,o,l=i[0].vsid+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="VSID",n=M(),o=P("span"),r=Re(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){S(a,e,s),m(e,t),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].vsid+"")&&We(r,l)},d(a){a&&k(e)}}}function td(i){let e,t,n,o,l=i[0].provider+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Provider",n=M(),o=P("span"),r=Re(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){S(a,e,s),m(e,t),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].provider+"")&&We(r,l)},d(a){a&&k(e)}}}function id(i){let e,t,n,o,l,r=(i[0].videoCodec||"")+"",a,s,u=i[0].hdr?"(HDR)":"",f,p,h=(i[0].audioCodec||"")+"",C,g,w=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",b;return{c(){e=P("div"),t=P("div"),t.textContent="Streams",n=M(),o=P("span"),l=Re("Video: "),a=Re(r),s=M(),f=Re(u),p=Re(`
|
|
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 Jh(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("canvas"),n=M(),o=R("svg"),l=R("g"),r=R("g"),a=R("path"),c(t,"class","timer-canvas svelte-8jhsry"),c(t,"width","100"),c(t,"height","100"),c(a,"class","_play"),c(a,"d","m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z"),c(a,"fill","#fff"),c(r,"fill-rule","nonzero"),c(l,"fill","none"),c(l,"fill-rule","evenodd"),c(o,"class","timer-play-icon svelte-8jhsry"),c(o,"viewBox","0 0 24 24"),c(o,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","timer svelte-8jhsry")},m(s,u){C(s,e,u),m(e,t),i[2](t),m(e,n),m(e,o),m(o,l),m(l,r),m(r,a)},p:Se,i:Se,o:Se,d(s){s&&k(e),i[2](null)}}}var xh=5e3;function $h(i,e,t){let{onTimerEnded:n=Zh}=e,o;It(()=>{let r,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let s=Date.now(),u=()=>{let f=(Date.now()-s)/xh;f<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),a.stroke(),r=requestAnimationFrame(u)):n()};return r=requestAnimationFrame(u),()=>{cancelAnimationFrame(r)}});function l(r){be[r?"unshift":"push"](()=>{o=r,t(0,o)})}return i.$$set=r=>{"onTimerEnded"in r&&t(1,n=r.onTimerEnded)},[o,n,l]}var Gs=class extends H{constructor(e){super(),U(this,e,$h,Jh,F,{onTimerEnded:1},Xh)}},pd=Gs;function eg(i){Pe(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 _d(i){let e,t;return e=new pd({props:{onTimerEnded:i[2]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.onTimerEnded=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function tg(i){let e,t,n,o,l,r,a,s,u,f,p,h,S,g,w,b,E,v,y,I,K;a=new md({}),a.$on("click",i[4]);let B=i[3]&&_d(i);return{c(){e=P("div"),t=M(),n=P("div"),o=P("div"),l=P("div"),l.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",r=M(),V(a.$$.fragment),s=M(),u=P("div"),f=P("div"),p=P("div"),h=P("div"),S=M(),B&&B.c(),w=M(),b=P("div"),E=P("div"),v=Re(i[0]),c(e,"class","overlay svelte-kisfwc"),c(l,"class","caption svelte-kisfwc"),c(o,"class","top svelte-kisfwc"),c(h,"class","thumb-overlay svelte-kisfwc"),c(p,"class","thumb svelte-kisfwc"),c(p,"style",g=`background-image: url('${i[1]}')`),c(f,"class","column svelte-kisfwc"),c(E,"class","title svelte-kisfwc"),c(b,"class","column svelte-kisfwc"),c(u,"class","row svelte-kisfwc"),c(n,"class","next-video svelte-kisfwc")},m(O,ne){C(O,e,ne),C(O,t,ne),C(O,n,ne),m(n,o),m(o,l),m(o,r),A(a,o,null),m(n,s),m(n,u),m(u,f),m(f,p),m(p,h),m(p,S),B&&B.m(p,null),m(u,w),m(u,b),m(b,E),m(E,v),y=!0,I||(K=_e(u,"click",function(){Pi(i[2])&&i[2].apply(this,arguments)}),I=!0)},p(O,[ne]){i=O,i[3]?B?(B.p(i,ne),ne&8&&d(B,1)):(B=_d(i),B.c(),d(B,1),B.m(p,null)):B&&(me(),_(B,1,1,()=>{B=null}),pe()),(!y||ne&2&&g!==(g=`background-image: url('${i[1]}')`))&&c(p,"style",g),(!y||ne&1)&&We(v,i[0])},i(O){y||(d(a.$$.fragment,O),d(B),y=!0)},o(O){_(a.$$.fragment,O),_(B),y=!1},d(O){O&&(k(e),k(t),k(n)),L(a),B&&B.d(),I=!1,K()}}}function ig(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:l}=e,r=!0,a=()=>t(3,r=!1);return i.$$set=s=>{"title"in s&&t(0,n=s.title),"thumb"in s&&t(1,o=s.thumb),"playNextVideo"in s&&t(2,l=s.playNextVideo)},[n,o,l,r,a]}var Qs=class extends H{constructor(e){super(),U(this,e,ig,tg,F,{title:0,thumb:1,playNextVideo:2},eg)}},hd=Qs;import{PlaybackState as Do}from"@vkontakte/videoplayer-core";import{checkNever as og}from"@vkontakte/videoplayer-shared";import{SeekAction as yn}from"@vkontakte/videoplayer-statistics";var Ys=(i,e)=>Math.min(+(i+e).toFixed(2),1),Zs=(i,e)=>Math.max(+(i-e).toFixed(2),0),gr=(i,e,t)=>{let n=Ys(e,t);e<1&&i.actions.internal.setVolume(n)},br=(i,e,t)=>{let n=Zs(e,t);e>0&&i.actions.internal.setVolume(n)};var ro=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e?.(),!1):t?!0:(n?.(),!1);function lg(i){Pe(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function rg(i){let e,t,n,o,l,r=i[26].default,a=Te(r,i,i[25],null);return{c(){e=P("div"),a&&a.c(),c(e,"class","keyboard-controls svelte-10kkmxz"),c(e,"tabindex","-1"),c(e,"role","region"),c(e,"aria-label",t=N("aria_label_video_player"))},m(s,u){C(s,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(l=[_e(e,"keyup",i[17]),_e(e,"keydown",i[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Ae(a,r,s,s[25],n?Ee(r,s[25],u,null):Le(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){_(a,s),n=!1},d(s){s&&k(e),a&&a.d(s),i[27](null),o=!1,tt(l)}}}function sg(i,e,t){let n,o,l,r,a,s,u,f,p,h,S,g,w,b,E,{$$slots:v={},$$scope:y}=e,{isAds:I}=e,{hideContextMenu:K}=e,{toggleFullscreen:B}=e,{showHotKeyHelpers:O}=e,{showKeyMap:ne}=e,{fakePlayButtonHandler:ge}=e,G=it(),X=Vt(),ae=G.getLogger().createComponentLog("KeyboardControls component"),j=G.state.playbackState$;q(i,j,de=>t(31,o=de));let z=G.ads.playbackState;q(i,z,de=>t(30,n=de));let Q=G.state.positionExact$;q(i,Q,de=>t(41,g=de));let $=G.state.duration$;q(i,$,de=>t(40,S=de));let W=G.state.volume$;q(i,W,de=>t(44,E=de));let Y=G.ui.controls.disabledControls$;q(i,Y,de=>t(39,h=de));let ie=G.state.muted$;q(i,ie,de=>t(34,a=de));let le=G.state.currentSubtitle$;q(i,le,de=>t(33,r=de));let Ve=G.state.currentPlaybackRate$;q(i,Ve,de=>t(42,w=de));let Xe=G.state.availablePlaybackRates$;q(i,Xe,de=>t(43,b=de));let Ce=G.ui.contextMenu.openedByHotKey$,Me=G.ui.contextMenu.lastActiveElem$,ze=G.ui.contextMenu.visible$,$e=G.ui.contextMenu.position$,ce=G.state.isEnded$;q(i,ce,de=>t(36,u=de));let he=G.ui.overlayContainer$;q(i,he,de=>t(32,l=de));let at=G.callbacks?.onAudioDoesNotExistHint,we=G.callbacks?.onAudioDisabledHint,Fe=G.state.isAudioAvailable$;q(i,Fe,de=>t(35,s=de));let ct=G.state.isAudioDisabled,je=G.state.isInteractiveTime$;q(i,je,de=>t(38,p=de));let{showInteractiveTimeIndicatorTooltip$:Ke}=Bn();q(i,Ke,de=>t(37,f=de));let Ze=0,xe=!0,x,qe=()=>x?.focus(),He=de=>(de!==xe&&(xe=de,Ze=0),Ze+=1,(X.controls.seekStepKeyboard+X.controls.seekStepKeyboard*Ze)/1e3),fe=de=>{let lt=de.target,rt=lt?.getAttribute("role")?.includes("menuitem"),dt=lt.classList.contains("btn"),vt=de.code;if(dt&&vt==="Space")return;let Tt=jc.has(vt);if(rt&&Tt)return;let Ge=!Wc.has(vt);if(de.ctrlKey&&Ge||de.altKey&&Ge||de.metaKey)return;let zt=rt&&vt==="Escape";Gc.has(vt)||zt||K();let Rt=o===Do.PLAYING||o===Do.PAUSED,kt=I&&(n==="paused"||n==="playing"),si=!kt&&!h.has("TIMELINE");if(Rt||kt)switch(ae({message:`key down, code: ${vt}`}),vt){case"KeyJ":case"ArrowLeft":{if(!si)break;if(de.ctrlKey||de.altKey){let st=G.actions.internal.getPrevEpisode();G.actions.internal.seekToPrevEpisode(st),st&&O({type:"EPISODE_PREV",text:st.text}),de.preventDefault()}else{let st=de.shiftKey?He(!1):X.controls.seekStepKeyboard/1e3,yt=Math.max(g-st,0);g>0&&(G.actions.internal.seekTime(yt,yn.DOUBLE_TAP),O({type:"BACKWARD_SEEK",text:st.toString()}),de.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!si)break;if(de.ctrlKey||de.altKey){let st=G.actions.internal.getNextEpisode();G.actions.internal.seekToNextEpisode(st),st&&O({type:"EPISODE_NEXT",text:st.text}),de.preventDefault()}else{let st=de.shiftKey?He(!0):X.controls.seekStepKeyboard/1e3,yt=Math.min(g+st,S);Math.round(g)<Math.round(S)&&(G.actions.internal.seekTime(yt,yn.DOUBLE_TAP),O({type:"FORWARD_SEEK",text:st.toString()}),de.preventDefault())}break}case"ArrowUp":{if(ro({isAudioDisabled:ct,audioDisabledHintCallback:we,isAudioAvailable:s,audioIsNotExistHintCallback:at})){let st=E,yt=X.controls.volumeStepKeyboard,ke=st<=1;if(gr(G,st,yt),ke){let _t=Math.round(Ys(st,yt)*100).toString();O({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:_t}})}}de.preventDefault();break}case"ArrowDown":{if(ro({isAudioDisabled:ct,audioDisabledHintCallback:we,isAudioAvailable:s,audioIsNotExistHintCallback:at})){let st=E,yt=X.controls.volumeStepKeyboard,ke=st>=0;if(br(G,st,yt),ke){let _t=Math.round(Zs(st,yt)*100).toString();O({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:_t}})}}de.preventDefault();break}case"Comma":{if(de.shiftKey){G.actions.internal.decrementPlaybackRate();let st=b.find(yt=>yt.value===w);O({type:"RATE_DOWN",text:st?.displayValue}),de.preventDefault()}else{if(kt||o!==Do.PAUSED)break;let st=Math.max(g-X.controls.seekStepFrame/1e3,0);g>0&&(O({type:"BACKWARD_SEEK"}),G.actions.internal.clearDelayedBufferingCheckTimeout(),G.actions.internal.seekTime(st,yn.DOUBLE_TAP),de.preventDefault())}break}case"Period":{if(de.shiftKey){G.actions.internal.incrementPlaybackRate();let st=b.find(yt=>yt.value===w);O({type:"RATE_UP",text:st?.displayValue}),de.preventDefault()}else{if(kt||o!==Do.PAUSED)break;let st=Math.min(g+X.controls.seekStepFrame/1e3,S);g<S&&(O({type:"FORWARD_SEEK"}),G.actions.internal.clearDelayedBufferingCheckTimeout(),G.actions.internal.seekTime(st,yn.DOUBLE_TAP),de.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(p&&f&&Ke.set(!1),ge)ge();else{G.actions.internal.togglePlay();let st="PLAY";o===Do.PAUSED?st="PAUSE":u&&(st="REPLAY"),O({type:st})}de.preventDefault();break;case"KeyM":{ro({isAudioDisabled:ct,audioDisabledHintCallback:we,isAudioAvailable:s,audioIsNotExistHintCallback:at})&&(O({type:a?"VOLUME":"MUTE"}),G.actions.internal.toggleMuted()),de.preventDefault();break}case"KeyF":B(),de.preventDefault();break;case"KeyC":G.actions.internal.toggleSubtitle(),r.value!=="off"?O({type:"SUBTITLES_ON",text:r?.displayValue}):O({type:"SUBTITLES_OFF"}),de.preventDefault();break;case"KeyI":G.actions.internal.togglePictureInPicture(),de.preventDefault();break;case"Digit1":case"Numpad1":if(de.shiftKey){let st=Wf(l);$e.set(st),Me.set(lt),Ce.set(!0),ze.set(!0),de.preventDefault();break}O(),G.actions.internal.seekToPercent(.1,yn.DOUBLE_TAP),de.preventDefault();break;case"Digit2":case"Numpad2":O(),G.actions.internal.seekToPercent(.2,yn.DOUBLE_TAP),de.preventDefault();break;case"Digit3":case"Numpad3":O(),G.actions.internal.seekToPercent(.3,yn.DOUBLE_TAP),de.preventDefault();break;case"Digit4":case"Numpad4":O(),G.actions.internal.seekToPercent(.4,yn.DOUBLE_TAP),de.preventDefault();break;case"Digit5":case"Numpad5":O(),G.actions.internal.seekToPercent(.5,yn.DOUBLE_TAP),de.preventDefault();break;case"Digit6":case"Numpad6":O(),G.actions.internal.seekToPercent(.6,yn.DOUBLE_TAP),de.preventDefault();break;case"Digit7":case"Numpad7":O(),G.actions.internal.seekToPercent(.7,yn.DOUBLE_TAP),de.preventDefault();break;case"Digit8":case"Numpad8":O(),G.actions.internal.seekToPercent(.8,yn.DOUBLE_TAP),de.preventDefault();break;case"Digit9":case"Numpad9":O(),G.actions.internal.seekToPercent(.9,yn.DOUBLE_TAP),de.preventDefault();break;case"Digit0":case"Numpad0":O(),G.actions.internal.seekToPercent(0,yn.DOUBLE_TAP),de.preventDefault();break;case"Slash":{de.shiftKey&&X.features.hotKeyMapModal&&(ne(),de.preventDefault());break}case"ShiftLeft":case"ShiftRight":de.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:og(vt);break}},re=de=>{let lt=de.code;if(de.ctrlKey||de.altKey||de.metaKey)return;let rt=o===Do.PLAYING||o===Do.PAUSED,dt=I&&(n==="paused"||n==="playing");if(rt||dt)switch(lt){case"ShiftLeft":case"ShiftRight":Ze=0;break}};function nt(de){be[de?"unshift":"push"](()=>{x=de,t(0,x)})}return i.$$set=de=>{"isAds"in de&&t(18,I=de.isAds),"hideContextMenu"in de&&t(19,K=de.hideContextMenu),"toggleFullscreen"in de&&t(20,B=de.toggleFullscreen),"showHotKeyHelpers"in de&&t(21,O=de.showHotKeyHelpers),"showKeyMap"in de&&t(22,ne=de.showKeyMap),"fakePlayButtonHandler"in de&&t(23,ge=de.fakePlayButtonHandler),"$$scope"in de&&t(25,y=de.$$scope)},[x,j,z,Q,$,W,Y,ie,le,Ve,Xe,ce,he,Fe,je,Ke,fe,re,I,K,B,O,ne,ge,qe,y,v,nt]}var Xs=class extends H{constructor(e){super(),U(this,e,sg,rg,F,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},lg,[-1,-1])}get focus(){return this.$$.ctx[24]}},gd=Xs;function ag(i){Pe(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 ug(i){let e,t,n,o,l,r;return{c(){e=P("div"),t=P("div"),n=M(),o=P("div"),l=M(),r=P("div"),c(t,"class","dot svelte-8nkw5s"),c(o,"class","dot svelte-8nkw5s"),c(r,"class","dot svelte-8nkw5s"),c(e,"class","container svelte-8nkw5s"),c(e,"style",i[0])},m(a,s){C(a,e,s),m(e,t),m(e,n),m(e,o),m(e,l),m(e,r)},p(a,[s]){s&1&&c(e,"style",a[0])},i:Se,o:Se,d(a){a&&k(e)}}}function cg(i,e,t){let{style:n=""}=e;return i.$$set=o=>{"style"in o&&t(0,n=o.style)},[n]}var Js=class extends H{constructor(e){super(),U(this,e,cg,ug,F,{style:0},ag)}},ul=Js;function fg(i){let e,t,n,o,l,r,a,s,u,f,p,h,S,g,w=i[2].default,b=Te(w,i,i[1],null),E=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],v={};for(let y=0;y<E.length;y+=1)v=ue(v,E[y]);return{c(){e=R("svg"),b&&b.c(),t=R("g"),n=R("path"),o=R("path"),l=R("defs"),r=R("filter"),a=R("feFlood"),s=R("feColorMatrix"),u=R("feOffset"),f=R("feGaussianBlur"),p=R("feColorMatrix"),h=R("feBlend"),S=R("feBlend"),c(n,"fill","#fff"),c(n,"d","M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2422_111980"),c(S,"in","SourceGraphic"),c(S,"in2","effect1_dropShadow_2422_111980"),c(S,"result","shape"),c(r,"id","a"),c(r,"width","23"),c(r,"height","23"),c(r,"x",".5"),c(r,"y",".5"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ye(e,v)},m(y,I){C(y,e,I),b&&b.m(e,null),m(e,t),m(t,n),m(t,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,S),g=!0},p(y,[I]){b&&b.p&&(!g||I&2)&&Ae(b,w,y,y[1],g?Ee(w,y[1],I,null):Le(y[1]),null),ye(e,v=Be(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},I&1&&y[0]]))},i(y){g||(d(b,y),g=!0)},o(y){_(b,y),g=!1},d(y){y&&k(e),b&&b.d(y)}}}function dg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var xs=class extends H{constructor(e){super(),U(this,e,dg,fg,F,{})}},bd=xs;import{noop as Jn}from"@vkontakte/videoplayer-shared";function mg(i){Pe(i,"svelte-1anemql",".btn.svelte-1anemql{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center}.w-max.svelte-1anemql{width:100%}.btn--live.svelte-1anemql{padding:10px 4px}.btn-m.svelte-1anemql{position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.btn-m--play.svelte-1anemql{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn.svelte-1anemql:disabled{cursor:default;pointer-events:none}.btn.svelte-1anemql:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-1anemql:not(:disabled):hover{opacity:0.8}.pr-0.svelte-1anemql{padding-right:0}.pl-0.svelte-1anemql{padding-left:0}")}function pg(i){let e,t,n,o,l,r,a,s,u,f,p,h,S=i[14].default,g=Te(S,i,i[13],null);return{c(){e=P("button"),g&&g.c(),c(e,"class",t="btn "+i[1]+" svelte-1anemql"),c(e,"style",n=i[2]||null),e.disabled=o=i[3]??null,c(e,"aria-hidden",l=i[5]??null),c(e,"aria-label",r=i[6]??null),c(e,"aria-keyshortcuts",a=i[7]??null),c(e,"aria-expanded",s=i[8]??null),c(e,"data-testid",u=i[4]??null),c(e,"tabindex",i[9])},m(w,b){C(w,e,b),g&&g.m(e,null),i[16](e),f=!0,p||(h=[_e(e,"pointerdown",ot(i[15])),_e(e,"click",ot(function(){Pi(i[10]===Jn?null:i[10])&&(i[10]===Jn?null:i[10]).apply(this,arguments)})),_e(e,"focus",Ht(function(){Pi(i[11]===Jn?null:i[11])&&(i[11]===Jn?null:i[11]).apply(this,arguments)})),_e(e,"blur",Ht(function(){Pi(i[12]===Jn?null:i[12])&&(i[12]===Jn?null:i[12]).apply(this,arguments)}))],p=!0)},p(w,[b]){i=w,g&&g.p&&(!f||b&8192)&&Ae(g,S,i,i[13],f?Ee(S,i[13],b,null):Le(i[13]),null),(!f||b&2&&t!==(t="btn "+i[1]+" svelte-1anemql"))&&c(e,"class",t),(!f||b&4&&n!==(n=i[2]||null))&&c(e,"style",n),(!f||b&8&&o!==(o=i[3]??null))&&(e.disabled=o),(!f||b&32&&l!==(l=i[5]??null))&&c(e,"aria-hidden",l),(!f||b&64&&r!==(r=i[6]??null))&&c(e,"aria-label",r),(!f||b&128&&a!==(a=i[7]??null))&&c(e,"aria-keyshortcuts",a),(!f||b&256&&s!==(s=i[8]??null))&&c(e,"aria-expanded",s),(!f||b&16&&u!==(u=i[4]??null))&&c(e,"data-testid",u),(!f||b&512)&&c(e,"tabindex",i[9])},i(w){f||(d(g,w),f=!0)},o(w){_(g,w),f=!1},d(w){w&&k(e),g&&g.d(w),i[16](null),p=!1,tt(h)}}}function _g(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:l=""}=e,{style:r=""}=e,{disabled:a=void 0}=e,{testId:s=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:f=void 0}=e,{ref:p=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:S=void 0}=e,{tabIndex:g=0}=e,{click:w=Jn}=e,{focus:b=Jn}=e,{blur:E=Jn}=e;function v(I){Pn.call(this,i,I)}function y(I){be[I?"unshift":"push"](()=>{p=I,t(0,p)})}return i.$$set=I=>{"className"in I&&t(1,l=I.className),"style"in I&&t(2,r=I.style),"disabled"in I&&t(3,a=I.disabled),"testId"in I&&t(4,s=I.testId),"ariaHidden"in I&&t(5,u=I.ariaHidden),"ariaLabel"in I&&t(6,f=I.ariaLabel),"ref"in I&&t(0,p=I.ref),"ariaKeyShortCut"in I&&t(7,h=I.ariaKeyShortCut),"ariaExpanded"in I&&t(8,S=I.ariaExpanded),"tabIndex"in I&&t(9,g=I.tabIndex),"click"in I&&t(10,w=I.click),"focus"in I&&t(11,b=I.focus),"blur"in I&&t(12,E=I.blur),"$$scope"in I&&t(13,o=I.$$scope)},[p,l,r,a,s,u,f,h,S,g,w,b,E,o,n,v,y]}var $s=class extends H{constructor(e){super(),U(this,e,_g,pg,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},mg)}},pt=$s;function hg(i){Pe(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 vd(i){let e,t,n,o,l,r=i[2]&&yd(i);return{c(){e=P("div"),t=P("h3"),n=Re(i[3]),o=M(),r&&r.c(),c(t,"class","modal-title svelte-1witlsj"),c(e,"class","modal-header svelte-1witlsj")},m(a,s){C(a,e,s),m(e,t),m(t,n),m(e,o),r&&r.m(e,null),l=!0},p(a,s){(!l||s&8)&&We(n,a[3]),a[2]?r?(r.p(a,s),s&4&&d(r,1)):(r=yd(a),r.c(),d(r,1),r.m(e,null)):r&&(me(),_(r,1,1,()=>{r=null}),pe())},i(a){l||(d(r),l=!0)},o(a){_(r),l=!1},d(a){a&&k(e),r&&r.d()}}}function yd(i){let e,t;return e=new pt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:N("hotkey_map_modal_close_btn_text"),$$slots:{default:[gg]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&1&&(l.click=n[0]),o&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function gg(i){let e,t;return e=new bd({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function bg(i){let e,t,n,o,l,r,a=i[1]&&vd(i),s=i[4].default,u=Te(s,i,i[5],null);return{c(){e=P("div"),t=P("div"),a&&a.c(),n=M(),o=P("div"),l=P("div"),u&&u.c(),c(l,"class","modal-main svelte-1witlsj"),c(o,"class","modal-scroll svelte-1witlsj"),c(t,"class","modal-container svelte-1witlsj"),c(e,"class","modal-overlay svelte-1witlsj")},m(f,p){C(f,e,p),m(e,t),a&&a.m(t,null),m(t,n),m(t,o),m(o,l),u&&u.m(l,null),r=!0},p(f,[p]){f[1]?a?(a.p(f,p),p&2&&d(a,1)):(a=vd(f),a.c(),d(a,1),a.m(t,n)):a&&(me(),_(a,1,1,()=>{a=null}),pe()),u&&u.p&&(!r||p&32)&&Ae(u,s,f,f[5],r?Ee(s,f[5],p,null):Le(f[5]),null)},i(f){r||(d(a),d(u,f),r=!0)},o(f){_(a),_(u,f),r=!1},d(f){f&&k(e),a&&a.d(),u&&u.d(f)}}}function vg(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:l}=e,{showHeader:r=!0}=e,{showCloseCross:a=!0}=e,{title:s}=e;return i.$$set=u=>{"onClose"in u&&t(0,l=u.onClose),"showHeader"in u&&t(1,r=u.showHeader),"showCloseCross"in u&&t(2,a=u.showCloseCross),"title"in u&&t(3,s=u.title),"$$scope"in u&&t(5,o=u.$$scope)},[l,r,a,s,n,o]}var ea=class extends H{constructor(e){super(),U(this,e,vg,bg,F,{onClose:0,showHeader:1,showCloseCross:2,title:3},hg)}},kd=ea;var yg=new Set(["BR"]),ta=i=>{let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let o=t[n],l=o.tagName;yg.has(l)||o.parentElement?.removeChild(o)}return e.innerHTML};function kg(i){Pe(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 wd(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function Cd(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function Sd(i){let e,t,n=ta(i[9])+"",o,l,r=i[10]+"",a,s;return{c(){e=P("li"),t=P("span"),o=M(),l=P("span"),a=Re(r),s=M(),c(t,"class","hot-key-map-item-description svelte-quklnq"),c(l,"class","hot-key-map-item-value svelte-quklnq"),c(e,"class","hot-key-map-item svelte-quklnq")},m(u,f){C(u,e,f),m(e,t),t.innerHTML=n,m(e,o),m(e,l),m(l,a),m(e,s)},p(u,f){f&1&&n!==(n=ta(u[9])+"")&&(t.innerHTML=n),f&1&&r!==(r=u[10]+"")&&We(a,r)},d(u){u&&k(e)}}}function Pd(i){let e,t,n=i[5]+"",o,l,r,a,s=St(i[6]),u=[];for(let f=0;f<s.length;f+=1)u[f]=Sd(Cd(i,s,f));return{c(){e=P("div"),t=P("h5"),o=Re(n),l=M(),r=P("ul");for(let f=0;f<u.length;f+=1)u[f].c();a=M(),c(t,"class","hot-key-map-group-title svelte-quklnq"),c(r,"class","hot-key-map-group-items svelte-quklnq"),c(e,"class","hot-key-map-group svelte-quklnq")},m(f,p){C(f,e,p),m(e,t),m(t,o),m(e,l),m(e,r);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(r,null);m(e,a)},p(f,p){if(p&1&&n!==(n=f[5]+"")&&We(o,n),p&1){s=St(f[6]);let h;for(h=0;h<s.length;h+=1){let S=Cd(f,s,h);u[h]?u[h].p(S,p):(u[h]=Sd(S),u[h].c(),u[h].m(r,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=s.length}},d(f){f&&k(e),Ii(u,f)}}}function wg(i){let e,t=St(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=Pd(wd(i,t,o));return{c(){e=P("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","hot-key-map svelte-quklnq")},m(o,l){C(o,e,l);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,l){if(l&1){t=St(o[0].groups);let r;for(r=0;r<t.length;r+=1){let a=wd(o,t,r);n[r]?n[r].p(a,l):(n[r]=Pd(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&k(e),Ii(n,o)}}}function Cg(i){let e,t;return e=new kd({props:{title:i[0].title,onClose:i[2],$$slots:{default:[wg]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.title=n[0].title),o&8193&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Sg(i,e,t){let n,o=it(),{data:l,show:r}=o.ui.modals.hotKeyMap;return q(i,l,s=>t(0,n=s)),[n,l,()=>{r.set(!1)}]}var ia=class extends H{constructor(e){super(),U(this,e,Sg,Cg,F,{},kg)}},Id=ia;import{noop as Fu}from"@vkontakte/videoplayer-shared";import{ChromecastState as dm,PlaybackState as Au}from"@vkontakte/videoplayer-core";import{VideoQuality as k2}from"@vkontakte/videoplayer-core";import{isValidURL as w2}from"@vkontakte/videoplayer-shared";var qo={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"},Td={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"};var Pg=i=>qo[i]??qo[Td[i]]??void 0,vr=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),xn=(i,e)=>{if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=Pg(t)??t),n&&t&&o){let r=e.filter(a=>a.label===n&&a.language===t);if(r.length===1)return N("audio_stream_display_language_label",{language:o,label:n});{let a=vr(i,r);return N("audio_stream_display_language_label_index",{language:o,label:n,index:a})}}if(n){let r=e.filter(a=>a.label===n);if(r.length===1)return n;{let a=vr(i,r);return N("audio_stream_display_label_index",{label:n,index:a})}}if(t&&o){let r=e.filter(a=>a.language===t);if(r.length===1)return o;{let a=vr(i,r);return N("audio_stream_display_language_index",{language:o,index:a})}}let l=vr(i,e);return N("audio_stream_display_unknown",{index:l})};import"@vkontakte/videoplayer-shared";function Ig(i){Pe(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 Tg(i){let e,t,n=i[1].default,o=Te(n,i,i[0],null);return{c(){e=P("div"),o&&o.c(),c(e,"class","pillow svelte-1oe0j8n")},m(l,r){C(l,e,r),o&&o.m(e,null),t=!0},p(l,[r]){o&&o.p&&(!t||r&1)&&Ae(o,n,l,l[0],t?Ee(n,l[0],r,null):Le(l[0]),null)},i(l){t||(d(o,l),t=!0)},o(l){_(o,l),t=!1},d(l){l&&k(e),o&&o.d(l)}}}function Eg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{"$$scope"in l&&t(0,o=l.$$scope)},[o,n]}var na=class extends H{constructor(e){super(),U(this,e,Eg,Tg,F,{},Ig)}},Ed=na;import{VideoQuality as Pl}from"@vkontakte/videoplayer-core";function Ag(i){let e,t,n,o,l=i[2].default,r=Te(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),t=R("path"),n=R("path"),c(t,"fill","currentColor"),c(t,"d","M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(n,"d","m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z"),c(n,"clip-rule","evenodd"),ye(e,s)},m(u,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function Lg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var oa=class extends H{constructor(e){super(),U(this,e,Lg,Ag,F,{})}},Ad=oa;function Mg(i){let e,t,n,o,l=i[2].default,r=Te(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),t=R("path"),n=R("path"),c(t,"fill","currentColor"),c(t,"d","M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(n,"d","M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524"),c(n,"clip-rule","evenodd"),ye(e,s)},m(u,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function Vg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var la=class extends H{constructor(e){super(),U(this,e,Vg,Mg,F,{})}},Ld=la;function Rg(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","currentColor"),c(t,"d","M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Bg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ra=class extends H{constructor(e){super(),U(this,e,Bg,Rg,F,{})}},Md=ra;function Dg(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","currentColor"),c(t,"d","M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function qg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var sa=class extends H{constructor(e){super(),U(this,e,qg,Dg,F,{})}},yr=sa;function Ng(i){let e,t,n,o,l=i[2].default,r=Te(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),t=R("path"),n=R("path"),c(t,"fill","currentColor"),c(t,"d","M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(n,"d","M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02"),c(n,"clip-rule","evenodd"),ye(e,s)},m(u,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function Og(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var aa=class extends H{constructor(e){super(),U(this,e,Og,Ng,F,{})}},kr=aa;var so=i=>{switch(i){case Pl.Q_720P:return Md;case Pl.Q_1080P:return yr;case Pl.Q_1440P:return kr;case Pl.Q_2160P:return Ad;case Pl.Q_4320P:return Ld}};function Fg(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Hg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ua=class extends H{constructor(e){super(),U(this,e,Hg,Fg,F,{})}},Vd=ua;function zg(i){let e,t,n,o,l=i[2].default,r=Te(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),t=R("path"),n=R("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"d","M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"),c(n,"class","_full"),ye(e,s)},m(u,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function Ug(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ca=class extends H{constructor(e){super(),U(this,e,Ug,zg,F,{})}},Rd=ca;function Kg(i){Pe(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 Wg(i){let e,t,n,o,l=i[1]&&Bd(i);return n=new Rd({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=P("div"),l&&l.c(),t=M(),V(n.$$.fragment),c(e,"class","icon svelte-8t5w85"),c(e,"aria-hidden","true"),D(e,"triple",i[2])},m(r,a){C(r,e,a),l&&l.m(e,null),m(e,t),A(n,e,null),o=!0},p(r,a){r[1]?l?(l.p(r,a),a&2&&d(l,1)):(l=Bd(r),l.c(),d(l,1),l.m(e,t)):l&&(me(),_(l,1,1,()=>{l=null}),pe());let s={};a&2&&(s["data-testid"]=r[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&D(e,"triple",r[2])},i(r){o||(d(l),d(n.$$.fragment,r),o=!0)},o(r){_(l),_(n.$$.fragment,r),o=!1},d(r){r&&k(e),l&&l.d(),L(n)}}}function jg(i){let e,t;return e=new Vd({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p:Se,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Bd(i){let e,t;return e=new Ed({props:{$$slots:{default:[Gg]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&18&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Gg(i){let e,t,n;var o=i[1];function l(r,a){return{}}return o&&(e=vn(o,l(i))),{c(){e&&V(e.$$.fragment),t=ut()},m(r,a){e&&A(e,r,a),C(r,t,a),n=!0},p(r,a){if(a&2&&o!==(o=r[1])){if(e){me();let s=e;_(s.$$.fragment,1,0,()=>{L(s,1)}),pe()}o?(e=vn(o,l(r,a)),V(e.$$.fragment),d(e.$$.fragment,1),A(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&_(e.$$.fragment,r),n=!1},d(r){r&&k(t),e&&L(e,r)}}}function Qg(i){let e,t,n,o,l=[jg,Wg],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ut()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),r[e].d(s)}}}function Yg(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:l=void 0}=e,r;return i.$$set=a=>{"isMobile"in a&&t(0,o=a.isMobile),"currentQuality"in a&&t(3,l=a.currentQuality)},i.$$.update=()=>{i.$$.dirty&8&&t(1,n=so(l)),i.$$.dirty&2&&t(2,r=!!n&&[yr,kr].includes(n))},[o,n,r,l]}var fa=class extends H{constructor(e){super(),U(this,e,Yg,Qg,F,{isMobile:0,currentQuality:3},Kg)}},wr=fa;function Zg(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Xg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var da=class extends H{constructor(e){super(),U(this,e,Xg,Zg,F,{})}},Cr=da;function Jg(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18"),c(t,"clip-rule","evenodd"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function xg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ma=class extends H{constructor(e){super(),U(this,e,xg,Jg,F,{})}},Dd=ma;function $g(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z"),c(t,"clip-rule","evenodd"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function e2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var pa=class extends H{constructor(e){super(),U(this,e,e2,$g,F,{})}},qd=pa;function t2(i){let e,t,n,o,l,r=i[2].default,a=Te(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=R("svg"),a&&a.c(),t=R("g"),n=R("path"),o=R("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(o,"fill-rule","nonzero"),c(o,"d","M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"),c(t,"fill","none"),c(t,"fill-rule","evenodd"),ye(e,u)},m(f,p){C(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function i2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var _a=class extends H{constructor(e){super(),U(this,e,i2,t2,F,{})}},Nd=_a;function n2(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function o2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ha=class extends H{constructor(e){super(),U(this,e,o2,n2,F,{})}},Od=ha;function l2(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"fill-opacity",".72"),c(t,"fill-rule","evenodd"),c(t,"d","M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272"),c(t,"clip-rule","evenodd"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function r2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ga=class extends H{constructor(e){super(),U(this,e,r2,l2,F,{})}},Fd=ga;function s2(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function a2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ba=class extends H{constructor(e){super(),U(this,e,a2,s2,F,{})}},Hd=ba;function u2(i){let e,t;return e=new Hd({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.style=n[2]),o&1&&(l["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function c2(i){let e,t;return e=new Fd({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.style=n[2]),o&1&&(l["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function f2(i){let e,t,n,o,l=[c2,u2],r=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ut()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),r[e].d(s)}}}function d2(i,e,t){let n,{direction:o="left"}=e,l,r;return i.$$set=a=>{"direction"in a&&t(3,o=a.direction)},i.$$.update=()=>{i.$$.dirty&8&&(t(1,l=["up","down"].includes(o)),t(0,r=["right","down"].includes(o))),i.$$.dirty&1&&t(2,n=r?"transform: rotate(180deg);":void 0)},[r,l,n,o]}var va=class extends H{constructor(e){super(),U(this,e,d2,f2,F,{direction:3})}},Wn=va;function m2(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z"),c(t,"clip-rule","evenodd"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function p2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ya=class extends H{constructor(e){super(),U(this,e,p2,m2,F,{})}},zd=ya;function _2(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function h2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ka=class extends H{constructor(e){super(),U(this,e,h2,_2,F,{})}},No=ka;function g2(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492"),c(t,"clip-rule","evenodd"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function b2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var wa=class extends H{constructor(e){super(),U(this,e,b2,g2,F,{})}},Ca=wa;function v2(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function y2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Sa=class extends H{constructor(e){super(),U(this,e,y2,v2,F,{})}},Ud=Sa;function C2(i){Pe(i,"svelte-1h807jq","ul.svelte-1h807jq.svelte-1h807jq{margin:0;padding:0}.menu.svelte-1h807jq.svelte-1h807jq{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s}.container-mobile.svelte-1h807jq.svelte-1h807jq{width:100%}.menu-desktop.svelte-1h807jq.svelte-1h807jq{position:absolute;right:0;bottom:0}.menu-mobile.svelte-1h807jq.svelte-1h807jq{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.menu-mobile.hidden.svelte-1h807jq.svelte-1h807jq{display:none}.menu-subList.svelte-1h807jq.svelte-1h807jq{min-width:134px;padding-bottom:0}.menu-subList-subtitles.svelte-1h807jq.svelte-1h807jq{min-width:164px}.menu-subList-traffic-saving.svelte-1h807jq.svelte-1h807jq{min-width:286px}.item.svelte-1h807jq.svelte-1h807jq{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;padding:0 24px 0 18px;white-space:nowrap;position:relative}.item-mobile.svelte-1h807jq.svelte-1h807jq{padding:0 14px}.item-quality.item-mobile.svelte-1h807jq.svelte-1h807jq,.item-traffic-saving.item-mobile.svelte-1h807jq.svelte-1h807jq,.item-helper-text.item-mobile.svelte-1h807jq.svelte-1h807jq{flex-direction:row-reverse}.item-helper-text.svelte-1h807jq.svelte-1h807jq{cursor:auto;pointer-events:none;white-space:normal;padding:7px 24px 7px 18px}.item-helper-text.svelte-1h807jq span.svelte-1h807jq{color:rgba(255, 255, 255, 0.48);line-height:18px;text-align:end}.item-helper-text.item-mobile.svelte-1h807jq.svelte-1h807jq{padding:7px 14px}.item-helper-text.item-mobile.svelte-1h807jq span.svelte-1h807jq{text-align:start}.submenu-value.svelte-1h807jq.svelte-1h807jq{overflow:hidden;;;text-overflow:ellipsis}.submenu-value-mobile.svelte-1h807jq.svelte-1h807jq{flex-grow:1}.item.svelte-1h807jq.svelte-1h807jq:hover{background-color:rgba(255, 255, 255, 0.08)}.item.svelte-1h807jq.svelte-1h807jq:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.item.svelte-1h807jq.svelte-1h807jq:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.item-mobile.svelte-1h807jq.svelte-1h807jq:hover{background:var(--mobile-settings-bg)}.menu-subList.svelte-1h807jq .item.svelte-1h807jq{color:rgba(255, 255, 255, 0.9)}.menu-subList.svelte-1h807jq .item.svelte-1h807jq:last-child{margin-bottom:4px}.menu-icon-wrapper.svelte-1h807jq.svelte-1h807jq{width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.menu-title.svelte-1h807jq.svelte-1h807jq{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.svelte-1h807jq.svelte-1h807jq{position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis}.menu-valueIcon.svelte-1h807jq.svelte-1h807jq{position:absolute;top:-10px;right:-18px;width:15px}.menu-valueIcon-list.svelte-1h807jq.svelte-1h807jq{position:absolute;top:-7px;width:15px;right:6px}.menu-valueIcon.svelte-1h807jq svg,.menu-valueIcon-list.svelte-1h807jq svg{color:var(--blue-light)}.menu-divider.svelte-1h807jq.svelte-1h807jq{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.svelte-1h807jq.svelte-1h807jq{color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex}.itemIcon.svelte-1h807jq.svelte-1h807jq{margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar{width:8px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.svelte-1h807jq.svelte-1h807jq{overflow-y:auto;max-height:160px;text-align:left}.close.svelte-1h807jq.svelte-1h807jq{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.svelte-1h807jq.svelte-1h807jq:before,.close.svelte-1h807jq.svelte-1h807jq:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.svelte-1h807jq.svelte-1h807jq:before{transform:rotate(45deg)}.close.svelte-1h807jq.svelte-1h807jq:after{transform:rotate(-45deg)}")}function Kd(i,e,t){let n=i.slice();return n[165]=e[t],n}function Wd(i,e,t){let n=i.slice();return n[168]=e[t],n}function jd(i,e,t){let n=i.slice();return n[171]=e[t],n}function Gd(i,e,t){let n=i.slice();return n[174]=e[t],n}function Qd(i){let e,t,n,o,l,r,a,s,u,f,p,h,S,g=i[40]&&Yd(i),w=i[30]&&Zd(i),b=i[29]&&Jd(i),E=i[28]&&xd(i),v=i[27]&&$d(i),y=i[26]&&e1(i),I=i[25]&&t1(i),K=i[40]&&i1(i);return{c(){e=P("div"),g&&g.c(),t=M(),n=P("ul"),w&&w.c(),o=M(),b&&b.c(),l=M(),E&&E.c(),r=M(),v&&v.c(),a=M(),y&&y.c(),s=M(),I&&I.c(),u=M(),K&&K.c(),c(n,"class","items svelte-1h807jq"),c(n,"role","menu"),c(n,"style",f=i[85]()),D(n,"items-mobile",i[40]),c(e,"class","menu svelte-1h807jq"),D(e,"menu-desktop",!i[40]),D(e,"menu-mobile",i[40]),D(e,"hidden",!i[13])},m(B,O){C(B,e,O),g&&g.m(e,null),m(e,t),m(e,n),w&&w.m(n,null),m(n,o),b&&b.m(n,null),m(n,l),E&&E.m(n,null),m(n,r),v&&v.m(n,null),m(n,a),y&&y.m(n,null),m(n,s),I&&I.m(n,null),m(n,u),K&&K.m(n,null),i[131](n),p=!0,h||(S=[_e(e,"keydown",i[91]),_e(e,"mouseenter",i[83]),_e(e,"mouseleave",i[84])],h=!0)},p(B,O){B[40]?g?g.p(B,O):(g=Yd(B),g.c(),g.m(e,t)):g&&(g.d(1),g=null),B[30]?w?(w.p(B,O),O[0]&1073741824&&d(w,1)):(w=Zd(B),w.c(),d(w,1),w.m(n,o)):w&&(me(),_(w,1,1,()=>{w=null}),pe()),B[29]?b?(b.p(B,O),O[0]&536870912&&d(b,1)):(b=Jd(B),b.c(),d(b,1),b.m(n,l)):b&&(me(),_(b,1,1,()=>{b=null}),pe()),B[28]?E?(E.p(B,O),O[0]&268435456&&d(E,1)):(E=xd(B),E.c(),d(E,1),E.m(n,r)):E&&(me(),_(E,1,1,()=>{E=null}),pe()),B[27]?v?(v.p(B,O),O[0]&134217728&&d(v,1)):(v=$d(B),v.c(),d(v,1),v.m(n,a)):v&&(me(),_(v,1,1,()=>{v=null}),pe()),B[26]?y?(y.p(B,O),O[0]&67108864&&d(y,1)):(y=e1(B),y.c(),d(y,1),y.m(n,s)):y&&(me(),_(y,1,1,()=>{y=null}),pe()),B[25]?I?(I.p(B,O),O[0]&33554432&&d(I,1)):(I=t1(B),I.c(),d(I,1),I.m(n,u)):I&&(me(),_(I,1,1,()=>{I=null}),pe()),B[40]?K?(K.p(B,O),O[1]&512&&d(K,1)):(K=i1(B),K.c(),d(K,1),K.m(n,null)):K&&(me(),_(K,1,1,()=>{K=null}),pe()),(!p||O[1]&512)&&D(n,"items-mobile",B[40]),(!p||O[1]&512)&&D(e,"menu-desktop",!B[40]),(!p||O[1]&512)&&D(e,"menu-mobile",B[40]),(!p||O[0]&8192)&&D(e,"hidden",!B[13])},i(B){p||(d(w),d(b),d(E),d(v),d(y),d(I),d(K),p=!0)},o(B){_(w),_(b),_(E),_(v),_(y),_(I),_(K),p=!1},d(B){B&&k(e),g&&g.d(),w&&w.d(),b&&b.d(),E&&E.d(),v&&v.d(),y&&y.d(),I&&I.d(),K&&K.d(),i[131](null),h=!1,tt(S)}}}function Yd(i){let e,t,n,o,l,r,a,s;return{c(){e=P("div"),t=P("div"),t.textContent=`${N("submenu_settings")}`,n=M(),o=P("div"),l=M(),r=P("div"),c(o,"class","close svelte-1h807jq"),c(e,"class","item menu-header svelte-1h807jq"),D(e,"item-mobile",i[40]),c(r,"class","menu-divider svelte-1h807jq")},m(u,f){C(u,e,f),m(e,t),m(e,n),m(e,o),C(u,l,f),C(u,r,f),a||(s=_e(o,"click",ot(i[66])),a=!0)},p(u,f){f[1]&512&&D(e,"item-mobile",u[40])},d(u){u&&(k(e),k(l),k(r)),a=!1,s()}}}function Zd(i){let e,t,n,o,l,r,a,s,u,f,p,h,S;n=new wr({});let g=i[39]&&!i[40]&&Xd(i);return{c(){e=P("li"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("menu_quality")}`,r=M(),a=P("div"),s=Re(i[19]),u=M(),g&&g.c(),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=N("aria_label_menu_quality",{actual:i[32]})),c(e,"aria-haspopup","true"),D(e,"item-mobile",i[40])},m(w,b){C(w,e,b),m(e,t),A(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),m(a,u),g&&g.m(a,null),i[126](e),p=!0,h||(S=[_e(e,"click",ot(i[67])),_e(e,"keydown",i[92])],h=!0)},p(w,b){(!p||b[0]&524288)&&We(s,w[19]),w[39]&&!w[40]?g?(g.p(w,b),b[1]&768&&d(g,1)):(g=Xd(w),g.c(),d(g,1),g.m(a,null)):g&&(me(),_(g,1,1,()=>{g=null}),pe()),(!p||b[1]&2&&f!==(f=N("aria_label_menu_quality",{actual:w[32]})))&&c(e,"aria-label",f),(!p||b[1]&512)&&D(e,"item-mobile",w[40])},i(w){p||(d(n.$$.fragment,w),d(g),p=!0)},o(w){_(n.$$.fragment,w),_(g),p=!1},d(w){w&&k(e),L(n),g&&g.d(),i[126](null),h=!1,tt(S)}}}function Xd(i){let e,t,n;var o=i[39];function l(r,a){return{}}return o&&(t=vn(o,l(i))),{c(){e=P("div"),t&&V(t.$$.fragment),c(e,"class","menu-valueIcon svelte-1h807jq")},m(r,a){C(r,e,a),t&&A(t,e,null),n=!0},p(r,a){if(a[1]&256&&o!==(o=r[39])){if(t){me();let s=t;_(s.$$.fragment,1,0,()=>{L(s,1)}),pe()}o?(t=vn(o,l(r,a)),V(t.$$.fragment),d(t.$$.fragment,1),A(t,e,null)):t=null}},i(r){n||(t&&d(t.$$.fragment,r),n=!0)},o(r){t&&_(t.$$.fragment,r),n=!1},d(r){r&&k(e),t&&L(t)}}}function Jd(i){let e,t,n,o,l,r,a,s=xn(i[41],i[9])+"",u,f,p,h,S;return n=new Od({}),{c(){e=P("li"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("menu_audio_languages")}`,r=M(),a=P("div"),u=Re(s),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=N("aria_label_menu_audio_languages",{actual:xn(i[41],i[9])})),c(e,"aria-haspopup","true"),D(e,"item-mobile",i[40])},m(g,w){C(g,e,w),m(e,t),A(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,u),i[127](e),p=!0,h||(S=[_e(e,"click",ot(i[68])),_e(e,"keydown",i[93])],h=!0)},p(g,w){(!p||w[0]&512|w[1]&1024)&&s!==(s=xn(g[41],g[9])+"")&&We(u,s),(!p||w[0]&512|w[1]&1024&&f!==(f=N("aria_label_menu_audio_languages",{actual:xn(g[41],g[9])})))&&c(e,"aria-label",f),(!p||w[1]&512)&&D(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&k(e),L(n),i[127](null),h=!1,tt(S)}}}function xd(i){let e,t,n,o,l,r,a,s,u,f,p,h,S;return n=new Nd({}),{c(){e=P("li"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("menu_playback_rate")}`,r=M(),a=P("div"),s=Re(i[11]),u=Re("x"),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=N("aria_label_menu_rate",{actual:i[33]})),c(e,"aria-haspopup","true"),D(e,"item-mobile",i[40])},m(g,w){C(g,e,w),m(e,t),A(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),m(a,u),i[128](e),p=!0,h||(S=[_e(e,"click",ot(Ht(i[73]))),_e(e,"keydown",i[98])],h=!0)},p(g,w){(!p||w[0]&2048)&&We(s,g[11]),(!p||w[1]&4&&f!==(f=N("aria_label_menu_rate",{actual:g[33]})))&&c(e,"aria-label",f),(!p||w[1]&512)&&D(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&k(e),L(n),i[128](null),h=!1,tt(S)}}}function $d(i){let e,t,n,o,l,r,a,s=i[42].displayValue+"",u,f,p,h,S;return n=new Cr({}),{c(){e=P("li"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("subtitles_caption")}`,r=M(),a=P("div"),u=Re(s),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=N("aria_label_menu_subtitle",{actual:i[42].displayValue})),c(e,"aria-haspopup","true"),D(e,"item-mobile",i[40])},m(g,w){C(g,e,w),m(e,t),A(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,u),i[129](e),p=!0,h||(S=[_e(e,"click",ot(i[75])),_e(e,"keydown",i[101])],h=!0)},p(g,w){(!p||w[1]&2048)&&s!==(s=g[42].displayValue+"")&&We(u,s),(!p||w[1]&2048&&f!==(f=N("aria_label_menu_subtitle",{actual:g[42].displayValue})))&&c(e,"aria-label",f),(!p||w[1]&512)&&D(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&k(e),L(n),i[129](null),h=!1,tt(S)}}}function e1(i){let e,t,n,o,l,r,a,s,u,f,p,h;return n=new qd({}),{c(){e=P("li"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("menu_traffic_saving")}`,r=M(),a=P("div"),s=Re(i[31]),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",u=N("aria_label_menu_traffic_saving",{actual:i[31]})),c(e,"aria-haspopup","true"),D(e,"item-mobile",i[40])},m(S,g){C(S,e,g),m(e,t),A(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),i[130](e),f=!0,p||(h=[_e(e,"click",ot(i[69])),_e(e,"keydown",i[104])],p=!0)},p(S,g){(!f||g[1]&1)&&We(s,S[31]),(!f||g[1]&1&&u!==(u=N("aria_label_menu_traffic_saving",{actual:S[31]})))&&c(e,"aria-label",u),(!f||g[1]&512)&&D(e,"item-mobile",S[40])},i(S){f||(d(n.$$.fragment,S),f=!0)},o(S){_(n.$$.fragment,S),f=!1},d(S){S&&k(e),L(n),i[130](null),p=!1,tt(h)}}}function t1(i){let e,t,n,o,l,r,a,s,u;return n=new Dd({}),{c(){e=P("li"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("download_video_caption")}`,c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",r=N("aria_label_menu_download")),D(e,"item-mobile",i[40])},m(f,p){C(f,e,p),m(e,t),A(n,t,null),m(e,o),m(e,l),a=!0,s||(u=[_e(e,"click",ot(i[78])),_e(e,"keydown",i[107])],s=!0)},p(f,p){(!a||p[1]&512)&&D(e,"item-mobile",f[40])},i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&k(e),L(n),s=!1,tt(u)}}}function i1(i){let e,t,n,o,l,r,a,s,u,f,p,h,S,g,w,b,E,v,y=i[44].showSupport&&S2(i);o=new Ca({});let I=i[44].features.saveTraceInfoToFile&&P2(i);return h=new Ud({}),{c(){y&&y.c(),e=M(),t=P("li"),n=P("div"),V(o.$$.fragment),l=M(),r=P("div"),r.textContent=`${N("menu_copy_debug")}`,s=M(),I&&I.c(),u=M(),f=P("li"),p=P("div"),V(h.$$.fragment),S=M(),g=P("div"),g.textContent=`${N("menu_debug_overlay")}`,c(n,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"class","menu-title svelte-1h807jq"),c(t,"class","item item-mobile svelte-1h807jq"),c(t,"role","menuitem"),c(t,"tabindex","0"),c(t,"aria-label",a=N("menu_copy_debug")),c(p,"class","menu-icon-wrapper svelte-1h807jq"),c(g,"class","menu-title svelte-1h807jq"),c(f,"class","item item-mobile svelte-1h807jq"),c(f,"role","menuitem"),c(f,"tabindex","0"),c(f,"aria-label",w=i[43]?N("aria_label_menu_debug_overlay_disable"):N("aria_label_menu_debug_overlay_enable"))},m(K,B){y&&y.m(K,B),C(K,e,B),C(K,t,B),m(t,n),A(o,n,null),m(t,l),m(t,r),C(K,s,B),I&&I.m(K,B),C(K,u,B),C(K,f,B),m(f,p),A(h,p,null),m(f,S),m(f,g),b=!0,E||(v=[_e(t,"click",ot(i[80])),_e(t,"keydown",i[109]),_e(f,"click",ot(i[81])),_e(f,"keydown",i[110])],E=!0)},p(K,B){K[44].showSupport&&y.p(K,B),K[44].features.saveTraceInfoToFile&&I.p(K,B),(!b||B[1]&4096&&w!==(w=K[43]?N("aria_label_menu_debug_overlay_disable"):N("aria_label_menu_debug_overlay_enable")))&&c(f,"aria-label",w)},i(K){b||(d(y),d(o.$$.fragment,K),d(I),d(h.$$.fragment,K),b=!0)},o(K){_(y),_(o.$$.fragment,K),_(I),_(h.$$.fragment,K),b=!1},d(K){K&&(k(e),k(t),k(s),k(u),k(f)),y&&y.d(K),L(o),I&&I.d(K),L(h),E=!1,tt(v)}}}function S2(i){let e,t,n,o,l,r,a,s,u;return n=new zd({}),{c(){e=P("li"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("menu_report")}`,c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(e,"class","item item-mobile svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",r=`${N("menu_report")}. ${N("aria_label_new_tab_alert")}`)},m(f,p){C(f,e,p),m(e,t),A(n,t,null),m(e,o),m(e,l),a=!0,s||(u=[_e(e,"click",ot(i[79])),_e(e,"keydown",i[108])],s=!0)},p:Se,i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&k(e),L(n),s=!1,tt(u)}}}function P2(i){let e,t,n,o,l,r,a,s,u;return n=new Ca({}),{c(){e=P("li"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("menu_save_debug")}`,c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(e,"class","item item-mobile svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",r=N("menu_save_debug"))},m(f,p){C(f,e,p),m(e,t),A(n,t,null),m(e,o),m(e,l),a=!0,s||(u=[_e(e,"click",ot(i[82])),_e(e,"keydown",i[111])],s=!0)},p:Se,i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&k(e),L(n),s=!1,tt(u)}}}function n1(i){let e,t,n,o,l,r,a,s,u,f,p,h,S,g;n=new Wn({props:{direction:"left"}});let w=St(i[10]),b=[];for(let v=0;v<w.length;v+=1)b[v]=r1(Gd(i,w,v));let E=v=>_(b[v],1,1,()=>{b[v]=null});return{c(){e=P("div"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("submenu_quality")}`,a=M(),s=P("div"),u=M(),f=P("ul");for(let v=0;v<b.length;v+=1)b[v].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",r=N("aria_label_submenu_back")),D(t,"item-mobile",i[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",p=i[85](i[20]?.clientHeight,!0)),D(f,"items-mobile",i[40]),c(e,"class","menu menu-subList svelte-1h807jq"),D(e,"menu-desktop",!i[40]),D(e,"menu-mobile",i[40])},m(v,y){C(v,e,y),m(e,t),A(n,t,null),m(t,o),m(t,l),i[132](t),m(e,a),m(e,s),m(e,u),m(e,f);for(let I=0;I<b.length;I+=1)b[I]&&b[I].m(f,null);i[135](f),h=!0,S||(g=[_e(t,"click",ot(i[77])),_e(f,"keydown",i[94])],S=!0)},p(v,y){if((!h||y[1]&512)&&D(t,"item-mobile",v[40]),y[0]&1024|y[1]&512|y[2]&256|y[3]&4){w=St(v[10]);let I;for(I=0;I<w.length;I+=1){let K=Gd(v,w,I);b[I]?(b[I].p(K,y),d(b[I],1)):(b[I]=r1(K),b[I].c(),d(b[I],1),b[I].m(f,null))}for(me(),I=w.length;I<b.length;I+=1)E(I);pe()}(!h||y[0]&1048576&&p!==(p=v[85](v[20]?.clientHeight,!0)))&&c(f,"style",p),(!h||y[1]&512)&&D(f,"items-mobile",v[40]),(!h||y[1]&512)&&D(e,"menu-desktop",!v[40]),(!h||y[1]&512)&&D(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let y=0;y<w.length;y+=1)d(b[y]);h=!0}},o(v){_(n.$$.fragment,v),b=b.filter(Boolean);for(let y=0;y<b.length;y+=1)_(b[y]);h=!1},d(v){v&&k(e),L(n),i[132](null),Ii(b,v),i[135](null),S=!1,tt(g)}}}function o1(i){let e,t,n;return t=new No({}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){C(o,e,l),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function l1(i){let e,t,n;var o=so(i[174].value);function l(r,a){return{}}return o&&(t=vn(o,l(i))),{c(){e=P("div"),t&&V(t.$$.fragment),c(e,"class","menu-valueIcon-list svelte-1h807jq")},m(r,a){C(r,e,a),t&&A(t,e,null),n=!0},p(r,a){if(a[0]&1024&&o!==(o=so(r[174].value))){if(t){me();let s=t;_(s.$$.fragment,1,0,()=>{L(s,1)}),pe()}o?(t=vn(o,l(r,a)),V(t.$$.fragment),d(t.$$.fragment,1),A(t,e,null)):t=null}},i(r){n||(t&&d(t.$$.fragment,r),n=!0)},o(r){t&&_(t.$$.fragment,r),n=!1},d(r){r&&k(e),t&&L(t)}}}function r1(i){let e,t,n,o=i[174].displayValue+"",l,r,a=!i[40]&&so(i[174].value),s,u,f,p,h,S,g=i[174].selected&&o1(i),w=a&&l1(i);function b(){return i[133](i[174])}function E(...v){return i[134](i[174],...v)}return{c(){e=P("li"),g&&g.c(),t=M(),n=P("div"),l=Re(o),r=M(),w&&w.c(),s=M(),c(n,"class","submenu-value svelte-1h807jq"),D(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",u=i[174].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=i[174].displayValue),D(e,"item-mobile",i[40])},m(v,y){C(v,e,y),g&&g.m(e,null),m(e,t),m(e,n),m(n,l),m(e,r),w&&w.m(e,null),m(e,s),p=!0,h||(S=[_e(e,"click",ot(b)),_e(e,"keydown",E)],h=!0)},p(v,y){i=v,i[174].selected?g?y[0]&1024&&d(g,1):(g=o1(i),g.c(),d(g,1),g.m(e,t)):g&&(me(),_(g,1,1,()=>{g=null}),pe()),(!p||y[0]&1024)&&o!==(o=i[174].displayValue+"")&&We(l,o),(!p||y[1]&512)&&D(n,"submenu-value-mobile",i[40]),y[0]&1024|y[1]&512&&(a=!i[40]&&so(i[174].value)),a?w?(w.p(i,y),y[0]&1024|y[1]&512&&d(w,1)):(w=l1(i),w.c(),d(w,1),w.m(e,s)):w&&(me(),_(w,1,1,()=>{w=null}),pe()),(!p||y[0]&1024&&u!==(u=i[174].value))&&c(e,"data-value",u),(!p||y[0]&1024&&f!==(f=i[174].displayValue))&&c(e,"aria-label",f),(!p||y[1]&512)&&D(e,"item-mobile",i[40])},i(v){p||(d(g),d(w),p=!0)},o(v){_(g),_(w),p=!1},d(v){v&&k(e),g&&g.d(),w&&w.d(),h=!1,tt(S)}}}function s1(i){let e,t,n,o,l,r,a,s,u,f,p,h,S,g;n=new Wn({props:{direction:"left"}});let w=St(i[9]),b=[];for(let v=0;v<w.length;v+=1)b[v]=u1(jd(i,w,v));let E=v=>_(b[v],1,1,()=>{b[v]=null});return{c(){e=P("div"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("submenu_audio_languages")}`,a=M(),s=P("div"),u=M(),f=P("ul");for(let v=0;v<b.length;v+=1)b[v].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",r=N("aria_label_submenu_back")),D(t,"item-mobile",i[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",p=i[85](i[21]?.clientHeight,!0)),D(f,"items-mobile",i[40]),c(e,"class","menu menu-subList svelte-1h807jq"),D(e,"menu-desktop",!i[40]),D(e,"menu-mobile",i[40])},m(v,y){C(v,e,y),m(e,t),A(n,t,null),m(t,o),m(t,l),i[136](t),m(e,a),m(e,s),m(e,u),m(e,f);for(let I=0;I<b.length;I+=1)b[I]&&b[I].m(f,null);i[139](f),h=!0,S||(g=[_e(t,"click",ot(i[77])),_e(f,"keydown",i[96])],S=!0)},p(v,y){if((!h||y[1]&512)&&D(t,"item-mobile",v[40]),y[0]&512|y[1]&1536|y[2]&512|y[3]&16){w=St(v[9]);let I;for(I=0;I<w.length;I+=1){let K=jd(v,w,I);b[I]?(b[I].p(K,y),d(b[I],1)):(b[I]=u1(K),b[I].c(),d(b[I],1),b[I].m(f,null))}for(me(),I=w.length;I<b.length;I+=1)E(I);pe()}(!h||y[0]&2097152&&p!==(p=v[85](v[21]?.clientHeight,!0)))&&c(f,"style",p),(!h||y[1]&512)&&D(f,"items-mobile",v[40]),(!h||y[1]&512)&&D(e,"menu-desktop",!v[40]),(!h||y[1]&512)&&D(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let y=0;y<w.length;y+=1)d(b[y]);h=!0}},o(v){_(n.$$.fragment,v),b=b.filter(Boolean);for(let y=0;y<b.length;y+=1)_(b[y]);h=!1},d(v){v&&k(e),L(n),i[136](null),Ii(b,v),i[139](null),S=!1,tt(g)}}}function a1(i){let e,t,n;return t=new No({}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){C(o,e,l),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function u1(i){let e,t,n,o=xn(i[171],i[9])+"",l,r,a,s,u,f,p,h=i[171].id===i[41]?.id&&a1(i);function S(){return i[137](i[171])}function g(...w){return i[138](i[171],...w)}return{c(){e=P("li"),h&&h.c(),t=M(),n=P("div"),l=Re(o),r=M(),c(n,"class","submenu-value svelte-1h807jq"),D(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=i[171].id),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=xn(i[171],i[9])),D(e,"item-mobile",i[40])},m(w,b){C(w,e,b),h&&h.m(e,null),m(e,t),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[_e(e,"click",ot(S)),_e(e,"keydown",g)],f=!0)},p(w,b){i=w,i[171].id===i[41]?.id?h?b[0]&512|b[1]&1024&&d(h,1):(h=a1(i),h.c(),d(h,1),h.m(e,t)):h&&(me(),_(h,1,1,()=>{h=null}),pe()),(!u||b[0]&512)&&o!==(o=xn(i[171],i[9])+"")&&We(l,o),(!u||b[1]&512)&&D(n,"submenu-value-mobile",i[40]),(!u||b[0]&512&&a!==(a=i[171].id))&&c(e,"data-value",a),(!u||b[0]&512&&s!==(s=xn(i[171],i[9])))&&c(e,"aria-label",s),(!u||b[1]&512)&&D(e,"item-mobile",i[40])},i(w){u||(d(h),u=!0)},o(w){_(h),u=!1},d(w){w&&k(e),h&&h.d(),f=!1,tt(p)}}}function c1(i){let e,t,n,o,l,r,a,s,u,f,p,h,S,g;n=new Wn({props:{direction:"left"}});let w=St(i[8]),b=[];for(let v=0;v<w.length;v+=1)b[v]=d1(Wd(i,w,v));let E=v=>_(b[v],1,1,()=>{b[v]=null});return{c(){e=P("div"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("submenu_playback_rate")}`,a=M(),s=P("div"),u=M(),f=P("ul");for(let v=0;v<b.length;v+=1)b[v].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",r=N("aria_label_submenu_back")),D(t,"item-mobile",i[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",p=i[85](i[22]?.clientHeight,!0)),D(f,"items-mobile",i[40]),c(e,"class","menu menu-subList svelte-1h807jq"),D(e,"menu-desktop",!i[40]),D(e,"menu-mobile",i[40])},m(v,y){C(v,e,y),m(e,t),A(n,t,null),m(t,o),m(t,l),i[140](t),m(e,a),m(e,s),m(e,u),m(e,f);for(let I=0;I<b.length;I+=1)b[I]&&b[I].m(f,null);i[143](f),h=!0,S||(g=[_e(t,"click",ot(i[77])),_e(f,"keydown",i[99])],S=!0)},p(v,y){if((!h||y[1]&512)&&D(t,"item-mobile",v[40]),y[0]&256|y[1]&512|y[2]&4096|y[3]&128){w=St(v[8]);let I;for(I=0;I<w.length;I+=1){let K=Wd(v,w,I);b[I]?(b[I].p(K,y),d(b[I],1)):(b[I]=d1(K),b[I].c(),d(b[I],1),b[I].m(f,null))}for(me(),I=w.length;I<b.length;I+=1)E(I);pe()}(!h||y[0]&4194304&&p!==(p=v[85](v[22]?.clientHeight,!0)))&&c(f,"style",p),(!h||y[1]&512)&&D(f,"items-mobile",v[40]),(!h||y[1]&512)&&D(e,"menu-desktop",!v[40]),(!h||y[1]&512)&&D(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let y=0;y<w.length;y+=1)d(b[y]);h=!0}},o(v){_(n.$$.fragment,v),b=b.filter(Boolean);for(let y=0;y<b.length;y+=1)_(b[y]);h=!1},d(v){v&&k(e),L(n),i[140](null),Ii(b,v),i[143](null),S=!1,tt(g)}}}function f1(i){let e,t,n;return t=new No({}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){C(o,e,l),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function d1(i){let e,t,n,o=i[168].displayValue+"",l,r,a,s,u,f,p,h=i[168].selected&&f1(i);function S(){return i[141](i[168])}function g(...w){return i[142](i[168],...w)}return{c(){e=P("li"),h&&h.c(),t=M(),n=P("div"),l=Re(o),r=M(),c(n,"class","submenu-value svelte-1h807jq"),D(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=i[168].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[168].displayValue),D(e,"item-mobile",i[40])},m(w,b){C(w,e,b),h&&h.m(e,null),m(e,t),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[_e(e,"click",ot(S)),_e(e,"keydown",g)],f=!0)},p(w,b){i=w,i[168].selected?h?b[0]&256&&d(h,1):(h=f1(i),h.c(),d(h,1),h.m(e,t)):h&&(me(),_(h,1,1,()=>{h=null}),pe()),(!u||b[0]&256)&&o!==(o=i[168].displayValue+"")&&We(l,o),(!u||b[1]&512)&&D(n,"submenu-value-mobile",i[40]),(!u||b[0]&256&&a!==(a=i[168].value))&&c(e,"data-value",a),(!u||b[0]&256&&s!==(s=i[168].displayValue))&&c(e,"aria-label",s),(!u||b[1]&512)&&D(e,"item-mobile",i[40])},i(w){u||(d(h),u=!0)},o(w){_(h),u=!1},d(w){w&&k(e),h&&h.d(),f=!1,tt(p)}}}function m1(i){let e,t,n,o,l,r,a,s,u,f,p,h,S,g,w,b,E,v,y,I,K,B,O,ne,ge,G,X,ae,j;n=new Wn({props:{direction:"left"}});let z=!i[6]&&p1(i),Q=i[6]&&_1(i);return{c(){e=P("div"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("submenu_traffic_saving")}`,a=M(),s=P("div"),u=M(),f=P("div"),p=P("ul"),h=P("li"),z&&z.c(),S=M(),g=P("div"),g.textContent=`${N("traffic_saving_disable")}`,b=M(),E=P("li"),Q&&Q.c(),v=M(),y=P("div"),y.textContent=`${N("traffic_saving_enable")}`,K=M(),B=P("div"),O=M(),ne=P("div"),ge=P("span"),ge.textContent=`${N("traffic_saving_helper_text")}`,c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",r=N("aria_label_submenu_back")),D(t,"item-mobile",i[40]),c(s,"class","menu-divider svelte-1h807jq"),c(g,"class","submenu-value svelte-1h807jq"),D(g,"submenu-value-mobile",i[40]),c(h,"class","item item-traffic-saving svelte-1h807jq"),c(h,"role","menuitem"),c(h,"tabindex","0"),c(h,"aria-label",w=N("aria_label_submenu_traffic_saving_off")),D(h,"item-mobile",i[40]),c(y,"class","submenu-value svelte-1h807jq"),D(y,"submenu-value-mobile",i[40]),c(E,"class","item item-traffic-saving svelte-1h807jq"),c(E,"role","menuitem"),c(E,"tabindex","0"),c(E,"aria-label",I=`${N("aria_label_submenu_traffic_saving_on")}. ${N("traffic_saving_helper_text")}`),D(E,"item-mobile",i[40]),c(p,"class","items svelte-1h807jq"),c(p,"role","menu"),D(p,"items-mobile",i[40]),c(B,"class","menu-divider svelte-1h807jq"),c(ge,"class","svelte-1h807jq"),c(ne,"class","item item-helper-text svelte-1h807jq"),D(ne,"item-mobile",i[40]),c(f,"style",G=i[85](i[23]?.clientHeight,!0)),c(e,"class","menu menu-subList menu-subList-traffic-saving svelte-1h807jq"),D(e,"menu-desktop",!i[40]),D(e,"menu-mobile",i[40])},m($,W){C($,e,W),m(e,t),A(n,t,null),m(t,o),m(t,l),i[144](t),m(e,a),m(e,s),m(e,u),m(e,f),m(f,p),m(p,h),z&&z.m(h,null),m(h,S),m(h,g),m(p,b),m(p,E),Q&&Q.m(E,null),m(E,v),m(E,y),i[149](p),m(f,K),m(f,B),m(f,O),m(f,ne),m(ne,ge),X=!0,ae||(j=[_e(t,"click",ot(i[77])),_e(h,"click",ot(i[145])),_e(h,"keydown",i[146]),_e(E,"click",ot(i[147])),_e(E,"keydown",i[148]),_e(p,"keydown",i[105])],ae=!0)},p($,W){(!X||W[1]&512)&&D(t,"item-mobile",$[40]),$[6]?z&&(me(),_(z,1,1,()=>{z=null}),pe()):z?W[0]&64&&d(z,1):(z=p1($),z.c(),d(z,1),z.m(h,S)),(!X||W[1]&512)&&D(g,"submenu-value-mobile",$[40]),(!X||W[1]&512)&&D(h,"item-mobile",$[40]),$[6]?Q?W[0]&64&&d(Q,1):(Q=_1($),Q.c(),d(Q,1),Q.m(E,v)):Q&&(me(),_(Q,1,1,()=>{Q=null}),pe()),(!X||W[1]&512)&&D(y,"submenu-value-mobile",$[40]),(!X||W[1]&512)&&D(E,"item-mobile",$[40]),(!X||W[1]&512)&&D(p,"items-mobile",$[40]),(!X||W[1]&512)&&D(ne,"item-mobile",$[40]),(!X||W[0]&8388608&&G!==(G=$[85]($[23]?.clientHeight,!0)))&&c(f,"style",G),(!X||W[1]&512)&&D(e,"menu-desktop",!$[40]),(!X||W[1]&512)&&D(e,"menu-mobile",$[40])},i($){X||(d(n.$$.fragment,$),d(z),d(Q),X=!0)},o($){_(n.$$.fragment,$),_(z),_(Q),X=!1},d($){$&&k(e),L(n),i[144](null),z&&z.d(),Q&&Q.d(),i[149](null),ae=!1,tt(j)}}}function p1(i){let e,t,n;return t=new No({}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){C(o,e,l),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function _1(i){let e,t,n;return t=new No({}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){C(o,e,l),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function h1(i){let e,t,n,o,l,r,a,s,u,f,p,h;n=new Wn({props:{direction:"left"}});let S=St(i[7]),g=[];for(let b=0;b<S.length;b+=1)g[b]=b1(Kd(i,S,b));let w=b=>_(g[b],1,1,()=>{g[b]=null});return{c(){e=P("div"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("subtitles_caption")}`,a=M(),s=P("ul");for(let b=0;b<g.length;b+=1)g[b].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",r=N("aria_label_submenu_back")),D(t,"item-mobile",i[40]),c(s,"class","items svelte-1h807jq"),c(s,"role","menu"),c(s,"style",u=i[85](i[24]?.clientHeight,!0)),D(s,"items-mobile",i[40]),c(e,"class","menu menu-subList menu-subList-subtitles svelte-1h807jq"),D(e,"menu-desktop",!i[40]),D(e,"menu-mobile",i[40])},m(b,E){C(b,e,E),m(e,t),A(n,t,null),m(t,o),m(t,l),i[150](t),m(e,a),m(e,s);for(let v=0;v<g.length;v+=1)g[v]&&g[v].m(s,null);i[153](s),f=!0,p||(h=[_e(t,"click",ot(i[77])),_e(s,"keydown",i[102])],p=!0)},p(b,E){if((!f||E[1]&512)&&D(t,"item-mobile",b[40]),E[0]&128|E[1]&512|E[2]&16384|E[3]&1024){S=St(b[7]);let v;for(v=0;v<S.length;v+=1){let y=Kd(b,S,v);g[v]?(g[v].p(y,E),d(g[v],1)):(g[v]=b1(y),g[v].c(),d(g[v],1),g[v].m(s,null))}for(me(),v=S.length;v<g.length;v+=1)w(v);pe()}(!f||E[0]&16777216&&u!==(u=b[85](b[24]?.clientHeight,!0)))&&c(s,"style",u),(!f||E[1]&512)&&D(s,"items-mobile",b[40]),(!f||E[1]&512)&&D(e,"menu-desktop",!b[40]),(!f||E[1]&512)&&D(e,"menu-mobile",b[40])},i(b){if(!f){d(n.$$.fragment,b);for(let E=0;E<S.length;E+=1)d(g[E]);f=!0}},o(b){_(n.$$.fragment,b),g=g.filter(Boolean);for(let E=0;E<g.length;E+=1)_(g[E]);f=!1},d(b){b&&k(e),L(n),i[150](null),Ii(g,b),i[153](null),p=!1,tt(h)}}}function g1(i){let e,t,n;return t=new No({}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){C(o,e,l),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function b1(i){let e,t,n,o=i[165].displayValue+"",l,r,a,s,u,f,p,h=i[165].selected&&g1(i);function S(){return i[151](i[165])}function g(...w){return i[152](i[165],...w)}return{c(){e=P("li"),h&&h.c(),t=M(),n=P("div"),l=Re(o),r=M(),c(n,"class","submenu-value svelte-1h807jq"),D(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=i[165].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[165].displayValue),D(e,"item-mobile",i[40])},m(w,b){C(w,e,b),h&&h.m(e,null),m(e,t),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[_e(e,"click",ot(S)),_e(e,"keydown",g)],f=!0)},p(w,b){i=w,i[165].selected?h?b[0]&128&&d(h,1):(h=g1(i),h.c(),d(h,1),h.m(e,t)):h&&(me(),_(h,1,1,()=>{h=null}),pe()),(!u||b[0]&128)&&o!==(o=i[165].displayValue+"")&&We(l,o),(!u||b[1]&512)&&D(n,"submenu-value-mobile",i[40]),(!u||b[0]&128&&a!==(a=i[165].value))&&c(e,"data-value",a),(!u||b[0]&128&&s!==(s=i[165].displayValue))&&c(e,"aria-label",s),(!u||b[1]&512)&&D(e,"item-mobile",i[40])},i(w){u||(d(h),u=!0)},o(w){_(h),u=!1},d(w){w&&k(e),h&&h.d(),f=!1,tt(p)}}}function I2(i){let e,t,n,o,l,r,a,s=i[12]&&Qd(i),u=i[14]&&n1(i),f=i[15]&&s1(i),p=i[16]&&c1(i),h=i[18]&&m1(i),S=i[17]&&h1(i);return{c(){e=P("div"),s&&s.c(),t=M(),u&&u.c(),n=M(),f&&f.c(),o=M(),p&&p.c(),l=M(),h&&h.c(),r=M(),S&&S.c(),c(e,"class","svelte-1h807jq"),D(e,"hidden",!i[12]),D(e,"container-mobile",i[40])},m(g,w){C(g,e,w),s&&s.m(e,null),m(e,t),u&&u.m(e,null),m(e,n),f&&f.m(e,null),m(e,o),p&&p.m(e,null),m(e,l),h&&h.m(e,null),m(e,r),S&&S.m(e,null),a=!0},p(g,w){g[12]?s?(s.p(g,w),w[0]&4096&&d(s,1)):(s=Qd(g),s.c(),d(s,1),s.m(e,t)):s&&(me(),_(s,1,1,()=>{s=null}),pe()),g[14]?u?(u.p(g,w),w[0]&16384&&d(u,1)):(u=n1(g),u.c(),d(u,1),u.m(e,n)):u&&(me(),_(u,1,1,()=>{u=null}),pe()),g[15]?f?(f.p(g,w),w[0]&32768&&d(f,1)):(f=s1(g),f.c(),d(f,1),f.m(e,o)):f&&(me(),_(f,1,1,()=>{f=null}),pe()),g[16]?p?(p.p(g,w),w[0]&65536&&d(p,1)):(p=c1(g),p.c(),d(p,1),p.m(e,l)):p&&(me(),_(p,1,1,()=>{p=null}),pe()),g[18]?h?(h.p(g,w),w[0]&262144&&d(h,1)):(h=m1(g),h.c(),d(h,1),h.m(e,r)):h&&(me(),_(h,1,1,()=>{h=null}),pe()),g[17]?S?(S.p(g,w),w[0]&131072&&d(S,1)):(S=h1(g),S.c(),d(S,1),S.m(e,null)):S&&(me(),_(S,1,1,()=>{S=null}),pe()),(!a||w[0]&4096)&&D(e,"hidden",!g[12]),(!a||w[1]&512)&&D(e,"container-mobile",g[40])},i(g){a||(d(s),d(u),d(f),d(p),d(h),d(S),a=!0)},o(g){_(s),_(u),_(f),_(p),_(h),_(S),a=!1},d(g){g&&k(e),s&&s.d(),u&&u.d(),f&&f.d(),p&&p.d(),h&&h.d(),S&&S.d()}}}var T2=18;function E2(i,e,t){let n,o,l,r,a,s,u,f,p,h,S,g,w,b,E,v,y,I,K,B,O,ne,ge,G,X,ae,j,{ref:z=void 0}=e,{supportLink:Q}=e,{playerControlsHeight:$=0}=e,{returnFocus:W}=e,Y=it(),ie=Vt(),le=Y.state.audioStream$;q(i,le,te=>t(41,g=te));let Ve=Y.state.availableAudioStreams$;q(i,Ve,te=>t(9,w=te));let Xe=Y.state.currentQuality$;q(i,Xe,te=>t(120,v=te));let Ce=Y.state.availableQualities$;q(i,Ce,te=>t(10,b=te));let Me=Y.state.autoQualityLimitingAvailable$;q(i,Me,te=>t(124,B=te));let ze=Y.state.isAutoQualityEnabled$;q(i,ze,te=>t(121,y=te));let $e=Y.state.currentPlaybackRate$;q(i,$e,te=>t(11,E=te));let ce=Y.state.availablePlaybackRates$;q(i,ce,te=>t(8,p=te));let he=Y.state.currentSubtitle$;q(i,he,te=>t(42,ae=te));let at=Y.state.availableSubtitlesList$;q(i,at,te=>t(7,u=te));let we=Y.state.canDownload,Fe=Y.state.hasMpegSources$;q(i,Fe,te=>t(125,O=te));let ct=Y.ui.settingsMenuVisible;q(i,ct,te=>t(12,X=te));let je=Y.ui.settingsMenuOpenedByKeyboard;q(i,je,te=>t(155,o=te));let Ke=Y.ui.isMobile;q(i,Ke,te=>t(40,l=te));let Ze=Y.ui.mobileNotReportControlHidden$;q(i,Ze,te=>t(122,I=te));let xe=Y.state.canChangePlaybackSpeed$;q(i,xe,te=>t(123,K=te));let x=Y.ui.isFullscreen;q(i,x,te=>t(158,G=te));let qe=Y.state.trafficSavingEnabled$;q(i,qe,te=>t(6,a=te));let He=Y.ui.playerSize;q(i,He,te=>t(157,ge=te));let fe=Y.ui.debugPanelVisible;q(i,fe,te=>t(43,j=te));let re=Y.ui.playerSize;q(i,re,te=>t(156,ne=te));let nt=Y.state.isInteractiveTime$,de=Y.actions.internal.downloadVideo,lt=Y.actions.internal.closeSettingsMenu,rt=!0,dt=!1,vt=!1,Tt=!1,Ge=!1,zt=!1,Rt=!1;function kt(){o||W?.(),lt(),Rt=!1}function si(){t(13,rt=!1),t(14,dt=!0)}function st(){t(13,rt=!1),t(15,vt=!0)}function yt(){t(13,rt=!1),t(18,zt=!0)}function ke(te){Y.actions.internal.setQuality(te),kt()}function _t(te){Y.actions.internal.setAudioStream(te),kt()}function wt(te){Y.actions.internal.setTrafficSavingEnabled(te),kt()}function Zt(){t(13,rt=!1),t(16,Tt=!0)}function Ct(te){Y.actions.internal.setPlaybackRate(te),kt()}function Ut(){t(13,rt=!1),t(17,Ge=!0)}function Kt(te){Y.actions.internal.setSubtitle(te),kt()}function Dt(){t(13,rt=!0),t(14,dt=!1),t(15,vt=!1),t(16,Tt=!1),t(17,Ge=!1),t(18,zt=!1)}function Oi(){de(),kt()}function en(){w2(Q)&&window.open(Q,"_blank"),Y.actions.internal.reportProblem(),kt(),Y.actions.internal.pause()}function Xt(){tl(Y.actions.internal.getDebugTextData()),kt()}function Ei(){fe.set(!0),kt()}let tn=()=>{let te=Y.actions.internal.getTraceTextData(),mt=new Blob([...te],{type:"application/json"}),ri=window.URL.createObjectURL(mt);Eo(ri,"vk_player_trace_info","json"),kt()};function Fi(){Rt=!0}function nn(){Rt=!1}function Ai(te,mt,ri){if(!te)return"...";let On=mt.find(ee=>ee.value===te),Fn=On?On.displayValue:te;return ri?te===k2.INVARIANT?N("auto_quality_invariant"):N("auto_quality",{actual:Fn}):Fn}let Li,ai,ui,_i,hi,ii;function gi(te=0,mt=!1){return l&&G&&mt?`max-height: ${Math.round(ge.height*.6)}px`:l?"":`max-height: ${ne.height-T2-te-$}px; overflow: auto;`}let Hi,qt,bi,Mi,zi,ci,Mt,Ui,on,Nt,Ki,Wi,Wt,vi=De(!1);q(i,vi,te=>t(119,S=te));let fi=De(!1);q(i,fi,te=>t(118,h=te));let yi,jt,Ot=De(!1);q(i,Ot,te=>t(117,f=te));let Jt,Vi,ni=De(!1);q(i,ni,te=>t(116,s=te));let oi,xt,di=De(!1);q(i,di,te=>t(115,r=te));let ji=te=>{dr(te,lt)},dn=async te=>{rl(te,si,()=>{let mt=b.findIndex(ri=>ri.selected);return Wi.childNodes[mt]})},Gi=async te=>{rl(te,st,()=>{let mt=w.findIndex(ri=>ri.id===g?.id);return Wt.childNodes[mt]})},li=async te=>{sl(te,Dt,vi,lt)},Gt=(te,mt)=>{ti(te,()=>ke(mt))},Qi=async te=>{sl(te,Dt,fi,lt)},At=(te,mt)=>{ti(te,()=>_t(mt))},Bt=async te=>{rl(te,Zt,()=>{let mt=p.findIndex(ri=>ri.selected);return jt.childNodes[mt]})},Yi=async te=>{sl(te,Dt,Ot,lt)},ki=(te,mt)=>{ti(te,()=>Ct(mt))},Ri=async te=>{rl(te,Ut,()=>{let mt=u.findIndex(ri=>ri.selected);return Vi.childNodes[mt]})},ln=async te=>{sl(te,Dt,ni,lt)},et=(te,mt)=>{ti(te,()=>Kt(mt))},mi=async te=>{rl(te,yt,()=>{let mt=a?2:0;return xt.childNodes[mt]})},$t=async te=>{sl(te,Dt,di,lt)},Ue=(te,mt)=>{ti(te,()=>wt(mt))},Zi=te=>{ti(te,()=>Oi())},mn=te=>{ti(te,()=>en())},rn=te=>{ti(te,()=>Xt())},Bi=te=>{ti(te,()=>Ei())},Xi=te=>{ti(te,()=>tn())};It(()=>{let te=nt.subscribe(mt=>{mt&&!l&&!Rt&&!o&&kt()});return()=>{te()}});function sn(te){be[te?"unshift":"push"](()=>{Nt=te,t(1,Nt)})}function wi(te){be[te?"unshift":"push"](()=>{Ki=te,t(2,Ki)})}function Qt(te){be[te?"unshift":"push"](()=>{yi=te,t(3,yi)})}function Ji(te){be[te?"unshift":"push"](()=>{Jt=te,t(4,Jt)})}function Ci(te){be[te?"unshift":"push"](()=>{oi=te,t(5,oi)})}function kn(te){be[te?"unshift":"push"](()=>{z=te,t(0,z)})}function pn(te){be[te?"unshift":"push"](()=>{ai=te,t(20,ai)})}let an=te=>ke(te.value),_n=(te,mt)=>Gt(mt,te.value);function xi(te){be[te?"unshift":"push"](()=>{Wi=te,t(34,Wi)})}function wn(te){be[te?"unshift":"push"](()=>{ui=te,t(21,ui)})}let $i=te=>_t(te),Si=(te,mt)=>At(mt,te);function Di(te){be[te?"unshift":"push"](()=>{Wt=te,t(35,Wt)})}function qi(te){be[te?"unshift":"push"](()=>{_i=te,t(22,_i)})}let En=te=>Ct(te.value),Cn=(te,mt)=>ki(mt,te.value);function Yt(te){be[te?"unshift":"push"](()=>{jt=te,t(36,jt)})}function An(te){be[te?"unshift":"push"](()=>{hi=te,t(23,hi)})}let Ln=()=>wt(!1),Sn=te=>Ue(te,!1),hn=()=>wt(!0),un=te=>Ue(te,!0);function gn(te){be[te?"unshift":"push"](()=>{xt=te,t(38,xt)})}function oe(te){be[te?"unshift":"push"](()=>{ii=te,t(24,ii)})}let ht=te=>Kt(te),cn=(te,mt)=>et(mt,te);function fn(te){be[te?"unshift":"push"](()=>{Vi=te,t(37,Vi)})}return i.$$set=te=>{"ref"in te&&t(0,z=te.ref),"supportLink"in te&&t(112,Q=te.supportLink),"playerControlsHeight"in te&&t(113,$=te.playerControlsHeight),"returnFocus"in te&&t(114,W=te.returnFocus)},i.$$.update=()=>{i.$$.dirty[0]&4096&&X&&(t(13,rt=!0),t(14,dt=!1),t(15,vt=!1),t(16,Tt=!1),t(17,Ge=!1),t(18,zt=!1)),i.$$.dirty[3]&134217728&&t(39,n=so(v)),i.$$.dirty[0]&1024|i.$$.dirty[3]&402653184&&t(19,Li=Ai(v,b,y)),i.$$.dirty[3]&536870912|i.$$.dirty[4]&2&&t(25,Hi=we&&O&&!I),i.$$.dirty[3]&536870912|i.$$.dirty[4]&1&&t(26,qt=ie.features.trafficSaving&&!I&&B),i.$$.dirty[0]&128|i.$$.dirty[3]&536870912&&t(27,bi=u.length>0&&!I),i.$$.dirty[3]&1610612736&&t(28,Mi=!!K&&!I),i.$$.dirty[0]&512|i.$$.dirty[3]&536870912&&t(29,zi=ie.features.audioLanguages&&w.length>=2&&!I),i.$$.dirty[3]&536870912&&t(30,ci=!I),i.$$.dirty[0]&64&&t(31,Mt=a?N("traffic_saving_on"):N("traffic_saving_off")),i.$$.dirty[3]&402653184&&t(32,Ui=y?N("auto_quality_option"):v),i.$$.dirty[0]&2304&&t(33,on=p.find(te=>te.value===E)?.displayValue),i.$$.dirty[0]&2|i.$$.dirty[3]&67108864&&ll(Nt,vi,S),i.$$.dirty[0]&4|i.$$.dirty[3]&33554432&&ll(Ki,fi,h),i.$$.dirty[0]&8|i.$$.dirty[3]&16777216&&ll(yi,Ot,f),i.$$.dirty[0]&16|i.$$.dirty[3]&8388608&&ll(Jt,ni,s),i.$$.dirty[0]&32|i.$$.dirty[3]&4194304&&ll(oi,di,r)},[z,Nt,Ki,yi,Jt,oi,a,u,p,w,b,E,X,rt,dt,vt,Tt,Ge,zt,Li,ai,ui,_i,hi,ii,Hi,qt,bi,Mi,zi,ci,Mt,Ui,on,Wi,Wt,jt,Vi,xt,n,l,g,ae,j,ie,le,Ve,Xe,Ce,Me,ze,$e,ce,he,at,Fe,ct,je,Ke,Ze,xe,x,qe,He,fe,re,kt,si,st,yt,ke,_t,wt,Zt,Ct,Ut,Kt,Dt,Oi,en,Xt,Ei,tn,Fi,nn,gi,vi,fi,Ot,ni,di,ji,dn,Gi,li,Gt,Qi,At,Bt,Yi,ki,Ri,ln,et,mi,$t,Ue,Zi,mn,rn,Bi,Xi,Q,$,W,r,s,f,h,S,v,y,I,K,B,O,sn,wi,Qt,Ji,Ci,kn,pn,an,_n,xi,wn,$i,Si,Di,qi,En,Cn,Yt,An,Ln,Sn,hn,un,gn,oe,ht,cn,fn]}var Pa=class extends H{constructor(e){super(),U(this,e,E2,I2,F,{ref:0,supportLink:112,playerControlsHeight:113,returnFocus:114},C2,[-1,-1,-1,-1,-1,-1])}},Sr=Pa;function A2(i){Pe(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function L2(i){let e,t,n;return t=new wr({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=P("span"),V(t.$$.fragment),c(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,l){C(o,e,l),A(t,e,null),n=!0},p(o,l){let r={};l&8&&(r.isMobile=o[3]),l&16&&(r.currentQuality=o[4]),t.$set(r)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function M2(i){let e,t,n;function o(r){i[9](r)}let l={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[L2]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"opened":""),a&4&&(s.ariaLabel=r[2]),a&2&&(s.ariaExpanded=r[1]),a&4120&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function V2(i,e,t){let n,o,l,{ref:r=void 0}=e,a=it(),s=a.state.currentQuality$;q(i,s,w=>t(4,l=w));let u=a.ui.settingsMenuVisible;q(i,u,w=>t(1,n=w));let f=a.actions.internal.toggleSettingsMenu,p=a.ui.isMobile;q(i,p,w=>t(3,o=w));let h;function S(w){let b=nl(w);f(b)}function g(w){r=w,t(0,r)}return i.$$set=w=>{"ref"in w&&t(0,r=w.ref)},i.$$.update=()=>{i.$$.dirty&2&&t(2,h=n?N("tooltip_settings_on"):N("tooltip_settings_off"))},[r,n,h,o,l,s,u,p,S,g]}var Ia=class extends H{constructor(e){super(),U(this,e,V2,M2,F,{ref:0},A2)}},Il=Ia;function R2(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function B2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ta=class extends H{constructor(e){super(),U(this,e,B2,R2,F,{})}},v1=Ta;function D2(i){let e,t;return e=new Cr({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function q2(i){let e,t;return e=new v1({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function N2(i){let e,t,n,o,l=[q2,D2],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ut()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e!==f&&(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),t=r[e],t||(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),r[e].d(s)}}}function O2(i){let e,t;return e=new pt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Gn.KeyC,$$slots:{default:[N2]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&4&&(l.ariaLabel=n[2]),o&2&&(l.click=n[1]),o&9&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function F2(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,l;return i.$$set=r=>{"isSubtitlesEnabled"in r&&t(0,n=r.isSubtitlesEnabled),"click"in r&&t(1,o=r.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,l=n?N("tooltip_subtitles_on"):N("tooltip_subtitles_off"))},[n,o,l]}var Ea=class extends H{constructor(e){super(),U(this,e,F2,O2,F,{isSubtitlesEnabled:0,click:1})}},y1=Ea;function H2(i){Pe(i,"svelte-19o2urr",".time.svelte-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.svelte-19o2urr{padding:0 0 0 8px}.current.svelte-19o2urr{position:relative}.duration.svelte-19o2urr{opacity:0.7}.duration.svelte-19o2urr:before{content:' / ';white-space:pre}")}function k1(i){let e,t;return{c(){e=P("span"),t=Re(i[3]),c(e,"class","duration svelte-19o2urr")},m(n,o){C(n,e,o),m(e,t)},p(n,o){o&8&&We(t,n[3])},d(n){n&&k(e)}}}function z2(i){let e,t,n,o,l=i[2]&&k1(i);return{c(){e=P("div"),t=P("span"),n=Re(i[4]),o=M(),l&&l.c(),c(t,"class","current svelte-19o2urr"),c(e,"class","time svelte-19o2urr"),D(e,"mobile",i[1])},m(r,a){C(r,e,a),m(e,t),m(t,n),m(e,o),l&&l.m(e,null),i[7](e)},p(r,[a]){a&16&&We(n,r[4]),r[2]?l?l.p(r,a):(l=k1(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&2&&D(e,"mobile",r[1])},i:Se,o:Se,d(r){r&&k(e),l&&l.d(),i[7](null)}}}function U2(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:l}=e,{showDuration:r=!0}=e,{ref:a}=e,s,u;function f(p){be[p?"unshift":"push"](()=>{a=p,t(0,a)})}return i.$$set=p=>{"isMobile"in p&&t(1,n=p.isMobile),"duration"in p&&t(5,o=p.duration),"position"in p&&t(6,l=p.position),"showDuration"in p&&t(2,r=p.showDuration),"ref"in p&&t(0,a=p.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,s=In(o)),i.$$.dirty&64&&t(4,u=In(l))},[a,n,r,s,u,o,l,f]}var Aa=class extends H{constructor(e){super(),U(this,e,U2,z2,F,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},H2)}},Pr=Aa;import{noop as ao}from"@vkontakte/videoplayer-shared";function K2(i){Pe(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 W2(i){let e,t,n,o,l,r;return{c(){e=R("svg"),t=R("g"),n=R("path"),o=R("path"),l=R("path"),c(n,"class","wave2 svelte-1n5yyua"),c(n,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"),c(o,"class","wave1 svelte-1n5yyua"),c(o,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"),c(l,"class","cross svelte-1n5yyua"),c(l,"d","m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(e,"data-value",i[0]),c(e,"data-testid",r="volume-"+i[0]+"-icon"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","icon svelte-1n5yyua"),c(e,"aria-hidden","true")},m(a,s){C(a,e,s),m(e,t),m(t,n),m(t,o),m(t,l)},p(a,[s]){s&1&&c(e,"data-value",a[0]),s&1&&r!==(r="volume-"+a[0]+"-icon")&&c(e,"data-testid",r)},i:Se,o:Se,d(a){a&&k(e)}}}function j2(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,l=(a,s)=>s?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",r;return i.$$set=a=>{"volume"in a&&t(1,n=a.volume),"muted"in a&&t(2,o=a.muted)},i.$$.update=()=>{i.$$.dirty&6&&t(0,r=l(n,o))},[r,n,o]}var La=class extends H{constructor(e){super(),U(this,e,j2,W2,F,{volume:1,muted:2},K2)}},Oo=La;import{noop as jn}from"@vkontakte/videoplayer-shared";import{noop as $2}from"@vkontakte/videoplayer-shared";import{noop as Y2}from"@vkontakte/videoplayer-shared";function G2(i){let e,t,n=i[4].default,o=Te(n,i,i[3],null);return{c(){e=P("div"),o&&o.c(),c(e,"class","overlay")},m(l,r){C(l,e,r),o&&o.m(e,null),i[5](e),t=!0},p(l,[r]){o&&o.p&&(!t||r&8)&&Ae(o,n,l,l[3],t?Ee(n,l[3],r,null):Le(l[3]),null)},i(l){t||(d(o,l),t=!0)},o(l){_(o,l),t=!1},d(l){l&&k(e),o&&o.d(l),i[5](null)}}}function Q2(i,e,t){let n,{$$slots:o={},$$scope:l}=e,a=it().ui.overlayContainer$;q(i,a,h=>t(2,n=h));let s,u=h=>{!h||!s||!h.contains(s)||h.removeChild(s)},f=h=>{!h||!s||h.contains(s)||h.appendChild(s)};It(()=>(f(n),()=>u(n)));function p(h){be[h?"unshift":"push"](()=>{s=h,t(0,s)})}return i.$$set=h=>{"$$scope"in h&&t(3,l=h.$$scope)},i.$$.update=()=>{i.$$.dirty&4&&f(n)},[s,a,n,l,o,p]}var Ma=class extends H{constructor(e){super(),U(this,e,Q2,G2,F,{})}},w1=Ma;function Z2(i){Pe(i,"svelte-tny135",'.tooltip-wrapper.svelte-tny135{display:flex;flex-direction:column;min-width:0}.full-width.svelte-tny135{width:100%}.tooltip.svelte-tny135{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.svelte-tny135{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.svelte-tny135{opacity:1;visibility:visible}.tooltip-pointer.svelte-tny135{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}.bottom-placement-pointer.svelte-tny135{top:0;bottom:auto}')}function C1(i){let e,t;return e=new w1({props:{$$slots:{default:[X2]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&2097395&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function X2(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("div"),n=Re(i[1]),o=M(),l=P("div"),c(t,"class","content svelte-tny135"),c(l,"class","tooltip-pointer svelte-tny135"),c(l,"style",r=`transform: translate(${i[5]}px, ${i[9]}px) rotate(${i[8]?0:"180deg"});`),D(l,"bottom-placement-pointer",!i[8]),c(e,"class","tooltip svelte-tny135"),c(e,"style",a=`transform: translate(${i[6]}px, ${i[7]}px);`),D(e,"active",i[0])},m(s,u){C(s,e,u),m(e,t),m(t,n),m(e,o),m(e,l),i[20](e)},p(s,u){u&2&&We(n,s[1]),u&32&&r!==(r=`transform: translate(${s[5]}px, ${s[9]}px) rotate(${s[8]?0:"180deg"});`)&&c(l,"style",r),u&192&&a!==(a=`transform: translate(${s[6]}px, ${s[7]}px);`)&&c(e,"style",a),u&1&&D(e,"active",s[0])},d(s){s&&k(e),i[20](null)}}}function J2(i){let e,t,n,o,l,r,a=i[18].default,s=Te(a,i,i[21],null),u=i[1]&&C1(i);return{c(){e=P("div"),s&&s.c(),t=M(),u&&u.c(),n=ut(),c(e,"class","tooltip-wrapper svelte-tny135"),D(e,"full-width",i[2])},m(f,p){C(f,e,p),s&&s.m(e,null),i[19](e),C(f,t,p),u&&u.m(f,p),C(f,n,p),o=!0,l||(r=[_e(e,"mouseenter",i[12]),_e(e,"mousemove",i[12]),_e(e,"mouseleave",i[13]),_e(e,"mousedown",i[13]),_e(e,"mouseup",i[12])],l=!0)},p(f,[p]){s&&s.p&&(!o||p&2097152)&&Ae(s,a,f,f[21],o?Ee(a,f[21],p,null):Le(f[21]),null),(!o||p&4)&&D(e,"full-width",f[2]),f[1]?u?(u.p(f,p),p&2&&d(u,1)):(u=C1(f),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(me(),_(u,1,1,()=>{u=null}),pe())},i(f){o||(d(s,f),d(u),o=!0)},o(f){_(s,f),_(u),o=!1},d(f){f&&(k(e),k(t),k(n)),s&&s.d(f),i[19](null),u&&u.d(f),l=!1,tt(r)}}}var Tl=5;function x2(i,e,t){let n,o,{$$slots:l={},$$scope:r}=e,{content:a=""}=e,{active:s=!1}=e,{translateX:u=0}=e,{translateY:f=0}=e,{isFullWidthWrapper:p=!1}=e,{placement:h="top"}=e,{onVisibilityChange:S=Y2}=e,g=h==="top",w,b,E,v=0,y=g?Tl:-Tl,I=0,K=0,B=Vt(),O=it(),ne=O.ui.playerSize;q(i,ne,Y=>t(24,o=Y));let ge=O.ui.overlayContainer$;q(i,ge,Y=>t(23,n=Y));let G=O.getLogger().createComponentLog("Tooltip component"),X=()=>{if(!n||!b||!w)return;let Y=n.getBoundingClientRect(),ie=w.getBoundingClientRect(),le=ie.width,Ve=b.clientWidth,Xe=o.width,Ce=(le-Ve)/2,Me=ie.left+u-Y.left,ze=Me+Ce,$e=ie.top+f-Y.top,ce=Ve/2-Tl,he=ze<8,at=ze+Ve>Xe-8;he&&(ze=8,ce=Me+ie.width/2-2.5*Tl),at&&(ze=Xe-8-Ve,ce=ie.left-Y.left+ie.width/2-ze-Tl),t(6,I=ze),t(7,K=$e),t(5,v=ce)},ae=()=>{try{if(!n||!w)return;X(),t(0,s=!0)}catch(Y){G({message:String(Y)})}},j=()=>{t(0,s=!1)},z=()=>{b&&(E||(E=window.setTimeout(ae,B.controls.hideTimeoutTooltips)),s&&ae())},Q=()=>{j(),window.clearTimeout(E),E=void 0};It(X),zn(()=>window.clearTimeout(E));function $(Y){be[Y?"unshift":"push"](()=>{w=Y,t(3,w)})}function W(Y){be[Y?"unshift":"push"](()=>{b=Y,t(4,b)})}return i.$$set=Y=>{"content"in Y&&t(1,a=Y.content),"active"in Y&&t(0,s=Y.active),"translateX"in Y&&t(14,u=Y.translateX),"translateY"in Y&&t(15,f=Y.translateY),"isFullWidthWrapper"in Y&&t(2,p=Y.isFullWidthWrapper),"placement"in Y&&t(16,h=Y.placement),"onVisibilityChange"in Y&&t(17,S=Y.onVisibilityChange),"$$scope"in Y&&t(21,r=Y.$$scope)},i.$$.update=()=>{i.$$.dirty&131073&&S(s)},[s,a,p,w,b,v,I,K,g,y,ne,ge,z,Q,u,f,h,S,l,$,W,r]}var Va=class extends H{constructor(e){super(),U(this,e,x2,J2,F,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},Z2)}},Ir=Va;function eb(i){Pe(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 tb(i){let e,t=i[19].default,n=Te(t,i,i[24],null);return{c(){n&&n.c()},m(o,l){n&&n.m(o,l),e=!0},p(o,l){n&&n.p&&(!e||l&16777216)&&Ae(n,t,o,o[24],e?Ee(t,o[24],l,null):Le(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function ib(i){let e,t;return e=new Ir({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[nb]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&2048&&(l.content=n[11]),o&512&&(l.translateX=n[9]),o&1024&&(l.translateY=n[10]),o&16&&(l.isFullWidthWrapper=n[4]),o&32&&(l.active=n[5]),o&64&&(l.placement=n[6]),o&256&&(l.onVisibilityChange=n[8]),o&16777216&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function nb(i){let e,t=i[19].default,n=Te(t,i,i[24],null);return{c(){n&&n.c()},m(o,l){n&&n.m(o,l),e=!0},p(o,l){n&&n.p&&(!e||l&16777216)&&Ae(n,t,o,o[24],e?Ee(t,o[24],l,null):Le(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function ob(i){let e,t,n,o,l,r,a,s,u,f=[ib,tb],p=[];function h(S,g){return S[3]&&S[11]&&!S[12]?0:1}return t=h(i,-1),n=p[t]=f[t](i),{c(){e=P("div"),n.c(),c(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),c(e,"aria-hidden",l=i[7]||null),Kn(()=>i[23].call(e))},m(S,g){C(S,e,g),p[t].m(e,null),i[22](e),r=Go(e,i[23].bind(e)),a=!0,s||(u=[_e(e,"pointerdown",ot(i[20])),_e(e,"click",ot(i[21]))],s=!0)},p(S,[g]){let w=t;t=h(S,g),t===w?p[t].p(S,g):(me(),_(p[w],1,1,()=>{p[w]=null}),pe(),n=p[t],n?n.p(S,g):(n=p[t]=f[t](S),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+S[2]+" svelte-p9r045"))&&c(e,"class",o),(!a||g&128&&l!==(l=S[7]||null))&&c(e,"aria-hidden",l)},i(S){a||(d(n),a=!0)},o(S){_(n),a=!1},d(S){S&&k(e),p[t].d(),i[22](null),r(),s=!1,tt(u)}}}function lb(i,e,t){let n,o,{$$slots:l={},$$scope:r}=e,{className:a=""}=e,{disabled:s=!1}=e,{hasTooltip:u=!0}=e,{ref:f=void 0}=e,{width:p=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:S=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:w="top"}=e,{disabledTooltipContent:b=N("tooltip_button_disabled")}=e,{isAriaHidden:E=!1}=e,{onTooltipVisibilityChange:v=$2}=e,{initialTranslateXPx:y=0}=e,{initialTranslateYPx:I=-18}=e,K=it(),B=K.ui.isMobile;q(i,B,j=>t(12,o=j));let O=K.state.graphIsOpened$;q(i,O,j=>t(18,n=j));let ne;function ge(j){Pn.call(this,i,j)}function G(j){Pn.call(this,i,j)}function X(j){be[j?"unshift":"push"](()=>{f=j,t(0,f)})}function ae(){p=this.clientWidth,t(1,p)}return i.$$set=j=>{"className"in j&&t(2,a=j.className),"disabled"in j&&t(15,s=j.disabled),"hasTooltip"in j&&t(3,u=j.hasTooltip),"ref"in j&&t(0,f=j.ref),"width"in j&&t(1,p=j.width),"isFullWidthTooltip"in j&&t(4,h=j.isFullWidthTooltip),"tooltipContent"in j&&t(16,S=j.tooltipContent),"tooltipActive"in j&&t(5,g=j.tooltipActive),"tooltipPlacement"in j&&t(6,w=j.tooltipPlacement),"disabledTooltipContent"in j&&t(17,b=j.disabledTooltipContent),"isAriaHidden"in j&&t(7,E=j.isAriaHidden),"onTooltipVisibilityChange"in j&&t(8,v=j.onTooltipVisibilityChange),"initialTranslateXPx"in j&&t(9,y=j.initialTranslateXPx),"initialTranslateYPx"in j&&t(10,I=j.initialTranslateYPx),"$$scope"in j&&t(24,r=j.$$scope)},i.$$.update=()=>{i.$$.dirty&491520&&(s?t(11,ne=n?N("tooltip_disabled_when_graph_on"):b):t(11,ne=S))},[f,p,a,u,h,g,w,E,v,y,I,ne,o,B,O,s,S,b,n,l,ge,G,X,ae,r]}var Ra=class extends H{constructor(e){super(),U(this,e,lb,ob,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},eb)}},Et=Ra;function rb(i){let e,t,n,o,l,r;return{c(){e=R("svg"),t=R("rect"),o=R("path"),c(t,"width","20"),c(t,"height","20"),c(t,"rx","10"),c(t,"fill","white"),c(t,"fill-opacity",n=i[0]?1:.24),c(o,"d","M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"),c(o,"fill",l=i[0]?"var(--interactive-episode-complete)":"white"),c(e,"width","20"),c(e,"height","20"),c(e,"viewBox","0 0 20 20"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid",r=(i[0],"interactive-episode-completed-icon"))},m(a,s){C(a,e,s),m(e,t),m(e,o)},p(a,[s]){s&1&&n!==(n=a[0]?1:.24)&&c(t,"fill-opacity",n),s&1&&l!==(l=a[0]?"var(--interactive-episode-complete)":"white")&&c(o,"fill",l),s&1&&r!==(r=(a[0],"interactive-episode-completed-icon"))&&c(e,"data-testid",r)},i:Se,o:Se,d(a){a&&k(e)}}}function sb(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var Ba=class extends H{constructor(e){super(),U(this,e,sb,rb,F,{completed:0})}},Tr=Ba;function ab(i){Pe(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 ub(i){let e,t,n,o,l;return t=new Tr({props:{completed:!!i[0].completed}}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","interactive-episode-icon svelte-bklhpe"),c(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),Kn(()=>i[3].call(e)),D(e,"disabled",i[1])},m(r,a){C(r,e,a),A(t,e,null),o=Go(e,i[3].bind(e)),l=!0},p(r,a){let s={};a&1&&(s.completed=!!r[0].completed),t.$set(s),(!l||a&1&&n!==(n=`left: ${r[0].from+r[0].width/2}%`))&&c(e,"style",n),(!l||a&2)&&D(e,"disabled",r[1])},i(r){l||(d(t.$$.fragment,r),l=!0)},o(r){_(t.$$.fragment,r),l=!1},d(r){r&&k(e),L(t),o()}}}function cb(i){let e,t;return e=new Et({props:{tooltipContent:N(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:[ub]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.tooltipContent=N(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(l.disabled=n[1]),o&4&&(l.width=n[2]||0),o&23&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function fb(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,l;function r(){l=this.clientWidth,t(2,l)}return i.$$set=a=>{"videoEpisode"in a&&t(0,n=a.videoEpisode),"disabled"in a&&t(1,o=a.disabled)},[n,o,l,r]}var Da=class extends H{constructor(e){super(),U(this,e,fb,cb,F,{videoEpisode:0,disabled:1},ab)}},S1=Da;function db(i){Pe(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 P1(i,e,t){let n=i.slice();return n[3]=e[t],n}function I1(i){let e,t,n,o,l,r,a,s,u;return{c(){e=P("div"),t=P("div"),n=P("div"),l=M(),r=P("div"),s=M(),c(n,"class","video-episode-loaded svelte-1rzxunm"),c(n,"style",o=`transform: translateX(${i[3].loadedWidth/i[3].width*100}%)`),c(r,"class","video-episode-filled svelte-1rzxunm"),c(r,"style",a=`transform: translateX(${i[3].filledWidth/i[3].width*100}%)`),D(r,"mobile",i[1]),c(t,"class","video-episode-inner svelte-1rzxunm"),c(e,"class","video-episode svelte-1rzxunm"),c(e,"style",u=`left: ${i[3].from}%; width: ${i[3].width}%`),D(e,"disabled",i[2]),D(e,"mobile",i[1])},m(f,p){C(f,e,p),m(e,t),m(t,n),m(t,l),m(t,r),m(e,s)},p(f,p){p&1&&o!==(o=`transform: translateX(${f[3].loadedWidth/f[3].width*100}%)`)&&c(n,"style",o),p&1&&a!==(a=`transform: translateX(${f[3].filledWidth/f[3].width*100}%)`)&&c(r,"style",a),p&2&&D(r,"mobile",f[1]),p&1&&u!==(u=`left: ${f[3].from}%; width: ${f[3].width}%`)&&c(e,"style",u),p&4&&D(e,"disabled",f[2]),p&2&&D(e,"mobile",f[1])},d(f){f&&k(e)}}}function mb(i){let e,t=St(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=I1(P1(i,t,o));return{c(){e=P("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","video-episodes-wrap svelte-1rzxunm")},m(o,l){C(o,e,l);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,[l]){if(l&7){t=St(o[0]);let r;for(r=0;r<t.length;r+=1){let a=P1(o,t,r);n[r]?n[r].p(a,l):(n[r]=I1(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},i:Se,o:Se,d(o){o&&k(e),Ii(n,o)}}}function pb(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e,{disabled:l}=e;return i.$$set=r=>{"videoEpisodes"in r&&t(0,n=r.videoEpisodes),"isMobile"in r&&t(1,o=r.isMobile),"disabled"in r&&t(2,l=r.disabled)},[n,o,l]}var qa=class extends H{constructor(e){super(),U(this,e,pb,mb,F,{videoEpisodes:0,isMobile:1,disabled:2},db)}},T1=qa;function _b(i){Pe(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 E1(i,e,t){let n=i.slice();return n[50]=e[t],n}function A1(i){let e,t,n=St(i[21]),o=[];for(let r=0;r<n.length;r+=1)o[r]=M1(E1(i,n,r));let l=r=>_(o[r],1,1,()=>{o[r]=null});return{c(){e=P("div");for(let r=0;r<o.length;r+=1)o[r].c();c(e,"class","interactive-icons svelte-v8ydei"),D(e,"mobile",i[6]),D(e,"hidden",i[6]&&!i[20])},m(r,a){C(r,e,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(e,null);t=!0},p(r,a){if(a[0]&2098176){n=St(r[21]);let s;for(s=0;s<n.length;s+=1){let u=E1(r,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=M1(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(me(),s=n.length;s<o.length;s+=1)l(s);pe()}(!t||a[0]&64)&&D(e,"mobile",r[6]),(!t||a[0]&1048640)&&D(e,"hidden",r[6]&&!r[20])},i(r){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)_(o[a]);t=!1},d(r){r&&k(e),Ii(o,r)}}}function L1(i){let e,t;return e=new S1({props:{videoEpisode:i[50],disabled:i[10]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisode=n[50]),o[0]&1024&&(l.disabled=n[10]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function M1(i){let e,t,n=i[50].interactive&&L1(i);return{c(){n&&n.c(),e=ut()},m(o,l){n&&n.m(o,l),C(o,e,l),t=!0},p(o,l){o[50].interactive?n?(n.p(o,l),l[0]&2097152&&d(n,1)):(n=L1(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(me(),_(n,1,1,()=>{n=null}),pe())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function hb(i){let e,t,n,o,l,r;return{c(){e=P("div"),t=P("div"),o=M(),l=P("div"),c(t,"class","loaded svelte-v8ydei"),c(t,"style",n=`transform: translateX(${i[12]*100}%);`),c(l,"class","filled svelte-v8ydei"),c(l,"style",r=`transform: translateX(${i[13]*100}%);`),D(l,"active-live",i[5]),D(l,"ads",i[7]),c(e,"class","bars svelte-v8ydei")},m(a,s){C(a,e,s),m(e,t),m(e,o),m(e,l)},p(a,s){s[0]&4096&&n!==(n=`transform: translateX(${a[12]*100}%);`)&&c(t,"style",n),s[0]&8192&&r!==(r=`transform: translateX(${a[13]*100}%);`)&&c(l,"style",r),s[0]&32&&D(l,"active-live",a[5]),s[0]&128&&D(l,"ads",a[7])},i:Se,o:Se,d(a){a&&k(e)}}}function gb(i){let e,t;return e=new T1({props:{videoEpisodes:i[21],disabled:i[10],isMobile:i[6]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisodes=n[21]),o[0]&1024&&(l.disabled=n[10]),o[0]&64&&(l.isMobile=n[6]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function bb(i){let e,t,n,o,l,r,a,s,u,f,p,h,S,g=i[9]&&A1(i),w=[gb,hb],b=[];function E(v,y){return v[21].length?0:1}return n=E(i,[-1,-1]),o=b[n]=w[n](i),{c(){g&&g.c(),e=M(),t=P("div"),o.c(),l=M(),r=P("div"),a=P("div"),c(a,"class","handle svelte-v8ydei"),D(a,"active-live",i[5]),c(r,"class","handleWrap svelte-v8ydei"),c(r,"style",s=`transform: translateX(${i[14]*100}%);`),D(r,"hidden",i[11]),c(t,"class",u="slider "+i[1]+" svelte-v8ydei"),c(t,"aria-label",i[15]),c(t,"aria-valuemin",i[16]),c(t,"aria-valuemax",i[17]),c(t,"aria-valuenow",i[18]),c(t,"aria-valuetext",i[19]),c(t,"role","slider"),c(t,"tabindex","0"),c(t,"data-testid",f=i[2]??null),D(t,"disabled",i[10]),D(t,"slider-dragging",i[20]),D(t,"hidden",i[3]),D(t,"slider-vertical",i[4]),D(t,"no-handle",i[11]),D(t,"square",i[8])},m(v,y){g&&g.m(v,y),C(v,e,y),C(v,t,y),b[n].m(t,null),m(t,l),m(t,r),m(r,a),i[44](t),p=!0,h||(S=[_e(t,"pointerdown",Ht(i[22])),_e(t,"pointermove",Ht(i[23])),_e(t,"pointerup",Ht(i[24])),_e(t,"pointerenter",Ht(i[25])),_e(t,"pointerleave",Ht(i[26])),_e(t,"click",ot(i[28])),_e(t,"wheel",i[27])],h=!0)},p(v,y){v[9]?g?(g.p(v,y),y[0]&512&&d(g,1)):(g=A1(v),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(me(),_(g,1,1,()=>{g=null}),pe());let I=n;n=E(v,y),n===I?b[n].p(v,y):(me(),_(b[I],1,1,()=>{b[I]=null}),pe(),o=b[n],o?o.p(v,y):(o=b[n]=w[n](v),o.c()),d(o,1),o.m(t,l)),(!p||y[0]&32)&&D(a,"active-live",v[5]),(!p||y[0]&16384&&s!==(s=`transform: translateX(${v[14]*100}%);`))&&c(r,"style",s),(!p||y[0]&2048)&&D(r,"hidden",v[11]),(!p||y[0]&2&&u!==(u="slider "+v[1]+" svelte-v8ydei"))&&c(t,"class",u),(!p||y[0]&32768)&&c(t,"aria-label",v[15]),(!p||y[0]&65536)&&c(t,"aria-valuemin",v[16]),(!p||y[0]&131072)&&c(t,"aria-valuemax",v[17]),(!p||y[0]&262144)&&c(t,"aria-valuenow",v[18]),(!p||y[0]&524288)&&c(t,"aria-valuetext",v[19]),(!p||y[0]&4&&f!==(f=v[2]??null))&&c(t,"data-testid",f),(!p||y[0]&1026)&&D(t,"disabled",v[10]),(!p||y[0]&1048578)&&D(t,"slider-dragging",v[20]),(!p||y[0]&10)&&D(t,"hidden",v[3]),(!p||y[0]&18)&&D(t,"slider-vertical",v[4]),(!p||y[0]&2050)&&D(t,"no-handle",v[11]),(!p||y[0]&258)&&D(t,"square",v[8])},i(v){p||(d(g),d(o),p=!0)},o(v){_(g),_(o),p=!1},d(v){v&&(k(e),k(t)),g&&g.d(v),b[n].d(),i[44](null),h=!1,tt(S)}}}function vb(i,e,t){let n,o,{ref:l=void 0}=e,{className:r=""}=e,{testId:a=void 0}=e,{isHidden:s=!1}=e,{isVertical:u=!1}=e,{isActiveLive:f=!1}=e,{isMobile:p=!1}=e,{isAds:h=!1}=e,{squareBorders:S=!1}=e,{videoEpisodes:g=[]}=e,{withWheelHandler:w=!1}=e,{isInteractive:b=!1}=e,{disabled:E=!1}=e,{hideHandel:v=!1}=e,y,{onPointerDown:I=jn}=e,{onHandleMove:K=jn}=e,{onPointerUp:B=jn}=e,{onPointerEnter:O=jn}=e,{onPointerMove:ne=jn}=e,{onPointerLeave:ge=jn}=e,{onWheelUp:G=jn}=e,{onWheelDown:X=jn}=e,{onWheelLeft:ae=jn}=e,{onWheelRight:j=jn}=e,{onDisabledClick:z=jn}=e,{loadedProgress:Q=0}=e,{filledProgress:$=0}=e,{handleProgress:W=0}=e,{ariaLabel:Y=""}=e,{ariaValueMin:ie=void 0}=e,{ariaValueMax:le=void 0}=e,{ariaValueNow:Ve=void 0}=e,{ariaValueText:Xe=""}=e,Ce=Vt(),Me=!1,ze;function $e(x){if(l&&(y=l.getBoundingClientRect()),E||Me||!l)return;t(20,Me=!0);let qe=je(x.clientX,x.clientY);I(qe),l.setPointerCapture(x.pointerId)}function ce(x){if(E)return;let qe=je(x.clientX,x.clientY),He=Ke(x.clientX);ne(qe,He,y.width),Me&&K(qe)}function he(x){if(E||!Me)return;t(20,Me=!1);let qe=je(x.clientX,x.clientY);B(qe)}function at(x){if(l&&(y=l.getBoundingClientRect()),E)return;let qe=je(x.clientX,x.clientY),He=Ke(x.clientX);O(qe,He,y.width)}function we(){E||ge()}function Fe(x){E||w&&(x.preventDefault(),x.deltaY<0?G():x.deltaY>0?X():x.deltaX>0?j():ae())}function ct(x){E&&z(je(x.clientX,x.clientY))}function je(x,qe){return u?Math.max(0,Math.min(1,(y.height-(qe-y.top))/y.height)):Math.min(Math.max(x-y.x,0),y.width)/y.width}function Ke(x){return Math.min(Math.max(x-y.x,0),y.width)}function Ze(x,qe){let He=Ce.features.episodesClustering&&!b?Ce.episodeMinWidthPc:0,fe=[],re=0,nt=0,de=0;for(let dt=1;dt<g.length;dt++)nt=g[dt].time/ze*100,nt-re>He&&(fe.push({from:re,width:Math.max(0,nt-re),loadedWidth:Math.max(0,Math.min(nt,x)-re),filledWidth:Math.max(0,Math.min(nt,qe)-re),interactive:g[dt-1].interactive,completed:g[dt-1].completed}),re=g[dt].time/ze*100,de++);let lt={from:re,width:Math.max(0,100-re),loadedWidth:Math.max(0,Math.min(x,100)-re),filledWidth:Math.max(0,Math.min(qe,100)-re),interactive:g[de].interactive,completed:g[de].completed};100-re<He?(de-=1,fe[de].width+=100-re,fe[de].loadedWidth+=Math.max(0,Math.min(x,100)-re),fe[de].filledWidth+=Math.max(0,Math.min(qe,100)-re)):fe[de]=lt;let rt=g[0].time;if(rt!==0){let dt=rt/ze*100;fe.unshift({from:0,width:dt,loadedWidth:Math.min(dt,x),filledWidth:Math.min(dt,qe)})}return fe}function xe(x){be[x?"unshift":"push"](()=>{l=x,t(0,l)})}return i.$$set=x=>{"ref"in x&&t(0,l=x.ref),"className"in x&&t(1,r=x.className),"testId"in x&&t(2,a=x.testId),"isHidden"in x&&t(3,s=x.isHidden),"isVertical"in x&&t(4,u=x.isVertical),"isActiveLive"in x&&t(5,f=x.isActiveLive),"isMobile"in x&&t(6,p=x.isMobile),"isAds"in x&&t(7,h=x.isAds),"squareBorders"in x&&t(8,S=x.squareBorders),"videoEpisodes"in x&&t(29,g=x.videoEpisodes),"withWheelHandler"in x&&t(30,w=x.withWheelHandler),"isInteractive"in x&&t(9,b=x.isInteractive),"disabled"in x&&t(10,E=x.disabled),"hideHandel"in x&&t(11,v=x.hideHandel),"onPointerDown"in x&&t(31,I=x.onPointerDown),"onHandleMove"in x&&t(32,K=x.onHandleMove),"onPointerUp"in x&&t(33,B=x.onPointerUp),"onPointerEnter"in x&&t(34,O=x.onPointerEnter),"onPointerMove"in x&&t(35,ne=x.onPointerMove),"onPointerLeave"in x&&t(36,ge=x.onPointerLeave),"onWheelUp"in x&&t(37,G=x.onWheelUp),"onWheelDown"in x&&t(38,X=x.onWheelDown),"onWheelLeft"in x&&t(39,ae=x.onWheelLeft),"onWheelRight"in x&&t(40,j=x.onWheelRight),"onDisabledClick"in x&&t(41,z=x.onDisabledClick),"loadedProgress"in x&&t(12,Q=x.loadedProgress),"filledProgress"in x&&t(13,$=x.filledProgress),"handleProgress"in x&&t(14,W=x.handleProgress),"ariaLabel"in x&&t(15,Y=x.ariaLabel),"ariaValueMin"in x&&t(16,ie=x.ariaValueMin),"ariaValueMax"in x&&t(17,le=x.ariaValueMax),"ariaValueNow"in x&&t(18,Ve=x.ariaValueNow),"ariaValueText"in x&&t(19,Xe=x.ariaValueText)},i.$$.update=()=>{i.$$.dirty[0]&131072&&t(42,ze=le??0),i.$$.dirty[0]&536870912|i.$$.dirty[1]&2048&&t(43,n=g[g.length-1]?.time<ze),i.$$.dirty[0]&536883200|i.$$.dirty[1]&6144&&t(21,o=g.length&&n&&ze?Ze(Q*100,$*100):[])},[l,r,a,s,u,f,p,h,S,b,E,v,Q,$,W,Y,ie,le,Ve,Xe,Me,o,$e,ce,he,at,we,Fe,ct,g,w,I,K,B,O,ne,ge,G,X,ae,j,z,ze,n,xe]}var Na=class extends H{constructor(e){super(),U(this,e,vb,bb,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},_b,[-1,-1])}},cl=Na;var Tn=(i,e)=>To[i]>=To[e],V1=(i,e)=>To[i]<To[e],Er=(i,e)=>To[i]<=To[e],R1=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function yb(i){Pe(i,"svelte-1l78lz9",".volumeBar-container.svelte-1l78lz9{display:flex;align-items:center}.volumeBar-container.vertical.svelte-1l78lz9,.vertical.svelte-1l78lz9 .tooltip-wrapper,.vertical.svelte-1l78lz9 .btn{width:40px}.volumeBar.svelte-1l78lz9{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.svelte-1l78lz9{padding:0 8px 0 0;width:0}")}function kb(i){let e,t;return e=new Oo({props:{volume:i[3],muted:i[1]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.volume=n[3]),o[0]&2&&(l.muted=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function wb(i){let e,t;return e=new pt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:Gn.KeyM,$$slots:{default:[kb]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&512&&(l.disabled=n[9]),o[0]&4&&(l.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(l.ariaLabel=n[7]),o[0]&1&&(l.click=n[0]),o[0]&10|o[1]&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function B1(i){let e,t,n;return t=new cl({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]:ao,onPointerLeave:i[2]?i[20]:ao,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"),V(t.$$.fragment),c(e,"class","volumeBar svelte-1l78lz9"),D(e,"volumeBar-vertical",i[2])},m(o,l){C(o,e,l),A(t,e,null),n=!0},p(o,l){let r={};l[0]&4&&(r.className=o[2]?"volumeBar-slider-vertical":""),l[0]&36&&(r.isHidden=o[2]&&!o[5]),l[0]&4&&(r.isVertical=o[2]),l[0]&4&&(r.onPointerEnter=o[2]?o[19]:ao),l[0]&4&&(r.onPointerLeave=o[2]?o[20]:ao),l[0]&256&&(r.ariaValueNow=Math.round(o[8]*100)),l[0]&256&&(r.ariaValueText=`${Math.round(o[8]*100)}%`),l[0]&256&&(r.filledProgress=o[8]),l[0]&256&&(r.handleProgress=o[8]),l[0]&4&&(r.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(r),(!n||l[0]&4)&&D(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function Cb(i){let e,t,n,o,l,r;t=new Ir({props:{content:i[6],translateY:-18,$$slots:{default:[wb]},$$scope:{ctx:i}}});let a=i[4]&&B1(i);return{c(){e=P("div"),V(t.$$.fragment),n=M(),a&&a.c(),c(e,"class","volumeBar-container svelte-1l78lz9"),D(e,"vertical",i[2])},m(s,u){C(s,e,u),A(t,e,null),m(e,n),a&&a.m(e,null),o=!0,l||(r=[_e(e,"mouseenter",function(){Pi(i[2]?i[21]:ao)&&(i[2]?i[21]:ao).apply(this,arguments)}),_e(e,"mouseleave",function(){Pi(i[2]?i[22]:ao)&&(i[2]?i[22]:ao).apply(this,arguments)}),_e(e,"wheel",Ht(i[23]))],l=!0)},p(s,u){i=s;let f={};u[0]&64&&(f.content=i[6]),u[0]&655|u[1]&32&&(f.$$scope={dirty:u,ctx:i}),t.$set(f),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=B1(i),a.c(),d(a,1),a.m(e,null)):a&&(me(),_(a,1,1,()=>{a=null}),pe()),(!o||u[0]&4)&&D(e,"vertical",i[2])},i(s){o||(d(t.$$.fragment,s),d(a),o=!0)},o(s){_(t.$$.fragment,s),_(a),o=!1},d(s){s&&k(e),L(t),a&&a.d(),l=!1,tt(r)}}}function Sb(i,e,t){let n,o,l,r,{click:a}=e,s=it(),u=Vt(),f=s.state.volume$;q(i,f,Ce=>t(3,n=Ce));let p=s.state.muted$;q(i,p,Ce=>t(25,r=Ce));let h=s.actions.internal.setVolume,S=s.ui.currentGridType$;q(i,S,Ce=>t(24,l=Ce));let g=s.callbacks?.onAudioDoesNotExistHint,w=s.callbacks?.onAudioDisabledHint,b=s.state.isAudioAvailable$;q(i,b,Ce=>t(4,o=Ce));let E=s.state.isAudioDisabled,v=!1,y,I,K,B,O,ne,ge=1,G=!1,X=!1;function ae(Ce){ge=n,h(Ce)}function j(){gr(s,n,u.controls.volumeStepWheel)}function z(){br(s,n,u.controls.volumeStepWheel)}function Q(Ce){h(Ce)}function $(Ce){let Me=Ce;h(Me,Me===0?ge:Me)}function W(){G=!0}function Y(){G=!1,Ve()}function ie(){clearTimeout(y),t(5,v=!0)}function le(){Ve()}function Ve(){y=window.setTimeout(()=>{G||t(5,v=!1)},u.controls.volumeBarTimeout)}function Xe(Ce){Ce.deltaY<0?j():Ce.deltaY>0&&z()}return i.$$set=Ce=>{"click"in Ce&&t(0,a=Ce.click)},i.$$.update=()=>{i.$$.dirty[0]&33554448&&t(1,B=!o||r),i.$$.dirty[0]&16777216&&t(2,O=Er(l,"s")),i.$$.dirty[0]&6&&(O?t(6,I=""):t(6,I=B?N("tooltip_volume"):N("tooltip_volume_muted")),t(7,K=B?N("tooltip_volume"):N("tooltip_volume_muted"))),i.$$.dirty[0]&10&&t(8,ne=B?0:n),i.$$.dirty[0]&16&&(o?t(9,X=E&&!w):t(9,X=!g))},[a,B,O,n,o,v,I,K,ne,X,f,p,S,b,ae,j,z,Q,$,W,Y,ie,le,Xe,l,r]}var Oa=class extends H{constructor(e){super(),U(this,e,Sb,Cb,F,{click:0},yb,[-1,-1])}},D1=Oa;import{noop as Lb}from"@vkontakte/videoplayer-shared";function Pb(i){let e,t,n,o,l,r=i[2].default,a=Te(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=R("svg"),a&&a.c(),t=R("g"),n=R("path"),o=R("path"),c(n,"d","M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z"),c(n,"class","_exit"),c(o,"d","M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"),c(o,"class","_enter"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),ye(e,u)},m(f,p){C(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function Ib(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Fa=class extends H{constructor(e){super(),U(this,e,Ib,Pb,F,{})}},q1=Fa;function Tb(i){Pe(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Eb(i){let e,t;return e=new q1({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Ab(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Ha=class extends H{constructor(e){super(),U(this,e,Ab,Eb,F,{isFullscreen:0},Tb)}},N1=Ha;function Mb(i){let e,t;return e=new N1({props:{isFullscreen:i[0]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&1&&(l.isFullscreen=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Vb(i){let e,t;return e=new pt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Gn.KeyF,$$slots:{default:[Mb]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&4&&(l.ariaLabel=n[2]),o&2&&(l.click=n[1]),o&9&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Rb(i,e,t){let{isFullscreen:n=!1}=e,{click:o=Lb}=e,l;return i.$$set=r=>{"isFullscreen"in r&&t(0,n=r.isFullscreen),"click"in r&&t(1,o=r.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,l=n?N("tooltip_fullscreen_on"):N("tooltip_fullscreen_off"))},[n,o,l]}var za=class extends H{constructor(e){super(),U(this,e,Rb,Vb,F,{isFullscreen:0,click:1})}},Ar=za;function Bb(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078z"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Db(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ua=class extends H{constructor(e){super(),U(this,e,Db,Bb,F,{})}},fl=Ua;function qb(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M8.712 5c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5zm8 0c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38c.164-.087.326-.134.774-.134z"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Nb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ka=class extends H{constructor(e){super(),U(this,e,Nb,qb,F,{})}},Lr=Ka;import{noop as Ob}from"@vkontakte/videoplayer-shared";function Fb(i){Pe(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 O1(i){let e;return{c(){e=P("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){C(t,e,n)},d(t){t&&k(e)}}}function Hb(i){let e,t,n,o,l=i[1]&&O1(i);var r=i[8];function a(s,u){return{}}return r&&(n=vn(r,a(i))),{c(){l&&l.c(),e=M(),t=P("div"),n&&V(n.$$.fragment),c(t,"class","svelte-1ot3duq"),D(t,"mobile",i[1])},m(s,u){l&&l.m(s,u),C(s,e,u),C(s,t,u),n&&A(n,t,null),o=!0},p(s,u){if(s[1]?l||(l=O1(s),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),u&256&&r!==(r=s[8])){if(n){me();let f=n;_(f.$$.fragment,1,0,()=>{L(f,1)}),pe()}r?(n=vn(r,a(s,u)),V(n.$$.fragment),d(n.$$.fragment,1),A(n,t,null)):n=null}(!o||u&2)&&D(t,"mobile",s[1])},i(s){o||(n&&d(n.$$.fragment,s),o=!0)},o(s){n&&_(n.$$.fragment,s),o=!1},d(s){s&&(k(e),k(t)),l&&l.d(s),n&&L(n)}}}function zb(i){let e,t,n;function o(r){i[13](r)}let l={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-play",click:i[5]?i[6]:i[4],disabled:i[2],ariaLabel:i[7],ariaKeyShortCut:Gn.KeyK,$$slots:{default:[Hb]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&10&&(s.className=(r[1]?"btn-m--play":"")+" "+r[3]),a&112&&(s.click=r[5]?r[6]:r[4]),a&4&&(s.disabled=r[2]),a&128&&(s.ariaLabel=r[7]),a&33026&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Ub(i,e,t){let n,o,{fakeIsPlaying$:l}=Bn();q(i,l,v=>t(12,o=v));let{ref:r=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:f=""}=e,{click:p=Ob}=e,{toggle:h}=l,S,g,w,b;function E(v){r=v,t(0,r)}return i.$$set=v=>{"ref"in v&&t(0,r=v.ref),"isMobile"in v&&t(1,a=v.isMobile),"isPlaying"in v&&t(10,s=v.isPlaying),"disabled"in v&&t(2,u=v.disabled),"className"in v&&t(3,f=v.className),"click"in v&&t(4,p=v.click)},i.$$.update=()=>{i.$$.dirty&4096&&t(5,g=o!==null),i.$$.dirty&5152&&t(11,w=g?o:s),i.$$.dirty&2048&&t(7,b=w?N("tooltip_pause"):N("tooltip_play")),i.$$.dirty&2048&&t(8,n=w?Lr:fl)},t(6,S=h),[r,a,u,f,p,g,S,b,n,l,s,w,o,E]}var Wa=class extends H{constructor(e){super(),U(this,e,Ub,zb,F,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},Fb)}},El=Wa;function Kb(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Wb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ja=class extends H{constructor(e){super(),U(this,e,Wb,Kb,F,{})}},F1=ja;function jb(i){let e,t;return e=new F1({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&2&&(l.style=n[1]),o&1&&(l["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Gb(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,l;return i.$$set=r=>{"isPrev"in r&&t(0,n=r.isPrev),"isMobile"in r&&t(2,o=r.isMobile)},i.$$.update=()=>{i.$$.dirty&5&&(n&&o?t(1,l="transform: scaleX(-1) scale(1.3333);"):n?t(1,l="transform: scaleX(-1);"):o?t(1,l="transform: scale(1.3333);"):t(1,l=void 0))},[n,l,o]}var Ga=class extends H{constructor(e){super(),U(this,e,Gb,jb,F,{isPrev:0,isMobile:2})}},H1=Ga;function Qb(i){let e,t;return e=new H1({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&8&&(l.isPrev=n[3]==="prev"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Yb(i){let e,t,n;function o(r){i[6](r)}let l={testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[Qb]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&8&&(s.testId="btn-"+r[3]),a&4&&(s.disabled=r[2]),a&32&&(s.ariaLabel=r[5]),a&16&&(s.click=r[4]),a&138&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Zb(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{type:r}=e,{click:a}=e,s;function u(f){n=f,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"isMobile"in f&&t(1,o=f.isMobile),"disabled"in f&&t(2,l=f.disabled),"type"in f&&t(3,r=f.type),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,s=r==="prev"?N("tooltip_previous"):N("tooltip_next"))},[n,o,l,r,a,s,u]}var Qa=class extends H{constructor(e){super(),U(this,e,Zb,Yb,F,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},dl=Qa;function Xb(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z"),c(t,"clip-rule","evenodd"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Jb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ya=class extends H{constructor(e){super(),U(this,e,Jb,Xb,F,{})}},z1=Ya;function xb(i){let e,t,n,o,l,r,a=i[2].default,s=Te(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],f={};for(let p=0;p<u.length;p+=1)f=ue(f,u[p]);return{c(){e=R("svg"),s&&s.c(),t=R("path"),n=R("path"),o=R("path"),l=R("path"),c(t,"fill","#fff"),c(t,"d","M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"),c(n,"fill","#fff"),c(n,"d","M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35"),c(n,"class","_ru"),c(o,"fill","#fff"),c(o,"d","M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635"),c(o,"class","_en"),c(l,"fill","#fff"),c(l,"fill-rule","evenodd"),c(l,"d","M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"),c(l,"clip-rule","evenodd"),ye(e,f)},m(p,h){C(p,e,h),s&&s.m(e,null),m(e,t),m(e,n),m(e,o),m(e,l),r=!0},p(p,[h]){s&&s.p&&(!r||h&2)&&Ae(s,a,p,p[1],r?Ee(a,p[1],h,null):Le(p[1]),null),ye(e,f=Be(u,[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},h&1&&p[0]]))},i(p){r||(d(s,p),r=!0)},o(p){_(s,p),r=!1},d(p){p&&k(e),s&&s.d(p)}}}function $b(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Za=class extends H{constructor(e){super(),U(this,e,$b,xb,F,{})}},U1=Za;function ev(i){Pe(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 tv(i){let e,t;return e=new U1({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.width=n[0]),o&1&&(l.viewBox="0 0 "+(n[0]+1)+" 24"),o&2&&(l["data-testid"]=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}var iv="vk-video-logo-icon--short";function nv(i,e,t){let{short:n=!1}=e,{isCyrillic:o=!0}=e,l,r;return i.$$set=a=>{"short"in a&&t(2,n=a.short),"isCyrillic"in a&&t(3,o=a.isCyrillic)},i.$$.update=()=>{i.$$.dirty&12&&(t(0,l=n?21:95),t(1,r=n?iv:"vk-video-logo-icon"),!o&&!n&&(t(0,l=91),t(1,r="vk-video-logo-icon--en")))},[l,r,n,o]}var Xa=class extends H{constructor(e){super(),U(this,e,nv,tv,F,{short:2,isCyrillic:3},ev)}},K1=Xa;function lv(i){let e,t;return e=new z1({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p:Se,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function rv(i){let e,t;return e=new K1({props:{short:i[4],isCyrillic:i[5]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.short=n[4]),o&32&&(l.isCyrillic=n[5]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function sv(i){let e,t,n,o,l=[rv,lv],r=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ut()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),r[e].d(s)}}}function av(i){let e,t,n;function o(r){i[14](r)}let l={className:"btn-full-opacity",disabled:!i[1],click:i[9],testId:i[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[3],$$slots:{default:[sv]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.disabled=!r[1]),a&4&&(s.testId=r[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(s.ariaLabel=r[3]),a&131124&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function uv(i,e,t){let n,o,l,{ref:r=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:s=""}=e,{click:u}=e,f=Vt(),p=it(),h=p.ui.currentGridType$;q(i,h,I=>t(12,n=I));let S=p.ui.isMobile;q(i,S,I=>t(13,o=I));let g=p.isCyrillicRelatedInterface$;q(i,g,I=>t(5,l=I));let w,b,E,v=()=>{u(),p.callbacks?.onLogoClicked?p.callbacks?.onLogoClicked():s&&window.open(s,"_blank")};function y(I){r=I,t(0,r)}return i.$$set=I=>{"ref"in I&&t(0,r=I.ref),"logoClickable"in I&&t(1,a=I.logoClickable),"targetUrl"in I&&t(10,s=I.targetUrl),"click"in I&&t(11,u=I.click)},i.$$.update=()=>{i.$$.dirty&12292&&t(4,E=(o||Er(n,"l"))&&b)},t(3,w=f.logoType==="vk_video"?N("tooltip_vk_video_logo"):N("tooltip_vk_logo")),t(2,b=f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),[r,a,b,w,E,l,h,S,g,v,s,u,n,o,y]}var Ja=class extends H{constructor(e){super(),U(this,e,uv,av,F,{ref:0,logoClickable:1,targetUrl:10,click:11})}},Mr=Ja;import{ChromecastState as _v}from"@vkontakte/videoplayer-core";import{ChromecastState as W1}from"@vkontakte/videoplayer-core";function cv(i){Pe(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 fv(i){let e,t,n,o,l,r,a,s;return{c(){e=R("svg"),t=R("g"),n=R("path"),o=R("path"),l=R("path"),r=R("path"),a=R("path"),s=R("path"),c(n,"class","wave wave1 svelte-8z1bf5"),c(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),c(n,"fill","#fff"),c(o,"class","wave wave2 svelte-8z1bf5"),c(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),c(o,"fill","#fff"),c(l,"class","wave wave3 svelte-8z1bf5"),c(l,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),c(l,"fill","#fff"),c(r,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),c(r,"fill","#fff"),c(a,"d","M0 0h24v24H0z"),c(s,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),c(s,"fill","#fff"),D(s,"hidden",!i[1]),c(t,"fill","none"),c(t,"fill-rule","evenodd"),c(e,"width","24"),c(e,"height","24"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid","chromecast-icon"),c(e,"class","svelte-8z1bf5"),D(e,"connecting",i[2])},m(u,f){C(u,e,f),m(e,t),m(t,n),m(t,o),m(t,l),m(t,r),m(t,a),m(t,s)},p(u,f){f&2&&D(s,"hidden",!u[1]),f&4&&D(e,"connecting",u[2])},d(u){u&&k(e)}}}function dv(i){let e,t,n,o,l,r,a,s,u,f,p,h,S,g,w,b,E,v,y,I,K;return{c(){e=R("svg"),t=R("g"),n=R("mask"),o=R("path"),r=R("path"),a=R("path"),u=R("path"),f=R("defs"),p=R("clipPath"),h=R("path"),g=R("filter"),w=R("feFlood"),b=R("feColorMatrix"),E=R("feOffset"),v=R("feGaussianBlur"),y=R("feColorMatrix"),I=R("feBlend"),K=R("feBlend"),c(o,"fill",l=i[1]?"#2688EB":"#fff"),c(o,"d","M1.1 3.1h22v18h-22z"),c(r,"fill-rule","evenodd"),c(r,"clip-rule","evenodd"),c(r,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),c(n,"id","c"),c(n,"maskUnits","userSpaceOnUse"),c(n,"x","1.1"),c(n,"y","3.1"),c(n,"width","22"),c(n,"height","18"),c(n,"fill","#000"),c(a,"fill-rule","evenodd"),c(a,"clip-rule","evenodd"),c(a,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),c(a,"fill",s=i[1]?"#2688EB":"#fff"),c(u,"d","m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z"),c(u,"fill","#000"),c(u,"fill-opacity",".12"),c(u,"mask","url(#c)"),c(t,"filter","url(#b)"),c(t,"clip-path","url(#a)"),c(h,"fill",S=i[1]?"#2688EB":"#fff"),c(h,"d","M0 0h24v24H0z"),c(p,"id","a"),c(w,"flood-opacity","0"),c(w,"result","BackgroundImageFix"),c(b,"in","SourceAlpha"),c(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(b,"result","hardAlpha"),c(v,"stdDeviation","2.5"),c(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(I,"in2","BackgroundImageFix"),c(I,"result","effect1_dropShadow_4085_178456"),c(K,"in","SourceGraphic"),c(K,"in2","effect1_dropShadow_4085_178456"),c(K,"result","shape"),c(g,"id","b"),c(g,"x","-3.4"),c(g,"y","-1.4"),c(g,"width","30.8"),c(g,"height","26.802"),c(g,"filterUnits","userSpaceOnUse"),c(g,"color-interpolation-filters","sRGB"),c(e,"width","24"),c(e,"height","24"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid","chromecast-mobile-icon")},m(B,O){C(B,e,O),m(e,t),m(t,n),m(n,o),m(n,r),m(t,a),m(t,u),m(e,f),m(f,p),m(p,h),m(f,g),m(g,w),m(g,b),m(g,E),m(g,v),m(g,y),m(g,I),m(g,K)},p(B,O){O&2&&l!==(l=B[1]?"#2688EB":"#fff")&&c(o,"fill",l),O&2&&s!==(s=B[1]?"#2688EB":"#fff")&&c(a,"fill",s),O&2&&S!==(S=B[1]?"#2688EB":"#fff")&&c(h,"fill",S)},d(B){B&&k(e)}}}function mv(i){let e;function t(l,r){return l[0]?dv:fv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ut()},m(l,r){o.m(l,r),C(l,e,r)},p(l,[r]){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:Se,o:Se,d(l){l&&k(e),o.d(l)}}}function pv(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,l,r;return i.$$set=a=>{"isMobile"in a&&t(0,n=a.isMobile),"state"in a&&t(3,o=a.state)},i.$$.update=()=>{i.$$.dirty&8&&(t(2,r=o===W1.CONNECTING),t(1,l=o===W1.CONNECTED))},[n,l,r,o]}var xa=class extends H{constructor(e){super(),U(this,e,pv,mv,F,{isMobile:0,state:3},cv)}},j1=xa;import{noop as hv}from"@vkontakte/videoplayer-shared";function gv(i){let e,t;return e=new j1({props:{isMobile:i[1],state:i[2]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&4&&(l.state=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function bv(i){let e,t,n;function o(r){i[5](r)}let l={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[gv]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&16&&(s.ariaLabel=r[4]),a&8&&(s.click=r[3]),a&70&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function vv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:l}=e,{click:r=hv}=e,a;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"state"in u&&t(2,l=u.state),"click"in u&&t(3,r=u.click)},i.$$.update=()=>{i.$$.dirty&4&&t(4,a=l===_v.CONNECTED?N("tooltip_chromecast_on"):N("tooltip_chromecast_off"))},[n,o,l,r,a,s]}var $a=class extends H{constructor(e){super(),U(this,e,vv,bv,F,{ref:0,isMobile:1,state:2,click:3})}},Vr=$a;import{PlaybackState as eu}from"@vkontakte/videoplayer-core";function yv(i){let e,t;return e=new cr({props:{isActive:i[1]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function kv(i){let e,t;return e=new pt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===eu.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[yv]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(l.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(l.disabled=n[1]&&n[3]===eu.PLAYING),o&4&&(l.ariaLabel=n[2]),o&16&&(l.click=n[4]),o&514&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function wv(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:l=!1}=e,{ariaLabel:r=""}=e,a=it(),s=a.state.playbackState$;q(i,s,h=>t(3,n=h));let u=a.actions.internal.switchToActiveLive,f=a.actions.internal.togglePlay,p;return i.$$set=h=>{"isMobile"in h&&t(0,o=h.isMobile),"isActiveLive"in h&&t(1,l=h.isActiveLive),"ariaLabel"in h&&t(2,r=h.ariaLabel)},i.$$.update=()=>{i.$$.dirty&10&&t(4,p=()=>{if(!l){u();return}n===eu.PAUSED&&f()})},[o,l,r,n,p,s]}var tu=class extends H{constructor(e){super(),U(this,e,wv,kv,F,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Rr=tu;function Cv(i){Pe(i,"svelte-5ygsa2",'.tooltip-wrapper.svelte-5ygsa2{position:relative;display:block}.tooltip.svelte-5ygsa2{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.pointer.svelte-5ygsa2:after{position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px)}.tooltip.active.svelte-5ygsa2{opacity:1;visibility:visible}')}function Sv(i){let e,t,n,o,l=i[9].default,r=Te(l,i,i[8],null);return{c(){e=P("div"),t=P("div"),r&&r.c(),c(t,"class","tooltip svelte-5ygsa2"),D(t,"active",i[0]),D(t,"pointer",i[1]),c(e,"class","tooltip-wrapper svelte-5ygsa2"),c(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(a,s){C(a,e,s),m(e,t),r&&r.m(t,null),i[10](t),i[11](e),o=!0},p(a,[s]){r&&r.p&&(!o||s&256)&&Ae(r,l,a,a[8],o?Ee(l,a[8],s,null):Le(a[8]),null),(!o||s&1)&&D(t,"active",a[0]),(!o||s&2)&&D(t,"pointer",a[1]),(!o||s&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&c(e,"style",n)},i(a){o||(d(r,a),o=!0)},o(a){_(r,a),o=!1},d(a){a&&k(e),r&&r.d(a),i[10](null),i[11](null)}}}function Pv(i,e,t){let n,{$$slots:o={},$$scope:l}=e,{active:r=!1}=e,{pointer:a=!1}=e,{translateXPx:s=0}=e,{translateYPx:u=0}=e,{containerWidth:f}=e,p,h;function S(b){if(!h)return 0;let{width:E}=h.getBoundingClientRect(),v=E/2;return b<v?v:b>f-v?f-v:b}function g(b){be[b?"unshift":"push"](()=>{h=b,t(4,h)})}function w(b){be[b?"unshift":"push"](()=>{p=b,t(3,p)})}return i.$$set=b=>{"active"in b&&t(0,r=b.active),"pointer"in b&&t(1,a=b.pointer),"translateXPx"in b&&t(6,s=b.translateXPx),"translateYPx"in b&&t(2,u=b.translateYPx),"containerWidth"in b&&t(7,f=b.containerWidth),"$$scope"in b&&t(8,l=b.$$scope)},i.$$.update=()=>{i.$$.dirty&64&&t(5,n=S(s))},[r,a,u,p,h,n,s,f,l,o,g,w]}var iu=class extends H{constructor(e){super(),U(this,e,Pv,Sv,F,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},Cv)}},G1=iu;var Br=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function Iv(i){Pe(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 Q1(i){let e;function t(l,r){return l[2]&&l[10].completed===!1?Ev:Tv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ut()},m(l,r){o.m(l,r),C(l,e,r)},p(l,r){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&k(e),o.d(l)}}}function Tv(i){let e=(i[10].text||"")+"",t;return{c(){t=Re(e)},m(n,o){C(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&We(t,e)},d(n){n&&k(t)}}}function Ev(i){let e=N("tooltip_episode_unfinished")+"",t;return{c(){t=Re(e)},m(n,o){C(n,t,o)},p:Se,d(n){n&&k(t)}}}function Y1(i){let e,t;return{c(){e=P("div"),t=Re(i[0]),c(e,"class","time svelte-l51fc1")},m(n,o){C(n,e,o),m(e,t)},p(n,o){o&1&&We(t,n[0])},d(n){n&&k(e)}}}function Av(i){let e,t,n,o,l,r,a=i[10]&&Q1(i),s=!i[2]&&Y1(i);return{c(){e=P("div"),t=P("div"),o=M(),l=P("div"),a&&a.c(),r=M(),s&&s.c(),c(t,"class","preview svelte-l51fc1"),c(t,"style",n=`width: ${i[3]}px; height: ${i[4]}px; background-image: url(${i[5]}); background-size: ${i[6]}px ${i[7]}px; background-position: ${i[8]}px ${i[9]}px; transform: translateY(${i[11]%180?-35:0}px) rotate(${i[11]}deg);`),c(l,"class","episode svelte-l51fc1"),c(e,"class","timeline-preview svelte-l51fc1"),D(e,"mobile",i[1])},m(u,f){C(u,e,f),m(e,t),m(e,o),m(e,l),a&&a.m(l,null),m(e,r),s&&s.m(e,null)},p(u,[f]){f&3064&&n!==(n=`width: ${u[3]}px; height: ${u[4]}px; background-image: url(${u[5]}); background-size: ${u[6]}px ${u[7]}px; background-position: ${u[8]}px ${u[9]}px; transform: translateY(${u[11]%180?-35:0}px) rotate(${u[11]}deg);`)&&c(t,"style",n),u[10]?a?a.p(u,f):(a=Q1(u),a.c(),a.m(l,null)):a&&(a.d(1),a=null),u[2]?s&&(s.d(1),s=null):s?s.p(u,f):(s=Y1(u),s.c(),s.m(e,null)),f&2&&D(e,"mobile",u[1])},i:Se,o:Se,d(u){u&&k(e),a&&a.d(),s&&s.d()}}}var ml=150;function Lv(i,e,t){let n,{time:o=""}=e,{isMobile:l=!1}=e,{videoEpisodes:r=[]}=e,{previewThumbsData:a}=e,{progress:s=0}=e,{duration:u=0}=e,{isInteractive:f=!1}=e,h=it().ui.rotateAlpha;q(i,h,O=>t(11,n=O));let S,g,w,b,E,v,y,I;function K(){let O=a.frameWidth,ne=a.frameHeight;return O>ml?(ne=ne/O*ml,O=ml):ne>ml&&(O=O/ne*ml,ne=ml),{width:O,height:ne}}function B(O){let ne;a.isUV?ne=Math.floor(u*O/a.frequency):ne=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*O)));let ge=Math.floor(ne/a.countPerImage),G=Math.floor(ne%a.countPerImage/a.countPerRow),X=ne%a.countPerRow,ae=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&ge===Math.floor(a.countTotal/a.countPerImage)&&(ae=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&ae++);let j=a.countPerRow;!a.isUV&&ge===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(j=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let z=S*j,Q=g*ae,$=-X*S,W=-G*g;return{imgSrc:a.links[ge],imgWidth:z,imgHeight:Q,imgOffsetX:$,imgOffsetY:W}}return i.$$set=O=>{"time"in O&&t(0,o=O.time),"isMobile"in O&&t(1,l=O.isMobile),"videoEpisodes"in O&&t(13,r=O.videoEpisodes),"previewThumbsData"in O&&t(14,a=O.previewThumbsData),"progress"in O&&t(15,s=O.progress),"duration"in O&&t(16,u=O.duration),"isInteractive"in O&&t(2,f=O.isInteractive)},i.$$.update=()=>{i.$$.dirty&32768&&t(5,{imgSrc:w,imgWidth:b,imgHeight:E,imgOffsetX:v,imgOffsetY:y}=B(s),w,(t(6,b),t(15,s)),(t(7,E),t(15,s)),(t(8,v),t(15,s)),(t(9,y),t(15,s))),i.$$.dirty&106496&&t(10,I=Br(s,u,r))},t(3,{width:S,height:g}=K(),S,t(4,g)),[o,l,f,S,g,w,b,E,v,y,I,n,h,r,a,s,u]}var nu=class extends H{constructor(e){super(),U(this,e,Lv,Av,F,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},Iv)}},Z1=nu;function Mv(i){Pe(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 Vv(i){let e,t;return{c(){e=P("span"),t=Re(i[8]),c(e,"class","time svelte-5lzly8")},m(n,o){C(n,e,o),m(e,t)},p(n,o){o[0]&256&&We(t,n[8])},i:Se,o:Se,d(n){n&&k(e)}}}function Rv(i){let e,t;return e=new Z1({props:{time:i[8],isMobile:i[11],videoEpisodes:i[4],previewThumbsData:i[22],progress:i[9],duration:i[2],isInteractive:i[24]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&256&&(l.time=n[8]),o[0]&2048&&(l.isMobile=n[11]),o[0]&16&&(l.videoEpisodes=n[4]),o[0]&512&&(l.progress=n[9]),o[0]&4&&(l.duration=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Bv(i){let e,t,n,o,l=[Rv,Vv],r=[];function a(s,u){return s[15].features.timelinePreview&&s[22]&&!s[1]?0:1}return e=a(i,[-1,-1]),t=r[e]=l[e](i),{c(){t.c(),n=ut()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),r[e].d(s)}}}function Dv(i){let e,t,n,o,l,r=[i[10]],a={$$slots:{default:[Bv]},$$scope:{ctx:i}};for(let f=0;f<r.length;f+=1)a=ue(a,r[f]);e=new G1({props:a});function s(f){i[43](f)}let u={isActiveLive:i[12],isMobile:i[11],ariaLabel:N("aria_timeline"),ariaValueMin:0,ariaValueMax:i[2],ariaValueNow:Math.round(i[7]*100),ariaValueText:N("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 cl({props:u}),be.push(()=>Oe(n,"ref",s)),{c(){V(e.$$.fragment),t=M(),V(n.$$.fragment)},m(f,p){A(e,f,p),C(f,t,p),A(n,f,p),l=!0},p(f,p){let h=p[0]&1024?Be(r,[Oc(f[10])]):{};p[0]&2838|p[1]&524288&&(h.$$scope={dirty:p,ctx:f}),e.$set(h);let S={};p[0]&4096&&(S.isActiveLive=f[12]),p[0]&2048&&(S.isMobile=f[11]),p[0]&4&&(S.ariaValueMax=f[2]),p[0]&128&&(S.ariaValueNow=Math.round(f[7]*100)),p[0]&96&&(S.ariaValueText=N("aria_timeline_value",{position:f[6],duration:f[5]})),p[0]&8192&&(S.loadedProgress=f[13]),p[0]&128&&(S.filledProgress=f[7]),p[0]&128&&(S.handleProgress=f[7]),p[0]&16&&(S.videoEpisodes=f[4]),p[0]&16384&&(S.disabled=f[14].has("TIMELINE")),p[0]&8&&(S.hideHandel=f[3]),!o&&p[0]&1&&(o=!0,S.ref=f[0],Ne(()=>o=!1)),n.$set(S)},i(f){l||(d(e.$$.fragment,f),d(n.$$.fragment,f),l=!0)},o(f){_(e.$$.fragment,f),_(n.$$.fragment,f),l=!1},d(f){f&&k(t),L(e,f),L(n,f)}}}function qv(i,e,t){let n,o,l,r,a,s,u,f,p,h,S,{showTimeline:g=!1}=e,{ref:w=void 0}=e,b=it(),E=Vt(),v=b.state.bufferedProgress$;q(i,v,x=>t(13,h=x));let y=b.state.positionWithScrubbing$;q(i,y,x=>t(41,s=x));let I=b.state.duration$;q(i,I,x=>t(2,l=x));let K=b.state.isLive$;q(i,K,x=>t(1,o=x));let B=b.state.isActiveLive$;q(i,B,x=>t(12,p=x));let O=b.ui.isMobile;q(i,O,x=>t(11,f=x));let ne=E.features.episodes?b.actions.internal.getVideoEpisodes():void 0,ge=b.actions.internal.getPreviewThumbsData(),G=b.state.interactiveEpisodes$;q(i,G,x=>t(42,u=x));let X=b.state.isInteractive,ae=b.state.isInteractiveTime$;q(i,ae,x=>t(3,r=x));let j=b.state.isInteractiveExpectation$;q(i,j,x=>t(40,a=x));let z=b.actions.internal.correctSeekTimeToInteractive,Q=b.callbacks?.onDisabledTimelineClick,$=b.ui.controls.disabledControls$;q(i,$,x=>t(14,S=x));let W,Y,ie,le,Ve=!1,Xe="",Ce=0,Me=0,ze=0,$e;function ce(x){return!z||!X?x:z(x*l)/l}function he(x){b.actions.internal.startScrubbing(ce(x))}function at(x){r||b.actions.internal.progressScrubbing(ce(x))}function we(x){b.actions.internal.completeScrubbing(ce(x)),t(36,Ve=!1)}function Fe(x,qe,He){Ke(x,qe,He),t(36,Ve=!0)}function ct(x,qe,He){Ke(x,qe,He),t(36,Ve=!0)}function je(){t(36,Ve=!1)}function Ke(x,qe,He){t(9,ze=ce(x)),t(37,Ce=qe),He&&t(38,Me=He),t(8,Xe=Ze(x))}function Ze(x){let qe=In((o?1-x:x)*l);return o?`-${qe}`:qe}function xe(x){w=x,t(0,w)}return i.$$set=x=>{"showTimeline"in x&&t(35,g=x.showTimeline),"ref"in x&&t(0,w=x.ref)},i.$$.update=()=>{i.$$.dirty[1]&2048&&t(4,W=X?u:ne),i.$$.dirty[0]&4&&t(5,Y=In(l)),i.$$.dirty[1]&1024&&t(6,ie=In(s)),i.$$.dirty[0]&4|i.$$.dirty[1]&1024&&t(7,le=s/l),i.$$.dirty[0]&8|i.$$.dirty[1]&512&&t(39,$e=a||r),i.$$.dirty[0]&2|i.$$.dirty[1]&496&&t(10,n={containerWidth:Me,translateXPx:Ce,translateYPx:X&&ge?-36:-16,active:Ve&&g&&!$e,pointer:!E.features.timelinePreview||!ge||o})},[w,o,l,r,W,Y,ie,le,Xe,ze,n,f,p,h,S,E,v,y,I,K,B,O,ge,G,X,ae,j,Q,$,he,at,we,Fe,ct,je,g,Ve,Ce,Me,$e,a,s,u,xe]}var ou=class extends H{constructor(e){super(),U(this,e,qv,Dv,F,{showTimeline:35,ref:0},Mv,[-1,-1])}},X1=ou;function Nv(i){let e,t;return e=new cl({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:N("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.ariaValueMax=n[0]),o&8&&(l.ariaValueNow=Math.round(n[3]*100)),o&6&&(l.ariaValueText=N("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(l.filledProgress=n[3]),o&16&&(l.squareBorders=n[4]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Ov(i,e,t){let n,{position:o=0}=e,{duration:l=0}=e,a=it().ui.isMobile;q(i,a,p=>t(4,n=p));let s,u,f;return i.$$set=p=>{"position"in p&&t(6,o=p.position),"duration"in p&&t(0,l=p.duration)},i.$$.update=()=>{i.$$.dirty&1&&t(1,s=In(l)),i.$$.dirty&64&&t(2,u=In(o)),i.$$.dirty&65&&t(3,f=o/l)},[l,s,u,f,n,a,o]}var lu=class extends H{constructor(e){super(),U(this,e,Ov,Nv,F,{position:6,duration:0})}},Dr=lu;function Fv(i){Pe(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 Hv(i){let e;return{c(){e=P("div"),c(e,"class","timeline-stub svelte-1gqonyf"),D(e,"mobile",i[3])},m(t,n){C(t,e,n)},p(t,n){n&8&&D(e,"mobile",t[3])},i:Se,o:Se,d(t){t&&k(e)}}}function zv(i){let e,t,n,o,l=[Kv,Uv],r=[];function a(s,u){return s[1]?0:1}return t=a(i,-1),n=r[t]=l[t](i),{c(){e=P("div"),n.c(),c(e,"class","timeline svelte-1gqonyf"),D(e,"mobile",i[3])},m(s,u){C(s,e,u),r[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?r[t].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),n=r[t],n?n.p(s,u):(n=r[t]=l[t](s),n.c()),d(n,1),n.m(e,null)),(!o||u&8)&&D(e,"mobile",s[3])},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&k(e),r[t].d()}}}function Uv(i){let e,t,n;function o(r){i[14](r)}let l={showTimeline:i[2]};return i[0]!==void 0&&(l.ref=i[0]),e=new X1({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a&4&&(s.showTimeline=r[2]),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Kv(i){let e,t;return e=new Dr({props:{position:i[4],duration:i[5]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.position=n[4]),o&32&&(l.duration=n[5]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Wv(i){let e,t,n,o,l=[zv,Hv],r=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ut()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),r[e].d(s)}}}function jv(i,e,t){let n,o,l,r,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:f=!1}=e,{ref:p=void 0}=e,h=it(),S=h.state.isLive$;q(i,S,y=>t(13,n=y));let g=h.ads.duration;q(i,g,y=>t(5,r=y));let w=h.ads.position;q(i,w,y=>t(4,l=y));let b=h.ui.isMobile;q(i,b,y=>t(3,o=y));let E;function v(y){p=y,t(0,p)}return i.$$set=y=>{"isAds"in y&&t(1,a=y.isAds),"canRewindLive"in y&&t(10,s=y.canRewindLive),"isRewindableLive"in y&&t(11,u=y.isRewindableLive),"isHidden"in y&&t(12,f=y.isHidden),"ref"in y&&t(0,p=y.ref)},i.$$.update=()=>{i.$$.dirty&15362&&t(2,E=!f&&(!n||n&&s&&u||a))},[p,a,E,o,l,r,S,g,w,b,s,u,f,n,v]}var ru=class extends H{constructor(e){super(),U(this,e,jv,Wv,F,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},Fv)}},qr=ru;import{noop as Xv}from"@vkontakte/videoplayer-shared";function Gv(i){let e,t,n,o,l,r=i[2].default,a=Te(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=R("svg"),a&&a.c(),t=R("path"),n=R("path"),o=R("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(n,"d","M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(o,"d","M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"),ye(e,u)},m(f,p){C(f,e,p),a&&a.m(e,null),m(e,t),m(e,n),m(e,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function Qv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var su=class extends H{constructor(e){super(),U(this,e,Qv,Gv,F,{})}},J1=su;function Yv(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708"),c(t,"clip-rule","evenodd"),c(t,"opacity",".7"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Zv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var au=class extends H{constructor(e){super(),U(this,e,Zv,Yv,F,{})}},x1=au;function Jv(i){Pe(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 xv(i){let e,t,n,o;e=new J1({});function l(s,u){if(s[4]==="FULL")return t4;if(s[4]==="COUNT")return e4}let r=l(i,-1),a=r&&r(i);return{c(){V(e.$$.fragment),t=M(),a&&a.c(),n=ut()},m(s,u){A(e,s,u),C(s,t,u),a&&a.m(s,u),C(s,n,u),o=!0},p(s,u){r===(r=l(s,u))&&a?a.p(s,u):(a&&a.d(1),a=r&&r(s),a&&(a.c(),a.m(n.parentNode,n)))},i(s){o||(d(e.$$.fragment,s),o=!0)},o(s){_(e.$$.fragment,s),o=!1},d(s){s&&(k(t),k(n)),L(e,s),a&&a.d(s)}}}function $v(i){let e,t,n,o,l,r;return l=new x1({}),{c(){e=P("span"),t=Re(i[2]),n=M(),o=P("div"),V(l.$$.fragment),c(e,"class","text mobile svelte-1yhs2ga"),c(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){C(a,e,s),m(e,t),C(a,n,s),C(a,o,s),A(l,o,null),r=!0},p(a,s){(!r||s&4)&&We(t,a[2])},i(a){r||(d(l.$$.fragment,a),r=!0)},o(a){_(l.$$.fragment,a),r=!1},d(a){a&&(k(e),k(n),k(o)),L(l)}}}function e4(i){let e,t=i[0].length+"",n;return{c(){e=P("span"),n=Re(t),c(e,"class","text count svelte-1yhs2ga")},m(o,l){C(o,e,l),m(e,n)},p(o,l){l&1&&t!==(t=o[0].length+"")&&We(n,t)},d(o){o&&k(e)}}}function t4(i){let e,t;return{c(){e=P("span"),t=Re(i[2]),c(e,"class","text svelte-1yhs2ga")},m(n,o){C(n,e,o),m(e,t)},p(n,o){o&4&&We(t,n[2])},d(n){n&&k(e)}}}function i4(i){let e,t,n,o,l=[$v,xv],r=[];function a(s,u){return s[6]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ut()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),r[e].d(s)}}}function n4(i){let e,t,n;function o(r){i[19](r)}let l={className:"w-max btn-full-opacity "+(i[6]?"px-0":""),testId:"btn-episodes",click:i[12],disabled:!i[7],ariaExpanded:i[3],ariaLabel:i[5],$$slots:{default:[i4]},$$scope:{ctx:i}};return i[1]!==void 0&&(l.ref=i[1]),e=new pt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&64&&(s.className="w-max btn-full-opacity "+(r[6]?"px-0":"")),a&8&&(s.ariaExpanded=r[3]),a&32&&(s.ariaLabel=r[5]),a&8388693&&(s.$$scope={dirty:a,ctx:r}),!t&&a&2&&(t=!0,s.ref=r[1],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function o4(i,e,t){let n,o,l,r,a,s,{position:u=0}=e,{duration:f=0}=e,{timeCodes:p=[]}=e,h=it(),S=h.callbacks?.onEpisodeChanged??Xv,g=!!h.callbacks?.onEpisodeClicked,w=h.ui.currentGridType$;q(i,w,G=>t(18,a=G));let b=h.ui.episodes.openedByKeyboard$;q(i,b,G=>t(17,r=G));let E=h.ui.episodes.panelOpened$;q(i,E,G=>t(3,l=G));let v=h.ui.isMobile;q(i,v,G=>t(6,s=G));let y,I=G=>{if(!!h.callbacks?.onEpisodeClicked){let ae=nl(G);b.set(ae),E.set(!0),h.callbacks?.onEpisodeClicked?.(ae)}},K,B,O,ne=async(G,X,ae)=>{await Un(),G?.getAttribute("aria-expanded")==="false"&&X&&!ae&&(b.set(!1),G.focus())};function ge(G){y=G,t(1,y)}return i.$$set=G=>{"position"in G&&t(13,u=G.position),"duration"in G&&t(14,f=G.duration),"timeCodes"in G&&t(0,p=G.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576&&t(16,n=u/f),i.$$.dirty&114689){let G=Br(n,f,p);G&&K?.text!==G.text&&(S(G),t(15,K=G))}i.$$.dirty&32768&&t(2,o=K?.text||""),i.$$.dirty&262144&&(Tn(a,"xl")?t(4,B="FULL"):Tn(a,"m")&&V1(a,"xl")?t(4,B="COUNT"):t(4,B="SHORT")),i.$$.dirty&4&&t(5,O=`${N("tooltip_episodes")}: ${o}`),i.$$.dirty&131082&&ne(y,r,l)},[p,y,o,l,B,O,s,g,w,b,E,v,I,u,f,K,n,r,a,ge]}var uu=class extends H{constructor(e){super(),U(this,e,o4,n4,F,{position:13,duration:14,timeCodes:0},Jv)}},Nr=uu;function l4(i){let e,t,n,o,l=i[2].default,r=Te(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),t=R("path"),n=R("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"d","M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"),ye(e,s)},m(u,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function r4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var cu=class extends H{constructor(e){super(),U(this,e,r4,l4,F,{})}},$1=cu;function s4(i){let e,t;return e=new $1({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function a4(i){let e,t,n;function o(r){i[4](r)}let l={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:N("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[s4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&8&&(s.click=r[3]),a&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function u4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,l=s.disabled),"click"in s&&t(3,r=s.click)},[n,o,l,r,a]}var fu=class extends H{constructor(e){super(),U(this,e,u4,a4,F,{ref:0,hidden:1,disabled:2,click:3})}},Or=fu;function c4(i){let e,t,n,o,l=i[2].default,r=Te(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),t=R("path"),n=R("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(n,"d","M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z"),c(n,"class","_closed"),c(n,"clip-rule","evenodd"),ye(e,s)},m(u,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function f4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var du=class extends H{constructor(e){super(),U(this,e,f4,c4,F,{})}},em=du;function d4(i){Pe(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function m4(i){let e,t;return e=new em({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function p4(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var mu=class extends H{constructor(e){super(),U(this,e,p4,m4,F,{isOpened:0},d4)}},tm=mu;function _4(i){let e,t;return e=new tm({props:{isOpened:i[3]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&8&&(l.isOpened=n[3]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function h4(i){let e,t,n;function o(r){i[6](r)}let l={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[_4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&32&&(s.ariaLabel=r[5]),a&16&&(s.click=r[4]),a&136&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function g4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{graphIsOpened:r=!1}=e,{click:a}=e,s;function u(f){n=f,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"hidden"in f&&t(1,o=f.hidden),"disabled"in f&&t(2,l=f.disabled),"graphIsOpened"in f&&t(3,r=f.graphIsOpened),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,s=r?N("tooltip_interactive_graph_on"):N("tooltip_interactive_graph_off"))},[n,o,l,r,a,s,u]}var pu=class extends H{constructor(e){super(),U(this,e,g4,h4,F,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Fr=pu;function b4(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.67.67 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function v4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var _u=class extends H{constructor(e){super(),U(this,e,v4,b4,F,{})}},Hr=_u;import{noop as y4}from"@vkontakte/videoplayer-shared";function k4(i){Pe(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 im(i){let e;return{c(){e=P("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){C(t,e,n)},d(t){t&&k(e)}}}function w4(i){let e,t,n,o,l=i[1]&&im(i);return n=new Hr({}),{c(){l&&l.c(),e=M(),t=P("div"),V(n.$$.fragment),c(t,"class","svelte-1ot3duq"),D(t,"mobile",i[1])},m(r,a){l&&l.m(r,a),C(r,e,a),C(r,t,a),A(n,t,null),o=!0},p(r,a){r[1]?l||(l=im(r),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),(!o||a&2)&&D(t,"mobile",r[1])},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){_(n.$$.fragment,r),o=!1},d(r){r&&(k(e),k(t)),l&&l.d(r),L(n)}}}function C4(i){let e,t,n;function o(r){i[5](r)}let l={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:N("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:Gn.KeyK,$$slots:{default:[w4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&10&&(s.className=(r[1]?"btn-m--play":"")+" "+r[3]),a&4&&(s.disabled=r[2]),a&16&&(s.click=r[4]),a&66&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function S4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{className:r=""}=e,{click:a=y4}=e;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"disabled"in u&&t(2,l=u.disabled),"className"in u&&t(3,r=u.className),"click"in u&&t(4,a=u.click)},[n,o,l,r,a,s]}var hu=class extends H{constructor(e){super(),U(this,e,S4,C4,F,{ref:0,isMobile:1,disabled:2,className:3,click:4},k4)}},Al=hu;function P4(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function I4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var gu=class extends H{constructor(e){super(),U(this,e,I4,P4,F,{})}},nm=gu;function T4(i){let e,t;return e=new nm({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function E4(i){let e,t,n;function o(r){i[4](r)}let l={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:N("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[T4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&8&&(s.click=r[3]),a&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function A4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,l=s.disabled),"click"in s&&t(3,r=s.click)},[n,o,l,r,a]}var bu=class extends H{constructor(e){super(),U(this,e,A4,E4,F,{ref:0,hidden:1,disabled:2,click:3})}},zr=bu;import{noop as om}from"@vkontakte/videoplayer-shared";function L4(i){Pe(i,"svelte-1x1zctw",".icon.svelte-1x1zctw{width:24px !important;height:24px !important;;}.error-stub.svelte-1x1zctw{display:flex;justify-content:center;align-items:center}.inner.svelte-1x1zctw{width:16px;height:16px;background-color:var(--white)}")}function M4(i){let e,t,n,o;return{c(){e=P("img"),c(e,"class","icon svelte-1x1zctw"),ms(e.src,t=i[0])||c(e,"src",t),c(e,"aria-hidden","true")},m(l,r){C(l,e,r),n||(o=_e(e,"error",i[7]),n=!0)},p(l,r){r&1&&!ms(e.src,t=l[0])&&c(e,"src",t)},d(l){l&&k(e),n=!1,o()}}}function V4(i){let e;return{c(){e=P("div"),e.innerHTML='<div class="inner svelte-1x1zctw"></div>',c(e,"class","icon error-stub svelte-1x1zctw")},m(t,n){C(t,e,n)},p:Se,d(t){t&&k(e)}}}function R4(i){let e;function t(l,r){return l[5]?V4:M4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ut()},m(l,r){o.m(l,r),C(l,e,r)},p(l,r){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&k(e),o.d(l)}}}function B4(i){let e,t;return e=new pt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[R4]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&16&&(l.className=n[4]?"btn-full-opacity":""),o&2&&(l.ariaLabel=n[1]),o&8&&(l.click=n[3]),o&64&&(l.disabled=n[6]),o&4&&(l.testId=n[2]),o&545&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function D4(i,e,t){let n,o,l,{iconUrl:r}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:f=om}=e,p=()=>{t(5,l=!0)};return i.$$set=h=>{"iconUrl"in h&&t(0,r=h.iconUrl),"ariaLabel"in h&&t(1,a=h.ariaLabel),"disabled"in h&&t(8,s=h.disabled),"testId"in h&&t(2,u=h.testId),"onClick"in h&&t(3,f=h.onClick)},i.$$.update=()=>{i.$$.dirty&8&&t(4,n=f===om),i.$$.dirty&272&&t(6,o=n||s)},t(5,l=!1),[r,a,u,f,n,l,o,p,s]}var vu=class extends H{constructor(e){super(),U(this,e,D4,B4,F,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},L4)}},Ur=vu;import{debounceFn as d3}from"@vkontakte/videoplayer-shared";import{ChromecastState as z4,PlaybackState as Ll,Player as U4,VideoFormat as Ml}from"@vkontakte/videoplayer-core";import{Tracer as K4,isInvariantQuality as W4}from"@vkontakte/videoplayer-shared";import{assertNonNullable as Nn,getHighestQuality as j4,InterfaceLanguage as G4,clientChecker as Q4,isNonNullable as Y4,loadVKLangPack as Z4,Logger as X4,map as J4,merge as x4,Observable as $4,Subject as Gr,Subscription as Pu,ValueSubject as e3,VideoQuality as t3}from"@vkontakte/videoplayer-shared";import{SeekAction as co}from"@vkontakte/videoplayer-statistics";import"@vkontakte/videoplayer-interactive";import{addScript as q4,assertNonNullable as Ni,Subject as Fo,clearVideoElement as N4}from"@vkontakte/videoplayer-shared";var lm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var O4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Kr=class{constructor(e,t){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={slotRequested$:new Fo,started$:new Fo,paused$:new Fo,resumed$:new Fo,ended$:new Fo,skipped$:new Fo,clicked$:new Fo};this.loadAdman=e=>new Promise((t,n)=>{let o,l=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};q4(O4,e,this.loadTimeout).then(()=>{window.AdmanHTML?t():(window.admanAsyncInit=l,o=window.setTimeout(l,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};this.onAdStarted=(e,t)=>{Ni(this.adsState),Ni(this.playerState),Ni(this.actions),this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(t)}`}),this.events.started$.next(e),t.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),Je(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay),this.startWatchDog()};this.onAdTimeRemained=({currentTime:e})=>{Ni(this.adsState),this.adsState.position.set(e),this.startWatchDog()};this.onAdPaused=()=>{this.stopWatchDog(),Ni(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{Ni(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing"),this.startWatchDog()};this.onAdMidrollPoint=()=>{Ni(this.adman),Ni(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch{this.log({message:"could not start midroll"}),this.onAdError()}};this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{this.log({message:"ad clicked"}),this.videoElement?.pause(),this.events.clicked$.next(),this.stopWatchDog()};this.onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout,this.runtimeTimeout=t.runtimeTimeout}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){if(this.adman)return;this.startWatchDog();let{width:t,height:n,isFullscreen:o,isAutoplay:l,adsContainer:r,adsVideoElement:a,slotId:s,params:u={},duration:f,previewParam:p}=e,h,S=this.playerState&&Je(this.playerState.vsid);S&&(h=parseInt(S,36));let g={dl:encodeURIComponent(window.location.href),autoplay:l,player_width:t,player_height:n,puid10:lm(t,n),puid11:o?0:1,preview:p,...h?{request_id:h}:{},duration:f,...u};p||delete g.preview;let w={slot:s,wrapper:r,videoEl:a,videoQuality:n,params:g,browser:{mobile:!1}};try{let b=new window.AdmanHTML;b.setDebug(!1),b.onReady(this.onAdsReady),b.onStarted(this.onAdStarted),b.onPlayed(this.onAdPlayed),b.onPaused(this.onAdPaused),b.adMidrollPoint(this.onAdMidrollPoint),b.onClosed(this.onAdClosed),b.onSkipped(this.onAdSkipped),b.onClicked(this.onAdClicked),b.onTimeRemained(this.onAdTimeRemained),b.onCompleted(this.onAdCompleted),b.onError(this.onAdError),b.init(w),this.adman=b,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(w)}`})}catch{this.log({message:"could not init adman"}),this.onAdError()}}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}Ni(this.actions),Ni(this.adsState),Ni(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(){Ni(this.adsState),this.log({message:"toggle play"});let e=Je(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){if(this.log({message:`set volume ${e}`}),this.adman)try{this.adman.setVolume(e)}catch{this.log({message:"could not set ad volume"}),this.onAdError()}this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch{this.log({message:"could not set ad fullscreen"}),this.onAdError()}}startPreroll(){if(Ni(this.adman),!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch{this.log({message:"could not start preroll"}),this.onAdError()}}}startPostroll(){Ni(this.adman),Ni(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch{this.log({message:"could not start postroll"}),this.onAdError()}}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError(),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){Ni(this.adman),this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch{this.onAdError(),this.log({message:"could not resume ad"})}}pause(){Ni(this.adman),this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch{this.onAdError(),this.log({message:"could not pause ad"})}}skip(){Ni(this.adman),this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch{this.log({message:"could not skip ad"}),this.onAdError()}}setPosition(e,t){this.adman?.setPosition(Math.floor(e),Math.floor(t))}destroy(){this.log({message:"destroy"}),this.stopWatchDog(),this.adman?.destroy(),this.videoElement&&N4(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 yu=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let t=[],n=e.split(this.twoLinesRegExp);for(let o of n){let l={startTime:0,endTime:0,texts:[],lang:""},r=o.split(this.oneLineRegExp);for(let a of r)if(!l.startTime&&!l.endTime){let s=new Wr,{startTime:u,endTime:f}=s.parse(a);l.startTime=u,l.endTime=f}else if(a.trim()!==""){let s=new ku,{texts:u}=s.parse(a);l.texts=[...l.texts,...u]}(l.startTime||l.endTime)&&l.texts.length>0&&t.push(l)}return t}},Wr=class{constructor(){this.timeRegExp=/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let t={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(t.startTime=this.calcTime(n[1],n[2],n[3],n[4]),t.endTime=this.calcTime(n[6],n[7],n[8],n[9])),t}parseTime(e){let t=this.timeRegExp.exec(e);return t?this.calcTime(t[1],t[2],t[3],t[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",t="0",n="0",o="0"){let l=Number(e)*60*60,r=Number(t)*60,a=Number(n),s=+`0.${o}`;return l+r+a+s}},ku=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](r){let a=0,s=[];for(;a<r.length;){let u=["<",">"].reduce((f,p)=>{let h=r.indexOf(p,a);return f===-1||f>h?h:f},-1);if(u===-1){s.push(r.substring(a));break}s.push(r.substring(a,u)),a=u+1}return s}}),l=new Wr;for(let r of o)l.isTime(r)?t.texts.push({type:"timestamp",value:l.parseTime(r)}):t.texts.push({type:"text",value:r});return t}},sm=yu;import{isNonNullable as wu}from"@vkontakte/videoplayer-shared";var uo,qn,Cu=0,Su=!1,am=(i,e,t)=>{let n=i>=Cu,o=i<Cu,l=(u,f=0,p=0)=>u<f&&u<p,r=(u,f=0,p=0)=>u>=f&&u<=p,a=(u,f=0,p=0)=>u>f&&u>p,s=t.find(({lang:u})=>u===e.value)?.subtitles;if(Cu=i,o&&(Su=!1),wu(uo)&&r(i,uo.startTime,uo.endTime)&&uo.lang===e.value)return uo;if(!wu(qn)&&s?.length&&!Su){let u=s.find(({startTime:f,endTime:p})=>r(i,f,p)||n&&l(i,f,p));qn=u&&{...u,lang:e.value},uo=void 0,!wu(qn)&&s[s.length-1].endTime<i&&(Su=!0);return}else{if(r(i,qn?.startTime,qn?.endTime))return uo=qn,qn=void 0,uo;(n&&a(i,qn?.startTime,qn?.endTime)||o&&l(i,qn?.startTime,qn?.endTime))&&(qn=void 0)}};import{Subscription as F4}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-statistics";var jr=class{constructor(e,t=new F4){this.oneStat=e;this.statSubscription=t}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var um=({interfaceLanguage:i,isCyrillicRelatedInterface:e,videoId:t,isClip:n,isLiveCatchUpMode:o,statAuthToken:l,isAudioDisabled:r,canDownload:a,callbacks:s,webApi:u,videoEpisodes:f,previewThumbsData:p,uiConfig:h,coreConfig:S,player:g,disabledControls:w,isInteractive:b,interactiveRanges$:E,isInteractiveTime$:v,replayInteractive:y,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:K,additionalButtons:B,looped:O=!1,statistics:ne,saveRate:ge})=>{let G={...S,configName:[...S.configName??[],"ui"],isAudioDisabled:r,live:{...S.live??{},isLiveCatchUpMode:!!o}},X=h,ae=K4.createRootTracer(X.features.saveTraceInfoToFile),j=ae.createComponentTracer("Store"),z=g||new U4(G,ae),Q=new X4,$=new Kr(Q,{loadTimeout:X.ads.loadTimeout,initTimeout:X.ads.initTimeout,runtimeTimeout:X.ads.runtimeTimeout}),W=Ao.getInstance(),Y=u?.pictureInPictureApi,ie=u?.annotationsApi,le=Q.createComponentLog("Store"),Ve,Xe,Ce={},Me=ne?bt(ne.oneStat.vsid$):Rn(void 0),ze=De(oo()),$e=Y?.info.isActive$??new e3(!1),ce=Y?.info.type,he=De(0),at=De([]),we=x4(z.events.fatalError$,z.events.managedError$).subscribe(T=>at.update(se=>[...se,T])),Fe=Rn(!1,T=>{let se=z.events.fatalError$.subscribe(()=>T(!0));return()=>se.unsubscribe()}),ct=async T=>{let se=Object.values(G4).includes(T);if(X.downloadVKLanguages&&(se&&X.updateBuiltinLanguages||!Es(T))){let Qe;try{Qe=await Z4(T,Uc,Kc)}catch(ft){ne?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),W?.report(ft,{errorType:"VKLangPack",fatal:!1})}Qe&&(Ts({language:T,pack:Qe,fallback:X.defaultLanguage}),je.set(T))}Es(T)&&je.set(T)},je=De(i),Ke=De(e);ct(i);let Ze=(T,se)=>{let Ie=Je(je);return As(Ie,T,se,X.defaultLanguage)},xe=De("thumb"),x=(()=>{let T=Ti([Fe,xe],([se,Ie])=>se?"crashed":Ie);return{...T,is:se=>Je(T)===se}})(),qe=(()=>{let T=De(new Set(w));return{...T,add:se=>{T.update(Ie=>new Set([...Ie].concat(se)))},remove:se=>{T.update(Ie=>{let Qe=[...Ie];return new Set(Array.isArray(se)?Qe.filter(ft=>!se.includes(ft)):Qe.filter(ft=>ft!==se))})},includes:se=>{let Ie=Je(T);return Array.isArray(se)?se.every(Qe=>Ie.has(Qe)):Ie.has(se)}}})();j.log("create store"),le({message:"create store"});let He=T=>{let se=T.container;se.append(z.experimental.element$.getValue()),dt=new MutationObserver(Ie=>{let{removedNodes:Qe}=Ie[0];Qe.length&&se.append(z.experimental.element$.getValue())}),dt.observe(se,{childList:!0})},fe=T=>{le({message:`init video, config: ${JSON.stringify(T)}`}),b?He(T):z.initVideo(T),j.log("init video",{isInteractive:b}),T.subtitles&&z.setExternalTextTracks(T.subtitles),Ve=T},re=new Gr,nt=T=>re.next(T),de=new Gr,lt=new Gr,rt=new Gr,dt=null,vt={actionRewind$:de,actionSeek$:lt,inPiP$:$e,inFullscreen$:new $4(T=>ze.subscribe(se=>T.next(se))),actionSetSubtitle$:rt,nextMovie$:re};if(ne){let{oneStat:T,statSubscription:se}=ne;b||se.add(T.attachTo(z)),se.add(T.attachToUi(vt)),se.add(T.attachToAds($.events)),T.authorize(l).catch(Ie=>{le({message:`onestat auth error ${String(Ie)}`})})}if(W){let T=new Pu,se=(Ie,Qe)=>T.add(Ie.subscribe(Qe));if(se(z.events.managedError$,Ie=>{W.logIError(Ie)}),se(z.events.fatalError$,Ie=>{W.logIError(Ie,!0)}),ne){let{oneStat:Ie}=ne;se(Ie.experimental.error$,Qe=>{W.logIError(Qe)})}W.sentrySubscription.add(T)}let Tt=()=>{Q4.isIOS&&Xe&&Pf(Xe)},Ge=new Pu().add(z.experimental.element$.subscribe(T=>{T&&(Xe=T,T.classList.add("player-media"),Mo(Y)&&(Y.updateVideoElement(),Y.registryEventHandlers()),b&&T.setAttribute("pip","false"))})).add(z.events.ended$.subscribe(()=>{Tt(),s?.onEnded?.()})).add(z.events.started$.subscribe(async()=>{Mo(Y)&&await Y?.revealPictureInPicture();let T=z.info.muted$.getValue();s?.onStarted?.(),Ce.onStarted?.(T)})).add(z.events.willSeek$.subscribe(({from:T,to:se})=>{s?.onSeek?.(T,se)})).add(z.info.position$.subscribe(T=>{let se=z.info.duration$.getValue();isFinite(se)&&se>0&&(s?.onTimeupdate?.(se,T),$.setPosition(T,se))})).add(z.events.fatalError$.subscribe(()=>{s?.onCrashed?.()})).add(z.events.loadedMetadata$.subscribe(()=>{gt.state.loadedMetadata$.set(!0)})).add(z.info.is3DVideo$.subscribe(T=>{gt.ui.is3DVideo.set(T)})).add(z.info.isEnded$.subscribe(T=>{b&&(T?(v?.getValue()&&qe.add(Zl),qe.add("PLAY_BUTTON")):qe.remove("PLAY_BUTTON"))})).add(z.info.liveTime$.subscribe(T=>{s?.onLiveTime?.(T)})).add(z.info.isStalled$.subscribe(T=>{s?.onStalledChanged?.(T)})).add($.events.started$.subscribe(()=>{s?.adsInfo?.onStarted?.()})).add($.events.ended$.subscribe(()=>{s?.adsInfo?.onCompleted?.()})),zt=new Pu,Rt=()=>{zt.add(z.events.log$.subscribe(T=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${T.component}`,T.message)})).add(Q.log$.subscribe(T=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${T.component}.`,T.message)}))},kt=()=>{zt.unsubscribe()},si=(T,se)=>{j.log("start camera manual rotation",{mx:T,my:se}),z.startCameraManualRotation(T,se)},st=(T=!1)=>{j.log("stop camera manual rotation",{immediate:T}),z.stopCameraManualRotation(T)},yt=(T,se,Ie)=>{j.log("move camera focus px",{xpx:T,ypx:se,dt:Ie}),z.moveCameraFocusPX(T,se,Ie)},ke=()=>{z.holdCamera()},_t=()=>{z.releaseCamera()},wt=Rn(z.info.position$.getValue(),T=>{let se,Ie,Qe=()=>{let ft=z.info.playbackState$.getValue(),ei=z.info.isLive$.getValue(),Ye=z.info.duration$.getValue(),Pt=z.info.position$.getValue();if([Ll.PLAYING,Ll.PAUSED].includes(ft)){let bn=ei?Pt-Ye:z.getExactTime();bn!==Ie&&T(bn),Ie=bn}se=requestAnimationFrame(Qe)};return Qe(),()=>cancelAnimationFrame(se)}),Zt=bt($e),Ct=bt(z.info.playbackState$),Ut=bt(z.info.currentBuffer$),Kt=bt(z.info.isEnded$),Dt=bt(z.info.isLive$),Oi=X.features.playbackRate?bt(z.info.canChangePlaybackSpeed$):Rn(!1),en=bt(z.info.liveBufferTime$),Xt=bt(z.info.volume$),Ei=bt(z.info.muted$),tn=ys(z.info.autoQualityLimits$.pipe(J4(({max:T})=>T!==void 0)),z.info.autoQualityLimits$.getValue()?.max!==void 0),Fi=bt(z.info.autoQualityLimitingAvailable$),nn=bt(z.info.availableQualities$),Ai=bt(z.info.availableQualitiesFps$),Li=bt(z.info.chromecastState$),ai=bt(z.info.chromecastDeviceName$),ui=bt(z.info.currentFormat$),_i=bt(z.info.throughputEstimation$),hi=bt(z.info.videoBitrate$),ii=bt(z.info.intrinsicVideoSize$),gi=bt(z.info.duration$),Hi=bt(z.info.isAudioAvailable$),qt=null,bi=z.info.isBuffering$,Mi=Rn(bi.getValue(),T=>{let se=bi.subscribe(Ie=>{Ie&&qt===null?qt=window.setTimeout(()=>{T(bi.getValue()),qt=null},X.loaderDelay):T(Ie)});return()=>{se.unsubscribe(),qt&&clearTimeout(qt)}}),zi=()=>{qt&&clearTimeout(qt),qt=null},ci=Ti([gi,Dt],([T,se])=>se?-T:T),Mt=Ti([Ct],([T])=>T===Ll.PLAYING),Ui=bt(z.info.atLiveEdge$),on=bt(z.info.atLiveDurationEdge$),Nt=bt(z.info.position$),Ki=Ti([Nt,gi],([T,se])=>isFinite(T)&&isFinite(se)&&!!se),Wi=Ti([Li],([T])=>T===z4.CONNECTED),Wt=bt(z.info.availableVideoStreams$),vi=X.features.audioLanguages?bt(z.info.availableAudioStreams$):Rn([]),fi=bt(z.info.currentVideoStream$),yi=bt(z.info.currentAudioStream$),jt=T=>{T.language&&Ps(T.language),z.setVideoStream(T)},Ot=T=>{T.language&&Ps(T.language),z.setAudioStream(T)},Jt=T=>{let se;if(T.length===1&&(se=T.at(0)),se??=T.find(Qe=>"isDefault"in Qe&&Qe.isDefault),se)return se;let Ie=_f();return Ie&&(se=T.find(({language:Qe})=>Ie===Qe)),se??=T.at(0),se},Vi=!1;Ge.add(z.info.availableAudioStreams$.subscribe(T=>{if(!Vi&&T.length){let se=Jt(T);se&&(z.setAudioStream(se),Vi=!0)}}));let ni=!1;Ge.add(z.info.availableVideoStreams$.subscribe(T=>{if(!ni&&T.length){let se=Jt(T);se&&(z.setVideoStream(se),ni=!0)}}));let oi=De(void 0),xt=bt(z.info.isAutoQualityEnabled$,T=>T&&oi.set(void 0)),di=bt(z.info.currentQuality$,()=>oi.set(void 0)),ji=Ti([oi,di],([T,se])=>T??se),dn=Ti([nn,Ai,xt,ji,ui],([T,se,Ie,Qe,ft])=>{let ei=[];ft!==Ml.MPEG&&ei.push({value:"auto",displayValue:Ze("auto_quality_option"),selected:Ie});let Ye=T.filter(Pt=>!W4(Pt));for(let Pt of Ye){let bn=se[Pt];ei.push({value:Pt,displayValue:`${Pt}${bn?rm(bn):""}`,selected:Ie?!1:Pt===Qe})}return ei}),Gi=bt(z.info.currentPlaybackRate$),li=Ti([Gi,Ui,on],([T,se,Ie])=>{let Qe=Ie||b?1:X.controls.playbackRateMin,ft=se?1:X.controls.playbackRateMax,ei=X.controls.playbackRateStep,Ye=[];for(let Pt=Qe;Pt<=ft;Pt+=ei)Ye.push({value:Pt,displayValue:Pt===1?Ze("playback_rate_1"):Ze("playback_rate",{multiplier:Pt.toString(10)}),selected:T===Pt});return Ye}),Gt=X.features.subtitles?bt(z.info.availableTextTracks$):Rn([]),Qi=Ti([Gt],([T],se)=>{let Ie=[],Qe=[];for(let ft of T)ft.url&&Ie.push(fetch(ft.url));Promise.allSettled(Ie).then(ft=>{for(let[ei,Ye]of ft.entries())Ye.status==="fulfilled"&&Ye.value.text().then(Pt=>{let bn=new sm,jo=T[ei].language,Ol=!!T[ei].isAuto,Fl=bn.parse(Pt);jo&&Fl&&Qe.push({lang:jo,subtitles:Fl,isAuto:Ol}),ei===ft.length-1&&se(Qe)})})}),At={displayValue:Ze("subtitles_off"),value:"off"},Bt=De({...At}),Yi=Ti([Qi,Bt,Qi],([T,se])=>{if(T?.length>0){let Ie=[{...At,selected:se?.value===At.value}];for(let{lang:Qe,isAuto:ft}of T)qo[Qe]&&Ie.push({displayValue:ft?Ze("subtitles_auto",{language:qo[Qe]}):qo[Qe],value:Qe,selected:se?.value===Qe,isAuto:ft});return Ie}else return[]}),ki=Ti([wt,Bt,Qi],([T,se,Ie])=>{if(se&&se.value!==At.value)return am(T,se,Ie)}),Ri=Ti([ki],([T])=>T?.texts?T.texts:[]),ln=De(!0),et=Ti([Ut,ci,Nt,en],([T,se,Ie,Qe])=>{let ft=T?.end??0;if(!Qe)return ft/se;let Ye=-Ie+Qe-se;return(ft-Ye)/se}),mi=bt(z.info.availableSources$),$t=Ti([mi],([T])=>Object.keys(T?.[Ml.MPEG]||{}).length>0),Ue=()=>{let T=Object.keys(z.info.availableSources$?.getValue()?.[Ml.MPEG]||{}),se=j4(T)||t3.Q_144P;return Ve.sources[Ml.MPEG]?.[se]},Zi=()=>{let T=Ue();if(T)j.log("download video",{url:T}),ef(T,Ve?.meta?.title||"video");else{let se="There is no URL for download video";j.log("download video",{message:se}),le({message:se})}},mn=()=>{le({message:"toggle muted"});let T=z.info.muted$.getValue(),se=z.info.volume$.getValue(),Ie=se===0||T,Qe=!Ie;j.log("toggle muted",{muted:T,volume:se,soundIsOff:Ie,nextValue:Qe}),wi(Qe)},rn=()=>{j.log("close settings menu"),gt.ui.settingsMenuVisible.set(!1)},Bi=T=>{j.log("open settings menu",{wasOpenedByKeyboard:T}),gt.ui.settingsMenuOpenedByKeyboard.set(!!T),gt.ui.settingsMenuVisible.set(!0)},Xi=T=>{Je(gt.ui.settingsMenuVisible)?rn():Bi(T)},sn=(T,se=T,Ie=!1)=>{let Qe=!Ie,ft=z.info.muted$.getValue();le({message:`set volume, volume: ${T}, preferredVolume: ${se}, internalCall: ${Qe}`}),j.log("set volume",{volume:T,preferredVolume:se,internalCall:Qe}),z.setVolume(T),$.setVolume(T),Qe&&s?.onVolumeChange?.(T),Cs(se),ft?(z.setMuted(!1),Qe&&s?.onUnmute?.(),xl(!1)):!ft&&T===0&&(z.setMuted(!0),Qe&&s?.onMute?.(),xl(!0))},wi=(T,se=!1)=>{let Ie=!se,Qe=z.info.volume$.getValue();if(le({message:`set muted, currentVolume: ${Qe}, mute: ${T}, internalCall: ${Ie}`}),j.log("set muted",{mute:T,currentVolume:Qe,internalCall:Ie}),z.setMuted(T),$.setVolume(T?0:Qe),xl(T),Ie&&(T?s?.onMute?.():s?.onUnmute?.()),Qe===0){let ft=Jl()??X.volumeDefault;ft===0&&(ft=X.volumeMinRestore,Cs(ft)),z.setVolume(ft),$.setVolume(ft),Ie&&s?.onVolumeChange?.(ft)}},Qt=De(!1),Ji=T=>{j.log("set looped",{isLooped:T}),Qt.set(T),z.setLooped(T)};Ji(O);let Ci=()=>{s?.uiInfo?.onReportProblem?.()},kn=()=>{z.prepare()},pn=()=>{Nn(gt);let T=Je(gt.ui.controls.disabledControls$),se=Je(gt.playerPhase),Ie={playerPhase:se,isInteractive:b,isVideoEnded:!1,action:"none"};if(T.has("PLAY_BUTTON"))return;if(le({message:"toggle play"}),se==="ads"){Ie.action="play",j.log("toggle adman play",Ie),$.togglePlay();return}let Qe=()=>{le({message:"toggle play, call player.play"}),Ie.action="play",z.play(),s?.onPlay?.()},ft=()=>{le({message:"toggle play, call player.pause"}),Ie.action="pause",z.pause(),s?.onPause?.()};if(z.info.isEnded$.getValue()){if(le({message:"toggle play, video ended, seek to 0"}),de.next(),lt.next(co.REWIND),b){y?.();return}z.seekTime(0),Qe()}else z.info.playbackState$.getValue()!==Ll.PLAYING?Qe():ft();j.log("toggle play",Ie)},an=T=>{le({message:`set quality, quality: ${T}`}),j.log("set quality",{quality:T}),z.setAutoQuality(T==="auto"),T!=="auto"?(af(t,T),oi.set(T),z.setQuality(T)):Ss()},_n=T=>{le({message:`set trafficSavingEnabled, value: ${T}`}),j.log("set traffic saving enabled",{trafficSavingEnabled:T}),z.setAutoQualityLimits({max:T?X.trafficSavingLimit:void 0}),mf(T)},xi=T=>{j.log("set playback rate",{playbackRate:T}),z.setPlaybackRate(T),X.features.saveRate&&ge&&!z.info.isLive$.getValue()&&hf(T)},wn=()=>{let T=Je(li),se=T.findIndex(({selected:Qe})=>Qe);if(se===T.length-1)return;let Ie=T[se+1];xi(Ie.value)},$i=()=>{let T=Je(li),se=T.findIndex(({selected:Qe})=>Qe);if(se===0)return;let Ie=T[se-1];xi(Ie.value)},Si=T=>{j.log("set subtitles",{...T}),T&&T.value!==At.value&&rt.next(T.isAuto?T.value+"_auto":T.value),Bt.set(T)},Di=()=>{j.log("toggle subtitles");let T=Je(Yi),se=Je(Bt),Ie=Je(je);if(se?.value===At.value){let Qe=T.filter(ft=>ft.value!==At.value).find(ft=>ft.value===Ie)||T[1];Si(Qe??{...At})}else Si({...At,selected:!1})},qi=(T,se,Ie=!0)=>{if(le({message:`seek to time, time: ${T}`}),j.log("seek to time",{time:T,action:se,forcePrecise:Ie}),lt.next(se),z.info.isLive$.getValue()){let Qe=z.info.duration$.getValue(),ft=Math.min(0,Qe+T);z.seekTime(ft,Ie)}else{if(v?.getValue())return;z.seekTime(yo(T),Ie)}},En=T=>{le({message:`seek to episode start time: ${T}`}),j.log("seek to episode start time",{time:T}),qi(T,co.EPISODE,!0)},Cn=(T,se)=>{le({message:`seek to percent, percent: ${T}`}),j.log("seek to percent",{percent:T,action:se});let Ie=Math.round(Je(ci)*T);qi(Ie,se,!1)},Yt=T=>{le({message:`seek external, time: ${T}`}),j.log("seek external",{time:T}),lt.next(co.UNKNOWN),z.seekTime(z.info.isLive$.getValue()?-T:T)},An=T=>{let se=T.max??"none",Ie=T.min??"none";le({message:`set auto quality limitation. Max: ${se}. Min: ${Ie}`}),j.log("set auto quality limits",{max:se,min:Ie}),z.setAutoQualityLimits(T)},Ln=T=>{le({message:`seek external to episode start time: ${T}`}),j.log("seek external to episode start time",{time:T}),qi(T,co.EPISODE,!0)},Sn=T=>{le({message:`set playback rate to: ${T}`}),j.log("set playback rate external",{playbackRate:T}),z.setPlaybackRate(T)},hn=De(void 0),un=De(!1),gn=T=>{le({message:`start scrubbing, progress: ${T}`}),j.log("start scrubbing",{progress:T}),un.set(!0),oe(T)},oe=T=>{hn.set(T)},ht,cn,fn=()=>{hn.set(void 0),un.set(!1)},te=()=>{clearTimeout(cn),clearTimeout(ht),ht=window.setTimeout(()=>{fn()},500),Xe?.removeEventListener("seeked",te)},mt=T=>{le({message:`complete scrubbing, progress: ${T}`}),j.log("complete scrubbing",{progress:T}),Cn(T,co.SLIDER),Je(gt.ui.isMobile)&&Je(gt.state.currentFormat$)===Ml.HLS?(Xe?.addEventListener("seeked",te),cn=window.setTimeout(()=>{te()},300)):fn()},ri=Ti([wt,ci,hn],([T,se,Ie],Qe)=>{Qe(Y4(Ie)?Ie*se:T)}),On=De({width:0,height:0}),Fn=Ti([On],([{width:T}],se)=>{let Ie=R1(T);se(Ie)}),ee=De(!1),$n=Ti([Fn,ee],([T,se])=>se?B.filter(Ie=>!Ie.hideOnMobile):B.filter(Ie=>!Ie.hideOnDesktopGridTypes?.includes(T))),gl=Ti([ee,Fe],([T,se],Ie)=>{Ie(T&&se)}),bl=()=>{lt.next(co.LIVE),le({message:"switch to active live"}),j.log("switch to active live"),z.seekTime(0),z.info.playbackState$.getValue()!==Ll.PLAYING&>.actions.internal.togglePlay()},vl=()=>{j.log("skip adman"),$.skip()},yl=(T=!0)=>{Nn(gt),le({message:`switch from ads to video, callPlay: ${T}`}),j.log("switch from ads to video",{callPlay:T}),xe.set("video"),T&&z.play()},Ho=()=>{Nn(gt),le({message:"switch from video to ads"}),j.log("switch from video to ads"),gt.actions.internal.pause(),Tt(),xe.set("ads")},fo=T=>{Nn(gt);let se=T?"LiveWaitingStart":"thumb";j.log("set live waiting start",{state:T,playerPhase:se}),xe.set(se)},mo=T=>{Nn(gt);let se=T?"LiveWaitingRecover":"thumb";j.log("set live waiting recover",{state:T,playerPhase:se}),xe.set(se)},Yn=T=>{Nn(gt);let se=T?"LiveWaitingRecord":"thumb";j.log("set live waiting record",{state:T,playerPhase:se}),xe.set(se)},eo=()=>(Nn(gt),j.log("get debug text data"),xc(z,Ve,gt)),to=()=>(Nn(gt),JSON.stringify(ae.getFinishedSpans())),zo=()=>(Nn(gt),$c(z,Ve,gt)),Uo=()=>Xe,po=()=>{le({message:"toggle chromecast"}),j.log("toggle chromecast"),z.toggleChromecast()},_o=T=>{if(Nn(gt),z.info.isEnded$.getValue())return;let se=!T;if(Je(gt.playerPhase)==="ads"){le({message:`pause ads, internalCall: ${se}`}),j.log("pause ads",{internalCall:se}),$.pause();return}le({message:`pause video, internalCall: ${se}`}),j.log("pause video",{internalCall:se}),se&&s?.onPause?.(),z.pause()},Ko=T=>{Nn(gt);let se=!T;if(Je(gt.playerPhase)==="ads"){le({message:`play ads, internalCall: ${se}`}),j.log("play ads",{internalCall:se}),$.play();return}le({message:`play video, internalCall: ${se}`}),j.log("play video",{internalCall:se}),se&&s?.onPlay?.(),z.play()},ho=(T,se)=>{Nn(gt),le({message:`first start, show ads: ${T}, internalCall: ${!se}`}),j.log("first start",{showAds:T,external:se}),T?xe.set("ads"):(xe.set("video"),se?z.play():gt.actions.internal.togglePlay())},io=()=>(le({message:"getting time codes"}),f),go=()=>{let T=io();if(!T||[0,1].includes(T.length))return;let se=z.info.position$.getValue();return T.find(Ie=>Ie.time>se)},Z=T=>{let se=T;se||(se=go());let Ie=z.info.position$.getValue();j.log("seek to next episode",{currentTime:Ie,...se}),se&&(le({message:"seek to next episode"}),qi(se.time,co.EPISODE,!0))},Lt=()=>{let T=io();if(!T||[0,1].includes(T.length))return;let se=z.info.position$.getValue(),Ie=T.findIndex(ft=>ft.time>se),Qe=Ie===-1?T.length-2:Ie-2;if(!(Qe<0))return T[Qe]},Mn=T=>{let se=T;se||(se=Lt());let Ie=z.info.position$.getValue();j.log("seek to prev episode",{currentTime:Ie,...se}),se&&(le({message:"seek to prev episode"}),qi(se.time,co.EPISODE,!0))},Vn=()=>(le({message:"getting preview thumbs data"}),j.log("get preview thumbs data",{...p}),p),Wo=async()=>{let T=Y?.isActive(),se="none";Y?.isActive()?(se="remove",await Y?.remove()):(se="request",await Y?.request()),j.log("toggle picture in picture",{isActive:T,action:se})},bo=(T=-90)=>{j.log("rotate video",{alphaDiff:T}),he.update(se=>se+T)},Hn=De([]);E?.subscribe(T=>{let se=[];for(let Ie=0;Ie<T.length;Ie++){let{range:[Qe,ft],subjects:ei}=T[Ie];Ie===0&&Qe!==0&&se.push({time:0,text:"",interactive:!1,completed:!0}),se.push({time:Qe/1e3,text:"",interactive:!0,completed:!ei.length}),ft!==1/0&&se.push({time:ft/1e3,text:"",interactive:!1,completed:!0})}Hn.set(se)});let vo=De(!1);v?.subscribe(T=>{T&&Je(un)&&fn()});let yo=T=>{if(!b)return T;let se=Je(Hn),Ie=Je(ci),ft=Je(Nt)/Ie,ei=se.find(Ye=>Ye.interactive&&!Ye.completed&&Ye.time>ft);return typeof ei?.time=="number"?Math.min(T,ei.time-.05):T},ko=()=>{gt.ui.episodes.panelOpened$.set(!1)},Nl=()=>{j.log("destroy store"),clearTimeout(cn),clearTimeout(ht),Ge.unsubscribe(),zt.unsubscribe(),z.destroy(),$.destroy(),ne?.destroy(),W?.destroy(),we.unsubscribe(),dt?.disconnect(),dt=null},gt={interfaceLanguage$:je,isCyrillicRelatedInterface$:Ke,initVideo:fe,videoId:t,isClip:n,playerPhase:x,vsid:Me,state:{positionExact$:wt,positionWithScrubbing$:ri,duration$:ci,playbackState$:Ct,isPlaying$:Mt,isLoaderVisible:Mi,bufferedProgress$:et,isLive$:Dt,canChangePlaybackSpeed$:Oi,isActiveLive$:Ui,isOldestAvailableLive$:on,isRewindableLive$:Ki,isEnded$:Kt,muted$:Ei,volume$:Xt,trafficSavingEnabled$:tn,autoQualityLimitingAvailable$:Fi,availableVideoStreams$:Wt,availableAudioStreams$:vi,videoStream$:fi,audioStream$:yi,currentQuality$:ji,isAutoQualityEnabled$:xt,availableQualities$:dn,currentPlaybackRate$:Gi,availablePlaybackRates$:li,currentSubtitle$:Bt,availableSubtitlesList$:Yi,currentSubtitleCaptions$:Ri,isAutoSubtitleCaptionVisible$:ln,chromecastState$:Li,chromecastDeviceName$:ai,chromecastConnected$:Wi,currentFormat$:ui,throughputEstimation$:_i,videoBitrate$:hi,videoSize$:ii,errorLog$:at,crashed$:Fe,isAudioAvailable$:Hi,isAudioDisabled:!!r,canDownload:X.features.download&&!!a,availableSources$:mi,hasMpegSources$:$t,isInteractive:b,showInteractiveGraph:X.features.interactiveGraph,showSeekToInteractive:X.features.seekToInteractive,showPlayPrevChapter:X.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:X.features.interactiveTimeIndicator&&!!Je(Hn).length,interactiveEpisodes$:Hn,isInteractiveTime$:v?bt(v):De(!1),graphIsOpened$:De(!1),isInteractiveExpectation$:vo,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:K,looped$:Qt,loadedMetadata$:De(!1)},ui:{controlsVisible:De(!1),touched:De(!1),controls:{prevButton:De(void 0),playButton:De(void 0),replayButton:De(void 0),nextButton:De(void 0),playPrevChapterButton:De(void 0),seekToInteractiveButton:De(void 0),interactiveGraphButton:De(void 0),liveButton:De(void 0),time:De(void 0),episodes:De(void 0),volume:De(void 0),subtitles:De(void 0),settings:De(void 0),context:De(void 0),chromecast:De(void 0),pip:De(void 0),fullscreen:De(void 0),vkLogo:De(void 0),interactiveTimeIndicator:De(void 0),timeline:De(void 0),additionalButtons:B.length?B.reduce(T=>[...T,De(void 0)],[]):[],disabledControls$:qe},modals:{hotKeyMap:{show:De(!1),data:De({title:"",closeBtnText:"",groups:[]})}},isFullscreen:ze,rotateAlpha:he,isAutoplay:De(!1),debugPanelVisible:De(!1),episodes:{panelOpened$:De(!1),openedByKeyboard$:De(!1)},contextMenu:{visible$:De(!1),btnRef$:De(void 0),openedByBtnKeyboard$:De(!1),openedByHotKey$:De(!1),lastActiveElem$:De(void 0),showContextMenuBtn$:De(!1),position$:De({top:0,left:0})},playerSize:On,isMobile:ee,mobileNotReportControlHidden$:gl,mobileUnmuteButtonExpanded:De(!1),mobileUnmuteButtonVisible:De(!1),icon3DVideoVisible:De(!1),settingsMenuVisible:De(!1),settingsMenuOpenedByKeyboard:De(!1),scrubbingInProgress:un,is3DVideo:De(!1),isPictureInPictureActive$:Zt,pictureInPictureType$:Rn(ce),currentGridType$:Fn,additionalButtons$:$n,interactiveHideMobileControls:De(!1),overlayContainer$:De(void 0),startedByKeyboard$:De(!1)},ads:{position:De(0),duration:De(0),playbackState:De("inactive"),canSkip:De(!1),secondsToWatchBeforeSkip:De(0),postrollPassed:De(!1)},webApi:{pictureInPictureApi:Y,annotationsApi:ie},actions:{internal:{preload:kn,firstStart:T=>ho(T,!1),pause:()=>_o(!1),togglePlay:pn,toggleMuted:mn,toggleSettingsMenu:Xi,openSettingsMenu:Bi,closeSettingsMenu:rn,setVolume:sn,setVideoStream:jt,setAudioStream:Ot,setQuality:an,setTrafficSavingEnabled:T=>_n(T),setPlaybackRate:xi,incrementPlaybackRate:wn,decrementPlaybackRate:$i,setSubtitle:Si,toggleSubtitle:Di,togglePictureInPicture:Wo,startScrubbing:gn,progressScrubbing:oe,completeScrubbing:mt,toggleChromecast:po,switchToActiveLive:bl,switchFromAdsToVideo:yl,switchFromVideoToAds:Ho,skipAd:vl,setLiveWaitingStart:fo,setLiveWaitingRecover:mo,setLiveWaitingRecord:Yn,getDebugTextData:eo,getTraceTextData:to,getDebugPanelData:zo,getVideoElement:Uo,seekTime:(T,se,Ie)=>qi(T,se,Ie),clearDelayedBufferingCheckTimeout:zi,seekEpisodeStartTime:En,seekToPercent:Cn,getNextEpisode:go,seekToNextEpisode:Z,getPrevEpisode:Lt,seekToPrevEpisode:Mn,startLogging:Rt,stopLogging:kt,startCameraManualRotation:si,stopCameraManualRotation:st,moveCameraFocusPX:yt,holdCamera:ke,releaseCamera:_t,getVideoEpisodes:io,getPreviewThumbsData:Vn,downloadVideo:Zi,addLanguage:Ts,setLanguage:ct,nextMovie:nt,videoRotate:bo,correctSeekTimeToInteractive:yo,replayInteractive:y,setLooped:Ji,reportProblem:Ci},external:{firstStart:T=>ho(T,!0),play:()=>Ko(!0),pause:()=>_o(!0),seekTime:T=>Yt(T),seekEpisodeStartTime:T=>Ln(T),setPlaybackRate:T=>Sn(T),setAutoQualityLimits:T=>An(T),setMuted:T=>wi(T,!0),setVolume:T=>sn(T,T,!0),returnFocusToEpisodes:ko}},callbacks:s,setUiCallbacks:T=>{Ce={...T}},getAdmanWrapper:()=>$,getLogger:()=>Q,destroy:Nl};return gt};var Yr=(i,e,t,n)=>{if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],l=["interactiveTimeIndicator"],r=i.getBoundingClientRect();for(let[a,s]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(a)){let u=t[a]?.getBoundingClientRect(),f=(n||l.includes(a))&&!!u&&!!(u.right-u.left);s.set({positionStartX:0,positionEndX:0,left:f?Math.round(u.left-r.left):0,right:f?Math.round(u.right-r.left):0,top:f?Math.round(u.top-r.top):0,bottom:f?Math.round(u.bottom-r.top):0,isDisplayed:f})}};var Zr=async(i,e,t)=>{await Un(),e&&t&&(t.focus(),i.set(!1))};function i3(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function n3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Iu=class extends H{constructor(e){super(),U(this,e,n3,i3,F,{})}},cm=Iu;function o3(i){let e,t;return e=new cm({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function l3(i){let e,t,n;function o(r){i[8](r)}let l={className:i[3]?"opened":"",testId:"btn-context-menu",disabled:i[0],ariaLabel:i[1],click:i[5],focus:i[6],blur:i[7],ariaExpanded:i[3],$$slots:{default:[o3]},$$scope:{ctx:i}};return i[2]!==void 0&&(l.ref=i[2]),e=new pt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&8&&(s.className=r[3]?"opened":""),a&1&&(s.disabled=r[0]),a&2&&(s.ariaLabel=r[1]),a&8&&(s.ariaExpanded=r[3]),a&16384&&(s.$$scope={dirty:a,ctx:r}),!t&&a&4&&(t=!0,s.ref=r[2],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function r3(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:l=""}=e,r=it(),a=r.ui.contextMenu.visible$;q(i,a,E=>t(3,n=E));let s=r.ui.contextMenu.openedByBtnKeyboard$,u=r.ui.contextMenu.showContextMenuBtn$,f=r.ui.contextMenu.position$,p=r.ui.contextMenu.btnRef$,h,S=E=>{let v=nl(E),y=Kf(h);f.set(y),s.set(v),a.set(!n)},g=()=>{u.set(!0)},w=()=>{u.set(!1)};function b(E){h=E,t(2,h)}return i.$$set=E=>{"disabled"in E&&t(0,o=E.disabled),"ariaLabel"in E&&t(1,l=E.ariaLabel)},i.$$.update=()=>{i.$$.dirty&4&&h&&p.set(h)},[o,l,h,n,a,S,g,w,b]}var Tu=class extends H{constructor(e){super(),U(this,e,r3,l3,F,{disabled:0,ariaLabel:1})}},fm=Tu;function s3(i){Pe(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 a3(i){let e,t;return e=new Tr({props:{completed:!0}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p:Se,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function u3(i){let e,t,n,o,l,r,a,s,u,f;function p(S){i[22](S)}let h={tooltipContent:N("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[a3]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new Et({props:h}),be.push(()=>Oe(t,"ref",p)),t.$on("click",i[14]),{c(){e=P("div"),V(t.$$.fragment),o=M(),l=P("div"),r=M(),a=P("div"),c(l,"class","ref-block svelte-17imlp9"),D(l,"hidden",i[1]),c(a,"class","pulse svelte-17imlp9"),D(a,"paused",i[4]),c(e,"class","interactive-episode-icon-animated svelte-17imlp9"),D(e,"mobile",i[2]),D(e,"fullscreen",i[6]),D(e,"invisible",i[1])},m(S,g){C(S,e,g),A(t,e,null),m(e,o),m(e,l),i[23](l),m(e,r),m(e,a),i[24](a),s=!0,u||(f=[_e(e,"mousemove",ot(i[21])),_e(e,"mouseleave",i[15])],u=!0)},p(S,g){let w={};g[0]&32&&(w.tooltipActive=S[5]),g[1]&1&&(w.$$scope={dirty:g,ctx:S}),!n&&g[0]&1&&(n=!0,w.ref=S[0],Ne(()=>n=!1)),t.$set(w),(!s||g[0]&2)&&D(l,"hidden",S[1]),(!s||g[0]&16)&&D(a,"paused",S[4]),(!s||g[0]&4)&&D(e,"mobile",S[2]),(!s||g[0]&64)&&D(e,"fullscreen",S[6]),(!s||g[0]&2)&&D(e,"invisible",S[1])},i(S){s||(d(t.$$.fragment,S),s=!0)},o(S){_(t.$$.fragment,S),s=!1},d(S){S&&k(e),L(t),i[23](null),i[24](null),u=!1,tt(f)}}}function c3(i,e,t){let n,o,l,r,a,s,{ref:u=void 0}=e,f,p=it(),h=Bn(),{interactiveControlsOpacity$:S}=h;q(i,S,Y=>t(18,o=Y));let g=p.ui.isMobile;q(i,g,Y=>t(2,a=Y));let w=p.ui.isFullscreen;q(i,w,Y=>t(6,s=Y));let b=p.state.isInteractiveTime$;q(i,b,Y=>t(19,l=Y));let E=h.showInteractiveTimeIndicatorTooltip$;q(i,E,Y=>t(17,n=Y));let v=p.ui.controlsVisible;q(i,v,Y=>t(20,r=Y));let y=p.callbacks?.onInteractiveTimeIndicatorClick,I,K,B,O=()=>{t(4,B=!0)},ne=()=>{ge(),f?.addEventListener("animationiteration",O,{once:!0})},ge=()=>{t(4,B=!1),f?.removeEventListener("animationiteration",O)},G=Y=>{E.set(Y)},X,ae=()=>{K||(E.set(!0),y?.())};zn(()=>{E.clearTimeout(),ge()});let j=()=>{E.set(!1)};function z(Y){Pn.call(this,i,Y)}function Q(Y){u=Y,t(0,u)}function $(Y){be[Y?"unshift":"push"](()=>{u=Y,t(0,u)})}function W(Y){be[Y?"unshift":"push"](()=>{f=Y,t(3,f)})}return i.$$set=Y=>{"ref"in Y&&t(0,u=Y.ref)},i.$$.update=()=>{i.$$.dirty[0]&1048580&&t(16,I=!a&&r),i.$$.dirty[0]&851968&&t(1,K=!l||!!o||I),i.$$.dirty[0]&2&&t(4,B=K),i.$$.dirty[0]&131074&&t(5,X=n&&!K),i.$$.dirty[0]&131072&&(n?ne():ge())},[u,K,a,f,B,X,s,S,g,w,b,E,v,G,ae,j,I,n,o,l,r,z,Q,$,W]}var Eu=class extends H{constructor(e){super(),U(this,e,c3,u3,F,{ref:0},s3,[-1,-1])}},Xr=Eu;function m3(i){Pe(i,"svelte-ips4nw",".wrapper-bottom.svelte-ips4nw.svelte-ips4nw{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box}.wrapper-bottom.svelte-ips4nw>.svelte-ips4nw{pointer-events:auto}.controls.svelte-ips4nw.svelte-ips4nw{width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box}.controls-left.svelte-ips4nw.svelte-ips4nw,.controls-right.svelte-ips4nw.svelte-ips4nw{display:flex;align-content:center}.controls-left.svelte-ips4nw.svelte-ips4nw{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-ips4nw > *:not(:first-child),.controls-right.svelte-ips4nw > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-ips4nw.svelte-ips4nw{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-ips4nw.svelte-ips4nw{transition:none}.settings-menu.svelte-ips4nw.svelte-ips4nw{bottom:57px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}")}function mm(i,e,t){let n=i.slice();return n[210]=e[t].iconUrl,n[211]=e[t].ariaLabel,n[212]=e[t].testId,n[213]=e[t].onClick,n[214]=e[t].tooltip,n}function pm(i){let e,t,n;function o(r){i[174](r)}let l={disabled:!i[9],tooltipContent:N("tooltip_previous"),$$slots:{default:[p3]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(l.ref=i[23].prevButton),e=new Et({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&512&&(s.disabled=!r[9]),a[0]&4608|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].prevButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function p3(i){let e,t;return e=new dl({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&4096&&(l.click=n[12]),o[0]&512&&(l.disabled=!n[9]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function _m(i){let e,t,n;function o(r){i[175](r)}let l={disabled:i[74],tooltipContent:N("tooltip_restart"),$$slots:{default:[_3]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(l.ref=i[23].replayButton),e=new Et({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[2]&4096&&(s.disabled=r[74]),a[2]&4096|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].replayButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function _3(i){let e,t;return e=new Al({props:{click:i[128],disabled:i[74]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[2]&4096&&(l.disabled=n[74]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function hm(i){let e,t,n;function o(r){i[177](r)}let l={tooltipContent:i[47],disabled:i[75],$$slots:{default:[h3]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(l.ref=i[23].playButton),e=new Et({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&65536&&(s.tooltipContent=r[47]),a[2]&8192&&(s.disabled=r[75]),a[0]&67108864|a[1]&8|a[2]&8192|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].playButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function h3(i){let e,t,n;function o(r){i[176](r)}let l={isMobile:!1,isPlaying:i[34],click:i[85],disabled:i[75]};return i[26]!==void 0&&(l.ref=i[26]),e=new El({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&8&&(s.isPlaying=r[34]),a[2]&8192&&(s.disabled=r[75]),!t&&a[0]&67108864&&(t=!0,s.ref=r[26],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function gm(i){let e,t,n;function o(r){i[178](r)}let l={disabled:!i[8],tooltipContent:N("tooltip_next"),$$slots:{default:[g3]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(l.ref=i[23].nextButton),e=new Et({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&256&&(s.disabled=!r[8]),a[0]&2304|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].nextButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function g3(i){let e,t;return e=new dl({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&2048&&(l.click=n[11]),o[0]&256&&(l.disabled=!n[8]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function b3(i){let e,t,n,o,l=i[121]&&v3(i),r=i[120]&&k3(i),a=i[119]&&C3(i);return{c(){l&&l.c(),e=M(),r&&r.c(),t=M(),a&&a.c(),n=ut()},m(s,u){l&&l.m(s,u),C(s,e,u),r&&r.m(s,u),C(s,t,u),a&&a.m(s,u),C(s,n,u),o=!0},p(s,u){s[121]&&l.p(s,u),s[120]&&r.p(s,u),s[119]&&a.p(s,u)},i(s){o||(d(l),d(r),d(a),o=!0)},o(s){_(l),_(r),_(a),o=!1},d(s){s&&(k(e),k(t),k(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function v3(i){let e,t,n;function o(r){i[179](r)}let l={disabled:i[73],tooltipContent:N("tooltip_interactive_go_back"),disabledTooltipContent:N(i[124]),$$slots:{default:[y3]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(l.ref=i[23].playPrevChapterButton),e=new Et({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[2]&2048&&(s.disabled=r[73]),a[0]&131072|a[2]&2048|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].playPrevChapterButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function y3(i){let e,t;return e=new zr({props:{disabled:i[73],click:i[17]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[2]&2048&&(l.disabled=n[73]),o[0]&131072&&(l.click=n[17]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function k3(i){let e,t,n;function o(r){i[180](r)}let l={disabled:i[76],tooltipContent:N("tooltip_interactive_seek"),disabledTooltipContent:N(i[78]),$$slots:{default:[w3]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(l.ref=i[23].seekToInteractiveButton),e=new Et({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[2]&16384&&(s.disabled=r[76]),a[2]&65536&&(s.disabledTooltipContent=N(r[78])),a[0]&32768|a[2]&16384|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].seekToInteractiveButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function w3(i){let e,t;return e=new Or({props:{disabled:i[76],click:i[15]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[2]&16384&&(l.disabled=n[76]),o[0]&32768&&(l.click=n[15]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function C3(i){let e,t,n;function o(r){i[181](r)}let l={tooltipContent:i[48],disabled:i[77],$$slots:{default:[S3]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(l.ref=i[23].interactiveGraphButton),e=new Et({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.tooltipContent=r[48]),a[2]&32768&&(s.disabled=r[77]),a[0]&65536|a[1]&1|a[2]&32768|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].interactiveGraphButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function S3(i){let e,t;return e=new Fr({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&65536&&(l.click=n[16]),o[1]&1&&(l.graphIsOpened=n[31]),o[2]&32768&&(l.disabled=n[77]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function bm(i){let e,t,n;function o(r){i[182](r)}let l={tooltipContent:i[50],$$slots:{default:[P3]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(l.ref=i[23].liveButton),e=new Et({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&524288&&(s.tooltipContent=r[50]),a[0]&2097152|a[1]&524288|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].liveButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function P3(i){let e,t;return e=new Rr({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.isActiveLive=n[21]),o[1]&524288&&(l.ariaLabel=n[50]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function vm(i){let e,t,n;function o(r){i[183](r)}let l={isMobile:!1,showDuration:i[55],position:i[4]?i[79]:i[80],duration:i[4]?i[81]:i[82]};return i[23].time!==void 0&&(l.ref=i[23].time),e=new Pr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&16777216&&(s.showDuration=r[55]),a[0]&16|a[2]&393216&&(s.position=r[4]?r[79]:r[80]),a[0]&16|a[2]&1572864&&(s.duration=r[4]?r[81]:r[82]),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].time,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function ym(i){let e,t;return e=new Nr({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[2]&262144&&(l.position=n[80]),o[2]&1048576&&(l.duration=n[82]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function I3(i){let e,t,n=i[20]&&ym(i);return{c(){n&&n.c(),e=ut()},m(o,l){n&&n.m(o,l),C(o,e,l),t=!0},p(o,l){o[20]?n?(n.p(o,l),l[0]&1048576&&d(n,1)):(n=ym(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(me(),_(n,1,1,()=>{n=null}),pe())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function T3(i){let e,t;return e=new Ur({props:{iconUrl:i[210],ariaLabel:i[211]??i[214],testId:i[212],onClick:i[213]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&268435456&&(l.iconUrl=n[210]),o[0]&268435456&&(l.ariaLabel=n[211]??n[214]),o[0]&268435456&&(l.testId=n[212]),o[0]&268435456&&(l.onClick=n[213]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function km(i){let e,t;return e=new Et({props:{tooltipContent:i[214],width:40,$$slots:{default:[T3]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&268435456&&(l.tooltipContent=n[214]),o[0]&268435456|o[7]&1&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function wm(i){let e,t,n;function o(r){i[186](r)}let l={disabled:!i[6],tooltipContent:i[51],disabledTooltipContent:"",$$slots:{default:[E3]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(l.ref=i[23].vkLogo),e=new Et({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&64&&(s.disabled=!r[6]),a[1]&1048576&&(s.tooltipContent=r[51]),a[0]&192|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].vkLogo,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function E3(i){let e,t;return e=new Mr({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&128&&(l.targetUrl=n[7]),o[0]&64&&(l.logoClickable=n[6]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function A3(i){let e,t;return e=new D1({props:{click:i[127]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p:Se,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Cm(i){let e,t,n;function o(r){i[188](r)}let l={tooltipContent:i[52],$$slots:{default:[L3]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(l.ref=i[23].subtitles),e=new Et({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&2097152&&(s.tooltipContent=r[52]),a[0]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].subtitles,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function L3(i){let e,t;return e=new y1({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&262144&&(l.isSubtitlesEnabled=n[18]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Sm(i){let e,t,n,o;function l(a){i[189](a)}let r={supportLink:i[10],playerControlsHeight:i[46]?.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(r.ref=i[24]),t=new Sr({props:r}),be.push(()=>Oe(t,"ref",l)),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","settings-menu svelte-ips4nw")},m(a,s){C(a,e,s),A(t,e,null),o=!0},p(a,s){let u={};s[0]&1024&&(u.supportLink=a[10]),s[1]&32768&&(u.playerControlsHeight=a[46]?.clientHeight),s[0]&16384&&(u.returnFocus=a[14]),!n&&s[0]&16777216&&(n=!0,u.ref=a[24],Ne(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),L(t)}}}function Pm(i){let e,t,n;function o(r){i[191](r)}let l={tooltipContent:i[27]?void 0:N("tooltip_settings_off"),$$slots:{default:[M3]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(l.ref=i[23].settings),e=new Et({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&134217728&&(s.tooltipContent=r[27]?void 0:N("tooltip_settings_off")),a[0]&33554432|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].settings,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function M3(i){let e,t,n;function o(r){i[190](r)}let l={};return i[25]!==void 0&&(l.ref=i[25]),e=new Il({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&33554432&&(t=!0,s.ref=r[25],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function V3(i){let e,t,n;function o(r){i[192](r)}let l={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[R3]},$$scope:{ctx:i}};return i[23].context!==void 0&&(l.ref=i[23].context),e=new Et({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&1024&&(s.className=r[41]?"":"out-of-view"),a[1]&262144&&(s.tooltipContent=r[49]),a[1]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].context,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function R3(i){let e,t;return e=new fm({props:{ariaLabel:i[49]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[1]&262144&&(l.ariaLabel=n[49]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Im(i){let e,t,n;function o(r){i[193](r)}let l={tooltipContent:i[53],$$slots:{default:[B3]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(l.ref=i[23].fullscreen),e=new Et({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&4194304&&(s.tooltipContent=r[53]),a[0]&1073750016|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].fullscreen,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function B3(i){let e,t;return e=new Ar({props:{click:i[13],isFullscreen:i[30]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&8192&&(l.click=n[13]),o[0]&1073741824&&(l.isFullscreen=n[30]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Tm(i){let e,t,n;function o(r){i[194](r)}let l={tooltipContent:i[54],$$slots:{default:[D3]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(l.ref=i[23].chromecast),e=new Et({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&8388608&&(s.tooltipContent=r[54]),a[0]&536870912|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].chromecast,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function D3(i){let e,t;return e=new Vr({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&536870912&&(l.state=n[29]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function q3(i){let e,t,n;function o(r){i[197](r)}let l={};return i[23].interactiveTimeIndicator!==void 0&&(l.ref=i[23].interactiveTimeIndicator),e=new Xr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&8388608&&(t=!0,s.ref=r[23].interactiveTimeIndicator,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function N3(i){let e,t,n,o,l,r,a,s,u,f,p,h,S,g,w,b,E,v,y,I,K,B,O,ne,ge,G,X,ae,j,z,Q;function $(fe){i[173](fe)}let W={isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]};i[23].timeline!==void 0&&(W.ref=i[23].timeline),t=new qr({props:W}),be.push(()=>Oe(t,"ref",$));let Y=i[38]&&pm(i),ie=i[35]&&_m(i),le=i[36]&&hm(i),Ve=i[37]&&gm(i),Xe=i[117]&&b3(i),Ce=!i[4]&&i[33]&&bm(i),Me=i[19]&&vm(i);function ze(fe){i[184](fe)}let $e={className:"w-max",disabled:!i[20],tooltipContent:N("tooltip_episodes"),$$slots:{default:[I3]},$$scope:{ctx:i}};i[23].episodes!==void 0&&($e.ref=i[23].episodes),g=new Et({props:$e}),be.push(()=>Oe(g,"ref",ze));let ce=St(i[28]),he=[];for(let fe=0;fe<ce.length;fe+=1)he[fe]=km(mm(i,ce,fe));let at=fe=>_(he[fe],1,1,()=>{he[fe]=null}),we=i[43]&&!i[4]&&wm(i);function Fe(fe){i[187](fe)}let ct={$$slots:{default:[A3]},$$scope:{ctx:i}};i[23].volume!==void 0&&(ct.ref=i[23].volume),K=new Et({props:ct}),be.push(()=>Oe(K,"ref",Fe));let je=i[40]&&Cm(i),Ke=!i[83]&&!i[4]&&Sm(i),Ze=i[42]&&!i[4]&&Pm(i),xe=i[84].features.contextMenuButton&&V3(i),x=i[44]&&Im(i),qe=i[39]&&Tm(i),He=i[122]&&q3(i);return{c(){e=P("div"),V(t.$$.fragment),o=M(),l=P("div"),r=P("div"),Y&&Y.c(),a=M(),ie&&ie.c(),s=M(),le&&le.c(),u=M(),Ve&&Ve.c(),f=M(),Xe&&Xe.c(),p=M(),Ce&&Ce.c(),h=M(),Me&&Me.c(),S=M(),V(g.$$.fragment),E=M(),v=P("div");for(let fe=0;fe<he.length;fe+=1)he[fe].c();y=M(),we&&we.c(),I=M(),V(K.$$.fragment),O=M(),je&&je.c(),ne=M(),Ke&&Ke.c(),ge=M(),Ze&&Ze.c(),G=M(),xe&&xe.c(),X=M(),x&&x.c(),ae=M(),qe&&qe.c(),j=M(),He&&He.c(),z=ut(),c(r,"class","controls-left svelte-ips4nw"),Kn(()=>i[185].call(r)),c(v,"class","controls-right svelte-ips4nw"),c(l,"class","controls svelte-ips4nw"),c(e,"class","wrapper-bottom svelte-ips4nw"),D(e,"hidden",i[1]),D(e,"controls-hidden",!i[3]),D(e,"no-smooth",i[2])},m(fe,re){C(fe,e,re),A(t,e,null),m(e,o),m(e,l),m(l,r),Y&&Y.m(r,null),m(r,a),ie&&ie.m(r,null),m(r,s),le&&le.m(r,null),m(r,u),Ve&&Ve.m(r,null),m(r,f),Xe&&Xe.m(r,null),m(r,p),Ce&&Ce.m(r,null),m(r,h),Me&&Me.m(r,null),m(r,S),A(g,r,null),b=Go(r,i[185].bind(r)),m(l,E),m(l,v);for(let nt=0;nt<he.length;nt+=1)he[nt]&&he[nt].m(v,null);m(v,y),we&&we.m(v,null),m(v,I),A(K,v,null),m(v,O),je&&je.m(v,null),m(v,ne),Ke&&Ke.m(v,null),m(v,ge),Ze&&Ze.m(v,null),m(v,G),xe&&xe.m(v,null),m(v,X),x&&x.m(v,null),m(v,ae),qe&&qe.m(v,null),i[195](l),i[196](e),C(fe,j,re),He&&He.m(fe,re),C(fe,z,re),Q=!0},p(fe,re){let nt={};re[1]&16384&&(nt.isHidden=!fe[45]),re[0]&16&&(nt.isAds=fe[4]),re[0]&32&&(nt.canRewindLive=fe[5]),re[1]&2&&(nt.isRewindableLive=fe[32]),!n&&re[0]&8388608&&(n=!0,nt.ref=fe[23].timeline,Ne(()=>n=!1)),t.$set(nt),fe[38]?Y?(Y.p(fe,re),re[1]&128&&d(Y,1)):(Y=pm(fe),Y.c(),d(Y,1),Y.m(r,a)):Y&&(me(),_(Y,1,1,()=>{Y=null}),pe()),fe[35]?ie?(ie.p(fe,re),re[1]&16&&d(ie,1)):(ie=_m(fe),ie.c(),d(ie,1),ie.m(r,s)):ie&&(me(),_(ie,1,1,()=>{ie=null}),pe()),fe[36]?le?(le.p(fe,re),re[1]&32&&d(le,1)):(le=hm(fe),le.c(),d(le,1),le.m(r,u)):le&&(me(),_(le,1,1,()=>{le=null}),pe()),fe[37]?Ve?(Ve.p(fe,re),re[1]&64&&d(Ve,1)):(Ve=gm(fe),Ve.c(),d(Ve,1),Ve.m(r,f)):Ve&&(me(),_(Ve,1,1,()=>{Ve=null}),pe()),fe[117]&&Xe.p(fe,re),!fe[4]&&fe[33]?Ce?(Ce.p(fe,re),re[0]&16|re[1]&4&&d(Ce,1)):(Ce=bm(fe),Ce.c(),d(Ce,1),Ce.m(r,h)):Ce&&(me(),_(Ce,1,1,()=>{Ce=null}),pe()),fe[19]?Me?(Me.p(fe,re),re[0]&524288&&d(Me,1)):(Me=vm(fe),Me.c(),d(Me,1),Me.m(r,S)):Me&&(me(),_(Me,1,1,()=>{Me=null}),pe());let de={};if(re[0]&1048576&&(de.disabled=!fe[20]),re[0]&1048576|re[2]&1310720|re[7]&1&&(de.$$scope={dirty:re,ctx:fe}),!w&&re[0]&8388608&&(w=!0,de.ref=fe[23].episodes,Ne(()=>w=!1)),g.$set(de),re[0]&268435456){ce=St(fe[28]);let rt;for(rt=0;rt<ce.length;rt+=1){let dt=mm(fe,ce,rt);he[rt]?(he[rt].p(dt,re),d(he[rt],1)):(he[rt]=km(dt),he[rt].c(),d(he[rt],1),he[rt].m(v,y))}for(me(),rt=ce.length;rt<he.length;rt+=1)at(rt);pe()}fe[43]&&!fe[4]?we?(we.p(fe,re),re[0]&16|re[1]&4096&&d(we,1)):(we=wm(fe),we.c(),d(we,1),we.m(v,I)):we&&(me(),_(we,1,1,()=>{we=null}),pe());let lt={};re[7]&1&&(lt.$$scope={dirty:re,ctx:fe}),!B&&re[0]&8388608&&(B=!0,lt.ref=fe[23].volume,Ne(()=>B=!1)),K.$set(lt),fe[40]?je?(je.p(fe,re),re[1]&512&&d(je,1)):(je=Cm(fe),je.c(),d(je,1),je.m(v,ne)):je&&(me(),_(je,1,1,()=>{je=null}),pe()),!fe[83]&&!fe[4]?Ke?(Ke.p(fe,re),re[0]&16|re[2]&2097152&&d(Ke,1)):(Ke=Sm(fe),Ke.c(),d(Ke,1),Ke.m(v,ge)):Ke&&(me(),_(Ke,1,1,()=>{Ke=null}),pe()),fe[42]&&!fe[4]?Ze?(Ze.p(fe,re),re[0]&16|re[1]&2048&&d(Ze,1)):(Ze=Pm(fe),Ze.c(),d(Ze,1),Ze.m(v,G)):Ze&&(me(),_(Ze,1,1,()=>{Ze=null}),pe()),fe[84].features.contextMenuButton&&xe.p(fe,re),fe[44]?x?(x.p(fe,re),re[1]&8192&&d(x,1)):(x=Im(fe),x.c(),d(x,1),x.m(v,ae)):x&&(me(),_(x,1,1,()=>{x=null}),pe()),fe[39]?qe?(qe.p(fe,re),re[1]&256&&d(qe,1)):(qe=Tm(fe),qe.c(),d(qe,1),qe.m(v,null)):qe&&(me(),_(qe,1,1,()=>{qe=null}),pe()),(!Q||re[0]&2)&&D(e,"hidden",fe[1]),(!Q||re[0]&8)&&D(e,"controls-hidden",!fe[3]),(!Q||re[0]&4)&&D(e,"no-smooth",fe[2]),fe[122]&&He.p(fe,re)},i(fe){if(!Q){d(t.$$.fragment,fe),d(Y),d(ie),d(le),d(Ve),d(Xe),d(Ce),d(Me),d(g.$$.fragment,fe);for(let re=0;re<ce.length;re+=1)d(he[re]);d(we),d(K.$$.fragment,fe),d(je),d(Ke),d(Ze),d(xe),d(x),d(qe),d(He),Q=!0}},o(fe){_(t.$$.fragment,fe),_(Y),_(ie),_(le),_(Ve),_(Xe),_(Ce),_(Me),_(g.$$.fragment,fe),he=he.filter(Boolean);for(let re=0;re<he.length;re+=1)_(he[re]);_(we),_(K.$$.fragment,fe),_(je),_(Ke),_(Ze),_(xe),_(x),_(qe),_(He),Q=!1},d(fe){fe&&(k(e),k(j),k(z)),L(t),Y&&Y.d(),ie&&ie.d(),le&&le.d(),Ve&&Ve.d(),Xe&&Xe.d(),Ce&&Ce.d(),Me&&Me.d(),L(g),b(),Ii(he,fe),we&&we.d(),L(K),je&&je.d(),Ke&&Ke.d(),Ze&&Ze.d(),xe&&xe.d(),x&&x.d(),qe&&qe.d(),i[195](null),i[196](null),He&&He.d(fe)}}}function O3(i,e,t){let n,o,l,r,a,s,u,f,p,h,S,g,w,b,E,v,y,I,K,B,O,ne,ge,G,X,ae,j,z,Q,$,W,Y,ie=Se,le=()=>(ie(),ie=Ft(ge,J=>t(144,Y=J)),ge),Ve,Xe=Se,Ce=()=>(Xe(),Xe=Ft(ne,J=>t(145,Ve=J)),ne),Me,ze=Se,$e=()=>(ze(),ze=Ft(O,J=>t(146,Me=J)),O),ce,he=Se,at=()=>(he(),he=Ft(B,J=>t(147,ce=J)),B),we,Fe=Se,ct=()=>(Fe(),Fe=Ft(K,J=>t(148,we=J)),K),je,Ke=Se,Ze=()=>(Ke(),Ke=Ft(I,J=>t(149,je=J)),I),xe,x=Se,qe=()=>(x(),x=Ft(y,J=>t(150,xe=J)),y),He,fe=Se,re=()=>(fe(),fe=Ft(v,J=>t(151,He=J)),v),nt,de=Se,lt=()=>(de(),de=Ft(E,J=>t(152,nt=J)),E),rt,dt=Se,vt=()=>(dt(),dt=Ft(b,J=>t(153,rt=J)),b),Tt,Ge=Se,zt=()=>(Ge(),Ge=Ft(w,J=>t(154,Tt=J)),w),Rt,kt=Se,si=()=>(kt(),kt=Ft(g,J=>t(155,Rt=J)),g),st,yt=Se,ke=()=>(yt(),yt=Ft(S,J=>t(156,st=J)),S),_t,wt=Se,Zt=()=>(wt(),wt=Ft(h,J=>t(157,_t=J)),h),Ct,Ut=Se,Kt=()=>(Ut(),Ut=Ft(p,J=>t(158,Ct=J)),p),Dt,Oi=Se,en=()=>(Oi(),Oi=Ft(f,J=>t(159,Dt=J)),f),Xt,Ei=Se,tn=()=>(Ei(),Ei=Ft(u,J=>t(160,Xt=J)),u),Fi,nn,Ai,Li,ai,ui,_i,hi,ii,gi,Hi,qt,bi,Mi,zi,ci,Mt,Ui,on,Nt,Ki,Wi,Wt;i.$$.on_destroy.push(()=>ie()),i.$$.on_destroy.push(()=>Xe()),i.$$.on_destroy.push(()=>ze()),i.$$.on_destroy.push(()=>he()),i.$$.on_destroy.push(()=>Fe()),i.$$.on_destroy.push(()=>Ke()),i.$$.on_destroy.push(()=>x()),i.$$.on_destroy.push(()=>fe()),i.$$.on_destroy.push(()=>de()),i.$$.on_destroy.push(()=>dt()),i.$$.on_destroy.push(()=>Ge()),i.$$.on_destroy.push(()=>kt()),i.$$.on_destroy.push(()=>yt()),i.$$.on_destroy.push(()=>wt()),i.$$.on_destroy.push(()=>Ut()),i.$$.on_destroy.push(()=>Oi()),i.$$.on_destroy.push(()=>Ei());let{bottomHidden:vi}=e,{bottomNoSmooth:fi}=e,{showControls:yi}=e,{controlsElementRef:jt=void 0}=e,{isAds:Ot=!1}=e,{canRewindLive:Jt}=e,{logoClickable:Vi}=e,{logoHidden:ni}=e,{logoTargetUrl:oi=""}=e,{showNextPrevButtons:xt}=e,{nextButtonActive:di}=e,{prevButtonActive:ji}=e,{isOneVideoPlaylist:dn=!1}=e,{supportLink:Gi}=e,{customFullscreenSupported:li=!0}=e,{playNextVideo:Gt}=e,{playPrevVideo:Qi}=e,{repeatPlaylist:At}=e,{toggleFullscreen:Bt}=e,{returnFocus:Yi}=e,{seekToInteractive:ki}=e,{toggleGraph:Ri}=e,{playPrevChapter:ln}=e,et=it(),mi=Bn(),$t=Vt(),Ue=et.actions.internal.toggleMuted,Zi=et.actions.internal.togglePlay,mn=et.actions.internal.pause,rn=et.actions.internal.toggleSubtitle,Bi=et.callbacks?.onAudioDoesNotExistHint,Xi=et.callbacks?.onAudioDisabledHint,sn=et.state.duration$;q(i,sn,J=>t(82,Wi=J));let wi=et.state.positionWithScrubbing$;q(i,wi,J=>t(80,Nt=J));let Qt=et.state.playbackState$;q(i,Qt,J=>t(161,Ai=J));let Ji=et.state.chromecastConnected$;q(i,Ji,J=>t(83,Wt=J));let Ci=et.state.isAudioAvailable$;q(i,Ci,J=>t(198,G=J));let kn=et.state.isAudioDisabled,pn=et.state.isEnded$;q(i,pn,J=>t(169,Mi=J));let an=et.state.isLive$;q(i,an,J=>t(33,hi=J));let _n=et.state.isActiveLive$;q(i,_n,J=>t(163,ui=J));let xi=et.state.isRewindableLive$;q(i,xi,J=>t(32,_i=J));let wn=et.ui.isPictureInPictureActive$;q(i,wn,J=>t(165,gi=J));let $i=et.ui.pictureInPictureType$;q(i,$i,J=>t(164,ii=J));let Si=et.ui.settingsMenuVisible;q(i,Si,J=>t(27,j=J));let Di=et.ui.settingsMenuOpenedByKeyboard;q(i,Di,J=>t(140,ae=J));let qi=et.ui.controls,En=et.actions.internal.getVideoEpisodes(),Cn=et.state.chromecastState$;q(i,Cn,J=>t(29,Fi=J));let Yt=et.state.availableSubtitlesList$;q(i,Yt,J=>t(168,bi=J));let An=et.state.currentSubtitle$;q(i,An,J=>t(170,zi=J));let Ln=qi.disabledControls$;q(i,Ln,J=>t(172,Mt=J));let Sn=et.ui.contextMenu.visible$;q(i,Sn,J=>t(162,Li=J));let hn=et.ui.contextMenu.showContextMenuBtn$;q(i,hn,J=>t(166,Hi=J));let un=et.ui.contextMenu.openedByBtnKeyboard$;q(i,un,J=>t(167,qt=J));let gn=et.ui.startedByKeyboard$;q(i,gn,J=>t(139,X=J));let oe=et.ads.duration;q(i,oe,J=>t(81,Ki=J));let ht=et.ads.position;q(i,ht,J=>t(79,on=J));let cn=et.ads.playbackState;q(i,cn,J=>t(171,ci=J));let fn=et.ui.isFullscreen;q(i,fn,J=>t(30,nn=J));let te=et.ui.playerSize;q(i,te,J=>t(142,Q=J));let mt=et.ui.currentGridType$;q(i,mt,J=>t(143,$=J));let ri=et.ui.additionalButtons$;q(i,ri,J=>t(28,W=J));let On=et.actions.internal.getVideoElement,Fn=et.actions.internal.replayInteractive,ee=et.state.isInteractive,$n=et.state.isInteractiveTime$;q(i,$n,J=>t(141,z=J));let gl=et.state.showInteractiveGraph,bl=et.state.showSeekToInteractive,vl=et.state.showPlayPrevChapter,yl=et.state.showInteractiveTimeIndicator,Ho=et.state.graphIsOpened$;q(i,Ho,J=>t(31,ai=J));let fo=et.state.playPrevChapterDisabledTooltip,mo=mi.seekToInteractiveDisabledTooltip$;q(i,mo,J=>t(78,Ui=J));let Yn=()=>et.actions.internal.toggleChromecast(),eo,to,zo,Uo,po,_o,Ko,ho,io,go,Z,Lt,Mn,Vn,Wo,bo,Hn,vo,yo,ko,Nl,gt="",T=(J,fs)=>{if(!J){t(50,gt=N("tooltip_live"));return}fs===Au.PAUSED&&t(50,gt=N("tooltip_play"))},se,Ie,Qe,ft,ei,Ye={},Pt,bn,jo,Ol,Fl=d3(Yr,260),Hl,zl,Ul;function Hp(){ro({isAudioDisabled:kn,audioDisabledHintCallback:Xi,isAudioAvailable:G,audioIsNotExistHintCallback:Bi})&&Ue()}let zp=ee?Fn:dn?Zi:At;function Up(J){i.$$.not_equal(Ye.timeline,J)&&(Ye.timeline=J,t(23,Ye))}function Kp(J){i.$$.not_equal(Ye.prevButton,J)&&(Ye.prevButton=J,t(23,Ye))}function Wp(J){i.$$.not_equal(Ye.replayButton,J)&&(Ye.replayButton=J,t(23,Ye))}function jp(J){Ul=J,t(26,Ul)}function Gp(J){i.$$.not_equal(Ye.playButton,J)&&(Ye.playButton=J,t(23,Ye))}function Qp(J){i.$$.not_equal(Ye.nextButton,J)&&(Ye.nextButton=J,t(23,Ye))}function Yp(J){i.$$.not_equal(Ye.playPrevChapterButton,J)&&(Ye.playPrevChapterButton=J,t(23,Ye))}function Zp(J){i.$$.not_equal(Ye.seekToInteractiveButton,J)&&(Ye.seekToInteractiveButton=J,t(23,Ye))}function Xp(J){i.$$.not_equal(Ye.interactiveGraphButton,J)&&(Ye.interactiveGraphButton=J,t(23,Ye))}function Jp(J){i.$$.not_equal(Ye.liveButton,J)&&(Ye.liveButton=J,t(23,Ye))}function xp(J){i.$$.not_equal(Ye.time,J)&&(Ye.time=J,t(23,Ye))}function $p(J){i.$$.not_equal(Ye.episodes,J)&&(Ye.episodes=J,t(23,Ye))}function e_(){ei=this.clientWidth,t(22,ei)}function t_(J){i.$$.not_equal(Ye.vkLogo,J)&&(Ye.vkLogo=J,t(23,Ye))}function i_(J){i.$$.not_equal(Ye.volume,J)&&(Ye.volume=J,t(23,Ye))}function n_(J){i.$$.not_equal(Ye.subtitles,J)&&(Ye.subtitles=J,t(23,Ye))}function o_(J){Hl=J,t(24,Hl)}function l_(J){zl=J,t(25,zl)}function r_(J){i.$$.not_equal(Ye.settings,J)&&(Ye.settings=J,t(23,Ye))}function s_(J){i.$$.not_equal(Ye.context,J)&&(Ye.context=J,t(23,Ye))}function a_(J){i.$$.not_equal(Ye.fullscreen,J)&&(Ye.fullscreen=J,t(23,Ye))}function u_(J){i.$$.not_equal(Ye.chromecast,J)&&(Ye.chromecast=J,t(23,Ye))}function c_(J){be[J?"unshift":"push"](()=>{Hn=J,t(46,Hn)})}function f_(J){be[J?"unshift":"push"](()=>{jt=J,t(0,jt)})}function d_(J){i.$$.not_equal(Ye.interactiveTimeIndicator,J)&&(Ye.interactiveTimeIndicator=J,t(23,Ye))}return i.$$set=J=>{"bottomHidden"in J&&t(1,vi=J.bottomHidden),"bottomNoSmooth"in J&&t(2,fi=J.bottomNoSmooth),"showControls"in J&&t(3,yi=J.showControls),"controlsElementRef"in J&&t(0,jt=J.controlsElementRef),"isAds"in J&&t(4,Ot=J.isAds),"canRewindLive"in J&&t(5,Jt=J.canRewindLive),"logoClickable"in J&&t(6,Vi=J.logoClickable),"logoHidden"in J&&t(129,ni=J.logoHidden),"logoTargetUrl"in J&&t(7,oi=J.logoTargetUrl),"showNextPrevButtons"in J&&t(130,xt=J.showNextPrevButtons),"nextButtonActive"in J&&t(8,di=J.nextButtonActive),"prevButtonActive"in J&&t(9,ji=J.prevButtonActive),"isOneVideoPlaylist"in J&&t(131,dn=J.isOneVideoPlaylist),"supportLink"in J&&t(10,Gi=J.supportLink),"customFullscreenSupported"in J&&t(132,li=J.customFullscreenSupported),"playNextVideo"in J&&t(11,Gt=J.playNextVideo),"playPrevVideo"in J&&t(12,Qi=J.playPrevVideo),"repeatPlaylist"in J&&t(133,At=J.repeatPlaylist),"toggleFullscreen"in J&&t(13,Bt=J.toggleFullscreen),"returnFocus"in J&&t(14,Yi=J.returnFocus),"seekToInteractive"in J&&t(15,ki=J.seekToInteractive),"toggleGraph"in J&&t(16,Ri=J.toggleGraph),"playPrevChapter"in J&&t(17,ln=J.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072&&t(138,n=Mt.has("EPISODE_BUTTON")),i.$$.dirty[5]&131072&&t(77,o=Mt.has("GRAPH_BUTTON")),i.$$.dirty[5]&131072&&t(76,l=Mt.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[5]&131072&&t(75,r=Mt.has("PLAY_BUTTON")),i.$$.dirty[5]&131072&&t(74,a=Mt.has("REPLAY_BUTTON")),i.$$.dirty[5]&131072&&t(73,s=Mt.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[0]&16|i.$$.dirty[5]&65600&&t(34,eo=Ot?ci==="playing":Ai===Au.PLAYING),i.$$.dirty[5]&32768&&t(18,to=zi.value!=="off"),i.$$.dirty[0]&16|i.$$.dirty[5]&16384&&t(35,zo=Mi&&!Ot||ee),i.$$.dirty[0]&16|i.$$.dirty[5]&16384&&t(36,Uo=!Mi||ee||Ot),i.$$.dirty[4]&524288&&t(134,po=Tn($,"m")),i.$$.dirty[0]&272|i.$$.dirty[4]&524352&&t(37,_o=xt&&Tn($,"m")&&!Ot&&di),i.$$.dirty[0]&528|i.$$.dirty[4]&524352&&t(38,Ko=xt&&Tn($,"m")&&!Ot&&ji),i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536&&t(39,ho=Fi!==dm.NOT_AVAILABLE&&!(gi&&ii===1)&&Tn($,"m")&&!ee),i.$$.dirty[4]&524288|i.$$.dirty[5]&8192&&t(40,io=bi.length>0&&Tn($,"m")),i.$$.dirty[5]&6144&&t(41,go=qt||Hi),i.$$.dirty[4]&524288&&t(42,Z=Tn($,"s")),i.$$.dirty[4]&32&&t(43,Lt=!ni),i.$$.dirty[4]&524576|i.$$.dirty[5]&1536&&t(44,Mn=$t.features.fullscreen&&(ni||Tn($,"s"))&&!(gi&&ii===1)&&(ee?li:!0)),i.$$.dirty[0]&16|i.$$.dirty[1]&4&&t(19,Vn=(!hi||Ot)&&!($t.features.interactiveHideTime&&ee)),i.$$.dirty[4]&262144&&t(45,Wo=Q.width>100),i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408&&t(20,bo=!Ot&&!hi&&!!En?.length&&po&&!n),i.$$.dirty[1]&2|i.$$.dirty[5]&256&&t(21,vo=!_i||ui),i.$$.dirty[5]&64&&t(47,yo=Ai===Au.PLAYING?N("tooltip_pause"):N("tooltip_play")),i.$$.dirty[1]&1&&t(48,ko=ai?N("tooltip_interactive_graph_on"):N("tooltip_interactive_graph_off")),i.$$.dirty[5]&128&&t(49,Nl=Li?N("aria_label_context_menu_close"):N("aria_label_context_menu_open")),i.$$.dirty[0]&2097152|i.$$.dirty[5]&64&&T(vo,Ai),i.$$.dirty[0]&262144&&t(52,Ie=to?N("tooltip_subtitles_on"):N("tooltip_subtitles_off")),i.$$.dirty[0]&1073741824&&t(53,Qe=nn?N("tooltip_fullscreen_on"):N("tooltip_fullscreen_off")),i.$$.dirty[0]&536870912&&t(54,ft=Fi===dm.CONNECTED?N("tooltip_chromecast_on"):N("tooltip_chromecast_off")),i.$$.dirty[0]&268435456|i.$$.dirty[4]&2146435072|i.$$.dirty[5]&63&&t(135,Pt={prevButton:Xt?Xt.right-Xt.left:0,replayButton:Dt?Dt.right-Dt.left:0,playButton:Ct?Ct.right-Ct.left:0,nextButton:_t?_t.right-_t.left:0,playPrevChapterButton:st?st.right-st.left:0,seekToInteractiveButton:Rt?Rt.right-Rt.left:0,interactiveGraphButton:Tt?Tt.right-Tt.left:0,liveButton:rt?rt.right-rt.left:0,time:nt?nt.right-nt.left:0,episodes:He?He.right-He.left:0,vkLogo:xe?xe.right-xe.left:0,volume:je?je.right-je.left:0,subtitles:we?we.right-we.left:0,settings:ce?ce.right-ce.left:0,context:Me?Me.right-Me.left:0,fullscreen:Ve?Ve.right-Ve.left:0,chromecast:Y?Y.right-Y.left:0,additionalButtons:W.length?W.reduce(J=>[...J,40],[]):[]}),i.$$.dirty[4]&6144&&(!bn||bn<Pt.time)&&t(136,bn=Pt.time),i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432){let J=0;bo&&(Tn($,"xl")?J=Pt.time:J=60);let fs=Pt.prevButton+Pt.playButton+Pt.nextButton+Pt.seekToInteractiveButton+Pt.interactiveGraphButton+Pt.liveButton+bn+J;t(137,jo=Vn&&ei>=fs)}i.$$.dirty[4]&532480&&t(55,Ol=jo&&Tn($,"m")),i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216&&Fl(On(),qi,Ye,yi),i.$$.dirty[0]&167772160&&ol(zl,j,Di),i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536&&Bo(Hl,j,ae),i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768&&Zr(gn,X,Ul)},t(51,se=$t.logoType==="vk_video"?N("tooltip_vk_video_logo"):N("tooltip_vk_logo")),tn(t(72,{prevButton:u,replayButton:f,playButton:p,nextButton:h,playPrevChapterButton:S,seekToInteractiveButton:g,interactiveGraphButton:w,liveButton:b,time:E,episodes:v,vkLogo:y,volume:I,subtitles:K,settings:B,context:O,fullscreen:ne,chromecast:ge}=qi,u,en(t(71,f)),Kt(t(70,p)),Zt(t(69,h)),ke(t(68,S)),si(t(67,g)),zt(t(66,w)),vt(t(65,b)),lt(t(64,E)),re(t(63,v)),qe(t(62,y)),Ze(t(61,I)),ct(t(60,K)),at(t(59,B)),$e(t(58,O)),Ce(t(57,ne)),le(t(56,ge)))),[jt,vi,fi,yi,Ot,Jt,Vi,oi,di,ji,Gi,Gt,Qi,Bt,Yi,ki,Ri,ln,to,Vn,bo,vo,ei,Ye,Hl,zl,Ul,j,W,Fi,nn,ai,_i,hi,eo,zo,Uo,_o,Ko,ho,io,go,Z,Lt,Mn,Wo,Hn,yo,ko,Nl,gt,se,Ie,Qe,ft,Ol,ge,ne,O,B,K,I,y,v,E,b,w,g,S,h,p,f,u,s,a,r,l,o,Ui,on,Nt,Ki,Wi,Wt,$t,Zi,mn,rn,sn,wi,Qt,Ji,Ci,pn,an,_n,xi,wn,$i,Si,Di,En,Cn,Yt,An,Ln,Sn,hn,un,gn,oe,ht,cn,fn,te,mt,ri,ee,$n,gl,bl,vl,yl,Ho,fo,mo,Yn,Hp,zp,ni,xt,dn,li,At,po,Pt,bn,jo,n,X,ae,z,Q,$,Y,Ve,Me,ce,we,je,xe,He,nt,rt,Tt,Rt,st,_t,Ct,Dt,Xt,Ai,Li,ui,ii,gi,Hi,qt,bi,Mi,zi,ci,Mt,Up,Kp,Wp,jp,Gp,Qp,Yp,Zp,Xp,Jp,xp,$p,e_,t_,i_,n_,o_,l_,r_,s_,a_,u_,c_,f_,d_]}var Lu=class extends H{constructor(e){super(),U(this,e,O3,N3,F,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:129,logoTargetUrl:7,showNextPrevButtons:130,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:131,supportLink:10,customFullscreenSupported:132,playNextVideo:11,playPrevVideo:12,repeatPlaylist:133,toggleFullscreen:13,returnFocus:14,seekToInteractive:15,toggleGraph:16,playPrevChapter:17},m3,[-1,-1,-1,-1,-1,-1,-1,-1])}},Em=Lu;import{ChromecastState as Bm,PlaybackState as Dm}from"@vkontakte/videoplayer-core";function F3(i){let e,t,n,o,l,r=i[2].default,a=Te(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=R("svg"),a&&a.c(),t=R("g"),n=R("path"),o=R("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(o,"d","M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"),c(t,"fill","none"),c(t,"fill-rule","evenodd"),ye(e,u)},m(f,p){C(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function H3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Vu=class extends H{constructor(e){super(),U(this,e,H3,F3,F,{})}},Am=Vu;import{noop as z3}from"@vkontakte/videoplayer-shared";function U3(i){Pe(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 Lm(i){let e;return{c(){e=P("span"),e.textContent=`${N("mobile_unmute")}`,c(e,"class","text svelte-6gmlbk")},m(t,n){C(t,e,n)},d(t){t&&k(e)}}}function K3(i){let e,t,n,o;var l=i[4];function r(s,u){return{}}l&&(t=vn(l,r(i)));let a=i[1]&&Lm(i);return{c(){e=P("div"),t&&V(t.$$.fragment),n=M(),a&&a.c(),c(e,"class","container svelte-6gmlbk"),c(e,"aria-hidden","true"),D(e,"expanded",i[1])},m(s,u){C(s,e,u),t&&A(t,e,null),m(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&l!==(l=s[4])){if(t){me();let f=t;_(f.$$.fragment,1,0,()=>{L(f,1)}),pe()}l?(t=vn(l,r(s,u)),V(t.$$.fragment),d(t.$$.fragment,1),A(t,e,n)):t=null}s[1]?a||(a=Lm(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&D(e,"expanded",s[1])},i(s){o||(t&&d(t.$$.fragment,s),o=!0)},o(s){t&&_(t.$$.fragment,s),o=!1},d(s){s&&k(e),t&&L(t),a&&a.d()}}}function W3(i){let e,t,n;function o(r){i[6](r)}let l={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[K3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.testId=r[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(s.click=r[2]),a&8&&(s.ariaLabel=r[3]),a&146&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function j3(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:l=z3}=e,{ref:r=void 0}=e,a,s;function u(f){r=f,t(0,r)}return i.$$set=f=>{"muted"in f&&t(5,n=f.muted),"expanded"in f&&t(1,o=f.expanded),"click"in f&&t(2,l=f.click),"ref"in f&&t(0,r=f.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,a=n?N("tooltip_volume"):N("tooltip_volume_muted")),i.$$.dirty&2&&t(4,s=o?Oo:Am)},[r,o,l,a,s,n,u]}var Ru=class extends H{constructor(e){super(),U(this,e,j3,W3,F,{muted:5,expanded:1,click:2,ref:0},U3)}},Bu=Ru;function G3(i){let e,t,n,o,l,r=i[2].default,a=Te(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=R("svg"),a&&a.c(),t=R("path"),n=R("path"),o=R("path"),c(t,"fill","currentColor"),c(t,"d","M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z"),c(t,"clip-rule","evenodd"),c(n,"fill","currentColor"),c(n,"d","m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z"),c(n,"class","hidden-not-active"),c(o,"fill","currentColor"),c(o,"d","m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z"),c(o,"class","hidden-active"),ye(e,u)},m(f,p){C(f,e,p),a&&a.m(e,null),m(e,t),m(e,n),m(e,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function Q3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Du=class extends H{constructor(e){super(),U(this,e,Q3,G3,F,{})}},Mm=Du;function Y3(i){Pe(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 Mm({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&2&&(l.style=n[1]),o&1&&(l["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function X3(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=l=>{"isActive"in l&&t(0,o=l.isActive)},i.$$.update=()=>{i.$$.dirty&1&&t(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var qu=class extends H{constructor(e){super(),U(this,e,X3,Z3,F,{isActive:0},Y3)}},Vm=qu;import{noop as J3}from"@vkontakte/videoplayer-shared";function x3(i){let e,t;return e=new Vm({props:{isActive:i[1]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function $3(i){let e,t,n;function o(r){i[3](r)}let l={testId:"btn-pip",ariaLabel:N("menu_pip"),click:i[2],$$slots:{default:[x3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&4&&(s.click=r[2]),a&18&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function e5(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:l=J3}=e;function r(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"isPictureInPictureActive"in a&&t(1,o=a.isPictureInPictureActive),"click"in a&&t(2,l=a.click)},[n,o,l,r]}var Nu=class extends H{constructor(e){super(),U(this,e,e5,$3,F,{ref:0,isPictureInPictureActive:1,click:2})}},Rm=Nu;import{debounceFn as t5}from"@vkontakte/videoplayer-shared";function i5(i){Pe(i,"svelte-17qsgob",".wrapper-bottom.svelte-17qsgob.svelte-17qsgob{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px}.wrapper-bottom.svelte-17qsgob>.svelte-17qsgob{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-17qsgob.svelte-17qsgob{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-17qsgob.svelte-17qsgob{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.svelte-17qsgob.svelte-17qsgob{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.svelte-17qsgob.svelte-17qsgob{position:absolute;top:4px;left:8px}.wrapper-middle-left.svelte-17qsgob.svelte-17qsgob,.wrapper-middle-left-second.svelte-17qsgob.svelte-17qsgob,.wrapper-middle-right.svelte-17qsgob.svelte-17qsgob{position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.wrapper-middle-left.svelte-17qsgob.svelte-17qsgob{left:12px}.wrapper-middle-left-second.svelte-17qsgob.svelte-17qsgob{left:64px}.wrapper-middle-right.svelte-17qsgob.svelte-17qsgob{right:12px}.controls.svelte-17qsgob.svelte-17qsgob{width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box}.controls.svelte-17qsgob > *:not(:first-child){margin-left:8px}.hidden.svelte-17qsgob.svelte-17qsgob{visibility:hidden;opacity:0}.controls-hidden.svelte-17qsgob.svelte-17qsgob{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-17qsgob.svelte-17qsgob{transition:none}.settings-mobile.svelte-17qsgob.svelte-17qsgob{position:absolute;z-index:var(--mobile-settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%}.overlay-mobile.svelte-17qsgob.svelte-17qsgob{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration)}@media screen and (orientation: portrait){.wrapper-top-right.fullscreen.svelte-17qsgob.svelte-17qsgob{top:16px}.wrapper-top-left.fullscreen.svelte-17qsgob.svelte-17qsgob{top:16px}.controls-wrapper.fullscreen.svelte-17qsgob.svelte-17qsgob{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-17qsgob.svelte-17qsgob{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-17qsgob.svelte-17qsgob{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-17qsgob.svelte-17qsgob{left:44px}.wrapper-middle-left-second.fullscreen.svelte-17qsgob.svelte-17qsgob{left:96px}.wrapper-middle-right.fullscreen.svelte-17qsgob.svelte-17qsgob{right:44px}.controls-wrapper.fullscreen.svelte-17qsgob.svelte-17qsgob{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function qm(i,e,t){let n=i.slice();return n[170]=e[t].iconUrl,n[171]=e[t].ariaLabel,n[172]=e[t].testId,n[173]=e[t].onClick,n[174]=e[t].tooltip,n}function Nm(i){let e,t,n,o,l,r,a,s,u,f,p,h,S,g,w,b,E,v=(!i[51]||i[53])&&Om(i),y=St(i[56]),I=[];for(let Q=0;Q<y.length;Q+=1)I[Q]=Fm(qm(i,y,Q));let K=Q=>_(I[Q],1,1,()=>{I[Q]=null}),B=i[36]&&Hm(i),O=i[37]&&zm(i),ne=i[57]&&Um(i),ge=i[39]&&Km(i),G=i[8]&&Wm(i),X=i[34]&&jm(i),ae=i[33]&&Gm(i),j=i[8]&&Qm(i),z=i[96]&&!i[29]&&Ym(i);return{c(){e=P("div"),t=M(),n=P("div"),v&&v.c(),o=M(),l=P("div");for(let Q=0;Q<I.length;Q+=1)I[Q].c();r=M(),B&&B.c(),a=M(),O&&O.c(),s=M(),ne&&ne.c(),u=M(),ge&&ge.c(),f=M(),p=P("div"),G&&G.c(),h=M(),X&&X.c(),S=M(),ae&&ae.c(),g=M(),j&&j.c(),w=M(),z&&z.c(),b=ut(),c(e,"class","overlay-mobile svelte-17qsgob"),D(e,"hidden",!i[42]),c(n,"class","wrapper-top-left svelte-17qsgob"),D(n,"hidden",!i[3]),D(n,"fullscreen",i[52]),c(l,"class","wrapper-top-right svelte-17qsgob"),D(l,"hidden",!i[3]&&!i[27]),D(l,"fullscreen",i[52]),c(p,"class","wrapper-middle svelte-17qsgob"),D(p,"hidden",!i[3]||i[29])},m(Q,$){C(Q,e,$),C(Q,t,$),C(Q,n,$),v&&v.m(n,null),C(Q,o,$),C(Q,l,$);for(let W=0;W<I.length;W+=1)I[W]&&I[W].m(l,null);m(l,r),B&&B.m(l,null),m(l,a),O&&O.m(l,null),m(l,s),ne&&ne.m(l,null),m(l,u),ge&&ge.m(l,null),C(Q,f,$),C(Q,p,$),G&&G.m(p,null),m(p,h),X&&X.m(p,null),m(p,S),ae&&ae.m(p,null),m(p,g),j&&j.m(p,null),C(Q,w,$),z&&z.m(Q,$),C(Q,b,$),E=!0},p(Q,$){if((!E||$[1]&2048)&&D(e,"hidden",!Q[42]),!Q[51]||Q[53]?v?(v.p(Q,$),$[1]&5242880&&d(v,1)):(v=Om(Q),v.c(),d(v,1),v.m(n,null)):v&&(me(),_(v,1,1,()=>{v=null}),pe()),(!E||$[0]&8)&&D(n,"hidden",!Q[3]),(!E||$[1]&2097152)&&D(n,"fullscreen",Q[52]),$[1]&33554432){y=St(Q[56]);let W;for(W=0;W<y.length;W+=1){let Y=qm(Q,y,W);I[W]?(I[W].p(Y,$),d(I[W],1)):(I[W]=Fm(Y),I[W].c(),d(I[W],1),I[W].m(l,r))}for(me(),W=y.length;W<I.length;W+=1)K(W);pe()}Q[36]?B?(B.p(Q,$),$[1]&32&&d(B,1)):(B=Hm(Q),B.c(),d(B,1),B.m(l,a)):B&&(me(),_(B,1,1,()=>{B=null}),pe()),Q[37]?O?(O.p(Q,$),$[1]&64&&d(O,1)):(O=zm(Q),O.c(),d(O,1),O.m(l,s)):O&&(me(),_(O,1,1,()=>{O=null}),pe()),Q[57]?ne?(ne.p(Q,$),$[1]&67108864&&d(ne,1)):(ne=Um(Q),ne.c(),d(ne,1),ne.m(l,u)):ne&&(me(),_(ne,1,1,()=>{ne=null}),pe()),Q[39]?ge?(ge.p(Q,$),$[1]&256&&d(ge,1)):(ge=Km(Q),ge.c(),d(ge,1),ge.m(l,null)):ge&&(me(),_(ge,1,1,()=>{ge=null}),pe()),(!E||$[0]&134217736)&&D(l,"hidden",!Q[3]&&!Q[27]),(!E||$[1]&2097152)&&D(l,"fullscreen",Q[52]),Q[8]?G?(G.p(Q,$),$[0]&256&&d(G,1)):(G=Wm(Q),G.c(),d(G,1),G.m(p,h)):G&&(me(),_(G,1,1,()=>{G=null}),pe()),Q[34]?X?(X.p(Q,$),$[1]&8&&d(X,1)):(X=jm(Q),X.c(),d(X,1),X.m(p,S)):X&&(me(),_(X,1,1,()=>{X=null}),pe()),Q[33]?ae?(ae.p(Q,$),$[1]&4&&d(ae,1)):(ae=Gm(Q),ae.c(),d(ae,1),ae.m(p,g)):ae&&(me(),_(ae,1,1,()=>{ae=null}),pe()),Q[8]?j?(j.p(Q,$),$[0]&256&&d(j,1)):(j=Qm(Q),j.c(),d(j,1),j.m(p,null)):j&&(me(),_(j,1,1,()=>{j=null}),pe()),(!E||$[0]&536870920)&&D(p,"hidden",!Q[3]||Q[29]),Q[96]&&!Q[29]?z?(z.p(Q,$),$[0]&536870912&&d(z,1)):(z=Ym(Q),z.c(),d(z,1),z.m(b.parentNode,b)):z&&(me(),_(z,1,1,()=>{z=null}),pe())},i(Q){if(!E){d(v);for(let $=0;$<y.length;$+=1)d(I[$]);d(B),d(O),d(ne),d(ge),d(G),d(X),d(ae),d(j),d(z),E=!0}},o(Q){_(v),I=I.filter(Boolean);for(let $=0;$<I.length;$+=1)_(I[$]);_(B),_(O),_(ne),_(ge),_(G),_(X),_(ae),_(j),_(z),E=!1},d(Q){Q&&(k(e),k(t),k(n),k(o),k(l),k(f),k(p),k(w),k(b)),v&&v.d(),Ii(I,Q),B&&B.d(),O&&O.d(),ne&&ne.d(),ge&&ge.d(),G&&G.d(),X&&X.d(),ae&&ae.d(),j&&j.d(),z&&z.d(Q)}}}function Om(i){let e,t,n;function o(r){i[130](r)}let l={muted:i[54],expanded:i[51]&&!i[70]&&i[55],click:i[106]};return i[20].volume!==void 0&&(l.ref=i[20].volume),e=new Bu({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&8388608&&(s.muted=r[54]),a[1]&17825792&&(s.expanded=r[51]&&!r[70]&&r[55]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].volume,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Fm(i){let e,t;return e=new Ur({props:{iconUrl:i[170],ariaLabel:i[171]??i[174],testId:i[172],onClick:i[173]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[1]&33554432&&(l.iconUrl=n[170]),o[1]&33554432&&(l.ariaLabel=n[171]??n[174]),o[1]&33554432&&(l.testId=n[172]),o[1]&33554432&&(l.onClick=n[173]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Hm(i){let e,t,n;function o(r){i[131](r)}let l={isMobile:!0,click:i[104],state:i[28]};return i[20].chromecast!==void 0&&(l.ref=i[20].chromecast),e=new Vr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&268435456&&(s.state=r[28]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].chromecast,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function zm(i){let e,t,n;function o(r){i[132](r)}let l={click:i[105],isPictureInPictureActive:i[26]};return i[20].pip!==void 0&&(l.ref=i[20].pip),e=new Rm({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&67108864&&(s.isPictureInPictureActive=r[26]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].pip,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Um(i){let e,t,n;function o(r){i[133](r)}let l={};return i[22]!==void 0&&(l.ref=i[22]),e=new Il({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=r[22],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Km(i){let e,t,n;function o(r){i[134](r)}let l={click:i[64],targetUrl:i[7],logoClickable:i[6]};return i[20].vkLogo!==void 0&&(l.ref=i[20].vkLogo),e=new Mr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&128&&(s.targetUrl=r[7]),a[0]&64&&(s.logoClickable=r[6]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].vkLogo,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Wm(i){let e,t,n;function o(r){i[135](r)}let l={click:i[13],type:"prev",disabled:!i[10],isMobile:!0};return i[20].prevButton!==void 0&&(l.ref=i[20].prevButton),e=new dl({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&8192&&(s.click=r[13]),a[0]&1024&&(s.disabled=!r[10]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].prevButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function jm(i){let e,t,n;function o(r){i[136](r)}let l={disabled:i[49],click:i[63],isMobile:!0,isPlaying:i[31]};return i[20].playButton!==void 0&&(l.ref=i[20].playButton),e=new El({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&262144&&(s.disabled=r[49]),a[1]&1&&(s.isPlaying=r[31]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].playButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Gm(i){let e,t,n;function o(r){i[137](r)}let l={disabled:i[48],click:i[107],isMobile:!0};return i[20].replayButton!==void 0&&(l.ref=i[20].replayButton),e=new Al({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.disabled=r[48]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].replayButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Qm(i){let e,t,n;function o(r){i[138](r)}let l={click:i[12],type:"next",disabled:!i[9],isMobile:!0};return i[20].nextButton!==void 0&&(l.ref=i[20].nextButton),e=new dl({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&4096&&(s.click=r[12]),a[0]&512&&(s.disabled=!r[9]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].nextButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Ym(i){let e,t,n,o,l=i[100]&&n5(i),r=i[98]&&o5(i),a=i[99]&&l5(i);return{c(){l&&l.c(),e=M(),r&&r.c(),t=M(),a&&a.c(),n=ut()},m(s,u){l&&l.m(s,u),C(s,e,u),r&&r.m(s,u),C(s,t,u),a&&a.m(s,u),C(s,n,u),o=!0},p(s,u){s[100]&&l.p(s,u),s[98]&&r.p(s,u),s[99]&&a.p(s,u)},i(s){o||(d(l),d(r),d(a),o=!0)},o(s){_(l),_(r),_(a),o=!1},d(s){s&&(k(e),k(t),k(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function n5(i){let e,t,n,o,l,r;function a(u){i[139](u)}let s={hidden:!i[3],disabled:i[47],click:i[18]};return i[20].playPrevChapterButton!==void 0&&(s.ref=i[20].playPrevChapterButton),t=new zr({props:s}),be.push(()=>Oe(t,"ref",a)),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","wrapper-middle-left svelte-17qsgob"),D(e,"fullscreen",i[52]),D(e,"hidden",!i[3])},m(u,f){C(u,e,f),A(t,e,null),o=!0,l||(r=_e(e,"click",i[108]),l=!0)},p(u,f){let p={};f[0]&8&&(p.hidden=!u[3]),f[1]&65536&&(p.disabled=u[47]),f[0]&262144&&(p.click=u[18]),!n&&f[0]&1048576&&(n=!0,p.ref=u[20].playPrevChapterButton,Ne(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&D(e,"fullscreen",u[52]),(!o||f[0]&8)&&D(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&k(e),L(t),l=!1,r()}}}function o5(i){let e,t,n,o,l;function r(s){i[140](s)}let a={hidden:!i[3]&&!i[58],disabled:i[50],click:i[17],graphIsOpened:i[58]};return i[20].interactiveGraphButton!==void 0&&(a.ref=i[20].interactiveGraphButton),t=new Fr({props:a}),be.push(()=>Oe(t,"ref",r)),{c(){e=P("div"),V(t.$$.fragment),c(e,"class",o=Ec(i[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-17qsgob"),D(e,"fullscreen",i[52]),D(e,"hidden",!i[3]&&!i[58])},m(s,u){C(s,e,u),A(t,e,null),l=!0},p(s,u){let f={};u[0]&8|u[1]&134217728&&(f.hidden=!s[3]&&!s[58]),u[1]&524288&&(f.disabled=s[50]),u[0]&131072&&(f.click=s[17]),u[1]&134217728&&(f.graphIsOpened=s[58]),!n&&u[0]&1048576&&(n=!0,f.ref=s[20].interactiveGraphButton,Ne(()=>n=!1)),t.$set(f),(!l||u[1]&2097152)&&D(e,"fullscreen",s[52]),(!l||u[0]&8|u[1]&134217728)&&D(e,"hidden",!s[3]&&!s[58])},i(s){l||(d(t.$$.fragment,s),l=!0)},o(s){_(t.$$.fragment,s),l=!1},d(s){s&&k(e),L(t)}}}function l5(i){let e,t,n,o,l,r;function a(u){i[141](u)}let s={hidden:!i[3],disabled:i[46],click:i[16]};return i[20].seekToInteractiveButton!==void 0&&(s.ref=i[20].seekToInteractiveButton),t=new Or({props:s}),be.push(()=>Oe(t,"ref",a)),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","wrapper-middle-right svelte-17qsgob"),D(e,"fullscreen",i[52]),D(e,"hidden",!i[3])},m(u,f){C(u,e,f),A(t,e,null),o=!0,l||(r=_e(e,"click",i[109]),l=!0)},p(u,f){let p={};f[0]&8&&(p.hidden=!u[3]),f[1]&32768&&(p.disabled=u[46]),f[0]&65536&&(p.click=u[16]),!n&&f[0]&1048576&&(n=!0,p.ref=u[20].seekToInteractiveButton,Ne(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&D(e,"fullscreen",u[52]),(!o||f[0]&8)&&D(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&k(e),L(t),l=!1,r()}}}function Zm(i){let e,t,n,o,l,r=i[53]&&Xm(i),a=i[32]&&Jm(i);return o=new Dr({props:{position:i[59],duration:i[60]}}),{c(){r&&r.c(),e=M(),a&&a.c(),t=M(),n=P("div"),V(o.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile svelte-17qsgob"),D(n,"fullscreen",i[52])},m(s,u){r&&r.m(s,u),C(s,e,u),a&&a.m(s,u),C(s,t,u),C(s,n,u),A(o,n,null),l=!0},p(s,u){s[53]?r?(r.p(s,u),u[1]&4194304&&d(r,1)):(r=Xm(s),r.c(),d(r,1),r.m(e.parentNode,e)):r&&(me(),_(r,1,1,()=>{r=null}),pe()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=Jm(s),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(me(),_(a,1,1,()=>{a=null}),pe());let f={};u[1]&268435456&&(f.position=s[59]),u[1]&536870912&&(f.duration=s[60]),o.$set(f),(!l||u[1]&2097152)&&D(n,"fullscreen",s[52])},i(s){l||(d(r),d(a),d(o.$$.fragment,s),l=!0)},o(s){_(r),_(a),_(o.$$.fragment,s),l=!1},d(s){s&&(k(e),k(t),k(n)),r&&r.d(s),a&&a.d(s),L(o)}}}function Xm(i){let e,t,n,o;function l(a){i[142](a)}let r={muted:i[54],expanded:!1,click:i[106]};return i[20].volume!==void 0&&(r.ref=i[20].volume),t=new Bu({props:r}),be.push(()=>Oe(t,"ref",l)),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","wrapper-top-right svelte-17qsgob"),D(e,"fullscreen",i[52])},m(a,s){C(a,e,s),A(t,e,null),o=!0},p(a,s){let u={};s[1]&8388608&&(u.muted=a[54]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].volume,Ne(()=>n=!1)),t.$set(u),(!o||s[1]&2097152)&&D(e,"fullscreen",a[52])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),L(t)}}}function Jm(i){let e,t,n,o;function l(a){i[143](a)}let r={disabled:i[49],click:i[63],isMobile:!0,isPlaying:!i[32]};return i[20].playButton!==void 0&&(r.ref=i[20].playButton),t=new El({props:r}),be.push(()=>Oe(t,"ref",l)),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","wrapper-middle svelte-17qsgob")},m(a,s){C(a,e,s),A(t,e,null),o=!0},p(a,s){let u={};s[1]&262144&&(u.disabled=a[49]),s[1]&2&&(u.isPlaying=!a[32]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].playButton,Ne(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),L(t)}}}function r5(i){let e,t,n;function o(r){i[144](r)}let l={disabled:i[48],$$slots:{default:[s5]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(l.ref=i[20].replayButton),e=new Et({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.disabled=r[48]),a[1]&131072|a[5]&4194304&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].replayButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function s5(i){let e,t;return e=new Al({props:{disabled:i[48],click:i[95]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[1]&131072&&(l.disabled=n[48]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function xm(i){let e,t,n;function o(r){i[145](r)}let l={$$slots:{default:[a5]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(l.ref=i[20].liveButton),e=new Et({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&524288|a[1]&16384|a[5]&4194304&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].liveButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function a5(i){let e,t;return e=new Rr({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&524288&&(l.isActiveLive=n[19]),o[1]&16384&&(l.ariaLabel=n[45]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function $m(i){let e,t,n;function o(r){i[146](r)}let l={showDuration:i[35],position:i[4]?i[59]:i[61],duration:i[4]?i[60]:i[62],isMobile:!0};return i[20].time!==void 0&&(l.ref=i[20].time),e=new Pr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&16&&(s.showDuration=r[35]),a[0]&16|a[1]&1342177280&&(s.position=r[4]?r[59]:r[61]),a[0]&16|a[1]&536870912|a[2]&1&&(s.duration=r[4]?r[60]:r[62]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].time,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function e0(i){let e,t,n,o;return n=new Nr({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=P("div"),e.textContent="\xB7",t=M(),V(n.$$.fragment),c(e,"aria-hidden","true")},m(l,r){C(l,e,r),C(l,t,r),A(n,l,r),o=!0},p(l,r){let a={};r[1]&1073741824&&(a.position=l[61]),r[2]&1&&(a.duration=l[62]),n.$set(a)},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){_(n.$$.fragment,l),o=!1},d(l){l&&(k(e),k(t)),L(n,l)}}}function u5(i){let e,t,n=i[43]&&e0(i);return{c(){n&&n.c(),e=ut()},m(o,l){n&&n.m(o,l),C(o,e,l),t=!0},p(o,l){o[43]?n?(n.p(o,l),l[1]&4096&&d(n,1)):(n=e0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(me(),_(n,1,1,()=>{n=null}),pe())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function t0(i){let e,t,n;function o(r){i[149](r)}let l={$$slots:{default:[c5]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(l.ref=i[20].settings),e=new Et({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&4194304|a[5]&4194304&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].settings,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function c5(i){let e,t,n;function o(r){i[148](r)}let l={};return i[22]!==void 0&&(l.ref=i[22]),e=new Il({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=r[22],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function i0(i){let e,t,n;function o(r){i[150](r)}let l={$$slots:{default:[f5]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(l.ref=i[20].fullscreen),e=new Et({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&16384|a[1]&2097152|a[5]&4194304&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].fullscreen,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function f5(i){let e,t;return e=new Ar({props:{click:i[14],isFullscreen:i[52]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&16384&&(l.click=n[14]),o[1]&2097152&&(l.isFullscreen=n[52]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function n0(i){let e,t,n,o;function l(a){i[154](a)}let r={supportLink:i[11],returnFocus:i[15]};return i[21]!==void 0&&(r.ref=i[21]),t=new Sr({props:r}),be.push(()=>Oe(t,"ref",l)),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","settings-mobile svelte-17qsgob")},m(a,s){C(a,e,s),A(t,e,null),o=!0},p(a,s){let u={};s[0]&2048&&(u.supportLink=a[11]),s[0]&32768&&(u.returnFocus=a[15]),!n&&s[0]&2097152&&(n=!0,u.ref=a[21],Ne(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),L(t)}}}function d5(i){let e,t,n;function o(r){i[155](r)}let l={};return i[20].interactiveTimeIndicator!==void 0&&(l.ref=i[20].interactiveTimeIndicator),e=new Xr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&1048576&&(t=!0,s.ref=r[20].interactiveTimeIndicator,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function m5(i){let e,t,n,o,l,r,a,s,u,f,p,h,S,g,w,b,E,v,y,I=!i[4]&&Nm(i),K=i[4]&&i[30]!=="inactive"&&Zm(i),B=i[96]&&r5(i),O=!i[4]&&i[25]&&xm(i),ne=i[41]&&$m(i);function ge(W){i[147](W)}let G={className:"w-max",disabled:!i[43],$$slots:{default:[u5]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(G.ref=i[20].episodes),u=new Et({props:G}),be.push(()=>Oe(u,"ref",ge));let X=i[38]&&t0(i),ae=i[40]&&i0(i);function j(W){i[152](W)}let z={isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]};i[20].timeline!==void 0&&(z.ref=i[20].timeline),g=new qr({props:z}),be.push(()=>Oe(g,"ref",j));let Q=i[23]&&n0(i),$=i[101]&&d5(i);return{c(){I&&I.c(),e=M(),K&&K.c(),t=M(),n=P("div"),o=P("div"),l=P("div"),B&&B.c(),r=M(),O&&O.c(),a=M(),ne&&ne.c(),s=M(),V(u.$$.fragment),p=M(),X&&X.c(),h=M(),ae&&ae.c(),S=M(),V(g.$$.fragment),b=M(),Q&&Q.c(),E=M(),$&&$.c(),v=ut(),c(l,"class","controls svelte-17qsgob"),D(l,"mobile",!0),c(o,"class","controls-wrapper svelte-17qsgob"),D(o,"fullscreen",i[52]),c(n,"class","wrapper-bottom svelte-17qsgob"),D(n,"hidden",i[1]),D(n,"controls-hidden",!i[3]),D(n,"no-smooth",i[2]),D(n,"mobile",!0)},m(W,Y){I&&I.m(W,Y),C(W,e,Y),K&&K.m(W,Y),C(W,t,Y),C(W,n,Y),m(n,o),m(o,l),B&&B.m(l,null),m(l,r),O&&O.m(l,null),m(l,a),ne&&ne.m(l,null),m(l,s),A(u,l,null),m(l,p),X&&X.m(l,null),m(l,h),ae&&ae.m(l,null),i[151](l),m(o,S),A(g,o,null),i[153](n),C(W,b,Y),Q&&Q.m(W,Y),C(W,E,Y),$&&$.m(W,Y),C(W,v,Y),y=!0},p(W,Y){W[4]?I&&(me(),_(I,1,1,()=>{I=null}),pe()):I?(I.p(W,Y),Y[0]&16&&d(I,1)):(I=Nm(W),I.c(),d(I,1),I.m(e.parentNode,e)),W[4]&&W[30]!=="inactive"?K?(K.p(W,Y),Y[0]&1073741840&&d(K,1)):(K=Zm(W),K.c(),d(K,1),K.m(t.parentNode,t)):K&&(me(),_(K,1,1,()=>{K=null}),pe()),W[96]&&B.p(W,Y),!W[4]&&W[25]?O?(O.p(W,Y),Y[0]&33554448&&d(O,1)):(O=xm(W),O.c(),d(O,1),O.m(l,a)):O&&(me(),_(O,1,1,()=>{O=null}),pe()),W[41]?ne?(ne.p(W,Y),Y[1]&1024&&d(ne,1)):(ne=$m(W),ne.c(),d(ne,1),ne.m(l,s)):ne&&(me(),_(ne,1,1,()=>{ne=null}),pe());let ie={};Y[1]&4096&&(ie.disabled=!W[43]),Y[1]&1073745920|Y[2]&1|Y[5]&4194304&&(ie.$$scope={dirty:Y,ctx:W}),!f&&Y[0]&1048576&&(f=!0,ie.ref=W[20].episodes,Ne(()=>f=!1)),u.$set(ie),W[38]?X?(X.p(W,Y),Y[1]&128&&d(X,1)):(X=t0(W),X.c(),d(X,1),X.m(l,h)):X&&(me(),_(X,1,1,()=>{X=null}),pe()),W[40]?ae?(ae.p(W,Y),Y[1]&512&&d(ae,1)):(ae=i0(W),ae.c(),d(ae,1),ae.m(l,null)):ae&&(me(),_(ae,1,1,()=>{ae=null}),pe());let le={};Y[0]&16&&(le.isAds=W[4]),Y[0]&32&&(le.canRewindLive=W[5]),Y[0]&16777216&&(le.isRewindableLive=W[24]),!w&&Y[0]&1048576&&(w=!0,le.ref=W[20].timeline,Ne(()=>w=!1)),g.$set(le),(!y||Y[1]&2097152)&&D(o,"fullscreen",W[52]),(!y||Y[0]&2)&&D(n,"hidden",W[1]),(!y||Y[0]&8)&&D(n,"controls-hidden",!W[3]),(!y||Y[0]&4)&&D(n,"no-smooth",W[2]),W[23]?Q?(Q.p(W,Y),Y[0]&8388608&&d(Q,1)):(Q=n0(W),Q.c(),d(Q,1),Q.m(E.parentNode,E)):Q&&(me(),_(Q,1,1,()=>{Q=null}),pe()),W[101]&&$.p(W,Y)},i(W){y||(d(I),d(K),d(B),d(O),d(ne),d(u.$$.fragment,W),d(X),d(ae),d(g.$$.fragment,W),d(Q),d($),y=!0)},o(W){_(I),_(K),_(B),_(O),_(ne),_(u.$$.fragment,W),_(X),_(ae),_(g.$$.fragment,W),_(Q),_($),y=!1},d(W){W&&(k(e),k(t),k(n),k(b),k(E),k(v)),I&&I.d(W),K&&K.d(W),B&&B.d(),O&&O.d(),ne&&ne.d(),L(u),X&&X.d(),ae&&ae.d(),i[151](null),L(g),i[153](null),Q&&Q.d(W),$&&$.d(W)}}}function p5(i,e,t){let n,o,l,r,a,s,u,f,p,h,S,g,w,b,E,v,y,I,K,B,O,ne,ge,G,X,ae,j,z,Q,$,W,Y,ie,le,Ve,Xe,Ce,{bottomHidden:Me}=e,{bottomNoSmooth:ze}=e,{showControls:$e}=e,{controlsElementRef:ce=void 0}=e,{isAds:he=!1}=e,{canRewindLive:at}=e,{logoClickable:we}=e,{logoHidden:Fe}=e,{logoTargetUrl:ct=""}=e,{showNextPrevButtons:je}=e,{nextButtonActive:Ke}=e,{prevButtonActive:Ze}=e,{isOneVideoPlaylist:xe=!1}=e,{supportLink:x}=e,{customFullscreenSupported:qe=!0}=e,{playNextVideo:He}=e,{playPrevVideo:fe}=e,{repeatPlaylist:re}=e,{toggleFullscreen:nt}=e,{returnFocus:de}=e,{seekToInteractive:lt}=e,{toggleGraph:rt}=e,{playPrevChapter:dt}=e,{onDisabledPlayPrevChapterClick:vt}=e,{onDisabledSeekToInteractiveClick:Tt}=e,Ge=it(),zt=Bn(),Rt=Vt(),kt=Ge.actions.internal.toggleMuted,si=Ge.actions.internal.togglePlay,st=Ge.actions.internal.pause,yt=Ge.callbacks?.onAudioDoesNotExistHint,ke=Ge.callbacks?.onAudioDisabledHint,_t=Ge.playerPhase;q(i,_t,ee=>t(126,O=ee));let wt=Ge.state.duration$;q(i,wt,ee=>t(62,Ce=ee));let Zt=Ge.state.positionWithScrubbing$;q(i,Zt,ee=>t(61,Xe=ee));let Ct=Ge.state.playbackState$;q(i,Ct,ee=>t(121,h=ee));let Ut=Ge.state.isAudioAvailable$;q(i,Ut,ee=>t(51,S=ee));let Kt=Ge.state.isAudioDisabled,Dt=Ge.state.isEnded$;q(i,Dt,ee=>t(127,ge=ee));let Oi=Ge.state.isLive$;q(i,Oi,ee=>t(25,v=ee));let en=Ge.state.muted$;q(i,en,ee=>t(54,Q=ee));let Xt=Ge.state.isActiveLive$;q(i,Xt,ee=>t(124,b=ee));let Ei=Ge.state.isRewindableLive$;q(i,Ei,ee=>t(24,E=ee));let tn=Ge.ui.scrubbingInProgress;q(i,tn,ee=>t(29,ne=ee));let Fi=Ge.ui.mobileNotReportControlHidden$;q(i,Fi,ee=>t(27,K=ee));let nn=Ge.ui.isPictureInPictureActive$;q(i,nn,ee=>t(26,I=ee));let Ai=Ge.ui.pictureInPictureType$;q(i,Ai,ee=>t(125,y=ee));let Li=Ge.ui.mobileUnmuteButtonExpanded;q(i,Li,ee=>t(55,$=ee));let ai=Ge.ui.mobileUnmuteButtonVisible;q(i,ai,ee=>t(53,z=ee));let ui=Ge.ui.settingsMenuVisible;q(i,ui,ee=>t(23,p=ee));let _i=Ge.ui.settingsMenuOpenedByKeyboard;q(i,_i,ee=>t(120,f=ee));let hi=Ge.ui.controls,ii=Ge.actions.internal.getVideoEpisodes(),gi=Ge.webApi.pictureInPictureApi,Hi=Ge.state.chromecastState$;q(i,Hi,ee=>t(28,B=ee));let qt=Ge.state.crashed$;q(i,qt,ee=>t(57,Y=ee));let bi=hi.disabledControls$;q(i,bi,ee=>t(128,X=ee));let Mi=Ge.ui.startedByKeyboard$;q(i,Mi,ee=>t(119,u=ee));let zi=Ge.ads.duration;q(i,zi,ee=>t(60,Ve=ee));let ci=Ge.ads.position;q(i,ci,ee=>t(59,le=ee));let Mt=Ge.ads.playbackState;q(i,Mt,ee=>t(30,G=ee));let Ui=Ge.ui.isFullscreen;q(i,Ui,ee=>t(52,j=ee));let on=Ge.ui.playerSize;q(i,on,ee=>t(123,w=ee));let Nt=Ge.ui.additionalButtons$;q(i,Nt,ee=>t(56,W=ee));let Ki=Ge.actions.internal.getVideoElement,Wi=Ge.actions.internal.replayInteractive,Wt=Ge.state.isInteractive,vi=Ge.state.isInteractiveTime$;q(i,vi,ee=>t(122,g=ee));let fi=Ge.state.showInteractiveGraph,yi=Ge.state.showSeekToInteractive,jt=Ge.state.showPlayPrevChapter,Ot=Ge.state.showInteractiveTimeIndicator,Jt=Ge.state.graphIsOpened$;q(i,Jt,ee=>t(58,ie=ee));let Vi=zt.seekToInteractiveDisabledTooltip$;q(i,Vi,ee=>t(129,ae=ee));let ni,oi,xt,di,ji,dn,Gi,li,Gt,Qi,At,Bt,Yi,ki,Ri,ln,et,mi,$t,Ue={},Zi=t5(Yr,260),mn=()=>Ge.actions.internal.toggleChromecast();function rn(){ro({isAudioDisabled:Kt,audioDisabledHintCallback:ke,isAudioAvailable:S,audioIsNotExistHintCallback:yt})&&kt()}async function Bi(){gi?.isActive()?await gi?.remove():await gi?.request()}function Xi(){!Kt&&S&&ai.set(!1),rn()}let sn=xe?si:re,wi="",Qt=(ee,$n)=>{if(!ee){t(45,wi=N("tooltip_live"));return}$n===Dm.PAUSED&&t(45,wi=N("tooltip_play"))},Ji,Ci,kn=()=>{s&&vt(ni)},pn=()=>{l&&Tt(oi)};function an(ee){i.$$.not_equal(Ue.volume,ee)&&(Ue.volume=ee,t(20,Ue))}function _n(ee){i.$$.not_equal(Ue.chromecast,ee)&&(Ue.chromecast=ee,t(20,Ue))}function xi(ee){i.$$.not_equal(Ue.pip,ee)&&(Ue.pip=ee,t(20,Ue))}function wn(ee){Ci=ee,t(22,Ci)}function $i(ee){i.$$.not_equal(Ue.vkLogo,ee)&&(Ue.vkLogo=ee,t(20,Ue))}function Si(ee){i.$$.not_equal(Ue.prevButton,ee)&&(Ue.prevButton=ee,t(20,Ue))}function Di(ee){i.$$.not_equal(Ue.playButton,ee)&&(Ue.playButton=ee,t(20,Ue))}function qi(ee){i.$$.not_equal(Ue.replayButton,ee)&&(Ue.replayButton=ee,t(20,Ue))}function En(ee){i.$$.not_equal(Ue.nextButton,ee)&&(Ue.nextButton=ee,t(20,Ue))}function Cn(ee){i.$$.not_equal(Ue.playPrevChapterButton,ee)&&(Ue.playPrevChapterButton=ee,t(20,Ue))}function Yt(ee){i.$$.not_equal(Ue.interactiveGraphButton,ee)&&(Ue.interactiveGraphButton=ee,t(20,Ue))}function An(ee){i.$$.not_equal(Ue.seekToInteractiveButton,ee)&&(Ue.seekToInteractiveButton=ee,t(20,Ue))}function Ln(ee){i.$$.not_equal(Ue.volume,ee)&&(Ue.volume=ee,t(20,Ue))}function Sn(ee){i.$$.not_equal(Ue.playButton,ee)&&(Ue.playButton=ee,t(20,Ue))}function hn(ee){i.$$.not_equal(Ue.replayButton,ee)&&(Ue.replayButton=ee,t(20,Ue))}function un(ee){i.$$.not_equal(Ue.liveButton,ee)&&(Ue.liveButton=ee,t(20,Ue))}function gn(ee){i.$$.not_equal(Ue.time,ee)&&(Ue.time=ee,t(20,Ue))}function oe(ee){i.$$.not_equal(Ue.episodes,ee)&&(Ue.episodes=ee,t(20,Ue))}function ht(ee){Ci=ee,t(22,Ci)}function cn(ee){i.$$.not_equal(Ue.settings,ee)&&(Ue.settings=ee,t(20,Ue))}function fn(ee){i.$$.not_equal(Ue.fullscreen,ee)&&(Ue.fullscreen=ee,t(20,Ue))}function te(ee){be[ee?"unshift":"push"](()=>{mi=ee,t(44,mi)})}function mt(ee){i.$$.not_equal(Ue.timeline,ee)&&(Ue.timeline=ee,t(20,Ue))}function ri(ee){be[ee?"unshift":"push"](()=>{ce=ee,t(0,ce)})}function On(ee){Ji=ee,t(21,Ji)}function Fn(ee){i.$$.not_equal(Ue.interactiveTimeIndicator,ee)&&(Ue.interactiveTimeIndicator=ee,t(20,Ue))}return i.$$set=ee=>{"bottomHidden"in ee&&t(1,Me=ee.bottomHidden),"bottomNoSmooth"in ee&&t(2,ze=ee.bottomNoSmooth),"showControls"in ee&&t(3,$e=ee.showControls),"controlsElementRef"in ee&&t(0,ce=ee.controlsElementRef),"isAds"in ee&&t(4,he=ee.isAds),"canRewindLive"in ee&&t(5,at=ee.canRewindLive),"logoClickable"in ee&&t(6,we=ee.logoClickable),"logoHidden"in ee&&t(110,Fe=ee.logoHidden),"logoTargetUrl"in ee&&t(7,ct=ee.logoTargetUrl),"showNextPrevButtons"in ee&&t(8,je=ee.showNextPrevButtons),"nextButtonActive"in ee&&t(9,Ke=ee.nextButtonActive),"prevButtonActive"in ee&&t(10,Ze=ee.prevButtonActive),"isOneVideoPlaylist"in ee&&t(111,xe=ee.isOneVideoPlaylist),"supportLink"in ee&&t(11,x=ee.supportLink),"customFullscreenSupported"in ee&&t(112,qe=ee.customFullscreenSupported),"playNextVideo"in ee&&t(12,He=ee.playNextVideo),"playPrevVideo"in ee&&t(13,fe=ee.playPrevVideo),"repeatPlaylist"in ee&&t(113,re=ee.repeatPlaylist),"toggleFullscreen"in ee&&t(14,nt=ee.toggleFullscreen),"returnFocus"in ee&&t(15,de=ee.returnFocus),"seekToInteractive"in ee&&t(16,lt=ee.seekToInteractive),"toggleGraph"in ee&&t(17,rt=ee.toggleGraph),"playPrevChapter"in ee&&t(18,dt=ee.playPrevChapter),"onDisabledPlayPrevChapterClick"in ee&&t(114,vt=ee.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ee&&t(115,Tt=ee.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32&&(oi=N(ae)),i.$$.dirty[4]&16&&t(118,n=X.has("EPISODE_BUTTON")),i.$$.dirty[4]&16&&t(50,o=X.has("GRAPH_BUTTON")),i.$$.dirty[4]&16&&t(46,l=X.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[4]&16&&t(49,r=X.has("PLAY_BUTTON")),i.$$.dirty[4]&16&&t(48,a=X.has("REPLAY_BUTTON")),i.$$.dirty[4]&16&&t(47,s=X.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[3]&268435456&&t(31,xt=h===Dm.PLAYING),i.$$.dirty[0]&1073741824&&t(32,di=G==="paused"),i.$$.dirty[0]&16|i.$$.dirty[4]&8&&t(33,ji=ge&&!he&&!Wt),i.$$.dirty[0]&16|i.$$.dirty[4]&8&&t(34,dn=!ge||he),i.$$.dirty[3]&1073741824&&t(116,Gi=w.width>300),i.$$.dirty[3]&1073741824&&t(35,li=w.width>400),i.$$.dirty[0]&536870912&&t(117,Gt=ne),i.$$.dirty[0]&469762048|i.$$.dirty[4]&2&&t(36,Qi=B!==Bm.NOT_AVAILABLE&&!(I&&y===1)&&!K&&!Wt),i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6){let ee=O==="LiveWaitingStart";t(37,At=!!gi&&B!==Bm.CONNECTED&&!K&&(y===1&&ee||!ee)&&!Gt&&!Wt)}i.$$.dirty[3]&16777216&&t(38,Bt=!Gt),i.$$.dirty[3]&1073872896&&t(39,Yi=!Fe&&w.width>350),i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2&&t(40,ki=Rt.features.fullscreen&&!(I&&y===1)&&(Wt?qe:!0)&&!Gt),i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040&&t(41,Ri=(!v||he)&&w.width>260&&!Gt&&!(Rt.features.interactiveHideTime&&Wt)),i.$$.dirty[0]&8388616&&t(42,ln=p||$e),i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256&&t(43,et=!he&&!v&&!!ii?.length&&Gi&&!n&&!Gt),i.$$.dirty[0]&16777216|i.$$.dirty[4]&1&&t(19,$t=!E||b),i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736&&Zi(Ki(),hi,Ue,$e),i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456&&Qt($t,h),i.$$.dirty[0]&12582912&&ol(Ci,p,_i),i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728&&Bo(Ji,p,f),i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864&&Zr(Mi,u,Ue.playButton)},ni=N(Ge.state.playPrevChapterDisabledTooltip),[ce,Me,ze,$e,he,at,we,ct,je,Ke,Ze,x,He,fe,nt,de,lt,rt,dt,$t,Ue,Ji,Ci,p,E,v,I,K,B,ne,G,xt,di,ji,dn,li,Qi,At,Bt,Yi,ki,Ri,ln,et,mi,wi,l,s,a,r,o,S,j,z,Q,$,W,Y,ie,le,Ve,Xe,Ce,si,st,_t,wt,Zt,Ct,Ut,Kt,Dt,Oi,en,Xt,Ei,tn,Fi,nn,Ai,Li,ai,ui,_i,ii,Hi,qt,bi,Mi,zi,ci,Mt,Ui,on,Nt,Wi,Wt,vi,fi,yi,jt,Ot,Jt,Vi,mn,Bi,Xi,sn,kn,pn,Fe,xe,qe,re,vt,Tt,Gi,Gt,n,u,f,h,g,w,b,y,O,ge,X,ae,an,_n,xi,wn,$i,Si,Di,qi,En,Cn,Yt,An,Ln,Sn,hn,un,gn,oe,ht,cn,fn,te,mt,ri,On,Fn]}var Ou=class extends H{constructor(e){super(),U(this,e,p5,m5,F,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:110,logoTargetUrl:7,showNextPrevButtons:8,nextButtonActive:9,prevButtonActive:10,isOneVideoPlaylist:111,supportLink:11,customFullscreenSupported:112,playNextVideo:12,playPrevVideo:13,repeatPlaylist:113,toggleFullscreen:14,returnFocus:15,seekToInteractive:16,toggleGraph:17,playPrevChapter:18,onDisabledPlayPrevChapterClick:114,onDisabledSeekToInteractiveClick:115},i5,[-1,-1,-1,-1,-1,-1])}},o0=Ou;function _5(i){let e,t,n;function o(r){i[28](r)}let l={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22]};return i[0]!==void 0&&(l.controlsElementRef=i[0]),e=new Em({props:l}),be.push(()=>Oe(e,"controlsElementRef",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a&2&&(s.bottomHidden=r[1]),a&4&&(s.bottomNoSmooth=r[2]),a&8&&(s.showControls=r[3]),a&16&&(s.isAds=r[4]),a&32&&(s.canRewindLive=r[5]),a&64&&(s.logoClickable=r[6]),a&128&&(s.logoHidden=r[7]),a&256&&(s.logoTargetUrl=r[8]),a&512&&(s.showNextPrevButtons=r[9]),a&1024&&(s.nextButtonActive=r[10]),a&2048&&(s.prevButtonActive=r[11]),a&4096&&(s.isOneVideoPlaylist=r[12]),a&8192&&(s.supportLink=r[13]),a&16384&&(s.customFullscreenSupported=r[14]),a&32768&&(s.playNextVideo=r[15]),a&65536&&(s.playPrevVideo=r[16]),a&131072&&(s.repeatPlaylist=r[17]),a&262144&&(s.toggleFullscreen=r[18]),a&524288&&(s.returnFocus=r[19]),a&1048576&&(s.seekToInteractive=r[20]),a&2097152&&(s.toggleGraph=r[21]),a&4194304&&(s.playPrevChapter=r[22]),!t&&a&1&&(t=!0,s.controlsElementRef=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function h5(i){let e,t,n;function o(r){i[27](r)}let l={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22],onDisabledPlayPrevChapterClick:i[23],onDisabledSeekToInteractiveClick:i[24]};return i[0]!==void 0&&(l.controlsElementRef=i[0]),e=new o0({props:l}),be.push(()=>Oe(e,"controlsElementRef",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a&2&&(s.bottomHidden=r[1]),a&4&&(s.bottomNoSmooth=r[2]),a&8&&(s.showControls=r[3]),a&16&&(s.isAds=r[4]),a&32&&(s.canRewindLive=r[5]),a&64&&(s.logoClickable=r[6]),a&128&&(s.logoHidden=r[7]),a&256&&(s.logoTargetUrl=r[8]),a&512&&(s.showNextPrevButtons=r[9]),a&1024&&(s.nextButtonActive=r[10]),a&2048&&(s.prevButtonActive=r[11]),a&4096&&(s.isOneVideoPlaylist=r[12]),a&8192&&(s.supportLink=r[13]),a&16384&&(s.customFullscreenSupported=r[14]),a&32768&&(s.playNextVideo=r[15]),a&65536&&(s.playPrevVideo=r[16]),a&131072&&(s.repeatPlaylist=r[17]),a&262144&&(s.toggleFullscreen=r[18]),a&524288&&(s.returnFocus=r[19]),a&1048576&&(s.seekToInteractive=r[20]),a&2097152&&(s.toggleGraph=r[21]),a&4194304&&(s.playPrevChapter=r[22]),a&8388608&&(s.onDisabledPlayPrevChapterClick=r[23]),a&16777216&&(s.onDisabledSeekToInteractiveClick=r[24]),!t&&a&1&&(t=!0,s.controlsElementRef=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function g5(i){let e,t,n,o,l=[h5,_5],r=[];function a(s,u){return s[25]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ut()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),r[e].d(s)}}}function b5(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:l=!1}=e,{showControls:r}=e,{controlsElementRef:a=void 0}=e,{isAds:s=!1}=e,{canRewindLive:u}=e,{logoClickable:f}=e,{logoHidden:p}=e,{logoTargetUrl:h=""}=e,{showNextPrevButtons:S}=e,{nextButtonActive:g}=e,{prevButtonActive:w}=e,{isOneVideoPlaylist:b=!1}=e,{supportLink:E}=e,{customFullscreenSupported:v=!0}=e,{playNextVideo:y}=e,{playPrevVideo:I}=e,{repeatPlaylist:K}=e,{toggleFullscreen:B}=e,{returnFocus:O=Fu}=e,{seekToInteractive:ne}=e,{toggleGraph:ge}=e,{playPrevChapter:G}=e,{onDisabledPlayPrevChapterClick:X=Fu}=e,{onDisabledSeekToInteractiveClick:ae=Fu}=e,z=it().ui.isMobile;q(i,z,W=>t(25,n=W));function Q(W){a=W,t(0,a)}function $(W){a=W,t(0,a)}return i.$$set=W=>{"bottomHidden"in W&&t(1,o=W.bottomHidden),"bottomNoSmooth"in W&&t(2,l=W.bottomNoSmooth),"showControls"in W&&t(3,r=W.showControls),"controlsElementRef"in W&&t(0,a=W.controlsElementRef),"isAds"in W&&t(4,s=W.isAds),"canRewindLive"in W&&t(5,u=W.canRewindLive),"logoClickable"in W&&t(6,f=W.logoClickable),"logoHidden"in W&&t(7,p=W.logoHidden),"logoTargetUrl"in W&&t(8,h=W.logoTargetUrl),"showNextPrevButtons"in W&&t(9,S=W.showNextPrevButtons),"nextButtonActive"in W&&t(10,g=W.nextButtonActive),"prevButtonActive"in W&&t(11,w=W.prevButtonActive),"isOneVideoPlaylist"in W&&t(12,b=W.isOneVideoPlaylist),"supportLink"in W&&t(13,E=W.supportLink),"customFullscreenSupported"in W&&t(14,v=W.customFullscreenSupported),"playNextVideo"in W&&t(15,y=W.playNextVideo),"playPrevVideo"in W&&t(16,I=W.playPrevVideo),"repeatPlaylist"in W&&t(17,K=W.repeatPlaylist),"toggleFullscreen"in W&&t(18,B=W.toggleFullscreen),"returnFocus"in W&&t(19,O=W.returnFocus),"seekToInteractive"in W&&t(20,ne=W.seekToInteractive),"toggleGraph"in W&&t(21,ge=W.toggleGraph),"playPrevChapter"in W&&t(22,G=W.playPrevChapter),"onDisabledPlayPrevChapterClick"in W&&t(23,X=W.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in W&&t(24,ae=W.onDisabledSeekToInteractiveClick)},[a,o,l,r,s,u,f,p,h,S,g,w,b,E,v,y,I,K,B,O,ne,ge,G,X,ae,n,z,Q,$]}var Hu=class extends H{constructor(e){super(),U(this,e,b5,g5,F,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:7,logoTargetUrl:8,showNextPrevButtons:9,nextButtonActive:10,prevButtonActive:11,isOneVideoPlaylist:12,supportLink:13,customFullscreenSupported:14,playNextVideo:15,playPrevVideo:16,repeatPlaylist:17,toggleFullscreen:18,returnFocus:19,seekToInteractive:20,toggleGraph:21,playPrevChapter:22,onDisabledPlayPrevChapterClick:23,onDisabledSeekToInteractiveClick:24})}},Jr=Hu;function v5(i){let e,t,n,o,l,r,a,s,u,f,p,h,S,g,w=i[2].default,b=Te(w,i,i[1],null),E=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],v={};for(let y=0;y<E.length;y+=1)v=ue(v,E[y]);return{c(){e=R("svg"),b&&b.c(),t=R("g"),n=R("path"),o=R("path"),l=R("defs"),r=R("filter"),a=R("feFlood"),s=R("feColorMatrix"),u=R("feOffset"),f=R("feGaussianBlur"),p=R("feColorMatrix"),h=R("feBlend"),S=R("feBlend"),c(n,"fill","#fff"),c(n,"d","M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2260_100684"),c(S,"in","SourceGraphic"),c(S,"in2","effect1_dropShadow_2260_100684"),c(S,"result","shape"),c(r,"id","a"),c(r,"width","43.996"),c(r,"height","49.5"),c(r,"x","2.5"),c(r,"y","0"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ye(e,v)},m(y,I){C(y,e,I),b&&b.m(e,null),m(e,t),m(t,n),m(t,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,S),g=!0},p(y,[I]){b&&b.p&&(!g||I&2)&&Ae(b,w,y,y[1],g?Ee(w,y[1],I,null):Le(y[1]),null),ye(e,v=Be(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},I&1&&y[0]]))},i(y){g||(d(b,y),g=!0)},o(y){_(b,y),g=!1},d(y){y&&k(e),b&&b.d(y)}}}function y5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var zu=class extends H{constructor(e){super(),U(this,e,y5,v5,F,{})}},l0=zu;function k5(i){let e,t;return e=new l0({props:{style:i[0]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function w5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Uu=class extends H{constructor(e){super(),U(this,e,w5,k5,F,{reversed:1})}},r0=Uu;function C5(i){let e,t,n,o,l,r,a,s,u,f,p,h,S,g,w,b,E=i[2].default,v=Te(E,i,i[1],null),y=[{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]],I={};for(let K=0;K<y.length;K+=1)I=ue(I,y[K]);return{c(){e=R("svg"),v&&v.c(),t=R("g"),n=R("path"),o=R("path"),l=R("defs"),r=R("clipPath"),a=R("path"),s=R("filter"),u=R("feFlood"),f=R("feColorMatrix"),p=R("feOffset"),h=R("feGaussianBlur"),S=R("feColorMatrix"),g=R("feBlend"),w=R("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(n,"d","M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22"),c(n,"clip-rule","evenodd"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"),c(t,"clip-path","url(#c)"),c(t,"filter","url(#a)"),c(a,"fill","#fff"),c(a,"d","M0 0h48v48H0z"),c(r,"id","c"),c(u,"flood-opacity","0"),c(u,"result","BackgroundImageFix"),c(f,"in","SourceAlpha"),c(f,"result","hardAlpha"),c(f,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(h,"stdDeviation","2.5"),c(S,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2260_104204"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2260_104204"),c(w,"result","shape"),c(s,"id","a"),c(s,"width","51"),c(s,"height","45"),c(s,"x","-1.5"),c(s,"y","1.5"),c(s,"color-interpolation-filters","sRGB"),c(s,"filterUnits","userSpaceOnUse"),ye(e,I)},m(K,B){C(K,e,B),v&&v.m(e,null),m(e,t),m(t,n),m(t,o),m(e,l),m(l,r),m(r,a),m(l,s),m(s,u),m(s,f),m(s,p),m(s,h),m(s,S),m(s,g),m(s,w),b=!0},p(K,[B]){v&&v.p&&(!b||B&2)&&Ae(v,E,K,K[1],b?Ee(E,K[1],B,null):Le(K[1]),null),ye(e,I=Be(y,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},B&1&&K[0]]))},i(K){b||(d(v,K),b=!0)},o(K){_(v,K),b=!1},d(K){K&&k(e),v&&v.d(K)}}}function S5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ku=class extends H{constructor(e){super(),U(this,e,S5,C5,F,{})}},s0=Ku;function P5(i){let e,t,n,o,l,r,a,s,u,f,p,h,S,g,w,b,E,v=i[2].default,y=Te(v,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},i[0]],K={};for(let B=0;B<I.length;B+=1)K=ue(K,I[B]);return{c(){e=R("svg"),y&&y.c(),t=R("g"),n=R("path"),o=R("path"),l=R("path"),r=R("defs"),a=R("clipPath"),s=R("path"),u=R("filter"),f=R("feFlood"),p=R("feColorMatrix"),h=R("feOffset"),S=R("feGaussianBlur"),g=R("feColorMatrix"),w=R("feBlend"),b=R("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(n,"d","M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(o,"d","M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"),c(l,"stroke","#000"),c(l,"stroke-opacity",".12"),c(l,"stroke-width",".5"),c(l,"d","M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"),c(t,"clip-path","url(#c)"),c(t,"filter","url(#a)"),c(s,"fill","#fff"),c(s,"d","M0 0h48v48H0z"),c(a,"id","c"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(p,"in","SourceAlpha"),c(p,"result","hardAlpha"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(S,"stdDeviation","2.5"),c(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(w,"in2","BackgroundImageFix"),c(w,"result","effect1_dropShadow_2260_104293"),c(b,"in","SourceGraphic"),c(b,"in2","effect1_dropShadow_2260_104293"),c(b,"result","shape"),c(u,"id","a"),c(u,"width","51"),c(u,"height","51"),c(u,"x","-1.5"),c(u,"y","-1.5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),ye(e,K)},m(B,O){C(B,e,O),y&&y.m(e,null),m(e,t),m(t,n),m(t,o),m(t,l),m(e,r),m(r,a),m(a,s),m(r,u),m(u,f),m(u,p),m(u,h),m(u,S),m(u,g),m(u,w),m(u,b),E=!0},p(B,[O]){y&&y.p&&(!E||O&2)&&Ae(y,v,B,B[1],E?Ee(v,B[1],O,null):Le(B[1]),null),ye(e,K=Be(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},O&1&&B[0]]))},i(B){E||(d(y,B),E=!0)},o(B){_(y,B),E=!1},d(B){B&&k(e),y&&y.d(B)}}}function I5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Wu=class extends H{constructor(e){super(),U(this,e,I5,P5,F,{})}},a0=Wu;function T5(i){let e,t;return e=new s0({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function E5(i){let e,t;return e=new a0({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function A5(i){let e,t,n,o,l=[E5,T5],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ut()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),t=r[e],t||(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),r[e].d(s)}}}function L5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var ju=class extends H{constructor(e){super(),U(this,e,L5,A5,F,{isOff:0})}},Gu=ju;function M5(i){let e,t,n,o,l,r,a,s,u,f,p,h,S,g,w=i[2].default,b=Te(w,i,i[1],null),E=[{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]],v={};for(let y=0;y<E.length;y+=1)v=ue(v,E[y]);return{c(){e=R("svg"),b&&b.c(),t=R("g"),n=R("path"),o=R("path"),l=R("defs"),r=R("filter"),a=R("feFlood"),s=R("feColorMatrix"),u=R("feOffset"),f=R("feGaussianBlur"),p=R("feColorMatrix"),h=R("feBlend"),S=R("feBlend"),c(n,"fill","#fff"),c(n,"d","M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2260_106627"),c(S,"in","SourceGraphic"),c(S,"in2","effect1_dropShadow_2260_106627"),c(S,"result","shape"),c(r,"id","a"),c(r,"width","40.098"),c(r,"height","27.785"),c(r,"x","3.402"),c(r,"y","10.105"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ye(e,v)},m(y,I){C(y,e,I),b&&b.m(e,null),m(e,t),m(t,n),m(t,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,S),g=!0},p(y,[I]){b&&b.p&&(!g||I&2)&&Ae(b,w,y,y[1],g?Ee(w,y[1],I,null):Le(y[1]),null),ye(e,v=Be(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},I&1&&y[0]]))},i(y){g||(d(b,y),g=!0)},o(y){_(b,y),g=!1},d(y){y&&k(e),b&&b.d(y)}}}function V5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Qu=class extends H{constructor(e){super(),U(this,e,V5,M5,F,{})}},u0=Qu;function R5(i){let e,t;return e=new u0({props:{style:i[0]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function B5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Yu=class extends H{constructor(e){super(),U(this,e,B5,R5,F,{reversed:1})}},c0=Yu;function D5(i){let e,t,n,o,l,r,a,s,u,f,p,h,S,g,w=i[2].default,b=Te(w,i,i[1],null),E=[{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]],v={};for(let y=0;y<E.length;y+=1)v=ue(v,E[y]);return{c(){e=R("svg"),b&&b.c(),t=R("g"),n=R("path"),o=R("path"),l=R("defs"),r=R("filter"),a=R("feFlood"),s=R("feColorMatrix"),u=R("feOffset"),f=R("feGaussianBlur"),p=R("feColorMatrix"),h=R("feBlend"),S=R("feBlend"),c(n,"fill","#fff"),c(n,"d","M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2340_106922"),c(S,"in","SourceGraphic"),c(S,"in2","effect1_dropShadow_2340_106922"),c(S,"result","shape"),c(r,"id","a"),c(r,"width","37"),c(r,"height","37"),c(r,"x","5.5"),c(r,"y","5.5"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ye(e,v)},m(y,I){C(y,e,I),b&&b.m(e,null),m(e,t),m(t,n),m(t,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,S),g=!0},p(y,[I]){b&&b.p&&(!g||I&2)&&Ae(b,w,y,y[1],g?Ee(w,y[1],I,null):Le(y[1]),null),ye(e,v=Be(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},I&1&&y[0]]))},i(y){g||(d(b,y),g=!0)},o(y){_(b,y),g=!1},d(y){y&&k(e),b&&b.d(y)}}}function q5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Zu=class extends H{constructor(e){super(),U(this,e,q5,D5,F,{})}},f0=Zu;function N5(i){let e,t;return e=new f0({props:{style:i[0]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function O5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Xu=class extends H{constructor(e){super(),U(this,e,O5,N5,F,{reversed:1})}},d0=Xu;function F5(i){Pe(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 m0(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,l,r,a,s,u=["RATE_DOWN","RATE_UP"].includes(i[4]),f,p=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),h,S,g,w,b,E=t&&p0(i),v=i[4]==="PAUSE"&&_0(i),y=i[4]==="PLAY"&&h0(i),I=i[4]==="REPLAY"&&g0(i),K=i[4]==="SUBTITLES_OFF"&&b0(i),B=i[4]==="SUBTITLES_ON"&&v0(i),O=u&&y0(i),ne=p&&k0(i),ge=i[4]==="MUTE"&&w0(i),G=i[4]==="VOLUME"&&C0(i),X=i[5]&&S0(i);return{c(){e=P("div"),E&&E.c(),n=M(),v&&v.c(),o=M(),y&&y.c(),l=M(),I&&I.c(),r=M(),K&&K.c(),a=M(),B&&B.c(),s=M(),O&&O.c(),f=M(),ne&&ne.c(),h=M(),ge&&ge.c(),S=M(),G&&G.c(),g=M(),X&&X.c(),w=ut(),c(e,"class","svelte-1ad3n06")},m(ae,j){C(ae,e,j),E&&E.m(e,null),m(e,n),v&&v.m(e,null),m(e,o),y&&y.m(e,null),m(e,l),I&&I.m(e,null),m(e,r),K&&K.m(e,null),m(e,a),B&&B.m(e,null),m(e,s),O&&O.m(e,null),m(e,f),ne&&ne.m(e,null),m(e,h),ge&&ge.m(e,null),m(e,S),G&&G.m(e,null),C(ae,g,j),X&&X.m(ae,j),C(ae,w,j),b=!0},p(ae,j){j&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(ae[4])),t?E?(E.p(ae,j),j&16&&d(E,1)):(E=p0(ae),E.c(),d(E,1),E.m(e,n)):E&&(me(),_(E,1,1,()=>{E=null}),pe()),ae[4]==="PAUSE"?v?j&16&&d(v,1):(v=_0(ae),v.c(),d(v,1),v.m(e,o)):v&&(me(),_(v,1,1,()=>{v=null}),pe()),ae[4]==="PLAY"?y?j&16&&d(y,1):(y=h0(ae),y.c(),d(y,1),y.m(e,l)):y&&(me(),_(y,1,1,()=>{y=null}),pe()),ae[4]==="REPLAY"?I?j&16&&d(I,1):(I=g0(ae),I.c(),d(I,1),I.m(e,r)):I&&(me(),_(I,1,1,()=>{I=null}),pe()),ae[4]==="SUBTITLES_OFF"?K?j&16&&d(K,1):(K=b0(ae),K.c(),d(K,1),K.m(e,a)):K&&(me(),_(K,1,1,()=>{K=null}),pe()),ae[4]==="SUBTITLES_ON"?B?j&16&&d(B,1):(B=v0(ae),B.c(),d(B,1),B.m(e,s)):B&&(me(),_(B,1,1,()=>{B=null}),pe()),j&16&&(u=["RATE_DOWN","RATE_UP"].includes(ae[4])),u?O?(O.p(ae,j),j&16&&d(O,1)):(O=y0(ae),O.c(),d(O,1),O.m(e,f)):O&&(me(),_(O,1,1,()=>{O=null}),pe()),j&16&&(p=["EPISODE_PREV","EPISODE_NEXT"].includes(ae[4])),p?ne?(ne.p(ae,j),j&16&&d(ne,1)):(ne=k0(ae),ne.c(),d(ne,1),ne.m(e,h)):ne&&(me(),_(ne,1,1,()=>{ne=null}),pe()),ae[4]==="MUTE"?ge?j&16&&d(ge,1):(ge=w0(ae),ge.c(),d(ge,1),ge.m(e,S)):ge&&(me(),_(ge,1,1,()=>{ge=null}),pe()),ae[4]==="VOLUME"?G?j&16&&d(G,1):(G=C0(ae),G.c(),d(G,1),G.m(e,null)):G&&(me(),_(G,1,1,()=>{G=null}),pe()),ae[5]?X?X.p(ae,j):(X=S0(ae),X.c(),X.m(w.parentNode,w)):X&&(X.d(1),X=null)},i(ae){b||(d(E),d(v),d(y),d(I),d(K),d(B),d(O),d(ne),d(ge),d(G),b=!0)},o(ae){_(E),_(v),_(y),_(I),_(K),_(B),_(O),_(ne),_(ge),_(G),b=!1},d(ae){ae&&(k(e),k(g),k(w)),E&&E.d(),v&&v.d(),y&&y.d(),I&&I.d(),K&&K.d(),B&&B.d(),O&&O.d(),ne&&ne.d(),ge&&ge.d(),G&&G.d(),X&&X.d(ae)}}}function p0(i){let e,t;return e=new r0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="FORWARD_SEEK"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function _0(i){let e,t;return e=new Lr({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function h0(i){let e,t;return e=new fl({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function g0(i){let e,t;return e=new Hr({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function b0(i){let e,t;return e=new Gu({props:{isOff:!0}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function v0(i){let e,t;return e=new Gu({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function y0(i){let e,t;return e=new c0({props:{reversed:i[4]==="RATE_UP"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="RATE_UP"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function k0(i){let e,t;return e=new d0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="EPISODE_NEXT"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function w0(i){let e,t;return e=new Oo({props:{volume:0}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function C0(i){let e,t;return e=new Oo({props:{volume:1}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function S0(i){let e,t;return{c(){e=P("span"),t=Re(i[5]),c(e,"class","hot-key-helpers-text svelte-1ad3n06")},m(n,o){C(n,e,o),m(e,t)},p(n,o){o&32&&We(t,n[5])},d(n){n&&k(e)}}}function H5(i){let e,t,n=!i[1]&&i[4]&&m0(i);return{c(){e=P("div"),n&&n.c(),c(e,"class","hot-key-helpers-container svelte-1ad3n06"),D(e,"hidden",i[1]),D(e,"hot-key-helpers-container--left",i[2]),D(e,"hot-key-helpers-container--right",i[3])},m(o,l){C(o,e,l),n&&n.m(e,null),t=!0},p(o,[l]){!o[1]&&o[4]?n?(n.p(o,l),l&18&&d(n,1)):(n=m0(o),n.c(),d(n,1),n.m(e,null)):n&&(me(),_(n,1,1,()=>{n=null}),pe()),(!t||l&2)&&D(e,"hidden",o[1]),(!t||l&4)&&D(e,"hot-key-helpers-container--left",o[2]),(!t||l&8)&&D(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d()}}}function z5(i,e,t){let n,o=Se,l=()=>(o(),o=Ft(r,h=>t(6,n=h)),r);i.$$.on_destroy.push(()=>o());let{data:r}=e;l();let a,s,u,f,p;return i.$$set=h=>{"data"in h&&l(t(0,r=h.data))},i.$$.update=()=>{i.$$.dirty&64&&(t(1,a=!n),t(2,s=n?.type==="BACKWARD_SEEK"),t(3,u=n?.type==="FORWARD_SEEK"),t(4,f=n?.type),n?.t?t(5,p=N(n.t.key,{value:n.t.value||""})):t(5,p=n?.text))},[r,a,s,u,f,p,n]}var Ju=class extends H{constructor(e){super(),U(this,e,z5,H5,F,{data:0},F5)}},P0=Ju;function U5(i){Pe(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 K5(i){let e,t,n,o,l,r,a,s,u,f,p,h,S,g,w,b,E,v,y;return l=new Wn({props:{direction:"up"}}),s=new Wn({props:{direction:"up"}}),h=new Wn({props:{direction:"up"}}),w=new Wn({props:{direction:"up"}}),{c(){e=P("div"),t=P("div"),n=P("div"),o=P("div"),V(l.$$.fragment),r=M(),a=P("div"),V(s.$$.fragment),u=M(),f=P("div"),p=P("div"),V(h.$$.fragment),S=M(),g=P("div"),V(w.$$.fragment),c(o,"class","button button-up svelte-1yzc86r"),c(a,"class","button button-right svelte-1yzc86r"),c(n,"class","button-row svelte-1yzc86r"),c(p,"class","button button-left svelte-1yzc86r"),c(g,"class","button button-down svelte-1yzc86r"),c(f,"class","button-row svelte-1yzc86r"),c(t,"class","button-block svelte-1yzc86r"),c(t,"aria-hidden","true"),c(e,"class","immersive-controls svelte-1yzc86r"),c(e,"tabindex","0"),c(e,"role","button"),c(e,"aria-label",b=N("aria_label_spherical_control")),D(e,"m-shifted",i[0])},m(I,K){C(I,e,K),m(e,t),m(t,n),m(n,o),A(l,o,null),m(n,r),m(n,a),A(s,a,null),m(t,u),m(t,f),m(f,p),A(h,p,null),m(f,S),m(f,g),A(w,g,null),E=!0,v||(y=[_e(o,"mousedown",i[1]),_e(o,"mouseup",i[5]),_e(o,"mouseleave",i[5]),_e(a,"mousedown",i[3]),_e(a,"mouseup",i[5]),_e(a,"mouseleave",i[5]),_e(p,"mousedown",i[4]),_e(p,"mouseup",i[5]),_e(p,"mouseleave",i[5]),_e(g,"mousedown",i[2]),_e(g,"mouseup",i[5]),_e(g,"mouseleave",i[5]),_e(e,"keydown",i[6]),_e(e,"keyup",i[7])],v=!0)},p(I,[K]){(!E||K&1)&&D(e,"m-shifted",I[0])},i(I){E||(d(l.$$.fragment,I),d(s.$$.fragment,I),d(h.$$.fragment,I),d(w.$$.fragment,I),E=!0)},o(I){_(l.$$.fragment,I),_(s.$$.fragment,I),_(h.$$.fragment,I),_(w.$$.fragment,I),E=!1},d(I){I&&k(e),L(l),L(s),L(h),L(w),v=!1,tt(y)}}}function W5(i,e,t){let{isShifted:n=!1}=e,o=it(),l=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),r=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},s=()=>{o.actions.internal.startCameraManualRotation(1,0)},u=()=>{o.actions.internal.startCameraManualRotation(-1,0)},f=()=>(o.actions.internal.stopCameraManualRotation(),null),p=S=>{if(l.has(S.code))switch(S.preventDefault(),S.stopPropagation(),S.code){case"ArrowUp":r();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},h=S=>{l.has(S.code)&&(S.preventDefault(),S.stopPropagation(),f())};return i.$$set=S=>{"isShifted"in S&&t(0,n=S.isShifted)},[n,r,a,s,u,f,p,h]}var xu=class extends H{constructor(e){super(),U(this,e,W5,K5,F,{isShifted:0},U5)}},xr=xu;function j5(i){Pe(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 T0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function E0(i){let e,t;function n(r,a){return r[7]&&r[8]?Y5:r[5]?Q5:G5}let o=n(i,-1),l=o(i);return{c(){e=P("div"),t=P("span"),l.c(),c(t,"class","caption svelte-ovfyp5"),c(e,"class","subtitles-caption svelte-ovfyp5"),D(e,"mobile",i[3])},m(r,a){C(r,e,a),m(e,t),l.m(t,null)},p(r,a){o===(o=n(r,a))&&l?l.p(r,a):(l.d(1),l=o(r),l&&(l.c(),l.m(t,null))),a&8&&D(e,"mobile",r[3])},d(r){r&&k(e),l.d()}}}function G5(i){let e,t=St(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=A0(I0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=ut()},m(o,l){for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(o,l);C(o,e,l)},p(o,l){if(l&18){t=St(o[1]);let r;for(r=0;r<t.length;r+=1){let a=I0(o,t,r);n[r]?n[r].p(a,l):(n[r]=A0(a),n[r].c(),n[r].m(e.parentNode,e))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&k(e),Ii(n,o)}}}function Q5(i){let e,t,n=St(i[6]),o=[];for(let l=0;l<n.length;l+=1)o[l]=M0(T0(i,n,l));return{c(){e=P("span"),t=P("span");for(let l=0;l<o.length;l+=1)o[l].c();c(t,"class","caption-segment svelte-ovfyp5"),pi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){C(l,e,r),m(e,t);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(l,r){if(r&68){n=St(l[6]);let a;for(a=0;a<n.length;a+=1){let s=T0(l,n,a);o[a]?o[a].p(s,r):(o[a]=M0(s),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}r&16&&pi(t,"font-size",l[4]+"px")},d(l){l&&k(e),Ii(o,l)}}}function Y5(i){let e,t,n=N("subtitles_auto_caption")+"",o;return{c(){e=P("span"),t=P("span"),o=Re(n),c(t,"class","caption-segment svelte-ovfyp5"),pi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){C(l,e,r),m(e,t),m(t,o)},p(l,r){r&16&&pi(t,"font-size",l[4]+"px")},d(l){l&&k(e)}}}function A0(i){let e,t,n=i[16]+"",o,l;return{c(){e=P("span"),t=P("span"),o=Re(n),l=M(),c(t,"class","caption-segment svelte-ovfyp5"),pi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,a){C(r,e,a),m(e,t),m(t,o),m(e,l)},p(r,a){a&2&&n!==(n=r[16]+"")&&We(o,n),a&16&&pi(t,"font-size",r[4]+"px")},d(r){r&&k(e)}}}function L0(i){let e=i[16]+"",t;return{c(){t=Re(e)},m(n,o){C(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&We(t,e)},d(n){n&&k(t)}}}function M0(i){let e,t=(!i[17]||i[17]<=i[2])&&L0(i);return{c(){t&&t.c(),e=ut()},m(n,o){t&&t.m(n,o),C(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=L0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&k(e),t&&t.d(n)}}}function Z5(i){let e,t=i[1].length>0&&E0(i);return{c(){e=P("div"),t&&t.c(),c(e,"class","subtitles-container svelte-ovfyp5"),D(e,"shifted",i[0]),D(e,"auto",i[5]&&!i[8])},m(n,o){C(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=E0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&D(e,"shifted",n[0]),o&288&&D(e,"auto",n[5]&&!n[8])},i:Se,o:Se,d(n){n&&k(e),t&&t.d()}}}function X5(i,e,t){let n,o,{shifted:l}=e,{captions:r}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,f=it(),p=Vt(),h=f.state.currentSubtitle$;q(i,h,y=>t(12,n=y));let S=f.state.isAutoSubtitleCaptionVisible$;q(i,S,y=>t(8,o=y));let g,w,b,E,v;return It(()=>{v=window.setTimeout(()=>{S.set(!1)},p.autoSubtitlesTimeout)}),zn(()=>{window.clearTimeout(v)}),i.$$set=y=>{"shifted"in y&&t(0,l=y.shifted),"captions"in y&&t(1,r=y.captions),"position"in y&&t(2,a=y.position),"playerSize"in y&&t(11,s=y.playerSize),"isMobile"in y&&t(3,u=y.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048){let y=s.width*.02;t(4,g=y<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:y)}i.$$.dirty&2&&t(5,w=r.some(y=>y.type==="timestamp")),i.$$.dirty&2&&t(6,b=r.reduce((y,{type:I,value:K})=>(I==="timestamp"?y.push({timeAppeared:Number(K),value:""}):y.length===0?y.push({value:String(K)}):y[y.length-1].value=String(K),y),[])),i.$$.dirty&4096&&t(7,E=!!n.isAuto)},[l,r,a,u,g,w,b,E,o,h,S,s,n]}var $u=class extends H{constructor(e){super(),U(this,e,X5,Z5,F,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},j5)}},$r=$u;function J5(i){Pe(i,"svelte-1o62kpz",".wrapper.svelte-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.svelte-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.svelte-1o62kpz{width:50px;height:50px}.text.svelte-1o62kpz{margin-top:20px}")}function V0(i){let e,t,n;return{c(){e=P("div"),t=Re("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Re(i[1]),c(e,"class","text svelte-1o62kpz")},m(o,l){C(o,e,l),m(e,t),m(e,n)},p(o,l){l&2&&We(n,o[1])},d(o){o&&k(e)}}}function x5(i){let e,t,n,o,l,r,a=i[1]&&V0(i);return{c(){e=P("div"),t=P("div"),t.innerHTML='<svg class="icon svelte-1o62kpz" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=M(),a&&a.c(),c(t,"class","icon_wrapper svelte-1o62kpz"),c(e,"class","wrapper svelte-1o62kpz"),c(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${i[0]||""}')`)},m(s,u){C(s,e,u),m(e,t),m(e,n),a&&a.m(e,null),l||(r=_e(e,"click",i[2]),l=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=V0(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&o!==(o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${s[0]||""}')`)&&c(e,"style",o)},i:Se,o:Se,d(s){s&&k(e),a&&a.d(),l=!1,r()}}}function $5(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function l(r){Pn.call(this,i,r)}return i.$$set=r=>{"thumbUrl"in r&&t(0,n=r.thumbUrl),"chromecastDeviceName"in r&&t(1,o=r.chromecastDeviceName)},[n,o,l]}var ec=class extends H{constructor(e){super(),U(this,e,$5,x5,F,{thumbUrl:0,chromecastDeviceName:1},J5)}},es=ec;function e6(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function t6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var tc=class extends H{constructor(e){super(),U(this,e,t6,e6,F,{})}},R0=tc;function i6(i){Pe(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 n6(i){let e,t,n;return t=new R0({}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","container svelte-13zpvm8")},m(o,l){C(o,e,l),A(t,e,null),n=!0},p:Se,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}var ic=class extends H{constructor(e){super(),U(this,e,null,n6,F,{},i6)}},ts=ic;function o6(i){Pe(i,"svelte-17wno3",".container.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:cover;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.svelte-17wno3.svelte-17wno3{opacity:0;visibility:hidden}.playButton.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.svelte-17wno3:hover .playButtonBackground.svelte-17wno3{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.svelte-17wno3 svg{transform:scale(2)}")}function l6(i){let e,t,n,o,l,r,a,s,u,f;return l=new fl({}),{c(){e=P("div"),t=P("div"),n=P("div"),o=M(),V(l.$$.fragment),c(n,"class","playButtonBackground svelte-17wno3"),c(t,"class","playButton svelte-17wno3"),c(t,"tabindex","0"),c(t,"role","button"),c(t,"aria-label",r=N("tooltip_play")),c(e,"class","container svelte-17wno3"),c(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),D(e,"hidden",i[1])},m(p,h){C(p,e,h),m(e,t),m(t,n),m(t,o),A(l,t,null),s=!0,u||(f=[_e(t,"keydown",i[3]),_e(e,"click",ot(function(){Pi(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(p,[h]){i=p,(!s||h&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&c(e,"style",a),(!s||h&2)&&D(e,"hidden",i[1])},i(p){s||(d(l.$$.fragment,p),s=!0)},o(p){_(l.$$.fragment,p),s=!1},d(p){p&&k(e),L(l),u=!1,tt(f)}}}function r6(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:l}=e,a=it().ui.startedByKeyboard$,s=u=>{let f=u.code;["Enter","Space"].includes(f)&&(u.stopPropagation(),u.preventDefault(),a.set(!0),l())};return i.$$set=u=>{"thumbUrl"in u&&t(0,n=u.thumbUrl),"hidden"in u&&t(1,o=u.hidden),"startVideo"in u&&t(2,l=u.startVideo)},[n,o,l,s]}var nc=class extends H{constructor(e){super(),U(this,e,r6,l6,F,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},o6)}get handlePressKey(){return this.$$.ctx[3]}},is=nc;function s6(i){Pe(i,"svelte-1bcvcf2",`.title.svelte-1bcvcf2{position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
|
|
26
|
+
Audio: `),C=Re(h),g=M(),b=Re(w),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(E,v){S(E,e,v),m(e,t),m(e,n),m(e,o),m(o,l),m(o,a),m(o,s),m(o,f),m(o,p),m(o,C),m(o,g),m(o,b)},p(E,v){v&1&&r!==(r=(E[0].videoCodec||"")+"")&&We(a,r),v&1&&u!==(u=E[0].hdr?"(HDR)":"")&&We(f,u),v&1&&h!==(h=(E[0].audioCodec||"")+"")&&We(C,h),v&1&&w!==(w=E[0].audioLanguage?`(${E[0].audioLanguage})`:"")&&We(b,w)},d(E){E&&k(e)}}}function nd(i){let e,t,n,o,l=i[0].viewport+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Viewport",n=M(),o=P("span"),r=Re(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){S(a,e,s),m(e,t),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].viewport+"")&&We(r,l)},d(a){a&&k(e)}}}function od(i){let e,t,n,o,l=i[0].videoSize+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Video size",n=M(),o=P("span"),r=Re(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){S(a,e,s),m(e,t),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].videoSize+"")&&We(r,l)},d(a){a&&k(e)}}}function ld(i){let e,t,n,o,l=i[0].cdn+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="CDN host",n=M(),o=P("span"),r=Re(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){S(a,e,s),m(e,t),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].cdn+"")&&We(r,l)},d(a){a&&k(e)}}}function rd(i){let e,t,n,o,l=i[0].volume+"",r,a;return{c(){e=P("div"),t=P("div"),t.textContent="Volume",n=M(),o=P("span"),r=Re(l),a=Re(" %"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(s,u){S(s,e,u),m(e,t),m(e,n),m(e,o),m(o,r),m(o,a)},p(s,u){u&1&&l!==(l=s[0].volume+"")&&We(r,l)},d(s){s&&k(e)}}}function sd(i){let e,t,n,o,l=i[0].buffer.toFixed(2)+"",r,a;return{c(){e=P("div"),t=P("div"),t.textContent="Buffer",n=M(),o=P("span"),r=Re(l),a=Re(" s"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(s,u){S(s,e,u),m(e,t),m(e,n),m(e,o),m(o,r),m(o,a)},p(s,u){u&1&&l!==(l=s[0].buffer.toFixed(2)+"")&&We(r,l)},d(s){s&&k(e)}}}function ad(i){let e,t,n,o,l=[{value:i[0].currentVideoSegmentLength,title:"Video:"},{value:i[0].currentAudioSegmentLength,title:"Audio:"}].filter(fd).map(dd).join(" & ")+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Segment",n=M(),o=P("span"),r=Re(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){S(a,e,s),m(e,t),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=[{value:a[0].currentVideoSegmentLength,title:"Video:"},{value:a[0].currentAudioSegmentLength,title:"Audio:"}].filter(fd).map(dd).join(" & ")+"")&&We(r,l)},d(a){a&&k(e)}}}function ud(i){let e,t,n,o,l,r,a=i[0].speed.toFixed(2)+"",s,u,f;return o=new _r({props:{values:i[5]}}),{c(){e=P("div"),t=P("div"),t.textContent="Network",n=M(),V(o.$$.fragment),l=M(),r=P("span"),s=Re(a),u=Re(" Kbps"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(p,h){S(p,e,h),m(e,t),m(e,n),A(o,e,null),m(e,l),m(e,r),m(r,s),m(r,u),f=!0},p(p,h){let C={};h&32&&(C.values=p[5]),o.$set(C),(!f||h&1)&&a!==(a=p[0].speed.toFixed(2)+"")&&We(s,a)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){_(o.$$.fragment,p),f=!1},d(p){p&&k(e),L(o)}}}function cd(i){let e,t,n,o,l,r,a=i[0].bitrate.toFixed(2)+"",s,u,f;return o=new _r({props:{values:i[6]}}),{c(){e=P("div"),t=P("div"),t.textContent="V bitrate",n=M(),V(o.$$.fragment),l=M(),r=P("span"),s=Re(a),u=Re(" Kbps"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(p,h){S(p,e,h),m(e,t),m(e,n),A(o,e,null),m(e,l),m(e,r),m(r,s),m(r,u),f=!0},p(p,h){let C={};h&64&&(C.values=p[6]),o.$set(C),(!f||h&1)&&a!==(a=p[0].bitrate.toFixed(2)+"")&&We(s,a)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){_(o.$$.fragment,p),f=!1},d(p){p&&k(e),L(o)}}}function Wh(i){let e,t,n,o,l,r,a,s,u=i[0].version+"",f,p,h,C,g,w,b,E,v,y,I,K,B,O,oe,he,G,X,ue,j,z,Q,$,W,Y,ie,re,Ve,Je,Ce,Me,ze,$e,fe,_e=i[0].id&&$f(i),at=i[0].vsid&&ed(i),we=i[0].provider&&td(i),Fe=(i[0].videoCodec||i[0].audioCodec)&&id(i),ft=i[0].viewport&&nd(i),Ke=i[0].videoSize&&od(i),Xe=i[0].cdn&&ld(i),je=i[0].volume&&rd(i),et=i[0].buffer&&sd(i),x=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&ad(i),Oe=i[0].speed&&ud(i),Ge=i[0].bitrate&&cd(i);return re=new _r({props:{values:i[4]}}),{c(){e=P("div"),t=P("button"),t.textContent="[x]",n=M(),o=P("div"),l=P("div"),r=P("div"),r.textContent="Version",a=M(),s=P("span"),f=Re(u),p=M(),_e&&_e.c(),h=M(),at&&at.c(),C=M(),we&&we.c(),g=M(),Fe&&Fe.c(),w=M(),ft&&ft.c(),b=M(),Ke&&Ke.c(),E=M(),Xe&&Xe.c(),v=M(),je&&je.c(),y=M(),et&&et.c(),I=M(),x&&x.c(),K=M(),B=P("div"),O=P("div"),O.textContent="Dropped",oe=M(),he=P("span"),G=Re(i[2]),X=Re(" / "),ue=Re(i[1]),j=Re(" frames"),z=M(),Oe&&Oe.c(),Q=M(),Ge&&Ge.c(),$=M(),W=P("div"),Y=P("div"),Y.textContent="FPS",ie=M(),V(re.$$.fragment),Ve=M(),Je=P("span"),Ce=Re(i[3]),c(t,"class","close svelte-k5ymwy"),c(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),c(r,"class","svelte-k5ymwy"),c(l,"class","svelte-k5ymwy"),c(O,"class","svelte-k5ymwy"),c(B,"class","svelte-k5ymwy"),c(Y,"class","svelte-k5ymwy"),c(W,"class","svelte-k5ymwy"),c(o,"class","content svelte-k5ymwy"),c(e,"class","container svelte-k5ymwy"),c(e,"role","region"),c(e,"aria-label",Me=N("aria_label_debug_panel")),D(e,"container-mobile",i[7])},m(se,le){S(se,e,le),m(e,t),m(e,n),m(e,o),m(o,l),m(l,r),m(l,a),m(l,s),m(s,f),m(o,p),_e&&_e.m(o,null),m(o,h),at&&at.m(o,null),m(o,C),we&&we.m(o,null),m(o,g),Fe&&Fe.m(o,null),m(o,w),ft&&ft.m(o,null),m(o,b),Ke&&Ke.m(o,null),m(o,E),Xe&&Xe.m(o,null),m(o,v),je&&je.m(o,null),m(o,y),et&&et.m(o,null),m(o,I),x&&x.m(o,null),m(o,K),m(o,B),m(B,O),m(B,oe),m(B,he),m(he,G),m(he,X),m(he,ue),m(he,j),m(o,z),Oe&&Oe.m(o,null),m(o,Q),Ge&&Ge.m(o,null),m(o,$),m(o,W),m(W,Y),m(W,ie),A(re,W,null),m(W,Ve),m(W,Je),m(Je,Ce),ze=!0,$e||(fe=pe(t,"click",rt(i[9])),$e=!0)},p(se,[le]){(!ze||le&1)&&u!==(u=se[0].version+"")&&We(f,u),se[0].id?_e?_e.p(se,le):(_e=$f(se),_e.c(),_e.m(o,h)):_e&&(_e.d(1),_e=null),se[0].vsid?at?at.p(se,le):(at=ed(se),at.c(),at.m(o,C)):at&&(at.d(1),at=null),se[0].provider?we?we.p(se,le):(we=td(se),we.c(),we.m(o,g)):we&&(we.d(1),we=null),se[0].videoCodec||se[0].audioCodec?Fe?Fe.p(se,le):(Fe=id(se),Fe.c(),Fe.m(o,w)):Fe&&(Fe.d(1),Fe=null),se[0].viewport?ft?ft.p(se,le):(ft=nd(se),ft.c(),ft.m(o,b)):ft&&(ft.d(1),ft=null),se[0].videoSize?Ke?Ke.p(se,le):(Ke=od(se),Ke.c(),Ke.m(o,E)):Ke&&(Ke.d(1),Ke=null),se[0].cdn?Xe?Xe.p(se,le):(Xe=ld(se),Xe.c(),Xe.m(o,v)):Xe&&(Xe.d(1),Xe=null),se[0].volume?je?je.p(se,le):(je=rd(se),je.c(),je.m(o,y)):je&&(je.d(1),je=null),se[0].buffer?et?et.p(se,le):(et=sd(se),et.c(),et.m(o,I)):et&&(et.d(1),et=null),se[0].currentVideoSegmentLength||se[0].currentAudioSegmentLength?x?x.p(se,le):(x=ad(se),x.c(),x.m(o,K)):x&&(x.d(1),x=null),(!ze||le&4)&&We(G,se[2]),(!ze||le&2)&&We(ue,se[1]),se[0].speed?Oe?(Oe.p(se,le),le&1&&d(Oe,1)):(Oe=ud(se),Oe.c(),d(Oe,1),Oe.m(o,Q)):Oe&&(de(),_(Oe,1,1,()=>{Oe=null}),me()),se[0].bitrate?Ge?(Ge.p(se,le),le&1&&d(Ge,1)):(Ge=cd(se),Ge.c(),d(Ge,1),Ge.m(o,$)):Ge&&(de(),_(Ge,1,1,()=>{Ge=null}),me());let lt={};le&16&&(lt.values=se[4]),re.$set(lt),(!ze||le&8)&&We(Ce,se[3]),(!ze||le&128)&&D(e,"container-mobile",se[7])},i(se){ze||(d(Oe),d(Ge),d(re.$$.fragment,se),ze=!0)},o(se){_(Oe),_(Ge),_(re.$$.fragment,se),ze=!1},d(se){se&&k(e),_e&&_e.d(),at&&at.d(),we&&we.d(),Fe&&Fe.d(),ft&&ft.d(),Ke&&Ke.d(),Xe&&Xe.d(),je&&je.d(),et&&et.d(),x&&x.d(),Oe&&Oe.d(),Ge&&Ge.d(),L(re),$e=!1,fe()}}}var fd=({value:i})=>i,dd=({value:i,title:e})=>`${e} ${((i??0)/1e3).toFixed(2)} s`;function jh(i,e,t){let n,o=ot(),l=o.ui.debugPanelVisible,r=o.ui.isMobile;q(i,r,y=>t(7,n=y));let a=()=>{xf.remove(Sl),l.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),f=0,p=0,h=0,C=new al(60),g=new al(60),w=new al(60),b=[],E=[],v=[];return It(()=>{xf.set(Sl,"true"),o.actions.internal.startLogging(),u&&(t(2,p=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,f=u.getVideoPlaybackQuality().totalVideoFrames));let y=window.setInterval(()=>{t(0,s=o.actions.internal.getDebugPanelData())},500),I;return u&&(I=window.setInterval(()=>{if(u){t(2,p=u.getVideoPlaybackQuality().droppedVideoFrames);let K=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=K-f),t(1,f=K),C.push(h),s.speed&&g.push(s.speed),s.bitrate&&w.push(s.bitrate),t(4,b=C.getValuesFromBottom()),t(5,E=g.getValuesFromBottom()),t(6,v=w.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(y),I&&clearInterval(I)}}),[s,f,p,h,b,E,v,n,r,a]}var Ws=class extends H{constructor(e){super(),U(this,e,jh,Wh,F,{},Kh)}},hr=Ws;function Gh(i){Pe(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 Qh(i){let e,t,n;return{c(){e=P("div"),c(e,"class","close svelte-1ome55p")},m(o,l){S(o,e,l),t||(n=pe(e,"click",rt(i[0])),t=!0)},p:Se,i:Se,o:Se,d(o){o&&k(e),t=!1,n()}}}function Yh(i){function e(t){Pn.call(this,i,t)}return[e]}var js=class extends H{constructor(e){super(),U(this,e,Yh,Qh,F,{},Gh)}},md=js;import{noop as Zh}from"@vkontakte/videoplayer-shared";function Xh(i){Pe(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 Jh(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("canvas"),n=M(),o=R("svg"),l=R("g"),r=R("g"),a=R("path"),c(t,"class","timer-canvas svelte-8jhsry"),c(t,"width","100"),c(t,"height","100"),c(a,"class","_play"),c(a,"d","m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z"),c(a,"fill","#fff"),c(r,"fill-rule","nonzero"),c(l,"fill","none"),c(l,"fill-rule","evenodd"),c(o,"class","timer-play-icon svelte-8jhsry"),c(o,"viewBox","0 0 24 24"),c(o,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","timer svelte-8jhsry")},m(s,u){S(s,e,u),m(e,t),i[2](t),m(e,n),m(e,o),m(o,l),m(l,r),m(r,a)},p:Se,i:Se,o:Se,d(s){s&&k(e),i[2](null)}}}var xh=5e3;function $h(i,e,t){let{onTimerEnded:n=Zh}=e,o;It(()=>{let r,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let s=Date.now(),u=()=>{let f=(Date.now()-s)/xh;f<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),a.stroke(),r=requestAnimationFrame(u)):n()};return r=requestAnimationFrame(u),()=>{cancelAnimationFrame(r)}});function l(r){ge[r?"unshift":"push"](()=>{o=r,t(0,o)})}return i.$$set=r=>{"onTimerEnded"in r&&t(1,n=r.onTimerEnded)},[o,n,l]}var Gs=class extends H{constructor(e){super(),U(this,e,$h,Jh,F,{onTimerEnded:1},Xh)}},pd=Gs;function eg(i){Pe(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 _d(i){let e,t;return e=new pd({props:{onTimerEnded:i[2]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.onTimerEnded=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function tg(i){let e,t,n,o,l,r,a,s,u,f,p,h,C,g,w,b,E,v,y,I,K;a=new md({}),a.$on("click",i[4]);let B=i[3]&&_d(i);return{c(){e=P("div"),t=M(),n=P("div"),o=P("div"),l=P("div"),l.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",r=M(),V(a.$$.fragment),s=M(),u=P("div"),f=P("div"),p=P("div"),h=P("div"),C=M(),B&&B.c(),w=M(),b=P("div"),E=P("div"),v=Re(i[0]),c(e,"class","overlay svelte-kisfwc"),c(l,"class","caption svelte-kisfwc"),c(o,"class","top svelte-kisfwc"),c(h,"class","thumb-overlay svelte-kisfwc"),c(p,"class","thumb svelte-kisfwc"),c(p,"style",g=`background-image: url('${i[1]}')`),c(f,"class","column svelte-kisfwc"),c(E,"class","title svelte-kisfwc"),c(b,"class","column svelte-kisfwc"),c(u,"class","row svelte-kisfwc"),c(n,"class","next-video svelte-kisfwc")},m(O,oe){S(O,e,oe),S(O,t,oe),S(O,n,oe),m(n,o),m(o,l),m(o,r),A(a,o,null),m(n,s),m(n,u),m(u,f),m(f,p),m(p,h),m(p,C),B&&B.m(p,null),m(u,w),m(u,b),m(b,E),m(E,v),y=!0,I||(K=pe(u,"click",function(){Ai(i[2])&&i[2].apply(this,arguments)}),I=!0)},p(O,[oe]){i=O,i[3]?B?(B.p(i,oe),oe&8&&d(B,1)):(B=_d(i),B.c(),d(B,1),B.m(p,null)):B&&(de(),_(B,1,1,()=>{B=null}),me()),(!y||oe&2&&g!==(g=`background-image: url('${i[1]}')`))&&c(p,"style",g),(!y||oe&1)&&We(v,i[0])},i(O){y||(d(a.$$.fragment,O),d(B),y=!0)},o(O){_(a.$$.fragment,O),_(B),y=!1},d(O){O&&(k(e),k(t),k(n)),L(a),B&&B.d(),I=!1,K()}}}function ig(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:l}=e,r=!0,a=()=>t(3,r=!1);return i.$$set=s=>{"title"in s&&t(0,n=s.title),"thumb"in s&&t(1,o=s.thumb),"playNextVideo"in s&&t(2,l=s.playNextVideo)},[n,o,l,r,a]}var Qs=class extends H{constructor(e){super(),U(this,e,ig,tg,F,{title:0,thumb:1,playNextVideo:2},eg)}},hd=Qs;import{PlaybackState as Bo}from"@vkontakte/videoplayer-core";import{checkNever as og}from"@vkontakte/videoplayer-shared";import{SeekAction as yn}from"@vkontakte/videoplayer-statistics";var Ys=(i,e)=>Math.min(+(i+e).toFixed(2),1),Zs=(i,e)=>Math.max(+(i-e).toFixed(2),0),gr=(i,e,t)=>{let n=Ys(e,t);e<1&&i.actions.internal.setVolume(n)},br=(i,e,t)=>{let n=Zs(e,t);e>0&&i.actions.internal.setVolume(n)};var so=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e?.(),!1):t?!0:(n?.(),!1);function lg(i){Pe(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function rg(i){let e,t,n,o,l,r=i[26].default,a=Te(r,i,i[25],null);return{c(){e=P("div"),a&&a.c(),c(e,"class","keyboard-controls svelte-10kkmxz"),c(e,"tabindex","-1"),c(e,"role","region"),c(e,"aria-label",t=N("aria_label_video_player"))},m(s,u){S(s,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(l=[pe(e,"keyup",i[17]),pe(e,"keydown",i[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Ae(a,r,s,s[25],n?Ee(r,s[25],u,null):Le(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){_(a,s),n=!1},d(s){s&&k(e),a&&a.d(s),i[27](null),o=!1,it(l)}}}function sg(i,e,t){let n,o,l,r,a,s,u,f,p,h,C,g,w,b,E,{$$slots:v={},$$scope:y}=e,{isAds:I}=e,{hideContextMenu:K}=e,{toggleFullscreen:B}=e,{showHotKeyHelpers:O}=e,{showKeyMap:oe}=e,{fakePlayButtonHandler:he}=e,G=ot(),X=Dt(),ue=G.getLogger().createComponentLog("KeyboardControls component"),j=G.state.playbackState$;q(i,j,be=>t(31,o=be));let z=G.ads.playbackState;q(i,z,be=>t(30,n=be));let Q=G.state.positionExact$;q(i,Q,be=>t(41,g=be));let $=G.state.duration$;q(i,$,be=>t(40,C=be));let W=G.state.volume$;q(i,W,be=>t(44,E=be));let Y=G.ui.controls.disabledControls$;q(i,Y,be=>t(39,h=be));let ie=G.state.muted$;q(i,ie,be=>t(34,a=be));let re=G.state.currentSubtitle$;q(i,re,be=>t(33,r=be));let Ve=G.state.currentPlaybackRate$;q(i,Ve,be=>t(42,w=be));let Je=G.state.availablePlaybackRates$;q(i,Je,be=>t(43,b=be));let Ce=G.ui.contextMenu.openedByHotKey$,Me=G.ui.contextMenu.lastActiveElem$,ze=G.ui.contextMenu.visible$,$e=G.ui.contextMenu.position$,fe=G.state.isEnded$;q(i,fe,be=>t(36,u=be));let _e=G.ui.overlayContainer$;q(i,_e,be=>t(32,l=be));let at=G.callbacks?.onAudioDoesNotExistHint,we=G.callbacks?.onAudioDisabledHint,Fe=G.state.isAudioAvailable$;q(i,Fe,be=>t(35,s=be));let ft=G.state.isAudioDisabled,Ke=G.state.isInteractiveTime$;q(i,Ke,be=>t(38,p=be));let{showInteractiveTimeIndicatorTooltip$:Xe}=Rn();q(i,Xe,be=>t(37,f=be));let je=0,et=!0,x,Oe=()=>x?.focus(),Ge=be=>(be!==et&&(et=be,je=0),je+=1,(X.controls.seekStepKeyboard+X.controls.seekStepKeyboard*je)/1e3),se=be=>{let Ue=be.target,tt=Ue?.getAttribute("role")?.includes("menuitem"),dt=Ue.classList.contains("btn"),bt=be.code;if(dt&&bt==="Space")return;let Tt=jc.has(bt);if(tt&&Tt)return;let Qe=!Wc.has(bt);if(be.ctrlKey&&Qe||be.altKey&&Qe||be.metaKey)return;let zt=tt&&bt==="Escape";Gc.has(bt)||zt||K();let Vt=o===Bo.PLAYING||o===Bo.PAUSED,yt=I&&(n==="paused"||n==="playing"),ai=!yt&&!h.has("TIMELINE");if(Vt||yt)switch(ue({message:`key down, code: ${bt}`}),bt){case"KeyJ":case"ArrowLeft":{if(!ai)break;if(be.ctrlKey||be.altKey){let st=G.actions.internal.getPrevEpisode();G.actions.internal.seekToPrevEpisode(st),st&&O({type:"EPISODE_PREV",text:st.text}),be.preventDefault()}else{let st=be.shiftKey?Ge(!1):X.controls.seekStepKeyboard/1e3,vt=Math.max(g-st,0);g>0&&(G.actions.internal.seekTime(vt,yn.DOUBLE_TAP),O({type:"BACKWARD_SEEK",text:st.toString()}),be.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!ai)break;if(be.ctrlKey||be.altKey){let st=G.actions.internal.getNextEpisode();G.actions.internal.seekToNextEpisode(st),st&&O({type:"EPISODE_NEXT",text:st.text}),be.preventDefault()}else{let st=be.shiftKey?Ge(!0):X.controls.seekStepKeyboard/1e3,vt=Math.min(g+st,C);Math.round(g)<Math.round(C)&&(G.actions.internal.seekTime(vt,yn.DOUBLE_TAP),O({type:"FORWARD_SEEK",text:st.toString()}),be.preventDefault())}break}case"ArrowUp":{if(so({isAudioDisabled:ft,audioDisabledHintCallback:we,isAudioAvailable:s,audioIsNotExistHintCallback:at})){let st=E,vt=X.controls.volumeStepKeyboard,jt=st<=1;if(gr(G,st,vt),jt){let ve=Math.round(Ys(st,vt)*100).toString();O({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ve}})}}be.preventDefault();break}case"ArrowDown":{if(so({isAudioDisabled:ft,audioDisabledHintCallback:we,isAudioAvailable:s,audioIsNotExistHintCallback:at})){let st=E,vt=X.controls.volumeStepKeyboard,jt=st>=0;if(br(G,st,vt),jt){let ve=Math.round(Zs(st,vt)*100).toString();O({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ve}})}}be.preventDefault();break}case"Comma":{if(be.shiftKey){G.actions.internal.decrementPlaybackRate();let st=b.find(vt=>vt.value===w);O({type:"RATE_DOWN",text:st?.displayValue}),be.preventDefault()}else{if(yt||o!==Bo.PAUSED)break;let st=Math.max(g-X.controls.seekStepFrame/1e3,0);g>0&&(O({type:"BACKWARD_SEEK"}),G.actions.internal.clearDelayedBufferingCheckTimeout(),G.actions.internal.seekTime(st,yn.DOUBLE_TAP),be.preventDefault())}break}case"Period":{if(be.shiftKey){G.actions.internal.incrementPlaybackRate();let st=b.find(vt=>vt.value===w);O({type:"RATE_UP",text:st?.displayValue}),be.preventDefault()}else{if(yt||o!==Bo.PAUSED)break;let st=Math.min(g+X.controls.seekStepFrame/1e3,C);g<C&&(O({type:"FORWARD_SEEK"}),G.actions.internal.clearDelayedBufferingCheckTimeout(),G.actions.internal.seekTime(st,yn.DOUBLE_TAP),be.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(p&&f&&Xe.set(!1),he)he();else{G.actions.internal.togglePlay();let st="PLAY";o===Bo.PAUSED?st="PAUSE":u&&(st="REPLAY"),O({type:st})}be.preventDefault();break;case"KeyM":{so({isAudioDisabled:ft,audioDisabledHintCallback:we,isAudioAvailable:s,audioIsNotExistHintCallback:at})&&(O({type:a?"VOLUME":"MUTE"}),G.actions.internal.toggleMuted()),be.preventDefault();break}case"KeyF":B(),be.preventDefault();break;case"KeyC":G.actions.internal.toggleSubtitle(),r.value!=="off"?O({type:"SUBTITLES_ON",text:r?.displayValue}):O({type:"SUBTITLES_OFF"}),be.preventDefault();break;case"KeyI":G.actions.internal.togglePictureInPicture(),be.preventDefault();break;case"Digit1":case"Numpad1":if(be.shiftKey){let st=Wf(l);$e.set(st),Me.set(Ue),Ce.set(!0),ze.set(!0),be.preventDefault();break}O(),G.actions.internal.seekToPercent(.1,yn.DOUBLE_TAP),be.preventDefault();break;case"Digit2":case"Numpad2":O(),G.actions.internal.seekToPercent(.2,yn.DOUBLE_TAP),be.preventDefault();break;case"Digit3":case"Numpad3":O(),G.actions.internal.seekToPercent(.3,yn.DOUBLE_TAP),be.preventDefault();break;case"Digit4":case"Numpad4":O(),G.actions.internal.seekToPercent(.4,yn.DOUBLE_TAP),be.preventDefault();break;case"Digit5":case"Numpad5":O(),G.actions.internal.seekToPercent(.5,yn.DOUBLE_TAP),be.preventDefault();break;case"Digit6":case"Numpad6":O(),G.actions.internal.seekToPercent(.6,yn.DOUBLE_TAP),be.preventDefault();break;case"Digit7":case"Numpad7":O(),G.actions.internal.seekToPercent(.7,yn.DOUBLE_TAP),be.preventDefault();break;case"Digit8":case"Numpad8":O(),G.actions.internal.seekToPercent(.8,yn.DOUBLE_TAP),be.preventDefault();break;case"Digit9":case"Numpad9":O(),G.actions.internal.seekToPercent(.9,yn.DOUBLE_TAP),be.preventDefault();break;case"Digit0":case"Numpad0":O(),G.actions.internal.seekToPercent(0,yn.DOUBLE_TAP),be.preventDefault();break;case"Slash":{be.shiftKey&&X.features.hotKeyMapModal&&(oe(),be.preventDefault());break}case"ShiftLeft":case"ShiftRight":be.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:og(bt);break}},le=be=>{let Ue=be.code;if(be.ctrlKey||be.altKey||be.metaKey)return;let tt=o===Bo.PLAYING||o===Bo.PAUSED,dt=I&&(n==="paused"||n==="playing");if(tt||dt)switch(Ue){case"ShiftLeft":case"ShiftRight":je=0;break}};function lt(be){ge[be?"unshift":"push"](()=>{x=be,t(0,x)})}return i.$$set=be=>{"isAds"in be&&t(18,I=be.isAds),"hideContextMenu"in be&&t(19,K=be.hideContextMenu),"toggleFullscreen"in be&&t(20,B=be.toggleFullscreen),"showHotKeyHelpers"in be&&t(21,O=be.showHotKeyHelpers),"showKeyMap"in be&&t(22,oe=be.showKeyMap),"fakePlayButtonHandler"in be&&t(23,he=be.fakePlayButtonHandler),"$$scope"in be&&t(25,y=be.$$scope)},[x,j,z,Q,$,W,Y,ie,re,Ve,Je,fe,_e,Fe,Ke,Xe,se,le,I,K,B,O,oe,he,Oe,y,v,lt]}var Xs=class extends H{constructor(e){super(),U(this,e,sg,rg,F,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},lg,[-1,-1])}get focus(){return this.$$.ctx[24]}},gd=Xs;function ag(i){Pe(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 ug(i){let e,t,n,o,l,r;return{c(){e=P("div"),t=P("div"),n=M(),o=P("div"),l=M(),r=P("div"),c(t,"class","dot svelte-8nkw5s"),c(o,"class","dot svelte-8nkw5s"),c(r,"class","dot svelte-8nkw5s"),c(e,"class","container svelte-8nkw5s"),c(e,"style",i[0])},m(a,s){S(a,e,s),m(e,t),m(e,n),m(e,o),m(e,l),m(e,r)},p(a,[s]){s&1&&c(e,"style",a[0])},i:Se,o:Se,d(a){a&&k(e)}}}function cg(i,e,t){let{style:n=""}=e;return i.$$set=o=>{"style"in o&&t(0,n=o.style)},[n]}var Js=class extends H{constructor(e){super(),U(this,e,cg,ug,F,{style:0},ag)}},ul=Js;function fg(i){let e,t,n,o,l,r,a,s,u,f,p,h,C,g,w=i[2].default,b=Te(w,i,i[1],null),E=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],v={};for(let y=0;y<E.length;y+=1)v=ce(v,E[y]);return{c(){e=R("svg"),b&&b.c(),t=R("g"),n=R("path"),o=R("path"),l=R("defs"),r=R("filter"),a=R("feFlood"),s=R("feColorMatrix"),u=R("feOffset"),f=R("feGaussianBlur"),p=R("feColorMatrix"),h=R("feBlend"),C=R("feBlend"),c(n,"fill","#fff"),c(n,"d","M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2422_111980"),c(C,"in","SourceGraphic"),c(C,"in2","effect1_dropShadow_2422_111980"),c(C,"result","shape"),c(r,"id","a"),c(r,"width","23"),c(r,"height","23"),c(r,"x",".5"),c(r,"y",".5"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ke(e,v)},m(y,I){S(y,e,I),b&&b.m(e,null),m(e,t),m(t,n),m(t,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,C),g=!0},p(y,[I]){b&&b.p&&(!g||I&2)&&Ae(b,w,y,y[1],g?Ee(w,y[1],I,null):Le(y[1]),null),ke(e,v=Be(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},I&1&&y[0]]))},i(y){g||(d(b,y),g=!0)},o(y){_(b,y),g=!1},d(y){y&&k(e),b&&b.d(y)}}}function dg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var xs=class extends H{constructor(e){super(),U(this,e,dg,fg,F,{})}},bd=xs;import{noop as xn}from"@vkontakte/videoplayer-shared";function mg(i){Pe(i,"svelte-1anemql",".btn.svelte-1anemql{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center}.w-max.svelte-1anemql{width:100%}.btn--live.svelte-1anemql{padding:10px 4px}.btn-m.svelte-1anemql{position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.btn-m--play.svelte-1anemql{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn.svelte-1anemql:disabled{cursor:default;pointer-events:none}.btn.svelte-1anemql:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-1anemql:not(:disabled):hover{opacity:0.8}.pr-0.svelte-1anemql{padding-right:0}.pl-0.svelte-1anemql{padding-left:0}")}function pg(i){let e,t,n,o,l,r,a,s,u,f,p,h,C=i[14].default,g=Te(C,i,i[13],null);return{c(){e=P("button"),g&&g.c(),c(e,"class",t="btn "+i[1]+" svelte-1anemql"),c(e,"style",n=i[2]||null),e.disabled=o=i[3]??null,c(e,"aria-hidden",l=i[5]??null),c(e,"aria-label",r=i[6]??null),c(e,"aria-keyshortcuts",a=i[7]??null),c(e,"aria-expanded",s=i[8]??null),c(e,"data-testid",u=i[4]??null),c(e,"tabindex",i[9])},m(w,b){S(w,e,b),g&&g.m(e,null),i[16](e),f=!0,p||(h=[pe(e,"pointerdown",rt(i[15])),pe(e,"click",rt(function(){Ai(i[10]===xn?null:i[10])&&(i[10]===xn?null:i[10]).apply(this,arguments)})),pe(e,"focus",Ht(function(){Ai(i[11]===xn?null:i[11])&&(i[11]===xn?null:i[11]).apply(this,arguments)})),pe(e,"blur",Ht(function(){Ai(i[12]===xn?null:i[12])&&(i[12]===xn?null:i[12]).apply(this,arguments)}))],p=!0)},p(w,[b]){i=w,g&&g.p&&(!f||b&8192)&&Ae(g,C,i,i[13],f?Ee(C,i[13],b,null):Le(i[13]),null),(!f||b&2&&t!==(t="btn "+i[1]+" svelte-1anemql"))&&c(e,"class",t),(!f||b&4&&n!==(n=i[2]||null))&&c(e,"style",n),(!f||b&8&&o!==(o=i[3]??null))&&(e.disabled=o),(!f||b&32&&l!==(l=i[5]??null))&&c(e,"aria-hidden",l),(!f||b&64&&r!==(r=i[6]??null))&&c(e,"aria-label",r),(!f||b&128&&a!==(a=i[7]??null))&&c(e,"aria-keyshortcuts",a),(!f||b&256&&s!==(s=i[8]??null))&&c(e,"aria-expanded",s),(!f||b&16&&u!==(u=i[4]??null))&&c(e,"data-testid",u),(!f||b&512)&&c(e,"tabindex",i[9])},i(w){f||(d(g,w),f=!0)},o(w){_(g,w),f=!1},d(w){w&&k(e),g&&g.d(w),i[16](null),p=!1,it(h)}}}function _g(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:l=""}=e,{style:r=""}=e,{disabled:a=void 0}=e,{testId:s=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:f=void 0}=e,{ref:p=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:C=void 0}=e,{tabIndex:g=0}=e,{click:w=xn}=e,{focus:b=xn}=e,{blur:E=xn}=e;function v(I){Pn.call(this,i,I)}function y(I){ge[I?"unshift":"push"](()=>{p=I,t(0,p)})}return i.$$set=I=>{"className"in I&&t(1,l=I.className),"style"in I&&t(2,r=I.style),"disabled"in I&&t(3,a=I.disabled),"testId"in I&&t(4,s=I.testId),"ariaHidden"in I&&t(5,u=I.ariaHidden),"ariaLabel"in I&&t(6,f=I.ariaLabel),"ref"in I&&t(0,p=I.ref),"ariaKeyShortCut"in I&&t(7,h=I.ariaKeyShortCut),"ariaExpanded"in I&&t(8,C=I.ariaExpanded),"tabIndex"in I&&t(9,g=I.tabIndex),"click"in I&&t(10,w=I.click),"focus"in I&&t(11,b=I.focus),"blur"in I&&t(12,E=I.blur),"$$scope"in I&&t(13,o=I.$$scope)},[p,l,r,a,s,u,f,h,C,g,w,b,E,o,n,v,y]}var $s=class extends H{constructor(e){super(),U(this,e,_g,pg,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},mg)}},pt=$s;function hg(i){Pe(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 vd(i){let e,t,n,o,l,r=i[2]&&yd(i);return{c(){e=P("div"),t=P("h3"),n=Re(i[3]),o=M(),r&&r.c(),c(t,"class","modal-title svelte-1witlsj"),c(e,"class","modal-header svelte-1witlsj")},m(a,s){S(a,e,s),m(e,t),m(t,n),m(e,o),r&&r.m(e,null),l=!0},p(a,s){(!l||s&8)&&We(n,a[3]),a[2]?r?(r.p(a,s),s&4&&d(r,1)):(r=yd(a),r.c(),d(r,1),r.m(e,null)):r&&(de(),_(r,1,1,()=>{r=null}),me())},i(a){l||(d(r),l=!0)},o(a){_(r),l=!1},d(a){a&&k(e),r&&r.d()}}}function yd(i){let e,t;return e=new pt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:N("hotkey_map_modal_close_btn_text"),$$slots:{default:[gg]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&1&&(l.click=n[0]),o&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function gg(i){let e,t;return e=new bd({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function bg(i){let e,t,n,o,l,r,a=i[1]&&vd(i),s=i[4].default,u=Te(s,i,i[5],null);return{c(){e=P("div"),t=P("div"),a&&a.c(),n=M(),o=P("div"),l=P("div"),u&&u.c(),c(l,"class","modal-main svelte-1witlsj"),c(o,"class","modal-scroll svelte-1witlsj"),c(t,"class","modal-container svelte-1witlsj"),c(e,"class","modal-overlay svelte-1witlsj")},m(f,p){S(f,e,p),m(e,t),a&&a.m(t,null),m(t,n),m(t,o),m(o,l),u&&u.m(l,null),r=!0},p(f,[p]){f[1]?a?(a.p(f,p),p&2&&d(a,1)):(a=vd(f),a.c(),d(a,1),a.m(t,n)):a&&(de(),_(a,1,1,()=>{a=null}),me()),u&&u.p&&(!r||p&32)&&Ae(u,s,f,f[5],r?Ee(s,f[5],p,null):Le(f[5]),null)},i(f){r||(d(a),d(u,f),r=!0)},o(f){_(a),_(u,f),r=!1},d(f){f&&k(e),a&&a.d(),u&&u.d(f)}}}function vg(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:l}=e,{showHeader:r=!0}=e,{showCloseCross:a=!0}=e,{title:s}=e;return i.$$set=u=>{"onClose"in u&&t(0,l=u.onClose),"showHeader"in u&&t(1,r=u.showHeader),"showCloseCross"in u&&t(2,a=u.showCloseCross),"title"in u&&t(3,s=u.title),"$$scope"in u&&t(5,o=u.$$scope)},[l,r,a,s,n,o]}var ea=class extends H{constructor(e){super(),U(this,e,vg,bg,F,{onClose:0,showHeader:1,showCloseCross:2,title:3},hg)}},kd=ea;var yg=new Set(["BR"]),ta=i=>{let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let o=t[n],l=o.tagName;yg.has(l)||o.parentElement?.removeChild(o)}return e.innerHTML};function kg(i){Pe(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 wd(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function Sd(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function Cd(i){let e,t,n=ta(i[9])+"",o,l,r=i[10]+"",a,s;return{c(){e=P("li"),t=P("span"),o=M(),l=P("span"),a=Re(r),s=M(),c(t,"class","hot-key-map-item-description svelte-quklnq"),c(l,"class","hot-key-map-item-value svelte-quklnq"),c(e,"class","hot-key-map-item svelte-quklnq")},m(u,f){S(u,e,f),m(e,t),t.innerHTML=n,m(e,o),m(e,l),m(l,a),m(e,s)},p(u,f){f&1&&n!==(n=ta(u[9])+"")&&(t.innerHTML=n),f&1&&r!==(r=u[10]+"")&&We(a,r)},d(u){u&&k(e)}}}function Pd(i){let e,t,n=i[5]+"",o,l,r,a,s=kt(i[6]),u=[];for(let f=0;f<s.length;f+=1)u[f]=Cd(Sd(i,s,f));return{c(){e=P("div"),t=P("h5"),o=Re(n),l=M(),r=P("ul");for(let f=0;f<u.length;f+=1)u[f].c();a=M(),c(t,"class","hot-key-map-group-title svelte-quklnq"),c(r,"class","hot-key-map-group-items svelte-quklnq"),c(e,"class","hot-key-map-group svelte-quklnq")},m(f,p){S(f,e,p),m(e,t),m(t,o),m(e,l),m(e,r);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(r,null);m(e,a)},p(f,p){if(p&1&&n!==(n=f[5]+"")&&We(o,n),p&1){s=kt(f[6]);let h;for(h=0;h<s.length;h+=1){let C=Sd(f,s,h);u[h]?u[h].p(C,p):(u[h]=Cd(C),u[h].c(),u[h].m(r,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=s.length}},d(f){f&&k(e),Li(u,f)}}}function wg(i){let e,t=kt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=Pd(wd(i,t,o));return{c(){e=P("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","hot-key-map svelte-quklnq")},m(o,l){S(o,e,l);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,l){if(l&1){t=kt(o[0].groups);let r;for(r=0;r<t.length;r+=1){let a=wd(o,t,r);n[r]?n[r].p(a,l):(n[r]=Pd(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&k(e),Li(n,o)}}}function Sg(i){let e,t;return e=new kd({props:{title:i[0].title,onClose:i[2],$$slots:{default:[wg]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.title=n[0].title),o&8193&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Cg(i,e,t){let n,o=ot(),{data:l,show:r}=o.ui.modals.hotKeyMap;return q(i,l,s=>t(0,n=s)),[n,l,()=>{r.set(!1)}]}var ia=class extends H{constructor(e){super(),U(this,e,Cg,Sg,F,{},kg)}},Id=ia;import{noop as Fu}from"@vkontakte/videoplayer-shared";import{ChromecastState as dm,PlaybackState as Au}from"@vkontakte/videoplayer-core";import{VideoQuality as k2}from"@vkontakte/videoplayer-core";import{isValidURL as w2}from"@vkontakte/videoplayer-shared";var Do={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"},Td={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"};var Pg=i=>Do[i]??Do[Td[i]]??void 0,vr=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),$n=(i,e)=>{if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=Pg(t)??t),n&&t&&o){let r=e.filter(a=>a.label===n&&a.language===t);if(r.length===1)return N("audio_stream_display_language_label",{language:o,label:n});{let a=vr(i,r);return N("audio_stream_display_language_label_index",{language:o,label:n,index:a})}}if(n){let r=e.filter(a=>a.label===n);if(r.length===1)return n;{let a=vr(i,r);return N("audio_stream_display_label_index",{label:n,index:a})}}if(t&&o){let r=e.filter(a=>a.language===t);if(r.length===1)return o;{let a=vr(i,r);return N("audio_stream_display_language_index",{language:o,index:a})}}let l=vr(i,e);return N("audio_stream_display_unknown",{index:l})};import"@vkontakte/videoplayer-shared";function Ig(i){Pe(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 Tg(i){let e,t,n=i[1].default,o=Te(n,i,i[0],null);return{c(){e=P("div"),o&&o.c(),c(e,"class","pillow svelte-1oe0j8n")},m(l,r){S(l,e,r),o&&o.m(e,null),t=!0},p(l,[r]){o&&o.p&&(!t||r&1)&&Ae(o,n,l,l[0],t?Ee(n,l[0],r,null):Le(l[0]),null)},i(l){t||(d(o,l),t=!0)},o(l){_(o,l),t=!1},d(l){l&&k(e),o&&o.d(l)}}}function Eg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{"$$scope"in l&&t(0,o=l.$$scope)},[o,n]}var na=class extends H{constructor(e){super(),U(this,e,Eg,Tg,F,{},Ig)}},Ed=na;import{VideoQuality as Il}from"@vkontakte/videoplayer-core";function Ag(i){let e,t,n,o,l=i[2].default,r=Te(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ce(s,a[u]);return{c(){e=R("svg"),r&&r.c(),t=R("path"),n=R("path"),c(t,"fill","currentColor"),c(t,"d","M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(n,"d","m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z"),c(n,"clip-rule","evenodd"),ke(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ke(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function Lg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var oa=class extends H{constructor(e){super(),U(this,e,Lg,Ag,F,{})}},Ad=oa;function Mg(i){let e,t,n,o,l=i[2].default,r=Te(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ce(s,a[u]);return{c(){e=R("svg"),r&&r.c(),t=R("path"),n=R("path"),c(t,"fill","currentColor"),c(t,"d","M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(n,"d","M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524"),c(n,"clip-rule","evenodd"),ke(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ke(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function Vg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var la=class extends H{constructor(e){super(),U(this,e,Vg,Mg,F,{})}},Ld=la;function Rg(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","currentColor"),c(t,"d","M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Bg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var ra=class extends H{constructor(e){super(),U(this,e,Bg,Rg,F,{})}},Md=ra;function Dg(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","currentColor"),c(t,"d","M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function qg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var sa=class extends H{constructor(e){super(),U(this,e,qg,Dg,F,{})}},yr=sa;function Ng(i){let e,t,n,o,l=i[2].default,r=Te(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ce(s,a[u]);return{c(){e=R("svg"),r&&r.c(),t=R("path"),n=R("path"),c(t,"fill","currentColor"),c(t,"d","M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(n,"d","M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02"),c(n,"clip-rule","evenodd"),ke(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ke(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function Og(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var aa=class extends H{constructor(e){super(),U(this,e,Og,Ng,F,{})}},kr=aa;var ao=i=>{switch(i){case Il.Q_720P:return Md;case Il.Q_1080P:return yr;case Il.Q_1440P:return kr;case Il.Q_2160P:return Ad;case Il.Q_4320P:return Ld}};function Fg(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Hg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var ua=class extends H{constructor(e){super(),U(this,e,Hg,Fg,F,{})}},Vd=ua;function zg(i){let e,t,n,o,l=i[2].default,r=Te(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ce(s,a[u]);return{c(){e=R("svg"),r&&r.c(),t=R("path"),n=R("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"d","M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"),c(n,"class","_full"),ke(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ke(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function Ug(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var ca=class extends H{constructor(e){super(),U(this,e,Ug,zg,F,{})}},Rd=ca;function Kg(i){Pe(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 Wg(i){let e,t,n,o,l=i[1]&&Bd(i);return n=new Rd({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=P("div"),l&&l.c(),t=M(),V(n.$$.fragment),c(e,"class","icon svelte-8t5w85"),c(e,"aria-hidden","true"),D(e,"triple",i[2])},m(r,a){S(r,e,a),l&&l.m(e,null),m(e,t),A(n,e,null),o=!0},p(r,a){r[1]?l?(l.p(r,a),a&2&&d(l,1)):(l=Bd(r),l.c(),d(l,1),l.m(e,t)):l&&(de(),_(l,1,1,()=>{l=null}),me());let s={};a&2&&(s["data-testid"]=r[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&D(e,"triple",r[2])},i(r){o||(d(l),d(n.$$.fragment,r),o=!0)},o(r){_(l),_(n.$$.fragment,r),o=!1},d(r){r&&k(e),l&&l.d(),L(n)}}}function jg(i){let e,t;return e=new Vd({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p:Se,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Bd(i){let e,t;return e=new Ed({props:{$$slots:{default:[Gg]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&18&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Gg(i){let e,t,n;var o=i[1];function l(r,a){return{}}return o&&(e=vn(o,l(i))),{c(){e&&V(e.$$.fragment),t=ut()},m(r,a){e&&A(e,r,a),S(r,t,a),n=!0},p(r,a){if(a&2&&o!==(o=r[1])){if(e){de();let s=e;_(s.$$.fragment,1,0,()=>{L(s,1)}),me()}o?(e=vn(o,l(r,a)),V(e.$$.fragment),d(e.$$.fragment,1),A(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&_(e.$$.fragment,r),n=!1},d(r){r&&k(t),e&&L(e,r)}}}function Qg(i){let e,t,n,o,l=[jg,Wg],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ut()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(de(),_(r[f],1,1,()=>{r[f]=null}),me(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),r[e].d(s)}}}function Yg(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:l=void 0}=e,r;return i.$$set=a=>{"isMobile"in a&&t(0,o=a.isMobile),"currentQuality"in a&&t(3,l=a.currentQuality)},i.$$.update=()=>{i.$$.dirty&8&&t(1,n=ao(l)),i.$$.dirty&2&&t(2,r=!!n&&[yr,kr].includes(n))},[o,n,r,l]}var fa=class extends H{constructor(e){super(),U(this,e,Yg,Qg,F,{isMobile:0,currentQuality:3},Kg)}},wr=fa;function Zg(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Xg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var da=class extends H{constructor(e){super(),U(this,e,Xg,Zg,F,{})}},Sr=da;function Jg(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18"),c(t,"clip-rule","evenodd"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function xg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var ma=class extends H{constructor(e){super(),U(this,e,xg,Jg,F,{})}},Dd=ma;function $g(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z"),c(t,"clip-rule","evenodd"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function e2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var pa=class extends H{constructor(e){super(),U(this,e,e2,$g,F,{})}},qd=pa;function t2(i){let e,t,n,o,l,r=i[2].default,a=Te(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ce(u,s[f]);return{c(){e=R("svg"),a&&a.c(),t=R("g"),n=R("path"),o=R("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(o,"fill-rule","nonzero"),c(o,"d","M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"),c(t,"fill","none"),c(t,"fill-rule","evenodd"),ke(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ke(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function i2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var _a=class extends H{constructor(e){super(),U(this,e,i2,t2,F,{})}},Nd=_a;function n2(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function o2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var ha=class extends H{constructor(e){super(),U(this,e,o2,n2,F,{})}},Od=ha;function l2(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"fill-opacity",".72"),c(t,"fill-rule","evenodd"),c(t,"d","M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272"),c(t,"clip-rule","evenodd"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function r2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var ga=class extends H{constructor(e){super(),U(this,e,r2,l2,F,{})}},Fd=ga;function s2(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function a2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var ba=class extends H{constructor(e){super(),U(this,e,a2,s2,F,{})}},Hd=ba;function u2(i){let e,t;return e=new Hd({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.style=n[2]),o&1&&(l["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function c2(i){let e,t;return e=new Fd({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.style=n[2]),o&1&&(l["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function f2(i){let e,t,n,o,l=[c2,u2],r=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ut()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(de(),_(r[f],1,1,()=>{r[f]=null}),me(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),r[e].d(s)}}}function d2(i,e,t){let n,{direction:o="left"}=e,l,r;return i.$$set=a=>{"direction"in a&&t(3,o=a.direction)},i.$$.update=()=>{i.$$.dirty&8&&(t(1,l=["up","down"].includes(o)),t(0,r=["right","down"].includes(o))),i.$$.dirty&1&&t(2,n=r?"transform: rotate(180deg);":void 0)},[r,l,n,o]}var va=class extends H{constructor(e){super(),U(this,e,d2,f2,F,{direction:3})}},Kn=va;function m2(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z"),c(t,"clip-rule","evenodd"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function p2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var ya=class extends H{constructor(e){super(),U(this,e,p2,m2,F,{})}},zd=ya;function _2(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function h2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var ka=class extends H{constructor(e){super(),U(this,e,h2,_2,F,{})}},qo=ka;function g2(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492"),c(t,"clip-rule","evenodd"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function b2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var wa=class extends H{constructor(e){super(),U(this,e,b2,g2,F,{})}},Sa=wa;function v2(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function y2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Ca=class extends H{constructor(e){super(),U(this,e,y2,v2,F,{})}},Ud=Ca;function S2(i){Pe(i,"svelte-1h807jq","ul.svelte-1h807jq.svelte-1h807jq{margin:0;padding:0}.menu.svelte-1h807jq.svelte-1h807jq{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s}.container-mobile.svelte-1h807jq.svelte-1h807jq{width:100%}.menu-desktop.svelte-1h807jq.svelte-1h807jq{position:absolute;right:0;bottom:0}.menu-mobile.svelte-1h807jq.svelte-1h807jq{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.menu-mobile.hidden.svelte-1h807jq.svelte-1h807jq{display:none}.menu-subList.svelte-1h807jq.svelte-1h807jq{min-width:134px;padding-bottom:0}.menu-subList-subtitles.svelte-1h807jq.svelte-1h807jq{min-width:164px}.menu-subList-traffic-saving.svelte-1h807jq.svelte-1h807jq{min-width:286px}.item.svelte-1h807jq.svelte-1h807jq{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;padding:0 24px 0 18px;white-space:nowrap;position:relative}.item-mobile.svelte-1h807jq.svelte-1h807jq{padding:0 14px}.item-quality.item-mobile.svelte-1h807jq.svelte-1h807jq,.item-traffic-saving.item-mobile.svelte-1h807jq.svelte-1h807jq,.item-helper-text.item-mobile.svelte-1h807jq.svelte-1h807jq{flex-direction:row-reverse}.item-helper-text.svelte-1h807jq.svelte-1h807jq{cursor:auto;pointer-events:none;white-space:normal;padding:7px 24px 7px 18px}.item-helper-text.svelte-1h807jq span.svelte-1h807jq{color:rgba(255, 255, 255, 0.48);line-height:18px;text-align:end}.item-helper-text.item-mobile.svelte-1h807jq.svelte-1h807jq{padding:7px 14px}.item-helper-text.item-mobile.svelte-1h807jq span.svelte-1h807jq{text-align:start}.submenu-value.svelte-1h807jq.svelte-1h807jq{overflow:hidden;;;text-overflow:ellipsis}.submenu-value-mobile.svelte-1h807jq.svelte-1h807jq{flex-grow:1}.item.svelte-1h807jq.svelte-1h807jq:hover{background-color:rgba(255, 255, 255, 0.08)}.item.svelte-1h807jq.svelte-1h807jq:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.item.svelte-1h807jq.svelte-1h807jq:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.item-mobile.svelte-1h807jq.svelte-1h807jq:hover{background:var(--mobile-settings-bg)}.menu-subList.svelte-1h807jq .item.svelte-1h807jq{color:rgba(255, 255, 255, 0.9)}.menu-subList.svelte-1h807jq .item.svelte-1h807jq:last-child{margin-bottom:4px}.menu-icon-wrapper.svelte-1h807jq.svelte-1h807jq{width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.menu-title.svelte-1h807jq.svelte-1h807jq{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.svelte-1h807jq.svelte-1h807jq{position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis}.menu-valueIcon.svelte-1h807jq.svelte-1h807jq{position:absolute;top:-10px;right:-18px;width:15px}.menu-valueIcon-list.svelte-1h807jq.svelte-1h807jq{position:absolute;top:-7px;width:15px;right:6px}.menu-valueIcon.svelte-1h807jq svg,.menu-valueIcon-list.svelte-1h807jq svg{color:var(--blue-light)}.menu-divider.svelte-1h807jq.svelte-1h807jq{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.svelte-1h807jq.svelte-1h807jq{color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex}.itemIcon.svelte-1h807jq.svelte-1h807jq{margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar{width:8px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.svelte-1h807jq.svelte-1h807jq{overflow-y:auto;max-height:160px;text-align:left}.close.svelte-1h807jq.svelte-1h807jq{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.svelte-1h807jq.svelte-1h807jq:before,.close.svelte-1h807jq.svelte-1h807jq:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.svelte-1h807jq.svelte-1h807jq:before{transform:rotate(45deg)}.close.svelte-1h807jq.svelte-1h807jq:after{transform:rotate(-45deg)}")}function Kd(i,e,t){let n=i.slice();return n[165]=e[t],n}function Wd(i,e,t){let n=i.slice();return n[168]=e[t],n}function jd(i,e,t){let n=i.slice();return n[171]=e[t],n}function Gd(i,e,t){let n=i.slice();return n[174]=e[t],n}function Qd(i){let e,t,n,o,l,r,a,s,u,f,p,h,C,g=i[40]&&Yd(i),w=i[30]&&Zd(i),b=i[29]&&Jd(i),E=i[28]&&xd(i),v=i[27]&&$d(i),y=i[26]&&e1(i),I=i[25]&&t1(i),K=i[40]&&i1(i);return{c(){e=P("div"),g&&g.c(),t=M(),n=P("ul"),w&&w.c(),o=M(),b&&b.c(),l=M(),E&&E.c(),r=M(),v&&v.c(),a=M(),y&&y.c(),s=M(),I&&I.c(),u=M(),K&&K.c(),c(n,"class","items svelte-1h807jq"),c(n,"role","menu"),c(n,"style",f=i[85]()),D(n,"items-mobile",i[40]),c(e,"class","menu svelte-1h807jq"),D(e,"menu-desktop",!i[40]),D(e,"menu-mobile",i[40]),D(e,"hidden",!i[13])},m(B,O){S(B,e,O),g&&g.m(e,null),m(e,t),m(e,n),w&&w.m(n,null),m(n,o),b&&b.m(n,null),m(n,l),E&&E.m(n,null),m(n,r),v&&v.m(n,null),m(n,a),y&&y.m(n,null),m(n,s),I&&I.m(n,null),m(n,u),K&&K.m(n,null),i[131](n),p=!0,h||(C=[pe(e,"keydown",i[91]),pe(e,"mouseenter",i[83]),pe(e,"mouseleave",i[84])],h=!0)},p(B,O){B[40]?g?g.p(B,O):(g=Yd(B),g.c(),g.m(e,t)):g&&(g.d(1),g=null),B[30]?w?(w.p(B,O),O[0]&1073741824&&d(w,1)):(w=Zd(B),w.c(),d(w,1),w.m(n,o)):w&&(de(),_(w,1,1,()=>{w=null}),me()),B[29]?b?(b.p(B,O),O[0]&536870912&&d(b,1)):(b=Jd(B),b.c(),d(b,1),b.m(n,l)):b&&(de(),_(b,1,1,()=>{b=null}),me()),B[28]?E?(E.p(B,O),O[0]&268435456&&d(E,1)):(E=xd(B),E.c(),d(E,1),E.m(n,r)):E&&(de(),_(E,1,1,()=>{E=null}),me()),B[27]?v?(v.p(B,O),O[0]&134217728&&d(v,1)):(v=$d(B),v.c(),d(v,1),v.m(n,a)):v&&(de(),_(v,1,1,()=>{v=null}),me()),B[26]?y?(y.p(B,O),O[0]&67108864&&d(y,1)):(y=e1(B),y.c(),d(y,1),y.m(n,s)):y&&(de(),_(y,1,1,()=>{y=null}),me()),B[25]?I?(I.p(B,O),O[0]&33554432&&d(I,1)):(I=t1(B),I.c(),d(I,1),I.m(n,u)):I&&(de(),_(I,1,1,()=>{I=null}),me()),B[40]?K?(K.p(B,O),O[1]&512&&d(K,1)):(K=i1(B),K.c(),d(K,1),K.m(n,null)):K&&(de(),_(K,1,1,()=>{K=null}),me()),(!p||O[1]&512)&&D(n,"items-mobile",B[40]),(!p||O[1]&512)&&D(e,"menu-desktop",!B[40]),(!p||O[1]&512)&&D(e,"menu-mobile",B[40]),(!p||O[0]&8192)&&D(e,"hidden",!B[13])},i(B){p||(d(w),d(b),d(E),d(v),d(y),d(I),d(K),p=!0)},o(B){_(w),_(b),_(E),_(v),_(y),_(I),_(K),p=!1},d(B){B&&k(e),g&&g.d(),w&&w.d(),b&&b.d(),E&&E.d(),v&&v.d(),y&&y.d(),I&&I.d(),K&&K.d(),i[131](null),h=!1,it(C)}}}function Yd(i){let e,t,n,o,l,r,a,s;return{c(){e=P("div"),t=P("div"),t.textContent=`${N("submenu_settings")}`,n=M(),o=P("div"),l=M(),r=P("div"),c(o,"class","close svelte-1h807jq"),c(e,"class","item menu-header svelte-1h807jq"),D(e,"item-mobile",i[40]),c(r,"class","menu-divider svelte-1h807jq")},m(u,f){S(u,e,f),m(e,t),m(e,n),m(e,o),S(u,l,f),S(u,r,f),a||(s=pe(o,"click",rt(i[66])),a=!0)},p(u,f){f[1]&512&&D(e,"item-mobile",u[40])},d(u){u&&(k(e),k(l),k(r)),a=!1,s()}}}function Zd(i){let e,t,n,o,l,r,a,s,u,f,p,h,C;n=new wr({});let g=i[39]&&!i[40]&&Xd(i);return{c(){e=P("li"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("menu_quality")}`,r=M(),a=P("div"),s=Re(i[19]),u=M(),g&&g.c(),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=N("aria_label_menu_quality",{actual:i[32]})),c(e,"aria-haspopup","true"),D(e,"item-mobile",i[40])},m(w,b){S(w,e,b),m(e,t),A(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),m(a,u),g&&g.m(a,null),i[126](e),p=!0,h||(C=[pe(e,"click",rt(i[67])),pe(e,"keydown",i[92])],h=!0)},p(w,b){(!p||b[0]&524288)&&We(s,w[19]),w[39]&&!w[40]?g?(g.p(w,b),b[1]&768&&d(g,1)):(g=Xd(w),g.c(),d(g,1),g.m(a,null)):g&&(de(),_(g,1,1,()=>{g=null}),me()),(!p||b[1]&2&&f!==(f=N("aria_label_menu_quality",{actual:w[32]})))&&c(e,"aria-label",f),(!p||b[1]&512)&&D(e,"item-mobile",w[40])},i(w){p||(d(n.$$.fragment,w),d(g),p=!0)},o(w){_(n.$$.fragment,w),_(g),p=!1},d(w){w&&k(e),L(n),g&&g.d(),i[126](null),h=!1,it(C)}}}function Xd(i){let e,t,n;var o=i[39];function l(r,a){return{}}return o&&(t=vn(o,l(i))),{c(){e=P("div"),t&&V(t.$$.fragment),c(e,"class","menu-valueIcon svelte-1h807jq")},m(r,a){S(r,e,a),t&&A(t,e,null),n=!0},p(r,a){if(a[1]&256&&o!==(o=r[39])){if(t){de();let s=t;_(s.$$.fragment,1,0,()=>{L(s,1)}),me()}o?(t=vn(o,l(r,a)),V(t.$$.fragment),d(t.$$.fragment,1),A(t,e,null)):t=null}},i(r){n||(t&&d(t.$$.fragment,r),n=!0)},o(r){t&&_(t.$$.fragment,r),n=!1},d(r){r&&k(e),t&&L(t)}}}function Jd(i){let e,t,n,o,l,r,a,s=$n(i[41],i[9])+"",u,f,p,h,C;return n=new Od({}),{c(){e=P("li"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("menu_audio_languages")}`,r=M(),a=P("div"),u=Re(s),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=N("aria_label_menu_audio_languages",{actual:$n(i[41],i[9])})),c(e,"aria-haspopup","true"),D(e,"item-mobile",i[40])},m(g,w){S(g,e,w),m(e,t),A(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,u),i[127](e),p=!0,h||(C=[pe(e,"click",rt(i[68])),pe(e,"keydown",i[93])],h=!0)},p(g,w){(!p||w[0]&512|w[1]&1024)&&s!==(s=$n(g[41],g[9])+"")&&We(u,s),(!p||w[0]&512|w[1]&1024&&f!==(f=N("aria_label_menu_audio_languages",{actual:$n(g[41],g[9])})))&&c(e,"aria-label",f),(!p||w[1]&512)&&D(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&k(e),L(n),i[127](null),h=!1,it(C)}}}function xd(i){let e,t,n,o,l,r,a,s,u,f,p,h,C;return n=new Nd({}),{c(){e=P("li"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("menu_playback_rate")}`,r=M(),a=P("div"),s=Re(i[11]),u=Re("x"),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=N("aria_label_menu_rate",{actual:i[33]})),c(e,"aria-haspopup","true"),D(e,"item-mobile",i[40])},m(g,w){S(g,e,w),m(e,t),A(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),m(a,u),i[128](e),p=!0,h||(C=[pe(e,"click",rt(Ht(i[73]))),pe(e,"keydown",i[98])],h=!0)},p(g,w){(!p||w[0]&2048)&&We(s,g[11]),(!p||w[1]&4&&f!==(f=N("aria_label_menu_rate",{actual:g[33]})))&&c(e,"aria-label",f),(!p||w[1]&512)&&D(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&k(e),L(n),i[128](null),h=!1,it(C)}}}function $d(i){let e,t,n,o,l,r,a,s=i[42].displayValue+"",u,f,p,h,C;return n=new Sr({}),{c(){e=P("li"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("subtitles_caption")}`,r=M(),a=P("div"),u=Re(s),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=N("aria_label_menu_subtitle",{actual:i[42].displayValue})),c(e,"aria-haspopup","true"),D(e,"item-mobile",i[40])},m(g,w){S(g,e,w),m(e,t),A(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,u),i[129](e),p=!0,h||(C=[pe(e,"click",rt(i[75])),pe(e,"keydown",i[101])],h=!0)},p(g,w){(!p||w[1]&2048)&&s!==(s=g[42].displayValue+"")&&We(u,s),(!p||w[1]&2048&&f!==(f=N("aria_label_menu_subtitle",{actual:g[42].displayValue})))&&c(e,"aria-label",f),(!p||w[1]&512)&&D(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&k(e),L(n),i[129](null),h=!1,it(C)}}}function e1(i){let e,t,n,o,l,r,a,s,u,f,p,h;return n=new qd({}),{c(){e=P("li"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("menu_traffic_saving")}`,r=M(),a=P("div"),s=Re(i[31]),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",u=N("aria_label_menu_traffic_saving",{actual:i[31]})),c(e,"aria-haspopup","true"),D(e,"item-mobile",i[40])},m(C,g){S(C,e,g),m(e,t),A(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),i[130](e),f=!0,p||(h=[pe(e,"click",rt(i[69])),pe(e,"keydown",i[104])],p=!0)},p(C,g){(!f||g[1]&1)&&We(s,C[31]),(!f||g[1]&1&&u!==(u=N("aria_label_menu_traffic_saving",{actual:C[31]})))&&c(e,"aria-label",u),(!f||g[1]&512)&&D(e,"item-mobile",C[40])},i(C){f||(d(n.$$.fragment,C),f=!0)},o(C){_(n.$$.fragment,C),f=!1},d(C){C&&k(e),L(n),i[130](null),p=!1,it(h)}}}function t1(i){let e,t,n,o,l,r,a,s,u;return n=new Dd({}),{c(){e=P("li"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("download_video_caption")}`,c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",r=N("aria_label_menu_download")),D(e,"item-mobile",i[40])},m(f,p){S(f,e,p),m(e,t),A(n,t,null),m(e,o),m(e,l),a=!0,s||(u=[pe(e,"click",rt(i[78])),pe(e,"keydown",i[107])],s=!0)},p(f,p){(!a||p[1]&512)&&D(e,"item-mobile",f[40])},i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&k(e),L(n),s=!1,it(u)}}}function i1(i){let e,t,n,o,l,r,a,s,u,f,p,h,C,g,w,b,E,v,y=i[44].showSupport&&C2(i);o=new Sa({});let I=i[44].features.saveTraceInfoToFile&&P2(i);return h=new Ud({}),{c(){y&&y.c(),e=M(),t=P("li"),n=P("div"),V(o.$$.fragment),l=M(),r=P("div"),r.textContent=`${N("menu_copy_debug")}`,s=M(),I&&I.c(),u=M(),f=P("li"),p=P("div"),V(h.$$.fragment),C=M(),g=P("div"),g.textContent=`${N("menu_debug_overlay")}`,c(n,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"class","menu-title svelte-1h807jq"),c(t,"class","item item-mobile svelte-1h807jq"),c(t,"role","menuitem"),c(t,"tabindex","0"),c(t,"aria-label",a=N("menu_copy_debug")),c(p,"class","menu-icon-wrapper svelte-1h807jq"),c(g,"class","menu-title svelte-1h807jq"),c(f,"class","item item-mobile svelte-1h807jq"),c(f,"role","menuitem"),c(f,"tabindex","0"),c(f,"aria-label",w=i[43]?N("aria_label_menu_debug_overlay_disable"):N("aria_label_menu_debug_overlay_enable"))},m(K,B){y&&y.m(K,B),S(K,e,B),S(K,t,B),m(t,n),A(o,n,null),m(t,l),m(t,r),S(K,s,B),I&&I.m(K,B),S(K,u,B),S(K,f,B),m(f,p),A(h,p,null),m(f,C),m(f,g),b=!0,E||(v=[pe(t,"click",rt(i[80])),pe(t,"keydown",i[109]),pe(f,"click",rt(i[81])),pe(f,"keydown",i[110])],E=!0)},p(K,B){K[44].showSupport&&y.p(K,B),K[44].features.saveTraceInfoToFile&&I.p(K,B),(!b||B[1]&4096&&w!==(w=K[43]?N("aria_label_menu_debug_overlay_disable"):N("aria_label_menu_debug_overlay_enable")))&&c(f,"aria-label",w)},i(K){b||(d(y),d(o.$$.fragment,K),d(I),d(h.$$.fragment,K),b=!0)},o(K){_(y),_(o.$$.fragment,K),_(I),_(h.$$.fragment,K),b=!1},d(K){K&&(k(e),k(t),k(s),k(u),k(f)),y&&y.d(K),L(o),I&&I.d(K),L(h),E=!1,it(v)}}}function C2(i){let e,t,n,o,l,r,a,s,u;return n=new zd({}),{c(){e=P("li"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("menu_report")}`,c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(e,"class","item item-mobile svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",r=`${N("menu_report")}. ${N("aria_label_new_tab_alert")}`)},m(f,p){S(f,e,p),m(e,t),A(n,t,null),m(e,o),m(e,l),a=!0,s||(u=[pe(e,"click",rt(i[79])),pe(e,"keydown",i[108])],s=!0)},p:Se,i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&k(e),L(n),s=!1,it(u)}}}function P2(i){let e,t,n,o,l,r,a,s,u;return n=new Sa({}),{c(){e=P("li"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("menu_save_debug")}`,c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(e,"class","item item-mobile svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",r=N("menu_save_debug"))},m(f,p){S(f,e,p),m(e,t),A(n,t,null),m(e,o),m(e,l),a=!0,s||(u=[pe(e,"click",rt(i[82])),pe(e,"keydown",i[111])],s=!0)},p:Se,i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&k(e),L(n),s=!1,it(u)}}}function n1(i){let e,t,n,o,l,r,a,s,u,f,p,h,C,g;n=new Kn({props:{direction:"left"}});let w=kt(i[10]),b=[];for(let v=0;v<w.length;v+=1)b[v]=r1(Gd(i,w,v));let E=v=>_(b[v],1,1,()=>{b[v]=null});return{c(){e=P("div"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("submenu_quality")}`,a=M(),s=P("div"),u=M(),f=P("ul");for(let v=0;v<b.length;v+=1)b[v].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",r=N("aria_label_submenu_back")),D(t,"item-mobile",i[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",p=i[85](i[20]?.clientHeight,!0)),D(f,"items-mobile",i[40]),c(e,"class","menu menu-subList svelte-1h807jq"),D(e,"menu-desktop",!i[40]),D(e,"menu-mobile",i[40])},m(v,y){S(v,e,y),m(e,t),A(n,t,null),m(t,o),m(t,l),i[132](t),m(e,a),m(e,s),m(e,u),m(e,f);for(let I=0;I<b.length;I+=1)b[I]&&b[I].m(f,null);i[135](f),h=!0,C||(g=[pe(t,"click",rt(i[77])),pe(f,"keydown",i[94])],C=!0)},p(v,y){if((!h||y[1]&512)&&D(t,"item-mobile",v[40]),y[0]&1024|y[1]&512|y[2]&256|y[3]&4){w=kt(v[10]);let I;for(I=0;I<w.length;I+=1){let K=Gd(v,w,I);b[I]?(b[I].p(K,y),d(b[I],1)):(b[I]=r1(K),b[I].c(),d(b[I],1),b[I].m(f,null))}for(de(),I=w.length;I<b.length;I+=1)E(I);me()}(!h||y[0]&1048576&&p!==(p=v[85](v[20]?.clientHeight,!0)))&&c(f,"style",p),(!h||y[1]&512)&&D(f,"items-mobile",v[40]),(!h||y[1]&512)&&D(e,"menu-desktop",!v[40]),(!h||y[1]&512)&&D(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let y=0;y<w.length;y+=1)d(b[y]);h=!0}},o(v){_(n.$$.fragment,v),b=b.filter(Boolean);for(let y=0;y<b.length;y+=1)_(b[y]);h=!1},d(v){v&&k(e),L(n),i[132](null),Li(b,v),i[135](null),C=!1,it(g)}}}function o1(i){let e,t,n;return t=new qo({}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function l1(i){let e,t,n;var o=ao(i[174].value);function l(r,a){return{}}return o&&(t=vn(o,l(i))),{c(){e=P("div"),t&&V(t.$$.fragment),c(e,"class","menu-valueIcon-list svelte-1h807jq")},m(r,a){S(r,e,a),t&&A(t,e,null),n=!0},p(r,a){if(a[0]&1024&&o!==(o=ao(r[174].value))){if(t){de();let s=t;_(s.$$.fragment,1,0,()=>{L(s,1)}),me()}o?(t=vn(o,l(r,a)),V(t.$$.fragment),d(t.$$.fragment,1),A(t,e,null)):t=null}},i(r){n||(t&&d(t.$$.fragment,r),n=!0)},o(r){t&&_(t.$$.fragment,r),n=!1},d(r){r&&k(e),t&&L(t)}}}function r1(i){let e,t,n,o=i[174].displayValue+"",l,r,a=!i[40]&&ao(i[174].value),s,u,f,p,h,C,g=i[174].selected&&o1(i),w=a&&l1(i);function b(){return i[133](i[174])}function E(...v){return i[134](i[174],...v)}return{c(){e=P("li"),g&&g.c(),t=M(),n=P("div"),l=Re(o),r=M(),w&&w.c(),s=M(),c(n,"class","submenu-value svelte-1h807jq"),D(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",u=i[174].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=i[174].displayValue),D(e,"item-mobile",i[40])},m(v,y){S(v,e,y),g&&g.m(e,null),m(e,t),m(e,n),m(n,l),m(e,r),w&&w.m(e,null),m(e,s),p=!0,h||(C=[pe(e,"click",rt(b)),pe(e,"keydown",E)],h=!0)},p(v,y){i=v,i[174].selected?g?y[0]&1024&&d(g,1):(g=o1(i),g.c(),d(g,1),g.m(e,t)):g&&(de(),_(g,1,1,()=>{g=null}),me()),(!p||y[0]&1024)&&o!==(o=i[174].displayValue+"")&&We(l,o),(!p||y[1]&512)&&D(n,"submenu-value-mobile",i[40]),y[0]&1024|y[1]&512&&(a=!i[40]&&ao(i[174].value)),a?w?(w.p(i,y),y[0]&1024|y[1]&512&&d(w,1)):(w=l1(i),w.c(),d(w,1),w.m(e,s)):w&&(de(),_(w,1,1,()=>{w=null}),me()),(!p||y[0]&1024&&u!==(u=i[174].value))&&c(e,"data-value",u),(!p||y[0]&1024&&f!==(f=i[174].displayValue))&&c(e,"aria-label",f),(!p||y[1]&512)&&D(e,"item-mobile",i[40])},i(v){p||(d(g),d(w),p=!0)},o(v){_(g),_(w),p=!1},d(v){v&&k(e),g&&g.d(),w&&w.d(),h=!1,it(C)}}}function s1(i){let e,t,n,o,l,r,a,s,u,f,p,h,C,g;n=new Kn({props:{direction:"left"}});let w=kt(i[9]),b=[];for(let v=0;v<w.length;v+=1)b[v]=u1(jd(i,w,v));let E=v=>_(b[v],1,1,()=>{b[v]=null});return{c(){e=P("div"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("submenu_audio_languages")}`,a=M(),s=P("div"),u=M(),f=P("ul");for(let v=0;v<b.length;v+=1)b[v].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",r=N("aria_label_submenu_back")),D(t,"item-mobile",i[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",p=i[85](i[21]?.clientHeight,!0)),D(f,"items-mobile",i[40]),c(e,"class","menu menu-subList svelte-1h807jq"),D(e,"menu-desktop",!i[40]),D(e,"menu-mobile",i[40])},m(v,y){S(v,e,y),m(e,t),A(n,t,null),m(t,o),m(t,l),i[136](t),m(e,a),m(e,s),m(e,u),m(e,f);for(let I=0;I<b.length;I+=1)b[I]&&b[I].m(f,null);i[139](f),h=!0,C||(g=[pe(t,"click",rt(i[77])),pe(f,"keydown",i[96])],C=!0)},p(v,y){if((!h||y[1]&512)&&D(t,"item-mobile",v[40]),y[0]&512|y[1]&1536|y[2]&512|y[3]&16){w=kt(v[9]);let I;for(I=0;I<w.length;I+=1){let K=jd(v,w,I);b[I]?(b[I].p(K,y),d(b[I],1)):(b[I]=u1(K),b[I].c(),d(b[I],1),b[I].m(f,null))}for(de(),I=w.length;I<b.length;I+=1)E(I);me()}(!h||y[0]&2097152&&p!==(p=v[85](v[21]?.clientHeight,!0)))&&c(f,"style",p),(!h||y[1]&512)&&D(f,"items-mobile",v[40]),(!h||y[1]&512)&&D(e,"menu-desktop",!v[40]),(!h||y[1]&512)&&D(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let y=0;y<w.length;y+=1)d(b[y]);h=!0}},o(v){_(n.$$.fragment,v),b=b.filter(Boolean);for(let y=0;y<b.length;y+=1)_(b[y]);h=!1},d(v){v&&k(e),L(n),i[136](null),Li(b,v),i[139](null),C=!1,it(g)}}}function a1(i){let e,t,n;return t=new qo({}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function u1(i){let e,t,n,o=$n(i[171],i[9])+"",l,r,a,s,u,f,p,h=i[171].id===i[41]?.id&&a1(i);function C(){return i[137](i[171])}function g(...w){return i[138](i[171],...w)}return{c(){e=P("li"),h&&h.c(),t=M(),n=P("div"),l=Re(o),r=M(),c(n,"class","submenu-value svelte-1h807jq"),D(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=i[171].id),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=$n(i[171],i[9])),D(e,"item-mobile",i[40])},m(w,b){S(w,e,b),h&&h.m(e,null),m(e,t),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[pe(e,"click",rt(C)),pe(e,"keydown",g)],f=!0)},p(w,b){i=w,i[171].id===i[41]?.id?h?b[0]&512|b[1]&1024&&d(h,1):(h=a1(i),h.c(),d(h,1),h.m(e,t)):h&&(de(),_(h,1,1,()=>{h=null}),me()),(!u||b[0]&512)&&o!==(o=$n(i[171],i[9])+"")&&We(l,o),(!u||b[1]&512)&&D(n,"submenu-value-mobile",i[40]),(!u||b[0]&512&&a!==(a=i[171].id))&&c(e,"data-value",a),(!u||b[0]&512&&s!==(s=$n(i[171],i[9])))&&c(e,"aria-label",s),(!u||b[1]&512)&&D(e,"item-mobile",i[40])},i(w){u||(d(h),u=!0)},o(w){_(h),u=!1},d(w){w&&k(e),h&&h.d(),f=!1,it(p)}}}function c1(i){let e,t,n,o,l,r,a,s,u,f,p,h,C,g;n=new Kn({props:{direction:"left"}});let w=kt(i[8]),b=[];for(let v=0;v<w.length;v+=1)b[v]=d1(Wd(i,w,v));let E=v=>_(b[v],1,1,()=>{b[v]=null});return{c(){e=P("div"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("submenu_playback_rate")}`,a=M(),s=P("div"),u=M(),f=P("ul");for(let v=0;v<b.length;v+=1)b[v].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",r=N("aria_label_submenu_back")),D(t,"item-mobile",i[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",p=i[85](i[22]?.clientHeight,!0)),D(f,"items-mobile",i[40]),c(e,"class","menu menu-subList svelte-1h807jq"),D(e,"menu-desktop",!i[40]),D(e,"menu-mobile",i[40])},m(v,y){S(v,e,y),m(e,t),A(n,t,null),m(t,o),m(t,l),i[140](t),m(e,a),m(e,s),m(e,u),m(e,f);for(let I=0;I<b.length;I+=1)b[I]&&b[I].m(f,null);i[143](f),h=!0,C||(g=[pe(t,"click",rt(i[77])),pe(f,"keydown",i[99])],C=!0)},p(v,y){if((!h||y[1]&512)&&D(t,"item-mobile",v[40]),y[0]&256|y[1]&512|y[2]&4096|y[3]&128){w=kt(v[8]);let I;for(I=0;I<w.length;I+=1){let K=Wd(v,w,I);b[I]?(b[I].p(K,y),d(b[I],1)):(b[I]=d1(K),b[I].c(),d(b[I],1),b[I].m(f,null))}for(de(),I=w.length;I<b.length;I+=1)E(I);me()}(!h||y[0]&4194304&&p!==(p=v[85](v[22]?.clientHeight,!0)))&&c(f,"style",p),(!h||y[1]&512)&&D(f,"items-mobile",v[40]),(!h||y[1]&512)&&D(e,"menu-desktop",!v[40]),(!h||y[1]&512)&&D(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let y=0;y<w.length;y+=1)d(b[y]);h=!0}},o(v){_(n.$$.fragment,v),b=b.filter(Boolean);for(let y=0;y<b.length;y+=1)_(b[y]);h=!1},d(v){v&&k(e),L(n),i[140](null),Li(b,v),i[143](null),C=!1,it(g)}}}function f1(i){let e,t,n;return t=new qo({}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function d1(i){let e,t,n,o=i[168].displayValue+"",l,r,a,s,u,f,p,h=i[168].selected&&f1(i);function C(){return i[141](i[168])}function g(...w){return i[142](i[168],...w)}return{c(){e=P("li"),h&&h.c(),t=M(),n=P("div"),l=Re(o),r=M(),c(n,"class","submenu-value svelte-1h807jq"),D(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=i[168].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[168].displayValue),D(e,"item-mobile",i[40])},m(w,b){S(w,e,b),h&&h.m(e,null),m(e,t),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[pe(e,"click",rt(C)),pe(e,"keydown",g)],f=!0)},p(w,b){i=w,i[168].selected?h?b[0]&256&&d(h,1):(h=f1(i),h.c(),d(h,1),h.m(e,t)):h&&(de(),_(h,1,1,()=>{h=null}),me()),(!u||b[0]&256)&&o!==(o=i[168].displayValue+"")&&We(l,o),(!u||b[1]&512)&&D(n,"submenu-value-mobile",i[40]),(!u||b[0]&256&&a!==(a=i[168].value))&&c(e,"data-value",a),(!u||b[0]&256&&s!==(s=i[168].displayValue))&&c(e,"aria-label",s),(!u||b[1]&512)&&D(e,"item-mobile",i[40])},i(w){u||(d(h),u=!0)},o(w){_(h),u=!1},d(w){w&&k(e),h&&h.d(),f=!1,it(p)}}}function m1(i){let e,t,n,o,l,r,a,s,u,f,p,h,C,g,w,b,E,v,y,I,K,B,O,oe,he,G,X,ue,j;n=new Kn({props:{direction:"left"}});let z=!i[6]&&p1(i),Q=i[6]&&_1(i);return{c(){e=P("div"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("submenu_traffic_saving")}`,a=M(),s=P("div"),u=M(),f=P("div"),p=P("ul"),h=P("li"),z&&z.c(),C=M(),g=P("div"),g.textContent=`${N("traffic_saving_disable")}`,b=M(),E=P("li"),Q&&Q.c(),v=M(),y=P("div"),y.textContent=`${N("traffic_saving_enable")}`,K=M(),B=P("div"),O=M(),oe=P("div"),he=P("span"),he.textContent=`${N("traffic_saving_helper_text")}`,c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",r=N("aria_label_submenu_back")),D(t,"item-mobile",i[40]),c(s,"class","menu-divider svelte-1h807jq"),c(g,"class","submenu-value svelte-1h807jq"),D(g,"submenu-value-mobile",i[40]),c(h,"class","item item-traffic-saving svelte-1h807jq"),c(h,"role","menuitem"),c(h,"tabindex","0"),c(h,"aria-label",w=N("aria_label_submenu_traffic_saving_off")),D(h,"item-mobile",i[40]),c(y,"class","submenu-value svelte-1h807jq"),D(y,"submenu-value-mobile",i[40]),c(E,"class","item item-traffic-saving svelte-1h807jq"),c(E,"role","menuitem"),c(E,"tabindex","0"),c(E,"aria-label",I=`${N("aria_label_submenu_traffic_saving_on")}. ${N("traffic_saving_helper_text")}`),D(E,"item-mobile",i[40]),c(p,"class","items svelte-1h807jq"),c(p,"role","menu"),D(p,"items-mobile",i[40]),c(B,"class","menu-divider svelte-1h807jq"),c(he,"class","svelte-1h807jq"),c(oe,"class","item item-helper-text svelte-1h807jq"),D(oe,"item-mobile",i[40]),c(f,"style",G=i[85](i[23]?.clientHeight,!0)),c(e,"class","menu menu-subList menu-subList-traffic-saving svelte-1h807jq"),D(e,"menu-desktop",!i[40]),D(e,"menu-mobile",i[40])},m($,W){S($,e,W),m(e,t),A(n,t,null),m(t,o),m(t,l),i[144](t),m(e,a),m(e,s),m(e,u),m(e,f),m(f,p),m(p,h),z&&z.m(h,null),m(h,C),m(h,g),m(p,b),m(p,E),Q&&Q.m(E,null),m(E,v),m(E,y),i[149](p),m(f,K),m(f,B),m(f,O),m(f,oe),m(oe,he),X=!0,ue||(j=[pe(t,"click",rt(i[77])),pe(h,"click",rt(i[145])),pe(h,"keydown",i[146]),pe(E,"click",rt(i[147])),pe(E,"keydown",i[148]),pe(p,"keydown",i[105])],ue=!0)},p($,W){(!X||W[1]&512)&&D(t,"item-mobile",$[40]),$[6]?z&&(de(),_(z,1,1,()=>{z=null}),me()):z?W[0]&64&&d(z,1):(z=p1($),z.c(),d(z,1),z.m(h,C)),(!X||W[1]&512)&&D(g,"submenu-value-mobile",$[40]),(!X||W[1]&512)&&D(h,"item-mobile",$[40]),$[6]?Q?W[0]&64&&d(Q,1):(Q=_1($),Q.c(),d(Q,1),Q.m(E,v)):Q&&(de(),_(Q,1,1,()=>{Q=null}),me()),(!X||W[1]&512)&&D(y,"submenu-value-mobile",$[40]),(!X||W[1]&512)&&D(E,"item-mobile",$[40]),(!X||W[1]&512)&&D(p,"items-mobile",$[40]),(!X||W[1]&512)&&D(oe,"item-mobile",$[40]),(!X||W[0]&8388608&&G!==(G=$[85]($[23]?.clientHeight,!0)))&&c(f,"style",G),(!X||W[1]&512)&&D(e,"menu-desktop",!$[40]),(!X||W[1]&512)&&D(e,"menu-mobile",$[40])},i($){X||(d(n.$$.fragment,$),d(z),d(Q),X=!0)},o($){_(n.$$.fragment,$),_(z),_(Q),X=!1},d($){$&&k(e),L(n),i[144](null),z&&z.d(),Q&&Q.d(),i[149](null),ue=!1,it(j)}}}function p1(i){let e,t,n;return t=new qo({}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function _1(i){let e,t,n;return t=new qo({}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function h1(i){let e,t,n,o,l,r,a,s,u,f,p,h;n=new Kn({props:{direction:"left"}});let C=kt(i[7]),g=[];for(let b=0;b<C.length;b+=1)g[b]=b1(Kd(i,C,b));let w=b=>_(g[b],1,1,()=>{g[b]=null});return{c(){e=P("div"),t=P("div"),V(n.$$.fragment),o=M(),l=P("div"),l.textContent=`${N("subtitles_caption")}`,a=M(),s=P("ul");for(let b=0;b<g.length;b+=1)g[b].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",r=N("aria_label_submenu_back")),D(t,"item-mobile",i[40]),c(s,"class","items svelte-1h807jq"),c(s,"role","menu"),c(s,"style",u=i[85](i[24]?.clientHeight,!0)),D(s,"items-mobile",i[40]),c(e,"class","menu menu-subList menu-subList-subtitles svelte-1h807jq"),D(e,"menu-desktop",!i[40]),D(e,"menu-mobile",i[40])},m(b,E){S(b,e,E),m(e,t),A(n,t,null),m(t,o),m(t,l),i[150](t),m(e,a),m(e,s);for(let v=0;v<g.length;v+=1)g[v]&&g[v].m(s,null);i[153](s),f=!0,p||(h=[pe(t,"click",rt(i[77])),pe(s,"keydown",i[102])],p=!0)},p(b,E){if((!f||E[1]&512)&&D(t,"item-mobile",b[40]),E[0]&128|E[1]&512|E[2]&16384|E[3]&1024){C=kt(b[7]);let v;for(v=0;v<C.length;v+=1){let y=Kd(b,C,v);g[v]?(g[v].p(y,E),d(g[v],1)):(g[v]=b1(y),g[v].c(),d(g[v],1),g[v].m(s,null))}for(de(),v=C.length;v<g.length;v+=1)w(v);me()}(!f||E[0]&16777216&&u!==(u=b[85](b[24]?.clientHeight,!0)))&&c(s,"style",u),(!f||E[1]&512)&&D(s,"items-mobile",b[40]),(!f||E[1]&512)&&D(e,"menu-desktop",!b[40]),(!f||E[1]&512)&&D(e,"menu-mobile",b[40])},i(b){if(!f){d(n.$$.fragment,b);for(let E=0;E<C.length;E+=1)d(g[E]);f=!0}},o(b){_(n.$$.fragment,b),g=g.filter(Boolean);for(let E=0;E<g.length;E+=1)_(g[E]);f=!1},d(b){b&&k(e),L(n),i[150](null),Li(g,b),i[153](null),p=!1,it(h)}}}function g1(i){let e,t,n;return t=new qo({}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function b1(i){let e,t,n,o=i[165].displayValue+"",l,r,a,s,u,f,p,h=i[165].selected&&g1(i);function C(){return i[151](i[165])}function g(...w){return i[152](i[165],...w)}return{c(){e=P("li"),h&&h.c(),t=M(),n=P("div"),l=Re(o),r=M(),c(n,"class","submenu-value svelte-1h807jq"),D(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=i[165].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[165].displayValue),D(e,"item-mobile",i[40])},m(w,b){S(w,e,b),h&&h.m(e,null),m(e,t),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[pe(e,"click",rt(C)),pe(e,"keydown",g)],f=!0)},p(w,b){i=w,i[165].selected?h?b[0]&128&&d(h,1):(h=g1(i),h.c(),d(h,1),h.m(e,t)):h&&(de(),_(h,1,1,()=>{h=null}),me()),(!u||b[0]&128)&&o!==(o=i[165].displayValue+"")&&We(l,o),(!u||b[1]&512)&&D(n,"submenu-value-mobile",i[40]),(!u||b[0]&128&&a!==(a=i[165].value))&&c(e,"data-value",a),(!u||b[0]&128&&s!==(s=i[165].displayValue))&&c(e,"aria-label",s),(!u||b[1]&512)&&D(e,"item-mobile",i[40])},i(w){u||(d(h),u=!0)},o(w){_(h),u=!1},d(w){w&&k(e),h&&h.d(),f=!1,it(p)}}}function I2(i){let e,t,n,o,l,r,a,s=i[12]&&Qd(i),u=i[14]&&n1(i),f=i[15]&&s1(i),p=i[16]&&c1(i),h=i[18]&&m1(i),C=i[17]&&h1(i);return{c(){e=P("div"),s&&s.c(),t=M(),u&&u.c(),n=M(),f&&f.c(),o=M(),p&&p.c(),l=M(),h&&h.c(),r=M(),C&&C.c(),c(e,"class","svelte-1h807jq"),D(e,"hidden",!i[12]),D(e,"container-mobile",i[40])},m(g,w){S(g,e,w),s&&s.m(e,null),m(e,t),u&&u.m(e,null),m(e,n),f&&f.m(e,null),m(e,o),p&&p.m(e,null),m(e,l),h&&h.m(e,null),m(e,r),C&&C.m(e,null),a=!0},p(g,w){g[12]?s?(s.p(g,w),w[0]&4096&&d(s,1)):(s=Qd(g),s.c(),d(s,1),s.m(e,t)):s&&(de(),_(s,1,1,()=>{s=null}),me()),g[14]?u?(u.p(g,w),w[0]&16384&&d(u,1)):(u=n1(g),u.c(),d(u,1),u.m(e,n)):u&&(de(),_(u,1,1,()=>{u=null}),me()),g[15]?f?(f.p(g,w),w[0]&32768&&d(f,1)):(f=s1(g),f.c(),d(f,1),f.m(e,o)):f&&(de(),_(f,1,1,()=>{f=null}),me()),g[16]?p?(p.p(g,w),w[0]&65536&&d(p,1)):(p=c1(g),p.c(),d(p,1),p.m(e,l)):p&&(de(),_(p,1,1,()=>{p=null}),me()),g[18]?h?(h.p(g,w),w[0]&262144&&d(h,1)):(h=m1(g),h.c(),d(h,1),h.m(e,r)):h&&(de(),_(h,1,1,()=>{h=null}),me()),g[17]?C?(C.p(g,w),w[0]&131072&&d(C,1)):(C=h1(g),C.c(),d(C,1),C.m(e,null)):C&&(de(),_(C,1,1,()=>{C=null}),me()),(!a||w[0]&4096)&&D(e,"hidden",!g[12]),(!a||w[1]&512)&&D(e,"container-mobile",g[40])},i(g){a||(d(s),d(u),d(f),d(p),d(h),d(C),a=!0)},o(g){_(s),_(u),_(f),_(p),_(h),_(C),a=!1},d(g){g&&k(e),s&&s.d(),u&&u.d(),f&&f.d(),p&&p.d(),h&&h.d(),C&&C.d()}}}var T2=18;function E2(i,e,t){let n,o,l,r,a,s,u,f,p,h,C,g,w,b,E,v,y,I,K,B,O,oe,he,G,X,ue,j,{ref:z=void 0}=e,{supportLink:Q}=e,{playerControlsHeight:$=0}=e,{returnFocus:W}=e,Y=ot(),ie=Dt(),re=Y.state.audioStream$;q(i,re,ee=>t(41,g=ee));let Ve=Y.state.availableAudioStreams$;q(i,Ve,ee=>t(9,w=ee));let Je=Y.state.currentQuality$;q(i,Je,ee=>t(120,v=ee));let Ce=Y.state.availableQualities$;q(i,Ce,ee=>t(10,b=ee));let Me=Y.state.autoQualityLimitingAvailable$;q(i,Me,ee=>t(124,B=ee));let ze=Y.state.isAutoQualityEnabled$;q(i,ze,ee=>t(121,y=ee));let $e=Y.state.currentPlaybackRate$;q(i,$e,ee=>t(11,E=ee));let fe=Y.state.availablePlaybackRates$;q(i,fe,ee=>t(8,p=ee));let _e=Y.state.currentSubtitle$;q(i,_e,ee=>t(42,ue=ee));let at=Y.state.availableSubtitlesList$;q(i,at,ee=>t(7,u=ee));let we=Y.state.canDownload,Fe=Y.state.hasMpegSources$;q(i,Fe,ee=>t(125,O=ee));let ft=Y.ui.settingsMenuVisible;q(i,ft,ee=>t(12,X=ee));let Ke=Y.ui.settingsMenuOpenedByKeyboard;q(i,Ke,ee=>t(155,o=ee));let Xe=Y.ui.isMobile;q(i,Xe,ee=>t(40,l=ee));let je=Y.ui.mobileNotReportControlHidden$;q(i,je,ee=>t(122,I=ee));let et=Y.state.canChangePlaybackSpeed$;q(i,et,ee=>t(123,K=ee));let x=Y.ui.isFullscreen;q(i,x,ee=>t(158,G=ee));let Oe=Y.state.trafficSavingEnabled$;q(i,Oe,ee=>t(6,a=ee));let Ge=Y.ui.playerSize;q(i,Ge,ee=>t(157,he=ee));let se=Y.ui.debugPanelVisible;q(i,se,ee=>t(43,j=ee));let le=Y.ui.playerSize;q(i,le,ee=>t(156,oe=ee));let lt=Y.state.isInteractiveTime$,be=Y.actions.internal.downloadVideo,Ue=Y.actions.internal.closeSettingsMenu,tt=!0,dt=!1,bt=!1,Tt=!1,Qe=!1,zt=!1,Vt=!1;function yt(){o||W?.(),Ue(),Vt=!1}function ai(){t(13,tt=!1),t(14,dt=!0)}function st(){t(13,tt=!1),t(15,bt=!0)}function vt(){t(13,tt=!1),t(18,zt=!0)}function jt(ee){Y.actions.internal.setQuality(ee),yt()}function ve(ee){Y.actions.internal.setAudioStream(ee),yt()}function wt(ee){Y.actions.internal.setTrafficSavingEnabled(ee),yt()}function Mt(){t(13,tt=!1),t(16,Tt=!0)}function Et(ee){Y.actions.internal.setPlaybackRate(ee),yt()}function Ct(){t(13,tt=!1),t(17,Qe=!0)}function Ut(ee){Y.actions.internal.setSubtitle(ee),yt()}function St(){t(13,tt=!0),t(14,dt=!1),t(15,bt=!1),t(16,Tt=!1),t(17,Qe=!1),t(18,zt=!1)}function Wi(){be(),yt()}function un(){w2(Q)&&window.open(Q,"_blank"),Y.actions.internal.reportProblem(),yt(),Y.actions.internal.pause()}function ui(){tl(Y.actions.internal.getDebugTextData()),yt()}function ci(){se.set(!0),yt()}let Ji=()=>{let ee=Y.actions.internal.getTraceTextData(),mt=new Blob([...ee],{type:"application/json"}),si=window.URL.createObjectURL(mt);To(si,"vk_player_trace_info","json"),yt()};function Vi(){Vt=!0}function xi(){Vt=!1}function Ri(ee,mt,si){if(!ee)return"...";let Nn=mt.find(te=>te.value===ee),On=Nn?Nn.displayValue:ee;return si?ee===k2.INVARIANT?N("auto_quality_invariant"):N("auto_quality",{actual:On}):On}let Bi,bi,fi,di,vi,yi;function Gt(ee=0,mt=!1){return l&&G&&mt?`max-height: ${Math.round(he.height*.6)}px`:l?"":`max-height: ${oe.height-T2-ee-$}px; overflow: auto;`}let $i,Nt,ki,wi,en,$t,ei,ti,ji,Si,ii,Gi,Qt,Ci=De(!1);q(i,Ci,ee=>t(119,C=ee));let Di=De(!1);q(i,Di,ee=>t(118,h=ee));let ni,mi,At=De(!1);q(i,At,ee=>t(117,f=ee));let Pi,Yt,pi=De(!1);q(i,pi,ee=>t(116,s=ee));let oi,li,_i=De(!1);q(i,_i,ee=>t(115,r=ee));let qi=ee=>{dr(ee,Ue)},tn=async ee=>{rl(ee,ai,()=>{let mt=b.findIndex(si=>si.selected);return Gi.childNodes[mt]})},nn=async ee=>{rl(ee,st,()=>{let mt=w.findIndex(si=>si.id===g?.id);return Qt.childNodes[mt]})},Ni=async ee=>{sl(ee,St,Ci,Ue)},Ot=(ee,mt)=>{xt(ee,()=>jt(mt))},Ii=async ee=>{sl(ee,St,Di,Ue)},qt=(ee,mt)=>{xt(ee,()=>ve(mt))},ri=async ee=>{rl(ee,Mt,()=>{let mt=p.findIndex(si=>si.selected);return mi.childNodes[mt]})},Zt=async ee=>{sl(ee,St,At,Ue)},Qi=(ee,mt)=>{xt(ee,()=>Et(mt))},Oi=async ee=>{rl(ee,Ct,()=>{let mt=u.findIndex(si=>si.selected);return Yt.childNodes[mt]})},Fi=async ee=>{sl(ee,St,pi,Ue)},nt=(ee,mt)=>{xt(ee,()=>Ut(mt))},hi=async ee=>{rl(ee,vt,()=>{let mt=a?2:0;return li.childNodes[mt]})},Xt=async ee=>{sl(ee,St,_i,Ue)},He=(ee,mt)=>{xt(ee,()=>wt(mt))},cn=ee=>{xt(ee,()=>Wi())},on=ee=>{xt(ee,()=>un())},ln=ee=>{xt(ee,()=>ui())},rn=ee=>{xt(ee,()=>ci())},Yi=ee=>{xt(ee,()=>Ji())};It(()=>{let ee=lt.subscribe(mt=>{mt&&!l&&!Vt&&!o&&yt()});return()=>{ee()}});function Ti(ee){ge[ee?"unshift":"push"](()=>{Si=ee,t(1,Si)})}function Hi(ee){ge[ee?"unshift":"push"](()=>{ii=ee,t(2,ii)})}function Zi(ee){ge[ee?"unshift":"push"](()=>{ni=ee,t(3,ni)})}function Rt(ee){ge[ee?"unshift":"push"](()=>{Pi=ee,t(4,Pi)})}function zi(ee){ge[ee?"unshift":"push"](()=>{oi=ee,t(5,oi)})}function kn(ee){ge[ee?"unshift":"push"](()=>{z=ee,t(0,z)})}function _n(ee){ge[ee?"unshift":"push"](()=>{bi=ee,t(20,bi)})}let fn=ee=>jt(ee.value),sn=(ee,mt)=>Ot(mt,ee.value);function Xi(ee){ge[ee?"unshift":"push"](()=>{Gi=ee,t(34,Gi)})}function dn(ee){ge[ee?"unshift":"push"](()=>{fi=ee,t(21,fi)})}let wn=ee=>ve(ee),Ei=(ee,mt)=>qt(mt,ee);function Ui(ee){ge[ee?"unshift":"push"](()=>{Qt=ee,t(35,Qt)})}function Kt(ee){ge[ee?"unshift":"push"](()=>{di=ee,t(22,di)})}let En=ee=>Et(ee.value),Sn=(ee,mt)=>Qi(mt,ee.value);function An(ee){ge[ee?"unshift":"push"](()=>{mi=ee,t(36,mi)})}function Wt(ee){ge[ee?"unshift":"push"](()=>{vi=ee,t(23,vi)})}let Ln=()=>wt(!1),Mn=ee=>He(ee,!1),mn=()=>wt(!0),pn=ee=>He(ee,!0);function hn(ee){ge[ee?"unshift":"push"](()=>{li=ee,t(38,li)})}function gn(ee){ge[ee?"unshift":"push"](()=>{yi=ee,t(24,yi)})}let ne=ee=>Ut(ee),_t=(ee,mt)=>nt(mt,ee);function an(ee){ge[ee?"unshift":"push"](()=>{Yt=ee,t(37,Yt)})}return i.$$set=ee=>{"ref"in ee&&t(0,z=ee.ref),"supportLink"in ee&&t(112,Q=ee.supportLink),"playerControlsHeight"in ee&&t(113,$=ee.playerControlsHeight),"returnFocus"in ee&&t(114,W=ee.returnFocus)},i.$$.update=()=>{i.$$.dirty[0]&4096&&X&&(t(13,tt=!0),t(14,dt=!1),t(15,bt=!1),t(16,Tt=!1),t(17,Qe=!1),t(18,zt=!1)),i.$$.dirty[3]&134217728&&t(39,n=ao(v)),i.$$.dirty[0]&1024|i.$$.dirty[3]&402653184&&t(19,Bi=Ri(v,b,y)),i.$$.dirty[3]&536870912|i.$$.dirty[4]&2&&t(25,$i=we&&O&&!I),i.$$.dirty[3]&536870912|i.$$.dirty[4]&1&&t(26,Nt=ie.features.trafficSaving&&!I&&B),i.$$.dirty[0]&128|i.$$.dirty[3]&536870912&&t(27,ki=u.length>0&&!I),i.$$.dirty[3]&1610612736&&t(28,wi=!!K&&!I),i.$$.dirty[0]&512|i.$$.dirty[3]&536870912&&t(29,en=ie.features.audioLanguages&&w.length>=2&&!I),i.$$.dirty[3]&536870912&&t(30,$t=!I),i.$$.dirty[0]&64&&t(31,ei=a?N("traffic_saving_on"):N("traffic_saving_off")),i.$$.dirty[3]&402653184&&t(32,ti=y?N("auto_quality_option"):v),i.$$.dirty[0]&2304&&t(33,ji=p.find(ee=>ee.value===E)?.displayValue),i.$$.dirty[0]&2|i.$$.dirty[3]&67108864&&ll(Si,Ci,C),i.$$.dirty[0]&4|i.$$.dirty[3]&33554432&&ll(ii,Di,h),i.$$.dirty[0]&8|i.$$.dirty[3]&16777216&&ll(ni,At,f),i.$$.dirty[0]&16|i.$$.dirty[3]&8388608&&ll(Pi,pi,s),i.$$.dirty[0]&32|i.$$.dirty[3]&4194304&&ll(oi,_i,r)},[z,Si,ii,ni,Pi,oi,a,u,p,w,b,E,X,tt,dt,bt,Tt,Qe,zt,Bi,bi,fi,di,vi,yi,$i,Nt,ki,wi,en,$t,ei,ti,ji,Gi,Qt,mi,Yt,li,n,l,g,ue,j,ie,re,Ve,Je,Ce,Me,ze,$e,fe,_e,at,Fe,ft,Ke,Xe,je,et,x,Oe,Ge,se,le,yt,ai,st,vt,jt,ve,wt,Mt,Et,Ct,Ut,St,Wi,un,ui,ci,Ji,Vi,xi,Gt,Ci,Di,At,pi,_i,qi,tn,nn,Ni,Ot,Ii,qt,ri,Zt,Qi,Oi,Fi,nt,hi,Xt,He,cn,on,ln,rn,Yi,Q,$,W,r,s,f,h,C,v,y,I,K,B,O,Ti,Hi,Zi,Rt,zi,kn,_n,fn,sn,Xi,dn,wn,Ei,Ui,Kt,En,Sn,An,Wt,Ln,Mn,mn,pn,hn,gn,ne,_t,an]}var Pa=class extends H{constructor(e){super(),U(this,e,E2,I2,F,{ref:0,supportLink:112,playerControlsHeight:113,returnFocus:114},S2,[-1,-1,-1,-1,-1,-1])}},Cr=Pa;function A2(i){Pe(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function L2(i){let e,t,n;return t=new wr({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=P("span"),V(t.$$.fragment),c(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,l){S(o,e,l),A(t,e,null),n=!0},p(o,l){let r={};l&8&&(r.isMobile=o[3]),l&16&&(r.currentQuality=o[4]),t.$set(r)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function M2(i){let e,t,n;function o(r){i[9](r)}let l={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[L2]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"opened":""),a&4&&(s.ariaLabel=r[2]),a&2&&(s.ariaExpanded=r[1]),a&4120&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function V2(i,e,t){let n,o,l,{ref:r=void 0}=e,a=ot(),s=a.state.currentQuality$;q(i,s,w=>t(4,l=w));let u=a.ui.settingsMenuVisible;q(i,u,w=>t(1,n=w));let f=a.actions.internal.toggleSettingsMenu,p=a.ui.isMobile;q(i,p,w=>t(3,o=w));let h;function C(w){let b=nl(w);f(b)}function g(w){r=w,t(0,r)}return i.$$set=w=>{"ref"in w&&t(0,r=w.ref)},i.$$.update=()=>{i.$$.dirty&2&&t(2,h=n?N("tooltip_settings_on"):N("tooltip_settings_off"))},[r,n,h,o,l,s,u,p,C,g]}var Ia=class extends H{constructor(e){super(),U(this,e,V2,M2,F,{ref:0},A2)}},Tl=Ia;function R2(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function B2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Ta=class extends H{constructor(e){super(),U(this,e,B2,R2,F,{})}},v1=Ta;function D2(i){let e,t;return e=new Sr({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function q2(i){let e,t;return e=new v1({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function N2(i){let e,t,n,o,l=[q2,D2],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ut()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e!==f&&(de(),_(r[f],1,1,()=>{r[f]=null}),me(),t=r[e],t||(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),r[e].d(s)}}}function O2(i){let e,t;return e=new pt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Qn.KeyC,$$slots:{default:[N2]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&4&&(l.ariaLabel=n[2]),o&2&&(l.click=n[1]),o&9&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function F2(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,l;return i.$$set=r=>{"isSubtitlesEnabled"in r&&t(0,n=r.isSubtitlesEnabled),"click"in r&&t(1,o=r.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,l=n?N("tooltip_subtitles_on"):N("tooltip_subtitles_off"))},[n,o,l]}var Ea=class extends H{constructor(e){super(),U(this,e,F2,O2,F,{isSubtitlesEnabled:0,click:1})}},y1=Ea;function H2(i){Pe(i,"svelte-19o2urr",".time.svelte-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.svelte-19o2urr{padding:0 0 0 8px}.current.svelte-19o2urr{position:relative}.duration.svelte-19o2urr{opacity:0.7}.duration.svelte-19o2urr:before{content:' / ';white-space:pre}")}function k1(i){let e,t;return{c(){e=P("span"),t=Re(i[3]),c(e,"class","duration svelte-19o2urr")},m(n,o){S(n,e,o),m(e,t)},p(n,o){o&8&&We(t,n[3])},d(n){n&&k(e)}}}function z2(i){let e,t,n,o,l=i[2]&&k1(i);return{c(){e=P("div"),t=P("span"),n=Re(i[4]),o=M(),l&&l.c(),c(t,"class","current svelte-19o2urr"),c(e,"class","time svelte-19o2urr"),D(e,"mobile",i[1])},m(r,a){S(r,e,a),m(e,t),m(t,n),m(e,o),l&&l.m(e,null),i[7](e)},p(r,[a]){a&16&&We(n,r[4]),r[2]?l?l.p(r,a):(l=k1(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&2&&D(e,"mobile",r[1])},i:Se,o:Se,d(r){r&&k(e),l&&l.d(),i[7](null)}}}function U2(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:l}=e,{showDuration:r=!0}=e,{ref:a}=e,s,u;function f(p){ge[p?"unshift":"push"](()=>{a=p,t(0,a)})}return i.$$set=p=>{"isMobile"in p&&t(1,n=p.isMobile),"duration"in p&&t(5,o=p.duration),"position"in p&&t(6,l=p.position),"showDuration"in p&&t(2,r=p.showDuration),"ref"in p&&t(0,a=p.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,s=In(o)),i.$$.dirty&64&&t(4,u=In(l))},[a,n,r,s,u,o,l,f]}var Aa=class extends H{constructor(e){super(),U(this,e,U2,z2,F,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},H2)}},Pr=Aa;import{noop as uo}from"@vkontakte/videoplayer-shared";function K2(i){Pe(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 W2(i){let e,t,n,o,l,r;return{c(){e=R("svg"),t=R("g"),n=R("path"),o=R("path"),l=R("path"),c(n,"class","wave2 svelte-1n5yyua"),c(n,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"),c(o,"class","wave1 svelte-1n5yyua"),c(o,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"),c(l,"class","cross svelte-1n5yyua"),c(l,"d","m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(e,"data-value",i[0]),c(e,"data-testid",r="volume-"+i[0]+"-icon"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","icon svelte-1n5yyua"),c(e,"aria-hidden","true")},m(a,s){S(a,e,s),m(e,t),m(t,n),m(t,o),m(t,l)},p(a,[s]){s&1&&c(e,"data-value",a[0]),s&1&&r!==(r="volume-"+a[0]+"-icon")&&c(e,"data-testid",r)},i:Se,o:Se,d(a){a&&k(e)}}}function j2(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,l=(a,s)=>s?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",r;return i.$$set=a=>{"volume"in a&&t(1,n=a.volume),"muted"in a&&t(2,o=a.muted)},i.$$.update=()=>{i.$$.dirty&6&&t(0,r=l(n,o))},[r,n,o]}var La=class extends H{constructor(e){super(),U(this,e,j2,W2,F,{volume:1,muted:2},K2)}},No=La;import{noop as Wn}from"@vkontakte/videoplayer-shared";import{noop as $2}from"@vkontakte/videoplayer-shared";import{noop as Y2}from"@vkontakte/videoplayer-shared";function G2(i){let e,t,n=i[4].default,o=Te(n,i,i[3],null);return{c(){e=P("div"),o&&o.c(),c(e,"class","overlay")},m(l,r){S(l,e,r),o&&o.m(e,null),i[5](e),t=!0},p(l,[r]){o&&o.p&&(!t||r&8)&&Ae(o,n,l,l[3],t?Ee(n,l[3],r,null):Le(l[3]),null)},i(l){t||(d(o,l),t=!0)},o(l){_(o,l),t=!1},d(l){l&&k(e),o&&o.d(l),i[5](null)}}}function Q2(i,e,t){let n,{$$slots:o={},$$scope:l}=e,a=ot().ui.overlayContainer$;q(i,a,h=>t(2,n=h));let s,u=h=>{!h||!s||!h.contains(s)||h.removeChild(s)},f=h=>{!h||!s||h.contains(s)||h.appendChild(s)};It(()=>(f(n),()=>u(n)));function p(h){ge[h?"unshift":"push"](()=>{s=h,t(0,s)})}return i.$$set=h=>{"$$scope"in h&&t(3,l=h.$$scope)},i.$$.update=()=>{i.$$.dirty&4&&f(n)},[s,a,n,l,o,p]}var Ma=class extends H{constructor(e){super(),U(this,e,Q2,G2,F,{})}},w1=Ma;function Z2(i){Pe(i,"svelte-tny135",'.tooltip-wrapper.svelte-tny135{display:flex;flex-direction:column;min-width:0}.full-width.svelte-tny135{width:100%}.tooltip.svelte-tny135{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.svelte-tny135{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.svelte-tny135{opacity:1;visibility:visible}.tooltip-pointer.svelte-tny135{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}.bottom-placement-pointer.svelte-tny135{top:0;bottom:auto}')}function S1(i){let e,t;return e=new w1({props:{$$slots:{default:[X2]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&2097395&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function X2(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("div"),n=Re(i[1]),o=M(),l=P("div"),c(t,"class","content svelte-tny135"),c(l,"class","tooltip-pointer svelte-tny135"),c(l,"style",r=`transform: translate(${i[5]}px, ${i[9]}px) rotate(${i[8]?0:"180deg"});`),D(l,"bottom-placement-pointer",!i[8]),c(e,"class","tooltip svelte-tny135"),c(e,"style",a=`transform: translate(${i[6]}px, ${i[7]}px);`),D(e,"active",i[0])},m(s,u){S(s,e,u),m(e,t),m(t,n),m(e,o),m(e,l),i[20](e)},p(s,u){u&2&&We(n,s[1]),u&32&&r!==(r=`transform: translate(${s[5]}px, ${s[9]}px) rotate(${s[8]?0:"180deg"});`)&&c(l,"style",r),u&192&&a!==(a=`transform: translate(${s[6]}px, ${s[7]}px);`)&&c(e,"style",a),u&1&&D(e,"active",s[0])},d(s){s&&k(e),i[20](null)}}}function J2(i){let e,t,n,o,l,r,a=i[18].default,s=Te(a,i,i[21],null),u=i[1]&&S1(i);return{c(){e=P("div"),s&&s.c(),t=M(),u&&u.c(),n=ut(),c(e,"class","tooltip-wrapper svelte-tny135"),D(e,"full-width",i[2])},m(f,p){S(f,e,p),s&&s.m(e,null),i[19](e),S(f,t,p),u&&u.m(f,p),S(f,n,p),o=!0,l||(r=[pe(e,"mouseenter",i[12]),pe(e,"mousemove",i[12]),pe(e,"mouseleave",i[13]),pe(e,"mousedown",i[13]),pe(e,"mouseup",i[12])],l=!0)},p(f,[p]){s&&s.p&&(!o||p&2097152)&&Ae(s,a,f,f[21],o?Ee(a,f[21],p,null):Le(f[21]),null),(!o||p&4)&&D(e,"full-width",f[2]),f[1]?u?(u.p(f,p),p&2&&d(u,1)):(u=S1(f),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(de(),_(u,1,1,()=>{u=null}),me())},i(f){o||(d(s,f),d(u),o=!0)},o(f){_(s,f),_(u),o=!1},d(f){f&&(k(e),k(t),k(n)),s&&s.d(f),i[19](null),u&&u.d(f),l=!1,it(r)}}}var El=5;function x2(i,e,t){let n,o,{$$slots:l={},$$scope:r}=e,{content:a=""}=e,{active:s=!1}=e,{translateX:u=0}=e,{translateY:f=0}=e,{isFullWidthWrapper:p=!1}=e,{placement:h="top"}=e,{onVisibilityChange:C=Y2}=e,g=h==="top",w,b,E,v=0,y=g?El:-El,I=0,K=0,B=Dt(),O=ot(),oe=O.ui.playerSize;q(i,oe,Y=>t(24,o=Y));let he=O.ui.overlayContainer$;q(i,he,Y=>t(23,n=Y));let G=O.getLogger().createComponentLog("Tooltip component"),X=()=>{if(!n||!b||!w)return;let Y=n.getBoundingClientRect(),ie=w.getBoundingClientRect(),re=ie.width,Ve=b.clientWidth,Je=o.width,Ce=(re-Ve)/2,Me=ie.left+u-Y.left,ze=Me+Ce,$e=ie.top+f-Y.top,fe=Ve/2-El,_e=ze<8,at=ze+Ve>Je-8;_e&&(ze=8,fe=Me+ie.width/2-2.5*El),at&&(ze=Je-8-Ve,fe=ie.left-Y.left+ie.width/2-ze-El),t(6,I=ze),t(7,K=$e),t(5,v=fe)},ue=()=>{try{if(!n||!w)return;X(),t(0,s=!0)}catch(Y){G({message:String(Y)})}},j=()=>{t(0,s=!1)},z=()=>{b&&(E||(E=window.setTimeout(ue,B.controls.hideTimeoutTooltips)),s&&ue())},Q=()=>{j(),window.clearTimeout(E),E=void 0};It(X),Hn(()=>window.clearTimeout(E));function $(Y){ge[Y?"unshift":"push"](()=>{w=Y,t(3,w)})}function W(Y){ge[Y?"unshift":"push"](()=>{b=Y,t(4,b)})}return i.$$set=Y=>{"content"in Y&&t(1,a=Y.content),"active"in Y&&t(0,s=Y.active),"translateX"in Y&&t(14,u=Y.translateX),"translateY"in Y&&t(15,f=Y.translateY),"isFullWidthWrapper"in Y&&t(2,p=Y.isFullWidthWrapper),"placement"in Y&&t(16,h=Y.placement),"onVisibilityChange"in Y&&t(17,C=Y.onVisibilityChange),"$$scope"in Y&&t(21,r=Y.$$scope)},i.$$.update=()=>{i.$$.dirty&131073&&C(s)},[s,a,p,w,b,v,I,K,g,y,oe,he,z,Q,u,f,h,C,l,$,W,r]}var Va=class extends H{constructor(e){super(),U(this,e,x2,J2,F,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},Z2)}},Ir=Va;function eb(i){Pe(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 tb(i){let e,t=i[19].default,n=Te(t,i,i[24],null);return{c(){n&&n.c()},m(o,l){n&&n.m(o,l),e=!0},p(o,l){n&&n.p&&(!e||l&16777216)&&Ae(n,t,o,o[24],e?Ee(t,o[24],l,null):Le(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function ib(i){let e,t;return e=new Ir({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[nb]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&2048&&(l.content=n[11]),o&512&&(l.translateX=n[9]),o&1024&&(l.translateY=n[10]),o&16&&(l.isFullWidthWrapper=n[4]),o&32&&(l.active=n[5]),o&64&&(l.placement=n[6]),o&256&&(l.onVisibilityChange=n[8]),o&16777216&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function nb(i){let e,t=i[19].default,n=Te(t,i,i[24],null);return{c(){n&&n.c()},m(o,l){n&&n.m(o,l),e=!0},p(o,l){n&&n.p&&(!e||l&16777216)&&Ae(n,t,o,o[24],e?Ee(t,o[24],l,null):Le(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function ob(i){let e,t,n,o,l,r,a,s,u,f=[ib,tb],p=[];function h(C,g){return C[3]&&C[11]&&!C[12]?0:1}return t=h(i,-1),n=p[t]=f[t](i),{c(){e=P("div"),n.c(),c(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),c(e,"aria-hidden",l=i[7]||null),Un(()=>i[23].call(e))},m(C,g){S(C,e,g),p[t].m(e,null),i[22](e),r=Go(e,i[23].bind(e)),a=!0,s||(u=[pe(e,"pointerdown",rt(i[20])),pe(e,"click",rt(i[21]))],s=!0)},p(C,[g]){let w=t;t=h(C,g),t===w?p[t].p(C,g):(de(),_(p[w],1,1,()=>{p[w]=null}),me(),n=p[t],n?n.p(C,g):(n=p[t]=f[t](C),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+C[2]+" svelte-p9r045"))&&c(e,"class",o),(!a||g&128&&l!==(l=C[7]||null))&&c(e,"aria-hidden",l)},i(C){a||(d(n),a=!0)},o(C){_(n),a=!1},d(C){C&&k(e),p[t].d(),i[22](null),r(),s=!1,it(u)}}}function lb(i,e,t){let n,o,{$$slots:l={},$$scope:r}=e,{className:a=""}=e,{disabled:s=!1}=e,{hasTooltip:u=!0}=e,{ref:f=void 0}=e,{width:p=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:C=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:w="top"}=e,{disabledTooltipContent:b=N("tooltip_button_disabled")}=e,{isAriaHidden:E=!1}=e,{onTooltipVisibilityChange:v=$2}=e,{initialTranslateXPx:y=0}=e,{initialTranslateYPx:I=-18}=e,K=ot(),B=K.ui.isMobile;q(i,B,j=>t(12,o=j));let O=K.state.graphIsOpened$;q(i,O,j=>t(18,n=j));let oe;function he(j){Pn.call(this,i,j)}function G(j){Pn.call(this,i,j)}function X(j){ge[j?"unshift":"push"](()=>{f=j,t(0,f)})}function ue(){p=this.clientWidth,t(1,p)}return i.$$set=j=>{"className"in j&&t(2,a=j.className),"disabled"in j&&t(15,s=j.disabled),"hasTooltip"in j&&t(3,u=j.hasTooltip),"ref"in j&&t(0,f=j.ref),"width"in j&&t(1,p=j.width),"isFullWidthTooltip"in j&&t(4,h=j.isFullWidthTooltip),"tooltipContent"in j&&t(16,C=j.tooltipContent),"tooltipActive"in j&&t(5,g=j.tooltipActive),"tooltipPlacement"in j&&t(6,w=j.tooltipPlacement),"disabledTooltipContent"in j&&t(17,b=j.disabledTooltipContent),"isAriaHidden"in j&&t(7,E=j.isAriaHidden),"onTooltipVisibilityChange"in j&&t(8,v=j.onTooltipVisibilityChange),"initialTranslateXPx"in j&&t(9,y=j.initialTranslateXPx),"initialTranslateYPx"in j&&t(10,I=j.initialTranslateYPx),"$$scope"in j&&t(24,r=j.$$scope)},i.$$.update=()=>{i.$$.dirty&491520&&(s?t(11,oe=n?N("tooltip_disabled_when_graph_on"):b):t(11,oe=C))},[f,p,a,u,h,g,w,E,v,y,I,oe,o,B,O,s,C,b,n,l,he,G,X,ue,r]}var Ra=class extends H{constructor(e){super(),U(this,e,lb,ob,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},eb)}},Lt=Ra;function rb(i){let e,t,n,o,l,r;return{c(){e=R("svg"),t=R("rect"),o=R("path"),c(t,"width","20"),c(t,"height","20"),c(t,"rx","10"),c(t,"fill","white"),c(t,"fill-opacity",n=i[0]?1:.24),c(o,"d","M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"),c(o,"fill",l=i[0]?"var(--interactive-episode-complete)":"white"),c(e,"width","20"),c(e,"height","20"),c(e,"viewBox","0 0 20 20"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid",r=(i[0],"interactive-episode-completed-icon"))},m(a,s){S(a,e,s),m(e,t),m(e,o)},p(a,[s]){s&1&&n!==(n=a[0]?1:.24)&&c(t,"fill-opacity",n),s&1&&l!==(l=a[0]?"var(--interactive-episode-complete)":"white")&&c(o,"fill",l),s&1&&r!==(r=(a[0],"interactive-episode-completed-icon"))&&c(e,"data-testid",r)},i:Se,o:Se,d(a){a&&k(e)}}}function sb(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var Ba=class extends H{constructor(e){super(),U(this,e,sb,rb,F,{completed:0})}},Tr=Ba;function ab(i){Pe(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 ub(i){let e,t,n,o,l;return t=new Tr({props:{completed:!!i[0].completed}}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","interactive-episode-icon svelte-bklhpe"),c(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),Un(()=>i[3].call(e)),D(e,"disabled",i[1])},m(r,a){S(r,e,a),A(t,e,null),o=Go(e,i[3].bind(e)),l=!0},p(r,a){let s={};a&1&&(s.completed=!!r[0].completed),t.$set(s),(!l||a&1&&n!==(n=`left: ${r[0].from+r[0].width/2}%`))&&c(e,"style",n),(!l||a&2)&&D(e,"disabled",r[1])},i(r){l||(d(t.$$.fragment,r),l=!0)},o(r){_(t.$$.fragment,r),l=!1},d(r){r&&k(e),L(t),o()}}}function cb(i){let e,t;return e=new Lt({props:{tooltipContent:N(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:[ub]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.tooltipContent=N(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(l.disabled=n[1]),o&4&&(l.width=n[2]||0),o&23&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function fb(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,l;function r(){l=this.clientWidth,t(2,l)}return i.$$set=a=>{"videoEpisode"in a&&t(0,n=a.videoEpisode),"disabled"in a&&t(1,o=a.disabled)},[n,o,l,r]}var Da=class extends H{constructor(e){super(),U(this,e,fb,cb,F,{videoEpisode:0,disabled:1},ab)}},C1=Da;function db(i){Pe(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 P1(i,e,t){let n=i.slice();return n[3]=e[t],n}function I1(i){let e,t,n,o,l,r,a,s,u;return{c(){e=P("div"),t=P("div"),n=P("div"),l=M(),r=P("div"),s=M(),c(n,"class","video-episode-loaded svelte-1rzxunm"),c(n,"style",o=`transform: translateX(${i[3].loadedWidth/i[3].width*100}%)`),c(r,"class","video-episode-filled svelte-1rzxunm"),c(r,"style",a=`transform: translateX(${i[3].filledWidth/i[3].width*100}%)`),D(r,"mobile",i[1]),c(t,"class","video-episode-inner svelte-1rzxunm"),c(e,"class","video-episode svelte-1rzxunm"),c(e,"style",u=`left: ${i[3].from}%; width: ${i[3].width}%`),D(e,"disabled",i[2]),D(e,"mobile",i[1])},m(f,p){S(f,e,p),m(e,t),m(t,n),m(t,l),m(t,r),m(e,s)},p(f,p){p&1&&o!==(o=`transform: translateX(${f[3].loadedWidth/f[3].width*100}%)`)&&c(n,"style",o),p&1&&a!==(a=`transform: translateX(${f[3].filledWidth/f[3].width*100}%)`)&&c(r,"style",a),p&2&&D(r,"mobile",f[1]),p&1&&u!==(u=`left: ${f[3].from}%; width: ${f[3].width}%`)&&c(e,"style",u),p&4&&D(e,"disabled",f[2]),p&2&&D(e,"mobile",f[1])},d(f){f&&k(e)}}}function mb(i){let e,t=kt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=I1(P1(i,t,o));return{c(){e=P("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","video-episodes-wrap svelte-1rzxunm")},m(o,l){S(o,e,l);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,[l]){if(l&7){t=kt(o[0]);let r;for(r=0;r<t.length;r+=1){let a=P1(o,t,r);n[r]?n[r].p(a,l):(n[r]=I1(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},i:Se,o:Se,d(o){o&&k(e),Li(n,o)}}}function pb(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e,{disabled:l}=e;return i.$$set=r=>{"videoEpisodes"in r&&t(0,n=r.videoEpisodes),"isMobile"in r&&t(1,o=r.isMobile),"disabled"in r&&t(2,l=r.disabled)},[n,o,l]}var qa=class extends H{constructor(e){super(),U(this,e,pb,mb,F,{videoEpisodes:0,isMobile:1,disabled:2},db)}},T1=qa;function _b(i){Pe(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 E1(i,e,t){let n=i.slice();return n[50]=e[t],n}function A1(i){let e,t,n=kt(i[21]),o=[];for(let r=0;r<n.length;r+=1)o[r]=M1(E1(i,n,r));let l=r=>_(o[r],1,1,()=>{o[r]=null});return{c(){e=P("div");for(let r=0;r<o.length;r+=1)o[r].c();c(e,"class","interactive-icons svelte-v8ydei"),D(e,"mobile",i[6]),D(e,"hidden",i[6]&&!i[20])},m(r,a){S(r,e,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(e,null);t=!0},p(r,a){if(a[0]&2098176){n=kt(r[21]);let s;for(s=0;s<n.length;s+=1){let u=E1(r,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=M1(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(de(),s=n.length;s<o.length;s+=1)l(s);me()}(!t||a[0]&64)&&D(e,"mobile",r[6]),(!t||a[0]&1048640)&&D(e,"hidden",r[6]&&!r[20])},i(r){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)_(o[a]);t=!1},d(r){r&&k(e),Li(o,r)}}}function L1(i){let e,t;return e=new C1({props:{videoEpisode:i[50],disabled:i[10]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisode=n[50]),o[0]&1024&&(l.disabled=n[10]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function M1(i){let e,t,n=i[50].interactive&&L1(i);return{c(){n&&n.c(),e=ut()},m(o,l){n&&n.m(o,l),S(o,e,l),t=!0},p(o,l){o[50].interactive?n?(n.p(o,l),l[0]&2097152&&d(n,1)):(n=L1(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(de(),_(n,1,1,()=>{n=null}),me())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function hb(i){let e,t,n,o,l,r;return{c(){e=P("div"),t=P("div"),o=M(),l=P("div"),c(t,"class","loaded svelte-v8ydei"),c(t,"style",n=`transform: translateX(${i[12]*100}%);`),c(l,"class","filled svelte-v8ydei"),c(l,"style",r=`transform: translateX(${i[13]*100}%);`),D(l,"active-live",i[5]),D(l,"ads",i[7]),c(e,"class","bars svelte-v8ydei")},m(a,s){S(a,e,s),m(e,t),m(e,o),m(e,l)},p(a,s){s[0]&4096&&n!==(n=`transform: translateX(${a[12]*100}%);`)&&c(t,"style",n),s[0]&8192&&r!==(r=`transform: translateX(${a[13]*100}%);`)&&c(l,"style",r),s[0]&32&&D(l,"active-live",a[5]),s[0]&128&&D(l,"ads",a[7])},i:Se,o:Se,d(a){a&&k(e)}}}function gb(i){let e,t;return e=new T1({props:{videoEpisodes:i[21],disabled:i[10],isMobile:i[6]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisodes=n[21]),o[0]&1024&&(l.disabled=n[10]),o[0]&64&&(l.isMobile=n[6]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function bb(i){let e,t,n,o,l,r,a,s,u,f,p,h,C,g=i[9]&&A1(i),w=[gb,hb],b=[];function E(v,y){return v[21].length?0:1}return n=E(i,[-1,-1]),o=b[n]=w[n](i),{c(){g&&g.c(),e=M(),t=P("div"),o.c(),l=M(),r=P("div"),a=P("div"),c(a,"class","handle svelte-v8ydei"),D(a,"active-live",i[5]),c(r,"class","handleWrap svelte-v8ydei"),c(r,"style",s=`transform: translateX(${i[14]*100}%);`),D(r,"hidden",i[11]),c(t,"class",u="slider "+i[1]+" svelte-v8ydei"),c(t,"aria-label",i[15]),c(t,"aria-valuemin",i[16]),c(t,"aria-valuemax",i[17]),c(t,"aria-valuenow",i[18]),c(t,"aria-valuetext",i[19]),c(t,"role","slider"),c(t,"tabindex","0"),c(t,"data-testid",f=i[2]??null),D(t,"disabled",i[10]),D(t,"slider-dragging",i[20]),D(t,"hidden",i[3]),D(t,"slider-vertical",i[4]),D(t,"no-handle",i[11]),D(t,"square",i[8])},m(v,y){g&&g.m(v,y),S(v,e,y),S(v,t,y),b[n].m(t,null),m(t,l),m(t,r),m(r,a),i[44](t),p=!0,h||(C=[pe(t,"pointerdown",Ht(i[22])),pe(t,"pointermove",Ht(i[23])),pe(t,"pointerup",Ht(i[24])),pe(t,"pointerenter",Ht(i[25])),pe(t,"pointerleave",Ht(i[26])),pe(t,"click",rt(i[28])),pe(t,"wheel",i[27])],h=!0)},p(v,y){v[9]?g?(g.p(v,y),y[0]&512&&d(g,1)):(g=A1(v),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(de(),_(g,1,1,()=>{g=null}),me());let I=n;n=E(v,y),n===I?b[n].p(v,y):(de(),_(b[I],1,1,()=>{b[I]=null}),me(),o=b[n],o?o.p(v,y):(o=b[n]=w[n](v),o.c()),d(o,1),o.m(t,l)),(!p||y[0]&32)&&D(a,"active-live",v[5]),(!p||y[0]&16384&&s!==(s=`transform: translateX(${v[14]*100}%);`))&&c(r,"style",s),(!p||y[0]&2048)&&D(r,"hidden",v[11]),(!p||y[0]&2&&u!==(u="slider "+v[1]+" svelte-v8ydei"))&&c(t,"class",u),(!p||y[0]&32768)&&c(t,"aria-label",v[15]),(!p||y[0]&65536)&&c(t,"aria-valuemin",v[16]),(!p||y[0]&131072)&&c(t,"aria-valuemax",v[17]),(!p||y[0]&262144)&&c(t,"aria-valuenow",v[18]),(!p||y[0]&524288)&&c(t,"aria-valuetext",v[19]),(!p||y[0]&4&&f!==(f=v[2]??null))&&c(t,"data-testid",f),(!p||y[0]&1026)&&D(t,"disabled",v[10]),(!p||y[0]&1048578)&&D(t,"slider-dragging",v[20]),(!p||y[0]&10)&&D(t,"hidden",v[3]),(!p||y[0]&18)&&D(t,"slider-vertical",v[4]),(!p||y[0]&2050)&&D(t,"no-handle",v[11]),(!p||y[0]&258)&&D(t,"square",v[8])},i(v){p||(d(g),d(o),p=!0)},o(v){_(g),_(o),p=!1},d(v){v&&(k(e),k(t)),g&&g.d(v),b[n].d(),i[44](null),h=!1,it(C)}}}function vb(i,e,t){let n,o,{ref:l=void 0}=e,{className:r=""}=e,{testId:a=void 0}=e,{isHidden:s=!1}=e,{isVertical:u=!1}=e,{isActiveLive:f=!1}=e,{isMobile:p=!1}=e,{isAds:h=!1}=e,{squareBorders:C=!1}=e,{videoEpisodes:g=[]}=e,{withWheelHandler:w=!1}=e,{isInteractive:b=!1}=e,{disabled:E=!1}=e,{hideHandel:v=!1}=e,y,{onPointerDown:I=Wn}=e,{onHandleMove:K=Wn}=e,{onPointerUp:B=Wn}=e,{onPointerEnter:O=Wn}=e,{onPointerMove:oe=Wn}=e,{onPointerLeave:he=Wn}=e,{onWheelUp:G=Wn}=e,{onWheelDown:X=Wn}=e,{onWheelLeft:ue=Wn}=e,{onWheelRight:j=Wn}=e,{onDisabledClick:z=Wn}=e,{loadedProgress:Q=0}=e,{filledProgress:$=0}=e,{handleProgress:W=0}=e,{ariaLabel:Y=""}=e,{ariaValueMin:ie=void 0}=e,{ariaValueMax:re=void 0}=e,{ariaValueNow:Ve=void 0}=e,{ariaValueText:Je=""}=e,Ce=Dt(),Me=!1,ze;function $e(x){if(l&&(y=l.getBoundingClientRect()),E||Me||!l)return;t(20,Me=!0);let Oe=Ke(x.clientX,x.clientY);I(Oe),l.setPointerCapture(x.pointerId)}function fe(x){if(E)return;let Oe=Ke(x.clientX,x.clientY),Ge=Xe(x.clientX);oe(Oe,Ge,y.width),Me&&K(Oe)}function _e(x){if(E||!Me)return;t(20,Me=!1);let Oe=Ke(x.clientX,x.clientY);B(Oe)}function at(x){if(l&&(y=l.getBoundingClientRect()),E)return;let Oe=Ke(x.clientX,x.clientY),Ge=Xe(x.clientX);O(Oe,Ge,y.width)}function we(){E||he()}function Fe(x){E||w&&(x.preventDefault(),x.deltaY<0?G():x.deltaY>0?X():x.deltaX>0?j():ue())}function ft(x){E&&z(Ke(x.clientX,x.clientY))}function Ke(x,Oe){return u?Math.max(0,Math.min(1,(y.height-(Oe-y.top))/y.height)):Math.min(Math.max(x-y.x,0),y.width)/y.width}function Xe(x){return Math.min(Math.max(x-y.x,0),y.width)}function je(x,Oe){let Ge=Ce.features.episodesClustering&&!b?Ce.episodeMinWidthPc:0,se=[],le=0,lt=0,be=0;for(let dt=1;dt<g.length;dt++)lt=g[dt].time/ze*100,lt-le>Ge&&(se.push({from:le,width:Math.max(0,lt-le),loadedWidth:Math.max(0,Math.min(lt,x)-le),filledWidth:Math.max(0,Math.min(lt,Oe)-le),interactive:g[dt-1].interactive,completed:g[dt-1].completed}),le=g[dt].time/ze*100,be++);let Ue={from:le,width:Math.max(0,100-le),loadedWidth:Math.max(0,Math.min(x,100)-le),filledWidth:Math.max(0,Math.min(Oe,100)-le),interactive:g[be].interactive,completed:g[be].completed};100-le<Ge?(be-=1,se[be].width+=100-le,se[be].loadedWidth+=Math.max(0,Math.min(x,100)-le),se[be].filledWidth+=Math.max(0,Math.min(Oe,100)-le)):se[be]=Ue;let tt=g[0].time;if(tt!==0){let dt=tt/ze*100;se.unshift({from:0,width:dt,loadedWidth:Math.min(dt,x),filledWidth:Math.min(dt,Oe)})}return se}function et(x){ge[x?"unshift":"push"](()=>{l=x,t(0,l)})}return i.$$set=x=>{"ref"in x&&t(0,l=x.ref),"className"in x&&t(1,r=x.className),"testId"in x&&t(2,a=x.testId),"isHidden"in x&&t(3,s=x.isHidden),"isVertical"in x&&t(4,u=x.isVertical),"isActiveLive"in x&&t(5,f=x.isActiveLive),"isMobile"in x&&t(6,p=x.isMobile),"isAds"in x&&t(7,h=x.isAds),"squareBorders"in x&&t(8,C=x.squareBorders),"videoEpisodes"in x&&t(29,g=x.videoEpisodes),"withWheelHandler"in x&&t(30,w=x.withWheelHandler),"isInteractive"in x&&t(9,b=x.isInteractive),"disabled"in x&&t(10,E=x.disabled),"hideHandel"in x&&t(11,v=x.hideHandel),"onPointerDown"in x&&t(31,I=x.onPointerDown),"onHandleMove"in x&&t(32,K=x.onHandleMove),"onPointerUp"in x&&t(33,B=x.onPointerUp),"onPointerEnter"in x&&t(34,O=x.onPointerEnter),"onPointerMove"in x&&t(35,oe=x.onPointerMove),"onPointerLeave"in x&&t(36,he=x.onPointerLeave),"onWheelUp"in x&&t(37,G=x.onWheelUp),"onWheelDown"in x&&t(38,X=x.onWheelDown),"onWheelLeft"in x&&t(39,ue=x.onWheelLeft),"onWheelRight"in x&&t(40,j=x.onWheelRight),"onDisabledClick"in x&&t(41,z=x.onDisabledClick),"loadedProgress"in x&&t(12,Q=x.loadedProgress),"filledProgress"in x&&t(13,$=x.filledProgress),"handleProgress"in x&&t(14,W=x.handleProgress),"ariaLabel"in x&&t(15,Y=x.ariaLabel),"ariaValueMin"in x&&t(16,ie=x.ariaValueMin),"ariaValueMax"in x&&t(17,re=x.ariaValueMax),"ariaValueNow"in x&&t(18,Ve=x.ariaValueNow),"ariaValueText"in x&&t(19,Je=x.ariaValueText)},i.$$.update=()=>{i.$$.dirty[0]&131072&&t(42,ze=re??0),i.$$.dirty[0]&536870912|i.$$.dirty[1]&2048&&t(43,n=g[g.length-1]?.time<ze),i.$$.dirty[0]&536883200|i.$$.dirty[1]&6144&&t(21,o=g.length&&n&&ze?je(Q*100,$*100):[])},[l,r,a,s,u,f,p,h,C,b,E,v,Q,$,W,Y,ie,re,Ve,Je,Me,o,$e,fe,_e,at,we,Fe,ft,g,w,I,K,B,O,oe,he,G,X,ue,j,z,ze,n,et]}var Na=class extends H{constructor(e){super(),U(this,e,vb,bb,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},_b,[-1,-1])}},cl=Na;var Tn=(i,e)=>Io[i]>=Io[e],V1=(i,e)=>Io[i]<Io[e],Er=(i,e)=>Io[i]<=Io[e],R1=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function yb(i){Pe(i,"svelte-1l78lz9",".volumeBar-container.svelte-1l78lz9{display:flex;align-items:center}.volumeBar-container.vertical.svelte-1l78lz9,.vertical.svelte-1l78lz9 .tooltip-wrapper,.vertical.svelte-1l78lz9 .btn{width:40px}.volumeBar.svelte-1l78lz9{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.svelte-1l78lz9{padding:0 8px 0 0;width:0}")}function kb(i){let e,t;return e=new No({props:{volume:i[3],muted:i[1]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.volume=n[3]),o[0]&2&&(l.muted=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function wb(i){let e,t;return e=new pt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:Qn.KeyM,$$slots:{default:[kb]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&512&&(l.disabled=n[9]),o[0]&4&&(l.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(l.ariaLabel=n[7]),o[0]&1&&(l.click=n[0]),o[0]&10|o[1]&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function B1(i){let e,t,n;return t=new cl({props:{className:i[2]?"volumeBar-slider-vertical":"",isHidden:i[2]&&!i[5],isVertical:i[2],withWheelHandler:!0,onWheelUp:i[15],onWheelDown:i[16],onPointerDown:i[14],onHandleMove:i[17],onPointerUp:i[18],onPointerEnter:i[2]?i[19]:uo,onPointerLeave:i[2]?i[20]:uo,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"),V(t.$$.fragment),c(e,"class","volumeBar svelte-1l78lz9"),D(e,"volumeBar-vertical",i[2])},m(o,l){S(o,e,l),A(t,e,null),n=!0},p(o,l){let r={};l[0]&4&&(r.className=o[2]?"volumeBar-slider-vertical":""),l[0]&36&&(r.isHidden=o[2]&&!o[5]),l[0]&4&&(r.isVertical=o[2]),l[0]&4&&(r.onPointerEnter=o[2]?o[19]:uo),l[0]&4&&(r.onPointerLeave=o[2]?o[20]:uo),l[0]&256&&(r.ariaValueNow=Math.round(o[8]*100)),l[0]&256&&(r.ariaValueText=`${Math.round(o[8]*100)}%`),l[0]&256&&(r.filledProgress=o[8]),l[0]&256&&(r.handleProgress=o[8]),l[0]&4&&(r.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(r),(!n||l[0]&4)&&D(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function Sb(i){let e,t,n,o,l,r;t=new Ir({props:{content:i[6],translateY:-18,$$slots:{default:[wb]},$$scope:{ctx:i}}});let a=i[4]&&B1(i);return{c(){e=P("div"),V(t.$$.fragment),n=M(),a&&a.c(),c(e,"class","volumeBar-container svelte-1l78lz9"),D(e,"vertical",i[2])},m(s,u){S(s,e,u),A(t,e,null),m(e,n),a&&a.m(e,null),o=!0,l||(r=[pe(e,"mouseenter",function(){Ai(i[2]?i[21]:uo)&&(i[2]?i[21]:uo).apply(this,arguments)}),pe(e,"mouseleave",function(){Ai(i[2]?i[22]:uo)&&(i[2]?i[22]:uo).apply(this,arguments)}),pe(e,"wheel",Ht(i[23]))],l=!0)},p(s,u){i=s;let f={};u[0]&64&&(f.content=i[6]),u[0]&655|u[1]&32&&(f.$$scope={dirty:u,ctx:i}),t.$set(f),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=B1(i),a.c(),d(a,1),a.m(e,null)):a&&(de(),_(a,1,1,()=>{a=null}),me()),(!o||u[0]&4)&&D(e,"vertical",i[2])},i(s){o||(d(t.$$.fragment,s),d(a),o=!0)},o(s){_(t.$$.fragment,s),_(a),o=!1},d(s){s&&k(e),L(t),a&&a.d(),l=!1,it(r)}}}function Cb(i,e,t){let n,o,l,r,{click:a}=e,s=ot(),u=Dt(),f=s.state.volume$;q(i,f,Ce=>t(3,n=Ce));let p=s.state.muted$;q(i,p,Ce=>t(25,r=Ce));let h=s.actions.internal.setVolume,C=s.ui.currentGridType$;q(i,C,Ce=>t(24,l=Ce));let g=s.callbacks?.onAudioDoesNotExistHint,w=s.callbacks?.onAudioDisabledHint,b=s.state.isAudioAvailable$;q(i,b,Ce=>t(4,o=Ce));let E=s.state.isAudioDisabled,v=!1,y,I,K,B,O,oe,he=1,G=!1,X=!1;function ue(Ce){he=n,h(Ce)}function j(){gr(s,n,u.controls.volumeStepWheel)}function z(){br(s,n,u.controls.volumeStepWheel)}function Q(Ce){h(Ce)}function $(Ce){let Me=Ce;h(Me,Me===0?he:Me)}function W(){G=!0}function Y(){G=!1,Ve()}function ie(){clearTimeout(y),t(5,v=!0)}function re(){Ve()}function Ve(){y=window.setTimeout(()=>{G||t(5,v=!1)},u.controls.volumeBarTimeout)}function Je(Ce){Ce.deltaY<0?j():Ce.deltaY>0&&z()}return i.$$set=Ce=>{"click"in Ce&&t(0,a=Ce.click)},i.$$.update=()=>{i.$$.dirty[0]&33554448&&t(1,B=!o||r),i.$$.dirty[0]&16777216&&t(2,O=Er(l,"s")),i.$$.dirty[0]&6&&(O?t(6,I=""):t(6,I=B?N("tooltip_volume"):N("tooltip_volume_muted")),t(7,K=B?N("tooltip_volume"):N("tooltip_volume_muted"))),i.$$.dirty[0]&10&&t(8,oe=B?0:n),i.$$.dirty[0]&16&&(o?t(9,X=E&&!w):t(9,X=!g))},[a,B,O,n,o,v,I,K,oe,X,f,p,C,b,ue,j,z,Q,$,W,Y,ie,re,Je,l,r]}var Oa=class extends H{constructor(e){super(),U(this,e,Cb,Sb,F,{click:0},yb,[-1,-1])}},D1=Oa;import{noop as Lb}from"@vkontakte/videoplayer-shared";function Pb(i){let e,t,n,o,l,r=i[2].default,a=Te(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ce(u,s[f]);return{c(){e=R("svg"),a&&a.c(),t=R("g"),n=R("path"),o=R("path"),c(n,"d","M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z"),c(n,"class","_exit"),c(o,"d","M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"),c(o,"class","_enter"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),ke(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ke(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function Ib(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Fa=class extends H{constructor(e){super(),U(this,e,Ib,Pb,F,{})}},q1=Fa;function Tb(i){Pe(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Eb(i){let e,t;return e=new q1({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Ab(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Ha=class extends H{constructor(e){super(),U(this,e,Ab,Eb,F,{isFullscreen:0},Tb)}},N1=Ha;function Mb(i){let e,t;return e=new N1({props:{isFullscreen:i[0]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&1&&(l.isFullscreen=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Vb(i){let e,t;return e=new pt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Qn.KeyF,$$slots:{default:[Mb]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&4&&(l.ariaLabel=n[2]),o&2&&(l.click=n[1]),o&9&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Rb(i,e,t){let{isFullscreen:n=!1}=e,{click:o=Lb}=e,l;return i.$$set=r=>{"isFullscreen"in r&&t(0,n=r.isFullscreen),"click"in r&&t(1,o=r.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,l=n?N("tooltip_fullscreen_on"):N("tooltip_fullscreen_off"))},[n,o,l]}var za=class extends H{constructor(e){super(),U(this,e,Rb,Vb,F,{isFullscreen:0,click:1})}},Ar=za;function Bb(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078z"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Db(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Ua=class extends H{constructor(e){super(),U(this,e,Db,Bb,F,{})}},fl=Ua;function qb(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M8.712 5c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5zm8 0c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38c.164-.087.326-.134.774-.134z"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Nb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Ka=class extends H{constructor(e){super(),U(this,e,Nb,qb,F,{})}},Lr=Ka;import{noop as Ob}from"@vkontakte/videoplayer-shared";function Fb(i){Pe(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 O1(i){let e;return{c(){e=P("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){S(t,e,n)},d(t){t&&k(e)}}}function Hb(i){let e,t,n,o,l=i[1]&&O1(i);var r=i[8];function a(s,u){return{}}return r&&(n=vn(r,a(i))),{c(){l&&l.c(),e=M(),t=P("div"),n&&V(n.$$.fragment),c(t,"class","svelte-1ot3duq"),D(t,"mobile",i[1])},m(s,u){l&&l.m(s,u),S(s,e,u),S(s,t,u),n&&A(n,t,null),o=!0},p(s,u){if(s[1]?l||(l=O1(s),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),u&256&&r!==(r=s[8])){if(n){de();let f=n;_(f.$$.fragment,1,0,()=>{L(f,1)}),me()}r?(n=vn(r,a(s,u)),V(n.$$.fragment),d(n.$$.fragment,1),A(n,t,null)):n=null}(!o||u&2)&&D(t,"mobile",s[1])},i(s){o||(n&&d(n.$$.fragment,s),o=!0)},o(s){n&&_(n.$$.fragment,s),o=!1},d(s){s&&(k(e),k(t)),l&&l.d(s),n&&L(n)}}}function zb(i){let e,t,n;function o(r){i[13](r)}let l={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-play",click:i[5]?i[6]:i[4],disabled:i[2],ariaLabel:i[7],ariaKeyShortCut:Qn.KeyK,$$slots:{default:[Hb]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&10&&(s.className=(r[1]?"btn-m--play":"")+" "+r[3]),a&112&&(s.click=r[5]?r[6]:r[4]),a&4&&(s.disabled=r[2]),a&128&&(s.ariaLabel=r[7]),a&33026&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Ub(i,e,t){let n,o,{fakeIsPlaying$:l}=Rn();q(i,l,v=>t(12,o=v));let{ref:r=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:f=""}=e,{click:p=Ob}=e,{toggle:h}=l,C,g,w,b;function E(v){r=v,t(0,r)}return i.$$set=v=>{"ref"in v&&t(0,r=v.ref),"isMobile"in v&&t(1,a=v.isMobile),"isPlaying"in v&&t(10,s=v.isPlaying),"disabled"in v&&t(2,u=v.disabled),"className"in v&&t(3,f=v.className),"click"in v&&t(4,p=v.click)},i.$$.update=()=>{i.$$.dirty&4096&&t(5,g=o!==null),i.$$.dirty&5152&&t(11,w=g?o:s),i.$$.dirty&2048&&t(7,b=w?N("tooltip_pause"):N("tooltip_play")),i.$$.dirty&2048&&t(8,n=w?Lr:fl)},t(6,C=h),[r,a,u,f,p,g,C,b,n,l,s,w,o,E]}var Wa=class extends H{constructor(e){super(),U(this,e,Ub,zb,F,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},Fb)}},Al=Wa;function Kb(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Wb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var ja=class extends H{constructor(e){super(),U(this,e,Wb,Kb,F,{})}},F1=ja;function jb(i){let e,t;return e=new F1({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&2&&(l.style=n[1]),o&1&&(l["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Gb(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,l;return i.$$set=r=>{"isPrev"in r&&t(0,n=r.isPrev),"isMobile"in r&&t(2,o=r.isMobile)},i.$$.update=()=>{i.$$.dirty&5&&(n&&o?t(1,l="transform: scaleX(-1) scale(1.3333);"):n?t(1,l="transform: scaleX(-1);"):o?t(1,l="transform: scale(1.3333);"):t(1,l=void 0))},[n,l,o]}var Ga=class extends H{constructor(e){super(),U(this,e,Gb,jb,F,{isPrev:0,isMobile:2})}},H1=Ga;function Qb(i){let e,t;return e=new H1({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&8&&(l.isPrev=n[3]==="prev"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Yb(i){let e,t,n;function o(r){i[6](r)}let l={testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[Qb]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&8&&(s.testId="btn-"+r[3]),a&4&&(s.disabled=r[2]),a&32&&(s.ariaLabel=r[5]),a&16&&(s.click=r[4]),a&138&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Zb(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{type:r}=e,{click:a}=e,s;function u(f){n=f,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"isMobile"in f&&t(1,o=f.isMobile),"disabled"in f&&t(2,l=f.disabled),"type"in f&&t(3,r=f.type),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,s=r==="prev"?N("tooltip_previous"):N("tooltip_next"))},[n,o,l,r,a,s,u]}var Qa=class extends H{constructor(e){super(),U(this,e,Zb,Yb,F,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},dl=Qa;function Xb(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z"),c(t,"clip-rule","evenodd"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Jb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Ya=class extends H{constructor(e){super(),U(this,e,Jb,Xb,F,{})}},z1=Ya;function xb(i){let e,t,n,o,l,r,a=i[2].default,s=Te(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],f={};for(let p=0;p<u.length;p+=1)f=ce(f,u[p]);return{c(){e=R("svg"),s&&s.c(),t=R("path"),n=R("path"),o=R("path"),l=R("path"),c(t,"fill","#fff"),c(t,"d","M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"),c(n,"fill","#fff"),c(n,"d","M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35"),c(n,"class","_ru"),c(o,"fill","#fff"),c(o,"d","M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635"),c(o,"class","_en"),c(l,"fill","#fff"),c(l,"fill-rule","evenodd"),c(l,"d","M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"),c(l,"clip-rule","evenodd"),ke(e,f)},m(p,h){S(p,e,h),s&&s.m(e,null),m(e,t),m(e,n),m(e,o),m(e,l),r=!0},p(p,[h]){s&&s.p&&(!r||h&2)&&Ae(s,a,p,p[1],r?Ee(a,p[1],h,null):Le(p[1]),null),ke(e,f=Be(u,[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},h&1&&p[0]]))},i(p){r||(d(s,p),r=!0)},o(p){_(s,p),r=!1},d(p){p&&k(e),s&&s.d(p)}}}function $b(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Za=class extends H{constructor(e){super(),U(this,e,$b,xb,F,{})}},U1=Za;function ev(i){Pe(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 tv(i){let e,t;return e=new U1({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.width=n[0]),o&1&&(l.viewBox="0 0 "+(n[0]+1)+" 24"),o&2&&(l["data-testid"]=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}var iv="vk-video-logo-icon--short";function nv(i,e,t){let{short:n=!1}=e,{isCyrillic:o=!0}=e,l,r;return i.$$set=a=>{"short"in a&&t(2,n=a.short),"isCyrillic"in a&&t(3,o=a.isCyrillic)},i.$$.update=()=>{i.$$.dirty&12&&(t(0,l=n?21:95),t(1,r=n?iv:"vk-video-logo-icon"),!o&&!n&&(t(0,l=91),t(1,r="vk-video-logo-icon--en")))},[l,r,n,o]}var Xa=class extends H{constructor(e){super(),U(this,e,nv,tv,F,{short:2,isCyrillic:3},ev)}},K1=Xa;function lv(i){let e,t;return e=new z1({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p:Se,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function rv(i){let e,t;return e=new K1({props:{short:i[4],isCyrillic:i[5]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.short=n[4]),o&32&&(l.isCyrillic=n[5]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function sv(i){let e,t,n,o,l=[rv,lv],r=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ut()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(de(),_(r[f],1,1,()=>{r[f]=null}),me(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),r[e].d(s)}}}function av(i){let e,t,n;function o(r){i[14](r)}let l={className:"btn-full-opacity",disabled:!i[1],click:i[9],testId:i[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[3],$$slots:{default:[sv]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.disabled=!r[1]),a&4&&(s.testId=r[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(s.ariaLabel=r[3]),a&131124&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function uv(i,e,t){let n,o,l,{ref:r=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:s=""}=e,{click:u}=e,f=Dt(),p=ot(),h=p.ui.currentGridType$;q(i,h,I=>t(12,n=I));let C=p.ui.isMobile;q(i,C,I=>t(13,o=I));let g=p.isCyrillicRelatedInterface$;q(i,g,I=>t(5,l=I));let w,b,E,v=()=>{u(),p.callbacks?.onLogoClicked?p.callbacks?.onLogoClicked():s&&window.open(s,"_blank")};function y(I){r=I,t(0,r)}return i.$$set=I=>{"ref"in I&&t(0,r=I.ref),"logoClickable"in I&&t(1,a=I.logoClickable),"targetUrl"in I&&t(10,s=I.targetUrl),"click"in I&&t(11,u=I.click)},i.$$.update=()=>{i.$$.dirty&12292&&t(4,E=(o||Er(n,"l"))&&b)},t(3,w=f.logoType==="vk_video"?N("tooltip_vk_video_logo"):N("tooltip_vk_logo")),t(2,b=f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),[r,a,b,w,E,l,h,C,g,v,s,u,n,o,y]}var Ja=class extends H{constructor(e){super(),U(this,e,uv,av,F,{ref:0,logoClickable:1,targetUrl:10,click:11})}},Mr=Ja;import{ChromecastState as _v}from"@vkontakte/videoplayer-core";import{ChromecastState as W1}from"@vkontakte/videoplayer-core";function cv(i){Pe(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 fv(i){let e,t,n,o,l,r,a,s;return{c(){e=R("svg"),t=R("g"),n=R("path"),o=R("path"),l=R("path"),r=R("path"),a=R("path"),s=R("path"),c(n,"class","wave wave1 svelte-8z1bf5"),c(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),c(n,"fill","#fff"),c(o,"class","wave wave2 svelte-8z1bf5"),c(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),c(o,"fill","#fff"),c(l,"class","wave wave3 svelte-8z1bf5"),c(l,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),c(l,"fill","#fff"),c(r,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),c(r,"fill","#fff"),c(a,"d","M0 0h24v24H0z"),c(s,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),c(s,"fill","#fff"),D(s,"hidden",!i[1]),c(t,"fill","none"),c(t,"fill-rule","evenodd"),c(e,"width","24"),c(e,"height","24"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid","chromecast-icon"),c(e,"class","svelte-8z1bf5"),D(e,"connecting",i[2])},m(u,f){S(u,e,f),m(e,t),m(t,n),m(t,o),m(t,l),m(t,r),m(t,a),m(t,s)},p(u,f){f&2&&D(s,"hidden",!u[1]),f&4&&D(e,"connecting",u[2])},d(u){u&&k(e)}}}function dv(i){let e,t,n,o,l,r,a,s,u,f,p,h,C,g,w,b,E,v,y,I,K;return{c(){e=R("svg"),t=R("g"),n=R("mask"),o=R("path"),r=R("path"),a=R("path"),u=R("path"),f=R("defs"),p=R("clipPath"),h=R("path"),g=R("filter"),w=R("feFlood"),b=R("feColorMatrix"),E=R("feOffset"),v=R("feGaussianBlur"),y=R("feColorMatrix"),I=R("feBlend"),K=R("feBlend"),c(o,"fill",l=i[1]?"#2688EB":"#fff"),c(o,"d","M1.1 3.1h22v18h-22z"),c(r,"fill-rule","evenodd"),c(r,"clip-rule","evenodd"),c(r,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),c(n,"id","c"),c(n,"maskUnits","userSpaceOnUse"),c(n,"x","1.1"),c(n,"y","3.1"),c(n,"width","22"),c(n,"height","18"),c(n,"fill","#000"),c(a,"fill-rule","evenodd"),c(a,"clip-rule","evenodd"),c(a,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),c(a,"fill",s=i[1]?"#2688EB":"#fff"),c(u,"d","m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z"),c(u,"fill","#000"),c(u,"fill-opacity",".12"),c(u,"mask","url(#c)"),c(t,"filter","url(#b)"),c(t,"clip-path","url(#a)"),c(h,"fill",C=i[1]?"#2688EB":"#fff"),c(h,"d","M0 0h24v24H0z"),c(p,"id","a"),c(w,"flood-opacity","0"),c(w,"result","BackgroundImageFix"),c(b,"in","SourceAlpha"),c(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(b,"result","hardAlpha"),c(v,"stdDeviation","2.5"),c(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(I,"in2","BackgroundImageFix"),c(I,"result","effect1_dropShadow_4085_178456"),c(K,"in","SourceGraphic"),c(K,"in2","effect1_dropShadow_4085_178456"),c(K,"result","shape"),c(g,"id","b"),c(g,"x","-3.4"),c(g,"y","-1.4"),c(g,"width","30.8"),c(g,"height","26.802"),c(g,"filterUnits","userSpaceOnUse"),c(g,"color-interpolation-filters","sRGB"),c(e,"width","24"),c(e,"height","24"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid","chromecast-mobile-icon")},m(B,O){S(B,e,O),m(e,t),m(t,n),m(n,o),m(n,r),m(t,a),m(t,u),m(e,f),m(f,p),m(p,h),m(f,g),m(g,w),m(g,b),m(g,E),m(g,v),m(g,y),m(g,I),m(g,K)},p(B,O){O&2&&l!==(l=B[1]?"#2688EB":"#fff")&&c(o,"fill",l),O&2&&s!==(s=B[1]?"#2688EB":"#fff")&&c(a,"fill",s),O&2&&C!==(C=B[1]?"#2688EB":"#fff")&&c(h,"fill",C)},d(B){B&&k(e)}}}function mv(i){let e;function t(l,r){return l[0]?dv:fv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ut()},m(l,r){o.m(l,r),S(l,e,r)},p(l,[r]){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:Se,o:Se,d(l){l&&k(e),o.d(l)}}}function pv(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,l,r;return i.$$set=a=>{"isMobile"in a&&t(0,n=a.isMobile),"state"in a&&t(3,o=a.state)},i.$$.update=()=>{i.$$.dirty&8&&(t(2,r=o===W1.CONNECTING),t(1,l=o===W1.CONNECTED))},[n,l,r,o]}var xa=class extends H{constructor(e){super(),U(this,e,pv,mv,F,{isMobile:0,state:3},cv)}},j1=xa;import{noop as hv}from"@vkontakte/videoplayer-shared";function gv(i){let e,t;return e=new j1({props:{isMobile:i[1],state:i[2]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&4&&(l.state=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function bv(i){let e,t,n;function o(r){i[5](r)}let l={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[gv]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&16&&(s.ariaLabel=r[4]),a&8&&(s.click=r[3]),a&70&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function vv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:l}=e,{click:r=hv}=e,a;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"state"in u&&t(2,l=u.state),"click"in u&&t(3,r=u.click)},i.$$.update=()=>{i.$$.dirty&4&&t(4,a=l===_v.CONNECTED?N("tooltip_chromecast_on"):N("tooltip_chromecast_off"))},[n,o,l,r,a,s]}var $a=class extends H{constructor(e){super(),U(this,e,vv,bv,F,{ref:0,isMobile:1,state:2,click:3})}},Vr=$a;import{PlaybackState as eu}from"@vkontakte/videoplayer-core";function yv(i){let e,t;return e=new cr({props:{isActive:i[1]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function kv(i){let e,t;return e=new pt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===eu.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[yv]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(l.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(l.disabled=n[1]&&n[3]===eu.PLAYING),o&4&&(l.ariaLabel=n[2]),o&16&&(l.click=n[4]),o&514&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function wv(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:l=!1}=e,{ariaLabel:r=""}=e,a=ot(),s=a.state.playbackState$;q(i,s,h=>t(3,n=h));let u=a.actions.internal.switchToActiveLive,f=a.actions.internal.togglePlay,p;return i.$$set=h=>{"isMobile"in h&&t(0,o=h.isMobile),"isActiveLive"in h&&t(1,l=h.isActiveLive),"ariaLabel"in h&&t(2,r=h.ariaLabel)},i.$$.update=()=>{i.$$.dirty&10&&t(4,p=()=>{if(!l){u();return}n===eu.PAUSED&&f()})},[o,l,r,n,p,s]}var tu=class extends H{constructor(e){super(),U(this,e,wv,kv,F,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Rr=tu;function Sv(i){Pe(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 Cv(i){let e,t,n,o,l=i[9].default,r=Te(l,i,i[8],null);return{c(){e=P("div"),t=P("div"),r&&r.c(),c(t,"class","tooltip svelte-5ygsa2"),D(t,"active",i[0]),D(t,"pointer",i[1]),c(e,"class","tooltip-wrapper svelte-5ygsa2"),c(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(a,s){S(a,e,s),m(e,t),r&&r.m(t,null),i[10](t),i[11](e),o=!0},p(a,[s]){r&&r.p&&(!o||s&256)&&Ae(r,l,a,a[8],o?Ee(l,a[8],s,null):Le(a[8]),null),(!o||s&1)&&D(t,"active",a[0]),(!o||s&2)&&D(t,"pointer",a[1]),(!o||s&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&c(e,"style",n)},i(a){o||(d(r,a),o=!0)},o(a){_(r,a),o=!1},d(a){a&&k(e),r&&r.d(a),i[10](null),i[11](null)}}}function Pv(i,e,t){let n,{$$slots:o={},$$scope:l}=e,{active:r=!1}=e,{pointer:a=!1}=e,{translateXPx:s=0}=e,{translateYPx:u=0}=e,{containerWidth:f}=e,p,h;function C(b){if(!h)return 0;let{width:E}=h.getBoundingClientRect(),v=E/2;return b<v?v:b>f-v?f-v:b}function g(b){ge[b?"unshift":"push"](()=>{h=b,t(4,h)})}function w(b){ge[b?"unshift":"push"](()=>{p=b,t(3,p)})}return i.$$set=b=>{"active"in b&&t(0,r=b.active),"pointer"in b&&t(1,a=b.pointer),"translateXPx"in b&&t(6,s=b.translateXPx),"translateYPx"in b&&t(2,u=b.translateYPx),"containerWidth"in b&&t(7,f=b.containerWidth),"$$scope"in b&&t(8,l=b.$$scope)},i.$$.update=()=>{i.$$.dirty&64&&t(5,n=C(s))},[r,a,u,p,h,n,s,f,l,o,g,w]}var iu=class extends H{constructor(e){super(),U(this,e,Pv,Cv,F,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},Sv)}},G1=iu;var Br=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function Iv(i){Pe(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 Q1(i){let e;function t(l,r){return l[2]&&l[10].completed===!1?Ev:Tv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ut()},m(l,r){o.m(l,r),S(l,e,r)},p(l,r){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&k(e),o.d(l)}}}function Tv(i){let e=(i[10].text||"")+"",t;return{c(){t=Re(e)},m(n,o){S(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&We(t,e)},d(n){n&&k(t)}}}function Ev(i){let e=N("tooltip_episode_unfinished")+"",t;return{c(){t=Re(e)},m(n,o){S(n,t,o)},p:Se,d(n){n&&k(t)}}}function Y1(i){let e,t;return{c(){e=P("div"),t=Re(i[0]),c(e,"class","time svelte-l51fc1")},m(n,o){S(n,e,o),m(e,t)},p(n,o){o&1&&We(t,n[0])},d(n){n&&k(e)}}}function Av(i){let e,t,n,o,l,r,a=i[10]&&Q1(i),s=!i[2]&&Y1(i);return{c(){e=P("div"),t=P("div"),o=M(),l=P("div"),a&&a.c(),r=M(),s&&s.c(),c(t,"class","preview svelte-l51fc1"),c(t,"style",n=`width: ${i[3]}px; height: ${i[4]}px; background-image: url(${i[5]}); background-size: ${i[6]}px ${i[7]}px; background-position: ${i[8]}px ${i[9]}px; transform: translateY(${i[11]%180?-35:0}px) rotate(${i[11]}deg);`),c(l,"class","episode svelte-l51fc1"),c(e,"class","timeline-preview svelte-l51fc1"),D(e,"mobile",i[1])},m(u,f){S(u,e,f),m(e,t),m(e,o),m(e,l),a&&a.m(l,null),m(e,r),s&&s.m(e,null)},p(u,[f]){f&3064&&n!==(n=`width: ${u[3]}px; height: ${u[4]}px; background-image: url(${u[5]}); background-size: ${u[6]}px ${u[7]}px; background-position: ${u[8]}px ${u[9]}px; transform: translateY(${u[11]%180?-35:0}px) rotate(${u[11]}deg);`)&&c(t,"style",n),u[10]?a?a.p(u,f):(a=Q1(u),a.c(),a.m(l,null)):a&&(a.d(1),a=null),u[2]?s&&(s.d(1),s=null):s?s.p(u,f):(s=Y1(u),s.c(),s.m(e,null)),f&2&&D(e,"mobile",u[1])},i:Se,o:Se,d(u){u&&k(e),a&&a.d(),s&&s.d()}}}var ml=150;function Lv(i,e,t){let n,{time:o=""}=e,{isMobile:l=!1}=e,{videoEpisodes:r=[]}=e,{previewThumbsData:a}=e,{progress:s=0}=e,{duration:u=0}=e,{isInteractive:f=!1}=e,h=ot().ui.rotateAlpha;q(i,h,O=>t(11,n=O));let C,g,w,b,E,v,y,I;function K(){let O=a.frameWidth,oe=a.frameHeight;return O>ml?(oe=oe/O*ml,O=ml):oe>ml&&(O=O/oe*ml,oe=ml),{width:O,height:oe}}function B(O){let oe;a.isUV?oe=Math.floor(u*O/a.frequency):oe=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*O)));let he=Math.floor(oe/a.countPerImage),G=Math.floor(oe%a.countPerImage/a.countPerRow),X=oe%a.countPerRow,ue=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&he===Math.floor(a.countTotal/a.countPerImage)&&(ue=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&ue++);let j=a.countPerRow;!a.isUV&&he===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(j=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let z=C*j,Q=g*ue,$=-X*C,W=-G*g;return{imgSrc:a.links[he],imgWidth:z,imgHeight:Q,imgOffsetX:$,imgOffsetY:W}}return i.$$set=O=>{"time"in O&&t(0,o=O.time),"isMobile"in O&&t(1,l=O.isMobile),"videoEpisodes"in O&&t(13,r=O.videoEpisodes),"previewThumbsData"in O&&t(14,a=O.previewThumbsData),"progress"in O&&t(15,s=O.progress),"duration"in O&&t(16,u=O.duration),"isInteractive"in O&&t(2,f=O.isInteractive)},i.$$.update=()=>{i.$$.dirty&32768&&t(5,{imgSrc:w,imgWidth:b,imgHeight:E,imgOffsetX:v,imgOffsetY:y}=B(s),w,(t(6,b),t(15,s)),(t(7,E),t(15,s)),(t(8,v),t(15,s)),(t(9,y),t(15,s))),i.$$.dirty&106496&&t(10,I=Br(s,u,r))},t(3,{width:C,height:g}=K(),C,t(4,g)),[o,l,f,C,g,w,b,E,v,y,I,n,h,r,a,s,u]}var nu=class extends H{constructor(e){super(),U(this,e,Lv,Av,F,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},Iv)}},Z1=nu;function Mv(i){Pe(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 Vv(i){let e,t;return{c(){e=P("span"),t=Re(i[8]),c(e,"class","time svelte-5lzly8")},m(n,o){S(n,e,o),m(e,t)},p(n,o){o[0]&256&&We(t,n[8])},i:Se,o:Se,d(n){n&&k(e)}}}function Rv(i){let e,t;return e=new Z1({props:{time:i[8],isMobile:i[11],videoEpisodes:i[4],previewThumbsData:i[22],progress:i[9],duration:i[2],isInteractive:i[24]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&256&&(l.time=n[8]),o[0]&2048&&(l.isMobile=n[11]),o[0]&16&&(l.videoEpisodes=n[4]),o[0]&512&&(l.progress=n[9]),o[0]&4&&(l.duration=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Bv(i){let e,t,n,o,l=[Rv,Vv],r=[];function a(s,u){return s[15].features.timelinePreview&&s[22]&&!s[1]?0:1}return e=a(i,[-1,-1]),t=r[e]=l[e](i),{c(){t.c(),n=ut()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(de(),_(r[f],1,1,()=>{r[f]=null}),me(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),r[e].d(s)}}}function Dv(i){let e,t,n,o,l,r=[i[10]],a={$$slots:{default:[Bv]},$$scope:{ctx:i}};for(let f=0;f<r.length;f+=1)a=ce(a,r[f]);e=new G1({props:a});function s(f){i[43](f)}let u={isActiveLive:i[12],isMobile:i[11],ariaLabel:N("aria_timeline"),ariaValueMin:0,ariaValueMax:i[2],ariaValueNow:Math.round(i[7]*100),ariaValueText:N("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 cl({props:u}),ge.push(()=>Ne(n,"ref",s)),{c(){V(e.$$.fragment),t=M(),V(n.$$.fragment)},m(f,p){A(e,f,p),S(f,t,p),A(n,f,p),l=!0},p(f,p){let h=p[0]&1024?Be(r,[Oc(f[10])]):{};p[0]&2838|p[1]&524288&&(h.$$scope={dirty:p,ctx:f}),e.$set(h);let C={};p[0]&4096&&(C.isActiveLive=f[12]),p[0]&2048&&(C.isMobile=f[11]),p[0]&4&&(C.ariaValueMax=f[2]),p[0]&128&&(C.ariaValueNow=Math.round(f[7]*100)),p[0]&96&&(C.ariaValueText=N("aria_timeline_value",{position:f[6],duration:f[5]})),p[0]&8192&&(C.loadedProgress=f[13]),p[0]&128&&(C.filledProgress=f[7]),p[0]&128&&(C.handleProgress=f[7]),p[0]&16&&(C.videoEpisodes=f[4]),p[0]&16384&&(C.disabled=f[14].has("TIMELINE")),p[0]&8&&(C.hideHandel=f[3]),!o&&p[0]&1&&(o=!0,C.ref=f[0],qe(()=>o=!1)),n.$set(C)},i(f){l||(d(e.$$.fragment,f),d(n.$$.fragment,f),l=!0)},o(f){_(e.$$.fragment,f),_(n.$$.fragment,f),l=!1},d(f){f&&k(t),L(e,f),L(n,f)}}}function qv(i,e,t){let n,o,l,r,a,s,u,f,p,h,C,{showTimeline:g=!1}=e,{ref:w=void 0}=e,b=ot(),E=Dt(),v=b.state.bufferedProgress$;q(i,v,x=>t(13,h=x));let y=b.state.positionWithScrubbing$;q(i,y,x=>t(41,s=x));let I=b.state.duration$;q(i,I,x=>t(2,l=x));let K=b.state.isLive$;q(i,K,x=>t(1,o=x));let B=b.state.isActiveLive$;q(i,B,x=>t(12,p=x));let O=b.ui.isMobile;q(i,O,x=>t(11,f=x));let oe=E.features.episodes?b.actions.internal.getVideoEpisodes():void 0,he=b.actions.internal.getPreviewThumbsData(),G=b.state.interactiveEpisodes$;q(i,G,x=>t(42,u=x));let X=b.state.isInteractive,ue=b.state.isInteractiveTime$;q(i,ue,x=>t(3,r=x));let j=b.state.isInteractiveExpectation$;q(i,j,x=>t(40,a=x));let z=b.actions.internal.correctSeekTimeToInteractive,Q=b.callbacks?.onDisabledTimelineClick,$=b.ui.controls.disabledControls$;q(i,$,x=>t(14,C=x));let W,Y,ie,re,Ve=!1,Je="",Ce=0,Me=0,ze=0,$e;function fe(x){return!z||!X?x:z(x*l)/l}function _e(x){b.actions.internal.startScrubbing(fe(x))}function at(x){r||b.actions.internal.progressScrubbing(fe(x))}function we(x){b.actions.internal.completeScrubbing(fe(x)),t(36,Ve=!1)}function Fe(x,Oe,Ge){Xe(x,Oe,Ge),t(36,Ve=!0)}function ft(x,Oe,Ge){Xe(x,Oe,Ge),t(36,Ve=!0)}function Ke(){t(36,Ve=!1)}function Xe(x,Oe,Ge){t(9,ze=fe(x)),t(37,Ce=Oe),Ge&&t(38,Me=Ge),t(8,Je=je(x))}function je(x){let Oe=In((o?1-x:x)*l);return o?`-${Oe}`:Oe}function et(x){w=x,t(0,w)}return i.$$set=x=>{"showTimeline"in x&&t(35,g=x.showTimeline),"ref"in x&&t(0,w=x.ref)},i.$$.update=()=>{i.$$.dirty[1]&2048&&t(4,W=X?u:oe),i.$$.dirty[0]&4&&t(5,Y=In(l)),i.$$.dirty[1]&1024&&t(6,ie=In(s)),i.$$.dirty[0]&4|i.$$.dirty[1]&1024&&t(7,re=s/l),i.$$.dirty[0]&8|i.$$.dirty[1]&512&&t(39,$e=a||r),i.$$.dirty[0]&2|i.$$.dirty[1]&496&&t(10,n={containerWidth:Me,translateXPx:Ce,translateYPx:X&&he?-36:-16,active:Ve&&g&&!$e,pointer:!E.features.timelinePreview||!he||o})},[w,o,l,r,W,Y,ie,re,Je,ze,n,f,p,h,C,E,v,y,I,K,B,O,he,G,X,ue,j,Q,$,_e,at,we,Fe,ft,Ke,g,Ve,Ce,Me,$e,a,s,u,et]}var ou=class extends H{constructor(e){super(),U(this,e,qv,Dv,F,{showTimeline:35,ref:0},Mv,[-1,-1])}},X1=ou;function Nv(i){let e,t;return e=new cl({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:N("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.ariaValueMax=n[0]),o&8&&(l.ariaValueNow=Math.round(n[3]*100)),o&6&&(l.ariaValueText=N("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(l.filledProgress=n[3]),o&16&&(l.squareBorders=n[4]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Ov(i,e,t){let n,{position:o=0}=e,{duration:l=0}=e,a=ot().ui.isMobile;q(i,a,p=>t(4,n=p));let s,u,f;return i.$$set=p=>{"position"in p&&t(6,o=p.position),"duration"in p&&t(0,l=p.duration)},i.$$.update=()=>{i.$$.dirty&1&&t(1,s=In(l)),i.$$.dirty&64&&t(2,u=In(o)),i.$$.dirty&65&&t(3,f=o/l)},[l,s,u,f,n,a,o]}var lu=class extends H{constructor(e){super(),U(this,e,Ov,Nv,F,{position:6,duration:0})}},Dr=lu;function Fv(i){Pe(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 Hv(i){let e;return{c(){e=P("div"),c(e,"class","timeline-stub svelte-1gqonyf"),D(e,"mobile",i[3])},m(t,n){S(t,e,n)},p(t,n){n&8&&D(e,"mobile",t[3])},i:Se,o:Se,d(t){t&&k(e)}}}function zv(i){let e,t,n,o,l=[Kv,Uv],r=[];function a(s,u){return s[1]?0:1}return t=a(i,-1),n=r[t]=l[t](i),{c(){e=P("div"),n.c(),c(e,"class","timeline svelte-1gqonyf"),D(e,"mobile",i[3])},m(s,u){S(s,e,u),r[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?r[t].p(s,u):(de(),_(r[f],1,1,()=>{r[f]=null}),me(),n=r[t],n?n.p(s,u):(n=r[t]=l[t](s),n.c()),d(n,1),n.m(e,null)),(!o||u&8)&&D(e,"mobile",s[3])},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&k(e),r[t].d()}}}function Uv(i){let e,t,n;function o(r){i[14](r)}let l={showTimeline:i[2]};return i[0]!==void 0&&(l.ref=i[0]),e=new X1({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a&4&&(s.showTimeline=r[2]),!t&&a&1&&(t=!0,s.ref=r[0],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Kv(i){let e,t;return e=new Dr({props:{position:i[4],duration:i[5]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.position=n[4]),o&32&&(l.duration=n[5]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Wv(i){let e,t,n,o,l=[zv,Hv],r=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ut()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(de(),_(r[f],1,1,()=>{r[f]=null}),me(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),r[e].d(s)}}}function jv(i,e,t){let n,o,l,r,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:f=!1}=e,{ref:p=void 0}=e,h=ot(),C=h.state.isLive$;q(i,C,y=>t(13,n=y));let g=h.ads.duration;q(i,g,y=>t(5,r=y));let w=h.ads.position;q(i,w,y=>t(4,l=y));let b=h.ui.isMobile;q(i,b,y=>t(3,o=y));let E;function v(y){p=y,t(0,p)}return i.$$set=y=>{"isAds"in y&&t(1,a=y.isAds),"canRewindLive"in y&&t(10,s=y.canRewindLive),"isRewindableLive"in y&&t(11,u=y.isRewindableLive),"isHidden"in y&&t(12,f=y.isHidden),"ref"in y&&t(0,p=y.ref)},i.$$.update=()=>{i.$$.dirty&15362&&t(2,E=!f&&(!n||n&&s&&u||a))},[p,a,E,o,l,r,C,g,w,b,s,u,f,n,v]}var ru=class extends H{constructor(e){super(),U(this,e,jv,Wv,F,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},Fv)}},qr=ru;import{noop as Xv}from"@vkontakte/videoplayer-shared";function Gv(i){let e,t,n,o,l,r=i[2].default,a=Te(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ce(u,s[f]);return{c(){e=R("svg"),a&&a.c(),t=R("path"),n=R("path"),o=R("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(n,"d","M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(o,"d","M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"),ke(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,t),m(e,n),m(e,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ke(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function Qv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var su=class extends H{constructor(e){super(),U(this,e,Qv,Gv,F,{})}},J1=su;function Yv(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708"),c(t,"clip-rule","evenodd"),c(t,"opacity",".7"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Zv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var au=class extends H{constructor(e){super(),U(this,e,Zv,Yv,F,{})}},x1=au;function Jv(i){Pe(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 xv(i){let e,t,n,o;e=new J1({});function l(s,u){if(s[4]==="FULL")return t4;if(s[4]==="COUNT")return e4}let r=l(i,-1),a=r&&r(i);return{c(){V(e.$$.fragment),t=M(),a&&a.c(),n=ut()},m(s,u){A(e,s,u),S(s,t,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){r===(r=l(s,u))&&a?a.p(s,u):(a&&a.d(1),a=r&&r(s),a&&(a.c(),a.m(n.parentNode,n)))},i(s){o||(d(e.$$.fragment,s),o=!0)},o(s){_(e.$$.fragment,s),o=!1},d(s){s&&(k(t),k(n)),L(e,s),a&&a.d(s)}}}function $v(i){let e,t,n,o,l,r;return l=new x1({}),{c(){e=P("span"),t=Re(i[2]),n=M(),o=P("div"),V(l.$$.fragment),c(e,"class","text mobile svelte-1yhs2ga"),c(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){S(a,e,s),m(e,t),S(a,n,s),S(a,o,s),A(l,o,null),r=!0},p(a,s){(!r||s&4)&&We(t,a[2])},i(a){r||(d(l.$$.fragment,a),r=!0)},o(a){_(l.$$.fragment,a),r=!1},d(a){a&&(k(e),k(n),k(o)),L(l)}}}function e4(i){let e,t=i[0].length+"",n;return{c(){e=P("span"),n=Re(t),c(e,"class","text count svelte-1yhs2ga")},m(o,l){S(o,e,l),m(e,n)},p(o,l){l&1&&t!==(t=o[0].length+"")&&We(n,t)},d(o){o&&k(e)}}}function t4(i){let e,t;return{c(){e=P("span"),t=Re(i[2]),c(e,"class","text svelte-1yhs2ga")},m(n,o){S(n,e,o),m(e,t)},p(n,o){o&4&&We(t,n[2])},d(n){n&&k(e)}}}function i4(i){let e,t,n,o,l=[$v,xv],r=[];function a(s,u){return s[6]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ut()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(de(),_(r[f],1,1,()=>{r[f]=null}),me(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),r[e].d(s)}}}function n4(i){let e,t,n;function o(r){i[19](r)}let l={className:"w-max btn-full-opacity "+(i[6]?"px-0":""),testId:"btn-episodes",click:i[12],disabled:!i[7],ariaExpanded:i[3],ariaLabel:i[5],$$slots:{default:[i4]},$$scope:{ctx:i}};return i[1]!==void 0&&(l.ref=i[1]),e=new pt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&64&&(s.className="w-max btn-full-opacity "+(r[6]?"px-0":"")),a&8&&(s.ariaExpanded=r[3]),a&32&&(s.ariaLabel=r[5]),a&8388693&&(s.$$scope={dirty:a,ctx:r}),!t&&a&2&&(t=!0,s.ref=r[1],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function o4(i,e,t){let n,o,l,r,a,s,{position:u=0}=e,{duration:f=0}=e,{timeCodes:p=[]}=e,h=ot(),C=h.callbacks?.onEpisodeChanged??Xv,g=!!h.callbacks?.onEpisodeClicked,w=h.ui.currentGridType$;q(i,w,G=>t(18,a=G));let b=h.ui.episodes.openedByKeyboard$;q(i,b,G=>t(17,r=G));let E=h.ui.episodes.panelOpened$;q(i,E,G=>t(3,l=G));let v=h.ui.isMobile;q(i,v,G=>t(6,s=G));let y,I=G=>{if(!!h.callbacks?.onEpisodeClicked){let ue=nl(G);b.set(ue),E.set(!0),h.callbacks?.onEpisodeClicked?.(ue)}},K,B,O,oe=async(G,X,ue)=>{await zn(),G?.getAttribute("aria-expanded")==="false"&&X&&!ue&&(b.set(!1),G.focus())};function he(G){y=G,t(1,y)}return i.$$set=G=>{"position"in G&&t(13,u=G.position),"duration"in G&&t(14,f=G.duration),"timeCodes"in G&&t(0,p=G.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576&&t(16,n=u/f),i.$$.dirty&114689){let G=Br(n,f,p);G&&K?.text!==G.text&&(C(G),t(15,K=G))}i.$$.dirty&32768&&t(2,o=K?.text||""),i.$$.dirty&262144&&(Tn(a,"xl")?t(4,B="FULL"):Tn(a,"m")&&V1(a,"xl")?t(4,B="COUNT"):t(4,B="SHORT")),i.$$.dirty&4&&t(5,O=`${N("tooltip_episodes")}: ${o}`),i.$$.dirty&131082&&oe(y,r,l)},[p,y,o,l,B,O,s,g,w,b,E,v,I,u,f,K,n,r,a,he]}var uu=class extends H{constructor(e){super(),U(this,e,o4,n4,F,{position:13,duration:14,timeCodes:0},Jv)}},Nr=uu;function l4(i){let e,t,n,o,l=i[2].default,r=Te(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ce(s,a[u]);return{c(){e=R("svg"),r&&r.c(),t=R("path"),n=R("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"d","M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"),ke(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ke(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function r4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var cu=class extends H{constructor(e){super(),U(this,e,r4,l4,F,{})}},$1=cu;function s4(i){let e,t;return e=new $1({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function a4(i){let e,t,n;function o(r){i[4](r)}let l={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:N("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[s4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&8&&(s.click=r[3]),a&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function u4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,l=s.disabled),"click"in s&&t(3,r=s.click)},[n,o,l,r,a]}var fu=class extends H{constructor(e){super(),U(this,e,u4,a4,F,{ref:0,hidden:1,disabled:2,click:3})}},Or=fu;function c4(i){let e,t,n,o,l=i[2].default,r=Te(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ce(s,a[u]);return{c(){e=R("svg"),r&&r.c(),t=R("path"),n=R("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(n,"d","M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z"),c(n,"class","_closed"),c(n,"clip-rule","evenodd"),ke(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ke(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function f4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var du=class extends H{constructor(e){super(),U(this,e,f4,c4,F,{})}},em=du;function d4(i){Pe(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function m4(i){let e,t;return e=new em({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function p4(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var mu=class extends H{constructor(e){super(),U(this,e,p4,m4,F,{isOpened:0},d4)}},tm=mu;function _4(i){let e,t;return e=new tm({props:{isOpened:i[3]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&8&&(l.isOpened=n[3]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function h4(i){let e,t,n;function o(r){i[6](r)}let l={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[_4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&32&&(s.ariaLabel=r[5]),a&16&&(s.click=r[4]),a&136&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function g4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{graphIsOpened:r=!1}=e,{click:a}=e,s;function u(f){n=f,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"hidden"in f&&t(1,o=f.hidden),"disabled"in f&&t(2,l=f.disabled),"graphIsOpened"in f&&t(3,r=f.graphIsOpened),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,s=r?N("tooltip_interactive_graph_on"):N("tooltip_interactive_graph_off"))},[n,o,l,r,a,s,u]}var pu=class extends H{constructor(e){super(),U(this,e,g4,h4,F,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Fr=pu;function b4(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.67.67 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function v4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var _u=class extends H{constructor(e){super(),U(this,e,v4,b4,F,{})}},Hr=_u;import{noop as y4}from"@vkontakte/videoplayer-shared";function k4(i){Pe(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 im(i){let e;return{c(){e=P("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){S(t,e,n)},d(t){t&&k(e)}}}function w4(i){let e,t,n,o,l=i[1]&&im(i);return n=new Hr({}),{c(){l&&l.c(),e=M(),t=P("div"),V(n.$$.fragment),c(t,"class","svelte-1ot3duq"),D(t,"mobile",i[1])},m(r,a){l&&l.m(r,a),S(r,e,a),S(r,t,a),A(n,t,null),o=!0},p(r,a){r[1]?l||(l=im(r),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),(!o||a&2)&&D(t,"mobile",r[1])},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){_(n.$$.fragment,r),o=!1},d(r){r&&(k(e),k(t)),l&&l.d(r),L(n)}}}function S4(i){let e,t,n;function o(r){i[5](r)}let l={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:N("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:Qn.KeyK,$$slots:{default:[w4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&10&&(s.className=(r[1]?"btn-m--play":"")+" "+r[3]),a&4&&(s.disabled=r[2]),a&16&&(s.click=r[4]),a&66&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function C4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{className:r=""}=e,{click:a=y4}=e;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"disabled"in u&&t(2,l=u.disabled),"className"in u&&t(3,r=u.className),"click"in u&&t(4,a=u.click)},[n,o,l,r,a,s]}var hu=class extends H{constructor(e){super(),U(this,e,C4,S4,F,{ref:0,isMobile:1,disabled:2,className:3,click:4},k4)}},Ll=hu;function P4(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function I4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var gu=class extends H{constructor(e){super(),U(this,e,I4,P4,F,{})}},nm=gu;function T4(i){let e,t;return e=new nm({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function E4(i){let e,t,n;function o(r){i[4](r)}let l={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:N("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[T4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&8&&(s.click=r[3]),a&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function A4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,l=s.disabled),"click"in s&&t(3,r=s.click)},[n,o,l,r,a]}var bu=class extends H{constructor(e){super(),U(this,e,A4,E4,F,{ref:0,hidden:1,disabled:2,click:3})}},zr=bu;import{noop as om}from"@vkontakte/videoplayer-shared";function L4(i){Pe(i,"svelte-1x1zctw",".icon.svelte-1x1zctw{width:24px !important;height:24px !important;;}.error-stub.svelte-1x1zctw{display:flex;justify-content:center;align-items:center}.inner.svelte-1x1zctw{width:16px;height:16px;background-color:var(--white)}")}function M4(i){let e,t,n,o;return{c(){e=P("img"),c(e,"class","icon svelte-1x1zctw"),ms(e.src,t=i[0])||c(e,"src",t),c(e,"aria-hidden","true")},m(l,r){S(l,e,r),n||(o=pe(e,"error",i[7]),n=!0)},p(l,r){r&1&&!ms(e.src,t=l[0])&&c(e,"src",t)},d(l){l&&k(e),n=!1,o()}}}function V4(i){let e;return{c(){e=P("div"),e.innerHTML='<div class="inner svelte-1x1zctw"></div>',c(e,"class","icon error-stub svelte-1x1zctw")},m(t,n){S(t,e,n)},p:Se,d(t){t&&k(e)}}}function R4(i){let e;function t(l,r){return l[5]?V4:M4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ut()},m(l,r){o.m(l,r),S(l,e,r)},p(l,r){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&k(e),o.d(l)}}}function B4(i){let e,t;return e=new pt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[R4]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&16&&(l.className=n[4]?"btn-full-opacity":""),o&2&&(l.ariaLabel=n[1]),o&8&&(l.click=n[3]),o&64&&(l.disabled=n[6]),o&4&&(l.testId=n[2]),o&545&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function D4(i,e,t){let n,o,l,{iconUrl:r}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:f=om}=e,p=()=>{t(5,l=!0)};return i.$$set=h=>{"iconUrl"in h&&t(0,r=h.iconUrl),"ariaLabel"in h&&t(1,a=h.ariaLabel),"disabled"in h&&t(8,s=h.disabled),"testId"in h&&t(2,u=h.testId),"onClick"in h&&t(3,f=h.onClick)},i.$$.update=()=>{i.$$.dirty&8&&t(4,n=f===om),i.$$.dirty&272&&t(6,o=n||s)},t(5,l=!1),[r,a,u,f,n,l,o,p,s]}var vu=class extends H{constructor(e){super(),U(this,e,D4,B4,F,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},L4)}},Ur=vu;import{debounceFn as d3}from"@vkontakte/videoplayer-shared";import{ChromecastState as z4,PlaybackState as Ml,Player as U4,VideoFormat as Vl}from"@vkontakte/videoplayer-core";import{Tracer as K4,isInvariantQuality as W4}from"@vkontakte/videoplayer-shared";import{assertNonNullable as qn,getHighestQuality as j4,InterfaceLanguage as G4,clientChecker as Q4,isNonNullable as Y4,loadVKLangPack as Z4,Logger as X4,map as J4,merge as x4,Observable as $4,Subject as Gr,Subscription as Pu,ValueSubject as e3,VideoQuality as t3}from"@vkontakte/videoplayer-shared";import{SeekAction as fo}from"@vkontakte/videoplayer-statistics";import"@vkontakte/videoplayer-interactive";import{addScript as q4,assertNonNullable as Ki,Subject as Oo,clearVideoElement as N4}from"@vkontakte/videoplayer-shared";var lm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var O4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Kr=class{constructor(e,t){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={slotRequested$:new Oo,started$:new Oo,paused$:new Oo,resumed$:new Oo,ended$:new Oo,skipped$:new Oo,clicked$:new Oo};this.loadAdman=e=>new Promise((t,n)=>{let o,l=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};q4(O4,e,this.loadTimeout).then(()=>{window.AdmanHTML?t():(window.admanAsyncInit=l,o=window.setTimeout(l,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};this.onAdStarted=(e,t)=>{Ki(this.adsState),Ki(this.playerState),Ki(this.actions),this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(t)}`}),this.events.started$.next(e),t.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),xe(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay),this.startWatchDog()};this.onAdTimeRemained=({currentTime:e})=>{Ki(this.adsState),this.adsState.position.set(e),this.startWatchDog()};this.onAdPaused=()=>{this.stopWatchDog(),Ki(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{Ki(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing"),this.startWatchDog()};this.onAdMidrollPoint=()=>{Ki(this.adman),Ki(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch{this.log({message:"could not start midroll"}),this.onAdError()}};this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{this.log({message:"ad clicked"}),this.videoElement?.pause(),this.events.clicked$.next(),this.stopWatchDog()};this.onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout,this.runtimeTimeout=t.runtimeTimeout}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){if(this.adman)return;this.startWatchDog();let{width:t,height:n,isFullscreen:o,isAutoplay:l,adsContainer:r,adsVideoElement:a,slotId:s,params:u={},duration:f,previewParam:p}=e,h,C=this.playerState&&xe(this.playerState.vsid);C&&(h=parseInt(C,36));let g={dl:encodeURIComponent(window.location.href),autoplay:l,player_width:t,player_height:n,puid10:lm(t,n),puid11:o?0:1,preview:p,...h?{request_id:h}:{},duration:f,...u};p||delete g.preview;let w={slot:s,wrapper:r,videoEl:a,videoQuality:n,params:g,browser:{mobile:!1}};try{let b=new window.AdmanHTML;b.setDebug(!1),b.onReady(this.onAdsReady),b.onStarted(this.onAdStarted),b.onPlayed(this.onAdPlayed),b.onPaused(this.onAdPaused),b.adMidrollPoint(this.onAdMidrollPoint),b.onClosed(this.onAdClosed),b.onSkipped(this.onAdSkipped),b.onClicked(this.onAdClicked),b.onTimeRemained(this.onAdTimeRemained),b.onCompleted(this.onAdCompleted),b.onError(this.onAdError),b.init(w),this.adman=b,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(w)}`})}catch{this.log({message:"could not init adman"}),this.onAdError()}}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}Ki(this.actions),Ki(this.adsState),Ki(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(){Ki(this.adsState),this.log({message:"toggle play"});let e=xe(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){if(this.log({message:`set volume ${e}`}),this.adman)try{this.adman.setVolume(e)}catch{this.log({message:"could not set ad volume"}),this.onAdError()}this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch{this.log({message:"could not set ad fullscreen"}),this.onAdError()}}startPreroll(){if(Ki(this.adman),!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch{this.log({message:"could not start preroll"}),this.onAdError()}}}startPostroll(){Ki(this.adman),Ki(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch{this.log({message:"could not start postroll"}),this.onAdError()}}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError(),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){Ki(this.adman),this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch{this.onAdError(),this.log({message:"could not resume ad"})}}pause(){Ki(this.adman),this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch{this.onAdError(),this.log({message:"could not pause ad"})}}skip(){Ki(this.adman),this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch{this.log({message:"could not skip ad"}),this.onAdError()}}setPosition(e,t){this.adman?.setPosition(Math.floor(e),Math.floor(t))}destroy(){this.log({message:"destroy"}),this.stopWatchDog(),this.adman?.destroy(),this.videoElement&&N4(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 yu=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let t=[],n=e.split(this.twoLinesRegExp);for(let o of n){let l={startTime:0,endTime:0,texts:[],lang:""},r=o.split(this.oneLineRegExp);for(let a of r)if(!l.startTime&&!l.endTime){let s=new Wr,{startTime:u,endTime:f}=s.parse(a);l.startTime=u,l.endTime=f}else if(a.trim()!==""){let s=new ku,{texts:u}=s.parse(a);l.texts=[...l.texts,...u]}(l.startTime||l.endTime)&&l.texts.length>0&&t.push(l)}return t}},Wr=class{constructor(){this.timeRegExp=/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let t={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(t.startTime=this.calcTime(n[1],n[2],n[3],n[4]),t.endTime=this.calcTime(n[6],n[7],n[8],n[9])),t}parseTime(e){let t=this.timeRegExp.exec(e);return t?this.calcTime(t[1],t[2],t[3],t[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",t="0",n="0",o="0"){let l=Number(e)*60*60,r=Number(t)*60,a=Number(n),s=+`0.${o}`;return l+r+a+s}},ku=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](r){let a=0,s=[];for(;a<r.length;){let u=["<",">"].reduce((f,p)=>{let h=r.indexOf(p,a);return f===-1||f>h?h:f},-1);if(u===-1){s.push(r.substring(a));break}s.push(r.substring(a,u)),a=u+1}return s}}),l=new Wr;for(let r of o)l.isTime(r)?t.texts.push({type:"timestamp",value:l.parseTime(r)}):t.texts.push({type:"text",value:r});return t}},sm=yu;import{isNonNullable as wu}from"@vkontakte/videoplayer-shared";var co,Dn,Su=0,Cu=!1,am=(i,e,t)=>{let n=i>=Su,o=i<Su,l=(u,f=0,p=0)=>u<f&&u<p,r=(u,f=0,p=0)=>u>=f&&u<=p,a=(u,f=0,p=0)=>u>f&&u>p,s=t.find(({lang:u})=>u===e.value)?.subtitles;if(Su=i,o&&(Cu=!1),wu(co)&&r(i,co.startTime,co.endTime)&&co.lang===e.value)return co;if(!wu(Dn)&&s?.length&&!Cu){let u=s.find(({startTime:f,endTime:p})=>r(i,f,p)||n&&l(i,f,p));Dn=u&&{...u,lang:e.value},co=void 0,!wu(Dn)&&s[s.length-1].endTime<i&&(Cu=!0);return}else{if(r(i,Dn?.startTime,Dn?.endTime))return co=Dn,Dn=void 0,co;(n&&a(i,Dn?.startTime,Dn?.endTime)||o&&l(i,Dn?.startTime,Dn?.endTime))&&(Dn=void 0)}};import{Subscription as F4}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-statistics";var jr=class{constructor(e,t=new F4){this.oneStat=e;this.statSubscription=t}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var um=({interfaceLanguage:i,isCyrillicRelatedInterface:e,videoId:t,isClip:n,isLiveCatchUpMode:o,statAuthToken:l,isAudioDisabled:r,canDownload:a,callbacks:s,webApi:u,videoEpisodes:f,previewThumbsData:p,uiConfig:h,coreConfig:C,player:g,disabledControls:w,isInteractive:b,interactiveRanges$:E,isInteractiveTime$:v,replayInteractive:y,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:K,additionalButtons:B,looped:O=!1,statistics:oe,saveRate:he})=>{let G={...C,configName:[...C.configName??[],"ui"],isAudioDisabled:r,live:{...C.live??{},isLiveCatchUpMode:!!o}},X=h,ue=K4.createRootTracer(X.features.saveTraceInfoToFile),j=ue.createComponentTracer("Store"),z=g||new U4(G,ue),Q=new X4,$=new Kr(Q,{loadTimeout:X.ads.loadTimeout,initTimeout:X.ads.initTimeout,runtimeTimeout:X.ads.runtimeTimeout}),W=Eo.getInstance(),Y=u?.pictureInPictureApi,ie=u?.annotationsApi,re=Q.createComponentLog("Store"),Ve,Je,Ce={},Me=oe?gt(oe.oneStat.vsid$):Vn(void 0),ze=De(lo()),$e=Y?.info.isActive$??new e3(!1),fe=Y?.info.type,_e=De(0),at=De([]),we=x4(z.events.fatalError$,z.events.managedError$).subscribe(T=>at.update(ae=>[...ae,T])),Fe=Vn(!1,T=>{let ae=z.events.fatalError$.subscribe(()=>T(!0));return()=>ae.unsubscribe()}),ft=async T=>{let ae=Object.values(G4).includes(T);if(X.downloadVKLanguages&&(ae&&X.updateBuiltinLanguages||!Es(T))){let Ye;try{Ye=await Z4(T,Uc,Kc)}catch(ct){oe?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),W?.report(ct,{errorType:"VKLangPack",fatal:!1})}Ye&&(Ts({language:T,pack:Ye,fallback:X.defaultLanguage}),Ke.set(T))}Es(T)&&Ke.set(T)},Ke=De(i),Xe=De(e);ft(i);let je=(T,ae)=>{let Ie=xe(Ke);return As(Ie,T,ae,X.defaultLanguage)},et=De("thumb"),x=(()=>{let T=Mi([Fe,et],([ae,Ie])=>ae?"crashed":Ie);return{...T,is:ae=>xe(T)===ae}})(),Oe=(()=>{let T=De(new Set(w));return{...T,add:ae=>{T.update(Ie=>new Set([...Ie].concat(ae)))},remove:ae=>{T.update(Ie=>{let Ye=[...Ie];return new Set(Array.isArray(ae)?Ye.filter(ct=>!ae.includes(ct)):Ye.filter(ct=>ct!==ae))})},includes:ae=>{let Ie=xe(T);return Array.isArray(ae)?ae.every(Ye=>Ie.has(Ye)):Ie.has(ae)}}})();j.log("create store"),re({message:"create store"});let Ge=T=>{let ae=T.container;ae.append(z.experimental.element$.getValue()),dt=new MutationObserver(Ie=>{let{removedNodes:Ye}=Ie[0];Ye.length&&ae.append(z.experimental.element$.getValue())}),dt.observe(ae,{childList:!0})},se=T=>{re({message:`init video, config: ${JSON.stringify(T)}`}),b?Ge(T):z.initVideo(T),j.log("init video",{isInteractive:b}),T.subtitles&&z.setExternalTextTracks(T.subtitles),Ve=T},le=new Gr,lt=T=>le.next(T),be=new Gr,Ue=new Gr,tt=new Gr,dt=null,bt={actionRewind$:be,actionSeek$:Ue,inPiP$:$e,inFullscreen$:new $4(T=>ze.subscribe(ae=>T.next(ae))),actionSetSubtitle$:tt,nextMovie$:le};if(oe){let{oneStat:T,statSubscription:ae}=oe;b||ae.add(T.attachTo(z)),ae.add(T.attachToUi(bt)),ae.add(T.attachToAds($.events)),T.authorize(l).catch(Ie=>{re({message:`onestat auth error ${String(Ie)}`})})}if(W){let T=new Pu,ae=(Ie,Ye)=>T.add(Ie.subscribe(Ye));if(ae(z.events.managedError$,Ie=>{W.logIError(Ie)}),ae(z.events.fatalError$,Ie=>{W.logIError(Ie,!0)}),oe){let{oneStat:Ie}=oe;ae(Ie.experimental.error$,Ye=>{W.logIError(Ye)})}W.sentrySubscription.add(T)}let Tt=()=>{Q4.isIOS&&Je&&Pf(Je)},Qe=new Pu().add(z.experimental.element$.subscribe(T=>{T&&(Je=T,T.classList.add("player-media"),Lo(Y)&&(Y.updateVideoElement(),Y.registryEventHandlers()),b&&T.setAttribute("pip","false"))})).add(z.events.ended$.subscribe(()=>{Tt(),s?.onEnded?.()})).add(z.events.started$.subscribe(async()=>{Lo(Y)&&await Y?.revealPictureInPicture();let T=z.info.muted$.getValue();s?.onStarted?.(),Ce.onStarted?.(T)})).add(z.events.willSeek$.subscribe(({from:T,to:ae})=>{s?.onSeek?.(T,ae)})).add(z.info.position$.subscribe(T=>{let ae=z.info.duration$.getValue();isFinite(ae)&&ae>0&&(s?.onTimeupdate?.(ae,T),$.setPosition(T,ae))})).add(z.events.fatalError$.subscribe(()=>{s?.onCrashed?.()})).add(z.events.loadedMetadata$.subscribe(()=>{ht.state.loadedMetadata$.set(!0)})).add(z.info.is3DVideo$.subscribe(T=>{ht.ui.is3DVideo.set(T)})).add(z.info.isEnded$.subscribe(T=>{b&&(T?(v?.getValue()&&Oe.add(Zl),Oe.add("PLAY_BUTTON")):Oe.remove("PLAY_BUTTON"))})).add(z.info.liveTime$.subscribe(T=>{s?.onLiveTime?.(T)})).add(z.info.isStalled$.subscribe(T=>{s?.onStalledChanged?.(T)})).add($.events.started$.subscribe(()=>{s?.adsInfo?.onStarted?.()})).add($.events.ended$.subscribe(()=>{s?.adsInfo?.onCompleted?.()})),zt=new Pu,Vt=()=>{zt.add(z.events.log$.subscribe(T=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${T.component}`,T.message)})).add(Q.log$.subscribe(T=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${T.component}.`,T.message)}))},yt=()=>{zt.unsubscribe()},ai=(T,ae)=>{j.log("start camera manual rotation",{mx:T,my:ae}),z.startCameraManualRotation(T,ae)},st=(T=!1)=>{j.log("stop camera manual rotation",{immediate:T}),z.stopCameraManualRotation(T)},vt=(T,ae,Ie)=>{j.log("move camera focus px",{xpx:T,ypx:ae,dt:Ie}),z.moveCameraFocusPX(T,ae,Ie)},jt=()=>{z.holdCamera()},ve=()=>{z.releaseCamera()},wt=Vn(z.info.position$.getValue(),T=>{let ae,Ie,Ye=()=>{let ct=z.info.playbackState$.getValue(),Jt=z.info.isLive$.getValue(),Ze=z.info.duration$.getValue(),Pt=z.info.position$.getValue();if([Ml.PLAYING,Ml.PAUSED].includes(ct)){let bn=Jt?Pt-Ze:z.getExactTime();bn!==Ie&&T(bn),Ie=bn}ae=requestAnimationFrame(Ye)};return Ye(),()=>cancelAnimationFrame(ae)}),Mt=gt($e),Et=gt(z.info.playbackState$),Ct=gt(z.info.currentBuffer$),Ut=gt(z.info.isEnded$),St=gt(z.info.isLive$),Wi=X.features.playbackRate?gt(z.info.canChangePlaybackSpeed$):Vn(!1),un=gt(z.info.liveBufferTime$),ui=gt(z.info.volume$),ci=gt(z.info.muted$),Ji=ys(z.info.autoQualityLimits$.pipe(J4(({max:T})=>T!==void 0)),z.info.autoQualityLimits$.getValue()?.max!==void 0),Vi=gt(z.info.autoQualityLimitingAvailable$),xi=gt(z.info.availableQualities$),Ri=gt(z.info.availableQualitiesFps$),Bi=gt(z.info.chromecastState$),bi=gt(z.info.chromecastDeviceName$),fi=gt(z.info.currentFormat$),di=gt(z.info.throughputEstimation$),vi=gt(z.info.videoBitrate$),yi=gt(z.info.intrinsicVideoSize$),Gt=gt(z.info.duration$),$i=gt(z.info.isAudioAvailable$),Nt=null,ki=z.info.isBuffering$,wi=Vn(ki.getValue(),T=>{let ae=ki.subscribe(Ie=>{Ie&&Nt===null?Nt=window.setTimeout(()=>{T(ki.getValue()),Nt=null},X.loaderDelay):T(Ie)});return()=>{ae.unsubscribe(),Nt&&clearTimeout(Nt)}}),en=()=>{Nt&&clearTimeout(Nt),Nt=null},$t=Mi([Gt,St],([T,ae])=>ae?-T:T),ei=Mi([Et],([T])=>T===Ml.PLAYING),ti=gt(z.info.atLiveEdge$),ji=gt(z.info.atLiveDurationEdge$),Si=gt(z.info.position$),ii=Mi([Si,Gt],([T,ae])=>isFinite(T)&&isFinite(ae)&&!!ae),Gi=Mi([Bi],([T])=>T===z4.CONNECTED),Qt=gt(z.info.availableVideoStreams$),Ci=X.features.audioLanguages?gt(z.info.availableAudioStreams$):Vn([]),Di=gt(z.info.currentVideoStream$),ni=gt(z.info.currentAudioStream$),mi=T=>{T.language&&Ps(T.language),z.setVideoStream(T)},At=T=>{T.language&&Ps(T.language),z.setAudioStream(T)},Pi=T=>{let ae;if(T.length===1&&(ae=T.at(0)),ae??=T.find(Ye=>"isDefault"in Ye&&Ye.isDefault),ae)return ae;let Ie=_f();return Ie&&(ae=T.find(({language:Ye})=>Ie===Ye)),ae??=T.at(0),ae},Yt=!1;Qe.add(z.info.availableAudioStreams$.subscribe(T=>{if(!Yt&&T.length){let ae=Pi(T);ae&&(z.setAudioStream(ae),Yt=!0)}}));let pi=!1;Qe.add(z.info.availableVideoStreams$.subscribe(T=>{if(!pi&&T.length){let ae=Pi(T);ae&&(z.setVideoStream(ae),pi=!0)}}));let oi=De(void 0),li=gt(z.info.isAutoQualityEnabled$,T=>T&&oi.set(void 0)),_i=gt(z.info.currentQuality$,()=>oi.set(void 0)),qi=Mi([oi,_i],([T,ae])=>T??ae),tn=Mi([xi,Ri,li,qi,fi],([T,ae,Ie,Ye,ct])=>{let Jt=[];ct!==Vl.MPEG&&Jt.push({value:"auto",displayValue:je("auto_quality_option"),selected:Ie});let Ze=T.filter(Pt=>!W4(Pt));for(let Pt of Ze){let bn=ae[Pt];Jt.push({value:Pt,displayValue:`${Pt}${bn?rm(bn):""}`,selected:Ie?!1:Pt===Ye})}return Jt}),nn=gt(z.info.currentPlaybackRate$),Ni=Mi([nn,ti,ji],([T,ae,Ie])=>{let Ye=Ie||b?1:X.controls.playbackRateMin,ct=ae?1:X.controls.playbackRateMax,Jt=X.controls.playbackRateStep,Ze=[];for(let Pt=Ye;Pt<=ct;Pt+=Jt)Ze.push({value:Pt,displayValue:Pt===1?je("playback_rate_1"):je("playback_rate",{multiplier:Pt.toString(10)}),selected:T===Pt});return Ze}),Ot=X.features.subtitles?gt(z.info.availableTextTracks$):Vn([]),Ii=Mi([Ot],([T],ae)=>{let Ie=[],Ye=[];for(let ct of T)ct.url&&Ie.push(fetch(ct.url));Promise.allSettled(Ie).then(ct=>{for(let[Jt,Ze]of ct.entries())Ze.status==="fulfilled"&&Ze.value.text().then(Pt=>{let bn=new sm,jo=T[Jt].language,Ol=!!T[Jt].isAuto,Fl=bn.parse(Pt);jo&&Fl&&Ye.push({lang:jo,subtitles:Fl,isAuto:Ol}),Jt===ct.length-1&&ae(Ye)})})}),qt={displayValue:je("subtitles_off"),value:"off"},ri=De({...qt}),Zt=Mi([Ii,ri,Ii],([T,ae])=>{if(T?.length>0){let Ie=[{...qt,selected:ae?.value===qt.value}];for(let{lang:Ye,isAuto:ct}of T)Do[Ye]&&Ie.push({displayValue:ct?je("subtitles_auto",{language:Do[Ye]}):Do[Ye],value:Ye,selected:ae?.value===Ye,isAuto:ct});return Ie}else return[]}),Qi=Mi([wt,ri,Ii],([T,ae,Ie])=>{if(ae&&ae.value!==qt.value)return am(T,ae,Ie)}),Oi=Mi([Qi],([T])=>T?.texts?T.texts:[]),Fi=De(!0),nt=Mi([Ct,$t,Si,un],([T,ae,Ie,Ye])=>{let ct=T?.end??0;if(!Ye)return ct/ae;let Ze=-Ie+Ye-ae;return(ct-Ze)/ae}),hi=gt(z.info.availableSources$),Xt=Mi([hi],([T])=>Object.keys(T?.[Vl.MPEG]||{}).length>0),He=()=>{let T=Object.keys(z.info.availableSources$?.getValue()?.[Vl.MPEG]||{}),ae=j4(T)||t3.Q_144P;return Ve.sources[Vl.MPEG]?.[ae]},cn=()=>{let T=He();if(T)j.log("download video",{url:T}),ef(T,Ve?.meta?.title||"video");else{let ae="There is no URL for download video";j.log("download video",{message:ae}),re({message:ae})}},on=()=>{re({message:"toggle muted"});let T=z.info.muted$.getValue(),ae=z.info.volume$.getValue(),Ie=ae===0||T,Ye=!Ie;j.log("toggle muted",{muted:T,volume:ae,soundIsOff:Ie,nextValue:Ye}),Hi(Ye)},ln=()=>{j.log("close settings menu"),ht.ui.settingsMenuVisible.set(!1)},rn=T=>{j.log("open settings menu",{wasOpenedByKeyboard:T}),ht.ui.settingsMenuOpenedByKeyboard.set(!!T),ht.ui.settingsMenuVisible.set(!0)},Yi=T=>{xe(ht.ui.settingsMenuVisible)?ln():rn(T)},Ti=(T,ae=T,Ie=!1)=>{let Ye=!Ie,ct=z.info.muted$.getValue();re({message:`set volume, volume: ${T}, preferredVolume: ${ae}, internalCall: ${Ye}`}),j.log("set volume",{volume:T,preferredVolume:ae,internalCall:Ye}),z.setVolume(T),$.setVolume(T),Ye&&s?.onVolumeChange?.(T),Ss(ae),ct?(z.setMuted(!1),Ye&&s?.onUnmute?.(),xl(!1)):!ct&&T===0&&(z.setMuted(!0),Ye&&s?.onMute?.(),xl(!0))},Hi=(T,ae=!1)=>{let Ie=!ae,Ye=z.info.volume$.getValue();if(re({message:`set muted, currentVolume: ${Ye}, mute: ${T}, internalCall: ${Ie}`}),j.log("set muted",{mute:T,currentVolume:Ye,internalCall:Ie}),z.setMuted(T),$.setVolume(T?0:Ye),xl(T),Ie&&(T?s?.onMute?.():s?.onUnmute?.()),Ye===0){let ct=Jl()??X.volumeDefault;ct===0&&(ct=X.volumeMinRestore,Ss(ct)),z.setVolume(ct),$.setVolume(ct),Ie&&s?.onVolumeChange?.(ct)}},Zi=De(!1),Rt=T=>{j.log("set looped",{isLooped:T}),Zi.set(T),z.setLooped(T)};Rt(O);let zi=()=>{s?.uiInfo?.onReportProblem?.()},kn=()=>{z.prepare()},_n=()=>{qn(ht);let T=xe(ht.ui.controls.disabledControls$),ae=xe(ht.playerPhase),Ie={playerPhase:ae,isInteractive:b,isVideoEnded:!1,action:"none"};if(T.has("PLAY_BUTTON"))return;if(re({message:"toggle play"}),ae==="ads"){Ie.action="play",j.log("toggle adman play",Ie),$.togglePlay();return}let Ye=()=>{re({message:"toggle play, call player.play"}),Ie.action="play",z.play(),s?.onPlay?.()},ct=()=>{re({message:"toggle play, call player.pause"}),Ie.action="pause",z.pause(),s?.onPause?.()};if(z.info.isEnded$.getValue()){if(re({message:"toggle play, video ended, seek to 0"}),be.next(),Ue.next(fo.REWIND),b){y?.();return}z.seekTime(0),Ye()}else z.info.playbackState$.getValue()!==Ml.PLAYING?Ye():ct();j.log("toggle play",Ie)},fn=T=>{re({message:`set quality, quality: ${T}`}),j.log("set quality",{quality:T}),z.setAutoQuality(T==="auto"),T!=="auto"?(af(t,T),oi.set(T),z.setQuality(T)):Cs()},sn=T=>{re({message:`set trafficSavingEnabled, value: ${T}`}),j.log("set traffic saving enabled",{trafficSavingEnabled:T}),z.setAutoQualityLimits({max:T?X.trafficSavingLimit:void 0}),mf(T)},Xi=T=>{j.log("set playback rate",{playbackRate:T}),z.setPlaybackRate(T),X.features.saveRate&&he&&!z.info.isLive$.getValue()&&hf(T)},dn=()=>{let T=xe(Ni),ae=T.findIndex(({selected:Ye})=>Ye);if(ae===T.length-1)return;let Ie=T[ae+1];Xi(Ie.value)},wn=()=>{let T=xe(Ni),ae=T.findIndex(({selected:Ye})=>Ye);if(ae===0)return;let Ie=T[ae-1];Xi(Ie.value)},Ei=T=>{j.log("set subtitles",{...T}),T&&T.value!==qt.value&&tt.next(T.isAuto?T.value+"_auto":T.value),ri.set(T)},Ui=()=>{j.log("toggle subtitles");let T=xe(Zt),ae=xe(ri),Ie=xe(Ke);if(ae?.value===qt.value){let Ye=T.filter(ct=>ct.value!==qt.value).find(ct=>ct.value===Ie)||T[1];Ei(Ye??{...qt})}else Ei({...qt,selected:!1})},Kt=(T,ae,Ie=!0)=>{if(re({message:`seek to time, time: ${T}`}),j.log("seek to time",{time:T,action:ae,forcePrecise:Ie}),Ue.next(ae),z.info.isLive$.getValue()){let Ye=z.info.duration$.getValue(),ct=Math.min(0,Ye+T);z.seekTime(ct,Ie)}else{if(v?.getValue())return;z.seekTime(vo(T),Ie)}},En=T=>{re({message:`seek to episode start time: ${T}`}),j.log("seek to episode start time",{time:T}),Kt(T,fo.EPISODE,!0)},Sn=(T,ae)=>{re({message:`seek to percent, percent: ${T}`}),j.log("seek to percent",{percent:T,action:ae});let Ie=Math.round(xe($t)*T);Kt(Ie,ae,!1)},An=T=>{re({message:`seek external, time: ${T}`}),j.log("seek external",{time:T}),Ue.next(fo.UNKNOWN),z.seekTime(z.info.isLive$.getValue()?-T:T)},Wt=T=>{let ae=T.max??"none",Ie=T.min??"none";re({message:`set auto quality limitation. Max: ${ae}. Min: ${Ie}`}),j.log("set auto quality limits",{max:ae,min:Ie}),z.setAutoQualityLimits(T)},Ln=T=>{re({message:`seek external to episode start time: ${T}`}),j.log("seek external to episode start time",{time:T}),Kt(T,fo.EPISODE,!0)},Mn=T=>{re({message:`set playback rate to: ${T}`}),j.log("set playback rate external",{playbackRate:T}),z.setPlaybackRate(T)},mn=De(void 0),pn=De(!1),hn=T=>{re({message:`start scrubbing, progress: ${T}`}),j.log("start scrubbing",{progress:T}),pn.set(!0),gn(T)},gn=T=>{mn.set(T)},ne,_t,an=()=>{mn.set(void 0),pn.set(!1)},ee=()=>{clearTimeout(_t),clearTimeout(ne),ne=window.setTimeout(()=>{an()},500),Je?.removeEventListener("seeked",ee)},mt=T=>{re({message:`complete scrubbing, progress: ${T}`}),j.log("complete scrubbing",{progress:T}),Sn(T,fo.SLIDER),xe(ht.ui.isMobile)&&xe(ht.state.currentFormat$)===Vl.HLS?(Je?.addEventListener("seeked",ee),_t=window.setTimeout(()=>{ee()},300)):an()},si=Mi([wt,$t,mn],([T,ae,Ie],Ye)=>{Ye(Y4(Ie)?Ie*ae:T)}),Nn=De({width:0,height:0}),On=Mi([Nn],([{width:T}],ae)=>{let Ie=R1(T);ae(Ie)}),te=De(!1),eo=Mi([On,te],([T,ae])=>ae?B.filter(Ie=>!Ie.hideOnMobile):B.filter(Ie=>!Ie.hideOnDesktopGridTypes?.includes(T))),gl=Mi([te,Fe],([T,ae],Ie)=>{Ie(T&&ae)}),bl=()=>{Ue.next(fo.LIVE),re({message:"switch to active live"}),j.log("switch to active live"),z.seekTime(0),z.info.playbackState$.getValue()!==Ml.PLAYING&&ht.actions.internal.togglePlay()},vl=()=>{j.log("skip adman"),$.skip()},yl=(T=!0)=>{qn(ht),re({message:`switch from ads to video, callPlay: ${T}`}),j.log("switch from ads to video",{callPlay:T}),et.set("video"),T&&z.play()},Fo=()=>{qn(ht),re({message:"switch from video to ads"}),j.log("switch from video to ads"),ht.actions.internal.pause(),Tt(),et.set("ads")},kl=T=>{qn(ht);let ae=T?"LiveWaitingStart":"thumb";j.log("set live waiting start",{state:T,playerPhase:ae}),et.set(ae)},to=T=>{qn(ht);let ae=T?"LiveWaitingRecover":"thumb";j.log("set live waiting recover",{state:T,playerPhase:ae}),et.set(ae)},Ho=T=>{qn(ht);let ae=T?"LiveWaitingRecord":"thumb";j.log("set live waiting record",{state:T,playerPhase:ae}),et.set(ae)},jn=()=>(qn(ht),j.log("get debug text data"),xc(z,Ve,ht)),Zn=()=>(qn(ht),JSON.stringify(ue.getFinishedSpans())),mo=()=>(qn(ht),$c(z,Ve,ht)),zo=()=>Je,po=()=>{re({message:"toggle chromecast"}),j.log("toggle chromecast"),z.toggleChromecast()},_o=T=>{if(qn(ht),z.info.isEnded$.getValue())return;let ae=!T;if(xe(ht.playerPhase)==="ads"){re({message:`pause ads, internalCall: ${ae}`}),j.log("pause ads",{internalCall:ae}),$.pause();return}re({message:`pause video, internalCall: ${ae}`}),j.log("pause video",{internalCall:ae}),ae&&s?.onPause?.(),z.pause()},Uo=T=>{qn(ht);let ae=!T;if(xe(ht.playerPhase)==="ads"){re({message:`play ads, internalCall: ${ae}`}),j.log("play ads",{internalCall:ae}),$.play();return}re({message:`play video, internalCall: ${ae}`}),j.log("play video",{internalCall:ae}),ae&&s?.onPlay?.(),z.play()},ho=(T,ae)=>{qn(ht),re({message:`first start, show ads: ${T}, internalCall: ${!ae}`}),j.log("first start",{showAds:T,external:ae}),T?et.set("ads"):(et.set("video"),ae?z.play():ht.actions.internal.togglePlay())},io=()=>(re({message:"getting time codes"}),f),go=()=>{let T=io();if(!T||[0,1].includes(T.length))return;let ae=z.info.position$.getValue();return T.find(Ie=>Ie.time>ae)},Ko=T=>{let ae=T;ae||(ae=go());let Ie=z.info.position$.getValue();j.log("seek to next episode",{currentTime:Ie,...ae}),ae&&(re({message:"seek to next episode"}),Kt(ae.time,fo.EPISODE,!0))},Z=()=>{let T=io();if(!T||[0,1].includes(T.length))return;let ae=z.info.position$.getValue(),Ie=T.findIndex(ct=>ct.time>ae),Ye=Ie===-1?T.length-2:Ie-2;if(!(Ye<0))return T[Ye]},Bt=T=>{let ae=T;ae||(ae=Z());let Ie=z.info.position$.getValue();j.log("seek to prev episode",{currentTime:Ie,...ae}),ae&&(re({message:"seek to prev episode"}),Kt(ae.time,fo.EPISODE,!0))},Cn=()=>(re({message:"getting preview thumbs data"}),j.log("get preview thumbs data",{...p}),p),Fn=async()=>{let T=Y?.isActive(),ae="none";Y?.isActive()?(ae="remove",await Y?.remove()):(ae="request",await Y?.request()),j.log("toggle picture in picture",{isActive:T,action:ae})},bo=(T=-90)=>{j.log("rotate video",{alphaDiff:T}),_e.update(ae=>ae+T)},Gn=De([]);E?.subscribe(T=>{let ae=[];for(let Ie=0;Ie<T.length;Ie++){let{range:[Ye,ct],subjects:Jt}=T[Ie];Ie===0&&Ye!==0&&ae.push({time:0,text:"",interactive:!1,completed:!0}),ae.push({time:Ye/1e3,text:"",interactive:!0,completed:!Jt.length}),ct!==1/0&&ae.push({time:ct/1e3,text:"",interactive:!1,completed:!0})}Gn.set(ae)});let no=De(!1);v?.subscribe(T=>{T&&xe(pn)&&an()});let vo=T=>{if(!b)return T;let ae=xe(Gn),Ie=xe($t),ct=xe(Si)/Ie,Jt=ae.find(Ze=>Ze.interactive&&!Ze.completed&&Ze.time>ct);return typeof Jt?.time=="number"?Math.min(T,Jt.time-.05):T},Wo=()=>{ht.ui.episodes.panelOpened$.set(!1)},yo=()=>{j.log("destroy store"),clearTimeout(_t),clearTimeout(ne),Qe.unsubscribe(),zt.unsubscribe(),z.destroy(),$.destroy(),oe?.destroy(),W?.destroy(),we.unsubscribe(),dt?.disconnect(),dt=null},ht={interfaceLanguage$:Ke,isCyrillicRelatedInterface$:Xe,initVideo:se,videoId:t,isClip:n,playerPhase:x,vsid:Me,state:{positionExact$:wt,positionWithScrubbing$:si,duration$:$t,playbackState$:Et,isPlaying$:ei,isLoaderVisible:wi,bufferedProgress$:nt,isLive$:St,canChangePlaybackSpeed$:Wi,isActiveLive$:ti,isOldestAvailableLive$:ji,isRewindableLive$:ii,isEnded$:Ut,muted$:ci,volume$:ui,trafficSavingEnabled$:Ji,autoQualityLimitingAvailable$:Vi,availableVideoStreams$:Qt,availableAudioStreams$:Ci,videoStream$:Di,audioStream$:ni,currentQuality$:qi,isAutoQualityEnabled$:li,availableQualities$:tn,currentPlaybackRate$:nn,availablePlaybackRates$:Ni,currentSubtitle$:ri,availableSubtitlesList$:Zt,currentSubtitleCaptions$:Oi,isAutoSubtitleCaptionVisible$:Fi,chromecastState$:Bi,chromecastDeviceName$:bi,chromecastConnected$:Gi,currentFormat$:fi,throughputEstimation$:di,videoBitrate$:vi,videoSize$:yi,errorLog$:at,crashed$:Fe,isAudioAvailable$:$i,isAudioDisabled:!!r,canDownload:X.features.download&&!!a,availableSources$:hi,hasMpegSources$:Xt,isInteractive:b,showInteractiveGraph:X.features.interactiveGraph,showSeekToInteractive:X.features.seekToInteractive,showPlayPrevChapter:X.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:X.features.interactiveTimeIndicator&&!!xe(Gn).length,interactiveEpisodes$:Gn,isInteractiveTime$:v?gt(v):De(!1),graphIsOpened$:De(!1),isInteractiveExpectation$:no,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:K,looped$:Zi,loadedMetadata$:De(!1)},ui:{controlsVisible:De(!1),touched:De(!1),controls:{prevButton:De(void 0),playButton:De(void 0),replayButton:De(void 0),nextButton:De(void 0),playPrevChapterButton:De(void 0),seekToInteractiveButton:De(void 0),interactiveGraphButton:De(void 0),liveButton:De(void 0),time:De(void 0),episodes:De(void 0),volume:De(void 0),subtitles:De(void 0),settings:De(void 0),context:De(void 0),chromecast:De(void 0),pip:De(void 0),fullscreen:De(void 0),vkLogo:De(void 0),interactiveTimeIndicator:De(void 0),timeline:De(void 0),additionalButtons:B.length?B.reduce(T=>[...T,De(void 0)],[]):[],disabledControls$:Oe},modals:{hotKeyMap:{show:De(!1),data:De({title:"",closeBtnText:"",groups:[]})}},isFullscreen:ze,rotateAlpha:_e,isAutoplay:De(!1),debugPanelVisible:De(!1),episodes:{panelOpened$:De(!1),openedByKeyboard$:De(!1)},contextMenu:{visible$:De(!1),btnRef$:De(void 0),openedByBtnKeyboard$:De(!1),openedByHotKey$:De(!1),lastActiveElem$:De(void 0),showContextMenuBtn$:De(!1),position$:De({top:0,left:0})},playerSize:Nn,isMobile:te,mobileNotReportControlHidden$:gl,mobileUnmuteButtonExpanded:De(!1),mobileUnmuteButtonVisible:De(!1),icon3DVideoVisible:De(!1),settingsMenuVisible:De(!1),settingsMenuOpenedByKeyboard:De(!1),scrubbingInProgress:pn,is3DVideo:De(!1),isPictureInPictureActive$:Mt,pictureInPictureType$:Vn(fe),currentGridType$:On,additionalButtons$:eo,interactiveHideMobileControls:De(!1),overlayContainer$:De(void 0),startedByKeyboard$:De(!1)},ads:{position:De(0),duration:De(0),playbackState:De("inactive"),canSkip:De(!1),secondsToWatchBeforeSkip:De(0),postrollPassed:De(!1)},webApi:{pictureInPictureApi:Y,annotationsApi:ie},actions:{internal:{preload:kn,firstStart:T=>ho(T,!1),pause:()=>_o(!1),togglePlay:_n,toggleMuted:on,toggleSettingsMenu:Yi,openSettingsMenu:rn,closeSettingsMenu:ln,setVolume:Ti,setVideoStream:mi,setAudioStream:At,setQuality:fn,setTrafficSavingEnabled:T=>sn(T),setPlaybackRate:Xi,incrementPlaybackRate:dn,decrementPlaybackRate:wn,setSubtitle:Ei,toggleSubtitle:Ui,togglePictureInPicture:Fn,startScrubbing:hn,progressScrubbing:gn,completeScrubbing:mt,toggleChromecast:po,switchToActiveLive:bl,switchFromAdsToVideo:yl,switchFromVideoToAds:Fo,skipAd:vl,setLiveWaitingStart:kl,setLiveWaitingRecover:to,setLiveWaitingRecord:Ho,getDebugTextData:jn,getTraceTextData:Zn,getDebugPanelData:mo,getVideoElement:zo,seekTime:(T,ae,Ie)=>Kt(T,ae,Ie),clearDelayedBufferingCheckTimeout:en,seekEpisodeStartTime:En,seekToPercent:Sn,getNextEpisode:go,seekToNextEpisode:Ko,getPrevEpisode:Z,seekToPrevEpisode:Bt,startLogging:Vt,stopLogging:yt,startCameraManualRotation:ai,stopCameraManualRotation:st,moveCameraFocusPX:vt,holdCamera:jt,releaseCamera:ve,getVideoEpisodes:io,getPreviewThumbsData:Cn,downloadVideo:cn,addLanguage:Ts,setLanguage:ft,nextMovie:lt,videoRotate:bo,correctSeekTimeToInteractive:vo,replayInteractive:y,setLooped:Rt,reportProblem:zi},external:{firstStart:T=>ho(T,!0),play:()=>Uo(!0),pause:()=>_o(!0),seekTime:T=>An(T),seekEpisodeStartTime:T=>Ln(T),setPlaybackRate:T=>Mn(T),setAutoQualityLimits:T=>Wt(T),setMuted:T=>Hi(T,!0),setVolume:T=>Ti(T,T,!0),returnFocusToEpisodes:Wo}},callbacks:s,setUiCallbacks:T=>{Ce={...T}},getAdmanWrapper:()=>$,getLogger:()=>Q,destroy:yo};return ht};var Yr=(i,e,t,n)=>{if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],l=["interactiveTimeIndicator"],r=i.getBoundingClientRect();for(let[a,s]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(a)){let u=t[a]?.getBoundingClientRect(),f=(n||l.includes(a))&&!!u&&!!(u.right-u.left);s.set({positionStartX:0,positionEndX:0,left:f?Math.round(u.left-r.left):0,right:f?Math.round(u.right-r.left):0,top:f?Math.round(u.top-r.top):0,bottom:f?Math.round(u.bottom-r.top):0,isDisplayed:f})}};var Zr=async(i,e,t)=>{await zn(),e&&t&&(t.focus(),i.set(!1))};function i3(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"d","M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function n3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Iu=class extends H{constructor(e){super(),U(this,e,n3,i3,F,{})}},cm=Iu;function o3(i){let e,t;return e=new cm({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function l3(i){let e,t,n;function o(r){i[8](r)}let l={className:i[3]?"opened":"",testId:"btn-context-menu",disabled:i[0],ariaLabel:i[1],click:i[5],focus:i[6],blur:i[7],ariaExpanded:i[3],$$slots:{default:[o3]},$$scope:{ctx:i}};return i[2]!==void 0&&(l.ref=i[2]),e=new pt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&8&&(s.className=r[3]?"opened":""),a&1&&(s.disabled=r[0]),a&2&&(s.ariaLabel=r[1]),a&8&&(s.ariaExpanded=r[3]),a&16384&&(s.$$scope={dirty:a,ctx:r}),!t&&a&4&&(t=!0,s.ref=r[2],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function r3(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:l=""}=e,r=ot(),a=r.ui.contextMenu.visible$;q(i,a,E=>t(3,n=E));let s=r.ui.contextMenu.openedByBtnKeyboard$,u=r.ui.contextMenu.showContextMenuBtn$,f=r.ui.contextMenu.position$,p=r.ui.contextMenu.btnRef$,h,C=E=>{let v=nl(E),y=Kf(h);f.set(y),s.set(v),a.set(!n)},g=()=>{u.set(!0)},w=()=>{u.set(!1)};function b(E){h=E,t(2,h)}return i.$$set=E=>{"disabled"in E&&t(0,o=E.disabled),"ariaLabel"in E&&t(1,l=E.ariaLabel)},i.$$.update=()=>{i.$$.dirty&4&&h&&p.set(h)},[o,l,h,n,a,C,g,w,b]}var Tu=class extends H{constructor(e){super(),U(this,e,r3,l3,F,{disabled:0,ariaLabel:1})}},fm=Tu;function s3(i){Pe(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 a3(i){let e,t;return e=new Tr({props:{completed:!0}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p:Se,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function u3(i){let e,t,n,o,l,r,a,s,u,f;function p(C){i[22](C)}let h={tooltipContent:N("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[a3]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new Lt({props:h}),ge.push(()=>Ne(t,"ref",p)),t.$on("click",i[14]),{c(){e=P("div"),V(t.$$.fragment),o=M(),l=P("div"),r=M(),a=P("div"),c(l,"class","ref-block svelte-17imlp9"),D(l,"hidden",i[1]),c(a,"class","pulse svelte-17imlp9"),D(a,"paused",i[4]),c(e,"class","interactive-episode-icon-animated svelte-17imlp9"),D(e,"mobile",i[2]),D(e,"fullscreen",i[6]),D(e,"invisible",i[1])},m(C,g){S(C,e,g),A(t,e,null),m(e,o),m(e,l),i[23](l),m(e,r),m(e,a),i[24](a),s=!0,u||(f=[pe(e,"mousemove",rt(i[21])),pe(e,"mouseleave",i[15])],u=!0)},p(C,g){let w={};g[0]&32&&(w.tooltipActive=C[5]),g[1]&1&&(w.$$scope={dirty:g,ctx:C}),!n&&g[0]&1&&(n=!0,w.ref=C[0],qe(()=>n=!1)),t.$set(w),(!s||g[0]&2)&&D(l,"hidden",C[1]),(!s||g[0]&16)&&D(a,"paused",C[4]),(!s||g[0]&4)&&D(e,"mobile",C[2]),(!s||g[0]&64)&&D(e,"fullscreen",C[6]),(!s||g[0]&2)&&D(e,"invisible",C[1])},i(C){s||(d(t.$$.fragment,C),s=!0)},o(C){_(t.$$.fragment,C),s=!1},d(C){C&&k(e),L(t),i[23](null),i[24](null),u=!1,it(f)}}}function c3(i,e,t){let n,o,l,r,a,s,{ref:u=void 0}=e,f,p=ot(),h=Rn(),{interactiveControlsOpacity$:C}=h;q(i,C,Y=>t(18,o=Y));let g=p.ui.isMobile;q(i,g,Y=>t(2,a=Y));let w=p.ui.isFullscreen;q(i,w,Y=>t(6,s=Y));let b=p.state.isInteractiveTime$;q(i,b,Y=>t(19,l=Y));let E=h.showInteractiveTimeIndicatorTooltip$;q(i,E,Y=>t(17,n=Y));let v=p.ui.controlsVisible;q(i,v,Y=>t(20,r=Y));let y=p.callbacks?.onInteractiveTimeIndicatorClick,I,K,B,O=()=>{t(4,B=!0)},oe=()=>{he(),f?.addEventListener("animationiteration",O,{once:!0})},he=()=>{t(4,B=!1),f?.removeEventListener("animationiteration",O)},G=Y=>{E.set(Y)},X,ue=()=>{K||(E.set(!0),y?.())};Hn(()=>{E.clearTimeout(),he()});let j=()=>{E.set(!1)};function z(Y){Pn.call(this,i,Y)}function Q(Y){u=Y,t(0,u)}function $(Y){ge[Y?"unshift":"push"](()=>{u=Y,t(0,u)})}function W(Y){ge[Y?"unshift":"push"](()=>{f=Y,t(3,f)})}return i.$$set=Y=>{"ref"in Y&&t(0,u=Y.ref)},i.$$.update=()=>{i.$$.dirty[0]&1048580&&t(16,I=!a&&r),i.$$.dirty[0]&851968&&t(1,K=!l||!!o||I),i.$$.dirty[0]&2&&t(4,B=K),i.$$.dirty[0]&131074&&t(5,X=n&&!K),i.$$.dirty[0]&131072&&(n?oe():he())},[u,K,a,f,B,X,s,C,g,w,b,E,v,G,ue,j,I,n,o,l,r,z,Q,$,W]}var Eu=class extends H{constructor(e){super(),U(this,e,c3,u3,F,{ref:0},s3,[-1,-1])}},Xr=Eu;function m3(i){Pe(i,"svelte-ips4nw",".wrapper-bottom.svelte-ips4nw.svelte-ips4nw{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box}.wrapper-bottom.svelte-ips4nw>.svelte-ips4nw{pointer-events:auto}.controls.svelte-ips4nw.svelte-ips4nw{width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box}.controls-left.svelte-ips4nw.svelte-ips4nw,.controls-right.svelte-ips4nw.svelte-ips4nw{display:flex;align-content:center}.controls-left.svelte-ips4nw.svelte-ips4nw{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-ips4nw > *:not(:first-child),.controls-right.svelte-ips4nw > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-ips4nw.svelte-ips4nw{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-ips4nw.svelte-ips4nw{transition:none}.settings-menu.svelte-ips4nw.svelte-ips4nw{bottom:57px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}")}function mm(i,e,t){let n=i.slice();return n[210]=e[t].iconUrl,n[211]=e[t].ariaLabel,n[212]=e[t].testId,n[213]=e[t].onClick,n[214]=e[t].tooltip,n}function pm(i){let e,t,n;function o(r){i[174](r)}let l={disabled:!i[9],tooltipContent:N("tooltip_previous"),$$slots:{default:[p3]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(l.ref=i[23].prevButton),e=new Lt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&512&&(s.disabled=!r[9]),a[0]&4608|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].prevButton,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function p3(i){let e,t;return e=new dl({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&4096&&(l.click=n[12]),o[0]&512&&(l.disabled=!n[9]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function _m(i){let e,t,n;function o(r){i[175](r)}let l={disabled:i[74],tooltipContent:N("tooltip_restart"),$$slots:{default:[_3]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(l.ref=i[23].replayButton),e=new Lt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[2]&4096&&(s.disabled=r[74]),a[2]&4096|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].replayButton,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function _3(i){let e,t;return e=new Ll({props:{click:i[128],disabled:i[74]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[2]&4096&&(l.disabled=n[74]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function hm(i){let e,t,n;function o(r){i[177](r)}let l={tooltipContent:i[47],disabled:i[75],$$slots:{default:[h3]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(l.ref=i[23].playButton),e=new Lt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&65536&&(s.tooltipContent=r[47]),a[2]&8192&&(s.disabled=r[75]),a[0]&67108864|a[1]&8|a[2]&8192|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].playButton,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function h3(i){let e,t,n;function o(r){i[176](r)}let l={isMobile:!1,isPlaying:i[34],click:i[85],disabled:i[75]};return i[26]!==void 0&&(l.ref=i[26]),e=new Al({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&8&&(s.isPlaying=r[34]),a[2]&8192&&(s.disabled=r[75]),!t&&a[0]&67108864&&(t=!0,s.ref=r[26],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function gm(i){let e,t,n;function o(r){i[178](r)}let l={disabled:!i[8],tooltipContent:N("tooltip_next"),$$slots:{default:[g3]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(l.ref=i[23].nextButton),e=new Lt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&256&&(s.disabled=!r[8]),a[0]&2304|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].nextButton,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function g3(i){let e,t;return e=new dl({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&2048&&(l.click=n[11]),o[0]&256&&(l.disabled=!n[8]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function b3(i){let e,t,n,o,l=i[121]&&v3(i),r=i[120]&&k3(i),a=i[119]&&S3(i);return{c(){l&&l.c(),e=M(),r&&r.c(),t=M(),a&&a.c(),n=ut()},m(s,u){l&&l.m(s,u),S(s,e,u),r&&r.m(s,u),S(s,t,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){s[121]&&l.p(s,u),s[120]&&r.p(s,u),s[119]&&a.p(s,u)},i(s){o||(d(l),d(r),d(a),o=!0)},o(s){_(l),_(r),_(a),o=!1},d(s){s&&(k(e),k(t),k(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function v3(i){let e,t,n;function o(r){i[179](r)}let l={disabled:i[73],tooltipContent:N("tooltip_interactive_go_back"),disabledTooltipContent:N(i[124]),$$slots:{default:[y3]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(l.ref=i[23].playPrevChapterButton),e=new Lt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[2]&2048&&(s.disabled=r[73]),a[0]&131072|a[2]&2048|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].playPrevChapterButton,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function y3(i){let e,t;return e=new zr({props:{disabled:i[73],click:i[17]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[2]&2048&&(l.disabled=n[73]),o[0]&131072&&(l.click=n[17]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function k3(i){let e,t,n;function o(r){i[180](r)}let l={disabled:i[76],tooltipContent:N("tooltip_interactive_seek"),disabledTooltipContent:N(i[78]),$$slots:{default:[w3]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(l.ref=i[23].seekToInteractiveButton),e=new Lt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[2]&16384&&(s.disabled=r[76]),a[2]&65536&&(s.disabledTooltipContent=N(r[78])),a[0]&32768|a[2]&16384|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].seekToInteractiveButton,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function w3(i){let e,t;return e=new Or({props:{disabled:i[76],click:i[15]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[2]&16384&&(l.disabled=n[76]),o[0]&32768&&(l.click=n[15]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function S3(i){let e,t,n;function o(r){i[181](r)}let l={tooltipContent:i[48],disabled:i[77],$$slots:{default:[C3]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(l.ref=i[23].interactiveGraphButton),e=new Lt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.tooltipContent=r[48]),a[2]&32768&&(s.disabled=r[77]),a[0]&65536|a[1]&1|a[2]&32768|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].interactiveGraphButton,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function C3(i){let e,t;return e=new Fr({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&65536&&(l.click=n[16]),o[1]&1&&(l.graphIsOpened=n[31]),o[2]&32768&&(l.disabled=n[77]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function bm(i){let e,t,n;function o(r){i[182](r)}let l={tooltipContent:i[50],$$slots:{default:[P3]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(l.ref=i[23].liveButton),e=new Lt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&524288&&(s.tooltipContent=r[50]),a[0]&2097152|a[1]&524288|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].liveButton,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function P3(i){let e,t;return e=new Rr({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.isActiveLive=n[21]),o[1]&524288&&(l.ariaLabel=n[50]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function vm(i){let e,t,n;function o(r){i[183](r)}let l={isMobile:!1,showDuration:i[55],position:i[4]?i[79]:i[80],duration:i[4]?i[81]:i[82]};return i[23].time!==void 0&&(l.ref=i[23].time),e=new Pr({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&16777216&&(s.showDuration=r[55]),a[0]&16|a[2]&393216&&(s.position=r[4]?r[79]:r[80]),a[0]&16|a[2]&1572864&&(s.duration=r[4]?r[81]:r[82]),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].time,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function ym(i){let e,t;return e=new Nr({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[2]&262144&&(l.position=n[80]),o[2]&1048576&&(l.duration=n[82]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function I3(i){let e,t,n=i[20]&&ym(i);return{c(){n&&n.c(),e=ut()},m(o,l){n&&n.m(o,l),S(o,e,l),t=!0},p(o,l){o[20]?n?(n.p(o,l),l[0]&1048576&&d(n,1)):(n=ym(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(de(),_(n,1,1,()=>{n=null}),me())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function T3(i){let e,t;return e=new Ur({props:{iconUrl:i[210],ariaLabel:i[211]??i[214],testId:i[212],onClick:i[213]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&268435456&&(l.iconUrl=n[210]),o[0]&268435456&&(l.ariaLabel=n[211]??n[214]),o[0]&268435456&&(l.testId=n[212]),o[0]&268435456&&(l.onClick=n[213]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function km(i){let e,t;return e=new Lt({props:{tooltipContent:i[214],width:40,$$slots:{default:[T3]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&268435456&&(l.tooltipContent=n[214]),o[0]&268435456|o[7]&1&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function wm(i){let e,t,n;function o(r){i[186](r)}let l={disabled:!i[6],tooltipContent:i[51],disabledTooltipContent:"",$$slots:{default:[E3]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(l.ref=i[23].vkLogo),e=new Lt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&64&&(s.disabled=!r[6]),a[1]&1048576&&(s.tooltipContent=r[51]),a[0]&192|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].vkLogo,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function E3(i){let e,t;return e=new Mr({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&128&&(l.targetUrl=n[7]),o[0]&64&&(l.logoClickable=n[6]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function A3(i){let e,t;return e=new D1({props:{click:i[127]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p:Se,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Sm(i){let e,t,n;function o(r){i[188](r)}let l={tooltipContent:i[52],$$slots:{default:[L3]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(l.ref=i[23].subtitles),e=new Lt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&2097152&&(s.tooltipContent=r[52]),a[0]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].subtitles,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function L3(i){let e,t;return e=new y1({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&262144&&(l.isSubtitlesEnabled=n[18]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Cm(i){let e,t,n,o;function l(a){i[189](a)}let r={supportLink:i[10],playerControlsHeight:i[46]?.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(r.ref=i[24]),t=new Cr({props:r}),ge.push(()=>Ne(t,"ref",l)),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","settings-menu svelte-ips4nw")},m(a,s){S(a,e,s),A(t,e,null),o=!0},p(a,s){let u={};s[0]&1024&&(u.supportLink=a[10]),s[1]&32768&&(u.playerControlsHeight=a[46]?.clientHeight),s[0]&16384&&(u.returnFocus=a[14]),!n&&s[0]&16777216&&(n=!0,u.ref=a[24],qe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),L(t)}}}function Pm(i){let e,t,n;function o(r){i[191](r)}let l={tooltipContent:i[27]?void 0:N("tooltip_settings_off"),$$slots:{default:[M3]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(l.ref=i[23].settings),e=new Lt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&134217728&&(s.tooltipContent=r[27]?void 0:N("tooltip_settings_off")),a[0]&33554432|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].settings,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function M3(i){let e,t,n;function o(r){i[190](r)}let l={};return i[25]!==void 0&&(l.ref=i[25]),e=new Tl({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&33554432&&(t=!0,s.ref=r[25],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function V3(i){let e,t,n;function o(r){i[192](r)}let l={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[R3]},$$scope:{ctx:i}};return i[23].context!==void 0&&(l.ref=i[23].context),e=new Lt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&1024&&(s.className=r[41]?"":"out-of-view"),a[1]&262144&&(s.tooltipContent=r[49]),a[1]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].context,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function R3(i){let e,t;return e=new fm({props:{ariaLabel:i[49]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[1]&262144&&(l.ariaLabel=n[49]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Im(i){let e,t,n;function o(r){i[193](r)}let l={tooltipContent:i[53],$$slots:{default:[B3]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(l.ref=i[23].fullscreen),e=new Lt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&4194304&&(s.tooltipContent=r[53]),a[0]&1073750016|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].fullscreen,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function B3(i){let e,t;return e=new Ar({props:{click:i[13],isFullscreen:i[30]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&8192&&(l.click=n[13]),o[0]&1073741824&&(l.isFullscreen=n[30]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Tm(i){let e,t,n;function o(r){i[194](r)}let l={tooltipContent:i[54],$$slots:{default:[D3]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(l.ref=i[23].chromecast),e=new Lt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&8388608&&(s.tooltipContent=r[54]),a[0]&536870912|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].chromecast,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function D3(i){let e,t;return e=new Vr({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&536870912&&(l.state=n[29]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function q3(i){let e,t,n;function o(r){i[197](r)}let l={};return i[23].interactiveTimeIndicator!==void 0&&(l.ref=i[23].interactiveTimeIndicator),e=new Xr({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&8388608&&(t=!0,s.ref=r[23].interactiveTimeIndicator,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function N3(i){let e,t,n,o,l,r,a,s,u,f,p,h,C,g,w,b,E,v,y,I,K,B,O,oe,he,G,X,ue,j,z,Q;function $(se){i[173](se)}let W={isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]};i[23].timeline!==void 0&&(W.ref=i[23].timeline),t=new qr({props:W}),ge.push(()=>Ne(t,"ref",$));let Y=i[38]&&pm(i),ie=i[35]&&_m(i),re=i[36]&&hm(i),Ve=i[37]&&gm(i),Je=i[117]&&b3(i),Ce=!i[4]&&i[33]&&bm(i),Me=i[19]&&vm(i);function ze(se){i[184](se)}let $e={className:"w-max",disabled:!i[20],tooltipContent:N("tooltip_episodes"),$$slots:{default:[I3]},$$scope:{ctx:i}};i[23].episodes!==void 0&&($e.ref=i[23].episodes),g=new Lt({props:$e}),ge.push(()=>Ne(g,"ref",ze));let fe=kt(i[28]),_e=[];for(let se=0;se<fe.length;se+=1)_e[se]=km(mm(i,fe,se));let at=se=>_(_e[se],1,1,()=>{_e[se]=null}),we=i[43]&&!i[4]&&wm(i);function Fe(se){i[187](se)}let ft={$$slots:{default:[A3]},$$scope:{ctx:i}};i[23].volume!==void 0&&(ft.ref=i[23].volume),K=new Lt({props:ft}),ge.push(()=>Ne(K,"ref",Fe));let Ke=i[40]&&Sm(i),Xe=!i[83]&&!i[4]&&Cm(i),je=i[42]&&!i[4]&&Pm(i),et=i[84].features.contextMenuButton&&V3(i),x=i[44]&&Im(i),Oe=i[39]&&Tm(i),Ge=i[122]&&q3(i);return{c(){e=P("div"),V(t.$$.fragment),o=M(),l=P("div"),r=P("div"),Y&&Y.c(),a=M(),ie&&ie.c(),s=M(),re&&re.c(),u=M(),Ve&&Ve.c(),f=M(),Je&&Je.c(),p=M(),Ce&&Ce.c(),h=M(),Me&&Me.c(),C=M(),V(g.$$.fragment),E=M(),v=P("div");for(let se=0;se<_e.length;se+=1)_e[se].c();y=M(),we&&we.c(),I=M(),V(K.$$.fragment),O=M(),Ke&&Ke.c(),oe=M(),Xe&&Xe.c(),he=M(),je&&je.c(),G=M(),et&&et.c(),X=M(),x&&x.c(),ue=M(),Oe&&Oe.c(),j=M(),Ge&&Ge.c(),z=ut(),c(r,"class","controls-left svelte-ips4nw"),Un(()=>i[185].call(r)),c(v,"class","controls-right svelte-ips4nw"),c(l,"class","controls svelte-ips4nw"),c(e,"class","wrapper-bottom svelte-ips4nw"),D(e,"hidden",i[1]),D(e,"controls-hidden",!i[3]),D(e,"no-smooth",i[2])},m(se,le){S(se,e,le),A(t,e,null),m(e,o),m(e,l),m(l,r),Y&&Y.m(r,null),m(r,a),ie&&ie.m(r,null),m(r,s),re&&re.m(r,null),m(r,u),Ve&&Ve.m(r,null),m(r,f),Je&&Je.m(r,null),m(r,p),Ce&&Ce.m(r,null),m(r,h),Me&&Me.m(r,null),m(r,C),A(g,r,null),b=Go(r,i[185].bind(r)),m(l,E),m(l,v);for(let lt=0;lt<_e.length;lt+=1)_e[lt]&&_e[lt].m(v,null);m(v,y),we&&we.m(v,null),m(v,I),A(K,v,null),m(v,O),Ke&&Ke.m(v,null),m(v,oe),Xe&&Xe.m(v,null),m(v,he),je&&je.m(v,null),m(v,G),et&&et.m(v,null),m(v,X),x&&x.m(v,null),m(v,ue),Oe&&Oe.m(v,null),i[195](l),i[196](e),S(se,j,le),Ge&&Ge.m(se,le),S(se,z,le),Q=!0},p(se,le){let lt={};le[1]&16384&&(lt.isHidden=!se[45]),le[0]&16&&(lt.isAds=se[4]),le[0]&32&&(lt.canRewindLive=se[5]),le[1]&2&&(lt.isRewindableLive=se[32]),!n&&le[0]&8388608&&(n=!0,lt.ref=se[23].timeline,qe(()=>n=!1)),t.$set(lt),se[38]?Y?(Y.p(se,le),le[1]&128&&d(Y,1)):(Y=pm(se),Y.c(),d(Y,1),Y.m(r,a)):Y&&(de(),_(Y,1,1,()=>{Y=null}),me()),se[35]?ie?(ie.p(se,le),le[1]&16&&d(ie,1)):(ie=_m(se),ie.c(),d(ie,1),ie.m(r,s)):ie&&(de(),_(ie,1,1,()=>{ie=null}),me()),se[36]?re?(re.p(se,le),le[1]&32&&d(re,1)):(re=hm(se),re.c(),d(re,1),re.m(r,u)):re&&(de(),_(re,1,1,()=>{re=null}),me()),se[37]?Ve?(Ve.p(se,le),le[1]&64&&d(Ve,1)):(Ve=gm(se),Ve.c(),d(Ve,1),Ve.m(r,f)):Ve&&(de(),_(Ve,1,1,()=>{Ve=null}),me()),se[117]&&Je.p(se,le),!se[4]&&se[33]?Ce?(Ce.p(se,le),le[0]&16|le[1]&4&&d(Ce,1)):(Ce=bm(se),Ce.c(),d(Ce,1),Ce.m(r,h)):Ce&&(de(),_(Ce,1,1,()=>{Ce=null}),me()),se[19]?Me?(Me.p(se,le),le[0]&524288&&d(Me,1)):(Me=vm(se),Me.c(),d(Me,1),Me.m(r,C)):Me&&(de(),_(Me,1,1,()=>{Me=null}),me());let be={};if(le[0]&1048576&&(be.disabled=!se[20]),le[0]&1048576|le[2]&1310720|le[7]&1&&(be.$$scope={dirty:le,ctx:se}),!w&&le[0]&8388608&&(w=!0,be.ref=se[23].episodes,qe(()=>w=!1)),g.$set(be),le[0]&268435456){fe=kt(se[28]);let tt;for(tt=0;tt<fe.length;tt+=1){let dt=mm(se,fe,tt);_e[tt]?(_e[tt].p(dt,le),d(_e[tt],1)):(_e[tt]=km(dt),_e[tt].c(),d(_e[tt],1),_e[tt].m(v,y))}for(de(),tt=fe.length;tt<_e.length;tt+=1)at(tt);me()}se[43]&&!se[4]?we?(we.p(se,le),le[0]&16|le[1]&4096&&d(we,1)):(we=wm(se),we.c(),d(we,1),we.m(v,I)):we&&(de(),_(we,1,1,()=>{we=null}),me());let Ue={};le[7]&1&&(Ue.$$scope={dirty:le,ctx:se}),!B&&le[0]&8388608&&(B=!0,Ue.ref=se[23].volume,qe(()=>B=!1)),K.$set(Ue),se[40]?Ke?(Ke.p(se,le),le[1]&512&&d(Ke,1)):(Ke=Sm(se),Ke.c(),d(Ke,1),Ke.m(v,oe)):Ke&&(de(),_(Ke,1,1,()=>{Ke=null}),me()),!se[83]&&!se[4]?Xe?(Xe.p(se,le),le[0]&16|le[2]&2097152&&d(Xe,1)):(Xe=Cm(se),Xe.c(),d(Xe,1),Xe.m(v,he)):Xe&&(de(),_(Xe,1,1,()=>{Xe=null}),me()),se[42]&&!se[4]?je?(je.p(se,le),le[0]&16|le[1]&2048&&d(je,1)):(je=Pm(se),je.c(),d(je,1),je.m(v,G)):je&&(de(),_(je,1,1,()=>{je=null}),me()),se[84].features.contextMenuButton&&et.p(se,le),se[44]?x?(x.p(se,le),le[1]&8192&&d(x,1)):(x=Im(se),x.c(),d(x,1),x.m(v,ue)):x&&(de(),_(x,1,1,()=>{x=null}),me()),se[39]?Oe?(Oe.p(se,le),le[1]&256&&d(Oe,1)):(Oe=Tm(se),Oe.c(),d(Oe,1),Oe.m(v,null)):Oe&&(de(),_(Oe,1,1,()=>{Oe=null}),me()),(!Q||le[0]&2)&&D(e,"hidden",se[1]),(!Q||le[0]&8)&&D(e,"controls-hidden",!se[3]),(!Q||le[0]&4)&&D(e,"no-smooth",se[2]),se[122]&&Ge.p(se,le)},i(se){if(!Q){d(t.$$.fragment,se),d(Y),d(ie),d(re),d(Ve),d(Je),d(Ce),d(Me),d(g.$$.fragment,se);for(let le=0;le<fe.length;le+=1)d(_e[le]);d(we),d(K.$$.fragment,se),d(Ke),d(Xe),d(je),d(et),d(x),d(Oe),d(Ge),Q=!0}},o(se){_(t.$$.fragment,se),_(Y),_(ie),_(re),_(Ve),_(Je),_(Ce),_(Me),_(g.$$.fragment,se),_e=_e.filter(Boolean);for(let le=0;le<_e.length;le+=1)_(_e[le]);_(we),_(K.$$.fragment,se),_(Ke),_(Xe),_(je),_(et),_(x),_(Oe),_(Ge),Q=!1},d(se){se&&(k(e),k(j),k(z)),L(t),Y&&Y.d(),ie&&ie.d(),re&&re.d(),Ve&&Ve.d(),Je&&Je.d(),Ce&&Ce.d(),Me&&Me.d(),L(g),b(),Li(_e,se),we&&we.d(),L(K),Ke&&Ke.d(),Xe&&Xe.d(),je&&je.d(),et&&et.d(),x&&x.d(),Oe&&Oe.d(),i[195](null),i[196](null),Ge&&Ge.d(se)}}}function O3(i,e,t){let n,o,l,r,a,s,u,f,p,h,C,g,w,b,E,v,y,I,K,B,O,oe,he,G,X,ue,j,z,Q,$,W,Y,ie=Se,re=()=>(ie(),ie=Ft(he,J=>t(144,Y=J)),he),Ve,Je=Se,Ce=()=>(Je(),Je=Ft(oe,J=>t(145,Ve=J)),oe),Me,ze=Se,$e=()=>(ze(),ze=Ft(O,J=>t(146,Me=J)),O),fe,_e=Se,at=()=>(_e(),_e=Ft(B,J=>t(147,fe=J)),B),we,Fe=Se,ft=()=>(Fe(),Fe=Ft(K,J=>t(148,we=J)),K),Ke,Xe=Se,je=()=>(Xe(),Xe=Ft(I,J=>t(149,Ke=J)),I),et,x=Se,Oe=()=>(x(),x=Ft(y,J=>t(150,et=J)),y),Ge,se=Se,le=()=>(se(),se=Ft(v,J=>t(151,Ge=J)),v),lt,be=Se,Ue=()=>(be(),be=Ft(E,J=>t(152,lt=J)),E),tt,dt=Se,bt=()=>(dt(),dt=Ft(b,J=>t(153,tt=J)),b),Tt,Qe=Se,zt=()=>(Qe(),Qe=Ft(w,J=>t(154,Tt=J)),w),Vt,yt=Se,ai=()=>(yt(),yt=Ft(g,J=>t(155,Vt=J)),g),st,vt=Se,jt=()=>(vt(),vt=Ft(C,J=>t(156,st=J)),C),ve,wt=Se,Mt=()=>(wt(),wt=Ft(h,J=>t(157,ve=J)),h),Et,Ct=Se,Ut=()=>(Ct(),Ct=Ft(p,J=>t(158,Et=J)),p),St,Wi=Se,un=()=>(Wi(),Wi=Ft(f,J=>t(159,St=J)),f),ui,ci=Se,Ji=()=>(ci(),ci=Ft(u,J=>t(160,ui=J)),u),Vi,xi,Ri,Bi,bi,fi,di,vi,yi,Gt,$i,Nt,ki,wi,en,$t,ei,ti,ji,Si,ii,Gi,Qt;i.$$.on_destroy.push(()=>ie()),i.$$.on_destroy.push(()=>Je()),i.$$.on_destroy.push(()=>ze()),i.$$.on_destroy.push(()=>_e()),i.$$.on_destroy.push(()=>Fe()),i.$$.on_destroy.push(()=>Xe()),i.$$.on_destroy.push(()=>x()),i.$$.on_destroy.push(()=>se()),i.$$.on_destroy.push(()=>be()),i.$$.on_destroy.push(()=>dt()),i.$$.on_destroy.push(()=>Qe()),i.$$.on_destroy.push(()=>yt()),i.$$.on_destroy.push(()=>vt()),i.$$.on_destroy.push(()=>wt()),i.$$.on_destroy.push(()=>Ct()),i.$$.on_destroy.push(()=>Wi()),i.$$.on_destroy.push(()=>ci());let{bottomHidden:Ci}=e,{bottomNoSmooth:Di}=e,{showControls:ni}=e,{controlsElementRef:mi=void 0}=e,{isAds:At=!1}=e,{canRewindLive:Pi}=e,{logoClickable:Yt}=e,{logoHidden:pi}=e,{logoTargetUrl:oi=""}=e,{showNextPrevButtons:li}=e,{nextButtonActive:_i}=e,{prevButtonActive:qi}=e,{isOneVideoPlaylist:tn=!1}=e,{supportLink:nn}=e,{customFullscreenSupported:Ni=!0}=e,{playNextVideo:Ot}=e,{playPrevVideo:Ii}=e,{repeatPlaylist:qt}=e,{toggleFullscreen:ri}=e,{returnFocus:Zt}=e,{seekToInteractive:Qi}=e,{toggleGraph:Oi}=e,{playPrevChapter:Fi}=e,nt=ot(),hi=Rn(),Xt=Dt(),He=nt.actions.internal.toggleMuted,cn=nt.actions.internal.togglePlay,on=nt.actions.internal.pause,ln=nt.actions.internal.toggleSubtitle,rn=nt.callbacks?.onAudioDoesNotExistHint,Yi=nt.callbacks?.onAudioDisabledHint,Ti=nt.state.duration$;q(i,Ti,J=>t(82,Gi=J));let Hi=nt.state.positionWithScrubbing$;q(i,Hi,J=>t(80,Si=J));let Zi=nt.state.playbackState$;q(i,Zi,J=>t(161,Ri=J));let Rt=nt.state.chromecastConnected$;q(i,Rt,J=>t(83,Qt=J));let zi=nt.state.isAudioAvailable$;q(i,zi,J=>t(198,G=J));let kn=nt.state.isAudioDisabled,_n=nt.state.isEnded$;q(i,_n,J=>t(169,wi=J));let fn=nt.state.isLive$;q(i,fn,J=>t(33,vi=J));let sn=nt.state.isActiveLive$;q(i,sn,J=>t(163,fi=J));let Xi=nt.state.isRewindableLive$;q(i,Xi,J=>t(32,di=J));let dn=nt.ui.isPictureInPictureActive$;q(i,dn,J=>t(165,Gt=J));let wn=nt.ui.pictureInPictureType$;q(i,wn,J=>t(164,yi=J));let Ei=nt.ui.settingsMenuVisible;q(i,Ei,J=>t(27,j=J));let Ui=nt.ui.settingsMenuOpenedByKeyboard;q(i,Ui,J=>t(140,ue=J));let Kt=nt.ui.controls,En=nt.actions.internal.getVideoEpisodes(),Sn=nt.state.chromecastState$;q(i,Sn,J=>t(29,Vi=J));let An=nt.state.availableSubtitlesList$;q(i,An,J=>t(168,ki=J));let Wt=nt.state.currentSubtitle$;q(i,Wt,J=>t(170,en=J));let Ln=Kt.disabledControls$;q(i,Ln,J=>t(172,ei=J));let Mn=nt.ui.contextMenu.visible$;q(i,Mn,J=>t(162,Bi=J));let mn=nt.ui.contextMenu.showContextMenuBtn$;q(i,mn,J=>t(166,$i=J));let pn=nt.ui.contextMenu.openedByBtnKeyboard$;q(i,pn,J=>t(167,Nt=J));let hn=nt.ui.startedByKeyboard$;q(i,hn,J=>t(139,X=J));let gn=nt.ads.duration;q(i,gn,J=>t(81,ii=J));let ne=nt.ads.position;q(i,ne,J=>t(79,ji=J));let _t=nt.ads.playbackState;q(i,_t,J=>t(171,$t=J));let an=nt.ui.isFullscreen;q(i,an,J=>t(30,xi=J));let ee=nt.ui.playerSize;q(i,ee,J=>t(142,Q=J));let mt=nt.ui.currentGridType$;q(i,mt,J=>t(143,$=J));let si=nt.ui.additionalButtons$;q(i,si,J=>t(28,W=J));let Nn=nt.actions.internal.getVideoElement,On=nt.actions.internal.replayInteractive,te=nt.state.isInteractive,eo=nt.state.isInteractiveTime$;q(i,eo,J=>t(141,z=J));let gl=nt.state.showInteractiveGraph,bl=nt.state.showSeekToInteractive,vl=nt.state.showPlayPrevChapter,yl=nt.state.showInteractiveTimeIndicator,Fo=nt.state.graphIsOpened$;q(i,Fo,J=>t(31,bi=J));let kl=nt.state.playPrevChapterDisabledTooltip,to=hi.seekToInteractiveDisabledTooltip$;q(i,to,J=>t(78,ti=J));let Ho=()=>nt.actions.internal.toggleChromecast(),jn,Zn,mo,zo,po,_o,Uo,ho,io,go,Ko,Z,Bt,Cn,Fn,bo,Gn,no,vo,Wo,yo,ht="",T=(J,fs)=>{if(!J){t(50,ht=N("tooltip_live"));return}fs===Au.PAUSED&&t(50,ht=N("tooltip_play"))},ae,Ie,Ye,ct,Jt,Ze={},Pt,bn,jo,Ol,Fl=d3(Yr,260),Hl,zl,Ul;function Hp(){so({isAudioDisabled:kn,audioDisabledHintCallback:Yi,isAudioAvailable:G,audioIsNotExistHintCallback:rn})&&He()}let zp=te?On:tn?cn:qt;function Up(J){i.$$.not_equal(Ze.timeline,J)&&(Ze.timeline=J,t(23,Ze))}function Kp(J){i.$$.not_equal(Ze.prevButton,J)&&(Ze.prevButton=J,t(23,Ze))}function Wp(J){i.$$.not_equal(Ze.replayButton,J)&&(Ze.replayButton=J,t(23,Ze))}function jp(J){Ul=J,t(26,Ul)}function Gp(J){i.$$.not_equal(Ze.playButton,J)&&(Ze.playButton=J,t(23,Ze))}function Qp(J){i.$$.not_equal(Ze.nextButton,J)&&(Ze.nextButton=J,t(23,Ze))}function Yp(J){i.$$.not_equal(Ze.playPrevChapterButton,J)&&(Ze.playPrevChapterButton=J,t(23,Ze))}function Zp(J){i.$$.not_equal(Ze.seekToInteractiveButton,J)&&(Ze.seekToInteractiveButton=J,t(23,Ze))}function Xp(J){i.$$.not_equal(Ze.interactiveGraphButton,J)&&(Ze.interactiveGraphButton=J,t(23,Ze))}function Jp(J){i.$$.not_equal(Ze.liveButton,J)&&(Ze.liveButton=J,t(23,Ze))}function xp(J){i.$$.not_equal(Ze.time,J)&&(Ze.time=J,t(23,Ze))}function $p(J){i.$$.not_equal(Ze.episodes,J)&&(Ze.episodes=J,t(23,Ze))}function e_(){Jt=this.clientWidth,t(22,Jt)}function t_(J){i.$$.not_equal(Ze.vkLogo,J)&&(Ze.vkLogo=J,t(23,Ze))}function i_(J){i.$$.not_equal(Ze.volume,J)&&(Ze.volume=J,t(23,Ze))}function n_(J){i.$$.not_equal(Ze.subtitles,J)&&(Ze.subtitles=J,t(23,Ze))}function o_(J){Hl=J,t(24,Hl)}function l_(J){zl=J,t(25,zl)}function r_(J){i.$$.not_equal(Ze.settings,J)&&(Ze.settings=J,t(23,Ze))}function s_(J){i.$$.not_equal(Ze.context,J)&&(Ze.context=J,t(23,Ze))}function a_(J){i.$$.not_equal(Ze.fullscreen,J)&&(Ze.fullscreen=J,t(23,Ze))}function u_(J){i.$$.not_equal(Ze.chromecast,J)&&(Ze.chromecast=J,t(23,Ze))}function c_(J){ge[J?"unshift":"push"](()=>{Gn=J,t(46,Gn)})}function f_(J){ge[J?"unshift":"push"](()=>{mi=J,t(0,mi)})}function d_(J){i.$$.not_equal(Ze.interactiveTimeIndicator,J)&&(Ze.interactiveTimeIndicator=J,t(23,Ze))}return i.$$set=J=>{"bottomHidden"in J&&t(1,Ci=J.bottomHidden),"bottomNoSmooth"in J&&t(2,Di=J.bottomNoSmooth),"showControls"in J&&t(3,ni=J.showControls),"controlsElementRef"in J&&t(0,mi=J.controlsElementRef),"isAds"in J&&t(4,At=J.isAds),"canRewindLive"in J&&t(5,Pi=J.canRewindLive),"logoClickable"in J&&t(6,Yt=J.logoClickable),"logoHidden"in J&&t(129,pi=J.logoHidden),"logoTargetUrl"in J&&t(7,oi=J.logoTargetUrl),"showNextPrevButtons"in J&&t(130,li=J.showNextPrevButtons),"nextButtonActive"in J&&t(8,_i=J.nextButtonActive),"prevButtonActive"in J&&t(9,qi=J.prevButtonActive),"isOneVideoPlaylist"in J&&t(131,tn=J.isOneVideoPlaylist),"supportLink"in J&&t(10,nn=J.supportLink),"customFullscreenSupported"in J&&t(132,Ni=J.customFullscreenSupported),"playNextVideo"in J&&t(11,Ot=J.playNextVideo),"playPrevVideo"in J&&t(12,Ii=J.playPrevVideo),"repeatPlaylist"in J&&t(133,qt=J.repeatPlaylist),"toggleFullscreen"in J&&t(13,ri=J.toggleFullscreen),"returnFocus"in J&&t(14,Zt=J.returnFocus),"seekToInteractive"in J&&t(15,Qi=J.seekToInteractive),"toggleGraph"in J&&t(16,Oi=J.toggleGraph),"playPrevChapter"in J&&t(17,Fi=J.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072&&t(138,n=ei.has("EPISODE_BUTTON")),i.$$.dirty[5]&131072&&t(77,o=ei.has("GRAPH_BUTTON")),i.$$.dirty[5]&131072&&t(76,l=ei.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[5]&131072&&t(75,r=ei.has("PLAY_BUTTON")),i.$$.dirty[5]&131072&&t(74,a=ei.has("REPLAY_BUTTON")),i.$$.dirty[5]&131072&&t(73,s=ei.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[0]&16|i.$$.dirty[5]&65600&&t(34,jn=At?$t==="playing":Ri===Au.PLAYING),i.$$.dirty[5]&32768&&t(18,Zn=en.value!=="off"),i.$$.dirty[0]&16|i.$$.dirty[5]&16384&&t(35,mo=wi&&!At||te),i.$$.dirty[0]&16|i.$$.dirty[5]&16384&&t(36,zo=!wi||te||At),i.$$.dirty[4]&524288&&t(134,po=Tn($,"m")),i.$$.dirty[0]&272|i.$$.dirty[4]&524352&&t(37,_o=li&&Tn($,"m")&&!At&&_i),i.$$.dirty[0]&528|i.$$.dirty[4]&524352&&t(38,Uo=li&&Tn($,"m")&&!At&&qi),i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536&&t(39,ho=Vi!==dm.NOT_AVAILABLE&&!(Gt&&yi===1)&&Tn($,"m")&&!te),i.$$.dirty[4]&524288|i.$$.dirty[5]&8192&&t(40,io=ki.length>0&&Tn($,"m")),i.$$.dirty[5]&6144&&t(41,go=Nt||$i),i.$$.dirty[4]&524288&&t(42,Ko=Tn($,"s")),i.$$.dirty[4]&32&&t(43,Z=!pi),i.$$.dirty[4]&524576|i.$$.dirty[5]&1536&&t(44,Bt=Xt.features.fullscreen&&(pi||Tn($,"s"))&&!(Gt&&yi===1)&&(te?Ni:!0)),i.$$.dirty[0]&16|i.$$.dirty[1]&4&&t(19,Cn=(!vi||At)&&!(Xt.features.interactiveHideTime&&te)),i.$$.dirty[4]&262144&&t(45,Fn=Q.width>100),i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408&&t(20,bo=!At&&!vi&&!!En?.length&&po&&!n),i.$$.dirty[1]&2|i.$$.dirty[5]&256&&t(21,no=!di||fi),i.$$.dirty[5]&64&&t(47,vo=Ri===Au.PLAYING?N("tooltip_pause"):N("tooltip_play")),i.$$.dirty[1]&1&&t(48,Wo=bi?N("tooltip_interactive_graph_on"):N("tooltip_interactive_graph_off")),i.$$.dirty[5]&128&&t(49,yo=Bi?N("aria_label_context_menu_close"):N("aria_label_context_menu_open")),i.$$.dirty[0]&2097152|i.$$.dirty[5]&64&&T(no,Ri),i.$$.dirty[0]&262144&&t(52,Ie=Zn?N("tooltip_subtitles_on"):N("tooltip_subtitles_off")),i.$$.dirty[0]&1073741824&&t(53,Ye=xi?N("tooltip_fullscreen_on"):N("tooltip_fullscreen_off")),i.$$.dirty[0]&536870912&&t(54,ct=Vi===dm.CONNECTED?N("tooltip_chromecast_on"):N("tooltip_chromecast_off")),i.$$.dirty[0]&268435456|i.$$.dirty[4]&2146435072|i.$$.dirty[5]&63&&t(135,Pt={prevButton:ui?ui.right-ui.left:0,replayButton:St?St.right-St.left:0,playButton:Et?Et.right-Et.left:0,nextButton:ve?ve.right-ve.left:0,playPrevChapterButton:st?st.right-st.left:0,seekToInteractiveButton:Vt?Vt.right-Vt.left:0,interactiveGraphButton:Tt?Tt.right-Tt.left:0,liveButton:tt?tt.right-tt.left:0,time:lt?lt.right-lt.left:0,episodes:Ge?Ge.right-Ge.left:0,vkLogo:et?et.right-et.left:0,volume:Ke?Ke.right-Ke.left:0,subtitles:we?we.right-we.left:0,settings:fe?fe.right-fe.left:0,context:Me?Me.right-Me.left:0,fullscreen:Ve?Ve.right-Ve.left:0,chromecast:Y?Y.right-Y.left:0,additionalButtons:W.length?W.reduce(J=>[...J,40],[]):[]}),i.$$.dirty[4]&6144&&(!bn||bn<Pt.time)&&t(136,bn=Pt.time),i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432){let J=0;bo&&(Tn($,"xl")?J=Pt.time:J=60);let fs=Pt.prevButton+Pt.playButton+Pt.nextButton+Pt.seekToInteractiveButton+Pt.interactiveGraphButton+Pt.liveButton+bn+J;t(137,jo=Cn&&Jt>=fs)}i.$$.dirty[4]&532480&&t(55,Ol=jo&&Tn($,"m")),i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216&&Fl(Nn(),Kt,Ze,ni),i.$$.dirty[0]&167772160&&ol(zl,j,Ui),i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536&&Ro(Hl,j,ue),i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768&&Zr(hn,X,Ul)},t(51,ae=Xt.logoType==="vk_video"?N("tooltip_vk_video_logo"):N("tooltip_vk_logo")),Ji(t(72,{prevButton:u,replayButton:f,playButton:p,nextButton:h,playPrevChapterButton:C,seekToInteractiveButton:g,interactiveGraphButton:w,liveButton:b,time:E,episodes:v,vkLogo:y,volume:I,subtitles:K,settings:B,context:O,fullscreen:oe,chromecast:he}=Kt,u,un(t(71,f)),Ut(t(70,p)),Mt(t(69,h)),jt(t(68,C)),ai(t(67,g)),zt(t(66,w)),bt(t(65,b)),Ue(t(64,E)),le(t(63,v)),Oe(t(62,y)),je(t(61,I)),ft(t(60,K)),at(t(59,B)),$e(t(58,O)),Ce(t(57,oe)),re(t(56,he)))),[mi,Ci,Di,ni,At,Pi,Yt,oi,_i,qi,nn,Ot,Ii,ri,Zt,Qi,Oi,Fi,Zn,Cn,bo,no,Jt,Ze,Hl,zl,Ul,j,W,Vi,xi,bi,di,vi,jn,mo,zo,_o,Uo,ho,io,go,Ko,Z,Bt,Fn,Gn,vo,Wo,yo,ht,ae,Ie,Ye,ct,Ol,he,oe,O,B,K,I,y,v,E,b,w,g,C,h,p,f,u,s,a,r,l,o,ti,ji,Si,ii,Gi,Qt,Xt,cn,on,ln,Ti,Hi,Zi,Rt,zi,_n,fn,sn,Xi,dn,wn,Ei,Ui,En,Sn,An,Wt,Ln,Mn,mn,pn,hn,gn,ne,_t,an,ee,mt,si,te,eo,gl,bl,vl,yl,Fo,kl,to,Ho,Hp,zp,pi,li,tn,Ni,qt,po,Pt,bn,jo,n,X,ue,z,Q,$,Y,Ve,Me,fe,we,Ke,et,Ge,lt,tt,Tt,Vt,st,ve,Et,St,ui,Ri,Bi,fi,yi,Gt,$i,Nt,ki,wi,en,$t,ei,Up,Kp,Wp,jp,Gp,Qp,Yp,Zp,Xp,Jp,xp,$p,e_,t_,i_,n_,o_,l_,r_,s_,a_,u_,c_,f_,d_]}var Lu=class extends H{constructor(e){super(),U(this,e,O3,N3,F,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:129,logoTargetUrl:7,showNextPrevButtons:130,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:131,supportLink:10,customFullscreenSupported:132,playNextVideo:11,playPrevVideo:12,repeatPlaylist:133,toggleFullscreen:13,returnFocus:14,seekToInteractive:15,toggleGraph:16,playPrevChapter:17},m3,[-1,-1,-1,-1,-1,-1,-1,-1])}},Em=Lu;import{ChromecastState as Bm,PlaybackState as Dm}from"@vkontakte/videoplayer-core";function F3(i){let e,t,n,o,l,r=i[2].default,a=Te(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ce(u,s[f]);return{c(){e=R("svg"),a&&a.c(),t=R("g"),n=R("path"),o=R("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(o,"d","M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"),c(t,"fill","none"),c(t,"fill-rule","evenodd"),ke(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ke(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function H3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Vu=class extends H{constructor(e){super(),U(this,e,H3,F3,F,{})}},Am=Vu;import{noop as z3}from"@vkontakte/videoplayer-shared";function U3(i){Pe(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 Lm(i){let e;return{c(){e=P("span"),e.textContent=`${N("mobile_unmute")}`,c(e,"class","text svelte-6gmlbk")},m(t,n){S(t,e,n)},d(t){t&&k(e)}}}function K3(i){let e,t,n,o;var l=i[4];function r(s,u){return{}}l&&(t=vn(l,r(i)));let a=i[1]&&Lm(i);return{c(){e=P("div"),t&&V(t.$$.fragment),n=M(),a&&a.c(),c(e,"class","container svelte-6gmlbk"),c(e,"aria-hidden","true"),D(e,"expanded",i[1])},m(s,u){S(s,e,u),t&&A(t,e,null),m(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&l!==(l=s[4])){if(t){de();let f=t;_(f.$$.fragment,1,0,()=>{L(f,1)}),me()}l?(t=vn(l,r(s,u)),V(t.$$.fragment),d(t.$$.fragment,1),A(t,e,n)):t=null}s[1]?a||(a=Lm(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&D(e,"expanded",s[1])},i(s){o||(t&&d(t.$$.fragment,s),o=!0)},o(s){t&&_(t.$$.fragment,s),o=!1},d(s){s&&k(e),t&&L(t),a&&a.d()}}}function W3(i){let e,t,n;function o(r){i[6](r)}let l={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[K3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.testId=r[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(s.click=r[2]),a&8&&(s.ariaLabel=r[3]),a&146&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function j3(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:l=z3}=e,{ref:r=void 0}=e,a,s;function u(f){r=f,t(0,r)}return i.$$set=f=>{"muted"in f&&t(5,n=f.muted),"expanded"in f&&t(1,o=f.expanded),"click"in f&&t(2,l=f.click),"ref"in f&&t(0,r=f.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,a=n?N("tooltip_volume"):N("tooltip_volume_muted")),i.$$.dirty&2&&t(4,s=o?No:Am)},[r,o,l,a,s,n,u]}var Ru=class extends H{constructor(e){super(),U(this,e,j3,W3,F,{muted:5,expanded:1,click:2,ref:0},U3)}},Bu=Ru;function G3(i){let e,t,n,o,l,r=i[2].default,a=Te(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ce(u,s[f]);return{c(){e=R("svg"),a&&a.c(),t=R("path"),n=R("path"),o=R("path"),c(t,"fill","currentColor"),c(t,"d","M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z"),c(t,"clip-rule","evenodd"),c(n,"fill","currentColor"),c(n,"d","m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z"),c(n,"class","hidden-not-active"),c(o,"fill","currentColor"),c(o,"d","m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z"),c(o,"class","hidden-active"),ke(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,t),m(e,n),m(e,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ke(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function Q3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Du=class extends H{constructor(e){super(),U(this,e,Q3,G3,F,{})}},Mm=Du;function Y3(i){Pe(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 Mm({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&2&&(l.style=n[1]),o&1&&(l["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function X3(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=l=>{"isActive"in l&&t(0,o=l.isActive)},i.$$.update=()=>{i.$$.dirty&1&&t(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var qu=class extends H{constructor(e){super(),U(this,e,X3,Z3,F,{isActive:0},Y3)}},Vm=qu;import{noop as J3}from"@vkontakte/videoplayer-shared";function x3(i){let e,t;return e=new Vm({props:{isActive:i[1]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function $3(i){let e,t,n;function o(r){i[3](r)}let l={testId:"btn-pip",ariaLabel:N("menu_pip"),click:i[2],$$slots:{default:[x3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&4&&(s.click=r[2]),a&18&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function e5(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:l=J3}=e;function r(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"isPictureInPictureActive"in a&&t(1,o=a.isPictureInPictureActive),"click"in a&&t(2,l=a.click)},[n,o,l,r]}var Nu=class extends H{constructor(e){super(),U(this,e,e5,$3,F,{ref:0,isPictureInPictureActive:1,click:2})}},Rm=Nu;import{debounceFn as t5}from"@vkontakte/videoplayer-shared";function i5(i){Pe(i,"svelte-17qsgob",".wrapper-bottom.svelte-17qsgob.svelte-17qsgob{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px}.wrapper-bottom.svelte-17qsgob>.svelte-17qsgob{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-17qsgob.svelte-17qsgob{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-17qsgob.svelte-17qsgob{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.svelte-17qsgob.svelte-17qsgob{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.svelte-17qsgob.svelte-17qsgob{position:absolute;top:4px;left:8px}.wrapper-middle-left.svelte-17qsgob.svelte-17qsgob,.wrapper-middle-left-second.svelte-17qsgob.svelte-17qsgob,.wrapper-middle-right.svelte-17qsgob.svelte-17qsgob{position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.wrapper-middle-left.svelte-17qsgob.svelte-17qsgob{left:12px}.wrapper-middle-left-second.svelte-17qsgob.svelte-17qsgob{left:64px}.wrapper-middle-right.svelte-17qsgob.svelte-17qsgob{right:12px}.controls.svelte-17qsgob.svelte-17qsgob{width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box}.controls.svelte-17qsgob > *:not(:first-child){margin-left:8px}.hidden.svelte-17qsgob.svelte-17qsgob{visibility:hidden;opacity:0}.controls-hidden.svelte-17qsgob.svelte-17qsgob{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-17qsgob.svelte-17qsgob{transition:none}.settings-mobile.svelte-17qsgob.svelte-17qsgob{position:absolute;z-index:var(--mobile-settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%}.overlay-mobile.svelte-17qsgob.svelte-17qsgob{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration)}@media screen and (orientation: portrait){.wrapper-top-right.fullscreen.svelte-17qsgob.svelte-17qsgob{top:16px}.wrapper-top-left.fullscreen.svelte-17qsgob.svelte-17qsgob{top:16px}.controls-wrapper.fullscreen.svelte-17qsgob.svelte-17qsgob{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-17qsgob.svelte-17qsgob{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-17qsgob.svelte-17qsgob{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-17qsgob.svelte-17qsgob{left:44px}.wrapper-middle-left-second.fullscreen.svelte-17qsgob.svelte-17qsgob{left:96px}.wrapper-middle-right.fullscreen.svelte-17qsgob.svelte-17qsgob{right:44px}.controls-wrapper.fullscreen.svelte-17qsgob.svelte-17qsgob{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function qm(i,e,t){let n=i.slice();return n[170]=e[t].iconUrl,n[171]=e[t].ariaLabel,n[172]=e[t].testId,n[173]=e[t].onClick,n[174]=e[t].tooltip,n}function Nm(i){let e,t,n,o,l,r,a,s,u,f,p,h,C,g,w,b,E,v=(!i[51]||i[53])&&Om(i),y=kt(i[56]),I=[];for(let Q=0;Q<y.length;Q+=1)I[Q]=Fm(qm(i,y,Q));let K=Q=>_(I[Q],1,1,()=>{I[Q]=null}),B=i[36]&&Hm(i),O=i[37]&&zm(i),oe=i[57]&&Um(i),he=i[39]&&Km(i),G=i[8]&&Wm(i),X=i[34]&&jm(i),ue=i[33]&&Gm(i),j=i[8]&&Qm(i),z=i[96]&&!i[29]&&Ym(i);return{c(){e=P("div"),t=M(),n=P("div"),v&&v.c(),o=M(),l=P("div");for(let Q=0;Q<I.length;Q+=1)I[Q].c();r=M(),B&&B.c(),a=M(),O&&O.c(),s=M(),oe&&oe.c(),u=M(),he&&he.c(),f=M(),p=P("div"),G&&G.c(),h=M(),X&&X.c(),C=M(),ue&&ue.c(),g=M(),j&&j.c(),w=M(),z&&z.c(),b=ut(),c(e,"class","overlay-mobile svelte-17qsgob"),D(e,"hidden",!i[42]),c(n,"class","wrapper-top-left svelte-17qsgob"),D(n,"hidden",!i[3]),D(n,"fullscreen",i[52]),c(l,"class","wrapper-top-right svelte-17qsgob"),D(l,"hidden",!i[3]&&!i[27]),D(l,"fullscreen",i[52]),c(p,"class","wrapper-middle svelte-17qsgob"),D(p,"hidden",!i[3]||i[29])},m(Q,$){S(Q,e,$),S(Q,t,$),S(Q,n,$),v&&v.m(n,null),S(Q,o,$),S(Q,l,$);for(let W=0;W<I.length;W+=1)I[W]&&I[W].m(l,null);m(l,r),B&&B.m(l,null),m(l,a),O&&O.m(l,null),m(l,s),oe&&oe.m(l,null),m(l,u),he&&he.m(l,null),S(Q,f,$),S(Q,p,$),G&&G.m(p,null),m(p,h),X&&X.m(p,null),m(p,C),ue&&ue.m(p,null),m(p,g),j&&j.m(p,null),S(Q,w,$),z&&z.m(Q,$),S(Q,b,$),E=!0},p(Q,$){if((!E||$[1]&2048)&&D(e,"hidden",!Q[42]),!Q[51]||Q[53]?v?(v.p(Q,$),$[1]&5242880&&d(v,1)):(v=Om(Q),v.c(),d(v,1),v.m(n,null)):v&&(de(),_(v,1,1,()=>{v=null}),me()),(!E||$[0]&8)&&D(n,"hidden",!Q[3]),(!E||$[1]&2097152)&&D(n,"fullscreen",Q[52]),$[1]&33554432){y=kt(Q[56]);let W;for(W=0;W<y.length;W+=1){let Y=qm(Q,y,W);I[W]?(I[W].p(Y,$),d(I[W],1)):(I[W]=Fm(Y),I[W].c(),d(I[W],1),I[W].m(l,r))}for(de(),W=y.length;W<I.length;W+=1)K(W);me()}Q[36]?B?(B.p(Q,$),$[1]&32&&d(B,1)):(B=Hm(Q),B.c(),d(B,1),B.m(l,a)):B&&(de(),_(B,1,1,()=>{B=null}),me()),Q[37]?O?(O.p(Q,$),$[1]&64&&d(O,1)):(O=zm(Q),O.c(),d(O,1),O.m(l,s)):O&&(de(),_(O,1,1,()=>{O=null}),me()),Q[57]?oe?(oe.p(Q,$),$[1]&67108864&&d(oe,1)):(oe=Um(Q),oe.c(),d(oe,1),oe.m(l,u)):oe&&(de(),_(oe,1,1,()=>{oe=null}),me()),Q[39]?he?(he.p(Q,$),$[1]&256&&d(he,1)):(he=Km(Q),he.c(),d(he,1),he.m(l,null)):he&&(de(),_(he,1,1,()=>{he=null}),me()),(!E||$[0]&134217736)&&D(l,"hidden",!Q[3]&&!Q[27]),(!E||$[1]&2097152)&&D(l,"fullscreen",Q[52]),Q[8]?G?(G.p(Q,$),$[0]&256&&d(G,1)):(G=Wm(Q),G.c(),d(G,1),G.m(p,h)):G&&(de(),_(G,1,1,()=>{G=null}),me()),Q[34]?X?(X.p(Q,$),$[1]&8&&d(X,1)):(X=jm(Q),X.c(),d(X,1),X.m(p,C)):X&&(de(),_(X,1,1,()=>{X=null}),me()),Q[33]?ue?(ue.p(Q,$),$[1]&4&&d(ue,1)):(ue=Gm(Q),ue.c(),d(ue,1),ue.m(p,g)):ue&&(de(),_(ue,1,1,()=>{ue=null}),me()),Q[8]?j?(j.p(Q,$),$[0]&256&&d(j,1)):(j=Qm(Q),j.c(),d(j,1),j.m(p,null)):j&&(de(),_(j,1,1,()=>{j=null}),me()),(!E||$[0]&536870920)&&D(p,"hidden",!Q[3]||Q[29]),Q[96]&&!Q[29]?z?(z.p(Q,$),$[0]&536870912&&d(z,1)):(z=Ym(Q),z.c(),d(z,1),z.m(b.parentNode,b)):z&&(de(),_(z,1,1,()=>{z=null}),me())},i(Q){if(!E){d(v);for(let $=0;$<y.length;$+=1)d(I[$]);d(B),d(O),d(oe),d(he),d(G),d(X),d(ue),d(j),d(z),E=!0}},o(Q){_(v),I=I.filter(Boolean);for(let $=0;$<I.length;$+=1)_(I[$]);_(B),_(O),_(oe),_(he),_(G),_(X),_(ue),_(j),_(z),E=!1},d(Q){Q&&(k(e),k(t),k(n),k(o),k(l),k(f),k(p),k(w),k(b)),v&&v.d(),Li(I,Q),B&&B.d(),O&&O.d(),oe&&oe.d(),he&&he.d(),G&&G.d(),X&&X.d(),ue&&ue.d(),j&&j.d(),z&&z.d(Q)}}}function Om(i){let e,t,n;function o(r){i[130](r)}let l={muted:i[54],expanded:i[51]&&!i[70]&&i[55],click:i[106]};return i[20].volume!==void 0&&(l.ref=i[20].volume),e=new Bu({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&8388608&&(s.muted=r[54]),a[1]&17825792&&(s.expanded=r[51]&&!r[70]&&r[55]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].volume,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Fm(i){let e,t;return e=new Ur({props:{iconUrl:i[170],ariaLabel:i[171]??i[174],testId:i[172],onClick:i[173]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[1]&33554432&&(l.iconUrl=n[170]),o[1]&33554432&&(l.ariaLabel=n[171]??n[174]),o[1]&33554432&&(l.testId=n[172]),o[1]&33554432&&(l.onClick=n[173]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Hm(i){let e,t,n;function o(r){i[131](r)}let l={isMobile:!0,click:i[104],state:i[28]};return i[20].chromecast!==void 0&&(l.ref=i[20].chromecast),e=new Vr({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&268435456&&(s.state=r[28]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].chromecast,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function zm(i){let e,t,n;function o(r){i[132](r)}let l={click:i[105],isPictureInPictureActive:i[26]};return i[20].pip!==void 0&&(l.ref=i[20].pip),e=new Rm({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&67108864&&(s.isPictureInPictureActive=r[26]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].pip,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Um(i){let e,t,n;function o(r){i[133](r)}let l={};return i[22]!==void 0&&(l.ref=i[22]),e=new Tl({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=r[22],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Km(i){let e,t,n;function o(r){i[134](r)}let l={click:i[64],targetUrl:i[7],logoClickable:i[6]};return i[20].vkLogo!==void 0&&(l.ref=i[20].vkLogo),e=new Mr({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&128&&(s.targetUrl=r[7]),a[0]&64&&(s.logoClickable=r[6]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].vkLogo,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Wm(i){let e,t,n;function o(r){i[135](r)}let l={click:i[13],type:"prev",disabled:!i[10],isMobile:!0};return i[20].prevButton!==void 0&&(l.ref=i[20].prevButton),e=new dl({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&8192&&(s.click=r[13]),a[0]&1024&&(s.disabled=!r[10]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].prevButton,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function jm(i){let e,t,n;function o(r){i[136](r)}let l={disabled:i[49],click:i[63],isMobile:!0,isPlaying:i[31]};return i[20].playButton!==void 0&&(l.ref=i[20].playButton),e=new Al({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&262144&&(s.disabled=r[49]),a[1]&1&&(s.isPlaying=r[31]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].playButton,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Gm(i){let e,t,n;function o(r){i[137](r)}let l={disabled:i[48],click:i[107],isMobile:!0};return i[20].replayButton!==void 0&&(l.ref=i[20].replayButton),e=new Ll({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.disabled=r[48]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].replayButton,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Qm(i){let e,t,n;function o(r){i[138](r)}let l={click:i[12],type:"next",disabled:!i[9],isMobile:!0};return i[20].nextButton!==void 0&&(l.ref=i[20].nextButton),e=new dl({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&4096&&(s.click=r[12]),a[0]&512&&(s.disabled=!r[9]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].nextButton,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Ym(i){let e,t,n,o,l=i[100]&&n5(i),r=i[98]&&o5(i),a=i[99]&&l5(i);return{c(){l&&l.c(),e=M(),r&&r.c(),t=M(),a&&a.c(),n=ut()},m(s,u){l&&l.m(s,u),S(s,e,u),r&&r.m(s,u),S(s,t,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){s[100]&&l.p(s,u),s[98]&&r.p(s,u),s[99]&&a.p(s,u)},i(s){o||(d(l),d(r),d(a),o=!0)},o(s){_(l),_(r),_(a),o=!1},d(s){s&&(k(e),k(t),k(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function n5(i){let e,t,n,o,l,r;function a(u){i[139](u)}let s={hidden:!i[3],disabled:i[47],click:i[18]};return i[20].playPrevChapterButton!==void 0&&(s.ref=i[20].playPrevChapterButton),t=new zr({props:s}),ge.push(()=>Ne(t,"ref",a)),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","wrapper-middle-left svelte-17qsgob"),D(e,"fullscreen",i[52]),D(e,"hidden",!i[3])},m(u,f){S(u,e,f),A(t,e,null),o=!0,l||(r=pe(e,"click",i[108]),l=!0)},p(u,f){let p={};f[0]&8&&(p.hidden=!u[3]),f[1]&65536&&(p.disabled=u[47]),f[0]&262144&&(p.click=u[18]),!n&&f[0]&1048576&&(n=!0,p.ref=u[20].playPrevChapterButton,qe(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&D(e,"fullscreen",u[52]),(!o||f[0]&8)&&D(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&k(e),L(t),l=!1,r()}}}function o5(i){let e,t,n,o,l;function r(s){i[140](s)}let a={hidden:!i[3]&&!i[58],disabled:i[50],click:i[17],graphIsOpened:i[58]};return i[20].interactiveGraphButton!==void 0&&(a.ref=i[20].interactiveGraphButton),t=new Fr({props:a}),ge.push(()=>Ne(t,"ref",r)),{c(){e=P("div"),V(t.$$.fragment),c(e,"class",o=Ec(i[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-17qsgob"),D(e,"fullscreen",i[52]),D(e,"hidden",!i[3]&&!i[58])},m(s,u){S(s,e,u),A(t,e,null),l=!0},p(s,u){let f={};u[0]&8|u[1]&134217728&&(f.hidden=!s[3]&&!s[58]),u[1]&524288&&(f.disabled=s[50]),u[0]&131072&&(f.click=s[17]),u[1]&134217728&&(f.graphIsOpened=s[58]),!n&&u[0]&1048576&&(n=!0,f.ref=s[20].interactiveGraphButton,qe(()=>n=!1)),t.$set(f),(!l||u[1]&2097152)&&D(e,"fullscreen",s[52]),(!l||u[0]&8|u[1]&134217728)&&D(e,"hidden",!s[3]&&!s[58])},i(s){l||(d(t.$$.fragment,s),l=!0)},o(s){_(t.$$.fragment,s),l=!1},d(s){s&&k(e),L(t)}}}function l5(i){let e,t,n,o,l,r;function a(u){i[141](u)}let s={hidden:!i[3],disabled:i[46],click:i[16]};return i[20].seekToInteractiveButton!==void 0&&(s.ref=i[20].seekToInteractiveButton),t=new Or({props:s}),ge.push(()=>Ne(t,"ref",a)),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","wrapper-middle-right svelte-17qsgob"),D(e,"fullscreen",i[52]),D(e,"hidden",!i[3])},m(u,f){S(u,e,f),A(t,e,null),o=!0,l||(r=pe(e,"click",i[109]),l=!0)},p(u,f){let p={};f[0]&8&&(p.hidden=!u[3]),f[1]&32768&&(p.disabled=u[46]),f[0]&65536&&(p.click=u[16]),!n&&f[0]&1048576&&(n=!0,p.ref=u[20].seekToInteractiveButton,qe(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&D(e,"fullscreen",u[52]),(!o||f[0]&8)&&D(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&k(e),L(t),l=!1,r()}}}function Zm(i){let e,t,n,o,l,r=i[53]&&Xm(i),a=i[32]&&Jm(i);return o=new Dr({props:{position:i[59],duration:i[60]}}),{c(){r&&r.c(),e=M(),a&&a.c(),t=M(),n=P("div"),V(o.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile svelte-17qsgob"),D(n,"fullscreen",i[52])},m(s,u){r&&r.m(s,u),S(s,e,u),a&&a.m(s,u),S(s,t,u),S(s,n,u),A(o,n,null),l=!0},p(s,u){s[53]?r?(r.p(s,u),u[1]&4194304&&d(r,1)):(r=Xm(s),r.c(),d(r,1),r.m(e.parentNode,e)):r&&(de(),_(r,1,1,()=>{r=null}),me()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=Jm(s),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(de(),_(a,1,1,()=>{a=null}),me());let f={};u[1]&268435456&&(f.position=s[59]),u[1]&536870912&&(f.duration=s[60]),o.$set(f),(!l||u[1]&2097152)&&D(n,"fullscreen",s[52])},i(s){l||(d(r),d(a),d(o.$$.fragment,s),l=!0)},o(s){_(r),_(a),_(o.$$.fragment,s),l=!1},d(s){s&&(k(e),k(t),k(n)),r&&r.d(s),a&&a.d(s),L(o)}}}function Xm(i){let e,t,n,o;function l(a){i[142](a)}let r={muted:i[54],expanded:!1,click:i[106]};return i[20].volume!==void 0&&(r.ref=i[20].volume),t=new Bu({props:r}),ge.push(()=>Ne(t,"ref",l)),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","wrapper-top-right svelte-17qsgob"),D(e,"fullscreen",i[52])},m(a,s){S(a,e,s),A(t,e,null),o=!0},p(a,s){let u={};s[1]&8388608&&(u.muted=a[54]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].volume,qe(()=>n=!1)),t.$set(u),(!o||s[1]&2097152)&&D(e,"fullscreen",a[52])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),L(t)}}}function Jm(i){let e,t,n,o;function l(a){i[143](a)}let r={disabled:i[49],click:i[63],isMobile:!0,isPlaying:!i[32]};return i[20].playButton!==void 0&&(r.ref=i[20].playButton),t=new Al({props:r}),ge.push(()=>Ne(t,"ref",l)),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","wrapper-middle svelte-17qsgob")},m(a,s){S(a,e,s),A(t,e,null),o=!0},p(a,s){let u={};s[1]&262144&&(u.disabled=a[49]),s[1]&2&&(u.isPlaying=!a[32]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].playButton,qe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),L(t)}}}function r5(i){let e,t,n;function o(r){i[144](r)}let l={disabled:i[48],$$slots:{default:[s5]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(l.ref=i[20].replayButton),e=new Lt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.disabled=r[48]),a[1]&131072|a[5]&4194304&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].replayButton,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function s5(i){let e,t;return e=new Ll({props:{disabled:i[48],click:i[95]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[1]&131072&&(l.disabled=n[48]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function xm(i){let e,t,n;function o(r){i[145](r)}let l={$$slots:{default:[a5]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(l.ref=i[20].liveButton),e=new Lt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&524288|a[1]&16384|a[5]&4194304&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].liveButton,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function a5(i){let e,t;return e=new Rr({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&524288&&(l.isActiveLive=n[19]),o[1]&16384&&(l.ariaLabel=n[45]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function $m(i){let e,t,n;function o(r){i[146](r)}let l={showDuration:i[35],position:i[4]?i[59]:i[61],duration:i[4]?i[60]:i[62],isMobile:!0};return i[20].time!==void 0&&(l.ref=i[20].time),e=new Pr({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&16&&(s.showDuration=r[35]),a[0]&16|a[1]&1342177280&&(s.position=r[4]?r[59]:r[61]),a[0]&16|a[1]&536870912|a[2]&1&&(s.duration=r[4]?r[60]:r[62]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].time,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function e0(i){let e,t,n,o;return n=new Nr({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=P("div"),e.textContent="\xB7",t=M(),V(n.$$.fragment),c(e,"aria-hidden","true")},m(l,r){S(l,e,r),S(l,t,r),A(n,l,r),o=!0},p(l,r){let a={};r[1]&1073741824&&(a.position=l[61]),r[2]&1&&(a.duration=l[62]),n.$set(a)},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){_(n.$$.fragment,l),o=!1},d(l){l&&(k(e),k(t)),L(n,l)}}}function u5(i){let e,t,n=i[43]&&e0(i);return{c(){n&&n.c(),e=ut()},m(o,l){n&&n.m(o,l),S(o,e,l),t=!0},p(o,l){o[43]?n?(n.p(o,l),l[1]&4096&&d(n,1)):(n=e0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(de(),_(n,1,1,()=>{n=null}),me())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function t0(i){let e,t,n;function o(r){i[149](r)}let l={$$slots:{default:[c5]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(l.ref=i[20].settings),e=new Lt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&4194304|a[5]&4194304&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].settings,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function c5(i){let e,t,n;function o(r){i[148](r)}let l={};return i[22]!==void 0&&(l.ref=i[22]),e=new Tl({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=r[22],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function i0(i){let e,t,n;function o(r){i[150](r)}let l={$$slots:{default:[f5]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(l.ref=i[20].fullscreen),e=new Lt({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&16384|a[1]&2097152|a[5]&4194304&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].fullscreen,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function f5(i){let e,t;return e=new Ar({props:{click:i[14],isFullscreen:i[52]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&16384&&(l.click=n[14]),o[1]&2097152&&(l.isFullscreen=n[52]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function n0(i){let e,t,n,o;function l(a){i[154](a)}let r={supportLink:i[11],returnFocus:i[15]};return i[21]!==void 0&&(r.ref=i[21]),t=new Cr({props:r}),ge.push(()=>Ne(t,"ref",l)),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","settings-mobile svelte-17qsgob")},m(a,s){S(a,e,s),A(t,e,null),o=!0},p(a,s){let u={};s[0]&2048&&(u.supportLink=a[11]),s[0]&32768&&(u.returnFocus=a[15]),!n&&s[0]&2097152&&(n=!0,u.ref=a[21],qe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),L(t)}}}function d5(i){let e,t,n;function o(r){i[155](r)}let l={};return i[20].interactiveTimeIndicator!==void 0&&(l.ref=i[20].interactiveTimeIndicator),e=new Xr({props:l}),ge.push(()=>Ne(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&1048576&&(t=!0,s.ref=r[20].interactiveTimeIndicator,qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function m5(i){let e,t,n,o,l,r,a,s,u,f,p,h,C,g,w,b,E,v,y,I=!i[4]&&Nm(i),K=i[4]&&i[30]!=="inactive"&&Zm(i),B=i[96]&&r5(i),O=!i[4]&&i[25]&&xm(i),oe=i[41]&&$m(i);function he(W){i[147](W)}let G={className:"w-max",disabled:!i[43],$$slots:{default:[u5]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(G.ref=i[20].episodes),u=new Lt({props:G}),ge.push(()=>Ne(u,"ref",he));let X=i[38]&&t0(i),ue=i[40]&&i0(i);function j(W){i[152](W)}let z={isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]};i[20].timeline!==void 0&&(z.ref=i[20].timeline),g=new qr({props:z}),ge.push(()=>Ne(g,"ref",j));let Q=i[23]&&n0(i),$=i[101]&&d5(i);return{c(){I&&I.c(),e=M(),K&&K.c(),t=M(),n=P("div"),o=P("div"),l=P("div"),B&&B.c(),r=M(),O&&O.c(),a=M(),oe&&oe.c(),s=M(),V(u.$$.fragment),p=M(),X&&X.c(),h=M(),ue&&ue.c(),C=M(),V(g.$$.fragment),b=M(),Q&&Q.c(),E=M(),$&&$.c(),v=ut(),c(l,"class","controls svelte-17qsgob"),D(l,"mobile",!0),c(o,"class","controls-wrapper svelte-17qsgob"),D(o,"fullscreen",i[52]),c(n,"class","wrapper-bottom svelte-17qsgob"),D(n,"hidden",i[1]),D(n,"controls-hidden",!i[3]),D(n,"no-smooth",i[2]),D(n,"mobile",!0)},m(W,Y){I&&I.m(W,Y),S(W,e,Y),K&&K.m(W,Y),S(W,t,Y),S(W,n,Y),m(n,o),m(o,l),B&&B.m(l,null),m(l,r),O&&O.m(l,null),m(l,a),oe&&oe.m(l,null),m(l,s),A(u,l,null),m(l,p),X&&X.m(l,null),m(l,h),ue&&ue.m(l,null),i[151](l),m(o,C),A(g,o,null),i[153](n),S(W,b,Y),Q&&Q.m(W,Y),S(W,E,Y),$&&$.m(W,Y),S(W,v,Y),y=!0},p(W,Y){W[4]?I&&(de(),_(I,1,1,()=>{I=null}),me()):I?(I.p(W,Y),Y[0]&16&&d(I,1)):(I=Nm(W),I.c(),d(I,1),I.m(e.parentNode,e)),W[4]&&W[30]!=="inactive"?K?(K.p(W,Y),Y[0]&1073741840&&d(K,1)):(K=Zm(W),K.c(),d(K,1),K.m(t.parentNode,t)):K&&(de(),_(K,1,1,()=>{K=null}),me()),W[96]&&B.p(W,Y),!W[4]&&W[25]?O?(O.p(W,Y),Y[0]&33554448&&d(O,1)):(O=xm(W),O.c(),d(O,1),O.m(l,a)):O&&(de(),_(O,1,1,()=>{O=null}),me()),W[41]?oe?(oe.p(W,Y),Y[1]&1024&&d(oe,1)):(oe=$m(W),oe.c(),d(oe,1),oe.m(l,s)):oe&&(de(),_(oe,1,1,()=>{oe=null}),me());let ie={};Y[1]&4096&&(ie.disabled=!W[43]),Y[1]&1073745920|Y[2]&1|Y[5]&4194304&&(ie.$$scope={dirty:Y,ctx:W}),!f&&Y[0]&1048576&&(f=!0,ie.ref=W[20].episodes,qe(()=>f=!1)),u.$set(ie),W[38]?X?(X.p(W,Y),Y[1]&128&&d(X,1)):(X=t0(W),X.c(),d(X,1),X.m(l,h)):X&&(de(),_(X,1,1,()=>{X=null}),me()),W[40]?ue?(ue.p(W,Y),Y[1]&512&&d(ue,1)):(ue=i0(W),ue.c(),d(ue,1),ue.m(l,null)):ue&&(de(),_(ue,1,1,()=>{ue=null}),me());let re={};Y[0]&16&&(re.isAds=W[4]),Y[0]&32&&(re.canRewindLive=W[5]),Y[0]&16777216&&(re.isRewindableLive=W[24]),!w&&Y[0]&1048576&&(w=!0,re.ref=W[20].timeline,qe(()=>w=!1)),g.$set(re),(!y||Y[1]&2097152)&&D(o,"fullscreen",W[52]),(!y||Y[0]&2)&&D(n,"hidden",W[1]),(!y||Y[0]&8)&&D(n,"controls-hidden",!W[3]),(!y||Y[0]&4)&&D(n,"no-smooth",W[2]),W[23]?Q?(Q.p(W,Y),Y[0]&8388608&&d(Q,1)):(Q=n0(W),Q.c(),d(Q,1),Q.m(E.parentNode,E)):Q&&(de(),_(Q,1,1,()=>{Q=null}),me()),W[101]&&$.p(W,Y)},i(W){y||(d(I),d(K),d(B),d(O),d(oe),d(u.$$.fragment,W),d(X),d(ue),d(g.$$.fragment,W),d(Q),d($),y=!0)},o(W){_(I),_(K),_(B),_(O),_(oe),_(u.$$.fragment,W),_(X),_(ue),_(g.$$.fragment,W),_(Q),_($),y=!1},d(W){W&&(k(e),k(t),k(n),k(b),k(E),k(v)),I&&I.d(W),K&&K.d(W),B&&B.d(),O&&O.d(),oe&&oe.d(),L(u),X&&X.d(),ue&&ue.d(),i[151](null),L(g),i[153](null),Q&&Q.d(W),$&&$.d(W)}}}function p5(i,e,t){let n,o,l,r,a,s,u,f,p,h,C,g,w,b,E,v,y,I,K,B,O,oe,he,G,X,ue,j,z,Q,$,W,Y,ie,re,Ve,Je,Ce,{bottomHidden:Me}=e,{bottomNoSmooth:ze}=e,{showControls:$e}=e,{controlsElementRef:fe=void 0}=e,{isAds:_e=!1}=e,{canRewindLive:at}=e,{logoClickable:we}=e,{logoHidden:Fe}=e,{logoTargetUrl:ft=""}=e,{showNextPrevButtons:Ke}=e,{nextButtonActive:Xe}=e,{prevButtonActive:je}=e,{isOneVideoPlaylist:et=!1}=e,{supportLink:x}=e,{customFullscreenSupported:Oe=!0}=e,{playNextVideo:Ge}=e,{playPrevVideo:se}=e,{repeatPlaylist:le}=e,{toggleFullscreen:lt}=e,{returnFocus:be}=e,{seekToInteractive:Ue}=e,{toggleGraph:tt}=e,{playPrevChapter:dt}=e,{onDisabledPlayPrevChapterClick:bt}=e,{onDisabledSeekToInteractiveClick:Tt}=e,Qe=ot(),zt=Rn(),Vt=Dt(),yt=Qe.actions.internal.toggleMuted,ai=Qe.actions.internal.togglePlay,st=Qe.actions.internal.pause,vt=Qe.callbacks?.onAudioDoesNotExistHint,jt=Qe.callbacks?.onAudioDisabledHint,ve=Qe.playerPhase;q(i,ve,te=>t(126,O=te));let wt=Qe.state.duration$;q(i,wt,te=>t(62,Ce=te));let Mt=Qe.state.positionWithScrubbing$;q(i,Mt,te=>t(61,Je=te));let Et=Qe.state.playbackState$;q(i,Et,te=>t(121,h=te));let Ct=Qe.state.isAudioAvailable$;q(i,Ct,te=>t(51,C=te));let Ut=Qe.state.isAudioDisabled,St=Qe.state.isEnded$;q(i,St,te=>t(127,he=te));let Wi=Qe.state.isLive$;q(i,Wi,te=>t(25,v=te));let un=Qe.state.muted$;q(i,un,te=>t(54,Q=te));let ui=Qe.state.isActiveLive$;q(i,ui,te=>t(124,b=te));let ci=Qe.state.isRewindableLive$;q(i,ci,te=>t(24,E=te));let Ji=Qe.ui.scrubbingInProgress;q(i,Ji,te=>t(29,oe=te));let Vi=Qe.ui.mobileNotReportControlHidden$;q(i,Vi,te=>t(27,K=te));let xi=Qe.ui.isPictureInPictureActive$;q(i,xi,te=>t(26,I=te));let Ri=Qe.ui.pictureInPictureType$;q(i,Ri,te=>t(125,y=te));let Bi=Qe.ui.mobileUnmuteButtonExpanded;q(i,Bi,te=>t(55,$=te));let bi=Qe.ui.mobileUnmuteButtonVisible;q(i,bi,te=>t(53,z=te));let fi=Qe.ui.settingsMenuVisible;q(i,fi,te=>t(23,p=te));let di=Qe.ui.settingsMenuOpenedByKeyboard;q(i,di,te=>t(120,f=te));let vi=Qe.ui.controls,yi=Qe.actions.internal.getVideoEpisodes(),Gt=Qe.webApi.pictureInPictureApi,$i=Qe.state.chromecastState$;q(i,$i,te=>t(28,B=te));let Nt=Qe.state.crashed$;q(i,Nt,te=>t(57,Y=te));let ki=vi.disabledControls$;q(i,ki,te=>t(128,X=te));let wi=Qe.ui.startedByKeyboard$;q(i,wi,te=>t(119,u=te));let en=Qe.ads.duration;q(i,en,te=>t(60,Ve=te));let $t=Qe.ads.position;q(i,$t,te=>t(59,re=te));let ei=Qe.ads.playbackState;q(i,ei,te=>t(30,G=te));let ti=Qe.ui.isFullscreen;q(i,ti,te=>t(52,j=te));let ji=Qe.ui.playerSize;q(i,ji,te=>t(123,w=te));let Si=Qe.ui.additionalButtons$;q(i,Si,te=>t(56,W=te));let ii=Qe.actions.internal.getVideoElement,Gi=Qe.actions.internal.replayInteractive,Qt=Qe.state.isInteractive,Ci=Qe.state.isInteractiveTime$;q(i,Ci,te=>t(122,g=te));let Di=Qe.state.showInteractiveGraph,ni=Qe.state.showSeekToInteractive,mi=Qe.state.showPlayPrevChapter,At=Qe.state.showInteractiveTimeIndicator,Pi=Qe.state.graphIsOpened$;q(i,Pi,te=>t(58,ie=te));let Yt=zt.seekToInteractiveDisabledTooltip$;q(i,Yt,te=>t(129,ue=te));let pi,oi,li,_i,qi,tn,nn,Ni,Ot,Ii,qt,ri,Zt,Qi,Oi,Fi,nt,hi,Xt,He={},cn=t5(Yr,260),on=()=>Qe.actions.internal.toggleChromecast();function ln(){so({isAudioDisabled:Ut,audioDisabledHintCallback:jt,isAudioAvailable:C,audioIsNotExistHintCallback:vt})&&yt()}async function rn(){Gt?.isActive()?await Gt?.remove():await Gt?.request()}function Yi(){!Ut&&C&&bi.set(!1),ln()}let Ti=et?ai:le,Hi="",Zi=(te,eo)=>{if(!te){t(45,Hi=N("tooltip_live"));return}eo===Dm.PAUSED&&t(45,Hi=N("tooltip_play"))},Rt,zi,kn=()=>{s&&bt(pi)},_n=()=>{l&&Tt(oi)};function fn(te){i.$$.not_equal(He.volume,te)&&(He.volume=te,t(20,He))}function sn(te){i.$$.not_equal(He.chromecast,te)&&(He.chromecast=te,t(20,He))}function Xi(te){i.$$.not_equal(He.pip,te)&&(He.pip=te,t(20,He))}function dn(te){zi=te,t(22,zi)}function wn(te){i.$$.not_equal(He.vkLogo,te)&&(He.vkLogo=te,t(20,He))}function Ei(te){i.$$.not_equal(He.prevButton,te)&&(He.prevButton=te,t(20,He))}function Ui(te){i.$$.not_equal(He.playButton,te)&&(He.playButton=te,t(20,He))}function Kt(te){i.$$.not_equal(He.replayButton,te)&&(He.replayButton=te,t(20,He))}function En(te){i.$$.not_equal(He.nextButton,te)&&(He.nextButton=te,t(20,He))}function Sn(te){i.$$.not_equal(He.playPrevChapterButton,te)&&(He.playPrevChapterButton=te,t(20,He))}function An(te){i.$$.not_equal(He.interactiveGraphButton,te)&&(He.interactiveGraphButton=te,t(20,He))}function Wt(te){i.$$.not_equal(He.seekToInteractiveButton,te)&&(He.seekToInteractiveButton=te,t(20,He))}function Ln(te){i.$$.not_equal(He.volume,te)&&(He.volume=te,t(20,He))}function Mn(te){i.$$.not_equal(He.playButton,te)&&(He.playButton=te,t(20,He))}function mn(te){i.$$.not_equal(He.replayButton,te)&&(He.replayButton=te,t(20,He))}function pn(te){i.$$.not_equal(He.liveButton,te)&&(He.liveButton=te,t(20,He))}function hn(te){i.$$.not_equal(He.time,te)&&(He.time=te,t(20,He))}function gn(te){i.$$.not_equal(He.episodes,te)&&(He.episodes=te,t(20,He))}function ne(te){zi=te,t(22,zi)}function _t(te){i.$$.not_equal(He.settings,te)&&(He.settings=te,t(20,He))}function an(te){i.$$.not_equal(He.fullscreen,te)&&(He.fullscreen=te,t(20,He))}function ee(te){ge[te?"unshift":"push"](()=>{hi=te,t(44,hi)})}function mt(te){i.$$.not_equal(He.timeline,te)&&(He.timeline=te,t(20,He))}function si(te){ge[te?"unshift":"push"](()=>{fe=te,t(0,fe)})}function Nn(te){Rt=te,t(21,Rt)}function On(te){i.$$.not_equal(He.interactiveTimeIndicator,te)&&(He.interactiveTimeIndicator=te,t(20,He))}return i.$$set=te=>{"bottomHidden"in te&&t(1,Me=te.bottomHidden),"bottomNoSmooth"in te&&t(2,ze=te.bottomNoSmooth),"showControls"in te&&t(3,$e=te.showControls),"controlsElementRef"in te&&t(0,fe=te.controlsElementRef),"isAds"in te&&t(4,_e=te.isAds),"canRewindLive"in te&&t(5,at=te.canRewindLive),"logoClickable"in te&&t(6,we=te.logoClickable),"logoHidden"in te&&t(110,Fe=te.logoHidden),"logoTargetUrl"in te&&t(7,ft=te.logoTargetUrl),"showNextPrevButtons"in te&&t(8,Ke=te.showNextPrevButtons),"nextButtonActive"in te&&t(9,Xe=te.nextButtonActive),"prevButtonActive"in te&&t(10,je=te.prevButtonActive),"isOneVideoPlaylist"in te&&t(111,et=te.isOneVideoPlaylist),"supportLink"in te&&t(11,x=te.supportLink),"customFullscreenSupported"in te&&t(112,Oe=te.customFullscreenSupported),"playNextVideo"in te&&t(12,Ge=te.playNextVideo),"playPrevVideo"in te&&t(13,se=te.playPrevVideo),"repeatPlaylist"in te&&t(113,le=te.repeatPlaylist),"toggleFullscreen"in te&&t(14,lt=te.toggleFullscreen),"returnFocus"in te&&t(15,be=te.returnFocus),"seekToInteractive"in te&&t(16,Ue=te.seekToInteractive),"toggleGraph"in te&&t(17,tt=te.toggleGraph),"playPrevChapter"in te&&t(18,dt=te.playPrevChapter),"onDisabledPlayPrevChapterClick"in te&&t(114,bt=te.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in te&&t(115,Tt=te.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32&&(oi=N(ue)),i.$$.dirty[4]&16&&t(118,n=X.has("EPISODE_BUTTON")),i.$$.dirty[4]&16&&t(50,o=X.has("GRAPH_BUTTON")),i.$$.dirty[4]&16&&t(46,l=X.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[4]&16&&t(49,r=X.has("PLAY_BUTTON")),i.$$.dirty[4]&16&&t(48,a=X.has("REPLAY_BUTTON")),i.$$.dirty[4]&16&&t(47,s=X.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[3]&268435456&&t(31,li=h===Dm.PLAYING),i.$$.dirty[0]&1073741824&&t(32,_i=G==="paused"),i.$$.dirty[0]&16|i.$$.dirty[4]&8&&t(33,qi=he&&!_e&&!Qt),i.$$.dirty[0]&16|i.$$.dirty[4]&8&&t(34,tn=!he||_e),i.$$.dirty[3]&1073741824&&t(116,nn=w.width>300),i.$$.dirty[3]&1073741824&&t(35,Ni=w.width>400),i.$$.dirty[0]&536870912&&t(117,Ot=oe),i.$$.dirty[0]&469762048|i.$$.dirty[4]&2&&t(36,Ii=B!==Bm.NOT_AVAILABLE&&!(I&&y===1)&&!K&&!Qt),i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6){let te=O==="LiveWaitingStart";t(37,qt=!!Gt&&B!==Bm.CONNECTED&&!K&&(y===1&&te||!te)&&!Ot&&!Qt)}i.$$.dirty[3]&16777216&&t(38,ri=!Ot),i.$$.dirty[3]&1073872896&&t(39,Zt=!Fe&&w.width>350),i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2&&t(40,Qi=Vt.features.fullscreen&&!(I&&y===1)&&(Qt?Oe:!0)&&!Ot),i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040&&t(41,Oi=(!v||_e)&&w.width>260&&!Ot&&!(Vt.features.interactiveHideTime&&Qt)),i.$$.dirty[0]&8388616&&t(42,Fi=p||$e),i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256&&t(43,nt=!_e&&!v&&!!yi?.length&&nn&&!n&&!Ot),i.$$.dirty[0]&16777216|i.$$.dirty[4]&1&&t(19,Xt=!E||b),i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736&&cn(ii(),vi,He,$e),i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456&&Zi(Xt,h),i.$$.dirty[0]&12582912&&ol(zi,p,di),i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728&&Ro(Rt,p,f),i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864&&Zr(wi,u,He.playButton)},pi=N(Qe.state.playPrevChapterDisabledTooltip),[fe,Me,ze,$e,_e,at,we,ft,Ke,Xe,je,x,Ge,se,lt,be,Ue,tt,dt,Xt,He,Rt,zi,p,E,v,I,K,B,oe,G,li,_i,qi,tn,Ni,Ii,qt,ri,Zt,Qi,Oi,Fi,nt,hi,Hi,l,s,a,r,o,C,j,z,Q,$,W,Y,ie,re,Ve,Je,Ce,ai,st,ve,wt,Mt,Et,Ct,Ut,St,Wi,un,ui,ci,Ji,Vi,xi,Ri,Bi,bi,fi,di,yi,$i,Nt,ki,wi,en,$t,ei,ti,ji,Si,Gi,Qt,Ci,Di,ni,mi,At,Pi,Yt,on,rn,Yi,Ti,kn,_n,Fe,et,Oe,le,bt,Tt,nn,Ot,n,u,f,h,g,w,b,y,O,he,X,ue,fn,sn,Xi,dn,wn,Ei,Ui,Kt,En,Sn,An,Wt,Ln,Mn,mn,pn,hn,gn,ne,_t,an,ee,mt,si,Nn,On]}var Ou=class extends H{constructor(e){super(),U(this,e,p5,m5,F,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:110,logoTargetUrl:7,showNextPrevButtons:8,nextButtonActive:9,prevButtonActive:10,isOneVideoPlaylist:111,supportLink:11,customFullscreenSupported:112,playNextVideo:12,playPrevVideo:13,repeatPlaylist:113,toggleFullscreen:14,returnFocus:15,seekToInteractive:16,toggleGraph:17,playPrevChapter:18,onDisabledPlayPrevChapterClick:114,onDisabledSeekToInteractiveClick:115},i5,[-1,-1,-1,-1,-1,-1])}},o0=Ou;function _5(i){let e,t,n;function o(r){i[28](r)}let l={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22]};return i[0]!==void 0&&(l.controlsElementRef=i[0]),e=new Em({props:l}),ge.push(()=>Ne(e,"controlsElementRef",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a&2&&(s.bottomHidden=r[1]),a&4&&(s.bottomNoSmooth=r[2]),a&8&&(s.showControls=r[3]),a&16&&(s.isAds=r[4]),a&32&&(s.canRewindLive=r[5]),a&64&&(s.logoClickable=r[6]),a&128&&(s.logoHidden=r[7]),a&256&&(s.logoTargetUrl=r[8]),a&512&&(s.showNextPrevButtons=r[9]),a&1024&&(s.nextButtonActive=r[10]),a&2048&&(s.prevButtonActive=r[11]),a&4096&&(s.isOneVideoPlaylist=r[12]),a&8192&&(s.supportLink=r[13]),a&16384&&(s.customFullscreenSupported=r[14]),a&32768&&(s.playNextVideo=r[15]),a&65536&&(s.playPrevVideo=r[16]),a&131072&&(s.repeatPlaylist=r[17]),a&262144&&(s.toggleFullscreen=r[18]),a&524288&&(s.returnFocus=r[19]),a&1048576&&(s.seekToInteractive=r[20]),a&2097152&&(s.toggleGraph=r[21]),a&4194304&&(s.playPrevChapter=r[22]),!t&&a&1&&(t=!0,s.controlsElementRef=r[0],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function h5(i){let e,t,n;function o(r){i[27](r)}let l={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22],onDisabledPlayPrevChapterClick:i[23],onDisabledSeekToInteractiveClick:i[24]};return i[0]!==void 0&&(l.controlsElementRef=i[0]),e=new o0({props:l}),ge.push(()=>Ne(e,"controlsElementRef",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a&2&&(s.bottomHidden=r[1]),a&4&&(s.bottomNoSmooth=r[2]),a&8&&(s.showControls=r[3]),a&16&&(s.isAds=r[4]),a&32&&(s.canRewindLive=r[5]),a&64&&(s.logoClickable=r[6]),a&128&&(s.logoHidden=r[7]),a&256&&(s.logoTargetUrl=r[8]),a&512&&(s.showNextPrevButtons=r[9]),a&1024&&(s.nextButtonActive=r[10]),a&2048&&(s.prevButtonActive=r[11]),a&4096&&(s.isOneVideoPlaylist=r[12]),a&8192&&(s.supportLink=r[13]),a&16384&&(s.customFullscreenSupported=r[14]),a&32768&&(s.playNextVideo=r[15]),a&65536&&(s.playPrevVideo=r[16]),a&131072&&(s.repeatPlaylist=r[17]),a&262144&&(s.toggleFullscreen=r[18]),a&524288&&(s.returnFocus=r[19]),a&1048576&&(s.seekToInteractive=r[20]),a&2097152&&(s.toggleGraph=r[21]),a&4194304&&(s.playPrevChapter=r[22]),a&8388608&&(s.onDisabledPlayPrevChapterClick=r[23]),a&16777216&&(s.onDisabledSeekToInteractiveClick=r[24]),!t&&a&1&&(t=!0,s.controlsElementRef=r[0],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function g5(i){let e,t,n,o,l=[h5,_5],r=[];function a(s,u){return s[25]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ut()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(de(),_(r[f],1,1,()=>{r[f]=null}),me(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),r[e].d(s)}}}function b5(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:l=!1}=e,{showControls:r}=e,{controlsElementRef:a=void 0}=e,{isAds:s=!1}=e,{canRewindLive:u}=e,{logoClickable:f}=e,{logoHidden:p}=e,{logoTargetUrl:h=""}=e,{showNextPrevButtons:C}=e,{nextButtonActive:g}=e,{prevButtonActive:w}=e,{isOneVideoPlaylist:b=!1}=e,{supportLink:E}=e,{customFullscreenSupported:v=!0}=e,{playNextVideo:y}=e,{playPrevVideo:I}=e,{repeatPlaylist:K}=e,{toggleFullscreen:B}=e,{returnFocus:O=Fu}=e,{seekToInteractive:oe}=e,{toggleGraph:he}=e,{playPrevChapter:G}=e,{onDisabledPlayPrevChapterClick:X=Fu}=e,{onDisabledSeekToInteractiveClick:ue=Fu}=e,z=ot().ui.isMobile;q(i,z,W=>t(25,n=W));function Q(W){a=W,t(0,a)}function $(W){a=W,t(0,a)}return i.$$set=W=>{"bottomHidden"in W&&t(1,o=W.bottomHidden),"bottomNoSmooth"in W&&t(2,l=W.bottomNoSmooth),"showControls"in W&&t(3,r=W.showControls),"controlsElementRef"in W&&t(0,a=W.controlsElementRef),"isAds"in W&&t(4,s=W.isAds),"canRewindLive"in W&&t(5,u=W.canRewindLive),"logoClickable"in W&&t(6,f=W.logoClickable),"logoHidden"in W&&t(7,p=W.logoHidden),"logoTargetUrl"in W&&t(8,h=W.logoTargetUrl),"showNextPrevButtons"in W&&t(9,C=W.showNextPrevButtons),"nextButtonActive"in W&&t(10,g=W.nextButtonActive),"prevButtonActive"in W&&t(11,w=W.prevButtonActive),"isOneVideoPlaylist"in W&&t(12,b=W.isOneVideoPlaylist),"supportLink"in W&&t(13,E=W.supportLink),"customFullscreenSupported"in W&&t(14,v=W.customFullscreenSupported),"playNextVideo"in W&&t(15,y=W.playNextVideo),"playPrevVideo"in W&&t(16,I=W.playPrevVideo),"repeatPlaylist"in W&&t(17,K=W.repeatPlaylist),"toggleFullscreen"in W&&t(18,B=W.toggleFullscreen),"returnFocus"in W&&t(19,O=W.returnFocus),"seekToInteractive"in W&&t(20,oe=W.seekToInteractive),"toggleGraph"in W&&t(21,he=W.toggleGraph),"playPrevChapter"in W&&t(22,G=W.playPrevChapter),"onDisabledPlayPrevChapterClick"in W&&t(23,X=W.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in W&&t(24,ue=W.onDisabledSeekToInteractiveClick)},[a,o,l,r,s,u,f,p,h,C,g,w,b,E,v,y,I,K,B,O,oe,he,G,X,ue,n,z,Q,$]}var Hu=class extends H{constructor(e){super(),U(this,e,b5,g5,F,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:7,logoTargetUrl:8,showNextPrevButtons:9,nextButtonActive:10,prevButtonActive:11,isOneVideoPlaylist:12,supportLink:13,customFullscreenSupported:14,playNextVideo:15,playPrevVideo:16,repeatPlaylist:17,toggleFullscreen:18,returnFocus:19,seekToInteractive:20,toggleGraph:21,playPrevChapter:22,onDisabledPlayPrevChapterClick:23,onDisabledSeekToInteractiveClick:24})}},Jr=Hu;function v5(i){let e,t,n,o,l,r,a,s,u,f,p,h,C,g,w=i[2].default,b=Te(w,i,i[1],null),E=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],v={};for(let y=0;y<E.length;y+=1)v=ce(v,E[y]);return{c(){e=R("svg"),b&&b.c(),t=R("g"),n=R("path"),o=R("path"),l=R("defs"),r=R("filter"),a=R("feFlood"),s=R("feColorMatrix"),u=R("feOffset"),f=R("feGaussianBlur"),p=R("feColorMatrix"),h=R("feBlend"),C=R("feBlend"),c(n,"fill","#fff"),c(n,"d","M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2260_100684"),c(C,"in","SourceGraphic"),c(C,"in2","effect1_dropShadow_2260_100684"),c(C,"result","shape"),c(r,"id","a"),c(r,"width","43.996"),c(r,"height","49.5"),c(r,"x","2.5"),c(r,"y","0"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ke(e,v)},m(y,I){S(y,e,I),b&&b.m(e,null),m(e,t),m(t,n),m(t,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,C),g=!0},p(y,[I]){b&&b.p&&(!g||I&2)&&Ae(b,w,y,y[1],g?Ee(w,y[1],I,null):Le(y[1]),null),ke(e,v=Be(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},I&1&&y[0]]))},i(y){g||(d(b,y),g=!0)},o(y){_(b,y),g=!1},d(y){y&&k(e),b&&b.d(y)}}}function y5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var zu=class extends H{constructor(e){super(),U(this,e,y5,v5,F,{})}},l0=zu;function k5(i){let e,t;return e=new l0({props:{style:i[0]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function w5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Uu=class extends H{constructor(e){super(),U(this,e,w5,k5,F,{reversed:1})}},r0=Uu;function S5(i){let e,t,n,o,l,r,a,s,u,f,p,h,C,g,w,b,E=i[2].default,v=Te(E,i,i[1],null),y=[{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]],I={};for(let K=0;K<y.length;K+=1)I=ce(I,y[K]);return{c(){e=R("svg"),v&&v.c(),t=R("g"),n=R("path"),o=R("path"),l=R("defs"),r=R("clipPath"),a=R("path"),s=R("filter"),u=R("feFlood"),f=R("feColorMatrix"),p=R("feOffset"),h=R("feGaussianBlur"),C=R("feColorMatrix"),g=R("feBlend"),w=R("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(n,"d","M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22"),c(n,"clip-rule","evenodd"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"),c(t,"clip-path","url(#c)"),c(t,"filter","url(#a)"),c(a,"fill","#fff"),c(a,"d","M0 0h48v48H0z"),c(r,"id","c"),c(u,"flood-opacity","0"),c(u,"result","BackgroundImageFix"),c(f,"in","SourceAlpha"),c(f,"result","hardAlpha"),c(f,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(h,"stdDeviation","2.5"),c(C,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2260_104204"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2260_104204"),c(w,"result","shape"),c(s,"id","a"),c(s,"width","51"),c(s,"height","45"),c(s,"x","-1.5"),c(s,"y","1.5"),c(s,"color-interpolation-filters","sRGB"),c(s,"filterUnits","userSpaceOnUse"),ke(e,I)},m(K,B){S(K,e,B),v&&v.m(e,null),m(e,t),m(t,n),m(t,o),m(e,l),m(l,r),m(r,a),m(l,s),m(s,u),m(s,f),m(s,p),m(s,h),m(s,C),m(s,g),m(s,w),b=!0},p(K,[B]){v&&v.p&&(!b||B&2)&&Ae(v,E,K,K[1],b?Ee(E,K[1],B,null):Le(K[1]),null),ke(e,I=Be(y,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},B&1&&K[0]]))},i(K){b||(d(v,K),b=!0)},o(K){_(v,K),b=!1},d(K){K&&k(e),v&&v.d(K)}}}function C5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Ku=class extends H{constructor(e){super(),U(this,e,C5,S5,F,{})}},s0=Ku;function P5(i){let e,t,n,o,l,r,a,s,u,f,p,h,C,g,w,b,E,v=i[2].default,y=Te(v,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},i[0]],K={};for(let B=0;B<I.length;B+=1)K=ce(K,I[B]);return{c(){e=R("svg"),y&&y.c(),t=R("g"),n=R("path"),o=R("path"),l=R("path"),r=R("defs"),a=R("clipPath"),s=R("path"),u=R("filter"),f=R("feFlood"),p=R("feColorMatrix"),h=R("feOffset"),C=R("feGaussianBlur"),g=R("feColorMatrix"),w=R("feBlend"),b=R("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(n,"d","M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(o,"d","M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"),c(l,"stroke","#000"),c(l,"stroke-opacity",".12"),c(l,"stroke-width",".5"),c(l,"d","M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"),c(t,"clip-path","url(#c)"),c(t,"filter","url(#a)"),c(s,"fill","#fff"),c(s,"d","M0 0h48v48H0z"),c(a,"id","c"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(p,"in","SourceAlpha"),c(p,"result","hardAlpha"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(C,"stdDeviation","2.5"),c(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(w,"in2","BackgroundImageFix"),c(w,"result","effect1_dropShadow_2260_104293"),c(b,"in","SourceGraphic"),c(b,"in2","effect1_dropShadow_2260_104293"),c(b,"result","shape"),c(u,"id","a"),c(u,"width","51"),c(u,"height","51"),c(u,"x","-1.5"),c(u,"y","-1.5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),ke(e,K)},m(B,O){S(B,e,O),y&&y.m(e,null),m(e,t),m(t,n),m(t,o),m(t,l),m(e,r),m(r,a),m(a,s),m(r,u),m(u,f),m(u,p),m(u,h),m(u,C),m(u,g),m(u,w),m(u,b),E=!0},p(B,[O]){y&&y.p&&(!E||O&2)&&Ae(y,v,B,B[1],E?Ee(v,B[1],O,null):Le(B[1]),null),ke(e,K=Be(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},O&1&&B[0]]))},i(B){E||(d(y,B),E=!0)},o(B){_(y,B),E=!1},d(B){B&&k(e),y&&y.d(B)}}}function I5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Wu=class extends H{constructor(e){super(),U(this,e,I5,P5,F,{})}},a0=Wu;function T5(i){let e,t;return e=new s0({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function E5(i){let e,t;return e=new a0({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function A5(i){let e,t,n,o,l=[E5,T5],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ut()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(de(),_(r[f],1,1,()=>{r[f]=null}),me(),t=r[e],t||(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),r[e].d(s)}}}function L5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var ju=class extends H{constructor(e){super(),U(this,e,L5,A5,F,{isOff:0})}},Gu=ju;function M5(i){let e,t,n,o,l,r,a,s,u,f,p,h,C,g,w=i[2].default,b=Te(w,i,i[1],null),E=[{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]],v={};for(let y=0;y<E.length;y+=1)v=ce(v,E[y]);return{c(){e=R("svg"),b&&b.c(),t=R("g"),n=R("path"),o=R("path"),l=R("defs"),r=R("filter"),a=R("feFlood"),s=R("feColorMatrix"),u=R("feOffset"),f=R("feGaussianBlur"),p=R("feColorMatrix"),h=R("feBlend"),C=R("feBlend"),c(n,"fill","#fff"),c(n,"d","M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2260_106627"),c(C,"in","SourceGraphic"),c(C,"in2","effect1_dropShadow_2260_106627"),c(C,"result","shape"),c(r,"id","a"),c(r,"width","40.098"),c(r,"height","27.785"),c(r,"x","3.402"),c(r,"y","10.105"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ke(e,v)},m(y,I){S(y,e,I),b&&b.m(e,null),m(e,t),m(t,n),m(t,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,C),g=!0},p(y,[I]){b&&b.p&&(!g||I&2)&&Ae(b,w,y,y[1],g?Ee(w,y[1],I,null):Le(y[1]),null),ke(e,v=Be(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},I&1&&y[0]]))},i(y){g||(d(b,y),g=!0)},o(y){_(b,y),g=!1},d(y){y&&k(e),b&&b.d(y)}}}function V5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Qu=class extends H{constructor(e){super(),U(this,e,V5,M5,F,{})}},u0=Qu;function R5(i){let e,t;return e=new u0({props:{style:i[0]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function B5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Yu=class extends H{constructor(e){super(),U(this,e,B5,R5,F,{reversed:1})}},c0=Yu;function D5(i){let e,t,n,o,l,r,a,s,u,f,p,h,C,g,w=i[2].default,b=Te(w,i,i[1],null),E=[{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]],v={};for(let y=0;y<E.length;y+=1)v=ce(v,E[y]);return{c(){e=R("svg"),b&&b.c(),t=R("g"),n=R("path"),o=R("path"),l=R("defs"),r=R("filter"),a=R("feFlood"),s=R("feColorMatrix"),u=R("feOffset"),f=R("feGaussianBlur"),p=R("feColorMatrix"),h=R("feBlend"),C=R("feBlend"),c(n,"fill","#fff"),c(n,"d","M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2340_106922"),c(C,"in","SourceGraphic"),c(C,"in2","effect1_dropShadow_2340_106922"),c(C,"result","shape"),c(r,"id","a"),c(r,"width","37"),c(r,"height","37"),c(r,"x","5.5"),c(r,"y","5.5"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ke(e,v)},m(y,I){S(y,e,I),b&&b.m(e,null),m(e,t),m(t,n),m(t,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,C),g=!0},p(y,[I]){b&&b.p&&(!g||I&2)&&Ae(b,w,y,y[1],g?Ee(w,y[1],I,null):Le(y[1]),null),ke(e,v=Be(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},I&1&&y[0]]))},i(y){g||(d(b,y),g=!0)},o(y){_(b,y),g=!1},d(y){y&&k(e),b&&b.d(y)}}}function q5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var Zu=class extends H{constructor(e){super(),U(this,e,q5,D5,F,{})}},f0=Zu;function N5(i){let e,t;return e=new f0({props:{style:i[0]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function O5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Xu=class extends H{constructor(e){super(),U(this,e,O5,N5,F,{reversed:1})}},d0=Xu;function F5(i){Pe(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 m0(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,l,r,a,s,u=["RATE_DOWN","RATE_UP"].includes(i[4]),f,p=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),h,C,g,w,b,E=t&&p0(i),v=i[4]==="PAUSE"&&_0(i),y=i[4]==="PLAY"&&h0(i),I=i[4]==="REPLAY"&&g0(i),K=i[4]==="SUBTITLES_OFF"&&b0(i),B=i[4]==="SUBTITLES_ON"&&v0(i),O=u&&y0(i),oe=p&&k0(i),he=i[4]==="MUTE"&&w0(i),G=i[4]==="VOLUME"&&S0(i),X=i[5]&&C0(i);return{c(){e=P("div"),E&&E.c(),n=M(),v&&v.c(),o=M(),y&&y.c(),l=M(),I&&I.c(),r=M(),K&&K.c(),a=M(),B&&B.c(),s=M(),O&&O.c(),f=M(),oe&&oe.c(),h=M(),he&&he.c(),C=M(),G&&G.c(),g=M(),X&&X.c(),w=ut(),c(e,"class","svelte-1ad3n06")},m(ue,j){S(ue,e,j),E&&E.m(e,null),m(e,n),v&&v.m(e,null),m(e,o),y&&y.m(e,null),m(e,l),I&&I.m(e,null),m(e,r),K&&K.m(e,null),m(e,a),B&&B.m(e,null),m(e,s),O&&O.m(e,null),m(e,f),oe&&oe.m(e,null),m(e,h),he&&he.m(e,null),m(e,C),G&&G.m(e,null),S(ue,g,j),X&&X.m(ue,j),S(ue,w,j),b=!0},p(ue,j){j&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(ue[4])),t?E?(E.p(ue,j),j&16&&d(E,1)):(E=p0(ue),E.c(),d(E,1),E.m(e,n)):E&&(de(),_(E,1,1,()=>{E=null}),me()),ue[4]==="PAUSE"?v?j&16&&d(v,1):(v=_0(ue),v.c(),d(v,1),v.m(e,o)):v&&(de(),_(v,1,1,()=>{v=null}),me()),ue[4]==="PLAY"?y?j&16&&d(y,1):(y=h0(ue),y.c(),d(y,1),y.m(e,l)):y&&(de(),_(y,1,1,()=>{y=null}),me()),ue[4]==="REPLAY"?I?j&16&&d(I,1):(I=g0(ue),I.c(),d(I,1),I.m(e,r)):I&&(de(),_(I,1,1,()=>{I=null}),me()),ue[4]==="SUBTITLES_OFF"?K?j&16&&d(K,1):(K=b0(ue),K.c(),d(K,1),K.m(e,a)):K&&(de(),_(K,1,1,()=>{K=null}),me()),ue[4]==="SUBTITLES_ON"?B?j&16&&d(B,1):(B=v0(ue),B.c(),d(B,1),B.m(e,s)):B&&(de(),_(B,1,1,()=>{B=null}),me()),j&16&&(u=["RATE_DOWN","RATE_UP"].includes(ue[4])),u?O?(O.p(ue,j),j&16&&d(O,1)):(O=y0(ue),O.c(),d(O,1),O.m(e,f)):O&&(de(),_(O,1,1,()=>{O=null}),me()),j&16&&(p=["EPISODE_PREV","EPISODE_NEXT"].includes(ue[4])),p?oe?(oe.p(ue,j),j&16&&d(oe,1)):(oe=k0(ue),oe.c(),d(oe,1),oe.m(e,h)):oe&&(de(),_(oe,1,1,()=>{oe=null}),me()),ue[4]==="MUTE"?he?j&16&&d(he,1):(he=w0(ue),he.c(),d(he,1),he.m(e,C)):he&&(de(),_(he,1,1,()=>{he=null}),me()),ue[4]==="VOLUME"?G?j&16&&d(G,1):(G=S0(ue),G.c(),d(G,1),G.m(e,null)):G&&(de(),_(G,1,1,()=>{G=null}),me()),ue[5]?X?X.p(ue,j):(X=C0(ue),X.c(),X.m(w.parentNode,w)):X&&(X.d(1),X=null)},i(ue){b||(d(E),d(v),d(y),d(I),d(K),d(B),d(O),d(oe),d(he),d(G),b=!0)},o(ue){_(E),_(v),_(y),_(I),_(K),_(B),_(O),_(oe),_(he),_(G),b=!1},d(ue){ue&&(k(e),k(g),k(w)),E&&E.d(),v&&v.d(),y&&y.d(),I&&I.d(),K&&K.d(),B&&B.d(),O&&O.d(),oe&&oe.d(),he&&he.d(),G&&G.d(),X&&X.d(ue)}}}function p0(i){let e,t;return e=new r0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="FORWARD_SEEK"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function _0(i){let e,t;return e=new Lr({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function h0(i){let e,t;return e=new fl({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function g0(i){let e,t;return e=new Hr({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function b0(i){let e,t;return e=new Gu({props:{isOff:!0}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function v0(i){let e,t;return e=new Gu({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function y0(i){let e,t;return e=new c0({props:{reversed:i[4]==="RATE_UP"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="RATE_UP"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function k0(i){let e,t;return e=new d0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="EPISODE_NEXT"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function w0(i){let e,t;return e=new No({props:{volume:0}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function S0(i){let e,t;return e=new No({props:{volume:1}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function C0(i){let e,t;return{c(){e=P("span"),t=Re(i[5]),c(e,"class","hot-key-helpers-text svelte-1ad3n06")},m(n,o){S(n,e,o),m(e,t)},p(n,o){o&32&&We(t,n[5])},d(n){n&&k(e)}}}function H5(i){let e,t,n=!i[1]&&i[4]&&m0(i);return{c(){e=P("div"),n&&n.c(),c(e,"class","hot-key-helpers-container svelte-1ad3n06"),D(e,"hidden",i[1]),D(e,"hot-key-helpers-container--left",i[2]),D(e,"hot-key-helpers-container--right",i[3])},m(o,l){S(o,e,l),n&&n.m(e,null),t=!0},p(o,[l]){!o[1]&&o[4]?n?(n.p(o,l),l&18&&d(n,1)):(n=m0(o),n.c(),d(n,1),n.m(e,null)):n&&(de(),_(n,1,1,()=>{n=null}),me()),(!t||l&2)&&D(e,"hidden",o[1]),(!t||l&4)&&D(e,"hot-key-helpers-container--left",o[2]),(!t||l&8)&&D(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d()}}}function z5(i,e,t){let n,o=Se,l=()=>(o(),o=Ft(r,h=>t(6,n=h)),r);i.$$.on_destroy.push(()=>o());let{data:r}=e;l();let a,s,u,f,p;return i.$$set=h=>{"data"in h&&l(t(0,r=h.data))},i.$$.update=()=>{i.$$.dirty&64&&(t(1,a=!n),t(2,s=n?.type==="BACKWARD_SEEK"),t(3,u=n?.type==="FORWARD_SEEK"),t(4,f=n?.type),n?.t?t(5,p=N(n.t.key,{value:n.t.value||""})):t(5,p=n?.text))},[r,a,s,u,f,p,n]}var Ju=class extends H{constructor(e){super(),U(this,e,z5,H5,F,{data:0},F5)}},P0=Ju;function U5(i){Pe(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 K5(i){let e,t,n,o,l,r,a,s,u,f,p,h,C,g,w,b,E,v,y;return l=new Kn({props:{direction:"up"}}),s=new Kn({props:{direction:"up"}}),h=new Kn({props:{direction:"up"}}),w=new Kn({props:{direction:"up"}}),{c(){e=P("div"),t=P("div"),n=P("div"),o=P("div"),V(l.$$.fragment),r=M(),a=P("div"),V(s.$$.fragment),u=M(),f=P("div"),p=P("div"),V(h.$$.fragment),C=M(),g=P("div"),V(w.$$.fragment),c(o,"class","button button-up svelte-1yzc86r"),c(a,"class","button button-right svelte-1yzc86r"),c(n,"class","button-row svelte-1yzc86r"),c(p,"class","button button-left svelte-1yzc86r"),c(g,"class","button button-down svelte-1yzc86r"),c(f,"class","button-row svelte-1yzc86r"),c(t,"class","button-block svelte-1yzc86r"),c(t,"aria-hidden","true"),c(e,"class","immersive-controls svelte-1yzc86r"),c(e,"tabindex","0"),c(e,"role","button"),c(e,"aria-label",b=N("aria_label_spherical_control")),D(e,"m-shifted",i[0])},m(I,K){S(I,e,K),m(e,t),m(t,n),m(n,o),A(l,o,null),m(n,r),m(n,a),A(s,a,null),m(t,u),m(t,f),m(f,p),A(h,p,null),m(f,C),m(f,g),A(w,g,null),E=!0,v||(y=[pe(o,"mousedown",i[1]),pe(o,"mouseup",i[5]),pe(o,"mouseleave",i[5]),pe(a,"mousedown",i[3]),pe(a,"mouseup",i[5]),pe(a,"mouseleave",i[5]),pe(p,"mousedown",i[4]),pe(p,"mouseup",i[5]),pe(p,"mouseleave",i[5]),pe(g,"mousedown",i[2]),pe(g,"mouseup",i[5]),pe(g,"mouseleave",i[5]),pe(e,"keydown",i[6]),pe(e,"keyup",i[7])],v=!0)},p(I,[K]){(!E||K&1)&&D(e,"m-shifted",I[0])},i(I){E||(d(l.$$.fragment,I),d(s.$$.fragment,I),d(h.$$.fragment,I),d(w.$$.fragment,I),E=!0)},o(I){_(l.$$.fragment,I),_(s.$$.fragment,I),_(h.$$.fragment,I),_(w.$$.fragment,I),E=!1},d(I){I&&k(e),L(l),L(s),L(h),L(w),v=!1,it(y)}}}function W5(i,e,t){let{isShifted:n=!1}=e,o=ot(),l=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),r=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},s=()=>{o.actions.internal.startCameraManualRotation(1,0)},u=()=>{o.actions.internal.startCameraManualRotation(-1,0)},f=()=>(o.actions.internal.stopCameraManualRotation(),null),p=C=>{if(l.has(C.code))switch(C.preventDefault(),C.stopPropagation(),C.code){case"ArrowUp":r();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},h=C=>{l.has(C.code)&&(C.preventDefault(),C.stopPropagation(),f())};return i.$$set=C=>{"isShifted"in C&&t(0,n=C.isShifted)},[n,r,a,s,u,f,p,h]}var xu=class extends H{constructor(e){super(),U(this,e,W5,K5,F,{isShifted:0},U5)}},xr=xu;function j5(i){Pe(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 T0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function E0(i){let e,t;function n(r,a){return r[7]&&r[8]?Y5:r[5]?Q5:G5}let o=n(i,-1),l=o(i);return{c(){e=P("div"),t=P("span"),l.c(),c(t,"class","caption svelte-ovfyp5"),c(e,"class","subtitles-caption svelte-ovfyp5"),D(e,"mobile",i[3])},m(r,a){S(r,e,a),m(e,t),l.m(t,null)},p(r,a){o===(o=n(r,a))&&l?l.p(r,a):(l.d(1),l=o(r),l&&(l.c(),l.m(t,null))),a&8&&D(e,"mobile",r[3])},d(r){r&&k(e),l.d()}}}function G5(i){let e,t=kt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=A0(I0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=ut()},m(o,l){for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(o,l);S(o,e,l)},p(o,l){if(l&18){t=kt(o[1]);let r;for(r=0;r<t.length;r+=1){let a=I0(o,t,r);n[r]?n[r].p(a,l):(n[r]=A0(a),n[r].c(),n[r].m(e.parentNode,e))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&k(e),Li(n,o)}}}function Q5(i){let e,t,n=kt(i[6]),o=[];for(let l=0;l<n.length;l+=1)o[l]=M0(T0(i,n,l));return{c(){e=P("span"),t=P("span");for(let l=0;l<o.length;l+=1)o[l].c();c(t,"class","caption-segment svelte-ovfyp5"),gi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){S(l,e,r),m(e,t);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(l,r){if(r&68){n=kt(l[6]);let a;for(a=0;a<n.length;a+=1){let s=T0(l,n,a);o[a]?o[a].p(s,r):(o[a]=M0(s),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}r&16&&gi(t,"font-size",l[4]+"px")},d(l){l&&k(e),Li(o,l)}}}function Y5(i){let e,t,n=N("subtitles_auto_caption")+"",o;return{c(){e=P("span"),t=P("span"),o=Re(n),c(t,"class","caption-segment svelte-ovfyp5"),gi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){S(l,e,r),m(e,t),m(t,o)},p(l,r){r&16&&gi(t,"font-size",l[4]+"px")},d(l){l&&k(e)}}}function A0(i){let e,t,n=i[16]+"",o,l;return{c(){e=P("span"),t=P("span"),o=Re(n),l=M(),c(t,"class","caption-segment svelte-ovfyp5"),gi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,a){S(r,e,a),m(e,t),m(t,o),m(e,l)},p(r,a){a&2&&n!==(n=r[16]+"")&&We(o,n),a&16&&gi(t,"font-size",r[4]+"px")},d(r){r&&k(e)}}}function L0(i){let e=i[16]+"",t;return{c(){t=Re(e)},m(n,o){S(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&We(t,e)},d(n){n&&k(t)}}}function M0(i){let e,t=(!i[17]||i[17]<=i[2])&&L0(i);return{c(){t&&t.c(),e=ut()},m(n,o){t&&t.m(n,o),S(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=L0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&k(e),t&&t.d(n)}}}function Z5(i){let e,t=i[1].length>0&&E0(i);return{c(){e=P("div"),t&&t.c(),c(e,"class","subtitles-container svelte-ovfyp5"),D(e,"shifted",i[0]),D(e,"auto",i[5]&&!i[8])},m(n,o){S(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=E0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&D(e,"shifted",n[0]),o&288&&D(e,"auto",n[5]&&!n[8])},i:Se,o:Se,d(n){n&&k(e),t&&t.d()}}}function X5(i,e,t){let n,o,{shifted:l}=e,{captions:r}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,f=ot(),p=Dt(),h=f.state.currentSubtitle$;q(i,h,y=>t(12,n=y));let C=f.state.isAutoSubtitleCaptionVisible$;q(i,C,y=>t(8,o=y));let g,w,b,E,v;return It(()=>{v=window.setTimeout(()=>{C.set(!1)},p.autoSubtitlesTimeout)}),Hn(()=>{window.clearTimeout(v)}),i.$$set=y=>{"shifted"in y&&t(0,l=y.shifted),"captions"in y&&t(1,r=y.captions),"position"in y&&t(2,a=y.position),"playerSize"in y&&t(11,s=y.playerSize),"isMobile"in y&&t(3,u=y.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048){let y=s.width*.02;t(4,g=y<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:y)}i.$$.dirty&2&&t(5,w=r.some(y=>y.type==="timestamp")),i.$$.dirty&2&&t(6,b=r.reduce((y,{type:I,value:K})=>(I==="timestamp"?y.push({timeAppeared:Number(K),value:""}):y.length===0?y.push({value:String(K)}):y[y.length-1].value=String(K),y),[])),i.$$.dirty&4096&&t(7,E=!!n.isAuto)},[l,r,a,u,g,w,b,E,o,h,C,s,n]}var $u=class extends H{constructor(e){super(),U(this,e,X5,Z5,F,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},j5)}},$r=$u;function J5(i){Pe(i,"svelte-1o62kpz",".wrapper.svelte-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.svelte-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.svelte-1o62kpz{width:50px;height:50px}.text.svelte-1o62kpz{margin-top:20px}")}function V0(i){let e,t,n;return{c(){e=P("div"),t=Re("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Re(i[1]),c(e,"class","text svelte-1o62kpz")},m(o,l){S(o,e,l),m(e,t),m(e,n)},p(o,l){l&2&&We(n,o[1])},d(o){o&&k(e)}}}function x5(i){let e,t,n,o,l,r,a=i[1]&&V0(i);return{c(){e=P("div"),t=P("div"),t.innerHTML='<svg class="icon svelte-1o62kpz" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=M(),a&&a.c(),c(t,"class","icon_wrapper svelte-1o62kpz"),c(e,"class","wrapper svelte-1o62kpz"),c(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${i[0]||""}')`)},m(s,u){S(s,e,u),m(e,t),m(e,n),a&&a.m(e,null),l||(r=pe(e,"click",i[2]),l=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=V0(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&o!==(o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${s[0]||""}')`)&&c(e,"style",o)},i:Se,o:Se,d(s){s&&k(e),a&&a.d(),l=!1,r()}}}function $5(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function l(r){Pn.call(this,i,r)}return i.$$set=r=>{"thumbUrl"in r&&t(0,n=r.thumbUrl),"chromecastDeviceName"in r&&t(1,o=r.chromecastDeviceName)},[n,o,l]}var ec=class extends H{constructor(e){super(),U(this,e,$5,x5,F,{thumbUrl:0,chromecastDeviceName:1},J5)}},es=ec;function e6(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function t6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var tc=class extends H{constructor(e){super(),U(this,e,t6,e6,F,{})}},R0=tc;function i6(i){Pe(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 n6(i){let e,t,n;return t=new R0({}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","container svelte-13zpvm8")},m(o,l){S(o,e,l),A(t,e,null),n=!0},p:Se,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}var ic=class extends H{constructor(e){super(),U(this,e,null,n6,F,{},i6)}},ts=ic;function o6(i){Pe(i,"svelte-17wno3",".container.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:cover;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.svelte-17wno3.svelte-17wno3{opacity:0;visibility:hidden}.playButton.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.svelte-17wno3:hover .playButtonBackground.svelte-17wno3{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.svelte-17wno3 svg{transform:scale(2)}")}function l6(i){let e,t,n,o,l,r,a,s,u,f;return l=new fl({}),{c(){e=P("div"),t=P("div"),n=P("div"),o=M(),V(l.$$.fragment),c(n,"class","playButtonBackground svelte-17wno3"),c(t,"class","playButton svelte-17wno3"),c(t,"tabindex","0"),c(t,"role","button"),c(t,"aria-label",r=N("tooltip_play")),c(e,"class","container svelte-17wno3"),c(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),D(e,"hidden",i[1])},m(p,h){S(p,e,h),m(e,t),m(t,n),m(t,o),A(l,t,null),s=!0,u||(f=[pe(t,"keydown",i[3]),pe(e,"click",rt(function(){Ai(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(p,[h]){i=p,(!s||h&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&c(e,"style",a),(!s||h&2)&&D(e,"hidden",i[1])},i(p){s||(d(l.$$.fragment,p),s=!0)},o(p){_(l.$$.fragment,p),s=!1},d(p){p&&k(e),L(l),u=!1,it(f)}}}function r6(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:l}=e,a=ot().ui.startedByKeyboard$,s=u=>{let f=u.code;["Enter","Space"].includes(f)&&(u.stopPropagation(),u.preventDefault(),a.set(!0),l())};return i.$$set=u=>{"thumbUrl"in u&&t(0,n=u.thumbUrl),"hidden"in u&&t(1,o=u.hidden),"startVideo"in u&&t(2,l=u.startVideo)},[n,o,l,s]}var nc=class extends H{constructor(e){super(),U(this,e,r6,l6,F,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},o6)}get handlePressKey(){return this.$$.ctx[3]}},is=nc;function s6(i){Pe(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 a6(i){let e,t;return{c(){e=P("div"),t=Re(i[0]),c(e,"class","title svelte-1bcvcf2"),D(e,"hidden",i[1])},m(n,o){C(n,e,o),m(e,t)},p(n,[o]){o&1&&We(t,n[0]),o&2&&D(e,"hidden",n[1])},i:Se,o:Se,d(n){n&&k(e)}}}function u6(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=l=>{"title"in l&&t(0,n=l.title),"isHidden"in l&&t(1,o=l.isHidden)},[n,o]}var oc=class extends H{constructor(e){super(),U(this,e,u6,a6,F,{title:0,isHidden:1},s6)}},B0=oc;function c6(i){Pe(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 D0(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("span"),n=Re(i[0]),o=M(),l=P("span"),l.textContent=`${N("waiting_live_day_value")}`,r=M(),a=P("span"),a.textContent=`${N("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){C(s,e,u),m(e,t),m(t,n),m(e,o),m(e,l),C(s,r,u),C(s,a,u)},p(s,u){u&1&&We(n,s[0])},d(s){s&&(k(e),k(r),k(a))}}}function q0(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("span"),n=Re(i[1]),o=M(),l=P("span"),l.textContent=`${N("waiting_live_hour_value")}`,r=M(),a=P("span"),a.textContent=`${N("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){C(s,e,u),m(e,t),m(t,n),m(e,o),m(e,l),C(s,r,u),C(s,a,u)},p(s,u){u&2&&We(n,s[1])},d(s){s&&(k(e),k(r),k(a))}}}function N0(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("span"),n=Re(i[2]),o=M(),l=P("span"),l.textContent=`${N("waiting_live_minute_value")}`,r=M(),a=P("span"),a.textContent=`${N("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){C(s,e,u),m(e,t),m(t,n),m(e,o),m(e,l),C(s,r,u),C(s,a,u)},p(s,u){u&4&&We(n,s[2])},d(s){s&&(k(e),k(r),k(a))}}}function O0(i){let e,t,n,o,l;return{c(){e=P("div"),t=P("span"),n=Re(i[3]),o=M(),l=P("span"),l.textContent=`${N("waiting_live_second_value")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg")},m(r,a){C(r,e,a),m(e,t),m(t,n),m(e,o),m(e,l)},p(r,a){a&8&&We(n,r[3])},d(r){r&&k(e)}}}function f6(i){let e,t,n,o,l=i[0]&&D0(i),r=i[1]&&q0(i),a=i[2]&&N0(i),s=i[3]&&O0(i);return{c(){e=P("div"),l&&l.c(),t=M(),r&&r.c(),n=M(),a&&a.c(),o=M(),s&&s.c(),c(e,"class","timer__container svelte-1qpxtfg")},m(u,f){C(u,e,f),l&&l.m(e,null),m(e,t),r&&r.m(e,null),m(e,n),a&&a.m(e,null),m(e,o),s&&s.m(e,null)},p(u,[f]){u[0]?l?l.p(u,f):(l=D0(u),l.c(),l.m(e,t)):l&&(l.d(1),l=null),u[1]?r?r.p(u,f):(r=q0(u),r.c(),r.m(e,n)):r&&(r.d(1),r=null),u[2]?a?a.p(u,f):(a=N0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,f):(s=O0(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:Se,o:Se,d(u){u&&k(e),l&&l.d(),r&&r.d(),a&&a.d(),s&&s.d()}}}function d6(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,l,r,a,s,u,f=S=>String(S).padStart(2,"0"),p=S=>{let g=Math.floor(S/86400);g&&(S-=g*86400,t(0,l=f(g)));let w=Math.floor(S/3600);t(1,r=f(w));let b=Math.floor(S/60)%60;t(2,a=f(b));let E=S%60;t(3,s=f(E))},h=()=>{let S=Math.floor(Date.now()/1e3),g=n-S;p(g),g>=1?u=requestAnimationFrame(h):o()};return It(()=>{u=requestAnimationFrame(h)}),zn(()=>{cancelAnimationFrame(u)}),i.$$set=S=>{"startTime"in S&&t(4,n=S.startTime),"onTimerOver"in S&&t(5,o=S.onTimerOver)},[l,r,a,s,n,o]}var lc=class extends H{constructor(e){super(),U(this,e,d6,f6,F,{startTime:4,onTimerOver:5},c6)}},F0=lc;function m6(i){let e,t,n,o,l,r,a=i[2].default,s=Te(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},i[0]],f={};for(let p=0;p<u.length;p+=1)f=ue(f,u[p]);return{c(){e=R("svg"),s&&s.c(),t=R("path"),n=R("path"),o=R("path"),l=R("path"),c(t,"fill","#fefffe"),c(t,"d","M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5"),pi(t,"opacity",".965"),c(n,"fill","#fefffe"),c(n,"d","M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82"),pi(n,"opacity",".965"),c(o,"fill","#fefffe"),c(o,"d","M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84"),pi(o,"opacity",".985"),c(l,"fill","#fefffe"),c(l,"d","M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54"),pi(l,"opacity",".986"),ye(e,f)},m(p,h){C(p,e,h),s&&s.m(e,null),m(e,t),m(e,n),m(e,o),m(e,l),r=!0},p(p,[h]){s&&s.p&&(!r||h&2)&&Ae(s,a,p,p[1],r?Ee(a,p[1],h,null):Le(p[1]),null),ye(e,f=Be(u,[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},h&1&&p[0]]))},i(p){r||(d(s,p),r=!0)},o(p){_(s,p),r=!1},d(p){p&&k(e),s&&s.d(p)}}}function p6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var rc=class extends H{constructor(e){super(),U(this,e,p6,m6,F,{})}},H0=rc;function _6(i){Pe(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 h6(i){let e,t,n,o,l;return o=new F0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=P("div"),t=P("span"),t.textContent=`${N("waiting_live_timer_title")}`,n=M(),V(o.$$.fragment),c(t,"class","timer__title svelte-15pewff"),c(e,"class","waiting-timer timer svelte-15pewff")},m(r,a){C(r,e,a),m(e,t),m(e,n),A(o,e,null),l=!0},p(r,a){let s={};a&2&&(s.startTime=r[1]||0),a&4&&(s.onTimerOver=r[3]),o.$set(s)},i(r){l||(d(o.$$.fragment,r),l=!0)},o(r){_(o.$$.fragment,r),l=!1},d(r){r&&k(e),L(o)}}}function g6(i){let e,t,n,o,l,r;return n=new H0({}),{c(){e=P("div"),t=P("div"),V(n.$$.fragment),o=M(),l=P("span"),l.textContent=`${N("waiting_live_upcoming_title")}`,c(t,"class","upcoming-icon svelte-15pewff"),c(l,"class","upcoming__title svelte-15pewff"),c(e,"class","upcoming svelte-15pewff")},m(a,s){C(a,e,s),m(e,t),A(n,t,null),m(e,o),m(e,l),r=!0},p:Se,i(a){r||(d(n.$$.fragment,a),r=!0)},o(a){_(n.$$.fragment,a),r=!1},d(a){a&&k(e),L(n)}}}function b6(i){let e,t,n,o,l,r=[g6,h6],a=[];function s(u,f){return u[2]?0:1}return t=s(i,-1),n=a[t]=r[t](i),{c(){e=P("div"),n.c(),c(e,"class","waiting-container svelte-15pewff"),c(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,f){C(u,e,f),a[t].m(e,null),l=!0},p(u,[f]){let p=t;t=s(u,f),t===p?a[t].p(u,f):(me(),_(a[p],1,1,()=>{a[p]=null}),pe(),n=a[t],n?n.p(u,f):(n=a[t]=r[t](u),n.c()),d(n,1),n.m(e,null)),(!l||f&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&c(e,"style",o)},i(u){l||(d(n),l=!0)},o(u){_(n),l=!1},d(u){u&&k(e),a[t].d()}}}function v6(i,e,t){let n,{thumbUrl:o}=e,{startTime:l}=e,r=()=>t(2,n=!0);return i.$$set=a=>{"thumbUrl"in a&&t(0,o=a.thumbUrl),"startTime"in a&&t(1,l=a.startTime)},i.$$.update=()=>{i.$$.dirty&2&&t(2,n=l===void 0||l<Math.floor(Date.now()/1e3))},[o,l,n,r]}var sc=class extends H{constructor(e){super(),U(this,e,v6,b6,F,{thumbUrl:0,startTime:1},_6)}},ns=sc;function y6(i){Pe(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,l,r,a,s;return n=new ul({props:{style:"position: static; transform: translate(0, 0)"}}),{c(){e=P("div"),t=P("div"),V(n.$$.fragment),o=M(),l=P("p"),r=Re(i[1]),c(l,"class","waiting-title svelte-xvqwsa"),c(t,"class","waiting-caption svelte-xvqwsa"),c(e,"class","waiting-container svelte-xvqwsa"),c(e,"style",a=`background-image: url('${i[0]}')`)},m(u,f){C(u,e,f),m(e,t),A(n,t,null),m(t,o),m(t,l),m(l,r),s=!0},p(u,[f]){(!s||f&2)&&We(r,u[1]),(!s||f&1&&a!==(a=`background-image: url('${u[0]}')`))&&c(e,"style",a)},i(u){s||(d(n.$$.fragment,u),s=!0)},o(u){_(n.$$.fragment,u),s=!1},d(u){u&&k(e),L(n)}}}function w6(i,e,t){let{thumbUrl:n=""}=e,{kind:o}=e,l;return i.$$set=r=>{"thumbUrl"in r&&t(0,n=r.thumbUrl),"kind"in r&&t(2,o=r.kind)},i.$$.update=()=>{if(i.$$.dirty&4){let r={recover:N("waiting_live_recover_title"),record:N("waiting_record_title")};t(1,l=r[o]||"")}},[n,l,o]}var ac=class extends H{constructor(e){super(),U(this,e,w6,k6,F,{thumbUrl:0,kind:2},y6)}},pl=ac;var{window:C6}=wo;function P6(i){Pe(i,"svelte-12e19rp",".player-wrapper.svelte-12e19rp{position:absolute;width:100%;height:100%}.player-wrapper.svelte-12e19rp .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-12e19rp{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-12e19rp,.video-container.svelte-12e19rp,.ads-container.svelte-12e19rp{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-12e19rp{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-12e19rp{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-12e19rp{transition:none}.nocursor.svelte-12e19rp{cursor:none}.ads-container.svelte-12e19rp{z-index:var(--ads-container-z-index);background:var(--black)}")}function U0(i){let e,t;return e=new ns({props:{thumbUrl:i[3],startTime:i[4]?.startTime}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[0]&16&&(l.startTime=n[4]?.startTime),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function K0(i){let e,t;return e=new pl({props:{kind:"recover",thumbUrl:i[3]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function W0(i){let e,t;return e=new pl({props:{kind:"record",thumbUrl:i[3]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function j0(i){let e,t,n;return t=new ur({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","ads-container svelte-12e19rp"),D(e,"hidden",i[38]!=="ads")},m(o,l){C(o,e,l),A(t,e,null),n=!0},p(o,l){let r={};l[0]&256&&(r.adsSlotId=o[8]),l[0]&512&&(r.adsParams=o[9]),l[0]&1024&&(r.adsPreviewParam=o[10]),l[0]&2048&&(r.duration=o[11]),t.$set(r),(!n||l[1]&128)&&D(e,"hidden",o[38]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function G0(i){let e,t;return e=new hd({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&262144&&(l.title=n[18]),o[0]&524288&&(l.thumb=n[19]),o[0]&8388608&&(l.playNextVideo=n[23]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Q0(i){let e,t;return e=new B0({props:{title:i[2],isHidden:!i[36]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.title=n[2]),o[1]&32&&(l.isHidden=!n[36]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Y0(i){let e,t;return e=new xr({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[1]&160&&(l.isShifted=n[38]==="video"&&n[36]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Z0(i){let e,t,n;return t=new $l({props:{"aria-label":N("video360")}}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","spherical-video-icon svelte-12e19rp")},m(o,l){C(o,e,l),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function X0(i){let e,t;return e=new es({props:{thumbUrl:i[3],chromecastDeviceName:i[54]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[1]&8388608&&(l.chromecastDeviceName=n[54]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function J0(i){let e,t;return e=new $r({props:{shifted:i[36],captions:i[56],position:i[57],playerSize:i[34]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[1]&32&&(l.shifted=n[36]),o[1]&33554432&&(l.captions=n[56]),o[1]&67108864&&(l.position=n[57]),o[1]&8&&(l.playerSize=n[34]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function x0(i){let e,t,n,o,l;return t=new ts({}),{c(){e=P("div"),V(t.$$.fragment)},m(r,a){C(r,e,a),A(t,e,null),n=!0,o||(l=[_e(e,"contextmenu",Ht(i[108])),_e(e,"click",ot(i[119]))],o=!0)},p:Se,i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){_(t.$$.fragment,r),n=!1},d(r){r&&k(e),L(t),o=!1,tt(l)}}}function $0(i){let e,t,n;function o(r){i[158](r)}let l={bottomHidden:i[38]==="thumb"||i[38]==="LiveWaitingStart"||i[38]==="LiveWaitingRecover"||i[38]==="LiveWaitingRecord",bottomNoSmooth:i[50],showControls:i[36],isAds:i[38]==="ads",canRewindLive:i[6]&&i[58]!==0,logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[14],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],supportLink:i[21],customFullscreenSupported:op,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[106],returnFocus:i[157],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};return i[41]!==void 0&&(l.controlsElementRef=i[41]),e=new Jr({props:l}),be.push(()=>Oe(e,"controlsElementRef",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&128&&(s.bottomHidden=r[38]==="thumb"||r[38]==="LiveWaitingStart"||r[38]==="LiveWaitingRecover"||r[38]==="LiveWaitingRecord"),a[1]&524288&&(s.bottomNoSmooth=r[50]),a[1]&32&&(s.showControls=r[36]),a[1]&128&&(s.isAds=r[38]==="ads"),a[0]&64|a[1]&134217728&&(s.canRewindLive=r[6]&&r[58]!==0),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&16384&&(s.logoTargetUrl=r[14]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&8388608&&(s.playNextVideo=r[23]),a[0]&16777216&&(s.playPrevVideo=r[24]),a[0]&33554432&&(s.repeatPlaylist=r[25]),a[1]&131072&&(s.returnFocus=r[157]),a[0]&67108864&&(s.seekToInteractive=r[26]),a[0]&134217728&&(s.toggleGraph=r[27]),a[0]&268435456&&(s.playPrevChapter=r[28]),!t&&a[1]&1024&&(t=!0,s.controlsElementRef=r[41],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function ep(i){let e,t;return e=new ul({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function tp(i){let e,t;return e=new Id({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function ip(i){let e,t;return e=new hr({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function np(i){let e,t,n,o,l,r,a,s,u,f,p,h,S,g,w,b,E,v,y,I,K,B,O,ne,ge;e=new is({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let G=i[38]==="LiveWaitingStart"&&U0(i),X=i[38]==="LiveWaitingRecover"&&K0(i),ae=i[38]==="LiveWaitingRecord"&&W0(i),j=i[7]&&i[22]&&j0(i),z=i[31]&&i[18]&&i[19]&&G0(i),Q=i[44]&&Q0(i),$=i[49]&&Y0(i),W=i[53]&&Z0(i),Y=i[39]&&X0(i),ie=i[55].value!=="off"&&J0(i),le=i[37]&&x0(i),Ve=i[22]&&$0(i);w=new fr({props:{isLive:i[59],isHidden:!i[43],isPlaying:i[51],position:i[57],duration:i[60]}}),E=new P0({props:{data:i[103]}});function Xe(ce){i[160](ce)}let Ce={supportLink:i[21],returnFocus:i[159],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(Ce.menuElementRef=i[32]),y=new Xf({props:Ce}),be.push(()=>Oe(y,"menuElementRef",Xe));let Me=i[42]&&ep(i),ze=i[62]&&tp(i),$e=i[63]&&ip(i);return{c(){V(e.$$.fragment),t=M(),G&&G.c(),n=M(),X&&X.c(),o=M(),ae&&ae.c(),l=M(),j&&j.c(),r=M(),z&&z.c(),a=M(),Q&&Q.c(),s=M(),$&&$.c(),u=M(),W&&W.c(),f=M(),Y&&Y.c(),p=M(),ie&&ie.c(),h=M(),le&&le.c(),S=M(),Ve&&Ve.c(),g=M(),V(w.$$.fragment),b=M(),V(E.$$.fragment),v=M(),V(y.$$.fragment),K=M(),Me&&Me.c(),B=M(),ze&&ze.c(),O=M(),$e&&$e.c(),ne=ut()},m(ce,he){A(e,ce,he),C(ce,t,he),G&&G.m(ce,he),C(ce,n,he),X&&X.m(ce,he),C(ce,o,he),ae&&ae.m(ce,he),C(ce,l,he),j&&j.m(ce,he),C(ce,r,he),z&&z.m(ce,he),C(ce,a,he),Q&&Q.m(ce,he),C(ce,s,he),$&&$.m(ce,he),C(ce,u,he),W&&W.m(ce,he),C(ce,f,he),Y&&Y.m(ce,he),C(ce,p,he),ie&&ie.m(ce,he),C(ce,h,he),le&&le.m(ce,he),C(ce,S,he),Ve&&Ve.m(ce,he),C(ce,g,he),A(w,ce,he),C(ce,b,he),A(E,ce,he),C(ce,v,he),A(y,ce,he),C(ce,K,he),Me&&Me.m(ce,he),C(ce,B,he),ze&&ze.m(ce,he),C(ce,O,he),$e&&$e.m(ce,he),C(ce,ne,he),ge=!0},p(ce,he){let at={};he[0]&32|he[1]&192&&(at.hidden=ce[38]!=="thumb"||ce[37]||ce[92]&&ce[5]),he[0]&8&&(at.thumbUrl=ce[3]),he[0]&536870912&&(at.startVideo=ce[29]),e.$set(at),ce[38]==="LiveWaitingStart"?G?(G.p(ce,he),he[1]&128&&d(G,1)):(G=U0(ce),G.c(),d(G,1),G.m(n.parentNode,n)):G&&(me(),_(G,1,1,()=>{G=null}),pe()),ce[38]==="LiveWaitingRecover"?X?(X.p(ce,he),he[1]&128&&d(X,1)):(X=K0(ce),X.c(),d(X,1),X.m(o.parentNode,o)):X&&(me(),_(X,1,1,()=>{X=null}),pe()),ce[38]==="LiveWaitingRecord"?ae?(ae.p(ce,he),he[1]&128&&d(ae,1)):(ae=W0(ce),ae.c(),d(ae,1),ae.m(l.parentNode,l)):ae&&(me(),_(ae,1,1,()=>{ae=null}),pe()),ce[7]&&ce[22]?j?(j.p(ce,he),he[0]&4194432&&d(j,1)):(j=j0(ce),j.c(),d(j,1),j.m(r.parentNode,r)):j&&(me(),_(j,1,1,()=>{j=null}),pe()),ce[31]&&ce[18]&&ce[19]?z?(z.p(ce,he),he[0]&786432|he[1]&1&&d(z,1)):(z=G0(ce),z.c(),d(z,1),z.m(a.parentNode,a)):z&&(me(),_(z,1,1,()=>{z=null}),pe()),ce[44]?Q?(Q.p(ce,he),he[1]&8192&&d(Q,1)):(Q=Q0(ce),Q.c(),d(Q,1),Q.m(s.parentNode,s)):Q&&(me(),_(Q,1,1,()=>{Q=null}),pe()),ce[49]?$?($.p(ce,he),he[1]&262144&&d($,1)):($=Y0(ce),$.c(),d($,1),$.m(u.parentNode,u)):$&&(me(),_($,1,1,()=>{$=null}),pe()),ce[53]?W?he[1]&4194304&&d(W,1):(W=Z0(ce),W.c(),d(W,1),W.m(f.parentNode,f)):W&&(me(),_(W,1,1,()=>{W=null}),pe()),ce[39]?Y?(Y.p(ce,he),he[1]&256&&d(Y,1)):(Y=X0(ce),Y.c(),d(Y,1),Y.m(p.parentNode,p)):Y&&(me(),_(Y,1,1,()=>{Y=null}),pe()),ce[55].value!=="off"?ie?(ie.p(ce,he),he[1]&16777216&&d(ie,1)):(ie=J0(ce),ie.c(),d(ie,1),ie.m(h.parentNode,h)):ie&&(me(),_(ie,1,1,()=>{ie=null}),pe()),ce[37]?le?(le.p(ce,he),he[1]&64&&d(le,1)):(le=x0(ce),le.c(),d(le,1),le.m(S.parentNode,S)):le&&(me(),_(le,1,1,()=>{le=null}),pe()),ce[22]?Ve?(Ve.p(ce,he),he[0]&4194304&&d(Ve,1)):(Ve=$0(ce),Ve.c(),d(Ve,1),Ve.m(g.parentNode,g)):Ve&&(me(),_(Ve,1,1,()=>{Ve=null}),pe());let we={};he[1]&268435456&&(we.isLive=ce[59]),he[1]&4096&&(we.isHidden=!ce[43]),he[1]&1048576&&(we.isPlaying=ce[51]),he[1]&67108864&&(we.position=ce[57]),he[1]&536870912&&(we.duration=ce[60]),w.$set(we);let Fe={};he[0]&2097152&&(Fe.supportLink=ce[21]),he[1]&131072&&(Fe.returnFocus=ce[159]),he[1]&4&&(Fe.visible=ce[33]),he[1]&512&&(Fe.playerContainerRef=ce[40]),he[1]&1024&&(Fe.controlsContainerRef=ce[41]),he[1]&1073741824&&(Fe.position=ce[61]),!I&&he[1]&2&&(I=!0,Fe.menuElementRef=ce[32],Ne(()=>I=!1)),y.$set(Fe),ce[42]?Me?he[1]&2048&&d(Me,1):(Me=ep(ce),Me.c(),d(Me,1),Me.m(B.parentNode,B)):Me&&(me(),_(Me,1,1,()=>{Me=null}),pe()),ce[62]?ze?he[2]&1&&d(ze,1):(ze=tp(ce),ze.c(),d(ze,1),ze.m(O.parentNode,O)):ze&&(me(),_(ze,1,1,()=>{ze=null}),pe()),ce[63]?$e?he[2]&2&&d($e,1):($e=ip(ce),$e.c(),d($e,1),$e.m(ne.parentNode,ne)):$e&&(me(),_($e,1,1,()=>{$e=null}),pe())},i(ce){ge||(d(e.$$.fragment,ce),d(G),d(X),d(ae),d(j),d(z),d(Q),d($),d(W),d(Y),d(ie),d(le),d(Ve),d(w.$$.fragment,ce),d(E.$$.fragment,ce),d(y.$$.fragment,ce),d(Me),d(ze),d($e),ge=!0)},o(ce){_(e.$$.fragment,ce),_(G),_(X),_(ae),_(j),_(z),_(Q),_($),_(W),_(Y),_(ie),_(le),_(Ve),_(w.$$.fragment,ce),_(E.$$.fragment,ce),_(y.$$.fragment,ce),_(Me),_(ze),_($e),ge=!1},d(ce){ce&&(k(t),k(n),k(o),k(l),k(r),k(a),k(s),k(u),k(f),k(p),k(h),k(S),k(g),k(b),k(v),k(K),k(B),k(O),k(ne)),L(e,ce),G&&G.d(ce),X&&X.d(ce),ae&&ae.d(ce),j&&j.d(ce),z&&z.d(ce),Q&&Q.d(ce),$&&$.d(ce),W&&W.d(ce),Y&&Y.d(ce),ie&&ie.d(ce),le&&le.d(ce),Ve&&Ve.d(ce),L(w,ce),L(E,ce),L(y,ce),Me&&Me.d(ce),ze&&ze.d(ce),$e&&$e.d(ce)}}}function I6(i){let e,t,n,o,l=i[52],r,a,s,u,f=np(i);return{c(){e=P("div"),t=P("div"),o=M(),f.c(),r=ut(),c(t,"class","video-container svelte-12e19rp"),c(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),c(t,"data-testid","video-container"),c(t,"data-is-playing",i[51]),D(t,"fast-rotate",!i[1].isSmoothVideoRotate),c(e,"class","video-wrapper svelte-12e19rp"),D(e,"hidden",i[38]!=="video"),D(e,"nocursor",i[45])},m(p,h){C(p,e,h),m(e,t),i[156](t),C(p,o,h),f.m(p,h),C(p,r,h),a=!0,s||(u=[_e(e,"contextmenu",Ht(i[108])),_e(e,"mousedown",Ht(i[113])),_e(e,"mouseup",Ht(i[114])),_e(e,"click",Ht(i[116])),_e(e,"dblclick",Ht(i[115]))],s=!0)},p(p,h){(!a||h[1]&32784&&n!==(n=`transform: rotate(${p[35]}deg) scale(${p[46]})`))&&c(t,"style",n),(!a||h[1]&1048576)&&c(t,"data-is-playing",p[51]),(!a||h[0]&2)&&D(t,"fast-rotate",!p[1].isSmoothVideoRotate),(!a||h[1]&128)&&D(e,"hidden",p[38]!=="video"),(!a||h[1]&16384)&&D(e,"nocursor",p[45]),h[1]&2097152&&F(l,l=p[52])?(me(),_(f,1,1,Se),pe(),f=np(p),f.c(),d(f,1),f.m(r.parentNode,r)):f.p(p,h)},i(p){a||(d(f),a=!0)},o(p){_(f),a=!1},d(p){p&&(k(e),k(o),k(r)),i[156](null),f.d(p),s=!1,tt(u)}}}function T6(i){let e,t,n,o,l,r,a,s={toggleFullscreen:i[106],hideContextMenu:i[107],showHotKeyHelpers:i[117],showKeyMap:i[118],isAds:i[38]==="ads",fakePlayButtonHandler:i[47]?i[105]:void 0,$$slots:{default:[I6]},$$scope:{ctx:i}};return t=new gd({props:s}),i[161](t),{c(){e=P("div"),V(t.$$.fragment),n=M(),o=P("div"),c(o,"class","overlay-container"),c(e,"class","player-wrapper svelte-12e19rp")},m(u,f){C(u,e,f),A(t,e,null),m(e,n),m(e,o),i[162](o),i[163](e),l=!0,r||(a=[_e(C6,"blur",i[107]),_e(e,"mouseenter",i[109]),_e(e,"mouseleave",i[111]),_e(e,"mousemove",i[112]),_e(e,"click",i[120],!0),_e(e,"focusin",i[110],!0)],r=!0)},p(u,f){let p={};f[1]&128&&(p.isAds=u[38]==="ads"),f[1]&65536&&(p.fakePlayButtonHandler=u[47]?u[105]:void 0),f[0]&1073741823|f[1]&2147418111|f[2]&3|f[6]&16&&(p.$$scope={dirty:f,ctx:u}),t.$set(p)},i(u){l||(d(t.$$.fragment,u),l=!0)},o(u){_(t.$$.fragment,u),l=!1},d(u){u&&k(e),i[161](null),L(t),i[162](null),i[163](null),r=!1,tt(a)}}}var op=!0;function cc(i){return i?i.offsetTop+cc(i.offsetParent):0}function lp(i){return i?i.offsetLeft+lp(i.offsetParent):0}function E6(i,e,t){let n,o,l,r,a,s,u,f,p,h,S,g,w,b,E,v,y,I,K,B,O,ne,ge,G,X,ae,j,z,Q,$,W,Y,ie,le,Ve,Xe,Ce,Me,ze,$e,ce,he,at,{store:we}=e,{uiConfig:Fe}=e,{title:ct}=e,{thumbUrl:je}=e,{videoContainer:Ke}=e,{interactiveContainer:Ze}=e,{live:xe}=e,{autoplay:x}=e,{canRewindLive:qe}=e,{showAds:He}=e,{adsSlotId:fe=void 0}=e,{adsParams:re=void 0}=e,{adsPreviewParam:nt=void 0}=e,{duration:de=void 0}=e,{logoClickable:lt}=e,{logoHidden:rt}=e,{logoTargetUrl:dt=""}=e,{showNextPrevButtons:vt=!1}=e,{nextButtonActive:Tt=!1}=e,{prevButtonActive:Ge=!1}=e,{endScreenVideoTitle:zt=void 0}=e,{endScreenVideoThumb:Rt=void 0}=e,{isOneVideoPlaylist:kt=!1}=e,{supportLink:si}=e,{shadowRootContainer:st=void 0}=e,{outerContainerRef:yt=void 0}=e,{playerStarted:ke=!1}=e,{fullScreenTarget:_t=void 0}=e,{showMiniTimer:wt=!1}=e,{playNextVideo:Zt=uc}=e,{playPrevVideo:Ct=uc}=e,{repeatPlaylist:Ut=uc}=e,{seekToInteractive:Kt}=e,{toggleGraph:Dt}=e,{playPrevChapter:Oi}=e,{firstStart:en}=e,Xt=we.getLogger().createComponentLog("Root component"),Ei=we.interfaceLanguage$;q(i,Ei,Z=>t(52,Y=Z));let tn=we.state.playbackState$;q(i,tn,Z=>t(153,z=Z));let Fi=we.ads.playbackState;q(i,Fi,Z=>t(154,Q=Z));let nn=we.state.positionWithScrubbing$;q(i,nn,Z=>t(57,Ce=Z));let Ai=we.state.duration$;q(i,Ai,Z=>t(60,$e=Z));let Li=we.playerPhase;q(i,Li,Z=>t(38,ge=Z));let ai=we.ui.isFullscreen;q(i,ai,Z=>t(143,g=Z));let ui=we.ui.controlsVisible;q(i,ui,Z=>t(36,I=Z));let _i=we.ui.settingsMenuVisible;q(i,_i,Z=>t(141,s=Z));let hi=we.ui.scrubbingInProgress;q(i,hi,Z=>t(145,v=Z));let ii=we.ui.contextMenu.visible$;q(i,ii,Z=>t(33,n=Z));let gi=we.ui.debugPanelVisible;q(i,gi,Z=>t(63,at=Z));let Hi=we.state.isLoaderVisible;q(i,Hi,Z=>t(155,$=Z));let qt=we.state.isEnded$;q(i,qt,Z=>t(142,f=Z));let bi=we.state.chromecastConnected$;q(i,bi,Z=>t(39,ae=Z));let Mi=we.state.chromecastDeviceName$;q(i,Mi,Z=>t(54,le=Z));let zi=we.ads.postrollPassed;q(i,zi,Z=>t(148,O=Z));let ci=we.state.isLive$;q(i,ci,Z=>t(59,ze=Z));let Mt=we.state.isPlaying$;q(i,Mt,Z=>t(51,W=Z));let Ui=we.state.crashed$;q(i,Ui,Z=>t(37,B=Z));let on=we.webApi.annotationsApi,Nt=we.webApi.pictureInPictureApi,Ki=we.state.currentSubtitle$;q(i,Ki,Z=>t(55,Ve=Z));let Wi=we.state.currentSubtitleCaptions$;q(i,Wi,Z=>t(56,Xe=Z));let Wt=we.state.duration$;q(i,Wt,Z=>t(58,Me=Z));let vi=we.state.graphIsOpened$;q(i,vi,Z=>t(149,ne=Z));let fi=we.ui.playerSize;q(i,fi,Z=>t(34,h=Z));let yi=we.ui.is3DVideo;q(i,yi,Z=>t(49,p=Z));let jt=we.ui.icon3DVideoVisible;q(i,jt,Z=>t(53,ie=Z));let Ot=we.ui.rotateAlpha;q(i,Ot,Z=>t(35,E=Z));let Jt=we.state.isInteractive,Vi=we.state.isInteractiveTime$;q(i,Vi,Z=>t(146,y=Z));let ni=we.state.isInteractiveExpectation$;q(i,ni,Z=>t(152,j=Z));let oi=we.state.hasInteractiveBranches,xt=we.ui.touched;q(i,xt,Z=>t(150,G=Z));let di=we.ui.modals.hotKeyMap.data;q(i,di,Z=>t(170,u=Z));let ji=we.ui.modals.hotKeyMap.show;q(i,ji,Z=>t(62,he=Z));let dn=we.ui.overlayContainer$,Gi=we.ui.controls.interactiveTimeIndicator;q(i,Gi,Z=>t(171,S=Z));let li=we.state.showInteractiveTimeIndicator,Gt=we.ui.contextMenu.position$;q(i,Gt,Z=>t(61,ce=Z));let Qi=we.actions.internal.closeSettingsMenu,{fakeIsPlaying$:At}=Bn();q(i,At,Z=>t(144,b=Z));let Bt,Yi,ki,Ri,ln;di.set(Ef());let et,mi,$t=De(!1);q(i,$t,Z=>t(50,w=Z));let Ue,Zi=De(!1);q(i,Zi,Z=>t(151,X=Z));let mn=De(),rn=De(!1);q(i,rn,Z=>t(147,K=Z));let Bi=!1,Xi=!1,sn=!1,wi=!(x&&!Fe.controls.showOnStartupAtAutoplay),Qt,Ji,Ci,kn,pn,an=!1,_n,xi=!1,{toggle:wn}=At,$i=!1,Si=null,Di;Nt?.setContext(kl());let qi=()=>{x&&!Jt&&Fe.controls.showOnStartupAtAutoplay&&Yt(Fe.controls.hideTimeout)};we.setUiCallbacks({onStarted:qi});let En=()=>{window.clearTimeout(ki),Zi.set(!1)},Cn=()=>{window.clearTimeout(Ri),mn.set(null)},Yt=Z=>{En(),Zi.set(!0),ki=window.setTimeout(()=>Zi.set(!1),Z);let Lt=Z-100;Ue=window.setTimeout(()=>{w&&$t.set(!1)},Lt>0?Lt:Z)},An=(Z,Lt)=>{Cn(),mn.set(Lt),Ri=window.setTimeout(()=>mn.set(null),Z)},Ln=yi.subscribe(Z=>{jt.set(Z),Z&&(window.clearTimeout(ln),ln=window.setTimeout(()=>jt.set(!1),Fe.controls.hide360IconTimeout))}),Sn=async()=>{let Z=oo();if(Z){let Lt=Sl(),Mn=un();Z=Lt===Mn||Lt===st}if(Z){Yt(Fe.controls.hideTimeoutFullscreen);try{await Nt?.remove()}catch(Lt){Xt({message:String(Lt)})}}ai.set(Z),we.getAdmanWrapper().setFullscreen(Z),g?we.callbacks?.onFullscreenEnter?.():we.callbacks?.onFullscreenExit?.()},hn=Z=>{let Lt=Z;fi.set({width:Lt.target.width,height:Lt.target.height})};It(()=>(sr(Sn),Fe.features.annotationsInside&&on?.init(Bt),Mo(Nt)&&(Nt?.assignPlayerContainer(Bt),Nt?.registryExternalEventHandlers({resize:hn})),Ze&&Ke.parentElement?.insertBefore(Ze,Ke.nextSibling),()=>{window.clearTimeout(ki),window.clearTimeout(Ue),window.clearTimeout(Ri),window.clearTimeout(ln),Ln(),Nt?.dispose(),ar(Sn)}));let un=()=>{let Z=Fe.features.fullscreenInternalTargetPlayerContainer||!yt?Bt:yt,Lt=Z.getRootNode(),Mn=Lt instanceof ShadowRoot?Lt.host:Lt,Vn=_t instanceof HTMLElement&&_t.contains(Mn);return Fe.allowChangingFullscreenTarget&&_t&&Vn?_t:Z},gn=async()=>{oo()?(await rr(document),Xt({message:"exit fullscreen"})):(Xt({message:"request fullscreen"}),await lr(un()))},oe=()=>{Qi(),ii.set(!1)},ht=Z=>{ii.set(!0),Gt.set({left:Z.clientX,top:Z.clientY})};function cn(){rn.set(!0),Jt||Yt(Fe.controls.hideTimeoutCursor)}function fn(){Jt||($t.set(!0),Yt(Fe.controls.hideTimeoutCursor))}function te(){rn.set(!1),t(132,Xi=!1),t(131,Bi=!1),$i=!1,we.actions.internal.releaseCamera()}function mt(Z){if(S&&li){let Lt=Z.currentTarget,Mn=cc(Lt),Vn=lp(Lt),Wo=Z.pageX-Vn,bo=Z.pageY-Mn,{left:Hn,bottom:vo,right:yo}=S,ko=yo-Hn;return Wo>=Hn-ko&&bo<=vo+ko}}function ri(Z){if(Bt){let Lt=cc(Z.currentTarget),Mn=h.height,Vn=Z.pageY-Lt;if(mt(Z)){t(132,Xi=!1);return}Vn<40?t(132,Xi=!0):Vn>Mn-40?t(131,Bi=!0):(t(132,Xi=!1),s||t(131,Bi=!1))}}function On(Z){ri(Z),Qt||Yt(Fe.controls.hideTimeoutCursor),p&&$i&&Si&&we.actions.internal.moveCameraFocusPX(Si.clientX-Z.clientX,Si.clientY-Z.clientY,Z.timeStamp-Si.timeStamp),Si=Z}let Fn=Z=>{Z.button===0&&($i=!0,we.actions.internal.holdCamera()),Yt(Fe.controls.hideTimeoutCursor)},ee=Z=>{Z.button===0&&(Si=Z,$i=!1,we.actions.internal.releaseCamera()),Yt(Fe.controls.hideTimeoutCursor)},$n=()=>{op&&(Xt({message:"double click on video"}),gn(),Yt(Fe.controls.hideTimeoutCursor))},gl=()=>{if(n||s){oe();return}if(!(f&&!oi)){if(xi)return wn();if(Di?.focus(),!ke){en(),Yt(Fe.controls.hideTimeoutCursor);return}we.actions.internal.togglePlay(),Yt(Fe.controls.hideTimeoutCursor)}},bl=Z=>{oe(),xt.set(!0),Yt(Fe.controls.hideTimeout),Z&&An(Fe.controls.hideHotKeyHelpers,Z)},vl=()=>{oe(),we.callbacks?.onOpenHotKeyMap?we.callbacks?.onOpenHotKeyMap(u):ji.update(Z=>!Z)},yl=()=>{if(n||s){oe();return}},Ho=()=>{xt.set(!0)},fo=we.ui.contextMenu.openedByBtnKeyboard$;q(i,fo,Z=>t(140,a=Z));let mo=we.ui.contextMenu.btnRef$;q(i,mo,Z=>t(139,r=Z));let Yn,eo=we.ui.contextMenu.openedByHotKey$;q(i,eo,Z=>t(138,l=Z));let to=we.ui.contextMenu.lastActiveElem$;q(i,to,Z=>t(137,o=Z));function zo(Z){be[Z?"unshift":"push"](()=>{Ke=Z,t(0,Ke)})}let Uo=()=>Di?.focus();function po(Z){Yi=Z,t(41,Yi)}let _o=()=>Di?.focus();function Ko(Z){Yn=Z,t(32,Yn)}function ho(Z){be[Z?"unshift":"push"](()=>{Di=Z,t(48,Di)})}function io(Z){be[Z?"unshift":"push"](()=>{mi=Z,t(30,mi)})}function go(Z){be[Z?"unshift":"push"](()=>{Bt=Z,t(40,Bt)})}return i.$$set=Z=>{"store"in Z&&t(125,we=Z.store),"uiConfig"in Z&&t(1,Fe=Z.uiConfig),"title"in Z&&t(2,ct=Z.title),"thumbUrl"in Z&&t(3,je=Z.thumbUrl),"videoContainer"in Z&&t(0,Ke=Z.videoContainer),"interactiveContainer"in Z&&t(126,Ze=Z.interactiveContainer),"live"in Z&&t(4,xe=Z.live),"autoplay"in Z&&t(5,x=Z.autoplay),"canRewindLive"in Z&&t(6,qe=Z.canRewindLive),"showAds"in Z&&t(7,He=Z.showAds),"adsSlotId"in Z&&t(8,fe=Z.adsSlotId),"adsParams"in Z&&t(9,re=Z.adsParams),"adsPreviewParam"in Z&&t(10,nt=Z.adsPreviewParam),"duration"in Z&&t(11,de=Z.duration),"logoClickable"in Z&&t(12,lt=Z.logoClickable),"logoHidden"in Z&&t(13,rt=Z.logoHidden),"logoTargetUrl"in Z&&t(14,dt=Z.logoTargetUrl),"showNextPrevButtons"in Z&&t(15,vt=Z.showNextPrevButtons),"nextButtonActive"in Z&&t(16,Tt=Z.nextButtonActive),"prevButtonActive"in Z&&t(17,Ge=Z.prevButtonActive),"endScreenVideoTitle"in Z&&t(18,zt=Z.endScreenVideoTitle),"endScreenVideoThumb"in Z&&t(19,Rt=Z.endScreenVideoThumb),"isOneVideoPlaylist"in Z&&t(20,kt=Z.isOneVideoPlaylist),"supportLink"in Z&&t(21,si=Z.supportLink),"shadowRootContainer"in Z&&t(127,st=Z.shadowRootContainer),"outerContainerRef"in Z&&t(128,yt=Z.outerContainerRef),"playerStarted"in Z&&t(22,ke=Z.playerStarted),"fullScreenTarget"in Z&&t(129,_t=Z.fullScreenTarget),"showMiniTimer"in Z&&t(130,wt=Z.showMiniTimer),"playNextVideo"in Z&&t(23,Zt=Z.playNextVideo),"playPrevVideo"in Z&&t(24,Ct=Z.playPrevVideo),"repeatPlaylist"in Z&&t(25,Ut=Z.repeatPlaylist),"seekToInteractive"in Z&&t(26,Kt=Z.seekToInteractive),"toggleGraph"in Z&&t(27,Dt=Z.toggleGraph),"playPrevChapter"in Z&&t(28,Oi=Z.playPrevChapter),"firstStart"in Z&&t(29,en=Z.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&1073741824|i.$$.dirty[5]&1&&t(42,et=(ge==="video"&&$||ge==="ads"&&Q==="inactive")&&!B),i.$$.dirty[0]&1073741824&&dn.set(mi),i.$$.dirty[4]&536871936&&(t(133,sn=wi&&z!==S6.PLAYING),wi||t(134,wi=!0)),i.$$.dirty[4]&272761728&&t(135,Qt=y&&!s&&!(Bi||Xi)&&!(sn&&!j)),i.$$.dirty[1]&448|i.$$.dirty[4]&136448512&&ui.set((sn||s||v||ae||X)&&!Qt&&(ge==="video"||ge==="ads")&&!B),i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&67108928&&t(43,Ji=Fe.features.thumbTimer&&wt&&ge==="video"&&!I&&!B&&!Jt&&(Fe.hideThumbTimerAfterTouch&&!G||!Fe.hideThumbTimerAfterTouch)),i.$$.dirty[1]&128|i.$$.dirty[4]&34078720&&t(44,Ci=ge==="video"&&!ne&&g),i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&17039360&&t(31,kn=(He&&O||!He)&&f&&!B),i.$$.dirty[1]&33|i.$$.dirty[4]&12582912&&t(45,pn=K&&!(I||kn)&&!y),i.$$.dirty[0]&2|i.$$.dirty[4]&6295552&&(!v&&an&&!y&&Yt(Fe.controls.hideTimeoutCursor),t(136,an=v)),i.$$.dirty[0]&1|i.$$.dirty[1]&24&&t(46,_n=Ke&&E%180?h.height/h.width:1),i.$$.dirty[4]&1048576&&t(47,xi=b!==null),i.$$.dirty[1]&6|i.$$.dirty[4]&65536&&Bo(Yn,n,a),i.$$.dirty[1]&4|i.$$.dirty[4]&32768){let Z=r;Z&&ol(Z,n,fo)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&16384&&Bo(Yn,n,l),i.$$.dirty[1]&4|i.$$.dirty[4]&8192){let Z=o;Z&&Uf(Z,n,eo)}},[Ke,Fe,ct,je,xe,x,qe,He,fe,re,nt,de,lt,rt,dt,vt,Tt,Ge,zt,Rt,kt,si,ke,Zt,Ct,Ut,Kt,Dt,Oi,en,mi,kn,Yn,n,h,E,I,B,ge,ae,Bt,Yi,et,Ji,Ci,pn,_n,xi,Di,p,w,W,Y,ie,le,Ve,Xe,Ce,Me,ze,$e,ce,he,at,Ei,tn,Fi,nn,Ai,Li,ai,ui,_i,hi,ii,gi,Hi,qt,bi,Mi,zi,ci,Mt,Ui,Ki,Wi,Wt,vi,fi,yi,jt,Ot,Jt,Vi,ni,xt,di,ji,Gi,Gt,At,$t,Zi,mn,rn,wn,gn,oe,ht,cn,fn,te,On,Fn,ee,$n,gl,bl,vl,yl,Ho,fo,mo,eo,to,we,Ze,st,yt,_t,wt,Bi,Xi,sn,wi,Qt,an,o,l,r,a,s,f,g,b,v,y,K,O,ne,G,X,j,z,Q,$,zo,Uo,po,_o,Ko,ho,io,go]}var fc=class extends H{constructor(e){super(),U(this,e,E6,T6,F,{store:125,uiConfig:1,title:2,thumbUrl:3,videoContainer:0,interactiveContainer:126,live:4,autoplay:5,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,logoTargetUrl:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:127,outerContainerRef:128,playerStarted:22,fullScreenTarget:129,showMiniTimer:130,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},P6,[-1,-1,-1,-1,-1,-1,-1])}},rp=fc;import{PlaybackState as B6}from"@vkontakte/videoplayer-core";import{clientChecker as os,noop as _c}from"@vkontakte/videoplayer-shared";function A6(i){Pe(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 sp(i){let e,t,n,o,l,r,a,s,u,f,p,h,S,g,w,b=N("doubletap_seek_step",{seconds:i[2].toFixed(0)})+"",E;return{c(){e=P("div"),n=M(),o=P("div"),l=P("div"),r=P("div"),s=M(),u=P("div"),p=M(),h=P("div"),g=M(),w=P("p"),E=Re(b),c(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),c(r,"class",a="triangle "+i[0]+" svelte-nhq2ld"),c(u,"class",f="triangle "+i[0]+" svelte-nhq2ld"),c(h,"class",S="triangle "+i[0]+" svelte-nhq2ld"),c(l,"class","triangles-wrapper svelte-nhq2ld"),c(w,"class","step-caption svelte-nhq2ld"),c(o,"class","info svelte-nhq2ld")},m(v,y){C(v,e,y),C(v,n,y),C(v,o,y),m(o,l),m(l,r),m(l,s),m(l,u),m(l,p),m(l,h),m(o,g),m(o,w),m(w,E)},p(v,y){y&1&&t!==(t="semicircle "+v[0]+" svelte-nhq2ld")&&c(e,"class",t),y&1&&a!==(a="triangle "+v[0]+" svelte-nhq2ld")&&c(r,"class",a),y&1&&f!==(f="triangle "+v[0]+" svelte-nhq2ld")&&c(u,"class",f),y&1&&S!==(S="triangle "+v[0]+" svelte-nhq2ld")&&c(h,"class",S),y&4&&b!==(b=N("doubletap_seek_step",{seconds:v[2].toFixed(0)})+"")&&We(E,b)},d(v){v&&(k(e),k(n),k(o))}}}function L6(i){let e,t,n,o,l=i[1]&&sp(i);return{c(){e=P("div"),l&&l.c(),c(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(r,a){C(r,e,a),l&&l.m(e,null),n||(o=_e(e,"click",ot(i[3]())),n=!0)},p(r,[a]){r[1]?l?l.p(r,a):(l=sp(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&1&&t!==(t="double-click-area "+r[0]+" svelte-nhq2ld")&&c(e,"class",t)},i:Se,o:Se,d(r){r&&k(e),l&&l.d(),n=!1,o()}}}function M6(i,e,t){let{side:n}=e,{seekStep:o=0}=e,{handleSingleFirstClick:l}=e,{handleSecondClick:r}=e,a=!1,s=0,u=0,f=o,p=()=>()=>{u+=1,t(2,f=o*(u-1)),u===1?l():(t(1,a=!0),r()),window.clearTimeout(s),s=window.setTimeout(()=>{u=0,t(1,a=!1)},300)};return zn(()=>{window.clearTimeout(s)}),i.$$set=h=>{"side"in h&&t(0,n=h.side),"seekStep"in h&&t(4,o=h.seekStep),"handleSingleFirstClick"in h&&t(5,l=h.handleSingleFirstClick),"handleSecondClick"in h&&t(6,r=h.handleSecondClick)},[n,a,f,p,o,l,r]}var dc=class extends H{constructor(e){super(),U(this,e,M6,L6,F,{side:0,seekStep:4,handleSingleFirstClick:5,handleSecondClick:6},A6)}},mc=dc;function V6(i,e,t){let{playNextVideo:n}=e;return It(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var pc=class extends H{constructor(e){super(),U(this,e,V6,null,F,{playNextVideo:0})}},ap=pc;var{window:R6}=wo;function D6(i){Pe(i,"svelte-6x5lql",".player-wrapper.svelte-6x5lql{position:absolute;width:100%;height:100%}.player-wrapper.svelte-6x5lql .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-6x5lql{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-6x5lql,.video-container.svelte-6x5lql,.ads-container.svelte-6x5lql{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-6x5lql{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-6x5lql{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-6x5lql{transition:none}.ads-container.svelte-6x5lql{z-index:var(--ads-container-z-index);background:var(--black)}")}function up(i){let e,t,n,o=i[45]&&cp(i),l=i[46]&&fp(i);return{c(){o&&o.c(),e=M(),l&&l.c(),t=ut()},m(r,a){o&&o.m(r,a),C(r,e,a),l&&l.m(r,a),C(r,t,a),n=!0},p(r,a){r[45]?o?(o.p(r,a),a[1]&16384&&d(o,1)):(o=cp(r),o.c(),d(o,1),o.m(e.parentNode,e)):o&&(me(),_(o,1,1,()=>{o=null}),pe()),r[46]?l?(l.p(r,a),a[1]&32768&&d(l,1)):(l=fp(r),l.c(),d(l,1),l.m(t.parentNode,t)):l&&(me(),_(l,1,1,()=>{l=null}),pe())},i(r){n||(d(o),d(l),n=!0)},o(r){_(o),_(l),n=!1},d(r){r&&(k(e),k(t)),o&&o.d(r),l&&l.d(r)}}}function cp(i){let e,t;return e=new mc({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[132]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&2&&(l.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function fp(i){let e,t;return e=new mc({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[133]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&2&&(l.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function dp(i){let e,t;return e=new ns({props:{thumbUrl:i[2],startTime:i[3]?.startTime}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[0]&8&&(l.startTime=n[3]?.startTime),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function mp(i){let e,t;return e=new pl({props:{kind:"recover",thumbUrl:i[2]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function pp(i){let e,t;return e=new pl({props:{kind:"record",thumbUrl:i[2]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function _p(i){let e,t,n;return t=new ur({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","ads-container svelte-6x5lql"),D(e,"hidden",i[36]!=="ads")},m(o,l){C(o,e,l),A(t,e,null),n=!0},p(o,l){let r={};l[0]&128&&(r.adsSlotId=o[7]),l[0]&256&&(r.adsParams=o[8]),l[0]&512&&(r.adsPreviewParam=o[9]),l[0]&1024&&(r.duration=o[10]),t.$set(r),(!n||l[1]&32)&&D(e,"hidden",o[36]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function hp(i){let e,t;return e=new ap({props:{playNextVideo:i[22]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&4194304&&(l.playNextVideo=n[22]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function gp(i){let e,t;return e=new xr({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function bp(i){let e,t,n;return t=new $l({props:{"aria-label":N("video360")}}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","spherical-video-icon svelte-6x5lql")},m(o,l){C(o,e,l),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function vp(i){let e,t;return e=new es({props:{thumbUrl:i[2],chromecastDeviceName:i[53]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[1]&4194304&&(l.chromecastDeviceName=n[53]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function yp(i){let e,t;return e=new $r({props:{shifted:i[30],captions:i[55],position:i[32],playerSize:i[33],isMobile:!0}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&1073741824&&(l.shifted=n[30]),o[1]&16777216&&(l.captions=n[55]),o[1]&2&&(l.position=n[32]),o[1]&4&&(l.playerSize=n[33]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function kp(i){let e,t,n,o,l;return t=new ts({}),{c(){e=P("div"),V(t.$$.fragment)},m(r,a){C(r,e,a),A(t,e,null),n=!0,o||(l=_e(e,"click",ot(i[101])),o=!0)},p:Se,i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){_(t.$$.fragment,r),n=!1},d(r){r&&k(e),L(t),o=!1,l()}}}function wp(i){let e,t,n;function o(r){i[134](r)}let l={bottomHidden:i[36]==="thumb"||i[36]==="LiveWaitingStart"||i[36]==="LiveWaitingRecover"||i[36]==="LiveWaitingRecord"||i[36]==="ads",showControls:i[30],bottomNoSmooth:i[47],isAds:i[36]==="ads",canRewindLive:i[5]&&i[56]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showNextPrevButtons:i[14],nextButtonActive:i[15],prevButtonActive:i[16],isOneVideoPlaylist:i[19],supportLink:i[20],customFullscreenSupported:i[41],playNextVideo:i[22],playPrevVideo:i[23],repeatPlaylist:i[24],toggleFullscreen:i[98],seekToInteractive:i[25],toggleGraph:i[26],playPrevChapter:i[27],onDisabledPlayPrevChapterClick:i[104],onDisabledSeekToInteractiveClick:i[105]};return i[39]!==void 0&&(l.controlsElementRef=i[39]),e=new Jr({props:l}),be.push(()=>Oe(e,"controlsElementRef",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&32&&(s.bottomHidden=r[36]==="thumb"||r[36]==="LiveWaitingStart"||r[36]==="LiveWaitingRecover"||r[36]==="LiveWaitingRecord"||r[36]==="ads"),a[0]&1073741824&&(s.showControls=r[30]),a[1]&65536&&(s.bottomNoSmooth=r[47]),a[1]&32&&(s.isAds=r[36]==="ads"),a[0]&32|a[1]&33554432&&(s.canRewindLive=r[5]&&r[56]!==0),a[0]&2048&&(s.logoClickable=r[11]),a[0]&4096&&(s.logoHidden=r[12]),a[0]&8192&&(s.logoTargetUrl=r[13]),a[0]&16384&&(s.showNextPrevButtons=r[14]),a[0]&32768&&(s.nextButtonActive=r[15]),a[0]&65536&&(s.prevButtonActive=r[16]),a[0]&524288&&(s.isOneVideoPlaylist=r[19]),a[0]&1048576&&(s.supportLink=r[20]),a[1]&1024&&(s.customFullscreenSupported=r[41]),a[0]&4194304&&(s.playNextVideo=r[22]),a[0]&8388608&&(s.playPrevVideo=r[23]),a[0]&16777216&&(s.repeatPlaylist=r[24]),a[0]&33554432&&(s.seekToInteractive=r[25]),a[0]&67108864&&(s.toggleGraph=r[26]),a[0]&134217728&&(s.playPrevChapter=r[27]),!t&&a[1]&256&&(t=!0,s.controlsElementRef=r[39],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Cp(i){let e,t;return e=new ul({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Sp(i){let e,t;return e=new hr({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Pp(i){let e,t,n=i[5]&&i[79]&&!i[50].has("TIMELINE"),o,l,r,a,s,u,f,p,h,S,g,w,b,E,v,y,I;e=new is({props:{hidden:i[36]!=="thumb"||i[35]||i[90]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let K=n&&up(i),B=i[36]==="LiveWaitingStart"&&dp(i),O=i[36]==="LiveWaitingRecover"&&mp(i),ne=i[36]==="LiveWaitingRecord"&&pp(i),ge=i[6]&&i[21]&&_p(i),G=i[43]&&i[17]&&i[18]&&hp(i),X=i[51]&&gp(i),ae=i[52]&&bp(i),j=i[37]&&vp(i),z=i[54].value!=="off"&&yp(i),Q=i[35]&&kp(i),$=i[21]&&wp(i);b=new fr({props:{isLive:i[57],isHidden:!i[42],isPlaying:i[48],position:i[32],duration:i[31]}});let W=i[40]&&Cp(i),Y=i[58]&&Sp(i);return{c(){V(e.$$.fragment),t=M(),K&&K.c(),o=M(),B&&B.c(),l=M(),O&&O.c(),r=M(),ne&&ne.c(),a=M(),ge&&ge.c(),s=M(),G&&G.c(),u=M(),X&&X.c(),f=M(),ae&&ae.c(),p=M(),j&&j.c(),h=M(),z&&z.c(),S=M(),Q&&Q.c(),g=M(),$&&$.c(),w=M(),V(b.$$.fragment),E=M(),W&&W.c(),v=M(),Y&&Y.c(),y=ut()},m(ie,le){A(e,ie,le),C(ie,t,le),K&&K.m(ie,le),C(ie,o,le),B&&B.m(ie,le),C(ie,l,le),O&&O.m(ie,le),C(ie,r,le),ne&&ne.m(ie,le),C(ie,a,le),ge&&ge.m(ie,le),C(ie,s,le),G&&G.m(ie,le),C(ie,u,le),X&&X.m(ie,le),C(ie,f,le),ae&&ae.m(ie,le),C(ie,p,le),j&&j.m(ie,le),C(ie,h,le),z&&z.m(ie,le),C(ie,S,le),Q&&Q.m(ie,le),C(ie,g,le),$&&$.m(ie,le),C(ie,w,le),A(b,ie,le),C(ie,E,le),W&&W.m(ie,le),C(ie,v,le),Y&&Y.m(ie,le),C(ie,y,le),I=!0},p(ie,le){let Ve={};le[0]&16|le[1]&48&&(Ve.hidden=ie[36]!=="thumb"||ie[35]||ie[90]&&ie[4]),le[0]&4&&(Ve.thumbUrl=ie[2]),le[0]&268435456&&(Ve.startVideo=ie[28]),e.$set(Ve),le[0]&32|le[1]&524288&&(n=ie[5]&&ie[79]&&!ie[50].has("TIMELINE")),n?K?(K.p(ie,le),le[0]&32|le[1]&524288&&d(K,1)):(K=up(ie),K.c(),d(K,1),K.m(o.parentNode,o)):K&&(me(),_(K,1,1,()=>{K=null}),pe()),ie[36]==="LiveWaitingStart"?B?(B.p(ie,le),le[1]&32&&d(B,1)):(B=dp(ie),B.c(),d(B,1),B.m(l.parentNode,l)):B&&(me(),_(B,1,1,()=>{B=null}),pe()),ie[36]==="LiveWaitingRecover"?O?(O.p(ie,le),le[1]&32&&d(O,1)):(O=mp(ie),O.c(),d(O,1),O.m(r.parentNode,r)):O&&(me(),_(O,1,1,()=>{O=null}),pe()),ie[36]==="LiveWaitingRecord"?ne?(ne.p(ie,le),le[1]&32&&d(ne,1)):(ne=pp(ie),ne.c(),d(ne,1),ne.m(a.parentNode,a)):ne&&(me(),_(ne,1,1,()=>{ne=null}),pe()),ie[6]&&ie[21]?ge?(ge.p(ie,le),le[0]&2097216&&d(ge,1)):(ge=_p(ie),ge.c(),d(ge,1),ge.m(s.parentNode,s)):ge&&(me(),_(ge,1,1,()=>{ge=null}),pe()),ie[43]&&ie[17]&&ie[18]?G?(G.p(ie,le),le[0]&393216|le[1]&4096&&d(G,1)):(G=hp(ie),G.c(),d(G,1),G.m(u.parentNode,u)):G&&(me(),_(G,1,1,()=>{G=null}),pe()),ie[51]?X?le[1]&1048576&&d(X,1):(X=gp(ie),X.c(),d(X,1),X.m(f.parentNode,f)):X&&(me(),_(X,1,1,()=>{X=null}),pe()),ie[52]?ae?le[1]&2097152&&d(ae,1):(ae=bp(ie),ae.c(),d(ae,1),ae.m(p.parentNode,p)):ae&&(me(),_(ae,1,1,()=>{ae=null}),pe()),ie[37]?j?(j.p(ie,le),le[1]&64&&d(j,1)):(j=vp(ie),j.c(),d(j,1),j.m(h.parentNode,h)):j&&(me(),_(j,1,1,()=>{j=null}),pe()),ie[54].value!=="off"?z?(z.p(ie,le),le[1]&8388608&&d(z,1)):(z=yp(ie),z.c(),d(z,1),z.m(S.parentNode,S)):z&&(me(),_(z,1,1,()=>{z=null}),pe()),ie[35]?Q?(Q.p(ie,le),le[1]&16&&d(Q,1)):(Q=kp(ie),Q.c(),d(Q,1),Q.m(g.parentNode,g)):Q&&(me(),_(Q,1,1,()=>{Q=null}),pe()),ie[21]?$?($.p(ie,le),le[0]&2097152&&d($,1)):($=wp(ie),$.c(),d($,1),$.m(w.parentNode,w)):$&&(me(),_($,1,1,()=>{$=null}),pe());let Xe={};le[1]&67108864&&(Xe.isLive=ie[57]),le[1]&2048&&(Xe.isHidden=!ie[42]),le[1]&131072&&(Xe.isPlaying=ie[48]),le[1]&2&&(Xe.position=ie[32]),le[1]&1&&(Xe.duration=ie[31]),b.$set(Xe),ie[40]?W?le[1]&512&&d(W,1):(W=Cp(ie),W.c(),d(W,1),W.m(v.parentNode,v)):W&&(me(),_(W,1,1,()=>{W=null}),pe()),ie[58]?Y?le[1]&134217728&&d(Y,1):(Y=Sp(ie),Y.c(),d(Y,1),Y.m(y.parentNode,y)):Y&&(me(),_(Y,1,1,()=>{Y=null}),pe())},i(ie){I||(d(e.$$.fragment,ie),d(K),d(B),d(O),d(ne),d(ge),d(G),d(X),d(ae),d(j),d(z),d(Q),d($),d(b.$$.fragment,ie),d(W),d(Y),I=!0)},o(ie){_(e.$$.fragment,ie),_(K),_(B),_(O),_(ne),_(ge),_(G),_(X),_(ae),_(j),_(z),_(Q),_($),_(b.$$.fragment,ie),_(W),_(Y),I=!1},d(ie){ie&&(k(t),k(o),k(l),k(r),k(a),k(s),k(u),k(f),k(p),k(h),k(S),k(g),k(w),k(E),k(v),k(y)),L(e,ie),K&&K.d(ie),B&&B.d(ie),O&&O.d(ie),ne&&ne.d(ie),ge&&ge.d(ie),G&&G.d(ie),X&&X.d(ie),ae&&ae.d(ie),j&&j.d(ie),z&&z.d(ie),Q&&Q.d(ie),$&&$.d(ie),L(b,ie),W&&W.d(ie),Y&&Y.d(ie)}}}function q6(i){let e,t,n,o,l,r=i[49],a,s,u,f,p,h,S=Pp(i);return{c(){e=P("div"),t=P("div"),n=P("div"),l=M(),S.c(),a=M(),s=P("div"),c(n,"class","video-container svelte-6x5lql"),c(n,"style",o=`transform: rotate(${i[34]}deg) scale(${i[44]})`),c(n,"data-testid","video-container"),c(n,"data-is-playing",i[48]),D(n,"fast-rotate",!i[1].isSmoothVideoRotate),c(t,"class","video-wrapper svelte-6x5lql"),D(t,"hidden",i[36]!=="video"),c(s,"class","overlay-container"),c(e,"class","player-wrapper svelte-6x5lql"),c(e,"role","region"),c(e,"aria-label",u=N("aria_label_video_player")),c(e,"tabindex","-1")},m(g,w){C(g,e,w),m(e,t),m(t,n),i[131](n),m(e,l),S.m(e,null),m(e,a),m(e,s),i[135](s),i[136](e),f=!0,p||(h=[_e(R6,"blur",i[99]),_e(t,"click",Ht(i[100])),_e(e,"click",i[102],!0),_e(e,"focusin",i[103],!0)],p=!0)},p(g,w){(!f||w[1]&8200&&o!==(o=`transform: rotate(${g[34]}deg) scale(${g[44]})`))&&c(n,"style",o),(!f||w[1]&131072)&&c(n,"data-is-playing",g[48]),(!f||w[0]&2)&&D(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!f||w[1]&32)&&D(t,"hidden",g[36]!=="video"),w[1]&262144&&F(r,r=g[49])?(me(),_(S,1,1,Se),pe(),S=Pp(g),S.c(),d(S,1),S.m(e,a)):S.p(g,w)},i(g){f||(d(S),f=!0)},o(g){_(S),f=!1},d(g){g&&k(e),i[131](null),S.d(g),i[135](null),i[136](null),p=!1,tt(h)}}}function N6(i,e,t){let n,o,l,r,a,s,u,f,p,h,S,g,w,b,E,v,y,I,K,B,O,ne,ge,G,X,ae,j,z,Q,$,W,Y,ie,le,Ve,Xe,{store:Ce}=e,{uiConfig:Me}=e,{thumbUrl:ze}=e,{videoContainer:$e}=e,{interactiveContainer:ce}=e,{live:he}=e,{autoplay:at}=e,{canRewindLive:we}=e,{showAds:Fe}=e,{adsSlotId:ct=void 0}=e,{adsParams:je=void 0}=e,{adsPreviewParam:Ke=void 0}=e,{duration:Ze=void 0}=e,{logoClickable:xe}=e,{logoHidden:x}=e,{logoTargetUrl:qe=""}=e,{showNextPrevButtons:He=!1}=e,{nextButtonActive:fe=!1}=e,{prevButtonActive:re=!1}=e,{endScreenVideoTitle:nt=void 0}=e,{endScreenVideoThumb:de=void 0}=e,{isOneVideoPlaylist:lt=!1}=e,{supportLink:rt}=e,{shadowRootContainer:dt=void 0}=e,{outerContainerRef:vt=void 0}=e,{showMiniTimer:Tt=!1}=e,{fullScreenTarget:Ge=void 0}=e,{playerStarted:zt=!1}=e,{playNextVideo:Rt=_c}=e,{playPrevVideo:kt=_c}=e,{repeatPlaylist:si=_c}=e,{seekToInteractive:st}=e,{toggleGraph:yt}=e,{playPrevChapter:ke}=e,{firstStart:_t}=e,{seekTime:wt}=e,Zt=Ce.getLogger().createComponentLog("Root component"),Ct=Ce.interfaceLanguage$;q(i,Ct,oe=>t(49,j=oe));let Ut=Ce.state.playbackState$;q(i,Ut,oe=>t(128,ge=oe));let Kt=Ce.ads.playbackState;q(i,Kt,oe=>t(129,G=oe));let Dt=Ce.state.positionWithScrubbing$;q(i,Dt,oe=>t(32,a=oe));let Oi=Ce.state.duration$;q(i,Oi,oe=>t(31,r=oe));let en=Ce.playerPhase;q(i,en,oe=>t(36,K=oe));let Xt=Ce.ui.isFullscreen;q(i,Xt,oe=>t(142,u=oe));let Ei=Ce.ui.controlsVisible;q(i,Ei,oe=>t(30,o=oe));let tn=Ce.ui.interactiveHideMobileControls;q(i,tn,oe=>t(120,S=oe));let Fi=Ce.ui.settingsMenuVisible;q(i,Fi,oe=>t(118,n=oe));let nn=Ce.ui.scrubbingInProgress;q(i,nn,oe=>t(121,w=oe));let Ai=Ce.ui.debugPanelVisible;q(i,Ai,oe=>t(58,Xe=oe));let Li=Ce.state.isLoaderVisible;q(i,Li,oe=>t(130,X=oe));let ai=Ce.state.isEnded$;q(i,ai,oe=>t(123,v=oe));let ui=Ce.state.chromecastConnected$;q(i,ui,oe=>t(37,B=oe));let _i=Ce.state.chromecastDeviceName$;q(i,_i,oe=>t(53,W=oe));let hi=Ce.ads.postrollPassed;q(i,hi,oe=>t(124,y=oe));let ii=Ce.ui.mobileUnmuteButtonExpanded,gi=Ce.ui.mobileUnmuteButtonVisible,Hi=Ce.state.isLive$;q(i,Hi,oe=>t(57,Ve=oe));let qt=Ce.state.isPlaying$;q(i,qt,oe=>t(48,ae=oe));let bi=Ce.state.isActiveLive$;q(i,bi,oe=>t(119,s=oe));let Mi=Ce.state.isRewindableLive$,zi=Ce.state.crashed$;q(i,zi,oe=>t(35,E=oe));let ci=Ce.webApi.annotationsApi,Mt=Ce.webApi.pictureInPictureApi,Ui=Ce.state.videoSize$;q(i,Ui,oe=>t(143,p=oe));let on=Ce.state.currentSubtitle$;q(i,on,oe=>t(54,Y=oe));let Nt=Ce.state.currentSubtitleCaptions$;q(i,Nt,oe=>t(55,ie=oe));let Ki=Ce.state.duration$;q(i,Ki,oe=>t(56,le=oe));let Wi=Ce.state.graphIsOpened$;q(i,Wi,oe=>t(127,ne=oe));let Wt=Ce.ui.playerSize;q(i,Wt,oe=>t(33,f=oe));let vi=Ce.ui.is3DVideo;q(i,vi,oe=>t(51,Q=oe));let fi=Ce.ui.icon3DVideoVisible;q(i,fi,oe=>t(52,$=oe));let yi=Ce.ui.rotateAlpha;q(i,yi,oe=>t(34,g=oe));let jt=Ce.state.isInteractive,Ot=Ce.state.isInteractiveTime$;q(i,Ot,oe=>t(122,b=oe));let Jt=Ce.state.isInteractiveExpectation$;q(i,Jt,oe=>t(126,O=oe));let Vi=Ce.state.hasInteractiveBranches,ni=Ce.ui.controls.disabledControls$;q(i,ni,oe=>t(50,z=oe));let oi=Ce.ui.touched;q(i,oi,oe=>t(125,I=oe));let xt=Ce.ui.overlayContainer$,di=Ce.state.loadedMetadata$;q(i,di,oe=>t(141,l=oe));let ji=Ce.actions.internal.closeSettingsMenu,dn=Ce.callbacks?.onDisabledPlayPrevChapterClick,Gi=Ce.callbacks?.onDisabledSeekToInteractiveClick,li,Gt,Qi,At,Bt,Yi,ki,Ri=De(!1);q(i,Ri,oe=>t(47,h=oe));let ln,et=!1,mi,$t=!1,Ue,Zi=!0,mn,rn,Bi=!1,Xi;Mt?.setContext(kl());let sn=oe=>{clearTimeout(At),oe&&(gi.set(!0),ii.set(!0),At=window.setTimeout(()=>{ii.set(!1)},Me.controls.collapseMobileUnmute),jt||Qt(Me.controls.hideTimeoutMobile))};Ce.setUiCallbacks({onStarted:sn});let wi=()=>{window.clearTimeout(Qi),t(113,et=!1),S&&tn.set(!1)},Qt=oe=>{wi(),t(113,et=!0),Qi=window.setTimeout(()=>t(113,et=!1),oe);let ht=oe-100;ln=window.setTimeout(()=>{h&&Ri.set(!1)},ht>0?ht:oe)},Ji=vi.subscribe(oe=>{fi.set(oe),oe&&(window.clearTimeout(Bt),Bt=window.setTimeout(()=>fi.set(!1),Me.controls.hide360IconTimeout))}),Ci=async()=>{let oe=oo();if(oe){let ht=Sl(),cn=xi(),fn=os.isSamsungBrowser&&ht===dt;oe=ht===cn||fn}if(oe){Qt(Me.controls.hideTimeoutFullscreen);try{await Mt?.remove()}catch(ht){Zt({message:String(ht)})}try{let ht=p?.width&&p?.height?p:f;await If(ht)}catch(ht){Zt({message:String(ht)})}}Xt.set(oe),Ce.getAdmanWrapper().setFullscreen(oe),u?Ce.callbacks?.onFullscreenEnter?.():Ce.callbacks?.onFullscreenExit?.()},kn=oe=>{let ht=oe;Wt.set({width:ht.target.width,height:ht.target.height})};It(()=>(sr(Ci),Me.features.annotationsInside&&ci?.init(li),Mo(Mt)&&(Mt?.assignPlayerContainer(li),Mt?.registryExternalEventHandlers({resize:kn})),t(41,Zi=!os.isIphoneOrOldIpad),ce&&$e.parentElement?.insertBefore(ce,$e.nextSibling),()=>{window.clearTimeout(Qi),window.clearTimeout(ln),window.clearTimeout(At),window.clearTimeout(Bt),Ji(),Mt?.dispose(),ar(Ci)}));let pn=!0,an=!0,_n=oe=>{let ht=a+(oe==="forward"?1:-1)*Me.controls.seekStepMobile/1e3;ht<0?(t(45,pn=!1),ht=0):ht>=r&&(t(46,an=!1),ht=r),t(115,$t=!0),wt(ht)},xi=()=>{let oe=os.isIOS||Me.features.fullscreenInternalTargetPlayerContainer||!vt?li:vt,ht=oe.getRootNode(),cn=ht instanceof ShadowRoot?ht.host:ht,fn=Ge instanceof HTMLElement&&Ge.contains(cn);return Me.allowChangingFullscreenTarget&&Ge&&fn?Ge:oe},wn=async()=>{if(oo())await rr(document),Zt({message:"exit fullscreen"});else{if(Zt({message:"request fullscreen"}),os.isIOS&&!l)return;await lr(xi())}},$i=()=>{ji()},Si=()=>{if(n){$i();return}if(!zt){_t(),Qt(Me.controls.hideTimeoutCursor);return}t(115,$t=!1),o?wi():Qt(Me.controls.hideTimeoutMobile)},Di=()=>{if(n){$i();return}},qi=()=>{oi.set(!0)},En=()=>{jt||(Ri.set(!0),Qt(Me.controls.hideTimeoutCursor))},Cn=oe=>{dn&&(dn(oe),Qt(Me.controls.hideTimeoutMobile))},Yt=oe=>{Gi&&(Gi(oe),Qt(Me.controls.hideTimeoutMobile))};function An(oe){be[oe?"unshift":"push"](()=>{$e=oe,t(0,$e)})}let Ln=()=>_n("backward"),Sn=()=>_n("forward");function hn(oe){Gt=oe,t(39,Gt)}function un(oe){be[oe?"unshift":"push"](()=>{ki=oe,t(29,ki)})}function gn(oe){be[oe?"unshift":"push"](()=>{li=oe,t(38,li)})}return i.$$set=oe=>{"store"in oe&&t(106,Ce=oe.store),"uiConfig"in oe&&t(1,Me=oe.uiConfig),"thumbUrl"in oe&&t(2,ze=oe.thumbUrl),"videoContainer"in oe&&t(0,$e=oe.videoContainer),"interactiveContainer"in oe&&t(107,ce=oe.interactiveContainer),"live"in oe&&t(3,he=oe.live),"autoplay"in oe&&t(4,at=oe.autoplay),"canRewindLive"in oe&&t(5,we=oe.canRewindLive),"showAds"in oe&&t(6,Fe=oe.showAds),"adsSlotId"in oe&&t(7,ct=oe.adsSlotId),"adsParams"in oe&&t(8,je=oe.adsParams),"adsPreviewParam"in oe&&t(9,Ke=oe.adsPreviewParam),"duration"in oe&&t(10,Ze=oe.duration),"logoClickable"in oe&&t(11,xe=oe.logoClickable),"logoHidden"in oe&&t(12,x=oe.logoHidden),"logoTargetUrl"in oe&&t(13,qe=oe.logoTargetUrl),"showNextPrevButtons"in oe&&t(14,He=oe.showNextPrevButtons),"nextButtonActive"in oe&&t(15,fe=oe.nextButtonActive),"prevButtonActive"in oe&&t(16,re=oe.prevButtonActive),"endScreenVideoTitle"in oe&&t(17,nt=oe.endScreenVideoTitle),"endScreenVideoThumb"in oe&&t(18,de=oe.endScreenVideoThumb),"isOneVideoPlaylist"in oe&&t(19,lt=oe.isOneVideoPlaylist),"supportLink"in oe&&t(20,rt=oe.supportLink),"shadowRootContainer"in oe&&t(108,dt=oe.shadowRootContainer),"outerContainerRef"in oe&&t(109,vt=oe.outerContainerRef),"showMiniTimer"in oe&&t(110,Tt=oe.showMiniTimer),"fullScreenTarget"in oe&&t(111,Ge=oe.fullScreenTarget),"playerStarted"in oe&&t(21,zt=oe.playerStarted),"playNextVideo"in oe&&t(22,Rt=oe.playNextVideo),"playPrevVideo"in oe&&t(23,kt=oe.playPrevVideo),"repeatPlaylist"in oe&&t(24,si=oe.repeatPlaylist),"seekToInteractive"in oe&&t(25,st=oe.seekToInteractive),"toggleGraph"in oe&&t(26,yt=oe.toggleGraph),"playPrevChapter"in oe&&t(27,ke=oe.playPrevChapter),"firstStart"in oe&&t(28,_t=oe.firstStart),"seekTime"in oe&&t(112,wt=oe.seekTime)},i.$$.update=()=>{i.$$.dirty[1]&48|i.$$.dirty[4]&96&&t(40,Yi=(K==="video"&&X||K==="ads"&&G==="inactive")&&!E),i.$$.dirty[0]&536870912&&xt.set(ki),i.$$.dirty[4]&16&&t(114,mi=ge!==B6.PLAYING),i.$$.dirty[3]&1211105280|i.$$.dirty[4]&12&&t(116,Ue=ne||S||!et&&(v&&!!Vi||mi&&O)),i.$$.dirty[1]&112|i.$$.dirty[3]&317718528&&Ei.set((mi||n||w||B||et&&!$t)&&!Ue&&K==="video"&&!E),i.$$.dirty[0]&1073741826|i.$$.dirty[1]&48|i.$$.dirty[3]&131072|i.$$.dirty[4]&2&&t(42,mn=Me.features.thumbTimer&&Tt&&K==="video"&&!o&&!E&&!jt&&(Me.hideThumbTimerAfterTouch&&!I||!Me.hideThumbTimerAfterTouch)),i.$$.dirty[0]&64|i.$$.dirty[1]&16|i.$$.dirty[3]&1073741824|i.$$.dirty[4]&1&&t(43,rn=(Fe&&y||!Fe)&&v&&!E),i.$$.dirty[0]&2|i.$$.dirty[3]&822083584&&(!w&&Bi&&!b&&Qt(Me.controls.hideTimeoutMobile),t(117,Bi=w)),i.$$.dirty[0]&1|i.$$.dirty[1]&12&&t(44,Xi=$e&&g%180?f.height/f.width:1),i.$$.dirty[1]&3|i.$$.dirty[3]&67108864&&(t(45,pn=a>0),t(46,an=!s&&a<r))},[$e,Me,ze,he,at,we,Fe,ct,je,Ke,Ze,xe,x,qe,He,fe,re,nt,de,lt,rt,zt,Rt,kt,si,st,yt,ke,_t,ki,o,r,a,f,g,E,K,B,li,Gt,Yi,Zi,mn,rn,Xi,pn,an,h,ae,j,z,Q,$,W,Y,ie,le,Ve,Xe,Ct,Ut,Kt,Dt,Oi,en,Xt,Ei,tn,Fi,nn,Ai,Li,ai,ui,_i,hi,Hi,qt,bi,Mi,zi,Ui,on,Nt,Ki,Wi,Wt,vi,fi,yi,jt,Ot,Jt,ni,oi,di,Ri,_n,wn,$i,Si,Di,qi,En,Cn,Yt,Ce,ce,dt,vt,Tt,Ge,wt,et,mi,$t,Ue,Bi,n,s,S,w,b,v,y,I,O,ne,ge,G,X,An,Ln,Sn,hn,un,gn]}var hc=class extends H{constructor(e){super(),U(this,e,N6,q6,F,{store:106,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:107,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,shadowRootContainer:108,outerContainerRef:109,showMiniTimer:110,fullScreenTarget:111,playerStarted:21,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:112},D6,[-1,-1,-1,-1,-1,-1])}},Ip=hc;function z6(i){Pe(i,"svelte-1tl3een",`.root.svelte-1tl3een{--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 a6(i){let e,t;return{c(){e=P("div"),t=Re(i[0]),c(e,"class","title svelte-1bcvcf2"),D(e,"hidden",i[1])},m(n,o){S(n,e,o),m(e,t)},p(n,[o]){o&1&&We(t,n[0]),o&2&&D(e,"hidden",n[1])},i:Se,o:Se,d(n){n&&k(e)}}}function u6(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=l=>{"title"in l&&t(0,n=l.title),"isHidden"in l&&t(1,o=l.isHidden)},[n,o]}var oc=class extends H{constructor(e){super(),U(this,e,u6,a6,F,{title:0,isHidden:1},s6)}},B0=oc;function c6(i){Pe(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 D0(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("span"),n=Re(i[0]),o=M(),l=P("span"),l.textContent=`${N("waiting_live_day_value")}`,r=M(),a=P("span"),a.textContent=`${N("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),m(e,t),m(t,n),m(e,o),m(e,l),S(s,r,u),S(s,a,u)},p(s,u){u&1&&We(n,s[0])},d(s){s&&(k(e),k(r),k(a))}}}function q0(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("span"),n=Re(i[1]),o=M(),l=P("span"),l.textContent=`${N("waiting_live_hour_value")}`,r=M(),a=P("span"),a.textContent=`${N("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),m(e,t),m(t,n),m(e,o),m(e,l),S(s,r,u),S(s,a,u)},p(s,u){u&2&&We(n,s[1])},d(s){s&&(k(e),k(r),k(a))}}}function N0(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("span"),n=Re(i[2]),o=M(),l=P("span"),l.textContent=`${N("waiting_live_minute_value")}`,r=M(),a=P("span"),a.textContent=`${N("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),m(e,t),m(t,n),m(e,o),m(e,l),S(s,r,u),S(s,a,u)},p(s,u){u&4&&We(n,s[2])},d(s){s&&(k(e),k(r),k(a))}}}function O0(i){let e,t,n,o,l;return{c(){e=P("div"),t=P("span"),n=Re(i[3]),o=M(),l=P("span"),l.textContent=`${N("waiting_live_second_value")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg")},m(r,a){S(r,e,a),m(e,t),m(t,n),m(e,o),m(e,l)},p(r,a){a&8&&We(n,r[3])},d(r){r&&k(e)}}}function f6(i){let e,t,n,o,l=i[0]&&D0(i),r=i[1]&&q0(i),a=i[2]&&N0(i),s=i[3]&&O0(i);return{c(){e=P("div"),l&&l.c(),t=M(),r&&r.c(),n=M(),a&&a.c(),o=M(),s&&s.c(),c(e,"class","timer__container svelte-1qpxtfg")},m(u,f){S(u,e,f),l&&l.m(e,null),m(e,t),r&&r.m(e,null),m(e,n),a&&a.m(e,null),m(e,o),s&&s.m(e,null)},p(u,[f]){u[0]?l?l.p(u,f):(l=D0(u),l.c(),l.m(e,t)):l&&(l.d(1),l=null),u[1]?r?r.p(u,f):(r=q0(u),r.c(),r.m(e,n)):r&&(r.d(1),r=null),u[2]?a?a.p(u,f):(a=N0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,f):(s=O0(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:Se,o:Se,d(u){u&&k(e),l&&l.d(),r&&r.d(),a&&a.d(),s&&s.d()}}}function d6(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,l,r,a,s,u,f=C=>String(C).padStart(2,"0"),p=C=>{let g=Math.floor(C/86400);g&&(C-=g*86400,t(0,l=f(g)));let w=Math.floor(C/3600);t(1,r=f(w));let b=Math.floor(C/60)%60;t(2,a=f(b));let E=C%60;t(3,s=f(E))},h=()=>{let C=Math.floor(Date.now()/1e3),g=n-C;p(g),g>=1?u=requestAnimationFrame(h):o()};return It(()=>{u=requestAnimationFrame(h)}),Hn(()=>{cancelAnimationFrame(u)}),i.$$set=C=>{"startTime"in C&&t(4,n=C.startTime),"onTimerOver"in C&&t(5,o=C.onTimerOver)},[l,r,a,s,n,o]}var lc=class extends H{constructor(e){super(),U(this,e,d6,f6,F,{startTime:4,onTimerOver:5},c6)}},F0=lc;function m6(i){let e,t,n,o,l,r,a=i[2].default,s=Te(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},i[0]],f={};for(let p=0;p<u.length;p+=1)f=ce(f,u[p]);return{c(){e=R("svg"),s&&s.c(),t=R("path"),n=R("path"),o=R("path"),l=R("path"),c(t,"fill","#fefffe"),c(t,"d","M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5"),gi(t,"opacity",".965"),c(n,"fill","#fefffe"),c(n,"d","M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82"),gi(n,"opacity",".965"),c(o,"fill","#fefffe"),c(o,"d","M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84"),gi(o,"opacity",".985"),c(l,"fill","#fefffe"),c(l,"d","M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54"),gi(l,"opacity",".986"),ke(e,f)},m(p,h){S(p,e,h),s&&s.m(e,null),m(e,t),m(e,n),m(e,o),m(e,l),r=!0},p(p,[h]){s&&s.p&&(!r||h&2)&&Ae(s,a,p,p[1],r?Ee(a,p[1],h,null):Le(p[1]),null),ke(e,f=Be(u,[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},h&1&&p[0]]))},i(p){r||(d(s,p),r=!0)},o(p){_(s,p),r=!1},d(p){p&&k(e),s&&s.d(p)}}}function p6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var rc=class extends H{constructor(e){super(),U(this,e,p6,m6,F,{})}},H0=rc;function _6(i){Pe(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 h6(i){let e,t,n,o,l;return o=new F0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=P("div"),t=P("span"),t.textContent=`${N("waiting_live_timer_title")}`,n=M(),V(o.$$.fragment),c(t,"class","timer__title svelte-15pewff"),c(e,"class","waiting-timer timer svelte-15pewff")},m(r,a){S(r,e,a),m(e,t),m(e,n),A(o,e,null),l=!0},p(r,a){let s={};a&2&&(s.startTime=r[1]||0),a&4&&(s.onTimerOver=r[3]),o.$set(s)},i(r){l||(d(o.$$.fragment,r),l=!0)},o(r){_(o.$$.fragment,r),l=!1},d(r){r&&k(e),L(o)}}}function g6(i){let e,t,n,o,l,r;return n=new H0({}),{c(){e=P("div"),t=P("div"),V(n.$$.fragment),o=M(),l=P("span"),l.textContent=`${N("waiting_live_upcoming_title")}`,c(t,"class","upcoming-icon svelte-15pewff"),c(l,"class","upcoming__title svelte-15pewff"),c(e,"class","upcoming svelte-15pewff")},m(a,s){S(a,e,s),m(e,t),A(n,t,null),m(e,o),m(e,l),r=!0},p:Se,i(a){r||(d(n.$$.fragment,a),r=!0)},o(a){_(n.$$.fragment,a),r=!1},d(a){a&&k(e),L(n)}}}function b6(i){let e,t,n,o,l,r=[g6,h6],a=[];function s(u,f){return u[2]?0:1}return t=s(i,-1),n=a[t]=r[t](i),{c(){e=P("div"),n.c(),c(e,"class","waiting-container svelte-15pewff"),c(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,f){S(u,e,f),a[t].m(e,null),l=!0},p(u,[f]){let p=t;t=s(u,f),t===p?a[t].p(u,f):(de(),_(a[p],1,1,()=>{a[p]=null}),me(),n=a[t],n?n.p(u,f):(n=a[t]=r[t](u),n.c()),d(n,1),n.m(e,null)),(!l||f&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&c(e,"style",o)},i(u){l||(d(n),l=!0)},o(u){_(n),l=!1},d(u){u&&k(e),a[t].d()}}}function v6(i,e,t){let n,{thumbUrl:o}=e,{startTime:l}=e,r=()=>t(2,n=!0);return i.$$set=a=>{"thumbUrl"in a&&t(0,o=a.thumbUrl),"startTime"in a&&t(1,l=a.startTime)},i.$$.update=()=>{i.$$.dirty&2&&t(2,n=l===void 0||l<Math.floor(Date.now()/1e3))},[o,l,n,r]}var sc=class extends H{constructor(e){super(),U(this,e,v6,b6,F,{thumbUrl:0,startTime:1},_6)}},ns=sc;function y6(i){Pe(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,l,r,a,s;return n=new ul({props:{style:"position: static; transform: translate(0, 0)"}}),{c(){e=P("div"),t=P("div"),V(n.$$.fragment),o=M(),l=P("p"),r=Re(i[1]),c(l,"class","waiting-title svelte-xvqwsa"),c(t,"class","waiting-caption svelte-xvqwsa"),c(e,"class","waiting-container svelte-xvqwsa"),c(e,"style",a=`background-image: url('${i[0]}')`)},m(u,f){S(u,e,f),m(e,t),A(n,t,null),m(t,o),m(t,l),m(l,r),s=!0},p(u,[f]){(!s||f&2)&&We(r,u[1]),(!s||f&1&&a!==(a=`background-image: url('${u[0]}')`))&&c(e,"style",a)},i(u){s||(d(n.$$.fragment,u),s=!0)},o(u){_(n.$$.fragment,u),s=!1},d(u){u&&k(e),L(n)}}}function w6(i,e,t){let{thumbUrl:n=""}=e,{kind:o}=e,l;return i.$$set=r=>{"thumbUrl"in r&&t(0,n=r.thumbUrl),"kind"in r&&t(2,o=r.kind)},i.$$.update=()=>{if(i.$$.dirty&4){let r={recover:N("waiting_live_recover_title"),record:N("waiting_record_title")};t(1,l=r[o]||"")}},[n,l,o]}var ac=class extends H{constructor(e){super(),U(this,e,w6,k6,F,{thumbUrl:0,kind:2},y6)}},pl=ac;var{window:S6}=ko;function P6(i){Pe(i,"svelte-12e19rp",".player-wrapper.svelte-12e19rp{position:absolute;width:100%;height:100%}.player-wrapper.svelte-12e19rp .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-12e19rp{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-12e19rp,.video-container.svelte-12e19rp,.ads-container.svelte-12e19rp{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-12e19rp{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-12e19rp{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-12e19rp{transition:none}.nocursor.svelte-12e19rp{cursor:none}.ads-container.svelte-12e19rp{z-index:var(--ads-container-z-index);background:var(--black)}")}function U0(i){let e,t;return e=new ns({props:{thumbUrl:i[3],startTime:i[4]?.startTime}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[0]&16&&(l.startTime=n[4]?.startTime),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function K0(i){let e,t;return e=new pl({props:{kind:"recover",thumbUrl:i[3]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function W0(i){let e,t;return e=new pl({props:{kind:"record",thumbUrl:i[3]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function j0(i){let e,t,n;return t=new ur({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","ads-container svelte-12e19rp"),D(e,"hidden",i[38]!=="ads")},m(o,l){S(o,e,l),A(t,e,null),n=!0},p(o,l){let r={};l[0]&256&&(r.adsSlotId=o[8]),l[0]&512&&(r.adsParams=o[9]),l[0]&1024&&(r.adsPreviewParam=o[10]),l[0]&2048&&(r.duration=o[11]),t.$set(r),(!n||l[1]&128)&&D(e,"hidden",o[38]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function G0(i){let e,t;return e=new hd({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&262144&&(l.title=n[18]),o[0]&524288&&(l.thumb=n[19]),o[0]&8388608&&(l.playNextVideo=n[23]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Q0(i){let e,t;return e=new B0({props:{title:i[2],isHidden:!i[36]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.title=n[2]),o[1]&32&&(l.isHidden=!n[36]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Y0(i){let e,t;return e=new xr({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[1]&160&&(l.isShifted=n[38]==="video"&&n[36]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Z0(i){let e,t,n;return t=new $l({props:{"aria-label":N("video360")}}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","spherical-video-icon svelte-12e19rp")},m(o,l){S(o,e,l),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function X0(i){let e,t;return e=new es({props:{thumbUrl:i[3],chromecastDeviceName:i[54]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[1]&8388608&&(l.chromecastDeviceName=n[54]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function J0(i){let e,t;return e=new $r({props:{shifted:i[36],captions:i[56],position:i[57],playerSize:i[34]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[1]&32&&(l.shifted=n[36]),o[1]&33554432&&(l.captions=n[56]),o[1]&67108864&&(l.position=n[57]),o[1]&8&&(l.playerSize=n[34]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function x0(i){let e,t,n,o,l;return t=new ts({}),{c(){e=P("div"),V(t.$$.fragment)},m(r,a){S(r,e,a),A(t,e,null),n=!0,o||(l=[pe(e,"contextmenu",Ht(i[108])),pe(e,"click",rt(i[119]))],o=!0)},p:Se,i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){_(t.$$.fragment,r),n=!1},d(r){r&&k(e),L(t),o=!1,it(l)}}}function $0(i){let e,t,n;function o(r){i[159](r)}let l={bottomHidden:i[38]==="thumb"||i[38]==="LiveWaitingStart"||i[38]==="LiveWaitingRecover"||i[38]==="LiveWaitingRecord",bottomNoSmooth:i[50],showControls:i[36],isAds:i[38]==="ads",canRewindLive:i[6]&&i[58]!==0,logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[14],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],supportLink:i[21],customFullscreenSupported:op,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[106],returnFocus:i[158],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};return i[41]!==void 0&&(l.controlsElementRef=i[41]),e=new Jr({props:l}),ge.push(()=>Ne(e,"controlsElementRef",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&128&&(s.bottomHidden=r[38]==="thumb"||r[38]==="LiveWaitingStart"||r[38]==="LiveWaitingRecover"||r[38]==="LiveWaitingRecord"),a[1]&524288&&(s.bottomNoSmooth=r[50]),a[1]&32&&(s.showControls=r[36]),a[1]&128&&(s.isAds=r[38]==="ads"),a[0]&64|a[1]&134217728&&(s.canRewindLive=r[6]&&r[58]!==0),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&16384&&(s.logoTargetUrl=r[14]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&8388608&&(s.playNextVideo=r[23]),a[0]&16777216&&(s.playPrevVideo=r[24]),a[0]&33554432&&(s.repeatPlaylist=r[25]),a[1]&131072&&(s.returnFocus=r[158]),a[0]&67108864&&(s.seekToInteractive=r[26]),a[0]&134217728&&(s.toggleGraph=r[27]),a[0]&268435456&&(s.playPrevChapter=r[28]),!t&&a[1]&1024&&(t=!0,s.controlsElementRef=r[41],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function ep(i){let e,t;return e=new ul({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function tp(i){let e,t;return e=new Id({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function ip(i){let e,t;return e=new hr({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function np(i){let e,t,n,o,l,r,a,s,u,f,p,h,C,g,w,b,E,v,y,I,K,B,O,oe,he;e=new is({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let G=i[38]==="LiveWaitingStart"&&U0(i),X=i[38]==="LiveWaitingRecover"&&K0(i),ue=i[38]==="LiveWaitingRecord"&&W0(i),j=i[7]&&i[22]&&j0(i),z=i[31]&&i[18]&&i[19]&&G0(i),Q=i[44]&&Q0(i),$=i[49]&&Y0(i),W=i[53]&&Z0(i),Y=i[39]&&X0(i),ie=i[55].value!=="off"&&J0(i),re=i[37]&&x0(i),Ve=i[22]&&$0(i);w=new fr({props:{isLive:i[59],isHidden:!i[43],isPlaying:i[51],position:i[57],duration:i[60]}}),E=new P0({props:{data:i[103]}});function Je(fe){i[161](fe)}let Ce={supportLink:i[21],returnFocus:i[160],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(Ce.menuElementRef=i[32]),y=new Xf({props:Ce}),ge.push(()=>Ne(y,"menuElementRef",Je));let Me=i[42]&&ep(i),ze=i[62]&&tp(i),$e=i[63]&&ip(i);return{c(){V(e.$$.fragment),t=M(),G&&G.c(),n=M(),X&&X.c(),o=M(),ue&&ue.c(),l=M(),j&&j.c(),r=M(),z&&z.c(),a=M(),Q&&Q.c(),s=M(),$&&$.c(),u=M(),W&&W.c(),f=M(),Y&&Y.c(),p=M(),ie&&ie.c(),h=M(),re&&re.c(),C=M(),Ve&&Ve.c(),g=M(),V(w.$$.fragment),b=M(),V(E.$$.fragment),v=M(),V(y.$$.fragment),K=M(),Me&&Me.c(),B=M(),ze&&ze.c(),O=M(),$e&&$e.c(),oe=ut()},m(fe,_e){A(e,fe,_e),S(fe,t,_e),G&&G.m(fe,_e),S(fe,n,_e),X&&X.m(fe,_e),S(fe,o,_e),ue&&ue.m(fe,_e),S(fe,l,_e),j&&j.m(fe,_e),S(fe,r,_e),z&&z.m(fe,_e),S(fe,a,_e),Q&&Q.m(fe,_e),S(fe,s,_e),$&&$.m(fe,_e),S(fe,u,_e),W&&W.m(fe,_e),S(fe,f,_e),Y&&Y.m(fe,_e),S(fe,p,_e),ie&&ie.m(fe,_e),S(fe,h,_e),re&&re.m(fe,_e),S(fe,C,_e),Ve&&Ve.m(fe,_e),S(fe,g,_e),A(w,fe,_e),S(fe,b,_e),A(E,fe,_e),S(fe,v,_e),A(y,fe,_e),S(fe,K,_e),Me&&Me.m(fe,_e),S(fe,B,_e),ze&&ze.m(fe,_e),S(fe,O,_e),$e&&$e.m(fe,_e),S(fe,oe,_e),he=!0},p(fe,_e){let at={};_e[0]&32|_e[1]&192&&(at.hidden=fe[38]!=="thumb"||fe[37]||fe[92]&&fe[5]),_e[0]&8&&(at.thumbUrl=fe[3]),_e[0]&536870912&&(at.startVideo=fe[29]),e.$set(at),fe[38]==="LiveWaitingStart"?G?(G.p(fe,_e),_e[1]&128&&d(G,1)):(G=U0(fe),G.c(),d(G,1),G.m(n.parentNode,n)):G&&(de(),_(G,1,1,()=>{G=null}),me()),fe[38]==="LiveWaitingRecover"?X?(X.p(fe,_e),_e[1]&128&&d(X,1)):(X=K0(fe),X.c(),d(X,1),X.m(o.parentNode,o)):X&&(de(),_(X,1,1,()=>{X=null}),me()),fe[38]==="LiveWaitingRecord"?ue?(ue.p(fe,_e),_e[1]&128&&d(ue,1)):(ue=W0(fe),ue.c(),d(ue,1),ue.m(l.parentNode,l)):ue&&(de(),_(ue,1,1,()=>{ue=null}),me()),fe[7]&&fe[22]?j?(j.p(fe,_e),_e[0]&4194432&&d(j,1)):(j=j0(fe),j.c(),d(j,1),j.m(r.parentNode,r)):j&&(de(),_(j,1,1,()=>{j=null}),me()),fe[31]&&fe[18]&&fe[19]?z?(z.p(fe,_e),_e[0]&786432|_e[1]&1&&d(z,1)):(z=G0(fe),z.c(),d(z,1),z.m(a.parentNode,a)):z&&(de(),_(z,1,1,()=>{z=null}),me()),fe[44]?Q?(Q.p(fe,_e),_e[1]&8192&&d(Q,1)):(Q=Q0(fe),Q.c(),d(Q,1),Q.m(s.parentNode,s)):Q&&(de(),_(Q,1,1,()=>{Q=null}),me()),fe[49]?$?($.p(fe,_e),_e[1]&262144&&d($,1)):($=Y0(fe),$.c(),d($,1),$.m(u.parentNode,u)):$&&(de(),_($,1,1,()=>{$=null}),me()),fe[53]?W?_e[1]&4194304&&d(W,1):(W=Z0(fe),W.c(),d(W,1),W.m(f.parentNode,f)):W&&(de(),_(W,1,1,()=>{W=null}),me()),fe[39]?Y?(Y.p(fe,_e),_e[1]&256&&d(Y,1)):(Y=X0(fe),Y.c(),d(Y,1),Y.m(p.parentNode,p)):Y&&(de(),_(Y,1,1,()=>{Y=null}),me()),fe[55].value!=="off"?ie?(ie.p(fe,_e),_e[1]&16777216&&d(ie,1)):(ie=J0(fe),ie.c(),d(ie,1),ie.m(h.parentNode,h)):ie&&(de(),_(ie,1,1,()=>{ie=null}),me()),fe[37]?re?(re.p(fe,_e),_e[1]&64&&d(re,1)):(re=x0(fe),re.c(),d(re,1),re.m(C.parentNode,C)):re&&(de(),_(re,1,1,()=>{re=null}),me()),fe[22]?Ve?(Ve.p(fe,_e),_e[0]&4194304&&d(Ve,1)):(Ve=$0(fe),Ve.c(),d(Ve,1),Ve.m(g.parentNode,g)):Ve&&(de(),_(Ve,1,1,()=>{Ve=null}),me());let we={};_e[1]&268435456&&(we.isLive=fe[59]),_e[1]&4096&&(we.isHidden=!fe[43]),_e[1]&1048576&&(we.isPlaying=fe[51]),_e[1]&67108864&&(we.position=fe[57]),_e[1]&536870912&&(we.duration=fe[60]),w.$set(we);let Fe={};_e[0]&2097152&&(Fe.supportLink=fe[21]),_e[1]&131072&&(Fe.returnFocus=fe[160]),_e[1]&4&&(Fe.visible=fe[33]),_e[1]&512&&(Fe.playerContainerRef=fe[40]),_e[1]&1024&&(Fe.controlsContainerRef=fe[41]),_e[1]&1073741824&&(Fe.position=fe[61]),!I&&_e[1]&2&&(I=!0,Fe.menuElementRef=fe[32],qe(()=>I=!1)),y.$set(Fe),fe[42]?Me?_e[1]&2048&&d(Me,1):(Me=ep(fe),Me.c(),d(Me,1),Me.m(B.parentNode,B)):Me&&(de(),_(Me,1,1,()=>{Me=null}),me()),fe[62]?ze?_e[2]&1&&d(ze,1):(ze=tp(fe),ze.c(),d(ze,1),ze.m(O.parentNode,O)):ze&&(de(),_(ze,1,1,()=>{ze=null}),me()),fe[63]?$e?_e[2]&2&&d($e,1):($e=ip(fe),$e.c(),d($e,1),$e.m(oe.parentNode,oe)):$e&&(de(),_($e,1,1,()=>{$e=null}),me())},i(fe){he||(d(e.$$.fragment,fe),d(G),d(X),d(ue),d(j),d(z),d(Q),d($),d(W),d(Y),d(ie),d(re),d(Ve),d(w.$$.fragment,fe),d(E.$$.fragment,fe),d(y.$$.fragment,fe),d(Me),d(ze),d($e),he=!0)},o(fe){_(e.$$.fragment,fe),_(G),_(X),_(ue),_(j),_(z),_(Q),_($),_(W),_(Y),_(ie),_(re),_(Ve),_(w.$$.fragment,fe),_(E.$$.fragment,fe),_(y.$$.fragment,fe),_(Me),_(ze),_($e),he=!1},d(fe){fe&&(k(t),k(n),k(o),k(l),k(r),k(a),k(s),k(u),k(f),k(p),k(h),k(C),k(g),k(b),k(v),k(K),k(B),k(O),k(oe)),L(e,fe),G&&G.d(fe),X&&X.d(fe),ue&&ue.d(fe),j&&j.d(fe),z&&z.d(fe),Q&&Q.d(fe),$&&$.d(fe),W&&W.d(fe),Y&&Y.d(fe),ie&&ie.d(fe),re&&re.d(fe),Ve&&Ve.d(fe),L(w,fe),L(E,fe),L(y,fe),Me&&Me.d(fe),ze&&ze.d(fe),$e&&$e.d(fe)}}}function I6(i){let e,t,n,o,l=i[52],r,a,s,u,f=np(i);return{c(){e=P("div"),t=P("div"),o=M(),f.c(),r=ut(),c(t,"class","video-container svelte-12e19rp"),c(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),c(t,"data-testid","video-container"),c(t,"data-is-playing",i[51]),D(t,"fast-rotate",!i[1].isSmoothVideoRotate),c(e,"class","video-wrapper svelte-12e19rp"),D(e,"hidden",i[38]!=="video"),D(e,"nocursor",i[45])},m(p,h){S(p,e,h),m(e,t),i[157](t),S(p,o,h),f.m(p,h),S(p,r,h),a=!0,s||(u=[pe(e,"contextmenu",Ht(i[108])),pe(e,"mousedown",Ht(i[113])),pe(e,"mouseup",Ht(i[114])),pe(e,"click",Ht(i[116])),pe(e,"dblclick",Ht(i[115]))],s=!0)},p(p,h){(!a||h[1]&32784&&n!==(n=`transform: rotate(${p[35]}deg) scale(${p[46]})`))&&c(t,"style",n),(!a||h[1]&1048576)&&c(t,"data-is-playing",p[51]),(!a||h[0]&2)&&D(t,"fast-rotate",!p[1].isSmoothVideoRotate),(!a||h[1]&128)&&D(e,"hidden",p[38]!=="video"),(!a||h[1]&16384)&&D(e,"nocursor",p[45]),h[1]&2097152&&F(l,l=p[52])?(de(),_(f,1,1,Se),me(),f=np(p),f.c(),d(f,1),f.m(r.parentNode,r)):f.p(p,h)},i(p){a||(d(f),a=!0)},o(p){_(f),a=!1},d(p){p&&(k(e),k(o),k(r)),i[157](null),f.d(p),s=!1,it(u)}}}function T6(i){let e,t,n,o,l,r,a,s={toggleFullscreen:i[106],hideContextMenu:i[107],showHotKeyHelpers:i[117],showKeyMap:i[118],isAds:i[38]==="ads",fakePlayButtonHandler:i[47]?i[105]:void 0,$$slots:{default:[I6]},$$scope:{ctx:i}};return t=new gd({props:s}),i[162](t),{c(){e=P("div"),V(t.$$.fragment),n=M(),o=P("div"),c(o,"class","overlay-container"),c(e,"class","player-wrapper svelte-12e19rp")},m(u,f){S(u,e,f),A(t,e,null),m(e,n),m(e,o),i[163](o),i[164](e),l=!0,r||(a=[pe(S6,"blur",i[107]),pe(e,"mouseenter",i[109]),pe(e,"mouseleave",i[111]),pe(e,"mousemove",i[112]),pe(e,"click",i[120],!0),pe(e,"focusin",i[110],!0)],r=!0)},p(u,f){let p={};f[1]&128&&(p.isAds=u[38]==="ads"),f[1]&65536&&(p.fakePlayButtonHandler=u[47]?u[105]:void 0),f[0]&1073741823|f[1]&2147418111|f[2]&3|f[6]&32&&(p.$$scope={dirty:f,ctx:u}),t.$set(p)},i(u){l||(d(t.$$.fragment,u),l=!0)},o(u){_(t.$$.fragment,u),l=!1},d(u){u&&k(e),i[162](null),L(t),i[163](null),i[164](null),r=!1,it(a)}}}var op=!0;function cc(i){return i?i.offsetTop+cc(i.offsetParent):0}function lp(i){return i?i.offsetLeft+lp(i.offsetParent):0}function E6(i,e,t){let n,o,l,r,a,s,u,f,p,h,C,g,w,b,E,v,y,I,K,B,O,oe,he,G,X,ue,j,z,Q,$,W,Y,ie,re,Ve,Je,Ce,Me,ze,$e,fe,_e,at,{store:we}=e,{uiConfig:Fe}=e,{title:ft}=e,{thumbUrl:Ke}=e,{videoContainer:Xe}=e,{interactiveContainer:je}=e,{live:et}=e,{autoplay:x}=e,{canRewindLive:Oe}=e,{showAds:Ge}=e,{adsSlotId:se=void 0}=e,{adsParams:le=void 0}=e,{adsPreviewParam:lt=void 0}=e,{duration:be=void 0}=e,{logoClickable:Ue}=e,{logoHidden:tt}=e,{logoTargetUrl:dt=""}=e,{showNextPrevButtons:bt=!1}=e,{nextButtonActive:Tt=!1}=e,{prevButtonActive:Qe=!1}=e,{endScreenVideoTitle:zt=void 0}=e,{endScreenVideoThumb:Vt=void 0}=e,{isOneVideoPlaylist:yt=!1}=e,{supportLink:ai}=e,{shadowRootContainer:st=void 0}=e,{outerContainerRef:vt=void 0}=e,{playerStarted:jt=!1}=e,{fullScreenTarget:ve=void 0}=e,{showMiniTimer:wt=!1}=e,{showEndScreen:Mt=!0}=e,{playNextVideo:Et=uc}=e,{playPrevVideo:Ct=uc}=e,{repeatPlaylist:Ut=uc}=e,{seekToInteractive:St}=e,{toggleGraph:Wi}=e,{playPrevChapter:un}=e,{firstStart:ui}=e,ci=we.getLogger().createComponentLog("Root component"),Ji=we.interfaceLanguage$;q(i,Ji,Z=>t(52,Y=Z));let Vi=we.state.playbackState$;q(i,Vi,Z=>t(154,z=Z));let xi=we.ads.playbackState;q(i,xi,Z=>t(155,Q=Z));let Ri=we.state.positionWithScrubbing$;q(i,Ri,Z=>t(57,Ce=Z));let Bi=we.state.duration$;q(i,Bi,Z=>t(60,$e=Z));let bi=we.playerPhase;q(i,bi,Z=>t(38,he=Z));let fi=we.ui.isFullscreen;q(i,fi,Z=>t(144,g=Z));let di=we.ui.controlsVisible;q(i,di,Z=>t(36,I=Z));let vi=we.ui.settingsMenuVisible;q(i,vi,Z=>t(142,s=Z));let yi=we.ui.scrubbingInProgress;q(i,yi,Z=>t(146,v=Z));let Gt=we.ui.contextMenu.visible$;q(i,Gt,Z=>t(33,n=Z));let $i=we.ui.debugPanelVisible;q(i,$i,Z=>t(63,at=Z));let Nt=we.state.isLoaderVisible;q(i,Nt,Z=>t(156,$=Z));let ki=we.state.isEnded$;q(i,ki,Z=>t(143,f=Z));let wi=we.state.chromecastConnected$;q(i,wi,Z=>t(39,ue=Z));let en=we.state.chromecastDeviceName$;q(i,en,Z=>t(54,re=Z));let $t=we.ads.postrollPassed;q(i,$t,Z=>t(149,O=Z));let ei=we.state.isLive$;q(i,ei,Z=>t(59,ze=Z));let ti=we.state.isPlaying$;q(i,ti,Z=>t(51,W=Z));let ji=we.state.crashed$;q(i,ji,Z=>t(37,B=Z));let Si=we.webApi.annotationsApi,ii=we.webApi.pictureInPictureApi,Gi=we.state.currentSubtitle$;q(i,Gi,Z=>t(55,Ve=Z));let Qt=we.state.currentSubtitleCaptions$;q(i,Qt,Z=>t(56,Je=Z));let Ci=we.state.duration$;q(i,Ci,Z=>t(58,Me=Z));let Di=we.state.graphIsOpened$;q(i,Di,Z=>t(150,oe=Z));let ni=we.ui.playerSize;q(i,ni,Z=>t(34,h=Z));let mi=we.ui.is3DVideo;q(i,mi,Z=>t(49,p=Z));let At=we.ui.icon3DVideoVisible;q(i,At,Z=>t(53,ie=Z));let Pi=we.ui.rotateAlpha;q(i,Pi,Z=>t(35,E=Z));let Yt=we.state.isInteractive,pi=we.state.isInteractiveTime$;q(i,pi,Z=>t(147,y=Z));let oi=we.state.isInteractiveExpectation$;q(i,oi,Z=>t(153,j=Z));let li=we.state.hasInteractiveBranches,_i=we.ui.touched;q(i,_i,Z=>t(151,G=Z));let qi=we.ui.modals.hotKeyMap.data;q(i,qi,Z=>t(171,u=Z));let tn=we.ui.modals.hotKeyMap.show;q(i,tn,Z=>t(62,_e=Z));let nn=we.ui.overlayContainer$,Ni=we.ui.controls.interactiveTimeIndicator;q(i,Ni,Z=>t(172,C=Z));let Ot=we.state.showInteractiveTimeIndicator,Ii=we.ui.contextMenu.position$;q(i,Ii,Z=>t(61,fe=Z));let qt=we.actions.internal.closeSettingsMenu,{fakeIsPlaying$:ri}=Rn();q(i,ri,Z=>t(145,b=Z));let Zt,Qi,Oi,Fi,nt;qi.set(Ef());let hi,Xt,He=De(!1);q(i,He,Z=>t(50,w=Z));let cn,on=De(!1);q(i,on,Z=>t(152,X=Z));let ln=De(),rn=De(!1);q(i,rn,Z=>t(148,K=Z));let Yi=!1,Ti=!1,Hi=!1,Zi=!(x&&!Fe.controls.showOnStartupAtAutoplay),Rt,zi,kn,_n,fn,sn=!1,Xi,dn=!1,{toggle:wn}=ri,Ei=!1,Ui=null,Kt;ii?.setContext(wl());let En=()=>{x&&!Yt&&Fe.controls.showOnStartupAtAutoplay&&Wt(Fe.controls.hideTimeout)};we.setUiCallbacks({onStarted:En});let Sn=()=>{window.clearTimeout(Oi),on.set(!1)},An=()=>{window.clearTimeout(Fi),ln.set(null)},Wt=Z=>{Sn(),on.set(!0),Oi=window.setTimeout(()=>on.set(!1),Z);let Bt=Z-100;cn=window.setTimeout(()=>{w&&He.set(!1)},Bt>0?Bt:Z)},Ln=(Z,Bt)=>{An(),ln.set(Bt),Fi=window.setTimeout(()=>ln.set(null),Z)},Mn=mi.subscribe(Z=>{At.set(Z),Z&&(window.clearTimeout(nt),nt=window.setTimeout(()=>At.set(!1),Fe.controls.hide360IconTimeout))}),mn=async()=>{let Z=lo();if(Z){let Bt=Pl(),Cn=hn();Z=Bt===Cn||Bt===st}if(Z){Wt(Fe.controls.hideTimeoutFullscreen);try{await ii?.remove()}catch(Bt){ci({message:String(Bt)})}}fi.set(Z),we.getAdmanWrapper().setFullscreen(Z),g?we.callbacks?.onFullscreenEnter?.():we.callbacks?.onFullscreenExit?.()},pn=Z=>{let Bt=Z;ni.set({width:Bt.target.width,height:Bt.target.height})};It(()=>(sr(mn),Fe.features.annotationsInside&&Si?.init(Zt),Lo(ii)&&(ii?.assignPlayerContainer(Zt),ii?.registryExternalEventHandlers({resize:pn})),je&&Xe.parentElement?.insertBefore(je,Xe.nextSibling),()=>{window.clearTimeout(Oi),window.clearTimeout(cn),window.clearTimeout(Fi),window.clearTimeout(nt),Mn(),ii?.dispose(),ar(mn)}));let hn=()=>{let Z=Fe.features.fullscreenInternalTargetPlayerContainer||!vt?Zt:vt,Bt=Z.getRootNode(),Cn=Bt instanceof ShadowRoot?Bt.host:Bt,Fn=ve instanceof HTMLElement&&ve.contains(Cn);return Fe.allowChangingFullscreenTarget&&ve&&Fn?ve:Z},gn=async()=>{lo()?(await rr(document),ci({message:"exit fullscreen"})):(ci({message:"request fullscreen"}),await lr(hn()))},ne=()=>{qt(),Gt.set(!1)},_t=Z=>{Gt.set(!0),Ii.set({left:Z.clientX,top:Z.clientY})};function an(){rn.set(!0),Yt||Wt(Fe.controls.hideTimeoutCursor)}function ee(){Yt||(He.set(!0),Wt(Fe.controls.hideTimeoutCursor))}function mt(){rn.set(!1),t(133,Ti=!1),t(132,Yi=!1),Ei=!1,we.actions.internal.releaseCamera()}function si(Z){if(C&&Ot){let Bt=Z.currentTarget,Cn=cc(Bt),Fn=lp(Bt),bo=Z.pageX-Fn,Gn=Z.pageY-Cn,{left:no,bottom:vo,right:Wo}=C,yo=Wo-no;return bo>=no-yo&&Gn<=vo+yo}}function Nn(Z){if(Zt){let Bt=cc(Z.currentTarget),Cn=h.height,Fn=Z.pageY-Bt;if(si(Z)){t(133,Ti=!1);return}Fn<40?t(133,Ti=!0):Fn>Cn-40?t(132,Yi=!0):(t(133,Ti=!1),s||t(132,Yi=!1))}}function On(Z){Nn(Z),Rt||Wt(Fe.controls.hideTimeoutCursor),p&&Ei&&Ui&&we.actions.internal.moveCameraFocusPX(Ui.clientX-Z.clientX,Ui.clientY-Z.clientY,Z.timeStamp-Ui.timeStamp),Ui=Z}let te=Z=>{Z.button===0&&(Ei=!0,we.actions.internal.holdCamera()),Wt(Fe.controls.hideTimeoutCursor)},eo=Z=>{Z.button===0&&(Ui=Z,Ei=!1,we.actions.internal.releaseCamera()),Wt(Fe.controls.hideTimeoutCursor)},gl=()=>{op&&(ci({message:"double click on video"}),gn(),Wt(Fe.controls.hideTimeoutCursor))},bl=()=>{if(n||s){ne();return}if(!(f&&!li)){if(dn)return wn();if(Kt?.focus(),!jt){ui(),Wt(Fe.controls.hideTimeoutCursor);return}we.actions.internal.togglePlay(),Wt(Fe.controls.hideTimeoutCursor)}},vl=Z=>{ne(),_i.set(!0),Wt(Fe.controls.hideTimeout),Z&&Ln(Fe.controls.hideHotKeyHelpers,Z)},yl=()=>{ne(),we.callbacks?.onOpenHotKeyMap?we.callbacks?.onOpenHotKeyMap(u):tn.update(Z=>!Z)},Fo=()=>{if(n||s){ne();return}},kl=()=>{_i.set(!0)},to=we.ui.contextMenu.openedByBtnKeyboard$;q(i,to,Z=>t(141,a=Z));let Ho=we.ui.contextMenu.btnRef$;q(i,Ho,Z=>t(140,r=Z));let jn,Zn=we.ui.contextMenu.openedByHotKey$;q(i,Zn,Z=>t(139,l=Z));let mo=we.ui.contextMenu.lastActiveElem$;q(i,mo,Z=>t(138,o=Z));function zo(Z){ge[Z?"unshift":"push"](()=>{Xe=Z,t(0,Xe)})}let po=()=>Kt?.focus();function _o(Z){Qi=Z,t(41,Qi)}let Uo=()=>Kt?.focus();function ho(Z){jn=Z,t(32,jn)}function io(Z){ge[Z?"unshift":"push"](()=>{Kt=Z,t(48,Kt)})}function go(Z){ge[Z?"unshift":"push"](()=>{Xt=Z,t(30,Xt)})}function Ko(Z){ge[Z?"unshift":"push"](()=>{Zt=Z,t(40,Zt)})}return i.$$set=Z=>{"store"in Z&&t(125,we=Z.store),"uiConfig"in Z&&t(1,Fe=Z.uiConfig),"title"in Z&&t(2,ft=Z.title),"thumbUrl"in Z&&t(3,Ke=Z.thumbUrl),"videoContainer"in Z&&t(0,Xe=Z.videoContainer),"interactiveContainer"in Z&&t(126,je=Z.interactiveContainer),"live"in Z&&t(4,et=Z.live),"autoplay"in Z&&t(5,x=Z.autoplay),"canRewindLive"in Z&&t(6,Oe=Z.canRewindLive),"showAds"in Z&&t(7,Ge=Z.showAds),"adsSlotId"in Z&&t(8,se=Z.adsSlotId),"adsParams"in Z&&t(9,le=Z.adsParams),"adsPreviewParam"in Z&&t(10,lt=Z.adsPreviewParam),"duration"in Z&&t(11,be=Z.duration),"logoClickable"in Z&&t(12,Ue=Z.logoClickable),"logoHidden"in Z&&t(13,tt=Z.logoHidden),"logoTargetUrl"in Z&&t(14,dt=Z.logoTargetUrl),"showNextPrevButtons"in Z&&t(15,bt=Z.showNextPrevButtons),"nextButtonActive"in Z&&t(16,Tt=Z.nextButtonActive),"prevButtonActive"in Z&&t(17,Qe=Z.prevButtonActive),"endScreenVideoTitle"in Z&&t(18,zt=Z.endScreenVideoTitle),"endScreenVideoThumb"in Z&&t(19,Vt=Z.endScreenVideoThumb),"isOneVideoPlaylist"in Z&&t(20,yt=Z.isOneVideoPlaylist),"supportLink"in Z&&t(21,ai=Z.supportLink),"shadowRootContainer"in Z&&t(127,st=Z.shadowRootContainer),"outerContainerRef"in Z&&t(128,vt=Z.outerContainerRef),"playerStarted"in Z&&t(22,jt=Z.playerStarted),"fullScreenTarget"in Z&&t(129,ve=Z.fullScreenTarget),"showMiniTimer"in Z&&t(130,wt=Z.showMiniTimer),"showEndScreen"in Z&&t(131,Mt=Z.showEndScreen),"playNextVideo"in Z&&t(23,Et=Z.playNextVideo),"playPrevVideo"in Z&&t(24,Ct=Z.playPrevVideo),"repeatPlaylist"in Z&&t(25,Ut=Z.repeatPlaylist),"seekToInteractive"in Z&&t(26,St=Z.seekToInteractive),"toggleGraph"in Z&&t(27,Wi=Z.toggleGraph),"playPrevChapter"in Z&&t(28,un=Z.playPrevChapter),"firstStart"in Z&&t(29,ui=Z.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[5]&3&&t(42,hi=(he==="video"&&$||he==="ads"&&Q==="inactive")&&!B),i.$$.dirty[0]&1073741824&&nn.set(Xt),i.$$.dirty[4]&1073743872&&(t(134,Hi=Zi&&z!==C6.PLAYING),Zi||t(135,Zi=!0)),i.$$.dirty[4]&545523456&&t(136,Rt=y&&!s&&!(Yi||Ti)&&!(Hi&&!j)),i.$$.dirty[1]&448|i.$$.dirty[4]&272897024&&di.set((Hi||s||v||ue||X)&&!Rt&&(he==="video"||he==="ads")&&!B),i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&134217792&&t(43,zi=Fe.features.thumbTimer&&wt&&he==="video"&&!I&&!B&&!Yt&&(Fe.hideThumbTimerAfterTouch&&!G||!Fe.hideThumbTimerAfterTouch)),i.$$.dirty[1]&128|i.$$.dirty[4]&68157440&&t(44,kn=he==="video"&&!oe&&g),i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&34078848&&t(31,_n=Mt&&(Ge&&O||!Ge)&&f&&!B),i.$$.dirty[1]&33|i.$$.dirty[4]&25165824&&t(45,fn=K&&!(I||_n)&&!y),i.$$.dirty[0]&2|i.$$.dirty[4]&12591104&&(!v&&sn&&!y&&Wt(Fe.controls.hideTimeoutCursor),t(137,sn=v)),i.$$.dirty[0]&1|i.$$.dirty[1]&24&&t(46,Xi=Xe&&E%180?h.height/h.width:1),i.$$.dirty[4]&2097152&&t(47,dn=b!==null),i.$$.dirty[1]&6|i.$$.dirty[4]&131072&&Ro(jn,n,a),i.$$.dirty[1]&4|i.$$.dirty[4]&65536){let Z=r;Z&&ol(Z,n,to)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&32768&&Ro(jn,n,l),i.$$.dirty[1]&4|i.$$.dirty[4]&16384){let Z=o;Z&&Uf(Z,n,Zn)}},[Xe,Fe,ft,Ke,et,x,Oe,Ge,se,le,lt,be,Ue,tt,dt,bt,Tt,Qe,zt,Vt,yt,ai,jt,Et,Ct,Ut,St,Wi,un,ui,Xt,_n,jn,n,h,E,I,B,he,ue,Zt,Qi,hi,zi,kn,fn,Xi,dn,Kt,p,w,W,Y,ie,re,Ve,Je,Ce,Me,ze,$e,fe,_e,at,Ji,Vi,xi,Ri,Bi,bi,fi,di,vi,yi,Gt,$i,Nt,ki,wi,en,$t,ei,ti,ji,Gi,Qt,Ci,Di,ni,mi,At,Pi,Yt,pi,oi,_i,qi,tn,Ni,Ii,ri,He,on,ln,rn,wn,gn,ne,_t,an,ee,mt,On,te,eo,gl,bl,vl,yl,Fo,kl,to,Ho,Zn,mo,we,je,st,vt,ve,wt,Mt,Yi,Ti,Hi,Zi,Rt,sn,o,l,r,a,s,f,g,b,v,y,K,O,oe,G,X,j,z,Q,$,zo,po,_o,Uo,ho,io,go,Ko]}var fc=class extends H{constructor(e){super(),U(this,e,E6,T6,F,{store:125,uiConfig:1,title:2,thumbUrl:3,videoContainer:0,interactiveContainer:126,live:4,autoplay:5,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,logoTargetUrl:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:127,outerContainerRef:128,playerStarted:22,fullScreenTarget:129,showMiniTimer:130,showEndScreen:131,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},P6,[-1,-1,-1,-1,-1,-1,-1])}},rp=fc;import{PlaybackState as B6}from"@vkontakte/videoplayer-core";import{clientChecker as os,noop as _c}from"@vkontakte/videoplayer-shared";function A6(i){Pe(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 sp(i){let e,t,n,o,l,r,a,s,u,f,p,h,C,g,w,b=N("doubletap_seek_step",{seconds:i[2].toFixed(0)})+"",E;return{c(){e=P("div"),n=M(),o=P("div"),l=P("div"),r=P("div"),s=M(),u=P("div"),p=M(),h=P("div"),g=M(),w=P("p"),E=Re(b),c(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),c(r,"class",a="triangle "+i[0]+" svelte-nhq2ld"),c(u,"class",f="triangle "+i[0]+" svelte-nhq2ld"),c(h,"class",C="triangle "+i[0]+" svelte-nhq2ld"),c(l,"class","triangles-wrapper svelte-nhq2ld"),c(w,"class","step-caption svelte-nhq2ld"),c(o,"class","info svelte-nhq2ld")},m(v,y){S(v,e,y),S(v,n,y),S(v,o,y),m(o,l),m(l,r),m(l,s),m(l,u),m(l,p),m(l,h),m(o,g),m(o,w),m(w,E)},p(v,y){y&1&&t!==(t="semicircle "+v[0]+" svelte-nhq2ld")&&c(e,"class",t),y&1&&a!==(a="triangle "+v[0]+" svelte-nhq2ld")&&c(r,"class",a),y&1&&f!==(f="triangle "+v[0]+" svelte-nhq2ld")&&c(u,"class",f),y&1&&C!==(C="triangle "+v[0]+" svelte-nhq2ld")&&c(h,"class",C),y&4&&b!==(b=N("doubletap_seek_step",{seconds:v[2].toFixed(0)})+"")&&We(E,b)},d(v){v&&(k(e),k(n),k(o))}}}function L6(i){let e,t,n,o,l=i[1]&&sp(i);return{c(){e=P("div"),l&&l.c(),c(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(r,a){S(r,e,a),l&&l.m(e,null),n||(o=pe(e,"click",rt(i[3]())),n=!0)},p(r,[a]){r[1]?l?l.p(r,a):(l=sp(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&1&&t!==(t="double-click-area "+r[0]+" svelte-nhq2ld")&&c(e,"class",t)},i:Se,o:Se,d(r){r&&k(e),l&&l.d(),n=!1,o()}}}function M6(i,e,t){let{side:n}=e,{seekStep:o=0}=e,{handleSingleFirstClick:l}=e,{handleSecondClick:r}=e,a=!1,s=0,u=0,f=o,p=()=>()=>{u+=1,t(2,f=o*(u-1)),u===1?l():(t(1,a=!0),r()),window.clearTimeout(s),s=window.setTimeout(()=>{u=0,t(1,a=!1)},300)};return Hn(()=>{window.clearTimeout(s)}),i.$$set=h=>{"side"in h&&t(0,n=h.side),"seekStep"in h&&t(4,o=h.seekStep),"handleSingleFirstClick"in h&&t(5,l=h.handleSingleFirstClick),"handleSecondClick"in h&&t(6,r=h.handleSecondClick)},[n,a,f,p,o,l,r]}var dc=class extends H{constructor(e){super(),U(this,e,M6,L6,F,{side:0,seekStep:4,handleSingleFirstClick:5,handleSecondClick:6},A6)}},mc=dc;function V6(i,e,t){let{playNextVideo:n}=e;return It(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var pc=class extends H{constructor(e){super(),U(this,e,V6,null,F,{playNextVideo:0})}},ap=pc;var{window:R6}=ko;function D6(i){Pe(i,"svelte-6x5lql",".player-wrapper.svelte-6x5lql{position:absolute;width:100%;height:100%}.player-wrapper.svelte-6x5lql .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-6x5lql{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-6x5lql,.video-container.svelte-6x5lql,.ads-container.svelte-6x5lql{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-6x5lql{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-6x5lql{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-6x5lql{transition:none}.ads-container.svelte-6x5lql{z-index:var(--ads-container-z-index);background:var(--black)}")}function up(i){let e,t,n,o=i[45]&&cp(i),l=i[46]&&fp(i);return{c(){o&&o.c(),e=M(),l&&l.c(),t=ut()},m(r,a){o&&o.m(r,a),S(r,e,a),l&&l.m(r,a),S(r,t,a),n=!0},p(r,a){r[45]?o?(o.p(r,a),a[1]&16384&&d(o,1)):(o=cp(r),o.c(),d(o,1),o.m(e.parentNode,e)):o&&(de(),_(o,1,1,()=>{o=null}),me()),r[46]?l?(l.p(r,a),a[1]&32768&&d(l,1)):(l=fp(r),l.c(),d(l,1),l.m(t.parentNode,t)):l&&(de(),_(l,1,1,()=>{l=null}),me())},i(r){n||(d(o),d(l),n=!0)},o(r){_(o),_(l),n=!1},d(r){r&&(k(e),k(t)),o&&o.d(r),l&&l.d(r)}}}function cp(i){let e,t;return e=new mc({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[133]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&2&&(l.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function fp(i){let e,t;return e=new mc({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[134]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&2&&(l.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function dp(i){let e,t;return e=new ns({props:{thumbUrl:i[2],startTime:i[3]?.startTime}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[0]&8&&(l.startTime=n[3]?.startTime),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function mp(i){let e,t;return e=new pl({props:{kind:"recover",thumbUrl:i[2]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function pp(i){let e,t;return e=new pl({props:{kind:"record",thumbUrl:i[2]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function _p(i){let e,t,n;return t=new ur({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","ads-container svelte-6x5lql"),D(e,"hidden",i[36]!=="ads")},m(o,l){S(o,e,l),A(t,e,null),n=!0},p(o,l){let r={};l[0]&128&&(r.adsSlotId=o[7]),l[0]&256&&(r.adsParams=o[8]),l[0]&512&&(r.adsPreviewParam=o[9]),l[0]&1024&&(r.duration=o[10]),t.$set(r),(!n||l[1]&32)&&D(e,"hidden",o[36]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function hp(i){let e,t;return e=new ap({props:{playNextVideo:i[22]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&4194304&&(l.playNextVideo=n[22]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function gp(i){let e,t;return e=new xr({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function bp(i){let e,t,n;return t=new $l({props:{"aria-label":N("video360")}}),{c(){e=P("div"),V(t.$$.fragment),c(e,"class","spherical-video-icon svelte-6x5lql")},m(o,l){S(o,e,l),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function vp(i){let e,t;return e=new es({props:{thumbUrl:i[2],chromecastDeviceName:i[53]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[1]&4194304&&(l.chromecastDeviceName=n[53]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function yp(i){let e,t;return e=new $r({props:{shifted:i[30],captions:i[55],position:i[32],playerSize:i[33],isMobile:!0}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o[0]&1073741824&&(l.shifted=n[30]),o[1]&16777216&&(l.captions=n[55]),o[1]&2&&(l.position=n[32]),o[1]&4&&(l.playerSize=n[33]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function kp(i){let e,t,n,o,l;return t=new ts({}),{c(){e=P("div"),V(t.$$.fragment)},m(r,a){S(r,e,a),A(t,e,null),n=!0,o||(l=pe(e,"click",rt(i[101])),o=!0)},p:Se,i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){_(t.$$.fragment,r),n=!1},d(r){r&&k(e),L(t),o=!1,l()}}}function wp(i){let e,t,n;function o(r){i[135](r)}let l={bottomHidden:i[36]==="thumb"||i[36]==="LiveWaitingStart"||i[36]==="LiveWaitingRecover"||i[36]==="LiveWaitingRecord"||i[36]==="ads",showControls:i[30],bottomNoSmooth:i[47],isAds:i[36]==="ads",canRewindLive:i[5]&&i[56]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showNextPrevButtons:i[14],nextButtonActive:i[15],prevButtonActive:i[16],isOneVideoPlaylist:i[19],supportLink:i[20],customFullscreenSupported:i[41],playNextVideo:i[22],playPrevVideo:i[23],repeatPlaylist:i[24],toggleFullscreen:i[98],seekToInteractive:i[25],toggleGraph:i[26],playPrevChapter:i[27],onDisabledPlayPrevChapterClick:i[104],onDisabledSeekToInteractiveClick:i[105]};return i[39]!==void 0&&(l.controlsElementRef=i[39]),e=new Jr({props:l}),ge.push(()=>Ne(e,"controlsElementRef",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&32&&(s.bottomHidden=r[36]==="thumb"||r[36]==="LiveWaitingStart"||r[36]==="LiveWaitingRecover"||r[36]==="LiveWaitingRecord"||r[36]==="ads"),a[0]&1073741824&&(s.showControls=r[30]),a[1]&65536&&(s.bottomNoSmooth=r[47]),a[1]&32&&(s.isAds=r[36]==="ads"),a[0]&32|a[1]&33554432&&(s.canRewindLive=r[5]&&r[56]!==0),a[0]&2048&&(s.logoClickable=r[11]),a[0]&4096&&(s.logoHidden=r[12]),a[0]&8192&&(s.logoTargetUrl=r[13]),a[0]&16384&&(s.showNextPrevButtons=r[14]),a[0]&32768&&(s.nextButtonActive=r[15]),a[0]&65536&&(s.prevButtonActive=r[16]),a[0]&524288&&(s.isOneVideoPlaylist=r[19]),a[0]&1048576&&(s.supportLink=r[20]),a[1]&1024&&(s.customFullscreenSupported=r[41]),a[0]&4194304&&(s.playNextVideo=r[22]),a[0]&8388608&&(s.playPrevVideo=r[23]),a[0]&16777216&&(s.repeatPlaylist=r[24]),a[0]&33554432&&(s.seekToInteractive=r[25]),a[0]&67108864&&(s.toggleGraph=r[26]),a[0]&134217728&&(s.playPrevChapter=r[27]),!t&&a[1]&256&&(t=!0,s.controlsElementRef=r[39],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Sp(i){let e,t;return e=new ul({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Cp(i){let e,t;return e=new hr({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Pp(i){let e,t,n=i[5]&&i[79]&&!i[50].has("TIMELINE"),o,l,r,a,s,u,f,p,h,C,g,w,b,E,v,y,I;e=new is({props:{hidden:i[36]!=="thumb"||i[35]||i[90]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let K=n&&up(i),B=i[36]==="LiveWaitingStart"&&dp(i),O=i[36]==="LiveWaitingRecover"&&mp(i),oe=i[36]==="LiveWaitingRecord"&&pp(i),he=i[6]&&i[21]&&_p(i),G=i[43]&&i[17]&&i[18]&&hp(i),X=i[51]&&gp(i),ue=i[52]&&bp(i),j=i[37]&&vp(i),z=i[54].value!=="off"&&yp(i),Q=i[35]&&kp(i),$=i[21]&&wp(i);b=new fr({props:{isLive:i[57],isHidden:!i[42],isPlaying:i[48],position:i[32],duration:i[31]}});let W=i[40]&&Sp(i),Y=i[58]&&Cp(i);return{c(){V(e.$$.fragment),t=M(),K&&K.c(),o=M(),B&&B.c(),l=M(),O&&O.c(),r=M(),oe&&oe.c(),a=M(),he&&he.c(),s=M(),G&&G.c(),u=M(),X&&X.c(),f=M(),ue&&ue.c(),p=M(),j&&j.c(),h=M(),z&&z.c(),C=M(),Q&&Q.c(),g=M(),$&&$.c(),w=M(),V(b.$$.fragment),E=M(),W&&W.c(),v=M(),Y&&Y.c(),y=ut()},m(ie,re){A(e,ie,re),S(ie,t,re),K&&K.m(ie,re),S(ie,o,re),B&&B.m(ie,re),S(ie,l,re),O&&O.m(ie,re),S(ie,r,re),oe&&oe.m(ie,re),S(ie,a,re),he&&he.m(ie,re),S(ie,s,re),G&&G.m(ie,re),S(ie,u,re),X&&X.m(ie,re),S(ie,f,re),ue&&ue.m(ie,re),S(ie,p,re),j&&j.m(ie,re),S(ie,h,re),z&&z.m(ie,re),S(ie,C,re),Q&&Q.m(ie,re),S(ie,g,re),$&&$.m(ie,re),S(ie,w,re),A(b,ie,re),S(ie,E,re),W&&W.m(ie,re),S(ie,v,re),Y&&Y.m(ie,re),S(ie,y,re),I=!0},p(ie,re){let Ve={};re[0]&16|re[1]&48&&(Ve.hidden=ie[36]!=="thumb"||ie[35]||ie[90]&&ie[4]),re[0]&4&&(Ve.thumbUrl=ie[2]),re[0]&268435456&&(Ve.startVideo=ie[28]),e.$set(Ve),re[0]&32|re[1]&524288&&(n=ie[5]&&ie[79]&&!ie[50].has("TIMELINE")),n?K?(K.p(ie,re),re[0]&32|re[1]&524288&&d(K,1)):(K=up(ie),K.c(),d(K,1),K.m(o.parentNode,o)):K&&(de(),_(K,1,1,()=>{K=null}),me()),ie[36]==="LiveWaitingStart"?B?(B.p(ie,re),re[1]&32&&d(B,1)):(B=dp(ie),B.c(),d(B,1),B.m(l.parentNode,l)):B&&(de(),_(B,1,1,()=>{B=null}),me()),ie[36]==="LiveWaitingRecover"?O?(O.p(ie,re),re[1]&32&&d(O,1)):(O=mp(ie),O.c(),d(O,1),O.m(r.parentNode,r)):O&&(de(),_(O,1,1,()=>{O=null}),me()),ie[36]==="LiveWaitingRecord"?oe?(oe.p(ie,re),re[1]&32&&d(oe,1)):(oe=pp(ie),oe.c(),d(oe,1),oe.m(a.parentNode,a)):oe&&(de(),_(oe,1,1,()=>{oe=null}),me()),ie[6]&&ie[21]?he?(he.p(ie,re),re[0]&2097216&&d(he,1)):(he=_p(ie),he.c(),d(he,1),he.m(s.parentNode,s)):he&&(de(),_(he,1,1,()=>{he=null}),me()),ie[43]&&ie[17]&&ie[18]?G?(G.p(ie,re),re[0]&393216|re[1]&4096&&d(G,1)):(G=hp(ie),G.c(),d(G,1),G.m(u.parentNode,u)):G&&(de(),_(G,1,1,()=>{G=null}),me()),ie[51]?X?re[1]&1048576&&d(X,1):(X=gp(ie),X.c(),d(X,1),X.m(f.parentNode,f)):X&&(de(),_(X,1,1,()=>{X=null}),me()),ie[52]?ue?re[1]&2097152&&d(ue,1):(ue=bp(ie),ue.c(),d(ue,1),ue.m(p.parentNode,p)):ue&&(de(),_(ue,1,1,()=>{ue=null}),me()),ie[37]?j?(j.p(ie,re),re[1]&64&&d(j,1)):(j=vp(ie),j.c(),d(j,1),j.m(h.parentNode,h)):j&&(de(),_(j,1,1,()=>{j=null}),me()),ie[54].value!=="off"?z?(z.p(ie,re),re[1]&8388608&&d(z,1)):(z=yp(ie),z.c(),d(z,1),z.m(C.parentNode,C)):z&&(de(),_(z,1,1,()=>{z=null}),me()),ie[35]?Q?(Q.p(ie,re),re[1]&16&&d(Q,1)):(Q=kp(ie),Q.c(),d(Q,1),Q.m(g.parentNode,g)):Q&&(de(),_(Q,1,1,()=>{Q=null}),me()),ie[21]?$?($.p(ie,re),re[0]&2097152&&d($,1)):($=wp(ie),$.c(),d($,1),$.m(w.parentNode,w)):$&&(de(),_($,1,1,()=>{$=null}),me());let Je={};re[1]&67108864&&(Je.isLive=ie[57]),re[1]&2048&&(Je.isHidden=!ie[42]),re[1]&131072&&(Je.isPlaying=ie[48]),re[1]&2&&(Je.position=ie[32]),re[1]&1&&(Je.duration=ie[31]),b.$set(Je),ie[40]?W?re[1]&512&&d(W,1):(W=Sp(ie),W.c(),d(W,1),W.m(v.parentNode,v)):W&&(de(),_(W,1,1,()=>{W=null}),me()),ie[58]?Y?re[1]&134217728&&d(Y,1):(Y=Cp(ie),Y.c(),d(Y,1),Y.m(y.parentNode,y)):Y&&(de(),_(Y,1,1,()=>{Y=null}),me())},i(ie){I||(d(e.$$.fragment,ie),d(K),d(B),d(O),d(oe),d(he),d(G),d(X),d(ue),d(j),d(z),d(Q),d($),d(b.$$.fragment,ie),d(W),d(Y),I=!0)},o(ie){_(e.$$.fragment,ie),_(K),_(B),_(O),_(oe),_(he),_(G),_(X),_(ue),_(j),_(z),_(Q),_($),_(b.$$.fragment,ie),_(W),_(Y),I=!1},d(ie){ie&&(k(t),k(o),k(l),k(r),k(a),k(s),k(u),k(f),k(p),k(h),k(C),k(g),k(w),k(E),k(v),k(y)),L(e,ie),K&&K.d(ie),B&&B.d(ie),O&&O.d(ie),oe&&oe.d(ie),he&&he.d(ie),G&&G.d(ie),X&&X.d(ie),ue&&ue.d(ie),j&&j.d(ie),z&&z.d(ie),Q&&Q.d(ie),$&&$.d(ie),L(b,ie),W&&W.d(ie),Y&&Y.d(ie)}}}function q6(i){let e,t,n,o,l,r=i[49],a,s,u,f,p,h,C=Pp(i);return{c(){e=P("div"),t=P("div"),n=P("div"),l=M(),C.c(),a=M(),s=P("div"),c(n,"class","video-container svelte-6x5lql"),c(n,"style",o=`transform: rotate(${i[34]}deg) scale(${i[44]})`),c(n,"data-testid","video-container"),c(n,"data-is-playing",i[48]),D(n,"fast-rotate",!i[1].isSmoothVideoRotate),c(t,"class","video-wrapper svelte-6x5lql"),D(t,"hidden",i[36]!=="video"),c(s,"class","overlay-container"),c(e,"class","player-wrapper svelte-6x5lql"),c(e,"role","region"),c(e,"aria-label",u=N("aria_label_video_player")),c(e,"tabindex","-1")},m(g,w){S(g,e,w),m(e,t),m(t,n),i[132](n),m(e,l),C.m(e,null),m(e,a),m(e,s),i[136](s),i[137](e),f=!0,p||(h=[pe(R6,"blur",i[99]),pe(t,"click",Ht(i[100])),pe(e,"click",i[102],!0),pe(e,"focusin",i[103],!0)],p=!0)},p(g,w){(!f||w[1]&8200&&o!==(o=`transform: rotate(${g[34]}deg) scale(${g[44]})`))&&c(n,"style",o),(!f||w[1]&131072)&&c(n,"data-is-playing",g[48]),(!f||w[0]&2)&&D(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!f||w[1]&32)&&D(t,"hidden",g[36]!=="video"),w[1]&262144&&F(r,r=g[49])?(de(),_(C,1,1,Se),me(),C=Pp(g),C.c(),d(C,1),C.m(e,a)):C.p(g,w)},i(g){f||(d(C),f=!0)},o(g){_(C),f=!1},d(g){g&&k(e),i[132](null),C.d(g),i[136](null),i[137](null),p=!1,it(h)}}}function N6(i,e,t){let n,o,l,r,a,s,u,f,p,h,C,g,w,b,E,v,y,I,K,B,O,oe,he,G,X,ue,j,z,Q,$,W,Y,ie,re,Ve,Je,{store:Ce}=e,{uiConfig:Me}=e,{thumbUrl:ze}=e,{videoContainer:$e}=e,{interactiveContainer:fe}=e,{live:_e}=e,{autoplay:at}=e,{canRewindLive:we}=e,{showAds:Fe}=e,{adsSlotId:ft=void 0}=e,{adsParams:Ke=void 0}=e,{adsPreviewParam:Xe=void 0}=e,{duration:je=void 0}=e,{logoClickable:et}=e,{logoHidden:x}=e,{logoTargetUrl:Oe=""}=e,{showNextPrevButtons:Ge=!1}=e,{nextButtonActive:se=!1}=e,{prevButtonActive:le=!1}=e,{endScreenVideoTitle:lt=void 0}=e,{endScreenVideoThumb:be=void 0}=e,{isOneVideoPlaylist:Ue=!1}=e,{supportLink:tt}=e,{shadowRootContainer:dt=void 0}=e,{outerContainerRef:bt=void 0}=e,{showMiniTimer:Tt=!1}=e,{fullScreenTarget:Qe=void 0}=e,{playerStarted:zt=!1}=e,{showEndScreen:Vt=!0}=e,{playNextVideo:yt=_c}=e,{playPrevVideo:ai=_c}=e,{repeatPlaylist:st=_c}=e,{seekToInteractive:vt}=e,{toggleGraph:jt}=e,{playPrevChapter:ve}=e,{firstStart:wt}=e,{seekTime:Mt}=e,Et=Ce.getLogger().createComponentLog("Root component"),Ct=Ce.interfaceLanguage$;q(i,Ct,ne=>t(49,j=ne));let Ut=Ce.state.playbackState$;q(i,Ut,ne=>t(129,he=ne));let St=Ce.ads.playbackState;q(i,St,ne=>t(130,G=ne));let Wi=Ce.state.positionWithScrubbing$;q(i,Wi,ne=>t(32,a=ne));let un=Ce.state.duration$;q(i,un,ne=>t(31,r=ne));let ui=Ce.playerPhase;q(i,ui,ne=>t(36,K=ne));let ci=Ce.ui.isFullscreen;q(i,ci,ne=>t(143,u=ne));let Ji=Ce.ui.controlsVisible;q(i,Ji,ne=>t(30,o=ne));let Vi=Ce.ui.interactiveHideMobileControls;q(i,Vi,ne=>t(121,C=ne));let xi=Ce.ui.settingsMenuVisible;q(i,xi,ne=>t(119,n=ne));let Ri=Ce.ui.scrubbingInProgress;q(i,Ri,ne=>t(122,w=ne));let Bi=Ce.ui.debugPanelVisible;q(i,Bi,ne=>t(58,Je=ne));let bi=Ce.state.isLoaderVisible;q(i,bi,ne=>t(131,X=ne));let fi=Ce.state.isEnded$;q(i,fi,ne=>t(124,v=ne));let di=Ce.state.chromecastConnected$;q(i,di,ne=>t(37,B=ne));let vi=Ce.state.chromecastDeviceName$;q(i,vi,ne=>t(53,W=ne));let yi=Ce.ads.postrollPassed;q(i,yi,ne=>t(125,y=ne));let Gt=Ce.ui.mobileUnmuteButtonExpanded,$i=Ce.ui.mobileUnmuteButtonVisible,Nt=Ce.state.isLive$;q(i,Nt,ne=>t(57,Ve=ne));let ki=Ce.state.isPlaying$;q(i,ki,ne=>t(48,ue=ne));let wi=Ce.state.isActiveLive$;q(i,wi,ne=>t(120,s=ne));let en=Ce.state.isRewindableLive$,$t=Ce.state.crashed$;q(i,$t,ne=>t(35,E=ne));let ei=Ce.webApi.annotationsApi,ti=Ce.webApi.pictureInPictureApi,ji=Ce.state.videoSize$;q(i,ji,ne=>t(144,p=ne));let Si=Ce.state.currentSubtitle$;q(i,Si,ne=>t(54,Y=ne));let ii=Ce.state.currentSubtitleCaptions$;q(i,ii,ne=>t(55,ie=ne));let Gi=Ce.state.duration$;q(i,Gi,ne=>t(56,re=ne));let Qt=Ce.state.graphIsOpened$;q(i,Qt,ne=>t(128,oe=ne));let Ci=Ce.ui.playerSize;q(i,Ci,ne=>t(33,f=ne));let Di=Ce.ui.is3DVideo;q(i,Di,ne=>t(51,Q=ne));let ni=Ce.ui.icon3DVideoVisible;q(i,ni,ne=>t(52,$=ne));let mi=Ce.ui.rotateAlpha;q(i,mi,ne=>t(34,g=ne));let At=Ce.state.isInteractive,Pi=Ce.state.isInteractiveTime$;q(i,Pi,ne=>t(123,b=ne));let Yt=Ce.state.isInteractiveExpectation$;q(i,Yt,ne=>t(127,O=ne));let pi=Ce.state.hasInteractiveBranches,oi=Ce.ui.controls.disabledControls$;q(i,oi,ne=>t(50,z=ne));let li=Ce.ui.touched;q(i,li,ne=>t(126,I=ne));let _i=Ce.ui.overlayContainer$,qi=Ce.state.loadedMetadata$;q(i,qi,ne=>t(142,l=ne));let tn=Ce.actions.internal.closeSettingsMenu,nn=Ce.callbacks?.onDisabledPlayPrevChapterClick,Ni=Ce.callbacks?.onDisabledSeekToInteractiveClick,Ot,Ii,qt,ri,Zt,Qi,Oi,Fi=De(!1);q(i,Fi,ne=>t(47,h=ne));let nt,hi=!1,Xt,He=!1,cn,on=!0,ln,rn,Yi=!1,Ti;ti?.setContext(wl());let Hi=ne=>{clearTimeout(ri),ne&&($i.set(!0),Gt.set(!0),ri=window.setTimeout(()=>{Gt.set(!1)},Me.controls.collapseMobileUnmute),At||Rt(Me.controls.hideTimeoutMobile))};Ce.setUiCallbacks({onStarted:Hi});let Zi=()=>{window.clearTimeout(qt),t(114,hi=!1),C&&Vi.set(!1)},Rt=ne=>{Zi(),t(114,hi=!0),qt=window.setTimeout(()=>t(114,hi=!1),ne);let _t=ne-100;nt=window.setTimeout(()=>{h&&Fi.set(!1)},_t>0?_t:ne)},zi=Di.subscribe(ne=>{ni.set(ne),ne&&(window.clearTimeout(Zt),Zt=window.setTimeout(()=>ni.set(!1),Me.controls.hide360IconTimeout))}),kn=async()=>{let ne=lo();if(ne){let _t=Pl(),an=dn(),ee=os.isSamsungBrowser&&_t===dt;ne=_t===an||ee}if(ne){Rt(Me.controls.hideTimeoutFullscreen);try{await ti?.remove()}catch(_t){Et({message:String(_t)})}try{let _t=p?.width&&p?.height?p:f;await If(_t)}catch(_t){Et({message:String(_t)})}}ci.set(ne),Ce.getAdmanWrapper().setFullscreen(ne),u?Ce.callbacks?.onFullscreenEnter?.():Ce.callbacks?.onFullscreenExit?.()},_n=ne=>{let _t=ne;Ci.set({width:_t.target.width,height:_t.target.height})};It(()=>(sr(kn),Me.features.annotationsInside&&ei?.init(Ot),Lo(ti)&&(ti?.assignPlayerContainer(Ot),ti?.registryExternalEventHandlers({resize:_n})),t(41,on=!os.isIphoneOrOldIpad),fe&&$e.parentElement?.insertBefore(fe,$e.nextSibling),()=>{window.clearTimeout(qt),window.clearTimeout(nt),window.clearTimeout(ri),window.clearTimeout(Zt),zi(),ti?.dispose(),ar(kn)}));let fn=!0,sn=!0,Xi=ne=>{let _t=a+(ne==="forward"?1:-1)*Me.controls.seekStepMobile/1e3;_t<0?(t(45,fn=!1),_t=0):_t>=r&&(t(46,sn=!1),_t=r),t(116,He=!0),Mt(_t)},dn=()=>{let ne=os.isIOS||Me.features.fullscreenInternalTargetPlayerContainer||!bt?Ot:bt,_t=ne.getRootNode(),an=_t instanceof ShadowRoot?_t.host:_t,ee=Qe instanceof HTMLElement&&Qe.contains(an);return Me.allowChangingFullscreenTarget&&Qe&&ee?Qe:ne},wn=async()=>{if(lo())await rr(document),Et({message:"exit fullscreen"});else{if(Et({message:"request fullscreen"}),os.isIOS&&!l)return;await lr(dn())}},Ei=()=>{tn()},Ui=()=>{if(n){Ei();return}if(!zt){wt(),Rt(Me.controls.hideTimeoutCursor);return}t(116,He=!1),o?Zi():Rt(Me.controls.hideTimeoutMobile)},Kt=()=>{if(n){Ei();return}},En=()=>{li.set(!0)},Sn=()=>{At||(Fi.set(!0),Rt(Me.controls.hideTimeoutCursor))},An=ne=>{nn&&(nn(ne),Rt(Me.controls.hideTimeoutMobile))},Wt=ne=>{Ni&&(Ni(ne),Rt(Me.controls.hideTimeoutMobile))};function Ln(ne){ge[ne?"unshift":"push"](()=>{$e=ne,t(0,$e)})}let Mn=()=>Xi("backward"),mn=()=>Xi("forward");function pn(ne){Ii=ne,t(39,Ii)}function hn(ne){ge[ne?"unshift":"push"](()=>{Oi=ne,t(29,Oi)})}function gn(ne){ge[ne?"unshift":"push"](()=>{Ot=ne,t(38,Ot)})}return i.$$set=ne=>{"store"in ne&&t(106,Ce=ne.store),"uiConfig"in ne&&t(1,Me=ne.uiConfig),"thumbUrl"in ne&&t(2,ze=ne.thumbUrl),"videoContainer"in ne&&t(0,$e=ne.videoContainer),"interactiveContainer"in ne&&t(107,fe=ne.interactiveContainer),"live"in ne&&t(3,_e=ne.live),"autoplay"in ne&&t(4,at=ne.autoplay),"canRewindLive"in ne&&t(5,we=ne.canRewindLive),"showAds"in ne&&t(6,Fe=ne.showAds),"adsSlotId"in ne&&t(7,ft=ne.adsSlotId),"adsParams"in ne&&t(8,Ke=ne.adsParams),"adsPreviewParam"in ne&&t(9,Xe=ne.adsPreviewParam),"duration"in ne&&t(10,je=ne.duration),"logoClickable"in ne&&t(11,et=ne.logoClickable),"logoHidden"in ne&&t(12,x=ne.logoHidden),"logoTargetUrl"in ne&&t(13,Oe=ne.logoTargetUrl),"showNextPrevButtons"in ne&&t(14,Ge=ne.showNextPrevButtons),"nextButtonActive"in ne&&t(15,se=ne.nextButtonActive),"prevButtonActive"in ne&&t(16,le=ne.prevButtonActive),"endScreenVideoTitle"in ne&&t(17,lt=ne.endScreenVideoTitle),"endScreenVideoThumb"in ne&&t(18,be=ne.endScreenVideoThumb),"isOneVideoPlaylist"in ne&&t(19,Ue=ne.isOneVideoPlaylist),"supportLink"in ne&&t(20,tt=ne.supportLink),"shadowRootContainer"in ne&&t(108,dt=ne.shadowRootContainer),"outerContainerRef"in ne&&t(109,bt=ne.outerContainerRef),"showMiniTimer"in ne&&t(110,Tt=ne.showMiniTimer),"fullScreenTarget"in ne&&t(111,Qe=ne.fullScreenTarget),"playerStarted"in ne&&t(21,zt=ne.playerStarted),"showEndScreen"in ne&&t(112,Vt=ne.showEndScreen),"playNextVideo"in ne&&t(22,yt=ne.playNextVideo),"playPrevVideo"in ne&&t(23,ai=ne.playPrevVideo),"repeatPlaylist"in ne&&t(24,st=ne.repeatPlaylist),"seekToInteractive"in ne&&t(25,vt=ne.seekToInteractive),"toggleGraph"in ne&&t(26,jt=ne.toggleGraph),"playPrevChapter"in ne&&t(27,ve=ne.playPrevChapter),"firstStart"in ne&&t(28,wt=ne.firstStart),"seekTime"in ne&&t(113,Mt=ne.seekTime)},i.$$.update=()=>{i.$$.dirty[1]&48|i.$$.dirty[4]&192&&t(40,Qi=(K==="video"&&X||K==="ads"&&G==="inactive")&&!E),i.$$.dirty[0]&536870912&&_i.set(Oi),i.$$.dirty[4]&32&&t(115,Xt=he!==B6.PLAYING),i.$$.dirty[3]&274726912|i.$$.dirty[4]&25&&t(117,cn=oe||C||!hi&&(v&&!!pi||Xt&&O)),i.$$.dirty[1]&112|i.$$.dirty[3]&635437056&&Ji.set((Xt||n||w||B||hi&&!He)&&!cn&&K==="video"&&!E),i.$$.dirty[0]&1073741826|i.$$.dirty[1]&48|i.$$.dirty[3]&131072|i.$$.dirty[4]&4&&t(42,ln=Me.features.thumbTimer&&Tt&&K==="video"&&!o&&!E&&!At&&(Me.hideThumbTimerAfterTouch&&!I||!Me.hideThumbTimerAfterTouch)),i.$$.dirty[0]&64|i.$$.dirty[1]&16|i.$$.dirty[3]&524288|i.$$.dirty[4]&3&&t(43,rn=Vt&&(Fe&&y||!Fe)&&v&&!E),i.$$.dirty[0]&2|i.$$.dirty[3]&1644167168&&(!w&&Yi&&!b&&Rt(Me.controls.hideTimeoutMobile),t(118,Yi=w)),i.$$.dirty[0]&1|i.$$.dirty[1]&12&&t(44,Ti=$e&&g%180?f.height/f.width:1),i.$$.dirty[1]&3|i.$$.dirty[3]&134217728&&(t(45,fn=a>0),t(46,sn=!s&&a<r))},[$e,Me,ze,_e,at,we,Fe,ft,Ke,Xe,je,et,x,Oe,Ge,se,le,lt,be,Ue,tt,zt,yt,ai,st,vt,jt,ve,wt,Oi,o,r,a,f,g,E,K,B,Ot,Ii,Qi,on,ln,rn,Ti,fn,sn,h,ue,j,z,Q,$,W,Y,ie,re,Ve,Je,Ct,Ut,St,Wi,un,ui,ci,Ji,Vi,xi,Ri,Bi,bi,fi,di,vi,yi,Nt,ki,wi,en,$t,ji,Si,ii,Gi,Qt,Ci,Di,ni,mi,At,Pi,Yt,oi,li,qi,Fi,Xi,wn,Ei,Ui,Kt,En,Sn,An,Wt,Ce,fe,dt,bt,Tt,Qe,Vt,Mt,hi,Xt,He,cn,Yi,n,s,C,w,b,v,y,I,O,oe,he,G,X,Ln,Mn,mn,pn,hn,gn]}var hc=class extends H{constructor(e){super(),U(this,e,N6,q6,F,{store:106,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:107,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,shadowRootContainer:108,outerContainerRef:109,showMiniTimer:110,fullScreenTarget:111,playerStarted:21,showEndScreen:112,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:113},D6,[-1,-1,-1,-1,-1,-1])}},Ip=hc;function z6(i){Pe(i,"svelte-1tl3een",`.root.svelte-1tl3een{--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 @@ function Se(){}function ue(i,e){for(let t in e)i[t]=e[t];return i}function ds(i)
|
|
|
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);--mobile-settings-bg:#2C2D2E;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--mobile-settings-menu-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;background:var(--black)}*{-webkit-tap-highlight-color:transparent}button{border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}svg:not(.interactiveContainer svg){pointer-events:none}*:focus, *:focus-visible{outline:none}*:focus-visible{box-shadow:var(--focused-element-shadow)}.hidden{visibility:hidden;opacity:0}.overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index)}.out-of-view{position:absolute !important;left:-1000vh !important}`)}function U6(i){let e,t,n;function o(r){i[61](r)}let l={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],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[38]};return i[33]!==void 0&&(l.videoContainer=i[33]),e=new rp({props:l}),be.push(()=>Oe(e,"videoContainer",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&2&&(s.title=r[1]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&8&&(s.playerStarted=r[34]),a[0]&67108864&&(s.playNextVideo=r[26]),a[0]&134217728&&(s.playPrevVideo=r[27]),a[0]&268435456&&(s.repeatPlaylist=r[28]),a[0]&536870912&&(s.seekToInteractive=r[29]),a[0]&1073741824&&(s.toggleGraph=r[30]),a[1]&1&&(s.playPrevChapter=r[31]),!t&&a[1]&4&&(t=!0,s.videoContainer=r[33],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function K6(i){let e,t,n;function o(r){i[60](r)}let l={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],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[38],seekTime:i[32]};return i[33]!==void 0&&(l.videoContainer=i[33]),e=new Ip({props:l}),be.push(()=>Oe(e,"videoContainer",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&8&&(s.playerStarted=r[34]),a[0]&67108864&&(s.playNextVideo=r[26]),a[0]&134217728&&(s.playPrevVideo=r[27]),a[0]&268435456&&(s.repeatPlaylist=r[28]),a[0]&536870912&&(s.seekToInteractive=r[29]),a[0]&1073741824&&(s.toggleGraph=r[30]),a[1]&1&&(s.playPrevChapter=r[31]),!t&&a[1]&4&&(t=!0,s.videoContainer=r[33],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function W6(i){let e,t,n,o,l=[K6,U6],r=[];function a(s,u){return s[14]?0:1}return t=a(i,[-1,-1,-1]),n=r[t]=l[t](i),{c(){e=P("div"),n.c(),c(e,"class","root svelte-1tl3een")},m(s,u){C(s,e,u),r[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?r[t].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),n=r[t],n?n.p(s,u):(n=r[t]=l[t](s),n.c()),d(n,1),n.m(e,null))},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&k(e),r[t].d()}}}function j6(i,e,t){let n,{sources:o}=e,{store:l}=e,{microStoresRoot:r}=e,{videoConfig:a}=e,{uiConfig:s}=e,{title:u}=e,{thumbUrl:f}=e,{interactiveContainer:p}=e,{subtitles:h}=e,{live:S}=e,{preload:g}=e,{autoplay:w}=e,{volume:b=void 0}=e,{muted:E=void 0}=e,{fromTime:v}=e,{canRewindLive:y}=e,{showAds:I}=e,{adsSlotId:K=void 0}=e,{adsParams:B=void 0}=e,{adsPreviewParam:O=void 0}=e,{duration:ne=void 0}=e,{logoClickable:ge}=e,{logoHidden:G}=e,{isMobile:X}=e,{showNextPrevButtons:ae=!1}=e,{nextButtonActive:j=!1}=e,{prevButtonActive:z=!1}=e,{endScreenVideoTitle:Q=void 0}=e,{endScreenVideoThumb:$=void 0}=e,{isOneVideoPlaylist:W=!1}=e,{supportLink:Y}=e,{shadowRootContainer:ie=void 0}=e,{outerContainerRef:le=void 0}=e,{fullScreenTarget:Ve=void 0}=e,{failoverHosts:Xe=void 0}=e,{showMiniTimer:Ce=!1}=e,{saveRate:Me}=e,{playNextVideo:ze=_l}=e,{playPrevVideo:$e=_l}=e,{repeatPlaylist:ce=_l}=e,{seekToInteractive:he=_l}=e,{toggleGraph:at=_l}=e,{playPrevChapter:we=_l}=e,{volumeMultiplier:Fe}=e,{subscribers:ct,stores:je}=r;zc(s);let Ke=Vt(),Ze=s.logoLink,xe=l.ui.debugPanelVisible,x=l.ui.playerSize,qe=l.state.isLive$;q(i,qe,ke=>t(63,n=ke));let He,fe=null,re=!1;l.getAdmanWrapper().init({switchFromAdsToVideo:l.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:l.actions.internal.switchFromVideoToAds,setMuted:l.actions.external.setMuted},l.ads,{isMobile:l.ui.isMobile,mobileUnmuteButtonVisible:l.ui.mobileUnmuteButtonVisible,vsid:l.vsid}),Jc(l,je);let nt=(ke=!1)=>{t(34,re=!0),ke?l.actions.external.firstStart(I):l.actions.internal.firstStart(I)};function de(ke){let _t=o||ke;_t&&l.initVideo({container:He,sources:_t,failoverHosts:Xe,subtitles:h,volumeMultiplier:Fe});let wt=O6.get(wl)==="true";xe.set(wt),v>0&&l.actions.external.seekTime(v);let Zt=X?Ke.volumeDefault:b??Jl()??Ke.volumeDefault,Ct=E??df();if(l.actions.external.setVolume(Zt),l.actions.external.setMuted(Ct),l.getAdmanWrapper().setInitialVolume(Ct?0:Zt),Ke.features.trafficSaving){let Kt=pf();Kt&&l.actions.internal.setTrafficSavingEnabled(Kt)}if(Ke.features.saveRate&&Me){let Kt=gf();Kt&&!n&&l.actions.internal.setPlaybackRate(Kt)}let Ut=uf(l.videoId);Ut&&l.actions.internal.setQuality(Ut),l.ui.isAutoplay.set(w),w?nt():g&&Ke.features.preload&&l.actions.internal.preload()}let lt=ke=>{if(window.ResizeObserver){let _t,wt;fe=new ResizeObserver(F6(Zt=>{let Ct=Zt[0];if(Ct){if(Ct.contentBoxSize){let Ut=Array.isArray(Ct.contentBoxSize)?Ct.contentBoxSize[0]:Ct.contentBoxSize;_t=Ut.inlineSize,wt=Ut.blockSize}else Ct.contentRect&&(_t=Ct.contentRect.width,wt=Ct.contentRect.height);x.set({width:_t,height:wt})}},300)),fe.observe(ke)}x.set({width:ke.clientWidth,height:ke.clientHeight})};It(()=>{lt(He);let ke=ct.map(wt=>wt.init({store:l,microStores:je,config:a}));if(S?.status==="upcoming"){l.actions.internal.setLiveWaitingStart(!0);return}if(S?.status==="waiting"){l.actions.internal.setLiveWaitingRecover(!0);return}if((S?.status==="finished"||S?.status==="postlive")&&!Object.keys(o||[]).length){l.actions.internal.setLiveWaitingRecord(!0);return}return de(),()=>{fe?.disconnect(),ke.forEach(wt=>wt.unsubscribe()),l.destroy()}});function rt(){re?l.actions.external.play():nt(!0)}function dt(){l.actions.external.pause()}function vt(ke){X||l.actions.external.setMuted(ke)}function Tt(ke){X||ke>=0&&ke<=1&&l.actions.external.setVolume(ke)}function Ge(ke){l.actions.internal.seekTime(ke,H6.UNKNOWN)}function zt(ke){l.actions.external.seekEpisodeStartTime(ke)}function Rt(){l.actions.external.returnFocusToEpisodes()}function kt(ke){l.actions.external.setPlaybackRate(ke)}function si(ke){l.actions.external.setAutoQualityLimits(ke)}function st(ke){He=ke,t(33,He)}function yt(ke){He=ke,t(33,He)}return i.$$set=ke=>{"sources"in ke&&t(39,o=ke.sources),"store"in ke&&t(0,l=ke.store),"microStoresRoot"in ke&&t(40,r=ke.microStoresRoot),"videoConfig"in ke&&t(41,a=ke.videoConfig),"uiConfig"in ke&&t(42,s=ke.uiConfig),"title"in ke&&t(1,u=ke.title),"thumbUrl"in ke&&t(2,f=ke.thumbUrl),"interactiveContainer"in ke&&t(3,p=ke.interactiveContainer),"subtitles"in ke&&t(43,h=ke.subtitles),"live"in ke&&t(4,S=ke.live),"preload"in ke&&t(44,g=ke.preload),"autoplay"in ke&&t(5,w=ke.autoplay),"volume"in ke&&t(45,b=ke.volume),"muted"in ke&&t(46,E=ke.muted),"fromTime"in ke&&t(47,v=ke.fromTime),"canRewindLive"in ke&&t(6,y=ke.canRewindLive),"showAds"in ke&&t(7,I=ke.showAds),"adsSlotId"in ke&&t(8,K=ke.adsSlotId),"adsParams"in ke&&t(9,B=ke.adsParams),"adsPreviewParam"in ke&&t(10,O=ke.adsPreviewParam),"duration"in ke&&t(11,ne=ke.duration),"logoClickable"in ke&&t(12,ge=ke.logoClickable),"logoHidden"in ke&&t(13,G=ke.logoHidden),"isMobile"in ke&&t(14,X=ke.isMobile),"showNextPrevButtons"in ke&&t(15,ae=ke.showNextPrevButtons),"nextButtonActive"in ke&&t(16,j=ke.nextButtonActive),"prevButtonActive"in ke&&t(17,z=ke.prevButtonActive),"endScreenVideoTitle"in ke&&t(18,Q=ke.endScreenVideoTitle),"endScreenVideoThumb"in ke&&t(19,$=ke.endScreenVideoThumb),"isOneVideoPlaylist"in ke&&t(20,W=ke.isOneVideoPlaylist),"supportLink"in ke&&t(21,Y=ke.supportLink),"shadowRootContainer"in ke&&t(22,ie=ke.shadowRootContainer),"outerContainerRef"in ke&&t(23,le=ke.outerContainerRef),"fullScreenTarget"in ke&&t(24,Ve=ke.fullScreenTarget),"failoverHosts"in ke&&t(48,Xe=ke.failoverHosts),"showMiniTimer"in ke&&t(25,Ce=ke.showMiniTimer),"saveRate"in ke&&t(49,Me=ke.saveRate),"playNextVideo"in ke&&t(26,ze=ke.playNextVideo),"playPrevVideo"in ke&&t(27,$e=ke.playPrevVideo),"repeatPlaylist"in ke&&t(28,ce=ke.repeatPlaylist),"seekToInteractive"in ke&&t(29,he=ke.seekToInteractive),"toggleGraph"in ke&&t(30,at=ke.toggleGraph),"playPrevChapter"in ke&&t(31,we=ke.playPrevChapter),"volumeMultiplier"in ke&&t(50,Fe=ke.volumeMultiplier)},i.$$.update=()=>{i.$$.dirty[0]&16385&&l.ui.isMobile.set(X)},[l,u,f,p,S,w,y,I,K,B,O,ne,ge,G,X,ae,j,z,Q,$,W,Y,ie,le,Ve,Ce,ze,$e,ce,he,at,we,Ge,He,re,Ke,Ze,qe,nt,o,r,a,s,h,g,b,E,v,Xe,Me,Fe,de,rt,dt,vt,Tt,zt,Rt,kt,si,st,yt]}var gc=class extends H{constructor(e){super(),U(this,e,j6,W6,F,{sources:39,store:0,microStoresRoot:40,videoConfig:41,uiConfig:42,title:1,thumbUrl:2,interactiveContainer:3,subtitles:43,live:4,preload:44,autoplay:5,volume:45,muted:46,fromTime:47,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:48,showMiniTimer:25,saveRate:49,playNextVideo:26,playPrevVideo:27,repeatPlaylist:28,seekToInteractive:29,toggleGraph:30,playPrevChapter:31,volumeMultiplier:50,initVideo:51,play:52,pause:53,setMuted:54,setVolume:55,seekTime:32,seekEpisodeStartTime:56,returnFocusToEpisodes:57,setPlaybackRate:58,setAutoQualityLimits:59},z6,[-1,-1,-1])}get initVideo(){return this.$$.ctx[51]}get play(){return this.$$.ctx[52]}get pause(){return this.$$.ctx[53]}get setMuted(){return this.$$.ctx[54]}get setVolume(){return this.$$.ctx[55]}get seekTime(){return this.$$.ctx[32]}get seekEpisodeStartTime(){return this.$$.ctx[56]}get returnFocusToEpisodes(){return this.$$.ctx[57]}get setPlaybackRate(){return this.$$.ctx[58]}get setAutoQualityLimits(){return this.$$.ctx[59]}},Tp=gc;function G6(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","currentColor"),c(t,"d","M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"),ye(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Q6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var bc=class extends H{constructor(e){super(),U(this,e,Q6,G6,F,{})}},Ep=bc;function Y6(i){let e,t;return e=new Ep({props:{style:i[0]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Z6(i,e,t){let n,{isWhite:o=!1}=e;return i.$$set=l=>{"isWhite"in l&&t(1,o=l.isWhite)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var vc=class extends H{constructor(e){super(),U(this,e,Z6,Y6,F,{isWhite:1})}},Ap=vc;function X6(i){Pe(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 Lp(i){let e,t;return{c(){e=P("div"),t=Re(i[0]),c(e,"class","title svelte-1y9fytq")},m(n,o){C(n,e,o),m(e,t)},p(n,o){o&1&&We(t,n[0])},d(n){n&&k(e)}}}function Mp(i){let e,t;return e=new Ap({props:{isWhite:!!i[1]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isWhite=!!n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function J6(i){let e,t,n,o,l=i[0]&&Lp(i),r=(!i[0]||!i[1])&&Mp(i);return{c(){e=P("div"),l&&l.c(),t=M(),r&&r.c(),c(e,"class","playerStub svelte-1y9fytq"),c(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){C(a,e,s),l&&l.m(e,null),m(e,t),r&&r.m(e,null),o=!0},p(a,[s]){a[0]?l?l.p(a,s):(l=Lp(a),l.c(),l.m(e,t)):l&&(l.d(1),l=null),!a[0]||!a[1]?r?(r.p(a,s),s&3&&d(r,1)):(r=Mp(a),r.c(),d(r,1),r.m(e,null)):r&&(me(),_(r,1,1,()=>{r=null}),pe()),(!o||s&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&c(e,"style",n)},i(a){o||(d(r),o=!0)},o(a){_(r),o=!1},d(a){a&&k(e),l&&l.d(),r&&r.d()}}}function x6(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=l=>{"title"in l&&t(0,n=l.title),"thumbUrl"in l&&t(1,o=l.thumbUrl)},[n,o]}var yc=class extends H{constructor(e){super(),U(this,e,x6,J6,F,{title:0,thumbUrl:1},X6)}},Vp=yc;import{cloneDeepWith as g8,InterfaceLanguage as b8,clientChecker as v8,isMobile as y8,isNonNullable as Pc,Logger as k8,Subscription as w8}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";import{OneStat as C8}from"@vkontakte/videoplayer-statistics";import{Subscription as $6}from"@vkontakte/videoplayer-shared";var ls=class{constructor(){this.subscription=new $6}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:t="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:t,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",t=>null],["seekbackward",t=>null],["seekforward",t=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(let[t,n]of e)try{navigator.mediaSession.setActionHandler(t,n)}catch{throw new Error(`The media session action "${t}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||this.subscription.add(e.state.positionExact$.subscribe(t=>{let n=Je(e.state.currentPlaybackRate$),o=Je(e.state.duration$);!isFinite(t)||!isFinite(o)||navigator.mediaSession.setPositionState({position:t,playbackRate:n,duration:o})}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as l8,clientChecker as r8,detectEmbed as s8}from"@vkontakte/videoplayer-shared";function e8(i){let e,t,n,o,l,r=i[2].default,a=Te(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=R("svg"),a&&a.c(),t=R("g"),n=R("path"),o=R("path"),c(n,"d","m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"),c(o,"d","M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"),c(t,"fill","#fff"),ye(e,u)},m(f,p){C(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function t8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var kc=class extends H{constructor(e){super(),U(this,e,t8,e8,F,{})}},Rp=kc;function i8(i){Pe(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 n8(i){let e,t,n,o,l,r,a;return n=new Rp({}),{c(){e=P("div"),t=P("div"),V(n.$$.fragment),o=M(),l=P("span"),r=Re(i[0]),c(t,"class","dummy-image svelte-1pbsod4"),D(t,"desktop",!i[1]),c(l,"class","title svelte-1pbsod4"),c(e,"class","player-pip-dummy svelte-1pbsod4"),D(e,"is-pip-api",i[2])},m(s,u){C(s,e,u),m(e,t),A(n,t,null),m(e,o),m(e,l),m(l,r),a=!0},p(s,[u]){(!a||u&2)&&D(t,"desktop",!s[1]),(!a||u&1)&&We(r,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){_(n.$$.fragment,s),a=!1},d(s){s&&k(e),L(n)}}}function o8(i,e,t){let n,o,l=it(),r=!!l.webApi.pictureInPictureApi,a=l.interfaceLanguage$;q(i,a,f=>t(5,n=f));let s=l.ui.isMobile;q(i,s,f=>t(1,o=f));let u;return i.$$.update=()=>{i.$$.dirty&32&&t(0,u=n&&N("pip_dummy_title"))},[u,o,r,a,s,n]}var wc=class extends H{constructor(e){super(),U(this,e,o8,n8,F,{},i8)}},Bp=wc;var a8=460,u8=280,Vl=class{constructor(){this.info={isActive$:new l8(!1),type:1}}isSupported(){let{isEmbed:e}=s8();return"documentPictureInPicture"in window&&!r8.isYandex&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:a8,height:u8,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(r=>r.cssText).join(" ")).filter(Boolean).join(`
|
|
53
|
-
`),t=document.createElement("style");t.textContent=e;let n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(t),o.append(this.playerDomElement),this.playerDummyElement=new Bp({target:this.playerParentShadowRoot,context:this.svelteContext}),this.pipWindow?.document.body.append(n),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",l=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{documentPictureInPicture.window?.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function Dp(i){return i instanceof Vl}var rs=class{static getLatestSupportedVersion(){let e=new Lo,t=new Vl;if(t.isSupported())return t;if(e.isSupported())return e}};function ss(i,e){let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let o of t)n[o]=e[o]??i[o]??void 0;return n}var qp="Inner error. Unexpectedly root annotation container null reference exception",Np="Annotation with such name already exists",Op="Annotation with such name does not exist";var hl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as c8,Subscription as f8,throttleFn as d8}from"@vkontakte/videoplayer-shared";var m8="1",p8=100,as=class{constructor(){this.annotations=new Map;this.subscriptions=new f8}init(e){this.rootAnnotationsContainer=e;let t=d8(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},p8);this.subscriptions.add(c8(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},t()})),this.mutationObserver=new MutationObserver(t),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,t){if(!this.rootAnnotationsContainer)throw new hl(qp);if(this.annotations.has(e))throw new hl(Np);t.style.zIndex=t.style.zIndex??m8,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 hl(Op);return t}remove(e){let t=this.get(e);this.annotations.delete(e)&&t.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,t,n){let o=e.offsetTop,l=e.offsetLeft,r=e.offsetWidth,a=e.offsetHeight;return o<0||l<0||l+r>t||o+a>n}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as Cc,Subscription as _8}from"@vkontakte/videoplayer-shared";var Qn=class{init({store:e,microStores:t,config:n}){return Cc(e),Cc(t),Cc(n),this.subscription=new _8,this.subscription}};var Rl=class extends Qn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...De(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(l=>{this.state$.set(l?!0:null)})),n}};var Bl=class extends Qn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...De(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{microStores:o,store:l}=t,{fakeIsPlaying$:r}=o,{isInteractiveExpectation$:a,isPlaying$:s}=l.state,{controlsVisible:u,isMobile:f}=l.ui,p=Je(f),h=()=>p&&Je(u);return n.add(u.subscribe(S=>{if(!p)return;let g=Je(r);Je(s)?this.state$.set(S):g!==null&&this.state$.set(!g||S)})),n.add(s.subscribe(S=>{this.state$.set(!S||h())})),n.add(r.subscribe(S=>{if(S===null)return;let g=Je(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!S)})),n}};var Dl=class extends Qn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=De("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.state.interactiveEpisodes$.subscribe(l=>{l.length&&(l.every(r=>r.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};import{combine as h8}from"@vkontakte/videoplayer-shared";var Sc=De(!1),us=null,ql=class extends Qn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Sc,set:(t,n=!1)=>{t!==Je(Sc)&&(this.clearTimeout(),Sc.set(t),!t&&us&&(us=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(t){let n=super.init(t),{store:o,config:l}=t,{isInteractiveTime$:r,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(p=>{Je(r)&&p&&this.state$.set(!1)}));let f=l?.interactiveData||{tooltipHelpHintActive:!1};return n.add(h8({isPlaying$:a,isInteractiveTime$:r,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:h,interactiveTimeIndicator:S})=>{if(!(!p||!S?.isDisplayed)){if(!h)return this.state$.set(!1);f.tooltipHelpHintActive&&us===null&&(us=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),o.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var Fp=()=>[Rl,Bl,Dl,ql].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var S8={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:b8.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:y8(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1},cs=class extends HTMLElement{constructor(){super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.createOneStat=(t,n={})=>{let{albumId:o,statPlace:l,statUserSalt:r,statTrackCode:a,refreshStatAuthToken:s,autoplay:u,isMobile:f,refDomain:p,deviceId:h,interactiveData:S}=ss(this.videoConfig,n),g=S?.projectInfo?.pid,{unitedVideoId:w,isClip:b=!1}=t;if(this.uiConfig.features.statistics&&w)return new C8({movieId:w,albumId:o,place:l,trackCode:a,autoplay:(u&&!this.interactiveController)??!1,mobile:f,clip:b,refDomain:p,deviceId:h,...g&&!this.isInited&&{projectId:Number(g)}},{refreshAuthToken:s,userSalt:r,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})};this.logger=new k8,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new w8,this.graphMadePause=!1,window?.videoPlayerConfig?.debugLogs&&this.subscription.add(this.logger.log$.subscribe(t=>{console.log("%c player web component ","background:#77dd77;",`${t.component}`,t.message)}))}connectedCallback(){if(this.isInited)return;this.initPlayerRootContainers();let t=this.getAttribute("stub-title")??void 0,n=this.getAttribute("stub-thumb-url")??void 0;this.svelteStubComponent=new Vp({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){this.annotationsApi?.destroy(),this.mediaSessionApi?.destroy(),this.svelteRootComponent?.$destroy(),this.svelteStubComponent?.$destroy(),this.subscription.unsubscribe(),this.unsubscribePlayerPhaseSubscription?.(),this.interactiveController?.destroy()}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(t){return this.store?.ui.controls.disabledControls$?.includes(t)||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){if(!this.videoConfig)return;let{albumId:l,statPlace:r,statAuthToken:a,preload:s,autoplay:u,volume:f,muted:p,fromTime:h,canRewindLive:S,supportLink:g,showAds:w,adsSlotId:b,adsParams:E={},adsPreviewParam:v,interfaceLanguage:y,isCyrillicRelatedInterface:I,logoClickable:K,logoHidden:B,isMobile:O,isAudioDisabled:ne,isLiveCatchUpMode:ge,fullScreenTarget:G,failoverHosts:X,canDownload:ae,callbacks:j,interactiveData:z,showThumbTimer:Q,additionalButtons:$=[],repeat:W,saveRate:Y,volumeMultiplier:ie}=ss(this.videoConfig,n),{sources:le,title:Ve,thumbUrl:Xe,unitedVideoId:Ce,isClip:Me=!1,duration:ze,adsParams:$e={},videoEpisodes:ce,previewThumbsData:he,subtitles:at,live:we}=t,Fe={...E,...$e},ct=this.getNextVideoInfo(),je={sources:le,title:Ve,thumbUrl:Xe,subtitles:at,unitedVideoId:Ce,isClip:Me,live:we,albumId:l,statPlace:r,autoplay:u,muted:p,volume:f,fromTime:h,canRewindLive:S,showAds:w,adsSlotId:b,adsParams:Fe,adsPreviewParam:v,duration:ze,logoClickable:K,logoHidden:B,isMobile:O,repeat:W,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ct.nextVideoTitle,endScreenVideoThumb:ct.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ke={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(je)}`});let Ze=this.interactiveController?.state.statistics$.getValue(),xe=Ze?.oneStat||this.createOneStat(t,n);xe&&(this.statistics=new jr(xe,Ze?.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Ao(this.uiConfig.sentry,{version:$o,env:Xl},{movieId:Ce,albumId:l,place:r,autoplay:(u&&!this.interactiveController)??!1,mobile:O,clip:Me}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...Ao.getInstance()};let qe=!!z,He=[],fe="tooltip_interactive_go_back_disabled_first";if(qe&&this.interactiveController){let de=this.interactiveController.state.isInitialChapter$.getValue(),lt=this.interactiveController.getHistoryState();de&&He.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||He.push("SEEK_TO_INTERACTIVE_BUTTON"),lt.hasPrevChapter$.getValue()||(He.push("PLAY_PREV_CHAPTER_BUTTON"),de||(lt.isGoBackLimited$.getValue()?fe="tooltip_interactive_go_back_disabled_limit":fe="tooltip_interactive_go_back_disabled"))}let re=()=>{this.isInited=!1,this.prevIsid=void 0;let de=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();j.onReplayInteractiveVideo&&!de?j.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=um({player:o,interfaceLanguage:y,isCyrillicRelatedInterface:I,videoId:Ce,isClip:Me,isLiveCatchUpMode:ge,isAudioDisabled:ne,statAuthToken:a,callbacks:j,webApi:Ke,videoEpisodes:ce,previewThumbsData:he,canDownload:ae,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:He,isInteractive:qe,saveRate:Y,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,replayInteractive:re,playPrevChapterDisabledTooltip:fe,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?$:[],looped:W&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:nt}=this.microStoresRoot=Fp();this.subscription.add(this.store.state.currentFormat$.subscribe(de=>j?.onCurrentFormatChanged?.(de))),this.subscription.add(nt.interactiveControlsOpacity$.subscribe(de=>{de!==null&&this?.interactiveController?.setDisabledControls(de)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(de=>j?.onThroughputEstimationChanged?.(de))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(de=>j?.onTrafficSavingEnabledChanged?.(de))),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(de=>j?.onCurrentPlaybackRateChanged?.(de))),this.subscription.add(this.store.state.volume$.subscribe(de=>j?.onVolumeChange?.(de))),this.subscription.add(this.store.state.muted$.subscribe(de=>de?j?.onMute?.():j?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(de=>j?.onVideoBitrateChanged?.(de))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(de=>{let lt=this.store?.ui.controls.disabledControls$;lt&&(de&&!lt.includes(Cl)&<.add(Cl),de||lt.remove(Cl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async de=>{if(!v8.isSamsungBrowser||!de||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(de=>j?.onVSIDChanged?.(de))),this.initMediaSession(),this.svelteRootComponent=new Tp({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:le,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ve,thumbUrl:Xe,subtitles:at,live:we,preload:s,autoplay:u,muted:p,volume:f,fromTime:h,canRewindLive:S,supportLink:g,showAds:w,adsSlotId:b,adsParams:Fe,adsPreviewParam:v,duration:ze,logoClickable:K,logoHidden:B,isMobile:O,failoverHosts:X,fullScreenTarget:G,saveRate:Y,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Q,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ct.nextVideoTitle,endScreenVideoThumb:ct.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph(),volumeMultiplier:ie}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.())}addPlayerInfoSubscriptions(){let t=this.store;if(!t)return;let n=this.videoConfig?.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(l=>n.onPlayerPhaseChanged?.(l))).add(t.state.playbackState$.subscribe(l=>n.onPlaybackStateChanged?.(l))).add(t.state.isLive$.subscribe(l=>n.onIsLiveChanged?.(l))).add(t.state.isActiveLive$.subscribe(l=>n.onIsActiveLiveChanged?.(l))).add(t.state.isAudioAvailable$.subscribe(l=>n.onIsAudioAvailableChanged?.(l))).add(t.state.currentQuality$.subscribe(l=>n.onCurrentQualityChanged?.(l))).add(t.state.availableQualities$.subscribe(l=>n.onAvailableQualitiesChanged?.(l.map(({value:r})=>r).filter(r=>r!=="auto")))).add(t.state.availableAudioStreams$.subscribe(l=>{l.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(t.ui.isPictureInPictureActive$.subscribe(l=>l?n.onPiPEnter?.():n.onPiPExit?.()));let o=n?.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(l=>o.onControlsVisibleChanged?.(l))).add(t.ui.isMobile.subscribe(l=>o.onIsMobileChanged?.(l))).add(t.ui.playerSize.subscribe(l=>o.onPlayerSizeChanged?.(l))).add(t.ui.controls.prevButton.subscribe(l=>o.onPrevButtonChanged?.(l))).add(t.ui.controls.playButton.subscribe(l=>o.onPlayButtonChanged?.(l))).add(t.ui.controls.replayButton.subscribe(l=>o.onReplayButtonChanged?.(l))).add(t.ui.controls.nextButton.subscribe(l=>o.onNextButtonChanged?.(l))).add(t.ui.controls.playPrevChapterButton.subscribe(l=>o.onPlayPrevChapterChanged?.(l))).add(t.ui.controls.seekToInteractiveButton.subscribe(l=>o.onSeekToInteractiveButtonChanged?.(l))).add(t.ui.controls.interactiveGraphButton.subscribe(l=>o.onGraphButtonChanged?.(l))).add(t.ui.controls.liveButton.subscribe(l=>o.onLiveButtonChanged?.(l))).add(t.ui.controls.time.subscribe(l=>o.onTimeUpdateChanged?.(l))).add(t.ui.controls.episodes.subscribe(l=>o.onEpisodesChanged?.(l))).add(t.ui.controls.subtitles.subscribe(l=>o.onSubtitlesChanged?.(l))).add(t.ui.controls.settings.subscribe(l=>o.onSettingsChanged?.(l))).add(t.ui.controls.fullscreen.subscribe(l=>o.onFullscreenChanged?.(l))).add(t.ui.controls.chromecast.subscribe(l=>o.onChromecastChanged?.(l))).add(t.ui.controls.pip.subscribe(l=>o.onPipChanged?.(l))).add(t.ui.controls.vkLogo.subscribe(l=>o.onVkLogoChanged?.(l))).add(t.ui.controls.interactiveTimeIndicator.subscribe(l=>o.onInteractiveTimeIndicatorChanged?.(l))).add(t.ui.controls.timeline.subscribe(l=>o.onTimelineChanged?.(l)))}playNextVideo(){if(!this.videoConfig)return;let t=!0;if(this.videoConfig.callbacks?.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch{this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){if(!this.videoConfig)return;let t=!0;if(this.videoConfig.callbacks?.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch{this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&Pc(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),this.svelteRootComponent?.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let t=this.interactiveController?.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}toggleGraph(){if(!this.isInited)return;let t=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:l}=t.state,{disabledControls$:r}=t.ui.controls,a=Je(n),s=Je(o);Je(l)?(l.set(!1),this.interactiveController?.toggleGraphView(!1),r.remove(vs),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",l.set(!0),this.interactiveController?.toggleGraphView(!0),r.add(vs),!a&&this.graphMadePause&&this.pause())}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:t,EVENT_NAMES:n,CustomError:o}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let l=this.store?.interfaceLanguage$,r=l?Je(l):this.videoConfig.interfaceLanguage,{projectInfo:a,initChapterId:s,historyApi:u,videoLoader:f}=this.videoConfig.interactiveData;this.interactiveController=new t({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:r,graph:this.uiConfig.features.interactiveGraph,projectInfo:a,initChapterId:s,historyApi:u,vkVideoLoader:f,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat});let{isInteractiveExpectation$:p,isSeekable$:h}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(h.subscribe(g=>{if(!this.isInited)return;let w=this.store;g?w.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):w.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(g=>{this.store&&this.store.state.isInteractiveExpectation$.set(g)}));let S=!0;if(this.interactiveController.on(n.playerChanged,g=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...g.config,title:a?.title||g.config.title};let w=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(g.player,w),S&&(S=!1)}),this.interactiveController.on(n.interactives,({type:g,actionType:w})=>{if(!this.store)return;let b=p.getValue();if(g==="action-choice"&&w==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Zl)),g==="action-choice-canceled"){let E=Je(this.store.state.isPlaying$)||b;if(this.videoConfig?.isMobile&&E){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let g=this.interactiveController.getHistoryState();this.subscription.add(g.history$.subscribe(w=>{w.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(w)}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),this.videoConfig?.callbacks.onInteractiveTimeIndicatorClick?.()})),this.interactiveController.on(n.errors,g=>{this.log({message:g.toString()})})}catch(t){this.log({message:t.message})}}initPlayer(t,n={}){if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=ss(S8,g8(t,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=Hc(n.ui??{}),this.coreConfig=n.core??{configName:[]},this.statisticsConfig=n.statistics??{},this.sentry={config:this.uiConfig.sentry??{}},Pc(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.videoConfig.isMediaSessionEnabled??!0),Pc(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.videoConfig.isMobile=this.uiConfig.isMobile??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=rs.getLatestSupportedVersion():this.pictureInPictureApi=new Lo),this.mediaSessionApi=this.uiConfig.features.mediaSession?new ls:void 0,this.annotationsApi=this.uiConfig.features.annotations?new as:void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.svelteStubComponent?.$destroy(),this.svelteRootComponent?.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0),t.interactiveData?this.initInteractives():this.createPlayer(t.videos[0]),Dp(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();this.svelteRootComponent?.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(t=>{t==="video"?this.setupMediaSessionForVideo():t==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",l=>this.seekTime(l.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let t="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:t}),this.mediaSessionApi.updateActionHandlers(n),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}play(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("LiveWaitingStart")||this.store?.playerPhase.is("LiveWaitingRecover")||this.store?.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){if(!this.videoConfig)return;this.log({message:"stop"}),this.svelteStubComponent?.$destroy(),this.mediaSessionApi?.destroy();let t=this.videoConfig.videos[0];t&&(this.svelteRootComponent?.$destroy(),this.createPlayer(t))}setMuted(t){this.log({message:`set muted, muted: ${t}`}),this.svelteRootComponent?.setMuted(t)}setVolume(t){this.log({message:`set volume, volume: ${t}`}),this.svelteRootComponent?.setVolume(t)}setRepeat(t){this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,this.svelteRootComponent?.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),this.svelteRootComponent?.seekTime(t))}seekEpisodeStartTime(t){this.log({message:`seek episode start time, time: ${t}`}),this.svelteRootComponent?.seekEpisodeStartTime(t)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(t){this.log({message:`set playback rate to: ${t}`}),this.svelteRootComponent?.setPlaybackRate(t)}setAutoQualityLimits(t){this.log({message:`set auto quality limitation. Max: ${t.max??"none"}. Min: ${t.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(t)}addLanguage(t){this.store?.actions.internal.addLanguage(t)}async setLanguage(t){await this.store?.actions.internal.setLanguage(t)}setLiveStart(t){this.log({message:"live started"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingStart(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(t,{autoplay:!0})}setLiveWaitingRecover(){this.log({message:"live waiting"}),this.store?.actions.internal.setLiveWaitingRecover(!0),this.store?.destroy()}setLiveWaitingRecord(){this.log({message:"post live"}),this.store?.actions.internal.setLiveWaitingRecord(!0),this.store?.destroy()}setLiveEnd(t){this.log({message:"live ended"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingRecord(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){return this.statistics?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(t){if(this.interactiveController&&this.store?.state.positionExact$){let{EVENT_NAMES:n}=await import("@vkontakte/videoplayer-interactive"),o=Je(this.store.state.positionExact$),r=Je(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.once(n.playerChanged,()=>{r&&o>=r.time?this.seekTime(r.time):this.seekTime(o),t?.()});let a=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:a.chapter.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(t,n=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}updateStatContext(t){this.statistics&&this.statistics.oneStat.updateContext(t)}};import{InterfaceLanguage as nO,VKNumericLanguage as oO,loadVKLangPack as lO}from"@vkontakte/videoplayer-shared";import{VideoQuality as sO,VideoFormat as aO}from"@vkontakte/videoplayer-core";var $N=()=>{window.customElements.define("vk-video-player",cs)};export{Io as GridTypes,nO as InterfaceLanguage,$o as VERSION,oO as VKNumericLanguage,aO as VideoFormat,sO as VideoQuality,lO as loadVKLangPack,$N as registerPlayerWebComponent};
|
|
52
|
+
);--timeline-preview-shadow:rgba(0, 0, 0, 0.08);--timeline-preview-bg:rgba(34, 34, 34, 1);--mobile-settings-bg:#2C2D2E;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--mobile-settings-menu-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;background:var(--black)}*{-webkit-tap-highlight-color:transparent}button{border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}svg:not(.interactiveContainer svg){pointer-events:none}*:focus, *:focus-visible{outline:none}*:focus-visible{box-shadow:var(--focused-element-shadow)}.hidden{visibility:hidden;opacity:0}.overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index)}.out-of-view{position:absolute !important;left:-1000vh !important}`)}function U6(i){let e,t,n;function o(r){i[62](r)}let l={store:i[0],uiConfig:i[36],title:i[1],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[37],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[35],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[39],showEndScreen:i[32]};return i[34]!==void 0&&(l.videoContainer=i[34]),e=new rp({props:l}),ge.push(()=>Ne(e,"videoContainer",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&2&&(s.title=r[1]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&16&&(s.playerStarted=r[35]),a[0]&67108864&&(s.playNextVideo=r[26]),a[0]&134217728&&(s.playPrevVideo=r[27]),a[0]&268435456&&(s.repeatPlaylist=r[28]),a[0]&536870912&&(s.seekToInteractive=r[29]),a[0]&1073741824&&(s.toggleGraph=r[30]),a[1]&1&&(s.playPrevChapter=r[31]),a[1]&2&&(s.showEndScreen=r[32]),!t&&a[1]&8&&(t=!0,s.videoContainer=r[34],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function K6(i){let e,t,n;function o(r){i[61](r)}let l={store:i[0],uiConfig:i[36],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[37],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[35],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[39],seekTime:i[33],showEndScreen:i[32]};return i[34]!==void 0&&(l.videoContainer=i[34]),e=new Ip({props:l}),ge.push(()=>Ne(e,"videoContainer",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&16&&(s.playerStarted=r[35]),a[0]&67108864&&(s.playNextVideo=r[26]),a[0]&134217728&&(s.playPrevVideo=r[27]),a[0]&268435456&&(s.repeatPlaylist=r[28]),a[0]&536870912&&(s.seekToInteractive=r[29]),a[0]&1073741824&&(s.toggleGraph=r[30]),a[1]&1&&(s.playPrevChapter=r[31]),a[1]&2&&(s.showEndScreen=r[32]),!t&&a[1]&8&&(t=!0,s.videoContainer=r[34],qe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function W6(i){let e,t,n,o,l=[K6,U6],r=[];function a(s,u){return s[14]?0:1}return t=a(i,[-1,-1,-1]),n=r[t]=l[t](i),{c(){e=P("div"),n.c(),c(e,"class","root svelte-1tl3een")},m(s,u){S(s,e,u),r[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?r[t].p(s,u):(de(),_(r[f],1,1,()=>{r[f]=null}),me(),n=r[t],n?n.p(s,u):(n=r[t]=l[t](s),n.c()),d(n,1),n.m(e,null))},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&k(e),r[t].d()}}}function j6(i,e,t){let n,{sources:o}=e,{store:l}=e,{microStoresRoot:r}=e,{videoConfig:a}=e,{uiConfig:s}=e,{title:u}=e,{thumbUrl:f}=e,{interactiveContainer:p}=e,{subtitles:h}=e,{live:C}=e,{preload:g}=e,{autoplay:w}=e,{volume:b=void 0}=e,{muted:E=void 0}=e,{fromTime:v}=e,{canRewindLive:y}=e,{showAds:I}=e,{adsSlotId:K=void 0}=e,{adsParams:B=void 0}=e,{adsPreviewParam:O=void 0}=e,{duration:oe=void 0}=e,{logoClickable:he}=e,{logoHidden:G}=e,{isMobile:X}=e,{showNextPrevButtons:ue=!1}=e,{nextButtonActive:j=!1}=e,{prevButtonActive:z=!1}=e,{endScreenVideoTitle:Q=void 0}=e,{endScreenVideoThumb:$=void 0}=e,{isOneVideoPlaylist:W=!1}=e,{supportLink:Y}=e,{shadowRootContainer:ie=void 0}=e,{outerContainerRef:re=void 0}=e,{fullScreenTarget:Ve=void 0}=e,{failoverHosts:Je=void 0}=e,{showMiniTimer:Ce=!1}=e,{saveRate:Me}=e,{playNextVideo:ze=_l}=e,{playPrevVideo:$e=_l}=e,{repeatPlaylist:fe=_l}=e,{seekToInteractive:_e=_l}=e,{toggleGraph:at=_l}=e,{playPrevChapter:we=_l}=e,{volumeMultiplier:Fe}=e,{showEndScreen:ft=!0}=e,{subscribers:Ke,stores:Xe}=r;zc(s);let je=Dt(),et=s.logoLink,x=l.ui.debugPanelVisible,Oe=l.ui.playerSize,Ge=l.state.isLive$;q(i,Ge,ve=>t(64,n=ve));let se,le=null,lt=!1;l.getAdmanWrapper().init({switchFromAdsToVideo:l.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:l.actions.internal.switchFromVideoToAds,setMuted:l.actions.external.setMuted},l.ads,{isMobile:l.ui.isMobile,mobileUnmuteButtonVisible:l.ui.mobileUnmuteButtonVisible,vsid:l.vsid}),Jc(l,Xe);let be=(ve=!1)=>{t(35,lt=!0),ve?l.actions.external.firstStart(I):l.actions.internal.firstStart(I)};function Ue(ve){let wt=o||ve;wt&&l.initVideo({container:se,sources:wt,failoverHosts:Je,subtitles:h,volumeMultiplier:Fe});let Mt=O6.get(Sl)==="true";x.set(Mt),v>0&&l.actions.external.seekTime(v);let Et=X?je.volumeDefault:b??Jl()??je.volumeDefault,Ct=E??df();if(l.actions.external.setVolume(Et),l.actions.external.setMuted(Ct),l.getAdmanWrapper().setInitialVolume(Ct?0:Et),je.features.trafficSaving){let St=pf();St&&l.actions.internal.setTrafficSavingEnabled(St)}if(je.features.saveRate&&Me){let St=gf();St&&!n&&l.actions.internal.setPlaybackRate(St)}let Ut=uf(l.videoId);Ut&&l.actions.internal.setQuality(Ut),l.ui.isAutoplay.set(w),w?be():g&&je.features.preload&&l.actions.internal.preload()}let tt=ve=>{if(window.ResizeObserver){let wt,Mt;le=new ResizeObserver(F6(Et=>{let Ct=Et[0];if(Ct){if(Ct.contentBoxSize){let Ut=Array.isArray(Ct.contentBoxSize)?Ct.contentBoxSize[0]:Ct.contentBoxSize;wt=Ut.inlineSize,Mt=Ut.blockSize}else Ct.contentRect&&(wt=Ct.contentRect.width,Mt=Ct.contentRect.height);Oe.set({width:wt,height:Mt})}},300)),le.observe(ve)}Oe.set({width:ve.clientWidth,height:ve.clientHeight})};It(()=>{tt(se);let ve=Ke.map(Mt=>Mt.init({store:l,microStores:Xe,config:a}));if(C?.status==="upcoming"){l.actions.internal.setLiveWaitingStart(!0);return}if(C?.status==="waiting"){l.actions.internal.setLiveWaitingRecover(!0);return}if((C?.status==="finished"||C?.status==="postlive")&&!Object.keys(o||[]).length){l.actions.internal.setLiveWaitingRecord(!0);return}return Ue(),()=>{le?.disconnect(),ve.forEach(Mt=>Mt.unsubscribe()),l.destroy()}});function dt(){lt?l.actions.external.play():be(!0)}function bt(){l.actions.external.pause()}function Tt(ve){X||l.actions.external.setMuted(ve)}function Qe(ve){X||ve>=0&&ve<=1&&l.actions.external.setVolume(ve)}function zt(ve){l.actions.internal.seekTime(ve,H6.UNKNOWN)}function Vt(ve){l.actions.external.seekEpisodeStartTime(ve)}function yt(){l.actions.external.returnFocusToEpisodes()}function ai(ve){l.actions.external.setPlaybackRate(ve)}function st(ve){l.actions.external.setAutoQualityLimits(ve)}function vt(ve){se=ve,t(34,se)}function jt(ve){se=ve,t(34,se)}return i.$$set=ve=>{"sources"in ve&&t(40,o=ve.sources),"store"in ve&&t(0,l=ve.store),"microStoresRoot"in ve&&t(41,r=ve.microStoresRoot),"videoConfig"in ve&&t(42,a=ve.videoConfig),"uiConfig"in ve&&t(43,s=ve.uiConfig),"title"in ve&&t(1,u=ve.title),"thumbUrl"in ve&&t(2,f=ve.thumbUrl),"interactiveContainer"in ve&&t(3,p=ve.interactiveContainer),"subtitles"in ve&&t(44,h=ve.subtitles),"live"in ve&&t(4,C=ve.live),"preload"in ve&&t(45,g=ve.preload),"autoplay"in ve&&t(5,w=ve.autoplay),"volume"in ve&&t(46,b=ve.volume),"muted"in ve&&t(47,E=ve.muted),"fromTime"in ve&&t(48,v=ve.fromTime),"canRewindLive"in ve&&t(6,y=ve.canRewindLive),"showAds"in ve&&t(7,I=ve.showAds),"adsSlotId"in ve&&t(8,K=ve.adsSlotId),"adsParams"in ve&&t(9,B=ve.adsParams),"adsPreviewParam"in ve&&t(10,O=ve.adsPreviewParam),"duration"in ve&&t(11,oe=ve.duration),"logoClickable"in ve&&t(12,he=ve.logoClickable),"logoHidden"in ve&&t(13,G=ve.logoHidden),"isMobile"in ve&&t(14,X=ve.isMobile),"showNextPrevButtons"in ve&&t(15,ue=ve.showNextPrevButtons),"nextButtonActive"in ve&&t(16,j=ve.nextButtonActive),"prevButtonActive"in ve&&t(17,z=ve.prevButtonActive),"endScreenVideoTitle"in ve&&t(18,Q=ve.endScreenVideoTitle),"endScreenVideoThumb"in ve&&t(19,$=ve.endScreenVideoThumb),"isOneVideoPlaylist"in ve&&t(20,W=ve.isOneVideoPlaylist),"supportLink"in ve&&t(21,Y=ve.supportLink),"shadowRootContainer"in ve&&t(22,ie=ve.shadowRootContainer),"outerContainerRef"in ve&&t(23,re=ve.outerContainerRef),"fullScreenTarget"in ve&&t(24,Ve=ve.fullScreenTarget),"failoverHosts"in ve&&t(49,Je=ve.failoverHosts),"showMiniTimer"in ve&&t(25,Ce=ve.showMiniTimer),"saveRate"in ve&&t(50,Me=ve.saveRate),"playNextVideo"in ve&&t(26,ze=ve.playNextVideo),"playPrevVideo"in ve&&t(27,$e=ve.playPrevVideo),"repeatPlaylist"in ve&&t(28,fe=ve.repeatPlaylist),"seekToInteractive"in ve&&t(29,_e=ve.seekToInteractive),"toggleGraph"in ve&&t(30,at=ve.toggleGraph),"playPrevChapter"in ve&&t(31,we=ve.playPrevChapter),"volumeMultiplier"in ve&&t(51,Fe=ve.volumeMultiplier),"showEndScreen"in ve&&t(32,ft=ve.showEndScreen)},i.$$.update=()=>{i.$$.dirty[0]&16385&&l.ui.isMobile.set(X)},[l,u,f,p,C,w,y,I,K,B,O,oe,he,G,X,ue,j,z,Q,$,W,Y,ie,re,Ve,Ce,ze,$e,fe,_e,at,we,ft,zt,se,lt,je,et,Ge,be,o,r,a,s,h,g,b,E,v,Je,Me,Fe,Ue,dt,bt,Tt,Qe,Vt,yt,ai,st,vt,jt]}var gc=class extends H{constructor(e){super(),U(this,e,j6,W6,F,{sources:40,store:0,microStoresRoot:41,videoConfig:42,uiConfig:43,title:1,thumbUrl:2,interactiveContainer:3,subtitles:44,live:4,preload:45,autoplay:5,volume:46,muted:47,fromTime:48,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,isMobile:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:22,outerContainerRef:23,fullScreenTarget:24,failoverHosts:49,showMiniTimer:25,saveRate:50,playNextVideo:26,playPrevVideo:27,repeatPlaylist:28,seekToInteractive:29,toggleGraph:30,playPrevChapter:31,volumeMultiplier:51,showEndScreen:32,initVideo:52,play:53,pause:54,setMuted:55,setVolume:56,seekTime:33,seekEpisodeStartTime:57,returnFocusToEpisodes:58,setPlaybackRate:59,setAutoQualityLimits:60},z6,[-1,-1,-1])}get initVideo(){return this.$$.ctx[52]}get play(){return this.$$.ctx[53]}get pause(){return this.$$.ctx[54]}get setMuted(){return this.$$.ctx[55]}get setVolume(){return this.$$.ctx[56]}get seekTime(){return this.$$.ctx[33]}get seekEpisodeStartTime(){return this.$$.ctx[57]}get returnFocusToEpisodes(){return this.$$.ctx[58]}get setPlaybackRate(){return this.$$.ctx[59]}get setAutoQualityLimits(){return this.$$.ctx[60]}},Tp=gc;function G6(i){let e,t,n,o=i[2].default,l=Te(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ce(a,r[s]);return{c(){e=R("svg"),l&&l.c(),t=R("path"),c(t,"fill","currentColor"),c(t,"d","M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"),ke(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ke(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Q6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var bc=class extends H{constructor(e){super(),U(this,e,Q6,G6,F,{})}},Ep=bc;function Y6(i){let e,t;return e=new Ep({props:{style:i[0]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Z6(i,e,t){let n,{isWhite:o=!1}=e;return i.$$set=l=>{"isWhite"in l&&t(1,o=l.isWhite)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var vc=class extends H{constructor(e){super(),U(this,e,Z6,Y6,F,{isWhite:1})}},Ap=vc;function X6(i){Pe(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 Lp(i){let e,t;return{c(){e=P("div"),t=Re(i[0]),c(e,"class","title svelte-1y9fytq")},m(n,o){S(n,e,o),m(e,t)},p(n,o){o&1&&We(t,n[0])},d(n){n&&k(e)}}}function Mp(i){let e,t;return e=new Ap({props:{isWhite:!!i[1]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isWhite=!!n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function J6(i){let e,t,n,o,l=i[0]&&Lp(i),r=(!i[0]||!i[1])&&Mp(i);return{c(){e=P("div"),l&&l.c(),t=M(),r&&r.c(),c(e,"class","playerStub svelte-1y9fytq"),c(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){S(a,e,s),l&&l.m(e,null),m(e,t),r&&r.m(e,null),o=!0},p(a,[s]){a[0]?l?l.p(a,s):(l=Lp(a),l.c(),l.m(e,t)):l&&(l.d(1),l=null),!a[0]||!a[1]?r?(r.p(a,s),s&3&&d(r,1)):(r=Mp(a),r.c(),d(r,1),r.m(e,null)):r&&(de(),_(r,1,1,()=>{r=null}),me()),(!o||s&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&c(e,"style",n)},i(a){o||(d(r),o=!0)},o(a){_(r),o=!1},d(a){a&&k(e),l&&l.d(),r&&r.d()}}}function x6(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=l=>{"title"in l&&t(0,n=l.title),"thumbUrl"in l&&t(1,o=l.thumbUrl)},[n,o]}var yc=class extends H{constructor(e){super(),U(this,e,x6,J6,F,{title:0,thumbUrl:1},X6)}},Vp=yc;import{cloneDeepWith as g8,InterfaceLanguage as b8,clientChecker as v8,isMobile as y8,isNonNullable as Pc,Logger as k8,Subscription as w8}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";import{OneStat as S8}from"@vkontakte/videoplayer-statistics";import{Subscription as $6}from"@vkontakte/videoplayer-shared";var ls=class{constructor(){this.subscription=new $6}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:t="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:t,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",t=>null],["seekbackward",t=>null],["seekforward",t=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(let[t,n]of e)try{navigator.mediaSession.setActionHandler(t,n)}catch{throw new Error(`The media session action "${t}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||this.subscription.add(e.state.positionExact$.subscribe(t=>{let n=xe(e.state.currentPlaybackRate$),o=xe(e.state.duration$);!isFinite(t)||!isFinite(o)||navigator.mediaSession.setPositionState({position:t,playbackRate:n,duration:o})}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as l8,clientChecker as r8,detectEmbed as s8}from"@vkontakte/videoplayer-shared";function e8(i){let e,t,n,o,l,r=i[2].default,a=Te(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ce(u,s[f]);return{c(){e=R("svg"),a&&a.c(),t=R("g"),n=R("path"),o=R("path"),c(n,"d","m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"),c(o,"d","M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"),c(t,"fill","#fff"),ke(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ke(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function t8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ce(ce({},e),ye(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ye(e),[e,o,n]}var kc=class extends H{constructor(e){super(),U(this,e,t8,e8,F,{})}},Rp=kc;function i8(i){Pe(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 n8(i){let e,t,n,o,l,r,a;return n=new Rp({}),{c(){e=P("div"),t=P("div"),V(n.$$.fragment),o=M(),l=P("span"),r=Re(i[0]),c(t,"class","dummy-image svelte-1pbsod4"),D(t,"desktop",!i[1]),c(l,"class","title svelte-1pbsod4"),c(e,"class","player-pip-dummy svelte-1pbsod4"),D(e,"is-pip-api",i[2])},m(s,u){S(s,e,u),m(e,t),A(n,t,null),m(e,o),m(e,l),m(l,r),a=!0},p(s,[u]){(!a||u&2)&&D(t,"desktop",!s[1]),(!a||u&1)&&We(r,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){_(n.$$.fragment,s),a=!1},d(s){s&&k(e),L(n)}}}function o8(i,e,t){let n,o,l=ot(),r=!!l.webApi.pictureInPictureApi,a=l.interfaceLanguage$;q(i,a,f=>t(5,n=f));let s=l.ui.isMobile;q(i,s,f=>t(1,o=f));let u;return i.$$.update=()=>{i.$$.dirty&32&&t(0,u=n&&N("pip_dummy_title"))},[u,o,r,a,s,n]}var wc=class extends H{constructor(e){super(),U(this,e,o8,n8,F,{},i8)}},Bp=wc;var a8=460,u8=280,Rl=class{constructor(){this.info={isActive$:new l8(!1),type:1}}isSupported(){let{isEmbed:e}=s8();return"documentPictureInPicture"in window&&!r8.isYandex&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:a8,height:u8,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(r=>r.cssText).join(" ")).filter(Boolean).join(`
|
|
53
|
+
`),t=document.createElement("style");t.textContent=e;let n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(t),o.append(this.playerDomElement),this.playerDummyElement=new Bp({target:this.playerParentShadowRoot,context:this.svelteContext}),this.pipWindow?.document.body.append(n),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",l=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{documentPictureInPicture.window?.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function Dp(i){return i instanceof Rl}var rs=class{static getLatestSupportedVersion(){let e=new Ao,t=new Rl;if(t.isSupported())return t;if(e.isSupported())return e}};function ss(i,e){let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let o of t)n[o]=e[o]??i[o]??void 0;return n}var qp="Inner error. Unexpectedly root annotation container null reference exception",Np="Annotation with such name already exists",Op="Annotation with such name does not exist";var hl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as c8,Subscription as f8,throttleFn as d8}from"@vkontakte/videoplayer-shared";var m8="1",p8=100,as=class{constructor(){this.annotations=new Map;this.subscriptions=new f8}init(e){this.rootAnnotationsContainer=e;let t=d8(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},p8);this.subscriptions.add(c8(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},t()})),this.mutationObserver=new MutationObserver(t),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,t){if(!this.rootAnnotationsContainer)throw new hl(qp);if(this.annotations.has(e))throw new hl(Np);t.style.zIndex=t.style.zIndex??m8,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 hl(Op);return t}remove(e){let t=this.get(e);this.annotations.delete(e)&&t.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,t,n){let o=e.offsetTop,l=e.offsetLeft,r=e.offsetWidth,a=e.offsetHeight;return o<0||l<0||l+r>t||o+a>n}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as Sc,Subscription as _8}from"@vkontakte/videoplayer-shared";var Yn=class{init({store:e,microStores:t,config:n}){return Sc(e),Sc(t),Sc(n),this.subscription=new _8,this.subscription}};var Bl=class extends Yn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...De(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(l=>{this.state$.set(l?!0:null)})),n}};var Dl=class extends Yn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...De(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{microStores:o,store:l}=t,{fakeIsPlaying$:r}=o,{isInteractiveExpectation$:a,isPlaying$:s}=l.state,{controlsVisible:u,isMobile:f}=l.ui,p=xe(f),h=()=>p&&xe(u);return n.add(u.subscribe(C=>{if(!p)return;let g=xe(r);xe(s)?this.state$.set(C):g!==null&&this.state$.set(!g||C)})),n.add(s.subscribe(C=>{this.state$.set(!C||h())})),n.add(r.subscribe(C=>{if(C===null)return;let g=xe(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!C)})),n}};var ql=class extends Yn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=De("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.state.interactiveEpisodes$.subscribe(l=>{l.length&&(l.every(r=>r.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};import{combine as h8}from"@vkontakte/videoplayer-shared";var Cc=De(!1),us=null,Nl=class extends Yn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Cc,set:(t,n=!1)=>{t!==xe(Cc)&&(this.clearTimeout(),Cc.set(t),!t&&us&&(us=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(t){let n=super.init(t),{store:o,config:l}=t,{isInteractiveTime$:r,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(p=>{xe(r)&&p&&this.state$.set(!1)}));let f=l?.interactiveData||{tooltipHelpHintActive:!1};return n.add(h8({isPlaying$:a,isInteractiveTime$:r,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:h,interactiveTimeIndicator:C})=>{if(!(!p||!C?.isDisplayed)){if(!h)return this.state$.set(!1);f.tooltipHelpHintActive&&us===null&&(us=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),o.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var Fp=()=>[Bl,Dl,ql,Nl].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var C8={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:b8.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:y8(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0},cs=class extends HTMLElement{constructor(){super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.createOneStat=(t,n={})=>{let{albumId:o,statPlace:l,statUserSalt:r,statTrackCode:a,refreshStatAuthToken:s,autoplay:u,isMobile:f,refDomain:p,deviceId:h,interactiveData:C}=ss(this.videoConfig,n),g=C?.projectInfo?.pid,{unitedVideoId:w,isClip:b=!1}=t;if(this.uiConfig.features.statistics&&w)return new S8({movieId:w,albumId:o,place:l,trackCode:a,autoplay:(u&&!this.interactiveController)??!1,mobile:f,clip:b,refDomain:p,deviceId:h,...g&&!this.isInited&&{projectId:Number(g)}},{refreshAuthToken:s,userSalt:r,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})};this.logger=new k8,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new w8,this.graphMadePause=!1,window?.videoPlayerConfig?.debugLogs&&this.subscription.add(this.logger.log$.subscribe(t=>{console.log("%c player web component ","background:#77dd77;",`${t.component}`,t.message)}))}connectedCallback(){if(this.isInited)return;this.initPlayerRootContainers();let t=this.getAttribute("stub-title")??void 0,n=this.getAttribute("stub-thumb-url")??void 0;this.svelteStubComponent=new Vp({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){this.annotationsApi?.destroy(),this.mediaSessionApi?.destroy(),this.svelteRootComponent?.$destroy(),this.svelteStubComponent?.$destroy(),this.subscription.unsubscribe(),this.unsubscribePlayerPhaseSubscription?.(),this.interactiveController?.destroy()}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(t){return this.store?.ui.controls.disabledControls$?.includes(t)||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){if(!this.videoConfig)return;let{albumId:l,statPlace:r,statAuthToken:a,preload:s,autoplay:u,volume:f,muted:p,fromTime:h,canRewindLive:C,supportLink:g,showAds:w,adsSlotId:b,adsParams:E={},adsPreviewParam:v,interfaceLanguage:y,isCyrillicRelatedInterface:I,logoClickable:K,logoHidden:B,isMobile:O,isAudioDisabled:oe,isLiveCatchUpMode:he,fullScreenTarget:G,failoverHosts:X,canDownload:ue,callbacks:j,interactiveData:z,showThumbTimer:Q,additionalButtons:$=[],repeat:W,saveRate:Y,volumeMultiplier:ie,showEndScreen:re}=ss(this.videoConfig,n),{sources:Ve,title:Je,thumbUrl:Ce,unitedVideoId:Me,isClip:ze=!1,duration:$e,adsParams:fe={},videoEpisodes:_e,previewThumbsData:at,subtitles:we,live:Fe}=t,ft={...E,...fe},Ke=this.getNextVideoInfo(),Xe={sources:Ve,title:Je,thumbUrl:Ce,subtitles:we,unitedVideoId:Me,isClip:ze,live:Fe,albumId:l,statPlace:r,autoplay:u,muted:p,volume:f,fromTime:h,canRewindLive:C,showAds:w,adsSlotId:b,adsParams:ft,adsPreviewParam:v,duration:$e,logoClickable:K,logoHidden:B,isMobile:O,repeat:W,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ke.nextVideoTitle,endScreenVideoThumb:Ke.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},je={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Xe)}`});let et=this.interactiveController?.state.statistics$.getValue(),x=et?.oneStat||this.createOneStat(t,n);x&&(this.statistics=new jr(x,et?.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Eo(this.uiConfig.sentry,{version:$o,env:Xl},{movieId:Me,albumId:l,place:r,autoplay:(u&&!this.interactiveController)??!1,mobile:O,clip:ze}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...Eo.getInstance()};let Ge=!!z,se=[],le="tooltip_interactive_go_back_disabled_first";if(Ge&&this.interactiveController){let Ue=this.interactiveController.state.isInitialChapter$.getValue(),tt=this.interactiveController.getHistoryState();Ue&&se.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||se.push("SEEK_TO_INTERACTIVE_BUTTON"),tt.hasPrevChapter$.getValue()||(se.push("PLAY_PREV_CHAPTER_BUTTON"),Ue||(tt.isGoBackLimited$.getValue()?le="tooltip_interactive_go_back_disabled_limit":le="tooltip_interactive_go_back_disabled"))}let lt=()=>{this.isInited=!1,this.prevIsid=void 0;let Ue=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();j.onReplayInteractiveVideo&&!Ue?j.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=um({player:o,interfaceLanguage:y,isCyrillicRelatedInterface:I,videoId:Me,isClip:ze,isLiveCatchUpMode:he,isAudioDisabled:oe,statAuthToken:a,callbacks:j,webApi:je,videoEpisodes:_e,previewThumbsData:at,canDownload:ue,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:se,isInteractive:Ge,saveRate:Y,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,replayInteractive:lt,playPrevChapterDisabledTooltip:le,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?$:[],looped:W&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:be}=this.microStoresRoot=Fp();this.subscription.add(this.store.state.currentFormat$.subscribe(Ue=>j?.onCurrentFormatChanged?.(Ue))),this.subscription.add(be.interactiveControlsOpacity$.subscribe(Ue=>{Ue!==null&&this?.interactiveController?.setDisabledControls(Ue)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Ue=>j?.onThroughputEstimationChanged?.(Ue))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Ue=>j?.onTrafficSavingEnabledChanged?.(Ue))),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ue=>j?.onCurrentPlaybackRateChanged?.(Ue))),this.subscription.add(this.store.state.volume$.subscribe(Ue=>j?.onVolumeChange?.(Ue))),this.subscription.add(this.store.state.muted$.subscribe(Ue=>Ue?j?.onMute?.():j?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(Ue=>j?.onVideoBitrateChanged?.(Ue))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Ue=>{let tt=this.store?.ui.controls.disabledControls$;tt&&(Ue&&!tt.includes(Cl)&&tt.add(Cl),Ue||tt.remove(Cl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Ue=>{if(!v8.isSamsungBrowser||!Ue||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Ue=>j?.onVSIDChanged?.(Ue))),this.initMediaSession(),this.svelteRootComponent=new Tp({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:Ve,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Je,thumbUrl:Ce,subtitles:we,live:Fe,preload:s,autoplay:u,muted:p,volume:f,fromTime:h,canRewindLive:C,supportLink:g,showAds:w,adsSlotId:b,adsParams:ft,adsPreviewParam:v,duration:$e,logoClickable:K,logoHidden:B,isMobile:O,failoverHosts:X,fullScreenTarget:G,saveRate:Y,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Q,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ke.nextVideoTitle,endScreenVideoThumb:Ke.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph(),volumeMultiplier:ie,showEndScreen:re}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.())}addPlayerInfoSubscriptions(){let t=this.store;if(!t)return;let n=this.videoConfig?.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(l=>n.onPlayerPhaseChanged?.(l))).add(t.state.playbackState$.subscribe(l=>n.onPlaybackStateChanged?.(l))).add(t.state.isLive$.subscribe(l=>n.onIsLiveChanged?.(l))).add(t.state.isActiveLive$.subscribe(l=>n.onIsActiveLiveChanged?.(l))).add(t.state.isAudioAvailable$.subscribe(l=>n.onIsAudioAvailableChanged?.(l))).add(t.state.currentQuality$.subscribe(l=>n.onCurrentQualityChanged?.(l))).add(t.state.availableQualities$.subscribe(l=>n.onAvailableQualitiesChanged?.(l.map(({value:r})=>r).filter(r=>r!=="auto")))).add(t.state.availableAudioStreams$.subscribe(l=>{l.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(t.ui.isPictureInPictureActive$.subscribe(l=>l?n.onPiPEnter?.():n.onPiPExit?.()));let o=n?.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(l=>o.onControlsVisibleChanged?.(l))).add(t.ui.isMobile.subscribe(l=>o.onIsMobileChanged?.(l))).add(t.ui.playerSize.subscribe(l=>o.onPlayerSizeChanged?.(l))).add(t.ui.controls.prevButton.subscribe(l=>o.onPrevButtonChanged?.(l))).add(t.ui.controls.playButton.subscribe(l=>o.onPlayButtonChanged?.(l))).add(t.ui.controls.replayButton.subscribe(l=>o.onReplayButtonChanged?.(l))).add(t.ui.controls.nextButton.subscribe(l=>o.onNextButtonChanged?.(l))).add(t.ui.controls.playPrevChapterButton.subscribe(l=>o.onPlayPrevChapterChanged?.(l))).add(t.ui.controls.seekToInteractiveButton.subscribe(l=>o.onSeekToInteractiveButtonChanged?.(l))).add(t.ui.controls.interactiveGraphButton.subscribe(l=>o.onGraphButtonChanged?.(l))).add(t.ui.controls.liveButton.subscribe(l=>o.onLiveButtonChanged?.(l))).add(t.ui.controls.time.subscribe(l=>o.onTimeUpdateChanged?.(l))).add(t.ui.controls.episodes.subscribe(l=>o.onEpisodesChanged?.(l))).add(t.ui.controls.subtitles.subscribe(l=>o.onSubtitlesChanged?.(l))).add(t.ui.controls.settings.subscribe(l=>o.onSettingsChanged?.(l))).add(t.ui.controls.fullscreen.subscribe(l=>o.onFullscreenChanged?.(l))).add(t.ui.controls.chromecast.subscribe(l=>o.onChromecastChanged?.(l))).add(t.ui.controls.pip.subscribe(l=>o.onPipChanged?.(l))).add(t.ui.controls.vkLogo.subscribe(l=>o.onVkLogoChanged?.(l))).add(t.ui.controls.interactiveTimeIndicator.subscribe(l=>o.onInteractiveTimeIndicatorChanged?.(l))).add(t.ui.controls.timeline.subscribe(l=>o.onTimelineChanged?.(l)))}playNextVideo(){if(!this.videoConfig)return;let t=!0;if(this.videoConfig.callbacks?.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch{this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){if(!this.videoConfig)return;let t=!0;if(this.videoConfig.callbacks?.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch{this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&Pc(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),this.svelteRootComponent?.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let t=this.interactiveController?.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}toggleGraph(){if(!this.isInited)return;let t=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:l}=t.state,{disabledControls$:r}=t.ui.controls,a=xe(n),s=xe(o);xe(l)?(l.set(!1),this.interactiveController?.toggleGraphView(!1),r.remove(vs),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",l.set(!0),this.interactiveController?.toggleGraphView(!0),r.add(vs),!a&&this.graphMadePause&&this.pause())}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:t,EVENT_NAMES:n,CustomError:o}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let l=this.store?.interfaceLanguage$,r=l?xe(l):this.videoConfig.interfaceLanguage,{projectInfo:a,initChapterId:s,historyApi:u,videoLoader:f}=this.videoConfig.interactiveData;this.interactiveController=new t({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:r,graph:this.uiConfig.features.interactiveGraph,projectInfo:a,initChapterId:s,historyApi:u,vkVideoLoader:f,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat});let{isInteractiveExpectation$:p,isSeekable$:h}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(h.subscribe(g=>{if(!this.isInited)return;let w=this.store;g?w.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):w.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(g=>{this.store&&this.store.state.isInteractiveExpectation$.set(g)}));let C=!0;if(this.interactiveController.on(n.playerChanged,g=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...g.config,title:a?.title||g.config.title};let w=C?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(g.player,w),C&&(C=!1)}),this.interactiveController.on(n.interactives,({type:g,actionType:w})=>{if(!this.store)return;let b=p.getValue();if(g==="action-choice"&&w==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Zl)),g==="action-choice-canceled"){let E=xe(this.store.state.isPlaying$)||b;if(this.videoConfig?.isMobile&&E){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let g=this.interactiveController.getHistoryState();this.subscription.add(g.history$.subscribe(w=>{w.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(w)}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),this.videoConfig?.callbacks.onInteractiveTimeIndicatorClick?.()})),this.interactiveController.on(n.errors,g=>{this.log({message:g.toString()})})}catch(t){this.log({message:t.message})}}initPlayer(t,n={}){if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=ss(C8,g8(t,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=Hc(n.ui??{}),this.coreConfig=n.core??{configName:[]},this.statisticsConfig=n.statistics??{},this.sentry={config:this.uiConfig.sentry??{}},Pc(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.videoConfig.isMediaSessionEnabled??!0),Pc(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.videoConfig.isMobile=this.uiConfig.isMobile??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=rs.getLatestSupportedVersion():this.pictureInPictureApi=new Ao),this.mediaSessionApi=this.uiConfig.features.mediaSession?new ls:void 0,this.annotationsApi=this.uiConfig.features.annotations?new as:void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.svelteStubComponent?.$destroy(),this.svelteRootComponent?.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0),t.interactiveData?this.initInteractives():this.createPlayer(t.videos[0]),Dp(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();this.svelteRootComponent?.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(t=>{t==="video"?this.setupMediaSessionForVideo():t==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",l=>this.seekTime(l.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let t="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:t}),this.mediaSessionApi.updateActionHandlers(n),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}play(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("LiveWaitingStart")||this.store?.playerPhase.is("LiveWaitingRecover")||this.store?.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){if(!this.videoConfig)return;this.log({message:"stop"}),this.svelteStubComponent?.$destroy(),this.mediaSessionApi?.destroy();let t=this.videoConfig.videos[0];t&&(this.svelteRootComponent?.$destroy(),this.createPlayer(t))}setMuted(t){this.log({message:`set muted, muted: ${t}`}),this.svelteRootComponent?.setMuted(t)}setVolume(t){this.log({message:`set volume, volume: ${t}`}),this.svelteRootComponent?.setVolume(t)}setRepeat(t){this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,this.svelteRootComponent?.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),this.svelteRootComponent?.seekTime(t))}seekEpisodeStartTime(t){this.log({message:`seek episode start time, time: ${t}`}),this.svelteRootComponent?.seekEpisodeStartTime(t)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(t){this.log({message:`set playback rate to: ${t}`}),this.svelteRootComponent?.setPlaybackRate(t)}setAutoQualityLimits(t){this.log({message:`set auto quality limitation. Max: ${t.max??"none"}. Min: ${t.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(t)}addLanguage(t){this.store?.actions.internal.addLanguage(t)}async setLanguage(t){await this.store?.actions.internal.setLanguage(t)}setLiveStart(t){this.log({message:"live started"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingStart(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(t,{autoplay:!0})}setLiveWaitingRecover(){this.log({message:"live waiting"}),this.store?.actions.internal.setLiveWaitingRecover(!0),this.store?.destroy()}setLiveWaitingRecord(){this.log({message:"post live"}),this.store?.actions.internal.setLiveWaitingRecord(!0),this.store?.destroy()}setLiveEnd(t){this.log({message:"live ended"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingRecord(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){return this.statistics?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(t){if(this.interactiveController&&this.store?.state.positionExact$){let{EVENT_NAMES:n}=await import("@vkontakte/videoplayer-interactive"),o=xe(this.store.state.positionExact$),r=xe(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.once(n.playerChanged,()=>{r&&o>=r.time?this.seekTime(r.time):this.seekTime(o),t?.()});let a=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:a.chapter.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(t,n=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}updateStatContext(t){this.statistics&&this.statistics.oneStat.updateContext(t)}};import{InterfaceLanguage as nO,VKNumericLanguage as oO,loadVKLangPack as lO}from"@vkontakte/videoplayer-shared";import{VideoQuality as sO,VideoFormat as aO}from"@vkontakte/videoplayer-core";var $N=()=>{window.customElements.define("vk-video-player",cs)};export{Po as GridTypes,nO as InterfaceLanguage,$o as VERSION,oO as VKNumericLanguage,aO as VideoFormat,sO as VideoQuality,lO as loadVKLangPack,$N as registerPlayerWebComponent};
|