@vkontakte/videoplayer 1.1.39-dev.f5a04250.0 → 1.1.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015.cjs.js +17 -17
- package/es2015.esm.js +17 -17
- package/es2018.cjs.js +17 -17
- package/es2018.esm.js +17 -17
- package/esnext.cjs.js +17 -17
- package/esnext.esm.js +17 -17
- package/evergreen.esm.js +17 -17
- package/package.json +5 -5
- package/types/components/Ads/admanWrapper.d.ts +1 -0
- package/types/store/index.d.ts +3 -2
- package/types/types/index.d.ts +1 -3
- package/types/utils/webAPI/mediaSessionApi.d.ts +0 -6
package/evergreen.esm.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.39
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.39
|
|
3
|
+
* Mon, 12 Aug 2024 12:04:22 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-39/doc/
|
|
5
5
|
*/
|
|
6
|
-
function _e(){}function ne(i,e){for(let t in e)i[t]=e[t];return i}function us(i){return i()}function Fl(){return Object.create(null)}function et(i){i.forEach(us)}function Ci(i){return typeof i=="function"}function U(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Ol;function cs(i,e){return Ol||(Ol=document.createElement("a")),Ol.href=e,i===Ol.href}function Sc(i){return Object.keys(i).length===0}function Ht(i,...e){if(i==null){for(let n of e)n(void 0);return _e}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function xe(i){let e;return Ht(i,t=>e=t)(),e}function z(i,e,t){i.$$.on_destroy.push(Ht(e,t))}function Pe(i,e,t,n){if(i){let o=Ic(i,e,t,n);return i[0](o)}}function Ic(i,e,t,n){return i[1]&&n?ne(t.ctx.slice(),i[1](n(e))):t.ctx}function Te(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ee(i,e,t,n,o,r){if(o){let l=Ic(e,t,n,r);i.p(l,o)}}function Ae(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 he(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Pc(i){return i??""}var So=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Hl=class i{_listeners="WeakMap"in So?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};Hl.entries="WeakMap"in So?new WeakMap:void 0;var Tc=!1;function Ec(){Tc=!0}function Ac(){Tc=!1}function m(i,e){i.appendChild(e)}function Ie(i,e,t){let n=Mc(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,__(n,o)}}function Mc(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 C(i){i.parentNode&&i.parentNode.removeChild(i)}function Si(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function I(i){return document.createElement(i)}function B(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ve(i){return document.createTextNode(i)}function D(){return Ve(" ")}function ut(){return Ve("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function It(i){return function(e){return e.preventDefault(),i.call(this,e)}}function at(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 ge(i,e){for(let t in e)c(i,t,e[t])}function Vc(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 zl;function h_(){if(zl===void 0){zl=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{zl=!0}}return zl}function jo(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=I("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_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=de(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=de(n.contentWindow,"resize",e),e()}),m(i,n),()=>{(o||r&&n.contentWindow)&&r(),C(n)}}function q(i,e,t){i.classList.toggle(e,!!t)}function Lc(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 Wo(){if(!no)throw new Error("Function called outside component initialization");return no}function Pt(i){Wo().$$.on_mount.push(i)}function Hn(i){Wo().$$.on_destroy.push(i)}function Go(i,e){return Wo().$$.context.set(i,e),e}function Qo(i){return Wo().$$.context.get(i)}function gl(){return Wo().$$.context}function Pn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Io=[];var me=[],Zo=[],ds=[],Bc=Promise.resolve(),ms=!1;function ps(){ms||(ms=!0,Bc.then(Ul))}function zn(){return ps(),Bc}function Un(i){Zo.push(i)}function Ne(i){ds.push(i)}var fs=new Set,Yo=0;function Ul(){if(Yo!==0)return;let i=no;do{try{for(;Yo<Io.length;){let e=Io[Yo];Yo++,Zn(e),w_(e.$$)}}catch(e){throw Io.length=0,Yo=0,e}for(Zn(null),Io.length=0,Yo=0;me.length;)me.pop()();for(let e=0;e<Zo.length;e+=1){let t=Zo[e];fs.has(t)||(fs.add(t),t())}Zo.length=0}while(Io.length);for(;ds.length;)ds.pop()();ms=!1,fs.clear(),Zn(i)}function w_(i){if(i.fragment!==null){i.update(),et(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Un)}}function Dc(i){let e=[],t=[];Zo.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Zo=e}var Kl=new Set,Po;function se(){Po={r:0,c:[],p:Po}}function ae(){Po.r||et(Po.c),Po=Po.p}function d(i,e){i&&i.i&&(Kl.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(Kl.has(i))return;Kl.add(i),Po.c.push(()=>{Kl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function wt(i){return i?.length!==void 0?i:Array.from(i)}function Be(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function Nc(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 qe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Un(()=>{let r=i.$$.on_mount.map(us).filter(Ci);i.$$.on_destroy?i.$$.on_destroy.push(...r):et(r),i.$$.on_mount=[]}),o.forEach(Un)}function L(i,e){let t=i.$$;t.fragment!==null&&(Dc(t.after_update),et(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function P_(i,e){i.$$.dirty[0]===-1&&(Io.push(i),ps(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function G(i,e,t,n,o,r,l,a=[-1]){let s=no;Zn(i);let u=i.$$={fragment:null,ctx:[],props:r,update:_e,not_equal:o,bound:Fl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Fl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(p,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&P_(i,p)),h}):[],u.update(),f=!0,et(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Ec();let p=Vc(e.target);u.fragment&&u.fragment.l(p),p.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),Ac(),Ul()}Zn(s)}var T_;typeof HTMLElement=="function"&&(T_=class extends HTMLElement{$$componentCtor;$$slots;$$component;$$connected=!1;$$data={};$$reflecting=!1;$$props_definition={};$$listeners={};$$listener_unsubscribe_fns=new Map;constructor(i,e,t){super(),this.$$componentCtor=i,this.$$slots=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$listeners[i]=this.$$listeners[i]||[],this.$$listeners[i].push(e),this.$$component){let n=this.$$component.$on(i,e);this.$$listener_unsubscribe_fns.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$component){let n=this.$$listener_unsubscribe_fns.get(e);n&&(n(),this.$$listener_unsubscribe_fns.delete(e))}}async connectedCallback(){if(this.$$connected=!0,!this.$$component){let e=function(o){return()=>{let r;return{c:function(){r=document.createElement("slot"),o!=="default"&&r.setAttribute("name",o)},m:function(s,u){S(s,r,u)},d:function(s){s&&C(r)}}}};var i=e;if(await Promise.resolve(),!this.$$connected)return;let t={},n=Lc(this);for(let o of this.$$slots)o in n&&(t[o]=[e(o)]);for(let o of this.attributes){let r=this.$$get_prop_name(o.name);r in this.$$data||(this.$$data[r]=qc(r,o.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:{...this.$$data,$$slots:t,$$scope:{ctx:[]}}});for(let o in this.$$listeners)for(let r of this.$$listeners[o]){let l=this.$$component.$on(o,r);this.$$listener_unsubscribe_fns.set(r,l)}this.$$listeners={}}}attributeChangedCallback(i,e,t){this.$$reflecting||(i=this.$$get_prop_name(i),this.$$data[i]=qc(i,t,this.$$props_definition,"toProp"),this.$$component?.$set({[i]:this.$$data[i]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(i){return Object.keys(this.$$props_definition).find(e=>this.$$props_definition[e].attribute===i||!this.$$props_definition[e].attribute&&e.toLowerCase()===i)||i}});function qc(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 K=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=_e}$on(e,t){if(!Ci(t))return _e;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Sc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Oc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Oc);import"@vkontakte/videoplayer-core";import{noop as fl,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 M_}from"@vkontakte/videoplayer-shared";var V_={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:M_.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,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,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1},controls:{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,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Fc=i=>A_(i,V_),Hc=i=>Go("ui-config",i),Nt=()=>Qo("ui-config");var bl="vk_player_debug_panel_opened";var zc="videoplayer",Uc="videoplayer";var jn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Kc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),jc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Wc=new Set(["ShiftRight","ShiftLeft"]);var Gc=["TIMELINE"],vl=[...Gc,"GRAPH_BUTTON"],_s=[...Gc,"PLAY_BUTTON"],jl=[...vl,"PLAY_BUTTON"];var Eo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Eo||{}),Ao={xs:0,s:1,m:2,l:3,xl:4};var Xo=[];function Tn(i,e){return{subscribe:De(i,e).subscribe}}function De(i,e=_e){let t,n=new Set;function o(a){if(U(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 r(a){o(a(i))}function l(a,s=_e){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||_e),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Ii(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Tn(t,(l,a)=>{let s=!1,u=[],f=0,p=_e,h=()=>{if(f)return;p();let g=e(n?u[0]:u,l,a);r?l(g):p=Ci(g)?g:_e},k=o.map((g,w)=>Ht(g,v=>{u[w]=v,f&=~(1<<w),s&&h()},()=>{f|=1<<w}));return s=!0,h(),function(){et(k),p(),s=!1}})}import{assertNonNullable as Qc,VERSION as L_}from"@vkontakte/videoplayer-shared";import{VERSION as R_}from"@vkontakte/videoplayer-core";import{VERSION as B_}from"@vkontakte/videoplayer-statistics";var Wl="prod",Jo="1.1.39-dev.f5a04250.0";var Gl=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Yc=Symbol("storeContext"),Zc=Symbol("microStoresContext"),Xc=(i,e)=>{Go(Yc,i),Go(Zc,e),Wl==="dev"&&(window.app={store:i,microStores:e})},nt=()=>{let i=Qo(Yc);return Qc(i,"Store context is empty!"),i},Ln=()=>{let i=Qo(Zc);return Qc(i,"MicroStores context is empty!"),i},yt=(i,e)=>hs(i,i.getValue(),e),hs=(i,e,t)=>Tn(e,n=>{let o=i.subscribe(r=>{n(r),t?.(r)});return()=>o.unsubscribe()}),Jc=(i,e,t)=>{let n=i.info,{width:o,height:r}=xe(t.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Jo} (core: ${R_}, stat: ${B_}, shared: ${L_})`,f=xe(t.state.errorLog$),p=f.length?`
|
|
7
|
-
`+f.map((
|
|
8
|
-
`,
|
|
9
|
-
`,
|
|
10
|
-
`;return y+
|
|
11
|
-
`):void 0,h=t.state.isAudioDisabled?"disabled":xe(t.state.isAudioAvailable$)?void 0:"unavailable",k=i.info.currentVideoStream$.getValue(),g=i.info.currentAudioStream$.getValue(),w=[];k&&w.push(`Video: ${k?.codec??""}`+(k?.hdr?" (HDR)":"")),g&&w.push(`Audio: ${g?.codec??""}`+(g?.language?` (${g.language})`:""));let v={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:`${
|
|
12
|
-
`)},xc=(i,e,t)=>{let n=i.info,{width:o,height:r}=xe(t.ui.playerSize),l={version:Jo,viewport:`${o}x${r}`,volume:Math.round(xe(t.state.volume$)*100)};l.id=t.videoId,n.currentFormat$.getValue()&&(l.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(l.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let f=n.currentBuffer$.getValue(),p=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();f&&(p&&h?l.buffer=f.end-h:l.buffer=Math.max(f.end-xe(t.state.positionExact$),0));let k=n.throughputEstimation$.getValue();k&&(l.speed=k);let g=n.videoBitrate$.getValue();g&&(l.bitrate=g);let w=n.currentVideoSegmentLength$.getValue();w&&(l.currentVideoSegmentLength=w);let v=n.currentAudioSegmentLength$.getValue();v&&(l.currentAudioSegmentLength=v);let E=xe(t.vsid);typeof E=="string"&&(l.vsid=E);let b=i.info.currentVideoStream$.getValue()?.codec;b&&(l.videoCodec=b);let y=i.info.currentAudioStream$.getValue()?.codec;y&&(l.audioCodec=y),i.info.currentVideoStream$.getValue()?.hdr&&(l.hdr=!0);let W=i.info.currentAudioStream$.getValue()?.language;return W&&(l.audioLanguage=W),l},$c=(i,e)=>Gl(i,e,"mp4");import{isNullable as gs,safeStorage as Rn}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";var ef="vk_player_prefer_traffic_saving_enabled",tf="vk_player_preferred_volume",nf="vk_player_prefer_volume_mute",bs="vk_player_preferred_quality",of="vk_player_preferred_stream_language",lf="vk_player_preferred_rate",rf=i=>i>1?1:i<0?0:i,vs=i=>Rn.set(tf,rf(i).toString(10)),Ql=()=>{let i=Rn.get(tf);return gs(i)?void 0:rf(parseFloat(i))},sf=(i,e)=>Rn.set(bs,JSON.stringify({videoId:i,value:e})),ys=()=>Rn.remove(bs),af=i=>{let e=Rn.get(bs);if(gs(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){ys();return}return n},uf=(i,e)=>{e?Rn.set(i,"true"):Rn.remove(i)},cf=i=>Rn.get(i)==="true",Yl=i=>uf(nf,i),ff=()=>cf(nf),df=i=>uf(ef,i),mf=()=>cf(ef),pf=()=>Rn.get(of),ks=i=>Rn.set(of,i),_f=i=>Rn.set(lf,JSON.stringify({rate:i})),hf=()=>{let i=Rn.get(lf);if(gs(i))return;let{rate:e}=JSON.parse(i);return e};import{PlaybackState as v6}from"@vkontakte/videoplayer-core";import{noop as lc}from"@vkontakte/videoplayer-shared";function D_(i){let e,t,n,o,r,l,a,s,u,f,p,h,k,g,w,v,E,b=i[2].default,y=Pe(b,i,i[1],null),T=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],W={};for(let F=0;F<T.length;F+=1)W=ne(W,T[F]);return{c(){e=B("svg"),y&&y.c(),t=B("g"),n=B("path"),o=B("path"),r=B("path"),l=B("path"),a=B("path"),s=B("defs"),u=B("filter"),f=B("feFlood"),p=B("feColorMatrix"),h=B("feOffset"),k=B("feGaussianBlur"),g=B("feColorMatrix"),w=B("feBlend"),v=B("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(r,"fill","#fff"),c(r,"fill-rule","evenodd"),c(r,"d","M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z"),c(r,"clip-rule","evenodd"),c(l,"fill","#fff"),c(l,"d","M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"),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(k,"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(v,"in","SourceGraphic"),c(v,"in2","effect1_dropShadow_618_12297"),c(v,"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"),ge(e,W)},m(F,O){S(F,e,O),y&&y.m(e,null),m(e,t),m(t,n),m(t,o),m(t,r),m(t,l),m(t,a),m(e,s),m(s,u),m(u,f),m(u,p),m(u,h),m(u,k),m(u,g),m(u,w),m(u,v),E=!0},p(F,[O]){y&&y.p&&(!E||O&2)&&Ee(y,b,F,F[1],E?Te(b,F[1],O,null):Ae(F[1]),null),ge(e,W=Be(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},O&1&&F[0]]))},i(F){E||(d(y,F),E=!0)},o(F){_(y,F),E=!1},d(F){F&&C(e),y&&y.d(F)}}}function N_(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ws=class extends K{constructor(e){super(),G(this,e,N_,D_,U,{})}},Zl=ws;import{isNullable as vf,InterfaceLanguage as yf}from"@vkontakte/videoplayer-shared";var q_={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_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043B\u0430\u0441\u044C, \u0438 \u0437\u0430\u043F\u0438\u0441\u044C \u0441\u043A\u043E\u0440\u043E \u0441\u0442\u0430\u043D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",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"},gf=q_;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_record_title:"The broadcast has ended and the recording will be available soon",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"},bf=O_;var Xn=new Map;Xn.set(yf.EN,bf);Xn.set(yf.RU,gf);var kf=new Map,Cs=({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);kf.set(i,t)},Ss=i=>Xn.has(i),Is=(i,e,t,n)=>{let r=Xn.get(i)?.[e];if(vf(r)){let l=kf.get(i)??n;r=(l?Xn.get(l):void 0)?.[e]}return vf(r)?e+Object.values(t??{}).join(" "):t?r.replaceAll(/{(\w+?)}/g,(l,a)=>t[a]??""):r},j=(i,e)=>{let{interfaceLanguage$:t}=nt(),n=xe(t),o=Nt();return Is(n,i,e,o.defaultLanguage)};import"@vkontakte/videoplayer-core";var xo;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(xo||(xo={}));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,Xl="?",U_="X-Sentry-Auth",K_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function j_(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
|
|
13
|
-
`),n,o;for(let
|
|
14
|
-
`).filter(t=>!!t)[0]}function W_(i){try{let e=j_(i);if(e)return e}catch{}return{value:wf(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 Jl=class{constructor(e){if(e&&e.dsn){let t=K_.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),r=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(r?"/"+r:"")+"/api/"+o.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[W_(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 xl=class i extends Jl{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:r=u=>u,blacklistUrls:l=[],ignoreErrors:a=[],release:s=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=r,this.blacklistUrls=l,this.ignoreErrors=a,this.release=s}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new i({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send({...this.getRequestBlank(),message:e,level:t})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(t=>this.ignoreErrors.some(n=>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],r=Array.isArray(o)?o:null,l=e[n],a=Array.isArray(l)?l:null;return{...t,[n]:r||a?[...r||[],...a||[]]:{...typeof o!="string"?o:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}};import{isNonNullable as $l,Subscription as Y_}from"@vkontakte/videoplayer-shared";var er=null,Mo=class{constructor(e,t,n={}){!er&&e.dsn&&(this.sentryClient=new xl({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Y_,this.options=e,this.context=n,er=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),er=null}logIError(e,t=!1){e.thrown&&this.report(e.thrown,{fatal:t,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,t={},n={}){let{sentryClient:o,context:r,options:l}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:p}=l,{errorType:h,category:k}=t;if($l(k)&&p.includes(k)||$l(h)&&f.includes(h))return;if(Math.random()<=a||$l(k)&&u.includes(k)||$l(h)&&s.includes(h)){Object.keys(t).length&&o.setTags({version:this.version,...t}),(Object.keys(r).length||Object.keys(n).length)&&o.setExtras({...r,...n});try{h&&o.captureMessage(h,t.fatal?xo.fatal:xo.error),o.report(e)}catch(w){console.error(w)}}}static getInstance(){return er}};var tr=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()},ir=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Sf=i=>{let e=i;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},yl=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},oo=()=>!!yl(),nr=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},or=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{isMacLike as Pf}from"@vkontakte/videoplayer-shared";var Tf=()=>({title:j("hotkey_map_modal_title"),closeBtnText:j("hotkey_map_modal_close_btn_text"),groups:[{title:j("hotkey_map_group_title_common"),items:[{description:j("hotkey_map_item_mute_description"),value:j("hotkey_map_item_mute_value")},{description:j("hotkey_map_item_volume_up_description"),value:j("hotkey_map_item_volume_up_value")},{description:j("hotkey_map_item_volume_down_description"),value:j("hotkey_map_item_volume_down_value")},{description:j("hotkey_map_item_pip_description"),value:j("hotkey_map_item_pip_value")},{description:j("hotkey_map_item_full_screen_description"),value:j("hotkey_map_item_full_screen_value")},{description:j("hotkey_map_item_show_context_menu_description"),value:j("hotkey_map_item_show_context_menu_value")},{description:j("hotkey_map_item_show_hotkey_map_description"),value:j("hotkey_map_item_show_hotkey_map_value")}]},{title:j("hotkey_map_group_title_playback"),items:[{description:j("hotkey_map_item_play_toggle_description"),value:j("hotkey_map_item_play_toggle_value")},{description:j("hotkey_map_item_seek_backward_description"),value:j("hotkey_map_item_seek_backward_value")},{description:j("hotkey_map_item_seek_forward_description"),value:j("hotkey_map_item_seek_forward_value")},{description:j("hotkey_map_item_fast_seek_backward_description"),value:j("hotkey_map_item_fast_seek_backward_value")},{description:j("hotkey_map_item_fast_seek_forward_description"),value:j("hotkey_map_item_fast_seek_forward_value")},{description:j("hotkey_map_item_rate_down_description"),value:j("hotkey_map_item_rate_down_value")},{description:j("hotkey_map_item_rate_up_description"),value:j("hotkey_map_item_rate_up_value")},{description:j("hotkey_map_item_prev_frame_description"),value:j("hotkey_map_item_prev_frame_value")},{description:j("hotkey_map_item_next_frame_description"),value:j("hotkey_map_item_next_frame_value")},{description:j("hotkey_map_item_jump_seek_description"),value:j("hotkey_map_item_jump_seek_value")}]},{title:j("hotkey_map_group_title_subtitles"),items:[{description:j("hotkey_map_item_subtitles_toggle_description"),value:j("hotkey_map_item_subtitles_toggle_value")}]},{title:j("hotkey_map_group_title_episodes"),items:[{description:j("hotkey_map_item_prev_episode_description"),value:Pf()?j("hotkey_map_item_prev_episode_mac_value"):j("hotkey_map_item_prev_episode_pc_value")},{description:j("hotkey_map_item_next_episode_description"),value:Pf()?j("hotkey_map_item_next_episode_mac_value"):j("hotkey_map_item_next_episode_pc_value")}]}]});import{CurrentClientBrowser as Z_,debounceFn as X_,getCurrentBrowser as J_,ValueSubject as x_}from"@vkontakte/videoplayer-shared";var Vo=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:X_(this.onResize.bind(this),300)};this.info={isActive$:new x_(this.isActive()),type:0}}isSupported(){let e=J_().browser===Z_.Yandex;return document.pictureInPictureEnabled&&!e}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 Vo}function $_(i){let e=nt();return Pt(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Es=class extends K{constructor(e){super(),G(this,e,$_,null,U,{})}},Ef=Es;import{noop as eh}from"@vkontakte/videoplayer-shared";function th(i){Ie(i,"svelte-1k4i25s",".container.svelte-1k4i25s.svelte-1k4i25s{position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s}.container-mobile.svelte-1k4i25s.svelte-1k4i25s{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.svelte-1k4i25s.svelte-1k4i25s{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.svelte-1k4i25s.svelte-1k4i25s{width:86px}.skippable.svelte-1k4i25s.svelte-1k4i25s{cursor:pointer;color:var(--white)}.skippable.svelte-1k4i25s.svelte-1k4i25s:hover{color:rgba(255, 255, 255, .75)}.skippable.svelte-1k4i25s:hover .icon.svelte-1k4i25s{fill:rgba(255, 255, 255, .75)}")}function ih(i){let e=j("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=Ve(e)},m(n,o){S(n,t,o)},p(n,o){o&3&&e!==(e=j("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&We(t,e)},d(n){n&&C(t)}}}function nh(i){let e,t=j("skip_ads_now")+"",n,o,r,l,a,s;return{c(){e=I("div"),n=Ve(t),o=D(),r=B("svg"),l=B("path"),c(l,"fill-rule","evenodd"),c(l,"clip-rule","evenodd"),c(l,"d","M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"),c(r,"class","icon svelte-1k4i25s"),c(r,"width","7"),c(r,"height","12"),c(r,"viewBox","0 0 7 12"),c(r,"fill","none"),c(r,"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,r),m(r,l),a||(s=de(e,"click",at(function(){Ci(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,f){i=u},d(u){u&&C(e),a=!1,s()}}}function oh(i){let e;function t(r,l){return r[3]?nh:ih}let n=t(i,-1),o=n(i);return{c(){e=I("div"),o.c(),c(e,"class","container svelte-1k4i25s"),q(e,"container-mobile",i[4]),q(e,"skippable",i[3])},m(r,l){S(r,e,l),o.m(e,null)},p(r,[l]){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e,null))),l&16&&q(e,"container-mobile",r[4]),l&8&&q(e,"skippable",r[3])},i:_e,o:_e,d(r){r&&C(e),o.d()}}}function lh(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:l=eh}=e,s=nt().ui.isMobile;z(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,r=f.secondsToWatchBeforeSkip),"skipAd"in f&&t(2,l=f.skipAd)},i.$$.update=()=>{if(i.$$.dirty&3)e:t(3,u=o>0&&o>=r)},[o,r,l,u,n,s]}var As=class extends K{constructor(e){super(),G(this,e,lh,oh,U,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},th)}},Af=As;function rh(i){Ie(i,"svelte-1wy3dql","button.svelte-1wy3dql{position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black}")}function sh(i){let e;return{c(){e=I("button"),e.textContent=`${j("visit_advertiser")}`,c(e,"class","svelte-1wy3dql")},m(t,n){S(t,e,n)},p:_e,i:_e,o:_e,d(t){t&&C(e)}}}var Ms=class extends K{constructor(e){super(),G(this,e,null,sh,U,{},rh)}},Mf=Ms;function ah(i){Ie(i,"svelte-354ajf",`.container.svelte-354ajf{width:100%;height:100%}.top-gradient-mobile.svelte-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
|
|
6
|
+
function _e(){}function oe(i,e){for(let t in e)i[t]=e[t];return i}function us(i){return i()}function Fl(){return Object.create(null)}function et(i){i.forEach(us)}function wi(i){return typeof i=="function"}function U(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Ol;function cs(i,e){return Ol||(Ol=document.createElement("a")),Ol.href=e,i===Ol.href}function Sc(i){return Object.keys(i).length===0}function zt(i,...e){if(i==null){for(let n of e)n(void 0);return _e}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function xe(i){let e;return zt(i,t=>e=t)(),e}function O(i,e,t){i.$$.on_destroy.push(zt(e,t))}function Ie(i,e,t,n){if(i){let o=Ic(i,e,t,n);return i[0](o)}}function Ic(i,e,t,n){return i[1]&&n?oe(t.ctx.slice(),i[1](n(e))):t.ctx}function Pe(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 Te(i,e,t,n,o,l){if(o){let r=Ic(e,t,n,l);i.p(r,o)}}function Ee(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 he(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Pc(i){return i??""}var Co=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Hl=class i{_listeners="WeakMap"in Co?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};Hl.entries="WeakMap"in Co?new WeakMap:void 0;var Tc=!1;function Ec(){Tc=!0}function Ac(){Tc=!1}function m(i,e){i.appendChild(e)}function Se(i,e,t){let n=Mc(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,p_(n,o)}}function Mc(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function p_(i,e){return m(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function C(i){i.parentNode&&i.parentNode.removeChild(i)}function Ci(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 B(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ae(i){return document.createTextNode(i)}function D(){return Ae(" ")}function at(){return Ae("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Pt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function st(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 ge(i,e){for(let t in e)c(i,t,e[t])}function Vc(i){return Array.from(i.childNodes)}function je(i,e){e=""+e,i.data!==e&&(i.data=e)}function mi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var zl;function __(){if(zl===void 0){zl=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{zl=!0}}return zl}function Wo(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=__(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=de(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=de(n.contentWindow,"resize",e),e()}),m(i,n),()=>{(o||l&&n.contentWindow)&&l(),C(n)}}function q(i,e,t){i.classList.toggle(e,!!t)}function Lc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function vn(i,e){return new i(e)}var ro;function $n(i){ro=i}function Go(){if(!ro)throw new Error("Function called outside component initialization");return ro}function Tt(i){Go().$$.on_mount.push(i)}function zn(i){Go().$$.on_destroy.push(i)}function Qo(i,e){return Go().$$.context.set(i,e),e}function Yo(i){return Go().$$.context.get(i)}function bl(){return Go().$$.context}function Pn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var So=[];var pe=[],Xo=[],ds=[],Bc=Promise.resolve(),ms=!1;function ps(){ms||(ms=!0,Bc.then(Ul))}function Un(){return ps(),Bc}function Kn(i){Xo.push(i)}function Oe(i){ds.push(i)}var fs=new Set,Zo=0;function Ul(){if(Zo!==0)return;let i=ro;do{try{for(;Zo<So.length;){let e=So[Zo];Zo++,$n(e),k_(e.$$)}}catch(e){throw So.length=0,Zo=0,e}for($n(null),So.length=0,Zo=0;pe.length;)pe.pop()();for(let e=0;e<Xo.length;e+=1){let t=Xo[e];fs.has(t)||(fs.add(t),t())}Xo.length=0}while(So.length);for(;ds.length;)ds.pop()();ms=!1,fs.clear(),$n(i)}function k_(i){if(i.fragment!==null){i.update(),et(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Kn)}}function Dc(i){let e=[],t=[];Xo.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Xo=e}var Kl=new Set,Io;function ue(){Io={r:0,c:[],p:Io}}function ce(){Io.r||et(Io.c),Io=Io.p}function d(i,e){i&&i.i&&(Kl.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(Kl.has(i))return;Kl.add(i),Io.c.push(()=>{Kl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function wt(i){return i?.length!==void 0?i:Array.from(i)}function Le(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 Nc(i){return typeof i=="object"&&i!==null?i:{}}var w_=["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([...w_]);function Fe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function M(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Kn(()=>{let l=i.$$.on_mount.map(us).filter(wi);i.$$.on_destroy?i.$$.on_destroy.push(...l):et(l),i.$$.on_mount=[]}),o.forEach(Kn)}function V(i,e){let t=i.$$;t.fragment!==null&&(Dc(t.after_update),et(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&&(So.push(i),ps(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function W(i,e,t,n,o,l,r,a=[-1]){let s=ro;$n(i);let u=i.$$={fragment:null,ctx:[],props:l,update:_e,not_equal:o,bound:Fl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Fl(),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,...k)=>{let g=k.length?k[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,et(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Ec();let p=Vc(e.target);u.fragment&&u.fragment.l(p),p.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),M(i,e.target,e.anchor),Ac(),Ul()}$n(s)}var P_;typeof HTMLElement=="function"&&(P_=class extends HTMLElement{$$componentCtor;$$slots;$$component;$$connected=!1;$$data={};$$reflecting=!1;$$props_definition={};$$listeners={};$$listener_unsubscribe_fns=new Map;constructor(i,e,t){super(),this.$$componentCtor=i,this.$$slots=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$listeners[i]=this.$$listeners[i]||[],this.$$listeners[i].push(e),this.$$component){let n=this.$$component.$on(i,e);this.$$listener_unsubscribe_fns.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$component){let n=this.$$listener_unsubscribe_fns.get(e);n&&(n(),this.$$listener_unsubscribe_fns.delete(e))}}async connectedCallback(){if(this.$$connected=!0,!this.$$component){let e=function(o){return()=>{let l;return{c:function(){l=document.createElement("slot"),o!=="default"&&l.setAttribute("name",o)},m:function(s,u){S(s,l,u)},d:function(s){s&&C(l)}}}};var i=e;if(await Promise.resolve(),!this.$$connected)return;let t={},n=Lc(this);for(let o of this.$$slots)o in n&&(t[o]=[e(o)]);for(let o of this.attributes){let l=this.$$get_prop_name(o.name);l in this.$$data||(this.$$data[l]=qc(l,o.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:{...this.$$data,$$slots:t,$$scope:{ctx:[]}}});for(let o in this.$$listeners)for(let l of this.$$listeners[o]){let r=this.$$component.$on(o,l);this.$$listener_unsubscribe_fns.set(l,r)}this.$$listeners={}}}attributeChangedCallback(i,e,t){this.$$reflecting||(i=this.$$get_prop_name(i),this.$$data[i]=qc(i,t,this.$$props_definition,"toProp"),this.$$component?.$set({[i]:this.$$data[i]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(i){return Object.keys(this.$$props_definition).find(e=>this.$$props_definition[e].attribute===i||!this.$$props_definition[e].attribute&&e.toLowerCase()===i)||i}});function qc(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 K=class{$$=void 0;$$set=void 0;$destroy(){V(this,1),this.$destroy=_e}$on(e,t){if(!wi(t))return _e;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Sc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Oc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Oc);import"@vkontakte/videoplayer-core";import{noop as dl,safeStorage as q6,throttleFn as O6}from"@vkontakte/videoplayer-shared";import{SeekAction as F6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as T_,fillWithDefault as E_,VideoQuality as A_}from"@vkontakte/videoplayer-shared";var M_={isMobile:void 0,defaultLanguage:T_.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:A_.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,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,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1},controls:{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,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Fc=i=>E_(i,M_),Hc=i=>Qo("ui-config",i),Bt=()=>Yo("ui-config");var vl="vk_player_debug_panel_opened";var zc="videoplayer",Uc="videoplayer";var Gn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Kc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),jc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Wc=new Set(["ShiftRight","ShiftLeft"]);var Gc=["TIMELINE"],yl=[...Gc,"GRAPH_BUTTON"],_s=[...Gc,"PLAY_BUTTON"],jl=[...yl,"PLAY_BUTTON"];var To=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(To||{}),Eo={xs:0,s:1,m:2,l:3,xl:4};var Jo=[];function Tn(i,e){return{subscribe:Re(i,e).subscribe}}function Re(i,e=_e){let t,n=new Set;function o(a){if(U(i,a)&&(i=a,t)){let s=!Jo.length;for(let u of n)u[1](),Jo.push(u,i);if(s){for(let u=0;u<Jo.length;u+=2)Jo[u][0](Jo[u+1]);Jo.length=0}}}function l(a){o(a(i))}function r(a,s=_e){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,l)||_e),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:l,subscribe:r}}function Si(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return Tn(t,(r,a)=>{let s=!1,u=[],f=0,p=_e,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=wi(g)?g:_e},k=o.map((g,w)=>zt(g,v=>{u[w]=v,f&=~(1<<w),s&&h()},()=>{f|=1<<w}));return s=!0,h(),function(){et(k),p(),s=!1}})}import{assertNonNullable as Qc,VERSION as V_}from"@vkontakte/videoplayer-shared";import{VERSION as L_}from"@vkontakte/videoplayer-core";import{VERSION as R_}from"@vkontakte/videoplayer-statistics";var Wl="prod",xo="1.1.39";var Gl=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Yc=Symbol("storeContext"),Zc=Symbol("microStoresContext"),Xc=(i,e)=>{Qo(Yc,i),Qo(Zc,e),Wl==="dev"&&(window.app={store:i,microStores:e})},tt=()=>{let i=Yo(Yc);return Qc(i,"Store context is empty!"),i},Dn=()=>{let i=Yo(Zc);return Qc(i,"MicroStores context is empty!"),i},vt=(i,e)=>hs(i,i.getValue(),e),hs=(i,e,t)=>Tn(e,n=>{let o=i.subscribe(l=>{n(l),t?.(l)});return()=>o.unsubscribe()}),Jc=(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=`${xo} (core: ${L_}, stat: ${R_}, shared: ${V_})`,f=xe(t.state.errorLog$),p=f.length?`
|
|
7
|
+
`+f.map((T,b)=>{let y=`${b}) Type: ${T.id}
|
|
8
|
+
`,I=`Message: ${T.message} (${T.thrown})
|
|
9
|
+
`,Z=`Trace: ${T.thrown?.stack}
|
|
10
|
+
`;return y+I+Z}).join(`
|
|
11
|
+
`):void 0,h=t.state.isAudioDisabled?"disabled":xe(t.state.isAudioAvailable$)?void 0:"unavailable",k=i.info.currentVideoStream$.getValue(),g=i.info.currentAudioStream$.getValue(),w=[];k&&w.push(`Video: ${k?.codec??""}`+(k?.hdr?" (HDR)":"")),g&&w.push(`Audio: ${g?.codec??""}`+(g?.language?` (${g.language})`:""));let v={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(v).filter(([T,b])=>b!==void 0).map(([T,b])=>`${T}: ${b}`).join(`
|
|
12
|
+
`)},xc=(i,e,t)=>{let n=i.info,{width:o,height:l}=xe(t.ui.playerSize),r={version:xo,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 k=n.throughputEstimation$.getValue();k&&(r.speed=k);let g=n.videoBitrate$.getValue();g&&(r.bitrate=g);let w=n.currentVideoSegmentLength$.getValue();w&&(r.currentVideoSegmentLength=w);let v=n.currentAudioSegmentLength$.getValue();v&&(r.currentAudioSegmentLength=v);let T=xe(t.vsid);typeof T=="string"&&(r.vsid=T);let b=i.info.currentVideoStream$.getValue()?.codec;b&&(r.videoCodec=b);let y=i.info.currentAudioStream$.getValue()?.codec;y&&(r.audioCodec=y),i.info.currentVideoStream$.getValue()?.hdr&&(r.hdr=!0);let Z=i.info.currentAudioStream$.getValue()?.language;return Z&&(r.audioLanguage=Z),r},$c=(i,e)=>Gl(i,e,"mp4");import{isNullable as gs,safeStorage as Nn}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";var ef="vk_player_prefer_traffic_saving_enabled",tf="vk_player_preferred_volume",nf="vk_player_prefer_volume_mute",bs="vk_player_preferred_quality",of="vk_player_preferred_stream_language",lf="vk_player_preferred_rate",rf=i=>i>1?1:i<0?0:i,vs=i=>Nn.set(tf,rf(i).toString(10)),Ql=()=>{let i=Nn.get(tf);return gs(i)?void 0:rf(parseFloat(i))},sf=(i,e)=>Nn.set(bs,JSON.stringify({videoId:i,value:e})),ys=()=>Nn.remove(bs),af=i=>{let e=Nn.get(bs);if(gs(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){ys();return}return n},uf=(i,e)=>{e?Nn.set(i,"true"):Nn.remove(i)},cf=i=>Nn.get(i)==="true",Yl=i=>uf(nf,i),ff=()=>cf(nf),df=i=>uf(ef,i),mf=()=>cf(ef),pf=()=>Nn.get(of),ks=i=>Nn.set(of,i),_f=i=>Nn.set(lf,JSON.stringify({rate:i})),hf=()=>{let i=Nn.get(lf);if(gs(i))return;let{rate:e}=JSON.parse(i);return e};import{PlaybackState as b6}from"@vkontakte/videoplayer-core";import{noop as lc}from"@vkontakte/videoplayer-shared";function B_(i){let e,t,n,o,l,r,a,s,u,f,p,h,k,g,w,v,T,b=i[2].default,y=Ie(b,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]],Z={};for(let N=0;N<I.length;N+=1)Z=oe(Z,I[N]);return{c(){e=B("svg"),y&&y.c(),t=B("g"),n=B("path"),o=B("path"),l=B("path"),r=B("path"),a=B("path"),s=B("defs"),u=B("filter"),f=B("feFlood"),p=B("feColorMatrix"),h=B("feOffset"),k=B("feGaussianBlur"),g=B("feColorMatrix"),w=B("feBlend"),v=B("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(k,"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(v,"in","SourceGraphic"),c(v,"in2","effect1_dropShadow_618_12297"),c(v,"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"),ge(e,Z)},m(N,z){S(N,e,z),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,k),m(u,g),m(u,w),m(u,v),T=!0},p(N,[z]){y&&y.p&&(!T||z&2)&&Te(y,b,N,N[1],T?Pe(b,N[1],z,null):Ee(N[1]),null),ge(e,Z=Le(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},z&1&&N[0]]))},i(N){T||(d(y,N),T=!0)},o(N){_(y,N),T=!1},d(N){N&&C(e),y&&y.d(N)}}}function D_(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ws=class extends K{constructor(e){super(),W(this,e,D_,B_,U,{})}},Zl=ws;import{isNullable as vf,InterfaceLanguage as yf}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_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043B\u0430\u0441\u044C, \u0438 \u0437\u0430\u043F\u0438\u0441\u044C \u0441\u043A\u043E\u0440\u043E \u0441\u0442\u0430\u043D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",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"},gf=N_;var q_={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_record_title:"The broadcast has ended and the recording will be available soon",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"},bf=q_;var eo=new Map;eo.set(yf.EN,bf);eo.set(yf.RU,gf);var kf=new Map,Cs=({language:i,pack:e,fallback:t})=>{if(eo.has(i)){let n=eo.get(i);eo.set(i,{...n,...e})}else eo.set(i,e);kf.set(i,t)},Ss=i=>eo.has(i),Is=(i,e,t,n)=>{let l=eo.get(i)?.[e];if(vf(l)){let r=kf.get(i)??n;l=(r?eo.get(r):void 0)?.[e]}return vf(l)?e+Object.values(t??{}).join(" "):t?l.replaceAll(/{(\w+?)}/g,(r,a)=>t[a]??""):l},j=(i,e)=>{let{interfaceLanguage$:t}=tt(),n=xe(t),o=Bt();return Is(n,i,e,o.defaultLanguage)};import"@vkontakte/videoplayer-core";var $o;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})($o||($o={}));var O_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,F_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,H_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Xl="?",z_="X-Sentry-Auth",U_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function K_(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=O_.exec(t[l]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||Xl,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=H_.exec(t[l]))o={filename:n[2],function:n[1]||Xl,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=F_.exec(t[l]))l===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||Xl,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=Xl),e.push(o)}return e.length?{value:wf(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function wf(i){return(i&&i.message||"No error message").split(`
|
|
14
|
+
`).filter(t=>!!t)[0]}function j_(i){try{let e=K_(i);if(e)return e}catch{}return{value:wf(i),type:i&&i.name,stacktrace:{frames:[]}}}function W_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var Jl=class{constructor(e){if(e&&e.dsn){let t=U_.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(z_,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:W_(),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 G_(){return window}var xl=class i extends Jl{constructor(e,t=G_()){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 $l,Subscription as Q_}from"@vkontakte/videoplayer-shared";var er=null,Ao=class{constructor(e,t,n={}){!er&&e.dsn&&(this.sentryClient=new xl({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Q_,this.options=e,this.context=n,er=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),er=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:k}=t;if($l(k)&&p.includes(k)||$l(h)&&f.includes(h))return;if(Math.random()<=a||$l(k)&&u.includes(k)||$l(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?$o.fatal:$o.error),o.report(e)}catch(w){console.error(w)}}}static getInstance(){return er}};var tr=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()},ir=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Sf=i=>{let e=i;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},kl=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},so=()=>!!kl(),nr=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},or=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{isMacLike as Pf}from"@vkontakte/videoplayer-shared";var Tf=()=>({title:j("hotkey_map_modal_title"),closeBtnText:j("hotkey_map_modal_close_btn_text"),groups:[{title:j("hotkey_map_group_title_common"),items:[{description:j("hotkey_map_item_mute_description"),value:j("hotkey_map_item_mute_value")},{description:j("hotkey_map_item_volume_up_description"),value:j("hotkey_map_item_volume_up_value")},{description:j("hotkey_map_item_volume_down_description"),value:j("hotkey_map_item_volume_down_value")},{description:j("hotkey_map_item_pip_description"),value:j("hotkey_map_item_pip_value")},{description:j("hotkey_map_item_full_screen_description"),value:j("hotkey_map_item_full_screen_value")},{description:j("hotkey_map_item_show_context_menu_description"),value:j("hotkey_map_item_show_context_menu_value")},{description:j("hotkey_map_item_show_hotkey_map_description"),value:j("hotkey_map_item_show_hotkey_map_value")}]},{title:j("hotkey_map_group_title_playback"),items:[{description:j("hotkey_map_item_play_toggle_description"),value:j("hotkey_map_item_play_toggle_value")},{description:j("hotkey_map_item_seek_backward_description"),value:j("hotkey_map_item_seek_backward_value")},{description:j("hotkey_map_item_seek_forward_description"),value:j("hotkey_map_item_seek_forward_value")},{description:j("hotkey_map_item_fast_seek_backward_description"),value:j("hotkey_map_item_fast_seek_backward_value")},{description:j("hotkey_map_item_fast_seek_forward_description"),value:j("hotkey_map_item_fast_seek_forward_value")},{description:j("hotkey_map_item_rate_down_description"),value:j("hotkey_map_item_rate_down_value")},{description:j("hotkey_map_item_rate_up_description"),value:j("hotkey_map_item_rate_up_value")},{description:j("hotkey_map_item_prev_frame_description"),value:j("hotkey_map_item_prev_frame_value")},{description:j("hotkey_map_item_next_frame_description"),value:j("hotkey_map_item_next_frame_value")},{description:j("hotkey_map_item_jump_seek_description"),value:j("hotkey_map_item_jump_seek_value")}]},{title:j("hotkey_map_group_title_subtitles"),items:[{description:j("hotkey_map_item_subtitles_toggle_description"),value:j("hotkey_map_item_subtitles_toggle_value")}]},{title:j("hotkey_map_group_title_episodes"),items:[{description:j("hotkey_map_item_prev_episode_description"),value:Pf()?j("hotkey_map_item_prev_episode_mac_value"):j("hotkey_map_item_prev_episode_pc_value")},{description:j("hotkey_map_item_next_episode_description"),value:Pf()?j("hotkey_map_item_next_episode_mac_value"):j("hotkey_map_item_next_episode_pc_value")}]}]});import{CurrentClientBrowser as Y_,debounceFn as Z_,getCurrentBrowser as X_,ValueSubject as J_}from"@vkontakte/videoplayer-shared";var Mo=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(){let e=X_().browser===Y_.Yandex;return document.pictureInPictureEnabled&&!e}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 Vo(i){return i instanceof Mo}function x_(i){let e=tt();return Tt(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Es=class extends K{constructor(e){super(),W(this,e,x_,null,U,{})}},Ef=Es;import{noop as $_}from"@vkontakte/videoplayer-shared";function eh(i){Se(i,"svelte-1k4i25s",".container.svelte-1k4i25s.svelte-1k4i25s{position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s}.container-mobile.svelte-1k4i25s.svelte-1k4i25s{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.svelte-1k4i25s.svelte-1k4i25s{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.svelte-1k4i25s.svelte-1k4i25s{width:86px}.skippable.svelte-1k4i25s.svelte-1k4i25s{cursor:pointer;color:var(--white)}.skippable.svelte-1k4i25s.svelte-1k4i25s:hover{color:rgba(255, 255, 255, .75)}.skippable.svelte-1k4i25s:hover .icon.svelte-1k4i25s{fill:rgba(255, 255, 255, .75)}")}function th(i){let e=j("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=Ae(e)},m(n,o){S(n,t,o)},p(n,o){o&3&&e!==(e=j("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&je(t,e)},d(n){n&&C(t)}}}function ih(i){let e,t=j("skip_ads_now")+"",n,o,l,r,a,s;return{c(){e=P("div"),n=Ae(t),o=D(),l=B("svg"),r=B("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=de(e,"click",st(function(){wi(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,f){i=u},d(u){u&&C(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"),q(e,"container-mobile",i[4]),q(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&&q(e,"container-mobile",l[4]),r&8&&q(e,"skippable",l[3])},i:_e,o:_e,d(l){l&&C(e),o.d()}}}function oh(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:l=0}=e,{skipAd:r=$_}=e,s=tt().ui.isMobile;O(i,s,f=>t(4,n=f));let u;return i.$$set=f=>{"position"in f&&t(0,o=f.position),"secondsToWatchBeforeSkip"in f&&t(1,l=f.secondsToWatchBeforeSkip),"skipAd"in f&&t(2,r=f.skipAd)},i.$$.update=()=>{if(i.$$.dirty&3)e:t(3,u=o>0&&o>=l)},[o,l,r,u,n,s]}var As=class extends K{constructor(e){super(),W(this,e,oh,nh,U,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},eh)}},Af=As;function lh(i){Se(i,"svelte-1wy3dql","button.svelte-1wy3dql{position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black}")}function rh(i){let e;return{c(){e=P("button"),e.textContent=`${j("visit_advertiser")}`,c(e,"class","svelte-1wy3dql")},m(t,n){S(t,e,n)},p:_e,i:_e,o:_e,d(t){t&&C(e)}}}var Ms=class extends K{constructor(e){super(),W(this,e,null,rh,U,{},lh)}},Mf=Ms;function sh(i){Se(i,"svelte-354ajf",`.container.svelte-354ajf{width:100%;height:100%}.top-gradient-mobile.svelte-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
|
|
15
15
|
360deg,
|
|
16
16
|
rgba(0, 0, 0, 0) 0%,
|
|
17
17
|
rgba(0, 0, 0, 0.05) 12%,
|
|
@@ -21,17 +21,17 @@ function _e(){}function ne(i,e){for(let t in e)i[t]=e[t];return i}function us(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=I("div"),c(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){S(t,e,n)},d(t){t&&C(e)}}}function Lf(i){let e,t;return e=new Af({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&32&&(r.position=n[5]),o&64&&(r.secondsToWatchBeforeSkip=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Rf(i){let e,t;return e=new Ef({}),{c(){R(e.$$.fragment)},m(n,o){V(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 Bf(i){let e,t;return e=new Mf({}),{c(){R(e.$$.fragment)},m(n,o){V(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 uh(i){let e,t,n,o,r,l,a,s=i[0]&&Vf(i),u=i[3]&&Lf(i),f=i[7]&&Rf(i),p=i[4]&&Bf(i);return{c(){e=I("div"),s&&s.c(),t=D(),n=I("video"),o=D(),u&&u.c(),r=D(),f&&f.c(),l=D(),p&&p.c(),pi(n,"width","100%"),pi(n,"height","100%"),n.playsInline=!0,c(e,"class","container svelte-354ajf")},m(h,k){S(h,e,k),s&&s.m(e,null),m(e,t),m(e,n),i[19](n),m(e,o),u&&u.m(e,null),m(e,r),f&&f.m(e,null),m(e,l),p&&p.m(e,null),i[20](e),a=!0},p(h,[k]){h[0]?s||(s=Vf(h),s.c(),s.m(e,t)):s&&(s.d(1),s=null),h[3]?u?(u.p(h,k),k&8&&d(u,1)):(u=Lf(h),u.c(),d(u,1),u.m(e,r)):u&&(se(),_(u,1,1,()=>{u=null}),ae()),h[7]?f?k&128&&d(f,1):(f=Rf(h),f.c(),d(f,1),f.m(e,l)):f&&(se(),_(f,1,1,()=>{f=null}),ae()),h[4]?p?k&16&&d(p,1):(p=Bf(h),p.c(),d(p,1),p.m(e,null)):p&&(se(),_(p,1,1,()=>{p=null}),ae())},i(h){a||(d(u),d(f),d(p),a=!0)},o(h){_(u),_(f),_(p),a=!1},d(h){h&&C(e),s&&s.d(),i[19](null),u&&u.d(),f&&f.d(),p&&p.d(),i[20](null)}}}function ch(i,e,t){let n,o,r,l,a,{adsSlotId:s=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:f=void 0}=e,{duration:p=0}=e,h=nt(),k=h.state.isEnded$;z(i,k,H=>t(7,a=H));let g=h.ui.isMobile;z(i,g,H=>t(0,o=H));let w,v,E=!1,b=h.ads.playbackState;z(i,b,H=>t(18,n=H));let y=h.ads.canSkip,T=h.ads.position;z(i,T,H=>t(5,r=H));let W=h.ads.secondsToWatchBeforeSkip;z(i,W,H=>t(6,l=H));let F,O;Pt(()=>{let H=new AbortController,A=()=>{H.abort()},J=h.getAdmanWrapper();if(!s){J.onAdmanLoadingError();return}let{width:Y,height:ce}=xe(h.ui.playerSize),Z=xe(h.ui.isFullscreen),oe=xe(h.ui.isAutoplay),P={width:Y,height:ce,isFullscreen:Z,isAutoplay:oe,adsContainer:w,adsVideoElement:v,slotId:s,params:u,previewParam:f,duration:p};return window.AdmanHTML?(J.initAdman(P),E=!0):J.loadAdman(H.signal).then(()=>{J.initAdman(P),E=!0}).catch(()=>{J.onAdmanLoadingError()}),()=>{!E&&A()}});function le(H){me[H?"unshift":"push"](()=>{v=H,t(2,v)})}function re(H){me[H?"unshift":"push"](()=>{w=H,t(1,w)})}return i.$$set=H=>{"adsSlotId"in H&&t(14,s=H.adsSlotId),"adsParams"in H&&t(15,u=H.adsParams),"adsPreviewParam"in H&&t(16,f=H.adsPreviewParam),"duration"in H&&t(17,p=H.duration)},i.$$.update=()=>{if(i.$$.dirty&262144)e:t(3,F=y&&n!=="inactive");if(i.$$.dirty&262145)e:t(4,O=o&&n!=="inactive")},[o,w,v,F,O,r,l,a,h,k,g,b,T,W,s,u,f,p,n,le,re]}var Vs=class extends K{constructor(e){super(),G(this,e,ch,uh,U,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},ah)}},lr=Vs;var En=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(r=>r>9?String(r):`0${r}`).join(":")};function fh(i){let e,t,n,o,r=i[2].default,l=Pe(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),n=B("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"),ge(e,s)},m(u,f){S(u,e,f),l&&l.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ee(l,r,u,u[1],o?Te(r,u[1],f,null):Ae(u[1]),null),ge(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(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function dh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ls=class extends K{constructor(e){super(),G(this,e,dh,fh,U,{})}},Df=Ls;function mh(i){let e,t,n,o,r=i[2].default,l=Pe(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=B("svg"),l&&l.c(),t=B("rect"),n=B("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"),ge(e,s)},m(u,f){S(u,e,f),l&&l.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ee(l,r,u,u[1],o?Te(r,u[1],f,null):Ae(u[1]),null),ge(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(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function ph(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Rs=class extends K{constructor(e){super(),G(this,e,ph,mh,U,{})}},Nf=Rs;function _h(i){let e,t;return e=new Df({}),{c(){R(e.$$.fragment)},m(n,o){V(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;return e=new Nf({}),{c(){R(e.$$.fragment)},m(n,o){V(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 gh(i){let e,t,n,o,r=[hh,_h],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ut()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(se(),_(l[f],1,1,()=>{l[f]=null}),ae(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function bh(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Bs=class extends K{constructor(e){super(),G(this,e,bh,gh,U,{isActive:0})}},rr=Bs;function vh(i){Ie(i,"svelte-7pnl2h",".thumb-timer.svelte-7pnl2h.svelte-7pnl2h{position:absolute;z-index:2;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-7pnl2h.svelte-7pnl2h{font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red)}.thumb-timer.hidden.svelte-7pnl2h.svelte-7pnl2h{visibility:hidden;opacity:0}.thumb-timer.svelte-7pnl2h.svelte-7pnl2h:after{content:'';display:inline-block;vertical-align:middle;height:100%}.thumb-timer-live-icon.svelte-7pnl2h.svelte-7pnl2h{display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px}.thumb-timer-equalizer.svelte-7pnl2h.svelte-7pnl2h{display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px}.live.svelte-7pnl2h .thumb-timer-equalizer.svelte-7pnl2h{margin-top:-2px}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h{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-7pnl2h .thumb-timer-equalizer .col.svelte-7pnl2h{animation-play-state:running}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h:nth-child(1){left:0;animation-name:svelte-7pnl2h-thumb-timer-equalizer-col1}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h:nth-child(2){left:3px;animation-name:svelte-7pnl2h-thumb-timer-equalizer-col2}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h:nth-child(3){left:6px;animation-name:svelte-7pnl2h-thumb-timer-equalizer-col3}@keyframes svelte-7pnl2h-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-7pnl2h-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-7pnl2h-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-7pnl2h.svelte-7pnl2h{display:inline-block;text-align:right}")}function yh(i){let e=En(i[4]-i[3])+"",t;return{c(){t=Ve(e)},m(n,o){S(n,t,o)},p(n,o){o&24&&e!==(e=En(n[4]-n[3])+"")&&We(t,e)},i:_e,o:_e,d(n){n&&C(t)}}}function kh(i){let e,t,n;return t=new rr({props:{isActive:!0}}),{c(){e=I("div"),R(t.$$.fragment),c(e,"class","thumb-timer-live-icon svelte-7pnl2h")},m(o,r){S(o,e,r),V(t,e,null),n=!0},p:_e,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),L(t)}}}function wh(i){let e,t,n,o,r,l,a,s=[kh,yh],u=[];function f(p,h){return p[1]?0:1}return r=f(i,-1),l=u[r]=s[r](i),{c(){e=I("div"),t=I("div"),t.innerHTML='<div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div>',n=D(),o=I("span"),l.c(),c(t,"class","thumb-timer-equalizer svelte-7pnl2h"),c(o,"class","thumb-timer-text svelte-7pnl2h"),c(e,"role","timer"),c(e,"class","thumb-timer svelte-7pnl2h"),c(e,"data-testid","thumb-timer"),q(e,"live",i[1]),q(e,"hidden",i[0]),q(e,"playing",i[2])},m(p,h){S(p,e,h),m(e,t),m(e,n),m(e,o),u[r].m(o,null),a=!0},p(p,[h]){let k=r;r=f(p,h),r===k?u[r].p(p,h):(se(),_(u[k],1,1,()=>{u[k]=null}),ae(),l=u[r],l?l.p(p,h):(l=u[r]=s[r](p),l.c()),d(l,1),l.m(o,null)),(!a||h&2)&&q(e,"live",p[1]),(!a||h&1)&&q(e,"hidden",p[0]),(!a||h&4)&&q(e,"playing",p[2])},i(p){a||(d(l),a=!0)},o(p){_(l),a=!1},d(p){p&&C(e),u[r].d()}}}function Ch(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:r=!1}=e,{position:l}=e,{duration:a}=e;return i.$$set=s=>{"isHidden"in s&&t(0,n=s.isHidden),"isLive"in s&&t(1,o=s.isLive),"isPlaying"in s&&t(2,r=s.isPlaying),"position"in s&&t(3,l=s.position),"duration"in s&&t(4,a=s.duration)},[n,o,r,l,a]}var Ds=class extends K{constructor(e){super(),G(this,e,Ch,wh,U,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},vh)}},sr=Ds;var $o=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{isAndroid as Sh}from"@vkontakte/videoplayer-shared";var Ih=Sh(),Bo=i=>{i.stopPropagation(),i.preventDefault()},Ph=i=>{let e=i.previousElementSibling;e||(e=i.parentNode?.lastElementChild),e?.focus()},Th=i=>{let e=i.nextElementSibling;e||(e=i.parentNode?.firstElementChild),e?.focus()},Eh=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},Ah=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},Of=i=>i.code==="Escape",Mh=i=>i.code==="ArrowLeft",Ff=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},Hf=i=>{if(Eh(i)){Bo(i),Th(i.target);return}Ah(i)&&(Bo(i),Ph(i.target))},tl=i=>i?.detail===0||Ih&&i?.pointerType==="",il=async(i,e,t)=>{await zn(),i&&!i.classList.contains("opened")&&!e&&xe(t)&&(await zn(),t.set(!1),i.focus())},zf=async(i,e,t)=>{await zn(),i&&!e&&xe(t)&&(t.set(!1),i.focus())},Do=async(i,e,t)=>{await zn(),!!i&&e&&t&&setTimeout(()=>{i.firstChild.focus()},100)},nl=async(i,e,t)=>{!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))},ar=(i,e)=>{Hf(i),Of(i)&&(Bo(i),e())},ol=async(i,e,t)=>{Ff(i,!1)&&(Bo(i),e(),await zn(),t()?.focus())},ll=async(i,e,t,n)=>{if(Hf(i),Mh(i)){Bo(i),e(),t.set(!0);return}Of(i)&&(Bo(i),n())},_i=(i,e)=>{Ff(i)&&(Bo(i),e())},Uf=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},Kf=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 ur}from"@vkontakte/videoplayer-shared";function Vh(i){Ie(i,"svelte-1vzqlps","ul.svelte-1vzqlps{position:absolute;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-1vzqlps{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-1vzqlps:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function Wf(i){let e,t,n,o,r,l,a,s,u,f,p=(i[10].features.saveDebugInfoToFile?j("menu_save_debug"):j("menu_copy_debug"))+"",h,k,g,w,v=j("menu_debug_overlay")+"",E,b,y,T,W=i[10].features.copyVideoLink&&i[9].callbacks?.onCopyVideoLink&&Lh(i),F=i[19]&&Rh(i),O=i[12]&&i[6]!==jf.CONNECTED&&!i[17]&&Qf(i);function le(Y,ce){return Y[4]?Dh:Bh}let re=le(i,[-1,-1]),H=re(i),A=i[10].features.videoRotate&&!i[17]&&Nh(i),J=i[10].showSupport&&!i[7]&&Yf(i);return{c(){e=I("ul"),W&&W.c(),t=D(),F&&F.c(),n=D(),O&&O.c(),o=D(),r=I("li"),H.c(),a=D(),A&&A.c(),s=D(),J&&J.c(),u=D(),f=I("li"),h=Ve(p),g=D(),w=I("li"),E=Ve(v),c(r,"tabindex","0"),c(r,"role","menuitem"),c(r,"aria-label",l=j("aria_label_menu_loop")),c(r,"class","svelte-1vzqlps"),c(f,"tabindex","0"),c(f,"role","menuitem"),c(f,"aria-label",k=i[10].features.saveDebugInfoToFile?j("menu_save_debug"):j("menu_copy_debug")),c(f,"class","svelte-1vzqlps"),c(w,"tabindex","0"),c(w,"role","menuitem"),c(w,"aria-label",b=i[8]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable")),c(w,"class","svelte-1vzqlps"),c(e,"role","menu"),pi(e,"top",i[3]+"px"),pi(e,"left",i[2]+"px"),c(e,"class","svelte-1vzqlps")},m(Y,ce){S(Y,e,ce),W&&W.m(e,null),m(e,t),F&&F.m(e,null),m(e,n),O&&O.m(e,null),m(e,o),m(e,r),H.m(r,null),m(e,a),A&&A.m(e,null),m(e,s),J&&J.m(e,null),m(e,u),m(e,f),m(f,h),m(e,g),m(e,w),m(w,E),i[46](e),y||(T=[de(r,"click",at(i[25])),de(r,"keydown",i[37]),de(f,"click",at(i[22])),de(f,"keydown",i[34]),de(w,"click",at(i[23])),de(w,"keydown",i[35]),de(e,"contextmenu",It(i[43])),de(e,"keydown",i[28])],y=!0)},p(Y,ce){Y[10].features.copyVideoLink&&Y[9].callbacks?.onCopyVideoLink&&W.p(Y,ce),Y[19]&&F.p(Y,ce),Y[12]&&Y[6]!==jf.CONNECTED&&!Y[17]?O?O.p(Y,ce):(O=Qf(Y),O.c(),O.m(e,o)):O&&(O.d(1),O=null),re===(re=le(Y,ce))&&H?H.p(Y,ce):(H.d(1),H=re(Y),H&&(H.c(),H.m(r,null))),Y[10].features.videoRotate&&!Y[17]&&A.p(Y,ce),Y[10].showSupport&&!Y[7]?J?J.p(Y,ce):(J=Yf(Y),J.c(),J.m(e,u)):J&&(J.d(1),J=null),ce[0]&256&&b!==(b=Y[8]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"))&&c(w,"aria-label",b),ce[0]&8&&pi(e,"top",Y[3]+"px"),ce[0]&4&&pi(e,"left",Y[2]+"px")},d(Y){Y&&C(e),W&&W.d(),F&&F.d(),O&&O.d(),H.d(),A&&A.d(),J&&J.d(),i[46](null),y=!1,et(T)}}}function Lh(i){let e,t=j("menu_copy_video_link")+"",n,o,r,l,a,s,u=!i[5]&&!i[17]&&Gf(i);return{c(){e=I("li"),n=Ve(t),r=D(),u&&u.c(),l=ut(),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=j("menu_copy_video_link")),c(e,"class","svelte-1vzqlps")},m(f,p){S(f,e,p),m(e,n),S(f,r,p),u&&u.m(f,p),S(f,l,p),a||(s=[de(e,"click",at(i[44])),de(e,"keydown",i[29])],a=!0)},p(f,p){!f[5]&&!f[17]?u?u.p(f,p):(u=Gf(f),u.c(),u.m(l.parentNode,l)):u&&(u.d(1),u=null)},d(f){f&&(C(e),C(r),C(l)),u&&u.d(f),a=!1,et(s)}}}function Gf(i){let e,t=j("menu_copy_video_link_with_timestamp")+"",n,o,r,l;return{c(){e=I("li"),n=Ve(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=j("menu_copy_video_link_with_timestamp")),c(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),m(e,n),r||(l=[de(e,"click",at(i[45])),de(e,"keydown",i[30])],r=!0)},p:_e,d(a){a&&C(e),r=!1,et(l)}}}function Rh(i){let e,t=j("menu_copy_embed_code")+"",n,o,r,l;return{c(){e=I("li"),n=Ve(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=j("menu_copy_embed_code")),c(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),m(e,n),r||(l=[de(e,"click",at(i[26])),de(e,"keydown",i[36])],r=!0)},p:_e,d(a){a&&C(e),r=!1,et(l)}}}function Qf(i){let e,t=j("menu_pip")+"",n,o,r,l;return{c(){e=I("li"),n=Ve(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=j("menu_pip")),c(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),m(e,n),r||(l=[de(e,"click",at(i[24])),de(e,"keydown",i[31])],r=!0)},p:_e,d(a){a&&C(e),r=!1,et(l)}}}function Bh(i){let e=j("menu_video_loop_on")+"",t;return{c(){t=Ve(e)},m(n,o){S(n,t,o)},p:_e,d(n){n&&C(t)}}}function Dh(i){let e=j("menu_video_loop_off")+"",t;return{c(){t=Ve(e)},m(n,o){S(n,t,o)},p:_e,d(n){n&&C(t)}}}function Nh(i){let e,t=j("menu_video_rotate")+"",n,o,r,l;return{c(){e=I("li"),n=Ve(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=j("aria_label_menu_rotate")),c(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),m(e,n),r||(l=[de(e,"click",at(i[20])),de(e,"keydown",i[32])],r=!0)},p:_e,d(a){a&&C(e),r=!1,et(l)}}}function Yf(i){let e,t=j("menu_report")+"",n,o,r,l;return{c(){e=I("li"),n=Ve(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`),c(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),m(e,n),r||(l=[de(e,"click",at(i[21])),de(e,"keydown",i[33])],r=!0)},p:_e,d(a){a&&C(e),r=!1,et(l)}}}function qh(i){let e,t=i[1]&&Wf(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=Wf(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:_e,o:_e,d(n){n&&C(e),t&&t.d(n)}}}function Oh(i,e,t){let n,o,r,l,a,s,{visible:u=!1}=e,{supportLink:f}=e,{position:p={top:0,left:0}}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:k=void 0}=e,{menuElementRef:g=void 0}=e,{returnFocus:w}=e,v=0,E=0,b=nt(),y=Nt(),T=b.ui.contextMenu.visible$,W=b.ui.debugPanelVisible;z(i,W,pe=>t(8,s=pe));let F=b.webApi.pictureInPictureApi,O=b.webApi.pictureInPictureApi?.info.isActive$;z(i,O,pe=>t(7,a=pe));let le=b.state.chromecastState$;z(i,le,pe=>t(6,l=pe));let re=b.state.isLive$;z(i,re,pe=>t(5,r=pe));let H=b.state.positionExact$;z(i,H,pe=>t(47,n=pe));let A=b.state.isInteractive,J=b.state.looped$;z(i,J,pe=>t(4,o=pe));let Y=!!b.callbacks?.onCopyEmbedCodeClicked,ce=()=>{T.set(!1)},Z=(pe,Oe)=>{if(!g||!h||!k)return;let ee=g.getBoundingClientRect(),ke=h.getBoundingClientRect();t(2,v=pe-ke.left),t(3,E=Oe-ke.top),v+ee.width>ke.width&&t(2,v=ke.width-ee.width),E+ee.height>ke.height&&t(3,E=ke.height-ee.height),t(2,v=Math.max(v,0)),t(3,E=Math.max(E,0))},oe=()=>{ce(),b.actions.internal.videoRotate()},P=()=>{window.open(f,"_blank"),ce(),b.actions.internal.pause()},N=()=>{let pe=b.actions.internal.getDebugTextData();if(y.features.saveDebugInfoToFile){let Oe=new Blob([...pe],{type:"plain/text"}),ee=window.URL.createObjectURL(Oe);Gl(ee,"vk_player_debug_info","txt")}else $o(b.actions.internal.getDebugTextData());ce(),w?.()},Me=()=>{W.set(!0),ce(),w?.()},Ue=async()=>{try{F?.isActive()?await F?.remove():await F?.request()}finally{ce(),w?.()}},Ge=()=>{b.actions.internal.setLooped(!o),ce()},Qe=()=>{if(Y){let pe=b.callbacks?.onCopyEmbedCodeClicked?.();pe&&$o(pe)}ce()},Le=(pe=!1)=>{if(b.callbacks?.onCopyVideoLink){let Oe=b.callbacks?.onCopyVideoLink(pe,n);Oe&&$o(Oe)}ce()},be=pe=>{ar(pe,ce)},x=pe=>{_i(pe,()=>Le())},Se=pe=>{_i(pe,()=>Le(!0))},$e=pe=>{_i(pe,()=>Ue())},He=pe=>{_i(pe,()=>oe())},it=pe=>{_i(pe,()=>P())},we=pe=>{_i(pe,()=>N())},Ye=pe=>{_i(pe,()=>Me())},ot=pe=>{_i(pe,()=>Qe())},je=pe=>{_i(pe,()=>Ge())};function Ke(pe){Pn.call(this,i,pe)}let Xe=()=>Le(),fe=()=>Le(!0);function Ce(pe){me[pe?"unshift":"push"](()=>{g=pe,t(0,g)})}return i.$$set=pe=>{"visible"in pe&&t(1,u=pe.visible),"supportLink"in pe&&t(38,f=pe.supportLink),"position"in pe&&t(39,p=pe.position),"playerContainerRef"in pe&&t(40,h=pe.playerContainerRef),"controlsContainerRef"in pe&&t(41,k=pe.controlsContainerRef),"menuElementRef"in pe&&t(0,g=pe.menuElementRef),"returnFocus"in pe&&t(42,w=pe.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&1792){e:if(g&&h&&k){let{top:pe,left:Oe,bottom:ee,right:ke}=p,rt=Oe??0,ye=pe??0,dt=g.getBoundingClientRect();ur(Oe)&&!ur(ke)&&(rt=ke-dt.width),ur(pe)&&!ur(ee)&&(ye=ee-dt.height),rt=Math.max(rt,0),ye=Math.max(ye,0),Z(rt,ye)}}},[g,u,v,E,o,r,l,a,s,b,y,W,F,O,le,re,H,A,J,Y,oe,P,N,Me,Ue,Ge,Qe,Le,be,x,Se,$e,He,it,we,Ye,ot,je,f,p,h,k,w,Ke,Xe,fe,Ce]}var Ns=class extends K{constructor(e){super(),G(this,e,Oh,qh,U,{visible:1,supportLink:38,position:39,playerContainerRef:40,controlsContainerRef:41,menuElementRef:0,returnFocus:42},Vh,[-1,-1])}},Zf=Ns;var cr=class{constructor(e){this.value=e,this.next=null}};var rl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new cr(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){Ie(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function Hh(i){let e,t;return{c(){e=I("div"),t=I("canvas"),c(t,"class","svelte-1ssl9eb"),c(e,"class","container svelte-1ssl9eb")},m(n,o){S(n,e,o),m(e,t),i[3](t)},p:_e,i:_e,o:_e,d(n){n&&C(e),i[3](null)}}}var qs=16,Os=120,Xf=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,r,l=Os/Xf;Pt(()=>{t(0,o.width=Os,o),t(0,o.height=qs,o),t(2,r=o.getContext("2d"))});function a(s){me[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)e:{let s="";if(r){let u=n[0];for(let p=1;p<n.length;p++)n[p]>u&&(u=n[p]);r.clearRect(0,0,Os,qs);let f=Xf-1;for(let p=n.length-1;p>=0;p--){let h=f*l,k=u>0?qs*(n[p]/u):0;zh(r,h,0,l,k),s=k+" "+s,f--}}}},[o,n,r,a]}var Fs=class extends K{constructor(e){super(),G(this,e,Uh,Hh,U,{values:1},Fh)}},fr=Fs;import{safeStorage as Jf}from"@vkontakte/videoplayer-shared";function Kh(i){Ie(i,"svelte-1fypj5i",".container.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{top:16px;left:16px}button.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{padding:5px}.content.svelte-1fypj5i>div.svelte-1fypj5i>div.svelte-1fypj5i{display:inline-block;text-align:right;width:50px;padding:0 5px}")}function xf(i){let e,t,n,o,r=i[0].id+"",l;return{c(){e=I("div"),t=I("div"),t.textContent="Video id",n=D(),o=I("span"),l=Ve(r),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,t),m(e,n),m(e,o),m(o,l)},p(a,s){s&1&&r!==(r=a[0].id+"")&&We(l,r)},d(a){a&&C(e)}}}function $f(i){let e,t,n,o,r=i[0].vsid+"",l;return{c(){e=I("div"),t=I("div"),t.textContent="VSID",n=D(),o=I("span"),l=Ve(r),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,t),m(e,n),m(e,o),m(o,l)},p(a,s){s&1&&r!==(r=a[0].vsid+"")&&We(l,r)},d(a){a&&C(e)}}}function ed(i){let e,t,n,o,r=i[0].provider+"",l;return{c(){e=I("div"),t=I("div"),t.textContent="Provider",n=D(),o=I("span"),l=Ve(r),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,t),m(e,n),m(e,o),m(o,l)},p(a,s){s&1&&r!==(r=a[0].provider+"")&&We(l,r)},d(a){a&&C(e)}}}function td(i){let e,t,n,o,r,l=(i[0].videoCodec||"")+"",a,s,u=i[0].hdr?"(HDR)":"",f,p,h=(i[0].audioCodec||"")+"",k,g,w=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",v;return{c(){e=I("div"),t=I("div"),t.textContent="Streams",n=D(),o=I("span"),r=Ve("Video: "),a=Ve(l),s=D(),f=Ve(u),p=Ve(`
|
|
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&&C(e)}}}function Lf(i){let e,t;return e=new Af({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let 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){V(e,n)}}}function Rf(i){let e,t;return e=new Ef({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Bf(i){let e,t;return e=new Mf({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function ah(i){let e,t,n,o,l,r,a,s=i[0]&&Vf(i),u=i[3]&&Lf(i),f=i[7]&&Rf(i),p=i[4]&&Bf(i);return{c(){e=P("div"),s&&s.c(),t=D(),n=P("video"),o=D(),u&&u.c(),l=D(),f&&f.c(),r=D(),p&&p.c(),mi(n,"width","100%"),mi(n,"height","100%"),n.playsInline=!0,c(e,"class","container svelte-354ajf")},m(h,k){S(h,e,k),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,[k]){h[0]?s||(s=Vf(h),s.c(),s.m(e,t)):s&&(s.d(1),s=null),h[3]?u?(u.p(h,k),k&8&&d(u,1)):(u=Lf(h),u.c(),d(u,1),u.m(e,l)):u&&(ue(),_(u,1,1,()=>{u=null}),ce()),h[7]?f?k&128&&d(f,1):(f=Rf(h),f.c(),d(f,1),f.m(e,r)):f&&(ue(),_(f,1,1,()=>{f=null}),ce()),h[4]?p?k&16&&d(p,1):(p=Bf(h),p.c(),d(p,1),p.m(e,null)):p&&(ue(),_(p,1,1,()=>{p=null}),ce())},i(h){a||(d(u),d(f),d(p),a=!0)},o(h){_(u),_(f),_(p),a=!1},d(h){h&&C(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=tt(),k=h.state.isEnded$;O(i,k,F=>t(7,a=F));let g=h.ui.isMobile;O(i,g,F=>t(0,o=F));let w,v,T=!1,b=h.ads.playbackState;O(i,b,F=>t(18,n=F));let y=h.ads.canSkip,I=h.ads.position;O(i,I,F=>t(5,l=F));let Z=h.ads.secondsToWatchBeforeSkip;O(i,Z,F=>t(6,r=F));let N,z;Tt(()=>{let F=new AbortController,x=()=>{F.abort()},E=h.getAdmanWrapper();if(!s){E.onAdmanLoadingError();return}let{width:X,height:Q}=xe(h.ui.playerSize),G=xe(h.ui.isFullscreen),ee=xe(h.ui.isAutoplay),L={width:X,height:Q,isFullscreen:G,isAutoplay:ee,adsContainer:w,adsVideoElement:v,slotId:s,params:u,previewParam:f,duration:p};return window.AdmanHTML?(E.initAdman(L),T=!0):E.loadAdman(F.signal).then(()=>{E.initAdman(L),T=!0}).catch(()=>{E.onAdmanLoadingError()}),()=>{!T&&x()}});function se(F){pe[F?"unshift":"push"](()=>{v=F,t(2,v)})}function ae(F){pe[F?"unshift":"push"](()=>{w=F,t(1,w)})}return i.$$set=F=>{"adsSlotId"in F&&t(14,s=F.adsSlotId),"adsParams"in F&&t(15,u=F.adsParams),"adsPreviewParam"in F&&t(16,f=F.adsPreviewParam),"duration"in F&&t(17,p=F.duration)},i.$$.update=()=>{if(i.$$.dirty&262144)e:t(3,N=y&&n!=="inactive");if(i.$$.dirty&262145)e:t(4,z=o&&n!=="inactive")},[o,w,v,N,z,l,r,a,h,k,g,b,I,Z,s,u,f,p,n,se,ae]}var Vs=class extends K{constructor(e){super(),W(this,e,uh,ah,U,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},sh)}},lr=Vs;var En=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=Ie(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=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),n=B("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"),ge(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)&&Te(r,l,u,u[1],o?Pe(l,u[1],f,null):Ee(u[1]),null),ge(e,s=Le(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&&C(e),r&&r.d(u)}}}function fh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Ls=class extends K{constructor(e){super(),W(this,e,fh,ch,U,{})}},Df=Ls;function dh(i){let e,t,n,o,l=i[2].default,r=Ie(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=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),t=B("rect"),n=B("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"),ge(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)&&Te(r,l,u,u[1],o?Pe(l,u[1],f,null):Ee(u[1]),null),ge(e,s=Le(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&&C(e),r&&r.d(u)}}}function mh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Rs=class extends K{constructor(e){super(),W(this,e,mh,dh,U,{})}},Nf=Rs;function ph(i){let e,t;return e=new Df({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function _h(i){let e,t;return e=new Nf({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(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=at()},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&&(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),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&&C(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 Bs=class extends K{constructor(e){super(),W(this,e,gh,hh,U,{isActive:0})}},rr=Bs;function bh(i){Se(i,"svelte-7pnl2h",".thumb-timer.svelte-7pnl2h.svelte-7pnl2h{position:absolute;z-index:2;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-7pnl2h.svelte-7pnl2h{font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red)}.thumb-timer.hidden.svelte-7pnl2h.svelte-7pnl2h{visibility:hidden;opacity:0}.thumb-timer.svelte-7pnl2h.svelte-7pnl2h:after{content:'';display:inline-block;vertical-align:middle;height:100%}.thumb-timer-live-icon.svelte-7pnl2h.svelte-7pnl2h{display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px}.thumb-timer-equalizer.svelte-7pnl2h.svelte-7pnl2h{display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px}.live.svelte-7pnl2h .thumb-timer-equalizer.svelte-7pnl2h{margin-top:-2px}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h{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-7pnl2h .thumb-timer-equalizer .col.svelte-7pnl2h{animation-play-state:running}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h:nth-child(1){left:0;animation-name:svelte-7pnl2h-thumb-timer-equalizer-col1}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h:nth-child(2){left:3px;animation-name:svelte-7pnl2h-thumb-timer-equalizer-col2}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h:nth-child(3){left:6px;animation-name:svelte-7pnl2h-thumb-timer-equalizer-col3}@keyframes svelte-7pnl2h-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-7pnl2h-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-7pnl2h-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-7pnl2h.svelte-7pnl2h{display:inline-block;text-align:right}")}function vh(i){let e=En(i[4]-i[3])+"",t;return{c(){t=Ae(e)},m(n,o){S(n,t,o)},p(n,o){o&24&&e!==(e=En(n[4]-n[3])+"")&&je(t,e)},i:_e,o:_e,d(n){n&&C(t)}}}function yh(i){let e,t,n;return t=new rr({props:{isActive:!0}}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","thumb-timer-live-icon svelte-7pnl2h")},m(o,l){S(o,e,l),M(t,e,null),n=!0},p:_e,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),V(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-7pnl2h"></div> <div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div>',n=D(),o=P("span"),r.c(),c(t,"class","thumb-timer-equalizer svelte-7pnl2h"),c(o,"class","thumb-timer-text svelte-7pnl2h"),c(e,"role","timer"),c(e,"class","thumb-timer svelte-7pnl2h"),c(e,"data-testid","thumb-timer"),q(e,"live",i[1]),q(e,"hidden",i[0]),q(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 k=l;l=f(p,h),l===k?u[l].p(p,h):(ue(),_(u[k],1,1,()=>{u[k]=null}),ce(),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)&&q(e,"live",p[1]),(!a||h&1)&&q(e,"hidden",p[0]),(!a||h&4)&&q(e,"playing",p[2])},i(p){a||(d(r),a=!0)},o(p){_(r),a=!1},d(p){p&&C(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 Ds=class extends K{constructor(e){super(),W(this,e,wh,kh,U,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},bh)}},sr=Ds;var el=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{isAndroid as Sh}from"@vkontakte/videoplayer-shared";var qf=Sh(),Ro=i=>{i.stopPropagation(),i.preventDefault()},Ih=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()},Th=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},Eh=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},Of=i=>i.code==="Escape",Ah=i=>i.code==="ArrowLeft",Ff=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},Hf=i=>{if(Th(i)){Ro(i),Ph(i.target);return}Eh(i)&&(Ro(i),Ih(i.target))},il=i=>!qf&&i?.detail===0||qf&&i?.pointerType==="",nl=async(i,e,t)=>{await Un(),i&&!i.classList.contains("opened")&&!e&&xe(t)&&(await Un(),t.set(!1),i.focus())},zf=async(i,e,t)=>{await Un(),i&&!e&&xe(t)&&(t.set(!1),i.focus())},Bo=async(i,e,t)=>{await Un(),!!i&&e&&t&&i.children[0]?.focus()},ol=async(i,e,t)=>{!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))},ar=(i,e)=>{Hf(i),Of(i)&&(Ro(i),e())},ll=async(i,e,t)=>{Ff(i,!1)&&(Ro(i),e(),await Un(),t()?.focus())},rl=async(i,e,t,n)=>{if(Hf(i),Ah(i)){Ro(i),e(),t.set(!0);return}Of(i)&&(Ro(i),n())},pi=(i,e)=>{Ff(i)&&(Ro(i),e())},Uf=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},Kf=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 ur}from"@vkontakte/videoplayer-shared";function Mh(i){Se(i,"svelte-1vzqlps","ul.svelte-1vzqlps{position:absolute;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-1vzqlps{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-1vzqlps:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function Wf(i){let e,t,n,o,l,r,a,s,u,f,p=(i[10].features.saveDebugInfoToFile?j("menu_save_debug"):j("menu_copy_debug"))+"",h,k,g,w,v=j("menu_debug_overlay")+"",T,b,y,I,Z=i[10].features.copyVideoLink&&i[9].callbacks?.onCopyVideoLink&&Vh(i),N=i[19]&&Lh(i),z=i[12]&&i[6]!==jf.CONNECTED&&!i[17]&&Qf(i);function se(X,Q){return X[4]?Bh:Rh}let ae=se(i,[-1,-1]),F=ae(i),x=i[10].features.videoRotate&&!i[17]&&Dh(i),E=i[10].showSupport&&!i[7]&&Yf(i);return{c(){e=P("ul"),Z&&Z.c(),t=D(),N&&N.c(),n=D(),z&&z.c(),o=D(),l=P("li"),F.c(),a=D(),x&&x.c(),s=D(),E&&E.c(),u=D(),f=P("li"),h=Ae(p),g=D(),w=P("li"),T=Ae(v),c(l,"tabindex","0"),c(l,"role","menuitem"),c(l,"aria-label",r=j("aria_label_menu_loop")),c(l,"class","svelte-1vzqlps"),c(f,"tabindex","0"),c(f,"role","menuitem"),c(f,"aria-label",k=i[10].features.saveDebugInfoToFile?j("menu_save_debug"):j("menu_copy_debug")),c(f,"class","svelte-1vzqlps"),c(w,"tabindex","0"),c(w,"role","menuitem"),c(w,"aria-label",b=i[8]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable")),c(w,"class","svelte-1vzqlps"),c(e,"role","menu"),mi(e,"top",i[3]+"px"),mi(e,"left",i[2]+"px"),c(e,"class","svelte-1vzqlps")},m(X,Q){S(X,e,Q),Z&&Z.m(e,null),m(e,t),N&&N.m(e,null),m(e,n),z&&z.m(e,null),m(e,o),m(e,l),F.m(l,null),m(e,a),x&&x.m(e,null),m(e,s),E&&E.m(e,null),m(e,u),m(e,f),m(f,h),m(e,g),m(e,w),m(w,T),i[46](e),y||(I=[de(l,"click",st(i[25])),de(l,"keydown",i[37]),de(f,"click",st(i[22])),de(f,"keydown",i[34]),de(w,"click",st(i[23])),de(w,"keydown",i[35]),de(e,"contextmenu",Pt(i[43])),de(e,"keydown",i[28])],y=!0)},p(X,Q){X[10].features.copyVideoLink&&X[9].callbacks?.onCopyVideoLink&&Z.p(X,Q),X[19]&&N.p(X,Q),X[12]&&X[6]!==jf.CONNECTED&&!X[17]?z?z.p(X,Q):(z=Qf(X),z.c(),z.m(e,o)):z&&(z.d(1),z=null),ae===(ae=se(X,Q))&&F?F.p(X,Q):(F.d(1),F=ae(X),F&&(F.c(),F.m(l,null))),X[10].features.videoRotate&&!X[17]&&x.p(X,Q),X[10].showSupport&&!X[7]?E?E.p(X,Q):(E=Yf(X),E.c(),E.m(e,u)):E&&(E.d(1),E=null),Q[0]&256&&b!==(b=X[8]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"))&&c(w,"aria-label",b),Q[0]&8&&mi(e,"top",X[3]+"px"),Q[0]&4&&mi(e,"left",X[2]+"px")},d(X){X&&C(e),Z&&Z.d(),N&&N.d(),z&&z.d(),F.d(),x&&x.d(),E&&E.d(),i[46](null),y=!1,et(I)}}}function Vh(i){let e,t=j("menu_copy_video_link")+"",n,o,l,r,a,s,u=!i[5]&&!i[17]&&Gf(i);return{c(){e=P("li"),n=Ae(t),l=D(),u&&u.c(),r=at(),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=j("menu_copy_video_link")),c(e,"class","svelte-1vzqlps")},m(f,p){S(f,e,p),m(e,n),S(f,l,p),u&&u.m(f,p),S(f,r,p),a||(s=[de(e,"click",st(i[44])),de(e,"keydown",i[29])],a=!0)},p(f,p){!f[5]&&!f[17]?u?u.p(f,p):(u=Gf(f),u.c(),u.m(r.parentNode,r)):u&&(u.d(1),u=null)},d(f){f&&(C(e),C(l),C(r)),u&&u.d(f),a=!1,et(s)}}}function Gf(i){let e,t=j("menu_copy_video_link_with_timestamp")+"",n,o,l,r;return{c(){e=P("li"),n=Ae(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=j("menu_copy_video_link_with_timestamp")),c(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),m(e,n),l||(r=[de(e,"click",st(i[45])),de(e,"keydown",i[30])],l=!0)},p:_e,d(a){a&&C(e),l=!1,et(r)}}}function Lh(i){let e,t=j("menu_copy_embed_code")+"",n,o,l,r;return{c(){e=P("li"),n=Ae(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=j("menu_copy_embed_code")),c(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),m(e,n),l||(r=[de(e,"click",st(i[26])),de(e,"keydown",i[36])],l=!0)},p:_e,d(a){a&&C(e),l=!1,et(r)}}}function Qf(i){let e,t=j("menu_pip")+"",n,o,l,r;return{c(){e=P("li"),n=Ae(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=j("menu_pip")),c(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),m(e,n),l||(r=[de(e,"click",st(i[24])),de(e,"keydown",i[31])],l=!0)},p:_e,d(a){a&&C(e),l=!1,et(r)}}}function Rh(i){let e=j("menu_video_loop_on")+"",t;return{c(){t=Ae(e)},m(n,o){S(n,t,o)},p:_e,d(n){n&&C(t)}}}function Bh(i){let e=j("menu_video_loop_off")+"",t;return{c(){t=Ae(e)},m(n,o){S(n,t,o)},p:_e,d(n){n&&C(t)}}}function Dh(i){let e,t=j("menu_video_rotate")+"",n,o,l,r;return{c(){e=P("li"),n=Ae(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=j("aria_label_menu_rotate")),c(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),m(e,n),l||(r=[de(e,"click",st(i[20])),de(e,"keydown",i[32])],l=!0)},p:_e,d(a){a&&C(e),l=!1,et(r)}}}function Yf(i){let e,t=j("menu_report")+"",n,o,l,r;return{c(){e=P("li"),n=Ae(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`),c(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),m(e,n),l||(r=[de(e,"click",st(i[21])),de(e,"keydown",i[33])],l=!0)},p:_e,d(a){a&&C(e),l=!1,et(r)}}}function Nh(i){let e,t=i[1]&&Wf(i);return{c(){t&&t.c(),e=at()},m(n,o){t&&t.m(n,o),S(n,e,o)},p(n,o){n[1]?t?t.p(n,o):(t=Wf(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:_e,o:_e,d(n){n&&C(e),t&&t.d(n)}}}function qh(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:k=void 0}=e,{menuElementRef:g=void 0}=e,{returnFocus:w}=e,v=0,T=0,b=tt(),y=Bt(),I=b.ui.contextMenu.visible$,Z=b.ui.debugPanelVisible;O(i,Z,le=>t(8,s=le));let N=b.webApi.pictureInPictureApi,z=b.webApi.pictureInPictureApi?.info.isActive$;O(i,z,le=>t(7,a=le));let se=b.state.chromecastState$;O(i,se,le=>t(6,r=le));let ae=b.state.isLive$;O(i,ae,le=>t(5,l=le));let F=b.state.positionExact$;O(i,F,le=>t(47,n=le));let x=b.state.isInteractive,E=b.state.looped$;O(i,E,le=>t(4,o=le));let X=!!b.callbacks?.onCopyEmbedCodeClicked,Q=()=>{I.set(!1)},G=(le,De)=>{if(!g||!h||!k)return;let Me=g.getBoundingClientRect(),Ye=h.getBoundingClientRect();t(2,v=le-Ye.left),t(3,T=De-Ye.top),v+Me.width>Ye.width&&t(2,v=Ye.width-Me.width),T+Me.height>Ye.height&&t(3,T=Ye.height-Me.height),t(2,v=Math.max(v,0)),t(3,T=Math.max(T,0))},ee=()=>{Q(),b.actions.internal.videoRotate()},L=()=>{window.open(f,"_blank"),Q(),b.actions.internal.pause()},H=()=>{let le=b.actions.internal.getDebugTextData();if(y.features.saveDebugInfoToFile){let De=new Blob([...le],{type:"plain/text"}),Me=window.URL.createObjectURL(De);Gl(Me,"vk_player_debug_info","txt")}else el(b.actions.internal.getDebugTextData());Q(),w?.()},Be=()=>{Z.set(!0),Q(),w?.()},ze=async()=>{try{N?.isActive()?await N?.remove():await N?.request()}finally{Q(),w?.()}},We=()=>{b.actions.internal.setLooped(!o),Q()},Xe=()=>{if(X){let le=b.callbacks?.onCopyEmbedCodeClicked?.();le&&el(le)}Q()},qe=(le=!1)=>{if(b.callbacks?.onCopyVideoLink){let De=b.callbacks?.onCopyVideoLink(le,n);De&&el(De)}Q()},ye=le=>{ar(le,Q)},J=le=>{pi(le,()=>qe())},we=le=>{pi(le,()=>qe(!0))},Ke=le=>{pi(le,()=>ze())},Je=le=>{pi(le,()=>ee())},it=le=>{pi(le,()=>L())},ke=le=>{pi(le,()=>H())},Ne=le=>{pi(le,()=>Be())},Ge=le=>{pi(le,()=>Xe())},nt=le=>{pi(le,()=>We())};function Ce(le){Pn.call(this,i,le)}let re=()=>qe(),Ue=()=>qe(!0);function me(le){pe[le?"unshift":"push"](()=>{g=le,t(0,g)})}return i.$$set=le=>{"visible"in le&&t(1,u=le.visible),"supportLink"in le&&t(38,f=le.supportLink),"position"in le&&t(39,p=le.position),"playerContainerRef"in le&&t(40,h=le.playerContainerRef),"controlsContainerRef"in le&&t(41,k=le.controlsContainerRef),"menuElementRef"in le&&t(0,g=le.menuElementRef),"returnFocus"in le&&t(42,w=le.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&1792){e:if(g&&h&&k){let{top:le,left:De,bottom:Me,right:Ye}=p,rt=De??0,ve=le??0,ft=g.getBoundingClientRect();ur(De)&&!ur(Ye)&&(rt=Ye-ft.width),ur(le)&&!ur(Me)&&(ve=Me-ft.height),rt=Math.max(rt,0),ve=Math.max(ve,0),G(rt,ve)}}},[g,u,v,T,o,l,r,a,s,b,y,Z,N,z,se,ae,F,x,E,X,ee,L,H,Be,ze,We,Xe,qe,ye,J,we,Ke,Je,it,ke,Ne,Ge,nt,f,p,h,k,w,Ce,re,Ue,me]}var Ns=class extends K{constructor(e){super(),W(this,e,qh,Nh,U,{visible:1,supportLink:38,position:39,playerContainerRef:40,controlsContainerRef:41,menuElementRef:0,returnFocus:42},Mh,[-1,-1])}},Zf=Ns;var cr=class{constructor(e){this.value=e,this.next=null}};var sl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new cr(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 Oh(i){Se(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function Fh(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:_e,i:_e,o:_e,d(n){n&&C(e),i[3](null)}}}var qs=16,Os=120,Xf=60;function Hh(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function zh(i,e,t){let{values:n=[]}=e,o,l,r=Os/Xf;Tt(()=>{t(0,o.width=Os,o),t(0,o.height=qs,o),t(2,l=o.getContext("2d"))});function a(s){pe[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)e:{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,Os,qs);let f=Xf-1;for(let p=n.length-1;p>=0;p--){let h=f*r,k=u>0?qs*(n[p]/u):0;Hh(l,h,0,r,k),s=k+" "+s,f--}}}},[o,n,l,a]}var Fs=class extends K{constructor(e){super(),W(this,e,zh,Fh,U,{values:1},Oh)}},fr=Fs;import{safeStorage as Jf}from"@vkontakte/videoplayer-shared";function Uh(i){Se(i,"svelte-1fypj5i",".container.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{top:16px;left:16px}button.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{padding:5px}.content.svelte-1fypj5i>div.svelte-1fypj5i>div.svelte-1fypj5i{display:inline-block;text-align:right;width:50px;padding:0 5px}")}function xf(i){let e,t,n,o,l=i[0].id+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Video id",n=D(),o=P("span"),r=Ae(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},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+"")&&je(r,l)},d(a){a&&C(e)}}}function $f(i){let e,t,n,o,l=i[0].vsid+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="VSID",n=D(),o=P("span"),r=Ae(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},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+"")&&je(r,l)},d(a){a&&C(e)}}}function e1(i){let e,t,n,o,l=i[0].provider+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Provider",n=D(),o=P("span"),r=Ae(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},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+"")&&je(r,l)},d(a){a&&C(e)}}}function t1(i){let e,t,n,o,l,r=(i[0].videoCodec||"")+"",a,s,u=i[0].hdr?"(HDR)":"",f,p,h=(i[0].audioCodec||"")+"",k,g,w=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",v;return{c(){e=P("div"),t=P("div"),t.textContent="Streams",n=D(),o=P("span"),l=Ae("Video: "),a=Ae(r),s=D(),f=Ae(u),p=Ae(`
|
|
25
25
|
&
|
|
26
|
-
Audio: `),k=
|
|
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,r,l,a;return{c(){e=I("div"),t=I("canvas"),n=D(),o=B("svg"),r=B("g"),l=B("g"),a=B("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(l,"fill-rule","nonzero"),c(r,"fill","none"),c(r,"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,r),m(r,l),m(l,a)},p:_e,i:_e,o:_e,d(s){s&&C(e),i[2](null)}}}var xh=5e3;function $h(i,e,t){let{onTimerEnded:n=Zh}=e,o;Pt(()=>{let l,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(),l=requestAnimationFrame(u)):n()};return l=requestAnimationFrame(u),()=>{cancelAnimationFrame(l)}});function r(l){me[l?"unshift":"push"](()=>{o=l,t(0,o)})}return i.$$set=l=>{"onTimerEnded"in l&&t(1,n=l.onTimerEnded)},[o,n,r]}var Us=class extends K{constructor(e){super(),G(this,e,$h,Jh,U,{onTimerEnded:1},Xh)}},md=Us;function e2(i){Ie(i,"svelte-kisfwc",".overlay.svelte-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.svelte-kisfwc{display:flex;justify-content:space-between}.caption.svelte-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.svelte-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-kisfwc{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.svelte-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.svelte-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function pd(i){let e,t;return e=new md({props:{onTimerEnded:i[2]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.onTimerEnded=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function t2(i){let e,t,n,o,r,l,a,s,u,f,p,h,k,g,w,v,E,b,y,T,W;a=new dd({}),a.$on("click",i[4]);let F=i[3]&&pd(i);return{c(){e=I("div"),t=D(),n=I("div"),o=I("div"),r=I("div"),r.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",l=D(),R(a.$$.fragment),s=D(),u=I("div"),f=I("div"),p=I("div"),h=I("div"),k=D(),F&&F.c(),w=D(),v=I("div"),E=I("div"),b=Ve(i[0]),c(e,"class","overlay svelte-kisfwc"),c(r,"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(v,"class","column svelte-kisfwc"),c(u,"class","row svelte-kisfwc"),c(n,"class","next-video svelte-kisfwc")},m(O,le){S(O,e,le),S(O,t,le),S(O,n,le),m(n,o),m(o,r),m(o,l),V(a,o,null),m(n,s),m(n,u),m(u,f),m(f,p),m(p,h),m(p,k),F&&F.m(p,null),m(u,w),m(u,v),m(v,E),m(E,b),y=!0,T||(W=de(u,"click",function(){Ci(i[2])&&i[2].apply(this,arguments)}),T=!0)},p(O,[le]){i=O,i[3]?F?(F.p(i,le),le&8&&d(F,1)):(F=pd(i),F.c(),d(F,1),F.m(p,null)):F&&(se(),_(F,1,1,()=>{F=null}),ae()),(!y||le&2&&g!==(g=`background-image: url('${i[1]}')`))&&c(p,"style",g),(!y||le&1)&&We(b,i[0])},i(O){y||(d(a.$$.fragment,O),d(F),y=!0)},o(O){_(a.$$.fragment,O),_(F),y=!1},d(O){O&&(C(e),C(t),C(n)),L(a),F&&F.d(),T=!1,W()}}}function i2(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:r}=e,l=!0,a=()=>t(3,l=!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,r=s.playNextVideo)},[n,o,r,l,a]}var Ks=class extends K{constructor(e){super(),G(this,e,i2,t2,U,{title:0,thumb:1,playNextVideo:2},e2)}},_d=Ks;import{PlaybackState as No}from"@vkontakte/videoplayer-core";import{checkNever as o2}from"@vkontakte/videoplayer-shared";import{SeekAction as yn}from"@vkontakte/videoplayer-statistics";var js=(i,e)=>Math.min(+(i+e).toFixed(2),1),Ws=(i,e)=>Math.max(+(i-e).toFixed(2),0),mr=(i,e,t)=>{let n=js(e,t);e<1&&i.actions.internal.setVolume(n)},pr=(i,e,t)=>{let n=Ws(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 l2(i){Ie(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function r2(i){let e,t,n,o,r,l=i[26].default,a=Pe(l,i,i[25],null);return{c(){e=I("div"),a&&a.c(),c(e,"class","keyboard-controls svelte-10kkmxz"),c(e,"tabindex","-1"),c(e,"role","region"),c(e,"aria-label",t=j("aria_label_video_player"))},m(s,u){S(s,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(r=[de(e,"keyup",i[17]),de(e,"keydown",i[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Ee(a,l,s,s[25],n?Te(l,s[25],u,null):Ae(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){_(a,s),n=!1},d(s){s&&C(e),a&&a.d(s),i[27](null),o=!1,et(r)}}}function s2(i,e,t){let n,o,r,l,a,s,u,f,p,h,k,g,w,v,E,{$$slots:b={},$$scope:y}=e,{isAds:T}=e,{hideContextMenu:W}=e,{toggleFullscreen:F}=e,{showHotKeyHelpers:O}=e,{showKeyMap:le}=e,{fakePlayButtonHandler:re}=e,H=nt(),A=Nt(),J=H.getLogger().createComponentLog("KeyboardControls component"),Y=H.state.playbackState$;z(i,Y,ye=>t(31,o=ye));let ce=H.ads.playbackState;z(i,ce,ye=>t(30,n=ye));let Z=H.state.positionExact$;z(i,Z,ye=>t(41,g=ye));let oe=H.state.duration$;z(i,oe,ye=>t(40,k=ye));let P=H.state.volume$;z(i,P,ye=>t(44,E=ye));let N=H.ui.controls.disabledControls$;z(i,N,ye=>t(39,h=ye));let Me=H.state.muted$;z(i,Me,ye=>t(34,a=ye));let Ue=H.state.currentSubtitle$;z(i,Ue,ye=>t(33,l=ye));let Ge=H.state.currentPlaybackRate$;z(i,Ge,ye=>t(42,w=ye));let Qe=H.state.availablePlaybackRates$;z(i,Qe,ye=>t(43,v=ye));let Le=H.ui.contextMenu.openedByHotKey$,be=H.ui.contextMenu.lastActiveElem$,x=H.ui.contextMenu.visible$,Se=H.ui.contextMenu.position$,$e=H.state.isEnded$;z(i,$e,ye=>t(36,u=ye));let He=H.ui.overlayContainer$;z(i,He,ye=>t(32,r=ye));let it=H.callbacks?.onAudioDoesNotExistHint,we=H.callbacks?.onAudioDisabledHint,Ye=H.state.isAudioAvailable$;z(i,Ye,ye=>t(35,s=ye));let ot=H.state.isAudioDisabled,je=H.state.isInteractiveTime$;z(i,je,ye=>t(38,p=ye));let{showInteractiveTimeIndicatorTooltip$:Ke}=Ln();z(i,Ke,ye=>t(37,f=ye));let Xe=0,fe=!0,Ce,pe=()=>Ce?.focus(),Oe=ye=>(ye!==fe&&(fe=ye,Xe=0),Xe+=1,(A.controls.seekStepKeyboard+A.controls.seekStepKeyboard*Xe)/1e3),ee=ye=>{let dt=ye.target,Fe=dt?.getAttribute("role")?.includes("menuitem"),mt=dt.classList.contains("btn"),kt=ye.code;if(mt&&kt==="Space")return;let Tt=jc.has(kt);if(Fe&&Tt)return;let Ze=!Kc.has(kt);if(ye.ctrlKey&&Ze||ye.altKey&&Ze||ye.metaKey)return;let qt=Fe&&kt==="Escape";Wc.has(kt)||qt||W();let Vt=o===No.PLAYING||o===No.PAUSED,Ct=T&&(n==="paused"||n==="playing"),si=!Ct&&!h.has("TIMELINE");if(Vt||Ct)switch(J({message:`key down, code: ${kt}`}),kt){case"KeyJ":case"ArrowLeft":{if(!si)break;if(ye.ctrlKey||ye.altKey){let st=H.actions.internal.getPrevEpisode();H.actions.internal.seekToPrevEpisode(st),st&&O({type:"EPISODE_PREV",text:st.text}),ye.preventDefault()}else{let st=ye.shiftKey?Oe(!1):A.controls.seekStepKeyboard/1e3,gt=Math.max(g-st,0);g>0&&(H.actions.internal.seekTime(gt,yn.DOUBLE_TAP),O({type:"BACKWARD_SEEK",text:st.toString()}),ye.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!si)break;if(ye.ctrlKey||ye.altKey){let st=H.actions.internal.getNextEpisode();H.actions.internal.seekToNextEpisode(st),st&&O({type:"EPISODE_NEXT",text:st.text}),ye.preventDefault()}else{let st=ye.shiftKey?Oe(!0):A.controls.seekStepKeyboard/1e3,gt=Math.min(g+st,k);Math.round(g)<Math.round(k)&&(H.actions.internal.seekTime(gt,yn.DOUBLE_TAP),O({type:"FORWARD_SEEK",text:st.toString()}),ye.preventDefault())}break}case"ArrowUp":{if(ro({isAudioDisabled:ot,audioDisabledHintCallback:we,isAudioAvailable:s,audioIsNotExistHintCallback:it})){let st=E,gt=A.controls.volumeStepKeyboard,ve=st<=1;if(mr(H,st,gt),ve){let _t=Math.round(js(st,gt)*100).toString();O({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:_t}})}}ye.preventDefault();break}case"ArrowDown":{if(ro({isAudioDisabled:ot,audioDisabledHintCallback:we,isAudioAvailable:s,audioIsNotExistHintCallback:it})){let st=E,gt=A.controls.volumeStepKeyboard,ve=st>=0;if(pr(H,st,gt),ve){let _t=Math.round(Ws(st,gt)*100).toString();O({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:_t}})}}ye.preventDefault();break}case"Comma":{if(ye.shiftKey){H.actions.internal.decrementPlaybackRate();let st=v.find(gt=>gt.value===w);O({type:"RATE_DOWN",text:st?.displayValue}),ye.preventDefault()}else{if(Ct||o!==No.PAUSED)break;let st=Math.max(g-A.controls.seekStepFrame/1e3,0);g>0&&(O({type:"BACKWARD_SEEK"}),H.actions.internal.clearDelayedBufferingCheckTimeout(),H.actions.internal.seekTime(st,yn.DOUBLE_TAP),ye.preventDefault())}break}case"Period":{if(ye.shiftKey){H.actions.internal.incrementPlaybackRate();let st=v.find(gt=>gt.value===w);O({type:"RATE_UP",text:st?.displayValue}),ye.preventDefault()}else{if(Ct||o!==No.PAUSED)break;let st=Math.min(g+A.controls.seekStepFrame/1e3,k);g<k&&(O({type:"FORWARD_SEEK"}),H.actions.internal.clearDelayedBufferingCheckTimeout(),H.actions.internal.seekTime(st,yn.DOUBLE_TAP),ye.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(p&&f&&Ke.set(!1),re)re();else{H.actions.internal.togglePlay();let st="PLAY";o===No.PAUSED?st="PAUSE":u&&(st="REPLAY"),O({type:st})}ye.preventDefault();break;case"KeyM":{ro({isAudioDisabled:ot,audioDisabledHintCallback:we,isAudioAvailable:s,audioIsNotExistHintCallback:it})&&(O({type:a?"VOLUME":"MUTE"}),H.actions.internal.toggleMuted()),ye.preventDefault();break}case"KeyF":F(),ye.preventDefault();break;case"KeyC":H.actions.internal.toggleSubtitle(),l.value!=="off"?O({type:"SUBTITLES_ON",text:l?.displayValue}):O({type:"SUBTITLES_OFF"}),ye.preventDefault();break;case"KeyI":H.actions.internal.togglePictureInPicture(),ye.preventDefault();break;case"Digit1":case"Numpad1":if(ye.shiftKey){let st=Kf(r);Se.set(st),be.set(dt),Le.set(!0),x.set(!0),ye.preventDefault();break}O(),H.actions.internal.seekToPercent(.1,yn.DOUBLE_TAP),ye.preventDefault();break;case"Digit2":case"Numpad2":O(),H.actions.internal.seekToPercent(.2,yn.DOUBLE_TAP),ye.preventDefault();break;case"Digit3":case"Numpad3":O(),H.actions.internal.seekToPercent(.3,yn.DOUBLE_TAP),ye.preventDefault();break;case"Digit4":case"Numpad4":O(),H.actions.internal.seekToPercent(.4,yn.DOUBLE_TAP),ye.preventDefault();break;case"Digit5":case"Numpad5":O(),H.actions.internal.seekToPercent(.5,yn.DOUBLE_TAP),ye.preventDefault();break;case"Digit6":case"Numpad6":O(),H.actions.internal.seekToPercent(.6,yn.DOUBLE_TAP),ye.preventDefault();break;case"Digit7":case"Numpad7":O(),H.actions.internal.seekToPercent(.7,yn.DOUBLE_TAP),ye.preventDefault();break;case"Digit8":case"Numpad8":O(),H.actions.internal.seekToPercent(.8,yn.DOUBLE_TAP),ye.preventDefault();break;case"Digit9":case"Numpad9":O(),H.actions.internal.seekToPercent(.9,yn.DOUBLE_TAP),ye.preventDefault();break;case"Digit0":case"Numpad0":O(),H.actions.internal.seekToPercent(0,yn.DOUBLE_TAP),ye.preventDefault();break;case"Slash":{ye.shiftKey&&A.features.hotKeyMapModal&&(le(),ye.preventDefault());break}case"ShiftLeft":case"ShiftRight":ye.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:o2(kt);break}},ke=ye=>{let dt=ye.code;if(ye.ctrlKey||ye.altKey||ye.metaKey)return;let Fe=o===No.PLAYING||o===No.PAUSED,mt=T&&(n==="paused"||n==="playing");if(Fe||mt)switch(dt){case"ShiftLeft":case"ShiftRight":Xe=0;break}};function rt(ye){me[ye?"unshift":"push"](()=>{Ce=ye,t(0,Ce)})}return i.$$set=ye=>{"isAds"in ye&&t(18,T=ye.isAds),"hideContextMenu"in ye&&t(19,W=ye.hideContextMenu),"toggleFullscreen"in ye&&t(20,F=ye.toggleFullscreen),"showHotKeyHelpers"in ye&&t(21,O=ye.showHotKeyHelpers),"showKeyMap"in ye&&t(22,le=ye.showKeyMap),"fakePlayButtonHandler"in ye&&t(23,re=ye.fakePlayButtonHandler),"$$scope"in ye&&t(25,y=ye.$$scope)},[Ce,Y,ce,Z,oe,P,N,Me,Ue,Ge,Qe,$e,He,Ye,je,Ke,ee,ke,T,W,F,O,le,re,pe,y,b,rt]}var Gs=class extends K{constructor(e){super(),G(this,e,s2,r2,U,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},l2,[-1,-1])}get focus(){return this.$$.ctx[24]}},hd=Gs;function a2(i){Ie(i,"svelte-8nkw5s",".container.svelte-8nkw5s.svelte-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes svelte-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.svelte-8nkw5s.svelte-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:svelte-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.svelte-8nkw5s+.dot.svelte-8nkw5s{margin-left:4px}")}function u2(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div>',c(e,"class","container svelte-8nkw5s")},m(t,n){S(t,e,n)},p:_e,i:_e,o:_e,d(t){t&&C(e)}}}var Qs=class extends K{constructor(e){super(),G(this,e,null,u2,U,{},a2)}},_r=Qs;function c2(i){let e,t,n,o,r,l,a,s,u,f,p,h,k,g,w=i[2].default,v=Pe(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]],b={};for(let y=0;y<E.length;y+=1)b=ne(b,E[y]);return{c(){e=B("svg"),v&&v.c(),t=B("g"),n=B("path"),o=B("path"),r=B("defs"),l=B("filter"),a=B("feFlood"),s=B("feColorMatrix"),u=B("feOffset"),f=B("feGaussianBlur"),p=B("feColorMatrix"),h=B("feBlend"),k=B("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(k,"in","SourceGraphic"),c(k,"in2","effect1_dropShadow_2422_111980"),c(k,"result","shape"),c(l,"id","a"),c(l,"width","23"),c(l,"height","23"),c(l,"x",".5"),c(l,"y",".5"),c(l,"color-interpolation-filters","sRGB"),c(l,"filterUnits","userSpaceOnUse"),ge(e,b)},m(y,T){S(y,e,T),v&&v.m(e,null),m(e,t),m(t,n),m(t,o),m(e,r),m(r,l),m(l,a),m(l,s),m(l,u),m(l,f),m(l,p),m(l,h),m(l,k),g=!0},p(y,[T]){v&&v.p&&(!g||T&2)&&Ee(v,w,y,y[1],g?Te(w,y[1],T,null):Ae(y[1]),null),ge(e,b=Be(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},T&1&&y[0]]))},i(y){g||(d(v,y),g=!0)},o(y){_(v,y),g=!1},d(y){y&&C(e),v&&v.d(y)}}}function f2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ys=class extends K{constructor(e){super(),G(this,e,f2,c2,U,{})}},gd=Ys;import{noop as Jn}from"@vkontakte/videoplayer-shared";function d2(i){Ie(i,"svelte-1anemql",".btn.svelte-1anemql{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center}.w-max.svelte-1anemql{width:100%}.btn--live.svelte-1anemql{padding:10px 4px}.btn-m.svelte-1anemql{position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.btn-m--play.svelte-1anemql{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn.svelte-1anemql:disabled{cursor:default;pointer-events:none}.btn.svelte-1anemql:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-1anemql:not(:disabled):hover{opacity:0.8}.pr-0.svelte-1anemql{padding-right:0}.pl-0.svelte-1anemql{padding-left:0}")}function m2(i){let e,t,n,o,r,l,a,s,u,f,p,h,k=i[14].default,g=Pe(k,i,i[13],null);return{c(){e=I("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",r=i[5]??null),c(e,"aria-label",l=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,v){S(w,e,v),g&&g.m(e,null),i[16](e),f=!0,p||(h=[de(e,"pointerdown",at(It(i[15]))),de(e,"click",at(It(function(){Ci(i[10]===Jn?null:i[10])&&(i[10]===Jn?null:i[10]).apply(this,arguments)}))),de(e,"focus",It(function(){Ci(i[11]===Jn?null:i[11])&&(i[11]===Jn?null:i[11]).apply(this,arguments)})),de(e,"blur",It(function(){Ci(i[12]===Jn?null:i[12])&&(i[12]===Jn?null:i[12]).apply(this,arguments)}))],p=!0)},p(w,[v]){i=w,g&&g.p&&(!f||v&8192)&&Ee(g,k,i,i[13],f?Te(k,i[13],v,null):Ae(i[13]),null),(!f||v&2&&t!==(t="btn "+i[1]+" svelte-1anemql"))&&c(e,"class",t),(!f||v&4&&n!==(n=i[2]||null))&&c(e,"style",n),(!f||v&8&&o!==(o=i[3]??null))&&(e.disabled=o),(!f||v&32&&r!==(r=i[5]??null))&&c(e,"aria-hidden",r),(!f||v&64&&l!==(l=i[6]??null))&&c(e,"aria-label",l),(!f||v&128&&a!==(a=i[7]??null))&&c(e,"aria-keyshortcuts",a),(!f||v&256&&s!==(s=i[8]??null))&&c(e,"aria-expanded",s),(!f||v&16&&u!==(u=i[4]??null))&&c(e,"data-testid",u),(!f||v&512)&&c(e,"tabindex",i[9])},i(w){f||(d(g,w),f=!0)},o(w){_(g,w),f=!1},d(w){w&&C(e),g&&g.d(w),i[16](null),p=!1,et(h)}}}function p2(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:r=""}=e,{style:l=""}=e,{disabled:a=void 0}=e,{testId:s=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:f=void 0}=e,{ref:p=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:k=void 0}=e,{tabIndex:g=0}=e,{click:w=Jn}=e,{focus:v=Jn}=e,{blur:E=Jn}=e;function b(T){Pn.call(this,i,T)}function y(T){me[T?"unshift":"push"](()=>{p=T,t(0,p)})}return i.$$set=T=>{"className"in T&&t(1,r=T.className),"style"in T&&t(2,l=T.style),"disabled"in T&&t(3,a=T.disabled),"testId"in T&&t(4,s=T.testId),"ariaHidden"in T&&t(5,u=T.ariaHidden),"ariaLabel"in T&&t(6,f=T.ariaLabel),"ref"in T&&t(0,p=T.ref),"ariaKeyShortCut"in T&&t(7,h=T.ariaKeyShortCut),"ariaExpanded"in T&&t(8,k=T.ariaExpanded),"tabIndex"in T&&t(9,g=T.tabIndex),"click"in T&&t(10,w=T.click),"focus"in T&&t(11,v=T.focus),"blur"in T&&t(12,E=T.blur),"$$scope"in T&&t(13,o=T.$$scope)},[p,r,l,a,s,u,f,h,k,g,w,v,E,o,n,b,y]}var Zs=class extends K{constructor(e){super(),G(this,e,p2,m2,U,{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},d2)}},pt=Zs;function _2(i){Ie(i,"svelte-1witlsj",".modal-overlay.svelte-1witlsj{position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center}.modal-container.svelte-1witlsj{display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px}.modal-header.svelte-1witlsj{box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24)}.modal-title.svelte-1witlsj{margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.modal-scroll.svelte-1witlsj{overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%}.modal-scroll.svelte-1witlsj::-webkit-scrollbar{width:8px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track{box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.svelte-1witlsj{margin:-8px -4px 0 0}")}function bd(i){let e,t,n,o,r,l=i[2]&&vd(i);return{c(){e=I("div"),t=I("h3"),n=Ve(i[3]),o=D(),l&&l.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),l&&l.m(e,null),r=!0},p(a,s){(!r||s&8)&&We(n,a[3]),a[2]?l?(l.p(a,s),s&4&&d(l,1)):(l=vd(a),l.c(),d(l,1),l.m(e,null)):l&&(se(),_(l,1,1,()=>{l=null}),ae())},i(a){r||(d(l),r=!0)},o(a){_(l),r=!1},d(a){a&&C(e),l&&l.d()}}}function vd(i){let e,t;return e=new pt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:j("hotkey_map_modal_close_btn_text"),$$slots:{default:[h2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.click=n[0]),o&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function h2(i){let e,t;return e=new gd({}),{c(){R(e.$$.fragment)},m(n,o){V(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 g2(i){let e,t,n,o,r,l,a=i[1]&&bd(i),s=i[4].default,u=Pe(s,i,i[5],null);return{c(){e=I("div"),t=I("div"),a&&a.c(),n=D(),o=I("div"),r=I("div"),u&&u.c(),c(r,"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,r),u&&u.m(r,null),l=!0},p(f,[p]){f[1]?a?(a.p(f,p),p&2&&d(a,1)):(a=bd(f),a.c(),d(a,1),a.m(t,n)):a&&(se(),_(a,1,1,()=>{a=null}),ae()),u&&u.p&&(!l||p&32)&&Ee(u,s,f,f[5],l?Te(s,f[5],p,null):Ae(f[5]),null)},i(f){l||(d(a),d(u,f),l=!0)},o(f){_(a),_(u,f),l=!1},d(f){f&&C(e),a&&a.d(),u&&u.d(f)}}}function b2(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:r}=e,{showHeader:l=!0}=e,{showCloseCross:a=!0}=e,{title:s}=e;return i.$$set=u=>{"onClose"in u&&t(0,r=u.onClose),"showHeader"in u&&t(1,l=u.showHeader),"showCloseCross"in u&&t(2,a=u.showCloseCross),"title"in u&&t(3,s=u.title),"$$scope"in u&&t(5,o=u.$$scope)},[r,l,a,s,n,o]}var Xs=class extends K{constructor(e){super(),G(this,e,b2,g2,U,{onClose:0,showHeader:1,showCloseCross:2,title:3},_2)}},yd=Xs;var v2=new Set(["BR"]),Js=i=>{let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let o=t[n],r=o.tagName;v2.has(r)||o.parentElement?.removeChild(o)}return e.innerHTML};function y2(i){Ie(i,"svelte-quklnq",".hot-key-map.svelte-quklnq{color:var(--black);box-sizing:border-box;overflow-x:hidden}.hot-key-map-group.svelte-quklnq{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.svelte-quklnq:last-child{border-bottom:none}.hot-key-map-group-title.svelte-quklnq{color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.hot-key-map-group-title.svelte-quklnq,.hot-key-map-item.svelte-quklnq{padding:12px 0;margin:0;width:100%}.hot-key-map-group-items.svelte-quklnq{box-sizing:border-box;list-style:none;padding:0;margin:0}.hot-key-map-item.svelte-quklnq{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.svelte-quklnq{color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px}.hot-key-map-item-value.svelte-quklnq{color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px}.hot-key-map-item-description.svelte-quklnq,.hot-key-map-item-value.svelte-quklnq{font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}")}function kd(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function wd(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=Js(i[9])+"",o,r,l=i[10]+"",a,s;return{c(){e=I("li"),t=I("span"),o=D(),r=I("span"),a=Ve(l),s=D(),c(t,"class","hot-key-map-item-description svelte-quklnq"),c(r,"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,r),m(r,a),m(e,s)},p(u,f){f&1&&n!==(n=Js(u[9])+"")&&(t.innerHTML=n),f&1&&l!==(l=u[10]+"")&&We(a,l)},d(u){u&&C(e)}}}function Sd(i){let e,t,n=i[5]+"",o,r,l,a,s=wt(i[6]),u=[];for(let f=0;f<s.length;f+=1)u[f]=Cd(wd(i,s,f));return{c(){e=I("div"),t=I("h5"),o=Ve(n),r=D(),l=I("ul");for(let f=0;f<u.length;f+=1)u[f].c();a=D(),c(t,"class","hot-key-map-group-title svelte-quklnq"),c(l,"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,r),m(e,l);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(l,null);m(e,a)},p(f,p){if(p&1&&n!==(n=f[5]+"")&&We(o,n),p&1){s=wt(f[6]);let h;for(h=0;h<s.length;h+=1){let k=wd(f,s,h);u[h]?u[h].p(k,p):(u[h]=Cd(k),u[h].c(),u[h].m(l,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=s.length}},d(f){f&&C(e),Si(u,f)}}}function k2(i){let e,t=wt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=Sd(kd(i,t,o));return{c(){e=I("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","hot-key-map svelte-quklnq")},m(o,r){S(o,e,r);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,r){if(r&1){t=wt(o[0].groups);let l;for(l=0;l<t.length;l+=1){let a=kd(o,t,l);n[l]?n[l].p(a,r):(n[l]=Sd(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&C(e),Si(n,o)}}}function w2(i){let e,t;return e=new yd({props:{title:i[0].title,onClose:i[2],$$slots:{default:[k2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.title=n[0].title),o&8193&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function C2(i,e,t){let n,o=nt(),{data:r,show:l}=o.ui.modals.hotKeyMap;return z(i,r,s=>t(0,n=s)),[n,r,()=>{l.set(!1)}]}var xs=class extends K{constructor(e){super(),G(this,e,C2,w2,U,{},y2)}},Id=xs;import{noop as Du}from"@vkontakte/videoplayer-shared";import{ChromecastState as dm,PlaybackState as Iu}from"@vkontakte/videoplayer-core";import{VideoQuality as yg}from"@vkontakte/videoplayer-core";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"},Pd={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 S2=i=>qo[i]??qo[Pd[i]]??void 0,hr=(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=S2(t)??t),n&&t&&o){let l=e.filter(a=>a.label===n&&a.language===t);if(l.length===1)return j("audio_stream_display_language_label",{language:o,label:n});{let a=hr(i,l);return j("audio_stream_display_language_label_index",{language:o,label:n,index:a})}}if(n){let l=e.filter(a=>a.label===n);if(l.length===1)return n;{let a=hr(i,l);return j("audio_stream_display_label_index",{label:n,index:a})}}if(t&&o){let l=e.filter(a=>a.language===t);if(l.length===1)return o;{let a=hr(i,l);return j("audio_stream_display_language_index",{language:o,index:a})}}let r=hr(i,e);return j("audio_stream_display_unknown",{index:r})};import"@vkontakte/videoplayer-shared";function I2(i){Ie(i,"svelte-1oe0j8n",".pillow.svelte-1oe0j8n{background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px}")}function P2(i){let e,t,n=i[1].default,o=Pe(n,i,i[0],null);return{c(){e=I("div"),o&&o.c(),c(e,"class","pillow svelte-1oe0j8n")},m(r,l){S(r,e,l),o&&o.m(e,null),t=!0},p(r,[l]){o&&o.p&&(!t||l&1)&&Ee(o,n,r,r[0],t?Te(n,r[0],l,null):Ae(r[0]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&C(e),o&&o.d(r)}}}function T2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var $s=class extends K{constructor(e){super(),G(this,e,T2,P2,U,{},I2)}},Td=$s;import{VideoQuality as kl}from"@vkontakte/videoplayer-core";function E2(i){let e,t,n,o,r=i[2].default,l=Pe(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),n=B("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"),ge(e,s)},m(u,f){S(u,e,f),l&&l.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ee(l,r,u,u[1],o?Te(r,u[1],f,null):Ae(u[1]),null),ge(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(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function A2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ea=class extends K{constructor(e){super(),G(this,e,A2,E2,U,{})}},Ed=ea;function M2(i){let e,t,n,o,r=i[2].default,l=Pe(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),n=B("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"),ge(e,s)},m(u,f){S(u,e,f),l&&l.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ee(l,r,u,u[1],o?Te(r,u[1],f,null):Ae(u[1]),null),ge(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(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function V2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ta=class extends K{constructor(e){super(),G(this,e,V2,M2,U,{})}},Ad=ta;function L2(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function R2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ia=class extends K{constructor(e){super(),G(this,e,R2,L2,U,{})}},Md=ia;function B2(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function D2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var na=class extends K{constructor(e){super(),G(this,e,D2,B2,U,{})}},gr=na;function N2(i){let e,t,n,o,r=i[2].default,l=Pe(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),n=B("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"),ge(e,s)},m(u,f){S(u,e,f),l&&l.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ee(l,r,u,u[1],o?Te(r,u[1],f,null):Ae(u[1]),null),ge(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(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function q2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var oa=class extends K{constructor(e){super(),G(this,e,q2,N2,U,{})}},br=oa;var so=i=>{switch(i){case kl.Q_720P:return Md;case kl.Q_1080P:return gr;case kl.Q_1440P:return br;case kl.Q_2160P:return Ed;case kl.Q_4320P:return Ad}};function O2(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function F2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var la=class extends K{constructor(e){super(),G(this,e,F2,O2,U,{})}},Vd=la;function H2(i){let e,t,n,o,r=i[2].default,l=Pe(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),n=B("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"),ge(e,s)},m(u,f){S(u,e,f),l&&l.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ee(l,r,u,u[1],o?Te(r,u[1],f,null):Ae(u[1]),null),ge(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(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function z2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ra=class extends K{constructor(e){super(),G(this,e,z2,H2,U,{})}},Ld=ra;function U2(i){Ie(i,"svelte-8t5w85",'.icon.svelte-8t5w85{display:flex;position:relative;width:24px;height:24px}.icon.svelte-8t5w85 .pillow{position:absolute;top:1px;right:-9px}.icon.triple.svelte-8t5w85 .pillow{right:-13px}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full{visibility:hidden;opacity:0}')}function K2(i){let e,t,n,o,r=i[1]&&Rd(i);return n=new Ld({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=I("div"),r&&r.c(),t=D(),R(n.$$.fragment),c(e,"class","icon svelte-8t5w85"),c(e,"aria-hidden","true"),q(e,"triple",i[2])},m(l,a){S(l,e,a),r&&r.m(e,null),m(e,t),V(n,e,null),o=!0},p(l,a){l[1]?r?(r.p(l,a),a&2&&d(r,1)):(r=Rd(l),r.c(),d(r,1),r.m(e,t)):r&&(se(),_(r,1,1,()=>{r=null}),ae());let s={};a&2&&(s["data-testid"]=l[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&q(e,"triple",l[2])},i(l){o||(d(r),d(n.$$.fragment,l),o=!0)},o(l){_(r),_(n.$$.fragment,l),o=!1},d(l){l&&C(e),r&&r.d(),L(n)}}}function j2(i){let e,t;return e=new Vd({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p:_e,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Rd(i){let e,t;return e=new Td({props:{$$slots:{default:[W2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&18&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function W2(i){let e,t,n;var o=i[1];function r(l){return{}}return o&&(e=vn(o,r(i))),{c(){e&&R(e.$$.fragment),t=ut()},m(l,a){e&&V(e,l,a),S(l,t,a),n=!0},p(l,a){if(a&2&&o!==(o=l[1])){if(e){se();let s=e;_(s.$$.fragment,1,0,()=>{L(s,1)}),ae()}o?(e=vn(o,r(l)),R(e.$$.fragment),d(e.$$.fragment,1),V(e,t.parentNode,t)):e=null}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&_(e.$$.fragment,l),n=!1},d(l){l&&C(t),e&&L(e,l)}}}function G2(i){let e,t,n,o,r=[j2,K2],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ut()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?l[e].p(s,u):(se(),_(l[f],1,1,()=>{l[f]=null}),ae(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function Q2(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:r=void 0}=e,l;return i.$$set=a=>{"isMobile"in a&&t(0,o=a.isMobile),"currentQuality"in a&&t(3,r=a.currentQuality)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(1,n=so(r));if(i.$$.dirty&2)e:t(2,l=!!n&&[gr,br].includes(n))},[o,n,l,r]}var sa=class extends K{constructor(e){super(),G(this,e,Q2,G2,U,{isMobile:0,currentQuality:3},U2)}},vr=sa;function Y2(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function Z2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var aa=class extends K{constructor(e){super(),G(this,e,Z2,Y2,U,{})}},yr=aa;function X2(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function J2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ua=class extends K{constructor(e){super(),G(this,e,J2,X2,U,{})}},Bd=ua;function x2(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function $2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ca=class extends K{constructor(e){super(),G(this,e,$2,x2,U,{})}},Dd=ca;function eg(i){let e,t,n,o,r,l=i[2].default,a=Pe(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=B("svg"),a&&a.c(),t=B("g"),n=B("path"),o=B("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"),ge(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),r=!0},p(f,[p]){a&&a.p&&(!r||p&2)&&Ee(a,l,f,f[1],r?Te(l,f[1],p,null):Ae(f[1]),null),ge(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){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&C(e),a&&a.d(f)}}}function tg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var fa=class extends K{constructor(e){super(),G(this,e,tg,eg,U,{})}},Nd=fa;function ig(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function ng(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var da=class extends K{constructor(e){super(),G(this,e,ng,ig,U,{})}},qd=da;function og(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function lg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ma=class extends K{constructor(e){super(),G(this,e,lg,og,U,{})}},Od=ma;function rg(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function sg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var pa=class extends K{constructor(e){super(),G(this,e,sg,rg,U,{})}},Fd=pa;function ag(i){let e,t;return e=new Fd({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function ug(i){let e,t;return e=new Od({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function cg(i){let e,t,n,o,r=[ug,ag],l=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ut()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?l[e].p(s,u):(se(),_(l[f],1,1,()=>{l[f]=null}),ae(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function fg(i,e,t){let n,{direction:o="left"}=e,r,l;return i.$$set=a=>{"direction"in a&&t(3,o=a.direction)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(1,r=["up","down"].includes(o)),t(0,l=["right","down"].includes(o));if(i.$$.dirty&1)e:t(2,n=l?"transform: rotate(180deg);":void 0)},[l,r,n,o]}var _a=class extends K{constructor(e){super(),G(this,e,fg,cg,U,{direction:3})}},Kn=_a;function dg(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function mg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ha=class extends K{constructor(e){super(),G(this,e,mg,dg,U,{})}},Hd=ha;function pg(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function _g(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ga=class extends K{constructor(e){super(),G(this,e,_g,pg,U,{})}},Oo=ga;function hg(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function gg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ba=class extends K{constructor(e){super(),G(this,e,gg,hg,U,{})}},zd=ba;function bg(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function vg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var va=class extends K{constructor(e){super(),G(this,e,vg,bg,U,{})}},Ud=va;function kg(i){Ie(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[163]=e[t],n}function jd(i,e,t){let n=i.slice();return n[166]=e[t],n}function Wd(i,e,t){let n=i.slice();return n[169]=e[t],n}function Gd(i,e,t){let n=i.slice();return n[172]=e[t],n}function Qd(i){let e,t,n,o,r,l,a,s,u,f,p,h,k,g=i[40]&&Yd(i),w=i[30]&&Zd(i),v=i[29]&&Jd(i),E=i[28]&&xd(i),b=i[27]&&$d(i),y=i[26]&&e1(i),T=i[25]&&t1(i),W=i[40]&&i1(i);return{c(){e=I("div"),g&&g.c(),t=D(),n=I("ul"),w&&w.c(),o=D(),v&&v.c(),r=D(),E&&E.c(),l=D(),b&&b.c(),a=D(),y&&y.c(),s=D(),T&&T.c(),u=D(),W&&W.c(),c(n,"class","items svelte-1h807jq"),c(n,"role","menu"),c(n,"style",f=i[84]()),q(n,"items-mobile",i[40]),c(e,"class","menu svelte-1h807jq"),q(e,"menu-desktop",!i[40]),q(e,"menu-mobile",i[40]),q(e,"hidden",!i[13])},m(F,O){S(F,e,O),g&&g.m(e,null),m(e,t),m(e,n),w&&w.m(n,null),m(n,o),v&&v.m(n,null),m(n,r),E&&E.m(n,null),m(n,l),b&&b.m(n,null),m(n,a),y&&y.m(n,null),m(n,s),T&&T.m(n,null),m(n,u),W&&W.m(n,null),i[129](n),p=!0,h||(k=[de(e,"keydown",i[90]),de(e,"mouseenter",i[82]),de(e,"mouseleave",i[83])],h=!0)},p(F,O){F[40]?g?g.p(F,O):(g=Yd(F),g.c(),g.m(e,t)):g&&(g.d(1),g=null),F[30]?w?(w.p(F,O),O[0]&1073741824&&d(w,1)):(w=Zd(F),w.c(),d(w,1),w.m(n,o)):w&&(se(),_(w,1,1,()=>{w=null}),ae()),F[29]?v?(v.p(F,O),O[0]&536870912&&d(v,1)):(v=Jd(F),v.c(),d(v,1),v.m(n,r)):v&&(se(),_(v,1,1,()=>{v=null}),ae()),F[28]?E?(E.p(F,O),O[0]&268435456&&d(E,1)):(E=xd(F),E.c(),d(E,1),E.m(n,l)):E&&(se(),_(E,1,1,()=>{E=null}),ae()),F[27]?b?(b.p(F,O),O[0]&134217728&&d(b,1)):(b=$d(F),b.c(),d(b,1),b.m(n,a)):b&&(se(),_(b,1,1,()=>{b=null}),ae()),F[26]?y?(y.p(F,O),O[0]&67108864&&d(y,1)):(y=e1(F),y.c(),d(y,1),y.m(n,s)):y&&(se(),_(y,1,1,()=>{y=null}),ae()),F[25]?T?(T.p(F,O),O[0]&33554432&&d(T,1)):(T=t1(F),T.c(),d(T,1),T.m(n,u)):T&&(se(),_(T,1,1,()=>{T=null}),ae()),F[40]?W?(W.p(F,O),O[1]&512&&d(W,1)):(W=i1(F),W.c(),d(W,1),W.m(n,null)):W&&(se(),_(W,1,1,()=>{W=null}),ae()),(!p||O[1]&512)&&q(n,"items-mobile",F[40]),(!p||O[1]&512)&&q(e,"menu-desktop",!F[40]),(!p||O[1]&512)&&q(e,"menu-mobile",F[40]),(!p||O[0]&8192)&&q(e,"hidden",!F[13])},i(F){p||(d(w),d(v),d(E),d(b),d(y),d(T),d(W),p=!0)},o(F){_(w),_(v),_(E),_(b),_(y),_(T),_(W),p=!1},d(F){F&&C(e),g&&g.d(),w&&w.d(),v&&v.d(),E&&E.d(),b&&b.d(),y&&y.d(),T&&T.d(),W&&W.d(),i[129](null),h=!1,et(k)}}}function Yd(i){let e,t,n,o,r,l,a,s;return{c(){e=I("div"),t=I("div"),t.textContent=`${j("submenu_settings")}`,n=D(),o=I("div"),r=D(),l=I("div"),c(o,"class","close svelte-1h807jq"),c(e,"class","item menu-header svelte-1h807jq"),q(e,"item-mobile",i[40]),c(l,"class","menu-divider svelte-1h807jq")},m(u,f){S(u,e,f),m(e,t),m(e,n),m(e,o),S(u,r,f),S(u,l,f),a||(s=de(o,"click",at(i[66])),a=!0)},p(u,f){f[1]&512&&q(e,"item-mobile",u[40])},d(u){u&&(C(e),C(r),C(l)),a=!1,s()}}}function Zd(i){let e,t,n,o,r,l,a,s,u,f,p,h,k;n=new vr({});let g=i[39]&&!i[40]&&Xd(i);return{c(){e=I("li"),t=I("div"),R(n.$$.fragment),o=D(),r=I("div"),r.textContent=`${j("menu_quality")}`,l=D(),a=I("div"),s=Ve(i[19]),u=D(),g&&g.c(),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"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=j("aria_label_menu_quality",{actual:i[32]})),c(e,"aria-haspopup","true"),q(e,"item-mobile",i[40])},m(w,v){S(w,e,v),m(e,t),V(n,t,null),m(e,o),m(e,r),m(e,l),m(e,a),m(a,s),m(a,u),g&&g.m(a,null),i[124](e),p=!0,h||(k=[de(e,"click",at(i[67])),de(e,"keydown",i[91])],h=!0)},p(w,v){(!p||v[0]&524288)&&We(s,w[19]),w[39]&&!w[40]?g?(g.p(w,v),v[1]&768&&d(g,1)):(g=Xd(w),g.c(),d(g,1),g.m(a,null)):g&&(se(),_(g,1,1,()=>{g=null}),ae()),(!p||v[1]&2&&f!==(f=j("aria_label_menu_quality",{actual:w[32]})))&&c(e,"aria-label",f),(!p||v[1]&512)&&q(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&&C(e),L(n),g&&g.d(),i[124](null),h=!1,et(k)}}}function Xd(i){let e,t,n;var o=i[39];function r(l){return{}}return o&&(t=vn(o,r(i))),{c(){e=I("div"),t&&R(t.$$.fragment),c(e,"class","menu-valueIcon svelte-1h807jq")},m(l,a){S(l,e,a),t&&V(t,e,null),n=!0},p(l,a){if(a[1]&256&&o!==(o=l[39])){if(t){se();let s=t;_(s.$$.fragment,1,0,()=>{L(s,1)}),ae()}o?(t=vn(o,r(l)),R(t.$$.fragment),d(t.$$.fragment,1),V(t,e,null)):t=null}},i(l){n||(t&&d(t.$$.fragment,l),n=!0)},o(l){t&&_(t.$$.fragment,l),n=!1},d(l){l&&C(e),t&&L(t)}}}function Jd(i){let e,t,n,o,r,l,a,s=xn(i[41],i[9])+"",u,f,p,h,k;return n=new qd({}),{c(){e=I("li"),t=I("div"),R(n.$$.fragment),o=D(),r=I("div"),r.textContent=`${j("menu_audio_languages")}`,l=D(),a=I("div"),u=Ve(s),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"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=j("aria_label_menu_audio_languages",{actual:xn(i[41],i[9])})),c(e,"aria-haspopup","true"),q(e,"item-mobile",i[40])},m(g,w){S(g,e,w),m(e,t),V(n,t,null),m(e,o),m(e,r),m(e,l),m(e,a),m(a,u),i[125](e),p=!0,h||(k=[de(e,"click",at(i[68])),de(e,"keydown",i[92])],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=j("aria_label_menu_audio_languages",{actual:xn(g[41],g[9])})))&&c(e,"aria-label",f),(!p||w[1]&512)&&q(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&C(e),L(n),i[125](null),h=!1,et(k)}}}function xd(i){let e,t,n,o,r,l,a,s,u,f,p,h,k;return n=new Nd({}),{c(){e=I("li"),t=I("div"),R(n.$$.fragment),o=D(),r=I("div"),r.textContent=`${j("menu_playback_rate")}`,l=D(),a=I("div"),s=Ve(i[11]),u=Ve("x"),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"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=j("aria_label_menu_rate",{actual:i[33]})),c(e,"aria-haspopup","true"),q(e,"item-mobile",i[40])},m(g,w){S(g,e,w),m(e,t),V(n,t,null),m(e,o),m(e,r),m(e,l),m(e,a),m(a,s),m(a,u),i[126](e),p=!0,h||(k=[de(e,"click",at(It(i[73]))),de(e,"keydown",i[97])],h=!0)},p(g,w){(!p||w[0]&2048)&&We(s,g[11]),(!p||w[1]&4&&f!==(f=j("aria_label_menu_rate",{actual:g[33]})))&&c(e,"aria-label",f),(!p||w[1]&512)&&q(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&C(e),L(n),i[126](null),h=!1,et(k)}}}function $d(i){let e,t,n,o,r,l,a,s=i[42].displayValue+"",u,f,p,h,k;return n=new yr({}),{c(){e=I("li"),t=I("div"),R(n.$$.fragment),o=D(),r=I("div"),r.textContent=`${j("subtitles_caption")}`,l=D(),a=I("div"),u=Ve(s),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"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=j("aria_label_menu_subtitle",{actual:i[42].displayValue})),c(e,"aria-haspopup","true"),q(e,"item-mobile",i[40])},m(g,w){S(g,e,w),m(e,t),V(n,t,null),m(e,o),m(e,r),m(e,l),m(e,a),m(a,u),i[127](e),p=!0,h||(k=[de(e,"click",at(i[75])),de(e,"keydown",i[100])],h=!0)},p(g,w){(!p||w[1]&2048)&&s!==(s=g[42].displayValue+"")&&We(u,s),(!p||w[1]&2048&&f!==(f=j("aria_label_menu_subtitle",{actual:g[42].displayValue})))&&c(e,"aria-label",f),(!p||w[1]&512)&&q(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&C(e),L(n),i[127](null),h=!1,et(k)}}}function e1(i){let e,t,n,o,r,l,a,s,u,f,p,h;return n=new Dd({}),{c(){e=I("li"),t=I("div"),R(n.$$.fragment),o=D(),r=I("div"),r.textContent=`${j("menu_traffic_saving")}`,l=D(),a=I("div"),s=Ve(i[31]),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"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=j("aria_label_menu_traffic_saving",{actual:i[31]})),c(e,"aria-haspopup","true"),q(e,"item-mobile",i[40])},m(k,g){S(k,e,g),m(e,t),V(n,t,null),m(e,o),m(e,r),m(e,l),m(e,a),m(a,s),i[128](e),f=!0,p||(h=[de(e,"click",at(i[69])),de(e,"keydown",i[103])],p=!0)},p(k,g){(!f||g[1]&1)&&We(s,k[31]),(!f||g[1]&1&&u!==(u=j("aria_label_menu_traffic_saving",{actual:k[31]})))&&c(e,"aria-label",u),(!f||g[1]&512)&&q(e,"item-mobile",k[40])},i(k){f||(d(n.$$.fragment,k),f=!0)},o(k){_(n.$$.fragment,k),f=!1},d(k){k&&C(e),L(n),i[128](null),p=!1,et(h)}}}function t1(i){let e,t,n,o,r,l,a,s,u;return n=new Bd({}),{c(){e=I("li"),t=I("div"),R(n.$$.fragment),o=D(),r=I("div"),r.textContent=`${j("download_video_caption")}`,c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"class","menu-title svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",l=j("aria_label_menu_download")),q(e,"item-mobile",i[40])},m(f,p){S(f,e,p),m(e,t),V(n,t,null),m(e,o),m(e,r),a=!0,s||(u=[de(e,"click",at(i[78])),de(e,"keydown",i[106])],s=!0)},p(f,p){(!a||p[1]&512)&&q(e,"item-mobile",f[40])},i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&C(e),L(n),s=!1,et(u)}}}function i1(i){let e,t,n,o,r,l,a,s,u,f,p,h,k,g,w,v,E,b=i[44].showSupport&&wg(i);return o=new zd({}),p=new Ud({}),{c(){b&&b.c(),e=D(),t=I("li"),n=I("div"),R(o.$$.fragment),r=D(),l=I("div"),l.textContent=`${j("menu_copy_debug")}`,s=D(),u=I("li"),f=I("div"),R(p.$$.fragment),h=D(),k=I("div"),k.textContent=`${j("menu_debug_overlay")}`,c(n,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"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=j("menu_copy_debug")),c(f,"class","menu-icon-wrapper svelte-1h807jq"),c(k,"class","menu-title svelte-1h807jq"),c(u,"class","item item-mobile svelte-1h807jq"),c(u,"role","menuitem"),c(u,"tabindex","0"),c(u,"aria-label",g=i[43]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"))},m(y,T){b&&b.m(y,T),S(y,e,T),S(y,t,T),m(t,n),V(o,n,null),m(t,r),m(t,l),S(y,s,T),S(y,u,T),m(u,f),V(p,f,null),m(u,h),m(u,k),w=!0,v||(E=[de(t,"click",at(i[80])),de(t,"keydown",i[108]),de(u,"click",at(i[81])),de(u,"keydown",i[109])],v=!0)},p(y,T){y[44].showSupport&&b.p(y,T),(!w||T[1]&4096&&g!==(g=y[43]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable")))&&c(u,"aria-label",g)},i(y){w||(d(b),d(o.$$.fragment,y),d(p.$$.fragment,y),w=!0)},o(y){_(b),_(o.$$.fragment,y),_(p.$$.fragment,y),w=!1},d(y){y&&(C(e),C(t),C(s),C(u)),b&&b.d(y),L(o),L(p),v=!1,et(E)}}}function wg(i){let e,t,n,o,r,l,a,s,u;return n=new Hd({}),{c(){e=I("li"),t=I("div"),R(n.$$.fragment),o=D(),r=I("div"),r.textContent=`${j("menu_report")}`,c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"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",l=`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`)},m(f,p){S(f,e,p),m(e,t),V(n,t,null),m(e,o),m(e,r),a=!0,s||(u=[de(e,"click",at(i[79])),de(e,"keydown",i[107])],s=!0)},p:_e,i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&C(e),L(n),s=!1,et(u)}}}function n1(i){let e,t,n,o,r,l,a,s,u,f,p,h,k,g;n=new Kn({props:{direction:"left"}});let w=wt(i[10]),v=[];for(let b=0;b<w.length;b+=1)v[b]=r1(Gd(i,w,b));let E=b=>_(v[b],1,1,()=>{v[b]=null});return{c(){e=I("div"),t=I("div"),R(n.$$.fragment),o=D(),r=I("div"),r.textContent=`${j("submenu_quality")}`,a=D(),s=I("div"),u=D(),f=I("ul");for(let b=0;b<v.length;b+=1)v[b].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",l=j("aria_label_submenu_back")),q(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[84](i[20]?.clientHeight,!0)),q(f,"items-mobile",i[40]),c(e,"class","menu menu-subList svelte-1h807jq"),q(e,"menu-desktop",!i[40]),q(e,"menu-mobile",i[40])},m(b,y){S(b,e,y),m(e,t),V(n,t,null),m(t,o),m(t,r),i[130](t),m(e,a),m(e,s),m(e,u),m(e,f);for(let T=0;T<v.length;T+=1)v[T]&&v[T].m(f,null);i[133](f),h=!0,k||(g=[de(t,"click",at(i[77])),de(f,"keydown",i[93])],k=!0)},p(b,y){if((!h||y[1]&512)&&q(t,"item-mobile",b[40]),y[0]&1024|y[1]&512|y[2]&256|y[3]&2){w=wt(b[10]);let T;for(T=0;T<w.length;T+=1){let W=Gd(b,w,T);v[T]?(v[T].p(W,y),d(v[T],1)):(v[T]=r1(W),v[T].c(),d(v[T],1),v[T].m(f,null))}for(se(),T=w.length;T<v.length;T+=1)E(T);ae()}(!h||y[0]&1048576&&p!==(p=b[84](b[20]?.clientHeight,!0)))&&c(f,"style",p),(!h||y[1]&512)&&q(f,"items-mobile",b[40]),(!h||y[1]&512)&&q(e,"menu-desktop",!b[40]),(!h||y[1]&512)&&q(e,"menu-mobile",b[40])},i(b){if(!h){d(n.$$.fragment,b);for(let y=0;y<w.length;y+=1)d(v[y]);h=!0}},o(b){_(n.$$.fragment,b),v=v.filter(Boolean);for(let y=0;y<v.length;y+=1)_(v[y]);h=!1},d(b){b&&C(e),L(n),i[130](null),Si(v,b),i[133](null),k=!1,et(g)}}}function o1(i){let e,t,n;return t=new Oo({}),{c(){e=I("div"),R(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),L(t)}}}function l1(i){let e,t,n;var o=so(i[172].value);function r(l){return{}}return o&&(t=vn(o,r(i))),{c(){e=I("div"),t&&R(t.$$.fragment),c(e,"class","menu-valueIcon-list svelte-1h807jq")},m(l,a){S(l,e,a),t&&V(t,e,null),n=!0},p(l,a){if(a[0]&1024&&o!==(o=so(l[172].value))){if(t){se();let s=t;_(s.$$.fragment,1,0,()=>{L(s,1)}),ae()}o?(t=vn(o,r(l)),R(t.$$.fragment),d(t.$$.fragment,1),V(t,e,null)):t=null}},i(l){n||(t&&d(t.$$.fragment,l),n=!0)},o(l){t&&_(t.$$.fragment,l),n=!1},d(l){l&&C(e),t&&L(t)}}}function r1(i){let e,t,n,o=i[172].displayValue+"",r,l,a=!i[40]&&so(i[172].value),s,u,f,p,h,k,g=i[172].selected&&o1(i),w=a&&l1(i);function v(){return i[131](i[172])}function E(...b){return i[132](i[172],...b)}return{c(){e=I("li"),g&&g.c(),t=D(),n=I("div"),r=Ve(o),l=D(),w&&w.c(),s=D(),c(n,"class","submenu-value svelte-1h807jq"),q(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",u=i[172].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=i[172].displayValue),q(e,"item-mobile",i[40])},m(b,y){S(b,e,y),g&&g.m(e,null),m(e,t),m(e,n),m(n,r),m(e,l),w&&w.m(e,null),m(e,s),p=!0,h||(k=[de(e,"click",at(v)),de(e,"keydown",E)],h=!0)},p(b,y){i=b,i[172].selected?g?y[0]&1024&&d(g,1):(g=o1(i),g.c(),d(g,1),g.m(e,t)):g&&(se(),_(g,1,1,()=>{g=null}),ae()),(!p||y[0]&1024)&&o!==(o=i[172].displayValue+"")&&We(r,o),(!p||y[1]&512)&&q(n,"submenu-value-mobile",i[40]),y[0]&1024|y[1]&512&&(a=!i[40]&&so(i[172].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&&(se(),_(w,1,1,()=>{w=null}),ae()),(!p||y[0]&1024&&u!==(u=i[172].value))&&c(e,"data-value",u),(!p||y[0]&1024&&f!==(f=i[172].displayValue))&&c(e,"aria-label",f),(!p||y[1]&512)&&q(e,"item-mobile",i[40])},i(b){p||(d(g),d(w),p=!0)},o(b){_(g),_(w),p=!1},d(b){b&&C(e),g&&g.d(),w&&w.d(),h=!1,et(k)}}}function s1(i){let e,t,n,o,r,l,a,s,u,f,p,h,k,g;n=new Kn({props:{direction:"left"}});let w=wt(i[9]),v=[];for(let b=0;b<w.length;b+=1)v[b]=u1(Wd(i,w,b));let E=b=>_(v[b],1,1,()=>{v[b]=null});return{c(){e=I("div"),t=I("div"),R(n.$$.fragment),o=D(),r=I("div"),r.textContent=`${j("submenu_audio_languages")}`,a=D(),s=I("div"),u=D(),f=I("ul");for(let b=0;b<v.length;b+=1)v[b].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",l=j("aria_label_submenu_back")),q(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[84](i[21]?.clientHeight,!0)),q(f,"items-mobile",i[40]),c(e,"class","menu menu-subList svelte-1h807jq"),q(e,"menu-desktop",!i[40]),q(e,"menu-mobile",i[40])},m(b,y){S(b,e,y),m(e,t),V(n,t,null),m(t,o),m(t,r),i[134](t),m(e,a),m(e,s),m(e,u),m(e,f);for(let T=0;T<v.length;T+=1)v[T]&&v[T].m(f,null);i[137](f),h=!0,k||(g=[de(t,"click",at(i[77])),de(f,"keydown",i[95])],k=!0)},p(b,y){if((!h||y[1]&512)&&q(t,"item-mobile",b[40]),y[0]&512|y[1]&1536|y[2]&512|y[3]&8){w=wt(b[9]);let T;for(T=0;T<w.length;T+=1){let W=Wd(b,w,T);v[T]?(v[T].p(W,y),d(v[T],1)):(v[T]=u1(W),v[T].c(),d(v[T],1),v[T].m(f,null))}for(se(),T=w.length;T<v.length;T+=1)E(T);ae()}(!h||y[0]&2097152&&p!==(p=b[84](b[21]?.clientHeight,!0)))&&c(f,"style",p),(!h||y[1]&512)&&q(f,"items-mobile",b[40]),(!h||y[1]&512)&&q(e,"menu-desktop",!b[40]),(!h||y[1]&512)&&q(e,"menu-mobile",b[40])},i(b){if(!h){d(n.$$.fragment,b);for(let y=0;y<w.length;y+=1)d(v[y]);h=!0}},o(b){_(n.$$.fragment,b),v=v.filter(Boolean);for(let y=0;y<v.length;y+=1)_(v[y]);h=!1},d(b){b&&C(e),L(n),i[134](null),Si(v,b),i[137](null),k=!1,et(g)}}}function a1(i){let e,t,n;return t=new Oo({}),{c(){e=I("div"),R(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),L(t)}}}function u1(i){let e,t,n,o=xn(i[169],i[9])+"",r,l,a,s,u,f,p,h=i[169].id===i[41]?.id&&a1(i);function k(){return i[135](i[169])}function g(...w){return i[136](i[169],...w)}return{c(){e=I("li"),h&&h.c(),t=D(),n=I("div"),r=Ve(o),l=D(),c(n,"class","submenu-value svelte-1h807jq"),q(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=i[169].id),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=xn(i[169],i[9])),q(e,"item-mobile",i[40])},m(w,v){S(w,e,v),h&&h.m(e,null),m(e,t),m(e,n),m(n,r),m(e,l),u=!0,f||(p=[de(e,"click",at(k)),de(e,"keydown",g)],f=!0)},p(w,v){i=w,i[169].id===i[41]?.id?h?v[0]&512|v[1]&1024&&d(h,1):(h=a1(i),h.c(),d(h,1),h.m(e,t)):h&&(se(),_(h,1,1,()=>{h=null}),ae()),(!u||v[0]&512)&&o!==(o=xn(i[169],i[9])+"")&&We(r,o),(!u||v[1]&512)&&q(n,"submenu-value-mobile",i[40]),(!u||v[0]&512&&a!==(a=i[169].id))&&c(e,"data-value",a),(!u||v[0]&512&&s!==(s=xn(i[169],i[9])))&&c(e,"aria-label",s),(!u||v[1]&512)&&q(e,"item-mobile",i[40])},i(w){u||(d(h),u=!0)},o(w){_(h),u=!1},d(w){w&&C(e),h&&h.d(),f=!1,et(p)}}}function c1(i){let e,t,n,o,r,l,a,s,u,f,p,h,k,g;n=new Kn({props:{direction:"left"}});let w=wt(i[8]),v=[];for(let b=0;b<w.length;b+=1)v[b]=d1(jd(i,w,b));let E=b=>_(v[b],1,1,()=>{v[b]=null});return{c(){e=I("div"),t=I("div"),R(n.$$.fragment),o=D(),r=I("div"),r.textContent=`${j("submenu_playback_rate")}`,a=D(),s=I("div"),u=D(),f=I("ul");for(let b=0;b<v.length;b+=1)v[b].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",l=j("aria_label_submenu_back")),q(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[84](i[22]?.clientHeight,!0)),q(f,"items-mobile",i[40]),c(e,"class","menu menu-subList svelte-1h807jq"),q(e,"menu-desktop",!i[40]),q(e,"menu-mobile",i[40])},m(b,y){S(b,e,y),m(e,t),V(n,t,null),m(t,o),m(t,r),i[138](t),m(e,a),m(e,s),m(e,u),m(e,f);for(let T=0;T<v.length;T+=1)v[T]&&v[T].m(f,null);i[141](f),h=!0,k||(g=[de(t,"click",at(i[77])),de(f,"keydown",i[98])],k=!0)},p(b,y){if((!h||y[1]&512)&&q(t,"item-mobile",b[40]),y[0]&256|y[1]&512|y[2]&4096|y[3]&64){w=wt(b[8]);let T;for(T=0;T<w.length;T+=1){let W=jd(b,w,T);v[T]?(v[T].p(W,y),d(v[T],1)):(v[T]=d1(W),v[T].c(),d(v[T],1),v[T].m(f,null))}for(se(),T=w.length;T<v.length;T+=1)E(T);ae()}(!h||y[0]&4194304&&p!==(p=b[84](b[22]?.clientHeight,!0)))&&c(f,"style",p),(!h||y[1]&512)&&q(f,"items-mobile",b[40]),(!h||y[1]&512)&&q(e,"menu-desktop",!b[40]),(!h||y[1]&512)&&q(e,"menu-mobile",b[40])},i(b){if(!h){d(n.$$.fragment,b);for(let y=0;y<w.length;y+=1)d(v[y]);h=!0}},o(b){_(n.$$.fragment,b),v=v.filter(Boolean);for(let y=0;y<v.length;y+=1)_(v[y]);h=!1},d(b){b&&C(e),L(n),i[138](null),Si(v,b),i[141](null),k=!1,et(g)}}}function f1(i){let e,t,n;return t=new Oo({}),{c(){e=I("div"),R(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),L(t)}}}function d1(i){let e,t,n,o=i[166].displayValue+"",r,l,a,s,u,f,p,h=i[166].selected&&f1(i);function k(){return i[139](i[166])}function g(...w){return i[140](i[166],...w)}return{c(){e=I("li"),h&&h.c(),t=D(),n=I("div"),r=Ve(o),l=D(),c(n,"class","submenu-value svelte-1h807jq"),q(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=i[166].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[166].displayValue),q(e,"item-mobile",i[40])},m(w,v){S(w,e,v),h&&h.m(e,null),m(e,t),m(e,n),m(n,r),m(e,l),u=!0,f||(p=[de(e,"click",at(k)),de(e,"keydown",g)],f=!0)},p(w,v){i=w,i[166].selected?h?v[0]&256&&d(h,1):(h=f1(i),h.c(),d(h,1),h.m(e,t)):h&&(se(),_(h,1,1,()=>{h=null}),ae()),(!u||v[0]&256)&&o!==(o=i[166].displayValue+"")&&We(r,o),(!u||v[1]&512)&&q(n,"submenu-value-mobile",i[40]),(!u||v[0]&256&&a!==(a=i[166].value))&&c(e,"data-value",a),(!u||v[0]&256&&s!==(s=i[166].displayValue))&&c(e,"aria-label",s),(!u||v[1]&512)&&q(e,"item-mobile",i[40])},i(w){u||(d(h),u=!0)},o(w){_(h),u=!1},d(w){w&&C(e),h&&h.d(),f=!1,et(p)}}}function m1(i){let e,t,n,o,r,l,a,s,u,f,p,h,k,g,w,v,E,b,y,T,W,F,O,le,re,H,A,J,Y;n=new Kn({props:{direction:"left"}});let ce=!i[6]&&p1(i),Z=i[6]&&_1(i);return{c(){e=I("div"),t=I("div"),R(n.$$.fragment),o=D(),r=I("div"),r.textContent=`${j("submenu_traffic_saving")}`,a=D(),s=I("div"),u=D(),f=I("div"),p=I("ul"),h=I("li"),ce&&ce.c(),k=D(),g=I("div"),g.textContent=`${j("traffic_saving_disable")}`,v=D(),E=I("li"),Z&&Z.c(),b=D(),y=I("div"),y.textContent=`${j("traffic_saving_enable")}`,W=D(),F=I("div"),O=D(),le=I("div"),re=I("span"),re.textContent=`${j("traffic_saving_helper_text")}`,c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",l=j("aria_label_submenu_back")),q(t,"item-mobile",i[40]),c(s,"class","menu-divider svelte-1h807jq"),c(g,"class","submenu-value svelte-1h807jq"),q(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=j("aria_label_submenu_traffic_saving_off")),q(h,"item-mobile",i[40]),c(y,"class","submenu-value svelte-1h807jq"),q(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",T=`${j("aria_label_submenu_traffic_saving_on")}. ${j("traffic_saving_helper_text")}`),q(E,"item-mobile",i[40]),c(p,"class","items svelte-1h807jq"),c(p,"role","menu"),q(p,"items-mobile",i[40]),c(F,"class","menu-divider svelte-1h807jq"),c(re,"class","svelte-1h807jq"),c(le,"class","item item-helper-text svelte-1h807jq"),q(le,"item-mobile",i[40]),c(f,"style",H=i[84](i[23]?.clientHeight,!0)),c(e,"class","menu menu-subList menu-subList-traffic-saving svelte-1h807jq"),q(e,"menu-desktop",!i[40]),q(e,"menu-mobile",i[40])},m(oe,P){S(oe,e,P),m(e,t),V(n,t,null),m(t,o),m(t,r),i[142](t),m(e,a),m(e,s),m(e,u),m(e,f),m(f,p),m(p,h),ce&&ce.m(h,null),m(h,k),m(h,g),m(p,v),m(p,E),Z&&Z.m(E,null),m(E,b),m(E,y),i[147](p),m(f,W),m(f,F),m(f,O),m(f,le),m(le,re),A=!0,J||(Y=[de(t,"click",at(i[77])),de(h,"click",at(i[143])),de(h,"keydown",i[144]),de(E,"click",at(i[145])),de(E,"keydown",i[146]),de(p,"keydown",i[104])],J=!0)},p(oe,P){(!A||P[1]&512)&&q(t,"item-mobile",oe[40]),oe[6]?ce&&(se(),_(ce,1,1,()=>{ce=null}),ae()):ce?P[0]&64&&d(ce,1):(ce=p1(oe),ce.c(),d(ce,1),ce.m(h,k)),(!A||P[1]&512)&&q(g,"submenu-value-mobile",oe[40]),(!A||P[1]&512)&&q(h,"item-mobile",oe[40]),oe[6]?Z?P[0]&64&&d(Z,1):(Z=_1(oe),Z.c(),d(Z,1),Z.m(E,b)):Z&&(se(),_(Z,1,1,()=>{Z=null}),ae()),(!A||P[1]&512)&&q(y,"submenu-value-mobile",oe[40]),(!A||P[1]&512)&&q(E,"item-mobile",oe[40]),(!A||P[1]&512)&&q(p,"items-mobile",oe[40]),(!A||P[1]&512)&&q(le,"item-mobile",oe[40]),(!A||P[0]&8388608&&H!==(H=oe[84](oe[23]?.clientHeight,!0)))&&c(f,"style",H),(!A||P[1]&512)&&q(e,"menu-desktop",!oe[40]),(!A||P[1]&512)&&q(e,"menu-mobile",oe[40])},i(oe){A||(d(n.$$.fragment,oe),d(ce),d(Z),A=!0)},o(oe){_(n.$$.fragment,oe),_(ce),_(Z),A=!1},d(oe){oe&&C(e),L(n),i[142](null),ce&&ce.d(),Z&&Z.d(),i[147](null),J=!1,et(Y)}}}function p1(i){let e,t,n;return t=new Oo({}),{c(){e=I("div"),R(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),L(t)}}}function _1(i){let e,t,n;return t=new Oo({}),{c(){e=I("div"),R(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),L(t)}}}function h1(i){let e,t,n,o,r,l,a,s,u,f,p,h;n=new Kn({props:{direction:"left"}});let k=wt(i[7]),g=[];for(let v=0;v<k.length;v+=1)g[v]=b1(Kd(i,k,v));let w=v=>_(g[v],1,1,()=>{g[v]=null});return{c(){e=I("div"),t=I("div"),R(n.$$.fragment),o=D(),r=I("div"),r.textContent=`${j("subtitles_caption")}`,a=D(),s=I("ul");for(let v=0;v<g.length;v+=1)g[v].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",l=j("aria_label_submenu_back")),q(t,"item-mobile",i[40]),c(s,"class","items svelte-1h807jq"),c(s,"role","menu"),c(s,"style",u=i[84](i[24]?.clientHeight,!0)),q(s,"items-mobile",i[40]),c(e,"class","menu menu-subList menu-subList-subtitles svelte-1h807jq"),q(e,"menu-desktop",!i[40]),q(e,"menu-mobile",i[40])},m(v,E){S(v,e,E),m(e,t),V(n,t,null),m(t,o),m(t,r),i[148](t),m(e,a),m(e,s);for(let b=0;b<g.length;b+=1)g[b]&&g[b].m(s,null);i[151](s),f=!0,p||(h=[de(t,"click",at(i[77])),de(s,"keydown",i[101])],p=!0)},p(v,E){if((!f||E[1]&512)&&q(t,"item-mobile",v[40]),E[0]&128|E[1]&512|E[2]&16384|E[3]&512){k=wt(v[7]);let b;for(b=0;b<k.length;b+=1){let y=Kd(v,k,b);g[b]?(g[b].p(y,E),d(g[b],1)):(g[b]=b1(y),g[b].c(),d(g[b],1),g[b].m(s,null))}for(se(),b=k.length;b<g.length;b+=1)w(b);ae()}(!f||E[0]&16777216&&u!==(u=v[84](v[24]?.clientHeight,!0)))&&c(s,"style",u),(!f||E[1]&512)&&q(s,"items-mobile",v[40]),(!f||E[1]&512)&&q(e,"menu-desktop",!v[40]),(!f||E[1]&512)&&q(e,"menu-mobile",v[40])},i(v){if(!f){d(n.$$.fragment,v);for(let E=0;E<k.length;E+=1)d(g[E]);f=!0}},o(v){_(n.$$.fragment,v),g=g.filter(Boolean);for(let E=0;E<g.length;E+=1)_(g[E]);f=!1},d(v){v&&C(e),L(n),i[148](null),Si(g,v),i[151](null),p=!1,et(h)}}}function g1(i){let e,t,n;return t=new Oo({}),{c(){e=I("div"),R(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),L(t)}}}function b1(i){let e,t,n,o=i[163].displayValue+"",r,l,a,s,u,f,p,h=i[163].selected&&g1(i);function k(){return i[149](i[163])}function g(...w){return i[150](i[163],...w)}return{c(){e=I("li"),h&&h.c(),t=D(),n=I("div"),r=Ve(o),l=D(),c(n,"class","submenu-value svelte-1h807jq"),q(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=i[163].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[163].displayValue),q(e,"item-mobile",i[40])},m(w,v){S(w,e,v),h&&h.m(e,null),m(e,t),m(e,n),m(n,r),m(e,l),u=!0,f||(p=[de(e,"click",at(k)),de(e,"keydown",g)],f=!0)},p(w,v){i=w,i[163].selected?h?v[0]&128&&d(h,1):(h=g1(i),h.c(),d(h,1),h.m(e,t)):h&&(se(),_(h,1,1,()=>{h=null}),ae()),(!u||v[0]&128)&&o!==(o=i[163].displayValue+"")&&We(r,o),(!u||v[1]&512)&&q(n,"submenu-value-mobile",i[40]),(!u||v[0]&128&&a!==(a=i[163].value))&&c(e,"data-value",a),(!u||v[0]&128&&s!==(s=i[163].displayValue))&&c(e,"aria-label",s),(!u||v[1]&512)&&q(e,"item-mobile",i[40])},i(w){u||(d(h),u=!0)},o(w){_(h),u=!1},d(w){w&&C(e),h&&h.d(),f=!1,et(p)}}}function Cg(i){let e,t,n,o,r,l,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),k=i[17]&&h1(i);return{c(){e=I("div"),s&&s.c(),t=D(),u&&u.c(),n=D(),f&&f.c(),o=D(),p&&p.c(),r=D(),h&&h.c(),l=D(),k&&k.c(),c(e,"class","svelte-1h807jq"),q(e,"hidden",!i[12]),q(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,r),h&&h.m(e,null),m(e,l),k&&k.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&&(se(),_(s,1,1,()=>{s=null}),ae()),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&&(se(),_(u,1,1,()=>{u=null}),ae()),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&&(se(),_(f,1,1,()=>{f=null}),ae()),g[16]?p?(p.p(g,w),w[0]&65536&&d(p,1)):(p=c1(g),p.c(),d(p,1),p.m(e,r)):p&&(se(),_(p,1,1,()=>{p=null}),ae()),g[18]?h?(h.p(g,w),w[0]&262144&&d(h,1)):(h=m1(g),h.c(),d(h,1),h.m(e,l)):h&&(se(),_(h,1,1,()=>{h=null}),ae()),g[17]?k?(k.p(g,w),w[0]&131072&&d(k,1)):(k=h1(g),k.c(),d(k,1),k.m(e,null)):k&&(se(),_(k,1,1,()=>{k=null}),ae()),(!a||w[0]&4096)&&q(e,"hidden",!g[12]),(!a||w[1]&512)&&q(e,"container-mobile",g[40])},i(g){a||(d(s),d(u),d(f),d(p),d(h),d(k),a=!0)},o(g){_(s),_(u),_(f),_(p),_(h),_(k),a=!1},d(g){g&&C(e),s&&s.d(),u&&u.d(),f&&f.d(),p&&p.d(),h&&h.d(),k&&k.d()}}}var Sg=18;function Ig(i,e,t){let n,o,r,l,a,s,u,f,p,h,k,g,w,v,E,b,y,T,W,F,O,le,re,H,A,J,Y,{ref:ce=void 0}=e,{supportLink:Z}=e,{playerControlsHeight:oe=0}=e,{returnFocus:P}=e,N=nt(),Me=Nt(),Ue=N.state.audioStream$;z(i,Ue,te=>t(41,g=te));let Ge=N.state.availableAudioStreams$;z(i,Ge,te=>t(9,w=te));let Qe=N.state.currentQuality$;z(i,Qe,te=>t(118,b=te));let Le=N.state.availableQualities$;z(i,Le,te=>t(10,v=te));let be=N.state.autoQualityLimitingAvailable$;z(i,be,te=>t(122,F=te));let x=N.state.isAutoQualityEnabled$;z(i,x,te=>t(119,y=te));let Se=N.state.currentPlaybackRate$;z(i,Se,te=>t(11,E=te));let $e=N.state.availablePlaybackRates$;z(i,$e,te=>t(8,p=te));let He=N.state.currentSubtitle$;z(i,He,te=>t(42,J=te));let it=N.state.availableSubtitlesList$;z(i,it,te=>t(7,u=te));let we=N.state.canDownload,Ye=N.state.hasMpegSources$;z(i,Ye,te=>t(123,O=te));let ot=N.ui.settingsMenuVisible;z(i,ot,te=>t(12,A=te));let je=N.ui.settingsMenuOpenedByKeyboard;z(i,je,te=>t(153,o=te));let Ke=N.ui.isMobile;z(i,Ke,te=>t(40,r=te));let Xe=N.ui.mobileNotReportControlHidden$;z(i,Xe,te=>t(120,T=te));let fe=N.state.canChangePlaybackSpeed$;z(i,fe,te=>t(121,W=te));let Ce=N.ui.isFullscreen;z(i,Ce,te=>t(156,H=te));let pe=N.state.trafficSavingEnabled$;z(i,pe,te=>t(6,a=te));let Oe=N.ui.playerSize;z(i,Oe,te=>t(155,re=te));let ee=N.ui.debugPanelVisible;z(i,ee,te=>t(43,Y=te));let ke=N.ui.playerSize;z(i,ke,te=>t(154,le=te));let rt=N.state.isInteractiveTime$,ye=N.actions.internal.downloadVideo,dt=N.actions.internal.closeSettingsMenu,Fe=!0,mt=!1,kt=!1,Tt=!1,Ze=!1,qt=!1,Vt=!1;function Ct(){o||P?.(),dt(),Vt=!1}function si(){t(13,Fe=!1),t(14,mt=!0)}function st(){t(13,Fe=!1),t(15,kt=!0)}function gt(){t(13,Fe=!1),t(18,qt=!0)}function ve(te){N.actions.internal.setQuality(te),Ct()}function _t(te){N.actions.internal.setAudioStream(te),Ct()}function St(te){N.actions.internal.setTrafficSavingEnabled(te),Ct()}function Jt(){t(13,Fe=!1),t(16,Tt=!0)}function bt(te){N.actions.internal.setPlaybackRate(te),Ct()}function zt(){t(13,Fe=!1),t(17,Ze=!0)}function Ut(te){N.actions.internal.setSubtitle(te),Ct()}function Kt(){t(13,Fe=!0),t(14,mt=!1),t(15,kt=!1),t(16,Tt=!1),t(17,Ze=!1),t(18,qt=!1)}function Oi(){ye(),Ct()}function xi(){window.open(Z,"_blank"),Ct(),N.actions.internal.pause()}function xt(){$o(N.actions.internal.getDebugTextData()),Ct()}function Pi(){ee.set(!0),Ct()}function an(){Vt=!0}function hi(){Vt=!1}function $i(te,ft,mi){if(!te)return"...";let In=ft.find(Qn=>Qn.value===te),Nn=In?In.displayValue:te;return mi?te===yg.INVARIANT?j("auto_quality_invariant"):j("auto_quality",{actual:Nn}):Nn}let ai,Ti,ui,gi,ci,bi;function Lt(te=0,ft=!1){return r&&H&&ft?`max-height: ${Math.round(re.height*.6)}px`:r?"":`max-height: ${le.height-Sg-te-oe}px; overflow: auto;`}let Gt,en,Fi,$t,vi,Hi,Ei,Et,tn,Qt,Ai,zi,Ui,jt=De(!1);z(i,jt,te=>t(117,k=te));let fi=De(!1);z(i,fi,te=>t(116,h=te));let di,ei,Yt=De(!1);z(i,Yt,te=>t(115,f=te));let At,ti,Mi=De(!1);z(i,Mi,te=>t(114,s=te));let yi,Zt,ii=De(!1);z(i,ii,te=>t(113,l=te));let Ki=te=>{ar(te,dt)},ji=async te=>{ol(te,si,()=>{let ft=v.findIndex(mi=>mi.selected);return zi.childNodes[ft]})},un=async te=>{ol(te,st,()=>{let ft=w.findIndex(mi=>mi.id===g?.id);return Ui.childNodes[ft]})},Wi=async te=>{ll(te,Kt,jt,dt)},Rt=(te,ft)=>{_i(te,()=>ve(ft))},Bt=async te=>{ll(te,Kt,fi,dt)},ki=(te,ft)=>{_i(te,()=>_t(ft))},ni=async te=>{ol(te,Jt,()=>{let ft=p.findIndex(mi=>mi.selected);return ei.childNodes[ft]})},Gi=async te=>{ll(te,Kt,Yt,dt)},Vi=(te,ft)=>{_i(te,()=>bt(ft))},nn=async te=>{ol(te,zt,()=>{let ft=u.findIndex(mi=>mi.selected);return ti.childNodes[ft]})},wi=async te=>{ll(te,Kt,Mi,dt)},Li=(te,ft)=>{_i(te,()=>Ut(ft))},tt=async te=>{ol(te,gt,()=>{let ft=a?2:0;return Zt.childNodes[ft]})},oi=async te=>{ll(te,Kt,ii,dt)},Xt=(te,ft)=>{_i(te,()=>St(ft))},ze=te=>{_i(te,()=>Oi())},Ri=te=>{_i(te,()=>xi())},cn=te=>{_i(te,()=>xt())},Qi=te=>{_i(te,()=>Pi())};Pt(()=>{let te=rt.subscribe(ft=>{ft&&!r&&!Vt&&!o&&Ct()});return()=>{te()}});function Bi(te){me[te?"unshift":"push"](()=>{Qt=te,t(1,Qt)})}function Yi(te){me[te?"unshift":"push"](()=>{Ai=te,t(2,Ai)})}function Zi(te){me[te?"unshift":"push"](()=>{di=te,t(3,di)})}function fn(te){me[te?"unshift":"push"](()=>{At=te,t(4,At)})}function _n(te){me[te?"unshift":"push"](()=>{yi=te,t(5,yi)})}function Ot(te){me[te?"unshift":"push"](()=>{ce=te,t(0,ce)})}function Di(te){me[te?"unshift":"push"](()=>{Ti=te,t(20,Ti)})}let on=te=>ve(te.value),kn=(te,ft)=>Rt(ft,te.value);function ln(te){me[te?"unshift":"push"](()=>{zi=te,t(34,zi)})}function rn(te){me[te?"unshift":"push"](()=>{ui=te,t(21,ui)})}let dn=te=>_t(te),Ft=(te,ft)=>ki(ft,te);function Xi(te){me[te?"unshift":"push"](()=>{Ui=te,t(35,Ui)})}function wn(te){me[te?"unshift":"push"](()=>{gi=te,t(22,gi)})}let Cn=te=>bt(te.value),Sn=(te,ft)=>Vi(ft,te.value);function Wt(te){me[te?"unshift":"push"](()=>{ei=te,t(36,ei)})}function Mn(te){me[te?"unshift":"push"](()=>{ci=te,t(23,ci)})}let hn=()=>St(!1),sn=te=>Xt(te,!1),Vn=()=>St(!0),gn=te=>Xt(te,!0);function mn(te){me[te?"unshift":"push"](()=>{Zt=te,t(38,Zt)})}function Ni(te){me[te?"unshift":"push"](()=>{bi=te,t(24,bi)})}let ie=te=>Ut(te),ht=(te,ft)=>Li(ft,te);function bn(te){me[te?"unshift":"push"](()=>{ti=te,t(37,ti)})}return i.$$set=te=>{"ref"in te&&t(0,ce=te.ref),"supportLink"in te&&t(110,Z=te.supportLink),"playerControlsHeight"in te&&t(111,oe=te.playerControlsHeight),"returnFocus"in te&&t(112,P=te.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&4096)e:A&&(t(13,Fe=!0),t(14,mt=!1),t(15,kt=!1),t(16,Tt=!1),t(17,Ze=!1),t(18,qt=!1));if(i.$$.dirty[3]&33554432)e:t(39,n=so(b));if(i.$$.dirty[0]&1024|i.$$.dirty[3]&100663296)e:t(19,ai=$i(b,v,y));if(i.$$.dirty[3]&1207959552)e:t(25,Gt=we&&O&&!T);if(i.$$.dirty[3]&671088640)e:t(26,en=Me.features.trafficSaving&&!T&&F);if(i.$$.dirty[0]&128|i.$$.dirty[3]&134217728)e:t(27,Fi=u.length>0&&!T);if(i.$$.dirty[3]&402653184)e:t(28,$t=!!W&&!T);if(i.$$.dirty[0]&512|i.$$.dirty[3]&134217728)e:t(29,vi=Me.features.audioLanguages&&w.length>=2&&!T);if(i.$$.dirty[3]&134217728)e:t(30,Hi=!T);if(i.$$.dirty[0]&64)e:t(31,Ei=a?j("traffic_saving_on"):j("traffic_saving_off"));if(i.$$.dirty[3]&100663296)e:t(32,Et=y?j("auto_quality_option"):b);if(i.$$.dirty[0]&2304)e:t(33,tn=p.find(te=>te.value===E)?.displayValue);if(i.$$.dirty[0]&2|i.$$.dirty[3]&16777216)e:nl(Qt,jt,k);if(i.$$.dirty[0]&4|i.$$.dirty[3]&8388608)e:nl(Ai,fi,h);if(i.$$.dirty[0]&8|i.$$.dirty[3]&4194304)e:nl(di,Yt,f);if(i.$$.dirty[0]&16|i.$$.dirty[3]&2097152)e:nl(At,Mi,s);if(i.$$.dirty[0]&32|i.$$.dirty[3]&1048576)e:nl(yi,ii,l)},[ce,Qt,Ai,di,At,yi,a,u,p,w,v,E,A,Fe,mt,kt,Tt,Ze,qt,ai,Ti,ui,gi,ci,bi,Gt,en,Fi,$t,vi,Hi,Ei,Et,tn,zi,Ui,ei,ti,Zt,n,r,g,J,Y,Me,Ue,Ge,Qe,Le,be,x,Se,$e,He,it,Ye,ot,je,Ke,Xe,fe,Ce,pe,Oe,ee,ke,Ct,si,st,gt,ve,_t,St,Jt,bt,zt,Ut,Kt,Oi,xi,xt,Pi,an,hi,Lt,jt,fi,Yt,Mi,ii,Ki,ji,un,Wi,Rt,Bt,ki,ni,Gi,Vi,nn,wi,Li,tt,oi,Xt,ze,Ri,cn,Qi,Z,oe,P,l,s,f,h,k,b,y,T,W,F,O,Bi,Yi,Zi,fn,_n,Ot,Di,on,kn,ln,rn,dn,Ft,Xi,wn,Cn,Sn,Wt,Mn,hn,sn,Vn,gn,mn,Ni,ie,ht,bn]}var ya=class extends K{constructor(e){super(),G(this,e,Ig,Cg,U,{ref:0,supportLink:110,playerControlsHeight:111,returnFocus:112},kg,[-1,-1,-1,-1,-1,-1])}},kr=ya;function Pg(i){Ie(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function Tg(i){let e,t,n;return t=new vr({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=I("span"),R(t.$$.fragment),c(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){S(o,e,r),V(t,e,null),n=!0},p(o,r){let l={};r&8&&(l.isMobile=o[3]),r&16&&(l.currentQuality=o[4]),t.$set(l)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),L(t)}}}function Eg(i){let e,t,n;function o(l){i[9](l)}let r={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[Tg]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"opened":""),a&4&&(s.ariaLabel=l[2]),a&2&&(s.ariaExpanded=l[1]),a&4120&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Ag(i,e,t){let n,o,r,{ref:l=void 0}=e,a=nt(),s=a.state.currentQuality$;z(i,s,w=>t(4,r=w));let u=a.ui.settingsMenuVisible;z(i,u,w=>t(1,n=w));let f=a.actions.internal.toggleSettingsMenu,p=a.ui.isMobile;z(i,p,w=>t(3,o=w));let h;function k(w){let v=tl(w);f(v)}function g(w){l=w,t(0,l)}return i.$$set=w=>{"ref"in w&&t(0,l=w.ref)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(2,h=n?j("tooltip_settings_on"):j("tooltip_settings_off"))},[l,n,h,o,r,s,u,p,k,g]}var ka=class extends K{constructor(e){super(),G(this,e,Ag,Eg,U,{ref:0},Pg)}},wl=ka;function Mg(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function Vg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var wa=class extends K{constructor(e){super(),G(this,e,Vg,Mg,U,{})}},v1=wa;function Lg(i){let e,t;return e=new yr({}),{c(){R(e.$$.fragment)},m(n,o){V(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 Rg(i){let e,t;return e=new v1({}),{c(){R(e.$$.fragment)},m(n,o){V(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,r=[Rg,Lg],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ut()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e!==f&&(se(),_(l[f],1,1,()=>{l[f]=null}),ae(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function Dg(i){let e,t;return e=new pt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:jn.KeyC,$$slots:{default:[Bg]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Ng(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,r;return i.$$set=l=>{"isSubtitlesEnabled"in l&&t(0,n=l.isSubtitlesEnabled),"click"in l&&t(1,o=l.click)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(2,r=n?j("tooltip_subtitles_on"):j("tooltip_subtitles_off"))},[n,o,r]}var Ca=class extends K{constructor(e){super(),G(this,e,Ng,Dg,U,{isSubtitlesEnabled:0,click:1})}},y1=Ca;function qg(i){Ie(i,"svelte-19o2urr",".time.svelte-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.svelte-19o2urr{padding:0 0 0 8px}.current.svelte-19o2urr{position:relative}.duration.svelte-19o2urr{opacity:0.7}.duration.svelte-19o2urr:before{content:' / ';white-space:pre}")}function k1(i){let e,t;return{c(){e=I("span"),t=Ve(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&&C(e)}}}function Og(i){let e,t,n,o,r=i[2]&&k1(i);return{c(){e=I("div"),t=I("span"),n=Ve(i[4]),o=D(),r&&r.c(),c(t,"class","current svelte-19o2urr"),c(e,"class","time svelte-19o2urr"),q(e,"mobile",i[1])},m(l,a){S(l,e,a),m(e,t),m(t,n),m(e,o),r&&r.m(e,null),i[7](e)},p(l,[a]){a&16&&We(n,l[4]),l[2]?r?r.p(l,a):(r=k1(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&q(e,"mobile",l[1])},i:_e,o:_e,d(l){l&&C(e),r&&r.d(),i[7](null)}}}function Fg(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:r}=e,{showDuration:l=!0}=e,{ref:a}=e,s,u;function f(p){me[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,r=p.position),"showDuration"in p&&t(2,l=p.showDuration),"ref"in p&&t(0,a=p.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,s=En(o));if(i.$$.dirty&64)e:t(4,u=En(r))},[a,n,l,s,u,o,r,f]}var Sa=class extends K{constructor(e){super(),G(this,e,Fg,Og,U,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},qg)}},wr=Sa;import{noop as ao}from"@vkontakte/videoplayer-shared";function Hg(i){Ie(i,"svelte-1n5yyua",".icon.svelte-1n5yyua.svelte-1n5yyua{display:block;width:24px;height:24px}.icon.svelte-1n5yyua .cross.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .wave1.svelte-1n5yyua,.icon[data-value='off'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .cross.svelte-1n5yyua{visibility:visible}.icon[data-value='mid'].svelte-1n5yyua .wave2.svelte-1n5yyua,.icon[data-value='min'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}")}function zg(i){let e,t,n,o,r,l;return{c(){e=B("svg"),t=B("g"),n=B("path"),o=B("path"),r=B("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(r,"class","cross svelte-1n5yyua"),c(r,"d","m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(e,"data-value",i[0]),c(e,"data-testid",l="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,r)},p(a,[s]){s&1&&c(e,"data-value",a[0]),s&1&&l!==(l="volume-"+a[0]+"-icon")&&c(e,"data-testid",l)},i:_e,o:_e,d(a){a&&C(e)}}}function Ug(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,r=(a,s)=>s?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",l;return i.$$set=a=>{"volume"in a&&t(1,n=a.volume),"muted"in a&&t(2,o=a.muted)},i.$$.update=()=>{if(i.$$.dirty&6)e:t(0,l=r(n,o))},[l,n,o]}var Ia=class extends K{constructor(e){super(),G(this,e,Ug,zg,U,{volume:1,muted:2},Hg)}},Fo=Ia;import{noop as Bn}from"@vkontakte/videoplayer-shared";import{noop as Xg}from"@vkontakte/videoplayer-shared";import{noop as Wg}from"@vkontakte/videoplayer-shared";function Kg(i){let e,t,n=i[4].default,o=Pe(n,i,i[3],null);return{c(){e=I("div"),o&&o.c(),c(e,"class","overlay")},m(r,l){S(r,e,l),o&&o.m(e,null),i[5](e),t=!0},p(r,[l]){o&&o.p&&(!t||l&8)&&Ee(o,n,r,r[3],t?Te(n,r[3],l,null):Ae(r[3]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&C(e),o&&o.d(r),i[5](null)}}}function jg(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=nt().ui.overlayContainer$;z(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)};Pt(()=>(f(n),()=>u(n)));function p(h){me[h?"unshift":"push"](()=>{s=h,t(0,s)})}return i.$$set=h=>{"$$scope"in h&&t(3,r=h.$$scope)},i.$$.update=()=>{if(i.$$.dirty&4)e:f(n)},[s,a,n,r,o,p]}var Pa=class extends K{constructor(e){super(),G(this,e,jg,Kg,U,{})}},w1=Pa;function Gg(i){Ie(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:[Qg]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&2097395&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Qg(i){let e,t,n,o,r,l,a;return{c(){e=I("div"),t=I("div"),n=Ve(i[1]),o=D(),r=I("div"),c(t,"class","content svelte-tny135"),c(r,"class","tooltip-pointer svelte-tny135"),c(r,"style",l=`transform: translate(${i[5]}px, ${i[9]}px) rotate(${i[8]?0:"180deg"});`),q(r,"bottom-placement-pointer",!i[8]),c(e,"class","tooltip svelte-tny135"),c(e,"style",a=`transform: translate(${i[6]}px, ${i[7]}px);`),q(e,"active",i[0])},m(s,u){S(s,e,u),m(e,t),m(t,n),m(e,o),m(e,r),i[20](e)},p(s,u){u&2&&We(n,s[1]),u&32&&l!==(l=`transform: translate(${s[5]}px, ${s[9]}px) rotate(${s[8]?0:"180deg"});`)&&c(r,"style",l),u&192&&a!==(a=`transform: translate(${s[6]}px, ${s[7]}px);`)&&c(e,"style",a),u&1&&q(e,"active",s[0])},d(s){s&&C(e),i[20](null)}}}function Yg(i){let e,t,n,o,r,l,a=i[18].default,s=Pe(a,i,i[21],null),u=i[1]&&C1(i);return{c(){e=I("div"),s&&s.c(),t=D(),u&&u.c(),n=ut(),c(e,"class","tooltip-wrapper svelte-tny135"),q(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,r||(l=[de(e,"mouseenter",i[12]),de(e,"mousemove",i[12]),de(e,"mouseleave",i[13]),de(e,"mousedown",i[13]),de(e,"mouseup",i[12])],r=!0)},p(f,[p]){s&&s.p&&(!o||p&2097152)&&Ee(s,a,f,f[21],o?Te(a,f[21],p,null):Ae(f[21]),null),(!o||p&4)&&q(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&&(se(),_(u,1,1,()=>{u=null}),ae())},i(f){o||(d(s,f),d(u),o=!0)},o(f){_(s,f),_(u),o=!1},d(f){f&&(C(e),C(t),C(n)),s&&s.d(f),i[19](null),u&&u.d(f),r=!1,et(l)}}}var Cl=5;function Zg(i,e,t){let n,o,{$$slots:r={},$$scope:l}=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:k=Wg}=e,g=h==="top",w,v,E,b=0,y=g?Cl:-Cl,T=0,W=0,F=Nt(),O=nt(),le=O.ui.playerSize;z(i,le,N=>t(24,o=N));let re=O.ui.overlayContainer$;z(i,re,N=>t(23,n=N));let H=O.getLogger().createComponentLog("Tooltip component"),A=()=>{if(!n||!v||!w)return;let N=n.getBoundingClientRect(),Me=w.getBoundingClientRect(),Ue=Me.width,Ge=v.clientWidth,Qe=o.width,Le=(Ue-Ge)/2,be=Me.left+u-N.left,x=be+Le,Se=Me.top+f-N.top,$e=Ge/2-Cl,He=x<8,it=x+Ge>Qe-8;He&&(x=8,$e=be+Me.width/2-2.5*Cl),it&&(x=Qe-8-Ge,$e=Me.left-N.left+Me.width/2-x-Cl),t(6,T=x),t(7,W=Se),t(5,b=$e)},J=()=>{try{if(!n||!w)return;A(),t(0,s=!0)}catch(N){H({message:String(N)})}},Y=()=>{t(0,s=!1)},ce=()=>{v&&(E||(E=window.setTimeout(J,F.controls.hideTimeoutTooltips)),s&&J())},Z=()=>{Y(),window.clearTimeout(E),E=void 0};Pt(A),Hn(()=>window.clearTimeout(E));function oe(N){me[N?"unshift":"push"](()=>{w=N,t(3,w)})}function P(N){me[N?"unshift":"push"](()=>{v=N,t(4,v)})}return i.$$set=N=>{"content"in N&&t(1,a=N.content),"active"in N&&t(0,s=N.active),"translateX"in N&&t(14,u=N.translateX),"translateY"in N&&t(15,f=N.translateY),"isFullWidthWrapper"in N&&t(2,p=N.isFullWidthWrapper),"placement"in N&&t(16,h=N.placement),"onVisibilityChange"in N&&t(17,k=N.onVisibilityChange),"$$scope"in N&&t(21,l=N.$$scope)},i.$$.update=()=>{if(i.$$.dirty&131073)e:k(s)},[s,a,p,w,v,b,T,W,g,y,le,re,ce,Z,u,f,h,k,r,oe,P,l]}var Ta=class extends K{constructor(e){super(),G(this,e,Zg,Yg,U,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},Gg)}},Cr=Ta;function Jg(i){Ie(i,"svelte-p9r045",".btn-container.svelte-p9r045{position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.svelte-p9r045{width:100%;min-width:0}")}function xg(i){let e,t=i[19].default,n=Pe(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Ee(n,t,o,o[24],e?Te(t,o[24],r,null):Ae(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function $g(i){let e,t;return e=new Cr({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[eb]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&2048&&(r.content=n[11]),o&512&&(r.translateX=n[9]),o&1024&&(r.translateY=n[10]),o&16&&(r.isFullWidthWrapper=n[4]),o&32&&(r.active=n[5]),o&64&&(r.placement=n[6]),o&256&&(r.onVisibilityChange=n[8]),o&16777216&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function eb(i){let e,t=i[19].default,n=Pe(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Ee(n,t,o,o[24],e?Te(t,o[24],r,null):Ae(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function tb(i){let e,t,n,o,r,l,a,s,u,f=[$g,xg],p=[];function h(k,g){return k[3]&&k[11]&&!k[12]?0:1}return t=h(i,-1),n=p[t]=f[t](i),{c(){e=I("div"),n.c(),c(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),c(e,"aria-hidden",r=i[7]||null),Un(()=>i[23].call(e))},m(k,g){S(k,e,g),p[t].m(e,null),i[22](e),l=jo(e,i[23].bind(e)),a=!0,s||(u=[de(e,"pointerdown",at(It(i[20]))),de(e,"click",at(It(i[21])))],s=!0)},p(k,[g]){let w=t;t=h(k,g),t===w?p[t].p(k,g):(se(),_(p[w],1,1,()=>{p[w]=null}),ae(),n=p[t],n?n.p(k,g):(n=p[t]=f[t](k),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+k[2]+" svelte-p9r045"))&&c(e,"class",o),(!a||g&128&&r!==(r=k[7]||null))&&c(e,"aria-hidden",r)},i(k){a||(d(n),a=!0)},o(k){_(n),a=!1},d(k){k&&C(e),p[t].d(),i[22](null),l(),s=!1,et(u)}}}function ib(i,e,t){let n,o,{$$slots:r={},$$scope:l}=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:k=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:w="top"}=e,{disabledTooltipContent:v=j("tooltip_button_disabled")}=e,{isAriaHidden:E=!1}=e,{onTooltipVisibilityChange:b=Xg}=e,{initialTranslateXPx:y=0}=e,{initialTranslateYPx:T=-18}=e,W=nt(),F=W.ui.isMobile;z(i,F,Y=>t(12,o=Y));let O=W.state.graphIsOpened$;z(i,O,Y=>t(18,n=Y));let le;function re(Y){Pn.call(this,i,Y)}function H(Y){Pn.call(this,i,Y)}function A(Y){me[Y?"unshift":"push"](()=>{f=Y,t(0,f)})}function J(){p=this.clientWidth,t(1,p)}return i.$$set=Y=>{"className"in Y&&t(2,a=Y.className),"disabled"in Y&&t(15,s=Y.disabled),"hasTooltip"in Y&&t(3,u=Y.hasTooltip),"ref"in Y&&t(0,f=Y.ref),"width"in Y&&t(1,p=Y.width),"isFullWidthTooltip"in Y&&t(4,h=Y.isFullWidthTooltip),"tooltipContent"in Y&&t(16,k=Y.tooltipContent),"tooltipActive"in Y&&t(5,g=Y.tooltipActive),"tooltipPlacement"in Y&&t(6,w=Y.tooltipPlacement),"disabledTooltipContent"in Y&&t(17,v=Y.disabledTooltipContent),"isAriaHidden"in Y&&t(7,E=Y.isAriaHidden),"onTooltipVisibilityChange"in Y&&t(8,b=Y.onTooltipVisibilityChange),"initialTranslateXPx"in Y&&t(9,y=Y.initialTranslateXPx),"initialTranslateYPx"in Y&&t(10,T=Y.initialTranslateYPx),"$$scope"in Y&&t(24,l=Y.$$scope)},i.$$.update=()=>{if(i.$$.dirty&491520)e:s?t(11,le=n?j("tooltip_disabled_when_graph_on"):v):t(11,le=k)},[f,p,a,u,h,g,w,E,b,y,T,le,o,F,O,s,k,v,n,r,re,H,A,J,l]}var Ea=class extends K{constructor(e){super(),G(this,e,ib,tb,U,{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},Jg)}},Mt=Ea;function nb(i){let e,t,n,o,r,l;return{c(){e=B("svg"),t=B("rect"),o=B("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",r=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",l=(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&&r!==(r=a[0]?"var(--interactive-episode-complete)":"white")&&c(o,"fill",r),s&1&&l!==(l=(a[0],"interactive-episode-completed-icon"))&&c(e,"data-testid",l)},i:_e,o:_e,d(a){a&&C(e)}}}function ob(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var Aa=class extends K{constructor(e){super(),G(this,e,ob,nb,U,{completed:0})}},Sr=Aa;function lb(i){Ie(i,"svelte-bklhpe",".interactive-episode-icon.svelte-bklhpe{width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default}.interactive-episode-icon.disabled.svelte-bklhpe{pointer-events:none;opacity:0.4}")}function rb(i){let e,t,n,o,r;return t=new Sr({props:{completed:!!i[0].completed}}),{c(){e=I("div"),R(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)),q(e,"disabled",i[1])},m(l,a){S(l,e,a),V(t,e,null),o=jo(e,i[3].bind(e)),r=!0},p(l,a){let s={};a&1&&(s.completed=!!l[0].completed),t.$set(s),(!r||a&1&&n!==(n=`left: ${l[0].from+l[0].width/2}%`))&&c(e,"style",n),(!r||a&2)&&q(e,"disabled",l[1])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){_(t.$$.fragment,l),r=!1},d(l){l&&C(e),L(t),o()}}}function sb(i){let e,t;return e=new Mt({props:{tooltipContent:j(i[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished"),initialTranslateXPx:-10,initialTranslateYPx:-10,disabled:i[1],width:i[2]||0,isAriaHidden:!0,isFullWidthTooltip:!1,$$slots:{default:[rb]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.tooltipContent=j(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(r.disabled=n[1]),o&4&&(r.width=n[2]||0),o&23&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function ab(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,r;function l(){r=this.clientWidth,t(2,r)}return i.$$set=a=>{"videoEpisode"in a&&t(0,n=a.videoEpisode),"disabled"in a&&t(1,o=a.disabled)},[n,o,r,l]}var Ma=class extends K{constructor(e){super(),G(this,e,ab,sb,U,{videoEpisode:0,disabled:1},lb)}},S1=Ma;function ub(i){Ie(i,"svelte-1rzxunm",".video-episodes-wrap.svelte-1rzxunm{position:absolute;width:100%;height:100%}.video-episode.svelte-1rzxunm{position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:-5px;padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s}.video-episode.svelte-1rzxunm:not(.disabled):where(:hover, :active){transform:scaleY(1.5)}.video-episode-inner.svelte-1rzxunm,.video-episode-loaded.svelte-1rzxunm,.video-episode-filled.svelte-1rzxunm{position:absolute;height:var(--slider-height);border-radius:var(--slider-radius)}.video-episode-inner.svelte-1rzxunm{position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg)}.video-episode-loaded.svelte-1rzxunm{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.video-episode-filled.svelte-1rzxunm{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}")}function I1(i,e,t){let n=i.slice();return n[3]=e[t],n}function P1(i){let e,t,n,o,r,l,a,s,u;return{c(){e=I("div"),t=I("div"),n=I("div"),r=D(),l=I("div"),s=D(),c(n,"class","video-episode-loaded svelte-1rzxunm"),c(n,"style",o=`transform: translateX(${i[3].loadedWidth/i[3].width*100}%)`),c(l,"class","video-episode-filled svelte-1rzxunm"),c(l,"style",a=`transform: translateX(${i[3].filledWidth/i[3].width*100}%)`),q(l,"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}%`),q(e,"disabled",i[2]),q(e,"mobile",i[1])},m(f,p){S(f,e,p),m(e,t),m(t,n),m(t,r),m(t,l),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(l,"style",a),p&2&&q(l,"mobile",f[1]),p&1&&u!==(u=`left: ${f[3].from}%; width: ${f[3].width}%`)&&c(e,"style",u),p&4&&q(e,"disabled",f[2]),p&2&&q(e,"mobile",f[1])},d(f){f&&C(e)}}}function cb(i){let e,t=wt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=P1(I1(i,t,o));return{c(){e=I("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","video-episodes-wrap svelte-1rzxunm")},m(o,r){S(o,e,r);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,[r]){if(r&7){t=wt(o[0]);let l;for(l=0;l<t.length;l+=1){let a=I1(o,t,l);n[l]?n[l].p(a,r):(n[l]=P1(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},i:_e,o:_e,d(o){o&&C(e),Si(n,o)}}}function fb(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e,{disabled:r}=e;return i.$$set=l=>{"videoEpisodes"in l&&t(0,n=l.videoEpisodes),"isMobile"in l&&t(1,o=l.isMobile),"disabled"in l&&t(2,r=l.disabled)},[n,o,r]}var Va=class extends K{constructor(e){super(),G(this,e,fb,cb,U,{videoEpisodes:0,isMobile:1,disabled:2},ub)}},T1=Va;function db(i){Ie(i,"svelte-v8ydei",".interactive-icons.svelte-v8ydei.svelte-v8ydei{position:absolute;width:calc(100% - 20px);top:-28px}.interactive-icons.mobile.svelte-v8ydei.svelte-v8ydei{top:-10px}.slider.svelte-v8ydei.svelte-v8ydei{position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent}.no-handle.svelte-v8ydei.svelte-v8ydei{cursor:default}.slider.svelte-v8ydei.svelte-v8ydei:before{content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2)}.bars.svelte-v8ydei.svelte-v8ydei{position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg)}.loaded.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.filled.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}.slider.square.svelte-v8ydei.svelte-v8ydei,.slider.square.svelte-v8ydei>.bars.svelte-v8ydei,.slider.square.svelte-v8ydei .loaded.svelte-v8ydei,.slider.square.svelte-v8ydei .filled.svelte-v8ydei{border-radius:unset}.filled.active-live.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.filled.ads.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-ads)}.handleWrap.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%}.handle.svelte-v8ydei.svelte-v8ydei{position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-filled-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform}.handle.active-live.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.slider.svelte-v8ydei:hover .handle.svelte-v8ydei,.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{transform:scale(1.3)}.slider-vertical.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.slider.disabled.svelte-v8ydei.svelte-v8ydei{cursor:default;opacity:0.4}")}function E1(i,e,t){let n=i.slice();return n[49]=e[t],n}function A1(i){let e,t,n=wt(i[21]),o=[];for(let l=0;l<n.length;l+=1)o[l]=V1(E1(i,n,l));let r=l=>_(o[l],1,1,()=>{o[l]=null});return{c(){e=I("div");for(let l=0;l<o.length;l+=1)o[l].c();c(e,"class","interactive-icons svelte-v8ydei"),q(e,"mobile",i[6]),q(e,"hidden",i[6]&&!i[20])},m(l,a){S(l,e,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(e,null);t=!0},p(l,a){if(a[0]&2098176){n=wt(l[21]);let s;for(s=0;s<n.length;s+=1){let u=E1(l,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=V1(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(se(),s=n.length;s<o.length;s+=1)r(s);ae()}(!t||a[0]&64)&&q(e,"mobile",l[6]),(!t||a[0]&1048640)&&q(e,"hidden",l[6]&&!l[20])},i(l){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(l){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)_(o[a]);t=!1},d(l){l&&C(e),Si(o,l)}}}function M1(i){let e,t;return e=new S1({props:{videoEpisode:i[49],disabled:i[10]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisode=n[49]),o[0]&1024&&(r.disabled=n[10]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function V1(i){let e,t,n=i[49].interactive&&M1(i);return{c(){n&&n.c(),e=ut()},m(o,r){n&&n.m(o,r),S(o,e,r),t=!0},p(o,r){o[49].interactive?n?(n.p(o,r),r[0]&2097152&&d(n,1)):(n=M1(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(se(),_(n,1,1,()=>{n=null}),ae())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&C(e),n&&n.d(o)}}}function mb(i){let e,t,n,o,r,l;return{c(){e=I("div"),t=I("div"),o=D(),r=I("div"),c(t,"class","loaded svelte-v8ydei"),c(t,"style",n=`transform: translateX(${i[12]*100}%);`),c(r,"class","filled svelte-v8ydei"),c(r,"style",l=`transform: translateX(${i[13]*100}%);`),q(r,"active-live",i[5]),q(r,"ads",i[7]),c(e,"class","bars svelte-v8ydei")},m(a,s){S(a,e,s),m(e,t),m(e,o),m(e,r)},p(a,s){s[0]&4096&&n!==(n=`transform: translateX(${a[12]*100}%);`)&&c(t,"style",n),s[0]&8192&&l!==(l=`transform: translateX(${a[13]*100}%);`)&&c(r,"style",l),s[0]&32&&q(r,"active-live",a[5]),s[0]&128&&q(r,"ads",a[7])},i:_e,o:_e,d(a){a&&C(e)}}}function pb(i){let e,t;return e=new T1({props:{videoEpisodes:i[21],disabled:i[10],isMobile:i[6]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisodes=n[21]),o[0]&1024&&(r.disabled=n[10]),o[0]&64&&(r.isMobile=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function _b(i){let e,t,n,o,r,l,a,s,u,f,p,h,k,g=i[9]&&A1(i),w=[pb,mb],v=[];function E(b,y){return b[21].length?0:1}return n=E(i,[-1,-1]),o=v[n]=w[n](i),{c(){g&&g.c(),e=D(),t=I("div"),o.c(),r=D(),l=I("div"),a=I("div"),c(a,"class","handle svelte-v8ydei"),q(a,"active-live",i[5]),c(l,"class","handleWrap svelte-v8ydei"),c(l,"style",s=`transform: translateX(${i[14]*100}%);`),q(l,"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),q(t,"disabled",i[10]),q(t,"slider-dragging",i[20]),q(t,"hidden",i[3]),q(t,"slider-vertical",i[4]),q(t,"no-handle",i[11]),q(t,"square",i[8])},m(b,y){g&&g.m(b,y),S(b,e,y),S(b,t,y),v[n].m(t,null),m(t,r),m(t,l),m(l,a),i[43](t),p=!0,h||(k=[de(t,"pointerdown",It(i[22])),de(t,"pointermove",It(i[23])),de(t,"pointerup",It(i[24])),de(t,"pointerenter",It(i[25])),de(t,"pointerleave",It(i[26])),de(t,"click",at(Bn)),de(t,"wheel",i[27])],h=!0)},p(b,y){b[9]?g?(g.p(b,y),y[0]&512&&d(g,1)):(g=A1(b),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(se(),_(g,1,1,()=>{g=null}),ae());let T=n;n=E(b,y),n===T?v[n].p(b,y):(se(),_(v[T],1,1,()=>{v[T]=null}),ae(),o=v[n],o?o.p(b,y):(o=v[n]=w[n](b),o.c()),d(o,1),o.m(t,r)),(!p||y[0]&32)&&q(a,"active-live",b[5]),(!p||y[0]&16384&&s!==(s=`transform: translateX(${b[14]*100}%);`))&&c(l,"style",s),(!p||y[0]&2048)&&q(l,"hidden",b[11]),(!p||y[0]&2&&u!==(u="slider "+b[1]+" svelte-v8ydei"))&&c(t,"class",u),(!p||y[0]&32768)&&c(t,"aria-label",b[15]),(!p||y[0]&65536)&&c(t,"aria-valuemin",b[16]),(!p||y[0]&131072)&&c(t,"aria-valuemax",b[17]),(!p||y[0]&262144)&&c(t,"aria-valuenow",b[18]),(!p||y[0]&524288)&&c(t,"aria-valuetext",b[19]),(!p||y[0]&4&&f!==(f=b[2]??null))&&c(t,"data-testid",f),(!p||y[0]&1026)&&q(t,"disabled",b[10]),(!p||y[0]&1048578)&&q(t,"slider-dragging",b[20]),(!p||y[0]&10)&&q(t,"hidden",b[3]),(!p||y[0]&18)&&q(t,"slider-vertical",b[4]),(!p||y[0]&2050)&&q(t,"no-handle",b[11]),(!p||y[0]&258)&&q(t,"square",b[8])},i(b){p||(d(g),d(o),p=!0)},o(b){_(g),_(o),p=!1},d(b){b&&(C(e),C(t)),g&&g.d(b),v[n].d(),i[43](null),h=!1,et(k)}}}function hb(i,e,t){let n,o,{ref:r=void 0}=e,{className:l=""}=e,{testId:a=void 0}=e,{isHidden:s=!1}=e,{isVertical:u=!1}=e,{isActiveLive:f=!1}=e,{isMobile:p=!1}=e,{isAds:h=!1}=e,{squareBorders:k=!1}=e,{videoEpisodes:g=[]}=e,{withWheelHandler:w=!1}=e,{isInteractive:v=!1}=e,{disabled:E=!1}=e,{hideHandel:b=!1}=e,y,{onPointerDown:T=Bn}=e,{onHandleMove:W=Bn}=e,{onPointerUp:F=Bn}=e,{onPointerEnter:O=Bn}=e,{onPointerMove:le=Bn}=e,{onPointerLeave:re=Bn}=e,{onWheelUp:H=Bn}=e,{onWheelDown:A=Bn}=e,{onWheelLeft:J=Bn}=e,{onWheelRight:Y=Bn}=e,{onDisabledPointerUp:ce=Bn}=e,{loadedProgress:Z=0}=e,{filledProgress:oe=0}=e,{handleProgress:P=0}=e,{ariaLabel:N=""}=e,{ariaValueMin:Me=void 0}=e,{ariaValueMax:Ue=void 0}=e,{ariaValueNow:Ge=void 0}=e,{ariaValueText:Qe=""}=e,Le=Nt(),be=!1,x;function Se(fe){if(r&&(y=r.getBoundingClientRect()),E||be||!r)return;t(20,be=!0);let Ce=ot(fe.clientX,fe.clientY);T(Ce),r.setPointerCapture(fe.pointerId)}function $e(fe){if(E)return;let Ce=ot(fe.clientX,fe.clientY),pe=je(fe.clientX);le(Ce,pe,y.width),be&&W(Ce)}function He(fe){if(E){ce(ot(fe.clientX,fe.clientY));return}else if(!be)return;t(20,be=!1);let Ce=ot(fe.clientX,fe.clientY);F(Ce)}function it(fe){if(r&&(y=r.getBoundingClientRect()),E)return;let Ce=ot(fe.clientX,fe.clientY),pe=je(fe.clientX);O(Ce,pe,y.width)}function we(){E||re()}function Ye(fe){E||w&&(fe.preventDefault(),fe.deltaY<0?H():fe.deltaY>0?A():fe.deltaX>0?Y():J())}function ot(fe,Ce){return u?Math.max(0,Math.min(1,(y.height-(Ce-y.top))/y.height)):Math.min(Math.max(fe-y.x,0),y.width)/y.width}function je(fe){return Math.min(Math.max(fe-y.x,0),y.width)}function Ke(fe,Ce){let pe=Le.features.episodesClustering&&!v?Le.episodeMinWidthPc:0,Oe=[],ee=0,ke=0,rt=0;for(let Fe=1;Fe<g.length;Fe++)ke=g[Fe].time/x*100,ke-ee>pe&&(Oe.push({from:ee,width:Math.max(0,ke-ee),loadedWidth:Math.max(0,Math.min(ke,fe)-ee),filledWidth:Math.max(0,Math.min(ke,Ce)-ee),interactive:g[Fe-1].interactive,completed:g[Fe-1].completed}),ee=g[Fe].time/x*100,rt++);let ye={from:ee,width:Math.max(0,100-ee),loadedWidth:Math.max(0,Math.min(fe,100)-ee),filledWidth:Math.max(0,Math.min(Ce,100)-ee),interactive:g[rt].interactive,completed:g[rt].completed};100-ee<pe?(rt-=1,Oe[rt].width+=100-ee,Oe[rt].loadedWidth+=Math.max(0,Math.min(fe,100)-ee),Oe[rt].filledWidth+=Math.max(0,Math.min(Ce,100)-ee)):Oe[rt]=ye;let dt=g[0].time;if(dt!==0){let Fe=dt/x*100;Oe.unshift({from:0,width:Fe,loadedWidth:Math.min(Fe,fe),filledWidth:Math.min(Fe,Ce)})}return Oe}function Xe(fe){me[fe?"unshift":"push"](()=>{r=fe,t(0,r)})}return i.$$set=fe=>{"ref"in fe&&t(0,r=fe.ref),"className"in fe&&t(1,l=fe.className),"testId"in fe&&t(2,a=fe.testId),"isHidden"in fe&&t(3,s=fe.isHidden),"isVertical"in fe&&t(4,u=fe.isVertical),"isActiveLive"in fe&&t(5,f=fe.isActiveLive),"isMobile"in fe&&t(6,p=fe.isMobile),"isAds"in fe&&t(7,h=fe.isAds),"squareBorders"in fe&&t(8,k=fe.squareBorders),"videoEpisodes"in fe&&t(28,g=fe.videoEpisodes),"withWheelHandler"in fe&&t(29,w=fe.withWheelHandler),"isInteractive"in fe&&t(9,v=fe.isInteractive),"disabled"in fe&&t(10,E=fe.disabled),"hideHandel"in fe&&t(11,b=fe.hideHandel),"onPointerDown"in fe&&t(30,T=fe.onPointerDown),"onHandleMove"in fe&&t(31,W=fe.onHandleMove),"onPointerUp"in fe&&t(32,F=fe.onPointerUp),"onPointerEnter"in fe&&t(33,O=fe.onPointerEnter),"onPointerMove"in fe&&t(34,le=fe.onPointerMove),"onPointerLeave"in fe&&t(35,re=fe.onPointerLeave),"onWheelUp"in fe&&t(36,H=fe.onWheelUp),"onWheelDown"in fe&&t(37,A=fe.onWheelDown),"onWheelLeft"in fe&&t(38,J=fe.onWheelLeft),"onWheelRight"in fe&&t(39,Y=fe.onWheelRight),"onDisabledPointerUp"in fe&&t(40,ce=fe.onDisabledPointerUp),"loadedProgress"in fe&&t(12,Z=fe.loadedProgress),"filledProgress"in fe&&t(13,oe=fe.filledProgress),"handleProgress"in fe&&t(14,P=fe.handleProgress),"ariaLabel"in fe&&t(15,N=fe.ariaLabel),"ariaValueMin"in fe&&t(16,Me=fe.ariaValueMin),"ariaValueMax"in fe&&t(17,Ue=fe.ariaValueMax),"ariaValueNow"in fe&&t(18,Ge=fe.ariaValueNow),"ariaValueText"in fe&&t(19,Qe=fe.ariaValueText)},i.$$.update=()=>{if(i.$$.dirty[0]&131072)e:t(41,x=Ue??0);if(i.$$.dirty[0]&268435456|i.$$.dirty[1]&1024)e:t(42,n=g[g.length-1]?.time<x);if(i.$$.dirty[0]&268447744|i.$$.dirty[1]&3072)e:t(21,o=g.length&&n&&x?Ke(Z*100,oe*100):[])},[r,l,a,s,u,f,p,h,k,v,E,b,Z,oe,P,N,Me,Ue,Ge,Qe,be,o,Se,$e,He,it,we,Ye,g,w,T,W,F,O,le,re,H,A,J,Y,ce,x,n,Xe]}var La=class extends K{constructor(e){super(),G(this,e,hb,_b,U,{ref:0,className:1,testId:2,isHidden:3,isVertical:4,isActiveLive:5,isMobile:6,isAds:7,squareBorders:8,videoEpisodes:28,withWheelHandler:29,isInteractive:9,disabled:10,hideHandel:11,onPointerDown:30,onHandleMove:31,onPointerUp:32,onPointerEnter:33,onPointerMove:34,onPointerLeave:35,onWheelUp:36,onWheelDown:37,onWheelLeft:38,onWheelRight:39,onDisabledPointerUp:40,loadedProgress:12,filledProgress:13,handleProgress:14,ariaLabel:15,ariaValueMin:16,ariaValueMax:17,ariaValueNow:18,ariaValueText:19},db,[-1,-1])}},sl=La;var An=(i,e)=>Ao[i]>=Ao[e],L1=(i,e)=>Ao[i]<Ao[e],Ir=(i,e)=>Ao[i]<=Ao[e],R1=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function gb(i){Ie(i,"svelte-1l78lz9",".volumeBar-container.svelte-1l78lz9{display:flex;align-items:center}.volumeBar-container.vertical.svelte-1l78lz9,.vertical.svelte-1l78lz9 .tooltip-wrapper,.vertical.svelte-1l78lz9 .btn{width:40px}.volumeBar.svelte-1l78lz9{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.svelte-1l78lz9{padding:0 8px 0 0;width:0}")}function bb(i){let e,t;return e=new Fo({props:{volume:i[3],muted:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.volume=n[3]),o[0]&2&&(r.muted=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function vb(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:jn.KeyM,$$slots:{default:[bb]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&512&&(r.disabled=n[9]),o[0]&4&&(r.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(r.ariaLabel=n[7]),o[0]&1&&(r.click=n[0]),o[0]&10|o[1]&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function B1(i){let e,t,n;return t=new sl({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=I("div"),R(t.$$.fragment),c(e,"class","volumeBar svelte-1l78lz9"),q(e,"volumeBar-vertical",i[2])},m(o,r){S(o,e,r),V(t,e,null),n=!0},p(o,r){let l={};r[0]&4&&(l.className=o[2]?"volumeBar-slider-vertical":""),r[0]&36&&(l.isHidden=o[2]&&!o[5]),r[0]&4&&(l.isVertical=o[2]),r[0]&4&&(l.onPointerEnter=o[2]?o[19]:ao),r[0]&4&&(l.onPointerLeave=o[2]?o[20]:ao),r[0]&256&&(l.ariaValueNow=Math.round(o[8]*100)),r[0]&256&&(l.ariaValueText=`${Math.round(o[8]*100)}%`),r[0]&256&&(l.filledProgress=o[8]),r[0]&256&&(l.handleProgress=o[8]),r[0]&4&&(l.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(l),(!n||r[0]&4)&&q(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),L(t)}}}function yb(i){let e,t,n,o,r,l;t=new Cr({props:{content:i[6],translateY:-18,$$slots:{default:[vb]},$$scope:{ctx:i}}});let a=i[4]&&B1(i);return{c(){e=I("div"),R(t.$$.fragment),n=D(),a&&a.c(),c(e,"class","volumeBar-container svelte-1l78lz9"),q(e,"vertical",i[2])},m(s,u){S(s,e,u),V(t,e,null),m(e,n),a&&a.m(e,null),o=!0,r||(l=[de(e,"mouseenter",function(){Ci(i[2]?i[21]:ao)&&(i[2]?i[21]:ao).apply(this,arguments)}),de(e,"mouseleave",function(){Ci(i[2]?i[22]:ao)&&(i[2]?i[22]:ao).apply(this,arguments)}),de(e,"wheel",It(i[23]))],r=!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&&(se(),_(a,1,1,()=>{a=null}),ae()),(!o||u[0]&4)&&q(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&&C(e),L(t),a&&a.d(),r=!1,et(l)}}}function kb(i,e,t){let n,o,r,l,{click:a}=e,s=nt(),u=Nt(),f=s.state.volume$;z(i,f,Le=>t(3,n=Le));let p=s.state.muted$;z(i,p,Le=>t(25,l=Le));let h=s.actions.internal.setVolume,k=s.ui.currentGridType$;z(i,k,Le=>t(24,r=Le));let g=s.callbacks?.onAudioDoesNotExistHint,w=s.callbacks?.onAudioDisabledHint,v=s.state.isAudioAvailable$;z(i,v,Le=>t(4,o=Le));let E=s.state.isAudioDisabled,b=!1,y,T,W,F,O,le,re=1,H=!1,A=!1;function J(Le){re=n,h(Le)}function Y(){mr(s,n,u.controls.volumeStepWheel)}function ce(){pr(s,n,u.controls.volumeStepWheel)}function Z(Le){h(Le)}function oe(Le){let be=Le;h(be,be===0?re:be)}function P(){H=!0}function N(){H=!1,Ge()}function Me(){clearTimeout(y),t(5,b=!0)}function Ue(){Ge()}function Ge(){y=window.setTimeout(()=>{H||t(5,b=!1)},u.controls.volumeBarTimeout)}function Qe(Le){Le.deltaY<0?Y():Le.deltaY>0&&ce()}return i.$$set=Le=>{"click"in Le&&t(0,a=Le.click)},i.$$.update=()=>{if(i.$$.dirty[0]&33554448)e:t(1,F=!o||l);if(i.$$.dirty[0]&16777216)e:t(2,O=Ir(r,"s"));if(i.$$.dirty[0]&6)e:O?t(6,T=""):t(6,T=F?j("tooltip_volume"):j("tooltip_volume_muted")),t(7,W=F?j("tooltip_volume"):j("tooltip_volume_muted"));if(i.$$.dirty[0]&10)e:t(8,le=F?0:n);if(i.$$.dirty[0]&16)e:o?t(9,A=E&&!w):t(9,A=!g)},[a,F,O,n,o,b,T,W,le,A,f,p,k,v,J,Y,ce,Z,oe,P,N,Me,Ue,Qe,r,l]}var Ra=class extends K{constructor(e){super(),G(this,e,kb,yb,U,{click:0},gb,[-1,-1])}},D1=Ra;import{noop as Tb}from"@vkontakte/videoplayer-shared";function wb(i){let e,t,n,o,r,l=i[2].default,a=Pe(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=B("svg"),a&&a.c(),t=B("g"),n=B("path"),o=B("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"),ge(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),r=!0},p(f,[p]){a&&a.p&&(!r||p&2)&&Ee(a,l,f,f[1],r?Te(l,f[1],p,null):Ae(f[1]),null),ge(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){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&C(e),a&&a.d(f)}}}function Cb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ba=class extends K{constructor(e){super(),G(this,e,Cb,wb,U,{})}},N1=Ba;function Sb(i){Ie(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Ib(i){let e,t;return e=new N1({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Pb(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Da=class extends K{constructor(e){super(),G(this,e,Pb,Ib,U,{isFullscreen:0},Sb)}},q1=Da;function Eb(i){let e,t;return e=new q1({props:{isFullscreen:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.isFullscreen=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Ab(i){let e,t;return e=new pt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:jn.KeyF,$$slots:{default:[Eb]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Mb(i,e,t){let{isFullscreen:n=!1}=e,{click:o=Tb}=e,r;return i.$$set=l=>{"isFullscreen"in l&&t(0,n=l.isFullscreen),"click"in l&&t(1,o=l.click)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(2,r=n?j("tooltip_fullscreen_on"):j("tooltip_fullscreen_off"))},[n,o,r]}var Na=class extends K{constructor(e){super(),G(this,e,Mb,Ab,U,{isFullscreen:0,click:1})}},Pr=Na;function Vb(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{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<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{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(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function Lb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var qa=class extends K{constructor(e){super(),G(this,e,Lb,Vb,U,{})}},al=qa;function Rb(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{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<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{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(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function Bb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Oa=class extends K{constructor(e){super(),G(this,e,Bb,Rb,U,{})}},Tr=Oa;import{noop as Db}from"@vkontakte/videoplayer-shared";function Nb(i){Ie(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function O1(i){let e;return{c(){e=I("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){S(t,e,n)},d(t){t&&C(e)}}}function qb(i){let e,t,n,o,r=i[1]&&O1(i);var l=i[8];function a(s){return{}}return l&&(n=vn(l,a(i))),{c(){r&&r.c(),e=D(),t=I("div"),n&&R(n.$$.fragment),c(t,"class","svelte-1ot3duq"),q(t,"mobile",i[1])},m(s,u){r&&r.m(s,u),S(s,e,u),S(s,t,u),n&&V(n,t,null),o=!0},p(s,u){if(s[1]?r||(r=O1(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u&256&&l!==(l=s[8])){if(n){se();let f=n;_(f.$$.fragment,1,0,()=>{L(f,1)}),ae()}l?(n=vn(l,a(s)),R(n.$$.fragment),d(n.$$.fragment,1),V(n,t,null)):n=null}(!o||u&2)&&q(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&&(C(e),C(t)),r&&r.d(s),n&&L(n)}}}function Ob(i){let e,t,n;function o(l){i[13](l)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-play",click:i[5]?i[6]:i[4],disabled:i[2],ariaLabel:i[7],ariaKeyShortCut:jn.KeyK,$$slots:{default:[qb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&10&&(s.className=(l[1]?"btn-m--play":"")+" "+l[3]),a&112&&(s.click=l[5]?l[6]:l[4]),a&4&&(s.disabled=l[2]),a&128&&(s.ariaLabel=l[7]),a&33026&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Fb(i,e,t){let n,o,{fakeIsPlaying$:r}=Ln();z(i,r,b=>t(12,o=b));let{ref:l=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:f=""}=e,{click:p=Db}=e,{toggle:h}=r,k,g,w,v;function E(b){l=b,t(0,l)}i.$$set=b=>{"ref"in b&&t(0,l=b.ref),"isMobile"in b&&t(1,a=b.isMobile),"isPlaying"in b&&t(10,s=b.isPlaying),"disabled"in b&&t(2,u=b.disabled),"className"in b&&t(3,f=b.className),"click"in b&&t(4,p=b.click)},i.$$.update=()=>{if(i.$$.dirty&4096)e:t(5,g=o!==null);if(i.$$.dirty&5152)e:t(11,w=g?o:s);if(i.$$.dirty&2048)e:t(7,v=w?j("tooltip_pause"):j("tooltip_play"));if(i.$$.dirty&2048)e:t(8,n=w?Tr:al)};e:t(6,k=h);return[l,a,u,f,p,g,k,v,n,r,s,w,o,E]}var Fa=class extends K{constructor(e){super(),G(this,e,Fb,Ob,U,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},Nb)}},Sl=Fa;function Hb(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function zb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ha=class extends K{constructor(e){super(),G(this,e,zb,Hb,U,{})}},F1=Ha;function Ub(i){let e,t;return e=new F1({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Kb(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,r;return i.$$set=l=>{"isPrev"in l&&t(0,n=l.isPrev),"isMobile"in l&&t(2,o=l.isMobile)},i.$$.update=()=>{if(i.$$.dirty&5)e:n&&o?t(1,r="transform: scaleX(-1) scale(1.3333);"):n?t(1,r="transform: scaleX(-1);"):o?t(1,r="transform: scale(1.3333);"):t(1,r=void 0)},[n,r,o]}var za=class extends K{constructor(e){super(),G(this,e,Kb,Ub,U,{isPrev:0,isMobile:2})}},H1=za;function jb(i){let e,t;return e=new H1({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&8&&(r.isPrev=n[3]==="prev"),e.$set(r)},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,n;function o(l){i[6](l)}let r={testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[jb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&8&&(s.testId="btn-"+l[3]),a&4&&(s.disabled=l[2]),a&32&&(s.ariaLabel=l[5]),a&16&&(s.click=l[4]),a&138&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Gb(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{type:l}=e,{click:a}=e,s;function u(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,r=f.disabled),"type"in f&&t(3,l=f.type),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(5,s=l==="prev"?j("tooltip_previous"):j("tooltip_next"))},[n,o,r,l,a,s,u]}var Ua=class extends K{constructor(e){super(),G(this,e,Gb,Wb,U,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},ul=Ua;function Qb(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function Yb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ka=class extends K{constructor(e){super(),G(this,e,Yb,Qb,U,{})}},z1=Ka;function Zb(i){let e,t,n,o,r,l,a=i[2].default,s=Pe(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=ne(f,u[p]);return{c(){e=B("svg"),s&&s.c(),t=B("path"),n=B("path"),o=B("path"),r=B("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(r,"fill","#fff"),c(r,"fill-rule","evenodd"),c(r,"d","M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"),c(r,"clip-rule","evenodd"),ge(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,r),l=!0},p(p,[h]){s&&s.p&&(!l||h&2)&&Ee(s,a,p,p[1],l?Te(a,p[1],h,null):Ae(p[1]),null),ge(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){l||(d(s,p),l=!0)},o(p){_(s,p),l=!1},d(p){p&&C(e),s&&s.d(p)}}}function Xb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ja=class extends K{constructor(e){super(),G(this,e,Xb,Zb,U,{})}},U1=ja;function Jb(i){Ie(i,"svelte-1nhjml",'svg[data-testid="vk-video-logo-icon--short"] ._ru,svg[data-testid="vk-video-logo-icon--short"] ._en,svg[data-testid="vk-video-logo-icon"] ._en,svg[data-testid="vk-video-logo-icon--en"] ._ru{visibility:hidden;opacity:0}')}function xb(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(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.width=n[0]),o&1&&(r.viewBox="0 0 "+(n[0]+1)+" 24"),o&2&&(r["data-testid"]=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}var $b="vk-video-logo-icon--short";function ev(i,e,t){let{short:n=!1}=e,{isCyrillic:o=!0}=e,r,l;return i.$$set=a=>{"short"in a&&t(2,n=a.short),"isCyrillic"in a&&t(3,o=a.isCyrillic)},i.$$.update=()=>{if(i.$$.dirty&12)e:t(0,r=n?21:95),t(1,l=n?$b:"vk-video-logo-icon"),!o&&!n&&(t(0,r=91),t(1,l="vk-video-logo-icon--en"))},[r,l,n,o]}var Wa=class extends K{constructor(e){super(),G(this,e,ev,xb,U,{short:2,isCyrillic:3},Jb)}},K1=Wa;import{InterfaceLanguage as iv}from"@vkontakte/videoplayer-shared";function nv(i){let e,t;return e=new z1({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p:_e,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function ov(i){let e,t;return e=new K1({props:{short:i[4],isCyrillic:i[5]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.short=n[4]),o&32&&(r.isCyrillic=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function lv(i){let e,t,n,o,r=[ov,nv],l=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ut()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?l[e].p(s,u):(se(),_(l[f],1,1,()=>{l[f]=null}),ae(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function rv(i){let e,t,n;function o(l){i[15](l)}let r={className:"btn-full-opacity",disabled:!i[1],click:i[9],testId:i[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[3],$$slots:{default:[lv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.disabled=!l[1]),a&4&&(s.testId=l[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(s.ariaLabel=l[3]),a&262196&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function sv(i,e,t){let n,o,r,l,{ref:a=void 0}=e,{logoClickable:s=!1}=e,{targetUrl:u=""}=e,{click:f}=e,p=Nt(),h=nt(),k=h.ui.currentGridType$;z(i,k,W=>t(13,r=W));let g=h.ui.isMobile;z(i,g,W=>t(14,l=W));let w=h.interfaceLanguage$;z(i,w,W=>t(12,o=W));let v,E,b,y=()=>{f(),h.callbacks?.onLogoClicked?.(),u&&window.open(u,"_blank")};function T(W){a=W,t(0,a)}i.$$set=W=>{"ref"in W&&t(0,a=W.ref),"logoClickable"in W&&t(1,s=W.logoClickable),"targetUrl"in W&&t(10,u=W.targetUrl),"click"in W&&t(11,f=W.click)},i.$$.update=()=>{if(i.$$.dirty&24580)e:t(4,b=(l||Ir(r,"l"))&&E);if(i.$$.dirty&4096)e:t(5,n=o===iv.RU)};e:t(3,v=p.logoType==="vk_video"?j("tooltip_vk_video_logo"):j("tooltip_vk_logo"));e:t(2,E=p.logoType==="vk_video"||p.logoType==="vk_video_mobile");return[a,s,E,v,b,n,k,g,w,y,u,f,o,r,l,T]}var Ga=class extends K{constructor(e){super(),G(this,e,sv,rv,U,{ref:0,logoClickable:1,targetUrl:10,click:11})}},Er=Ga;import{ChromecastState as mv}from"@vkontakte/videoplayer-core";import{ChromecastState as j1}from"@vkontakte/videoplayer-core";function av(i){Ie(i,"svelte-8z1bf5",".connecting.svelte-8z1bf5 .wave.svelte-8z1bf5{animation-duration:1s;animation-iteration-count:infinite}.connecting.svelte-8z1bf5 .wave1.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave1}.connecting.svelte-8z1bf5 .wave2.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave2}.connecting.svelte-8z1bf5 .wave3.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave3}@keyframes svelte-8z1bf5-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}")}function uv(i){let e,t,n,o,r,l,a,s;return{c(){e=B("svg"),t=B("g"),n=B("path"),o=B("path"),r=B("path"),l=B("path"),a=B("path"),s=B("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(r,"class","wave wave3 svelte-8z1bf5"),c(r,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),c(r,"fill","#fff"),c(l,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),c(l,"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"),q(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"),q(e,"connecting",i[2])},m(u,f){S(u,e,f),m(e,t),m(t,n),m(t,o),m(t,r),m(t,l),m(t,a),m(t,s)},p(u,f){f&2&&q(s,"hidden",!u[1]),f&4&&q(e,"connecting",u[2])},d(u){u&&C(e)}}}function cv(i){let e,t,n,o,r,l,a,s,u,f,p,h,k,g,w,v,E,b,y,T,W;return{c(){e=B("svg"),t=B("g"),n=B("mask"),o=B("path"),l=B("path"),a=B("path"),u=B("path"),f=B("defs"),p=B("clipPath"),h=B("path"),g=B("filter"),w=B("feFlood"),v=B("feColorMatrix"),E=B("feOffset"),b=B("feGaussianBlur"),y=B("feColorMatrix"),T=B("feBlend"),W=B("feBlend"),c(o,"fill",r=i[1]?"#2688EB":"#fff"),c(o,"d","M1.1 3.1h22v18h-22z"),c(l,"fill-rule","evenodd"),c(l,"clip-rule","evenodd"),c(l,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),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",k=i[1]?"#2688EB":"#fff"),c(h,"d","M0 0h24v24H0z"),c(p,"id","a"),c(w,"flood-opacity","0"),c(w,"result","BackgroundImageFix"),c(v,"in","SourceAlpha"),c(v,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(v,"result","hardAlpha"),c(b,"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(T,"in2","BackgroundImageFix"),c(T,"result","effect1_dropShadow_4085_178456"),c(W,"in","SourceGraphic"),c(W,"in2","effect1_dropShadow_4085_178456"),c(W,"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(F,O){S(F,e,O),m(e,t),m(t,n),m(n,o),m(n,l),m(t,a),m(t,u),m(e,f),m(f,p),m(p,h),m(f,g),m(g,w),m(g,v),m(g,E),m(g,b),m(g,y),m(g,T),m(g,W)},p(F,O){O&2&&r!==(r=F[1]?"#2688EB":"#fff")&&c(o,"fill",r),O&2&&s!==(s=F[1]?"#2688EB":"#fff")&&c(a,"fill",s),O&2&&k!==(k=F[1]?"#2688EB":"#fff")&&c(h,"fill",k)},d(F){F&&C(e)}}}function fv(i){let e;function t(r,l){return r[0]?cv:uv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ut()},m(r,l){o.m(r,l),S(r,e,l)},p(r,[l]){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:_e,o:_e,d(r){r&&C(e),o.d(r)}}}function dv(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,r,l;return i.$$set=a=>{"isMobile"in a&&t(0,n=a.isMobile),"state"in a&&t(3,o=a.state)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(2,l=o===j1.CONNECTING),t(1,r=o===j1.CONNECTED)},[n,r,l,o]}var Qa=class extends K{constructor(e){super(),G(this,e,dv,fv,U,{isMobile:0,state:3},av)}},W1=Qa;import{noop as pv}from"@vkontakte/videoplayer-shared";function _v(i){let e,t;return e=new W1({props:{isMobile:i[1],state:i[2]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&4&&(r.state=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function hv(i){let e,t,n;function o(l){i[5](l)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[_v]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&16&&(s.ariaLabel=l[4]),a&8&&(s.click=l[3]),a&70&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function gv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:l=pv}=e,a;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"state"in u&&t(2,r=u.state),"click"in u&&t(3,l=u.click)},i.$$.update=()=>{if(i.$$.dirty&4)e:t(4,a=r===mv.CONNECTED?j("tooltip_chromecast_on"):j("tooltip_chromecast_off"))},[n,o,r,l,a,s]}var Ya=class extends K{constructor(e){super(),G(this,e,gv,hv,U,{ref:0,isMobile:1,state:2,click:3})}},Ar=Ya;import{PlaybackState as Za}from"@vkontakte/videoplayer-core";function bv(i){let e,t;return e=new rr({props:{isActive:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function vv(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]===Za.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[bv]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(r.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(r.disabled=n[1]&&n[3]===Za.PLAYING),o&4&&(r.ariaLabel=n[2]),o&16&&(r.click=n[4]),o&514&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function yv(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:r=!1}=e,{ariaLabel:l=""}=e,a=nt(),s=a.state.playbackState$;z(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,r=h.isActiveLive),"ariaLabel"in h&&t(2,l=h.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&10)e:t(4,p=()=>{if(!r){u();return}n===Za.PAUSED&&f()})},[o,r,l,n,p,s]}var Xa=class extends K{constructor(e){super(),G(this,e,yv,vv,U,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Mr=Xa;function kv(i){Ie(i,"svelte-5ygsa2",'.tooltip-wrapper.svelte-5ygsa2{position:relative;display:block}.tooltip.svelte-5ygsa2{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.pointer.svelte-5ygsa2:after{position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px)}.tooltip.active.svelte-5ygsa2{opacity:1;visibility:visible}')}function wv(i){let e,t,n,o,r=i[9].default,l=Pe(r,i,i[8],null);return{c(){e=I("div"),t=I("div"),l&&l.c(),c(t,"class","tooltip svelte-5ygsa2"),q(t,"active",i[0]),q(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),l&&l.m(t,null),i[10](t),i[11](e),o=!0},p(a,[s]){l&&l.p&&(!o||s&256)&&Ee(l,r,a,a[8],o?Te(r,a[8],s,null):Ae(a[8]),null),(!o||s&1)&&q(t,"active",a[0]),(!o||s&2)&&q(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(l,a),o=!0)},o(a){_(l,a),o=!1},d(a){a&&C(e),l&&l.d(a),i[10](null),i[11](null)}}}function Cv(i,e,t){let n,{$$slots:o={},$$scope:r}=e,{active:l=!1}=e,{pointer:a=!1}=e,{translateXPx:s=0}=e,{translateYPx:u=0}=e,{containerWidth:f}=e,p,h;function k(v){if(!h)return 0;let{width:E}=h.getBoundingClientRect(),b=E/2;return v<b?b:v>f-b?f-b:v}function g(v){me[v?"unshift":"push"](()=>{h=v,t(4,h)})}function w(v){me[v?"unshift":"push"](()=>{p=v,t(3,p)})}return i.$$set=v=>{"active"in v&&t(0,l=v.active),"pointer"in v&&t(1,a=v.pointer),"translateXPx"in v&&t(6,s=v.translateXPx),"translateYPx"in v&&t(2,u=v.translateYPx),"containerWidth"in v&&t(7,f=v.containerWidth),"$$scope"in v&&t(8,r=v.$$scope)},i.$$.update=()=>{if(i.$$.dirty&64)e:t(5,n=k(s))},[l,a,u,p,h,n,s,f,r,o,g,w]}var Ja=class extends K{constructor(e){super(),G(this,e,Cv,wv,U,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},kv)}},G1=Ja;var Vr=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function Sv(i){Ie(i,"svelte-l51fc1",".timeline-preview.svelte-l51fc1{bottom:18px;border-radius:2px;pointer-events:none}.timeline-preview.mobile.svelte-l51fc1{bottom:72px}.preview.svelte-l51fc1{margin-bottom:10px;background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white)}.episode.svelte-l51fc1{margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500}.time.svelte-l51fc1{font-size:13px;line-height:16px;text-align:center;color:var(--slider-filled-bg);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500}")}function Q1(i){let e;function t(r,l){return r[2]&&r[10].completed===!1?Pv:Iv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ut()},m(r,l){o.m(r,l),S(r,e,l)},p(r,l){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&C(e),o.d(r)}}}function Iv(i){let e=(i[10].text||"")+"",t;return{c(){t=Ve(e)},m(n,o){S(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&We(t,e)},d(n){n&&C(t)}}}function Pv(i){let e=j("tooltip_episode_unfinished")+"",t;return{c(){t=Ve(e)},m(n,o){S(n,t,o)},p:_e,d(n){n&&C(t)}}}function Y1(i){let e,t;return{c(){e=I("div"),t=Ve(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&&C(e)}}}function Tv(i){let e,t,n,o,r,l,a=i[10]&&Q1(i),s=!i[2]&&Y1(i);return{c(){e=I("div"),t=I("div"),o=D(),r=I("div"),a&&a.c(),l=D(),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(r,"class","episode svelte-l51fc1"),c(e,"class","timeline-preview svelte-l51fc1"),q(e,"mobile",i[1])},m(u,f){S(u,e,f),m(e,t),m(e,o),m(e,r),a&&a.m(r,null),m(e,l),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(r,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&&q(e,"mobile",u[1])},i:_e,o:_e,d(u){u&&C(e),a&&a.d(),s&&s.d()}}}var cl=150;function Ev(i,e,t){let n,{time:o=""}=e,{isMobile:r=!1}=e,{videoEpisodes:l=[]}=e,{previewThumbsData:a}=e,{progress:s=0}=e,{duration:u=0}=e,{isInteractive:f=!1}=e,h=nt().ui.rotateAlpha;z(i,h,O=>t(11,n=O));let k,g,w,v,E,b,y,T;function W(){let O=a.frameWidth,le=a.frameHeight;return O>cl?(le=le/O*cl,O=cl):le>cl&&(O=O/le*cl,le=cl),{width:O,height:le}}function F(O){let le;a.isUV?le=Math.floor(u*O/a.frequency):le=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*O)));let re=Math.floor(le/a.countPerImage),H=Math.floor(le%a.countPerImage/a.countPerRow),A=le%a.countPerRow,J=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&re===Math.floor(a.countTotal/a.countPerImage)&&(J=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&J++);let Y=a.countPerRow;!a.isUV&&re===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(Y=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let ce=k*Y,Z=g*J,oe=-A*k,P=-H*g;return{imgSrc:a.links[re],imgWidth:ce,imgHeight:Z,imgOffsetX:oe,imgOffsetY:P}}i.$$set=O=>{"time"in O&&t(0,o=O.time),"isMobile"in O&&t(1,r=O.isMobile),"videoEpisodes"in O&&t(13,l=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=()=>{if(i.$$.dirty&32768)e:t(5,{imgSrc:w,imgWidth:v,imgHeight:E,imgOffsetX:b,imgOffsetY:y}=F(s),w,(t(6,v),t(15,s)),(t(7,E),t(15,s)),(t(8,b),t(15,s)),(t(9,y),t(15,s)));if(i.$$.dirty&106496)e:t(10,T=Vr(s,u,l))};e:t(3,{width:k,height:g}=W(),k,t(4,g));return[o,r,f,k,g,w,v,E,b,y,T,n,h,l,a,s,u]}var xa=class extends K{constructor(e){super(),G(this,e,Ev,Tv,U,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},Sv)}},Z1=xa;function Av(i){Ie(i,"svelte-5lzly8",".time.svelte-5lzly8{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}")}function Mv(i){let e,t;return{c(){e=I("span"),t=Ve(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:_e,o:_e,d(n){n&&C(e)}}}function Vv(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(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&256&&(r.time=n[8]),o[0]&2048&&(r.isMobile=n[11]),o[0]&16&&(r.videoEpisodes=n[4]),o[0]&512&&(r.progress=n[9]),o[0]&4&&(r.duration=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Lv(i){let e,t,n,o,r=[Vv,Mv],l=[];function a(s,u){return s[15].features.timelinePreview&&s[22]&&!s[1]?0:1}return e=a(i,[-1,-1]),t=l[e]=r[e](i),{c(){t.c(),n=ut()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?l[e].p(s,u):(se(),_(l[f],1,1,()=>{l[f]=null}),ae(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function Rv(i){let e,t,n,o,r,l=[i[10]],a={$$slots:{default:[Lv]},$$scope:{ctx:i}};for(let f=0;f<l.length;f+=1)a=ne(a,l[f]);e=new G1({props:a});function s(f){i[43](f)}let u={isActiveLive:i[12],isMobile:i[11],ariaLabel:j("aria_timeline"),ariaValueMin:0,ariaValueMax:i[2],ariaValueNow:Math.round(i[7]*100),ariaValueText:j("aria_timeline_value",{position:i[6],duration:i[5]}),loadedProgress:i[13],filledProgress:i[7],handleProgress:i[7],videoEpisodes:i[4],onPointerDown:i[29],onHandleMove:i[30],onPointerMove:i[33],onPointerUp:i[31],onPointerEnter:i[32],onPointerLeave:i[34],onDisabledPointerUp:i[27],isInteractive:i[24],disabled:i[14].has("TIMELINE"),hideHandel:i[3]};return i[0]!==void 0&&(u.ref=i[0]),n=new sl({props:u}),me.push(()=>qe(n,"ref",s)),{c(){R(e.$$.fragment),t=D(),R(n.$$.fragment)},m(f,p){V(e,f,p),S(f,t,p),V(n,f,p),r=!0},p(f,p){let h=p[0]&1024?Be(l,[Nc(f[10])]):{};p[0]&2838|p[1]&524288&&(h.$$scope={dirty:p,ctx:f}),e.$set(h);let k={};p[0]&4096&&(k.isActiveLive=f[12]),p[0]&2048&&(k.isMobile=f[11]),p[0]&4&&(k.ariaValueMax=f[2]),p[0]&128&&(k.ariaValueNow=Math.round(f[7]*100)),p[0]&96&&(k.ariaValueText=j("aria_timeline_value",{position:f[6],duration:f[5]})),p[0]&8192&&(k.loadedProgress=f[13]),p[0]&128&&(k.filledProgress=f[7]),p[0]&128&&(k.handleProgress=f[7]),p[0]&16&&(k.videoEpisodes=f[4]),p[0]&16384&&(k.disabled=f[14].has("TIMELINE")),p[0]&8&&(k.hideHandel=f[3]),!o&&p[0]&1&&(o=!0,k.ref=f[0],Ne(()=>o=!1)),n.$set(k)},i(f){r||(d(e.$$.fragment,f),d(n.$$.fragment,f),r=!0)},o(f){_(e.$$.fragment,f),_(n.$$.fragment,f),r=!1},d(f){f&&C(t),L(e,f),L(n,f)}}}function Bv(i,e,t){let n,o,r,l,a,s,u,f,p,h,k,{showTimeline:g=!1}=e,{ref:w=void 0}=e,v=nt(),E=Nt(),b=v.state.bufferedProgress$;z(i,b,Ce=>t(13,h=Ce));let y=v.state.positionWithScrubbing$;z(i,y,Ce=>t(41,s=Ce));let T=v.state.duration$;z(i,T,Ce=>t(2,r=Ce));let W=v.state.isLive$;z(i,W,Ce=>t(1,o=Ce));let F=v.state.isActiveLive$;z(i,F,Ce=>t(12,p=Ce));let O=v.ui.isMobile;z(i,O,Ce=>t(11,f=Ce));let le=E.features.episodes?v.actions.internal.getVideoEpisodes():void 0,re=v.actions.internal.getPreviewThumbsData(),H=v.state.interactiveEpisodes$;z(i,H,Ce=>t(42,u=Ce));let A=v.state.isInteractive,J=v.state.isInteractiveTime$;z(i,J,Ce=>t(3,l=Ce));let Y=v.state.isInteractiveExpectation$;z(i,Y,Ce=>t(40,a=Ce));let ce=v.actions.internal.correctSeekTimeToInteractive,Z=v.callbacks?.onDisabledTimelineClick,oe=v.ui.controls.disabledControls$;z(i,oe,Ce=>t(14,k=Ce));let P,N,Me,Ue,Ge=!1,Qe="",Le=0,be=0,x=0,Se;function $e(Ce){return!ce||!A?Ce:ce(Ce*r)/r}function He(Ce){v.actions.internal.startScrubbing($e(Ce))}function it(Ce){l||v.actions.internal.progressScrubbing($e(Ce))}function we(Ce){v.actions.internal.completeScrubbing($e(Ce)),t(36,Ge=!1)}function Ye(Ce,pe,Oe){Ke(Ce,pe,Oe),t(36,Ge=!0)}function ot(Ce,pe,Oe){Ke(Ce,pe,Oe),t(36,Ge=!0)}function je(){t(36,Ge=!1)}function Ke(Ce,pe,Oe){t(9,x=$e(Ce)),t(37,Le=pe),Oe&&t(38,be=Oe),t(8,Qe=Xe(Ce))}function Xe(Ce){let pe=En((o?1-Ce:Ce)*r);return o?`-${pe}`:pe}function fe(Ce){w=Ce,t(0,w)}return i.$$set=Ce=>{"showTimeline"in Ce&&t(35,g=Ce.showTimeline),"ref"in Ce&&t(0,w=Ce.ref)},i.$$.update=()=>{if(i.$$.dirty[1]&2048)e:t(4,P=A?u:le);if(i.$$.dirty[0]&4)e:t(5,N=En(r));if(i.$$.dirty[1]&1024)e:t(6,Me=En(s));if(i.$$.dirty[0]&4|i.$$.dirty[1]&1024)e:t(7,Ue=s/r);if(i.$$.dirty[0]&8|i.$$.dirty[1]&512)e:t(39,Se=a||l);if(i.$$.dirty[0]&2|i.$$.dirty[1]&496)e:t(10,n={containerWidth:be,translateXPx:Le,translateYPx:A&&re?-36:-16,active:Ge&&g&&!Se,pointer:!E.features.timelinePreview||!re||o})},[w,o,r,l,P,N,Me,Ue,Qe,x,n,f,p,h,k,E,b,y,T,W,F,O,re,H,A,J,Y,Z,oe,He,it,we,Ye,ot,je,g,Ge,Le,be,Se,a,s,u,fe]}var $a=class extends K{constructor(e){super(),G(this,e,Bv,Rv,U,{showTimeline:35,ref:0},Av,[-1,-1])}},X1=$a;function Dv(i){let e,t;return e=new sl({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:j("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.ariaValueMax=n[0]),o&8&&(r.ariaValueNow=Math.round(n[3]*100)),o&6&&(r.ariaValueText=j("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(r.filledProgress=n[3]),o&16&&(r.squareBorders=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Nv(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=nt().ui.isMobile;z(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,r=p.duration)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(1,s=En(r));if(i.$$.dirty&64)e:t(2,u=En(o));if(i.$$.dirty&65)e:t(3,f=o/r)},[r,s,u,f,n,a,o]}var eu=class extends K{constructor(e){super(),G(this,e,Nv,Dv,U,{position:6,duration:0})}},Lr=eu;function qv(i){Ie(i,"svelte-1gqonyf",".timeline.svelte-1gqonyf{position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box}.timeline.mobile.svelte-1gqonyf{height:16px;padding:6px 12px 7px;margin-top:6px}.timeline-stub.svelte-1gqonyf{width:100%;min-width:20px}.timeline-stub.mobile.svelte-1gqonyf{height:8px}")}function Ov(i){let e;return{c(){e=I("div"),c(e,"class","timeline-stub svelte-1gqonyf"),q(e,"mobile",i[3])},m(t,n){S(t,e,n)},p(t,n){n&8&&q(e,"mobile",t[3])},i:_e,o:_e,d(t){t&&C(e)}}}function Fv(i){let e,t,n,o,r=[zv,Hv],l=[];function a(s,u){return s[1]?0:1}return t=a(i,-1),n=l[t]=r[t](i),{c(){e=I("div"),n.c(),c(e,"class","timeline svelte-1gqonyf"),q(e,"mobile",i[3])},m(s,u){S(s,e,u),l[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?l[t].p(s,u):(se(),_(l[f],1,1,()=>{l[f]=null}),ae(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null)),(!o||u&8)&&q(e,"mobile",s[3])},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&C(e),l[t].d()}}}function Hv(i){let e,t,n;function o(l){i[14](l)}let r={showTimeline:i[2]};return i[0]!==void 0&&(r.ref=i[0]),e=new X1({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a&4&&(s.showTimeline=l[2]),!t&&a&1&&(t=!0,s.ref=l[0],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function zv(i){let e,t;return e=new Lr({props:{position:i[4],duration:i[5]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.position=n[4]),o&32&&(r.duration=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Uv(i){let e,t,n,o,r=[Fv,Ov],l=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ut()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?l[e].p(s,u):(se(),_(l[f],1,1,()=>{l[f]=null}),ae(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function Kv(i,e,t){let n,o,r,l,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:f=!1}=e,{ref:p=void 0}=e,h=nt(),k=h.state.isLive$;z(i,k,y=>t(13,n=y));let g=h.ads.duration;z(i,g,y=>t(5,l=y));let w=h.ads.position;z(i,w,y=>t(4,r=y));let v=h.ui.isMobile;z(i,v,y=>t(3,o=y));let E;function b(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=()=>{if(i.$$.dirty&15362)e:t(2,E=!f&&(!n||n&&s&&u||a))},[p,a,E,o,r,l,k,g,w,v,s,u,f,n,b]}var tu=class extends K{constructor(e){super(),G(this,e,Kv,Uv,U,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},qv)}},Rr=tu;import{noop as Yv}from"@vkontakte/videoplayer-shared";function jv(i){let e,t,n,o,r,l=i[2].default,a=Pe(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=B("svg"),a&&a.c(),t=B("path"),n=B("path"),o=B("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"),ge(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,t),m(e,n),m(e,o),r=!0},p(f,[p]){a&&a.p&&(!r||p&2)&&Ee(a,l,f,f[1],r?Te(l,f[1],p,null):Ae(f[1]),null),ge(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){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&C(e),a&&a.d(f)}}}function Wv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var iu=class extends K{constructor(e){super(),G(this,e,Wv,jv,U,{})}},J1=iu;function Gv(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function Qv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var nu=class extends K{constructor(e){super(),G(this,e,Qv,Gv,U,{})}},x1=nu;function Zv(i){Ie(i,"svelte-1yhs2ga",".text.svelte-1yhs2ga{padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text.count.svelte-1yhs2ga{overflow:visible}.text.mobile.svelte-1yhs2ga{padding:0 3px 0 4px}.chevron-episodes.svelte-1yhs2ga{margin-bottom:-4px}")}function Xv(i){let e,t,n,o;e=new J1({});function r(s,u){if(s[4]==="FULL")return $v;if(s[4]==="COUNT")return xv}let l=r(i,-1),a=l&&l(i);return{c(){R(e.$$.fragment),t=D(),a&&a.c(),n=ut()},m(s,u){V(e,s,u),S(s,t,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){l===(l=r(s,u))&&a?a.p(s,u):(a&&a.d(1),a=l&&l(s),a&&(a.c(),a.m(n.parentNode,n)))},i(s){o||(d(e.$$.fragment,s),o=!0)},o(s){_(e.$$.fragment,s),o=!1},d(s){s&&(C(t),C(n)),L(e,s),a&&a.d(s)}}}function Jv(i){let e,t,n,o,r,l;return r=new x1({}),{c(){e=I("span"),t=Ve(i[2]),n=D(),o=I("div"),R(r.$$.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),V(r,o,null),l=!0},p(a,s){(!l||s&4)&&We(t,a[2])},i(a){l||(d(r.$$.fragment,a),l=!0)},o(a){_(r.$$.fragment,a),l=!1},d(a){a&&(C(e),C(n),C(o)),L(r)}}}function xv(i){let e,t=i[0].length+"",n;return{c(){e=I("span"),n=Ve(t),c(e,"class","text count svelte-1yhs2ga")},m(o,r){S(o,e,r),m(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&We(n,t)},d(o){o&&C(e)}}}function $v(i){let e,t;return{c(){e=I("span"),t=Ve(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&&C(e)}}}function e4(i){let e,t,n,o,r=[Jv,Xv],l=[];function a(s,u){return s[6]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ut()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?l[e].p(s,u):(se(),_(l[f],1,1,()=>{l[f]=null}),ae(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function t4(i){let e,t,n;function o(l){i[19](l)}let r={className:"w-max btn-full-opacity "+(i[6]?"px-0":""),testId:"btn-episodes",click:i[12],disabled:!i[7],ariaExpanded:i[3],ariaLabel:i[5],$$slots:{default:[e4]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new pt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&64&&(s.className="w-max btn-full-opacity "+(l[6]?"px-0":"")),a&8&&(s.ariaExpanded=l[3]),a&32&&(s.ariaLabel=l[5]),a&8388693&&(s.$$scope={dirty:a,ctx:l}),!t&&a&2&&(t=!0,s.ref=l[1],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function i4(i,e,t){let n,o,r,l,a,s,{position:u=0}=e,{duration:f=0}=e,{timeCodes:p=[]}=e,h=nt(),k=h.callbacks?.onEpisodeChanged??Yv,g=!!h.callbacks?.onEpisodeClicked,w=h.ui.currentGridType$;z(i,w,H=>t(18,a=H));let v=h.ui.episodes.openedByKeyboard$;z(i,v,H=>t(17,l=H));let E=h.ui.episodes.panelOpened$;z(i,E,H=>t(3,r=H));let b=h.ui.isMobile;z(i,b,H=>t(6,s=H));let y,T=H=>{if(!!h.callbacks?.onEpisodeClicked){let J=tl(H);v.set(J),E.set(!0),h.callbacks?.onEpisodeClicked?.(J)}},W,F,O,le=async(H,A,J)=>{await zn(),H?.getAttribute("aria-expanded")==="false"&&A&&!J&&(v.set(!1),H.focus())};function re(H){y=H,t(1,y)}return i.$$set=H=>{"position"in H&&t(13,u=H.position),"duration"in H&&t(14,f=H.duration),"timeCodes"in H&&t(0,p=H.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576)e:t(16,n=u/f);if(i.$$.dirty&114689)e:{let H=Vr(n,f,p);H&&W?.text!==H.text&&(k(H),t(15,W=H))}if(i.$$.dirty&32768)e:t(2,o=W?.text||"");if(i.$$.dirty&262144)e:An(a,"xl")?t(4,F="FULL"):An(a,"m")&&L1(a,"xl")?t(4,F="COUNT"):t(4,F="SHORT");if(i.$$.dirty&4)e:t(5,O=`${j("tooltip_episodes")}: ${o}`);if(i.$$.dirty&131082)e:le(y,l,r)},[p,y,o,r,F,O,s,g,w,v,E,b,T,u,f,W,n,l,a,re]}var ou=class extends K{constructor(e){super(),G(this,e,i4,t4,U,{position:13,duration:14,timeCodes:0},Zv)}},Br=ou;function n4(i){let e,t,n,o,r=i[2].default,l=Pe(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),n=B("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"),ge(e,s)},m(u,f){S(u,e,f),l&&l.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ee(l,r,u,u[1],o?Te(r,u[1],f,null):Ae(u[1]),null),ge(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(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function o4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var lu=class extends K{constructor(e){super(),G(this,e,o4,n4,U,{})}},$1=lu;function l4(i){let e,t;return e=new $1({}),{c(){R(e.$$.fragment)},m(n,o){V(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 r4(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:j("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[l4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&8&&(s.click=l[3]),a&32&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function s4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:l}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,r=s.disabled),"click"in s&&t(3,l=s.click)},[n,o,r,l,a]}var ru=class extends K{constructor(e){super(),G(this,e,s4,r4,U,{ref:0,hidden:1,disabled:2,click:3})}},Dr=ru;function a4(i){let e,t,n,o,r=i[2].default,l=Pe(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),n=B("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"),ge(e,s)},m(u,f){S(u,e,f),l&&l.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ee(l,r,u,u[1],o?Te(r,u[1],f,null):Ae(u[1]),null),ge(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(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function u4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var su=class extends K{constructor(e){super(),G(this,e,u4,a4,U,{})}},em=su;function c4(i){Ie(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function f4(i){let e,t;return e=new em({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function d4(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var au=class extends K{constructor(e){super(),G(this,e,d4,f4,U,{isOpened:0},c4)}},tm=au;function m4(i){let e,t;return e=new tm({props:{isOpened:i[3]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.isOpened=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function p4(i){let e,t,n;function o(l){i[6](l)}let r={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[m4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&32&&(s.ariaLabel=l[5]),a&16&&(s.click=l[4]),a&136&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function _4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{graphIsOpened:l=!1}=e,{click:a}=e,s;function u(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,r=f.disabled),"graphIsOpened"in f&&t(3,l=f.graphIsOpened),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(5,s=l?j("tooltip_interactive_graph_on"):j("tooltip_interactive_graph_off"))},[n,o,r,l,a,s,u]}var uu=class extends K{constructor(e){super(),G(this,e,_4,p4,U,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Nr=uu;function h4(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function g4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var cu=class extends K{constructor(e){super(),G(this,e,g4,h4,U,{})}},qr=cu;import{noop as b4}from"@vkontakte/videoplayer-shared";function v4(i){Ie(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function im(i){let e;return{c(){e=I("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){S(t,e,n)},d(t){t&&C(e)}}}function y4(i){let e,t,n,o,r=i[1]&&im(i);return n=new qr({}),{c(){r&&r.c(),e=D(),t=I("div"),R(n.$$.fragment),c(t,"class","svelte-1ot3duq"),q(t,"mobile",i[1])},m(l,a){r&&r.m(l,a),S(l,e,a),S(l,t,a),V(n,t,null),o=!0},p(l,a){l[1]?r||(r=im(l),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!o||a&2)&&q(t,"mobile",l[1])},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){_(n.$$.fragment,l),o=!1},d(l){l&&(C(e),C(t)),r&&r.d(l),L(n)}}}function k4(i){let e,t,n;function o(l){i[5](l)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:j("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:jn.KeyK,$$slots:{default:[y4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&10&&(s.className=(l[1]?"btn-m--play":"")+" "+l[3]),a&4&&(s.disabled=l[2]),a&16&&(s.click=l[4]),a&66&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function w4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:l=""}=e,{click:a=b4}=e;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"disabled"in u&&t(2,r=u.disabled),"className"in u&&t(3,l=u.className),"click"in u&&t(4,a=u.click)},[n,o,r,l,a,s]}var fu=class extends K{constructor(e){super(),G(this,e,w4,k4,U,{ref:0,isMobile:1,disabled:2,className:3,click:4},v4)}},Il=fu;function C4(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function S4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var du=class extends K{constructor(e){super(),G(this,e,S4,C4,U,{})}},nm=du;function I4(i){let e,t;return e=new nm({}),{c(){R(e.$$.fragment)},m(n,o){V(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 P4(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:j("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[I4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&8&&(s.click=l[3]),a&32&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function T4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:l}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,r=s.disabled),"click"in s&&t(3,l=s.click)},[n,o,r,l,a]}var mu=class extends K{constructor(e){super(),G(this,e,T4,P4,U,{ref:0,hidden:1,disabled:2,click:3})}},Or=mu;import{noop as om}from"@vkontakte/videoplayer-shared";function E4(i){Ie(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 A4(i){let e,t,n,o;return{c(){e=I("img"),c(e,"class","icon svelte-1x1zctw"),cs(e.src,t=i[0])||c(e,"src",t),c(e,"aria-hidden","true")},m(r,l){S(r,e,l),n||(o=de(e,"error",i[7]),n=!0)},p(r,l){l&1&&!cs(e.src,t=r[0])&&c(e,"src",t)},d(r){r&&C(e),n=!1,o()}}}function M4(i){let e;return{c(){e=I("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:_e,d(t){t&&C(e)}}}function V4(i){let e;function t(r,l){return r[5]?M4:A4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ut()},m(r,l){o.m(r,l),S(r,e,l)},p(r,l){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&C(e),o.d(r)}}}function L4(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:[V4]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&16&&(r.className=n[4]?"btn-full-opacity":""),o&2&&(r.ariaLabel=n[1]),o&8&&(r.click=n[3]),o&64&&(r.disabled=n[6]),o&4&&(r.testId=n[2]),o&545&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function R4(i,e,t){let n,o,r,{iconUrl:l}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:f=om}=e,p=()=>{t(5,r=!0)};i.$$set=h=>{"iconUrl"in h&&t(0,l=h.iconUrl),"ariaLabel"in h&&t(1,a=h.ariaLabel),"disabled"in h&&t(8,s=h.disabled),"testId"in h&&t(2,u=h.testId),"onClick"in h&&t(3,f=h.onClick)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(4,n=f===om);if(i.$$.dirty&272)e:t(6,o=n||s)};e:t(5,r=!1);return[l,a,u,f,n,r,o,p,s]}var pu=class extends K{constructor(e){super(),G(this,e,R4,L4,U,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},E4)}},Fr=pu;import{throttleFn as a3}from"@vkontakte/videoplayer-shared";import{ChromecastState as F4,PlaybackState as Pl,Player as H4,VideoFormat as Tl}from"@vkontakte/videoplayer-core";import"@vkontakte/videoplayer-shared";import{assertNonNullable as Wn,getCurrentBrowser as z4,getHighestQuality as U4,InterfaceLanguage as K4,isIOS as j4,isNonNullable as W4,loadVKLangPack as G4,Logger as Q4,map as Y4,merge as Z4,Observable as X4,Subject as Kr,Subscription as yu,ValueSubject as J4,VideoQuality as ku}from"@vkontakte/videoplayer-shared";import{SeekAction as co}from"@vkontakte/videoplayer-statistics";import"@vkontakte/videoplayer-interactive";import{addScript as B4,assertNonNullable as qi,Subject as Ho}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 D4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Hr=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 Ho,started$:new Ho,paused$:new Ho,resumed$:new Ho,ended$:new Ho,skipped$:new Ho,clicked$:new Ho};this.loadAdman=e=>new Promise((t,n)=>{let o,r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};B4(D4,e,this.loadTimeout).then(()=>{window.AdmanHTML?t():(window.admanAsyncInit=r,o=window.setTimeout(r,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};this.onAdStarted=(e,t)=>{qi(this.adsState),qi(this.playerState),qi(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.onAdTimeRemained=({currentTime:e})=>{qi(this.adsState),this.adsState.position.set(e)};this.onAdPaused=()=>{qi(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{qi(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing")};this.onAdMidrollPoint=()=>{qi(this.adman),qi(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.adman.start("midroll")};this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.switchToVideo()};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo()};this.onAdClicked=()=>{this.log({message:"ad clicked"}),this.videoElement?.pause(),this.events.clicked$.next()};this.onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0)};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout}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){let{width:t,height:n,isFullscreen:o,isAutoplay:r,adsContainer:l,adsVideoElement:a,slotId:s,params:u={},duration:f,previewParam:p}=e,h,k=this.playerState&&xe(this.playerState.vsid);k&&(h=parseInt(k,36));let g={dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:lm(t,n),puid11:o?0:1,preview:p,...h?{request_id:h}:{},duration:f,...u},w={slot:s,wrapper:l,videoEl:a,videoQuality:n,params:g,browser:{mobile:!1}},v=new window.AdmanHTML;v.setDebug(!1),v.onReady(this.onAdsReady),v.onStarted(this.onAdStarted),v.onPlayed(this.onAdPlayed),v.onPaused(this.onAdPaused),v.adMidrollPoint(this.onAdMidrollPoint),v.onClosed(this.onAdClosed),v.onSkipped(this.onAdSkipped),v.onClicked(this.onAdClicked),v.onTimeRemained(this.onAdTimeRemained),v.onCompleted(this.onAdCompleted),v.onError(this.onAdError),v.init(w),this.adman=v,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(w)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}qi(this.actions),qi(this.adsState),qi(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(){qi(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){this.log({message:`set volume ${e}`}),this.adman?.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){this.log({message:`set fullscreen ${e}`}),this.adman?.setFullscreen(e)}startPreroll(){qi(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.adman.start("preroll")}startPostroll(){qi(this.adman),qi(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.adman.start("postroll")}play(){qi(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){qi(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){qi(this.adman),this.log({message:"ad skip"}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,t){this.adman?.setPosition(Math.floor(e),Math.floor(t))}destroy(){this.log({message:"destroy"}),this.adman?.destroy()}};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 _u=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let t=[],n=e.split(this.twoLinesRegExp);for(let o of n){let r={startTime:0,endTime:0,texts:[],lang:""},l=o.split(this.oneLineRegExp);for(let a of l)if(!r.startTime&&!r.endTime){let s=new zr,{startTime:u,endTime:f}=s.parse(a);r.startTime=u,r.endTime=f}else if(a.trim()!==""){let s=new hu,{texts:u}=s.parse(a);r.texts=[...r.texts,...u]}(r.startTime||r.endTime)&&r.texts.length>0&&t.push(r)}return t}},zr=class{constructor(){this.timeRegExp=/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let t={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(t.startTime=this.calcTime(n[1],n[2],n[3],n[4]),t.endTime=this.calcTime(n[6],n[7],n[8],n[9])),t}parseTime(e){let t=this.timeRegExp.exec(e);return t?this.calcTime(t[1],t[2],t[3],t[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",t="0",n="0",o="0"){let r=Number(e)*60*60,l=Number(t)*60,a=Number(n),s=+`0.${o}`;return r+l+a+s}},hu=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let a=0,s=[];for(;a<l.length;){let u=["<",">"].reduce((f,p)=>{let h=l.indexOf(p,a);return f===-1||f>h?h:f},-1);if(u===-1){s.push(l.substring(a));break}s.push(l.substring(a,u)),a=u+1}return s}}),r=new zr;for(let l of o)r.isTime(l)?t.texts.push({type:"timestamp",value:r.parseTime(l)}):t.texts.push({type:"text",value:l});return t}},sm=_u;import{isNonNullable as gu}from"@vkontakte/videoplayer-shared";var uo,Dn,bu=0,vu=!1,am=(i,e,t)=>{let n=i>=bu,o=i<bu,r=(u,f=0,p=0)=>u<f&&u<p,l=(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(bu=i,o&&(vu=!1),gu(uo)&&l(i,uo.startTime,uo.endTime)&&uo.lang===e.value)return uo;if(!gu(Dn)&&s?.length&&!vu){let u=s.find(({startTime:f,endTime:p})=>l(i,f,p)||n&&r(i,f,p));Dn=u&&{...u,lang:e.value},uo=void 0,!gu(Dn)&&s[s.length-1].endTime<i&&(vu=!0);return}else{if(l(i,Dn?.startTime,Dn?.endTime))return uo=Dn,Dn=void 0,uo;(n&&a(i,Dn?.startTime,Dn?.endTime)||o&&r(i,Dn?.startTime,Dn?.endTime))&&(Dn=void 0)}};import{Subscription as N4}from"@vkontakte/videoplayer-shared";import{OneStat as q4}from"@vkontakte/videoplayer-statistics";var Ur=class{constructor(e,t){this.oneStat=new q4(e,t),this.statSubscription=new N4}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var um=({interfaceLanguage:i,videoId:e,isClip:t,isLiveCatchUpMode:n,statAuthToken:o,isAudioDisabled:r,canDownload:l,callbacks:a,webApi:s,videoEpisodes:u,previewThumbsData:f,uiConfig:p,coreConfig:h,player:k,disabledControls:g,isInteractive:w,interactiveRanges$:v,isInteractiveTime$:E,replayInteractive:b,hasInteractiveBranches:y,playPrevChapterDisabledTooltip:T,additionalButtons:W,looped:F=!1,statistics:O,saveRate:le})=>{let re={...h,configName:[...h.configName??[],"ui"],isAudioDisabled:r,live:{...h.live??{},isLiveCatchUpMode:!!n}},H=p,A=k||new H4(re),J=new Q4,Y=new Hr(J,{loadTimeout:H.ads.loadTimeout,initTimeout:H.ads.initTimeout}),ce=Mo.getInstance(),Z=s?.pictureInPictureApi,oe=s?.annotationsApi,P=J.createComponentLog("Store"),N,Me,Ue={},Ge=z4(),Qe=O?yt(O.oneStat.vsid$):Tn(void 0),Le=De(oo()),be=Z?.info.isActive$??new J4(!1),x=Z?.info.type,Se=De(0),$e=De([]),He=Z4(A.events.fatalError$,A.events.managedError$).subscribe(M=>$e.update(ue=>[...ue,M])),it=Tn(!1,M=>{let ue=A.events.fatalError$.subscribe(()=>M(!0));return()=>ue.unsubscribe()}),we=async M=>{let ue=Object.values(K4).includes(M);if(H.downloadVKLanguages&&(ue&&H.updateBuiltinLanguages||!Ss(M))){let Je;try{Je=await G4(M,zc,Uc)}catch(ct){O?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),ce?.report(ct,{errorType:"VKLangPack",fatal:!1})}Je&&(Cs({language:M,pack:Je,fallback:H.defaultLanguage}),Ye.set(M))}Ss(M)&&Ye.set(M)},Ye=De(i);we(i);let ot=(M,ue)=>{let Re=xe(Ye);return Is(Re,M,ue,H.defaultLanguage)},je=De("thumb"),Ke=(()=>{let M=Ii([it,je],([ue,Re])=>ue?"crashed":Re);return{...M,is:ue=>xe(M)===ue}})(),Xe=(()=>{let M=De(new Set(g));return{...M,add:ue=>{M.update(Re=>new Set([...Re].concat(ue)))},remove:ue=>{M.update(Re=>{let Je=[...Re];return new Set(Array.isArray(ue)?Je.filter(ct=>!ue.includes(ct)):Je.filter(ct=>ct!==ue))})},includes:ue=>{let Re=xe(M);return Array.isArray(ue)?ue.every(Je=>Re.has(Je)):Re.has(ue)}}})();P({message:"create store"});let fe=M=>{let ue=M.container;ue.append(A.experimental.element$.getValue()),ye=new MutationObserver(Re=>{let{removedNodes:Je}=Re[0];Je.length&&ue.append(A.experimental.element$.getValue())}),ye.observe(ue,{childList:!0})},Ce=M=>{P({message:`init video, config: ${JSON.stringify(M)}`}),w?fe(M):A.initVideo(M),M.subtitles&&A.setExternalTextTracks(M.subtitles),N=M},pe=new Kr,Oe=M=>pe.next(M),ee=new Kr,ke=new Kr,rt=new Kr,ye=null,dt={actionRewind$:ee,actionSeek$:ke,inPiP$:be,inFullscreen$:new X4(M=>Le.subscribe(ue=>M.next(ue))),actionSetSubtitle$:rt,nextMovie$:pe};if(O){let{oneStat:M,statSubscription:ue}=O;ue.add(M.attachTo(A)),ue.add(M.attachToUi(dt)),ue.add(M.attachToAds(Y.events)),M.authorize(o).catch(Re=>{P({message:`onestat auth error ${String(Re)}`})})}if(ce){let M=new yu,ue=(Re,Je)=>M.add(Re.subscribe(Je));if(ue(A.events.managedError$,Re=>{ce.logIError(Re)}),ue(A.events.fatalError$,Re=>{ce.logIError(Re,!0)}),O){let{oneStat:Re}=O;ue(Re.experimental.error$,Je=>{ce.logIError(Je)})}ce.sentrySubscription.add(M)}let Fe=()=>{j4()&&Me&&Sf(Me)},mt=new yu().add(A.experimental.element$.subscribe(M=>{M&&(Me=M,M.classList.add("player-media"),Lo(Z)&&(Z.updateVideoElement(),Z.registryEventHandlers()),w&&M.setAttribute("pip","false"))})).add(A.events.ended$.subscribe(()=>{Fe(),a?.onEnded?.()})).add(A.events.started$.subscribe(async()=>{Lo(Z)&&await Z?.revealPictureInPicture();let M=A.info.muted$.getValue();a?.onStarted?.(),Ue.onStarted?.(M)})).add(A.events.willSeek$.subscribe(({from:M,to:ue})=>{a?.onSeek?.(M,ue)})).add(A.info.position$.subscribe(M=>{let ue=A.info.duration$.getValue();a?.onTimeupdate?.(ue,M),Y.setPosition(M,ue)})).add(A.events.fatalError$.subscribe(()=>{a?.onCrashed?.()})).add(A.events.firstBytes$.subscribe(()=>{vt.state.isFirstBytes$.set(!0)})).add(A.info.is3DVideo$.subscribe(M=>{vt.ui.is3DVideo.set(M)})).add(A.info.isEnded$.subscribe(M=>{w&&(M?(E?.getValue()&&Xe.add(jl),Xe.add("PLAY_BUTTON")):Xe.remove("PLAY_BUTTON"))})).add(A.info.liveTime$.subscribe(M=>{a?.onLiveTime?.(M)})).add(A.info.isStalled$.subscribe(M=>{a?.onStalledChanged?.(M)})).add(Y.events.started$.subscribe(()=>{a?.adsInfo?.onStarted?.()})).add(Y.events.ended$.subscribe(()=>{a?.adsInfo?.onCompleted?.()})),kt=new yu,Tt=()=>{kt.add(A.events.log$.subscribe(M=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${M.component}`,M.message)})).add(J.log$.subscribe(M=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${M.component}.`,M.message)}))},Ze=()=>{kt.unsubscribe()},qt=(M,ue)=>{A.startCameraManualRotation(M,ue)},Vt=(M=!1)=>{A.stopCameraManualRotation(M)},Ct=(M,ue,Re)=>{A.moveCameraFocusPX(M,ue,Re)},si=()=>{A.holdCamera()},st=()=>{A.releaseCamera()},gt=Tn(A.info.position$.getValue(),M=>{let ue,Re,Je=()=>{let ct=A.info.playbackState$.getValue(),li=A.info.isLive$.getValue(),Ji=A.info.duration$.getValue(),ri=A.info.position$.getValue();if([Pl.PLAYING,Pl.PAUSED].includes(ct)){let On=li?ri-Ji:A.getExactTime();On!==Re&&M(On),Re=On}ue=requestAnimationFrame(Je)};return Je(),()=>cancelAnimationFrame(ue)}),ve=yt(be),_t=yt(A.info.playbackState$),St=yt(A.info.currentBuffer$),Jt=yt(A.info.isEnded$),bt=yt(A.info.isLive$),zt=H.features.playbackRate?yt(A.info.canChangePlaybackSpeed$):Tn(!1),Ut=yt(A.info.liveBufferTime$),Kt=yt(A.info.volume$),Oi=yt(A.info.muted$),xi=hs(A.info.autoQualityLimits$.pipe(Y4(({max:M})=>M!==void 0)),A.info.autoQualityLimits$.getValue()?.max!==void 0),xt=yt(A.info.autoQualityLimitingAvailable$),Pi=yt(A.info.availableQualities$),an=yt(A.info.availableQualitiesFps$),hi=yt(A.info.chromecastState$),$i=yt(A.info.chromecastDeviceName$),ai=yt(A.info.currentFormat$),Ti=yt(A.info.throughputEstimation$),ui=yt(A.info.videoBitrate$),gi=yt(A.info.intrinsicVideoSize$),ci=yt(A.info.duration$),bi=yt(A.info.isAudioAvailable$),Lt=null,Gt=A.info.isBuffering$,en=Tn(Gt.getValue(),M=>{let ue=Gt.subscribe(Re=>{Re&&Lt===null?Lt=window.setTimeout(()=>{M(Gt.getValue()),Lt=null},H.loaderDelay):M(Re)});return()=>{ue.unsubscribe(),Lt&&clearTimeout(Lt)}}),Fi=()=>{Lt&&clearTimeout(Lt),Lt=null},$t=Ii([ci,bt],([M,ue])=>ue?-M:M),vi=Ii([_t],([M])=>M===Pl.PLAYING),Hi=yt(A.info.atLiveEdge$),Ei=yt(A.info.atLiveDurationEdge$),Et=yt(A.info.position$),tn=Ii([Et,ci],([M,ue])=>isFinite(M)&&isFinite(ue)&&!!ue),Qt=Ii([hi],([M])=>M===F4.CONNECTED),Ai=yt(A.info.availableVideoStreams$),zi=H.features.audioLanguages?yt(A.info.availableAudioStreams$):Tn([]),Ui=yt(A.info.currentVideoStream$),jt=yt(A.info.currentAudioStream$),fi=M=>{M.language&&ks(M.language),A.setVideoStream(M)},di=M=>{M.language&&ks(M.language),A.setAudioStream(M)},ei=M=>{let ue;if(M.length===1&&(ue=M.at(0)),ue??=M.find(Je=>"isDefault"in Je&&Je.isDefault),ue)return ue;let Re=pf();return Re&&(ue=M.find(({language:Je})=>Re===Je)),ue??=M.at(0),ue},Yt=!1;mt.add(A.info.availableAudioStreams$.subscribe(M=>{if(!Yt&&M.length){let ue=ei(M);ue&&(A.setAudioStream(ue),Yt=!0)}}));let At=!1;mt.add(A.info.availableVideoStreams$.subscribe(M=>{if(!At&&M.length){let ue=ei(M);ue&&(A.setVideoStream(ue),At=!0)}}));let ti=De(void 0),Mi=yt(A.info.isAutoQualityEnabled$,M=>M&&ti.set(void 0)),yi=yt(A.info.currentQuality$,()=>ti.set(void 0)),Zt=Ii([ti,yi],([M,ue])=>M??ue),ii=Ii([Pi,an,Mi,Zt,ai],([M,ue,Re,Je,ct])=>{let li=[];ct!==Tl.MPEG&&li.push({value:"auto",displayValue:ot("auto_quality_option"),selected:Re});let Ji=M.filter(ri=>ri!==ku.INVARIANT);for(let ri of Ji){let On=ue[ri],wo=ri===ku.INVARIANT?ot("auto_quality_option"):ri;li.push({value:ri,displayValue:`${wo}${On?rm(On):""}`,selected:Re?!1:ri===Je})}return li}),Ki=yt(A.info.currentPlaybackRate$),ji=Ii([Ki,Hi,Ei],([M,ue,Re])=>{let Je=Re||w?1:H.controls.playbackRateMin,ct=ue?1:H.controls.playbackRateMax,li=H.controls.playbackRateStep,Ji=[];for(let ri=Je;ri<=ct;ri+=li)Ji.push({value:ri,displayValue:ri===1?ot("playback_rate_1"):ot("playback_rate",{multiplier:ri.toString(10)}),selected:M===ri});return Ji}),un=H.features.subtitles?yt(A.info.availableTextTracks$):Tn([]),Wi=Ii([un],([M],ue)=>{let Re=[],Je=[];for(let ct of M)ct.url&&Re.push(fetch(ct.url));Promise.allSettled(Re).then(ct=>{for(let[li,Ji]of ct.entries())Ji.status==="fulfilled"&&Ji.value.text().then(ri=>{let On=new sm,wo=M[li].language,Bl=!!M[li].isAuto,Co=On.parse(ri);wo&&Co&&Je.push({lang:wo,subtitles:Co,isAuto:Bl}),li===ct.length-1&&ue(Je)})})}),Rt={displayValue:ot("subtitles_off"),value:"off"},Bt=De({...Rt}),ki=Ii([Wi,Bt,Wi],([M,ue])=>{if(M?.length>0){let Re=[{...Rt,selected:ue?.value===Rt.value}];for(let{lang:Je,isAuto:ct}of M)qo[Je]&&Re.push({displayValue:ct?ot("subtitles_auto",{language:qo[Je]}):qo[Je],value:Je,selected:ue?.value===Je,isAuto:ct});return Re}else return[]}),ni=Ii([gt,Bt,Wi],([M,ue,Re])=>{if(ue&&ue.value!==Rt.value)return am(M,ue,Re)}),Gi=Ii([ni],([M])=>M?.texts?M.texts:[]),Vi=De(!0),nn=Ii([St,$t,Et,Ut],([M,ue,Re,Je])=>{let ct=M?.end??0;if(!Je)return ct/ue;let Ji=-Re+Je-ue;return(ct-Ji)/ue}),wi=yt(A.info.availableSources$),Li=Ii([wi],([M])=>Object.keys(M?.[Tl.MPEG]||{}).length>0),tt=()=>{let M=Object.keys(A.info.availableSources$?.getValue()?.[Tl.MPEG]||{}),ue=U4(M)||ku.Q_144P;return N.sources[Tl.MPEG]?.[ue]},oi=()=>{let M=tt();M?$c(M,N?.meta?.title||"video"):P({message:"There is no URL for download video"})},Xt=()=>{P({message:"toggle muted"});let M=A.info.muted$.getValue(),Je=!(A.info.volume$.getValue()===0||M);Bi(Je)},ze=()=>{vt.ui.settingsMenuVisible.set(!1)},Ri=M=>{vt.ui.settingsMenuOpenedByKeyboard.set(!!M),vt.ui.settingsMenuVisible.set(!0)},cn=M=>{xe(vt.ui.settingsMenuVisible)?ze():Ri(M)},Qi=(M,ue=M,Re=!1)=>{let Je=!Re,ct=A.info.muted$.getValue();P({message:`set volume, volume: ${M}, preferredVolume: ${ue}, internalCall: ${Je}`}),A.setVolume(M),Y.setVolume(M),Je&&a?.onVolumeChange?.(M),vs(ue),ct?(A.setMuted(!1),Je&&a?.onUnmute?.(),Yl(!1)):!ct&&M===0&&(A.setMuted(!0),Je&&a?.onMute?.(),Yl(!0))},Bi=(M,ue=!1)=>{let Re=!ue,Je=A.info.volume$.getValue();if(P({message:`set muted, currentVolume: ${Je}, mute: ${M}, internalCall: ${Re}`}),A.setMuted(M),Y.setVolume(M?0:Je),Yl(M),Re&&(M?a?.onMute?.():a?.onUnmute?.()),Je===0){let ct=Ql()??H.volumeDefault;ct===0&&(ct=H.volumeMinRestore,vs(ct)),A.setVolume(ct),Y.setVolume(ct),Re&&a?.onVolumeChange?.(ct)}},Yi=De(!1),Zi=M=>{Yi.set(M),A.setLooped(M)};Zi(F);let fn=()=>{A.prepare()},_n=()=>{if(Wn(vt),xe(vt.ui.controls.disabledControls$).has("PLAY_BUTTON"))return;if(P({message:"toggle play"}),xe(vt.playerPhase)==="ads"){Y.togglePlay();return}let ue=()=>{P({message:"toggle play, call player.play"}),A.play(),a?.onPlay?.()},Re=()=>{P({message:"toggle play, call player.pause"}),A.pause(),a?.onPause?.()};if(A.info.isEnded$.getValue()){if(P({message:"toggle play, video ended, seek to 0"}),ee.next(),ke.next(co.REWIND),w){b?.();return}A.seekTime(0),ue()}else A.info.playbackState$.getValue()!==Pl.PLAYING?ue():Re()},Ot=M=>{P({message:`set quality, quality: ${M}`}),A.setAutoQuality(M==="auto"),M!=="auto"?(sf(e,M),ti.set(M),A.setQuality(M)):ys()},Di=M=>{P({message:`set trafficSavingEnabled, value: ${M}`}),A.setAutoQualityLimits({max:M?H.trafficSavingLimit:void 0}),df(M)},on=M=>{A.setPlaybackRate(M),H.features.saveRate&&le&&!A.info.isLive$.getValue()&&_f(M)},kn=()=>{let M=xe(ji),ue=M.findIndex(({selected:Je})=>Je);if(ue===M.length-1)return;let Re=M[ue+1];on(Re.value)},ln=()=>{let M=xe(ji),ue=M.findIndex(({selected:Je})=>Je);if(ue===0)return;let Re=M[ue-1];on(Re.value)},rn=M=>{M&&M.value!==Rt.value&&rt.next(M.isAuto?M.value+"_auto":M.value),Bt.set(M)},dn=()=>{let M=xe(ki),ue=xe(Bt),Re=xe(Ye);if(ue?.value===Rt.value){let Je=M.filter(ct=>ct.value!==Rt.value).find(ct=>ct.value===Re)||M[1];rn(Je??{...Rt})}else rn({...Rt,selected:!1})},Ft=(M,ue,Re=!0)=>{if(P({message:`seek to time, time: ${M}`}),ke.next(ue),A.info.isLive$.getValue()){let Je=A.info.duration$.getValue(),ct=Math.min(0,Je+M);A.seekTime(ct,Re)}else{if(E?.getValue())return;A.seekTime(vo(M),Re)}},Xi=M=>{P({message:`seek to episode start time: ${M}`}),Ft(M,co.EPISODE,!0)},wn=(M,ue)=>{P({message:`seek to percent, percent: ${M}`});let Re=Math.round(xe($t)*M);Ft(Re,ue,!1)},Cn=M=>{P({message:`seek external, time: ${M}`}),ke.next(co.UNKNOWN),A.seekTime(A.info.isLive$.getValue()?-M:M)},Sn=M=>{P({message:`set auto quality limitation. Max: ${M.max??"none"}. Min: ${M.min??"none"}`}),A.setAutoQualityLimits(M)},Wt=M=>{P({message:`seek external to episode start time: ${M}`}),Ft(M,co.EPISODE,!0)},Mn=M=>{P({message:`set playback rate to: ${M}`}),A.setPlaybackRate(M)},hn=De(void 0),sn=De(!1),Vn=M=>{P({message:`start scrubbing, progress: ${M}`}),sn.set(!0),gn(M)},gn=M=>{hn.set(M)},mn,Ni,ie=()=>{hn.set(void 0),sn.set(!1)},ht=()=>{clearTimeout(Ni),clearTimeout(mn),mn=window.setTimeout(()=>{ie()},500),Me?.removeEventListener("seeked",ht)},bn=M=>{P({message:`complete scrubbing, progress: ${M}`}),wn(M,co.SLIDER),xe(vt.ui.isMobile)&&xe(vt.state.currentFormat$)===Tl.HLS?(Me?.addEventListener("seeked",ht),Ni=window.setTimeout(()=>{ht()},300)):ie()},te=Ii([gt,$t,hn],([M,ue,Re],Je)=>{Je(W4(Re)?Re*ue:M)}),ft=De({width:0,height:0}),mi=Ii([ft],([{width:M}],ue)=>{let Re=R1(M);ue(Re)}),In=De(!1),Nn=Ii([mi,In],([M,ue])=>ue?W.filter(Re=>!Re.hideOnMobile):W.filter(Re=>!Re.hideOnDesktopGridTypes?.includes(M))),Qn=Ii([In,it],([M,ue],Re)=>{Re(M&&ue)}),fo=()=>{ke.next(co.LIVE),P({message:"switch to active live"}),A.seekTime(0),A.info.playbackState$.getValue()!==Pl.PLAYING&&vt.actions.internal.togglePlay()},$=()=>Y.skip(),$n=(M=!0)=>{Wn(vt),P({message:`switch from ads to video, callPlay: ${M}`}),je.set("video"),M&&A.play()},ml=()=>{Wn(vt),P({message:"switch from video to ads"}),vt.actions.internal.pause(),Fe(),je.set("ads")},pl=M=>{Wn(vt);let ue=M?"waitingLive":"thumb";je.set(ue)},_l=M=>{Wn(vt);let ue=M?"waitingRecord":"thumb";je.set(ue)},mo=()=>(Wn(vt),Jc(A,N,vt)),po=()=>(Wn(vt),xc(A,N,vt)),Yn=()=>Me,eo=()=>{P({message:"toggle chromecast"}),A.toggleChromecast()},_o=M=>{Wn(vt);let ue=!M;if(xe(vt.playerPhase)==="ads"){P({message:`pause ads, internalCall: ${ue}`}),Y.pause();return}P({message:`pause video, internalCall: ${ue}`}),ue&&a?.onPause?.(),A.pause()},zo=M=>{Wn(vt);let ue=!M;if(xe(vt.playerPhase)==="ads"){P({message:`play ads, internalCall: ${ue}`}),Y.play();return}P({message:`play video, internalCall: ${ue}`}),ue&&a?.onPlay?.(),A.play()},to=(M,ue)=>{Wn(vt),P({message:`first start, show ads: ${M}, internalCall: ${!ue}`}),M?je.set("ads"):(je.set("video"),ue?A.play():vt.actions.internal.togglePlay())},io=()=>(P({message:"getting time codes"}),u),ho=()=>{let M=io();if(!M||[0,1].includes(M.length))return;let ue=A.info.position$.getValue();return M.find(Re=>Re.time>ue)},go=M=>{let ue=M;ue||(ue=ho()),ue&&(P({message:"seek to next episode"}),Ft(ue.time,co.EPISODE,!0))},bo=()=>{let M=io();if(!M||[0,1].includes(M.length))return;let ue=A.info.position$.getValue(),Re=M.findIndex(ct=>ct.time>ue),Je=Re===-1?M.length-2:Re-2;if(!(Je<0))return M[Je]},Uo=M=>{let ue=M;ue||(ue=bo()),ue&&(P({message:"seek to prev episode"}),Ft(ue.time,co.EPISODE,!0))},Ko=()=>(P({message:"getting preview thumbs data"}),f),Q=async()=>{Z?.isActive()?await Z?.remove():await Z?.request()},Dt=(M=-90)=>{Se.update(ue=>ue+M)},pn=De([]);v?.subscribe(M=>{let ue=[];for(let Re=0;Re<M.length;Re++){let{range:[Je,ct],subjects:li}=M[Re];Re===0&&Je!==0&&ue.push({time:0,text:"",interactive:!1,completed:!0}),ue.push({time:Je/1e3,text:"",interactive:!0,completed:!li.length}),ct!==1/0&&ue.push({time:ct/1e3,text:"",interactive:!1,completed:!0})}pn.set(ue)});let qn=De(!1);E?.subscribe(M=>{M&&xe(sn)&&ie()});let vo=M=>{if(!w)return M;let ue=xe(pn),Re=xe($t),ct=xe(Et)/Re,li=ue.find(Ji=>Ji.interactive&&!Ji.completed&&Ji.time>ct);return typeof li?.time=="number"?Math.min(M,li.time-.05):M},yo=()=>{vt.ui.episodes.panelOpened$.set(!1)},ko=()=>{clearTimeout(Ni),clearTimeout(mn),mt.unsubscribe(),kt.unsubscribe(),A.destroy(),Y.destroy(),O?.destroy(),ce?.destroy(),He.unsubscribe(),ye?.disconnect(),ye=null},vt={interfaceLanguage$:Ye,initVideo:Ce,videoId:e,isClip:t,playerPhase:Ke,vsid:Qe,state:{positionExact$:gt,positionWithScrubbing$:te,duration$:$t,playbackState$:_t,isPlaying$:vi,isLoaderVisible:en,bufferedProgress$:nn,isLive$:bt,canChangePlaybackSpeed$:zt,isActiveLive$:Hi,isOldestAvailableLive$:Ei,isRewindableLive$:tn,isEnded$:Jt,muted$:Oi,volume$:Kt,trafficSavingEnabled$:xi,autoQualityLimitingAvailable$:xt,availableVideoStreams$:Ai,availableAudioStreams$:zi,videoStream$:Ui,audioStream$:jt,currentQuality$:Zt,isAutoQualityEnabled$:Mi,availableQualities$:ii,currentPlaybackRate$:Ki,availablePlaybackRates$:ji,currentSubtitle$:Bt,availableSubtitlesList$:ki,currentSubtitleCaptions$:Gi,isAutoSubtitleCaptionVisible$:Vi,chromecastState$:hi,chromecastDeviceName$:$i,chromecastConnected$:Qt,currentFormat$:ai,throughputEstimation$:Ti,videoBitrate$:ui,videoSize$:gi,errorLog$:$e,crashed$:it,isAudioAvailable$:bi,isAudioDisabled:!!r,canDownload:H.features.download&&!!l,availableSources$:wi,hasMpegSources$:Li,isInteractive:w,showInteractiveGraph:H.features.interactiveGraph,showSeekToInteractive:H.features.seekToInteractive,showPlayPrevChapter:H.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:H.features.interactiveTimeIndicator&&!!xe(pn).length,interactiveEpisodes$:pn,isInteractiveTime$:E?yt(E):De(!1),graphIsOpened$:De(!1),isInteractiveExpectation$:qn,hasInteractiveBranches:y,playPrevChapterDisabledTooltip:T,looped$:Yi,isFirstBytes$: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:W.length?W.reduce(M=>[...M,De(void 0)],[]):[],disabledControls$:Xe},modals:{hotKeyMap:{show:De(!1),data:De({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Le,rotateAlpha:Se,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:ft,isMobile:In,mobileNotReportControlHidden$:Qn,mobileUnmuteButtonExpanded:De(!1),mobileUnmuteButtonVisible:De(!1),icon3DVideoVisible:De(!1),settingsMenuVisible:De(!1),settingsMenuOpenedByKeyboard:De(!1),scrubbingInProgress:sn,is3DVideo:De(!1),isPictureInPictureActive$:ve,pictureInPictureType$:Tn(x),clientInfo$:Tn(Ge),currentGridType$:mi,additionalButtons$:Nn,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:Z,annotationsApi:oe},actions:{internal:{preload:fn,firstStart:M=>to(M,!1),pause:()=>_o(!1),togglePlay:_n,toggleMuted:Xt,toggleSettingsMenu:cn,openSettingsMenu:Ri,closeSettingsMenu:ze,setVolume:Qi,setVideoStream:fi,setAudioStream:di,setQuality:Ot,setTrafficSavingEnabled:M=>Di(M),setPlaybackRate:on,incrementPlaybackRate:kn,decrementPlaybackRate:ln,setSubtitle:rn,toggleSubtitle:dn,togglePictureInPicture:Q,startScrubbing:Vn,progressScrubbing:gn,completeScrubbing:bn,toggleChromecast:eo,switchToActiveLive:fo,switchFromAdsToVideo:$n,switchFromVideoToAds:ml,skipAd:$,setWaitingLive:pl,setWaitingRecord:_l,getDebugTextData:mo,getDebugPanelData:po,getVideoElement:Yn,seekTime:(M,ue,Re)=>Ft(M,ue,Re),clearDelayedBufferingCheckTimeout:Fi,seekEpisodeStartTime:Xi,seekToPercent:wn,getNextEpisode:ho,seekToNextEpisode:go,getPrevEpisode:bo,seekToPrevEpisode:Uo,startLogging:Tt,stopLogging:Ze,startCameraManualRotation:qt,stopCameraManualRotation:Vt,moveCameraFocusPX:Ct,holdCamera:si,releaseCamera:st,getVideoEpisodes:io,getPreviewThumbsData:Ko,downloadVideo:oi,addLanguage:Cs,setLanguage:we,nextMovie:Oe,videoRotate:Dt,correctSeekTimeToInteractive:vo,replayInteractive:b,setLooped:Zi},external:{firstStart:M=>to(M,!0),play:()=>zo(!0),pause:()=>_o(!0),seekTime:M=>Cn(M),seekEpisodeStartTime:M=>Wt(M),setPlaybackRate:M=>Mn(M),setAutoQualityLimits:M=>Sn(M),setMuted:M=>Bi(M,!0),setVolume:M=>Qi(M,M,!0),returnFocusToEpisodes:yo}},callbacks:a,setUiCallbacks:M=>{Ue={...M}},getAdmanWrapper:()=>Y,getLogger:()=>J,destroy:ko};return vt};var Wr=(i,e,t,n)=>{if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"],l=i.getBoundingClientRect();for(let[a,s]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(a)){let u=t[a]?.getBoundingClientRect(),f=(n||r.includes(a))&&!!u&&!!(u.right-u.left);s.set({positionStartX:0,positionEndX:0,left:f?Math.round(u.left-l.left):0,right:f?Math.round(u.right-l.left):0,top:f?Math.round(u.top-l.top):0,bottom:f?Math.round(u.bottom-l.top):0,isDisplayed:f})}};var Gr=async(i,e,t)=>{await zn(),e&&t&&(t.focus(),i.set(!1))};function x4(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function $4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var wu=class extends K{constructor(e){super(),G(this,e,$4,x4,U,{})}},cm=wu;function e3(i){let e,t;return e=new cm({}),{c(){R(e.$$.fragment)},m(n,o){V(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 t3(i){let e,t,n;function o(l){i[8](l)}let r={className:i[3]?"opened":"",testId:"btn-context-menu",disabled:i[0],ariaLabel:i[1],click:i[5],focus:i[6],blur:i[7],ariaExpanded:i[3],$$slots:{default:[e3]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new pt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&8&&(s.className=l[3]?"opened":""),a&1&&(s.disabled=l[0]),a&2&&(s.ariaLabel=l[1]),a&8&&(s.ariaExpanded=l[3]),a&16384&&(s.$$scope={dirty:a,ctx:l}),!t&&a&4&&(t=!0,s.ref=l[2],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function i3(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,l=nt(),a=l.ui.contextMenu.visible$;z(i,a,E=>t(3,n=E));let s=l.ui.contextMenu.openedByBtnKeyboard$,u=l.ui.contextMenu.showContextMenuBtn$,f=l.ui.contextMenu.position$,p=l.ui.contextMenu.btnRef$,h,k=E=>{let b=tl(E),y=Uf(h);f.set(y),s.set(b),a.set(!n)},g=()=>{u.set(!0)},w=()=>{u.set(!1)};function v(E){h=E,t(2,h)}return i.$$set=E=>{"disabled"in E&&t(0,o=E.disabled),"ariaLabel"in E&&t(1,r=E.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&4)e:h&&p.set(h)},[o,r,h,n,a,k,g,w,v]}var Cu=class extends K{constructor(e){super(),G(this,e,i3,t3,U,{disabled:0,ariaLabel:1})}},fm=Cu;function n3(i){Ie(i,"svelte-17imlp9",".interactive-episode-icon-animated.svelte-17imlp9{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.invisible.svelte-17imlp9{opacity:0;visibility:hidden}.fullscreen.svelte-17imlp9:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.svelte-17imlp9{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.svelte-17imlp9{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.svelte-17imlp9{top:40px;right:16px}}@keyframes svelte-17imlp9-pulse{0%{transform:scale(1);border-width:1px;opacity:0}10%{opacity:1}50%{transform:scale(1.5);border-width:1px;opacity:0.5}100%{transform:scale(1.5);border-width:0.5px;opacity:0}}.pulse.svelte-17imlp9{display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);animation:1s svelte-17imlp9-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.svelte-17imlp9{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.svelte-17imlp9{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.svelte-17imlp9{display:none}")}function o3(i){let e,t;return e=new Sr({props:{completed:!0}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p:_e,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,o,r,l,a,s,u,f;function p(k){i[22](k)}let h={tooltipContent:j("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[o3]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new Mt({props:h}),me.push(()=>qe(t,"ref",p)),t.$on("click",i[14]),{c(){e=I("div"),R(t.$$.fragment),o=D(),r=I("div"),l=D(),a=I("div"),c(r,"class","ref-block svelte-17imlp9"),q(r,"hidden",i[1]),c(a,"class","pulse svelte-17imlp9"),q(a,"paused",i[4]),c(e,"class","interactive-episode-icon-animated svelte-17imlp9"),q(e,"mobile",i[2]),q(e,"fullscreen",i[6]),q(e,"invisible",i[1])},m(k,g){S(k,e,g),V(t,e,null),m(e,o),m(e,r),i[23](r),m(e,l),m(e,a),i[24](a),s=!0,u||(f=[de(e,"mousemove",at(i[21])),de(e,"mouseleave",i[15])],u=!0)},p(k,g){let w={};g[0]&32&&(w.tooltipActive=k[5]),g[1]&1&&(w.$$scope={dirty:g,ctx:k}),!n&&g[0]&1&&(n=!0,w.ref=k[0],Ne(()=>n=!1)),t.$set(w),(!s||g[0]&2)&&q(r,"hidden",k[1]),(!s||g[0]&16)&&q(a,"paused",k[4]),(!s||g[0]&4)&&q(e,"mobile",k[2]),(!s||g[0]&64)&&q(e,"fullscreen",k[6]),(!s||g[0]&2)&&q(e,"invisible",k[1])},i(k){s||(d(t.$$.fragment,k),s=!0)},o(k){_(t.$$.fragment,k),s=!1},d(k){k&&C(e),L(t),i[23](null),i[24](null),u=!1,et(f)}}}function r3(i,e,t){let n,o,r,l,a,s,{ref:u=void 0}=e,f,p=nt(),h=Ln(),{interactiveControlsOpacity$:k}=h;z(i,k,N=>t(18,o=N));let g=p.ui.isMobile;z(i,g,N=>t(2,a=N));let w=p.ui.isFullscreen;z(i,w,N=>t(6,s=N));let v=p.state.isInteractiveTime$;z(i,v,N=>t(19,r=N));let E=h.showInteractiveTimeIndicatorTooltip$;z(i,E,N=>t(17,n=N));let b=p.ui.controlsVisible;z(i,b,N=>t(20,l=N));let y=p.callbacks?.onInteractiveTimeIndicatorClick,T,W,F,O=()=>{t(4,F=!0)},le=()=>{re(),f?.addEventListener("animationiteration",O,{once:!0})},re=()=>{t(4,F=!1),f?.removeEventListener("animationiteration",O)},H=N=>{E.set(N)},A,J=()=>{W||(E.set(!0),y?.())};Hn(()=>{E.clearTimeout(),re()});let Y=()=>{E.set(!1)};function ce(N){Pn.call(this,i,N)}function Z(N){u=N,t(0,u)}function oe(N){me[N?"unshift":"push"](()=>{u=N,t(0,u)})}function P(N){me[N?"unshift":"push"](()=>{f=N,t(3,f)})}return i.$$set=N=>{"ref"in N&&t(0,u=N.ref)},i.$$.update=()=>{if(i.$$.dirty[0]&1048580)e:t(16,T=!a&&l);if(i.$$.dirty[0]&851968)e:t(1,W=!r||!!o||T);if(i.$$.dirty[0]&2)e:t(4,F=W);if(i.$$.dirty[0]&131074)e:t(5,A=n&&!W);if(i.$$.dirty[0]&131072)e:n?le():re()},[u,W,a,f,F,A,s,k,g,w,v,E,b,H,J,Y,T,n,o,r,l,ce,Z,oe,P]}var Su=class extends K{constructor(e){super(),G(this,e,r3,l3,U,{ref:0},n3,[-1,-1])}},Qr=Su;function u3(i){Ie(i,"svelte-st0uzk",".wrapper-bottom.svelte-st0uzk.svelte-st0uzk{pointer-events:none;position:absolute;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-st0uzk>.svelte-st0uzk{pointer-events:auto}.controls.svelte-st0uzk.svelte-st0uzk{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-st0uzk.svelte-st0uzk,.controls-right.svelte-st0uzk.svelte-st0uzk{display:flex;align-content:center}.controls-left.svelte-st0uzk.svelte-st0uzk{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-st0uzk > *:not(:first-child),.controls-right.svelte-st0uzk > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-st0uzk.svelte-st0uzk{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-st0uzk.svelte-st0uzk{transition:none}.settings-menu.svelte-st0uzk.svelte-st0uzk{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(l){i[174](l)}let r={disabled:!i[9],tooltipContent:j("tooltip_previous"),$$slots:{default:[c3]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(r.ref=i[23].prevButton),e=new Mt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&512&&(s.disabled=!l[9]),a[0]&4608|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].prevButton,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function c3(i){let e,t;return e=new ul({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&4096&&(r.click=n[12]),o[0]&512&&(r.disabled=!n[9]),e.$set(r)},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(l){i[175](l)}let r={disabled:i[74],tooltipContent:j("tooltip_restart"),$$slots:{default:[f3]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(r.ref=i[23].replayButton),e=new Mt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[2]&4096&&(s.disabled=l[74]),a[2]&4096|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].replayButton,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function f3(i){let e,t;return e=new Il({props:{click:i[128],disabled:i[74]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[2]&4096&&(r.disabled=n[74]),e.$set(r)},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(l){i[177](l)}let r={tooltipContent:i[47],disabled:i[75],$$slots:{default:[d3]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(r.ref=i[23].playButton),e=new Mt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&65536&&(s.tooltipContent=l[47]),a[2]&8192&&(s.disabled=l[75]),a[0]&67108864|a[1]&8|a[2]&8192|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].playButton,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function d3(i){let e,t,n;function o(l){i[176](l)}let r={isMobile:!1,isPlaying:i[34],click:i[85],disabled:i[75]};return i[26]!==void 0&&(r.ref=i[26]),e=new Sl({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&8&&(s.isPlaying=l[34]),a[2]&8192&&(s.disabled=l[75]),!t&&a[0]&67108864&&(t=!0,s.ref=l[26],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function gm(i){let e,t,n;function o(l){i[178](l)}let r={disabled:!i[8],tooltipContent:j("tooltip_next"),$$slots:{default:[m3]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(r.ref=i[23].nextButton),e=new Mt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&256&&(s.disabled=!l[8]),a[0]&2304|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].nextButton,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function m3(i){let e,t;return e=new ul({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&2048&&(r.click=n[11]),o[0]&256&&(r.disabled=!n[8]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function p3(i){let e,t,n,o,r=i[121]&&_3(i),l=i[120]&&g3(i),a=i[119]&&v3(i);return{c(){r&&r.c(),e=D(),l&&l.c(),t=D(),a&&a.c(),n=ut()},m(s,u){r&&r.m(s,u),S(s,e,u),l&&l.m(s,u),S(s,t,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){s[121]&&r.p(s,u),s[120]&&l.p(s,u),s[119]&&a.p(s,u)},i(s){o||(d(r),d(l),d(a),o=!0)},o(s){_(r),_(l),_(a),o=!1},d(s){s&&(C(e),C(t),C(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function _3(i){let e,t,n;function o(l){i[179](l)}let r={disabled:i[73],tooltipContent:j("tooltip_interactive_go_back"),disabledTooltipContent:j(i[124]),$$slots:{default:[h3]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(r.ref=i[23].playPrevChapterButton),e=new Mt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[2]&2048&&(s.disabled=l[73]),a[0]&131072|a[2]&2048|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].playPrevChapterButton,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function h3(i){let e,t;return e=new Or({props:{disabled:i[73],click:i[17]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[2]&2048&&(r.disabled=n[73]),o[0]&131072&&(r.click=n[17]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function g3(i){let e,t,n;function o(l){i[180](l)}let r={disabled:i[76],tooltipContent:j("tooltip_interactive_seek"),disabledTooltipContent:j(i[78]),$$slots:{default:[b3]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(r.ref=i[23].seekToInteractiveButton),e=new Mt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[2]&16384&&(s.disabled=l[76]),a[2]&65536&&(s.disabledTooltipContent=j(l[78])),a[0]&32768|a[2]&16384|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].seekToInteractiveButton,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function b3(i){let e,t;return e=new Dr({props:{disabled:i[76],click:i[15]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[2]&16384&&(r.disabled=n[76]),o[0]&32768&&(r.click=n[15]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function v3(i){let e,t,n;function o(l){i[181](l)}let r={tooltipContent:i[48],disabled:i[77],$$slots:{default:[y3]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(r.ref=i[23].interactiveGraphButton),e=new Mt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.tooltipContent=l[48]),a[2]&32768&&(s.disabled=l[77]),a[0]&65536|a[1]&1|a[2]&32768|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].interactiveGraphButton,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function y3(i){let e,t;return e=new Nr({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&65536&&(r.click=n[16]),o[1]&1&&(r.graphIsOpened=n[31]),o[2]&32768&&(r.disabled=n[77]),e.$set(r)},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(l){i[182](l)}let r={tooltipContent:i[50],$$slots:{default:[k3]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(r.ref=i[23].liveButton),e=new Mt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&524288&&(s.tooltipContent=l[50]),a[0]&2097152|a[1]&524288|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].liveButton,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function k3(i){let e,t;return e=new Mr({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.isActiveLive=n[21]),o[1]&524288&&(r.ariaLabel=n[50]),e.$set(r)},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(l){i[183](l)}let r={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&&(r.ref=i[23].time),e=new wr({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&16777216&&(s.showDuration=l[55]),a[0]&16|a[2]&393216&&(s.position=l[4]?l[79]:l[80]),a[0]&16|a[2]&1572864&&(s.duration=l[4]?l[81]:l[82]),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].time,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function ym(i){let e,t;return e=new Br({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[2]&262144&&(r.position=n[80]),o[2]&1048576&&(r.duration=n[82]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function w3(i){let e,t,n=i[20]&&ym(i);return{c(){n&&n.c(),e=ut()},m(o,r){n&&n.m(o,r),S(o,e,r),t=!0},p(o,r){o[20]?n?(n.p(o,r),r[0]&1048576&&d(n,1)):(n=ym(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(se(),_(n,1,1,()=>{n=null}),ae())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&C(e),n&&n.d(o)}}}function C3(i){let e,t;return e=new Fr({props:{iconUrl:i[210],ariaLabel:i[211]??i[214],testId:i[212],onClick:i[213]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&268435456&&(r.iconUrl=n[210]),o[0]&268435456&&(r.ariaLabel=n[211]??n[214]),o[0]&268435456&&(r.testId=n[212]),o[0]&268435456&&(r.onClick=n[213]),e.$set(r)},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 Mt({props:{tooltipContent:i[214],width:40,$$slots:{default:[C3]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&268435456&&(r.tooltipContent=n[214]),o[0]&268435456|o[7]&1&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},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(l){i[186](l)}let r={disabled:!i[6],tooltipContent:i[51],disabledTooltipContent:"",$$slots:{default:[S3]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(r.ref=i[23].vkLogo),e=new Mt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&64&&(s.disabled=!l[6]),a[1]&1048576&&(s.tooltipContent=l[51]),a[0]&192|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].vkLogo,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function S3(i){let e,t;return e=new Er({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&128&&(r.targetUrl=n[7]),o[0]&64&&(r.logoClickable=n[6]),e.$set(r)},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;return e=new D1({props:{click:i[127]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p:_e,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(l){i[188](l)}let r={tooltipContent:i[52],$$slots:{default:[P3]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(r.ref=i[23].subtitles),e=new Mt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&2097152&&(s.tooltipContent=l[52]),a[0]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].subtitles,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function P3(i){let e,t;return e=new y1({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&262144&&(r.isSubtitlesEnabled=n[18]),e.$set(r)},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 r(a){i[189](a)}let l={supportLink:i[10],playerControlsHeight:i[46]?.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(l.ref=i[24]),t=new kr({props:l}),me.push(()=>qe(t,"ref",r)),{c(){e=I("div"),R(t.$$.fragment),c(e,"class","settings-menu svelte-st0uzk")},m(a,s){S(a,e,s),V(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&&C(e),L(t)}}}function Im(i){let e,t,n;function o(l){i[191](l)}let r={tooltipContent:i[27]?void 0:j("tooltip_settings_off"),$$slots:{default:[T3]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(r.ref=i[23].settings),e=new Mt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&134217728&&(s.tooltipContent=l[27]?void 0:j("tooltip_settings_off")),a[0]&33554432|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].settings,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function T3(i){let e,t,n;function o(l){i[190](l)}let r={};return i[25]!==void 0&&(r.ref=i[25]),e=new wl({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&33554432&&(t=!0,s.ref=l[25],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function E3(i){let e,t,n;function o(l){i[192](l)}let r={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[A3]},$$scope:{ctx:i}};return i[23].context!==void 0&&(r.ref=i[23].context),e=new Mt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&1024&&(s.className=l[41]?"":"out-of-view"),a[1]&262144&&(s.tooltipContent=l[49]),a[1]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].context,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function A3(i){let e,t;return e=new fm({props:{ariaLabel:i[49]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[1]&262144&&(r.ariaLabel=n[49]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Pm(i){let e,t,n;function o(l){i[193](l)}let r={tooltipContent:i[53],$$slots:{default:[M3]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(r.ref=i[23].fullscreen),e=new Mt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&4194304&&(s.tooltipContent=l[53]),a[0]&1073750016|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].fullscreen,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function M3(i){let e,t;return e=new Pr({props:{click:i[13],isFullscreen:i[30]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&8192&&(r.click=n[13]),o[0]&1073741824&&(r.isFullscreen=n[30]),e.$set(r)},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(l){i[194](l)}let r={tooltipContent:i[54],$$slots:{default:[V3]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(r.ref=i[23].chromecast),e=new Mt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&8388608&&(s.tooltipContent=l[54]),a[0]&536870912|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].chromecast,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function V3(i){let e,t;return e=new Ar({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&536870912&&(r.state=n[29]),e.$set(r)},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(l){i[197](l)}let r={};return i[23].interactiveTimeIndicator!==void 0&&(r.ref=i[23].interactiveTimeIndicator),e=new Qr({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&8388608&&(t=!0,s.ref=l[23].interactiveTimeIndicator,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function R3(i){let e,t,n,o,r,l,a,s,u,f,p,h,k,g,w,v,E,b,y,T,W,F,O,le,re,H,A,J,Y,ce,Z;function oe(ee){i[173](ee)}let P={isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]};i[23].timeline!==void 0&&(P.ref=i[23].timeline),t=new Rr({props:P}),me.push(()=>qe(t,"ref",oe));let N=i[38]&&pm(i),Me=i[35]&&_m(i),Ue=i[36]&&hm(i),Ge=i[37]&&gm(i),Qe=i[117]&&p3(i),Le=!i[4]&&i[33]&&bm(i),be=i[19]&&vm(i);function x(ee){i[184](ee)}let Se={className:"w-max",disabled:!i[20],tooltipContent:j("tooltip_episodes"),$$slots:{default:[w3]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(Se.ref=i[23].episodes),g=new Mt({props:Se}),me.push(()=>qe(g,"ref",x));let $e=wt(i[28]),He=[];for(let ee=0;ee<$e.length;ee+=1)He[ee]=km(mm(i,$e,ee));let it=ee=>_(He[ee],1,1,()=>{He[ee]=null}),we=i[43]&&!i[4]&&wm(i);function Ye(ee){i[187](ee)}let ot={$$slots:{default:[I3]},$$scope:{ctx:i}};i[23].volume!==void 0&&(ot.ref=i[23].volume),W=new Mt({props:ot}),me.push(()=>qe(W,"ref",Ye));let je=i[40]&&Cm(i),Ke=!i[83]&&!i[4]&&Sm(i),Xe=i[42]&&!i[4]&&Im(i),fe=i[84].features.contextMenuButton&&E3(i),Ce=i[44]&&Pm(i),pe=i[39]&&Tm(i),Oe=i[122]&&L3(i);return{c(){e=I("div"),R(t.$$.fragment),o=D(),r=I("div"),l=I("div"),N&&N.c(),a=D(),Me&&Me.c(),s=D(),Ue&&Ue.c(),u=D(),Ge&&Ge.c(),f=D(),Qe&&Qe.c(),p=D(),Le&&Le.c(),h=D(),be&&be.c(),k=D(),R(g.$$.fragment),E=D(),b=I("div");for(let ee=0;ee<He.length;ee+=1)He[ee].c();y=D(),we&&we.c(),T=D(),R(W.$$.fragment),O=D(),je&&je.c(),le=D(),Ke&&Ke.c(),re=D(),Xe&&Xe.c(),H=D(),fe&&fe.c(),A=D(),Ce&&Ce.c(),J=D(),pe&&pe.c(),Y=D(),Oe&&Oe.c(),ce=ut(),c(l,"class","controls-left svelte-st0uzk"),Un(()=>i[185].call(l)),c(b,"class","controls-right svelte-st0uzk"),c(r,"class","controls svelte-st0uzk"),c(e,"class","wrapper-bottom svelte-st0uzk"),q(e,"hidden",i[1]),q(e,"controls-hidden",!i[3]),q(e,"no-smooth",i[2])},m(ee,ke){S(ee,e,ke),V(t,e,null),m(e,o),m(e,r),m(r,l),N&&N.m(l,null),m(l,a),Me&&Me.m(l,null),m(l,s),Ue&&Ue.m(l,null),m(l,u),Ge&&Ge.m(l,null),m(l,f),Qe&&Qe.m(l,null),m(l,p),Le&&Le.m(l,null),m(l,h),be&&be.m(l,null),m(l,k),V(g,l,null),v=jo(l,i[185].bind(l)),m(r,E),m(r,b);for(let rt=0;rt<He.length;rt+=1)He[rt]&&He[rt].m(b,null);m(b,y),we&&we.m(b,null),m(b,T),V(W,b,null),m(b,O),je&&je.m(b,null),m(b,le),Ke&&Ke.m(b,null),m(b,re),Xe&&Xe.m(b,null),m(b,H),fe&&fe.m(b,null),m(b,A),Ce&&Ce.m(b,null),m(b,J),pe&&pe.m(b,null),i[195](r),i[196](e),S(ee,Y,ke),Oe&&Oe.m(ee,ke),S(ee,ce,ke),Z=!0},p(ee,ke){let rt={};ke[1]&16384&&(rt.isHidden=!ee[45]),ke[0]&16&&(rt.isAds=ee[4]),ke[0]&32&&(rt.canRewindLive=ee[5]),ke[1]&2&&(rt.isRewindableLive=ee[32]),!n&&ke[0]&8388608&&(n=!0,rt.ref=ee[23].timeline,Ne(()=>n=!1)),t.$set(rt),ee[38]?N?(N.p(ee,ke),ke[1]&128&&d(N,1)):(N=pm(ee),N.c(),d(N,1),N.m(l,a)):N&&(se(),_(N,1,1,()=>{N=null}),ae()),ee[35]?Me?(Me.p(ee,ke),ke[1]&16&&d(Me,1)):(Me=_m(ee),Me.c(),d(Me,1),Me.m(l,s)):Me&&(se(),_(Me,1,1,()=>{Me=null}),ae()),ee[36]?Ue?(Ue.p(ee,ke),ke[1]&32&&d(Ue,1)):(Ue=hm(ee),Ue.c(),d(Ue,1),Ue.m(l,u)):Ue&&(se(),_(Ue,1,1,()=>{Ue=null}),ae()),ee[37]?Ge?(Ge.p(ee,ke),ke[1]&64&&d(Ge,1)):(Ge=gm(ee),Ge.c(),d(Ge,1),Ge.m(l,f)):Ge&&(se(),_(Ge,1,1,()=>{Ge=null}),ae()),ee[117]&&Qe.p(ee,ke),!ee[4]&&ee[33]?Le?(Le.p(ee,ke),ke[0]&16|ke[1]&4&&d(Le,1)):(Le=bm(ee),Le.c(),d(Le,1),Le.m(l,h)):Le&&(se(),_(Le,1,1,()=>{Le=null}),ae()),ee[19]?be?(be.p(ee,ke),ke[0]&524288&&d(be,1)):(be=vm(ee),be.c(),d(be,1),be.m(l,k)):be&&(se(),_(be,1,1,()=>{be=null}),ae());let ye={};if(ke[0]&1048576&&(ye.disabled=!ee[20]),ke[0]&1048576|ke[2]&1310720|ke[7]&1&&(ye.$$scope={dirty:ke,ctx:ee}),!w&&ke[0]&8388608&&(w=!0,ye.ref=ee[23].episodes,Ne(()=>w=!1)),g.$set(ye),ke[0]&268435456){$e=wt(ee[28]);let Fe;for(Fe=0;Fe<$e.length;Fe+=1){let mt=mm(ee,$e,Fe);He[Fe]?(He[Fe].p(mt,ke),d(He[Fe],1)):(He[Fe]=km(mt),He[Fe].c(),d(He[Fe],1),He[Fe].m(b,y))}for(se(),Fe=$e.length;Fe<He.length;Fe+=1)it(Fe);ae()}ee[43]&&!ee[4]?we?(we.p(ee,ke),ke[0]&16|ke[1]&4096&&d(we,1)):(we=wm(ee),we.c(),d(we,1),we.m(b,T)):we&&(se(),_(we,1,1,()=>{we=null}),ae());let dt={};ke[7]&1&&(dt.$$scope={dirty:ke,ctx:ee}),!F&&ke[0]&8388608&&(F=!0,dt.ref=ee[23].volume,Ne(()=>F=!1)),W.$set(dt),ee[40]?je?(je.p(ee,ke),ke[1]&512&&d(je,1)):(je=Cm(ee),je.c(),d(je,1),je.m(b,le)):je&&(se(),_(je,1,1,()=>{je=null}),ae()),!ee[83]&&!ee[4]?Ke?(Ke.p(ee,ke),ke[0]&16|ke[2]&2097152&&d(Ke,1)):(Ke=Sm(ee),Ke.c(),d(Ke,1),Ke.m(b,re)):Ke&&(se(),_(Ke,1,1,()=>{Ke=null}),ae()),ee[42]&&!ee[4]?Xe?(Xe.p(ee,ke),ke[0]&16|ke[1]&2048&&d(Xe,1)):(Xe=Im(ee),Xe.c(),d(Xe,1),Xe.m(b,H)):Xe&&(se(),_(Xe,1,1,()=>{Xe=null}),ae()),ee[84].features.contextMenuButton&&fe.p(ee,ke),ee[44]?Ce?(Ce.p(ee,ke),ke[1]&8192&&d(Ce,1)):(Ce=Pm(ee),Ce.c(),d(Ce,1),Ce.m(b,J)):Ce&&(se(),_(Ce,1,1,()=>{Ce=null}),ae()),ee[39]?pe?(pe.p(ee,ke),ke[1]&256&&d(pe,1)):(pe=Tm(ee),pe.c(),d(pe,1),pe.m(b,null)):pe&&(se(),_(pe,1,1,()=>{pe=null}),ae()),(!Z||ke[0]&2)&&q(e,"hidden",ee[1]),(!Z||ke[0]&8)&&q(e,"controls-hidden",!ee[3]),(!Z||ke[0]&4)&&q(e,"no-smooth",ee[2]),ee[122]&&Oe.p(ee,ke)},i(ee){if(!Z){d(t.$$.fragment,ee),d(N),d(Me),d(Ue),d(Ge),d(Qe),d(Le),d(be),d(g.$$.fragment,ee);for(let ke=0;ke<$e.length;ke+=1)d(He[ke]);d(we),d(W.$$.fragment,ee),d(je),d(Ke),d(Xe),d(fe),d(Ce),d(pe),d(Oe),Z=!0}},o(ee){_(t.$$.fragment,ee),_(N),_(Me),_(Ue),_(Ge),_(Qe),_(Le),_(be),_(g.$$.fragment,ee),He=He.filter(Boolean);for(let ke=0;ke<He.length;ke+=1)_(He[ke]);_(we),_(W.$$.fragment,ee),_(je),_(Ke),_(Xe),_(fe),_(Ce),_(pe),_(Oe),Z=!1},d(ee){ee&&(C(e),C(Y),C(ce)),L(t),N&&N.d(),Me&&Me.d(),Ue&&Ue.d(),Ge&&Ge.d(),Qe&&Qe.d(),Le&&Le.d(),be&&be.d(),L(g),v(),Si(He,ee),we&&we.d(),L(W),je&&je.d(),Ke&&Ke.d(),Xe&&Xe.d(),fe&&fe.d(),Ce&&Ce.d(),pe&&pe.d(),i[195](null),i[196](null),Oe&&Oe.d(ee)}}}function B3(i,e,t){let n,o,r,l,a,s,u,f,p,h,k,g,w,v,E,b,y,T,W,F,O,le,re,H,A,J,Y,ce,Z,oe,P,N,Me=_e,Ue=()=>(Me(),Me=Ht(re,X=>t(144,N=X)),re),Ge,Qe=_e,Le=()=>(Qe(),Qe=Ht(le,X=>t(145,Ge=X)),le),be,x=_e,Se=()=>(x(),x=Ht(O,X=>t(146,be=X)),O),$e,He=_e,it=()=>(He(),He=Ht(F,X=>t(147,$e=X)),F),we,Ye=_e,ot=()=>(Ye(),Ye=Ht(W,X=>t(148,we=X)),W),je,Ke=_e,Xe=()=>(Ke(),Ke=Ht(T,X=>t(149,je=X)),T),fe,Ce=_e,pe=()=>(Ce(),Ce=Ht(y,X=>t(150,fe=X)),y),Oe,ee=_e,ke=()=>(ee(),ee=Ht(b,X=>t(151,Oe=X)),b),rt,ye=_e,dt=()=>(ye(),ye=Ht(E,X=>t(152,rt=X)),E),Fe,mt=_e,kt=()=>(mt(),mt=Ht(v,X=>t(153,Fe=X)),v),Tt,Ze=_e,qt=()=>(Ze(),Ze=Ht(w,X=>t(154,Tt=X)),w),Vt,Ct=_e,si=()=>(Ct(),Ct=Ht(g,X=>t(155,Vt=X)),g),st,gt=_e,ve=()=>(gt(),gt=Ht(k,X=>t(156,st=X)),k),_t,St=_e,Jt=()=>(St(),St=Ht(h,X=>t(157,_t=X)),h),bt,zt=_e,Ut=()=>(zt(),zt=Ht(p,X=>t(158,bt=X)),p),Kt,Oi=_e,xi=()=>(Oi(),Oi=Ht(f,X=>t(159,Kt=X)),f),xt,Pi=_e,an=()=>(Pi(),Pi=Ht(u,X=>t(160,xt=X)),u),hi,$i,ai,Ti,ui,gi,ci,bi,Lt,Gt,en,Fi,$t,vi,Hi,Ei,Et,tn,Qt,Ai,zi,Ui,jt;i.$$.on_destroy.push(()=>Me()),i.$$.on_destroy.push(()=>Qe()),i.$$.on_destroy.push(()=>x()),i.$$.on_destroy.push(()=>He()),i.$$.on_destroy.push(()=>Ye()),i.$$.on_destroy.push(()=>Ke()),i.$$.on_destroy.push(()=>Ce()),i.$$.on_destroy.push(()=>ee()),i.$$.on_destroy.push(()=>ye()),i.$$.on_destroy.push(()=>mt()),i.$$.on_destroy.push(()=>Ze()),i.$$.on_destroy.push(()=>Ct()),i.$$.on_destroy.push(()=>gt()),i.$$.on_destroy.push(()=>St()),i.$$.on_destroy.push(()=>zt()),i.$$.on_destroy.push(()=>Oi()),i.$$.on_destroy.push(()=>Pi());let{bottomHidden:fi}=e,{bottomNoSmooth:di}=e,{showControls:ei}=e,{controlsElementRef:Yt=void 0}=e,{isAds:At=!1}=e,{canRewindLive:ti}=e,{logoClickable:Mi}=e,{logoHidden:yi}=e,{logoTargetUrl:Zt=""}=e,{showNextPrevButtons:ii}=e,{nextButtonActive:Ki}=e,{prevButtonActive:ji}=e,{isOneVideoPlaylist:un=!1}=e,{supportLink:Wi}=e,{customFullscreenSupported:Rt=!0}=e,{playNextVideo:Bt}=e,{playPrevVideo:ki}=e,{repeatPlaylist:ni}=e,{toggleFullscreen:Gi}=e,{returnFocus:Vi}=e,{seekToInteractive:nn}=e,{toggleGraph:wi}=e,{playPrevChapter:Li}=e,tt=nt(),oi=Ln(),Xt=Nt(),ze=tt.actions.internal.toggleMuted,Ri=tt.actions.internal.togglePlay,cn=tt.actions.internal.pause,Qi=tt.actions.internal.toggleSubtitle,Bi=tt.callbacks?.onAudioDoesNotExistHint,Yi=tt.callbacks?.onAudioDisabledHint,Zi=tt.state.duration$;z(i,Zi,X=>t(82,Ui=X));let fn=tt.state.positionWithScrubbing$;z(i,fn,X=>t(80,Ai=X));let _n=tt.state.playbackState$;z(i,_n,X=>t(161,ai=X));let Ot=tt.state.chromecastConnected$;z(i,Ot,X=>t(83,jt=X));let Di=tt.state.isAudioAvailable$;z(i,Di,X=>t(198,H=X));let on=tt.state.isAudioDisabled,kn=tt.state.isEnded$;z(i,kn,X=>t(169,vi=X));let ln=tt.state.isLive$;z(i,ln,X=>t(33,bi=X));let rn=tt.state.isActiveLive$;z(i,rn,X=>t(163,gi=X));let dn=tt.state.isRewindableLive$;z(i,dn,X=>t(32,ci=X));let Ft=tt.ui.isPictureInPictureActive$;z(i,Ft,X=>t(165,Gt=X));let Xi=tt.ui.pictureInPictureType$;z(i,Xi,X=>t(164,Lt=X));let wn=tt.ui.settingsMenuVisible;z(i,wn,X=>t(27,Y=X));let Cn=tt.ui.settingsMenuOpenedByKeyboard;z(i,Cn,X=>t(140,J=X));let Sn=tt.ui.controls,Wt=tt.actions.internal.getVideoEpisodes(),Mn=tt.state.chromecastState$;z(i,Mn,X=>t(29,hi=X));let hn=tt.state.availableSubtitlesList$;z(i,hn,X=>t(168,$t=X));let sn=tt.state.currentSubtitle$;z(i,sn,X=>t(170,Hi=X));let Vn=Sn.disabledControls$;z(i,Vn,X=>t(172,Et=X));let gn=tt.ui.contextMenu.visible$;z(i,gn,X=>t(162,Ti=X));let mn=tt.ui.contextMenu.showContextMenuBtn$;z(i,mn,X=>t(166,en=X));let Ni=tt.ui.contextMenu.openedByBtnKeyboard$;z(i,Ni,X=>t(167,Fi=X));let ie=tt.ui.startedByKeyboard$;z(i,ie,X=>t(139,A=X));let ht=tt.ads.duration;z(i,ht,X=>t(81,zi=X));let bn=tt.ads.position;z(i,bn,X=>t(79,Qt=X));let te=tt.ads.playbackState;z(i,te,X=>t(171,Ei=X));let ft=tt.ui.isFullscreen;z(i,ft,X=>t(30,$i=X));let mi=tt.ui.playerSize;z(i,mi,X=>t(142,Z=X));let In=tt.ui.currentGridType$;z(i,In,X=>t(143,oe=X));let Nn=tt.ui.additionalButtons$;z(i,Nn,X=>t(28,P=X));let Qn=tt.actions.internal.getVideoElement,fo=tt.actions.internal.replayInteractive,$=tt.state.isInteractive,$n=tt.state.isInteractiveTime$;z(i,$n,X=>t(141,ce=X));let ml=tt.state.showInteractiveGraph,pl=tt.state.showSeekToInteractive,_l=tt.state.showPlayPrevChapter,mo=tt.state.showInteractiveTimeIndicator,po=tt.state.graphIsOpened$;z(i,po,X=>t(31,ui=X));let Yn=tt.state.playPrevChapterDisabledTooltip,eo=oi.seekToInteractiveDisabledTooltip$;z(i,eo,X=>t(78,tn=X));let _o=()=>tt.actions.internal.toggleChromecast(),zo,to,io,ho,go,bo,Uo,Ko,Q,Dt,pn,qn,vo,yo,ko,vt,M,ue,Re,Je,ct,li="",Ji=(X,as)=>{if(!X){t(50,li=j("tooltip_live"));return}as===Iu.PAUSED&&t(50,li=j("tooltip_play"))},ri,On,wo,Bl,Co,lt={},Fn,hl,ss,Cc,Fp=a3(Wr,260,{leading:!1}),Dl,Nl,ql;function Hp(){ro({isAudioDisabled:on,audioDisabledHintCallback:Yi,isAudioAvailable:H,audioIsNotExistHintCallback:Bi})&&ze()}let zp=$?fo:un?Ri:ni;function Up(X){i.$$.not_equal(lt.timeline,X)&&(lt.timeline=X,t(23,lt))}function Kp(X){i.$$.not_equal(lt.prevButton,X)&&(lt.prevButton=X,t(23,lt))}function jp(X){i.$$.not_equal(lt.replayButton,X)&&(lt.replayButton=X,t(23,lt))}function Wp(X){ql=X,t(26,ql)}function Gp(X){i.$$.not_equal(lt.playButton,X)&&(lt.playButton=X,t(23,lt))}function Qp(X){i.$$.not_equal(lt.nextButton,X)&&(lt.nextButton=X,t(23,lt))}function Yp(X){i.$$.not_equal(lt.playPrevChapterButton,X)&&(lt.playPrevChapterButton=X,t(23,lt))}function Zp(X){i.$$.not_equal(lt.seekToInteractiveButton,X)&&(lt.seekToInteractiveButton=X,t(23,lt))}function Xp(X){i.$$.not_equal(lt.interactiveGraphButton,X)&&(lt.interactiveGraphButton=X,t(23,lt))}function Jp(X){i.$$.not_equal(lt.liveButton,X)&&(lt.liveButton=X,t(23,lt))}function xp(X){i.$$.not_equal(lt.time,X)&&(lt.time=X,t(23,lt))}function $p(X){i.$$.not_equal(lt.episodes,X)&&(lt.episodes=X,t(23,lt))}function e_(){Co=this.clientWidth,t(22,Co)}function t_(X){i.$$.not_equal(lt.vkLogo,X)&&(lt.vkLogo=X,t(23,lt))}function i_(X){i.$$.not_equal(lt.volume,X)&&(lt.volume=X,t(23,lt))}function n_(X){i.$$.not_equal(lt.subtitles,X)&&(lt.subtitles=X,t(23,lt))}function o_(X){Dl=X,t(24,Dl)}function l_(X){Nl=X,t(25,Nl)}function r_(X){i.$$.not_equal(lt.settings,X)&&(lt.settings=X,t(23,lt))}function s_(X){i.$$.not_equal(lt.context,X)&&(lt.context=X,t(23,lt))}function a_(X){i.$$.not_equal(lt.fullscreen,X)&&(lt.fullscreen=X,t(23,lt))}function u_(X){i.$$.not_equal(lt.chromecast,X)&&(lt.chromecast=X,t(23,lt))}function c_(X){me[X?"unshift":"push"](()=>{M=X,t(46,M)})}function f_(X){me[X?"unshift":"push"](()=>{Yt=X,t(0,Yt)})}function d_(X){i.$$.not_equal(lt.interactiveTimeIndicator,X)&&(lt.interactiveTimeIndicator=X,t(23,lt))}i.$$set=X=>{"bottomHidden"in X&&t(1,fi=X.bottomHidden),"bottomNoSmooth"in X&&t(2,di=X.bottomNoSmooth),"showControls"in X&&t(3,ei=X.showControls),"controlsElementRef"in X&&t(0,Yt=X.controlsElementRef),"isAds"in X&&t(4,At=X.isAds),"canRewindLive"in X&&t(5,ti=X.canRewindLive),"logoClickable"in X&&t(6,Mi=X.logoClickable),"logoHidden"in X&&t(129,yi=X.logoHidden),"logoTargetUrl"in X&&t(7,Zt=X.logoTargetUrl),"showNextPrevButtons"in X&&t(130,ii=X.showNextPrevButtons),"nextButtonActive"in X&&t(8,Ki=X.nextButtonActive),"prevButtonActive"in X&&t(9,ji=X.prevButtonActive),"isOneVideoPlaylist"in X&&t(131,un=X.isOneVideoPlaylist),"supportLink"in X&&t(10,Wi=X.supportLink),"customFullscreenSupported"in X&&t(132,Rt=X.customFullscreenSupported),"playNextVideo"in X&&t(11,Bt=X.playNextVideo),"playPrevVideo"in X&&t(12,ki=X.playPrevVideo),"repeatPlaylist"in X&&t(133,ni=X.repeatPlaylist),"toggleFullscreen"in X&&t(13,Gi=X.toggleFullscreen),"returnFocus"in X&&t(14,Vi=X.returnFocus),"seekToInteractive"in X&&t(15,nn=X.seekToInteractive),"toggleGraph"in X&&t(16,wi=X.toggleGraph),"playPrevChapter"in X&&t(17,Li=X.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072)e:t(138,n=Et.has("EPISODE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(77,o=Et.has("GRAPH_BUTTON"));if(i.$$.dirty[5]&131072)e:t(76,r=Et.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(75,l=Et.has("PLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(74,a=Et.has("REPLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(73,s=Et.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[0]&16|i.$$.dirty[5]&65600)e:t(34,zo=At?Ei==="playing":ai===Iu.PLAYING);if(i.$$.dirty[5]&32768)e:t(18,to=Hi.value!=="off");if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(35,io=vi&&!At||$);if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(36,ho=!vi||$||At);if(i.$$.dirty[4]&524288)e:t(134,go=An(oe,"m"));if(i.$$.dirty[0]&272|i.$$.dirty[4]&524352)e:t(37,bo=ii&&An(oe,"m")&&!At&&Ki);if(i.$$.dirty[0]&528|i.$$.dirty[4]&524352)e:t(38,Uo=ii&&An(oe,"m")&&!At&&ji);if(i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536)e:t(39,Ko=hi!==dm.NOT_AVAILABLE&&!(Gt&&Lt===1)&&An(oe,"m")&&!$);if(i.$$.dirty[4]&524288|i.$$.dirty[5]&8192)e:t(40,Q=$t.length>0&&An(oe,"m"));if(i.$$.dirty[5]&6144)e:t(41,Dt=Fi||en);if(i.$$.dirty[4]&524288)e:t(42,pn=An(oe,"s"));if(i.$$.dirty[4]&32)e:t(43,qn=!yi);if(i.$$.dirty[4]&524576|i.$$.dirty[5]&1536)e:t(44,vo=Xt.features.fullscreen&&(yi||An(oe,"s"))&&!(Gt&&Lt===1)&&($?Rt:!0));if(i.$$.dirty[0]&16|i.$$.dirty[1]&4)e:t(19,yo=(!bi||At)&&!(Xt.features.interactiveHideTime&&$));if(i.$$.dirty[4]&262144)e:t(45,ko=Z.width>100);if(i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408)e:t(20,vt=!At&&!bi&&!!Wt?.length&&go&&!n);if(i.$$.dirty[1]&2|i.$$.dirty[5]&256)e:t(21,ue=!ci||gi);if(i.$$.dirty[5]&64)e:t(47,Re=ai===Iu.PLAYING?j("tooltip_pause"):j("tooltip_play"));if(i.$$.dirty[1]&1)e:t(48,Je=ui?j("tooltip_interactive_graph_on"):j("tooltip_interactive_graph_off"));if(i.$$.dirty[5]&128)e:t(49,ct=Ti?j("aria_label_context_menu_close"):j("aria_label_context_menu_open"));if(i.$$.dirty[0]&2097152|i.$$.dirty[5]&64)e:Ji(ue,ai);if(i.$$.dirty[0]&262144)e:t(52,On=to?j("tooltip_subtitles_on"):j("tooltip_subtitles_off"));if(i.$$.dirty[0]&1073741824)e:t(53,wo=$i?j("tooltip_fullscreen_on"):j("tooltip_fullscreen_off"));if(i.$$.dirty[0]&536870912)e:t(54,Bl=hi===dm.CONNECTED?j("tooltip_chromecast_on"):j("tooltip_chromecast_off"));if(i.$$.dirty[0]&268435456|i.$$.dirty[4]&2146435072|i.$$.dirty[5]&63)e:t(135,Fn={prevButton:xt?xt.right-xt.left:0,replayButton:Kt?Kt.right-Kt.left:0,playButton:bt?bt.right-bt.left:0,nextButton:_t?_t.right-_t.left:0,playPrevChapterButton:st?st.right-st.left:0,seekToInteractiveButton:Vt?Vt.right-Vt.left:0,interactiveGraphButton:Tt?Tt.right-Tt.left:0,liveButton:Fe?Fe.right-Fe.left:0,time:rt?rt.right-rt.left:0,episodes:Oe?Oe.right-Oe.left:0,vkLogo:fe?fe.right-fe.left:0,volume:je?je.right-je.left:0,subtitles:we?we.right-we.left:0,settings:$e?$e.right-$e.left:0,context:be?be.right-be.left:0,fullscreen:Ge?Ge.right-Ge.left:0,chromecast:N?N.right-N.left:0,additionalButtons:P.length?P.reduce(X=>[...X,40],[]):[]});if(i.$$.dirty[4]&6144)e:(!hl||hl<Fn.time)&&t(136,hl=Fn.time);if(i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432)e:{let X=0;vt&&(An(oe,"xl")?X=Fn.time:X=60);let as=Fn.prevButton+Fn.playButton+Fn.nextButton+Fn.seekToInteractiveButton+Fn.interactiveGraphButton+Fn.liveButton+hl+X;t(137,ss=yo&&Co>=as)}if(i.$$.dirty[4]&532480)e:t(55,Cc=ss&&An(oe,"m"));if(i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216)e:Fp(Qn(),Sn,lt,ei);if(i.$$.dirty[0]&167772160)e:il(Nl,Y,Cn);if(i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536)e:Do(Dl,Y,J);if(i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768)e:Gr(ie,A,ql)};e:t(51,ri=Xt.logoType==="vk_video"?j("tooltip_vk_video_logo"):j("tooltip_vk_logo"));e:an(t(72,{prevButton:u,replayButton:f,playButton:p,nextButton:h,playPrevChapterButton:k,seekToInteractiveButton:g,interactiveGraphButton:w,liveButton:v,time:E,episodes:b,vkLogo:y,volume:T,subtitles:W,settings:F,context:O,fullscreen:le,chromecast:re}=Sn,u,xi(t(71,f)),Ut(t(70,p)),Jt(t(69,h)),ve(t(68,k)),si(t(67,g)),qt(t(66,w)),kt(t(65,v)),dt(t(64,E)),ke(t(63,b)),pe(t(62,y)),Xe(t(61,T)),ot(t(60,W)),it(t(59,F)),Se(t(58,O)),Le(t(57,le)),Ue(t(56,re))));return[Yt,fi,di,ei,At,ti,Mi,Zt,Ki,ji,Wi,Bt,ki,Gi,Vi,nn,wi,Li,to,yo,vt,ue,Co,lt,Dl,Nl,ql,Y,P,hi,$i,ui,ci,bi,zo,io,ho,bo,Uo,Ko,Q,Dt,pn,qn,vo,ko,M,Re,Je,ct,li,ri,On,wo,Bl,Cc,re,le,O,F,W,T,y,b,E,v,w,g,k,h,p,f,u,s,a,l,r,o,tn,Qt,Ai,zi,Ui,jt,Xt,Ri,cn,Qi,Zi,fn,_n,Ot,Di,kn,ln,rn,dn,Ft,Xi,wn,Cn,Wt,Mn,hn,sn,Vn,gn,mn,Ni,ie,ht,bn,te,ft,mi,In,Nn,$,$n,ml,pl,_l,mo,po,Yn,eo,_o,Hp,zp,yi,ii,un,Rt,ni,go,Fn,hl,ss,n,A,J,ce,Z,oe,N,Ge,be,$e,we,je,fe,Oe,rt,Fe,Tt,Vt,st,_t,bt,Kt,xt,ai,Ti,gi,Lt,Gt,en,Fi,$t,vi,Hi,Ei,Et,Up,Kp,jp,Wp,Gp,Qp,Yp,Zp,Xp,Jp,xp,$p,e_,t_,i_,n_,o_,l_,r_,s_,a_,u_,c_,f_,d_]}var Pu=class extends K{constructor(e){super(),G(this,e,B3,R3,U,{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},u3,[-1,-1,-1,-1,-1,-1,-1,-1])}},Em=Pu;import{ChromecastState as Bm,PlaybackState as Dm}from"@vkontakte/videoplayer-core";function D3(i){let e,t,n,o,r,l=i[2].default,a=Pe(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=B("svg"),a&&a.c(),t=B("g"),n=B("path"),o=B("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"),ge(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),r=!0},p(f,[p]){a&&a.p&&(!r||p&2)&&Ee(a,l,f,f[1],r?Te(l,f[1],p,null):Ae(f[1]),null),ge(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){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&C(e),a&&a.d(f)}}}function N3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Eu=class extends K{constructor(e){super(),G(this,e,N3,D3,U,{})}},Am=Eu;import{noop as q3}from"@vkontakte/videoplayer-shared";function O3(i){Ie(i,"svelte-6gmlbk",".container.svelte-6gmlbk{display:flex;align-items:center}.expanded.svelte-6gmlbk{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.text.svelte-6gmlbk{font-size:15px;margin-left:8px}")}function Mm(i){let e;return{c(){e=I("span"),e.textContent=`${j("mobile_unmute")}`,c(e,"class","text svelte-6gmlbk")},m(t,n){S(t,e,n)},p:_e,d(t){t&&C(e)}}}function F3(i){let e,t,n,o;var r=i[4];function l(s){return{}}r&&(t=vn(r,l(i)));let a=i[1]&&Mm(i);return{c(){e=I("div"),t&&R(t.$$.fragment),n=D(),a&&a.c(),c(e,"class","container svelte-6gmlbk"),c(e,"aria-hidden","true"),q(e,"expanded",i[1])},m(s,u){S(s,e,u),t&&V(t,e,null),m(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&r!==(r=s[4])){if(t){se();let f=t;_(f.$$.fragment,1,0,()=>{L(f,1)}),ae()}r?(t=vn(r,l(s)),R(t.$$.fragment),d(t.$$.fragment,1),V(t,e,n)):t=null}s[1]?a?a.p(s,u):(a=Mm(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&q(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&&C(e),t&&L(t),a&&a.d()}}}function H3(i){let e,t,n;function o(l){i[6](l)}let r={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[F3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.testId=l[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(s.click=l[2]),a&8&&(s.ariaLabel=l[3]),a&146&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function z3(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=q3}=e,{ref:l=void 0}=e,a,s;function u(f){l=f,t(0,l)}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,r=f.click),"ref"in f&&t(0,l=f.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,a=n?j("tooltip_volume"):j("tooltip_volume_muted"));if(i.$$.dirty&2)e:t(4,s=o?Fo:Am)},[l,o,r,a,s,n,u]}var Au=class extends K{constructor(e){super(),G(this,e,z3,H3,U,{muted:5,expanded:1,click:2,ref:0},O3)}},Mu=Au;function U3(i){let e,t,n,o,r,l=i[2].default,a=Pe(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=B("svg"),a&&a.c(),t=B("path"),n=B("path"),o=B("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"),ge(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,t),m(e,n),m(e,o),r=!0},p(f,[p]){a&&a.p&&(!r||p&2)&&Ee(a,l,f,f[1],r?Te(l,f[1],p,null):Ae(f[1]),null),ge(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){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&C(e),a&&a.d(f)}}}function K3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Vu=class extends K{constructor(e){super(),G(this,e,K3,U3,U,{})}},Vm=Vu;function j3(i){Ie(i,"svelte-tmam00",'svg[data-testid="pip-icon--active"] .hidden-active,svg[data-testid="pip-icon"] .hidden-not-active{visibility:hidden;opacity:0}')}function W3(i){let e,t;return e=new Vm({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function G3(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=r=>{"isActive"in r&&t(0,o=r.isActive)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var Lu=class extends K{constructor(e){super(),G(this,e,G3,W3,U,{isActive:0},j3)}},Lm=Lu;import{noop as Q3}from"@vkontakte/videoplayer-shared";function Y3(i){let e,t;return e=new Lm({props:{isActive:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Z3(i){let e,t,n;function o(l){i[3](l)}let r={testId:"btn-pip",ariaLabel:j("menu_pip"),click:i[2],$$slots:{default:[Y3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&4&&(s.click=l[2]),a&18&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function X3(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=Q3}=e;function l(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"isPictureInPictureActive"in a&&t(1,o=a.isPictureInPictureActive),"click"in a&&t(2,r=a.click)},[n,o,r,l]}var Ru=class extends K{constructor(e){super(),G(this,e,X3,Z3,U,{ref:0,isPictureInPictureActive:1,click:2})}},Rm=Ru;import{throttleFn as J3}from"@vkontakte/videoplayer-shared";function x3(i){Ie(i,"svelte-1tcstu3",".wrapper-bottom.svelte-1tcstu3.svelte-1tcstu3{pointer-events:none;position:absolute;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-1tcstu3>.svelte-1tcstu3{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-1tcstu3.svelte-1tcstu3{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-1tcstu3.svelte-1tcstu3{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-1tcstu3.svelte-1tcstu3{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:4px;left:8px}.wrapper-middle-left.svelte-1tcstu3.svelte-1tcstu3,.wrapper-middle-left-second.svelte-1tcstu3.svelte-1tcstu3,.wrapper-middle-right.svelte-1tcstu3.svelte-1tcstu3{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-1tcstu3.svelte-1tcstu3{left:12px}.wrapper-middle-left-second.svelte-1tcstu3.svelte-1tcstu3{left:64px}.wrapper-middle-right.svelte-1tcstu3.svelte-1tcstu3{right:12px}.controls.svelte-1tcstu3.svelte-1tcstu3{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-1tcstu3 > *:not(:first-child){margin-left:8px}.hidden.svelte-1tcstu3.svelte-1tcstu3{visibility:hidden;opacity:0}.controls-hidden.svelte-1tcstu3.svelte-1tcstu3{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-1tcstu3.svelte-1tcstu3{transition:none}.settings-mobile.svelte-1tcstu3.svelte-1tcstu3{position:absolute;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-1tcstu3.svelte-1tcstu3{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-1tcstu3.svelte-1tcstu3{top:16px}.wrapper-top-left.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:16px}.controls-wrapper.fullscreen.svelte-1tcstu3.svelte-1tcstu3{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-1tcstu3.svelte-1tcstu3{left:44px}.wrapper-middle-left-second.fullscreen.svelte-1tcstu3.svelte-1tcstu3{left:96px}.wrapper-middle-right.fullscreen.svelte-1tcstu3.svelte-1tcstu3{right:44px}.controls-wrapper.fullscreen.svelte-1tcstu3.svelte-1tcstu3{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function Nm(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 qm(i){let e,t,n,o,r,l,a,s,u,f,p,h,k,g,w,v,E,b=(!i[51]||i[53])&&Om(i),y=wt(i[56]),T=[];for(let Z=0;Z<y.length;Z+=1)T[Z]=Fm(Nm(i,y,Z));let W=Z=>_(T[Z],1,1,()=>{T[Z]=null}),F=i[36]&&Hm(i),O=i[37]&&zm(i),le=i[57]&&Um(i),re=i[39]&&Km(i),H=i[8]&&jm(i),A=i[34]&&Wm(i),J=i[33]&&Gm(i),Y=i[8]&&Qm(i),ce=i[96]&&!i[29]&&Ym(i);return{c(){e=I("div"),t=D(),n=I("div"),b&&b.c(),o=D(),r=I("div");for(let Z=0;Z<T.length;Z+=1)T[Z].c();l=D(),F&&F.c(),a=D(),O&&O.c(),s=D(),le&&le.c(),u=D(),re&&re.c(),f=D(),p=I("div"),H&&H.c(),h=D(),A&&A.c(),k=D(),J&&J.c(),g=D(),Y&&Y.c(),w=D(),ce&&ce.c(),v=ut(),c(e,"class","overlay-mobile svelte-1tcstu3"),q(e,"hidden",!i[42]),c(n,"class","wrapper-top-left svelte-1tcstu3"),q(n,"hidden",!i[3]),q(n,"fullscreen",i[52]),c(r,"class","wrapper-top-right svelte-1tcstu3"),q(r,"hidden",!i[3]&&!i[27]),q(r,"fullscreen",i[52]),c(p,"class","wrapper-middle svelte-1tcstu3"),q(p,"hidden",!i[3]||i[29])},m(Z,oe){S(Z,e,oe),S(Z,t,oe),S(Z,n,oe),b&&b.m(n,null),S(Z,o,oe),S(Z,r,oe);for(let P=0;P<T.length;P+=1)T[P]&&T[P].m(r,null);m(r,l),F&&F.m(r,null),m(r,a),O&&O.m(r,null),m(r,s),le&&le.m(r,null),m(r,u),re&&re.m(r,null),S(Z,f,oe),S(Z,p,oe),H&&H.m(p,null),m(p,h),A&&A.m(p,null),m(p,k),J&&J.m(p,null),m(p,g),Y&&Y.m(p,null),S(Z,w,oe),ce&&ce.m(Z,oe),S(Z,v,oe),E=!0},p(Z,oe){if((!E||oe[1]&2048)&&q(e,"hidden",!Z[42]),!Z[51]||Z[53]?b?(b.p(Z,oe),oe[1]&5242880&&d(b,1)):(b=Om(Z),b.c(),d(b,1),b.m(n,null)):b&&(se(),_(b,1,1,()=>{b=null}),ae()),(!E||oe[0]&8)&&q(n,"hidden",!Z[3]),(!E||oe[1]&2097152)&&q(n,"fullscreen",Z[52]),oe[1]&33554432){y=wt(Z[56]);let P;for(P=0;P<y.length;P+=1){let N=Nm(Z,y,P);T[P]?(T[P].p(N,oe),d(T[P],1)):(T[P]=Fm(N),T[P].c(),d(T[P],1),T[P].m(r,l))}for(se(),P=y.length;P<T.length;P+=1)W(P);ae()}Z[36]?F?(F.p(Z,oe),oe[1]&32&&d(F,1)):(F=Hm(Z),F.c(),d(F,1),F.m(r,a)):F&&(se(),_(F,1,1,()=>{F=null}),ae()),Z[37]?O?(O.p(Z,oe),oe[1]&64&&d(O,1)):(O=zm(Z),O.c(),d(O,1),O.m(r,s)):O&&(se(),_(O,1,1,()=>{O=null}),ae()),Z[57]?le?(le.p(Z,oe),oe[1]&67108864&&d(le,1)):(le=Um(Z),le.c(),d(le,1),le.m(r,u)):le&&(se(),_(le,1,1,()=>{le=null}),ae()),Z[39]?re?(re.p(Z,oe),oe[1]&256&&d(re,1)):(re=Km(Z),re.c(),d(re,1),re.m(r,null)):re&&(se(),_(re,1,1,()=>{re=null}),ae()),(!E||oe[0]&134217736)&&q(r,"hidden",!Z[3]&&!Z[27]),(!E||oe[1]&2097152)&&q(r,"fullscreen",Z[52]),Z[8]?H?(H.p(Z,oe),oe[0]&256&&d(H,1)):(H=jm(Z),H.c(),d(H,1),H.m(p,h)):H&&(se(),_(H,1,1,()=>{H=null}),ae()),Z[34]?A?(A.p(Z,oe),oe[1]&8&&d(A,1)):(A=Wm(Z),A.c(),d(A,1),A.m(p,k)):A&&(se(),_(A,1,1,()=>{A=null}),ae()),Z[33]?J?(J.p(Z,oe),oe[1]&4&&d(J,1)):(J=Gm(Z),J.c(),d(J,1),J.m(p,g)):J&&(se(),_(J,1,1,()=>{J=null}),ae()),Z[8]?Y?(Y.p(Z,oe),oe[0]&256&&d(Y,1)):(Y=Qm(Z),Y.c(),d(Y,1),Y.m(p,null)):Y&&(se(),_(Y,1,1,()=>{Y=null}),ae()),(!E||oe[0]&536870920)&&q(p,"hidden",!Z[3]||Z[29]),Z[96]&&!Z[29]?ce?(ce.p(Z,oe),oe[0]&536870912&&d(ce,1)):(ce=Ym(Z),ce.c(),d(ce,1),ce.m(v.parentNode,v)):ce&&(se(),_(ce,1,1,()=>{ce=null}),ae())},i(Z){if(!E){d(b);for(let oe=0;oe<y.length;oe+=1)d(T[oe]);d(F),d(O),d(le),d(re),d(H),d(A),d(J),d(Y),d(ce),E=!0}},o(Z){_(b),T=T.filter(Boolean);for(let oe=0;oe<T.length;oe+=1)_(T[oe]);_(F),_(O),_(le),_(re),_(H),_(A),_(J),_(Y),_(ce),E=!1},d(Z){Z&&(C(e),C(t),C(n),C(o),C(r),C(f),C(p),C(w),C(v)),b&&b.d(),Si(T,Z),F&&F.d(),O&&O.d(),le&&le.d(),re&&re.d(),H&&H.d(),A&&A.d(),J&&J.d(),Y&&Y.d(),ce&&ce.d(Z)}}}function Om(i){let e,t,n;function o(l){i[130](l)}let r={muted:i[54],expanded:i[51]&&!i[70]&&i[55],click:i[106]};return i[20].volume!==void 0&&(r.ref=i[20].volume),e=new Mu({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&8388608&&(s.muted=l[54]),a[1]&17825792&&(s.expanded=l[51]&&!l[70]&&l[55]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].volume,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Fm(i){let e,t;return e=new Fr({props:{iconUrl:i[170],ariaLabel:i[171]??i[174],testId:i[172],onClick:i[173]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[1]&33554432&&(r.iconUrl=n[170]),o[1]&33554432&&(r.ariaLabel=n[171]??n[174]),o[1]&33554432&&(r.testId=n[172]),o[1]&33554432&&(r.onClick=n[173]),e.$set(r)},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(l){i[131](l)}let r={isMobile:!0,click:i[104],state:i[28]};return i[20].chromecast!==void 0&&(r.ref=i[20].chromecast),e=new Ar({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&268435456&&(s.state=l[28]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].chromecast,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function zm(i){let e,t,n;function o(l){i[132](l)}let r={click:i[105],isPictureInPictureActive:i[26]};return i[20].pip!==void 0&&(r.ref=i[20].pip),e=new Rm({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&67108864&&(s.isPictureInPictureActive=l[26]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].pip,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Um(i){let e,t,n;function o(l){i[133](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new wl({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Km(i){let e,t,n;function o(l){i[134](l)}let r={click:i[64],targetUrl:i[7],logoClickable:i[6]};return i[20].vkLogo!==void 0&&(r.ref=i[20].vkLogo),e=new Er({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&128&&(s.targetUrl=l[7]),a[0]&64&&(s.logoClickable=l[6]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].vkLogo,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function jm(i){let e,t,n;function o(l){i[135](l)}let r={click:i[13],type:"prev",disabled:!i[10],isMobile:!0};return i[20].prevButton!==void 0&&(r.ref=i[20].prevButton),e=new ul({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&8192&&(s.click=l[13]),a[0]&1024&&(s.disabled=!l[10]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].prevButton,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Wm(i){let e,t,n;function o(l){i[136](l)}let r={disabled:i[49],click:i[63],isMobile:!0,isPlaying:i[31]};return i[20].playButton!==void 0&&(r.ref=i[20].playButton),e=new Sl({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&262144&&(s.disabled=l[49]),a[1]&1&&(s.isPlaying=l[31]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].playButton,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Gm(i){let e,t,n;function o(l){i[137](l)}let r={disabled:i[48],click:i[107],isMobile:!0};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new Il({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.disabled=l[48]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].replayButton,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Qm(i){let e,t,n;function o(l){i[138](l)}let r={click:i[12],type:"next",disabled:!i[9],isMobile:!0};return i[20].nextButton!==void 0&&(r.ref=i[20].nextButton),e=new ul({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&4096&&(s.click=l[12]),a[0]&512&&(s.disabled=!l[9]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].nextButton,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Ym(i){let e,t,n,o,r=i[100]&&$3(i),l=i[98]&&e5(i),a=i[99]&&t5(i);return{c(){r&&r.c(),e=D(),l&&l.c(),t=D(),a&&a.c(),n=ut()},m(s,u){r&&r.m(s,u),S(s,e,u),l&&l.m(s,u),S(s,t,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){s[100]&&r.p(s,u),s[98]&&l.p(s,u),s[99]&&a.p(s,u)},i(s){o||(d(r),d(l),d(a),o=!0)},o(s){_(r),_(l),_(a),o=!1},d(s){s&&(C(e),C(t),C(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function $3(i){let e,t,n,o,r,l;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 Or({props:s}),me.push(()=>qe(t,"ref",a)),{c(){e=I("div"),R(t.$$.fragment),c(e,"class","wrapper-middle-left svelte-1tcstu3"),q(e,"fullscreen",i[52]),q(e,"hidden",!i[3])},m(u,f){S(u,e,f),V(t,e,null),o=!0,r||(l=de(e,"click",i[108]),r=!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)&&q(e,"fullscreen",u[52]),(!o||f[0]&8)&&q(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&C(e),L(t),r=!1,l()}}}function e5(i){let e,t,n,o,r;function l(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 Nr({props:a}),me.push(()=>qe(t,"ref",l)),{c(){e=I("div"),R(t.$$.fragment),c(e,"class",o=Pc(i[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-1tcstu3"),q(e,"fullscreen",i[52]),q(e,"hidden",!i[3]&&!i[58])},m(s,u){S(s,e,u),V(t,e,null),r=!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),(!r||u[1]&2097152)&&q(e,"fullscreen",s[52]),(!r||u[0]&8|u[1]&134217728)&&q(e,"hidden",!s[3]&&!s[58])},i(s){r||(d(t.$$.fragment,s),r=!0)},o(s){_(t.$$.fragment,s),r=!1},d(s){s&&C(e),L(t)}}}function t5(i){let e,t,n,o,r,l;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 Dr({props:s}),me.push(()=>qe(t,"ref",a)),{c(){e=I("div"),R(t.$$.fragment),c(e,"class","wrapper-middle-right svelte-1tcstu3"),q(e,"fullscreen",i[52]),q(e,"hidden",!i[3])},m(u,f){S(u,e,f),V(t,e,null),o=!0,r||(l=de(e,"click",i[109]),r=!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)&&q(e,"fullscreen",u[52]),(!o||f[0]&8)&&q(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&C(e),L(t),r=!1,l()}}}function Zm(i){let e,t,n,o,r,l=i[53]&&Xm(i),a=i[32]&&Jm(i);return o=new Lr({props:{position:i[59],duration:i[60]}}),{c(){l&&l.c(),e=D(),a&&a.c(),t=D(),n=I("div"),R(o.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile svelte-1tcstu3"),q(n,"fullscreen",i[52])},m(s,u){l&&l.m(s,u),S(s,e,u),a&&a.m(s,u),S(s,t,u),S(s,n,u),V(o,n,null),r=!0},p(s,u){s[53]?l?(l.p(s,u),u[1]&4194304&&d(l,1)):(l=Xm(s),l.c(),d(l,1),l.m(e.parentNode,e)):l&&(se(),_(l,1,1,()=>{l=null}),ae()),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&&(se(),_(a,1,1,()=>{a=null}),ae());let f={};u[1]&268435456&&(f.position=s[59]),u[1]&536870912&&(f.duration=s[60]),o.$set(f),(!r||u[1]&2097152)&&q(n,"fullscreen",s[52])},i(s){r||(d(l),d(a),d(o.$$.fragment,s),r=!0)},o(s){_(l),_(a),_(o.$$.fragment,s),r=!1},d(s){s&&(C(e),C(t),C(n)),l&&l.d(s),a&&a.d(s),L(o)}}}function Xm(i){let e,t,n,o;function r(a){i[142](a)}let l={muted:i[54],expanded:!1,click:i[106]};return i[20].volume!==void 0&&(l.ref=i[20].volume),t=new Mu({props:l}),me.push(()=>qe(t,"ref",r)),{c(){e=I("div"),R(t.$$.fragment),c(e,"class","wrapper-top-right svelte-1tcstu3"),q(e,"fullscreen",i[52])},m(a,s){S(a,e,s),V(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)&&q(e,"fullscreen",a[52])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&C(e),L(t)}}}function Jm(i){let e,t,n,o;function r(a){i[143](a)}let l={disabled:i[49],click:i[63],isMobile:!0,isPlaying:!i[32]};return i[20].playButton!==void 0&&(l.ref=i[20].playButton),t=new Sl({props:l}),me.push(()=>qe(t,"ref",r)),{c(){e=I("div"),R(t.$$.fragment),c(e,"class","wrapper-middle svelte-1tcstu3")},m(a,s){S(a,e,s),V(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&&C(e),L(t)}}}function i5(i){let e,t,n;function o(l){i[144](l)}let r={disabled:i[48],$$slots:{default:[n5]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new Mt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.disabled=l[48]),a[1]&131072|a[5]&4194304&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].replayButton,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function n5(i){let e,t;return e=new Il({props:{disabled:i[48],click:i[95]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[1]&131072&&(r.disabled=n[48]),e.$set(r)},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(l){i[145](l)}let r={$$slots:{default:[o5]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(r.ref=i[20].liveButton),e=new Mt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&524288|a[1]&16384|a[5]&4194304&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].liveButton,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function o5(i){let e,t;return e=new Mr({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&524288&&(r.isActiveLive=n[19]),o[1]&16384&&(r.ariaLabel=n[45]),e.$set(r)},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(l){i[146](l)}let r={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&&(r.ref=i[20].time),e=new wr({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&16&&(s.showDuration=l[35]),a[0]&16|a[1]&1342177280&&(s.position=l[4]?l[59]:l[61]),a[0]&16|a[1]&536870912|a[2]&1&&(s.duration=l[4]?l[60]:l[62]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].time,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function e0(i){let e,t,n,o;return n=new Br({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=I("div"),e.textContent="\xB7",t=D(),R(n.$$.fragment),c(e,"aria-hidden","true")},m(r,l){S(r,e,l),S(r,t,l),V(n,r,l),o=!0},p(r,l){let a={};l[1]&1073741824&&(a.position=r[61]),l[2]&1&&(a.duration=r[62]),n.$set(a)},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){_(n.$$.fragment,r),o=!1},d(r){r&&(C(e),C(t)),L(n,r)}}}function l5(i){let e,t,n=i[43]&&e0(i);return{c(){n&&n.c(),e=ut()},m(o,r){n&&n.m(o,r),S(o,e,r),t=!0},p(o,r){o[43]?n?(n.p(o,r),r[1]&4096&&d(n,1)):(n=e0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(se(),_(n,1,1,()=>{n=null}),ae())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&C(e),n&&n.d(o)}}}function t0(i){let e,t,n;function o(l){i[149](l)}let r={$$slots:{default:[r5]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(r.ref=i[20].settings),e=new Mt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&4194304|a[5]&4194304&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].settings,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function r5(i){let e,t,n;function o(l){i[148](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new wl({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function i0(i){let e,t,n;function o(l){i[150](l)}let r={$$slots:{default:[s5]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(r.ref=i[20].fullscreen),e=new Mt({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&16384|a[1]&2097152|a[5]&4194304&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].fullscreen,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function s5(i){let e,t;return e=new Pr({props:{click:i[14],isFullscreen:i[52]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&16384&&(r.click=n[14]),o[1]&2097152&&(r.isFullscreen=n[52]),e.$set(r)},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 r(a){i[154](a)}let l={supportLink:i[11],returnFocus:i[15]};return i[21]!==void 0&&(l.ref=i[21]),t=new kr({props:l}),me.push(()=>qe(t,"ref",r)),{c(){e=I("div"),R(t.$$.fragment),c(e,"class","settings-mobile svelte-1tcstu3")},m(a,s){S(a,e,s),V(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&&C(e),L(t)}}}function a5(i){let e,t,n;function o(l){i[155](l)}let r={};return i[20].interactiveTimeIndicator!==void 0&&(r.ref=i[20].interactiveTimeIndicator),e=new Qr({props:r}),me.push(()=>qe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&1048576&&(t=!0,s.ref=l[20].interactiveTimeIndicator,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function u5(i){let e,t,n,o,r,l,a,s,u,f,p,h,k,g,w,v,E,b,y,T=!i[4]&&qm(i),W=i[4]&&i[30]!=="inactive"&&Zm(i),F=i[96]&&i5(i),O=!i[4]&&i[25]&&xm(i),le=i[41]&&$m(i);function re(P){i[147](P)}let H={className:"w-max",disabled:!i[43],$$slots:{default:[l5]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(H.ref=i[20].episodes),u=new Mt({props:H}),me.push(()=>qe(u,"ref",re));let A=i[38]&&t0(i),J=i[40]&&i0(i);function Y(P){i[152](P)}let ce={isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]};i[20].timeline!==void 0&&(ce.ref=i[20].timeline),g=new Rr({props:ce}),me.push(()=>qe(g,"ref",Y));let Z=i[23]&&n0(i),oe=i[101]&&a5(i);return{c(){T&&T.c(),e=D(),W&&W.c(),t=D(),n=I("div"),o=I("div"),r=I("div"),F&&F.c(),l=D(),O&&O.c(),a=D(),le&&le.c(),s=D(),R(u.$$.fragment),p=D(),A&&A.c(),h=D(),J&&J.c(),k=D(),R(g.$$.fragment),v=D(),Z&&Z.c(),E=D(),oe&&oe.c(),b=ut(),c(r,"class","controls svelte-1tcstu3"),q(r,"mobile",!0),c(o,"class","controls-wrapper svelte-1tcstu3"),q(o,"fullscreen",i[52]),c(n,"class","wrapper-bottom svelte-1tcstu3"),q(n,"hidden",i[1]),q(n,"controls-hidden",!i[3]),q(n,"no-smooth",i[2]),q(n,"mobile",!0)},m(P,N){T&&T.m(P,N),S(P,e,N),W&&W.m(P,N),S(P,t,N),S(P,n,N),m(n,o),m(o,r),F&&F.m(r,null),m(r,l),O&&O.m(r,null),m(r,a),le&&le.m(r,null),m(r,s),V(u,r,null),m(r,p),A&&A.m(r,null),m(r,h),J&&J.m(r,null),i[151](r),m(o,k),V(g,o,null),i[153](n),S(P,v,N),Z&&Z.m(P,N),S(P,E,N),oe&&oe.m(P,N),S(P,b,N),y=!0},p(P,N){P[4]?T&&(se(),_(T,1,1,()=>{T=null}),ae()):T?(T.p(P,N),N[0]&16&&d(T,1)):(T=qm(P),T.c(),d(T,1),T.m(e.parentNode,e)),P[4]&&P[30]!=="inactive"?W?(W.p(P,N),N[0]&1073741840&&d(W,1)):(W=Zm(P),W.c(),d(W,1),W.m(t.parentNode,t)):W&&(se(),_(W,1,1,()=>{W=null}),ae()),P[96]&&F.p(P,N),!P[4]&&P[25]?O?(O.p(P,N),N[0]&33554448&&d(O,1)):(O=xm(P),O.c(),d(O,1),O.m(r,a)):O&&(se(),_(O,1,1,()=>{O=null}),ae()),P[41]?le?(le.p(P,N),N[1]&1024&&d(le,1)):(le=$m(P),le.c(),d(le,1),le.m(r,s)):le&&(se(),_(le,1,1,()=>{le=null}),ae());let Me={};N[1]&4096&&(Me.disabled=!P[43]),N[1]&1073745920|N[2]&1|N[5]&4194304&&(Me.$$scope={dirty:N,ctx:P}),!f&&N[0]&1048576&&(f=!0,Me.ref=P[20].episodes,Ne(()=>f=!1)),u.$set(Me),P[38]?A?(A.p(P,N),N[1]&128&&d(A,1)):(A=t0(P),A.c(),d(A,1),A.m(r,h)):A&&(se(),_(A,1,1,()=>{A=null}),ae()),P[40]?J?(J.p(P,N),N[1]&512&&d(J,1)):(J=i0(P),J.c(),d(J,1),J.m(r,null)):J&&(se(),_(J,1,1,()=>{J=null}),ae());let Ue={};N[0]&16&&(Ue.isAds=P[4]),N[0]&32&&(Ue.canRewindLive=P[5]),N[0]&16777216&&(Ue.isRewindableLive=P[24]),!w&&N[0]&1048576&&(w=!0,Ue.ref=P[20].timeline,Ne(()=>w=!1)),g.$set(Ue),(!y||N[1]&2097152)&&q(o,"fullscreen",P[52]),(!y||N[0]&2)&&q(n,"hidden",P[1]),(!y||N[0]&8)&&q(n,"controls-hidden",!P[3]),(!y||N[0]&4)&&q(n,"no-smooth",P[2]),P[23]?Z?(Z.p(P,N),N[0]&8388608&&d(Z,1)):(Z=n0(P),Z.c(),d(Z,1),Z.m(E.parentNode,E)):Z&&(se(),_(Z,1,1,()=>{Z=null}),ae()),P[101]&&oe.p(P,N)},i(P){y||(d(T),d(W),d(F),d(O),d(le),d(u.$$.fragment,P),d(A),d(J),d(g.$$.fragment,P),d(Z),d(oe),y=!0)},o(P){_(T),_(W),_(F),_(O),_(le),_(u.$$.fragment,P),_(A),_(J),_(g.$$.fragment,P),_(Z),_(oe),y=!1},d(P){P&&(C(e),C(t),C(n),C(v),C(E),C(b)),T&&T.d(P),W&&W.d(P),F&&F.d(),O&&O.d(),le&&le.d(),L(u),A&&A.d(),J&&J.d(),i[151](null),L(g),i[153](null),Z&&Z.d(P),oe&&oe.d(P)}}}function c5(i,e,t){let n,o,r,l,a,s,u,f,p,h,k,g,w,v,E,b,y,T,W,F,O,le,re,H,A,J,Y,ce,Z,oe,P,N,Me,Ue,Ge,Qe,Le,{bottomHidden:be}=e,{bottomNoSmooth:x}=e,{showControls:Se}=e,{controlsElementRef:$e=void 0}=e,{isAds:He=!1}=e,{canRewindLive:it}=e,{logoClickable:we}=e,{logoHidden:Ye}=e,{logoTargetUrl:ot=""}=e,{showNextPrevButtons:je}=e,{nextButtonActive:Ke}=e,{prevButtonActive:Xe}=e,{isOneVideoPlaylist:fe=!1}=e,{supportLink:Ce}=e,{customFullscreenSupported:pe=!0}=e,{playNextVideo:Oe}=e,{playPrevVideo:ee}=e,{repeatPlaylist:ke}=e,{toggleFullscreen:rt}=e,{returnFocus:ye}=e,{seekToInteractive:dt}=e,{toggleGraph:Fe}=e,{playPrevChapter:mt}=e,{onDisabledPlayPrevChapterClick:kt}=e,{onDisabledSeekToInteractiveClick:Tt}=e,Ze=nt(),qt=Ln(),Vt=Nt(),Ct=Ze.actions.internal.toggleMuted,si=Ze.actions.internal.togglePlay,st=Ze.actions.internal.pause,gt=Ze.callbacks?.onAudioDoesNotExistHint,ve=Ze.callbacks?.onAudioDisabledHint,_t=Ze.playerPhase;z(i,_t,$=>t(126,O=$));let St=Ze.state.duration$;z(i,St,$=>t(62,Le=$));let Jt=Ze.state.positionWithScrubbing$;z(i,Jt,$=>t(61,Qe=$));let bt=Ze.state.playbackState$;z(i,bt,$=>t(121,h=$));let zt=Ze.state.isAudioAvailable$;z(i,zt,$=>t(51,k=$));let Ut=Ze.state.isAudioDisabled,Kt=Ze.state.isEnded$;z(i,Kt,$=>t(127,re=$));let Oi=Ze.state.isLive$;z(i,Oi,$=>t(25,b=$));let xi=Ze.state.muted$;z(i,xi,$=>t(54,Z=$));let xt=Ze.state.isActiveLive$;z(i,xt,$=>t(124,v=$));let Pi=Ze.state.isRewindableLive$;z(i,Pi,$=>t(24,E=$));let an=Ze.ui.scrubbingInProgress;z(i,an,$=>t(29,le=$));let hi=Ze.ui.mobileNotReportControlHidden$;z(i,hi,$=>t(27,W=$));let $i=Ze.ui.isPictureInPictureActive$;z(i,$i,$=>t(26,T=$));let ai=Ze.ui.pictureInPictureType$;z(i,ai,$=>t(125,y=$));let Ti=Ze.ui.mobileUnmuteButtonExpanded;z(i,Ti,$=>t(55,oe=$));let ui=Ze.ui.mobileUnmuteButtonVisible;z(i,ui,$=>t(53,ce=$));let gi=Ze.ui.settingsMenuVisible;z(i,gi,$=>t(23,p=$));let ci=Ze.ui.settingsMenuOpenedByKeyboard;z(i,ci,$=>t(120,f=$));let bi=Ze.ui.controls,Lt=Ze.actions.internal.getVideoEpisodes(),Gt=Ze.webApi.pictureInPictureApi,en=Ze.state.chromecastState$;z(i,en,$=>t(28,F=$));let Fi=Ze.state.crashed$;z(i,Fi,$=>t(57,N=$));let $t=bi.disabledControls$;z(i,$t,$=>t(128,A=$));let vi=Ze.ui.startedByKeyboard$;z(i,vi,$=>t(119,u=$));let Hi=Ze.ads.duration;z(i,Hi,$=>t(60,Ge=$));let Ei=Ze.ads.position;z(i,Ei,$=>t(59,Ue=$));let Et=Ze.ads.playbackState;z(i,Et,$=>t(30,H=$));let tn=Ze.ui.isFullscreen;z(i,tn,$=>t(52,Y=$));let Qt=Ze.ui.playerSize;z(i,Qt,$=>t(123,w=$));let Ai=Ze.ui.additionalButtons$;z(i,Ai,$=>t(56,P=$));let zi=Ze.actions.internal.getVideoElement,Ui=Ze.actions.internal.replayInteractive,jt=Ze.state.isInteractive,fi=Ze.state.isInteractiveTime$;z(i,fi,$=>t(122,g=$));let di=Ze.state.showInteractiveGraph,ei=Ze.state.showSeekToInteractive,Yt=Ze.state.showPlayPrevChapter,At=Ze.state.showInteractiveTimeIndicator,ti=Ze.state.graphIsOpened$;z(i,ti,$=>t(58,Me=$));let Mi=qt.seekToInteractiveDisabledTooltip$;z(i,Mi,$=>t(129,J=$));let yi,Zt,ii,Ki,ji,un,Wi,Rt,Bt,ki,ni,Gi,Vi,nn,wi,Li,tt,oi,Xt,ze={},Ri=J3(Wr,260,{leading:!1}),cn=()=>Ze.actions.internal.toggleChromecast();function Qi(){ro({isAudioDisabled:Ut,audioDisabledHintCallback:ve,isAudioAvailable:k,audioIsNotExistHintCallback:gt})&&Ct()}async function Bi(){Gt?.isActive()?await Gt?.remove():await Gt?.request()}function Yi(){!Ut&&k&&ui.set(!1),Qi()}let Zi=fe?si:ke,fn="",_n=($,$n)=>{if(!$){t(45,fn=j("tooltip_live"));return}$n===Dm.PAUSED&&t(45,fn=j("tooltip_play"))},Ot,Di,on=()=>{s&&kt(yi)},kn=()=>{r&&Tt(Zt)};function ln($){i.$$.not_equal(ze.volume,$)&&(ze.volume=$,t(20,ze))}function rn($){i.$$.not_equal(ze.chromecast,$)&&(ze.chromecast=$,t(20,ze))}function dn($){i.$$.not_equal(ze.pip,$)&&(ze.pip=$,t(20,ze))}function Ft($){Di=$,t(22,Di)}function Xi($){i.$$.not_equal(ze.vkLogo,$)&&(ze.vkLogo=$,t(20,ze))}function wn($){i.$$.not_equal(ze.prevButton,$)&&(ze.prevButton=$,t(20,ze))}function Cn($){i.$$.not_equal(ze.playButton,$)&&(ze.playButton=$,t(20,ze))}function Sn($){i.$$.not_equal(ze.replayButton,$)&&(ze.replayButton=$,t(20,ze))}function Wt($){i.$$.not_equal(ze.nextButton,$)&&(ze.nextButton=$,t(20,ze))}function Mn($){i.$$.not_equal(ze.playPrevChapterButton,$)&&(ze.playPrevChapterButton=$,t(20,ze))}function hn($){i.$$.not_equal(ze.interactiveGraphButton,$)&&(ze.interactiveGraphButton=$,t(20,ze))}function sn($){i.$$.not_equal(ze.seekToInteractiveButton,$)&&(ze.seekToInteractiveButton=$,t(20,ze))}function Vn($){i.$$.not_equal(ze.volume,$)&&(ze.volume=$,t(20,ze))}function gn($){i.$$.not_equal(ze.playButton,$)&&(ze.playButton=$,t(20,ze))}function mn($){i.$$.not_equal(ze.replayButton,$)&&(ze.replayButton=$,t(20,ze))}function Ni($){i.$$.not_equal(ze.liveButton,$)&&(ze.liveButton=$,t(20,ze))}function ie($){i.$$.not_equal(ze.time,$)&&(ze.time=$,t(20,ze))}function ht($){i.$$.not_equal(ze.episodes,$)&&(ze.episodes=$,t(20,ze))}function bn($){Di=$,t(22,Di)}function te($){i.$$.not_equal(ze.settings,$)&&(ze.settings=$,t(20,ze))}function ft($){i.$$.not_equal(ze.fullscreen,$)&&(ze.fullscreen=$,t(20,ze))}function mi($){me[$?"unshift":"push"](()=>{oi=$,t(44,oi)})}function In($){i.$$.not_equal(ze.timeline,$)&&(ze.timeline=$,t(20,ze))}function Nn($){me[$?"unshift":"push"](()=>{$e=$,t(0,$e)})}function Qn($){Ot=$,t(21,Ot)}function fo($){i.$$.not_equal(ze.interactiveTimeIndicator,$)&&(ze.interactiveTimeIndicator=$,t(20,ze))}i.$$set=$=>{"bottomHidden"in $&&t(1,be=$.bottomHidden),"bottomNoSmooth"in $&&t(2,x=$.bottomNoSmooth),"showControls"in $&&t(3,Se=$.showControls),"controlsElementRef"in $&&t(0,$e=$.controlsElementRef),"isAds"in $&&t(4,He=$.isAds),"canRewindLive"in $&&t(5,it=$.canRewindLive),"logoClickable"in $&&t(6,we=$.logoClickable),"logoHidden"in $&&t(110,Ye=$.logoHidden),"logoTargetUrl"in $&&t(7,ot=$.logoTargetUrl),"showNextPrevButtons"in $&&t(8,je=$.showNextPrevButtons),"nextButtonActive"in $&&t(9,Ke=$.nextButtonActive),"prevButtonActive"in $&&t(10,Xe=$.prevButtonActive),"isOneVideoPlaylist"in $&&t(111,fe=$.isOneVideoPlaylist),"supportLink"in $&&t(11,Ce=$.supportLink),"customFullscreenSupported"in $&&t(112,pe=$.customFullscreenSupported),"playNextVideo"in $&&t(12,Oe=$.playNextVideo),"playPrevVideo"in $&&t(13,ee=$.playPrevVideo),"repeatPlaylist"in $&&t(113,ke=$.repeatPlaylist),"toggleFullscreen"in $&&t(14,rt=$.toggleFullscreen),"returnFocus"in $&&t(15,ye=$.returnFocus),"seekToInteractive"in $&&t(16,dt=$.seekToInteractive),"toggleGraph"in $&&t(17,Fe=$.toggleGraph),"playPrevChapter"in $&&t(18,mt=$.playPrevChapter),"onDisabledPlayPrevChapterClick"in $&&t(114,kt=$.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in $&&t(115,Tt=$.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32)e:Zt=j(J);if(i.$$.dirty[4]&16)e:t(118,n=A.has("EPISODE_BUTTON"));if(i.$$.dirty[4]&16)e:t(50,o=A.has("GRAPH_BUTTON"));if(i.$$.dirty[4]&16)e:t(46,r=A.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[4]&16)e:t(49,l=A.has("PLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(48,a=A.has("REPLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(47,s=A.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[3]&268435456)e:t(31,ii=h===Dm.PLAYING);if(i.$$.dirty[0]&1073741824)e:t(32,Ki=H==="paused");if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(33,ji=re&&!He&&!jt);if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(34,un=!re||He);if(i.$$.dirty[3]&1073741824)e:t(116,Wi=w.width>300);if(i.$$.dirty[3]&1073741824)e:t(35,Rt=w.width>400);if(i.$$.dirty[0]&536870912)e:t(117,Bt=le);if(i.$$.dirty[0]&469762048|i.$$.dirty[4]&2)e:t(36,ki=F!==Bm.NOT_AVAILABLE&&!(T&&y===1)&&!W&&!jt);if(i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6)e:{let $=O==="waitingLive";t(37,ni=!!Gt&&F!==Bm.CONNECTED&&!W&&(y===1&&$||!$)&&!Bt&&!jt)}if(i.$$.dirty[3]&16777216)e:t(38,Gi=!Bt);if(i.$$.dirty[3]&1073872896)e:t(39,Vi=!Ye&&w.width>350);if(i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2)e:t(40,nn=Vt.features.fullscreen&&!(T&&y===1)&&(jt?pe:!0)&&!Bt);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040)e:t(41,wi=(!b||He)&&w.width>260&&!Bt&&!(Vt.features.interactiveHideTime&&jt));if(i.$$.dirty[0]&8388616)e:t(42,Li=p||Se);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256)e:t(43,tt=!He&&!b&&!!Lt?.length&&Wi&&!n&&!Bt);if(i.$$.dirty[0]&16777216|i.$$.dirty[4]&1)e:t(19,Xt=!E||v);if(i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736)e:Ri(zi(),bi,ze,Se);if(i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456)e:_n(Xt,h);if(i.$$.dirty[0]&12582912)e:il(Di,p,ci);if(i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728)e:Do(Ot,p,f);if(i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864)e:Gr(vi,u,ze.playButton)};e:yi=j(Ze.state.playPrevChapterDisabledTooltip);return[$e,be,x,Se,He,it,we,ot,je,Ke,Xe,Ce,Oe,ee,rt,ye,dt,Fe,mt,Xt,ze,Ot,Di,p,E,b,T,W,F,le,H,ii,Ki,ji,un,Rt,ki,ni,Gi,Vi,nn,wi,Li,tt,oi,fn,r,s,a,l,o,k,Y,ce,Z,oe,P,N,Me,Ue,Ge,Qe,Le,si,st,_t,St,Jt,bt,zt,Ut,Kt,Oi,xi,xt,Pi,an,hi,$i,ai,Ti,ui,gi,ci,Lt,en,Fi,$t,vi,Hi,Ei,Et,tn,Qt,Ai,Ui,jt,fi,di,ei,Yt,At,ti,Mi,cn,Bi,Yi,Zi,on,kn,Ye,fe,pe,ke,kt,Tt,Wi,Bt,n,u,f,h,g,w,v,y,O,re,A,J,ln,rn,dn,Ft,Xi,wn,Cn,Sn,Wt,Mn,hn,sn,Vn,gn,mn,Ni,ie,ht,bn,te,ft,mi,In,Nn,Qn,fo]}var Bu=class extends K{constructor(e){super(),G(this,e,c5,u5,U,{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},x3,[-1,-1,-1,-1,-1,-1])}},o0=Bu;function f5(i){let e,t,n;function o(l){i[28](l)}let r={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&&(r.controlsElementRef=i[0]),e=new Em({props:r}),me.push(()=>qe(e,"controlsElementRef",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a&2&&(s.bottomHidden=l[1]),a&4&&(s.bottomNoSmooth=l[2]),a&8&&(s.showControls=l[3]),a&16&&(s.isAds=l[4]),a&32&&(s.canRewindLive=l[5]),a&64&&(s.logoClickable=l[6]),a&128&&(s.logoHidden=l[7]),a&256&&(s.logoTargetUrl=l[8]),a&512&&(s.showNextPrevButtons=l[9]),a&1024&&(s.nextButtonActive=l[10]),a&2048&&(s.prevButtonActive=l[11]),a&4096&&(s.isOneVideoPlaylist=l[12]),a&8192&&(s.supportLink=l[13]),a&16384&&(s.customFullscreenSupported=l[14]),a&32768&&(s.playNextVideo=l[15]),a&65536&&(s.playPrevVideo=l[16]),a&131072&&(s.repeatPlaylist=l[17]),a&262144&&(s.toggleFullscreen=l[18]),a&524288&&(s.returnFocus=l[19]),a&1048576&&(s.seekToInteractive=l[20]),a&2097152&&(s.toggleGraph=l[21]),a&4194304&&(s.playPrevChapter=l[22]),!t&&a&1&&(t=!0,s.controlsElementRef=l[0],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function d5(i){let e,t,n;function o(l){i[27](l)}let r={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&&(r.controlsElementRef=i[0]),e=new o0({props:r}),me.push(()=>qe(e,"controlsElementRef",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a&2&&(s.bottomHidden=l[1]),a&4&&(s.bottomNoSmooth=l[2]),a&8&&(s.showControls=l[3]),a&16&&(s.isAds=l[4]),a&32&&(s.canRewindLive=l[5]),a&64&&(s.logoClickable=l[6]),a&128&&(s.logoHidden=l[7]),a&256&&(s.logoTargetUrl=l[8]),a&512&&(s.showNextPrevButtons=l[9]),a&1024&&(s.nextButtonActive=l[10]),a&2048&&(s.prevButtonActive=l[11]),a&4096&&(s.isOneVideoPlaylist=l[12]),a&8192&&(s.supportLink=l[13]),a&16384&&(s.customFullscreenSupported=l[14]),a&32768&&(s.playNextVideo=l[15]),a&65536&&(s.playPrevVideo=l[16]),a&131072&&(s.repeatPlaylist=l[17]),a&262144&&(s.toggleFullscreen=l[18]),a&524288&&(s.returnFocus=l[19]),a&1048576&&(s.seekToInteractive=l[20]),a&2097152&&(s.toggleGraph=l[21]),a&4194304&&(s.playPrevChapter=l[22]),a&8388608&&(s.onDisabledPlayPrevChapterClick=l[23]),a&16777216&&(s.onDisabledSeekToInteractiveClick=l[24]),!t&&a&1&&(t=!0,s.controlsElementRef=l[0],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function m5(i){let e,t,n,o,r=[d5,f5],l=[];function a(s,u){return s[25]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ut()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?l[e].p(s,u):(se(),_(l[f],1,1,()=>{l[f]=null}),ae(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function p5(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:r=!1}=e,{showControls:l}=e,{controlsElementRef:a=void 0}=e,{isAds:s=!1}=e,{canRewindLive:u}=e,{logoClickable:f}=e,{logoHidden:p}=e,{logoTargetUrl:h=""}=e,{showNextPrevButtons:k}=e,{nextButtonActive:g}=e,{prevButtonActive:w}=e,{isOneVideoPlaylist:v=!1}=e,{supportLink:E}=e,{customFullscreenSupported:b=!0}=e,{playNextVideo:y}=e,{playPrevVideo:T}=e,{repeatPlaylist:W}=e,{toggleFullscreen:F}=e,{returnFocus:O=Du}=e,{seekToInteractive:le}=e,{toggleGraph:re}=e,{playPrevChapter:H}=e,{onDisabledPlayPrevChapterClick:A=Du}=e,{onDisabledSeekToInteractiveClick:J=Du}=e,ce=nt().ui.isMobile;z(i,ce,P=>t(25,n=P));function Z(P){a=P,t(0,a)}function oe(P){a=P,t(0,a)}return i.$$set=P=>{"bottomHidden"in P&&t(1,o=P.bottomHidden),"bottomNoSmooth"in P&&t(2,r=P.bottomNoSmooth),"showControls"in P&&t(3,l=P.showControls),"controlsElementRef"in P&&t(0,a=P.controlsElementRef),"isAds"in P&&t(4,s=P.isAds),"canRewindLive"in P&&t(5,u=P.canRewindLive),"logoClickable"in P&&t(6,f=P.logoClickable),"logoHidden"in P&&t(7,p=P.logoHidden),"logoTargetUrl"in P&&t(8,h=P.logoTargetUrl),"showNextPrevButtons"in P&&t(9,k=P.showNextPrevButtons),"nextButtonActive"in P&&t(10,g=P.nextButtonActive),"prevButtonActive"in P&&t(11,w=P.prevButtonActive),"isOneVideoPlaylist"in P&&t(12,v=P.isOneVideoPlaylist),"supportLink"in P&&t(13,E=P.supportLink),"customFullscreenSupported"in P&&t(14,b=P.customFullscreenSupported),"playNextVideo"in P&&t(15,y=P.playNextVideo),"playPrevVideo"in P&&t(16,T=P.playPrevVideo),"repeatPlaylist"in P&&t(17,W=P.repeatPlaylist),"toggleFullscreen"in P&&t(18,F=P.toggleFullscreen),"returnFocus"in P&&t(19,O=P.returnFocus),"seekToInteractive"in P&&t(20,le=P.seekToInteractive),"toggleGraph"in P&&t(21,re=P.toggleGraph),"playPrevChapter"in P&&t(22,H=P.playPrevChapter),"onDisabledPlayPrevChapterClick"in P&&t(23,A=P.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in P&&t(24,J=P.onDisabledSeekToInteractiveClick)},[a,o,r,l,s,u,f,p,h,k,g,w,v,E,b,y,T,W,F,O,le,re,H,A,J,n,ce,Z,oe]}var Nu=class extends K{constructor(e){super(),G(this,e,p5,m5,U,{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})}},Yr=Nu;function _5(i){let e,t,n,o,r,l,a,s,u,f,p,h,k,g,w=i[2].default,v=Pe(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]],b={};for(let y=0;y<E.length;y+=1)b=ne(b,E[y]);return{c(){e=B("svg"),v&&v.c(),t=B("g"),n=B("path"),o=B("path"),r=B("defs"),l=B("filter"),a=B("feFlood"),s=B("feColorMatrix"),u=B("feOffset"),f=B("feGaussianBlur"),p=B("feColorMatrix"),h=B("feBlend"),k=B("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(k,"in","SourceGraphic"),c(k,"in2","effect1_dropShadow_2260_100684"),c(k,"result","shape"),c(l,"id","a"),c(l,"width","43.996"),c(l,"height","49.5"),c(l,"x","2.5"),c(l,"y","0"),c(l,"color-interpolation-filters","sRGB"),c(l,"filterUnits","userSpaceOnUse"),ge(e,b)},m(y,T){S(y,e,T),v&&v.m(e,null),m(e,t),m(t,n),m(t,o),m(e,r),m(r,l),m(l,a),m(l,s),m(l,u),m(l,f),m(l,p),m(l,h),m(l,k),g=!0},p(y,[T]){v&&v.p&&(!g||T&2)&&Ee(v,w,y,y[1],g?Te(w,y[1],T,null):Ae(y[1]),null),ge(e,b=Be(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},T&1&&y[0]]))},i(y){g||(d(v,y),g=!0)},o(y){_(v,y),g=!1},d(y){y&&C(e),v&&v.d(y)}}}function h5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var qu=class extends K{constructor(e){super(),G(this,e,h5,_5,U,{})}},l0=qu;function g5(i){let e,t;return e=new l0({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function b5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Ou=class extends K{constructor(e){super(),G(this,e,b5,g5,U,{reversed:1})}},r0=Ou;function v5(i){let e,t,n,o,r,l,a,s,u,f,p,h,k,g,w,v,E=i[2].default,b=Pe(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]],T={};for(let W=0;W<y.length;W+=1)T=ne(T,y[W]);return{c(){e=B("svg"),b&&b.c(),t=B("g"),n=B("path"),o=B("path"),r=B("defs"),l=B("clipPath"),a=B("path"),s=B("filter"),u=B("feFlood"),f=B("feColorMatrix"),p=B("feOffset"),h=B("feGaussianBlur"),k=B("feColorMatrix"),g=B("feBlend"),w=B("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(l,"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(k,"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"),ge(e,T)},m(W,F){S(W,e,F),b&&b.m(e,null),m(e,t),m(t,n),m(t,o),m(e,r),m(r,l),m(l,a),m(r,s),m(s,u),m(s,f),m(s,p),m(s,h),m(s,k),m(s,g),m(s,w),v=!0},p(W,[F]){b&&b.p&&(!v||F&2)&&Ee(b,E,W,W[1],v?Te(E,W[1],F,null):Ae(W[1]),null),ge(e,T=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"},F&1&&W[0]]))},i(W){v||(d(b,W),v=!0)},o(W){_(b,W),v=!1},d(W){W&&C(e),b&&b.d(W)}}}function y5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Fu=class extends K{constructor(e){super(),G(this,e,y5,v5,U,{})}},s0=Fu;function k5(i){let e,t,n,o,r,l,a,s,u,f,p,h,k,g,w,v,E,b=i[2].default,y=Pe(b,i,i[1],null),T=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},i[0]],W={};for(let F=0;F<T.length;F+=1)W=ne(W,T[F]);return{c(){e=B("svg"),y&&y.c(),t=B("g"),n=B("path"),o=B("path"),r=B("path"),l=B("defs"),a=B("clipPath"),s=B("path"),u=B("filter"),f=B("feFlood"),p=B("feColorMatrix"),h=B("feOffset"),k=B("feGaussianBlur"),g=B("feColorMatrix"),w=B("feBlend"),v=B("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(r,"stroke","#000"),c(r,"stroke-opacity",".12"),c(r,"stroke-width",".5"),c(r,"d","M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"),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(k,"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(v,"in","SourceGraphic"),c(v,"in2","effect1_dropShadow_2260_104293"),c(v,"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"),ge(e,W)},m(F,O){S(F,e,O),y&&y.m(e,null),m(e,t),m(t,n),m(t,o),m(t,r),m(e,l),m(l,a),m(a,s),m(l,u),m(u,f),m(u,p),m(u,h),m(u,k),m(u,g),m(u,w),m(u,v),E=!0},p(F,[O]){y&&y.p&&(!E||O&2)&&Ee(y,b,F,F[1],E?Te(b,F[1],O,null):Ae(F[1]),null),ge(e,W=Be(T,[{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&&F[0]]))},i(F){E||(d(y,F),E=!0)},o(F){_(y,F),E=!1},d(F){F&&C(e),y&&y.d(F)}}}function w5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Hu=class extends K{constructor(e){super(),G(this,e,w5,k5,U,{})}},a0=Hu;function C5(i){let e,t;return e=new s0({}),{c(){R(e.$$.fragment)},m(n,o){V(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 S5(i){let e,t;return e=new a0({}),{c(){R(e.$$.fragment)},m(n,o){V(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 I5(i){let e,t,n,o,r=[S5,C5],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ut()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(se(),_(l[f],1,1,()=>{l[f]=null}),ae(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function P5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var zu=class extends K{constructor(e){super(),G(this,e,P5,I5,U,{isOff:0})}},Uu=zu;function T5(i){let e,t,n,o,r,l,a,s,u,f,p,h,k,g,w=i[2].default,v=Pe(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]],b={};for(let y=0;y<E.length;y+=1)b=ne(b,E[y]);return{c(){e=B("svg"),v&&v.c(),t=B("g"),n=B("path"),o=B("path"),r=B("defs"),l=B("filter"),a=B("feFlood"),s=B("feColorMatrix"),u=B("feOffset"),f=B("feGaussianBlur"),p=B("feColorMatrix"),h=B("feBlend"),k=B("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(k,"in","SourceGraphic"),c(k,"in2","effect1_dropShadow_2260_106627"),c(k,"result","shape"),c(l,"id","a"),c(l,"width","40.098"),c(l,"height","27.785"),c(l,"x","3.402"),c(l,"y","10.105"),c(l,"color-interpolation-filters","sRGB"),c(l,"filterUnits","userSpaceOnUse"),ge(e,b)},m(y,T){S(y,e,T),v&&v.m(e,null),m(e,t),m(t,n),m(t,o),m(e,r),m(r,l),m(l,a),m(l,s),m(l,u),m(l,f),m(l,p),m(l,h),m(l,k),g=!0},p(y,[T]){v&&v.p&&(!g||T&2)&&Ee(v,w,y,y[1],g?Te(w,y[1],T,null):Ae(y[1]),null),ge(e,b=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"},T&1&&y[0]]))},i(y){g||(d(v,y),g=!0)},o(y){_(v,y),g=!1},d(y){y&&C(e),v&&v.d(y)}}}function E5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ku=class extends K{constructor(e){super(),G(this,e,E5,T5,U,{})}},u0=Ku;function A5(i){let e,t;return e=new u0({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function M5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var ju=class extends K{constructor(e){super(),G(this,e,M5,A5,U,{reversed:1})}},c0=ju;function V5(i){let e,t,n,o,r,l,a,s,u,f,p,h,k,g,w=i[2].default,v=Pe(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]],b={};for(let y=0;y<E.length;y+=1)b=ne(b,E[y]);return{c(){e=B("svg"),v&&v.c(),t=B("g"),n=B("path"),o=B("path"),r=B("defs"),l=B("filter"),a=B("feFlood"),s=B("feColorMatrix"),u=B("feOffset"),f=B("feGaussianBlur"),p=B("feColorMatrix"),h=B("feBlend"),k=B("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(k,"in","SourceGraphic"),c(k,"in2","effect1_dropShadow_2340_106922"),c(k,"result","shape"),c(l,"id","a"),c(l,"width","37"),c(l,"height","37"),c(l,"x","5.5"),c(l,"y","5.5"),c(l,"color-interpolation-filters","sRGB"),c(l,"filterUnits","userSpaceOnUse"),ge(e,b)},m(y,T){S(y,e,T),v&&v.m(e,null),m(e,t),m(t,n),m(t,o),m(e,r),m(r,l),m(l,a),m(l,s),m(l,u),m(l,f),m(l,p),m(l,h),m(l,k),g=!0},p(y,[T]){v&&v.p&&(!g||T&2)&&Ee(v,w,y,y[1],g?Te(w,y[1],T,null):Ae(y[1]),null),ge(e,b=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"},T&1&&y[0]]))},i(y){g||(d(v,y),g=!0)},o(y){_(v,y),g=!1},d(y){y&&C(e),v&&v.d(y)}}}function L5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Wu=class extends K{constructor(e){super(),G(this,e,L5,V5,U,{})}},f0=Wu;function R5(i){let e,t;return e=new f0({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function B5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Gu=class extends K{constructor(e){super(),G(this,e,B5,R5,U,{reversed:1})}},d0=Gu;function D5(i){Ie(i,"svelte-4ftgwp",`.hot-key-helpers-container.svelte-4ftgwp.svelte-4ftgwp{position:absolute;top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;animation:svelte-4ftgwp-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box}.hot-key-helpers-container.svelte-4ftgwp>div.svelte-4ftgwp{width:48px;height:48px;display:flex;justify-content:center;align-items:center}.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="volume-off-icon"],.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="volume-max-icon"]{transform:scale(2)}.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="replay-icon"],.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="play-icon"],.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="pause-icon"]{transform:scale(2.5)}.hot-key-helpers-container--left.svelte-4ftgwp.svelte-4ftgwp{left:calc(25% - 100px)}.hot-key-helpers-container--right.svelte-4ftgwp.svelte-4ftgwp{left:calc(75% - 100px)}.hot-key-helpers-text.svelte-4ftgwp.svelte-4ftgwp{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-4ftgwp.svelte-4ftgwp{visibility:hidden;animation:svelte-4ftgwp-fadeOut ease var(--controls-transition-duration);width:0;height:0}@keyframes svelte-4ftgwp-fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes svelte-4ftgwp-fadeOut{0%{opacity:1}100%{opacity:0}}`)}function m0(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,r,l,a,s,u=["RATE_DOWN","RATE_UP"].includes(i[4]),f,p=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),h,k,g,w,v,E=t&&p0(i),b=i[4]==="PAUSE"&&_0(i),y=i[4]==="PLAY"&&h0(i),T=i[4]==="REPLAY"&&g0(i),W=i[4]==="SUBTITLES_OFF"&&b0(i),F=i[4]==="SUBTITLES_ON"&&v0(i),O=u&&y0(i),le=p&&k0(i),re=i[4]==="MUTE"&&w0(i),H=i[4]==="VOLUME"&&C0(i),A=i[5]&&S0(i);return{c(){e=I("div"),E&&E.c(),n=D(),b&&b.c(),o=D(),y&&y.c(),r=D(),T&&T.c(),l=D(),W&&W.c(),a=D(),F&&F.c(),s=D(),O&&O.c(),f=D(),le&&le.c(),h=D(),re&&re.c(),k=D(),H&&H.c(),g=D(),A&&A.c(),w=ut(),c(e,"class","svelte-4ftgwp")},m(J,Y){S(J,e,Y),E&&E.m(e,null),m(e,n),b&&b.m(e,null),m(e,o),y&&y.m(e,null),m(e,r),T&&T.m(e,null),m(e,l),W&&W.m(e,null),m(e,a),F&&F.m(e,null),m(e,s),O&&O.m(e,null),m(e,f),le&&le.m(e,null),m(e,h),re&&re.m(e,null),m(e,k),H&&H.m(e,null),S(J,g,Y),A&&A.m(J,Y),S(J,w,Y),v=!0},p(J,Y){Y&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(J[4])),t?E?(E.p(J,Y),Y&16&&d(E,1)):(E=p0(J),E.c(),d(E,1),E.m(e,n)):E&&(se(),_(E,1,1,()=>{E=null}),ae()),J[4]==="PAUSE"?b?Y&16&&d(b,1):(b=_0(J),b.c(),d(b,1),b.m(e,o)):b&&(se(),_(b,1,1,()=>{b=null}),ae()),J[4]==="PLAY"?y?Y&16&&d(y,1):(y=h0(J),y.c(),d(y,1),y.m(e,r)):y&&(se(),_(y,1,1,()=>{y=null}),ae()),J[4]==="REPLAY"?T?Y&16&&d(T,1):(T=g0(J),T.c(),d(T,1),T.m(e,l)):T&&(se(),_(T,1,1,()=>{T=null}),ae()),J[4]==="SUBTITLES_OFF"?W?Y&16&&d(W,1):(W=b0(J),W.c(),d(W,1),W.m(e,a)):W&&(se(),_(W,1,1,()=>{W=null}),ae()),J[4]==="SUBTITLES_ON"?F?Y&16&&d(F,1):(F=v0(J),F.c(),d(F,1),F.m(e,s)):F&&(se(),_(F,1,1,()=>{F=null}),ae()),Y&16&&(u=["RATE_DOWN","RATE_UP"].includes(J[4])),u?O?(O.p(J,Y),Y&16&&d(O,1)):(O=y0(J),O.c(),d(O,1),O.m(e,f)):O&&(se(),_(O,1,1,()=>{O=null}),ae()),Y&16&&(p=["EPISODE_PREV","EPISODE_NEXT"].includes(J[4])),p?le?(le.p(J,Y),Y&16&&d(le,1)):(le=k0(J),le.c(),d(le,1),le.m(e,h)):le&&(se(),_(le,1,1,()=>{le=null}),ae()),J[4]==="MUTE"?re?Y&16&&d(re,1):(re=w0(J),re.c(),d(re,1),re.m(e,k)):re&&(se(),_(re,1,1,()=>{re=null}),ae()),J[4]==="VOLUME"?H?Y&16&&d(H,1):(H=C0(J),H.c(),d(H,1),H.m(e,null)):H&&(se(),_(H,1,1,()=>{H=null}),ae()),J[5]?A?A.p(J,Y):(A=S0(J),A.c(),A.m(w.parentNode,w)):A&&(A.d(1),A=null)},i(J){v||(d(E),d(b),d(y),d(T),d(W),d(F),d(O),d(le),d(re),d(H),v=!0)},o(J){_(E),_(b),_(y),_(T),_(W),_(F),_(O),_(le),_(re),_(H),v=!1},d(J){J&&(C(e),C(g),C(w)),E&&E.d(),b&&b.d(),y&&y.d(),T&&T.d(),W&&W.d(),F&&F.d(),O&&O.d(),le&&le.d(),re&&re.d(),H&&H.d(),A&&A.d(J)}}}function p0(i){let e,t;return e=new r0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="FORWARD_SEEK"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function _0(i){let e,t;return e=new Tr({}),{c(){R(e.$$.fragment)},m(n,o){V(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 al({}),{c(){R(e.$$.fragment)},m(n,o){V(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 qr({}),{c(){R(e.$$.fragment)},m(n,o){V(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 Uu({props:{isOff:!0}}),{c(){R(e.$$.fragment)},m(n,o){V(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 Uu({}),{c(){R(e.$$.fragment)},m(n,o){V(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(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="RATE_UP"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(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(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="EPISODE_NEXT"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function w0(i){let e,t;return e=new Fo({props:{volume:0}}),{c(){R(e.$$.fragment)},m(n,o){V(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 Fo({props:{volume:1}}),{c(){R(e.$$.fragment)},m(n,o){V(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=I("span"),t=Ve(i[5]),c(e,"class","hot-key-helpers-text svelte-4ftgwp")},m(n,o){S(n,e,o),m(e,t)},p(n,o){o&32&&We(t,n[5])},d(n){n&&C(e)}}}function N5(i){let e,t,n=!i[1]&&i[4]&&m0(i);return{c(){e=I("div"),n&&n.c(),c(e,"class","hot-key-helpers-container svelte-4ftgwp"),q(e,"hidden",i[1]),q(e,"hot-key-helpers-container--left",i[2]),q(e,"hot-key-helpers-container--right",i[3])},m(o,r){S(o,e,r),n&&n.m(e,null),t=!0},p(o,[r]){!o[1]&&o[4]?n?(n.p(o,r),r&18&&d(n,1)):(n=m0(o),n.c(),d(n,1),n.m(e,null)):n&&(se(),_(n,1,1,()=>{n=null}),ae()),(!t||r&2)&&q(e,"hidden",o[1]),(!t||r&4)&&q(e,"hot-key-helpers-container--left",o[2]),(!t||r&8)&&q(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&C(e),n&&n.d()}}}function q5(i,e,t){let n,o=_e,r=()=>(o(),o=Ht(l,h=>t(6,n=h)),l);i.$$.on_destroy.push(()=>o());let{data:l}=e;r();let a,s,u,f,p;return i.$$set=h=>{"data"in h&&r(t(0,l=h.data))},i.$$.update=()=>{if(i.$$.dirty&64)e: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=j(n.t.key,{value:n.t.value||""})):t(5,p=n?.text)},[l,a,s,u,f,p,n]}var Qu=class extends K{constructor(e){super(),G(this,e,q5,N5,U,{data:0},D5)}},I0=Qu;function O5(i){Ie(i,"svelte-1yzc86r",".immersive-controls.svelte-1yzc86r{position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn)}.immersive-controls.m-shifted.svelte-1yzc86r{top:50px;left:20px}.button-block.svelte-1yzc86r{width:40px;height:40px;margin:auto auto;transform:rotate(45deg)}.button-row.svelte-1yzc86r{display:flex;flex-direction:row;position:relative}.button.svelte-1yzc86r{width:20px;height:20px;text-align:center;cursor:pointer}.button.svelte-1yzc86r svg{opacity:0.7;transition:opacity linear 0.2s}.button.button-up.svelte-1yzc86r svg{transform:rotate(-45deg) translate(-1px, -1px)}.button.button-right.svelte-1yzc86r svg{transform:rotate(45deg) translate(1px, -1px)}.button.button-down.svelte-1yzc86r svg{transform:rotate(135deg) translate(1px, -3px)}.button.button-left.svelte-1yzc86r svg{transform:rotate(-135deg) translate(-1px, -3px)}.button.svelte-1yzc86r:hover svg{opacity:1}")}function F5(i){let e,t,n,o,r,l,a,s,u,f,p,h,k,g,w,v,E,b,y;return r=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=I("div"),t=I("div"),n=I("div"),o=I("div"),R(r.$$.fragment),l=D(),a=I("div"),R(s.$$.fragment),u=D(),f=I("div"),p=I("div"),R(h.$$.fragment),k=D(),g=I("div"),R(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",v=j("aria_label_spherical_control")),q(e,"m-shifted",i[0])},m(T,W){S(T,e,W),m(e,t),m(t,n),m(n,o),V(r,o,null),m(n,l),m(n,a),V(s,a,null),m(t,u),m(t,f),m(f,p),V(h,p,null),m(f,k),m(f,g),V(w,g,null),E=!0,b||(y=[de(o,"mousedown",i[1]),de(o,"mouseup",i[5]),de(o,"mouseleave",i[5]),de(a,"mousedown",i[3]),de(a,"mouseup",i[5]),de(a,"mouseleave",i[5]),de(p,"mousedown",i[4]),de(p,"mouseup",i[5]),de(p,"mouseleave",i[5]),de(g,"mousedown",i[2]),de(g,"mouseup",i[5]),de(g,"mouseleave",i[5]),de(e,"keydown",i[6]),de(e,"keyup",i[7])],b=!0)},p(T,[W]){(!E||W&1)&&q(e,"m-shifted",T[0])},i(T){E||(d(r.$$.fragment,T),d(s.$$.fragment,T),d(h.$$.fragment,T),d(w.$$.fragment,T),E=!0)},o(T){_(r.$$.fragment,T),_(s.$$.fragment,T),_(h.$$.fragment,T),_(w.$$.fragment,T),E=!1},d(T){T&&C(e),L(r),L(s),L(h),L(w),b=!1,et(y)}}}function H5(i,e,t){let{isShifted:n=!1}=e,o=nt(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),l=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},s=()=>{o.actions.internal.startCameraManualRotation(1,0)},u=()=>{o.actions.internal.startCameraManualRotation(-1,0)},f=()=>(o.actions.internal.stopCameraManualRotation(),null),p=k=>{if(r.has(k.code))switch(k.preventDefault(),k.stopPropagation(),k.code){case"ArrowUp":l();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},h=k=>{r.has(k.code)&&(k.preventDefault(),k.stopPropagation(),f())};return i.$$set=k=>{"isShifted"in k&&t(0,n=k.isShifted)},[n,l,a,s,u,f,p,h]}var Yu=class extends K{constructor(e){super(),G(this,e,H5,F5,U,{isShifted:0},O5)}},Zr=Yu;function z5(i){Ie(i,"svelte-ovfyp5",".subtitles-container.svelte-ovfyp5.svelte-ovfyp5{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.svelte-ovfyp5.svelte-ovfyp5{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.svelte-ovfyp5.svelte-ovfyp5{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.svelte-ovfyp5.svelte-ovfyp5{bottom:8%}.subtitles-container.auto.svelte-ovfyp5 .subtitles-caption.svelte-ovfyp5{left:24%;right:24%}.caption.svelte-ovfyp5.svelte-ovfyp5{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.svelte-ovfyp5 .caption.svelte-ovfyp5{width:100%}.caption-line.svelte-ovfyp5.svelte-ovfyp5{display:block;text-align:center}.subtitles-container.auto.svelte-ovfyp5 .caption-line.svelte-ovfyp5{text-align:left}.caption-segment.svelte-ovfyp5.svelte-ovfyp5{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function P0(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(l,a){return l[7]&&l[8]?j5:l[5]?K5:U5}let o=n(i,-1),r=o(i);return{c(){e=I("div"),t=I("span"),r.c(),c(t,"class","caption svelte-ovfyp5"),c(e,"class","subtitles-caption svelte-ovfyp5"),q(e,"mobile",i[3])},m(l,a){S(l,e,a),m(e,t),r.m(t,null)},p(l,a){o===(o=n(l,a))&&r?r.p(l,a):(r.d(1),r=o(l),r&&(r.c(),r.m(t,null))),a&8&&q(e,"mobile",l[3])},d(l){l&&C(e),r.d()}}}function U5(i){let e,t=wt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=A0(P0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=ut()},m(o,r){for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(o,r);S(o,e,r)},p(o,r){if(r&18){t=wt(o[1]);let l;for(l=0;l<t.length;l+=1){let a=P0(o,t,l);n[l]?n[l].p(a,r):(n[l]=A0(a),n[l].c(),n[l].m(e.parentNode,e))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&C(e),Si(n,o)}}}function K5(i){let e,t,n=wt(i[6]),o=[];for(let r=0;r<n.length;r+=1)o[r]=V0(T0(i,n,r));return{c(){e=I("span"),t=I("span");for(let r=0;r<o.length;r+=1)o[r].c();c(t,"class","caption-segment svelte-ovfyp5"),pi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,l){S(r,e,l),m(e,t);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(r,l){if(l&68){n=wt(r[6]);let a;for(a=0;a<n.length;a+=1){let s=T0(r,n,a);o[a]?o[a].p(s,l):(o[a]=V0(s),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}l&16&&pi(t,"font-size",r[4]+"px")},d(r){r&&C(e),Si(o,r)}}}function j5(i){let e,t,n=j("subtitles_auto_caption")+"",o;return{c(){e=I("span"),t=I("span"),o=Ve(n),c(t,"class","caption-segment svelte-ovfyp5"),pi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,l){S(r,e,l),m(e,t),m(t,o)},p(r,l){l&16&&pi(t,"font-size",r[4]+"px")},d(r){r&&C(e)}}}function A0(i){let e,t,n=i[16]+"",o,r;return{c(){e=I("span"),t=I("span"),o=Ve(n),r=D(),c(t,"class","caption-segment svelte-ovfyp5"),pi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,a){S(l,e,a),m(e,t),m(t,o),m(e,r)},p(l,a){a&2&&n!==(n=l[16]+"")&&We(o,n),a&16&&pi(t,"font-size",l[4]+"px")},d(l){l&&C(e)}}}function M0(i){let e=i[16]+"",t;return{c(){t=Ve(e)},m(n,o){S(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&We(t,e)},d(n){n&&C(t)}}}function V0(i){let e,t=(!i[17]||i[17]<=i[2])&&M0(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=M0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&C(e),t&&t.d(n)}}}function W5(i){let e,t=i[1].length>0&&E0(i);return{c(){e=I("div"),t&&t.c(),c(e,"class","subtitles-container svelte-ovfyp5"),q(e,"shifted",i[0]),q(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&&q(e,"shifted",n[0]),o&288&&q(e,"auto",n[5]&&!n[8])},i:_e,o:_e,d(n){n&&C(e),t&&t.d()}}}function G5(i,e,t){let n,o,{shifted:r}=e,{captions:l}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,f=nt(),p=Nt(),h=f.state.currentSubtitle$;z(i,h,y=>t(12,n=y));let k=f.state.isAutoSubtitleCaptionVisible$;z(i,k,y=>t(8,o=y));let g,w,v,E,b;return Pt(()=>{b=window.setTimeout(()=>{k.set(!1)},p.autoSubtitlesTimeout)}),Hn(()=>{window.clearTimeout(b)}),i.$$set=y=>{"shifted"in y&&t(0,r=y.shifted),"captions"in y&&t(1,l=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)e:{let y=s.width*.02;t(4,g=y<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:y)}if(i.$$.dirty&2)e:t(5,w=l.some(y=>y.type==="timestamp"));if(i.$$.dirty&2)e:t(6,v=l.reduce((y,{type:T,value:W})=>(T==="timestamp"?y.push({timeAppeared:Number(W),value:""}):y.length===0?y.push({value:String(W)}):y[y.length-1].value=String(W),y),[]));if(i.$$.dirty&4096)e:t(7,E=!!n.isAuto)},[r,l,a,u,g,w,v,E,o,h,k,s,n]}var Zu=class extends K{constructor(e){super(),G(this,e,G5,W5,U,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},z5)}},Xr=Zu;function Q5(i){Ie(i,"svelte-1o62kpz",".wrapper.svelte-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.svelte-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.svelte-1o62kpz{width:50px;height:50px}.text.svelte-1o62kpz{margin-top:20px}")}function L0(i){let e,t,n;return{c(){e=I("div"),t=Ve("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Ve(i[1]),c(e,"class","text svelte-1o62kpz")},m(o,r){S(o,e,r),m(e,t),m(e,n)},p(o,r){r&2&&We(n,o[1])},d(o){o&&C(e)}}}function Y5(i){let e,t,n,o,r,l,a=i[1]&&L0(i);return{c(){e=I("div"),t=I("div"),t.innerHTML='<svg class="icon svelte-1o62kpz" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=D(),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),r||(l=de(e,"click",i[2]),r=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=L0(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:_e,o:_e,d(s){s&&C(e),a&&a.d(),r=!1,l()}}}function Z5(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function r(l){Pn.call(this,i,l)}return i.$$set=l=>{"thumbUrl"in l&&t(0,n=l.thumbUrl),"chromecastDeviceName"in l&&t(1,o=l.chromecastDeviceName)},[n,o,r]}var Xu=class extends K{constructor(e){super(),G(this,e,Z5,Y5,U,{thumbUrl:0,chromecastDeviceName:1},Q5)}},Jr=Xu;function X5(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function J5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ju=class extends K{constructor(e){super(),G(this,e,J5,X5,U,{})}},R0=Ju;function x5(i){Ie(i,"svelte-13zpvm8",".container.svelte-13zpvm8{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}")}function $5(i){let e,t,n;return t=new R0({}),{c(){e=I("div"),R(t.$$.fragment),c(e,"class","container svelte-13zpvm8")},m(o,r){S(o,e,r),V(t,e,null),n=!0},p:_e,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),L(t)}}}var xu=class extends K{constructor(e){super(),G(this,e,null,$5,U,{},x5)}},xr=xu;function e6(i){Ie(i,"svelte-17wno3",".container.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:cover;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.svelte-17wno3.svelte-17wno3{opacity:0;visibility:hidden}.playButton.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.svelte-17wno3:hover .playButtonBackground.svelte-17wno3{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.svelte-17wno3 svg{transform:scale(2)}")}function t6(i){let e,t,n,o,r,l,a,s,u,f;return r=new al({}),{c(){e=I("div"),t=I("div"),n=I("div"),o=D(),R(r.$$.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",l=j("tooltip_play")),c(e,"class","container svelte-17wno3"),c(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),q(e,"hidden",i[1])},m(p,h){S(p,e,h),m(e,t),m(t,n),m(t,o),V(r,t,null),s=!0,u||(f=[de(t,"keydown",i[3]),de(e,"click",at(function(){Ci(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)&&q(e,"hidden",i[1])},i(p){s||(d(r.$$.fragment,p),s=!0)},o(p){_(r.$$.fragment,p),s=!1},d(p){p&&C(e),L(r),u=!1,et(f)}}}function i6(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,a=nt().ui.startedByKeyboard$,s=u=>{let f=u.code;["Enter","Space"].includes(f)&&(u.stopPropagation(),u.preventDefault(),a.set(!0),r())};return i.$$set=u=>{"thumbUrl"in u&&t(0,n=u.thumbUrl),"hidden"in u&&t(1,o=u.hidden),"startVideo"in u&&t(2,r=u.startVideo)},[n,o,r,s]}var $u=class extends K{constructor(e){super(),G(this,e,i6,t6,U,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},e6)}get handlePressKey(){return this.$$.ctx[3]}},$r=$u;function n6(i){Ie(i,"svelte-1bcvcf2",`.title.svelte-1bcvcf2{position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
|
|
26
|
+
Audio: `),k=Ae(h),g=D(),v=Ae(w),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(T,b){S(T,e,b),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,k),m(o,g),m(o,v)},p(T,b){b&1&&r!==(r=(T[0].videoCodec||"")+"")&&je(a,r),b&1&&u!==(u=T[0].hdr?"(HDR)":"")&&je(f,u),b&1&&h!==(h=(T[0].audioCodec||"")+"")&&je(k,h),b&1&&w!==(w=T[0].audioLanguage?`(${T[0].audioLanguage})`:"")&&je(v,w)},d(T){T&&C(e)}}}function i1(i){let e,t,n,o,l=i[0].viewport+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Viewport",n=D(),o=P("span"),r=Ae(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},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+"")&&je(r,l)},d(a){a&&C(e)}}}function n1(i){let e,t,n,o,l=i[0].videoSize+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Video size",n=D(),o=P("span"),r=Ae(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},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+"")&&je(r,l)},d(a){a&&C(e)}}}function o1(i){let e,t,n,o,l=i[0].cdn+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="CDN host",n=D(),o=P("span"),r=Ae(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},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+"")&&je(r,l)},d(a){a&&C(e)}}}function l1(i){let e,t,n,o,l=i[0].volume+"",r,a;return{c(){e=P("div"),t=P("div"),t.textContent="Volume",n=D(),o=P("span"),r=Ae(l),a=Ae(" %"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},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+"")&&je(r,l)},d(s){s&&C(e)}}}function r1(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=D(),o=P("span"),r=Ae(l),a=Ae(" s"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},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)+"")&&je(r,l)},d(s){s&&C(e)}}}function s1(i){let e,t,n,o,l=[{value:i[0].currentVideoSegmentLength,title:"Video:"},{value:i[0].currentAudioSegmentLength,title:"Audio:"}].filter(c1).map(f1).join(" & ")+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Segment",n=D(),o=P("span"),r=Ae(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},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(c1).map(f1).join(" & ")+"")&&je(r,l)},d(a){a&&C(e)}}}function a1(i){let e,t,n,o,l,r,a=i[0].speed.toFixed(2)+"",s,u,f;return o=new fr({props:{values:i[5]}}),{c(){e=P("div"),t=P("div"),t.textContent="Network",n=D(),R(o.$$.fragment),l=D(),r=P("span"),s=Ae(a),u=Ae(" Kbps"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(p,h){S(p,e,h),m(e,t),m(e,n),M(o,e,null),m(e,l),m(e,r),m(r,s),m(r,u),f=!0},p(p,h){let k={};h&32&&(k.values=p[5]),o.$set(k),(!f||h&1)&&a!==(a=p[0].speed.toFixed(2)+"")&&je(s,a)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){_(o.$$.fragment,p),f=!1},d(p){p&&C(e),V(o)}}}function u1(i){let e,t,n,o,l,r,a=i[0].bitrate.toFixed(2)+"",s,u,f;return o=new fr({props:{values:i[6]}}),{c(){e=P("div"),t=P("div"),t.textContent="V bitrate",n=D(),R(o.$$.fragment),l=D(),r=P("span"),s=Ae(a),u=Ae(" Kbps"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(p,h){S(p,e,h),m(e,t),m(e,n),M(o,e,null),m(e,l),m(e,r),m(r,s),m(r,u),f=!0},p(p,h){let k={};h&64&&(k.values=p[6]),o.$set(k),(!f||h&1)&&a!==(a=p[0].bitrate.toFixed(2)+"")&&je(s,a)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){_(o.$$.fragment,p),f=!1},d(p){p&&C(e),V(o)}}}function Kh(i){let e,t,n,o,l,r,a,s,u=i[0].version+"",f,p,h,k,g,w,v,T,b,y,I,Z,N,z,se,ae,F,x,E,X,Q,G,ee,L,H,Be,ze,We,Xe,qe,ye,J,we,Ke,Je=i[0].id&&xf(i),it=i[0].vsid&&$f(i),ke=i[0].provider&&e1(i),Ne=(i[0].videoCodec||i[0].audioCodec)&&t1(i),Ge=i[0].viewport&&i1(i),nt=i[0].videoSize&&n1(i),Ce=i[0].cdn&&o1(i),re=i[0].volume&&l1(i),Ue=i[0].buffer&&r1(i),me=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&s1(i),le=i[0].speed&&a1(i),De=i[0].bitrate&&u1(i);return ze=new fr({props:{values:i[4]}}),{c(){e=P("div"),t=P("button"),t.textContent="[x]",n=D(),o=P("div"),l=P("div"),r=P("div"),r.textContent="Version",a=D(),s=P("span"),f=Ae(u),p=D(),Je&&Je.c(),h=D(),it&&it.c(),k=D(),ke&&ke.c(),g=D(),Ne&&Ne.c(),w=D(),Ge&&Ge.c(),v=D(),nt&&nt.c(),T=D(),Ce&&Ce.c(),b=D(),re&&re.c(),y=D(),Ue&&Ue.c(),I=D(),me&&me.c(),Z=D(),N=P("div"),z=P("div"),z.textContent="Dropped",se=D(),ae=P("span"),F=Ae(i[2]),x=Ae(" / "),E=Ae(i[1]),X=Ae(" frames"),Q=D(),le&&le.c(),G=D(),De&&De.c(),ee=D(),L=P("div"),H=P("div"),H.textContent="FPS",Be=D(),R(ze.$$.fragment),We=D(),Xe=P("span"),qe=Ae(i[3]),c(t,"class","close svelte-1fypj5i"),c(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),c(r,"class","svelte-1fypj5i"),c(l,"class","svelte-1fypj5i"),c(z,"class","svelte-1fypj5i"),c(N,"class","svelte-1fypj5i"),c(H,"class","svelte-1fypj5i"),c(L,"class","svelte-1fypj5i"),c(o,"class","content svelte-1fypj5i"),c(e,"class","container svelte-1fypj5i"),c(e,"role","region"),c(e,"aria-label",ye=j("aria_label_debug_panel")),q(e,"container-mobile",i[7])},m(Me,Ye){S(Me,e,Ye),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),Je&&Je.m(o,null),m(o,h),it&&it.m(o,null),m(o,k),ke&&ke.m(o,null),m(o,g),Ne&&Ne.m(o,null),m(o,w),Ge&&Ge.m(o,null),m(o,v),nt&&nt.m(o,null),m(o,T),Ce&&Ce.m(o,null),m(o,b),re&&re.m(o,null),m(o,y),Ue&&Ue.m(o,null),m(o,I),me&&me.m(o,null),m(o,Z),m(o,N),m(N,z),m(N,se),m(N,ae),m(ae,F),m(ae,x),m(ae,E),m(ae,X),m(o,Q),le&&le.m(o,null),m(o,G),De&&De.m(o,null),m(o,ee),m(o,L),m(L,H),m(L,Be),M(ze,L,null),m(L,We),m(L,Xe),m(Xe,qe),J=!0,we||(Ke=de(t,"click",st(i[9])),we=!0)},p(Me,[Ye]){(!J||Ye&1)&&u!==(u=Me[0].version+"")&&je(f,u),Me[0].id?Je?Je.p(Me,Ye):(Je=xf(Me),Je.c(),Je.m(o,h)):Je&&(Je.d(1),Je=null),Me[0].vsid?it?it.p(Me,Ye):(it=$f(Me),it.c(),it.m(o,k)):it&&(it.d(1),it=null),Me[0].provider?ke?ke.p(Me,Ye):(ke=e1(Me),ke.c(),ke.m(o,g)):ke&&(ke.d(1),ke=null),Me[0].videoCodec||Me[0].audioCodec?Ne?Ne.p(Me,Ye):(Ne=t1(Me),Ne.c(),Ne.m(o,w)):Ne&&(Ne.d(1),Ne=null),Me[0].viewport?Ge?Ge.p(Me,Ye):(Ge=i1(Me),Ge.c(),Ge.m(o,v)):Ge&&(Ge.d(1),Ge=null),Me[0].videoSize?nt?nt.p(Me,Ye):(nt=n1(Me),nt.c(),nt.m(o,T)):nt&&(nt.d(1),nt=null),Me[0].cdn?Ce?Ce.p(Me,Ye):(Ce=o1(Me),Ce.c(),Ce.m(o,b)):Ce&&(Ce.d(1),Ce=null),Me[0].volume?re?re.p(Me,Ye):(re=l1(Me),re.c(),re.m(o,y)):re&&(re.d(1),re=null),Me[0].buffer?Ue?Ue.p(Me,Ye):(Ue=r1(Me),Ue.c(),Ue.m(o,I)):Ue&&(Ue.d(1),Ue=null),Me[0].currentVideoSegmentLength||Me[0].currentAudioSegmentLength?me?me.p(Me,Ye):(me=s1(Me),me.c(),me.m(o,Z)):me&&(me.d(1),me=null),(!J||Ye&4)&&je(F,Me[2]),(!J||Ye&2)&&je(E,Me[1]),Me[0].speed?le?(le.p(Me,Ye),Ye&1&&d(le,1)):(le=a1(Me),le.c(),d(le,1),le.m(o,G)):le&&(ue(),_(le,1,1,()=>{le=null}),ce()),Me[0].bitrate?De?(De.p(Me,Ye),Ye&1&&d(De,1)):(De=u1(Me),De.c(),d(De,1),De.m(o,ee)):De&&(ue(),_(De,1,1,()=>{De=null}),ce());let rt={};Ye&16&&(rt.values=Me[4]),ze.$set(rt),(!J||Ye&8)&&je(qe,Me[3]),(!J||Ye&128)&&q(e,"container-mobile",Me[7])},i(Me){J||(d(le),d(De),d(ze.$$.fragment,Me),J=!0)},o(Me){_(le),_(De),_(ze.$$.fragment,Me),J=!1},d(Me){Me&&C(e),Je&&Je.d(),it&&it.d(),ke&&ke.d(),Ne&&Ne.d(),Ge&&Ge.d(),nt&&nt.d(),Ce&&Ce.d(),re&&re.d(),Ue&&Ue.d(),me&&me.d(),le&&le.d(),De&&De.d(),V(ze),we=!1,Ke()}}}var c1=({value:i})=>i,f1=({value:i,title:e})=>`${e} ${((i??0)/1e3).toFixed(2)} s`;function jh(i,e,t){let n,o=tt(),l=o.ui.debugPanelVisible,r=o.ui.isMobile;O(i,r,y=>t(7,n=y));let a=()=>{Jf.remove(vl),l.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),f=0,p=0,h=0,k=new sl(60),g=new sl(60),w=new sl(60),v=[],T=[],b=[];return Tt(()=>{Jf.set(vl,"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 Z=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=Z-f),t(1,f=Z),k.push(h),s.speed&&g.push(s.speed),s.bitrate&&w.push(s.bitrate),t(4,v=k.getValuesFromBottom()),t(5,T=g.getValuesFromBottom()),t(6,b=w.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(y),I&&clearInterval(I)}}),[s,f,p,h,v,T,b,n,r,a]}var Hs=class extends K{constructor(e){super(),W(this,e,jh,Kh,U,{},Uh)}},dr=Hs;function Wh(i){Se(i,"svelte-1ome55p",".close.svelte-1ome55p{cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px}.close.svelte-1ome55p:hover{opacity:1}.close.svelte-1ome55p:before,.close.svelte-1ome55p:after{position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white)}.close.svelte-1ome55p:before{transform:rotate(45deg)}.close.svelte-1ome55p:after{transform:rotate(-45deg)}")}function Gh(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=de(e,"click",st(i[0])),t=!0)},p:_e,i:_e,o:_e,d(o){o&&C(e),t=!1,n()}}}function Qh(i){function e(t){Pn.call(this,i,t)}return[e]}var zs=class extends K{constructor(e){super(),W(this,e,Qh,Gh,U,{},Wh)}},d1=zs;import{noop as Yh}from"@vkontakte/videoplayer-shared";function Zh(i){Se(i,"svelte-8jhsry",`.timer.svelte-8jhsry{border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around}.timer.svelte-8jhsry:hover{background:rgba(31, 31, 31, .85)
|
|
27
|
+
}.timer-canvas.svelte-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.svelte-8jhsry{width:22px;height:26px}`)}function Xh(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("canvas"),n=D(),o=B("svg"),l=B("g"),r=B("g"),a=B("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:_e,i:_e,o:_e,d(s){s&&C(e),i[2](null)}}}var Jh=5e3;function xh(i,e,t){let{onTimerEnded:n=Yh}=e,o;Tt(()=>{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)/Jh;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){pe[r?"unshift":"push"](()=>{o=r,t(0,o)})}return i.$$set=r=>{"onTimerEnded"in r&&t(1,n=r.onTimerEnded)},[o,n,l]}var Us=class extends K{constructor(e){super(),W(this,e,xh,Xh,U,{onTimerEnded:1},Zh)}},m1=Us;function $h(i){Se(i,"svelte-kisfwc",".overlay.svelte-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.svelte-kisfwc{display:flex;justify-content:space-between}.caption.svelte-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.svelte-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-kisfwc{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.svelte-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.svelte-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function p1(i){let e,t;return e=new m1({props:{onTimerEnded:i[2]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.onTimerEnded=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function e2(i){let e,t,n,o,l,r,a,s,u,f,p,h,k,g,w,v,T,b,y,I,Z;a=new d1({}),a.$on("click",i[4]);let N=i[3]&&p1(i);return{c(){e=P("div"),t=D(),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=D(),R(a.$$.fragment),s=D(),u=P("div"),f=P("div"),p=P("div"),h=P("div"),k=D(),N&&N.c(),w=D(),v=P("div"),T=P("div"),b=Ae(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(T,"class","title svelte-kisfwc"),c(v,"class","column svelte-kisfwc"),c(u,"class","row svelte-kisfwc"),c(n,"class","next-video svelte-kisfwc")},m(z,se){S(z,e,se),S(z,t,se),S(z,n,se),m(n,o),m(o,l),m(o,r),M(a,o,null),m(n,s),m(n,u),m(u,f),m(f,p),m(p,h),m(p,k),N&&N.m(p,null),m(u,w),m(u,v),m(v,T),m(T,b),y=!0,I||(Z=de(u,"click",function(){wi(i[2])&&i[2].apply(this,arguments)}),I=!0)},p(z,[se]){i=z,i[3]?N?(N.p(i,se),se&8&&d(N,1)):(N=p1(i),N.c(),d(N,1),N.m(p,null)):N&&(ue(),_(N,1,1,()=>{N=null}),ce()),(!y||se&2&&g!==(g=`background-image: url('${i[1]}')`))&&c(p,"style",g),(!y||se&1)&&je(b,i[0])},i(z){y||(d(a.$$.fragment,z),d(N),y=!0)},o(z){_(a.$$.fragment,z),_(N),y=!1},d(z){z&&(C(e),C(t),C(n)),V(a),N&&N.d(),I=!1,Z()}}}function t2(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 Ks=class extends K{constructor(e){super(),W(this,e,t2,e2,U,{title:0,thumb:1,playNextVideo:2},$h)}},_1=Ks;import{PlaybackState as Do}from"@vkontakte/videoplayer-core";import{checkNever as n2}from"@vkontakte/videoplayer-shared";import{SeekAction as yn}from"@vkontakte/videoplayer-statistics";var js=(i,e)=>Math.min(+(i+e).toFixed(2),1),Ws=(i,e)=>Math.max(+(i-e).toFixed(2),0),mr=(i,e,t)=>{let n=js(e,t);e<1&&i.actions.internal.setVolume(n)},pr=(i,e,t)=>{let n=Ws(e,t);e>0&&i.actions.internal.setVolume(n)};var uo=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e?.(),!1):t?!0:(n?.(),!1);function o2(i){Se(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function l2(i){let e,t,n,o,l,r=i[26].default,a=Ie(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=j("aria_label_video_player"))},m(s,u){S(s,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(l=[de(e,"keyup",i[17]),de(e,"keydown",i[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Te(a,r,s,s[25],n?Pe(r,s[25],u,null):Ee(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){_(a,s),n=!1},d(s){s&&C(e),a&&a.d(s),i[27](null),o=!1,et(l)}}}function r2(i,e,t){let n,o,l,r,a,s,u,f,p,h,k,g,w,v,T,{$$slots:b={},$$scope:y}=e,{isAds:I}=e,{hideContextMenu:Z}=e,{toggleFullscreen:N}=e,{showHotKeyHelpers:z}=e,{showKeyMap:se}=e,{fakePlayButtonHandler:ae}=e,F=tt(),x=Bt(),E=F.getLogger().createComponentLog("KeyboardControls component"),X=F.state.playbackState$;O(i,X,ve=>t(31,o=ve));let Q=F.ads.playbackState;O(i,Q,ve=>t(30,n=ve));let G=F.state.positionExact$;O(i,G,ve=>t(41,g=ve));let ee=F.state.duration$;O(i,ee,ve=>t(40,k=ve));let L=F.state.volume$;O(i,L,ve=>t(44,T=ve));let H=F.ui.controls.disabledControls$;O(i,H,ve=>t(39,h=ve));let Be=F.state.muted$;O(i,Be,ve=>t(34,a=ve));let ze=F.state.currentSubtitle$;O(i,ze,ve=>t(33,r=ve));let We=F.state.currentPlaybackRate$;O(i,We,ve=>t(42,w=ve));let Xe=F.state.availablePlaybackRates$;O(i,Xe,ve=>t(43,v=ve));let qe=F.ui.contextMenu.openedByHotKey$,ye=F.ui.contextMenu.lastActiveElem$,J=F.ui.contextMenu.visible$,we=F.ui.contextMenu.position$,Ke=F.state.isEnded$;O(i,Ke,ve=>t(36,u=ve));let Je=F.ui.overlayContainer$;O(i,Je,ve=>t(32,l=ve));let it=F.callbacks?.onAudioDoesNotExistHint,ke=F.callbacks?.onAudioDisabledHint,Ne=F.state.isAudioAvailable$;O(i,Ne,ve=>t(35,s=ve));let Ge=F.state.isAudioDisabled,nt=F.state.isInteractiveTime$;O(i,nt,ve=>t(38,p=ve));let{showInteractiveTimeIndicatorTooltip$:Ce}=Dn();O(i,Ce,ve=>t(37,f=ve));let re=0,Ue=!0,me,le=()=>me?.focus(),De=ve=>(ve!==Ue&&(Ue=ve,re=0),re+=1,(x.controls.seekStepKeyboard+x.controls.seekStepKeyboard*re)/1e3),Me=ve=>{let ft=ve.target,ht=ft?.getAttribute("role")?.includes("menuitem"),ut=ft.classList.contains("btn"),mt=ve.code;if(ut&&mt==="Space")return;let St=jc.has(mt);if(ht&&St)return;let Qe=!Kc.has(mt);if(ve.ctrlKey&&Qe||ve.altKey&&Qe||ve.metaKey)return;let Nt=ht&&mt==="Escape";Wc.has(mt)||Nt||Z();let Vt=o===Do.PLAYING||o===Do.PAUSED,Ct=I&&(n==="paused"||n==="playing"),oi=!Ct&&!h.has("TIMELINE");if(Vt||Ct)switch(E({message:`key down, code: ${mt}`}),mt){case"KeyJ":case"ArrowLeft":{if(!oi)break;if(ve.ctrlKey||ve.altKey){let lt=F.actions.internal.getPrevEpisode();F.actions.internal.seekToPrevEpisode(lt),lt&&z({type:"EPISODE_PREV",text:lt.text}),ve.preventDefault()}else{let lt=ve.shiftKey?De(!1):x.controls.seekStepKeyboard/1e3,kt=Math.max(g-lt,0);g>0&&(F.actions.internal.seekTime(kt,yn.DOUBLE_TAP),z({type:"BACKWARD_SEEK",text:lt.toString()}),ve.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!oi)break;if(ve.ctrlKey||ve.altKey){let lt=F.actions.internal.getNextEpisode();F.actions.internal.seekToNextEpisode(lt),lt&&z({type:"EPISODE_NEXT",text:lt.text}),ve.preventDefault()}else{let lt=ve.shiftKey?De(!0):x.controls.seekStepKeyboard/1e3,kt=Math.min(g+lt,k);Math.round(g)<Math.round(k)&&(F.actions.internal.seekTime(kt,yn.DOUBLE_TAP),z({type:"FORWARD_SEEK",text:lt.toString()}),ve.preventDefault())}break}case"ArrowUp":{if(uo({isAudioDisabled:Ge,audioDisabledHintCallback:ke,isAudioAvailable:s,audioIsNotExistHintCallback:it})){let lt=T,kt=x.controls.volumeStepKeyboard,be=lt<=1;if(mr(F,lt,kt),be){let pt=Math.round(js(lt,kt)*100).toString();z({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:pt}})}}ve.preventDefault();break}case"ArrowDown":{if(uo({isAudioDisabled:Ge,audioDisabledHintCallback:ke,isAudioAvailable:s,audioIsNotExistHintCallback:it})){let lt=T,kt=x.controls.volumeStepKeyboard,be=lt>=0;if(pr(F,lt,kt),be){let pt=Math.round(Ws(lt,kt)*100).toString();z({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:pt}})}}ve.preventDefault();break}case"Comma":{if(ve.shiftKey){F.actions.internal.decrementPlaybackRate();let lt=v.find(kt=>kt.value===w);z({type:"RATE_DOWN",text:lt?.displayValue}),ve.preventDefault()}else{if(Ct||o!==Do.PAUSED)break;let lt=Math.max(g-x.controls.seekStepFrame/1e3,0);g>0&&(z({type:"BACKWARD_SEEK"}),F.actions.internal.clearDelayedBufferingCheckTimeout(),F.actions.internal.seekTime(lt,yn.DOUBLE_TAP),ve.preventDefault())}break}case"Period":{if(ve.shiftKey){F.actions.internal.incrementPlaybackRate();let lt=v.find(kt=>kt.value===w);z({type:"RATE_UP",text:lt?.displayValue}),ve.preventDefault()}else{if(Ct||o!==Do.PAUSED)break;let lt=Math.min(g+x.controls.seekStepFrame/1e3,k);g<k&&(z({type:"FORWARD_SEEK"}),F.actions.internal.clearDelayedBufferingCheckTimeout(),F.actions.internal.seekTime(lt,yn.DOUBLE_TAP),ve.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(p&&f&&Ce.set(!1),ae)ae();else{F.actions.internal.togglePlay();let lt="PLAY";o===Do.PAUSED?lt="PAUSE":u&&(lt="REPLAY"),z({type:lt})}ve.preventDefault();break;case"KeyM":{uo({isAudioDisabled:Ge,audioDisabledHintCallback:ke,isAudioAvailable:s,audioIsNotExistHintCallback:it})&&(z({type:a?"VOLUME":"MUTE"}),F.actions.internal.toggleMuted()),ve.preventDefault();break}case"KeyF":N(),ve.preventDefault();break;case"KeyC":F.actions.internal.toggleSubtitle(),r.value!=="off"?z({type:"SUBTITLES_ON",text:r?.displayValue}):z({type:"SUBTITLES_OFF"}),ve.preventDefault();break;case"KeyI":F.actions.internal.togglePictureInPicture(),ve.preventDefault();break;case"Digit1":case"Numpad1":if(ve.shiftKey){let lt=Kf(l);we.set(lt),ye.set(ft),qe.set(!0),J.set(!0),ve.preventDefault();break}z(),F.actions.internal.seekToPercent(.1,yn.DOUBLE_TAP),ve.preventDefault();break;case"Digit2":case"Numpad2":z(),F.actions.internal.seekToPercent(.2,yn.DOUBLE_TAP),ve.preventDefault();break;case"Digit3":case"Numpad3":z(),F.actions.internal.seekToPercent(.3,yn.DOUBLE_TAP),ve.preventDefault();break;case"Digit4":case"Numpad4":z(),F.actions.internal.seekToPercent(.4,yn.DOUBLE_TAP),ve.preventDefault();break;case"Digit5":case"Numpad5":z(),F.actions.internal.seekToPercent(.5,yn.DOUBLE_TAP),ve.preventDefault();break;case"Digit6":case"Numpad6":z(),F.actions.internal.seekToPercent(.6,yn.DOUBLE_TAP),ve.preventDefault();break;case"Digit7":case"Numpad7":z(),F.actions.internal.seekToPercent(.7,yn.DOUBLE_TAP),ve.preventDefault();break;case"Digit8":case"Numpad8":z(),F.actions.internal.seekToPercent(.8,yn.DOUBLE_TAP),ve.preventDefault();break;case"Digit9":case"Numpad9":z(),F.actions.internal.seekToPercent(.9,yn.DOUBLE_TAP),ve.preventDefault();break;case"Digit0":case"Numpad0":z(),F.actions.internal.seekToPercent(0,yn.DOUBLE_TAP),ve.preventDefault();break;case"Slash":{ve.shiftKey&&x.features.hotKeyMapModal&&(se(),ve.preventDefault());break}case"ShiftLeft":case"ShiftRight":ve.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:n2(mt);break}},Ye=ve=>{let ft=ve.code;if(ve.ctrlKey||ve.altKey||ve.metaKey)return;let ht=o===Do.PLAYING||o===Do.PAUSED,ut=I&&(n==="paused"||n==="playing");if(ht||ut)switch(ft){case"ShiftLeft":case"ShiftRight":re=0;break}};function rt(ve){pe[ve?"unshift":"push"](()=>{me=ve,t(0,me)})}return i.$$set=ve=>{"isAds"in ve&&t(18,I=ve.isAds),"hideContextMenu"in ve&&t(19,Z=ve.hideContextMenu),"toggleFullscreen"in ve&&t(20,N=ve.toggleFullscreen),"showHotKeyHelpers"in ve&&t(21,z=ve.showHotKeyHelpers),"showKeyMap"in ve&&t(22,se=ve.showKeyMap),"fakePlayButtonHandler"in ve&&t(23,ae=ve.fakePlayButtonHandler),"$$scope"in ve&&t(25,y=ve.$$scope)},[me,X,Q,G,ee,L,H,Be,ze,We,Xe,Ke,Je,Ne,nt,Ce,Me,Ye,I,Z,N,z,se,ae,le,y,b,rt]}var Gs=class extends K{constructor(e){super(),W(this,e,r2,l2,U,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},o2,[-1,-1])}get focus(){return this.$$.ctx[24]}},h1=Gs;function s2(i){Se(i,"svelte-8nkw5s",".container.svelte-8nkw5s.svelte-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes svelte-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.svelte-8nkw5s.svelte-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:svelte-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.svelte-8nkw5s+.dot.svelte-8nkw5s{margin-left:4px}")}function a2(i){let e;return{c(){e=P("div"),e.innerHTML='<div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div>',c(e,"class","container svelte-8nkw5s")},m(t,n){S(t,e,n)},p:_e,i:_e,o:_e,d(t){t&&C(e)}}}var Qs=class extends K{constructor(e){super(),W(this,e,null,a2,U,{},s2)}},_r=Qs;function u2(i){let e,t,n,o,l,r,a,s,u,f,p,h,k,g,w=i[2].default,v=Ie(w,i,i[1],null),T=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],b={};for(let y=0;y<T.length;y+=1)b=oe(b,T[y]);return{c(){e=B("svg"),v&&v.c(),t=B("g"),n=B("path"),o=B("path"),l=B("defs"),r=B("filter"),a=B("feFlood"),s=B("feColorMatrix"),u=B("feOffset"),f=B("feGaussianBlur"),p=B("feColorMatrix"),h=B("feBlend"),k=B("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(k,"in","SourceGraphic"),c(k,"in2","effect1_dropShadow_2422_111980"),c(k,"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"),ge(e,b)},m(y,I){S(y,e,I),v&&v.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,k),g=!0},p(y,[I]){v&&v.p&&(!g||I&2)&&Te(v,w,y,y[1],g?Pe(w,y[1],I,null):Ee(y[1]),null),ge(e,b=Le(T,[{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(v,y),g=!0)},o(y){_(v,y),g=!1},d(y){y&&C(e),v&&v.d(y)}}}function c2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Ys=class extends K{constructor(e){super(),W(this,e,c2,u2,U,{})}},g1=Ys;import{noop as to}from"@vkontakte/videoplayer-shared";function f2(i){Se(i,"svelte-1anemql",".btn.svelte-1anemql{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center}.w-max.svelte-1anemql{width:100%}.btn--live.svelte-1anemql{padding:10px 4px}.btn-m.svelte-1anemql{position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.btn-m--play.svelte-1anemql{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn.svelte-1anemql:disabled{cursor:default;pointer-events:none}.btn.svelte-1anemql:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-1anemql:not(:disabled):hover{opacity:0.8}.pr-0.svelte-1anemql{padding-right:0}.pl-0.svelte-1anemql{padding-left:0}")}function d2(i){let e,t,n,o,l,r,a,s,u,f,p,h,k=i[14].default,g=Ie(k,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,v){S(w,e,v),g&&g.m(e,null),i[16](e),f=!0,p||(h=[de(e,"pointerdown",st(Pt(i[15]))),de(e,"click",st(Pt(function(){wi(i[10]===to?null:i[10])&&(i[10]===to?null:i[10]).apply(this,arguments)}))),de(e,"focus",Pt(function(){wi(i[11]===to?null:i[11])&&(i[11]===to?null:i[11]).apply(this,arguments)})),de(e,"blur",Pt(function(){wi(i[12]===to?null:i[12])&&(i[12]===to?null:i[12]).apply(this,arguments)}))],p=!0)},p(w,[v]){i=w,g&&g.p&&(!f||v&8192)&&Te(g,k,i,i[13],f?Pe(k,i[13],v,null):Ee(i[13]),null),(!f||v&2&&t!==(t="btn "+i[1]+" svelte-1anemql"))&&c(e,"class",t),(!f||v&4&&n!==(n=i[2]||null))&&c(e,"style",n),(!f||v&8&&o!==(o=i[3]??null))&&(e.disabled=o),(!f||v&32&&l!==(l=i[5]??null))&&c(e,"aria-hidden",l),(!f||v&64&&r!==(r=i[6]??null))&&c(e,"aria-label",r),(!f||v&128&&a!==(a=i[7]??null))&&c(e,"aria-keyshortcuts",a),(!f||v&256&&s!==(s=i[8]??null))&&c(e,"aria-expanded",s),(!f||v&16&&u!==(u=i[4]??null))&&c(e,"data-testid",u),(!f||v&512)&&c(e,"tabindex",i[9])},i(w){f||(d(g,w),f=!0)},o(w){_(g,w),f=!1},d(w){w&&C(e),g&&g.d(w),i[16](null),p=!1,et(h)}}}function m2(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:k=void 0}=e,{tabIndex:g=0}=e,{click:w=to}=e,{focus:v=to}=e,{blur:T=to}=e;function b(I){Pn.call(this,i,I)}function y(I){pe[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,k=I.ariaExpanded),"tabIndex"in I&&t(9,g=I.tabIndex),"click"in I&&t(10,w=I.click),"focus"in I&&t(11,v=I.focus),"blur"in I&&t(12,T=I.blur),"$$scope"in I&&t(13,o=I.$$scope)},[p,l,r,a,s,u,f,h,k,g,w,v,T,o,n,b,y]}var Zs=class extends K{constructor(e){super(),W(this,e,m2,d2,U,{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},f2)}},_t=Zs;function p2(i){Se(i,"svelte-1witlsj",".modal-overlay.svelte-1witlsj{position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center}.modal-container.svelte-1witlsj{display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px}.modal-header.svelte-1witlsj{box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24)}.modal-title.svelte-1witlsj{margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.modal-scroll.svelte-1witlsj{overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%}.modal-scroll.svelte-1witlsj::-webkit-scrollbar{width:8px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track{box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.svelte-1witlsj{margin:-8px -4px 0 0}")}function b1(i){let e,t,n,o,l,r=i[2]&&v1(i);return{c(){e=P("div"),t=P("h3"),n=Ae(i[3]),o=D(),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)&&je(n,a[3]),a[2]?r?(r.p(a,s),s&4&&d(r,1)):(r=v1(a),r.c(),d(r,1),r.m(e,null)):r&&(ue(),_(r,1,1,()=>{r=null}),ce())},i(a){l||(d(r),l=!0)},o(a){_(r),l=!1},d(a){a&&C(e),r&&r.d()}}}function v1(i){let e,t;return e=new _t({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:j("hotkey_map_modal_close_btn_text"),$$slots:{default:[_2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&1&&(l.click=n[0]),o&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function _2(i){let e,t;return e=new g1({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function h2(i){let e,t,n,o,l,r,a=i[1]&&b1(i),s=i[4].default,u=Ie(s,i,i[5],null);return{c(){e=P("div"),t=P("div"),a&&a.c(),n=D(),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=b1(f),a.c(),d(a,1),a.m(t,n)):a&&(ue(),_(a,1,1,()=>{a=null}),ce()),u&&u.p&&(!r||p&32)&&Te(u,s,f,f[5],r?Pe(s,f[5],p,null):Ee(f[5]),null)},i(f){r||(d(a),d(u,f),r=!0)},o(f){_(a),_(u,f),r=!1},d(f){f&&C(e),a&&a.d(),u&&u.d(f)}}}function g2(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 Xs=class extends K{constructor(e){super(),W(this,e,g2,h2,U,{onClose:0,showHeader:1,showCloseCross:2,title:3},p2)}},y1=Xs;var b2=new Set(["BR"]),Js=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;b2.has(l)||o.parentElement?.removeChild(o)}return e.innerHTML};function v2(i){Se(i,"svelte-quklnq",".hot-key-map.svelte-quklnq{color:var(--black);box-sizing:border-box;overflow-x:hidden}.hot-key-map-group.svelte-quklnq{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.svelte-quklnq:last-child{border-bottom:none}.hot-key-map-group-title.svelte-quklnq{color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.hot-key-map-group-title.svelte-quklnq,.hot-key-map-item.svelte-quklnq{padding:12px 0;margin:0;width:100%}.hot-key-map-group-items.svelte-quklnq{box-sizing:border-box;list-style:none;padding:0;margin:0}.hot-key-map-item.svelte-quklnq{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.svelte-quklnq{color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px}.hot-key-map-item-value.svelte-quklnq{color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px}.hot-key-map-item-description.svelte-quklnq,.hot-key-map-item-value.svelte-quklnq{font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}")}function k1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function w1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function C1(i){let e,t,n=Js(i[9])+"",o,l,r=i[10]+"",a,s;return{c(){e=P("li"),t=P("span"),o=D(),l=P("span"),a=Ae(r),s=D(),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=Js(u[9])+"")&&(t.innerHTML=n),f&1&&r!==(r=u[10]+"")&&je(a,r)},d(u){u&&C(e)}}}function S1(i){let e,t,n=i[5]+"",o,l,r,a,s=wt(i[6]),u=[];for(let f=0;f<s.length;f+=1)u[f]=C1(w1(i,s,f));return{c(){e=P("div"),t=P("h5"),o=Ae(n),l=D(),r=P("ul");for(let f=0;f<u.length;f+=1)u[f].c();a=D(),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]+"")&&je(o,n),p&1){s=wt(f[6]);let h;for(h=0;h<s.length;h+=1){let k=w1(f,s,h);u[h]?u[h].p(k,p):(u[h]=C1(k),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&&C(e),Ci(u,f)}}}function y2(i){let e,t=wt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=S1(k1(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=wt(o[0].groups);let r;for(r=0;r<t.length;r+=1){let a=k1(o,t,r);n[r]?n[r].p(a,l):(n[r]=S1(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&&C(e),Ci(n,o)}}}function k2(i){let e,t;return e=new y1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[y2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.title=n[0].title),o&8193&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function w2(i,e,t){let n,o=tt(),{data:l,show:r}=o.ui.modals.hotKeyMap;return O(i,l,s=>t(0,n=s)),[n,l,()=>{r.set(!1)}]}var xs=class extends K{constructor(e){super(),W(this,e,w2,k2,U,{},v2)}},I1=xs;import{noop as Du}from"@vkontakte/videoplayer-shared";import{ChromecastState as dm,PlaybackState as Iu}from"@vkontakte/videoplayer-core";import{VideoQuality as vg}from"@vkontakte/videoplayer-core";var No={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"},P1={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"};var C2=i=>No[i]??No[P1[i]]??void 0,hr=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),io=(i,e)=>{if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=C2(t)??t),n&&t&&o){let r=e.filter(a=>a.label===n&&a.language===t);if(r.length===1)return j("audio_stream_display_language_label",{language:o,label:n});{let a=hr(i,r);return j("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=hr(i,r);return j("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=hr(i,r);return j("audio_stream_display_language_index",{language:o,index:a})}}let l=hr(i,e);return j("audio_stream_display_unknown",{index:l})};import"@vkontakte/videoplayer-shared";function S2(i){Se(i,"svelte-1oe0j8n",".pillow.svelte-1oe0j8n{background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px}")}function I2(i){let e,t,n=i[1].default,o=Ie(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)&&Te(o,n,l,l[0],t?Pe(n,l[0],r,null):Ee(l[0]),null)},i(l){t||(d(o,l),t=!0)},o(l){_(o,l),t=!1},d(l){l&&C(e),o&&o.d(l)}}}function P2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{"$$scope"in l&&t(0,o=l.$$scope)},[o,n]}var $s=class extends K{constructor(e){super(),W(this,e,P2,I2,U,{},S2)}},T1=$s;import{VideoQuality as wl}from"@vkontakte/videoplayer-core";function T2(i){let e,t,n,o,l=i[2].default,r=Ie(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=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),n=B("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"),ge(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)&&Te(r,l,u,u[1],o?Pe(l,u[1],f,null):Ee(u[1]),null),ge(e,s=Le(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&&C(e),r&&r.d(u)}}}function E2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ea=class extends K{constructor(e){super(),W(this,e,E2,T2,U,{})}},E1=ea;function A2(i){let e,t,n,o,l=i[2].default,r=Ie(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=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),n=B("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"),ge(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)&&Te(r,l,u,u[1],o?Pe(l,u[1],f,null):Ee(u[1]),null),ge(e,s=Le(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&&C(e),r&&r.d(u)}}}function M2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ta=class extends K{constructor(e){super(),W(this,e,M2,A2,U,{})}},A1=ta;function V2(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function L2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ia=class extends K{constructor(e){super(),W(this,e,L2,V2,U,{})}},M1=ia;function R2(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function B2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var na=class extends K{constructor(e){super(),W(this,e,B2,R2,U,{})}},gr=na;function D2(i){let e,t,n,o,l=i[2].default,r=Ie(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=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),n=B("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"),ge(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)&&Te(r,l,u,u[1],o?Pe(l,u[1],f,null):Ee(u[1]),null),ge(e,s=Le(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&&C(e),r&&r.d(u)}}}function N2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var oa=class extends K{constructor(e){super(),W(this,e,N2,D2,U,{})}},br=oa;var co=i=>{switch(i){case wl.Q_720P:return M1;case wl.Q_1080P:return gr;case wl.Q_1440P:return br;case wl.Q_2160P:return E1;case wl.Q_4320P:return A1}};function q2(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function O2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var la=class extends K{constructor(e){super(),W(this,e,O2,q2,U,{})}},V1=la;function F2(i){let e,t,n,o,l=i[2].default,r=Ie(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=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),n=B("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"),ge(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)&&Te(r,l,u,u[1],o?Pe(l,u[1],f,null):Ee(u[1]),null),ge(e,s=Le(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&&C(e),r&&r.d(u)}}}function H2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ra=class extends K{constructor(e){super(),W(this,e,H2,F2,U,{})}},L1=ra;function z2(i){Se(i,"svelte-8t5w85",'.icon.svelte-8t5w85{display:flex;position:relative;width:24px;height:24px}.icon.svelte-8t5w85 .pillow{position:absolute;top:1px;right:-9px}.icon.triple.svelte-8t5w85 .pillow{right:-13px}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full{visibility:hidden;opacity:0}')}function U2(i){let e,t,n,o,l=i[1]&&R1(i);return n=new L1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=P("div"),l&&l.c(),t=D(),R(n.$$.fragment),c(e,"class","icon svelte-8t5w85"),c(e,"aria-hidden","true"),q(e,"triple",i[2])},m(r,a){S(r,e,a),l&&l.m(e,null),m(e,t),M(n,e,null),o=!0},p(r,a){r[1]?l?(l.p(r,a),a&2&&d(l,1)):(l=R1(r),l.c(),d(l,1),l.m(e,t)):l&&(ue(),_(l,1,1,()=>{l=null}),ce());let s={};a&2&&(s["data-testid"]=r[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&q(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&&C(e),l&&l.d(),V(n)}}}function K2(i){let e,t;return e=new V1({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p:_e,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function R1(i){let e,t;return e=new T1({props:{$$slots:{default:[j2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&18&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function j2(i){let e,t,n;var o=i[1];function l(r){return{}}return o&&(e=vn(o,l(i))),{c(){e&&R(e.$$.fragment),t=at()},m(r,a){e&&M(e,r,a),S(r,t,a),n=!0},p(r,a){if(a&2&&o!==(o=r[1])){if(e){ue();let s=e;_(s.$$.fragment,1,0,()=>{V(s,1)}),ce()}o?(e=vn(o,l(r)),R(e.$$.fragment),d(e.$$.fragment,1),M(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&_(e.$$.fragment,r),n=!1},d(r){r&&C(t),e&&V(e,r)}}}function W2(i){let e,t,n,o,l=[K2,U2],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=at()},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):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),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&&C(n),r[e].d(s)}}}function G2(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=()=>{if(i.$$.dirty&8)e:t(1,n=co(l));if(i.$$.dirty&2)e:t(2,r=!!n&&[gr,br].includes(n))},[o,n,r,l]}var sa=class extends K{constructor(e){super(),W(this,e,G2,W2,U,{isMobile:0,currentQuality:3},z2)}},vr=sa;function Q2(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function Y2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var aa=class extends K{constructor(e){super(),W(this,e,Y2,Q2,U,{})}},yr=aa;function Z2(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function X2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ua=class extends K{constructor(e){super(),W(this,e,X2,Z2,U,{})}},B1=ua;function J2(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function x2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ca=class extends K{constructor(e){super(),W(this,e,x2,J2,U,{})}},D1=ca;function $2(i){let e,t,n,o,l,r=i[2].default,a=Ie(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=oe(u,s[f]);return{c(){e=B("svg"),a&&a.c(),t=B("g"),n=B("path"),o=B("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"),ge(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)&&Te(a,r,f,f[1],l?Pe(r,f[1],p,null):Ee(f[1]),null),ge(e,u=Le(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&&C(e),a&&a.d(f)}}}function eg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var fa=class extends K{constructor(e){super(),W(this,e,eg,$2,U,{})}},N1=fa;function tg(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function ig(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var da=class extends K{constructor(e){super(),W(this,e,ig,tg,U,{})}},q1=da;function ng(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function og(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ma=class extends K{constructor(e){super(),W(this,e,og,ng,U,{})}},O1=ma;function lg(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function rg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var pa=class extends K{constructor(e){super(),W(this,e,rg,lg,U,{})}},F1=pa;function sg(i){let e,t;return e=new F1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let 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){V(e,n)}}}function ag(i){let e,t;return e=new O1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let 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){V(e,n)}}}function ug(i){let e,t,n,o,l=[ag,sg],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=at()},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):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),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&&C(n),r[e].d(s)}}}function cg(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=()=>{if(i.$$.dirty&8)e:t(1,l=["up","down"].includes(o)),t(0,r=["right","down"].includes(o));if(i.$$.dirty&1)e:t(2,n=r?"transform: rotate(180deg);":void 0)},[r,l,n,o]}var _a=class extends K{constructor(e){super(),W(this,e,cg,ug,U,{direction:3})}},jn=_a;function fg(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function dg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ha=class extends K{constructor(e){super(),W(this,e,dg,fg,U,{})}},H1=ha;function mg(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function pg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ga=class extends K{constructor(e){super(),W(this,e,pg,mg,U,{})}},qo=ga;function _g(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function hg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ba=class extends K{constructor(e){super(),W(this,e,hg,_g,U,{})}},z1=ba;function gg(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function bg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var va=class extends K{constructor(e){super(),W(this,e,bg,gg,U,{})}},U1=va;function yg(i){Se(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 K1(i,e,t){let n=i.slice();return n[163]=e[t],n}function j1(i,e,t){let n=i.slice();return n[166]=e[t],n}function W1(i,e,t){let n=i.slice();return n[169]=e[t],n}function G1(i,e,t){let n=i.slice();return n[172]=e[t],n}function Q1(i){let e,t,n,o,l,r,a,s,u,f,p,h,k,g=i[40]&&Y1(i),w=i[30]&&Z1(i),v=i[29]&&J1(i),T=i[28]&&x1(i),b=i[27]&&$1(i),y=i[26]&&ed(i),I=i[25]&&td(i),Z=i[40]&&id(i);return{c(){e=P("div"),g&&g.c(),t=D(),n=P("ul"),w&&w.c(),o=D(),v&&v.c(),l=D(),T&&T.c(),r=D(),b&&b.c(),a=D(),y&&y.c(),s=D(),I&&I.c(),u=D(),Z&&Z.c(),c(n,"class","items svelte-1h807jq"),c(n,"role","menu"),c(n,"style",f=i[84]()),q(n,"items-mobile",i[40]),c(e,"class","menu svelte-1h807jq"),q(e,"menu-desktop",!i[40]),q(e,"menu-mobile",i[40]),q(e,"hidden",!i[13])},m(N,z){S(N,e,z),g&&g.m(e,null),m(e,t),m(e,n),w&&w.m(n,null),m(n,o),v&&v.m(n,null),m(n,l),T&&T.m(n,null),m(n,r),b&&b.m(n,null),m(n,a),y&&y.m(n,null),m(n,s),I&&I.m(n,null),m(n,u),Z&&Z.m(n,null),i[129](n),p=!0,h||(k=[de(e,"keydown",i[90]),de(e,"mouseenter",i[82]),de(e,"mouseleave",i[83])],h=!0)},p(N,z){N[40]?g?g.p(N,z):(g=Y1(N),g.c(),g.m(e,t)):g&&(g.d(1),g=null),N[30]?w?(w.p(N,z),z[0]&1073741824&&d(w,1)):(w=Z1(N),w.c(),d(w,1),w.m(n,o)):w&&(ue(),_(w,1,1,()=>{w=null}),ce()),N[29]?v?(v.p(N,z),z[0]&536870912&&d(v,1)):(v=J1(N),v.c(),d(v,1),v.m(n,l)):v&&(ue(),_(v,1,1,()=>{v=null}),ce()),N[28]?T?(T.p(N,z),z[0]&268435456&&d(T,1)):(T=x1(N),T.c(),d(T,1),T.m(n,r)):T&&(ue(),_(T,1,1,()=>{T=null}),ce()),N[27]?b?(b.p(N,z),z[0]&134217728&&d(b,1)):(b=$1(N),b.c(),d(b,1),b.m(n,a)):b&&(ue(),_(b,1,1,()=>{b=null}),ce()),N[26]?y?(y.p(N,z),z[0]&67108864&&d(y,1)):(y=ed(N),y.c(),d(y,1),y.m(n,s)):y&&(ue(),_(y,1,1,()=>{y=null}),ce()),N[25]?I?(I.p(N,z),z[0]&33554432&&d(I,1)):(I=td(N),I.c(),d(I,1),I.m(n,u)):I&&(ue(),_(I,1,1,()=>{I=null}),ce()),N[40]?Z?(Z.p(N,z),z[1]&512&&d(Z,1)):(Z=id(N),Z.c(),d(Z,1),Z.m(n,null)):Z&&(ue(),_(Z,1,1,()=>{Z=null}),ce()),(!p||z[1]&512)&&q(n,"items-mobile",N[40]),(!p||z[1]&512)&&q(e,"menu-desktop",!N[40]),(!p||z[1]&512)&&q(e,"menu-mobile",N[40]),(!p||z[0]&8192)&&q(e,"hidden",!N[13])},i(N){p||(d(w),d(v),d(T),d(b),d(y),d(I),d(Z),p=!0)},o(N){_(w),_(v),_(T),_(b),_(y),_(I),_(Z),p=!1},d(N){N&&C(e),g&&g.d(),w&&w.d(),v&&v.d(),T&&T.d(),b&&b.d(),y&&y.d(),I&&I.d(),Z&&Z.d(),i[129](null),h=!1,et(k)}}}function Y1(i){let e,t,n,o,l,r,a,s;return{c(){e=P("div"),t=P("div"),t.textContent=`${j("submenu_settings")}`,n=D(),o=P("div"),l=D(),r=P("div"),c(o,"class","close svelte-1h807jq"),c(e,"class","item menu-header svelte-1h807jq"),q(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=de(o,"click",st(i[66])),a=!0)},p(u,f){f[1]&512&&q(e,"item-mobile",u[40])},d(u){u&&(C(e),C(l),C(r)),a=!1,s()}}}function Z1(i){let e,t,n,o,l,r,a,s,u,f,p,h,k;n=new vr({});let g=i[39]&&!i[40]&&X1(i);return{c(){e=P("li"),t=P("div"),R(n.$$.fragment),o=D(),l=P("div"),l.textContent=`${j("menu_quality")}`,r=D(),a=P("div"),s=Ae(i[19]),u=D(),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=j("aria_label_menu_quality",{actual:i[32]})),c(e,"aria-haspopup","true"),q(e,"item-mobile",i[40])},m(w,v){S(w,e,v),m(e,t),M(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[124](e),p=!0,h||(k=[de(e,"click",st(i[67])),de(e,"keydown",i[91])],h=!0)},p(w,v){(!p||v[0]&524288)&&je(s,w[19]),w[39]&&!w[40]?g?(g.p(w,v),v[1]&768&&d(g,1)):(g=X1(w),g.c(),d(g,1),g.m(a,null)):g&&(ue(),_(g,1,1,()=>{g=null}),ce()),(!p||v[1]&2&&f!==(f=j("aria_label_menu_quality",{actual:w[32]})))&&c(e,"aria-label",f),(!p||v[1]&512)&&q(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&&C(e),V(n),g&&g.d(),i[124](null),h=!1,et(k)}}}function X1(i){let e,t,n;var o=i[39];function l(r){return{}}return o&&(t=vn(o,l(i))),{c(){e=P("div"),t&&R(t.$$.fragment),c(e,"class","menu-valueIcon svelte-1h807jq")},m(r,a){S(r,e,a),t&&M(t,e,null),n=!0},p(r,a){if(a[1]&256&&o!==(o=r[39])){if(t){ue();let s=t;_(s.$$.fragment,1,0,()=>{V(s,1)}),ce()}o?(t=vn(o,l(r)),R(t.$$.fragment),d(t.$$.fragment,1),M(t,e,null)):t=null}},i(r){n||(t&&d(t.$$.fragment,r),n=!0)},o(r){t&&_(t.$$.fragment,r),n=!1},d(r){r&&C(e),t&&V(t)}}}function J1(i){let e,t,n,o,l,r,a,s=io(i[41],i[9])+"",u,f,p,h,k;return n=new q1({}),{c(){e=P("li"),t=P("div"),R(n.$$.fragment),o=D(),l=P("div"),l.textContent=`${j("menu_audio_languages")}`,r=D(),a=P("div"),u=Ae(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=j("aria_label_menu_audio_languages",{actual:io(i[41],i[9])})),c(e,"aria-haspopup","true"),q(e,"item-mobile",i[40])},m(g,w){S(g,e,w),m(e,t),M(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,u),i[125](e),p=!0,h||(k=[de(e,"click",st(i[68])),de(e,"keydown",i[92])],h=!0)},p(g,w){(!p||w[0]&512|w[1]&1024)&&s!==(s=io(g[41],g[9])+"")&&je(u,s),(!p||w[0]&512|w[1]&1024&&f!==(f=j("aria_label_menu_audio_languages",{actual:io(g[41],g[9])})))&&c(e,"aria-label",f),(!p||w[1]&512)&&q(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&C(e),V(n),i[125](null),h=!1,et(k)}}}function x1(i){let e,t,n,o,l,r,a,s,u,f,p,h,k;return n=new N1({}),{c(){e=P("li"),t=P("div"),R(n.$$.fragment),o=D(),l=P("div"),l.textContent=`${j("menu_playback_rate")}`,r=D(),a=P("div"),s=Ae(i[11]),u=Ae("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=j("aria_label_menu_rate",{actual:i[33]})),c(e,"aria-haspopup","true"),q(e,"item-mobile",i[40])},m(g,w){S(g,e,w),m(e,t),M(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),m(a,u),i[126](e),p=!0,h||(k=[de(e,"click",st(Pt(i[73]))),de(e,"keydown",i[97])],h=!0)},p(g,w){(!p||w[0]&2048)&&je(s,g[11]),(!p||w[1]&4&&f!==(f=j("aria_label_menu_rate",{actual:g[33]})))&&c(e,"aria-label",f),(!p||w[1]&512)&&q(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&C(e),V(n),i[126](null),h=!1,et(k)}}}function $1(i){let e,t,n,o,l,r,a,s=i[42].displayValue+"",u,f,p,h,k;return n=new yr({}),{c(){e=P("li"),t=P("div"),R(n.$$.fragment),o=D(),l=P("div"),l.textContent=`${j("subtitles_caption")}`,r=D(),a=P("div"),u=Ae(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=j("aria_label_menu_subtitle",{actual:i[42].displayValue})),c(e,"aria-haspopup","true"),q(e,"item-mobile",i[40])},m(g,w){S(g,e,w),m(e,t),M(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,u),i[127](e),p=!0,h||(k=[de(e,"click",st(i[75])),de(e,"keydown",i[100])],h=!0)},p(g,w){(!p||w[1]&2048)&&s!==(s=g[42].displayValue+"")&&je(u,s),(!p||w[1]&2048&&f!==(f=j("aria_label_menu_subtitle",{actual:g[42].displayValue})))&&c(e,"aria-label",f),(!p||w[1]&512)&&q(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&C(e),V(n),i[127](null),h=!1,et(k)}}}function ed(i){let e,t,n,o,l,r,a,s,u,f,p,h;return n=new D1({}),{c(){e=P("li"),t=P("div"),R(n.$$.fragment),o=D(),l=P("div"),l.textContent=`${j("menu_traffic_saving")}`,r=D(),a=P("div"),s=Ae(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=j("aria_label_menu_traffic_saving",{actual:i[31]})),c(e,"aria-haspopup","true"),q(e,"item-mobile",i[40])},m(k,g){S(k,e,g),m(e,t),M(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),i[128](e),f=!0,p||(h=[de(e,"click",st(i[69])),de(e,"keydown",i[103])],p=!0)},p(k,g){(!f||g[1]&1)&&je(s,k[31]),(!f||g[1]&1&&u!==(u=j("aria_label_menu_traffic_saving",{actual:k[31]})))&&c(e,"aria-label",u),(!f||g[1]&512)&&q(e,"item-mobile",k[40])},i(k){f||(d(n.$$.fragment,k),f=!0)},o(k){_(n.$$.fragment,k),f=!1},d(k){k&&C(e),V(n),i[128](null),p=!1,et(h)}}}function td(i){let e,t,n,o,l,r,a,s,u;return n=new B1({}),{c(){e=P("li"),t=P("div"),R(n.$$.fragment),o=D(),l=P("div"),l.textContent=`${j("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=j("aria_label_menu_download")),q(e,"item-mobile",i[40])},m(f,p){S(f,e,p),m(e,t),M(n,t,null),m(e,o),m(e,l),a=!0,s||(u=[de(e,"click",st(i[78])),de(e,"keydown",i[106])],s=!0)},p(f,p){(!a||p[1]&512)&&q(e,"item-mobile",f[40])},i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&C(e),V(n),s=!1,et(u)}}}function id(i){let e,t,n,o,l,r,a,s,u,f,p,h,k,g,w,v,T,b=i[44].showSupport&&kg(i);return o=new z1({}),p=new U1({}),{c(){b&&b.c(),e=D(),t=P("li"),n=P("div"),R(o.$$.fragment),l=D(),r=P("div"),r.textContent=`${j("menu_copy_debug")}`,s=D(),u=P("li"),f=P("div"),R(p.$$.fragment),h=D(),k=P("div"),k.textContent=`${j("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=j("menu_copy_debug")),c(f,"class","menu-icon-wrapper svelte-1h807jq"),c(k,"class","menu-title svelte-1h807jq"),c(u,"class","item item-mobile svelte-1h807jq"),c(u,"role","menuitem"),c(u,"tabindex","0"),c(u,"aria-label",g=i[43]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"))},m(y,I){b&&b.m(y,I),S(y,e,I),S(y,t,I),m(t,n),M(o,n,null),m(t,l),m(t,r),S(y,s,I),S(y,u,I),m(u,f),M(p,f,null),m(u,h),m(u,k),w=!0,v||(T=[de(t,"click",st(i[80])),de(t,"keydown",i[108]),de(u,"click",st(i[81])),de(u,"keydown",i[109])],v=!0)},p(y,I){y[44].showSupport&&b.p(y,I),(!w||I[1]&4096&&g!==(g=y[43]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable")))&&c(u,"aria-label",g)},i(y){w||(d(b),d(o.$$.fragment,y),d(p.$$.fragment,y),w=!0)},o(y){_(b),_(o.$$.fragment,y),_(p.$$.fragment,y),w=!1},d(y){y&&(C(e),C(t),C(s),C(u)),b&&b.d(y),V(o),V(p),v=!1,et(T)}}}function kg(i){let e,t,n,o,l,r,a,s,u;return n=new H1({}),{c(){e=P("li"),t=P("div"),R(n.$$.fragment),o=D(),l=P("div"),l.textContent=`${j("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=`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`)},m(f,p){S(f,e,p),m(e,t),M(n,t,null),m(e,o),m(e,l),a=!0,s||(u=[de(e,"click",st(i[79])),de(e,"keydown",i[107])],s=!0)},p:_e,i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&C(e),V(n),s=!1,et(u)}}}function nd(i){let e,t,n,o,l,r,a,s,u,f,p,h,k,g;n=new jn({props:{direction:"left"}});let w=wt(i[10]),v=[];for(let b=0;b<w.length;b+=1)v[b]=rd(G1(i,w,b));let T=b=>_(v[b],1,1,()=>{v[b]=null});return{c(){e=P("div"),t=P("div"),R(n.$$.fragment),o=D(),l=P("div"),l.textContent=`${j("submenu_quality")}`,a=D(),s=P("div"),u=D(),f=P("ul");for(let b=0;b<v.length;b+=1)v[b].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",r=j("aria_label_submenu_back")),q(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[84](i[20]?.clientHeight,!0)),q(f,"items-mobile",i[40]),c(e,"class","menu menu-subList svelte-1h807jq"),q(e,"menu-desktop",!i[40]),q(e,"menu-mobile",i[40])},m(b,y){S(b,e,y),m(e,t),M(n,t,null),m(t,o),m(t,l),i[130](t),m(e,a),m(e,s),m(e,u),m(e,f);for(let I=0;I<v.length;I+=1)v[I]&&v[I].m(f,null);i[133](f),h=!0,k||(g=[de(t,"click",st(i[77])),de(f,"keydown",i[93])],k=!0)},p(b,y){if((!h||y[1]&512)&&q(t,"item-mobile",b[40]),y[0]&1024|y[1]&512|y[2]&256|y[3]&2){w=wt(b[10]);let I;for(I=0;I<w.length;I+=1){let Z=G1(b,w,I);v[I]?(v[I].p(Z,y),d(v[I],1)):(v[I]=rd(Z),v[I].c(),d(v[I],1),v[I].m(f,null))}for(ue(),I=w.length;I<v.length;I+=1)T(I);ce()}(!h||y[0]&1048576&&p!==(p=b[84](b[20]?.clientHeight,!0)))&&c(f,"style",p),(!h||y[1]&512)&&q(f,"items-mobile",b[40]),(!h||y[1]&512)&&q(e,"menu-desktop",!b[40]),(!h||y[1]&512)&&q(e,"menu-mobile",b[40])},i(b){if(!h){d(n.$$.fragment,b);for(let y=0;y<w.length;y+=1)d(v[y]);h=!0}},o(b){_(n.$$.fragment,b),v=v.filter(Boolean);for(let y=0;y<v.length;y+=1)_(v[y]);h=!1},d(b){b&&C(e),V(n),i[130](null),Ci(v,b),i[133](null),k=!1,et(g)}}}function od(i){let e,t,n;return t=new qo({}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),M(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),V(t)}}}function ld(i){let e,t,n;var o=co(i[172].value);function l(r){return{}}return o&&(t=vn(o,l(i))),{c(){e=P("div"),t&&R(t.$$.fragment),c(e,"class","menu-valueIcon-list svelte-1h807jq")},m(r,a){S(r,e,a),t&&M(t,e,null),n=!0},p(r,a){if(a[0]&1024&&o!==(o=co(r[172].value))){if(t){ue();let s=t;_(s.$$.fragment,1,0,()=>{V(s,1)}),ce()}o?(t=vn(o,l(r)),R(t.$$.fragment),d(t.$$.fragment,1),M(t,e,null)):t=null}},i(r){n||(t&&d(t.$$.fragment,r),n=!0)},o(r){t&&_(t.$$.fragment,r),n=!1},d(r){r&&C(e),t&&V(t)}}}function rd(i){let e,t,n,o=i[172].displayValue+"",l,r,a=!i[40]&&co(i[172].value),s,u,f,p,h,k,g=i[172].selected&&od(i),w=a&&ld(i);function v(){return i[131](i[172])}function T(...b){return i[132](i[172],...b)}return{c(){e=P("li"),g&&g.c(),t=D(),n=P("div"),l=Ae(o),r=D(),w&&w.c(),s=D(),c(n,"class","submenu-value svelte-1h807jq"),q(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",u=i[172].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=i[172].displayValue),q(e,"item-mobile",i[40])},m(b,y){S(b,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||(k=[de(e,"click",st(v)),de(e,"keydown",T)],h=!0)},p(b,y){i=b,i[172].selected?g?y[0]&1024&&d(g,1):(g=od(i),g.c(),d(g,1),g.m(e,t)):g&&(ue(),_(g,1,1,()=>{g=null}),ce()),(!p||y[0]&1024)&&o!==(o=i[172].displayValue+"")&&je(l,o),(!p||y[1]&512)&&q(n,"submenu-value-mobile",i[40]),y[0]&1024|y[1]&512&&(a=!i[40]&&co(i[172].value)),a?w?(w.p(i,y),y[0]&1024|y[1]&512&&d(w,1)):(w=ld(i),w.c(),d(w,1),w.m(e,s)):w&&(ue(),_(w,1,1,()=>{w=null}),ce()),(!p||y[0]&1024&&u!==(u=i[172].value))&&c(e,"data-value",u),(!p||y[0]&1024&&f!==(f=i[172].displayValue))&&c(e,"aria-label",f),(!p||y[1]&512)&&q(e,"item-mobile",i[40])},i(b){p||(d(g),d(w),p=!0)},o(b){_(g),_(w),p=!1},d(b){b&&C(e),g&&g.d(),w&&w.d(),h=!1,et(k)}}}function sd(i){let e,t,n,o,l,r,a,s,u,f,p,h,k,g;n=new jn({props:{direction:"left"}});let w=wt(i[9]),v=[];for(let b=0;b<w.length;b+=1)v[b]=ud(W1(i,w,b));let T=b=>_(v[b],1,1,()=>{v[b]=null});return{c(){e=P("div"),t=P("div"),R(n.$$.fragment),o=D(),l=P("div"),l.textContent=`${j("submenu_audio_languages")}`,a=D(),s=P("div"),u=D(),f=P("ul");for(let b=0;b<v.length;b+=1)v[b].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",r=j("aria_label_submenu_back")),q(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[84](i[21]?.clientHeight,!0)),q(f,"items-mobile",i[40]),c(e,"class","menu menu-subList svelte-1h807jq"),q(e,"menu-desktop",!i[40]),q(e,"menu-mobile",i[40])},m(b,y){S(b,e,y),m(e,t),M(n,t,null),m(t,o),m(t,l),i[134](t),m(e,a),m(e,s),m(e,u),m(e,f);for(let I=0;I<v.length;I+=1)v[I]&&v[I].m(f,null);i[137](f),h=!0,k||(g=[de(t,"click",st(i[77])),de(f,"keydown",i[95])],k=!0)},p(b,y){if((!h||y[1]&512)&&q(t,"item-mobile",b[40]),y[0]&512|y[1]&1536|y[2]&512|y[3]&8){w=wt(b[9]);let I;for(I=0;I<w.length;I+=1){let Z=W1(b,w,I);v[I]?(v[I].p(Z,y),d(v[I],1)):(v[I]=ud(Z),v[I].c(),d(v[I],1),v[I].m(f,null))}for(ue(),I=w.length;I<v.length;I+=1)T(I);ce()}(!h||y[0]&2097152&&p!==(p=b[84](b[21]?.clientHeight,!0)))&&c(f,"style",p),(!h||y[1]&512)&&q(f,"items-mobile",b[40]),(!h||y[1]&512)&&q(e,"menu-desktop",!b[40]),(!h||y[1]&512)&&q(e,"menu-mobile",b[40])},i(b){if(!h){d(n.$$.fragment,b);for(let y=0;y<w.length;y+=1)d(v[y]);h=!0}},o(b){_(n.$$.fragment,b),v=v.filter(Boolean);for(let y=0;y<v.length;y+=1)_(v[y]);h=!1},d(b){b&&C(e),V(n),i[134](null),Ci(v,b),i[137](null),k=!1,et(g)}}}function ad(i){let e,t,n;return t=new qo({}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),M(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),V(t)}}}function ud(i){let e,t,n,o=io(i[169],i[9])+"",l,r,a,s,u,f,p,h=i[169].id===i[41]?.id&&ad(i);function k(){return i[135](i[169])}function g(...w){return i[136](i[169],...w)}return{c(){e=P("li"),h&&h.c(),t=D(),n=P("div"),l=Ae(o),r=D(),c(n,"class","submenu-value svelte-1h807jq"),q(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=i[169].id),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=io(i[169],i[9])),q(e,"item-mobile",i[40])},m(w,v){S(w,e,v),h&&h.m(e,null),m(e,t),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[de(e,"click",st(k)),de(e,"keydown",g)],f=!0)},p(w,v){i=w,i[169].id===i[41]?.id?h?v[0]&512|v[1]&1024&&d(h,1):(h=ad(i),h.c(),d(h,1),h.m(e,t)):h&&(ue(),_(h,1,1,()=>{h=null}),ce()),(!u||v[0]&512)&&o!==(o=io(i[169],i[9])+"")&&je(l,o),(!u||v[1]&512)&&q(n,"submenu-value-mobile",i[40]),(!u||v[0]&512&&a!==(a=i[169].id))&&c(e,"data-value",a),(!u||v[0]&512&&s!==(s=io(i[169],i[9])))&&c(e,"aria-label",s),(!u||v[1]&512)&&q(e,"item-mobile",i[40])},i(w){u||(d(h),u=!0)},o(w){_(h),u=!1},d(w){w&&C(e),h&&h.d(),f=!1,et(p)}}}function cd(i){let e,t,n,o,l,r,a,s,u,f,p,h,k,g;n=new jn({props:{direction:"left"}});let w=wt(i[8]),v=[];for(let b=0;b<w.length;b+=1)v[b]=dd(j1(i,w,b));let T=b=>_(v[b],1,1,()=>{v[b]=null});return{c(){e=P("div"),t=P("div"),R(n.$$.fragment),o=D(),l=P("div"),l.textContent=`${j("submenu_playback_rate")}`,a=D(),s=P("div"),u=D(),f=P("ul");for(let b=0;b<v.length;b+=1)v[b].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",r=j("aria_label_submenu_back")),q(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[84](i[22]?.clientHeight,!0)),q(f,"items-mobile",i[40]),c(e,"class","menu menu-subList svelte-1h807jq"),q(e,"menu-desktop",!i[40]),q(e,"menu-mobile",i[40])},m(b,y){S(b,e,y),m(e,t),M(n,t,null),m(t,o),m(t,l),i[138](t),m(e,a),m(e,s),m(e,u),m(e,f);for(let I=0;I<v.length;I+=1)v[I]&&v[I].m(f,null);i[141](f),h=!0,k||(g=[de(t,"click",st(i[77])),de(f,"keydown",i[98])],k=!0)},p(b,y){if((!h||y[1]&512)&&q(t,"item-mobile",b[40]),y[0]&256|y[1]&512|y[2]&4096|y[3]&64){w=wt(b[8]);let I;for(I=0;I<w.length;I+=1){let Z=j1(b,w,I);v[I]?(v[I].p(Z,y),d(v[I],1)):(v[I]=dd(Z),v[I].c(),d(v[I],1),v[I].m(f,null))}for(ue(),I=w.length;I<v.length;I+=1)T(I);ce()}(!h||y[0]&4194304&&p!==(p=b[84](b[22]?.clientHeight,!0)))&&c(f,"style",p),(!h||y[1]&512)&&q(f,"items-mobile",b[40]),(!h||y[1]&512)&&q(e,"menu-desktop",!b[40]),(!h||y[1]&512)&&q(e,"menu-mobile",b[40])},i(b){if(!h){d(n.$$.fragment,b);for(let y=0;y<w.length;y+=1)d(v[y]);h=!0}},o(b){_(n.$$.fragment,b),v=v.filter(Boolean);for(let y=0;y<v.length;y+=1)_(v[y]);h=!1},d(b){b&&C(e),V(n),i[138](null),Ci(v,b),i[141](null),k=!1,et(g)}}}function fd(i){let e,t,n;return t=new qo({}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),M(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),V(t)}}}function dd(i){let e,t,n,o=i[166].displayValue+"",l,r,a,s,u,f,p,h=i[166].selected&&fd(i);function k(){return i[139](i[166])}function g(...w){return i[140](i[166],...w)}return{c(){e=P("li"),h&&h.c(),t=D(),n=P("div"),l=Ae(o),r=D(),c(n,"class","submenu-value svelte-1h807jq"),q(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=i[166].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[166].displayValue),q(e,"item-mobile",i[40])},m(w,v){S(w,e,v),h&&h.m(e,null),m(e,t),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[de(e,"click",st(k)),de(e,"keydown",g)],f=!0)},p(w,v){i=w,i[166].selected?h?v[0]&256&&d(h,1):(h=fd(i),h.c(),d(h,1),h.m(e,t)):h&&(ue(),_(h,1,1,()=>{h=null}),ce()),(!u||v[0]&256)&&o!==(o=i[166].displayValue+"")&&je(l,o),(!u||v[1]&512)&&q(n,"submenu-value-mobile",i[40]),(!u||v[0]&256&&a!==(a=i[166].value))&&c(e,"data-value",a),(!u||v[0]&256&&s!==(s=i[166].displayValue))&&c(e,"aria-label",s),(!u||v[1]&512)&&q(e,"item-mobile",i[40])},i(w){u||(d(h),u=!0)},o(w){_(h),u=!1},d(w){w&&C(e),h&&h.d(),f=!1,et(p)}}}function md(i){let e,t,n,o,l,r,a,s,u,f,p,h,k,g,w,v,T,b,y,I,Z,N,z,se,ae,F,x,E,X;n=new jn({props:{direction:"left"}});let Q=!i[6]&&pd(i),G=i[6]&&_d(i);return{c(){e=P("div"),t=P("div"),R(n.$$.fragment),o=D(),l=P("div"),l.textContent=`${j("submenu_traffic_saving")}`,a=D(),s=P("div"),u=D(),f=P("div"),p=P("ul"),h=P("li"),Q&&Q.c(),k=D(),g=P("div"),g.textContent=`${j("traffic_saving_disable")}`,v=D(),T=P("li"),G&&G.c(),b=D(),y=P("div"),y.textContent=`${j("traffic_saving_enable")}`,Z=D(),N=P("div"),z=D(),se=P("div"),ae=P("span"),ae.textContent=`${j("traffic_saving_helper_text")}`,c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",r=j("aria_label_submenu_back")),q(t,"item-mobile",i[40]),c(s,"class","menu-divider svelte-1h807jq"),c(g,"class","submenu-value svelte-1h807jq"),q(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=j("aria_label_submenu_traffic_saving_off")),q(h,"item-mobile",i[40]),c(y,"class","submenu-value svelte-1h807jq"),q(y,"submenu-value-mobile",i[40]),c(T,"class","item item-traffic-saving svelte-1h807jq"),c(T,"role","menuitem"),c(T,"tabindex","0"),c(T,"aria-label",I=`${j("aria_label_submenu_traffic_saving_on")}. ${j("traffic_saving_helper_text")}`),q(T,"item-mobile",i[40]),c(p,"class","items svelte-1h807jq"),c(p,"role","menu"),q(p,"items-mobile",i[40]),c(N,"class","menu-divider svelte-1h807jq"),c(ae,"class","svelte-1h807jq"),c(se,"class","item item-helper-text svelte-1h807jq"),q(se,"item-mobile",i[40]),c(f,"style",F=i[84](i[23]?.clientHeight,!0)),c(e,"class","menu menu-subList menu-subList-traffic-saving svelte-1h807jq"),q(e,"menu-desktop",!i[40]),q(e,"menu-mobile",i[40])},m(ee,L){S(ee,e,L),m(e,t),M(n,t,null),m(t,o),m(t,l),i[142](t),m(e,a),m(e,s),m(e,u),m(e,f),m(f,p),m(p,h),Q&&Q.m(h,null),m(h,k),m(h,g),m(p,v),m(p,T),G&&G.m(T,null),m(T,b),m(T,y),i[147](p),m(f,Z),m(f,N),m(f,z),m(f,se),m(se,ae),x=!0,E||(X=[de(t,"click",st(i[77])),de(h,"click",st(i[143])),de(h,"keydown",i[144]),de(T,"click",st(i[145])),de(T,"keydown",i[146]),de(p,"keydown",i[104])],E=!0)},p(ee,L){(!x||L[1]&512)&&q(t,"item-mobile",ee[40]),ee[6]?Q&&(ue(),_(Q,1,1,()=>{Q=null}),ce()):Q?L[0]&64&&d(Q,1):(Q=pd(ee),Q.c(),d(Q,1),Q.m(h,k)),(!x||L[1]&512)&&q(g,"submenu-value-mobile",ee[40]),(!x||L[1]&512)&&q(h,"item-mobile",ee[40]),ee[6]?G?L[0]&64&&d(G,1):(G=_d(ee),G.c(),d(G,1),G.m(T,b)):G&&(ue(),_(G,1,1,()=>{G=null}),ce()),(!x||L[1]&512)&&q(y,"submenu-value-mobile",ee[40]),(!x||L[1]&512)&&q(T,"item-mobile",ee[40]),(!x||L[1]&512)&&q(p,"items-mobile",ee[40]),(!x||L[1]&512)&&q(se,"item-mobile",ee[40]),(!x||L[0]&8388608&&F!==(F=ee[84](ee[23]?.clientHeight,!0)))&&c(f,"style",F),(!x||L[1]&512)&&q(e,"menu-desktop",!ee[40]),(!x||L[1]&512)&&q(e,"menu-mobile",ee[40])},i(ee){x||(d(n.$$.fragment,ee),d(Q),d(G),x=!0)},o(ee){_(n.$$.fragment,ee),_(Q),_(G),x=!1},d(ee){ee&&C(e),V(n),i[142](null),Q&&Q.d(),G&&G.d(),i[147](null),E=!1,et(X)}}}function pd(i){let e,t,n;return t=new qo({}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),M(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),V(t)}}}function _d(i){let e,t,n;return t=new qo({}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),M(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),V(t)}}}function hd(i){let e,t,n,o,l,r,a,s,u,f,p,h;n=new jn({props:{direction:"left"}});let k=wt(i[7]),g=[];for(let v=0;v<k.length;v+=1)g[v]=bd(K1(i,k,v));let w=v=>_(g[v],1,1,()=>{g[v]=null});return{c(){e=P("div"),t=P("div"),R(n.$$.fragment),o=D(),l=P("div"),l.textContent=`${j("subtitles_caption")}`,a=D(),s=P("ul");for(let v=0;v<g.length;v+=1)g[v].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",r=j("aria_label_submenu_back")),q(t,"item-mobile",i[40]),c(s,"class","items svelte-1h807jq"),c(s,"role","menu"),c(s,"style",u=i[84](i[24]?.clientHeight,!0)),q(s,"items-mobile",i[40]),c(e,"class","menu menu-subList menu-subList-subtitles svelte-1h807jq"),q(e,"menu-desktop",!i[40]),q(e,"menu-mobile",i[40])},m(v,T){S(v,e,T),m(e,t),M(n,t,null),m(t,o),m(t,l),i[148](t),m(e,a),m(e,s);for(let b=0;b<g.length;b+=1)g[b]&&g[b].m(s,null);i[151](s),f=!0,p||(h=[de(t,"click",st(i[77])),de(s,"keydown",i[101])],p=!0)},p(v,T){if((!f||T[1]&512)&&q(t,"item-mobile",v[40]),T[0]&128|T[1]&512|T[2]&16384|T[3]&512){k=wt(v[7]);let b;for(b=0;b<k.length;b+=1){let y=K1(v,k,b);g[b]?(g[b].p(y,T),d(g[b],1)):(g[b]=bd(y),g[b].c(),d(g[b],1),g[b].m(s,null))}for(ue(),b=k.length;b<g.length;b+=1)w(b);ce()}(!f||T[0]&16777216&&u!==(u=v[84](v[24]?.clientHeight,!0)))&&c(s,"style",u),(!f||T[1]&512)&&q(s,"items-mobile",v[40]),(!f||T[1]&512)&&q(e,"menu-desktop",!v[40]),(!f||T[1]&512)&&q(e,"menu-mobile",v[40])},i(v){if(!f){d(n.$$.fragment,v);for(let T=0;T<k.length;T+=1)d(g[T]);f=!0}},o(v){_(n.$$.fragment,v),g=g.filter(Boolean);for(let T=0;T<g.length;T+=1)_(g[T]);f=!1},d(v){v&&C(e),V(n),i[148](null),Ci(g,v),i[151](null),p=!1,et(h)}}}function gd(i){let e,t,n;return t=new qo({}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),M(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),V(t)}}}function bd(i){let e,t,n,o=i[163].displayValue+"",l,r,a,s,u,f,p,h=i[163].selected&&gd(i);function k(){return i[149](i[163])}function g(...w){return i[150](i[163],...w)}return{c(){e=P("li"),h&&h.c(),t=D(),n=P("div"),l=Ae(o),r=D(),c(n,"class","submenu-value svelte-1h807jq"),q(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=i[163].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[163].displayValue),q(e,"item-mobile",i[40])},m(w,v){S(w,e,v),h&&h.m(e,null),m(e,t),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[de(e,"click",st(k)),de(e,"keydown",g)],f=!0)},p(w,v){i=w,i[163].selected?h?v[0]&128&&d(h,1):(h=gd(i),h.c(),d(h,1),h.m(e,t)):h&&(ue(),_(h,1,1,()=>{h=null}),ce()),(!u||v[0]&128)&&o!==(o=i[163].displayValue+"")&&je(l,o),(!u||v[1]&512)&&q(n,"submenu-value-mobile",i[40]),(!u||v[0]&128&&a!==(a=i[163].value))&&c(e,"data-value",a),(!u||v[0]&128&&s!==(s=i[163].displayValue))&&c(e,"aria-label",s),(!u||v[1]&512)&&q(e,"item-mobile",i[40])},i(w){u||(d(h),u=!0)},o(w){_(h),u=!1},d(w){w&&C(e),h&&h.d(),f=!1,et(p)}}}function wg(i){let e,t,n,o,l,r,a,s=i[12]&&Q1(i),u=i[14]&&nd(i),f=i[15]&&sd(i),p=i[16]&&cd(i),h=i[18]&&md(i),k=i[17]&&hd(i);return{c(){e=P("div"),s&&s.c(),t=D(),u&&u.c(),n=D(),f&&f.c(),o=D(),p&&p.c(),l=D(),h&&h.c(),r=D(),k&&k.c(),c(e,"class","svelte-1h807jq"),q(e,"hidden",!i[12]),q(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),k&&k.m(e,null),a=!0},p(g,w){g[12]?s?(s.p(g,w),w[0]&4096&&d(s,1)):(s=Q1(g),s.c(),d(s,1),s.m(e,t)):s&&(ue(),_(s,1,1,()=>{s=null}),ce()),g[14]?u?(u.p(g,w),w[0]&16384&&d(u,1)):(u=nd(g),u.c(),d(u,1),u.m(e,n)):u&&(ue(),_(u,1,1,()=>{u=null}),ce()),g[15]?f?(f.p(g,w),w[0]&32768&&d(f,1)):(f=sd(g),f.c(),d(f,1),f.m(e,o)):f&&(ue(),_(f,1,1,()=>{f=null}),ce()),g[16]?p?(p.p(g,w),w[0]&65536&&d(p,1)):(p=cd(g),p.c(),d(p,1),p.m(e,l)):p&&(ue(),_(p,1,1,()=>{p=null}),ce()),g[18]?h?(h.p(g,w),w[0]&262144&&d(h,1)):(h=md(g),h.c(),d(h,1),h.m(e,r)):h&&(ue(),_(h,1,1,()=>{h=null}),ce()),g[17]?k?(k.p(g,w),w[0]&131072&&d(k,1)):(k=hd(g),k.c(),d(k,1),k.m(e,null)):k&&(ue(),_(k,1,1,()=>{k=null}),ce()),(!a||w[0]&4096)&&q(e,"hidden",!g[12]),(!a||w[1]&512)&&q(e,"container-mobile",g[40])},i(g){a||(d(s),d(u),d(f),d(p),d(h),d(k),a=!0)},o(g){_(s),_(u),_(f),_(p),_(h),_(k),a=!1},d(g){g&&C(e),s&&s.d(),u&&u.d(),f&&f.d(),p&&p.d(),h&&h.d(),k&&k.d()}}}var Cg=18;function Sg(i,e,t){let n,o,l,r,a,s,u,f,p,h,k,g,w,v,T,b,y,I,Z,N,z,se,ae,F,x,E,X,{ref:Q=void 0}=e,{supportLink:G}=e,{playerControlsHeight:ee=0}=e,{returnFocus:L}=e,H=tt(),Be=Bt(),ze=H.state.audioStream$;O(i,ze,te=>t(41,g=te));let We=H.state.availableAudioStreams$;O(i,We,te=>t(9,w=te));let Xe=H.state.currentQuality$;O(i,Xe,te=>t(118,b=te));let qe=H.state.availableQualities$;O(i,qe,te=>t(10,v=te));let ye=H.state.autoQualityLimitingAvailable$;O(i,ye,te=>t(122,N=te));let J=H.state.isAutoQualityEnabled$;O(i,J,te=>t(119,y=te));let we=H.state.currentPlaybackRate$;O(i,we,te=>t(11,T=te));let Ke=H.state.availablePlaybackRates$;O(i,Ke,te=>t(8,p=te));let Je=H.state.currentSubtitle$;O(i,Je,te=>t(42,E=te));let it=H.state.availableSubtitlesList$;O(i,it,te=>t(7,u=te));let ke=H.state.canDownload,Ne=H.state.hasMpegSources$;O(i,Ne,te=>t(123,z=te));let Ge=H.ui.settingsMenuVisible;O(i,Ge,te=>t(12,x=te));let nt=H.ui.settingsMenuOpenedByKeyboard;O(i,nt,te=>t(153,o=te));let Ce=H.ui.isMobile;O(i,Ce,te=>t(40,l=te));let re=H.ui.mobileNotReportControlHidden$;O(i,re,te=>t(120,I=te));let Ue=H.state.canChangePlaybackSpeed$;O(i,Ue,te=>t(121,Z=te));let me=H.ui.isFullscreen;O(i,me,te=>t(156,F=te));let le=H.state.trafficSavingEnabled$;O(i,le,te=>t(6,a=te));let De=H.ui.playerSize;O(i,De,te=>t(155,ae=te));let Me=H.ui.debugPanelVisible;O(i,Me,te=>t(43,X=te));let Ye=H.ui.playerSize;O(i,Ye,te=>t(154,se=te));let rt=H.state.isInteractiveTime$,ve=H.actions.internal.downloadVideo,ft=H.actions.internal.closeSettingsMenu,ht=!0,ut=!1,mt=!1,St=!1,Qe=!1,Nt=!1,Vt=!1;function Ct(){o||L?.(),ft(),Vt=!1}function oi(){t(13,ht=!1),t(14,ut=!0)}function lt(){t(13,ht=!1),t(15,mt=!0)}function kt(){t(13,ht=!1),t(18,Nt=!0)}function be(te){H.actions.internal.setQuality(te),Ct()}function pt(te){H.actions.internal.setAudioStream(te),Ct()}function It(te){H.actions.internal.setTrafficSavingEnabled(te),Ct()}function Qt(){t(13,ht=!1),t(16,St=!0)}function yt(te){H.actions.internal.setPlaybackRate(te),Ct()}function Ut(){t(13,ht=!1),t(17,Qe=!0)}function qt(te){H.actions.internal.setSubtitle(te),Ct()}function Kt(){t(13,ht=!0),t(14,ut=!1),t(15,mt=!1),t(16,St=!1),t(17,Qe=!1),t(18,Nt=!1)}function Fi(){ve(),Ct()}function tn(){window.open(G,"_blank"),Ct(),H.actions.internal.pause()}function Jt(){el(H.actions.internal.getDebugTextData()),Ct()}function Ii(){Me.set(!0),Ct()}function cn(){Vt=!0}function Pi(){Vt=!1}function nn(te,dt,ki){if(!te)return"...";let Ln=dt.find(On=>On.value===te),Rn=Ln?Ln.displayValue:te;return ki?te===vg.INVARIANT?j("auto_quality_invariant"):j("auto_quality",{actual:Rn}):Rn}let li,Ti,xt,_i,hi,gi;function ri(te=0,dt=!1){return l&&F&&dt?`max-height: ${Math.round(ae.height*.6)}px`:l?"":`max-height: ${se.height-Cg-te-ee}px; overflow: auto;`}let si,jt,bi,Hi,vi,ai,zi,Mt,Ui,Ot,Ei,Ki,ji,Wt=Re(!1);O(i,Wt,te=>t(117,k=te));let ui=Re(!1);O(i,ui,te=>t(116,h=te));let ci,fi,$t=Re(!1);O(i,$t,te=>t(115,f=te));let Et,yi,Ai=Re(!1);O(i,Ai,te=>t(114,s=te));let Yt,Zt,ei=Re(!1);O(i,ei,te=>t(113,r=te));let Wi=te=>{ar(te,ft)},fn=async te=>{ll(te,oi,()=>{let dt=v.findIndex(ki=>ki.selected);return Ki.childNodes[dt]})},on=async te=>{ll(te,lt,()=>{let dt=w.findIndex(ki=>ki.id===g?.id);return ji.childNodes[dt]})},Gi=async te=>{rl(te,Kt,Wt,ft)},Mi=(te,dt)=>{pi(te,()=>be(dt))},Ft=async te=>{rl(te,Kt,ui,ft)},Lt=(te,dt)=>{pi(te,()=>pt(dt))},Dt=async te=>{ll(te,Qt,()=>{let dt=p.findIndex(ki=>ki.selected);return fi.childNodes[dt]})},Vi=async te=>{rl(te,Kt,$t,ft)},Li=(te,dt)=>{pi(te,()=>yt(dt))},ln=async te=>{ll(te,Ut,()=>{let dt=u.findIndex(ki=>ki.selected);return yi.childNodes[dt]})},Ri=async te=>{rl(te,Kt,Ai,ft)},Bi=(te,dt)=>{pi(te,()=>qt(dt))},$e=async te=>{ll(te,kt,()=>{let dt=a?2:0;return Zt.childNodes[dt]})},ti=async te=>{rl(te,Kt,ei,ft)},Xt=(te,dt)=>{pi(te,()=>It(dt))},He=te=>{pi(te,()=>Fi())},Qi=te=>{pi(te,()=>tn())},rn=te=>{pi(te,()=>Jt())},Yi=te=>{pi(te,()=>Ii())};Tt(()=>{let te=rt.subscribe(dt=>{dt&&!l&&!Vt&&!o&&Ct()});return()=>{te()}});function Zi(te){pe[te?"unshift":"push"](()=>{Ot=te,t(1,Ot)})}function Xi(te){pe[te?"unshift":"push"](()=>{Ei=te,t(2,Ei)})}function Ji(te){pe[te?"unshift":"push"](()=>{ci=te,t(3,ci)})}function sn(te){pe[te?"unshift":"push"](()=>{Et=te,t(4,Et)})}function dn(te){pe[te?"unshift":"push"](()=>{Yt=te,t(5,Yt)})}function Ht(te){pe[te?"unshift":"push"](()=>{Q=te,t(0,Q)})}function Di(te){pe[te?"unshift":"push"](()=>{Ti=te,t(20,Ti)})}let pn=te=>be(te.value),kn=(te,dt)=>Mi(dt,te.value);function Ni(te){pe[te?"unshift":"push"](()=>{Ki=te,t(34,Ki)})}function _n(te){pe[te?"unshift":"push"](()=>{xt=te,t(21,xt)})}let mn=te=>pt(te),ii=(te,dt)=>Lt(dt,te);function xi(te){pe[te?"unshift":"push"](()=>{ji=te,t(35,ji)})}function $i(te){pe[te?"unshift":"push"](()=>{_i=te,t(22,_i)})}let wn=te=>yt(te.value),hn=(te,dt)=>Li(dt,te.value);function Gt(te){pe[te?"unshift":"push"](()=>{fi=te,t(36,fi)})}function Mn(te){pe[te?"unshift":"push"](()=>{hi=te,t(23,hi)})}let Vn=()=>It(!1),Cn=te=>Xt(te,!1),gn=()=>It(!0),an=te=>Xt(te,!0);function Sn(te){pe[te?"unshift":"push"](()=>{Zt=te,t(38,Zt)})}function en(te){pe[te?"unshift":"push"](()=>{gi=te,t(24,gi)})}let ie=te=>qt(te),gt=(te,dt)=>Bi(dt,te);function un(te){pe[te?"unshift":"push"](()=>{yi=te,t(37,yi)})}return i.$$set=te=>{"ref"in te&&t(0,Q=te.ref),"supportLink"in te&&t(110,G=te.supportLink),"playerControlsHeight"in te&&t(111,ee=te.playerControlsHeight),"returnFocus"in te&&t(112,L=te.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&4096)e:x&&(t(13,ht=!0),t(14,ut=!1),t(15,mt=!1),t(16,St=!1),t(17,Qe=!1),t(18,Nt=!1));if(i.$$.dirty[3]&33554432)e:t(39,n=co(b));if(i.$$.dirty[0]&1024|i.$$.dirty[3]&100663296)e:t(19,li=nn(b,v,y));if(i.$$.dirty[3]&1207959552)e:t(25,si=ke&&z&&!I);if(i.$$.dirty[3]&671088640)e:t(26,jt=Be.features.trafficSaving&&!I&&N);if(i.$$.dirty[0]&128|i.$$.dirty[3]&134217728)e:t(27,bi=u.length>0&&!I);if(i.$$.dirty[3]&402653184)e:t(28,Hi=!!Z&&!I);if(i.$$.dirty[0]&512|i.$$.dirty[3]&134217728)e:t(29,vi=Be.features.audioLanguages&&w.length>=2&&!I);if(i.$$.dirty[3]&134217728)e:t(30,ai=!I);if(i.$$.dirty[0]&64)e:t(31,zi=a?j("traffic_saving_on"):j("traffic_saving_off"));if(i.$$.dirty[3]&100663296)e:t(32,Mt=y?j("auto_quality_option"):b);if(i.$$.dirty[0]&2304)e:t(33,Ui=p.find(te=>te.value===T)?.displayValue);if(i.$$.dirty[0]&2|i.$$.dirty[3]&16777216)e:ol(Ot,Wt,k);if(i.$$.dirty[0]&4|i.$$.dirty[3]&8388608)e:ol(Ei,ui,h);if(i.$$.dirty[0]&8|i.$$.dirty[3]&4194304)e:ol(ci,$t,f);if(i.$$.dirty[0]&16|i.$$.dirty[3]&2097152)e:ol(Et,Ai,s);if(i.$$.dirty[0]&32|i.$$.dirty[3]&1048576)e:ol(Yt,ei,r)},[Q,Ot,Ei,ci,Et,Yt,a,u,p,w,v,T,x,ht,ut,mt,St,Qe,Nt,li,Ti,xt,_i,hi,gi,si,jt,bi,Hi,vi,ai,zi,Mt,Ui,Ki,ji,fi,yi,Zt,n,l,g,E,X,Be,ze,We,Xe,qe,ye,J,we,Ke,Je,it,Ne,Ge,nt,Ce,re,Ue,me,le,De,Me,Ye,Ct,oi,lt,kt,be,pt,It,Qt,yt,Ut,qt,Kt,Fi,tn,Jt,Ii,cn,Pi,ri,Wt,ui,$t,Ai,ei,Wi,fn,on,Gi,Mi,Ft,Lt,Dt,Vi,Li,ln,Ri,Bi,$e,ti,Xt,He,Qi,rn,Yi,G,ee,L,r,s,f,h,k,b,y,I,Z,N,z,Zi,Xi,Ji,sn,dn,Ht,Di,pn,kn,Ni,_n,mn,ii,xi,$i,wn,hn,Gt,Mn,Vn,Cn,gn,an,Sn,en,ie,gt,un]}var ya=class extends K{constructor(e){super(),W(this,e,Sg,wg,U,{ref:0,supportLink:110,playerControlsHeight:111,returnFocus:112},yg,[-1,-1,-1,-1,-1,-1])}},kr=ya;function Ig(i){Se(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function Pg(i){let e,t,n;return t=new vr({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=P("span"),R(t.$$.fragment),c(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,l){S(o,e,l),M(t,e,null),n=!0},p(o,l){let r={};l&8&&(r.isMobile=o[3]),l&16&&(r.currentQuality=o[4]),t.$set(r)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),V(t)}}}function Tg(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:[Pg]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"opened":""),a&4&&(s.ariaLabel=r[2]),a&2&&(s.ariaExpanded=r[1]),a&4120&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function Eg(i,e,t){let n,o,l,{ref:r=void 0}=e,a=tt(),s=a.state.currentQuality$;O(i,s,w=>t(4,l=w));let u=a.ui.settingsMenuVisible;O(i,u,w=>t(1,n=w));let f=a.actions.internal.toggleSettingsMenu,p=a.ui.isMobile;O(i,p,w=>t(3,o=w));let h;function k(w){let v=il(w);f(v)}function g(w){r=w,t(0,r)}return i.$$set=w=>{"ref"in w&&t(0,r=w.ref)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(2,h=n?j("tooltip_settings_on"):j("tooltip_settings_off"))},[r,n,h,o,l,s,u,p,k,g]}var ka=class extends K{constructor(e){super(),W(this,e,Eg,Tg,U,{ref:0},Ig)}},Cl=ka;function Ag(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function Mg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var wa=class extends K{constructor(e){super(),W(this,e,Mg,Ag,U,{})}},vd=wa;function Vg(i){let e,t;return e=new yr({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Lg(i){let e,t;return e=new vd({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Rg(i){let e,t,n,o,l=[Lg,Vg],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=at()},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&&(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),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&&C(n),r[e].d(s)}}}function Bg(i){let e,t;return e=new _t({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Gn.KeyC,$$slots:{default:[Rg]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&4&&(l.ariaLabel=n[2]),o&2&&(l.click=n[1]),o&9&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Dg(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=()=>{if(i.$$.dirty&1)e:t(2,l=n?j("tooltip_subtitles_on"):j("tooltip_subtitles_off"))},[n,o,l]}var Ca=class extends K{constructor(e){super(),W(this,e,Dg,Bg,U,{isSubtitlesEnabled:0,click:1})}},yd=Ca;function Ng(i){Se(i,"svelte-19o2urr",".time.svelte-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.svelte-19o2urr{padding:0 0 0 8px}.current.svelte-19o2urr{position:relative}.duration.svelte-19o2urr{opacity:0.7}.duration.svelte-19o2urr:before{content:' / ';white-space:pre}")}function kd(i){let e,t;return{c(){e=P("span"),t=Ae(i[3]),c(e,"class","duration svelte-19o2urr")},m(n,o){S(n,e,o),m(e,t)},p(n,o){o&8&&je(t,n[3])},d(n){n&&C(e)}}}function qg(i){let e,t,n,o,l=i[2]&&kd(i);return{c(){e=P("div"),t=P("span"),n=Ae(i[4]),o=D(),l&&l.c(),c(t,"class","current svelte-19o2urr"),c(e,"class","time svelte-19o2urr"),q(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&&je(n,r[4]),r[2]?l?l.p(r,a):(l=kd(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&2&&q(e,"mobile",r[1])},i:_e,o:_e,d(r){r&&C(e),l&&l.d(),i[7](null)}}}function Og(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){pe[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=()=>{if(i.$$.dirty&32)e:t(3,s=En(o));if(i.$$.dirty&64)e:t(4,u=En(l))},[a,n,r,s,u,o,l,f]}var Sa=class extends K{constructor(e){super(),W(this,e,Og,qg,U,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},Ng)}},wr=Sa;import{noop as fo}from"@vkontakte/videoplayer-shared";function Fg(i){Se(i,"svelte-1n5yyua",".icon.svelte-1n5yyua.svelte-1n5yyua{display:block;width:24px;height:24px}.icon.svelte-1n5yyua .cross.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .wave1.svelte-1n5yyua,.icon[data-value='off'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .cross.svelte-1n5yyua{visibility:visible}.icon[data-value='mid'].svelte-1n5yyua .wave2.svelte-1n5yyua,.icon[data-value='min'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}")}function Hg(i){let e,t,n,o,l,r;return{c(){e=B("svg"),t=B("g"),n=B("path"),o=B("path"),l=B("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:_e,o:_e,d(a){a&&C(e)}}}function zg(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=()=>{if(i.$$.dirty&6)e:t(0,r=l(n,o))},[r,n,o]}var Ia=class extends K{constructor(e){super(),W(this,e,zg,Hg,U,{volume:1,muted:2},Fg)}},Oo=Ia;import{noop as Wn}from"@vkontakte/videoplayer-shared";import{noop as Zg}from"@vkontakte/videoplayer-shared";import{noop as jg}from"@vkontakte/videoplayer-shared";function Ug(i){let e,t,n=i[4].default,o=Ie(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)&&Te(o,n,l,l[3],t?Pe(n,l[3],r,null):Ee(l[3]),null)},i(l){t||(d(o,l),t=!0)},o(l){_(o,l),t=!1},d(l){l&&C(e),o&&o.d(l),i[5](null)}}}function Kg(i,e,t){let n,{$$slots:o={},$$scope:l}=e,a=tt().ui.overlayContainer$;O(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)};Tt(()=>(f(n),()=>u(n)));function p(h){pe[h?"unshift":"push"](()=>{s=h,t(0,s)})}return i.$$set=h=>{"$$scope"in h&&t(3,l=h.$$scope)},i.$$.update=()=>{if(i.$$.dirty&4)e:f(n)},[s,a,n,l,o,p]}var Pa=class extends K{constructor(e){super(),W(this,e,Kg,Ug,U,{})}},wd=Pa;function Wg(i){Se(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 Cd(i){let e,t;return e=new wd({props:{$$slots:{default:[Gg]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){M(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){V(e,n)}}}function Gg(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("div"),n=Ae(i[1]),o=D(),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"});`),q(l,"bottom-placement-pointer",!i[8]),c(e,"class","tooltip svelte-tny135"),c(e,"style",a=`transform: translate(${i[6]}px, ${i[7]}px);`),q(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&&je(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&&q(e,"active",s[0])},d(s){s&&C(e),i[20](null)}}}function Qg(i){let e,t,n,o,l,r,a=i[18].default,s=Ie(a,i,i[21],null),u=i[1]&&Cd(i);return{c(){e=P("div"),s&&s.c(),t=D(),u&&u.c(),n=at(),c(e,"class","tooltip-wrapper svelte-tny135"),q(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=[de(e,"mouseenter",i[12]),de(e,"mousemove",i[12]),de(e,"mouseleave",i[13]),de(e,"mousedown",i[13]),de(e,"mouseup",i[12])],l=!0)},p(f,[p]){s&&s.p&&(!o||p&2097152)&&Te(s,a,f,f[21],o?Pe(a,f[21],p,null):Ee(f[21]),null),(!o||p&4)&&q(e,"full-width",f[2]),f[1]?u?(u.p(f,p),p&2&&d(u,1)):(u=Cd(f),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(ue(),_(u,1,1,()=>{u=null}),ce())},i(f){o||(d(s,f),d(u),o=!0)},o(f){_(s,f),_(u),o=!1},d(f){f&&(C(e),C(t),C(n)),s&&s.d(f),i[19](null),u&&u.d(f),l=!1,et(r)}}}var Sl=5;function Yg(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:k=jg}=e,g=h==="top",w,v,T,b=0,y=g?Sl:-Sl,I=0,Z=0,N=Bt(),z=tt(),se=z.ui.playerSize;O(i,se,H=>t(24,o=H));let ae=z.ui.overlayContainer$;O(i,ae,H=>t(23,n=H));let F=z.getLogger().createComponentLog("Tooltip component"),x=()=>{if(!n||!v||!w)return;let H=n.getBoundingClientRect(),Be=w.getBoundingClientRect(),ze=Be.width,We=v.clientWidth,Xe=o.width,qe=(ze-We)/2,ye=Be.left+u-H.left,J=ye+qe,we=Be.top+f-H.top,Ke=We/2-Sl,Je=J<8,it=J+We>Xe-8;Je&&(J=8,Ke=ye+Be.width/2-2.5*Sl),it&&(J=Xe-8-We,Ke=Be.left-H.left+Be.width/2-J-Sl),t(6,I=J),t(7,Z=we),t(5,b=Ke)},E=()=>{try{if(!n||!w)return;x(),t(0,s=!0)}catch(H){F({message:String(H)})}},X=()=>{t(0,s=!1)},Q=()=>{v&&(T||(T=window.setTimeout(E,N.controls.hideTimeoutTooltips)),s&&E())},G=()=>{X(),window.clearTimeout(T),T=void 0};Tt(x),zn(()=>window.clearTimeout(T));function ee(H){pe[H?"unshift":"push"](()=>{w=H,t(3,w)})}function L(H){pe[H?"unshift":"push"](()=>{v=H,t(4,v)})}return i.$$set=H=>{"content"in H&&t(1,a=H.content),"active"in H&&t(0,s=H.active),"translateX"in H&&t(14,u=H.translateX),"translateY"in H&&t(15,f=H.translateY),"isFullWidthWrapper"in H&&t(2,p=H.isFullWidthWrapper),"placement"in H&&t(16,h=H.placement),"onVisibilityChange"in H&&t(17,k=H.onVisibilityChange),"$$scope"in H&&t(21,r=H.$$scope)},i.$$.update=()=>{if(i.$$.dirty&131073)e:k(s)},[s,a,p,w,v,b,I,Z,g,y,se,ae,Q,G,u,f,h,k,l,ee,L,r]}var Ta=class extends K{constructor(e){super(),W(this,e,Yg,Qg,U,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},Wg)}},Cr=Ta;function Xg(i){Se(i,"svelte-p9r045",".btn-container.svelte-p9r045{position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.svelte-p9r045{width:100%;min-width:0}")}function Jg(i){let e,t=i[19].default,n=Ie(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)&&Te(n,t,o,o[24],e?Pe(t,o[24],l,null):Ee(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function xg(i){let e,t;return e=new Cr({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[$g]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&2048&&(l.content=n[11]),o&512&&(l.translateX=n[9]),o&1024&&(l.translateY=n[10]),o&16&&(l.isFullWidthWrapper=n[4]),o&32&&(l.active=n[5]),o&64&&(l.placement=n[6]),o&256&&(l.onVisibilityChange=n[8]),o&16777216&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function $g(i){let e,t=i[19].default,n=Ie(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)&&Te(n,t,o,o[24],e?Pe(t,o[24],l,null):Ee(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function eb(i){let e,t,n,o,l,r,a,s,u,f=[xg,Jg],p=[];function h(k,g){return k[3]&&k[11]&&!k[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(k,g){S(k,e,g),p[t].m(e,null),i[22](e),r=Wo(e,i[23].bind(e)),a=!0,s||(u=[de(e,"pointerdown",st(Pt(i[20]))),de(e,"click",st(Pt(i[21])))],s=!0)},p(k,[g]){let w=t;t=h(k,g),t===w?p[t].p(k,g):(ue(),_(p[w],1,1,()=>{p[w]=null}),ce(),n=p[t],n?n.p(k,g):(n=p[t]=f[t](k),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+k[2]+" svelte-p9r045"))&&c(e,"class",o),(!a||g&128&&l!==(l=k[7]||null))&&c(e,"aria-hidden",l)},i(k){a||(d(n),a=!0)},o(k){_(n),a=!1},d(k){k&&C(e),p[t].d(),i[22](null),r(),s=!1,et(u)}}}function tb(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:k=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:w="top"}=e,{disabledTooltipContent:v=j("tooltip_button_disabled")}=e,{isAriaHidden:T=!1}=e,{onTooltipVisibilityChange:b=Zg}=e,{initialTranslateXPx:y=0}=e,{initialTranslateYPx:I=-18}=e,Z=tt(),N=Z.ui.isMobile;O(i,N,X=>t(12,o=X));let z=Z.state.graphIsOpened$;O(i,z,X=>t(18,n=X));let se;function ae(X){Pn.call(this,i,X)}function F(X){Pn.call(this,i,X)}function x(X){pe[X?"unshift":"push"](()=>{f=X,t(0,f)})}function E(){p=this.clientWidth,t(1,p)}return i.$$set=X=>{"className"in X&&t(2,a=X.className),"disabled"in X&&t(15,s=X.disabled),"hasTooltip"in X&&t(3,u=X.hasTooltip),"ref"in X&&t(0,f=X.ref),"width"in X&&t(1,p=X.width),"isFullWidthTooltip"in X&&t(4,h=X.isFullWidthTooltip),"tooltipContent"in X&&t(16,k=X.tooltipContent),"tooltipActive"in X&&t(5,g=X.tooltipActive),"tooltipPlacement"in X&&t(6,w=X.tooltipPlacement),"disabledTooltipContent"in X&&t(17,v=X.disabledTooltipContent),"isAriaHidden"in X&&t(7,T=X.isAriaHidden),"onTooltipVisibilityChange"in X&&t(8,b=X.onTooltipVisibilityChange),"initialTranslateXPx"in X&&t(9,y=X.initialTranslateXPx),"initialTranslateYPx"in X&&t(10,I=X.initialTranslateYPx),"$$scope"in X&&t(24,r=X.$$scope)},i.$$.update=()=>{if(i.$$.dirty&491520)e:s?t(11,se=n?j("tooltip_disabled_when_graph_on"):v):t(11,se=k)},[f,p,a,u,h,g,w,T,b,y,I,se,o,N,z,s,k,v,n,l,ae,F,x,E,r]}var Ea=class extends K{constructor(e){super(),W(this,e,tb,eb,U,{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},Xg)}},At=Ea;function ib(i){let e,t,n,o,l,r;return{c(){e=B("svg"),t=B("rect"),o=B("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:_e,o:_e,d(a){a&&C(e)}}}function nb(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var Aa=class extends K{constructor(e){super(),W(this,e,nb,ib,U,{completed:0})}},Sr=Aa;function ob(i){Se(i,"svelte-bklhpe",".interactive-episode-icon.svelte-bklhpe{width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default}.interactive-episode-icon.disabled.svelte-bklhpe{pointer-events:none;opacity:0.4}")}function lb(i){let e,t,n,o,l;return t=new Sr({props:{completed:!!i[0].completed}}),{c(){e=P("div"),R(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)),q(e,"disabled",i[1])},m(r,a){S(r,e,a),M(t,e,null),o=Wo(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)&&q(e,"disabled",r[1])},i(r){l||(d(t.$$.fragment,r),l=!0)},o(r){_(t.$$.fragment,r),l=!1},d(r){r&&C(e),V(t),o()}}}function rb(i){let e,t;return e=new At({props:{tooltipContent:j(i[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished"),initialTranslateXPx:-10,initialTranslateYPx:-10,disabled:i[1],width:i[2]||0,isAriaHidden:!0,isFullWidthTooltip:!1,$$slots:{default:[lb]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.tooltipContent=j(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){V(e,n)}}}function sb(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 Ma=class extends K{constructor(e){super(),W(this,e,sb,rb,U,{videoEpisode:0,disabled:1},ob)}},Sd=Ma;function ab(i){Se(i,"svelte-1h9p3m2",".video-episodes-wrap.svelte-1h9p3m2{position:absolute;width:100%;height:100%}.video-episode.svelte-1h9p3m2{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-1h9p3m2:where(:hover, :active){transform:scaleY(1.5)}.video-episode-inner.svelte-1h9p3m2,.video-episode-loaded.svelte-1h9p3m2,.video-episode-filled.svelte-1h9p3m2{position:absolute;height:var(--slider-height);border-radius:var(--slider-radius)}.video-episode-inner.svelte-1h9p3m2{position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg)}.video-episode-loaded.svelte-1h9p3m2{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-1h9p3m2{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}")}function Id(i,e,t){let n=i.slice();return n[2]=e[t],n}function Pd(i){let e,t,n,o,l,r,a,s,u;return{c(){e=P("div"),t=P("div"),n=P("div"),l=D(),r=P("div"),s=D(),c(n,"class","video-episode-loaded svelte-1h9p3m2"),c(n,"style",o=`transform: translateX(${i[2].loadedWidth/i[2].width*100}%)`),c(r,"class","video-episode-filled svelte-1h9p3m2"),c(r,"style",a=`transform: translateX(${i[2].filledWidth/i[2].width*100}%)`),q(r,"mobile",i[1]),c(t,"class","video-episode-inner svelte-1h9p3m2"),c(e,"class","video-episode svelte-1h9p3m2"),c(e,"style",u=`left: ${i[2].from}%; width: ${i[2].width}%`),q(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[2].loadedWidth/f[2].width*100}%)`)&&c(n,"style",o),p&1&&a!==(a=`transform: translateX(${f[2].filledWidth/f[2].width*100}%)`)&&c(r,"style",a),p&2&&q(r,"mobile",f[1]),p&1&&u!==(u=`left: ${f[2].from}%; width: ${f[2].width}%`)&&c(e,"style",u),p&2&&q(e,"mobile",f[1])},d(f){f&&C(e)}}}function ub(i){let e,t=wt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=Pd(Id(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-1h9p3m2")},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&3){t=wt(o[0]);let r;for(r=0;r<t.length;r+=1){let a=Id(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}},i:_e,o:_e,d(o){o&&C(e),Ci(n,o)}}}function cb(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e;return i.$$set=l=>{"videoEpisodes"in l&&t(0,n=l.videoEpisodes),"isMobile"in l&&t(1,o=l.isMobile)},[n,o]}var Va=class extends K{constructor(e){super(),W(this,e,cb,ub,U,{videoEpisodes:0,isMobile:1},ab)}},Td=Va;function fb(i){Se(i,"svelte-1golz1y",".interactive-icons.svelte-1golz1y.svelte-1golz1y{position:absolute;width:calc(100% - 20px);top:-28px}.interactive-icons.mobile.svelte-1golz1y.svelte-1golz1y{top:-10px}.slider.svelte-1golz1y.svelte-1golz1y{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-1golz1y.svelte-1golz1y{cursor:default}.slider.svelte-1golz1y.svelte-1golz1y: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-1golz1y.svelte-1golz1y{position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg)}.loaded.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.filled.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}.slider.square.svelte-1golz1y.svelte-1golz1y,.slider.square.svelte-1golz1y>.bars.svelte-1golz1y,.slider.square.svelte-1golz1y .loaded.svelte-1golz1y,.slider.square.svelte-1golz1y .filled.svelte-1golz1y{border-radius:unset}.filled.active-live.svelte-1golz1y.svelte-1golz1y{background-color:var(--slider-filled-active-live-bg)}.filled.ads.svelte-1golz1y.svelte-1golz1y{background-color:var(--slider-filled-ads)}.handleWrap.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-100%;width:100%}.handle.svelte-1golz1y.svelte-1golz1y{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-1golz1y.svelte-1golz1y{background-color:var(--slider-filled-active-live-bg)}.slider.svelte-1golz1y:hover .handle.svelte-1golz1y,.slider-dragging.svelte-1golz1y .handle.svelte-1golz1y{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.svelte-1golz1y .handle.svelte-1golz1y{transform:scale(1.3)}.slider-vertical.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.slider.disabled.svelte-1golz1y.svelte-1golz1y{cursor:default;pointer-events:none;opacity:0.4}")}function Ed(i,e,t){let n=i.slice();return n[48]=e[t],n}function Ad(i){let e,t,n=wt(i[21]),o=[];for(let r=0;r<n.length;r+=1)o[r]=Vd(Ed(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-1golz1y"),q(e,"mobile",i[5]),q(e,"hidden",i[5]&&!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]&2097664){n=wt(r[21]);let s;for(s=0;s<n.length;s+=1){let u=Ed(r,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=Vd(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(ue(),s=n.length;s<o.length;s+=1)l(s);ce()}(!t||a[0]&32)&&q(e,"mobile",r[5]),(!t||a[0]&1048608)&&q(e,"hidden",r[5]&&!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&&C(e),Ci(o,r)}}}function Md(i){let e,t;return e=new Sd({props:{videoEpisode:i[48],disabled:i[9]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisode=n[48]),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){V(e,n)}}}function Vd(i){let e,t,n=i[48].interactive&&Md(i);return{c(){n&&n.c(),e=at()},m(o,l){n&&n.m(o,l),S(o,e,l),t=!0},p(o,l){o[48].interactive?n?(n.p(o,l),l[0]&2097152&&d(n,1)):(n=Md(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ue(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&C(e),n&&n.d(o)}}}function db(i){let e,t,n,o,l,r;return{c(){e=P("div"),t=P("div"),o=D(),l=P("div"),c(t,"class","loaded svelte-1golz1y"),c(t,"style",n=`transform: translateX(${i[11]*100}%);`),c(l,"class","filled svelte-1golz1y"),c(l,"style",r=`transform: translateX(${i[12]*100}%);`),q(l,"active-live",i[4]),q(l,"ads",i[6]),c(e,"class","bars svelte-1golz1y")},m(a,s){S(a,e,s),m(e,t),m(e,o),m(e,l)},p(a,s){s[0]&2048&&n!==(n=`transform: translateX(${a[11]*100}%);`)&&c(t,"style",n),s[0]&4096&&r!==(r=`transform: translateX(${a[12]*100}%);`)&&c(l,"style",r),s[0]&16&&q(l,"active-live",a[4]),s[0]&64&&q(l,"ads",a[6])},i:_e,o:_e,d(a){a&&C(e)}}}function mb(i){let e,t;return e=new Td({props:{videoEpisodes:i[21],isMobile:i[5]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisodes=n[21]),o[0]&32&&(l.isMobile=n[5]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function pb(i){let e,t,n,o,l,r,a,s,u,f,p,h,k,g=i[8]&&Ad(i),w=[mb,db],v=[];function T(b,y){return b[21].length?0:1}return n=T(i,[-1,-1]),o=v[n]=w[n](i),{c(){g&&g.c(),e=D(),t=P("div"),o.c(),l=D(),r=P("div"),a=P("div"),c(a,"class","handle svelte-1golz1y"),q(a,"active-live",i[4]),c(r,"class","handleWrap svelte-1golz1y"),c(r,"style",s=`transform: translateX(${i[13]*100}%);`),q(r,"hidden",i[10]),c(t,"class",u="slider "+i[0]+" svelte-1golz1y"),c(t,"aria-label",i[14]),c(t,"aria-valuemin",i[15]),c(t,"aria-valuemax",i[16]),c(t,"aria-valuenow",i[17]),c(t,"aria-valuetext",i[18]),c(t,"role","slider"),c(t,"tabindex","0"),c(t,"data-testid",f=i[1]??null),q(t,"disabled",i[9]),q(t,"slider-dragging",i[20]),q(t,"hidden",i[2]),q(t,"slider-vertical",i[3]),q(t,"no-handle",i[10]),q(t,"square",i[7])},m(b,y){g&&g.m(b,y),S(b,e,y),S(b,t,y),v[n].m(t,null),m(t,l),m(t,r),m(r,a),i[42](t),p=!0,h||(k=[de(t,"pointerdown",Pt(i[22])),de(t,"pointermove",Pt(i[23])),de(t,"pointerup",Pt(i[24])),de(t,"pointerenter",Pt(i[25])),de(t,"pointerleave",Pt(i[26])),de(t,"click",st(Wn)),de(t,"wheel",i[27])],h=!0)},p(b,y){b[8]?g?(g.p(b,y),y[0]&256&&d(g,1)):(g=Ad(b),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(ue(),_(g,1,1,()=>{g=null}),ce());let I=n;n=T(b,y),n===I?v[n].p(b,y):(ue(),_(v[I],1,1,()=>{v[I]=null}),ce(),o=v[n],o?o.p(b,y):(o=v[n]=w[n](b),o.c()),d(o,1),o.m(t,l)),(!p||y[0]&16)&&q(a,"active-live",b[4]),(!p||y[0]&8192&&s!==(s=`transform: translateX(${b[13]*100}%);`))&&c(r,"style",s),(!p||y[0]&1024)&&q(r,"hidden",b[10]),(!p||y[0]&1&&u!==(u="slider "+b[0]+" svelte-1golz1y"))&&c(t,"class",u),(!p||y[0]&16384)&&c(t,"aria-label",b[14]),(!p||y[0]&32768)&&c(t,"aria-valuemin",b[15]),(!p||y[0]&65536)&&c(t,"aria-valuemax",b[16]),(!p||y[0]&131072)&&c(t,"aria-valuenow",b[17]),(!p||y[0]&262144)&&c(t,"aria-valuetext",b[18]),(!p||y[0]&2&&f!==(f=b[1]??null))&&c(t,"data-testid",f),(!p||y[0]&513)&&q(t,"disabled",b[9]),(!p||y[0]&1048577)&&q(t,"slider-dragging",b[20]),(!p||y[0]&5)&&q(t,"hidden",b[2]),(!p||y[0]&9)&&q(t,"slider-vertical",b[3]),(!p||y[0]&1025)&&q(t,"no-handle",b[10]),(!p||y[0]&129)&&q(t,"square",b[7])},i(b){p||(d(g),d(o),p=!0)},o(b){_(g),_(o),p=!1},d(b){b&&(C(e),C(t)),g&&g.d(b),v[n].d(),i[42](null),h=!1,et(k)}}}function _b(i,e,t){let n,o,{className:l=""}=e,{testId:r=void 0}=e,{isHidden:a=!1}=e,{isVertical:s=!1}=e,{isActiveLive:u=!1}=e,{isMobile:f=!1}=e,{isAds:p=!1}=e,{squareBorders:h=!1}=e,{videoEpisodes:k=[]}=e,{withWheelHandler:g=!1}=e,{isInteractive:w=!1}=e,{disabled:v=!1}=e,{hideHandel:T=!1}=e,b,y,{onPointerDown:I=Wn}=e,{onHandleMove:Z=Wn}=e,{onPointerUp:N=Wn}=e,{onPointerEnter:z=Wn}=e,{onPointerMove:se=Wn}=e,{onPointerLeave:ae=Wn}=e,{onWheelUp:F=Wn}=e,{onWheelDown:x=Wn}=e,{onWheelLeft:E=Wn}=e,{onWheelRight:X=Wn}=e,{loadedProgress:Q=0}=e,{filledProgress:G=0}=e,{handleProgress:ee=0}=e,{ariaLabel:L=""}=e,{ariaValueMin:H=void 0}=e,{ariaValueMax:Be=void 0}=e,{ariaValueNow:ze=void 0}=e,{ariaValueText:We=""}=e,Xe=Bt(),qe=!1,ye;function J(re){if(qe)return;t(20,qe=!0),y=b.getBoundingClientRect();let Ue=Ne(re.clientX,re.clientY);I(Ue),b.setPointerCapture(re.pointerId)}function we(re){let Ue=Ne(re.clientX,re.clientY),me=Ge(re.clientX);se(Ue,me,y.width),qe&&Z(Ue)}function Ke(re){if(!qe)return;t(20,qe=!1);let Ue=Ne(re.clientX,re.clientY);N(Ue)}function Je(re){y=b.getBoundingClientRect();let Ue=Ne(re.clientX,re.clientY),me=Ge(re.clientX);z(Ue,me,y.width)}function it(){ae()}function ke(re){g&&(re.preventDefault(),re.deltaY<0?F():re.deltaY>0?x():re.deltaX>0?X():E())}function Ne(re,Ue){return s?Math.max(0,Math.min(1,(y.height-(Ue-y.top))/y.height)):Math.min(Math.max(re-y.x,0),y.width)/y.width}function Ge(re){return Math.min(Math.max(re-y.x,0),y.width)}function nt(re,Ue){let me=Xe.features.episodesClustering&&!w?Xe.episodeMinWidthPc:0,le=[],De=0,Me=0,Ye=0;for(let ft=1;ft<k.length;ft++)Me=k[ft].time/ye*100,Me-De>me&&(le.push({from:De,width:Math.max(0,Me-De),loadedWidth:Math.max(0,Math.min(Me,re)-De),filledWidth:Math.max(0,Math.min(Me,Ue)-De),interactive:k[ft-1].interactive,completed:k[ft-1].completed}),De=k[ft].time/ye*100,Ye++);let rt={from:De,width:Math.max(0,100-De),loadedWidth:Math.max(0,Math.min(re,100)-De),filledWidth:Math.max(0,Math.min(Ue,100)-De),interactive:k[Ye].interactive,completed:k[Ye].completed};100-De<me?(Ye-=1,le[Ye].width+=100-De,le[Ye].loadedWidth+=Math.max(0,Math.min(re,100)-De),le[Ye].filledWidth+=Math.max(0,Math.min(Ue,100)-De)):le[Ye]=rt;let ve=k[0].time;if(ve!==0){let ft=ve/ye*100;le.unshift({from:0,width:ft,loadedWidth:Math.min(ft,re),filledWidth:Math.min(ft,Ue)})}return le}function Ce(re){pe[re?"unshift":"push"](()=>{b=re,t(19,b)})}return i.$$set=re=>{"className"in re&&t(0,l=re.className),"testId"in re&&t(1,r=re.testId),"isHidden"in re&&t(2,a=re.isHidden),"isVertical"in re&&t(3,s=re.isVertical),"isActiveLive"in re&&t(4,u=re.isActiveLive),"isMobile"in re&&t(5,f=re.isMobile),"isAds"in re&&t(6,p=re.isAds),"squareBorders"in re&&t(7,h=re.squareBorders),"videoEpisodes"in re&&t(28,k=re.videoEpisodes),"withWheelHandler"in re&&t(29,g=re.withWheelHandler),"isInteractive"in re&&t(8,w=re.isInteractive),"disabled"in re&&t(9,v=re.disabled),"hideHandel"in re&&t(10,T=re.hideHandel),"onPointerDown"in re&&t(30,I=re.onPointerDown),"onHandleMove"in re&&t(31,Z=re.onHandleMove),"onPointerUp"in re&&t(32,N=re.onPointerUp),"onPointerEnter"in re&&t(33,z=re.onPointerEnter),"onPointerMove"in re&&t(34,se=re.onPointerMove),"onPointerLeave"in re&&t(35,ae=re.onPointerLeave),"onWheelUp"in re&&t(36,F=re.onWheelUp),"onWheelDown"in re&&t(37,x=re.onWheelDown),"onWheelLeft"in re&&t(38,E=re.onWheelLeft),"onWheelRight"in re&&t(39,X=re.onWheelRight),"loadedProgress"in re&&t(11,Q=re.loadedProgress),"filledProgress"in re&&t(12,G=re.filledProgress),"handleProgress"in re&&t(13,ee=re.handleProgress),"ariaLabel"in re&&t(14,L=re.ariaLabel),"ariaValueMin"in re&&t(15,H=re.ariaValueMin),"ariaValueMax"in re&&t(16,Be=re.ariaValueMax),"ariaValueNow"in re&&t(17,ze=re.ariaValueNow),"ariaValueText"in re&&t(18,We=re.ariaValueText)},i.$$.update=()=>{if(i.$$.dirty[0]&65536)e:t(40,ye=Be??0);if(i.$$.dirty[0]&268435456|i.$$.dirty[1]&512)e:t(41,n=k[k.length-1]?.time<ye);if(i.$$.dirty[0]&268441600|i.$$.dirty[1]&1536)e:t(21,o=k.length&&n&&ye?nt(Q*100,G*100):[])},[l,r,a,s,u,f,p,h,w,v,T,Q,G,ee,L,H,Be,ze,We,b,qe,o,J,we,Ke,Je,it,ke,k,g,I,Z,N,z,se,ae,F,x,E,X,ye,n,Ce]}var La=class extends K{constructor(e){super(),W(this,e,_b,pb,U,{className:0,testId:1,isHidden:2,isVertical:3,isActiveLive:4,isMobile:5,isAds:6,squareBorders:7,videoEpisodes:28,withWheelHandler:29,isInteractive:8,disabled:9,hideHandel:10,onPointerDown:30,onHandleMove:31,onPointerUp:32,onPointerEnter:33,onPointerMove:34,onPointerLeave:35,onWheelUp:36,onWheelDown:37,onWheelLeft:38,onWheelRight:39,loadedProgress:11,filledProgress:12,handleProgress:13,ariaLabel:14,ariaValueMin:15,ariaValueMax:16,ariaValueNow:17,ariaValueText:18},fb,[-1,-1])}},al=La;var An=(i,e)=>Eo[i]>=Eo[e],Ld=(i,e)=>Eo[i]<Eo[e],Ir=(i,e)=>Eo[i]<=Eo[e],Rd=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function hb(i){Se(i,"svelte-1l78lz9",".volumeBar-container.svelte-1l78lz9{display:flex;align-items:center}.volumeBar-container.vertical.svelte-1l78lz9,.vertical.svelte-1l78lz9 .tooltip-wrapper,.vertical.svelte-1l78lz9 .btn{width:40px}.volumeBar.svelte-1l78lz9{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.svelte-1l78lz9{padding:0 8px 0 0;width:0}")}function gb(i){let e,t;return e=new Oo({props:{volume:i[3],muted:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.volume=n[3]),o[0]&2&&(l.muted=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function bb(i){let e,t;return e=new _t({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:[gb]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&512&&(l.disabled=n[9]),o[0]&4&&(l.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(l.ariaLabel=n[7]),o[0]&1&&(l.click=n[0]),o[0]&10|o[1]&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Bd(i){let e,t,n;return t=new al({props:{className:i[2]?"volumeBar-slider-vertical":"",isHidden:i[2]&&!i[5],isVertical:i[2],withWheelHandler:!0,onWheelUp:i[15],onWheelDown:i[16],onPointerDown:i[14],onHandleMove:i[17],onPointerUp:i[18],onPointerEnter:i[2]?i[19]:fo,onPointerLeave:i[2]?i[20]:fo,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"),R(t.$$.fragment),c(e,"class","volumeBar svelte-1l78lz9"),q(e,"volumeBar-vertical",i[2])},m(o,l){S(o,e,l),M(t,e,null),n=!0},p(o,l){let r={};l[0]&4&&(r.className=o[2]?"volumeBar-slider-vertical":""),l[0]&36&&(r.isHidden=o[2]&&!o[5]),l[0]&4&&(r.isVertical=o[2]),l[0]&4&&(r.onPointerEnter=o[2]?o[19]:fo),l[0]&4&&(r.onPointerLeave=o[2]?o[20]:fo),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)&&q(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),V(t)}}}function vb(i){let e,t,n,o,l,r;t=new Cr({props:{content:i[6],translateY:-18,$$slots:{default:[bb]},$$scope:{ctx:i}}});let a=i[4]&&Bd(i);return{c(){e=P("div"),R(t.$$.fragment),n=D(),a&&a.c(),c(e,"class","volumeBar-container svelte-1l78lz9"),q(e,"vertical",i[2])},m(s,u){S(s,e,u),M(t,e,null),m(e,n),a&&a.m(e,null),o=!0,l||(r=[de(e,"mouseenter",function(){wi(i[2]?i[21]:fo)&&(i[2]?i[21]:fo).apply(this,arguments)}),de(e,"mouseleave",function(){wi(i[2]?i[22]:fo)&&(i[2]?i[22]:fo).apply(this,arguments)}),de(e,"wheel",Pt(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=Bd(i),a.c(),d(a,1),a.m(e,null)):a&&(ue(),_(a,1,1,()=>{a=null}),ce()),(!o||u[0]&4)&&q(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&&C(e),V(t),a&&a.d(),l=!1,et(r)}}}function yb(i,e,t){let n,o,l,r,{click:a}=e,s=tt(),u=Bt(),f=s.state.volume$;O(i,f,qe=>t(3,n=qe));let p=s.state.muted$;O(i,p,qe=>t(25,r=qe));let h=s.actions.internal.setVolume,k=s.ui.currentGridType$;O(i,k,qe=>t(24,l=qe));let g=s.callbacks?.onAudioDoesNotExistHint,w=s.callbacks?.onAudioDisabledHint,v=s.state.isAudioAvailable$;O(i,v,qe=>t(4,o=qe));let T=s.state.isAudioDisabled,b=!1,y,I,Z,N,z,se,ae=1,F=!1,x=!1;function E(qe){ae=n,h(qe)}function X(){mr(s,n,u.controls.volumeStepWheel)}function Q(){pr(s,n,u.controls.volumeStepWheel)}function G(qe){h(qe)}function ee(qe){let ye=qe;h(ye,ye===0?ae:ye)}function L(){F=!0}function H(){F=!1,We()}function Be(){clearTimeout(y),t(5,b=!0)}function ze(){We()}function We(){y=window.setTimeout(()=>{F||t(5,b=!1)},u.controls.volumeBarTimeout)}function Xe(qe){qe.deltaY<0?X():qe.deltaY>0&&Q()}return i.$$set=qe=>{"click"in qe&&t(0,a=qe.click)},i.$$.update=()=>{if(i.$$.dirty[0]&33554448)e:t(1,N=!o||r);if(i.$$.dirty[0]&16777216)e:t(2,z=Ir(l,"s"));if(i.$$.dirty[0]&6)e:z?t(6,I=""):t(6,I=N?j("tooltip_volume"):j("tooltip_volume_muted")),t(7,Z=N?j("tooltip_volume"):j("tooltip_volume_muted"));if(i.$$.dirty[0]&10)e:t(8,se=N?0:n);if(i.$$.dirty[0]&16)e:o?t(9,x=T&&!w):t(9,x=!g)},[a,N,z,n,o,b,I,Z,se,x,f,p,k,v,E,X,Q,G,ee,L,H,Be,ze,Xe,l,r]}var Ra=class extends K{constructor(e){super(),W(this,e,yb,vb,U,{click:0},hb,[-1,-1])}},Dd=Ra;import{noop as Pb}from"@vkontakte/videoplayer-shared";function kb(i){let e,t,n,o,l,r=i[2].default,a=Ie(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=oe(u,s[f]);return{c(){e=B("svg"),a&&a.c(),t=B("g"),n=B("path"),o=B("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"),ge(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)&&Te(a,r,f,f[1],l?Pe(r,f[1],p,null):Ee(f[1]),null),ge(e,u=Le(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&&C(e),a&&a.d(f)}}}function wb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Ba=class extends K{constructor(e){super(),W(this,e,wb,kb,U,{})}},Nd=Ba;function Cb(i){Se(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Sb(i){let e,t;return e=new Nd({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let 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){V(e,n)}}}function Ib(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Da=class extends K{constructor(e){super(),W(this,e,Ib,Sb,U,{isFullscreen:0},Cb)}},qd=Da;function Tb(i){let e,t;return e=new qd({props:{isFullscreen:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&1&&(l.isFullscreen=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Eb(i){let e,t;return e=new _t({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Gn.KeyF,$$slots:{default:[Tb]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&4&&(l.ariaLabel=n[2]),o&2&&(l.click=n[1]),o&9&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Ab(i,e,t){let{isFullscreen:n=!1}=e,{click:o=Pb}=e,l;return i.$$set=r=>{"isFullscreen"in r&&t(0,n=r.isFullscreen),"click"in r&&t(1,o=r.click)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(2,l=n?j("tooltip_fullscreen_on"):j("tooltip_fullscreen_off"))},[n,o,l]}var Na=class extends K{constructor(e){super(),W(this,e,Ab,Eb,U,{isFullscreen:0,click:1})}},Pr=Na;function Mb(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function Vb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var qa=class extends K{constructor(e){super(),W(this,e,Vb,Mb,U,{})}},ul=qa;function Lb(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function Rb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Oa=class extends K{constructor(e){super(),W(this,e,Rb,Lb,U,{})}},Tr=Oa;import{noop as Bb}from"@vkontakte/videoplayer-shared";function Db(i){Se(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function Od(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&&C(e)}}}function Nb(i){let e,t,n,o,l=i[1]&&Od(i);var r=i[8];function a(s){return{}}return r&&(n=vn(r,a(i))),{c(){l&&l.c(),e=D(),t=P("div"),n&&R(n.$$.fragment),c(t,"class","svelte-1ot3duq"),q(t,"mobile",i[1])},m(s,u){l&&l.m(s,u),S(s,e,u),S(s,t,u),n&&M(n,t,null),o=!0},p(s,u){if(s[1]?l||(l=Od(s),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),u&256&&r!==(r=s[8])){if(n){ue();let f=n;_(f.$$.fragment,1,0,()=>{V(f,1)}),ce()}r?(n=vn(r,a(s)),R(n.$$.fragment),d(n.$$.fragment,1),M(n,t,null)):n=null}(!o||u&2)&&q(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&&(C(e),C(t)),l&&l.d(s),n&&V(n)}}}function qb(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:[Nb]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&10&&(s.className=(r[1]?"btn-m--play":"")+" "+r[3]),a&112&&(s.click=r[5]?r[6]:r[4]),a&4&&(s.disabled=r[2]),a&128&&(s.ariaLabel=r[7]),a&33026&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function Ob(i,e,t){let n,o,{fakeIsPlaying$:l}=Dn();O(i,l,b=>t(12,o=b));let{ref:r=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:f=""}=e,{click:p=Bb}=e,{toggle:h}=l,k,g,w,v;function T(b){r=b,t(0,r)}i.$$set=b=>{"ref"in b&&t(0,r=b.ref),"isMobile"in b&&t(1,a=b.isMobile),"isPlaying"in b&&t(10,s=b.isPlaying),"disabled"in b&&t(2,u=b.disabled),"className"in b&&t(3,f=b.className),"click"in b&&t(4,p=b.click)},i.$$.update=()=>{if(i.$$.dirty&4096)e:t(5,g=o!==null);if(i.$$.dirty&5152)e:t(11,w=g?o:s);if(i.$$.dirty&2048)e:t(7,v=w?j("tooltip_pause"):j("tooltip_play"));if(i.$$.dirty&2048)e:t(8,n=w?Tr:ul)};e:t(6,k=h);return[r,a,u,f,p,g,k,v,n,l,s,w,o,T]}var Fa=class extends K{constructor(e){super(),W(this,e,Ob,qb,U,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},Db)}},Il=Fa;function Fb(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function Hb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Ha=class extends K{constructor(e){super(),W(this,e,Hb,Fb,U,{})}},Fd=Ha;function zb(i){let e,t;return e=new Fd({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let 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){V(e,n)}}}function Ub(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=()=>{if(i.$$.dirty&5)e: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 za=class extends K{constructor(e){super(),W(this,e,Ub,zb,U,{isPrev:0,isMobile:2})}},Hd=za;function Kb(i){let e,t;return e=new Hd({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&8&&(l.isPrev=n[3]==="prev"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function jb(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:[Kb]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&8&&(s.testId="btn-"+r[3]),a&4&&(s.disabled=r[2]),a&32&&(s.ariaLabel=r[5]),a&16&&(s.click=r[4]),a&138&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function Wb(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=()=>{if(i.$$.dirty&8)e:t(5,s=r==="prev"?j("tooltip_previous"):j("tooltip_next"))},[n,o,l,r,a,s,u]}var Ua=class extends K{constructor(e){super(),W(this,e,Wb,jb,U,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},cl=Ua;function Gb(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function Qb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Ka=class extends K{constructor(e){super(),W(this,e,Qb,Gb,U,{})}},zd=Ka;function Yb(i){let e,t,n,o,l,r,a=i[2].default,s=Ie(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=oe(f,u[p]);return{c(){e=B("svg"),s&&s.c(),t=B("path"),n=B("path"),o=B("path"),l=B("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"),ge(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)&&Te(s,a,p,p[1],r?Pe(a,p[1],h,null):Ee(p[1]),null),ge(e,f=Le(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&&C(e),s&&s.d(p)}}}function Zb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ja=class extends K{constructor(e){super(),W(this,e,Zb,Yb,U,{})}},Ud=ja;function Xb(i){Se(i,"svelte-1nhjml",'svg[data-testid="vk-video-logo-icon--short"] ._ru,svg[data-testid="vk-video-logo-icon--short"] ._en,svg[data-testid="vk-video-logo-icon"] ._en,svg[data-testid="vk-video-logo-icon--en"] ._ru{visibility:hidden;opacity:0}')}function Jb(i){let e,t;return e=new Ud({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let 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){V(e,n)}}}var xb="vk-video-logo-icon--short";function $b(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=()=>{if(i.$$.dirty&12)e:t(0,l=n?21:95),t(1,r=n?xb:"vk-video-logo-icon"),!o&&!n&&(t(0,l=91),t(1,r="vk-video-logo-icon--en"))},[l,r,n,o]}var Wa=class extends K{constructor(e){super(),W(this,e,$b,Jb,U,{short:2,isCyrillic:3},Xb)}},Kd=Wa;function tv(i){let e,t;return e=new zd({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p:_e,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function iv(i){let e,t;return e=new Kd({props:{short:i[4],isCyrillic:i[5]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.short=n[4]),o&32&&(l.isCyrillic=n[5]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function nv(i){let e,t,n,o,l=[iv,tv],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=at()},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):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),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&&C(n),r[e].d(s)}}}function ov(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:[nv]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.disabled=!r[1]),a&4&&(s.testId=r[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(s.ariaLabel=r[3]),a&131124&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function lv(i,e,t){let n,o,l,{ref:r=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:s=""}=e,{click:u}=e,f=Bt(),p=tt(),h=p.ui.currentGridType$;O(i,h,I=>t(12,n=I));let k=p.ui.isMobile;O(i,k,I=>t(13,o=I));let g=p.isCyrillicRelatedInterface$;O(i,g,I=>t(5,l=I));let w,v,T,b=()=>{u(),p.callbacks?.onLogoClicked?.(),s&&window.open(s,"_blank")};function y(I){r=I,t(0,r)}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=()=>{if(i.$$.dirty&12292)e:t(4,T=(o||Ir(n,"l"))&&v)};e:t(3,w=f.logoType==="vk_video"?j("tooltip_vk_video_logo"):j("tooltip_vk_logo"));e:t(2,v=f.logoType==="vk_video"||f.logoType==="vk_video_mobile");return[r,a,v,w,T,l,h,k,g,b,s,u,n,o,y]}var Ga=class extends K{constructor(e){super(),W(this,e,lv,ov,U,{ref:0,logoClickable:1,targetUrl:10,click:11})}},Er=Ga;import{ChromecastState as fv}from"@vkontakte/videoplayer-core";import{ChromecastState as jd}from"@vkontakte/videoplayer-core";function rv(i){Se(i,"svelte-8z1bf5",".connecting.svelte-8z1bf5 .wave.svelte-8z1bf5{animation-duration:1s;animation-iteration-count:infinite}.connecting.svelte-8z1bf5 .wave1.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave1}.connecting.svelte-8z1bf5 .wave2.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave2}.connecting.svelte-8z1bf5 .wave3.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave3}@keyframes svelte-8z1bf5-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}")}function sv(i){let e,t,n,o,l,r,a,s;return{c(){e=B("svg"),t=B("g"),n=B("path"),o=B("path"),l=B("path"),r=B("path"),a=B("path"),s=B("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"),q(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"),q(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&&q(s,"hidden",!u[1]),f&4&&q(e,"connecting",u[2])},d(u){u&&C(e)}}}function av(i){let e,t,n,o,l,r,a,s,u,f,p,h,k,g,w,v,T,b,y,I,Z;return{c(){e=B("svg"),t=B("g"),n=B("mask"),o=B("path"),r=B("path"),a=B("path"),u=B("path"),f=B("defs"),p=B("clipPath"),h=B("path"),g=B("filter"),w=B("feFlood"),v=B("feColorMatrix"),T=B("feOffset"),b=B("feGaussianBlur"),y=B("feColorMatrix"),I=B("feBlend"),Z=B("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",k=i[1]?"#2688EB":"#fff"),c(h,"d","M0 0h24v24H0z"),c(p,"id","a"),c(w,"flood-opacity","0"),c(w,"result","BackgroundImageFix"),c(v,"in","SourceAlpha"),c(v,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(v,"result","hardAlpha"),c(b,"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(Z,"in","SourceGraphic"),c(Z,"in2","effect1_dropShadow_4085_178456"),c(Z,"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(N,z){S(N,e,z),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,v),m(g,T),m(g,b),m(g,y),m(g,I),m(g,Z)},p(N,z){z&2&&l!==(l=N[1]?"#2688EB":"#fff")&&c(o,"fill",l),z&2&&s!==(s=N[1]?"#2688EB":"#fff")&&c(a,"fill",s),z&2&&k!==(k=N[1]?"#2688EB":"#fff")&&c(h,"fill",k)},d(N){N&&C(e)}}}function uv(i){let e;function t(l,r){return l[0]?av:sv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=at()},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:_e,o:_e,d(l){l&&C(e),o.d(l)}}}function cv(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=()=>{if(i.$$.dirty&8)e:t(2,r=o===jd.CONNECTING),t(1,l=o===jd.CONNECTED)},[n,l,r,o]}var Qa=class extends K{constructor(e){super(),W(this,e,cv,uv,U,{isMobile:0,state:3},rv)}},Wd=Qa;import{noop as dv}from"@vkontakte/videoplayer-shared";function mv(i){let e,t;return e=new Wd({props:{isMobile:i[1],state:i[2]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&4&&(l.state=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function pv(i){let e,t,n;function o(r){i[5](r)}let l={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[mv]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&16&&(s.ariaLabel=r[4]),a&8&&(s.click=r[3]),a&70&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function _v(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:l}=e,{click:r=dv}=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=()=>{if(i.$$.dirty&4)e:t(4,a=l===fv.CONNECTED?j("tooltip_chromecast_on"):j("tooltip_chromecast_off"))},[n,o,l,r,a,s]}var Ya=class extends K{constructor(e){super(),W(this,e,_v,pv,U,{ref:0,isMobile:1,state:2,click:3})}},Ar=Ya;import{PlaybackState as Za}from"@vkontakte/videoplayer-core";function hv(i){let e,t;return e=new rr({props:{isActive:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function gv(i){let e,t;return e=new _t({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===Za.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[hv]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(l.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(l.disabled=n[1]&&n[3]===Za.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){V(e,n)}}}function bv(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:l=!1}=e,{ariaLabel:r=""}=e,a=tt(),s=a.state.playbackState$;O(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=()=>{if(i.$$.dirty&10)e:t(4,p=()=>{if(!l){u();return}n===Za.PAUSED&&f()})},[o,l,r,n,p,s]}var Xa=class extends K{constructor(e){super(),W(this,e,bv,gv,U,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Mr=Xa;function vv(i){Se(i,"svelte-5ygsa2",'.tooltip-wrapper.svelte-5ygsa2{position:relative;display:block}.tooltip.svelte-5ygsa2{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.pointer.svelte-5ygsa2:after{position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px)}.tooltip.active.svelte-5ygsa2{opacity:1;visibility:visible}')}function yv(i){let e,t,n,o,l=i[9].default,r=Ie(l,i,i[8],null);return{c(){e=P("div"),t=P("div"),r&&r.c(),c(t,"class","tooltip svelte-5ygsa2"),q(t,"active",i[0]),q(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)&&Te(r,l,a,a[8],o?Pe(l,a[8],s,null):Ee(a[8]),null),(!o||s&1)&&q(t,"active",a[0]),(!o||s&2)&&q(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&&C(e),r&&r.d(a),i[10](null),i[11](null)}}}function kv(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 k(v){if(!h)return 0;let{width:T}=h.getBoundingClientRect(),b=T/2;return v<b?b:v>f-b?f-b:v}function g(v){pe[v?"unshift":"push"](()=>{h=v,t(4,h)})}function w(v){pe[v?"unshift":"push"](()=>{p=v,t(3,p)})}return i.$$set=v=>{"active"in v&&t(0,r=v.active),"pointer"in v&&t(1,a=v.pointer),"translateXPx"in v&&t(6,s=v.translateXPx),"translateYPx"in v&&t(2,u=v.translateYPx),"containerWidth"in v&&t(7,f=v.containerWidth),"$$scope"in v&&t(8,l=v.$$scope)},i.$$.update=()=>{if(i.$$.dirty&64)e:t(5,n=k(s))},[r,a,u,p,h,n,s,f,l,o,g,w]}var Ja=class extends K{constructor(e){super(),W(this,e,kv,yv,U,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},vv)}},Gd=Ja;var Vr=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function wv(i){Se(i,"svelte-l51fc1",".timeline-preview.svelte-l51fc1{bottom:18px;border-radius:2px;pointer-events:none}.timeline-preview.mobile.svelte-l51fc1{bottom:72px}.preview.svelte-l51fc1{margin-bottom:10px;background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white)}.episode.svelte-l51fc1{margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500}.time.svelte-l51fc1{font-size:13px;line-height:16px;text-align:center;color:var(--slider-filled-bg);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500}")}function Qd(i){let e;function t(l,r){return l[2]&&l[10].completed===!1?Sv:Cv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=at()},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&&C(e),o.d(l)}}}function Cv(i){let e=(i[10].text||"")+"",t;return{c(){t=Ae(e)},m(n,o){S(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&je(t,e)},d(n){n&&C(t)}}}function Sv(i){let e=j("tooltip_episode_unfinished")+"",t;return{c(){t=Ae(e)},m(n,o){S(n,t,o)},p:_e,d(n){n&&C(t)}}}function Yd(i){let e,t;return{c(){e=P("div"),t=Ae(i[0]),c(e,"class","time svelte-l51fc1")},m(n,o){S(n,e,o),m(e,t)},p(n,o){o&1&&je(t,n[0])},d(n){n&&C(e)}}}function Iv(i){let e,t,n,o,l,r,a=i[10]&&Qd(i),s=!i[2]&&Yd(i);return{c(){e=P("div"),t=P("div"),o=D(),l=P("div"),a&&a.c(),r=D(),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"),q(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=Qd(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=Yd(u),s.c(),s.m(e,null)),f&2&&q(e,"mobile",u[1])},i:_e,o:_e,d(u){u&&C(e),a&&a.d(),s&&s.d()}}}var fl=150;function Pv(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=tt().ui.rotateAlpha;O(i,h,z=>t(11,n=z));let k,g,w,v,T,b,y,I;function Z(){let z=a.frameWidth,se=a.frameHeight;return z>fl?(se=se/z*fl,z=fl):se>fl&&(z=z/se*fl,se=fl),{width:z,height:se}}function N(z){let se;a.isUV?se=Math.floor(u*z/a.frequency):se=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*z)));let ae=Math.floor(se/a.countPerImage),F=Math.floor(se%a.countPerImage/a.countPerRow),x=se%a.countPerRow,E=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&ae===Math.floor(a.countTotal/a.countPerImage)&&(E=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&E++);let X=a.countPerRow;!a.isUV&&ae===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(X=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let Q=k*X,G=g*E,ee=-x*k,L=-F*g;return{imgSrc:a.links[ae],imgWidth:Q,imgHeight:G,imgOffsetX:ee,imgOffsetY:L}}i.$$set=z=>{"time"in z&&t(0,o=z.time),"isMobile"in z&&t(1,l=z.isMobile),"videoEpisodes"in z&&t(13,r=z.videoEpisodes),"previewThumbsData"in z&&t(14,a=z.previewThumbsData),"progress"in z&&t(15,s=z.progress),"duration"in z&&t(16,u=z.duration),"isInteractive"in z&&t(2,f=z.isInteractive)},i.$$.update=()=>{if(i.$$.dirty&32768)e:t(5,{imgSrc:w,imgWidth:v,imgHeight:T,imgOffsetX:b,imgOffsetY:y}=N(s),w,(t(6,v),t(15,s)),(t(7,T),t(15,s)),(t(8,b),t(15,s)),(t(9,y),t(15,s)));if(i.$$.dirty&106496)e:t(10,I=Vr(s,u,r))};e:t(3,{width:k,height:g}=Z(),k,t(4,g));return[o,l,f,k,g,w,v,T,b,y,I,n,h,r,a,s,u]}var xa=class extends K{constructor(e){super(),W(this,e,Pv,Iv,U,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},wv)}},Zd=xa;function Tv(i){Se(i,"svelte-5lzly8",".time.svelte-5lzly8{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}")}function Ev(i){let e,t;return{c(){e=P("span"),t=Ae(i[7]),c(e,"class","time svelte-5lzly8")},m(n,o){S(n,e,o),m(e,t)},p(n,o){o[0]&128&&je(t,n[7])},i:_e,o:_e,d(n){n&&C(e)}}}function Av(i){let e,t;return e=new Zd({props:{time:i[7],isMobile:i[10],videoEpisodes:i[3],previewThumbsData:i[21],progress:i[8],duration:i[1],isInteractive:i[23]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&128&&(l.time=n[7]),o[0]&1024&&(l.isMobile=n[10]),o[0]&8&&(l.videoEpisodes=n[3]),o[0]&256&&(l.progress=n[8]),o[0]&2&&(l.duration=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Mv(i){let e,t,n,o,l=[Av,Ev],r=[];function a(s,u){return s[14].features.timelinePreview&&s[21]&&!s[0]?0:1}return e=a(i,[-1,-1]),t=r[e]=l[e](i),{c(){t.c(),n=at()},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):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),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&&C(n),r[e].d(s)}}}function Vv(i){let e,t,n,o,l=[i[9]],r={$$slots:{default:[Mv]},$$scope:{ctx:i}};for(let a=0;a<l.length;a+=1)r=oe(r,l[a]);return e=new Gd({props:r}),n=new al({props:{isActiveLive:i[11],isMobile:i[10],ariaLabel:j("aria_timeline"),ariaValueMin:0,ariaValueMax:i[1],ariaValueNow:Math.round(i[6]*100),ariaValueText:j("aria_timeline_value",{position:i[5],duration:i[4]}),loadedProgress:i[12],filledProgress:i[6],handleProgress:i[6],videoEpisodes:i[3],onPointerDown:i[27],onHandleMove:i[28],onPointerMove:i[31],onPointerUp:i[29],onPointerEnter:i[30],onPointerLeave:i[32],isInteractive:i[23],disabled:i[13].has("TIMELINE"),hideHandel:i[2]}}),{c(){R(e.$$.fragment),t=D(),R(n.$$.fragment)},m(a,s){M(e,a,s),S(a,t,s),M(n,a,s),o=!0},p(a,s){let u=s[0]&512?Le(l,[Nc(a[9])]):{};s[0]&1419|s[1]&65536&&(u.$$scope={dirty:s,ctx:a}),e.$set(u);let f={};s[0]&2048&&(f.isActiveLive=a[11]),s[0]&1024&&(f.isMobile=a[10]),s[0]&2&&(f.ariaValueMax=a[1]),s[0]&64&&(f.ariaValueNow=Math.round(a[6]*100)),s[0]&48&&(f.ariaValueText=j("aria_timeline_value",{position:a[5],duration:a[4]})),s[0]&4096&&(f.loadedProgress=a[12]),s[0]&64&&(f.filledProgress=a[6]),s[0]&64&&(f.handleProgress=a[6]),s[0]&8&&(f.videoEpisodes=a[3]),s[0]&8192&&(f.disabled=a[13].has("TIMELINE")),s[0]&4&&(f.hideHandel=a[2]),n.$set(f)},i(a){o||(d(e.$$.fragment,a),d(n.$$.fragment,a),o=!0)},o(a){_(e.$$.fragment,a),_(n.$$.fragment,a),o=!1},d(a){a&&C(t),V(e,a),V(n,a)}}}function Lv(i,e,t){let n,o,l,r,a,s,u,f,p,h,k,{showTimeline:g=!1}=e,w=tt(),v=Bt(),T=w.state.bufferedProgress$;O(i,T,Ce=>t(12,h=Ce));let b=w.state.positionWithScrubbing$;O(i,b,Ce=>t(39,s=Ce));let y=w.state.duration$;O(i,y,Ce=>t(1,l=Ce));let I=w.state.isLive$;O(i,I,Ce=>t(0,o=Ce));let Z=w.state.isActiveLive$;O(i,Z,Ce=>t(11,p=Ce));let N=w.ui.isMobile;O(i,N,Ce=>t(10,f=Ce));let z=v.features.episodes?w.actions.internal.getVideoEpisodes():void 0,se=w.actions.internal.getPreviewThumbsData(),ae=w.state.interactiveEpisodes$;O(i,ae,Ce=>t(40,u=Ce));let F=w.state.isInteractive,x=w.state.isInteractiveTime$;O(i,x,Ce=>t(2,r=Ce));let E=w.state.isInteractiveExpectation$;O(i,E,Ce=>t(38,a=Ce));let X=w.actions.internal.correctSeekTimeToInteractive,Q=w.ui.controls.disabledControls$;O(i,Q,Ce=>t(13,k=Ce));let G,ee,L,H,Be=!1,ze="",We=0,Xe=0,qe=0,ye;function J(Ce){return!X||!F?Ce:X(Ce*l)/l}function we(Ce){w.actions.internal.startScrubbing(J(Ce))}function Ke(Ce){r||w.actions.internal.progressScrubbing(J(Ce))}function Je(Ce){w.actions.internal.completeScrubbing(J(Ce)),t(34,Be=!1)}function it(Ce,re,Ue){Ge(Ce,re,Ue),t(34,Be=!0)}function ke(Ce,re,Ue){Ge(Ce,re,Ue),t(34,Be=!0)}function Ne(){t(34,Be=!1)}function Ge(Ce,re,Ue){t(8,qe=J(Ce)),t(35,We=re),Ue&&t(36,Xe=Ue),t(7,ze=nt(Ce))}function nt(Ce){let re=En((o?1-Ce:Ce)*l);return o?`-${re}`:re}return i.$$set=Ce=>{"showTimeline"in Ce&&t(33,g=Ce.showTimeline)},i.$$.update=()=>{if(i.$$.dirty[1]&512)e:t(3,G=F?u:z);if(i.$$.dirty[0]&2)e:t(4,ee=En(l));if(i.$$.dirty[1]&256)e:t(5,L=En(s));if(i.$$.dirty[0]&2|i.$$.dirty[1]&256)e:t(6,H=s/l);if(i.$$.dirty[0]&4|i.$$.dirty[1]&128)e:t(37,ye=a||r);if(i.$$.dirty[0]&1|i.$$.dirty[1]&124)e:t(9,n={containerWidth:Xe,translateXPx:We,translateYPx:F&&se?-36:-16,active:Be&&g&&!ye,pointer:!v.features.timelinePreview||!se||o})},[o,l,r,G,ee,L,H,ze,qe,n,f,p,h,k,v,T,b,y,I,Z,N,se,ae,F,x,E,Q,we,Ke,Je,it,ke,Ne,g,Be,We,Xe,ye,a,s,u]}var $a=class extends K{constructor(e){super(),W(this,e,Lv,Vv,U,{showTimeline:33},Tv,[-1,-1])}},Xd=$a;function Rv(i){let e,t;return e=new al({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:j("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.ariaValueMax=n[0]),o&8&&(l.ariaValueNow=Math.round(n[3]*100)),o&6&&(l.ariaValueText=j("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){V(e,n)}}}function Bv(i,e,t){let n,{position:o=0}=e,{duration:l=0}=e,a=tt().ui.isMobile;O(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=()=>{if(i.$$.dirty&1)e:t(1,s=En(l));if(i.$$.dirty&64)e:t(2,u=En(o));if(i.$$.dirty&65)e:t(3,f=o/l)},[l,s,u,f,n,a,o]}var eu=class extends K{constructor(e){super(),W(this,e,Bv,Rv,U,{position:6,duration:0})}},Lr=eu;function Dv(i){Se(i,"svelte-1gqonyf",".timeline.svelte-1gqonyf{position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box}.timeline.mobile.svelte-1gqonyf{height:16px;padding:6px 12px 7px;margin-top:6px}.timeline-stub.svelte-1gqonyf{width:100%;min-width:20px}.timeline-stub.mobile.svelte-1gqonyf{height:8px}")}function Nv(i){let e;return{c(){e=P("div"),c(e,"class","timeline-stub svelte-1gqonyf"),q(e,"mobile",i[2])},m(t,n){S(t,e,n)},p(t,n){n&4&&q(e,"mobile",t[2])},i:_e,o:_e,d(t){t&&C(e)}}}function qv(i){let e,t,n,o,l=[Fv,Ov],r=[];function a(s,u){return s[0]?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"),q(e,"mobile",i[2])},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):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),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&4)&&q(e,"mobile",s[2])},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&C(e),r[t].d()}}}function Ov(i){let e,t;return e=new Xd({props:{showTimeline:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.showTimeline=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Fv(i){let e,t;return e=new Lr({props:{position:i[3],duration:i[4]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&8&&(l.position=n[3]),o&16&&(l.duration=n[4]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Hv(i){let e,t,n,o,l=[qv,Nv],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=at()},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):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),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&&C(n),r[e].d(s)}}}function zv(i,e,t){let n,o,l,r,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:f=!1}=e,p=tt(),h=p.state.isLive$;O(i,h,T=>t(12,n=T));let k=p.ads.duration;O(i,k,T=>t(4,r=T));let g=p.ads.position;O(i,g,T=>t(3,l=T));let w=p.ui.isMobile;O(i,w,T=>t(2,o=T));let v;return i.$$set=T=>{"isAds"in T&&t(0,a=T.isAds),"canRewindLive"in T&&t(9,s=T.canRewindLive),"isRewindableLive"in T&&t(10,u=T.isRewindableLive),"isHidden"in T&&t(11,f=T.isHidden)},i.$$.update=()=>{if(i.$$.dirty&7681)e:t(1,v=!f&&(!n||n&&s&&u||a))},[a,v,o,l,r,h,k,g,w,s,u,f,n]}var tu=class extends K{constructor(e){super(),W(this,e,zv,Hv,U,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},Dv)}},Rr=tu;import{noop as Gv}from"@vkontakte/videoplayer-shared";function Uv(i){let e,t,n,o,l,r=i[2].default,a=Ie(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=oe(u,s[f]);return{c(){e=B("svg"),a&&a.c(),t=B("path"),n=B("path"),o=B("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"),ge(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)&&Te(a,r,f,f[1],l?Pe(r,f[1],p,null):Ee(f[1]),null),ge(e,u=Le(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&&C(e),a&&a.d(f)}}}function Kv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var iu=class extends K{constructor(e){super(),W(this,e,Kv,Uv,U,{})}},Jd=iu;function jv(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function Wv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var nu=class extends K{constructor(e){super(),W(this,e,Wv,jv,U,{})}},xd=nu;function Qv(i){Se(i,"svelte-1yhs2ga",".text.svelte-1yhs2ga{padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text.count.svelte-1yhs2ga{overflow:visible}.text.mobile.svelte-1yhs2ga{padding:0 3px 0 4px}.chevron-episodes.svelte-1yhs2ga{margin-bottom:-4px}")}function Yv(i){let e,t,n,o;e=new Jd({});function l(s,u){if(s[4]==="FULL")return Jv;if(s[4]==="COUNT")return Xv}let r=l(i,-1),a=r&&r(i);return{c(){R(e.$$.fragment),t=D(),a&&a.c(),n=at()},m(s,u){M(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&&(C(t),C(n)),V(e,s),a&&a.d(s)}}}function Zv(i){let e,t,n,o,l,r;return l=new xd({}),{c(){e=P("span"),t=Ae(i[2]),n=D(),o=P("div"),R(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),M(l,o,null),r=!0},p(a,s){(!r||s&4)&&je(t,a[2])},i(a){r||(d(l.$$.fragment,a),r=!0)},o(a){_(l.$$.fragment,a),r=!1},d(a){a&&(C(e),C(n),C(o)),V(l)}}}function Xv(i){let e,t=i[0].length+"",n;return{c(){e=P("span"),n=Ae(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+"")&&je(n,t)},d(o){o&&C(e)}}}function Jv(i){let e,t;return{c(){e=P("span"),t=Ae(i[2]),c(e,"class","text svelte-1yhs2ga")},m(n,o){S(n,e,o),m(e,t)},p(n,o){o&4&&je(t,n[2])},d(n){n&&C(e)}}}function xv(i){let e,t,n,o,l=[Zv,Yv],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=at()},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):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),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&&C(n),r[e].d(s)}}}function $v(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:[xv]},$$scope:{ctx:i}};return i[1]!==void 0&&(l.ref=i[1]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&64&&(s.className="w-max btn-full-opacity "+(r[6]?"px-0":"")),a&8&&(s.ariaExpanded=r[3]),a&32&&(s.ariaLabel=r[5]),a&8388693&&(s.$$scope={dirty:a,ctx:r}),!t&&a&2&&(t=!0,s.ref=r[1],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function e4(i,e,t){let n,o,l,r,a,s,{position:u=0}=e,{duration:f=0}=e,{timeCodes:p=[]}=e,h=tt(),k=h.callbacks?.onEpisodeChanged??Gv,g=!!h.callbacks?.onEpisodeClicked,w=h.ui.currentGridType$;O(i,w,F=>t(18,a=F));let v=h.ui.episodes.openedByKeyboard$;O(i,v,F=>t(17,r=F));let T=h.ui.episodes.panelOpened$;O(i,T,F=>t(3,l=F));let b=h.ui.isMobile;O(i,b,F=>t(6,s=F));let y,I=F=>{if(!!h.callbacks?.onEpisodeClicked){let E=il(F);v.set(E),T.set(!0),h.callbacks?.onEpisodeClicked?.(E)}},Z,N,z,se=async(F,x,E)=>{await Un(),F?.getAttribute("aria-expanded")==="false"&&x&&!E&&(v.set(!1),F.focus())};function ae(F){y=F,t(1,y)}return i.$$set=F=>{"position"in F&&t(13,u=F.position),"duration"in F&&t(14,f=F.duration),"timeCodes"in F&&t(0,p=F.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576)e:t(16,n=u/f);if(i.$$.dirty&114689)e:{let F=Vr(n,f,p);F&&Z?.text!==F.text&&(k(F),t(15,Z=F))}if(i.$$.dirty&32768)e:t(2,o=Z?.text||"");if(i.$$.dirty&262144)e:An(a,"xl")?t(4,N="FULL"):An(a,"m")&&Ld(a,"xl")?t(4,N="COUNT"):t(4,N="SHORT");if(i.$$.dirty&4)e:t(5,z=`${j("tooltip_episodes")}: ${o}`);if(i.$$.dirty&131082)e:se(y,r,l)},[p,y,o,l,N,z,s,g,w,v,T,b,I,u,f,Z,n,r,a,ae]}var ou=class extends K{constructor(e){super(),W(this,e,e4,$v,U,{position:13,duration:14,timeCodes:0},Qv)}},Br=ou;function t4(i){let e,t,n,o,l=i[2].default,r=Ie(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=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),n=B("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"),ge(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)&&Te(r,l,u,u[1],o?Pe(l,u[1],f,null):Ee(u[1]),null),ge(e,s=Le(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&&C(e),r&&r.d(u)}}}function i4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var lu=class extends K{constructor(e){super(),W(this,e,i4,t4,U,{})}},$d=lu;function n4(i){let e,t;return e=new $d({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function o4(i){let e,t,n;function o(r){i[4](r)}let l={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:j("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[n4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&8&&(s.click=r[3]),a&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function l4(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 ru=class extends K{constructor(e){super(),W(this,e,l4,o4,U,{ref:0,hidden:1,disabled:2,click:3})}},Dr=ru;function r4(i){let e,t,n,o,l=i[2].default,r=Ie(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=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),n=B("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"),ge(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)&&Te(r,l,u,u[1],o?Pe(l,u[1],f,null):Ee(u[1]),null),ge(e,s=Le(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&&C(e),r&&r.d(u)}}}function s4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var su=class extends K{constructor(e){super(),W(this,e,s4,r4,U,{})}},em=su;function a4(i){Se(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function u4(i){let e,t;return e=new em({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let 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){V(e,n)}}}function c4(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var au=class extends K{constructor(e){super(),W(this,e,c4,u4,U,{isOpened:0},a4)}},tm=au;function f4(i){let e,t;return e=new tm({props:{isOpened:i[3]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&8&&(l.isOpened=n[3]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function d4(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:[f4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&32&&(s.ariaLabel=r[5]),a&16&&(s.click=r[4]),a&136&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function m4(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=()=>{if(i.$$.dirty&8)e:t(5,s=r?j("tooltip_interactive_graph_on"):j("tooltip_interactive_graph_off"))},[n,o,l,r,a,s,u]}var uu=class extends K{constructor(e){super(),W(this,e,m4,d4,U,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Nr=uu;function p4(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function _4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var cu=class extends K{constructor(e){super(),W(this,e,_4,p4,U,{})}},qr=cu;import{noop as h4}from"@vkontakte/videoplayer-shared";function g4(i){Se(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function 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&&C(e)}}}function b4(i){let e,t,n,o,l=i[1]&&im(i);return n=new qr({}),{c(){l&&l.c(),e=D(),t=P("div"),R(n.$$.fragment),c(t,"class","svelte-1ot3duq"),q(t,"mobile",i[1])},m(r,a){l&&l.m(r,a),S(r,e,a),S(r,t,a),M(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)&&q(t,"mobile",r[1])},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){_(n.$$.fragment,r),o=!1},d(r){r&&(C(e),C(t)),l&&l.d(r),V(n)}}}function v4(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:j("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:Gn.KeyK,$$slots:{default:[b4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&10&&(s.className=(r[1]?"btn-m--play":"")+" "+r[3]),a&4&&(s.disabled=r[2]),a&16&&(s.click=r[4]),a&66&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function y4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{className:r=""}=e,{click:a=h4}=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 fu=class extends K{constructor(e){super(),W(this,e,y4,v4,U,{ref:0,isMobile:1,disabled:2,className:3,click:4},g4)}},Pl=fu;function k4(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function w4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var du=class extends K{constructor(e){super(),W(this,e,w4,k4,U,{})}},nm=du;function C4(i){let e,t;return e=new nm({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function S4(i){let e,t,n;function o(r){i[4](r)}let l={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:j("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[C4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&8&&(s.click=r[3]),a&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function I4(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 mu=class extends K{constructor(e){super(),W(this,e,I4,S4,U,{ref:0,hidden:1,disabled:2,click:3})}},Or=mu;import{noop as om}from"@vkontakte/videoplayer-shared";function P4(i){Se(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 T4(i){let e,t,n,o;return{c(){e=P("img"),c(e,"class","icon svelte-1x1zctw"),cs(e.src,t=i[0])||c(e,"src",t),c(e,"aria-hidden","true")},m(l,r){S(l,e,r),n||(o=de(e,"error",i[7]),n=!0)},p(l,r){r&1&&!cs(e.src,t=l[0])&&c(e,"src",t)},d(l){l&&C(e),n=!1,o()}}}function E4(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:_e,d(t){t&&C(e)}}}function A4(i){let e;function t(l,r){return l[5]?E4:T4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=at()},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&&C(e),o.d(l)}}}function M4(i){let e,t;return e=new _t({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[A4]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&16&&(l.className=n[4]?"btn-full-opacity":""),o&2&&(l.ariaLabel=n[1]),o&8&&(l.click=n[3]),o&64&&(l.disabled=n[6]),o&4&&(l.testId=n[2]),o&545&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function V4(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)};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=()=>{if(i.$$.dirty&8)e:t(4,n=f===om);if(i.$$.dirty&272)e:t(6,o=n||s)};e:t(5,l=!1);return[r,a,u,f,n,l,o,p,s]}var pu=class extends K{constructor(e){super(),W(this,e,V4,M4,U,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},P4)}},Fr=pu;import{throttleFn as s3}from"@vkontakte/videoplayer-shared";import{ChromecastState as O4,PlaybackState as Tl,Player as F4,VideoFormat as El}from"@vkontakte/videoplayer-core";import"@vkontakte/videoplayer-shared";import{assertNonNullable as Qn,getCurrentBrowser as H4,getHighestQuality as z4,InterfaceLanguage as U4,isIOS as K4,isNonNullable as j4,loadVKLangPack as W4,Logger as G4,map as Q4,merge as Y4,Observable as Z4,Subject as Kr,Subscription as yu,ValueSubject as X4,VideoQuality as ku}from"@vkontakte/videoplayer-shared";import{SeekAction as po}from"@vkontakte/videoplayer-statistics";import"@vkontakte/videoplayer-interactive";import{addScript as L4,assertNonNullable as Oi,Subject as Fo,clearVideoElement as R4}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 B4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Hr=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()};L4(B4,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)=>{Oi(this.adsState),Oi(this.playerState),Oi(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.onAdTimeRemained=({currentTime:e})=>{Oi(this.adsState),this.adsState.position.set(e)};this.onAdPaused=()=>{Oi(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{Oi(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing")};this.onAdMidrollPoint=()=>{Oi(this.adman),Oi(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.adman.start("midroll")};this.onAdSkipped=()=>{this.log({message:"ad skipped"})};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo()};this.onAdClicked=()=>{this.log({message:"ad clicked"}),this.videoElement?.pause(),this.events.clicked$.next()};this.onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0)};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout}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;let{width:t,height:n,isFullscreen:o,isAutoplay:l,adsContainer:r,adsVideoElement:a,slotId:s,params:u={},duration:f,previewParam:p}=e,h,k=this.playerState&&xe(this.playerState.vsid);k&&(h=parseInt(k,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},w={slot:s,wrapper:r,videoEl:a,videoQuality:n,params:g,browser:{mobile:!1}},v=new window.AdmanHTML;v.setDebug(!1),v.onReady(this.onAdsReady),v.onStarted(this.onAdStarted),v.onPlayed(this.onAdPlayed),v.onPaused(this.onAdPaused),v.adMidrollPoint(this.onAdMidrollPoint),v.onClosed(this.onAdClosed),v.onSkipped(this.onAdSkipped),v.onClicked(this.onAdClicked),v.onTimeRemained(this.onAdTimeRemained),v.onCompleted(this.onAdCompleted),v.onError(this.onAdError),v.init(w),this.adman=v,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(w)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}Oi(this.actions),Oi(this.adsState),Oi(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(){Oi(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){this.log({message:`set volume ${e}`}),this.adman?.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){this.log({message:`set fullscreen ${e}`}),this.adman?.setFullscreen(e)}startPreroll(){Oi(this.adman),this.isDestroyed||(this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.adman.start("preroll"))}startPostroll(){Oi(this.adman),Oi(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.adman.start("postroll")}play(){Oi(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){Oi(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){Oi(this.adman),this.log({message:"ad skip"}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,t){this.adman?.setPosition(Math.floor(e),Math.floor(t))}destroy(){this.log({message:"destroy"}),this.adman?.destroy(),this.videoElement&&R4(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 _u=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 zr,{startTime:u,endTime:f}=s.parse(a);l.startTime=u,l.endTime=f}else if(a.trim()!==""){let s=new hu,{texts:u}=s.parse(a);l.texts=[...l.texts,...u]}(l.startTime||l.endTime)&&l.texts.length>0&&t.push(l)}return t}},zr=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}},hu=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 zr;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=_u;import{isNonNullable as gu}from"@vkontakte/videoplayer-shared";var mo,qn,bu=0,vu=!1,am=(i,e,t)=>{let n=i>=bu,o=i<bu,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(bu=i,o&&(vu=!1),gu(mo)&&r(i,mo.startTime,mo.endTime)&&mo.lang===e.value)return mo;if(!gu(qn)&&s?.length&&!vu){let u=s.find(({startTime:f,endTime:p})=>r(i,f,p)||n&&l(i,f,p));qn=u&&{...u,lang:e.value},mo=void 0,!gu(qn)&&s[s.length-1].endTime<i&&(vu=!0);return}else{if(r(i,qn?.startTime,qn?.endTime))return mo=qn,qn=void 0,mo;(n&&a(i,qn?.startTime,qn?.endTime)||o&&l(i,qn?.startTime,qn?.endTime))&&(qn=void 0)}};import{Subscription as D4}from"@vkontakte/videoplayer-shared";import{OneStat as N4}from"@vkontakte/videoplayer-statistics";var Ur=class{constructor(e,t){this.oneStat=new N4(e,t),this.statSubscription=new D4}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:k,player:g,disabledControls:w,isInteractive:v,interactiveRanges$:T,isInteractiveTime$:b,replayInteractive:y,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:Z,additionalButtons:N,looped:z=!1,statistics:se,saveRate:ae})=>{let F={...k,configName:[...k.configName??[],"ui"],isAudioDisabled:r,live:{...k.live??{},isLiveCatchUpMode:!!o}},x=h,E=g||new F4(F),X=new G4,Q=new Hr(X,{loadTimeout:x.ads.loadTimeout,initTimeout:x.ads.initTimeout}),G=Ao.getInstance(),ee=u?.pictureInPictureApi,L=u?.annotationsApi,H=X.createComponentLog("Store"),Be,ze,We={},Xe=H4(),qe=se?vt(se.oneStat.vsid$):Tn(void 0),ye=Re(so()),J=ee?.info.isActive$??new X4(!1),we=ee?.info.type,Ke=Re(0),Je=Re([]),it=Y4(E.events.fatalError$,E.events.managedError$).subscribe(A=>Je.update(fe=>[...fe,A])),ke=Tn(!1,A=>{let fe=E.events.fatalError$.subscribe(()=>A(!0));return()=>fe.unsubscribe()}),Ne=async A=>{let fe=Object.values(U4).includes(A);if(x.downloadVKLanguages&&(fe&&x.updateBuiltinLanguages||!Ss(A))){let Ze;try{Ze=await W4(A,zc,Uc)}catch(ct){se?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),G?.report(ct,{errorType:"VKLangPack",fatal:!1})}Ze&&(Cs({language:A,pack:Ze,fallback:x.defaultLanguage}),Ge.set(A))}Ss(A)&&Ge.set(A)},Ge=Re(i),nt=Re(e);Ne(i);let Ce=(A,fe)=>{let Ve=xe(Ge);return Is(Ve,A,fe,x.defaultLanguage)},re=Re("thumb"),Ue=(()=>{let A=Si([ke,re],([fe,Ve])=>fe?"crashed":Ve);return{...A,is:fe=>xe(A)===fe}})(),me=(()=>{let A=Re(new Set(w));return{...A,add:fe=>{A.update(Ve=>new Set([...Ve].concat(fe)))},remove:fe=>{A.update(Ve=>{let Ze=[...Ve];return new Set(Array.isArray(fe)?Ze.filter(ct=>!fe.includes(ct)):Ze.filter(ct=>ct!==fe))})},includes:fe=>{let Ve=xe(A);return Array.isArray(fe)?fe.every(Ze=>Ve.has(Ze)):Ve.has(fe)}}})();H({message:"create store"});let le=A=>{let fe=A.container;fe.append(E.experimental.element$.getValue()),ht=new MutationObserver(Ve=>{let{removedNodes:Ze}=Ve[0];Ze.length&&fe.append(E.experimental.element$.getValue())}),ht.observe(fe,{childList:!0})},De=A=>{H({message:`init video, config: ${JSON.stringify(A)}`}),v?le(A):E.initVideo(A),A.subtitles&&E.setExternalTextTracks(A.subtitles),Be=A},Me=new Kr,Ye=A=>Me.next(A),rt=new Kr,ve=new Kr,ft=new Kr,ht=null,ut={actionRewind$:rt,actionSeek$:ve,inPiP$:J,inFullscreen$:new Z4(A=>ye.subscribe(fe=>A.next(fe))),actionSetSubtitle$:ft,nextMovie$:Me};if(se){let{oneStat:A,statSubscription:fe}=se;fe.add(A.attachTo(E)),fe.add(A.attachToUi(ut)),fe.add(A.attachToAds(Q.events)),A.authorize(l).catch(Ve=>{H({message:`onestat auth error ${String(Ve)}`})})}if(G){let A=new yu,fe=(Ve,Ze)=>A.add(Ve.subscribe(Ze));if(fe(E.events.managedError$,Ve=>{G.logIError(Ve)}),fe(E.events.fatalError$,Ve=>{G.logIError(Ve,!0)}),se){let{oneStat:Ve}=se;fe(Ve.experimental.error$,Ze=>{G.logIError(Ze)})}G.sentrySubscription.add(A)}let mt=()=>{K4()&&ze&&Sf(ze)},St=new yu().add(E.experimental.element$.subscribe(A=>{A&&(ze=A,A.classList.add("player-media"),Vo(ee)&&(ee.updateVideoElement(),ee.registryEventHandlers()),v&&A.setAttribute("pip","false"))})).add(E.events.ended$.subscribe(()=>{mt(),s?.onEnded?.()})).add(E.events.started$.subscribe(async()=>{Vo(ee)&&await ee?.revealPictureInPicture();let A=E.info.muted$.getValue();s?.onStarted?.(),We.onStarted?.(A)})).add(E.events.willSeek$.subscribe(({from:A,to:fe})=>{s?.onSeek?.(A,fe)})).add(E.info.position$.subscribe(A=>{let fe=E.info.duration$.getValue();s?.onTimeupdate?.(fe,A),Q.setPosition(A,fe)})).add(E.events.fatalError$.subscribe(()=>{s?.onCrashed?.()})).add(E.events.firstBytes$.subscribe(()=>{bt.state.isFirstBytes$.set(!0)})).add(E.info.is3DVideo$.subscribe(A=>{bt.ui.is3DVideo.set(A)})).add(E.info.isEnded$.subscribe(A=>{v&&(A?(b?.getValue()&&me.add(jl),me.add("PLAY_BUTTON")):me.remove("PLAY_BUTTON"))})).add(E.info.liveTime$.subscribe(A=>{s?.onLiveTime?.(A)})).add(E.info.isStalled$.subscribe(A=>{s?.onStalledChanged?.(A)})).add(Q.events.started$.subscribe(()=>{s?.adsInfo?.onStarted?.()})).add(Q.events.ended$.subscribe(()=>{s?.adsInfo?.onCompleted?.()})),Qe=new yu,Nt=()=>{Qe.add(E.events.log$.subscribe(A=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${A.component}`,A.message)})).add(X.log$.subscribe(A=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${A.component}.`,A.message)}))},Vt=()=>{Qe.unsubscribe()},Ct=(A,fe)=>{E.startCameraManualRotation(A,fe)},oi=(A=!1)=>{E.stopCameraManualRotation(A)},lt=(A,fe,Ve)=>{E.moveCameraFocusPX(A,fe,Ve)},kt=()=>{E.holdCamera()},be=()=>{E.releaseCamera()},pt=Tn(E.info.position$.getValue(),A=>{let fe,Ve,Ze=()=>{let ct=E.info.playbackState$.getValue(),di=E.info.isLive$.getValue(),qi=E.info.duration$.getValue(),ni=E.info.position$.getValue();if([Tl.PLAYING,Tl.PAUSED].includes(ct)){let Hn=di?ni-qi:E.getExactTime();Hn!==Ve&&A(Hn),Ve=Hn}fe=requestAnimationFrame(Ze)};return Ze(),()=>cancelAnimationFrame(fe)}),It=vt(J),Qt=vt(E.info.playbackState$),yt=vt(E.info.currentBuffer$),Ut=vt(E.info.isEnded$),qt=vt(E.info.isLive$),Kt=x.features.playbackRate?vt(E.info.canChangePlaybackSpeed$):Tn(!1),Fi=vt(E.info.liveBufferTime$),tn=vt(E.info.volume$),Jt=vt(E.info.muted$),Ii=hs(E.info.autoQualityLimits$.pipe(Q4(({max:A})=>A!==void 0)),E.info.autoQualityLimits$.getValue()?.max!==void 0),cn=vt(E.info.autoQualityLimitingAvailable$),Pi=vt(E.info.availableQualities$),nn=vt(E.info.availableQualitiesFps$),li=vt(E.info.chromecastState$),Ti=vt(E.info.chromecastDeviceName$),xt=vt(E.info.currentFormat$),_i=vt(E.info.throughputEstimation$),hi=vt(E.info.videoBitrate$),gi=vt(E.info.intrinsicVideoSize$),ri=vt(E.info.duration$),si=vt(E.info.isAudioAvailable$),jt=null,bi=E.info.isBuffering$,Hi=Tn(bi.getValue(),A=>{let fe=bi.subscribe(Ve=>{Ve&&jt===null?jt=window.setTimeout(()=>{A(bi.getValue()),jt=null},x.loaderDelay):A(Ve)});return()=>{fe.unsubscribe(),jt&&clearTimeout(jt)}}),vi=()=>{jt&&clearTimeout(jt),jt=null},ai=Si([ri,qt],([A,fe])=>fe?-A:A),zi=Si([Qt],([A])=>A===Tl.PLAYING),Mt=vt(E.info.atLiveEdge$),Ui=vt(E.info.atLiveDurationEdge$),Ot=vt(E.info.position$),Ei=Si([Ot,ri],([A,fe])=>isFinite(A)&&isFinite(fe)&&!!fe),Ki=Si([li],([A])=>A===O4.CONNECTED),ji=vt(E.info.availableVideoStreams$),Wt=x.features.audioLanguages?vt(E.info.availableAudioStreams$):Tn([]),ui=vt(E.info.currentVideoStream$),ci=vt(E.info.currentAudioStream$),fi=A=>{A.language&&ks(A.language),E.setVideoStream(A)},$t=A=>{A.language&&ks(A.language),E.setAudioStream(A)},Et=A=>{let fe;if(A.length===1&&(fe=A.at(0)),fe??=A.find(Ze=>"isDefault"in Ze&&Ze.isDefault),fe)return fe;let Ve=pf();return Ve&&(fe=A.find(({language:Ze})=>Ve===Ze)),fe??=A.at(0),fe},yi=!1;St.add(E.info.availableAudioStreams$.subscribe(A=>{if(!yi&&A.length){let fe=Et(A);fe&&(E.setAudioStream(fe),yi=!0)}}));let Ai=!1;St.add(E.info.availableVideoStreams$.subscribe(A=>{if(!Ai&&A.length){let fe=Et(A);fe&&(E.setVideoStream(fe),Ai=!0)}}));let Yt=Re(void 0),Zt=vt(E.info.isAutoQualityEnabled$,A=>A&&Yt.set(void 0)),ei=vt(E.info.currentQuality$,()=>Yt.set(void 0)),Wi=Si([Yt,ei],([A,fe])=>A??fe),fn=Si([Pi,nn,Zt,Wi,xt],([A,fe,Ve,Ze,ct])=>{let di=[];ct!==El.MPEG&&di.push({value:"auto",displayValue:Ce("auto_quality_option"),selected:Ve});let qi=A.filter(ni=>ni!==ku.INVARIANT);for(let ni of qi){let Hn=fe[ni],xn=ni===ku.INVARIANT?Ce("auto_quality_option"):ni;di.push({value:ni,displayValue:`${xn}${Hn?rm(Hn):""}`,selected:Ve?!1:ni===Ze})}return di}),on=vt(E.info.currentPlaybackRate$),Gi=Si([on,Mt,Ui],([A,fe,Ve])=>{let Ze=Ve||v?1:x.controls.playbackRateMin,ct=fe?1:x.controls.playbackRateMax,di=x.controls.playbackRateStep,qi=[];for(let ni=Ze;ni<=ct;ni+=di)qi.push({value:ni,displayValue:ni===1?Ce("playback_rate_1"):Ce("playback_rate",{multiplier:ni.toString(10)}),selected:A===ni});return qi}),Mi=x.features.subtitles?vt(E.info.availableTextTracks$):Tn([]),Ft=Si([Mi],([A],fe)=>{let Ve=[],Ze=[];for(let ct of A)ct.url&&Ve.push(fetch(ct.url));Promise.allSettled(Ve).then(ct=>{for(let[di,qi]of ct.entries())qi.status==="fulfilled"&&qi.value.text().then(ni=>{let Hn=new sm,xn=A[di].language,ot=!!A[di].isAuto,bn=Hn.parse(ni);xn&&bn&&Ze.push({lang:xn,subtitles:bn,isAuto:ot}),di===ct.length-1&&fe(Ze)})})}),Lt={displayValue:Ce("subtitles_off"),value:"off"},Dt=Re({...Lt}),Vi=Si([Ft,Dt,Ft],([A,fe])=>{if(A?.length>0){let Ve=[{...Lt,selected:fe?.value===Lt.value}];for(let{lang:Ze,isAuto:ct}of A)No[Ze]&&Ve.push({displayValue:ct?Ce("subtitles_auto",{language:No[Ze]}):No[Ze],value:Ze,selected:fe?.value===Ze,isAuto:ct});return Ve}else return[]}),Li=Si([pt,Dt,Ft],([A,fe,Ve])=>{if(fe&&fe.value!==Lt.value)return am(A,fe,Ve)}),ln=Si([Li],([A])=>A?.texts?A.texts:[]),Ri=Re(!0),Bi=Si([yt,ai,Ot,Fi],([A,fe,Ve,Ze])=>{let ct=A?.end??0;if(!Ze)return ct/fe;let qi=-Ve+Ze-fe;return(ct-qi)/fe}),$e=vt(E.info.availableSources$),ti=Si([$e],([A])=>Object.keys(A?.[El.MPEG]||{}).length>0),Xt=()=>{let A=Object.keys(E.info.availableSources$?.getValue()?.[El.MPEG]||{}),fe=z4(A)||ku.Q_144P;return Be.sources[El.MPEG]?.[fe]},He=()=>{let A=Xt();A?$c(A,Be?.meta?.title||"video"):H({message:"There is no URL for download video"})},Qi=()=>{H({message:"toggle muted"});let A=E.info.muted$.getValue(),Ze=!(E.info.volume$.getValue()===0||A);Ji(Ze)},rn=()=>{bt.ui.settingsMenuVisible.set(!1)},Yi=A=>{bt.ui.settingsMenuOpenedByKeyboard.set(!!A),bt.ui.settingsMenuVisible.set(!0)},Zi=A=>{xe(bt.ui.settingsMenuVisible)?rn():Yi(A)},Xi=(A,fe=A,Ve=!1)=>{let Ze=!Ve,ct=E.info.muted$.getValue();H({message:`set volume, volume: ${A}, preferredVolume: ${fe}, internalCall: ${Ze}`}),E.setVolume(A),Q.setVolume(A),Ze&&s?.onVolumeChange?.(A),vs(fe),ct?(E.setMuted(!1),Ze&&s?.onUnmute?.(),Yl(!1)):!ct&&A===0&&(E.setMuted(!0),Ze&&s?.onMute?.(),Yl(!0))},Ji=(A,fe=!1)=>{let Ve=!fe,Ze=E.info.volume$.getValue();if(H({message:`set muted, currentVolume: ${Ze}, mute: ${A}, internalCall: ${Ve}`}),E.setMuted(A),Q.setVolume(A?0:Ze),Yl(A),Ve&&(A?s?.onMute?.():s?.onUnmute?.()),Ze===0){let ct=Ql()??x.volumeDefault;ct===0&&(ct=x.volumeMinRestore,vs(ct)),E.setVolume(ct),Q.setVolume(ct),Ve&&s?.onVolumeChange?.(ct)}},sn=Re(!1),dn=A=>{sn.set(A),E.setLooped(A)};dn(z);let Ht=()=>{E.prepare()},Di=()=>{if(Qn(bt),xe(bt.ui.controls.disabledControls$).has("PLAY_BUTTON"))return;if(H({message:"toggle play"}),xe(bt.playerPhase)==="ads"){Q.togglePlay();return}let fe=()=>{H({message:"toggle play, call player.play"}),E.play(),s?.onPlay?.()},Ve=()=>{H({message:"toggle play, call player.pause"}),E.pause(),s?.onPause?.()};if(E.info.isEnded$.getValue()){if(H({message:"toggle play, video ended, seek to 0"}),rt.next(),ve.next(po.REWIND),v){y?.();return}E.seekTime(0),fe()}else E.info.playbackState$.getValue()!==Tl.PLAYING?fe():Ve()},pn=A=>{H({message:`set quality, quality: ${A}`}),E.setAutoQuality(A==="auto"),A!=="auto"?(sf(t,A),Yt.set(A),E.setQuality(A)):ys()},kn=A=>{H({message:`set trafficSavingEnabled, value: ${A}`}),E.setAutoQualityLimits({max:A?x.trafficSavingLimit:void 0}),df(A)},Ni=A=>{E.setPlaybackRate(A),x.features.saveRate&&ae&&!E.info.isLive$.getValue()&&_f(A)},_n=()=>{let A=xe(Gi),fe=A.findIndex(({selected:Ze})=>Ze);if(fe===A.length-1)return;let Ve=A[fe+1];Ni(Ve.value)},mn=()=>{let A=xe(Gi),fe=A.findIndex(({selected:Ze})=>Ze);if(fe===0)return;let Ve=A[fe-1];Ni(Ve.value)},ii=A=>{A&&A.value!==Lt.value&&ft.next(A.isAuto?A.value+"_auto":A.value),Dt.set(A)},xi=()=>{let A=xe(Vi),fe=xe(Dt),Ve=xe(Ge);if(fe?.value===Lt.value){let Ze=A.filter(ct=>ct.value!==Lt.value).find(ct=>ct.value===Ve)||A[1];ii(Ze??{...Lt})}else ii({...Lt,selected:!1})},$i=(A,fe,Ve=!0)=>{if(H({message:`seek to time, time: ${A}`}),ve.next(fe),E.info.isLive$.getValue()){let Ze=E.info.duration$.getValue(),ct=Math.min(0,Ze+A);E.seekTime(ct,Ve)}else{if(b?.getValue())return;E.seekTime(lo(A),Ve)}},wn=A=>{H({message:`seek to episode start time: ${A}`}),$i(A,po.EPISODE,!0)},hn=(A,fe)=>{H({message:`seek to percent, percent: ${A}`});let Ve=Math.round(xe(ai)*A);$i(Ve,fe,!1)},Gt=A=>{H({message:`seek external, time: ${A}`}),ve.next(po.UNKNOWN),E.seekTime(E.info.isLive$.getValue()?-A:A)},Mn=A=>{H({message:`set auto quality limitation. Max: ${A.max??"none"}. Min: ${A.min??"none"}`}),E.setAutoQualityLimits(A)},Vn=A=>{H({message:`seek external to episode start time: ${A}`}),$i(A,po.EPISODE,!0)},Cn=A=>{H({message:`set playback rate to: ${A}`}),E.setPlaybackRate(A)},gn=Re(void 0),an=Re(!1),Sn=A=>{H({message:`start scrubbing, progress: ${A}`}),an.set(!0),en(A)},en=A=>{gn.set(A)},ie,gt,un=()=>{gn.set(void 0),an.set(!1)},te=()=>{clearTimeout(gt),clearTimeout(ie),ie=window.setTimeout(()=>{un()},500),ze?.removeEventListener("seeked",te)},dt=A=>{H({message:`complete scrubbing, progress: ${A}`}),hn(A,po.SLIDER),xe(bt.ui.isMobile)&&xe(bt.state.currentFormat$)===El.HLS?(ze?.addEventListener("seeked",te),gt=window.setTimeout(()=>{te()},300)):un()},ki=Si([pt,ai,gn],([A,fe,Ve],Ze)=>{Ze(j4(Ve)?Ve*fe:A)}),Ln=Re({width:0,height:0}),Rn=Si([Ln],([{width:A}],fe)=>{let Ve=Rd(A);fe(Ve)}),On=Re(!1),ne=Si([Rn,On],([A,fe])=>fe?N.filter(Ve=>!Ve.hideOnMobile):N.filter(Ve=>!Ve.hideOnDesktopGridTypes?.includes(A))),In=Si([On,ke],([A,fe],Ve)=>{Ve(A&&fe)}),Ho=()=>{ve.next(po.LIVE),H({message:"switch to active live"}),E.seekTime(0),E.info.playbackState$.getValue()!==Tl.PLAYING&&bt.actions.internal.togglePlay()},pl=()=>Q.skip(),_l=(A=!0)=>{Qn(bt),H({message:`switch from ads to video, callPlay: ${A}`}),re.set("video"),A&&E.play()},hl=()=>{Qn(bt),H({message:"switch from video to ads"}),bt.actions.internal.pause(),mt(),re.set("ads")},_o=A=>{Qn(bt);let fe=A?"waitingLive":"thumb";re.set(fe)},ho=A=>{Qn(bt);let fe=A?"waitingRecord":"thumb";re.set(fe)},Zn=()=>(Qn(bt),Jc(E,Be,bt)),no=()=>(Qn(bt),xc(E,Be,bt)),zo=()=>ze,Uo=()=>{H({message:"toggle chromecast"}),E.toggleChromecast()},oo=A=>{Qn(bt);let fe=!A;if(xe(bt.playerPhase)==="ads"){H({message:`pause ads, internalCall: ${fe}`}),Q.pause();return}H({message:`pause video, internalCall: ${fe}`}),fe&&s?.onPause?.(),E.pause()},Ko=A=>{Qn(bt);let fe=!A;if(xe(bt.playerPhase)==="ads"){H({message:`play ads, internalCall: ${fe}`}),Q.play();return}H({message:`play video, internalCall: ${fe}`}),fe&&s?.onPlay?.(),E.play()},go=(A,fe)=>{Qn(bt),H({message:`first start, show ads: ${A}, internalCall: ${!fe}`}),A?re.set("ads"):(re.set("video"),fe?E.play():bt.actions.internal.togglePlay())},Xn=()=>(H({message:"getting time codes"}),f),bo=()=>{let A=Xn();if(!A||[0,1].includes(A.length))return;let fe=E.info.position$.getValue();return A.find(Ve=>Ve.time>fe)},jo=A=>{let fe=A;fe||(fe=bo()),fe&&(H({message:"seek to next episode"}),$i(fe.time,po.EPISODE,!0))},vo=()=>{let A=Xn();if(!A||[0,1].includes(A.length))return;let fe=E.info.position$.getValue(),Ve=A.findIndex(ct=>ct.time>fe),Ze=Ve===-1?A.length-2:Ve-2;if(!(Ze<0))return A[Ze]},Y=A=>{let fe=A;fe||(fe=vo()),fe&&(H({message:"seek to prev episode"}),$i(fe.time,po.EPISODE,!0))},Rt=()=>(H({message:"getting preview thumbs data"}),p),Bn=async()=>{ee?.isActive()?await ee?.remove():await ee?.request()},Fn=(A=-90)=>{Ke.update(fe=>fe+A)},Jn=Re([]);T?.subscribe(A=>{let fe=[];for(let Ve=0;Ve<A.length;Ve++){let{range:[Ze,ct],subjects:di}=A[Ve];Ve===0&&Ze!==0&&fe.push({time:0,text:"",interactive:!1,completed:!0}),fe.push({time:Ze/1e3,text:"",interactive:!0,completed:!di.length}),ct!==1/0&&fe.push({time:ct/1e3,text:"",interactive:!1,completed:!0})}Jn.set(fe)});let yo=Re(!1);b?.subscribe(A=>{A&&xe(an)&&un()});let lo=A=>{if(!v)return A;let fe=xe(Jn),Ve=xe(ai),ct=xe(Ot)/Ve,di=fe.find(qi=>qi.interactive&&!qi.completed&&qi.time>ct);return typeof di?.time=="number"?Math.min(A,di.time-.05):A},ko=()=>{bt.ui.episodes.panelOpened$.set(!1)},wo=()=>{clearTimeout(gt),clearTimeout(ie),St.unsubscribe(),Qe.unsubscribe(),E.destroy(),Q.destroy(),se?.destroy(),G?.destroy(),it.unsubscribe(),ht?.disconnect(),ht=null},bt={interfaceLanguage$:Ge,isCyrillicRelatedInterface$:nt,initVideo:De,videoId:t,isClip:n,playerPhase:Ue,vsid:qe,state:{positionExact$:pt,positionWithScrubbing$:ki,duration$:ai,playbackState$:Qt,isPlaying$:zi,isLoaderVisible:Hi,bufferedProgress$:Bi,isLive$:qt,canChangePlaybackSpeed$:Kt,isActiveLive$:Mt,isOldestAvailableLive$:Ui,isRewindableLive$:Ei,isEnded$:Ut,muted$:Jt,volume$:tn,trafficSavingEnabled$:Ii,autoQualityLimitingAvailable$:cn,availableVideoStreams$:ji,availableAudioStreams$:Wt,videoStream$:ui,audioStream$:ci,currentQuality$:Wi,isAutoQualityEnabled$:Zt,availableQualities$:fn,currentPlaybackRate$:on,availablePlaybackRates$:Gi,currentSubtitle$:Dt,availableSubtitlesList$:Vi,currentSubtitleCaptions$:ln,isAutoSubtitleCaptionVisible$:Ri,chromecastState$:li,chromecastDeviceName$:Ti,chromecastConnected$:Ki,currentFormat$:xt,throughputEstimation$:_i,videoBitrate$:hi,videoSize$:gi,errorLog$:Je,crashed$:ke,isAudioAvailable$:si,isAudioDisabled:!!r,canDownload:x.features.download&&!!a,availableSources$:$e,hasMpegSources$:ti,isInteractive:v,showInteractiveGraph:x.features.interactiveGraph,showSeekToInteractive:x.features.seekToInteractive,showPlayPrevChapter:x.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:x.features.interactiveTimeIndicator&&!!xe(Jn).length,interactiveEpisodes$:Jn,isInteractiveTime$:b?vt(b):Re(!1),graphIsOpened$:Re(!1),isInteractiveExpectation$:yo,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:Z,looped$:sn,isFirstBytes$:Re(!1)},ui:{controlsVisible:Re(!1),touched:Re(!1),controls:{prevButton:Re(void 0),playButton:Re(void 0),replayButton:Re(void 0),nextButton:Re(void 0),playPrevChapterButton:Re(void 0),seekToInteractiveButton:Re(void 0),interactiveGraphButton:Re(void 0),liveButton:Re(void 0),time:Re(void 0),episodes:Re(void 0),volume:Re(void 0),subtitles:Re(void 0),settings:Re(void 0),context:Re(void 0),chromecast:Re(void 0),pip:Re(void 0),fullscreen:Re(void 0),vkLogo:Re(void 0),interactiveTimeIndicator:Re(void 0),additionalButtons:N.length?N.reduce(A=>[...A,Re(void 0)],[]):[],disabledControls$:me},modals:{hotKeyMap:{show:Re(!1),data:Re({title:"",closeBtnText:"",groups:[]})}},isFullscreen:ye,rotateAlpha:Ke,isAutoplay:Re(!1),debugPanelVisible:Re(!1),episodes:{panelOpened$:Re(!1),openedByKeyboard$:Re(!1)},contextMenu:{visible$:Re(!1),btnRef$:Re(void 0),openedByBtnKeyboard$:Re(!1),openedByHotKey$:Re(!1),lastActiveElem$:Re(void 0),showContextMenuBtn$:Re(!1),position$:Re({top:0,left:0})},playerSize:Ln,isMobile:On,mobileNotReportControlHidden$:In,mobileUnmuteButtonExpanded:Re(!1),mobileUnmuteButtonVisible:Re(!1),icon3DVideoVisible:Re(!1),settingsMenuVisible:Re(!1),settingsMenuOpenedByKeyboard:Re(!1),scrubbingInProgress:an,is3DVideo:Re(!1),isPictureInPictureActive$:It,pictureInPictureType$:Tn(we),clientInfo$:Tn(Xe),currentGridType$:Rn,additionalButtons$:ne,interactiveHideMobileControls:Re(!1),overlayContainer$:Re(void 0),startedByKeyboard$:Re(!1)},ads:{position:Re(0),duration:Re(0),playbackState:Re("inactive"),canSkip:Re(!1),secondsToWatchBeforeSkip:Re(0),postrollPassed:Re(!1)},webApi:{pictureInPictureApi:ee,annotationsApi:L},actions:{internal:{preload:Ht,firstStart:A=>go(A,!1),pause:()=>oo(!1),togglePlay:Di,toggleMuted:Qi,toggleSettingsMenu:Zi,openSettingsMenu:Yi,closeSettingsMenu:rn,setVolume:Xi,setVideoStream:fi,setAudioStream:$t,setQuality:pn,setTrafficSavingEnabled:A=>kn(A),setPlaybackRate:Ni,incrementPlaybackRate:_n,decrementPlaybackRate:mn,setSubtitle:ii,toggleSubtitle:xi,togglePictureInPicture:Bn,startScrubbing:Sn,progressScrubbing:en,completeScrubbing:dt,toggleChromecast:Uo,switchToActiveLive:Ho,switchFromAdsToVideo:_l,switchFromVideoToAds:hl,skipAd:pl,setWaitingLive:_o,setWaitingRecord:ho,getDebugTextData:Zn,getDebugPanelData:no,getVideoElement:zo,seekTime:(A,fe,Ve)=>$i(A,fe,Ve),clearDelayedBufferingCheckTimeout:vi,seekEpisodeStartTime:wn,seekToPercent:hn,getNextEpisode:bo,seekToNextEpisode:jo,getPrevEpisode:vo,seekToPrevEpisode:Y,startLogging:Nt,stopLogging:Vt,startCameraManualRotation:Ct,stopCameraManualRotation:oi,moveCameraFocusPX:lt,holdCamera:kt,releaseCamera:be,getVideoEpisodes:Xn,getPreviewThumbsData:Rt,downloadVideo:He,addLanguage:Cs,setLanguage:Ne,nextMovie:Ye,videoRotate:Fn,correctSeekTimeToInteractive:lo,replayInteractive:y,setLooped:dn},external:{firstStart:A=>go(A,!0),play:()=>Ko(!0),pause:()=>oo(!0),seekTime:A=>Gt(A),seekEpisodeStartTime:A=>Vn(A),setPlaybackRate:A=>Cn(A),setAutoQualityLimits:A=>Mn(A),setMuted:A=>Ji(A,!0),setVolume:A=>Xi(A,A,!0),returnFocusToEpisodes:ko}},callbacks:s,setUiCallbacks:A=>{We={...A}},getAdmanWrapper:()=>Q,getLogger:()=>X,destroy:wo};return bt};var Wr=(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 Gr=async(i,e,t)=>{await Un(),e&&t&&(t.focus(),i.set(!1))};function J4(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function x4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var wu=class extends K{constructor(e){super(),W(this,e,x4,J4,U,{})}},cm=wu;function $4(i){let e,t;return e=new cm({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function e3(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:[$4]},$$scope:{ctx:i}};return i[2]!==void 0&&(l.ref=i[2]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&8&&(s.className=r[3]?"opened":""),a&1&&(s.disabled=r[0]),a&2&&(s.ariaLabel=r[1]),a&8&&(s.ariaExpanded=r[3]),a&16384&&(s.$$scope={dirty:a,ctx:r}),!t&&a&4&&(t=!0,s.ref=r[2],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function t3(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:l=""}=e,r=tt(),a=r.ui.contextMenu.visible$;O(i,a,T=>t(3,n=T));let s=r.ui.contextMenu.openedByBtnKeyboard$,u=r.ui.contextMenu.showContextMenuBtn$,f=r.ui.contextMenu.position$,p=r.ui.contextMenu.btnRef$,h,k=T=>{let b=il(T),y=Uf(h);f.set(y),s.set(b),a.set(!n)},g=()=>{u.set(!0)},w=()=>{u.set(!1)};function v(T){h=T,t(2,h)}return i.$$set=T=>{"disabled"in T&&t(0,o=T.disabled),"ariaLabel"in T&&t(1,l=T.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&4)e:h&&p.set(h)},[o,l,h,n,a,k,g,w,v]}var Cu=class extends K{constructor(e){super(),W(this,e,t3,e3,U,{disabled:0,ariaLabel:1})}},fm=Cu;function i3(i){Se(i,"svelte-17imlp9",".interactive-episode-icon-animated.svelte-17imlp9{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.invisible.svelte-17imlp9{opacity:0;visibility:hidden}.fullscreen.svelte-17imlp9:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.svelte-17imlp9{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.svelte-17imlp9{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.svelte-17imlp9{top:40px;right:16px}}@keyframes svelte-17imlp9-pulse{0%{transform:scale(1);border-width:1px;opacity:0}10%{opacity:1}50%{transform:scale(1.5);border-width:1px;opacity:0.5}100%{transform:scale(1.5);border-width:0.5px;opacity:0}}.pulse.svelte-17imlp9{display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);animation:1s svelte-17imlp9-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.svelte-17imlp9{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.svelte-17imlp9{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.svelte-17imlp9{display:none}")}function n3(i){let e,t;return e=new Sr({props:{completed:!0}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p:_e,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function o3(i){let e,t,n,o,l,r,a,s,u,f;function p(k){i[22](k)}let h={tooltipContent:j("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[n3]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new At({props:h}),pe.push(()=>Fe(t,"ref",p)),t.$on("click",i[14]),{c(){e=P("div"),R(t.$$.fragment),o=D(),l=P("div"),r=D(),a=P("div"),c(l,"class","ref-block svelte-17imlp9"),q(l,"hidden",i[1]),c(a,"class","pulse svelte-17imlp9"),q(a,"paused",i[4]),c(e,"class","interactive-episode-icon-animated svelte-17imlp9"),q(e,"mobile",i[2]),q(e,"fullscreen",i[6]),q(e,"invisible",i[1])},m(k,g){S(k,e,g),M(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=[de(e,"mousemove",st(i[21])),de(e,"mouseleave",i[15])],u=!0)},p(k,g){let w={};g[0]&32&&(w.tooltipActive=k[5]),g[1]&1&&(w.$$scope={dirty:g,ctx:k}),!n&&g[0]&1&&(n=!0,w.ref=k[0],Oe(()=>n=!1)),t.$set(w),(!s||g[0]&2)&&q(l,"hidden",k[1]),(!s||g[0]&16)&&q(a,"paused",k[4]),(!s||g[0]&4)&&q(e,"mobile",k[2]),(!s||g[0]&64)&&q(e,"fullscreen",k[6]),(!s||g[0]&2)&&q(e,"invisible",k[1])},i(k){s||(d(t.$$.fragment,k),s=!0)},o(k){_(t.$$.fragment,k),s=!1},d(k){k&&C(e),V(t),i[23](null),i[24](null),u=!1,et(f)}}}function l3(i,e,t){let n,o,l,r,a,s,{ref:u=void 0}=e,f,p=tt(),h=Dn(),{interactiveControlsOpacity$:k}=h;O(i,k,H=>t(18,o=H));let g=p.ui.isMobile;O(i,g,H=>t(2,a=H));let w=p.ui.isFullscreen;O(i,w,H=>t(6,s=H));let v=p.state.isInteractiveTime$;O(i,v,H=>t(19,l=H));let T=h.showInteractiveTimeIndicatorTooltip$;O(i,T,H=>t(17,n=H));let b=p.ui.controlsVisible;O(i,b,H=>t(20,r=H));let y=p.callbacks?.onInteractiveTimeIndicatorClick,I,Z,N,z=()=>{t(4,N=!0)},se=()=>{ae(),f?.addEventListener("animationiteration",z,{once:!0})},ae=()=>{t(4,N=!1),f?.removeEventListener("animationiteration",z)},F=H=>{T.set(H)},x,E=()=>{Z||(T.set(!0),y?.())};zn(()=>{T.clearTimeout(),ae()});let X=()=>{T.set(!1)};function Q(H){Pn.call(this,i,H)}function G(H){u=H,t(0,u)}function ee(H){pe[H?"unshift":"push"](()=>{u=H,t(0,u)})}function L(H){pe[H?"unshift":"push"](()=>{f=H,t(3,f)})}return i.$$set=H=>{"ref"in H&&t(0,u=H.ref)},i.$$.update=()=>{if(i.$$.dirty[0]&1048580)e:t(16,I=!a&&r);if(i.$$.dirty[0]&851968)e:t(1,Z=!l||!!o||I);if(i.$$.dirty[0]&2)e:t(4,N=Z);if(i.$$.dirty[0]&131074)e:t(5,x=n&&!Z);if(i.$$.dirty[0]&131072)e:n?se():ae()},[u,Z,a,f,N,x,s,k,g,w,v,T,b,F,E,X,I,n,o,l,r,Q,G,ee,L]}var Su=class extends K{constructor(e){super(),W(this,e,l3,o3,U,{ref:0},i3,[-1,-1])}},Qr=Su;function a3(i){Se(i,"svelte-st0uzk",".wrapper-bottom.svelte-st0uzk.svelte-st0uzk{pointer-events:none;position:absolute;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-st0uzk>.svelte-st0uzk{pointer-events:auto}.controls.svelte-st0uzk.svelte-st0uzk{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-st0uzk.svelte-st0uzk,.controls-right.svelte-st0uzk.svelte-st0uzk{display:flex;align-content:center}.controls-left.svelte-st0uzk.svelte-st0uzk{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-st0uzk > *:not(:first-child),.controls-right.svelte-st0uzk > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-st0uzk.svelte-st0uzk{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-st0uzk.svelte-st0uzk{transition:none}.settings-menu.svelte-st0uzk.svelte-st0uzk{bottom:57px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}")}function mm(i,e,t){let n=i.slice();return n[209]=e[t].iconUrl,n[210]=e[t].ariaLabel,n[211]=e[t].testId,n[212]=e[t].onClick,n[213]=e[t].tooltip,n}function pm(i){let e,t,n;function o(r){i[173](r)}let l={disabled:!i[9],tooltipContent:j("tooltip_previous"),$$slots:{default:[u3]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(l.ref=i[23].prevButton),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&512&&(s.disabled=!r[9]),a[0]&4608|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].prevButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function u3(i){let e,t;return e=new cl({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&4096&&(l.click=n[12]),o[0]&512&&(l.disabled=!n[9]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function _m(i){let e,t,n;function o(r){i[174](r)}let l={disabled:i[74],tooltipContent:j("tooltip_restart"),$$slots:{default:[c3]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(l.ref=i[23].replayButton),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[2]&4096&&(s.disabled=r[74]),a[2]&4096|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].replayButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function c3(i){let e,t;return e=new Pl({props:{click:i[128],disabled:i[74]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){V(e,n)}}}function hm(i){let e,t,n;function o(r){i[176](r)}let l={tooltipContent:i[47],disabled:i[75],$$slots:{default:[f3]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(l.ref=i[23].playButton),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].playButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function f3(i){let e,t,n;function o(r){i[175](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 Il({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&8&&(s.isPlaying=r[34]),a[2]&8192&&(s.disabled=r[75]),!t&&a[0]&67108864&&(t=!0,s.ref=r[26],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function gm(i){let e,t,n;function o(r){i[177](r)}let l={disabled:!i[8],tooltipContent:j("tooltip_next"),$$slots:{default:[d3]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(l.ref=i[23].nextButton),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&256&&(s.disabled=!r[8]),a[0]&2304|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].nextButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function d3(i){let e,t;return e=new cl({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&2048&&(l.click=n[11]),o[0]&256&&(l.disabled=!n[8]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function m3(i){let e,t,n,o,l=i[121]&&p3(i),r=i[120]&&h3(i),a=i[119]&&b3(i);return{c(){l&&l.c(),e=D(),r&&r.c(),t=D(),a&&a.c(),n=at()},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&&(C(e),C(t),C(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function p3(i){let e,t,n;function o(r){i[178](r)}let l={disabled:i[73],tooltipContent:j("tooltip_interactive_go_back"),disabledTooltipContent:j(i[124]),$$slots:{default:[_3]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(l.ref=i[23].playPrevChapterButton),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[2]&2048&&(s.disabled=r[73]),a[0]&131072|a[2]&2048|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].playPrevChapterButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function _3(i){let e,t;return e=new Or({props:{disabled:i[73],click:i[17]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){V(e,n)}}}function h3(i){let e,t,n;function o(r){i[179](r)}let l={disabled:i[76],tooltipContent:j("tooltip_interactive_seek"),disabledTooltipContent:j(i[78]),$$slots:{default:[g3]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(l.ref=i[23].seekToInteractiveButton),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[2]&16384&&(s.disabled=r[76]),a[2]&65536&&(s.disabledTooltipContent=j(r[78])),a[0]&32768|a[2]&16384|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].seekToInteractiveButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function g3(i){let e,t;return e=new Dr({props:{disabled:i[76],click:i[15]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[2]&16384&&(l.disabled=n[76]),o[0]&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){V(e,n)}}}function b3(i){let e,t,n;function o(r){i[180](r)}let l={tooltipContent:i[48],disabled:i[77],$$slots:{default:[v3]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(l.ref=i[23].interactiveGraphButton),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].interactiveGraphButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function v3(i){let e,t;return e=new Nr({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&65536&&(l.click=n[16]),o[1]&1&&(l.graphIsOpened=n[31]),o[2]&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){V(e,n)}}}function bm(i){let e,t,n;function o(r){i[181](r)}let l={tooltipContent:i[50],$$slots:{default:[y3]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(l.ref=i[23].liveButton),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&524288&&(s.tooltipContent=r[50]),a[0]&2097152|a[1]&524288|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].liveButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function y3(i){let e,t;return e=new Mr({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.isActiveLive=n[21]),o[1]&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){V(e,n)}}}function vm(i){let e,t,n;function o(r){i[182](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 wr({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function ym(i){let e,t;return e=new Br({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){V(e,n)}}}function k3(i){let e,t,n=i[20]&&ym(i);return{c(){n&&n.c(),e=at()},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&&(ue(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&C(e),n&&n.d(o)}}}function w3(i){let e,t;return e=new Fr({props:{iconUrl:i[209],ariaLabel:i[210]??i[213],testId:i[211],onClick:i[212]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&268435456&&(l.iconUrl=n[209]),o[0]&268435456&&(l.ariaLabel=n[210]??n[213]),o[0]&268435456&&(l.testId=n[211]),o[0]&268435456&&(l.onClick=n[212]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function km(i){let e,t;return e=new At({props:{tooltipContent:i[213],width:40,$$slots:{default:[w3]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&268435456&&(l.tooltipContent=n[213]),o[0]&268435456|o[6]&1073741824&&(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){V(e,n)}}}function wm(i){let e,t,n;function o(r){i[185](r)}let l={disabled:!i[6],tooltipContent:i[51],disabledTooltipContent:"",$$slots:{default:[C3]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(l.ref=i[23].vkLogo),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&64&&(s.disabled=!r[6]),a[1]&1048576&&(s.tooltipContent=r[51]),a[0]&192|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].vkLogo,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function C3(i){let e,t;return e=new Er({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&128&&(l.targetUrl=n[7]),o[0]&64&&(l.logoClickable=n[6]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function S3(i){let e,t;return e=new Dd({props:{click:i[127]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p:_e,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Cm(i){let e,t,n;function o(r){i[187](r)}let l={tooltipContent:i[52],$$slots:{default:[I3]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(l.ref=i[23].subtitles),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&2097152&&(s.tooltipContent=r[52]),a[0]&262144|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].subtitles,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function I3(i){let e,t;return e=new yd({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&262144&&(l.isSubtitlesEnabled=n[18]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Sm(i){let e,t,n,o;function l(a){i[188](a)}let r={supportLink:i[10],playerControlsHeight:i[46]?.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(r.ref=i[24]),t=new kr({props:r}),pe.push(()=>Fe(t,"ref",l)),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","settings-menu svelte-st0uzk")},m(a,s){S(a,e,s),M(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],Oe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&C(e),V(t)}}}function Im(i){let e,t,n;function o(r){i[190](r)}let l={tooltipContent:i[27]?void 0:j("tooltip_settings_off"),$$slots:{default:[P3]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(l.ref=i[23].settings),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&134217728&&(s.tooltipContent=r[27]?void 0:j("tooltip_settings_off")),a[0]&33554432|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].settings,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function P3(i){let e,t,n;function o(r){i[189](r)}let l={};return i[25]!==void 0&&(l.ref=i[25]),e=new Cl({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&33554432&&(t=!0,s.ref=r[25],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function T3(i){let e,t,n;function o(r){i[191](r)}let l={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[E3]},$$scope:{ctx:i}};return i[23].context!==void 0&&(l.ref=i[23].context),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&1024&&(s.className=r[41]?"":"out-of-view"),a[1]&262144&&(s.tooltipContent=r[49]),a[1]&262144|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].context,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function E3(i){let e,t;return e=new fm({props:{ariaLabel:i[49]}}),{c(){R(e.$$.fragment)},m(n,o){M(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){V(e,n)}}}function Pm(i){let e,t,n;function o(r){i[192](r)}let l={tooltipContent:i[53],$$slots:{default:[A3]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(l.ref=i[23].fullscreen),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&4194304&&(s.tooltipContent=r[53]),a[0]&1073750016|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].fullscreen,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function A3(i){let e,t;return e=new Pr({props:{click:i[13],isFullscreen:i[30]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&8192&&(l.click=n[13]),o[0]&1073741824&&(l.isFullscreen=n[30]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Tm(i){let e,t,n;function o(r){i[193](r)}let l={tooltipContent:i[54],$$slots:{default:[M3]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(l.ref=i[23].chromecast),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&8388608&&(s.tooltipContent=r[54]),a[0]&536870912|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].chromecast,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function M3(i){let e,t;return e=new Ar({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&536870912&&(l.state=n[29]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function V3(i){let e,t,n;function o(r){i[196](r)}let l={};return i[23].interactiveTimeIndicator!==void 0&&(l.ref=i[23].interactiveTimeIndicator),e=new Qr({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&8388608&&(t=!0,s.ref=r[23].interactiveTimeIndicator,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function L3(i){let e,t,n,o,l,r,a,s,u,f,p,h,k,g,w,v,T,b,y,I,Z,N,z,se,ae,F,x,E,X,Q;t=new Rr({props:{isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]}});let G=i[38]&&pm(i),ee=i[35]&&_m(i),L=i[36]&&hm(i),H=i[37]&&gm(i),Be=i[117]&&m3(i),ze=!i[4]&&i[33]&&bm(i),We=i[19]&&vm(i);function Xe(me){i[183](me)}let qe={className:"w-max",disabled:!i[20],tooltipContent:j("tooltip_episodes"),$$slots:{default:[k3]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(qe.ref=i[23].episodes),k=new At({props:qe}),pe.push(()=>Fe(k,"ref",Xe));let ye=wt(i[28]),J=[];for(let me=0;me<ye.length;me+=1)J[me]=km(mm(i,ye,me));let we=me=>_(J[me],1,1,()=>{J[me]=null}),Ke=i[43]&&!i[4]&&wm(i);function Je(me){i[186](me)}let it={$$slots:{default:[S3]},$$scope:{ctx:i}};i[23].volume!==void 0&&(it.ref=i[23].volume),I=new At({props:it}),pe.push(()=>Fe(I,"ref",Je));let ke=i[40]&&Cm(i),Ne=!i[83]&&!i[4]&&Sm(i),Ge=i[42]&&!i[4]&&Im(i),nt=i[84].features.contextMenuButton&&T3(i),Ce=i[44]&&Pm(i),re=i[39]&&Tm(i),Ue=i[122]&&V3(i);return{c(){e=P("div"),R(t.$$.fragment),n=D(),o=P("div"),l=P("div"),G&&G.c(),r=D(),ee&&ee.c(),a=D(),L&&L.c(),s=D(),H&&H.c(),u=D(),Be&&Be.c(),f=D(),ze&&ze.c(),p=D(),We&&We.c(),h=D(),R(k.$$.fragment),v=D(),T=P("div");for(let me=0;me<J.length;me+=1)J[me].c();b=D(),Ke&&Ke.c(),y=D(),R(I.$$.fragment),N=D(),ke&&ke.c(),z=D(),Ne&&Ne.c(),se=D(),Ge&&Ge.c(),ae=D(),nt&&nt.c(),F=D(),Ce&&Ce.c(),x=D(),re&&re.c(),E=D(),Ue&&Ue.c(),X=at(),c(l,"class","controls-left svelte-st0uzk"),Kn(()=>i[184].call(l)),c(T,"class","controls-right svelte-st0uzk"),c(o,"class","controls svelte-st0uzk"),c(e,"class","wrapper-bottom svelte-st0uzk"),q(e,"hidden",i[1]),q(e,"controls-hidden",!i[3]),q(e,"no-smooth",i[2])},m(me,le){S(me,e,le),M(t,e,null),m(e,n),m(e,o),m(o,l),G&&G.m(l,null),m(l,r),ee&&ee.m(l,null),m(l,a),L&&L.m(l,null),m(l,s),H&&H.m(l,null),m(l,u),Be&&Be.m(l,null),m(l,f),ze&&ze.m(l,null),m(l,p),We&&We.m(l,null),m(l,h),M(k,l,null),w=Wo(l,i[184].bind(l)),m(o,v),m(o,T);for(let De=0;De<J.length;De+=1)J[De]&&J[De].m(T,null);m(T,b),Ke&&Ke.m(T,null),m(T,y),M(I,T,null),m(T,N),ke&&ke.m(T,null),m(T,z),Ne&&Ne.m(T,null),m(T,se),Ge&&Ge.m(T,null),m(T,ae),nt&&nt.m(T,null),m(T,F),Ce&&Ce.m(T,null),m(T,x),re&&re.m(T,null),i[194](o),i[195](e),S(me,E,le),Ue&&Ue.m(me,le),S(me,X,le),Q=!0},p(me,le){let De={};le[1]&16384&&(De.isHidden=!me[45]),le[0]&16&&(De.isAds=me[4]),le[0]&32&&(De.canRewindLive=me[5]),le[1]&2&&(De.isRewindableLive=me[32]),t.$set(De),me[38]?G?(G.p(me,le),le[1]&128&&d(G,1)):(G=pm(me),G.c(),d(G,1),G.m(l,r)):G&&(ue(),_(G,1,1,()=>{G=null}),ce()),me[35]?ee?(ee.p(me,le),le[1]&16&&d(ee,1)):(ee=_m(me),ee.c(),d(ee,1),ee.m(l,a)):ee&&(ue(),_(ee,1,1,()=>{ee=null}),ce()),me[36]?L?(L.p(me,le),le[1]&32&&d(L,1)):(L=hm(me),L.c(),d(L,1),L.m(l,s)):L&&(ue(),_(L,1,1,()=>{L=null}),ce()),me[37]?H?(H.p(me,le),le[1]&64&&d(H,1)):(H=gm(me),H.c(),d(H,1),H.m(l,u)):H&&(ue(),_(H,1,1,()=>{H=null}),ce()),me[117]&&Be.p(me,le),!me[4]&&me[33]?ze?(ze.p(me,le),le[0]&16|le[1]&4&&d(ze,1)):(ze=bm(me),ze.c(),d(ze,1),ze.m(l,p)):ze&&(ue(),_(ze,1,1,()=>{ze=null}),ce()),me[19]?We?(We.p(me,le),le[0]&524288&&d(We,1)):(We=vm(me),We.c(),d(We,1),We.m(l,h)):We&&(ue(),_(We,1,1,()=>{We=null}),ce());let Me={};if(le[0]&1048576&&(Me.disabled=!me[20]),le[0]&1048576|le[2]&1310720|le[6]&1073741824&&(Me.$$scope={dirty:le,ctx:me}),!g&&le[0]&8388608&&(g=!0,Me.ref=me[23].episodes,Oe(()=>g=!1)),k.$set(Me),le[0]&268435456){ye=wt(me[28]);let rt;for(rt=0;rt<ye.length;rt+=1){let ve=mm(me,ye,rt);J[rt]?(J[rt].p(ve,le),d(J[rt],1)):(J[rt]=km(ve),J[rt].c(),d(J[rt],1),J[rt].m(T,b))}for(ue(),rt=ye.length;rt<J.length;rt+=1)we(rt);ce()}me[43]&&!me[4]?Ke?(Ke.p(me,le),le[0]&16|le[1]&4096&&d(Ke,1)):(Ke=wm(me),Ke.c(),d(Ke,1),Ke.m(T,y)):Ke&&(ue(),_(Ke,1,1,()=>{Ke=null}),ce());let Ye={};le[6]&1073741824&&(Ye.$$scope={dirty:le,ctx:me}),!Z&&le[0]&8388608&&(Z=!0,Ye.ref=me[23].volume,Oe(()=>Z=!1)),I.$set(Ye),me[40]?ke?(ke.p(me,le),le[1]&512&&d(ke,1)):(ke=Cm(me),ke.c(),d(ke,1),ke.m(T,z)):ke&&(ue(),_(ke,1,1,()=>{ke=null}),ce()),!me[83]&&!me[4]?Ne?(Ne.p(me,le),le[0]&16|le[2]&2097152&&d(Ne,1)):(Ne=Sm(me),Ne.c(),d(Ne,1),Ne.m(T,se)):Ne&&(ue(),_(Ne,1,1,()=>{Ne=null}),ce()),me[42]&&!me[4]?Ge?(Ge.p(me,le),le[0]&16|le[1]&2048&&d(Ge,1)):(Ge=Im(me),Ge.c(),d(Ge,1),Ge.m(T,ae)):Ge&&(ue(),_(Ge,1,1,()=>{Ge=null}),ce()),me[84].features.contextMenuButton&&nt.p(me,le),me[44]?Ce?(Ce.p(me,le),le[1]&8192&&d(Ce,1)):(Ce=Pm(me),Ce.c(),d(Ce,1),Ce.m(T,x)):Ce&&(ue(),_(Ce,1,1,()=>{Ce=null}),ce()),me[39]?re?(re.p(me,le),le[1]&256&&d(re,1)):(re=Tm(me),re.c(),d(re,1),re.m(T,null)):re&&(ue(),_(re,1,1,()=>{re=null}),ce()),(!Q||le[0]&2)&&q(e,"hidden",me[1]),(!Q||le[0]&8)&&q(e,"controls-hidden",!me[3]),(!Q||le[0]&4)&&q(e,"no-smooth",me[2]),me[122]&&Ue.p(me,le)},i(me){if(!Q){d(t.$$.fragment,me),d(G),d(ee),d(L),d(H),d(Be),d(ze),d(We),d(k.$$.fragment,me);for(let le=0;le<ye.length;le+=1)d(J[le]);d(Ke),d(I.$$.fragment,me),d(ke),d(Ne),d(Ge),d(nt),d(Ce),d(re),d(Ue),Q=!0}},o(me){_(t.$$.fragment,me),_(G),_(ee),_(L),_(H),_(Be),_(ze),_(We),_(k.$$.fragment,me),J=J.filter(Boolean);for(let le=0;le<J.length;le+=1)_(J[le]);_(Ke),_(I.$$.fragment,me),_(ke),_(Ne),_(Ge),_(nt),_(Ce),_(re),_(Ue),Q=!1},d(me){me&&(C(e),C(E),C(X)),V(t),G&&G.d(),ee&&ee.d(),L&&L.d(),H&&H.d(),Be&&Be.d(),ze&&ze.d(),We&&We.d(),V(k),w(),Ci(J,me),Ke&&Ke.d(),V(I),ke&&ke.d(),Ne&&Ne.d(),Ge&&Ge.d(),nt&&nt.d(),Ce&&Ce.d(),re&&re.d(),i[194](null),i[195](null),Ue&&Ue.d(me)}}}function R3(i,e,t){let n,o,l,r,a,s,u,f,p,h,k,g,w,v,T,b,y,I,Z,N,z,se,ae,F,x,E,X,Q,G,ee,L,H,Be=_e,ze=()=>(Be(),Be=zt(ae,$=>t(144,H=$)),ae),We,Xe=_e,qe=()=>(Xe(),Xe=zt(se,$=>t(145,We=$)),se),ye,J=_e,we=()=>(J(),J=zt(z,$=>t(146,ye=$)),z),Ke,Je=_e,it=()=>(Je(),Je=zt(N,$=>t(147,Ke=$)),N),ke,Ne=_e,Ge=()=>(Ne(),Ne=zt(Z,$=>t(148,ke=$)),Z),nt,Ce=_e,re=()=>(Ce(),Ce=zt(I,$=>t(149,nt=$)),I),Ue,me=_e,le=()=>(me(),me=zt(y,$=>t(150,Ue=$)),y),De,Me=_e,Ye=()=>(Me(),Me=zt(b,$=>t(151,De=$)),b),rt,ve=_e,ft=()=>(ve(),ve=zt(T,$=>t(152,rt=$)),T),ht,ut=_e,mt=()=>(ut(),ut=zt(v,$=>t(153,ht=$)),v),St,Qe=_e,Nt=()=>(Qe(),Qe=zt(w,$=>t(154,St=$)),w),Vt,Ct=_e,oi=()=>(Ct(),Ct=zt(g,$=>t(155,Vt=$)),g),lt,kt=_e,be=()=>(kt(),kt=zt(k,$=>t(156,lt=$)),k),pt,It=_e,Qt=()=>(It(),It=zt(h,$=>t(157,pt=$)),h),yt,Ut=_e,qt=()=>(Ut(),Ut=zt(p,$=>t(158,yt=$)),p),Kt,Fi=_e,tn=()=>(Fi(),Fi=zt(f,$=>t(159,Kt=$)),f),Jt,Ii=_e,cn=()=>(Ii(),Ii=zt(u,$=>t(160,Jt=$)),u),Pi,nn,li,Ti,xt,_i,hi,gi,ri,si,jt,bi,Hi,vi,ai,zi,Mt,Ui,Ot,Ei,Ki,ji,Wt;i.$$.on_destroy.push(()=>Be()),i.$$.on_destroy.push(()=>Xe()),i.$$.on_destroy.push(()=>J()),i.$$.on_destroy.push(()=>Je()),i.$$.on_destroy.push(()=>Ne()),i.$$.on_destroy.push(()=>Ce()),i.$$.on_destroy.push(()=>me()),i.$$.on_destroy.push(()=>Me()),i.$$.on_destroy.push(()=>ve()),i.$$.on_destroy.push(()=>ut()),i.$$.on_destroy.push(()=>Qe()),i.$$.on_destroy.push(()=>Ct()),i.$$.on_destroy.push(()=>kt()),i.$$.on_destroy.push(()=>It()),i.$$.on_destroy.push(()=>Ut()),i.$$.on_destroy.push(()=>Fi()),i.$$.on_destroy.push(()=>Ii());let{bottomHidden:ui}=e,{bottomNoSmooth:ci}=e,{showControls:fi}=e,{controlsElementRef:$t=void 0}=e,{isAds:Et=!1}=e,{canRewindLive:yi}=e,{logoClickable:Ai}=e,{logoHidden:Yt}=e,{logoTargetUrl:Zt=""}=e,{showNextPrevButtons:ei}=e,{nextButtonActive:Wi}=e,{prevButtonActive:fn}=e,{isOneVideoPlaylist:on=!1}=e,{supportLink:Gi}=e,{customFullscreenSupported:Mi=!0}=e,{playNextVideo:Ft}=e,{playPrevVideo:Lt}=e,{repeatPlaylist:Dt}=e,{toggleFullscreen:Vi}=e,{returnFocus:Li}=e,{seekToInteractive:ln}=e,{toggleGraph:Ri}=e,{playPrevChapter:Bi}=e,$e=tt(),ti=Dn(),Xt=Bt(),He=$e.actions.internal.toggleMuted,Qi=$e.actions.internal.togglePlay,rn=$e.actions.internal.pause,Yi=$e.actions.internal.toggleSubtitle,Zi=$e.callbacks?.onAudioDoesNotExistHint,Xi=$e.callbacks?.onAudioDisabledHint,Ji=$e.state.duration$;O(i,Ji,$=>t(82,ji=$));let sn=$e.state.positionWithScrubbing$;O(i,sn,$=>t(80,Ei=$));let dn=$e.state.playbackState$;O(i,dn,$=>t(161,li=$));let Ht=$e.state.chromecastConnected$;O(i,Ht,$=>t(83,Wt=$));let Di=$e.state.isAudioAvailable$;O(i,Di,$=>t(197,F=$));let pn=$e.state.isAudioDisabled,kn=$e.state.isEnded$;O(i,kn,$=>t(169,vi=$));let Ni=$e.state.isLive$;O(i,Ni,$=>t(33,gi=$));let _n=$e.state.isActiveLive$;O(i,_n,$=>t(163,_i=$));let mn=$e.state.isRewindableLive$;O(i,mn,$=>t(32,hi=$));let ii=$e.ui.isPictureInPictureActive$;O(i,ii,$=>t(165,si=$));let xi=$e.ui.pictureInPictureType$;O(i,xi,$=>t(164,ri=$));let $i=$e.ui.settingsMenuVisible;O(i,$i,$=>t(27,X=$));let wn=$e.ui.settingsMenuOpenedByKeyboard;O(i,wn,$=>t(140,E=$));let hn=$e.ui.controls,Gt=$e.actions.internal.getVideoEpisodes(),Mn=$e.state.chromecastState$;O(i,Mn,$=>t(29,Pi=$));let Vn=$e.state.availableSubtitlesList$;O(i,Vn,$=>t(168,Hi=$));let Cn=$e.state.currentSubtitle$;O(i,Cn,$=>t(170,ai=$));let gn=hn.disabledControls$;O(i,gn,$=>t(172,Mt=$));let an=$e.ui.contextMenu.visible$;O(i,an,$=>t(162,Ti=$));let Sn=$e.ui.contextMenu.showContextMenuBtn$;O(i,Sn,$=>t(166,jt=$));let en=$e.ui.contextMenu.openedByBtnKeyboard$;O(i,en,$=>t(167,bi=$));let ie=$e.ui.startedByKeyboard$;O(i,ie,$=>t(139,x=$));let gt=$e.ads.duration;O(i,gt,$=>t(81,Ki=$));let un=$e.ads.position;O(i,un,$=>t(79,Ot=$));let te=$e.ads.playbackState;O(i,te,$=>t(171,zi=$));let dt=$e.ui.isFullscreen;O(i,dt,$=>t(30,nn=$));let ki=$e.ui.playerSize;O(i,ki,$=>t(142,G=$));let Ln=$e.ui.currentGridType$;O(i,Ln,$=>t(143,ee=$));let Rn=$e.ui.additionalButtons$;O(i,Rn,$=>t(28,L=$));let On=$e.actions.internal.getVideoElement,ne=$e.actions.internal.replayInteractive,In=$e.state.isInteractive,Ho=$e.state.isInteractiveTime$;O(i,Ho,$=>t(141,Q=$));let pl=$e.state.showInteractiveGraph,_l=$e.state.showSeekToInteractive,hl=$e.state.showPlayPrevChapter,_o=$e.state.showInteractiveTimeIndicator,ho=$e.state.graphIsOpened$;O(i,ho,$=>t(31,xt=$));let Zn=$e.state.playPrevChapterDisabledTooltip,no=ti.seekToInteractiveDisabledTooltip$;O(i,no,$=>t(78,Ui=$));let zo=()=>$e.actions.internal.toggleChromecast(),Uo,oo,Ko,go,Xn,bo,jo,vo,Y,Rt,Bn,Fn,Jn,yo,lo,ko,wo,bt,A,fe,Ve,Ze="",ct=($,as)=>{if(!$){t(50,Ze=j("tooltip_live"));return}as===Iu.PAUSED&&t(50,Ze=j("tooltip_play"))},di,qi,ni,Hn,xn,ot={},bn,gl,ss,Cc,Fp=s3(Wr,260,{leading:!1}),Dl,Nl,ql;function Hp(){uo({isAudioDisabled:pn,audioDisabledHintCallback:Xi,isAudioAvailable:F,audioIsNotExistHintCallback:Zi})&&He()}let zp=In?ne:on?Qi:Dt;function Up($){i.$$.not_equal(ot.prevButton,$)&&(ot.prevButton=$,t(23,ot))}function Kp($){i.$$.not_equal(ot.replayButton,$)&&(ot.replayButton=$,t(23,ot))}function jp($){ql=$,t(26,ql)}function Wp($){i.$$.not_equal(ot.playButton,$)&&(ot.playButton=$,t(23,ot))}function Gp($){i.$$.not_equal(ot.nextButton,$)&&(ot.nextButton=$,t(23,ot))}function Qp($){i.$$.not_equal(ot.playPrevChapterButton,$)&&(ot.playPrevChapterButton=$,t(23,ot))}function Yp($){i.$$.not_equal(ot.seekToInteractiveButton,$)&&(ot.seekToInteractiveButton=$,t(23,ot))}function Zp($){i.$$.not_equal(ot.interactiveGraphButton,$)&&(ot.interactiveGraphButton=$,t(23,ot))}function Xp($){i.$$.not_equal(ot.liveButton,$)&&(ot.liveButton=$,t(23,ot))}function Jp($){i.$$.not_equal(ot.time,$)&&(ot.time=$,t(23,ot))}function xp($){i.$$.not_equal(ot.episodes,$)&&(ot.episodes=$,t(23,ot))}function $p(){xn=this.clientWidth,t(22,xn)}function e_($){i.$$.not_equal(ot.vkLogo,$)&&(ot.vkLogo=$,t(23,ot))}function t_($){i.$$.not_equal(ot.volume,$)&&(ot.volume=$,t(23,ot))}function i_($){i.$$.not_equal(ot.subtitles,$)&&(ot.subtitles=$,t(23,ot))}function n_($){Dl=$,t(24,Dl)}function o_($){Nl=$,t(25,Nl)}function l_($){i.$$.not_equal(ot.settings,$)&&(ot.settings=$,t(23,ot))}function r_($){i.$$.not_equal(ot.context,$)&&(ot.context=$,t(23,ot))}function s_($){i.$$.not_equal(ot.fullscreen,$)&&(ot.fullscreen=$,t(23,ot))}function a_($){i.$$.not_equal(ot.chromecast,$)&&(ot.chromecast=$,t(23,ot))}function u_($){pe[$?"unshift":"push"](()=>{wo=$,t(46,wo)})}function c_($){pe[$?"unshift":"push"](()=>{$t=$,t(0,$t)})}function f_($){i.$$.not_equal(ot.interactiveTimeIndicator,$)&&(ot.interactiveTimeIndicator=$,t(23,ot))}i.$$set=$=>{"bottomHidden"in $&&t(1,ui=$.bottomHidden),"bottomNoSmooth"in $&&t(2,ci=$.bottomNoSmooth),"showControls"in $&&t(3,fi=$.showControls),"controlsElementRef"in $&&t(0,$t=$.controlsElementRef),"isAds"in $&&t(4,Et=$.isAds),"canRewindLive"in $&&t(5,yi=$.canRewindLive),"logoClickable"in $&&t(6,Ai=$.logoClickable),"logoHidden"in $&&t(129,Yt=$.logoHidden),"logoTargetUrl"in $&&t(7,Zt=$.logoTargetUrl),"showNextPrevButtons"in $&&t(130,ei=$.showNextPrevButtons),"nextButtonActive"in $&&t(8,Wi=$.nextButtonActive),"prevButtonActive"in $&&t(9,fn=$.prevButtonActive),"isOneVideoPlaylist"in $&&t(131,on=$.isOneVideoPlaylist),"supportLink"in $&&t(10,Gi=$.supportLink),"customFullscreenSupported"in $&&t(132,Mi=$.customFullscreenSupported),"playNextVideo"in $&&t(11,Ft=$.playNextVideo),"playPrevVideo"in $&&t(12,Lt=$.playPrevVideo),"repeatPlaylist"in $&&t(133,Dt=$.repeatPlaylist),"toggleFullscreen"in $&&t(13,Vi=$.toggleFullscreen),"returnFocus"in $&&t(14,Li=$.returnFocus),"seekToInteractive"in $&&t(15,ln=$.seekToInteractive),"toggleGraph"in $&&t(16,Ri=$.toggleGraph),"playPrevChapter"in $&&t(17,Bi=$.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072)e:t(138,n=Mt.has("EPISODE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(77,o=Mt.has("GRAPH_BUTTON"));if(i.$$.dirty[5]&131072)e:t(76,l=Mt.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(75,r=Mt.has("PLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(74,a=Mt.has("REPLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(73,s=Mt.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[0]&16|i.$$.dirty[5]&65600)e:t(34,Uo=Et?zi==="playing":li===Iu.PLAYING);if(i.$$.dirty[5]&32768)e:t(18,oo=ai.value!=="off");if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(35,Ko=vi&&!Et||In);if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(36,go=!vi||In||Et);if(i.$$.dirty[4]&524288)e:t(134,Xn=An(ee,"m"));if(i.$$.dirty[0]&272|i.$$.dirty[4]&524352)e:t(37,bo=ei&&An(ee,"m")&&!Et&&Wi);if(i.$$.dirty[0]&528|i.$$.dirty[4]&524352)e:t(38,jo=ei&&An(ee,"m")&&!Et&&fn);if(i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536)e:t(39,vo=Pi!==dm.NOT_AVAILABLE&&!(si&&ri===1)&&An(ee,"m")&&!In);if(i.$$.dirty[4]&524288|i.$$.dirty[5]&8192)e:t(40,Y=Hi.length>0&&An(ee,"m"));if(i.$$.dirty[5]&6144)e:t(41,Rt=bi||jt);if(i.$$.dirty[4]&524288)e:t(42,Bn=An(ee,"s"));if(i.$$.dirty[4]&32)e:t(43,Fn=!Yt);if(i.$$.dirty[4]&524576|i.$$.dirty[5]&1536)e:t(44,Jn=Xt.features.fullscreen&&(Yt||An(ee,"s"))&&!(si&&ri===1)&&(In?Mi:!0));if(i.$$.dirty[0]&16|i.$$.dirty[1]&4)e:t(19,yo=(!gi||Et)&&!(Xt.features.interactiveHideTime&&In));if(i.$$.dirty[4]&262144)e:t(45,lo=G.width>100);if(i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408)e:t(20,ko=!Et&&!gi&&!!Gt?.length&&Xn&&!n);if(i.$$.dirty[1]&2|i.$$.dirty[5]&256)e:t(21,bt=!hi||_i);if(i.$$.dirty[5]&64)e:t(47,A=li===Iu.PLAYING?j("tooltip_pause"):j("tooltip_play"));if(i.$$.dirty[1]&1)e:t(48,fe=xt?j("tooltip_interactive_graph_on"):j("tooltip_interactive_graph_off"));if(i.$$.dirty[5]&128)e:t(49,Ve=Ti?j("aria_label_context_menu_close"):j("aria_label_context_menu_open"));if(i.$$.dirty[0]&2097152|i.$$.dirty[5]&64)e:ct(bt,li);if(i.$$.dirty[0]&262144)e:t(52,qi=oo?j("tooltip_subtitles_on"):j("tooltip_subtitles_off"));if(i.$$.dirty[0]&1073741824)e:t(53,ni=nn?j("tooltip_fullscreen_on"):j("tooltip_fullscreen_off"));if(i.$$.dirty[0]&536870912)e:t(54,Hn=Pi===dm.CONNECTED?j("tooltip_chromecast_on"):j("tooltip_chromecast_off"));if(i.$$.dirty[0]&268435456|i.$$.dirty[4]&2146435072|i.$$.dirty[5]&63)e:t(135,bn={prevButton:Jt?Jt.right-Jt.left:0,replayButton:Kt?Kt.right-Kt.left:0,playButton:yt?yt.right-yt.left:0,nextButton:pt?pt.right-pt.left:0,playPrevChapterButton:lt?lt.right-lt.left:0,seekToInteractiveButton:Vt?Vt.right-Vt.left:0,interactiveGraphButton:St?St.right-St.left:0,liveButton:ht?ht.right-ht.left:0,time:rt?rt.right-rt.left:0,episodes:De?De.right-De.left:0,vkLogo:Ue?Ue.right-Ue.left:0,volume:nt?nt.right-nt.left:0,subtitles:ke?ke.right-ke.left:0,settings:Ke?Ke.right-Ke.left:0,context:ye?ye.right-ye.left:0,fullscreen:We?We.right-We.left:0,chromecast:H?H.right-H.left:0,additionalButtons:L.length?L.reduce($=>[...$,40],[]):[]});if(i.$$.dirty[4]&6144)e:(!gl||gl<bn.time)&&t(136,gl=bn.time);if(i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432)e:{let $=0;ko&&(An(ee,"xl")?$=bn.time:$=60);let as=bn.prevButton+bn.playButton+bn.nextButton+bn.seekToInteractiveButton+bn.interactiveGraphButton+bn.liveButton+gl+$;t(137,ss=yo&&xn>=as)}if(i.$$.dirty[4]&532480)e:t(55,Cc=ss&&An(ee,"m"));if(i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216)e:Fp(On(),hn,ot,fi);if(i.$$.dirty[0]&167772160)e:nl(Nl,X,wn);if(i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536)e:Bo(Dl,X,E);if(i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768)e:Gr(ie,x,ql)};e:t(51,di=Xt.logoType==="vk_video"?j("tooltip_vk_video_logo"):j("tooltip_vk_logo"));e:cn(t(72,{prevButton:u,replayButton:f,playButton:p,nextButton:h,playPrevChapterButton:k,seekToInteractiveButton:g,interactiveGraphButton:w,liveButton:v,time:T,episodes:b,vkLogo:y,volume:I,subtitles:Z,settings:N,context:z,fullscreen:se,chromecast:ae}=hn,u,tn(t(71,f)),qt(t(70,p)),Qt(t(69,h)),be(t(68,k)),oi(t(67,g)),Nt(t(66,w)),mt(t(65,v)),ft(t(64,T)),Ye(t(63,b)),le(t(62,y)),re(t(61,I)),Ge(t(60,Z)),it(t(59,N)),we(t(58,z)),qe(t(57,se)),ze(t(56,ae))));return[$t,ui,ci,fi,Et,yi,Ai,Zt,Wi,fn,Gi,Ft,Lt,Vi,Li,ln,Ri,Bi,oo,yo,ko,bt,xn,ot,Dl,Nl,ql,X,L,Pi,nn,xt,hi,gi,Uo,Ko,go,bo,jo,vo,Y,Rt,Bn,Fn,Jn,lo,wo,A,fe,Ve,Ze,di,qi,ni,Hn,Cc,ae,se,z,N,Z,I,y,b,T,v,w,g,k,h,p,f,u,s,a,r,l,o,Ui,Ot,Ei,Ki,ji,Wt,Xt,Qi,rn,Yi,Ji,sn,dn,Ht,Di,kn,Ni,_n,mn,ii,xi,$i,wn,Gt,Mn,Vn,Cn,gn,an,Sn,en,ie,gt,un,te,dt,ki,Ln,Rn,In,Ho,pl,_l,hl,_o,ho,Zn,no,zo,Hp,zp,Yt,ei,on,Mi,Dt,Xn,bn,gl,ss,n,x,E,Q,G,ee,H,We,ye,Ke,ke,nt,Ue,De,rt,ht,St,Vt,lt,pt,yt,Kt,Jt,li,Ti,_i,ri,si,jt,bi,Hi,vi,ai,zi,Mt,Up,Kp,jp,Wp,Gp,Qp,Yp,Zp,Xp,Jp,xp,$p,e_,t_,i_,n_,o_,l_,r_,s_,a_,u_,c_,f_]}var Pu=class extends K{constructor(e){super(),W(this,e,R3,L3,U,{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},a3,[-1,-1,-1,-1,-1,-1,-1])}},Em=Pu;import{ChromecastState as Bm,PlaybackState as Dm}from"@vkontakte/videoplayer-core";function B3(i){let e,t,n,o,l,r=i[2].default,a=Ie(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=oe(u,s[f]);return{c(){e=B("svg"),a&&a.c(),t=B("g"),n=B("path"),o=B("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"),ge(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)&&Te(a,r,f,f[1],l?Pe(r,f[1],p,null):Ee(f[1]),null),ge(e,u=Le(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&&C(e),a&&a.d(f)}}}function D3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Eu=class extends K{constructor(e){super(),W(this,e,D3,B3,U,{})}},Am=Eu;import{noop as N3}from"@vkontakte/videoplayer-shared";function q3(i){Se(i,"svelte-6gmlbk",".container.svelte-6gmlbk{display:flex;align-items:center}.expanded.svelte-6gmlbk{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.text.svelte-6gmlbk{font-size:15px;margin-left:8px}")}function Mm(i){let e;return{c(){e=P("span"),e.textContent=`${j("mobile_unmute")}`,c(e,"class","text svelte-6gmlbk")},m(t,n){S(t,e,n)},p:_e,d(t){t&&C(e)}}}function O3(i){let e,t,n,o;var l=i[4];function r(s){return{}}l&&(t=vn(l,r(i)));let a=i[1]&&Mm(i);return{c(){e=P("div"),t&&R(t.$$.fragment),n=D(),a&&a.c(),c(e,"class","container svelte-6gmlbk"),c(e,"aria-hidden","true"),q(e,"expanded",i[1])},m(s,u){S(s,e,u),t&&M(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){ue();let f=t;_(f.$$.fragment,1,0,()=>{V(f,1)}),ce()}l?(t=vn(l,r(s)),R(t.$$.fragment),d(t.$$.fragment,1),M(t,e,n)):t=null}s[1]?a?a.p(s,u):(a=Mm(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&q(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&&C(e),t&&V(t),a&&a.d()}}}function F3(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:[O3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.testId=r[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(s.click=r[2]),a&8&&(s.ariaLabel=r[3]),a&146&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function H3(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:l=N3}=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=()=>{if(i.$$.dirty&32)e:t(3,a=n?j("tooltip_volume"):j("tooltip_volume_muted"));if(i.$$.dirty&2)e:t(4,s=o?Oo:Am)},[r,o,l,a,s,n,u]}var Au=class extends K{constructor(e){super(),W(this,e,H3,F3,U,{muted:5,expanded:1,click:2,ref:0},q3)}},Mu=Au;function z3(i){let e,t,n,o,l,r=i[2].default,a=Ie(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=oe(u,s[f]);return{c(){e=B("svg"),a&&a.c(),t=B("path"),n=B("path"),o=B("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"),ge(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)&&Te(a,r,f,f[1],l?Pe(r,f[1],p,null):Ee(f[1]),null),ge(e,u=Le(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&&C(e),a&&a.d(f)}}}function U3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Vu=class extends K{constructor(e){super(),W(this,e,U3,z3,U,{})}},Vm=Vu;function K3(i){Se(i,"svelte-tmam00",'svg[data-testid="pip-icon--active"] .hidden-active,svg[data-testid="pip-icon"] .hidden-not-active{visibility:hidden;opacity:0}')}function j3(i){let e,t;return e=new Vm({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let 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){V(e,n)}}}function W3(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=l=>{"isActive"in l&&t(0,o=l.isActive)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var Lu=class extends K{constructor(e){super(),W(this,e,W3,j3,U,{isActive:0},K3)}},Lm=Lu;import{noop as G3}from"@vkontakte/videoplayer-shared";function Q3(i){let e,t;return e=new Lm({props:{isActive:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Y3(i){let e,t,n;function o(r){i[3](r)}let l={testId:"btn-pip",ariaLabel:j("menu_pip"),click:i[2],$$slots:{default:[Q3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&4&&(s.click=r[2]),a&18&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function Z3(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:l=G3}=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 Ru=class extends K{constructor(e){super(),W(this,e,Z3,Y3,U,{ref:0,isPictureInPictureActive:1,click:2})}},Rm=Ru;import{throttleFn as X3}from"@vkontakte/videoplayer-shared";function J3(i){Se(i,"svelte-1tcstu3",".wrapper-bottom.svelte-1tcstu3.svelte-1tcstu3{pointer-events:none;position:absolute;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-1tcstu3>.svelte-1tcstu3{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-1tcstu3.svelte-1tcstu3{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-1tcstu3.svelte-1tcstu3{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-1tcstu3.svelte-1tcstu3{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:4px;left:8px}.wrapper-middle-left.svelte-1tcstu3.svelte-1tcstu3,.wrapper-middle-left-second.svelte-1tcstu3.svelte-1tcstu3,.wrapper-middle-right.svelte-1tcstu3.svelte-1tcstu3{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-1tcstu3.svelte-1tcstu3{left:12px}.wrapper-middle-left-second.svelte-1tcstu3.svelte-1tcstu3{left:64px}.wrapper-middle-right.svelte-1tcstu3.svelte-1tcstu3{right:12px}.controls.svelte-1tcstu3.svelte-1tcstu3{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-1tcstu3 > *:not(:first-child){margin-left:8px}.hidden.svelte-1tcstu3.svelte-1tcstu3{visibility:hidden;opacity:0}.controls-hidden.svelte-1tcstu3.svelte-1tcstu3{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-1tcstu3.svelte-1tcstu3{transition:none}.settings-mobile.svelte-1tcstu3.svelte-1tcstu3{position:absolute;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-1tcstu3.svelte-1tcstu3{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-1tcstu3.svelte-1tcstu3{top:16px}.wrapper-top-left.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:16px}.controls-wrapper.fullscreen.svelte-1tcstu3.svelte-1tcstu3{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-1tcstu3.svelte-1tcstu3{left:44px}.wrapper-middle-left-second.fullscreen.svelte-1tcstu3.svelte-1tcstu3{left:96px}.wrapper-middle-right.fullscreen.svelte-1tcstu3.svelte-1tcstu3{right:44px}.controls-wrapper.fullscreen.svelte-1tcstu3.svelte-1tcstu3{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function Nm(i,e,t){let n=i.slice();return n[169]=e[t].iconUrl,n[170]=e[t].ariaLabel,n[171]=e[t].testId,n[172]=e[t].onClick,n[173]=e[t].tooltip,n}function qm(i){let e,t,n,o,l,r,a,s,u,f,p,h,k,g,w,v,T,b=(!i[51]||i[53])&&Om(i),y=wt(i[56]),I=[];for(let G=0;G<y.length;G+=1)I[G]=Fm(Nm(i,y,G));let Z=G=>_(I[G],1,1,()=>{I[G]=null}),N=i[36]&&Hm(i),z=i[37]&&zm(i),se=i[57]&&Um(i),ae=i[39]&&Km(i),F=i[8]&&jm(i),x=i[34]&&Wm(i),E=i[33]&&Gm(i),X=i[8]&&Qm(i),Q=i[96]&&!i[29]&&Ym(i);return{c(){e=P("div"),t=D(),n=P("div"),b&&b.c(),o=D(),l=P("div");for(let G=0;G<I.length;G+=1)I[G].c();r=D(),N&&N.c(),a=D(),z&&z.c(),s=D(),se&&se.c(),u=D(),ae&&ae.c(),f=D(),p=P("div"),F&&F.c(),h=D(),x&&x.c(),k=D(),E&&E.c(),g=D(),X&&X.c(),w=D(),Q&&Q.c(),v=at(),c(e,"class","overlay-mobile svelte-1tcstu3"),q(e,"hidden",!i[42]),c(n,"class","wrapper-top-left svelte-1tcstu3"),q(n,"hidden",!i[3]),q(n,"fullscreen",i[52]),c(l,"class","wrapper-top-right svelte-1tcstu3"),q(l,"hidden",!i[3]&&!i[27]),q(l,"fullscreen",i[52]),c(p,"class","wrapper-middle svelte-1tcstu3"),q(p,"hidden",!i[3]||i[29])},m(G,ee){S(G,e,ee),S(G,t,ee),S(G,n,ee),b&&b.m(n,null),S(G,o,ee),S(G,l,ee);for(let L=0;L<I.length;L+=1)I[L]&&I[L].m(l,null);m(l,r),N&&N.m(l,null),m(l,a),z&&z.m(l,null),m(l,s),se&&se.m(l,null),m(l,u),ae&&ae.m(l,null),S(G,f,ee),S(G,p,ee),F&&F.m(p,null),m(p,h),x&&x.m(p,null),m(p,k),E&&E.m(p,null),m(p,g),X&&X.m(p,null),S(G,w,ee),Q&&Q.m(G,ee),S(G,v,ee),T=!0},p(G,ee){if((!T||ee[1]&2048)&&q(e,"hidden",!G[42]),!G[51]||G[53]?b?(b.p(G,ee),ee[1]&5242880&&d(b,1)):(b=Om(G),b.c(),d(b,1),b.m(n,null)):b&&(ue(),_(b,1,1,()=>{b=null}),ce()),(!T||ee[0]&8)&&q(n,"hidden",!G[3]),(!T||ee[1]&2097152)&&q(n,"fullscreen",G[52]),ee[1]&33554432){y=wt(G[56]);let L;for(L=0;L<y.length;L+=1){let H=Nm(G,y,L);I[L]?(I[L].p(H,ee),d(I[L],1)):(I[L]=Fm(H),I[L].c(),d(I[L],1),I[L].m(l,r))}for(ue(),L=y.length;L<I.length;L+=1)Z(L);ce()}G[36]?N?(N.p(G,ee),ee[1]&32&&d(N,1)):(N=Hm(G),N.c(),d(N,1),N.m(l,a)):N&&(ue(),_(N,1,1,()=>{N=null}),ce()),G[37]?z?(z.p(G,ee),ee[1]&64&&d(z,1)):(z=zm(G),z.c(),d(z,1),z.m(l,s)):z&&(ue(),_(z,1,1,()=>{z=null}),ce()),G[57]?se?(se.p(G,ee),ee[1]&67108864&&d(se,1)):(se=Um(G),se.c(),d(se,1),se.m(l,u)):se&&(ue(),_(se,1,1,()=>{se=null}),ce()),G[39]?ae?(ae.p(G,ee),ee[1]&256&&d(ae,1)):(ae=Km(G),ae.c(),d(ae,1),ae.m(l,null)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),ce()),(!T||ee[0]&134217736)&&q(l,"hidden",!G[3]&&!G[27]),(!T||ee[1]&2097152)&&q(l,"fullscreen",G[52]),G[8]?F?(F.p(G,ee),ee[0]&256&&d(F,1)):(F=jm(G),F.c(),d(F,1),F.m(p,h)):F&&(ue(),_(F,1,1,()=>{F=null}),ce()),G[34]?x?(x.p(G,ee),ee[1]&8&&d(x,1)):(x=Wm(G),x.c(),d(x,1),x.m(p,k)):x&&(ue(),_(x,1,1,()=>{x=null}),ce()),G[33]?E?(E.p(G,ee),ee[1]&4&&d(E,1)):(E=Gm(G),E.c(),d(E,1),E.m(p,g)):E&&(ue(),_(E,1,1,()=>{E=null}),ce()),G[8]?X?(X.p(G,ee),ee[0]&256&&d(X,1)):(X=Qm(G),X.c(),d(X,1),X.m(p,null)):X&&(ue(),_(X,1,1,()=>{X=null}),ce()),(!T||ee[0]&536870920)&&q(p,"hidden",!G[3]||G[29]),G[96]&&!G[29]?Q?(Q.p(G,ee),ee[0]&536870912&&d(Q,1)):(Q=Ym(G),Q.c(),d(Q,1),Q.m(v.parentNode,v)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),ce())},i(G){if(!T){d(b);for(let ee=0;ee<y.length;ee+=1)d(I[ee]);d(N),d(z),d(se),d(ae),d(F),d(x),d(E),d(X),d(Q),T=!0}},o(G){_(b),I=I.filter(Boolean);for(let ee=0;ee<I.length;ee+=1)_(I[ee]);_(N),_(z),_(se),_(ae),_(F),_(x),_(E),_(X),_(Q),T=!1},d(G){G&&(C(e),C(t),C(n),C(o),C(l),C(f),C(p),C(w),C(v)),b&&b.d(),Ci(I,G),N&&N.d(),z&&z.d(),se&&se.d(),ae&&ae.d(),F&&F.d(),x&&x.d(),E&&E.d(),X&&X.d(),Q&&Q.d(G)}}}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 Mu({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&8388608&&(s.muted=r[54]),a[1]&17825792&&(s.expanded=r[51]&&!r[70]&&r[55]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].volume,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function Fm(i){let e,t;return e=new Fr({props:{iconUrl:i[169],ariaLabel:i[170]??i[173],testId:i[171],onClick:i[172]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[1]&33554432&&(l.iconUrl=n[169]),o[1]&33554432&&(l.ariaLabel=n[170]??n[173]),o[1]&33554432&&(l.testId=n[171]),o[1]&33554432&&(l.onClick=n[172]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(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 Ar({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&268435456&&(s.state=r[28]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].chromecast,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(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}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&67108864&&(s.isPictureInPictureActive=r[26]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].pip,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(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 Cl({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=r[22],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(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 Er({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&128&&(s.targetUrl=r[7]),a[0]&64&&(s.logoClickable=r[6]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].vkLogo,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function jm(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 cl({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&8192&&(s.click=r[13]),a[0]&1024&&(s.disabled=!r[10]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].prevButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function Wm(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 Il({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&262144&&(s.disabled=r[49]),a[1]&1&&(s.isPlaying=r[31]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].playButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(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 Pl({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.disabled=r[48]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].replayButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(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 cl({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&4096&&(s.click=r[12]),a[0]&512&&(s.disabled=!r[9]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].nextButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function Ym(i){let e,t,n,o,l=i[100]&&x3(i),r=i[98]&&$3(i),a=i[99]&&e5(i);return{c(){l&&l.c(),e=D(),r&&r.c(),t=D(),a&&a.c(),n=at()},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&&(C(e),C(t),C(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function x3(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 Or({props:s}),pe.push(()=>Fe(t,"ref",a)),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","wrapper-middle-left svelte-1tcstu3"),q(e,"fullscreen",i[52]),q(e,"hidden",!i[3])},m(u,f){S(u,e,f),M(t,e,null),o=!0,l||(r=de(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,Oe(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&q(e,"fullscreen",u[52]),(!o||f[0]&8)&&q(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&C(e),V(t),l=!1,r()}}}function $3(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 Nr({props:a}),pe.push(()=>Fe(t,"ref",r)),{c(){e=P("div"),R(t.$$.fragment),c(e,"class",o=Pc(i[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-1tcstu3"),q(e,"fullscreen",i[52]),q(e,"hidden",!i[3]&&!i[58])},m(s,u){S(s,e,u),M(t,e,null),l=!0},p(s,u){let f={};u[0]&8|u[1]&134217728&&(f.hidden=!s[3]&&!s[58]),u[1]&524288&&(f.disabled=s[50]),u[0]&131072&&(f.click=s[17]),u[1]&134217728&&(f.graphIsOpened=s[58]),!n&&u[0]&1048576&&(n=!0,f.ref=s[20].interactiveGraphButton,Oe(()=>n=!1)),t.$set(f),(!l||u[1]&2097152)&&q(e,"fullscreen",s[52]),(!l||u[0]&8|u[1]&134217728)&&q(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&&C(e),V(t)}}}function e5(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 Dr({props:s}),pe.push(()=>Fe(t,"ref",a)),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","wrapper-middle-right svelte-1tcstu3"),q(e,"fullscreen",i[52]),q(e,"hidden",!i[3])},m(u,f){S(u,e,f),M(t,e,null),o=!0,l||(r=de(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,Oe(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&q(e,"fullscreen",u[52]),(!o||f[0]&8)&&q(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&C(e),V(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 Lr({props:{position:i[59],duration:i[60]}}),{c(){r&&r.c(),e=D(),a&&a.c(),t=D(),n=P("div"),R(o.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile svelte-1tcstu3"),q(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),M(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&&(ue(),_(r,1,1,()=>{r=null}),ce()),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&&(ue(),_(a,1,1,()=>{a=null}),ce());let f={};u[1]&268435456&&(f.position=s[59]),u[1]&536870912&&(f.duration=s[60]),o.$set(f),(!l||u[1]&2097152)&&q(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&&(C(e),C(t),C(n)),r&&r.d(s),a&&a.d(s),V(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 Mu({props:r}),pe.push(()=>Fe(t,"ref",l)),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","wrapper-top-right svelte-1tcstu3"),q(e,"fullscreen",i[52])},m(a,s){S(a,e,s),M(t,e,null),o=!0},p(a,s){let u={};s[1]&8388608&&(u.muted=a[54]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].volume,Oe(()=>n=!1)),t.$set(u),(!o||s[1]&2097152)&&q(e,"fullscreen",a[52])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&C(e),V(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 Il({props:r}),pe.push(()=>Fe(t,"ref",l)),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","wrapper-middle svelte-1tcstu3")},m(a,s){S(a,e,s),M(t,e,null),o=!0},p(a,s){let u={};s[1]&262144&&(u.disabled=a[49]),s[1]&2&&(u.isPlaying=!a[32]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].playButton,Oe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&C(e),V(t)}}}function t5(i){let e,t,n;function o(r){i[144](r)}let l={disabled:i[48],$$slots:{default:[i5]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(l.ref=i[20].replayButton),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.disabled=r[48]),a[1]&131072|a[5]&2097152&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].replayButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function i5(i){let e,t;return e=new Pl({props:{disabled:i[48],click:i[95]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[1]&131072&&(l.disabled=n[48]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function xm(i){let e,t,n;function o(r){i[145](r)}let l={$$slots:{default:[n5]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(l.ref=i[20].liveButton),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&524288|a[1]&16384|a[5]&2097152&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].liveButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function n5(i){let e,t;return e=new Mr({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&524288&&(l.isActiveLive=n[19]),o[1]&16384&&(l.ariaLabel=n[45]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(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 wr({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&16&&(s.showDuration=r[35]),a[0]&16|a[1]&1342177280&&(s.position=r[4]?r[59]:r[61]),a[0]&16|a[1]&536870912|a[2]&1&&(s.duration=r[4]?r[60]:r[62]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].time,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function e0(i){let e,t,n,o;return n=new Br({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=P("div"),e.textContent="\xB7",t=D(),R(n.$$.fragment),c(e,"aria-hidden","true")},m(l,r){S(l,e,r),S(l,t,r),M(n,l,r),o=!0},p(l,r){let a={};r[1]&1073741824&&(a.position=l[61]),r[2]&1&&(a.duration=l[62]),n.$set(a)},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){_(n.$$.fragment,l),o=!1},d(l){l&&(C(e),C(t)),V(n,l)}}}function o5(i){let e,t,n=i[43]&&e0(i);return{c(){n&&n.c(),e=at()},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&&(ue(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&C(e),n&&n.d(o)}}}function t0(i){let e,t,n;function o(r){i[149](r)}let l={$$slots:{default:[l5]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(l.ref=i[20].settings),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&4194304|a[5]&2097152&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].settings,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function l5(i){let e,t,n;function o(r){i[148](r)}let l={};return i[22]!==void 0&&(l.ref=i[22]),e=new Cl({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=r[22],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function i0(i){let e,t,n;function o(r){i[150](r)}let l={$$slots:{default:[r5]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(l.ref=i[20].fullscreen),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&16384|a[1]&2097152|a[5]&2097152&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].fullscreen,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function r5(i){let e,t;return e=new Pr({props:{click:i[14],isFullscreen:i[52]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&16384&&(l.click=n[14]),o[1]&2097152&&(l.isFullscreen=n[52]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function n0(i){let e,t,n,o;function l(a){i[153](a)}let r={supportLink:i[11],returnFocus:i[15]};return i[21]!==void 0&&(r.ref=i[21]),t=new kr({props:r}),pe.push(()=>Fe(t,"ref",l)),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","settings-mobile svelte-1tcstu3")},m(a,s){S(a,e,s),M(t,e,null),o=!0},p(a,s){let u={};s[0]&2048&&(u.supportLink=a[11]),s[0]&32768&&(u.returnFocus=a[15]),!n&&s[0]&2097152&&(n=!0,u.ref=a[21],Oe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&C(e),V(t)}}}function s5(i){let e,t,n;function o(r){i[154](r)}let l={};return i[20].interactiveTimeIndicator!==void 0&&(l.ref=i[20].interactiveTimeIndicator),e=new Qr({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&1048576&&(t=!0,s.ref=r[20].interactiveTimeIndicator,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function a5(i){let e,t,n,o,l,r,a,s,u,f,p,h,k,g,w,v,T,b,y=!i[4]&&qm(i),I=i[4]&&i[30]!=="inactive"&&Zm(i),Z=i[96]&&t5(i),N=!i[4]&&i[25]&&xm(i),z=i[41]&&$m(i);function se(Q){i[147](Q)}let ae={className:"w-max",disabled:!i[43],$$slots:{default:[o5]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(ae.ref=i[20].episodes),u=new At({props:ae}),pe.push(()=>Fe(u,"ref",se));let F=i[38]&&t0(i),x=i[40]&&i0(i);g=new Rr({props:{isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]}});let E=i[23]&&n0(i),X=i[101]&&s5(i);return{c(){y&&y.c(),e=D(),I&&I.c(),t=D(),n=P("div"),o=P("div"),l=P("div"),Z&&Z.c(),r=D(),N&&N.c(),a=D(),z&&z.c(),s=D(),R(u.$$.fragment),p=D(),F&&F.c(),h=D(),x&&x.c(),k=D(),R(g.$$.fragment),w=D(),E&&E.c(),v=D(),X&&X.c(),T=at(),c(l,"class","controls svelte-1tcstu3"),q(l,"mobile",!0),c(o,"class","controls-wrapper svelte-1tcstu3"),q(o,"fullscreen",i[52]),c(n,"class","wrapper-bottom svelte-1tcstu3"),q(n,"hidden",i[1]),q(n,"controls-hidden",!i[3]),q(n,"no-smooth",i[2]),q(n,"mobile",!0)},m(Q,G){y&&y.m(Q,G),S(Q,e,G),I&&I.m(Q,G),S(Q,t,G),S(Q,n,G),m(n,o),m(o,l),Z&&Z.m(l,null),m(l,r),N&&N.m(l,null),m(l,a),z&&z.m(l,null),m(l,s),M(u,l,null),m(l,p),F&&F.m(l,null),m(l,h),x&&x.m(l,null),i[151](l),m(o,k),M(g,o,null),i[152](n),S(Q,w,G),E&&E.m(Q,G),S(Q,v,G),X&&X.m(Q,G),S(Q,T,G),b=!0},p(Q,G){Q[4]?y&&(ue(),_(y,1,1,()=>{y=null}),ce()):y?(y.p(Q,G),G[0]&16&&d(y,1)):(y=qm(Q),y.c(),d(y,1),y.m(e.parentNode,e)),Q[4]&&Q[30]!=="inactive"?I?(I.p(Q,G),G[0]&1073741840&&d(I,1)):(I=Zm(Q),I.c(),d(I,1),I.m(t.parentNode,t)):I&&(ue(),_(I,1,1,()=>{I=null}),ce()),Q[96]&&Z.p(Q,G),!Q[4]&&Q[25]?N?(N.p(Q,G),G[0]&33554448&&d(N,1)):(N=xm(Q),N.c(),d(N,1),N.m(l,a)):N&&(ue(),_(N,1,1,()=>{N=null}),ce()),Q[41]?z?(z.p(Q,G),G[1]&1024&&d(z,1)):(z=$m(Q),z.c(),d(z,1),z.m(l,s)):z&&(ue(),_(z,1,1,()=>{z=null}),ce());let ee={};G[1]&4096&&(ee.disabled=!Q[43]),G[1]&1073745920|G[2]&1|G[5]&2097152&&(ee.$$scope={dirty:G,ctx:Q}),!f&&G[0]&1048576&&(f=!0,ee.ref=Q[20].episodes,Oe(()=>f=!1)),u.$set(ee),Q[38]?F?(F.p(Q,G),G[1]&128&&d(F,1)):(F=t0(Q),F.c(),d(F,1),F.m(l,h)):F&&(ue(),_(F,1,1,()=>{F=null}),ce()),Q[40]?x?(x.p(Q,G),G[1]&512&&d(x,1)):(x=i0(Q),x.c(),d(x,1),x.m(l,null)):x&&(ue(),_(x,1,1,()=>{x=null}),ce());let L={};G[0]&16&&(L.isAds=Q[4]),G[0]&32&&(L.canRewindLive=Q[5]),G[0]&16777216&&(L.isRewindableLive=Q[24]),g.$set(L),(!b||G[1]&2097152)&&q(o,"fullscreen",Q[52]),(!b||G[0]&2)&&q(n,"hidden",Q[1]),(!b||G[0]&8)&&q(n,"controls-hidden",!Q[3]),(!b||G[0]&4)&&q(n,"no-smooth",Q[2]),Q[23]?E?(E.p(Q,G),G[0]&8388608&&d(E,1)):(E=n0(Q),E.c(),d(E,1),E.m(v.parentNode,v)):E&&(ue(),_(E,1,1,()=>{E=null}),ce()),Q[101]&&X.p(Q,G)},i(Q){b||(d(y),d(I),d(Z),d(N),d(z),d(u.$$.fragment,Q),d(F),d(x),d(g.$$.fragment,Q),d(E),d(X),b=!0)},o(Q){_(y),_(I),_(Z),_(N),_(z),_(u.$$.fragment,Q),_(F),_(x),_(g.$$.fragment,Q),_(E),_(X),b=!1},d(Q){Q&&(C(e),C(t),C(n),C(w),C(v),C(T)),y&&y.d(Q),I&&I.d(Q),Z&&Z.d(),N&&N.d(),z&&z.d(),V(u),F&&F.d(),x&&x.d(),i[151](null),V(g),i[152](null),E&&E.d(Q),X&&X.d(Q)}}}function u5(i,e,t){let n,o,l,r,a,s,u,f,p,h,k,g,w,v,T,b,y,I,Z,N,z,se,ae,F,x,E,X,Q,G,ee,L,H,Be,ze,We,Xe,qe,{bottomHidden:ye}=e,{bottomNoSmooth:J}=e,{showControls:we}=e,{controlsElementRef:Ke=void 0}=e,{isAds:Je=!1}=e,{canRewindLive:it}=e,{logoClickable:ke}=e,{logoHidden:Ne}=e,{logoTargetUrl:Ge=""}=e,{showNextPrevButtons:nt}=e,{nextButtonActive:Ce}=e,{prevButtonActive:re}=e,{isOneVideoPlaylist:Ue=!1}=e,{supportLink:me}=e,{customFullscreenSupported:le=!0}=e,{playNextVideo:De}=e,{playPrevVideo:Me}=e,{repeatPlaylist:Ye}=e,{toggleFullscreen:rt}=e,{returnFocus:ve}=e,{seekToInteractive:ft}=e,{toggleGraph:ht}=e,{playPrevChapter:ut}=e,{onDisabledPlayPrevChapterClick:mt}=e,{onDisabledSeekToInteractiveClick:St}=e,Qe=tt(),Nt=Dn(),Vt=Bt(),Ct=Qe.actions.internal.toggleMuted,oi=Qe.actions.internal.togglePlay,lt=Qe.actions.internal.pause,kt=Qe.callbacks?.onAudioDoesNotExistHint,be=Qe.callbacks?.onAudioDisabledHint,pt=Qe.playerPhase;O(i,pt,ne=>t(126,z=ne));let It=Qe.state.duration$;O(i,It,ne=>t(62,qe=ne));let Qt=Qe.state.positionWithScrubbing$;O(i,Qt,ne=>t(61,Xe=ne));let yt=Qe.state.playbackState$;O(i,yt,ne=>t(121,h=ne));let Ut=Qe.state.isAudioAvailable$;O(i,Ut,ne=>t(51,k=ne));let qt=Qe.state.isAudioDisabled,Kt=Qe.state.isEnded$;O(i,Kt,ne=>t(127,ae=ne));let Fi=Qe.state.isLive$;O(i,Fi,ne=>t(25,b=ne));let tn=Qe.state.muted$;O(i,tn,ne=>t(54,G=ne));let Jt=Qe.state.isActiveLive$;O(i,Jt,ne=>t(124,v=ne));let Ii=Qe.state.isRewindableLive$;O(i,Ii,ne=>t(24,T=ne));let cn=Qe.ui.scrubbingInProgress;O(i,cn,ne=>t(29,se=ne));let Pi=Qe.ui.mobileNotReportControlHidden$;O(i,Pi,ne=>t(27,Z=ne));let nn=Qe.ui.isPictureInPictureActive$;O(i,nn,ne=>t(26,I=ne));let li=Qe.ui.pictureInPictureType$;O(i,li,ne=>t(125,y=ne));let Ti=Qe.ui.mobileUnmuteButtonExpanded;O(i,Ti,ne=>t(55,ee=ne));let xt=Qe.ui.mobileUnmuteButtonVisible;O(i,xt,ne=>t(53,Q=ne));let _i=Qe.ui.settingsMenuVisible;O(i,_i,ne=>t(23,p=ne));let hi=Qe.ui.settingsMenuOpenedByKeyboard;O(i,hi,ne=>t(120,f=ne));let gi=Qe.ui.controls,ri=Qe.actions.internal.getVideoEpisodes(),si=Qe.webApi.pictureInPictureApi,jt=Qe.state.chromecastState$;O(i,jt,ne=>t(28,N=ne));let bi=Qe.state.crashed$;O(i,bi,ne=>t(57,H=ne));let Hi=gi.disabledControls$;O(i,Hi,ne=>t(128,x=ne));let vi=Qe.ui.startedByKeyboard$;O(i,vi,ne=>t(119,u=ne));let ai=Qe.ads.duration;O(i,ai,ne=>t(60,We=ne));let zi=Qe.ads.position;O(i,zi,ne=>t(59,ze=ne));let Mt=Qe.ads.playbackState;O(i,Mt,ne=>t(30,F=ne));let Ui=Qe.ui.isFullscreen;O(i,Ui,ne=>t(52,X=ne));let Ot=Qe.ui.playerSize;O(i,Ot,ne=>t(123,w=ne));let Ei=Qe.ui.additionalButtons$;O(i,Ei,ne=>t(56,L=ne));let Ki=Qe.actions.internal.getVideoElement,ji=Qe.actions.internal.replayInteractive,Wt=Qe.state.isInteractive,ui=Qe.state.isInteractiveTime$;O(i,ui,ne=>t(122,g=ne));let ci=Qe.state.showInteractiveGraph,fi=Qe.state.showSeekToInteractive,$t=Qe.state.showPlayPrevChapter,Et=Qe.state.showInteractiveTimeIndicator,yi=Qe.state.graphIsOpened$;O(i,yi,ne=>t(58,Be=ne));let Ai=Nt.seekToInteractiveDisabledTooltip$;O(i,Ai,ne=>t(129,E=ne));let Yt,Zt,ei,Wi,fn,on,Gi,Mi,Ft,Lt,Dt,Vi,Li,ln,Ri,Bi,$e,ti,Xt,He={},Qi=X3(Wr,260,{leading:!1}),rn=()=>Qe.actions.internal.toggleChromecast();function Yi(){uo({isAudioDisabled:qt,audioDisabledHintCallback:be,isAudioAvailable:k,audioIsNotExistHintCallback:kt})&&Ct()}async function Zi(){si?.isActive()?await si?.remove():await si?.request()}function Xi(){!qt&&k&&xt.set(!1),Yi()}let Ji=Ue?oi:Ye,sn="",dn=(ne,In)=>{if(!ne){t(45,sn=j("tooltip_live"));return}In===Dm.PAUSED&&t(45,sn=j("tooltip_play"))},Ht,Di,pn=()=>{s&&mt(Yt)},kn=()=>{l&&St(Zt)};function Ni(ne){i.$$.not_equal(He.volume,ne)&&(He.volume=ne,t(20,He))}function _n(ne){i.$$.not_equal(He.chromecast,ne)&&(He.chromecast=ne,t(20,He))}function mn(ne){i.$$.not_equal(He.pip,ne)&&(He.pip=ne,t(20,He))}function ii(ne){Di=ne,t(22,Di)}function xi(ne){i.$$.not_equal(He.vkLogo,ne)&&(He.vkLogo=ne,t(20,He))}function $i(ne){i.$$.not_equal(He.prevButton,ne)&&(He.prevButton=ne,t(20,He))}function wn(ne){i.$$.not_equal(He.playButton,ne)&&(He.playButton=ne,t(20,He))}function hn(ne){i.$$.not_equal(He.replayButton,ne)&&(He.replayButton=ne,t(20,He))}function Gt(ne){i.$$.not_equal(He.nextButton,ne)&&(He.nextButton=ne,t(20,He))}function Mn(ne){i.$$.not_equal(He.playPrevChapterButton,ne)&&(He.playPrevChapterButton=ne,t(20,He))}function Vn(ne){i.$$.not_equal(He.interactiveGraphButton,ne)&&(He.interactiveGraphButton=ne,t(20,He))}function Cn(ne){i.$$.not_equal(He.seekToInteractiveButton,ne)&&(He.seekToInteractiveButton=ne,t(20,He))}function gn(ne){i.$$.not_equal(He.volume,ne)&&(He.volume=ne,t(20,He))}function an(ne){i.$$.not_equal(He.playButton,ne)&&(He.playButton=ne,t(20,He))}function Sn(ne){i.$$.not_equal(He.replayButton,ne)&&(He.replayButton=ne,t(20,He))}function en(ne){i.$$.not_equal(He.liveButton,ne)&&(He.liveButton=ne,t(20,He))}function ie(ne){i.$$.not_equal(He.time,ne)&&(He.time=ne,t(20,He))}function gt(ne){i.$$.not_equal(He.episodes,ne)&&(He.episodes=ne,t(20,He))}function un(ne){Di=ne,t(22,Di)}function te(ne){i.$$.not_equal(He.settings,ne)&&(He.settings=ne,t(20,He))}function dt(ne){i.$$.not_equal(He.fullscreen,ne)&&(He.fullscreen=ne,t(20,He))}function ki(ne){pe[ne?"unshift":"push"](()=>{ti=ne,t(44,ti)})}function Ln(ne){pe[ne?"unshift":"push"](()=>{Ke=ne,t(0,Ke)})}function Rn(ne){Ht=ne,t(21,Ht)}function On(ne){i.$$.not_equal(He.interactiveTimeIndicator,ne)&&(He.interactiveTimeIndicator=ne,t(20,He))}i.$$set=ne=>{"bottomHidden"in ne&&t(1,ye=ne.bottomHidden),"bottomNoSmooth"in ne&&t(2,J=ne.bottomNoSmooth),"showControls"in ne&&t(3,we=ne.showControls),"controlsElementRef"in ne&&t(0,Ke=ne.controlsElementRef),"isAds"in ne&&t(4,Je=ne.isAds),"canRewindLive"in ne&&t(5,it=ne.canRewindLive),"logoClickable"in ne&&t(6,ke=ne.logoClickable),"logoHidden"in ne&&t(110,Ne=ne.logoHidden),"logoTargetUrl"in ne&&t(7,Ge=ne.logoTargetUrl),"showNextPrevButtons"in ne&&t(8,nt=ne.showNextPrevButtons),"nextButtonActive"in ne&&t(9,Ce=ne.nextButtonActive),"prevButtonActive"in ne&&t(10,re=ne.prevButtonActive),"isOneVideoPlaylist"in ne&&t(111,Ue=ne.isOneVideoPlaylist),"supportLink"in ne&&t(11,me=ne.supportLink),"customFullscreenSupported"in ne&&t(112,le=ne.customFullscreenSupported),"playNextVideo"in ne&&t(12,De=ne.playNextVideo),"playPrevVideo"in ne&&t(13,Me=ne.playPrevVideo),"repeatPlaylist"in ne&&t(113,Ye=ne.repeatPlaylist),"toggleFullscreen"in ne&&t(14,rt=ne.toggleFullscreen),"returnFocus"in ne&&t(15,ve=ne.returnFocus),"seekToInteractive"in ne&&t(16,ft=ne.seekToInteractive),"toggleGraph"in ne&&t(17,ht=ne.toggleGraph),"playPrevChapter"in ne&&t(18,ut=ne.playPrevChapter),"onDisabledPlayPrevChapterClick"in ne&&t(114,mt=ne.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ne&&t(115,St=ne.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32)e:Zt=j(E);if(i.$$.dirty[4]&16)e:t(118,n=x.has("EPISODE_BUTTON"));if(i.$$.dirty[4]&16)e:t(50,o=x.has("GRAPH_BUTTON"));if(i.$$.dirty[4]&16)e:t(46,l=x.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[4]&16)e:t(49,r=x.has("PLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(48,a=x.has("REPLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(47,s=x.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[3]&268435456)e:t(31,ei=h===Dm.PLAYING);if(i.$$.dirty[0]&1073741824)e:t(32,Wi=F==="paused");if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(33,fn=ae&&!Je&&!Wt);if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(34,on=!ae||Je);if(i.$$.dirty[3]&1073741824)e:t(116,Gi=w.width>300);if(i.$$.dirty[3]&1073741824)e:t(35,Mi=w.width>400);if(i.$$.dirty[0]&536870912)e:t(117,Ft=se);if(i.$$.dirty[0]&469762048|i.$$.dirty[4]&2)e:t(36,Lt=N!==Bm.NOT_AVAILABLE&&!(I&&y===1)&&!Z&&!Wt);if(i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6)e:{let ne=z==="waitingLive";t(37,Dt=!!si&&N!==Bm.CONNECTED&&!Z&&(y===1&&ne||!ne)&&!Ft&&!Wt)}if(i.$$.dirty[3]&16777216)e:t(38,Vi=!Ft);if(i.$$.dirty[3]&1073872896)e:t(39,Li=!Ne&&w.width>350);if(i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2)e:t(40,ln=Vt.features.fullscreen&&!(I&&y===1)&&(Wt?le:!0)&&!Ft);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040)e:t(41,Ri=(!b||Je)&&w.width>260&&!Ft&&!(Vt.features.interactiveHideTime&&Wt));if(i.$$.dirty[0]&8388616)e:t(42,Bi=p||we);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256)e:t(43,$e=!Je&&!b&&!!ri?.length&&Gi&&!n&&!Ft);if(i.$$.dirty[0]&16777216|i.$$.dirty[4]&1)e:t(19,Xt=!T||v);if(i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736)e:Qi(Ki(),gi,He,we);if(i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456)e:dn(Xt,h);if(i.$$.dirty[0]&12582912)e:nl(Di,p,hi);if(i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728)e:Bo(Ht,p,f);if(i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864)e:Gr(vi,u,He.playButton)};e:Yt=j(Qe.state.playPrevChapterDisabledTooltip);return[Ke,ye,J,we,Je,it,ke,Ge,nt,Ce,re,me,De,Me,rt,ve,ft,ht,ut,Xt,He,Ht,Di,p,T,b,I,Z,N,se,F,ei,Wi,fn,on,Mi,Lt,Dt,Vi,Li,ln,Ri,Bi,$e,ti,sn,l,s,a,r,o,k,X,Q,G,ee,L,H,Be,ze,We,Xe,qe,oi,lt,pt,It,Qt,yt,Ut,qt,Kt,Fi,tn,Jt,Ii,cn,Pi,nn,li,Ti,xt,_i,hi,ri,jt,bi,Hi,vi,ai,zi,Mt,Ui,Ot,Ei,ji,Wt,ui,ci,fi,$t,Et,yi,Ai,rn,Zi,Xi,Ji,pn,kn,Ne,Ue,le,Ye,mt,St,Gi,Ft,n,u,f,h,g,w,v,y,z,ae,x,E,Ni,_n,mn,ii,xi,$i,wn,hn,Gt,Mn,Vn,Cn,gn,an,Sn,en,ie,gt,un,te,dt,ki,Ln,Rn,On]}var Bu=class extends K{constructor(e){super(),W(this,e,u5,a5,U,{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},J3,[-1,-1,-1,-1,-1,-1])}},o0=Bu;function c5(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}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a&2&&(s.bottomHidden=r[1]),a&4&&(s.bottomNoSmooth=r[2]),a&8&&(s.showControls=r[3]),a&16&&(s.isAds=r[4]),a&32&&(s.canRewindLive=r[5]),a&64&&(s.logoClickable=r[6]),a&128&&(s.logoHidden=r[7]),a&256&&(s.logoTargetUrl=r[8]),a&512&&(s.showNextPrevButtons=r[9]),a&1024&&(s.nextButtonActive=r[10]),a&2048&&(s.prevButtonActive=r[11]),a&4096&&(s.isOneVideoPlaylist=r[12]),a&8192&&(s.supportLink=r[13]),a&16384&&(s.customFullscreenSupported=r[14]),a&32768&&(s.playNextVideo=r[15]),a&65536&&(s.playPrevVideo=r[16]),a&131072&&(s.repeatPlaylist=r[17]),a&262144&&(s.toggleFullscreen=r[18]),a&524288&&(s.returnFocus=r[19]),a&1048576&&(s.seekToInteractive=r[20]),a&2097152&&(s.toggleGraph=r[21]),a&4194304&&(s.playPrevChapter=r[22]),!t&&a&1&&(t=!0,s.controlsElementRef=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function f5(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}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a&2&&(s.bottomHidden=r[1]),a&4&&(s.bottomNoSmooth=r[2]),a&8&&(s.showControls=r[3]),a&16&&(s.isAds=r[4]),a&32&&(s.canRewindLive=r[5]),a&64&&(s.logoClickable=r[6]),a&128&&(s.logoHidden=r[7]),a&256&&(s.logoTargetUrl=r[8]),a&512&&(s.showNextPrevButtons=r[9]),a&1024&&(s.nextButtonActive=r[10]),a&2048&&(s.prevButtonActive=r[11]),a&4096&&(s.isOneVideoPlaylist=r[12]),a&8192&&(s.supportLink=r[13]),a&16384&&(s.customFullscreenSupported=r[14]),a&32768&&(s.playNextVideo=r[15]),a&65536&&(s.playPrevVideo=r[16]),a&131072&&(s.repeatPlaylist=r[17]),a&262144&&(s.toggleFullscreen=r[18]),a&524288&&(s.returnFocus=r[19]),a&1048576&&(s.seekToInteractive=r[20]),a&2097152&&(s.toggleGraph=r[21]),a&4194304&&(s.playPrevChapter=r[22]),a&8388608&&(s.onDisabledPlayPrevChapterClick=r[23]),a&16777216&&(s.onDisabledSeekToInteractiveClick=r[24]),!t&&a&1&&(t=!0,s.controlsElementRef=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function d5(i){let e,t,n,o,l=[f5,c5],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=at()},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):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),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&&C(n),r[e].d(s)}}}function m5(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:k}=e,{nextButtonActive:g}=e,{prevButtonActive:w}=e,{isOneVideoPlaylist:v=!1}=e,{supportLink:T}=e,{customFullscreenSupported:b=!0}=e,{playNextVideo:y}=e,{playPrevVideo:I}=e,{repeatPlaylist:Z}=e,{toggleFullscreen:N}=e,{returnFocus:z=Du}=e,{seekToInteractive:se}=e,{toggleGraph:ae}=e,{playPrevChapter:F}=e,{onDisabledPlayPrevChapterClick:x=Du}=e,{onDisabledSeekToInteractiveClick:E=Du}=e,Q=tt().ui.isMobile;O(i,Q,L=>t(25,n=L));function G(L){a=L,t(0,a)}function ee(L){a=L,t(0,a)}return i.$$set=L=>{"bottomHidden"in L&&t(1,o=L.bottomHidden),"bottomNoSmooth"in L&&t(2,l=L.bottomNoSmooth),"showControls"in L&&t(3,r=L.showControls),"controlsElementRef"in L&&t(0,a=L.controlsElementRef),"isAds"in L&&t(4,s=L.isAds),"canRewindLive"in L&&t(5,u=L.canRewindLive),"logoClickable"in L&&t(6,f=L.logoClickable),"logoHidden"in L&&t(7,p=L.logoHidden),"logoTargetUrl"in L&&t(8,h=L.logoTargetUrl),"showNextPrevButtons"in L&&t(9,k=L.showNextPrevButtons),"nextButtonActive"in L&&t(10,g=L.nextButtonActive),"prevButtonActive"in L&&t(11,w=L.prevButtonActive),"isOneVideoPlaylist"in L&&t(12,v=L.isOneVideoPlaylist),"supportLink"in L&&t(13,T=L.supportLink),"customFullscreenSupported"in L&&t(14,b=L.customFullscreenSupported),"playNextVideo"in L&&t(15,y=L.playNextVideo),"playPrevVideo"in L&&t(16,I=L.playPrevVideo),"repeatPlaylist"in L&&t(17,Z=L.repeatPlaylist),"toggleFullscreen"in L&&t(18,N=L.toggleFullscreen),"returnFocus"in L&&t(19,z=L.returnFocus),"seekToInteractive"in L&&t(20,se=L.seekToInteractive),"toggleGraph"in L&&t(21,ae=L.toggleGraph),"playPrevChapter"in L&&t(22,F=L.playPrevChapter),"onDisabledPlayPrevChapterClick"in L&&t(23,x=L.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in L&&t(24,E=L.onDisabledSeekToInteractiveClick)},[a,o,l,r,s,u,f,p,h,k,g,w,v,T,b,y,I,Z,N,z,se,ae,F,x,E,n,Q,G,ee]}var Nu=class extends K{constructor(e){super(),W(this,e,m5,d5,U,{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})}},Yr=Nu;function p5(i){let e,t,n,o,l,r,a,s,u,f,p,h,k,g,w=i[2].default,v=Ie(w,i,i[1],null),T=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],b={};for(let y=0;y<T.length;y+=1)b=oe(b,T[y]);return{c(){e=B("svg"),v&&v.c(),t=B("g"),n=B("path"),o=B("path"),l=B("defs"),r=B("filter"),a=B("feFlood"),s=B("feColorMatrix"),u=B("feOffset"),f=B("feGaussianBlur"),p=B("feColorMatrix"),h=B("feBlend"),k=B("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(k,"in","SourceGraphic"),c(k,"in2","effect1_dropShadow_2260_100684"),c(k,"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"),ge(e,b)},m(y,I){S(y,e,I),v&&v.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,k),g=!0},p(y,[I]){v&&v.p&&(!g||I&2)&&Te(v,w,y,y[1],g?Pe(w,y[1],I,null):Ee(y[1]),null),ge(e,b=Le(T,[{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(v,y),g=!0)},o(y){_(v,y),g=!1},d(y){y&&C(e),v&&v.d(y)}}}function _5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var qu=class extends K{constructor(e){super(),W(this,e,_5,p5,U,{})}},l0=qu;function h5(i){let e,t;return e=new l0({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function g5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Ou=class extends K{constructor(e){super(),W(this,e,g5,h5,U,{reversed:1})}},r0=Ou;function b5(i){let e,t,n,o,l,r,a,s,u,f,p,h,k,g,w,v,T=i[2].default,b=Ie(T,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 Z=0;Z<y.length;Z+=1)I=oe(I,y[Z]);return{c(){e=B("svg"),b&&b.c(),t=B("g"),n=B("path"),o=B("path"),l=B("defs"),r=B("clipPath"),a=B("path"),s=B("filter"),u=B("feFlood"),f=B("feColorMatrix"),p=B("feOffset"),h=B("feGaussianBlur"),k=B("feColorMatrix"),g=B("feBlend"),w=B("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(k,"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"),ge(e,I)},m(Z,N){S(Z,e,N),b&&b.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,k),m(s,g),m(s,w),v=!0},p(Z,[N]){b&&b.p&&(!v||N&2)&&Te(b,T,Z,Z[1],v?Pe(T,Z[1],N,null):Ee(Z[1]),null),ge(e,I=Le(y,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},N&1&&Z[0]]))},i(Z){v||(d(b,Z),v=!0)},o(Z){_(b,Z),v=!1},d(Z){Z&&C(e),b&&b.d(Z)}}}function v5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Fu=class extends K{constructor(e){super(),W(this,e,v5,b5,U,{})}},s0=Fu;function y5(i){let e,t,n,o,l,r,a,s,u,f,p,h,k,g,w,v,T,b=i[2].default,y=Ie(b,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]],Z={};for(let N=0;N<I.length;N+=1)Z=oe(Z,I[N]);return{c(){e=B("svg"),y&&y.c(),t=B("g"),n=B("path"),o=B("path"),l=B("path"),r=B("defs"),a=B("clipPath"),s=B("path"),u=B("filter"),f=B("feFlood"),p=B("feColorMatrix"),h=B("feOffset"),k=B("feGaussianBlur"),g=B("feColorMatrix"),w=B("feBlend"),v=B("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(k,"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(v,"in","SourceGraphic"),c(v,"in2","effect1_dropShadow_2260_104293"),c(v,"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"),ge(e,Z)},m(N,z){S(N,e,z),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,k),m(u,g),m(u,w),m(u,v),T=!0},p(N,[z]){y&&y.p&&(!T||z&2)&&Te(y,b,N,N[1],T?Pe(b,N[1],z,null):Ee(N[1]),null),ge(e,Z=Le(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},z&1&&N[0]]))},i(N){T||(d(y,N),T=!0)},o(N){_(y,N),T=!1},d(N){N&&C(e),y&&y.d(N)}}}function k5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Hu=class extends K{constructor(e){super(),W(this,e,k5,y5,U,{})}},a0=Hu;function w5(i){let e,t;return e=new s0({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function C5(i){let e,t;return e=new a0({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function S5(i){let e,t,n,o,l=[C5,w5],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=at()},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&&(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),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&&C(n),r[e].d(s)}}}function I5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var zu=class extends K{constructor(e){super(),W(this,e,I5,S5,U,{isOff:0})}},Uu=zu;function P5(i){let e,t,n,o,l,r,a,s,u,f,p,h,k,g,w=i[2].default,v=Ie(w,i,i[1],null),T=[{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]],b={};for(let y=0;y<T.length;y+=1)b=oe(b,T[y]);return{c(){e=B("svg"),v&&v.c(),t=B("g"),n=B("path"),o=B("path"),l=B("defs"),r=B("filter"),a=B("feFlood"),s=B("feColorMatrix"),u=B("feOffset"),f=B("feGaussianBlur"),p=B("feColorMatrix"),h=B("feBlend"),k=B("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(k,"in","SourceGraphic"),c(k,"in2","effect1_dropShadow_2260_106627"),c(k,"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"),ge(e,b)},m(y,I){S(y,e,I),v&&v.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,k),g=!0},p(y,[I]){v&&v.p&&(!g||I&2)&&Te(v,w,y,y[1],g?Pe(w,y[1],I,null):Ee(y[1]),null),ge(e,b=Le(T,[{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(v,y),g=!0)},o(y){_(v,y),g=!1},d(y){y&&C(e),v&&v.d(y)}}}function T5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Ku=class extends K{constructor(e){super(),W(this,e,T5,P5,U,{})}},u0=Ku;function E5(i){let e,t;return e=new u0({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function A5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var ju=class extends K{constructor(e){super(),W(this,e,A5,E5,U,{reversed:1})}},c0=ju;function M5(i){let e,t,n,o,l,r,a,s,u,f,p,h,k,g,w=i[2].default,v=Ie(w,i,i[1],null),T=[{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]],b={};for(let y=0;y<T.length;y+=1)b=oe(b,T[y]);return{c(){e=B("svg"),v&&v.c(),t=B("g"),n=B("path"),o=B("path"),l=B("defs"),r=B("filter"),a=B("feFlood"),s=B("feColorMatrix"),u=B("feOffset"),f=B("feGaussianBlur"),p=B("feColorMatrix"),h=B("feBlend"),k=B("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(k,"in","SourceGraphic"),c(k,"in2","effect1_dropShadow_2340_106922"),c(k,"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"),ge(e,b)},m(y,I){S(y,e,I),v&&v.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,k),g=!0},p(y,[I]){v&&v.p&&(!g||I&2)&&Te(v,w,y,y[1],g?Pe(w,y[1],I,null):Ee(y[1]),null),ge(e,b=Le(T,[{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(v,y),g=!0)},o(y){_(v,y),g=!1},d(y){y&&C(e),v&&v.d(y)}}}function V5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Wu=class extends K{constructor(e){super(),W(this,e,V5,M5,U,{})}},f0=Wu;function L5(i){let e,t;return e=new f0({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function R5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Gu=class extends K{constructor(e){super(),W(this,e,R5,L5,U,{reversed:1})}},d0=Gu;function B5(i){Se(i,"svelte-4ftgwp",`.hot-key-helpers-container.svelte-4ftgwp.svelte-4ftgwp{position:absolute;top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;animation:svelte-4ftgwp-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box}.hot-key-helpers-container.svelte-4ftgwp>div.svelte-4ftgwp{width:48px;height:48px;display:flex;justify-content:center;align-items:center}.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="volume-off-icon"],.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="volume-max-icon"]{transform:scale(2)}.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="replay-icon"],.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="play-icon"],.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="pause-icon"]{transform:scale(2.5)}.hot-key-helpers-container--left.svelte-4ftgwp.svelte-4ftgwp{left:calc(25% - 100px)}.hot-key-helpers-container--right.svelte-4ftgwp.svelte-4ftgwp{left:calc(75% - 100px)}.hot-key-helpers-text.svelte-4ftgwp.svelte-4ftgwp{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-4ftgwp.svelte-4ftgwp{visibility:hidden;animation:svelte-4ftgwp-fadeOut ease var(--controls-transition-duration);width:0;height:0}@keyframes svelte-4ftgwp-fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes svelte-4ftgwp-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,k,g,w,v,T=t&&p0(i),b=i[4]==="PAUSE"&&_0(i),y=i[4]==="PLAY"&&h0(i),I=i[4]==="REPLAY"&&g0(i),Z=i[4]==="SUBTITLES_OFF"&&b0(i),N=i[4]==="SUBTITLES_ON"&&v0(i),z=u&&y0(i),se=p&&k0(i),ae=i[4]==="MUTE"&&w0(i),F=i[4]==="VOLUME"&&C0(i),x=i[5]&&S0(i);return{c(){e=P("div"),T&&T.c(),n=D(),b&&b.c(),o=D(),y&&y.c(),l=D(),I&&I.c(),r=D(),Z&&Z.c(),a=D(),N&&N.c(),s=D(),z&&z.c(),f=D(),se&&se.c(),h=D(),ae&&ae.c(),k=D(),F&&F.c(),g=D(),x&&x.c(),w=at(),c(e,"class","svelte-4ftgwp")},m(E,X){S(E,e,X),T&&T.m(e,null),m(e,n),b&&b.m(e,null),m(e,o),y&&y.m(e,null),m(e,l),I&&I.m(e,null),m(e,r),Z&&Z.m(e,null),m(e,a),N&&N.m(e,null),m(e,s),z&&z.m(e,null),m(e,f),se&&se.m(e,null),m(e,h),ae&&ae.m(e,null),m(e,k),F&&F.m(e,null),S(E,g,X),x&&x.m(E,X),S(E,w,X),v=!0},p(E,X){X&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(E[4])),t?T?(T.p(E,X),X&16&&d(T,1)):(T=p0(E),T.c(),d(T,1),T.m(e,n)):T&&(ue(),_(T,1,1,()=>{T=null}),ce()),E[4]==="PAUSE"?b?X&16&&d(b,1):(b=_0(E),b.c(),d(b,1),b.m(e,o)):b&&(ue(),_(b,1,1,()=>{b=null}),ce()),E[4]==="PLAY"?y?X&16&&d(y,1):(y=h0(E),y.c(),d(y,1),y.m(e,l)):y&&(ue(),_(y,1,1,()=>{y=null}),ce()),E[4]==="REPLAY"?I?X&16&&d(I,1):(I=g0(E),I.c(),d(I,1),I.m(e,r)):I&&(ue(),_(I,1,1,()=>{I=null}),ce()),E[4]==="SUBTITLES_OFF"?Z?X&16&&d(Z,1):(Z=b0(E),Z.c(),d(Z,1),Z.m(e,a)):Z&&(ue(),_(Z,1,1,()=>{Z=null}),ce()),E[4]==="SUBTITLES_ON"?N?X&16&&d(N,1):(N=v0(E),N.c(),d(N,1),N.m(e,s)):N&&(ue(),_(N,1,1,()=>{N=null}),ce()),X&16&&(u=["RATE_DOWN","RATE_UP"].includes(E[4])),u?z?(z.p(E,X),X&16&&d(z,1)):(z=y0(E),z.c(),d(z,1),z.m(e,f)):z&&(ue(),_(z,1,1,()=>{z=null}),ce()),X&16&&(p=["EPISODE_PREV","EPISODE_NEXT"].includes(E[4])),p?se?(se.p(E,X),X&16&&d(se,1)):(se=k0(E),se.c(),d(se,1),se.m(e,h)):se&&(ue(),_(se,1,1,()=>{se=null}),ce()),E[4]==="MUTE"?ae?X&16&&d(ae,1):(ae=w0(E),ae.c(),d(ae,1),ae.m(e,k)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),ce()),E[4]==="VOLUME"?F?X&16&&d(F,1):(F=C0(E),F.c(),d(F,1),F.m(e,null)):F&&(ue(),_(F,1,1,()=>{F=null}),ce()),E[5]?x?x.p(E,X):(x=S0(E),x.c(),x.m(w.parentNode,w)):x&&(x.d(1),x=null)},i(E){v||(d(T),d(b),d(y),d(I),d(Z),d(N),d(z),d(se),d(ae),d(F),v=!0)},o(E){_(T),_(b),_(y),_(I),_(Z),_(N),_(z),_(se),_(ae),_(F),v=!1},d(E){E&&(C(e),C(g),C(w)),T&&T.d(),b&&b.d(),y&&y.d(),I&&I.d(),Z&&Z.d(),N&&N.d(),z&&z.d(),se&&se.d(),ae&&ae.d(),F&&F.d(),x&&x.d(E)}}}function p0(i){let e,t;return e=new r0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="FORWARD_SEEK"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function _0(i){let e,t;return e=new Tr({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function h0(i){let e,t;return e=new ul({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function g0(i){let e,t;return e=new qr({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function b0(i){let e,t;return e=new Uu({props:{isOff:!0}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function v0(i){let e,t;return e=new Uu({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function y0(i){let e,t;return e=new c0({props:{reversed:i[4]==="RATE_UP"}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="RATE_UP"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function k0(i){let e,t;return e=new d0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="EPISODE_NEXT"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function w0(i){let e,t;return e=new Oo({props:{volume:0}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function C0(i){let e,t;return e=new Oo({props:{volume:1}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function S0(i){let e,t;return{c(){e=P("span"),t=Ae(i[5]),c(e,"class","hot-key-helpers-text svelte-4ftgwp")},m(n,o){S(n,e,o),m(e,t)},p(n,o){o&32&&je(t,n[5])},d(n){n&&C(e)}}}function D5(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-4ftgwp"),q(e,"hidden",i[1]),q(e,"hot-key-helpers-container--left",i[2]),q(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&&(ue(),_(n,1,1,()=>{n=null}),ce()),(!t||l&2)&&q(e,"hidden",o[1]),(!t||l&4)&&q(e,"hot-key-helpers-container--left",o[2]),(!t||l&8)&&q(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&C(e),n&&n.d()}}}function N5(i,e,t){let n,o=_e,l=()=>(o(),o=zt(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=()=>{if(i.$$.dirty&64)e: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=j(n.t.key,{value:n.t.value||""})):t(5,p=n?.text)},[r,a,s,u,f,p,n]}var Qu=class extends K{constructor(e){super(),W(this,e,N5,D5,U,{data:0},B5)}},I0=Qu;function q5(i){Se(i,"svelte-1yzc86r",".immersive-controls.svelte-1yzc86r{position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn)}.immersive-controls.m-shifted.svelte-1yzc86r{top:50px;left:20px}.button-block.svelte-1yzc86r{width:40px;height:40px;margin:auto auto;transform:rotate(45deg)}.button-row.svelte-1yzc86r{display:flex;flex-direction:row;position:relative}.button.svelte-1yzc86r{width:20px;height:20px;text-align:center;cursor:pointer}.button.svelte-1yzc86r svg{opacity:0.7;transition:opacity linear 0.2s}.button.button-up.svelte-1yzc86r svg{transform:rotate(-45deg) translate(-1px, -1px)}.button.button-right.svelte-1yzc86r svg{transform:rotate(45deg) translate(1px, -1px)}.button.button-down.svelte-1yzc86r svg{transform:rotate(135deg) translate(1px, -3px)}.button.button-left.svelte-1yzc86r svg{transform:rotate(-135deg) translate(-1px, -3px)}.button.svelte-1yzc86r:hover svg{opacity:1}")}function O5(i){let e,t,n,o,l,r,a,s,u,f,p,h,k,g,w,v,T,b,y;return l=new jn({props:{direction:"up"}}),s=new jn({props:{direction:"up"}}),h=new jn({props:{direction:"up"}}),w=new jn({props:{direction:"up"}}),{c(){e=P("div"),t=P("div"),n=P("div"),o=P("div"),R(l.$$.fragment),r=D(),a=P("div"),R(s.$$.fragment),u=D(),f=P("div"),p=P("div"),R(h.$$.fragment),k=D(),g=P("div"),R(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",v=j("aria_label_spherical_control")),q(e,"m-shifted",i[0])},m(I,Z){S(I,e,Z),m(e,t),m(t,n),m(n,o),M(l,o,null),m(n,r),m(n,a),M(s,a,null),m(t,u),m(t,f),m(f,p),M(h,p,null),m(f,k),m(f,g),M(w,g,null),T=!0,b||(y=[de(o,"mousedown",i[1]),de(o,"mouseup",i[5]),de(o,"mouseleave",i[5]),de(a,"mousedown",i[3]),de(a,"mouseup",i[5]),de(a,"mouseleave",i[5]),de(p,"mousedown",i[4]),de(p,"mouseup",i[5]),de(p,"mouseleave",i[5]),de(g,"mousedown",i[2]),de(g,"mouseup",i[5]),de(g,"mouseleave",i[5]),de(e,"keydown",i[6]),de(e,"keyup",i[7])],b=!0)},p(I,[Z]){(!T||Z&1)&&q(e,"m-shifted",I[0])},i(I){T||(d(l.$$.fragment,I),d(s.$$.fragment,I),d(h.$$.fragment,I),d(w.$$.fragment,I),T=!0)},o(I){_(l.$$.fragment,I),_(s.$$.fragment,I),_(h.$$.fragment,I),_(w.$$.fragment,I),T=!1},d(I){I&&C(e),V(l),V(s),V(h),V(w),b=!1,et(y)}}}function F5(i,e,t){let{isShifted:n=!1}=e,o=tt(),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=k=>{if(l.has(k.code))switch(k.preventDefault(),k.stopPropagation(),k.code){case"ArrowUp":r();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},h=k=>{l.has(k.code)&&(k.preventDefault(),k.stopPropagation(),f())};return i.$$set=k=>{"isShifted"in k&&t(0,n=k.isShifted)},[n,r,a,s,u,f,p,h]}var Yu=class extends K{constructor(e){super(),W(this,e,F5,O5,U,{isShifted:0},q5)}},Zr=Yu;function H5(i){Se(i,"svelte-ovfyp5",".subtitles-container.svelte-ovfyp5.svelte-ovfyp5{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.svelte-ovfyp5.svelte-ovfyp5{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.svelte-ovfyp5.svelte-ovfyp5{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.svelte-ovfyp5.svelte-ovfyp5{bottom:8%}.subtitles-container.auto.svelte-ovfyp5 .subtitles-caption.svelte-ovfyp5{left:24%;right:24%}.caption.svelte-ovfyp5.svelte-ovfyp5{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.svelte-ovfyp5 .caption.svelte-ovfyp5{width:100%}.caption-line.svelte-ovfyp5.svelte-ovfyp5{display:block;text-align:center}.subtitles-container.auto.svelte-ovfyp5 .caption-line.svelte-ovfyp5{text-align:left}.caption-segment.svelte-ovfyp5.svelte-ovfyp5{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function P0(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]?K5:r[5]?U5:z5}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"),q(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&&q(e,"mobile",r[3])},d(r){r&&C(e),l.d()}}}function z5(i){let e,t=wt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=A0(P0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=at()},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=wt(o[1]);let r;for(r=0;r<t.length;r+=1){let a=P0(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&&C(e),Ci(n,o)}}}function U5(i){let e,t,n=wt(i[6]),o=[];for(let l=0;l<n.length;l+=1)o[l]=V0(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"),mi(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=wt(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]=V0(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&&mi(t,"font-size",l[4]+"px")},d(l){l&&C(e),Ci(o,l)}}}function K5(i){let e,t,n=j("subtitles_auto_caption")+"",o;return{c(){e=P("span"),t=P("span"),o=Ae(n),c(t,"class","caption-segment svelte-ovfyp5"),mi(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&&mi(t,"font-size",l[4]+"px")},d(l){l&&C(e)}}}function A0(i){let e,t,n=i[16]+"",o,l;return{c(){e=P("span"),t=P("span"),o=Ae(n),l=D(),c(t,"class","caption-segment svelte-ovfyp5"),mi(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]+"")&&je(o,n),a&16&&mi(t,"font-size",r[4]+"px")},d(r){r&&C(e)}}}function M0(i){let e=i[16]+"",t;return{c(){t=Ae(e)},m(n,o){S(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&je(t,e)},d(n){n&&C(t)}}}function V0(i){let e,t=(!i[17]||i[17]<=i[2])&&M0(i);return{c(){t&&t.c(),e=at()},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=M0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&C(e),t&&t.d(n)}}}function j5(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"),q(e,"shifted",i[0]),q(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&&q(e,"shifted",n[0]),o&288&&q(e,"auto",n[5]&&!n[8])},i:_e,o:_e,d(n){n&&C(e),t&&t.d()}}}function W5(i,e,t){let n,o,{shifted:l}=e,{captions:r}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,f=tt(),p=Bt(),h=f.state.currentSubtitle$;O(i,h,y=>t(12,n=y));let k=f.state.isAutoSubtitleCaptionVisible$;O(i,k,y=>t(8,o=y));let g,w,v,T,b;return Tt(()=>{b=window.setTimeout(()=>{k.set(!1)},p.autoSubtitlesTimeout)}),zn(()=>{window.clearTimeout(b)}),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)e:{let y=s.width*.02;t(4,g=y<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:y)}if(i.$$.dirty&2)e:t(5,w=r.some(y=>y.type==="timestamp"));if(i.$$.dirty&2)e:t(6,v=r.reduce((y,{type:I,value:Z})=>(I==="timestamp"?y.push({timeAppeared:Number(Z),value:""}):y.length===0?y.push({value:String(Z)}):y[y.length-1].value=String(Z),y),[]));if(i.$$.dirty&4096)e:t(7,T=!!n.isAuto)},[l,r,a,u,g,w,v,T,o,h,k,s,n]}var Zu=class extends K{constructor(e){super(),W(this,e,W5,j5,U,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},H5)}},Xr=Zu;function G5(i){Se(i,"svelte-1o62kpz",".wrapper.svelte-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.svelte-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.svelte-1o62kpz{width:50px;height:50px}.text.svelte-1o62kpz{margin-top:20px}")}function L0(i){let e,t,n;return{c(){e=P("div"),t=Ae("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Ae(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&&je(n,o[1])},d(o){o&&C(e)}}}function Q5(i){let e,t,n,o,l,r,a=i[1]&&L0(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=D(),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=de(e,"click",i[2]),l=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=L0(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:_e,o:_e,d(s){s&&C(e),a&&a.d(),l=!1,r()}}}function Y5(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 Xu=class extends K{constructor(e){super(),W(this,e,Y5,Q5,U,{thumbUrl:0,chromecastDeviceName:1},G5)}},Jr=Xu;function Z5(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function X5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Ju=class extends K{constructor(e){super(),W(this,e,X5,Z5,U,{})}},R0=Ju;function J5(i){Se(i,"svelte-13zpvm8",".container.svelte-13zpvm8{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}")}function x5(i){let e,t,n;return t=new R0({}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","container svelte-13zpvm8")},m(o,l){S(o,e,l),M(t,e,null),n=!0},p:_e,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),V(t)}}}var xu=class extends K{constructor(e){super(),W(this,e,null,x5,U,{},J5)}},xr=xu;function $5(i){Se(i,"svelte-17wno3",".container.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:cover;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.svelte-17wno3.svelte-17wno3{opacity:0;visibility:hidden}.playButton.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.svelte-17wno3:hover .playButtonBackground.svelte-17wno3{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.svelte-17wno3 svg{transform:scale(2)}")}function e6(i){let e,t,n,o,l,r,a,s,u,f;return l=new ul({}),{c(){e=P("div"),t=P("div"),n=P("div"),o=D(),R(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=j("tooltip_play")),c(e,"class","container svelte-17wno3"),c(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),q(e,"hidden",i[1])},m(p,h){S(p,e,h),m(e,t),m(t,n),m(t,o),M(l,t,null),s=!0,u||(f=[de(t,"keydown",i[3]),de(e,"click",st(function(){wi(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)&&q(e,"hidden",i[1])},i(p){s||(d(l.$$.fragment,p),s=!0)},o(p){_(l.$$.fragment,p),s=!1},d(p){p&&C(e),V(l),u=!1,et(f)}}}function t6(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:l}=e,a=tt().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 $u=class extends K{constructor(e){super(),W(this,e,t6,e6,U,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},$5)}get handlePressKey(){return this.$$.ctx[3]}},$r=$u;function i6(i){Se(i,"svelte-1bcvcf2",`.title.svelte-1bcvcf2{position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
|
|
28
28
|
0deg,
|
|
29
29
|
rgba(0, 0, 0, 0) 0%,
|
|
30
30
|
rgba(0, 0, 0, 0.02) 19%,
|
|
31
31
|
rgba(0, 0, 0, 0.10) 34%,
|
|
32
32
|
rgba(0, 0, 0, 0.40) 60%,
|
|
33
33
|
rgba(0, 0, 0, 0.60) 100%
|
|
34
|
-
)}.hidden.svelte-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function o6(i){let e,t;return{c(){e=I("div"),t=Ve(i[0]),c(e,"class","title svelte-1bcvcf2"),q(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&&q(e,"hidden",n[1])},i:_e,o:_e,d(n){n&&C(e)}}}function l6(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"isHidden"in r&&t(1,o=r.isHidden)},[n,o]}var ec=class extends K{constructor(e){super(),G(this,e,l6,o6,U,{title:0,isHidden:1},n6)}},B0=ec;function r6(i){Ie(i,"svelte-1qpxtfg",".timer__container.svelte-1qpxtfg{display:flex;align-items:flex-start;justify-content:center}.cell.svelte-1qpxtfg{display:flex;flex-direction:column;align-items:center;width:62px}.cell__value.svelte-1qpxtfg{font-size:48px;line-height:1.2;font-weight:700}.cell__unit.svelte-1qpxtfg{font-size:14px;line-height:1.2;font-weight:400}.timer__points.svelte-1qpxtfg{display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600}")}function D0(i){let e,t,n,o,r,l,a;return{c(){e=I("div"),t=I("span"),n=Ve(i[0]),o=D(),r=I("span"),r.textContent=`${j("waiting_live_day_value")}`,l=D(),a=I("span"),a.textContent=`${j("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(r,"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,r),S(s,l,u),S(s,a,u)},p(s,u){u&1&&We(n,s[0])},d(s){s&&(C(e),C(l),C(a))}}}function N0(i){let e,t,n,o,r,l,a;return{c(){e=I("div"),t=I("span"),n=Ve(i[1]),o=D(),r=I("span"),r.textContent=`${j("waiting_live_hour_value")}`,l=D(),a=I("span"),a.textContent=`${j("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(r,"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,r),S(s,l,u),S(s,a,u)},p(s,u){u&2&&We(n,s[1])},d(s){s&&(C(e),C(l),C(a))}}}function q0(i){let e,t,n,o,r,l,a;return{c(){e=I("div"),t=I("span"),n=Ve(i[2]),o=D(),r=I("span"),r.textContent=`${j("waiting_live_minute_value")}`,l=D(),a=I("span"),a.textContent=`${j("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(r,"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,r),S(s,l,u),S(s,a,u)},p(s,u){u&4&&We(n,s[2])},d(s){s&&(C(e),C(l),C(a))}}}function O0(i){let e,t,n,o,r;return{c(){e=I("div"),t=I("span"),n=Ve(i[3]),o=D(),r=I("span"),r.textContent=`${j("waiting_live_second_value")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(r,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg")},m(l,a){S(l,e,a),m(e,t),m(t,n),m(e,o),m(e,r)},p(l,a){a&8&&We(n,l[3])},d(l){l&&C(e)}}}function s6(i){let e,t,n,o,r=i[0]&&D0(i),l=i[1]&&N0(i),a=i[2]&&q0(i),s=i[3]&&O0(i);return{c(){e=I("div"),r&&r.c(),t=D(),l&&l.c(),n=D(),a&&a.c(),o=D(),s&&s.c(),c(e,"class","timer__container svelte-1qpxtfg")},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,t),l&&l.m(e,null),m(e,n),a&&a.m(e,null),m(e,o),s&&s.m(e,null)},p(u,[f]){u[0]?r?r.p(u,f):(r=D0(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?l?l.p(u,f):(l=N0(u),l.c(),l.m(e,n)):l&&(l.d(1),l=null),u[2]?a?a.p(u,f):(a=q0(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:_e,o:_e,d(u){u&&C(e),r&&r.d(),l&&l.d(),a&&a.d(),s&&s.d()}}}function a6(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,l,a,s,u,f=k=>String(k).padStart(2,"0"),p=k=>{let g=Math.floor(k/86400);g&&(k-=g*86400,t(0,r=f(g)));let w=Math.floor(k/3600);t(1,l=f(w));let v=Math.floor(k/60)%60;t(2,a=f(v));let E=k%60;t(3,s=f(E))},h=()=>{let k=Math.floor(Date.now()/1e3),g=n-k;p(g),g>=1?u=requestAnimationFrame(h):o()};return Pt(()=>{u=requestAnimationFrame(h)}),Hn(()=>{cancelAnimationFrame(u)}),i.$$set=k=>{"startTime"in k&&t(4,n=k.startTime),"onTimerOver"in k&&t(5,o=k.onTimerOver)},[r,l,a,s,n,o]}var tc=class extends K{constructor(e){super(),G(this,e,a6,s6,U,{startTime:4,onTimerOver:5},r6)}},F0=tc;function u6(i){let e,t,n,o,r,l,a=i[2].default,s=Pe(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=ne(f,u[p]);return{c(){e=B("svg"),s&&s.c(),t=B("path"),n=B("path"),o=B("path"),r=B("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(r,"fill","#fefffe"),c(r,"d","M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54"),pi(r,"opacity",".986"),ge(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,r),l=!0},p(p,[h]){s&&s.p&&(!l||h&2)&&Ee(s,a,p,p[1],l?Te(a,p[1],h,null):Ae(p[1]),null),ge(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){l||(d(s,p),l=!0)},o(p){_(s,p),l=!1},d(p){p&&C(e),s&&s.d(p)}}}function c6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ic=class extends K{constructor(e){super(),G(this,e,c6,u6,U,{})}},H0=ic;function f6(i){Ie(i,"svelte-15pewff",".waiting-container.svelte-15pewff{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat}.waiting-container.svelte-15pewff::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1}.upcoming.svelte-15pewff{position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0}.upcoming-icon.svelte-15pewff{width:20%;max-width:200px;margin-bottom:20px}.upcoming__title.svelte-15pewff{font-size:14px;line-height:1.2;font-weight:400}.waiting-timer.svelte-15pewff{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2}.timer.svelte-15pewff{display:flex;flex-direction:column;align-items:center;justify-content:center}.timer__title.svelte-15pewff{display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400}")}function d6(i){let e,t,n,o,r;return o=new F0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=I("div"),t=I("span"),t.textContent=`${j("waiting_live_timer_title")}`,n=D(),R(o.$$.fragment),c(t,"class","timer__title svelte-15pewff"),c(e,"class","waiting-timer timer svelte-15pewff")},m(l,a){S(l,e,a),m(e,t),m(e,n),V(o,e,null),r=!0},p(l,a){let s={};a&2&&(s.startTime=l[1]||0),a&4&&(s.onTimerOver=l[3]),o.$set(s)},i(l){r||(d(o.$$.fragment,l),r=!0)},o(l){_(o.$$.fragment,l),r=!1},d(l){l&&C(e),L(o)}}}function m6(i){let e,t,n,o,r,l;return n=new H0({}),{c(){e=I("div"),t=I("div"),R(n.$$.fragment),o=D(),r=I("span"),r.textContent=`${j("waiting_live_upcoming_title")}`,c(t,"class","upcoming-icon svelte-15pewff"),c(r,"class","upcoming__title svelte-15pewff"),c(e,"class","upcoming svelte-15pewff")},m(a,s){S(a,e,s),m(e,t),V(n,t,null),m(e,o),m(e,r),l=!0},p:_e,i(a){l||(d(n.$$.fragment,a),l=!0)},o(a){_(n.$$.fragment,a),l=!1},d(a){a&&C(e),L(n)}}}function p6(i){let e,t,n,o,r,l=[m6,d6],a=[];function s(u,f){return u[2]?0:1}return t=s(i,-1),n=a[t]=l[t](i),{c(){e=I("div"),n.c(),c(e,"class","waiting-container svelte-15pewff"),c(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,f){S(u,e,f),a[t].m(e,null),r=!0},p(u,[f]){let p=t;t=s(u,f),t===p?a[t].p(u,f):(se(),_(a[p],1,1,()=>{a[p]=null}),ae(),n=a[t],n?n.p(u,f):(n=a[t]=l[t](u),n.c()),d(n,1),n.m(e,null)),(!r||f&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&c(e,"style",o)},i(u){r||(d(n),r=!0)},o(u){_(n),r=!1},d(u){u&&C(e),a[t].d()}}}function _6(i,e,t){let n,{thumbUrl:o}=e,{startTime:r}=e,l=()=>t(2,n=!0);return i.$$set=a=>{"thumbUrl"in a&&t(0,o=a.thumbUrl),"startTime"in a&&t(1,r=a.startTime)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(2,n=r===void 0||r<Math.floor(Date.now()/1e3))},[o,r,n,l]}var nc=class extends K{constructor(e){super(),G(this,e,_6,p6,U,{thumbUrl:0,startTime:1},f6)}},es=nc;function h6(i){Ie(i,"svelte-1bcnzdw",".waiting-container.svelte-1bcnzdw{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black)}.waiting-title.svelte-1bcnzdw{padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400}")}function g6(i){let e,t;return{c(){e=I("div"),t=I("p"),t.textContent=`${j("waiting_record_title")}`,c(t,"class","waiting-title svelte-1bcnzdw"),c(e,"class","waiting-container svelte-1bcnzdw")},m(n,o){S(n,e,o),m(e,t)},p:_e,i:_e,o:_e,d(n){n&&C(e)}}}var oc=class extends K{constructor(e){super(),G(this,e,null,g6,U,{},h6)}},ts=oc;var{window:b6}=So;function y6(i){Ie(i,"svelte-1o4wf3x",".player-wrapper.svelte-1o4wf3x{position:absolute;width:100%;height:100%}.player-wrapper.svelte-1o4wf3x .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-1o4wf3x{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-1o4wf3x,.video-container.svelte-1o4wf3x,.ads-container.svelte-1o4wf3x{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-1o4wf3x{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-1o4wf3x{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-1o4wf3x{transition:none}.nocursor.svelte-1o4wf3x{cursor:none}.ads-container.svelte-1o4wf3x{background:var(--black)}")}function U0(i){let e,t;return e=new es({props:{thumbUrl:i[3],startTime:i[4]?.startTime}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),o[0]&16&&(r.startTime=n[4]?.startTime),e.$set(r)},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 ts({}),{c(){R(e.$$.fragment)},m(n,o){V(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 j0(i){let e,t,n;return t=new lr({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=I("div"),R(t.$$.fragment),c(e,"class","ads-container svelte-1o4wf3x"),q(e,"hidden",i[38]!=="ads")},m(o,r){S(o,e,r),V(t,e,null),n=!0},p(o,r){let l={};r[0]&256&&(l.adsSlotId=o[8]),r[0]&512&&(l.adsParams=o[9]),r[0]&1024&&(l.adsPreviewParam=o[10]),r[0]&2048&&(l.duration=o[11]),t.$set(l),(!n||r[1]&128)&&q(e,"hidden",o[38]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),L(t)}}}function W0(i){let e,t;return e=new _d({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&262144&&(r.title=n[18]),o[0]&524288&&(r.thumb=n[19]),o[0]&8388608&&(r.playNextVideo=n[23]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function G0(i){let e,t;return e=new B0({props:{title:i[2],isHidden:!i[36]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.title=n[2]),o[1]&32&&(r.isHidden=!n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Q0(i){let e,t;return e=new Zr({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[1]&160&&(r.isShifted=n[38]==="video"&&n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Y0(i){let e,t,n;return t=new Zl({props:{"aria-label":j("video360")}}),{c(){e=I("div"),R(t.$$.fragment),c(e,"class","spherical-video-icon svelte-1o4wf3x")},m(o,r){S(o,e,r),V(t,e,null),n=!0},p:_e,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),L(t)}}}function Z0(i){let e,t;return e=new Jr({props:{thumbUrl:i[3],chromecastDeviceName:i[54]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),o[1]&8388608&&(r.chromecastDeviceName=n[54]),e.$set(r)},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;return e=new Xr({props:{shifted:i[36],captions:i[56],position:i[57],playerSize:i[34]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[1]&32&&(r.shifted=n[36]),o[1]&33554432&&(r.captions=n[56]),o[1]&67108864&&(r.position=n[57]),o[1]&8&&(r.playerSize=n[34]),e.$set(r)},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,o,r;return t=new xr({}),{c(){e=I("div"),R(t.$$.fragment)},m(l,a){S(l,e,a),V(t,e,null),n=!0,o||(r=[de(e,"contextmenu",It(i[108])),de(e,"click",at(i[119]))],o=!0)},p:_e,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&C(e),L(t),o=!1,et(r)}}}function x0(i){let e,t,n;function o(l){i[157](l)}let r={bottomHidden:i[38]==="thumb"||i[38]==="waitingLive"||i[38]==="waitingRecord",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:np,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[106],returnFocus:i[156],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};return i[41]!==void 0&&(r.controlsElementRef=i[41]),e=new Yr({props:r}),me.push(()=>qe(e,"controlsElementRef",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&128&&(s.bottomHidden=l[38]==="thumb"||l[38]==="waitingLive"||l[38]==="waitingRecord"),a[1]&524288&&(s.bottomNoSmooth=l[50]),a[1]&32&&(s.showControls=l[36]),a[1]&128&&(s.isAds=l[38]==="ads"),a[0]&64|a[1]&134217728&&(s.canRewindLive=l[6]&&l[58]!==0),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&16384&&(s.logoTargetUrl=l[14]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&8388608&&(s.playNextVideo=l[23]),a[0]&16777216&&(s.playPrevVideo=l[24]),a[0]&33554432&&(s.repeatPlaylist=l[25]),a[1]&131072&&(s.returnFocus=l[156]),a[0]&67108864&&(s.seekToInteractive=l[26]),a[0]&134217728&&(s.toggleGraph=l[27]),a[0]&268435456&&(s.playPrevChapter=l[28]),!t&&a[1]&1024&&(t=!0,s.controlsElementRef=l[41],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function $0(i){let e,t;return e=new _r({}),{c(){R(e.$$.fragment)},m(n,o){V(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 ep(i){let e,t;return e=new Id({}),{c(){R(e.$$.fragment)},m(n,o){V(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 dr({}),{c(){R(e.$$.fragment)},m(n,o){V(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,n,o,r,l,a,s,u,f,p,h,k,g,w,v,E,b,y,T,W,F,O,le;e=new $r({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let re=i[38]==="waitingLive"&&U0(i),H=i[38]==="waitingRecord"&&K0(i),A=i[7]&&i[22]&&j0(i),J=i[31]&&i[18]&&i[19]&&W0(i),Y=i[44]&&G0(i),ce=i[49]&&Q0(i),Z=i[53]&&Y0(i),oe=i[39]&&Z0(i),P=i[55].value!=="off"&&X0(i),N=i[37]&&J0(i),Me=i[22]&&x0(i);g=new sr({props:{isLive:i[59],isHidden:!i[43],isPlaying:i[51],position:i[57],duration:i[60]}}),v=new I0({props:{data:i[103]}});function Ue(x){i[159](x)}let Ge={supportLink:i[21],returnFocus:i[158],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(Ge.menuElementRef=i[32]),b=new Zf({props:Ge}),me.push(()=>qe(b,"menuElementRef",Ue));let Qe=i[42]&&$0(i),Le=i[62]&&ep(i),be=i[63]&&tp(i);return{c(){R(e.$$.fragment),t=D(),re&&re.c(),n=D(),H&&H.c(),o=D(),A&&A.c(),r=D(),J&&J.c(),l=D(),Y&&Y.c(),a=D(),ce&&ce.c(),s=D(),Z&&Z.c(),u=D(),oe&&oe.c(),f=D(),P&&P.c(),p=D(),N&&N.c(),h=D(),Me&&Me.c(),k=D(),R(g.$$.fragment),w=D(),R(v.$$.fragment),E=D(),R(b.$$.fragment),T=D(),Qe&&Qe.c(),W=D(),Le&&Le.c(),F=D(),be&&be.c(),O=ut()},m(x,Se){V(e,x,Se),S(x,t,Se),re&&re.m(x,Se),S(x,n,Se),H&&H.m(x,Se),S(x,o,Se),A&&A.m(x,Se),S(x,r,Se),J&&J.m(x,Se),S(x,l,Se),Y&&Y.m(x,Se),S(x,a,Se),ce&&ce.m(x,Se),S(x,s,Se),Z&&Z.m(x,Se),S(x,u,Se),oe&&oe.m(x,Se),S(x,f,Se),P&&P.m(x,Se),S(x,p,Se),N&&N.m(x,Se),S(x,h,Se),Me&&Me.m(x,Se),S(x,k,Se),V(g,x,Se),S(x,w,Se),V(v,x,Se),S(x,E,Se),V(b,x,Se),S(x,T,Se),Qe&&Qe.m(x,Se),S(x,W,Se),Le&&Le.m(x,Se),S(x,F,Se),be&&be.m(x,Se),S(x,O,Se),le=!0},p(x,Se){let $e={};Se[0]&32|Se[1]&192&&($e.hidden=x[38]!=="thumb"||x[37]||x[92]&&x[5]),Se[0]&8&&($e.thumbUrl=x[3]),Se[0]&536870912&&($e.startVideo=x[29]),e.$set($e),x[38]==="waitingLive"?re?(re.p(x,Se),Se[1]&128&&d(re,1)):(re=U0(x),re.c(),d(re,1),re.m(n.parentNode,n)):re&&(se(),_(re,1,1,()=>{re=null}),ae()),x[38]==="waitingRecord"?H?Se[1]&128&&d(H,1):(H=K0(x),H.c(),d(H,1),H.m(o.parentNode,o)):H&&(se(),_(H,1,1,()=>{H=null}),ae()),x[7]&&x[22]?A?(A.p(x,Se),Se[0]&4194432&&d(A,1)):(A=j0(x),A.c(),d(A,1),A.m(r.parentNode,r)):A&&(se(),_(A,1,1,()=>{A=null}),ae()),x[31]&&x[18]&&x[19]?J?(J.p(x,Se),Se[0]&786432|Se[1]&1&&d(J,1)):(J=W0(x),J.c(),d(J,1),J.m(l.parentNode,l)):J&&(se(),_(J,1,1,()=>{J=null}),ae()),x[44]?Y?(Y.p(x,Se),Se[1]&8192&&d(Y,1)):(Y=G0(x),Y.c(),d(Y,1),Y.m(a.parentNode,a)):Y&&(se(),_(Y,1,1,()=>{Y=null}),ae()),x[49]?ce?(ce.p(x,Se),Se[1]&262144&&d(ce,1)):(ce=Q0(x),ce.c(),d(ce,1),ce.m(s.parentNode,s)):ce&&(se(),_(ce,1,1,()=>{ce=null}),ae()),x[53]?Z?(Z.p(x,Se),Se[1]&4194304&&d(Z,1)):(Z=Y0(x),Z.c(),d(Z,1),Z.m(u.parentNode,u)):Z&&(se(),_(Z,1,1,()=>{Z=null}),ae()),x[39]?oe?(oe.p(x,Se),Se[1]&256&&d(oe,1)):(oe=Z0(x),oe.c(),d(oe,1),oe.m(f.parentNode,f)):oe&&(se(),_(oe,1,1,()=>{oe=null}),ae()),x[55].value!=="off"?P?(P.p(x,Se),Se[1]&16777216&&d(P,1)):(P=X0(x),P.c(),d(P,1),P.m(p.parentNode,p)):P&&(se(),_(P,1,1,()=>{P=null}),ae()),x[37]?N?(N.p(x,Se),Se[1]&64&&d(N,1)):(N=J0(x),N.c(),d(N,1),N.m(h.parentNode,h)):N&&(se(),_(N,1,1,()=>{N=null}),ae()),x[22]?Me?(Me.p(x,Se),Se[0]&4194304&&d(Me,1)):(Me=x0(x),Me.c(),d(Me,1),Me.m(k.parentNode,k)):Me&&(se(),_(Me,1,1,()=>{Me=null}),ae());let He={};Se[1]&268435456&&(He.isLive=x[59]),Se[1]&4096&&(He.isHidden=!x[43]),Se[1]&1048576&&(He.isPlaying=x[51]),Se[1]&67108864&&(He.position=x[57]),Se[1]&536870912&&(He.duration=x[60]),g.$set(He);let it={};Se[0]&2097152&&(it.supportLink=x[21]),Se[1]&131072&&(it.returnFocus=x[158]),Se[1]&4&&(it.visible=x[33]),Se[1]&512&&(it.playerContainerRef=x[40]),Se[1]&1024&&(it.controlsContainerRef=x[41]),Se[1]&1073741824&&(it.position=x[61]),!y&&Se[1]&2&&(y=!0,it.menuElementRef=x[32],Ne(()=>y=!1)),b.$set(it),x[42]?Qe?Se[1]&2048&&d(Qe,1):(Qe=$0(x),Qe.c(),d(Qe,1),Qe.m(W.parentNode,W)):Qe&&(se(),_(Qe,1,1,()=>{Qe=null}),ae()),x[62]?Le?Se[2]&1&&d(Le,1):(Le=ep(x),Le.c(),d(Le,1),Le.m(F.parentNode,F)):Le&&(se(),_(Le,1,1,()=>{Le=null}),ae()),x[63]?be?Se[2]&2&&d(be,1):(be=tp(x),be.c(),d(be,1),be.m(O.parentNode,O)):be&&(se(),_(be,1,1,()=>{be=null}),ae())},i(x){le||(d(e.$$.fragment,x),d(re),d(H),d(A),d(J),d(Y),d(ce),d(Z),d(oe),d(P),d(N),d(Me),d(g.$$.fragment,x),d(v.$$.fragment,x),d(b.$$.fragment,x),d(Qe),d(Le),d(be),le=!0)},o(x){_(e.$$.fragment,x),_(re),_(H),_(A),_(J),_(Y),_(ce),_(Z),_(oe),_(P),_(N),_(Me),_(g.$$.fragment,x),_(v.$$.fragment,x),_(b.$$.fragment,x),_(Qe),_(Le),_(be),le=!1},d(x){x&&(C(t),C(n),C(o),C(r),C(l),C(a),C(s),C(u),C(f),C(p),C(h),C(k),C(w),C(E),C(T),C(W),C(F),C(O)),L(e,x),re&&re.d(x),H&&H.d(x),A&&A.d(x),J&&J.d(x),Y&&Y.d(x),ce&&ce.d(x),Z&&Z.d(x),oe&&oe.d(x),P&&P.d(x),N&&N.d(x),Me&&Me.d(x),L(g,x),L(v,x),L(b,x),Qe&&Qe.d(x),Le&&Le.d(x),be&&be.d(x)}}}function k6(i){let e,t,n,o,r=i[52],l,a,s,u,f=ip(i);return{c(){e=I("div"),t=I("div"),o=D(),f.c(),l=ut(),c(t,"class","video-container svelte-1o4wf3x"),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]),q(t,"fast-rotate",!i[1].isSmoothVideoRotate),c(e,"class","video-wrapper svelte-1o4wf3x"),q(e,"hidden",i[38]!=="video"),q(e,"nocursor",i[45])},m(p,h){S(p,e,h),m(e,t),i[155](t),S(p,o,h),f.m(p,h),S(p,l,h),a=!0,s||(u=[de(e,"contextmenu",It(i[108])),de(e,"mousedown",It(i[113])),de(e,"mouseup",It(i[114])),de(e,"click",It(i[116])),de(e,"dblclick",It(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)&&q(t,"fast-rotate",!p[1].isSmoothVideoRotate),(!a||h[1]&128)&&q(e,"hidden",p[38]!=="video"),(!a||h[1]&16384)&&q(e,"nocursor",p[45]),h[1]&2097152&&U(r,r=p[52])?(se(),_(f,1,1,_e),ae(),f=ip(p),f.c(),d(f,1),f.m(l.parentNode,l)):f.p(p,h)},i(p){a||(d(f),a=!0)},o(p){_(f),a=!1},d(p){p&&(C(e),C(o),C(l)),i[155](null),f.d(p),s=!1,et(u)}}}function w6(i){let e,t,n,o,r,l,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:[k6]},$$scope:{ctx:i}};return t=new hd({props:s}),i[160](t),{c(){e=I("div"),R(t.$$.fragment),n=D(),o=I("div"),c(o,"class","overlay-container"),c(e,"class","player-wrapper svelte-1o4wf3x")},m(u,f){S(u,e,f),V(t,e,null),m(e,n),m(e,o),i[161](o),i[162](e),r=!0,l||(a=[de(b6,"blur",i[107]),de(e,"mouseenter",i[109]),de(e,"mouseleave",i[111]),de(e,"mousemove",i[112]),de(e,"click",i[120],!0),de(e,"focusin",i[110],!0)],l=!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]&4&&(p.$$scope={dirty:f,ctx:u}),t.$set(p)},i(u){r||(d(t.$$.fragment,u),r=!0)},o(u){_(t.$$.fragment,u),r=!1},d(u){u&&C(e),i[160](null),L(t),i[161](null),i[162](null),l=!1,et(a)}}}var np=!0;function rc(i){return i?i.offsetTop+rc(i.offsetParent):0}function op(i){return i?i.offsetLeft+op(i.offsetParent):0}function C6(i,e,t){let n,o,r,l,a,s,u,f,p,h,k,g,w,v,E,b,y,T,W,F,O,le,re,H,A,J,Y,ce,Z,oe,P,N,Me,Ue,Ge,Qe,Le,be,x,Se,$e,He,it,{store:we}=e,{uiConfig:Ye}=e,{title:ot}=e,{thumbUrl:je}=e,{videoContainer:Ke}=e,{interactiveContainer:Xe}=e,{live:fe}=e,{autoplay:Ce}=e,{canRewindLive:pe}=e,{showAds:Oe}=e,{adsSlotId:ee=void 0}=e,{adsParams:ke=void 0}=e,{adsPreviewParam:rt=void 0}=e,{duration:ye=void 0}=e,{logoClickable:dt}=e,{logoHidden:Fe}=e,{logoTargetUrl:mt=""}=e,{showNextPrevButtons:kt=!1}=e,{nextButtonActive:Tt=!1}=e,{prevButtonActive:Ze=!1}=e,{endScreenVideoTitle:qt=void 0}=e,{endScreenVideoThumb:Vt=void 0}=e,{isOneVideoPlaylist:Ct=!1}=e,{supportLink:si}=e,{shadowRootContainer:st=void 0}=e,{outerContainerRef:gt=void 0}=e,{playerStarted:ve=!1}=e,{fullScreenTarget:_t=void 0}=e,{showMiniTimer:St=!1}=e,{playNextVideo:Jt=lc}=e,{playPrevVideo:bt=lc}=e,{repeatPlaylist:zt=lc}=e,{seekToInteractive:Ut}=e,{toggleGraph:Kt}=e,{playPrevChapter:Oi}=e,{firstStart:xi}=e,xt=we.getLogger().createComponentLog("Root component"),Pi=we.interfaceLanguage$;z(i,Pi,Q=>t(52,N=Q));let an=we.state.playbackState$;z(i,an,Q=>t(152,ce=Q));let hi=we.ads.playbackState;z(i,hi,Q=>t(153,Z=Q));let $i=we.state.positionWithScrubbing$;z(i,$i,Q=>t(57,Le=Q));let ai=we.state.duration$;z(i,ai,Q=>t(60,Se=Q));let Ti=we.playerPhase;z(i,Ti,Q=>t(38,re=Q));let ui=we.ui.isFullscreen;z(i,ui,Q=>t(142,g=Q));let gi=we.ui.controlsVisible;z(i,gi,Q=>t(36,T=Q));let ci=we.ui.settingsMenuVisible;z(i,ci,Q=>t(140,s=Q));let bi=we.ui.scrubbingInProgress;z(i,bi,Q=>t(144,b=Q));let Lt=we.ui.contextMenu.visible$;z(i,Lt,Q=>t(33,n=Q));let Gt=we.ui.debugPanelVisible;z(i,Gt,Q=>t(63,it=Q));let en=we.state.isLoaderVisible;z(i,en,Q=>t(154,oe=Q));let Fi=we.state.isEnded$;z(i,Fi,Q=>t(141,f=Q));let $t=we.state.chromecastConnected$;z(i,$t,Q=>t(39,J=Q));let vi=we.state.chromecastDeviceName$;z(i,vi,Q=>t(54,Ue=Q));let Hi=we.ads.postrollPassed;z(i,Hi,Q=>t(147,O=Q));let Ei=we.state.isLive$;z(i,Ei,Q=>t(59,x=Q));let Et=we.state.isPlaying$;z(i,Et,Q=>t(51,P=Q));let tn=we.state.crashed$;z(i,tn,Q=>t(37,F=Q));let Qt=we.webApi.pictureInPictureApi,Ai=we.state.currentSubtitle$;z(i,Ai,Q=>t(55,Ge=Q));let zi=we.state.currentSubtitleCaptions$;z(i,zi,Q=>t(56,Qe=Q));let Ui=we.state.duration$;z(i,Ui,Q=>t(58,be=Q));let jt=we.state.graphIsOpened$;z(i,jt,Q=>t(148,le=Q));let fi=we.ui.playerSize;z(i,fi,Q=>t(34,h=Q));let di=we.ui.is3DVideo;z(i,di,Q=>t(49,p=Q));let ei=we.ui.icon3DVideoVisible;z(i,ei,Q=>t(53,Me=Q));let Yt=we.ui.rotateAlpha;z(i,Yt,Q=>t(35,E=Q));let At=we.state.isInteractive,ti=we.state.isInteractiveTime$;z(i,ti,Q=>t(145,y=Q));let Mi=we.state.isInteractiveExpectation$;z(i,Mi,Q=>t(151,Y=Q));let yi=we.state.hasInteractiveBranches,Zt=we.ui.touched;z(i,Zt,Q=>t(149,H=Q));let ii=we.ui.modals.hotKeyMap.data;z(i,ii,Q=>t(169,u=Q));let Ki=we.ui.modals.hotKeyMap.show;z(i,Ki,Q=>t(62,He=Q));let ji=we.ui.overlayContainer$,un=we.ui.controls.interactiveTimeIndicator;z(i,un,Q=>t(170,k=Q));let Wi=we.state.showInteractiveTimeIndicator,Rt=we.ui.contextMenu.position$;z(i,Rt,Q=>t(61,$e=Q));let Bt=we.actions.internal.closeSettingsMenu,{fakeIsPlaying$:ki}=Ln();z(i,ki,Q=>t(143,v=Q));let ni,Gi,Vi,nn,wi;ii.set(Tf());let Li,tt,oi=De(!1);z(i,oi,Q=>t(50,w=Q));let Xt,ze=De(!1);z(i,ze,Q=>t(150,A=Q));let Ri=De(),cn=De(!1);z(i,cn,Q=>t(146,W=Q));let Qi=!1,Bi=!1,Yi,Zi,fn,_n,Ot,Di,on=!1,kn,ln=!1,{toggle:rn}=ki,dn=!1,Ft=null,Xi;Qt?.setContext(gl());let wn=()=>{Ce&&!At&&Wt(Ye.controls.hideTimeout)};we.setUiCallbacks({onStarted:wn});let Cn=()=>{window.clearTimeout(Vi),ze.set(!1)},Sn=()=>{window.clearTimeout(nn),Ri.set(null)},Wt=Q=>{Cn(),ze.set(!0),Vi=window.setTimeout(()=>ze.set(!1),Q);let Dt=Q-100;Xt=window.setTimeout(()=>{w&&oi.set(!1)},Dt>0?Dt:Q)},Mn=(Q,Dt)=>{Sn(),Ri.set(Dt),nn=window.setTimeout(()=>Ri.set(null),Q)},hn=di.subscribe(Q=>{ei.set(Q),Q&&(window.clearTimeout(wi),wi=window.setTimeout(()=>ei.set(!1),Ye.controls.hide360IconTimeout))}),sn=async()=>{let Q=oo();if(Q){let Dt=yl(),pn=gn();Q=Dt===pn||Dt===st}if(Q){Wt(Ye.controls.hideTimeoutFullscreen);try{await Qt?.remove()}catch(Dt){xt({message:String(Dt)})}}ui.set(Q),we.getAdmanWrapper().setFullscreen(Q),g?we.callbacks?.onFullscreenEnter?.():we.callbacks?.onFullscreenExit?.()},Vn=Q=>{let Dt=Q;fi.set({width:Dt.target.width,height:Dt.target.height})};Pt(()=>(nr(sn),Lo(Qt)&&(Qt?.assignPlayerContainer(ni),Qt?.registryExternalEventHandlers({resize:Vn})),Xe&&Ke.parentElement?.insertBefore(Xe,Ke.nextSibling),()=>{window.clearTimeout(Vi),window.clearTimeout(Xt),window.clearTimeout(nn),window.clearTimeout(wi),hn(),Qt?.dispose(),or(sn)}));let gn=()=>{let Q=gt??ni,Dt=Q.getRootNode(),pn=Dt instanceof ShadowRoot?Dt.host:Dt,qn=_t instanceof HTMLElement&&_t.contains(pn);return Ye.allowChangingFullscreenTarget&&_t&&qn?_t:Q},mn=async()=>{oo()?(await ir(document),xt({message:"exit fullscreen"})):(xt({message:"request fullscreen"}),await tr(gn()))},Ni=()=>{Bt(),Lt.set(!1)},ie=Q=>{Lt.set(!0),Rt.set({left:Q.clientX,top:Q.clientY})};function ht(){cn.set(!0),At||Wt(Ye.controls.hideTimeoutCursor)}function bn(){At||(oi.set(!0),Wt(Ye.controls.hideTimeoutCursor))}function te(){cn.set(!1),t(132,Bi=!1),t(131,Qi=!1),dn=!1,we.actions.internal.releaseCamera()}function ft(Q){if(k&&Wi){let Dt=Q.currentTarget,pn=rc(Dt),qn=op(Dt),vo=Q.pageX-qn,yo=Q.pageY-pn,{left:ko,bottom:vt,right:M}=k,ue=M-ko;return vo>=ko-ue&&yo<=vt+ue}}function mi(Q){if(ni){let Dt=rc(Q.currentTarget),pn=h.height,qn=Q.pageY-Dt;if(ft(Q)){t(132,Bi=!1);return}qn<40?t(132,Bi=!0):qn>pn-40?t(131,Qi=!0):(t(132,Bi=!1),s||t(131,Qi=!1))}}function In(Q){mi(Q),Zi||Wt(Ye.controls.hideTimeoutCursor),p&&dn&&Ft&&we.actions.internal.moveCameraFocusPX(Ft.clientX-Q.clientX,Ft.clientY-Q.clientY,Q.timeStamp-Ft.timeStamp),Ft=Q}let Nn=Q=>{Q.button===0&&(dn=!0,we.actions.internal.holdCamera()),Wt(Ye.controls.hideTimeoutCursor)},Qn=Q=>{Q.button===0&&(Ft=Q,dn=!1,we.actions.internal.releaseCamera()),Wt(Ye.controls.hideTimeoutCursor)},fo=()=>{np&&(xt({message:"double click on video"}),mn(),Wt(Ye.controls.hideTimeoutCursor))},$=()=>{if(n||s){Ni();return}if(!(f&&!yi)){if(ln)return rn();if(Xi?.focus(),!ve){xi(),Wt(Ye.controls.hideTimeoutCursor);return}we.actions.internal.togglePlay(),Wt(Ye.controls.hideTimeoutCursor)}},$n=Q=>{Ni(),Zt.set(!0),Wt(Ye.controls.hideTimeout),Q&&Mn(Ye.controls.hideHotKeyHelpers,Q)},ml=()=>{Ni(),we.callbacks?.onOpenHotKeyMap?we.callbacks?.onOpenHotKeyMap(u):Ki.update(Q=>!Q)},pl=()=>{if(n||s){Ni();return}},_l=()=>{Zt.set(!0)},mo=we.ui.contextMenu.openedByBtnKeyboard$;z(i,mo,Q=>t(139,a=Q));let po=we.ui.contextMenu.btnRef$;z(i,po,Q=>t(138,l=Q));let Yn,eo=we.ui.contextMenu.openedByHotKey$;z(i,eo,Q=>t(137,r=Q));let _o=we.ui.contextMenu.lastActiveElem$;z(i,_o,Q=>t(136,o=Q));function zo(Q){me[Q?"unshift":"push"](()=>{Ke=Q,t(0,Ke)})}let to=()=>Xi?.focus();function io(Q){Gi=Q,t(41,Gi)}let ho=()=>Xi?.focus();function go(Q){Yn=Q,t(32,Yn)}function bo(Q){me[Q?"unshift":"push"](()=>{Xi=Q,t(48,Xi)})}function Uo(Q){me[Q?"unshift":"push"](()=>{tt=Q,t(30,tt)})}function Ko(Q){me[Q?"unshift":"push"](()=>{ni=Q,t(40,ni)})}return i.$$set=Q=>{"store"in Q&&t(125,we=Q.store),"uiConfig"in Q&&t(1,Ye=Q.uiConfig),"title"in Q&&t(2,ot=Q.title),"thumbUrl"in Q&&t(3,je=Q.thumbUrl),"videoContainer"in Q&&t(0,Ke=Q.videoContainer),"interactiveContainer"in Q&&t(126,Xe=Q.interactiveContainer),"live"in Q&&t(4,fe=Q.live),"autoplay"in Q&&t(5,Ce=Q.autoplay),"canRewindLive"in Q&&t(6,pe=Q.canRewindLive),"showAds"in Q&&t(7,Oe=Q.showAds),"adsSlotId"in Q&&t(8,ee=Q.adsSlotId),"adsParams"in Q&&t(9,ke=Q.adsParams),"adsPreviewParam"in Q&&t(10,rt=Q.adsPreviewParam),"duration"in Q&&t(11,ye=Q.duration),"logoClickable"in Q&&t(12,dt=Q.logoClickable),"logoHidden"in Q&&t(13,Fe=Q.logoHidden),"logoTargetUrl"in Q&&t(14,mt=Q.logoTargetUrl),"showNextPrevButtons"in Q&&t(15,kt=Q.showNextPrevButtons),"nextButtonActive"in Q&&t(16,Tt=Q.nextButtonActive),"prevButtonActive"in Q&&t(17,Ze=Q.prevButtonActive),"endScreenVideoTitle"in Q&&t(18,qt=Q.endScreenVideoTitle),"endScreenVideoThumb"in Q&&t(19,Vt=Q.endScreenVideoThumb),"isOneVideoPlaylist"in Q&&t(20,Ct=Q.isOneVideoPlaylist),"supportLink"in Q&&t(21,si=Q.supportLink),"shadowRootContainer"in Q&&t(127,st=Q.shadowRootContainer),"outerContainerRef"in Q&&t(128,gt=Q.outerContainerRef),"playerStarted"in Q&&t(22,ve=Q.playerStarted),"fullScreenTarget"in Q&&t(129,_t=Q.fullScreenTarget),"showMiniTimer"in Q&&t(130,St=Q.showMiniTimer),"playNextVideo"in Q&&t(23,Jt=Q.playNextVideo),"playPrevVideo"in Q&&t(24,bt=Q.playPrevVideo),"repeatPlaylist"in Q&&t(25,zt=Q.repeatPlaylist),"seekToInteractive"in Q&&t(26,Ut=Q.seekToInteractive),"toggleGraph"in Q&&t(27,Kt=Q.toggleGraph),"playPrevChapter"in Q&&t(28,Oi=Q.playPrevChapter),"firstStart"in Q&&t(29,xi=Q.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&1610612736)e:t(42,Li=(re==="video"&&oe||re==="ads"&&Z==="inactive")&&!F);if(i.$$.dirty[0]&1073741824)e:ji.set(tt);if(i.$$.dirty[4]&268435456)e:t(133,Yi=ce!==v6.PLAYING);if(i.$$.dirty[4]&136381312)e:t(134,Zi=y&&!s&&!(Qi||Bi)&&!(Yi&&!Y));if(i.$$.dirty[1]&448|i.$$.dirty[4]&68224512)e:gi.set((Yi||s||b||J||A)&&!Zi&&(re==="video"||re==="ads")&&!F);if(i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&33554496)e:t(43,fn=Ye.features.thumbTimer&&St&&re==="video"&&!T&&!F&&!At&&(Ye.hideThumbTimerAfterTouch&&!H||!Ye.hideThumbTimerAfterTouch));if(i.$$.dirty[1]&128|i.$$.dirty[4]&17039360)e:t(44,_n=re==="video"&&!le&&g);if(i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&8519680)e:t(31,Ot=(Oe&&O||!Oe)&&f&&!F);if(i.$$.dirty[1]&33|i.$$.dirty[4]&6291456)e:t(45,Di=W&&!(T||Ot)&&!y);if(i.$$.dirty[0]&2|i.$$.dirty[4]&3147776)e:!b&&on&&!y&&Wt(Ye.controls.hideTimeoutCursor),t(135,on=b);if(i.$$.dirty[0]&1|i.$$.dirty[1]&24)e:t(46,kn=Ke&&E%180?h.height/h.width:1);if(i.$$.dirty[4]&524288)e:t(47,ln=v!==null);if(i.$$.dirty[1]&6|i.$$.dirty[4]&32768)e:Do(Yn,n,a);if(i.$$.dirty[1]&4|i.$$.dirty[4]&16384)e:{let Q=l;Q&&il(Q,n,mo)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&8192)e:Do(Yn,n,r);if(i.$$.dirty[1]&4|i.$$.dirty[4]&4096)e:{let Q=o;Q&&zf(Q,n,eo)}},[Ke,Ye,ot,je,fe,Ce,pe,Oe,ee,ke,rt,ye,dt,Fe,mt,kt,Tt,Ze,qt,Vt,Ct,si,ve,Jt,bt,zt,Ut,Kt,Oi,xi,tt,Ot,Yn,n,h,E,T,F,re,J,ni,Gi,Li,fn,_n,Di,kn,ln,Xi,p,w,P,N,Me,Ue,Ge,Qe,Le,be,x,Se,$e,He,it,Pi,an,hi,$i,ai,Ti,ui,gi,ci,bi,Lt,Gt,en,Fi,$t,vi,Hi,Ei,Et,tn,Ai,zi,Ui,jt,fi,di,ei,Yt,At,ti,Mi,Zt,ii,Ki,un,Rt,ki,oi,ze,Ri,cn,rn,mn,Ni,ie,ht,bn,te,In,Nn,Qn,fo,$,$n,ml,pl,_l,mo,po,eo,_o,we,Xe,st,gt,_t,St,Qi,Bi,Yi,Zi,on,o,r,l,a,s,f,g,v,b,y,W,O,le,H,A,Y,ce,Z,oe,zo,to,io,ho,go,bo,Uo,Ko]}var sc=class extends K{constructor(e){super(),G(this,e,C6,w6,U,{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},y6,[-1,-1,-1,-1,-1,-1,-1])}},lp=sc;import{PlaybackState as L6}from"@vkontakte/videoplayer-core";import{CurrentClientBrowser as R6,isIOS as up,noop as fc}from"@vkontakte/videoplayer-shared";import{CurrentClientDevice as S6,getIOSVersion as I6,isIOS as P6}from"@vkontakte/videoplayer-shared";var rp=i=>{if(!P6(!0))return!1;let e=i.device===S6.iPad||window?.screen.width>700,t=I6();return!e||e&&!!t&&t<16};function T6(i){Ie(i,"svelte-nhq2ld",".double-click-area.svelte-nhq2ld{position:absolute;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.svelte-nhq2ld{left:0}.double-click-area.right.svelte-nhq2ld{right:0}.semicircle.svelte-nhq2ld{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.svelte-nhq2ld{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.svelte-nhq2ld{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.svelte-nhq2ld{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.svelte-nhq2ld{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.svelte-nhq2ld{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:svelte-nhq2ld-blink 500ms infinite;opacity:0}.triangle.right.svelte-nhq2ld:nth-child(1),.triangle.left.svelte-nhq2ld:nth-child(3){animation-delay:0ms}.triangle.right.svelte-nhq2ld:nth-child(2),.triangle.left.svelte-nhq2ld:nth-child(2){animation-delay:100ms}.triangle.right.svelte-nhq2ld:nth-child(3),.triangle.left.svelte-nhq2ld:nth-child(1){animation-delay:200ms}@keyframes svelte-nhq2ld-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.svelte-nhq2ld{border-right:8px solid var(--white)}.triangle.right.svelte-nhq2ld{border-left:8px solid var(--white)}.triangle.svelte-nhq2ld:not(:last-child){margin-right:5px}.step-caption.svelte-nhq2ld{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}")}function sp(i){let e,t,n,o,r,l,a,s,u,f,p,h,k,g,w,v=j("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",E;return{c(){e=I("div"),n=D(),o=I("div"),r=I("div"),l=I("div"),s=D(),u=I("div"),p=D(),h=I("div"),g=D(),w=I("p"),E=Ve(v),c(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),c(l,"class",a="triangle "+i[0]+" svelte-nhq2ld"),c(u,"class",f="triangle "+i[0]+" svelte-nhq2ld"),c(h,"class",k="triangle "+i[0]+" svelte-nhq2ld"),c(r,"class","triangles-wrapper svelte-nhq2ld"),c(w,"class","step-caption svelte-nhq2ld"),c(o,"class","info svelte-nhq2ld")},m(b,y){S(b,e,y),S(b,n,y),S(b,o,y),m(o,r),m(r,l),m(r,s),m(r,u),m(r,p),m(r,h),m(o,g),m(o,w),m(w,E)},p(b,y){y&1&&t!==(t="semicircle "+b[0]+" svelte-nhq2ld")&&c(e,"class",t),y&1&&a!==(a="triangle "+b[0]+" svelte-nhq2ld")&&c(l,"class",a),y&1&&f!==(f="triangle "+b[0]+" svelte-nhq2ld")&&c(u,"class",f),y&1&&k!==(k="triangle "+b[0]+" svelte-nhq2ld")&&c(h,"class",k),y&2&&v!==(v=j("doubletap_seek_step",{seconds:b[1].toFixed(0)})+"")&&We(E,v)},d(b){b&&(C(e),C(n),C(o))}}}function E6(i){let e,t,n,o,r=i[2]&&sp(i);return{c(){e=I("div"),r&&r.c(),c(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(l,a){S(l,e,a),r&&r.m(e,null),n||(o=de(e,"click",at(i[3]())),n=!0)},p(l,[a]){l[2]?r?r.p(l,a):(r=sp(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&1&&t!==(t="double-click-area "+l[0]+" svelte-nhq2ld")&&c(e,"class",t)},i:_e,o:_e,d(l){l&&C(e),r&&r.d(),n=!1,o()}}}function A6(i,e,t){let{side:n}=e,{seekStep:o}=e,{handleSingleFirstClick:r}=e,{handleSecondClick:l}=e,a=!1,s=0,u=0,f=()=>{let h=0;return()=>{h+=1,h===1?s=window.setTimeout(()=>{r(),h=0},300):(window.clearTimeout(s),h=0,l(),t(2,a=!0),u=window.setTimeout(()=>{t(2,a=!1)},500))}};return Hn(()=>{window.clearTimeout(s),window.clearTimeout(u)}),i.$$set=p=>{"side"in p&&t(0,n=p.side),"seekStep"in p&&t(1,o=p.seekStep),"handleSingleFirstClick"in p&&t(4,r=p.handleSingleFirstClick),"handleSecondClick"in p&&t(5,l=p.handleSecondClick)},[n,o,a,f,r,l]}var ac=class extends K{constructor(e){super(),G(this,e,A6,E6,U,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},T6)}},uc=ac;function M6(i,e,t){let{playNextVideo:n}=e;return Pt(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var cc=class extends K{constructor(e){super(),G(this,e,M6,null,U,{playNextVideo:0})}},ap=cc;import{getCurrentBrowser as B6}from"@vkontakte/videoplayer-shared";var{window:V6}=So;function D6(i){Ie(i,"svelte-1jy89ut",".player-wrapper.svelte-1jy89ut{position:absolute;width:100%;height:100%}.player-wrapper.svelte-1jy89ut .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-1jy89ut{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-1jy89ut,.video-container.svelte-1jy89ut,.ads-container.svelte-1jy89ut{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-1jy89ut{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-1jy89ut{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-1jy89ut{transition:none}.ads-container.svelte-1jy89ut{background:var(--black)}")}function cp(i){let e,t,n,o;e=new uc({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[131]}});let r=!i[49]&&fp(i);return{c(){R(e.$$.fragment),t=D(),r&&r.c(),n=ut()},m(l,a){V(e,l,a),S(l,t,a),r&&r.m(l,a),S(l,n,a),o=!0},p(l,a){let s={};a[0]&2&&(s.seekStep=l[1].controls.seekStepMobile/1e3),e.$set(s),l[49]?r&&(se(),_(r,1,1,()=>{r=null}),ae()):r?(r.p(l,a),a[1]&262144&&d(r,1)):(r=fp(l),r.c(),d(r,1),r.m(n.parentNode,n))},i(l){o||(d(e.$$.fragment,l),d(r),o=!0)},o(l){_(e.$$.fragment,l),_(r),o=!1},d(l){l&&(C(t),C(n)),L(e,l),r&&r.d(l)}}}function fp(i){let e,t;return e=new uc({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[132]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function dp(i){let e,t;return e=new es({props:{thumbUrl:i[2],startTime:i[3]?.startTime}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),o[0]&8&&(r.startTime=n[3]?.startTime),e.$set(r)},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 ts({}),{c(){R(e.$$.fragment)},m(n,o){V(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;return t=new lr({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=I("div"),R(t.$$.fragment),c(e,"class","ads-container svelte-1jy89ut"),q(e,"hidden",i[34]!=="ads")},m(o,r){S(o,e,r),V(t,e,null),n=!0},p(o,r){let l={};r[0]&128&&(l.adsSlotId=o[7]),r[0]&256&&(l.adsParams=o[8]),r[0]&512&&(l.adsPreviewParam=o[9]),r[0]&1024&&(l.duration=o[10]),t.$set(l),(!n||r[1]&8)&&q(e,"hidden",o[34]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),L(t)}}}function _p(i){let e,t;return e=new ap({props:{playNextVideo:i[22]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&4194304&&(r.playNextVideo=n[22]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function hp(i){let e,t;return e=new Zr({}),{c(){R(e.$$.fragment)},m(n,o){V(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 gp(i){let e,t,n;return t=new Zl({props:{"aria-label":j("video360")}}),{c(){e=I("div"),R(t.$$.fragment),c(e,"class","spherical-video-icon svelte-1jy89ut")},m(o,r){S(o,e,r),V(t,e,null),n=!0},p:_e,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),L(t)}}}function bp(i){let e,t;return e=new Jr({props:{thumbUrl:i[2],chromecastDeviceName:i[52]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),o[1]&2097152&&(r.chromecastDeviceName=n[52]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function vp(i){let e,t;return e=new Xr({props:{shifted:i[30],captions:i[54],position:i[44],playerSize:i[31],isMobile:!0}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&1073741824&&(r.shifted=n[30]),o[1]&8388608&&(r.captions=n[54]),o[1]&8192&&(r.position=n[44]),o[1]&1&&(r.playerSize=n[31]),e.$set(r)},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,n,o,r;return t=new xr({}),{c(){e=I("div"),R(t.$$.fragment)},m(l,a){S(l,e,a),V(t,e,null),n=!0,o||(r=de(e,"click",at(i[101])),o=!0)},p:_e,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&C(e),L(t),o=!1,r()}}}function kp(i){let e,t,n;function o(l){i[133](l)}let r={bottomHidden:i[34]==="thumb"||i[34]==="waitingLive"||i[34]==="waitingRecord"||i[34]==="ads",showControls:i[30],bottomNoSmooth:i[45],isAds:i[34]==="ads",canRewindLive:i[5]&&i[55]!==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[39],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[37]!==void 0&&(r.controlsElementRef=i[37]),e=new Yr({props:r}),me.push(()=>qe(e,"controlsElementRef",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&8&&(s.bottomHidden=l[34]==="thumb"||l[34]==="waitingLive"||l[34]==="waitingRecord"||l[34]==="ads"),a[0]&1073741824&&(s.showControls=l[30]),a[1]&16384&&(s.bottomNoSmooth=l[45]),a[1]&8&&(s.isAds=l[34]==="ads"),a[0]&32|a[1]&16777216&&(s.canRewindLive=l[5]&&l[55]!==0),a[0]&2048&&(s.logoClickable=l[11]),a[0]&4096&&(s.logoHidden=l[12]),a[0]&8192&&(s.logoTargetUrl=l[13]),a[0]&16384&&(s.showNextPrevButtons=l[14]),a[0]&32768&&(s.nextButtonActive=l[15]),a[0]&65536&&(s.prevButtonActive=l[16]),a[0]&524288&&(s.isOneVideoPlaylist=l[19]),a[0]&1048576&&(s.supportLink=l[20]),a[1]&256&&(s.customFullscreenSupported=l[39]),a[0]&4194304&&(s.playNextVideo=l[22]),a[0]&8388608&&(s.playPrevVideo=l[23]),a[0]&16777216&&(s.repeatPlaylist=l[24]),a[0]&33554432&&(s.seekToInteractive=l[25]),a[0]&67108864&&(s.toggleGraph=l[26]),a[0]&134217728&&(s.playPrevChapter=l[27]),!t&&a[1]&64&&(t=!0,s.controlsElementRef=l[37],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function wp(i){let e,t;return e=new _r({}),{c(){R(e.$$.fragment)},m(n,o){V(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 dr({}),{c(){R(e.$$.fragment)},m(n,o){V(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,n=i[5]&&i[78]&&!i[48].has("TIMELINE"),o,r,l,a,s,u,f,p,h,k,g,w,v,E,b,y;e=new $r({props:{hidden:i[34]!=="thumb"||i[33]||i[89]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let T=n&&cp(i),W=i[34]==="waitingLive"&&dp(i),F=i[34]==="waitingRecord"&&mp(i),O=i[6]&&i[21]&&pp(i),le=i[41]&&i[17]&&i[18]&&_p(i),re=i[50]&&hp(i),H=i[51]&&gp(i),A=i[35]&&bp(i),J=i[53].value!=="off"&&vp(i),Y=i[33]&&yp(i),ce=i[21]&&kp(i);w=new sr({props:{isLive:i[56],isHidden:!i[40],isPlaying:i[46],position:i[44],duration:i[43]}});let Z=i[38]&&wp(i),oe=i[57]&&Cp(i);return{c(){R(e.$$.fragment),t=D(),T&&T.c(),o=D(),W&&W.c(),r=D(),F&&F.c(),l=D(),O&&O.c(),a=D(),le&&le.c(),s=D(),re&&re.c(),u=D(),H&&H.c(),f=D(),A&&A.c(),p=D(),J&&J.c(),h=D(),Y&&Y.c(),k=D(),ce&&ce.c(),g=D(),R(w.$$.fragment),v=D(),Z&&Z.c(),E=D(),oe&&oe.c(),b=ut()},m(P,N){V(e,P,N),S(P,t,N),T&&T.m(P,N),S(P,o,N),W&&W.m(P,N),S(P,r,N),F&&F.m(P,N),S(P,l,N),O&&O.m(P,N),S(P,a,N),le&&le.m(P,N),S(P,s,N),re&&re.m(P,N),S(P,u,N),H&&H.m(P,N),S(P,f,N),A&&A.m(P,N),S(P,p,N),J&&J.m(P,N),S(P,h,N),Y&&Y.m(P,N),S(P,k,N),ce&&ce.m(P,N),S(P,g,N),V(w,P,N),S(P,v,N),Z&&Z.m(P,N),S(P,E,N),oe&&oe.m(P,N),S(P,b,N),y=!0},p(P,N){let Me={};N[0]&16|N[1]&12&&(Me.hidden=P[34]!=="thumb"||P[33]||P[89]&&P[4]),N[0]&4&&(Me.thumbUrl=P[2]),N[0]&268435456&&(Me.startVideo=P[28]),e.$set(Me),N[0]&32|N[1]&131072&&(n=P[5]&&P[78]&&!P[48].has("TIMELINE")),n?T?(T.p(P,N),N[0]&32|N[1]&131072&&d(T,1)):(T=cp(P),T.c(),d(T,1),T.m(o.parentNode,o)):T&&(se(),_(T,1,1,()=>{T=null}),ae()),P[34]==="waitingLive"?W?(W.p(P,N),N[1]&8&&d(W,1)):(W=dp(P),W.c(),d(W,1),W.m(r.parentNode,r)):W&&(se(),_(W,1,1,()=>{W=null}),ae()),P[34]==="waitingRecord"?F?N[1]&8&&d(F,1):(F=mp(P),F.c(),d(F,1),F.m(l.parentNode,l)):F&&(se(),_(F,1,1,()=>{F=null}),ae()),P[6]&&P[21]?O?(O.p(P,N),N[0]&2097216&&d(O,1)):(O=pp(P),O.c(),d(O,1),O.m(a.parentNode,a)):O&&(se(),_(O,1,1,()=>{O=null}),ae()),P[41]&&P[17]&&P[18]?le?(le.p(P,N),N[0]&393216|N[1]&1024&&d(le,1)):(le=_p(P),le.c(),d(le,1),le.m(s.parentNode,s)):le&&(se(),_(le,1,1,()=>{le=null}),ae()),P[50]?re?N[1]&524288&&d(re,1):(re=hp(P),re.c(),d(re,1),re.m(u.parentNode,u)):re&&(se(),_(re,1,1,()=>{re=null}),ae()),P[51]?H?(H.p(P,N),N[1]&1048576&&d(H,1)):(H=gp(P),H.c(),d(H,1),H.m(f.parentNode,f)):H&&(se(),_(H,1,1,()=>{H=null}),ae()),P[35]?A?(A.p(P,N),N[1]&16&&d(A,1)):(A=bp(P),A.c(),d(A,1),A.m(p.parentNode,p)):A&&(se(),_(A,1,1,()=>{A=null}),ae()),P[53].value!=="off"?J?(J.p(P,N),N[1]&4194304&&d(J,1)):(J=vp(P),J.c(),d(J,1),J.m(h.parentNode,h)):J&&(se(),_(J,1,1,()=>{J=null}),ae()),P[33]?Y?(Y.p(P,N),N[1]&4&&d(Y,1)):(Y=yp(P),Y.c(),d(Y,1),Y.m(k.parentNode,k)):Y&&(se(),_(Y,1,1,()=>{Y=null}),ae()),P[21]?ce?(ce.p(P,N),N[0]&2097152&&d(ce,1)):(ce=kp(P),ce.c(),d(ce,1),ce.m(g.parentNode,g)):ce&&(se(),_(ce,1,1,()=>{ce=null}),ae());let Ue={};N[1]&33554432&&(Ue.isLive=P[56]),N[1]&512&&(Ue.isHidden=!P[40]),N[1]&32768&&(Ue.isPlaying=P[46]),N[1]&8192&&(Ue.position=P[44]),N[1]&4096&&(Ue.duration=P[43]),w.$set(Ue),P[38]?Z?N[1]&128&&d(Z,1):(Z=wp(P),Z.c(),d(Z,1),Z.m(E.parentNode,E)):Z&&(se(),_(Z,1,1,()=>{Z=null}),ae()),P[57]?oe?N[1]&67108864&&d(oe,1):(oe=Cp(P),oe.c(),d(oe,1),oe.m(b.parentNode,b)):oe&&(se(),_(oe,1,1,()=>{oe=null}),ae())},i(P){y||(d(e.$$.fragment,P),d(T),d(W),d(F),d(O),d(le),d(re),d(H),d(A),d(J),d(Y),d(ce),d(w.$$.fragment,P),d(Z),d(oe),y=!0)},o(P){_(e.$$.fragment,P),_(T),_(W),_(F),_(O),_(le),_(re),_(H),_(A),_(J),_(Y),_(ce),_(w.$$.fragment,P),_(Z),_(oe),y=!1},d(P){P&&(C(t),C(o),C(r),C(l),C(a),C(s),C(u),C(f),C(p),C(h),C(k),C(g),C(v),C(E),C(b)),L(e,P),T&&T.d(P),W&&W.d(P),F&&F.d(P),O&&O.d(P),le&&le.d(P),re&&re.d(P),H&&H.d(P),A&&A.d(P),J&&J.d(P),Y&&Y.d(P),ce&&ce.d(P),L(w,P),Z&&Z.d(P),oe&&oe.d(P)}}}function N6(i){let e,t,n,o,r,l=i[47],a,s,u,f,p,h,k=Sp(i);return{c(){e=I("div"),t=I("div"),n=I("div"),r=D(),k.c(),a=D(),s=I("div"),c(n,"class","video-container svelte-1jy89ut"),c(n,"style",o=`transform: rotate(${i[32]}deg) scale(${i[42]})`),c(n,"data-testid","video-container"),c(n,"data-is-playing",i[46]),q(n,"fast-rotate",!i[1].isSmoothVideoRotate),c(t,"class","video-wrapper svelte-1jy89ut"),q(t,"hidden",i[34]!=="video"),c(s,"class","overlay-container"),c(e,"class","player-wrapper svelte-1jy89ut"),c(e,"role","region"),c(e,"aria-label",u=j("aria_label_video_player")),c(e,"tabindex","-1")},m(g,w){S(g,e,w),m(e,t),m(t,n),i[130](n),m(e,r),k.m(e,null),m(e,a),m(e,s),i[134](s),i[135](e),f=!0,p||(h=[de(V6,"blur",i[99]),de(t,"click",It(i[100])),de(e,"click",i[102],!0),de(e,"focusin",i[103],!0)],p=!0)},p(g,w){(!f||w[1]&2050&&o!==(o=`transform: rotate(${g[32]}deg) scale(${g[42]})`))&&c(n,"style",o),(!f||w[1]&32768)&&c(n,"data-is-playing",g[46]),(!f||w[0]&2)&&q(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!f||w[1]&8)&&q(t,"hidden",g[34]!=="video"),w[1]&65536&&U(l,l=g[47])?(se(),_(k,1,1,_e),ae(),k=Sp(g),k.c(),d(k,1),k.m(e,a)):k.p(g,w)},i(g){f||(d(k),f=!0)},o(g){_(k),f=!1},d(g){g&&C(e),i[130](null),k.d(g),i[134](null),i[135](null),p=!1,et(h)}}}function q6(i,e,t){let n,o,r,l,a,s,u,f,p,h,k,g,w,v,E,b,y,T,W,F,O,le,re,H,A,J,Y,ce,Z,oe,P,N,Me,Ue,Ge,Qe,Le,{store:be}=e,{uiConfig:x}=e,{thumbUrl:Se}=e,{videoContainer:$e}=e,{interactiveContainer:He}=e,{live:it}=e,{autoplay:we}=e,{canRewindLive:Ye}=e,{showAds:ot}=e,{adsSlotId:je=void 0}=e,{adsParams:Ke=void 0}=e,{adsPreviewParam:Xe=void 0}=e,{duration:fe=void 0}=e,{logoClickable:Ce}=e,{logoHidden:pe}=e,{logoTargetUrl:Oe=""}=e,{showNextPrevButtons:ee=!1}=e,{nextButtonActive:ke=!1}=e,{prevButtonActive:rt=!1}=e,{endScreenVideoTitle:ye=void 0}=e,{endScreenVideoThumb:dt=void 0}=e,{isOneVideoPlaylist:Fe=!1}=e,{supportLink:mt}=e,{shadowRootContainer:kt=void 0}=e,{outerContainerRef:Tt=void 0}=e,{showMiniTimer:Ze=!1}=e,{fullScreenTarget:qt=void 0}=e,{playerStarted:Vt=!1}=e,{playNextVideo:Ct=fc}=e,{playPrevVideo:si=fc}=e,{repeatPlaylist:st=fc}=e,{seekToInteractive:gt}=e,{toggleGraph:ve}=e,{playPrevChapter:_t}=e,{firstStart:St}=e,{seekTime:Jt}=e,bt=be.getLogger().createComponentLog("Root component"),zt=be.interfaceLanguage$;z(i,zt,ie=>t(47,Y=ie));let Ut=be.state.playbackState$;z(i,Ut,ie=>t(127,re=ie));let Kt=be.ads.playbackState;z(i,Kt,ie=>t(128,H=ie));let Oi=be.state.positionWithScrubbing$;z(i,Oi,ie=>t(44,a=ie));let xi=be.state.duration$;z(i,xi,ie=>t(43,l=ie));let xt=be.playerPhase;z(i,xt,ie=>t(34,W=ie));let Pi=be.ui.isFullscreen;z(i,Pi,ie=>t(142,u=ie));let an=be.ui.controlsVisible;z(i,an,ie=>t(30,o=ie));let hi=be.ui.interactiveHideMobileControls;z(i,hi,ie=>t(119,k=ie));let $i=be.ui.settingsMenuVisible;z(i,$i,ie=>t(118,n=ie));let ai=be.ui.scrubbingInProgress;z(i,ai,ie=>t(120,w=ie));let Ti=be.ui.debugPanelVisible;z(i,Ti,ie=>t(57,Le=ie));let ui=be.state.isLoaderVisible;z(i,ui,ie=>t(129,A=ie));let gi=be.state.isEnded$;z(i,gi,ie=>t(122,b=ie));let ci=be.state.chromecastConnected$;z(i,ci,ie=>t(35,F=ie));let bi=be.state.chromecastDeviceName$;z(i,bi,ie=>t(52,N=ie));let Lt=be.ads.postrollPassed;z(i,Lt,ie=>t(123,y=ie));let Gt=be.ui.mobileUnmuteButtonExpanded,en=be.ui.mobileUnmuteButtonVisible,Fi=be.state.isLive$;z(i,Fi,ie=>t(56,Qe=ie));let $t=be.state.isPlaying$;z(i,$t,ie=>t(46,J=ie));let vi=be.state.isActiveLive$;z(i,vi,ie=>t(49,Z=ie));let Hi=be.state.isRewindableLive$,Ei=be.state.crashed$;z(i,Ei,ie=>t(33,E=ie));let Et=be.webApi.pictureInPictureApi,tn=be.state.videoSize$;z(i,tn,ie=>t(143,p=ie));let Qt=be.state.currentSubtitle$;z(i,Qt,ie=>t(53,Me=ie));let Ai=be.state.currentSubtitleCaptions$;z(i,Ai,ie=>t(54,Ue=ie));let zi=be.state.duration$;z(i,zi,ie=>t(55,Ge=ie));let Ui=be.state.graphIsOpened$;z(i,Ui,ie=>t(126,le=ie));let jt=be.ui.playerSize;z(i,jt,ie=>t(31,f=ie));let fi=be.ui.is3DVideo;z(i,fi,ie=>t(50,oe=ie));let di=be.ui.icon3DVideoVisible;z(i,di,ie=>t(51,P=ie));let ei=be.ui.rotateAlpha;z(i,ei,ie=>t(32,g=ie));let Yt=be.state.isInteractive,At=be.state.isInteractiveTime$;z(i,At,ie=>t(121,v=ie));let ti=be.state.isInteractiveExpectation$;z(i,ti,ie=>t(125,O=ie));let Mi=be.state.hasInteractiveBranches,yi=be.ui.controls.disabledControls$;z(i,yi,ie=>t(48,ce=ie));let Zt=be.ui.touched;z(i,Zt,ie=>t(124,T=ie));let ii=be.ui.clientInfo$;z(i,ii,ie=>t(141,s=ie));let Ki=be.ui.overlayContainer$,ji=be.state.isFirstBytes$;z(i,ji,ie=>t(140,r=ie));let un=be.actions.internal.closeSettingsMenu,Wi=be.callbacks?.onDisabledPlayPrevChapterClick,Rt=be.callbacks?.onDisabledSeekToInteractiveClick,Bt,ki,ni,Gi,Vi,nn,wi,Li=De(!1);z(i,Li,ie=>t(45,h=ie));let tt,oi=!1,Xt,ze=!1,Ri,cn=!0,Qi,Bi,Yi=!1,Zi;Et?.setContext(gl());let fn=ie=>{clearTimeout(Gi),ie&&(en.set(!0),Gt.set(!0),Gi=window.setTimeout(()=>{Gt.set(!1)},x.controls.collapseMobileUnmute),Yt||Ot(x.controls.hideTimeoutMobile))};be.setUiCallbacks({onStarted:fn});let _n=()=>{window.clearTimeout(ni),t(113,oi=!1),k&&hi.set(!1)},Ot=ie=>{_n(),t(113,oi=!0),ni=window.setTimeout(()=>t(113,oi=!1),ie);let ht=ie-100;tt=window.setTimeout(()=>{h&&Li.set(!1)},ht>0?ht:ie)},Di=fi.subscribe(ie=>{di.set(ie),ie&&(window.clearTimeout(Vi),Vi=window.setTimeout(()=>di.set(!1),x.controls.hide360IconTimeout))}),on=async()=>{let ie=oo();if(ie){let ht=yl(),bn=rn(),te=B6().browser===R6.SamsungBrowser&&ht===kt;ie=ht===bn||te}if(ie){Ot(x.controls.hideTimeoutFullscreen);try{await Et?.remove()}catch(ht){bt({message:String(ht)})}try{let ht=p?.width&&p?.height?p:f;await If(ht)}catch(ht){bt({message:String(ht)})}}Pi.set(ie),be.getAdmanWrapper().setFullscreen(ie),u?be.callbacks?.onFullscreenEnter?.():be.callbacks?.onFullscreenExit?.()},kn=ie=>{let ht=ie;jt.set({width:ht.target.width,height:ht.target.height})};Pt(()=>(nr(on),Lo(Et)&&(Et?.assignPlayerContainer(Bt),Et?.registryExternalEventHandlers({resize:kn})),t(39,cn=!rp(s)),He&&$e.parentElement?.insertBefore(He,$e.nextSibling),()=>{window.clearTimeout(ni),window.clearTimeout(tt),window.clearTimeout(Gi),window.clearTimeout(Vi),Di(),Et?.dispose(),or(on)}));let ln=ie=>{let ht=a+(ie==="forward"?1:-1)*x.controls.seekStepMobile/1e3;ht<0?ht=0:ht>l&&(ht=l-1),t(115,ze=!0),Jt(ht)},rn=()=>{let ie=up()||!Tt?Bt:Tt,ht=ie.getRootNode(),bn=ht instanceof ShadowRoot?ht.host:ht,te=qt instanceof HTMLElement&&qt.contains(bn);return x.allowChangingFullscreenTarget&&qt&&te?qt:ie},dn=async()=>{if(oo())await ir(document),bt({message:"exit fullscreen"});else{if(bt({message:"request fullscreen"}),up()&&!r)return;await tr(rn())}},Ft=()=>{un()},Xi=()=>{if(n){Ft();return}if(!Vt){St(),Ot(x.controls.hideTimeoutCursor);return}t(115,ze=!1),o?_n():Ot(x.controls.hideTimeoutMobile)},wn=()=>{if(n){Ft();return}},Cn=()=>{Zt.set(!0)},Sn=()=>{Yt||(Li.set(!0),Ot(x.controls.hideTimeoutCursor))},Wt=ie=>{Wi&&(Wi(ie),Ot(x.controls.hideTimeoutMobile))},Mn=ie=>{Rt&&(Rt(ie),Ot(x.controls.hideTimeoutMobile))};function hn(ie){me[ie?"unshift":"push"](()=>{$e=ie,t(0,$e)})}let sn=()=>ln("backward"),Vn=()=>ln("forward");function gn(ie){ki=ie,t(37,ki)}function mn(ie){me[ie?"unshift":"push"](()=>{wi=ie,t(29,wi)})}function Ni(ie){me[ie?"unshift":"push"](()=>{Bt=ie,t(36,Bt)})}return i.$$set=ie=>{"store"in ie&&t(106,be=ie.store),"uiConfig"in ie&&t(1,x=ie.uiConfig),"thumbUrl"in ie&&t(2,Se=ie.thumbUrl),"videoContainer"in ie&&t(0,$e=ie.videoContainer),"interactiveContainer"in ie&&t(107,He=ie.interactiveContainer),"live"in ie&&t(3,it=ie.live),"autoplay"in ie&&t(4,we=ie.autoplay),"canRewindLive"in ie&&t(5,Ye=ie.canRewindLive),"showAds"in ie&&t(6,ot=ie.showAds),"adsSlotId"in ie&&t(7,je=ie.adsSlotId),"adsParams"in ie&&t(8,Ke=ie.adsParams),"adsPreviewParam"in ie&&t(9,Xe=ie.adsPreviewParam),"duration"in ie&&t(10,fe=ie.duration),"logoClickable"in ie&&t(11,Ce=ie.logoClickable),"logoHidden"in ie&&t(12,pe=ie.logoHidden),"logoTargetUrl"in ie&&t(13,Oe=ie.logoTargetUrl),"showNextPrevButtons"in ie&&t(14,ee=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(15,ke=ie.nextButtonActive),"prevButtonActive"in ie&&t(16,rt=ie.prevButtonActive),"endScreenVideoTitle"in ie&&t(17,ye=ie.endScreenVideoTitle),"endScreenVideoThumb"in ie&&t(18,dt=ie.endScreenVideoThumb),"isOneVideoPlaylist"in ie&&t(19,Fe=ie.isOneVideoPlaylist),"supportLink"in ie&&t(20,mt=ie.supportLink),"shadowRootContainer"in ie&&t(108,kt=ie.shadowRootContainer),"outerContainerRef"in ie&&t(109,Tt=ie.outerContainerRef),"showMiniTimer"in ie&&t(110,Ze=ie.showMiniTimer),"fullScreenTarget"in ie&&t(111,qt=ie.fullScreenTarget),"playerStarted"in ie&&t(21,Vt=ie.playerStarted),"playNextVideo"in ie&&t(22,Ct=ie.playNextVideo),"playPrevVideo"in ie&&t(23,si=ie.playPrevVideo),"repeatPlaylist"in ie&&t(24,st=ie.repeatPlaylist),"seekToInteractive"in ie&&t(25,gt=ie.seekToInteractive),"toggleGraph"in ie&&t(26,ve=ie.toggleGraph),"playPrevChapter"in ie&&t(27,_t=ie.playPrevChapter),"firstStart"in ie&&t(28,St=ie.firstStart),"seekTime"in ie&&t(112,Jt=ie.seekTime)},i.$$.update=()=>{if(i.$$.dirty[1]&12|i.$$.dirty[4]&48)e:t(38,nn=(W==="video"&&A||W==="ads"&&H==="inactive")&&!E);if(i.$$.dirty[0]&536870912)e:Ki.set(wi);if(i.$$.dirty[4]&8)e:t(114,Xt=re!==L6.PLAYING);if(i.$$.dirty[3]&607125504|i.$$.dirty[4]&6)e:t(116,Ri=le||k||!oi&&(b&&!!Mi||Xt&&O));if(i.$$.dirty[1]&28|i.$$.dirty[3]&183500800)e:an.set((Xt||n||w||F||oi&&!ze)&&!Ri&&W==="video"&&!E);if(i.$$.dirty[0]&1073741826|i.$$.dirty[1]&12|i.$$.dirty[3]&131072|i.$$.dirty[4]&1)e:t(40,Qi=x.features.thumbTimer&&Ze&&W==="video"&&!o&&!E&&!Yt&&(x.hideThumbTimerAfterTouch&&!T||!x.hideThumbTimerAfterTouch));if(i.$$.dirty[0]&64|i.$$.dirty[1]&4|i.$$.dirty[3]&1610612736)e:t(41,Bi=(ot&&y||!ot)&&b&&!E);if(i.$$.dirty[0]&2|i.$$.dirty[3]&419430400)e:!w&&Yi&&!v&&Ot(x.controls.hideTimeoutMobile),t(117,Yi=w);if(i.$$.dirty[0]&1|i.$$.dirty[1]&3)e:t(42,Zi=$e&&g%180?f.height/f.width:1)},[$e,x,Se,it,we,Ye,ot,je,Ke,Xe,fe,Ce,pe,Oe,ee,ke,rt,ye,dt,Fe,mt,Vt,Ct,si,st,gt,ve,_t,St,wi,o,f,g,E,W,F,Bt,ki,nn,cn,Qi,Bi,Zi,l,a,h,J,Y,ce,Z,oe,P,N,Me,Ue,Ge,Qe,Le,zt,Ut,Kt,Oi,xi,xt,Pi,an,hi,$i,ai,Ti,ui,gi,ci,bi,Lt,Fi,$t,vi,Hi,Ei,tn,Qt,Ai,zi,Ui,jt,fi,di,ei,Yt,At,ti,yi,Zt,ii,ji,Li,ln,dn,Ft,Xi,wn,Cn,Sn,Wt,Mn,be,He,kt,Tt,Ze,qt,Jt,oi,Xt,ze,Ri,Yi,n,k,w,v,b,y,T,O,le,re,H,A,hn,sn,Vn,gn,mn,Ni]}var dc=class extends K{constructor(e){super(),G(this,e,q6,N6,U,{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=dc;function z6(i){Ie(i,"svelte-xfba9d",`.root.svelte-xfba9d{--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 n6(i){let e,t;return{c(){e=P("div"),t=Ae(i[0]),c(e,"class","title svelte-1bcvcf2"),q(e,"hidden",i[1])},m(n,o){S(n,e,o),m(e,t)},p(n,[o]){o&1&&je(t,n[0]),o&2&&q(e,"hidden",n[1])},i:_e,o:_e,d(n){n&&C(e)}}}function o6(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 ec=class extends K{constructor(e){super(),W(this,e,o6,n6,U,{title:0,isHidden:1},i6)}},B0=ec;function l6(i){Se(i,"svelte-1qpxtfg",".timer__container.svelte-1qpxtfg{display:flex;align-items:flex-start;justify-content:center}.cell.svelte-1qpxtfg{display:flex;flex-direction:column;align-items:center;width:62px}.cell__value.svelte-1qpxtfg{font-size:48px;line-height:1.2;font-weight:700}.cell__unit.svelte-1qpxtfg{font-size:14px;line-height:1.2;font-weight:400}.timer__points.svelte-1qpxtfg{display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600}")}function D0(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("span"),n=Ae(i[0]),o=D(),l=P("span"),l.textContent=`${j("waiting_live_day_value")}`,r=D(),a=P("span"),a.textContent=`${j("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&&je(n,s[0])},d(s){s&&(C(e),C(r),C(a))}}}function N0(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("span"),n=Ae(i[1]),o=D(),l=P("span"),l.textContent=`${j("waiting_live_hour_value")}`,r=D(),a=P("span"),a.textContent=`${j("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&&je(n,s[1])},d(s){s&&(C(e),C(r),C(a))}}}function q0(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("span"),n=Ae(i[2]),o=D(),l=P("span"),l.textContent=`${j("waiting_live_minute_value")}`,r=D(),a=P("span"),a.textContent=`${j("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&&je(n,s[2])},d(s){s&&(C(e),C(r),C(a))}}}function O0(i){let e,t,n,o,l;return{c(){e=P("div"),t=P("span"),n=Ae(i[3]),o=D(),l=P("span"),l.textContent=`${j("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&&je(n,r[3])},d(r){r&&C(e)}}}function r6(i){let e,t,n,o,l=i[0]&&D0(i),r=i[1]&&N0(i),a=i[2]&&q0(i),s=i[3]&&O0(i);return{c(){e=P("div"),l&&l.c(),t=D(),r&&r.c(),n=D(),a&&a.c(),o=D(),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=N0(u),r.c(),r.m(e,n)):r&&(r.d(1),r=null),u[2]?a?a.p(u,f):(a=q0(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:_e,o:_e,d(u){u&&C(e),l&&l.d(),r&&r.d(),a&&a.d(),s&&s.d()}}}function s6(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,l,r,a,s,u,f=k=>String(k).padStart(2,"0"),p=k=>{let g=Math.floor(k/86400);g&&(k-=g*86400,t(0,l=f(g)));let w=Math.floor(k/3600);t(1,r=f(w));let v=Math.floor(k/60)%60;t(2,a=f(v));let T=k%60;t(3,s=f(T))},h=()=>{let k=Math.floor(Date.now()/1e3),g=n-k;p(g),g>=1?u=requestAnimationFrame(h):o()};return Tt(()=>{u=requestAnimationFrame(h)}),zn(()=>{cancelAnimationFrame(u)}),i.$$set=k=>{"startTime"in k&&t(4,n=k.startTime),"onTimerOver"in k&&t(5,o=k.onTimerOver)},[l,r,a,s,n,o]}var tc=class extends K{constructor(e){super(),W(this,e,s6,r6,U,{startTime:4,onTimerOver:5},l6)}},F0=tc;function a6(i){let e,t,n,o,l,r,a=i[2].default,s=Ie(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=oe(f,u[p]);return{c(){e=B("svg"),s&&s.c(),t=B("path"),n=B("path"),o=B("path"),l=B("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"),mi(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"),mi(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"),mi(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"),mi(l,"opacity",".986"),ge(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)&&Te(s,a,p,p[1],r?Pe(a,p[1],h,null):Ee(p[1]),null),ge(e,f=Le(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&&C(e),s&&s.d(p)}}}function u6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ic=class extends K{constructor(e){super(),W(this,e,u6,a6,U,{})}},H0=ic;function c6(i){Se(i,"svelte-15pewff",".waiting-container.svelte-15pewff{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat}.waiting-container.svelte-15pewff::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1}.upcoming.svelte-15pewff{position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0}.upcoming-icon.svelte-15pewff{width:20%;max-width:200px;margin-bottom:20px}.upcoming__title.svelte-15pewff{font-size:14px;line-height:1.2;font-weight:400}.waiting-timer.svelte-15pewff{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2}.timer.svelte-15pewff{display:flex;flex-direction:column;align-items:center;justify-content:center}.timer__title.svelte-15pewff{display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400}")}function f6(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=`${j("waiting_live_timer_title")}`,n=D(),R(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),M(o,e,null),l=!0},p(r,a){let s={};a&2&&(s.startTime=r[1]||0),a&4&&(s.onTimerOver=r[3]),o.$set(s)},i(r){l||(d(o.$$.fragment,r),l=!0)},o(r){_(o.$$.fragment,r),l=!1},d(r){r&&C(e),V(o)}}}function d6(i){let e,t,n,o,l,r;return n=new H0({}),{c(){e=P("div"),t=P("div"),R(n.$$.fragment),o=D(),l=P("span"),l.textContent=`${j("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),M(n,t,null),m(e,o),m(e,l),r=!0},p:_e,i(a){r||(d(n.$$.fragment,a),r=!0)},o(a){_(n.$$.fragment,a),r=!1},d(a){a&&C(e),V(n)}}}function m6(i){let e,t,n,o,l,r=[d6,f6],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):(ue(),_(a[p],1,1,()=>{a[p]=null}),ce(),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&&C(e),a[t].d()}}}function p6(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=()=>{if(i.$$.dirty&2)e:t(2,n=l===void 0||l<Math.floor(Date.now()/1e3))},[o,l,n,r]}var nc=class extends K{constructor(e){super(),W(this,e,p6,m6,U,{thumbUrl:0,startTime:1},c6)}},es=nc;function _6(i){Se(i,"svelte-1bcnzdw",".waiting-container.svelte-1bcnzdw{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black)}.waiting-title.svelte-1bcnzdw{padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400}")}function h6(i){let e,t;return{c(){e=P("div"),t=P("p"),t.textContent=`${j("waiting_record_title")}`,c(t,"class","waiting-title svelte-1bcnzdw"),c(e,"class","waiting-container svelte-1bcnzdw")},m(n,o){S(n,e,o),m(e,t)},p:_e,i:_e,o:_e,d(n){n&&C(e)}}}var oc=class extends K{constructor(e){super(),W(this,e,null,h6,U,{},_6)}},ts=oc;var{window:g6}=Co;function v6(i){Se(i,"svelte-1o4wf3x",".player-wrapper.svelte-1o4wf3x{position:absolute;width:100%;height:100%}.player-wrapper.svelte-1o4wf3x .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-1o4wf3x{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-1o4wf3x,.video-container.svelte-1o4wf3x,.ads-container.svelte-1o4wf3x{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-1o4wf3x{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-1o4wf3x{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-1o4wf3x{transition:none}.nocursor.svelte-1o4wf3x{cursor:none}.ads-container.svelte-1o4wf3x{background:var(--black)}")}function U0(i){let e,t;return e=new es({props:{thumbUrl:i[3],startTime:i[4]?.startTime}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[0]&16&&(l.startTime=n[4]?.startTime),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function K0(i){let e,t;return e=new ts({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function j0(i){let e,t,n;return t=new lr({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","ads-container svelte-1o4wf3x"),q(e,"hidden",i[38]!=="ads")},m(o,l){S(o,e,l),M(t,e,null),n=!0},p(o,l){let r={};l[0]&256&&(r.adsSlotId=o[8]),l[0]&512&&(r.adsParams=o[9]),l[0]&1024&&(r.adsPreviewParam=o[10]),l[0]&2048&&(r.duration=o[11]),t.$set(r),(!n||l[1]&128)&&q(e,"hidden",o[38]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),V(t)}}}function W0(i){let e,t;return e=new _1({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&262144&&(l.title=n[18]),o[0]&524288&&(l.thumb=n[19]),o[0]&8388608&&(l.playNextVideo=n[23]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function G0(i){let e,t;return e=new B0({props:{title:i[2],isHidden:!i[36]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.title=n[2]),o[1]&32&&(l.isHidden=!n[36]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Q0(i){let e,t;return e=new Zr({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[1]&160&&(l.isShifted=n[38]==="video"&&n[36]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Y0(i){let e,t,n;return t=new Zl({props:{"aria-label":j("video360")}}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","spherical-video-icon svelte-1o4wf3x")},m(o,l){S(o,e,l),M(t,e,null),n=!0},p:_e,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),V(t)}}}function Z0(i){let e,t;return e=new Jr({props:{thumbUrl:i[3],chromecastDeviceName:i[54]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[1]&8388608&&(l.chromecastDeviceName=n[54]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function X0(i){let e,t;return e=new Xr({props:{shifted:i[36],captions:i[56],position:i[57],playerSize:i[34]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[1]&32&&(l.shifted=n[36]),o[1]&33554432&&(l.captions=n[56]),o[1]&67108864&&(l.position=n[57]),o[1]&8&&(l.playerSize=n[34]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function J0(i){let e,t,n,o,l;return t=new xr({}),{c(){e=P("div"),R(t.$$.fragment)},m(r,a){S(r,e,a),M(t,e,null),n=!0,o||(l=[de(e,"contextmenu",Pt(i[108])),de(e,"click",st(i[119]))],o=!0)},p:_e,i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){_(t.$$.fragment,r),n=!1},d(r){r&&C(e),V(t),o=!1,et(l)}}}function x0(i){let e,t,n;function o(r){i[157](r)}let l={bottomHidden:i[38]==="thumb"||i[38]==="waitingLive"||i[38]==="waitingRecord",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:np,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[106],returnFocus:i[156],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};return i[41]!==void 0&&(l.controlsElementRef=i[41]),e=new Yr({props:l}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&128&&(s.bottomHidden=r[38]==="thumb"||r[38]==="waitingLive"||r[38]==="waitingRecord"),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[156]),a[0]&67108864&&(s.seekToInteractive=r[26]),a[0]&134217728&&(s.toggleGraph=r[27]),a[0]&268435456&&(s.playPrevChapter=r[28]),!t&&a[1]&1024&&(t=!0,s.controlsElementRef=r[41],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function $0(i){let e,t;return e=new _r({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function ep(i){let e,t;return e=new I1({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function tp(i){let e,t;return e=new dr({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function ip(i){let e,t,n,o,l,r,a,s,u,f,p,h,k,g,w,v,T,b,y,I,Z,N,z,se;e=new $r({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let ae=i[38]==="waitingLive"&&U0(i),F=i[38]==="waitingRecord"&&K0(i),x=i[7]&&i[22]&&j0(i),E=i[31]&&i[18]&&i[19]&&W0(i),X=i[44]&&G0(i),Q=i[49]&&Q0(i),G=i[53]&&Y0(i),ee=i[39]&&Z0(i),L=i[55].value!=="off"&&X0(i),H=i[37]&&J0(i),Be=i[22]&&x0(i);g=new sr({props:{isLive:i[59],isHidden:!i[43],isPlaying:i[51],position:i[57],duration:i[60]}}),v=new I0({props:{data:i[103]}});function ze(J){i[159](J)}let We={supportLink:i[21],returnFocus:i[158],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(We.menuElementRef=i[32]),b=new Zf({props:We}),pe.push(()=>Fe(b,"menuElementRef",ze));let Xe=i[42]&&$0(i),qe=i[62]&&ep(i),ye=i[63]&&tp(i);return{c(){R(e.$$.fragment),t=D(),ae&&ae.c(),n=D(),F&&F.c(),o=D(),x&&x.c(),l=D(),E&&E.c(),r=D(),X&&X.c(),a=D(),Q&&Q.c(),s=D(),G&&G.c(),u=D(),ee&&ee.c(),f=D(),L&&L.c(),p=D(),H&&H.c(),h=D(),Be&&Be.c(),k=D(),R(g.$$.fragment),w=D(),R(v.$$.fragment),T=D(),R(b.$$.fragment),I=D(),Xe&&Xe.c(),Z=D(),qe&&qe.c(),N=D(),ye&&ye.c(),z=at()},m(J,we){M(e,J,we),S(J,t,we),ae&&ae.m(J,we),S(J,n,we),F&&F.m(J,we),S(J,o,we),x&&x.m(J,we),S(J,l,we),E&&E.m(J,we),S(J,r,we),X&&X.m(J,we),S(J,a,we),Q&&Q.m(J,we),S(J,s,we),G&&G.m(J,we),S(J,u,we),ee&&ee.m(J,we),S(J,f,we),L&&L.m(J,we),S(J,p,we),H&&H.m(J,we),S(J,h,we),Be&&Be.m(J,we),S(J,k,we),M(g,J,we),S(J,w,we),M(v,J,we),S(J,T,we),M(b,J,we),S(J,I,we),Xe&&Xe.m(J,we),S(J,Z,we),qe&&qe.m(J,we),S(J,N,we),ye&&ye.m(J,we),S(J,z,we),se=!0},p(J,we){let Ke={};we[0]&32|we[1]&192&&(Ke.hidden=J[38]!=="thumb"||J[37]||J[92]&&J[5]),we[0]&8&&(Ke.thumbUrl=J[3]),we[0]&536870912&&(Ke.startVideo=J[29]),e.$set(Ke),J[38]==="waitingLive"?ae?(ae.p(J,we),we[1]&128&&d(ae,1)):(ae=U0(J),ae.c(),d(ae,1),ae.m(n.parentNode,n)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),ce()),J[38]==="waitingRecord"?F?we[1]&128&&d(F,1):(F=K0(J),F.c(),d(F,1),F.m(o.parentNode,o)):F&&(ue(),_(F,1,1,()=>{F=null}),ce()),J[7]&&J[22]?x?(x.p(J,we),we[0]&4194432&&d(x,1)):(x=j0(J),x.c(),d(x,1),x.m(l.parentNode,l)):x&&(ue(),_(x,1,1,()=>{x=null}),ce()),J[31]&&J[18]&&J[19]?E?(E.p(J,we),we[0]&786432|we[1]&1&&d(E,1)):(E=W0(J),E.c(),d(E,1),E.m(r.parentNode,r)):E&&(ue(),_(E,1,1,()=>{E=null}),ce()),J[44]?X?(X.p(J,we),we[1]&8192&&d(X,1)):(X=G0(J),X.c(),d(X,1),X.m(a.parentNode,a)):X&&(ue(),_(X,1,1,()=>{X=null}),ce()),J[49]?Q?(Q.p(J,we),we[1]&262144&&d(Q,1)):(Q=Q0(J),Q.c(),d(Q,1),Q.m(s.parentNode,s)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),ce()),J[53]?G?(G.p(J,we),we[1]&4194304&&d(G,1)):(G=Y0(J),G.c(),d(G,1),G.m(u.parentNode,u)):G&&(ue(),_(G,1,1,()=>{G=null}),ce()),J[39]?ee?(ee.p(J,we),we[1]&256&&d(ee,1)):(ee=Z0(J),ee.c(),d(ee,1),ee.m(f.parentNode,f)):ee&&(ue(),_(ee,1,1,()=>{ee=null}),ce()),J[55].value!=="off"?L?(L.p(J,we),we[1]&16777216&&d(L,1)):(L=X0(J),L.c(),d(L,1),L.m(p.parentNode,p)):L&&(ue(),_(L,1,1,()=>{L=null}),ce()),J[37]?H?(H.p(J,we),we[1]&64&&d(H,1)):(H=J0(J),H.c(),d(H,1),H.m(h.parentNode,h)):H&&(ue(),_(H,1,1,()=>{H=null}),ce()),J[22]?Be?(Be.p(J,we),we[0]&4194304&&d(Be,1)):(Be=x0(J),Be.c(),d(Be,1),Be.m(k.parentNode,k)):Be&&(ue(),_(Be,1,1,()=>{Be=null}),ce());let Je={};we[1]&268435456&&(Je.isLive=J[59]),we[1]&4096&&(Je.isHidden=!J[43]),we[1]&1048576&&(Je.isPlaying=J[51]),we[1]&67108864&&(Je.position=J[57]),we[1]&536870912&&(Je.duration=J[60]),g.$set(Je);let it={};we[0]&2097152&&(it.supportLink=J[21]),we[1]&131072&&(it.returnFocus=J[158]),we[1]&4&&(it.visible=J[33]),we[1]&512&&(it.playerContainerRef=J[40]),we[1]&1024&&(it.controlsContainerRef=J[41]),we[1]&1073741824&&(it.position=J[61]),!y&&we[1]&2&&(y=!0,it.menuElementRef=J[32],Oe(()=>y=!1)),b.$set(it),J[42]?Xe?we[1]&2048&&d(Xe,1):(Xe=$0(J),Xe.c(),d(Xe,1),Xe.m(Z.parentNode,Z)):Xe&&(ue(),_(Xe,1,1,()=>{Xe=null}),ce()),J[62]?qe?we[2]&1&&d(qe,1):(qe=ep(J),qe.c(),d(qe,1),qe.m(N.parentNode,N)):qe&&(ue(),_(qe,1,1,()=>{qe=null}),ce()),J[63]?ye?we[2]&2&&d(ye,1):(ye=tp(J),ye.c(),d(ye,1),ye.m(z.parentNode,z)):ye&&(ue(),_(ye,1,1,()=>{ye=null}),ce())},i(J){se||(d(e.$$.fragment,J),d(ae),d(F),d(x),d(E),d(X),d(Q),d(G),d(ee),d(L),d(H),d(Be),d(g.$$.fragment,J),d(v.$$.fragment,J),d(b.$$.fragment,J),d(Xe),d(qe),d(ye),se=!0)},o(J){_(e.$$.fragment,J),_(ae),_(F),_(x),_(E),_(X),_(Q),_(G),_(ee),_(L),_(H),_(Be),_(g.$$.fragment,J),_(v.$$.fragment,J),_(b.$$.fragment,J),_(Xe),_(qe),_(ye),se=!1},d(J){J&&(C(t),C(n),C(o),C(l),C(r),C(a),C(s),C(u),C(f),C(p),C(h),C(k),C(w),C(T),C(I),C(Z),C(N),C(z)),V(e,J),ae&&ae.d(J),F&&F.d(J),x&&x.d(J),E&&E.d(J),X&&X.d(J),Q&&Q.d(J),G&&G.d(J),ee&&ee.d(J),L&&L.d(J),H&&H.d(J),Be&&Be.d(J),V(g,J),V(v,J),V(b,J),Xe&&Xe.d(J),qe&&qe.d(J),ye&&ye.d(J)}}}function y6(i){let e,t,n,o,l=i[52],r,a,s,u,f=ip(i);return{c(){e=P("div"),t=P("div"),o=D(),f.c(),r=at(),c(t,"class","video-container svelte-1o4wf3x"),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]),q(t,"fast-rotate",!i[1].isSmoothVideoRotate),c(e,"class","video-wrapper svelte-1o4wf3x"),q(e,"hidden",i[38]!=="video"),q(e,"nocursor",i[45])},m(p,h){S(p,e,h),m(e,t),i[155](t),S(p,o,h),f.m(p,h),S(p,r,h),a=!0,s||(u=[de(e,"contextmenu",Pt(i[108])),de(e,"mousedown",Pt(i[113])),de(e,"mouseup",Pt(i[114])),de(e,"click",Pt(i[116])),de(e,"dblclick",Pt(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)&&q(t,"fast-rotate",!p[1].isSmoothVideoRotate),(!a||h[1]&128)&&q(e,"hidden",p[38]!=="video"),(!a||h[1]&16384)&&q(e,"nocursor",p[45]),h[1]&2097152&&U(l,l=p[52])?(ue(),_(f,1,1,_e),ce(),f=ip(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&&(C(e),C(o),C(r)),i[155](null),f.d(p),s=!1,et(u)}}}function k6(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:[y6]},$$scope:{ctx:i}};return t=new h1({props:s}),i[160](t),{c(){e=P("div"),R(t.$$.fragment),n=D(),o=P("div"),c(o,"class","overlay-container"),c(e,"class","player-wrapper svelte-1o4wf3x")},m(u,f){S(u,e,f),M(t,e,null),m(e,n),m(e,o),i[161](o),i[162](e),l=!0,r||(a=[de(g6,"blur",i[107]),de(e,"mouseenter",i[109]),de(e,"mouseleave",i[111]),de(e,"mousemove",i[112]),de(e,"click",i[120],!0),de(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]&4&&(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&&C(e),i[160](null),V(t),i[161](null),i[162](null),r=!1,et(a)}}}var np=!0;function rc(i){return i?i.offsetTop+rc(i.offsetParent):0}function op(i){return i?i.offsetLeft+op(i.offsetParent):0}function w6(i,e,t){let n,o,l,r,a,s,u,f,p,h,k,g,w,v,T,b,y,I,Z,N,z,se,ae,F,x,E,X,Q,G,ee,L,H,Be,ze,We,Xe,qe,ye,J,we,Ke,Je,it,{store:ke}=e,{uiConfig:Ne}=e,{title:Ge}=e,{thumbUrl:nt}=e,{videoContainer:Ce}=e,{interactiveContainer:re}=e,{live:Ue}=e,{autoplay:me}=e,{canRewindLive:le}=e,{showAds:De}=e,{adsSlotId:Me=void 0}=e,{adsParams:Ye=void 0}=e,{adsPreviewParam:rt=void 0}=e,{duration:ve=void 0}=e,{logoClickable:ft}=e,{logoHidden:ht}=e,{logoTargetUrl:ut=""}=e,{showNextPrevButtons:mt=!1}=e,{nextButtonActive:St=!1}=e,{prevButtonActive:Qe=!1}=e,{endScreenVideoTitle:Nt=void 0}=e,{endScreenVideoThumb:Vt=void 0}=e,{isOneVideoPlaylist:Ct=!1}=e,{supportLink:oi}=e,{shadowRootContainer:lt=void 0}=e,{outerContainerRef:kt=void 0}=e,{playerStarted:be=!1}=e,{fullScreenTarget:pt=void 0}=e,{showMiniTimer:It=!1}=e,{playNextVideo:Qt=lc}=e,{playPrevVideo:yt=lc}=e,{repeatPlaylist:Ut=lc}=e,{seekToInteractive:qt}=e,{toggleGraph:Kt}=e,{playPrevChapter:Fi}=e,{firstStart:tn}=e,Jt=ke.getLogger().createComponentLog("Root component"),Ii=ke.interfaceLanguage$;O(i,Ii,Y=>t(52,H=Y));let cn=ke.state.playbackState$;O(i,cn,Y=>t(152,Q=Y));let Pi=ke.ads.playbackState;O(i,Pi,Y=>t(153,G=Y));let nn=ke.state.positionWithScrubbing$;O(i,nn,Y=>t(57,qe=Y));let li=ke.state.duration$;O(i,li,Y=>t(60,we=Y));let Ti=ke.playerPhase;O(i,Ti,Y=>t(38,ae=Y));let xt=ke.ui.isFullscreen;O(i,xt,Y=>t(142,g=Y));let _i=ke.ui.controlsVisible;O(i,_i,Y=>t(36,I=Y));let hi=ke.ui.settingsMenuVisible;O(i,hi,Y=>t(140,s=Y));let gi=ke.ui.scrubbingInProgress;O(i,gi,Y=>t(144,b=Y));let ri=ke.ui.contextMenu.visible$;O(i,ri,Y=>t(33,n=Y));let si=ke.ui.debugPanelVisible;O(i,si,Y=>t(63,it=Y));let jt=ke.state.isLoaderVisible;O(i,jt,Y=>t(154,ee=Y));let bi=ke.state.isEnded$;O(i,bi,Y=>t(141,f=Y));let Hi=ke.state.chromecastConnected$;O(i,Hi,Y=>t(39,E=Y));let vi=ke.state.chromecastDeviceName$;O(i,vi,Y=>t(54,ze=Y));let ai=ke.ads.postrollPassed;O(i,ai,Y=>t(147,z=Y));let zi=ke.state.isLive$;O(i,zi,Y=>t(59,J=Y));let Mt=ke.state.isPlaying$;O(i,Mt,Y=>t(51,L=Y));let Ui=ke.state.crashed$;O(i,Ui,Y=>t(37,N=Y));let Ot=ke.webApi.pictureInPictureApi,Ei=ke.state.currentSubtitle$;O(i,Ei,Y=>t(55,We=Y));let Ki=ke.state.currentSubtitleCaptions$;O(i,Ki,Y=>t(56,Xe=Y));let ji=ke.state.duration$;O(i,ji,Y=>t(58,ye=Y));let Wt=ke.state.graphIsOpened$;O(i,Wt,Y=>t(148,se=Y));let ui=ke.ui.playerSize;O(i,ui,Y=>t(34,h=Y));let ci=ke.ui.is3DVideo;O(i,ci,Y=>t(49,p=Y));let fi=ke.ui.icon3DVideoVisible;O(i,fi,Y=>t(53,Be=Y));let $t=ke.ui.rotateAlpha;O(i,$t,Y=>t(35,T=Y));let Et=ke.state.isInteractive,yi=ke.state.isInteractiveTime$;O(i,yi,Y=>t(145,y=Y));let Ai=ke.state.isInteractiveExpectation$;O(i,Ai,Y=>t(151,X=Y));let Yt=ke.state.hasInteractiveBranches,Zt=ke.ui.touched;O(i,Zt,Y=>t(149,F=Y));let ei=ke.ui.modals.hotKeyMap.data;O(i,ei,Y=>t(169,u=Y));let Wi=ke.ui.modals.hotKeyMap.show;O(i,Wi,Y=>t(62,Je=Y));let fn=ke.ui.overlayContainer$,on=ke.ui.controls.interactiveTimeIndicator;O(i,on,Y=>t(170,k=Y));let Gi=ke.state.showInteractiveTimeIndicator,Mi=ke.ui.contextMenu.position$;O(i,Mi,Y=>t(61,Ke=Y));let Ft=ke.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Lt}=Dn();O(i,Lt,Y=>t(143,v=Y));let Dt,Vi,Li,ln,Ri;ei.set(Tf());let Bi,$e,ti=Re(!1);O(i,ti,Y=>t(50,w=Y));let Xt,He=Re(!1);O(i,He,Y=>t(150,x=Y));let Qi=Re(),rn=Re(!1);O(i,rn,Y=>t(146,Z=Y));let Yi=!1,Zi=!1,Xi,Ji,sn,dn,Ht,Di,pn=!1,kn,Ni=!1,{toggle:_n}=Lt,mn=!1,ii=null,xi;Ot?.setContext(bl());let $i=()=>{me&&!Et&&Gt(Ne.controls.hideTimeout)};ke.setUiCallbacks({onStarted:$i});let wn=()=>{window.clearTimeout(Li),He.set(!1)},hn=()=>{window.clearTimeout(ln),Qi.set(null)},Gt=Y=>{wn(),He.set(!0),Li=window.setTimeout(()=>He.set(!1),Y);let Rt=Y-100;Xt=window.setTimeout(()=>{w&&ti.set(!1)},Rt>0?Rt:Y)},Mn=(Y,Rt)=>{hn(),Qi.set(Rt),ln=window.setTimeout(()=>Qi.set(null),Y)},Vn=ci.subscribe(Y=>{fi.set(Y),Y&&(window.clearTimeout(Ri),Ri=window.setTimeout(()=>fi.set(!1),Ne.controls.hide360IconTimeout))}),Cn=async()=>{let Y=so();if(Y){let Rt=kl(),Bn=an();Y=Rt===Bn||Rt===lt}if(Y){Gt(Ne.controls.hideTimeoutFullscreen);try{await Ot?.remove()}catch(Rt){Jt({message:String(Rt)})}}xt.set(Y),ke.getAdmanWrapper().setFullscreen(Y),g?ke.callbacks?.onFullscreenEnter?.():ke.callbacks?.onFullscreenExit?.()},gn=Y=>{let Rt=Y;ui.set({width:Rt.target.width,height:Rt.target.height})};Tt(()=>(nr(Cn),Vo(Ot)&&(Ot?.assignPlayerContainer(Dt),Ot?.registryExternalEventHandlers({resize:gn})),re&&Ce.parentElement?.insertBefore(re,Ce.nextSibling),()=>{window.clearTimeout(Li),window.clearTimeout(Xt),window.clearTimeout(ln),window.clearTimeout(Ri),Vn(),Ot?.dispose(),or(Cn)}));let an=()=>{let Y=kt??Dt,Rt=Y.getRootNode(),Bn=Rt instanceof ShadowRoot?Rt.host:Rt,Fn=pt instanceof HTMLElement&&pt.contains(Bn);return Ne.allowChangingFullscreenTarget&&pt&&Fn?pt:Y},Sn=async()=>{so()?(await ir(document),Jt({message:"exit fullscreen"})):(Jt({message:"request fullscreen"}),await tr(an()))},en=()=>{Ft(),ri.set(!1)},ie=Y=>{ri.set(!0),Mi.set({left:Y.clientX,top:Y.clientY})};function gt(){rn.set(!0),Et||Gt(Ne.controls.hideTimeoutCursor)}function un(){Et||(ti.set(!0),Gt(Ne.controls.hideTimeoutCursor))}function te(){rn.set(!1),t(132,Zi=!1),t(131,Yi=!1),mn=!1,ke.actions.internal.releaseCamera()}function dt(Y){if(k&&Gi){let Rt=Y.currentTarget,Bn=rc(Rt),Fn=op(Rt),Jn=Y.pageX-Fn,yo=Y.pageY-Bn,{left:lo,bottom:ko,right:wo}=k,bt=wo-lo;return Jn>=lo-bt&&yo<=ko+bt}}function ki(Y){if(Dt){let Rt=rc(Y.currentTarget),Bn=h.height,Fn=Y.pageY-Rt;if(dt(Y)){t(132,Zi=!1);return}Fn<40?t(132,Zi=!0):Fn>Bn-40?t(131,Yi=!0):(t(132,Zi=!1),s||t(131,Yi=!1))}}function Ln(Y){ki(Y),Ji||Gt(Ne.controls.hideTimeoutCursor),p&&mn&&ii&&ke.actions.internal.moveCameraFocusPX(ii.clientX-Y.clientX,ii.clientY-Y.clientY,Y.timeStamp-ii.timeStamp),ii=Y}let Rn=Y=>{Y.button===0&&(mn=!0,ke.actions.internal.holdCamera()),Gt(Ne.controls.hideTimeoutCursor)},On=Y=>{Y.button===0&&(ii=Y,mn=!1,ke.actions.internal.releaseCamera()),Gt(Ne.controls.hideTimeoutCursor)},ne=()=>{np&&(Jt({message:"double click on video"}),Sn(),Gt(Ne.controls.hideTimeoutCursor))},In=()=>{if(n||s){en();return}if(!(f&&!Yt)){if(Ni)return _n();if(xi?.focus(),!be){tn(),Gt(Ne.controls.hideTimeoutCursor);return}ke.actions.internal.togglePlay(),Gt(Ne.controls.hideTimeoutCursor)}},Ho=Y=>{en(),Zt.set(!0),Gt(Ne.controls.hideTimeout),Y&&Mn(Ne.controls.hideHotKeyHelpers,Y)},pl=()=>{en(),ke.callbacks?.onOpenHotKeyMap?ke.callbacks?.onOpenHotKeyMap(u):Wi.update(Y=>!Y)},_l=()=>{if(n||s){en();return}},hl=()=>{Zt.set(!0)},_o=ke.ui.contextMenu.openedByBtnKeyboard$;O(i,_o,Y=>t(139,a=Y));let ho=ke.ui.contextMenu.btnRef$;O(i,ho,Y=>t(138,r=Y));let Zn,no=ke.ui.contextMenu.openedByHotKey$;O(i,no,Y=>t(137,l=Y));let zo=ke.ui.contextMenu.lastActiveElem$;O(i,zo,Y=>t(136,o=Y));function Uo(Y){pe[Y?"unshift":"push"](()=>{Ce=Y,t(0,Ce)})}let oo=()=>xi?.focus();function Ko(Y){Vi=Y,t(41,Vi)}let go=()=>xi?.focus();function Xn(Y){Zn=Y,t(32,Zn)}function bo(Y){pe[Y?"unshift":"push"](()=>{xi=Y,t(48,xi)})}function jo(Y){pe[Y?"unshift":"push"](()=>{$e=Y,t(30,$e)})}function vo(Y){pe[Y?"unshift":"push"](()=>{Dt=Y,t(40,Dt)})}return i.$$set=Y=>{"store"in Y&&t(125,ke=Y.store),"uiConfig"in Y&&t(1,Ne=Y.uiConfig),"title"in Y&&t(2,Ge=Y.title),"thumbUrl"in Y&&t(3,nt=Y.thumbUrl),"videoContainer"in Y&&t(0,Ce=Y.videoContainer),"interactiveContainer"in Y&&t(126,re=Y.interactiveContainer),"live"in Y&&t(4,Ue=Y.live),"autoplay"in Y&&t(5,me=Y.autoplay),"canRewindLive"in Y&&t(6,le=Y.canRewindLive),"showAds"in Y&&t(7,De=Y.showAds),"adsSlotId"in Y&&t(8,Me=Y.adsSlotId),"adsParams"in Y&&t(9,Ye=Y.adsParams),"adsPreviewParam"in Y&&t(10,rt=Y.adsPreviewParam),"duration"in Y&&t(11,ve=Y.duration),"logoClickable"in Y&&t(12,ft=Y.logoClickable),"logoHidden"in Y&&t(13,ht=Y.logoHidden),"logoTargetUrl"in Y&&t(14,ut=Y.logoTargetUrl),"showNextPrevButtons"in Y&&t(15,mt=Y.showNextPrevButtons),"nextButtonActive"in Y&&t(16,St=Y.nextButtonActive),"prevButtonActive"in Y&&t(17,Qe=Y.prevButtonActive),"endScreenVideoTitle"in Y&&t(18,Nt=Y.endScreenVideoTitle),"endScreenVideoThumb"in Y&&t(19,Vt=Y.endScreenVideoThumb),"isOneVideoPlaylist"in Y&&t(20,Ct=Y.isOneVideoPlaylist),"supportLink"in Y&&t(21,oi=Y.supportLink),"shadowRootContainer"in Y&&t(127,lt=Y.shadowRootContainer),"outerContainerRef"in Y&&t(128,kt=Y.outerContainerRef),"playerStarted"in Y&&t(22,be=Y.playerStarted),"fullScreenTarget"in Y&&t(129,pt=Y.fullScreenTarget),"showMiniTimer"in Y&&t(130,It=Y.showMiniTimer),"playNextVideo"in Y&&t(23,Qt=Y.playNextVideo),"playPrevVideo"in Y&&t(24,yt=Y.playPrevVideo),"repeatPlaylist"in Y&&t(25,Ut=Y.repeatPlaylist),"seekToInteractive"in Y&&t(26,qt=Y.seekToInteractive),"toggleGraph"in Y&&t(27,Kt=Y.toggleGraph),"playPrevChapter"in Y&&t(28,Fi=Y.playPrevChapter),"firstStart"in Y&&t(29,tn=Y.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&1610612736)e:t(42,Bi=(ae==="video"&&ee||ae==="ads"&&G==="inactive")&&!N);if(i.$$.dirty[0]&1073741824)e:fn.set($e);if(i.$$.dirty[4]&268435456)e:t(133,Xi=Q!==b6.PLAYING);if(i.$$.dirty[4]&136381312)e:t(134,Ji=y&&!s&&!(Yi||Zi)&&!(Xi&&!X));if(i.$$.dirty[1]&448|i.$$.dirty[4]&68224512)e:_i.set((Xi||s||b||E||x)&&!Ji&&(ae==="video"||ae==="ads")&&!N);if(i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&33554496)e:t(43,sn=Ne.features.thumbTimer&&It&&ae==="video"&&!I&&!N&&!Et&&(Ne.hideThumbTimerAfterTouch&&!F||!Ne.hideThumbTimerAfterTouch));if(i.$$.dirty[1]&128|i.$$.dirty[4]&17039360)e:t(44,dn=ae==="video"&&!se&&g);if(i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&8519680)e:t(31,Ht=(De&&z||!De)&&f&&!N);if(i.$$.dirty[1]&33|i.$$.dirty[4]&6291456)e:t(45,Di=Z&&!(I||Ht)&&!y);if(i.$$.dirty[0]&2|i.$$.dirty[4]&3147776)e:!b&&pn&&!y&&Gt(Ne.controls.hideTimeoutCursor),t(135,pn=b);if(i.$$.dirty[0]&1|i.$$.dirty[1]&24)e:t(46,kn=Ce&&T%180?h.height/h.width:1);if(i.$$.dirty[4]&524288)e:t(47,Ni=v!==null);if(i.$$.dirty[1]&6|i.$$.dirty[4]&32768)e:Bo(Zn,n,a);if(i.$$.dirty[1]&4|i.$$.dirty[4]&16384)e:{let Y=r;Y&&nl(Y,n,_o)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&8192)e:Bo(Zn,n,l);if(i.$$.dirty[1]&4|i.$$.dirty[4]&4096)e:{let Y=o;Y&&zf(Y,n,no)}},[Ce,Ne,Ge,nt,Ue,me,le,De,Me,Ye,rt,ve,ft,ht,ut,mt,St,Qe,Nt,Vt,Ct,oi,be,Qt,yt,Ut,qt,Kt,Fi,tn,$e,Ht,Zn,n,h,T,I,N,ae,E,Dt,Vi,Bi,sn,dn,Di,kn,Ni,xi,p,w,L,H,Be,ze,We,Xe,qe,ye,J,we,Ke,Je,it,Ii,cn,Pi,nn,li,Ti,xt,_i,hi,gi,ri,si,jt,bi,Hi,vi,ai,zi,Mt,Ui,Ei,Ki,ji,Wt,ui,ci,fi,$t,Et,yi,Ai,Zt,ei,Wi,on,Mi,Lt,ti,He,Qi,rn,_n,Sn,en,ie,gt,un,te,Ln,Rn,On,ne,In,Ho,pl,_l,hl,_o,ho,no,zo,ke,re,lt,kt,pt,It,Yi,Zi,Xi,Ji,pn,o,l,r,a,s,f,g,v,b,y,Z,z,se,F,x,X,Q,G,ee,Uo,oo,Ko,go,Xn,bo,jo,vo]}var sc=class extends K{constructor(e){super(),W(this,e,w6,k6,U,{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},v6,[-1,-1,-1,-1,-1,-1,-1])}},lp=sc;import{PlaybackState as V6}from"@vkontakte/videoplayer-core";import{CurrentClientBrowser as L6,isIOS as up,noop as fc}from"@vkontakte/videoplayer-shared";import{CurrentClientDevice as C6,getIOSVersion as S6,isIOS as I6}from"@vkontakte/videoplayer-shared";var rp=i=>{if(!I6(!0))return!1;let e=i.device===C6.iPad||window?.screen.width>700,t=S6();return!e||e&&!!t&&t<16};function P6(i){Se(i,"svelte-nhq2ld",".double-click-area.svelte-nhq2ld{position:absolute;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.svelte-nhq2ld{left:0}.double-click-area.right.svelte-nhq2ld{right:0}.semicircle.svelte-nhq2ld{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.svelte-nhq2ld{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.svelte-nhq2ld{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.svelte-nhq2ld{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.svelte-nhq2ld{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.svelte-nhq2ld{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:svelte-nhq2ld-blink 500ms infinite;opacity:0}.triangle.right.svelte-nhq2ld:nth-child(1),.triangle.left.svelte-nhq2ld:nth-child(3){animation-delay:0ms}.triangle.right.svelte-nhq2ld:nth-child(2),.triangle.left.svelte-nhq2ld:nth-child(2){animation-delay:100ms}.triangle.right.svelte-nhq2ld:nth-child(3),.triangle.left.svelte-nhq2ld:nth-child(1){animation-delay:200ms}@keyframes svelte-nhq2ld-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.svelte-nhq2ld{border-right:8px solid var(--white)}.triangle.right.svelte-nhq2ld{border-left:8px solid var(--white)}.triangle.svelte-nhq2ld:not(:last-child){margin-right:5px}.step-caption.svelte-nhq2ld{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}")}function sp(i){let e,t,n,o,l,r,a,s,u,f,p,h,k,g,w,v=j("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",T;return{c(){e=P("div"),n=D(),o=P("div"),l=P("div"),r=P("div"),s=D(),u=P("div"),p=D(),h=P("div"),g=D(),w=P("p"),T=Ae(v),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",k="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(b,y){S(b,e,y),S(b,n,y),S(b,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,T)},p(b,y){y&1&&t!==(t="semicircle "+b[0]+" svelte-nhq2ld")&&c(e,"class",t),y&1&&a!==(a="triangle "+b[0]+" svelte-nhq2ld")&&c(r,"class",a),y&1&&f!==(f="triangle "+b[0]+" svelte-nhq2ld")&&c(u,"class",f),y&1&&k!==(k="triangle "+b[0]+" svelte-nhq2ld")&&c(h,"class",k),y&2&&v!==(v=j("doubletap_seek_step",{seconds:b[1].toFixed(0)})+"")&&je(T,v)},d(b){b&&(C(e),C(n),C(o))}}}function T6(i){let e,t,n,o,l=i[2]&&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=de(e,"click",st(i[3]())),n=!0)},p(r,[a]){r[2]?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:_e,o:_e,d(r){r&&C(e),l&&l.d(),n=!1,o()}}}function E6(i,e,t){let{side:n}=e,{seekStep:o}=e,{handleSingleFirstClick:l}=e,{handleSecondClick:r}=e,a=!1,s=0,u=0,f=()=>{let h=0;return()=>{h+=1,h===1?s=window.setTimeout(()=>{l(),h=0},300):(window.clearTimeout(s),h=0,r(),t(2,a=!0),u=window.setTimeout(()=>{t(2,a=!1)},500))}};return zn(()=>{window.clearTimeout(s),window.clearTimeout(u)}),i.$$set=p=>{"side"in p&&t(0,n=p.side),"seekStep"in p&&t(1,o=p.seekStep),"handleSingleFirstClick"in p&&t(4,l=p.handleSingleFirstClick),"handleSecondClick"in p&&t(5,r=p.handleSecondClick)},[n,o,a,f,l,r]}var ac=class extends K{constructor(e){super(),W(this,e,E6,T6,U,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},P6)}},uc=ac;function A6(i,e,t){let{playNextVideo:n}=e;return Tt(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var cc=class extends K{constructor(e){super(),W(this,e,A6,null,U,{playNextVideo:0})}},ap=cc;import{getCurrentBrowser as R6}from"@vkontakte/videoplayer-shared";var{window:M6}=Co;function B6(i){Se(i,"svelte-1jy89ut",".player-wrapper.svelte-1jy89ut{position:absolute;width:100%;height:100%}.player-wrapper.svelte-1jy89ut .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-1jy89ut{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-1jy89ut,.video-container.svelte-1jy89ut,.ads-container.svelte-1jy89ut{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-1jy89ut{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-1jy89ut{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-1jy89ut{transition:none}.ads-container.svelte-1jy89ut{background:var(--black)}")}function cp(i){let e,t,n,o;e=new uc({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[131]}});let l=!i[49]&&fp(i);return{c(){R(e.$$.fragment),t=D(),l&&l.c(),n=at()},m(r,a){M(e,r,a),S(r,t,a),l&&l.m(r,a),S(r,n,a),o=!0},p(r,a){let s={};a[0]&2&&(s.seekStep=r[1].controls.seekStepMobile/1e3),e.$set(s),r[49]?l&&(ue(),_(l,1,1,()=>{l=null}),ce()):l?(l.p(r,a),a[1]&262144&&d(l,1)):(l=fp(r),l.c(),d(l,1),l.m(n.parentNode,n))},i(r){o||(d(e.$$.fragment,r),d(l),o=!0)},o(r){_(e.$$.fragment,r),_(l),o=!1},d(r){r&&(C(t),C(n)),V(e,r),l&&l.d(r)}}}function fp(i){let e,t;return e=new uc({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[132]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&2&&(l.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function dp(i){let e,t;return e=new es({props:{thumbUrl:i[2],startTime:i[3]?.startTime}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[0]&8&&(l.startTime=n[3]?.startTime),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function mp(i){let e,t;return e=new ts({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function pp(i){let e,t,n;return t=new lr({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","ads-container svelte-1jy89ut"),q(e,"hidden",i[34]!=="ads")},m(o,l){S(o,e,l),M(t,e,null),n=!0},p(o,l){let r={};l[0]&128&&(r.adsSlotId=o[7]),l[0]&256&&(r.adsParams=o[8]),l[0]&512&&(r.adsPreviewParam=o[9]),l[0]&1024&&(r.duration=o[10]),t.$set(r),(!n||l[1]&8)&&q(e,"hidden",o[34]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),V(t)}}}function _p(i){let e,t;return e=new ap({props:{playNextVideo:i[22]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&4194304&&(l.playNextVideo=n[22]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function hp(i){let e,t;return e=new Zr({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function gp(i){let e,t,n;return t=new Zl({props:{"aria-label":j("video360")}}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","spherical-video-icon svelte-1jy89ut")},m(o,l){S(o,e,l),M(t,e,null),n=!0},p:_e,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),V(t)}}}function bp(i){let e,t;return e=new Jr({props:{thumbUrl:i[2],chromecastDeviceName:i[52]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[1]&2097152&&(l.chromecastDeviceName=n[52]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function vp(i){let e,t;return e=new Xr({props:{shifted:i[30],captions:i[54],position:i[44],playerSize:i[31],isMobile:!0}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o[0]&1073741824&&(l.shifted=n[30]),o[1]&8388608&&(l.captions=n[54]),o[1]&8192&&(l.position=n[44]),o[1]&1&&(l.playerSize=n[31]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function yp(i){let e,t,n,o,l;return t=new xr({}),{c(){e=P("div"),R(t.$$.fragment)},m(r,a){S(r,e,a),M(t,e,null),n=!0,o||(l=de(e,"click",st(i[101])),o=!0)},p:_e,i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){_(t.$$.fragment,r),n=!1},d(r){r&&C(e),V(t),o=!1,l()}}}function kp(i){let e,t,n;function o(r){i[133](r)}let l={bottomHidden:i[34]==="thumb"||i[34]==="waitingLive"||i[34]==="waitingRecord"||i[34]==="ads",showControls:i[30],bottomNoSmooth:i[45],isAds:i[34]==="ads",canRewindLive:i[5]&&i[55]!==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[39],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[37]!==void 0&&(l.controlsElementRef=i[37]),e=new Yr({props:l}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&8&&(s.bottomHidden=r[34]==="thumb"||r[34]==="waitingLive"||r[34]==="waitingRecord"||r[34]==="ads"),a[0]&1073741824&&(s.showControls=r[30]),a[1]&16384&&(s.bottomNoSmooth=r[45]),a[1]&8&&(s.isAds=r[34]==="ads"),a[0]&32|a[1]&16777216&&(s.canRewindLive=r[5]&&r[55]!==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]&256&&(s.customFullscreenSupported=r[39]),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]&64&&(t=!0,s.controlsElementRef=r[37],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function wp(i){let e,t;return e=new _r({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Cp(i){let e,t;return e=new dr({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Sp(i){let e,t,n=i[5]&&i[78]&&!i[48].has("TIMELINE"),o,l,r,a,s,u,f,p,h,k,g,w,v,T,b,y;e=new $r({props:{hidden:i[34]!=="thumb"||i[33]||i[89]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let I=n&&cp(i),Z=i[34]==="waitingLive"&&dp(i),N=i[34]==="waitingRecord"&&mp(i),z=i[6]&&i[21]&&pp(i),se=i[41]&&i[17]&&i[18]&&_p(i),ae=i[50]&&hp(i),F=i[51]&&gp(i),x=i[35]&&bp(i),E=i[53].value!=="off"&&vp(i),X=i[33]&&yp(i),Q=i[21]&&kp(i);w=new sr({props:{isLive:i[56],isHidden:!i[40],isPlaying:i[46],position:i[44],duration:i[43]}});let G=i[38]&&wp(i),ee=i[57]&&Cp(i);return{c(){R(e.$$.fragment),t=D(),I&&I.c(),o=D(),Z&&Z.c(),l=D(),N&&N.c(),r=D(),z&&z.c(),a=D(),se&&se.c(),s=D(),ae&&ae.c(),u=D(),F&&F.c(),f=D(),x&&x.c(),p=D(),E&&E.c(),h=D(),X&&X.c(),k=D(),Q&&Q.c(),g=D(),R(w.$$.fragment),v=D(),G&&G.c(),T=D(),ee&&ee.c(),b=at()},m(L,H){M(e,L,H),S(L,t,H),I&&I.m(L,H),S(L,o,H),Z&&Z.m(L,H),S(L,l,H),N&&N.m(L,H),S(L,r,H),z&&z.m(L,H),S(L,a,H),se&&se.m(L,H),S(L,s,H),ae&&ae.m(L,H),S(L,u,H),F&&F.m(L,H),S(L,f,H),x&&x.m(L,H),S(L,p,H),E&&E.m(L,H),S(L,h,H),X&&X.m(L,H),S(L,k,H),Q&&Q.m(L,H),S(L,g,H),M(w,L,H),S(L,v,H),G&&G.m(L,H),S(L,T,H),ee&&ee.m(L,H),S(L,b,H),y=!0},p(L,H){let Be={};H[0]&16|H[1]&12&&(Be.hidden=L[34]!=="thumb"||L[33]||L[89]&&L[4]),H[0]&4&&(Be.thumbUrl=L[2]),H[0]&268435456&&(Be.startVideo=L[28]),e.$set(Be),H[0]&32|H[1]&131072&&(n=L[5]&&L[78]&&!L[48].has("TIMELINE")),n?I?(I.p(L,H),H[0]&32|H[1]&131072&&d(I,1)):(I=cp(L),I.c(),d(I,1),I.m(o.parentNode,o)):I&&(ue(),_(I,1,1,()=>{I=null}),ce()),L[34]==="waitingLive"?Z?(Z.p(L,H),H[1]&8&&d(Z,1)):(Z=dp(L),Z.c(),d(Z,1),Z.m(l.parentNode,l)):Z&&(ue(),_(Z,1,1,()=>{Z=null}),ce()),L[34]==="waitingRecord"?N?H[1]&8&&d(N,1):(N=mp(L),N.c(),d(N,1),N.m(r.parentNode,r)):N&&(ue(),_(N,1,1,()=>{N=null}),ce()),L[6]&&L[21]?z?(z.p(L,H),H[0]&2097216&&d(z,1)):(z=pp(L),z.c(),d(z,1),z.m(a.parentNode,a)):z&&(ue(),_(z,1,1,()=>{z=null}),ce()),L[41]&&L[17]&&L[18]?se?(se.p(L,H),H[0]&393216|H[1]&1024&&d(se,1)):(se=_p(L),se.c(),d(se,1),se.m(s.parentNode,s)):se&&(ue(),_(se,1,1,()=>{se=null}),ce()),L[50]?ae?H[1]&524288&&d(ae,1):(ae=hp(L),ae.c(),d(ae,1),ae.m(u.parentNode,u)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),ce()),L[51]?F?(F.p(L,H),H[1]&1048576&&d(F,1)):(F=gp(L),F.c(),d(F,1),F.m(f.parentNode,f)):F&&(ue(),_(F,1,1,()=>{F=null}),ce()),L[35]?x?(x.p(L,H),H[1]&16&&d(x,1)):(x=bp(L),x.c(),d(x,1),x.m(p.parentNode,p)):x&&(ue(),_(x,1,1,()=>{x=null}),ce()),L[53].value!=="off"?E?(E.p(L,H),H[1]&4194304&&d(E,1)):(E=vp(L),E.c(),d(E,1),E.m(h.parentNode,h)):E&&(ue(),_(E,1,1,()=>{E=null}),ce()),L[33]?X?(X.p(L,H),H[1]&4&&d(X,1)):(X=yp(L),X.c(),d(X,1),X.m(k.parentNode,k)):X&&(ue(),_(X,1,1,()=>{X=null}),ce()),L[21]?Q?(Q.p(L,H),H[0]&2097152&&d(Q,1)):(Q=kp(L),Q.c(),d(Q,1),Q.m(g.parentNode,g)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),ce());let ze={};H[1]&33554432&&(ze.isLive=L[56]),H[1]&512&&(ze.isHidden=!L[40]),H[1]&32768&&(ze.isPlaying=L[46]),H[1]&8192&&(ze.position=L[44]),H[1]&4096&&(ze.duration=L[43]),w.$set(ze),L[38]?G?H[1]&128&&d(G,1):(G=wp(L),G.c(),d(G,1),G.m(T.parentNode,T)):G&&(ue(),_(G,1,1,()=>{G=null}),ce()),L[57]?ee?H[1]&67108864&&d(ee,1):(ee=Cp(L),ee.c(),d(ee,1),ee.m(b.parentNode,b)):ee&&(ue(),_(ee,1,1,()=>{ee=null}),ce())},i(L){y||(d(e.$$.fragment,L),d(I),d(Z),d(N),d(z),d(se),d(ae),d(F),d(x),d(E),d(X),d(Q),d(w.$$.fragment,L),d(G),d(ee),y=!0)},o(L){_(e.$$.fragment,L),_(I),_(Z),_(N),_(z),_(se),_(ae),_(F),_(x),_(E),_(X),_(Q),_(w.$$.fragment,L),_(G),_(ee),y=!1},d(L){L&&(C(t),C(o),C(l),C(r),C(a),C(s),C(u),C(f),C(p),C(h),C(k),C(g),C(v),C(T),C(b)),V(e,L),I&&I.d(L),Z&&Z.d(L),N&&N.d(L),z&&z.d(L),se&&se.d(L),ae&&ae.d(L),F&&F.d(L),x&&x.d(L),E&&E.d(L),X&&X.d(L),Q&&Q.d(L),V(w,L),G&&G.d(L),ee&&ee.d(L)}}}function D6(i){let e,t,n,o,l,r=i[47],a,s,u,f,p,h,k=Sp(i);return{c(){e=P("div"),t=P("div"),n=P("div"),l=D(),k.c(),a=D(),s=P("div"),c(n,"class","video-container svelte-1jy89ut"),c(n,"style",o=`transform: rotate(${i[32]}deg) scale(${i[42]})`),c(n,"data-testid","video-container"),c(n,"data-is-playing",i[46]),q(n,"fast-rotate",!i[1].isSmoothVideoRotate),c(t,"class","video-wrapper svelte-1jy89ut"),q(t,"hidden",i[34]!=="video"),c(s,"class","overlay-container"),c(e,"class","player-wrapper svelte-1jy89ut"),c(e,"role","region"),c(e,"aria-label",u=j("aria_label_video_player")),c(e,"tabindex","-1")},m(g,w){S(g,e,w),m(e,t),m(t,n),i[130](n),m(e,l),k.m(e,null),m(e,a),m(e,s),i[134](s),i[135](e),f=!0,p||(h=[de(M6,"blur",i[99]),de(t,"click",Pt(i[100])),de(e,"click",i[102],!0),de(e,"focusin",i[103],!0)],p=!0)},p(g,w){(!f||w[1]&2050&&o!==(o=`transform: rotate(${g[32]}deg) scale(${g[42]})`))&&c(n,"style",o),(!f||w[1]&32768)&&c(n,"data-is-playing",g[46]),(!f||w[0]&2)&&q(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!f||w[1]&8)&&q(t,"hidden",g[34]!=="video"),w[1]&65536&&U(r,r=g[47])?(ue(),_(k,1,1,_e),ce(),k=Sp(g),k.c(),d(k,1),k.m(e,a)):k.p(g,w)},i(g){f||(d(k),f=!0)},o(g){_(k),f=!1},d(g){g&&C(e),i[130](null),k.d(g),i[134](null),i[135](null),p=!1,et(h)}}}function N6(i,e,t){let n,o,l,r,a,s,u,f,p,h,k,g,w,v,T,b,y,I,Z,N,z,se,ae,F,x,E,X,Q,G,ee,L,H,Be,ze,We,Xe,qe,{store:ye}=e,{uiConfig:J}=e,{thumbUrl:we}=e,{videoContainer:Ke}=e,{interactiveContainer:Je}=e,{live:it}=e,{autoplay:ke}=e,{canRewindLive:Ne}=e,{showAds:Ge}=e,{adsSlotId:nt=void 0}=e,{adsParams:Ce=void 0}=e,{adsPreviewParam:re=void 0}=e,{duration:Ue=void 0}=e,{logoClickable:me}=e,{logoHidden:le}=e,{logoTargetUrl:De=""}=e,{showNextPrevButtons:Me=!1}=e,{nextButtonActive:Ye=!1}=e,{prevButtonActive:rt=!1}=e,{endScreenVideoTitle:ve=void 0}=e,{endScreenVideoThumb:ft=void 0}=e,{isOneVideoPlaylist:ht=!1}=e,{supportLink:ut}=e,{shadowRootContainer:mt=void 0}=e,{outerContainerRef:St=void 0}=e,{showMiniTimer:Qe=!1}=e,{fullScreenTarget:Nt=void 0}=e,{playerStarted:Vt=!1}=e,{playNextVideo:Ct=fc}=e,{playPrevVideo:oi=fc}=e,{repeatPlaylist:lt=fc}=e,{seekToInteractive:kt}=e,{toggleGraph:be}=e,{playPrevChapter:pt}=e,{firstStart:It}=e,{seekTime:Qt}=e,yt=ye.getLogger().createComponentLog("Root component"),Ut=ye.interfaceLanguage$;O(i,Ut,ie=>t(47,X=ie));let qt=ye.state.playbackState$;O(i,qt,ie=>t(127,ae=ie));let Kt=ye.ads.playbackState;O(i,Kt,ie=>t(128,F=ie));let Fi=ye.state.positionWithScrubbing$;O(i,Fi,ie=>t(44,a=ie));let tn=ye.state.duration$;O(i,tn,ie=>t(43,r=ie));let Jt=ye.playerPhase;O(i,Jt,ie=>t(34,Z=ie));let Ii=ye.ui.isFullscreen;O(i,Ii,ie=>t(142,u=ie));let cn=ye.ui.controlsVisible;O(i,cn,ie=>t(30,o=ie));let Pi=ye.ui.interactiveHideMobileControls;O(i,Pi,ie=>t(119,k=ie));let nn=ye.ui.settingsMenuVisible;O(i,nn,ie=>t(118,n=ie));let li=ye.ui.scrubbingInProgress;O(i,li,ie=>t(120,w=ie));let Ti=ye.ui.debugPanelVisible;O(i,Ti,ie=>t(57,qe=ie));let xt=ye.state.isLoaderVisible;O(i,xt,ie=>t(129,x=ie));let _i=ye.state.isEnded$;O(i,_i,ie=>t(122,b=ie));let hi=ye.state.chromecastConnected$;O(i,hi,ie=>t(35,N=ie));let gi=ye.state.chromecastDeviceName$;O(i,gi,ie=>t(52,H=ie));let ri=ye.ads.postrollPassed;O(i,ri,ie=>t(123,y=ie));let si=ye.ui.mobileUnmuteButtonExpanded,jt=ye.ui.mobileUnmuteButtonVisible,bi=ye.state.isLive$;O(i,bi,ie=>t(56,Xe=ie));let Hi=ye.state.isPlaying$;O(i,Hi,ie=>t(46,E=ie));let vi=ye.state.isActiveLive$;O(i,vi,ie=>t(49,G=ie));let ai=ye.state.isRewindableLive$,zi=ye.state.crashed$;O(i,zi,ie=>t(33,T=ie));let Mt=ye.webApi.pictureInPictureApi,Ui=ye.state.videoSize$;O(i,Ui,ie=>t(143,p=ie));let Ot=ye.state.currentSubtitle$;O(i,Ot,ie=>t(53,Be=ie));let Ei=ye.state.currentSubtitleCaptions$;O(i,Ei,ie=>t(54,ze=ie));let Ki=ye.state.duration$;O(i,Ki,ie=>t(55,We=ie));let ji=ye.state.graphIsOpened$;O(i,ji,ie=>t(126,se=ie));let Wt=ye.ui.playerSize;O(i,Wt,ie=>t(31,f=ie));let ui=ye.ui.is3DVideo;O(i,ui,ie=>t(50,ee=ie));let ci=ye.ui.icon3DVideoVisible;O(i,ci,ie=>t(51,L=ie));let fi=ye.ui.rotateAlpha;O(i,fi,ie=>t(32,g=ie));let $t=ye.state.isInteractive,Et=ye.state.isInteractiveTime$;O(i,Et,ie=>t(121,v=ie));let yi=ye.state.isInteractiveExpectation$;O(i,yi,ie=>t(125,z=ie));let Ai=ye.state.hasInteractiveBranches,Yt=ye.ui.controls.disabledControls$;O(i,Yt,ie=>t(48,Q=ie));let Zt=ye.ui.touched;O(i,Zt,ie=>t(124,I=ie));let ei=ye.ui.clientInfo$;O(i,ei,ie=>t(141,s=ie));let Wi=ye.ui.overlayContainer$,fn=ye.state.isFirstBytes$;O(i,fn,ie=>t(140,l=ie));let on=ye.actions.internal.closeSettingsMenu,Gi=ye.callbacks?.onDisabledPlayPrevChapterClick,Mi=ye.callbacks?.onDisabledSeekToInteractiveClick,Ft,Lt,Dt,Vi,Li,ln,Ri,Bi=Re(!1);O(i,Bi,ie=>t(45,h=ie));let $e,ti=!1,Xt,He=!1,Qi,rn=!0,Yi,Zi,Xi=!1,Ji;Mt?.setContext(bl());let sn=ie=>{clearTimeout(Vi),ie&&(jt.set(!0),si.set(!0),Vi=window.setTimeout(()=>{si.set(!1)},J.controls.collapseMobileUnmute),$t||Ht(J.controls.hideTimeoutMobile))};ye.setUiCallbacks({onStarted:sn});let dn=()=>{window.clearTimeout(Dt),t(113,ti=!1),k&&Pi.set(!1)},Ht=ie=>{dn(),t(113,ti=!0),Dt=window.setTimeout(()=>t(113,ti=!1),ie);let gt=ie-100;$e=window.setTimeout(()=>{h&&Bi.set(!1)},gt>0?gt:ie)},Di=ui.subscribe(ie=>{ci.set(ie),ie&&(window.clearTimeout(Li),Li=window.setTimeout(()=>ci.set(!1),J.controls.hide360IconTimeout))}),pn=async()=>{let ie=so();if(ie){let gt=kl(),un=_n(),te=R6().browser===L6.SamsungBrowser&>===mt;ie=gt===un||te}if(ie){Ht(J.controls.hideTimeoutFullscreen);try{await Mt?.remove()}catch(gt){yt({message:String(gt)})}try{let gt=p?.width&&p?.height?p:f;await If(gt)}catch(gt){yt({message:String(gt)})}}Ii.set(ie),ye.getAdmanWrapper().setFullscreen(ie),u?ye.callbacks?.onFullscreenEnter?.():ye.callbacks?.onFullscreenExit?.()},kn=ie=>{let gt=ie;Wt.set({width:gt.target.width,height:gt.target.height})};Tt(()=>(nr(pn),Vo(Mt)&&(Mt?.assignPlayerContainer(Ft),Mt?.registryExternalEventHandlers({resize:kn})),t(39,rn=!rp(s)),Je&&Ke.parentElement?.insertBefore(Je,Ke.nextSibling),()=>{window.clearTimeout(Dt),window.clearTimeout($e),window.clearTimeout(Vi),window.clearTimeout(Li),Di(),Mt?.dispose(),or(pn)}));let Ni=ie=>{let gt=a+(ie==="forward"?1:-1)*J.controls.seekStepMobile/1e3;gt<0?gt=0:gt>r&&(gt=r-1),t(115,He=!0),Qt(gt)},_n=()=>{let ie=up()||!St?Ft:St,gt=ie.getRootNode(),un=gt instanceof ShadowRoot?gt.host:gt,te=Nt instanceof HTMLElement&&Nt.contains(un);return J.allowChangingFullscreenTarget&&Nt&&te?Nt:ie},mn=async()=>{if(so())await ir(document),yt({message:"exit fullscreen"});else{if(yt({message:"request fullscreen"}),up()&&!l)return;await tr(_n())}},ii=()=>{on()},xi=()=>{if(n){ii();return}if(!Vt){It(),Ht(J.controls.hideTimeoutCursor);return}t(115,He=!1),o?dn():Ht(J.controls.hideTimeoutMobile)},$i=()=>{if(n){ii();return}},wn=()=>{Zt.set(!0)},hn=()=>{$t||(Bi.set(!0),Ht(J.controls.hideTimeoutCursor))},Gt=ie=>{Gi&&(Gi(ie),Ht(J.controls.hideTimeoutMobile))},Mn=ie=>{Mi&&(Mi(ie),Ht(J.controls.hideTimeoutMobile))};function Vn(ie){pe[ie?"unshift":"push"](()=>{Ke=ie,t(0,Ke)})}let Cn=()=>Ni("backward"),gn=()=>Ni("forward");function an(ie){Lt=ie,t(37,Lt)}function Sn(ie){pe[ie?"unshift":"push"](()=>{Ri=ie,t(29,Ri)})}function en(ie){pe[ie?"unshift":"push"](()=>{Ft=ie,t(36,Ft)})}return i.$$set=ie=>{"store"in ie&&t(106,ye=ie.store),"uiConfig"in ie&&t(1,J=ie.uiConfig),"thumbUrl"in ie&&t(2,we=ie.thumbUrl),"videoContainer"in ie&&t(0,Ke=ie.videoContainer),"interactiveContainer"in ie&&t(107,Je=ie.interactiveContainer),"live"in ie&&t(3,it=ie.live),"autoplay"in ie&&t(4,ke=ie.autoplay),"canRewindLive"in ie&&t(5,Ne=ie.canRewindLive),"showAds"in ie&&t(6,Ge=ie.showAds),"adsSlotId"in ie&&t(7,nt=ie.adsSlotId),"adsParams"in ie&&t(8,Ce=ie.adsParams),"adsPreviewParam"in ie&&t(9,re=ie.adsPreviewParam),"duration"in ie&&t(10,Ue=ie.duration),"logoClickable"in ie&&t(11,me=ie.logoClickable),"logoHidden"in ie&&t(12,le=ie.logoHidden),"logoTargetUrl"in ie&&t(13,De=ie.logoTargetUrl),"showNextPrevButtons"in ie&&t(14,Me=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(15,Ye=ie.nextButtonActive),"prevButtonActive"in ie&&t(16,rt=ie.prevButtonActive),"endScreenVideoTitle"in ie&&t(17,ve=ie.endScreenVideoTitle),"endScreenVideoThumb"in ie&&t(18,ft=ie.endScreenVideoThumb),"isOneVideoPlaylist"in ie&&t(19,ht=ie.isOneVideoPlaylist),"supportLink"in ie&&t(20,ut=ie.supportLink),"shadowRootContainer"in ie&&t(108,mt=ie.shadowRootContainer),"outerContainerRef"in ie&&t(109,St=ie.outerContainerRef),"showMiniTimer"in ie&&t(110,Qe=ie.showMiniTimer),"fullScreenTarget"in ie&&t(111,Nt=ie.fullScreenTarget),"playerStarted"in ie&&t(21,Vt=ie.playerStarted),"playNextVideo"in ie&&t(22,Ct=ie.playNextVideo),"playPrevVideo"in ie&&t(23,oi=ie.playPrevVideo),"repeatPlaylist"in ie&&t(24,lt=ie.repeatPlaylist),"seekToInteractive"in ie&&t(25,kt=ie.seekToInteractive),"toggleGraph"in ie&&t(26,be=ie.toggleGraph),"playPrevChapter"in ie&&t(27,pt=ie.playPrevChapter),"firstStart"in ie&&t(28,It=ie.firstStart),"seekTime"in ie&&t(112,Qt=ie.seekTime)},i.$$.update=()=>{if(i.$$.dirty[1]&12|i.$$.dirty[4]&48)e:t(38,ln=(Z==="video"&&x||Z==="ads"&&F==="inactive")&&!T);if(i.$$.dirty[0]&536870912)e:Wi.set(Ri);if(i.$$.dirty[4]&8)e:t(114,Xt=ae!==V6.PLAYING);if(i.$$.dirty[3]&607125504|i.$$.dirty[4]&6)e:t(116,Qi=se||k||!ti&&(b&&!!Ai||Xt&&z));if(i.$$.dirty[1]&28|i.$$.dirty[3]&183500800)e:cn.set((Xt||n||w||N||ti&&!He)&&!Qi&&Z==="video"&&!T);if(i.$$.dirty[0]&1073741826|i.$$.dirty[1]&12|i.$$.dirty[3]&131072|i.$$.dirty[4]&1)e:t(40,Yi=J.features.thumbTimer&&Qe&&Z==="video"&&!o&&!T&&!$t&&(J.hideThumbTimerAfterTouch&&!I||!J.hideThumbTimerAfterTouch));if(i.$$.dirty[0]&64|i.$$.dirty[1]&4|i.$$.dirty[3]&1610612736)e:t(41,Zi=(Ge&&y||!Ge)&&b&&!T);if(i.$$.dirty[0]&2|i.$$.dirty[3]&419430400)e:!w&&Xi&&!v&&Ht(J.controls.hideTimeoutMobile),t(117,Xi=w);if(i.$$.dirty[0]&1|i.$$.dirty[1]&3)e:t(42,Ji=Ke&&g%180?f.height/f.width:1)},[Ke,J,we,it,ke,Ne,Ge,nt,Ce,re,Ue,me,le,De,Me,Ye,rt,ve,ft,ht,ut,Vt,Ct,oi,lt,kt,be,pt,It,Ri,o,f,g,T,Z,N,Ft,Lt,ln,rn,Yi,Zi,Ji,r,a,h,E,X,Q,G,ee,L,H,Be,ze,We,Xe,qe,Ut,qt,Kt,Fi,tn,Jt,Ii,cn,Pi,nn,li,Ti,xt,_i,hi,gi,ri,bi,Hi,vi,ai,zi,Ui,Ot,Ei,Ki,ji,Wt,ui,ci,fi,$t,Et,yi,Yt,Zt,ei,fn,Bi,Ni,mn,ii,xi,$i,wn,hn,Gt,Mn,ye,Je,mt,St,Qe,Nt,Qt,ti,Xt,He,Qi,Xi,n,k,w,v,b,y,I,z,se,ae,F,x,Vn,Cn,gn,an,Sn,en]}var dc=class extends K{constructor(e){super(),W(this,e,N6,D6,U,{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},B6,[-1,-1,-1,-1,-1,-1])}},Ip=dc;function H6(i){Se(i,"svelte-xfba9d",`.root.svelte-xfba9d{--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 _e(){}function ne(i,e){for(let t in e)i[t]=e[t];return i}function us(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;--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:10000}.out-of-view{position:absolute !important;left:-1000vh !important}`)}function U6(i){let e,t,n;function o(l){i[61](l)}let r={store:i[0],uiConfig:i[35],title:i[1],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[36],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[38]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new lp({props:r}),me.push(()=>qe(e,"videoContainer",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&1&&(s.store=l[0]),a[0]&2&&(s.title=l[1]),a[0]&4&&(s.thumbUrl=l[2]),a[0]&8&&(s.interactiveContainer=l[3]),a[0]&16&&(s.live=l[4]),a[0]&32&&(s.autoplay=l[5]),a[0]&64&&(s.canRewindLive=l[6]),a[0]&128&&(s.showAds=l[7]),a[0]&256&&(s.adsSlotId=l[8]),a[0]&512&&(s.adsParams=l[9]),a[0]&1024&&(s.adsPreviewParam=l[10]),a[0]&2048&&(s.duration=l[11]),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&262144&&(s.endScreenVideoTitle=l[18]),a[0]&524288&&(s.endScreenVideoThumb=l[19]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&4194304&&(s.shadowRootContainer=l[22]),a[0]&8388608&&(s.outerContainerRef=l[23]),a[0]&16777216&&(s.fullScreenTarget=l[24]),a[0]&33554432&&(s.showMiniTimer=l[25]),a[1]&8&&(s.playerStarted=l[34]),a[0]&67108864&&(s.playNextVideo=l[26]),a[0]&134217728&&(s.playPrevVideo=l[27]),a[0]&268435456&&(s.repeatPlaylist=l[28]),a[0]&536870912&&(s.seekToInteractive=l[29]),a[0]&1073741824&&(s.toggleGraph=l[30]),a[1]&1&&(s.playPrevChapter=l[31]),!t&&a[1]&4&&(t=!0,s.videoContainer=l[33],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function K6(i){let e,t,n;function o(l){i[60](l)}let r={store:i[0],uiConfig:i[35],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[36],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[38],seekTime:i[32]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new Ip({props:r}),me.push(()=>qe(e,"videoContainer",o)),{c(){R(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&1&&(s.store=l[0]),a[0]&4&&(s.thumbUrl=l[2]),a[0]&8&&(s.interactiveContainer=l[3]),a[0]&16&&(s.live=l[4]),a[0]&32&&(s.autoplay=l[5]),a[0]&64&&(s.canRewindLive=l[6]),a[0]&128&&(s.showAds=l[7]),a[0]&256&&(s.adsSlotId=l[8]),a[0]&512&&(s.adsParams=l[9]),a[0]&1024&&(s.adsPreviewParam=l[10]),a[0]&2048&&(s.duration=l[11]),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&262144&&(s.endScreenVideoTitle=l[18]),a[0]&524288&&(s.endScreenVideoThumb=l[19]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&4194304&&(s.shadowRootContainer=l[22]),a[0]&8388608&&(s.outerContainerRef=l[23]),a[0]&16777216&&(s.fullScreenTarget=l[24]),a[0]&33554432&&(s.showMiniTimer=l[25]),a[1]&8&&(s.playerStarted=l[34]),a[0]&67108864&&(s.playNextVideo=l[26]),a[0]&134217728&&(s.playPrevVideo=l[27]),a[0]&268435456&&(s.repeatPlaylist=l[28]),a[0]&536870912&&(s.seekToInteractive=l[29]),a[0]&1073741824&&(s.toggleGraph=l[30]),a[1]&1&&(s.playPrevChapter=l[31]),!t&&a[1]&4&&(t=!0,s.videoContainer=l[33],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function j6(i){let e,t,n,o,r=[K6,U6],l=[];function a(s,u){return s[14]?0:1}return t=a(i,[-1,-1,-1]),n=l[t]=r[t](i),{c(){e=I("div"),n.c(),c(e,"class","root svelte-xfba9d")},m(s,u){S(s,e,u),l[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?l[t].p(s,u):(se(),_(l[f],1,1,()=>{l[f]=null}),ae(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null))},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&C(e),l[t].d()}}}function W6(i,e,t){let n,{sources:o}=e,{store:r}=e,{microStoresRoot:l}=e,{videoConfig:a}=e,{uiConfig:s}=e,{title:u}=e,{thumbUrl:f}=e,{interactiveContainer:p}=e,{subtitles:h}=e,{live:k}=e,{preload:g}=e,{autoplay:w}=e,{volume:v=void 0}=e,{muted:E=void 0}=e,{fromTime:b}=e,{canRewindLive:y}=e,{showAds:T}=e,{adsSlotId:W=void 0}=e,{adsParams:F=void 0}=e,{adsPreviewParam:O=void 0}=e,{duration:le=void 0}=e,{logoClickable:re}=e,{logoHidden:H}=e,{isMobile:A}=e,{showNextPrevButtons:J=!1}=e,{nextButtonActive:Y=!1}=e,{prevButtonActive:ce=!1}=e,{endScreenVideoTitle:Z=void 0}=e,{endScreenVideoThumb:oe=void 0}=e,{isOneVideoPlaylist:P=!1}=e,{supportLink:N}=e,{shadowRootContainer:Me=void 0}=e,{outerContainerRef:Ue=void 0}=e,{fullScreenTarget:Ge=void 0}=e,{failoverHosts:Qe=void 0}=e,{showMiniTimer:Le=!1}=e,{saveRate:be}=e,{playNextVideo:x=fl}=e,{playPrevVideo:Se=fl}=e,{repeatPlaylist:$e=fl}=e,{seekToInteractive:He=fl}=e,{toggleGraph:it=fl}=e,{playPrevChapter:we=fl}=e,{volumeMultiplier:Ye}=e,{subscribers:ot,stores:je}=l;Hc(s);let Ke=Nt(),Xe=s.logoLink,fe=r.ui.debugPanelVisible,Ce=r.ui.playerSize,pe=r.state.isLive$;z(i,pe,ve=>t(63,n=ve));let Oe,ee=null,ke=!1;r.getAdmanWrapper().init({switchFromAdsToVideo:r.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:r.actions.internal.switchFromVideoToAds,setMuted:r.actions.external.setMuted},r.ads,{isMobile:r.ui.isMobile,mobileUnmuteButtonVisible:r.ui.mobileUnmuteButtonVisible,vsid:r.vsid}),Xc(r,je);let rt=(ve=!1)=>{t(34,ke=!0),ve?r.actions.external.firstStart(T):r.actions.internal.firstStart(T)};function ye(ve){let _t=o||ve;_t&&r.initVideo({container:Oe,sources:_t,failoverHosts:Qe,subtitles:h,volumeMultiplier:Ye});let St=O6.get(bl)==="true";fe.set(St),b>0&&r.actions.external.seekTime(b);let Jt=A?Ke.volumeDefault:v??Ql()??Ke.volumeDefault,bt=E??ff();if(r.actions.external.setVolume(Jt),r.actions.external.setMuted(bt),r.getAdmanWrapper().setInitialVolume(bt?0:Jt),Ke.features.trafficSaving){let Ut=mf();Ut&&r.actions.internal.setTrafficSavingEnabled(Ut)}if(Ke.features.saveRate&&be){let Ut=hf();Ut&&!n&&r.actions.internal.setPlaybackRate(Ut)}let zt=af(r.videoId);zt&&r.actions.internal.setQuality(zt),r.ui.isAutoplay.set(w),w?rt():g&&Ke.features.preload&&r.actions.internal.preload()}let dt=ve=>{if(window.ResizeObserver){let _t,St;ee=new ResizeObserver(F6(Jt=>{let bt=Jt[0];if(bt){if(bt.contentBoxSize){let zt=Array.isArray(bt.contentBoxSize)?bt.contentBoxSize[0]:bt.contentBoxSize;_t=zt.inlineSize,St=zt.blockSize}else bt.contentRect&&(_t=bt.contentRect.width,St=bt.contentRect.height);Ce.set({width:_t,height:St})}},300)),ee.observe(ve)}Ce.set({width:ve.clientWidth,height:ve.clientHeight})};Pt(()=>{dt(Oe);let ve=ot.map(St=>St.init({store:r,microStores:je,config:a}));if(k?.status==="upcoming"||k?.status==="waiting"){r.actions.internal.setWaitingLive(!0);return}if((k?.status==="finished"||k?.status==="postlive")&&!Object.keys(o||[]).length){r.actions.internal.setWaitingRecord(!0);return}return ye(),()=>{ee?.disconnect(),ve.forEach(St=>St.unsubscribe()),r.destroy()}});function Fe(){ke?r.actions.external.play():rt(!0)}function mt(){r.actions.external.pause()}function kt(ve){A||r.actions.external.setMuted(ve)}function Tt(ve){A||ve>=0&&ve<=1&&r.actions.external.setVolume(ve)}function Ze(ve){r.actions.internal.seekTime(ve,H6.UNKNOWN)}function qt(ve){r.actions.external.seekEpisodeStartTime(ve)}function Vt(){r.actions.external.returnFocusToEpisodes()}function Ct(ve){r.actions.external.setPlaybackRate(ve)}function si(ve){r.actions.external.setAutoQualityLimits(ve)}function st(ve){Oe=ve,t(33,Oe)}function gt(ve){Oe=ve,t(33,Oe)}return i.$$set=ve=>{"sources"in ve&&t(39,o=ve.sources),"store"in ve&&t(0,r=ve.store),"microStoresRoot"in ve&&t(40,l=ve.microStoresRoot),"videoConfig"in ve&&t(41,a=ve.videoConfig),"uiConfig"in ve&&t(42,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(43,h=ve.subtitles),"live"in ve&&t(4,k=ve.live),"preload"in ve&&t(44,g=ve.preload),"autoplay"in ve&&t(5,w=ve.autoplay),"volume"in ve&&t(45,v=ve.volume),"muted"in ve&&t(46,E=ve.muted),"fromTime"in ve&&t(47,b=ve.fromTime),"canRewindLive"in ve&&t(6,y=ve.canRewindLive),"showAds"in ve&&t(7,T=ve.showAds),"adsSlotId"in ve&&t(8,W=ve.adsSlotId),"adsParams"in ve&&t(9,F=ve.adsParams),"adsPreviewParam"in ve&&t(10,O=ve.adsPreviewParam),"duration"in ve&&t(11,le=ve.duration),"logoClickable"in ve&&t(12,re=ve.logoClickable),"logoHidden"in ve&&t(13,H=ve.logoHidden),"isMobile"in ve&&t(14,A=ve.isMobile),"showNextPrevButtons"in ve&&t(15,J=ve.showNextPrevButtons),"nextButtonActive"in ve&&t(16,Y=ve.nextButtonActive),"prevButtonActive"in ve&&t(17,ce=ve.prevButtonActive),"endScreenVideoTitle"in ve&&t(18,Z=ve.endScreenVideoTitle),"endScreenVideoThumb"in ve&&t(19,oe=ve.endScreenVideoThumb),"isOneVideoPlaylist"in ve&&t(20,P=ve.isOneVideoPlaylist),"supportLink"in ve&&t(21,N=ve.supportLink),"shadowRootContainer"in ve&&t(22,Me=ve.shadowRootContainer),"outerContainerRef"in ve&&t(23,Ue=ve.outerContainerRef),"fullScreenTarget"in ve&&t(24,Ge=ve.fullScreenTarget),"failoverHosts"in ve&&t(48,Qe=ve.failoverHosts),"showMiniTimer"in ve&&t(25,Le=ve.showMiniTimer),"saveRate"in ve&&t(49,be=ve.saveRate),"playNextVideo"in ve&&t(26,x=ve.playNextVideo),"playPrevVideo"in ve&&t(27,Se=ve.playPrevVideo),"repeatPlaylist"in ve&&t(28,$e=ve.repeatPlaylist),"seekToInteractive"in ve&&t(29,He=ve.seekToInteractive),"toggleGraph"in ve&&t(30,it=ve.toggleGraph),"playPrevChapter"in ve&&t(31,we=ve.playPrevChapter),"volumeMultiplier"in ve&&t(50,Ye=ve.volumeMultiplier)},i.$$.update=()=>{if(i.$$.dirty[0]&16385)e:r.ui.isMobile.set(A)},[r,u,f,p,k,w,y,T,W,F,O,le,re,H,A,J,Y,ce,Z,oe,P,N,Me,Ue,Ge,Le,x,Se,$e,He,it,we,Ze,Oe,ke,Ke,Xe,pe,rt,o,l,a,s,h,g,v,E,b,Qe,be,Ye,ye,Fe,mt,kt,Tt,qt,Vt,Ct,si,st,gt]}var mc=class extends K{constructor(e){super(),G(this,e,W6,j6,U,{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]}},Pp=mc;function G6(i){let e,t,n,o=i[2].default,r=Pe(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ne(a,l[s]);return{c(){e=B("svg"),r&&r.c(),t=B("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"),ge(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ee(r,o,s,s[1],n?Te(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function Q6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var pc=class extends K{constructor(e){super(),G(this,e,Q6,G6,U,{})}},Tp=pc;function Y6(i){let e,t;return e=new Tp({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Z6(i,e,t){let n,{isWhite:o=!1}=e;return i.$$set=r=>{"isWhite"in r&&t(1,o=r.isWhite)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var _c=class extends K{constructor(e){super(),G(this,e,Z6,Y6,U,{isWhite:1})}},Ep=_c;function X6(i){Ie(i,"svelte-1y9fytq",".playerStub.svelte-1y9fytq{width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.title.svelte-1y9fytq{position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}")}function Ap(i){let e,t;return{c(){e=I("div"),t=Ve(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&&C(e)}}}function Mp(i){let e,t;return e=new Ep({props:{isWhite:!!i[1]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isWhite=!!n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function J6(i){let e,t,n,o,r=i[0]&&Ap(i),l=(!i[0]||!i[1])&&Mp(i);return{c(){e=I("div"),r&&r.c(),t=D(),l&&l.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),r&&r.m(e,null),m(e,t),l&&l.m(e,null),o=!0},p(a,[s]){a[0]?r?r.p(a,s):(r=Ap(a),r.c(),r.m(e,t)):r&&(r.d(1),r=null),!a[0]||!a[1]?l?(l.p(a,s),s&3&&d(l,1)):(l=Mp(a),l.c(),d(l,1),l.m(e,null)):l&&(se(),_(l,1,1,()=>{l=null}),ae()),(!o||s&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&c(e,"style",n)},i(a){o||(d(l),o=!0)},o(a){_(l),o=!1},d(a){a&&C(e),r&&r.d(),l&&l.d()}}}function x6(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"thumbUrl"in r&&t(1,o=r.thumbUrl)},[n,o]}var hc=class extends K{constructor(e){super(),G(this,e,x6,J6,U,{title:0,thumbUrl:1},X6)}},Vp=hc;import{cloneDeepWith as b8,getCurrentBrowser as v8,InterfaceLanguage as y8,isMobile as k8,isNonNullable as wc,Logger as w8,Subject as C8,Subscription as S8,CurrentClientBrowser as I8}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";import{InteractiveInterfaceClick as Rl}from"@vkontakte/videoplayer-statistics";import{Subscription as $6}from"@vkontakte/videoplayer-shared";var is=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$);navigator.mediaSession.setPositionState({position:t,playbackRate:n,duration:o})}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{CurrentClientBrowser as l8,ValueSubject as r8,getCurrentBrowser as s8,detectEmbed as a8}from"@vkontakte/videoplayer-shared";function e8(i){let e,t,n,o,r,l=i[2].default,a=Pe(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=B("svg"),a&&a.c(),t=B("g"),n=B("path"),o=B("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"),ge(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),r=!0},p(f,[p]){a&&a.p&&(!r||p&2)&&Ee(a,l,f,f[1],r?Te(l,f[1],p,null):Ae(f[1]),null),ge(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){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&C(e),a&&a.d(f)}}}function t8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var gc=class extends K{constructor(e){super(),G(this,e,t8,e8,U,{})}},Lp=gc;function i8(i){Ie(i,"svelte-1pbsod4",".player-pip-dummy.svelte-1pbsod4{width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.player-pip-dummy.is-pip-api.svelte-1pbsod4{position:relative}.dummy-image.svelte-1pbsod4 svg{transform:scale(1.07143)}.dummy-image.desktop.svelte-1pbsod4{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.svelte-1pbsod4{font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center}")}function n8(i){let e,t,n,o,r,l,a;return n=new Lp({}),{c(){e=I("div"),t=I("div"),R(n.$$.fragment),o=D(),r=I("span"),l=Ve(i[0]),c(t,"class","dummy-image svelte-1pbsod4"),q(t,"desktop",!i[1]),c(r,"class","title svelte-1pbsod4"),c(e,"class","player-pip-dummy svelte-1pbsod4"),q(e,"is-pip-api",i[2])},m(s,u){S(s,e,u),m(e,t),V(n,t,null),m(e,o),m(e,r),m(r,l),a=!0},p(s,[u]){(!a||u&2)&&q(t,"desktop",!s[1]),(!a||u&1)&&We(l,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){_(n.$$.fragment,s),a=!1},d(s){s&&C(e),L(n)}}}function o8(i,e,t){let n,o,r=nt(),l=!!r.webApi.pictureInPictureApi,a=r.interfaceLanguage$;z(i,a,f=>t(5,n=f));let s=r.ui.isMobile;z(i,s,f=>t(1,o=f));let u;return i.$$.update=()=>{if(i.$$.dirty&32)e:t(0,u=n&&j("pip_dummy_title"))},[u,o,l,a,s,n]}var bc=class extends K{constructor(e){super(),G(this,e,o8,n8,U,{},i8)}},Rp=bc;var u8=460,c8=280,El=class{constructor(){this.info={isActive$:new r8(!1),type:1}}isSupported(){let e=s8().browser===l8.Yandex,{isEmbed:t}=a8();return"documentPictureInPicture"in window&&!e&&!t}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:u8,height:c8,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(r=>[...r.cssRules].map(l=>l.cssText).join(" ")).filter(Boolean).join(`
|
|
53
|
-
`),t=document.createElement("style");t.textContent=e;let n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(t),o.append(this.playerDomElement),this.playerDummyElement=new Rp({target:this.playerParentShadowRoot,context:this.svelteContext}),this.pipWindow?.document.body.append(n),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",r=>{!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 Bp(i){return i instanceof El}var ns=class{static getLatestSupportedVersion(){let e=new Vo,t=new El;if(t.isSupported())return t;if(e.isSupported())return e}};function vc(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 Dp="Inner error. Unexpectedly root annotation container null reference exception",Np="Annotation with such name already exists",qp="Annotation with such name does not exist";var dl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as f8,Subscription as d8,throttleFn as m8}from"@vkontakte/videoplayer-shared";var p8="1",_8=100,os=class{constructor(e){this.annotations=new Map;this.subscriptions=new d8;this.rootAnnotationsContainer=e;let t=m8(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},_8);this.subscriptions.add(f8(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 dl(Dp);if(this.annotations.has(e))throw new dl(Np);t.style.zIndex=t.style.zIndex??p8,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 dl(qp);return t}remove(e){let t=this.get(e);this.annotations.delete(e)&&t.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,t,n){let o=e.offsetTop,r=e.offsetLeft,l=e.offsetWidth,a=e.offsetHeight;return o<0||r<0||r+l>t||o+a>n}registryRootContainer(e){}addLayer(e){return new HTMLElement}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as yc,Subscription as h8}from"@vkontakte/videoplayer-shared";var Gn=class{init({store:e,microStores:t,config:n}){return yc(e),yc(t),yc(n),this.subscription=new h8,this.subscription}};var Al=class extends Gn{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(r=>{this.state$.set(r?!0:null)})),n}};var Ml=class extends Gn{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:r}=t,{fakeIsPlaying$:l}=o,{isInteractiveExpectation$:a,isPlaying$:s}=r.state,{controlsVisible:u,isMobile:f}=r.ui,p=xe(f),h=()=>p&&xe(u);return n.add(u.subscribe(k=>{if(!p)return;let g=xe(l);xe(s)?this.state$.set(k):g!==null&&this.state$.set(!g||k)})),n.add(s.subscribe(k=>{this.state$.set(!k||h())})),n.add(l.subscribe(k=>{if(k===null)return;let g=xe(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!k)})),n}};var Vl=class extends Gn{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(r=>{r.length&&(r.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};import{combine as g8}from"@vkontakte/videoplayer-shared";var kc=De(!1),ls=null,Ll=class extends Gn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...kc,set:(t,n=!1)=>{t!==xe(kc)&&(this.clearTimeout(),kc.set(t),!t&&ls&&(ls=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(t){let n=super.init(t),{store:o,config:r}=t,{isInteractiveTime$:l,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(p=>{xe(l)&&p&&this.state$.set(!1)}));let f=r?.interactiveData||{tooltipHelpHintActive:!1};return n.add(g8({isPlaying$:a,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:h,interactiveTimeIndicator:k})=>{if(!(!p||!k?.isDisplayed)){if(!h)return this.state$.set(!1);f.tooltipHelpHintActive&&ls===null&&(ls=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),o.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var Op=()=>[Al,Ml,Vl,Ll].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var P8={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:y8.RU,logoClickable:!1,logoHidden:!1,isMobile:k8(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1},rs=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.logger=new w8,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new S8,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:r,statPlace:l,statUserSalt:a,statAuthToken:s,statTrackCode:u,refreshStatAuthToken:f,preload:p,autoplay:h,volume:k,muted:g,fromTime:w,canRewindLive:v,supportLink:E,showAds:b,adsSlotId:y,adsParams:T={},adsPreviewParam:W,interfaceLanguage:F,logoClickable:O,logoHidden:le,isMobile:re,isAudioDisabled:H,isLiveCatchUpMode:A,fullScreenTarget:J,failoverHosts:Y,canDownload:ce,callbacks:Z,interactiveData:oe,showThumbTimer:P,additionalButtons:N=[],repeat:Me,saveRate:Ue,volumeMultiplier:Ge}=vc(this.videoConfig,n),{sources:Qe,title:Le,thumbUrl:be,unitedVideoId:x,isClip:Se=!1,duration:$e,adsParams:He={},videoEpisodes:it,previewThumbsData:we,subtitles:Ye,live:ot}=t,je={...T,...He},Ke=this.getNextVideoInfo(),Xe={sources:Qe,title:Le,thumbUrl:be,subtitles:Ye,unitedVideoId:x,isClip:Se,live:ot,albumId:r,statPlace:l,autoplay:h,muted:g,volume:k,fromTime:w,canRewindLive:v,showAds:b,adsSlotId:y,adsParams:je,adsPreviewParam:W,duration:$e,logoClickable:O,logoHidden:le,isMobile:re,repeat:Me,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ke.nextVideoTitle,endScreenVideoThumb:Ke.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},fe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Xe)}`});let Ce=this.uiConfig.features.statistics&&!!x,{pid:pe}=this.videoConfig?.interactiveData?.projectInfo||{};Ce&&(this.statistics=new Ur({movieId:x,albumId:r,place:l,trackCode:u,autoplay:(h&&!this.interactiveController)??!1,mobile:re,clip:Se,refDomain:this.videoConfig.refDomain,...pe&&!this.isInited&&{projectId:Number(pe)}},{refreshAuthToken:f,userSalt:a,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Mo(this.uiConfig.sentry,{version:Jo,env:Wl},{movieId:x,albumId:r,place:l,autoplay:(h&&!this.interactiveController)??!1,mobile:re,clip:Se}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...Mo.getInstance()};let ee=!!oe,ke=[],rt="tooltip_interactive_go_back_disabled_first";if(ee&&this.interactiveController){let Fe=this.interactiveController.state.isInitialChapter$.getValue(),mt=this.interactiveController.getHistoryState();Fe&&ke.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||ke.push("SEEK_TO_INTERACTIVE_BUTTON"),mt.hasPrevChapter$.getValue()||(ke.push("PLAY_PREV_CHAPTER_BUTTON"),Fe||(mt.isGoBackLimited$.getValue()?rt="tooltip_interactive_go_back_disabled_limit":rt="tooltip_interactive_go_back_disabled"))}let ye=()=>{this.isInited=!1,this.prevIsid=void 0;let Fe=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();Z.onReplayInteractiveVideo&&!Fe?Z.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=um({player:o,interfaceLanguage:F,videoId:x,isClip:Se,isLiveCatchUpMode:A,isAudioDisabled:H,statAuthToken:s,callbacks:Z,webApi:fe,videoEpisodes:it,previewThumbsData:we,canDownload:ce,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ke,isInteractive:ee,saveRate:Ue,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,replayInteractive:ye,playPrevChapterDisabledTooltip:rt,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?N:[],looped:Me&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:dt}=this.microStoresRoot=Op();this.subscription.add(this.store.state.currentFormat$.subscribe(Fe=>Z?.onCurrentFormatChanged?.(Fe))),this.subscription.add(dt.interactiveControlsOpacity$.subscribe(Fe=>{Fe!==null&&this?.interactiveController?.setDisabledControls(Fe)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Fe=>Z?.onThroughputEstimationChanged?.(Fe))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Fe=>Z?.onTrafficSavingEnabledChanged?.(Fe))),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Fe=>Z?.onCurrentPlaybackRateChanged?.(Fe))),this.subscription.add(this.store.state.volume$.subscribe(Fe=>Z?.onVolumeChange?.(Fe))),this.subscription.add(this.store.state.muted$.subscribe(Fe=>Fe?Z?.onMute?.():Z?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(Fe=>Z?.onVideoBitrateChanged?.(Fe))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Fe=>{let mt=this.store?.ui.controls.disabledControls$;mt&&(Fe&&!mt.includes(vl)&&mt.add(vl),Fe||mt.remove(vl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Fe=>{if(!(v8().browser===I8.SamsungBrowser)||!Fe||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.initMediaSession(),this.interactiveController&&Ce&&this.initInteractivesStatistics(),this.svelteRootComponent=new Pp({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:Qe,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Le,thumbUrl:be,subtitles:Ye,live:ot,preload:p,autoplay:h,muted:g,volume:k,fromTime:w,canRewindLive:v,supportLink:E,showAds:b,adsSlotId:y,adsParams:je,adsPreviewParam:W,duration:$e,logoClickable:O,logoHidden:le,isMobile:re,failoverHosts:Y,fullScreenTarget:J,saveRate:Ue,shadowRootContainer:this.shadowRootContainer,showMiniTimer:P,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:Ge}}),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(r=>n.onPlayerPhaseChanged?.(r))).add(t.state.playbackState$.subscribe(r=>n.onPlaybackStateChanged?.(r))).add(t.state.isLive$.subscribe(r=>n.onIsLiveChanged?.(r))).add(t.state.isActiveLive$.subscribe(r=>n.onIsActiveLiveChanged?.(r))).add(t.state.isAudioAvailable$.subscribe(r=>n.onIsAudioAvailableChanged?.(r))).add(t.state.currentQuality$.subscribe(r=>n.onCurrentQualityChanged?.(r))).add(t.state.availableQualities$.subscribe(r=>n.onAvailableQualitiesChanged?.(r.map(({value:l})=>l).filter(l=>l!=="auto")))).add(t.state.availableAudioStreams$.subscribe(r=>{r.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(t.ui.isPictureInPictureActive$.subscribe(r=>r?n.onPiPEnter?.():n.onPiPExit?.()));let o=n?.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(r=>o.onControlsVisibleChanged?.(r))).add(t.ui.isMobile.subscribe(r=>o.onIsMobileChanged?.(r))).add(t.ui.playerSize.subscribe(r=>o.onPlayerSizeChanged?.(r))).add(t.ui.controls.prevButton.subscribe(r=>o.onPrevButtonChanged?.(r))).add(t.ui.controls.playButton.subscribe(r=>o.onPlayButtonChanged?.(r))).add(t.ui.controls.replayButton.subscribe(r=>o.onReplayButtonChanged?.(r))).add(t.ui.controls.nextButton.subscribe(r=>o.onNextButtonChanged?.(r))).add(t.ui.controls.playPrevChapterButton.subscribe(r=>o.onPlayPrevChapterChanged?.(r))).add(t.ui.controls.seekToInteractiveButton.subscribe(r=>o.onSeekToInteractiveButtonChanged?.(r))).add(t.ui.controls.interactiveGraphButton.subscribe(r=>o.onGraphButtonChanged?.(r))).add(t.ui.controls.liveButton.subscribe(r=>o.onLiveButtonChanged?.(r))).add(t.ui.controls.time.subscribe(r=>o.onTimeUpdateChanged?.(r))).add(t.ui.controls.episodes.subscribe(r=>o.onEpisodesChanged?.(r))).add(t.ui.controls.subtitles.subscribe(r=>o.onSubtitlesChanged?.(r))).add(t.ui.controls.settings.subscribe(r=>o.onSettingsChanged?.(r))).add(t.ui.controls.fullscreen.subscribe(r=>o.onFullscreenChanged?.(r))).add(t.ui.controls.chromecast.subscribe(r=>o.onChromecastChanged?.(r))).add(t.ui.controls.pip.subscribe(r=>o.onPipChanged?.(r))).add(t.ui.controls.vkLogo.subscribe(r=>o.onVkLogoChanged?.(r))).add(t.ui.controls.interactiveTimeIndicator.subscribe(r=>o.onInteractiveTimeIndicatorChanged?.(r))).add(t.ui.controls.timeline.subscribe(r=>o.onTimelineChanged?.(r)))}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&&wc(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$:r}=t.state,{disabledControls$:l}=t.ui.controls,a=xe(n),s=xe(o);xe(r)?(r.set(!1),this.interactiveController?.toggleGraphView(!1),l.remove(_s),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",r.set(!0),this.interactiveController?.toggleGraphView(!0),l.add(_s),!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 r=this.store?.interfaceLanguage$,l=r?xe(r):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:l,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});let{isInteractiveExpectation$:p}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(k=>{if(!this.isInited)return;let g=this.store;k?g.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):g.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(k=>{this.store&&this.store.state.isInteractiveExpectation$.set(k)}));let h=!0;if(this.interactiveController.on(n.playerChanged,k=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...k.config,title:a?.title||k.config.title};let g=h?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(k.player,g),h&&(h=!1)}),this.interactiveController.on(n.interactives,({type:k,actionType:g})=>{if(!this.store)return;let w=p.getValue();if(k==="action-choice"&&g==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(jl)),k==="action-choice-canceled"){let v=xe(this.store.state.isPlaying$)||w;if(this.videoConfig?.isMobile&&v){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let k=this.interactiveController.getHistoryState();this.subscription.add(k.history$.subscribe(g=>{g.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(g)}))}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,k=>{this.log({message:k.toString()})})}catch(t){this.log({message:t.message})}}async initInteractivesStatistics(){let{statSubscription:t,oneStat:n}=this.statistics;if(!(!t||!n||!this.interactiveController))try{let{INTERACTIVE_CLICK_ACTIONS:o}=await import("@vkontakte/videoplayer-interactive"),r={[o.GO_NEXT_BUTTON]:Rl.NEXT_BUTTON,[o.GO_NEXT_AREA]:Rl.NEXT_AREA,[o.WATCH_AGAIN]:Rl.WATCH_AGAIN,[o.OPEN_GRAPH]:Rl.GRAPH_SHOW,[o.CLOSE_GRAPH]:Rl.GRAPH_HIDE},{click$:l,nextMovie$:a}=this.interactiveController.getStatEvents(),s=new C8;l.subscribe(u=>{u in r?s.next(r[u]):(n?.logError({errorType:"InteractiveVideosAction",fatal:!1}),this.sentry.report?.(new Error("InteractiveVideosAction"),{errorType:"InteractiveVideosAction",fatal:!1}))}),t.add(n.attachToInteractive({click$:s,nextMovie$:a}))}catch(o){n?.logError({errorType:"InteractiveVideos",fatal:!1}),this.sentry.report?.(o,{errorType:"InteractiveVideosAction",fatal:!1})}}initPlayer(t,n={}){if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=vc(P8,b8(t,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=Fc(n.ui??{}),this.coreConfig=n.core??{configName:[]},this.statisticsConfig=n.statistics??{},this.sentry={config:this.uiConfig.sentry??{}},wc(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.videoConfig.isMediaSessionEnabled??!0),wc(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.videoConfig.isMobile=this.uiConfig.isMobile??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=ns.getLatestSupportedVersion():this.pictureInPictureApi=new Vo),this.mediaSessionApi=this.uiConfig.features.mediaSession?new is:void 0,this.annotationsApi=this.uiConfig.features.annotations?new os(this.rootContainer):void 0,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]),Bp(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",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let t="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:t}),this.mediaSessionApi.updateActionHandlers(n),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}play(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("waitingLive")||(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.setWaitingLive(!1),this.svelteRootComponent?.initVideo(t),this.play()}setWaitRecord(){this.log({message:"post live"}),this.store?.actions.internal.setWaitingRecord(!0),this.store?.destroy()}setLiveEnd(t){this.log({message:"live ended"}),this.store?.actions.internal.setWaitingRecord(!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$),l=xe(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.once(n.playerChanged,()=>{l&&o>=l.time?this.seekTime(l.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()}};import{InterfaceLanguage as sO,VKNumericLanguage as aO,loadVKLangPack as uO}from"@vkontakte/videoplayer-shared";import{VideoQuality as fO,VideoFormat as dO}from"@vkontakte/videoplayer-core";var nO=()=>{window.customElements.define("vk-video-player",rs)};export{Eo as GridTypes,sO as InterfaceLanguage,Jo as VERSION,aO as VKNumericLanguage,dO as VideoFormat,fO as VideoQuality,uO as loadVKLangPack,nO 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;--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:10000}.out-of-view{position:absolute !important;left:-1000vh !important}`)}function z6(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 lp({props:l}),pe.push(()=>Fe(e,"videoContainer",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&2&&(s.title=r[1]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&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],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function U6(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}),pe.push(()=>Fe(e,"videoContainer",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&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],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function K6(i){let e,t,n,o,l=[U6,z6],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-xfba9d")},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):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),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&&C(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:k}=e,{preload:g}=e,{autoplay:w}=e,{volume:v=void 0}=e,{muted:T=void 0}=e,{fromTime:b}=e,{canRewindLive:y}=e,{showAds:I}=e,{adsSlotId:Z=void 0}=e,{adsParams:N=void 0}=e,{adsPreviewParam:z=void 0}=e,{duration:se=void 0}=e,{logoClickable:ae}=e,{logoHidden:F}=e,{isMobile:x}=e,{showNextPrevButtons:E=!1}=e,{nextButtonActive:X=!1}=e,{prevButtonActive:Q=!1}=e,{endScreenVideoTitle:G=void 0}=e,{endScreenVideoThumb:ee=void 0}=e,{isOneVideoPlaylist:L=!1}=e,{supportLink:H}=e,{shadowRootContainer:Be=void 0}=e,{outerContainerRef:ze=void 0}=e,{fullScreenTarget:We=void 0}=e,{failoverHosts:Xe=void 0}=e,{showMiniTimer:qe=!1}=e,{saveRate:ye}=e,{playNextVideo:J=dl}=e,{playPrevVideo:we=dl}=e,{repeatPlaylist:Ke=dl}=e,{seekToInteractive:Je=dl}=e,{toggleGraph:it=dl}=e,{playPrevChapter:ke=dl}=e,{volumeMultiplier:Ne}=e,{subscribers:Ge,stores:nt}=r;Hc(s);let Ce=Bt(),re=s.logoLink,Ue=l.ui.debugPanelVisible,me=l.ui.playerSize,le=l.state.isLive$;O(i,le,be=>t(63,n=be));let De,Me=null,Ye=!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}),Xc(l,nt);let rt=(be=!1)=>{t(34,Ye=!0),be?l.actions.external.firstStart(I):l.actions.internal.firstStart(I)};function ve(be){let pt=o||be;pt&&l.initVideo({container:De,sources:pt,failoverHosts:Xe,subtitles:h,volumeMultiplier:Ne});let It=q6.get(vl)==="true";Ue.set(It),b>0&&l.actions.external.seekTime(b);let Qt=x?Ce.volumeDefault:v??Ql()??Ce.volumeDefault,yt=T??ff();if(l.actions.external.setVolume(Qt),l.actions.external.setMuted(yt),l.getAdmanWrapper().setInitialVolume(yt?0:Qt),Ce.features.trafficSaving){let qt=mf();qt&&l.actions.internal.setTrafficSavingEnabled(qt)}if(Ce.features.saveRate&&ye){let qt=hf();qt&&!n&&l.actions.internal.setPlaybackRate(qt)}let Ut=af(l.videoId);Ut&&l.actions.internal.setQuality(Ut),l.ui.isAutoplay.set(w),w?rt():g&&Ce.features.preload&&l.actions.internal.preload()}let ft=be=>{if(window.ResizeObserver){let pt,It;Me=new ResizeObserver(O6(Qt=>{let yt=Qt[0];if(yt){if(yt.contentBoxSize){let Ut=Array.isArray(yt.contentBoxSize)?yt.contentBoxSize[0]:yt.contentBoxSize;pt=Ut.inlineSize,It=Ut.blockSize}else yt.contentRect&&(pt=yt.contentRect.width,It=yt.contentRect.height);me.set({width:pt,height:It})}},300)),Me.observe(be)}me.set({width:be.clientWidth,height:be.clientHeight})};Tt(()=>{ft(De);let be=Ge.map(It=>It.init({store:l,microStores:nt,config:a}));if(k?.status==="upcoming"||k?.status==="waiting"){l.actions.internal.setWaitingLive(!0);return}if((k?.status==="finished"||k?.status==="postlive")&&!Object.keys(o||[]).length){l.actions.internal.setWaitingRecord(!0);return}return ve(),()=>{Me?.disconnect(),be.forEach(It=>It.unsubscribe()),l.destroy()}});function ht(){Ye?l.actions.external.play():rt(!0)}function ut(){l.actions.external.pause()}function mt(be){x||l.actions.external.setMuted(be)}function St(be){x||be>=0&&be<=1&&l.actions.external.setVolume(be)}function Qe(be){l.actions.internal.seekTime(be,F6.UNKNOWN)}function Nt(be){l.actions.external.seekEpisodeStartTime(be)}function Vt(){l.actions.external.returnFocusToEpisodes()}function Ct(be){l.actions.external.setPlaybackRate(be)}function oi(be){l.actions.external.setAutoQualityLimits(be)}function lt(be){De=be,t(33,De)}function kt(be){De=be,t(33,De)}return i.$$set=be=>{"sources"in be&&t(39,o=be.sources),"store"in be&&t(0,l=be.store),"microStoresRoot"in be&&t(40,r=be.microStoresRoot),"videoConfig"in be&&t(41,a=be.videoConfig),"uiConfig"in be&&t(42,s=be.uiConfig),"title"in be&&t(1,u=be.title),"thumbUrl"in be&&t(2,f=be.thumbUrl),"interactiveContainer"in be&&t(3,p=be.interactiveContainer),"subtitles"in be&&t(43,h=be.subtitles),"live"in be&&t(4,k=be.live),"preload"in be&&t(44,g=be.preload),"autoplay"in be&&t(5,w=be.autoplay),"volume"in be&&t(45,v=be.volume),"muted"in be&&t(46,T=be.muted),"fromTime"in be&&t(47,b=be.fromTime),"canRewindLive"in be&&t(6,y=be.canRewindLive),"showAds"in be&&t(7,I=be.showAds),"adsSlotId"in be&&t(8,Z=be.adsSlotId),"adsParams"in be&&t(9,N=be.adsParams),"adsPreviewParam"in be&&t(10,z=be.adsPreviewParam),"duration"in be&&t(11,se=be.duration),"logoClickable"in be&&t(12,ae=be.logoClickable),"logoHidden"in be&&t(13,F=be.logoHidden),"isMobile"in be&&t(14,x=be.isMobile),"showNextPrevButtons"in be&&t(15,E=be.showNextPrevButtons),"nextButtonActive"in be&&t(16,X=be.nextButtonActive),"prevButtonActive"in be&&t(17,Q=be.prevButtonActive),"endScreenVideoTitle"in be&&t(18,G=be.endScreenVideoTitle),"endScreenVideoThumb"in be&&t(19,ee=be.endScreenVideoThumb),"isOneVideoPlaylist"in be&&t(20,L=be.isOneVideoPlaylist),"supportLink"in be&&t(21,H=be.supportLink),"shadowRootContainer"in be&&t(22,Be=be.shadowRootContainer),"outerContainerRef"in be&&t(23,ze=be.outerContainerRef),"fullScreenTarget"in be&&t(24,We=be.fullScreenTarget),"failoverHosts"in be&&t(48,Xe=be.failoverHosts),"showMiniTimer"in be&&t(25,qe=be.showMiniTimer),"saveRate"in be&&t(49,ye=be.saveRate),"playNextVideo"in be&&t(26,J=be.playNextVideo),"playPrevVideo"in be&&t(27,we=be.playPrevVideo),"repeatPlaylist"in be&&t(28,Ke=be.repeatPlaylist),"seekToInteractive"in be&&t(29,Je=be.seekToInteractive),"toggleGraph"in be&&t(30,it=be.toggleGraph),"playPrevChapter"in be&&t(31,ke=be.playPrevChapter),"volumeMultiplier"in be&&t(50,Ne=be.volumeMultiplier)},i.$$.update=()=>{if(i.$$.dirty[0]&16385)e:l.ui.isMobile.set(x)},[l,u,f,p,k,w,y,I,Z,N,z,se,ae,F,x,E,X,Q,G,ee,L,H,Be,ze,We,qe,J,we,Ke,Je,it,ke,Qe,De,Ye,Ce,re,le,rt,o,r,a,s,h,g,v,T,b,Xe,ye,Ne,ve,ht,ut,mt,St,Nt,Vt,Ct,oi,lt,kt]}var mc=class extends K{constructor(e){super(),W(this,e,j6,K6,U,{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},H6,[-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]}},Pp=mc;function W6(i){let e,t,n,o=i[2].default,l=Ie(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("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"),ge(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)&&Te(l,o,s,s[1],n?Pe(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function G6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var pc=class extends K{constructor(e){super(),W(this,e,G6,W6,U,{})}},Tp=pc;function Q6(i){let e,t;return e=new Tp({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Y6(i,e,t){let n,{isWhite:o=!1}=e;return i.$$set=l=>{"isWhite"in l&&t(1,o=l.isWhite)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var _c=class extends K{constructor(e){super(),W(this,e,Y6,Q6,U,{isWhite:1})}},Ep=_c;function Z6(i){Se(i,"svelte-1y9fytq",".playerStub.svelte-1y9fytq{width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.title.svelte-1y9fytq{position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}")}function Ap(i){let e,t;return{c(){e=P("div"),t=Ae(i[0]),c(e,"class","title svelte-1y9fytq")},m(n,o){S(n,e,o),m(e,t)},p(n,o){o&1&&je(t,n[0])},d(n){n&&C(e)}}}function Mp(i){let e,t;return e=new Ep({props:{isWhite:!!i[1]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isWhite=!!n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function X6(i){let e,t,n,o,l=i[0]&&Ap(i),r=(!i[0]||!i[1])&&Mp(i);return{c(){e=P("div"),l&&l.c(),t=D(),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=Ap(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&&(ue(),_(r,1,1,()=>{r=null}),ce()),(!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&&C(e),l&&l.d(),r&&r.d()}}}function J6(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 hc=class extends K{constructor(e){super(),W(this,e,J6,X6,U,{title:0,thumbUrl:1},Z6)}},Vp=hc;import{cloneDeepWith as h8,getCurrentBrowser as g8,InterfaceLanguage as b8,isMobile as v8,isNonNullable as wc,Logger as y8,Subject as k8,Subscription as w8,CurrentClientBrowser as C8}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";import{InteractiveInterfaceClick as Bl}from"@vkontakte/videoplayer-statistics";var is=class{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.`)}}};import{CurrentClientBrowser as n8,ValueSubject as o8,getCurrentBrowser as l8,detectEmbed as r8}from"@vkontakte/videoplayer-shared";function x6(i){let e,t,n,o,l,r=i[2].default,a=Ie(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=oe(u,s[f]);return{c(){e=B("svg"),a&&a.c(),t=B("g"),n=B("path"),o=B("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"),ge(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)&&Te(a,r,f,f[1],l?Pe(r,f[1],p,null):Ee(f[1]),null),ge(e,u=Le(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&&C(e),a&&a.d(f)}}}function $6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var gc=class extends K{constructor(e){super(),W(this,e,$6,x6,U,{})}},Lp=gc;function e8(i){Se(i,"svelte-1pbsod4",".player-pip-dummy.svelte-1pbsod4{width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.player-pip-dummy.is-pip-api.svelte-1pbsod4{position:relative}.dummy-image.svelte-1pbsod4 svg{transform:scale(1.07143)}.dummy-image.desktop.svelte-1pbsod4{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.svelte-1pbsod4{font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center}")}function t8(i){let e,t,n,o,l,r,a;return n=new Lp({}),{c(){e=P("div"),t=P("div"),R(n.$$.fragment),o=D(),l=P("span"),r=Ae(i[0]),c(t,"class","dummy-image svelte-1pbsod4"),q(t,"desktop",!i[1]),c(l,"class","title svelte-1pbsod4"),c(e,"class","player-pip-dummy svelte-1pbsod4"),q(e,"is-pip-api",i[2])},m(s,u){S(s,e,u),m(e,t),M(n,t,null),m(e,o),m(e,l),m(l,r),a=!0},p(s,[u]){(!a||u&2)&&q(t,"desktop",!s[1]),(!a||u&1)&&je(r,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){_(n.$$.fragment,s),a=!1},d(s){s&&C(e),V(n)}}}function i8(i,e,t){let n,o,l=tt(),r=!!l.webApi.pictureInPictureApi,a=l.interfaceLanguage$;O(i,a,f=>t(5,n=f));let s=l.ui.isMobile;O(i,s,f=>t(1,o=f));let u;return i.$$.update=()=>{if(i.$$.dirty&32)e:t(0,u=n&&j("pip_dummy_title"))},[u,o,r,a,s,n]}var bc=class extends K{constructor(e){super(),W(this,e,i8,t8,U,{},e8)}},Rp=bc;var s8=460,a8=280,Al=class{constructor(){this.info={isActive$:new o8(!1),type:1}}isSupported(){let e=l8().browser===n8.Yandex,{isEmbed:t}=r8();return"documentPictureInPicture"in window&&!e&&!t}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:s8,height:a8,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 Rp({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 Bp(i){return i instanceof Al}var ns=class{static getLatestSupportedVersion(){let e=new Mo,t=new Al;if(t.isSupported())return t;if(e.isSupported())return e}};function vc(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 Dp="Inner error. Unexpectedly root annotation container null reference exception",Np="Annotation with such name already exists",qp="Annotation with such name does not exist";var ml=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as u8,Subscription as c8,throttleFn as f8}from"@vkontakte/videoplayer-shared";var d8="1",m8=100,os=class{constructor(e){this.annotations=new Map;this.subscriptions=new c8;this.rootAnnotationsContainer=e;let t=f8(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},m8);this.subscriptions.add(u8(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 ml(Dp);if(this.annotations.has(e))throw new ml(Np);t.style.zIndex=t.style.zIndex??d8,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 ml(qp);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 new HTMLElement}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as yc,Subscription as p8}from"@vkontakte/videoplayer-shared";var Yn=class{init({store:e,microStores:t,config:n}){return yc(e),yc(t),yc(n),this.subscription=new p8,this.subscription}};var Ml=class extends Yn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...Re(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 Vl=class extends Yn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...Re(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(k=>{if(!p)return;let g=xe(r);xe(s)?this.state$.set(k):g!==null&&this.state$.set(!g||k)})),n.add(s.subscribe(k=>{this.state$.set(!k||h())})),n.add(r.subscribe(k=>{if(k===null)return;let g=xe(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!k)})),n}};var Ll=class extends Yn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Re("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 _8}from"@vkontakte/videoplayer-shared";var kc=Re(!1),ls=null,Rl=class extends Yn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...kc,set:(t,n=!1)=>{t!==xe(kc)&&(this.clearTimeout(),kc.set(t),!t&&ls&&(ls=!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(_8({isPlaying$:a,isInteractiveTime$:r,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:h,interactiveTimeIndicator:k})=>{if(!(!p||!k?.isDisplayed)){if(!h)return this.state$.set(!1);f.tooltipHelpHintActive&&ls===null&&(ls=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),o.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var Op=()=>[Ml,Vl,Ll,Rl].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:v8(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1},rs=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.logger=new y8,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.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,statUserSalt:a,statAuthToken:s,statTrackCode:u,refreshStatAuthToken:f,preload:p,autoplay:h,volume:k,muted:g,fromTime:w,canRewindLive:v,supportLink:T,showAds:b,adsSlotId:y,adsParams:I={},adsPreviewParam:Z,interfaceLanguage:N,isCyrillicRelatedInterface:z,logoClickable:se,logoHidden:ae,isMobile:F,isAudioDisabled:x,isLiveCatchUpMode:E,fullScreenTarget:X,failoverHosts:Q,canDownload:G,callbacks:ee,interactiveData:L,showThumbTimer:H,additionalButtons:Be=[],repeat:ze,saveRate:We,volumeMultiplier:Xe}=vc(this.videoConfig,n),{sources:qe,title:ye,thumbUrl:J,unitedVideoId:we,isClip:Ke=!1,duration:Je,adsParams:it={},videoEpisodes:ke,previewThumbsData:Ne,subtitles:Ge,live:nt}=t,Ce={...I,...it},re=this.getNextVideoInfo(),Ue={sources:qe,title:ye,thumbUrl:J,subtitles:Ge,unitedVideoId:we,isClip:Ke,live:nt,albumId:l,statPlace:r,autoplay:h,muted:g,volume:k,fromTime:w,canRewindLive:v,showAds:b,adsSlotId:y,adsParams:Ce,adsPreviewParam:Z,duration:Je,logoClickable:se,logoHidden:ae,isMobile:F,repeat:ze,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:re.nextVideoTitle,endScreenVideoThumb:re.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},me={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Ue)}`});let le=this.uiConfig.features.statistics&&!!we,{pid:De}=this.videoConfig?.interactiveData?.projectInfo||{};le&&(this.statistics=new Ur({movieId:we,albumId:l,place:r,trackCode:u,autoplay:(h&&!this.interactiveController)??!1,mobile:F,clip:Ke,refDomain:this.videoConfig.refDomain,...De&&!this.isInited&&{projectId:Number(De)}},{refreshAuthToken:f,userSalt:a,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Ao(this.uiConfig.sentry,{version:xo,env:Wl},{movieId:we,albumId:l,place:r,autoplay:(h&&!this.interactiveController)??!1,mobile:F,clip:Ke}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...Ao.getInstance()};let Ye=!!L,rt=[],ve="tooltip_interactive_go_back_disabled_first";if(Ye&&this.interactiveController){let ut=this.interactiveController.state.isInitialChapter$.getValue(),mt=this.interactiveController.getHistoryState();ut&&rt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||rt.push("SEEK_TO_INTERACTIVE_BUTTON"),mt.hasPrevChapter$.getValue()||(rt.push("PLAY_PREV_CHAPTER_BUTTON"),ut||(mt.isGoBackLimited$.getValue()?ve="tooltip_interactive_go_back_disabled_limit":ve="tooltip_interactive_go_back_disabled"))}let ft=()=>{this.isInited=!1,this.prevIsid=void 0;let ut=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();ee.onReplayInteractiveVideo&&!ut?ee.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=um({player:o,interfaceLanguage:N,isCyrillicRelatedInterface:z,videoId:we,isClip:Ke,isLiveCatchUpMode:E,isAudioDisabled:x,statAuthToken:s,callbacks:ee,webApi:me,videoEpisodes:ke,previewThumbsData:Ne,canDownload:G,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:rt,isInteractive:Ye,saveRate:We,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,replayInteractive:ft,playPrevChapterDisabledTooltip:ve,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?Be:[],looped:ze&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:ht}=this.microStoresRoot=Op();this.subscription.add(this.store.state.currentFormat$.subscribe(ut=>ee?.onCurrentFormatChanged?.(ut))),this.subscription.add(ht.interactiveControlsOpacity$.subscribe(ut=>{ut!==null&&this?.interactiveController?.setDisabledControls(ut)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(ut=>ee?.onThroughputEstimationChanged?.(ut))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(ut=>ee?.onTrafficSavingEnabledChanged?.(ut))),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ut=>ee?.onCurrentPlaybackRateChanged?.(ut))),this.subscription.add(this.store.state.volume$.subscribe(ut=>ee?.onVolumeChange?.(ut))),this.subscription.add(this.store.state.muted$.subscribe(ut=>ut?ee?.onMute?.():ee?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(ut=>ee?.onVideoBitrateChanged?.(ut))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(ut=>{let mt=this.store?.ui.controls.disabledControls$;mt&&(ut&&!mt.includes(yl)&&mt.add(yl),ut||mt.remove(yl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async ut=>{if(!(g8().browser===C8.SamsungBrowser)||!ut||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.initMediaSession(),this.interactiveController&&le&&this.initInteractivesStatistics(),this.svelteRootComponent=new Pp({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:qe,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ye,thumbUrl:J,subtitles:Ge,live:nt,preload:p,autoplay:h,muted:g,volume:k,fromTime:w,canRewindLive:v,supportLink:T,showAds:b,adsSlotId:y,adsParams:Ce,adsPreviewParam:Z,duration:Je,logoClickable:se,logoHidden:ae,isMobile:F,failoverHosts:Q,fullScreenTarget:X,saveRate:We,shadowRootContainer:this.shadowRootContainer,showMiniTimer:H,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:re.nextVideoTitle,endScreenVideoThumb:re.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph(),volumeMultiplier:Xe}}),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)))}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&&wc(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(_s),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",l.set(!0),this.interactiveController?.toggleGraphView(!0),r.add(_s),!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});let{isInteractiveExpectation$:p}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(k=>{if(!this.isInited)return;let g=this.store;k?g.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):g.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(k=>{this.store&&this.store.state.isInteractiveExpectation$.set(k)}));let h=!0;if(this.interactiveController.on(n.playerChanged,k=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...k.config,title:a?.title||k.config.title};let g=h?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(k.player,g),h&&(h=!1)}),this.interactiveController.on(n.interactives,({type:k,actionType:g})=>{if(!this.store)return;let w=p.getValue();if(k==="action-choice"&&g==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(jl)),k==="action-choice-canceled"){let v=xe(this.store.state.isPlaying$)||w;if(this.videoConfig?.isMobile&&v){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let k=this.interactiveController.getHistoryState();this.subscription.add(k.history$.subscribe(g=>{g.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(g)}))}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,k=>{this.log({message:k.toString()})})}catch(t){this.log({message:t.message})}}async initInteractivesStatistics(){let{statSubscription:t,oneStat:n}=this.statistics;if(!(!t||!n||!this.interactiveController))try{let{INTERACTIVE_CLICK_ACTIONS:o}=await import("@vkontakte/videoplayer-interactive"),l={[o.GO_NEXT_BUTTON]:Bl.NEXT_BUTTON,[o.GO_NEXT_AREA]:Bl.NEXT_AREA,[o.WATCH_AGAIN]:Bl.WATCH_AGAIN,[o.OPEN_GRAPH]:Bl.GRAPH_SHOW,[o.CLOSE_GRAPH]:Bl.GRAPH_HIDE},{click$:r,nextMovie$:a}=this.interactiveController.getStatEvents(),s=new k8;r.subscribe(u=>{u in l?s.next(l[u]):(n?.logError({errorType:"InteractiveVideosAction",fatal:!1}),this.sentry.report?.(new Error("InteractiveVideosAction"),{errorType:"InteractiveVideosAction",fatal:!1}))}),t.add(n.attachToInteractive({click$:s,nextMovie$:a}))}catch(o){n?.logError({errorType:"InteractiveVideos",fatal:!1}),this.sentry.report?.(o,{errorType:"InteractiveVideosAction",fatal:!1})}}initPlayer(t,n={}){if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=vc(S8,h8(t,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=Fc(n.ui??{}),this.coreConfig=n.core??{configName:[]},this.statisticsConfig=n.statistics??{},this.sentry={config:this.uiConfig.sentry??{}},wc(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.videoConfig.isMediaSessionEnabled??!0),wc(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.videoConfig.isMobile=this.uiConfig.isMobile??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=ns.getLatestSupportedVersion():this.pictureInPictureApi=new Mo),this.mediaSessionApi=this.uiConfig.features.mediaSession?new is:void 0,this.annotationsApi=this.uiConfig.features.annotations?new os(this.rootContainer):void 0,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]),Bp(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.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)}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)}catch(t){this.log({message:t.message})}}play(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("waitingLive")||(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();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.setWaitingLive(!1),this.svelteRootComponent?.initVideo(t),this.play()}setWaitRecord(){this.log({message:"post live"}),this.store?.actions.internal.setWaitingRecord(!0),this.store?.destroy()}setLiveEnd(t){this.log({message:"live ended"}),this.store?.actions.internal.setWaitingRecord(!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()}};import{InterfaceLanguage as iO,VKNumericLanguage as nO,loadVKLangPack as oO}from"@vkontakte/videoplayer-shared";import{VideoQuality as rO,VideoFormat as sO}from"@vkontakte/videoplayer-core";var xq=()=>{window.customElements.define("vk-video-player",rs)};export{To as GridTypes,iO as InterfaceLanguage,xo as VERSION,nO as VKNumericLanguage,sO as VideoFormat,rO as VideoQuality,oO as loadVKLangPack,xq as registerPlayerWebComponent};
|